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
8b25b46c8d9ca7e17242c5a34dc6d503d630471f
80c8d4e84f2ea188a375ff920a4adbd9edaed3a1
/third/opencv/browse.py
188e075680272cef9e5bdda763fa5c013d44cabb
[ "MIT" ]
permissive
Birkid/penter
3a4b67801d366db15ca887c31f545c8cda2b0766
0200f40c9d01a84c758ddcb6a9c84871d6f628c0
refs/heads/master
2023-08-22T14:05:43.106499
2021-10-20T07:10:10
2021-10-20T07:10:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,438
py
#!/usr/bin/env python ''' browse.py ========= Sample shows how to implement a simple hi resolution image navigation Usage ----- browse.py [image filename] ''' # Python 2/3 compatibility from __future__ import print_function import sys PY3 = sys.version_info[0] == 3 if PY3: xrange = range import numpy as np i...
[ "350840291@qq.com" ]
350840291@qq.com
3a442df05646601d4fa5d4b36b57fc95782001d8
8afb5afd38548c631f6f9536846039ef6cb297b9
/_PYTHON/DATA_STRUC_PYTHON_NOTES/python-prac/leetcode/Reverse_Vowels_of_a_String.py
f7ae8ff6075d0681e1b5e360d2e27a1b5ff371b7
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
1,282
py
# Write a function that takes a string as input and reverse only the vowels of a string. # # Example 1: # # Input: "hello" # Output: "holle" # Example 2: # # Input: "leetcode" # Output: "leotcede" # Note: # The vowels does not include the letter "y". class Solution: def reverseVowels(self, s): if len(s) =...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
908841e3cf5b00bca9bca2e35e5e1909f4009e1a
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_052/ch149_2020_04_13_20_50_08_951435.py
9740602280ae16d6f5a919e99b02fe67450aff01
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
772
py
perg = float(input("Qual o salario bruto:" )) if perg <= 1045: paga = perg * 0.075 elif perg <= 2089.60: paga = perg * 0.09 elif perg <= 3134.40: paga = perg * 0.12 elif perg <= 6101.06: paga = perg * 0.14 else: paga = 671.12 perg2 = int(input("Numero de dependentes:" )) base_de_calculo = perg - pa...
[ "you@example.com" ]
you@example.com
a415a4a5c6620dc4b56879ebd413741e2c2df97e
638372b5d4fd778b94ef762d3bb5712c9ba259b4
/post/migrations/0009_auto_20181205_1802.py
7daa40fe70eda3639325aa064fede8465ff9d546
[]
no_license
jakiiii/jqurity
22b9fbde8af534587f73622151c443de3204eee4
5b3043c9cb93d078d6ee83168d08edc334f433a1
refs/heads/master
2023-04-28T18:24:44.468508
2020-08-28T09:25:23
2020-08-28T09:25:23
159,626,702
1
0
null
2023-04-21T20:33:05
2018-11-29T07:38:03
Python
UTF-8
Python
false
false
371
py
# Generated by Django 2.1.3 on 2018-12-05 18:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('post', '0008_auto_20181205_1757'), ] operations = [ migrations.AlterField( model_name='post', name='timestamp', ...
[ "me.jaki@outlook.com" ]
me.jaki@outlook.com
915e119feff8686d187643388228352321eac75f
cb5cd4e38761c8d9a0652ad4e4bbf5de762d2f4f
/docker-rf/index.py
66ec40cda1e3b6d68e9d2417929d01f965e57702
[]
no_license
TuxML/size-analysis
c59820d2ec638d694005d3f52c4e8ac846e3e19e
34472bbba01b553b8dd7ec9656018b366abcd4e6
refs/heads/master
2022-12-06T15:28:47.703329
2022-11-17T23:36:47
2022-11-17T23:36:47
187,631,160
2
1
null
null
null
null
UTF-8
Python
false
false
1,148
py
from load_dataset import load_dataset from params import get_params, get_possible_configurations import traceback import tux params, hyperparams_list = get_params() configs = get_possible_configurations(hyperparams_list) print(params) print(hyperparams_list) df = load_dataset(params["nb_yes"]) params["dataset"] ...
[ "canisback@gmail.com" ]
canisback@gmail.com
fd6f45e4a60acf59cf02f76b51d925f1b53867ac
f0824eb3137c8a4f9e31d115e087b3ef0892d00b
/calculator.py
412da3e057db47aa616db97c04e7699ef3639a88
[]
no_license
nurarenke/hbcalculator-2
7e1445789b43582fce49c6f9382459a40ba660e3
08304c5740e3ee29a8d38ffee61f45dd777c2dd9
refs/heads/master
2021-01-22T02:14:09.344917
2017-05-25T00:54:31
2017-05-25T00:54:31
92,343,185
0
0
null
null
null
null
UTF-8
Python
false
false
1,887
py
"""A prefix-notation calculator. Using the arithmetic.py file, we created a prefix calculator program. """ from arithmetic import * print "howdy welcome to our prefex Calculator! \n " print "please enter the operators first then operands followed by spaces to complete your equation. \n" print "instructions: \n " ...
[ "no-reply@hackbrightacademy.com" ]
no-reply@hackbrightacademy.com
1ed2b55c584c472a5654adc5c74ca125583d1947
addcbb3df26cafd9fa761754b241c9e975a59606
/game/play_test.py
84c19ea3458b95ac1f43f307dd87144300b16071
[]
no_license
leebinjun/cchess-armbot
1ae974fe98af6d1eb2bcc499be01f3cf50d6cc8d
acffd245e6a22c008d933e0b283c44673bde1b03
refs/heads/master
2020-05-19T03:29:23.189789
2019-06-06T15:29:03
2019-06-06T15:29:03
184,787,294
2
2
null
null
null
null
UTF-8
Python
false
false
5,453
py
import sys,os sys.path.append(os.path.dirname(__file__) + os.sep + '../') import time import cv2 import numpy as np from armbot.robot import Armbot from vision.classify import Classify # from strategy.cyclone.cyclone_strategy import StrategyCyclone from strategy.alphazero.cchess_alphazero.mytest2 import StrategyAlph...
[ "296735774@qq.com" ]
296735774@qq.com
5e8b3c8854edb7309548e0cdf62a7cf91fe5d16d
af4aa2e443abaa39b802b57919e9d0c418d17cdd
/2017/Helpers/day_04.py
08d2a39e746ebe689917c51a469e8fba0b4736f7
[]
no_license
daverayment/aoc
902d414b15a2746bdec1bb40e9029891ca800066
c7e9b6249b4e9d95b9b0d14192818e9a1841f3fd
refs/heads/master
2023-02-08T10:48:23.103729
2020-12-26T05:26:02
2020-12-26T05:26:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
#!/usr/bin/env python3 def get_desc(): return 4, 'Day 4: High-Entropy Passphrases' def calc(log, values): ret = 0 ret2 = 0 for cur in values: cur = cur.split(' ') if len(set(cur)) == len(cur): ret += 1 cur = ["".join(sorted(x)) for x in cur] if len(set(cur)...
[ "scott.seligman@gmail.com" ]
scott.seligman@gmail.com
37dc4ca6c890736e037a421ed9f8aa757a3f8cd6
6bfc9ab12f53cc5362e69c42d3e7f1a5ccbccfa5
/RNA-seq/callEditing.py
6667b457564ad4b566c39904ab96bcbf2a00d14e
[]
no_license
Yixf-Self/NGS_Pipeline
c7cf7a468ee58eca74589ecb337531b35b4ed318
126dbc4829c2e9ec7181fcba6a9fe453babe7a35
refs/heads/master
2020-03-31T06:52:00.641508
2018-08-15T09:09:18
2018-08-15T09:09:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,965
py
#!/usr/bin/env python2.7 #--coding:utf-8-- """ callEditing.py """ __author__ = "CAO Yaqiang" __date__ = "2018-08-08" __modified__ = "" __email__ = "caoyaqiang0410@gmail.com" #systematic library import os, gzip, time from glob import glob #3rd library from joblib import Parallel, delayed #my own from Biolibs.rel.Gen...
[ "caoyaqiang0410@gmail.com" ]
caoyaqiang0410@gmail.com
ecc363019d1ac8c95b62a1d3d4efaf459d126566
1ccdc9c527953d235542b6964ceb898687b6e01b
/spectral_density_discretization/spectral_density.py
21145590a59df1debe2146405d8bc750ec1f4de0
[ "MIT" ]
permissive
gharib85/spectral_density_discretization
5746a2ef5914b07c805ac87060d94f7996d31fd2
a523bb753405c89077a30e1cde9b4bafae59d71c
refs/heads/master
2022-01-03T09:42:01.397337
2016-04-14T21:47:25
2016-04-14T21:47:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,594
py
#!/usr/bin/env python import math import pandas as pd def print5(one, two, three, four, five): fivestr = "%.10f %.10f %.10f %.10f %.10f" % (one, two, three, four, five) return fivestr def print_column(v, N_max): out_str = "" if (N_max == 0): out_str += "0.0" for i in range(N_max / 5): ...
[ "dwhs@hyperblazer.net" ]
dwhs@hyperblazer.net
9bb43f0d892c62971f389c9a5987b03b2318efb6
ce550f6daa8925d5bf7b2d7e7e59caa8f69303b3
/unittests/call_policies_tester.py
114921f34faa4e0be8c48714bb0f983785dc4bcf
[ "BSL-1.0" ]
permissive
laxris/pyplusplus
6222e67d1e21d7f758c20d4957e69006f0f56741
18485e9013e30b1f7776b6039eeaa2fbdb73f183
refs/heads/master
2021-01-15T21:50:10.454863
2013-01-30T02:20:18
2013-01-30T02:20:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,693
py
# Copyright 2004-2008 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) import os import sys import unittest import fundamental_tester_base from pyplusplus.module_builder import call_policies get_si...
[ "mmoll@rice.edu" ]
mmoll@rice.edu
422af4a161f6ee63a1501fe9f3e5954324df42da
11c063b9e950d9a3b1197ff6ac10ddd9e4dfd05c
/tests/test_helpers.py
6d787ae78f710e68440833419f3c2b55b29f5ede
[ "MIT" ]
permissive
joehybird/factory_boy
115c438c8f6cfe699a96bd5ea8c5209b4c8f0218
3d0c247ba12c93da950f3f9f57121874a0135430
refs/heads/master
2020-03-28T15:19:36.768739
2018-09-13T04:24:03
2018-09-13T04:44:30
148,580,861
0
0
MIT
2018-09-13T04:13:47
2018-09-13T04:13:48
null
UTF-8
Python
false
false
1,597
py
# -*- coding: utf-8 -*- # Copyright: See the LICENSE file. import logging from factory import helpers from .compat import io, unittest class DebugTest(unittest.TestCase): """Tests for the 'factory.debug()' helper.""" def test_default_logger(self): stream1 = io.StringIO() stream2 = io.Strin...
[ "raphael.barrois@polytechnique.org" ]
raphael.barrois@polytechnique.org
ff7c5a81527acf7053254fb7ab66fa9403ebeb5f
add72f4d6f9f7af1f437d19213c14efb218b2194
/icekit_events/migrations/0005_auto_20161024_1742.py
a7bda0b59eda2038978717c86cf357857a3ec8a6
[ "MIT" ]
permissive
ic-labs/django-icekit
6abe859f97c709fcf51207b54778501b50436ff7
c507ea5b1864303732c53ad7c5800571fca5fa94
refs/heads/develop
2022-08-08T21:26:04.144852
2018-01-08T02:55:17
2018-01-08T02:55:17
65,470,395
53
12
MIT
2022-07-06T19:59:39
2016-08-11T13:11:02
Python
UTF-8
Python
false
false
812
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('icekit_events', '0004_eventbase_part_of'), ] operations = [ migrations.AddField( model_name='eventbase', ...
[ "greg@interaction.net.au" ]
greg@interaction.net.au
6de3d7a442d61c6a04b0a0f013b409eb58553d08
df2cbe914f463ad050d7ed26194424afbe3a0a52
/addons/payment_alipay/controllers/main.py
5763313b1a936c8939a555d07d058c58db11e05f
[ "Apache-2.0" ]
permissive
SHIVJITH/Odoo_Machine_Test
019ed339e995be980606a2d87a63312ddc18e706
310497a9872db7844b521e6dab5f7a9f61d365a4
refs/heads/main
2023-07-16T16:23:14.300656
2021-08-29T11:48:36
2021-08-29T11:48:36
401,010,175
0
0
Apache-2.0
2021-08-29T10:13:58
2021-08-29T10:13:58
null
UTF-8
Python
false
false
3,001
py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import pprint import requests import werkzeug from odoo import http from odoo.http import request _logger = logging.getLogger(__name__) class AlipayController(http.Controller): _notify_url = '/paym...
[ "36736117+SHIVJITH@users.noreply.github.com" ]
36736117+SHIVJITH@users.noreply.github.com
0bd3f8e113b7ff3a27c77251717ebdf08b8043a7
c55c9580207a2e29c14a12a7f8521b9ae3d75e67
/keras_module/data_gen/pascal_gen.py
f683c0f2782ed76de2b074dd548f5a949687eb15
[ "Apache-2.0" ]
permissive
sinianyutian/pycharm-project
f98fc9988eda9c010d066703ff414393a76faff5
29e677418820a620e58dd22a85feb4ac3f28651a
refs/heads/master
2020-03-14T06:58:27.431980
2017-04-17T07:07:25
2017-04-17T07:07:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,163
py
import os.path as osp import os import numpy as np import scipy.misc from keras.applications import vgg16 from keras.preprocessing import image from keras.preprocessing.image import load_img from segmentation_dataset import SegmentationDatasetBase class PascalVOC2012SegmentationDataset(SegmentationDatasetBase): ...
[ "614047311@qq.com" ]
614047311@qq.com
ccb54840756b8ddc1ab10ca8cb027ed01483b33f
4a97017eab020738da4a337eaaba05e9989220ba
/features/steps/zz_15_cube_steps.py
ee5c47712be02d34a3c382330634580adc5a2893
[ "MIT" ]
permissive
tewarfel/RayTracerChallenge_1
27c62f3e42a03ae96756e32eefcf86a576b9264d
736cc5d159c267c9bcc14d42abb03eedc2f7e5f1
refs/heads/master
2020-12-06T07:01:04.467636
2020-01-10T03:03:37
2020-01-10T03:03:37
232,382,133
2
0
null
null
null
null
UTF-8
Python
false
false
2,880
py
from behave import * from hamcrest import assert_that, equal_to from vec3 import Vec3, vec3 from vec4 import Vec4, point, vector import numpy as np from shape import material, sphere, test_shape, default_world, point_light from base import equal, intersect_world, shade_hit, is_shadowed, color_at, World, render, transla...
[ "thomas.warfel@pnnl.gov" ]
thomas.warfel@pnnl.gov
bb2e48105480a020306c05505f7edec079238102
458873dcd530591e9c738cb84bc5c923bf324153
/projects/ashg13/prepare_hetnet.py
9f52151329e071775e2f984507875d76d8157b81
[ "BSD-2-Clause-Patent" ]
permissive
dhimmel/serg-pycode
d6206e09b3f0e1f2751b58ba53ded54cf2779df8
075de0ba470e4fbda5e33dfc23cb9ecd86ec53b7
refs/heads/main
2022-12-29T04:16:52.698397
2020-10-17T15:59:11
2020-10-17T17:17:47
304,333,967
0
0
null
null
null
null
UTF-8
Python
false
false
2,915
py
import collections import hetnet import hetnet.agents import hetnet.algorithms network_dir = '/home/dhimmels/Documents/serg/ashg13/131219-1' graph_agent = hetnet.agents.GraphAgent(network_dir) # Load graph print 'loading graph' graph = graph_agent.get() print 'graph loaded' metagraph = graph.metagraph #graph_agent....
[ "daniel.himmelstein@gmail.com" ]
daniel.himmelstein@gmail.com
b22d18b6847282b1230593ec2a02bd23a8c21207
a7d41aa056165fc33b0c1d8edd50b8557f642548
/Python/List-2/count_evens.py
e819c054d54df2f3f583377dbfb3c3e7526cb379
[]
no_license
jemtca/CodingBat
3243ec9c5309f8581e1a54fba0b076069cec7d74
8545a70348dd621070c8b3efa280ca79a24f9d5a
refs/heads/master
2023-04-05T03:20:17.416495
2023-03-31T06:35:08
2023-03-31T06:35:08
147,287,514
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
# return the number of even ints in the given array def count_evens(nums): count = 0 for x in range(len(nums)): if nums[x] % 2 == 0: count += 1 return count print(count_evens([2, 1, 2, 3, 4])) print(count_evens([2, 2, 0])) print(count_evens([1, 3, 5]))
[ "30645648+jemtca@users.noreply.github.com" ]
30645648+jemtca@users.noreply.github.com
316f52f9561d6d750b36ab14d74faea28bfe62d3
0afdbc5584b3b432026a751fbab24c4c6be2ca29
/saywiti/api_v1/urls.py
cbfca3563d08f3eddc545ad9714a6426aad27b8a
[ "MIT" ]
permissive
erickgnavar/saywiti
000d95b5b354f3e6636063d8fb951ea7460b6806
ec3edc5fe722ee17699c0320ddb766a09147f66e
refs/heads/master
2020-04-12T03:55:10.745965
2017-03-26T22:13:22
2017-03-26T22:13:22
63,273,652
2
0
null
null
null
null
UTF-8
Python
false
false
311
py
# -*- coding: utf-8 -*- from django.conf.urls import url from . import views urlpatterns = [ url(r'^posts/$', views.posts, name='posts'), url(r'^posts/(?P<post_id>\d+)/$', views.post_detail, name='post-detail'), url(r'^projects/(?P<slug>[\w-]+)/issues/$', views.issue_list, name='issue-list'), ]
[ "erick@navarro.io" ]
erick@navarro.io
5ff645abf23c2051a8da67a096d4206ae68624c2
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02412/s575578444.py
9025c9e6860832472f2eeca288103241063f02ba
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
while True: n,x=[int(i) for i in input().split()] if n==0 and x==0: break s=0 for i in range(1,n+1): for j in range(i+1,n+1): for k in range(j+1,n+1): if i+j+k==x: s+=1 print(s)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
49b32bf10fb7436a885fa373261b843f5081002e
42f418a4535c269ea1fbf2a023acf9805ee72c0a
/exploration/executables/October17/pca.py
9d0dcc0ddf280fbfe15bc1c6c2a289ebe558a95a
[]
no_license
yumilceh/artificialbabbling
10e6fe2fe19edbc0263c61b2897514cbae9a1c1f
680b720e48b787bac1c626c597fd690159edd777
refs/heads/master
2022-11-12T22:21:38.606407
2018-04-24T14:37:20
2018-04-24T14:37:20
270,961,611
0
0
null
null
null
null
UTF-8
Python
false
false
6,173
py
''' Created on Oct 10, 2016 @author: Juan Manuel Acevedo Valle ''' from matplotlib import pyplot as plt from sklearn.decomposition import PCA import numpy as np import h5py, os, sys, random from scipy.stats import gaussian_kde from scipy.stats.distributions import norm def plotPDFx_y(figs, axes, directories, col...
[ "jmavbpl@gmail.com" ]
jmavbpl@gmail.com
9e40763ead2a5c16069a4e64c120a5094a63c04b
21263d445ca87670d164282ac961ca6fc60f21bd
/knapsack/01Knapsack.py
520dea161d571843a57940827fca37b64fc559ea
[]
no_license
unsortedtosorted/DynamicProgramming
f7f809a1bbf6250bbd05736820f2541b6063eff1
93bba23c39c7dd93323b8f0587d10ea70ecc7f2a
refs/heads/master
2020-04-25T00:37:32.613855
2019-05-13T17:41:23
2019-05-13T17:41:23
172,383,951
0
0
null
null
null
null
UTF-8
Python
false
false
1,720
py
""" Given two integer arrays to represent weights and profits of ‘N’ items, we need to find a subset of these items which will give us maximum profit such that their cumulative weight is not more than a given number ‘C’. Each item can only be selected once, which means either we put an item in the knapsack or we skip i...
[ "noreply@github.com" ]
unsortedtosorted.noreply@github.com
04ab021c81f13922e97f2a895932d1f434b5f6ca
4e5141121d8b4015db233cbc71946ec3cfbe5fe6
/samples/basic/crud/gnmi/models/cisco-ios-xr/Cisco-IOS-XR-ipv4-arp-cfg/gn-create-xr-ipv4-arp-cfg-11-ydk.py
2f940177bb916766695e178c77d57a3e21fa4596
[ "Apache-2.0" ]
permissive
itbj/ydk-py-samples
898c6c9bad9d6f8072892300d42633d82ec38368
c5834091da0ebedbb11af7bbf780f268aad7040b
refs/heads/master
2022-11-20T17:44:58.844428
2020-07-25T06:18:02
2020-07-25T06:18:02
282,382,442
1
0
null
2020-07-25T06:04:51
2020-07-25T06:04:50
null
UTF-8
Python
false
false
2,803
py
#!/usr/bin/env python # # Copyright 2016 Cisco Systems, Inc. # # 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 applicab...
[ "deom119@gmail.com" ]
deom119@gmail.com
4119859e8a50f3beb5536ff6fed1a9f181be6837
a60fd500982f165c885cc807403f73e111e0ef5c
/utils/export_data.py
95ed85156ada6964e510e691505a7d11070f235a
[]
no_license
cash2one/internet-content-detection
d1a75743bb2e1cbcf9a23faa0bf380d9b9760c28
e07cdc5da67c2a5cf3104c9e3f6fec38685accc7
refs/heads/master
2021-01-19T03:41:29.946909
2017-02-23T06:35:39
2017-02-23T06:35:39
84,409,514
2
0
null
2017-03-09T07:04:01
2017-03-09T07:04:01
null
UTF-8
Python
false
false
5,670
py
# -*- coding: utf-8 -*- ''' Created on 2017-01-11 15:41 --------- @summary: mongo 导数据 到oracle 或 mysql --------- @author: Boris ''' import sys sys.path.append('..') import init from db.mongodb import MongoDB from db.oracledb import OracleDB from db.mysqldb import MysqlDB from utils.log import log import...
[ "boris_liu@foxmail.com" ]
boris_liu@foxmail.com
5254588fc6a11162ff294fd5b3a52a38aed5c5c0
01d360be0804364f476d5fe6db8098ac209f3ab1
/test/test11.py
5667130fe38b78ad5f2fe292ddccaaac1cfaaae5
[]
no_license
Annihilater/jinzhongbao
8cedf76330880bb8abe83b24cf665a3f38791b65
824e0a4ccb5e4f0b98a50704541e2165e644c6e6
refs/heads/master
2022-12-17T05:48:32.696849
2019-03-13T09:58:14
2019-03-13T09:58:14
167,774,589
0
0
null
2022-12-08T01:34:48
2019-01-27T05:41:28
Python
UTF-8
Python
false
false
248
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2019/3/5 13:14 # @Author: PythonVampire # @email : vampire@ivamp.cn # @File : test11.py import datetime text = "201901" y = datetime.datetime.strptime(text, "%Y%m") print(y) print(type(y))
[ "yanmiexingkong@gmail.com" ]
yanmiexingkong@gmail.com
21cf291495c6ae170093b467bde80006ef984972
4e5655384af29ca5e771bf29b362aa36f8f22169
/数学/69.x的平方根.py
3ac9e942b43669f4bc2bfb788309b058eba3fa68
[]
no_license
wanwanaa/Leetcode
222ca30186be5b4d17a7b01c5a8cd8692d452b77
23c0c9036fbd7c77d41b2944ed609e5dfc5ad975
refs/heads/master
2020-08-17T13:24:28.330995
2019-10-17T12:00:32
2019-10-17T12:00:32
215,673,026
1
0
null
null
null
null
UTF-8
Python
false
false
344
py
# 69.x的平方根(二分法) def mySqrt(self, x: int) -> int: if x == 0: return 0 if x == 1: return 1 i = 1 j = x // 2 mid = (i+j) // 2 while j - i > 1: if x > mid**2: i = mid else: j = mid mid = (i+j) //2 if j**2 <= x: return j ...
[ "1551612415@qq.com" ]
1551612415@qq.com
42d84ac0c7b466ee88a5805f9f80478b6d42f60a
b924891e6c6b1a2c1ef08870d1b2c939408cb207
/rolepermissions/utils.py
dde3bd454873e61db021d4983d78af72d125d22c
[ "MIT" ]
permissive
giorgil/django-role-permissions
3b62451b275bb31de427adc0a9c578a2fafa106f
05170f575c8a9088c781a8990aa0dab8047dc1c8
refs/heads/master
2021-06-30T19:43:16.819996
2017-09-21T13:49:57
2017-09-21T13:49:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
691
py
from __future__ import unicode_literals import re import collections def user_is_authenticated(user): if isinstance(user.is_authenticated, collections.Callable): authenticated = user.is_authenticated() else: authenticated = user.is_authenticated return authenticated def camelToSnake(s)...
[ "filipeximenes@gmail.com" ]
filipeximenes@gmail.com
b01db968e823908f76d9ec6ff624a2092720f385
3b8387d770b33850dca55a1f0657167906697b5b
/kth_largest_element_in_an_array.py
ab49e1f33487d02057175a51c0b6a2cd04323bfb
[]
no_license
BigZihao/Leetcode
fe2795d5485e4780c1ec79558eaf9017a830a516
95ec42c241a4815a8b35f7a71948f1bc4e58b5b3
refs/heads/master
2021-01-13T00:59:12.489768
2018-06-21T21:50:33
2018-06-21T21:50:33
48,407,360
2
0
null
null
null
null
UTF-8
Python
false
false
293
py
class Solution(object): # k+(n-k)*log(k) time def findKthLargest1(self, nums, k): heap = nums[:k] heapq.heapify(heap) for num in nums[k:]: if num>heap[0]: heapq.heapreplace(heap, num) return heap[0] def findKthLargest2(self, nums, k): return heapq.nlargest(k, nums)[k-1]
[ "zihao.zhang.ustb@gmail.com" ]
zihao.zhang.ustb@gmail.com
419abdb366180599c55ba444c2a515e9c6e1a55b
f6eefa39aa02e860acc9385827227752bab0ed22
/m_explorer/m_comics/migrations/0004_auto_20160505_1822.py
1171f3e2362d4c80845d7a92163e4b52be109282
[ "MIT" ]
permissive
marvel-explorer/marvel-explorer
31fbc310ae1eb827b74c4f84eda157dc295ad5c0
5c88f113e3526b347e589a540e21ac4b925dc106
refs/heads/master
2021-01-17T12:54:25.173005
2016-06-30T01:51:35
2016-06-30T01:51:35
56,878,556
3
1
null
2016-06-30T01:51:36
2016-04-22T18:58:37
Python
UTF-8
Python
false
false
1,104
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-05-06 01:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('m_comics', '0003_auto_20160505_1743'), ] operations = [ migrations.AlterFiel...
[ "nadia.bahrami@gmail.com" ]
nadia.bahrami@gmail.com
413df6b8813d9503b8db6d0ef4df122d2ea7f044
7afaa97f5349549ac29faa726fe8fb8249dce8bf
/SDK/PlotOptSub.py
e7a2033426b146b97709e13be17540cfeb5dbc81
[]
no_license
juanlianren0515/SandPlate
e6963e08e990c892d067d62148a5d9dea57152a5
71eeb23255fe665b446738b28314f911fbe0d788
refs/heads/master
2020-09-09T22:42:39.948365
2019-12-05T22:35:08
2019-12-05T22:35:08
221,588,210
0
0
null
null
null
null
UTF-8
Python
false
false
622
py
# encoding = utf-8 import math def addXticklabel(ax, df_date_S, x_amount, fontsize=5, rotation=90): """ 将字符串列用作x轴标签 :param ax: :param df_date_S: sh_index['date'] :param x_amount: x轴最多40个label,多了太密 :return: """ xticks = range(0, len(df_date_S), int(math.ceil(len(df_date_S) / x_amo...
[ "1210055099@qq.com" ]
1210055099@qq.com
69f2419eae020ef92aca9343e2867b19fbd6cfcd
95540a155c043dd84ea6c0fb7d59ba06dc78b875
/python/预科/第三天/1.if条件判断表达式.py
8c2ed6c04cb53805c5bbbd7cae7c1b1b5b4829c2
[]
no_license
Lilenn/must
41b95d8e80f48a6b82febb222936bbc3502cc01f
a510a8d0e58fde1bc97ab7ad9bd2738158dcba5e
refs/heads/master
2020-04-09T23:09:20.116439
2018-12-06T09:02:09
2018-12-06T09:02:09
160,648,431
0
0
null
null
null
null
UTF-8
Python
false
false
559
py
age = 10 name ='小明' if age < 4 : print('幼儿') if age < 12 : print('儿童') if age < 18 : print('青少年') if age < 25 : print('青年') if age < 100 : print('少于100') else : print('大于100') if age < 10 : print('age') if name == '小明': print('小明') # 局部变量 影响部分代码 在部分代码中有效 # 全局变量 在全部代码中都有效 if age < ...
[ "846077763@qq.com" ]
846077763@qq.com
ec0915fa2463fb1da2bb9ad4a5b55793d40fac93
124081e8c2e25b44e678f85fbd98226e9c6ccc85
/09 Tuples/9-01_1.py
d947f0488a34567ec336c79201387af96c4002bd
[]
no_license
paalso/learning_with_python
934266bdeb282304ab2a80e52137f53a0b42e68f
ed2b43c819690fcbfabf5c6d6a6f74a83cd2b48d
refs/heads/master
2021-11-22T17:17:14.931265
2021-09-13T13:52:49
2021-09-13T13:52:49
192,216,753
0
0
null
null
null
null
UTF-8
Python
false
false
1,138
py
## Chapter 9. Tuples ## http://openbookproject.net/thinkcs/python/english3e/tuples.html ## Exercise 1 ## =========== # We’ve said nothing in this chapter about whether you can pass tuples as # arguments to a function. Construct a small Python example to test whether this # is possible, and write up your finding...
[ "40a.pvl@gmail.com" ]
40a.pvl@gmail.com
994179b65a3bb03fc700e3909c5c6fb5a599176c
731c3f2f85f6002725322eedc0b2c8b5e74f610e
/0-jakc/jakc_point_of_sale/__openerp__.py
dbf581f96df9e0585853347d0fe4e145ce84d5bb
[]
no_license
babarlhr/project-0021
1ac824657f893c8f25d6eb3b839051f350d7cc9d
e30b8a9f5d2147d3ca5b56b69ec5dbd22f712a91
refs/heads/master
2021-09-22T15:45:47.431000
2018-09-11T14:59:49
2018-09-11T14:59:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
# -*- coding: utf-8 -*- ################################################################################# # # Copyright (c) 2016-Present Jakc Labs. (<http://www.jakc-labs.com/>) # ################################################################################# { 'name': 'Jakc Labs - POS Enhancement', 'summa...
[ "wahhid@gmail.com" ]
wahhid@gmail.com
ddd3e27abc37a22ed72742b905bfa81d247b447e
6febd920ced70cbb19695801a163c437e7be44d4
/leetcode_oj/divide_and_conquer/findMedianSortedArrays.py
d5acaebb7a6e93b08e1d8366a741f488ff77a74b
[]
no_license
AngryBird3/gotta_code
b0ab47e846b424107dbd3b03e0c0f3afbd239c60
b9975fef5fa4843bf95d067bea6d064723484289
refs/heads/master
2021-01-20T16:47:35.098125
2018-03-24T21:31:01
2018-03-24T21:31:01
53,180,336
1
0
null
null
null
null
UTF-8
Python
false
false
1,187
py
''' There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). ''' class Solution: # @param {integer[]} nums1 # @param {integer[]} nums2 # @return {float} def findMedianSortedArrays(self, nums1,...
[ "dhaaraa.darji@gmail.com" ]
dhaaraa.darji@gmail.com
3e73db004ccc472253cc1d8abbb17c752629b76b
0f2b226f8f28db835bd31179371d87f0605c3e78
/library/remove_blank_dup_lines.py
ce0ce6eaf210bbe7d218bd4ede50b6c456901566
[]
no_license
srikanthpragada/PYTHON_15_MAY_2018_DEMO
5a358b293f69532ba19fbe5aa9161cc1fd6523ea
5724d4dd701bf20797d7c1dfb94ab379e19a0c8a
refs/heads/master
2020-03-17T13:02:20.552185
2018-05-31T06:00:32
2018-05-31T06:00:32
133,614,433
0
1
null
null
null
null
UTF-8
Python
false
false
451
py
lines =[] with open(r"e:\classroom\python\may15\names.txt","rt") as file: for line in file.readlines(): # print(line, len(line), len(line.strip(" "))) if len(line.strip(" ")) == 1: continue if not line in lines: lines.append(line) with open(r"e:\classroom\python\m...
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
9d3e33b0d2da7bcc0c999066aecdc1fc3498715b
4aa7a4d0525095725eb99843c83827ba4806ceb1
/data/dacon/comp3/dacon_LSTM.py
3fc791e00e67c4bb022a98be4e760266017c66e8
[]
no_license
seonukim/Study
65a70f5bdfad68f643abc3086d5c7484bb2439d4
a5f2538f9ae8b5fc93b5149dd51704e8881f0a80
refs/heads/master
2022-12-04T17:04:31.489771
2020-08-21T00:35:15
2020-08-21T00:35:15
260,144,755
2
0
null
null
null
null
UTF-8
Python
false
false
4,059
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split, KFold from sklearn.preprocessing import StandardScaler, RobustScaler from sklearn.preprocessing import MinMaxScaler from keras.models import Sequential from keras.layers import LSTM, Dense, Dropo...
[ "92.seoonooo@gmail.com" ]
92.seoonooo@gmail.com
3a6d52c5057a2bea8991ca37bce5d3a80414ce12
318785f1aa24101fb9ba5b637d9cc1162fd5ad9a
/bankapp_project/manage.py
a2c21d8575a0753e8eb0bc97a74a562829529cbd
[]
no_license
Mesaj2000/Banking-Application
05f9e1da06afb217190adf77403d4821673d3ad4
cd727c8bd7ed038eaf3e8c24daf13726d7e5a5c6
refs/heads/master
2023-01-13T05:25:41.506355
2020-11-21T20:44:35
2020-11-21T20:44:35
297,799,295
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bankapp_project.settings') try: from django.core.management import execute_from_command_line exc...
[ "=" ]
=
4472f417603415db203dfe661507ddec4c8e6d5d
77311ad9622a7d8b88707d7cee3f44de7c8860cb
/res/scripts/client/messenger/proto/xmpp/__init__.py
ff7b7e2752f8b5924a8cadc3907cd59921261bdb
[]
no_license
webiumsk/WOT-0.9.14-CT
9b193191505a4560df4e872e022eebf59308057e
cfe0b03e511d02c36ce185f308eb48f13ecc05ca
refs/heads/master
2021-01-10T02:14:10.830715
2016-02-14T11:59:59
2016-02-14T11:59:59
51,606,676
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
517
py
# 2016.02.14 12:43:00 Střední Evropa (běžný čas) # Embedded file name: scripts/client/messenger/proto/xmpp/__init__.py from messenger.proto.xmpp.plugin import XmppPlugin from messenger.proto.xmpp.XmppServerSettings import XmppServerSettings __all__ = ('XmppPlugin', 'XmppServerSettings') # okay decompyling c:\Users\PC\w...
[ "info@webium.sk" ]
info@webium.sk
6d90d092d96a1284e86207e28d2d4e581c3a3842
cf1b3312af6395c0f8cc7d3ef7d6310a125816bf
/paddlenlp/datasets/iwslt15.py
4cfdc63fdb466091fd13c9a5a15667ceb018ed1f
[ "Apache-2.0" ]
permissive
thomas-yanxin/PaddleNLP
92db7b4c5eef4494f6e770eaebd80001e66494d2
1ddc5bbeeb587a20c10629d17b030214aba77990
refs/heads/develop
2023-06-22T18:00:34.532679
2021-07-21T06:12:58
2021-07-21T06:12:58
388,380,705
1
0
Apache-2.0
2021-07-22T08:11:12
2021-07-22T08:11:11
null
UTF-8
Python
false
false
5,143
py
# Copyright (c) 2020 PaddlePaddle 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 appli...
[ "noreply@github.com" ]
thomas-yanxin.noreply@github.com
9b2901843937c194b24370251634787b21136656
482eda407c9ce5fbfe9399972f23b03757ef575f
/medialinkfs/metadata.py
0bd0f4ceb35a57cea4db88e00158810576e695fa
[]
no_license
nick5429/medialinkfs
fe25371845d4b16c0806ccee74964bb278e7bed6
9544fa8a639450cb0ab6ae63c05ccb5a2598a373
refs/heads/master
2021-01-22T10:56:27.096738
2015-07-18T15:44:16
2015-07-20T18:20:20
39,271,208
0
0
null
2015-07-17T19:15:55
2015-07-17T19:15:54
null
UTF-8
Python
false
false
1,653
py
# Responsible for loading an item's metadata from .deepmerge import deep_merge from .parsers import load_parser import logging import os.path import re import traceback logger = logging.getLogger(__name__) def load_item(settings, name): logger.debug("Loading metadata for %s"%(name,)) path = os.path.join(settings['s...
[ "hufman@gmail.com" ]
hufman@gmail.com
f482d294ff4f1c7fb55a9f60bc7da0d0f11ee8aa
7a7bbdaab3cedcd9b89d9245d67fe7cc472fc288
/Math2/1002.py
ce5bdd654f450b9a9412b1e55c922f219e2e678e
[]
no_license
rheehot/baekjun
cd213c6903e69a8e48b4942c950048c1c3e03c34
44792c6d125af7d9b0739c571e7918c802f73c01
refs/heads/master
2023-02-12T08:42:47.578842
2020-12-21T00:40:35
2020-12-21T00:40:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
N = int(input()) for _ in range(N): jo_x, ba_x, j_r, jo_y, ba_y, b_r = map(int, input().split()) between = ((ba_y - jo_y) ** 2 + (ba_x - jo_x) ** 2) ** 0.5 if between == 0 and j_r == b_r: print(-1) elif between == (b_r + j_r) or between == abs(j_r - b_r): print(1) elif abs(j_r - b...
[ "sol35352000@gmail.com" ]
sol35352000@gmail.com
13e3cc728ae6a9feb744154511c8605688c2a490
37d6ba9865ff154ffe337b73a2fd6824874385d5
/website-backend/ava/capture/tests.py
b9f995a8c1ac88e75c1f6d6bc21c12e0544e002c
[ "BSD-2-Clause", "LicenseRef-scancode-generic-cla" ]
permissive
electronicarts/ava-capture
fc11291432153a58179c0eedce99f537e9c13bbf
fc6a1f89706309139f5ce0976e5a29969158a191
refs/heads/master
2023-07-05T20:31:03.083021
2022-12-07T22:19:16
2022-12-07T22:19:16
100,387,988
63
16
NOASSERTION
2023-09-04T23:33:41
2017-08-15T14:52:07
Python
UTF-8
Python
false
false
128
py
# # Copyright (c) 2018 Electronic Arts Inc. All Rights Reserved # from django.test import TestCase # Create your tests here.
[ "edanvoye@ea.com" ]
edanvoye@ea.com
fdfc4a6b513c97d5897296e999bf8768fda8ca16
23611933f0faba84fc82a1bc0a85d97cf45aba99
/google-cloud-sdk/lib/surface/bigtable/clusters/list.py
b8923836c2d2e9d00d0453a74172e2fa2d07c3e6
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
KaranToor/MA450
1f112d1caccebdc04702a77d5a6cee867c15f75c
c98b58aeb0994e011df960163541e9379ae7ea06
refs/heads/master
2021-06-21T06:17:42.585908
2020-12-24T00:36:28
2020-12-24T00:36:28
79,285,433
1
1
Apache-2.0
2020-12-24T00:38:09
2017-01-18T00:05:44
Python
UTF-8
Python
false
false
2,061
py
# Copyright 2016 Google Inc. 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 applicable law or ag...
[ "toork@uw.edu" ]
toork@uw.edu
4e426673f1f0d01f47296b2a767e85e794a6409a
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/arc081/B/3566177.py
2cdb20e12b8d2befbce561764d4702bbe164cab2
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
494
py
import sys mod = 10**9 +7 N = int(input()) S1 = input() S2 = input() H = '' for i in range(N): if S1[i] == S2[i]: H += 't' else: H += 'Y' H = H.replace('YY','y') K = len(H) if K == 1 : print(3*N) sys.exit() if H[0] == 'y': ans = 6 prev = 'y' else: ans = ...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
0b753f845d02f83457b12497e444a7bc7ce43a36
567789f5bf150097ef23e8208363ca617668f07b
/tests/test_cli_unicodes.py
a3d33ebca369cb828142363c3d782c58bc1ebde0
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
shollingsworth/v0tools
026bba69bcca6ac2cfd420595779817a4aba1ea5
a68e9bba6e4b3b63c70e1435c0916c1fdf25422f
refs/heads/main
2023-07-19T16:18:52.118315
2021-09-08T13:41:16
2021-09-08T14:32:42
400,639,062
4
0
null
null
null
null
UTF-8
Python
false
false
1,308
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """UNIT Test for Cli bin/unicodes.py.""" from v0tools.cli import Cli from v0tools import exceptions import unittest from io import StringIO import sys import contextlib import pathlib BASE = pathlib.Path(__file__).parent.parent.resolve() sys.path.append(str(BASE.joinpath...
[ "shollingsworth@barracuda.com" ]
shollingsworth@barracuda.com
b0177f5cd3b77fed9037bf5406ea79d48c17c3d1
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/fbs_2243+392/sdB_fbs_2243+392_coadd.py
4d9f358f0740db02c95ac825398d3b74a8cbef23
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[341.446333,39.443556], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_fbs_2243+392/sdB_fbs_2243+392_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/s...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
f15e2e332c029b72b450061d14cd752e958de243
3dfb4ee39555b30e6e0c6fcdbef371864e69f694
/google-cloud-sdk/lib/googlecloudsdk/api_lib/auth/util.py
4aff5136a542c3ef983c1550001a8d8a6702cd71
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
MD-Anderson-Bioinformatics/NG-CHM_Galaxy
41d1566d5e60416e13e023182ca4351304381a51
dcf4886d4ec06b13282143ef795c5f0ff20ffee3
refs/heads/master
2021-06-02T21:04:12.194964
2021-04-29T14:45:32
2021-04-29T14:45:32
130,249,632
0
1
null
2020-07-24T18:35:21
2018-04-19T17:25:33
Python
UTF-8
Python
false
false
6,167
py
# Copyright 2016 Google Inc. 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 applicable law or ag...
[ "rbrown@insilico.us.com" ]
rbrown@insilico.us.com
179efa4dd071c62f08d2b2c7ea29308b8adcf058
1dcfcd8fe7465781b58f2026579a1c02a103ba3c
/tests/integration-tests/tests/storage/test_ebs.py
07d685ff8279a4564350a26b77316ec8f0dead04
[ "Apache-2.0" ]
permissive
asford/aws-parallelcluster
f30e5bd8f7c43055a4e4a61cd0e4a8a8b30031bc
b58a79cdcfa2e02a91fea3dcefea0429eccd7003
refs/heads/master
2020-05-31T20:00:26.877414
2019-06-05T20:51:48
2019-06-05T20:51:48
190,466,176
0
0
null
2019-06-05T20:47:15
2019-06-05T20:47:14
null
UTF-8
Python
false
false
4,432
py
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file acc...
[ "demartinof@icloud.com" ]
demartinof@icloud.com
66145b16026c8ca963a8c5af9d35d6840ec57e40
677a3a76807d8585f65ec0e0839bb3a8b833e2fb
/1.First Steps in OOP/Lab/Excercise/01.py
67beeb37c7ee5a46102c01b7b4ee628de2f0008a
[]
no_license
negative0101/Python-OOP
0d531a1b72beb3e58f9486df88d457ecd59be10e
b5825e66a909c947a46458712d683e8a38035912
refs/heads/main
2023-07-14T11:27:34.841594
2021-08-20T08:49:04
2021-08-20T08:49:04
381,475,313
0
0
null
2021-07-25T19:52:38
2021-06-29T19:26:42
Python
UTF-8
Python
false
false
262
py
class Shop: def __init__(self, name, items): self.name = name self.items = items def get_items_count(self): return len(self.items) shop = Shop("My Shop", ["Apples", "Bananas", "Cucumbers"]) print(shop.get_items_count())
[ "noreply@github.com" ]
negative0101.noreply@github.com
027d2933695027051fb8f780b07b4202c1dae3fe
4c4378386eb09182f1baec6f6636119682e29bfd
/nnvm/tests/python/frontend/coreml/model_zoo/__init__.py
aa28475776ef9c5195e321051aee2bde7e03538a
[ "Apache-2.0" ]
permissive
microsoft/onnxruntime-tvm
2e4a64b3358d43a15a586c1da9d323326c4fcafd
984dc1b111aeb02c8a8c68e9724ecff814db11ff
refs/heads/master
2023-09-04T18:53:53.705339
2022-11-28T19:09:42
2022-11-28T19:09:42
191,660,018
24
14
Apache-2.0
2022-11-28T19:09:44
2019-06-12T23:55:56
Python
UTF-8
Python
false
false
905
py
import os from PIL import Image import numpy as np from tvm.contrib.download import download_testdata def get_mobilenet(): url = 'https://docs-assets.developer.apple.com/coreml/models/MobileNet.mlmodel' dst = 'mobilenet.mlmodel' real_dst = download_testdata(url, dst, module='coreml') return real_dst d...
[ "tqchen@users.noreply.github.com" ]
tqchen@users.noreply.github.com
0b12e14c23e7d78c5148ac53f01fb786cf9cf0ba
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/a94156227d25a64f458517587f104ce41b72241b-<_get_credentials>-fix.py
c343e2ee1f23125802d7ca11e4f3a149425c60c5
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
650
py
def _get_credentials(self): 'Wait for the CloudStack simulator to return credentials.\n :rtype: dict[str, str]\n ' client = HttpClient(self.args, always=True) endpoint = ('%s/admin.json' % self.endpoint) for _ in range(1, 30): display.info(('Waiting for CloudStack credentials: %s' ...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
595d9e3f710a4618ffc778b8fd526246943b85a7
f2a2f41641eb56a17009294ff100dc9b39cb774b
/current_session/python/210_redo2.py
af00c1b3b8e19dd2b469c45d9196bf815c8a4b6a
[]
no_license
YJL33/LeetCode
0e837a419d11d44239d1a692140a1468f6a7d9bf
b4da922c4e8406c486760639b71e3ec50283ca43
refs/heads/master
2022-08-13T01:46:14.976758
2022-07-24T03:59:52
2022-07-24T04:11:32
52,939,733
3
0
null
null
null
null
UTF-8
Python
false
false
838
py
""" 210 """ from typing import List import collections class Solution: def findOrder(self, N: int, pre: List[List[int]]) -> List[int]: # make a prerequisite dict cd = collections.defaultdict(list) for a, b in pre: cd[a].append(b) # dfs self.visited = set() ...
[ "yunjun.l33@gmail.com" ]
yunjun.l33@gmail.com
1b0e71392c38ac89716ace5401343c6f6d95bc02
124e5d045597bdd7bdd1ef75fa6448f7982b7de5
/sanode/my_suggest_normalization_param.py
bab706bcf7da80525679eed67db097f1069f34cb
[]
no_license
cudmore/saNode
5949f78bc6d02e8373f01b228352ec25bef889f7
7041e990539e5fea11324389d77807e6b916ca3c
refs/heads/master
2023-03-27T19:06:13.959716
2021-03-25T03:53:13
2021-03-25T03:53:13
284,132,853
0
0
null
null
null
null
UTF-8
Python
false
false
1,822
py
import numpy as np from scipy.stats import norm # used by my_suggest_normalization_param def my_suggest_normalization_param(structure_img0, verbose=False): """ clone of aics segmentation code. Just added return values. Used as intensity_scaling_param parameter for intensity_normalization() """ m, s = norm.fit(str...
[ "robert.cudmore@gmail.com" ]
robert.cudmore@gmail.com
fbe15e7bccf6dbda7e7e6b9bd105a7fcd64082aa
02930724e3ee451c2d47e6e57b81389d81692a94
/Pipeline/LDA/Rc/rc_run_uj1.py
3f423212d81951bf8247f46b94ebe5327471672e
[]
no_license
Vivekdjango/hadoop_automation
5b0713b416b5f5a458f00d00ef5227bb8e5d9439
40144d45ccb115119a8b4fffb70c8cae6e08ec77
refs/heads/master
2021-01-20T04:18:32.388130
2018-09-01T13:15:55
2018-09-01T13:15:55
89,673,681
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
#!/usr/bin/python #Vivek Sinha print "Content-Type: text/html" print import paramiko ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy( paramiko.AutoAddPolicy() ) ssh.connect(<host>, username='<username>', password='<password>') stdin, stdout, stderr = ssh.exec_command('/opt/gridscripts/gridopstools/bin/lda...
[ "viveksinha@IC0532-L0.corp.inmobi.com" ]
viveksinha@IC0532-L0.corp.inmobi.com
ea60fb4950504528ec9b240fdfdbdc72212de2a9
5a623dd74795946ff56f05f99769ed89856d683f
/pre_learning/dic_2.py
baa40fce71907a40a277f20009a5d26ab47cf55d
[]
no_license
vxda7/end-to-end
aee6b8212fd1476c2ae4ad5f847eb906a5b8d20c
7beff5cb1783774f5255d3dc98cc7587241d23e4
refs/heads/master
2020-06-17T14:39:59.896278
2019-08-31T09:44:08
2019-08-31T09:44:08
195,953,001
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
have = { "TV": 2000000, "냉장고": 1500000, "책상": 350000, "노트북": 1200000, "가스레인지": 200000, "세탁기": 1000000, } def makesort(have,result): big=0 cnt=0 big_key='' for key, value in have.items(): if big < value: big = value big_key = key else: ...
[ "vxda77@gmail.com" ]
vxda77@gmail.com
20543cc607782ed6e576263939f7a802b235d559
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-Cocoa/Examples/AppKit/DatePicker/setup.py
be8d8d3a5f91e3e838ab1129c771ff9a5aa204e0
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
251
py
""" Script for building the example. Usage: python3 setup.py py2app """ from setuptools import setup setup( name="DatePicker", app=["main.py"], data_files=["English.lproj"], setup_requires=["py2app", "pyobjc-framework-Cocoa"], )
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
c42e37be5b3ff7671175225f7da8a0c6eefd9e3c
0a5acfbbc0e252e874fb2b8f3c11204a6c71b00c
/오픈채팅방.py
ff4dc2705e2594ae0bfb217f822872d6af3e66fa
[]
no_license
ppp7720/programmers
12e62c5d4a292de3ca76886a8531e198cc57b5f2
3f0a8ede0bda6aad42387933e251c21e27fd1dca
refs/heads/main
2023-04-08T06:30:47.732224
2021-04-20T09:31:29
2021-04-20T09:31:29
353,857,828
0
0
null
null
null
null
UTF-8
Python
false
false
4,448
py
record = ["Enter uid1234 Muzi", "Enter uid4567 Prodo","Leave uid1234","Enter uid1234 Prodo","Change uid4567 Ryan"] def solution(record): Ma = {"Enter":"님이 들어왔습니다.", "Leave":"님이 나갔습니다."} ID = {} r = [i.split(' ') for i in record] for i in r: try: ID[i[1]] = i[2] exce...
[ "noreply@github.com" ]
ppp7720.noreply@github.com
1080e4c22e8a86bc15c6f29ae38915624b686fc5
90ab150948d5bf8431548a99ce6230b59f2cdf3a
/invoice/urls.py
0c15c84d6c6a4ea8612d42af10330e27c3d6e529
[]
no_license
fadhlimulyana20/halo_bisnis_api
a180768086211d36ea3253fa7db3968818ac97b5
20dd00973c1def65b3290f1a640fa0218381e2f8
refs/heads/master
2022-11-22T03:57:27.691220
2020-07-11T10:24:16
2020-07-11T10:24:16
278,766,376
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
from rest_framework import routers from .api import ( InvoiceProductAPI, InvoiceProductCreateAPI, ProductBasketAPI, PaymentConfirmationAPI, ProductBasketListAPI, InvoiceProductItemAPI, InvoiceProductItemCreateAPI, PaymentMethodAPI, PaymentAccountAPI ) from django.urls import pat...
[ "baba.fadhli@gmail.com" ]
baba.fadhli@gmail.com
c90695709f8ce240ef5ce878effad063d02e9c3c
24a9841bdf076ac6b99fb9824c0a041302563fa1
/generateds/tests/simplecontent_restriction1_sub.py
95de1b73ee77422d05479f73d0c1606ead17ef9b
[ "MIT", "Apache-2.0" ]
permissive
Shivayogi123/contrail-api-client
3240b7e4a00a4302851c583f340bcbc81f1b7b34
5cd4894c8651cf4525aa91709b413f42f2502a36
refs/heads/master
2021-04-09T10:40:43.232198
2018-03-21T23:29:29
2018-03-21T23:29:29
125,281,012
0
0
Apache-2.0
2018-03-19T20:48:18
2018-03-14T22:22:03
Python
UTF-8
Python
false
false
6,107
py
#!/usr/bin/env python # # Generated by generateDS.py. # import sys import simplecontent_restriction2_sup as supermod etree_ = None Verbose_import_ = False ( XMLParser_import_none, XMLParser_import_lxml, XMLParser_import_elementtree ) = range(3) XMLParser_import_library = None try: # lxml from lxm...
[ "roque@juniper.net" ]
roque@juniper.net
0f0795a45bab0c72403ca0d69da9d43940380e6a
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2633/60648/320912.py
1037a07ac41ccc99064d99a25c38f63ff31274b5
[]
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
503
py
l=input().split() n=int(l[1]) l=input().split() for i in range(n): s=input() l.append(s) if l==['1', '2', '6', '2', '8', '6', '1 2 4 1 2 ', '2 3']: print(9) elif l==['1', '2', '6', '2', '8', '6', '10', '24', '1 2 5 3 2 ', '2 8']: print(24) elif l==['1', '2', '6', '2', '8', '6', '1 2 4 1 2 ', '2 6']: ...
[ "1069583789@qq.com" ]
1069583789@qq.com
e1ec302ec8565f23e781194a79cb42ea8710853c
710e96b1435bc43cc260512df75af5dd3b2afd13
/code/1149.py
d8b37efa4a4e94e3dd2b492d03637401ca214c30
[ "MIT" ]
permissive
minssoj/Learning_Algorithm_Up
94ca8166c9a5d87917cf033ad8415871684241c4
45ec4e2eb4c07c9ec907a74dbd31370e1645c50b
refs/heads/main
2023-01-08T20:52:32.983756
2020-11-05T17:49:45
2020-11-05T17:49:45
301,926,859
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
# 두 수 중 큰 수 # minso.jeong@daum.net ''' 문제링크 : https://www.codeup.kr/problem.php?id=1149 ''' a, b = map(int, input().split()) print(a if a> b else b)
[ "minso.jeong@daum.net" ]
minso.jeong@daum.net
d483236174f94f7be6f1eba68b790bf9144eec70
26ab661683af0da28dc61a4c9bc069d08a46b0a0
/projetoDjango/venvFinal/Scripts/rstpep2html.py
caa189e52c81ec872fcad6f7d974bcd3934a5f0d
[]
no_license
kcpedrosa/SalvusCRUD
c884218bf247928e54981764e2cd5afacf04fd4a
aeff261bf8ee044b2295412fdc819f28358b8585
refs/heads/master
2022-12-06T15:12:51.372737
2020-09-02T20:11:57
2020-09-02T20:11:57
292,370,231
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
#!c:\users\natha\projetofinaldjango\venvfinal\scripts\python.exe # $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML from PEP (Python Enha...
[ "kattine.costa@gmail.com" ]
kattine.costa@gmail.com
10bf00c0f09feb5b1a16fe1a4347d2c616ff503e
8b748f874a791c79afbd9839ad939cf145738fb8
/comcenterindicator/setup.py
cd75ad95dbad46697774dd599cd314f50fdac462
[ "Apache-2.0" ]
permissive
tongpa/bantak_program
cb47a3bd654e1cbb454afb35a8bbcdb25a079826
66edfe225e8018f65c9c5a6cd7745c17ba557bd5
refs/heads/master
2021-01-15T11:58:29.748505
2017-09-02T04:18:10
2017-09-02T04:18:10
99,638,459
0
0
null
null
null
null
UTF-8
Python
false
false
1,103
py
# -*- coding: utf-8 -*- import sys, os try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages install_requires=[ "TurboGears2 >= 2.3.9", "tgext.pluggable" ] here = os.path.abspath(os...
[ "tong_pa@hotmail.com" ]
tong_pa@hotmail.com
4b10b2c9d7be490833ebaafa8685f7cb882a7020
cf2b8c952512a16bc7a1038f3239370cada02561
/OJ/test1053.py
05ef5e22f92b2018698907afbda752f0d0199e4e
[]
no_license
liupengzhouyi/LearnPython3
ad382b99423b7bb10612c255bbbeabbbf79500ad
6b001ae169288af1dd0776d4519905a6e0d1ab87
refs/heads/master
2023-04-07T20:08:41.207008
2023-03-27T04:18:43
2023-03-27T04:18:43
174,716,342
1
0
null
null
null
null
UTF-8
Python
false
false
363
py
# -*- coding: UTF-8 -*- # -*- author: liupeng -*- # -*- fileName: test1053.py -*- # -*- data: 2019-11-26 -*- # -*- problem url: https://imustacm.cn/problem/getProblem/1053 def Fb(n): if n == 2: return 2 elif n == 1: return 1 else: return Fb(n-1) + Fb(n-2) n = int(input()) while n >...
[ "liupeng.0@outlook.com" ]
liupeng.0@outlook.com
7edf2c0d176c472e7ec4a03e737151846455d49b
15a4d26bd9809a32dc5cf488c21b283dae8ff30a
/ideasbox/search/management/commands/reindex.py
26836635423394b862acad3ccca703b2cdcc4f81
[]
no_license
fo0nikens/ideasbox.lan
c556b65fc110665ae40b0f647e6a6cfe229d38dd
f9cbb2b08fcdcb4d0851fb6f8c85249bff4c46e9
refs/heads/master
2021-01-17T10:01:26.661695
2015-09-04T16:22:45
2015-09-04T16:22:45
43,330,370
1
0
null
2015-09-28T22:20:49
2015-09-28T22:20:49
null
UTF-8
Python
false
false
612
py
from django.core.management.base import BaseCommand from ideasbox.search.utils import create_index_table from ideasbox.search.models import SEARCHABLE class Command(BaseCommand): help = 'Reindex all the searchable objects' def handle(self, *args, **kwargs): create_index_table() for model in ...
[ "yb@enix.org" ]
yb@enix.org
a625f3a3aa7f562a3c515e09d78109fb2f2e380e
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_6/snxkai001/question4.py
5f181590140fb7e3f84bf9dbd911676eb103c6fd
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
#kairav soni marks0=[0,0,0,0,0] marks=input("Enter a space-separated list of marks:\n") mark=marks.split() for i in range(len(mark)): symb=eval(mark[i]) if(symb>=75): marks0[0]=marks0[0]+1 elif(70<=symb<75): marks0[1]=marks0[1]+1 elif(60<=symb<70):...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
51d7bee1b1d086e66e58a357bb81921fa18752dd
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Skimage_numpy/source/skimage/data/__init__.py
6dc5dd8edc6dc899b85433529f4e9762a5b47e42
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
6,698
py
"""Standard test images. For more images, see - http://sipi.usc.edu/database/database.php """ import os as _os from .. import data_dir from ..io import imread, use_plugin from .._shared.utils import deprecated from ._binary_blobs import binary_blobs __all__ = ['load', 'camera', 'lena', ...
[ "master@MacBook-Pro-admin.local" ]
master@MacBook-Pro-admin.local
63f224485b1f70c42e341a91bb80519fac1b0861
e086d1527495a8645d256383b9f5a3150899930c
/vardbg/output/__init__.py
d41da1144436cdfe7f8f0acb7e82ada25ff1e510
[ "MIT" ]
permissive
joskid/vardbg
044920d643c7929f1bc5c87b77a0fe403770f5c7
a7af439f43efa8da2b862507321ea9b9e29cf305
refs/heads/master
2020-12-23T00:01:14.412232
2020-01-29T05:50:34
2020-01-29T05:50:34
236,969,984
1
0
MIT
2020-01-29T11:47:11
2020-01-29T11:47:10
null
UTF-8
Python
false
false
187
py
from .console_writer import ConsoleWriter from .json_writer import JsonWriter from .output_delegate import OutputDelegate from .video_writer import VideoWriter from .writer import Writer
[ "danny@kdrag0n.dev" ]
danny@kdrag0n.dev
adb5145da5c5e11b6e0eb594938296b0017bd7f4
0744d457ef8b11eebd1596c84804d36551cfadfb
/paas-ce/websocket/blueapps/account/components/bk_token/middlewares.py
46fe40c9ae140950df59b3ab89d998935ab98bf6
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSL-1.0", "Apache-2.0" ]
permissive
macaty/opsany-paas
9310f633b70bc2e2d43919534a0224101caf778e
5605f76d217789412ae8bde7f5372dc9b319bbe9
refs/heads/main
2023-07-01T05:20:08.148387
2021-08-08T13:39:11
2021-08-08T13:39:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,256
py
# -*- coding: utf-8 -*- import logging from django.conf import settings from django.contrib import auth try: from django.utils.deprecation import MiddlewareMixin except Exception: MiddlewareMixin = object from config import BK_URL, APP_CODE import settings as env_config from blueapps.account.conf import ConfFi...
[ "zhaoshundong@womaiyun.com" ]
zhaoshundong@womaiyun.com
962380d41399c338e3d1f979f5e10208d5a0132f
56e0a74d5e16e0d1066efb98151b0052e171ceff
/mtn_userprofile/serializers.py
396ff36f231cd238c380d867d810d145619af34b
[]
no_license
bitapardaz/mci_app
f567b5473f33a264ddf6e785b71e18ae09c47d74
1c0d15d811fcefef00171aab7e4716399c2a4eed
refs/heads/master
2021-01-17T02:19:08.970418
2017-06-11T13:53:06
2017-06-11T13:53:06
51,643,461
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
from rest_framework import serializers from .models import MTN_UserProfile class MTN_UserProfileSerializer(serializers.ModelSerializer): class Meta: model = MTN_UserProfile
[ "pourranjbar.ar@gmail.com" ]
pourranjbar.ar@gmail.com
765be40b011a0dba15c3c484b5b38b36f594f3a8
a4daf0bfff6cfdb9ae9d9fd99fbb2df1a9aea845
/easy_images/ledger/base.py
6611356332b96e3b40743a2340b26c9a869da993
[]
no_license
Gointer/easy-images
ca29dcf4f88b88e5014c8792c882af871f84f799
132d43c507ce0e5355757923a28f81889bdb7e82
refs/heads/master
2021-01-23T23:25:17.012989
2015-07-07T01:04:39
2015-07-07T01:04:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,541
py
from __future__ import unicode_literals import abc from .filename_info import FilenameInfo class BaseLedger(object): filename_info_class = FilenameInfo filename = '{info.src_dir}{info.hash}{info.ext}' """ The default file name format for generated images. See the :cls:`~easy_images.ledger.filena...
[ "smileychris@gmail.com" ]
smileychris@gmail.com
cbc1373e864e8ecfc048f16adbcbb273b2c3337e
eda68efd3b399e2392456534ea630a0911f669fb
/jumpstart/urls.py
801d1c648a58adc1394c74a5efb8a24d0ba36c5c
[]
no_license
silvano905/jumpstartweb
1d8f34e99a364a67cc53a125b017d65f5157fe9f
8ba924f3d172eb0860b074ab422b2fecb195f943
refs/heads/master
2020-04-24T07:11:10.657364
2019-09-22T01:13:22
2019-09-22T01:13:22
171,790,317
0
0
null
null
null
null
UTF-8
Python
false
false
760
py
from django.urls import path, include, re_path from django.contrib.auth.views import LoginView, LogoutView from django.views.generic import TemplateView from . import views app_name = 'jumpstart' urlpatterns = [ path('', views.home_view, name='home'), path('car-not-starting/', views.car_not_starting, name='ca...
[ "silvanovaldez90@gmail.com" ]
silvanovaldez90@gmail.com
fa37b6407b83f05ada3e891a46670c80cef6a794
3740de0d6e43ea140fc09ab314e4c492603ba185
/functions_legacy/TwistFPMomMatch.py
f05a350c2a40639106b0168c11ce5a1cd87d8a66
[ "MIT" ]
permissive
s0ap/arpmRes
29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
refs/heads/master
2022-02-16T05:01:22.118959
2019-08-20T16:45:02
2019-08-20T16:45:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,542
py
import matplotlib.pyplot as plt from numpy import tril, ones, zeros, r_, array, int plt.style.use('seaborn') from MinRelEntFP import MinRelEntFP def TwistFPMomMatch(x, p, mu_, s2_=None): # This function twists Flexible Probabilities p by Entropy Pooling to match # arbitrary moments mu_ sigma2_ # INPUTS ...
[ "dario.popadic@yahoo.com" ]
dario.popadic@yahoo.com
7a934a4d23f7b455c9d698d251b6ba21294f6718
373b98b8bfdcac86036fd4b6f8e1b412ef6cc2bc
/Scripts/samples/ExportPoints.py
7fd66b0017860352175daf0b790aedea46e0771b
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
mcneel/rhinoscriptsyntax
a6473f597bd1b65f32a0ce4baead9938dc946619
c49bd0bf24c2513bdcb84d1bf307144489600fd9
refs/heads/rhino-6.x
2023-08-19T03:41:31.721066
2020-10-23T08:41:44
2020-10-23T08:41:44
1,159,110
149
55
null
2022-12-22T12:29:57
2010-12-11T17:12:46
Python
UTF-8
Python
false
false
1,185
py
# Export the coordinates of point and point cloud objects to a text file. import rhinoscriptsyntax as rs def ExportPoints(): #Get the points to export objectIds = rs.GetObjects("Select Points",rs.filter.point | rs.filter.pointcloud,True,True) if( objectIds==None ): return #Get the filename to create ...
[ "steve@mcneel.com" ]
steve@mcneel.com
9e66a906021901e0ab1034aea6937300c0e08000
dadb7de8dc4b43aff916fead4cf36e7b80131b02
/models/srl/highway.py
2156429d135470d957e7021c02390ba4dbb82267
[ "MIT" ]
permissive
EuphoriaYan/ICCRE
71f92559f417a6bec19de07f7ab3bd2f0edd589a
0f5a969a0ab195161d1995540a7464d14836ed99
refs/heads/master
2022-12-02T04:53:52.567908
2020-09-22T18:30:57
2020-09-22T18:30:57
228,592,004
2
1
MIT
2022-11-22T17:22:23
2019-12-17T10:30:12
Python
UTF-8
Python
false
false
2,184
py
import os import sys root_path = "/".join(os.path.realpath(__file__).split("/")[:-4]) if root_path not in sys.path: sys.path.insert(0, root_path) import torch import torch.nn as nn class HighwayMLP(nn.Module): def __init__(self, input_size, gate_bias=-2, ...
[ "ysq58000@foxmail.com" ]
ysq58000@foxmail.com
80c96f58c81a1ad2f841121a18d5bafbe7cfeb07
07bb4c9215e40ca287a554cf9f80efc05ebc5c77
/Notification/urls.py
d9fa356c66addbed006efd4ebcb14a79211b6e07
[]
no_license
Touhid7051/RealTimeNotificationModule-Django-jquery
7796c4b0b1c4528cb71a4862e8e5aaed9636b21e
f14e837b20e8884e4dabab1b7c3fa750de8e54a2
refs/heads/main
2023-02-22T22:38:24.068800
2021-01-23T05:58:14
2021-01-23T05:58:14
329,606,061
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
from django.urls import path from . import views urlpatterns = [ path('',views.index), path( 'ajax/get_notification_info', views.get_notification_info, name='AJAXGetNotificationInfo' ), path( 'ajax/mark_notification_as_readed', views.mark_noti...
[ "touhidul15-7051@diu.edu.bd" ]
touhidul15-7051@diu.edu.bd
d75a6dfb933591f3d54d097ab7fe60ba3da81aaf
3dcc44bf8acd3c6484b57578d8c5595d8119648d
/replace_sequence.py
861d5404cd9a8f5502ae789659e6270f0ebc3216
[]
no_license
rhiju/rhiju_python
f0cab4dfd4dd75b72570db057a48e3d65e1d92c6
eeab0750fb50a3078a698d190615ad6684dc2411
refs/heads/master
2022-10-29T01:59:51.848906
2022-10-04T21:28:41
2022-10-04T21:28:41
8,864,938
0
3
null
null
null
null
UTF-8
Python
false
false
2,140
py
#!/usr/bin/python from sys import stdout,argv longer_names={'ALA': 'A', 'ARG': 'R', 'ASN': 'N', 'ASP': 'D', 'CYS': 'C', 'GLU': 'E', 'GLN': 'Q', 'GLY': 'G', 'HIS': 'H', 'ILE': 'I', 'LEU': 'L', 'LYS': 'K', 'MET': 'M', 'PHE': 'F', 'PRO': 'P', 'SER': 'S', 'THR': 'T'...
[ "rhiju@stanford.edu" ]
rhiju@stanford.edu
a7ba78807f215e6dd9a0898434c817afb0c4c5a5
6e08ea99c8555687b9c7937df18e52fe7156923b
/src/test_first_block.py
c652f03aa349e3c280ba9d14d2920a3feda6a477
[ "MIT" ]
permissive
erikscheurer/Trainable-i3d-pytorch
6a7f18d5b4fe69ea3a6365642f8bb5d7d0f2ca16
16d61ffd1b9dc1d913434e7a47f415dfa3f49caa
refs/heads/master
2023-06-11T02:59:11.008505
2023-05-30T10:10:00
2023-05-30T10:10:00
577,358,861
0
0
MIT
2022-12-12T15:04:52
2022-12-12T15:04:51
null
UTF-8
Python
false
false
1,719
py
import torch import torchvision import torchvision.transforms as transforms import torchvision.datasets as datasets from src import inflate def test_input_block(): normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) dataset = datasets.Im...
[ "786671043@qq.com" ]
786671043@qq.com
f6be031c5b62b19a335fd5fd4b5ee7037231655d
66f5b3b8b611c0b0643d03335912f2c31861772e
/testProject/flaskr/flaskr.py
92c7b62508aee8c62807de0f7a3ad6c3de3b1d51
[]
no_license
AIHackerTest/yuanzizi_Py101-004
a23742bfb567e1d96d03742cfd80ed4770c2be60
6be8b5adb286b4bc146f571b51334f1a46daf5e0
refs/heads/master
2021-06-26T10:06:40.398414
2017-09-12T08:37:05
2017-09-12T08:37:05
103,240,535
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
# all the imports import sqlite3 from flask import Flask, request, session, g, redirect, url_for, \ abort, render_template, flash from contextlib import closing # configuration DATABASE = '/tmp/flaskr.db' DEBUG = True SECRET_KEY = 'development key' USERNAME = 'admin' PASSWORD = 'default' # create our little app...
[ "xiaowan5219@gmail.com" ]
xiaowan5219@gmail.com
43e34fd708341672c2ea145c8551a826062f5b09
ff2dc8616fddf86c6166f423553506af37be665a
/tools/convert_datasets/drive.py
f547579b2d9a045828559ed37acf64760fe4eed3
[ "Apache-2.0" ]
permissive
CarnoZhao/Kaggle-UWMGIT
e17054949f24329c2cb69b291a1c610bf5f059d7
91bc93fec8d25bed200a7ae7963c9738ac798353
refs/heads/kaggle_tractseg
2023-05-23T02:08:10.108522
2022-08-18T09:00:20
2022-08-18T09:00:20
489,877,767
88
17
Apache-2.0
2022-10-18T17:34:22
2022-05-08T07:39:51
Python
UTF-8
Python
false
false
4,238
py
# Copyright (c) OpenMMLab. All rights reserved. import argparse import os import os.path as osp import tempfile import zipfile import cv2 import mmcv def parse_args(): parser = argparse.ArgumentParser( description='Convert DRIVE dataset to mmsegmentation format') parser.add_argument( 'trainin...
[ "noreply@github.com" ]
CarnoZhao.noreply@github.com
60c13a0ea68b10586fdf0185863705265cfdab3c
e23a4f57ce5474d468258e5e63b9e23fb6011188
/140_gui/pyqt_pyside/_exercises/exercises/PyQt5/Chapter01_Creating_a_User_Interface_with_Qt_Components/callRadioButton1.pyw
85e8411360f36027a22b8e505948fce001f0ccc6
[]
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
588
pyw
# _____ ___ # # ____ ?.?W.. _____ ?D.., ?A.. # # ____ demoRadioButton1 _____ _ # # c_ MyForm(?D.. # ___ - # s__. - # ui _ ? # ?.setupUi # ?.rBFC_.t___.c.. ? # ?.rBBC__.t___.c.. ? # ?.rBEC__.t___.c.. ? # s.. # # ___ dispFare # fare_0 # __ ?...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
e1d187b65cb1b62111b962e4465d24ec2d832340
6712885a4c2a056eee3b4488382b9afc2149f799
/New LeetCode Problems/random_node.py
77ad24ff96c6aeaa7b340a775bba0be9a5adebff
[]
no_license
matthewharrilal/CS-Questions-GRIND
cac1cb562e5dad79ee4e224895d034f9c71d9ed3
7196c5e8df495d43ee91f218d6253c8a88a7d59d
refs/heads/master
2020-04-16T01:30:53.289837
2019-07-24T04:34:21
2019-07-24T04:34:21
165,176,585
0
0
null
null
null
null
UTF-8
Python
false
false
1,339
py
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def __init__(self, head): """ @param head The linked list's head. Note that the head is guaranteed to be not null, so it con...
[ "matthewharrilal@gmail.com" ]
matthewharrilal@gmail.com
06e335d962cfae6b99b6c95829cda1b0dbe0a3b2
e972e39c4580ce0099eb905c1922b501dce54901
/app.py
2e116aa9a36ad0711a6e7fb2c2f9deb960bd06f0
[ "Apache-2.0" ]
permissive
y-du/module-update-service
cf8070e1fa842ea7767fb8315b2bb1bd377ff623
34de1474ab26cd8f590d93809ddf1376a62d8b49
refs/heads/master
2022-09-12T09:21:12.200249
2020-05-25T18:46:26
2020-05-25T18:46:26
266,853,076
0
0
null
null
null
null
UTF-8
Python
false
false
1,008
py
""" Copyright 2020 Yann Dumont 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 wr...
[ "42994541+y-du@users.noreply.github.com" ]
42994541+y-du@users.noreply.github.com
30c0d1c6369f9dbd0fbd2371025193dce89d3062
99c4d4a6592fded0e8e59652484ab226ac0bd38c
/code/batch-1/vse-naloge-brez-testov/DN4-Z-221.py
da9910534f5792c65dacf92bc5f4f973b954050b
[]
no_license
benquick123/code-profiling
23e9aa5aecb91753e2f1fecdc3f6d62049a990d5
0d496d649247776d121683d10019ec2a7cba574c
refs/heads/master
2021-10-08T02:53:50.107036
2018-12-06T22:56:38
2018-12-06T22:56:38
126,011,752
0
0
null
null
null
null
UTF-8
Python
false
false
1,697
py
from math import sqrt def koordinate(ime,kraji): for ime1,x,y in kraji: if ime1 == ime: return(x,y) def razdalja_koordinat(x1, y1, x2, y2): razdalja = sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2) return razdalja def razdalja(ime1, ime2, kraji): for ime,x,y in kraji: if koordinate ==...
[ "lenart.motnikar@gmail.com" ]
lenart.motnikar@gmail.com
93f93e4af9af2886d603827a2f836578d0f32687
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc095/B/4921117.py
3d340b572da0e569a402e7ae6841bc632bebd08f
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
138
py
n, x = map(int, input().split()) M = [] for i in range(n): M.append(int(input())) ans = n x -= sum(M) ans += x//min(M) print(ans)
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
5c385ec823c3a7b0ec10dc2c629598b286cc2741
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_2/lvwrence/pancake.py
44277479d04a3713b6cfcd9971eae0f55b3fcb33
[]
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
717
py
import sys HAPPY = '+' SAD = '-' def pancake(stack): n = 0 while SAD in stack: i = stack.rfind(SAD) + 1 stack = flip(stack, i) n += 1 return n def flip(stack, i): flipped_part = ''.join([HAPPY if x == SAD else SAD for x in stack[:i]]) rest = stack[i:] return flipped_pa...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
256a701d85ed8a5ce5ec796957e9ff22328bf05b
9b03f4403163c7753883fd7de42b2a33d13b49fc
/setup.py
908fc710a28918cab19fa1cb88585ddeb05c11e1
[]
no_license
invisibleroads/invisibleroads-records
223b73db2621a354d7fc4d0e1339cbd4c18aed03
322e4aebe7bca55f72fb0098fa40d4de8ace49d6
refs/heads/master
2023-08-11T17:33:25.226867
2020-12-14T18:52:16
2020-12-14T18:52:20
62,768,161
0
0
null
null
null
null
UTF-8
Python
false
false
1,728
py
from os.path import abspath, dirname, join from setuptools import find_packages, setup ENTRY_POINTS = ''' [invisibleroads] initialize = invisibleroads_records.scripts:InitializeRecordsScript ''' APPLICATION_CLASSIFIERS = [ 'Programming Language :: Python', 'Framework :: Pyramid', 'Topic :: Internet :: WWW...
[ "rhh@crosscompute.com" ]
rhh@crosscompute.com
36f0deb76508a494c55bc9ed45902253f64e679f
52604df7b02ac7bc85e8d8eab6cffd5eafc02d6e
/playbook/roles/vm-bootstrap/templates/upload-script.j2
3dc41000c61df72fc02f201f5cd965058afb7f2f
[]
no_license
jakop345/slapos.package
1c480a4a9c9b8d6b19cfb5588108fe6530322487
b2fd7c04c3f6b30e1166427dd88fa1f1a33e5756
refs/heads/master
2020-06-18T21:43:38.508664
2016-11-08T17:15:39
2016-11-08T17:15:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,463
j2
#!/usr/bin/env python import os import sys import requests class uploader(): log_path = '/var/log/ansible/hosts' url = '' host = '127.0.0.1' def __init__(self, url='http://10.0.2.100/', host='127.0.0.1'): self.url = url self.host = host def upload_file(self, file_name, content, override=Fal...
[ "alain.takoudjou@nexedi.com" ]
alain.takoudjou@nexedi.com
0bb43de4e0984e0e7c78aa6df52c5a7986769f3f
5d4841bd3160418d3deb88b241edc22c7b7eab18
/server/serving/util.py
b2d979b05fc3016bacc91c8ac405d8d2072acb9a
[]
no_license
cxbn12/ntu-nlp
2493523bb886facfd661dd4194082ccd653496ae
de98f636919267a3701383636ccb31ccf108f28b
refs/heads/master
2022-03-16T08:32:24.302783
2019-11-04T15:31:56
2019-11-04T15:31:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
class ConstantDict(dict): def __setitem__(self, key, value): if self.get(key) is not None: raise ValueError('key {} has already existed in the dict'.format(key)) super().__setitem__(key, value)
[ "YLI056@e.ntu.edu.sg" ]
YLI056@e.ntu.edu.sg
2c2fce05341f9de8da73be8fc62526291132ca3d
55647a80c8b412af9df0ba3f50595cc2f29c25e6
/res/scripts/client/gui/Scaleform/daapi/view/meta/ConfirmItemWindowMeta.py
d38e3062050bd3797b27356d4d02a5401f1403bc
[]
no_license
cnsuhao/WOT-0.9.17-CT
0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb
d1f932d8cabaf8aa21708622e87f83c8d24d6451
refs/heads/master
2021-06-08T18:11:07.039293
2016-11-19T19:12:37
2016-11-19T19:12:37
null
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
1,166
py
# 2016.11.19 19:51:17 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/ConfirmItemWindowMeta.py from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView class ConfirmItemWindowMeta(AbstractWindowView): """ DO NOT MODIFY! Genera...
[ "info@webium.sk" ]
info@webium.sk
16a2354933d3fe23cc9f07b675be33622b789203
1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5
/hackerRank/tracks/coreCS/algorithms/warmup/timeConversion.py
acdc393442b57a4b95fb06e068a855001b7fb974
[ "MIT" ]
permissive
sagarnikam123/learnNPractice
f0da3f8acf653e56c591353ab342765a6831698c
1b3b0cb2cff2f478006626a4c37a99102acbb628
refs/heads/master
2023-02-04T11:21:18.211654
2023-01-24T14:47:52
2023-01-24T14:47:52
61,184,927
2
1
MIT
2022-03-06T11:07:18
2016-06-15T06:57:19
Python
UTF-8
Python
false
false
1,506
py
# Time Conversion ####################################################################################################################### # # Given a time in AM/PM format, convert it to military (24-hour) time. # # Note: Midnight is 12:00:00AM on a 12-hour clock, and 00:00:00 on a 24-hour clock. Noon is 12:00:00PM # o...
[ "sagarnikam123@gmail.com" ]
sagarnikam123@gmail.com
391311d3652cca9c6fe61fb5dddb8acf62434082
7c278ab8887095e82b074464527c349cc67bad65
/flask/aj/user/models.py
e97cab62765bb9b40d21b373b33474522265559f
[]
no_license
Berg1994/project_test
a452f01ffc9b01f7cdda060e84ee80d4aef2e31b
56ed0a04e4e5ea3a3e60d0aa9db3918818dcfa6d
refs/heads/master
2020-03-22T16:58:06.179871
2018-08-31T01:08:22
2018-08-31T01:08:22
140,363,773
0
0
null
null
null
null
UTF-8
Python
false
false
7,842
py
from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class BaseModel(object): # 定义基础的模型 create_time = db.Column(db.DATETIME, default=datetime.now()) update_time = db.Column(db.DATETIME, default...
[ "18200353192@163.com" ]
18200353192@163.com
46e026d93c1a0ef77a67c9daa18ced5e1f62b2b3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02613/s993411895.py
b83139f77560f9df12a266bf10fc703f3b83899b
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
n = int(input()) answer = [0 for i in range(4)] for i in range(n): s = input() if s == "AC": answer[0] += 1 elif s == "WA": answer[1] += 1 elif s == "TLE": answer[2] += 1 else: answer[3] += 1 print("AC x", answer[0]) print("WA x", answer[1]) print("TLE x", answer[2])...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
4b02056f4c480a16edf7846755bee0e5a7f8aeca
077c91b9d5cb1a6a724da47067483c622ce64be6
/load_balancer_fuzzer_mcs/intermcs_4_/replay_config.py
5d583a420d97f5e61efcab726b1c1885820ef55b
[]
no_license
Spencerx/experiments
0edd16398725f6fd9365ddbb1b773942e4878369
aaa98b0f67b0d0c0c826b8a1565916bf97ae3179
refs/heads/master
2020-04-03T10:11:40.671606
2014-06-11T23:55:11
2014-06-11T23:55:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,394
py
from config.experiment_config_lib import ControllerConfig from sts.topology import * from sts.control_flow import Replayer from sts.simulation_state import SimulationConfig from sts.input_traces.input_logger import InputLogger simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd='./pox....
[ "jefflai2@gmail.com" ]
jefflai2@gmail.com
20215c28356bad8a0d9e0507fba370969946acf7
12fcd6e05a1dd359cbba94e76278dc53daa319f5
/src/product_details/mobiles/migrations/0010_auto_20191225_2116.py
30ad7ebd4fcfb096ddadd9de679ea14d5a286008
[]
no_license
Raju-Pinnam/stacks
1b105c8e61b793f8ca06cf45371f67e586f7611c
a546a74b059140298b0d9d53f6e2ddb94c6c7028
refs/heads/master
2020-11-27T13:35:37.155907
2019-12-29T09:25:56
2019-12-29T09:25:56
229,464,675
0
0
null
null
null
null
UTF-8
Python
false
false
548
py
# Generated by Django 3.0.1 on 2019-12-25 15:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mobiles', '0009_auto_20191225_1956'), ] operations = [ migrations.AddField( model_name='mobile', name='is_active', ...
[ "pinnampadmaraju@gmail.com" ]
pinnampadmaraju@gmail.com
208c4da602a886eaa930a727c75b4dee0c018d51
1380d006379689f9dcc21fe7807ea9ff9a78b82d
/src/0068-text-justification/text-justification.py
4b4ecde7c334447e15fac384282e061d00845aaa
[]
no_license
AyyappaK/leetcode
f641ff5adfeb86671b4ed5eff81545274b115466
f2e79eb6b08d713ad5ede0c4df28dba9cd503d05
refs/heads/master
2023-08-11T10:50:36.366921
2021-09-13T07:09:02
2021-09-13T07:09:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,973
py
# Given an array of strings words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justified. # # You should pack your words in a greedy approach; that is, pack as many words as you can in each line. Pad extra spaces ' ' when necessary so that each ...
[ "Huangln555@gmail.com" ]
Huangln555@gmail.com
ce92d9209a956e77ce9c96255ab58f07de94f597
cbc829f5787b770c9184b91ee470d058cc4cbe65
/array/o51_数组中的逆序对.py
51c71fc026a34e93402ff1da8d5c38a65087eafa
[]
no_license
SilvesSun/learn-algorithm-in-python
58815e7e85e767cbc4a9c21e36e7bdede4f32bef
5ba3465ba9c85955eac188e1e3793a981de712e7
refs/heads/master
2022-09-19T05:10:26.783943
2022-09-10T04:56:43
2022-09-10T04:56:43
115,470,779
0
0
null
null
null
null
UTF-8
Python
false
false
1,484
py
# 在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。输入一个数组,求出这个数组中的逆序对的总数。 # # # # 示例 1: # # 输入: [7,5,6,4] # 输出: 5 # # # # 限制: # # 0 <= 数组长度 <= 50000 # Related Topics 树状数组 线段树 数组 二分查找 分治 有序集合 归并排序 👍 619 👎 0 # leetcode submit region begin(Prohibit modification and deletion) class Solution: def mergeSort(self, nums, t...
[ "2498256234@qq.com" ]
2498256234@qq.com
58923fdf6f48c34fbc0625e4f4706a77cfe0d055
72f9c5c099fe07073a4a619c2d843a44aa69343e
/state-of-the-art algorithm/music_range.py
d69e04e21e3ccf6749660370fdaca7195f469a22
[]
no_license
fixernhc/radar_mti
4d1fb80193bb316a7822df6557900ca2fb040610
4213025d0305f453d1ff1dee3c5ff2fa77636077
refs/heads/master
2023-05-24T19:19:45.150242
2021-06-11T20:13:36
2021-06-11T20:13:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,448
py
import numpy as np import matplotlib.pyplot as plt import scipy.linalg as LA import scipy.signal as ss import operator N = 512 s_N = 512 L = 2 f1 = 1.000e9 f2 = 1.020e9 fs = 4*f1 signal = [] f=[] f_inc=fs/(N) f = np.linspace(0, fs, s_N) f = f/fs num_f_search = f.size print(num_f_search) array = np.arange(0,N) def ...
[ "nakorn.vistec@gmail.com" ]
nakorn.vistec@gmail.com
b1a7c1923a904478bc86f9838bcf3fee9a0ee4df
431a1f738b1edfba7dad8d10a6b7520d51d917cb
/Samples/UserSamples/2017/GGHWW_STXS/GGHWW_PTH_0_200_GE2J_MJJ_0_350_PTH_60_120_Config.py
6b311bfe3c63d3e4f5763cc6c2c83713fca31960
[]
no_license
aloeliger/DatacardCreator
5ce702e46fbb77e843b44d8fe088c2645a4a8f66
5c7e890276a5be079ed3b677a471c1dcadcba52d
refs/heads/master
2022-02-26T19:52:30.563747
2022-02-16T20:24:48
2022-02-16T20:24:48
215,602,523
0
1
null
null
null
null
UTF-8
Python
false
false
1,715
py
from Samples.SampleDefinition import Sample from Samples.Uncertainties.UserUncertainties.TES import TESUncertainty from Samples.Uncertainties.UserUncertainties.Signal_JES_17 import JES17Uncertainty from Samples.Uncertainties.UserUncertainties.JER import JERUncertainty from Samples.Uncertainties.UserUncertainties.ggHTh...
[ "aloelige@cern.ch" ]
aloelige@cern.ch
9b6dc8ac8d5a83a791a6035c383b3e0c1aa3ee8f
af67d7d0f56da5d8ac9a6fbd4b0aedcebf5a6434
/buglab/data/pypi/venv.py
98b8f421b1f19dbb4df32796f07eff88d4175ce8
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
microsoft/neurips21-self-supervised-bug-detection-and-repair
23ef751829dc90d83571cd68c8703e2c985e4521
4e51184a63aecd19174ee40fc6433260ab73d56e
refs/heads/main
2023-05-23T12:23:41.870343
2022-01-19T12:16:19
2022-01-19T12:16:19
417,330,374
90
23
MIT
2022-08-30T11:54:55
2021-10-15T01:14:33
Python
UTF-8
Python
false
false
2,781
py
import os import subprocess from contextlib import contextmanager from pathlib import Path from tempfile import TemporaryDirectory from typing import Iterator, NamedTuple, Set class PackageLabInfo(NamedTuple): venv_location: Path package_location: str package_name: str package_version: str all_pac...
[ "miallama@microsoft.com" ]
miallama@microsoft.com