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
8a4a6045331fbe880e465f92ec60997cf8936fb5
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_cabbie.py
6e6ef5a74bd29c23a2f80dd665c5137381783643
[ "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
298
py
#calss header class _CABBIE(): def __init__(self,): self.name = "CABBIE" self.definitions = [u'a driver of a taxi'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [], obj2 = []): return self.jsondata
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
9be3e219222181adcea02d90ac202c71fab57999
62e58c051128baef9452e7e0eb0b5a83367add26
/x12/4051/867004051.py
975e246781a36ab16a69e9109f3e1c5a1418a908
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
3,180
py
from bots.botsconfig import * from records004051 import recorddefs syntax = { 'version' : '00403', #version of ISA to send 'functionalgroup' : 'PT', } structure = [ {ID: 'ST', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BPT', MIN: 1, MAX: 1}, {ID: 'CUR', MIN: 0, MAX: 1}, ...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
4ca43d2b719997ab42b0ad4b0cd4e19ca724f756
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/storagegateway_write_f/working-storage_add.py
fdffa92a273c0f4515c3752bc83ee18b075b6423
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html if __name__ == '__main__...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
e6e142ba00e50a37c2699eb8e541e435194bb656
f09e98bf5de6f6c49df2dbeea93bd09f4b3b902f
/google-cloud-sdk/lib/surface/compute/operations/__init__.py
62bb5791805c19a38a10ac3b652bdc619bac8e65
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
Peterfeng100/notepal
75bfaa806e24d85189bd2d09d3cb091944dc97e6
d5ba3fb4a06516fec4a4ae3bd64a9db55f36cfcd
refs/heads/master
2021-07-08T22:57:17.407571
2019-01-22T19:06:01
2019-01-22T19:06:01
166,490,067
4
1
null
2020-07-25T04:37:35
2019-01-19T00:37:04
Python
UTF-8
Python
false
false
1,057
py
# -*- coding: utf-8 -*- # # Copyright 2014 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 requir...
[ "kevinhk.zhang@mail.utoronto.ca" ]
kevinhk.zhang@mail.utoronto.ca
30e09cae99d89491f961c166bc2f75e473bea427
0809673304fe85a163898983c2cb4a0238b2456e
/src/lesson_algorithms/functools_reduce_short_sequences.py
55bf8b3a815b7250c2e53d854cee96174ee95735
[ "Apache-2.0" ]
permissive
jasonwee/asus-rt-n14uhp-mrtg
244092292c94ff3382f88f6a385dae2aa6e4b1e1
4fa96c3406e32ea6631ce447db6d19d70b2cd061
refs/heads/master
2022-12-13T18:49:02.908213
2018-10-05T02:16:41
2018-10-05T02:16:41
25,589,776
3
1
Apache-2.0
2022-11-27T04:03:06
2014-10-22T15:42:28
Python
UTF-8
Python
false
false
487
py
import functools def do_reduce(a, b): print('do_reduce({}, {})'.format(a, b)) return a + b print('Single item in sequence:', functools.reduce(do_reduce, [1])) print('Single item in sequence with initializer:', functools.reduce(do_reduce, [1], 99)) print('Empty sequence with initializer:', ...
[ "peichieh@gmail.com" ]
peichieh@gmail.com
eb748af2736e8a4cc158f58a4ef86fc66c6f8b14
aa480d8b09dd7ad92c37c816ebcace24a35eb34c
/third-round/540.有序数组中的单一元素.py
98dff56fd19fa1ef3b473daf1bbf5de8db64538d
[]
no_license
SR2k/leetcode
7e701a0e99f9f05b21216f36d2f5ac07a079b97f
de131226159865dcb7b67e49a58d2ddc3f0a82c7
refs/heads/master
2023-03-18T03:37:02.916453
2022-09-16T01:28:13
2022-09-16T01:28:13
182,083,445
0
0
null
2023-03-08T05:44:26
2019-04-18T12:27:12
Python
UTF-8
Python
false
false
1,739
py
# # @lc app=leetcode.cn id=540 lang=python3 # # [540] 有序数组中的单一元素 # # https://leetcode-cn.com/problems/single-element-in-a-sorted-array/description/ # # algorithms # Medium (61.02%) # Likes: 480 # Dislikes: 0 # Total Accepted: 88.8K # Total Submissions: 145.7K # Testcase Example: '[1,1,2,3,3,4,4,8,8]' # # 给你一个仅由整...
[ "luozhou.csy@alibaba-inc.com" ]
luozhou.csy@alibaba-inc.com
d66c544c7a655a84d2c0492fddee34becf974d0a
1e987bd8b8be0dc1c139fa6bf92e8229eb51da27
/util/freefocus/server/flask/flask.py
a41889348901545b057d2d513b7db5ebe3f9a5ae
[]
no_license
tszdanger/phd
c97091b4f1d7712a836f0c8e3c6f819d53bd0dd5
aab7f16bd1f3546f81e349fc6e2325fb17beb851
refs/heads/master
2023-01-01T00:54:20.136122
2020-10-21T18:07:42
2020-10-21T18:09:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,738
py
#!/usr/bin/env python """Run a REST server.""" import typing from argparse import ArgumentParser from contextlib import contextmanager import flask import flask_cors import sqlalchemy from flask import abort from flask import request from util.freefocus import freefocus from util.freefocus import sql app = flask.Fl...
[ "chrisc.101@gmail.com" ]
chrisc.101@gmail.com
77331412b268e9fbf82fdb836edc42208c80e3a2
bc2742cac4347eb8652295a0d4aeb8633eea7c1b
/tests/layers/test_gated_average_layer.py
9b7827828d7f8e22c374d627ce99185f293b49e2
[ "MIT" ]
permissive
temp3rr0r/neupy
933648658cc2a5e85e0fc3955de0a3de65ea97c1
f36071f5f46bf79ffd18485acca941db578656e8
refs/heads/master
2023-05-25T09:55:10.654122
2018-12-17T16:56:30
2018-12-17T16:56:30
163,117,180
0
0
MIT
2023-05-22T21:44:38
2018-12-25T23:24:17
Python
UTF-8
Python
false
false
5,202
py
import numpy as np from neupy import layers from neupy.utils import asfloat from neupy.exceptions import LayerConnectionError from base import BaseTestCase class GatedAverageTestCase(BaseTestCase): def test_gated_average_layer_negative_index(self): gated_avg_layer = layers.GatedAverage(gating_layer_inde...
[ "mail@itdxer.com" ]
mail@itdxer.com
6329de61ee60371c8076e5ae6630d63412935d5a
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_106/ch60_2020_05_05_08_13_18_583778.py
43482c80ca128e108aa30532e4ae4edf9f5a01b4
[]
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
192
py
def eh_palindromo(string): new=[] for i in string: new.append(i) new.reverse() news=''.join(new) if news==string: return True else: return False
[ "you@example.com" ]
you@example.com
69540f2a46c06f8779897219544ba72f26af92e3
bbf874cf4abb20e7ec5c66e808e97ae6f2043c3f
/0x01-python-if_else_loops_functions/1-last_digit.py
b40981bd458d6316d7bf311194b37fbc97f191f0
[]
no_license
imperfectskillz/holbertonschool-higher_level_programming
105fd80c2bea8fbb60eb786ce9019b3f63188342
704e99b29125d6449db32b9d52ede443318df620
refs/heads/master
2021-09-14T10:44:22.551896
2018-05-12T03:38:59
2018-05-12T03:38:59
113,130,980
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
#!/usr/bin/python3 import random number = random.randint(-10000, 10000) if number >= 0: last = number % 10 if last == 0: print("Last digit of {} is {} and is 0".format(number, last)) elif last < 6: print("last digit of {} is {} and is less than 6 and not 0".format(number, last)) elif las...
[ "j.choi.89@gmail.com" ]
j.choi.89@gmail.com
629f048bdb22a01508441f0c624ddca24a37e392
bcca6c84d7fd2cbb782b38c68425b24a2dedeaee
/tests/chainsync/test_chainsync_adapter.py
854d25620dc372d8124deb67d56a268041972a18
[ "MIT" ]
permissive
dpays/chainsync
8ba3f057e889f6b3b7d6405cbea1bf350493164a
1277363787e37aa595571ab8a789831aadf0d3e6
refs/heads/master
2020-03-28T12:05:39.448076
2018-06-15T04:16:56
2018-06-15T04:16:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,937
py
from chainsync import ChainSync from chainsync.adapters.steem import SteemAdapter import unittest class ChainSyncAdapterTestCase(unittest.TestCase): def setUp(self): self.chainsync = ChainSync(adapter=SteemAdapter) def test_adapter_init_default_adapter(self): self.assertNotEqual(self.chainsy...
[ "aaron.cox@greymass.com" ]
aaron.cox@greymass.com
2e47504f5f032988f0852462405fce0dfe5432fc
0130c8b14927097663157846adc4b146d67d2fda
/tests/common/test_run/reduce_min_run.py
e46d731933bfc91f2158e842557a774c331fd039
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSD-3-Clause", "NCSA", "LLVM-exception", "Zlib", "BSD-2-Clause", "MIT" ]
permissive
Shigangli/akg
e8be3e0ee1eafe3e42b4cc4d424c28f08ef4c0bc
3766c54e0b109541932d147a6b5643a334b82403
refs/heads/master
2023-09-06T05:13:40.571583
2021-11-23T03:44:54
2021-11-23T03:44:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,453
py
# Copyright 2019 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...
[ "1027252281@qq.com" ]
1027252281@qq.com
275470b552dbd57a9f1a0a80b53b397c66d110f4
88bd9a59edb18ecc51b3c0939cd96fb5baebf18d
/tests/test_linkedlist.py
777e69c1866af79b65e9f2b806460f6737d2df3c
[]
no_license
LennyBoyatzis/compsci
244d540485155d5846a93a84399d18097925468e
9c1ca2288090ad7c1c7151202bb28990760b1997
refs/heads/master
2022-07-20T22:25:42.549428
2019-09-05T05:26:18
2019-09-05T05:26:18
91,846,937
0
0
null
2022-06-21T21:45:37
2017-05-19T21:31:42
Python
UTF-8
Python
false
false
305
py
from datastructures.linkedlist import SingleLinkedList def test_single_linked_list_init(): linked_list = SingleLinkedList() assert linked_list.head is None def test_push_front_method(): linked_list = SingleLinkedList() linked_list.push_front(7) assert linked_list.head is not None
[ "lennyboyatzis@gmail.com" ]
lennyboyatzis@gmail.com
8beaeecef14307357208d23d9892986cb71a2f27
93ceca6312bbbee196d57df3a6634bd66800bd26
/hgsc_vcf/io.py
bc241057fc45947ee6620d435b769723830ab730
[]
no_license
OpenGenomics/muse-tool
a9c058bddce466a6af64447a7fbdfc68a593f7c0
cd59173c8e69c2a4f073ac2f1e07402835400b85
refs/heads/master
2021-01-24T05:25:28.170881
2019-09-23T07:50:54
2019-09-23T07:50:54
59,329,634
1
5
null
2018-02-10T17:53:16
2016-05-20T22:17:03
Python
UTF-8
Python
false
false
4,494
py
import csv from hgsc_vcf.metainfo import * from collections import * class Reader(object): def __init__(self, fobj): self.fobj = fobj self.header = VCFHeader() self.header.load(self.fobj) self._next = None @staticmethod def parse_info_field(info): infos = info....
[ "kellrott@gmail.com" ]
kellrott@gmail.com
dbdbac578d96de37dc813bbbeee84b1773aabd04
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Anscombe/trend_Lag1Trend/cycle_30/ar_/test_artificial_128_Anscombe_Lag1Trend_30__100.py
5582c252a3315ff23753b7b0b1494b978e138ecb
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
270
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 30, transform = "Anscombe", sigma = 0.0, exog_count = 100, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
22857c0d3ef535f2ee9b813146680f4fb73bde70
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/11/usersdata/64/5178/submittedfiles/jogo.py
5dd413f8c66a659270296c78990142bc4fae2baa
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
# -*- coding: utf-8 -*- from __future__ import division import math Cv = input('Digite o número de vitótias do Cormengo: ') Ce = input('Digite o número de empates do Cormengo: ') Cs = input('Digite o saldo de gols: ') Fv = input('Digite o número de vitótias do Flaminthians: ') Fe = input('Digite o número de empates do...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
8a552617657674743ae61f13d460d8618ba37d1e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_frenzy.py
5638f60ebd7f097df0883fb40ad7ee40d162e391
[ "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
369
py
#calss header class _FRENZY(): def __init__(self,): self.name = "FRENZY" self.definitions = [u'(an example of) uncontrolled and excited behaviour or emotion that is sometimes violent: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(sel...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
173535ac75a264211a5a21d5ad8aa98a968678e0
e2a9c92dc7a4b2e73f2bcc1a2d507b591b75f814
/Many-Tricks-for-ImageCalssification/model/__init__.py
abb0584a4cdb1e1724c348121213c2b82920356c
[]
no_license
ForrestPi/Tricks
f5f74f47e6e6ec24a5a544837eba35c5ce8e773e
d874318d4662c0192bcd147e1aad1e92cd3ea8b6
refs/heads/master
2022-12-08T18:06:24.390238
2020-10-20T04:01:04
2020-10-20T04:01:04
220,658,244
4
2
null
2022-12-08T03:44:45
2019-11-09T14:59:23
Jupyter Notebook
UTF-8
Python
false
false
580
py
# -*- encoding: utf-8 -*- ''' @File : __init__.py.py @Contact : whut.hexin@foxmail.com @License : (C)Copyright 2017-2018, HeXin @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2020/2/21 10:18 xin 1.0 None ''' from .baseline import B...
[ "forrest_zhu@foxmail.com" ]
forrest_zhu@foxmail.com
68551acd8cab934463307fbf762962f323034d23
b4e072d0759775836155ae97e06f6d1f0fce7500
/dasss/__init__.py
7722037351c57feb8d85a4b22e638d7da7153ed5
[]
no_license
David-Hakobyan1/_different
99abdfd62db8224dcc1a944537f43e3d83d34921
7c57f626cac7acfb2666d28f1a623ed60f8020d4
refs/heads/master
2023-06-18T00:27:18.745467
2021-07-19T09:01:52
2021-07-19T09:01:52
387,401,624
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
import os from flask import Flask from flask_sqalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager login_manager = LoginManager() app = Flask(__name__) app.config['SECRET_KEY']='fhuiefh236374623ewhfwwhfeu' basedir = os.path.abspath(os.path.dirname(__file__)) app.config['SQL...
[ "my@mail.ru" ]
my@mail.ru
ab583ceecd8854228670358e21d0f10d0cbf031d
114b61513733083555924fc8ab347335e10471ae
/stackone/stackone/model/LDAPGroupManager.py
0a863ce54ec5c114a96c1a39e5db5fec2260546d
[]
no_license
smarkm/ovm
6e3bea19816affdf919cbd0aa81688e6c56e7565
cd30ad5926f933e6723805d380e57c638ee46bac
refs/heads/master
2021-01-21T04:04:28.637901
2015-08-31T03:05:03
2015-08-31T03:05:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,081
py
from stackone.core.utils.utils import to_unicode, to_str, get_ldap_module import tg import logging LOGGER = logging.getLogger('stackone.model') from pprint import pprint LDAP_Groups_Dict = {} class LDAPBaseGroup(): def __init__(self): self.ldap = get_ldap_module() self.SCOPE_BASE = self.ldap.SCOPE_B...
[ "18614072558@163.com" ]
18614072558@163.com
ed8306c08a8e419a2ded4aea0ef8cf8222dbdc06
30a2f77f5427a3fe89e8d7980a4b67fe7526de2c
/analyze/BHistograms_trigjetht500_eta1p7_CSVM_cfg.py
997496691c837cd4dca4f3093e8fd3e8b1c3cfd4
[]
no_license
DryRun/QCDAnalysis
7fb145ce05e1a7862ee2185220112a00cb8feb72
adf97713956d7a017189901e858e5c2b4b8339b6
refs/heads/master
2020-04-06T04:23:44.112686
2018-01-08T19:47:01
2018-01-08T19:47:01
55,909,998
0
0
null
null
null
null
UTF-8
Python
false
false
5,632
py
import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing import sys options = VarParsing.VarParsing() options.register('inputFiles', '/uscms/home/dryu/eosdir/BJetPlusX/QCDBEventTree_BJetPlusX_Run2012B_v1_3/160429_121519/0000/QCDBEventTree_567.root', VarParsing.VarParsing.multipli...
[ "david.renhwa.yu@gmail.com" ]
david.renhwa.yu@gmail.com
5ea32706b22f4c1e48cb23b8886f3e3df3d91e25
9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612
/exercises/1901090012/1001S02E05_string.py
e71588946e9eb67f1c9fa471a58baa40eac41897
[]
no_license
shen-huang/selfteaching-python-camp
e8410bfc06eca24ee2866c5d890fd063e9d4be89
459f90c9f09bd3a3df9e776fc64dfd64ac65f976
refs/heads/master
2022-05-02T05:39:08.932008
2022-03-17T07:56:30
2022-03-17T07:56:30
201,287,222
9
6
null
2019-08-08T15:34:26
2019-08-08T15:34:25
null
UTF-8
Python
false
false
1,183
py
str = ''' The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although p...
[ "46160162+EthanYan6@users.noreply.github.com" ]
46160162+EthanYan6@users.noreply.github.com
c42629d89614c8314f3d2663c0538bbccebedb25
38d93c5fd72fee380ec431b2ca60a069eef8579d
/Baekjoon,SWEA, etc/프로그래머스/경주로 건설.py
2cdea97359bc34f435388bc297c0774193a060ef
[]
no_license
whgusdn321/Competitive-programming
5d1b681f5bee90de5678219d91cd0fa764476ddd
3ff8e6b1d2facd31a8210eddeef851ffd0dce02a
refs/heads/master
2023-01-01T01:34:22.936373
2020-10-24T11:05:08
2020-10-24T11:05:08
299,181,046
0
0
null
null
null
null
UTF-8
Python
false
false
1,303
py
def dfs(y, x, board, dp, n, mode): dp[y][x] = n h = len(board) w = len(board[0]) if y == h and x == w: return right = [(y, x+1), (y, x-1)] up = [(y+1, x), (y-1, x)] if mode == 'down': for ny, nx in right: if 0<=ny<h and 0<=nx<w and dp[ny][nx] >= n + 500 and boar...
[ "blackgoldace@naver.com" ]
blackgoldace@naver.com
324462ca0e87f7e808df4fee2e9d61aae130a9e7
7f52845b5aca331ac200565f897b2b1ba3aa79d9
/m251/exp_groups/paper/ablations/reg_intermediate/launch/launch_fisher.py
08a2048f9548880d8b25e0b4830dea7da80cae64
[]
no_license
mmatena/m251
f8fb4ba9c10cd4dfcf5ee252f80e4832e4e86aa0
e23249cf0896c5b42bcd07de70f7b9996d8b276b
refs/heads/master
2023-05-06T10:44:10.945534
2021-06-03T15:07:29
2021-06-03T15:07:29
321,217,654
0
0
null
null
null
null
UTF-8
Python
false
false
1,208
py
""" export PYTHONPATH=$PYTHONPATH:~/Desktop/projects/m251:~/Desktop/projects/del8 python3 m251/exp_groups/paper/ablations/reg_intermediate/launch/launch_fisher.py """ from del8.executors.gce import gce from del8.executors.vastai import vastai from del8.executors.vastai import api_wrapper from m251.exp_groups.paper.a...
[ "michael.matena@gmail.com" ]
michael.matena@gmail.com
7291c077f29384a0575867612672d234f52945ef
0674b9d8a34036a6bbe2052e1cae0eee9a44554b
/SWEA/2819.py
7d8af0a98a560adf5d023ddc155ace8677c6cce2
[]
no_license
timebird7/Solve_Problem
02fb54e90844a42dc69a78afb02cc10a87eda71c
2d54b6ecbe3edf9895fd8303cbca99b3f50f68f3
refs/heads/master
2020-04-14T23:37:15.354476
2019-04-15T14:32:41
2019-04-15T14:32:41
164,208,673
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
dx = [0,1,0,-1] dy = [1,0,-1,0] def dfs(i,j,result): global results, nums if len(result) == 7: results.add(result) return else: for k in range(4): x = i+dx[k] y = j+dy[k] if 0<=x<4 and 0<=y<4: dfs(x,y,result+nums[x][y]) TC = in...
[ "timebird7@gmail.com" ]
timebird7@gmail.com
18c6913fb81bb7788f18e1237a2b7dc2fcdbd837
1edfd072fae205d766e7c488f1af64f3af9fc23a
/src/python/shared/resend_new_sensor_messages.py
be8f468dc97b084dc81da4b2226a4c064fde4aec
[]
no_license
kth-social-robotics/multisensoryprocessing
17fc96eb3776642de1075103eeb461125020c892
867abe6c921fbf930ac26e0f43a8be0404817bcd
refs/heads/master
2021-01-21T11:50:16.348566
2018-11-05T14:48:42
2018-11-05T14:48:42
102,027,696
4
2
null
2018-02-20T15:14:22
2017-08-31T17:39:58
C++
UTF-8
Python
false
false
371
py
import zmq import time from threading import Thread def resend_new_sensor_messages(): def run(): time.sleep(2) context = zmq.Context() s = context.socket(zmq.REQ) s.connect('tcp://localhost:45322') s.send_string('new_sensor') s.recv() thread2 = Thread(target = ...
[ "pjjonell@kth.se" ]
pjjonell@kth.se
2b8fd85409da823f4be40451742e7f66a75e29b9
d0f2f7f220c825d827643ca81a08a23cfb871965
/backend/code/rankor/events/actions.py
a6967842eddad33fbcb6a37f79240f295caf6c74
[]
no_license
socek/rankor
7e5e73f8f13bc3d12bd1b18ef01bef04f8f38f0a
eaf5002dd1e852895670517a8cdcb07bf7c69f66
refs/heads/master
2021-04-12T07:52:20.341699
2018-06-03T20:07:17
2018-06-03T20:07:17
125,769,351
1
0
null
null
null
null
UTF-8
Python
false
false
1,750
py
from rankor import app from rankor.events.drivers import ScreenCommand class Event(object): def __init__(self, **kwargs): self.data = kwargs def send(self): with app as context: command = ScreenCommand(context.dbsession) command.send_event(self.name, **self.data) cla...
[ "d.dlugajczyk@clearcode.cc" ]
d.dlugajczyk@clearcode.cc
786381c19e3ac9f1748404798c53e1b36386ee54
65c8a6a7af2ee8cdf3866d012ea814887bd68a26
/ppro360_automation/Ppro360/CoachingAndTriadCoaching_Pages/GoalSettingandNotesForm.py
8b48f68d9c71cdb51a156bdbf127b429440669d4
[]
no_license
1282270620/automation_test
9b3c595c3f7a139ded0a638ae4bcf31e0b7f9686
3faf86f0d641089eaf27eba906d22157dd2c1f5d
refs/heads/master
2020-04-01T06:35:33.873989
2018-10-21T03:05:17
2018-10-21T03:05:17
152,954,477
0
0
null
null
null
null
UTF-8
Python
false
false
1,123
py
''' Created on 20170703 @author: lei.tan ''' from selenium.webdriver.common.by import By from Tablet_pages import BasePage class GoalSettingandNotesForm(BasePage.Action): def __init__(self): self.callRecordingNumber_loc=(By.XPATH,"//*[@id='container']/div/section/div/form/div/div[3]/di...
[ "1282270620@qq.com" ]
1282270620@qq.com
c8dbaa1c2f5647253e3c3ab032c30dfed6d6b97a
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_collaborative.py
d1a3b8e956f1707aae7d0b8e2c6db302aa7bf14b
[ "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
441
py
#calss header class _COLLABORATIVE(): def __init__(self,): self.name = "COLLABORATIVE" self.definitions = [u'involving two or more people working together for a special purpose: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
5f373d64ed1ef5aa6fd75dcd19e8c78dffc2d86c
c33968b06f072ae36849e6e61a7e7ce3d6ae364b
/setup.py
5fdc74fde120ab304fd3e5586df19fea92a2ae57
[]
no_license
talkara/abita.locales
051bb200bf81a66515cbdad61d3bb76ac44665f7
b4135e30a9f6c703999905801f388ae8ee91e2a6
refs/heads/master
2021-05-27T05:01:08.192155
2013-05-13T10:19:36
2013-05-13T10:19:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
from setuptools import find_packages from setuptools import setup setup( name='abita.locales', version='0.2.1', description="Overrides default translations of Plone for ABITA site.", long_description=open("README.rst").read(), classifiers=[ "Framework :: Plone", "Framework :: Plone...
[ "taito.horiuchi@gmail.com" ]
taito.horiuchi@gmail.com
f3a6bbd121b4706726205070aa94817f0637d4bd
ae02e46f8bbe7a8db4a02f6e1b0523a6bb03e5d0
/wtq/wtq/items.py
faaf346da58460e2516c1ed3fe86c297bedede8e
[ "Apache-2.0" ]
permissive
wangtianqi1993/ScrapyProject
d0cb0a2f86b4f5930067cfefed67efe0c1dc8422
4b7b7d1c683bc412d70d8d15be36bcc71967b491
refs/heads/master
2020-07-14T11:10:33.746789
2016-09-16T08:53:46
2016-09-16T08:53:46
67,754,677
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy from scrapy.item import Field class WtqItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() name = Field(...
[ "1906272972@qq.com" ]
1906272972@qq.com
59107bc428d0d9a5dc51a319b1fba875b846ca4e
cfdc0187ca770c09fa7a5868caedd1b5de0c668f
/pythoncollections/listprograms/binarysearch.py
7bd76665a2bbf1120255c658e143462f24c07f7c
[]
no_license
nelvinpoulose999/Pythonfiles
41ef15c9e3423ef5c8c121db7c6196772c40aa27
1e2129b1e1fb2a55100622fc83822726c7836224
refs/heads/master
2023-03-13T22:24:38.049100
2021-03-04T07:12:14
2021-03-04T07:12:14
333,663,557
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
# Binary search arr=[12,50,8,25,60,30,31] element=int(input('enter the element')) flag=0 arr.sort() print(arr) length=len(arr) print(length) lowl=0 uppl=len(arr)-1 print(uppl) while (lowl<=uppl): mid=(lowl+uppl)//2 #print(arr[mid]) if(element>arr[mid]): lowl=mid+1 elif(element<arr[mid]): uppl=mid-1...
[ "nelvinpoulose999@gmail.com" ]
nelvinpoulose999@gmail.com
35b37da4a41cd4e5cae2d72380c4ee7bcf1cb6c3
bcb4c127578d2874ce445e021bf276ff07d6fa70
/476.number-complement.py
6faf920375a12022c3628e2e374cc57b3bd0135b
[]
no_license
SilverMaple/LeetCode
3f9a4ef95cbaaed3238ad1dd41b6e6182c64575c
581486a1e08dbceddcb64da4f6c4ed6c73ed5e84
refs/heads/master
2020-07-26T06:37:08.897447
2020-03-31T14:55:18
2020-03-31T14:55:18
208,566,047
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
# # @lc app=leetcode id=476 lang=python # # [476] Number Complement # # @lc code=start class Solution(object): def findComplement(self, num): """ :type num: int :rtype: int """ if num == 0: return 1 mask = 1<<30 while num&mask == 0: ma...
[ "1093387079@qq.com" ]
1093387079@qq.com
9d96fadf5961ab0e99b70dc45911f05a86b5c463
f42c91f5fa040c739ab6bc1803f3253561f670fd
/mongodb/pymongo_page.py
073513604cb6653301062657c400ed3be9b35c45
[]
no_license
hackrole/daily-python
11f29c698464172118ae30d7e5920692a63c3d8e
2f1fb3b9646fa1c7131df6e336b6afd38128fbbd
refs/heads/master
2022-10-16T08:06:14.067055
2022-09-19T13:35:17
2022-09-19T13:35:17
9,448,934
0
0
null
null
null
null
UTF-8
Python
false
false
1,339
py
#!/usr/bin/env python #coding=utf8 """ 使用pymongo实现的分页程序, 不使用skip,limit实现。 通过比较id来实现 """ import unittest from pymongo.connection import MongoClient def init_connect(dbname="test", collection="page", host="localhost", port=27017): """ init the mongodb connection """ conn = MongoClient(host, port) coll = c...
[ "daipeng123456@gmail.com" ]
daipeng123456@gmail.com
b82d8815d2881d84d7c9ed9d1df9ecbc36139998
25040bd4e02ff9e4fbafffee0c6df158a62f0d31
/www/htdocs/wt/lapnw/data/item_32_3.tmpl.py
fc25344506c03475ee3a5f02879f2ed019e7c021
[]
no_license
erochest/atlas
107a14e715a058d7add1b45922b0f8d03bd2afef
ea66b80c449e5b1141e5eddc4a5995d27c2a94ee
refs/heads/master
2021-05-16T00:45:47.585627
2017-10-09T10:12:03
2017-10-09T10:12:03
104,338,364
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
from lap.web.templates import GlobalTemplate, SubtemplateCode class main(GlobalTemplate): title = 'Page.Item: 32.3' project = 'lapnw' class page(SubtemplateCode): pass
[ "eric@eric-desktop" ]
eric@eric-desktop
e83d7beec0fdb6a3185731cf8ce3b1b1dd178705
ae7627dc5e6ef7e9f8db9d825a6bc097da5b34de
/python assignment ii/question_no_9.py
a029afae4c12501240f18af005dfc09016529a72
[]
no_license
atulzh7/IW-Academy-Python-Assignment
cc5c8a377031097aff5ef62b209cb31f63241505
674d312b1438301865c840257686edf60fdb3a69
refs/heads/master
2022-11-14T13:26:16.747544
2020-07-12T16:06:08
2020-07-12T16:06:08
283,823,502
0
1
null
2020-07-30T16:24:30
2020-07-30T16:24:29
null
UTF-8
Python
false
false
717
py
"""Binary search function """ def binary_search(sequence, item): #initialization yo avoid garbage value in variable high = len(sequence) - 1 low = 0 mid = 0 while low <= high: mid = (high + low) // 2 if arr[mid] < item: low = mid + 1 elif arr[mid] > ite...
[ "=" ]
=
306a7721152e9eb6b28e662d6568fd7fc185c704
6bf336bc8d6ba061e0c707bdd8595368dee4d27b
/tutorials/10_days_of_statistics/poisson_distribution_i.py
37fcfd7a6e1dc201e075a552306733d0ecbb4876
[ "MIT" ]
permissive
avenet/hackerrank
aa536214dbccf5a822a30ea226e1dbaac9afb243
e522030a023af4ff50d5fc64bd3eba30144e006c
refs/heads/master
2021-01-01T20:15:06.647873
2017-11-24T23:59:19
2017-11-24T23:59:19
98,801,566
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
from functools import reduce from operator import mul E = 2.71828 def poisson_distribution(t, k): success_probability = t ** k distribution_part = 1.0 / (E ** t) successes_combination = fact(k) return ( ( success_probability * distribution_part ) / successes_combinati...
[ "andy.venet@gmail.com" ]
andy.venet@gmail.com
06df6ae711be16094a2119dad9e994a87ba43a11
ec7fca4065a12bada3fdf9e92fc7c52ae9cddc83
/setup.py
8fa2b083f93c92d20535997bf324642bd9783890
[ "MIT" ]
permissive
SLongofono/sneakysnek
c67d913801ad3c0bb320c8fca0ad645faf56eb2d
3001e83755da6337f42e3136cb5e29d098800ddf
refs/heads/master
2021-09-05T15:40:56.030291
2018-01-29T10:45:07
2018-01-29T10:45:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,324
py
#!/usr/bin/env python from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except(IOError, ImportError): long_description = "" packages = [ "sneakysnek", "sneakysnek.recorders" ] requires = [] extras_require = { ":sys_platform == 'darwin'":...
[ "info@nicholasbrochu.com" ]
info@nicholasbrochu.com
2e6c44452b9a4d23c7de2e2283bec77b1394bc6e
10e5b1b2e42a2ff6ec998ed900071e8b5da2e74e
/design/1381_design_a_stack_with_increment_operation/1381_design_a_stack_with_increment_operation.py
616a72f862d666343aeae68684a63a2efdd8e0c2
[]
no_license
zdyxry/LeetCode
1f71092d687316de1901156b74fbc03588f0b0a5
b149d1e8a83b0dfc724bd9dc129a1cad407dd91f
refs/heads/master
2023-01-29T11:59:14.162531
2023-01-26T03:20:23
2023-01-26T03:20:23
178,754,208
6
4
null
null
null
null
UTF-8
Python
false
false
549
py
class CostomStack(object): def __init__(self, maxSize): self.n = maxSize self.stack = [] self.inc = [] def push(self, x): if len(self.inc) < self.n: self.stack.append(x) self.inc.append(0) def pop(self): if not self.inc: return -...
[ "zdyxry@gmail.com" ]
zdyxry@gmail.com
248014df533f845174e5ea4d9eb271296a649d61
9feac0e0cc68891707772d5b557a44e87377dec5
/fuzzers/071-ps8-bufg/generate_permutations.py
58442f658c90c606f0ec59287e1638a22d31b1ea
[ "LicenseRef-scancode-dco-1.1", "ISC" ]
permissive
daveshah1/prjuray
8213030dd83f69b0caba488d4154d006a08c648b
02b31b5d7c19f66f50b3a28218921433df8a9af8
refs/heads/master
2022-11-26T14:50:46.500424
2020-07-17T23:23:39
2020-07-17T23:23:39
280,824,403
2
0
ISC
2020-07-19T08:32:10
2020-07-19T08:32:10
null
UTF-8
Python
false
false
2,600
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2020 The Project U-Ray Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC import csv from utils.clock_utils import ...
[ "537074+litghost@users.noreply.github.com" ]
537074+litghost@users.noreply.github.com
bc2368589f35d8fc2648dca4462a81428cd140ee
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/ProdResource.py
d6f8dde13be2bb3de55e548a2e06cf35597c36d8
[ "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
2,018
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class ProdResource(object): def __init__(self): self._key = None self._name = None self._type = None self._value = None @property def key(self): return ...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
34880cf8e8a7fb475fbacb1cb45b653e69cd3101
c44d1735c21164bb9facc7eac1412a41295130a9
/raven/contrib/flask.py
93e2f5420d4af502ba410fe44bd2dfd46ad0b6ba
[ "BSD-3-Clause" ]
permissive
joshma/raven-python
082b237b73e5f8f825fe013b6fdc3144055bfeec
9f02875b6bf120c28c455547d6f7b2618ffbf070
refs/heads/master
2021-01-22T13:17:16.202650
2013-12-13T01:48:55
2013-12-13T01:48:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,569
py
""" raven.contrib.flask ~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import try: from flask_login import current_user except ImportError: has_flask_login = False else: has_f...
[ "dcramer@gmail.com" ]
dcramer@gmail.com
e1c60de6b9628d02d92def760be54bcc5aad7781
1edee17385db53395352e91cf9f4b566a0f07b45
/17_requests.py
1837ed08298f814eee55c996a40c163042906474
[]
no_license
Zerl1990/2020_python_workshop
705fbdd280aea8d75df0c7d14f1ef617c509cd08
78a13962f8c1ab6bc0ef85558a0b54845ac8c3a1
refs/heads/master
2022-11-26T20:36:47.212113
2020-08-08T19:02:13
2020-08-08T19:02:13
281,791,940
0
0
null
null
null
null
UTF-8
Python
false
false
607
py
# Import requests library import requests # Define url url = 'https://api.openaq.org/v1/cities?country=MX' # Execute a get request to Rest services response = requests.get(url) # Print response object print(f'Response from {url} is {response}') # Print response status code print(f'Response status code: {response.st...
[ "luis.m.rivas@oracle.com" ]
luis.m.rivas@oracle.com
c4109be7d713a6bb1f9c59d02bfcb0a60da154a3
81c8baf31e15cf132b22cc489e7c8fc7b86003a4
/fulltext/registry.py
39ab6bd2ff12756510edfc1c3e52bf2c15d8018d
[ "MIT" ]
permissive
LinuxOSsk/Shakal-NG
0b0030af95a8dad4b120ae076920aa3a4020c125
93631496637cd3847c1f4afd91a9881cafb0ad83
refs/heads/master
2023-09-04T04:27:05.481496
2023-08-30T04:10:41
2023-08-30T04:10:41
2,168,932
11
8
MIT
2023-08-16T03:34:02
2011-08-07T14:36:25
Python
UTF-8
Python
false
false
724
py
# -*- coding: utf-8 -*- from collections import defaultdict from django.utils.functional import cached_property class FulltextRegister(object): def __init__(self): self.__registered = [] self.__by_model = defaultdict(list) def __iter__(self): return iter(self.__registered) def register(self, fulltext): ...
[ "miroslav.bendik@gmail.com" ]
miroslav.bendik@gmail.com
6b0de98bbc67259392d7f7b7ce46d6038aa470df
963e0c0a12699890fb8303e8272a58a9c78d5e1d
/networks/resnet_encoder.py
de62869855316ff5cfec6fd0958c60528db53a32
[]
no_license
TWJianNuo/Stereo_SDNET
83cb98adf083daae44382f8c0198683a672b5045
e2a13984abb952b1083cbf06c51ffcc9d3fd511d
refs/heads/master
2020-08-14T11:21:41.485309
2019-10-30T20:09:30
2019-10-30T20:09:30
215,158,844
0
0
null
null
null
null
UTF-8
Python
false
false
4,254
py
# Copyright Niantic 2019. Patent Pending. All rights reserved. # # This software is licensed under the terms of the Monodepth2 licence # which allows for non-commercial use only, the full terms of which are made # available in the LICENSE file. from __future__ import absolute_import, division, print_function import n...
[ "twjiannuo@gmail.com" ]
twjiannuo@gmail.com
1b8d80d1332c15f78159e1c04c61c731bc87fb22
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/grains/cb2dd80523174feda773833adb8eed42.py
af33b9d4b60b65c2f8450d06dc4c77109a1c5eb3
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
171
py
#grains.py #Surely a bread winner def on_square(square): return 2**(square-1) def total_after(number): return sum(on_square(num) for num in range(1,number+1))
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
2e257e7f0a607d965283c7f5fe7e047e6aebca51
3b4c8c8b2e9e372a6b5d3c2fe717a3cadab4abd0
/stepler/nova/fixtures/hypervisor.py
c17b0bb7651f9d50c14f45c47db7bfb16df8227d
[]
no_license
Mirantis/stepler-draft
242b25e116715c6550414826c7e5a3f212216833
2d85917ed9a35ee434d636fbbab60726d44af3a1
refs/heads/master
2021-05-01T01:02:49.670267
2016-12-01T10:39:37
2016-12-01T11:04:50
74,979,322
0
0
null
2020-02-26T12:07:21
2016-11-28T14:11:45
Python
UTF-8
Python
false
false
1,714
py
""" ------------------- Hypervisor fixtures ------------------- """ # 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 app...
[ "g.dyuldin@gmail.com" ]
g.dyuldin@gmail.com
e5cc77396f9b9773ee72ee68e409f7e3bcb4830c
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_072/ch29_2019_08_22_16_43_24_439163.py
7ddebc7b49971299f322b1c09507e3fa1c37b784
[]
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
234
py
a=int(input('Salário: ')) def calcula_aumento(a): y1=a*1.1 y2=a*1.15 if a>1250: return 'Aumento de R$ {0:.2f}'.format(y1) else: return 'Aumento de R$ {0:.2f}'.format(y2) print(calcula_aumento(a))
[ "you@example.com" ]
you@example.com
afbce37d5c69d3bef3b4fd803851db683dbf49c6
221cada2354556fbb969f25ddd3079542904ef5d
/Leetcode/264.py
4a9b3389a6bab222a1a195d16eeeb4c9209d22ac
[]
no_license
syzdemonhunter/Coding_Exercises
4b09e1a7dad7d1e3d4d4ae27e6e006732ffdcb1d
ca71572677d2b2a2aed94bb60d6ec88cc486a7f3
refs/heads/master
2020-05-24T11:19:35.019543
2019-11-22T20:08:32
2019-11-22T20:08:32
187,245,394
1
0
null
null
null
null
UTF-8
Python
false
false
569
py
# https://leetcode.com/problems/ugly-number-ii/ # T: O(n) # S: O(n) class Solution: def nthUglyNumber(self, n: int) -> int: nums = [0]*n idx_2, idx_3, idx_5 = 0, 0, 0 nums[0] = 1 for i in range(1, len(nums)): nums[i] = min(nums[idx_2]*2, min(nums[idx_3]*3, nums[idx_5]*5)...
[ "syzuser60@gmail.com" ]
syzuser60@gmail.com
b7fe6b8b53471259e84556736d55859f62eb1a81
9ea92648cb1bb9c3d91cee76d251981f1551d70a
/Multiplayer/Harrowland/HarrowlandAlt.py
08745253a9f26c527a94864b225b075efa738c2c
[]
no_license
1234hi1234/CodeCombat
5c8ac395ac605e22b3b9501325c3eefbc3180500
585989200d965af952d1cdb8aca76e7f3db15c64
refs/heads/master
2020-03-15T02:39:07.979096
2018-03-12T14:23:29
2018-03-12T14:23:29
131,923,000
0
0
null
2018-05-03T01:05:43
2018-05-03T01:05:43
null
UTF-8
Python
false
false
4,963
py
enemy_types = {} enemy_types['knight'] = {'danger': 100, 'focus': 100} enemy_types['potion-master'] = {'danger': 100, 'focus': 100} enemy_types['ranger'] = {'danger': 100, 'focus': 100} enemy_types['trapper'] = {'danger': 100, 'focus': 100} enemy_types['samurai'] = {'danger': 100, 'focus': 100} enemy_types['librarian']...
[ "vadim-job-hg@yandex.ru" ]
vadim-job-hg@yandex.ru
c45ce4740fa2a925305485c01cd487ebf775fb88
02c6653a60df3e6cfeab65f125cb6daccb7735be
/fjord/heartbeat/urls.py
659f237fbb4075496422816ee9bd7b9cb172adb5
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
taranjeet/fjord
35f628afd87ac16175367bb1f82a715c1ee7d0bb
47d6380313d010a18621b4d344d01792003d04c9
refs/heads/master
2021-05-29T11:44:21.254707
2015-08-28T14:01:51
2015-08-28T14:01:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
from django.conf.urls import patterns, url from .api_views import HeartbeatV2API urlpatterns = patterns( 'fjord.heartbeat.views', url(r'^api/v2/hb/?$', HeartbeatV2API.as_view(), name='heartbeat-api') )
[ "willkg@mozilla.com" ]
willkg@mozilla.com
719ec4f3c3e59c60171452530146d2221945d4ee
c3082eb2adc43b311dd3c9ff16fd3ed9df85f266
/python/examples/pytest/test_fibo.py
b5fb18f78c4551b40119f1a0286fb195b1b872b7
[]
no_license
szabgab/slides
78818c7138331b3ba9e221c81da3678a46efe9b3
63bba06678554db737602f2fbcd6510c36037e8a
refs/heads/main
2023-08-31T07:13:51.536711
2023-08-29T13:17:59
2023-08-29T13:17:59
122,212,527
87
69
null
2023-05-19T06:55:11
2018-02-20T14:57:03
Python
UTF-8
Python
false
false
356
py
import fibo def test_fibonacci_number(): assert fibo.fibonacci_number(1) == 1 assert fibo.fibonacci_number(2) == 1 assert fibo.fibonacci_number(3) == 2 assert fibo.fibonacci_number(4) == 2 def test_fibo(): assert fibo.fibonacci_list(1) == [1] assert fibo.fibonacci_list(2) == [1, 1] assert ...
[ "gabor@szabgab.com" ]
gabor@szabgab.com
2bcaeeb5d8679c9c878aa8b7464b5a3b67e50e49
ded10c2f2f5f91c44ec950237a59225e8486abd8
/.history/2/matrix_squaring_20200412200806.py
9ba361ee1a74e58d4d8e25e293a01152216bd14d
[]
no_license
jearistiz/Statistical-Physics-Projects
276a86407b32ded4e06b32efb2fadbd8eff8daed
d9c5b16a50856e148dc8604d92b6de3ea21fc552
refs/heads/master
2022-11-05T03:41:23.623050
2020-06-28T06:36:05
2020-06-28T06:36:05
254,909,897
1
0
null
null
null
null
UTF-8
Python
false
false
2,449
py
# -*- coding: utf-8 -*- from __future__ import division import numpy as np import matplotlib.pyplot as plt from time import time def rho_free(x,xp,beta): """ Uso: devuelve elemento de matriz dsnsidad para el caso de una partícula libre en un toro infinito. """ return (2.*np.pi*beta)**(-0.5) * np.exp(-(...
[ "jeaz.git@gmail.com" ]
jeaz.git@gmail.com
ff7c686a74fe29a06e92a14b49df3fabc3d41990
f9a5e7233875989f994438ce267907d8210d60a1
/test/cylindrical_bands/metalearning/knn_ranking/RMSE/k=3/customised_set/cylinder_prediction_custom_AUCROC.py
0d50ab65229407ef1d6da1dd984ef51326226d83
[]
no_license
renoslyssiotis/When-are-Machine-learning-models-required-and-when-is-Statistics-enough
da8d53d44a69f4620954a32af3aacca45e1ed641
6af1670a74345f509c86b7bdb4aa0761c5b058ff
refs/heads/master
2022-08-29T20:21:57.553737
2020-05-26T18:03:46
2020-05-26T18:03:46
256,439,921
0
0
null
null
null
null
UTF-8
Python
false
false
2,210
py
import sys, os, pickle from pathlib import PurePath current_dir = os.path.realpath(__file__) p = PurePath(current_dir) sys.path.append(str(p.parents[7])+'/metalearners/knn_ranking_method/RMSE') from KNN_ranking_k_3_RMSE import KNN_ranking #Load the selected meta-dataset after performing zero-variance threshold with op...
[ "rl554@cam.ac.uk" ]
rl554@cam.ac.uk
bac2b87e56944a01d46105dc6f7838937e6a6398
c380976b7c59dadaccabacf6b541124c967d2b5a
/.history/src/data/data_20191021145012.py
878b2b9bced3b5913cb149f5d8e0ed6dc8bbab21
[ "MIT" ]
permissive
bkraft4257/kaggle_titanic
b83603563b4a3c995b631e8142fe72e1730a0e2e
f29ea1773773109a867278c001dbd21a9f7b21dd
refs/heads/master
2020-08-17T12:45:28.653402
2019-11-15T16:20:04
2019-11-15T16:20:04
215,667,760
0
0
null
null
null
null
UTF-8
Python
false
false
5,836
py
import pandas as pd import numpy as np from typing import Union from pathlib import Path from nameparser import HumanName class ExtractData: def __init__(self, filename: Union[str, Path], age_bins=None, drop_columns=None): # """Extract Training Data from file or Path # Arguments: # fi...
[ "bob.kraft@infiniteleap.net" ]
bob.kraft@infiniteleap.net
803e85beedc5941fec0a4790c7e8e2d6034d23c9
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/expert/5_1.py
25b899efb6d6d0099e799bc80911fcb7704bc88c
[]
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
5,079
py
Optparse module in Python **Optparse** module makes easy to write command-line tools. It allows argument parsing in the python program. * **optparse** make it easy to handle the command-line argument. * It comes default with python. * It allows dynamic data input to change the output **Code: C...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
0557e253ffe377f396b357d6b0b6fbea9fdb29fd
d9f775ba2a46b8c95d68e61bea929810a226f4b8
/src/investigation/analyze_threshold_neural_network_classifier.py
7760b2058f7c74e5905913aa113c842b8fd4028c
[]
no_license
barium-project/qubit-reliability
6e25f916fa2fcd2c7a078edc7045071ffae9e0bc
902ef98e9a51fe3cf4413ccb79e90d44051a48b7
refs/heads/master
2022-12-13T20:02:02.826329
2020-06-23T04:14:41
2020-06-23T04:14:41
251,139,645
0
0
null
2022-12-08T09:43:15
2020-03-29T21:35:40
Jupyter Notebook
UTF-8
Python
false
false
2,925
py
from src.features.build_features import * from src.models.threshold_classifiers import * from src.visualization.visualize import * from sklearn.model_selection import StratifiedKFold from sklearn.neural_network import MLPClassifier from sklearn.pipeline import Pipeline from sklearn.metrics import classification_repor...
[ "quentintruong@users.noreply.github.com" ]
quentintruong@users.noreply.github.com
014809a20edc47b0f80c3f630ec3cc2a6744ad2c
ed37c6acf35ad8dfa7064c7d304f046c3657cb7a
/leetcode/google_prep/interview_process/1_unique_email.py
dcc4e4af6a4e737bc580bcd1b42c12bd29134c15
[]
no_license
etture/algorithms_practice
7b73753f5d579b7007ddd79f9a73165433d79b13
ba398a040d2551b34f504ae1ce795e8cd5937dcc
refs/heads/master
2021-11-18T20:37:11.730912
2021-10-03T23:25:24
2021-10-03T23:25:24
190,863,957
0
0
null
null
null
null
UTF-8
Python
false
false
1,724
py
# Basic imports -------------------------------------------- from __future__ import annotations import sys sys.setrecursionlimit(10**6) from os.path import dirname, abspath, basename, normpath root = abspath(__file__) ...
[ "etture@gmail.com" ]
etture@gmail.com
733fe640fa3867b0fcb26f19fc4edab1eeb4e217
bdb3716c644b8d031af9a5285626d7ccf0ecb903
/code/UI/OpenAPI/python-flask-server/openapi_server/test/test_translate_controller.py
0c41ea731f2ae0627548d0524755aeed0c091282
[ "MIT", "Apache-2.0" ]
permissive
RTXteam/RTX
97d2a8946d233d48cc1b165f5e575af21bda4b26
ed0693dd03149e56f7dfaf431fb8a82ace0c4ef3
refs/heads/master
2023-09-01T21:48:49.008407
2023-09-01T20:55:06
2023-09-01T20:55:06
111,240,202
43
31
MIT
2023-09-14T16:20:01
2017-11-18T21:19:13
Python
UTF-8
Python
false
false
1,003
py
# coding: utf-8 from __future__ import absolute_import import unittest from flask import json from six import BytesIO from openapi_server.models.query import Query # noqa: E501 from openapi_server.test import BaseTestCase class TestTranslateController(BaseTestCase): """TranslateController integration test stu...
[ "edeutsch@systemsbiology.org" ]
edeutsch@systemsbiology.org
8096d340b32c90ac60bfa05eba86ddb281b636b5
a4e2b2fa5c54c7d43e1dbe4eef5006a560cd598e
/django_silky/example_app/gen.py
288d35821568f40c6ca93eece2162dab74d0f8b1
[ "MIT" ]
permissive
joaofrancese/silk
baa9fc6468351ec34bc103abdbd1decce0ae2f5d
d8de1367eb70f4405f4ae55d9286f0653c5b3189
refs/heads/master
2023-04-01T07:30:42.707427
2017-02-22T14:06:05
2017-02-22T14:06:05
23,427,190
1
1
null
null
null
null
UTF-8
Python
false
false
293
py
"""generate fake data for the example app""" from example_app.models import Blind __author__ = 'mtford' def main(): venetian = Blind.objects.create(name='Venetian', child_safe=False) roller = Blind.objects.create(name='Roller', child_safe=True) if __name__ == '__main__': main()
[ "mtford@gmail.com" ]
mtford@gmail.com
4a78028471cb49bb731b246301644655ed79c5c4
9d1491368c5e87760131ba27d252ee2d10620433
/gammapy/time/tests/test_simulate.py
8d7abfbdc73cb8e1bad04343c6359981797ac35e
[ "BSD-3-Clause" ]
permissive
cnachi/gammapy
f9295306a8e81d0b7f4d2111b3fa3679a78da3f7
3d3fc38c111d2f490d984082750f8003580fe06c
refs/heads/master
2021-01-20T23:37:59.409914
2016-06-09T08:36:33
2016-06-09T08:36:33
60,764,807
0
0
null
2016-06-09T09:55:54
2016-06-09T09:55:54
null
UTF-8
Python
false
false
716
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from numpy.testing import assert_almost_equal from astropy.units import Quantity from ..simulate import make_random_times_poisson_process as random_times ...
[ "Deil.Christoph@gmail.com" ]
Deil.Christoph@gmail.com
5057929f5ddc777fbf9c98216d967df1d3d54632
9ce80fd45e0a2a321d9285be1998133405c8cf11
/meiduo_mall/celery_tasks/main.py
a425e9e0f64d30b876eb768fa35d6da7e31a20e8
[ "MIT" ]
permissive
dingmingren/meiduo_project
db7d48acf2f8ad5612fe89370d9ed6633c4ac60a
51497064e8dd24fb45f4d39ca6ed9ae623b8cb79
refs/heads/master
2020-07-05T04:46:55.121739
2019-08-27T13:00:34
2019-08-27T13:00:34
202,483,629
0
0
null
null
null
null
UTF-8
Python
false
false
448
py
#1、导包 from celery import Celery #2、加载项目配置文件 import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "meiduo_mall.settings.dev") #3、实例化 app = Celery('celery_tasks') #4、加载celery配置文件 app.config_from_object('celery_tasks.config') #5、celery加载任务 #发短信任务 app.autodiscover_tasks(['celery_tasks.sms','celery_tasks.email']) #发邮...
[ "xwp_fullstack@163.com" ]
xwp_fullstack@163.com
55890962eb32cf417864520b10bf305af50f5049
e8abc7c32f7c1be189b93345f63d7f8f03e40b0f
/examples/launch_tor_endpoint2.py
1adc178bf28d33da5fb8cf389ea1cccb5f45e3a5
[ "MIT" ]
permissive
david415/txtorcon
8e37a71a7fce678b4d7646d8b22df622b7508452
3d7ad0d377f3344a33c7d67a19717cc3674bed6a
refs/heads/192.fix_build_timeout_circuit.0
2021-01-17T17:08:52.059542
2016-11-22T20:34:21
2016-11-22T20:34:21
19,297,689
3
1
MIT
2018-04-27T18:29:52
2014-04-30T01:52:53
Python
UTF-8
Python
false
false
1,435
py
#!/usr/bin/env python # Here we set up a Twisted Web server and then launch a slave tor # with a configured hidden service directed at the Web server we set # up. This uses serverFromString to translate the "onion" endpoint descriptor # into a TCPHiddenServiceEndpoint object... import shutil from twisted.internet im...
[ "meejah@meejah.ca" ]
meejah@meejah.ca
55f70e257d55919419c13c52d587546cf180076f
8534f1109cbd6bdae8e5110e2438331ded6f1134
/lnotab.py
f25e08d12bc38d29a9dd4ce4e5d27289fe98cc73
[]
no_license
laike9m/TestPython
dc802053fd0eee329aca8517ccd6f2e97846f221
0587c33764b8f88975d1156b73400926e77014c6
refs/heads/master
2022-12-21T12:29:45.570030
2022-01-05T06:13:32
2022-01-05T06:13:32
195,931,990
0
0
null
2022-12-13T23:41:15
2019-07-09T04:21:59
Python
UTF-8
Python
false
false
293
py
"""A doc string foo """ import sys import ast import astor import inspect frame = sys._getframe() print(frame.f_code.co_lnotab) print(frame.f_code.co_firstlineno) def f(): x = 1 frame = sys._getframe() print(frame.f_code.co_lnotab) print(frame.f_code.co_firstlineno) f()
[ "laike9m@gmail.com" ]
laike9m@gmail.com
5d74f273cd83e256d34521b9117230ddc8efebbf
947e71b34d21f3c9f5c0a197d91a880f346afa6c
/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat.py
cf56a7fdb9f8a91aba6d59d4588a583b21c64f94
[ "MIT", "Apache-2.0", "GPL-1.0-or-later", "GPL-2.0-or-later", "OFL-1.1", "MS-PL", "AFL-2.1", "GPL-2.0-only", "Python-2.0", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
liuwenru/Apache-Ambari-ZH
4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0
7879810067f1981209b658ceb675ac76e951b07b
refs/heads/master
2023-01-14T14:43:06.639598
2020-07-28T12:06:25
2020-07-28T12:06:25
223,551,095
38
44
Apache-2.0
2023-01-02T21:55:10
2019-11-23T07:43:49
Java
UTF-8
Python
false
false
5,613
py
""" Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
[ "ijarvis@sina.com" ]
ijarvis@sina.com
fc4acfc5e6a1ae4758a0853857d51c68969e09ca
6e95e9b6a1fc996ebcb46c44d4ef7678f762e4f7
/others/taobao_spider/test/service/test_job.py
c68884724f84ce028a0e969f4244394ba839f79e
[ "Apache-2.0", "Unlicense" ]
permissive
625781186/lgd_spiders
3a4d6917a01e446136e7aef4c92b9b7a1f8e498d
1c8680115beb42f4daaf6be71bf3fb14fcc2c255
refs/heads/master
2020-08-29T13:21:12.116395
2019-10-21T14:28:00
2019-10-21T14:28:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
504
py
# -*- coding: utf-8 -*- from unittest import TestCase from mall_spider.spiders.actions.action_service import get_action_service from mall_spider.utils.date_util import today, yesterday class TestJob(TestCase): __action_service = get_action_service() def test_execute_sycm_category_job_init_actions(self): ...
[ "lgdupup" ]
lgdupup
d08e4918619a53ca615232233decab9bb16ac9bb
155cbccc3ef3b8cba80629f2a26d7e76968a639c
/thelma/repositories/rdb/mappers/rackposition.py
f42d135cfc7afb84a57fc4997a6efa5274120fc8
[ "MIT" ]
permissive
papagr/TheLMA
1fc65f0a7d3a4b7f9bb2d201259efe5568c2bf78
d2dc7a478ee5d24ccf3cc680888e712d482321d0
refs/heads/master
2022-12-24T20:05:28.229303
2020-09-26T13:57:48
2020-09-26T13:57:48
279,159,864
1
0
MIT
2020-07-12T22:40:36
2020-07-12T22:40:35
null
UTF-8
Python
false
false
903
py
""" This file is part of the TheLMA (THe Laboratory Management Application) project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Rack position mapper. """ from sqlalchemy import func from everest.repositories.rdb.utils import mapper from thelma.entities.rack import RackPosition __do...
[ "fogathmann@gmail.com" ]
fogathmann@gmail.com
4fbd0fc8fdb23a67806ad582e85e7afbddace103
c16aee56666e7da3532e9dd8cd065e61f25b7e50
/week1/triangle.py
3c5049536f1d82082cf9d94959e30383db4ee20b
[]
no_license
loganmurphy/DC_2017_Python3
8e6af1f9db2a927242b1bf0f8f9104eb3b32ec86
1a0b4b4b37537c354025dd9318d8d14b27791e87
refs/heads/master
2021-07-20T08:51:45.625656
2017-10-27T03:33:12
2017-10-27T03:33:12
103,613,458
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
height = 4 width = 7 star = "*" space = " " i = 0 while i < height: print((space * width) + star) i += 1 width -= 1 star = (2 * "*") + star
[ "loganmurphy1984@gmail.com" ]
loganmurphy1984@gmail.com
d73734d96cd230ceb5c9108f714f3714d54bf033
83277e8b959de61b655f614b7e072394a99d77ae
/venv/bin/pip3.7
004fc1d5fa6738f54b95ef6aeeedc8bac6a822c9
[ "MIT" ]
permissive
hskang9/scalable-django
b3ed144670c3d5b244168fdd38f33e1f596253c0
162e0f4a3d49f164af1d33298fa9a47b66508cbf
refs/heads/master
2023-04-29T05:33:23.460640
2020-03-27T00:55:28
2020-03-27T00:55:28
247,036,359
2
1
MIT
2023-04-21T20:53:08
2020-03-13T09:40:37
Python
UTF-8
Python
false
false
431
7
#!/Users/hyungsukkang/PycharmProjects/django_graphql_container/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$...
[ "hyungsukkang@Hyungsuks-Mac-mini.local" ]
hyungsukkang@Hyungsuks-Mac-mini.local
6d933276903d9ffc7b771f5c55d622336661f483
36957a9ce540846d08f151b6a2c2d582cff1df47
/VR/Python/Python36/Lib/site-packages/soupsieve/css_parser.py
8616d61b56571f69356cc441403dd95d3f6a796b
[]
no_license
aqp1234/gitVR
60fc952307ef413e396d31e0d136faffe087ed2b
e70bd82c451943c2966b8ad1bee620a0ee1080d2
refs/heads/master
2022-12-29T15:30:12.540947
2020-10-07T15:26:32
2020-10-07T15:26:32
290,163,043
0
1
null
2020-08-25T09:15:40
2020-08-25T08:47:36
C#
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:ec6cf659d2ea0ac4f743c1c6502d5f376a92d2077bb63b5d79914e584458b656 size 43200
[ "aqp1234@naver.com" ]
aqp1234@naver.com
e2c7f0a8cc38b781fef073c5f1e0fc43c09ee60d
5d28c38dfdd185875ba0edaf77281e684c81da0c
/mlflow/models/evaluation/lift_curve.py
de722164777e792d3be576fca7c1622fd425264d
[ "Apache-2.0" ]
permissive
imrehg/mlflow
3a68acc1730b3ee6326c1366760d6ddc7e66099c
5ddfe9a1b48e065540094d83125040d3273c48fa
refs/heads/master
2022-09-24T05:39:02.767657
2022-09-20T00:14:07
2022-09-20T00:14:07
244,945,486
1
0
Apache-2.0
2020-03-04T16:11:54
2020-03-04T16:11:53
null
UTF-8
Python
false
false
6,224
py
import matplotlib.pyplot as plt import numpy as np def _cumulative_gain_curve(y_true, y_score, pos_label=None): """ This method is copied from scikit-plot package. See https://github.com/reiinakano/scikit-plot/blob/2dd3e6a76df77edcbd724c4db25575f70abb57cb/scikitplot/helpers.py#L157 This function gen...
[ "noreply@github.com" ]
imrehg.noreply@github.com
37ab98f9f1a3c980df3099c0873f46050d0682e3
3300f61798909af363504e577bfd7677e5239e8e
/docstrings/verify.py
f83fdf1827a069f56d0a89166016d69ec1ed8e39
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
jctanner/ansible-tests
11c6ed23ef8be5a42401d1c93c86c2693068f8de
c0a2b2aff6002b98088ceb04e435e7a95f78d655
refs/heads/master
2020-04-07T10:23:13.031694
2014-04-08T02:02:15
2014-04-08T02:02:15
13,967,969
1
0
null
null
null
null
UTF-8
Python
false
false
7,743
py
#!/usr/bin/env python # http://stackoverflow.com/questions/1714027/version-number-comparison import os import sys import ast import subprocess import shlex from distutils.version import LooseVersion from pkg_resources import parse_version import cPickle as pickle docscript = """#!/usr/bin/env python import os impor...
[ "tanner.jc@gmail.com" ]
tanner.jc@gmail.com
25c1fe6db107fe48d30cd7776ecd86b05fa9d636
a75ac3c5c641fc00a3c403b08eeb6008f648639e
/CodeForces/Python2/330A.py
55e60b11422a3ffb790bff55aa50324aa95a0ea8
[]
no_license
Greenwicher/Competitive-Programming
5e9e667867c2d4e4ce68ad1bc34691ff22e2400a
6f830799f3ec4603cab8e3f4fbefe523f9f2db98
refs/heads/master
2018-11-15T15:25:22.059036
2018-09-09T07:57:28
2018-09-09T07:57:28
28,706,177
5
0
null
null
null
null
UTF-8
Python
false
false
728
py
# -*- coding: utf-8 -*- """ Created on Fri Jan 23 16:15:41 2015 @author: liuweizhi """ ## version 1 (wrong anser) r,c=map(int,raw_input().split());cake='' for i in range(r): cake+=raw_input() for i in range(r): cake[i:i+c+1]=[cake[i:i+c+1],'o'*c][cake[i:i+c+1].find('S')==-1] for i in range(c): cake[i::c]=...
[ "weizhiliu2009@gmail.com" ]
weizhiliu2009@gmail.com
373580f79b535f93764e02be1ee047390c697525
c8eff17479e46abd759dfa4f627303cefecbb6f8
/tests/test_transaction.py
fc0dfbc401183fd3e3bb39471c16e1bc69748ab6
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
snower/torpeewee
102832fe8ccc5fd7b18a1d634207be5869e71929
1d2d73090972ab33bb4a0980bfed63ff74961a1a
refs/heads/master
2021-06-10T00:14:05.294889
2021-05-25T10:15:40
2021-05-25T10:15:40
61,872,177
31
10
null
null
null
null
UTF-8
Python
false
false
2,956
py
# -*- coding: utf-8 -*- # 16/7/11 # create by: snower import datetime from tornado import gen from tornado.testing import gen_test from . import BaseTestCase from .model import Test, db class TestTestCaseTransaction(BaseTestCase): async def run_transaction(self, transaction): await Test.use(transaction).c...
[ "sujian199@gmail.com" ]
sujian199@gmail.com
23d788b0c075d0f561a991487206cf5a7acfed5c
a0a5dbdf9b850092deeee5f4918ab95232c46100
/pesquisasatisfacao/crm/migrations/0012_auto_20190409_2110.py
0990285ee556573e172d51a5baae72b6094e0878
[]
no_license
CoutinhoElias/pesquisasatisfacao
55c084a2b1e27cc9d190fb4198e09b78f3c95ad1
870eb616917ba9e2d3179609f8764534aa3748f4
refs/heads/master
2022-11-30T21:59:21.102520
2020-04-25T14:18:05
2020-04-25T14:18:05
158,157,292
1
2
null
2022-11-22T03:31:14
2018-11-19T03:34:11
JavaScript
UTF-8
Python
false
false
519
py
# Generated by Django 2.2 on 2019-04-10 00:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('crm', '0011_atendimento_department'), ] operations = [ migrations.AlterField( model_name='atendimento', name='departme...
[ "coutinho.elias@gmail.com" ]
coutinho.elias@gmail.com
32abe9d76e271c36d97481943ade34862a5989b9
bb92245006848ceac733c14b118ef4b269daeee8
/lab3/training/util.py
bb5cd23af014cdacb2bf3b4057fd6ff7fd5c58b1
[]
no_license
vazzolla/fsdl-text-recognizer-project
34a1be71469895b0daed48ed3bceafebd230645a
b32ffe24974a205dcf2a6ec0c440e318f0dbd940
refs/heads/master
2022-04-21T11:10:24.962783
2020-04-24T01:25:41
2020-04-24T01:25:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
"""Function to train a model.""" from time import time from tensorflow.keras.callbacks import EarlyStopping, Callback from text_recognizer.datasets.dataset import Dataset from text_recognizer.models.base import Model EARLY_STOPPING = True def train_model(model: Model, dataset: Dataset, epochs: int, batch_size: int...
[ "sergeykarayev@gmail.com" ]
sergeykarayev@gmail.com
01e2cab011b97a2456551669f92df13f2a9127d8
a1e10efa6a131e305351909a437bfa5d083d4513
/aspl_product_alert_qty/models/product_qty_alert.py
1f148b1fbe51eb77322158feda3c7018aa9cd7bc
[]
no_license
h3llopy/glodok_extra_addons_od12
5089412b36b0dafdb17235a627c8e33ed2acbb1f
5c493962b93254fb2ca8cd674c4fe153ac86d680
refs/heads/master
2022-12-05T06:22:08.182302
2020-08-29T14:32:30
2020-08-29T14:32:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,160
py
# -*- coding: utf-8 -*- ################################################################################# # Author : Acespritech Solutions Pvt. Ltd. (<www.acespritech.com>) # Copyright(c): 2012-Present Acespritech Solutions Pvt. Ltd. # All Rights Reserved. # # This program is copyright property of the author menti...
[ "kikin.kusumah@gmail.com" ]
kikin.kusumah@gmail.com
f8e18d09a9f3e6a5653a428f33257917bcd09c34
2cd24ddd86e97d01c20a96bfc8ed8b541a80d608
/apps/compra/migrations/0003_detalle_compra_subtotal.py
0b37c02829a3de243b74a5129374ec3bcf73d820
[]
no_license
chrisstianandres/don_chuta
1c048db633246effb06800f28a3a4d8af2cac199
e20abeb892e6de572a470cd71c5830c6f9d1dafa
refs/heads/master
2023-01-07T09:14:52.837462
2020-11-18T20:55:10
2020-11-18T20:55:10
293,209,494
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
# Generated by Django 2.2.14 on 2020-09-09 21:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('compra', '0002_auto_20200905_1332'), ] operations = [ migrations.AddField( model_name='detalle_compra', name='subto...
[ "Chrisstianandres@gmail.com" ]
Chrisstianandres@gmail.com
dd9925b429dd30c9f5af8adf9362aadd5a58cd44
3bdcb60b0bffeeb6ff7b0ddca4792b682158bb12
/Funciones/276.py
cad0e1b914f6b0d518c47a4347780a3f47f69055
[]
no_license
FrankCasanova/Python
03c811801ec8ecd5ace66914f984a94f12befe06
03f15100991724a49437df3ce704837812173fc5
refs/heads/master
2023-05-23T01:37:12.632204
2021-06-10T15:20:38
2021-06-10T15:20:38
278,167,039
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
# desings a function that, given a list of strings, return the longest string. # if two or more have the same length and are the lonfest, the function will # return any one of them def largest_str(string): largest = None for index, snts in enumerate(string): if largest == None: largest ...
[ "frankcasanova.info@gmail.com" ]
frankcasanova.info@gmail.com
762b27f7e07d1145bfd1743c41531647c2a87ae0
dfb00e98cc3bfe40df3a3f2196b1003d3122ca84
/{{cookiecutter.project_slug}}/tests.py
58a3817282e840fc961a8edb8268bcb73b622e5a
[]
no_license
andremcb/bakery_scaffold_tests_8sGLG7TckgT6EJlB
b80ed9ff7b34fe2433c9af1a9f07948674a2c781
08c8806dcbdca288d0f607350da8b5801489833c
refs/heads/master
2020-07-09T03:42:09.226572
2019-08-22T20:13:03
2019-08-22T20:13:03
203,866,089
0
0
null
null
null
null
UTF-8
Python
false
false
1,164
py
import unittest import re class TestStripe(unittest.TestCase): def __init__(self, *args, **kwargs): super(TestStripe, self).__init__(*args, **kwargs) with open('order.html', 'r') as file_descriptor: self.dom_str = file_descriptor.read() # Check if redirectToCheckout function call ...
[ "csantos.machado@gmail.com" ]
csantos.machado@gmail.com
ae6671c6877541a49134ba53fef3117cf356e2e1
68ee9027d4f780e1e5248a661ccf08427ff8d106
/extra/unused/baselinePlotter.py
92136463546bb02edb9475a21ac2338f2a5cb2b9
[ "MIT" ]
permissive
whyjz/CARST
87fb9a6a62d39fd742bb140bddcb95a2c15a144c
4fc48374f159e197fa5a9dbf8a867b0a8e0aad3b
refs/heads/master
2023-05-26T20:27:38.105623
2023-04-16T06:34:44
2023-04-16T06:34:44
58,771,687
17
4
MIT
2021-03-10T01:26:04
2016-05-13T20:54:42
Python
UTF-8
Python
false
false
3,733
py
#!/usr/bin/python # baselinePlotter.py # Author: Andrew Kenneth Melkonian # All rights reserved # Plots perpendicular baselines for all *baseline.rsc files in the input directory that contain a valid number identified as "P_BASELINE*" # USAGE # ***** # python /path/containing/ints /path/to/put/output.ps # /path/...
[ "wz278@cornell.edu" ]
wz278@cornell.edu
4ad295cd0d344c11d2f70ff4e00f9e00e52284a9
996967405d3ee07e011ee0f0404d03b6d04d3492
/dataloader/get_coco/data_path.py
7b3d7f36f674f57bbc35b16c04147efeb152513f
[]
no_license
wyyy04/MyRepository
797936fc757a2eee4793d5b1b47ebf8b57216ab8
91f1a7ff969e91d9649b96796c5827c9910a8183
refs/heads/main
2023-02-22T09:56:21.926013
2021-01-27T15:34:00
2021-01-27T15:34:00
315,524,193
0
0
null
2020-11-24T07:30:05
2020-11-24T05:05:28
null
UTF-8
Python
false
false
314
py
#数据集实际路径 DataDir = 'loader\data\\' Datasetfile = DataDir + 'dataset.txt' Embeddingfile = DataDir + 'skipthoughts.npz' Clusterfile = DataDir + 'clusters.npz' Clustersnamefile = DataDir + 'clustersname.txt' Clusterfile_256 = DataDir + 'clusters_256.npz' ImageDir = DataDir + 'COCO_motivations_clean'
[ "you@example.com" ]
you@example.com
60675121234509c5ca112bd1aae23ca8213106e1
1e50f1643376039ca988d909e79f528e01fa1371
/leetcode/editor/cn/464.我能赢吗.py
94193d96b4637cc196d0af39d9c5bfbb1de75e69
[]
no_license
mahatmaWM/leetcode
482a249e56e2121f4896e34c58d9fa44d6d0034b
4f41dad6a38d3cac1c32bc1f157e20aa14eab9be
refs/heads/master
2022-09-04T17:53:54.832210
2022-08-06T07:29:46
2022-08-06T07:29:46
224,415,259
0
0
null
null
null
null
UTF-8
Python
false
false
2,464
py
# # @lc app=leetcode.cn id=464 lang=python3 # # [464] 我能赢吗 # # https://leetcode-cn.com/problems/can-i-win/description/ # # algorithms # Medium (33.86%) # Likes: 131 # Dislikes: 0 # Total Accepted: 4.7K # Total Submissions: 13.8K # Testcase Example: '10\n11' # # 在 "100 game" 这个游戏中,两名玩家轮流选择从 1 到 10 的任意整数,累计整数和,先使得...
[ "chrismwang@tencent.com" ]
chrismwang@tencent.com
db74737a5f19f4aabfff78ef6d8818a308c1b77b
f7a748eb6803a9f2b609dad279e30513497fa0be
/test/com/facebook/buck/testutil/endtoend/testdata/cxx_dependent_on_py/py_bin/generate_cpp.py
dd8e0082ceef3fbb3366dbddd661f943f8b28997
[ "Apache-2.0" ]
permissive
MMeunierSide/buck
a44937e207a92a8a8d5df06c1e65308aa2d42328
b1aa036a203acb8c4cf2898e0af2a1b88208d232
refs/heads/master
2020-03-09T23:25:38.016401
2018-04-11T04:11:59
2018-04-11T05:04:57
129,057,807
1
0
Apache-2.0
2018-04-11T08:06:36
2018-04-11T08:06:35
null
UTF-8
Python
false
false
305
py
from py_lib.util import Util def generate_cpp(): print('#include <generate_cpp/generated.h>\n') print('Generated::Generated() {}\n') print('std::string Generated::generated_fcn() {') print('return "{}";'.format(Util().name)) print('}') if __name__ == "__main__": generate_cpp()
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
6aa4e44998c98918ebf8e738493f4114fffe694a
839c21c464a0161d221f73aecfee8e1a9cb0e281
/tests/clock_test.py
f4df5ca1d934a3e1ef41beb090c5ea0a93e7b690
[ "Apache-2.0" ]
permissive
al-fontes-jr/bardolph
89c98da6645e98583251c95e9fa24816c21ad40b
27504031d40d288be85bc51b82b6829e3f139d93
refs/heads/master
2022-02-02T03:20:52.996806
2022-01-12T11:12:04
2022-01-12T11:12:04
200,828,449
0
1
null
null
null
null
UTF-8
Python
false
false
1,835
py
#!/usr/bin/env python import unittest from unittest.mock import patch from bardolph.lib import clock, injection, settings, time_pattern class MockNow: def __init__(self, hour, minute): self._hour = hour self._minute = minute @property def hour(self): self._minute += 1 if ...
[ "alfred@fontes.org" ]
alfred@fontes.org
4f6e4f5031e1ca5479b504ef39a11043e741aa2d
50c23021b19aef84c9c0ed8f8116b1b395df3205
/linkipYQ/demo.py
5df3cbeb710a5b05ab4275ba368a21319344e461
[]
no_license
beforeuwait/code_daqsoft
d87891c6a409841dd495ab85aadb48cb348f9891
6178fdbc08a54b2827c1a80297684a628d4f9c08
refs/heads/master
2021-09-28T20:33:14.164879
2018-11-20T09:16:52
2018-11-20T09:16:52
108,245,470
0
1
null
null
null
null
UTF-8
Python
false
false
3,191
py
""" 这是一个测试,作为测试linkip的服务器是否返回jessionid """ import requests import time import json session = requests.session() url_home = 'http://yq.linkip.cn/user/login.do' url_log = 'http://yq.linkip.cn/user/index.do' data_log = { 'name': 'gujing8835', 'password': 'gugugu110', 'type':1, } headers_login = { 'Host':...
[ "forme.wjw@aliyun.com" ]
forme.wjw@aliyun.com
ac34a2fc2cecd9267afbbe09ea616ae446adea6e
cad762658ab8326d7f43bba6f69df35a8b770e34
/pymarkdown/plugins/rule_md_005.py
fe3d1dad36078ec91062a727f67dc7ed40593565
[ "MIT" ]
permissive
ExternalRepositories/pymarkdown
9c248b519791a4c869d1e71fa405c06d15ce553b
479ace2d2d9dd5def81c72ef3b58bce6fb76f594
refs/heads/main
2023-08-28T03:45:25.536530
2021-10-31T19:39:22
2021-10-31T19:39:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,109
py
""" Module to implement a plugin that ensures that the indentation for List Items are equivalent with each other. """ from enum import Enum from pymarkdown.plugin_manager import Plugin, PluginDetails class OrderedListAlignment(Enum): """ Enumeration to provide guidance on what alignment was used for ordered ...
[ "jack.de.winter@outlook.com" ]
jack.de.winter@outlook.com
63af7334751636287b81565df83c25a6a899d950
cc0e381fde5cc6870770396d990d2bad66a3186c
/Aula/aula09t.py
72aa8fa7baa34cbfc5ff53c13f1e74ca9d562308
[]
no_license
jnthmota/Python-PySpark-Cursos
2c7fac79867059e0dfe4f0c4b6b6e1d32260530f
680a4c422e14a26036379f49f0de6b5e73d7e431
refs/heads/main
2023-08-15T00:22:59.189649
2021-09-12T23:00:39
2021-09-12T23:00:39
373,610,471
1
0
null
null
null
null
UTF-8
Python
false
false
2,372
py
''' Nessa aula, vamos aprender operações com String no Python. As principais operações que vamos aprender são o Fatiamento de String, Análise com len(), count(), find(), transformações com replace(), upper(), lower(), capitalize(), title(), strip(), junção com join(). ''' frase = 'Curso em Video Python' frase = [9] ...
[ "jonathan.mota@outlook.com" ]
jonathan.mota@outlook.com
06d2c50aca5d7686ebe3b4d52fcec48ca04d8574
ab8117bc5b5040e5107fc59337fabc966cb062ba
/.history/twitter/engine_20200328113924.py
61ac75e432040b96d6f549e92d793cc646966e14
[]
no_license
mirfarzam/DownloaderBro
6019ab561c67a397135d0a1585d01d4c6f467df4
8e0a87dd1f768cfd22d24a7f8c223ce968e9ecb6
refs/heads/master
2022-04-16T15:31:38.551870
2020-04-15T17:36:26
2020-04-15T17:36:26
255,090,475
0
0
null
null
null
null
UTF-8
Python
false
false
2,023
py
import tweepy import datetime import configparser import time config = configparser.ConfigParser() config.read('credential.conf') consumer_key = config['API']["API_key"] consumer_secret = config['API']["API_secret_key"] access_token = config['ACCESS']["Access_token"] access_token_secret = config['ACCESS']["Access_t...
[ "farzam.mirmoeini@gmail.com" ]
farzam.mirmoeini@gmail.com
22ba8cb74c5168ff4addd6a49abdd18dfae337b2
03cf49d6e2b002e5dc389282feb28769c55ff493
/feas/gen_w2v_feat.py
3915aa239d7723106ab8dbe88cdd6641e5588d71
[]
no_license
yanqiangmiffy/Cityproperty-Rent-Forecast
8f76ecf237e6bb2b7a81e844136dd12b324ee0bd
489808ff0748d47fc34ff7c8f6168fe3fa8e39f2
refs/heads/master
2021-06-30T03:03:02.494347
2019-06-10T09:26:00
2019-06-10T09:26:00
182,541,053
7
0
null
2020-11-17T15:34:45
2019-04-21T14:04:40
Jupyter Notebook
UTF-8
Python
false
false
2,711
py
#!/usr/bin/env python # encoding: utf-8 """ @author: quincyqiang @software: PyCharm @file: gen_w2v_feat.py @time: 2019-05-17 09:56 @description: 生成Word2Vec特征 """ import pandas as pd import warnings from gensim.models import Word2Vec import multiprocessing warnings.filterwarnings('ignore') def w2v_feat(data_frame, f...
[ "1185918903@qq.com" ]
1185918903@qq.com
ca42f38050315ce2042b442a3f10da5c7f56c249
897d82d4953ed7b609746a0f252f3f3440b650cb
/day17/homework/homework_personal.py
a6297f4d42168de99f07f4198453d7482d5ba418
[]
no_license
haiou90/aid_python_core
dd704e528a326028290a2c18f215b1fd399981bc
bd4c7a20950cf7e22e8e05bbc42cb3b3fdbe82a1
refs/heads/master
2022-11-26T19:13:36.721238
2020-08-07T15:05:17
2020-08-07T15:05:17
285,857,695
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
from iterable_tools import IterableHelper """直接使用IterableHelper类现有功能,完成下列需求 -- 在技能列表中查找名称是"一阳指"的技能对象 -- 在技能列表中查找攻击比例atk_rate大于1的所有技能对象 -- 在技能列表中所有技能名称name和消耗法力cost_sp""" class Skill: def __init__(self, name="", atk_rate=0.0, cost_sp=0, duration=0): self.name = name self.atk_rate = atk_rate ...
[ "caoho@outlook.com" ]
caoho@outlook.com
82e273899b8bdc46203d6b1f1e2254b20264b9a2
f497916365288386bd2fc5085ce1391aa649467b
/pactools/utils/fir.py
eb7ec457d6bb77f43deaf0c55855dcc4adba5c82
[]
no_license
fraimondo/pactools
486d5eac4fd9190dcbbcee24fa735ac511aa396b
b4be8ae27cca1684816772f7ce2cb9e503452f14
refs/heads/master
2021-08-30T01:02:51.161092
2017-12-05T16:19:05
2017-12-05T16:19:05
113,920,577
0
0
null
2017-12-11T23:40:13
2017-12-11T23:40:12
null
UTF-8
Python
false
false
8,162
py
import numpy as np from scipy import signal import matplotlib.pyplot as plt from .spectrum import Spectrum class FIR(object): """FIR filter Parameters ---------- fir : array Finite impulse response (FIR) filter Examples -------- >>> from pactools.utils.fir import FIR >>> f =...
[ "tom.dupre-la-tour@m4x.org" ]
tom.dupre-la-tour@m4x.org
6fa3358d03e945e11123f1d3a3c4b23061069cf8
3577d2e20c79cbbbc0a8a91a73be322be61cf384
/5.4 Objects and Algorithms/1 Object/4 ExerciseTraker2.py
ac6399889c32350a3735b2e6358e11bc1c49284d
[]
no_license
KETULPADARIYA/Computing-in-Python
cb30a807fa92a816f53f3254a63f07883977406d
02c69a3c074924a70f68f00fd756436aa207dcf6
refs/heads/master
2020-04-24T04:47:18.342215
2019-03-17T03:21:46
2019-03-17T03:21:46
171,716,015
1
0
null
null
null
null
UTF-8
Python
false
false
1,879
py
#Previously, you wrote a class called ExerciseSession that #had three attributes: an exercise name, an intensity, and a #duration. # #Add a new method to that class called calories_burned. #calories_burned should have no parameters (besides self, as #every method in a class has). It should return an integer #representi...
[ "ketulpadariya79@gmail.com" ]
ketulpadariya79@gmail.com
3419e878d3d631a1d81f03dea1450003ab85c1bb
f39528e9bad8cfa78b38fcbb7a5b430ac0c7a942
/Higgs2LLP/LO_HToSSTobbbb_MH125_MS55_ctauS0p05_13TeV.py
0a392bd289634904035c154b54547bec66ebdeaf
[]
no_license
isildakbora/EXO-MC-REQUESTS
c0e3eb3a49b516476d37aa464c47304df14bed1e
8771e32bbec079de787f7e5f11407e9e7ebe35d8
refs/heads/master
2021-04-12T11:11:03.982564
2019-04-29T15:12:34
2019-04-29T15:12:34
126,622,752
0
0
null
null
null
null
UTF-8
Python
false
false
1,909
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import * from Configuration.Generator.Pythia8PowhegEmissionVetoSettings_cfi import * from Configuration.Generator.PSweightsPythia.PythiaPSweightsSetting...
[ "bora.isildak@cern.ch" ]
bora.isildak@cern.ch
701a3b7f4b23d31ebeab4b41f626f756478f746b
9cd180fc7594eb018c41f0bf0b54548741fd33ba
/sdk/python/pulumi_azure_nextgen/storagesync/v20190301/get_storage_sync_service.py
2cf11b6677bb8a2310b698ed26983f397eb033f8
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
MisinformedDNA/pulumi-azure-nextgen
c71971359450d03f13a53645171f621e200fe82d
f0022686b655c2b0744a9f47915aadaa183eed3b
refs/heads/master
2022-12-17T22:27:37.916546
2020-09-28T16:03:59
2020-09-28T16:03:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,861
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
b2d9a6ad2e37068d9a8111e66a169c2f35cd83cf
cceb97ce3d74ac17090786bc65f7ed30e37ad929
/lxd_Safety(out)/graphTraversal-submit2/kvparser.py
cf5a418fcf027d4e48d2a709fddd788aae180815
[]
no_license
Catxiaobai/project
b47310efe498421cde794e289b4e753d843c8e40
76e346f69261433ccd146a3cbfa92b4e3864d916
refs/heads/master
2023-01-08T04:37:59.232492
2020-11-10T12:00:34
2020-11-10T12:00:34
291,014,545
1
4
null
2020-11-09T01:22:11
2020-08-28T10:08:16
Python
UTF-8
Python
false
false
7,539
py
"""kvparser -- A simple hierarchical key-value text parser. (c) 2004 HAS kvparser parses text containing simple key-value pairs and/or nested blocks using a simple event-driven model. The text format is intended to be human readable and writeable, so is designed for simplicity and consistency with a low-noise syntax....
[ "2378960008@qq.com" ]
2378960008@qq.com
f9533c10696274ee3f113a9ade94819a015ebdda
3c92c3f633b613a62fb67476fd617e1140133880
/leetcode/27. Remove Element.py
389200567c30dff692573da7bd67a5203e14e62b
[]
no_license
cuiy0006/Algorithms
2787f36f8164ded5252a006f723b570c9091bee9
00fd1397b65c68a303fcf963db3e28cd35c1c003
refs/heads/master
2023-03-31T13:55:59.191857
2023-03-31T03:39:42
2023-03-31T03:39:42
75,001,651
0
1
null
null
null
null
UTF-8
Python
false
false
952
py
class Solution: def removeElement(self, nums: List[int], val: int) -> int: i = 0 j = 0 while i < len(nums): while i < len(nums) and nums[i] == val: i += 1 if i == len(nums): break nums[j] =...
[ "noreply@github.com" ]
cuiy0006.noreply@github.com
629b3a5257059913a7da306eec068efe1e380de4
bd8bc7abe0f774f84d8275c43b2b8c223d757865
/705_DesignHashSet/MyHashSet.py
06a999a2cec78ea54e5bd553bcec061ffea7135f
[ "MIT" ]
permissive
excaliburnan/SolutionsOnLeetcodeForZZW
bde33ab9aebe9c80d9f16f9a62df72d269c5e187
64018a9ead8731ef98d48ab3bbd9d1dd6410c6e7
refs/heads/master
2023-04-07T03:00:06.315574
2021-04-21T02:12:39
2021-04-21T02:12:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,231
py
class Bucket: def __init__(self): self.buckt = [] def add(self, key): if key not in self.buckt: self.buckt.append(key) def remove(self, key): for i, k in enumerate(self.buckt): if k == key: del self.buckt[i] def contains(self...
[ "noreply@github.com" ]
excaliburnan.noreply@github.com
f008a629a26cf50be0ba05f2ff12cea28da03c6d
9188d0d7ce9fc5fadf4d2593741894e1448f9326
/indico/vendor/django_mail/__init__.py
9cee3d734ac462e5c0da565826c3884569db9e34
[ "MIT" ]
permissive
vaclavstepan/indico
b411410416acdfa50b0d374f89ec8208de00fb2f
8ca1ac4d4a958f22f24580a790b3cb015570bdfb
refs/heads/master
2023-07-21T04:42:03.031131
2021-09-01T09:54:17
2021-09-01T09:54:17
385,897,420
0
0
MIT
2021-07-16T13:07:32
2021-07-14T10:16:57
null
UTF-8
Python
false
false
1,359
py
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. # TODO: Move this whole package into a standalone pypi package, since it's # useful in general for anyoen ...
[ "adrian.moennich@cern.ch" ]
adrian.moennich@cern.ch
7a98bd64abdb3d07cde81ab64491ac9725dcb528
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02936/s782768449.py
56eea4ff0a74433df558677289cc44ba5326f3a0
[]
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
552
py
n, q = map(int, input().split()) Tree = [[] for _ in range(n+1)] Counter = [0 for _ in range(n+1)] AB = (tuple(map(int, input().split())) for _ in range(n-1)) PX = (tuple(map(int, input().split())) for _ in range(q)) for a,b in AB: Tree[a].append(b) Tree[b].append(a) for p,x in PX: Counter[p] += x P = [-1]*(...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com