hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 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
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
f7499400d951b2796ce58806af2b15cda4cac4bd
1,356
py
Python
34.condicional_elif.py
josuerojasq/netacad_python
510c3a026f83e499144d91c00edc5045a8304a08
[ "MIT" ]
null
null
null
34.condicional_elif.py
josuerojasq/netacad_python
510c3a026f83e499144d91c00edc5045a8304a08
[ "MIT" ]
null
null
null
34.condicional_elif.py
josuerojasq/netacad_python
510c3a026f83e499144d91c00edc5045a8304a08
[ "MIT" ]
null
null
null
# "elif", es una forma más corta de else-if. #Se usa para verificar más de una condición, #y para detener cuando se encuentra la primera declaración verdadera. print("Selecciona una de las siguientes opciones:") print("1. El Clima es bueno hoy") print("2. Hay boletos disponibles en el Cine") print("3. Hay mesas libres...
45.2
139
0.716077
print("Selecciona una de las siguientes opciones:") print("1. El Clima es bueno hoy") print("2. Hay boletos disponibles en el Cine") print("3. Hay mesas libres en tu Restaurante favorito") print("4. Ninguna de las anteriores") opcion = int(input("")) if opcion == 1: print("Vamonos de caminata hoy...") elif opc...
true
true
f74994d13646ac8328e36fbb5668d7afa1482649
4,040
py
Python
Platform/Web Scraping/scheduledTasks.py
SLeoneSoftware/MentalHealthRedistribution
9b965a36f17c71cb15f1dd08589b9257e7993476
[ "MIT" ]
null
null
null
Platform/Web Scraping/scheduledTasks.py
SLeoneSoftware/MentalHealthRedistribution
9b965a36f17c71cb15f1dd08589b9257e7993476
[ "MIT" ]
null
null
null
Platform/Web Scraping/scheduledTasks.py
SLeoneSoftware/MentalHealthRedistribution
9b965a36f17c71cb15f1dd08589b9257e7993476
[ "MIT" ]
null
null
null
from apscheduler.schedulers.background import BackgroundScheduler from flask import Flask, request import firebase_admin from firebase_admin import credentials from firebase_admin import firestore import os import os.path as path import json import csv from scraper import scrape from geocoder import get_lat_long from ...
30.37594
111
0.733663
from apscheduler.schedulers.background import BackgroundScheduler from flask import Flask, request import firebase_admin from firebase_admin import credentials from firebase_admin import firestore import os import os.path as path import json import csv from scraper import scrape from geocoder import get_lat_long from ...
true
true
f74994d95bab549aef37a7d37b1c1f5fd05a3e0f
80,388
py
Python
lib/tool_shed/grids/repository_grids.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
1
2019-11-03T11:45:43.000Z
2019-11-03T11:45:43.000Z
lib/tool_shed/grids/repository_grids.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
7
2016-12-07T22:19:37.000Z
2019-01-30T15:04:26.000Z
lib/tool_shed/grids/repository_grids.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
null
null
null
import json import logging from markupsafe import escape as escape_html from sqlalchemy import and_, false, or_, true import tool_shed.grids.util as grids_util import tool_shed.repository_types.util as rt_util import tool_shed.util.shed_util_common as suc from galaxy.web.framework.helpers import grids from galaxy.web...
56.097697
182
0.520202
import json import logging from markupsafe import escape as escape_html from sqlalchemy import and_, false, or_, true import tool_shed.grids.util as grids_util import tool_shed.repository_types.util as rt_util import tool_shed.util.shed_util_common as suc from galaxy.web.framework.helpers import grids from galaxy.web...
true
true
f74994e64ddb29be14c738d7dc623dc75f682c27
4,188
py
Python
__backup__/py_cf/cf_interpreter.py
bopopescu/local_controller_3
e5d98ab60e1ccac7e0310abc55e83b671d4a643c
[ "MIT" ]
null
null
null
__backup__/py_cf/cf_interpreter.py
bopopescu/local_controller_3
e5d98ab60e1ccac7e0310abc55e83b671d4a643c
[ "MIT" ]
null
null
null
__backup__/py_cf/cf_interpreter.py
bopopescu/local_controller_3
e5d98ab60e1ccac7e0310abc55e83b671d4a643c
[ "MIT" ]
null
null
null
import chain_flow import datetime import time class Execute_Cf_Environment(): def __init__(self,cf ): self.cf = cf def execute(self): time_stamp = datetime.datetime.today() old_day = time_stamp.day old_hour = time_stamp.hour old_minute = time_stamp.minute old_second = time_s...
26.506329
73
0.612464
import chain_flow import datetime import time class Execute_Cf_Environment(): def __init__(self,cf ): self.cf = cf def execute(self): time_stamp = datetime.datetime.today() old_day = time_stamp.day old_hour = time_stamp.hour old_minute = time_stamp.minute old_second = time_s...
true
true
f7499613ddc6dd8c52d1fce7591d351379c9f7cf
393
py
Python
pydart2/examples/shapes.py
hugerepo-tianhang/low_dim_update_stable
565f6cbf886d266d0633bc112ccae28f1d116ee1
[ "MIT" ]
null
null
null
pydart2/examples/shapes.py
hugerepo-tianhang/low_dim_update_stable
565f6cbf886d266d0633bc112ccae28f1d116ee1
[ "MIT" ]
null
null
null
pydart2/examples/shapes.py
hugerepo-tianhang/low_dim_update_stable
565f6cbf886d266d0633bc112ccae28f1d116ee1
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Disney Research # All rights reserved. # # Author(s): Sehoon Ha <sehoon.ha@disneyresearch.com> # Disney Research Robotics Group import pydart2 as pydart if __name__ == '__main__': pydart.init() print('pydart initialization OK') world = pydart.World(0.0002, './data/skel/shapes.skel') ...
24.5625
59
0.707379
import pydart2 as pydart if __name__ == '__main__': pydart.init() print('pydart initialization OK') world = pydart.World(0.0002, './data/skel/shapes.skel') print('pydart create_world OK') pydart.gui.viewer.launch(world)
true
true
f749974159a94ea3a82e71af5425d572a67eebbc
9,236
py
Python
spotipy/oauth2.py
collinwr/spotipy
26db832e24637f91411bb92bb031b41c54676e6d
[ "MIT" ]
1
2021-02-04T22:07:13.000Z
2021-02-04T22:07:13.000Z
spotipy/oauth2.py
collinwr/spotipy
26db832e24637f91411bb92bb031b41c54676e6d
[ "MIT" ]
null
null
null
spotipy/oauth2.py
collinwr/spotipy
26db832e24637f91411bb92bb031b41c54676e6d
[ "MIT" ]
1
2019-02-26T00:56:30.000Z
2019-02-26T00:56:30.000Z
# -*- coding: utf-8 -*- from __future__ import print_function __all__ = [ 'is_token_expired', 'SpotifyClientCredentials', 'SpotifyOAuth', 'SpotifyOauthError' ] import base64 import json import os import sys import time import requests # Workaround to support both python 2 & 3 import six import six....
32.636042
78
0.600368
from __future__ import print_function __all__ = [ 'is_token_expired', 'SpotifyClientCredentials', 'SpotifyOAuth', 'SpotifyOauthError' ] import base64 import json import os import sys import time import requests import six import six.moves.urllib.parse as urllibparse class SpotifyOauthError(Exce...
true
true
f74997dfdde163315ea5717eab0b0f513beabab6
182,230
py
Python
lint/cpplint.py
dusmith1974/olap
782866b350e2ea0d43d46946e41af91e506a6e39
[ "Apache-2.0" ]
null
null
null
lint/cpplint.py
dusmith1974/olap
782866b350e2ea0d43d46946e41af91e506a6e39
[ "Apache-2.0" ]
null
null
null
lint/cpplint.py
dusmith1974/olap
782866b350e2ea0d43d46946e41af91e506a6e39
[ "Apache-2.0" ]
1
2019-09-16T20:03:55.000Z
2019-09-16T20:03:55.000Z
#!/usr/bin/python # # Copyright (c) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of ...
38.469495
93
0.65267
import codecs import copy import getopt import math import os import re import sre_compile import string import sys import unicodedata _USAGE = """ Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...] [--counting=total|toplevel|detailed] [--root=subd...
true
true
f74999d52b2382a3834e09180ab26767c330e0dd
18,556
py
Python
pygam/tests/test_GAM_methods.py
pjk645/pyGAM
29425798e13651f03c1fd3cc1096071cd752403a
[ "Apache-2.0" ]
714
2017-01-19T17:26:42.000Z
2022-03-26T07:51:43.000Z
pygam/tests/test_GAM_methods.py
pjk645/pyGAM
29425798e13651f03c1fd3cc1096071cd752403a
[ "Apache-2.0" ]
300
2017-01-24T07:42:18.000Z
2022-03-30T23:39:00.000Z
pygam/tests/test_GAM_methods.py
pjk645/pyGAM
29425798e13651f03c1fd3cc1096071cd752403a
[ "Apache-2.0" ]
143
2017-05-18T04:22:22.000Z
2022-03-27T16:39:15.000Z
# -*- coding: utf-8 -*- import sys import numpy as np import pytest import scipy as sp from pygam import * def test_LinearGAM_prediction(mcycle_X_y, mcycle_gam): """ check that we the predictions we get are correct shape """ X, y = mcycle_X_y preds = mcycle_gam.predict(X) assert(preds.shape...
34.047706
110
0.614842
import sys import numpy as np import pytest import scipy as sp from pygam import * def test_LinearGAM_prediction(mcycle_X_y, mcycle_gam): X, y = mcycle_X_y preds = mcycle_gam.predict(X) assert(preds.shape == y.shape) def test_LogisticGAM_accuracy(default_X_y): X, y = default_X_y gam = Logisti...
true
true
f7499a981bf8687cb661f49e456e89f87a842a63
156
py
Python
tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_MovingMedian_Seasonal_Hour_MLP.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_MovingMedian_Seasonal_Hour_MLP.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_MovingMedian_Seasonal_Hour_MLP.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Fisher'] , ['MovingMedian'] , ['Seasonal_Hour'] , ['MLP'] );
39
83
0.75
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Fisher'] , ['MovingMedian'] , ['Seasonal_Hour'] , ['MLP'] );
true
true
f7499aaab02eea3287dcc3a17a0b0b8fe0af8b3b
1,347
py
Python
scripts/cm_work/model_feature_importance.py
NCBI-Hackathons/RNAseq_Cancer_Biomarkers
4ad41888f6546f400a451633f964ed7999a05ad8
[ "MIT" ]
2
2019-02-06T20:26:41.000Z
2019-02-06T22:35:54.000Z
scripts/cm_work/model_feature_importance.py
NCBI-Hackathons/RNAseq_Cancer_Biomarkers
4ad41888f6546f400a451633f964ed7999a05ad8
[ "MIT" ]
2
2019-02-06T17:35:14.000Z
2019-02-06T22:41:59.000Z
scripts/cm_work/model_feature_importance.py
NCBI-Hackathons/RNAseq_Cancer_Biomarkers
4ad41888f6546f400a451633f964ed7999a05ad8
[ "MIT" ]
5
2019-02-04T17:15:11.000Z
2019-02-06T22:28:42.000Z
from model_blender import important_gene_mask from sklearn.metrics import log_loss import numpy as np def gene_weight_finder(model, X_train, X_test, y_train, y_test): """ function that returns the most important features, weights and # of features inputs ------- model: tree based model X_train...
27.489796
84
0.730512
from model_blender import important_gene_mask from sklearn.metrics import log_loss import numpy as np def gene_weight_finder(model, X_train, X_test, y_train, y_test): columns = X_train.columns model.fit(X_train, y_train) y_pred = model.predict_proba(X_test) ll = log_loss(y_test, y_pred) top_20...
true
true
f7499be198cb63c1f9fe03ac8f01a66ee7aa417e
6,342
py
Python
gpflowopt/domain.py
Dragoncall/GPflowOpt
f1fe129f240e4f24d6a4b641f838640b56f5961b
[ "Apache-2.0" ]
258
2017-04-28T15:47:35.000Z
2022-03-31T08:44:40.000Z
gpflowopt/domain.py
yanpei18345156216/GPflowOpt
f1c268e6b5dc4d7f458e06c59095901d55b73c32
[ "Apache-2.0" ]
123
2017-04-28T22:20:47.000Z
2021-10-01T16:29:47.000Z
gpflowopt/domain.py
yanpei18345156216/GPflowOpt
f1c268e6b5dc4d7f458e06c59095901d55b73c32
[ "Apache-2.0" ]
69
2017-06-06T00:18:01.000Z
2022-02-25T21:43:39.000Z
# Copyright 2017 Joachim van der Herten # # 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 wr...
30.490385
113
0.609587
import numpy as np from itertools import chain from gpflow.param import Parentable from .transforms import LinearTransform class Domain(Parentable): def __init__(self, parameters): super(Domain, self).__init__() self._parameters = parameters @property def lower(self): ...
true
true
f7499cb93d0d29a67fba40fda4dd8e530017c9ff
973
py
Python
benchmarks/stencils/seidel_2d/__init__.py
MA2G1/polybench-python
a6fe1f505e1066fe703b15943836ea4eceeddd94
[ "Apache-2.0" ]
2
2021-05-12T11:57:46.000Z
2022-01-12T12:14:17.000Z
benchmarks/stencils/seidel_2d/__init__.py
MA2G1/polybench-python
a6fe1f505e1066fe703b15943836ea4eceeddd94
[ "Apache-2.0" ]
null
null
null
benchmarks/stencils/seidel_2d/__init__.py
MA2G1/polybench-python
a6fe1f505e1066fe703b15943836ea4eceeddd94
[ "Apache-2.0" ]
2
2020-11-17T11:52:35.000Z
2021-12-15T07:41:10.000Z
# Copyright 2019 Miguel Angel Abella Gonzalez <miguel.abella@udc.es> # # 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 ap...
44.227273
87
0.781089
from benchmarks.stencils.seidel_2d.seidel_2d import Seidel_2d
true
true
f7499d0d77fa5478ae33e2efd913c00f264ae493
23,389
py
Python
align/primitive/default/mos.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
null
null
null
align/primitive/default/mos.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
null
null
null
align/primitive/default/mos.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
null
null
null
from .canvas import DefaultCanvas from ...cell_fabric.generators import * from ...cell_fabric.grid import * import logging logger = logging.getLogger(__name__) class MOSGenerator(DefaultCanvas): def __init__(self, pdk, height, fin, gate, gateDummy, shared_diff, stack, bodyswitch): super().__init__(pdk) ...
65.515406
190
0.548463
from .canvas import DefaultCanvas from ...cell_fabric.generators import * from ...cell_fabric.grid import * import logging logger = logging.getLogger(__name__) class MOSGenerator(DefaultCanvas): def __init__(self, pdk, height, fin, gate, gateDummy, shared_diff, stack, bodyswitch): super().__init__(pdk) ...
true
true
f7499e2b182bdffa4f8305a04f3bb75a711432bb
1,546
py
Python
synth/snsynth/pytorch/nn/privacy_utils.py
AprilXiaoyanLiu/whitenoise-system
0e94d2cc8114b97a61d5d2e45278428f91f1e687
[ "MIT" ]
63
2020-03-26T15:26:10.000Z
2020-10-22T06:26:38.000Z
synth/snsynth/pytorch/nn/privacy_utils.py
AprilXiaoyanLiu/whitenoise-system
0e94d2cc8114b97a61d5d2e45278428f91f1e687
[ "MIT" ]
87
2021-02-20T20:43:49.000Z
2022-03-31T16:24:46.000Z
synth/snsynth/pytorch/nn/privacy_utils.py
AprilXiaoyanLiu/whitenoise-system
0e94d2cc8114b97a61d5d2e45278428f91f1e687
[ "MIT" ]
17
2021-02-18T18:47:09.000Z
2022-03-01T06:44:17.000Z
import torch import torch.nn as nn import math import numpy as np def weights_init(m): if type(m) == nn.Linear: nn.init.xavier_uniform_(m.weight) def pate(data, teachers, lap_scale, device="cpu"): """PATE implementation for GANs. """ num_teachers = len(teachers) labels = torch.Tensor(num...
32.208333
98
0.623545
import torch import torch.nn as nn import math import numpy as np def weights_init(m): if type(m) == nn.Linear: nn.init.xavier_uniform_(m.weight) def pate(data, teachers, lap_scale, device="cpu"): num_teachers = len(teachers) labels = torch.Tensor(num_teachers, data.shape[0]).type(torch.int64).t...
true
true
f7499e8c1150503ed6f0552fc59f7ffb4c21a702
501
py
Python
mysite/dashboard2/migrations/0005_auto_20170824_1644.py
militiaonly/spark1707
3d4a3945ca2190628ea6a8593d3adadfd1a71dfb
[ "MIT" ]
null
null
null
mysite/dashboard2/migrations/0005_auto_20170824_1644.py
militiaonly/spark1707
3d4a3945ca2190628ea6a8593d3adadfd1a71dfb
[ "MIT" ]
null
null
null
mysite/dashboard2/migrations/0005_auto_20170824_1644.py
militiaonly/spark1707
3d4a3945ca2190628ea6a8593d3adadfd1a71dfb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-24 08:44 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dashboard2', '0004_auto_20170310_1811'), ] operations = [ migrations.DeleteModel( ...
20.04
50
0.57485
from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dashboard2', '0004_auto_20170310_1811'), ] operations = [ migrations.DeleteModel( name='Config', ), migrations.DeleteModel( ...
true
true
f7499ea727e9ed867d678af5067b4e9ca2062dce
1,145
py
Python
Workspace for Python/studying file/Data Structure and Algorithm Analysis/Week14/Graph.py
ArchibaldChain/python-workspace
71890f296c376155e374b2096ac3d8f1d286b7d2
[ "MIT" ]
null
null
null
Workspace for Python/studying file/Data Structure and Algorithm Analysis/Week14/Graph.py
ArchibaldChain/python-workspace
71890f296c376155e374b2096ac3d8f1d286b7d2
[ "MIT" ]
3
2020-06-17T16:01:27.000Z
2022-01-13T02:52:53.000Z
Workspace for Python/studying file/Data Structure and Algorithm Analysis/Week14/Graph.py
ArchibaldChain/python-workspace
71890f296c376155e374b2096ac3d8f1d286b7d2
[ "MIT" ]
null
null
null
""" Python program to implement Graph @Author: Archibald @Date: Sept. 12 """ class Graph: def __init__(self, vertices): self.V = vertices self.graph = [None] * self.V def add_directed_edge(self, tail, header): node = Node(header) node.next = self.graph[tail] ...
22.45098
57
0.449782
class Graph: def __init__(self, vertices): self.V = vertices self.graph = [None] * self.V def add_directed_edge(self, tail, header): node = Node(header) node.next = self.graph[tail] self.graph[tail] = node def print_graph(self): for i in range...
true
true
f7499f6fd11aa66586ba961a640c78d493a1685e
359
py
Python
pbundler/activation/sitecustomize.py
efokschaner/pbundler
c6d8ea7fcdbea2116b603d068b035ea18d5b7b24
[ "MIT" ]
null
null
null
pbundler/activation/sitecustomize.py
efokschaner/pbundler
c6d8ea7fcdbea2116b603d068b035ea18d5b7b24
[ "MIT" ]
null
null
null
pbundler/activation/sitecustomize.py
efokschaner/pbundler
c6d8ea7fcdbea2116b603d068b035ea18d5b7b24
[ "MIT" ]
null
null
null
from __future__ import print_function import traceback try: import pbundler pbundler.PBundler.setup() except: print("E: Exception in pbundler activation code.") print("") print("Please report this to the pbundler developers:") print(" http://github.com/zeha/pbundler/issues") print("") ...
22.4375
59
0.682451
from __future__ import print_function import traceback try: import pbundler pbundler.PBundler.setup() except: print("E: Exception in pbundler activation code.") print("") print("Please report this to the pbundler developers:") print(" http://github.com/zeha/pbundler/issues") print("") ...
true
true
f7499fdc56f0cca47bf6c8a365f06afa2c9faa47
8,886
py
Python
blaze/expr/split.py
vitan/blaze
0cddb630ad1cf6be3967943337529adafa006ef5
[ "BSD-3-Clause" ]
1
2015-11-06T00:46:56.000Z
2015-11-06T00:46:56.000Z
blaze/expr/split.py
vitan/blaze
0cddb630ad1cf6be3967943337529adafa006ef5
[ "BSD-3-Clause" ]
null
null
null
blaze/expr/split.py
vitan/blaze
0cddb630ad1cf6be3967943337529adafa006ef5
[ "BSD-3-Clause" ]
null
null
null
""" Expression splitting for chunked computation To evaluate an expression on a large dataset we may need to chunk that dataset into pieces and evaluate on each of the pieces individually. This module contains logic to break up an expression-to-be-evaluated-on-the-entire-array into 1. An expression to be evaluated ...
30.641379
126
0.643709
from __future__ import absolute_import, division, print_function from toolz import concat import datashape from datashape.predicates import isscalar from math import floor from .core import * from .expressions import * from .expressions import ndim, shape from .reductions import * from .split_apply_combine import * f...
true
true
f749a11e05f36cf8ba9b776f2abe46046ae9840b
1,158
py
Python
minotor/run.py
datarmada/minotor
06079926d717f0cd882152319aaeaa7edc9ba087
[ "Apache-2.0" ]
25
2020-04-11T17:51:31.000Z
2022-03-21T16:26:36.000Z
minotor/run.py
datarmada/minotor
06079926d717f0cd882152319aaeaa7edc9ba087
[ "Apache-2.0" ]
1
2022-02-28T04:07:01.000Z
2022-02-28T04:07:01.000Z
minotor/run.py
datarmada/minotor
06079926d717f0cd882152319aaeaa7edc9ba087
[ "Apache-2.0" ]
null
null
null
import webbrowser from tornado import ioloop, web from minotor.api.projection_handler import ProjectionHandler from minotor.api.data_handler import DataHandler from minotor.api.training_data_handler import TrainingDataHandler from minotor.constants import PACKAGE_PATH # Defining constants REACT_BUILD_PATH = PACKAGE...
26.318182
66
0.69171
import webbrowser from tornado import ioloop, web from minotor.api.projection_handler import ProjectionHandler from minotor.api.data_handler import DataHandler from minotor.api.training_data_handler import TrainingDataHandler from minotor.constants import PACKAGE_PATH REACT_BUILD_PATH = PACKAGE_PATH / 'front' / 'b...
true
true
f749a308bf7a31fc8e08f63d79adef8ba5c9de7a
1,653
py
Python
homeassistant/components/automation/time_pattern.py
kayr7/home-assistant
5994f82fc5d73822bd0516d7fb340c8a293105e0
[ "Apache-2.0" ]
3
2020-01-21T18:09:09.000Z
2022-01-17T08:06:03.000Z
homeassistant/components/automation/time_pattern.py
kayr7/home-assistant
5994f82fc5d73822bd0516d7fb340c8a293105e0
[ "Apache-2.0" ]
39
2016-12-16T12:40:34.000Z
2017-02-13T17:53:42.000Z
homeassistant/components/automation/time_pattern.py
kayr7/home-assistant
5994f82fc5d73822bd0516d7fb340c8a293105e0
[ "Apache-2.0" ]
3
2020-03-03T18:14:10.000Z
2020-10-04T06:52:45.000Z
"""Offer time listening automation rules.""" import logging import voluptuous as vol from homeassistant.core import callback from homeassistant.const import CONF_PLATFORM from homeassistant.helpers import config_validation as cv from homeassistant.helpers.event import async_track_time_change # mypy: allow-untyped-d...
30.054545
82
0.69389
import logging import voluptuous as vol from homeassistant.core import callback from homeassistant.const import CONF_PLATFORM from homeassistant.helpers import config_validation as cv from homeassistant.helpers.event import async_track_time_change CONF_HOURS = "hours" CONF_MINUTES = "minutes" CONF_SECONDS = "seco...
true
true
f749a35190dba8d19f12022d4626607d69f1a701
615
py
Python
mnist_pytorch/previewer.py
DewanshuHaswani/fastai
fa3aed62e9f7b842d335a92aa20fa7e1b2a7b266
[ "MIT" ]
null
null
null
mnist_pytorch/previewer.py
DewanshuHaswani/fastai
fa3aed62e9f7b842d335a92aa20fa7e1b2a7b266
[ "MIT" ]
null
null
null
mnist_pytorch/previewer.py
DewanshuHaswani/fastai
fa3aed62e9f7b842d335a92aa20fa7e1b2a7b266
[ "MIT" ]
null
null
null
import torch import matplotlib.pyplot as plt from torchvision import datasets, transforms from random import choice BATCH_SIZE=64 # Load the mnist dataset train_loader = torch.utils.data.DataLoader( datasets.MNIST( "./data", train=True, download=True, transform...
20.5
60
0.634146
import torch import matplotlib.pyplot as plt from torchvision import datasets, transforms from random import choice BATCH_SIZE=64 train_loader = torch.utils.data.DataLoader( datasets.MNIST( "./data", train=True, download=True, transform=transforms.Compose([ ...
true
true
f749a35450a7d0308ecd32a980e6b63fb704e318
1,063
py
Python
flask_securest/userstores/abstract_userstore.py
cloudify-cosmo/flask-securerest
0b07cfde28219a97a9af1f1031f6886ce31ca70b
[ "Apache-2.0" ]
6
2015-08-06T07:50:18.000Z
2018-06-22T19:53:36.000Z
flask_securest/userstores/abstract_userstore.py
cloudify-cosmo/flask-securerest
0b07cfde28219a97a9af1f1031f6886ce31ca70b
[ "Apache-2.0" ]
null
null
null
flask_securest/userstores/abstract_userstore.py
cloudify-cosmo/flask-securerest
0b07cfde28219a97a9af1f1031f6886ce31ca70b
[ "Apache-2.0" ]
3
2015-05-03T02:02:28.000Z
2016-03-12T23:07:47.000Z
######### # Copyright (c) 2015 GigaSpaces Technologies Ltd. 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...
33.21875
77
0.735654
stractUserstore(object): __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_user(self, identifier): raise NotImplementedError
true
true
f749a468e1c1550833a51a57f1b8671ccb4d12d7
3,685
py
Python
fonts/tvga9000i-2_8x8.py
ccccmagicboy/st7735_mpy
b15f1bde69fbe6e0eb4931c57e71c136d8e7f024
[ "MIT" ]
6
2020-07-11T16:59:19.000Z
2021-07-16T19:32:49.000Z
ports/esp32/user_modules/st7735_mpy/fonts/tvga9000i-2_8x8.py
d4niele/micropython
a1f7b37d392bf46b28045ce215ae899fda8d8c38
[ "MIT" ]
1
2020-04-14T03:14:45.000Z
2020-04-14T03:14:45.000Z
fonts/tvga9000i-2_8x8.py
ccccmagicboy/st7735_mpy
b15f1bde69fbe6e0eb4931c57e71c136d8e7f024
[ "MIT" ]
null
null
null
"""converted from ..\fonts\tvga9000i-2__8x8.bin """ WIDTH = 8 HEIGHT = 8 FIRST = 0x20 LAST = 0x7f _FONT =\ b'\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x18\x3c\x3c\x18\x18\x00\x18\x00'\ b'\x6c\x6c\x6c\x00\x00\x00\x00\x00'\ b'\x6c\x6c\xfe\x6c\xfe\x6c\x6c\x00'\ b'\x18\x7e\xc0\x7c\x06\xfc\x18\x00'\ b'\x00\xc6\xcc\x18\x30\x66\x...
35.095238
51
0.675712
WIDTH = 8 HEIGHT = 8 FIRST = 0x20 LAST = 0x7f _FONT =\ b'\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x18\x3c\x3c\x18\x18\x00\x18\x00'\ b'\x6c\x6c\x6c\x00\x00\x00\x00\x00'\ b'\x6c\x6c\xfe\x6c\xfe\x6c\x6c\x00'\ b'\x18\x7e\xc0\x7c\x06\xfc\x18\x00'\ b'\x00\xc6\xcc\x18\x30\x66\xc6\x00'\ b'\x38\x6c\x38\x76\xdc\xcc\x76\x00'\ b'\x30...
true
true
f749a8893b2411a795efe93f7d3f1bc261bd9b26
815
py
Python
plc/s7test.py
quanpower/mouse_line
4cb12e5914ba7b97047472ed06a35eee92bc2837
[ "MIT" ]
null
null
null
plc/s7test.py
quanpower/mouse_line
4cb12e5914ba7b97047472ed06a35eee92bc2837
[ "MIT" ]
null
null
null
plc/s7test.py
quanpower/mouse_line
4cb12e5914ba7b97047472ed06a35eee92bc2837
[ "MIT" ]
null
null
null
import snap7 from snap7.util import * from snap7.snap7types import * import struct s1500=snap7.client.Client() s1500.connect('172.16.6.200',rack=0,slot=1) Real_Value=s1500.read_area(0x84,38,0,1) print(Real_Value) order = '00PP000022' byarray=bytearray(order,encoding='utf-8') print(byarray) productNo = '00A03' produ...
23.970588
58
0.70184
import snap7 from snap7.util import * from snap7.snap7types import * import struct s1500=snap7.client.Client() s1500.connect('172.16.6.200',rack=0,slot=1) Real_Value=s1500.read_area(0x84,38,0,1) print(Real_Value) order = '00PP000022' byarray=bytearray(order,encoding='utf-8') print(byarray) productNo = '00A03' produ...
true
true
f749a9d77a7c628a66c29893a7d48b2236e5f54d
1,934
py
Python
loopers/inferencer/evaluator.py
kaniblu/vhda
35941097ef552568c29f66cc55d8ce1927f34978
[ "MIT" ]
3
2021-01-12T05:43:20.000Z
2021-03-05T17:03:06.000Z
loopers/inferencer/evaluator.py
kaniblu/vhda
35941097ef552568c29f66cc55d8ce1927f34978
[ "MIT" ]
null
null
null
loopers/inferencer/evaluator.py
kaniblu/vhda
35941097ef552568c29f66cc55d8ce1927f34978
[ "MIT" ]
null
null
null
__all__ = ["EvaluatingInferencer"] from dataclasses import dataclass from typing import Sequence import torch import torch.utils.data as td import utils from datasets import BatchData from .inferencer import Inferencer from evaluators import FinegrainedEvaluator @dataclass class EvaluatingInferencer(Inferencer): ...
36.490566
79
0.656153
__all__ = ["EvaluatingInferencer"] from dataclasses import dataclass from typing import Sequence import torch import torch.utils.data as td import utils from datasets import BatchData from .inferencer import Inferencer from evaluators import FinegrainedEvaluator @dataclass class EvaluatingInferencer(Inferencer): ...
true
true
f749aa0f252b26892cf5009f62afda77cab84881
16,375
py
Python
tests/client_test.py
ankitkala/opensearch-benchmark
ad608cc3c0f1c3ea77d65bd780dc7b56fd6efc41
[ "Apache-2.0" ]
1
2022-01-11T17:46:54.000Z
2022-01-11T17:46:54.000Z
tests/client_test.py
ankitkala/opensearch-benchmark
ad608cc3c0f1c3ea77d65bd780dc7b56fd6efc41
[ "Apache-2.0" ]
null
null
null
tests/client_test.py
ankitkala/opensearch-benchmark
ad608cc3c0f1c3ea77d65bd780dc7b56fd6efc41
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. # Licensed to Elasticsearch B.V. under one ...
45.486111
134
0.663511
import asyncio import logging import os import random import ssl from copy import deepcopy from unittest import TestCase, mock import elasticsearch import urllib3.exceptions from osbenchmark import client, exceptions, doc_link from osbenchmark.utils import console from tests import run_async ...
true
true
f749aa99b9eeba4a310f0f487779e8edd7a24df7
91
py
Python
typefire/__init__.py
luxuncang/typefire
4e09939215476a32cbd2efa92f539f8f4b147c78
[ "MIT" ]
5
2022-02-17T11:39:39.000Z
2022-03-27T16:51:57.000Z
typefire/__init__.py
luxuncang/typefire
4e09939215476a32cbd2efa92f539f8f4b147c78
[ "MIT" ]
7
2022-03-02T18:32:01.000Z
2022-03-31T13:42:03.000Z
typefire/__init__.py
luxuncang/typefire
4e09939215476a32cbd2efa92f539f8f4b147c78
[ "MIT" ]
null
null
null
from .typefire import Switch, Agreement, TypeFire, typefire, composed, typeswitch, likefire
91
91
0.824176
from .typefire import Switch, Agreement, TypeFire, typefire, composed, typeswitch, likefire
true
true
f749ac90248cbca7f4ec3d7cb86af1c42c70c72c
75
py
Python
src/monthly-reset.py
BriianPowell/VirginityBot
771d388c95f0cff40fd6aedfd6573ef030d7aa50
[ "CC0-1.0" ]
null
null
null
src/monthly-reset.py
BriianPowell/VirginityBot
771d388c95f0cff40fd6aedfd6573ef030d7aa50
[ "CC0-1.0" ]
14
2020-03-26T01:02:31.000Z
2021-03-24T23:48:44.000Z
src/monthly-reset.py
BriianPowell/VirginityBot
771d388c95f0cff40fd6aedfd6573ef030d7aa50
[ "CC0-1.0" ]
2
2020-08-09T19:08:41.000Z
2021-05-12T17:44:28.000Z
def main(): print('monthly reset') if __name__ == '__main__': main()
10.714286
26
0.613333
def main(): print('monthly reset') if __name__ == '__main__': main()
true
true
f749ad188450a4b5e6ce46ba25739e5be5e5eafa
5,906
py
Python
lib/base/xformer_layers/attention.py
shamim-hussain/egt
02187de16fcd672b8070191d29e9c9e7f681eb37
[ "MIT" ]
7
2021-10-16T18:36:12.000Z
2022-03-22T02:08:00.000Z
lib/base/xformer_layers/attention.py
shamim-hussain/egt
02187de16fcd672b8070191d29e9c9e7f681eb37
[ "MIT" ]
null
null
null
lib/base/xformer_layers/attention.py
shamim-hussain/egt
02187de16fcd672b8070191d29e9c9e7f681eb37
[ "MIT" ]
2
2021-11-29T15:29:32.000Z
2022-03-11T11:10:56.000Z
import tensorflow as tf tfk = tf.keras from .shaping import move_dim def move_ch2h(maybe_headed_tensor, channels_dim=-1, head_dim=1): if maybe_headed_tensor.shape.rank == 4: return move_dim(maybe_headed_tensor, from_dim=channels_dim, to_dim=h...
34.138728
85
0.586861
import tensorflow as tf tfk = tf.keras from .shaping import move_dim def move_ch2h(maybe_headed_tensor, channels_dim=-1, head_dim=1): if maybe_headed_tensor.shape.rank == 4: return move_dim(maybe_headed_tensor, from_dim=channels_dim, to_dim=h...
true
true
f749ad29044e6ec95621af4354188b7f399362ab
146
py
Python
TKINTER/from youtube/first tkinter program.py
Advik-B/Learn-Python
66ac57259764e8f2c3c6513a8de6c106800d8abe
[ "MIT" ]
6
2021-07-26T14:21:25.000Z
2021-07-26T14:32:01.000Z
TKINTER/from youtube/first tkinter program.py
Advik-B/Learn-Python
66ac57259764e8f2c3c6513a8de6c106800d8abe
[ "MIT" ]
2
2021-12-10T10:25:19.000Z
2021-12-10T10:27:15.000Z
TKINTER/from youtube/first tkinter program.py
Advik-B/Learn-Python
66ac57259764e8f2c3c6513a8de6c106800d8abe
[ "MIT" ]
null
null
null
from tkinter import * root = Tk() ''' Creating a label widget ''' mylabel = Label(root, text= 'Hello World') mylabel.pack() root.mainloop()
9.733333
42
0.657534
from tkinter import * root = Tk() mylabel = Label(root, text= 'Hello World') mylabel.pack() root.mainloop()
true
true
f749ae6ed9f853949dd01821ab65ee4e71b29b83
7,336
py
Python
autogenes/core.py
theislab/AutoGeneS
22bde0d5eba013e90edb85341e0bd9c28b82e7fd
[ "MIT" ]
46
2020-02-25T14:09:21.000Z
2022-01-20T16:42:40.000Z
autogenes/core.py
theislab/AutoGeneS
22bde0d5eba013e90edb85341e0bd9c28b82e7fd
[ "MIT" ]
16
2020-03-18T15:08:42.000Z
2022-01-29T20:00:10.000Z
autogenes/core.py
theislab/AutoGeneS
22bde0d5eba013e90edb85341e0bd9c28b82e7fd
[ "MIT" ]
6
2020-02-13T14:23:46.000Z
2021-12-28T16:50:50.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt from .ga import GeneticAlgorithm from . import objectives as ga_objectives import deap import warnings class AutoGeneS: PLOT_PARAMS = { 'small': { 'figsize': (10,5), 'all_ms': 8, 'sel_ms': 10 ...
26.57971
120
0.61873
import pandas as pd import numpy as np import matplotlib.pyplot as plt from .ga import GeneticAlgorithm from . import objectives as ga_objectives import deap import warnings class AutoGeneS: PLOT_PARAMS = { 'small': { 'figsize': (10,5), 'all_ms': 8, 'sel_ms': 10 ...
true
true
f749af35612dfd8be1fd3f2be969f8374aa10006
1,700
py
Python
example/basic_with_user_secrets.py
jekel/sanic-jwt
4f6ab07376ad90011d40e205feacae8219359d6f
[ "MIT" ]
226
2017-09-05T08:23:58.000Z
2022-03-28T09:23:47.000Z
example/basic_with_user_secrets.py
jekel/sanic-jwt
4f6ab07376ad90011d40e205feacae8219359d6f
[ "MIT" ]
179
2017-09-27T08:33:16.000Z
2022-01-28T20:35:23.000Z
example/basic_with_user_secrets.py
jekel/sanic-jwt
4f6ab07376ad90011d40e205feacae8219359d6f
[ "MIT" ]
45
2017-10-14T10:26:46.000Z
2022-02-04T15:01:20.000Z
""" This is taken from "Simple Usage" page in the docs: http://sanic-jwt.readthedocs.io/en/latest/pages/simpleusage.html """ from sanic import Sanic, response from sanic_jwt import exceptions from sanic_jwt import Initialize, protected class User: def __init__(self, id, username, password): self.user_id ...
24.637681
78
0.690588
from sanic import Sanic, response from sanic_jwt import exceptions from sanic_jwt import Initialize, protected class User: def __init__(self, id, username, password): self.user_id = id self.username = username self.password = password def __repr__(self): return "User(id='{}')...
true
true
f749b00e1015d4f83458e4c6304d458231a0cc0d
642
py
Python
janca/jablka_hrusky_banany.py
zdenek-nemec/sandbox
31572cb790869c4c2036c0a0902c1a054a9043d5
[ "MIT" ]
1
2020-05-31T09:24:51.000Z
2020-05-31T09:24:51.000Z
janca/jablka_hrusky_banany.py
zdenek-nemec/sandbox
31572cb790869c4c2036c0a0902c1a054a9043d5
[ "MIT" ]
33
2019-04-21T13:22:03.000Z
2022-03-06T12:11:18.000Z
janca/jablka_hrusky_banany.py
zdenek-nemec/sandbox
31572cb790869c4c2036c0a0902c1a054a9043d5
[ "MIT" ]
null
null
null
BRAND_A = ["jablka", "hrusky"] BRAND_B = ["jablka", "banany"] BRAND_C = ["banany"] def search_a(item): if item in BRAND_A: return True else: return False def search_b(item): if item in BRAND_B: return True else: return False def search_c(item): if item in BRAND_...
16.461538
58
0.61838
BRAND_A = ["jablka", "hrusky"] BRAND_B = ["jablka", "banany"] BRAND_C = ["banany"] def search_a(item): if item in BRAND_A: return True else: return False def search_b(item): if item in BRAND_B: return True else: return False def search_c(item): if item in BRAND_...
true
true
f749b048c028608217b02d49e190c18a92428ec1
2,529
py
Python
stix2/custom.py
2xyo/cti-python-stix2
cffee92c7ed18c4cdd54c4370c6a17878dfd36cd
[ "BSD-3-Clause" ]
null
null
null
stix2/custom.py
2xyo/cti-python-stix2
cffee92c7ed18c4cdd54c4370c6a17878dfd36cd
[ "BSD-3-Clause" ]
null
null
null
stix2/custom.py
2xyo/cti-python-stix2
cffee92c7ed18c4cdd54c4370c6a17878dfd36cd
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict import six from .base import _cls_init from .parsing import ( _register_marking, _register_object, _register_observable, _register_observable_extension, ) def _get_properties_dict(properties): try: return OrderedDict(properties) except TypeError as e: ...
27.193548
98
0.671807
from collections import OrderedDict import six from .base import _cls_init from .parsing import ( _register_marking, _register_object, _register_observable, _register_observable_extension, ) def _get_properties_dict(properties): try: return OrderedDict(properties) except TypeError as e: ...
true
true
f749b0d4d24e6f0d6dc0e326bafe02ebffab7989
886
py
Python
samples/use_trades.py
Kether180/Interactivebrokers-RestAPI-Python
389536cd8b61f61ecbfc8917324d093145bb0f60
[ "MIT" ]
27
2021-07-11T08:26:16.000Z
2022-03-28T07:23:44.000Z
samples/use_trades.py
Kether180/Interactivebrokers-Python-API
389536cd8b61f61ecbfc8917324d093145bb0f60
[ "MIT" ]
4
2022-01-02T23:50:44.000Z
2022-03-11T13:02:00.000Z
samples/use_trades.py
Kether180/Interactivebrokers-Python-API
389536cd8b61f61ecbfc8917324d093145bb0f60
[ "MIT" ]
16
2021-07-10T00:37:47.000Z
2022-03-28T07:23:45.000Z
from pprint import pprint from configparser import ConfigParser from ibc.client import InteractiveBrokersClient # Initialize the Parser. config = ConfigParser() # Read the file. config.read('config/config.ini') # Get the specified credentials. account_number = config.get('interactive_brokers_paper', 'paper_account')...
23.315789
76
0.792325
from pprint import pprint from configparser import ConfigParser from ibc.client import InteractiveBrokersClient config = ConfigParser() config.read('config/config.ini') account_number = config.get('interactive_brokers_paper', 'paper_account') account_password = config.get('interactive_brokers_paper', 'paper_passw...
true
true
f749b1066755b91ee6da2055f280c92e1dfde443
12,458
py
Python
measurement.py
ElectronicNose/Electronic-Nose
3e79711a7701d352ef5c1c2151c535c5b576b71e
[ "MIT" ]
1
2019-10-08T05:12:52.000Z
2019-10-08T05:12:52.000Z
measurement.py
ElectronicNose/Electronic-Nose
3e79711a7701d352ef5c1c2151c535c5b576b71e
[ "MIT" ]
null
null
null
measurement.py
ElectronicNose/Electronic-Nose
3e79711a7701d352ef5c1c2151c535c5b576b71e
[ "MIT" ]
null
null
null
# for saving files from PyQt5 import QtCore, QtGui, QtWidgets import sys,csv from measurement_gui import Ui_Measurement from PyQt5.QtWidgets import QFileDialog import serial,itertools class Measurement(QtWidgets.QMainWindow, Ui_Measurement): def __init__(self,parent = None): super(Measurement,self...
52.344538
132
0.393723
from PyQt5 import QtCore, QtGui, QtWidgets import sys,csv from measurement_gui import Ui_Measurement from PyQt5.QtWidgets import QFileDialog import serial,itertools class Measurement(QtWidgets.QMainWindow, Ui_Measurement): def __init__(self,parent = None): super(Measurement,self).__init__(parent) ...
true
true
f749b1568e5202f0fd7ae794241aebf291e20435
8,719
py
Python
coremltools/test/sklearn_tests/test_SVR.py
LaudateCorpus1/coremltools
777a4460d6823e5e91dea4fa3eacb0b11c7d5dfc
[ "BSD-3-Clause" ]
2,740
2017-10-03T23:19:01.000Z
2022-03-30T15:16:39.000Z
coremltools/test/sklearn_tests/test_SVR.py
LaudateCorpus1/coremltools
777a4460d6823e5e91dea4fa3eacb0b11c7d5dfc
[ "BSD-3-Clause" ]
1,057
2017-10-05T22:47:01.000Z
2022-03-31T23:51:15.000Z
coremltools/test/sklearn_tests/test_SVR.py
LaudateCorpus1/coremltools
777a4460d6823e5e91dea4fa3eacb0b11c7d5dfc
[ "BSD-3-Clause" ]
510
2017-10-04T19:22:28.000Z
2022-03-31T12:16:52.000Z
# Copyright (c) 2017, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import pandas as pd import numpy as np import random import tempfile import unittest import pytest from...
33.40613
90
0.577589
import pandas as pd import numpy as np import random import tempfile import unittest import pytest from coremltools._deps import ( _HAS_LIBSVM, MSG_LIBSVM_NOT_FOUND, _HAS_SKLEARN, MSG_SKLEARN_NOT_FOUND, ) from coremltools.models.utils import evaluate_regressor, _macos_version, _is_macos if _HAS_L...
true
true
f749b1ae09d01c204e180a2caf9636b5e1f911aa
75,792
py
Python
sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2020_04_01_preview/models/_models.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2020_04_01_preview/models/_models.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2020_04_01_preview/models/_models.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.168992
150
0.658473
from azure.core.exceptions import HttpResponseError import msrest.serialization class AccessPolicyEntry(msrest.serialization.Model): _validation = { 'tenant_id': {'required': True}, 'object_id': {'required': True}, 'permissions': {'required': True}, } _attribute_map = { ...
true
true
f749b1e973e1bf8ca1d6b889e5ab6ae31308500a
54
py
Python
webservices/env.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
246
2015-01-07T16:59:42.000Z
2020-01-18T20:35:05.000Z
webservices/env.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
2,532
2015-01-02T16:22:46.000Z
2018-03-08T17:30:53.000Z
webservices/env.py
18F/openFEC
ee7b7368e0934f50c391789fb55444f811c1a2f7
[ "CC0-1.0" ]
75
2015-02-01T00:46:56.000Z
2021-02-14T10:51:34.000Z
import cfenv env = cfenv.AppEnv() __all__ = ['env']
9
20
0.648148
import cfenv env = cfenv.AppEnv() __all__ = ['env']
true
true
f749b25cae396d4e5ef9aa01c333a447fdbf882c
17,847
py
Python
examples/migration/create_complete_campaign_google_ads_api_only.py
infectious/google-ads-python
599541be2ab625c7aeb84b8622a8614a6c1703d9
[ "Apache-2.0" ]
null
null
null
examples/migration/create_complete_campaign_google_ads_api_only.py
infectious/google-ads-python
599541be2ab625c7aeb84b8622a8614a6c1703d9
[ "Apache-2.0" ]
null
null
null
examples/migration/create_complete_campaign_google_ads_api_only.py
infectious/google-ads-python
599541be2ab625c7aeb84b8622a8614a6c1703d9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
37.97234
93
0.688631
import argparse import datetime import sys import uuid from google.ads.google_ads.client import GoogleAdsClient from google.ads.google_ads.errors import GoogleAdsException NUMBER_OF_ADS = 5 KEYWORDS_TO_ADD = ["mars cruise", "space hotel"] PAGE_SIZE = 1000 def create_campaign_budget(client, custome...
true
true
f749b25fcf9ffd6e7354b0a56566423df447891b
3,142
py
Python
footballnews/settings.py
munisisazade/football
89a7a24a5ccd4db0c2a19f6d7ac9a1524913017d
[ "MIT" ]
1
2017-09-05T19:56:36.000Z
2017-09-05T19:56:36.000Z
footballnews/settings.py
munisisazade/football
89a7a24a5ccd4db0c2a19f6d7ac9a1524913017d
[ "MIT" ]
null
null
null
footballnews/settings.py
munisisazade/football
89a7a24a5ccd4db0c2a19f6d7ac9a1524913017d
[ "MIT" ]
null
null
null
""" Django settings for footballnews project. Generated by 'django-admin startproject' using Django 1.11.2. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impo...
25.754098
91
0.697963
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '@by*-r0rp25slv@l2m$$p0iuq@v_(yasqqs!wg!hp!4v9mae=5' DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.content...
true
true
f749b28e928766cb5f240f36e5e120d1c0f65967
2,977
py
Python
Learning Tensorflow/Examples/handwrittendigit_classifier.py
gargraghav/tensorflow
a0ea36b9dffc563deae6fa9e2f4d2ca912a3a224
[ "MIT" ]
null
null
null
Learning Tensorflow/Examples/handwrittendigit_classifier.py
gargraghav/tensorflow
a0ea36b9dffc563deae6fa9e2f4d2ca912a3a224
[ "MIT" ]
null
null
null
Learning Tensorflow/Examples/handwrittendigit_classifier.py
gargraghav/tensorflow
a0ea36b9dffc563deae6fa9e2f4d2ca912a3a224
[ "MIT" ]
null
null
null
import tensorflow as tf import time from tensorflow.examples.tutorials.mnist import input_data import matplotlib.pyplot as plt beginTime=time.time() mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) learning_rate = 0.01 training_iterations = 30 batch_size = 100 display_step = 2 x = tf.placeholder("float...
36.304878
110
0.684918
import tensorflow as tf import time from tensorflow.examples.tutorials.mnist import input_data import matplotlib.pyplot as plt beginTime=time.time() mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) learning_rate = 0.01 training_iterations = 30 batch_size = 100 display_step = 2 x = tf.placeholder("float...
true
true
f749b40238f68c03123d318517c380a08738c8cf
19,790
py
Python
examples/language_model/gpt-3/static/run_pretrain_static.py
AI-Mart/PaddleNLP
0ababea960427e8b70220ea06d908ed58cbed0ed
[ "Apache-2.0" ]
null
null
null
examples/language_model/gpt-3/static/run_pretrain_static.py
AI-Mart/PaddleNLP
0ababea960427e8b70220ea06d908ed58cbed0ed
[ "Apache-2.0" ]
null
null
null
examples/language_model/gpt-3/static/run_pretrain_static.py
AI-Mart/PaddleNLP
0ababea960427e8b70220ea06d908ed58cbed0ed
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39.58
215
0.595958
import argparse import math import os import random import time import sys os.path.expandvars('$HOME') os.path.expanduser('~') import numpy as np import paddle import paddle.distributed.fleet as fleet from paddle.distributed.fleet.meta_optimizers.sharding.utils import save_persistables from modeling impo...
true
true
f749b46be04d03b3b4bd4f8e79aa3b3ea99109eb
6,412
py
Python
py65/disassemblerM65C02A.py
MorrisMA/py65
bda1553ff88fc577944bde3d7cb3e75a3b83ccfa
[ "BSD-3-Clause" ]
null
null
null
py65/disassemblerM65C02A.py
MorrisMA/py65
bda1553ff88fc577944bde3d7cb3e75a3b83ccfa
[ "BSD-3-Clause" ]
null
null
null
py65/disassemblerM65C02A.py
MorrisMA/py65
bda1553ff88fc577944bde3d7cb3e75a3b83ccfa
[ "BSD-3-Clause" ]
null
null
null
from utils.addressing import AddressParser class Disassembler: def __init__(self, mpu, address_parser=None): if address_parser is None: address_parser = AddressParser() self._mpu = mpu self._address_parser = address_parser self.addrWidth = mpu.ADDR_WIDTH self....
35.230769
67
0.510293
from utils.addressing import AddressParser class Disassembler: def __init__(self, mpu, address_parser=None): if address_parser is None: address_parser = AddressParser() self._mpu = mpu self._address_parser = address_parser self.addrWidth = mpu.ADDR_WIDTH self....
true
true
f749b4bda99564bb4c995ac78b4317cba230995c
1,157
py
Python
new/Scripts/rst2html5.py
YashviP/chat_server
e2a209bbec118ec66c87122852406cffd5c38306
[ "MIT" ]
1
2019-06-17T05:35:15.000Z
2019-06-17T05:35:15.000Z
new/Scripts/rst2html5.py
YashviP/chat_server
e2a209bbec118ec66c87122852406cffd5c38306
[ "MIT" ]
null
null
null
new/Scripts/rst2html5.py
YashviP/chat_server
e2a209bbec118ec66c87122852406cffd5c38306
[ "MIT" ]
null
null
null
#!c:\users\hp\chat\new\scripts\python.exe # -*- coding: utf8 -*- # :Copyright: © 2015 Günter Milde. # :License: Released under the terms of the `2-Clause BSD license`_, in short: # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the cop...
32.138889
78
0.719101
try: import locale locale.setlocale(locale.LC_ALL, '') except locale.Error: pass from docutils.core import publish_cmdline, default_description description = (u'Generates HTML 5 documents from standalone ' u'reStructuredText sources ' + default_description) ...
true
true
f749b67bc8b741e83e67903738f3a6eb359d0cf3
283
py
Python
scripts/focal/base_FOCALIoULoss_configs/schedule_1x.py
gtuav/gtuav
e43dc9a8ea48afb4641390e778dbebf2271e976b
[ "Apache-2.0" ]
null
null
null
scripts/focal/base_FOCALIoULoss_configs/schedule_1x.py
gtuav/gtuav
e43dc9a8ea48afb4641390e778dbebf2271e976b
[ "Apache-2.0" ]
null
null
null
scripts/focal/base_FOCALIoULoss_configs/schedule_1x.py
gtuav/gtuav
e43dc9a8ea48afb4641390e778dbebf2271e976b
[ "Apache-2.0" ]
2
2021-02-01T09:47:15.000Z
2021-02-03T17:16:21.000Z
# optimizer optimizer = dict(type='SGD', lr=0.001, momentum=0.9, weight_decay=0.0001) optimizer_config = dict(grad_clip=None) # learning policy lr_config = dict( policy='step', warmup='linear', warmup_iters=500, warmup_ratio=0.001, step=[8, 11]) total_epochs = 12
25.727273
73
0.69258
optimizer = dict(type='SGD', lr=0.001, momentum=0.9, weight_decay=0.0001) optimizer_config = dict(grad_clip=None) lr_config = dict( policy='step', warmup='linear', warmup_iters=500, warmup_ratio=0.001, step=[8, 11]) total_epochs = 12
true
true
f749b7535859a4e23a206a6089f3830dd2e9c855
3,225
py
Python
paymentsapp_project/paymentsapp_project/settings.py
calinjovrea/PaymentsAppANDEstimatedStockPrice
0f9c49548f024034fddbbd49ba1f4c08b16373e1
[ "MIT" ]
null
null
null
paymentsapp_project/paymentsapp_project/settings.py
calinjovrea/PaymentsAppANDEstimatedStockPrice
0f9c49548f024034fddbbd49ba1f4c08b16373e1
[ "MIT" ]
null
null
null
paymentsapp_project/paymentsapp_project/settings.py
calinjovrea/PaymentsAppANDEstimatedStockPrice
0f9c49548f024034fddbbd49ba1f4c08b16373e1
[ "MIT" ]
null
null
null
""" Django settings for paymentsapp_project project. Generated by 'django-admin startproject' using Django 3.0.8. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ ...
26.219512
91
0.700155
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '1x$-lq!i5ecch7_b_g8o5-()1)!kdi4+9)5!^v4axbzu44-)#*' DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.content...
true
true
f749b7bc8c980ace7e247b49c6f10f51b4654116
504
py
Python
1_basic/flask1.py
IzPerfect/Python-Flask
bfd66bab9792c64eb8fb8f71a878a5890549b6e4
[ "MIT" ]
null
null
null
1_basic/flask1.py
IzPerfect/Python-Flask
bfd66bab9792c64eb8fb8f71a878a5890549b6e4
[ "MIT" ]
null
null
null
1_basic/flask1.py
IzPerfect/Python-Flask
bfd66bab9792c64eb8fb8f71a878a5890549b6e4
[ "MIT" ]
null
null
null
from flask import Flask # 플라스크를 import한다 # app = Flask(__name__)# flask객체 생성 # URL /의 GET요청에 대해 뷰 함수를 등록 # @표시는 데코레이터라고 한다 # Flask에서 URL을 처리하는 방법을 URL Dispath라고한다. # 밑의 코드는 클라이언트가 /를 요청하면 helloworld라는 함수를 실행한다는 것 # route 데코레이터에 추가된 함수를 뷰 함수라고 한다 @app.route("/") def helloworld():# 뷰 함수 return "Hello world flask" ...
21.913043
51
0.668651
from flask import Flask app = Flask(__name__) @app.route("/") def helloworld(): return "Hello world flask" if __name__=="__main__": app.run(host='0.0.0.0')
true
true
f749b7cb3e9cf99c7c9924870973047ee91ad75a
76
py
Python
tests/CONSTANTS.py
gousteris/git-diff-conditional-buildkite-plugin
517442ca9ebe21021e1078debf88c231ba8e8dff
[ "MIT" ]
19
2020-03-27T11:53:11.000Z
2021-04-14T23:11:27.000Z
tests/CONSTANTS.py
segmentio/git-diff-conditional-buildkite-plugin
62a276000149da0bbf4e152634211c75966a8558
[ "MIT" ]
7
2020-03-27T11:59:51.000Z
2021-08-06T14:01:42.000Z
tests/CONSTANTS.py
segmentio/git-diff-conditional-buildkite-plugin
62a276000149da0bbf4e152634211c75966a8558
[ "MIT" ]
6
2020-03-28T20:49:49.000Z
2022-01-19T17:48:02.000Z
LOGGER_NAME = "cli" PLUGIN_PREFIX = "BUILDKITE_PLUGIN_GIT_DIFF_CONDITIONAL"
25.333333
55
0.842105
LOGGER_NAME = "cli" PLUGIN_PREFIX = "BUILDKITE_PLUGIN_GIT_DIFF_CONDITIONAL"
true
true
f749b8a61f11c48c11b133fc7f5f42ccdf2a3c0e
770
py
Python
project_euler/problem_09/sol3.py
wyfish/python_algorithms
e662a5aaefb6f236021c89e9d410519c2013efa0
[ "MIT" ]
1
2021-02-09T09:28:33.000Z
2021-02-09T09:28:33.000Z
project_euler/problem_09/sol3.py
carloshenriqueDEV/Python-1
f438440ac54bbaad1557d5d8d2caa3331231f99b
[ "MIT" ]
null
null
null
project_euler/problem_09/sol3.py
carloshenriqueDEV/Python-1
f438440ac54bbaad1557d5d8d2caa3331231f99b
[ "MIT" ]
1
2021-02-09T09:28:49.000Z
2021-02-09T09:28:49.000Z
""" Problem Statement: A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2. There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc. """ from __future__ import print_function def solutio...
20.263158
78
0.550649
from __future__ import print_function def solution(): return [ a * b * c for a in range(1, 999) for b in range(a, 999) for c in range(b, 999) if (a * a + b * b == c * c) and (a + b + c == 1000) ][0] if __name__ == "__main__": print(solution())
true
true
f749bbc0f1775b525acc3430b9f9f49a08399183
1,274
py
Python
tests/composites/decimator_spec.py
telent/luaradio
c1cb47325e4eb2886915f810fff5324571aeb59d
[ "MIT" ]
null
null
null
tests/composites/decimator_spec.py
telent/luaradio
c1cb47325e4eb2886915f810fff5324571aeb59d
[ "MIT" ]
null
null
null
tests/composites/decimator_spec.py
telent/luaradio
c1cb47325e4eb2886915f810fff5324571aeb59d
[ "MIT" ]
null
null
null
import numpy import scipy.signal from generate import * def generate(): def process(factor, x): out = scipy.signal.decimate(x, factor, n=128 - 1, ftype='fir', zero_phase=False) return [out.astype(type(x[0]))] vectors = [] x = random_complex64(256) vectors.append(TestVector([2], [x], ...
49
120
0.679749
import numpy import scipy.signal from generate import * def generate(): def process(factor, x): out = scipy.signal.decimate(x, factor, n=128 - 1, ftype='fir', zero_phase=False) return [out.astype(type(x[0]))] vectors = [] x = random_complex64(256) vectors.append(TestVector([2], [x], ...
true
true
f749bc3407bd82b1b0617869c1be51ddab9a3892
1,195
py
Python
mailman2/admin.py
edinburghhacklab/hackdb
3ec7d66039705aa511dd6559196fa51a53b3a110
[ "MIT" ]
null
null
null
mailman2/admin.py
edinburghhacklab/hackdb
3ec7d66039705aa511dd6559196fa51a53b3a110
[ "MIT" ]
null
null
null
mailman2/admin.py
edinburghhacklab/hackdb
3ec7d66039705aa511dd6559196fa51a53b3a110
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2022 Tim Hawes <me@timhawes.com> # # SPDX-License-Identifier: MIT from django.contrib import admin from .models import ChangeOfAddress, GroupPolicy, MailingList class GroupPolicyInline(admin.TabularInline): model = GroupPolicy fields = ("group", "policy", "prompt") extra = 0 ...
23.431373
87
0.654393
from django.contrib import admin from .models import ChangeOfAddress, GroupPolicy, MailingList class GroupPolicyInline(admin.TabularInline): model = GroupPolicy fields = ("group", "policy", "prompt") extra = 0 def groups(obj): return [policy.group.name for policy in obj.group_policies.order_by(...
true
true
f749bdf078aa5d0d691cc8d4a2f75be6b5d96307
56,316
py
Python
dateutil/parser/_parser.py
seequent/dateutil
7a99868fa86d25661060c460c8bb623c2f9f0a32
[ "Apache-2.0" ]
null
null
null
dateutil/parser/_parser.py
seequent/dateutil
7a99868fa86d25661060c460c8bb623c2f9f0a32
[ "Apache-2.0" ]
null
null
null
dateutil/parser/_parser.py
seequent/dateutil
7a99868fa86d25661060c460c8bb623c2f9f0a32
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ This module offers a generic date/time string parser which is able to parse most known formats to represent a date and/or time. This module attempts to be forgiving with regards to unlikely input formats, returning a datetime object even for dates which are ambiguous. If an element of a dat...
36.379845
97
0.485599
from __future__ import unicode_literals import datetime import re import string import time import warnings from calendar import monthrange from io import StringIO import six from six import binary_type, integer_types, text_type from decimal import Decimal from warnings import warn from .. import relativedelta f...
true
true
f749be6f14f32bed74d434e086236d9a2983f28d
5,831
py
Python
KamitaniData/kamitani_data_handler.py
ozcelikfu/IC-GAN_fMRI_Reconstruction
31b0dc7659afbf8d12b1e460a38ab6d8d9a4296c
[ "MIT" ]
null
null
null
KamitaniData/kamitani_data_handler.py
ozcelikfu/IC-GAN_fMRI_Reconstruction
31b0dc7659afbf8d12b1e460a38ab6d8d9a4296c
[ "MIT" ]
null
null
null
KamitaniData/kamitani_data_handler.py
ozcelikfu/IC-GAN_fMRI_Reconstruction
31b0dc7659afbf8d12b1e460a38ab6d8d9a4296c
[ "MIT" ]
null
null
null
from scipy.io import loadmat import numpy as np import pandas as pd import sklearn.preprocessing from sklearn import preprocessing class kamitani_data_handler(): """Generate batches for FMRI prediction frames_back - how many video frames to take before FMRI frame frames_forward - how many video frames to...
34.916168
162
0.602984
from scipy.io import loadmat import numpy as np import pandas as pd import sklearn.preprocessing from sklearn import preprocessing class kamitani_data_handler(): def __init__(self, matlab_file ,test_img_csv = 'KamitaniData/imageID_test.csv',train_img_csv = 'KamitaniData/imageID_training.csv',voxel_spacing =3,lo...
true
true
f749bf0f8128d6adca41d4eb6dc3ea9e81c9e67b
1,642
py
Python
ctapipe/reco/tests/test_energy_regressor.py
Pluto9th/ctapipe
8c4faa674a1949210cbda8cb9e2413dd6362afea
[ "BSD-3-Clause" ]
1
2020-05-18T12:41:51.000Z
2020-05-18T12:41:51.000Z
ctapipe/reco/tests/test_energy_regressor.py
Pluto9th/ctapipe
8c4faa674a1949210cbda8cb9e2413dd6362afea
[ "BSD-3-Clause" ]
null
null
null
ctapipe/reco/tests/test_energy_regressor.py
Pluto9th/ctapipe
8c4faa674a1949210cbda8cb9e2413dd6362afea
[ "BSD-3-Clause" ]
1
2021-07-08T16:15:13.000Z
2021-07-08T16:15:13.000Z
from tempfile import TemporaryDirectory import numpy as np from numpy.testing import assert_allclose from astropy import units as u from ctapipe.reco.energy_regressor import EnergyRegressor def test_prepare_model(): cam_id_list = ["FlashCam", "ASTRICam"] feature_list = {"FlashCam": [[1, 10], [2, 20], [3, 3...
34.93617
69
0.541413
from tempfile import TemporaryDirectory import numpy as np from numpy.testing import assert_allclose from astropy import units as u from ctapipe.reco.energy_regressor import EnergyRegressor def test_prepare_model(): cam_id_list = ["FlashCam", "ASTRICam"] feature_list = {"FlashCam": [[1, 10], [2, 20], [3, 3...
true
true
f749bf39634d36a6f318bb67ccf0791b9c7b361f
185
py
Python
notification_service/admin.py
ayubowan/app_service
6bff2666d3a7fc212e6c5fb62c41d47fd17bbeac
[ "MIT" ]
null
null
null
notification_service/admin.py
ayubowan/app_service
6bff2666d3a7fc212e6c5fb62c41d47fd17bbeac
[ "MIT" ]
3
2021-03-19T00:52:17.000Z
2021-06-04T22:40:01.000Z
notification_service/admin.py
ayubowan/app_service
6bff2666d3a7fc212e6c5fb62c41d47fd17bbeac
[ "MIT" ]
1
2020-03-17T21:08:33.000Z
2020-03-17T21:08:33.000Z
from django.contrib import admin # Register your models here. from notification_service.models import Message @admin.register(Message) class MessageAdmin(admin.ModelAdmin): pass
18.5
47
0.805405
from django.contrib import admin from notification_service.models import Message @admin.register(Message) class MessageAdmin(admin.ModelAdmin): pass
true
true
f749bfd5af6ed90a0e90e46fe662089a4a7387fd
1,491
py
Python
infra/recipe_modules/macos_sdk/__init__.py
leonlau/gn
ec938ddaa276646eb8f1ab33e160c156011d8217
[ "BSD-3-Clause" ]
88
2017-05-07T03:52:01.000Z
2022-03-16T02:09:17.000Z
infra/recipe_modules/macos_sdk/__init__.py
leonlau/gn
ec938ddaa276646eb8f1ab33e160c156011d8217
[ "BSD-3-Clause" ]
3
2018-10-08T13:52:24.000Z
2019-05-19T23:30:19.000Z
infra/recipe_modules/macos_sdk/__init__.py
leonlau/gn
ec938ddaa276646eb8f1ab33e160c156011d8217
[ "BSD-3-Clause" ]
17
2017-04-28T10:15:48.000Z
2021-08-23T11:48:25.000Z
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. DEPS = [ 'recipe_engine/cipd', 'recipe_engine/context', 'recipe_engine/json', 'recipe_engine/path', 'recipe_engine/platform', 'recipe...
33.133333
95
0.568075
DEPS = [ 'recipe_engine/cipd', 'recipe_engine/context', 'recipe_engine/json', 'recipe_engine/path', 'recipe_engine/platform', 'recipe_engine/step', ] from recipe_engine.recipe_api import Property from recipe_engine.config import ConfigGroup, Single PROPERTIES = { '$gn/macos_sdk': ...
true
true
f749bfeac1aac5cbf1bf36a39e45707ed9ae3f24
21,170
py
Python
bin/lesson_check.py
ocaisa/HemeLB-Carpentries
7da0eaf1cf18202f5a3b44ffa4044ee957ccc6f8
[ "CC-BY-4.0" ]
1
2021-08-20T09:25:56.000Z
2021-08-20T09:25:56.000Z
bin/lesson_check.py
ocaisa/HemeLB-Carpentries
7da0eaf1cf18202f5a3b44ffa4044ee957ccc6f8
[ "CC-BY-4.0" ]
16
2019-11-29T15:07:56.000Z
2020-11-09T16:46:02.000Z
bin/lesson_check.py
ocaisa/HemeLB-Carpentries
7da0eaf1cf18202f5a3b44ffa4044ee957ccc6f8
[ "CC-BY-4.0" ]
5
2021-05-07T10:27:09.000Z
2021-08-22T14:22:42.000Z
""" Check lesson files and their contents. """ import os import glob import re from argparse import ArgumentParser from util import (Reporter, read_markdown, load_yaml, check_unwanted_files, require) __version__ = '0.3' # Where to look for source Markdown files. SOURCE_DIRS = ['', '_episodes', '_...
35.049669
103
0.554417
import os import glob import re from argparse import ArgumentParser from util import (Reporter, read_markdown, load_yaml, check_unwanted_files, require) __version__ = '0.3' SOURCE_DIRS = ['', '_episodes', '_extras'] SNIPPET_DIR = os.path.join('_includes', 'snippets_library') SOURCE_RMD_DIRS ...
true
true
f749c061093b4b9a80886cf542a249f22441727c
9,753
py
Python
python_modules/dagster/dagster/core/host_representation/origin.py
ericct/dagster
dd2c9f05751e1bae212a30dbc54381167a14f6c5
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/host_representation/origin.py
ericct/dagster
dd2c9f05751e1bae212a30dbc54381167a14f6c5
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/host_representation/origin.py
ericct/dagster
dd2c9f05751e1bae212a30dbc54381167a14f6c5
[ "Apache-2.0" ]
null
null
null
import os import sys from abc import ABC, abstractmethod from collections import namedtuple from dagster import check from dagster.core.definitions.reconstructable import ReconstructableRepository from dagster.core.types.loadable_target_origin import LoadableTargetOrigin from dagster.serdes import create_snapshot_id, ...
34.956989
99
0.7004
import os import sys from abc import ABC, abstractmethod from collections import namedtuple from dagster import check from dagster.core.definitions.reconstructable import ReconstructableRepository from dagster.core.types.loadable_target_origin import LoadableTargetOrigin from dagster.serdes import create_snapshot_id, ...
true
true
f749c0f548d0f7a71c9d63af0b1a20a990603bd3
248
py
Python
iwg_blog/availability_monitor/models.py
razortheory/who-iwg-webapp
e2318d286cd9ab87d4d8103bc7b3072cfb99bf76
[ "MIT" ]
null
null
null
iwg_blog/availability_monitor/models.py
razortheory/who-iwg-webapp
e2318d286cd9ab87d4d8103bc7b3072cfb99bf76
[ "MIT" ]
null
null
null
iwg_blog/availability_monitor/models.py
razortheory/who-iwg-webapp
e2318d286cd9ab87d4d8103bc7b3072cfb99bf76
[ "MIT" ]
null
null
null
from django.db import models class AvailabilityTest(models.Model): primary_key = models.CharField(max_length=20, primary_key=True) last_access = models.DateTimeField(help_text='Datetime of last access to this model from the celery task')
35.428571
110
0.790323
from django.db import models class AvailabilityTest(models.Model): primary_key = models.CharField(max_length=20, primary_key=True) last_access = models.DateTimeField(help_text='Datetime of last access to this model from the celery task')
true
true
f749c41cb05b239d5232e43e03d03f408b1ac4ca
95
py
Python
backend/commentapp/apps.py
Lenend-KPU/LBS-Platform
75ba24db8969248e74e9d974638977de1c0bc36a
[ "MIT" ]
15
2020-12-23T13:56:49.000Z
2021-12-10T11:04:23.000Z
backend/commentapp/apps.py
Lenend-KPU/LBS-Platform
75ba24db8969248e74e9d974638977de1c0bc36a
[ "MIT" ]
41
2021-03-19T07:51:48.000Z
2021-11-22T09:45:46.000Z
backend/commentapp/apps.py
Lenend-KPU/LBS-Platform
75ba24db8969248e74e9d974638977de1c0bc36a
[ "MIT" ]
3
2021-03-24T15:18:24.000Z
2021-09-11T14:51:35.000Z
from django.apps import AppConfig class CommentappConfig(AppConfig): name = 'commentapp'
15.833333
34
0.768421
from django.apps import AppConfig class CommentappConfig(AppConfig): name = 'commentapp'
true
true
f749c69d6d03fb89826231c5eaddc4946d22a353
1,507
py
Python
plotly_study/tests/test_orca/test_sg_scraper.py
lucasiscovici/plotly_py
42ab769febb45fbbe0a3c677dc4306a4f59cea36
[ "MIT" ]
null
null
null
plotly_study/tests/test_orca/test_sg_scraper.py
lucasiscovici/plotly_py
42ab769febb45fbbe0a3c677dc4306a4f59cea36
[ "MIT" ]
null
null
null
plotly_study/tests/test_orca/test_sg_scraper.py
lucasiscovici/plotly_py
42ab769febb45fbbe0a3c677dc4306a4f59cea36
[ "MIT" ]
null
null
null
import plotly_study import os import shutil import pytest # Fixtures # -------- @pytest.fixture() def setup(): # Reset orca state plotly_study.io.orca.config.restore_defaults(reset_server=False) here = os.path.dirname(os.path.abspath(__file__)) # Run setup before every test function in this file pytestmar...
25.116667
80
0.694094
import plotly_study import os import shutil import pytest @pytest.fixture() def setup(): plotly_study.io.orca.config.restore_defaults(reset_server=False) here = os.path.dirname(os.path.abspath(__file__)) pytestmark = pytest.mark.usefixtures("setup") def execute_plotly_example(): import plotly_st...
true
true
f749c792a0098201987f4adbecf6862275bd50ba
2,003
py
Python
hume/device/request_handler.py
megacorpincorporated/hume
40093cc7e5e79dbac8386e2e5f7f7a41c7e516e8
[ "MIT" ]
2
2019-08-18T10:21:43.000Z
2020-08-23T19:55:17.000Z
hume/device/request_handler.py
megacorpincorporated/hume
40093cc7e5e79dbac8386e2e5f7f7a41c7e516e8
[ "MIT" ]
4
2019-08-03T08:58:15.000Z
2021-06-09T15:49:49.000Z
hume/device/request_handler.py
megacorpincorporated/hume
40093cc7e5e79dbac8386e2e5f7f7a41c7e516e8
[ "MIT" ]
null
null
null
import json import logging import storage from defs import DeviceRequest from device.models import Device, DeviceAddress from hint.models import HintAuthentication from hint.procedures.request_library import create_device LOGGER = logging.getLogger(__name__) """ This module specifies the handling of device message...
31.296875
79
0.690464
import json import logging import storage from defs import DeviceRequest from device.models import Device, DeviceAddress from hint.models import HintAuthentication from hint.procedures.request_library import create_device LOGGER = logging.getLogger(__name__) def incoming_message(device: Device, request_type: int...
true
true
f749c7f71502b158723179cb6ea6e7ddf5738f03
3,224
py
Python
transaction_hooks/mixin.py
Perkville/django-transaction-hooks
a3eabddf9e7af441929756cabba68b65a84e537f
[ "BSD-3-Clause" ]
70
2015-01-30T00:48:38.000Z
2021-07-14T02:41:59.000Z
transaction_hooks/mixin.py
Perkville/django-transaction-hooks
a3eabddf9e7af441929756cabba68b65a84e537f
[ "BSD-3-Clause" ]
10
2015-01-09T05:40:34.000Z
2020-03-15T23:58:53.000Z
transaction_hooks/mixin.py
Perkville/django-transaction-hooks
a3eabddf9e7af441929756cabba68b65a84e537f
[ "BSD-3-Clause" ]
11
2015-04-29T12:50:20.000Z
2017-06-28T10:55:50.000Z
class TransactionHooksDatabaseWrapperMixin(object): """ A ``DatabaseWrapper`` mixin to implement transaction-committed hooks. To use, create a package for your custom database backend and place a ``base.py`` module within it. Import whatever ``DatabaseWrapper`` you want to subclass (under some othe...
38.843373
79
0.661911
class TransactionHooksDatabaseWrapperMixin(object): def __init__(self, *a, **kw): self.run_on_commit = [] self.run_commit_hooks_on_set_autocommit_on = False super(TransactionHooksDatabaseWrapperMixin, self).__init__(*a, **kw) def on_commit(s...
true
true
f749ca865ba75e668492e7dd1537db9779656f47
868
py
Python
Q647.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
Q647.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
Q647.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
""" Q647 Palindromic Substrings Medium Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are counted as different substrings even they consist of same characters. """ class Solution: def countSubstrings(self, s: str...
18.083333
85
0.536866
class Solution: def countSubstrings(self, s: str) -> int: memo = [[0] * len(s) for _ in range(len(s))] for i in range(len(s)): memo[i][i] = 1 for i in range(1, len(s)): if s[i-1] == s[i]: memo[i-1][i] = 1 for l in range(3, len(s)+1): ...
true
true
f749cb17a3406e8782f344f2eb5b8e800833861c
7,169
py
Python
docs/conf.py
nprapps/clan
415ddd027ea81013f2d62d75aec6da70703df49c
[ "MIT" ]
18
2015-01-05T23:09:59.000Z
2019-09-11T11:18:33.000Z
docs/conf.py
nprapps/clan
415ddd027ea81013f2d62d75aec6da70703df49c
[ "MIT" ]
2
2021-02-08T20:13:38.000Z
2021-03-25T21:27:24.000Z
docs/conf.py
onyxfish/clan
415ddd027ea81013f2d62d75aec6da70703df49c
[ "MIT" ]
6
2015-05-16T20:26:32.000Z
2017-05-24T20:05:50.000Z
# -*- coding: utf-8 -*- # # clan documentation build configuration file, created by # sphinx-quickstart on Fri Apr 15 21:52:09 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All co...
32.004464
80
0.71851
import os import sys sys.path.insert(0, os.path.abspath('..')) extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx'] autodoc_member_order = 'bysource' intersphinx_mapping = { 'python': ('http://docs.python.org/2.7', None) } templates_path = ['_templates'] source_suffix = '.rst'...
true
true
f749cbea49751db5546b18ea9fe69eec26724adb
15,583
py
Python
pylib/zeus/runner.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
null
null
null
pylib/zeus/runner.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
null
null
null
pylib/zeus/runner.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
2
2018-07-16T19:14:11.000Z
2020-10-15T08:48:32.000Z
#!/usr/bin/env python """Handles run.""" __author__ = 'pramodg@room77.com (Pramod Gupta)' __copyright__ = 'Copyright 2012 Room77, Inc.' import itertools import json import os import re import sys import time from pylib.base.flags import Flags from pylib.base.exec_utils import ExecUtils from pylib.base.term_color im...
35.988453
99
0.656549
__author__ = 'pramodg@room77.com (Pramod Gupta)' __copyright__ = 'Copyright 2012 Room77, Inc.' import itertools import json import os import re import sys import time from pylib.base.flags import Flags from pylib.base.exec_utils import ExecUtils from pylib.base.term_color import TermColor from pylib.file.file_util...
true
true
f749cc5aee6c096d3817b973ef114d6bf2a54ad4
12,126
py
Python
test/functional/mining_pos_fakestake.py
ComputerCraftr/pivx-gui
79c13d9dcaf48dfb11400f0bc5733aaa7c83cee9
[ "MIT" ]
null
null
null
test/functional/mining_pos_fakestake.py
ComputerCraftr/pivx-gui
79c13d9dcaf48dfb11400f0bc5733aaa7c83cee9
[ "MIT" ]
null
null
null
test/functional/mining_pos_fakestake.py
ComputerCraftr/pivx-gui
79c13d9dcaf48dfb11400f0bc5733aaa7c83cee9
[ "MIT" ]
1
2021-01-23T04:15:52.000Z
2021-01-23T04:15:52.000Z
#!/usr/bin/env python3 # Copyright (c) 2019-2020 The YieldStakingWallet developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Covers various scenarios of PoS blocks where the coinstake input is already spent (either in a ...
42.250871
103
0.617269
from io import BytesIO from time import sleep from test_framework.authproxy import JSONRPCException from test_framework.messages import COutPoint from test_framework.test_framework import YieldSakingWalletTestFramework from test_framework.util import ( sync_blocks, assert_equal, bytes_to_hex_str, ...
true
true
f749cd093e9dbcd009d8647bce6a6b0f88a39c1c
456
py
Python
pymoney/exceptions.py
hrother/pymoney
d1e23931d726399d9a9ff9dde5377f1cfe8292a9
[ "MIT" ]
1
2020-04-11T10:55:17.000Z
2020-04-11T10:55:17.000Z
pymoney/exceptions.py
hrother/pymoney
d1e23931d726399d9a9ff9dde5377f1cfe8292a9
[ "MIT" ]
null
null
null
pymoney/exceptions.py
hrother/pymoney
d1e23931d726399d9a9ff9dde5377f1cfe8292a9
[ "MIT" ]
null
null
null
"""Exceptions for pymoney""" class MoneyError(Exception): """Generic Money error""" class InvalidAmount(MoneyError, ValueError): """Raised when the amount of money is invalid""" class CurrencyMismatch(MoneyError, ValueError): """Raised when a operation is performed on money with different currenci...
24
72
0.734649
class MoneyError(Exception): class InvalidAmount(MoneyError, ValueError): class CurrencyMismatch(MoneyError, ValueError): class UnsupportedOperatorType(MoneyError, TypeError):
true
true
f749cd2530bd66937331d59d68dfd00bd7a2a806
11,599
py
Python
FastScripts.glyphsPalette/Contents/Resources/plugin.py
schriftgestalt/FastScripts
b50ab402d037748631203f1e5ed09dc552dbbf02
[ "Apache-2.0" ]
10
2021-04-20T06:48:05.000Z
2022-02-08T16:10:13.000Z
FastScripts.glyphsPalette/Contents/Resources/plugin.py
schriftgestalt/FastScripts
b50ab402d037748631203f1e5ed09dc552dbbf02
[ "Apache-2.0" ]
6
2020-11-20T12:19:21.000Z
2022-01-21T16:13:56.000Z
FastScripts.glyphsPalette/Contents/Resources/plugin.py
schriftgestalt/FastScripts
b50ab402d037748631203f1e5ed09dc552dbbf02
[ "Apache-2.0" ]
4
2021-06-04T21:47:52.000Z
2022-01-20T14:09:07.000Z
# -*- encoding: utf-8 -*- from __future__ import division, print_function, unicode_literals import objc from GlyphsApp import * from GlyphsApp.plugins import * if int(Glyphs.versionNumber) == 3: from GlyphsApp import GSMouseOverButton, GSScriptingHandler from AppKit import ( NSButton, NSMiniControlSize, ...
34.936747
128
0.619709
from __future__ import division, print_function, unicode_literals import objc from GlyphsApp import * from GlyphsApp.plugins import * if int(Glyphs.versionNumber) == 3: from GlyphsApp import GSMouseOverButton, GSScriptingHandler from AppKit import ( NSButton, NSMiniControlSize, NSShadowlessSquareBezel...
true
true
f749cdd1db03ed2dbaa3cc35c2a9e74be273cfb1
24,424
py
Python
virtual/lib/python3.8/site-packages/sqlalchemy/orm/loading.py
valentine-ochieng/Personal-blogging-website-
5f9b4a6e6feefb344d32ecaa64c6f284c7b2c56e
[ "MIT" ]
13
2020-03-27T04:37:45.000Z
2022-03-27T12:50:30.000Z
virtual/lib/python3.8/site-packages/sqlalchemy/orm/loading.py
valentine-ochieng/Personal-blogging-website-
5f9b4a6e6feefb344d32ecaa64c6f284c7b2c56e
[ "MIT" ]
95
2018-01-31T20:28:13.000Z
2018-04-10T01:55:35.000Z
venv/Lib/site-packages/sqlalchemy/orm/loading.py
chengguojun/July-blog
13d6ce47f3a7f86a260744733146f9531f0e4a23
[ "MIT" ]
3
2020-03-27T20:46:01.000Z
2022-03-05T08:57:40.000Z
# orm/loading.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """private module containing functions used to convert database rows into object inst...
34.693182
79
0.592778
from __future__ import absolute_import from .. import util from . import attributes, exc as orm_exc from ..sql import util as sql_util from . import strategy_options from .util import _none_set, state_str from .base import _SET_DEFERRED_EXPIRED, _DEFER_FOR_STATE from .. import exc as sa_exc import collections ...
true
true
f749ce52852dfbd63b01505b5348f69ec77ca90c
23,691
py
Python
salt/modules/nexus.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
2
2015-08-21T01:05:03.000Z
2015-09-02T07:30:45.000Z
salt/modules/nexus.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
9
2021-03-31T20:25:25.000Z
2021-07-04T05:33:46.000Z
salt/modules/nexus.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
1
2021-11-30T06:51:52.000Z
2021-11-30T06:51:52.000Z
""" Module for fetching artifacts from Nexus 3.x .. versionadded:: 2018.3.0 """ import base64 import http.client import logging import os import urllib.request from urllib.error import HTTPError, URLError import salt.utils.files import salt.utils.stringutils from salt.exceptions import CommandExecutionError try: ...
31.714859
185
0.636613
import base64 import http.client import logging import os import urllib.request from urllib.error import HTTPError, URLError import salt.utils.files import salt.utils.stringutils from salt.exceptions import CommandExecutionError try: import xml.etree.ElementTree as ET HAS_ELEMENT_TREE = True except ImportEr...
true
true
f749d06f0c25ceb5d378ff36275d40ab1b5925cc
6,849
py
Python
modules/models_runner/tc_br_models_runner.py
guilhermemg/trace-links-tc-br
965cb57d17057d1c9c3841c4aba01e72cf008cab
[ "MIT" ]
null
null
null
modules/models_runner/tc_br_models_runner.py
guilhermemg/trace-links-tc-br
965cb57d17057d1c9c3841c4aba01e72cf008cab
[ "MIT" ]
null
null
null
modules/models_runner/tc_br_models_runner.py
guilhermemg/trace-links-tc-br
965cb57d17057d1c9c3841c4aba01e72cf008cab
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer from modules.utils import plots from modules.utils import firefox_dataset_p2 as fd from modules.utils import tokenizers as tok from modules.utils import aux_functions from modules.models.lda import LDA...
37.021622
120
0.675427
import pandas as pd import numpy as np from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer from modules.utils import plots from modules.utils import firefox_dataset_p2 as fd from modules.utils import tokenizers as tok from modules.utils import aux_functions from modules.models.lda import LDA...
true
true
f749d0e84f6ab4177cb49a18cbdad03771fb51c2
3,111
py
Python
geneinfo/geneinfo.py
pokey/geneinfo
4fdec18a50f0d56efee85ef2d7f3a738dbcee619
[ "MIT" ]
null
null
null
geneinfo/geneinfo.py
pokey/geneinfo
4fdec18a50f0d56efee85ef2d7f3a738dbcee619
[ "MIT" ]
3
2017-07-03T18:32:39.000Z
2021-11-15T18:24:10.000Z
geneinfo/geneinfo.py
pokey/geneinfo
4fdec18a50f0d56efee85ef2d7f3a738dbcee619
[ "MIT" ]
null
null
null
import asyncio from itertools import zip_longest import os import os.path from bs4 import BeautifulSoup from tqdm import tqdm import aiohttp from jinja2 import Environment, PackageLoader from pubmedasync.fetch import Fetcher from geneinfo.make_table import make_table from geneinfo.process import extract_paper_info ...
33.451613
79
0.575056
import asyncio from itertools import zip_longest import os import os.path from bs4 import BeautifulSoup from tqdm import tqdm import aiohttp from jinja2 import Environment, PackageLoader from pubmedasync.fetch import Fetcher from geneinfo.make_table import make_table from geneinfo.process import extract_paper_info ...
true
true
f749d283060ac5cb54e6ff95cd61b1d341b1ad47
2,174
py
Python
evaluation/early_stage/prune.py
kumasento/gconv-prune
f81c417d3754102c902bd153809130e12607bd7d
[ "MIT" ]
8
2019-08-29T07:43:03.000Z
2021-03-03T14:25:09.000Z
evaluation/early_stage/prune.py
kumasento/gconv-prune
f81c417d3754102c902bd153809130e12607bd7d
[ "MIT" ]
null
null
null
evaluation/early_stage/prune.py
kumasento/gconv-prune
f81c417d3754102c902bd153809130e12607bd7d
[ "MIT" ]
2
2019-09-15T03:39:30.000Z
2020-04-30T07:06:46.000Z
""" Pruning a pre-trained model by GSP. Author: Ruizhe Zhao Date: 12/02/2019 The work-flow of this script: - load a pre-trained model (suffixed by 'm') - compute the mask based on weights - fine-tune the model """ import os import sys import argparse import copy import time import shutil import json import logging ...
23.89011
87
0.73781
import os import sys import argparse import copy import time import shutil import json import logging logging.getLogger().setLevel(logging.DEBUG) import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim import torch.utils.data as ...
true
true
f749d2d150960a9123ccd9405b49486a3a991236
2,439
py
Python
mayan/settings/literals.py
PatrickMugayaJoel/Mayan-EDMS
1a2b4d4fa784a68498f82e0735958dc116b60d46
[ "Apache-2.0" ]
null
null
null
mayan/settings/literals.py
PatrickMugayaJoel/Mayan-EDMS
1a2b4d4fa784a68498f82e0735958dc116b60d46
[ "Apache-2.0" ]
null
null
null
mayan/settings/literals.py
PatrickMugayaJoel/Mayan-EDMS
1a2b4d4fa784a68498f82e0735958dc116b60d46
[ "Apache-2.0" ]
null
null
null
BINARY_DOCKER_COMPOSE_VERSION = '1.29.1' DEFAULT_DIRECTORY_BASE = '/opt/' DEFAULT_DIRECTORY_INSTALLATION = '/opt/mayan-edms/' DEFAULT_DIRECTORY_MEDIA_ROOT = '/opt/mayan-edms/media/' DEFAULT_DATABASE_NAME = 'mayan' DEFAULT_DATABASE_PASSWORD = 'mayanuserpass' DEFAULT_DATABASE_USER = 'mayan' DEFAULT_OS_GROUP = 'mayan' DEF...
39.983607
71
0.828618
BINARY_DOCKER_COMPOSE_VERSION = '1.29.1' DEFAULT_DIRECTORY_BASE = '/opt/' DEFAULT_DIRECTORY_INSTALLATION = '/opt/mayan-edms/' DEFAULT_DIRECTORY_MEDIA_ROOT = '/opt/mayan-edms/media/' DEFAULT_DATABASE_NAME = 'mayan' DEFAULT_DATABASE_PASSWORD = 'mayanuserpass' DEFAULT_DATABASE_USER = 'mayan' DEFAULT_OS_GROUP = 'mayan' DEF...
true
true
f749d30d0faca028cb46fa0d7b90caf8f341979c
76,940
py
Python
python/paddle/fluid/reader.py
wj-Mcat/Paddle
0a931106008f4174a8556aa4a4b9f23167c33f4d
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/reader.py
wj-Mcat/Paddle
0a931106008f4174a8556aa4a4b9f23167c33f4d
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/reader.py
wj-Mcat/Paddle
0a931106008f4174a8556aa4a4b9f23167c33f4d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
40.687467
172
0.571016
from . import core import sys import six import numpy as np import threading import paddle from .framework import Program, Variable, program_guard, default_main_program, default_startup_program, in_dygraph_mode, cpu_places, _current_expected_place, _in_eager_mode from .executor import global_scope from .d...
true
true
f749d3d70780358414a61cf8a36d24cc406206d5
34,559
py
Python
src/k8s-extension/azext_k8s_extension/vendored_sdks/models/_models_py3.py
malachma/azure-cli-extensions
fa207098b7bbe12c8e074b81e7fe55d6e028d49c
[ "MIT" ]
null
null
null
src/k8s-extension/azext_k8s_extension/vendored_sdks/models/_models_py3.py
malachma/azure-cli-extensions
fa207098b7bbe12c8e074b81e7fe55d6e028d49c
[ "MIT" ]
null
null
null
src/k8s-extension/azext_k8s_extension/vendored_sdks/models/_models_py3.py
malachma/azure-cli-extensions
fa207098b7bbe12c8e074b81e7fe55d6e028d49c
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
38.786756
172
0.664284
import datetime from typing import Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization from ._source_control_configuration_client_enums import * class ComplianceStatus(msrest.serialization.Model): _validation = { 'compliance_state': {'read...
true
true
f749d41050de97f399312742a488f0ad43f60cca
8,475
py
Python
python/ccxt/therock.py
GoChartingAdmin/ccxt
56cd9caec8c570bcb3038e0e18544d25a4bd14c3
[ "MIT" ]
2
2020-03-23T07:31:05.000Z
2021-05-17T10:34:31.000Z
python/ccxt/therock.py
0h/ccxt
3b6222aef7ed23649c7fe7f1de0f3550f0ecf472
[ "MIT" ]
null
null
null
python/ccxt/therock.py
0h/ccxt
3b6222aef7ed23649c7fe7f1de0f3550f0ecf472
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError class therock (Exchange): def describe(self): return self.deep_extend(super(therock, self).describe(), { 'id': 'therock', 'name': 'TheRockTrading', ...
36.06383
126
0.472212
from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError class therock (Exchange): def describe(self): return self.deep_extend(super(therock, self).describe(), { 'id': 'therock', 'name': 'TheRockTrading', 'countries': 'MT', ...
true
true
f749d48c4126f93df3c0800701d93e983f525fc7
1,174
py
Python
utils/glyphs.py
andradei/promptastic
0b68e49d45139a1e4b798d9f4a9a9edb34ec2368
[ "Apache-2.0" ]
null
null
null
utils/glyphs.py
andradei/promptastic
0b68e49d45139a1e4b798d9f4a9a9edb34ec2368
[ "Apache-2.0" ]
null
null
null
utils/glyphs.py
andradei/promptastic
0b68e49d45139a1e4b798d9f4a9a9edb34ec2368
[ "Apache-2.0" ]
null
null
null
""" Check out this website for the entire Unicode characters list: http://unicode-table.com """ import config # *_PATCHED glyphs exist only in patched fonts (available at: # https://github.com/Lokaltog/powerline-fonts). DIVIDER_RIGHT_PATCHED = chr(57520) DIVIDER_RIGHT_SOFT_PATCHED = chr(57521) DIVIDER_LEFT_PATCHED = ...
25.521739
89
0.751278
import config DIVIDER_RIGHT_PATCHED = chr(57520) DIVIDER_RIGHT_SOFT_PATCHED = chr(57521) DIVIDER_LEFT_PATCHED = chr(57522) DIVIDER_LEFT_SOFT_PATCHED = chr(57523) BRANCH1_PATCHED = chr(57504) BRANCH2 = chr(11075) TIME = chr(8986) VIRTUAL_ENV = chr(9445) TIME = chr(8986) HOURGLASS = chr(8987) CROSS = chr(10006) ESC...
true
true
f749d4cb89e4f6942565be391f84d0b760927546
25,566
py
Python
tests/data_context/test_data_context_v013.py
markovml/great_expectations
0b4b8924a0ee6aff4ffdf235f074a8681ffa1658
[ "Apache-2.0" ]
2
2022-01-28T15:51:32.000Z
2022-02-02T05:07:58.000Z
tests/data_context/test_data_context_v013.py
markovml/great_expectations
0b4b8924a0ee6aff4ffdf235f074a8681ffa1658
[ "Apache-2.0" ]
null
null
null
tests/data_context/test_data_context_v013.py
markovml/great_expectations
0b4b8924a0ee6aff4ffdf235f074a8681ffa1658
[ "Apache-2.0" ]
1
2022-03-27T06:53:38.000Z
2022-03-27T06:53:38.000Z
import datetime import os import re import pandas as pd import pytest from ruamel.yaml import YAML from great_expectations import DataContext from great_expectations.core import ExpectationSuite from great_expectations.core.batch import Batch, RuntimeBatchRequest from great_expectations.data_context import BaseDataCo...
34.878581
143
0.657397
import datetime import os import re import pandas as pd import pytest from ruamel.yaml import YAML from great_expectations import DataContext from great_expectations.core import ExpectationSuite from great_expectations.core.batch import Batch, RuntimeBatchRequest from great_expectations.data_context import BaseDataCo...
true
true
f749d6288a73ce8db0e82e1a404a5ba47358ab55
2,019
py
Python
tests/components/demo/test_stt.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
tests/components/demo/test_stt.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
87
2020-07-06T22:22:54.000Z
2022-03-31T06:01:46.000Z
tests/components/demo/test_stt.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""The tests for the demo stt component.""" import pytest from homeassistant.components import stt from homeassistant.setup import async_setup_component @pytest.fixture(autouse=True) async def setup_comp(hass): """Set up demo component.""" assert await async_setup_component(hass, stt.DOMAIN, {"stt": {"platfo...
28.842857
111
0.646855
import pytest from homeassistant.components import stt from homeassistant.setup import async_setup_component @pytest.fixture(autouse=True) async def setup_comp(hass): assert await async_setup_component(hass, stt.DOMAIN, {"stt": {"platform": "demo"}}) await hass.async_block_till_done() async def test_demo_s...
true
true
f749d688c6b91128190af19227811bbdade17d69
1,844
py
Python
edgeDetection.py
krishna1401/Digital-Image-Processing
47a4da4bef9d08708ac84174b0fcd0ced6a8b5e2
[ "MIT" ]
1
2021-11-28T12:06:11.000Z
2021-11-28T12:06:11.000Z
edgeDetection.py
krishna1401/Digital-Image-Processing
47a4da4bef9d08708ac84174b0fcd0ced6a8b5e2
[ "MIT" ]
null
null
null
edgeDetection.py
krishna1401/Digital-Image-Processing
47a4da4bef9d08708ac84174b0fcd0ced6a8b5e2
[ "MIT" ]
null
null
null
#Perform Edge Detection using Roberts Cross Gradient & Sobel Operators over an Image import cv2 import math import numpy as np def robertCrossGradient(image): #Objective: Performing Robert Cross Gradient Edge Detection over an Image #Input: Original Image #Output: Resultant Image #Robert Cross Operator # x 0 ...
27.939394
119
0.64154
import cv2 import math import numpy as np def robertCrossGradient(image): image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) resultant_image = image.copy() for i in range(0,image.shape[0]-1): for j in range(0,image.shape[1]-1): gx = image[i, j+1] - image[i+1, j] gy = image[i...
true
true
f749d6dfa11948dc44affe3c855eb319566fc91f
4,839
py
Python
backend/project/posts/forms.py
winoutt/winoutt-django
f48dfd933b3c12286f973701676eb2c2ab2bff73
[ "MIT" ]
null
null
null
backend/project/posts/forms.py
winoutt/winoutt-django
f48dfd933b3c12286f973701676eb2c2ab2bff73
[ "MIT" ]
null
null
null
backend/project/posts/forms.py
winoutt/winoutt-django
f48dfd933b3c12286f973701676eb2c2ab2bff73
[ "MIT" ]
null
null
null
# Model Imports from .models import PollVote, Poll, PollChoice, Post, post_content_types, PostContent # Util Imports from .utils import PollVoteUtil import base64 from django.core.files.base import ContentFile # Library Imports from datetime import datetime, timedelta from django.utils import timezone fr...
35.065217
86
0.620376
from .models import PollVote, Poll, PollChoice, Post, post_content_types, PostContent from .utils import PollVoteUtil import base64 from django.core.files.base import ContentFile from datetime import datetime, timedelta from django.utils import timezone from django.forms import ( Form, ModelFor...
true
true
f749d73923443c582924d7e23158a1de6672c04f
5,296
py
Python
horovod_ver/data/tokenizer.py
kyle8581/sgMLP_Implementation
f2a7936eb4aeb2e7791f80c88bcf991717d4496e
[ "Apache-2.0" ]
null
null
null
horovod_ver/data/tokenizer.py
kyle8581/sgMLP_Implementation
f2a7936eb4aeb2e7791f80c88bcf991717d4496e
[ "Apache-2.0" ]
2
2021-09-05T19:50:23.000Z
2021-09-12T12:55:19.000Z
horovod_ver/data/tokenizer.py
kyle8581/sgMLP_Implementation
f2a7936eb4aeb2e7791f80c88bcf991717d4496e
[ "Apache-2.0" ]
2
2021-08-25T07:59:17.000Z
2021-09-05T19:39:17.000Z
import torch import torch.nn as nn import torch.nn.functional as F # pretrained BPE Tokenizer from transformers import BertTokenizer """ tokenizer = Tokenizer() print(tokenizer.get_vocab_size()) print() print(tokenizer.get_vocab()) 50265 """ class Tokenizer(): def __init__(self, language, max_len...
42.031746
151
0.641239
import torch import torch.nn as nn import torch.nn.functional as F from transformers import BertTokenizer class Tokenizer(): def __init__(self, language, max_len): self.tokenizer = None if language == 'de': self.tokenizer = BertTokenizer.from_pretrained("bert-base-german-cased...
true
true
f749d7797da6096505eaca7d4630b0c6473b8380
5,160
py
Python
main.py
OpenStreetMapSpeeds/conflation
30c445f3cdfc9e6e21d00cfaeb5f12f5ffa27952
[ "MIT" ]
10
2021-04-27T22:04:20.000Z
2021-11-02T12:11:31.000Z
main.py
OpenStreetMapSpeeds/conflation
30c445f3cdfc9e6e21d00cfaeb5f12f5ffa27952
[ "MIT" ]
7
2021-05-05T15:28:17.000Z
2021-11-30T01:44:57.000Z
main.py
OpenStreetMapSpeeds/conflation
30c445f3cdfc9e6e21d00cfaeb5f12f5ffa27952
[ "MIT" ]
1
2021-05-20T10:06:36.000Z
2021-05-20T10:06:36.000Z
#!/usr/bin/env python3 import argparse import json import logging import multiprocessing import shutil import time from conflation import aggregation, util from conflation.map_matching import valhalla from conflation.trace_fetching import mapillary, mapillary_v3, auth_server def main(): arg_parser = argparse.Arg...
34.630872
120
0.638953
import argparse import json import logging import multiprocessing import shutil import time from conflation import aggregation, util from conflation.map_matching import valhalla from conflation.trace_fetching import mapillary, mapillary_v3, auth_server def main(): arg_parser = argparse.ArgumentParser() ...
true
true
f749da4527be24fbc0204abba4a87895641f2f3d
54,555
py
Python
full_code/test_apr27.py
strawberryfg/xraygan
047474b0244e530f78b28db67564304cff692f5e
[ "MIT" ]
1
2021-05-19T05:11:23.000Z
2021-05-19T05:11:23.000Z
full_code/test_apr27.py
strawberryfg/xraygan
047474b0244e530f78b28db67564304cff692f5e
[ "MIT" ]
null
null
null
full_code/test_apr27.py
strawberryfg/xraygan
047474b0244e530f78b28db67564304cff692f5e
[ "MIT" ]
null
null
null
import os os.environ['KMP_DUPLICATE_LIB_OK']='True' import math import numpy as np from scipy import linalg from os import path as osp import cv2 import random import matplotlib.pyplot as plt import pdb #0. torch imports import torch from torch.utils.data import DataLoader,Dataset from torch import optim,nn import tor...
35.061054
195
0.598277
import os os.environ['KMP_DUPLICATE_LIB_OK']='True' import math import numpy as np from scipy import linalg from os import path as osp import cv2 import random import matplotlib.pyplot as plt import pdb import torch from torch.utils.data import DataLoader,Dataset from torch import optim,nn import torchvision import t...
true
true
f749da53966492ab573e509783d9d876ecb73531
3,988
py
Python
contrib/linearize/linearize-hashes.py
cayk163/bitcoin
6696b4635ceb9b47aaa63244bff9032fa7b08354
[ "MIT" ]
2
2018-10-11T18:32:52.000Z
2021-12-07T19:51:42.000Z
contrib/linearize/linearize-hashes.py
cayk163/bitcoin
6696b4635ceb9b47aaa63244bff9032fa7b08354
[ "MIT" ]
2
2016-12-13T03:39:01.000Z
2022-02-13T19:31:45.000Z
contrib/linearize/linearize-hashes.py
cayk163/bitcoin
6696b4635ceb9b47aaa63244bff9032fa7b08354
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # linearize-hashes.py: List blocks in a linear, no-fork version of the chain. # # Copyright (c) 2013-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from __future__ impo...
28.898551
90
0.685557
from __future__ import print_function try: import http.client as httplib except ImportError: import httplib import json import struct import re import base64 import sys settings = {} e() class BitcoinRPC: def __init__(self, host, port, username, password): authpair = "%s:%s" % (username, passwo...
true
true
f749da6d3060f15c55e4e4d8f5a8cf30d5b70ba7
6,063
py
Python
src/gluonnlp/model/__init__.py
xiaotinghe/gluon-nlp
3ce9995329fb0d18787019df541d4f229d7c9ded
[ "Apache-2.0" ]
null
null
null
src/gluonnlp/model/__init__.py
xiaotinghe/gluon-nlp
3ce9995329fb0d18787019df541d4f229d7c9ded
[ "Apache-2.0" ]
null
null
null
src/gluonnlp/model/__init__.py
xiaotinghe/gluon-nlp
3ce9995329fb0d18787019df541d4f229d7c9ded
[ "Apache-2.0" ]
1
2019-02-20T09:02:30.000Z
2019-02-20T09:02:30.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...
39.37013
95
0.702787
from . import (attention_cell, bert, bilm_encoder, block, convolutional_encoder, elmo, highway, language_model, lstmpcellwithclip, parameter, sampled_block, seq2seq_encoder_decoder, sequence_sampler, train, transformer, utils) from .attenti...
true
true
f749da93bed35f15f589163f72f05fdc8951a564
812
py
Python
Seasons_Greetings/urls.py
hypnoseal/Seasons_Greetings_github
e74a834c2ffd2dcbbc381217b5eb3a86b70d2bcd
[ "MIT" ]
null
null
null
Seasons_Greetings/urls.py
hypnoseal/Seasons_Greetings_github
e74a834c2ffd2dcbbc381217b5eb3a86b70d2bcd
[ "MIT" ]
null
null
null
Seasons_Greetings/urls.py
hypnoseal/Seasons_Greetings_github
e74a834c2ffd2dcbbc381217b5eb3a86b70d2bcd
[ "MIT" ]
null
null
null
"""Seasons_Greetings URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') C...
35.304348
77
0.708128
from django.contrib import admin from django.urls import include, path urlpatterns = [ path('', include('card_tracker.urls')), path('admin/', admin.site.urls), ]
true
true
f749dc139a540f22d81e6479d50fdf0d231aac92
3,771
py
Python
bot/plugins/tools/plugins/wiki/__init__.py
WorldMoZara/Pardon-Bot-Community
541a87b0794ff6ecb57531df99b37bab44d86453
[ "MIT" ]
1
2022-01-17T00:51:15.000Z
2022-01-17T00:51:15.000Z
bot/plugins/tools/plugins/wiki/__init__.py
WorldMoZara/Pardon-Bot-Community
541a87b0794ff6ecb57531df99b37bab44d86453
[ "MIT" ]
null
null
null
bot/plugins/tools/plugins/wiki/__init__.py
WorldMoZara/Pardon-Bot-Community
541a87b0794ff6ecb57531df99b37bab44d86453
[ "MIT" ]
null
null
null
import nonebot from nonebot.adapters.cqhttp.message import Message from nonebot.matcher import Matcher from nonebot.typing import T_State from nonebot.plugin import on_command from nonebot.adapters.cqhttp import Bot, MessageEvent import userlib import os from userlib.wiki import EntryInfoBase, WikiBase from userlib....
26.370629
79
0.605145
import nonebot from nonebot.adapters.cqhttp.message import Message from nonebot.matcher import Matcher from nonebot.typing import T_State from nonebot.plugin import on_command from nonebot.adapters.cqhttp import Bot, MessageEvent import userlib import os from userlib.wiki import EntryInfoBase, WikiBase from userlib....
true
true
f749dc5b3217f72a5190c5782b872e240e8b0245
2,039
py
Python
tests/image_input.py
ivanneto02/hand_movement_prediction
ef0e3a55f23953de91c09afb81bb035df241edfc
[ "MIT" ]
null
null
null
tests/image_input.py
ivanneto02/hand_movement_prediction
ef0e3a55f23953de91c09afb81bb035df241edfc
[ "MIT" ]
null
null
null
tests/image_input.py
ivanneto02/hand_movement_prediction
ef0e3a55f23953de91c09afb81bb035df241edfc
[ "MIT" ]
null
null
null
import cv2 import mediapipe as mp import os def main(): mp_drawing = mp.solutions.drawing_utils mp_hands = mp.solutions.hands drawing_styles = mp.solutions.drawing_styles # fn = filename; Images in the img folder IMAGE_FILES = ['img/' + str(fn) for fn in next(os.walk('./img'))[2]] with mp_ha...
33.42623
104
0.5846
import cv2 import mediapipe as mp import os def main(): mp_drawing = mp.solutions.drawing_utils mp_hands = mp.solutions.hands drawing_styles = mp.solutions.drawing_styles IMAGE_FILES = ['img/' + str(fn) for fn in next(os.walk('./img'))[2]] with mp_hands.Hands( static_image_mode = T...
true
true
f749dc6fe31230fb158fd80dc1610fef86584765
1,087
py
Python
Python_Mscs/parametric_sweep/parameter_classes_tx.py
kaungsgit/Python_DSP
0a2850ab4043332b8d1f516f1e589543207639c5
[ "MIT" ]
null
null
null
Python_Mscs/parametric_sweep/parameter_classes_tx.py
kaungsgit/Python_DSP
0a2850ab4043332b8d1f516f1e589543207639c5
[ "MIT" ]
null
null
null
Python_Mscs/parametric_sweep/parameter_classes_tx.py
kaungsgit/Python_DSP
0a2850ab4043332b8d1f516f1e589543207639c5
[ "MIT" ]
null
null
null
""" @author: ksanoo @updated_at: 12/4/2020 @description: All parameters that are to be swept (specified in sweep_setup files) must have a class definition in this script. The class name must be the same as the parameter key in loop_param """ import global_vars as swp_gbl from parameter_classes import GenericParam impo...
29.378378
114
0.723091
import global_vars as swp_gbl from parameter_classes import GenericParam import device_startup from abc import abstractmethod class TestParameter13(GenericParam): def set_param(self, key=None, value=None, check_if_value_changed=True): value_changed = super().check_value_change(key, value, check_if_value...
true
true
f749dcc50bb952caffec7b203c29b4ffb03a8c92
5,170
py
Python
docs/conf.py
akey7/Herbie
b96ce71361fb9f896b9352e41514fdaeea7ca62c
[ "MIT" ]
null
null
null
docs/conf.py
akey7/Herbie
b96ce71361fb9f896b9352e41514fdaeea7ca62c
[ "MIT" ]
null
null
null
docs/conf.py
akey7/Herbie
b96ce71361fb9f896b9352e41514fdaeea7ca62c
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
29.712644
81
0.647389
import os import sys import herbie.archive ..")) import pydata_sphinx_theme from datetime import datetime utc_now = datetime.utcnow().strftime("%H:%M UTC %d %b %Y") project = "Herbie" copyright = f"{datetime.utcnow():%Y}, Brian K. Blaylock. ♻ Updated: {utc_now}" author = f"Brian K. Blaylock" rele...
true
true
f749dd3f546260f6342515835517bd245dba9a5a
2,662
py
Python
aliyun-python-sdk-rtc/aliyunsdkrtc/request/v20180111/CreateEventSubscribeRequest.py
silent-beaters/aliyun-openapi-python-sdk
7a025eabdad622af07affc3a7beeae1c5def469d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-rtc/aliyunsdkrtc/request/v20180111/CreateEventSubscribeRequest.py
silent-beaters/aliyun-openapi-python-sdk
7a025eabdad622af07affc3a7beeae1c5def469d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-rtc/aliyunsdkrtc/request/v20180111/CreateEventSubscribeRequest.py
silent-beaters/aliyun-openapi-python-sdk
7a025eabdad622af07affc3a7beeae1c5def469d
[ "Apache-2.0" ]
null
null
null
# 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...
37.492958
74
0.74305
from aliyunsdkcore.request import RpcRequest from aliyunsdkrtc.endpoint import endpoint_data class CreateEventSubscribeRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'rtc', '2018-01-11', 'CreateEventSubscribe') self.set_method('POST') if hasattr(self, "endpoint_map"): ...
true
true
f749ddc4b56b1d8bf37f8bbe82d87981a34f32c5
114
py
Python
src/kblue/nodes/exceptions.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
src/kblue/nodes/exceptions.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
src/kblue/nodes/exceptions.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- __all__ = [ 'NodeInterfaceError' ] class NodeInterfaceError(BaseException) : pass
16.285714
41
0.675439
__all__ = [ 'NodeInterfaceError' ] class NodeInterfaceError(BaseException) : pass
true
true
f749dde198e64cdcc9a0dad14a8f6e775a12ac42
137
py
Python
.history/ClassFiles/WorkingWithExternalFiles/FileHandling_20210107151915.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/WorkingWithExternalFiles/FileHandling_20210107151915.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/WorkingWithExternalFiles/FileHandling_20210107151915.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
''' Opening and Reading Files Syntax to open file. f = open("Myfile.txt) # assigned to the variable f. '''
19.571429
52
0.540146
true
true
f749de0befe9aba1f8c40bad76b9615c2c51f470
13,663
py
Python
cogs/favorites.py
paw-digital/graham_discord_bot
51027f9cbff65a4edfddacb724c5b54d0dac96af
[ "MIT" ]
null
null
null
cogs/favorites.py
paw-digital/graham_discord_bot
51027f9cbff65a4edfddacb724c5b54d0dac96af
[ "MIT" ]
null
null
null
cogs/favorites.py
paw-digital/graham_discord_bot
51027f9cbff65a4edfddacb724c5b54d0dac96af
[ "MIT" ]
null
null
null
from discord.ext import commands from discord.ext.commands import Bot, Context from models.command import CommandInfo import config from util.discord.channel import ChannelUtil from util.discord.messages import Messages from util.env import Env from db.models.favorite import Favorite from db.models.user import User fr...
42.696875
255
0.616117
from discord.ext import commands from discord.ext.commands import Bot, Context from models.command import CommandInfo import config from util.discord.channel import ChannelUtil from util.discord.messages import Messages from util.env import Env from db.models.favorite import Favorite from db.models.user import User fr...
true
true
f749de68d36a6a1e628552edef7e104b2f86e3a0
2,528
py
Python
wtfml/data_loaders/pl_data_module/data_module.py
Yongtae723/88_face
7a761cb277be2a28984161be1e7ae2b73cadf085
[ "MIT" ]
null
null
null
wtfml/data_loaders/pl_data_module/data_module.py
Yongtae723/88_face
7a761cb277be2a28984161be1e7ae2b73cadf085
[ "MIT" ]
null
null
null
wtfml/data_loaders/pl_data_module/data_module.py
Yongtae723/88_face
7a761cb277be2a28984161be1e7ae2b73cadf085
[ "MIT" ]
null
null
null
import pytorch_lightning as pl from torch.utils.data import DataLoader class plDataModule(pl.LightningDataModule): def __init__( self, train_dataset, val_dataset, test_dataset=None, num_workers=2, train_sampler=None, train_shuffle=True, train_batch_s...
32.410256
76
0.639241
import pytorch_lightning as pl from torch.utils.data import DataLoader class plDataModule(pl.LightningDataModule): def __init__( self, train_dataset, val_dataset, test_dataset=None, num_workers=2, train_sampler=None, train_shuffle=True, train_batch_s...
true
true
f749dea8ef247652b85a90acdebc68f9955ed0ee
29,036
py
Python
electrum_dash/plugin.py
bynicolas/electrum-pac
8c61fc2e14fc307f40d1cc785f2a604ab4a2be04
[ "MIT" ]
1
2021-03-19T05:25:15.000Z
2021-03-19T05:25:15.000Z
electrum_dash/plugin.py
abuhabban/electrum-dash
36a0c9596919a6d9b64e99bcd72a18674353ce43
[ "MIT" ]
null
null
null
electrum_dash/plugin.py
abuhabban/electrum-dash
36a0c9596919a6d9b64e99bcd72a18674353ce43
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # 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...
39.026882
120
0.604215
import os import pkgutil import importlib.util import time import threading import sys from typing import (NamedTuple, Any, Union, TYPE_CHECKING, Optional, Tuple, Dict, Iterable, List, Sequence, Callable, TypeVar) import concurrent from concurrent import futures from functool...
true
true