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
124d53870ab1f32476f7396ada3d0a47298746de
162eed4191aef4431f94a0db1ad4185b6daa6f67
/supervised_learning/0x02-tensorflow/5-create_train_op.py
05322a25cd88afe944df96ecf16ba5df91cd92c0
[]
no_license
giovannyortegon/holbertonschool-machine_learning
d6897bfb492f9d266302930927416637be3c172d
8cd5e0f837a5c0facbf73647dcc9c6a3b1b1b9e0
refs/heads/master
2022-12-31T15:34:20.489690
2020-10-24T03:37:01
2020-10-24T03:37:01
279,656,017
1
0
null
null
null
null
UTF-8
Python
false
false
501
py
#!/usr/bin/env python3 """ train operation """ import tensorflow as tf def create_train_op(loss, alpha): """ create_train_op - creates the training operation. Args: loss is the loss of the network’s prediction alpha is the learning rate Returns: an operation that trains the netwo...
[ "ortegon.giovanny@hotmail.com" ]
ortegon.giovanny@hotmail.com
d1c996c98e38caf3f89a4b1b7f101c7d1770330d
5bd3122d230471b048429f5e9c49a0b39c8a54fc
/Atcoder_contests/ABC/165A.py
98d42dc081acdb8f08d06c61550ccddab9dc004a
[]
no_license
nao1412/Competitive_Programing_Codes
e230e2fa85027e41c5ee062083801bb299effe9b
98c29b5ba75e75502cf27fcf365a7aedcd6c273c
refs/heads/main
2023-06-05T18:45:59.733301
2021-06-23T15:02:25
2021-06-23T15:02:25
374,061,897
1
0
null
null
null
null
UTF-8
Python
false
false
234
py
k = int(input()) ans = 'OK' a, b = map(int, input().split()) if b-a+1 >= k: ans = 'OK' else: for i in range(a, b+1): if i%k == 0: ans = 'OK' break else: ans = 'NG' print(ans)
[ "naoya_greeeen_0720@icloud.com" ]
naoya_greeeen_0720@icloud.com
3d3bdc439906914e4d1a544305fefc7b801e63fd
6d80c2e28c39b1861d909c7616ce8455f2b28744
/character_stream.py
415517a5c4ef622e0d85ae20ea615fa6c5f81221
[]
no_license
o11c/20131022-parser
ef1778c8469fe397524c0bb9e72fa284cde4af25
7da2dfa3a92dcdf32bfa11bb67c6569d3e1e1767
refs/heads/master
2020-02-26T13:24:06.954176
2013-10-22T22:34:40
2013-10-22T22:34:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
class EOFError(Exception): pass class CharacterStream(object): def __init__(self, stream): self.stream = stream self.adv() def get(self): return self.ch def adv(self): self.ch = self.stream.read(1) if self.ch == '': raise EOFError()
[ "cheery@boxbase.org" ]
cheery@boxbase.org
2d74d3b980a16f4b736de35c0620c251cd4bd605
575d197af5bbc31b89df37f8733e81707294948c
/Python2/examples/Excel/14_numeric_format.py
533f0bc504b9462fadff2bd1f8029ac5a60655f1
[]
no_license
tisnik/python-programming-courses
5c7f1ca9cae07a5f99dd8ade2311edb30dc3e088
4e61221b2a33c19fccb500eb5c8cdb49f5b603c6
refs/heads/master
2022-05-13T07:51:41.138030
2022-05-05T15:37:39
2022-05-05T15:37:39
135,132,128
3
2
null
2021-04-06T12:19:16
2018-05-28T08:27:19
Python
UTF-8
Python
false
false
1,247
py
#!/usr/bin/env python3 # vim: set fileencoding=utf-8 """Vytvoření sešitu s delší tabulkou, buňky se specifikací číselného formátu.""" import xlsxwriter # vytvoření objektu reprezentujícího celý sešit with xlsxwriter.Workbook("example14.xlsx") as workbook: # vložení nového listu do sešitu worksheet = workbook...
[ "ptisnovs@redhat.com" ]
ptisnovs@redhat.com
ca0dfc4464e55ea5612d52669b8d134596d3404c
5a1a695829a2d1dbf4daa0736f0fbd6feffc7e63
/JUNGOL/1707(달팽이사각형).py
07bb09b825bfea02fae29ad62638f417bf139b21
[]
no_license
juyi212/Algorithm_study
f5d263c5329c994a457bbe897e5e1405d2b1d67a
f225cc593a50b74686111f654f7133707a1d1310
refs/heads/master
2023-03-21T20:02:36.138688
2021-03-16T14:16:40
2021-03-16T14:16:40
325,008,034
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
n = int(input()) dir = [(0, 1), (1, 0), (0, -1), (-1, 0)] matrix = [[-1]*n for _ in range(n)] num = 1 visited = [[False]*n for _ in range(n)] nr, nc = 0, 0 matrix[nr][nc] = 1 visited[nr][nc] = True cnt = 0 while cnt <= (n*n): for r, c in dir: cnt += 1 while True: nr += r n...
[ "dea8307@naver.com" ]
dea8307@naver.com
b7b17a2f843d0c6a17b1aa1e0dbc77074c1d8db7
4629bf721ff3d49f9f8e3e57babc325f38fa4b7e
/uliweb/utils/setup.py
4f740b75ed31de85e1ec0160e159648737b04e0b
[ "BSD-2-Clause" ]
permissive
zhangchunlin/uliweb3
b3d331fd9b1738f0a38f007a0def240d85c31443
3c92763d3172b9f1041ea93816daf4224c8512c0
refs/heads/master
2023-03-07T01:49:35.779929
2018-09-26T05:51:14
2018-09-26T05:51:14
152,057,856
1
1
BSD-2-Clause
2018-10-08T10:02:56
2018-10-08T10:02:56
null
UTF-8
Python
false
false
5,765
py
from setuptools import setup from setuptools.command import build_py as b import os,sys import glob #remove build and dist directory import shutil #if os.path.exists('build'): # shutil.rmtree('build') #if os.path.exists('dist'): # shutil.rmtree('dist') def copy_dir(self, package, src, dst): self.mkpath(dst)...
[ "limodou@gmail.com" ]
limodou@gmail.com
055b87c0c32ecf5c0e0ae69c04812464e18972ed
c5a921726a3805663d26a2dbaa47e49497931d4e
/TDD_Python/superlists/functional_tests_v3.py
2bcdfbc7c2b2d6920b2cf500abc85118c4d25264
[]
no_license
snowdj/cs_course
a50d07548198b4202e8abde01ec572e2cce38ab3
fa6504cb5145d10952f4615478fa745f4b35ba13
refs/heads/master
2020-03-17T15:18:52.190747
2018-05-13T08:08:51
2018-05-13T08:08:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,652
py
""" TDD Python, chapter 4, page 38. """ from selenium import webdriver from selenium.webdriver.common.keys import Keys import unittest class NewVisitorTest(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() self.browser.implicitly_wait(3) def tearDown(self): sel...
[ "jesse@liu.onl" ]
jesse@liu.onl
47b0c80ab9d652c8131826c08251e4b823d88274
d9d1a3ea9f67845e6bbaa97cda4a60a8fc776ce3
/galtrace/libs/crawler/__init__.py
fa75c505970cf8ee6c207b4c4273a10afc52e9b9
[]
no_license
legnaleurc/galtrace
0340bfebd367e45c87eff8254f5cd58550f18721
27f88c5db28f197766cd3cc732b5e1eb921d74bf
refs/heads/master
2021-01-22T23:48:49.352510
2015-04-25T15:29:27
2015-04-25T15:29:27
3,678,797
1
1
null
null
null
null
UTF-8
Python
false
false
177
py
from .sites import UnsupportedLinkError from .sites import UnavailableLinkError from .crawler import fetch __all__ = ['fetch', 'UnsupportedLinkError', 'UnavailableLinkError']
[ "legnaleurc@gmail.com" ]
legnaleurc@gmail.com
cde5ef37b383f1c7e93382d8a1058c013371fafb
bb109bd629c67a30a57850ebc97f9a9625aa998f
/wmtexe/cmi/dup.py
26e81298bdb534a1b20a6862f4198083e7fdeabd
[ "MIT" ]
permissive
csdms/wmt-exe
b0966f27792be853e8469f12a7e78aea24da6bfa
9f6e5a20e65765389682161b985cab186db88fce
refs/heads/master
2022-11-15T06:27:23.589160
2022-10-25T23:57:21
2022-10-25T23:57:21
22,662,428
0
2
MIT
2022-10-25T23:57:22
2014-08-05T23:04:09
Python
UTF-8
Python
false
false
353
py
import argparse import yaml from .bocca import dup_c_impl def main(): parser = argparse.ArgumentParser() parser.add_argument('path', help='Path to impl files') parser.add_argument('name', help='Name of new class') args = parser.parse_args() dup_c_impl(args.path, args.name, destdir='.') if __...
[ "mcflugen@gmail.com" ]
mcflugen@gmail.com
59cac7d3b44940ed7343645d2d5df7b8ec308d3a
6b96a11195094a0023a059ba7d5df95ce58c56f1
/1527B.py
d2463a6c906bb932f57923f1d8afb8efbdbb7d93
[]
no_license
ldfdev/CodeForces-Div2-Problems
d932b09ee14a430fd0054d5b295f6016553be2b7
d18824a4330a4593099d249496ae22f3f69d5f44
refs/heads/master
2021-08-11T03:29:18.772870
2021-07-25T07:21:09
2021-07-29T20:09:43
72,371,376
1
0
null
null
null
null
UTF-8
Python
false
false
604
py
# explanation bemow: # 1 0 0 0 0 1 # alice 1 1 0 0 0 1 # bob 1 1 0 0 1 0 # alice 1 1 0 1 1 1 # bob 1 1 1 0 1 1 (rev) # alice 1 1 1 1 1 1 # 0 0 0 # alice 0 1 0 # bob 1 1 0 # alice 0 1 1 (rev) # bob 1 1 1 def solve(): n = i...
[ "ldf.develop@gmail.com" ]
ldf.develop@gmail.com
29bd029d56f2d4656129ad4580be26f15d405eac
bbcba0bb02cc62c4d445582172605776ab1be8cb
/save_to_csv.py
52c9c1e2deb5ed1112c543a1a5324897d69ba610
[]
no_license
wvuvl/GPND2
36f208a9d5cb35bf020c251fc226ce6dfe213187
b41dd8d662e11ff5999ac4e2392f536f4e62a50c
refs/heads/master
2023-02-08T09:30:40.795626
2020-12-07T03:34:29
2020-12-07T03:34:29
319,194,499
1
2
null
null
null
null
UTF-8
Python
false
false
951
py
import csv import numpy as np import pickle import pprint def save_results(results, filename): with open(filename[:-4] + ".pkl", "wb") as f: pickle.dump(results, f) print(results) pp = pprint.PrettyPrinter() pp.pprint(results) percentages = list(results[0].keys()) measures...
[ "stanislav@podgorskiy.com" ]
stanislav@podgorskiy.com
43b225614126bfa4e218f3018c9185630319aeb4
c2eba49f66ee0948c0ab089475b02f3a641fafb1
/xfc_control/migrations/0001_initial.py
9d000c9fdbc5537eca92dc318a1642a5f7b7b9c4
[]
no_license
cedadev/django-xfc_control
d4dcb7205c889443c0adba423a095b8b9ba68ffd
63a792214f267f2beb975d7138c46b449f560dbf
refs/heads/master
2021-07-15T05:15:02.873093
2020-04-21T11:35:46
2020-04-21T11:35:46
91,581,627
0
0
null
null
null
null
UTF-8
Python
false
false
4,616
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-03 12:57 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import sizefield.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [...
[ "neil.massey@stfc.ac.uk" ]
neil.massey@stfc.ac.uk
2c01a97f078d58f8355d548b0c2dc3c1a4e8250e
0c6832a2534ad92fa9c0b3f8c38588d05bf7cdac
/myjson/json_byteified.py
4c22d6de876a04aaacda398ba15b06cba9383732
[]
no_license
rlaneyjr/myutils
62690f932e642e8025f1abbaf871890d2df38aaa
1966fe15c1e28725486c3286113722bd109d8bbf
refs/heads/master
2021-07-14T19:15:28.020853
2020-06-12T20:51:37
2020-06-12T20:51:37
163,216,692
1
0
null
null
null
null
UTF-8
Python
false
false
2,089
py
#!/usr/bin/env python # title :json_byteified.py # description :Json Byteified using json_hook # author :Ricky Laney # date :20170814 # version :1 # usage :python json_byteified.py or ./json_byteified.py # notes : # python_version :2.7.13 ''' Example usage: >>> json_loads_byteified('{"Hello": "World"}')...
[ "rlaneyjr@gmail.com" ]
rlaneyjr@gmail.com
34b8fa298e9825147350ab807b8c4e738840a108
833ef0efdcac57f8bc585263fdd303edc06a5caa
/sc-kpm/sc-python/services/common/sc_log.py
885f80bd62050788b0fd1293fbdad4fe7081c7ae
[ "MIT" ]
permissive
PogudoTanya/sc-machine
f77d5965b9f81cf4852afe0e4d5394f869be44d5
ffa65770b457968f4e6f39a6d2f2513e1ab9462a
refs/heads/master
2022-11-10T05:33:22.903073
2020-02-22T21:06:54
2020-02-22T21:06:54
271,785,773
0
0
NOASSERTION
2020-06-12T11:50:20
2020-06-12T11:50:19
null
UTF-8
Python
false
false
663
py
from termcolor import colored, cprint class Log: def __init__(self, subsystem_name): self.name = subsystem_name def __print_colored(self, level, level_color, message, message_color): print (colored('[' + self.name + '][' + level + ']', level_color) + colored(': ' + message, message_color)) def debug(s...
[ "denis.koronchik@gmail.com" ]
denis.koronchik@gmail.com
7508a95e0bacdf8bef69e846404a88d24fcc3681
2df21455b93cf15328cda87de9831bd23f9d8343
/GTFparse.py
88ee302fa60d28a34dbbe6d303f093d08b82178b
[]
no_license
RagnarDanneskjold/ProcessSingleCell
d2e8f07f485319dea6df6d58e5f6cc93662cc983
bc6e7e4eca5ad77f6b15ead6fc7badaa4f7a7996
refs/heads/master
2021-06-15T03:45:09.984440
2017-03-21T20:07:56
2017-03-21T20:07:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,146
py
# Aparna Rajpurkar # This is the GTFparse module of the FastCount.py program # imports import re import operator from Tree import GeneTree # my Object Oriented classes def parseValidLine(line): """Function that parses a line of a GTF file and returns a useful \ data structure of its fields""" # spl...
[ "aparna.arr@gmail.com" ]
aparna.arr@gmail.com
6fc2b00a799a1bc7eac3492402f25eef3d1aabc9
8e225d87038bdca1e5c82b4a875a1c2d25dced0c
/setup.py
cd2dfa11505b41434faed9d03535b1b083d27d7d
[ "MIT" ]
permissive
feifzhou/fortpy
c65b486f942db8cdfa325f1d11dbd37e60b7a0d0
dc926c9169033ea59d31ea7df7bbe5373633aeb1
refs/heads/master
2021-01-15T23:53:18.793577
2015-08-26T06:04:48
2015-08-26T06:04:48
41,407,308
0
0
null
2015-08-26T05:58:56
2015-08-26T05:58:56
null
UTF-8
Python
false
false
2,050
py
#!/usr/bin/env python try: from setuptools import setup args = {} except ImportError: from distutils.core import setup print("""\ *** WARNING: setuptools is not found. Using distutils... """) from setuptools import setup try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') e...
[ "rosenbrockc@gmail.com" ]
rosenbrockc@gmail.com
c8d103b20e2d4b98c3aaf390b547b1ce8ff564c1
c2281d55883a51b2698119e3aeb843df9c8c885b
/Thesis ch 2/ClusteringBuckets/GenericModels/LogisticRegression/12.PredictProb.py
b05ad079af41b543da0b9691ac6c46327c6c7b1c
[]
no_license
akshitasawhney3008/Thesis-Final
1c004ffc6c2dd6ec711b212f9a35e46ea067c9c7
10865bab16bcc2ca4a5d4af345ffb4f2f7222104
refs/heads/master
2023-02-01T20:56:43.763024
2020-12-10T09:28:45
2020-12-10T09:28:45
320,037,411
1
0
null
null
null
null
UTF-8
Python
false
false
3,897
py
import numpy as np from sklearn.metrics import precision_score, recall_score, roc_curve,auc, accuracy_score, matthews_corrcoef, f1_score import pickle from sklearn.preprocessing import normalize iterations = 5 # threshold = 0.5 def getPredictionsGivenThreshold(myMatrix, th): myList = [] for i in range(myMatr...
[ "akshita17143@iiitd.ac.in" ]
akshita17143@iiitd.ac.in
1f1da02090abd16cccd2e361003b7c7c5129c546
045cb1a5638c3575296f83471758dc09a8065725
/addons/account/tests/test_reconciliation_heavy_load.py
076ed17493b8981e32bae3e3e33fa1a0c0f50dbb
[]
no_license
marionumza/saas
7236842b0db98d1a0d0c3c88df32d268509629cb
148dd95d991a348ebbaff9396759a7dd1fe6e101
refs/heads/main
2023-03-27T14:08:57.121601
2021-03-20T07:59:08
2021-03-20T07:59:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,848
py
from harpiya import api, fields from harpiya.tests import tagged from harpiya.addons.account.tests.account_test_classes import AccountingTestCase @tagged('post_install', '-at_install') class TestReconciliationHeavyLoad(AccountingTestCase): """Check that reconciliation can be done for a move with many lines ""...
[ "yasir@harpiya.com" ]
yasir@harpiya.com
92a9c983b89ac8d402b925347d860d62f034a371
f50f1aa1f8f139d546db3230a1cb1f53043fd9e6
/system/base/net-tools/actions.py
837eeac22cd5a7fb9a0f4446547b1c64394aa1b4
[]
no_license
pars-linux/corporate2
7887961d1552d39bc3b0bef4a60fd3413d9b82bb
14d1eacfc824fb8d0bff8173e7ac06b36b88d10d
refs/heads/master
2020-05-26T15:02:12.005654
2017-02-27T03:07:14
2017-02-27T03:07:14
82,476,084
4
0
null
null
null
null
UTF-8
Python
false
false
932
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2005-2009 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shellto...
[ "eki@420bcd57-4a62-4fd6-832e-5ede16c90cc9" ]
eki@420bcd57-4a62-4fd6-832e-5ede16c90cc9
8ee6b1e2088ea8fcf36bf7ea351d8bec16454b2f
b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4
/toontown/src/parties/activityFSMs.py
07ecce6deaf62a4abdea57d2c165f9c32a26ee27
[]
no_license
satire6/Anesidora
da3a44e2a49b85252b87b612b435fb4970469583
0e7bfc1fe29fd595df0b982e40f94c30befb1ec7
refs/heads/master
2022-12-16T20:05:13.167119
2020-09-11T16:58:04
2020-09-11T17:02:06
294,751,966
89
32
null
null
null
null
UTF-8
Python
false
false
4,359
py
#------------------------------------------------------------------------------- # Contact: Rob Gordon # Created: Oct 2008 # # Purpose: Individual Activity FSMs #------------------------------------------------------------------------------- # Panda Imports from direct.directnotify import DirectNotifyGlobal # parties...
[ "66761962+satire6@users.noreply.github.com" ]
66761962+satire6@users.noreply.github.com
bf434a2dde5c1b7b25c30d1f2b90a45984deffc7
463c053bcf3f4a7337b634890720ea9467f14c87
/python/ray/ml/__init__.py
4778a644583fac1d6217ccdfc7faeb8972300648
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
pdames/ray
e8faddc4440976211a6bcead8f8b6e62c1dcda01
918d3601c6519d333f10910dc75eb549cbb82afa
refs/heads/master
2023-01-23T06:11:11.723212
2022-05-06T22:55:59
2022-05-06T22:55:59
245,515,407
1
1
Apache-2.0
2023-01-14T08:02:21
2020-03-06T20:59:04
Python
UTF-8
Python
false
false
209
py
from ray.ml.checkpoint import Checkpoint from ray.ml.config import RunConfig, ScalingConfig from ray.ml.preprocessor import Preprocessor __all__ = ["Checkpoint", "Preprocessor", "RunConfig", "ScalingConfig"]
[ "noreply@github.com" ]
pdames.noreply@github.com
1a994d033d63f26689a109eacd06972b120aeb9f
128adc6237ecbcb493f927a5de7990be21542526
/data.py
684fa7d99b74eca739dd448959e48c1028646882
[]
no_license
mwitiderrick/Determined-DVC
529f53cc1959a53b8081d1a0d40665ed95be9265
2bbce280f9c955cb76843671a8a9da3e1824c8e0
refs/heads/master
2023-02-19T11:58:46.848293
2021-01-22T12:26:53
2021-01-22T12:26:53
331,883,888
2
0
null
null
null
null
UTF-8
Python
false
false
455
py
import tensorflow import pandas as pd import numpy as np def load_training_data(): df = pd.read_csv("data/mnist_train.csv") x_train = df.drop("label",axis=1) x_train = x_train.values y_train = df["label"].values return x_train, y_train def load_validation_data(): df = pd.read_csv("data/mnist_...
[ "mwitiderrick@gmail.com" ]
mwitiderrick@gmail.com
0dfe69892b820556fd59cbf745f85f75f750a462
4fd5b888aff049ecf84fac6969e2d6950c8bf683
/pyjob/tests/test_cexec.py
636eb93da237f009416b54d5176ddd4f1318b582
[ "MIT" ]
permissive
FilomenoSanchez/pyjob
1d705fa9af4f8ba8827743f6b0c21a2ff9500ff2
b8dac5e53570f44370c222f97f063d666eeb0d64
refs/heads/master
2020-07-18T22:24:02.147767
2020-03-03T09:51:29
2020-03-03T09:51:29
206,324,268
0
0
MIT
2019-09-04T13:20:52
2019-09-04T13:20:51
null
UTF-8
Python
false
false
2,326
py
__author__ = 'Felix Simkovic' import os import pytest import sys from pyjob.cexec import cexec from pyjob.exception import PyJobExecutableNotFoundError, PyJobExecutionError class TestCexec(object): def test_1(self): stdout = cexec([sys.executable, '-c', 'import sys; print("hello"); sys.exit(0)']) ...
[ "felixsimkovic@me.com" ]
felixsimkovic@me.com
34b81f7e23b59b2b431174df1e4acd91d52f4fd2
a1d30d667cbf814db1809c31cf68ba75c01f819c
/Google/2. medium/274. H-Index.py
86a0a49e17a3c9ca641aab1bfbb569642dbecf80
[]
no_license
yemao616/summer18
adb5f0e04e6f1e1da6894b0b99a61da3c5cba8ee
8bb17099be02d997d554519be360ef4aa1c028e3
refs/heads/master
2021-06-02T04:32:07.703198
2020-01-09T17:45:29
2020-01-09T17:45:29
110,744,323
0
0
null
null
null
null
UTF-8
Python
false
false
1,651
py
# Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. # According to the definition of h-index on Wikipedia: "A scientist has index h if h of his/her N papers have at least h citations each, and the other N − h papers have no more...
[ "ymao4@ncsu.edu" ]
ymao4@ncsu.edu
8104d13b788a66efc1a7bcff6fd2911d319a2e9c
159bd4c0274271aae7cf2d42bc6819957ee626c9
/viz.py
5f91147e0c9a32109927e7d3d101b098362d385e
[]
no_license
Schuck9/UG-in-Weighted-Network
aaa9810e8806d6130ec87c275a169009da460abc
8e2a6ebde2ed4b9e2f6d2a2ca9d84140c2c5e792
refs/heads/master
2021-03-01T04:03:05.983146
2020-04-24T02:51:34
2020-04-24T02:51:34
245,752,196
0
0
null
null
null
null
UTF-8
Python
false
false
6,801
py
""" Ultimatum Game in complex network Visualization @date: 2020.3.19 @author: Tingyu Mo """ import matplotlib.pyplot as plt import numpy as np import pandas as pd import os from img_concat import image_compose def pq_distribution(value_list): x_axis = np.arange(0,1.05,1/20) # 21 descrete points,range 0~1,step s...
[ "noreply@github.com" ]
Schuck9.noreply@github.com
7ef8c7d8fbcd5f4846d737fcee832ff469bab76b
7dc502a62dcc4ff39f572040ba180315981e3ba8
/src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2021_11_01_preview/operations/_operations.py
d2af43806a36b987abf97f3c948a353bae6592c7
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
dbradish-microsoft/azure-cli-extensions
2bec15b90666fee7a0a833b407ca2619e25fed86
fe44a1bb123a58b7e8248850bdc20555ca893406
refs/heads/master
2023-08-31T15:19:35.673988
2022-02-09T08:50:18
2022-02-09T08:50:18
252,317,425
0
0
MIT
2020-04-02T00:29:14
2020-04-02T00:29:13
null
UTF-8
Python
false
false
5,575
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" ]
dbradish-microsoft.noreply@github.com
f33f85ac4aba4e4d933e8040620605b393102a38
02bdaef6edebcfc1c46bb62dbc79a3a805946ee7
/ns/scheduler/sp.py
954d9e976b5227933b1360fdf17c012f18aff21f
[ "Apache-2.0" ]
permissive
chapter09/ns.py
707ea084306ff04d606a25635d80cfe741183df8
d8fb5f838e8d163e9b5a872326282dac2238b9c5
refs/heads/main
2023-06-25T08:47:05.855105
2021-07-30T06:49:19
2021-07-30T06:49:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,781
py
""" Implements a Static Priority (SP) server. """ import uuid from collections import defaultdict as dd from collections.abc import Callable import simpy from ns.packet.packet import Packet class SPServer: """ Parameters ---------- env: simpy.Environment The simulation environment. rate:...
[ "bli@ece.toronto.edu" ]
bli@ece.toronto.edu
9e67469d766ce79591979d03e6ccc685e0a7c7b3
0d347de6f7fb39ddd3f16905056f95d8397d0f72
/app/main/views.py
fe26140f3727e94324c4fff33dd4e6932ab2f8eb
[]
no_license
vincentmuya/Movie_review
83564d36a5e76a49ccebb2c28f633a68f3c050b0
5cb1c0c49e790d27086acbb7de1342c5cc3eed60
refs/heads/master
2021-05-16T14:38:38.566432
2018-02-03T08:43:49
2018-02-03T08:43:49
118,459,602
0
0
null
null
null
null
UTF-8
Python
false
false
3,295
py
from flask import render_template,request,redirect,url_for,abort from . import main from ..requests import get_movies,get_movie,search_movie from ..models import Review,User from .forms import ReviewForm,UpdateProfile from flask_login import login_required from .. import db,photos #views @main.route('/') def index(): ...
[ "vincentmuya13@gmail.com" ]
vincentmuya13@gmail.com
452f4c80e4947afd07246f7965349ef536026b55
5b3d8f56f4d18dc8809f9f5aa7d2a7089cdbf489
/TablesRedo/RParagraphs.py
69dc4358f20ceaff1920f26f5bb299ac9d843406
[]
no_license
heyliljill/edpsych-cloned
89ba1a827ed66651b7387b25bc2c188ff344e8d1
ba02e4789e390bb6488b11608b994ee5678a4b30
refs/heads/master
2020-07-26T00:51:41.004018
2019-09-14T17:26:45
2019-09-14T17:26:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,032
py
# 5. (Table 7) Mean number of paragraphs represented in reading, per passage (3 paragraphs) (mrimpara,mriipara...4 total) # a. 3 paragraphs (=3), 2 paragraphs (=2), 1 paragraph (=1), topic only (=4), topic related (=5) # b. Break up into interest, difficulty, gender # c. By overall, WDI - Reading subsample, LWDI - Rea...
[ "jillyma@gmail.com" ]
jillyma@gmail.com
afcb238fc31c3171d21a8cf02075b81d5fbe3ba5
115d4be6df61f1e555826f49c2fd605ae83107bd
/solutions/217_contains-duplicate.py
2241ba5c5b67ae9984a66fbc4398eb9e2eefeaf8
[]
no_license
ipudu/leetcode
82dd12236b31b5fc48e20b8cccadc2392bce7b52
0e4b0b83c8d3fb50b7db1dc0e1bc55942e91d811
refs/heads/master
2021-06-07T14:04:04.114618
2020-02-27T21:52:54
2020-02-27T21:52:54
108,054,385
3
0
null
null
null
null
UTF-8
Python
false
false
740
py
""" Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct. Example 1: Input: [1,2,3,1] Output: true Example 2: Input: [1,2,3,4] Output: false Example 3: Input:...
[ "rocketsboy@gmail.com" ]
rocketsboy@gmail.com
5ed045ae7d418ee7f741a74b81d0d00af2b6e967
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/4131.py
82826060d0b03ea8b01335c5cf9ea63f6c7224ac
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
818
py
#! /usr/bin/python import sets def readInt(): return int(raw_input()) def readInts(): return map(int, raw_input().split()) def main(): t = readInt() for i in range(t): op = 'Case #' + str(i+1) + ': ' r1 = readInt() for i1 in range(4): if i1 == r1-1: ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
16f8201b5bb7154c572064a4886dac1f421c6458
8a4f5627b58aa54fd6a549f90b3c79b6e285c638
/Python/Fibonacci SubProblems/tiling_problem.py
a6972bca002d507375da62c6b6a8d8a24a3ccb11
[]
no_license
MrChepe09/Dynamic-Programming-Series
334f24af4f834f88840bf5222746d2b7452a33ee
d49e5bd7cb329b0b0f1382eb8627ba0427383499
refs/heads/master
2022-11-29T09:40:01.065561
2020-08-07T05:15:21
2020-08-07T05:15:21
283,384,811
1
0
null
null
null
null
UTF-8
Python
false
false
328
py
def tiling(n, m): a = [0 for _ in range(n+1)] for i in range(n+1): if(i<m): a[i] = 1 elif(i==m): a[i] = 2 else: a[i] = a[i-1] + a[i-m] return a[n] test = int(input()) for i in range(test): n = int(input()) m = int(input()) print(tilin...
[ "khanujabhupinder09@gmail.com" ]
khanujabhupinder09@gmail.com
310e48bb177cd293890bd09abeb7ff05b2c2c63c
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/AtlasTest/DatabaseTest/AthenaPoolTest/share/LArCellContReader_jobOptionsReg.py
d8f78625d4d299d402886e24b26a21d14024b1d1
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
3,239
py
############################################################### # # Job options file # ## @file LArCellContReader_jobOptionsReg.py ## ## @brief For Athena POOL test: read in LArCellContainers via explicit collections ## ## @author RD Schaffer <R.D.Schaffer@cern.ch> # #==================================================...
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
fc792d3b088a28cbf5de771a55b42ee3a71883f2
409c4d0dce72de987dff7c76857499fba8f8b7a0
/fastset.py
4d0505c494e2d9af7fc369ae1897fd10bb9681e0
[]
no_license
crystaleone/test
b4fece7fbc4e8ddd6186ea13245c62970c6d7038
4af3964bf6a657e888c7850f07a031440ba29e7a
refs/heads/master
2021-01-18T19:17:36.924170
2017-09-19T03:37:01
2017-09-19T03:37:01
86,895,858
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
import set class Set(set.Set): def __init__(self, value = []): self.data = {} self.concat(value) def intersect(self, other): res = {} for x in other: if x in self.data: res[x] = None return Set(res.keys()) def union(self, other): res = {} for x in other: res[x] = None for x in self.data....
[ "403868144@qq.com" ]
403868144@qq.com
91eab4fa8185c49b8477407a722f1c6715895fb2
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/playground/memre/armv7l/obsolete/corp2/x11/util/xorg-util/actions.py
5173c2317879124ca4f74274e77256d2c546affd
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,710
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2006-2008 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import crosstools as autotools from pisi.actionsapi import pisitools from pisi.actionsapi ...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
1376cb7097bd78ec34020abe5909b6c7788177ca
c609730a43596a2d3303f072fc97d9cf681fac7b
/cagey/autohome_newcar/autohome_newcar/pipelines.py
c3d57bcd32af5c7814ca4370dea1aa74f9349e84
[]
no_license
sinnettluo/ChenProject
5403311c0c7b78c484145e16d692abff00d2a110
0e33ecf1683afb22f1deb4bd54294c41aed8a46b
refs/heads/master
2023-03-22T23:48:08.430178
2020-09-02T15:05:02
2020-09-02T15:05:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,213
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html import logging import pymongo from scrapy.utils.project import get_project_settings from scrapy.exceptions import DropItem ...
[ "1316446041@qq.com" ]
1316446041@qq.com
862086ef086ece1194fb916bde5ba9f0315ac214
ac64fda7f1bfc92f7897efd60b8f3f0aeb22b4d7
/syntactic_mutations/udacity/mutants/mutant51.py
a96c3a128cbcd12bf06722bf26693aee24cb014f
[]
no_license
dlfaults/mutation_operators_evaluation
ea7f33459ba7bcf7d70092d9db8b40f9b338d516
7d1ff30e901931a46bf8908e9bb05cae3daa5f0f
refs/heads/master
2020-12-27T15:45:07.262012
2020-02-03T12:22:01
2020-02-03T12:22:01
237,955,342
1
0
null
null
null
null
UTF-8
Python
false
false
1,742
py
from sklearn.model_selection import train_test_split from keras.models import Sequential from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint from keras.layers import Lambda, Conv2D, MaxPooling2D, Dropout, Dense, Flatten from batch_generator import Generator from utils import INPUT_SHAPE, batc...
[ "gunel71@gmail.com" ]
gunel71@gmail.com
3e4c15f5894ce5582ec1c8f2b54085c0fbfeb742
06cf972369c30da9d98b296bcbc26a826aa98126
/aloisioimoveis/locations/tests/serializers/test_serializer_neighborhood.py
35cc0545c519585355f8815f4d1e162ca82666f7
[]
no_license
thiagorossener/aloisioimoveis
2597422af6ac058ed3b8aa6e58f0f8913488a7fe
f9d974440f9a8cc875da8a1d4a5c885429563c1b
refs/heads/master
2021-06-16T23:02:11.193518
2021-02-01T14:17:10
2021-02-01T14:17:10
94,144,023
18
17
null
2021-06-10T20:35:48
2017-06-12T21:55:18
JavaScript
UTF-8
Python
false
false
654
py
from django.test import TestCase from model_mommy import mommy from aloisioimoveis.locations.models import City, Neighborhood from aloisioimoveis.locations.serializers import NeighborhoodSerializer class NeighborhoodSerializerTest(TestCase): def test_serializer(self): """Neighborhood serialization should...
[ "thiago.rossener@gmail.com" ]
thiago.rossener@gmail.com
79957b5682bbec421f84acc58f582cf4bee98906
b1c7a768f38e2e987a112da6170f49503b9db05f
/accounts/migrations/0001_initial.py
16cd2e320b91ce057984484170e3cb744ebb5223
[]
no_license
Niladrykar/bracketerp
8b7491aa319f60ec3dcb5077258d75b0394db374
ca4ee60c2254c6c132a38ce52410059cc6b19cae
refs/heads/master
2022-12-11T04:23:07.504966
2019-03-18T06:58:13
2019-03-18T06:58:13
176,218,029
1
0
null
2022-12-08T03:01:46
2019-03-18T06:27:37
JavaScript
UTF-8
Python
false
false
981
py
# Generated by Django 2.0.5 on 2018-09-07 10:46 from django.conf import settings import django.contrib.auth.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max...
[ "niladry.kar85@gmail.com" ]
niladry.kar85@gmail.com
025dd83f0936e55ee882cf696aa5f658a0d79663
fd19962d7c1f37e8bdabf7946c48516f640e2ff3
/product/management/commands/mycommand.py
bf55951d9ca2bb8991c5b28074bbba8a7932a5d5
[]
no_license
amurakho/django_ready_to_delete
fe71bb727ad20ef134d3752568a043614acb4c64
0fed1890ce556bac301278e444426619dd0f2903
refs/heads/master
2022-12-05T12:01:02.412789
2020-08-20T12:30:31
2020-08-20T12:30:31
289,000,995
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
from django.core.management.base import BaseCommand class Command(BaseCommand): help = 'Creates groups' def handle(self, *args, **options): print('Done')
[ "amurakho@gmail.com" ]
amurakho@gmail.com
a6f56459317ed81b634e5e6f5ac92dd207e7ed70
f84540a209490c4d3ee7583c4668fe1c8b1c230e
/Graph/TopologicalSort/CourseScheduleII.py
b261982bba05af554e26c9924d34c7ae784eb183
[]
no_license
TimMKChang/AlgorithmSampleCode
9e08a3a88f24b9645ca70f834970650d400fd259
d5bcdce147bd6c3f05648962ca2096f79e4f003f
refs/heads/master
2023-07-19T15:28:27.722181
2021-09-09T07:02:22
2021-09-09T07:02:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,458
py
from typing import List from collections import defaultdict class TopologicalSort: # by DFS (recursive) def __init__(self): self.ans = None self.index = None def dfs(self, node, edges, visited, curVisited): for v in edges[node]: if v in curVisited: return Fa...
[ "gn01168178@yahoo.com.tw" ]
gn01168178@yahoo.com.tw
8706de911986f56f365524ecf0b45299673202ac
f13c586b82224c07f28f7bb7d9dd503e64eb5cb2
/tests/drawer/test_drawer_utils.py
dbb661b0f0863c546d53e12356b0e139287236e5
[ "Apache-2.0", "MPL-1.1" ]
permissive
therooler/pennylane
095f104e40254be2ed3050bc7be9ea9d2ee11ebd
fde1f24bd784d6ee2af5c980c2d5010b4c2bbe54
refs/heads/master
2023-04-29T13:32:43.115108
2023-04-18T09:41:42
2023-04-18T09:41:42
202,356,685
0
0
Apache-2.0
2019-08-14T13:30:39
2019-08-14T13:30:38
null
UTF-8
Python
false
false
5,547
py
# Copyright 2018-2021 Xanadu Quantum Technologies 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 law or...
[ "noreply@github.com" ]
therooler.noreply@github.com
1b40eb68b83d8a1ec91107ae2cbc6b3056e9faa8
ce083128fa87ca86c65059893aa8882d088461f5
/python/flask-mail-labs/.venv/lib/python2.7/site-packages/simplekv/_compat.py
e6366d3e29f008720a7016d76636ecbd2a50fdef
[]
no_license
marcosptf/fedora
581a446e7f81d8ae9a260eafb92814bc486ee077
359db63ff1fa79696b7bc803bcfa0042bff8ab44
refs/heads/master
2023-04-06T14:53:40.378260
2023-03-26T00:47:52
2023-03-26T00:47:52
26,059,824
6
5
null
2022-12-08T00:43:21
2014-11-01T18:48:56
null
UTF-8
Python
false
false
824
py
"""Helpers for python 2/3 compatibility""" import sys PY2 = sys.version_info[0] == 2 if not PY2: from configparser import ConfigParser else: from ConfigParser import ConfigParser if not PY2: from urllib.parse import quote as url_quote, unquote as url_unquote else: from urllib import ...
[ "marcosptf@yahoo.com.br" ]
marcosptf@yahoo.com.br
9728ac841e892564c6b2a480d4bea9f443d747fc
42652e0f4025eed896fbe91667bd495523fd4c3b
/app/config/__init__.py
6c813f40f8bab2bce4dae58abbd9b637d3b88743
[]
no_license
g10guang/whoyoungblog
47ef0a8ae1e75e422618fd59f4666287a09c4ec2
a3fd93bd7591700f492ae8806f7f1f2c32643b27
refs/heads/master
2022-12-15T14:44:45.476103
2017-11-23T11:55:41
2017-11-23T11:55:41
106,388,722
3
0
null
2022-12-08T00:39:06
2017-10-10T08:19:56
Python
UTF-8
Python
false
false
745
py
#!/usr/bin/env python3 # coding=utf-8 # author: Xiguang Liu<g10guang@foxmail.com> # 2017-09-10 18:11 import os def load_config(): """ 加载配置文件 :return: """ MODE = os.environ.get('BLOG_MODE') try: if MODE == 'PRODUCT': # 在生产环境,将标准输入流输出流重定向到文件中 import sys ...
[ "g10guang@gmail.com" ]
g10guang@gmail.com
484c2ced2ec5392403047eef0cd58b15067fc246
2d6557110f59d1c28bc83d58e60bd8de8e64d693
/formatloader.py
9cec2d59dace465a76001e164fcec1ddf444695a
[ "MIT" ]
permissive
restful-open-annotation/oa-adapter
8067df0227e3820ef84c493f518c80c463c2e431
d40f935cdef380675e1efa051ad2e1f4b8c8ae7a
refs/heads/master
2021-01-23T22:39:05.060992
2015-03-18T14:19:26
2015-03-18T14:19:26
31,967,902
1
0
null
null
null
null
UTF-8
Python
false
false
2,097
py
#!/usr/bin/env python """File format support module loader. The import and export formats supported by the adapter are determined at runtime based on the format support "modules" found in the formats/ directory. """ import sys import os # Directory containing format modules. FORMAT_DIRECTORY = 'formats' # Attribut...
[ "sampo.pyysalo@gmail.com" ]
sampo.pyysalo@gmail.com
65dbc73ef2e946e62d80b18d9cbf68805e58637a
abc422f58ad053bcbb6653ba15b66e46d220a199
/scripts/performance/sanity.py
330359f2b4452e9d5401bc95c45d30a88e4ebebb
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
tungstenfabric/tf-test
d3efff59bca931b614d0008260b2c0881d1fc009
4b9eca7eb182e5530223131ecab09d3bdf366407
refs/heads/master
2023-02-26T19:14:34.345423
2023-01-11T08:45:18
2023-01-11T10:37:25
265,231,958
8
22
null
2023-02-08T00:53:29
2020-05-19T11:46:12
Python
UTF-8
Python
false
false
3,973
py
import os import fixtures import testtools from common.connections import ContrailConnections from tcutils.wrappers import preposttest_wrapper from common.contrail_test_init import ContrailTestInit from performance.verify import PerformanceTest class PerformanceSanity(testtools.TestCase, PerformanceTest): def s...
[ "andrey-mp@yandex.ru" ]
andrey-mp@yandex.ru
489a11f287a6771c194f8f5dd5b9cd086e85815e
c676bf5e77ba43639faa6f17646245f9d55d8687
/tests/ut/python/optimizer/test_debug_location.py
80793f37a130c8579a93c052e7e05c095ab1897f
[ "Apache-2.0", "BSD-3-Clause-Open-MPI", "MPL-2.0-no-copyleft-exception", "LGPL-2.1-only", "BSD-3-Clause", "MPL-2.0", "MPL-1.0", "Libpng", "AGPL-3.0-only", "MPL-1.1", "LicenseRef-scancode-proprietary-license", "MIT", "IJG", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Z...
permissive
zhengnengjin/mindspore
1e2644e311f54a8bd17010180198a46499e9c88f
544b859bb5f46611882749088b44c5aebae0fba1
refs/heads/master
2022-05-13T05:34:21.658335
2020-04-28T06:39:53
2020-04-28T06:39:53
259,522,589
2
0
Apache-2.0
2020-04-28T03:35:33
2020-04-28T03:35:33
null
UTF-8
Python
false
false
5,973
py
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
[ "leon.wanghui@huawei.com" ]
leon.wanghui@huawei.com
dbe7062912a362af2c02a691b4f36f395063b5d0
b45d66c2c009d74b4925f07d0d9e779c99ffbf28
/tests/integration_tests/retail_tests/implementation/retail_client_controller_test_collection.py
332c22c2cefad9e1f013767370ee271605807543
[]
no_license
erezrubinstein/aa
d96c0e39762fe7aaeeadebbd51c80b5e58576565
a3f59ba59519183257ed9a731e8a1516a4c54b48
refs/heads/master
2021-03-12T23:44:56.319721
2016-09-18T23:01:17
2016-09-18T23:01:17
22,665,501
0
0
null
null
null
null
UTF-8
Python
false
false
5,726
py
from __future__ import division from tests.integration_tests.framework.svc_test_collection import ServiceTestCollection from retail.v010.data_access.controllers.client_controller import ClientController from retail.v010.data_access.controllers.user_controller import UserController from retail.v010.data_access.retail_da...
[ "erezrubinstein@hotmail.com" ]
erezrubinstein@hotmail.com
91d65a5caf20739fb4868145dd7e221f99f2e082
0eb599c3bbfa6e5b31516913b88cc9db3a1311ce
/ARC/arc097c.py
33bff188d24ca2f5e1af4718c9b4e6b11b22207b
[]
no_license
Linus-MK/AtCoder
5b84dc88c2d2773d0f97ed18265d303290da7879
a587e89a9e0c2ab4d36b09176bcc95e901e14326
refs/heads/master
2022-11-25T05:37:12.148722
2022-11-17T16:04:10
2022-11-17T16:04:10
169,840,698
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
s = input() k = int(input()) substring_list = [] for i in range(1, 5+1): for start in range(len(s) - i + 1): substring_list.append(s[start:start+i]) # print(substring_list) substring_list = sorted(set(substring_list)) print(substring_list[k-1]) # https://stackoverflow.com/questions/2931672/what-is-the-cl...
[ "13600386+Linus-MK@users.noreply.github.com" ]
13600386+Linus-MK@users.noreply.github.com
8f3ea69126b695c4a7334a63b869e3810b969865
fcd64a87118a8c1e060449d8fd5b02034ac3dea7
/test/test_payments_search_body.py
c4e5d43d4fe46a88ccc618f278f0274b2083b92f
[]
no_license
carlosgalvez-tiendeo/python-paycomet_client
2b68e4e1f7cfbab81d50357513f79753cf8c2f0e
71f1fe29495ce67e37aaed4ecc9acf5994de011a
refs/heads/master
2023-08-03T02:27:50.857164
2021-06-16T13:04:46
2021-06-16T13:04:46
377,492,186
0
0
null
null
null
null
UTF-8
Python
false
false
937
py
# coding: utf-8 """ PAYCOMET REST API PAYCOMET API REST for customers. # noqa: E501 OpenAPI spec version: 2.28.0 Contact: tecnico@paycomet.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import paycomet_client fro...
[ "carlos.galvez@tiendeo.com" ]
carlos.galvez@tiendeo.com
d774292b3bb342a201bdfb191b2b2bb3c62edcb1
f216fec073bcb94d34fadf3b149f6ad8e0541198
/scorestatistics_ui.py
d815d8c4a97c198a142806d8765979e797604d6d
[]
no_license
liuyuhang791034063/ScoreSystem
44a6742a72a34e1673c46f3b00e2cdfd6553979b
ecb53a6dc2ae490ddc1028aa67b99a187fe366d9
refs/heads/master
2020-03-24T20:43:21.746962
2018-09-20T09:49:58
2018-09-20T09:49:58
142,993,767
4
1
null
null
null
null
UTF-8
Python
false
false
1,276
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'scorestatistics.ui' # # Created by: PyQt5 UI code generator 5.11.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Score(object): def setupUi(self, Score): Score.set...
[ "liuyuhang791034063@qq.com" ]
liuyuhang791034063@qq.com
d5f632db1dc076d3677f639263dbe4cc575ad8da
a62fdd0beb6c47cc704c1192b68b0bcfcd024304
/Python/I/07-CURSORS/1/form.py
12e820ffa975daf039e565eaa2572d6436bb302e
[]
no_license
a6461/Qt-PyQt
da1895b4faccda80b8079ecdca79f1ea525daa0a
404bd7fbbc432ebeaa1a486fc8e005d47aed9cfd
refs/heads/master
2020-03-14T22:16:48.714825
2018-06-12T20:45:58
2018-06-12T20:45:58
131,817,506
0
0
null
null
null
null
UTF-8
Python
false
false
1,292
py
from ui_form import * from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class Form(Ui_Form, QWidget): names = [] cursors = [] def __init__(self): super(self.__class__, self).__init__() self.setupUi(self) self.setFixedSize(self.size()) self.n...
[ "a6461@yandex.ru" ]
a6461@yandex.ru
f18e9d3496ede63fe418afc7bf811b6426910845
74dff48428867fd99ab780a96357619285cadf73
/finch-collector-master/finchcollector/settings.py
93fd1a44be8f4df50c9d949892b975b5e8579703
[]
no_license
HermanSidhu96/finchcollector
28ed65455dc139a23e27eeddd9939fa58d6c69ea
561751bdbe77537cf341bbbb7d180ac327428e83
refs/heads/master
2022-12-15T10:00:03.121582
2020-09-16T02:50:18
2020-09-16T02:50:18
295,905,995
0
0
null
null
null
null
UTF-8
Python
false
false
3,087
py
""" Django settings for finchcollector project. Generated by 'django-admin startproject' using Django 2.2.6. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
[ "you@example.com" ]
you@example.com
88ce8bab5ece0b9764f01300ba6eab12ebc66fd0
e8db7be2278994660a1cb1cde3ac479d802b5b05
/my_datasets/zsre_with_description.py
e6687188be4bc399c3ea178667e0d23a9d40a016
[ "MIT" ]
permissive
INK-USC/hypter
4cbf8929bc49d01e648197381c94c22fea233b95
732551e1e717b66ad26ba538593ed184957ecdea
refs/heads/main
2023-03-28T00:27:53.887999
2021-04-02T04:37:52
2021-04-02T04:37:52
318,406,884
13
1
null
null
null
null
UTF-8
Python
false
false
4,781
py
import os import json import re import string import numpy as np from tqdm import tqdm import torch from torch.utils.data import Dataset, TensorDataset, DataLoader, RandomSampler, SequentialSampler from .utils import MyQADataset, MyDataLoader from .zsre import ZSREData from .zsre_relations import ZSRE_RELATIONS clas...
[ "qinyuany@usc.edu" ]
qinyuany@usc.edu
5d86d8330729cfa6f01aaf6860470f7b01e20f0b
2bd3b981412f81ff6d5085394aad71258bed3c1b
/hw3/scripts/validate_svm_fusion.py
fdd4ac3584a4ca43f66baa2ed4b2acc84beaf37a
[]
no_license
JayC1208/11-775-Large-Scale-Multimedia-Analysis
e4d8e685cca437a6431d2f531e25d80bb1ceeeb9
ca88fa2c0701477e3fdb424374ba6cb1b9126c43
refs/heads/master
2023-08-30T21:19:09.110017
2017-03-16T02:52:38
2017-03-16T02:52:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,947
py
from sklearn.metrics import roc_curve from sklearn.calibration import CalibratedClassifierCV from sklearn import preprocessing import commands import numpy as np import os from sklearn.svm.classes import SVC from sklearn.svm import LinearSVC import cPickle import sys import pickle from sklearn.pipeline import Pipeline ...
[ "xeniaqian94@gmail.com" ]
xeniaqian94@gmail.com
9e5ee3e62bcf6a844290cd40365ca82a1e9a8db3
ba6d11be23574d98210a6ea8df02cbc8afae325e
/tokenizers/javalex/javasmartlex.py
36664977def81a3d4d1d13a1ef928550377cb5f4
[ "MIT" ]
permissive
sayon/ignoreme
921596af5645731fa66a7ec31c11992deecd28e2
d3d40c2eb3b36d1ea209abb9a710effba3d921c3
refs/heads/master
2020-11-26T15:27:41.567436
2014-11-07T14:59:06
2014-11-07T14:59:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,336
py
__author__ = 'novokonst' import ply.lex as lex JAVA_KEYWORDS = [ 'abstract' , 'assert' , 'boolean' , 'break' , 'byte' , 'case' , 'catch' , 'char' , 'class' , 'const' , 'continue' , 'default' , 'do' , 'double' , 'else' , 'enum' , 'extends' , 'fin...
[ "novokrest013@gmail.com" ]
novokrest013@gmail.com
7ff4e3512240a49138a5b303e8e9525d6c638e6d
d47067156da51bfed44ae4e465f9ac9831c4138a
/app.py
2ca5a247d1c78747c6151593d111101b0d8f4b31
[]
no_license
sylvaus/datawebserver
264398a1324fafef78980c7c0f85f4c5f4ae37b0
13cdb31302b7c0a7ff1e9cb7a3c0709caeaf166e
refs/heads/master
2020-04-28T00:59:16.070904
2019-03-10T21:16:45
2019-03-10T21:16:45
174,837,189
0
0
null
null
null
null
UTF-8
Python
false
false
2,340
py
import atexit import configparser import socket from multiprocessing import Queue from threading import Thread from flask import Flask, render_template from flask_socketio import SocketIO, emit from data_server.data_dispatcher import DataDispatcher from data_server.data_server import DataServer, ThreadedTCPRequestHan...
[ "pierreyves.breches74@gmail.com" ]
pierreyves.breches74@gmail.com
f8bcf1d6c11905d75cef6915a64cabd14eac0127
2ed86a79d0fcd299ad4a01310954c5eddcf01edf
/homeassistant/components/goodwe/__init__.py
b5872ed3deaa396f83867e451c4d61a51cafba2e
[ "Apache-2.0" ]
permissive
konnected-io/home-assistant
037f12c87bb79e19220192eb918e49db1b1a8b3e
2e65b77b2b5c17919939481f327963abdfdc53f0
refs/heads/dev
2023-05-11T08:57:41.891518
2023-05-07T20:03:37
2023-05-07T20:03:37
109,931,626
24
10
Apache-2.0
2023-02-22T06:24:01
2017-11-08T05:27:21
Python
UTF-8
Python
false
false
2,370
py
"""The Goodwe inverter component.""" from goodwe import InverterError, connect from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers.entity import D...
[ "noreply@github.com" ]
konnected-io.noreply@github.com
2f2e5e0161230e936733e0a3bf0fbc147785f021
a2f63e108409adabc88aaa4e5eee9603d4085f3d
/vea-plaza1/farmacia/apps/compras/forms.py
fa43c3492e6f904b4fe4feb009e9ff87dff88592
[]
no_license
armandohuarcaya/Sistema-Union
098569606a8259d76a42f2508f59dbf33ddb2e31
9f093e8952008fffcbb86ecf1e49f7c86184557e
refs/heads/master
2021-08-22T23:37:12.758059
2017-12-01T12:53:38
2017-12-01T12:53:38
112,769,764
0
0
null
null
null
null
UTF-8
Python
false
false
1,248
py
from .models import * # Change as necessary from django.forms import ModelForm from django import forms from django.utils.text import capfirst class TodoListForm(ModelForm): class Meta: model = Cabecera exclude =('trabajador',) widgets = { 'codigo': forms.TextInput(attrs={'class': 'form-control'})...
[ "armando_huarcaya@upeu.edu.pe" ]
armando_huarcaya@upeu.edu.pe
8bd1377691cf724779af709f24241b528b2a1b8a
aef69557d8960205a780e61b7c2dfbb1d7733449
/Code/Theo/labs/peaksandvalleys.py
cb64dea931ac33118b64d0a46eff3440cbc5c589
[]
no_license
sbtries/class_pandaaaa
579d6be89a511bdc36b0ce8c95545b9b704a734a
bbf9c419a00879118a55c2c19e5b46b08af806bc
refs/heads/master
2023-07-18T14:18:25.881333
2021-09-02T22:48:29
2021-09-02T22:48:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,271
py
def main(): data = [1 , 2 , 3 ,4 , 5 , 6 , 7 , 6 , 5 , 4 , 5 , 6 , 7 , 8 , 9 , 8 , 7 , 6 , 7 , 8 , 9] peak_indices = peaks(data) valley_indices = valleys(data) print(valley_indices) print(peak_indices) print(peaks_and_valleys(peak_indices,valley_indices)) visualization(data) exit() def...
[ "trowlett@gmail.com" ]
trowlett@gmail.com
67066240d43e45422d72fc3cfb0f6f4f40c47a7f
612592a63c9c7b46f4b84f6b2ea6a18187e4838e
/TWOSC_autotest/TWOSC_autotest_web/PO/plan/fahuodan/fahuodan_editPlan.py
fa45dfb9161e946dbd0c086f78e57ef5d0c8b0a8
[]
no_license
xiaoxiangLiu/test_gitbase
5c624175b58897d3314c178924fd79fc48925a96
da1b9c82b8501f838892a3a5089392311603309e
refs/heads/master
2021-05-08T14:56:34.612042
2018-03-08T16:32:39
2018-03-08T16:32:39
120,100,809
1
0
null
null
null
null
UTF-8
Python
false
false
3,898
py
__author__ = '38720' # coding=utf-8 from base_page.base import Page from selenium.webdriver.common.by import By class EditPlan(Page): '''编辑发货单信息页''' # 出库时间 chuku_time_loc = (By.CSS_SELECTOR, '#wareHouseTimeStr') # 出库时间选择月份按钮 month_time_loc = (By.CSS_SELECTOR, 'body > div:nth-child(11) > div.da...
[ "38720034@qq.com" ]
38720034@qq.com
2999639695e22cf860ff0c331939e7a44e1660da
fcdfe976c9ed60b18def889692a17dc18a8dd6d7
/ros/py_ros/baxter/sonar1.py
05674e6f2009f101a7a4af39626441ee58c5c8ee
[]
no_license
akihikoy/ay_test
4907470889c9bda11cdc84e8231ef3156fda8bd7
a24dfb720960bfedb94be3b4d147e37616e7f39a
refs/heads/master
2023-09-02T19:24:47.832392
2023-08-27T06:45:20
2023-08-27T06:45:20
181,903,332
6
3
null
null
null
null
UTF-8
Python
false
false
899
py
#!/usr/bin/python #\file sonar1.py #\brief Baxter: getting data from sonor sensor #\author Akihiko Yamaguchi, info@akihikoy.net #\version 0.1 #\date Oct.29, 2015 import roslib import rospy import sensor_msgs.msg import baxter_interface import time import math def IsPointInFront(points, max_angle, max_dist): ...
[ "info@akihikoy.net" ]
info@akihikoy.net
8debe55a0166fa775d3843b6dc1d86d2907efc04
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/aqA6KSHRCwfE44Q9m_5.py
99fb26451b467fde54932142a65767af8a9f7fe5
[]
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
803
py
""" October 22nd is CAPS LOCK DAY. Apart from that day, every sentence should be lowercase, so write a function to **normalize** a sentence. Create a function that takes a string. If the string is **all uppercase characters** , convert it to **lowercase** and add an **exclamation mark** at the end. ### Examples ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
a8d4b395303242fdc048b7b4a0099f1f74d70414
12a0b2172cb480d08406c1302652b078615e5747
/plut/table.py
ab41b0dce88a7cd8f0f97277f552101289ac7843
[]
no_license
kuntzer/plut
60bb59f21e5952935e471916954b6ab48d98794b
2924f36dc3b1c8ca1449cd666ca6c1577b03a77a
refs/heads/master
2021-01-19T09:58:19.432997
2017-04-20T15:16:33
2017-04-20T15:16:33
87,803,091
0
0
null
null
null
null
UTF-8
Python
false
false
6,325
py
""" Helpers for astropy.table arrays """ import numpy as np import astropy.table import datetime import copy import logging logger = logging.getLogger(__name__) def info(cat, txt=True): """ Returns a new table "describing" the content of the table cat. """ colnames = cat.colnames dtypes = [cat[colname].dtype ...
[ "thibault.kuntzer@epfl.ch" ]
thibault.kuntzer@epfl.ch
f2c61f6ea2a8a16d27c3a861620bfe4d898bc0d0
55b84573458f72618c9d285fd449e8328b75af4f
/test.py
642d7e9940b463fad5b34d1e231bd1568e731442
[ "MIT" ]
permissive
obs145628/py-linear-regression
2984749d8b2295a044fff92904ae7f3daec98b07
8dafcfa0c1b889177afa61629540cacf8dcc0080
refs/heads/master
2021-04-27T17:37:10.715036
2018-02-21T11:00:54
2018-02-21T11:00:54
122,325,238
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
import numpy as np import dataset_boston import lineareg X, y = dataset_boston.load_boston() lineareg.train(X, y, 1000, 1e-8)
[ "obs145628@gmail.com" ]
obs145628@gmail.com
12afd11a82d7eedeaa2bf128ce1a1df056ad69bb
88023c9a62994e91291c67088156a2894cc26e9e
/tests/test_core.py
7a80ecc593d53ee3f44a38022cb4ff9fe2622c00
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
toros-astro/corral
41e9d0224d734c4268bf5161d472b3c0375842f0
75474b38ff366330d33644461a902d07374a5bbc
refs/heads/master
2023-06-10T15:56:12.264725
2018-09-03T17:59:41
2018-09-03T17:59:41
44,282,921
6
5
BSD-3-Clause
2023-03-24T12:03:17
2015-10-14T23:56:40
Python
UTF-8
Python
false
false
2,715
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2016-2017, Cabral, Juan; Sanchez, Bruno & Berois, Martín # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of sourc...
[ "jbc.develop@gmail.com" ]
jbc.develop@gmail.com
095fea23bcf8497a6557e3979f106a29b0294879
53c4ec58760768fc9073793cf17cd8c55978c3af
/annotator/uniformer/mmcv/runner/utils.py
c5befb8e56ece50b5fecfd007b26f8a29124c0bd
[ "Apache-2.0" ]
permissive
HighCWu/ControlLoRA
0b6cab829134ed8377f22800b0e1d648ddf573b0
3b8481950867f61b2cf072b1f156d84f3363ac20
refs/heads/main
2023-08-05T08:51:25.864774
2023-02-28T13:06:24
2023-02-28T13:06:24
603,359,062
421
20
Apache-2.0
2023-08-02T02:14:40
2023-02-18T09:12:15
Python
UTF-8
Python
false
false
2,936
py
# Copyright (c) OpenMMLab. All rights reserved. import os import random import sys import time import warnings from getpass import getuser from socket import gethostname import numpy as np import torch import annotator.uniformer.mmcv as mmcv def get_host_info(): """Get hostname and username. Return empty s...
[ "highcwu@163.com" ]
highcwu@163.com
b0eab014e58477ee27d3b7011ca54aee830dd3b6
a2777caa6247ab826c4902cc5a14bacfd3507215
/eggify/migrations/0045_auto_20190608_0634.py
436444884d5ad10093458da13388b39dd1036e00
[]
no_license
ad-egg/eggify
2c7aa96f1588aefa94236f3a39693c5b9a1f931d
a7d1cbc319ca52fc9e14f574cadebfdad5bad3e3
refs/heads/master
2022-05-05T22:54:45.942426
2020-10-21T20:03:32
2020-10-21T20:03:32
190,267,814
3
6
null
2022-04-22T21:25:19
2019-06-04T19:38:53
Python
UTF-8
Python
false
false
968
py
# Generated by Django 2.2.2 on 2019-06-08 06:34 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('eggify', '0044_merge_20190608_0634'), ] operations = [ migrations.AlterField( ...
[ "539@holbertonschool.com" ]
539@holbertonschool.com
286984d3003df45e062240f9a4fd9db5bedd3497
89260668655a46278e8f22a5807b1f640fd1490c
/mySite/records/get_person.py
6c0e2075d500dfb86e34d2cbb2b5d26de09a12f3
[]
no_license
happychallenge/mySite
926136859c5b49b7fd8baff09b26f375b425ab30
ddbda42d5d3b9c380a594d81a27875b4ad10358b
refs/heads/master
2020-12-30T13:28:31.018611
2017-11-08T02:52:18
2017-11-08T02:52:18
91,218,922
0
0
null
null
null
null
UTF-8
Python
false
false
1,258
py
import re import json import requests from bs4 import BeautifulSoup def get_person_info(person): search_url = 'http://people.search.naver.com/search.naver' # Search URL params = { 'where':'nexearch' , 'query': person } # Search Parameters html = requests.get(search_url, params=params).text ...
[ "happychallenge@outlook.com" ]
happychallenge@outlook.com
e89bf4569b09f51daffc997e16d3331e722abc6d
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_truism.py
d1c7cd25dfb6033280337472ff04169465e52272
[ "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
354
py
#calss header class _TRUISM(): def __init__(self,): self.name = "TRUISM" self.definitions = [u'a statement that is so obviously true that it is almost not worth saying: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [], o...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
7773438bf26b8b815417e140e5cc64fe0116bb7a
5f0089466266e5a118b8257a49623b095f972737
/leetcode/offerIsComing/动态规划/剑指 Offer 48. 最长不含重复字符的子字符串 .py
62b7b1a158f640bc6440bb1ed463dced37400b0d
[ "Apache-2.0" ]
permissive
wenhaoliang/leetcode
983526484b67ee58656c8b0fd68483de82112a78
b19233521c4e9a08cba6267eda743935e1fb06a6
refs/heads/main
2023-07-19T04:31:00.214433
2021-09-04T10:54:17
2021-09-04T10:54:17
401,963,789
0
0
null
null
null
null
UTF-8
Python
false
false
4,092
py
""" 请从字符串中找出一个最长的不包含重复字符的子字符串,计算该最长子字符串的长度。 示例1: 输入: "abcabcbb" 输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。 示例 2: 输入: "bbbbb" 输出: 1 解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。 示例 3: 输入: "pwwkew" 输出: 3 解释: 因为无重复字符的最长子串是"wke",所以其长度为 3。 请注意,你的答案必须是 子串 的长度,"pwke"是一个子序列,不是子串。 链接:https://leetcode-cn.com/problems/zui-chang-bu-han-zhong-...
[ "641541452@qq.com" ]
641541452@qq.com
e344a5b4330e8d47e8503070ac4ef83d4fca5268
7246faf9a222269ce2612613f58dc5ff19091f10
/baekjoon/1000~2999/1371_가장 많은 글자.py
0254885023ff1b56daf37d238d999f47f0496e46
[]
no_license
gusdn3477/Algorithm_Study
87a2eb72a8488d9263a86db70dadc7944434d41d
3fefe1dcb40122157845ffc542f41cb097711cc8
refs/heads/main
2023-08-30T12:18:21.412945
2021-09-28T13:00:11
2021-09-28T13:00:11
308,364,230
0
1
null
null
null
null
UTF-8
Python
false
false
415
py
dic = {} while True: try: a = input() for i in a: if i == ' ': continue if i not in dic: dic[i] = 1 else: dic[i] += 1 except: break ar = list(dic.items()) ar = sorted(ar, key=lambda x: (-x[1], x[0]...
[ "gusdn3477@naver.com" ]
gusdn3477@naver.com
6ad57d1eb19e11eb751d93b7746d619a3a66884e
88b4b883c1a262b5f9ca2c97bf1835d6d73d9f0b
/src/api/python/hce/dc_db/FieldRecalculator.py
17b54851ece91f315cf2d8b5be50cf8186b57a42
[]
no_license
hce-project/hce-bundle
2f93dc219d717b9983c4bb534884e4a4b95e9b7b
856a6df2acccd67d7af640ed09f05b2c99895f2e
refs/heads/master
2021-09-07T22:55:20.964266
2018-03-02T12:00:42
2018-03-02T12:00:42
104,993,955
1
0
null
null
null
null
UTF-8
Python
false
false
7,498
py
''' @package: dc @author scorp @link: http://hierarchical-cluster-engine.com/ @copyright: Copyright &copy; 2013-2014 IOIX Ukraine @license: http://hierarchical-cluster-engine.com/license/ @since: 0.1 ''' import dc_db.Constants as Constants import dc_db.FieldRecalculatorDefaultCriterions as DefCriterions import dc.Even...
[ "bgv@bgv-d9" ]
bgv@bgv-d9
d4c7f258b88d04c56e29c54bb385cb510d252186
7f6b06334e6556ac91a19d410149129217070d5e
/cuda/cython/naive_add/setup.py
22ef269ec790486bdb8db5710a18aeb9b8ce4ced
[]
no_license
saullocastro/programming
a402e5b7c34c80f0ce22e8a29ce7975b263f19c3
499938a566348649218dc3c0ec594a4babe4f1a4
refs/heads/master
2021-01-20T10:42:50.840178
2020-08-26T07:56:35
2020-08-26T07:56:35
21,904,820
11
2
null
2020-08-26T07:56:36
2014-07-16T14:47:32
Python
UTF-8
Python
false
false
625
py
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext ext_modules = [Extension('my_cuda', sources=['my_cuda.pyx'], libraries=['cuda_blockadd', 'cuda_threadadd', 'cuda_btadd', 'cuda_longadd'], ...
[ "saullogiovani@gmail.com" ]
saullogiovani@gmail.com
0ca3723e3a18f9b95623bfa22b6bc0ea65396537
deafd775f238b2836f77b9140f4d6e14a3f3c06d
/python/ABC/ABC097/ABC097_B.py
33adf33d1f0b2d4a6326a31c043fcede83728e3d
[]
no_license
knakajima3027/Atcoder
ab8e2bf912173b7523fddbb11b38abd7e296762e
64cb32fcc4b99501f2f84496e5535e1e7b14c467
refs/heads/master
2021-06-22T03:58:03.777001
2020-12-19T11:23:49
2020-12-19T11:23:49
135,173,223
2
0
null
null
null
null
UTF-8
Python
false
false
201
py
X = int(input()) max1 = 1 max2 = 0 for b in range(1, X+1): for q in range(2, X+1): if b**q > X: break max1 = b**q if max1 > max2: max2 = max1 print(max2)
[ "kamihate1012@gmail.com" ]
kamihate1012@gmail.com
96c79e41e1b372df9a1a4032bb02e97a2ae2b108
1959b8a6fb4bd61a6f87cd3affe39f2e3bdbf962
/{{cookiecutter.repo_name}}/data_prep/wham/scripts/constants.py
cca06053bada8df02ed0092e6deb6aa1bafb6822
[ "CC-BY-NC-4.0", "MIT" ]
permissive
pseeth/cookiecutter-nussl
a85d61d00b2352d105a8f68aa66aab6ae670894b
fab73e7b1f3d393409360d31662600d6fe434c37
refs/heads/master
2023-01-05T00:35:17.528898
2020-02-27T17:21:51
2020-02-27T17:21:51
222,519,043
6
1
MIT
2022-12-26T21:00:36
2019-11-18T18:42:37
Jupyter Notebook
UTF-8
Python
false
false
179
py
NUM_BANDS = 4 SNR_THRESH = -6. PRE_NOISE_SECONDS = 2.0 SAMPLERATE = 16000 MAX_SAMPLE_AMP = 0.95 MIN_SNR_DB = -3. MAX_SNR_DB = 6. PRE_NOISE_SAMPLES = PRE_NOISE_SECONDS * SAMPLERATE
[ "prem@u.northwestern.edu" ]
prem@u.northwestern.edu
7616992a58654839cafd96f3f3cecb93b25ed1eb
82fce9aae9e855a73f4e92d750e6a8df2ef877a5
/Lab/venv/lib/python3.8/site-packages/OpenGL/raw/EGL/NV/coverage_sample.py
0bfd3b6a9c0e69a1160f97d03cc07bb73773a2a0
[]
no_license
BartoszRudnik/GK
1294f7708902e867dacd7da591b9f2e741bfe9e5
6dc09184a3af07143b9729e42a6f62f13da50128
refs/heads/main
2023-02-20T19:02:12.408974
2021-01-22T10:51:14
2021-01-22T10:51:14
307,847,589
0
0
null
null
null
null
UTF-8
Python
false
false
536
py
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p from OpenGL.constant import Constant as _C # Code generation uses this # End users want this... from OpenGL.raw.EGL import _errors _EXTENSION_NAME = 'EGL_NV_coverage_sample' def _f(function): return _p.createFunction(funct...
[ "rudnik49@gmail.com" ]
rudnik49@gmail.com
68a134c008ed3034618e4f6e7ed24250bea0cd2b
7d85c42e99e8009f63eade5aa54979abbbe4c350
/game/lib/coginvasion/suit/DroppableCollectableJellybeans.py
39de5dba276a764c3073b5510817ddd5fdc69b91
[]
no_license
ToontownServerArchive/Cog-Invasion-Online-Alpha
19c0454da87e47f864c0a5cb8c6835bca6923f0e
40498d115ed716f1dec12cf40144015c806cc21f
refs/heads/master
2023-03-25T08:49:40.878384
2016-07-05T07:09:36
2016-07-05T07:09:36
348,172,701
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
""" Filename: DroppableCollectableJellybeans.py Created by: blach (22Mar15) """ from direct.directnotify.DirectNotifyGlobal import directNotify from DroppableCollectableObject import DroppableCollectableObject class DroppableCollectableJellybeans(DroppableCollectableObject): notify = directNotify.newCategory("D...
[ "brianlach72@gmail.com" ]
brianlach72@gmail.com
edae3b83d112182e5fd0828eeaf173b4a0a018e3
35b3e64d760b7091859a40f17c24c00681f116fa
/python两颗吃一颗/keras卷积神经网络2.py
34c1b01a6fd1a853dca5236f12701dc8676872b0
[]
no_license
weiyinfu/TwoEatOne
8b9d27a28ba8469fc96fb9790cec04b30a19e21f
d87dfbbab550fc8bd0da3fec076034494da23bdc
refs/heads/master
2022-12-27T18:44:58.028285
2020-10-13T14:18:49
2020-10-13T14:18:49
79,469,916
1
0
null
2020-10-13T14:18:50
2017-01-19T16:04:02
Python
UTF-8
Python
false
false
1,080
py
import keras from keras.layers import * x_input = Input((4, 4, 1)) x_flat = Flatten()(x_input) """ 统计每个棋子的活动能力,使用2*2卷积核 因为需要统计权值,所以多来几层 """ free_space = Conv2D(2, (2, 2), padding='SAME', activation='sigmoid')(x_input) free_space = Conv2D(2, (2, 2), padding='VALID')(free_space) """ 吃子观,2*3和3*2的卷积核 """ eat1 = Conv2D(2...
[ "wei.yinfu@qq.com" ]
wei.yinfu@qq.com
4b208ef5abfe9ce4582acf2547252620f895832c
675cdd4d9d2d5b6f8e1383d1e60c9f758322981f
/pipeline/0x00-pandas/14-visualize.py
3a39452384e56b070eccd726adcc09dee9cb1d2a
[]
no_license
AndresSern/holbertonschool-machine_learning-1
5c4a8db28438d818b6b37725ff95681c4757fd9f
7dafc37d306fcf2ea0f5af5bd97dfd78d388100c
refs/heads/main
2023-07-11T04:47:01.565852
2021-08-03T04:22:38
2021-08-03T04:22:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,356
py
#!/usr/bin/env python3 from datetime import date import matplotlib.pyplot as plt import pandas as pd import numpy as np from_file = __import__('2-from_file').from_file df = from_file('coinbaseUSD_1-min_data_2014-12-01_to_2019-01-09.csv', ',') df = df.drop('Weighted_Price', axis=1) df = df.rename(columns={'Timestamp...
[ "bouzouitina.hamdi@gmail.com" ]
bouzouitina.hamdi@gmail.com
f24bb3459c66b3776bb45d37e75802752e515c55
17f527d6936397270183a35d7097e0a99de16cb5
/utokyo_ist_pastexam/2011_w/6.py
4829c80cda541037aa901a1d74f2f2bf80003ab2
[]
no_license
ryosuke071111/algorithms
e942f043d08c7c7e2c926ed332ee2b8c44bdf0c5
867764450cc0f2a709fa2f743d9a0d95001e9296
refs/heads/master
2020-05-14T17:14:39.314064
2019-04-17T12:58:12
2019-04-17T12:58:12
181,888,623
11
0
null
null
null
null
UTF-8
Python
false
false
300
py
from uti import * f1=open('s3.txt') f1=f1.read().strip('\n') ls=[] while len(f1)>0: ls.append(f1[:1000]) f1=f1[1000:] # #圧縮 strings="" dics=[] for i in ls: string,dic=compression(i) strings+=string # dics.append(dic) print(strings) #展開 print() ans=decompression(string) print(ans)
[ "ryosuke0711993@gmail.com" ]
ryosuke0711993@gmail.com
6e31a4079ade55066b95c9d5ff511edb6da190a9
3e9766f25777f7695247a45dd730ae60fd0a6c73
/main.py
168d4d1412a91d65894e4f0180c9cb890d2b537f
[]
no_license
ivanmarkov97/RaseTransportManager
69de4599e3195b1945c8595a99a687e235e0891c
d8275d75e94efdbba76a63e557d33eff49b7ce4e
refs/heads/master
2020-03-20T02:44:11.515512
2018-06-12T20:17:11
2018-06-12T20:17:11
137,122,970
0
0
null
null
null
null
UTF-8
Python
false
false
3,575
py
import tkinter as tk from service import * from DBhelper import DBhelper def click_event(): global my_rases global all_rases global yscroll global db_helper print("click") db_helper = DBhelper() prev_all_rases = db_helper.get("rase") print(time_away.get()) print(city_from.get(city_...
[ "ivanmarkov1997@gmail.com" ]
ivanmarkov1997@gmail.com
f00209d2c8adb18f187d9a07b18295d08eb5a998
84b0c9adeeba03e8dadf20346aae61e5a343d8c6
/tf_agents/bandits/networks/global_and_arm_feature_network_test.py
f4c51f215542a38f20c67391e6012069a7d7b8ba
[ "Apache-2.0" ]
permissive
trinity77/agents
fa8e0a31898f4cc5178d8108c86ede95d2f36aa3
baf18f275294e902f462404d21168ca4697e2f6f
refs/heads/master
2022-10-19T05:14:01.172058
2020-06-03T19:50:57
2020-06-03T19:50:57
269,180,393
0
0
Apache-2.0
2020-06-03T19:50:58
2020-06-03T19:50:02
null
UTF-8
Python
false
false
5,364
py
# coding=utf-8 # Copyright 2018 The TF-Agents 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 applicable law...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
f0016ddc6d958b94d872ad1f44a38ef76afa0387
c7511b81624a556978550341fa7a885022ab45e9
/tree/balanced-BT.py
546737be9291e23df2da610d6df391f4738da25a
[]
no_license
sandipan898/ds-algo-python-set-2
372de5e01aeda1edf7289cd784195480ca0a3696
53859d71d980dc08de8bd51acc049537082df0c9
refs/heads/main
2023-07-06T11:26:34.819144
2021-08-09T19:26:16
2021-08-09T19:26:16
378,245,185
2
0
null
null
null
null
UTF-8
Python
false
false
1,137
py
class Node: def __init__(self, data): self.data = data self.left = None self.right = None def find_height(root): if root is None: return 0 return max(find_height(root.left), find_height(root.right)) + 1 def is_balanced_tree(root): if root is None: return True ...
[ "sandipan.das898@gmail.com" ]
sandipan.das898@gmail.com
c818fe7898cfed2b1e0843d46953deed4b626626
68002ae9f124d808395b51944b616da298068b62
/Data_Visualization/Plot/Matplotlib/FT748/Ch12/Ch12_4_1.py
8d7d43c678747a8b7b8ba1d85dcf9604d5aeb10e
[]
no_license
supergravity/PythonLearning-
b4dd51205470f27e1ba92ec19b1fa1c967101545
eb53b048650a7272819b45943d3dd40fa91d2297
refs/heads/master
2023-01-04T23:15:59.945385
2020-11-06T13:35:15
2020-11-06T13:35:15
82,797,936
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
import pandas as pd df = pd.read_csv("products.csv", encoding="utf8") df.columns = ["type", "name", "price"] ordinals = ["A", "B", "C", "D", "E", "F"] df.index = ordinals print(df.head(2)) # 取得與更新單一純量值 print(df.loc[ordinals[0], "price"]) df.loc[ordinals[0], "price"] = 21.6 print(df.iloc[1,2]) df.iloc[1,...
[ "liamlin@Liams-MacBook-Pro.local" ]
liamlin@Liams-MacBook-Pro.local
58c61840621f2e94fb6ad4e5358755b34cb76928
e058d8501ba8fa70c4e7a60b669e92bab1044f03
/apps/postman/admin.py
2b4d854053c1d7da4248b86b3e97d79ef0786d34
[]
no_license
wd5/7-byhands
f1f237f5dc896ce804d91e958793c074ab4f3a14
d8a29e77f21e2947bed8414dc6ae0144798bd5a3
refs/heads/master
2021-01-18T07:19:46.447486
2013-01-28T21:37:55
2013-01-28T21:37:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
from django.contrib import admin from django.conf import settings from models import * class SubscriberAdmin(admin.ModelAdmin): pass class MailAdmin(admin.ModelAdmin): pass class SentLogAdmin(admin.ModelAdmin): pass admin.site.register(Subscriber, SubscriberAdmin) admin.site.register(SentLog , Sen...
[ "nide@inbox.ru" ]
nide@inbox.ru
08fe3bebae5f5c5f51f87adafb3f87e9659b1c8b
38b9706d8aea076c453e83a7ab2becc8bc2e57ed
/Array/39.py
f786f36930ae7d4ad6cddd537a6cc28e85505aa6
[]
no_license
sathish0706/guvi-codekata
e564e18bc174c94eb22a8ed483a9eb93a85fecab
cf4a508beaccfe46de4b34ffd2ec1e126a9e9807
refs/heads/main
2023-03-19T19:18:19.070994
2021-01-11T16:18:00
2021-01-11T16:18:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
from collections import defaultdict n = int(input()) m = list(map(int,input().split())) d = defaultdict(int) for i in m: if i in d: d[i] += 1 else: d[i] = 1 count = 0 for i in d: if d[i] == 1: count = i print(count)
[ "annamalaipalani11@gmail.com" ]
annamalaipalani11@gmail.com
530d39a7ad9a99f45a07382ab008cbebb4e6f6e7
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_289/ch67_2020_04_27_14_46_16_989502.py
05a10228396c4bc4074e1e5a2d4230107ae953a5
[]
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
200
py
def alunos_impares(lista_nomes): lista_impares = [] for e in range len(lista_nomes): if lista_nomes[e] %2 !=0: lista_impares.append(lista_nomes[e]) return lista_impares
[ "you@example.com" ]
you@example.com
e53ef3a51a14ccc8104cc867ed554b8adb9aed95
aad164e4efe1d55cc189c35956bfd435b14a0f52
/eve-8.21.494548/carbon/client/script/graphics/resourceConstructors/caustics.py
0b31954b427fc0133d1ad9e77edc5c4412a39c19
[]
no_license
Pluckyduck/eve
61cc41fe8fd4dca4fbdcc4761a37bcfeb27ed84f
9a277707ab1f162c6bd9618faf722c0be3ea93ad
refs/heads/master
2020-12-28T23:35:29.992875
2013-05-06T14:24:33
2013-05-06T14:24:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,938
py
#Embedded file name: c:/depot/games/branches/release/EVE-TRANQUILITY/carbon/client/script/graphics/resourceConstructors/caustics.py import blue import trinity import bluepy import re import decometaclass class CausticsRenderJob(object): __cid__ = 'trinity.TriRenderJob' __metaclass__ = decometaclass.BlueWrapped...
[ "ferox2552@gmail.com" ]
ferox2552@gmail.com
a6b2d8ca57fdd5b6c2a3e5d15ae0a7de5aaa87d7
e67c27642a4b83b3560dc4bba7de7752278caa07
/example-seaexplorer/process_deploymentRealTime.py
390d934c8e720fa964bf4ca7e1f927624cb6a240
[]
no_license
c-burmaster/pyglider
3749661bfa367642bdd8cb453e8f14428785de46
76131e8419c30852150173a9994a88595cef52aa
refs/heads/master
2020-07-25T14:42:26.752105
2020-04-06T20:44:39
2020-04-06T20:44:39
208,326,724
0
0
null
2019-09-13T18:48:07
2019-09-13T18:48:07
null
UTF-8
Python
false
false
1,545
py
import logging import os import pyglider.seaexplorer as seaexplorer import pyglider.ncprocess as ncprocess import pyglider.plotting as pgplot logging.basicConfig(level='INFO') sourcedir = '~alseamar/Documents/SEA035/000012/000012/C-Csv/*' rawdir = './realtime_raw/' rawncdir = './realtime_rawnc/' deploymentyaml =...
[ "jklymak@gmail.com" ]
jklymak@gmail.com
217d85c42a5b1d3880ab3cbf52e36a73d6d5e6c9
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayFinancialnetAuthEcsignErrorQueryResponse.py
1e5c32e52d696f398ce156d029df7850935ce29a
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,115
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.ErrorLog import ErrorLog class AlipayFinancialnetAuthEcsignErrorQueryResponse(AlipayResponse): def __init__(self): super(AlipayFinancialnetAuthEcsignErro...
[ "jiandong.jd@antfin.com" ]
jiandong.jd@antfin.com
ac9a73f49e91af26961dc6a2016f1f3a3e02557b
68bad4b3d92872bb5b77b4ee503e588d20511a27
/python/scripts_inhibition/old_script/effect_beta_conn_index3.py
71c90589942dfe29b6b59fb06f211f42ddc7e0b9
[]
no_license
mickelindahl/bgmodel
647be626a7311a8f08f3dfc897c6dd4466fc0a92
78e6f2b73bbcbecd0dba25caf99f835313c914ee
refs/heads/master
2023-08-29T13:57:04.122115
2022-02-11T14:28:23
2022-02-11T14:28:23
17,148,386
7
3
null
null
null
null
UTF-8
Python
false
false
1,061
py
''' Created on Nov 13, 2014 @author: mikael ''' from scripts_inhibition import effect_conns from effect_conns import gs_builder_conn d=kw={'n_rows':8, 'n_cols':2, 'w':int(72/2.54*18), 'h':int(72/2.54*18)/3, 'fontsize':7, 'title_fontsize':7, 'gs_builder':gs_builder_co...
[ "mickelindahl@gmail.com" ]
mickelindahl@gmail.com
41371ec303f8bfca6e951551f8bc57780ee8392d
540bf8de2145644fa3549e507871d53352201df8
/Chapter_8/Lopez_TIY8.9.py
0f9c69bf23451d0fa200b8967c79b820adbb2d29
[]
no_license
lope512q09/Python
68d798d4c3135ac187b78db28b73047b2efdbde9
7fdb97da36fd3f7145bfb3c8a43518685b5f6d6d
refs/heads/master
2020-08-23T10:44:07.915389
2020-01-22T15:36:23
2020-01-22T15:36:23
216,598,365
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
message_list = ["Hi!", "How are you?", "I'm good, and you?", "The same!"] def show_messages(messages): for message in messages: print(f"{message}\n") show_messages(message_list)
[ "dillonduff1@frontier.com" ]
dillonduff1@frontier.com
c5a559474d66a4a49796a3aa35b921528e07527b
dee29293af049cac224f0c94a7eaf439e8766085
/bluezutils.py
8c9f7f962272215923940598f7e84d9b713cd26f
[]
no_license
lubusax/2005_dbus
9721d88c42081138fac1b55814f5fc1bbb9eec09
0647a951448fe8bb297ba2988ef35ec7117e389f
refs/heads/master
2022-12-01T23:33:52.162681
2020-08-10T19:41:02
2020-08-10T19:41:02
263,895,499
0
0
null
null
null
null
UTF-8
Python
false
false
1,649
py
import dbus SERVICE_NAME = "org.bluez" ADAPTER_INTERFACE = SERVICE_NAME + ".Adapter1" DEVICE_INTERFACE = SERVICE_NAME + ".Device1" def get_managed_objects(): bus = dbus.SystemBus() manager = dbus.Interface(bus.get_object("org.bluez", "/"), "org.freedesktop.DBus.ObjectManager") return manager.GetManagedObjects(...
[ "lu.bu.sax@gmail.com" ]
lu.bu.sax@gmail.com
3ebb7a68bca91cfa6d41a0fe4b1d036325352a14
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit2215.py
5f520456f8eb7cadea2dc6cd635e3fff07eb5941
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
3,852
py
# qubit number=4 # total number=28 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
1e225faa5c2c7bc6323a87b9640d07cc541acb30
51fd2216d5182a1b3655e7cb1b197862424054f6
/insta_api/config/urls.py
8258104c833242de67443431202090483e1a9431
[]
no_license
seungjinhan/django_clone_instagram
3217829fabe893190e7d6cc37b64b7d3c881f441
f0ea8649d426c167e2ccd2fa3b15e5d3b7867d7b
refs/heads/master
2022-12-26T05:39:16.320763
2020-10-05T13:40:39
2020-10-05T13:40:39
291,262,260
0
0
null
null
null
null
UTF-8
Python
false
false
998
py
"""config URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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-based ...
[ "hanblues@gmail.com" ]
hanblues@gmail.com
062718780f0e402218a9160bf8cafdd20d5a1da6
1749147fb24b13803d3437e0ae94250d67d618bd
/keras/keras33_tensorboard.py
a9043cf01d608a05cfe76b9a3fafa8b1681e955d
[]
no_license
MJK0211/bit_seoul
65dcccb9336d9565bf9b3bc210b1e9c1c8bd840e
44d78ce3e03f0a9cf44afafc95879e4e92d27d54
refs/heads/master
2023-02-06T00:45:52.999272
2020-12-26T07:47:30
2020-12-26T07:47:30
311,308,648
1
0
null
null
null
null
UTF-8
Python
false
false
2,076
py
import numpy as np #1. 데이터 dataset = np.array(range(1,11)) size = 5 def split_x(seq, size): aaa = [] for i in range(len(seq) - size + 1): subset = seq[i : (i+size)] aaa.append([item for item in subset]) # print(type(aaa)) return np.array(aaa) datasets = split_x(dataset, size) x =...
[ "kimminjong0211@gmail.com" ]
kimminjong0211@gmail.com
49582bc92163da9907c82cade99055d72e45a69b
9b422078f4ae22fe16610f2ebc54b8c7d905ccad
/xlsxwriter/test/comparison/test_chart_format08.py
058d4a13f4a4112c40ccca93ab04951eaf939c95
[ "BSD-2-Clause-Views" ]
permissive
projectsmahendra/XlsxWriter
73d8c73ea648a911deea63cb46b9069fb4116b60
9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45
refs/heads/master
2023-07-21T19:40:41.103336
2023-07-08T16:54:37
2023-07-08T16:54:37
353,636,960
0
0
NOASSERTION
2021-04-01T08:57:21
2021-04-01T08:57:20
null
UTF-8
Python
false
false
1,440
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
e768c417c324d6053a1501c6620777767efd6bbf
5483ac2ccf7ac0d951b31dab2a86fe564c397408
/appos.py
f801bf21a4cacfc9c718c9eab3adaad81a3221a0
[]
no_license
Ram-Aditya/Music-Recommender
9d4a7ee8379e98756e2082a95bbb1d5e4318e806
1fdeb5ed208be7908f09a1a5576a30218505a979
refs/heads/master
2020-05-07T14:20:13.772004
2019-10-25T16:12:57
2019-10-25T16:12:57
180,589,469
0
2
null
2019-10-27T12:58:23
2019-04-10T13:37:25
Python
UTF-8
Python
false
false
1,308
py
appos = { "ain't":"it is not like", "aren't" : "are not", "can't" : "cannot", "couldn't" : "could not", "didn't" : "did not", "doesn't" : "does not", "don't" : "do not", "hadn't" : "had not", "hasn't" : "has not", "haven't" : "have not", "he'd" : "he would", "he'll" : "he will", "he's" : "he is", "i'd" : "I would", "i'...
[ "ramaditya.danbrown@gmail.com" ]
ramaditya.danbrown@gmail.com
a56d370607d4b4332ef539db433c38161c4a2bcb
8972658ca2c64703e8281db89d7a6ac47cbabbf7
/backend/linkanywhere/apps/base/behaviors.py
d3c96ffeda67dc40478d7c26a088712f96c2161d
[ "MIT" ]
permissive
denisorehovsky/linkanywhere
15721824719cc8a959cdddb4178cfe754eb4862d
e21d6725fbe0e74a7301e40f9d9bdbac17c68e68
refs/heads/master
2022-07-21T16:16:17.412930
2017-08-24T06:32:37
2017-08-24T06:32:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,051
py
from django.db import models from django.utils import timezone from django.utils.translation import ugettext as _ from behaviors.querysets import PublishedQuerySet from .constants import DRAFT, PUBLISHED, PUBLICATION_STATUS_CHOICES class Published(models.Model): publication_status = models.CharField( _(...
[ "denis.orehovsky@gmail.com" ]
denis.orehovsky@gmail.com