hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
ef10cd15a79620350ffb7465a72e19681f8b6b91
9,837
py
Python
ogn_lib/client.py
akolar/ogn-lib
6b307cad9bf82316a69bb8c82ebfa734040e2689
[ "MIT" ]
null
null
null
ogn_lib/client.py
akolar/ogn-lib
6b307cad9bf82316a69bb8c82ebfa734040e2689
[ "MIT" ]
17
2017-12-16T12:49:18.000Z
2018-05-21T10:12:29.000Z
ogn_lib/client.py
akolar/ogn-lib
6b307cad9bf82316a69bb8c82ebfa734040e2689
[ "MIT" ]
null
null
null
""" ogn_lib.client -------------- This module contains methods and classes related to opening and managing a connection to OGN's APRS servers. """ import logging logger = logging.getLogger(__name__)
34.637324
79
0.576192
""" ogn_lib.client -------------- This module contains methods and classes related to opening and managing a connection to OGN's APRS servers. """ import logging import socket import time import ogn_lib logger = logging.getLogger(__name__) class OgnClient: """ Holds an APRS session. Provides methods...
0
0
0
9,568
0
0
0
-25
90
fe3843665c0d86320f5966e1812aeb081e3aca5c
2,171
py
Python
src/hyperloop/Python/OldMagnePlaneCode/pointwise.py
jcchin/Hyperloop_v2
73861d2207af8738425c1d484909ed0433b9653f
[ "Apache-2.0" ]
1
2021-04-29T00:23:03.000Z
2021-04-29T00:23:03.000Z
src/hyperloop/Python/OldMagnePlaneCode/pointwise.py
jcchin/Hyperloop_v2
73861d2207af8738425c1d484909ed0433b9653f
[ "Apache-2.0" ]
9
2016-11-23T09:10:34.000Z
2016-12-06T01:10:09.000Z
src/hyperloop/Python/OldMagnePlaneCode/pointwise.py
jcchin/Hyperloop_v2
73861d2207af8738425c1d484909ed0433b9653f
[ "Apache-2.0" ]
11
2016-01-19T20:26:35.000Z
2021-02-13T11:16:20.000Z
''' Pointwise wrapper ''' # --- Python/system level imports # --- OpenMDAO main and library imports from openmdao.api import Problem, Group if __name__ == "__main__": # ------------------------- # --- Default Test Case --- # ------------------------- p = Problem(root=Group()) p.root.add('point...
33.4
100
0.460617
''' Pointwise wrapper ''' import os # --- Python/system level imports from subprocess import call from string import Template # --- OpenMDAO main and library imports from openmdao.api import Problem, Group, ExternalCode, IndepVarComp class Pointwise(ExternalCode): ''' OpenMDAO component for executing Pointwise ...
0
0
0
1,688
0
0
0
28
89
1aa8fae98191b44560b49131bb35654547b70907
7,252
py
Python
simulator/results/parse_summary.py
yrrah/cs6620-fall21-intelligent-assignment-of-data-to-dedup-nodes
9b08941c05f5af862b5dafe9d8dc289a98c393a6
[ "MIT" ]
1
2021-10-03T18:22:58.000Z
2021-10-03T18:22:58.000Z
simulator/results/parse_summary.py
yrrah/cs6620-fall21-intelligent-assignment-of-data-to-dedup-nodes
9b08941c05f5af862b5dafe9d8dc289a98c393a6
[ "MIT" ]
null
null
null
simulator/results/parse_summary.py
yrrah/cs6620-fall21-intelligent-assignment-of-data-to-dedup-nodes
9b08941c05f5af862b5dafe9d8dc289a98c393a6
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
43.951515
123
0.632929
import pandas as pd import numpy as np from matplotlib import pyplot as plt def plot_reversed(ax, save, show, title): # ax.set_xticklabels(df.run_combo, rotation = 90) ax.yaxis.tick_right() ax.yaxis.set_label_position("right") ax.invert_xaxis() plt.gcf().subplots_adjust(right=0.5) # plt.tight_...
0
0
0
0
0
6,848
0
10
342
7956dd2d67cc23b3e4168199ecf51890e6f12e18
47,465
py
Python
model/models.py
irenetrampoline/clustering-interval-censored
f6ab06a6cf3098ffe006d1b95d1b4f1d158b0bc4
[ "MIT" ]
1
2022-02-03T08:47:45.000Z
2022-02-03T08:47:45.000Z
model/models.py
irenetrampoline/clustering-interval-censored
f6ab06a6cf3098ffe006d1b95d1b4f1d158b0bc4
[ "MIT" ]
null
null
null
model/models.py
irenetrampoline/clustering-interval-censored
f6ab06a6cf3098ffe006d1b95d1b4f1d158b0bc4
[ "MIT" ]
null
null
null
import torch.nn as nn # torch.manual_seed(0) # torch.backends.cudnn.deterministic = True # torch.backends.cudnn.benchmark = False import sys sys.path.append('/home/REDACTED/chf-github/model/') sys.path.append('../evaluation/') sys.path.append('../plot/') import matplotlib.pylab as pylab params = {'legend.fontsiz...
41.893204
243
0.558601
import logging import numpy as np import torch import torch.nn as nn import torch.nn.functional as F # torch.manual_seed(0) # torch.backends.cudnn.deterministic = True # torch.backends.cudnn.benchmark = False from pyro.distributions import MultivariateNormal, Normal, Independent from sklearn.cluster import KMeans, ...
0
0
0
36,004
0
10,134
0
254
420
b79225ade75abaa533e53bd620f9738f44fdded3
1,125
py
Python
config/oktoberkite/control/crosswind_airspeed_controller.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
1,178
2020-09-10T17:15:42.000Z
2022-03-31T14:59:35.000Z
config/oktoberkite/control/crosswind_airspeed_controller.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
1
2020-05-22T05:22:35.000Z
2020-05-22T05:22:35.000Z
config/oktoberkite/control/crosswind_airspeed_controller.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
107
2020-09-10T17:29:30.000Z
2022-03-18T09:00:14.000Z
# Copyright 2020 Makani Technologies LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
30.405405
78
0.725333
# Copyright 2020 Makani Technologies LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
0
0
0
0
0
0
0
0
0
d09457b9285e35437132bc4f29ef68fd238b6e18
195
py
Python
python/8kyu/who_is_going_to_pay_for_the_wall.py
Sigmanificient/codewars
b34df4bf55460d312b7ddf121b46a707b549387a
[ "MIT" ]
3
2021-06-08T01:57:13.000Z
2021-06-26T10:52:47.000Z
python/8kyu/who_is_going_to_pay_for_the_wall.py
Sigmanificient/codewars
b34df4bf55460d312b7ddf121b46a707b549387a
[ "MIT" ]
null
null
null
python/8kyu/who_is_going_to_pay_for_the_wall.py
Sigmanificient/codewars
b34df4bf55460d312b7ddf121b46a707b549387a
[ "MIT" ]
2
2021-06-10T21:20:13.000Z
2021-06-30T10:13:26.000Z
# Kata url: https://www.codewars.com/kata/58bf9bd943fadb2a980000a7.
24.375
67
0.702564
# Kata url: https://www.codewars.com/kata/58bf9bd943fadb2a980000a7. from typing import List def who_is_paying(name: str) -> List[str]: return [name, name[:2]] if len(name) > 2 else [name]
0
0
0
0
0
78
0
2
46
30869f0823276c568dc8fbfba7863e5ef57f3d73
13,875
py
Python
testfiles/client/client.py
jjuicecup/Model-Blockchain
7b6d7eba06de699d88f2865c129159619993a3cf
[ "MIT" ]
null
null
null
testfiles/client/client.py
jjuicecup/Model-Blockchain
7b6d7eba06de699d88f2865c129159619993a3cf
[ "MIT" ]
null
null
null
testfiles/client/client.py
jjuicecup/Model-Blockchain
7b6d7eba06de699d88f2865c129159619993a3cf
[ "MIT" ]
null
null
null
""" This file is meant to be a fully working mining client to interact with the REST api defined in the node-files directory. Other client software can be written to mine and transact with the API however. """ import json import requests NODE_URL = 'http://127.0.0.1:1337/' CLIENT_MODE = '' TRANSACTION_GOAL = 10 # In...
32.118056
119
0.645982
""" This file is meant to be a fully working mining client to interact with the REST api defined in the node-files directory. Other client software can be written to mine and transact with the API however. """ import json import sys import os import requests import time import ecdsa from hashlib import sha256 from ppri...
0
0
0
0
0
9,183
0
-32
331
002f53900f4bfe1eaae3e791b434763f34ac4083
2,785
py
Python
pade.py
jjgoings/pade
a34a6723ee15eb0e02e498854aac4e8433995f9f
[ "MIT" ]
13
2019-11-18T17:09:54.000Z
2022-03-09T23:25:15.000Z
pade.py
jjgoings/pade
a34a6723ee15eb0e02e498854aac4e8433995f9f
[ "MIT" ]
1
2021-07-02T23:25:43.000Z
2021-07-03T05:55:36.000Z
pade.py
jjgoings/pade
a34a6723ee15eb0e02e498854aac4e8433995f9f
[ "MIT" ]
3
2020-12-26T10:21:24.000Z
2022-03-08T10:47:40.000Z
import numpy as np def pade(time,signal,sigma=100.0,max_len=None,w_min=0.0,w_max=10.0,w_step=0.01,read_freq=None): """ Routine to take the Fourier transform of a time signal using the method of Pade approximants. Inputs: time: (list or Numpy NDArray) signal sampling times ...
32.383721
95
0.589228
import numpy as np def pade(time,signal,sigma=100.0,max_len=None,w_min=0.0,w_max=10.0,w_step=0.01,read_freq=None): """ Routine to take the Fourier transform of a time signal using the method of Pade approximants. Inputs: time: (list or Numpy NDArray) signal sampling times ...
0
0
0
0
0
0
0
0
0
ba42719d16e9616434f9a1fd406758d5f5ef5fe2
2,724
py
Python
enaml/wx/wx_combo_box.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
11
2015-03-14T14:30:51.000Z
2022-03-15T13:01:44.000Z
enaml/wx/wx_combo_box.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
3
2015-01-31T11:12:56.000Z
2022-03-14T00:53:25.000Z
enaml/wx/wx_combo_box.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
4
2015-01-27T01:56:14.000Z
2021-02-23T07:21:20.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
30.266667
79
0.490088
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
0
0
0
2,167
0
0
0
38
114
fb19e10a78bf8ba09f7ec34a3b85e15d9a57f568
3,521
py
Python
elcaro-contract.py
Splyse/neo-smart-iot
ed9bb4dd4506c94e97c96a9f2b5faf792352c082
[ "MIT" ]
42
2017-11-17T10:26:35.000Z
2021-04-25T05:09:37.000Z
elcaro-contract.py
Splyse/neo-smart-iot
ed9bb4dd4506c94e97c96a9f2b5faf792352c082
[ "MIT" ]
null
null
null
elcaro-contract.py
Splyse/neo-smart-iot
ed9bb4dd4506c94e97c96a9f2b5faf792352c082
[ "MIT" ]
13
2017-12-10T02:52:47.000Z
2021-04-25T05:09:44.000Z
""" elcaro-contract.py MIT License Copyright 2017 Splyse Inc. """ OWNER = b'\x8e\x5b\x17\x79\x3c\xa9\xf5\xd9\x13\x1d\x67\x4d\xfc\x00\x0f\x5a\x65\x58\xa4\x65' GAS_ASSET_ID = b'\xe7\x2d\x28\x69\x79\xee\x6c\xb1\xb7\xe6\x5d\xfd\xdf\xb2\xe3\x84\x10\x0b\x8d\x14\x8e\x77\x58\xde\x42\xe4\x16\x8b\x71\x79\x2c\x60'; BADPREFIX='...
33.216981
147
0.518887
""" elcaro-contract.py MIT License Copyright 2017 Splyse Inc. """ from boa.blockchain.vm.System.ExecutionEngine import GetScriptContainer,GetExecutingScriptHash from boa.blockchain.vm.Neo.Transaction import * from boa.blockchain.vm.Neo.Runtime import GetTrigger,CheckWitness,Notify,Log from boa.blockchain.vm.Neo.Trig...
0
0
0
0
0
2,699
0
315
179
8ff342f17430f43fd91dd98cb7fabd70069fbff1
1,104
py
Python
freelancefinder/remotes/migrations/0007_auto_20170430_1830.py
ScorpionResponse/freelancefinder
7882aa8ed42afe689e594a3e10c9fc6369f70bf5
[ "BSD-3-Clause" ]
2
2017-03-18T04:28:58.000Z
2017-04-25T10:01:28.000Z
freelancefinder/remotes/migrations/0007_auto_20170430_1830.py
ScorpionResponse/freelancefinder
7882aa8ed42afe689e594a3e10c9fc6369f70bf5
[ "BSD-3-Clause" ]
20
2017-03-18T04:29:33.000Z
2017-06-13T22:37:42.000Z
freelancefinder/remotes/migrations/0007_auto_20170430_1830.py
ScorpionResponse/freelancefinder
7882aa8ed42afe689e594a3e10c9fc6369f70bf5
[ "BSD-3-Clause" ]
1
2019-01-14T19:02:06.000Z
2019-01-14T19:02:06.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-30 18:30 from __future__ import unicode_literals NEW_SOURCES = [ {'code': 'trabajospython', 'name': 'Trabajos Python', 'url': 'http://www.trabajospython.com/'}, {'code': 'workinstartups', 'name': 'Work In Startups', 'url': 'http://workinstartups.com...
29.052632
99
0.657609
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-30 18:30 from __future__ import unicode_literals from django.db import migrations NEW_SOURCES = [ {'code': 'trabajospython', 'name': 'Trabajos Python', 'url': 'http://www.trabajospython.com/'}, {'code': 'workinstartups', 'name': 'Work In Startups',...
0
0
0
192
0
0
0
11
46
afb9b5ad0ee004f1fd09aa9e6edbc793575b02ac
1,548
py
Python
intragram/posts/models.py
shoukou-lee/intragram
7fbafcd9fa4b430170a6a4fde1b7e2b919284b04
[ "MIT" ]
1
2021-12-01T15:32:02.000Z
2021-12-01T15:32:02.000Z
intragram/posts/models.py
shoukou-lee/intragram
7fbafcd9fa4b430170a6a4fde1b7e2b919284b04
[ "MIT" ]
null
null
null
intragram/posts/models.py
shoukou-lee/intragram
7fbafcd9fa4b430170a6a4fde1b7e2b919284b04
[ "MIT" ]
null
null
null
# post posts - 'django-admin startapp posts' # Django data model / Post/Comment , # TimeStampedModel
30.96
67
0.627261
from django.db import models from intragram.users import models as user_model # post를 표현하기 위한 모델 posts - 터미널에서 'django-admin startapp posts'를 입력 # Django data model을 만들 때 게시물 생성 날짜/업데이트 날짜를 Post/Comment마다 만들지 말고, # TimeStampedModel에 상속 시켜주자 class TimeStampedModel(models.Model): created_at = models.DateTimeField(au...
525
0
0
1,107
0
0
0
34
112
348fdfce075236167392a69a20153ecaf931f46e
1,826
py
Python
cool/modules/ASA/asa_1_create_obj.py
snowtrain/cool
29532aae905122d28578e16e6c63f0745b353608
[ "MIT" ]
2
2019-12-26T17:20:00.000Z
2022-01-09T01:43:11.000Z
cool/modules/ASA/asa_1_create_obj.py
snowtrain/cool
29532aae905122d28578e16e6c63f0745b353608
[ "MIT" ]
null
null
null
cool/modules/ASA/asa_1_create_obj.py
snowtrain/cool
29532aae905122d28578e16e6c63f0745b353608
[ "MIT" ]
1
2020-08-10T00:41:40.000Z
2020-08-10T00:41:40.000Z
from cool.modules.ASA.asa_0_login_info import ip import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) # Object # rest-api image flash:/asa-restapi-131-lfbff-k8.SPA # rest-api agent # https://192.168.20.4/doc/# # Object if __name__ == "__main__": create_in_obj(57, ip) create_o...
29.451613
122
0.573384
from cool.modules.ASA.asa_0_login_info import ip, my_headers, auth_header import requests import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) # 创建内部Object # rest-api image flash:/asa-restapi-131-lfbff-k8.SPA # rest-api agent # 文档:https://192.168.20.4/doc/# def create_in_obj(vid, ip): ...
333
0
0
0
0
1,294
0
19
66
6adf3f44dcfa8015845b0744785a8ce56373fed5
1,484
py
Python
Sorting/merge_sort.py
warman69/USI_Algo_Bible
f7e62aff0093224c0f9c5d480d69e1275fb56fab
[ "MIT" ]
7
2020-08-02T20:45:20.000Z
2021-03-31T23:01:49.000Z
Sorting/merge_sort.py
warman69/USI_Algo_Bible
f7e62aff0093224c0f9c5d480d69e1275fb56fab
[ "MIT" ]
1
2020-08-02T20:56:52.000Z
2021-01-18T13:13:40.000Z
Sorting/merge_sort.py
warman69/USI_Algo_Bible
f7e62aff0093224c0f9c5d480d69e1275fb56fab
[ "MIT" ]
3
2020-08-04T12:00:19.000Z
2021-05-10T13:30:34.000Z
import random A = [7,6,5,4,3,2,1] merge_sort(A) print(A) # TESTING START = -99 STOP = 99 LIMIT = 1000 RANDOM1 = [random.randint(START, STOP) for iter in range(LIMIT)] #print(RANDOM1) RANDOM2 = [random.randint(START, STOP) for iter in range(LIMIT)] #print(RANDOM2) RANDOM3 = [random.randint(START, STOP) for iter in ra...
21.823529
64
0.578841
import sys import math import random def merge(A, l, m, r): left_length = m - l + 1 right_length = r - m L = [0]*(left_length+1) R = [0]*(right_length+1) for i in range(left_length): L[i] = A[l + i] for i in range(right_length): R[i] = A[m + i + 1] L[left_length] = R[righ...
0
0
0
0
0
689
0
-21
136
443e79e315c021d59ccce654b4ce250f189eb8a0
17,358
py
Python
resnet_dnr.py
caidonkey/dnr
011058000014dc0f76868acf8b05edc456e5cd47
[ "MIT" ]
null
null
null
resnet_dnr.py
caidonkey/dnr
011058000014dc0f76868acf8b05edc456e5cd47
[ "MIT" ]
1
2022-03-28T14:53:46.000Z
2022-03-28T14:53:46.000Z
resnet_dnr.py
caidonkey/dnr
011058000014dc0f76868acf8b05edc456e5cd47
[ "MIT" ]
null
null
null
import torch.nn as nn def conv3x3(in_planes, out_planes, stride=1, dilation=1): "3x3 convolution with padding" return nn.Conv2d( in_planes, out_planes, kernel_size=3, stride=stride, padding=dilation, dilation=dilation, bias=False)
34.995968
117
0.544418
import logging import torch import torch.nn as nn import torch.utils.checkpoint as cp from mmcv.cnn import constant_init, kaiming_init from mmcv.runner import load_checkpoint from ...registry import BACKBONES import torch.nn.functional as F from torch.nn.modules.batchnorm import _BatchNorm import numpy as np class b...
0
6,019
0
9,489
0
1,005
0
90
453
d17c962053e7cdd5db0b83d19dd5cb65cb034036
494
py
Python
web/app/lib/ee/tests/computedobject_test.py
geary/claslite
83c49cf98eceae633034b82d35ed7991d943b857
[ "Unlicense" ]
null
null
null
web/app/lib/ee/tests/computedobject_test.py
geary/claslite
83c49cf98eceae633034b82d35ed7991d943b857
[ "Unlicense" ]
null
null
null
web/app/lib/ee/tests/computedobject_test.py
geary/claslite
83c49cf98eceae633034b82d35ed7991d943b857
[ "Unlicense" ]
null
null
null
"""Tests for the ee.computedobject module.""" import unittest if __name__ == '__main__': unittest.main()
20.583333
74
0.726721
"""Tests for the ee.computedobject module.""" import unittest import ee from ee import apitestcase class ComputedObjectTest(apitestcase.ApiTestCase): def testComputedObject(self): """Verifies that untyped calls wrap the result in a ComputedObject.""" result = ee.ApiFunction.call_('DateRange', 1, 2) ...
0
0
0
319
0
0
0
-7
69
b8f2556375fbf528c594be28681235986f27f62d
167
py
Python
Quizes/Quiz5.py
bgrose/CSCE-206-Scientific-Programming
2b308f77fd9e98ba1edb671e40ae4fdf7ac6aea3
[ "MIT" ]
null
null
null
Quizes/Quiz5.py
bgrose/CSCE-206-Scientific-Programming
2b308f77fd9e98ba1edb671e40ae4fdf7ac6aea3
[ "MIT" ]
null
null
null
Quizes/Quiz5.py
bgrose/CSCE-206-Scientific-Programming
2b308f77fd9e98ba1edb671e40ae4fdf7ac6aea3
[ "MIT" ]
null
null
null
#Tester n = Numbers(2, 5) n.add()
13.916667
29
0.51497
class Numbers: def __init__(self, x, y): self.x = x self.y = y def add(self): print(self.x+self.y) #Tester n = Numbers(2, 5) n.add()
0
0
0
110
0
0
0
0
23
4106e0b4127a2df544e5f0eb70ef9b4812912f23
13,550
py
Python
msgraph-cli-extensions/beta/crossdeviceexperiences_beta/azext_crossdeviceexperiences_beta/generated/_help.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/beta/crossdeviceexperiences_beta/azext_crossdeviceexperiences_beta/generated/_help.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/beta/crossdeviceexperiences_beta/azext_crossdeviceexperiences_beta/generated/_help.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause...
44.42623
121
0.678745
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause...
6
0
0
0
0
0
0
0
0
20923395bb5434b7c47f9fb524481c350b2410fd
588
py
Python
RabbitMQ/2-WorkQueues/new_task.py
Py-Himanshu-Patel/Learn-Python
47a50a934cabcce3b1cbdd4c88141a51f21d3a05
[ "MIT" ]
null
null
null
RabbitMQ/2-WorkQueues/new_task.py
Py-Himanshu-Patel/Learn-Python
47a50a934cabcce3b1cbdd4c88141a51f21d3a05
[ "MIT" ]
null
null
null
RabbitMQ/2-WorkQueues/new_task.py
Py-Himanshu-Patel/Learn-Python
47a50a934cabcce3b1cbdd4c88141a51f21d3a05
[ "MIT" ]
null
null
null
import pika import sys connection = pika.BlockingConnection(pika.ConnectionParameters("localhost")) channel = connection.channel() # channel.queue_declare(queue="hello") channel.queue_declare(queue="task_queue", durable=True) message = " ".join(sys.argv[1:]) or "Hello World!" # channel.basic_publish(exchange="", rou...
25.565217
76
0.72619
import pika import sys connection = pika.BlockingConnection(pika.ConnectionParameters("localhost")) channel = connection.channel() # channel.queue_declare(queue="hello") channel.queue_declare(queue="task_queue", durable=True) message = " ".join(sys.argv[1:]) or "Hello World!" # channel.basic_publish(exchange="", rou...
0
0
0
0
0
0
0
0
0
b28ced7c92b3752793dd18f09abe602e9b9121d2
1,145
py
Python
graviteeio_cli/graviteeio/apim/apis/apis.py
YoranSys/graviteeio-cli
9a5f90658e6e376682c26ea07e26fb8ebe8338f3
[ "Apache-2.0" ]
null
null
null
graviteeio_cli/graviteeio/apim/apis/apis.py
YoranSys/graviteeio-cli
9a5f90658e6e376682c26ea07e26fb8ebe8338f3
[ "Apache-2.0" ]
null
null
null
graviteeio_cli/graviteeio/apim/apis/apis.py
YoranSys/graviteeio-cli
9a5f90658e6e376682c26ea07e26fb8ebe8338f3
[ "Apache-2.0" ]
null
null
null
# cmd_folder = os.path.abspath(os.path.join(os.path.dirname(__file__), 'plugins')) add_command = ["ps", "init", "start", "stop", "deploy", "update", "create", "status", "health", "fetch"]
27.261905
111
0.606114
import os import sys import click from ..client.api import api_client from .plugins import COMMANDS # cmd_folder = os.path.abspath(os.path.join(os.path.dirname(__file__), 'plugins')) add_command = ["ps", "init", "start", "stop", "deploy", "update", "create", "status", "health", "fetch"] class PluginCommand(click.Mu...
0
112
0
695
0
0
0
-10
158
4ad6c6eb52eae93f0848534a08ba03b383e4096a
13,083
py
Python
venv/lib/python2.7/site-packages/ansible/modules/network/aos/_aos_blueprint_param.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
venv/lib/python2.7/site-packages/ansible/modules/network/aos/_aos_blueprint_param.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
venv/lib/python2.7/site-packages/ansible/modules/network/aos/_aos_blueprint_param.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
#!/usr/bin/python # # (c) 2017 Apstra Inc, <community@apstra.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your opt...
33.893782
105
0.611175
#!/usr/bin/python # # (c) 2017 Apstra Inc, <community@apstra.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your opt...
0
0
0
0
0
6,720
0
183
257
adc24710801293adc586e332d4618d78b24e4ef4
829
py
Python
asgi_correlation_id/extensions/sentry.py
lakshaythareja/asgi-correlation-id
c8febfdc04191087fb96b8d1843ad80e6f5cd080
[ "BSD-4-Clause" ]
null
null
null
asgi_correlation_id/extensions/sentry.py
lakshaythareja/asgi-correlation-id
c8febfdc04191087fb96b8d1843ad80e6f5cd080
[ "BSD-4-Clause" ]
null
null
null
asgi_correlation_id/extensions/sentry.py
lakshaythareja/asgi-correlation-id
c8febfdc04191087fb96b8d1843ad80e6f5cd080
[ "BSD-4-Clause" ]
null
null
null
from typing import Callable def get_sentry_extension() -> Callable[[str], None]: """ Return set_transaction_id, if the Sentry-sdk is installed. """ try: from asgi_correlation_id.extensions.sentry import set_transaction_id return set_transaction_id except ImportError: # pragma: n...
28.586207
76
0.708082
from typing import Callable def get_sentry_extension() -> Callable[[str], None]: """ Return set_transaction_id, if the Sentry-sdk is installed. """ try: import sentry_sdk # noqa: F401, TC002 from asgi_correlation_id.extensions.sentry import set_transaction_id return set_tran...
0
0
0
0
0
0
0
-4
51
5b2a2b06090cf00ce66092cc991d7c16dd32c60f
1,765
py
Python
test/disabled/test_utils/test_utils.py
eapearson/kbase-skd-module-job-browser-bff
426445f90569adac16632ef4921f174e51abd42f
[ "MIT" ]
null
null
null
test/disabled/test_utils/test_utils.py
eapearson/kbase-skd-module-job-browser-bff
426445f90569adac16632ef4921f174e51abd42f
[ "MIT" ]
6
2020-05-26T17:40:07.000Z
2022-03-11T16:33:11.000Z
test/disabled/test_utils/test_utils.py
eapearson/kbase-skd-module-job-browser-bff
426445f90569adac16632ef4921f174e51abd42f
[ "MIT" ]
1
2020-05-26T17:12:59.000Z
2020-05-26T17:12:59.000Z
UPSTREAM_SERVICE = 'ee2' ENV = 'ci' USER_CLASS = 'user'
28.015873
59
0.349575
from JobBrowserBFF.TestBase import TestBase import JobBrowserBFF.Utils as utils UPSTREAM_SERVICE = 'ee2' ENV = 'ci' USER_CLASS = 'user' class UtilsTest(TestBase): def test_parse_app_id(self): cases = [ { 'input': ['foo/bar', None], 'output': { ...
0
0
0
1,604
0
0
0
36
67
d97aa2ce745883a9ee6554844c742772fd037df7
4,604
py
Python
droplogger/outputs/feed.py
goodevilgenius/droplogger
4e5462db52fa174a2fdec491553ea6286a377539
[ "MIT" ]
3
2017-03-07T21:46:52.000Z
2020-05-02T07:46:20.000Z
droplogger/outputs/feed.py
goodevilgenius/droplogger
4e5462db52fa174a2fdec491553ea6286a377539
[ "MIT" ]
38
2015-02-24T19:17:36.000Z
2020-09-28T11:12:40.000Z
droplogger/outputs/feed.py
goodevilgenius/droplogger
4e5462db52fa174a2fdec491553ea6286a377539
[ "MIT" ]
1
2018-02-22T20:14:26.000Z
2018-02-22T20:14:26.000Z
#!/usr/bin/python import os __all__ = ["add_entries"] config = {"__Instructions_filename_":"In the filename, 0 is the extension, specified by ext, 1 is the format name, 2 is the log name, and 3 is the date, specified by the format in date", "__Instructions_master_feed_":"A master feed will link to all the ...
46.505051
186
0.607515
#!/usr/bin/python import os, codecs, datetime import jinja2, markdown from email.utils import formatdate from xml.sax.saxutils import escape from ..utils.misc import json_dumps __all__ = ["add_entries"] config = {"__Instructions_filename_":"In the filename, 0 is the extension, specified by ext, 1 is the format name,...
0
0
0
0
0
3,330
0
61
111
29b2e754617514c98fd7650574fd58215a2e044a
608
py
Python
solutions/0094.binary-tree-inorder-traversal/binary-tree-inorder-traversal.py
CarlKing5019/Leetcode
ec887a3cf93eb9952fb6bf8233d3cc374a5e32a0
[ "MIT" ]
null
null
null
solutions/0094.binary-tree-inorder-traversal/binary-tree-inorder-traversal.py
CarlKing5019/Leetcode
ec887a3cf93eb9952fb6bf8233d3cc374a5e32a0
[ "MIT" ]
null
null
null
solutions/0094.binary-tree-inorder-traversal/binary-tree-inorder-traversal.py
CarlKing5019/Leetcode
ec887a3cf93eb9952fb6bf8233d3cc374a5e32a0
[ "MIT" ]
null
null
null
''' * Solution for Binary Tree Inorder Traversal (Leetcode 94) * https://leetcode.com/problems/binary-tree-inorder-traversal/ * Time Complexity: O(n) * Space Complexity: O(h) * Idea: Recursion ''' # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # ...
24.32
100
0.625
''' * Solution for Binary Tree Inorder Traversal (Leetcode 94) * https://leetcode.com/problems/binary-tree-inorder-traversal/ * Time Complexity: O(n) * Space Complexity: O(h) * Idea: Recursion ''' # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # ...
0
0
0
217
0
0
0
0
23
e0404c28286dfb5cfab96b5e412a7fcd22152cba
1,579
py
Python
kiwiii/loader.py
mojaie/kiwiii-server
2f550d58bfc9876b9153a2899610e8ca256c294e
[ "MIT" ]
null
null
null
kiwiii/loader.py
mojaie/kiwiii-server
2f550d58bfc9876b9153a2899610e8ca256c294e
[ "MIT" ]
3
2017-09-08T02:00:30.000Z
2017-10-05T08:14:59.000Z
kiwiii/loader.py
mojaie/kiwiii-server
2f550d58bfc9876b9153a2899610e8ca256c294e
[ "MIT" ]
null
null
null
import yaml with open("server_config.yaml") as f: config = yaml.load(f.read())
26.762712
75
0.668144
import glob import os import yaml with open("server_config.yaml") as f: config = yaml.load(f.read()) def web_home_path(): return config["web_home"] def basic_auth_realm(): return config["basic_auth_realm"] def user_passwd_matched(user, passwd): users = config["user"] return user in users an...
0
0
0
0
0
1,255
0
-22
252
b9290c05148c759440d316e434d280241a415c00
1,643
py
Python
Network/VGGLike/VGG_tiny_nBn192.py
MuAuan/dlShogi-kai
cac02997ff816bba085c872fe02b099a92b08ba4
[ "MIT" ]
null
null
null
Network/VGGLike/VGG_tiny_nBn192.py
MuAuan/dlShogi-kai
cac02997ff816bba085c872fe02b099a92b08ba4
[ "MIT" ]
null
null
null
Network/VGGLike/VGG_tiny_nBn192.py
MuAuan/dlShogi-kai
cac02997ff816bba085c872fe02b099a92b08ba4
[ "MIT" ]
null
null
null
ch=192
35.717391
123
0.572733
from chainer import Chain import chainer.functions as F import chainer.links as L from pydlshogi.common import * ch=192 class PolicyNetwork(Chain): def __init__(self): super(PolicyNetwork, self).__init__() with self.init_scope(): self.conv1_1 = L.Convolution2D(104, ch, 3, pad=1) ...
3
0
0
1,497
0
0
0
25
111
3d3c983a11e0ac7b41a2cb592f8e92136a32d4a4
1,024
py
Python
src/waldur_mastermind/marketplace/migrations/0043_category_default_tenant_category.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_mastermind/marketplace/migrations/0043_category_default_tenant_category.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_mastermind/marketplace/migrations/0043_category_default_tenant_category.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
# Generated by Django 2.2.13 on 2021-02-26 11:42
28.444444
123
0.663086
# Generated by Django 2.2.13 on 2021-02-26 11:42 from django.core.exceptions import ObjectDoesNotExist from django.db import migrations, models def set_default_tenant_flag_to_categories(apps, schema_editor): Category = apps.get_model('marketplace', 'Category') try: vm_category = Category.objects.get...
0
0
0
534
0
297
0
51
91
016d912fba928b5c539d28066bfd7012210abf5e
6,554
py
Python
src/ops.py
alperyeg/spiking_GANs
9249093db043c0b41eb1e935dd09f5d415307ca5
[ "MIT" ]
null
null
null
src/ops.py
alperyeg/spiking_GANs
9249093db043c0b41eb1e935dd09f5d415307ca5
[ "MIT" ]
null
null
null
src/ops.py
alperyeg/spiking_GANs
9249093db043c0b41eb1e935dd09f5d415307ca5
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.python.framework import ops def linear(inpt, output_dim, scope=None, stddev=1.0, with_w=False): """ Linear transformation :param inpt: data :param output_dim: hidden layers :param scope: name :param stddev: standard deviation :param with_w: whethe...
33.269036
81
0.579646
import math import numpy as np import tensorflow as tf from tensorflow.python.framework import ops class BatchNorm(object): """Code modification of http://stackoverflow.com/a/33950177""" def __init__(self, epsilon=1e-5, momentum=0.9, name="batch_norm"): with tf.variable_scope(name): self...
0
0
0
670
0
0
0
-13
67
fbb022212ff0d3c1b286ef027a166087022929c9
9,693
py
Python
emulation_system/emulation_system/commands/emulation_command_creator.py
Opentrons/ot3-emulator
90fad37b54dc3b003732220e630185de1a1d5dfd
[ "Apache-2.0" ]
null
null
null
emulation_system/emulation_system/commands/emulation_command_creator.py
Opentrons/ot3-emulator
90fad37b54dc3b003732220e630185de1a1d5dfd
[ "Apache-2.0" ]
3
2021-08-31T14:59:41.000Z
2021-10-04T16:10:25.000Z
emulation_system/emulation_system/commands/emulation_command_creator.py
Opentrons/ot3-emulator
90fad37b54dc3b003732220e630185de1a1d5dfd
[ "Apache-2.0" ]
null
null
null
"""Builds command for emulator.""" from __future__ import annotations
32.41806
85
0.657691
"""Builds command for emulator.""" from __future__ import annotations import abc import argparse import os from dataclasses import dataclass from enum import Enum from typing import Dict from emulation_system.consts import ( PRODUCTION_MODE_NAME, DEVELOPMENT_MODE_NAME, LATEST_KEYWORD, ROOT_DIR, ) fro...
0
6,577
0
2,312
0
0
0
319
406
08b9122888821e2ca3e07dd65afd9695ef752424
922
py
Python
app.py
j-000/todoAPI
27d8bbe680368a4ad72adf174776551b7bf219c6
[ "bzip2-1.0.6" ]
2
2019-04-20T18:28:04.000Z
2019-07-31T06:04:12.000Z
app.py
j-000/todoAPI
27d8bbe680368a4ad72adf174776551b7bf219c6
[ "bzip2-1.0.6" ]
null
null
null
app.py
j-000/todoAPI
27d8bbe680368a4ad72adf174776551b7bf219c6
[ "bzip2-1.0.6" ]
null
null
null
from flask_restful import Api from models import app from resources import UserAuthentication, UserRefreshToken, UserRegistration, UserLogout, Todos, Todo from flask_moment import Moment moment = Moment(app) api = Api(app) api.add_resource(UserRegistration, '/registration') api.add_resource(UserAuthentication, '/auth...
28.8125
101
0.759219
from flask import render_template from flask_restful import Api, reqparse from models import app from resources import UserAuthentication, UserRefreshToken, UserRegistration, UserLogout, Todos, Todo from flask_moment import Moment moment = Moment(app) api = Api(app) api.add_resource(UserRegistration, '/registration')...
0
244
0
0
0
0
0
22
91
2fb1bdd7e88f0d2c1b5764cee74a9a2b9519fce8
1,282
py
Python
backend/LocalTesting/compute_weights.py
brandontjd/BinancePortfolioManager
e1d81f641336c6dfc97f8181171d2814f72e0ee7
[ "MIT" ]
5
2021-04-20T05:35:49.000Z
2021-08-09T08:51:16.000Z
backend/LocalTesting/compute_weights.py
brandontjd/BinancePortfolioManager
e1d81f641336c6dfc97f8181171d2814f72e0ee7
[ "MIT" ]
2
2021-05-09T17:27:03.000Z
2021-05-18T13:12:29.000Z
backend/LocalTesting/compute_weights.py
brandontjd/BinancePortfolioManager
e1d81f641336c6dfc97f8181171d2814f72e0ee7
[ "MIT" ]
null
null
null
from flask import Flask from flask_cors import CORS from os import environ # To do : Filter away very small amounts app = Flask(__name__) CORS(app, resources={r"/*": {"origins": "*"}}) if __name__ == "__main__": app.run(host="0.0.0.0",port=5001,debug=environ.get('PROD_ENV') != False)
32.05
76
0.627145
from flask import Flask, jsonify, request from flask_cors import CORS from os import environ import pandas as pd # To do : Filter away very small amounts app = Flask(__name__) CORS(app, resources={r"/*": {"origins": "*"}}) @app.route('/compute_weights',methods=['POST']) def compute_weights(): assets = request.ge...
0
930
0
0
0
0
0
16
45
b6183d93d141c950c30926b0e6a0bf799a89eff0
4,743
py
Python
examples/SimpleTrap/SimpleTrap.py
nist-ionstorage/bem
b87737f4f5e32351576885cd5f453013cb731f93
[ "Unlicense" ]
16
2018-01-31T22:45:37.000Z
2022-02-06T07:33:42.000Z
examples/SimpleTrap/SimpleTrap.py
nist-ionstorage/bem
b87737f4f5e32351576885cd5f453013cb731f93
[ "Unlicense" ]
1
2018-03-27T16:03:57.000Z
2018-03-27T16:03:57.000Z
examples/SimpleTrap/SimpleTrap.py
nist-ionstorage/bem
b87737f4f5e32351576885cd5f453013cb731f93
[ "Unlicense" ]
11
2017-08-29T20:50:55.000Z
2021-05-26T12:43:52.000Z
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <codecell> # bem: triangulation and fmm/bem electrostatics tools # # Copyright (C) 2011-2012 Robert Jordens <jordens@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License ...
28.920732
82
0.683534
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <codecell> # bem: triangulation and fmm/bem electrostatics tools # # Copyright (C) 2011-2012 Robert Jordens <jordens@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License ...
0
0
0
0
0
467
0
0
23
6560358e89f43f241a6a913a3a42338e78afda8e
1,734
py
Python
examples/muv/muv_datasets.py
ozgurozkan123/deepchem
7b6248db5f7172ff2a833a1c7c99f48565befe67
[ "MIT" ]
40
2019-04-27T01:20:00.000Z
2022-01-08T07:35:14.000Z
examples/muv/muv_datasets.py
ozgurozkan123/deepchem
7b6248db5f7172ff2a833a1c7c99f48565befe67
[ "MIT" ]
2
2017-08-02T20:35:13.000Z
2017-08-10T21:17:31.000Z
examples/muv/muv_datasets.py
ozgurozkan123/deepchem
7b6248db5f7172ff2a833a1c7c99f48565befe67
[ "MIT" ]
15
2019-06-05T02:53:28.000Z
2021-11-05T00:54:38.000Z
""" MUV dataset loader. """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals import os import deepchem as dc def load_muv(featurizer='ECFP', split='index'): """Load MUV datasets. Does not do train/test split""" # Load MUV dataset print("About to load ...
32.716981
76
0.671857
""" MUV dataset loader. """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals import os import numpy as np import shutil import deepchem as dc def load_muv(featurizer='ECFP', split='index'): """Load MUV datasets. Does not do train/test split""" # Load MU...
0
0
0
0
0
0
0
-11
44
604cc8b7793bb84989a19dc4373f522dc0854717
385
py
Python
LeetCode/python/151-180/171-excel-sheet-column-number/solution.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
LeetCode/python/151-180/171-excel-sheet-column-number/solution.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
LeetCode/python/151-180/171-excel-sheet-column-number/solution.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
__author__ = 'yinjun'
16.041667
31
0.392208
__author__ = 'yinjun' class Solution: # @param s, a string # @return an integer def titleToNumber(self, s): lst = list(s) l = len(lst) r = l - 1 num = 0 pos = 0 while pos < l: c = lst[pos] cn = ord(c) - 64 num += cn * 26...
0
0
0
338
0
0
0
0
23
b1c96e1cc7cf1b9136af7e35db07070681cb99e5
3,088
py
Python
Backend/pesMethod.py
GaryZ700/CatLab_CompChem
4a3dee5a3778eb8b69b53b9d0e9ed6321cadedea
[ "MIT" ]
1
2021-11-13T12:21:52.000Z
2021-11-13T12:21:52.000Z
Backend/pesMethod.py
GaryZ700/CatLab_CompChem
4a3dee5a3778eb8b69b53b9d0e9ed6321cadedea
[ "MIT" ]
null
null
null
Backend/pesMethod.py
GaryZ700/CatLab_CompChem
4a3dee5a3778eb8b69b53b9d0e9ed6321cadedea
[ "MIT" ]
null
null
null
#Written by Gary Zeri #Computer Science Major at Chapman University, Member of Dr. LaRue's CatLab #Abstract Class to define the properties of all methods used to generate a Potential Energy Surface ###################################################################################
33.204301
110
0.488342
#Written by Gary Zeri #Computer Science Major at Chapman University, Member of Dr. LaRue's CatLab #Abstract Class to define the properties of all methods used to generate a Potential Energy Surface from compChemGlobal import * from graphableData import * class PESMethod(GraphableData): #Declare all global...
0
81
0
2,637
0
0
0
13
70
72e29db2d9eb9d9778ec01beb1cdff703288bc98
41,733
py
Python
pypy/objspace/std/intobject.py
pymtl/pypy-pymtl3
d2f66f87686e48aeb1eecabeaa3de1381a149f2c
[ "Apache-2.0", "OpenSSL" ]
1
2021-06-02T23:02:09.000Z
2021-06-02T23:02:09.000Z
pypy/objspace/std/intobject.py
pymtl/pypy-pymtl3
d2f66f87686e48aeb1eecabeaa3de1381a149f2c
[ "Apache-2.0", "OpenSSL" ]
1
2021-03-30T18:08:41.000Z
2021-03-30T18:08:41.000Z
pypy/objspace/std/intobject.py
pymtl/pypy-pymtl3
d2f66f87686e48aeb1eecabeaa3de1381a149f2c
[ "Apache-2.0", "OpenSSL" ]
null
null
null
"""The builtin int type (W_AbstractInt) and the base impl (W_IntObject) based on rpython ints. In order to have the same behavior running on CPython, and after RPython translation this module uses rarithmetic.ovfcheck to explicitly check for overflows, something CPython does not do anymore. """ import sys from pypy.i...
38.182068
88
0.635205
"""The builtin int type (W_AbstractInt) and the base impl (W_IntObject) based on rpython ints. In order to have the same behavior running on CPython, and after RPython translation this module uses rarithmetic.ovfcheck to explicitly check for overflows, something CPython does not do anymore. """ import operator import ...
0
11,951
0
12,433
0
9,224
0
568
794
6b720c23f71a96bcab1ab21bfe228eeadab8a860
1,418
py
Python
10.delete.py
MohanSha/EAMS
bf43a855c0a44da8e5aa76a30f6ac3f1e899bd00
[ "MIT" ]
null
null
null
10.delete.py
MohanSha/EAMS
bf43a855c0a44da8e5aa76a30f6ac3f1e899bd00
[ "MIT" ]
null
null
null
10.delete.py
MohanSha/EAMS
bf43a855c0a44da8e5aa76a30f6ac3f1e899bd00
[ "MIT" ]
null
null
null
#import libraries emain = Tk() emain.title('Input') Label(emain, text="Enter table name to delete : ").grid(row=1,column=2,sticky=W,pady=4) inp_tbl = Entry(emain) inp_tbl.grid(row=1,column=4,padx=12) inp_tbl.bind('<Return>', delete) inp_tbl.focus() emain.mainloop()
24.877193
142
0.643865
#import libraries import MySQLdb import ConfigParser from Tkinter import * from tkMessageBox import * def exec_delete(*event): #reading config file Config = ConfigParser.ConfigParser() Config.read("config.ini") # Establish a MySQL connection database = MySQLdb.connect (host=Config.get(...
0
0
0
0
0
995
0
-4
142
43041b08f9fdcbe5fbf3abf89d839c8afc356563
5,354
py
Python
satori/tunnel.py
mgeisler/satori
dea382bae1cd043189589c0f7d4c20b4b6725ab5
[ "Apache-2.0" ]
1
2015-01-18T19:56:28.000Z
2015-01-18T19:56:28.000Z
satori/tunnel.py
samstav/satori
239fa1e3c7aac78599145c670576f0ac76a41a89
[ "Apache-2.0" ]
null
null
null
satori/tunnel.py
samstav/satori
239fa1e3c7aac78599145c670576f0ac76a41a89
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
31.869048
78
0.607023
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
0
0
0
4,089
0
0
0
-23
214
a89ddb9745ba5e0f514015de6cbc530cb2a36195
274
py
Python
src/pages/views.py
earth-emoji/infotechia
44ed7aecf052001573b47320e6a1239968d2a067
[ "BSD-2-Clause" ]
null
null
null
src/pages/views.py
earth-emoji/infotechia
44ed7aecf052001573b47320e6a1239968d2a067
[ "BSD-2-Clause" ]
11
2019-10-27T23:41:10.000Z
2022-02-10T10:30:00.000Z
src/pages/views.py
earth-emoji/infotechia
44ed7aecf052001573b47320e6a1239968d2a067
[ "BSD-2-Clause" ]
null
null
null
# Create your views here.
34.25
68
0.759124
from django.shortcuts import render, redirect # Create your views here. def home(request, template_name='pages/home.html'): if request.user.is_authenticated: return redirect('workspace:home', request.user.profile.slug) return render(request, template_name)
0
0
0
0
0
179
0
24
44
1c503cbca6e93841890aaeb1463f9eee90246168
35,502
py
Python
test/test_entrypoints.py
cdoronc/remote
4155e7f019891d72fbad6081ad62f8441d6b3e76
[ "BSD-2-Clause" ]
15
2020-05-25T18:23:58.000Z
2021-08-19T19:26:36.000Z
test/test_entrypoints.py
cdoronc/remote
4155e7f019891d72fbad6081ad62f8441d6b3e76
[ "BSD-2-Clause" ]
12
2020-05-11T23:41:24.000Z
2022-02-02T13:33:39.000Z
test/test_entrypoints.py
cdoronc/remote
4155e7f019891d72fbad6081ad62f8441d6b3e76
[ "BSD-2-Clause" ]
7
2020-06-05T01:33:32.000Z
2021-06-08T21:57:44.000Z
"""Integration-ish tests for CLI endpoints. We only mock subprocess calls since we cannot do multi-host testing. Some of the test above don't verify much, but they at least ensure that all parts work well together. """ TEST_HOST = "test-host1.example.com" TEST_DIR = ".remotes/myproject" TEST_CONFIG = f"{TEST_HOST}:{T...
28.981224
120
0.54011
"""Integration-ish tests for CLI endpoints. We only mock subprocess calls since we cannot do multi-host testing. Some of the test above don't verify much, but they at least ensure that all parts work well together. """ import os import sys from contextlib import contextmanager from datetime import datetime from unitt...
0
30,030
0
0
0
3,766
0
196
1,142
0751c12b22a4f0628bee313acb69f83c51fb4a4f
3,368
py
Python
cnn_mnist.py
alexlungu10/CNN-MNIST
130f654f3b0f94531ddcb28d2af82df246d70e56
[ "Apache-2.0" ]
null
null
null
cnn_mnist.py
alexlungu10/CNN-MNIST
130f654f3b0f94531ddcb28d2af82df246d70e56
[ "Apache-2.0" ]
null
null
null
cnn_mnist.py
alexlungu10/CNN-MNIST
130f654f3b0f94531ddcb28d2af82df246d70e56
[ "Apache-2.0" ]
null
null
null
# %matplotlib inline
37.010989
117
0.603029
from pathlib import Path from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense from keras.models import Sequential, model_from_json from keras.datasets import mnist from keras.utils import to_categorical from keras.preprocessing import image import matplotlib.pyplot as plt import numpy as np # %matplotlib ...
0
0
0
3,018
0
0
0
125
202
208dd2c64fba31155e794c192457834b5ca3374a
690
py
Python
tools/frontend/dbpedia_links_rating/rating/management/commands/uploadLinks.py
The-Actual-Damien/https-github.com-dbpedia-links
4bd785f62fadb30610bddd42735403b8e6dded19
[ "Apache-2.0" ]
52
2015-05-09T23:59:45.000Z
2022-02-10T13:30:32.000Z
tools/frontend/dbpedia_links_rating/rating/management/commands/uploadLinks.py
The-Actual-Damien/https-github.com-dbpedia-links
4bd785f62fadb30610bddd42735403b8e6dded19
[ "Apache-2.0" ]
40
2015-05-12T06:44:26.000Z
2020-12-02T18:32:57.000Z
tools/frontend/dbpedia_links_rating/rating/management/commands/uploadLinks.py
The-Actual-Damien/https-github.com-dbpedia-links
4bd785f62fadb30610bddd42735403b8e6dded19
[ "Apache-2.0" ]
66
2015-05-11T17:08:57.000Z
2022-03-18T12:24:44.000Z
from __future__ import unicode_literals
31.363636
164
0.643478
from __future__ import unicode_literals from django.core.management import BaseCommand from dbpedia_links_rating.rating.models import Link class Command(BaseCommand): help = "Read out a .nt file and create links" def add_arguments(self, parser): parser.add_argument('file', type=str) missing_ar...
0
0
0
526
0
0
0
55
69
304e183796098ce0e1e12029b092dd7d13e4c469
2,004
py
Python
dss_kaggle_clouds/data/mask_decoder.py
datascienceucsc/dss-cloudclassification
e541a7772bb2cc33a0797849b102374ce347cdf2
[ "MIT" ]
2
2019-10-13T23:11:55.000Z
2019-10-14T01:10:37.000Z
dss_kaggle_clouds/data/mask_decoder.py
datascienceslugs/dss-cloudclassification
e541a7772bb2cc33a0797849b102374ce347cdf2
[ "MIT" ]
1
2019-10-26T20:08:11.000Z
2019-10-26T20:08:11.000Z
dss_kaggle_clouds/data/mask_decoder.py
datascienceucsc/dss-cloudclassification
e541a7772bb2cc33a0797849b102374ce347cdf2
[ "MIT" ]
1
2019-10-08T20:10:34.000Z
2019-10-08T20:10:34.000Z
# mask_decoder.py # # Sampson Mao, Anders Poirel # 26-10-2019 # # script for decoding the masks for each image in the training set from # the .csv file, writing the output as a seperate .jpg file for each # label-image pair import pandas as pd import numpy as np from PIL import Image def rle2mask(row, height =...
32.322581
80
0.618263
# mask_decoder.py # # Sampson Mao, Anders Poirel # 26-10-2019 # # script for decoding the masks for each image in the training set from # the .csv file, writing the output as a seperate .jpg file for each # label-image pair import pandas as pd import numpy as np from PIL import Image def rle2mask(row, height =...
0
0
0
0
0
0
0
0
0
1aa13aad063af14972d7a466e039c2913551eea2
3,224
py
Python
utils/dataset.py
slothkong/crypto_forecast
2eff9dbcacf6894ffe01b63e7570c569dbfab90c
[ "MIT" ]
null
null
null
utils/dataset.py
slothkong/crypto_forecast
2eff9dbcacf6894ffe01b63e7570c569dbfab90c
[ "MIT" ]
null
null
null
utils/dataset.py
slothkong/crypto_forecast
2eff9dbcacf6894ffe01b63e7570c569dbfab90c
[ "MIT" ]
null
null
null
import os import requests import pandas as pd from datetime import datetime from easydict import EasyDict as edict # ---------------------------------------------------------------------------------------------------------------------- # Global variables # -------------------------------------------------------------...
34.297872
120
0.515509
import os import requests import pandas as pd from datetime import datetime from easydict import EasyDict as edict # ---------------------------------------------------------------------------------------------------------------------- # Global variables # -------------------------------------------------------------...
0
0
0
0
0
0
0
0
0
c43f4cc49cf83f2f3556869d27039a7ebe123635
483
py
Python
tests/datasets-04-http-dns/writepcap.py
mtremer/suricata-verify
48621db880a4254d4f7182307f4fe3b49d059a37
[ "MIT" ]
58
2018-05-04T06:55:15.000Z
2022-03-18T17:34:04.000Z
tests/datasets-04-http-dns/writepcap.py
mtremer/suricata-verify
48621db880a4254d4f7182307f4fe3b49d059a37
[ "MIT" ]
577
2018-12-06T08:57:33.000Z
2022-03-29T10:49:18.000Z
tests/datasets-04-http-dns/writepcap.py
mtremer/suricata-verify
48621db880a4254d4f7182307f4fe3b49d059a37
[ "MIT" ]
64
2018-05-01T16:52:58.000Z
2021-12-16T21:01:01.000Z
#!/usr/bin/env python pkts = [] pkts += Ether(dst='ff:ff:ff:ff:ff:ff', src='00:01:02:03:04:05')/ \ Dot1Q(vlan=6)/ \ IP(dst='1.2.3.4', src='5.6.7.8')/UDP(dport=53)/DNS(id=1, rd=1, qd=DNSQR(qname='example.com')) pkts += Ether(dst='ff:ff:ff:ff:ff:ff', src='00:01:02:03:04:05')/ \ Dot1Q(vlan=6)/ \ IP(dst='...
34.5
122
0.583851
#!/usr/bin/env python from scapy.all import * pkts = [] pkts += Ether(dst='ff:ff:ff:ff:ff:ff', src='00:01:02:03:04:05')/ \ Dot1Q(vlan=6)/ \ IP(dst='1.2.3.4', src='5.6.7.8')/UDP(dport=53)/DNS(id=1, rd=1, qd=DNSQR(qname='example.com')) pkts += Ether(dst='ff:ff:ff:ff:ff:ff', src='00:01:02:03:04:05')/ \ Dot1Q...
0
0
0
0
0
0
0
2
22
e1f3fb994fc0b05515f813a004deac918b014e70
1,171
py
Python
others/snsync_pdf.py
RohanGautam/supernote-tool
e297aa0d3b8cc624aba179497576be1ddbc2b32e
[ "Apache-2.0" ]
17
2021-12-02T04:19:46.000Z
2022-03-09T18:28:16.000Z
others/snsync_pdf.py
RohanGautam/supernote-tool
e297aa0d3b8cc624aba179497576be1ddbc2b32e
[ "Apache-2.0" ]
null
null
null
others/snsync_pdf.py
RohanGautam/supernote-tool
e297aa0d3b8cc624aba179497576be1ddbc2b32e
[ "Apache-2.0" ]
1
2022-02-16T21:12:18.000Z
2022-02-16T21:12:18.000Z
import os import re import glob from pathlib import Path from tqdm import tqdm SUPERNOTE_PATH = '/run/user/1000/gvfs/mtp:host=rockchip_Supernote_A5_X_SN100B10004997/Supernote/Note' OUTPUT_PATH = '../Notes_synced' assert os.path.exists(SUPERNOTE_PATH) assert os.path.exists(OUTPUT_PATH) for p in tqdm(glob.glob(f'{...
27.232558
101
0.685739
import os import re import glob from pathlib import Path from tqdm import tqdm import supernotelib as sn SUPERNOTE_PATH = '/run/user/1000/gvfs/mtp:host=rockchip_Supernote_A5_X_SN100B10004997/Supernote/Note' OUTPUT_PATH = '../Notes_synced' assert os.path.exists(SUPERNOTE_PATH) assert os.path.exists(OUTPUT_PATH) de...
0
0
0
0
0
470
0
4
45
1a4489bdaac176027392636a0710ad4e86a20d86
1,357
py
Python
setup.py
elohhim/PySyncTeX
2aa8bc172edcccffd9b50350dd3b9e653b38f15e
[ "MIT" ]
null
null
null
setup.py
elohhim/PySyncTeX
2aa8bc172edcccffd9b50350dd3b9e653b38f15e
[ "MIT" ]
null
null
null
setup.py
elohhim/PySyncTeX
2aa8bc172edcccffd9b50350dd3b9e653b38f15e
[ "MIT" ]
null
null
null
if __name__ == '__main__': from setuptools import setup, Extension _synctex_parser = Extension('pysynctex._synctex_parser', sources=['wrapper/synctex_parser.i', 'wrapper/synctex_package/synctex_parser.c', 'wrapp...
42.40625
82
0.537214
if __name__ == '__main__': from setuptools import setup, Extension _synctex_parser = Extension('pysynctex._synctex_parser', sources=['wrapper/synctex_parser.i', 'wrapper/synctex_package/synctex_parser.c', 'wrapp...
0
0
0
0
0
0
0
0
0
932bcfe7b41eb67329409b391485b67bcb24f265
2,861
py
Python
nrepl/watcher.py
shonenada/nREPL-reloader
152b2a5b11c121b30c9cfde3cd71cacec8d0449d
[ "MIT" ]
5
2017-06-20T09:00:56.000Z
2022-01-21T06:22:49.000Z
nrepl/watcher.py
shonenada/nREPL-reloader
152b2a5b11c121b30c9cfde3cd71cacec8d0449d
[ "MIT" ]
null
null
null
nrepl/watcher.py
shonenada/nREPL-reloader
152b2a5b11c121b30c9cfde3cd71cacec8d0449d
[ "MIT" ]
null
null
null
COLOR_GRAY = '2' COLOR_RED = '0;31'
28.61
79
0.531982
import os import time import errno import socket from nrepl._compat import urlparse from nrepl.clj import get_ns from nrepl.utils import console, get_ts, traverse_dir from nrepl.client import Client COLOR_GRAY = '2' COLOR_RED = '0;31' class TimeoutError(Exception): pass def nrepl_connect(uri): uri = urlp...
0
0
0
2,383
0
168
0
23
246
765cd431aef6353e6f38502d782feccd3055175f
3,662
py
Python
animal_classification_script.py
prabhat-123/Animal_Classification_In_The_WIld
9be19dae9ec9a51edc755bbbd472e2e36364c9b0
[ "MIT" ]
null
null
null
animal_classification_script.py
prabhat-123/Animal_Classification_In_The_WIld
9be19dae9ec9a51edc755bbbd472e2e36364c9b0
[ "MIT" ]
null
null
null
animal_classification_script.py
prabhat-123/Animal_Classification_In_The_WIld
9be19dae9ec9a51edc755bbbd472e2e36364c9b0
[ "MIT" ]
2
2021-06-24T19:02:48.000Z
2021-06-24T19:15:11.000Z
import os import tensorflow as tf from tensorflow.keras.models import model_from_json from tqdm import tqdm import shutil from animal_classification_report_generator import Animal_Classification_Report # root_dir = os.getcwd() tf.keras.backend.clear_session() config = tf.compat.v1.ConfigProto(gpu_options ...
40.688889
210
0.696887
import numpy as np import os import json import tensorflow as tf from tensorflow.keras.models import model_from_json from tensorflow.keras.preprocessing import image from tensorflow.compat.v1 import ConfigProto from tqdm import tqdm import shutil from animal_classification_report_generator import Animal_Classi...
0
0
0
0
0
283
0
37
117
a36a8b7dce2983389c6d63da6857d0c35d38edc4
2,161
py
Python
examples/host_variant_call.py
ihmpdcc/cutlass
7c4d858bf0075361235e26ea25631a8d1c5152c2
[ "MIT" ]
5
2015-06-26T13:16:55.000Z
2021-08-31T06:00:28.000Z
examples/host_variant_call.py
ihmpdcc/cutlass
7c4d858bf0075361235e26ea25631a8d1c5152c2
[ "MIT" ]
10
2015-06-25T21:50:06.000Z
2017-12-18T22:53:36.000Z
examples/host_variant_call.py
ihmpdcc/cutlass
7c4d858bf0075361235e26ea25631a8d1c5152c2
[ "MIT" ]
11
2015-06-25T21:04:16.000Z
2019-05-14T14:35:01.000Z
#!/usr/bin/env python # pylint: disable=C0111, C0325 import logging import sys import tempfile from pprint import pprint from cutlass import HostVariantCall from cutlass import iHMPSession username = "test" password = "test" def set_logging(): """ Setup logging. """ root = logging.getLogger() root.setLe...
25.127907
89
0.706617
#!/usr/bin/env python # pylint: disable=C0111, C0325 import logging import sys import tempfile from pprint import pprint from cutlass import HostVariantCall from cutlass import iHMPSession username = "test" password = "test" def set_logging(): """ Setup logging. """ root = logging.getLogger() root.setLe...
0
0
0
0
0
0
0
0
0
3f15612cae706633992d9a4c4bd4f4a0593622e0
3,869
py
Python
bin/generate.py
JohnShullTopDev/generating-traning-data-for-healthcare-machine-learningcare-
d0ffb26e1b99204a796df905b50c8caf01417f69
[ "Apache-2.0" ]
1
2019-11-11T11:21:08.000Z
2019-11-11T11:21:08.000Z
bin/generate.py
JohnShullTopDev/generating-traning-data-for-healthcare-machine-learningcare-
d0ffb26e1b99204a796df905b50c8caf01417f69
[ "Apache-2.0" ]
null
null
null
bin/generate.py
JohnShullTopDev/generating-traning-data-for-healthcare-machine-learningcare-
d0ffb26e1b99204a796df905b50c8caf01417f69
[ "Apache-2.0" ]
1
2020-01-28T03:48:14.000Z
2020-01-28T03:48:14.000Z
import argparse # import sys import os from patient import Patient from vitals import VitalSigns from lab import Lab from socialhistory import SocialHistory from familyhistory import FamilyHistory from immunization import Immunization from procedure import Procedure from condition import Condition from med import Med f...
29.761538
95
0.595761
import argparse # import sys import os from patient import Patient from vitals import VitalSigns from lab import Lab from socialhistory import SocialHistory from familyhistory import FamilyHistory from immunization import Immunization from procedure import Procedure from condition import Condition from m...
0
0
0
0
0
0
0
45
0
ad7c2d9339b1ad2a556d9bc9431a0ea4036d8092
31,169
py
Python
tests/integration/incremental_trees/test_trees.py
garethjns/IncrementalTrees
dbc6324a36bd7a597ad8d7f4bc66e7cdab433df6
[ "MIT" ]
22
2019-01-10T15:52:23.000Z
2021-12-23T21:55:36.000Z
tests/integration/incremental_trees/test_trees.py
garethjns/IncrementalTrees
dbc6324a36bd7a597ad8d7f4bc66e7cdab433df6
[ "MIT" ]
6
2019-02-13T09:04:05.000Z
2021-08-17T13:49:15.000Z
tests/integration/incremental_trees/test_trees.py
garethjns/IncrementalTrees
dbc6324a36bd7a597ad8d7f4bc66e7cdab433df6
[ "MIT" ]
3
2019-12-10T15:52:48.000Z
2021-02-22T22:04:22.000Z
import sklearn
34.709354
118
0.528217
import unittest import numpy as np import sklearn import sklearn.datasets from incremental_trees.models.classification.streaming_extc import StreamingEXTC from incremental_trees.models.regression.streaming_extr import StreamingEXTR from incremental_trees.models.regression.streaming_rfr import StreamingRFR from increm...
0
23,164
0
6,410
0
0
0
226
1,318
fe2d5fb810aa19356f6a559afc7030f56fb8ff31
4,191
py
Python
lib/scan/icmp/engine.py
th3cyb3rc0p/Nettacker
24640d8695716aee48435710287f58486ed174ab
[ "Apache-2.0" ]
35
2019-10-17T17:42:50.000Z
2020-10-06T12:08:29.000Z
lib/scan/icmp/engine.py
th3cyb3rc0p/Nettacker
24640d8695716aee48435710287f58486ed174ab
[ "Apache-2.0" ]
1
2022-03-29T22:02:36.000Z
2022-03-29T22:02:36.000Z
lib/scan/icmp/engine.py
th3cyb3rc0p/Nettacker
24640d8695716aee48435710287f58486ed174ab
[ "Apache-2.0" ]
7
2019-10-17T21:46:09.000Z
2021-12-15T04:56:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import socket import os from lib.icmp.engine import send_one_ping, receive_one_ping def do_one_ping(dest_addr, timeout, psize): """ Returns either the delay (in seconds) or none on timeout. """ icmp = socket.getprotobyname("icmp") try: my_soc...
44.115789
119
0.527798
#!/usr/bin/env python # -*- coding: utf-8 -*- import socket import os import socks import json from core.targets import target_type from core.alert import info from core.alert import messages from core.alert import warn from lib.icmp.engine import send_one_ping, receive_one_ping from lib.socks_resolver.engine import g...
0
0
0
0
0
3,271
0
66
244
a3fef9108c5f8d1dadbba5932d912357a779a996
181
py
Python
script.module.streamlink.crypto/lib/cryptopy/passwords/__init__.py
bobbybark/tantrumrepo
1451c481254d3fedec9f430139d18db7312a9b1a
[ "Beerware" ]
3
2020-03-03T13:21:44.000Z
2021-07-21T09:53:31.000Z
script.module.streamlink.crypto/lib/cryptopy/passwords/__init__.py
eggman19/tantrumrepo
1451c481254d3fedec9f430139d18db7312a9b1a
[ "Beerware" ]
null
null
null
script.module.streamlink.crypto/lib/cryptopy/passwords/__init__.py
eggman19/tantrumrepo
1451c481254d3fedec9f430139d18db7312a9b1a
[ "Beerware" ]
1
2018-08-30T20:04:34.000Z
2018-08-30T20:04:34.000Z
""" CryptoPy - a pure python cryptographic libraries cryptopy.passwords package Copyright (c) 2002 by Paul A. Lambert Read LICENSE.txt for license information. """
22.625
52
0.707182
""" CryptoPy - a pure python cryptographic libraries cryptopy.passwords package Copyright (c) 2002 by Paul A. Lambert Read LICENSE.txt for license information. """
0
0
0
0
0
0
0
0
0
8ad09c19a037f5d5d993e9d98f715be4f4596b89
1,722
py
Python
azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk.py
SUSE/azure-sdk-for-python
324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f
[ "MIT" ]
2
2020-07-29T14:22:17.000Z
2020-11-06T18:47:40.000Z
azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk.py
SUSE/azure-sdk-for-python
324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f
[ "MIT" ]
1
2016-08-01T07:37:04.000Z
2016-08-01T07:37:04.000Z
azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk.py
SUSE/azure-sdk-for-python
324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f
[ "MIT" ]
1
2020-12-12T21:04:41.000Z
2020-12-12T21:04:41.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
43.05
106
0.680604
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
0
0
0
1,162
0
0
0
40
46
07e0a04afe6a8a7ee2183f140d652851a60d23ac
2,708
py
Python
chooseK.py
gadgrandez/fastStructure
98f85880562e2c4f4aacb4c8304d0e1aed551985
[ "MIT" ]
92
2015-03-16T20:05:46.000Z
2022-03-22T14:31:16.000Z
chooseK.py
gadgrandez/fastStructure
98f85880562e2c4f4aacb4c8304d0e1aed551985
[ "MIT" ]
47
2015-01-01T11:18:52.000Z
2022-03-03T11:11:39.000Z
chooseK.py
gadgrandez/fastStructure
98f85880562e2c4f4aacb4c8304d0e1aed551985
[ "MIT" ]
45
2015-02-20T18:26:32.000Z
2022-03-31T02:12:31.000Z
import numpy as np import getopt import vars.utils as utils import glob import sys import pdb def parse_logs(files): """ parses through log files to extract marginal likelihood estimates from executing the variational inference algorithm on a dataset. Arguments: files : list ...
23.964602
104
0.608567
import numpy as np import getopt import vars.utils as utils import glob import sys import pdb def parse_logs(files): """ parses through log files to extract marginal likelihood estimates from executing the variational inference algorithm on a dataset. Arguments: files : list ...
0
0
0
0
0
0
0
0
0
1f186c3fb2179eed2f5999b503f9f4a488d20829
5,287
py
Python
backend/question_generation.py
tkyaw1/lotus
3d1eabf3ef2dec26d9d846a787c9f9e018b94740
[ "MIT" ]
null
null
null
backend/question_generation.py
tkyaw1/lotus
3d1eabf3ef2dec26d9d846a787c9f9e018b94740
[ "MIT" ]
null
null
null
backend/question_generation.py
tkyaw1/lotus
3d1eabf3ef2dec26d9d846a787c9f9e018b94740
[ "MIT" ]
null
null
null
from random import randint import requests from watson_developer_cloud import NaturalLanguageUnderstandingV1 from watson_developer_cloud.natural_language_understanding_v1 import Features, KeywordsOptions """ argv[1] : keyword dictionary argv[2] : corpus argv[3] : user text """ def azure_extra...
40.05303
124
0.641763
import sys import ast from random import randint from questions_backend import QuestionGeneration import requests from watson_developer_cloud import NaturalLanguageUnderstandingV1 from watson_developer_cloud.natural_language_understanding_v1 import Features, KeywordsOptions import json """ argv[1] : ke...
0
0
0
0
0
2,500
0
-5
117
ee28e9bb6b7d358dd75e9453b453527788ab80b1
3,758
py
Python
World/Object/Player.py
VeryHardBit/Duengon-and-puzzle
b877c240ca6a1d01d2962d90a958ae7d7bf8c966
[ "Apache-2.0" ]
null
null
null
World/Object/Player.py
VeryHardBit/Duengon-and-puzzle
b877c240ca6a1d01d2962d90a958ae7d7bf8c966
[ "Apache-2.0" ]
null
null
null
World/Object/Player.py
VeryHardBit/Duengon-and-puzzle
b877c240ca6a1d01d2962d90a958ae7d7bf8c966
[ "Apache-2.0" ]
null
null
null
#clear warning from pylance
30.306452
90
0.556945
from .__init__helper import * #clear warning from pylance from .Exit import * from .Trap import * from .Chair import * from .Monster import * class Player(CommonObject): def __init__(self,data,move_limit=999): CommonObject.__init__(self) data.setdefault('pos',[None,None]) self.take...
0
128
0
3,466
0
0
0
4
133
89a51b1d0d3097aa038bbc187a0f87245edbbe4a
4,265
py
Python
python/301.remove-invalid-parentheses.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
10
2019-09-15T00:23:57.000Z
2022-01-05T12:53:42.000Z
python/301.remove-invalid-parentheses.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
3
2021-06-30T00:39:26.000Z
2021-08-01T07:13:59.000Z
python/301.remove-invalid-parentheses.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
6
2020-02-08T02:55:22.000Z
2022-01-02T22:48:18.000Z
# # @lc app=leetcode id=301 lang=python3 # # [301] Remove Invalid Parentheses # # https://leetcode.com/problems/remove-invalid-parentheses/description/ # # algorithms # Hard (44.46%) # Likes: 3255 # Dislikes: 151 # Total Accepted: 258.9K # Total Submissions: 577.9K # Testcase Example: '"()())()"' # # Given a str...
23.563536
136
0.470106
# # @lc app=leetcode id=301 lang=python3 # # [301] Remove Invalid Parentheses # # https://leetcode.com/problems/remove-invalid-parentheses/description/ # # algorithms # Hard (44.46%) # Likes: 3255 # Dislikes: 151 # Total Accepted: 258.9K # Total Submissions: 577.9K # Testcase Example: '"()())()"' # # Given a str...
0
0
0
3,141
0
0
0
0
44
e34127824eec96967909d57d5a908b161b521182
11,165
py
Python
jupyterlab_bookmarks_extension/handlers.py
nandor-poka/jupyterlab-favorites-extension
2fde99e9557e19934323c42a46d5da6a4ce0d95d
[ "BSD-3-Clause" ]
3
2020-07-22T16:57:48.000Z
2020-08-16T18:50:55.000Z
jupyterlab_bookmarks_extension/handlers.py
nandor-poka/jupyterlab-bookmarks-extension
2fde99e9557e19934323c42a46d5da6a4ce0d95d
[ "BSD-3-Clause" ]
null
null
null
jupyterlab_bookmarks_extension/handlers.py
nandor-poka/jupyterlab-bookmarks-extension
2fde99e9557e19934323c42a46d5da6a4ce0d95d
[ "BSD-3-Clause" ]
null
null
null
import os import logging _extension_home_dir = os.path.join(os.environ["HOME"],'.jl-bookmarks') if not os.path.exists(_extension_home_dir): ## Create <USER_HOME/.jl-bookmarks dir if it doesn't exists. try: os.mkdir(_extension_home_dir) except OSError: print(f'Could not create extension hom...
41.351852
150
0.559248
import json from notebook.base.handlers import APIHandler from notebook.utils import url_path_join import tornado import os import logging import shutil _extension_home_dir = os.path.join(os.environ["HOME"],'.jl-bookmarks') if not os.path.exists(_extension_home_dir): ## Create <USER_HOME/.jl-bookmarks dir if it d...
0
8,424
0
105
0
1,157
0
18
511
a54ca5e691b97d645309506655cea48313685749
463
py
Python
4dev/style_check.py
joschu/c
90b15ab041fc2137e62b96e8612ccee605f71ceb
[ "MIT" ]
698
2015-08-25T08:17:42.000Z
2022-02-08T10:08:01.000Z
4dev/style_check.py
xiaohu2015/cgt
90b15ab041fc2137e62b96e8612ccee605f71ceb
[ "MIT" ]
59
2015-08-25T17:45:24.000Z
2021-11-14T16:58:52.000Z
4dev/style_check.py
xiaohu2015/cgt
90b15ab041fc2137e62b96e8612ccee605f71ceb
[ "MIT" ]
111
2015-08-25T20:35:17.000Z
2021-09-18T03:35:28.000Z
#!/usr/bin/env python import cgt for (name,val) in cgt.__dict__.iteritems(): if not name.startswith("_"): if not val.__doc__: print "API function %s requires docstring!"%name for (name,val) in cgt.core.__dict__.iteritems(): if isinstance(val, type) and issubclass(val, cgt.core.Op): ...
33.071429
78
0.676026
#!/usr/bin/env python import cgt for (name,val) in cgt.__dict__.iteritems(): if not name.startswith("_"): if not val.__doc__: print "API function %s requires docstring!"%name for (name,val) in cgt.core.__dict__.iteritems(): if isinstance(val, type) and issubclass(val, cgt.core.Op): ...
0
0
0
0
0
0
0
0
0
3cf05e0a5e89bfc1f91c3e9834b6e41b79749af4
540
py
Python
account/models.py
Gandabh/ToDo-App
0245a5c177ef35d5e04fe4e6cd80b387f604db2d
[ "MIT" ]
null
null
null
account/models.py
Gandabh/ToDo-App
0245a5c177ef35d5e04fe4e6cd80b387f604db2d
[ "MIT" ]
null
null
null
account/models.py
Gandabh/ToDo-App
0245a5c177ef35d5e04fe4e6cd80b387f604db2d
[ "MIT" ]
null
null
null
# from django.contrib.auth import get_user_model # from django.contrib.auth.forms import UserCreationForm, UsernameField, AuthenticationForm # User = get_user_model()
38.571429
91
0.805556
from django.db import models from django.contrib.auth.models import AbstractUser from django.contrib.auth import password_validation from django import forms # from django.contrib.auth import get_user_model from django.utils.translation import gettext, gettext_lazy as _ # from django.contrib.auth.forms import UserCrea...
0
0
0
126
0
0
0
113
133
044f39812b0037fb52998ffe9fae3836505e0468
1,395
py
Python
lib/models/model_manager.py
donnyyou/openseg.pytorch
ff55a5d975b7cd806e01ba539db9207d45b0e221
[ "Apache-2.0" ]
5
2020-04-17T01:56:52.000Z
2021-03-04T11:15:09.000Z
lib/models/model_manager.py
donnyyou/openseg.pytorch
ff55a5d975b7cd806e01ba539db9207d45b0e221
[ "Apache-2.0" ]
null
null
null
lib/models/model_manager.py
donnyyou/openseg.pytorch
ff55a5d975b7cd806e01ba539db9207d45b0e221
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Donny You(youansheng@gmail.com), Xiangtai(lxtpku@pku.edu.cn) # Select Seg Model for img segmentation. from __future__ import absolute_import from __future__ import division from __future__ import print_function from lib.models.nets.asp_ocnet import AspOCNet from...
29.0625
70
0.738351
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Donny You(youansheng@gmail.com), Xiangtai(lxtpku@pku.edu.cn) # Select Seg Model for img segmentation. from __future__ import absolute_import from __future__ import division from __future__ import print_function from lib.models.nets.asp_ocnet import AspOCNet from...
0
0
0
385
0
0
0
27
45
ac3898b6a4f86e4257dd62853544a600836e7c92
5,488
py
Python
initial.py
SBelkaid/NEDMED
6b7a3c6d8697cb07ab175eeec43d9e933bd33784
[ "BSD-4-Clause-UC" ]
null
null
null
initial.py
SBelkaid/NEDMED
6b7a3c6d8697cb07ab175eeec43d9e933bd33784
[ "BSD-4-Clause-UC" ]
null
null
null
initial.py
SBelkaid/NEDMED
6b7a3c6d8697cb07ab175eeec43d9e933bd33784
[ "BSD-4-Clause-UC" ]
null
null
null
import pandas as pd import tempfile import matplotlib.pyplot as plt from collections import defaultdict import pickle import numpy as np from sklearn.pipeline import Pipeline from sklearn.feature_extraction.text import CountVectorizer from sklearn.svm import LinearSVC from sklearn.feature_extraction.text import TfidfTr...
34.734177
112
0.748178
import pandas as pd import tempfile import matplotlib.pyplot as plt from collections import defaultdict import pickle import numpy as np from sklearn.pipeline import Pipeline from sklearn.feature_extraction.text import CountVectorizer from sklearn.svm import LinearSVC from sklearn.feature_extraction.text import TfidfTr...
0
0
0
0
0
2,540
0
0
92
e0ff627b97c4b3c29c0e816701a8b564df29a301
3,533
py
Python
paas-ce/paas/login/bkaccount/opsany_user_auth.py
kerven88/opsany-paas
78b83d0b6a46f3e70226ca99992d736b2af0af72
[ "Apache-2.0" ]
null
null
null
paas-ce/paas/login/bkaccount/opsany_user_auth.py
kerven88/opsany-paas
78b83d0b6a46f3e70226ca99992d736b2af0af72
[ "Apache-2.0" ]
null
null
null
paas-ce/paas/login/bkaccount/opsany_user_auth.py
kerven88/opsany-paas
78b83d0b6a46f3e70226ca99992d736b2af0af72
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*-
34.980198
103
0.58364
# -*- coding: utf-8 -*- import requests import settings import json class OpsAnyRbacUserAuth(object): APP_CODE = "rbac" APP_SECRET = "8a628f06-ed28-4d60-8ce8-458ae52efb6a" BK_URL = "{}://{}".format(settings.HTTP_SCHEMA, settings.PAAS_INNER_DOMAIN) ACCESS_TOKEN = "opsany-esb-auth-token-9e8083137204" ...
0
0
0
3,439
0
0
0
-22
89
028c93992478afeb41f66bfcf3209ee8619e96df
835
py
Python
2 semester/DM/Practics/2022-02-02/Prim.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
1
2022-02-06T17:50:25.000Z
2022-02-06T17:50:25.000Z
2 semester/DM/Practics/2022-02-02/Prim.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
null
null
null
2 semester/DM/Practics/2022-02-02/Prim.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
1
2022-03-02T06:45:06.000Z
2022-03-02T06:45:06.000Z
count = int(input("[>] Enter count of tops: ")) graph = [(float("inf"), -1, -1)] status = True while True: status = input("[>] Enter the element of graph (lenght, top 1, top 2): ") if status: status = tuple(map(int, status.split())) graph.append(status) else: break unified = {1...
20.875
142
0.543713
def get_min(graph: list, unified: set): rm = (float("inf"), -1, -1) for top in unified: rr = min(graph, key=lambda x: x[0] if (x[1] == top or x[2] == top) and (x[1] not in unified or x[2] not in unified) else float("inf")) if rm[0] > rr[0]: rm = rr return rm count = int(i...
0
0
0
0
0
283
0
0
22
10a4d9d56f2cf6d284479217c6b98b329c1bf0e3
2,994
py
Python
ros/src/tl_detector/light_classification/object_detector.py
FYamazaki/CarND-Capstone
bb97ce7733af1029715e2ea9764e20a5f0cb04a5
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/object_detector.py
FYamazaki/CarND-Capstone
bb97ce7733af1029715e2ea9764e20a5f0cb04a5
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/object_detector.py
FYamazaki/CarND-Capstone
bb97ce7733af1029715e2ea9764e20a5f0cb04a5
[ "MIT" ]
null
null
null
import os # This is needed since the notebook is stored in the object_detection folder. #sys.path.append("..") #from object_detection.utils import ops as utils_ops #from object_detection.utils import label_map_util # What model to download. TOP_DIR = os.path.dirname(os.path.realpath(__file__)) #MODEL_NAME = 'ssd_mobi...
45.363636
97
0.681697
import numpy as np import os import sys import tensorflow as tf from collections import defaultdict import cv2 # This is needed since the notebook is stored in the object_detection folder. #sys.path.append("..") #from object_detection.utils import ops as utils_ops #from object_detection.utils import label_map_util # ...
0
0
0
2,079
0
0
0
-9
133
88271ee8e9061e6f7af180bb0d5f8c84aaa44eab
3,091
py
Python
scripts/arcamax.py
yasen-m/dosage
81fe088621ad335cac2a53fcbc7b9b37f49ddce2
[ "MIT" ]
null
null
null
scripts/arcamax.py
yasen-m/dosage
81fe088621ad335cac2a53fcbc7b9b37f49ddce2
[ "MIT" ]
null
null
null
scripts/arcamax.py
yasen-m/dosage
81fe088621ad335cac2a53fcbc7b9b37f49ddce2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2013-2014 Bastian Kleineidam """ Script to get arcamax comics and save the info in a JSON file for further processing. """ from __future__ import print_function import codecs import re import sys import os import requests sys.path.append(os.path.join(os.path.dirname(__file__), ".."...
31.865979
99
0.620511
#!/usr/bin/env python # Copyright (C) 2013-2014 Bastian Kleineidam """ Script to get arcamax comics and save the info in a JSON file for further processing. """ from __future__ import print_function import codecs import re import sys import os import requests sys.path.append(os.path.join(os.path.dirname(__file__), ".."...
0
0
0
0
0
0
0
0
0
71e9b3b0d6b6a0020225dadc1228e85cf26a21ec
6,831
py
Python
tensorflow_1_x/7_kaggle/learntools/python/ex6.py
amitbcp/machine_learning_with_Scikit_Learn_and_TensorFlow
37dda063e316503d53ac45f3b104a5cf1aaa4d78
[ "MIT" ]
11
2019-12-19T08:55:52.000Z
2021-10-01T13:07:13.000Z
tensorflow_1_x/7_kaggle/learntools/python/ex6.py
amitbcp/Scikit_Learn_TensorFlow_Examples
37dda063e316503d53ac45f3b104a5cf1aaa4d78
[ "MIT" ]
5
2019-10-09T01:41:19.000Z
2022-02-10T00:19:01.000Z
tensorflow_1_x/7_kaggle/learntools/python/ex6.py
amitbcp/Scikit_Learn_TensorFlow_Examples
37dda063e316503d53ac45f3b104a5cf1aaa4d78
[ "MIT" ]
7
2019-10-08T06:10:14.000Z
2020-12-01T07:49:21.000Z
import learntools.python.solns.word_search as word_search_module word_search = word_search_module.word_search import learntools.python.solns.multi_word_search as mws_module multi_word_search = mws_module.multi_word_search import learntools.python.solns.diamond as d_module diamond = d_module.diamond import learntools.p...
31.334862
86
0.555848
import itertools from learntools.core import * import learntools.python.solns.word_search as word_search_module word_search = word_search_module.word_search import learntools.python.solns.multi_word_search as mws_module multi_word_search = mws_module.multi_word_search import learntools.python.solns.diamond as d_modul...
0
0
0
5,858
0
0
0
3
271
2b470d3edac6d955d7563b20b7e71e3d01609b82
6,491
py
Python
test.py
InformaticsMatters/data-manager-api
54182d99bb5e4bd8fb6c8dc273b5a71d0b2a17f8
[ "MIT" ]
null
null
null
test.py
InformaticsMatters/data-manager-api
54182d99bb5e4bd8fb6c8dc273b5a71d0b2a17f8
[ "MIT" ]
null
null
null
test.py
InformaticsMatters/data-manager-api
54182d99bb5e4bd8fb6c8dc273b5a71d0b2a17f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python """A simple developer-centric test script. """ import os # Get configuration from the environment. # All the expected variables must be defined... API_URL: str = os.environ['SQUONK_API_URL'] KEYCLOAK_URL: str = os.environ['SQUONK_API_KEYCLOAK_URL'] KEYCLOAK_REALM: str = os.environ['SQUONK_API_KEY...
36.880682
99
0.624249
#!/usr/bin/env python """A simple developer-centric test script. """ import argparse import os import time from dm_api.dm_api import DmApi, DmApiRv # Get configuration from the environment. # All the expected variables must be defined... API_URL: str = os.environ['SQUONK_API_URL'] KEYCLOAK_URL: str = os.environ['SQUO...
0
0
0
0
0
5,814
0
3
90
532941aad19ad056730cbedd207645861d10be3b
1,190
py
Python
exercise/exercise_bonus/thread_process.py
Bizarious/python-lessons
24144f03d70d9ed52b0430d4cc2aca9dcded14a3
[ "CC-BY-4.0" ]
null
null
null
exercise/exercise_bonus/thread_process.py
Bizarious/python-lessons
24144f03d70d9ed52b0430d4cc2aca9dcded14a3
[ "CC-BY-4.0" ]
null
null
null
exercise/exercise_bonus/thread_process.py
Bizarious/python-lessons
24144f03d70d9ed52b0430d4cc2aca9dcded14a3
[ "CC-BY-4.0" ]
null
null
null
# Process einfach durch Thread erstetzen, wenn multithreading statt processing gewnscht ist if __name__ == "__main__": main(16, 80000000)
23.8
92
0.608403
from threading import Thread from multiprocessing import Process, Queue from time import time from numpy import array_split # Process einfach durch Thread erstetzen, wenn multithreading statt processing gewünscht ist class Worker(Process): def __init__(self, working_list: list[int], queue: Queue): super()...
2
0
0
315
0
558
0
36
133
a170e4fa7fd60629c749d5bb3f8aed2cdb44eebf
1,575
py
Python
autoencoders/vae_test.py
Loptt/pong-autoencoder
c5123bb2466f644f7513d807044e11a4a17aae22
[ "MIT" ]
null
null
null
autoencoders/vae_test.py
Loptt/pong-autoencoder
c5123bb2466f644f7513d807044e11a4a17aae22
[ "MIT" ]
1
2021-03-19T03:06:46.000Z
2021-08-02T13:29:05.000Z
autoencoders/vae_test.py
Loptt/pong-autoencoder
c5123bb2466f644f7513d807044e11a4a17aae22
[ "MIT" ]
null
null
null
from autoencoders.VAE import VAEBallTrack from keras.preprocessing.image import ImageDataGenerator DATASET_SIZE = 11862 INPUT_SHAPE = (40, 40, 1) datagen = ImageDataGenerator( rescale=1./255, validation_split=0.2, horizontal_flip=True, vertical_flip=True ) # Allow horizontal flip as a mirror image of ...
37.5
80
0.464127
from autoencoders.VAE import VAE, VAEBallTrack from keras.preprocessing.image import ImageDataGenerator DATASET_SIZE = 11862 INPUT_SHAPE = (40, 40, 1) datagen = ImageDataGenerator( rescale=1./255, validation_split=0.2, horizontal_flip=True, vertical_flip=True ) # Allow horizontal flip as a mirror imag...
0
0
0
0
0
0
0
5
0
5bb7b13e9586d639568071517cd8cf3338699400
2,641
py
Python
pilot/vehicle_bridge/zmq_device_pub.py
yanbarurobotics/PythonPilot
eb07c620320c90ba85941041d08678a6142f988f
[ "Apache-2.0" ]
129
2019-05-21T09:15:12.000Z
2022-03-03T15:14:32.000Z
pilot/vehicle_bridge/zmq_device_pub.py
yanbarurobotics/PythonPilot
eb07c620320c90ba85941041d08678a6142f988f
[ "Apache-2.0" ]
1
2022-03-28T04:21:54.000Z
2022-03-28T04:21:54.000Z
pilot/vehicle_bridge/zmq_device_pub.py
yanbarurobotics/PythonPilot
eb07c620320c90ba85941041d08678a6142f988f
[ "Apache-2.0" ]
31
2019-05-21T23:31:24.000Z
2022-03-21T19:22:40.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import sys import time import yaml sys.path.append(os.path.join(os.path.dirname('__file__'), '..')) if __name__ == '__main__': # Load config ymlfile = open('../../vehicle/vehicle_config.yml') cfg = yaml.load(ymlfile) ymlfile.close() pub_device...
29.674157
85
0.520636
#!/usr/bin/python3 # -*- coding: utf-8 -*- import numpy as np import os import struct import sys import threading import time import yaml import zmq sys.path.append(os.path.join(os.path.dirname('__file__'), '..')) from common.pilot_gloval_variable import MPVariable class PubDevice(): def __init__(self, cfg): ...
0
0
0
2,044
0
0
0
3
135
db2c5b197f719a8eaaa2392a9bc811f4cdcb78cc
1,710
py
Python
deep_gw_pe_followup/restricted_prior/multiproc/mpi_prior_calc.py
avivajpeyi/gw_pe_judge
151d597fdd6128a278e1d4cff65d3e6776e1fa83
[ "MIT" ]
null
null
null
deep_gw_pe_followup/restricted_prior/multiproc/mpi_prior_calc.py
avivajpeyi/gw_pe_judge
151d597fdd6128a278e1d4cff65d3e6776e1fa83
[ "MIT" ]
null
null
null
deep_gw_pe_followup/restricted_prior/multiproc/mpi_prior_calc.py
avivajpeyi/gw_pe_judge
151d597fdd6128a278e1d4cff65d3e6776e1fa83
[ "MIT" ]
null
null
null
from mpi4py import MPI comm = MPI.COMM_WORLD pe = comm.Get_rank() # identity of this process (process element, sometimes called rank) nprocs = comm.Get_size() # number of processes root = nprocs - 1 # special process responsible for administrative work
32.884615
89
0.684211
import numpy as np from mpi4py import MPI from tqdm import tqdm from ..prob_calculators import get_p_cos1_given_xeff_q_a1, get_p_a1_given_xeff_q comm = MPI.COMM_WORLD pe = comm.Get_rank() # identity of this process (process element, sometimes called rank) nprocs = comm.Get_size() # number of processes root = nprocs...
0
0
0
0
0
1,235
0
56
159
e21aca6a8833721cc644eea55ab7b119e19120ff
3,009
py
Python
Models/miyazaki.py
ai-se/george
cc4f388edaae3ebcb7ac34e964b38884553cb9b1
[ "MIT" ]
null
null
null
Models/miyazaki.py
ai-se/george
cc4f388edaae3ebcb7ac34e964b38884553cb9b1
[ "MIT" ]
19
2015-01-10T00:14:52.000Z
2017-04-24T20:31:00.000Z
Models/miyazaki.py
ai-se/george
cc4f388edaae3ebcb7ac34e964b38884553cb9b1
[ "MIT" ]
null
null
null
""" # https://code.google.com/p/promisedata/source/browse/#svn%2Ftrunk%2Feffort%2Falbrecht Standard header: """ from __future__ import division,print_function import sys sys.dont_write_bytecode = True """ @attribute KLOC numeric @attribute SCRN numeric @attribute FORM numeric @attribute FILE numeric @attribute ESCRN...
31.673684
86
0.552011
""" # https://code.google.com/p/promisedata/source/browse/#svn%2Ftrunk%2Feffort%2Falbrecht Standard header: """ from __future__ import division,print_function import sys sys.dont_write_bytecode = True from lib import * """ @attribute KLOC numeric @attribute SCRN numeric @attribute FORM numeric @attribute FILE numer...
0
0
0
0
0
2,540
0
-3
68
f06d61ee37e12b0235d5a91ec63db16c7e5d6674
1,359
py
Python
setup.py
mabel-dev/waddles
959653ac7a66f1035e90085fc036fe7b0a1e57db
[ "Apache-2.0" ]
null
null
null
setup.py
mabel-dev/waddles
959653ac7a66f1035e90085fc036fe7b0a1e57db
[ "Apache-2.0" ]
null
null
null
setup.py
mabel-dev/waddles
959653ac7a66f1035e90085fc036fe7b0a1e57db
[ "Apache-2.0" ]
null
null
null
import numpy as np from Cython.Build import cythonize from setuptools import Extension, find_packages, setup with open("opteryx/version.py", "r") as v: vers = v.read() exec(vers) # nosec with open("README.md", "r") as rm: long_description = rm.read() try: with open("requirements.txt") as f: requ...
29.543478
87
0.667403
import numpy as np from Cython.Build import cythonize from setuptools import Extension, find_packages, setup with open("opteryx/version.py", "r") as v: vers = v.read() exec(vers) # nosec with open("README.md", "r") as rm: long_description = rm.read() try: with open("requirements.txt") as f: requ...
0
0
0
0
0
0
0
0
0
b846773e7be4dd05414d3a546b08e4fe528fe2fe
5,045
py
Python
Source/JackFramework/SysBasic/argparser.py
Archaic-Atom/JackFramework
e847d0bafe335ee33caf174676d12ad3c28011a6
[ "MIT" ]
13
2021-06-20T13:42:04.000Z
2021-12-17T05:20:56.000Z
Source/JackFramework/SysBasic/argparser.py
Archaic-Atom/JackFramework
e847d0bafe335ee33caf174676d12ad3c28011a6
[ "MIT" ]
81
2021-06-19T08:54:48.000Z
2022-03-18T07:34:17.000Z
Source/JackFramework/SysBasic/argparser.py
Archaic-Atom/JackFramework
e847d0bafe335ee33caf174676d12ad3c28011a6
[ "MIT" ]
3
2021-12-13T09:22:23.000Z
2022-02-16T09:42:28.000Z
# -*- coding: utf-8 -*- # Parse the train model's para
47.59434
100
0.587116
# -*- coding: utf-8 -*- import argparse import JackFramework.SysBasic.define as sysdefine # Parse the train model's para class ArgsParser(object): """docstring for ArgsParser""" def __init__(self): super().__init__() def parse_args(self, info: str, user_define_func: object = None) -> object: ...
0
3,994
0
906
0
0
0
22
66
1fb582d645a5c844e438c94c05d8cb42e6ec4024
667
py
Python
web_server/ann_config.py
linsalrob/PhANNs
ba96a57226ea811fd5a284170367547cd35f9c03
[ "MIT" ]
10
2020-07-16T16:26:23.000Z
2022-02-25T13:59:16.000Z
web_server/ann_config.py
linsalrob/PhANNs
ba96a57226ea811fd5a284170367547cd35f9c03
[ "MIT" ]
8
2020-08-26T16:08:39.000Z
2022-02-23T20:36:25.000Z
web_server/ann_config.py
linsalrob/PhANNs
ba96a57226ea811fd5a284170367547cd35f9c03
[ "MIT" ]
3
2019-12-11T00:36:57.000Z
2021-07-23T01:00:45.000Z
import os ### chage the base path. #prefix='/phanns' prefix='' path = os.path.abspath(__file__) root_dir = os.path.dirname(path) #fasta_dir = os.path.join(root_dir, 'fasta') model_dir = os.path.join(root_dir, 'deca_model') fasta_dir = os.path.join(root_dir, 'fasta') #model_dir = os.path.join(root_dir, 'model_under_va...
21.516129
73
0.734633
import os import pickle from tensorflow.keras.models import load_model import tensorflow as tf ### chage the base path. #prefix='/phanns' prefix='' path = os.path.abspath(__file__) root_dir = os.path.dirname(path) #fasta_dir = os.path.join(root_dir, 'fasta') model_dir = os.path.join(root_dir, 'deca_model') fasta_dir ...
0
0
0
0
0
0
0
19
66
c086e453a920a54da1b07c1d4d19f99d51896f78
9,502
py
Python
torch2coreml/_torch_converter.py
jookovjook/torch2coreml
ee461ba8fd45ac49f96095f8a76aa66723854cd3
[ "MIT" ]
391
2017-08-29T19:07:13.000Z
2022-01-31T18:51:58.000Z
torch2coreml/_torch_converter.py
jookovjook/torch2coreml
ee461ba8fd45ac49f96095f8a76aa66723854cd3
[ "MIT" ]
26
2017-09-01T22:47:53.000Z
2018-08-22T16:40:19.000Z
torch2coreml/_torch_converter.py
jookovjook/torch2coreml
ee461ba8fd45ac49f96095f8a76aa66723854cd3
[ "MIT" ]
53
2017-08-29T20:14:03.000Z
2021-03-08T13:22:08.000Z
import torch from torch.utils.serialization import load_lua from coremltools.models.neural_network import NeuralNetworkBuilder from coremltools.models import MLModel, datatypes import _layers from _layers import _get_layer_converter_fn from _utils import _gen_layer_name _DEPROCESS_LAYER_NAME = 'deprocess_image' ...
32.210169
177
0.616712
import numpy as np import torch from torch.utils.serialization import load_lua from coremltools.models.neural_network import NeuralNetworkBuilder from coremltools.models import MLModel, datatypes import _layers from _layers import _get_layer_converter_fn from _utils import _gen_layer_name from _utils import _conve...
0
0
0
0
0
2,176
0
30
90
91cd4b0a02ca18d81e8343d914836eb64f641fde
116
py
Python
config_speech/elasticsearch_dsl_config.py
shirosweets/vosk-speech-to-text
4667b107dd3ba174435e8deab1c122d83381e902
[ "MIT" ]
1
2021-04-16T01:49:39.000Z
2021-04-16T01:49:39.000Z
config_speech/elasticsearch_dsl_config.py
shirosweets/vosk-speech-to-text
4667b107dd3ba174435e8deab1c122d83381e902
[ "MIT" ]
null
null
null
config_speech/elasticsearch_dsl_config.py
shirosweets/vosk-speech-to-text
4667b107dd3ba174435e8deab1c122d83381e902
[ "MIT" ]
null
null
null
# Configuracin necesaria para elasticsearch INDEX_ELASTIC = "parse-speech" HOST_ELASTIC = "http://localhost:8000"
23.2
44
0.793103
# Configuración necesaria para elasticsearch INDEX_ELASTIC = "parse-speech" HOST_ELASTIC = "http://localhost:8000"
2
0
0
0
0
0
0
0
0
10015d5d779ee19ba672b8bdb042838be9332335
28,793
py
Python
scripts/python/lib/switch_common.py
purushammi/power-up
104a984a6ed735278d732926ffb5bed019e37e98
[ "Apache-2.0" ]
null
null
null
scripts/python/lib/switch_common.py
purushammi/power-up
104a984a6ed735278d732926ffb5bed019e37e98
[ "Apache-2.0" ]
null
null
null
scripts/python/lib/switch_common.py
purushammi/power-up
104a984a6ed735278d732926ffb5bed019e37e98
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 IBM Corp. # # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
40.26993
84
0.555934
# Copyright 2019 IBM Corp. # # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
0
2,596
0
25,084
0
0
0
44
287
5456d85fd0b582923d24087549af7f94a42c21b9
2,130
py
Python
TextParseDataModule.py
KamWithK/PyParquetLoaders
09f8529a8c9b6854f6965346cced1169b83ba96b
[ "MIT" ]
6
2020-09-22T13:50:37.000Z
2021-11-16T12:24:42.000Z
TextParseDataModule.py
KamWithK/PyParquetLoaders
09f8529a8c9b6854f6965346cced1169b83ba96b
[ "MIT" ]
1
2021-07-07T20:01:27.000Z
2021-07-10T08:05:12.000Z
TextParseDataModule.py
KamWithK/PyParquetLoaders
09f8529a8c9b6854f6965346cced1169b83ba96b
[ "MIT" ]
null
null
null
# import pandas as pd # from petastorm.pytorch import DataLoader # class TextParseDataModule(PetastormDataModule): # def __init__(self, train_path, val_path, batch_size=16, num_minibatchs=8, num_workers=4, text_column="", target_column="target"): # # Tokenised columns replace text based ones # toke...
53.25
180
0.752582
import numpy as np # import pandas as pd from PetastormDataLoaders.PetastormDataModule import PetastormDataModule from PetastormDataLoaders.PetastormDataLoader import TransformersDataLoader # from petastorm.pytorch import DataLoader from petastorm.transform import TransformSpec from transformers import AutoTokenizer ...
0
0
0
713
0
0
0
143
134
b3183798aca2ae8ec311a56c354081924caaabb7
5,023
py
Python
example/example2.py
mubaoinam/fragpy
2464909d3b407cc225d270051b56342db555f8eb
[ "Apache-2.0" ]
null
null
null
example/example2.py
mubaoinam/fragpy
2464909d3b407cc225d270051b56342db555f8eb
[ "Apache-2.0" ]
null
null
null
example/example2.py
mubaoinam/fragpy
2464909d3b407cc225d270051b56342db555f8eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from fragpy.min import optf from fragpy.opt_param import param ''' RUN THIS PYHON SCRIPT The following example corresponds to example2.inp to be run as a python scrip rather than with fragpy/fragpy. ''' coord = [ ['N1', -0.42041893 , -0.13177839 , -1.10917804,1 ], ['H1', -1.40858582 , ...
49.245098
54
0.564404
#!/usr/bin/env python from fragpy.min import optf from fragpy.opt_param import param ''' RUN THIS PYHON SCRIPT The following example corresponds to example2.inp to be run as a python scrip rather than with fragpy/fragpy. ''' coord = [ ['N1', -0.42041893 , -0.13177839 , -1.10917804,1 ], ['H1', -1.40858582 , ...
0
0
0
0
0
0
0
0
0
62ddf0fea05b49f42076da650633e0ef11347fc3
7,098
py
Python
samples/aci-attach-epgs-with-contract.py
richardstrnad/acitoolkit
7e559dbb0b2d22ecf980733d6f8b7c894ecfdbde
[ "Apache-2.0" ]
351
2015-01-15T14:44:36.000Z
2022-03-27T17:06:52.000Z
samples/aci-attach-epgs-with-contract.py
richardstrnad/acitoolkit
7e559dbb0b2d22ecf980733d6f8b7c894ecfdbde
[ "Apache-2.0" ]
215
2015-01-11T07:05:12.000Z
2021-12-12T15:18:10.000Z
samples/aci-attach-epgs-with-contract.py
richardstrnad/acitoolkit
7e559dbb0b2d22ecf980733d6f8b7c894ecfdbde
[ "Apache-2.0" ]
324
2015-01-07T10:03:18.000Z
2022-02-23T21:48:13.000Z
#!/usr/bin/env python ################################################################################ # _ ____ ___ _____ _ _ _ _ # # / \ / ___|_ _| |_ _|__ ___ | | | _(_) |_ # # / _ \| | | | | |/ _ \ / _ \| | |/...
47.32
97
0.486616
#!/usr/bin/env python ################################################################################ # _ ____ ___ _____ _ _ _ _ # # / \ / ___|_ _| |_ _|__ ___ | | | _(_) |_ # # / _ \| | | | | |/ _ \ / _ \| | |/...
0
0
0
0
0
0
0
24
0
2ea0b25e1493e9de9b35c7b35bcd8bdfe9144de9
403
py
Python
python/setup.py
Morgul/nodepy
b0f94bff64230e8b802b7c69c1cccba67eb96f28
[ "MIT" ]
5
2015-03-31T03:33:41.000Z
2021-02-02T07:15:40.000Z
python/setup.py
Morgul/nodepy
b0f94bff64230e8b802b7c69c1cccba67eb96f28
[ "MIT" ]
null
null
null
python/setup.py
Morgul/nodepy
b0f94bff64230e8b802b7c69c1cccba67eb96f28
[ "MIT" ]
2
2015-01-18T17:35:19.000Z
2016-12-15T05:55:42.000Z
#!/usr/bin/env python from distutils.core import setup setup(name='pynode', version='0.1.0', description='A python module for building a python task worker run by node.js, providing two-way communication based on socket.io.', author='Christopher S. Case', author_email='chris.case@g33xnexus.com...
31
138
0.674938
#!/usr/bin/env python from distutils.core import setup setup(name='pynode', version='0.1.0', description='A python module for building a python task worker run by node.js, providing two-way communication based on socket.io.', author='Christopher S. Case', author_email='chris.case@g33xnexus.com...
0
0
0
0
0
0
0
0
0
b1993bfb86ba491ad37eece578bf3077c4754bc3
298
py
Python
scout/properties/urls.py
astonecutter/scout
e2386a30b4c8c222aca3af1c6f3fa3ef94d89ad3
[ "MIT" ]
null
null
null
scout/properties/urls.py
astonecutter/scout
e2386a30b4c8c222aca3af1c6f3fa3ef94d89ad3
[ "MIT" ]
null
null
null
scout/properties/urls.py
astonecutter/scout
e2386a30b4c8c222aca3af1c6f3fa3ef94d89ad3
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from scout.properties import views urlpatterns = patterns( '', url(r'^$', views.property_list_view, name='list'), url(r'^add/$', views.property_add_view, name='add'), url(r'^edit/(?P<pk>\d+)/$', views.property_edit_view, name='edit'), )
27.090909
71
0.66443
from django.conf.urls import patterns, url from scout.properties import views urlpatterns = patterns( '', url(r'^$', views.property_list_view, name='list'), url(r'^add/$', views.property_add_view, name='add'), url(r'^edit/(?P<pk>\d+)/$', views.property_edit_view, name='edit'), )
0
0
0
0
0
0
0
0
0
f3307e2de706d6d3e085bc70bb56e08971b87f44
1,739
py
Python
bird.py
MowHogz/Floppy-Bird
faca5e0352598e563f2a13c17ab35ab115b25c27
[ "MIT" ]
null
null
null
bird.py
MowHogz/Floppy-Bird
faca5e0352598e563f2a13c17ab35ab115b25c27
[ "MIT" ]
null
null
null
bird.py
MowHogz/Floppy-Bird
faca5e0352598e563f2a13c17ab35ab115b25c27
[ "MIT" ]
null
null
null
#.keys = the list of keys that are being pressed (since the last processed frame) #.move - moves the birdy safely (and returns True if succeeded) #.sets the next action for the bird (to jump or to fall, + indicators for how much to jump/fall) #.gravity makes birdy fall/jump based on .jump and .fall indicators left move...
27.603175
96
0.508913
from shape import shape #.keys = the list of keys that are being pressed (since the last processed frame) #.move - moves the birdy safely (and returns True if succeeded) #.sets the next action for the bird (to jump or to fall, + indicators for how much to jump/fall) #.gravity makes birdy fall/jump based on .jump and ....
0
0
0
1,298
0
0
0
2
45
774ae4c141a5ce8c20dc21517950a35f7b2efded
2,455
py
Python
third_party/rlkit_library/rlkit/torch/networks/image_state.py
google-research/DBAP-algorithm
545a4e780f9d9d480c96b67e7a8ae590a983db6b
[ "Apache-2.0" ]
3
2021-08-10T00:00:19.000Z
2021-11-05T15:28:25.000Z
third_party/rlkit_library/rlkit/torch/networks/image_state.py
google-research/DBAP-algorithm
545a4e780f9d9d480c96b67e7a8ae590a983db6b
[ "Apache-2.0" ]
null
null
null
third_party/rlkit_library/rlkit/torch/networks/image_state.py
google-research/DBAP-algorithm
545a4e780f9d9d480c96b67e7a8ae590a983db6b
[ "Apache-2.0" ]
2
2021-11-05T15:28:15.000Z
2022-01-16T12:00:06.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.474359
74
0.648065
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
0
0
0
1,738
0
0
0
47
91
f46ed1e1bfbdd77679bdaae4fc06ab676459a5ba
7,923
py
Python
classification/example.py
NEWPLAN/nvcaffe-0.17.3
7b8e4fdef8216d8497f6d71df465e881e47e009b
[ "BSD-2-Clause" ]
null
null
null
classification/example.py
NEWPLAN/nvcaffe-0.17.3
7b8e4fdef8216d8497f6d71df465e881e47e009b
[ "BSD-2-Clause" ]
null
null
null
classification/example.py
NEWPLAN/nvcaffe-0.17.3
7b8e4fdef8216d8497f6d71df465e881e47e009b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. """ Classify an image using individual model files Use this script as an example to build your own tool """ from caffe.proto import caffe_pb2 import caffe import argparse import os import time from google.protobuf import tex...
29.563433
98
0.60886
#!/usr/bin/env python2 # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. """ Classify an image using individual model files Use this script as an example to build your own tool """ from caffe.proto import caffe_pb2 import caffe import argparse import os import time import pydevd from google.proto...
0
0
0
0
0
0
0
-8
22
c646790c472fea2e18d88b86afe0f76ba28c8a63
7,796
py
Python
coronavirus/python_scripts/utils.py
jbarton311/coronavirus-analysis
dd128f4eba01f1c274d338b6842f0c7069b0f30d
[ "MIT" ]
14
2020-03-22T14:24:36.000Z
2020-11-25T04:46:42.000Z
coronavirus/python_scripts/utils.py
jbarton311/coronavirus-analysis
dd128f4eba01f1c274d338b6842f0c7069b0f30d
[ "MIT" ]
1
2020-03-24T14:32:25.000Z
2020-03-25T12:44:26.000Z
coronavirus/python_scripts/utils.py
jbarton311/coronavirus-analysis
dd128f4eba01f1c274d338b6842f0c7069b0f30d
[ "MIT" ]
2
2020-03-29T02:11:56.000Z
2021-11-05T08:36:14.000Z
import os from datetime import datetime import logging import requests import json import pandas as pd from pycountry import countries from git import Repo from config_corona import ConfigCorona # Set LOGGER LOGGER = logging.getLogger() LOGGER.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s -...
32.214876
107
0.638533
import os from datetime import datetime import logging import requests import json import pandas as pd from pycountry import countries from git import Repo from config_corona import ConfigCorona # Set LOGGER LOGGER = logging.getLogger() LOGGER.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s -...
0
0
0
1,631
0
0
0
0
23
4d0ded0f739b6c1a8995a5255bcc078df1121b85
274
py
Python
main/SteppableDemos/SteadyStateDiffusionSolver/diffusion_steady_state_ext_potential_3D/Simulation/diffusion_steady_state_ext_potential_3D.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/SteppableDemos/SteadyStateDiffusionSolver/diffusion_steady_state_ext_potential_3D/Simulation/diffusion_steady_state_ext_potential_3D.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/SteppableDemos/SteadyStateDiffusionSolver/diffusion_steady_state_ext_potential_3D/Simulation/diffusion_steady_state_ext_potential_3D.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
1
2021-02-26T21:50:29.000Z
2021-02-26T21:50:29.000Z
from cc3d import CompuCellSetup from diffusion_steady_state_ext_potential_3DSteppables import diffusion_steady_state_ext_potential_3DSteppable CompuCellSetup.register_steppable(steppable=diffusion_steady_state_ext_potential_3DSteppable(frequency=1)) CompuCellSetup.run()
34.25
110
0.916058
from cc3d import CompuCellSetup from diffusion_steady_state_ext_potential_3DSteppables import diffusion_steady_state_ext_potential_3DSteppable CompuCellSetup.register_steppable(steppable=diffusion_steady_state_ext_potential_3DSteppable(frequency=1)) CompuCellSetup.run()
0
0
0
0
0
0
0
0
0
ae54c086d8c3243c960d1019367a2e9659fecd17
790
py
Python
3-semester/programming/indepworkinvar2-3.py
Rakleed/rgpu
47ab2a05a8398c15be7e41e9e98fafe5c2a36627
[ "MIT" ]
null
null
null
3-semester/programming/indepworkinvar2-3.py
Rakleed/rgpu
47ab2a05a8398c15be7e41e9e98fafe5c2a36627
[ "MIT" ]
null
null
null
3-semester/programming/indepworkinvar2-3.py
Rakleed/rgpu
47ab2a05a8398c15be7e41e9e98fafe5c2a36627
[ "MIT" ]
null
null
null
""" : , 1, 2. : , - , , n = 22, ( ). . , . """ main()
27.241379
74
0.651899
""" Автор: Моисеенко Павел, группа № 1, подгруппа № 2. Задание: разработайте скрипт с функцией, которая для ряда Фибо- наччи, где количество элементов, n = 22, возвращает подмножество значений или единственное значение (по вариантам). Для нахождения элемента требуется использовать слайсы. Формирова...
624
0
0
0
0
311
0
0
46
cb075b344f4e256bc8f46377137b079b70ec5c2d
1,154
py
Python
leetcode32.py
aquadrop/leetcode
683599bcb330687cdc33ebc38aeb453f86f5edd7
[ "MIT" ]
null
null
null
leetcode32.py
aquadrop/leetcode
683599bcb330687cdc33ebc38aeb453f86f5edd7
[ "MIT" ]
null
null
null
leetcode32.py
aquadrop/leetcode
683599bcb330687cdc33ebc38aeb453f86f5edd7
[ "MIT" ]
null
null
null
if __name__ == '__main__': S = Solution() a = S.longestValidParentheses(")(((((()())()()))()(()))(") print(a)
26.227273
62
0.322357
class Solution: def longestValidParentheses(self, s): """ :type s: str :rtype: int """ stack = [] index_stack = [] if len(s) <= 1: return 0 dp = [0] * len(s) for i in range(len(s)): if s[i] == '(': dp[i] ...
0
0
0
1,007
0
0
0
0
22
7c6fca7a23f3cb3d368b86b7282e2ba40d47e44c
12,836
py
Python
act/discovery/get_asos.py
rcjackson/ACT
c57fb55094b142bbbef63e7069d4024049996139
[ "BSD-3-Clause" ]
1
2019-09-13T16:10:37.000Z
2019-09-13T16:10:37.000Z
act/discovery/get_asos.py
cgodine/ACT
af9f0edb76e6f16e2764d5441a4bf4d7fb3a9f39
[ "BSD-3-Clause" ]
null
null
null
act/discovery/get_asos.py
cgodine/ACT
af9f0edb76e6f16e2764d5441a4bf4d7fb3a9f39
[ "BSD-3-Clause" ]
null
null
null
import json import pandas as pd import numpy as np import warnings from six import StringIO try: from urllib.request import urlopen except ImportError: from urllib2 import urlopen def get_asos(time_window, lat_range=None, lon_range=None, station=None): """ Returns all of the station obs...
45.842857
100
0.565519
import xarray as xr import json import time import pandas as pd import numpy as np import warnings from six import StringIO from datetime import datetime try: from urllib.request import urlopen except ImportError: from urllib2 import urlopen def get_asos(time_window, lat_range=None, lon_range=N...
0
0
0
0
0
505
0
-4
123
dae712f4d236f91024fef7cf2d9c5e8f96104fca
727
py
Python
AnalizeBonusViagem/Mundo3/exmundo3/ex074Maior e menor valores em Tupla.py
D-Wolter/Pycharm-Projects
aeb3a2464cf6c6578e5b47b13b54ff3ebd6e52dd
[ "MIT" ]
null
null
null
AnalizeBonusViagem/Mundo3/exmundo3/ex074Maior e menor valores em Tupla.py
D-Wolter/Pycharm-Projects
aeb3a2464cf6c6578e5b47b13b54ff3ebd6e52dd
[ "MIT" ]
null
null
null
AnalizeBonusViagem/Mundo3/exmundo3/ex074Maior e menor valores em Tupla.py
D-Wolter/Pycharm-Projects
aeb3a2464cf6c6578e5b47b13b54ff3ebd6e52dd
[ "MIT" ]
null
null
null
# # from random import randint # numeros = [] # cont = 0 # maior = 1 # menor = 99 # while cont <= 4: # cont += 1 # gerar = randint(1,99) # print(gerar) # if gerar < menor: # menor = gerar # elif gerar > maior: # maior = gerar # gerar = str(gerar) # numeros.append(gerar) # pri...
23.451613
90
0.592847
# # from random import randint # numeros = [] # cont = 0 # maior = 1 # menor = 99 # while cont <= 4: # cont += 1 # gerar = randint(1,99) # print(gerar) # if gerar < menor: # menor = gerar # elif gerar > maior: # maior = gerar # gerar = str(gerar) # numeros.append(gerar) # pri...
0
0
0
0
0
0
0
0
0
ce094206baa9230d6acff87a78b99561c95795d5
47,654
py
Python
internals/bin/render_figures.py
Weeks-UNC/shapemapper2
e51a311c5219122307e250165eea6219a6a16019
[ "MIT" ]
16
2019-06-02T20:20:14.000Z
2022-02-14T21:02:23.000Z
internals/bin/render_figures.py
uaauaguga/shapemapper2
e51a311c5219122307e250165eea6219a6a16019
[ "MIT" ]
28
2018-10-18T14:59:54.000Z
2022-02-21T14:29:30.000Z
internals/bin/render_figures.py
uaauaguga/shapemapper2
e51a311c5219122307e250165eea6219a6a16019
[ "MIT" ]
10
2019-01-18T00:07:06.000Z
2022-02-23T16:34:43.000Z
#!/usr/bin/env python3 """ Given: summary tab delimited file Render: - simple SHAPE profile - shape profile with error bars - modified, untreated, denatured mutation rate profiles and stderr shading - depths for each sample FIXME: get log-scaled depths working again - (above profiles should only be rendered for ...
38.648824
152
0.605301
#!/usr/bin/env python3 """ Given: summary tab delimited file Render: - simple SHAPE profile - shape profile with error bars - modified, untreated, denatured mutation rate profiles and stderr shading - depths for each sample FIXME: get log-scaled depths working again - (above profiles should only be rendered for ...
0
0
0
429
0
39,849
0
66
369
2ca39baf40570d39fa0671bb1b73b5e970d3dbcf
960
py
Python
buildin_modules/configparser_sample/sample.py
Mason-Lin/python_playground
f6d3f194d48c94d43c0e416baa249755f4388bc9
[ "MIT" ]
null
null
null
buildin_modules/configparser_sample/sample.py
Mason-Lin/python_playground
f6d3f194d48c94d43c0e416baa249755f4388bc9
[ "MIT" ]
4
2020-09-18T11:49:14.000Z
2021-07-13T11:20:47.000Z
buildin_modules/configparser_sample/sample.py
Mason-Lin/python_playground
f6d3f194d48c94d43c0e416baa249755f4388bc9
[ "MIT" ]
null
null
null
from configparser import ConfigParser from pathlib import Path cfg = ConfigParser() cfg.read('myapp.ini') # same, get int assert int(cfg['http']['port']) == cfg['http'].getint('port') # direct get from section output_filename = Path(cfg['default']['output'], 'my_output.html') print(output_filename, cfg['http'].get('...
25.945946
66
0.725
from configparser import ConfigParser from pathlib import Path cfg = ConfigParser() cfg.read('myapp.ini') # same, get int assert int(cfg['http']['port']) == cfg['http'].getint('port') # direct get from section output_filename = Path(cfg['default']['output'], 'my_output.html') print(output_filename, cfg['http'].get('...
0
0
0
0
0
0
0
0
0
4af91851070ff045fea934d3097a001cf8f487d4
3,467
py
Python
vmraid/website/doctype/web_template/test_web_template.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/website/doctype/web_template/test_web_template.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/website/doctype/web_template/test_web_template.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, VMRaid Technologies and Contributors # See license.txt from __future__ import unicode_literals
29.381356
83
0.659071
# -*- coding: utf-8 -*- # Copyright (c) 2020, VMRaid Technologies and Contributors # See license.txt from __future__ import unicode_literals import vmraid import unittest from bs4 import BeautifulSoup from vmraid.utils import set_request from vmraid.website.render import render class TestWebTemplate(unittest.TestCas...
0
0
0
3,163
0
0
0
28
134
5f602141ab4446bc88d0e36303eda450da359688
272
py
Python
easy/47_set_dis_rem_pop.py
UltiRequiem/hacker-rank-python
bcc6a467dd2a1f90cf61c1d6b049f566f5ffabe1
[ "MIT" ]
4
2021-08-02T21:34:38.000Z
2021-09-24T03:26:33.000Z
easy/47_set_dis_rem_pop.py
UltiRequiem/hacker-rank-python
bcc6a467dd2a1f90cf61c1d6b049f566f5ffabe1
[ "MIT" ]
null
null
null
easy/47_set_dis_rem_pop.py
UltiRequiem/hacker-rank-python
bcc6a467dd2a1f90cf61c1d6b049f566f5ffabe1
[ "MIT" ]
3
2021-08-02T21:34:39.000Z
2021-08-02T21:37:16.000Z
if __name__ == "__main__": print(main(int(input())))
17
46
0.522059
def main(n: int) -> int: s = set(map(int, input().split())) for _ in range(int(input())): c, *args = map(str, input().split()) getattr(s, c)(*(int(x) for x in args)) return sum(s) if __name__ == "__main__": print(main(int(input())))
0
0
0
0
0
191
0
0
22