blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1881ded3dce36b78149971eeb52f0be86908022 | b62599ac4093da825708638a4a25f252a83e9f37 | /object_detection/object_detection_rt.py | d2a4c5443ef1178afc36c91e7053405948f18f7b | [] | no_license | raspberry-pi-maker/NVIDIA-Jetson | 25ca2033d36aa8c6f837ed2a8c49281d646be29b | 30a5596aa0d9a6a960f2fef4d084eb42a94a2b66 | refs/heads/master | 2023-06-23T04:17:15.675476 | 2023-06-10T02:23:33 | 2023-06-10T02:23:33 | 211,216,972 | 40 | 30 | null | null | null | null | UTF-8 | Python | false | false | 4,250 | py | import argparse
import numpy as np
import os
import six.moves.urllib as urllib
import sys
import time
import tarfile
import tensorflow.contrib.tensorrt as trt
import tensorflow as tf
import zipfile
from distutils.version import StrictVersion
from collections import defaultdict
from io import StringIO
from matplotlib i... | [
"raspberry.pi.maker@gmail.com"
] | raspberry.pi.maker@gmail.com |
0c3f52b0dcd6a2a978142a858d3fed4a8d00e023 | a0cde41c20d4ffdcc1ace0e217e3338f1cd93cde | /src/batchDefinition/slanTour/batchDefSTWeightedAVG.py | 2ec97b0b75915ffa295f2489348f02040b01fc35 | [] | no_license | sbalcar/HeterRecomPortfolio | ea15a3277774d1b37d69b527406e5a8558cc3cbf | a8714902a1f45b5e9bfe0f9af40cce87e36c7471 | refs/heads/master | 2022-05-30T00:59:36.693858 | 2022-04-09T16:12:34 | 2022-04-09T16:12:34 | 219,495,240 | 1 | 3 | null | 2021-01-17T12:44:59 | 2019-11-04T12:21:41 | Jupyter Notebook | UTF-8 | Python | false | false | 3,061 | py | #!/usr/bin/python3
import os
from typing import List
from typing import Dict #class
from pandas.core.frame import DataFrame #class
from portfolioDescription.portfolio1AggrDescription import Portfolio1AggrDescription #class
from evaluationTool.aEvalTool import AEvalTool #class
from evaluationTool.evalToolDHondt imp... | [
"bc.stepan.balcar@gmail.com"
] | bc.stepan.balcar@gmail.com |
e89063f004ef56318689c8df2ebf442192e2aa44 | a39e95a0536d312311531a49dec90bcc8f7ab0c5 | /Lesson6_FunctionCompileRE/main.py | 46adef70714ec420ee43ff944b6b4cdcde1257cb | [] | no_license | Hadirback/python_part2 | 095010ca4866a4b6c9e5ca092602b43edbd344e8 | a4b00aeb30f88df55751d5f23e570c33face113d | refs/heads/master | 2020-08-11T09:13:03.793607 | 2019-11-04T23:10:45 | 2019-11-04T23:10:45 | 214,536,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # compile
# re compile - если нужно найти и изменить что то подходящее под
# шаблон в нескольких переменных
import re
text1 = """
Сбо́рная Франции по футбо́лу 34-я минута представляет Францию в международных
матчах и турнирах по футболу. """
text2 = """
Управляющая организация 56-й номер — Федерация футбола Франци... | [
"mail.evgeny.filippov@gmail.com"
] | mail.evgeny.filippov@gmail.com |
d0937d391db976cdd9ce380dfda1333e8c5e6cfd | 6ffc398b4a27c339f24938e8a0b9c565e33539ce | /site-packages-27/fpdf/__init__.py | e1f6d0ec86f11b94c27e9cf80fc511a1e065dabb | [] | no_license | zwlyn/awesome-pdf | 8f4483d717130a54545f2ba8b05313da99103039 | 8223929db5433c7b4ed61bceb4f5808c12e1ad85 | refs/heads/master | 2023-01-24T23:52:35.415117 | 2020-04-05T12:05:31 | 2020-04-05T12:05:31 | 253,162,782 | 2 | 0 | null | 2023-01-05T10:50:08 | 2020-04-05T05:31:20 | Python | UTF-8 | Python | false | false | 415 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"FPDF for python"
__license__ = "LGPL 3.0"
__version__ = "1.7.9"
from .fpdf import FPDF, FPDF_FONT_DIR, FPDF_VERSION, SYSTEM_TTFONTS, set_global, FPDF_CACHE_MODE, FPDF_CACHE_DIR
try:
from .html import HTMLMixin
except ImportError:
import warnings
warnings.war... | [
"1666013677@qq.com"
] | 1666013677@qq.com |
90fc9a11b36c7ec3937a286038d3b1c0a4812f9d | 3529ecaa44a53172094ba13498097057c8972723 | /Questiondir/520.detect-capital/520.detect-capital_93512141.py | 4b4f3fe2c57d6a464255034820308ab06b71b8df | [] | no_license | cczhong11/Leetcode-contest-code-downloader | 0681f0f8c9e8edd5371fd8d0a1d37dcc368566b6 | db64a67869aae4f0e55e78b65a7e04f5bc2e671c | refs/heads/master | 2021-09-07T15:36:38.892742 | 2018-02-25T04:15:17 | 2018-02-25T04:15:17 | 118,612,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | class Solution(object):
def detectCapitalUse(self, word):
"""
:type word: str
:rtype: bool
"""
if word == word.upper():
return True
if word == word.lower():
return True
if (word[:1] == word[:1].upper()) and (word[1:] == word[1:].lower()... | [
"tczhong24@gmail.com"
] | tczhong24@gmail.com |
8fe3e72a4fe1168fd5eb38c66f4f4aa526bd5ad0 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/100_Python_Exercises_Evaluate_and_Improve_Your_Skills/Exercise 12 - More Ranges NUKE.py | 7bb9127b558afdf2d3b6aa97628abdcdb2897719 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 163 | py | #Create a script that generates a list whose items are products of the original list items multiplied by 10
my_range r..(1, 21)
print([10 * x ___ x __ my_range])
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
788ed2e5916d24970d79524c60e182a03ad4ecfb | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Livros/Introdução à Programação - 500 Algoritmos resolvidos/Capitulo 2/Exercicios 2a/Algoritmo36_lea9.py | a368507b3389f066630181aa6ff943bc3796ea6c | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # Program: Algoritmo36_lea9.py
# Author: Ramon R. Valeriano
# Description:
# Developed: 14/03/2020 - 19:55
# Updated:
number1 = int(input("Enter with firs number: "))
number2 = int(input("Enter with second number: "))
sum_ = number1 + number2
print("The sum: %d" %sum_)
| [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
05be3c6193f89bc5f3be46293ad8f4dda8d7aff8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2551/60771/296110.py | 9c1d23a5339719691c0cae541b95c62c95ea2fb3 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #15
ori = input().split(" ")
N = int(ori[0])
M = int(ori[1])
lights = [False]*N
for i in range(0,M):
ori = input().split(" ")
a = int(ori[1])
b = int(ori[2])
if ori[0] == "0":
for j in range(a-1,b):
lights[j] = not lights[j]
if ori[0] == "1":
res = 0
for j in ran... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
1f5efb06eab8edbd3e09147a821a534f8f2d7483 | 1154fa5ae6fe517151e41f5f4746d1bada23e1a5 | /scenes/cup_generator/model.py | 7e8f6d5861759736d796c1fb6a1e135ab6258a3d | [] | no_license | joaomonteirof/SMART_COUSP_Reconstruction | 9f7aac2eb08bc67f3d8b7e786ff66a5c1c9dadf4 | 79ea702d75875bec399721b04cdaecf4fc6a6a0e | refs/heads/master | 2023-09-04T00:05:20.981615 | 2021-10-13T17:26:10 | 2021-10-13T17:26:10 | 106,738,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class Generator(torch.nn.Module):
def __init__(self, input_dim=128, num_filters=[1024, 512, 256, 128, 64, 32], output_dim=1):
super(Generator, self).__init__()
# Hidden layers
self.hidden_layer = torch.nn.Sequential()
for i in range(len(num_... | [
"joaomonteirof@gmail.com"
] | joaomonteirof@gmail.com |
c12730826a6aa9d5f5d486adc9b4fbd73d3e312c | 87b4518e55c0e465aba39d86e65ba56f56502198 | /css/postprocess.py | 787db97ecfb72ae1d5d3a86a4fc9aaf218d47c28 | [
"MIT"
] | permissive | Serkan-devel/m.css | 302831008d8949a2fb7b91565621b47dd638e38f | 3c0e3d7875bc9ab63c93322cc02cab62239804d7 | refs/heads/master | 2020-04-01T02:00:17.005772 | 2019-01-12T11:36:33 | 2019-01-12T11:36:33 | 152,761,732 | 0 | 0 | MIT | 2019-01-12T11:36:34 | 2018-10-12T14:20:51 | Python | UTF-8 | Python | false | false | 7,550 | py | #!/usr/bin/env python
#
# This file is part of m.css.
#
# Copyright © 2017, 2018, 2019 Vladimír Vondruš <mosra@centrum.cz>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without... | [
"mosra@centrum.cz"
] | mosra@centrum.cz |
7c0bf7ade1f8db725a4ef41dc22305288b4582ce | 2716d8e04c957aebc5137b3dbb719cbb31eaf013 | /user_extent/users/models.py | 74d53617f24544e6ce4de123d9e95b400466ebb0 | [] | no_license | anlaganlag/mini_proj_component | 01d5fdd641cbc2a5199865d64b21431603704bd1 | 1def0fc576bb422b6819bd2df56b8e7cd48d3368 | refs/heads/master | 2021-01-06T23:54:13.921612 | 2020-02-20T10:28:55 | 2020-02-20T10:28:55 | 241,518,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class CustomUser(AbstractUser):
pass
def __str__(self):
return self.username
| [
"tanjhu@163.com"
] | tanjhu@163.com |
24364854b0efa09b1fd0ed72288c66064dfb1353 | a2e3f4944076a9d25fd6e7aa30d0cda55c47ff18 | /template_dynamicloader/views.py | 2f66be35ba8cae440020eeac4d89c162fbdf329c | [] | no_license | redatest/Shakal-NG | fb62b58b3d4c7a6a236beed8efd98712425621f2 | d2a38df9910ec11b237912eefe1c1259203675ee | refs/heads/master | 2021-01-18T02:21:44.654598 | 2015-03-21T14:09:56 | 2015-03-21T14:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.views.decorators.http import require_POST
from template_dynamicloader.forms import ChangeTemplateHiddenForm
from template_dynamicloader.utils import switch_template
@require_POST
def change(r... | [
"miroslav.bendik@gmail.com"
] | miroslav.bendik@gmail.com |
6a138ba973cb0c3445c9e304eb69802cea8a51f1 | 34b76d94ff323e65e76be9bef71379e73046ad1f | /sacred_runs_final/_sources/run_sacred_926b2f1738101acc8665dff2324ae499.py | 44541df559402ca43e56054e8681d454cc6dacc7 | [
"MIT"
] | permissive | lorelupo/baselines | 5324e3f05615789608e6119ae7395b77973cbe8c | 8b6df664ecb714e77703f8fd9c7ea3841048bb28 | refs/heads/master | 2020-04-29T20:19:34.256241 | 2019-02-28T19:18:21 | 2019-02-28T19:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,135 | py | #!/usr/bin/env python3
# noinspection PyUnresolvedReferences
'''
This script runs rllab or gym environments. To run RLLAB, use the format
rllab.<env_name> as env name, otherwise gym will be used.
export SACRED_RUNS_DIRECTORY to log sacred to a directory
export SACRED_SLACK_CONFIG to use a slack plugin
... | [
"nico.montali24@gmail.com"
] | nico.montali24@gmail.com |
b25ce7f623ec6fdde3d149c689911c96dd5e5206 | 471763d760e57f0487d5f032d261674c6fb732c8 | /pymoo/experimental/my_test.py | c374176b5538cd3516ee40931e823ed8ac6f23c1 | [
"Apache-2.0"
] | permissive | s-m-amin-ghasemi/pymoo | 7b583834d2f6dea26592001eb59e45472dadd490 | 74123484b0f72d601823bcda56f9526ad12e751a | refs/heads/master | 2020-05-02T09:55:31.641675 | 2019-03-04T19:24:37 | 2019-03-04T19:24:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | from pymoo.operators.crossover.simulated_binary_crossover import SimulatedBinaryCrossover
from pymoo.operators.mutation.polynomial_mutation import PolynomialMutation
from pymoo.optimize import minimize
from pymoo.util import plotting
from pymoo.util.reference_direction import UniformReferenceDirectionFactory
from pymop... | [
"jules89@arcor.de"
] | jules89@arcor.de |
192816a0aa4248471ba63ca120bc57733699c6ee | 4852046aed2588c7a359c4b805251fa953399b23 | /web/urls.py | bd18502d943190273fbe1e27349abd18c0f82e9d | [] | no_license | enasmohmed/Mobily-WebSite | 8cc11cc0e31d78da85029e8885c56b4ecc4d1e33 | dbab598ca36ccbadb15e37199b719b618b5c11f9 | refs/heads/master | 2020-08-08T12:08:23.169066 | 2019-10-26T20:24:51 | 2019-10-26T20:24:51 | 213,828,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | """web URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"enasm2477@gmail.com"
] | enasm2477@gmail.com |
a33f00ae4c2d0a44e8d884798cff5199cbd63b9e | b4914b08ce57707a4f663403566b4e8e9b68d9a0 | /hofvideos/settings.py | cd8023eb92ad11c2702bd1d251e7218271c4a589 | [] | no_license | Harshvartak/halloffamevids | 9d47521ac9cafbcc1bbb8f049e64765d300bbf6c | 89bd7d3890feecd67ba293b0ab8d62ced491d025 | refs/heads/master | 2022-12-09T10:57:47.856072 | 2019-09-26T19:31:56 | 2019-09-26T19:31:56 | 211,171,960 | 0 | 0 | null | 2022-12-08T06:38:36 | 2019-09-26T20:02:38 | JavaScript | UTF-8 | Python | false | false | 3,326 | py | """
Django settings for hofvideos project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"vartak.harsh@gmail.com"
] | vartak.harsh@gmail.com |
825e5b112be413802be4e582a733b67f276cf6ad | 1ceb35da7b1106a4da4e8a3a5620d23a326a68e4 | /corticalmapping/scripts/post_recording/00_old/movie_multi_plane_single_channel_deepscope/within_plane_folder/090_get_neuropil_subtracted_traces.py | 551768f06dbf818c36c61b57bb1068b0fc1d1578 | [] | no_license | zhuangjun1981/corticalmapping | c3870a3f31ed064d77f209a08e71f44c375676a3 | 0ddd261b3993f5ce5608adfbd98a588afc56d20c | refs/heads/master | 2022-11-14T03:24:53.443659 | 2020-07-13T23:48:50 | 2020-07-13T23:48:50 | 84,975,797 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | import sys
import os
import h5py
import numpy as np
import corticalmapping.HighLevel as hl
import corticalmapping.core.FileTools as ft
import matplotlib.pyplot as plt
lam = 1. # 100.
plot_chunk_size = 5000
def plot_traces_chunks(traces, labels, chunk_size, roi_ind):
"""
:param traces: np.array, shape=[trac... | [
"junz@alleninstitute.org"
] | junz@alleninstitute.org |
bf50004145bd6d307ec066d1ad0794c4877ad04b | 849f05421d6becc6c9da70cb077dc356c3b4af0b | /addphoto/migrations/0002_auto_20200301_1602.py | 1aa115012e6672cc5efaab5d54635095ea376dff | [] | no_license | microStationCorp/faceshot | 63d632ff07b71c24b65577c926a28beb0e6ebd89 | 451e1a19f56a0da84f6290b2d6d15c0d8e60cb92 | refs/heads/master | 2021-02-06T20:08:35.427105 | 2020-03-03T07:16:25 | 2020-03-03T07:16:25 | 243,944,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 3.0.3 on 2020-03-01 10:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('addphoto', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='uploadedphoto',
name='image',
... | [
"sujanmondal916@gmail.com"
] | sujanmondal916@gmail.com |
7d503436d2d772f337fa170b88ce13e1e6d851f4 | d87483a2c0b50ed97c1515d49d62c6e9feaddbe0 | /.history/buy_top_fc_smart_20210204001749.py | e28c6f69964eb4311396f03581510b45098e4b0e | [
"MIT"
] | permissive | HopperKremer/hoptrader | 0d36b6e33922414003cf689fb81f924da076a54b | 406793c10bc888648290fd15c7c2af62cf8c6c67 | refs/heads/main | 2023-06-12T15:51:00.910310 | 2021-07-06T16:15:41 | 2021-07-06T16:15:41 | 334,754,936 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | # Buy top tickers from Financhill
import requests
from tda import auth, client
from tda.orders.equities import equity_buy_market, equity_buy_limit
from tda.orders.common import Duration, Session
import tda
import os, sys
import time
from selenium import webdriver
import json
currentdir = os.path.dirname(os.path.realpa... | [
"hopperkremer@gmail.com"
] | hopperkremer@gmail.com |
aebd77ff3c559266ef4a5dce4c44cbc2bda85af3 | ce972e94fcdf19d6809d94c2a73595233d1f741d | /catkin_ws/build/turtlebot_gazebo/catkin_generated/pkg.develspace.context.pc.py | 76fa70e69fef0fcfde19f495cc341709a0f0e080 | [] | no_license | WilliamZipanHe/reward_shaping_ttr | cfa0e26579f31837c61af3e09621b4dad7eaaba2 | df56cc0153147bb067bc3a0eee0e1e4e1044407f | refs/heads/master | 2022-02-23T05:02:00.120626 | 2019-08-07T21:52:50 | 2019-08-07T21:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot_gazebo"
PROJECT_SPACE_DIR =... | [
"xlv@cs-mars-01.cmpt.sfu.ca"
] | xlv@cs-mars-01.cmpt.sfu.ca |
3484f514f3efa0f801ae3310b219f4923b7b871b | a98899845ed5dc112f50e2824082c8dc49941ed8 | /project/api/migrations/0033_session_is_invitational.py | 824057127393ceff2fd50eef9202d4ffbb3b6438 | [
"BSD-2-Clause"
] | permissive | talexb/barberscore-api | 9d6c48eca5233b530e2c02251b004b0b1d72c429 | 2320a75d9b49368f5eb1e00e5e5f32f5c79484a1 | refs/heads/master | 2021-01-15T11:57:34.970439 | 2017-08-07T14:42:57 | 2017-08-07T14:42:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-18 03:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0032_person_last_name'),
]
operations = [
migrations.AddField(
... | [
"dbinetti@gmail.com"
] | dbinetti@gmail.com |
81e6a970b801ccc37420106f206135876a43bc0c | 108cc1350623d1a30c3e08f357267e516f254ae9 | /test/test_sgd_classifier.py | 245f73242df189c623eae7a1182296f5e0ab0fdb | [
"CC-BY-SA-4.0",
"Apache-2.0"
] | permissive | agoyal3/cs224u | 1afd02948f5abb08636d599c4a9266c2cb5d7447 | f565857a79f09be1b8cfb5c76f8d5731e159939f | refs/heads/master | 2023-08-11T21:15:25.947141 | 2021-09-24T07:05:05 | 2021-09-24T07:05:05 | 401,109,252 | 0 | 0 | Apache-2.0 | 2021-09-07T20:49:11 | 2021-08-29T18:04:38 | Jupyter Notebook | UTF-8 | Python | false | false | 2,453 | py | import pytest
from sklearn.datasets import load_digits
from sklearn.metrics import accuracy_score
from sklearn.model_selection import RandomizedSearchCV, cross_validate
from sklearn.model_selection import train_test_split
import utils
from np_sgd_classifier import BasicSGDClassifier
from np_sgd_classifier import simpl... | [
"cgpotts@gmail.com"
] | cgpotts@gmail.com |
b947ef80ac45577d2b326521537502f06ee36992 | c981bbd7434b814f7968b9ba0e2235f82d7874b4 | /Modellbewertung und Hyperparamter-Abstimmung/roc_curve.py | 965aee0f54da0a3269c211ea4d38a0b7714aeadd | [] | no_license | foxriver76/MachineLearningRaschka | e1ef187f5b2b7b9d8f4edf834451e1aa5f6b9d70 | a2940fa6c187a5223fcc789d8a7f1ccb5d7dc3e2 | refs/heads/master | 2021-03-27T11:53:44.684929 | 2018-05-13T09:03:20 | 2018-05-13T09:03:20 | 104,927,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,194 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Dec 31 12:13:57 2017
@author: moritz
"""
import pandas as pd
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler, LabelEncoder
from sklearn.model_selection import train_test_split, StratifiedKFold
import matplotlib.py... | [
"moritz.heusinger@gmail.com"
] | moritz.heusinger@gmail.com |
5c1b7a79524ef0a7a58892297255840adff3bca9 | aa13e1d93b7a8017e1e610a900bd05f6df91604f | /codechef/contests/APRIL17/SMARKET/test.py | 9ce7c7e4717b87e49c329c52f811ca151af5949b | [] | no_license | laveesingh/Competitive-Programming | 3ce3272eab525635f9ce400f7467ee09de8b51df | 41047f47c23bc8572a1891e891a03cc3f751e588 | refs/heads/master | 2021-01-24T09:51:00.332543 | 2017-10-30T17:11:48 | 2017-10-30T17:11:48 | 52,956,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | import random
def case():
q = random.randint(1,100000)
a = []
for i in xrange(random.randint(1,10000)):
a.extend([random.randint(1,30)]*random.randint(1,15))
n = len(a)
print n,q
for s in a: print s,
print
for i in xrange(q):
x = random.randint(1,n)
y = random.ra... | [
"laveechaudharytheone@gmail.com"
] | laveechaudharytheone@gmail.com |
bc515c0993495b2e5a539a3fda11dd20316f2e87 | fe3265b72e691c6df8ecd936c25b6d48ac33b59a | /homeassistant/components/motion_blinds/config_flow.py | d861c989ee0e2c19d2a4eef6e23cd33e93f2c8c3 | [
"Apache-2.0"
] | permissive | bdraco/home-assistant | dcaf76c0967783a08eec30ce704e5e9603a2f0ca | bfa315be51371a1b63e04342a0b275a57ae148bd | refs/heads/dev | 2023-08-16T10:39:15.479821 | 2023-02-21T22:38:50 | 2023-02-21T22:38:50 | 218,684,806 | 13 | 7 | Apache-2.0 | 2023-02-21T23:40:57 | 2019-10-31T04:33:09 | Python | UTF-8 | Python | false | false | 6,137 | py | """Config flow to configure Motion Blinds using their WLAN API."""
from __future__ import annotations
from typing import Any
from motionblinds import MotionDiscovery
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.components import dhcp
from homeassistant.const import CONF_API_KE... | [
"noreply@github.com"
] | bdraco.noreply@github.com |
7138157a99f990cabe7b6d92c931997d3c4c9092 | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/test/connectivity/acts_tests/acts_contrib/test_utils_tests/power/tel/lab/ensure_valid_calibration_table_test.py | 76eb4dbd4acd38d244719fc813c3d683256c7892 | [] | no_license | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | #!/usr/bin/env python3
#
# Copyright 2019 - The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
c406c4fa44ef9faa6c952d4cf2179d081e449de0 | e1f5ae5fb62eac4cd87eac807e57321d895a6c48 | /boards/tests/test_view_reply_topic.py | 508a0a252fcdcb4c189740fe6b94398761a0d94b | [] | no_license | Abepena/django-boards | 5c1eebce615ff41e75a32cd46ec10228f0eff6c6 | 22aa237f9f19d04ddeb2284cd8f066563d6bc1b1 | refs/heads/master | 2020-03-24T22:08:54.894285 | 2018-08-10T16:29:39 | 2018-08-10T16:29:51 | 143,059,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,474 | py | from django.test import TestCase
from django.contrib.auth.models import User
from django.urls import reverse, resolve
from ..models import Board, Topic, Post
from ..forms import PostForm
from ..views import reply_topic
class ReplyTopicTestCase(TestCase):
"""
Base Test for all other Test Cases with this page
... | [
"pena.abe@gmail.com"
] | pena.abe@gmail.com |
3101499783426029239417ff8d62a287c447d05e | 58a4e136b6759d9cc81a895dae6f536c6a125ecf | /poorsmantwitter/wsgi.py | 92942c392dc65bd30a1716de81dcc46d4c255c6d | [] | no_license | JohnnyFang/django-api-vuejs | d833866a1b86757ed7b6301984f70f39a1cadfae | 80edc54740f46866cc938d1a5d190d71110711ad | refs/heads/master | 2020-03-29T04:31:47.018835 | 2018-09-20T02:06:03 | 2018-09-20T02:06:03 | 149,535,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for poorsmantwitter project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"fangdejavu@gmail.com"
] | fangdejavu@gmail.com |
88fdacb8b8fd7a0424e1685a2102d2689d162abd | 232b2e8881a4ba693bea940022d68cc22caeccbb | /virtual/lib/python3.6/site-packages/pylint/test/input/func_block_disable_msg.py | 5ed690ebfd0ad61e819ce5be60262d24f8c1f576 | [
"MIT"
] | permissive | bryomajor/my-developer-life | b52ea3cd39e5d8226c51c700da32f5daf2489dc7 | 8332e1da4d24511255b1b7fc02f94ae4352f87a1 | refs/heads/master | 2022-12-08T08:18:40.266324 | 2019-10-29T13:40:44 | 2019-10-29T13:40:44 | 217,529,308 | 1 | 2 | MIT | 2022-12-08T06:47:28 | 2019-10-25T12:31:00 | Python | UTF-8 | Python | false | false | 4,722 | py | # pylint: disable=C0302,bare-except,print-statement
"""pylint option block-disable"""
from __future__ import print_function
class Foo(object):
"""block-disable test"""
def __init__(self):
self._test = "42"
def meth1(self, arg):
"""this issues a message"""
print(self)
def meth... | [
"bryomajor@gmail.com"
] | bryomajor@gmail.com |
618b82c84c0b4bb643b5a6a82e5c9447552a00b4 | fd3b242c83a65edb85d3ad27c67172109fb5b0db | /venv/lib/python2.7/site-packages/kubernetes/client/models/v1_cinder_persistent_volume_source.py | 73bcff8a2e312ac36248a78ca6ce04aeb15a998b | [] | no_license | mainak90/hvac-openshift-feeder | a0946d89bd79e19881113effe3305499d80df4a8 | 730689dd7feca354fc09dabe3510333c9557e979 | refs/heads/master | 2020-12-08T07:39:58.125243 | 2020-04-26T19:49:40 | 2020-04-26T19:49:40 | 232,927,203 | 1 | 0 | null | 2020-01-09T23:45:08 | 2020-01-09T23:37:41 | Python | UTF-8 | Python | false | false | 6,790 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.13.9
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"mainak90@gmail.com"
] | mainak90@gmail.com |
eeaecaef2aa86b78b91e226879df507b600fbaa2 | e28009b0a4584e8d128ed6fbd4ba84a1db11d1b9 | /724.Find Pivot Index/724.Find Pivot Index.py | e2f3a7351cebe7b37a64abc1530fec85170e3a81 | [] | no_license | jerrylance/LeetCode | 509d16e4285296167feb51a80d6c382b3833405e | 06ed3e9b27a3f1c0c517710d57fbbd794fd83e45 | refs/heads/master | 2020-12-02T23:10:27.382142 | 2020-08-02T02:03:54 | 2020-08-02T02:03:54 | 231,141,551 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # LeetCode Solution
# Zeyu Liu
# 2019.3.25
# 724.Find Pivot Index
from typing import List
# method 1 slice切片遍历,极慢
class Solution:
def pivotIndex(self, nums: List[int]) -> int:
for i in range(len(nums)):
if sum(nums[:i]) == sum(nums[i+1:]):
return i
return -1
# transf... | [
"noreply@github.com"
] | jerrylance.noreply@github.com |
a4339549ff121a3716ac714438184f983ddea0d6 | 33da2094a944e4333ea76b04c3c6078cf643b1dc | /tyler_crowdboticstest_155/settings.py | 3d7ce2c30ec2503a84c8fca167abba0fe7ab3ab5 | [] | no_license | TylerCrowdboticsTest/tyler-crowdboticstest-155 | 3f72a9e63f63d827379bf709b2baf6b3776113e6 | cc063c566acf36c353a4129ab21ff265d75fb163 | refs/heads/master | 2020-03-22T04:12:50.631988 | 2018-07-02T18:47:42 | 2018-07-02T18:47:42 | 139,481,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,143 | py | """
Django settings for tyler_crowdboticstest_155 project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settin... | [
"tyler@crowdbotics.com"
] | tyler@crowdbotics.com |
1c0a5d1b35fec3aea62c94f8bbf9b9c3a2720fbb | 9719df2dc131aa1189acef7273bee090290becd6 | /Chapter 11/E6.py | e4dd52107ac0dc81baf55df8f39f90d0cbb908ec | [
"MIT"
] | permissive | hanzhi713/thinkcs-python3-solutions | df72e9d76779a5ffb9a8f9a9316c672a021feece | 290b34df7d9c7f45daebd1af6017a03828ec8eb4 | refs/heads/master | 2020-03-31T10:03:03.301775 | 2018-10-08T17:41:10 | 2018-10-08T17:41:10 | 152,120,690 | 13 | 7 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | def scalar_mult(s, v):
resul = []
for item in v:
resul.append(item * s)
return resul
print(scalar_mult(5, [1, 2]))
| [
"hanzhi713@163.com"
] | hanzhi713@163.com |
0f3add105d1072828de995c41fe4f79d5c9ec94f | 4d330238c7eb97fac95f3674ab4ddb5114fdf3d7 | /biosteam/units/auxiliary.py | f446902fd6363ba65c9a0adae2cd4ba9307fa988 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA",
"MIT"
] | permissive | BioSTEAMDevelopmentGroup/biosteam | d064c7d5a16d79a966caa68ed3f4cca089f9c49c | 0501214b7e7fb16b89d1e45c94938b0e08b1331f | refs/heads/master | 2023-08-20T04:47:10.816994 | 2023-08-12T19:22:20 | 2023-08-12T19:22:20 | 164,639,830 | 115 | 29 | NOASSERTION | 2023-06-10T15:56:37 | 2019-01-08T12:02:16 | Python | UTF-8 | Python | false | false | 4,071 | py | # -*- coding: utf-8 -*-
"""
This module contains functions for adding auxliary unit operations.
"""
import biosteam as bst
__all__ = ('Auxiliary',)
class Auxiliary:
"""Abstract class for light-weight auxiliary unit. The class should
compute all results during initialization."""
__slots__ = (
... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
8d949e06450535d4290d453381f9fea6c09f6263 | b4af26ef6994f4cbb738cdfd182e0a992d2e5baa | /source/leetcode/2222/hyo.py | c1b25c1cdff34ac62d6631e0c46197bc05b08274 | [] | no_license | wisest30/AlgoStudy | 6819b193c8e9245104fc52df5852cd487ae7a26e | 112de912fc10933445c2ad36ce30fd404c493ddf | refs/heads/master | 2023-08-08T17:01:12.324470 | 2023-08-06T11:54:15 | 2023-08-06T11:54:15 | 246,302,438 | 10 | 17 | null | 2021-09-26T13:52:18 | 2020-03-10T13:02:56 | C++ | UTF-8 | Python | false | false | 381 | py | class Solution:
def numberOfWays(self, s: str) -> int:
right_cnts = Counter(s)
left_cnts = Counter()
ret = 0
for c in s :
right_cnts[c] -= 1
if c == '0' : ret += left_cnts['1'] * right_cnts['1']
else : ret += left_cnts['0'] * right_cnts['0... | [
"noreply@github.com"
] | wisest30.noreply@github.com |
052bbab1f6d426719015437fad0b7bdf83bbc0ac | 648e5ea6722db2f29806e24f11cf169257dfc1c7 | /blogsadmin/migrations/0005_auto__add_field_position_group.py | 0ad40ed7325a477fce46b6380adef8c7a5a32b72 | [] | no_license | cash2one/doorscenter | 30d4f65e3fb57c417df3f09d7feab721d8425faa | d2771bf04aa187dda6d468883a5a167237589369 | refs/heads/master | 2021-05-27T15:38:56.219907 | 2012-06-20T05:38:15 | 2012-06-20T05:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,504 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Position.group'
db.add_column('blogsadmin_position', 'group', self.gf('django.db.models.fi... | [
"alex@altstone.com"
] | alex@altstone.com |
47a97ab6d8d5f5548aebdd21309a93628a5ddc13 | b9deb23923e6b4625ef04993b66d912594815a4c | /sftgan_handler.py | 0211a66576337831f7602d0c65fc1e05907207de | [] | no_license | previtus/SuperSuperSuperResolution | 4491ae9ab9269a0be9a3fc5a3d47a5b72b09f5b0 | 98ef3017bcf1da4f73bedb29574d00af8f895cab | refs/heads/master | 2021-11-18T20:01:27.757712 | 2021-09-17T13:22:35 | 2021-09-17T13:22:35 | 253,820,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,176 | py | import os
import glob
import numpy as np
import cv2
import torch
import torchvision.utils
from os import listdir
from os.path import isfile, join
import sys
sys.path.append(r'SFTGAN/pytorch_test/')
#from SFTGAN.pytorch_test import architectures as arch
#from SFTGAN.pytorch_test import util as util
import architectur... | [
"previtus@gmail.com"
] | previtus@gmail.com |
ecf372af2d6cf157af07fc00c931f935f1a252c8 | 696ac453ee30865980a9bd5a6fc25a1baa0f32ec | /ssd/models/ssd512.py | 4aae987f027ee31be62081601a30161af0d183f9 | [
"MIT"
] | permissive | jjjkkkjjj/pytorch_SSD | b420f82c9be0de641b0da2100ee7f399b9d595bd | 4082ea745e0ca3a95cf73a89d824cd11ceb7c180 | refs/heads/master | 2021-06-12T21:35:50.536971 | 2020-06-25T15:05:28 | 2020-06-25T15:05:28 | 254,406,062 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,406 | py | from ..core.layers import *
from .base import SSDvggBase, SSDTrainConfig, SSDValConfig, load_vgg_weights
from ..core.boxes import *
from torch import nn
class SSD512(SSDvggBase):
def __init__(self, class_labels, input_shape=(512, 512, 3), batch_norm=False,
val_config=SSDValConfig(val_conf_thresh... | [
"kado_89_ssp_jun@yahoo.co.jp"
] | kado_89_ssp_jun@yahoo.co.jp |
669f9df4e9dd7d4445d619a9df31513eff7f9760 | 2aed68d1ee14eb3fc344fe1e0db99b20f0c9a166 | /xnr/twitter/feedback_like.py | 1eb22b5a4e7e5a77903c88e07cd9307c7264e97f | [] | no_license | zhhhzhang/xnr1 | a8ab151d99e74124eae2ec15c61281a32cb9ce8d | bfa621916c9a787bcdff4573a06d12056e25c556 | refs/heads/master | 2020-03-19T04:56:22.330912 | 2018-05-30T12:00:12 | 2018-05-30T12:00:12 | 135,883,486 | 0 | 1 | null | 2018-06-03T07:35:36 | 2018-06-03T07:35:35 | null | UTF-8 | Python | false | false | 2,408 | py | #!/usr/bin/env python
#encoding: utf-8
from launcher import Launcher
from Elasticsearch_tw import Es_twitter
import time
class Like():
def __init__(self, username, password, consumer_key, consumer_secret, access_token, access_secret):
self.launcher = Launcher(username, password, consumer_key, consumer_secret, acce... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
0375651712e4ca4f0a688682437e8c6a0263b53c | 55c24645dd63a1c41037dcfb9fb45bc7bcdea4be | /venv/lib/python3.7/site-packages/virtualenv/info.py | d93b549be167f5959986545dde548e4456d6340c | [] | no_license | abdullah-nawaz/flask-boilerplate | 7c42801a21ee3e6a647cc8a7d92e0285f8e86cad | 01bc7fe1140e8ec613de4a38546a07ddfbdbd254 | refs/heads/master | 2022-12-02T05:06:08.297759 | 2020-06-24T21:36:32 | 2020-06-24T21:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | from __future__ import absolute_import, unicode_literals
import logging
import os
import platform
import sys
import tempfile
IMPLEMENTATION = platform.python_implementation()
IS_PYPY = IMPLEMENTATION == "PyPy"
IS_CPYTHON = IMPLEMENTATION == "CPython"
PY3 = sys.version_info[0] == 3
PY2 = sys.version_info[0] == 2
IS_WI... | [
"muhammadabdullah@wanclouds.net"
] | muhammadabdullah@wanclouds.net |
c385ced724613b09d739b2c164df6dc0a7c9fb32 | 6fe8250e67e46808a0f297abd38b49f65050336d | /tests/integration/__init__.py | 13b945a3c4201a757520391da34446dd3f96baf2 | [] | no_license | pitymaia/pluserable | 854fb6f220e744de87126f6a3e6429f8d1c60546 | 7a7656e66c894bc7981d6193354357014b3307c3 | refs/heads/master | 2020-08-31T08:37:45.917498 | 2019-10-22T20:23:17 | 2019-10-22T20:23:17 | 218,649,739 | 0 | 0 | null | 2019-10-31T00:09:41 | 2019-10-31T00:09:40 | null | UTF-8 | Python | false | false | 1,152 | py | """An integration test goes through several layers of production code.
It accesses a database, so it is slower than a unit test.
"""
from bag.sqlalchemy.tricks import SubtransactionTrick
from kerno.web.pyramid import IKerno
from pyramid import testing
from sqlalchemy.orm import sessionmaker
from tests import AppTest... | [
"nandoflorestan@gmail.com"
] | nandoflorestan@gmail.com |
40a96d6da20ca24cb48bf2ecfa5d1d8e91736e5c | 787ca5f82814a58c63cf3d8c0ec02082c40420de | /sbfury/golpe.py | 44f94c69909c812085dd0cff319e7226e67c4fad | [] | no_license | hugoruscitti/sbfury | 72e586354b7cb88532bcfbe5705a66b1008710cb | 474ce8304c45e63214184cde50f2976724fd8455 | refs/heads/master | 2020-06-29T19:03:25.284388 | 2013-01-02T04:15:09 | 2013-01-02T04:15:09 | 4,811,263 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | # -*- encoding: utf-8 -*-
# Shaolin's Blind Fury
#
# Copyright: Hugo Ruscitti
# Web: www.losersjuegos.com.ar
import pilas
from configuracion import DEPURACION
import efecto_golpe
import random
class Golpe(pilas.actores.Actor):
"""Representa un golpe (invisible) que un actor emite a otro."""
def __init__(self,... | [
"hugoruscitti@gmail.com"
] | hugoruscitti@gmail.com |
01509e3cb94f4932fe35bb4db8fbf15445461508 | 81eceea57d570fa1f9f6468875b1b06b8de9f0f0 | /.history/block_20200624172716.py | ca5c135349d1728a51d30bcf28a737626975d11e | [] | no_license | digg2414/python-blockchain | fe9cdab754123eddef660c39ffb4c0c6b0e99523 | 36c4df03bdd71dbd58663ee4b16f6a72f02d401f | refs/heads/master | 2022-11-05T01:08:44.229492 | 2020-06-24T23:11:41 | 2020-06-24T23:11:41 | 274,786,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import time
def mine_block(last_block, data):
"""
Mine a block based on the last_block and the data.
"""
times_stamp
class Block():
"""
Block: a unit of storage.
Store transactions in a blockchain that supports a cryptocurrency.
"""
def __init__(self, timestamp, last_hash ,dat... | [
"JHarold1241@outlook.com"
] | JHarold1241@outlook.com |
f5f7b157ea9d5a2354c0805cea334cfac3408e7b | 0a4031c062c098811c3b419b94ccf96724439107 | /json-quiz/3.py | 3792c2d4d8cd12eef82fce1a96bcc06d32b59ffc | [] | no_license | dflatow/compjour-hw | d934ac6b9d22ca923100d023809fa32103e8e74a | 4a26854769c31536247acb41b35f32fb55ab1e59 | refs/heads/master | 2020-05-05T03:17:49.699470 | 2015-06-02T02:15:55 | 2015-06-02T02:15:55 | 33,497,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import requests
import json
data_url = "http://www.compjour.org/files/code/json-examples/maps.googleapis-geocode-mcclatchy.json"
# fetch the data file
response = requests.get(data_url)
text = response.text
# parse the data
data = json.loads(text)
print('A.', data['results'][0]['formatted_address'])
print('B.', data['s... | [
"daflatow@gmail.com"
] | daflatow@gmail.com |
a8777de0fff2f753f2a10440eda5dc07631663cd | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/dataflow/stream/handlers/dataflow_yaml_execute_log.py | ec10a68c37c3a15e1547efc90d0f256f3089bb28 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 1,629 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
a5f0b3191bcadf185372843a5c817ae11372a54b | 146db0a1ba53d15ab1a5c3dce5349907a49217c3 | /omega_miya/plugins/nbnhhsh/__init__.py | 7866c153d40576e1b4b45923a629b974818a5e08 | [
"Python-2.0",
"MIT"
] | permissive | hailong-z/nonebot2_miya | 84d233122b2d785bfc230c4bfb29326844700deb | 7d52ef52a0a13c5ac6519199e9146a6e3c80bdce | refs/heads/main | 2023-03-26T14:59:31.107103 | 2021-03-09T17:01:08 | 2021-03-09T17:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,827 | py | import re
from nonebot import on_command, export, logger
from nonebot.typing import T_State
from nonebot.adapters.cqhttp.bot import Bot
from nonebot.adapters.cqhttp.event import GroupMessageEvent
from nonebot.adapters.cqhttp.permission import GROUP
from omega_miya.utils.Omega_plugin_utils import init_export
from omega_... | [
"ailitonia@gmail.com"
] | ailitonia@gmail.com |
29d68c117848a99093caea9576f255c3fd233bb3 | c7fc1265dd09cae456c978c09643811bf3aa89d7 | /mileage_cal.py | 722bfc599c73d4858c72caed5ac2bbc36aa3fabd | [] | no_license | chandraprakashh/Data_Handling | e136c6bc188506ca6660becd434d5a17bed8e199 | 59f43288dea379f8fe0bb0fe01b17d0e5e99e057 | refs/heads/master | 2020-07-18T18:11:25.908312 | 2020-01-13T10:24:51 | 2020-01-13T10:24:51 | 206,290,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
"""
1.Code Challenge
Name:
Gas Mileage Calculator
Filename:
mileage_cal.py
Problem Statement:
Assume my car travels 100 Kilometres after putting 5 litres of fuel.
Calculate the average of my car.
... | [
"noreply@github.com"
] | chandraprakashh.noreply@github.com |
4abd4f456948302874dfdc97f41babf31670d96a | 4786fe9537fbcb50b7490f7f95624e9c8589801f | /ex21a.py | b80932994d975a1f5b8f8cfd3bbc785b73fc603b | [] | no_license | dbialon/LPTHW | 075e5a82c541dd277ee30f5ebbc221e30c63e29e | 3e6674cded2bcd90d4a098efd00a71abeb33bdc5 | refs/heads/master | 2022-06-07T02:14:18.180807 | 2020-05-02T13:30:52 | 2020-05-02T13:30:52 | 259,911,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | def add(a, b):
print(f"ADDING {a} + {b}")
return a + b
def subtract(a, b):
print(f"SUBTRACTING {a} - {b}")
return a - b
def multiply(a, b):
print(f"MULTIPLYING {a} * {b}")
return a * b
def divide(a, b):
print(f"DIVIDING {a} / {b}")
return a / b
print("""
This programm will execute the... | [
"dbialon79@outlook.com"
] | dbialon79@outlook.com |
8f45532721df9ce375e512eac8e8b5d2f48bbfcc | fe2eef159f7e75b6a3b4ecbacab53a19df33b8eb | /setup.py | 3c3eff7248dd676186f2778a2b4149610c6dc6e0 | [
"MIT"
] | permissive | a1fred/django-model-render | 6b9572ff26ced93e6de0aa15ac97fef1217ebeba | 0912b2ec9d33bada8875a57f7af9eb18d24e1e84 | refs/heads/master | 2020-09-12T19:23:57.847976 | 2017-01-02T20:49:20 | 2017-01-02T20:49:20 | 32,887,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
requirements = [
'django>=1.4',
]
setup(
name='django-model-render',
version='0.5',
description='Django models extension that allows define default model templates',
author='a1fred',
author_email='demalf@gmail.com',
li... | [
"demalf@gmail.com"
] | demalf@gmail.com |
c174a2e44b99cb6349ff944069b1b602555b46c7 | 892c35f72f46f145c3f3860c1c29f1f4503ef9a6 | /search/search.py | fb2fa2520ad49d842fb5e069fbe0011cfdf4eb90 | [] | no_license | pymmrd/tuangou | aaa2b857e352f75f2ba0aa024d2880a6adac21a8 | 8f6a35dde214e809cdd6cbfebd8d913bafd68fb2 | refs/heads/master | 2021-01-10T20:31:55.238764 | 2013-11-13T13:53:53 | 2013-11-13T13:53:53 | 7,911,285 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | import re
import string
from django.db.models import Q
from django.conf import settings
from tuangou.search.models import SearchTerm
from tuangou.stats.utils import stats
from tuangou.utils.location import get_current_city
def store(request, q):
#if search term is at least three chars long, store in db
if len... | [
"zg163@zg163-Lenovo-IdeaPad-Y470.(none)"
] | zg163@zg163-Lenovo-IdeaPad-Y470.(none) |
326f5de126d44ed5c242cb25b5cef8c4788a9c97 | fffcc24d7c3fbadd615db1c2de632ebec72b92da | /cgi-bin/simpletemplate.py | 3551d703604abe395986350f77e0ad80b887ef96 | [] | no_license | kimihito/minpy | 35a5cf1596979e3bc57d6bfb6fcded03ae10f0d3 | 6273d43f65279d800a37a5dd9b34488d2cea54a1 | refs/heads/master | 2016-08-08T02:10:02.967527 | 2012-06-11T13:57:23 | 2012-06-11T13:57:23 | 4,147,292 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,517 | py | #!/usr/bin/env python
# coding: utf-8
import re
if_pat=re.compile(r"\$if\s+(.*\:)")
endif_pat=re.compile(r"\$endif")
for_pat=re.compile(r"\$for\s+(.*)\s+in\s+(.*\:)")
endfor_pat=re.compile(r"\$endfor")
value_pat=re.compile(r"\${(.+?)}")
class SimpleTemplate(object):
"""
シンプルな機能を持つテンプレートエンジン
"""
def _... | [
"tatsurotamashiro@gmail.com"
] | tatsurotamashiro@gmail.com |
7f329a56f3c63d6f634c341fe1ee1a609f562304 | eef39fd96ef4ed289c1567f56fde936d5bc42ea4 | /BaekJoon/Bronze2/15969.py | 803573cbb6d19798b9968fcd14d2be7454bafc32 | [] | no_license | dudwns9331/PythonStudy | 3e17da9417507da6a17744c72835c7c2febd4d2e | b99b9ef2453af405daadc6fbf585bb880d7652e1 | refs/heads/master | 2023-06-15T12:19:56.019844 | 2021-07-15T08:46:10 | 2021-07-15T08:46:10 | 324,196,430 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | # 행복
"""
2021-01-22 오전 1:37
안영준
문제
코이 초등학교에 새로 부임하신 교장 선생님은 어린 학생들의 행복감과 학생들의 성적 차이 관계를 알아보기로 했다.
그래서 이전 성적을 조사하여 학생 들의 시험 점수 차이 변화를 알아보려고 한다.
예를 들어서 2016년 학생 8명의 점수가 다음과 같다고 하자.
27, 35, 92, 75, 42, 53, 29, 87
그러면 가장 높은 점수는 92점이고 가장 낮은 점수는 27점이므로 점수의 최대 차이는 65이다.
한편 2017년 학생 8명의 점수가 다음과 같았다.
85, 42, 79, 95, 37, 11, 7... | [
"dudwns1045@naver.com"
] | dudwns1045@naver.com |
d830da1f9d9e07fe504090cca4bc6f96ec19b136 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/SsdataDataserviceRiskAntifraudscoreQueryResponse.py | eb88453a0ac5e908d0040c632adda75bafe8c3cc | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,247 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class SsdataDataserviceRiskAntifraudscoreQueryResponse(AlipayResponse):
def __init__(self):
super(SsdataDataserviceRiskAntifraudscoreQueryResponse, self).__init__()
self._b... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
675dda5c8c83bf0f987ede0d78116c521d6932a4 | a6c0bb39fe1f5218094f9d8a728d32c7348414b8 | /timesformer_pytorch/timesformer_pytorch.py | dfbbfbb447de3d906549636f03dc5833d4f4c0ce | [
"MIT"
] | permissive | Willforcv/TimeSformer-pytorch | 042f23cd4e02e973fc0374579f18a4b529309edb | 4e4a60d4876a45cceddcf8af514eb39eac40ff96 | refs/heads/main | 2023-03-20T16:54:42.934377 | 2021-03-21T19:14:02 | 2021-03-21T19:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,494 | py | import torch
from torch import nn, einsum
import torch.nn.functional as F
from einops import rearrange, repeat
# classes
class RMSNorm(nn.Module):
def __init__(self, dim, eps = 1e-8):
super().__init__()
self.scale = dim ** -0.5
self.eps = eps
self.g = nn.Parameter(torch.ones(1))
... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
c8aa130be7fae098e4c52b4cee2c663da7e8857d | 50ba981bc65efea92f61c698cecfbbe3214a724e | /Django_DB_Backup/App/views.py | f634d2abf55cd3aa4e2af403c7b5c2c6d7ea4e24 | [] | no_license | shubhamjain31/demorepo | ff0a4283fc866ea94df1c340da430271daf93cb6 | 90639b8622e68155ff19bfec0bb6925b421f04cf | refs/heads/master | 2023-04-27T03:42:10.057387 | 2022-06-28T06:14:44 | 2022-06-28T06:14:44 | 229,792,545 | 1 | 0 | null | 2023-04-21T21:36:24 | 2019-12-23T17:04:22 | Python | UTF-8 | Python | false | false | 2,012 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from itertools import chain
from django.contrib.auth.models import User
from django.views.decorators.csrf import csrf_exempt
from django.core import serializers
from django.contrib.admin.utils import NestedObjects
from djan... | [
"sj27754@gmail.com"
] | sj27754@gmail.com |
29f5a4ba9b7219b748f52e07f89157085e7a71a9 | 60c39402b6c957e5dfae0c63b5d7af13d9ba9350 | /man_in_the_middle.py | 8bd0947f1e8e9f0ddc3b0bb140e90309fd35c323 | [] | no_license | palex88/deauth | 91747ac1a0143c7601351ebdd874b5e748380d06 | 70365da4841b75d46223cb84aa154705aa482fdb | refs/heads/master | 2020-03-10T23:39:30.274222 | 2018-05-07T05:38:47 | 2018-05-07T05:38:47 | 129,645,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,989 | py | # !usr/bin/env/python
#
# File: man_in_the_middle.py
# Author: Alex Thompson
# Github: palex88@github.com
# Python Version: 2.7
# Purpose: This script runs a man in the middle attack. It finds the local network IP and MAC addresses, then displays
# to the user all the devices connected to the netw... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
26bc1342180ebbe498f0c43171c93b41246741b6 | 8f4c691f190a1d4ffd4261ea6dca6a2d3a96284c | /csa/csa/doctype/coach/test_coach.py | 0237f9215f3d3c946814d85ca059dd549fb3f4eb | [
"MIT"
] | permissive | Jishnu70055/usermanagement | 57abb738160fb213acdc2c71b40244eae4b06cee | f7b526335c2b99899afac188696071fa35df09ca | refs/heads/master | 2023-09-03T17:30:50.147750 | 2021-10-21T13:27:38 | 2021-10-21T13:27:38 | 399,362,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # Copyright (c) 2021, s and Contributors
# See license.txt
# import frappe
import unittest
class TestCoach(unittest.TestCase):
pass
| [
"jishnudq70055@gmail.com"
] | jishnudq70055@gmail.com |
b2253842a0e9b8288ac8ee0d30df524f7b9ba0b0 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /045_functions/011_function_introspection/_exercises/inspect — Inspect Live Objects/017_inspect_getclasstree_unique.py | ebbf5718b636badc01d294b99ee8331e6cc56fb7 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 159 | py | # ______ i....
# ______ example
# f... inspect_getclasstree _______ 0
#
# print_class_tree(i___.getclasstree(
# |ex___.A ex____.B C D|
# u..._T...
# )) | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
fbe3f086830981b67b0ff4d35dbfd848f1e762ad | 9c4828f1caf252c49c16ee7c5d73353f7b820785 | /EducationaldataofBD/venv/main.py | 7ab1dbbc43bcb8d95d50371d680f2e2c8d018812 | [] | no_license | pronob1010/Data_Science_Project_with_Edu_data | 44459dd3d27f5fcba4f7a810671fe0e2e481b6c1 | a4c6d1ac430f332eff5435318c86e82e70e7d765 | refs/heads/master | 2022-12-26T12:08:59.221010 | 2020-10-08T15:14:43 | 2020-10-08T15:14:43 | 298,825,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import csv
country = pd.read_csv('C:\\Users\\prono\\PycharmProjects\\EducationaldataofBD\\venv\\dataset1.csv')
df = country.head(5900)
df = df.set_index(["EIIN"])
sd = df.reindex(columns=['DIVISION','INSTITUTE_TYPE','DISTRICT'])
print(sd)
print("--... | [
"pronobmozumder.info@gmail.com"
] | pronobmozumder.info@gmail.com |
106d49eb14aff65452fe4cd74937e87eeea8b07e | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /115_testing/examples/Github/_Level_1/unittest-testsuite-example-master/app/foo_tests.py | d884126e6c468ffaf2c16c987e6331bddcc6897e | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 268 | py | # -*- coding: utf-8 -*-
import unittest
import foo
class TestFoo(unittest.TestCase):
def setUp(self):
self.FOO = foo.Foo()
def test_foo(self):
self.assertEqual(self.FOO.foo(),'foo')
if __name__ == '__main__':
unittest.main() | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
ef7be56fb5d9456857d6f97b035f6216b0f4c322 | 6f8906230f03d4d3616e7ad04d7a54c2e55fb3e8 | /profiles/migrations/0007_auto_20210201_1849.py | e1dc6a7fbb5379afc379eedc29eeb1f079b92e0b | [] | no_license | sanidhyaagrawal/tergum-shared | 8c45d95cb3510dc72f787c92fef4951c341ccc4c | 8ab3a527fcc6c400ca1e11d93353afea466366c7 | refs/heads/main | 2023-05-09T14:46:46.185172 | 2021-06-02T15:15:13 | 2021-06-02T15:15:13 | 342,639,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # Generated by Django 3.0.8 on 2021-02-01 13:19
from django.db import migrations, models
import profiles.models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0006_auto_20210127_2212'),
]
operations = [
migrations.AlterField(
model_name='profile',
... | [
"sanidhya7921@gmail.com"
] | sanidhya7921@gmail.com |
911a983b38870d5b30029913df017ccfc099817a | 549d8be84d27a1d6890c8539a519e58bd355351d | /examples/Serverless_Api_Backend.py | a0a2afbb3626a21ea3f17b0f3d8c9aa196248301 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | anoora17/troposphere | 1dabd3b4da89c593444c1564ef13fdae6e61acff | 47db869b2875b9517df5fdd90d5e15505a555b09 | refs/heads/master | 2020-03-17T23:32:55.048454 | 2018-05-17T17:24:39 | 2018-05-17T17:24:39 | 134,050,719 | 1 | 0 | BSD-2-Clause | 2018-05-19T10:05:51 | 2018-05-19T10:05:51 | null | UTF-8 | Python | false | false | 2,212 | py | # Converted from api_backend located at:
# https://github.com/awslabs/serverless-application-model/blob/dbc54b5d0cd31bf5cebd16d765b74aee9eb34641/examples/2016-10-31/api_backend/template.yaml
from troposphere import Template, Ref
from troposphere.awslambda import Environment
from troposphere.serverless import Function,... | [
"mark@peek.org"
] | mark@peek.org |
b146a8d58b6c44b8b91c6e10e0eee5d3ae1c1e03 | 365967082720f3fda31afccfc237b7a67e8ffc07 | /sorting_searching/peak.py | dd2d896b427e16191838c3197c5819483f3b6557 | [] | no_license | hulaba/geekInsideYou | ec68dee3fa24d63f5470aa40b600ef34d37c5da1 | 72c1f1b4fbf115db91c908a68c9ac3ca4cb22a4f | refs/heads/master | 2022-12-11T11:11:03.149336 | 2020-09-12T16:12:40 | 2020-09-12T16:12:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | # your task is to complete this function
# function should return index to the any valid peak element
def peakElement(arr, n):
# Code here
if n is 1:
return 0
for i in range(n):
# if element at first index is greater than next
if i == 0 and arr[1] < arr[0]:
return 0
... | [
"nainamehta2110@gmail.com"
] | nainamehta2110@gmail.com |
5cad52e17f840954f11e4f3480533211c904549e | 956cc6ff2b58a69292f7d1223461bc9c2b9ea6f1 | /monk/system_unit_tests/pytorch/test_activation_softmin.py | cde9b1d95f3da0fc6c01dd83ce0386fe8fc78a97 | [
"Apache-2.0"
] | permissive | Aanisha/monk_v1 | c24279b2b461df9b3de2984bae0e2583aba48143 | c9e89b2bc0c1dbb320aa6da5cba0aa1c1526ad72 | refs/heads/master | 2022-12-29T00:37:15.320129 | 2020-10-18T09:12:13 | 2020-10-18T09:12:13 | 286,278,278 | 0 | 0 | Apache-2.0 | 2020-08-09T16:51:02 | 2020-08-09T16:51:02 | null | UTF-8 | Python | false | false | 1,348 | py | import os
import sys
sys.path.append("../../../../monk_v1/");
sys.path.append("../../../monk/");
import psutil
from pytorch_prototype import prototype
from compare_prototype import compare
from common import print_start
from common import print_status
import torch
import numpy as np
from pytorch.losses.return_loss im... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
45d620d1e60cd162a992f66503976015885c17a8 | 60cbdf1f9771159f872e632017fa736800784297 | /Leetcode/Check-if-the-Sentence-is-Pangram.py | fe3da8ce862e017efe6b6dd38769acb3b97e5a82 | [] | no_license | AG-Systems/programming-problems | 6ea8c109f04c4d22db6e63fe7b665894c786242a | 39b2d3546d62b48388788e36316224e15a52d656 | refs/heads/master | 2023-04-16T16:59:20.595993 | 2023-04-05T01:25:23 | 2023-04-05T01:25:23 | 77,095,208 | 10 | 3 | null | 2019-10-14T16:16:18 | 2016-12-22T00:03:14 | Python | UTF-8 | Python | false | false | 332 | py | class Solution:
def checkIfPangram(self, sentence: str) -> bool:
letter_counter = {}
for letter in sentence:
if letter in letter_counter:
letter_counter[letter] += 1
else:
letter_counter[letter] = 1
return len(letter_counter.ke... | [
"noreply@github.com"
] | AG-Systems.noreply@github.com |
0ae5585fb9e152b45e4cc381b1aea2c6b8c650fe | 18b250fe572223ade49c2cf995e0aad0613abc6a | /scripts/artifacts/vlcThumbs.py | 5a1156c12cdf50a0855a63068213cc7f249375c2 | [
"MIT"
] | permissive | ydkhatri/ALEAPP | e79e558005bf92519e45b17be99ad13aabf4f25e | 4f2a739d6accd832176cac8db72cded07fb17633 | refs/heads/master | 2022-08-19T07:14:59.669286 | 2022-07-26T03:09:16 | 2022-07-26T03:09:16 | 242,858,450 | 0 | 0 | MIT | 2021-03-19T16:09:59 | 2020-02-24T22:33:34 | JavaScript | UTF-8 | Python | false | false | 1,337 | py | import os
import shutil
from scripts.artifact_report import ArtifactHtmlReport
from scripts.ilapfuncs import timeline, tsv, is_platform_windows, open_sqlite_db_readonly
def get_vlcThumbs(files_found, report_folder, seeker, wrap_text):
data_list = []
for file_found in files_found:
file_found = str(fil... | [
"abrignoni@gmail.com"
] | abrignoni@gmail.com |
9af56f4a07be6988eb257460a4bda61c2d12b231 | abf3ea33a5fa7457d1cd735310700df9c784d1ae | /CST100/Chapter_4/Chapter_4/Ch_4_Solutions/Ch_4_Projects/4.11/testnode.py | fbe1aafaeffff3f7a79626078998ce6c7db6794c | [] | no_license | hieugomeister/ASU | 57b8a2f604a27ce339675f40d3b042ccf57efb86 | 3e9254cebeaeb1c57ae912d6e5a02af7531128e8 | refs/heads/master | 2020-12-30T16:59:17.801581 | 2017-05-12T22:44:44 | 2017-05-12T22:44:44 | 91,046,525 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,934 | py | """
File: testnode.py
Project 4.11
Add a makeTwoWay function.
Tests the Node class.
"""
from node import Node, TwoWayNode
def length(head):
"""Returns the number of items in the linked structure
referred to by head."""
probe = head
count = 0
while probe != None:
count += 1
probe ... | [
"hieupham45@gmail.com"
] | hieupham45@gmail.com |
c3403fa8e1e383b59e7d439c6a8cb4257c367515 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4466/codes/1734_2506.py | 7e3f3e2a8fa3a6b63bd10bd541c82d212da44969 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | q_inicial = int(input("quantidade inicial: "))
perc = float(input("percentual de crescimento: "))
quant = int(input("quantidade de pirarucus retirados: "))
perc = perc/100
t = 0
while(0 <= q_inicial <= 12000):
q_inicial = (q_inicial + q_inicial * perc) - quant
t = t + 1
if(q_inicial <= 0):
print("EXTINCAO")
print(t... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
eb93813e0136a34f5b51222dd6b5c3141c7b1d1c | eb280992ab7c39173f6f19d28ddf7efd8a29775a | /calaccess_processed_elections/apps.py | b93b394463300e21fac2cb0fa5fcc3069b0c68f6 | [
"MIT"
] | permissive | ryanvmenezes/django-calaccess-processed-data | f5e99a8bdaf7c6555e357d3dabfd673fd12b8419 | 966635c8438cda440a12f7765af7c79b5bcb3995 | refs/heads/master | 2020-04-14T22:41:49.520588 | 2018-10-10T12:07:57 | 2018-10-10T12:07:57 | 99,171,493 | 0 | 0 | null | 2017-08-03T00:02:03 | 2017-08-03T00:02:03 | null | UTF-8 | Python | false | false | 3,720 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Basic configuration for the application.
"""
from __future__ import unicode_literals, absolute_import
import os
import collections
from django.apps import apps
from django.apps import AppConfig
class CalAccessProcessedElectionsConfig(AppConfig):
"""
Applicatio... | [
"ben.welsh@gmail.com"
] | ben.welsh@gmail.com |
4f54753f579ffb5420f90b1d8b8a3f5e105c7783 | 34652a47355a8dbe9200db229a1bbc62619de364 | /Algorithms/eppstein/PartitionRefinement.py | 25028f7afc76ad44dc47c9bfdac0723cd00e2448 | [
"MIT"
] | permissive | btrif/Python_dev_repo | df34ab7066eab662a5c11467d390e067ab5bf0f8 | b4c81010a1476721cabc2621b17d92fead9314b4 | refs/heads/master | 2020-04-02T13:34:11.655162 | 2019-11-10T11:08:23 | 2019-11-10T11:08:23 | 154,487,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | """PartitionRefinement.py
Maintain and refine a partition of a set of items into subsets,
as used e.g. in Hopcroft's DFA minimization algorithm,
modular decomposition of graphs, etc.
D. Eppstein, November 2003.
"""
class PartitionError(Exception): pass
class PartitionRefinement:
"""Maintain and refine a partiti... | [
"bogdan.evanzo@gmail.com"
] | bogdan.evanzo@gmail.com |
3f9d7d0aaff42ecd58b1353b226c30457aefb554 | 2fba0a631bb70aaae6dc89bff09f13e728934605 | /privacy/migrations/0022_auto_20200527_0909.py | 2f9d37c178d9929cd0adc472a56bc0457b5f6116 | [] | no_license | murengera/eshoping-api | 4c5bcbeb7ac3ef12858e08f8a88d4f7b710b5c64 | 90acb0f8db519a38a1bd0976bd1f704f6d02f2dd | refs/heads/master | 2022-12-25T10:19:39.431427 | 2020-09-26T12:35:38 | 2020-09-26T12:35:38 | 286,399,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # Generated by Django 3.0 on 2020-05-27 07:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('privacy', '0021_auto_20200527_0908'),
]
operations = [
migrations.AlterField(
model_name='privacypoliciesandtermsofuse',
... | [
"daltonbigirimana5@gmail.com"
] | daltonbigirimana5@gmail.com |
5b89414e459547981f97861a6da0ef73ea51b958 | 2db1a0038d26ccb6adc572b536cb5cd401fd7498 | /lib/python2.7/site-packages/pip/commands/check.py | 95c64fc66c74741bc3e23fd86868dac809cb4f94 | [] | no_license | syurk/labpin | e795c557e7d7bcd4ff449cb9a3de32959a8c4968 | 04070dd5ce6c0a32c9ed03765f4f2e39039db411 | refs/heads/master | 2022-12-12T02:23:54.975797 | 2018-11-29T16:03:26 | 2018-11-29T16:03:26 | 159,692,630 | 0 | 1 | null | 2022-11-19T12:15:55 | 2018-11-29T16:04:20 | Python | UTF-8 | Python | false | false | 1,381 | py | import logging
from pip.basecommand import Command
from pip.operations.check import check_requirements
from pip.utils import get_installed_distributions
logger = logging.getLogger(__name__)
class CheckCommand(Command):
"""Verify installed packages have compatible dependencies."""
name = 'check'
usage = ... | [
"syurk738@students.bju.edu"
] | syurk738@students.bju.edu |
c59b76f55ddc99b1693010dc6662d175c45b7f65 | 69e41359e2f01ffb12e243970a59e6fcc986e09a | /solved/Euler56.py | 87493072ac091de2dbfdf3fae52aa0ea07e77c2d | [] | no_license | pfhayes/euler | 0d4383f9cfa36890bdaf95bfdae553707c6cbc86 | 56f053afffb91262c7c48463700cab4fe6581813 | refs/heads/master | 2016-09-05T13:18:46.089574 | 2011-12-21T05:26:41 | 2011-12-21T05:26:41 | 1,786,274 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | # Find the maximum possible sum of digits for a^b, with a,b < 100
from useful import digits
maxA, maxB, maxSum = 0,0,0
for a in range (100) :
for b in range(100) :
s = sum(digits(a**b))
maxSum = max([s,maxSum])
if s == maxSum :
maxA = a
maxB = b
print maxSum, a, b | [
"pfhayes@gmail.com"
] | pfhayes@gmail.com |
49445015f0ed16f52b4534b346d9f4cc8f0baa8b | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_read_1/client-vpn-connection_list.py | 0a5a1dfa2928044398a0fafaa19dbe1a6072d131 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import execute_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-client-vpn-connections.html
if _... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
e12543041d44d3cb9be84a8134ebde85793d5476 | 1f79d9d02810a944c45fc962c62159035c5a2247 | /migrations/versions/2ce138017f09_.py | 44945f5b6e86b3a8d3d753b01cce2d62c3c70333 | [] | no_license | qsq-dm/mff | 5f17d6ffd1d4742dc46d1367cff35233af08a450 | d7f1e6f3fba95fe0d8ebb8937dda64a17e71f048 | refs/heads/master | 2020-12-29T02:19:29.037394 | 2016-08-01T15:40:42 | 2016-08-01T15:40:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | """empty message
Revision ID: 2ce138017f09
Revises: 38dd6746c99b
Create Date: 2015-12-10 19:14:00.636524
"""
# revision identifiers, used by Alembic.
revision = '2ce138017f09'
down_revision = '38dd6746c99b'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | [
"root@localhost"
] | root@localhost |
98dc97fd83c006e87c1140e8bd0d5d01343a1be4 | 289e6f9cf1d37fffb45810144e1a15f0de5c19d5 | /chiro/import_chiro.py | 0c60ee96d0de34304dd138784cf52fae28a9e7a1 | [
"MIT",
"CC0-1.0"
] | permissive | chemical-roles/chemical-roles | 4eb912d6cc767f465e0e35e34d0c803a96e4d4f3 | 78801264a94a8b2b43ff553020483dd2ef9af993 | refs/heads/master | 2023-04-11T14:40:53.846885 | 2022-09-02T11:56:06 | 2022-09-02T11:56:06 | 199,155,107 | 6 | 5 | MIT | 2021-08-04T09:14:34 | 2019-07-27T11:17:57 | Python | UTF-8 | Python | false | false | 1,492 | py | import logging
from pyobo import get_id_name_mapping, get_obo_graph
RELATIONSHIPS = [
"activator_of",
"agonist_of",
"antagonist_of",
"destabilizer_of",
"inducer_of",
"inhibitor_of",
"modulator_of",
"sensitizer_of",
"stabilizier_of",
]
MAPPING_PREFIXES = ["ncbitaxon", "go", "pr", "... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
c79714327ccf731a9a7f8568306169ba46c9dba8 | 84f2cdc80da796b38433e88d9145cbd797e85f42 | /flaws/asttools.py | c4a8cb3502876a4d90fce1e613bde8734d777a52 | [
"BSD-2-Clause"
] | permissive | EricSchles/flaws | 3be808d37fa1bfd050fa8e0ec3791ab7ee1e5365 | a6de9c2c2a89f79bd67a20535cea6a9ca677f357 | refs/heads/master | 2021-01-17T08:05:27.603218 | 2014-08-23T08:07:52 | 2014-08-23T08:07:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | import ast
def is_write(node):
return isinstance(node, (ast.Import, ast.ImportFrom,
ast.FunctionDef, ast.ClassDef, ast.arguments)) \
or isinstance(node.ctx, (ast.Store, ast.Del, ast.Param))
def is_use(node):
return isinstance(node, ast.Name) \
and isinstance(node.c... | [
"suor.web@gmail.com"
] | suor.web@gmail.com |
cbfc0f372350492bb4d3e472bf7a52dee56b078a | f3188f1f9da38f995bd65a423b2cc1cd1c31c55f | /PythonLeetcode/BinarySearch/easy/744. 寻找比目标字母大的最小字母.py | e5560199093099a93e75b3f4098cec0ae680a596 | [
"MIT"
] | permissive | Lcoderfit/Introduction-to-algotithms | 34be05019870b6d4d967b0112e7953829448cdb0 | aea2630be6ca2c60186593d6e66b0a59e56dc848 | refs/heads/master | 2023-05-11T01:01:09.222149 | 2021-10-13T03:16:40 | 2021-10-13T03:16:40 | 146,017,809 | 3 | 1 | MIT | 2023-05-05T02:22:34 | 2018-08-24T16:56:13 | Go | UTF-8 | Python | false | false | 1,829 | py | """
方法1: 二分查找
时间复杂度:O(logn)
空间复杂度:O(1)
方法2: 线性扫描
时间复杂度:O(n)
空间复杂度:O(1)
case1:
a
c f j
case 2:
c
c f j
case 3:
d
c f j
case 4:
g
c f j
case 5:
j
c f j
case 6:
k
c f j
"""
import sys
from typing import List
class Solution:
@staticmethod
def next_greatest_letter(letters: List[str], target: str) -> str:
... | [
"1297611505@qq.com"
] | 1297611505@qq.com |
5eb112988098db6980600c2ca4c2ab2b15e030fc | 11705b5971757122772cc420912b509b1f39255c | /web/service/github/api/v3/repositories/Repositories.py | bc527209990819a483f3582a0a1b6414ed875d15 | [
"CC0-1.0",
"Unlicense",
"Apache-2.0",
"MIT"
] | permissive | ytyaru/GitHub.Upload.Delete.CommentAndFile.201703281815 | 4bff9cba1e6bb2bec596d1190eb653169a01c839 | ce4d6c3830bff9d9c152d1d6224ad317f46ea778 | refs/heads/master | 2021-01-20T08:54:00.762565 | 2017-05-03T22:37:38 | 2017-05-03T22:37:38 | 90,199,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,598 | py | #!python3
#encoding
import requests
import urllib.parse
import json
import web.http.Response
class Repositories:
def __init__(self, data, reqp, response):
self.data = data
self.reqp = reqp
self.response = response
def create(self, name, description=None, homepage=None):
... | [
"ytyaru@outlook.jp"
] | ytyaru@outlook.jp |
10c388059eabb303f3a11a60b8fac735303683bb | e828fca9d0622710b43222c377adf954df072220 | /shabanipy/quantum_hall/conversion.py | acaf9ac2185f0ef01f596d08336c2ef3d946b958 | [
"MIT"
] | permissive | jnt299/shabanipy | f42cb4abb648e1ce42501a4d1187a74f2a78011c | 1c2b5b861849ccf76b5ea6aaf0fcbf429aa6bfcf | refs/heads/master | 2022-11-30T17:58:22.295183 | 2020-08-13T19:56:37 | 2020-08-13T19:56:37 | 288,523,531 | 1 | 0 | null | 2020-08-18T17:41:35 | 2020-08-18T17:41:34 | null | UTF-8 | Python | false | false | 3,538 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2019 by ShabaniPy Authors, see AUTHORS for more details.
#
# Distributed under the terms of the MIT license.
#
# The full license is in the file LICENCE, distributed with this software.
# ----------------... | [
"marul@laposte.net"
] | marul@laposte.net |
54b6d697974e94e58e1db9e716971b7d5af3e9b6 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/list_issue_comments_v4_request.py | 52fa5da1dc3b94983d614e5dad194057809f34b9 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 4,887 | py | # coding: utf-8
import pprint
import re
import six
class ListIssueCommentsV4Request:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and t... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
24ab81ff2c511dd5587eebf58083e235fd9bdec7 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fc/apinninglbl.py | f7b4c92b96d82adacf7230e8ed621d61e9384b9f | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,523 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
31212698b833a9003fd16b7a5fc99096aa8e5d13 | b39b0625795b0640a6a68151f2012ce139f423b8 | /iaas/test/test_flavor_profile_api.py | 095a47c5a2b57f517a3c35c6945e5b54508299a9 | [] | no_license | darrylcauldwell/casCodegen | 8e82b1f08e8260482996aec3d8be10934a65dd03 | 1f1ff9ab8a33102bcfcb8be276d51992d96bcb61 | refs/heads/master | 2020-07-27T14:42:28.550855 | 2019-09-17T18:30:28 | 2019-09-17T18:30:28 | 209,127,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | # coding: utf-8
"""
VMware Cloud Assembly IaaS API
A multi-cloud IaaS API for Cloud Automation Services # noqa: E501
OpenAPI spec version: 2019-01-15
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_cli... | [
"dcauldwell@dcauldwell-a01.vmware.com"
] | dcauldwell@dcauldwell-a01.vmware.com |
1ba90dd656c8980eff31b4972d50accaaff84971 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Quantization/trend_MovingAverage/cycle_30/ar_/test_artificial_1024_Quantization_MovingAverage_30__20.py | 1d8cd7fcd6989efe67729b85e14bd6887518a581 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 273 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 30, transform = "Quantization", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
e0d15eea5b6d89432ba750f5c3a61bdb7bd0ce84 | 730103ddecd23142238defe2a2b1ab3c582cdc45 | /onnx2tf/ops/ReverseSequence.py | c2c8dc8337c257539be89abccb5dab2eb3372482 | [
"Apache-2.0",
"MIT"
] | permissive | PINTO0309/onnx2tf | dcfb0fd8a4810ef1262aa565ba42b5124012bdb2 | b0e7d106cc69c0ea0fd464c4dd9064a5b0d6668b | refs/heads/main | 2023-08-30T23:28:56.386741 | 2023-08-29T01:48:40 | 2023-08-29T01:48:40 | 541,831,874 | 345 | 45 | MIT | 2023-09-14T16:53:12 | 2022-09-27T00:06:32 | Python | UTF-8 | Python | false | false | 3,308 | py | import random
random.seed(0)
import numpy as np
np.random.seed(0)
import tensorflow as tf
import onnx_graphsurgeon as gs
from onnx2tf.utils.common_functions import (
get_constant_or_variable,
print_node_info,
inverted_operation_enable_disable,
make_tf_node_info,
get_replacement_parameter,
pre_pr... | [
"rmsdh122@yahoo.co.jp"
] | rmsdh122@yahoo.co.jp |
979b699a367d604f9353cf9805004d4f0d43b7c5 | 966280ab617298a3ced79bc60189b301c795067a | /Sliding-Window/239_sliding_window_maximum.py | 445ece104ef138fc8ad1d83b3627505908fe52ce | [] | no_license | Rishabhh/LeetCode-Solutions | c0382e5ba5b77832322c992418f697f42213620f | 2536744423ee9dc7da30e739eb0bca521c216f00 | refs/heads/master | 2020-06-10T02:37:42.103289 | 2019-05-29T06:38:02 | 2019-05-29T06:38:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | import collections
class Solution:
def max_sliding_window(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: List[int]
"""
res = []
q = collections.deque()
n = len(nums)
for i in range(n):
while q and q[-1][1] <= nums... | [
"weihewang2012@gmail.com"
] | weihewang2012@gmail.com |
c16526cc565c48f7f41dbc963e284d4f5ce44160 | 3e1fcf34eae508a3f3d4668edfb334069a88db3d | /court_scraper/configs.py | 3c97d17d3c3bde34e18c1f667fb59a09be10a102 | [
"ISC"
] | permissive | mscarey/court-scraper | 26d32cb7354b05bb5d5d27a55bf4042e5dde1a4d | e29135331526a11aa5eb0445a9223fc3f7630895 | refs/heads/main | 2023-07-14T20:23:33.488766 | 2020-08-31T14:02:19 | 2020-08-31T14:02:19 | 384,977,976 | 0 | 0 | ISC | 2021-07-11T15:04:57 | 2021-07-11T15:04:57 | null | UTF-8 | Python | false | false | 539 | py | import os
from pathlib import Path
class Configs:
def __init__(self):
try:
self.cache_dir = os.environ['COURT_SCRAPER_DIR']
except KeyError:
self.cache_dir = str(
Path(os.path.expanduser('~'))\
.joinpath('.court-scraper')
)
... | [
"zstumgoren@gmail.com"
] | zstumgoren@gmail.com |
a94d4f6646875930d94d09068b21013e8e11c0b4 | 19d47d47c9614dddcf2f8d744d883a90ade0ce82 | /pynsxt/swagger_client/models/app_info_host_vm_list_in_csv_format.py | c68bd8aec7c8d133e43bc961f5b83387b9a11720 | [] | no_license | darshanhuang1/pynsxt-1 | 9ed7c0da9b3a64e837a26cbbd8b228e811cee823 | fb1091dff1af7f8b8f01aec715682dea60765eb8 | refs/heads/master | 2020-05-25T14:51:09.932853 | 2018-05-16T12:43:48 | 2018-05-16T12:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,356 | py | # coding: utf-8
"""
NSX API
VMware NSX REST API # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from swagger_client.models.app_info_host_vm_csv_record import AppInfoHostVmCsvRecord... | [
"tcraft@pivotal.io"
] | tcraft@pivotal.io |
6f1ce69f66b79c11989426517bab38e317a3e9f1 | 0b63f38c7fb468e478e5be82c685de1b7ddb87e5 | /meiduo/meiduo_mall/meiduo_mall/apps/goods/serializers.py | 5f87ef206f4094af198abe31f08914950ba75438 | [
"MIT"
] | permissive | Highsir/Simplestore | fcf5ef81a754604c0953a3c1433a7bc09290c121 | 5fc4d9930b0cd1e115f8c6ebf51cd9e28922d263 | refs/heads/master | 2020-09-01T07:55:45.362457 | 2019-11-01T04:55:48 | 2019-11-01T04:55:48 | 218,913,913 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from drf_haystack.serializers import HaystackSerializer
from rest_framework import serializers
from goods.models import GoodsCategory, GoodsChannel, SKU
from goods.search_indexes import SKUIndex
class CategorySerializer(serializers.ModelSerializer):
"""类别序列化器"""
class Meta:
model = GoodsCategory
... | [
"highsir421@163.com"
] | highsir421@163.com |
1979d64a1540d510194a1064ab3dd19ceaa3585b | b511bcf3b3c8724a321caa95f381956f56c81197 | /collective/wpadmin/widgets/draft.py | c1c4dd4bfba27029e4bbf9f9d56d38ede2eb8eca | [] | no_license | toutpt/collective.wpadmin | 6957f8fadd5f62a12e4b5cd3eb40794874712cea | b5f2384ff2421f1529f7f844d75c1cb4073ac959 | refs/heads/master | 2016-08-05T00:30:36.097097 | 2013-01-18T10:37:26 | 2013-01-18T10:37:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | from zope import component
from plone import api
from plone.registry.interfaces import IRegistry
from collective.wpadmin.widgets import widget
from collective.wpadmin import i18n
_ = i18n.messageFactory
class Draft(widget.Widget):
name = "draft"
title = _(u"Draft")
content_template_name = "draft.pt"
... | [
"toutpt@gmail.com"
] | toutpt@gmail.com |
00766e298a33dcae5f92d7859cc87d876ccca112 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2463/60782/304860.py | a0914fcd8b479f7c6f75f9999f2477a83b960f6a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | """
题目描述
给定一个已按照升序排列 的有序数组,找到两个数使得它们相加之和等于目标数。
函数应该返回这两个下标值 index1 和 index2,其中 index1 必须小于 index2。
说明:
返回的下标值(index1 和 index2)不是从零开始的。
你可以假设每个输入只对应唯一的答案,而且你不可以重复使用相同的元素。
"""
class Solution(object):
def twoSum(self, numbers, target):
"""
:type numbers: List[int]
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
a9003fdff24c89d3d9fa50bcfc64c24a0cc79586 | a24a03163cf643249922edc29bc2086517615e53 | /thewema/urls.py | 7bcf11a899a1294d7c8cbb12dff05605f0faab60 | [] | no_license | ErickMwazonga/The-Wema-Academy | 165203e8e337459f6bae4f7178b3bfad715f052a | 61f9b778e423326d8dbd2c04f2dd6ce19e15e2a9 | refs/heads/master | 2021-01-19T14:22:00.568982 | 2017-04-13T10:41:06 | 2017-04-13T10:41:06 | 88,153,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,004 | py | """wema URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"erickmwazonga@gmail.com"
] | erickmwazonga@gmail.com |
bd0ba877cb6b849000ce9ea154a7506ab94dbb97 | 2d735cd72f1b2a17e58397a1214d3bcc2b8f113f | /PYTHON_FUNCTIONS/any_all_in_python.py | c4e84d22e60c5fd4da0ce9f654e5655dd7651839 | [] | no_license | shubhamrocks888/python | 3b95b5b53be8e0857efe72b8797e01e959d230f4 | 7313ddd0d09a0b478df928a07a6094930b597132 | refs/heads/master | 2022-12-15T00:03:40.261942 | 2020-08-29T18:00:42 | 2020-08-29T18:00:42 | 279,280,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | Truth table :-
any all
All true values True True
All false values False False
One True(all others are False) True False
One False(all others are True) True False
Empty ... | [
"shubhamrocks888@gmail.com"
] | shubhamrocks888@gmail.com |
c22f8acacd79b8afcf53558dbd03b826832af27a | 8580fd92512c236deae692d155bdb5eab2e00508 | /DarkTrails/asgi.py | 7b723533039a12cf02182a7076964bb2881d83f3 | [] | no_license | JackSnowdon/DownDT | d5d7f04acf92b5102cf67c5aa70cda2ebc4062fd | 17924b0b64da39d29c892fee4c7746d09b76fd8c | refs/heads/master | 2023-04-01T00:25:16.382696 | 2021-03-28T16:19:26 | 2021-03-28T16:19:26 | 352,373,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for DarkTrails project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
8b23a3fffb6859b0622210f0f50699c660b3ef3f | 50ee2f4f1a7d2e5ff7ac35118c5ac45f9b923865 | /0x01-python-if_else_loops_functions/1-last_digit.py | c7b28ae9d733661962aa47ddbb2e987589ebc1b4 | [] | no_license | spencerhcheng/holbertonschool-higher_level_programming | b489fbe8eba6109ef1eaa0d9363f3477e7eb16c4 | f8e1dbc24fcf8fb40ca135d2700872eb773e481e | refs/heads/master | 2021-01-20T06:54:35.044899 | 2018-05-20T05:09:59 | 2018-05-20T05:09:59 | 89,943,332 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | #!/usr/bin/python3
import random
number = random.randint(-10000, 10000)
if number > 0:
lastNum = number % 10
elif number <= 0:
lastNum = number % -10
print('Last digit of {:d} is {:d}'. format(number, lastNum), end=" ")
if lastNum > 5:
print('and is greater than 5')
elif lastNum == 0:
print('and is 0')
... | [
"spencerhcheng@gmail.com"
] | spencerhcheng@gmail.com |
6aaadd38872c563c7e3b4fd9a31a6d2edfb79945 | 41b73ecc4fa00a58609c1c3b8e717bbbc13cdee6 | /test/test_all.py | d7bd3837fc94c5de55e932b9801ad5547ef409f3 | [] | no_license | ahwillia/sinkdiv | 70c2f689af43cf80dd8c3951199885f3792d9ac3 | 85bd51f369855b78e5c0e1d5bb2aa8928d85c428 | refs/heads/master | 2023-01-31T10:56:08.481608 | 2020-12-18T04:41:26 | 2020-12-18T04:41:26 | 298,928,192 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | import pytest
import numpy as np
from numpy.testing import assert_allclose
from sinkdiv import OTCost, ForwardKL, Balanced
from scipy.optimize import approx_fprime
def test_entropy_increases(make_fig=False):
"""
Check that increasing epsilon increases blur in the
transport plan.
"""
epsilons = (0.... | [
"alex.h.willia@gmail.com"
] | alex.h.willia@gmail.com |
6aca78d446a771d1bdc8bb31bbbc2bb778bacfba | 206c10808b6224f7d8236e27cc555e723af695d9 | /tests/test_empty_service.py | 8ab14bce925b0271890c48c84c359ad361d40e51 | [
"MIT"
] | permissive | xdmiodz/tomodachi | 3280209ae49100ec902e3b15c323b38e7480cdd3 | 7ca998a421dd724df5967d5baa0cf79f5112b79b | refs/heads/master | 2023-03-15T19:22:16.381212 | 2023-01-20T07:34:48 | 2023-01-20T07:34:48 | 200,020,833 | 0 | 2 | MIT | 2023-03-08T00:00:01 | 2019-08-01T09:30:22 | Python | UTF-8 | Python | false | false | 674 | py | from typing import Any
from run_test_service_helper import start_service
def test_empty_service(monkeypatch: Any, capsys: Any, loop: Any) -> None:
services, future = start_service("tests/services/empty_service.py", monkeypatch)
loop.run_until_complete(future)
out, err = capsys.readouterr()
assert "... | [
"hello@carloscar.com"
] | hello@carloscar.com |
cfb9ff1a1089622084ea929a8ceebf87da9d0687 | 45799ccc3a16c785ab3c65f3296d66f8463590dc | /docs/_downloads/b9951f29cd54bc08237c8fb75b9c2476/q1314.py | b487939c8e11b9a0513ff9639257664f5e82d07a | [
"MIT"
] | permissive | odys-z/hello | 9d29b7af68ea8c490b43994cf16d75c0e8ace08e | fedd0aec7273f3170aa77316d0d5f317cc18a979 | refs/heads/master | 2023-08-19T03:25:58.684050 | 2023-08-18T08:07:27 | 2023-08-18T08:07:27 | 154,006,292 | 0 | 0 | MIT | 2023-04-18T22:50:56 | 2018-10-21T12:34:12 | C++ | UTF-8 | Python | false | false | 2,347 | py | '''
1314. Matrix Block Sum
https://leetcode.com/problems/matrix-block-sum/
Given a m * n matrix mat and an integer K, return a matrix answer where each answer[i][j] is
the sum of all elements mat[r][c] for i - K <= r <= i + K, j - K <= c <= j + K, and (r, c)
is a valid position in the matrix.
Example 1:
Input: m... | [
"odysseusj@163.com"
] | odysseusj@163.com |
17fe19b4e80f15be0aa96d6afc0197167630396f | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Yfksxs7kyJf6B3yvK_21.py | 3d96e93dc0ddaedcb2d4e9ec9ecf8a4618a5d7cd | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | """
Given a list of integers, return the smallest _positive_ integer _not present
in the list_.
Here is a representative example. Consider the list:
[-2, 6, 4, 5, 7, -1, 7, 1, 3, 6, 6, -2, 9, 10, 2, 2]
After reordering, the list becomes:
[-2, -2, -1, 1, 2, 2, 3, 4, 5, 6, 6, 6, 7, 7, 9, 10]
... from whic... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ce23796651ea87049745a818cb08caafa35cc580 | 9eef3e4cf39a659268694cf08a4a799af8fb13e2 | /packages/dpdprops/dpdprops/__init__.py | c42c51871769928dd028add49df137aafa25b487 | [] | no_license | cselab/tRBC-UQ | c30ec370939b949c989d2e9cd30137073b53e7d2 | cd7711b76c76e86bc6382914111f4fa42aa78f2c | refs/heads/master | 2023-04-18T03:06:49.175259 | 2022-10-25T15:45:07 | 2022-10-25T15:45:07 | 483,407,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from .fluid import *
from .dpdparams import (DPDParams,
create_dpd_params_from_str,
create_dpd_params_from_Re_Ma,
create_dpd_params_from_props)
from .membrane import *
from .membraneparams import (MembraneParams,
Kan... | [
"lucas.amoudruz@wanadoo.fr"
] | lucas.amoudruz@wanadoo.fr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.