hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
4c86d36d1ca7f5676ec707c02279a0b7c737bbd9
337
py
Python
shop_thienhi/utils/format_time.py
Lesson-ThienHi/thienhi_shop
1c595d70299e1fcce12c3610e27b66c89bbadda6
[ "MIT" ]
null
null
null
shop_thienhi/utils/format_time.py
Lesson-ThienHi/thienhi_shop
1c595d70299e1fcce12c3610e27b66c89bbadda6
[ "MIT" ]
2
2022-03-30T06:34:29.000Z
2022-03-31T06:34:49.000Z
shop_thienhi/utils/format_time.py
Lesson-ThienHi/thienhi_shop
1c595d70299e1fcce12c3610e27b66c89bbadda6
[ "MIT" ]
null
null
null
from datetime import datetime def format_time_filter(): start_time = datetime.now().utcnow().replace(hour=0, minute=0, second=0, microsecond=0).timestamp() end_time = datetime.utcnow().replace(second=0, microsecond=0).timestamp() data = { "start_time": start_time, "end_time": end_time }...
30.636364
103
0.676558
44
337
5
0.454545
0.122727
0.163636
0.172727
0.254545
0
0
0
0
0
0
0.021898
0.186944
337
10
104
33.7
0.781022
0
0
0
0
0
0.053412
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4c8719fed243367528ac749c01c04b3271e74999
923
py
Python
Algorithms/PCA/solutions.py
lcbendall/numerical_computing
565cde92525ea44c55abe933c6419c1543f9800b
[ "CC-BY-3.0" ]
null
null
null
Algorithms/PCA/solutions.py
lcbendall/numerical_computing
565cde92525ea44c55abe933c6419c1543f9800b
[ "CC-BY-3.0" ]
null
null
null
Algorithms/PCA/solutions.py
lcbendall/numerical_computing
565cde92525ea44c55abe933c6419c1543f9800b
[ "CC-BY-3.0" ]
1
2020-12-08T01:19:23.000Z
2020-12-08T01:19:23.000Z
import numpy as np import matplotlib.pyplot as plt from scipy import linalg as la def PCA(dat, center=False, percentage=0.8): M, N = dat.shape if center: mu = np.mean(dat,0) dat -= mu U, L, Vh = la.svd(dat, full_matrices=False) V = Vh.T.conjugate() SIGMA = np.diag(L) X = U...
27.147059
71
0.630553
133
923
4.285714
0.488722
0.221053
0.084211
0
0
0
0
0
0
0
0
0.014286
0.241603
923
33
72
27.969697
0.8
0
0
0
0
0
0.049837
0
0
0
0
0
0
1
0.076923
false
0
0.115385
0
0.269231
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4c8a0d1bb9255782fe923e33bd79defeacecfa0f
1,298
py
Python
tests/serialization/test_deserialization/flows/flow_template.py
dazzag24/prefect
9d36c989c95cbbed091b071932553286edf25bb6
[ "Apache-2.0" ]
null
null
null
tests/serialization/test_deserialization/flows/flow_template.py
dazzag24/prefect
9d36c989c95cbbed091b071932553286edf25bb6
[ "Apache-2.0" ]
null
null
null
tests/serialization/test_deserialization/flows/flow_template.py
dazzag24/prefect
9d36c989c95cbbed091b071932553286edf25bb6
[ "Apache-2.0" ]
null
null
null
import datetime from prefect import task, Flow, Parameter from prefect.engine.cache_validators import partial_parameters_only from prefect.environments.execution import RemoteEnvironment from prefect.environments.storage import Docker from prefect.engine.result_handlers import JSONResultHandler, S3ResultHandler from p...
25.45098
86
0.75963
163
1,298
5.871166
0.484663
0.068966
0.035528
0
0
0
0
0
0
0
0
0.008764
0.120955
1,298
50
87
25.96
0.829974
0
0
0.083333
0
0
0.095532
0.028505
0
0
0
0
0
1
0.083333
false
0.083333
0.194444
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4c8a63609fc662bd88f868ef8238e6f25e44baa6
9,616
py
Python
blog/models.py
wjhgg/DBlog
59274ac4353068a3795731c3f786748ba9095701
[ "MulanPSL-1.0" ]
null
null
null
blog/models.py
wjhgg/DBlog
59274ac4353068a3795731c3f786748ba9095701
[ "MulanPSL-1.0" ]
null
null
null
blog/models.py
wjhgg/DBlog
59274ac4353068a3795731c3f786748ba9095701
[ "MulanPSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from django.contrib.auth.models import AbstractUser from django.db import models from django.conf import settings # Create your models here. # 用户 # class User(AbstractUser): # u_name = models.CharField(max_length=20, verbose_name='昵称', default='') # birthday = models.DateFie...
32.819113
155
0.683444
1,196
9,616
5.266722
0.225753
0.118749
0.054294
0.072392
0.428639
0.381489
0.310367
0.232259
0.162565
0.162565
0
0.015577
0.185524
9,616
292
156
32.931507
0.787921
0.131344
0
0.296296
0
0
0.082142
0
0
0
0
0
0
1
0.148148
false
0
0.049383
0.049383
0.62963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4c8dcae1615bebff8006d7fba1a12425b310ad35
477
py
Python
engines/factory.py
valeoai/BEEF
f1c5f3708ba91f6402dd05814b76dca1d9012942
[ "Apache-2.0" ]
4
2021-05-31T16:53:35.000Z
2021-11-30T03:03:34.000Z
engines/factory.py
valeoai/BEEF
f1c5f3708ba91f6402dd05814b76dca1d9012942
[ "Apache-2.0" ]
3
2022-02-02T20:41:56.000Z
2022-02-24T11:47:44.000Z
engines/factory.py
valeoai/BEEF
f1c5f3708ba91f6402dd05814b76dca1d9012942
[ "Apache-2.0" ]
null
null
null
from bootstrap.lib.options import Options from bootstrap.lib.logger import Logger from .extract_engine import ExtractEngine from .predict_engine import PredictEngine def factory(): if Options()['engine']['name'] == 'extract': engine = ExtractEngine() elif Options()['engine']['name'] == 'predict...
34.071429
63
0.660377
53
477
5.867925
0.471698
0.125402
0.102894
0
0
0
0
0
0
0
0
0
0.213836
477
14
64
34.071429
0.829333
0
0
0
0
0
0.098925
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4c9417844003b03d92633f2f16b78fb62fd56a2d
1,996
py
Python
appreview/migrations/0001_initial.py
IsaiahKe/awward-mimic
8a5ff40d9acfbdc5323c7e9b6b8e7438f9a85d21
[ "MIT" ]
null
null
null
appreview/migrations/0001_initial.py
IsaiahKe/awward-mimic
8a5ff40d9acfbdc5323c7e9b6b8e7438f9a85d21
[ "MIT" ]
null
null
null
appreview/migrations/0001_initial.py
IsaiahKe/awward-mimic
8a5ff40d9acfbdc5323c7e9b6b8e7438f9a85d21
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-22 09:28 import cloudinary.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion import phonenumber_field.modelfields class Migration(migrations.Migration): initial = True dependencies = [ migrations....
44.355556
136
0.627255
215
1,996
5.683721
0.404651
0.04419
0.081833
0.101473
0.434534
0.39198
0.39198
0.39198
0.39198
0.295417
0
0.030283
0.238978
1,996
44
137
45.363636
0.774194
0.022545
0
0.27027
1
0
0.063109
0
0
0
0
0
0
1
0
false
0
0.135135
0
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ca69d037973302f62772df73b1764080320eb80
1,066
py
Python
ahye/lib.py
kopf/ahye
75ab5f3f901feb85a7779365f42e86f76d68083f
[ "Apache-2.0" ]
2
2015-03-29T10:21:36.000Z
2015-11-14T15:36:42.000Z
ahye/lib.py
kopf/ahye
75ab5f3f901feb85a7779365f42e86f76d68083f
[ "Apache-2.0" ]
null
null
null
ahye/lib.py
kopf/ahye
75ab5f3f901feb85a7779365f42e86f76d68083f
[ "Apache-2.0" ]
null
null
null
import magic import os import random import string from ahye.settings import LOCAL_UPLOADS_DIR def generate_filename(image_data, detect_extension=True): alphanum = string.ascii_letters + string.digits retval = '' while not retval or os.path.exists(os.path.join(LOCAL_UPLOADS_DIR, retval)): retval...
25.380952
81
0.616323
139
1,066
4.589928
0.395683
0.039185
0.068966
0.065831
0.07837
0
0
0
0
0
0
0.001277
0.265478
1,066
41
82
26
0.813538
0.032833
0
0.257143
1
0
0.065494
0
0
0
0
0
0
1
0.085714
false
0
0.142857
0
0.485714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ca9ec6965d0d2705091310ae77f83d79c68ebb5
2,595
py
Python
nn_interpretability/interpretation/deconv/deconv_partial_reconstruction.py
miquelmn/nn_interpretability
2b5d2b4102016189743e09f1f3a56f2ecddfde98
[ "MIT" ]
41
2020-10-13T18:46:32.000Z
2022-02-21T15:52:50.000Z
nn_interpretability/interpretation/deconv/deconv_partial_reconstruction.py
miquelmn/nn_interpretability
2b5d2b4102016189743e09f1f3a56f2ecddfde98
[ "MIT" ]
4
2021-07-11T12:38:03.000Z
2022-03-08T14:47:38.000Z
nn_interpretability/interpretation/deconv/deconv_partial_reconstruction.py
miquelmn/nn_interpretability
2b5d2b4102016189743e09f1f3a56f2ecddfde98
[ "MIT" ]
7
2020-10-21T13:03:16.000Z
2022-03-07T11:45:00.000Z
import torch import torch.nn as nn from torch.nn import Module from torchvision import transforms from nn_interpretability.interpretation.deconv.deconv_base import DeconvolutionBase class DeconvolutionPartialReconstruction(DeconvolutionBase): """ Partial Input Reconstruction Deconvolution is a decision-based...
43.25
138
0.660886
336
2,595
4.958333
0.375
0.052821
0.038415
0.036014
0.123649
0.07563
0.039616
0.039616
0
0
0
0.0052
0.25896
2,595
59
139
43.983051
0.861154
0.27553
0
0
0
0
0.032851
0
0
0
0
0
0
1
0.057143
false
0.057143
0.142857
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4cb24a662344c757d394dd28aa505276b9b46ee7
971
py
Python
saleor/graphql/account/dataloaders.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/graphql/account/dataloaders.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/graphql/account/dataloaders.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
from collections import defaultdict from ...account.models import Address, CustomerEvent, User from ..core.dataloaders import DataLoader class AddressByIdLoader(DataLoader): context_key = "address_by_id" def batch_load(self, keys): address_map = Address.objects.in_bulk(keys) return [address_...
30.34375
72
0.725026
132
971
5.045455
0.287879
0.054054
0.048048
0.072072
0.264264
0.165165
0.165165
0.093093
0.093093
0.093093
0
0
0.189495
971
31
73
31.322581
0.846252
0
0
0.142857
0
0
0.047374
0.023687
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4cb35be46e8b753fc4c3da524508ad7692d3c234
319
py
Python
numba/__init__.py
teoliphant/numba
a2a05737b306853c86c61ef6620c2cc43cb28c18
[ "BSD-2-Clause" ]
3
2015-08-28T21:13:58.000Z
2022-01-21T17:02:14.000Z
numba/__init__.py
teoliphant/numba
a2a05737b306853c86c61ef6620c2cc43cb28c18
[ "BSD-2-Clause" ]
null
null
null
numba/__init__.py
teoliphant/numba
a2a05737b306853c86c61ef6620c2cc43cb28c18
[ "BSD-2-Clause" ]
null
null
null
import sys try: from . import minivect except ImportError: print >>sys.stderr, "Did you forget to update submodule minivect?" print >>sys.stderr, "Run 'git submodule init' followed by 'git submodule update'" raise from . import _numba_types from ._numba_types import * __all__ = _numba_types.__all__
22.785714
85
0.733542
43
319
5.116279
0.55814
0.136364
0.127273
0
0
0
0
0
0
0
0
0
0.188088
319
13
86
24.538462
0.849421
0
0
0
0
0
0.322884
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4cc2cc43040196bd3c73760172314b2b65f1c12f
602
py
Python
project/server/main/views.py
jkassel/cerebro
387cdde4e5b95ca30b14d05526bc6357e5cfd418
[ "MIT" ]
null
null
null
project/server/main/views.py
jkassel/cerebro
387cdde4e5b95ca30b14d05526bc6357e5cfd418
[ "MIT" ]
null
null
null
project/server/main/views.py
jkassel/cerebro
387cdde4e5b95ca30b14d05526bc6357e5cfd418
[ "MIT" ]
null
null
null
# project/server/main/views.py import os ################# #### imports #### ################# from flask import render_template, Blueprint from project.server import app ################ #### config #### ################ main_blueprint = Blueprint('main', __name__,) ################ #### routes #### ###########...
17.705882
61
0.566445
62
602
5.306452
0.451613
0.12766
0.109422
0.145897
0
0
0
0
0
0
0
0
0.126246
602
33
62
18.242424
0.625475
0.141196
0
0
0
0
0.135204
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0.090909
0.636364
0.363636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4cc9907c3e6982c53be1c37022a333762d1c73f3
473
py
Python
users/migrations/0010_auto_20200321_1902.py
jakubzadrozny/hackcrisis
4fe27423cda013bf01d5e9d3fc734c707f06b708
[ "MIT" ]
null
null
null
users/migrations/0010_auto_20200321_1902.py
jakubzadrozny/hackcrisis
4fe27423cda013bf01d5e9d3fc734c707f06b708
[ "MIT" ]
4
2021-03-19T01:03:55.000Z
2021-06-10T18:44:03.000Z
users/migrations/0010_auto_20200321_1902.py
jakubzadrozny/hackcrisis
4fe27423cda013bf01d5e9d3fc734c707f06b708
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-21 19:02 from django.db import migrations import phonenumber_field.modelfields class Migration(migrations.Migration): dependencies = [ ('users', '0009_auto_20200321_1438'), ] operations = [ migrations.AlterField( model_name='customuser'...
23.65
107
0.655391
51
473
5.941176
0.803922
0.105611
0.178218
0
0
0
0
0
0
0
0
0.094708
0.241015
473
19
108
24.894737
0.749304
0.095137
0
0
1
0
0.100939
0.053991
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4cd0870f8e1c2e5c492adaf82b4a9329b5b17f1d
5,925
py
Python
zplane.py
m1ch/pysim
58b806d55585d785156813afa572741bfca6e3f1
[ "MIT" ]
null
null
null
zplane.py
m1ch/pysim
58b806d55585d785156813afa572741bfca6e3f1
[ "MIT" ]
null
null
null
zplane.py
m1ch/pysim
58b806d55585d785156813afa572741bfca6e3f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Combination of http://scipy-central.org/item/52/1/zplane-function and http://www.dsprelated.com/showcode/244.php with my own modifications """ # Copyright (c) 2011 Christopher Felton # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Le...
32.377049
90
0.585485
825
5,925
4.18303
0.373333
0.013909
0.022602
0.024341
0.220226
0.220226
0.193567
0.173863
0.128658
0.103159
0
0.029886
0.277131
5,925
183
91
32.377049
0.775858
0.30346
0
0.33
0
0
0.077749
0
0
0
0
0.016393
0
1
0.01
false
0.01
0.08
0
0.09
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4cdd1fd0a18fed3da4d3c58601225a03c0e5fbd6
1,571
py
Python
test.py
ThomDietrich/singletonify-python
11cc56237095544c61c4d45bb61f1a7824da19dc
[ "MIT" ]
3
2018-10-08T07:01:15.000Z
2019-12-12T03:48:53.000Z
test.py
ThomDietrich/singletonify-python
11cc56237095544c61c4d45bb61f1a7824da19dc
[ "MIT" ]
1
2021-05-19T00:04:48.000Z
2021-06-01T17:11:05.000Z
test.py
ThomDietrich/singletonify-python
11cc56237095544c61c4d45bb61f1a7824da19dc
[ "MIT" ]
1
2021-06-01T16:35:57.000Z
2021-06-01T16:35:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com> # ---------- # # ---------- from pytest import raises from singletonify import singleton def test_base(): @singleton() class A: pass assert not A._is_init() assert A() is A() assert A...
16.536842
74
0.54233
202
1,571
4.044554
0.267327
0.188494
0.077111
0.0612
0.348837
0.270502
0.133415
0.133415
0.133415
0
0
0.00838
0.316359
1,571
94
75
16.712766
0.752328
0.085296
0
0.606061
0
0
0.042687
0
0
0
0
0
0.257576
1
0.136364
false
0.166667
0.030303
0
0.378788
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4cdde0fb0db22226b5857fab163db859a979f97e
7,440
py
Python
sf2_to_dex.py
rupa/sf2_to_dex
d7e074b0332d668385b4a955e3509dd4fbe0f55c
[ "MIT" ]
null
null
null
sf2_to_dex.py
rupa/sf2_to_dex
d7e074b0332d668385b4a955e3509dd4fbe0f55c
[ "MIT" ]
null
null
null
sf2_to_dex.py
rupa/sf2_to_dex
d7e074b0332d668385b4a955e3509dd4fbe0f55c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ cleanup and refactor -> pretty much a rewrite soundfonts are messy, you gotta kind of figure out where the note names and velocities are in sample name. usually the pitch info is wack """ from chunk import Chunk import logging import os import re import struct import wave logging.basicConfi...
30.617284
86
0.510618
909
7,440
4
0.264026
0.054455
0.093784
0.022002
0.219197
0.188944
0.179043
0.162541
0.129263
0.072607
0
0.050966
0.345968
7,440
242
87
30.743802
0.69626
0.065323
0
0.213836
0
0
0.033405
0.005002
0
0
0.031797
0
0
0
null
null
0.006289
0.044025
null
null
0.006289
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4cdfad127953dd829561e4a0404e4a6449e304d9
4,126
py
Python
src/slack.py
planetrics/aws-iam-key-rotator
890c28d80e062dfc569e6577bc48fac23dc0b1a0
[ "MIT" ]
null
null
null
src/slack.py
planetrics/aws-iam-key-rotator
890c28d80e062dfc569e6577bc48fac23dc0b1a0
[ "MIT" ]
null
null
null
src/slack.py
planetrics/aws-iam-key-rotator
890c28d80e062dfc569e6577bc48fac23dc0b1a0
[ "MIT" ]
null
null
null
import os import json import logging import requests logger = logging.getLogger('slack') logger.setLevel(logging.INFO) def notify(url, account, userName, existingAccessKey, accessKey=None, secretKey=None, instruction=None, deleteAfterDays=None): if accessKey is not None: # New key pair generated l...
36.513274
189
0.335676
264
4,126
5.238636
0.299242
0.086768
0.121475
0.054953
0.397686
0.397686
0.303688
0.303688
0.303688
0.303688
0
0.001583
0.540717
4,126
112
190
36.839286
0.728232
0.011149
0
0.35514
0
0.009346
0.223939
0
0
0
0
0
0
1
0.009346
false
0
0.037383
0
0.046729
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ce10c58d708a32523b675746af1ff74ba6e03e0
895
py
Python
easy-todo-backend/module/user/handler.py
hubenchang0515/EasyTodo
b3cde21090f76401c0649a760b152ebbdd1d4fbe
[ "MIT" ]
null
null
null
easy-todo-backend/module/user/handler.py
hubenchang0515/EasyTodo
b3cde21090f76401c0649a760b152ebbdd1d4fbe
[ "MIT" ]
null
null
null
easy-todo-backend/module/user/handler.py
hubenchang0515/EasyTodo
b3cde21090f76401c0649a760b152ebbdd1d4fbe
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify from ..common import app, db, getJson from .model import User from .method import * @app.route("/api/user/register", methods=["POST"]) def register(): json = getJson() username = json['username'] password = json['password'] userId = addUser(username, password) ...
33.148148
100
0.634637
101
895
5.623762
0.386139
0.112676
0.133803
0.052817
0.489437
0.489437
0.359155
0.359155
0
0
0
0.001381
0.191061
895
26
101
34.423077
0.783149
0
0
0.347826
0
0
0.209172
0
0
0
0
0
0
1
0.086957
false
0.173913
0.173913
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4ce1e5e3825fda71c1d79c7d91358a7fb5966bfa
4,326
py
Python
contrib/bin_wrapper.py
brikkho-net/windmill
994bd992b17f3f2d6f6b276fe17391fea08f32c3
[ "Apache-2.0" ]
61
2015-03-16T18:36:06.000Z
2021-12-02T10:08:17.000Z
contrib/bin_wrapper.py
admc/windmill
4304ee7258eb0c2814f215d8ce90abf02b1f737f
[ "Apache-2.0" ]
8
2015-03-10T10:01:26.000Z
2020-05-18T10:51:24.000Z
contrib/bin_wrapper.py
admc/windmill
4304ee7258eb0c2814f215d8ce90abf02b1f737f
[ "Apache-2.0" ]
14
2015-01-29T16:28:33.000Z
2021-09-04T11:19:48.000Z
# ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozilla.org/MPL/ # # Softwa...
34.608
101
0.676144
615
4,326
4.697561
0.360976
0.016615
0.017307
0.019038
0.155071
0.062998
0.046383
0.046383
0.046383
0.046383
0
0.016611
0.234628
4,326
125
102
34.608
0.855935
0.395747
0
0.15625
0
0
0.036441
0
0
0
0
0
0
0
null
null
0.015625
0.21875
null
null
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4ce456f58b59cb287e63e3fc893ff6046bbcd1b1
474
py
Python
backpack/extensions/secondorder/diag_ggn/conv1d.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
395
2019-10-04T09:37:52.000Z
2022-03-29T18:00:56.000Z
backpack/extensions/secondorder/diag_ggn/conv1d.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
78
2019-10-11T18:56:43.000Z
2022-03-23T01:49:54.000Z
backpack/extensions/secondorder/diag_ggn/conv1d.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
50
2019-10-03T16:31:10.000Z
2022-03-15T19:36:14.000Z
from backpack.core.derivatives.conv1d import Conv1DDerivatives from backpack.extensions.secondorder.diag_ggn.convnd import ( BatchDiagGGNConvND, DiagGGNConvND, ) class DiagGGNConv1d(DiagGGNConvND): def __init__(self): super().__init__(derivatives=Conv1DDerivatives(), params=["bias", "weight"]) c...
29.625
84
0.751055
43
474
7.883721
0.55814
0.070796
0.064897
0.094395
0.377581
0.377581
0.377581
0.377581
0.377581
0.377581
0
0.014528
0.128692
474
15
85
31.6
0.806295
0
0
0.363636
0
0
0.042194
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4ce462d62058170799793cdc170a8f43baf76ca6
1,088
py
Python
api/scripts/test/test_generate_promoter_terminator.py
IsaacLuo/webexe
aec0582b8669f7e941b8a14df1a9154993470f05
[ "MIT" ]
null
null
null
api/scripts/test/test_generate_promoter_terminator.py
IsaacLuo/webexe
aec0582b8669f7e941b8a14df1a9154993470f05
[ "MIT" ]
6
2021-03-02T00:34:35.000Z
2022-03-24T14:26:50.000Z
api/scripts/test/test_generate_promoter_terminator.py
IsaacLuo/webexe
aec0582b8669f7e941b8a14df1a9154993470f05
[ "MIT" ]
null
null
null
import subprocess import pytest import os import json def test_call_generate_promoter_terminator(): print('') process_result = subprocess.run(['python', 'generate_promoter_terminator.py', './test/1.gff.json', '500', '200'], \ capture_output=True) assert process_result.returncode == 0 ...
32.969697
142
0.662684
148
1,088
4.689189
0.445946
0.040346
0.043228
0.034582
0.106628
0.069164
0
0
0
0
0
0.01236
0.181985
1,088
32
143
34
0.767416
0.024816
0
0
1
0
0.166195
0.029273
0
0
0
0
0.26087
1
0.043478
false
0
0.173913
0
0.217391
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4cebc8d8c5709c45d465740aef28dc7747b5c871
4,234
py
Python
tables.py
sadaszewski/scimd
3f8cad382e4891cd710c8e4e9c48aa4d56130040
[ "BSD-2-Clause" ]
null
null
null
tables.py
sadaszewski/scimd
3f8cad382e4891cd710c8e4e9c48aa4d56130040
[ "BSD-2-Clause" ]
null
null
null
tables.py
sadaszewski/scimd
3f8cad382e4891cd710c8e4e9c48aa4d56130040
[ "BSD-2-Clause" ]
null
null
null
# # Copyright (C) 2015, Stanislaw Adaszewski # s.adaszewski@gmail.com # http://algoholic.eu # # License: 2-clause BSD # from markdown import Extension from markdown.blockprocessors import BlockProcessor from markdown.util import etree import numpy as np from collections import defaultdict import numpy.core.defchararr...
39.570093
102
0.467879
538
4,234
3.680297
0.232342
0.015152
0.015152
0.010606
0.107071
0.056566
0.035354
0
0
0
0
0.024687
0.358999
4,234
106
103
39.943396
0.704864
0.151157
0
0.027027
0
0
0.017937
0
0
0
0
0
0.013514
0
null
null
0
0.081081
null
null
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4cec6669f8861c5d6808c43e630416fb7bc66a24
1,538
py
Python
agronet_be/AgronetApp/views/orderDetailView.py
lauraC4MP0/Prueba-github
291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f
[ "MIT" ]
1
2021-10-06T00:39:08.000Z
2021-10-06T00:39:08.000Z
agronet_be/AgronetApp/views/orderDetailView.py
lauraC4MP0/Prueba-github
291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f
[ "MIT" ]
null
null
null
agronet_be/AgronetApp/views/orderDetailView.py
lauraC4MP0/Prueba-github
291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f
[ "MIT" ]
1
2021-10-03T13:39:31.000Z
2021-10-03T13:39:31.000Z
from django.conf import settings from django.db.models.query import QuerySet from rest_framework import views from rest_framework.response import Response from AgronetApp.serializers import orderDetailSerializer from AgronetApp.serializers.orderDetailSerializer import OrderDetailSerializer from AgronetApp.models.orderD...
42.722222
117
0.751625
150
1,538
7.58
0.386667
0.03518
0.074758
0.060686
0.123131
0.123131
0.123131
0.123131
0
0
0
0.00236
0.173602
1,538
35
118
43.942857
0.892211
0.429129
0
0.25
0
0
0
0
0
0
0
0
0
1
0
false
0
0.625
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4ced33f2e305fc01ed18bf724293146d776b1f32
1,012
py
Python
predict.py
kadn/carla-imitation
874030f4f4d726f80e739721fb704489672da9b0
[ "MIT" ]
null
null
null
predict.py
kadn/carla-imitation
874030f4f4d726f80e739721fb704489672da9b0
[ "MIT" ]
null
null
null
predict.py
kadn/carla-imitation
874030f4f4d726f80e739721fb704489672da9b0
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from network import make_network from data_provider import DataProvider from tensorflow.core.protobuf import saver_pb2 import time import os from IPython import embed with tf.Session(config=tf.ConfigProto(log_device_placement=True)) as sess: network = make_network() ...
29.764706
74
0.677866
138
1,012
4.804348
0.521739
0.036199
0
0
0
0
0
0
0
0
0
0.019827
0.202569
1,012
33
75
30.666667
0.801735
0
0
0
0
0
0.083992
0.021739
0
0
0
0
0
1
0
false
0
0.32
0
0.32
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4cee63421a6a0026a74361c99866ca8a1654719f
494
py
Python
App0/migrations/0019_auto_20210118_0317.py
LTSana/lost-empire
495397345f1226b025434e37c5e1703273f475a8
[ "CC0-1.0" ]
null
null
null
App0/migrations/0019_auto_20210118_0317.py
LTSana/lost-empire
495397345f1226b025434e37c5e1703273f475a8
[ "CC0-1.0" ]
null
null
null
App0/migrations/0019_auto_20210118_0317.py
LTSana/lost-empire
495397345f1226b025434e37c5e1703273f475a8
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-18 01:17 from django.db import migrations, models import gdstorage.storage class Migration(migrations.Migration): dependencies = [ ('App0', '0018_auto_20210117_1820'), ] operations = [ migrations.AlterField( model_name='products', ...
24.7
133
0.645749
55
494
5.690909
0.763636
0.102236
0
0
0
0
0
0
0
0
0
0.087302
0.234818
494
19
134
26
0.740741
0.091093
0
0
1
0
0.120805
0.051454
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4cf793269fc1e46f707bfa6b409a7afeda8934b0
606
py
Python
neighbor/models.py
ShaviyaVictor/nyumbakumi-
933d825844da139998867594c1e21b09ba5c8e63
[ "MIT" ]
null
null
null
neighbor/models.py
ShaviyaVictor/nyumbakumi-
933d825844da139998867594c1e21b09ba5c8e63
[ "MIT" ]
null
null
null
neighbor/models.py
ShaviyaVictor/nyumbakumi-
933d825844da139998867594c1e21b09ba5c8e63
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import User # Create your models here. class Neighbor(models.Model) : n_name = models.CharField(max_length=35) n_location = models.CharField(max_length=35) n_image = models.ImageField(upload_to='n_posts/') n_title...
26.347826
62
0.759076
88
606
4.988636
0.545455
0.068337
0.123007
0.164009
0.123007
0.123007
0
0
0
0
0
0.013436
0.140264
606
23
63
26.347826
0.829175
0.039604
0
0
0
0
0.036145
0
0
0
0
0
0
1
0.066667
false
0
0.2
0.066667
0.933333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9806a9bda8cab4a2b412b1e85490eb2a071b19ed
888
py
Python
moviecritic/models.py
mdameenh/elysia
ff173f036d13c179191a75c3d54e47314435bc28
[ "BSD-3-Clause" ]
null
null
null
moviecritic/models.py
mdameenh/elysia
ff173f036d13c179191a75c3d54e47314435bc28
[ "BSD-3-Clause" ]
3
2020-02-11T23:32:55.000Z
2021-06-10T19:02:19.000Z
moviecritic/models.py
mdameenh/elysia
ff173f036d13c179191a75c3d54e47314435bc28
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.contrib.postgres.fields import ArrayField # Create your models here. class Movie_Details(models.Model): name = models.CharField(max_length=100) year = models.IntegerField(default=0) boxoffice = models.BigIntegerField(default=0) imdb = models.IntegerField(de...
42.285714
81
0.734234
113
888
5.672566
0.380531
0.140406
0.168487
0.224649
0.413417
0.413417
0.413417
0.413417
0.413417
0.413417
0
0.037284
0.154279
888
21
82
42.285714
0.816245
0.027027
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.125
0.0625
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9806d568292fc34f46e2f6473bf682841aa7e86b
399
py
Python
djangular/tests/utils.py
jianglb-alibaba/djangular-0.2.7
d1e2d188cf4ab8ae757bd9bc3069ffef8f0fc753
[ "Apache-2.0" ]
145
2015-01-01T12:09:30.000Z
2022-01-28T13:59:50.000Z
djangular/tests/utils.py
jianglb-alibaba/djangular-0.2.7
d1e2d188cf4ab8ae757bd9bc3069ffef8f0fc753
[ "Apache-2.0" ]
25
2015-01-07T11:42:21.000Z
2016-12-14T19:23:45.000Z
djangular/tests/utils.py
jianglb-alibaba/djangular-0.2.7
d1e2d188cf4ab8ae757bd9bc3069ffef8f0fc753
[ "Apache-2.0" ]
40
2015-02-07T13:23:09.000Z
2022-01-28T13:59:53.000Z
import os from djangular import utils from django.test import SimpleTestCase class SiteAndPathUtilsTest(SimpleTestCase): site_utils = utils.SiteAndPathUtils() def test_djangular_root(self): current_dir = os.path.dirname(os.path.abspath(__file__)) djangular_dir = os.path.dirname(current_dir)...
26.6
77
0.761905
49
399
5.918367
0.469388
0.062069
0.062069
0.110345
0
0
0
0
0
0
0
0
0.155388
399
14
78
28.5
0.860534
0
0
0
0
0
0
0
0
0
0
0
0.111111
1
0.111111
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
98070a04422061ac22173ccd227116ef553e0ba2
1,790
py
Python
src/wee/urls.py
dipkakwani/wee_app
a0f15053ec64a49611d759eaae6d780d608bea46
[ "MIT" ]
2
2016-11-18T18:43:10.000Z
2018-10-17T18:31:52.000Z
src/wee/urls.py
dipkakwani/wee_app
a0f15053ec64a49611d759eaae6d780d608bea46
[ "MIT" ]
null
null
null
src/wee/urls.py
dipkakwani/wee_app
a0f15053ec64a49611d759eaae6d780d608bea46
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf.urls.static import static from userModule.views import home from userModule.views import userSettings from userModule.views import logout from groupModule.views import createGroup from groupModule.views import group fr...
37.291667
83
0.663128
229
1,790
5.161572
0.257642
0.081218
0.040609
0.087986
0.098985
0.098985
0
0
0
0
0
0
0.12514
1,790
47
84
38.085106
0.754789
0.050279
0
0
0
0
0.260024
0.20342
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
981358a60d12ba10bedc463e2907dbad81cfa191
1,683
py
Python
epuap_watchdog/institutions/serializers.py
ad-m/epuap-watchdog
ff2dbbfe6c999e825dbf3f2bf2a94d8baa0a08ea
[ "MIT" ]
2
2017-07-30T16:41:41.000Z
2020-03-28T12:20:56.000Z
epuap_watchdog/institutions/serializers.py
ad-m/epuap-watchdog
ff2dbbfe6c999e825dbf3f2bf2a94d8baa0a08ea
[ "MIT" ]
5
2017-07-18T12:13:46.000Z
2017-07-28T15:48:38.000Z
epuap_watchdog/institutions/serializers.py
ad-m/epuap-watchdog
ff2dbbfe6c999e825dbf3f2bf2a94d8baa0a08ea
[ "MIT" ]
null
null
null
from rest_framework import serializers from teryt_tree.rest_framework_ext.serializers import JednostkaAdministracyjnaSerializer from .models import RESP, REGONError, REGON, JSTConnection, Institution, ESP class RESPSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = RESP field...
32.365385
107
0.69697
147
1,683
7.863946
0.265306
0.192042
0.072664
0.119377
0.305363
0.134948
0.103806
0
0
0
0
0
0.184195
1,683
51
108
33
0.841952
0.024955
0
0.181818
0
0
0.172666
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.606061
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9813904cd1f0fe02015ac63d50232c8db9af77e9
21,950
py
Python
ross/fluid_flow/fluid_flow_coefficients.py
hiagopinacio/ross
1bc84061f23df455d9e37cb11b244ac795c836ad
[ "MIT" ]
1
2020-01-21T02:05:21.000Z
2020-01-21T02:05:21.000Z
ross/fluid_flow/fluid_flow_coefficients.py
hiagopinacio/ross
1bc84061f23df455d9e37cb11b244ac795c836ad
[ "MIT" ]
null
null
null
ross/fluid_flow/fluid_flow_coefficients.py
hiagopinacio/ross
1bc84061f23df455d9e37cb11b244ac795c836ad
[ "MIT" ]
1
2020-01-20T23:19:24.000Z
2020-01-20T23:19:24.000Z
import warnings from math import isnan import numpy as np from scipy import integrate from ross.fluid_flow.fluid_flow_geometry import move_rotor_center def calculate_oil_film_force(fluid_flow_object, force_type=None): """This function calculates the forces of the oil film in the N and T directions, ie in the ...
39.266547
113
0.579954
2,718
21,950
4.374172
0.104489
0.155185
0.218269
0.093111
0.679872
0.618471
0.548827
0.50593
0.455379
0.415931
0
0.018241
0.325649
21,950
558
114
39.336918
0.784961
0.186241
0
0.341176
0
0
0.040606
0
0
0
0
0
0
1
0.011765
false
0
0.011765
0
0.035294
0.094118
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
981440fe7da5408c2f393c5c158c741ef85a08d1
486
py
Python
dashboard/admin.py
AliBigdeli/Django-Metric-Monitoring-App
a251dc9c4eab26561029437ad437f43bffc479f7
[ "MIT" ]
null
null
null
dashboard/admin.py
AliBigdeli/Django-Metric-Monitoring-App
a251dc9c4eab26561029437ad437f43bffc479f7
[ "MIT" ]
null
null
null
dashboard/admin.py
AliBigdeli/Django-Metric-Monitoring-App
a251dc9c4eab26561029437ad437f43bffc479f7
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Device,Metric class DeviceAdmin(admin.ModelAdmin): list_display = ["name", "token","user", "created_date"] search_fields = ["name", "token"] list_filter = ("user",) class MetricAdmin(admin.ModelAdmin): list_display = ["device","temperature", "humid...
28.588235
71
0.709877
55
486
6.127273
0.472727
0.094955
0.11276
0.154303
0
0
0
0
0
0
0
0
0.13786
486
16
72
30.375
0.804296
0
0
0
0
0
0.179012
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9818a800cb69cee7cd1d2943f67320ac45add3c8
956
py
Python
core/tests/test_views.py
honno/ascii-forever
8364219db115229fa9eb0b059e9c0611dcb689cf
[ "MIT" ]
null
null
null
core/tests/test_views.py
honno/ascii-forever
8364219db115229fa9eb0b059e9c0611dcb689cf
[ "MIT" ]
null
null
null
core/tests/test_views.py
honno/ascii-forever
8364219db115229fa9eb0b059e9c0611dcb689cf
[ "MIT" ]
null
null
null
from django.urls import reverse from pytest import mark from core.models import * urls = [reverse(name) for name in ["core:index", "core:arts"]] @mark.parametrize("url", urls) @mark.django_db def test_nsfw_filter(url, django_user_model, client): target = django_user_model.objects.create(username="bob", password...
25.837838
82
0.694561
134
956
4.873134
0.410448
0.061256
0.104135
0.128637
0.294028
0.294028
0.183767
0.183767
0.183767
0.183767
0
0.002503
0.164226
956
36
83
26.555556
0.814768
0
0
0.173913
0
0
0.073222
0
0
0
0
0
0.173913
1
0.043478
false
0.086957
0.130435
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e21afb57aa8ccce52815f0ad4d4f545a41684adb
512
py
Python
native/java/lang/double.py
wonderyue/TinyJVM
5559730ab2aad35963fce977fb9b3ea78eb9a8e2
[ "MIT" ]
null
null
null
native/java/lang/double.py
wonderyue/TinyJVM
5559730ab2aad35963fce977fb9b3ea78eb9a8e2
[ "MIT" ]
null
null
null
native/java/lang/double.py
wonderyue/TinyJVM
5559730ab2aad35963fce977fb9b3ea78eb9a8e2
[ "MIT" ]
null
null
null
import struct def double_to_raw_long_bits(frame): """ public static native long doubleToRawLongBits(double value); """ value = frame.get_local_double(0) b = struct.pack("d", value) i = struct.unpack("l", b)[0] frame.push_operand_long(i) def long_bits_to_double(frame): """ public ...
23.272727
64
0.65625
73
512
4.39726
0.356164
0.074766
0.105919
0.143302
0.11215
0
0
0
0
0
0
0.009852
0.207031
512
21
65
24.380952
0.780788
0.228516
0
0
0
0
0.010989
0
0
0
0
0.047619
0
1
0.181818
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e21eb67206281500e398b6199cc031ce513a61af
1,713
py
Python
tests/types/test_boolean.py
arthurazs/py61850
ba9c5f40ef21bfecd14a8d380e9ff512da9ba5bf
[ "MIT" ]
3
2020-09-21T02:13:58.000Z
2021-09-18T02:32:56.000Z
tests/types/test_boolean.py
arthurazs/py61850
ba9c5f40ef21bfecd14a8d380e9ff512da9ba5bf
[ "MIT" ]
null
null
null
tests/types/test_boolean.py
arthurazs/py61850
ba9c5f40ef21bfecd14a8d380e9ff512da9ba5bf
[ "MIT" ]
2
2020-12-29T15:09:50.000Z
2022-01-04T16:19:48.000Z
from pytest import fixture, raises from py61850.types import Boolean @fixture def true(): return Boolean(True) # === DECODE === def test_byte_true_min_raw_value(): assert Boolean(b'\x01').raw_value == b'\x01' def test_byte_true_min_value(): assert Boolean(b'\x01').value is True def test_byte_true_...
15.861111
51
0.664332
251
1,713
4.298805
0.171315
0.136237
0.116775
0.105653
0.296571
0.040779
0
0
0
0
0
0.027556
0.19498
1,713
107
52
16.009346
0.754895
0.049621
0
0.096154
0
0
0.048705
0
0
0
0
0
0.307692
1
0.423077
false
0
0.038462
0.019231
0.480769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e222ff90231f967a2d2347ddf5dcea5c451c243b
3,908
py
Python
models/model.py
andersro93/School.ICT441.TextGenerator
e2efe2253a3cb24a196358d0074209340503069a
[ "MIT" ]
null
null
null
models/model.py
andersro93/School.ICT441.TextGenerator
e2efe2253a3cb24a196358d0074209340503069a
[ "MIT" ]
null
null
null
models/model.py
andersro93/School.ICT441.TextGenerator
e2efe2253a3cb24a196358d0074209340503069a
[ "MIT" ]
null
null
null
from nt import DirEntry import os import self as self from keras import Model as KerasModel class Model(object): """ Base class for the different models in this project """ _files: dict = {} """ The files that is used to parse the model """ _raw_content: str = '' """ The files contents ...
27.138889
94
0.58956
476
3,908
4.661765
0.262605
0.072105
0.041009
0.03425
0.136999
0.118071
0.081118
0.081118
0.081118
0.081118
0
0.000378
0.322416
3,908
143
95
27.328671
0.837613
0.185261
0
0.238095
0
0
0.089799
0.009453
0
0
0
0
0
1
0.126984
false
0
0.063492
0
0.539683
0.079365
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e22cdecef594a7a4d01026c734e302cfb7902186
673
py
Python
django/users/migrations/0004_auto_20160408_1032.py
BD2KGenomics/brca-website
243bee560d5714f7cf5d98d06c83be345f1a11b4
[ "Apache-2.0" ]
5
2016-01-12T01:29:50.000Z
2017-03-10T08:34:52.000Z
django/users/migrations/0004_auto_20160408_1032.py
BD2KGenomics/brca-website-deprecated
243bee560d5714f7cf5d98d06c83be345f1a11b4
[ "Apache-2.0" ]
141
2015-08-06T18:51:37.000Z
2017-04-03T20:41:30.000Z
django/users/migrations/0004_auto_20160408_1032.py
BD2KGenomics/brca-website-deprecated
243bee560d5714f7cf5d98d06c83be345f1a11b4
[ "Apache-2.0" ]
8
2015-08-08T00:32:18.000Z
2016-07-29T16:05:44.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-04-08 10:32 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('users', '0003_myuser_has_image'), ] operations = [ ...
24.925926
74
0.616642
73
673
5.506849
0.684932
0.054726
0.094527
0.134328
0.18408
0.18408
0
0
0
0
0
0.044625
0.267459
673
26
75
25.884615
0.770791
0.099554
0
0.315789
1
0
0.104478
0.034826
0
0
0
0
0
1
0
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e22ed24dd1982b59d460dc15a81e37cb147cdf17
582
py
Python
src/page_object_pattern/test_template.py
paulbodean88/automation-design-patterns
b160f317a0c0a1de409908f938fbeab0772c8147
[ "MIT" ]
14
2017-07-25T10:11:06.000Z
2022-03-25T10:17:25.000Z
src/page_object_pattern/test_template.py
paulbodean88/automation-design-patterns
b160f317a0c0a1de409908f938fbeab0772c8147
[ "MIT" ]
3
2017-07-23T17:19:14.000Z
2017-07-24T19:54:52.000Z
src/page_object_pattern/test_template.py
paulbodean88/automation-design-patterns
b160f317a0c0a1de409908f938fbeab0772c8147
[ "MIT" ]
5
2019-08-29T02:35:04.000Z
2020-02-24T14:39:09.000Z
""" Description: - Test Template class. Methods: - test setup - test teardown - test implementation @author: Paul Bodean @date: 26/12/2017 """ import unittest from selenium import webdriver class TestTemplate(unittest.TestCase): def setUp(self): """ Open the page to be tested ...
18.1875
66
0.603093
64
582
5.46875
0.65625
0.085714
0
0
0
0
0
0
0
0
0
0.019231
0.285223
582
31
67
18.774194
0.822115
0.395189
0
0
0
0
0.134483
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e22fce042441cdd77adbcb54853ba9d70a939d7d
14,940
py
Python
gmacpyutil/gmacpyutil/profiles_test.py
rgayon/macops
1181ca269c9ae3235c1e9e7ae1bad4755b33c299
[ "Apache-2.0" ]
758
2015-01-05T19:48:20.000Z
2022-02-18T10:44:52.000Z
gmacpyutil/gmacpyutil/profiles_test.py
rgayon/macops
1181ca269c9ae3235c1e9e7ae1bad4755b33c299
[ "Apache-2.0" ]
161
2015-04-17T21:15:42.000Z
2019-05-27T03:05:19.000Z
gmacpyutil/gmacpyutil/profiles_test.py
rgayon/macops
1181ca269c9ae3235c1e9e7ae1bad4755b33c299
[ "Apache-2.0" ]
106
2015-01-20T21:21:00.000Z
2022-03-04T00:15:41.000Z
"""Tests for profiles module.""" import mock from google.apputils import basetest import profiles class ProfilesModuleTest(basetest.TestCase): def testGenerateUUID(self): self.assertIsInstance(profiles.GenerateUUID('a'), str) self.assertTrue(profiles.GenerateUUID('a').isupper()) self.assertEqual(pro...
40.16129
79
0.71178
1,458
14,940
7.080247
0.146776
0.082825
0.036327
0.055701
0.705899
0.636346
0.558268
0.502373
0.456166
0.439892
0
0.025477
0.175033
14,940
371
80
40.269542
0.812089
0.007831
0
0.547368
1
0
0.174774
0.072423
0
0
0
0
0.192982
1
0.087719
false
0.031579
0.010526
0
0.115789
0.010526
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e236809ac5baf6f429907ed386884a66c65abed5
790
py
Python
metrics_layer/core/parse/manifest.py
Zenlytic/metrics_layer
45e291186c9171b44222a49444153c5df14985c4
[ "Apache-2.0" ]
5
2021-11-11T15:39:23.000Z
2022-03-17T19:54:17.000Z
metrics_layer/core/parse/manifest.py
Zenlytic/metrics_layer
45e291186c9171b44222a49444153c5df14985c4
[ "Apache-2.0" ]
10
2021-11-23T21:44:56.000Z
2022-03-21T02:01:51.000Z
metrics_layer/core/parse/manifest.py
Zenlytic/metrics_layer
45e291186c9171b44222a49444153c5df14985c4
[ "Apache-2.0" ]
null
null
null
class Manifest: def __init__(self, definition: dict): self._definition = definition def exists(self): return self._definition is not None and self._definition != {} def _resolve_node(self, name: str): key = next((k for k in self._definition["nodes"].keys() if name == k.split(".")[-...
37.619048
99
0.583544
101
790
4.425743
0.435644
0.187919
0.089485
0.085011
0
0
0
0
0
0
0
0.001742
0.273418
790
20
100
39.5
0.777003
0.077215
0
0
0
0
0.200825
0.044017
0
0
0
0
0
1
0.25
false
0
0
0.0625
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e237d3872eb66e61cab21518227533afd94c87e8
252
py
Python
desafio/desafio051.py
henriquekirchheck/Curso-em-video-Python
1a29f68515313af85c8683f626ba35f8fcdd10e7
[ "MIT" ]
null
null
null
desafio/desafio051.py
henriquekirchheck/Curso-em-video-Python
1a29f68515313af85c8683f626ba35f8fcdd10e7
[ "MIT" ]
null
null
null
desafio/desafio051.py
henriquekirchheck/Curso-em-video-Python
1a29f68515313af85c8683f626ba35f8fcdd10e7
[ "MIT" ]
null
null
null
print('=====================') print(' 10 Termos de um PA') print('=====================') p = int(input('Primeiro Termo: ')) r = int(input('Razão: ')) for loop in range(p, ((r * 10) + p), r): print('{} ->' .format(loop), end=' ') print('Acabou')
25.2
41
0.452381
32
252
3.5625
0.625
0.140351
0
0
0
0
0
0
0
0
0
0.018692
0.150794
252
10
42
25.2
0.514019
0
0
0.25
0
0
0.379447
0.166008
0
0
0
0
0
1
0
false
0
0
0
0
0.625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
e23831c5c1e4e4aaba38057ace81941b540c3a57
1,159
py
Python
push.py
mikofski/dulwichPorcelain
2e4aa751ed70f9c4167de5e8aa5297b5cc6f583f
[ "BSD-2-Clause" ]
4
2015-07-13T17:47:51.000Z
2017-09-10T02:57:07.000Z
push.py
mikofski/dulwichPorcelain
2e4aa751ed70f9c4167de5e8aa5297b5cc6f583f
[ "BSD-2-Clause" ]
null
null
null
push.py
mikofski/dulwichPorcelain
2e4aa751ed70f9c4167de5e8aa5297b5cc6f583f
[ "BSD-2-Clause" ]
null
null
null
from dulwich.repo import Repo from dulwich.client import get_transport_and_path import sys def push(remote_url, repo_path='.'): """ Push to a remote repository :param remote_url: <str> url of remote repository :param repo_path: <str> path of local repository :return refs: <dict> dictionary of ref-...
38.633333
71
0.612597
166
1,159
4.162651
0.463855
0.039074
0.043415
0.054993
0.04631
0.04631
0.04631
0
0
0
0
0
0.284728
1,159
29
72
39.965517
0.833534
0.308024
0
0
0
0
0.006477
0
0
0
0
0.034483
0
1
0.111111
false
0
0.166667
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e23e5edeb769867120d432db8d1a63dd68cde4ce
15,509
py
Python
django_flex_user/models/user.py
ebenh/django-flex-user
efffb21e4ce33d2ea8665756334e2a391f4b5a72
[ "MIT" ]
1
2021-09-13T20:26:02.000Z
2021-09-13T20:26:02.000Z
django_flex_user/models/user.py
ebenh/django-flex-user
efffb21e4ce33d2ea8665756334e2a391f4b5a72
[ "MIT" ]
null
null
null
django_flex_user/models/user.py
ebenh/django-flex-user
efffb21e4ce33d2ea8665756334e2a391f4b5a72
[ "MIT" ]
null
null
null
from django.db import models from django.db.models.signals import pre_save, post_save from django.dispatch import receiver from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager from django.contrib.auth.models import PermissionsMixin from django.utils import timezone from django.utils.translation i...
43.687324
120
0.649945
1,974
15,509
5.013678
0.179331
0.010306
0.016672
0.01455
0.457411
0.409417
0.367687
0.33788
0.314338
0.298777
0
0.002455
0.264685
15,509
354
121
43.810734
0.865398
0.45954
0
0.120482
0
0
0.129554
0
0
0
0
0.002825
0
1
0.060241
false
0.078313
0.072289
0.006024
0.26506
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e243469fdf4c02806f27f1c408cf2cf6e88ea291
1,159
py
Python
main.py
yang-233/mmsa
eed7b943746041b735d8a7af8d60b6457f0284f6
[ "MIT" ]
1
2021-04-20T07:03:50.000Z
2021-04-20T07:03:50.000Z
main.py
yang-233/mmsa
eed7b943746041b735d8a7af8d60b6457f0284f6
[ "MIT" ]
null
null
null
main.py
yang-233/mmsa
eed7b943746041b735d8a7af8d60b6457f0284f6
[ "MIT" ]
null
null
null
import sys sys.path.append("/home/ly/workspace/mmsa") seed = 1938 import numpy as np import torch from torch import nn from torch import optim np.random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed(seed) torch.cuda.manual_seed_all(seed) from models.bigru_rcnn_gate import * from utils.train import * from t...
25.755556
102
0.707506
173
1,159
4.485549
0.445087
0.07732
0.096649
0.07732
0.229381
0.208763
0.072165
0
0
0
0
0.015991
0.190682
1,159
45
103
25.755556
0.811301
0.090595
0
0.090909
0
0
0.029496
0.021884
0
0
0
0
0
1
0.030303
false
0
0.363636
0
0.393939
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e243f2fb56034af4479821d1bde3670f31edfe71
2,113
py
Python
back-end/www/model/timeception/core/const.py
yenchiah/deep-smoke-machine
5f779f723a3c891145db43663c8825f9ab55dc74
[ "BSD-3-Clause" ]
88
2019-05-29T07:38:45.000Z
2022-03-17T01:50:50.000Z
back-end/www/model/timeception/core/const.py
yenchiah/deep-smoke-machine
5f779f723a3c891145db43663c8825f9ab55dc74
[ "BSD-3-Clause" ]
6
2019-05-30T08:47:07.000Z
2021-09-01T07:45:54.000Z
back-end/www/model/timeception/core/const.py
yenchiah/deep-smoke-machine
5f779f723a3c891145db43663c8825f9ab55dc74
[ "BSD-3-Clause" ]
22
2019-06-17T01:15:35.000Z
2021-11-17T10:29:00.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- ######################################################################## # GNU General Public License v3.0 # GNU GPLv3 # Copyright (c) 2019, Noureldien Hussein # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General ...
39.867925
128
0.682915
283
2,113
4.904594
0.59364
0.055476
0.051873
0.066282
0.059078
0.040346
0
0
0
0
0
0.043666
0.122101
2,113
52
129
40.634615
0.704582
0.358258
0
0
0
0
0.27043
0.026116
0
0
0
0
0
1
0
false
0
0.304348
0
0.304348
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e246ae17b63ba59e1c28d476250fb493117de794
20,534
py
Python
shahryar_webscrapping_nlp2_WebCrawling.py
ShahryarZaidi/Web-Crawler-and-NLP-
2dfaecfc20c4ab4a711a633c088113671ffc3a89
[ "Apache-2.0" ]
null
null
null
shahryar_webscrapping_nlp2_WebCrawling.py
ShahryarZaidi/Web-Crawler-and-NLP-
2dfaecfc20c4ab4a711a633c088113671ffc3a89
[ "Apache-2.0" ]
null
null
null
shahryar_webscrapping_nlp2_WebCrawling.py
ShahryarZaidi/Web-Crawler-and-NLP-
2dfaecfc20c4ab4a711a633c088113671ffc3a89
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[65]: from sklearn.feature_extraction.text import CountVectorizer,TfidfVectorizer from sklearn.naive_bayes import BernoulliNB, MultinomialNB from sklearn import metrics from sklearn.metrics import roc_auc_score, accuracy_score import requests from bs4 import BeautifulSoup im...
22.739756
177
0.665774
2,755
20,534
4.817423
0.221416
0.019892
0.005274
0.006781
0.315778
0.272152
0.239075
0.215491
0.191832
0.171941
0
0.028703
0.207656
20,534
902
178
22.764967
0.786908
0.148437
0
0.274112
0
0.005076
0.113331
0.006523
0
0
0
0
0
0
null
null
0
0.121827
null
null
0.058376
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e24dc2e412714a0bc17cc1fafa7639e2e6028663
11,524
py
Python
reliefparser/models/pointer_net.py
XuezheMax/ReLiefParser
4ffb2495002809de70809689b84d80d2a59cd2ac
[ "MIT" ]
6
2016-11-02T20:28:01.000Z
2018-06-25T03:37:25.000Z
reliefparser/models/pointer_net.py
XuezheMax/ReLiefParser
4ffb2495002809de70809689b84d80d2a59cd2ac
[ "MIT" ]
null
null
null
reliefparser/models/pointer_net.py
XuezheMax/ReLiefParser
4ffb2495002809de70809689b84d80d2a59cd2ac
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from encoder import Encoder from decoder import Decoder, TreeDecoder import bisect from time import time class PointerNet(object): def __init__(self, vsize, esize, hsize, asize, buckets, **kwargs): super(PointerNet, self).__init__() self.name = kwargs....
41.453237
132
0.596234
1,533
11,524
4.172211
0.148728
0.045028
0.037523
0.023765
0.483583
0.447936
0.417448
0.378831
0.340838
0.3202
0
0.018387
0.277942
11,524
277
133
41.602888
0.75027
0.224488
0
0.14094
0
0
0.016916
0
0
0
0
0
0
0
null
null
0
0.040268
null
null
0.033557
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e2609871df4431162077f02f9f954e5270a79a11
1,608
py
Python
emLam/corpus/component.py
DavidNemeskey/emLam
89359e7eee5b7b9c596dec8ab6654591d4039e3e
[ "MIT" ]
2
2018-03-31T10:00:11.000Z
2018-09-15T19:38:19.000Z
emLam/corpus/component.py
DavidNemeskey/emLam
89359e7eee5b7b9c596dec8ab6654591d4039e3e
[ "MIT" ]
16
2017-02-28T13:58:28.000Z
2018-03-14T11:42:01.000Z
emLam/corpus/component.py
dlt-rilmta/emLam
2b7274dcda4080445698e10b34a3db2e2eed5112
[ "MIT" ]
1
2017-01-30T15:06:37.000Z
2017-01-30T15:06:37.000Z
#!/usr/bin/env python3 """An instantiable component. See the docstring for the class.""" from __future__ import absolute_import, division, print_function from future.utils import with_metaclass import logging import inspect class NamedClass(type): """ A read-only name property for classes. See http://sta...
35.733333
97
0.69403
204
1,608
5.328431
0.563725
0.027599
0.022079
0.034959
0
0
0
0
0
0
0
0.008661
0.210199
1,608
44
98
36.545455
0.847244
0.378731
0
0.090909
0
0
0.051535
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0.090909
0.590909
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e26904d170e4e8c6e1dcb9ac5ffac8b016dc97a4
732
py
Python
scripts/serializers.py
sul-cidr/scriptchart-backend
38bb4139d77d683d85f31839a1a06096fe2fabbc
[ "MIT" ]
1
2019-06-05T23:05:32.000Z
2019-06-05T23:05:32.000Z
scripts/serializers.py
sul-cidr/scriptchart-backend
38bb4139d77d683d85f31839a1a06096fe2fabbc
[ "MIT" ]
42
2019-01-24T23:51:42.000Z
2021-09-08T01:04:45.000Z
scripts/serializers.py
sul-cidr/scriptchart-backend
38bb4139d77d683d85f31839a1a06096fe2fabbc
[ "MIT" ]
1
2019-08-05T12:47:57.000Z
2019-08-05T12:47:57.000Z
from rest_framework import serializers from scripts.models import Manuscript from scripts.models import Page from scripts.models import Coordinates class ManuscriptSerializer(serializers.ModelSerializer): class Meta: model = Manuscript fields = ('id', 'slug', 'shelfmark', 'date', 'manifest') cla...
28.153846
75
0.669399
72
732
6.763889
0.458333
0.067762
0.104723
0.141684
0.164271
0
0
0
0
0
0
0
0.210383
732
25
76
29.28
0.842561
0
0
0.166667
0
0
0.132514
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e26b0de3f1cabd89fc29afca7fa65f5643740f6e
750
py
Python
test/generators/utils.py
yanqd0/LeetCode
8c669b954f4e4ae5e31a14727bf4ceedc58ea363
[ "MIT" ]
null
null
null
test/generators/utils.py
yanqd0/LeetCode
8c669b954f4e4ae5e31a14727bf4ceedc58ea363
[ "MIT" ]
3
2019-08-29T02:33:12.000Z
2019-08-29T02:34:23.000Z
test/generators/utils.py
yanqd0/LeetCode
8c669b954f4e4ae5e31a14727bf4ceedc58ea363
[ "MIT" ]
null
null
null
import csv import re from os import makedirs from os.path import abspath, basename, dirname, isdir, join def generate_csv(path, fields, rows, quote_empty=False): path = abspath(path) name = basename(path) name = re.sub('py$', 'csv', name) cases = join(dirname(dirname(path)), 'cases') if not isdir(...
31.25
77
0.669333
101
750
4.891089
0.415842
0.05668
0.044534
0.060729
0
0
0
0
0
0
0
0
0.209333
750
23
78
32.608696
0.833052
0
0
0
1
0
0.022667
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e27110053843a24a09a5e561022d265c1c30eb63
637
py
Python
moai/utils/arguments/__init__.py
tzole1155/moai
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
[ "Apache-2.0" ]
null
null
null
moai/utils/arguments/__init__.py
tzole1155/moai
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
[ "Apache-2.0" ]
null
null
null
moai/utils/arguments/__init__.py
tzole1155/moai
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
[ "Apache-2.0" ]
null
null
null
from moai.utils.arguments.common import ( assert_numeric, assert_non_negative, assert_negative, ) from moai.utils.arguments.choices import ( assert_choices, ensure_choices, ) from moai.utils.arguments.list import ( ensure_numeric_list, ensure_string_list, assert_sequence_size, ) from moa...
20.548387
42
0.706436
73
637
5.726027
0.246575
0.076555
0.124402
0.210526
0.334928
0.186603
0.186603
0
0
0
0
0
0.194662
637
31
43
20.548387
0.814815
0
0
0
0
0
0.242947
0
0
0
0
0
0.4
1
0
false
0
0.133333
0
0.133333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e27404f1e9416d7b05bddb353f28ac49feb953fb
195
py
Python
main.py
NawrasseDahman/Qr-Code-Generator
0f1bb8b0979f887c980cec3a241457176515b1b9
[ "MIT" ]
1
2021-12-31T07:12:09.000Z
2021-12-31T07:12:09.000Z
main.py
NawrasseDahman/Qr-Code-Generator
0f1bb8b0979f887c980cec3a241457176515b1b9
[ "MIT" ]
null
null
null
main.py
NawrasseDahman/Qr-Code-Generator
0f1bb8b0979f887c980cec3a241457176515b1b9
[ "MIT" ]
null
null
null
import qrcode # data example data = "www.google.com" # file name file_name = "qrcode.png" # generate qr code img = qrcode.make(data=data) # save generated qr code as img img.save(file_name)
13
31
0.717949
32
195
4.3125
0.5625
0.173913
0
0
0
0
0
0
0
0
0
0
0.174359
195
14
32
13.928571
0.857143
0.353846
0
0
1
0
0.198347
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e277978869ba969473b22353a021df73d2ed4b99
1,381
py
Python
backend/ReceiptProcessor/data_generator.py
shrey-bansal/ABINBEV
09d0eaca6e7edf1820aa79b88a56d1ed39b6300f
[ "Apache-2.0" ]
1
2020-08-17T01:26:27.000Z
2020-08-17T01:26:27.000Z
backend/ReceiptProcessor/data_generator.py
shrey-bansal/ABINBEV
09d0eaca6e7edf1820aa79b88a56d1ed39b6300f
[ "Apache-2.0" ]
1
2020-10-20T01:40:24.000Z
2020-11-05T17:38:53.000Z
backend/ReceiptProcessor/data_generator.py
shrey-bansal/ABINBEV
09d0eaca6e7edf1820aa79b88a56d1ed39b6300f
[ "Apache-2.0" ]
2
2021-12-14T16:57:58.000Z
2021-12-23T11:51:10.000Z
import os import cv2 from ReceiptGenerator.draw_receipt import create_crnn_sample NUM_OF_TRAINING_IMAGES = 3000 NUM_OF_TEST_IMAGES = 1000 TEXT_TYPES = ['word', 'word_column', 'word_bracket', 'int', 'float', 'price_left', 'price_right', 'percentage'] # TEXT_TYPES = ['word'] with open('./ReceiptProcessor/training_ima...
47.62069
111
0.672701
181
1,381
4.917127
0.303867
0.157303
0.269663
0.157303
0.746067
0.660674
0.640449
0.534831
0.534831
0.474157
0
0.011265
0.164374
1,381
28
112
49.321429
0.759965
0.015206
0
0.272727
0
0
0.343152
0.27246
0
0
0
0
0
1
0
false
0
0.136364
0
0.136364
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e27f7aa8f3b09c4a3cfeb2e39b74ae35d8c6e4d4
870
py
Python
instances/migrations/0001_initial.py
glzjin/webvirtcloud
ecaf11e02aeb57654257ed502d3da6fd8405f21b
[ "Apache-2.0" ]
1
2020-11-06T00:50:06.000Z
2020-11-06T00:50:06.000Z
instances/migrations/0001_initial.py
qmutz/webvirtcloud
159e06221af435700047a8e5ababe758a12d7579
[ "Apache-2.0" ]
null
null
null
instances/migrations/0001_initial.py
qmutz/webvirtcloud
159e06221af435700047a8e5ababe758a12d7579
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.10 on 2020-01-28 07:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('computes', '0001_initial'), ] operations = [ migrations.CreateModel( name=...
31.071429
115
0.595402
91
870
5.582418
0.604396
0.047244
0.055118
0.086614
0
0
0
0
0
0
0
0.039246
0.267816
870
27
116
32.222222
0.758242
0.052874
0
0
1
0
0.09854
0
0
0
0
0
0
1
0
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e2858d86f914bf75d274567c879ac15e007d7753
229
py
Python
2 semester/PP/9/Code/1.3.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
null
null
null
2 semester/PP/9/Code/1.3.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
null
null
null
2 semester/PP/9/Code/1.3.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
null
null
null
sort = lambda array: [sublist for sublist in sorted(array, key=lambda x: x[1])] if __name__ == "__main__": print(sort([ ("English", 88), ("Social", 82), ("Science", 90), ("Math", 97) ]))
20.818182
79
0.50655
27
229
4
0.814815
0
0
0
0
0
0
0
0
0
0
0.055901
0.296943
229
10
80
22.9
0.614907
0
0
0
0
0
0.140351
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e2867f314d7004069b6df31d48702399fd7727ef
451
py
Python
users/models.py
jannetasa/haravajarjestelma
419f23656306d94ae4d9a8d3477a6325cc80b601
[ "MIT" ]
null
null
null
users/models.py
jannetasa/haravajarjestelma
419f23656306d94ae4d9a8d3477a6325cc80b601
[ "MIT" ]
79
2018-11-26T09:43:41.000Z
2022-02-10T08:19:11.000Z
users/models.py
jannetasa/haravajarjestelma
419f23656306d94ae4d9a8d3477a6325cc80b601
[ "MIT" ]
3
2018-11-27T08:08:22.000Z
2022-03-25T08:30:34.000Z
from django.db import models from django.utils.translation import ugettext_lazy as _ from helusers.models import AbstractUser class User(AbstractUser): is_official = models.BooleanField(verbose_name=_("official"), default=False) class Meta: verbose_name = _("user") verbose_name_plural = _("us...
26.529412
80
0.738359
56
451
5.660714
0.625
0.104101
0
0
0
0
0
0
0
0
0
0
0.172949
451
16
81
28.1875
0.849866
0
0
0
0
0
0.042129
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0.090909
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e287c088eb04f012860164c20f94da353ad49546
3,904
py
Python
src/main/python/tranquilitybase/gcpdac/main/core/terraform/terraform_utils.py
tranquilitybase-io/tb-gcp-dac
1d65afced1ab7427262dcdf98ee544370201439a
[ "Apache-2.0" ]
2
2020-04-23T16:50:26.000Z
2021-05-09T11:30:42.000Z
src/main/python/tranquilitybase/gcpdac/main/core/terraform/terraform_utils.py
tranquilitybase-io/tb-gcp-dac
1d65afced1ab7427262dcdf98ee544370201439a
[ "Apache-2.0" ]
156
2020-04-08T14:08:47.000Z
2021-07-01T14:48:15.000Z
src/main/python/tranquilitybase/gcpdac/main/core/terraform/terraform_utils.py
tranquilitybase-io/tb-gcp-dac
1d65afced1ab7427262dcdf98ee544370201439a
[ "Apache-2.0" ]
2
2020-06-24T11:19:58.000Z
2020-06-24T13:27:22.000Z
import time import traceback from python_terraform import Terraform from src.main.python.tranquilitybase.gcpdac.configuration.helpers.eaglehelper import EagleConfigHelper from src.main.python.tranquilitybase.gcpdac.configuration.helpers.envhelper import EnvHelper from src.main.python.tranquilitybase.gcpdac.main.core.t...
41.094737
106
0.71542
496
3,904
5.405242
0.209677
0.082059
0.111899
0.038046
0.402089
0.357329
0.284595
0.152928
0.109661
0.038046
0
0.00251
0.183658
3,904
94
107
41.531915
0.83872
0.010502
0
0.028571
0
0
0.177461
0.005699
0
0
0
0.010638
0
1
0.085714
false
0
0.142857
0
0.271429
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e28e4be1e1115462a9f71610a6de2f1ea15e9d02
3,912
py
Python
momentumnet-main/momentumnet/exact_rep_pytorch.py
ZhuFanCheng/Thesis
eba9a7567a5c254acb2e78fdac0cda7dddabb327
[ "MIT" ]
null
null
null
momentumnet-main/momentumnet/exact_rep_pytorch.py
ZhuFanCheng/Thesis
eba9a7567a5c254acb2e78fdac0cda7dddabb327
[ "MIT" ]
null
null
null
momentumnet-main/momentumnet/exact_rep_pytorch.py
ZhuFanCheng/Thesis
eba9a7567a5c254acb2e78fdac0cda7dddabb327
[ "MIT" ]
null
null
null
# Authors: Michael Sander, Pierre Ablin # License: MIT """ Original code from Maclaurin, Dougal, David Duvenaud, and Ryan Adams. "Gradient-based hyperparameter optimization through reversible learning." International conference on machine learning. PMLR, 2015. """ import numpy as np import torch RADIX_SCALE = 2 ** 5...
26.612245
78
0.562117
512
3,912
4.169922
0.289063
0.065574
0.048712
0.039344
0.162529
0.158314
0.0637
0.0637
0.039344
0.039344
0
0.009927
0.330521
3,912
146
79
26.794521
0.805269
0.179448
0
0.16
0
0
0.003162
0
0
0
0
0
0
1
0.21
false
0
0.02
0.03
0.42
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e2943c239d9c2e7a22ad3b9b20bec4da90c41c08
594
py
Python
master/fresh-samples-master/fresh-samples-master/python_samples/create_contact.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/fresh-samples-master/fresh-samples-master/python_samples/create_contact.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/fresh-samples-master/fresh-samples-master/python_samples/create_contact.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
## This script requires "requests": http://docs.python-requests.org/ ## To install: pip install requests import requests import json FRESHDESK_ENDPOINT = "http://YOUR_DOMAIN.freshdesk.com" # check if you have configured https, modify accordingly FRESHDESK_KEY = "YOUR_API_TOKEN" user_info = {"user":{"name":"Example U...
31.263158
112
0.734007
80
594
5.3
0.6125
0.066038
0
0
0
0
0
0
0
0
0
0
0.124579
594
18
113
33
0.815385
0.257576
0
0
0
0
0.305747
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e294c03490a934e79c6f93eaa739cbcd7738d18b
1,102
py
Python
ordenes/migrations/0003_auto_20200307_0359.py
Omar-Gonzalez/echangarro-demo
a7a970d9793c5e467ca117e9f515a9da423fac14
[ "MIT" ]
null
null
null
ordenes/migrations/0003_auto_20200307_0359.py
Omar-Gonzalez/echangarro-demo
a7a970d9793c5e467ca117e9f515a9da423fac14
[ "MIT" ]
9
2021-03-19T11:25:28.000Z
2022-03-12T00:35:18.000Z
ordenes/migrations/0003_auto_20200307_0359.py
Omar-Gonzalez/echangarro-demo
a7a970d9793c5e467ca117e9f515a9da423fac14
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2020-03-07 03:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ordenes', '0002_auto_20200305_0056'), ] operations = [ migrations.AddField( model_name='orden', name='guia_de_envio'...
38
275
0.606171
109
1,102
6.009174
0.53211
0.041221
0.064122
0.082443
0.116031
0.116031
0
0
0
0
0
0.047281
0.232305
1,102
28
276
39.357143
0.72695
0.040835
0
0.363636
1
0
0.291943
0.021801
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e298277ea2466de2883498bb7a044f52d8a88109
665
py
Python
dodo_commands/extra/dodo_standard_commands/decorators/pause.py
mnieber/dodo-commands
82330006af2c6739b030ce932ba1ff9078b241ee
[ "MIT" ]
8
2016-12-01T16:45:45.000Z
2020-05-05T20:56:57.000Z
dodo_commands/extra/dodo_standard_commands/decorators/pause.py
mnieber/dodo-commands
82330006af2c6739b030ce932ba1ff9078b241ee
[ "MIT" ]
75
2017-01-29T19:25:45.000Z
2020-01-28T09:40:47.000Z
dodo_commands/extra/dodo_standard_commands/decorators/pause.py
mnieber/dodo-commands
82330006af2c6739b030ce932ba1ff9078b241ee
[ "MIT" ]
2
2017-06-01T09:55:20.000Z
2017-06-08T14:45:08.000Z
"""Pauses the execution.""" import time from dodo_commands.framework.decorator_utils import uses_decorator class Decorator: def is_used(self, config, command_name, decorator_name): return uses_decorator(config, command_name, decorator_name) def add_arguments(self, parser): # override parser...
33.25
83
0.709774
87
665
5.126437
0.54023
0.047085
0.100897
0.116592
0.318386
0
0
0
0
0
0
0.009416
0.201504
665
19
84
35
0.830508
0.06015
0
0
0
0
0.092233
0
0
0
0
0
0
1
0.230769
false
0
0.153846
0.076923
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e29aea0adeb87fbcda39b28f2cebe8dcefd85597
883
py
Python
tests/unit/lms/extensions/feature_flags/views/_predicates_test.py
mattdricker/lms
40b8a04f95e69258c6c0d7ada543f4b527918ecf
[ "BSD-2-Clause" ]
38
2017-12-30T23:49:53.000Z
2022-02-15T21:07:49.000Z
tests/unit/lms/extensions/feature_flags/views/_predicates_test.py
mattdricker/lms
40b8a04f95e69258c6c0d7ada543f4b527918ecf
[ "BSD-2-Clause" ]
1,733
2017-11-09T18:46:05.000Z
2022-03-31T11:05:50.000Z
tests/unit/lms/extensions/feature_flags/views/_predicates_test.py
mattdricker/lms
40b8a04f95e69258c6c0d7ada543f4b527918ecf
[ "BSD-2-Clause" ]
10
2018-07-11T17:12:46.000Z
2022-01-07T20:00:23.000Z
from unittest import mock from lms.extensions.feature_flags.views._predicates import FeatureFlagViewPredicate class TestFeatureFlagsViewPredicate: def test_text(self): assert ( FeatureFlagViewPredicate("test_feature", mock.sentinel.config).text() == "feature_flag = test_feature" ...
33.961538
87
0.714609
90
883
6.7
0.411111
0.109453
0.174129
0.19403
0.393035
0.393035
0.208955
0.208955
0
0
0
0
0.202718
883
25
88
35.32
0.856534
0
0
0.222222
0
0
0.115515
0
0
0
0
0
0.222222
1
0.166667
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e29bd2810c7f8c926395ee26eadb354bd458bdc4
468
py
Python
2015/python/01.py
gcp825/advent_of_code
b4ea17572847e1a9044487041b3e12a0da58c94b
[ "MIT" ]
1
2021-12-29T09:32:08.000Z
2021-12-29T09:32:08.000Z
2015/python/01.py
gcp825/advent_of_code
b4ea17572847e1a9044487041b3e12a0da58c94b
[ "MIT" ]
null
null
null
2015/python/01.py
gcp825/advent_of_code
b4ea17572847e1a9044487041b3e12a0da58c94b
[ "MIT" ]
null
null
null
def read_file(filepath): with open(filepath,'r') as i: inst = [int(x) for x in i.read().replace(')','-1,').replace('(','1,').strip('\n').strip(',').split(',')] return inst def calculate(inst,floor=0): for i,f in enumerate(inst): floor += f if floor < 0: break ...
22.285714
112
0.532051
66
468
3.742424
0.5
0.064777
0.129555
0
0
0
0
0
0
0
0
0.029499
0.275641
468
20
113
23.4
0.699115
0
0
0
0
0
0.036325
0
0
0
0
0
0
1
0.230769
false
0
0
0
0.461538
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e29c27f26d7b20a1fcc5692f39ceeba53ab303aa
4,810
py
Python
Unit3_StructuredTypes/ps3_hangman.py
myzzdeedee/MITx_6001x
0843ac666e1d58e52bd09c8ce9144fe9d6eb78c8
[ "MIT" ]
null
null
null
Unit3_StructuredTypes/ps3_hangman.py
myzzdeedee/MITx_6001x
0843ac666e1d58e52bd09c8ce9144fe9d6eb78c8
[ "MIT" ]
null
null
null
Unit3_StructuredTypes/ps3_hangman.py
myzzdeedee/MITx_6001x
0843ac666e1d58e52bd09c8ce9144fe9d6eb78c8
[ "MIT" ]
null
null
null
# Hangman game # # ----------------------------------- # Helper code # You don't need to understand this helper code, # but you will have to know how to use the functions # (so be sure to read the docstrings!) import random import string WORDLIST_FILENAME = "/Users/deedeebanh/Documents/MITx_6.00.1.x/ProblemSet3/word...
33.636364
108
0.65447
606
4,810
5.179868
0.353135
0.01561
0.019114
0.021663
0.138898
0.109589
0.109589
0.109589
0.109589
0.109589
0
0.003288
0.241164
4,810
142
109
33.873239
0.856712
0.452391
0
0.071429
0
0
0.178571
0.025862
0
0
0
0.028169
0
1
0.107143
false
0
0.035714
0
0.285714
0.232143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e2a1706b79dfe59b8505a0173c3194887a5e11ef
613
py
Python
decrypt.py
angelodpadron/asymmetric-encryption-exercise
f204c3cc293db170e79be41a1125c329b07e9c3b
[ "Unlicense" ]
null
null
null
decrypt.py
angelodpadron/asymmetric-encryption-exercise
f204c3cc293db170e79be41a1125c329b07e9c3b
[ "Unlicense" ]
null
null
null
decrypt.py
angelodpadron/asymmetric-encryption-exercise
f204c3cc293db170e79be41a1125c329b07e9c3b
[ "Unlicense" ]
null
null
null
# Seguridad Informatica # ejercicio de encriptacion # Angelo Padron (42487) from Crypto.Cipher import AES from Crypto.Random import get_random_bytes with open('key.bin', 'rb') as k: key = k.read() with open('vector.bin', 'rb') as v: init_vector = v.read() cipher = AES.new(key, AES.MODE_CBC, ...
26.652174
88
0.698206
89
613
4.707865
0.550562
0.076372
0.033413
0
0
0
0
0
0
0
0
0.01002
0.185971
613
22
89
27.863636
0.829659
0.252855
0
0
0
0
0.132251
0
0
0
0
0.045455
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e2af856c04d6440da75265a16b72d785a5cf429e
2,877
py
Python
openapi_core/schema/schemas/_format.py
gjo/openapi-core
cabe512fb043d3e95b93fbe7a20b8e2d095d7d99
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/schemas/_format.py
gjo/openapi-core
cabe512fb043d3e95b93fbe7a20b8e2d095d7d99
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/schemas/_format.py
gjo/openapi-core
cabe512fb043d3e95b93fbe7a20b8e2d095d7d99
[ "BSD-3-Clause" ]
null
null
null
from base64 import b64encode, b64decode import binascii from datetime import datetime from uuid import UUID from jsonschema._format import FormatChecker from jsonschema.exceptions import FormatError from six import binary_type, text_type, integer_types DATETIME_HAS_STRICT_RFC3339 = False DATETIME_HAS_ISODATE = False ...
24.801724
72
0.73236
344
2,877
5.924419
0.229651
0.105986
0.088322
0.105986
0.314033
0.286555
0.251227
0.251227
0.199215
0.199215
0
0.028169
0.18561
2,877
115
73
25.017391
0.841656
0.024331
0
0.333333
0
0
0.033524
0
0
0
0
0
0
1
0.123457
false
0.024691
0.135802
0.061728
0.506173
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2c35def8ee1647a9c2698f2968e607d08e8fd841
192
py
Python
App/urls.py
python1801aclchemy/AXF
64f8d1ceff49a1a9398b06dca8a3bcf9d0c76527
[ "Apache-2.0" ]
null
null
null
App/urls.py
python1801aclchemy/AXF
64f8d1ceff49a1a9398b06dca8a3bcf9d0c76527
[ "Apache-2.0" ]
null
null
null
App/urls.py
python1801aclchemy/AXF
64f8d1ceff49a1a9398b06dca8a3bcf9d0c76527
[ "Apache-2.0" ]
null
null
null
from flask_restful import Api from App.apis import Hello, Home api = Api() def init_urls(app): api.init_app(app=app) api.add_resource(Hello, "/hello/") api.add_resource(Home, "/home/")
17.454545
34
0.71875
32
192
4.15625
0.4375
0.090226
0.210526
0
0
0
0
0
0
0
0
0
0.135417
192
11
35
17.454545
0.801205
0
0
0
0
0
0.067358
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c3962395215ba9ce077e3f3b133d79c166c4278
1,599
py
Python
beerhunter/breweries/models.py
zhukovvlad/beerhunt-project
e841f4946c08275e9d189605ffe9026d6657d63f
[ "MIT" ]
null
null
null
beerhunter/breweries/models.py
zhukovvlad/beerhunt-project
e841f4946c08275e9d189605ffe9026d6657d63f
[ "MIT" ]
null
null
null
beerhunter/breweries/models.py
zhukovvlad/beerhunt-project
e841f4946c08275e9d189605ffe9026d6657d63f
[ "MIT" ]
null
null
null
import os from uuid import uuid4 from django.db import models from django.urls import reverse from django.utils.timezone import now as timezone_now from autoslug import AutoSlugField from model_utils.models import TimeStampedModel from django_countries.fields import CountryField from django.utils.translation import ge...
27.101695
77
0.695435
187
1,599
5.770053
0.475936
0.046339
0.027804
0.044486
0.0519
0
0
0
0
0
0
0.011111
0.212008
1,599
58
78
27.568966
0.845238
0
0
0
0
0
0.124453
0.071295
0
0
0
0
0
1
0.06383
false
0
0.234043
0.042553
0.510638
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2c3ce123c1b3e7bd690b52526495222fa3c1ade0
588
py
Python
release_type.py
sairam4123/GodotReleaseScriptPython
2fd2644b0301f20b89b6772a0c93cec6d012f080
[ "MIT" ]
null
null
null
release_type.py
sairam4123/GodotReleaseScriptPython
2fd2644b0301f20b89b6772a0c93cec6d012f080
[ "MIT" ]
null
null
null
release_type.py
sairam4123/GodotReleaseScriptPython
2fd2644b0301f20b89b6772a0c93cec6d012f080
[ "MIT" ]
null
null
null
from enum import Enum, auto class ReleaseLevel(Enum): alpha = auto() beta = auto() release_candidate = auto() public = auto() @classmethod def has_value(cls, value): return value in cls._value2member_map_.values() class ReleaseType(Enum): bugfix = auto() minor = auto() m...
18.967742
55
0.620748
72
588
4.875
0.430556
0.094017
0.102564
0.119658
0.404558
0.404558
0.404558
0.404558
0.404558
0.404558
0
0.004717
0.278912
588
30
56
19.6
0.823113
0
0
0.272727
0
0
0
0
0
0
0
0
0
1
0.136364
false
0
0.045455
0.090909
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2c3dba86ff323fef28c9a80d764d95da5f24f6b8
1,559
py
Python
tests/test_cf_gh_pages_dns_records.py
mondeja/pre-commit-hooks
226a386dd7cd4e7a9d7bb6c7aaff0fea7cdf269b
[ "BSD-3-Clause" ]
null
null
null
tests/test_cf_gh_pages_dns_records.py
mondeja/pre-commit-hooks
226a386dd7cd4e7a9d7bb6c7aaff0fea7cdf269b
[ "BSD-3-Clause" ]
14
2021-06-14T12:25:22.000Z
2022-03-10T20:41:30.000Z
tests/test_cf_gh_pages_dns_records.py
mondeja/pre-commit-hooks
226a386dd7cd4e7a9d7bb6c7aaff0fea7cdf269b
[ "BSD-3-Clause" ]
null
null
null
"""Tests for 'cloudflare-gh-pages-dns' hook.""" import contextlib import io import os import pytest from hooks.cf_gh_pages_dns_records import check_cloudflare_gh_pages_dns_records @pytest.mark.skipif( not os.environ.get("CF_API_KEY"), reason=( "Cloudflare user API key defined in 'CF_API_KEY' enviro...
25.145161
83
0.594612
168
1,559
5.333333
0.440476
0.046875
0.055804
0.089286
0.216518
0.216518
0.102679
0.102679
0
0
0
0
0.298268
1,559
61
84
25.557377
0.819013
0.085953
0
0.254902
0
0
0.237826
0.047283
0
0
0
0.016393
0.039216
1
0.019608
false
0
0.098039
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2c3fb2a119544a5df7baf6e26ee12fd13218d950
5,046
py
Python
devsupport/check_loggers/check_loggers.py
bradh/jmisb
94456903782e08bb7a1909736810f171c2df8f8e
[ "MIT" ]
26
2018-05-31T01:36:10.000Z
2022-03-23T21:40:31.000Z
devsupport/check_loggers/check_loggers.py
bradh/jmisb
94456903782e08bb7a1909736810f171c2df8f8e
[ "MIT" ]
206
2018-05-22T17:56:12.000Z
2022-03-18T10:55:27.000Z
devsupport/check_loggers/check_loggers.py
bradh/jmisb
94456903782e08bb7a1909736810f171c2df8f8e
[ "MIT" ]
10
2019-03-30T00:53:40.000Z
2022-03-16T18:27:22.000Z
import os modules = ['api', 'core'] sourcedirs = [] expectedToHaveNoTest = [ 'api/src/main/java/org/jmisb/api/klv/LdsParser.java', 'api/src/main/java/org/jmisb/api/video/VideoDecodeThread.java', 'api/src/main/java/org/jmisb/api/video/VideoOutput.java', 'api/src/main/java/org/jmisb/api/video/VideoStreamOut...
35.787234
99
0.664883
555
5,046
6.045045
0.273874
0.027124
0.042623
0.050075
0.276006
0.197019
0.136215
0.122206
0.122206
0.020864
0
0.002525
0.21522
5,046
140
100
36.042857
0.844697
0.065398
0
0.225225
0
0
0.26318
0.154762
0
0
0
0.007143
0
1
0.099099
false
0.054054
0.009009
0.036036
0.198198
0.108108
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2c42e21de4e45b73eacc95f497a0cac35eca60ff
858
py
Python
edx/quiz/unique_values.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
edx/quiz/unique_values.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
edx/quiz/unique_values.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
""" Write a Python function that returns a list of keys in aDict that map to integer values that are unique (i.e. values appear exactly once in aDict). The list of keys you return should be sorted in increasing order. (If aDict does not contain any unique values, you should return an empty list.) This function takes i...
31.777778
293
0.589744
146
858
3.458904
0.458904
0.055446
0.047525
0.043564
0.110891
0.091089
0.091089
0
0
0
0
0.051071
0.292541
858
26
294
33
0.78089
0
0
0.105263
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2c46e20944df9fdddc17ddf37076817334c8143f
1,392
py
Python
apps/workspaces/migrations/0001_initial.py
fylein/fyle-integrations-platform-connector
72f5d364deca8d98516e8486ec0ab377a8ceaccc
[ "MIT" ]
null
null
null
apps/workspaces/migrations/0001_initial.py
fylein/fyle-integrations-platform-connector
72f5d364deca8d98516e8486ec0ab377a8ceaccc
[ "MIT" ]
1
2021-12-08T13:51:14.000Z
2021-12-08T13:51:14.000Z
apps/workspaces/migrations/0001_initial.py
fylein/fyle-integrations-platform-connector
72f5d364deca8d98516e8486ec0ab377a8ceaccc
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-11 11:10 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Workspace', fields=[ ('id', models.AutoFiel...
39.771429
105
0.586207
147
1,392
5.380952
0.44898
0.08091
0.132743
0.102402
0.319848
0.178255
0.178255
0.178255
0
0
0
0.021583
0.301006
1,392
34
106
40.941176
0.791367
0.032328
0
0
1
0
0.255019
0.015613
0
0
0
0
0
1
0
false
0
0.037037
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c47d249a7a2a9897dd96152260a3f88189f02aa
584
py
Python
src/db/models/artist_album.py
jsbecerrab/Loka-prueba-backend
d47250a68e3e28375c0b8e0a6cdf78223b0d12cd
[ "MIT" ]
null
null
null
src/db/models/artist_album.py
jsbecerrab/Loka-prueba-backend
d47250a68e3e28375c0b8e0a6cdf78223b0d12cd
[ "MIT" ]
null
null
null
src/db/models/artist_album.py
jsbecerrab/Loka-prueba-backend
d47250a68e3e28375c0b8e0a6cdf78223b0d12cd
[ "MIT" ]
null
null
null
from sqlalchemy import Column, ForeignKey, Integer, DateTime from sqlalchemy.orm import relationship from ..database import Base class Artist_album(Base): __tablename__ = "artists_albums" id = Column(Integer, primary_key=True, index=True) artist_id = Column(Integer, ForeignKey("artists.id")) album_id...
36.5
68
0.75
69
584
6.130435
0.42029
0.092199
0.106383
0.118203
0
0
0
0
0
0
0
0
0.142123
584
16
69
36.5
0.844311
0
0
0
0
0
0.123077
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2c488abf9ca04504184d8340dff0f547466c24fd
1,110
py
Python
examples/simple_resource.py
pdyba/lambdalizator
0371b8d3e25249096a9c7e7cf90fc590a99ad536
[ "MIT" ]
3
2020-09-26T11:05:32.000Z
2021-09-25T08:58:10.000Z
examples/simple_resource.py
pdyba/lambdalizator
0371b8d3e25249096a9c7e7cf90fc590a99ad536
[ "MIT" ]
15
2020-09-29T12:10:55.000Z
2021-11-17T10:42:21.000Z
examples/simple_resource.py
pdyba/lambdalizator
0371b8d3e25249096a9c7e7cf90fc590a99ad536
[ "MIT" ]
1
2020-09-26T11:05:38.000Z
2020-09-26T11:05:38.000Z
#!/usr/bin/env python3.8 # coding=utf-8 """ Simple Lambda Handler """ from lbz.dev.server import MyDevServer from lbz.dev.test import Client from lbz.exceptions import LambdaFWException from lbz.resource import Resource from lbz.response import Response from lbz.router import add_route class HelloWorld(Resource): ...
26.428571
81
0.691892
137
1,110
5.437956
0.540146
0.056376
0.026846
0
0
0
0
0
0
0
0
0.007752
0.186486
1,110
41
82
27.073171
0.817276
0.120721
0
0
0
0
0.060104
0.02487
0
0
0
0
0.038462
1
0.153846
false
0
0.230769
0.038462
0.576923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2c48f750067a643a09b94ad43993a6e0c7fcf3bf
774
py
Python
blog_app/migrations/0019_auto_20200901_0727.py
Rxavio/django-blog
573ff668537465112d355490f19fa8bb8864fde8
[ "MIT" ]
null
null
null
blog_app/migrations/0019_auto_20200901_0727.py
Rxavio/django-blog
573ff668537465112d355490f19fa8bb8864fde8
[ "MIT" ]
null
null
null
blog_app/migrations/0019_auto_20200901_0727.py
Rxavio/django-blog
573ff668537465112d355490f19fa8bb8864fde8
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-09-01 05:27 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog_app', '0018_auto_20200830_0501'), ] operati...
29.769231
129
0.630491
82
774
5.792683
0.646341
0.042105
0.067368
0.088421
0
0
0
0
0
0
0
0.056314
0.242894
774
25
130
30.96
0.754266
0.05814
0
0.210526
1
0
0.137552
0.031637
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c55a44f1708355490f6623e534cfe988d374906
45,032
py
Python
tools/mytools/ARIA/src/py/aria/Network.py
fmareuil/Galaxy_test_pasteur
6f84fb0fc52e3e7dd358623b5da5354c66e16a5f
[ "CC-BY-3.0" ]
null
null
null
tools/mytools/ARIA/src/py/aria/Network.py
fmareuil/Galaxy_test_pasteur
6f84fb0fc52e3e7dd358623b5da5354c66e16a5f
[ "CC-BY-3.0" ]
null
null
null
tools/mytools/ARIA/src/py/aria/Network.py
fmareuil/Galaxy_test_pasteur
6f84fb0fc52e3e7dd358623b5da5354c66e16a5f
[ "CC-BY-3.0" ]
null
null
null
""" Authors: Bardiaux Benjamin Institut Pasteur, Paris IBPC, Paris Copyright (C) 2005 Michael Habeck, Wolfgang Rieping and Benjamin Bardiaux No warranty implied or expressed. All rights reserved. $Author: bardiaux $ $Revision: 1.1.1.1 $ $Date: 2010/03/23 1...
30.4476
144
0.504641
5,055
45,032
4.338477
0.122255
0.013406
0.007934
0.005016
0.312571
0.257033
0.232456
0.218503
0.195021
0.183165
0
0.015842
0.38184
45,032
1,478
145
30.4682
0.771994
0.089159
0
0.295511
0
0.004988
0.072625
0.014793
0
0
0
0.000677
0
0
null
null
0
0.044888
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2c567e06fe0b4a514046c47e0475e1aaaccbe7e1
482
py
Python
website/wiki/plugins/images/migrations/0002_auto_20151118_1811.py
Bournvita1998/serc
5cdbe0ea89451c56bdb05b3bb6d178aad45c3a74
[ "MIT" ]
null
null
null
website/wiki/plugins/images/migrations/0002_auto_20151118_1811.py
Bournvita1998/serc
5cdbe0ea89451c56bdb05b3bb6d178aad45c3a74
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
e/mail-relay/web/wiki/plugins/images/migrations/0002_auto_20151118_1811.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
2
2016-12-13T10:02:39.000Z
2019-05-16T05:58:16.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wiki_images', '0001_initial'), ] operations = [ migrations.AlterModelTable( name='image', table='wik...
20.956522
46
0.593361
40
482
6.875
0.625
0.109091
0.210909
0
0
0
0
0
0
0
0
0.014749
0.296681
482
22
47
21.909091
0.79646
0.043568
0
0.25
0
0
0.180828
0.054466
0
0
0
0
0
1
0
false
0
0.125
0
0.3125
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c5c09b1bffec3d9d337a43ebc68475a241f04d3
229
py
Python
farmy/modules/led.py
farmy-maker/farmy-py
e21cc816073e62d34a84e82a8dbc3075cb9c4d47
[ "Apache-2.0" ]
1
2017-09-28T07:44:25.000Z
2017-09-28T07:44:25.000Z
farmy/modules/led.py
farmy-maker/farmy-py
e21cc816073e62d34a84e82a8dbc3075cb9c4d47
[ "Apache-2.0" ]
null
null
null
farmy/modules/led.py
farmy-maker/farmy-py
e21cc816073e62d34a84e82a8dbc3075cb9c4d47
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from modules.controller import Controller LED_PIN = 23 # pin of led if __name__ == "__main__": controller = Controller(LED_PIN) controller.run(50, 1) print("Led Start for a second with 50% power")
20.818182
50
0.694323
34
229
4.382353
0.705882
0.174497
0.214765
0
0
0
0
0
0
0
0
0.043956
0.20524
229
10
51
22.9
0.774725
0.104803
0
0
0
0
0.222772
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c5e49aea9d8124efaadeb1e5de150138508a7bb
2,608
py
Python
docs/conf.py
guillaume-wisniewski/elpis
550c350fd0098751b9a502a253bc4066f15c47db
[ "Apache-2.0" ]
118
2018-11-25T22:00:11.000Z
2022-03-18T10:18:33.000Z
docs/conf.py
guillaume-wisniewski/elpis
550c350fd0098751b9a502a253bc4066f15c47db
[ "Apache-2.0" ]
189
2019-01-25T01:37:59.000Z
2022-02-16T02:31:23.000Z
docs/conf.py
guillaume-wisniewski/elpis
550c350fd0098751b9a502a253bc4066f15c47db
[ "Apache-2.0" ]
34
2018-11-28T20:31:38.000Z
2022-01-27T12:20:59.000Z
# 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...
33.435897
87
0.664494
342
2,608
4.979532
0.491228
0.023488
0.022314
0.017616
0.057546
0
0
0
0
0
0
0.004047
0.147239
2,608
77
88
33.87013
0.761691
0.674847
0
0
0
0
0.394608
0.029412
0
0
0
0.012987
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2c6117485781c2c31bb5fbf18702c529d404a85e
1,820
py
Python
kite-python/kite_ml/kite/name_encoder/scope_encoder.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
17
2022-01-10T11:01:50.000Z
2022-03-25T03:21:08.000Z
kite-python/kite_ml/kite/name_encoder/scope_encoder.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
1
2022-01-13T14:28:47.000Z
2022-01-13T14:28:47.000Z
kite-python/kite_ml/kite/name_encoder/scope_encoder.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
7
2022-01-07T03:58:10.000Z
2022-03-24T07:38:20.000Z
from typing import Dict, Any import tensorflow as tf from ..utils.segmented_data import SegmentedIndices, SegmentedIndicesFeed from ..graph_encoder.embeddings import NodeEmbeddings class Encoder(object): def __init__(self, nodes: NodeEmbeddings): self._nodes = nodes self._build() def _buil...
34.339623
104
0.644505
216
1,820
5.148148
0.296296
0.06295
0.080935
0.085432
0.138489
0.059353
0
0
0
0
0
0
0.273626
1,820
52
105
35
0.84115
0.19011
0
0
0
0
0.05325
0
0
0
0
0
0
1
0.21875
false
0
0.125
0.0625
0.46875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2c62b01797bc951466927b86c37a5f651bd8ad8f
1,390
py
Python
auth/views.py
KenMwaura1/zoo_pitch
c83edf6fb53bdfc3739bedbea258f9ffc6f6925c
[ "MIT" ]
2
2021-09-19T04:45:44.000Z
2021-09-19T18:37:16.000Z
auth/views.py
KenMwaura1/zoo_pitch
c83edf6fb53bdfc3739bedbea258f9ffc6f6925c
[ "MIT" ]
null
null
null
auth/views.py
KenMwaura1/zoo_pitch
c83edf6fb53bdfc3739bedbea258f9ffc6f6925c
[ "MIT" ]
null
null
null
from flask import flash, render_template, redirect, request, url_for from flask_login import login_required, login_user, logout_user from . import auth from .forms import UserLoginForm, UserRegForm from app.commands import db from app.models import User from app.send_email import mail_message @auth.route('/login', me...
35.641026
100
0.709353
192
1,390
5
0.359375
0.025
0.029167
0.035417
0.104167
0.054167
0
0
0
0
0
0
0.159712
1,390
38
101
36.578947
0.821918
0
0
0.0625
0
0
0.119424
0
0
0
0
0
0
1
0.09375
false
0.09375
0.21875
0
0.46875
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2c6b4180cafccab3b589b0d309ed2441b3687e2d
1,465
py
Python
src/views/send/target_address_form_view.py
Kevingislason/bitcoin_hardware_wallet_ui
226983546c7c8838ca8bc72accdd6adbd8013446
[ "MIT" ]
null
null
null
src/views/send/target_address_form_view.py
Kevingislason/bitcoin_hardware_wallet_ui
226983546c7c8838ca8bc72accdd6adbd8013446
[ "MIT" ]
5
2021-06-02T03:21:46.000Z
2022-03-12T00:55:35.000Z
src/views/send/target_address_form_view.py
Kevingislason/abacus_wallet_bridge
226983546c7c8838ca8bc72accdd6adbd8013446
[ "MIT" ]
null
null
null
from PyQt6.QtCore import * from PyQt6.QtGui import * from PyQt6.QtWidgets import * class TargetAddressForm(QWidget): def __init__(self): super().__init__() self.layout = QHBoxLayout() self.setLayout(self.layout) self.target_address_label = QLabel("Pay to:") self.target_ad...
44.393939
116
0.763823
170
1,465
6.258824
0.229412
0.178571
0.303571
0.144737
0.644737
0.612782
0.332707
0.242481
0.242481
0.242481
0
0.006431
0.150853
1,465
32
117
45.78125
0.848875
0.012287
0
0
0
0
0.004844
0
0
0
0
0
0
1
0.041667
false
0
0.125
0
0.208333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c6c2e152a67cf3da0646f687e2033d8230c0268
518
py
Python
tests/test_overwrite_store.py
schwa-lab/libschwa-python
aebe5b0cf91e55b9e054ecff46a6e74fcd19f490
[ "MIT" ]
5
2015-03-23T17:19:18.000Z
2017-06-07T18:24:50.000Z
tests/test_overwrite_store.py
schwa-lab/libschwa-python
aebe5b0cf91e55b9e054ecff46a6e74fcd19f490
[ "MIT" ]
null
null
null
tests/test_overwrite_store.py
schwa-lab/libschwa-python
aebe5b0cf91e55b9e054ecff46a6e74fcd19f490
[ "MIT" ]
null
null
null
# vim: set et nosi ai ts=2 sts=2 sw=2: # coding: utf-8 from __future__ import absolute_import, print_function, unicode_literals import unittest from schwa import dr class Node(dr.Ann): label = dr.Field() class Doc(dr.Doc): store = dr.Store(Node) class Test(unittest.TestCase): def _test_example(self, doc): ...
19.185185
73
0.69305
79
518
4.392405
0.56962
0.095101
0.080692
0.103746
0
0
0
0
0
0
0
0.009479
0.185328
518
26
74
19.923077
0.812796
0.096525
0
0
0
0
0.062366
0
0
0
0
0
0.066667
1
0.133333
false
0
0.2
0
0.666667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2c7f7b1f3c0b5c1795a18f512daba60361ae64d1
2,549
py
Python
Samples/NLPSample.py
Klangoo/MagnetApiClient.Python
adf36c0e8b094a282827801b1ccf0aaf56165b3f
[ "MIT" ]
null
null
null
Samples/NLPSample.py
Klangoo/MagnetApiClient.Python
adf36c0e8b094a282827801b1ccf0aaf56165b3f
[ "MIT" ]
null
null
null
Samples/NLPSample.py
Klangoo/MagnetApiClient.Python
adf36c0e8b094a282827801b1ccf0aaf56165b3f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -- coding: UTF-8 -- """ Magnet API NLP Sample Copyright 2018, Klangoo Inc. """ from klangooclient.MagnetAPIClient import MagnetAPIClient ENDPOINT = 'https://nlp.klangoo.com/Service.svc' CALK = 'enter your calk here' SECRET_KEY = 'enter your secret key here' client = MagnetAPIClient(END...
44.719298
245
0.721852
346
2,549
5.225434
0.248555
0.049779
0.082965
0.05531
0.661504
0.619469
0.619469
0.619469
0.619469
0.619469
0
0.006922
0.149863
2,549
57
246
44.719298
0.827411
0.0357
0
0.365854
0
0.121951
0.592062
0
0
0
0
0
0
1
0.121951
false
0
0.02439
0
0.146341
0.243902
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c80a3d4d74ea16474f3364d5a8e43e993d0be8b
952
py
Python
15-3SUM/solution.py
alfmunny/leetcode
e35d2164c7e6e66410309fe1667ceab5a7689bef
[ "MIT" ]
null
null
null
15-3SUM/solution.py
alfmunny/leetcode
e35d2164c7e6e66410309fe1667ceab5a7689bef
[ "MIT" ]
null
null
null
15-3SUM/solution.py
alfmunny/leetcode
e35d2164c7e6e66410309fe1667ceab5a7689bef
[ "MIT" ]
null
null
null
class Solution: def threeSum(self, nums: List[int]) -> List[List[int]]: if len(nums) < 3: return [] ans = [] nums.sort() for i in range(0, len(nums)-2): if nums[i] > 0: break if i > 0 and nums[i-1] == nums[i]: contin...
32.827586
72
0.366597
106
952
3.292453
0.292453
0.071633
0.094556
0.12894
0.126075
0.126075
0
0
0
0
0
0.038961
0.514706
952
28
73
34
0.71645
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.037037
false
0
0
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c86d57953ceb081ab010190a1fd6e152927560a
8,829
py
Python
py/sandbox.python.py
schaabs/sandbox
ee8abb2a8220ca841b9b5a2579c25d100a43eb4f
[ "MIT" ]
null
null
null
py/sandbox.python.py
schaabs/sandbox
ee8abb2a8220ca841b9b5a2579c25d100a43eb4f
[ "MIT" ]
2
2018-02-01T19:58:53.000Z
2018-02-23T00:50:18.000Z
py/sandbox.python.py
schaabs/sandbox
ee8abb2a8220ca841b9b5a2579c25d100a43eb4f
[ "MIT" ]
1
2020-12-16T06:35:51.000Z
2020-12-16T06:35:51.000Z
import hashlib import shutil import io import gzip import platform import os import struct import json import mmap class ElfConst: CLASS_32 = 1 CLASS_64 = 2 DATA_LE = 1 DATA_BE = 2 TYPE_RELOC = 1 TYPE_EXEC = 2 TYPE_SHARED = 3 TYPE_CORE = 4 class Layout: ElfIdent = b'=4sBBBBBxxxxx...
30.030612
164
0.557028
891
8,829
5.396184
0.162739
0.046589
0.043261
0.067388
0.337146
0.31094
0.288062
0.288062
0.258527
0.179701
0
0.014426
0.340469
8,829
293
165
30.133106
0.811266
0.014724
0
0.220183
0
0
0.050247
0
0.004587
0
0
0
0
0
null
null
0
0.041284
null
null
0.045872
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2c88f77b721f16bdbc0e12c2be60eceb519ef175
800
py
Python
log_redaction_cli.py
kalaboster/strings
a0c7160af0715599721afce92e739283a556f80c
[ "Apache-2.0" ]
1
2019-09-25T04:34:25.000Z
2019-09-25T04:34:25.000Z
log_redaction_cli.py
kalaboster/strings
a0c7160af0715599721afce92e739283a556f80c
[ "Apache-2.0" ]
null
null
null
log_redaction_cli.py
kalaboster/strings
a0c7160af0715599721afce92e739283a556f80c
[ "Apache-2.0" ]
null
null
null
"""log_redaction_cli Usage: log_redaction_cli.py --tarfile <tarfile> --working-dir <working-dir> --output-dir <output-dir> log_redaction_cli.py (-h | --help) log_redaction_cli.py --version Options: -h --help Pass in a string: example command: python log_redaction_cli.py --tarfile "test/files/test_output.t...
33.333333
214
0.7325
116
800
4.75
0.431034
0.130672
0.136116
0.123412
0.087114
0
0
0
0
0
0
0.004267
0.12125
800
23
215
34.782609
0.779516
0.55375
0
0
0
0
0.135057
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2c9245c4a0d3d6fcf05085c489277adf12ebc45d
1,982
py
Python
P2_studies/theta_plus/Analysis/Mapping/match_mcl_to_leiden.py
chackoge/ERNIE_Plus
7e480c47a69fc2f736ac7fb55ece35dbff919938
[ "MIT" ]
6
2017-09-26T23:45:52.000Z
2021-10-18T22:58:38.000Z
P2_studies/theta_plus/Analysis/Mapping/match_mcl_to_leiden.py
NETESOLUTIONS/ERNIE
454518f28b39a6f37ad8dde4f3be15d4dccc6f61
[ "MIT" ]
null
null
null
P2_studies/theta_plus/Analysis/Mapping/match_mcl_to_leiden.py
NETESOLUTIONS/ERNIE
454518f28b39a6f37ad8dde4f3be15d4dccc6f61
[ "MIT" ]
9
2017-11-22T13:42:32.000Z
2021-05-16T17:58:03.000Z
import pandas as pd import mapping_module as mm import multiprocessing as mp from sqlalchemy import create_engine from sys import argv user_name = argv[1] password = argv[2] data_type = argv[3] start_year = int(argv[4]) end_year = int(argv[5]) leiden_input = argv[6] #quality_func_Res --> CPM_R001 schema = argv[7] root...
33.59322
99
0.734107
308
1,982
4.383117
0.366883
0.035556
0.026667
0.042222
0.164444
0.124444
0.105185
0.057778
0
0
0
0.016336
0.135217
1,982
59
100
33.59322
0.771295
0.135217
0
0.052632
0
0
0.12075
0.043376
0
0
0
0
0
1
0
false
0.052632
0.131579
0
0.131579
0.078947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2c962f2954bff9d6229947f6de4e0917ddfe1361
576
py
Python
lib/DuplicatePairDetector.py
hapsby/deepAPIRevisited
826c0893dd828380d13e58ac9739a49525e7f001
[ "MIT" ]
null
null
null
lib/DuplicatePairDetector.py
hapsby/deepAPIRevisited
826c0893dd828380d13e58ac9739a49525e7f001
[ "MIT" ]
null
null
null
lib/DuplicatePairDetector.py
hapsby/deepAPIRevisited
826c0893dd828380d13e58ac9739a49525e7f001
[ "MIT" ]
null
null
null
import hashlib class DuplicatePairDetector: def __init__(self): self.hashes = set() def add_if_new(self, description, api_calls): hash_binary = self.get_hash_binary(description, api_calls) if hash_binary in self.hashes: return False self.hashes.add(hash_binary) ...
26.181818
66
0.651042
75
576
4.746667
0.44
0.140449
0.160112
0.129213
0
0
0
0
0
0
0
0.011628
0.253472
576
21
67
27.428571
0.816279
0
0
0
0
0
0.017391
0
0
0
0
0
0
1
0.2
false
0
0.066667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2c964b266d17c7b782f7971364713668a723fd0e
328
py
Python
beginner/sum-of-all-numbers_ChingLingYeung.py
garvitsharma05/hacktoberithms
25aea28f362de22414569d67436a670bea5a3aeb
[ "MIT" ]
16
2018-10-05T07:35:06.000Z
2021-10-02T12:12:52.000Z
beginner/sum-of-all-numbers_ChingLingYeung.py
garvitsharma05/hacktoberithms
25aea28f362de22414569d67436a670bea5a3aeb
[ "MIT" ]
50
2018-10-04T00:04:24.000Z
2019-10-25T16:29:58.000Z
beginner/sum-of-all-numbers_ChingLingYeung.py
garvitsharma05/hacktoberithms
25aea28f362de22414569d67436a670bea5a3aeb
[ "MIT" ]
115
2018-10-04T02:42:18.000Z
2021-01-27T17:34:21.000Z
def sum_all(ls): sum = 0 if(len(ls) != 2): print("Invalid input") else: ls.sort() start = ls[0] end = ls[1] if(start == end): sum = 2 * start else: for i in range(start, end+1): sum += i ret...
15.619048
41
0.368902
40
328
3
0.525
0.133333
0
0
0
0
0
0
0
0
0
0.037267
0.509146
328
20
42
16.4
0.708075
0
0
0.142857
0
0
0.039755
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.142857
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2ca16bdb7e66900966a36a0cd4986826181aae35
1,967
py
Python
CS307/testbench_log/fileDB/Client.py
ntdgy/python_study
c3511846a89ea72418937de4cc3edf1595a46ec5
[ "MIT" ]
null
null
null
CS307/testbench_log/fileDB/Client.py
ntdgy/python_study
c3511846a89ea72418937de4cc3edf1595a46ec5
[ "MIT" ]
null
null
null
CS307/testbench_log/fileDB/Client.py
ntdgy/python_study
c3511846a89ea72418937de4cc3edf1595a46ec5
[ "MIT" ]
null
null
null
# -*- coding = utf-8 -*- # @Time: 2022/4/13 19:35 # @Author: Anshang # @File: Client.py # @Software: PyCharm import socket from multiprocessing import Process, Pipe def connection(pipe: Pipe, username, password): ip_bind = ("127.0.0.1", 9900) c = socket.socket() c.connect(ip_bind) login = 'login ' + ...
31.222222
125
0.608033
257
1,967
4.536965
0.354086
0.072041
0.051458
0.030875
0.278731
0.278731
0.278731
0.258148
0.21012
0.168096
0
0.034667
0.237417
1,967
62
126
31.725806
0.742667
0.049822
0
0.130435
0
0.021739
0.263017
0
0
0
0
0
0
1
0.108696
false
0.108696
0.043478
0
0.217391
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2cab7c782174400d830c6863e839dd45a2ff2d54
2,416
py
Python
face.py
1MT3J45/DS-StockAnalysis
20de4270a31e41324adc2c67ecb2343ff0c208c7
[ "Apache-2.0" ]
null
null
null
face.py
1MT3J45/DS-StockAnalysis
20de4270a31e41324adc2c67ecb2343ff0c208c7
[ "Apache-2.0" ]
null
null
null
face.py
1MT3J45/DS-StockAnalysis
20de4270a31e41324adc2c67ecb2343ff0c208c7
[ "Apache-2.0" ]
null
null
null
from kivy.uix.boxlayout import BoxLayout from kivy.lang import Builder from kivy.app import App import YP03 import sys import dfgui import pandas as pd Builder.load_string(''' <faceTool>: num1: num1 result: result orientation: 'vertical' BoxLayout: orientation: 'horizontal' Label: ...
23.456311
68
0.500414
248
2,416
4.766129
0.419355
0.040609
0.06599
0.076142
0.175127
0.084602
0.06599
0
0
0
0
0.024665
0.412666
2,416
102
69
23.686275
0.808316
0.084023
0
0.402439
0
0
0.634404
0.010092
0
0
0
0
0
1
0.073171
false
0
0.097561
0.012195
0.207317
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2cb12c4d4584cf6f238a2a2f0fe96c07ce3365fd
8,064
py
Python
examples/resnet-v1/resnet_v1.py
statisticszhang/Image-classification-caffe-model
33084ca0841e768dae84db582e15bb29ffeeaaec
[ "MIT" ]
1
2020-06-03T12:53:43.000Z
2020-06-03T12:53:43.000Z
examples/resnet-v1/resnet_v1.py
statisticszhang/Image-classification-caffe-model
33084ca0841e768dae84db582e15bb29ffeeaaec
[ "MIT" ]
null
null
null
examples/resnet-v1/resnet_v1.py
statisticszhang/Image-classification-caffe-model
33084ca0841e768dae84db582e15bb29ffeeaaec
[ "MIT" ]
null
null
null
import caffe from caffe import layers as L from caffe import params as P def conv_bn_scale_relu(bottom, num_output=64, kernel_size=3, stride=1, pad=0): conv = L.Convolution(bottom, num_output=num_output, kernel_size=kernel_size, stride=stride, pad=pad, param=[dict(lr_mult=1, decay_mult=1)...
51.363057
130
0.637773
1,171
8,064
4.156277
0.140051
0.025478
0.053626
0.032874
0.61804
0.505034
0.428806
0.399219
0.39285
0.368399
0
0.042083
0.242684
8,064
156
131
51.692308
0.754871
0.017609
0
0.295238
0
0.085714
0.032696
0
0
0
0
0
0
0
null
null
0.009524
0.028571
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2cb740471359d11f904828cc498bfc6b7c07a43b
1,247
py
Python
Prep/bbphone.py
armsky/Algorithms
04fe858f001d7418f8e0eab454b779fe1e863483
[ "Apache-2.0" ]
null
null
null
Prep/bbphone.py
armsky/Algorithms
04fe858f001d7418f8e0eab454b779fe1e863483
[ "Apache-2.0" ]
null
null
null
Prep/bbphone.py
armsky/Algorithms
04fe858f001d7418f8e0eab454b779fe1e863483
[ "Apache-2.0" ]
2
2019-06-27T09:05:07.000Z
2019-07-01T04:41:53.000Z
// This is the text editor interface. // Anything you type or change here will be seen by the other person in real time. import java.util.*; public class HelloWorld { public static boolean isSentence(String s, HashSet<String> d) { return false; } public static void main(String[] args) { ...
22.267857
82
0.597434
164
1,247
4.542683
0.45122
0.139597
0.096644
0.114094
0.096644
0
0
0
0
0
0
0.003308
0.272654
1,247
55
83
22.672727
0.818082
0
0
0.159091
0
0
0.085806
0
0
0
0
0
0
0
null
null
0
0.022727
null
null
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2cb9006dc93f30229a35a9a95092c8065ef3469e
860
py
Python
phantastes/urls.py
santeyio/phantastesproject
5ce1e2cb59e8283fe280e01d0e185be62cd4001a
[ "MIT" ]
null
null
null
phantastes/urls.py
santeyio/phantastesproject
5ce1e2cb59e8283fe280e01d0e185be62cd4001a
[ "MIT" ]
null
null
null
phantastes/urls.py
santeyio/phantastesproject
5ce1e2cb59e8283fe280e01d0e185be62cd4001a
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import patterns, include, url from django.conf.urls.static import static from django.views.generic import TemplateView from phantastes import views from django.contrib import admin urlpatterns = patterns( "", url(r"^$", views.index, name="home"), url...
35.833333
76
0.696512
111
860
5.369369
0.324324
0.060403
0.07047
0.060403
0
0
0
0
0
0
0
0
0.119767
860
23
77
37.391304
0.787318
0
0
0
0
0
0.20814
0
0
0
0
0
0
1
0
false
0
0.315789
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2cc4536cac3f4a836b4d31edbb9c035b10194cbe
937
bzl
Python
build/buildflag_header.bzl
Lynskylate/chromium-base-bazel
e68247d002809f0359e28ee7fc6c5c33de93ce9d
[ "BSD-3-Clause" ]
null
null
null
build/buildflag_header.bzl
Lynskylate/chromium-base-bazel
e68247d002809f0359e28ee7fc6c5c33de93ce9d
[ "BSD-3-Clause" ]
null
null
null
build/buildflag_header.bzl
Lynskylate/chromium-base-bazel
e68247d002809f0359e28ee7fc6c5c33de93ce9d
[ "BSD-3-Clause" ]
1
2020-04-30T08:12:46.000Z
2020-04-30T08:12:46.000Z
# Primitive reimplementation of the buildflag_header scripts used in the gn build def _buildflag_header_impl(ctx): content = "// Generated by build/buildflag_header.bzl\n" content += '// From "' + ctx.attr.name + '"\n' content += "\n#ifndef %s_h\n" % ctx.attr.name content += "#define %s_h\n\n" % ctx.at...
39.041667
88
0.638207
124
937
4.669355
0.370968
0.072539
0.075993
0.062176
0.093264
0.048359
0
0
0
0
0
0
0.197439
937
23
89
40.73913
0.769947
0.084312
0
0
1
0
0.264019
0.11215
0
0
0
0
0
1
0.05
false
0
0
0
0.05
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2ccae3f2f4d0694e8447d48bb97cc62a0e4c0a05
1,420
py
Python
Sprint-Challenge/acme_test.py
martinclehman/DS-Unit-3-Sprint-1-Software-Engineering
7bca22a2b398ee57021bbe7efd66e3d6cd55f527
[ "MIT" ]
null
null
null
Sprint-Challenge/acme_test.py
martinclehman/DS-Unit-3-Sprint-1-Software-Engineering
7bca22a2b398ee57021bbe7efd66e3d6cd55f527
[ "MIT" ]
null
null
null
Sprint-Challenge/acme_test.py
martinclehman/DS-Unit-3-Sprint-1-Software-Engineering
7bca22a2b398ee57021bbe7efd66e3d6cd55f527
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest from acme import Product from acme_report import generate_products, ADJECTIVES, NOUNS class AcmeProductTests(unittest.TestCase): """Making sure Acme products are the tops!""" def test_default_product_price(self): """Test default product price being 10.""" ...
30.869565
68
0.650704
158
1,420
5.683544
0.411392
0.038976
0.080178
0.057906
0.158129
0.091314
0.091314
0
0
0
0
0.022202
0.238732
1,420
45
69
31.555556
0.808511
0.122535
0
0.137931
1
0
0.062857
0
0
0
0
0
0.241379
1
0.172414
false
0
0.103448
0
0.344828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2cccf7b04a13dc0853d0b836ac33f0e371b7ca36
670
py
Python
login/weibo_with_known_cookie.py
bobjiangps/python-spider-example
7021dc3052fe1a667b79b810403e8ae3f03253b3
[ "MIT" ]
null
null
null
login/weibo_with_known_cookie.py
bobjiangps/python-spider-example
7021dc3052fe1a667b79b810403e8ae3f03253b3
[ "MIT" ]
3
2021-03-31T19:20:41.000Z
2022-03-12T01:03:06.000Z
login/weibo_with_known_cookie.py
bobjiangps/python-spider-example
7021dc3052fe1a667b79b810403e8ae3f03253b3
[ "MIT" ]
null
null
null
import requests if __name__ == "__main__": headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Accept-Language': 'zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3', 'User-Agent': 'Mozilla/5.0 (Macintosh; ...
41.875
145
0.652239
103
670
4.15534
0.660194
0.028037
0.014019
0
0
0
0
0
0
0
0
0.080357
0.164179
670
16
146
41.875
0.683929
0.016418
0
0
0
0.230769
0.577508
0.241641
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2ccddb9cadd2a8adb62f81d94b7e34242493a393
5,728
py
Python
src/imagedata/formats/__init__.py
erling6232/imagedata
69226b317ff43eb52ed48503582e5770bcb47ec4
[ "MIT" ]
1
2021-09-02T07:20:19.000Z
2021-09-02T07:20:19.000Z
src/imagedata/formats/__init__.py
erling6232/imagedata
69226b317ff43eb52ed48503582e5770bcb47ec4
[ "MIT" ]
3
2018-02-28T09:54:21.000Z
2022-03-22T10:05:39.000Z
src/imagedata/formats/__init__.py
erling6232/imagedata
69226b317ff43eb52ed48503582e5770bcb47ec4
[ "MIT" ]
null
null
null
"""This module provides plugins for various imaging formats. Standard plugins provides support for DICOM and Nifti image file formats. """ # Copyright (c) 2013-2018 Erling Andersen, Haukeland University Hospital, Bergen, Norway import logging import sys import numpy as np logger = logging.getLogger(__name__) (SOR...
26.155251
101
0.638268
771
5,728
4.516213
0.20882
0.180931
0.059736
0.068926
0.350373
0.321367
0.238943
0.217691
0.115451
0.082711
0
0.011582
0.246334
5,728
219
102
26.155251
0.794997
0.107716
0
0.230769
0
0
0.100633
0
0
0
0
0
0
1
0.064103
false
0.057692
0.025641
0
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e2bd10babdd8ebe01076d27ea6c764ee6769a395
351
py
Python
CV0101EN-03-image_Region_of_img.py
reddyprasade/Computer-Vision-with-Python
8eebec61f0fdacb05e122460d6845a32ae506c8f
[ "Apache-2.0" ]
null
null
null
CV0101EN-03-image_Region_of_img.py
reddyprasade/Computer-Vision-with-Python
8eebec61f0fdacb05e122460d6845a32ae506c8f
[ "Apache-2.0" ]
null
null
null
CV0101EN-03-image_Region_of_img.py
reddyprasade/Computer-Vision-with-Python
8eebec61f0fdacb05e122460d6845a32ae506c8f
[ "Apache-2.0" ]
null
null
null
# Image ROI(Region of Images) import cv2 as cv img = cv.imread('Photes/messi.jpg') cv.imshow('Orginal Messi_Football',img) ball = img[280:340, 330:390] img[273:333, 100:160] = ball cv.imshow('Change Messi_Football',img) """ import matplotlib.pyplot as plt data = plt.imread('Photes/messi.jpg') plt....
17.55
40
0.669516
55
351
4.236364
0.581818
0.103004
0.145923
0.171674
0
0
0
0
0
0
0
0.085911
0.17094
351
19
41
18.473684
0.714777
0.076923
0
0
0
0
0.29798
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1