hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
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
125
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
125
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.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
966e8b218a834a8d1db1b95c1f7ac443390bd82c
376
py
Python
setup.py
FurtiveFox/fchat_mod
290d19da97305938cf63b472e5e859f071fceb4d
[ "MIT" ]
null
null
null
setup.py
FurtiveFox/fchat_mod
290d19da97305938cf63b472e5e859f071fceb4d
[ "MIT" ]
null
null
null
setup.py
FurtiveFox/fchat_mod
290d19da97305938cf63b472e5e859f071fceb4d
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='fchat', version='0.0', packages=find_packages(exclude=['test']), license='MIT', description='A python based f-chat client', long_description=open('README.txt').read(), install_requires=['requests'], url='https://github.com', a...
25.066667
47
0.667553
from setuptools import setup, find_packages setup( name='fchat', version='0.0', packages=find_packages(exclude=['test']), license='MIT', description='A python based f-chat client', long_description=open('README.txt').read(), install_requires=['requests'], url='https://github.com', a...
0
0
0
2d630f1f765b05278111f5ed5e7145307baea9ac
2,230
py
Python
synth/common/top.py
pervasivesolutions/synth
7b00f14dffc2630acd2743d0d5cf9f7c1627b067
[ "MIT" ]
2
2021-03-15T18:02:46.000Z
2021-12-09T20:54:25.000Z
synth/common/top.py
pervasivesolutions/synth
7b00f14dffc2630acd2743d0d5cf9f7c1627b067
[ "MIT" ]
2
2017-04-18T08:41:49.000Z
2017-10-04T15:13:06.000Z
synth/common/top.py
pervasivesolutions/synth
7b00f14dffc2630acd2743d0d5cf9f7c1627b067
[ "MIT" ]
3
2018-02-06T17:07:06.000Z
2020-01-27T17:05:11.000Z
# "TOP" means the last-known value of each property of each device. # One use for this is so that we can set the type of each property explicitly after bulk-uploading to DevicePilot # NOTE: Any property can occasionally have a value of None (null), from which the type can't be inferred. So we need to explicitly exclude...
46.458333
163
0.613901
# "TOP" means the last-known value of each property of each device. # One use for this is so that we can set the type of each property explicitly after bulk-uploading to DevicePilot # NOTE: Any property can occasionally have a value of None (null), from which the type can't be inferred. So we need to explicitly exclude...
322
1,538
23
dd57a5e4ebb6589096ee507af5c6f02d8724a13d
1,098
py
Python
images2video.py
bingai/PackNet-SfM
d5ae24a96bf2ca5dbe70b0ea30d627001f4cd83a
[ "MIT" ]
1
2020-10-08T02:51:39.000Z
2020-10-08T02:51:39.000Z
images2video.py
bingai/PackNet-SfM
d5ae24a96bf2ca5dbe70b0ea30d627001f4cd83a
[ "MIT" ]
null
null
null
images2video.py
bingai/PackNet-SfM
d5ae24a96bf2ca5dbe70b0ea30d627001f4cd83a
[ "MIT" ]
null
null
null
# https://theailearner.com/2018/10/15/creating-video-from-images-using-opencv-python/ # Steps: # Fetch all the image file names using glob # Read all the images using cv2.imread() # Store all the images into a list # Create a VideoWriter object using cv2.VideoWriter() # Save the images to video file using cv2.Vide...
28.153846
99
0.718579
# https://theailearner.com/2018/10/15/creating-video-from-images-using-opencv-python/ # Steps: # Fetch all the image file names using glob # Read all the images using cv2.imread() # Store all the images into a list # Create a VideoWriter object using cv2.VideoWriter() # Save the images to video file using cv2.Vide...
94
0
22
f8ecf62b233ecee90703bbf8f3c35df6d06ebb6a
989
py
Python
py_reportit/shared/config/db.py
fedus/py_reportit
46422cabb652571d8cce6c8e91a229009dcca141
[ "MIT" ]
1
2021-12-05T19:16:16.000Z
2021-12-05T19:16:16.000Z
py_reportit/shared/config/db.py
fedus/py_reportit
46422cabb652571d8cce6c8e91a229009dcca141
[ "MIT" ]
null
null
null
py_reportit/shared/config/db.py
fedus/py_reportit
46422cabb652571d8cce6c8e91a229009dcca141
[ "MIT" ]
null
null
null
import logging from typing import Iterable from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker as sqlalchemy_sessionmaker from sqlalchemy.orm.session import Session logger = logging.getLogger(f"py_reportit.{__name__}")
36.62963
107
0.742164
import logging from typing import Iterable from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker as sqlalchemy_sessionmaker from sqlalchemy.orm.session import Session logger = logging.getLogger(f"py_reportit.{__name__}") class Database: def __init__(self, log_db, **kwargs): self.d...
631
66
46
9ed7a06b755cbb58e1a3edee00faa390aff26545
11,564
py
Python
rlpyt/ul/algos/downstreams/vae.py
Slienteagle-wyb/rlpyt
fee14b1c28481f6751a7a1a6ce9b8cbac1e001f0
[ "MIT" ]
null
null
null
rlpyt/ul/algos/downstreams/vae.py
Slienteagle-wyb/rlpyt
fee14b1c28481f6751a7a1a6ce9b8cbac1e001f0
[ "MIT" ]
null
null
null
rlpyt/ul/algos/downstreams/vae.py
Slienteagle-wyb/rlpyt
fee14b1c28481f6751a7a1a6ce9b8cbac1e001f0
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from collections import namedtuple from rlpyt.ul.algos.ul_for_rl.base import BaseUlAlgorithm from rlpyt.ul.models.ul.vae_models import VaeHeadModel, VaeDecoderModel from rlpyt.utils.quick_args import save__init__args from rlpyt.utils.logging import logger from rlpyt.ul.repla...
43.637736
114
0.656174
import torch import torch.nn.functional as F from collections import namedtuple from rlpyt.ul.algos.ul_for_rl.base import BaseUlAlgorithm from rlpyt.ul.models.ul.vae_models import VaeHeadModel, VaeDecoderModel from rlpyt.utils.quick_args import save__init__args from rlpyt.utils.logging import logger from rlpyt.ul.repla...
9,923
0
297
8a87b0cd7e766f6f264432745a4a7a02f1025c18
674
py
Python
chconsole/launch/launch_config.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
chconsole/launch/launch_config.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
chconsole/launch/launch_config.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from traitlets.config.configurable import LoggingConfigurable from traitlets import Unicode __author__ = 'Manfred Minimair <manfred@minimair.org>'
32.095238
81
0.695846
from traitlets.config.configurable import LoggingConfigurable from traitlets import Unicode __author__ = 'Manfred Minimair <manfred@minimair.org>' class LaunchConfig(LoggingConfigurable): gate_tunnel_user = Unicode('chconnect', config=True, help='ssh user name on gate for tunnel...
43
457
23
b748f3b0df7be72f8e6684bce7c6f0a96a780838
1,895
py
Python
tests/test_rt_gui.py
amoodie/rain-table_jeffskwang
a378a24f2c239e5b8076a864e7f924c3c6397185
[ "MIT" ]
null
null
null
tests/test_rt_gui.py
amoodie/rain-table_jeffskwang
a378a24f2c239e5b8076a864e7f924c3c6397185
[ "MIT" ]
null
null
null
tests/test_rt_gui.py
amoodie/rain-table_jeffskwang
a378a24f2c239e5b8076a864e7f924c3c6397185
[ "MIT" ]
null
null
null
print("importing: pytest and platform") import pytest import platform print("importing: sys and os") import sys, os sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/..")) print("importing: numpy") import numpy as np print("importing: matplotlib") import matplotlib @pytest.mark.mpl_image_compare(baseli...
22.034884
78
0.741953
print("importing: pytest and platform") import pytest import platform print("importing: sys and os") import sys, os sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/..")) print("importing: numpy") import numpy as np print("importing: matplotlib") import matplotlib @pytest.mark.mpl_image_compare(baseli...
996
0
132
40cf4751ff1aafadae4d61a862e1a55e2c03c0c3
1,265
py
Python
graphi_project/graphi_project/urls.py
davidxc/graphi
e5cb5b165c0314aa3a9302d333797dab9871026c
[ "MIT" ]
null
null
null
graphi_project/graphi_project/urls.py
davidxc/graphi
e5cb5b165c0314aa3a9302d333797dab9871026c
[ "MIT" ]
null
null
null
graphi_project/graphi_project/urls.py
davidxc/graphi
e5cb5b165c0314aa3a9302d333797dab9871026c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Author: David Wong <davidwong.xc@gmail.com> License: 3 clause BSD license """ from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Uncomment the next two lines to enable the admin: from django.contrib import admin admin....
35.138889
77
0.682213
# -*- coding: utf-8 -*- """ Author: David Wong <davidwong.xc@gmail.com> License: 3 clause BSD license """ from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Uncomment the next two lines to enable the admin: from django.contrib import admin admin....
0
0
0
8130b2714fb2200c4919ad760d8fe3b3c75a95b2
566
py
Python
ch03/RELU_function.py
Lyli724/Book_Introduce_Deep-Learning
b24ecc76548794c7e4afaf01142a7e68764744d1
[ "Apache-2.0" ]
1
2020-07-20T05:34:15.000Z
2020-07-20T05:34:15.000Z
ch03/RELU_function.py
Lyli724/Book_Introduce_Deep-Learning
b24ecc76548794c7e4afaf01142a7e68764744d1
[ "Apache-2.0" ]
null
null
null
ch03/RELU_function.py
Lyli724/Book_Introduce_Deep-Learning
b24ecc76548794c7e4afaf01142a7e68764744d1
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt # RELU函数当input>0: output: x, input < 0, output = 0 x = np.arange(-5.0, 5.0, 0.1) y1 = sigmoid_function(x) y2 = step_function(x) y3 = relu(x) plt.plot(x, y1, label = "sigmoid") plt.plot(x, y2, label = "step", linestyle = "--") plt.plot(x, y3, label = "relu", linestyle...
23.583333
56
0.64311
import numpy as np import matplotlib.pyplot as plt # RELU函数当input>0: output: x, input < 0, output = 0 def relu(x): return np.maximum(0, x) # maximum从输入的数值中选择较大的那个值进行输出 def step_function(x): return np.array(x > 0, dtype = np.int) def sigmoid_function(x): return 1 / (1 + np.exp(-x)) x = np.arange(-5.0, 5....
164
0
68
5b70fa08960cfbdcc6e7c1d4789b5302bcef0a4a
2,515
py
Python
dias/train.py
MrXiaoXiao/DIAS
8c628beb8817824a7ba4e1d4b3c3611573457a18
[ "MIT" ]
2
2021-07-01T12:28:07.000Z
2021-08-10T10:53:14.000Z
dias/train.py
MrXiaoXiao/DIAS
8c628beb8817824a7ba4e1d4b3c3611573457a18
[ "MIT" ]
null
null
null
dias/train.py
MrXiaoXiao/DIAS
8c628beb8817824a7ba4e1d4b3c3611573457a18
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from dias.model.FPN_Model import Dias_FPN from dias.model.Unet_Model import Dias_Unet from dias.dataIO.data import IonoDataManager import segmentation_models as sm import matplotlib.pyplot as plt import os def train(cfgs): """ Function for training DIAS. """ p...
31.4375
79
0.604771
import tensorflow as tf import numpy as np from dias.model.FPN_Model import Dias_FPN from dias.model.Unet_Model import Dias_Unet from dias.dataIO.data import IonoDataManager import segmentation_models as sm import matplotlib.pyplot as plt import os def train(cfgs): """ Function for training DIAS. """ p...
0
0
0
3ba51943f287ab96a1b85ade2737d45bb8f347f0
4,009
py
Python
pymarkdownlint/rules.py
cheukyin699/pymarkdownlint
d3317c0e8baa1cac56c7ffc6d11e6ba7a03e4c07
[ "MIT" ]
2
2019-04-12T06:29:44.000Z
2021-01-14T05:38:25.000Z
pymarkdownlint/rules.py
TobiasSchaffner/pymarkdownlint
19d766877998fb75494bc5847f4c7ae287e86684
[ "MIT" ]
2
2018-10-15T05:02:48.000Z
2020-09-12T07:25:09.000Z
pymarkdownlint/rules.py
cheukyin699/pymarkdownlint
d3317c0e8baa1cac56c7ffc6d11e6ba7a03e4c07
[ "MIT" ]
4
2018-11-26T03:19:23.000Z
2021-03-12T06:42:32.000Z
from abc import abstractmethod, ABCMeta from pymarkdownlint.options import IntOption from bs4 import BeautifulSoup import markdown import re RE_HEADERS = re.compile('^h[1-6]$') class Rule(object, metaclass=ABCMeta): """ Class representing markdown rules. """ options_spec = [] id = [] name = "" e...
29.91791
112
0.634323
from abc import abstractmethod, ABCMeta from pymarkdownlint.options import IntOption from bs4 import BeautifulSoup import markdown import re RE_HEADERS = re.compile('^h[1-6]$') class Rule(object, metaclass=ABCMeta): """ Class representing markdown rules. """ options_spec = [] id = [] name = "" e...
1,734
7
345
cc849ca59c78f1ab5df6d8f0953cda66194774b9
5,930
py
Python
df_17/simulate.py
tivvit/crypto_trading_bot_devfest_2017
7e642bb455f70f79582f98cca4996765bcaea148
[ "MIT" ]
null
null
null
df_17/simulate.py
tivvit/crypto_trading_bot_devfest_2017
7e642bb455f70f79582f98cca4996765bcaea148
[ "MIT" ]
null
null
null
df_17/simulate.py
tivvit/crypto_trading_bot_devfest_2017
7e642bb455f70f79582f98cca4996765bcaea148
[ "MIT" ]
null
null
null
"""GDAX Trading simulator Usage: train_lr.py [-zepd <file> -s --stop <stop> -a <after> -b <before> -c <cnt>] [--err-avg] train_lr.py (-h | --help) Options: -d=FILE Data path [default: /data/gdax/BTC-EUR_27_6_2017_200_days_min.json] -h --help Show this screen. -v --version Version -z --zmq ...
28.926829
83
0.590556
"""GDAX Trading simulator Usage: train_lr.py [-zepd <file> -s --stop <stop> -a <after> -b <before> -c <cnt>] [--err-avg] train_lr.py (-h | --help) Options: -d=FILE Data path [default: /data/gdax/BTC-EUR_27_6_2017_200_days_min.json] -h --help Show this screen. -v --version Version -z --zmq ...
4,618
0
23
a61ea08d9eb33e3f28c8ed7dafeaa9382eba7647
118
py
Python
basic/yield.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
basic/yield.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
basic/yield.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
for x in arrayYield(): print(x)
16.857143
29
0.525424
def arrayYield(): arr = [9,8,7,6,5,4,3,2,1] for x in arr: yield x for x in arrayYield(): print(x)
60
0
22
00a990c066e283412c864be0c5e3bb6f8b4d146d
4,740
py
Python
rpxdock/tests/search/test_onecomp.py
quecloud/rpxdock
41f7f98f5dacf24fc95897910263a0bec2209e59
[ "Apache-2.0" ]
null
null
null
rpxdock/tests/search/test_onecomp.py
quecloud/rpxdock
41f7f98f5dacf24fc95897910263a0bec2209e59
[ "Apache-2.0" ]
null
null
null
rpxdock/tests/search/test_onecomp.py
quecloud/rpxdock
41f7f98f5dacf24fc95897910263a0bec2209e59
[ "Apache-2.0" ]
1
2020-04-13T20:07:52.000Z
2020-04-13T20:07:52.000Z
import rpxdock as rp, concurrent if __name__ == '__main__': main()
37.92
95
0.698101
import rpxdock as rp, concurrent def test_cage_hier_onecomp_notrim(hscore, bodyC3): arg = rp.app.defaults() arg.wts = rp.Bunch(ncontact=0.01, rpx=1.0) arg.beam_size = 2e4 arg.max_bb_redundancy = 2.0 arg.max_delta_h = 9999 arg.nout_debug = 0 arg.nout_top = 0 arg.nout_each = 0 arg.score_only_s...
4,555
0
115
1cc0105dde0e16d5344700f0088b9baaa4e42f37
1,344
py
Python
categories/forms.py
mhndlsz/memodrop
7ba39143c8e4fbe67881b141accedef535e936e6
[ "MIT" ]
18
2018-04-15T14:01:25.000Z
2022-03-16T14:57:28.000Z
categories/forms.py
mhndlsz/memodrop
7ba39143c8e4fbe67881b141accedef535e936e6
[ "MIT" ]
null
null
null
categories/forms.py
mhndlsz/memodrop
7ba39143c8e4fbe67881b141accedef535e936e6
[ "MIT" ]
4
2018-04-15T14:16:12.000Z
2020-08-10T14:31:48.000Z
from django import forms from django.contrib.auth.models import User from django.db import IntegrityError from categories.exceptions import ShareContractUserIsOwner, ShareContractAlreadyExists, ShareContractUserDoesNotExist from categories.models import ShareContract
43.354839
117
0.675595
from django import forms from django.contrib.auth.models import User from django.db import IntegrityError from categories.exceptions import ShareContractUserIsOwner, ShareContractAlreadyExists, ShareContractUserDoesNotExist from categories.models import ShareContract class ShareContractForm(forms.Form): username...
0
1,051
23
7631dec3502bc3893edde5223606e6691456b30f
1,599
py
Python
carrara/archivi/migrations/0021_auto_20210806_1922.py
cxc61cxc/django_prove
9df58be73ef51e13287bfbd1b8623f3f39b8a224
[ "MIT" ]
null
null
null
carrara/archivi/migrations/0021_auto_20210806_1922.py
cxc61cxc/django_prove
9df58be73ef51e13287bfbd1b8623f3f39b8a224
[ "MIT" ]
null
null
null
carrara/archivi/migrations/0021_auto_20210806_1922.py
cxc61cxc/django_prove
9df58be73ef51e13287bfbd1b8623f3f39b8a224
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-06 17:22 from django.db import migrations, models
32.632653
106
0.575985
# Generated by Django 3.2.5 on 2021-08-06 17:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('archivi', '0020_alter_allegato_pratica'), ] operations = [ migrations.AlterField( model_name='allegato', name='doc',...
0
1,485
23
5af47c313e63f34e1877fc59a5f9405aaf7f3ce4
16,724
py
Python
src/handlers.py
Shermii/n-editor
5f5c5e2b1abe403f1ddc35de314303a1e34e99f9
[ "MIT" ]
1
2020-09-01T22:22:09.000Z
2020-09-01T22:22:09.000Z
src/handlers.py
Shermii/n-editor
5f5c5e2b1abe403f1ddc35de314303a1e34e99f9
[ "MIT" ]
1
2021-12-31T00:25:29.000Z
2021-12-31T00:25:29.000Z
src/handlers.py
Shermii/Nix
5f5c5e2b1abe403f1ddc35de314303a1e34e99f9
[ "MIT" ]
null
null
null
import os import time import random import tkinter import threading import subprocess import glob from ascii_art import * from widgets import * import platform platform = platform.system() # thanks to everyone on https://www.asciiart.eu/ class FILE_HANDLER(object): """ File opening and closing yes""" # def load_...
33.51503
265
0.713167
import os import time import random import tkinter import threading import subprocess import glob from ascii_art import * from widgets import * import platform platform = platform.system() # thanks to everyone on https://www.asciiart.eu/ class FILE_HANDLER(object): """ File opening and closing yes""" def __init__...
10,259
857
848
201ed5c78e308f8bf7563fcc8896d5909beb68d4
6,977
py
Python
Projects/Project1/regan/crossvalidation.py
adelezaini/MachineLearning
dc3f34f5d509bed6a993705373c46be4da3f97db
[ "MIT" ]
null
null
null
Projects/Project1/regan/crossvalidation.py
adelezaini/MachineLearning
dc3f34f5d509bed6a993705373c46be4da3f97db
[ "MIT" ]
1
2021-10-03T15:16:07.000Z
2021-10-03T15:16:07.000Z
Projects/Project1/regan/crossvalidation.py
adelezaini/MachineLearning
dc3f34f5d509bed6a993705373c46be4da3f97db
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright © 2021 Fridtjof Gjengset, Adele Zaini, Gaute Holen # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the “Software”), to deal in the Software without restriction, including without limitation the ...
38.761111
117
0.669055
# The MIT License (MIT) # # Copyright © 2021 Fridtjof Gjengset, Adele Zaini, Gaute Holen # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the “Software”), to deal in the Software without restriction, including without limitation the ...
0
0
0
292e308bcb25a2c90056137c5b8f27ecc01c4d26
3,725
py
Python
MainDir/DataBases/DataBase.py
vladogli/DiscordBot
bc9ba4a26c2af4edef6fa54e409bbe6c01c670d9
[ "MIT" ]
null
null
null
MainDir/DataBases/DataBase.py
vladogli/DiscordBot
bc9ba4a26c2af4edef6fa54e409bbe6c01c670d9
[ "MIT" ]
null
null
null
MainDir/DataBases/DataBase.py
vladogli/DiscordBot
bc9ba4a26c2af4edef6fa54e409bbe6c01c670d9
[ "MIT" ]
null
null
null
import sqlite3
34.813084
110
0.638389
import sqlite3 class DataBase: DaBe = 0 cursor = 0 def __init__(self, dbname): self.DaBe = sqlite3.connect(dbname) self.cursor = self.DaBe.cursor() def __del__(self): self.DaBe.commit() self.DaBe.close() def CREATE_TABLE(self, TableName, data): string = "CREATE TABLE " + TableName + "(" for i in range...
3,164
268
279
014959e4d9f7c9d908e94b6b8868537079c42d42
1,975
py
Python
twitch_project/facebook_users/tasks.py
tejesh95/livecoding
327114d67d613ef7300528d62b5165cd215bc1b4
[ "MIT" ]
null
null
null
twitch_project/facebook_users/tasks.py
tejesh95/livecoding
327114d67d613ef7300528d62b5165cd215bc1b4
[ "MIT" ]
null
null
null
twitch_project/facebook_users/tasks.py
tejesh95/livecoding
327114d67d613ef7300528d62b5165cd215bc1b4
[ "MIT" ]
null
null
null
import urllib2 import json from celery.decorators import task from celery.utils.log import get_task_logger from .models import GroupMember logger = get_task_logger(__name__) @task(name='fetch_members_from_group') @task(name='fetch_facebook_page_fans')
34.051724
87
0.590886
import urllib2 import json from celery.decorators import task from celery.utils.log import get_task_logger from .models import GroupMember logger = get_task_logger(__name__) @task(name='fetch_members_from_group') def fetch_members_from_group(members, group_id): def save_members_to_db(members): for member...
1,674
0
44
2e00301aaa1a19cf8cb9eebb6282f9d668fc8bf4
2,229
py
Python
infrastructure/cleanup_db/cleanup_db.py
mesmacosta/cloudsql-postgresql-tooling
33c6ca7779d1a1dc4d07c5218c215dd780f6b595
[ "MIT" ]
6
2020-04-29T21:17:28.000Z
2020-12-08T01:52:27.000Z
infrastructure/cleanup_db/cleanup_db.py
mesmacosta/cloudsql-postgresql-tooling
33c6ca7779d1a1dc4d07c5218c215dd780f6b595
[ "MIT" ]
null
null
null
infrastructure/cleanup_db/cleanup_db.py
mesmacosta/cloudsql-postgresql-tooling
33c6ca7779d1a1dc4d07c5218c215dd780f6b595
[ "MIT" ]
2
2020-07-29T09:31:32.000Z
2021-02-10T19:01:05.000Z
import argparse import logging import sys import uuid from psycopg2 import connect QUERY = """ SELECT DISTINCT t.table_schema as schema_name FROM information_schema.tables t WHERE t.table_schema NOT IN ('pg_catalog', 'information_schema', 'pg_toast', 'gp_toolkit', 'pg_internal') ORDER...
29.72
71
0.633019
import argparse import logging import sys import uuid from psycopg2 import connect QUERY = """ SELECT DISTINCT t.table_schema as schema_name FROM information_schema.tables t WHERE t.table_schema NOT IN ('pg_catalog', 'information_schema', 'pg_toast', 'gp_toolkit', 'pg_internal') ORDER...
1,461
0
92
21540e20013a34251762618f72b4ba0f7a019eec
8,032
py
Python
train_nets.py
mepittma/bmi203-final
ef60d91cafbd3372f13917aa67102ec8f19e7ee8
[ "Apache-2.0" ]
null
null
null
train_nets.py
mepittma/bmi203-final
ef60d91cafbd3372f13917aa67102ec8f19e7ee8
[ "Apache-2.0" ]
null
null
null
train_nets.py
mepittma/bmi203-final
ef60d91cafbd3372f13917aa67102ec8f19e7ee8
[ "Apache-2.0" ]
null
null
null
from nets import neural_net as nn import matplotlib.pyplot as plt from operator import itemgetter from sklearn.metrics import roc_curve, auc, roc_auc_score from sklearn.model_selection import train_test_split import numpy as np """ # AUTOENCODER # Instantiate neural network and training classes NN = nn.Neural_Network(...
32.783673
112
0.642555
from nets import neural_net as nn import matplotlib.pyplot as plt from operator import itemgetter from sklearn.metrics import roc_curve, auc, roc_auc_score from sklearn.model_selection import train_test_split import numpy as np """ # AUTOENCODER # Instantiate neural network and training classes NN = nn.Neural_Network(...
449
0
44
3d4261a3742c63486541b6cb72857f1d164e9962
2,510
py
Python
interpreter/interpreter.py
jodorganistaca/Projet_SI
e640ccf37252cb22a92a858ab2d1fd409a63aecf
[ "MIT" ]
null
null
null
interpreter/interpreter.py
jodorganistaca/Projet_SI
e640ccf37252cb22a92a858ab2d1fd409a63aecf
[ "MIT" ]
null
null
null
interpreter/interpreter.py
jodorganistaca/Projet_SI
e640ccf37252cb22a92a858ab2d1fd409a63aecf
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser() parser.add_argument('--file', required=True) args = parser.parse_args() file1 = open(f'{args.file}', 'r') lines = file1.readlines() Data_Memory={} #While not end of line i = 0 j= [] #print(len(lines)) while (i<len(lines)) : arr = lines[i].split(" ") ...
29.186047
105
0.5
import argparse parser = argparse.ArgumentParser() parser.add_argument('--file', required=True) args = parser.parse_args() file1 = open(f'{args.file}', 'r') lines = file1.readlines() Data_Memory={} #While not end of line i = 0 j= [] #print(len(lines)) while (i<len(lines)) : arr = lines[i].split(" ") ...
0
0
0
bdb730d0f50430d110a115cc03dfcb6409642f00
1,184
py
Python
utils/utils.py
gtdelong/teamwork
0064d6d08102e054bf8175318060ce30e5dbe398
[ "MIT" ]
null
null
null
utils/utils.py
gtdelong/teamwork
0064d6d08102e054bf8175318060ce30e5dbe398
[ "MIT" ]
null
null
null
utils/utils.py
gtdelong/teamwork
0064d6d08102e054bf8175318060ce30e5dbe398
[ "MIT" ]
null
null
null
import networkx as nx columns = ['discharge_id', 'avg_clust', 'cumulative_experience', 'avg_cumulative_experience', 'team_edge_size', 'team_size'] notes_with_disposition_file = '../data/notes_w_disposition.csv' discharges_with_disposition_file = '../data/discharges_w_dispositio...
39.466667
133
0.714527
import networkx as nx columns = ['discharge_id', 'avg_clust', 'cumulative_experience', 'avg_cumulative_experience', 'team_edge_size', 'team_size'] def get_careteam_data(care_team): data = {} data['discharge_id'] = care_team.discharge_id ''' Clustering coefficie...
835
0
23
d19ae1ba8f67c235e82426c0ec8c91982708acd4
697
py
Python
fs2conf/formathandlers.py
OmniTroid/mcconf
b248f0fce911b02e4cc8213c1b0e0ddc0105b6f8
[ "MIT" ]
1
2022-03-03T12:17:40.000Z
2022-03-03T12:17:40.000Z
fs2conf/formathandlers.py
OmniTroid/mcconf
b248f0fce911b02e4cc8213c1b0e0ddc0105b6f8
[ "MIT" ]
null
null
null
fs2conf/formathandlers.py
OmniTroid/mcconf
b248f0fce911b02e4cc8213c1b0e0ddc0105b6f8
[ "MIT" ]
null
null
null
import json import yaml import configparser from pathlib import Path
21.121212
65
0.71736
import json import yaml import configparser from pathlib import Path def parse_json(path : Path) -> dict: with open(path) as file: data = file.read() return json.loads(data) def parse_yml(path : Path) -> dict: with open(path) as file: data = yaml.safe_load(file) return data def parse_properties(path : Path...
559
0
69
64adb66d1de32f834247aafc8d5c406ee1fbaf6d
473
py
Python
03 Web/Web 02/app.py
culee/c4e
775c53fa92a31696431760f58a79a52889bfb46f
[ "MIT" ]
null
null
null
03 Web/Web 02/app.py
culee/c4e
775c53fa92a31696431760f58a79a52889bfb46f
[ "MIT" ]
null
null
null
03 Web/Web 02/app.py
culee/c4e
775c53fa92a31696431760f58a79a52889bfb46f
[ "MIT" ]
null
null
null
from flask import Flask, render_template from models.service import Service import mlab app = Flask(__name__) mlab.connect() @app.route('/') @app.route('/search/<int:gender>') if __name__ == '__main__': app.run(debug=True)
22.52381
96
0.727273
from flask import Flask, render_template from models.service import Service import mlab app = Flask(__name__) mlab.connect() @app.route('/') def index(): return render_template("index.html") @app.route('/search/<int:gender>') def search(gender): all_services = Service.objects(gender = gender, yob__lte = 19...
199
0
44
4dccb1062f8858f4ce7a8dd67ec93b8c1f9240fe
9,086
py
Python
venv/lib/python3.9/site-packages/google/auth/transport/_mtls_helper.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
348
2018-10-14T17:48:33.000Z
2022-03-22T06:53:03.000Z
venv/lib/python3.9/site-packages/google/auth/transport/_mtls_helper.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
485
2018-10-23T19:07:47.000Z
2022-03-31T13:59:03.000Z
venv/lib/python3.9/site-packages/google/auth/transport/_mtls_helper.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
229
2018-10-17T20:10:03.000Z
2022-02-25T22:47:49.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.631373
88
0.696676
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
0
0
0
9ae40e86a390b81208bf833d1832883268bb2344
131
py
Python
lib/JumpScale/baselib/git/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
lib/JumpScale/baselib/git/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
lib/JumpScale/baselib/git/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
from JumpScale import j from GitFactory import GitFactory j.base.loader.makeAvailable(j, 'clients') j.clients.git = GitFactory()
18.714286
41
0.78626
from JumpScale import j from GitFactory import GitFactory j.base.loader.makeAvailable(j, 'clients') j.clients.git = GitFactory()
0
0
0
a282ddc7e78647c0b19ffb8ad348740a358fe7f0
179
py
Python
djangobench_webui/webui/urls.py
sebleier/djangobench-webui
d35bdc72c0fe2775b453f3142853d33cdb1a05bf
[ "BSD-3-Clause" ]
2
2015-11-08T11:31:36.000Z
2020-09-23T08:49:59.000Z
djangobench_webui/webui/urls.py
sebleier/djangobench-webui
d35bdc72c0fe2775b453f3142853d33cdb1a05bf
[ "BSD-3-Clause" ]
null
null
null
djangobench_webui/webui/urls.py
sebleier/djangobench-webui
d35bdc72c0fe2775b453f3142853d33cdb1a05bf
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls.defaults import * urlpatterns = patterns('djangobench_webui.webui.views', (r'^$', 'results'), (r'^data/(?P<benchmark>\w+)/$', 'benchmark_data'), )
22.375
55
0.648045
from django.conf.urls.defaults import * urlpatterns = patterns('djangobench_webui.webui.views', (r'^$', 'results'), (r'^data/(?P<benchmark>\w+)/$', 'benchmark_data'), )
0
0
0
27235ce27a42c159e44c63aa2e66e67608612027
6,863
py
Python
python36/06_fou/BSM_option_valuation_FOU.py
aborodya/dawp
0b34507e4b09eda677815728b46d800eedfeba3d
[ "CNRI-Python" ]
484
2015-08-04T19:24:06.000Z
2022-03-30T20:59:30.000Z
python36/06_fou/BSM_option_valuation_FOU.py
aborodya/dawp
0b34507e4b09eda677815728b46d800eedfeba3d
[ "CNRI-Python" ]
3
2019-09-10T14:37:30.000Z
2019-09-10T14:37:45.000Z
python36/06_fou/BSM_option_valuation_FOU.py
aborodya/dawp
0b34507e4b09eda677815728b46d800eedfeba3d
[ "CNRI-Python" ]
360
2015-08-08T03:30:37.000Z
2022-03-30T12:07:31.000Z
# # Valuation of European Call Options in BSM Model # Comparison of Analytical, int_valueegral and FFT Approach # 11_cal/BSM_option_valuation_FOU.py # # (c) Dr. Yves J. Hilpisch # Derivatives Analytics with Python # import numpy as np from numpy.fft import fft from scipy.integrate import quad from scipy import stats im...
30.914414
79
0.544514
# # Valuation of European Call Options in BSM Model # Comparison of Analytical, int_valueegral and FFT Approach # 11_cal/BSM_option_valuation_FOU.py # # (c) Dr. Yves J. Hilpisch # Derivatives Analytics with Python # import numpy as np from numpy.fft import fft from scipy.integrate import quad from scipy import stats im...
1,143
0
23
58d0e62dee253b95881bc5f3229bd2f3c5bda71f
2,366
py
Python
skimage/transform/seam_carving.py
silverneko/scikit-image
1f8c74f69e0f9e72c59f180b2fc96d311659c609
[ "BSD-3-Clause" ]
null
null
null
skimage/transform/seam_carving.py
silverneko/scikit-image
1f8c74f69e0f9e72c59f180b2fc96d311659c609
[ "BSD-3-Clause" ]
5
2016-05-23T22:14:40.000Z
2022-02-25T21:10:23.000Z
skimage/transform/seam_carving.py
silverneko/scikit-image
1f8c74f69e0f9e72c59f180b2fc96d311659c609
[ "BSD-3-Clause" ]
2
2016-05-23T08:44:29.000Z
2021-06-23T00:26:23.000Z
from ._seam_carving import _seam_carve_v from .. import util from .._shared import utils import numpy as np def seam_carve(image, energy_map, mode, num, border=1, force_copy=True): """ Carve vertical or horizontal seams off an image. Carves out vertical/horizontal seams from an image while using the given ...
35.313433
77
0.658918
from ._seam_carving import _seam_carve_v from .. import util from .._shared import utils import numpy as np def seam_carve(image, energy_map, mode, num, border=1, force_copy=True): """ Carve vertical or horizontal seams off an image. Carves out vertical/horizontal seams from an image while using the given ...
0
0
0
fc9d2314d890340ab7d76e77152169ce431a72b6
617
py
Python
python/qipkg/package.py
aldebaran/qibuild
efea6fa3744664348717fe5e8df708a3cf392072
[ "BSD-3-Clause" ]
51
2015-01-05T14:35:13.000Z
2021-07-27T06:46:59.000Z
python/qipkg/package.py
aldebaran/qibuild
efea6fa3744664348717fe5e8df708a3cf392072
[ "BSD-3-Clause" ]
104
2015-04-09T10:48:42.000Z
2020-09-16T16:33:29.000Z
python/qipkg/package.py
aldebaran/qibuild
efea6fa3744664348717fe5e8df708a3cf392072
[ "BSD-3-Clause" ]
46
2015-01-05T14:35:16.000Z
2022-02-13T20:39:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2012-2021 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license (see the COPYING file). """ QiBuild """ from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print...
29.380952
84
0.742301
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2012-2021 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license (see the COPYING file). """ QiBuild """ from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print...
0
0
0
b06fdcd14499acc5ce6a59058b2073b5d9838671
2,875
py
Python
e2e-test/seleniume2e.py
elastest/elastest-bigdata-service
7cc237b68e900852367a1f79ade9b9a85bea1b37
[ "Apache-2.0" ]
null
null
null
e2e-test/seleniume2e.py
elastest/elastest-bigdata-service
7cc237b68e900852367a1f79ade9b9a85bea1b37
[ "Apache-2.0" ]
2
2018-01-05T13:46:48.000Z
2018-02-28T10:10:04.000Z
e2e-test/seleniume2e.py
elastest/elastest-bigdata-service
7cc237b68e900852367a1f79ade9b9a85bea1b37
[ "Apache-2.0" ]
7
2017-09-20T11:20:16.000Z
2018-05-28T17:48:36.000Z
###################### # Author: Nick Gavalas # 2/3/2019 fixed by Kimon Moschandreou ###################### import time import sys import os import selenium from selenium import webdriver # TODO: Substitute timers with webdriverwaits. url = sys.argv[1] projectname = 'deleteme' tjobname = 'deletethisproject' tjobimage...
33.045977
158
0.745391
###################### # Author: Nick Gavalas # 2/3/2019 fixed by Kimon Moschandreou ###################### import time import sys import os import selenium from selenium import webdriver # TODO: Substitute timers with webdriverwaits. url = sys.argv[1] projectname = 'deleteme' tjobname = 'deletethisproject' tjobimage...
0
0
0
62adad74c41ea11934ec0fd48ae7847cccb172be
5,878
py
Python
record_demo.py
LuoYouRen/gym-atari-demostrations-collector
7ecc5c0bb3d0c46fb785098911a50cb72499eb58
[ "MIT" ]
1
2019-01-02T13:41:29.000Z
2019-01-02T13:41:29.000Z
record_demo.py
LuoYouRen/gym-atari-demostrations-collector
7ecc5c0bb3d0c46fb785098911a50cb72499eb58
[ "MIT" ]
null
null
null
record_demo.py
LuoYouRen/gym-atari-demostrations-collector
7ecc5c0bb3d0c46fb785098911a50cb72499eb58
[ "MIT" ]
null
null
null
import os import argparse import numpy as np import gym from gym.envs.atari.atari_env import ACTION_MEANING import pygame from atari_demo.wrappers import AtariDemo from atari_demo.utils import * import time parser = argparse.ArgumentParser() parser.add_argument('-g', '--game', type=str, default='MontezumaRevenge') par...
33.397727
119
0.624872
import os import argparse import numpy as np import gym from gym.envs.atari.atari_env import ACTION_MEANING import pygame from atari_demo.wrappers import AtariDemo from atari_demo.utils import * import time parser = argparse.ArgumentParser() parser.add_argument('-g', '--game', type=str, default='MontezumaRevenge') par...
2,172
0
137
03316fedbb68c8a67ecaf3df756e36001ea18aaa
2,983
py
Python
features/extraction/lib/config.py
bayesimpact/readmission-risk
5b0f6c93826601e2dbb9c8c276e92801772e17c4
[ "Apache-2.0" ]
19
2016-10-06T18:10:36.000Z
2018-04-04T02:30:09.000Z
features/extraction/lib/config.py
BeaconLabs/readmission-risk
5b0f6c93826601e2dbb9c8c276e92801772e17c4
[ "Apache-2.0" ]
2
2017-10-26T19:22:58.000Z
2017-11-16T07:44:58.000Z
features/extraction/lib/config.py
bayesimpact/readmission-risk
5b0f6c93826601e2dbb9c8c276e92801772e17c4
[ "Apache-2.0" ]
9
2016-11-15T14:13:20.000Z
2021-12-19T20:27:58.000Z
"""Methods for dealing with configuration files.""" import os try: import ujson as json except ImportError: import json import sutter config_ = None class Config(object): """ An internal representation of a configuration file. Handles multiple possible config sources (path or env var) and nest...
28.409524
89
0.629903
"""Methods for dealing with configuration files.""" import os try: import ujson as json except ImportError: import json import sutter config_ = None class Config(object): """ An internal representation of a configuration file. Handles multiple possible config sources (path or env var) and nest...
0
0
0
25c411d2c3aea45cb21b2da89e3b5a8bcd29de57
1,886
py
Python
pygments_arm/__init__.py
heia-fr/pygments-arm
1b0184e9911e5f01a0a5c22c8bc900beb4f27866
[ "Apache-2.0" ]
null
null
null
pygments_arm/__init__.py
heia-fr/pygments-arm
1b0184e9911e5f01a0a5c22c8bc900beb4f27866
[ "Apache-2.0" ]
1
2019-11-27T13:53:53.000Z
2019-11-29T08:20:31.000Z
pygments_arm/__init__.py
heia-fr/pygments-arm
1b0184e9911e5f01a0a5c22c8bc900beb4f27866
[ "Apache-2.0" ]
1
2021-11-13T01:08:57.000Z
2021-11-13T01:08:57.000Z
# -*- coding: utf-8 -*- """ ARM lexer ~~~~~~~~~ Pygments lexer for ARM Assembly. :copyright: Copyright 2017 Jacques Supcik :license: Apache 2, see LICENSE for details. """ from pygments.lexer import RegexLexer, include from pygments.token import Text, Name, Number, String, Comment, Punctuation _...
28.149254
75
0.436903
# -*- coding: utf-8 -*- """ ARM lexer ~~~~~~~~~ Pygments lexer for ARM Assembly. :copyright: Copyright 2017 Jacques Supcik :license: Apache 2, see LICENSE for details. """ from pygments.lexer import RegexLexer, include from pygments.token import Text, Name, Number, String, Comment, Punctuation _...
0
1,521
23
7ea1ba29e3018144f795159f181ead2fd16f4bf5
930
py
Python
rr/test/test_nyrr.py
Habstinat/py-race-results
370981d12e2c65d5658d96b4e2533edbbb495001
[ "MIT" ]
1
2017-01-31T19:49:53.000Z
2017-01-31T19:49:53.000Z
rr/test/test_nyrr.py
hpr/py-race-results
370981d12e2c65d5658d96b4e2533edbbb495001
[ "MIT" ]
null
null
null
rr/test/test_nyrr.py
hpr/py-race-results
370981d12e2c65d5658d96b4e2533edbbb495001
[ "MIT" ]
null
null
null
import datetime import os import sys import tempfile import unittest import rr if __name__ == "__main__": unittest.main()
22.682927
70
0.530108
import datetime import os import sys import tempfile import unittest import rr class TestNYRR(unittest.TestCase): def setUp(self): self.results_file = tempfile.NamedTemporaryFile(suffix=".txt") def tearDown(self): pass def test_web_download(self): """ Verify that we can...
77
700
23
c4eeb968a1108c4d6fa58977b945ef04a51e25b2
2,441
py
Python
custom_components/xiaomi_gateway3/core/shell/shell_e1.py
zvldz/homeassistant
becbe7087e3cf152cce2f9bb3670e3a0a283fc79
[ "BSD-2-Clause" ]
13
2019-06-04T12:23:25.000Z
2021-11-23T17:24:27.000Z
custom_components/xiaomi_gateway3/core/shell/shell_e1.py
zvldz/homeassistant
becbe7087e3cf152cce2f9bb3670e3a0a283fc79
[ "BSD-2-Clause" ]
1
2020-10-22T11:14:24.000Z
2020-10-22T18:36:30.000Z
custom_components/xiaomi_gateway3/core/shell/shell_e1.py
zvldz/homeassistant
becbe7087e3cf152cce2f9bb3670e3a0a283fc79
[ "BSD-2-Clause" ]
1
2020-08-25T18:41:34.000Z
2020-08-25T18:41:34.000Z
import asyncio import base64 from .base import TelnetShell TAR_DATA = "tar -czOC /data mha_master miio storage zigbee devices.txt gatewayInfoJson.info 2>/dev/null | base64"
31.701299
114
0.615731
import asyncio import base64 from .base import TelnetShell TAR_DATA = "tar -czOC /data mha_master miio storage zigbee devices.txt gatewayInfoJson.info 2>/dev/null | base64" class ShellE1(TelnetShell): model = "e1" async def login(self): self.writer.write(b"root\n") await asyncio.sleep(.1) ...
1,868
374
23
d8cd26cb40387ac9dbe2d6d5d7845e332d6db9f7
4,087
py
Python
pyracmon/graph/identify.py
sozu/py-pyracmon
4a7789ae5432a3197c58ae194de4b8065bbc2846
[ "MIT" ]
null
null
null
pyracmon/graph/identify.py
sozu/py-pyracmon
4a7789ae5432a3197c58ae194de4b8065bbc2846
[ "MIT" ]
null
null
null
pyracmon/graph/identify.py
sozu/py-pyracmon
4a7789ae5432a3197c58ae194de4b8065bbc2846
[ "MIT" ]
null
null
null
from typing import * class IdentifyPolicy: """ Provides entity identification functionalities used during appending entities to a graph. Identification mechanism is based on the equality of identification keys extracted by entities. :param identifier: A function to extract the identificatio...
39.298077
123
0.635674
from typing import * class IdentifyPolicy: """ Provides entity identification functionalities used during appending entities to a graph. Identification mechanism is based on the equality of identification keys extracted by entities. :param identifier: A function to extract the identificatio...
1,777
14
157
a5109113db6a3a4d4ae995e367c8aa7fcd1c68d9
1,129
py
Python
spiderbet/spiders/scores_spider.py
amsimoes/spiderBet
c4540cf6c5e61145d548a382742e3b8e25c6ff8f
[ "MIT" ]
17
2017-05-23T15:53:35.000Z
2022-02-19T14:25:51.000Z
spiderbet/spiders/scores_spider.py
amsimoes/spiderBet
c4540cf6c5e61145d548a382742e3b8e25c6ff8f
[ "MIT" ]
null
null
null
spiderbet/spiders/scores_spider.py
amsimoes/spiderBet
c4540cf6c5e61145d548a382742e3b8e25c6ff8f
[ "MIT" ]
3
2019-11-25T05:37:11.000Z
2022-02-19T14:17:24.000Z
import scrapy
34.212121
101
0.648361
import scrapy class betScore(scrapy.Spider): name = "scores" def start_requests(self): urls = ["https://www.academiadasapostas.com"] for url in urls: yield scrapy.Request(url=url, callback=self.parse) def parse(self, response): fixtures = response.xpath('//div[contains(@id, "fh_main_tab")]') for game ...
912
155
46
217ee8f9b5cfbfe1495a974bf99ca6301c735669
1,930
py
Python
flags/data_utils/write_xml_file.py
Prasad9/Detect-Flags-SSD
c0d662bde99ed8df33d72bd06d61d5eb869d31a5
[ "MIT" ]
13
2017-11-08T07:09:13.000Z
2022-03-28T07:09:47.000Z
flags/data_utils/write_xml_file.py
Prasad9/Detect-Flags-SSD
c0d662bde99ed8df33d72bd06d61d5eb869d31a5
[ "MIT" ]
3
2018-03-08T04:30:19.000Z
2019-01-03T15:47:24.000Z
flags/data_utils/write_xml_file.py
Prasad9/Detect-Flags-SSD
c0d662bde99ed8df33d72bd06d61d5eb869d31a5
[ "MIT" ]
5
2018-01-15T15:26:44.000Z
2021-08-18T08:02:51.000Z
import os
45.952381
119
0.660104
import os def write_xml_file(boxes, labels, file_size, file_path, save_folder, truncated_array, difficult_array, occluded_array): file_name = file_path.split('/')[-1] base_file_name = file_name.split('.')[0] xml_file_name = '{}.xml'.format(base_file_name) with open(os.path.join(save_folder, xml_file_name), 'w') as...
1,898
0
23
4ee5e1a9fb5dd49e1e477ea2366ff91b84cce86b
823
py
Python
tests/features/steps/bots_repo/test_bots_delete.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
10
2020-05-21T06:25:35.000Z
2022-01-07T20:34:03.000Z
tests/features/steps/bots_repo/test_bots_delete.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
22
2019-11-17T17:25:16.000Z
2022-03-10T15:14:28.000Z
tests/features/steps/bots_repo/test_bots_delete.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
8
2020-03-05T16:23:55.000Z
2021-12-27T11:10:42.000Z
import behave @behave.when(u'I delete the created bot by email') @behave.when(u'I try to delete a bot by the name of "{bot_name}"') @behave.then(u'There are no bot by the name of "{bot_name}"') @behave.given(u'There are no bots in project')
24.939394
66
0.664642
import behave @behave.when(u'I delete the created bot by email') def step_impl(context): context.project.bots.delete(bot_email=context.bot.email) @behave.when(u'I try to delete a bot by the name of "{bot_name}"') def step_impl(context, bot_name): try: context.project.bots.delete(bot_email=bot_name) ...
486
0
88
1a05a51da30d92d8797fa48634af402a3966be6f
1,833
py
Python
registry/helper.py
mattwang44/dj-registry
41401dbc1cdfad4acce93378ef208663348dcf63
[ "MIT" ]
5
2019-11-28T12:12:05.000Z
2022-03-04T04:29:28.000Z
registry/helper.py
mattwang44/dj-registry
41401dbc1cdfad4acce93378ef208663348dcf63
[ "MIT" ]
11
2022-02-15T06:06:53.000Z
2022-03-20T10:45:13.000Z
registry/helper.py
mattwang44/dj-registry
41401dbc1cdfad4acce93378ef208663348dcf63
[ "MIT" ]
4
2019-12-03T06:06:31.000Z
2022-02-18T04:15:44.000Z
from .models import Entry
26.955882
65
0.570649
from .models import Entry class Meta(type): def __getitem__(self, key): try: entry = Entry.objects.get(key=key, enabled=True) except Entry.DoesNotExist as e: raise KeyError(key) from e if entry.type == Entry.Types.STRING: return entry.value elif...
1,581
44
180
b6c3eeccff4dedf4fa25418645a523df346851b7
3,048
py
Python
net/data.py
PuchatekwSzortach/printed_characters_net
9478d4ecffeca040cc353676382d0ec775558458
[ "MIT" ]
1
2018-05-31T00:20:24.000Z
2018-05-31T00:20:24.000Z
net/data.py
PuchatekwSzortach/printed_characters_net
9478d4ecffeca040cc353676382d0ec775558458
[ "MIT" ]
null
null
null
net/data.py
PuchatekwSzortach/printed_characters_net
9478d4ecffeca040cc353676382d0ec775558458
[ "MIT" ]
null
null
null
""" Module with code related to creating data. """ import PIL.Image import PIL.ImageDraw import PIL.ImageFont import numpy as np import cv2 import net.printing class TemplatesMaker: """ Class for creating plain images of characters. Plain image is defined as a simple black character on white background....
35.034483
109
0.668963
""" Module with code related to creating data. """ import PIL.Image import PIL.ImageDraw import PIL.ImageFont import numpy as np import cv2 import net.printing class TemplatesMaker: """ Class for creating plain images of characters. Plain image is defined as a simple black character on white background....
891
0
54
f864ad02e177d8b9ca692e82ada169825a948a1a
2,978
py
Python
spider/savedb.py
Swinggcat/the-covid-trend
b348baaedf9bfb8c185da26a536db57356b133f5
[ "MIT" ]
null
null
null
spider/savedb.py
Swinggcat/the-covid-trend
b348baaedf9bfb8c185da26a536db57356b133f5
[ "MIT" ]
1
2020-08-26T14:22:51.000Z
2020-08-26T14:22:51.000Z
spider/savedb.py
Swinggcat/the-covid-trend
b348baaedf9bfb8c185da26a536db57356b133f5
[ "MIT" ]
null
null
null
import re import pymysql
29.485149
93
0.473472
import re import pymysql class DbSaver: def __init__(self): psw = input('Please input the password: ') self.conn = pymysql.connect( host='104.199.180.9', user='root', password=psw, database='covid', charset='utf8' ) def close...
259
2,670
23
da4c6fd148be2d1a80cadce7e49b5d13c10f20a5
3,413
py
Python
back-end/src/handler/model/base/base.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
1
2022-03-13T04:24:00.000Z
2022-03-13T04:24:00.000Z
back-end/src/handler/model/base/base.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
null
null
null
back-end/src/handler/model/base/base.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
null
null
null
import datetime from typing import Any, Callable, Dict, List, Optional, TypedDict, TypeVar import attr from . import base_core, base_db, base_proto def Attrib( # proto section is_proto_field: bool = True, proto_path: Optional[str] = None, proto_converter: Optional[base_proto.ProtoCon...
35.926316
103
0.670964
import datetime from typing import Any, Callable, Dict, List, Optional, TypedDict, TypeVar import attr from . import base_core, base_db, base_proto def Attrib( # proto section is_proto_field: bool = True, proto_path: Optional[str] = None, proto_converter: Optional[base_proto.ProtoCon...
293
0
23
ab6709ada1d832ede7e4a729032186ea8934f7cc
183
py
Python
StackApp/qanda/admin.py
ArsalanShahid116/StackDuplica
77a35624e61147c7ea3f89ca135744c152f3afdb
[ "MIT" ]
1
2022-02-22T09:16:51.000Z
2022-02-22T09:16:51.000Z
StackApp/qanda/admin.py
ArsalanShahid116/StackDuplica
77a35624e61147c7ea3f89ca135744c152f3afdb
[ "MIT" ]
null
null
null
StackApp/qanda/admin.py
ArsalanShahid116/StackDuplica
77a35624e61147c7ea3f89ca135744c152f3afdb
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Question, Answer, Scrapedquestion admin.site.register(Question) admin.site.register(Answer) admin.site.register(Scrapedquestion)
26.142857
53
0.836066
from django.contrib import admin from .models import Question, Answer, Scrapedquestion admin.site.register(Question) admin.site.register(Answer) admin.site.register(Scrapedquestion)
0
0
0
11991c56f6a7b09f2c92a781cdac2f3175fd1a8e
17
py
Python
Random-Programs/dev/games/terminal/networking.py
naumoff0/Archive
d4ad2da89abb1576dd5a7c72ded6bf9b45c3f610
[ "MIT" ]
null
null
null
Random-Programs/dev/games/terminal/networking.py
naumoff0/Archive
d4ad2da89abb1576dd5a7c72ded6bf9b45c3f610
[ "MIT" ]
null
null
null
Random-Programs/dev/games/terminal/networking.py
naumoff0/Archive
d4ad2da89abb1576dd5a7c72ded6bf9b45c3f610
[ "MIT" ]
null
null
null
axŽI=n °²ÂjPÀq
17
17
0.588235
axŽI=n °²ÂjPÀq
0
0
0
0fb98d58bbc4543349973ce90e10e9d3e77907d4
2,049
py
Python
CompareKaro/Crawlers/views.py
sumeet-dang/CompareKaro
296d925d6eea1de6434cc826bfc1f01f4dbc2964
[ "Apache-2.0" ]
null
null
null
CompareKaro/Crawlers/views.py
sumeet-dang/CompareKaro
296d925d6eea1de6434cc826bfc1f01f4dbc2964
[ "Apache-2.0" ]
null
null
null
CompareKaro/Crawlers/views.py
sumeet-dang/CompareKaro
296d925d6eea1de6434cc826bfc1f01f4dbc2964
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from Crawlers.Helpers.amazon_crawler import amazon_crawl from django import template from Crawlers.Helpers.snapdeal_crawler import snapdeal_crawl from Crawlers.Helpers.ebay_crawler import ebay_crawl # Create your views here.
47.651163
357
0.693997
from django.shortcuts import render from Crawlers.Helpers.amazon_crawler import amazon_crawl from django import template from Crawlers.Helpers.snapdeal_crawler import snapdeal_crawl from Crawlers.Helpers.ebay_crawler import ebay_crawl # Create your views here. def load_sources(request): if(request.method == "POS...
1,763
0
22
e05213659f89771bab7bbf34fd7cc5f84d4dccf0
906
py
Python
userbot/plugins/alive.py
Kambojr15/TechnoAyanBOT
24561eae30f5645b0eb6c66ddf87189894fc07d5
[ "MIT" ]
null
null
null
userbot/plugins/alive.py
Kambojr15/TechnoAyanBOT
24561eae30f5645b0eb6c66ddf87189894fc07d5
[ "MIT" ]
null
null
null
userbot/plugins/alive.py
Kambojr15/TechnoAyanBOT
24561eae30f5645b0eb6c66ddf87189894fc07d5
[ "MIT" ]
null
null
null
"""Check if userbot alive. If you change these, you become the gayest gay such that even the gay world will disown you.""" import asyncio from telethon import events from telethon.tl.types import ChannelParticipantsAdmins from platform import uname from userbot import ALIVE_NAME from userbot.utils import admin_cmd DEF...
50.333333
167
0.639073
"""Check if userbot alive. If you change these, you become the gayest gay such that even the gay world will disown you.""" import asyncio from telethon import events from telethon.tl.types import ChannelParticipantsAdmins from platform import uname from userbot import ALIVE_NAME from userbot.utils import admin_cmd DEF...
0
0
0
ffba298880bd79f4ce56feec80bb2e1c9bfdcf61
1,371
py
Python
setup.py
dcslagel/lascheck
4df427a56db14d8e0c64ccea852f1c3e6460e416
[ "MIT" ]
8
2020-01-27T19:29:37.000Z
2021-10-02T17:55:01.000Z
setup.py
dcslagel/lascheck
4df427a56db14d8e0c64ccea852f1c3e6460e416
[ "MIT" ]
7
2020-06-18T11:42:50.000Z
2020-09-27T13:22:51.000Z
setup.py
dcslagel/lascheck
4df427a56db14d8e0c64ccea852f1c3e6460e416
[ "MIT" ]
6
2020-05-16T14:03:27.000Z
2021-08-05T15:00:29.000Z
'''Setup script for lascheck''' from setuptools import setup __version__ = '0.1.4' CLASSIFIERS = [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: End Users/Desktop", "Intended A...
31.883721
95
0.615609
'''Setup script for lascheck''' from setuptools import setup __version__ = '0.1.4' CLASSIFIERS = [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: End Users/Desktop", "Intended A...
0
0
0
9c06108b1212058570739f0790391154d5bfc6a8
1,440
py
Python
miner.py
vijayRT/inkbot
d0b027d02a3b586ec818874eaeb2dc3371276ae3
[ "MIT" ]
1
2017-03-12T18:59:46.000Z
2017-03-12T18:59:46.000Z
miner.py
Kronosfear/inkbot
d0b027d02a3b586ec818874eaeb2dc3371276ae3
[ "MIT" ]
null
null
null
miner.py
Kronosfear/inkbot
d0b027d02a3b586ec818874eaeb2dc3371276ae3
[ "MIT" ]
null
null
null
#tweepy1.py - To test trend obtaining import sys sys.path.append('/home/vijay/.local/lib/python2.7/site-packages') import tweepy import woeid import yweather import time import os import sys reload(sys) #Configure Tweepy API t0 = time.time() consumer_key = 'Osyy0PSrhMRpnIWxjBLzLJeKR' consumer_secret = 'AYY7Qb48y...
23.225806
70
0.688194
#tweepy1.py - To test trend obtaining import sys sys.path.append('/home/vijay/.local/lib/python2.7/site-packages') import tweepy import woeid import yweather import time import os import sys reload(sys) #Configure Tweepy API t0 = time.time() consumer_key = 'Osyy0PSrhMRpnIWxjBLzLJeKR' consumer_secret = 'AYY7Qb48y...
507
0
23
b978e3a842f375a5d74e1d9dd4c49ae33cea9d21
4,184
py
Python
aysa/common/counters.py
aysa-sa/common
07dd6d219eac8c0c73d9bc04e6cc163529c1801b
[ "MIT" ]
null
null
null
aysa/common/counters.py
aysa-sa/common
07dd6d219eac8c0c73d9bc04e6cc163529c1801b
[ "MIT" ]
null
null
null
aysa/common/counters.py
aysa-sa/common
07dd6d219eac8c0c73d9bc04e6cc163529c1801b
[ "MIT" ]
null
null
null
# Author: Alejandro M. BERNARDIS # Email alejandro.bernardis at gmail.com # Created: 2019/11/23 08:53 # El ejemplo fue tomado de: https://github.com/viewfinderco/viewfinder import time from dotted.collection import DottedDict global_manager = CounterManager()
27.346405
79
0.595124
# Author: Alejandro M. BERNARDIS # Email alejandro.bernardis at gmail.com # Created: 2019/11/23 08:53 # El ejemplo fue tomado de: https://github.com/viewfinderco/viewfinder import time from dotted.collection import DottedDict class Counter: def __init__(self, name, factor=1, reset=0, tmpl=None, **kwargs): ...
2,978
650
282
b1c62dec44d97791bec06669fdcfa02b9fa21b07
7,707
py
Python
src/perforce/GUI/OpenedFilesWindow.py
TomMinor/P4VFX
b9a8100423fa4cc0c5bb700f0a2656868bc0a86e
[ "MIT" ]
41
2017-05-26T01:46:04.000Z
2022-03-20T06:59:18.000Z
src/AppPlugins/P4Houdini/python2.7libs/perforce/GUI/OpenedFilesWindow.py
TomMinor/P4VFX
b9a8100423fa4cc0c5bb700f0a2656868bc0a86e
[ "MIT" ]
3
2017-05-26T02:31:17.000Z
2019-04-22T15:47:27.000Z
src/AppPlugins/P4Houdini/python2.7libs/perforce/GUI/OpenedFilesWindow.py
TomMinor/P4VFX
b9a8100423fa4cc0c5bb700f0a2656868bc0a86e
[ "MIT" ]
11
2017-09-18T05:36:19.000Z
2022-02-24T21:52:27.000Z
import os from P4 import P4, P4Exception from qtpy import QtCore, QtGui, QtWidgets import perforce.Utils as Utils from perforce.AppInterop import interop
33.951542
80
0.593746
import os from P4 import P4, P4Exception from qtpy import QtCore, QtGui, QtWidgets import perforce.Utils as Utils from perforce.AppInterop import interop class OpenedFilesUI(QtWidgets.QDialog): def __init__(self, parent=interop.main_parent_window()): super(OpenedFilesUI, self).__init__(parent) def ...
4,875
2,654
23
1f3725f95f61a374cffe215dbc42c1352bd92270
814
py
Python
raccoon_recognizer/racoon_recognizer.py
scmlee/trash-panda-cop
9d419e0b1d823c98479b2692ffab87042612507c
[ "MIT" ]
null
null
null
raccoon_recognizer/racoon_recognizer.py
scmlee/trash-panda-cop
9d419e0b1d823c98479b2692ffab87042612507c
[ "MIT" ]
null
null
null
raccoon_recognizer/racoon_recognizer.py
scmlee/trash-panda-cop
9d419e0b1d823c98479b2692ffab87042612507c
[ "MIT" ]
null
null
null
from logzero import logger, setup_logger, logging import config
37
77
0.636364
from logzero import logger, setup_logger, logging import config class RacoonRecognizer: def __init__(self, type = "AZURE"): logger = config.getLogger() # Initialize either Azure of Google version of the recognizer if (type == "AZURE"): logger.info("Intialize Azure versi...
669
2
79
54b9cfda91f6b65cb9044b164460272963964133
8,281
py
Python
examples/notepad/notepad/forms/main_window_ui.py
haesleinhuepf/pyqode.core
88b9bab081fd580d4de86f3d926a9f0b19146d28
[ "MIT" ]
null
null
null
examples/notepad/notepad/forms/main_window_ui.py
haesleinhuepf/pyqode.core
88b9bab081fd580d4de86f3d926a9f0b19146d28
[ "MIT" ]
null
null
null
examples/notepad/notepad/forms/main_window_ui.py
haesleinhuepf/pyqode.core
88b9bab081fd580d4de86f3d926a9f0b19146d28
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/Users/Colin/Documents/pyqode/core/examples/notepad/forms/main_window.ui' # # Created by: PyQt5 UI code generator 5.4.1 # # WARNING! All changes made in this file will be lost! from qtpy import QtCore, QtGui, QtWidgets from pyqode.core.wid...
54.480263
127
0.711871
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/Users/Colin/Documents/pyqode/core/examples/notepad/forms/main_window.ui' # # Created by: PyQt5 UI code generator 5.4.1 # # WARNING! All changes made in this file will be lost! from qtpy import QtCore, QtGui, QtWidgets class Ui_MainWindow(...
7,792
7
76
a501332432ad53edb9caa6db93033d52b8260516
221
py
Python
itertools-permutations.py
0xecho/HackerRankSolutions
2d525ca9f13297cbee0191e2c14a04208cb97a69
[ "BSD-3-Clause" ]
null
null
null
itertools-permutations.py
0xecho/HackerRankSolutions
2d525ca9f13297cbee0191e2c14a04208cb97a69
[ "BSD-3-Clause" ]
null
null
null
itertools-permutations.py
0xecho/HackerRankSolutions
2d525ca9f13297cbee0191e2c14a04208cb97a69
[ "BSD-3-Clause" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT from itertools import permutations a,b=input().split() l=[] for i in permutations(a,int(b)): l.append("".join(i)) print(*sorted(l),sep="\n")
22.1
69
0.674208
# Enter your code here. Read input from STDIN. Print output to STDOUT from itertools import permutations a,b=input().split() l=[] for i in permutations(a,int(b)): l.append("".join(i)) print(*sorted(l),sep="\n")
0
0
0
b77fb1665802ba3e8e72ec46268880c63568c905
2,272
py
Python
apps/DeepFaceLive/ui/widgets/QBCFinalFrameViewer.py
kitiv/DeepFaceLive
ca3a005917ae067576b795d8b9fef5a8b3483010
[ "MIT" ]
4
2021-07-23T16:34:24.000Z
2022-03-01T18:31:59.000Z
apps/DeepFaceLive/ui/widgets/QBCFinalFrameViewer.py
kitiv/DeepFaceLive
ca3a005917ae067576b795d8b9fef5a8b3483010
[ "MIT" ]
null
null
null
apps/DeepFaceLive/ui/widgets/QBCFinalFrameViewer.py
kitiv/DeepFaceLive
ca3a005917ae067576b795d8b9fef5a8b3483010
[ "MIT" ]
1
2021-09-06T15:05:28.000Z
2021-09-06T15:05:28.000Z
from localization import L from PyQt6.QtCore import * from PyQt6.QtGui import * from PyQt6.QtWidgets import * from resources.fonts import QXFontDB from xlib import qt as lib_qt from ... import backend
37.245902
105
0.625
from localization import L from PyQt6.QtCore import * from PyQt6.QtGui import * from PyQt6.QtWidgets import * from resources.fonts import QXFontDB from xlib import qt as lib_qt from ... import backend class QBCFinalFrameViewer(lib_qt.QXCollapsibleSection): def __init__(self, backed_weak_heap : backend.BackendWe...
1,931
34
103
a7aac7f5fb0381dec1b2dca3a584880cc31d52e6
8,728
py
Python
examples/earm/fit_1_3_standalone.py
johnbachman/bayessb
0c4c4d57218edea2786616077600f07ed821337e
[ "BSD-2-Clause" ]
1
2015-04-02T21:04:39.000Z
2015-04-02T21:04:39.000Z
examples/earm/fit_1_3_standalone.py
LoLab-VU/bayessb
0a21da7383e78ab1d9666f4faa9a57893aa31397
[ "BSD-2-Clause" ]
null
null
null
examples/earm/fit_1_3_standalone.py
LoLab-VU/bayessb
0a21da7383e78ab1d9666f4faa9a57893aa31397
[ "BSD-2-Clause" ]
null
null
null
# Fits EARM 1.3 (Gaudet et. al 2012) against a single-cell time course # measurement of an executioner caspase reporter (a proxy for Caspase-3 activity # i.e. PARP cleavage). The model is contained in earm_1_3_standalone.py which # was produced via export from a PySB implementation of the model # (pysb.examples.earm_1_...
43.64
95
0.665445
# Fits EARM 1.3 (Gaudet et. al 2012) against a single-cell time course # measurement of an executioner caspase reporter (a proxy for Caspase-3 activity # i.e. PARP cleavage). The model is contained in earm_1_3_standalone.py which # was produced via export from a PySB implementation of the model # (pysb.examples.earm_1_...
4,059
0
23
0adb2badb77522872cd8922dc99a45d52f1af621
1,309
py
Python
Chapter_BestPractices/Feature_Engineering_quadraticFit.py
ML-PSE/Machine_Learning_for_PSE
b53578d7cc0e0eca4907527b188a60de06d6710e
[ "Apache-2.0" ]
2
2022-02-20T18:57:46.000Z
2022-03-03T07:07:12.000Z
Chapter_BestPractices/Feature_Engineering_quadraticFit.py
ML-PSE/Machine_Learning_for_PSE
b53578d7cc0e0eca4907527b188a60de06d6710e
[ "Apache-2.0" ]
null
null
null
Chapter_BestPractices/Feature_Engineering_quadraticFit.py
ML-PSE/Machine_Learning_for_PSE
b53578d7cc0e0eca4907527b188a60de06d6710e
[ "Apache-2.0" ]
null
null
null
##%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ## Feature Engineering (quadratic fit via linear model) ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #%% read data import numpy as np data = np.loadtxt('quadratic_raw_data.csv', del...
29.75
80
0.614973
##%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ## Feature Engineering (quadratic fit via linear model) ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #%% read data import numpy as np data = np.loadtxt('quadratic_raw_data.csv', del...
0
0
0
5335324f77fcba245683531ccac4bdda0873097c
6,691
py
Python
pynucastro/rates/tests/test_rates.py
XinlongSBU/pynucastro
4f1547e99208ad03d8f79d748601219591a157b5
[ "BSD-3-Clause" ]
18
2018-01-18T20:41:28.000Z
2022-03-02T22:06:47.000Z
pynucastro/rates/tests/test_rates.py
XinlongSBU/pynucastro
4f1547e99208ad03d8f79d748601219591a157b5
[ "BSD-3-Clause" ]
139
2018-01-18T21:29:18.000Z
2022-03-30T15:24:05.000Z
pynucastro/rates/tests/test_rates.py
XinlongSBU/pynucastro
4f1547e99208ad03d8f79d748601219591a157b5
[ "BSD-3-Clause" ]
22
2018-01-26T18:59:49.000Z
2022-03-24T05:25:52.000Z
# unit tests for rates import math import pynucastro.rates as rates from pytest import approx
28.47234
71
0.578688
# unit tests for rates import math import pynucastro.rates as rates from pytest import approx class TestTfactors(object): @classmethod def setup_class(cls): """ this is run once for each class before any tests """ pass @classmethod def teardown_class(cls): """ this is run onc...
3,107
3,417
69
d60c05382f861663a676299f5ec32067e8b72145
6,483
py
Python
library/vmanage_feature_template.py
johnwelby1965/viptela
fe19bd247fc0d797b9b1d87c77395dd5abfc5f35
[ "BSD-Source-Code" ]
28
2019-06-05T17:50:19.000Z
2021-10-31T11:24:19.000Z
library/vmanage_feature_template.py
johnwelby1965/viptela
fe19bd247fc0d797b9b1d87c77395dd5abfc5f35
[ "BSD-Source-Code" ]
35
2019-06-05T19:06:09.000Z
2022-03-22T00:45:51.000Z
library/vmanage_feature_template.py
johnwelby1965/viptela
fe19bd247fc0d797b9b1d87c77395dd5abfc5f35
[ "BSD-Source-Code" ]
20
2019-07-08T20:06:50.000Z
2022-03-20T18:04:42.000Z
#!/usr/bin/env python ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } from ansible.module_utils.basic import AnsibleModule, json from ansible.module_utils.viptela import viptelaModule, viptela_argument_spec from collections import OrderedDict if __na...
48.380597
147
0.592318
#!/usr/bin/env python ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } from ansible.module_utils.basic import AnsibleModule, json from ansible.module_utils.viptela import viptelaModule, viptela_argument_spec from collections import OrderedDict def run_m...
6,086
0
46
573f25db3883e8c8bb39b065f576bd1012808ed2
1,941
py
Python
utils/arg_utils.py
syelman/DM-Count
882f52478014ac68c154bff1f86668bddcb8adf4
[ "MIT" ]
3
2021-04-15T15:51:54.000Z
2021-09-01T08:19:39.000Z
utils/arg_utils.py
SelmanOzleyen/DM-Count
882f52478014ac68c154bff1f86668bddcb8adf4
[ "MIT" ]
null
null
null
utils/arg_utils.py
SelmanOzleyen/DM-Count
882f52478014ac68c154bff1f86668bddcb8adf4
[ "MIT" ]
1
2021-07-16T06:00:50.000Z
2021-07-16T06:00:50.000Z
def assign_latest_cp(args): """ From the given arguments checks the 'out_path' parameters. Looks for a checkpoint assuming the checkpoint was saved in out_path and the previous run was with the same training parameters. Example: If you run the program with these arguments; "data...
41.297872
97
0.582174
def assign_latest_cp(args): """ From the given arguments checks the 'out_path' parameters. Looks for a checkpoint assuming the checkpoint was saved in out_path and the previous run was with the same training parameters. Example: If you run the program with these arguments; "data...
208
0
26
b93f7c7deeb7c3a8b24356d19527891a4fe52f38
2,812
py
Python
nasergame/components/wireframe.py
nfearnley/nasergame
ada3a6937b955e31d0da8bf5205b861f2c58b1a4
[ "MIT" ]
null
null
null
nasergame/components/wireframe.py
nfearnley/nasergame
ada3a6937b955e31d0da8bf5205b861f2c58b1a4
[ "MIT" ]
null
null
null
nasergame/components/wireframe.py
nfearnley/nasergame
ada3a6937b955e31d0da8bf5205b861f2c58b1a4
[ "MIT" ]
null
null
null
import pygame from digicolor import colors import numpy as np from nasergame.lib import math3d as m3d __all__ = ["Wireframe"] def pairs(iterable): "s -> (s0,s1), (s1,s2), (s2, s3), ..." return zip(iterable[::2], iterable[1::2])
31.954545
90
0.589616
import pygame from digicolor import colors import numpy as np from nasergame.lib import math3d as m3d __all__ = ["Wireframe"] def pairs(iterable): "s -> (s0,s1), (s1,s2), (s2, s3), ..." return zip(iterable[::2], iterable[1::2]) def clip(line_nodes): clipped_nodes = [] for n, f in pairs(line_nodes)...
2,285
-3
288
f0f1716ac5b1a7a3f286113d26fa0f48532ae85a
121
py
Python
main.py
Monte95-boss/machine-learning-fav
774bfb418f1754880ef17105ff1e4936be751ca9
[ "MIT" ]
null
null
null
main.py
Monte95-boss/machine-learning-fav
774bfb418f1754880ef17105ff1e4936be751ca9
[ "MIT" ]
null
null
null
main.py
Monte95-boss/machine-learning-fav
774bfb418f1754880ef17105ff1e4936be751ca9
[ "MIT" ]
null
null
null
import numpy as np a = np.array([[3,2,1], [5, 4, -1]]) b = np.array([[4,5,7], [-3, 4, -1]]) print(a*b) print(a) print(b)
17.285714
36
0.512397
import numpy as np a = np.array([[3,2,1], [5, 4, -1]]) b = np.array([[4,5,7], [-3, 4, -1]]) print(a*b) print(a) print(b)
0
0
0
107e55b899b89d8acc23697da4848cbd4fc45f8c
8,289
py
Python
restae/serializers.py
tolsac/gae-rest-framework
0ac2a99f14f8204bf546b3aafd37ba953a247fe3
[ "MIT" ]
2
2018-08-01T13:14:08.000Z
2019-04-22T18:53:52.000Z
restae/serializers.py
tolsac/restae
0ac2a99f14f8204bf546b3aafd37ba953a247fe3
[ "MIT" ]
null
null
null
restae/serializers.py
tolsac/restae
0ac2a99f14f8204bf546b3aafd37ba953a247fe3
[ "MIT" ]
null
null
null
""" Serializers """ import datetime import collections from dateutil import parser from google.appengine.ext.ndb import ModelAttribute from exceptions import ValidationError, SerializerError from helpers import get_key_from_urlsafe, KEY_CLASS TYPE_MAPPING = { 'IntegerProperty': IntegerField, 'Floa...
29.18662
120
0.556159
""" Serializers """ import datetime import collections from dateutil import parser from google.appengine.ext.ndb import ModelAttribute from exceptions import ValidationError, SerializerError from helpers import get_key_from_urlsafe, KEY_CLASS def get_attribute(obj, name): if issubclass(obj.__class__, collection...
5,901
1,445
382
7eebfb5d7d84231a8be77e5500d77bbfc5d53a13
2,379
py
Python
backend/app/tests/api/node_comment/test_delete.py
hollyfoxx/ace2-gui
e0f72cafdd524e0cd66549a9315697aa21ae46fa
[ "Apache-2.0" ]
1
2021-07-16T10:34:22.000Z
2021-07-16T10:34:22.000Z
backend/app/tests/api/node_comment/test_delete.py
hollyfoxx/ace2-gui
e0f72cafdd524e0cd66549a9315697aa21ae46fa
[ "Apache-2.0" ]
null
null
null
backend/app/tests/api/node_comment/test_delete.py
hollyfoxx/ace2-gui
e0f72cafdd524e0cd66549a9315697aa21ae46fa
[ "Apache-2.0" ]
null
null
null
import uuid from fastapi import status """ NOTE: There are no tests for the foreign key constraints. The DELETE endpoint will need to be updated once the endpoints are in place in order to account for this. """ # # INVALID TESTS # # # VALID TESTS #
27.988235
120
0.663304
import uuid from fastapi import status """ NOTE: There are no tests for the foreign key constraints. The DELETE endpoint will need to be updated once the endpoints are in place in order to account for this. """ # # INVALID TESTS # def test_delete_invalid_uuid(client): delete = client.delete("/api/node/commen...
2,051
0
69
54be1ff0cd24684377ef2c06429310cd67edb973
1,994
py
Python
assets/ur_assemble/track_data/plot_3d.py
akux2021/Isaac-drlgrasp
89c14e98462fd2ef7cac78be1f0e8e7a74d02417
[ "Apache-2.0" ]
null
null
null
assets/ur_assemble/track_data/plot_3d.py
akux2021/Isaac-drlgrasp
89c14e98462fd2ef7cac78be1f0e8e7a74d02417
[ "Apache-2.0" ]
null
null
null
assets/ur_assemble/track_data/plot_3d.py
akux2021/Isaac-drlgrasp
89c14e98462fd2ef7cac78be1f0e8e7a74d02417
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt x,y,z = [], [], [] xd,yd,zd = [], [], [] x_fname = '/home/cobot/Desktop/assemble_project/track_data/assemble_0.01s/dataFile_x.txt' x_dmp_fname = '/home/cobot/Desktop/assemble_project/track_data/assemble_0.01s/dmp_dataFi...
32.688525
97
0.672016
#!/usr/bin/env python import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt x,y,z = [], [], [] xd,yd,zd = [], [], [] x_fname = '/home/cobot/Desktop/assemble_project/track_data/assemble_0.01s/dataFile_x.txt' x_dmp_fname = '/home/cobot/Desktop/assemble_project/track_data/assemble_0.01s/dmp_dataFi...
0
0
0
a3504b1078fd64c3d2cb51f1f20e98fe4832217c
1,122
py
Python
app.py
MarkCDavid/vgtu-gcal
78779d6bad02668a91fa0af7a6b372f45051e449
[ "MIT" ]
null
null
null
app.py
MarkCDavid/vgtu-gcal
78779d6bad02668a91fa0af7a6b372f45051e449
[ "MIT" ]
2
2021-03-31T19:36:48.000Z
2021-12-13T20:31:34.000Z
app.py
MarkCDavid/vgtu-gcal
78779d6bad02668a91fa0af7a6b372f45051e449
[ "MIT" ]
null
null
null
#!python from timetable.timetableparser import parse import sys import export import argparse if __name__ == "__main__": convert(*build_options())
34
116
0.688948
#!python from timetable.timetableparser import parse import sys import export import argparse def change_extension(filename, new_extension): return f"{'.'.join(filename.split('.')[:-1])}.{new_extension}" def build_options(): parser = argparse.ArgumentParser() parser.add_argument('input', default=sys.st...
896
0
69
cebf6de8dd14ae58b957f54f469884594aefea16
1,544
py
Python
part-01.py
marvinlemos/introduction-to-ann
a83e720c4bbbe48367882a02a2cd191cabc35067
[ "MIT" ]
null
null
null
part-01.py
marvinlemos/introduction-to-ann
a83e720c4bbbe48367882a02a2cd191cabc35067
[ "MIT" ]
null
null
null
part-01.py
marvinlemos/introduction-to-ann
a83e720c4bbbe48367882a02a2cd191cabc35067
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Sep 29 09:22:06 2018 @author: marvin """ import numpy as np ## 1. Data dimensions ### 2. Scalars: 0-dimension height = np.array(1.79) age = np.array(1.79, dtype=np.uint8) ##unsigned int # age2 becomes int64 age2 = age + 3 age2 = age + np.array(3, d...
19.544304
88
0.638601
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Sep 29 09:22:06 2018 @author: marvin """ import numpy as np ## 1. Data dimensions ### 2. Scalars: 0-dimension height = np.array(1.79) age = np.array(1.79, dtype=np.uint8) ##unsigned int # age2 becomes int64 age2 = age + 3 age2 = age + np.array(3, d...
21
0
23
dd9d46d47e4254d726bfbb521a4f94826b275c11
850
py
Python
py/scrap_heroes/test/test_utils.py
BenjaminCbr/cinoisp-storm
94151e8f741fba8a24bd3e5fdea41d79b39bc47d
[ "Apache-2.0" ]
null
null
null
py/scrap_heroes/test/test_utils.py
BenjaminCbr/cinoisp-storm
94151e8f741fba8a24bd3e5fdea41d79b39bc47d
[ "Apache-2.0" ]
null
null
null
py/scrap_heroes/test/test_utils.py
BenjaminCbr/cinoisp-storm
94151e8f741fba8a24bd3e5fdea41d79b39bc47d
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.test import TestCase from ..utils import partial_dict_equals
22.972973
67
0.482353
from __future__ import unicode_literals from django.test import TestCase from ..utils import partial_dict_equals class DictUtilsTest(TestCase): def test_partial_dict_equals__regular_case(self): small_dict = { "a": 1, "b": [2, 3, 6], "d": False } big_d...
648
9
77
026b04032254c56bb331f8147d5e5f5949c14d44
2,731
py
Python
tests/acceptance/commons/constants.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
null
null
null
tests/acceptance/commons/constants.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
88
2015-07-21T22:13:23.000Z
2016-11-15T21:28:56.000Z
tests/acceptance/commons/constants.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
2
2015-08-12T11:19:55.000Z
2018-05-25T19:04:43.000Z
# -*- coding: utf-8 -*- # Copyright 2015-2016 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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: # # htt...
34.56962
75
0.819114
# -*- coding: utf-8 -*- # Copyright 2015-2016 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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: # # htt...
0
0
0
e049b825a1420443cd374a64329ca251929cbd2e
4,327
py
Python
strong_graphs/generator.py
stevedwards/strong-graphs
b509dc68fa4ce5c07664ba84e5f8dbf1888d4f8e
[ "MIT" ]
1
2020-07-16T03:26:07.000Z
2020-07-16T03:26:07.000Z
strong_graphs/generator.py
stevedwards/strong-graphs
b509dc68fa4ce5c07664ba84e5f8dbf1888d4f8e
[ "MIT" ]
10
2020-07-15T06:07:59.000Z
2020-07-17T01:02:59.000Z
strong_graphs/generator.py
stevedwards/strong-graphs
b509dc68fa4ce5c07664ba84e5f8dbf1888d4f8e
[ "MIT" ]
1
2020-07-16T05:38:38.000Z
2020-07-16T05:38:38.000Z
import itertools import math import random from functools import partial from strong_graphs.output import output from strong_graphs.data_structure import Network from strong_graphs.negative import ( nb_neg_arcs, nb_neg_loop_arcs, nb_neg_tree_arcs, ) from strong_graphs.arc_generators import ( gen_tree_ar...
30.687943
97
0.619598
import itertools import math import random from functools import partial from strong_graphs.output import output from strong_graphs.data_structure import Network from strong_graphs.negative import ( nb_neg_arcs, nb_neg_loop_arcs, nb_neg_tree_arcs, ) from strong_graphs.arc_generators import ( gen_tree_ar...
622
0
93
ad66a61feb5dd0bbb57eec219098dc11a8b913b2
3,350
py
Python
src/ch_spring_2021/resources/starter.py
GuillaumeEscande/gaming-tools
2803d32fcefec90d28e43f9efd32ab1338de78f6
[ "MIT" ]
null
null
null
src/ch_spring_2021/resources/starter.py
GuillaumeEscande/gaming-tools
2803d32fcefec90d28e43f9efd32ab1338de78f6
[ "MIT" ]
null
null
null
src/ch_spring_2021/resources/starter.py
GuillaumeEscande/gaming-tools
2803d32fcefec90d28e43f9efd32ab1338de78f6
[ "MIT" ]
null
null
null
import sys import math from enum import Enum import random number_of_cells = int(input()) game = Game() for i in range(number_of_cells): cell_index, richness, neigh_0, neigh_1, neigh_2, neigh_3, neigh_4, neigh_5 = [int(j) for j in input().split()] game.board.append(Cell(cell_index, richness, [neigh_...
32.843137
115
0.617015
import sys import math from enum import Enum import random class Cell: def __init__(self, cell_index, richness, neighbors): self.cell_index = cell_index self.richness = richness self.neighbors = neighbors class Tree: def __init__(self, cell_index, size, is_mine, is_dormant)...
1,546
153
234
5d7374a99e35b6523ff1674b87b2261410c343a3
1,629
py
Python
finance/csvapi.py
nuwainfo/treeio
f57bf9114d9774c11468a1b0e44614b04631beb1
[ "MIT" ]
null
null
null
finance/csvapi.py
nuwainfo/treeio
f57bf9114d9774c11468a1b0e44614b04631beb1
[ "MIT" ]
null
null
null
finance/csvapi.py
nuwainfo/treeio
f57bf9114d9774c11468a1b0e44614b04631beb1
[ "MIT" ]
null
null
null
# encoding: utf-8 # Copyright 2011 Tree.io Limited # This file is part of Treeio. # License www.tree.io/license """ Import/Export Contacts API """ import csv from django.http import HttpResponse import StringIO import datetime class ProcessTransactions(): "Import/Export Contacts" def export_transactions(s...
29.618182
115
0.647023
# encoding: utf-8 # Copyright 2011 Tree.io Limited # This file is part of Treeio. # License www.tree.io/license """ Import/Export Contacts API """ import csv from django.http import HttpResponse import StringIO import datetime class ProcessTransactions(): "Import/Export Contacts" def export_transactions(s...
0
0
0
5847eb5c1a96636c15cd01dc8655e2afc973801e
21,131
py
Python
polymuse/rnn.py
rushike/polymuse-future
25af861e11fc3f4f95327405fec15d48bcc84a62
[ "MIT" ]
1
2019-11-30T11:12:08.000Z
2019-11-30T11:12:08.000Z
polymuse/rnn.py
rushike/polymuse-future
25af861e11fc3f4f95327405fec15d48bcc84a62
[ "MIT" ]
null
null
null
polymuse/rnn.py
rushike/polymuse-future
25af861e11fc3f4f95327405fec15d48bcc84a62
[ "MIT" ]
null
null
null
""" Model building using keras library This includes code for building the various RNN base models for our polymuse The models are store in current directory, in hierarchy --h5_models/ --piano/ --stateful/ --stateless/ --lead/ --stateful/ --stateless/ --drum/ -...
33.863782
198
0.613033
""" Model building using keras library This includes code for building the various RNN base models for our polymuse The models are store in current directory, in hierarchy --h5_models/ --piano/ --stateful/ --stateless/ --lead/ --stateful/ --stateless/ --drum/ -...
19,514
0
347
aa6c6de23c6ce63b3210c4f7466946e693e377d9
1,489
py
Python
base_site/mainapp/schedule.py
ricardochaves/financeiro-bot
2c48be4355e3c8630c36aa846c16042f22b88271
[ "MIT" ]
4
2020-01-21T00:21:44.000Z
2021-06-15T19:38:36.000Z
base_site/mainapp/schedule.py
ricardochaves/financeiro-bot
2c48be4355e3c8630c36aa846c16042f22b88271
[ "MIT" ]
173
2019-11-18T08:19:44.000Z
2021-09-08T01:37:19.000Z
base_site/mainapp/schedule.py
ricardochaves/financeiro-bot
2c48be4355e3c8630c36aa846c16042f22b88271
[ "MIT" ]
3
2020-01-28T19:19:35.000Z
2021-05-01T02:33:36.000Z
import asyncio import json import logging from datetime import date from datetime import datetime from datetime import time import arrow import telepot from base_site.mainapp.models import Records from django.conf import settings from telepot.aio.loop import MessageLoop
28.634615
94
0.631968
import asyncio import json import logging from datetime import date from datetime import datetime from datetime import time import arrow import telepot from base_site.mainapp.models import Records from django.conf import settings from telepot.aio.loop import MessageLoop def execute_command(str_dict): # Create di...
1,193
0
23
76ee50cc5236f28b4d55f384e4043818c65bd291
5,430
py
Python
configs/topologies/Cluster.py
caihuayi/gem5
96fce476785a834f102ae69a895e661cf08e47cd
[ "BSD-3-Clause" ]
16
2020-09-24T00:17:36.000Z
2021-08-12T06:11:52.000Z
configs/topologies/Cluster.py
caihuayi/gem5
96fce476785a834f102ae69a895e661cf08e47cd
[ "BSD-3-Clause" ]
5
2021-01-27T23:09:06.000Z
2022-01-07T03:19:39.000Z
configs/topologies/Cluster.py
caihuayi/gem5
96fce476785a834f102ae69a895e661cf08e47cd
[ "BSD-3-Clause" ]
15
2020-11-18T00:15:28.000Z
2021-12-12T03:18:34.000Z
# Copyright (c) 2012 Advanced Micro Devices, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditions...
41.769231
86
0.643462
# Copyright (c) 2012 Advanced Micro Devices, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditions...
379
0
132
a68cd80b8eef2cd943c057ee27259bdc326f57e0
501
py
Python
setup.py
stevedpedersen/spotify-enthusiast
91d40ae94a892be8db51d48d624b1a3849e30001
[ "MIT" ]
3
2017-12-14T07:37:12.000Z
2019-10-11T16:34:18.000Z
setup.py
stevedpedersen/spotify-enthusiast
91d40ae94a892be8db51d48d624b1a3849e30001
[ "MIT" ]
19
2017-11-09T19:18:08.000Z
2017-12-09T00:33:56.000Z
setup.py
stevedpedersen/spotify-enthusiast
91d40ae94a892be8db51d48d624b1a3849e30001
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='spotify_infosuite', version='0.1.0', description='Provides info about song/artist', long_description=readme, url='https://github.com/stevedpedersen/spotify-inf...
25.05
59
0.738523
from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='spotify_infosuite', version='0.1.0', description='Provides info about song/artist', long_description=readme, url='https://github.com/stevedpedersen/spotify-inf...
0
0
0
ee1dfa06d170c3f3af2ca0895ade8f214a1cd226
2,313
py
Python
src/antidote/_implementation.py
Finistere/dependency_manager
5a183d46ac5d760944dc507d1281813d02d2c75e
[ "MIT" ]
null
null
null
src/antidote/_implementation.py
Finistere/dependency_manager
5a183d46ac5d760944dc507d1281813d02d2c75e
[ "MIT" ]
null
null
null
src/antidote/_implementation.py
Finistere/dependency_manager
5a183d46ac5d760944dc507d1281813d02d2c75e
[ "MIT" ]
null
null
null
import functools import warnings from typing import Callable, Generic, Hashable, Type, TypeVar from typing_extensions import ParamSpec from ._internal import API from ._providers.indirect import ImplementationDependency P = ParamSpec("P") T = TypeVar("T") # @API.private @API.private
36.140625
93
0.712062
import functools import warnings from typing import Callable, Generic, Hashable, Type, TypeVar from typing_extensions import ParamSpec from ._internal import API from ._providers.indirect import ImplementationDependency P = ParamSpec("P") T = TypeVar("T") # @API.private class ImplementationWrapper(Generic[P, T]): ...
1,822
22
178
6efa9f3eeb3239f285419298b4ea464cc1b89696
631
py
Python
bluebottle/categories/migrations/0012_category_video.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/categories/migrations/0012_category_video.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/categories/migrations/0012_category_video.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2020-09-04 08:33 from __future__ import unicode_literals import bluebottle.files.validators from django.db import migrations, models
28.681818
192
0.679873
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2020-09-04 08:33 from __future__ import unicode_literals import bluebottle.files.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('categories', '0011_auto_20200422_0821'), ] oper...
0
416
23
613d0a5524d6c8f8a0c28b26487b0c9a61e4ee9e
1,979
py
Python
configuration.py
nichwall/LASA-Engineering-Design-Quizzes
ff86e51537efae1614601af576bac56ddb816cc4
[ "MIT" ]
null
null
null
configuration.py
nichwall/LASA-Engineering-Design-Quizzes
ff86e51537efae1614601af576bac56ddb816cc4
[ "MIT" ]
null
null
null
configuration.py
nichwall/LASA-Engineering-Design-Quizzes
ff86e51537efae1614601af576bac56ddb816cc4
[ "MIT" ]
null
null
null
# Uses Python 2.7 print "This program will allow you to easily edit the quiz data." print "It assumes that a folder named 'Website' is in the same directory\n and that the folder structure matches that of the" print "one located at https://github.com/nichwall/LASA-Engineering-Design-Quizzes." print "\nThe quiz data is...
24.134146
125
0.654876
# Uses Python 2.7 print "This program will allow you to easily edit the quiz data." print "It assumes that a folder named 'Website' is in the same directory\n and that the folder structure matches that of the" print "one located at https://github.com/nichwall/LASA-Engineering-Design-Quizzes." print "\nThe quiz data is...
0
0
0
6403fdbba154094702965a8c72c882a911f8af11
3,893
py
Python
misago/misago/users/tests/test_profilefields.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
2
2021-03-06T21:06:13.000Z
2021-03-09T15:05:12.000Z
misago/misago/users/tests/test_profilefields.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
misago/misago/users/tests/test_profilefields.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from ..profilefields import ProfileFields User = get_user_model()
30.653543
91
0.529155
from django.contrib.auth import get_user_model from django.test import TestCase from ..profilefields import ProfileFields User = get_user_model() class ProfileFieldsLoadTests(TestCase): def test_no_groups(self): """profile fields util handles empty list""" profilefields = ProfileFields([]) ...
0
3,721
23
6fa1263674a791a83fe2fc36b1219428637220f6
1,330
py
Python
leetcode/445. Add Two Numbers II/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
leetcode/445. Add Two Numbers II/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
leetcode/445. Add Two Numbers II/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next # Takes a linked list and reverses it.
31.666667
68
0.502256
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: l1 = self.reverse(l1) l2 = self.reverse(l2) result = None ...
1,057
-6
74
c7839be81eed502f913e07a7ef665a971a8aec9c
2,093
py
Python
examples/bSplineExample.py
bddonovan/PyXFocus
2d6722f0db28c045df35075487f9d4fdfed8b284
[ "MIT" ]
1
2018-04-20T15:32:24.000Z
2018-04-20T15:32:24.000Z
examples/bSplineExample.py
bddonovan/PyXFocus
2d6722f0db28c045df35075487f9d4fdfed8b284
[ "MIT" ]
6
2017-11-03T16:13:46.000Z
2019-04-26T11:13:03.000Z
examples/bSplineExample.py
bddonovan/PyXFocus
2d6722f0db28c045df35075487f9d4fdfed8b284
[ "MIT" ]
4
2017-04-13T17:24:54.000Z
2019-08-08T15:27:29.000Z
#----------------------------------------------------------------------------------- #----------------------------------------------------------------------------------- #-------------------------------B-SPLINE EXAMPLE CODE------------------------------- #----------------------------------------------------------------...
38.054545
84
0.494983
#----------------------------------------------------------------------------------- #----------------------------------------------------------------------------------- #-------------------------------B-SPLINE EXAMPLE CODE------------------------------- #----------------------------------------------------------------...
0
0
0
d7cc682576d493869c8cc0046039e08f8eee85b5
1,811
py
Python
spider/common/get_user_agent.py
mofei77/hkjc
91e9ea31a5d84b0d2fe7ca27813cb31b9f82290e
[ "MIT" ]
2
2020-01-12T15:51:19.000Z
2020-02-01T04:10:39.000Z
spider/common/get_user_agent.py
mofei77/hkjc
91e9ea31a5d84b0d2fe7ca27813cb31b9f82290e
[ "MIT" ]
null
null
null
spider/common/get_user_agent.py
mofei77/hkjc
91e9ea31a5d84b0d2fe7ca27813cb31b9f82290e
[ "MIT" ]
null
null
null
import random HEADERS = { 'Host': 'bet.hkjc.com', 'User-Agent': getheaders(), 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': 'zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2', 'Accept-Encoding': 'gzip, deflate, ...
67.074074
140
0.59249
import random def getheaders(): user_agent_list = ['Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1464.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.16 Safari/537.36', 'Mozil...
1,373
0
23
d5f236c3098d67643d3e291020f49b83a4e2f82c
8,117
py
Python
pyrasta/tools/conversion.py
benjaminpillot/pyrasta
660564923f9e3a27974be968303d0dec95fb27e9
[ "MIT" ]
null
null
null
pyrasta/tools/conversion.py
benjaminpillot/pyrasta
660564923f9e3a27974be968303d0dec95fb27e9
[ "MIT" ]
null
null
null
pyrasta/tools/conversion.py
benjaminpillot/pyrasta
660564923f9e3a27974be968303d0dec95fb27e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Module summary description. More detailed description. """ from pyrasta.crs import srs_from from pyrasta.io_.files import RasterTempFile, VrtTempFile from pyrasta.tools import _gdal_temp_dataset, _return_raster from osgeo import gdal_array import affine import gdal @_return_raster def ...
31.219231
96
0.557965
# -*- coding: utf-8 -*- """ Module summary description. More detailed description. """ from pyrasta.crs import srs_from from pyrasta.io_.files import RasterTempFile, VrtTempFile from pyrasta.tools import _gdal_temp_dataset, _return_raster from osgeo import gdal_array import affine import gdal @_return_raster def ...
443
0
44
953d6c6671c84ba627b935dbbff495979027a3e1
7,192
py
Python
dog.py
Lock-n/Process-Memory-Monitor
f91863923c02f44b16fe1f8398c4088971b53fa6
[ "MIT" ]
null
null
null
dog.py
Lock-n/Process-Memory-Monitor
f91863923c02f44b16fe1f8398c4088971b53fa6
[ "MIT" ]
null
null
null
dog.py
Lock-n/Process-Memory-Monitor
f91863923c02f44b16fe1f8398c4088971b53fa6
[ "MIT" ]
null
null
null
import sys, imp; # Check if psutil is installed try: f, pathname, desc = imp.find_module("psutil", sys.path[1:]) except ImportError: print("Install psutil with \"pip install --user psutil\"") sys.exit(0) import psutil, time, threading, ctypes # An included library with Python install. mm = Memor...
38.666667
157
0.50431
import sys, imp; # Check if psutil is installed try: f, pathname, desc = imp.find_module("psutil", sys.path[1:]) except ImportError: print("Install psutil with \"pip install --user psutil\"") sys.exit(0) import psutil, time, threading, ctypes # An included library with Python install. class MemoryMonito...
6,195
631
23
62b7fc6c97343397723c99b3d06d614c0f04e41d
155
py
Python
DMOJ/CCC/2019/S1-Flipper.py
devAdhiraj/Competitive-Programming
90116dd9532dcdf3947d1874910c8c797afe949e
[ "MIT" ]
null
null
null
DMOJ/CCC/2019/S1-Flipper.py
devAdhiraj/Competitive-Programming
90116dd9532dcdf3947d1874910c8c797afe949e
[ "MIT" ]
null
null
null
DMOJ/CCC/2019/S1-Flipper.py
devAdhiraj/Competitive-Programming
90116dd9532dcdf3947d1874910c8c797afe949e
[ "MIT" ]
null
null
null
a,b,c,d = 1,2,3,4 f= input() if(f.count("V")%2 != 0): a, b, c, d = b, a, d, c if(f.count("H")%2 != 0): a, b, c, d = c, d, a, b print(a,b) print(c,d)
14.090909
25
0.425806
a,b,c,d = 1,2,3,4 f= input() if(f.count("V")%2 != 0): a, b, c, d = b, a, d, c if(f.count("H")%2 != 0): a, b, c, d = c, d, a, b print(a,b) print(c,d)
0
0
0
b34e98e9d9b09654e3045c4aa07bc11e3b524ab6
29,251
py
Python
src/esdl_config.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
null
null
null
src/esdl_config.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
14
2020-09-30T21:16:46.000Z
2021-11-08T18:54:34.000Z
src/esdl_config.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
1
2020-09-17T12:48:57.000Z
2020-09-17T12:48:57.000Z
# This work is based on original code developed and copyrighted by TNO 2020. # Subsequent contributions are licensed to you by the developers of such code and are # made available to the Project under one or several contributor license agreements. # # This work is licensed to you under the Apache License, Version 2...
44.052711
199
0.358689
# This work is based on original code developed and copyrighted by TNO 2020. # Subsequent contributions are licensed to you by the developers of such code and are # made available to the Project under one or several contributor license agreements. # # This work is licensed to you under the Apache License, Version 2...
0
0
0
db64a408e9d8673a66f61ce0ec856f4bf266b97a
8,376
py
Python
pype/hosts/standalonepublisher/plugins/publish/extract_bg_for_compositing.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
pype/hosts/standalonepublisher/plugins/publish/extract_bg_for_compositing.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
pype/hosts/standalonepublisher/plugins/publish/extract_bg_for_compositing.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
import os import json import copy import pype.api from avalon import io PSDImage = None
34.469136
80
0.553128
import os import json import copy import pype.api from avalon import io PSDImage = None class ExtractBGForComp(pype.api.Extractor): label = "Extract Background for Compositing" families = ["backgroundComp"] hosts = ["standalonepublisher"] new_instance_family = "background" # Presetable allo...
7,826
437
23
373a3e240bfb4752f5d712379de07b526a9194de
24
py
Python
lib_apk_shrink/utils/__init__.py
wtttc/apkshrink
50b61c38b64c4a4fe0b11e686045852a3c685f3d
[ "MIT" ]
3
2015-09-01T10:46:15.000Z
2016-05-20T09:29:42.000Z
lib_apk_shrink/utils/__init__.py
wtttc/apkshrink
50b61c38b64c4a4fe0b11e686045852a3c685f3d
[ "MIT" ]
null
null
null
lib_apk_shrink/utils/__init__.py
wtttc/apkshrink
50b61c38b64c4a4fe0b11e686045852a3c685f3d
[ "MIT" ]
1
2020-12-08T10:37:32.000Z
2020-12-08T10:37:32.000Z
__author__ = 'tiantong'
12
23
0.75
__author__ = 'tiantong'
0
0
0
116769d3ee79c02a08e9d5b09fd78ce244697cca
1,965
py
Python
pymdwizard/gui/ui_files/UI_procstep.py
ennsk/fort-pymdwizard
74a16d5333cd599537af1e55448327e3cfcced5a
[ "CC-BY-4.0" ]
null
null
null
pymdwizard/gui/ui_files/UI_procstep.py
ennsk/fort-pymdwizard
74a16d5333cd599537af1e55448327e3cfcced5a
[ "CC-BY-4.0" ]
null
null
null
pymdwizard/gui/ui_files/UI_procstep.py
ennsk/fort-pymdwizard
74a16d5333cd599537af1e55448327e3cfcced5a
[ "CC-BY-4.0" ]
2
2017-03-16T21:18:11.000Z
2019-06-03T14:25:16.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'procstep.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.ar...
37.075472
75
0.701781
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'procstep.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Fo...
1,450
1
76
f47b7a6204c6f27d73848955832ee132b142776e
27,991
py
Python
numba/testing/main.py
luk-f-a/numba
3a682bd827e416335e3574bc7b10f0ec69adb701
[ "BSD-2-Clause", "BSD-3-Clause" ]
3
2017-08-11T13:05:44.000Z
2021-08-10T07:47:13.000Z
numba/testing/main.py
luk-f-a/numba
3a682bd827e416335e3574bc7b10f0ec69adb701
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
numba/testing/main.py
luk-f-a/numba
3a682bd827e416335e3574bc7b10f0ec69adb701
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2021-01-31T18:58:54.000Z
2021-01-31T18:58:54.000Z
import collections import contextlib import cProfile import inspect import gc import multiprocessing import os import random import sys import time import unittest import warnings from io import StringIO from unittest import result, runner, signals, suite, loader, case from .loader import TestLoader from numba.core i...
35.839949
87
0.587689
import collections import contextlib import cProfile import inspect import gc import multiprocessing import os import random import sys import time import unittest import warnings from io import StringIO from unittest import result, runner, signals, suite, loader, case from .loader import TestLoader from numba.core i...
17,935
247
810
7f3bdeddbba8f9e8b57f1b422291f6ae8a810f6f
3,358
py
Python
multidimensional-scaling/example.py
mgreiff/NUMA25
8fd65322852f6035e44f700c46f80a04c0ca4eec
[ "MIT" ]
null
null
null
multidimensional-scaling/example.py
mgreiff/NUMA25
8fd65322852f6035e44f700c46f80a04c0ca4eec
[ "MIT" ]
null
null
null
multidimensional-scaling/example.py
mgreiff/NUMA25
8fd65322852f6035e44f700c46f80a04c0ca4eec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This example demonstrates how solutions to the TOA calibration problem may be found using multi-dimensional scaling. The example sets 10 anchors in space and the recreates their position based on their mutual distances and a set of constraints """ import matplotlib.pylab as plt import numpy ...
34.265306
93
0.509529
# -*- coding: utf-8 -*- """ This example demonstrates how solutions to the TOA calibration problem may be found using multi-dimensional scaling. The example sets 10 anchors in space and the recreates their position based on their mutual distances and a set of constraints """ import matplotlib.pylab as plt import numpy ...
0
0
0
beea55d4ba13ad117397eb9d147ff3333b0b0f9a
1,875
py
Python
nova/objects/external_event.py
mmnelemane/nova_stable_juno
e049553c7312480080091ad2481dcaf49113d571
[ "Apache-2.0" ]
null
null
null
nova/objects/external_event.py
mmnelemane/nova_stable_juno
e049553c7312480080091ad2481dcaf49113d571
[ "Apache-2.0" ]
1
2021-03-21T11:39:52.000Z
2021-03-21T11:39:52.000Z
nova/objects/external_event.py
mmnelemane/nova_stable_juno
e049553c7312480080091ad2481dcaf49113d571
[ "Apache-2.0" ]
1
2021-03-21T11:37:33.000Z
2021-03-21T11:37:33.000Z
# Copyright 2014 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
31.779661
78
0.671467
# Copyright 2014 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
158
629
22
3e0a0b05282e785a2f07e9fbc662957865b2cde6
149
py
Python
examples/record.py
UsaDike/irrp_with_class
312537b466f91ba4eaf6f5ac96b7fd438409b095
[ "Unlicense" ]
null
null
null
examples/record.py
UsaDike/irrp_with_class
312537b466f91ba4eaf6f5ac96b7fd438409b095
[ "Unlicense" ]
null
null
null
examples/record.py
UsaDike/irrp_with_class
312537b466f91ba4eaf6f5ac96b7fd438409b095
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from irrp_with_class import IRRP irrp = IRRP(gpio=18, filename="codes", post=130, no_confirm=True) irrp.record("light:on")
18.625
65
0.738255
#!/usr/bin/env python3 from irrp_with_class import IRRP irrp = IRRP(gpio=18, filename="codes", post=130, no_confirm=True) irrp.record("light:on")
0
0
0
0df915e8e72c82a175fa9247262af3cd167ca953
8,667
py
Python
src/sagemaker/workflow/retry.py
mufaddal-rohawala/sagemaker-python-sdk
72c12bb1481c368f799b17c38d07c5fc34864093
[ "Apache-2.0" ]
1
2021-12-10T16:18:29.000Z
2021-12-10T16:18:29.000Z
src/sagemaker/workflow/retry.py
bobbywlindsey/sagemaker-python-sdk
b2d4744930ec0c3ae40b86950847af0a698ba635
[ "Apache-2.0" ]
20
2021-09-17T20:50:11.000Z
2021-12-09T00:29:02.000Z
src/sagemaker/workflow/retry.py
bobbywlindsey/sagemaker-python-sdk
b2d4744930ec0c3ae40b86950847af0a698ba635
[ "Apache-2.0" ]
null
null
null
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
40.690141
100
0.688243
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
1,627
0
54
771e07b9fe79cb6eb18f1811a64c4f7aae9a5791
3,231
py
Python
category_upwork/real_estate_proforma_modelling/revenue_complex.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
2
2020-07-23T19:32:58.000Z
2020-10-24T20:54:09.000Z
category_upwork/real_estate_proforma_modelling/revenue_complex.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
null
null
null
category_upwork/real_estate_proforma_modelling/revenue_complex.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
1
2021-07-11T14:41:04.000Z
2021-07-11T14:41:04.000Z
import pandas as pd import os import re # function to procure the absolute path of the file to be read if __name__ == "__main__": # Table 1 - Current In-Place Rents # # tab seperated file - hence named with .tsv extension rev_fname = r'source/rev_curr_inplace_rents_inp.tsv' rev_fpat...
34.37234
151
0.70783
import pandas as pd import os import re # function to procure the absolute path of the file to be read def get_file_path(filename): __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) filepath = os.path.join(__location__, filename) return filepath def gen_rev_aggr(rev_da...
2,473
0
114
4979d95315881dfc6cf912c69e031260fa580005
12,307
py
Python
Modeling/fitting_motion.py
jkluter/MLG
0ef337c1f08f3ad22a8530091c1e6e5548e4a244
[ "MIT" ]
null
null
null
Modeling/fitting_motion.py
jkluter/MLG
0ef337c1f08f3ad22a8530091c1e6e5548e4a244
[ "MIT" ]
null
null
null
Modeling/fitting_motion.py
jkluter/MLG
0ef337c1f08f3ad22a8530091c1e6e5548e4a244
[ "MIT" ]
null
null
null
__all__ = ['Fit_Motion','FitFunction_Motion','FitFunction_Motion_Scandir','Jacobian_Motion',\ 'Jacobian_Motion_Scandir','Partial_Motion_no_Mass','Jac_Motion_Index' ] from scipy.optimize import least_squares import numpy as np from MLG.Microlensing.const import const_Einsteinradius from MLG.StellarMotion import getS...
35.880466
109
0.585927
__all__ = ['Fit_Motion','FitFunction_Motion','FitFunction_Motion_Scandir','Jacobian_Motion',\ 'Jacobian_Motion_Scandir','Partial_Motion_no_Mass','Jac_Motion_Index' ] from scipy.optimize import least_squares import numpy as np from MLG.Microlensing.const import const_Einsteinradius from MLG.StellarMotion import getS...
0
0
0