hexsha
stringlengths
40
40
size
int64
4
996k
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
996k
avg_line_length
float64
1.33
58.2k
max_line_length
int64
2
323k
alphanum_fraction
float64
0
0.97
content_no_comment
stringlengths
0
946k
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f7fb24ae8c976a4d6787651bae16cdf3c623fa6d
4,782
py
Python
pytorch-r2d2_mini/r2d2.py
wotmd5731/J_LAB
6951dbc898f063fbbe2853a36b7caeeca10ed173
[ "Apache-2.0" ]
null
null
null
pytorch-r2d2_mini/r2d2.py
wotmd5731/J_LAB
6951dbc898f063fbbe2853a36b7caeeca10ed173
[ "Apache-2.0" ]
null
null
null
pytorch-r2d2_mini/r2d2.py
wotmd5731/J_LAB
6951dbc898f063fbbe2853a36b7caeeca10ed173
[ "Apache-2.0" ]
null
null
null
import torch import torch.utils.data import torch.optim as optim import torch.nn as nn import numpy as np from collections import deque import random import gym import os from copy import deepcopy from time import time, sleep import torch.multiprocessing as mp #mp.set_start_method('spawn', force=True) from models impor...
31.668874
120
0.607486
import torch import torch.utils.data import torch.optim as optim import torch.nn as nn import numpy as np from collections import deque import random import gym import os from copy import deepcopy from time import time, sleep import torch.multiprocessing as mp from models import ActorNet, CriticNet import queue import...
true
true
f7fb252558f8525c2eaa53faa368501d1c61e260
8,359
py
Python
sympy/polys/tests/test_multivariate_resultants.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/tests/test_multivariate_resultants.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/tests/test_multivariate_resultants.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
"""Tests for Dixon's and Macaulay's classes. """ from sympy import Matrix, factor from sympy.core import symbols from sympy.tensor.indexed import IndexedBase from sympy.polys.multivariate_resultants import DixonResultant, MacaulayResultant c, d = symbols("a, b") x, y = symbols("x, y") p = c * x + y q = x + d * y d...
28.050336
85
0.539658
from sympy import Matrix, factor from sympy.core import symbols from sympy.tensor.indexed import IndexedBase from sympy.polys.multivariate_resultants import DixonResultant, MacaulayResultant c, d = symbols("a, b") x, y = symbols("x, y") p = c * x + y q = x + d * y dixon = DixonResultant(polynomials=[p, q], variabl...
true
true
f7fb27196bc7774b2fd914d3d983e69fcef6b7d4
18,360
py
Python
lib/streamlit/elements/data_frame_proto.py
Camilo-Mendoza/streamlit-ML
be8aafdf9f334b92a6e056e6c4f994da82587f80
[ "Apache-2.0" ]
null
null
null
lib/streamlit/elements/data_frame_proto.py
Camilo-Mendoza/streamlit-ML
be8aafdf9f334b92a6e056e6c4f994da82587f80
[ "Apache-2.0" ]
9
2021-03-01T20:47:52.000Z
2022-02-12T20:49:50.000Z
lib/streamlit/elements/data_frame_proto.py
Camilo-Mendoza/streamlit-ML
be8aafdf9f334b92a6e056e6c4f994da82587f80
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit 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 applicabl...
35.859375
86
0.64439
import re import tzlocal from collections import namedtuple from streamlit import util from streamlit.logger import get_logger LOGGER = get_logger(__name__) CSSStyle = namedtuple('CSSStyle', ['property', 'value']) def marshall_data_frame(data, proto_df): df = convert_anything_to_df(data) ...
true
true
f7fb296fe05adccbf13151574889867e1605688c
1,160
py
Python
tests/test_managers.py
kishorehariram/django-logic
955f18211443b30ce39a845495e136d7590183a6
[ "MIT" ]
47
2019-11-23T11:51:04.000Z
2022-03-16T15:37:24.000Z
tests/test_managers.py
kishorehariram/django-logic
955f18211443b30ce39a845495e136d7590183a6
[ "MIT" ]
29
2019-11-25T12:16:25.000Z
2021-05-10T13:17:46.000Z
tests/test_managers.py
kishorehariram/django-logic
955f18211443b30ce39a845495e136d7590183a6
[ "MIT" ]
6
2019-12-25T11:17:05.000Z
2021-11-23T07:33:33.000Z
from django.db import models from django.test import TestCase from django_logic.process import ProcessManager, Process from django_logic.transition import Transition class FirstProcess(Process): process_name = 'first_process' queryset = models.Manager() # fake it to pass init transitions = [ Tra...
36.25
107
0.744828
from django.db import models from django.test import TestCase from django_logic.process import ProcessManager, Process from django_logic.transition import Transition class FirstProcess(Process): process_name = 'first_process' queryset = models.Manager() transitions = [ Transition(action_name='t...
true
true
f7fb2b1fa89e507daca1330af17ae8ddefab5c72
1,158
py
Python
pythonBase/advancePyton/chapter11/process_test.py
cangchengkun/pythonbase
4e01331b1c7c13d86f32f697dd812cb267abe7ef
[ "CNRI-Python" ]
null
null
null
pythonBase/advancePyton/chapter11/process_test.py
cangchengkun/pythonbase
4e01331b1c7c13d86f32f697dd812cb267abe7ef
[ "CNRI-Python" ]
null
null
null
pythonBase/advancePyton/chapter11/process_test.py
cangchengkun/pythonbase
4e01331b1c7c13d86f32f697dd812cb267abe7ef
[ "CNRI-Python" ]
null
null
null
# 多线程编程 # GIL锁在单cpu上只能执行一个,效率低 # 多进程可以在多个cpu上执行 # 多线程和多线程都能够并发为什么在IO操作是不使用多进程 # 进程切换比较耗时 # 1.对于耗cpu,多进程优于多线程 # 2.对于IO操作,多线程由于多进程 from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor import os import time # pid = os.fork() # 同时会存在两个进程,会拷贝父进程中的代码和数据到子进程中 # # print("boby") # # if pid == 0: # pr...
20.315789
70
0.661485
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor import os import time ng def get_html(n): time.sleep(n) return n class MyProcess(multiprocessing.Process): def run(self): pass if __name__ == '__main__': process = multiprocessing.Process(target=get_html, ar...
true
true
f7fb2bf57560ff065bd448cc06360a865d2d6f01
254
py
Python
test_driven_development_with_python/superlists/manage.py
TecKnow/learning
71d1ddf9d580027ecc62a067581da378a9e85f6d
[ "BSD-3-Clause" ]
null
null
null
test_driven_development_with_python/superlists/manage.py
TecKnow/learning
71d1ddf9d580027ecc62a067581da378a9e85f6d
[ "BSD-3-Clause" ]
null
null
null
test_driven_development_with_python/superlists/manage.py
TecKnow/learning
71d1ddf9d580027ecc62a067581da378a9e85f6d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "superlists.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23.090909
74
0.775591
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "superlists.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
true
true
f7fb2c06a0c94a1f778393f64fd2d5ce8f893f62
330
py
Python
typeidea/comment/adminx.py
persue/typeidea
1510efaf9c260c802390ab6490e726182e8037ab
[ "Apache-2.0" ]
null
null
null
typeidea/comment/adminx.py
persue/typeidea
1510efaf9c260c802390ab6490e726182e8037ab
[ "Apache-2.0" ]
5
2021-03-19T09:17:12.000Z
2022-03-12T00:08:19.000Z
typeidea/comment/adminx.py
persue/typeidea
1510efaf9c260c802390ab6490e726182e8037ab
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import xadmin #from django.contrib import admin from .models import Comment #from typeidea.custom_site import custom_site #from typeidea.base_admin import BaseOwnerAdmin @xadmin.sites.register(Comment) class CommentAdmin: list_display = ('target', 'nickname', 'content', 'website', 'creat...
25.384615
79
0.757576
import xadmin from .models import Comment @xadmin.sites.register(Comment) class CommentAdmin: list_display = ('target', 'nickname', 'content', 'website', 'created_time')
true
true
f7fb2c651134c68cfd8b101c68def41076630084
5,299
py
Python
axl_add_Sip_Trunk.py
alikhalid72/axl-python-zeep-samples
d0da03f066eaa2ddd55a18997f44402e50338c46
[ "MIT" ]
null
null
null
axl_add_Sip_Trunk.py
alikhalid72/axl-python-zeep-samples
d0da03f066eaa2ddd55a18997f44402e50338c46
[ "MIT" ]
null
null
null
axl_add_Sip_Trunk.py
alikhalid72/axl-python-zeep-samples
d0da03f066eaa2ddd55a18997f44402e50338c46
[ "MIT" ]
null
null
null
"""AXL <addSipTrunk> sample script, using the Zeep SOAP library Install Python 3.7 On Windows, choose the option to add to PATH environment variable If this is a fresh installation, update pip (you may need to use `pip3` on Linux or Mac) $ python -m pip install --upgrade pip Script Dependencies: l...
35.326667
96
0.707115
from lxml import etree from requests import Session from requests.auth import HTTPBasicAuth from zeep import Client, Settings, Plugin from zeep.transports import Transport from zeep.exceptions import Fault import creds DEBUG = False WSDL_FILE = 'schema/AXLAPI.wsdl' class MyLoggingPlugin( Plug...
true
true
f7fb2d5c320bd37feebc0783b11324565991b7f4
8,599
py
Python
actualizar_costos.py
osim-microgrid-tool/osim_islanded_microgrids_sizing
63738ddf418e4023f3b64dc1f0aba6f079710bc8
[ "MIT" ]
2
2021-07-27T13:56:18.000Z
2021-07-27T13:56:23.000Z
actualizar_costos.py
wropero-enersinc/osim_microrredes
407ce32683043dbc0356fa0b2edaf537b0098b71
[ "MIT" ]
null
null
null
actualizar_costos.py
wropero-enersinc/osim_microrredes
407ce32683043dbc0356fa0b2edaf537b0098b71
[ "MIT" ]
1
2021-07-25T23:03:27.000Z
2021-07-25T23:03:27.000Z
import pandas as pd import numpy as np import math import sqlite3 import os def conexion_bd(sql=None, update=True): sqlite3.register_adapter(np.int64, lambda val: int(val)) sqlite3.register_adapter(np.int32, lambda val: int(val)) con = sqlite3.connect(os.getcwd() + os.sep + "result_op.db") t...
36.591489
200
0.515641
import pandas as pd import numpy as np import math import sqlite3 import os def conexion_bd(sql=None, update=True): sqlite3.register_adapter(np.int64, lambda val: int(val)) sqlite3.register_adapter(np.int32, lambda val: int(val)) con = sqlite3.connect(os.getcwd() + os.sep + "result_op.db") t...
true
true
f7fb2e4acbf2aa94f74bb2be3cd6973f04ab40c2
550
py
Python
hackerrank prob/10.nested list.py
kingRovo/PythonCodingChalenge
b62938592df10ccafec9930b69c14c778e19ad37
[ "bzip2-1.0.6" ]
1
2021-08-02T16:52:55.000Z
2021-08-02T16:52:55.000Z
hackerrank prob/10.nested list.py
kingRovo/PythonCodingChalenge
b62938592df10ccafec9930b69c14c778e19ad37
[ "bzip2-1.0.6" ]
null
null
null
hackerrank prob/10.nested list.py
kingRovo/PythonCodingChalenge
b62938592df10ccafec9930b69c14c778e19ad37
[ "bzip2-1.0.6" ]
null
null
null
scores = {} top2 = [] def logScore(score): global top2 xs = [x for x in top2 if x < score] + [score] + [x for x in top2 if x > score] if (len(xs) > 2): scores.pop(xs[2], None) xs.pop() top2 = xs return score <= xs[-1] for _ in range(int(input())): name = input() score = flo...
15.714286
82
0.554545
scores = {} top2 = [] def logScore(score): global top2 xs = [x for x in top2 if x < score] + [score] + [x for x in top2 if x > score] if (len(xs) > 2): scores.pop(xs[2], None) xs.pop() top2 = xs return score <= xs[-1] for _ in range(int(input())): name = input() score = flo...
true
true
f7fb2e522871c2a020f3f991e187ebff8901bb38
563
py
Python
user.py
VoltJimathy/BooksDiscordpy
6874b2d6184b329f84892e4f18454dc366bc5846
[ "BSD-2-Clause" ]
null
null
null
user.py
VoltJimathy/BooksDiscordpy
6874b2d6184b329f84892e4f18454dc366bc5846
[ "BSD-2-Clause" ]
1
2021-08-29T19:34:09.000Z
2021-09-03T16:06:35.000Z
user.py
VoltJimathy/BooksDiscordpy
6874b2d6184b329f84892e4f18454dc366bc5846
[ "BSD-2-Clause" ]
null
null
null
import typing as t class User: def __init__(self, json: dict, bot): # print(json.keys()) self.verified = json.get("verified", False) self.username = json.get("username", None) self.mfa_enabled = json.get("mfa_enabled", False) self.id = json.get("id") self.flags = j...
29.631579
60
0.586146
import typing as t class User: def __init__(self, json: dict, bot): self.verified = json.get("verified", False) self.username = json.get("username", None) self.mfa_enabled = json.get("mfa_enabled", False) self.id = json.get("id") self.flags = json.get("flags", Non...
true
true
f7fb2f90496a29c2de8d6b94019d96286ba0bfbb
8,154
py
Python
mitmproxy/console/options.py
jvillacorta/mitmproxy
3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5
[ "MIT" ]
1
2018-03-31T17:16:07.000Z
2018-03-31T17:16:07.000Z
mitmproxy/console/options.py
jvillacorta/mitmproxy
3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5
[ "MIT" ]
null
null
null
mitmproxy/console/options.py
jvillacorta/mitmproxy
3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5
[ "MIT" ]
4
2018-04-18T13:17:01.000Z
2021-02-21T17:08:33.000Z
from __future__ import absolute_import, print_function, division import urwid from mitmproxy import contentviews from mitmproxy.console import common from mitmproxy.console import grideditor from mitmproxy.console import palettes from mitmproxy.console import select from mitmproxy.console import signals footer = [ ...
31.604651
77
0.484425
from __future__ import absolute_import, print_function, division import urwid from mitmproxy import contentviews from mitmproxy.console import common from mitmproxy.console import grideditor from mitmproxy.console import palettes from mitmproxy.console import select from mitmproxy.console import signals footer = [ ...
true
true
f7fb300272c8f9cbf76ac8ba0c823da11c1f6e34
808
py
Python
02_task/02_subtask.py
SKantar/SignalProcessing
c8e5e9a45c92e1d337086b60bf7eed131756dcaf
[ "MIT" ]
null
null
null
02_task/02_subtask.py
SKantar/SignalProcessing
c8e5e9a45c92e1d337086b60bf7eed131756dcaf
[ "MIT" ]
null
null
null
02_task/02_subtask.py
SKantar/SignalProcessing
c8e5e9a45c92e1d337086b60bf7eed131756dcaf
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from scipy.fftpack import fft Fs = 200 # Sample frequence N = 150 # Number of sample points T = 1.0 / Fs # Sample spacing t = np.linspace(T, N * T, N) A = 2.3 f = 20 x_clear = A * np.sin(f * 2.0 * np.pi * t) powers, colors = [0, 1, 3, 6], ['r', 'g...
22.444444
61
0.532178
import numpy as np import matplotlib.pyplot as plt from scipy.fftpack import fft Fs = 200 N = 150 T = 1.0 / Fs t = np.linspace(T, N * T, N) A = 2.3 f = 20 x_clear = A * np.sin(f * 2.0 * np.pi * t) powers, colors = [0, 1, 3, 6], ['r', 'g', 'b', 'y'] for i, power in enumerate(powers): e = np....
true
true
f7fb30647bd52e10d1e69b97e1f25ed17da4891c
5,556
py
Python
fc.py
HamzaFarhan/dreamai_2
58b28cb964f026882d289b2fdbea301005bad394
[ "MIT" ]
null
null
null
fc.py
HamzaFarhan/dreamai_2
58b28cb964f026882d289b2fdbea301005bad394
[ "MIT" ]
8
2020-03-31T11:17:01.000Z
2022-03-12T00:17:36.000Z
fc.py
HamzaFarhan/dreamai_2
58b28cb964f026882d289b2fdbea301005bad394
[ "MIT" ]
null
null
null
from dreamai.dai_imports import* from dreamai.utils import * from dreamai.model import * class FC(Network): def __init__(self, num_inputs=10, num_outputs=10, layers=[], lr=0.003, class_names=[], optimizer_name='Ad...
42.738462
125
0.49946
from dreamai.dai_imports import* from dreamai.utils import * from dreamai.model import * class FC(Network): def __init__(self, num_inputs=10, num_outputs=10, layers=[], lr=0.003, class_names=[], optimizer_name='Ad...
true
true
f7fb306aa7ec4b5abf0af2dfa7f682c9969f4efb
116
py
Python
detectrino/basics.py
lgvaz/detectrino
dc3b15f44be8f143f03d67a7d05cbad8f6cca78f
[ "Apache-2.0" ]
1
2021-06-23T16:41:03.000Z
2021-06-23T16:41:03.000Z
detectrino/basics.py
lgvaz/detectrino
dc3b15f44be8f143f03d67a7d05cbad8f6cca78f
[ "Apache-2.0" ]
5
2020-04-27T19:35:44.000Z
2022-02-26T07:29:35.000Z
detectrino/basics.py
lgvaz/detectrino
dc3b15f44be8f143f03d67a7d05cbad8f6cca78f
[ "Apache-2.0" ]
null
null
null
from ._imports import * from .core import * from .data.all import * from .model.all import * from .learner import *
19.333333
24
0.724138
from ._imports import * from .core import * from .data.all import * from .model.all import * from .learner import *
true
true
f7fb3232075947da504efe0223786d7f0c962b46
3,335
py
Python
digsby/ext/buildexts.py
ifwe/digsby
f5fe00244744aa131e07f09348d10563f3d8fa99
[ "Python-2.0" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
digsby/ext/buildexts.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
digsby/ext/buildexts.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
#__LICENSE_GOES_HERE__ # # builds "cgui", Digsby's native code extension # # use "python buildexts.py build_ext" from the command line # to build cgui.pyd or cgui.so # from wx.build.config import * import wx import cguisetup import sys, os from os import environ as env from os.path import join as pj from pprint impor...
28.504274
87
0.505847
# # use "python buildexts.py build_ext" from the command line # to build cgui.pyd or cgui.so # from wx.build.config import * import wx import cguisetup import sys, os from os import environ as env from os.path import join as pj from pprint import pprint def build(): global swig_args, includes, defines, cflags...
false
true
f7fb32e353b204583e9bb19758cc4828ed9e6c2e
16,079
py
Python
log_mito/model_790.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito/model_790.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito/model_790.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', 'BaxA']) M...
87.863388
710
0.80347
from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', 'BaxA']) Monomer('Apop', ['C3pro', 'Xiap']) ...
true
true
f7fb330a08ca9e96555a571dac03cc6aae74bba4
417
py
Python
config/gunicorn.py
NDevox/website
76004e667f2295eddd79d500ba21f02a0480412f
[ "Apache-2.0" ]
null
null
null
config/gunicorn.py
NDevox/website
76004e667f2295eddd79d500ba21f02a0480412f
[ "Apache-2.0" ]
null
null
null
config/gunicorn.py
NDevox/website
76004e667f2295eddd79d500ba21f02a0480412f
[ "Apache-2.0" ]
null
null
null
import multiprocessing import os accesslog = '-' bind = f'{os.getenv("GUNICORN_HOST", "0.0.0.0")}:{os.getenv("GUNICORN_PORT", "8000")}' # noqa capture_output = True syslog = os.getenv('LOG_SYSLOG', 'false').lower() in ['true', '1', 'yes', 'on'] threads = int(os.getenv('GUNICORN_THREADS', multiprocessing.cpu_coun...
23.166667
94
0.669065
import multiprocessing import os accesslog = '-' bind = f'{os.getenv("GUNICORN_HOST", "0.0.0.0")}:{os.getenv("GUNICORN_PORT", "8000")}' capture_output = True syslog = os.getenv('LOG_SYSLOG', 'false').lower() in ['true', '1', 'yes', 'on'] threads = int(os.getenv('GUNICORN_THREADS', multiprocessing.cpu_count() * ...
true
true
f7fb3500e8b05c2631571dc3f2a87ba31bfc73e9
290
py
Python
Chapter2_Python/ListSlicing.py
gbbDonkiKong/UdemyAI_Template
9d17edc43f0342675d194f29bf45fde77e4f5f0e
[ "MIT" ]
null
null
null
Chapter2_Python/ListSlicing.py
gbbDonkiKong/UdemyAI_Template
9d17edc43f0342675d194f29bf45fde77e4f5f0e
[ "MIT" ]
null
null
null
Chapter2_Python/ListSlicing.py
gbbDonkiKong/UdemyAI_Template
9d17edc43f0342675d194f29bf45fde77e4f5f0e
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt x = [[1, 4, 3, 9], [3, 1, 5, 2]] y = ['red', 'blue', 'blue', 'red'] # P1 (x1 = 1, x2 = 3), Klasse = 'red' x1 = x[0] x2 = x[1] plt.scatter(x1, x2, color=y) # plt.show() w = [1, 3, 6, 9, 7, 4] w_squared = [val**2 for val in w[1:5]] print(w_squared)
15.263158
38
0.510345
import matplotlib.pyplot as plt x = [[1, 4, 3, 9], [3, 1, 5, 2]] y = ['red', 'blue', 'blue', 'red'] x1 = x[0] x2 = x[1] plt.scatter(x1, x2, color=y) w = [1, 3, 6, 9, 7, 4] w_squared = [val**2 for val in w[1:5]] print(w_squared)
true
true
f7fb35162fbb35d57df67445293c9781bc9f7f09
19,127
py
Python
api/jobs/api.py
jkoren/jobhopper
1c579871be1fe8fe5c1c0f7dbd4309f84479ed3b
[ "MIT" ]
null
null
null
api/jobs/api.py
jkoren/jobhopper
1c579871be1fe8fe5c1c0f7dbd4309f84479ed3b
[ "MIT" ]
null
null
null
api/jobs/api.py
jkoren/jobhopper
1c579871be1fe8fe5c1c0f7dbd4309f84479ed3b
[ "MIT" ]
null
null
null
from .models import Socs, BlsOes, StateAbbPairs, OccupationTransitions, SocDescription from rest_framework import viewsets, permissions, generics from rest_framework.throttling import AnonRateThrottle from rest_framework.response import Response from django.forms.models import model_to_dict from collections import name...
44.17321
119
0.631725
from .models import Socs, BlsOes, StateAbbPairs, OccupationTransitions, SocDescription from rest_framework import viewsets, permissions, generics from rest_framework.throttling import AnonRateThrottle from rest_framework.response import Response from django.forms.models import model_to_dict from collections import name...
true
true
f7fb37300051dd803972d2cce6c9bea72b3d9f19
416
py
Python
pymnn/pip_package/MNNTools/MNN_FB/BinaryOpOperation.py
z415073783/MNN
62c5ca47964407508a5fa802582e648fc75eb0d9
[ "Apache-2.0" ]
null
null
null
pymnn/pip_package/MNNTools/MNN_FB/BinaryOpOperation.py
z415073783/MNN
62c5ca47964407508a5fa802582e648fc75eb0d9
[ "Apache-2.0" ]
1
2021-09-07T09:13:03.000Z
2021-09-07T09:13:03.000Z
pymnn/pip_package/MNNTools/MNN_FB/BinaryOpOperation.py
z415073783/MNN
62c5ca47964407508a5fa802582e648fc75eb0d9
[ "Apache-2.0" ]
1
2020-03-10T02:17:47.000Z
2020-03-10T02:17:47.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: MNN class BinaryOpOperation(object): ADD = 0 SUB = 1 MUL = 2 DIV = 3 MAX_TEMP = 4 MIN_TEMP = 5 POW = 6 REALDIV = 7 MINIMUM = 8 MAXIMUM = 9 GREATER = 10 GREATER_EQUAL = 11 LESS = 12 ...
16.64
68
0.59375
class BinaryOpOperation(object): ADD = 0 SUB = 1 MUL = 2 DIV = 3 MAX_TEMP = 4 MIN_TEMP = 5 POW = 6 REALDIV = 7 MINIMUM = 8 MAXIMUM = 9 GREATER = 10 GREATER_EQUAL = 11 LESS = 12 FLOORDIV = 13 SquaredDifference = 14 EQUAL = 15 LESS_EQUAL = 16 FLO...
true
true
f7fb379da517b97c0670e2852a594b1da659580a
7,609
py
Python
tests/components/mazda/test_sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
3
2021-11-22T22:37:43.000Z
2022-03-17T00:55:28.000Z
tests/components/mazda/test_sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
25
2021-10-02T10:01:14.000Z
2022-03-31T06:11:49.000Z
tests/components/mazda/test_sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
3
2022-01-02T18:49:54.000Z
2022-01-25T02:03:54.000Z
"""The sensor tests for the Mazda Connected Services integration.""" from homeassistant.components.sensor import ( ATTR_STATE_CLASS, SensorDeviceClass, SensorStateClass, ) from homeassistant.const import ( ATTR_DEVICE_CLASS, ATTR_FRIENDLY_NAME, ATTR_ICON, ATTR_UNIT_OF_MEASUREMENT, LENGT...
40.908602
88
0.75529
from homeassistant.components.sensor import ( ATTR_STATE_CLASS, SensorDeviceClass, SensorStateClass, ) from homeassistant.const import ( ATTR_DEVICE_CLASS, ATTR_FRIENDLY_NAME, ATTR_ICON, ATTR_UNIT_OF_MEASUREMENT, LENGTH_KILOMETERS, LENGTH_MILES, PERCENTAGE, PRESSURE_PSI, ) f...
true
true
f7fb37d40db56db91cff73cdbcdc5e682fb5b394
1,227
py
Python
scripts/get_subset_of_impact_vectors.py
natcap/opal
7b960d51344483bae30d14ccfa6004bd550f3737
[ "BSD-3-Clause" ]
1
2020-04-15T23:23:27.000Z
2020-04-15T23:23:27.000Z
scripts/get_subset_of_impact_vectors.py
natcap/opal
7b960d51344483bae30d14ccfa6004bd550f3737
[ "BSD-3-Clause" ]
null
null
null
scripts/get_subset_of_impact_vectors.py
natcap/opal
7b960d51344483bae30d14ccfa6004bd550f3737
[ "BSD-3-Clause" ]
null
null
null
import os import glob import shutil if __name__ == '__main__': source_file_uri = os.path.join(os.path.dirname(__file__), '..', 'positive_sdr_simulations.csv') scenario = 'bare' dest_dir = '%s_positive_simulations' % scenario if os.path.exists(dest_dir): shutil.rmtree(dest_dir) os.m...
29.214286
76
0.616952
import os import glob import shutil if __name__ == '__main__': source_file_uri = os.path.join(os.path.dirname(__file__), '..', 'positive_sdr_simulations.csv') scenario = 'bare' dest_dir = '%s_positive_simulations' % scenario if os.path.exists(dest_dir): shutil.rmtree(dest_dir) os.m...
true
true
f7fb3856fdfa0c65137c0e8b3df3e839dd6bd9bc
1,077
py
Python
python/medium/1834-single-threaded-cpu.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
python/medium/1834-single-threaded-cpu.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
python/medium/1834-single-threaded-cpu.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
from heapq import heappush, heappop class Solution: def getOrder(self, tasks: List[List[int]]) -> List[int]: """ 0 1 2 3 [[1,2],[2,4],[3,2],[4,1]] ^ 0 1 2 3 4 5 6 0 0 0 1 1 1 1 1 2 2 2 3 3 max t...
23.413043
60
0.410399
from heapq import heappush, heappop class Solution: def getOrder(self, tasks: List[List[int]]) -> List[int]: if not tasks: return [] order = [] available = [] to_process = [] for i, task in enumerate(tasks): heappush(to_proc...
true
true
f7fb38af7a2c7fa2919914d8f1b929b1c7b357f6
1,429
py
Python
demo/crime_vgg16_bilstm_hi_dim_train.py
dalo2903/keras-video-classifier
6dcf0a1e87342bdb057df0176af6489ff926f2d8
[ "MIT" ]
1
2018-12-27T09:00:02.000Z
2018-12-27T09:00:02.000Z
demo/crime_vgg16_bilstm_hi_dim_train.py
dalo2903/keras-video-classifier
6dcf0a1e87342bdb057df0176af6489ff926f2d8
[ "MIT" ]
null
null
null
demo/crime_vgg16_bilstm_hi_dim_train.py
dalo2903/keras-video-classifier
6dcf0a1e87342bdb057df0176af6489ff926f2d8
[ "MIT" ]
null
null
null
import numpy as np from keras import backend as K import sys import os def main(): K.set_image_dim_ordering('tf') sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from keras_video_classifier.library.recurrent_networks import VGG16BidirectionalLSTMVideoClassifier from keras_video_classif...
39.694444
123
0.757173
import numpy as np from keras import backend as K import sys import os def main(): K.set_image_dim_ordering('tf') sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from keras_video_classifier.library.recurrent_networks import VGG16BidirectionalLSTMVideoClassifier from keras_video_classif...
true
true
f7fb3949f6b5e489477ca4a6a801107f3836b3ce
5,740
py
Python
docs/source/examples/isaacgym_sequential_shared_memory_eval.py
Toni-SM/skrl
15b429d89e3b8a1828b207d88463bf7090288d18
[ "MIT" ]
43
2021-12-19T07:47:43.000Z
2022-03-31T05:24:42.000Z
docs/source/examples/isaacgym_sequential_shared_memory_eval.py
Toni-SM/skrl
15b429d89e3b8a1828b207d88463bf7090288d18
[ "MIT" ]
5
2022-01-05T07:54:13.000Z
2022-03-08T21:00:39.000Z
docs/source/examples/isaacgym_sequential_shared_memory_eval.py
Toni-SM/skrl
15b429d89e3b8a1828b207d88463bf7090288d18
[ "MIT" ]
1
2022-01-31T17:53:52.000Z
2022-01-31T17:53:52.000Z
import isaacgym import torch import torch.nn as nn import torch.nn.functional as F # Import the skrl components to build the RL system from skrl.models.torch import GaussianModel, DeterministicModel from skrl.agents.torch.ddpg import DDPG, DDPG_DEFAULT_CONFIG from skrl.agents.torch.td3 import TD3, TD3_DEFAULT_CONFIG ...
44.153846
112
0.723868
import isaacgym import torch import torch.nn as nn import torch.nn.functional as F from skrl.models.torch import GaussianModel, DeterministicModel from skrl.agents.torch.ddpg import DDPG, DDPG_DEFAULT_CONFIG from skrl.agents.torch.td3 import TD3, TD3_DEFAULT_CONFIG from skrl.agents.torch.sac import SAC, SAC_DEFAULT_...
true
true
f7fb3bf624dc695a6936a66718e687066ef8c8b0
62
py
Python
uru_crm/modules/veggies/__init__.py
gitbenji/uru-crm
b5d29c94fe5f9e6f872b2a3b7bd1fe64ce47a841
[ "MIT" ]
null
null
null
uru_crm/modules/veggies/__init__.py
gitbenji/uru-crm
b5d29c94fe5f9e6f872b2a3b7bd1fe64ce47a841
[ "MIT" ]
null
null
null
uru_crm/modules/veggies/__init__.py
gitbenji/uru-crm
b5d29c94fe5f9e6f872b2a3b7bd1fe64ce47a841
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .models import Available_Veggie
15.5
36
0.677419
from .models import Available_Veggie
true
true
f7fb3c54115abca058513a3ce2a02040515b8bbd
4,444
py
Python
scripts/pyvision/util/fast_util.py
wolfram2012/ros_track_ssd
c98d54eb923e5bae5fde4abbedda2fe5ba716606
[ "MIT" ]
null
null
null
scripts/pyvision/util/fast_util.py
wolfram2012/ros_track_ssd
c98d54eb923e5bae5fde4abbedda2fe5ba716606
[ "MIT" ]
null
null
null
scripts/pyvision/util/fast_util.py
wolfram2012/ros_track_ssd
c98d54eb923e5bae5fde4abbedda2fe5ba716606
[ "MIT" ]
null
null
null
import numpy as np from scipy import weave class LocalMaximumDetector: def __init__(self,max_length=1000000): self.max_length = max_length self.maxes = np.zeros((max_length,2),dtype=np.int) self.vals = np.zeros((max_length,),dtype=np.float) def __call__(self, mat, threshold = None...
36.42623
82
0.34766
import numpy as np from scipy import weave class LocalMaximumDetector: def __init__(self,max_length=1000000): self.max_length = max_length self.maxes = np.zeros((max_length,2),dtype=np.int) self.vals = np.zeros((max_length,),dtype=np.float) def __call__(self, mat, threshold = None...
true
true
f7fb3d3bc8254e1bf13f8bf6237bdef7713df69f
4,431
py
Python
evaluation/ablation/ablation-exp-gen.py
sgpthomas/diospyros
27d4e5e5d4e56a6dc5860d7c7d5eefb27de24a5d
[ "MIT" ]
27
2020-02-16T22:26:34.000Z
2022-02-17T04:17:19.000Z
evaluation/ablation/ablation-exp-gen.py
sgpthomas/diospyros
27d4e5e5d4e56a6dc5860d7c7d5eefb27de24a5d
[ "MIT" ]
77
2020-01-21T15:37:35.000Z
2022-03-11T19:48:43.000Z
evaluation/ablation/ablation-exp-gen.py
sgpthomas/diospyros
27d4e5e5d4e56a6dc5860d7c7d5eefb27de24a5d
[ "MIT" ]
1
2021-09-27T20:35:15.000Z
2021-09-27T20:35:15.000Z
import argparse import os import sys import subprocess import shutil # Name of the directory to store the result of running example-gen.rkt BASE = "base" NATURE = "Nature" def check_path(path, diagnostic): """ Make sure that `path` exists and exits otherwise. """ if not os.path.exists(path): ...
29.344371
102
0.589483
import argparse import os import sys import subprocess import shutil BASE = "base" NATURE = "Nature" def check_path(path, diagnostic): if not os.path.exists(path): print(f"Could not find {path}. {diagnostic}") sys.exit(1) def generate_base(params, out): os.makedirs(out) experiment_pat...
true
true
f7fb3d59ef04f637d8cc1e566d99d9c76171e27d
189
py
Python
src/oxygen/__init__.py
stude1/robotframework-oxygen
e9845ab5d392d5d75d296d8cbca47f3a66659697
[ "MIT" ]
13
2020-05-15T08:30:13.000Z
2022-01-24T01:10:29.000Z
src/oxygen/__init__.py
stude1/robotframework-oxygen
e9845ab5d392d5d75d296d8cbca47f3a66659697
[ "MIT" ]
23
2020-05-18T09:00:16.000Z
2022-01-20T06:32:38.000Z
src/oxygen/__init__.py
stude1/robotframework-oxygen
e9845ab5d392d5d75d296d8cbca47f3a66659697
[ "MIT" ]
5
2020-08-21T07:08:18.000Z
2021-11-29T18:04:46.000Z
from .version import VERSION from .base_handler import BaseHandler from .oxygen import listener, OxygenLibrary __all__ = ['BaseHandler', 'listener', 'OxygenLibrary'] __version__ = VERSION
27
54
0.798942
from .version import VERSION from .base_handler import BaseHandler from .oxygen import listener, OxygenLibrary __all__ = ['BaseHandler', 'listener', 'OxygenLibrary'] __version__ = VERSION
true
true
f7fb3eb2144b59bf46943a6752ca3e8a7f8da079
22,015
py
Python
ibis/impala/ddl.py
ZeroCool2u/ibis
19d152fa97f828ad70e4cd46f3cd7d2bae27eb64
[ "Apache-2.0" ]
null
null
null
ibis/impala/ddl.py
ZeroCool2u/ibis
19d152fa97f828ad70e4cd46f3cd7d2bae27eb64
[ "Apache-2.0" ]
null
null
null
ibis/impala/ddl.py
ZeroCool2u/ibis
19d152fa97f828ad70e4cd46f3cd7d2bae27eb64
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Cloudera 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 agreed to in writing, so...
26.979167
79
0.607722
import json import re import ibis.expr.datatypes as dt import ibis.expr.schema as sch from ibis.backends.base_sql import quote_identifier from ibis.sql.compiler import DDL, DML from .compiler import _type_to_sql_string fully_qualified_re = re.compile(r"(.*)\.(?:`(.*)`|(.*))") def _is_fully_qualified(...
true
true
f7fb40398c878dfaf2588248dc7ef17938220a50
100
py
Python
tests/test_example.py
ro-56/python_package_skeleton
dd64a2d6921f9bb07335241c34e9b50a72a05f1a
[ "MIT" ]
null
null
null
tests/test_example.py
ro-56/python_package_skeleton
dd64a2d6921f9bb07335241c34e9b50a72a05f1a
[ "MIT" ]
null
null
null
tests/test_example.py
ro-56/python_package_skeleton
dd64a2d6921f9bb07335241c34e9b50a72a05f1a
[ "MIT" ]
null
null
null
import python_package_skeleton def test_example(): assert python_package_skeleton is not None
16.666667
46
0.82
import python_package_skeleton def test_example(): assert python_package_skeleton is not None
true
true
f7fb40c173b3d7347b95d90e09c986f46b084ceb
1,648
py
Python
pagarmecoreapi/models/create_checkout_card_installment_option_request.py
pagarme/pagarme-core-api-python
c7b11ca78ab3e7e896e5b75048e6f72b511db00e
[ "MIT" ]
6
2021-09-02T19:55:04.000Z
2022-03-16T14:06:15.000Z
pagarmecoreapi/models/create_checkout_card_installment_option_request.py
pagarme/pagarme-core-api-python
c7b11ca78ab3e7e896e5b75048e6f72b511db00e
[ "MIT" ]
2
2021-10-11T22:48:15.000Z
2022-01-24T18:24:23.000Z
pagarmecoreapi/models/create_checkout_card_installment_option_request.py
pagarme/pagarme-core-api-python
c7b11ca78ab3e7e896e5b75048e6f72b511db00e
[ "MIT" ]
2
2021-09-12T21:43:32.000Z
2022-03-07T16:58:54.000Z
# -*- coding: utf-8 -*- """ pagarmecoreapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ class CreateCheckoutCardInstallmentOptionRequest(object): """Implementation of the 'CreateCheckoutCardInstallmentOptionRequest' model. Options for card instal...
25.75
84
0.585558
class CreateCheckoutCardInstallmentOptionRequest(object): _names = { "number":'number', "total":'total' } def __init__(self, number=None, total=None): self.number = number self.total = total @cla...
true
true
f7fb410f11b30bda329800229f4b00eac1f72216
7,797
py
Python
custom_components/cozylife/tcp_client.py
Daandeve/hass-cozylife
59ca726179de3c9b22e4149c68b3bed8cca2848d
[ "MIT" ]
null
null
null
custom_components/cozylife/tcp_client.py
Daandeve/hass-cozylife
59ca726179de3c9b22e4149c68b3bed8cca2848d
[ "MIT" ]
null
null
null
custom_components/cozylife/tcp_client.py
Daandeve/hass-cozylife
59ca726179de3c9b22e4149c68b3bed8cca2848d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import socket import time from typing import Optional, Union, Any import logging try: from .utils import get_pid_list, get_sn except: from utils import get_pid_list, get_sn CMD_INFO = 0 CMD_QUERY = 2 CMD_SET = 3 CMD_LIST = [CMD_INFO, CMD_QUERY, CMD_SET] _LOGGER = logging.getLogg...
28.25
116
0.492497
import json import socket import time from typing import Optional, Union, Any import logging try: from .utils import get_pid_list, get_sn except: from utils import get_pid_list, get_sn CMD_INFO = 0 CMD_QUERY = 2 CMD_SET = 3 CMD_LIST = [CMD_INFO, CMD_QUERY, CMD_SET] _LOGGER = logging.getLogger(__name__) class tc...
true
true
f7fb41dd37ad3ace248a8f3d060c2475f9655c07
2,879
py
Python
test/recon/test_recon.py
DobromirM/swim-system-python
a5b4f05457f1eb2739a920c42dfc721c83a1226a
[ "Apache-2.0" ]
8
2019-11-11T19:38:59.000Z
2022-01-06T11:13:04.000Z
test/recon/test_recon.py
swimos/swim-system-python
727c09b6e7300b063e320364373ff724d9b8af90
[ "Apache-2.0" ]
40
2019-10-29T10:35:49.000Z
2021-05-14T22:18:35.000Z
test/recon/test_recon.py
DobromirM/swim-system-python
a5b4f05457f1eb2739a920c42dfc721c83a1226a
[ "Apache-2.0" ]
3
2020-01-31T18:28:58.000Z
2021-08-25T08:53:13.000Z
# Copyright 2015-2021 SWIM.AI 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 agreed to ...
35.109756
108
0.652657
import unittest from swimai.structures import RecordMap, Attr, Text, Slot from swimai.recon import Recon from swimai.recon._parsers import _ReconParser from swimai.recon._writers import _ReconWriter class TestRecon(unittest.TestCase): def test_parse(self): recon_string = '@sync(no...
true
true
f7fb424e1240eace1bfbe7d85e0651d436711408
2,045
py
Python
vitrage_dashboard/api/vitrage.py
mail2nsrajesh/vitrage-dashboard
3b23bc5b3c63dfa0aeff54f09796d8e7663f681f
[ "Apache-2.0" ]
null
null
null
vitrage_dashboard/api/vitrage.py
mail2nsrajesh/vitrage-dashboard
3b23bc5b3c63dfa0aeff54f09796d8e7663f681f
[ "Apache-2.0" ]
null
null
null
vitrage_dashboard/api/vitrage.py
mail2nsrajesh/vitrage-dashboard
3b23bc5b3c63dfa0aeff54f09796d8e7663f681f
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 - Alcatel-Lucent # # 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 agree...
38.584906
77
0.694377
from horizon.utils.memoized import memoized from keystoneauth1.identity.generic.token import Token from keystoneauth1.session import Session from openstack_dashboard.api import base from vitrageclient import client as vitrage_client @memoized def vitrageclient(request, password=None): endpoint = ...
true
true
f7fb42a391f08966123d877bed890d4c15d4a18c
12,081
py
Python
selfdrive/car/gm/interface.py
wzpyh/openpilot
a422246dc30bce11e970514f13f7c110f4470cc3
[ "MIT" ]
null
null
null
selfdrive/car/gm/interface.py
wzpyh/openpilot
a422246dc30bce11e970514f13f7c110f4470cc3
[ "MIT" ]
null
null
null
selfdrive/car/gm/interface.py
wzpyh/openpilot
a422246dc30bce11e970514f13f7c110f4470cc3
[ "MIT" ]
null
null
null
#!/usr/bin/env python from cereal import car, log from common.realtime import sec_since_boot from selfdrive.config import Conversions as CV from selfdrive.controls.lib.drive_helpers import create_event, EventTypes as ET from selfdrive.controls.lib.vehicle_model import VehicleModel from selfdrive.car.gm.values import DB...
36.170659
112
0.681401
from cereal import car, log from common.realtime import sec_since_boot from selfdrive.config import Conversions as CV from selfdrive.controls.lib.drive_helpers import create_event, EventTypes as ET from selfdrive.controls.lib.vehicle_model import VehicleModel from selfdrive.car.gm.values import DBC, CAR, STOCK_CONTROL...
true
true
f7fb43c6f0c42872270e32e5c6024a860a8c3c49
1,037
py
Python
bighack/urls.py
mithron/jobalance
ad14a1b5f1e6163a7db26c274985d36078e8da4a
[ "MIT" ]
1
2017-11-20T11:26:57.000Z
2017-11-20T11:26:57.000Z
bighack/urls.py
mithron/jobalance
ad14a1b5f1e6163a7db26c274985d36078e8da4a
[ "MIT" ]
null
null
null
bighack/urls.py
mithron/jobalance
ad14a1b5f1e6163a7db26c274985d36078e8da4a
[ "MIT" ]
2
2019-02-17T19:45:16.000Z
2019-08-10T07:45:29.000Z
"""bighack URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
38.407407
79
0.700096
from django.conf.urls import url, include from django.contrib import admin from api.views import FrontendAppView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^api/v0/', include('api.urls', namespace='api', app_name='api')), url(r'^$', FrontendAppView.as_view()), url(r'^index.html', FrontendA...
true
true
f7fb4411c4f43a8dcf03cea84fecf403f7ca7050
1,986
py
Python
src/tensorflow/igibson/utils/navigate_env.py
suresh-guttikonda/sim-environment
cc8faec17714d58c0e1f0227c8b7d4cf8817a136
[ "Apache-2.0" ]
null
null
null
src/tensorflow/igibson/utils/navigate_env.py
suresh-guttikonda/sim-environment
cc8faec17714d58c0e1f0227c8b7d4cf8817a136
[ "Apache-2.0" ]
null
null
null
src/tensorflow/igibson/utils/navigate_env.py
suresh-guttikonda/sim-environment
cc8faec17714d58c0e1f0227c8b7d4cf8817a136
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from gibson2.envs.igibson_env import iGibsonEnv from gibson2.utils.utils import l2_distance from utils import datautils import numpy as np import gym class NavigateGibsonEnv(iGibsonEnv): def __init__( self, config_file, scene_id=None, mode='headless', ...
30.553846
79
0.574522
from gibson2.envs.igibson_env import iGibsonEnv from gibson2.utils.utils import l2_distance from utils import datautils import numpy as np import gym class NavigateGibsonEnv(iGibsonEnv): def __init__( self, config_file, scene_id=None, mode='headless', action_timestep=1 / ...
true
true
f7fb447bb5566e988140086dd1124b76c763f4b7
13,416
py
Python
src/framed/bioreactor/base.py
cdanielmachado/framed
36d56437685cbf5c7c3c8ee4f6d85b8f05f4d345
[ "Apache-2.0" ]
25
2015-01-07T16:17:03.000Z
2022-01-24T09:11:50.000Z
src/framed/bioreactor/base.py
cdanielmachado/framed
36d56437685cbf5c7c3c8ee4f6d85b8f05f4d345
[ "Apache-2.0" ]
12
2016-02-18T12:50:09.000Z
2020-12-18T08:56:44.000Z
src/framed/bioreactor/base.py
cdanielmachado/framed
36d56437685cbf5c7c3c8ee4f6d85b8f05f4d345
[ "Apache-2.0" ]
14
2015-02-17T14:55:27.000Z
2021-08-09T17:57:57.000Z
""" This module defines the base classes used for modeling and analyzing bioreactors Author: Kai Zhuang """ from __future__ import print_function from builtins import object __author__ = 'kaizhuang' from copy import deepcopy from ..solvers import solver_instance from framed.solvers.solution import Status from scipy....
36.555858
128
0.629696
from __future__ import print_function from builtins import object __author__ = 'kaizhuang' from copy import deepcopy from ..solvers import solver_instance from framed.solvers.solution import Status from scipy.integrate import ode import numpy import collections import warnings class Organism(object): def __ini...
true
true
f7fb44b4acc10a4e04c8d07ca643fecbbf1ea48d
568
py
Python
yosim/servers/models.py
thoongnv/yosim
22bcaceb2c40735363496d9404970a73c4b944bc
[ "MIT" ]
2
2022-02-15T03:41:13.000Z
2022-02-15T03:44:46.000Z
yosim/servers/models.py
thoongnv/yosim
22bcaceb2c40735363496d9404970a73c4b944bc
[ "MIT" ]
5
2021-06-08T22:26:24.000Z
2022-03-12T00:21:35.000Z
yosim/servers/models.py
thoongnv/yosim
22bcaceb2c40735363496d9404970a73c4b944bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Server(models.Model): last_contact = models.IntegerField() version = models.CharField(max_length=32) hostname = models.CharField(unique=True, max_length=64)...
28.4
61
0.663732
from django.db import models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Server(models.Model): last_contact = models.IntegerField() version = models.CharField(max_length=32) hostname = models.CharField(unique=True, max_length=64) information = mode...
true
true
f7fb44c13c6bdd9ddea79dbd19b24d52529fc950
3,613
py
Python
tests/test_parametric_reactors/test_flf_system_code_reactor.py
generein/paramak
cec738b278c285a17eaa69fc1f35ea4788204a8c
[ "MIT" ]
25
2021-06-22T07:29:32.000Z
2022-03-28T13:30:53.000Z
tests/test_parametric_reactors/test_flf_system_code_reactor.py
generein/paramak
cec738b278c285a17eaa69fc1f35ea4788204a8c
[ "MIT" ]
181
2021-06-22T00:56:30.000Z
2022-03-31T22:36:54.000Z
tests/test_parametric_reactors/test_flf_system_code_reactor.py
generein/paramak
cec738b278c285a17eaa69fc1f35ea4788204a8c
[ "MIT" ]
8
2021-07-05T12:29:43.000Z
2022-03-24T13:17:37.000Z
import math import os import unittest from pathlib import Path import pytest import paramak class TestFlfSystemCodeReactor(unittest.TestCase): """Tests the FlfSystemCodeReactor functionality""" def setUp(self): self.test_reactor = paramak.FlfSystemCodeReactor( inner_blanket_radius=100, ...
33.766355
77
0.631331
import math import os import unittest from pathlib import Path import pytest import paramak class TestFlfSystemCodeReactor(unittest.TestCase): def setUp(self): self.test_reactor = paramak.FlfSystemCodeReactor( inner_blanket_radius=100, blanket_thickness=60, blanket_h...
true
true
f7fb450fa06058c4866cea07fa284fd3bdbb596d
2,572
py
Python
placementApp/permissions.py
deepnanda30/placement-portal-web
2b7450ab48e7c7ee9f3179da7edda01e840f6542
[ "MIT" ]
1
2020-09-27T12:28:49.000Z
2020-09-27T12:28:49.000Z
placementApp/permissions.py
deepnanda30/placement-portal-web
2b7450ab48e7c7ee9f3179da7edda01e840f6542
[ "MIT" ]
25
2020-03-04T04:20:57.000Z
2022-02-27T00:40:07.000Z
placementApp/permissions.py
deepnanda30/placement-portal-web
2b7450ab48e7c7ee9f3179da7edda01e840f6542
[ "MIT" ]
15
2020-02-28T12:23:25.000Z
2020-05-22T18:17:19.000Z
from rest_framework.permissions import BasePermission, SAFE_METHODS # from customer.models import User class IsStaffOrOwner(BasePermission): message = "You do not have the permission to perform this action." def has_permission(self, request, view): if request.user.is_authenticated and ( ...
34.293333
86
0.68818
from rest_framework.permissions import BasePermission, SAFE_METHODS class IsStaffOrOwner(BasePermission): message = "You do not have the permission to perform this action." def has_permission(self, request, view): if request.user.is_authenticated and ( request.user.is_student() and view...
true
true
f7fb4d6e8546b6f2f590dd05a22a5c6aaa218e9c
147
py
Python
cupons/urls.py
MisterLenivec/django-online-store
56f0496ef68e9580772f91f31b94182dc81858c5
[ "MIT" ]
1
2021-07-05T18:45:58.000Z
2021-07-05T18:45:58.000Z
cupons/urls.py
MisterLenivec/django-online-store
56f0496ef68e9580772f91f31b94182dc81858c5
[ "MIT" ]
9
2019-12-27T21:03:29.000Z
2022-03-12T00:10:27.000Z
cupons/urls.py
MisterLenivec/django-online-store
56f0496ef68e9580772f91f31b94182dc81858c5
[ "MIT" ]
1
2022-03-14T10:05:17.000Z
2022-03-14T10:05:17.000Z
from django.urls import path from .views import cupon_apply app_name = 'cupons' urlpatterns = [ path('apply/', cupon_apply, name='apply') ]
14.7
45
0.707483
from django.urls import path from .views import cupon_apply app_name = 'cupons' urlpatterns = [ path('apply/', cupon_apply, name='apply') ]
true
true
f7fb4e3cd4b83e81e5c65969bdc8b00122b9a5d5
13,864
py
Python
qiskit/circuit/instruction.py
michelle4654/qiskit-terra
1b18ea1debf2e9d3c0c3cf39e8c434352d2b2707
[ "Apache-2.0" ]
null
null
null
qiskit/circuit/instruction.py
michelle4654/qiskit-terra
1b18ea1debf2e9d3c0c3cf39e8c434352d2b2707
[ "Apache-2.0" ]
null
null
null
qiskit/circuit/instruction.py
michelle4654/qiskit-terra
1b18ea1debf2e9d3c0c3cf39e8c434352d2b2707
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2017. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
36.104167
96
0.615479
import warnings import copy from itertools import zip_longest import numpy from qiskit.circuit.exceptions import CircuitError from qiskit.circuit.quantumregister import QuantumRegister from qiskit.circuit.classicalregister import ClassicalRegister from qiskit.qobj.qasm_qobj import QasmQobjInstruction from...
true
true
f7fb4f7ae829a3e37ec8732635df733ece8b21ed
908
py
Python
tests/test_token.py
chie8842/tiny_tokenizer
6599873c050f4e064c88381688d8476346b57099
[ "MIT" ]
null
null
null
tests/test_token.py
chie8842/tiny_tokenizer
6599873c050f4e064c88381688d8476346b57099
[ "MIT" ]
null
null
null
tests/test_token.py
chie8842/tiny_tokenizer
6599873c050f4e064c88381688d8476346b57099
[ "MIT" ]
null
null
null
"""Test for word tokenizers""" import unittest from tiny_tokenizer.tiny_tokenizer_token import Token class TokenTest(unittest.TestCase): """Test ordinal word tokenizer.""" def test_token_without_feature(self): token = Token(surface="大崎") self.assertEqual("大崎", token.surface) self.ass...
26.705882
53
0.577093
import unittest from tiny_tokenizer.tiny_tokenizer_token import Token class TokenTest(unittest.TestCase): def test_token_without_feature(self): token = Token(surface="大崎") self.assertEqual("大崎", token.surface) self.assertEqual("", token.feature) def test_token_with_postag(self): ...
true
true
f7fb4faea4862b30e0c9e995a07c42deabde0ff6
9,856
py
Python
Collections-a-installer/community-general-2.4.0/plugins/modules/cloud/huawei/hwc_smn_topic.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
Collections-a-installer/community-general-2.4.0/plugins/modules/cloud/huawei/hwc_smn_topic.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
Collections-a-installer/community-general-2.4.0/plugins/modules/cloud/huawei/hwc_smn_topic.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2019 Huawei # GNU General Public License v3.0+ (see COPYING or # https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type #################################################################...
29.073746
118
0.56808
from __future__ import absolute_import, division, print_function __metaclass__ = type
true
true
f7fb505ad76c416833293aff0d93b0ddfd7961d0
3,797
py
Python
agentsbar/environments.py
laszukdawid/ai-traineree-client
f0b60ecbca0616ff40c5944a7da4ccbc1f0556e0
[ "Apache-2.0" ]
null
null
null
agentsbar/environments.py
laszukdawid/ai-traineree-client
f0b60ecbca0616ff40c5944a7da4ccbc1f0556e0
[ "Apache-2.0" ]
null
null
null
agentsbar/environments.py
laszukdawid/ai-traineree-client
f0b60ecbca0616ff40c5944a7da4ccbc1f0556e0
[ "Apache-2.0" ]
null
null
null
from dataclasses import asdict from typing import Any, Dict, List from agentsbar.client import Client from agentsbar.types import EnvironmentCreate from agentsbar.utils import response_raise_error_if_any ENV_PREFIX = "/environments" def get_many(client: Client) -> List[Dict]: """Gets environments belonging to a...
29.207692
114
0.687912
from dataclasses import asdict from typing import Any, Dict, List from agentsbar.client import Client from agentsbar.types import EnvironmentCreate from agentsbar.utils import response_raise_error_if_any ENV_PREFIX = "/environments" def get_many(client: Client) -> List[Dict]: response = client.get(f"{ENV_PREFIX...
true
true
f7fb508ac353c588a4347cfd6dc0e5564b45f405
2,291
py
Python
experiments/ashvin/icml2020/hand/pen/demo_awr3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/pen/demo_awr3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/pen/demo_awr3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants if __name__ == "__main__": variant = dict(...
27.939024
74
0.602794
from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants if __name__ == "__main__": variant = dict( num_epochs=3000, num_e...
true
true
f7fb50f279fdc0e3a371f6fba36b3162b2cfac7c
549
py
Python
iquhack/migrations/0002_auto_20201218_0849.py
mwalsh161/iquise-website
ab674d7881e418fe02b533ae477982e328e8fec7
[ "MIT" ]
1
2021-12-19T01:05:26.000Z
2021-12-19T01:05:26.000Z
iquhack/migrations/0002_auto_20201218_0849.py
iQuISE/iquise-website
e6125fe938c549e020cd53a5aa718de101e972e9
[ "MIT" ]
16
2020-07-29T14:12:30.000Z
2021-08-24T13:00:48.000Z
iquhack/migrations/0002_auto_20201218_0849.py
mwalsh161/iquise-website
ab674d7881e418fe02b533ae477982e328e8fec7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2020-12-18 13:49 from __future__ import unicode_literals from django.db import migrations, models import iquhack.models class Migration(migrations.Migration): dependencies = [ ('iquhack', '0001_initial'), ] operations = [ migratio...
24.954545
137
0.653916
from __future__ import unicode_literals from django.db import migrations, models import iquhack.models class Migration(migrations.Migration): dependencies = [ ('iquhack', '0001_initial'), ] operations = [ migrations.AlterField( model_name='sponsor', name='logo'...
true
true
f7fb510ceafae706ba62587d85df749b94bf2bd2
4,411
py
Python
dev/circuitpython/examples/trellism4_wavefile_synth/trellism4_wavefile_synth.py
scripsi/picodeebee
0ec77e92f09fa8711705623482e57a5e0b702696
[ "MIT" ]
7
2021-03-15T10:06:20.000Z
2022-03-23T02:53:15.000Z
Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/trellism4_wavefile_synth/trellism4_wavefile_synth.py
IanSMoyes/SpiderPi
cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1
[ "Apache-2.0" ]
5
2021-04-27T18:21:11.000Z
2021-05-02T14:17:14.000Z
Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/trellism4_wavefile_synth/trellism4_wavefile_synth.py
IanSMoyes/SpiderPi
cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # # SPDX-License-Identifier: MIT """ This synthesizer is loaded with wave files for 3 octaves of notes each in 4 different waveforms. It uses Mixer to play up to 7 notes at once. Play notes with the rainbow buttons. Change waveform types ith the whi...
35.572581
101
0.584901
import board from audiocore import WaveFile from audioio import AudioOut from audiomixer import Mixer import adafruit_trellism4 trellis = adafruit_trellism4.TrellisM4Express() trellis.pixels.brightness = 0.05 note_letters = ["C", "D", "E", "F", "G", "A", "B"] colors = [ (255, 0, 0), (255, 1...
true
true
f7fb523d5b03c83be4d6ab80ed45d3c8fd9e55ab
29,562
py
Python
sdk/python/pulumi_aws/msk/outputs.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
1
2021-11-10T16:33:40.000Z
2021-11-10T16:33:40.000Z
sdk/python/pulumi_aws/msk/outputs.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/msk/outputs.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
38.144516
286
0.65618
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs __all__ = [ 'ClusterBrokerNodeGroupInfo', 'ClusterClientAuthentication', 'ClusterClientAuthenticationSasl', 'ClusterClientAuthenti...
true
true
f7fb52da2bf41b87bf5e95e2cb604acacdc7ca3b
2,198
py
Python
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/AssignUsersRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/AssignUsersRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/AssignUsersRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.451613
74
0.729754
from aliyunsdkcore.request import RpcRequest class AssignUsersRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'CCC', '2017-07-05', 'AssignUsers','ccc') def get_UserRamIds(self): return self.get_query_params().get('UserRamIds') def set_UserRamIds(self,UserRamIds): ...
true
true
f7fb5330e15c47936ba1adcbcb8963f8a89a8cf9
135
py
Python
nanosound_oled/amp_power.py
divanikus/Nanomesher_NanoSound
e533e165b16a72b07a680cbc180854e544cbeee1
[ "Apache-2.0" ]
21
2017-10-03T12:28:03.000Z
2022-03-07T00:16:52.000Z
nanosound_oled/amp_power.py
divanikus/Nanomesher_NanoSound
e533e165b16a72b07a680cbc180854e544cbeee1
[ "Apache-2.0" ]
11
2019-01-07T13:36:00.000Z
2020-10-16T16:58:59.000Z
nanosound_oled/amp_power.py
divanikus/Nanomesher_NanoSound
e533e165b16a72b07a680cbc180854e544cbeee1
[ "Apache-2.0" ]
18
2017-10-24T01:56:24.000Z
2022-01-31T19:35:06.000Z
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(27,GPIO.OUT) GPIO.output(27,GPIO.HIGH)
15
25
0.777778
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(27,GPIO.OUT) GPIO.output(27,GPIO.HIGH)
true
true
f7fb541837fd69348b53851dc9c26d7d29e24326
19,355
py
Python
uploadstreaks/uploadstreaks.py
trumoose/OB13-Cogs
07d37bd93e03fc66f044a5083475eafe397cbd2f
[ "MIT" ]
null
null
null
uploadstreaks/uploadstreaks.py
trumoose/OB13-Cogs
07d37bd93e03fc66f044a5083475eafe397cbd2f
[ "MIT" ]
null
null
null
uploadstreaks/uploadstreaks.py
trumoose/OB13-Cogs
07d37bd93e03fc66f044a5083475eafe397cbd2f
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021-present Obi-Wan3 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 rights to use, copy, modify, merge, publi...
47.672414
302
0.637251
import typing from datetime import datetime, timedelta, timezone import discord from redbot.core import commands, Config, bank from redbot.core.utils.chat_formatting import humanize_list class UploadStreaks(commands.Cog): def __init__(self, bot): self.bot = bot self.config = Config.get_conf(sel...
true
true
f7fb54897f8a43dabdc0581b6989814cc668957d
55
py
Python
oscar/templatetags/sorting_tags.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
null
null
null
oscar/templatetags/sorting_tags.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
null
null
null
oscar/templatetags/sorting_tags.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
1
2019-07-10T06:32:14.000Z
2019-07-10T06:32:14.000Z
from django_sorting.templatetags.sorting_tags import *
27.5
54
0.872727
from django_sorting.templatetags.sorting_tags import *
true
true
f7fb555585ebe863907c108e7db58f0e2104f720
3,924
py
Python
Loader.py
MingSun-Tse/PytorchWCT
9d11cc0995c0610c129b78ff5f72a26f4d60e10a
[ "MIT" ]
null
null
null
Loader.py
MingSun-Tse/PytorchWCT
9d11cc0995c0610c129b78ff5f72a26f4d60e10a
[ "MIT" ]
null
null
null
Loader.py
MingSun-Tse/PytorchWCT
9d11cc0995c0610c129b78ff5f72a26f4d60e10a
[ "MIT" ]
null
null
null
from PIL import Image import torchvision.transforms as transforms import torchvision.utils as vutils import torch.utils.data as data from os import listdir from os.path import join import numpy as np import torch import os import torch.nn as nn from torch.autograd import Variable import numpy as np def is_image_file(f...
45.627907
139
0.63787
from PIL import Image import torchvision.transforms as transforms import torchvision.utils as vutils import torch.utils.data as data from os import listdir from os.path import join import numpy as np import torch import os import torch.nn as nn from torch.autograd import Variable import numpy as np def is_image_file(f...
true
true
f7fb55e5d35f2646ea4c54c7cd8670add5a6be16
343
py
Python
model.py
Zadigo/flask_startup_template
29eb4c29ef57c7fe8ff0041d980c03148549b0e2
[ "MIT" ]
null
null
null
model.py
Zadigo/flask_startup_template
29eb4c29ef57c7fe8ff0041d980c03148549b0e2
[ "MIT" ]
null
null
null
model.py
Zadigo/flask_startup_template
29eb4c29ef57c7fe8ff0041d980c03148549b0e2
[ "MIT" ]
null
null
null
# from karista import db # import datetime # class Emails(db.Model): # email_id = db.Column(db.Integer, primary_key=True) # email = db.Column(db.Email, unique=False, nullable=False) # date_creer = db.Column(db.DateTime, nullable=False, default=datetime.datetime.utcnow) # def __repr__(self): # ...
34.3
92
0.685131
true
true
f7fb56903b64027389bd473544f5466f0d6ac88d
1,016
py
Python
autowrt/__main__.py
krumelmonster/autowrt
135228c921a2f41787e694900efb359cdd72a950
[ "Unlicense" ]
2
2021-05-14T17:37:31.000Z
2021-05-14T18:11:51.000Z
autowrt/__main__.py
krumelmonster/autowrt
135228c921a2f41787e694900efb359cdd72a950
[ "Unlicense" ]
1
2021-03-14T19:48:58.000Z
2021-03-14T19:48:58.000Z
autowrt/__main__.py
krumelmonster/autowrt
135228c921a2f41787e694900efb359cdd72a950
[ "Unlicense" ]
null
null
null
from autowrt.router import Xiaomi import os, sys def main(imagedir: str = None, confpath: str = None, logdir: str = None): confpath = confpath or os.getcwd() imagedir = imagedir or os.getcwd() logdir = logdir or os.getcwd() confscript=os.path.join(confpath, 'config.py') if not os.path.isfile(confs...
30.787879
106
0.691929
from autowrt.router import Xiaomi import os, sys def main(imagedir: str = None, confpath: str = None, logdir: str = None): confpath = confpath or os.getcwd() imagedir = imagedir or os.getcwd() logdir = logdir or os.getcwd() confscript=os.path.join(confpath, 'config.py') if not os.path.isfile(confs...
true
true
f7fb56adbe14a0507a6126dfda108fe9202885f7
22,830
py
Python
irmark1/templates/complete.py
jram098/IRG
5265d61c2e67cce43a3261563b3b0f3cea27d9e4
[ "Apache-2.0" ]
1
2019-11-07T22:22:53.000Z
2019-11-07T22:22:53.000Z
irmark1/templates/complete.py
jram098/IRG
5265d61c2e67cce43a3261563b3b0f3cea27d9e4
[ "Apache-2.0" ]
null
null
null
irmark1/templates/complete.py
jram098/IRG
5265d61c2e67cce43a3261563b3b0f3cea27d9e4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Scripts to drive an IR Mark One (2) car Usage: manage.py (drive) [--model=<model>] [--js] [--type=(linear|categorical|rnn|imu|behavior|3d|localizer|latent)] [--camera=(single|stereo)] [--meta=<key:value> ...] manage.py (train) [--tub=<tub1,tub2,..tubn>] [--file=<file> ...] (--model=<...
38.826531
190
0.613447
import os import time from docopt import docopt import numpy as np import irmark1 as m1 from irmark1.parts.transform import Lambda, TriggeredCallback, DelayedTrigger from irmark1.parts.datastore import TubHandler from irmark1.parts.controller import LocalWebController, JoystickController from irmark1.parts.throttl...
true
true
f7fb59808ba0a6fc372d370b26c1fc45691c8bb2
111
py
Python
applicationinsights/__init__.py
Rebeccalau/ApplicationInsights-Python
cc91fede2d6d6c48acaa5687aa13ca491a17025a
[ "MIT" ]
89
2015-05-06T22:02:17.000Z
2019-04-22T14:50:33.000Z
applicationinsights/__init__.py
Rebeccalau/ApplicationInsights-Python
cc91fede2d6d6c48acaa5687aa13ca491a17025a
[ "MIT" ]
115
2015-04-29T17:44:52.000Z
2019-04-25T21:39:02.000Z
applicationinsights/__init__.py
Rebeccalau/ApplicationInsights-Python
cc91fede2d6d6c48acaa5687aa13ca491a17025a
[ "MIT" ]
59
2015-04-19T13:34:52.000Z
2019-04-25T21:04:02.000Z
from .TelemetryClient import TelemetryClient from . import channel from . import logging from . import requests
27.75
44
0.828829
from .TelemetryClient import TelemetryClient from . import channel from . import logging from . import requests
true
true
f7fb5a20f6035fc77ef1fcd6f6277b27a12e61f3
13,596
py
Python
ethereum/processblock.py
volut-staging/pyethereum
f44902a4e9ea0fee00f9ef3e58ce1fd566ffe45b
[ "MIT" ]
null
null
null
ethereum/processblock.py
volut-staging/pyethereum
f44902a4e9ea0fee00f9ef3e58ce1fd566ffe45b
[ "MIT" ]
null
null
null
ethereum/processblock.py
volut-staging/pyethereum
f44902a4e9ea0fee00f9ef3e58ce1fd566ffe45b
[ "MIT" ]
null
null
null
import sys import rlp from rlp.sedes import CountableList, binary from rlp.utils import decode_hex, encode_hex, ascii_chr from ethereum import opcodes from ethereum import utils from ethereum import specials from ethereum import bloom from ethereum import vm as vm from ethereum.exceptions import InvalidNonce, Insuffici...
38.515581
104
0.636437
import sys import rlp from rlp.sedes import CountableList, binary from rlp.utils import decode_hex, encode_hex, ascii_chr from ethereum import opcodes from ethereum import utils from ethereum import specials from ethereum import bloom from ethereum import vm as vm from ethereum.exceptions import InvalidNonce, Insuffici...
true
true
f7fb5aea429174463bb79f3d130a4f2a062fec42
8,652
py
Python
train.py
vietnguyen1991/Character-level-cnn-tensorflow
f4067093ef54a92fd3cd6558823fe6a06bfc5614
[ "MIT" ]
12
2019-01-31T22:59:43.000Z
2019-08-21T07:14:47.000Z
train.py
vietnguyen91/Character-level-cnn-tensorflow
f4067093ef54a92fd3cd6558823fe6a06bfc5614
[ "MIT" ]
1
2019-10-25T12:59:48.000Z
2019-10-25T12:59:57.000Z
train.py
nhviet1009/Character-level-cnn-tensorflow
f4067093ef54a92fd3cd6558823fe6a06bfc5614
[ "MIT" ]
6
2019-02-10T14:12:45.000Z
2019-08-10T17:18:20.000Z
""" @author: Thang Nguyen <nhthang1009@gmail.com> """ import os import shutil import numpy as np import tensorflow as tf from src.character_level_cnn import Char_level_cnn from src.utils import get_num_classes, create_dataset tf.flags.DEFINE_string("alphabet", """abcdefghijklmnopqrstuvwxyz0123456789,;.!?:'\"/\\|_@#$...
51.5
164
0.585298
import os import shutil import numpy as np import tensorflow as tf from src.character_level_cnn import Char_level_cnn from src.utils import get_num_classes, create_dataset tf.flags.DEFINE_string("alphabet", """abcdefghijklmnopqrstuvwxyz0123456789,;.!?:'\"/\\|_@#$%^&*~`+-=<>()[]{}""", "Valid ch...
true
true
f7fb5be32144fa75c99705a27a898f52f78a27f3
31,247
py
Python
venv/Lib/site-packages/pandas/tests/series/apply/test_series_apply.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/series/apply/test_series_apply.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/series/apply/test_series_apply.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
from collections import Counter, defaultdict from itertools import chain import numpy as np import pytest import pandas as pd from pandas import DataFrame, Index, MultiIndex, Series, isna import pandas._testing as tm from pandas.core.base import SpecificationError class TestSeriesApply: def test_ap...
37.376794
89
0.539412
from collections import Counter, defaultdict from itertools import chain import numpy as np import pytest import pandas as pd from pandas import DataFrame, Index, MultiIndex, Series, isna import pandas._testing as tm from pandas.core.base import SpecificationError class TestSeriesApply: def test_ap...
true
true
f7fb5c3cc3be647cb0404baf8d7024dc58158c0d
12,416
py
Python
anyway/accidents_around_schools.py
shaniwein/anyway
dcd13bf7dc4a120f4d697ab0c08b906f43eea52e
[ "MIT" ]
1
2022-01-19T18:23:03.000Z
2022-01-19T18:23:03.000Z
anyway/accidents_around_schools.py
shaniwein/anyway
dcd13bf7dc4a120f4d697ab0c08b906f43eea52e
[ "MIT" ]
2
2021-11-02T13:37:23.000Z
2021-11-23T15:51:06.000Z
anyway/accidents_around_schools.py
shaniwein/anyway
dcd13bf7dc4a120f4d697ab0c08b906f43eea52e
[ "MIT" ]
null
null
null
import os import math import pandas as pd import sqlalchemy as sa from sqlalchemy import or_ from anyway.backend_constants import BE_CONST from anyway.models import AccidentMarker, Involved, School from anyway.app_and_db import db SUBTYPE_ACCIDENT_WITH_PEDESTRIAN = 1 LOCATION_ACCURACY_PRECISE = True LOCATION_ACCURAC...
35.884393
519
0.625644
import os import math import pandas as pd import sqlalchemy as sa from sqlalchemy import or_ from anyway.backend_constants import BE_CONST from anyway.models import AccidentMarker, Involved, School from anyway.app_and_db import db SUBTYPE_ACCIDENT_WITH_PEDESTRIAN = 1 LOCATION_ACCURACY_PRECISE = True LOCATION_ACCURAC...
true
true
f7fb5e0f3bc10ab2ce84307dfcfa55e8c6d68bac
4,906
py
Python
vanilla_segmentation/train.py
khmariem/DenseFusion
e39f685e6315fc9319d47be0f859585f7dfcf288
[ "MIT" ]
1
2019-11-06T12:02:02.000Z
2019-11-06T12:02:02.000Z
vanilla_segmentation/train.py
khmariem/DenseFusion
e39f685e6315fc9319d47be0f859585f7dfcf288
[ "MIT" ]
null
null
null
vanilla_segmentation/train.py
khmariem/DenseFusion
e39f685e6315fc9319d47be0f859585f7dfcf288
[ "MIT" ]
null
null
null
import os import copy import random import argparse import time import numpy as np from PIL import Image import scipy.io as scio import scipy.misc import torch from torch.optim.lr_scheduler import ReduceLROnPlateau from torch.autograd import Variable import torch.optim as optim import torch.nn as nn from torch.backends...
45.850467
169
0.670404
import os import copy import random import argparse import time import numpy as np from PIL import Image import scipy.io as scio import scipy.misc import torch from torch.optim.lr_scheduler import ReduceLROnPlateau from torch.autograd import Variable import torch.optim as optim import torch.nn as nn from torch.backends...
true
true
f7fb5eef9a18ff14528216f7b9dd8caa4dd4afec
901
py
Python
tests/aws/s3_handler_test.py
project-hadron/discovery-connectors
7bca00d6649eab5a21a17a98c49540ff781481fc
[ "BSD-3-Clause" ]
1
2020-09-21T17:24:28.000Z
2020-09-21T17:24:28.000Z
tests/aws/s3_handler_test.py
project-hadron/discovery-connectors
7bca00d6649eab5a21a17a98c49540ff781481fc
[ "BSD-3-Clause" ]
null
null
null
tests/aws/s3_handler_test.py
project-hadron/discovery-connectors
7bca00d6649eab5a21a17a98c49540ff781481fc
[ "BSD-3-Clause" ]
1
2021-07-26T12:09:37.000Z
2021-07-26T12:09:37.000Z
import unittest import pandas as pd import os from pprint import pprint from ds_connectors.handlers.s3_handlers import S3SourceHandler, S3PersistHandler from aistac.handlers.abstract_handlers import ConnectorContract, HandlerFactory class S3HandlerTest(unittest.TestCase): def setUp(self): pass def ...
30.033333
162
0.72364
import unittest import pandas as pd import os from pprint import pprint from ds_connectors.handlers.s3_handlers import S3SourceHandler, S3PersistHandler from aistac.handlers.abstract_handlers import ConnectorContract, HandlerFactory class S3HandlerTest(unittest.TestCase): def setUp(self): pass def ...
true
true
f7fb60cd85373573cb0521c2d08a753d3e9e4f3f
1,440
py
Python
tests/sql_sync/fixtures/db_fixtures_helper.py
jzcruiser/doltpy
e7dfa97c66fa405e1a1ead04228084eaf3c4b0b9
[ "Apache-2.0" ]
31
2020-11-16T23:47:13.000Z
2022-03-26T21:39:47.000Z
tests/sql_sync/fixtures/db_fixtures_helper.py
jzcruiser/doltpy
e7dfa97c66fa405e1a1ead04228084eaf3c4b0b9
[ "Apache-2.0" ]
61
2020-10-01T19:33:33.000Z
2022-02-24T14:08:07.000Z
tests/sql_sync/fixtures/db_fixtures_helper.py
jzcruiser/doltpy
e7dfa97c66fa405e1a1ead04228084eaf3c4b0b9
[ "Apache-2.0" ]
8
2020-12-20T21:22:27.000Z
2021-09-02T12:45:03.000Z
import pytest import yaml import sqlalchemy as sa from retry import retry @pytest.fixture(scope='session') def docker_compose_file(tmpdir_factory, mysql_service_def, postgres_service_def, oracle_service_def): compose_file = tmpdir_factory.mktemp('docker_files').join('docker-compose.yml') compose_conf = { ...
24
101
0.602083
import pytest import yaml import sqlalchemy as sa from retry import retry @pytest.fixture(scope='session') def docker_compose_file(tmpdir_factory, mysql_service_def, postgres_service_def, oracle_service_def): compose_file = tmpdir_factory.mktemp('docker_files').join('docker-compose.yml') compose_conf = { ...
true
true
f7fb612b84fc3d55082918ad74acdaef0b71b081
8,122
py
Python
network.py
KimMeen/STGCN
5f67ccb68aae857b92a63bd9bfcbb79dd31f4c66
[ "Apache-2.0" ]
6
2020-11-09T21:19:45.000Z
2022-03-09T08:46:58.000Z
network.py
KimMeen/STGCN
5f67ccb68aae857b92a63bd9bfcbb79dd31f4c66
[ "Apache-2.0" ]
1
2020-11-09T21:57:27.000Z
2020-11-24T15:54:00.000Z
network.py
KimMeen/STGCN
5f67ccb68aae857b92a63bd9bfcbb79dd31f4c66
[ "Apache-2.0" ]
1
2021-11-25T20:55:30.000Z
2021-11-25T20:55:30.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jul 20 18:30:55 2020 @author: Ming Jin """ import torch import torch.nn as nn import torch.nn.functional as F import dgl import dgl.function as fn from dgl import DGLGraph from layers import TemporalConvLayer, TemporalConvLayer_Residual, SpatialConvLayer, OutputLayer, Output...
40.81407
136
0.548141
import torch import torch.nn as nn import torch.nn.functional as F import dgl import dgl.function as fn from dgl import DGLGraph from layers import TemporalConvLayer, TemporalConvLayer_Residual, SpatialConvLayer, OutputLayer, OutputLayer_Simple class STGCN(nn.Module): def __init__(self, c, T, n, g, p, control_...
true
true
f7fb6222648b99c20bc8837e865ea751c71412b9
10,053
py
Python
contrib/spendfrom/spendfrom.py
metalheadani/cryptocare
b1e6d56a63b88d466668788e12d73038db4a490f
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
metalheadani/cryptocare
b1e6d56a63b88d466668788e12d73038db4a490f
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
metalheadani/cryptocare
b1e6d56a63b88d466668788e12d73038db4a490f
[ "MIT" ]
1
2018-05-13T07:06:51.000Z
2018-05-13T07:06:51.000Z
#!/usr/bin/env python # # Use the raw transactions API to spend bitcoins received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a bitcoind or Bit...
37.511194
111
0.632249
mport * import getpass import math import os import os.path import platform import sys import time from jsonrpc import ServiceProxy, json BASE_FEE=Decimal("0.001") def check_json_precision(): n = Decimal("20000000.00000003") satoshis = int(json.loads(json.dumps(float(n)))*1.0e8) if satoshis != 20000...
true
true
f7fb6235a443779b8812d9669051db1d0cab6400
425
py
Python
item_h/server.py
augustocarrlos10/Flask_TecWeb
5e99f20d61c42a9a1b621abe40c7410f8ac9890f
[ "MIT" ]
null
null
null
item_h/server.py
augustocarrlos10/Flask_TecWeb
5e99f20d61c42a9a1b621abe40c7410f8ac9890f
[ "MIT" ]
null
null
null
item_h/server.py
augustocarrlos10/Flask_TecWeb
5e99f20d61c42a9a1b621abe40c7410f8ac9890f
[ "MIT" ]
null
null
null
#h. Send data to Flask template (Jinja2) from flask import Flask, render_template, request app = Flask(__name__) @app.route('/') def student(): return render_template('student.html') @app.route('/result', methods=['POST', 'GET']) def result(): if request.method == 'POST': result = request.form ...
19.318182
58
0.675294
from flask import Flask, render_template, request app = Flask(__name__) @app.route('/') def student(): return render_template('student.html') @app.route('/result', methods=['POST', 'GET']) def result(): if request.method == 'POST': result = request.form return render_template("result.html", re...
true
true
f7fb6264dd17770dc115fcbb983a2d087d65a732
943
py
Python
kubernetes/test/test_v1_daemon_set_spec.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
2
2020-06-21T08:03:18.000Z
2020-06-21T09:53:29.000Z
kubernetes/test/test_v1_daemon_set_spec.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_daemon_set_spec.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
1
2020-06-21T08:03:17.000Z
2020-06-21T08:03:17.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.16 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import...
23.575
124
0.718982
from __future__ import absolute_import import unittest import kubernetes.client from kubernetes.client.models.v1_daemon_set_spec import V1DaemonSetSpec from kubernetes.client.rest import ApiException class TestV1DaemonSetSpec(unittest.TestCase): def setUp(self): pass def tearDown(self): ...
true
true
f7fb62e1a057c12ecf35183f431577c91d45b6fa
379
py
Python
ptranking/ltr_adversarial/pointwise/point_discriminator.py
ryo59/ptranking
f06fd768de6dd5eaa3c931f191d907f56c147d09
[ "MIT" ]
236
2020-08-31T04:20:48.000Z
2022-03-23T07:01:46.000Z
ptranking/ltr_adversarial/pointwise/point_discriminator.py
ryo59/ptranking
f06fd768de6dd5eaa3c931f191d907f56c147d09
[ "MIT" ]
7
2020-09-06T06:08:28.000Z
2022-02-22T01:29:30.000Z
ptranking/ltr_adversarial/pointwise/point_discriminator.py
ryo59/ptranking
f06fd768de6dd5eaa3c931f191d907f56c147d09
[ "MIT" ]
30
2020-09-01T17:07:12.000Z
2022-03-13T17:43:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from ptranking.ltr_adversarial.base.ad_player import AdversarialPlayer class Point_Discriminator(AdversarialPlayer): ''' A pointwise discriminator ''' def __init__(self, sf_para_dict=None, gpu=False, device=None): super(Point_Discriminator, self)._...
31.583333
100
0.738786
from ptranking.ltr_adversarial.base.ad_player import AdversarialPlayer class Point_Discriminator(AdversarialPlayer): def __init__(self, sf_para_dict=None, gpu=False, device=None): super(Point_Discriminator, self).__init__(sf_para_dict=sf_para_dict, gpu=gpu, device=device)
true
true
f7fb62e6b03b704ecd23f01a294cba3391bf54dc
217
py
Python
pylgrum/tui/__init__.py
jrheling/pylgrum
1e95a56acdfdd865404da5dc94e47c7fe858095f
[ "MIT" ]
2
2020-12-27T09:35:19.000Z
2021-07-27T01:29:05.000Z
pylgrum/tui/__init__.py
jrheling/pylgrum
1e95a56acdfdd865404da5dc94e47c7fe858095f
[ "MIT" ]
4
2020-03-24T18:15:38.000Z
2021-06-02T00:55:56.000Z
pylgrum/tui/__init__.py
jrheling/pylgrum
1e95a56acdfdd865404da5dc94e47c7fe858095f
[ "MIT" ]
2
2020-12-01T15:24:16.000Z
2020-12-27T09:47:00.000Z
"""The pylgrum.tui sub-package includes classes to drive text-mode play. Classes all extend base classes from `pylgrum`: TUIGame: simple console-based proof-of-concept TUIPlayer: simple console-based PoC """
31
72
0.75576
true
true
f7fb635810a051d73e49bfa65dc1d3e5a0f75801
1,925
py
Python
tests/xi_test.py
bbstats/xicor
69d61d5cff5a0e3bc7a2d95660ed3e8e48ef0341
[ "MIT" ]
118
2021-02-26T22:50:52.000Z
2022-02-22T08:05:03.000Z
tests/xi_test.py
bbstats/xicor
69d61d5cff5a0e3bc7a2d95660ed3e8e48ef0341
[ "MIT" ]
8
2021-07-15T20:43:56.000Z
2022-03-04T14:14:19.000Z
tests/xi_test.py
bbstats/xicor
69d61d5cff5a0e3bc7a2d95660ed3e8e48ef0341
[ "MIT" ]
7
2021-12-26T01:56:04.000Z
2022-03-30T00:15:35.000Z
import random import numpy as np import pytest from xicor.xicor import Xi """ From Wikipedia: Anscombe's quartet comprises four data sets that have nearly identical simple descriptive statistics, yet have very different distributions and appear very different when graphed. Each dataset consists of eleven (x,y) points...
31.048387
78
0.71013
import random import numpy as np import pytest from xicor.xicor import Xi @pytest.fixture def anscombes_xis(anscombes_quartet): random.seed(2020) np.random.seed(2020) xis = { "xi_1": Xi(anscombes_quartet["x_1"], anscombes_quartet["y_1"]), "xi_2": Xi(anscombes_quartet["x_2"], anscombes_qu...
true
true
f7fb6391176c926b55db3084ba67b16f08ad90a4
1,888
py
Python
examples/dfp/v201711/user_service/get_user_by_email_address.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
1
2019-10-21T04:10:22.000Z
2019-10-21T04:10:22.000Z
examples/dfp/v201711/user_service/get_user_by_email_address.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201711/user_service/get_user_by_email_address.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
1
2019-10-21T04:10:51.000Z
2019-10-21T04:10:51.000Z
#!/usr/bin/env python # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
35.622642
78
0.692797
"""This example gets users by email. """ from googleads import dfp EMAIL_ADDRESS = 'INSERT_EMAIL_ADDRESS_HERE' def main(client, email_address): user_service = client.GetService('UserService', version='v201711') statement = (dfp.StatementBuilder() .Where('email = :email') ...
false
true
f7fb63bc6b75023e46abe2b059d9f5498c154b87
1,574
py
Python
bin/azure/mgmt/datalake/analytics/catalog/models/data_lake_analytics_catalog_credential_create_parameters.py
zdmc23/bash-lambda-layer
e762df0189cfb894dab2d96bae1655b8857d5efb
[ "MIT" ]
null
null
null
bin/azure/mgmt/datalake/analytics/catalog/models/data_lake_analytics_catalog_credential_create_parameters.py
zdmc23/bash-lambda-layer
e762df0189cfb894dab2d96bae1655b8857d5efb
[ "MIT" ]
null
null
null
bin/azure/mgmt/datalake/analytics/catalog/models/data_lake_analytics_catalog_credential_create_parameters.py
zdmc23/bash-lambda-layer
e762df0189cfb894dab2d96bae1655b8857d5efb
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # C...
34.977778
77
0.57878
from msrest.serialization import Model class DataLakeAnalyticsCatalogCredentialCreateParameters(Model): _validation = { 'password': {'required': True}, 'uri': {'required': True}, 'user_id': {'required': True}, } _attribute_map = { 'password': {'key...
true
true
f7fb644a9ddb62c0e7f97a8b3e6205ba23ae7c60
4,735
py
Python
setup.py
tgodaA/cvprac
52a44d8a098ee25761344421b99d09eeb4d19784
[ "BSD-3-Clause" ]
null
null
null
setup.py
tgodaA/cvprac
52a44d8a098ee25761344421b99d09eeb4d19784
[ "BSD-3-Clause" ]
null
null
null
setup.py
tgodaA/cvprac
52a44d8a098ee25761344421b99d09eeb4d19784
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2016, Arista Networks, 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 condit...
37.579365
85
0.700528
import io from os import path, walk from glob import glob try: from setuptools import setup except ImportError: from distutils.core import setup from cvprac import __version__, __author__ def find_modules(pkg): modules = [pkg] for dirname, dirnames, _ in walk(pkg): ...
true
true
f7fb65013edae6f0f2dba656cd44875d668e673a
2,596
py
Python
docs/sphinxext/doxybridge/project.py
Oghma/speect
f618e8d651cb9ec4c90cc244af3e7aa993599f6d
[ "BSD-2-Clause", "BSD-3-Clause" ]
5
2016-01-29T14:39:46.000Z
2019-04-24T14:45:55.000Z
docs/sphinxext/doxybridge/project.py
Oghma/speect
f618e8d651cb9ec4c90cc244af3e7aa993599f6d
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
docs/sphinxext/doxybridge/project.py
Oghma/speect
f618e8d651cb9ec4c90cc244af3e7aa993599f6d
[ "BSD-2-Clause", "BSD-3-Clause" ]
7
2015-09-17T14:45:05.000Z
2020-03-30T13:19:29.000Z
""" doxybridge.project ~~~~~~~~~~~~~~~~~~ :copyright: Copyright (c) 2011 The Department of Arts and Culture, The Government of the Republic of South Africa. :copyright: Copyright (c) 2009, Michael Jones :license: MIT, see LICENSE for details. """ import sys class ProjectInfo(objec...
23.387387
85
0.534669
""" doxybridge.project ~~~~~~~~~~~~~~~~~~ :copyright: Copyright (c) 2011 The Department of Arts and Culture, The Government of the Republic of South Africa. :copyright: Copyright (c) 2009, Michael Jones :license: MIT, see LICENSE for details. """ import sys class ProjectInfo(objec...
false
true
f7fb65981a8db33eed8c20487f5bc455e7a2483a
3,993
py
Python
testing/test_images.py
ZouaghiHoussem/MTCNN_68_TensorFlow
b41dbda229e24d6c79d28c22d910e17fca2618c3
[ "MIT" ]
50
2017-09-18T16:11:01.000Z
2022-03-28T15:54:04.000Z
testing/test_images.py
ZouaghiHoussem/MTCNN_68_TensorFlow
b41dbda229e24d6c79d28c22d910e17fca2618c3
[ "MIT" ]
7
2017-09-18T16:11:36.000Z
2018-05-05T01:39:24.000Z
testing/test_images.py
ZouaghiHoussem/MTCNN_68_TensorFlow
b41dbda229e24d6c79d28c22d910e17fca2618c3
[ "MIT" ]
22
2018-03-22T06:31:14.000Z
2020-03-10T07:20:04.000Z
#coding:utf-8 import tensorflow as tf import numpy as np import os import sys rootPath = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../")) sys.path.insert(0, rootPath) from training.mtcnn_model import P_Net, R_Net, O_Net from tools.loader import TestLoader from detection.MtcnnDetector imp...
46.976471
128
0.63436
import tensorflow as tf import numpy as np import os import sys rootPath = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../")) sys.path.insert(0, rootPath) from training.mtcnn_model import P_Net, R_Net, O_Net from tools.loader import TestLoader from detection.MtcnnDetector import MtcnnDete...
true
true
f7fb6666acec27c3471ebbb8630a2e964ae53c7d
1,480
py
Python
experiments/rpi/brickpi/LEGO-Motor_Test.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
13
2016-04-12T07:38:02.000Z
2021-12-24T16:53:53.000Z
experiments/rpi/brickpi/LEGO-Motor_Test.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
1
2021-03-20T05:17:03.000Z
2021-03-20T05:17:03.000Z
experiments/rpi/brickpi/LEGO-Motor_Test.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
9
2016-04-29T02:21:37.000Z
2022-03-17T23:35:13.000Z
# Jaikrishna # Initial Date: June 24, 2013 # Last Updated: June 24, 2013 # # These files have been made available online through a Creative Commons Attribution-ShareAlike 3.0 license. # (http://creativecommons.org/licenses/by-sa/3.0/) # # http://www.dexterindustries.com/ # This code is for testing the BrickPi with a L...
43.529412
109
0.685811
from BrickPi import * BrickPiSetup() BrickPi.MotorEnable[PORT_A] = 1 BrickPi.MotorEnable[PORT_B] = 1 BrickPiSetupSensors() while True: print "Running Forward" BrickPi.MotorSpeed[PORT_A] = 200 BrickPi.MotorSpeed[PORT_B] = 200 ot = time.time() while(time.time() - ot < 3): ...
false
true
f7fb669f111e8b6461b2fc5edca54c4bede91841
39,828
py
Python
sympy/functions/elementary/exponential.py
joha2/sympy
5c54e5b78bc907569f56996601603b7b574dfc73
[ "BSD-3-Clause" ]
null
null
null
sympy/functions/elementary/exponential.py
joha2/sympy
5c54e5b78bc907569f56996601603b7b574dfc73
[ "BSD-3-Clause" ]
10
2021-07-21T20:56:57.000Z
2021-07-31T16:35:28.000Z
sympy/functions/elementary/exponential.py
joha2/sympy
5c54e5b78bc907569f56996601603b7b574dfc73
[ "BSD-3-Clause" ]
null
null
null
from sympy.core import sympify from sympy.core.add import Add from sympy.core.cache import cacheit from sympy.core.function import ( Function, ArgumentIndexError, _coeff_isneg, expand_mul, FunctionClass, PoleError) from sympy.core.logic import fuzzy_and, fuzzy_not, fuzzy_or from sympy.core.mul import Mul from s...
33.052282
91
0.512353
from sympy.core import sympify from sympy.core.add import Add from sympy.core.cache import cacheit from sympy.core.function import ( Function, ArgumentIndexError, _coeff_isneg, expand_mul, FunctionClass, PoleError) from sympy.core.logic import fuzzy_and, fuzzy_not, fuzzy_or from sympy.core.mul import Mul from s...
true
true
f7fb675b845ff6b54bbecfb3a0f01d376831a594
8,820
py
Python
lib/markdown/extensions/toc.py
ParadiseDS/sublimetext-markdown-slideshow
b2bb2600e373341ccb9f8a0ba9ad2b799ab5b380
[ "MIT" ]
50
2015-01-13T04:57:49.000Z
2021-04-10T21:51:52.000Z
lib/markdown/extensions/toc.py
ParadiseDS/sublimetext-markdown-slideshow
b2bb2600e373341ccb9f8a0ba9ad2b799ab5b380
[ "MIT" ]
6
2015-01-03T04:00:39.000Z
2018-03-03T08:40:05.000Z
lib/markdown/extensions/toc.py
ParadiseDS/sublimetext-markdown-slideshow
b2bb2600e373341ccb9f8a0ba9ad2b799ab5b380
[ "MIT" ]
11
2015-01-17T17:58:36.000Z
2019-12-15T17:34:08.000Z
""" Table of Contents Extension for Python-Markdown =============================================== See <https://pythonhosted.org/Markdown/extensions/toc.html> for documentation. Oringinal code Copyright 2008 [Jack Miller](http://codezen.org) All changes Copyright 2008-2014 The Python Markdown Project License: [BS...
36.147541
84
0.538435
from __future__ import absolute_import from __future__ import unicode_literals from . import Extension from ..treeprocessors import Treeprocessor from ..util import etree, parseBoolValue, AMP_SUBSTITUTE from .headerid import slugify, unique, itertext, stashedHTML2text import re def order_toc_list(toc_list): ord...
true
true
f7fb686890c8970bf5120e2e7584066e2b14baa8
40,835
py
Python
sdk/python/pulumi_aws/elasticloadbalancingv2/listener.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
1
2021-11-10T16:33:40.000Z
2021-11-10T16:33:40.000Z
sdk/python/pulumi_aws/elasticloadbalancingv2/listener.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/elasticloadbalancingv2/listener.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
44.628415
258
0.625101
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._inputs import * __all__ = ['ListenerArgs', 'Listener'] @pulumi.input_type class ListenerArgs: def __init__(__self__, *, ...
true
true
f7fb6881d3cac1c6a4a8dcce6c1e88ce32a634d8
4,446
py
Python
graph2vec/node2vec.py
elifriedman/node2vec
0fade3002f84e19cfe7564b5cb9d232dfd63d1ea
[ "MIT" ]
null
null
null
graph2vec/node2vec.py
elifriedman/node2vec
0fade3002f84e19cfe7564b5cb9d232dfd63d1ea
[ "MIT" ]
null
null
null
graph2vec/node2vec.py
elifriedman/node2vec
0fade3002f84e19cfe7564b5cb9d232dfd63d1ea
[ "MIT" ]
null
null
null
import numpy as np import networkx as nx import random class Graph(): def __init__(self, nx_G, is_directed, p, q): self.G = nx_G.to_directed() if is_directed else nx_G.to_undirected() self.is_directed = is_directed self.p = p self.q = q def node2vec_walk(self, walk_length, sta...
30.040541
123
0.55758
import numpy as np import networkx as nx import random class Graph(): def __init__(self, nx_G, is_directed, p, q): self.G = nx_G.to_directed() if is_directed else nx_G.to_undirected() self.is_directed = is_directed self.p = p self.q = q def node2vec_walk(self, walk_length, sta...
true
true
f7fb68b586c7a9eb8ea8388ba8aa8e54f6c9bbb4
4,099
py
Python
nipyapi/nifi/models/search_result_group_dto.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
199
2017-08-24T12:19:41.000Z
2022-03-20T14:50:17.000Z
nipyapi/nifi/models/search_result_group_dto.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
275
2017-08-28T21:21:49.000Z
2022-03-29T17:57:26.000Z
nipyapi/nifi/models/search_result_group_dto.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
73
2017-09-07T10:13:56.000Z
2022-02-28T10:37:21.000Z
# coding: utf-8 """ NiFi Rest API The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
26.445161
478
0.529641
from pprint import pformat from six import iteritems import re class SearchResultGroupDTO(object): swagger_types = { 'id': 'str', 'name': 'str' } attribute_map = { 'id': 'id', 'name': 'name' } def __init__(self, id=None, name=None): self._id = None ...
true
true
f7fb6a245df1eeb24b8b473047d19a2233470b06
56
py
Python
cognite/client/_version.py
sakshi87/cognite-sdk-python
eb3d569fd058dfd8e3c0c29dee2a635deabad1ac
[ "Apache-2.0" ]
null
null
null
cognite/client/_version.py
sakshi87/cognite-sdk-python
eb3d569fd058dfd8e3c0c29dee2a635deabad1ac
[ "Apache-2.0" ]
null
null
null
cognite/client/_version.py
sakshi87/cognite-sdk-python
eb3d569fd058dfd8e3c0c29dee2a635deabad1ac
[ "Apache-2.0" ]
null
null
null
__version__ = "2.20.0" __api_subversion__ = "V20210423"
18.666667
32
0.75
__version__ = "2.20.0" __api_subversion__ = "V20210423"
true
true
f7fb6b2adc973bed9154169011f89e3b9dc2cd72
685
py
Python
app/core/migrations/0003_ingredient.py
sunnyrpandya/recipe-app-api
92fbefb9bd80e967cd1111ddc25c3c8da5980c39
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingredient.py
sunnyrpandya/recipe-app-api
92fbefb9bd80e967cd1111ddc25c3c8da5980c39
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingredient.py
sunnyrpandya/recipe-app-api
92fbefb9bd80e967cd1111ddc25c3c8da5980c39
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-02-18 05:51 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_tag'), ] operations = [ migrations.CreateModel( n...
28.541667
118
0.617518
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_tag'), ] operations = [ migrations.CreateModel( name='Ingredient', fields=[ ...
true
true
f7fb6bf2ecefa59a5d8472409b6048444bee173f
22,395
py
Python
cogdl/models/nn/pyg_supergat.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
cogdl/models/nn/pyg_supergat.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
cogdl/models/nn/pyg_supergat.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
import random import numpy as np import torch import torch.nn as nn from torch.nn import Parameter import torch.nn.functional as F from torch_geometric.nn.conv import MessagePassing from torch_geometric.utils import ( remove_self_loops, add_self_loops, softmax, dropout_adj, is_undirected, accu...
38.347603
119
0.602858
import random import numpy as np import torch import torch.nn as nn from torch.nn import Parameter import torch.nn.functional as F from torch_geometric.nn.conv import MessagePassing from torch_geometric.utils import ( remove_self_loops, add_self_loops, softmax, dropout_adj, is_undirected, accu...
true
true
f7fb6d12d3d76297ceb77432612fedf234741b15
2,581
py
Python
setup.py
mrdavidlaing/impyla
dfe9d00ca7eb9f4297075e1251397cdeb61e8298
[ "Apache-2.0" ]
null
null
null
setup.py
mrdavidlaing/impyla
dfe9d00ca7eb9f4297075e1251397cdeb61e8298
[ "Apache-2.0" ]
null
null
null
setup.py
mrdavidlaing/impyla
dfe9d00ca7eb9f4297075e1251397cdeb61e8298
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Cloudera 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 agreed to in writing...
35.356164
77
0.647036
from __future__ import absolute_import import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages def readme(): with open('README.md', 'r') as ip: return ip.read() import versioneer setup( name='impyla', version=versioneer.get_version(), cmdclass=...
true
true
f7fb6f3210080025fcb3a466bb138b1fc06178ac
2,966
py
Python
audio/receiver.py
qaute/zeitgeist
6d62294571e32acc12fbb67f98adf923d5a1533b
[ "CC0-1.0" ]
null
null
null
audio/receiver.py
qaute/zeitgeist
6d62294571e32acc12fbb67f98adf923d5a1533b
[ "CC0-1.0" ]
null
null
null
audio/receiver.py
qaute/zeitgeist
6d62294571e32acc12fbb67f98adf923d5a1533b
[ "CC0-1.0" ]
1
2018-10-30T16:51:41.000Z
2018-10-30T16:51:41.000Z
#!/usr/bin/python3 """ receiver.py This file tracks an acoustic FSK signal by the phase difference between two microphones. """ import time import numpy as np import matplotlib.pyplot as plt import sounddevice as sd import scipy.signal as sp # define waveform parameters fs = 44100 # (Hz) sample rate fm = 256 # (sa...
27.719626
107
0.610249
import time import numpy as np import matplotlib.pyplot as plt import sounddevice as sd import scipy.signal as sp fs = 44100 fm = 256 f1 = 55 f2 = 57 times = np.linspace(0, fm/fs, fm, False) carrier1 = np.sin(2*np.pi*fs*2/fm*f1*times) carrier2 = np.sin(2*np.pi*fs*2/fm*f2*times) blank = times*0 mask1 =...
true
true
f7fb6f40d200a252e6e99bd61725342ed175df11
769
py
Python
examples/Graph_Neural_Networks/PyTorch/TAGCN.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
examples/Graph_Neural_Networks/PyTorch/TAGCN.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
examples/Graph_Neural_Networks/PyTorch/TAGCN.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import torch import graphgallery print("GraphGallery version: ", graphgallery.__version__) print("Torch version: ", torch.__version__) ''' Load Datasets - cora/citeseer/pubmed ''' from graphgallery.datasets import Planetoid data = Planetoid('cora', root="~/GraphData/datasets/", ...
29.576923
99
0.768531
import torch import graphgallery print("GraphGallery version: ", graphgallery.__version__) print("Torch version: ", torch.__version__) from graphgallery.datasets import Planetoid data = Planetoid('cora', root="~/GraphData/datasets/", verbose=False) graph = data.graph splits = data.split_nodes() graphgallery.set_b...
true
true
f7fb702baffcabc23fabacf84e23ee9f3bb01304
2,650
py
Python
sarpy/io/general/nitf_elements/tres/unclass/RSMPCA.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
1
2021-02-04T08:44:18.000Z
2021-02-04T08:44:18.000Z
sarpy/io/general/nitf_elements/tres/unclass/RSMPCA.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
null
null
null
sarpy/io/general/nitf_elements/tres/unclass/RSMPCA.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ..tre_elements import TREExtension, TREElement __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" class RNT(TREElement): def __init__(self, value): super(RNT, self).__init__() self.add_field('RNPCF', 's', 21, value) class RDT(TREElement): def ...
34.415584
54
0.581887
from ..tre_elements import TREExtension, TREElement __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" class RNT(TREElement): def __init__(self, value): super(RNT, self).__init__() self.add_field('RNPCF', 's', 21, value) class RDT(TREElement): def __init__(self, value): ...
true
true
f7fb7080753277206483bd820d16b9e0e9a0b5fb
24,218
py
Python
_v5__sub_browser.py
konsan1101/pyRiKi1
687061ce09889ec91c1c3c11df62f4cfcb3d9613
[ "MIT" ]
null
null
null
_v5__sub_browser.py
konsan1101/pyRiKi1
687061ce09889ec91c1c3c11df62f4cfcb3d9613
[ "MIT" ]
1
2020-11-06T04:36:33.000Z
2020-11-06T04:36:33.000Z
_v5__sub_browser.py
konsan1101/pyRiKi1
687061ce09889ec91c1c3c11df62f4cfcb3d9613
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # COPYRIGHT (C) 2014-2020 Mitsuo KONDOU. # This software is released under the MIT License. # https://github.com/konsan1101 # Thank you for keeping the rules. import sys import os import time import datetime import codecs import glob import queue import threading impor...
31.249032
130
0.547857
import sys import os import time import datetime import codecs import glob import queue import threading import subprocess from selenium.webdriver import Firefox, FirefoxOptions from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from sele...
true
true
f7fb722fcc1162385978ef79710fcda0248259a6
190,658
py
Python
env/lib/python3.9/site-packages/multiprocess/tests/__init__.py
wphoong/flappy_doge
c778f0e4820c1ed46e50a56f989d57df4f386736
[ "MIT" ]
null
null
null
env/lib/python3.9/site-packages/multiprocess/tests/__init__.py
wphoong/flappy_doge
c778f0e4820c1ed46e50a56f989d57df4f386736
[ "MIT" ]
null
null
null
env/lib/python3.9/site-packages/multiprocess/tests/__init__.py
wphoong/flappy_doge
c778f0e4820c1ed46e50a56f989d57df4f386736
[ "MIT" ]
null
null
null
# # Unit tests for the multiprocessing package # import unittest import unittest.mock import queue as pyqueue import time import io import itertools import sys import os import gc import errno import signal import array import socket import random import logging import subprocess import struct import operator import p...
32.91179
87
0.58682
import unittest import unittest.mock import queue as pyqueue import time import io import itertools import sys import os import gc import errno import signal import array import socket import random import logging import subprocess import struct import operator import pickle import weakref import warnings import t...
true
true
f7fb7232f1f0c5acce0ddc7da84dcf9e59f6cbb5
663
py
Python
vispy/util/__init__.py
lcampagn/vispy
28c25d6904d697cde9bb4c37909bc3f934621134
[ "BSD-3-Clause" ]
1
2015-12-03T02:03:50.000Z
2015-12-03T02:03:50.000Z
vispy/util/__init__.py
lcampagn/vispy
28c25d6904d697cde9bb4c37909bc3f934621134
[ "BSD-3-Clause" ]
19
2015-06-16T14:33:22.000Z
2015-07-27T21:18:15.000Z
vispy/util/__init__.py
astrofrog/vispy
fa5e2eab9bb3d956f87ae68a56e342913e58a305
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ Utilities for Vispy. A collection of modules that are used in one or more Vispy sub-packages. """ from .logs import logger, set_log_level, use_log_le...
39
77
0.714932
from .logs import logger, set_log_level, use_log_level from .config import (config, sys_info, save_config, get_config_keys, set_data_dir, _TempDir) from .fetching import load_data_file from . import fonts from . import transforms from .wrappers import use, run_subprocess fro...
true
true
f7fb728e2b24c9183d89d5ba8c0bbb315e2baa40
597
py
Python
ingestion/src/metadata/generated/data/tags/personalDataTags.py
klimber/OpenMetadata
1db18a50cfde00825a04b8a2c63c94fa6d5df615
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/generated/data/tags/personalDataTags.py
klimber/OpenMetadata
1db18a50cfde00825a04b8a2c63c94fa6d5df615
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/generated/data/tags/personalDataTags.py
klimber/OpenMetadata
1db18a50cfde00825a04b8a2c63c94fa6d5df615
[ "Apache-2.0" ]
null
null
null
# generated by datamodel-codegen: # filename: data/tags/personalDataTags.json # timestamp: 2021-10-12T00:34:28+00:00 from __future__ import annotations from typing import Any from pydantic import BaseModel, Field class Model(BaseModel): __root__: Any = Field( ..., description='Tags related...
35.117647
303
0.730318
from __future__ import annotations from typing import Any from pydantic import BaseModel, Field class Model(BaseModel): __root__: Any = Field( ..., description='Tags related classifying **Personal data** as defined by **GDPR.**<br/><br/>_Note to Legal - This tag category is provided as a sta...
true
true
f7fb72b31c3deac4de138d13a1013e5246ad7577
2,689
py
Python
server_info_collector/migrations/0002_auto__add_field_networkelement_created.py
weijia/server-info-collector
a4ab5423de7d59859fa83762f8ce7ff2d6c50620
[ "BSD-3-Clause" ]
null
null
null
server_info_collector/migrations/0002_auto__add_field_networkelement_created.py
weijia/server-info-collector
a4ab5423de7d59859fa83762f8ce7ff2d6c50620
[ "BSD-3-Clause" ]
null
null
null
server_info_collector/migrations/0002_auto__add_field_networkelement_created.py
weijia/server-info-collector
a4ab5423de7d59859fa83762f8ce7ff2d6c50620
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'NetworkElement.created' db.add_column('server_info_collec...
61.113636
205
0.59762
from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): db.add_column('server_info_collector_networkelement', 'created', self.gf(...
true
true
f7fb74612c44e33866a339ff3d38323a157f4e43
3,459
py
Python
tests.py
dag/flask-attest
0ffe92424c289d6a360004dd1ea943458c6d49c5
[ "BSD-2-Clause" ]
1
2015-12-29T12:14:05.000Z
2015-12-29T12:14:05.000Z
tests.py
dag/flask-attest
0ffe92424c289d6a360004dd1ea943458c6d49c5
[ "BSD-2-Clause" ]
1
2016-10-31T15:59:13.000Z
2016-10-31T15:59:13.000Z
tests.py
dag/flask-attest
0ffe92424c289d6a360004dd1ea943458c6d49c5
[ "BSD-2-Clause" ]
null
null
null
from __future__ import with_statement from flask import (Module, request, redirect, Flask, Response, jsonify, render_template_string) from flaskext.attest import request_context, get, post, put, delete from flaskext.genshi import Genshi, generate_template from attest import Tests, raises, assert_hook...
26.007519
76
0.64961
from __future__ import with_statement from flask import (Module, request, redirect, Flask, Response, jsonify, render_template_string) from flaskext.attest import request_context, get, post, put, delete from flaskext.genshi import Genshi, generate_template from attest import Tests, raises, assert_hook...
true
true
f7fb755fd03f864132f593874b9d6029346f742b
4,140
py
Python
QDE/offline/offline_test_run.py
oxquantum-repo/drl_for_quantum_measurement
a02a8f3a7c5b40458f440a63355932409c66921c
[ "MIT" ]
5
2021-05-18T01:07:04.000Z
2022-01-29T13:31:18.000Z
QDE/offline/offline_test_run.py
oxquantum-repo/drl_for_quantum_measurement
a02a8f3a7c5b40458f440a63355932409c66921c
[ "MIT" ]
null
null
null
QDE/offline/offline_test_run.py
oxquantum-repo/drl_for_quantum_measurement
a02a8f3a7c5b40458f440a63355932409c66921c
[ "MIT" ]
1
2021-05-18T01:07:20.000Z
2021-05-18T01:07:20.000Z
import sys import math sys.path.append('../') import mock_pygor sys.path.append('../') sys.path.append('../../') sys.path.append('../environments') sys.path.append('../utilities') sys.path.append('../testing_code') sys.path.append('../data') from offline_test_play_episode import offline_test_play_episode from drl_m...
28.356164
217
0.681159
import sys import math sys.path.append('../') import mock_pygor sys.path.append('../') sys.path.append('../../') sys.path.append('../environments') sys.path.append('../utilities') sys.path.append('../testing_code') sys.path.append('../data') from offline_test_play_episode import offline_test_play_episode from drl_m...
true
true