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
b118f7c657f941a6bddce32f35f2d83780071954
d5fcafedcd49a666e960eff3c61cfc1bfe9e081c
/setup.py
e2c764c5e29695769d00c9b9812696849ab732a7
[ "BSD-2-Clause" ]
permissive
IndustriaTech/filebrowser-safe
29155ef662604d5b4f6ec8a9a94002d4c0e82858
2eda8ae594617a58455bca63f88689f2f0579aad
refs/heads/master
2021-05-29T07:49:26.957672
2014-02-05T09:13:42
2014-02-05T09:13:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
from setuptools import setup, find_packages setup( name="filebrowser_safe", version="0.3.1", description="A snapshot of the filebrowser_3 branch of django-filebrowser, " "packaged as a dependency for the Mezzanine CMS for Django.", long_description=open("README.rst").read(), autho...
[ "steve@jupo.org" ]
steve@jupo.org
903b3cf6c2069424d4e7db0124097fd3a7ef999a
5d6ff6a6dc2174a6362d2d2782470aab7c72b909
/quokka/core/tests/test_models.py
e09141ef787b87e931b2da032962caee0c496ede
[ "MIT" ]
permissive
imgugu/quokka
41afb4abe095223ba6f1c53aa5e695213832426e
301a1300bbd76b6f53569decdf3b3999ba87543f
refs/heads/master
2020-05-20T22:23:43.282781
2013-11-21T21:06:21
2013-11-21T21:06:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,876
py
# coding: utf-8 from . import BaseTestCase from ..models import Channel, Config class TestChannel(BaseTestCase): def setUp(self): # Create method was not returning the created object with # the create() method self.parent, new = Channel.objects.get_or_create( title=u'Father', ...
[ "ellisonleao@gmail.com" ]
ellisonleao@gmail.com
b180b7ee13e37740ff672f524e6d84abb68a9392
4ce2cff60ddbb9a3b6fc2850187c86f866091b13
/tfrecords/src/wai/tfrecords/object_detection/utils/json_utils_test.py
abd785fffd16944d382209e289dc19bd61f7b9e2
[ "MIT", "Apache-2.0" ]
permissive
8176135/tensorflow
18cb8a0432ab2a0ea5bacd03309e647f39cb9dd0
2c3b4b1d66a80537f3e277d75ec1d4b43e894bf1
refs/heads/master
2020-11-26T05:00:56.213093
2019-12-19T08:13:44
2019-12-19T08:13:44
228,970,478
0
0
null
2019-12-19T03:51:38
2019-12-19T03:51:37
null
UTF-8
Python
false
false
3,594
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # Unless required by applica...
[ "coreytsterling@gmail.com" ]
coreytsterling@gmail.com
a547b0c580f6eb57a424adc7697b39ea1301b365
98cb4fbb8bd776f187a9baf42d66911ed52211c9
/archives/vocalSeparation/network.py
598ceef69799222575f8631b585a63b4c1585f5e
[ "MIT" ]
permissive
daniel769/Audio-Source-Separation
017878dd5302f76948f9db800c50a4a4c43e2c63
1693a9736fc08c53935aba7218ad82a271b42525
refs/heads/master
2022-02-13T16:14:28.279016
2018-10-24T04:15:25
2018-10-24T04:15:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
from module import * import hyperparams as hp def network(input_, use_mulaw=hp.use_mulaw): input_ = conv1d(input_, output_channels=hp.hidden_dim, filter_width=3) skip_connections = list() for i in hp.dilation: skip, res = residual_block(input_, rate=i, scope="res_%d" % i) input_ = res ...
[ "c337134154@gmail.com" ]
c337134154@gmail.com
8c63a54063013f4c1c82f843d7730ceee77f0320
64e0208fa243ebbab4855980a3f21be78a4a1025
/test/tests/object_new_arguments.py
873ff6bf2839456b969c7e3f8e8ae6893704f34f
[ "Python-2.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
H8ter/pyston
581f5fcb59bb8b19399347626639a688e92c80ff
4cd23054a81b58a8de32ecf43daab2cb2e67f53f
refs/heads/master
2021-01-15T13:28:46.252887
2015-07-24T21:39:13
2015-07-24T21:39:13
39,681,136
0
0
null
2015-07-25T10:46:01
2015-07-25T10:46:01
null
UTF-8
Python
false
false
484
py
# object.__new__ doesn't complain if __init__ is overridden: class C1(object): def __init__(self, a): pass class C2(object): pass print "Trying C1" object.__new__(C1, 1) object.__new__(C1, a=1) print "Trying C2" try: object.__new__(C2, 1) except TypeError as e: print "caught TypeError" # Th...
[ "kmod@dropbox.com" ]
kmod@dropbox.com
f290ff4dd28be8504759cd53e837052886f33c30
52b5773617a1b972a905de4d692540d26ff74926
/.history/Triangle_20200731215410.py
fe4e6be1a02b61ab6337d20bc82d3816c5bb2875
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
def triangle(A): A.sort() for i in range(len(A)-2): p = A[i] q = A[i+1] r = A[i+2] print('p',p,'q',q,'r',r) if (p + q) < r: return 0 elif (q + r) < p: return 0 elif (r + p) < q: return 0 return 1 triangle ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
9d964dff99e224a5b1083c30488dc44ae8cf0580
d05e4b5f195d03506360483041c1864895e8f4da
/swe/helper.py
7ec2819606a2c728509b50d57c6d1d04c0e6db70
[]
no_license
swesust/backEnd
bf01724429e68c5c1f3d21330c6b3acf617dceff
eb4eae0981d6d88071a11f1b973c83916e6d199e
refs/heads/master
2021-11-21T16:42:51.275389
2019-07-03T22:01:14
2019-07-03T22:01:14
162,592,471
6
0
null
2021-09-08T00:48:02
2018-12-20T14:46:35
Python
UTF-8
Python
false
false
3,507
py
from swe import models from django.core.exceptions import ObjectDoesNotExist from django.core.files.storage import FileSystemStorage as FSS from io import BytesIO from PIL import Image as ImageProcess from time import time from os import remove, makedirs from os.path import isdir class Image(): """ storing displ...
[ "avoidcloud@gmail.com" ]
avoidcloud@gmail.com
6f2bc69f6325b24048fbf182011b336ea9ff6e4e
cfa35dc2ea93ee0eceb2399a9e6112e987579c09
/stonesoup/reader/tests/test_opensky.py
82d07f42184777b38386c2e114ca28d738c58229
[ "LicenseRef-scancode-proprietary-license", "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "Python-2.0", "LicenseRef-scancode-secret-labs-2011" ]
permissive
dstl/Stone-Soup
227e6a9e6fbdceca14af3f0259f311ec74095597
f24090cc919b3b590b84f965a3884ed1293d181d
refs/heads/main
2023-09-01T14:33:14.626428
2023-09-01T11:35:46
2023-09-01T11:35:46
98,420,803
315
126
MIT
2023-09-14T14:55:34
2017-07-26T12:34:28
Python
UTF-8
Python
false
false
1,326
py
import pytest from ..opensky import OpenSkyNetworkDetectionReader, OpenSkyNetworkGroundTruthReader pytestmark = pytest.mark.remote_data @pytest.mark.parametrize( 'reader_type', (OpenSkyNetworkDetectionReader, OpenSkyNetworkGroundTruthReader)) @pytest.mark.parametrize( 'bbox', [None, (-7.57216793459,...
[ "sdhiscocks@dstl.gov.uk" ]
sdhiscocks@dstl.gov.uk
b6d090f6e0c520b5335e366c013a6a95871dfb02
b05685baab270b50918c49c1e25d3aef90f0e83d
/UNIV-2016/1-29-16.py
f07a9382203ea83de48a71657283bce4130ad3f7
[]
no_license
daxaxelrod/notes-from-4th-semester
1ec25a0503d608bc50e20dd5d12e612c78b27f25
ba2c257271bc00ce8dd7a2a5d5984069ac5ae4d8
refs/heads/master
2016-08-11T12:37:46.605993
2016-02-18T00:26:59
2016-02-18T00:26:59
51,965,752
0
0
null
null
null
null
UTF-8
Python
false
false
1,437
py
Univ 280C Venture accelerator 2 Woot fucking woot the job market millennials face 25% activily engaged 55% not engaged in their work 20% activly disengaged at work Important priciples from last class PITCH INCESSEANTLY 80/20 rule learn from failure be aware of change and pain those l...
[ "daxaxelrod@gmail.com" ]
daxaxelrod@gmail.com
199c9d62f0c02ac09f43a77d38a29026977066d8
a5e71a333a86476b9cb1bdf6989bb5f47dd5e409
/ScrapePlugins/M/KissLoader/ContentLoader.py
3b88b158cb8837c710fe9f4fc8942aa693f906c4
[]
no_license
GDXN/MangaCMS
0e797299f12c48986fda5f2e7de448c2934a62bd
56be0e2e9a439151ae5302b3e6ceddc7868d8942
refs/heads/master
2021-01-18T11:40:51.993195
2017-07-22T12:55:32
2017-07-22T12:55:32
21,105,690
6
1
null
2017-07-22T12:55:33
2014-06-22T21:13:19
Python
UTF-8
Python
false
false
8,123
py
import logSetup import runStatus if __name__ == "__main__": runStatus.preloadDicts = False import webFunctions import settings import os import os.path import nameTools as nt import time import sys import urllib.parse import html.parser import zipfile import traceback import bs4 import re import json import Scr...
[ "something@fake-url.com" ]
something@fake-url.com
1f0508ba72e0fa6b452f48d450270349e204b152
7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0
/0801-0900/0889-Construct Binary Tree from Preorder and Postorder Traversal/0889-Construct Binary Tree from Preorder and Postorder Traversal.py
91552f75a60306b6c33b24b37f46cb02f2423c10
[ "MIT" ]
permissive
jiadaizhao/LeetCode
be31bd0db50cc6835d9c9eff8e0175747098afc6
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
refs/heads/master
2021-11-05T04:38:47.252590
2021-10-31T09:54:53
2021-10-31T09:54:53
99,655,604
52
28
MIT
2020-10-02T12:47:47
2017-08-08T05:57:26
C++
UTF-8
Python
false
false
1,638
py
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def constructFromPrePost(self, pre: List[int], post: List[int]) -> TreeNode: if not pre: return None root = TreeNode(pr...
[ "jiadaizhao@gmail.com" ]
jiadaizhao@gmail.com
8f37d8f65cf54dd283e22acd078d5087397db1d3
a1b375c3e98fe059dafc4d74cbcbcb99a0571e44
/images/urls.py
7b1168a1108824ea4f65b15f1955c15b27075621
[ "MIT" ]
permissive
mohsenamoon1160417237/Social_app
478a73552ceed8001c167be6caaf550cd58626bd
79fa0871f7b83648894941f9010f1d99f1b27ab3
refs/heads/master
2022-12-09T16:03:53.623506
2020-09-21T05:59:22
2020-09-21T06:02:03
297,242,915
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
from django.urls import path from . import views urlpatterns = [ path('best_images/' , views.most_liked_images , name='most_liked_images'), path('' , views.image_post , name='image_post'), path('delete/<int:image_id>/<slug:image_slug>/' , views.image_delete , name='image_delete'), path('all/' , views.images , na...
[ "dramatic225@gmail.com" ]
dramatic225@gmail.com
3f8a0fafc7d03d42481365c073a4dad659afc6ac
49ba5356bdc5df7dd9803b56fe507c5164a90716
/greatest-common-divisor-of-strings/test_solution.py
2c2c95aefa31c52e1d40ac929287824839313cf5
[]
no_license
uxlsl/leetcode_practice
d80ad481c9d8ee71cce0f3c66e98446ced149635
d8ed762d1005975f0de4f07760c9671195621c88
refs/heads/master
2021-04-25T18:12:28.136504
2020-03-11T07:54:15
2020-03-11T07:54:15
121,472,384
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
from solution import Solution def test_solution(): s = Solution() assert s.gcdOfStrings(str1 = "ABCABC", str2 = "ABC") == "ABC"
[ "songlin.lin@yunfangdata.com" ]
songlin.lin@yunfangdata.com
f6661f51dac094fd1cd85b3211f221fd56caccff
aed888628faf0f52081a8711653489e3982ce0c1
/mininet/wifiPlot.py
53bf454c111ea4aa97d7b87df0f9606c7ee6ab4d
[]
no_license
tapparello/mininet-wifi
69d01beea7d9b456a254694f1c38c443f0b32560
0feb170337bef16ea1a972685fc4a0eaa1a51eea
refs/heads/master
2021-01-20T17:27:34.311830
2017-05-09T19:43:36
2017-05-09T19:43:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,857
py
""" author: Ramon Fontes (ramonrf@dca.fee.unicamp.br) ramonfontes.com """ import matplotlib.patches as patches import matplotlib.pyplot as plt from mininet.log import debug from mpl_toolkits.mplot3d import Axes3D import numpy as np class plot3d (object): ax = None @classmethod def instantiateG...
[ "ramonreisfontes@gmail.com" ]
ramonreisfontes@gmail.com
6f82494371dfa89abc75f24106979386cb34c94a
41777d4d219ea97b4632f4a8a31ab6c82a60772c
/kubernetes_typed/client/models/v1_scale_io_volume_source.py
b1eccb02122f904eb1df1f33838af3ec15a3c9d6
[ "Apache-2.0" ]
permissive
gordonbondon/kubernetes-typed
501d9c998c266386dc7f66f522f71ac3ba624d89
82995b008daf551a4fe11660018d9c08c69f9e6e
refs/heads/master
2023-07-18T12:06:04.208540
2021-09-05T19:50:05
2021-09-05T19:50:05
319,183,135
24
2
Apache-2.0
2021-09-05T19:50:06
2020-12-07T02:34:12
Python
UTF-8
Python
false
false
584
py
# Code generated by `typeddictgen`. DO NOT EDIT. """V1ScaleIOVolumeSourceDict generated type.""" from typing import TypedDict from kubernetes_typed.client import V1LocalObjectReferenceDict V1ScaleIOVolumeSourceDict = TypedDict( "V1ScaleIOVolumeSourceDict", { "fsType": str, "gateway": str, ...
[ "noreply@github.com" ]
gordonbondon.noreply@github.com
bd1e0023e976133adf144217da8c40767542ad6a
40c4b8e9ac9074869bfb0dc1d3c3f566371f1764
/Hangman1/dog_1.py
8ef10b06f11b544da283359081ffd9dca0a7cd4a
[]
no_license
katuhito/Hangman001
870a8827e69cbd9a8b01ffb55f5c499c71861b76
710a201c6ad8284e164ea8ad26cd061486c50849
refs/heads/master
2022-12-06T16:30:24.613288
2020-08-22T10:19:27
2020-08-22T10:19:27
285,448,433
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
class Dog: def __init__(self, name, breed, owner): self.name = name self.breed = breed self.owner = owner class Person: def __init__(self, name): self.name = name mick = Person("Mick Jagger") stan = Dog("Stanley", "Bulldog", mick) print(stan.owner.name)
[ "katuhitohara@gmail.com" ]
katuhitohara@gmail.com
73632a0fc46bcb44ba1b1359191e89d643076b20
6d87f66357e4002c461532b39498636d29956097
/stack/cinder/cinder/tests/integrated/test_volumes.py
0ec851113d15b555d1a9e13b95fbf0ec2994a1dd
[ "Apache-2.0" ]
permissive
megaumi/openstack-tbd-scheduler
b8588b35c45b8fe9eee59723276047601ce2dfde
13928e9fec092e573c4945343a8b60e1fa86c4b3
refs/heads/master
2021-06-06T05:45:48.026940
2020-07-24T08:52:55
2020-07-24T08:52:55
6,046,752
0
1
null
2020-07-24T08:52:57
2012-10-02T15:11:38
Python
UTF-8
Python
false
false
7,530
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # 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.apach...
[ "umi@apricot.(none)" ]
umi@apricot.(none)
0e9b9d7b4cfe391c63a71319701c9315c52c1588
efc690a4c42b1511deb0fe80bf146872c45aed69
/conf_site/sponsorship/models.py
f1a2c0a6aceed0242319506cff3c3807176f3152
[ "MIT" ]
permissive
jasongrout/conf_site
34aa1197727fbbbdf8811338764a7451445f1803
6b3beb21de8d847cba65dcb6da84464b40739d48
refs/heads/master
2021-03-31T06:35:59.696561
2020-03-17T20:39:57
2020-03-17T20:39:57
248,086,087
0
0
MIT
2020-03-17T22:32:02
2020-03-17T22:32:01
null
UTF-8
Python
false
false
421
py
from django.db import models from wagtail.contrib.settings.models import BaseSetting, register_setting @register_setting(icon="group") class SponsorshipSettings(BaseSetting): info_link = models.URLField( default=u"https://pydata.org/pdf/sponsor-prospectus.pdf", max_length=2083, verbose_na...
[ "martey@mobolic.com" ]
martey@mobolic.com
2512b083e55f6101e8cf2f1a317a475ba920dc4c
32e948f9e7d6bd8771d266d93db0a2653043af0c
/retrieve_cci.py
2e4c71257d529c9c71e1d2bc844b836f83643c91
[ "MIT" ]
permissive
brorfred/density_stats
f14c979f6b6214f4546f5d6f14767cb0825c1d02
b66673c67083010f29afbac1ce30ab431643697f
refs/heads/main
2023-05-05T11:26:48.312639
2023-04-17T13:39:42
2023-04-17T13:39:42
506,174,445
0
0
null
null
null
null
UTF-8
Python
false
false
2,701
py
import numpy as np import xarray as xr import pandas as pd import pyresample as pr from fast_histogram import histogram1d import resample bins = 100 binrange = np.log(10**-4), np.log(10**2) binlist = np.linspace(*binrange, bins) def open_dataset(date="2000-01-01"): """Open OC-CCI dataset as xarray dataarray via...
[ "brorfred@gmail.com" ]
brorfred@gmail.com
9c4c84794897db611285d44fe40a857bd5997ffb
e1303b5f9b13b9b7f0fa7b5af1e7b8b38314d31f
/findTreeDiameter.py
8945e0de95a004a85b0c3fd800eb3850c42f4d14
[]
no_license
middleverse/ads_prac
a77b0a162ac34eae3847533f773e28e6bec93fbb
5b41defb74b1ae1fb38f244d9ffa070ac07d44c9
refs/heads/master
2023-03-25T06:54:56.913539
2021-03-10T23:06:51
2021-03-10T23:06:51
307,391,921
0
0
null
null
null
null
UTF-8
Python
false
false
1,408
py
class TreeNode: def __init__(self, val, left=None, right=None): self.val = val self.left = left self.right = right class TreeDiameter: def __init__(self): self.treeDiameter = 0 def find_diameter(self, root): self.find_diameter_recursive(root) return self.treeDiameter ...
[ "arshi_b@hotmail.com" ]
arshi_b@hotmail.com
cc4d1a777b82c57297ced99c26076184686c1a16
de8e0c5c759347917ca7f06b42ca6c82b8f8c95f
/baekjoon/11_math-2/9613.py
b08bf5a8ddfbf8f859876049db7ce69d8f7dcee3
[]
no_license
Greek-and-Roman-God/Apollo
aaeb315a9e70c719b3e53e3c4b9b5dde7b517ec0
2823cbcc9fc10ecd3f1785732403cb9c288f8ef3
refs/heads/main
2023-08-23T12:08:05.322733
2021-10-02T10:54:13
2021-10-02T10:54:13
308,242,023
1
1
null
2020-11-26T12:03:44
2020-10-29T06:49:26
Python
UTF-8
Python
false
false
502
py
# 9613 GCD 합 # https://www.acmicpc.net/problem/9613 def gcd(a, b): result = 0 if a > b: a, b = b, a while b > 0: result = b a, b = b, a % b return result t = int(input()) for _ in range(t): inp = list(map(int, input().split())) cnt = inp[0] num_list = inp[1:] ...
[ "doyeon311@gmail.com" ]
doyeon311@gmail.com
12a0858f92e944f3282765fe64115943dabf630e
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_11_01/aio/operations/_express_route_service_providers_operations.py
562620df96ed6195c4d70aade703489bdeef9938
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
scbedd/azure-sdk-for-python
ee7cbd6a8725ddd4a6edfde5f40a2a589808daea
cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a
refs/heads/master
2023-09-01T08:38:56.188954
2021-06-17T22:52:28
2021-06-17T22:52:28
159,568,218
2
0
MIT
2019-08-11T21:16:01
2018-11-28T21:34:49
Python
UTF-8
Python
false
false
5,138
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
scbedd.noreply@github.com
533602f46e5fd616444778719ca121007c3b3786
8e58feae60f66ed52e5e5a04843580591bc6968d
/setup.py
b295a85ded33f5522c9e1cac762aaf01290d18b2
[ "BSD-3-Clause" ]
permissive
rblack42/sphinxcontrib-lpblocks
89a50ff64cbf8866ec2663dd999ccca0fad4bfd9
a30869b1ee2f4f0f73b35f4a9841609d1fafd487
refs/heads/master
2022-07-31T23:29:57.534383
2020-05-18T20:06:33
2020-05-18T20:06:33
264,270,050
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
''' Sphinxcontrib-lpblocks ~~~~~~~~~~~~~~~~~~~~~~ Sphinx extension to support Literate Programming. ''' import io from setuptools import setup, find_packages import sphinxcontrib.lpblocks as lp def readfile(filename): with io.open(filename, encoding="utf-8") as stream: return stream.read()....
[ "roie.black@gmail.com" ]
roie.black@gmail.com
e53dd06c2a2df6fe95473cf29333718731785fe7
be5f4d79910e4a93201664270916dcea51d3b9ee
/rovers/fastdownward/experiments/issue420/issue420-v1.py
b5d93b01dad7fc570cabc56ea38aee5819c50c0a
[ "MIT", "GPL-1.0-or-later", "GPL-3.0-or-later" ]
permissive
mehrdadzakershahrak/Online-Explanation-Generation
17c3ab727c2a4a60381402ff44e95c0d5fd0e283
e41ad9b5a390abdaf271562a56105c191e33b74d
refs/heads/master
2022-12-09T15:49:45.709080
2019-12-04T10:23:23
2019-12-04T10:23:23
184,834,004
0
0
MIT
2022-12-08T17:42:50
2019-05-04T00:04:59
Python
UTF-8
Python
false
false
718
py
#! /usr/bin/env python # -*- coding: utf-8 -*- from downward.suites import suite_optimal_with_ipc11 import common_setup REVS = ["issue420-base", "issue420-v1"] CONFIGS = { "blind": ["--search", "astar(blind())"], "lmcut": ["--search", "astar(lmcut())"], } TEST_RUN = False if TEST_RUN: SUITE = "gripper...
[ "zaker.mehrdad@gmail.com" ]
zaker.mehrdad@gmail.com
258b646c702736c7a992f113a68f318a0df6c2a5
e0980f704a573894350e285f66f4cf390837238e
/.history/menus/models_20201030152822.py
c70dffeb2c5e9ce219e941ae4b37043c1fd1e98f
[]
no_license
rucpata/WagtailWebsite
28008474ec779d12ef43bceb61827168274a8b61
5aa44f51592f49c9a708fc5515ad877c6a29dfd9
refs/heads/main
2023-02-09T15:30:02.133415
2021-01-05T14:55:45
2021-01-05T14:55:45
303,961,094
0
0
null
null
null
null
UTF-8
Python
false
false
1,640
py
from django.db import models from django_extensions.db.fields import AutoSlugField from modelcluster.models import ClusterableModel from modelcluster.fields import ParentalKey from wagtail.core.models import Orderable from wagtail.admin.edit_handlers import FieldPanel, PageChooserPanel, InlinePanel class MenuItem(O...
[ "rucinska.patrycja@gmail.com" ]
rucinska.patrycja@gmail.com
3e9956e9dcc4a1c4b5873fb6cc00798a7a1b8a6e
2eb386991d9975f0f8440d90de26e950304ac42f
/TGHACK2020/mystic/mystic.py
890845cecbe1fd91e46764c04ab3175c590b43f6
[]
no_license
Quintec/CTFs2020
2816a66e8a486537c31e5ac25253840bc3a8ffe9
bdaa327c9f0b0ee16ff95bafcaf65f0df8acd8b9
refs/heads/master
2022-12-19T21:39:14.129702
2020-10-01T16:49:06
2020-10-01T16:49:06
281,812,929
1
0
null
2020-10-01T16:49:08
2020-07-23T00:37:44
null
UTF-8
Python
false
false
182
py
with open("mystic.png", 'rb') as file: dat = file.read() print(dat) print(type(dat)) dat = bytes([d^42 for d in dat]) with open("mystic.dat", 'wb') as file: file.write(dat)
[ "zhongbrothers@gmail.com" ]
zhongbrothers@gmail.com
571dce4b35f1680fb3c9ae0aa7327fffecc8a440
eac985db4df6ef7429ee6798956aad85087dc444
/rcsfootprints/settings.py
5809049ca8dfede2566f444d0a91519b4eaebd56
[]
no_license
scottcoughlin2014/rcsfootprints
10e7caafda5062ecece0cf1eba978a853e35240e
06317fd97cd1feda745428df4c65662941caa755
refs/heads/master
2022-11-28T15:50:57.004215
2020-08-03T20:34:06
2020-08-03T20:34:06
284,801,649
0
0
null
null
null
null
UTF-8
Python
false
false
3,713
py
""" Django settings for rcsfootprints project. Generated by 'django-admin startproject' using Django 3.0.9. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import...
[ "scottcoughlin2014@u.northwestern.edu" ]
scottcoughlin2014@u.northwestern.edu
1cc919de041c45de9d95e37af262c9a2f2d6e5fe
c2f85286d1e21fb803c35f6d996abc850b993e53
/mystorage/models.py
3b1da397f6d612372399cd856fd46f538d5bc4d8
[]
no_license
devdw98/likelion_drf
dfeec1bf5ee153918807f99040c8c33240c4344c
6d0171961bc93f4edd7998b7351034e0a936079d
refs/heads/master
2020-07-29T20:38:29.041098
2019-10-27T07:22:53
2019-10-27T07:22:53
209,951,594
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
from django.db import models from django.conf import settings class Essay(models.Model): author = models.ForeignKey(settings.AUTH_USER_MODEL, default = 1, on_delete=models.CASCADE) #모델지우면 그 모델과 관련한 모든 것 지움 title = models.CharField(max_length = 30) body = models.TextField() class Album(models.Model): #imag...
[ "devdw98@gmail.com" ]
devdw98@gmail.com
00b51cd8339ee6726731147e53432b24dc540662
a4146004694aa8745f751fd49152b01718e43cdd
/Algorithm/test/IM/D03/미로탈출 로봇중간 단계2.py
6085d18524e9fd1a78f28e0e385c58c842be2f6e
[]
no_license
hoyoung2176/TIL
1f4e2110e1e21d03855889044a7df280ad9788fc
e2bca069d36455fdf8f142fa9a06fb1a39f3c99f
refs/heads/master
2021-06-25T13:34:01.463989
2019-07-31T05:05:45
2019-07-31T05:05:45
163,781,026
0
0
null
2021-06-10T21:19:53
2019-01-02T01:39:56
Python
UTF-8
Python
false
false
872
py
import sys sys.stdin = open("미로탈출 로봇중간 단계.txt") N = int(input()) arr = [[1]*(N*2) for _ in range(N+2)] for i in range(1,N+1): arr[i]= [1] + (list(map(int, input()))) + [1] Darr = list(map(int,input().split())) Dno = 0 #방향순서 dr = [0, 1, 0, -1, 0] #아래1 왼2 위3, 오른4 방향 dc = [0, -1, 0, 1] r,c = 1, 1 #현재좌표 cnt = 0 while...
[ "hoyoung2176@gmail.com" ]
hoyoung2176@gmail.com
4c119e4d899ded17fc322cbed2aae93f00f17728
28b4c4676cb016e35cc7b1048097628caa113114
/sso/relay.py
99757032575f381faeec89c1b1124012853f5fa4
[ "MIT" ]
permissive
shiroyuki/voila-id
829127ef258c829f33d6f4079486829e3325f208
da86daef255d23b73ad6f2ba67fba02201407f09
refs/heads/master
2016-09-06T16:56:45.724263
2014-08-25T05:50:43
2014-08-25T05:50:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
from sso.common import Controller from sso.security import AccessMode class Relay(Controller): def get(self): routing_map = self.component('routing_map') if not self.session.get('auth'): return self.redirect(routing_map.resolve('authentication')) auth = self.session.get('auth'...
[ "jnopporn@shiroyuki.com" ]
jnopporn@shiroyuki.com
afe11d1033c0af9c586eb0ac088d3f083c15409b
44d62a165f943ca752795be97b5921767c034f29
/iblrig/frame2TTL.py
e20a493f101e1a7f882816f9d47bac791410a1f8
[ "MIT" ]
permissive
magically-solutions-india/iblrig
1d2c52d9966f3b3c9f681fde37a9926e35b62542
0d428591bd91d22feed5254f36a5dc9e104d4ff5
refs/heads/master
2020-12-20T03:41:08.808129
2020-01-22T10:07:55
2020-01-22T10:07:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,300
py
import logging import struct import numpy as np import serial import iblrig.alyx import iblrig.params log = logging.getLogger('iblrig') class Frame2TTL(object): def __init__(self, serial_port): self.serial_port = serial_port self.connected = False self.ser = self.connect...
[ "nbonacchi@gmail.com" ]
nbonacchi@gmail.com
323314a44358a166ba601398ae2f8308055495fa
cfc46fd56c16ac9c010bcf0c1eb50da3047d1b2b
/toscametrics/general/text_entropy.py
d41f0bfbd5d377be29b2831b990d4c15a8b08cbf
[ "Apache-2.0" ]
permissive
radon-h2020/radon-tosca-metrics
d93ef5b3dc53c7863ba98a985919237fe6c4aadf
d0a10e10f2d897299a04f69290f09d5589bc039f
refs/heads/master
2021-08-24T13:53:43.207745
2021-07-06T08:44:00
2021-07-06T08:44:00
242,997,596
3
0
Apache-2.0
2021-03-29T13:47:46
2020-02-25T12:45:05
Python
UTF-8
Python
false
false
811
py
import re from math import log2 from toscametrics import utils from toscametrics.blueprint_metric import BlueprintMetric def splitter(x): return re.sub(r'\s+', ' ', str(x)).split(' ') class TextEntropy(BlueprintMetric): """ This class measures the blueprint's Shannon entropy for keywords frequencies """ ...
[ "stefano.dallapalma0@gmail.com" ]
stefano.dallapalma0@gmail.com
c5fa70baf76c52c1e7edd22a04caa0f0124d5192
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_10971.py
1e427429e1f1fb08ee4d28ae4224b1b47e60d17e
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
# sampling random floats on a range in numpy np.random.uniform(5,10) # A single value np.random.uniform(5,10,[2,3]) # A 2x3 array
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
2450814533832c1abc008339e64b4cf98eedf527
0206ac23a29673ee52c367b103dfe59e7733cdc1
/src/fao_un/fao_explore_text_file.py
8f720005daa4892cb920451ae2460557678d06ed
[]
no_license
guziy/RPN
2304a93f9ced626ae5fc8abfcc079e33159ae56a
71b94f4c73d4100345d29a6fbfa9fa108d8027b5
refs/heads/master
2021-11-27T07:18:22.705921
2021-11-27T00:54:03
2021-11-27T00:54:03
2,078,454
4
3
null
null
null
null
UTF-8
Python
false
false
507
py
__author__ = 'huziy' def main(): path = "/skynet3_rech1/huziy/Global_terrain_slopes_30s/GloSlopesCl1_30as.asc" with open(path) as f: for i, line in enumerate(f): if i < 6: print(line) if 3000 < i < 4000: nums = [int(s.strip()) for s in line.spl...
[ "guziy.sasha@gmail.com" ]
guziy.sasha@gmail.com
e61562e0b288dce372a49eb34d6462236ab75a15
3a117858e61c87b703c694d8e1b6da61e6074851
/src/.history/Test/HiwinRT605_Strategy_testsocket_20190626140818.py
ae6dddd6e9834397236b8fe1d7181f7c4ff0b95c
[ "MIT" ]
permissive
SamKaiYang/ROS_Socket
4daa2c66181a76038e20161a44f1362084b6bd58
aa131496617cec0a9c32141565faa668db738eb9
refs/heads/master
2020-05-25T22:02:02.468922
2019-07-18T09:02:35
2019-07-18T09:02:35
188,009,003
0
1
null
null
null
null
UTF-8
Python
false
false
6,551
py
#!/usr/bin/env python3 # license removed for brevity #策略 機械手臂 四點來回跑 import threading import rospy import os import numpy as np from std_msgs.msg import String from ROS_Socket.srv import * from ROS_Socket.msg import * import math import enum import Hiwin_RT605_Arm_Command as ArmTask ##----Arm state----------- Arm_state_...
[ "tt00621212@gmail.com" ]
tt00621212@gmail.com
c2c096ac99f6a8ef635bfe244d6f1b363cafbb99
25bb4e760769cc483a20f27b6312698891dce034
/algorithms/dynamic programming/fibonacci-modified-English.py
43e913d6860797d42644fb453e498a9e8ba33f17
[]
no_license
rangaeeeee/codes-hackerrank
e13d22adff1ef74974e34251d9bfac6cfd36f2b0
ce7fdf7f336c10164fd2f779d4ed3713849d7c2b
refs/heads/master
2021-01-19T17:07:28.451983
2017-09-01T18:05:33
2017-09-01T18:05:33
101,049,197
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
# Enter your code here. Read input from STDIN. Print output to STDOUT t1,t2,n = map(int,input().split()) result = [None] * (n+1) result[1] = t1 result[2] = t2 for i in range(3,n+1,1): if result[i] == None: result[i] = result[i-2] + result[i-1]**2 print(result[n])
[ "rrangarajan.85@gmail.com" ]
rrangarajan.85@gmail.com
812f0756e1b6b47085b05cdfe5bb31706fea3a48
d91a61442d0ba0547301f54e7f63039ab5346198
/for/exe_5_soma_impares.py
e24ac2e7564b8fc8ec7eb560600909bf26b37fd9
[]
no_license
pedroceciliocn/programa-o-1
a41bf89475939ad1791320c8fa4845744921ec19
15f8a3dbc13f4cbbc15f2b626ccef47fe145cc3f
refs/heads/main
2023-07-12T20:06:20.632304
2021-08-17T22:05:57
2021-08-17T22:05:57
377,301,280
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
""" Somar os inteiros ímpares entre dois valores inteiros informados pelo usuário. """ n_1 = int(input("De o primeiro valor do intervalo: ")) n_2 = int(input("De o segundo valor do intervalo: ")) s = 0 if n_1 > n_2: n_1, n_2 = n_2, n_1 for i in range(n_1, n_2 + 1): if i % 2 != 0: s += i print(f"...
[ "pedroceciliocn@gmail.com" ]
pedroceciliocn@gmail.com
fb3de3e1e992cf59a0db77e1e77140ba3f9e8072
64dfafd940d77129b38865ccac869aadffb868ff
/natural_satmass_plots.py
0a3c6e64ef4ce8f400172a6e12b45c5a341759a2
[]
no_license
RaymondSimons/foggie_local
242d4ef5fa814d44747b2bc38825433ade73de9f
f10bc56ef90b274d08fc81c8d02ddd9b653dfd19
refs/heads/master
2021-07-07T18:03:27.996681
2020-07-30T16:34:40
2020-07-30T16:34:40
147,853,943
0
1
null
null
null
null
UTF-8
Python
false
false
4,178
py
import glob from glob import glob from astropy.io import fits from scipy import interpolate plt.rcParams['text.usetex'] = True plt.ioff() plt.close('all') DD_to_t = np.load('/Users/rsimons/Dropbox/rcs_foggie/outputs/DD_time.npy')[()] #DDs = arange(44, 800) DDs = arange(44, 800) sat_ns = arange(0, 12) clrs = ['blue'...
[ "rsimons@jhu.edu" ]
rsimons@jhu.edu
bd2be70e948d6957ceca507b2d58feba34736b39
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_delete.py
6e2f314f2351a185a63bd8d45de74648f9983c8e
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,554
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
70fe8e8b64018de3046f650a5b1487419d30a178
af259acdd0acd341370c9d5386c444da6a7a28a6
/Deep-Learning-in-Python/04-Fine-tuning-keras-models/02-Changing-optimization-parameters.py
de78e0ef25b6108c14e0a39d883bc0b1c62905bf
[]
no_license
pace-noge/datacamp
fcd544f6478040660f7149b1a37bfd957eef9747
eeffb8af233e7304c0f122a48e6b4f78ee7c650e
refs/heads/master
2020-07-04T12:41:29.635167
2019-09-17T10:11:39
2019-09-17T10:11:39
202,289,041
0
0
null
null
null
null
UTF-8
Python
false
false
2,013
py
""" Changing optimization parameters It's time to get your hands dirty with optimization. You'll now try optimizing a model at a very low learning rate, a very high learning rate, and a "just right" learning rate. You'll want to look at the results after running this exercise, remembering that a low value for the loss ...
[ "noreply@github.com" ]
pace-noge.noreply@github.com
5264e111233945faf45b9aefd6d120ef0d823acf
8a5ab3d33e3b653c4c64305d81a85f6a4582d7ac
/PySide/QtXml/QDomDocumentFragment.py
05e5e380013867b6c5bff79ce5d82cf2508b4f84
[ "Apache-2.0" ]
permissive
sonictk/python-skeletons
be09526bf490856bb644fed6bf4e801194089f0d
49bc3fa51aacbc2c7f0c7ab86dfb61eefe02781d
refs/heads/master
2020-04-06T04:38:01.918589
2016-06-09T20:37:43
2016-06-09T20:37:43
56,334,503
0
0
null
2016-04-15T16:30:42
2016-04-15T16:30:42
null
UTF-8
Python
false
false
801
py
# encoding: utf-8 # module PySide.QtXml # from /corp.blizzard.net/BFD/Deploy/Packages/Published/ThirdParty/Qt4.8.4/2015-05-15.163857/prebuilt/linux_x64_gcc41_python2.7_ucs4/PySide/QtXml.so # by generator 1.138 # no doc # no imports from QDomNode import QDomNode class QDomDocumentFragment(QDomNode): # no doc d...
[ "yliangsiew@blizzard.com" ]
yliangsiew@blizzard.com
cba3267fc1a634b25b0ca18b959b737bd7ad0cde
9f1db0cce0aebc6c14c7e3c4adfa424bbc20c968
/project/lit/migrations/0008_auto_20151112_0935.py
e03309c46b32757228973dba1d3bbb8e0d673561
[]
no_license
JoshAddington/hawc
6b8f9efb0dec2aeb972a66a636dfc7493502003b
28cb8a2690ba934134c4dd4660d51e573cd6b895
refs/heads/master
2020-12-25T17:16:05.746517
2016-06-10T18:03:32
2016-06-10T18:03:32
44,217,584
0
0
null
null
null
null
UTF-8
Python
false
false
555
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import utils.models class Migration(migrations.Migration): dependencies = [ ('lit', '0007_auto_20151103_0925'), ] operations = [ migrations.AlterField( model_name='refere...
[ "shapiromatron@gmail.com" ]
shapiromatron@gmail.com
69a804c507365deb078ecc69332d2ffa90e580e1
fac4c2fa64e6a22d0a80eec7b65c93d7a6236b7f
/original-modules/text-to-text-transfer-transformer-master/t5/models/gin/objectives/span.gin
2da19b4e5ebab684ee90690c65fafe40978d8775
[ "Apache-2.0" ]
permissive
zouning68/nlp-transfer-learning
ec2b9e91f4b3bb9d77bf88dd78282f6ff5aaa4fd
e9b1544b55905ceb2235471f036abc1d7c4160db
refs/heads/master
2023-04-13T18:25:22.206475
2020-01-15T02:36:19
2020-01-15T02:36:19
228,514,893
2
0
Apache-2.0
2023-03-24T23:36:35
2019-12-17T02:21:15
Python
UTF-8
Python
false
false
1,801
gin
# -*-Python-*- # Random pattern of noise and non-noise spans. include 'objectives/denoise.gin' preprocessors.unsupervised.preprocessors = [ @preprocessors.select_random_chunk, @preprocessors.reduce_concat_tokens, @preprocessors.split_tokens, @preprocessors.denoise, ] inputs_length = 512 noise_density = 0.15 prepro...
[ "noreply@github.com" ]
zouning68.noreply@github.com
530054b5f5bfcf224797ff7cb03ce8898da54858
6c5a2649bd7dce505e108d5ceb862d9a3912ca8b
/score_of_data.py
dc556bef64979e96be25a36395d5a45b68c9bbf1
[]
no_license
maidao/machine_learning_Intermediate
680295ba8b9282312cd499151e57ef03e1a55283
7cb5a05b4bdd30f0555faa3705d7ab20793d61b5
refs/heads/master
2020-06-18T07:33:47.152520
2019-07-17T10:03:00
2019-07-17T10:03:00
196,215,591
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
from sklearn.ensemble import RandomForestRegressor from sklearn.metrics import mean_absolute_error def score_dataset(X_train, X_valid, y_train, y_valid): model = RandomForestRegressor(n_estimators=10, random_state=0) model.fit(X_train, y_train) preds = model.predict(X_valid) return mean_absolute_error(...
[ "md.maidao@gmail.com" ]
md.maidao@gmail.com
2497cfe49693743af6f390ab5ee75b6bd96ebf9e
48894a44b01b055c9d88eb93f4472fa1da72441b
/run.py
ffab80d383c6be37ca0c1c76c9b9eb84500f98b7
[]
no_license
Biking0/ambari_monitor
4f349846f5be9042854427979e844934db3881c0
137cd8d7b051253a616c6b106722cac539616610
refs/heads/master
2020-08-10T22:39:44.331360
2020-03-19T05:41:22
2020-03-19T05:41:22
214,435,780
2
2
null
null
null
null
UTF-8
Python
false
false
1,088
py
#!/usr/bin/env python # -*-coding:utf-8 -*- #******************************************************************************** # ** 文件名称:run.py # ** 功能描述:ambari 监控项目启动所有监控程序 # ** 输 入 表: # ** 输 出 表: # ** 创 建 者:hyn # ** 创建日期:20191020 # ** 修改日志: # ** 修改日期: # ****************************************************************...
[ "1342831695@qq.com" ]
1342831695@qq.com
45a941542c6eb500c823b5d445f76412a2149b8a
1208ac3718420c4a118ab6b777d99980b85f952a
/112.py
aabd7878a6fe754ceb9cd8e4a711f5e799a5cd90
[]
no_license
deimelperez/150_Py_challenges
6ab9aea77c9c117b682790bfe36fb5e280cb8afc
b58f55312e7abf30cb7cb6d68b249bb5dcd3c862
refs/heads/master
2023-03-13T02:30:15.095467
2021-03-04T19:02:11
2021-03-04T19:02:11
344,579,979
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
import csv file = open ('111 Books.csv','a') title = input('Enter title: ') author = input('Enter author: ') date = input('Enter date: ') newRecord = tile + ',' + author + ',' + date + '\n' file.write(str(newRecord)) file.close()
[ "deimelperez@gmail.com" ]
deimelperez@gmail.com
69a692f69279f5075583c5453a69f1f6df3bec6c
079989df1765293d3536b98f841630246bb77a85
/information/models.py
69782d9228cdbcd29e08eba464dd17a09dce24be
[]
no_license
R-Mielamud/ClasssixSite
fb74cf71acc55fd32b7be0b4365ff3b2099d5d7c
0d3bc58b4e13ddc29f0a7f2025a6c813d828433f
refs/heads/master
2020-12-27T08:10:52.040513
2020-07-09T19:19:15
2020-07-09T19:19:15
237,826,755
1
0
null
2020-02-10T13:18:41
2020-02-02T19:47:34
HTML
UTF-8
Python
false
false
723
py
from django.db.models import * from diary.models import Subject class TeacherData(Model): full_name = CharField(max_length=100, default="") subject = ForeignKey(Subject, on_delete=CASCADE, related_name="teacher_data_sets") def __str__(self): return "{} | {}".format(self.full_name, self.subject) ...
[ "2m.roman2@gmail.com" ]
2m.roman2@gmail.com
3810a9e948c34313e813a1fe7c302f115e7b368c
0a28bcde2499e6a41e16d88ed62cd2e80a5b464d
/hb_quant/huobi/service/account/get_account_balance_by_subuid.py
29532076b68ed85bd1db6979439b5886c05dab41
[ "MIT" ]
permissive
wenli135/Binance-volatility-trading-bot
2cfe66007294b13a89b16d1622d50ce1615f1d66
75a03ad61df0e95492128fb6f1f419d4dc256ab3
refs/heads/main
2023-06-13T06:40:43.855256
2021-07-01T02:03:25
2021-07-01T02:03:25
373,853,320
0
0
MIT
2021-06-04T13:38:26
2021-06-04T13:38:26
null
UTF-8
Python
false
false
696
py
from huobi.connection.restapi_sync_client import RestApiSyncClient from huobi.constant.system import HttpMethod from huobi.model.account import * class GetAccountBalanceBySubUidService: def __init__(self, params): self.params = params def request(self, **kwargs): sub_uid = self.params["sub-u...
[ "wenli@quchaogu.com" ]
wenli@quchaogu.com
29cff6d8c3117c518a9ab74b682916b64efc225e
9b0bdebe81e558d3851609687e4ccd70ad026c7f
/数据结构/栈/04.合法的出栈顺序.py
1f404b5a1970e989acf41c5634f48a5b42087105
[]
no_license
lizenghui1121/DS_algorithms
645cdad007ccbbfa82cc5ca9e3fc7f543644ab21
9690efcfe70663670691de02962fb534161bfc8d
refs/heads/master
2022-12-13T22:45:23.108838
2020-09-07T13:40:17
2020-09-07T13:40:17
275,062,257
0
0
null
null
null
null
UTF-8
Python
false
false
980
py
""" 1到n的数字序列,入栈,每个数字入栈后,即可出栈,也可在栈中停留,求该数字序列的出栈序列是否合法。 @Author: Li Zenghui @Date: 2020-03-21 21:19 """ from queue_and_stack import MyStack def check_is_valid_order(arr): s = MyStack() for i in range(1, len(arr)+1): s.push(i) while not s.is_empty() and arr[0] == s.top(): s.pop() ...
[ "954267393@qq.com" ]
954267393@qq.com
11a6f509dac11d1628a4239ad6e3882798927964
1839a3881de40db86a2c1e50086ccd6562ed221e
/UnetVgg11/network/textnet.py
cf1ac08f05461b500ccb74444b31ded0a846858b
[]
no_license
weijiawu/Yibao-cup_competition
491c3e63ee1398c97339e95d5299f2aa2ea8af32
84369b038d8c3b3b2e9bfeae824518e49586612e
refs/heads/master
2020-05-07T12:09:22.987473
2019-04-10T06:41:16
2019-04-10T06:41:16
180,490,552
9
1
null
null
null
null
UTF-8
Python
false
false
5,052
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import torch import torch.nn as nn import torchvision.models import torch.nn.functional as F import os os.environ["CUDA_VISIBLE_DEVICES"] = "0" class UnetVgg11(nn.Module): def __init__(self, n_classes=3, num_filters=64, v=1): super(UnetVgg11, self).__init__() ...
[ "wwj123@zju.edu.cn" ]
wwj123@zju.edu.cn
26306fc13a2759dc8d39618d990a765d293540d4
49aa2eaeda287fdbbab6f83734473633f200b501
/dataPlatform/go_platform/api/LibScootersOwners.py
7172161c8125935f57716365ef901d7d05f770c6
[]
no_license
petercheng168/My-account-automation
9d41255bb18421a887a308345db94e973467bae5
31c29cc9a9b3f5a4b2c2b721a33df04c52b9d80a
refs/heads/master
2023-03-13T10:14:00.896812
2020-09-11T06:26:44
2020-09-11T06:26:44
341,831,073
0
0
null
null
null
null
UTF-8
Python
false
false
1,604
py
import os import sys __dirname = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.join(__dirname, '../api')) from _init_ import _init_ class LibScootersOwners(object): def __init__(self): self.init = _init_() def scooters_owners_get(self, request_data_type=None, owner_ids= None, scoo...
[ "peter.yf.cheng@gogoro.com" ]
peter.yf.cheng@gogoro.com
b85b77389b8994f59d4cb318c5d635f56232ca7d
e1e8e29d202b663be6d424a41aaf7c42f90c8ab3
/ex40c1.py
72888476074cfb401f36728067a2464107d84161
[]
no_license
Amo95/Learning-coding-with-Python3
414f60d1b7da2fa41a4527034420c6ab34c6acb7
c4527a670b01c55031eb1ad65403a032e545baac
refs/heads/master
2020-12-15T19:20:12.266274
2020-01-21T18:12:58
2020-01-21T18:12:58
235,226,827
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
class MyStuff(object): """docstring for ClassName""" def __init__(self): self.tangerine = "I love coding in python" print(self.tangerine) def apple(self): print("Coding OOP is amazing") def main(): thing = MyStuff() thing.apple() if __name__ == '__main__': main()
[ "root@localhost.localdomain" ]
root@localhost.localdomain
dea6745e243b7a67b860dc3d86998254c22d6dd9
112e792b80f0ba5f0989a297156d1554e18034d9
/testapp/migrations/0003_person__etag.py
77350671fec980d95092bece88612d0351d2bf1b
[]
no_license
VNG-Realisatie/vng-api-common
ba4537c230f47f0b0ba305eccc289eef09be56f2
609c931b3f8b640aa6dff6d02cfb799745f25eb5
refs/heads/master
2023-06-26T22:52:50.419762
2023-06-20T11:20:53
2023-06-20T11:20:53
136,349,326
4
14
null
2023-09-01T14:26:58
2018-06-06T15:31:27
Python
UTF-8
Python
false
false
629
py
# Generated by Django 2.1.8 on 2019-09-05 06:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("testapp", "0002_auto_20190620_0849")] operations = [ migrations.AddField( model_name="person", name="_etag", field=mod...
[ "sergei@maykinmedia.nl" ]
sergei@maykinmedia.nl
b43075304e3f3743babbc05752088d35d38d269f
8370083dbbbd32740ad1862637809396dc7984e2
/paresh60/a12.py
673c08cc381941391743fa151ddb4784c6997b26
[]
no_license
parshuramsail/PYTHON_LEARN
a919b14aab823e0f5e769d8936ddbfb357133db2
8c76720bf73f13cf96930e6d4d5128e6ba9aa535
refs/heads/main
2023-07-14T16:25:26.240555
2021-08-29T17:10:19
2021-08-29T17:10:19
401,095,644
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
# Method over-loading in python using default argument. class A: def first(self,f=None): if f is not None: print('Method',f) else: print('method without argument') a=A() a.first() print(a.first('with argument'))
[ "64275709+parshuramsail@users.noreply.github.com" ]
64275709+parshuramsail@users.noreply.github.com
29e71287fe48a5b6f7722a2cac26373b8fdbe652
d6833270e21fc14d8dd9d6624f8906ed7fe3ae86
/SoarUtils.py
3944a872bd43b057c2eda986c0618db191e20328
[ "MIT" ]
permissive
ChienDavid/pysoarlib
0f9c91424f7900d43b39e401f91274b0fdf21540
3c722d163acf3dd35c5be914bf200e23369e169a
refs/heads/master
2022-10-24T22:37:24.839494
2020-06-13T15:10:32
2020-06-13T15:10:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,783
py
import Python_sml_ClientInterface as sml from .SoarWME import SoarWME class SoarUtils: """ A Class containing static utility methods for dealing with Soar and working memory """ def update_wm_from_tree(root_id, root_name, input_dict, wme_table): """ Recursively update WMEs that have a sub-tre...
[ "mininger@umich.edu" ]
mininger@umich.edu
8f8df82e8f10eae8a382750c473b56390d9cf50e
52243c4a05a296e7c042663b5942faa47eb66aee
/common/plot_points_shp.py
2f0e6e7945bf659016fd5b03ffaaa47015baf92c
[ "MIT" ]
permissive
joaoppadua/Pesquisas
fbe0311b59340c041732d6d1f7f4862fa6c53198
808d8b0ef9e432e05a4f284ce18778ed8b3acd96
refs/heads/master
2023-07-16T02:50:30.846205
2021-09-03T13:34:54
2021-09-03T13:34:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
import matplotlib.pyplot as plt, geopandas as gpd from sklearn.preprocessing import MinMaxScaler def plot_points_shape_file( shape_file, list_values, list_longitude, list_latitude, title ): scaler = MinMaxScaler(feature_range=(50, 1000)) list_final = scaler.fit_transform([[i] for i in (list_values)]) ...
[ "danilopcarlotti@gmail.com" ]
danilopcarlotti@gmail.com
44ae1b353c4c95c6209f6de8cde15112550f0a3b
f966c891c666db846d86406cb9c08a530902d032
/algorithms/implementation/divisible_sum_pairs.py
94ca67a38d2a2b8e609d8ed2769e0956df8b0853
[]
no_license
rickharris-dev/hacker-rank
36620a16894571e324422c83bd553440cf5bbeb1
2ad0fe4b496198bec1b900d2e396a0704bd0c6d4
refs/heads/master
2020-12-25T14:33:20.118325
2016-09-06T01:10:43
2016-09-06T01:10:43
67,264,242
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
#!/usr/bin/python n,k = raw_input().strip().split(' ') n,k = [int(n),int(k)] a = map(int,raw_input().strip().split(' ')) count = 0 i = 0 for i in range(0,n): j = i + 1 while j < n: if (a[i] + a[j]) % k == 0: count += 1 j += 1 print count
[ "rickharris724@gmail.com" ]
rickharris724@gmail.com
85404e686fe6601424f46561d0938c179b5a1cb7
dddbfd8eb6dff0bd3449bac87ee76b5c3e0bdfb1
/icehouse-patches/neutron/dvr-patch/neutron/services/vpn/plugin.py
74218e2ab6b6e6fecfba5e5f3a40c5d4d3e0f0af
[ "Apache-2.0" ]
permissive
joey5678/tricircle
40897fed8fe9d6772e8878b4f06ba1a829636488
e211f7efef129bbfb038cc05232ea1de33f82a97
refs/heads/master
2021-01-17T21:04:32.945469
2014-11-17T09:46:29
2014-11-17T10:10:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,525
py
# (c) Copyright 2013 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # # 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/license...
[ "joehuang@huawei.com" ]
joehuang@huawei.com
881028d34f8ae09d7ee3fa9e047a5a4c55c4a893
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/CJ/16_0_3_54N_c.py
a900e884b099ed456e2e4f9878c7443257e54913
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,146
py
#!/usr/bin/python luts = [] def initlut(): for i in range(2,11): l = [] for k in range(0,32): l.append(i**k) luts.append(l) # stackoverflow def is_prime(n): if n == 2 or n == 3: return True, 0 # never happens in our case? if n < 2: return False, 1 if n%2 == 0: return False, 2 if n < 9: return True...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
a73d86d3a4f951a81943d8e5269cbe679da0b96d
7727187a009e4b9c46c2fe06609372ec8814cd23
/freemix_akara/__init__.py
91c164e4bb4284d6a3acfe41a1ff6a0104cecf65
[]
no_license
govtmirror/freemix-akara
ebf204554f4effc0543e60083698f2ea012413b8
1d10c3f02afbd4268852e2c52afdf77809176bdd
refs/heads/master
2021-01-12T07:47:08.183429
2014-06-05T18:53:56
2014-06-05T18:53:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
787
py
import os import sys target_version = "5.0.0" def build_version(): distance ="0" try: from subprocess import Popen, PIPE prev_tag,distance,revision = Popen(["git", "describe", "--match", "[0-9]*", "--long"], cwd=os.path.dirname(__file__), ...
[ "dfeeney@gmail.com" ]
dfeeney@gmail.com
543f98e378822d026624672325a7e5e70e01bdbb
0103046cd77e9f86ccde477736de36bba766ceb6
/src/sentry/projectoptions/manager.py
e0fea86bd8bc6dd142d90dbc9d5bf9ee8979bf40
[ "BUSL-1.1", "Apache-2.0" ]
permissive
kaozdl/sentry
ad41ada649a20300e9f2fe69050200cfbf738a63
63d698f5294f64a8c206b4c741e2a11be1f9a9be
refs/heads/master
2021-06-21T18:24:21.713064
2021-03-04T19:45:20
2021-03-04T19:45:20
198,681,569
0
0
BSD-3-Clause
2019-07-24T17:32:29
2019-07-24T17:32:28
null
UTF-8
Python
false
false
3,109
py
import uuid import bisect from datetime import datetime from pytz import utc class WellKnownProjectOption: def __init__(self, key, default=None, epoch_defaults=None): self.key = key self.default = default self.epoch_defaults = epoch_defaults self._epoch_default_list = sorted(epoch...
[ "noreply@github.com" ]
kaozdl.noreply@github.com
ead7b1a0755191bb9b690a567988c0afb102bd9f
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/man/call_last_world_with_next_woman/want_last_case/come_new_hand/few_person.py
61c2026eb36fe40fd1c4e1cefa0bcdb43a2f6891
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
#! /usr/bin/env python def group(str_arg): thing(str_arg) print('feel_company_by_week') def thing(str_arg): print(str_arg) if __name__ == '__main__': group('same_part')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
07abeb853173fc2e69c1a3dea3176bc3904f1b83
cdb186ad49bba1406c81f634b936e73f8cb04009
/ARC/002/a2.py
b88ac58257608a246949e7fe5a812d771b81e63d
[]
no_license
ToshikiShimizu/AtCoder
9e46f5581f2c1f5149ce1394d61d652cda6256a3
41fe6408c20c59bbf1b5d7ee9db2e132f48ad1ac
refs/heads/master
2023-07-26T22:45:51.965088
2023-07-10T14:11:35
2023-07-10T14:11:35
148,154,815
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
#coding:utf-8 y = int(input()) if (y%400==0): print ("YES") elif (y%100==0): print ("NO") elif (y%4==0): print ("YES") else: print ("NO")
[ "tamreff3290@gmail.com" ]
tamreff3290@gmail.com
ed52f1f1bcf6a8340ae7a9012b1186ea964513df
6710c52d04e17facbc9fb35a7df313f7a2a7bd53
/0258. Add Digits.py
9fcb8f9b0f7b36558df111738752ea389b781eb3
[]
no_license
pwang867/LeetCode-Solutions-Python
535088fbe747a453360457728cc22cf336020bd2
188befbfb7080ba1053ee1f7187b177b64cf42d2
refs/heads/master
2022-11-13T16:20:28.211707
2020-06-28T06:01:14
2020-06-28T06:01:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
""" explanation, mathematical proof: N=(a[0] * 1 + a[1] * 10 + ...a[n] * 10 ^n),and a[0]...a[n] are all between [0,9] we set M = a[0] + a[1] + ..a[n] and another truth is that: 1 % 9 = 1 10 % 9 = 1 100 % 9 = 1 so N % 9 = a[0] + a[1] + ..a[n] means N % 9 = M so N = M (% 9) """ # digit root, time/space O(1) class Soluti...
[ "wzhou007@ucr.edu" ]
wzhou007@ucr.edu
a9617016af138a8744cd4ab32de42682c82f62a9
6f44214567f1fe9c5534ea3d55800e9aaabaa390
/evergreen_requests.py
73c97ef056f55049281e3fcfd2f921c5cf23debe
[ "BSD-2-Clause" ]
permissive
saghul/evergreen-requests
c3505c1f669834b997a3b15907cd25a1d88b08f1
4df9e7564492d82d9850399ad6b0c83e59e30423
refs/heads/master
2016-09-06T05:53:26.345690
2013-05-14T21:36:22
2013-05-14T21:36:22
10,063,878
1
0
null
null
null
null
UTF-8
Python
false
false
3,433
py
from functools import partial from operator import methodcaller from evergreen import futures, patcher # Monkey-patch. requests = patcher.import_patched('requests') __version__ = '0.0.1' __all__ = ['map', 'imap', 'get', 'options', 'head', 'post', 'put', 'patch', 'delete', 'request', '__version__'] # Export same i...
[ "saghul@gmail.com" ]
saghul@gmail.com
d2004d8e68741301c502305b263147f20710d51e
ef821468b081ef2a0b81bf08596a2c81e1c1ef1a
/PythonWebBasics_Django/Django_Web_Basics/Django_Web_Basics_2/migrations/0007_auto_20210130_1511.py
c45bf61e0b3924a636cba22def0c3c357974ec4f
[]
no_license
Ivaylo-Atanasov93/The-Learning-Process
71db22cd79f6d961b9852f140f4285ef7820dd80
354844e2c686335345f6a54b3af86b78541ed3f3
refs/heads/master
2023-03-30T20:59:34.304207
2021-03-29T15:23:05
2021-03-29T15:23:05
294,181,544
0
0
null
null
null
null
UTF-8
Python
false
false
448
py
# Generated by Django 3.1.5 on 2021-01-30 15:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Django_Web_Basics_2', '0006_auto_20210130_1456'), ] operations = [ migrations.AlterField( model_name='game', name='l...
[ "ivailo.atanasov93@gmail.com" ]
ivailo.atanasov93@gmail.com
cf3fde1e92f30234f03259580d338b0fc8a49ef0
94a4388cee6dfeaa1674fba20423e8a3f8f6dd42
/backend/game_mdoe_18873/urls.py
d4b0c3f0622dafe5bd8ba458e4c2793e11cd2878
[]
no_license
crowdbotics-apps/game-mdoe-18873
0dc5c1e1827f382d5a84847697d0b1b05191066d
8bcbe6c9b116fa1294b8104018c9cd36b1536c13
refs/heads/master
2022-11-15T17:29:36.126851
2020-07-13T22:23:28
2020-07-13T22:23:28
279,423,144
0
0
null
null
null
null
UTF-8
Python
false
false
2,058
py
"""game_mdoe_18873 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') Cla...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
579f9cdd764f516d3acae14fe2bbe0ae5e6f94b5
165d2e9a6d451b3a614a28629cca256f849b73ab
/notebooks/_solutions/case2_biodiversity_analysis21.py
087bcee2f2924c310bc97c9115dab1564054c9e1
[ "BSD-3-Clause" ]
permissive
DemeulemeesterT/DS-python-data-analysis
5b2439382571769dcc9b61fb3408a51552364c08
b4dd68b9c912c5d5c52c607aa117f5054449c73d
refs/heads/master
2023-05-07T16:51:31.426493
2021-05-31T07:24:38
2021-05-31T07:24:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
species_per_plot = survey_data.reset_index().pivot_table(index="name", columns="verbatimLocality", values="occurrenceID", aggfunc='count') # alte...
[ "jorisvandenbossche@gmail.com" ]
jorisvandenbossche@gmail.com
1401b708e738bdf68f663d12f6a128f484f08f08
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/statistics_timeline_item.py
71106a07b0316521f9190c69730cb31447e4a86e
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
4,489
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class StatisticsTimelineItem: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attri...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
bc34681fd530d87f8de958eb30d88c342abbeffe
daee54824cb107f9b5749e3c12e7f09f544bac0e
/modules/readers/resources/python/rawVolumeRDRViewFrame.py
f809c2e9c0e1da779a57aa6d0deafd0a9ea6ba7c
[]
no_license
JoonVan/devide
8fa556d2b42c5ad70c3595303253f2a171de0312
586225d68b079e2a96007bd33784113b3a19a538
refs/heads/master
2020-12-26T06:25:01.744966
2017-01-22T19:47:50
2017-01-22T19:47:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,028
py
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- # generated by wxGlade 0.6.3 on Sat Feb 09 13:43:04 2008 import wx # begin wxGlade: extracode # end wxGlade class rawVolumeRDRViewFrame(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: rawVolumeRDRViewFrame.__init__ kwds["style"] ...
[ "cpbotha@users.noreply.github.com" ]
cpbotha@users.noreply.github.com
fc7f96130086adfc9ad4a25f653c89d83852ef51
bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6
/AtCoder/EducationalDP/n_2.py
cbed84f2ac5e605e38eb513f8cf7a89401c910ac
[]
no_license
y-oksaku/Competitive-Programming
3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db
a3ff52f538329bed034d3008e051f30442aaadae
refs/heads/master
2021-06-11T16:14:12.635947
2021-05-04T08:18:35
2021-05-04T08:18:35
188,639,647
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
import numpy as np N = int(input()) A = np.array(input().split(), np.int64) Acum = np.zeros((N, N + 1), dtype=np.int64) for i in range(N): Acum[i, i + 1:] = A[i:].cumsum() dp = np.zeros((N, N + 1), dtype=np.int64) for length in range(2, N + 1): for left in range(N - length + 1): right = left + lengt...
[ "y.oksaku@stu.kanazawa-u.ac.jp" ]
y.oksaku@stu.kanazawa-u.ac.jp
39011567a8e74d0c3d1a0fa36bbb225839194414
349dadbf45b7c12a3fe41c5e0421c0488b679919
/transformers/tests/test_trainer_seq2seq.py
dc4a11260d4c0fe61480ce2e944d48835dcfbbd3
[ "BSD-3-Clause", "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Apache-2.0" ]
permissive
salesforce/CodeRL
c772e408bac690527759f416ea22add4c97e5bec
51db4ff983d5376e62b9e7eba150316a651c80d9
refs/heads/main
2023-08-18T18:38:02.740995
2022-11-18T16:14:28
2022-11-18T16:14:28
508,912,853
412
52
BSD-3-Clause
2023-08-31T07:51:27
2022-06-30T02:54:36
Python
UTF-8
Python
false
false
4,859
py
# coding=utf-8 # Copyright 2020 the HuggingFace Inc. team. # # 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 # # Unless required by applicable...
[ "hungle@salesforce.com" ]
hungle@salesforce.com
b0914bfb223699b5b1e55591b0080efe663329aa
f94c2337607ef06856fcff8acd18e60059894e21
/src/program/consumers.py
9d141e87613bd88c6f795b85e8bcb5a01bc8c4e4
[]
no_license
coral/bornhack-website
d82446486db8523d0e059e82851ae80498b0bf2d
260a37af3c1cb4cd33dfc8cb80f6bd966b794c3d
refs/heads/master
2021-01-16T00:09:15.237955
2017-08-10T18:55:13
2017-08-10T18:55:13
99,955,304
0
0
null
2017-08-10T18:51:34
2017-08-10T18:51:34
null
UTF-8
Python
false
false
2,043
py
from channels.generic.websockets import JsonWebsocketConsumer from camps.models import Camp from .models import EventInstance, Favorite class ScheduleConsumer(JsonWebsocketConsumer): http_user = True def connection_groups(self, **kwargs): return ['schedule_users'] def connect(self, message, **k...
[ "valberg@orn.li" ]
valberg@orn.li
2673f7a679c32787464288aeaaf3f84c4970adcd
1852cdc422fe605a379ab24368157a1b82e8f66f
/037_trunc_primes.py
2367585319fcdf307dc6473976ef2f6828dcd21d
[]
no_license
JesseAldridge/Euler
e96bd7995fd8da60ce4db3c1daa20a719778b4a2
ee23c562cfcf3187f8768264249a41470c9d6355
refs/heads/master
2021-01-16T19:35:53.064280
2014-07-06T01:20:26
2014-07-06T01:20:26
2,194,822
2
0
null
null
null
null
UTF-8
Python
false
false
710
py
def gen_primes(): ## http://stackoverflow.com/questions/567222/simple-prime-generator-in-python D = {} q = 2 while True: if q not in D: yield q D[q * q] = [q] else: for p in D[q]: D.setdefault(p + q, []).append(p) del D[q] q += 1 # Find the...
[ "JesseAldridge@gmail.com" ]
JesseAldridge@gmail.com
89f8dbce692f523fe4b4add92ab763aebb764dbb
bdc47ebbe3e125a48d3cfe762061f4b1070465c4
/mysite/fcuser/migrations/0001_initial.py
49fb63275f1f537773b58852b3526f7fe6aadb84
[]
no_license
swpheus/Django_prj
3de3d2b110e51087cdf89b95fc2b6ea3f63acf00
10b9af058f0b76c424e24ecd1996a49646948547
refs/heads/master
2020-07-21T17:17:14.019550
2019-09-21T03:00:36
2019-09-21T03:00:36
206,929,161
0
0
null
null
null
null
UTF-8
Python
false
false
791
py
# Generated by Django 2.2.4 on 2019-08-30 12:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Fcuser', fields=[ ('id', models.AutoField(a...
[ "swpheus1@naver.com" ]
swpheus1@naver.com
5c04bc43c47e68240dcf58ac436ae995004210b7
0a33cc0ebb67c51cc38750f0f04c3e6c088e3b1a
/tests/components/media_source/test_init.py
491b1972cb680ef2f8d91bc7ee511cd93d8951ad
[ "Apache-2.0" ]
permissive
robert-alfaro/home-assistant
e9bb08ad22a167ed226fb3de8f5b36acfc393548
4a53121b58b77a318f08c64ad2c5372a16b800e0
refs/heads/dev
2023-02-28T06:46:23.217246
2022-04-26T17:30:08
2022-04-26T17:30:08
115,894,662
4
0
Apache-2.0
2023-02-22T06:21:08
2018-01-01T02:00:35
Python
UTF-8
Python
false
false
7,917
py
"""Test Media Source initialization.""" from unittest.mock import Mock, patch import pytest import yarl from homeassistant.components import media_source from homeassistant.components.media_player import MEDIA_CLASS_DIRECTORY, BrowseError from homeassistant.components.media_source import const, models from homeassist...
[ "noreply@github.com" ]
robert-alfaro.noreply@github.com
c994e9588ddb9863412a93b03416f881104cb03e
7e4e2acb0cdd4dba7d23e15ce56cdc3e4842f601
/openstack/telemetry/v2/_proxy.py
f9265372a1af74b7c92e798ebfaed693919c7dcc
[ "Apache-2.0" ]
permissive
david-guyon/python-openstacksdk
99b2a52af9acf75b3df76438569477d2a46c1679
4a7c643b1b09904ac5ab8863a06a11e493a3d235
refs/heads/master
2021-05-28T23:06:46.337935
2015-02-26T23:12:53
2015-02-26T23:12:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,801
py
# 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 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
[ "terrylhowe@gmail.com" ]
terrylhowe@gmail.com
40fd3a424ce366164e63986b518fd63f14d16468
2a0efe30198c948982a85ea74c7e47ef9ecb4823
/pers/cyj/day11/shoot/person.py
124be128ac066503bc23040dc39c6c6912db87cf
[]
no_license
cyjhunnyboy/PythonTutorialProj
00151ed364807c6df54b1b0300cb622086128b74
c3a02e6fa2dd09bf5d7b47fd78a4d3a31356a39d
refs/heads/master
2023-02-23T18:35:45.481252
2021-01-25T11:13:45
2021-01-25T11:13:45
298,922,161
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
class Person(object): """人类""" def __init__(self, gun): self.gun = gun def fire(self): self.gun.shoot() def fillBullet(self, count): self.gun.bulletBox.bulletCount = count
[ "cyjhunnyboy@sina.com" ]
cyjhunnyboy@sina.com
ca3aa4adc107683032e77e9d1df22364acfe304a
0e4dc82a94563dacb0c25d0d43fbcbe3def21f72
/259-3Sum-Smaller/Python/Solution01.py
d722b1e3406c547a4b5602fe95da262f1617fbce
[ "CC-BY-3.0", "MIT" ]
permissive
Eroica-cpp/LeetCode
3ce3b05b3098e8097c1090e2116b813efaadd2a3
07276bd11558f3d0e32bec768b09e886de145f9e
refs/heads/master
2021-06-20T05:41:30.506250
2017-03-16T05:17:39
2017-03-16T05:17:39
35,126,816
7
2
null
null
null
null
UTF-8
Python
false
false
1,478
py
#!/usr/bin/python """ ============================================================================== Author: Tao Li (taoli@ucsd.edu) Date: Aug 29, 2015 Question: 259-3Sum-Smaller Link: https://leetcode.com/problems/3sum-smaller/ ============================================================================== Gi...
[ "eroicacmcs@gmail.com" ]
eroicacmcs@gmail.com
d8a209f8fec660b58abf72cb3b33b420aa69cf12
665d9bad46e68f779512640e582d2522867b0dba
/Linked List Problems/21. Merge Two Sorted Lists.py
48c4ac08963a9b30f419087ad340bcb3731dfc20
[]
no_license
RahatIbnRafiq/leetcodeProblems
6fd1e9726b14b7ad3571e5a4af5665b72f7aee0a
2d35590d189938e0705a21be110e75e0b209ea96
refs/heads/master
2021-11-25T11:58:20.498911
2021-11-25T00:43:04
2021-11-25T00:43:04
72,865,562
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def mergeTwoLists(self, l1, l2): d1,d2,d3 = ListNode(0),ListNode(0),ListNode(0) d1.next, d2.next = l1,l2 cur = d3 whi...
[ "rahat.rafiq@colorado.edu" ]
rahat.rafiq@colorado.edu
77d1b6b14ec4e15eceb3b3cb3df095166f40518e
88bbf27deb0b2a1b96985c0a94ff0b7a3d012820
/Feeds/migrations/0001_initial.py
4b9aaa549847b201a89bcbc92820989702ecc36c
[]
no_license
Code-Community99/Hiq-django
e8efb7d63bd4fc0bc8e2af193fdec9aaab0975b0
af62622648ad88f6e8d94e86a8dc5d6660e3bbe2
refs/heads/master
2022-12-14T01:12:45.218318
2020-05-18T23:29:35
2020-05-18T23:29:35
233,811,384
2
1
null
2022-12-08T03:34:53
2020-01-14T10:02:55
JavaScript
UTF-8
Python
false
false
783
py
# Generated by Django 3.0.2 on 2020-01-31 11:46 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('signup', '0001_initial'), ] operations = [ migrations.CreateModel( name='fe...
[ "duncansantiago18@gmail.com" ]
duncansantiago18@gmail.com
64bec78da4f9613a704e778e9861c439a2f6da10
f281d0d6431c1b45c6e5ebfff5856c374af4b130
/DAY001~099/DAY84-BOJ7579-앱/ykim.py
57d20480ba6f75c21a3574aa7376c4bf95479268
[]
no_license
tachyon83/code-rhino
ec802dc91dce20980fac401b26165a487494adb4
b1af000f5798cd12ecdab36aeb9c7a36f91c1101
refs/heads/master
2022-08-13T09:10:16.369287
2022-07-30T11:27:34
2022-07-30T11:27:34
292,142,812
5
6
null
null
null
null
UTF-8
Python
false
false
799
py
import sys N,M=map(int,sys.stdin.readline().split()) #앱 m=list(map(int,sys.stdin.readline().split()))#메모리 c=list(map(int,sys.stdin.readline().split()))#비활성화 비용 result=[10001]*(M+1) result[0]=0 #M = 확보할 메모리 for i in range(N): rm=m[i]#해당 메모리를 제거할때 for j in range(M,-1,-1): if result[j]!=10001:#해당 값이있다면 ...
[ "noreply@github.com" ]
tachyon83.noreply@github.com
6a77925e19d91eaed67900e2e238817e5b1b7ae6
2e70b3ce93762c5b66fba57f8b9cba37aacf0702
/new/event/migrations/0068_auto_20190604_0558.py
2b9ad4a849e0cdbfb1119ab88bfba5b068febf1e
[]
no_license
mahidul-islam/jamah
02be511fe119e8934ec7d5aa1eaa8e2b24fad246
c8ddf9a8094d33e8b1d6cb834eab3d9f18b1a9ea
refs/heads/master
2022-05-13T15:11:38.609550
2019-06-08T04:52:09
2019-06-08T04:52:09
184,331,276
2
0
null
2022-04-22T21:27:18
2019-04-30T21:04:06
Python
UTF-8
Python
false
false
536
py
# Generated by Django 2.2.1 on 2019-06-04 05:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('event', '0067_auto_20190602_1815'), ] operations = [ migrations.RenameField( model_name='eventmember', old_name='account', ...
[ "mizihan84@gmail.com" ]
mizihan84@gmail.com
8abf0d510ba72fc3a8052dcc5dd840e749d5fe57
84bf0086bfe7af894bbfba353f1884ae9f31c335
/1123. Lowest Common Ancestor of Deepest Leaves/Python 3/solution.py
3ab86fe8912541cd5a9e096944789f1d46549a38
[]
no_license
HarrrrryLi/LeetCode
7625d9ec3d7854f72e7aeeb0292960af06a78d05
fe5c6936627c2459731ddda6f67422c217b3cc91
refs/heads/master
2020-04-12T23:57:12.387253
2020-01-16T02:22:26
2020-01-16T02:22:26
162,834,492
0
0
null
null
null
null
UTF-8
Python
false
false
1,129
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def lcaDeepestLeaves(self, root: TreeNode) -> TreeNode: stack = collections.deque() path = set() path.add((root,...
[ "lfrharry@gmail.com" ]
lfrharry@gmail.com
4eebe69f6eb17ac0db185dfa84f1ab896d702cd5
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/3a4115ceaf044682aee09918ac6e23d1.py
b78aaaad71268364f91be3bfbc607b615372c346
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
236
py
def hey(arg): arg = arg.strip() if arg == '': return 'Fine. Be that way!' elif arg.isupper(): return "Whoa, chill out!" elif arg.endswith('?'): return "Sure." else: return "Whatever."
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
99fc264e361c08fda18f058be8e53b400b61379e
6ecf40c771874f31fa19f9534677c95c731352e9
/DRTransmitter.py
d60163c5eddb41d056a1880c6cf332dfa9d71c5b
[]
no_license
fstakem/OptNetFilt
1c86e82629352ee8ee9eb270aa3be01c6202696d
c862f3d1dd09ad9cdd146871761cb1f814e82de9
refs/heads/master
2016-09-11T03:06:06.466206
2014-06-07T02:03:04
2014-06-07T02:03:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,700
py
# .------------------------------------------------------------------------------. # | | # | D E A D R E C K O N I N G T R A N S M I T T E R | # | ...
[ "fstakem@gmail.com" ]
fstakem@gmail.com
de83a23717434f077f88e113fd01c3bab8a6fea2
4a41223e8c8ab33d83c6f213692c6097bb96540d
/eelbrain/_experiment/parc.py
9fc979de7443ed56f4acb4c9f91f8447365c11b2
[ "BSD-3-Clause" ]
permissive
rbaehr/Eelbrain
33ceeee24533581ab3e7569c31e0f6a6c6dfcda1
6301dc256e351fdbb58bbe13ab48fde7bfcf192a
refs/heads/master
2021-07-05T19:19:20.573231
2017-10-03T04:35:23
2017-10-03T04:35:23
104,907,464
0
0
null
2017-09-26T16:03:20
2017-09-26T16:03:20
null
UTF-8
Python
false
false
2,196
py
import re COMBINATION_PARC = 'combination' FS_PARC = 'subject_parc' # Parcellation that come with every MRI-subject FSA_PARC = 'fsaverage_parc' # Parcellation that comes with fsaverage SEEDED_PARC = 'seeded' SEEDED_PARC_RE = re.compile('(\w+)-(\d+)$') class Parcellation(object): make = False morph_from_fs...
[ "christianmbrodbeck@gmail.com" ]
christianmbrodbeck@gmail.com
69e27cea29749aeb55b8285ea5472f561685d74c
fd9ce5afe2d1160e04071e0645eb823e90ed66bb
/tredis/__init__.py
f38a49bae5e190831d83b61c48569bf1f710f587
[]
no_license
haoxuu/tredis
b5efb1728ba94e7799547288623241706c9bd9f9
506c9a8e3d63b4a654e022f5d8127c8de4c82faf
refs/heads/master
2021-01-18T16:04:36.292451
2017-04-13T12:58:48
2017-04-13T12:58:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
""" TRedis ====== An asynchronous Redis client for Tornado """ from tredis.client import Client, RedisClient from tredis.exceptions import * from tredis.strings import BITOP_AND, BITOP_OR, BITOP_XOR, BITOP_NOT __version__ = '0.7.2'
[ "gavinr@aweber.com" ]
gavinr@aweber.com
066775eea5a9fc755660f1f1b211a6359a9d39b9
eb82022c0cfc7c8747661cff9624ad2099fa1c3f
/accounting_report_xls/wizard/requisition_report.py
b8a86af9ecb7b11cf815777cb5903909435929ab
[]
no_license
dadysuarsa/Odoo
8d026a066c390cc8f72805d2672212e61260c1cb
c9becd0c192fa239520ad3e1a11d81f70832eddf
refs/heads/master
2023-03-11T06:02:06.011575
2021-02-26T02:17:37
2021-02-26T02:17:37
276,346,540
0
0
null
null
null
null
UTF-8
Python
false
false
2,509
py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # # Please note that these reports are not multi-currency !!! # from odoo import api, fields, models, tools class RequisitionReport(models.Model): _name = "requisition.report" _description = "Requisition Repor...
[ "dads02_zetti@yahoo.com" ]
dads02_zetti@yahoo.com
2571969d76af0f76eb9cf4d6518aa2ee3cb716ed
4c207b2dd10db5598ccf5d04ccbf5b272bb1a3ae
/app/services/healthcheck.py
d01f5b6cb3836e30f9e6bcdb524a2b45be854c81
[ "MIT" ]
permissive
sina-e/bot
44ede51f498bae10bae59c705dbe42e2d78921cc
5d892a24724b3cd9b50928f1f5753e8b38d537c4
refs/heads/master
2022-03-22T12:32:30.890950
2019-11-10T09:53:10
2019-11-10T09:53:10
244,046,558
1
0
null
null
null
null
UTF-8
Python
false
false
1,458
py
from aiogram import Dispatcher from aiogram.utils.executor import Executor from aiohttp_healthcheck import HealthCheck from loguru import logger from app import config health = HealthCheck() def setup(executor: Executor): executor.on_startup(on_startup, webhook=True, polling=False) async def on_startup(dispat...
[ "jroot.junior@gmail.com" ]
jroot.junior@gmail.com
64aaae03c3ab90f3f0225cbf42dc6b88da545cbb
8bdce915174678a90a6be811ea91b50930b9d26a
/coding/Algorithm_exercise/Leetcode/0051-N-Queens.py
feda3efdc7bdf33d817beb02ebc76b87d12dbe3e
[]
no_license
CharlesBird/Resources
daefffef8fb3735e656cd0a3bf400d5e2ff85cc0
517ac7b7992a686fa5370b6fda8b62663735853c
refs/heads/master
2022-12-15T02:54:56.530940
2020-02-29T14:33:43
2020-02-29T14:33:43
109,668,108
1
1
null
2022-12-08T05:04:25
2017-11-06T08:34:30
Jupyter Notebook
UTF-8
Python
false
false
1,247
py
""" The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens puzzle. Each solution contains a distinct board configuration of the n-queens' placement, where 'Q' and '.' both indicate a queen...
[ "1016784928@qq.com" ]
1016784928@qq.com
02d805ec2da1c542813f48e2d36487ea8c3282fd
54a18823b019112c53fc62766da10cbe5f879615
/pkg/codegen/internal/test/testdata/output-funcs/py_tests/funcWithConstInput.py
d3ba8492d878603b3f22f3f1d551e00dbb14a2fe
[ "Apache-2.0" ]
permissive
TrendingTechnology/pulumi
01904487b2560244c3588004b562571f85cf2e51
1a4f36e97b15e6a25d92a8ebbabd5238c6c5be54
refs/heads/master
2023-07-27T19:38:17.162679
2021-09-16T04:12:49
2021-09-16T04:12:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
# coding=utf-8 # *** WARNING: this file was generated by . *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = [ 'func_with_c...
[ "noreply@github.com" ]
TrendingTechnology.noreply@github.com
be9142c193081f1a1035d6f272c22cc11c1b0e9d
2bc8f66fd34ba1b93de82c67954a10f8b300b07e
/general_backbone/layers/global_context.py
0c80d60097c862eb96f2e9085a77dbbde1fa354a
[]
no_license
DoDucNhan/general_backbone
7dabffed5a74e622ba23bf275358ca2d09faddc1
686c92ab811221d594816207d86a0b97c9b4bc73
refs/heads/main
2023-08-31T14:59:23.873555
2021-10-23T06:34:14
2021-10-23T06:34:14
420,419,141
1
0
null
null
null
null
UTF-8
Python
false
false
2,449
py
# Copyright (c) general_backbone. All rights reserved. """ Global Context Attention Block Paper: `GCNet: Non-local Networks Meet Squeeze-Excitation Networks and Beyond` - https://arxiv.org/abs/1904.11492 Official code consulted as reference: https://github.com/xvjiarui/GCNet """ from torch import nn as nn import ...
[ "phamdinhkhanh.tkt53.neu@gmail.com" ]
phamdinhkhanh.tkt53.neu@gmail.com
162e921c3a9621f4f8e877078a58211b9278b0a5
f6bba50fccc6fb0dae2f046193434cfb4b9d32d5
/121/A.py
9289baf98b8a4ddbe3c1fee1117da72c3e424709
[]
no_license
seven320/AtCoder
4c26723d20004fe46ce118b882faabc05066841c
45e301e330e817f1ace4be4088d3babe18588170
refs/heads/master
2021-11-22T22:57:32.290504
2021-10-24T09:15:12
2021-10-24T09:15:12
162,827,473
2
0
null
null
null
null
UTF-8
Python
false
false
177
py
# encoding:utf-8 import copy import numpy as np import random H,W = map(int,input().split()) h,w = map(int,input().split()) ans = H*W ans -= (h*W+H*w) ans += h*w print(ans)
[ "yosyuaomenw@yahoo.co.jp" ]
yosyuaomenw@yahoo.co.jp
d39063fe831b550fc02fc674df6797f6774dc2af
2b4af8810511b5f1ed47fdf5662753b9b4af76b8
/custom/enikshay/private_sector_datamigration/migrations/0003_auto_20170513_1805.py
fbfb08937806346ac17af7cf5bbc2706612319a5
[]
no_license
DeckOfPandas/commcare-wddcp
55bde89197ec5bc4a4b53d327ec6a811aec0d752
810d2e09d3890e3d0d70178745da5924c1db767b
refs/heads/dimagi
2020-12-02T19:19:53.992796
2017-06-30T15:18:16
2017-07-05T12:23:26
96,325,707
1
0
null
2017-07-05T14:02:49
2017-07-05T14:02:49
null
UTF-8
Python
false
false
477
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-05-13 18:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('private_sector_datamigration', '0002_auto_20170512_1919'), ] operations = [ ...
[ "npellegrino@dimagi.com" ]
npellegrino@dimagi.com
a8900822d7304576a7b117aea8738776f84b8cfc
ae7c6bf729fc4527cfbb7b29bd4dee77b01584c4
/chicago/zip_codes.py
13725efc7dab3c1d18c9c420fa3d06d984a02a04
[]
no_license
ghing/python-chicago
61fd2639160bf1092d7bcfbc1101dc8428764042
4fefb221bca83d55e6c6eb7bae4b90149acf7c57
refs/heads/master
2021-01-13T04:33:02.289631
2017-01-20T22:13:53
2017-01-20T22:13:53
79,591,829
0
0
null
2017-01-20T19:44:17
2017-01-20T19:44:17
null
UTF-8
Python
false
false
998
py
import os.path import six from .base import Model, Collection, DATA_DIRECTORY ZIP_CODE_GEOJSON_PATH = os.path.join(DATA_DIRECTORY, 'chicago_zip_codes.geojson') class ZipCode(Model): fields = [ 'zip', ] def __str__(self): return self.zip def __repr__(self): return "ZipCode(...
[ "geoffhing@gmail.com" ]
geoffhing@gmail.com
3192468b3d6d4a4e049545f1a74508b86d451062
aa0270b351402e421631ebc8b51e528448302fab
/sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/generated_samples/fqdn_list_local_rulestack_create_or_update_maximum_set_gen.py
755d0412200bb3a98af329c57e98ac8474ced4c4
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
fangchen0601/azure-sdk-for-python
d04a22109d0ff8ff209c82e4154b7169b6cb2e53
c2e11d6682e368b2f062e714490d2de42e1fed36
refs/heads/master
2023-05-11T16:53:26.317418
2023-05-04T20:02:16
2023-05-04T20:02:16
300,440,803
0
0
MIT
2020-10-16T18:45:29
2020-10-01T22:27:56
null
UTF-8
Python
false
false
2,048
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
fangchen0601.noreply@github.com
ffc913ac274984b687fba1e23716572ced7bbd7b
fc861233f2ae31f3cdf312e5ca8d68029e811f69
/arrays/SuperWashingMachine_HARD.py
d07ff21678abb6b5f9300ede6cf7a6089d3f2b78
[]
no_license
QuentinDuval/PythonExperiments
20fc54d98ff6e4131975809c32cf8844ff2a8ecb
3ffcfee5cedf421d5de6d0dec4ba53b0eecbbff8
refs/heads/master
2021-07-26T21:24:18.324350
2020-05-02T08:11:58
2020-05-02T08:11:58
163,210,028
3
0
null
null
null
null
UTF-8
Python
false
false
2,749
py
""" https://leetcode.com/problems/super-washing-machines/ You have n super washing machines on a line. Initially, each washing machine has some dresses or is empty. For each move, you could choose any m (1 ≤ m ≤ n) washing machines, and pass one dress of each washing machine to one of its adjacent washing machines at...
[ "senmenty@gmail.com" ]
senmenty@gmail.com
ffcaeac98202cabcc7de9239e976408589ad2a24
b7bf93fc21ba8eec04d6f24e79689dd7bb989770
/test/functional/p2p_node_network_limited.py
84d7213b4cad926cabd2f4fcbe678d02664e31d6
[ "MIT" ]
permissive
onuratakan/bitracoin
cd3ab809af1ce9e245b2fecf59e1421e1e427f90
1d73e0b6352d29066706ac4033dc7b4711246883
refs/heads/main
2023-04-09T03:10:58.075426
2021-04-16T22:06:06
2021-04-16T22:06:06
358,728,118
0
0
MIT
2021-04-16T22:06:07
2021-04-16T21:54:02
null
UTF-8
Python
false
false
5,030
py
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Tests NODE_NETWORK_LIMITED. Tests that a node configured with -prune=550 signals NODE_NETWORK_LI...
[ "binosaurcoin@gmail.com" ]
binosaurcoin@gmail.com
84f0f8092f81b651d958dbf77cda36576cc605bd
605c10db2f950a506af60d57a2074f97ebcf89ab
/code/PROJECT/data_collection/tools/tool_clip_text.py
8e05a495532ed234d8027f39ebae50d4b03c5f0e
[]
no_license
MulongXie/Research-ReverselyGeneratingWebCode
928f90d6b4f80ebff40a9a3a48f8b564277a0987
2c1598a765166f30786b0e6a22c485358ca2e98d
refs/heads/master
2020-05-17T18:14:02.241209
2020-04-10T00:19:16
2020-04-10T00:19:16
183,857,077
0
3
null
2020-02-03T04:31:34
2019-04-28T04:51:24
Python
UTF-8
Python
false
false
2,437
py
import pytesseract as pyt import cv2 import numpy as np import glob from os.path import join as pjoin ROOT_CLEAN_IMG = 'E:\Mulong\Datasets\dataset_webpage\page10000\ip_img_clean' ROOT_OUTPUT = "E:/Mulong/Datasets/dataset_webpage/elements/text" def clipping(img, corners, output_root=ROOT_OUTPUT, pad=False, show_clip=...
[ "dsh15325@163.com" ]
dsh15325@163.com