blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
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
777 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
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
6e9e83c6bb1562fcf4f896dfd766a80158aed534
724bc07de79b1e411ebb144c3a4fee314eb345f8
/intro_&_enviro/introduction_to_programming/3_bitwise_operators_1/Solutions/test_solution.py
5e964dd7e48806871795c808a3f459166aa4e4a6
[]
no_license
chrisr1896/Exercises
23d0d20a6658184b38a16ae8334414918fcfcd47
20c5aa2f5793eb08825f5e74e8d72590f73a7174
refs/heads/master
2023-01-07T15:34:58.233202
2020-10-26T18:35:24
2020-10-26T18:35:24
301,516,984
0
0
null
2020-10-26T18:35:38
2020-10-05T19:23:46
Python
UTF-8
Python
false
false
447
py
import pytest ret_val_1= None ret_val_2= None ret_val_3= None def g(x,x1,x2): global ret_val_1 global ret_val_2 global ret_val_3 ret_val_1 = x ret_val_2 = x1 ret_val_3 = x2 def test_solution(monkeypatch): monkeypatch.setattr('builtins.print',g) import solution ...
[ "root@MSI.localdomain" ]
root@MSI.localdomain
698469204085262e80b1aefdb7e912c7ac9ed3d5
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_oilier.py
268a3908e49abdff1944522534fd6650c6fc13d0
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
#calss header class _OILIER(): def __init__(self,): self.name = "OILIER" self.definitions = oily self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['oily']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
cfd7fa0e1eeea7cd5ddb597f0d2d440d21f48169
6afa09868ace8dd22a1dab3b49e60e6a2e19e84d
/dbaas/region_migration/migrations/0004_auto__add_field_databaseregionmigrationdetail_is_migration_up.py
eb0f375540eae13079be1bc48293368444840bc3
[]
no_license
rodrigues882013/database-as-a-service
1086e59c8e4bc4896f03780bda28dc7116cc0d83
4e4697fca1163ebb0c5d031dc6cfa757b504d578
refs/heads/master
2020-06-10T10:25:57.940691
2016-12-08T18:00:28
2016-12-08T18:00:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,385
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'DatabaseRegionMigrationDetail.is_migration_up' db.add_col...
[ "raposo.felippe@gmail.com" ]
raposo.felippe@gmail.com
dc7a10bf224f6c83fa3d1e95f49bd3f5d5d69061
fc2fa418295e015f867b26b6ab91133f26eff0bb
/ExampleCode/dataTag.py
619e8b1631101ac814e0f76e9698b088dc00e7b5
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
land-boards/PiCluster
893b0809d5ceeaba2425cd3cfd79598911a65989
e7a508ab1be25e50b79c585ea861118e37ba9bb3
refs/heads/master
2022-04-28T13:02:10.307315
2022-04-20T09:55:52
2022-04-20T09:55:52
62,474,727
1
1
null
null
null
null
UTF-8
Python
false
false
393
py
from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.rank size = comm.size name = MPI.Get_processor_name() if rank == 0: shared = {'d1':55,'d2':42} comm.send(shared, dest=1,tag=1) shared2 = {'d3':13,'d4':77} comm.send(shared2, dest=1, tag=2) if rank == 1: receive = comm.recv(source=0,tag=2) print 'receive'...
[ "doug@douglasgilliland.com" ]
doug@douglasgilliland.com
c9c4adb744435e97f6c8c8bf310e0c89478557df
cbf6b707240feb13fae23634183cbc3a66a5daaa
/advancedpython/functional programming/student.py
88046340989967203dbe816943b6225dc807061e
[]
no_license
mathewssabu/luminarpythonprograms
a23db51ef50bdfba8b167f77748bc991773a5f22
bc16b01cccadae5b8681afe13f10298e13fa57d9
refs/heads/master
2023-04-06T20:06:55.381190
2021-04-19T20:29:28
2021-04-19T20:29:28
358,550,825
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
class Student: def __init__(self,rno,name,course,total): self.rno=rno self.name=name self.course=course self.total=total def __str__(self): return self.name ob1=Student(1,"mathews","python",100) ob2=Student(2,"krish","python",100) ob3=Student(3,"sub","python",100) studs...
[ "mathewssabus@gmail.com" ]
mathewssabus@gmail.com
1b99faebe0b2ad27a3039017c0a6e4f4880f301b
b5a75c623d3ac5dbd64648ac1d619c20b32b3f45
/textgen/augment/text_augment.py
f6bc83820001c4cb6aaf4aa212130291fa1ef8df
[ "Python-2.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
shibing624/textgen
c06fc3c72716f4e0cf7fe613c99ef3326036e955
df65a86a9ef515062716063b18f8a6c62e40f205
refs/heads/main
2023-08-18T08:09:08.375830
2023-08-04T08:14:57
2023-08-04T08:14:57
355,543,219
705
88
Apache-2.0
2023-07-18T05:03:52
2021-04-07T12:50:40
Python
UTF-8
Python
false
false
3,582
py
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ from loguru import logger from jieba import analyse import jieba from textgen.augment.sentence_level_augment import back_translation from textgen.augment.word_level_augment import ( get_data_idf, RandomReplace, DeleteReplace, ...
[ "shibing624@126.com" ]
shibing624@126.com
fbe234435ebc33e5fc592fcdadd8e95bef6987d5
036a41c913b3a4e7ae265e22a672dd89302d3200
/LCCI_程序员面试金典/面试01.03/面试01.03_Python_1.py
41b31f807d3822adb5703677fd2deaed6fb42d28
[]
no_license
ChangxingJiang/LeetCode
e76f96ebda68d7ade53575354479cfc33ad4f627
a2209206cdd7229dd33e416f611e71a984a8dd9e
refs/heads/master
2023-04-13T15:23:35.174390
2021-04-24T05:54:14
2021-04-24T05:54:14
272,088,506
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
class Solution: def replaceSpaces(self, S: str, length: int) -> str: return S[:length].replace(" ", "%20") if __name__ == "__main__": print(Solution().replaceSpaces("Mr John Smith ", 13)) # "Mr%20John%20Smith" print(Solution().replaceSpaces(" ", 5)) # "%20%20%20%20%20"
[ "1278729001@qq.com" ]
1278729001@qq.com
6063894ac04adeb8aa4a249162585979ccc1a67a
529116668b14bcd1f537d1d2f7cd7df1d18ef8b8
/lingvo/core/asr_frontend.py
9622095ee5f859da4a20e69807086beb999f4d99
[ "Apache-2.0" ]
permissive
ethanm88/lingvo
0bfd1d0ba219da4a3279940397f0ef64797ad32d
46314590ca80a557b6b95c8acdf5956f9e045eb7
refs/heads/master
2022-09-29T02:01:07.399920
2020-05-30T03:52:59
2020-05-30T03:52:59
268,003,453
0
0
Apache-2.0
2020-05-30T03:40:13
2020-05-30T03:40:12
null
UTF-8
Python
false
false
8,519
py
# Copyright 2018 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...
[ "copybara-piper@google.com" ]
copybara-piper@google.com
da0506468110d4e269765d1f8a9ac141d1441d13
a36709bf6fde580a0134a8c848a013d7f34d8412
/src/google_music_scripts/constants.py
d8fbfde9be2509d07f76036c185ca01af04cc08a
[ "MIT" ]
permissive
cqcallaw/google-music-scripts
83d3e8dc874c2cf657c0f5e5b242e2180e3376cb
a05e61fb2b5da677bde2489c1a845cce3b891dd2
refs/heads/master
2020-04-17T13:26:24.720197
2019-01-16T19:01:58
2019-01-16T19:01:58
166,615,963
0
0
MIT
2019-01-20T02:39:08
2019-01-20T02:39:08
null
UTF-8
Python
false
false
717
py
__all__ = [ 'CHARACTER_REPLACEMENTS', 'TEMPLATE_PATTERNS', 'UNIX_PATH_RE' ] import re CHARACTER_REPLACEMENTS = { '\\': '-', '/': ',', ':': '-', '*': 'x', '<': '[', '>': ']', '|': '!', '?': '', '"': "''" } """dict: Mapping of invalid filepath characters with appropriate replacements.""" TEMPLATE_PATTERNS ...
[ "mail@thebigmunch.me" ]
mail@thebigmunch.me
2bb0eb162eeab1ef6fa90da993c968e448df5603
b51f277dfe339ea30dce10040eca40c20bd8a4dd
/src/pos/order_new2.py
63eeb0603e663b8daaf8cd49bbc94a2d19d3f4a0
[ "BSD-3-Clause" ]
permissive
jack139/fair
e08b3b48391d0cb8e72bbc47e7592c030f587f48
fe0ff64f8edbd794c3fb951ab6af420054e9e585
refs/heads/master
2021-06-30T15:17:15.590764
2020-09-23T07:14:20
2020-09-23T07:14:20
160,322,019
1
0
null
null
null
null
UTF-8
Python
false
false
2,381
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import web, re from config import setting import helper db = setting.db_web url = ('/pos/order_new2') # 新订货单,按库存商品清单格式 class handler: def GET(self): if helper.logged(helper.PRIV_USER): render = helper.create_render() user_data=web.input() # 查找 db...
[ "gt@f8geek.com" ]
gt@f8geek.com
e0e42f3dc02238ac63c949088bdf82bffa0cc558
ec1059f4ccea10deb2cb8fd7f9458700a5e6ca4c
/venv/Lib/site-packages/pandas/tests/indexes/multi/test_monotonic.py
8659573d8123a7c5e7dfe87048afe5be1d30030d
[ "Apache-2.0", "MIT" ]
permissive
shivam675/Quantum-CERN
b60c697a3a7ad836b3653ee9ce3875a6eafae3ba
ce02d9198d9f5a1aa828482fea9b213a725b56bb
refs/heads/main
2023-01-06T20:07:15.994294
2020-11-13T10:01:38
2020-11-13T10:01:38
330,435,191
1
0
MIT
2021-01-17T16:29:26
2021-01-17T16:29:25
null
UTF-8
Python
false
false
6,936
py
import numpy as np import pytest import pandas as pd from pandas import Index, MultiIndex def test_is_monotonic_increasing(): i = MultiIndex.from_product([np.arange(10), np.arange(10)], names=["one", "two"]) assert i.is_monotonic is True assert i._is_strictly_monotonic_increasing is True assert Index...
[ "vinfinitysailor@gmail.com" ]
vinfinitysailor@gmail.com
4b6560d67a257c03ced0775d7fd7cf9beff3d558
0facb323be8a76bb4c168641309972fa77cbecf2
/Configurations/HWWSemiLepHighMass/nanoAODv5/v6_production/2017/NJET_biined_WJets/SKIM10/HMVar10_Full_ALL_var_DATACARD/MassPoints/structure_M145_mu.py
5d6affd00a0abd752266feb10c5d05d451dd8bdd
[]
no_license
bhoh/SNuAnalytics
ef0a1ba9fa0d682834672a831739dfcfa1e7486b
34d1fc062e212da152faa83be50561600819df0e
refs/heads/master
2023-07-06T03:23:45.343449
2023-06-26T12:18:28
2023-06-26T12:18:28
242,880,298
0
1
null
2020-02-25T01:17:50
2020-02-25T01:17:49
null
UTF-8
Python
false
false
1,695
py
#['WW', 'ggHWWlnuqq_M1500', 'DY', 'DATA', 'WZ', 'ggHWWlnuqq_M125', 'ZZZ', 'ggHWWlnuqq_M900', 'vbfHWWlnuqq_M500', 'Wjets1j', 'QCD_MU', 'WZZ', 'vbfHWWlnuqq_M900', 'QCD_bcToE', 'Wjets2j', 'QCD_EM', 'ggHWWlnuqq_M500', 'ZZ', 'WWW', 'vbfHWWlnuqq_M1500', 'vbfHWWlnuqq_M125', 'WWZ', 'Wjets0j', 'top'] QCD_MU=['QCD_Pt-15to20_MuE...
[ "soarnsoar@gmail.com" ]
soarnsoar@gmail.com
e872d222a36ea558b08358e20a3e22b64ad944f3
430791dcde1596a554984e38c554a367b85c9951
/inheritance/exercises/need_for_speed/family_car.py
fcb2d26d2dd696cfc7b40b3626014d95ca4e651f
[]
no_license
mialskywalker/PythonOOP
5fa8606cfe7c9ceb72ada8e62ff89513bac10d32
e7f2d5f46983e9c8c50d9356497fcc9ed9f6d4dc
refs/heads/master
2023-04-06T05:43:13.408741
2021-04-03T13:22:13
2021-04-03T13:22:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
from inheritance.exercises.need_for_speed.car import Car class FamilyCar(Car): def __init__(self, fuel, horse_power): super().__init__(fuel, horse_power)
[ "kalqga123@gmail.com" ]
kalqga123@gmail.com
2d0bb38cdc8f76f2c67cb3d29b69791d8cc14253
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_associations_py3.py
61dce1368e38ff45c1b3876919b3541caaf1eb40
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
2,234
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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
c4073a802cc248f9221209efdbf0d622addb3718
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_005/ch60_2020_06_21_20_04_50_087733.py
8b2389680b09ba195f3ecb4c1e2c8b814f0739eb
[]
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
171
py
def eh_palindromo(palavra): palavra = input('escreva algo:') if palavra == palavra[::-1]: return True if palavra != palavra[::-1]: return False
[ "you@example.com" ]
you@example.com
bb66fbb3bdda4e5633216ce02237081463edc69b
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_084/ch8_2020_03_02_13_49_00_130580.py
c3be16c15fc046b0ebc54c56bce68bb2a2d3343d
[]
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
66
py
def calcula_posicao(t,s0,v): s=s0+v*t return s
[ "you@example.com" ]
you@example.com
b3d47330998a0ef2bc1f908f09fa5c29b79ea632
b943f725f8c6b20c277eb7b77e67689173bc0d1a
/templates/courses/templatetags/courses_tags.py
5cb6a5d7636ff8f7010f1ee406e011e1717d3c70
[]
no_license
Akijunior/Eleanning
c4da62971735b5a6c18f0ee04758ac6db770c2a4
4b0e4c397b76a7839722b00f23ef3eb4f309d229
refs/heads/master
2020-08-19T05:14:57.581513
2019-10-21T15:33:36
2019-10-21T15:33:36
215,882,153
0
0
null
null
null
null
UTF-8
Python
false
false
847
py
from django.template import Library register = Library() from simplemooc.courses.models import Enrollment # Decorator que registra essa função como um template tag, passando o html a ser renderizado # Esse tipo de template tag você faz um html separado para renderizar nos outros @register.inclusion_tag('courses/temp...
[ "suitsu19@gmail.com" ]
suitsu19@gmail.com
c107a86a470fe7f3720cac5038738288df39a975
0206ac23a29673ee52c367b103dfe59e7733cdc1
/src/calculate_E_minus_P_in_meters.py
cdd99f4fc719862939eee87e85e70d50531ca9ab
[]
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
6,002
py
import os.path __author__="huziy" __date__ ="$Apr 13, 2011 1:47:04 PM$" from rpn import RPN from test_rpn import plot_field_2d import matplotlib.pyplot as plt import numpy as np import os import application_properties application_properties.set_current_directory() from datetime import datetime import level_kinds ...
[ "guziy.sasha@gmail.com" ]
guziy.sasha@gmail.com
abb06822105afd80eb7f3124f5d87f773a710574
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/I_to_M_Gk3_no_pad/pyr_Tcrop255_pad60_jit15/Sob_k29_s001_Bce_s001/pyr_5s/L6/step10_a.py
b4abb41d4e1be5fbc164574496156951b4e90173
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
251,009
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
e78af551b571e6b036340e8738b4f7bb90e7aaa2
b67e12ebc5a3b268f910e49be51959b0c7730953
/tests/test_pytest_arraydiff.py
afae0bbab6e5df9de802fa42ba1ff23f3c9f7ca9
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
cdeil/pytest-arraydiff
6e5af1a8747cc2ce52f9992d310f4156240f1b49
d760656f3b29c7f94c733cda2e9351e7333df7a1
refs/heads/master
2020-06-18T03:39:41.666653
2016-11-26T13:17:36
2016-11-26T13:17:36
74,953,327
0
0
null
2016-11-28T08:38:54
2016-11-28T08:38:54
null
UTF-8
Python
false
false
3,601
py
import os import subprocess import tempfile import pytest import numpy as np reference_dir = 'baseline' @pytest.mark.array_compare(reference_dir=reference_dir) def test_succeeds_func_default(): return np.arange(3 * 5).reshape((3, 5)) @pytest.mark.array_compare(file_format='text', reference_dir=reference_dir) ...
[ "thomas.robitaille@gmail.com" ]
thomas.robitaille@gmail.com
2e588e6fedcec3f173c61c6f3aa270f6aef0c5dd
e4ee9f2ca60b60ea9fa1b05c982594a2c1b10484
/day65 课上笔记以及代码 django的cookie和session/cookiesession/cookiesession/urls.py
28931910effe90f20d420a7babae539c4762c72f
[]
no_license
tianshang486/Pythonlaonanhai
100df2cc437aad1ee1baf45bdfc4500b1302092b
2a5b46986f5ca684b2ae350596e293db54e1e2f4
refs/heads/master
2022-09-19T02:16:56.972160
2020-06-04T09:24:30
2020-06-04T09:24:30
269,314,860
1
0
null
null
null
null
UTF-8
Python
false
false
996
py
"""cookiesession URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cl...
[ "tianshang486@.com" ]
tianshang486@.com
975a425dd323b3855c8d180ecbad167376f87c4e
d815c4755e6f98098452528d8ab69a8f82096b78
/day4/decorator3.py
455062f06c30c368099166594c7c5194ae69f1f6
[]
no_license
immortalmin/csk
081f1baddde43f74151f08a7d701d4c611845f7f
aca509a03bb88ae2911c1611350decdf68a4419a
refs/heads/master
2020-04-07T22:51:59.907665
2018-12-04T08:53:22
2018-12-04T08:53:22
158,788,228
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
#Author:immortal luo # -*-coding:utf-8 -*- #函数即“变量” #函数的嵌套:在一个函数的体内用def定义一个新的函数 def foo(): print("in the foo") def bar(): print("in the bar") bar() foo()
[ "1608725226@qq.com" ]
1608725226@qq.com
1bd7399df44d1d9ee9942f296f57f4c3113b7c58
92c47649185f2f41ec55997135a6c08ad1c83edd
/api/migrations/0005_auto_20170428_0214.py
4f21fe3c3b03e09b4f218f17af6c540b3e52e5e0
[]
no_license
imapex/collins
6e4c4f739b859757ea9751d0f133552a0e05f215
4ab27e9b20124e2cf7755ac488ce472480545308
refs/heads/master
2021-01-19T13:56:24.864706
2017-05-23T06:00:37
2017-05-23T06:00:37
88,116,608
0
4
null
2017-05-23T06:00:38
2017-04-13T02:30:10
Python
UTF-8
Python
false
false
416
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-28 02:14 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0004_result_added'), ] operations = [ migrations.RenameField( mode...
[ "kecorbin@cisco.com" ]
kecorbin@cisco.com
47e2cdcfff1aa8959b1e5747da6b9f171a966624
a1232023595eed48bf3d56c0c1dcb8f05cdc261a
/48. Rotate Image/_48.py
1def3d4c60a89af087e5d90db18eaf4c3848cf53
[]
no_license
NKcell/leetcode
2393ec3f8dc0e26b9ff098a592e4ffa9d7b774b8
88dec1c2106950e82819a0dd16425a9ee8fdaca4
refs/heads/master
2020-07-24T05:27:42.269903
2020-05-06T07:45:07
2020-05-06T07:45:07
207,814,442
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
class Solution: def rotate(self, matrix) -> None: """ Do not return anything, modify matrix in-place instead. """ myLen = len(matrix)-1 endLen = len(matrix)-1 flag = len(matrix) start = 0 while flag>1: for i in range(start, endLen...
[ "517343690@qq.com" ]
517343690@qq.com
8ea89abe4a178593aa7ba6e968ac99911bd391c2
5da809f1b661bed20fc31fa10f72f277ae409f2a
/批量修改文件名中不需要的字符.py
4108403f3215e8e29a222cbec39fa8b78567a7f3
[]
no_license
zhouf1234/untitled927
7725f0edf0a67183c81cc8b0477a1a13b10e13c9
c35b83c386bc26dccbfcaf7db01d0687125ced1f
refs/heads/master
2020-05-05T02:33:29.796530
2019-04-05T08:09:04
2019-04-05T08:09:04
179,642,094
0
0
null
null
null
null
UTF-8
Python
false
false
1,541
py
import os """用来实现删除特定广告文本的函数。 该函数会搜索检查指定根目录下的所有文件以及子目录,如果子目录下依然 存在子目录,则会一直查找下去,直到没有子目录为止。然后将目录名与文件 名中含有的广告词进行删除。 dir2 : str 指定要检查的根目录。 ad_text : str 指定要删除的广告词。 """ def remove_ad_text(dir2,ad_text): #判断传进来的dir2是否目录(文件夹) if not os.path.isdir(dir2): return #判...
[ "=" ]
=
21af9ebb744639fc14a5f518623b0515343d524f
1a2bf34d7fc1d227ceebf05edf00287de74259c5
/Django/Day07/高级进阶/Day07django/urls.py
eb7ad8a5f87af92a4bafe8997124b8ede0be482a
[]
no_license
lzn9423362/Django-
de69fee75160236e397b3bbc165281eadbe898f0
8c1656d20dcc4dfc29fb942b2db54ec07077e3ae
refs/heads/master
2020-03-29T18:03:47.323734
2018-11-28T12:07:12
2018-11-28T12:07:12
150,192,771
0
0
null
null
null
null
UTF-8
Python
false
false
831
py
"""Day07django URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
[ "411121080@qq.com" ]
411121080@qq.com
bcf196c81b6a7c8930f97488a7682ba2e17b4bf2
3a9f2b3d79cf214704829427ee280f4b49dca70a
/saigon/rat/RuckusAutoTest/common/SeleniumControl.py
e472ab75312ad247260d968a3ef6d73983da8347
[]
no_license
jichunwei/MyGitHub-1
ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791
f826fc89a030c6c4e08052d2d43af0b1b4b410e3
refs/heads/master
2021-01-21T10:19:22.900905
2016-08-20T03:34:52
2016-08-20T03:34:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,285
py
import os import time from RuckusAutoTest.common.ProcessMgmt import createProcess from RuckusAutoTest.common.DialogHandler import DialogManager, BaseDialog from RuckusAutoTest.common.SeleniumClient import SeleniumClient import RuckusAutoTest.common.Ratutils as RU class SeleniumManager: """ Provides functions ...
[ "tan@xx.com" ]
tan@xx.com
f609994745a1851d1bc44af83d443286434945ad
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03737/s976429413.py
6ab266c6d722a00e3d561f2c7a49ea02eec03c72
[]
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
74
py
x = input().split() print(x[0][0].upper()+x[1][0].upper()+x[2][0].upper())
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b9d1906231d5be579eb4d5d1ecd6c7ca2b7dbc4d
e13cd9a8a53a3d688bcc2621c18e4d0ce79fabcb
/legacy_code/process_back_test30.py
3905f428dc1aec7cabcf0f11177de50fce4d6106
[]
no_license
renewday/sds
2d59560515e67dcc84cb259b61e52ccf08f362f0
167b5fe6d1533506e104981c9beffdec4d274a0f
refs/heads/master
2020-04-03T15:34:20.487630
2016-06-23T01:14:06
2016-06-23T01:14:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
65,450
py
import os from scipy import stats import copy import math import sys import matplotlib.pyplot as plt import datetime from scipy.signal import argrelextrema import numpy as np sys.path.append("../emd_util") from generate_emd_data import generateEMDdata from analyze import * from spline_predict import linerestruct fro...
[ "thunderocean@163.com" ]
thunderocean@163.com
b7e81232a715e8cd44e06296f094bdf05bf84e83
3649dce8b44c72bbfee56adf4e29ca6c5ba2703a
/code_up1671.py
6c53c822fa3648ed58ec087f429a0046cc2030a9
[]
no_license
beOk91/code_up
03c7aca76e955e3a59d797299749e7fc2457f24a
ca1042ce216cc0a80e9b3d3ad363bc29c4ed7690
refs/heads/master
2022-12-06T08:23:00.788315
2020-08-20T11:21:59
2020-08-20T11:21:59
284,844,571
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
a,b=map(int,input().strip().split()) if a==0 and b==1: print("win") elif a==1 and b==2: print("win") elif a==2 and b==0: print("win") elif a==b: print("tie") else: print("lose")
[ "be_ok91@naver.com" ]
be_ok91@naver.com
dccd0b18efcf0975c70413c79fbaa91720e626ed
93f47ba04fc18c4e537f0a48fe6232e2a89a4d30
/examples/adspygoogle/dfp/v201405/contact_service/update_contacts.py
01a69b481b6bfd640ecc536ae924f2392060edc7
[ "Apache-2.0" ]
permissive
jasonshih/googleads-python-legacy-lib
c56dc52a1dab28b9de461fd5db0fcd6020b84a04
510fad41ecf986fe15258af64b90f99a96dc5548
refs/heads/master
2021-04-30T22:12:12.900275
2015-03-06T15:35:21
2015-03-06T15:35:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,476
py
#!/usr/bin/python # # Copyright 2013 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 b...
[ "msaniscalchi@google.com" ]
msaniscalchi@google.com
f20194bfbdb3cb2143827648da4fca3db0909b89
931d03b85a042ec6e141aa44ed8c994127942008
/monty/__init__.py
cfee5b4d68df80bccae806ecf295c81d075a6746
[ "MIT" ]
permissive
gpetretto/monty
18f802dcef0270f15241be546ff2bb6efc13bce7
3318c576fb6815c52709c71d612507ceba26a7d4
refs/heads/master
2021-01-22T14:55:59.458792
2015-10-07T13:56:28
2015-10-07T13:56:28
35,677,304
0
0
null
2015-05-15T14:04:36
2015-05-15T14:04:35
null
UTF-8
Python
false
false
504
py
""" Monty is the missing complement to Python. Monty implements supplementary useful functions for Python that are not part of the standard library. Examples include useful utilities like transparent support for zipped files, useful design patterns such as singleton and cached_class, and many more. """ __author__ = 'S...
[ "shyuep@gmail.com" ]
shyuep@gmail.com
3ce3d4651d47f301f623e0f7b7a4f46810b0f831
8c15eae971273e7528778742dcf97f050cdcc34d
/Python/lc_1048_longest_string_chain.py
d77f950dd1a37c87d8f86d3b6bebf12ce168d0f8
[ "MIT" ]
permissive
cmattey/leetcode_problems
3582869fb66d9d587dad0ef177fa8598e6dd3825
fe57e668db23f7c480835c0a10f363d718fbaefd
refs/heads/master
2021-12-14T22:08:28.385130
2021-12-08T06:11:09
2021-12-08T06:11:09
194,169,863
6
1
null
2020-01-21T09:02:13
2019-06-27T22:15:37
Python
UTF-8
Python
false
false
1,510
py
# Time: nlogn + n*k^2 , n = len(words) <-check, k = max len word # Space: n class Solution: def longestStrChain(self, words: List[str]) -> int: """ create map like so: 1: (a,1),(b,1) 2: (ba,1) 3: (bca,1),(bda,1)... """ import collections over_all_ma...
[ "cmattey@dons.usfca.edu" ]
cmattey@dons.usfca.edu
bb03fd25159ff8719eb8e1d25f68a87f4ef6e326
f24238cb43c80d8d646bd4541bdec6113c24245a
/codes/pipeline.smk
bd0924e411e4dcafc736840734b31d5d91b2c6f4
[ "Apache-2.0" ]
permissive
nicwulab/UK_strain_in_vitro_fitness
23b6cd5874ccc300bfe92a8dbecf1cb7a3429428
743115c37d60877ca520ba0a4d53e4dc3c1734c7
refs/heads/main
2023-04-17T08:12:02.628367
2021-05-04T01:02:18
2021-05-04T01:02:18
358,973,185
0
0
null
null
null
null
UTF-8
Python
false
false
4,194
smk
# only PROJECT_PATH variable and reference needed to change PROJECT_PATH=config['PROJECTPATH'] #'/Users/yiquan/PycharmProjects/SARS-CoV-2/SARS-Competition' import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import glob import os import numpy as np plt.rc('axes', labelsize=15) plt.rc('xtick', la...
[ "wckdouglas@gmail.com" ]
wckdouglas@gmail.com
e15aeaa8034adb3760881e4121b5ff51ac539194
e5d5fa28999bcc6c642bb42dda93afd38e272b81
/GeeksforGeeks/Subarray with given sum/solve1.py
b87e71d05195430504e7eefb089ca653543575bf
[]
no_license
chiahsun/problem_solving
cd3105969983d16d3d5d416d4a0d5797d4b58e91
559fafa92dd5516058bdcea82a438eadf5aa1ede
refs/heads/master
2023-02-05T06:11:27.536617
2023-01-26T10:51:23
2023-01-26T10:51:23
30,732,382
3
0
null
null
null
null
UTF-8
Python
false
false
959
py
# User function Template for python3 # Function to find a continuous sub-array which adds up to a given number. class Solution: def subArraySum(self, arr, n, s): if s >= 0: begin, total = 0, 0 for i in range(n): total += arr[i] while begin < i and tot...
[ "chiahsun0814@gmail.com" ]
chiahsun0814@gmail.com
6650e7add63771ca55e0b5ccc82f42dbbd643058
d3fd074b3d7d36744d54af4a6fccf0ff56e8f58d
/src/n2v/line.py
babfb8c68f5aa97e38f95a12ee721ed76f777d60
[ "BSD-2-Clause" ]
permissive
Allen517/dcnh
8db13906cc20e894a20e622392b98b6e8816584c
45eb1b6acd4353e082983772c3a357a01e9ff7f8
refs/heads/master
2021-09-13T07:13:22.117967
2018-04-26T12:01:15
2018-04-26T12:01:15
112,300,930
0
0
null
null
null
null
UTF-8
Python
false
false
24,805
py
# -*- coding:utf8 -*- import random import math import numpy as np from collections import defaultdict from utils.LogHandler import LogHandler import os class _LINE(object): def __init__(self, graph, lr=.001, rep_size=128, batch_size=100, negative_ratio=5, order=3, table_size=1e8, log_file='l...
[ "wangyongqing.casia@gmail.com" ]
wangyongqing.casia@gmail.com
72105a165bd0d49f4032b97f3ef5150c086853c1
a2756dd9955ffadd060fe66c4c7a0ca7524d7ece
/tests/__init__.py
3bfe96dda89c4cbdb7ac29529158aa17243c2afb
[ "MIT" ]
permissive
wasi0013/python-loganalytics
4af179cccf1a7311b4dcc493eac8c8e942a1c9dd
23f86c4ab7c1bb1ab72ec928389806f7e1b76b5b
refs/heads/master
2022-12-25T23:59:52.212617
2020-10-03T03:51:52
2020-10-03T03:51:52
299,330,609
0
0
MIT
2020-10-03T03:45:54
2020-09-28T14:14:31
Python
UTF-8
Python
false
false
38
py
"""Unit test package for py_logan."""
[ "wasi0013@gmail.com" ]
wasi0013@gmail.com
1b332e2808c64b7166967ea7445d4f9e957d1c56
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/community/network/plugins/modules/a10_service_group.py
2a85b487d71d3bc3dc718b468d027ce8a2f1b760
[ "GPL-3.0-or-later", "GPL-3.0-only", "MIT" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
13,203
py
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2014, Mischa Peters <mpeters@a10networks.com>, # Eric Chou <ericc@a10networks.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = t...
[ "sifang@cisco.com" ]
sifang@cisco.com
926505af51761c9f00e00a04e4f738e3cfadce18
e90a772733e73e45b4cdbb5f240ef3b4a9e71de1
/191. Number of 1 Bits.py
d318c31073c0666bf6ccdbec380f87f25ec92a51
[]
no_license
jiewu-stanford/leetcode
102829fcbcace17909e4de49c01c3d705b6e6e3a
cbd47f713d3307f900daf55c8f27301c70542fc4
refs/heads/master
2022-05-28T18:25:00.885047
2022-05-18T05:16:22
2022-05-18T05:16:22
214,486,622
2
0
null
null
null
null
UTF-8
Python
false
false
356
py
''' Title : 191. Number of 1 Bits Problem : https://leetcode.com/problems/number-of-1-bits/description/ ''' class Solution(object): def hammingWeight(self, n): res = 0 while n: res += n & 1 n //= 2 return res class Solution(object): def hammingWeight(self, ...
[ "bayernscience@hotmail.com" ]
bayernscience@hotmail.com
7236ff4a7701e46261c1798df671851d46c5153a
1894100670fd18c509d6316a45845af9e56ee2e0
/oscar/apps/checkout/app.py
1a330bbae5ec2f7a35dab35e0e869fad09401af4
[ "BSD-2-Clause" ]
permissive
AndrewIngram/django-oscar
a22bb7e185e9dc84ae0fe24d7bd2e1150bd87a9a
5f3f586bdf4f45de87667b88c3cf0836ed34d393
refs/heads/master
2021-01-18T06:32:15.776815
2011-11-18T18:26:39
2011-11-18T18:26:39
1,665,089
1
0
null
null
null
null
UTF-8
Python
false
false
2,156
py
from django.conf.urls.defaults import patterns, url from oscar.core.application import Application from oscar.apps.checkout.views import IndexView, ShippingAddressView, UserAddressDeleteView, UserAddressCreateView, \ UserAddressUpdateView, ShippingMethodView, PaymentMethodView, Or...
[ "david.winterbottom@gmail.com" ]
david.winterbottom@gmail.com
0a35f9f30c5ad227d7bcc9819562c549af812ffb
7f68bbb3fd328a4d6bbabecb44305987d8cbbfc4
/algorithm/4.Stack1/190213workshop.py
5aed7378443bade746f0555509f114688a56be53
[]
no_license
seunghoon2334/TIL
c84f9f9e68c8ccc7a1625222fe61f40739774730
51cfbad2d9b80a37b359716fca561c2a5c5b48b3
refs/heads/master
2022-12-18T18:20:19.210587
2019-11-26T03:14:23
2019-11-26T03:14:23
162,101,369
0
0
null
2022-11-22T03:59:16
2018-12-17T08:51:53
C
UTF-8
Python
false
false
889
py
import sys sys.stdin = open("190213workshop.txt") for tc in range(10): arr = [] tttt = input() for i in range(100): arr.append(list(map(int, input().split()))) x = arr[99].index(2) y = 99 cnt = 0 while y!=0: if x!=0 and x!=99: if arr[y][x-1]==1: ...
[ "gogo12394@naver.com" ]
gogo12394@naver.com
4ba4b5d5960b2cdac899ad703bdc828619ac830a
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/RxHjtFqu3w8L9i5fx_6.py
54d7f3b2db7522a54b54400ae9bab6c72f1114de
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
""" The Bell number is the number of ways a list of `n` items can be partitioned into non-empty sublists. See the resources section for an in-depth explanation. Create a function that takes a number `n` and returns the corresponding Bell number. ### Examples bell(1) ➞ 1 # sample_lst = [1] # possible_p...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
98d035f264c419b4ee490e4172333534a29713e2
aa1e637de90f69f9ae742d42d5b777421617d10c
/nitro/resource/config/ns/nspbr_args.py
bebc57622370e8d4d19a29c5b68a47271c5ce3b8
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
km0420j/nitro-python
db7fcb49fcad3e7a1ae0a99e4fc8675665da29ba
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
refs/heads/master
2021-10-21T18:12:50.218465
2019-03-05T14:00:15
2019-03-05T15:35:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,167
py
# # Copyright (c) 2008-2015 Citrix 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 applicable l...
[ "lennart.weller@hansemerkur.de" ]
lennart.weller@hansemerkur.de
d120f83b9f2f2ae9c892f9cd0dfc4ce8a8877315
57236ad2468ed7ef5c4509cc52093c0741ebac38
/utils/common_test.py
3c43376adf85c93e50285b67d95ca66aeee082c1
[ "MIT" ]
permissive
initialed85/eds-cctv-system
8ead007614791e561f84cd7b0569298213a974f7
fcdb7e7e23327bf3a901d23d506b3915833027d1
refs/heads/master
2021-07-18T13:55:25.492232
2020-11-07T04:13:48
2020-11-07T04:13:48
227,310,310
0
0
null
null
null
null
UTF-8
Python
false
false
44,917
py
import datetime import unittest from pathlib import Path, PosixPath from tempfile import mkdtemp from dateutil.tz import tzoffset from .common import ( Event, get_sorted_paths, format_timestamp_for_go, build_event_for_some_path_details, build_events_for_related_path_details, build_json_lines_f...
[ "initialed85@gmail.com" ]
initialed85@gmail.com
626ccef0e15c0001a1055667cd106ac2d9d0b288
c8d13f0efb453f8119aa55303c7bb70b506d51a1
/108.py
89fc9c0d769a160b4a66016d7da4d9617f8f204d
[]
no_license
rubivenkatesan/rubi21
ab5f248e4cba664330fb8d7b4632d20c527a221e
f91d55852c1ab64dcec75a13ca835e2bf6c3dcb8
refs/heads/master
2020-04-15T04:58:04.682460
2019-06-05T13:18:13
2019-06-05T13:18:13
164,403,882
0
1
null
null
null
null
UTF-8
Python
false
false
141
py
#rubi n,k=map(int,input().split()) l=list(map(int,input().split())) s=sorted(l) c=0 for i in range(0,len(s)): c=c+1 if c==k: print(s[i])
[ "noreply@github.com" ]
rubivenkatesan.noreply@github.com
8bb169347d11192a79e713f88551c69427d2f96f
1d0dd44234b4a23b3957e06c043d5f53d0ca4161
/e2system/kernel/app/webodt/tests/base.py
4bcb0eab42fddf6ce5badc5d707792a9fb3819a2
[]
no_license
alexliyu/cloudsystem
33c1467e7fa040f1dc28cbead13ba19f6a5b961b
2049db59e11457e9ee5acc53a19c3c52f5b78ddd
refs/heads/master
2016-09-02T02:42:22.313372
2011-06-18T18:37:27
2011-06-18T18:37:27
1,874,903
1
1
null
null
null
null
UTF-8
Python
false
false
4,469
py
# -*- coding: utf-8 -*- import os import unittest import webodt from cStringIO import StringIO from django.template import Context from webodt.converters.abiword import AbiwordODFConverter from webodt.converters.openoffice import OpenOfficeODFConverter from webodt.converters.googledocs import GoogleDocsODFConverter c...
[ "alexliyu2012@gmail.com" ]
alexliyu2012@gmail.com
672f146c06427a1f2f018bc6931e1febb2d58a9d
620461212eda6fdd15060f1cd4d923ec4b073ebf
/roles/karl_mac/files/dotfiles/ipython/profile_default/startup/00-imports.py
2e12a63c143a6ea93e178d6f570ed76f19c32e03
[ "Unlicense", "LicenseRef-scancode-unknown-license-reference" ]
permissive
karlhedins/mac-ansible
9d1a07f732eaf90984b8353a94c009b6ccaae907
e9ab5160df9c90dbdbfa780b5893ba115cc2b857
refs/heads/master
2023-01-03T03:51:04.676586
2020-10-27T10:02:44
2020-10-27T10:02:44
297,728,863
0
0
Unlicense
2020-09-22T17:54:17
2020-09-22T17:54:17
null
UTF-8
Python
false
false
22
py
import datetime as dt
[ "adam@adamj.eu" ]
adam@adamj.eu
3facc671e92b316b2e7a86a9e9cf9fc3c7fe543b
35cf6fc79b8d6c335add8e55e0f4dca6f2816d1d
/Python_Study/第七模块学习/Day01/用pycharm创建Django/venv/Lib/site-packages/django/forms/models.py
6e8091e099fdd673a62293872663f796346337b8
[]
no_license
KongChan1988/51CTO-Treasure
08b4ca412ad8a09d67c1ea79c7149f8573309ca4
edb2e4bd11d39ac24cd240f3e815a88361867621
refs/heads/master
2021-07-04T15:57:56.164446
2019-07-24T15:28:36
2019-07-24T15:28:36
97,453,749
5
8
null
2019-10-30T22:05:12
2017-07-17T08:34:59
Python
UTF-8
Python
false
false
56,274
py
""" Helper functions for creating Form classes from Django models and database field objects. """ from collections import OrderedDict from itertools import chain from django.core.exceptions import ( NON_FIELD_ERRORS, FieldError, ImproperlyConfigured, ValidationError, ) from django.forms.fields import ChoiceField,...
[ "wangwei_198811@163.com" ]
wangwei_198811@163.com
72508075881c390df97b44497313e1e36638fd62
e97a2b21f3887033f78aa5a9924151e7b6728f6c
/lib/modeling/fast_rcnn_heads.py
4b52663688a52613c8a1285898ec0d0ef089dfb1
[ "MIT" ]
permissive
agdolla/Detectron.pytorch
7df785baef615e66d176c68de83ab4df9a4ea1ff
1833c71a62e389d2b5f873f40a914c5a47bdd8a2
refs/heads/master
2020-03-18T01:49:43.738866
2018-05-20T04:16:48
2018-05-20T04:16:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,081
py
import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init from torch.autograd import Variable from core.config import cfg import nn as mynn import utils.net as net_utils class fast_rcnn_outputs(nn.Module): def __init__(self, dim_in): super().__init__() self.c...
[ "roytseng.tw@gmail.com" ]
roytseng.tw@gmail.com
bf745fa17696105b8a84b41319b5adca1f91458c
7889f7f0532db6a7f81e6f8630e399c90438b2b9
/1.2.1/examples/old_animation/animation_blit_tk.py
54e288efd621348409627300589223e4866d2af8
[]
no_license
matplotlib/matplotlib.github.com
ef5d23a5bf77cb5af675f1a8273d641e410b2560
2a60d39490941a524e5385670d488c86083a032c
refs/heads/main
2023-08-16T18:46:58.934777
2023-08-10T05:07:57
2023-08-10T05:08:30
1,385,150
25
59
null
2023-08-30T15:59:50
2011-02-19T03:27:35
null
UTF-8
Python
false
false
1,241
py
# For detailed comments on animation and the techniqes used here, see # the wiki entry http://www.scipy.org/Cookbook/Matplotlib/Animations from __future__ import print_function import matplotlib matplotlib.use('TkAgg') import sys import pylab as p import numpy as npy import time ax = p.subplot(111) canvas = ax.figu...
[ "mdboom@gmail.com" ]
mdboom@gmail.com
c6515ee89099f286085c835d50044f0035d33fe9
ae5b2f3b1a37a32fcf6388cc7ce14ea69df3eade
/Coffee Machine/Problems (43)/Miles away/task.py
bf14333e3c774bcd94f78271624605a7eebbc9c4
[]
no_license
Lyasinkovska/PycharmProjects
9e05e9161c2f5019f68d5ec456c3871ec96835ca
02ab034f6618c013cc42197f97ba56355f9b6163
refs/heads/master
2021-07-14T03:59:44.146017
2021-03-10T18:59:53
2021-03-10T18:59:53
242,104,502
0
0
null
null
null
null
UTF-8
Python
false
false
47
py
def mi_to_km(mi): km = mi * 1.609 return km
[ "l.yasinkovska@gmail.com" ]
l.yasinkovska@gmail.com
d3ab705e14af3aa93aaf4ca90d814449b8e4af0b
5d2784bc4ce1dc01f35c94f21f60ed5faf97d23c
/mezzanine/core/tests.py
c8b798cbd49c387aeb0ed3855fd99ec7ce8e6540
[ "BSD-2-Clause" ]
permissive
westinedu/newertrends
db8155bbc46198d25399029db8f0c7ed9ca88a5d
8ef18178de65027c7f908efd3e513e6dc8a2ac2c
refs/heads/master
2020-04-07T13:54:08.584365
2012-07-24T08:27:50
2012-07-24T08:27:50
5,103,917
0
1
null
null
null
null
UTF-8
Python
false
false
22,653
py
import os from shutil import rmtree from urlparse import urlparse from uuid import uuid4 from django.contrib.auth.models import User from django.contrib.auth.tokens import default_token_generator from django.contrib.contenttypes.models import ContentType from django.core import mail from django.core.urlresolvers impo...
[ "westine@gmail.com" ]
westine@gmail.com
fdd82b469307757481d9402d9b1a7df36f7d61cf
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/python_all/155_8.py
c5fa49041f2f515494c5a3bd6618f0b7a6a22433
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
2,495
py
Python | Create list of numbers with given range Given two numbers _r1_ and _r2_ (which defines the range), write a Python program to create a list with the given range (inclusive). **Examples:** **Input :** r1 = -1, r2 = 1 **Output :** [-1, 0, 1] **Input :** r1 = 5, r...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
e646c0b10a9bdb829ad17ba45c7366676b9cedf0
605d63d23bc2e07eb054979a14557d469787877e
/atest/testdata/test_libraries/nön_äscii_dïr/valid.py
bb5ff90b334da4ff55b749fdcceb78e6b7652ee9
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
robotframework/robotframework
407b0cdbe0d3bb088f9bfcf9ea7d16e22eee1ddf
cf896995f822f571c33dc5651d51365778b1cf40
refs/heads/master
2023-08-29T03:19:00.734810
2023-08-27T18:14:48
2023-08-28T18:14:11
21,273,155
8,635
2,623
Apache-2.0
2023-09-05T04:58:08
2014-06-27T11:10:38
Python
UTF-8
Python
false
false
183
py
def keyword_in_non_ascii_dir(): return "Keyword in 'nön_äscii_dïr'!" def failing_keyword_in_non_ascii_dir(): raise AssertionError("Keyword in 'nön_äscii_dïr' fails!")
[ "peke@iki.fi" ]
peke@iki.fi
0ebf13a9eb9a652e83cceb6c621660761d2280a0
7a0a1b9910b02194d8de86426a703fc0ea2b6df1
/inventory/models.py
60afceba7ad7d9c516bf7daba023d14ac4cb32f2
[]
no_license
sakkhar/Django_Erp_Management
5fc2704f31e1e905adb1fcd49d7af7d3bd5ffc4a
ef31c0121e7f96ee36a54bcfb5fd53fb011c81bc
refs/heads/master
2021-05-11T06:50:58.852836
2018-01-18T15:40:20
2018-01-18T15:40:20
118,000,860
1
0
null
null
null
null
UTF-8
Python
false
false
1,513
py
from django.db import models # Create your models here. class InventoryLocation(models.Model): location_code=models.CharField(max_length=200, unique=True, blank=True, null=True, help_text='Location Code') def __unicode__(self): return self.location_code class InventoryItem(models.Model): """ ...
[ "sakkhar@mail.com" ]
sakkhar@mail.com
eda0c3a54eabb1d5e1853412b953a115a2ce2fd1
6dd2d35c160473ae664cc1a2e56e0fec601b5922
/restic/test/test_backup.py
85122f8cf945f85af43eb5e6254162dafc3490a2
[ "MIT" ]
permissive
jstzwj/PyRestic
843b220b3c430f78f797956395e1940d451ff043
4164e34da3a8333ea655a70cf3201a4141c67b33
refs/heads/master
2021-07-08T04:59:01.538369
2020-01-30T06:53:02
2020-01-30T06:53:02
230,111,222
2
1
MIT
2021-03-13T23:02:46
2019-12-25T14:05:36
Python
UTF-8
Python
false
false
593
py
import restic import unittest import shutil class TestBackup(unittest.TestCase): def test_backup_file(self): repo = restic.Repo.init('repos_test/test_repo', '12345678') try: repo.backup('setup.py') snapshots = repo.snapshots() self.assertEqual(len(snapshots), 1)...
[ "1103870790@qq.com" ]
1103870790@qq.com
c5c9ee27d60d7fdd21cd07eb391c700b5acd5973
17f38f237c8e8cd6854f76093955a22c5490ecac
/pyrax/utils.py
4b06bdf170f8e17994ff22f8a717baad79cd2927
[]
no_license
ozgurakan/pyrax
6ae7e5da2d6a5e3fcd8b3f0583270ab4546be765
5978270bea5cb4d35056f96740f3270828637880
refs/heads/master
2021-01-16T22:00:25.179798
2013-01-15T18:14:13
2013-01-15T18:14:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,595
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime import fnmatch import hashlib import os import random import re import shutil import string import sys import tempfile import time import types import uuid import prettytable try: import pudb except ImportError: import pdb as pudb trace = pudb.set_...
[ "ed@leafe.com" ]
ed@leafe.com
2ac73ea423e72602d6e5b0804063698da04b7145
0478abafc05f1dd55ddf6054d95fef73e9fa03e9
/quati/dataset/__init__.py
382e160b452d9958c52306fae72b70b7ba504596
[ "MIT" ]
permissive
deep-spin/quati
89bce0868b36b0d7902659507b72acfbd01ada98
62a6769475090182fe2990b2864d66f8e2081a32
refs/heads/master
2023-03-12T09:22:31.520259
2021-03-02T15:13:22
2021-03-02T15:13:22
330,678,540
2
1
null
null
null
null
UTF-8
Python
false
false
1,380
py
from quati.dataset.corpora import available_corpora from quati.dataset.corpora.text import TextCorpus from quati.dataset.corpora.text_pair import TextPairCorpus from quati.dataset.dataset import DocDataset, EntailmentDataset, POSDataset available_datasets = { 'doc': DocDataset, 'entailment': EntailmentDataset,...
[ "marcosvtreviso@gmail.com" ]
marcosvtreviso@gmail.com
9271ddbec4c428e48a7fdb8712541999b2a88e0b
d153c170a4839deb4d8606009be15198418aea69
/백준문제/week2/03.13/20_ex18258.py
3db2eb8e29afaf70c2cb87929c9033537b2a8d32
[]
no_license
rlatmd0829/algorithm
669085907e2243b4c3a663feab87cd83ff50cc49
116bebf16afa6e20d9e968aa312b99b8eea447a5
refs/heads/master
2023-08-21T02:27:36.944919
2021-09-26T09:39:52
2021-09-26T09:39:52
345,480,784
0
0
null
null
null
null
UTF-8
Python
false
false
774
py
import sys from collections import deque N = int(input()) queue = deque() def push(X): queue.append(X) def pop(): if not queue: return -1 return queue.popleft() def size(): return len(queue) def empty(): if queue: return 0 else: return 1 def front(): if not queu...
[ "rlatmd0829@naver.com" ]
rlatmd0829@naver.com
f2b5b652ce68aa1a4995c2e17f08c591db324878
43c88a1881c3578f1cb383078e677ee05c70584d
/0x07-Session_authentication/api/v1/auth/session_auth.py
857067a2519f20d64e5651ade221a4ad4dc5ece7
[]
no_license
yacinekedidi/holbertonschool-web_back_end
9f8ce5f3fd3bdb2d73744eeb8f7a66a549f5a233
55d35840c34ddd784dd37b69066a12577ff09247
refs/heads/main
2023-08-13T23:52:13.542242
2021-10-19T04:27:29
2021-10-19T04:27:29
387,535,013
0
0
null
null
null
null
UTF-8
Python
false
false
1,849
py
#!/usr/bin/env python3 """[Module]""" from flask.globals import session from api.v1.auth.auth import Auth import uuid from models.user import User class SessionAuth(Auth): """[summary] Args: Auth ([type]): [description] """ user_id_by_session_id = {} def create_session(self, user_id: str...
[ "kedidiyacine@gmail.com" ]
kedidiyacine@gmail.com
ee15e544360c08bb395b964991512567ced31291
a1b8170ffbaf3e94b16d496b2d9ae21b56c8329c
/samples/standard_library_27_13/Lib/urllib.py
c3c8ef4b60048410c207d209be64d364a1771c43
[ "MIT" ]
permissive
DaveKaretnyk/parsing-utils2
e8736d2d7946acb820b755c80ee3e6217d47c376
40085bbd399fa605f2f2a4708d385a64ffc907de
refs/heads/master
2021-09-03T06:23:14.917339
2018-01-06T11:30:21
2018-01-06T11:30:21
115,658,112
0
0
MIT
2018-01-05T20:15:48
2017-12-28T20:43:09
Python
UTF-8
Python
false
false
59,998
py
"""Open an arbitrary URL. See the following document for more info on URLs: "Names and Addresses, URIs, URLs, URNs, URCs", at http://www.w3.org/pub/WWW/Addressing/Overview.html See also the HTTP spec (from which the error codes are derived): "HTTP - Hypertext Transfer Protocol", at http://www.w3.org/pub/WWW/Protocols...
[ "Dave.Karetnyk@gmail.com" ]
Dave.Karetnyk@gmail.com
30299ca34c806db60cbae44f30fdde257c3c801e
ae8cdc83b2ca2b00c3ffb3c7df7c78d519ea10f6
/main_task.py
31920c0f5a6730fe42ffc544d814deaa7a83d16d
[ "MIT" ]
permissive
maratovision/first_git_project
f25711f6373cbf0984b400875cf9140c128137d2
72a130db3243e27c5012ef68f16e12b863dbef65
refs/heads/main
2023-02-12T14:52:00.570534
2021-01-10T12:53:58
2021-01-10T12:53:58
316,516,084
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
name = "Maksat" if len(name) < 100: list2 = [] for alpha in name: if alpha not in list2: list2.append(alpha) if len(list2) % 2 == 0: print("on") else: print("ona")
[ "maratovision@gmail.com" ]
maratovision@gmail.com
62898a2235d76ae4e29976c4a29c310a4daabc4e
78d35bb7876a3460d4398e1cb3554b06e36c720a
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_vpn_server_configurations_associated_with_virtual_wan_operations.py
401d5dc13ee4e7ec15ee9775687bd5416240685c
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
catchsrinivas/azure-sdk-for-python
e35f59b60318a31b3c940a7a3a07b61b28118aa5
596227a7738a5342274486e30489239d539b11d1
refs/heads/main
2023-08-27T09:08:07.986249
2021-11-11T11:13:35
2021-11-11T11:13:35
427,045,896
0
0
MIT
2021-11-11T15:14:31
2021-11-11T15:14:31
null
UTF-8
Python
false
false
8,196
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" ]
catchsrinivas.noreply@github.com
719829d783591726a8c3f79d0937f409af8f1947
6444622ad4a150993955a0c8fe260bae1af7f8ce
/account/serializers.py
ea9073820d439c709fa97137476400bf3dd3281a
[]
no_license
jeremyrich/Lesson_RestAPI_jeremy
ca965ef017c53f919c0bf97a4a23841818e246f9
a44263e45b1cc1ba812059f6984c0f5be25cd234
refs/heads/master
2020-04-25T23:13:47.237188
2019-03-22T09:26:58
2019-03-22T09:26:58
173,138,073
0
0
null
2019-03-22T09:26:59
2019-02-28T15:34:19
Python
UTF-8
Python
false
false
998
py
from rest_framework import serializers from .models import Account, Students # Primary serializers class AccountSerializer(serializers.ModelSerializer): """ Serializer for account model """ class Meta: model = Account fields = ("account_id", "name", "email", "password", "address") class St...
[ "jeremyrich@free.fr" ]
jeremyrich@free.fr
6ced1f283223ca0b2d436cfabf4e859cea789d65
942583ae8089c5d35c2344ad1d7ae33012349e98
/lecture-07/subseq.py
34f4ad6c395a48d62016ea32db2de231ac426d0d
[]
no_license
ANAMIKA1410/DSA-Live-Python-March-2021
1d6b836fcf3828fc1f2e800e793a7e3b71c1b4b4
3ffe49060b773a51fbbc0df97df8d1bc29a93afe
refs/heads/main
2023-06-03T04:11:24.648040
2021-06-18T06:15:37
2021-06-18T06:15:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
def subseq(unproc, proc=""): if(unproc == ""): print(proc) return ch = unproc[0] subseq(unproc[1:], proc+ch) subseq(unproc[1:], proc) subseq("abc")
[ "anujgargcse@gmail.com" ]
anujgargcse@gmail.com
892cd1efcc5e086266352efd4aed6cd2f7a4ea68
72b2259889ba633f0d3ffbe08f1608c8f4e00413
/python/v1/list_accounts.py
5482568f200db625a39c6371e286c2072cc4fb2b
[ "Apache-2.0" ]
permissive
isabella232/googleads-admob-api-samples
88d4db3de1b7ef8342ee774a51a76ec4c2dedec4
14845d691ef1c02f216bc98f0de27a5bb0c229e6
refs/heads/master
2022-12-27T00:04:07.577185
2020-09-23T21:43:42
2020-10-01T15:44:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,297
py
# Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
[ "noreply@github.com" ]
isabella232.noreply@github.com
dabf2f975de13b6f5e50628483a0f52fa50b5a8e
2e7a5f041b8473811fee4865e58bab7b7cc85cf7
/tests/urls/custom_user_activation.py
65d94b036022f16276b4ad45c147c6b82a59d5ea
[ "BSD-3-Clause" ]
permissive
ubernostrum/django-registration
c778f5f205a064548643b740525a472cc32f774f
7a1d8609b7c262f0321bbb39a6f901b9a6953cce
refs/heads/trunk
2023-08-29T13:24:29.668628
2023-07-11T06:00:10
2023-07-11T06:00:10
12,749,575
968
337
BSD-3-Clause
2023-06-12T06:59:25
2013-09-11T06:47:29
Python
UTF-8
Python
false
false
1,554
py
""" URLs used to test the activation workflow with a custom user model. You should not use these in any sort of real environment. """ from django.urls import path from django.views.generic.base import TemplateView from django_registration.backends.activation import views from django_registration.forms import Regist...
[ "james@b-list.org" ]
james@b-list.org
dda1ad99fd6085a54c6daa0be8e079140c4b93d6
61b78d739de772321e00c341cf5d3806ecdb6bb1
/game/migrations/0006_auto_20150809_1724.py
2c225ac11ab4680c52243b075cdb24ad1b21fe05
[]
no_license
Neamar/samurai
e59944d9191e00d0ac7cfddde4231a655bec387c
4c34c1bf84009add310c898a6e66912a71c0cb4f
refs/heads/master
2021-01-10T20:30:24.675901
2015-08-31T08:20:00
2015-08-31T08:20:00
19,860,802
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('game', '0005_auto_20150809_1710'), ] operations = [ migrations.RemoveField( model_name='perso', name...
[ "neamar@neamar.fr" ]
neamar@neamar.fr
8b78b0f81e9b7804f8474d7ab444e5b33afdce44
a885cd8de966988b708f2c13ac3a1387606bf5ea
/alphatwirl/loop/EventLoopRunner.py
83c8d5c575248412023362aa6ae2581ad75e7e0b
[ "BSD-3-Clause" ]
permissive
shane-breeze/AlphaTwirl
e8e95c91d8bfef02ef3cc864773f8d23ffb2eaa0
f68296b0ef97b14c5e1b364e9a8b5ff9629e47b5
refs/heads/v0.9.x
2021-01-20T16:35:00.919681
2017-12-04T08:06:59
2017-12-04T08:06:59
82,783,255
0
0
BSD-3-Clause
2018-10-08T14:20:08
2017-02-22T09:03:55
Python
UTF-8
Python
false
false
997
py
# Tai Sakuma <tai.sakuma@cern.ch> from ..progressbar import NullProgressMonitor ##__________________________________________________________________|| class EventLoopRunner(object): """This class runs instances of `EventLoop` and keeps the results. It will return the results when `end()` is called. """ ...
[ "tai.sakuma@gmail.com" ]
tai.sakuma@gmail.com
5507de23435656061ac4651727832e90a9a1c243
b0e7597e95bb8067dfd9e32cdbc8a0aee23ac75f
/sentiment_analysis/preprocessing.py
dca5032d88de970643310416094b7c788e30c040
[]
no_license
famaf/PLN_2017
f94de63013850ea5ab43e99e154123ef6856cb5f
540cbea09b8e0d609e423c2d8dad192cd3a8e00c
refs/heads/master
2021-09-13T23:51:03.649372
2018-05-06T03:42:04
2018-05-06T03:42:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,302
py
import re import csv import unicodedata from nltk.corpus import stopwords from nltk.stem import SnowballStemmer from nltk.tokenize import TweetTokenizer # Emoticones Positivos y Negativos from sentiment_analysis.emoticons import positive_emoticons, negative_emoticons class PreprocessingTweet(): def __init__(se...
[ "ferreyramario7@gmail.com" ]
ferreyramario7@gmail.com
6ba4f6349e0545dc5c4c120bf18d933016b4ff72
bc9639ffec357279882e67055b4f49fd067c7753
/lt_sdk/graph/transform_graph/node_transformers/tflite_transforms/tflite_quantize_transform.py
e373fcd1c03b2210d2c6ca6924015c7d6ff0b88e
[]
no_license
HermanYang/SDKDocs
855a9d97556bf30b9774e233c2d0991a256ffaa3
a169a7ce612680561093b53afee16fa87d84c045
refs/heads/master
2023-01-03T16:47:48.173248
2020-10-28T21:36:17
2020-10-28T21:36:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,071
py
from lt_sdk.graph.transform_graph.node_transformers.generic_transforms import ( quantize_transform, ) class TFLiteQuantizeTransform(quantize_transform.QuantizeTransform): def transform(self, quantize_node, light_graph): # Get the original sub_node sub_node = quantize_node.original #...
[ "buildagent_software@mach-3.opu.tv" ]
buildagent_software@mach-3.opu.tv
3ec31ed7bd4de9ed930ffa0e89c275edf5153d91
efafd191ccbd2dcbd6d816e54f78dec445bc6c07
/test/lex/oed/test_oed.py
cb85c69b6da687e7421cca4be4ca253c5f525e37
[]
no_license
necrop/pylib3.2
22f8d6be98112281b9ca1d5897207896de600406
514cf329448a810afb03d52d41a7e19a6bf583ff
refs/heads/master
2021-03-12T21:49:10.804062
2014-08-28T07:09:45
2014-08-28T07:09:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,187
py
import os import unittest from lex.entryiterator import EntryIterator FIXTURE_DIR = os.path.dirname(os.path.abspath(__file__)) class TestOed(unittest.TestCase): """ Unit tests for OED libraries """ entries = {} def setUp(self): iterator = EntryIterator(path=FIXTURE_DIR, ...
[ "jmccracken@fastmail.fm" ]
jmccracken@fastmail.fm
64f542380fdfd90564bc45adcb5195b1e754a3d7
209155f8a32bef23c9b02f5ec26a1f5935d319c0
/tests/test_handler_tb_image.py
3be622e735790f7d8181ff9e44d6d2358fce22c5
[ "Apache-2.0" ]
permissive
wentaozhu/MONAI
ec154ca360714df8fcd55aa63506465c7949e1ff
55025e07144b113f156b232b196c3ef1a765e02b
refs/heads/master
2022-11-09T10:28:50.672985
2020-06-25T23:09:26
2020-06-25T23:09:26
274,224,027
2
1
Apache-2.0
2020-06-22T19:22:59
2020-06-22T19:22:58
null
UTF-8
Python
false
false
1,801
py
# Copyright 2020 MONAI Consortium # 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, s...
[ "noreply@github.com" ]
wentaozhu.noreply@github.com
b4368ebd4f6d8aac9403f67a5f4106b31ed96d65
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/kws_streaming/layers/magnitude_rdft.py
a8b6018a7bc9825be98849d7e835cc91433c6c51
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
4,473
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # 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...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
84aeb734652df5f807c3b3bfba423f369031da76
d5eb2fe5d49b581562ae2bc660d08ca80a03d331
/PythonSandbox/src/leetcode/lc20_valid_parenthesis.py
fb99af8c11058b0097cb9fa5f4c973be3fd92714
[]
no_license
mcxu/code-sandbox
fd5aa2e593057901d281a0e74db8957777b06cf3
a785231582bda8578f79982e2dcddd2f2ab559b4
refs/heads/master
2023-07-10T02:07:24.180947
2023-07-08T03:31:48
2023-07-08T03:31:48
130,493,607
4
2
null
2023-01-15T22:53:29
2018-04-21T16:49:40
Python
UTF-8
Python
false
false
562
py
''' https://leetcode.com/problems/valid-parentheses/ ''' class Solution: def isValid(self, s: str) -> bool: stack = [] for _,c in enumerate(s): if not stack: stack.append(c) continue if stack[-1]=="(" and c==")": ...
[ "michaelxu79@gmail.com" ]
michaelxu79@gmail.com
3a0871aa7681baae95313e9fb642c5f7869f41b7
51f887286aa3bd2c3dbe4c616ad306ce08976441
/pybind/nos/v7_2_0/rbridge_id/telnet/server/telnet_vrf_cont/__init__.py
abd55d47d2149d13b3124626d32b2a87966dd399
[ "Apache-2.0" ]
permissive
b2220333/pybind
a8c06460fd66a97a78c243bf144488eb88d7732a
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
refs/heads/master
2020-03-18T09:09:29.574226
2018-04-03T20:09:50
2018-04-03T20:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,370
py
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
[ "badaniya@brocade.com" ]
badaniya@brocade.com
49ea356c0553b92734a9f900432e57641e4cfbca
7548c8efccb43b1d8daec719bd7d8ad4a4d03630
/Count Substrings With Only One Letter/O(1) space.py
dd3d84c45f0ec5a9d25a3b81857fb1c8197ba308
[]
no_license
arw2019/AlgorithmsDataStructures
fdb2d462ded327857d72245721d3c9677ba1617b
9164c21ab011c90944f844e3c359093ce6180223
refs/heads/master
2023-02-17T11:50:07.418705
2021-01-19T19:37:17
2021-01-19T19:37:17
204,222,584
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
class Solution: def countLetters(self, S: str) -> int: n = len(S) dp = [1] * n tot, prev = 1, 1 for i in range(n-2, -1, -1): if S[i]==S[i+1]: prev +=1 else: prev=1 tot += prev return tot
[ "noreply@github.com" ]
arw2019.noreply@github.com
1547a4de4bc9211c79d6ddc26c5f95a345f743e1
f3b233e5053e28fa95c549017bd75a30456eb50c
/bace_input/L7G/7G-3I_wat_20Abox/set_5.py
e91f03a922c7940130e7b19ecd4e3ccfbbce0a58
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
import os dir = '/mnt/scratch/songlin3/run/bace/L7G/wat_20Abox/ti_one-step/7G_3I/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_5.in' temp_pbs = filesdir + 'temp_5.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in lambd...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
25489df7f5b82fb3069fabbd4f4e35ffada6c476
08556089850dc18f0dfab7afb877cab6dbc67caf
/exec/summariseFeatureStats.py
8050e922459a9dc7f9a86f542b0f044737d837d6
[]
no_license
kundajelab/av_scripts
303342ce6aa9ecd5799351008477af103657dce9
dc5d94c15789b728b2620fe308e104ea52c1952e
refs/heads/master
2021-05-22T11:39:28.795020
2020-09-05T20:08:32
2020-09-05T20:08:32
24,591,991
4
2
null
2016-08-18T22:35:19
2014-09-29T11:18:50
Python
UTF-8
Python
false
false
32
py
../util/summariseFeatureStats.py
[ "avanti.shrikumar@gmail.com" ]
avanti.shrikumar@gmail.com
3077a925ed4d30f7f23ca85ebd9926ce2c5b4530
40392ca261eccaa02029f346eb95d518a6e11dbf
/tests/components/bluetooth/test_base_scanner.py
b0fc9cfa40e18311ed4260206fd8115ed0ce9079
[ "Apache-2.0" ]
permissive
sh00t2kill/home-assistant
d18ab78414e79aced57bc76b63ec1c9b338ab53c
80bf632e2d713add17ab00a72510039de7d9bc78
refs/heads/dev
2023-02-20T22:05:30.496454
2023-02-09T01:15:29
2023-02-09T01:15:29
231,849,824
0
0
Apache-2.0
2023-02-09T05:40:45
2020-01-05T00:57:52
null
UTF-8
Python
false
false
18,197
py
"""Tests for the Bluetooth base scanner models.""" from __future__ import annotations from datetime import timedelta import time from unittest.mock import patch from bleak.backends.device import BLEDevice from bleak.backends.scanner import AdvertisementData from homeassistant.components import bluetooth from homeass...
[ "noreply@github.com" ]
sh00t2kill.noreply@github.com
3d896b6e7029a2b5d3adc3c00e730e64d4f6a2c0
27a792d8bfd43c6afb7f9b2660d7ba9019e3e12e
/backend/basic_27252/urls.py
bc0c6274d9fcd2017ee41cb534e668ad0a73aa54
[]
no_license
crowdbotics-apps/basic-27252
9a535983ec46a8500ff2efb6ab2e331bfa7802aa
e5158dea07a85e4357d1cc79c36bcfa3648ad62e
refs/heads/master
2023-04-29T01:44:42.864946
2021-05-22T16:27:39
2021-05-22T16:27:39
369,855,509
0
0
null
null
null
null
UTF-8
Python
false
false
2,318
py
"""basic_27252 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
3714ded61f5d949019304a4b2def4ab8b28eaa1e
11a246743073e9d2cb550f9144f59b95afebf195
/codeforces/194/a.py
fadb780cab4dfe242450f4ad6ad746cb246a60b9
[]
no_license
ankitpriyarup/online-judge
b5b779c26439369cedc05c045af5511cbc3c980f
8a00ec141142c129bfa13a68dbf704091eae9588
refs/heads/master
2020-09-05T02:46:56.377213
2019-10-27T20:12:25
2019-10-27T20:12:25
219,959,932
0
1
null
2019-11-06T09:30:58
2019-11-06T09:30:57
null
UTF-8
Python
false
false
64
py
n, k = map(int, input().split()) s = 3 * n print(max(0, s - k))
[ "arnavsastry@gmail.com" ]
arnavsastry@gmail.com
f39d02b98037f29723a8e43b8fcbd1c7afa57779
d86e9d59784097a7262fa9337585a36bd58a6d29
/cvxbenchmarks/lib/data/epsilon/epopt/compiler/transforms/prox.py
bb80b7d76951911c99afd6461b203aff0a02bd95
[]
no_license
nishi951/cvxbenchmarks
2ae36e75c42c8bd35fafac98bad5d9d88168bd68
932141d8e4e929860011bf25c41e941e2f8fbd76
refs/heads/master
2021-01-11T07:23:32.260811
2018-09-15T22:23:14
2018-09-15T22:23:14
62,177,196
1
0
null
null
null
null
UTF-8
Python
false
false
20,554
py
"""Transform a problem to prox-affine form. TODO(mwytock): Clean up the interaction between expression matching and args extraction. """ import logging from epopt import expression from epopt import tree_format from epopt.compiler.transforms import conic from epopt.compiler.transforms import linear from epopt.compil...
[ "nishimuramarky@yahoo.com" ]
nishimuramarky@yahoo.com
27b1a24d329595449758bc42ad2a3ec854968b8e
0f30dbffc77960edf69fa18c78c6d1a1658bb3dc
/imate/device/_timer.py
bdc1cb69b8188d1d32ea0ac1c1ab52405bf1de11
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ameli/imate
859c5ed35540cc44058cd908ce44485487acd041
de867f131a4cda7d60a68bf0558e896fae89d776
refs/heads/main
2023-08-29T07:03:53.512434
2023-08-15T23:39:30
2023-08-15T23:39:30
308,965,310
5
1
null
null
null
null
UTF-8
Python
false
false
12,056
py
# SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu> # SPDX-License-Identifier: BSD-3-Clause # SPDX-FileType: SOURCE # # This program is free software: you can redistribute it and/or modify it # under the terms of the license found in the LICENSE.txt file in the root # directory of this source ...
[ "sia.sunrise@gmail.com" ]
sia.sunrise@gmail.com
224b2f23461fd3fdd83100d597e69431ea155622
a386e6fd23ef005aaf928c29827b7de3a62bae7b
/setup.py
05eca57111d7d91dee4cba4de6c0f5cc0ef440f9
[ "MIT" ]
permissive
Peter-32/employee_network_plot
487f9bdc860c8ec8b29584ad119e7c238ec8cc57
f652d9adfa4ac80d65ef5c1cabfe5f0c4ec035a4
refs/heads/master
2020-12-13T16:19:45.640796
2020-01-17T04:20:10
2020-01-17T04:20:10
234,468,502
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Employee network plot', author='Peter Myers', license='MIT', )
[ "peter@impactradius.com" ]
peter@impactradius.com
7d0f73656ed64da391197b3252ccc2100ae203b4
76d36768ce2ea1a13a92da88cf7e62498993a27f
/webapp/utils/get_raio.py
9244c22d637cc0d1e6a2f87368c782410c6c26c7
[ "ISC" ]
permissive
prefeiturasp/SME-VagasNaCreche-API
e4d30365eaa6a7b5fa89e51d7d1817ce0a541783
20ae8862375124c7459fe6ff2d2d33ed34d136fb
refs/heads/dev
2023-07-09T08:49:01.300494
2021-08-23T20:08:35
2021-08-23T20:08:35
217,086,843
1
1
ISC
2023-06-21T21:10:25
2019-10-23T15:08:05
Python
UTF-8
Python
false
false
71
py
def get_raio(cd_serie): return 900 if cd_serie in [1, 4] else 1200
[ "giusepper11@gmail.com" ]
giusepper11@gmail.com
53a9f4632b7e748fc7adf555486e5cd02d3d5420
02c6b39399c1cfb434ad718c90bed3d8e6310ed0
/environment/rocket_lander_env.py
bb3c657253ecf5eaff9b92b395b83851f583c525
[]
no_license
phate09/SafeDRL
09b8924fa91aa43cf543ea5727ebe4cc8e13c0a5
3d4278eaaabb046a90fc1cebd1b5862d63dc5894
refs/heads/master
2022-09-17T05:12:28.529329
2022-08-29T08:21:32
2022-08-29T08:21:32
204,663,981
8
3
null
2021-12-02T14:13:46
2019-08-27T09:07:04
Python
UTF-8
Python
false
false
21,759
py
import Box2D import gym import numpy as np from Box2D.b2 import ( fixtureDef, polygonShape, revoluteJointDef, distanceJointDef, contactListener, ) from gym import spaces from gym.envs.classic_control import rendering from gym.utils import seeding """ The objective of this environment is to land a r...
[ "phate09@hotmail.it" ]
phate09@hotmail.it
94ed5a74d430f7e1bb280a996f701cd67d93ecbe
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/easy/9_8.py
e209fcdca4baac3008b147dadfee44e37b085727
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
2,650
py
Perspective Transformation – Python OpenCV In **Perspective Transformation,** , we can change the perspective of a given image or video for getting better insights about the required information. In Perspective Transformation, we need provide the points on the image from which want to gather information by ch...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
b5e601b46f8c9f22215fdd7e14203d688282a372
a3cc7286d4a319cb76f3a44a593c4a18e5ddc104
/lib/surface/sql/instances/delete.py
1ae84a018c73368dbf3da81606ec474547ac0b8a
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
jordanistan/Google-Cloud-SDK
f2c6bb7abc2f33b9dfaec5de792aa1be91154099
42b9d7914c36a30d1e4b84ae2925df7edeca9962
refs/heads/master
2023-09-01T01:24:53.495537
2023-08-22T01:12:23
2023-08-22T01:12:23
127,072,491
0
1
NOASSERTION
2023-08-22T01:12:24
2018-03-28T02:31:19
Python
UTF-8
Python
false
false
3,472
py
# Copyright 2013 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...
[ "jordan.robison@gmail.com" ]
jordan.robison@gmail.com
29046acea6b039e9aeeff6c95f633a11de7898ac
03624c52163fad3dc9db8486b3900c03a56f303f
/django_news/django_news/apps/news/migrations/0002_auto_20181003_1638.py
1b2bfecb996c5abd5155b245c6d67ac641458a09
[]
no_license
siyang601165858/xjzx_django
1998ffc18ad189c8b4bc163925544da75d08152b
b256032788eb97e00a0961d595970bc9b0fb5820
refs/heads/master
2020-09-29T15:00:20.928052
2019-12-10T07:50:42
2019-12-10T07:50:42
227,058,712
0
0
null
null
null
null
UTF-8
Python
false
false
2,110
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-10-03 08:38 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrati...
[ "xwp_fullstack@163.com" ]
xwp_fullstack@163.com
979b4096548255ab54342f372bceda62bbac89d0
dbf34d933a288e6ebca568eaebaa53e5b98ba7c1
/tests/ftapp.py
8b59bb5ff7c47f9e4587b6fb128b974864bf12b3
[]
no_license
rebeccaframework/rebecca.index
dc68dfa2c1b77fc273a12b3f934074722fb8300c
ab452c9b375227e84fab42496633dc026421a283
refs/heads/master
2021-01-10T21:11:53.567186
2013-05-05T18:53:58
2013-05-05T18:53:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,887
py
# -*- coding:utf-8 -*- from pyramid.config import Configurator from pyramid_zodbconn import get_connection from persistent import Persistent from persistent.mapping import PersistentMapping from repoze.catalog.catalog import Catalog from repoze.catalog.indexes.text import CatalogTextIndex from repoze.catalog.document ...
[ "aodagx@gmail.com" ]
aodagx@gmail.com
3bfd19e4819fd8f3bc36efc24eaa02e557f79017
1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc
/venv/lib/python2.7/site-packages/ansible/modules/cloud/scaleway/scaleway_snapshot_facts.py
81449ad94cd0eebe3d31e8b4c71ae28511c57e42
[ "MIT" ]
permissive
otus-devops-2019-02/devopscourses_infra
1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c
e42e5deafce395af869084ede245fc6cff6d0b2c
refs/heads/master
2020-04-29T02:41:49.985889
2019-05-21T06:35:19
2019-05-21T06:35:19
175,780,457
0
1
MIT
2019-05-21T06:35:20
2019-03-15T08:35:54
HCL
UTF-8
Python
false
false
2,903
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2018, Yanis Guenane <yanis+ansible@guenane.org> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type ANSIBLE_METADATA = {'metadata_version':...
[ "skydevapp@gmail.com" ]
skydevapp@gmail.com
5cd2b294373b9d574aa094e8156485d744ac3be1
11e4bd1b29a66b97df9b3b32b2827eac88a24fd8
/pysrc/4.py
25ab79fc2a079114c1e7d60f389b5fd1546f26ca
[]
no_license
linkinpark213/leetcode-practice
4db17462b67e7a1a34184aada041cb3854f78385
13379e6fdd9299c606889fefa0a38426ef4fa5e7
refs/heads/master
2021-07-08T16:16:28.428003
2020-09-16T14:30:51
2020-09-16T14:30:51
185,179,184
0
0
null
null
null
null
UTF-8
Python
false
false
1,382
py
from typing import List class Solution: def findMedianSortedArrays(self, nums1: List[int], nums2: List[int]) -> float: if len(nums1) > len(nums2): temp = nums1 nums1 = nums2 nums2 = temp m, n = len(nums1), len(nums2) iMin, iMax = 0, m while iMin...
[ "linkinpark213@outlook.com" ]
linkinpark213@outlook.com
ae2524ae6dbd783031150fb49d3f941e2cf75c50
55540f3e86f1d5d86ef6b5d295a63518e274efe3
/toolchain/riscv/MSYS/python/Tools/scripts/fixcid.py
6c3c7150200fe1002932f23ec64450db3c0ad7a7
[ "bzip2-1.0.6", "LicenseRef-scancode-proprietary-license", "OpenSSL", "Python-2.0", "LicenseRef-scancode-newlib-historical", "TCL", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
bouffalolab/bl_iot_sdk
bc5eaf036b70f8c65dd389439062b169f8d09daa
b90664de0bd4c1897a9f1f5d9e360a9631d38b34
refs/heads/master
2023-08-31T03:38:03.369853
2023-08-16T08:50:33
2023-08-18T09:13:27
307,347,250
244
101
Apache-2.0
2023-08-28T06:29:02
2020-10-26T11:16:30
C
UTF-8
Python
false
false
10,367
py
#! /usr/bin/env python3 # Perform massive identifier substitution on C source files. # This actually tokenizes the files (to some extent) so it can # avoid making substitutions inside strings or comments. # Inside strings, substitutions are never made; inside comments, # it is a user option (off by default). # ...
[ "jczhang@bouffalolab.com" ]
jczhang@bouffalolab.com
66fc89da20add71b1590c2655ce8d87ba801fd98
b72985ae7ab123f855e024814e70173fde84b43e
/DAYS/Day_25/flask_training/venv/bin/flask
1976d232b00459500f33868e301a48d281a5664b
[]
no_license
raziel5746/BOOTCAMP
522da4526ded4225ba95c60146fd13fb5129c519
22088ab622b34ad8ae98e0fe3e5edc592a75ea0c
refs/heads/master
2021-09-23T20:32:01.422171
2021-03-30T20:51:05
2021-03-30T20:51:05
218,781,276
0
0
null
2021-09-22T18:54:00
2019-10-31T14:10:28
Python
UTF-8
Python
false
false
266
#!/home/raziel/Documents/BOOTCAMP/DAYS/Day_25/flask_training/venv/bin/python # -*- coding: utf-8 -*- import re import sys from flask.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "raziel5746@gmail.com" ]
raziel5746@gmail.com
9066c48335f811518d03cd11952e19c877d844c8
04ad36951841e69163a167ead82a6a44fa2bb026
/utils/testcase_data_utils.py
9e900865720b966a5823a35fc1ea0ce07d84dd5c
[]
no_license
leoisgood/P3P4_API_Test_Framework-1
938eeec0b52bab94cb408884a1b187aa4c6eebf0
f3f32b0611ac64ea3cfdb0ef239aa477c3f7dd0d
refs/heads/master
2023-01-20T15:45:53.791661
2020-11-26T00:13:56
2020-11-26T00:13:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,602
py
#!/usr/bin/env python # encoding: utf-8 # @author: liusir # @file: testcase_data_utils.py # @time: 2020/11/15 4:48 下午 import os from utils.excel_utils import ExcelUtils excel_file_path = os.path.join( os.path.dirname(__file__),'..','data','testcase_infos.xlsx') excel_sheet_name = 'Sheet1' class TestcaseDataUtils: ...
[ "329999897@qq.com" ]
329999897@qq.com
dfe09205fb317d6a57d5b8939be7ba9d231dfce8
e413e4020617f2645f7f3ed89ec698183c17e919
/Tracing/MDL/XiaoRunMDL.py
cf2a3ae401a462928e714320aebb1cf7ef76cf48
[]
no_license
YanXuHappygela/Farsight-latest
5c349421b75262f89352cc05093c04d3d6dfb9b0
021b1766dc69138dcd64a5f834fdb558bc558a27
refs/heads/master
2020-04-24T13:28:25.601628
2014-09-30T18:51:29
2014-09-30T18:51:29
24,650,739
1
0
null
null
null
null
UTF-8
Python
false
false
5,526
py
#!/usr/bin/env python import os.path import re import subprocess import sys import time parameterValues = {} #since we're going to be making use of relative paths we need to be sure #that we're running from the directory that contains this script scriptPath = os.path.dirname(sys.argv[0]) if scriptPath != "": os.ch...
[ "xy198908@gmail.com" ]
xy198908@gmail.com
6b759881204756a50a6da5988bd0cf38e1457906
e23a4f57ce5474d468258e5e63b9e23fb6011188
/110_concurrency_parallelism/_examples/Python Parallel Programming Solutions/Section3/naming_a_process.py
ebddd1ddd72aaed73e890cfbe36880b3164af1fa
[]
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
659
py
#Naming a Process – Section 3: Process Based Parallelism import multiprocessing import time def foo(): name = multiprocessing.current_process().name print ("Starting %s \n" %name) time.sleep(3) print ("Exiting %s \n" %name) if __name__ == '__main__': process_with_name = \ mul...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
ec9705aa541b81c817078079ff8457ad69c6fac3
1811d37ed6474ab7eaeafff3c82d3bb7c0466e3d
/parts/zodiac/pyramid/config/routes.py
df7de86d0be51f57c2f27bef7df3186e82ab3bc3
[]
no_license
bernatcortina/zodiac
ed384fe96f6739d841a3a777d10bad4b33fd0e78
aa0ecb2c386fc5b54ff60ba94e0a1bc5a7493f17
refs/heads/master
2021-01-18T14:02:44.978553
2014-02-07T17:33:27
2014-02-07T17:33:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
79
py
/Users/Bernat/GitHub/zodiac/eggs/pyramid-1.4-py2.7.egg/pyramid/config/routes.py
[ "bernatcortina@gmail.com" ]
bernatcortina@gmail.com
2f765c8026d16c4be0349a4cd86d931d4f7f3789
12b34dcd389dec2095ef454d9dc89976ff7c7215
/code/plot_PPeaks-w120.py
73a94559fa1e3259c90c22b8cfc596d65f7ea92b
[]
no_license
mariosky/PPSN2014
ce0d64a3f61b36b467acab33297481a7e590dcf0
a2ce8971951e2af311146d74cb043e68ff90cc67
refs/heads/master
2020-05-30T12:03:01.086997
2014-11-23T17:01:41
2014-11-23T17:01:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,402
py
from pylab import * import itertools, operator import os homogeneous_file = "data/PPeaks-w120-108-p1000.dat" homogeneous = open(homogeneous_file) fitness = [ line.split(",") for line in homogeneous if len(line.split(",")) > 3 ] best_runs = [ (int(list[-1].split(':')[-1]), list[0], list[1], float(list[3]), list[1],l...
[ "mariosky@gmail.com" ]
mariosky@gmail.com