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
738f342dc72bafe4df18bfca2f9beaa61bcf7526
2c4efe2ce49a900c68348f50e71802994c84900a
/braindecode/braindecode/venv1/Lib/site-packages/numba/pycc/__init__.py
20f60564072472c96972fbdf850306034aaf0c7b
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
sisi2/Masterthesis
b508632526e82b23c2efb34729141bfdae078fa0
7ce17644af47db4ad62764ed062840a10afe714d
refs/heads/master
2022-11-19T15:21:28.272824
2018-08-13T15:02:20
2018-08-13T15:02:20
131,345,102
2
1
null
2022-11-15T14:08:07
2018-04-27T21:09:21
Python
UTF-8
Python
false
false
3,769
py
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import import os import logging import subprocess import tempfile import sys # Public API from .cc import CC from .decorators import export, exportmany def get_ending(args): if args.llvm: return ".bc" ...
2ca8d537c01563e7b278dbb6e2b6594cbbc80763
99e494d9ca83ebafdbe6fbebc554ab229edcbacc
/.history/Day 1/Test/Answers/NegativeMarking_20210304211434.py
57b1e9d86c4af6e1af80ae1355f111567af35e11
[]
no_license
Datta2901/CCC
c0364caa1e4937bc7bce68e4847c8d599aef0f59
4debb2c1c70df693d0e5f68b5798bd9c7a7ef3dc
refs/heads/master
2023-04-19T10:05:12.372578
2021-04-23T12:50:08
2021-04-23T12:50:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
t = int(input()) for i in range(t): questions,requiredscore = map(int,input().split()) if questions * 4 < requiredscore: print(-1) continue attempt = (requiredscore/questions) + 3 accuracy = attempt / 7 print(format(accuracy*100,'.2f') # Here Accuracy can be find by using ...
3987a84881cb00c259e5f634796e5624fed300d3
6674f4300961d9ca7fbfb667734fb91b26fc7881
/cutter.py
23a52d5ea2f98dd23c1e6879e0862a329c9e6fb2
[]
no_license
seffka/sounds
2d1232c5e2a0bf4ca5ab2fae06e515ec078aab4a
84770ed73a47f42af847012cd987f0e3b6a15db6
refs/heads/master
2021-01-12T00:13:13.331170
2017-01-19T15:06:55
2017-01-19T15:06:55
78,686,903
0
2
null
null
null
null
UTF-8
Python
false
false
1,623
py
import sys sys.path.append('/Users/seffka/DSPMA/sms-tools/software/models/') from utilFunctions import wavread, wavwrite from scipy.signal import get_window import matplotlib.pyplot as plt import numpy as np import os from os import listdir from os.path import isfile, join, splitext import essentia import essentia.stan...
012aaaa9e7fdbf6d4aeeaa7fa858790eab08e2eb
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/security/azure-mgmt-security/azure/mgmt/security/v2023_02_01_preview/aio/operations/_health_report_operations.py
852329018d706ec02c3aa68d58b22afb9b4dd791
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
4,653
py
# pylint: disable=too-many-lines # 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) AutoRe...
b90e6ea708395e48959ab1848de991922eb9a778
adb6314474c49d3780005f110115c2323f3a343e
/hr_employee_updation/__manifest__.py
4284e142f966d701c0fb80489b75c3f16dfa8b04
[]
no_license
viethoang66666/seatek_viet
d86996a215ae426a5dce3054360f204e3d0867a1
5ebad7ede4690e1bb9e2c1063abf677e675631b4
refs/heads/master
2023-04-25T00:37:17.236513
2021-05-12T10:07:00
2021-05-12T10:07:00
366,660,976
0
0
null
null
null
null
UTF-8
Python
false
false
1,817
py
# -*- coding: utf-8 -*- ################################################################################### # A part of Open HRMS Project <https://www.openhrms.com> # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). # Author: Jesni Banu (<https...
6b062341d5d9055c048a0f573b4535d9fdd25741
930bc970069d8cbcfb36725a90492eff50638ecc
/code/dk-iris-pipeline/airflow_home/dags/iris-dag.py
293423870eb24c0bad97b6b4bc19c1f95bd27dbe
[ "MIT" ]
permissive
databill86/airflow4ds
4770d856569c4db4b55b2d9dfda010e21c4cd790
b5ae213f7169c54d31f4eca58d235ec6b09fd56f
refs/heads/master
2021-09-25T17:26:43.340747
2018-10-24T16:09:49
2018-10-24T16:09:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
import sys import os PROJECT_DIRECTORY = os.getenv(key='AIRFLOW_HOME') sys.path.append(PROJECT_DIRECTORY) from src import get_raw_iris, get_clean_iris import datetime as dt from airflow import DAG from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator d...
d25faa0b2ef3fc7ee416c23bf66da07d35197723
3f84ff1f506287bf0bb3b0840947e3ef23f22c87
/04day/6-王者游戏私有方法.py
8b73d2a76e870dc88eac560b0f4a097706823bd4
[]
no_license
2099454967/wbx
34b61c0fc98a227562ea7822f2fa56c5d01d3654
316e7ac7351b532cb134aec0740e045261015920
refs/heads/master
2020-03-18T06:09:58.544919
2018-05-28T13:01:19
2018-05-28T13:01:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
class Game(): def __init__(self): self.__size = 100 def getSize(self): return self.__size def setSize(self,size): self.__size = size #大招要想发动,必须要有蓝 #加了两个下划线,就不能直接调用了 def __dazhao(self,mp): print("十步杀一人") def fadazhao(self,mp): if mp <= 80: print("蓝不够") else: self.__dazhao(mp) wangzhe = ...
95d1e9159392dcaf85675e26e0bdec4db28e9fea
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/nmoohLwP962r6P355_7.py
0bc8cd0fa601e62247825d104fab5cc4f71290af
[]
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
1,574
py
""" In this challenge, you have to establish if the digits of a given number form a straight arithmetic sequence (either increasing or decreasing). A straight sequence has an equal step between every pair of digits. Given an integer `n`, implement a function that returns: * `"Not Straight"` if `n` is lower than ...
772024ffe81f495ca9834e7489711dd25fcd010b
7bb34b9837b6304ceac6ab45ce482b570526ed3c
/external/webkit/Source/WebCore/WebCore.gyp/scripts/action_makenames.py
ecf543f44980bab6edee79a875d0e89de645676e
[ "Apache-2.0", "LGPL-2.0-only", "BSD-2-Clause", "LGPL-2.1-only", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "LicenseRef-scancode-other-copyleft" ]
permissive
ghsecuritylab/android_platform_sony_nicki
7533bca5c13d32a8d2a42696344cc10249bd2fd8
526381be7808e5202d7865aa10303cb5d249388a
refs/heads/master
2021-02-28T20:27:31.390188
2013-10-15T07:57:51
2013-10-15T07:57:51
245,730,217
0
0
Apache-2.0
2020-03-08T00:59:27
2020-03-08T00:59:26
null
UTF-8
Python
false
false
6,871
py
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. 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 source code must retain the above copyright # notice, this list ...
d39c97d024cef112b1e44e961021e9d7cff0637d
917c44bfb0b6fdcce7ad4148e6cbd89fd0e61901
/tests/factories.py
ca87699b78e4d8b4e95ab6e339d458ceda503f02
[]
no_license
onepercentclub/django-bb-salesforce
39c3a0071d52b0c021c545aa32aeca310ad6a1ec
6d00a9521271612a174d7e66dc65a6751f1636f4
refs/heads/master
2021-01-21T04:33:06.979227
2016-07-15T08:58:28
2016-07-15T08:58:28
32,444,339
0
1
null
2016-07-15T08:58:28
2015-03-18T07:31:47
Python
UTF-8
Python
false
false
1,450
py
import factory from tests.models import Member, Country, SubRegion, Region, Address class MemberFactory(factory.DjangoModelFactory): FACTORY_FOR = Member username = factory.Sequence(lambda n: u'jd_{0}'.format(n)) first_name = factory.Sequence(lambda f: u'John_{0}'.format(f)) last_name = factory.Seque...
f0f11595eb6cb036039a579f42b8e3513cebbdf1
655c51822cc0484a7cfab9d0de6e9f1fde144dba
/autoserver/api/src/plugins/memory.py
053f8b6098248b8bc598047631f4fbaf6a175412
[]
no_license
summer93/CMDB
6f1988749cc8078cd219d4dd44f5dfcb0f2cc8f7
62c714354870c9b984f722efdf62e0d78bcf1450
refs/heads/master
2021-01-15T18:26:45.928105
2017-08-10T09:24:33
2017-08-10T09:24:33
99,783,857
0
0
null
null
null
null
UTF-8
Python
false
false
2,628
py
from repository import models class Memory(object): def __init__(self): pass @classmethod def initial(cls): return cls() def process(self,server_info,hostname,server_obj): print('start') # ############### 处理内存信息 ################## new_memory_dict = server_inf...
9ac50c0ee92de53c33c21cabe6fe78b6597c7f90
30ee21b97e6105288101d1031ed7f96aaf6e141e
/lib/_org/stemma_soil_sensor/seesaw.py
44e86e096d1fb9c2c0e9aa3883dd97e705d298c1
[]
no_license
josmet52/micropython
b3d1d69ad7eb6832ce26c15e3580dae99b5bb87f
d8f2267b556ba3b15861898c2c2eb5e086dcf9ce
refs/heads/main
2023-06-13T06:18:30.151497
2021-07-09T10:14:25
2021-07-09T10:14:25
353,124,541
0
0
null
null
null
null
UTF-8
Python
false
false
2,189
py
""" This is a lightweight port from CircuitPython to MicroPython of Dean Miller's https://github.com/adafruit/Adafruit_CircuitPython_seesaw/blob/master/adafruit_seesaw/seesaw.py * Author(s): Mihai Dinculescu Implementation Notes -------------------- **Hardware:** * Adafruit ATSAMD09 Breakout with SeeSaw: https://www...
e497b5560b1432d4414794b40c5d8c8d8ce1e288
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_lifted.py
40e546c7fcc541ef50d02efb32fc82ae8192b35f
[ "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
226
py
from xai.brain.wordbase.nouns._lift import _LIFT #calss header class _LIFTED(_LIFT, ): def __init__(self,): _LIFT.__init__(self) self.name = "LIFTED" self.specie = 'nouns' self.basic = "lift" self.jsondata = {}
d16b3fca1a54c3a45ff1c1042b286a16635babe0
6970cd9ca073ae7becabcbc58cbd9e9f567b9d23
/imgaug/augmenters/__init__.py
47bca888063c5b7432f56c9cb67b256237ed91d7
[ "MIT" ]
permissive
Liuxiang0358/imgaug
02c7eb57152ebdd7e92a8779a74c98c8ee041cc0
3a0c787ed32729dc47c06ea62c20c42997ad4305
refs/heads/master
2020-07-03T00:44:42.866083
2019-08-10T10:23:18
2019-08-10T10:23:18
201,729,987
1
0
MIT
2019-08-11T07:01:49
2019-08-11T07:01:49
null
UTF-8
Python
false
false
598
py
from __future__ import absolute_import from imgaug.augmenters.arithmetic import * from imgaug.augmenters.blend import * from imgaug.augmenters.blur import * from imgaug.augmenters.color import * from imgaug.augmenters.contrast import * from imgaug.augmenters.convolutional import * from imgaug.augmenters.edges import * ...
44db22541fa13bb0514ef0a372f738e3da9b270b
6933b96b9c10ca70da57b1b384126e20fa21d9b2
/FTP全自动采集爆破/sqlite0.5/test.py
05ef237848989a15f4732d62c26b3018bf0eb7c9
[]
no_license
Dawson0x00/scan
5bb2e85756b8e86ba43f6d63182a7e806c560bfc
e9f274e26ac924a47cf3216e707dc1a724937775
refs/heads/master
2021-01-19T14:12:59.107938
2017-02-22T02:51:27
2017-02-22T02:51:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,367
py
#!/usr/local/bin/python #-*- coding: UTF-8 -*- queue = [] def enQ(): queue.append(raw_input('Enter new string: ').strip()) #调用list的列表的pop()函数.pop(0)为列表的第一个元素 def deQ(): #www.2cto.com if len(queue) == 0: print 'Cannot pop from an empty queue!' else: print 'Removed [', queue.pop(0) ,']' de...
521f6e601d211e16f6f2ec8d5e0818cd6b21b957
4d4485378bec02daa527c12a6051be4254a86589
/usr/models/layerbylayer/tfnmt_model.py
cdbd294355c140c8c07dc7f2368279074b8e43af
[ "Apache-2.0" ]
permissive
colmantse/tensor2tensor-usr
163f5bff5e94dea75760e76fa4b07b6b2657a74c
8129cc7de2bb880dc328b4189ed613b26015c151
refs/heads/master
2021-07-13T01:22:29.626739
2017-10-10T00:53:54
2017-10-10T00:53:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
# coding=utf-8 """Layer-by-layer model definitions.""" from tensor2tensor.utils import registry from tensor2tensor.utils import t2t_model from tensor2tensor.layers import common_layers from usr import utils as usr_utils import tensorflow as tf
d1b18b6f214a8f4dda769d317c09e88b0bae2d87
5830b76dda9c2d0b62b1929f3a5be26606089c8c
/alembic/env.py
2b67e16b02665b1e8cf828f13f800f454cb0cd94
[]
no_license
umatbro/minikametr
0356eaff1c011b26065479cb417648ddf18f4796
4844e707c24559b3ad61b89f017a177fb52a5384
refs/heads/master
2023-08-25T02:30:25.753701
2021-10-11T10:18:10
2021-10-11T10:18:10
415,385,140
0
0
null
null
null
null
UTF-8
Python
false
false
2,167
py
from logging.config import fileConfig from sqlalchemy import engine_from_config from sqlalchemy import pool from alembic import context from db import DATABASE_URL from models import * # noqa # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.co...
b291e92f85bca69d74a58603ffcc38c2215c29b2
26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f
/exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/monitoring/librato_annotation.py
6ee3895763b1496c9b4c9cf358c1564d0a715a01
[ "GPL-3.0-only", "MIT", "GPL-3.0-or-later", "CC0-1.0", "GPL-1.0-or-later" ]
permissive
tr3ck3r/linklight
37814ed19173d893cdff161355d70a1cf538239b
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
refs/heads/master
2021-04-11T04:33:02.727318
2020-03-25T17:38:41
2020-03-25T17:38:41
248,992,437
0
0
MIT
2020-03-21T14:26:25
2020-03-21T14:26:25
null
UTF-8
Python
false
false
5,451
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) Seth Edwards, 2014 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 's...
437e3b76c5db61174df0709315d5522b40f253a9
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/LSpPdiycJ75MiwvgQ_23.py
b36b16ff2450b87301651121df6fdfacf4586124
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
import math def grid_pos(lst): return (math.factorial((lst[0])+(lst[1])))/((math.factorial(lst[0]))*math.factorial(lst[1]))
dabc8ad186e73d5e2493027f46098c5e57ecf998
9d74cbd676e629f8acdc68a4bac3dea0a98b9776
/yc204/779.py
a67f3265cfaf192ec25967ebdf2dfdcd4f940743
[ "MIT" ]
permissive
c-yan/yukicoder
01166de35e8059eaa8e3587456bba52f35bd0e44
dcfd89b0a03759156dcea8c2e61a7705543dc0d4
refs/heads/master
2022-03-20T06:50:48.225922
2022-02-25T15:48:50
2022-02-25T15:48:50
237,735,377
0
0
null
null
null
null
UTF-8
Python
false
false
141
py
Y, M, D = map(int, input().split()) s = '%04d%02d%02d' % (Y, M, D) if '19890108' <= s <= '20190430': print('Yes') else: print('No')
7e4616203464603cd0f1a2b181256c57a50b7d60
b20b8858b5da05c60e7dac02feb1187f88cc3294
/djangoproj/djangoapp/csc/nl/ja/utterance.py
f9d4798c1f3d2281a4dfe50b869a1ffb4b6df3d7
[ "MIT" ]
permissive
pbarton666/buzz_bot
18f15322e072d784e0916c5b8c147b53df5dc9d4
9f44c66e8ecb10e231f70989421f164d7a55029a
refs/heads/master
2021-01-10T05:26:43.809377
2015-09-25T20:04:58
2015-09-25T20:04:58
43,027,645
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
from csc.nl.ja.debug import * from csc.nl.ja.util import * from csc.nl.ja.tree import * import MeCab import CaboCha import re class JaUtterance(JaTreeBranch, JaLanguageNode): ''' Represents an entire utterance ''' def __init__(self, children): JaTreeBranch.__init__(self) self.children = ch...
2bfec92c85686a48a0bf480793637b9b2fbe0c90
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/voice-service/azext_voice_service/__init__.py
74808adfe69dcf2b4492cb572043ecf8ee1296d8
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-cli-extensions
c1615b19930bba7166c282918f166cd40ff6609c
b8c2cf97e991adf0c0a207d810316b8f4686dc29
refs/heads/main
2023-08-24T12:40:15.528432
2023-08-24T09:17:25
2023-08-24T09:17:25
106,580,024
336
1,226
MIT
2023-09-14T10:48:57
2017-10-11T16:27:31
Python
UTF-8
Python
false
false
1,563
py
# -------------------------------------------------------------------------------------------- # 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 aaz-dev-tools # --------------------------------...
1c9c05109df0cd972f65b8c29bd5c952deceb307
c83bb15f5f4ec5c5d2b2e05a7222eaf1fd4f49e5
/myops_run.py
ad4beb49c9217b542c766c3de0bd0d6f15327695
[ "Apache-2.0" ]
permissive
Xinya-liuliu/MyoPS2020
47fd2a0a3dd050ae128a1ddbe3b9b966e0cb45e0
6ac6157070315c7917a59954476682c1144f3845
refs/heads/main
2023-07-31T22:27:31.485620
2021-09-24T05:39:33
2021-09-24T05:39:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,306
py
# -*- coding: utf-8 -*- from __future__ import print_function, division import os import sys from pymic.util.parse_config import parse_config from pymic.net_run.agent_seg import SegmentationAgent from path_config import path_dict def main(): if(len(sys.argv) < 4): print('Number of arguments should be 4. e....
50074aa47c4416235453ba945d4a0326e34c5eb4
06e359c19c14a549d28ce8ab62a6e1e5f40f0ea8
/ScikitLearn/unsupervised/biClusteringL.py
8b78e68f28cf461c745d7aebe4febc5c7c318e19
[ "Apache-2.0" ]
permissive
thomasearnest/MDeepLearn
90c6f4c6d5f148f91b1ce95471cad42baee26977
00eb7211a3a40a9da02114923647dfd6ac24f138
refs/heads/master
2021-10-20T07:27:33.168927
2019-02-26T13:37:48
2019-02-26T13:37:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
656
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ------------------------------------------------- File Name:biClusteringL Description : 双聚类,对行列同时进行聚类 Email : [email protected] Date:2018/1/1 """ from sklearn.cluster.bicluster import SpectralCoclustering from sklearn.datasets import make_biclusters from s...
b39073640b54f81c5cab62529f62b21ee9042550
57120090948f99de2258a6f01a0cc65443441ce9
/hyperclass/exe/hyperclass/IndianaPines.py
867c2bd892b75164b4d35fd74fe05a5cd177b27f
[]
no_license
MysteriousSonOfGod/hyperclass
c67eff91f6f0f64fa4a92f8567243ef5cd8fa3c8
e8cec11b364e8b049e7432b95ce20a2c5de94235
refs/heads/master
2023-01-28T16:42:09.289664
2020-12-07T22:54:50
2020-12-07T22:54:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,443
py
from hyperclass.gui.application import HCApplication from hyperclass.data.manager import dataManager from hyperclass.gui.labels import labelsManager from hyperclass.gui.spatial.application import SpatialAppConsole import sys ref_file = "/Users/tpmaxwel/Dropbox/Tom/Data/Aviris/IndianPines/documentation/Site3_Project_an...
3dbbb9d3f258c8d80d132dd44156efd15a3ad0bb
2af1489471d199861b2e7cd63676d842eb65ec5a
/channelstream/wsgi_app.py
3af579f0067e57ade46e4412500c4da566c0c211
[ "BSD-3-Clause" ]
permissive
webclinic017/channelstream
637df12982817bd6c74fc1cb91c8571e5c551eef
73434adca2812a682b739f86bf1ca320e1f1603c
refs/heads/master
2023-05-12T15:55:13.453463
2020-10-21T19:08:08
2020-10-21T19:08:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,229
py
import datetime import uuid import importlib from pyramid.authentication import AuthTktAuthenticationPolicy from pyramid.authorization import ACLAuthorizationPolicy from pyramid.config import Configurator from pyramid.renderers import JSON from pyramid.security import NO_PERMISSION_REQUIRED from channelstream import ...
f86cf73fb42b39100b549b4648351468bffff0c4
9672b0bd6c73f35fdcc04dcf884d2e8425e78359
/resources/exceptions.py
96182522c64fecb5138ccb6a30069f52aef07680
[ "MIT" ]
permissive
surfedushare/pol-research
a91d5b6c95184719d721e3a8541e36b77a9ed1c6
5d07782fba0a894e934efb1dd199b6a4a19f678b
refs/heads/master
2022-01-07T00:50:24.427941
2019-05-02T12:29:53
2019-05-02T12:29:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
class DGResourceException(Exception): def __init__(self, message, resource): super().__init__(message) self.resource = resource class DGShellError(DGResourceException): pass
c161b56d5d336d5b33f873a135e6ff06d4a82968
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_74/931.py
67218b9c71e79a373560e676c36322fa8eb846ab
[]
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
2,047
py
import sys class Runner(object): def __init__(self, test_case): self.test_case = test_case self.state = { "O": 1, "B": 1, } def run(self): def done(): return not bool(self.test_case.instructions) def next(robot): next_butt...
3aa380bc45ee5078c114892476157413ad664058
908655251066427f654ee33ebdf804f9f302fcc3
/Tests/CartPoleAST/Test/ast_reward.py
c8213b436bd92572cc9153556fabc64880fe402c
[]
no_license
maxiaoba/MCTSPO
be567f80f1dcf5c35ac857a1e6690e1ac599a59d
eedfccb5a94e089bd925b58f3d65eef505378bbc
refs/heads/main
2023-07-05T02:20:16.752650
2021-07-06T06:04:40
2021-07-06T06:04:40
381,811,407
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
# useful packages for math and debugging import numpy as np import pdb # Define the class, inherit from the base class ASTReward(object): def __init__(self): pass def give_reward(self, action, **kwargs): """ returns the reward for a given time step Input ----- ...
209da61669af27b11a8a5affd1de64c8fb12117a
d312ced5d6a06d35937b3f3d6a7415746ef06f71
/weibo2rss/urls.py
6db52f1cd121a8c315918fba590d36665f1c5d7c
[]
no_license
chu888chu888/Python-SAE-weibo2rss
931ccaf2cd8438ebbfd6eff3b65a54b88e63e999
80f0c9e862505218a4284fcebd67276e8b372e31
refs/heads/master
2020-04-10T08:44:54.448809
2012-12-09T07:07:34
2012-12-09T07:07:34
9,112,168
1
1
null
null
null
null
UTF-8
Python
false
false
594
py
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from weibo2rss.views import * urlpatterns = patterns('', url(r'^$', getfeedurl), # 主页 url(r'^callback/$', callback), # 微博授权返回页 url(r'^timeline/(?P<uid>\d+)/$', timeline), # 微博timeline rss页,通过user id获取 url(r'^favorite...
34b2d24f65f93831c306c1d5e2fc2783c605cea3
3f48e3308674212408c3b6ca972eb4f793bf142b
/f7_chipseq/f7_diff_binding_on_UTX_sep_k4me1/f1_differential_binding_figs/py4c_heatmap_across_CellTypes_k27ac_increased.py
d8d3e09d9ee4e0d87d9e5c650b7f448484669bd7
[]
no_license
zanglab/utx_code
8497840ace81e0337f92f04fafbb691f0ed24865
32fc7851207f650b3cc78974ab798f8606099e56
refs/heads/main
2023-06-28T17:38:33.231877
2021-07-27T01:31:00
2021-07-27T01:31:00
388,648,753
1
0
null
null
null
null
UTF-8
Python
false
false
8,138
py
import sys,argparse import os,glob,re import numpy as np import pandas as pd import matplotlib # matplotlib.use('Agg') from matplotlib import gridspec import matplotlib.pyplot as plt matplotlib.rcParams['font.size']=14 matplotlib.rcParams["font.sans-serif"] = ["Arial", "Liberation Sans", "Bitstream Vera Sans"] matplotl...
02455e17cb15c2f1da50bd50f0afd2b4b54e1341
ed81cc186915e55cd0fbf3ba7717193f68290c46
/mcq_v2/quiz_qus/migrations/0003_auto_20181001_2205.py
6e738716db91f38e7b7068f599b4a9b1aeb263ec
[]
no_license
MMIL/MCQ_Module_V2
ea07daf8845afd5023edbea716b0f3808f921e06
02586652971eb8d5b952ac8542172a57ab909c3e
refs/heads/master
2022-12-11T22:34:12.547492
2020-03-02T17:23:20
2020-03-02T17:23:20
146,754,594
1
4
null
2022-11-22T02:52:48
2018-08-30T13:34:56
CSS
UTF-8
Python
false
false
387
py
# Generated by Django 2.1.1 on 2018-10-01 22:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('quiz_qus', '0002_question_qus_id'), ] operations = [ migrations.AlterField( model_name='question', name='qus_id', ...
14a76995fb36ee801799c35e39e7112c522601c9
7b13e6acb2a1f26936462ed795ee4508b4088042
/算法题目/算法题目/动态规划/最长公共子序列/最长公共子序列.py
57720483fde66ff1f0318f2fcec1681da5c3ea10
[]
no_license
guojia60180/algorithm
ed2b0fd63108f30cd596390e64ae659666d1c2c6
ea81ff2722c7c350be5e1f0cd6d4290d366f2988
refs/heads/master
2020-04-19T08:25:55.110548
2019-05-13T13:29:39
2019-05-13T13:29:39
168,076,375
0
0
null
null
null
null
UTF-8
Python
false
false
995
py
#Author guo ''' 动态规划想法 定义二维数组dp[i][j]用来存储最长公共子序列的长度 其中dp[i][j]表示S1前i个字符与S2前j个字符最长公共子序列长度 考虑S1i与S2j是否值相等分为两种情况 相等时,dp[i][j]=dp[i-1][j-2]+1 不相等时,取最大值 ''' #递归 def recursive_lcs(stra,strb): if len(stra)==0 or len(strb)==0: return 0 if stra[0]==strb[0]: return recursive_lcs(stra[1:],strb[1:])+1 ...
1a46bb5ed824ced4f62fc30a3ac0f058c451d445
5368c5c131da8ab226015cfd561cc3016c60fc82
/venv/bin/chardetect
8ae64b45acdfbfbd24ea506daac71d53d66b8ec8
[]
no_license
ojudsonleo/DevCode
d621eed2d6555fa9c3fc37314edfc0646c4d1710
ee22b9ed560275f276672d62e219c8d429726c23
refs/heads/main
2023-05-27T10:50:15.593840
2021-06-08T05:53:45
2021-06-08T05:53:45
374,292,419
0
0
null
null
null
null
UTF-8
Python
false
false
246
#!/home/admin/Desktop/Python/env/bin/python # -*- coding: utf-8 -*- import re import sys from chardet.cli.chardetect import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
cb76a7dfc791e4ea861199bb4573e6a0bed1781d
5545d3c3e910ccb5b45b2277a71ad3c3ea3caedc
/jamenson/runtime/bases.py
0f10210b6209ad6eb4bc9aa0a786f28149df0744
[ "Apache-2.0" ]
permissive
matthagy/Jamenson
61de19c71da6e133bf7d8efbb933a1036cf1e6f5
18a0fdd60b3d56ed4a6d4e792132535324490634
refs/heads/master
2016-09-11T04:31:28.895242
2013-04-04T00:14:44
2013-04-04T00:14:44
1,781,863
1
0
null
null
null
null
UTF-8
Python
false
false
477
py
class CachingBase(object): class __metaclass__(type): def __new__(cls, name, bases, dct): dct = dict(dct) dct['_cache'] = dict() return type.__new__(cls, name, bases, dct) def __new__(cls, *args): key = cls.get_key(*args) try: return cl...
a04c7206a90f059fc1e7a64f2ee14889c8afdec6
4a74ec1b7e299540b924bce4928537a51fc00ff5
/day24_day30/day30/최소비용.py
d89cf0abe4576789fbcb40888e9bf1e4dbc0130c
[]
no_license
yeonlang/algorithm
ef74b2592818495f29f6de5f44f81ccf307efa59
ab788658bb781773c489cac8c6e8d2bea48fda07
refs/heads/master
2020-04-22T20:25:46.243355
2019-05-08T15:17:45
2019-05-08T15:17:45
170,641,144
0
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
import sys sys.stdin = open("최소비용.txt") def ispass(ny,nx,y,x): if 0<=ny<N and 0<=nx<N : if data[ny][nx]-data[y][x]>0: if visited[ny][nx] == -1 or visited[ny][nx] > data[ny][nx] - data[y][x] + visited[y][x] + 1: visited[ny][nx] = data[ny][nx] - data[y][x] + visited[y][x] + 1 ...
0051cc3d11fc72f806d6a37142f0100c2f5e6541
34965549da4706d3c8da21d06840452a35eef383
/dff_drfcn/config/config.py
e9038e61e56fa4fb9835ad460e68437ad5080162
[ "LicenseRef-scancode-generic-cla", "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-2-Clause-Views" ]
permissive
xvjiarui/Deep-Feature-Flow
50410b650b4ae2754530a4e64891c04a0a3106fe
a6a860dbd76660260b461a7fbb3a674765f52b0c
refs/heads/master
2020-03-19T16:01:27.637599
2018-07-05T15:38:10
2018-07-05T15:38:10
136,696,520
0
0
null
2018-06-09T06:20:30
2018-06-09T06:20:30
null
UTF-8
Python
false
false
6,561
py
# -------------------------------------------------------- # Deep Feature Flow # Copyright (c) 2016 by Contributors # Copyright (c) 2017 Microsoft # Licensed under The Apache-2.0 License [see LICENSE for details] # Modified by Xizhou Zhu, Yuwen Xiong, Bin Xiao # -------------------------------------------------------- ...
c5c82c9f5560f4c2e4856e167c89d545433bb57d
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-ververica/aliyunsdkververica/request/v20200501/TableExistsRequest.py
137bb321ebbe22b34e009f2bfc35f45f452013f6
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
2,144
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 u...
58499b0b8766249579f224c8aae66b0468d1c391
24d9f077593b33c707b12d3a00cf91750f740729
/src/114. Flatten Binary Tree to Linked List.py
ca38f01ee8f682f594eaea6f2db7d9fe6f7ac343
[ "Apache-2.0" ]
permissive
xiaonanln/myleetcode-python
274c8b8d7c29fd74dd11beb845180fb4e415dcd1
95d282f21a257f937cd22ef20c3590a69919e307
refs/heads/master
2021-01-22T21:45:59.786543
2019-04-21T15:24:23
2019-04-21T15:24:23
85,474,052
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
""" Given a binary tree, flatten it to a linked list in-place. For example, Given 1 / \ 2 5 / \ \ 3 4 6 The flattened tree should look like: 1 \ 2 \ 3 \ 4 \ 5 \ 6 """ # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # ...
a698ed601f3b430730ee2f2a7f75671b0eee1904
4992af29261214cb1e74375fc36dd51fd95db703
/sparkmagic/sparkmagic/kernels/sparkrkernel/sparkrkernel.py
12553364bb11624f8a652b7828b98250bb92c1f2
[ "BSD-3-Clause" ]
permissive
logicalclocks/sparkmagic
9ef7ec0c124a8a317f14bb39b6a2b041ed1b8151
4f14b6ca54ac5fa54451392eafd5dd10721c000c
refs/heads/master
2023-05-31T23:30:52.208643
2023-02-28T08:21:16
2023-02-28T08:21:16
134,001,978
1
11
NOASSERTION
2023-03-02T10:57:00
2018-05-18T20:38:38
Python
UTF-8
Python
false
false
980
py
# Copyright (c) 2015 [email protected] # Distributed under the terms of the Modified BSD License. from sparkmagic.utils.constants import LANG_R from sparkmagic.kernels.wrapperkernel.sparkkernelbase import SparkKernelBase class SparkRKernel(SparkKernelBase): def __init__(self, **kwargs): implementation = '...
de77c75c5f975b4bbb813f8ff2747bef83345417
ca2c6bb4435138eae83d9776a672239651aac9bc
/week03/pymysql_insert.py
3b59c21070bb191d0f72fbf83794156c1865dcda
[]
no_license
git-guozhijia/Python006-006
83b48180229d5be661cb2c3f12944b300a90db5a
99642c351bc5ebe6dab4a7287bfa3234c37d1a90
refs/heads/main
2023-04-08T17:31:00.003482
2021-04-16T03:15:35
2021-04-16T03:15:35
323,208,392
0
0
null
2020-12-21T02:15:12
2020-12-21T02:15:12
null
UTF-8
Python
false
false
662
py
import pymysql def insert_func(id, name): db = pymysql.connect(host='localhost', port=3306, user='root', password='guozhijia123', db='test_db') try: with db.cursor() as cursor: mysql = "insert into book (`id`, `name`) value (%s, %s)" data = (id, name) cursor.execute(...
18050b373866ff46bc02391fb395be2e900b67cf
81c8aaec0ca8d9b345943d1f2324ace61eb034c6
/backend/markly/actions/models.py
ea833b1f906ff8abe47b7fca3af8265506c5991f
[ "MIT" ]
permissive
salmanAndroidDev/markly
ba1c2e0107e79e4940ab2b5dd9455b877e044e25
c2b8c4a2fd99b6e2c374e127f62b10adbf143b7c
refs/heads/main
2023-06-02T21:18:03.710345
2021-06-25T18:28:54
2021-06-25T18:28:54
377,372,093
2
0
null
null
null
null
UTF-8
Python
false
false
1,143
py
from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey from django.db import models class Action(models.Model): """Action model to store activities""" user = models.ForeignKey('auth.User', related_name='actions',...
a664186b38b7feff544ed14e7958602120136940
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/pg_1729+371/sdB_pg_1729+371_coadd.py
568443ae3e489c9b6fd876c2f3788f0e49d3b805
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[262.892625,37.091864], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_pg_1729+371/sdB_pg_1729+371_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB...
a4d5f9dbd7ff9760239211ade45c0106a72a2774
5ff8f807d6318f41843c645f6da60a9bc43ede80
/fabfile.py
be5aa937ae9f3288eeceff30d3bcb3d4effda0db
[]
no_license
notmissingout/notmissingout_old
e0de2484ad68083aa892f96e44c900ff09f59a40
ed2521205679da61345a3335b99151bc0b952689
refs/heads/master
2021-06-18T03:06:28.420937
2017-05-14T09:37:34
2017-05-14T09:37:34
null
0
0
null
null
null
null
UTF-8
Python
true
false
7,302
py
"""Manage a remotely-installed WSGI app on a Unix-like system, with environment variables controlling a lot of the WSGI app's functionality (12 Factor style). All remote access to the app is done via an `invoke` script, which contains the environment variables, which is created during setup. Sensitive ones should be p...
76a08fcfefed1b045ec3b43c0f851dffda21bfbd
357fefa288745c9ab3bc276a7ef0bc815f3fec2a
/src/gui/coverage.py
c483bb12db046aecb856f12f3f34c4b03eb1372e
[ "MIT" ]
permissive
jdvelasq/techminer
61da47f44719e462732627edcc1094fab6c173f1
7a34a9fd684ce56cfbab583fa1bb71c1669035f9
refs/heads/main
2023-03-15T23:26:22.876051
2023-03-13T21:47:24
2023-03-13T21:47:24
204,352,276
0
1
MIT
2019-12-09T02:37:11
2019-08-25T21:34:19
Jupyter Notebook
UTF-8
Python
false
false
1,198
py
from techminer.gui.bigraph_analysis import App import pandas as pd import ipywidgets as widgets from ipywidgets import GridspecLayout, Layout from IPython.display import display class App: def __init__(self) -> None: self.app_layout = GridspecLayout(9, 4, height="870px") self.output = widgets.Ou...
44fef314424eaf2f58f5213dbe42ff75bdeb0352
4eddc1ba3a0a207e70bfb7addf73c18b1a0e19fc
/benchmark.py
77fb873d01b719f263403ec6c853ffa6754beff9
[ "MIT" ]
permissive
vibiu/validater
558284b1811a1bdadbcb072620245cd1e78fd33d
687791f4d234d379f392fdb64064276833d08666
refs/heads/master
2020-12-24T10:39:29.655705
2016-05-24T22:41:33
2016-05-24T22:41:33
62,855,916
0
0
null
2016-07-08T03:29:12
2016-07-08T03:29:12
null
UTF-8
Python
false
false
1,830
py
from timeit import timeit setup = """ from io import BytesIO import json from ijson.backends.python import basic_parse from ijson.backends.yajl2_cffi import basic_parse as cbasic_parse from validater import parse, validate schema = parse([{"userid": "int"}]) data_normal = json.dumps([{"userid": "123"}], ensure_ascii=F...
f91f2010f2e8223dd9304fc1bbf4e21fa295d5c7
43b0679349d4f8a8c281705df1bf4cf2805b2816
/backend/code/archipelag/event/migrations/0005_auto_20170909_1004.py
5561e8ad2d914586dfa2bee6d8e6cf2782f56c5a
[]
no_license
socek/archipelag
d2eecc1e7b49954d3d9de89d571f7a5021b995e4
359ea98d9e8cca0eac2469413d4b4469166f6a43
refs/heads/master
2021-03-24T09:12:29.137254
2017-09-09T14:14:33
2017-09-09T14:14:33
102,904,818
0
2
null
2017-12-18T22:32:12
2017-09-08T21:12:10
Python
UTF-8
Python
false
false
529
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-09 10:04 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('event', '0004_auto_20170909_0933'), ] operations =...
d1b223b99ccc20932fbbadf3a004e2e0128ec2fd
5d7b619d6bd8117db0abc878af02d7f4f30ca938
/fileIO_Includes.py
9c97566943c292e11fef69ff2bf5df5245b21699
[]
no_license
LeeHuangChen/2018_01_17_1_BlastAllToAll
3b55f3efc5e837e9692cd32b117b240846a67026
32dad9ef0eff7f725734365c41488cd530e6bdcb
refs/heads/master
2021-09-04T09:54:35.336820
2018-01-17T20:46:28
2018-01-17T20:46:28
117,890,770
0
0
null
null
null
null
UTF-8
Python
false
false
1,999
py
import os #A list of includes for file io def createEmptyFiles(paths): for path in paths: f=open(path,"w") f.close() def testPath(path): if not os.path.exists(path): os.mkdir(path) def appendFile(path,content): f=open(path,"a") f.write(content) f.close() def readFile(path): f=open(path,"r") content=f.read(...
f3716608d9c07e2bfa41779e9f5bebd961f12cf3
cc2029f40a12e82712072275fc76a07ac59b5940
/battles/challenges/leftover.py
f1f494d260bbf60ca98f6f60873b37896969161e
[ "MIT" ]
permissive
heitorchang/learn-code
d3fb8e45d539d302372126fe28e85032590b5707
5e6e56f7257de1910830619c01d470e892d7f9d8
refs/heads/master
2023-08-09T13:46:18.623772
2023-07-21T16:57:11
2023-07-21T16:57:11
147,522,837
1
0
null
null
null
null
UTF-8
Python
false
false
541
py
def leftover(s): u = s.upper() su = sum(map(ord, u)) return sum(map(ord, s)) % su def trymod(a, c): solutions = [] for i in range(2, a): if a % i == c: solutions.append(i) return solutions def test(): testeql(leftover("antidisestablishmentarianism"), 27) testeql(le...
1620d78c72c1f7e1b85e480f5639de81c127ad1e
9b410c4884b978f654e1538467549d26456f60e0
/src/fuzz_closure_3178.py
c0a38983637435f2ceeb1ef23ae239bcb386b76e
[]
no_license
vrthra/ddset
4c49e13a91c4a1c1b4a7b580174abe21323324da
6c776c998a0d7e2ee0092cf688e352149b177330
refs/heads/master
2022-11-29T23:46:40.730354
2020-08-03T13:36:49
2020-08-03T13:36:49
257,855,512
4
0
null
null
null
null
UTF-8
Python
false
false
177
py
import Fuzz as F import closure_3178 as Main if __name__ == '__main__': F.main('./lang/js/grammar/javascript.fbjson', './lang/js/bugs/closure.3178.js', Main.my_predicate)
93ec4324fe75da5921ba6871ebe99da564045576
b589f3997e790c3760ab6ddce1dd1b7813cfab3a
/665.py
254ca38201ea67ab0e46990b8f10261e4019ab22
[]
no_license
higsyuhing/leetcode_easy
56ceb2aab31f7c11671d311552aaf633aadd14a8
48d516fdbb086d697e2593a9ce1dbe6f40c3c701
refs/heads/master
2022-12-04T00:49:33.894066
2022-11-15T20:44:36
2022-11-15T20:44:36
135,224,120
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
class Solution(object): def checkPossibility(self, nums): """ :type nums: List[int] :rtype: bool """ # wtf this problem... p = None for i in xrange(len(nums) - 1): if nums[i] > nums[i+1]: if p is not None: retur...
4bb930fddf7b3752d067f732a558b58be2f49b4f
b1cf54e4d6f969d9084160fccd20fabc12c361c2
/misc/python/list_comp.py
30133d550bfa444f552434571332ab5c3ebeecee
[]
no_license
zarkle/code_challenges
88a53477d6f9ee9dd71577678739e745b9e8a694
85b7111263d4125b362184df08e8a2265cf228d5
refs/heads/master
2021-06-10T11:05:03.048703
2020-01-23T06:16:41
2020-01-23T06:16:41
136,668,643
0
1
null
2019-02-07T23:35:59
2018-06-08T21:44:26
JavaScript
UTF-8
Python
false
false
1,890
py
""" List Comprehension practice https://www.reddit.com/r/learnpython/comments/4d2yl7/i_need_list_comprehension_exercises_to_drill/ Tip: Practice mechanically translating a list comprehension into the equivalent for loop and back again. """ # Find all of the numbers from 1-1000 that are divisible by 7 seven = [num fo...
3199fe280a37613c9116da698abbdbb9541d069b
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_75/166.py
1165a86b97154abf8872b43df4ac9635e82595f0
[]
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
1,578
py
INPUT_FILE = r'C:\Downloads\FromFirefox\B-large.in' OUTPUT_FILE = r'C:\Users\Assaf\Fun\codeJam\B-large.out' inputFile = file(INPUT_FILE, 'rb') numQuestions = int(inputFile.readline()) outputFile = file(OUTPUT_FILE, 'wb') def solveQuestion(combain, disappear, elements): magicka = ['\x00'] for element ...
2205f8227b4cfacbdec160fedda6f00dab2b89d8
cbc107b4a98275bd6d007b496d3477d9bc8dc89a
/catalog/api_router.py
7a9bdf96d7397cdf587e5b494aaee645241d024b
[]
no_license
grogsy/local-library
1a9e35692cb5173f3197b948d13ce3a5861b03ba
783c8965d5aa01c53297f77396010e998272d8c2
refs/heads/master
2023-08-22T22:28:24.302301
2020-06-10T00:07:20
2020-06-10T00:07:20
271,135,512
0
0
null
2021-09-22T19:11:10
2020-06-10T00:05:55
Python
UTF-8
Python
false
false
205
py
from rest_framework.routers import DefaultRouter from .api_views import AuthorViewSet, BookViewSet router = DefaultRouter() router.register('authors', AuthorViewSet) router.register('books', BookViewSet)
8737c3804357d15c0f2a38478876a0af9addecf2
78c062054304534f2a4b7b9ebd4b6fbe7d9dc3b2
/Ampere-Law-Example.py
e5d8d63a75eedbd1ebe3c5adc860b254a7c0e390
[]
no_license
buckees/ICP-field-solver
5d4137ee6d6e7345c83b212b7e844b0adf794abc
51644c311c62d63e5d7f689d5c6659ab6bda52aa
refs/heads/master
2022-12-10T18:43:35.387773
2020-09-04T04:48:16
2020-09-04T04:48:16
290,904,111
0
0
null
null
null
null
UTF-8
Python
false
false
3,119
py
# -*- coding: utf-8 -*- """ ICP Field Solver Ampere's Law """ import numpy as np from math import pi import matplotlib.pyplot as plt from matplotlib import colors, ticker, cm from Constants import MU0 from Mesh import MESHGRID #set infinite-long wire to position (wx, wy) with infinitesimal radius I = 1.0 # wire curr...
6c95cc60743e241e2ea83b22b81fcfde4ec4a846
60284a471e48e49e9b184305b08da38cbaf85c38
/src/tests/ftest/container/query_attribute.py
a1a6e819ad27b3d44a00c63b6c53a7b7a369d0ab
[ "BSD-2-Clause-Patent", "BSD-2-Clause" ]
permissive
minmingzhu/daos
734aa37c3cce1c4c9e777b151f44178eb2c4da1f
9f095c63562db03e66028f78df0c37f1c05e2db5
refs/heads/master
2022-05-10T17:23:32.791914
2022-02-28T18:44:50
2022-02-28T18:44:50
228,773,662
1
0
Apache-2.0
2019-12-18T06:30:39
2019-12-18T06:30:38
null
UTF-8
Python
false
false
7,045
py
#!/usr/bin/python """ (C) Copyright 2020-2022 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ from apricot import TestWithServers import base64 class ContainerQueryAttributeTest(TestWithServers): # pylint: disable=anomalous-backslash-in-string """Test class for daos container query an...
4aeab5318b535611b91139d2bc101a65282f49c9
6eb13e52b6babe24eaa7122b11bb3041752d1ede
/stock/forms.py
e55fb855b02a1c3af321406980641cbc20cbe5ce
[]
no_license
siuols/Inventory
a992076736bf34e0a5ad35e965860bd5971e3b73
e30e15593f1c2e1faabb382d8f4c2753f717fb73
refs/heads/master
2022-12-08T07:32:49.101561
2019-03-05T01:39:29
2019-03-05T01:39:29
173,235,778
1
2
null
2022-12-08T01:21:31
2019-03-01T04:40:13
JavaScript
UTF-8
Python
false
false
2,963
py
from django import forms from .models import Brand,Category,Course,Customer,Release,Office,Item from django.contrib.auth import get_user_model from django.core.validators import RegexValidator from django.utils.translation import ugettext, ugettext_lazy as _ User = get_user_model() class ItemForm(forms.ModelForm): ...
775c68a1333634d972eebf451d817b86a9e833eb
23d55806db77d9e735dec5f71b85d31bcb88b6d3
/lib/clientProcessing.py
448a742a6e2b73f2be86da23aca0cf7994777451
[ "MIT" ]
permissive
schollz/splitthework
60fa69f0a8aeda911718937ff0fff3f20cf564ae
cfb2d9495fab64018b73483c41d371408823abe0
refs/heads/master
2023-09-01T00:07:38.606938
2016-01-25T13:24:17
2016-01-25T13:24:17
50,106,122
0
1
null
null
null
null
UTF-8
Python
false
false
411
py
import os from lib.compress import * def processWork(data): strData = [] for a in data: strData.append(str(a)) os.system("sudo python3 downloadPages.py " + " ".join(strData)) results = json.load(open('downloadedPages.json','r')) # print(sys.getsizeof(json.dumps(results))) dataCompresse...
5042d48f346bea32b1c892f4b34cf1d6c611d4ab
d45ae345eb677df44c8940de49faa54554392259
/player.py
d059193080e902204e4d7caddae96527a16b3e0f
[]
no_license
ErickMwazonga/tic-tac-toe
e2c1577a26e86f6846477ba930530f02ed3c9760
852d71bdbd30e6c7d6a1a6c5454b27782c04dd9c
refs/heads/main
2023-02-16T18:41:26.656770
2021-01-17T18:55:25
2021-01-17T18:55:25
330,277,710
0
0
null
null
null
null
UTF-8
Python
false
false
1,027
py
import math import random class Player: def __init__(self, letter): self.letter = letter def get_move(self, game): pass class RandomComputerPlayer(Player): def __init__(self, letter): super().__init__(letter) def get_move(self, game): square = random.choice(game.a...
21fff6327264a41c228458d5d90a207273cc788d
c1c7214e1f9230f19d74bb9776dac40d820da892
/examples/django/urlディスパッチャ/pathconverterの使い方/project/project/urls.py
351f32b488f3fde9be2c0319b72c653193e0088b
[]
no_license
FujitaHirotaka/djangoruler3
cb326c80d9413ebdeaa64802c5e5f5daadb00904
9a743fbc12a0efa73dbc90f93baddf7e8a4eb4f8
refs/heads/master
2020-04-01T13:32:28.078110
2018-12-13T00:39:56
2018-12-13T00:39:56
153,256,642
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), path('app/', include('app.urls')), ] if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, ...
dffba14a10e2a9605e6d4e2c4867a0b64bb48df5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02571/s951856680.py
877fada58e3c8f14ea495f8dbf96727c9212573a
[]
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
265
py
from sys import stdin input = stdin.readline s = input().strip() t = input().strip() ns = len(s) nt = len(t) def cnt(a,b): return sum(1 for aa,bb in zip(a,b) if aa != bb) res = nt for i in range(ns - nt + 1): res = min(res,cnt(s[i:i+nt],t)) print(res)
cf29ae1399310eb4eef155d268cd8c66f9b0237f
03dacfab20ffb93eeb675f78005824bf68b72e7c
/Python/Algorithms/String/高级字符串算法/最长子串和子序列问题/1143 M_最长公共子序列.py
18f7a7737f2a65f2b64ae7bdb1c3399384fc097b
[]
no_license
RuiWu-yes/leetcode
e343a55ebd7a3cacd400d6d2605fdbd2345a28d3
bfc5641445c505f2b41155c61bdf65f3e601554f
refs/heads/master
2023-07-14T07:27:42.525472
2021-08-01T08:57:00
2021-08-01T08:57:00
342,442,765
4
2
null
null
null
null
UTF-8
Python
false
false
2,620
py
# -*- coding: utf-8 -*- # @Author : ruiwu # @Email : [email protected] # @Title : 1143 最长公共子序列 # @Content : 给定两个字符串 text1 和 text2,返回这两个字符串的最长公共子序列的长度. # 若这两个字符串没有公共子序列,则返回 0. class Solution: def longestCommonSubsequence1(self, text1: str, text2: str) -> int: # 暴力解法:可以用备忘录去优化 def d...
78363b0fe2022a55e40a75f79966bd4e280108fb
99dd08b129792494cd2cd74224ce5a8de68ac4c9
/app/migrations/0009_auto_20160605_2237.py
c453c0484a366bdb7ec0961161d1fe95913ce75b
[]
no_license
ssssergey/DjangoPauk
78d90239792d1c07f88809fed36682242260be8e
887b71648c3c30f0bd90eb5becf3e9b50d6f44a8
refs/heads/master
2021-01-20T19:36:38.899428
2016-07-10T21:20:26
2016-07-10T21:20:26
60,295,481
0
0
null
null
null
null
UTF-8
Python
false
false
1,378
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-05 19:37 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependen...
f483e7c7b7682bce9d8387d15166f0d4ba4223ae
78b7b3e27553ccf0b89c24cbd11662600db26b4c
/ScrapeNASAPicDayWebsite/.history/scraper_20190701155658.py
9085a093cb3265c5dda31be4a0d1f5a1e80d88a7
[]
no_license
web3-qa/intermediatePython
2c23408bd6d6dffc070b92e1155d3c072cfe040c
b4791db2bcb59aaf9c447cf50ffd4d21cacbe16b
refs/heads/master
2023-02-08T14:18:54.288227
2019-07-18T13:31:23
2019-07-18T13:31:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
import urllib.request from bs4 import BeautifulSoup from scraper import BeautifulSoup urllib.request.urlopen("hhtp://apod.nasa.gov/apod/archivepix.html").read() BeautifulSoup(content, )
4f9e97ff4a141d409fa1a42cf7808dcf0bd944bb
b77e12c0fc66cf47f83359fe8a04890669058f08
/day_5/dictAndSet.py
e9db838ac14a2b726afe23383f0aae6c8d717cf6
[]
no_license
dydy061951/SeleniumProject
177bb8bdd9f3f586d63c7330d4e5bcdc473cf7c8
857fddb74748133475e5f4583007446ab7d2184f
refs/heads/master
2021-08-23T04:41:30.705381
2017-12-03T09:26:14
2017-12-03T09:26:14
112,907,712
0
0
null
null
null
null
UTF-8
Python
false
false
1,105
py
# dict 是字典的缩写;set是集合的缩写;它们都和数组类似 # python 中的元组用小括号表示,列表用中括号表示 # 元组用小括号,列表用中括号,字典和集合用大括号表示 #比如,同样描述一个学生的信息 stu=("001","小明","男",23) #元组:只读,不可增删改,只可查看 #元组和数组的区别: #数组可以修改元素的内容,但是不能增加和删除,数组中所有元素的类型一样 #元组不能增删改,元素的类型不固定(可以有数字和字符串) stu1=["001","小明","男",23] #列表:可以进行增删改查,列表是最常用的数据格式 #find_elements()返回的就是列表 stu2={"001","小明","...
[ "51Testing" ]
51Testing
674ef2ade2f77f65c921287874e2e1a94c29f507
27da9fb329a867a6035ecefb77c3a591eefa1e17
/tools/data_faker/data_faker/__main__.py
63faaed86541ebc70adffb12911f915503996460
[ "BSD-3-Clause" ]
permissive
ngoctrantl/rotki
ceef5d3c11ff987889997b3ef1939ef71daaa2ce
c30b2d0084c215b72e061e04d9f8391f8106b874
refs/heads/develop
2020-12-21T06:49:47.819538
2020-01-26T10:35:45
2020-01-26T15:29:56
236,344,817
0
0
BSD-3-Clause
2020-01-26T17:04:32
2020-01-26T17:03:27
null
UTF-8
Python
false
false
815
py
from gevent import monkey # isort:skip # noqa monkey.patch_all() # isort:skip # noqa import logging from data_faker.args import data_faker_args from data_faker.faker import DataFaker from data_faker.mock_apis.api import APIServer, RestAPI logger = logging.getLogger(__name__) def main() -> None: arg_parser = d...
19a0bd540f1464267b32189c9380ffdd67d3eb3f
a1fc57c6a3e3101d53729ad11df22adb058f1060
/instagram/posts/models/posts.py
65ff67af1e6b4c9e356e4d7d992c72aaa9674904
[]
no_license
morwen1/curso_instagram
7f5742256a1eacf38a78b06a62e3f21bcf8b10a9
d201ff1f35f5f682242e4f49867fe6cad144d5c8
refs/heads/master
2020-07-17T23:00:47.259139
2019-09-03T02:37:21
2019-09-03T02:37:21
206,119,167
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
from django.db import models from utils.abstract_model import AbstractModel class Post(AbstractModel): """ model for posts """ profile = models.ForeignKey('users.Profile', help_text = 'este es una clave foranea diciendo que los posts pueden tener muchos usuarios' , on_delete=models.CASC...
57e440f9fd98a0afa4340c24c19adfdec78fcf41
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03011/s231502042.py
7a3be73ad896f44c8d92be6dc0b51274a08bf211
[]
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
150
py
# -*- coding: utf-8 -*- from itertools import combinations print(min(map(lambda x: sum(x), list(combinations(list(map(int, input().split())), 2)))))
3f053d139e2165e119e91310782c2ab28c379bfa
50914176887f9f21a3489a9407195ba14831354c
/three_sum.py
47d8ce947ca63a31a4d8a149ad33f21e2a0c41bf
[]
no_license
nkukarl/leetcode
e8cfc2a31e64b68222ad7af631277f1f66d277bc
b1dbe37e8ca1c88714f91643085625ccced76e07
refs/heads/master
2021-01-10T05:42:04.022807
2018-02-24T03:55:24
2018-02-24T03:55:24
43,725,072
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
class Solution: def three_sum(self, numbers, target): numbers.sort() res = [] for i in range(len(numbers) - 2): if i > 0 and numbers[i] == numbers[i - 1]: continue j = i + 1 k = len(numbers) - 1 while j < k: trip...
16a5e5311dd5aa7dcfe895249e7d901d2b518249
397e125e94f4f139f2bf5055824d81f24b8b1757
/ABC/061/C.py
47ac392a04a86831bd757380bb2584b700a9cb8c
[]
no_license
tails1434/Atcoder
ecbab6ee238e3f225551297db961b1b502841fa4
e7c7fed36be46bbaaf020a70997842240ba98d62
refs/heads/master
2021-07-07T00:31:49.235625
2020-09-30T01:42:01
2020-09-30T01:42:01
189,009,622
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
def main(): N, K = map(int, input().split()) ans = [0] * (10 ** 5 + 1) for i in range(N): a, b = map(int, input().split()) ans[a] += b for i in range(10 ** 5 + 1): if K <= ans[i]: print(i) exit() else: K -= ans[i] main()
4e4e7e019f8f77c6f1c5dfdc25e15ce358740c13
adf428caea488bfbc22917b8d340dde3293fc306
/gan/cloud/trainer/mytask.py
ea4de8f20e131a8cc074ecd3edd431b3a661f397
[]
no_license
tingleshao/riviera
3269a0a0cb30da96bfd33ba3d950a873fdfa24e3
f44f43bc2b08d50d6bbc6d0b61fcb91146da5d9f
refs/heads/master
2021-09-11T20:29:35.615539
2018-04-11T23:23:32
2018-04-11T23:23:32
115,686,329
0
0
null
null
null
null
UTF-8
Python
false
false
5,803
py
import argparse import model import tensorflow as tf from tensorflow.contrib.learn.python.learn import learn_runner from tensorflow.contrib.learn.python.learn.utils import ( saved_model_export_utils) def generate_experiment_fn(train_files, eval_files, num_ep...
ead3852d5b3896dc4a4817d88070380e31e7f65c
e210c28eeed9d38eb78c14b3a6388eca1e0e85d8
/nvflare/app_opt/pt/file_model_locator.py
2caab1f304cf3f0c974eb142e0c6083e1d68b582
[ "Apache-2.0" ]
permissive
NVIDIA/NVFlare
5a2d2e4c85a3fd0948e25f1ba510449727529a15
1433290c203bd23f34c29e11795ce592bc067888
refs/heads/main
2023-08-03T09:21:32.779763
2023-07-05T21:17:16
2023-07-05T21:17:16
388,876,833
442
140
Apache-2.0
2023-09-14T19:12:35
2021-07-23T17:26:12
Python
UTF-8
Python
false
false
2,996
py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
295adab3b33c2f876c9b28ae186e1deafbe3fdfd
c4e97f2eb1081d8fad5e64872c3d6acf9a89d445
/Solutions/0140_wordBreak.py
04f7ecd57c34aa3b8fb6e9be01cefe48758ef41d
[]
no_license
YoupengLi/leetcode-sorting
0efb3f4d7269c76a3ed11caa3ab48c8ab65fea25
3d9e0ad2f6ed92ec969556f75d97c51ea4854719
refs/heads/master
2020-05-18T23:28:51.363862
2019-09-12T00:42:14
2019-09-12T00:42:14
184,712,501
3
1
null
null
null
null
UTF-8
Python
false
false
5,485
py
# -*- coding: utf-8 -*- # @Time : 2019/7/23 15:47 # @Author : Youpeng Li # @Site : # @File : 0140_wordBreak.py # @Software: PyCharm ''' 140. Word Break II Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each...
484aec251ff1c5e25208e3ebcacfbfdcfa821b7b
e4045e99ae5395ce5369a1374a20eae38fd5179b
/files/read_names.py
4020137ff8b621ccfc423a9891205d6ca36c0eba
[]
no_license
srikanthpragada/09_MAR_2018_PYTHON_DEMO
74fdb54004ab82b62f68c9190fe868f3c2961ec0
8684137c77d04701f226e1e2741a7faf9eeef086
refs/heads/master
2021-09-11T15:52:17.715078
2018-04-09T15:29:16
2018-04-09T15:29:16
124,910,054
0
1
null
null
null
null
UTF-8
Python
false
false
207
py
# open file for writing in text mode with open(r"e:\classroom\python\mar9\names.txt", "rt") as f: for lineno, name in enumerate(f.readlines()): print("{:03} {}".format(lineno + 1, name), end='')
6685570716f0c046013d2b6a6abc428738b35399
85f5dff291acf1fe7ab59ca574ea9f4f45c33e3b
/api/tacticalrmm/checks/migrations/0018_auto_20210205_1647.py
cce78b61d2167ba2adcec7ff771ee85901adcc0b
[ "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sadnub/tacticalrmm
a4ecaf994abe39244a6d75ed2166222abb00d4f4
0af95aa9b1084973642da80e9b01a18dcacec74a
refs/heads/develop
2023-08-30T16:48:33.504137
2023-04-10T22:57:44
2023-04-10T22:57:44
243,405,684
0
2
MIT
2020-09-08T13:03:30
2020-02-27T01:43:56
Python
UTF-8
Python
false
false
518
py
# Generated by Django 3.1.4 on 2021-02-05 16:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('checks', '0017_check_dashboard_alert'), ] operations = [ migrations.AlterField( model_name='check', name='alert_seve...
f751e7a8acf0536d699fa16c80f652308a74ce43
9318b1885946f639f1446431abc6ec4fa33fc9ac
/typeData.py
1b85d8810b009197b06a00e1557aefa5546fc95d
[]
no_license
mcewenar/PYTHON_INFO_I_BASIC
1d365bcd3d0186c8955e3cde2605831717d0a412
e5c3278969b420e7ce03bf7903cf57e63865aaca
refs/heads/master
2023-06-04T02:26:42.124304
2021-06-22T02:48:08
2021-06-22T02:48:08
326,510,259
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
#IMPORTANTE: def isInt(data): if type(data) == int: print("es entero") return True elif type(data) == float: print("es float") return False elif type(data) == str: print("es string") return None #print(isInt(5)) #print(isInt(5.0)) #print(isInt("5")) #p...
c6aaa99c6e382ba9cb455550f3944c94fc5935df
490a934f36fdb97827934220eeff71f89f7c3e5d
/config.py
026520f65ada648e65573c49c6af390f1694a9cf
[ "MIT" ]
permissive
qq453388937/Tornado_home_Git
9c34a198be8737bbb49a28732cfbe899c0f86828
65b36a2816b6648c9bad136249552c8276d4584e
refs/heads/master
2021-04-06T06:33:46.631606
2018-03-29T08:55:43
2018-03-29T08:55:43
124,759,358
0
0
MIT
2018-03-20T13:07:43
2018-03-11T13:30:04
JavaScript
UTF-8
Python
false
false
905
py
# -*- coding:utf-8 -*- import os # redis 配置抽离 torndb_settings = dict( host="127.0.0.1", database="ihome", user="root", password="123", # 看源码得知默认3306端口 ) redis_settings = dict( host='127.0.0.1', port=6379, ) settings = { 'debug': True, 'static_path': os.path.join(os.path.dirname(__file...
7bda8d156f687a4d69a597afd6dacbe903332568
c0f69bf01d09718b81814bb8bf274c931801e9c8
/codebase/manager_component/monitoring_subcomponent/history_subcomponent/graphing_subcomponent/graphing_class.py
522e0767a94a2f96d6d3b706d99124d234954be8
[]
no_license
johnpcole/Download-Manager
369ec1232f35ec3ab8d653c03f4ea12bbb57207c
fd9b287cbfb6b813a6d23877f25423079b063c46
refs/heads/master
2021-07-19T17:33:40.473368
2019-11-03T23:43:19
2019-11-03T23:43:19
85,001,326
0
0
null
null
null
null
UTF-8
Python
false
false
5,795
py
from .....common_components.datetime_datatypes import datetime_module as DateTime from .graph_subcomponent import graph_module as Graph class DefineGraphing: def __init__(self, smallera, largeera): # Define graphset size self.graphsetsize = 6 # Defines the granularity of display of monitor data self.shorte...
af638ccb4cbe7e382ee5237fc60ac8cb90f021ab
0eb8bde44f28866596b9612835b4c0bb37c3a30f
/morsels/20200622_instance_tracker/problem_text.py
47ba7e437c23ffedc2efa80754b80f954149c6b3
[]
no_license
gtcooke94/snippets
609ebc85b40453a79845e28113bd545579796379
4792e10cf9f056487e992219cfb088529a53e897
refs/heads/master
2021-06-25T13:01:55.282635
2020-11-13T21:01:18
2020-11-13T21:01:18
170,204,644
0
1
null
null
null
null
UTF-8
Python
false
false
2,712
py
Greetings, This week I'd like you to make a "class factory" which will allow classes to track instances of themselves. This instance_tracker class factory will return a class when called and can be used like this: class Account(instance_tracker()): def __init__(self, number): self.number = number ...
bd5f261eaa813c6baee78561351043cf93204240
61aa319732d3fa7912e28f5ff7768498f8dda005
/tests/configs/memcheck.py
669c71b30a1d9f09e065a72010191df495b1cc72
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "MIT" ]
permissive
TeCSAR-UNCC/gem5-SALAM
37f2f7198c93b4c18452550df48c1a2ab14b14fb
c14c39235f4e376e64dc68b81bd2447e8a47ff65
refs/heads/main
2023-06-08T22:16:25.260792
2023-05-31T16:43:46
2023-05-31T16:43:46
154,335,724
62
22
BSD-3-Clause
2023-05-31T16:43:48
2018-10-23T13:45:44
C++
UTF-8
Python
false
false
2,695
py
# Copyright (c) 2016 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality ...
09394ec926883c40727a02a56b5b4e0447abecb3
b15ccd04d3edfb4d6278a055422610be09c3916c
/4861_회문/sol1.py
150a37727e44769ce062900a4cbe6fe7238ab4b5
[]
no_license
hksoftcorn/Algorithm
d0f3a1a6009f47e4f391e568b29a3b51d6095d33
81b067b8105ba305172dd8271787c19f04d170ba
refs/heads/master
2023-05-12T21:15:34.668580
2021-06-08T07:57:04
2021-06-08T07:57:04
337,121,489
0
0
null
null
null
null
UTF-8
Python
false
false
714
py
import sys sys.stdin = open('sample_input.txt') def solution(N, M, arr): # 가로 for i in range(N): for j in range(N-M+1): palindrome = arr[i][j:j+M] if palindrome == palindrome[::-1]: return palindrome # 세로 for j in range(N): for i in range(N-M+1):...
c21f0f7ddfb24849fcae721146b7c813fd8bbd6b
a86ca34e23afaf67fdf858df9e47847606b23e0c
/lib/temboo/Library/Amazon/SNS/ListSubscriptionsByTopic.py
d3fabd538f4ac9b5184e976b8af2beefa94acba4
[]
no_license
miriammelnick/dont-get-mugged
6026ad93c910baaecbc3f5477629b0322e116fa8
1613ee636c027ccc49c3f84a5f186e27de7f0f9d
refs/heads/master
2021-01-13T02:18:39.599323
2012-08-12T23:25:47
2012-08-12T23:25:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,212
py
############################################################################### # # ListSubscriptionsByTopic # Returns a list of the subscriptions for a specified topic. # # Python version 2.6 # ############################################################################### from temboo.core.choreography import Choreo...
[ "miriam@famulus" ]
miriam@famulus
81ef572b2720d4856f76b694186f6bcfb53baa0f
1c560f8035793e75fb9fda0ff6807cd67a2370ec
/ABC214/C.py
bbaccfd8e49a455c79e986c8d9cfa5c7fe3e2701
[]
no_license
pumbaacave/atcoder
fa4c488a30388e3d8b4928a570c730c29df7ac0c
61923f8714f21e8dd5ebafa89b2c3929cff3adf1
refs/heads/master
2023-08-17T02:27:03.091792
2023-08-05T13:10:58
2023-08-05T13:10:58
155,023,403
1
0
null
2022-11-12T02:36:11
2018-10-28T01:01:52
Python
UTF-8
Python
false
false
1,000
py
import sys import collections stdin = sys.stdin # sys.setrecursionlimit(10**5) def ii(): return int(stdin.readline()) def li(): return map(int, stdin.readline().split()) def li_(): return map(lambda x: int(x)-1, stdin.readline().split()) def lf(): return map(float, stdin.readline().split()) def ls(): return ...
7c402d715018475f125d7ed7546a3819242a9451
b1aa3c599c5d831444e0ae4e434f35f57b4c6c45
/month1/week3/class7/operator.py
4fc87cc493b996cd295e5b5d82bda5b92cd31cde
[]
no_license
yunyusha/xunxibiji
2346d7f2406312363216c5bddbf97f35c1e2c238
f6c3ffb4df2387b8359b67d5e15e5e33e81e3f7d
refs/heads/master
2020-03-28T12:31:17.429159
2018-09-11T11:35:19
2018-09-11T11:35:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
from month1.week3.class7.test_Class import jisuan,Fenshu # 先创建两个分数对象 fel = Fenshu(4,9) fe2 = Fenshu(5,8) mf = jisuan() mf.adjust(fel, fe2, ' +')
69e0d566f725250eeb6a4df86ade0a78bb6ecaa6
4266e9b1c59ddef83eede23e0fcbd6e09e0fa5cb
/vs/gyp/test/win/gyptest-rc-build.py
c6ee4492d87a3fe06f0d61154a719d5e3350e1c0
[ "BSD-3-Clause" ]
permissive
barrystudy/study
b3ba6ed652d1a0bcf8c2e88a2a693fa5f6bf2115
96f6bb98966d3633b47aaf8e533cd36af253989f
refs/heads/master
2020-12-24T14:53:06.219236
2017-10-23T02:22:28
2017-10-23T02:22:28
41,944,841
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Make sure we build and include .rc files. """ import TestGyp import sys if sys.platform == 'win32': test = TestGyp.T...
12934916e6b0d3c94d1a4fee1d88ccb21c46b386
7fd1406b7e94d4b82a158ce5be87b5ae821e16b6
/pro4_2.py
4f291fb3e1e6b3638c2ed6eb70f86a2232d3f486
[]
no_license
THABUULAGANATHAN/guvi-programs
c1c4d314c7ce43d6c3996fdac85616248c69e4fd
fb004f6916776ca9fbe07b8d507f9725cc55248f
refs/heads/master
2022-01-15T09:08:32.904234
2019-07-19T06:45:04
2019-07-19T06:45:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
nu1,nu2=map(int,input().split()) if nu1<=nu2: u=nu1 else: u=nu2 m=[] for i in range(0,u): m.append(sorted(list(map(int,input().split())))) m=sorted(m) for i in range(0,len(m[0])): for j in range(0,len(m)-1): if m[j][i]>m[j+1][i]: m[j][i],m[j+1][i]=m[j+1][i],m[j][i] for i in m: print(*i)
d224e4bc048889e5860384746a106809df71fbd6
4b169d970dc9390ab53281d4a4a1cb32f79f9317
/subject.py
7e9214220b4ef27ce31b7bce1366a7b8d0c816f6
[]
no_license
marloverket/crosstask
96a710946f2db1cda18c9f9cb9da3cc8aaa3455f
21ba7ea1c5a0f48be252acbea23e916d49bbaebb
refs/heads/master
2021-01-19T15:40:32.553961
2012-11-26T04:04:09
2012-11-26T04:04:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,747
py
import viz,vizinfo,viztask,vizact from datetime import datetime global subj """ Adds a panel to the screen where the subject info gets filled out. """ info_box = vizinfo.add('') info_box.scale(2,2) info_box.translate(0.85,0.8) info_box.title('Participant Info') #Add the GUI elements to the box id_box = info_box.add(...
09ad4a8a300cc289665cb238bd3bdbbaf5769d75
f06d9cd5fb86885a73ee997c687f3294840dd199
/services/flickr.py
c21a01e2fd33883bb08bcd8d4e89cbe4ed018d9d
[]
no_license
bu2/oauth-proxy
aaff16a07d5c2c07c8243293c9ed41205b251a74
dbed492f8a806c36177a56ca626f005acec904b1
refs/heads/master
2020-12-26T15:53:40.618570
2013-07-09T05:06:16
2013-07-09T05:06:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,290
py
import foauth.providers class Flickr(foauth.providers.OAuth1): # General info about the provider provider_url = 'http://www.flickr.com/' docs_url = 'http://www.flickr.com/services/api/' category = 'Pictures' # URLs to interact with the API request_token_url = 'http://www.flickr.com/services/o...
21703522e9344dd45bae154f7468fa13d918ed67
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/build/android/pylib/junit/test_dispatcher.py
51253d4cc07f90be1bf883c29ac92bd70b12bc0c
[ "BSD-3-Clause" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
Python
false
false
843
py
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from pylib import constants from pylib.base import base_test_result def RunTests(tests, runner_factory): """Runs a set of java tests on the host. Retur...
b8aa82a8b82c5da5dc36d563d5cbd1447a6552cb
1a1b7f607c5e0783fd1c98c8bcff6460e933f09a
/core/ras/ras_loader.py
b66f88e4e3755f436f6ce986949291f6a9faf8f8
[]
no_license
smrmohammadi/freeIBS
14fb736fcadfaea24f0acdafeafd2425de893a2d
7f612a559141622d5042614a62a2580a72a9479b
refs/heads/master
2021-01-17T21:05:19.200916
2014-03-17T03:07:15
2014-03-17T03:07:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,124
py
from core.db import db_main from core.ras import ras_main from core.ibs_exceptions import * from core.errors import errorText from radius_server.pyrad.server import RemoteHost class RasLoader: def __init__(self): self.rases_ip={} self.rases_id={} self.radius_remote_hosts={} def __getitem__(self,key): retu...
[ "farshad_kh" ]
farshad_kh
7df9cc92dfba37d4d64f5ac42303e6293ec477df
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_1_neat/16_0_1_Kaster_count_numbers.py
a8f821f2452a7b5e684a7c06e79b1215ca4b622a
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,156
py
import sys def counting_numbers(n, case, i = 1, already_have = set()): if (n == 0): message = 'Case #%d: %s' % (case, 'INSOMNIA') else: N = str(i * n) unique_nums = set(list(N)) combined = unique_nums | already_have if len(combined) < 10: message = counting_nu...
295395e9c4c9fb7d25a1f433a3626ce141121cb9
9db82d0fc7819b11ebcae4c3904dde1a75bd1054
/setup.py
a06c2273e17b0d0b51aa6c03bf54007730d3d415
[]
no_license
rblack42/PyLit4
f49278ff3417ad4a3348657f1f199f7afc589a1f
352f6e962f2265a585de274372ab678a9f3ccddb
refs/heads/master
2021-01-10T20:47:03.897946
2014-08-17T05:37:46
2014-08-17T05:37:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
964
py
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='PyLit4', version='0.1dev', url='https://github.com/rblack42/PyLit4', license='BSD3', author='Roie Black', author_email='[email protected]', descript...
d192513223a3c78eeb653b57ba0afc6b50e163eb
becfe7904e7e17bcd23b891021292542a7968b60
/basic_elements/cross_and_circle.py
f08aee209c76448d5c7e1d35aea0620fa814d597
[ "Apache-2.0" ]
permissive
ppinko/python_knowledge_library
5ef482ddc36b1e4968f11b295a72589be268af99
089348c80e3f49a4a56839bfb921033e5386f07e
refs/heads/master
2023-03-21T04:15:15.947396
2021-03-07T12:26:00
2021-03-07T12:26:00
256,592,705
0
0
null
null
null
null
UTF-8
Python
false
false
3,350
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Nov 2 10:32:18 2019 @author: lx """ """ My first interactive game - cross and circle """ import sys from recursion import test board = [['-', '-', '-'], ['-', '-', '-'], ['-', '-', '-']] def update_board(a, b, c, current_board): """ Update boar...
ad0163094ee7e3c39d856c2a8d32a28d55661207
7bead245354e233f76fff4608938bf956abb84cf
/cloudmersive_convert_api_client/models/remove_whitespace_from_text_request.py
98ee877987d0fcd6f673c4f2bc3c1052c4a3d3c5
[ "Apache-2.0" ]
permissive
Cloudmersive/Cloudmersive.APIClient.Python.Convert
5ba499937b9664f37cb2700509a4ba93952e9d6c
dba2fe7257229ebdacd266531b3724552c651009
refs/heads/master
2021-10-28T23:12:42.698951
2021-10-18T03:44:49
2021-10-18T03:44:49
138,449,321
3
2
null
null
null
null
UTF-8
Python
false
false
3,711
py
# coding: utf-8 """ convertapi Convert API lets you effortlessly convert file formats and types. # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class RemoveWhitespaceFromTextRequest...
fdd7630f165b381094274f0ee6ad3caae9b8abeb
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/KWoj7kWiHRqJtG6S2_10.py
65551bedd3a2aa334347384e82cd7b4ef7a2f2ef
[]
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
593
py
""" There is a single operator in Python, capable of providing the remainder of a division operation. Two numbers are passed as parameters. The first parameter divided by the second parameter will have a remainder, possibly zero. Return that value. ### Examples remainder(1, 3) ➞ 1 remainder(3, 4) ➞ 3 ...
7da4675809919b8ee509fd2815c35901a2f3e54b
5f2f3743e0f8054d62042fc6c05bf994995bfdee
/tests/test_dlthx.py
14d0cffd033391ce59baf17813d95cad08d92c2d
[ "MIT" ]
permissive
li7300198125/itmlogic
1374a295278af1b818377049c6e0720386c50195
b7297a595b6ab8ec36d3ac5f81755171beed4407
refs/heads/master
2022-11-15T01:59:57.574625
2020-06-27T22:51:23
2020-06-27T22:51:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
import pytest from itmlogic.dlthx import dlthx def test_dlthx(setup_pfl1): """ Tests the delta h value, which is the interdecile range of elevations between point x1 and point x2, generated from the terrain profile pfl1. The terrain profile (pfl1) is imported from tests/conftest.py via the fixture ...
06e6aaa2ca2b7d9bd08666139ce3cf28ff269e0e
7b102f9c8f2e3f9240090d1d67af50333a2ba98d
/gbd_2019/shared_code/central_comp/cod/codem/hybridizer/joblaunch/HybridTask.py
6d838cef584d3c08aa703402a2922aba19274e34
[]
no_license
Nermin-Ghith/ihme-modeling
9c8ec56b249cb0c417361102724fef1e6e0bcebd
746ea5fb76a9c049c37a8c15aa089c041a90a6d5
refs/heads/main
2023-04-13T00:26:55.363986
2020-10-28T19:51:51
2020-10-28T19:51:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,972
py
from hybridizer.database import gbd_round_from_id import hybridizer.metadata as metadata from codem.joblaunch.CODEmTask import CODEmBaseTask import logging logger = logging.getLogger(__name__) class HybridTask(CODEmBaseTask): def __init__(self, user, developed_model_version_id, global_model_ver...
3781bf374bfe5f8826bd54fb515b1163b4b53ce4
4749d3cf395522d90cb74d1842087d2f5671fa87
/alice/LC022.py
d5ca5a07462cfcc708bf1982ffc93009853c53ea
[]
no_license
AliceTTXu/LeetCode
c1ad763c3fa229362350ce3227498dfb1f022ab0
ed15eb27936b39980d4cb5fb61cd937ec7ddcb6a
refs/heads/master
2021-01-23T11:49:49.903285
2018-08-03T06:00:16
2018-08-03T06:00:16
33,470,003
0
0
null
null
null
null
UTF-8
Python
false
false
1,107
py
class Solution(object): def generateParenthesis(self, n): """ :type n: int :rtype: List[str] """ if not n: return [''] else: return self.generateParenthesisCore(n - 1, 1, ['(']) def generateParenthesisCore(self, n, leftCount, out): ...
a1dc58d81bc25723ec4c8842e7e14cdd086fbf88
9c2b322b36564327cf15e75ff7ad6ef2461643af
/code/analysis/delayedfeedback/scaled_noise_test.py
aaf8d931f31f9d48cc2dc73af5a06e3f2d446a2a
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
dmytrov/stochasticcontrol
3951c0fd555cdcf38bcf6812b1758ed41fd28cf9
a289d5c0953c4a328b2177f51168588248c00f2c
refs/heads/master
2022-12-15T13:19:32.295905
2020-09-14T19:57:04
2020-09-14T19:57:04
295,521,166
0
0
null
null
null
null
UTF-8
Python
false
false
1,897
py
""" Test for the control-scaled noise covariance matrix Reference: "Christopher M. Harris and Daniel M. Wolpert - 1998 - Signal-dependent noise determines motor planning": "We assume that neural commands have signal-dependent noise whose standard deviation increases linearly with the absolute value of th...
206f6341e76afb3a6029ba678b56ef8a35aa2ff9
83bbca19a1a24a6b73d9b56bd3d76609ff321325
/bard/providers/download/__init__.py
b2f5fccd3085ca64f2b68c752b7284a583c5807e
[]
no_license
b1naryth1ef/bard
837547a0cbf5c196f5cb9b0dfbb944703fa993e0
a6325a4684080a7a3f61f6f361bd2e0a78986ab9
refs/heads/master
2021-04-30T22:16:17.347526
2020-01-10T18:57:53
2020-01-10T18:57:53
172,892,673
16
0
null
2021-03-25T22:35:25
2019-02-27T10:18:01
Python
UTF-8
Python
false
false
219
py
from .iptorrents import IPTorrentsDownloadProvider from .horriblesubs import HorribleSubsDownloadProvider PROVIDERS = { "iptorrents": IPTorrentsDownloadProvider, "horriblesubs": HorribleSubsDownloadProvider, }