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
4a74535f82f150b208cc5da6ceb614a11fcfe975
5,254
py
Python
src/azure-cli-core/azure/cli/core/commands/progress.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
1
2019-11-15T17:28:05.000Z
2019-11-15T17:28:05.000Z
src/azure-cli-core/azure/cli/core/commands/progress.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
3
2019-07-12T22:10:38.000Z
2019-07-12T22:10:49.000Z
src/azure-cli-core/azure/cli/core/commands/progress.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
1
2020-12-14T15:30:14.000Z
2020-12-14T15:30:14.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
30.195402
100
0.589836
572
5,254
5.297203
0.23951
0.034323
0.035644
0.022772
0.230693
0.20033
0.156766
0.116832
0.074587
0.046865
0
0.001812
0.26456
5,254
173
101
30.369942
0.78235
0.2126
0
0.307692
0
0
0.0381
0
0
0
0
0
0.009615
1
0.240385
false
0.028846
0.028846
0
0.365385
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
4a7938fb0bedc7e39aaf28148682637f6397b413
2,865
py
Python
admins/migrations/0001_initial.py
uevol/devops
515573d9e73fa7f0800a89ae982642e0fe4176d9
[ "MIT" ]
2
2018-01-15T05:41:02.000Z
2021-07-27T12:09:25.000Z
admins/migrations/0001_initial.py
uevol/devops
515573d9e73fa7f0800a89ae982642e0fe4176d9
[ "MIT" ]
3
2020-06-05T17:15:52.000Z
2022-03-08T21:09:04.000Z
admins/migrations/0001_initial.py
uevol/devops
515573d9e73fa7f0800a89ae982642e0fe4176d9
[ "MIT" ]
1
2018-01-15T05:42:03.000Z
2018-01-15T05:42:03.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-27 09:00 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
39.246575
145
0.55288
280
2,865
5.489286
0.303571
0.076122
0.070267
0.081978
0.55823
0.513338
0.443722
0.351334
0.295381
0.24203
0
0.026714
0.307504
2,865
72
146
39.791667
0.747984
0.023735
0
0.4375
1
0
0.079456
0
0
0
0
0
0
1
0
false
0.015625
0.0625
0
0.125
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
4a7b4d9dced7a0e97d1093ec6bd4e0a9ea2631be
346
py
Python
bot/objects/globals.py
amtp1/ubi-3
5736609bf448285fa036294b78707e52d136824a
[ "BSD-3-Clause" ]
null
null
null
bot/objects/globals.py
amtp1/ubi-3
5736609bf448285fa036294b78707e52d136824a
[ "BSD-3-Clause" ]
null
null
null
bot/objects/globals.py
amtp1/ubi-3
5736609bf448285fa036294b78707e52d136824a
[ "BSD-3-Clause" ]
null
null
null
from aiogram import Dispatcher, Bot from databases import Database from sqlalchemy import MetaData from targs.attack import Attack # Bot dp:Dispatcher = None bot:Bot = None config:dict = {} # DB db:Database = None metadata:MetaData = None db_engine = None # Mailing is_mailing:bool = False # Other client_session_obj...
16.47619
35
0.774566
49
346
5.387755
0.530612
0
0
0
0
0
0
0
0
0
0
0
0.15896
346
21
36
16.47619
0.907216
0.057803
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
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
4a7ed2288b6a9aacb651e523ba39ca104236e2af
2,985
py
Python
tests/test_pyimaprotect.py
pcourbin/pyimaprotect
0e9d768e70cace01d1d9c1f5f6e0ce66a5cbcb90
[ "MIT" ]
null
null
null
tests/test_pyimaprotect.py
pcourbin/pyimaprotect
0e9d768e70cace01d1d9c1f5f6e0ce66a5cbcb90
[ "MIT" ]
1
2021-04-11T23:07:26.000Z
2021-04-11T23:38:09.000Z
tests/test_pyimaprotect.py
pcourbin/pyimaprotect
0e9d768e70cace01d1d9c1f5f6e0ce66a5cbcb90
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Tests for `pyimaprotect` package.""" import logging import os import shutil from os import path from pyimaprotect import cli from pyimaprotect import IMAProtect from pyimaprotect.exceptions import IMAProtectConnectError from click.testing import CliRunner from dotenv import load_dotenv _LOGGE...
28.980583
88
0.649581
350
2,985
5.394286
0.265714
0.058263
0.044492
0.04661
0.449153
0.400424
0.400424
0.381886
0.381886
0.356462
0
0.002229
0.248576
2,985
102
89
29.264706
0.839501
0.080402
0
0.309859
0
0
0.055996
0.009259
0
0
0
0
0.183099
1
0.070423
false
0.126761
0.126761
0
0.197183
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
4a81b83af456633db14763f76850e9ad74459bc2
1,155
py
Python
jaseci_core/jaseci/actions/utils/find_action.py
Gim3l/jaseci
cca187ed3e6aae31514c6c0353a7844f7703d039
[ "MIT" ]
null
null
null
jaseci_core/jaseci/actions/utils/find_action.py
Gim3l/jaseci
cca187ed3e6aae31514c6c0353a7844f7703d039
[ "MIT" ]
null
null
null
jaseci_core/jaseci/actions/utils/find_action.py
Gim3l/jaseci
cca187ed3e6aae31514c6c0353a7844f7703d039
[ "MIT" ]
null
null
null
from jaseci import actions import pkgutil import importlib from inspect import getmembers from inspect import isfunction def find_action(func_name): """ Search for actions in action library and return func as [modname, funcname] if found """ prefix = actions.__name__ + "." for importer, modnam...
30.394737
79
0.601732
136
1,155
4.904412
0.330882
0.031484
0.050975
0.053973
0.482759
0.482759
0.482759
0.482759
0.482759
0.482759
0
0.002463
0.29697
1,155
37
80
31.216216
0.818966
0.14632
0
0.32
0
0
0.033791
0
0
0
0
0
0
1
0.08
false
0
0.36
0
0.52
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
4a85716d8da3f0638e3eae9a8a4d620977015908
681
py
Python
src/embled/led_driver.py
reggyred/siiembeddedsign
a6fa8b88d1dd3c429fbd08df3fb7ada45a9febb0
[ "MIT" ]
null
null
null
src/embled/led_driver.py
reggyred/siiembeddedsign
a6fa8b88d1dd3c429fbd08df3fb7ada45a9febb0
[ "MIT" ]
null
null
null
src/embled/led_driver.py
reggyred/siiembeddedsign
a6fa8b88d1dd3c429fbd08df3fb7ada45a9febb0
[ "MIT" ]
null
null
null
import spidev from encode import encode_rgb class LedDriver: def __init__(self): self.spi = spidev.SpiDev() self.spi.open(0, 0) self.spi.max_speed_hz = 7800000 def reset_signal(self): data = [0x00] * 200 self.spi.xfer3(data) def transmit(self, data, encode_func=en...
25.222222
67
0.632893
95
681
4.336842
0.326316
0.118932
0.087379
0.07767
0.451456
0.325243
0.325243
0.325243
0.325243
0.325243
0
0.04142
0.255507
681
26
68
26.192308
0.771203
0
0
0.3
0
0
0
0
0
0
0.005874
0
0
1
0.25
false
0
0.1
0
0.4
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
4a8591e62ff4527758c17bbfea45bc0f1b27a090
281
py
Python
test/modules/http2/test_000_infra.py
AlexAT/httpd
60a609e79a5821adba265ec93fc9cbff7bc925be
[ "Apache-2.0" ]
null
null
null
test/modules/http2/test_000_infra.py
AlexAT/httpd
60a609e79a5821adba265ec93fc9cbff7bc925be
[ "Apache-2.0" ]
null
null
null
test/modules/http2/test_000_infra.py
AlexAT/httpd
60a609e79a5821adba265ec93fc9cbff7bc925be
[ "Apache-2.0" ]
null
null
null
# # mod-h2 test suite # check that our test infrastructure is sane # import pytest class TestStore: @pytest.fixture(autouse=True, scope='class') def _class_scope(self, env): env.setup_data_1k_1m() yield def test_000_00(self): assert 1 == 1
15.611111
48
0.647687
40
281
4.375
0.75
0
0
0
0
0
0
0
0
0
0
0.047847
0.256228
281
17
49
16.529412
0.789474
0.213523
0
0
0
0
0.023256
0
0
0
0
0
0.125
1
0.25
false
0
0.125
0
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
4a86085225891fc9277f3bbca29a1e941880a401
397
py
Python
zip.py
Vishnu-Hacks/python-code-samples
cb0eb9c5b1877fbf9626c41032752e45aa3a5c15
[ "MIT" ]
null
null
null
zip.py
Vishnu-Hacks/python-code-samples
cb0eb9c5b1877fbf9626c41032752e45aa3a5c15
[ "MIT" ]
null
null
null
zip.py
Vishnu-Hacks/python-code-samples
cb0eb9c5b1877fbf9626c41032752e45aa3a5c15
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Sep 8 11:02:42 2018 @author: vishn """ """ zip function combines the correspoding elements of the two lists into tuples the function terminates when the tuple pairs becomes the size of the smallest array, in the following scenario 'd' will not be used to form any tuples """...
24.8125
84
0.70529
68
397
4.117647
0.764706
0.035714
0
0
0
0
0
0
0
0
0
0.057402
0.166247
397
16
85
24.8125
0.78852
0.052897
0
0
0
0
0.049383
0
0
0
0
0
0
0
null
null
0
0
null
null
0.25
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
4a8b641d89a8bf6eda773dca3cbcdebc3960ef04
13,841
py
Python
obfsproxy/network/network.py
SPIN-UMass/BLANKET
0d222f54dab8342c0b3473f8923fc3cd9e524722
[ "BSD-3-Clause" ]
10
2021-04-07T08:36:42.000Z
2022-03-29T12:47:33.000Z
obfsproxy/network/network.py
SPIN-UMass/BLANKET
0d222f54dab8342c0b3473f8923fc3cd9e524722
[ "BSD-3-Clause" ]
1
2021-04-07T15:09:54.000Z
2021-12-01T03:23:58.000Z
obfsproxy/network/network.py
SPIN-UMass/BLANKET
0d222f54dab8342c0b3473f8923fc3cd9e524722
[ "BSD-3-Clause" ]
5
2021-08-30T11:41:12.000Z
2022-03-01T06:21:56.000Z
from twisted.internet import reactor from twisted.internet.protocol import Protocol, Factory import obfsproxy.common.log as logging import obfsproxy.common.heartbeat as heartbeat import obfsproxy.network.buffer as obfs_buf import obfsproxy.transports.base as base log = logging.get_obfslogger() """ Networking subsys...
37.008021
106
0.64374
1,685
13,841
5.249258
0.208902
0.022612
0.02035
0.009045
0.269418
0.225212
0.200791
0.166422
0.123007
0.087733
0
0.000492
0.265804
13,841
373
107
37.107239
0.869908
0.067192
0
0.251748
0
0
0.126907
0
0
0
0
0
0.034965
0
null
null
0.006993
0.041958
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
4a8fcfb2a2bc027f93af4877e9394ce09af50ac8
634
py
Python
machine-learning/shape-detection/shape_detector.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
machine-learning/shape-detection/shape_detector.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
machine-learning/shape-detection/shape_detector.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import cv2 import sys # read the image image = cv2.imread(sys.argv[1]) # convert to grayscale grayscale = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # perform edge detection edges = cv2.Canny(grayscale, 30, 100) # detect lines in the image using hough li...
26.416667
78
0.681388
103
634
4.184466
0.572816
0.055684
0.027842
0.037123
0
0
0
0
0
0
0
0.077228
0.20347
634
24
79
26.416667
0.776238
0.269716
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
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
4a9066c7f4af05176ee1676b15c0f3c3a94eddaf
342
py
Python
example_5.py
mikolevy/webinar-function-examples
181ffee74654dbc52b8a86ff01f35ebabd388b3a
[ "MIT" ]
null
null
null
example_5.py
mikolevy/webinar-function-examples
181ffee74654dbc52b8a86ff01f35ebabd388b3a
[ "MIT" ]
null
null
null
example_5.py
mikolevy/webinar-function-examples
181ffee74654dbc52b8a86ff01f35ebabd388b3a
[ "MIT" ]
null
null
null
def log_info(func): def wrapper(): print("Wywołuję funkcję...") func() print("Już po wszystkim :)") return wrapper def say_hello(): print("Hello World!") def run_example(): say_hello_with_log_info = log_info(say_hello) say_hello_with_log_info() if __name__ == '__main_...
15.545455
49
0.625731
44
342
4.363636
0.477273
0.145833
0.125
0.15625
0.197917
0
0
0
0
0
0
0
0.245614
342
21
50
16.285714
0.744186
0
0
0
0
0
0.170088
0
0
0
0
0
0
1
0.307692
false
0
0
0
0.384615
0.230769
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
4a97a30c75f14ff5c7fa1ad3c397b64267b00a47
4,855
py
Python
api/importer/importer/infrastructure/write/mysql/upload_clarus_sales_record.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
api/importer/importer/infrastructure/write/mysql/upload_clarus_sales_record.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
api/importer/importer/infrastructure/write/mysql/upload_clarus_sales_record.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
from api.infrastructure.mysql.orm import autogen_entities import pandas as pd import os from numpy import nan import datetime from api.importer.importer.infrastructure.write.mysql.mysql_connection import MySqlConncetion from api.importer.importer.infrastructure.mappings.clarus_mappings import ClarusMappings from api.im...
39.471545
98
0.471473
394
4,855
5.65736
0.284264
0.034545
0.033647
0.051593
0.19022
0.10498
0.040377
0
0
0
0
0.007925
0.454171
4,855
123
99
39.471545
0.833208
0.017714
0
0.067416
1
0.011236
0.06104
0.033888
0
0
0
0
0
1
0.022472
false
0
0.123596
0
0.168539
0.033708
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
4a99077aa39b7902b0195e71dd91d90a6fbad123
1,295
py
Python
lib/exabgp/bgp/message/open/capability/unknown.py
cloudscale-ch/exabgp
55ee496dfbc3fce75c5107fae7a7d38567154d46
[ "BSD-3-Clause" ]
2
2018-02-07T14:49:11.000Z
2021-09-08T15:31:51.000Z
lib/exabgp/bgp/message/open/capability/unknown.py
nembery/exabgp
53cfff843ddde33bf1c437a1c4ce99de20c6bade
[ "BSD-3-Clause" ]
null
null
null
lib/exabgp/bgp/message/open/capability/unknown.py
nembery/exabgp
53cfff843ddde33bf1c437a1c4ce99de20c6bade
[ "BSD-3-Clause" ]
1
2020-07-23T16:53:39.000Z
2020-07-23T16:53:39.000Z
# encoding: utf-8 """ unknown.py Created by Thomas Mangin on 2014-06-30. Copyright (c) 2009-2017 Exa Networks. All rights reserved. License: 3-clause BSD. (See the COPYRIGHT file) """ from exabgp.util import ordinal from exabgp.bgp.message.open.capability.capability import Capability # =============================...
26.979167
101
0.67722
160
1,295
5.4375
0.41875
0.16092
0.073563
0.11954
0.195402
0.195402
0.101149
0.101149
0
0
0
0.018182
0.150579
1,295
47
102
27.553191
0.772727
0.196139
0
0.071429
0
0.035714
0.120272
0
0
0
0
0
0
1
0.178571
false
0
0.071429
0.071429
0.535714
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
4a99b979136ed06d8331bd55f411890f2623ff5f
2,745
py
Python
core/rest/logs.py
vhssunny1/Osmedeus
014a3e94632fb53979c43550f9e833a5b8409747
[ "MIT" ]
2
2019-05-19T18:05:10.000Z
2019-06-15T10:19:54.000Z
core/rest/logs.py
nhanledinh/Osmedeus
6e9c259774abb672ef2ffa5770b865880623af54
[ "MIT" ]
null
null
null
core/rest/logs.py
nhanledinh/Osmedeus
6e9c259774abb672ef2ffa5770b865880623af54
[ "MIT" ]
1
2019-09-19T09:27:22.000Z
2019-09-19T09:27:22.000Z
import os import json from flask_restful import Api, Resource, reqparse from flask_jwt_extended import jwt_required from flask import Flask, jsonify, render_template, request import utils current_path = os.path.dirname(os.path.realpath(__file__)) ''' get local logs command by workspace ''' class Logs(Resource): d...
37.094595
111
0.556284
316
2,745
4.639241
0.25
0.097544
0.114598
0.065484
0.519782
0.497954
0.497954
0.336971
0.279673
0.279673
0
0.004308
0.323497
2,745
73
112
37.60274
0.785137
0.025865
0
0.301887
0
0
0.098667
0.008381
0
0
0
0.013699
0
1
0.056604
false
0
0.113208
0
0.264151
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
4a9e5274b784bc4e4f29d530ac4028ddf3feff60
1,334
py
Python
tests/framework/AnalyticModels/optimizing/diagonal_valley_stochastic.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
159
2017-03-24T21:07:06.000Z
2022-03-20T13:44:40.000Z
tests/framework/AnalyticModels/optimizing/diagonal_valley_stochastic.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
1,667
2017-03-27T14:41:22.000Z
2022-03-31T19:50:06.000Z
tests/framework/AnalyticModels/optimizing/diagonal_valley_stochastic.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
95
2017-03-24T21:05:03.000Z
2022-03-08T17:30:22.000Z
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
29
76
0.655922
238
1,334
3.651261
0.44958
0.069045
0.034522
0.036824
0.050633
0
0
0
0
0
0
0.045198
0.203898
1,334
45
77
29.644444
0.77307
0.470765
0
0
0
0
0
0
0
0
0
0
0
1
0.208333
false
0
0.041667
0.041667
0.416667
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
4aa3ef156aa5b8f2964835215235096f18113dcd
413
py
Python
scripts/graphquestions/create_translations_in_json.py
arademaker/UDepLambda
00cc0e9808ecce27c4676fbba21192d63f315350
[ "Apache-2.0" ]
84
2017-03-17T14:09:06.000Z
2022-02-11T14:44:00.000Z
scripts/graphquestions/create_translations_in_json.py
arademaker/UDepLambda
00cc0e9808ecce27c4676fbba21192d63f315350
[ "Apache-2.0" ]
17
2017-02-27T19:13:23.000Z
2021-11-09T09:00:53.000Z
scripts/graphquestions/create_translations_in_json.py
arademaker/UDepLambda
00cc0e9808ecce27c4676fbba21192d63f315350
[ "Apache-2.0" ]
24
2017-02-28T15:27:42.000Z
2021-06-23T02:44:53.000Z
import sys import json translations = {} for line in open(sys.argv[1]): try: qid, source, target = line.strip().split("\t") translations[int(qid)] = target except: sys.stderr.write(line) for line in sys.stdin: sent = json.loads(line) target = translations[sent['id']] ...
20.65
54
0.607748
53
413
4.735849
0.54717
0.055777
0.071713
0
0
0
0
0
0
0
0
0.003195
0.242131
413
19
55
21.736842
0.798722
0
0
0
0
0
0.067797
0
0
0
0
0
0
0
null
null
0
0.133333
null
null
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
1
0
0
0
0
0
0
0
0
1
4aaa61a08606b1fb4b805a9a06b7e9ade141c2e5
2,279
py
Python
bokchoi/bokchoi.py
TimNooren/buzz
28ce37b76fbe7e3e3750cf632e8820537374df89
[ "MIT" ]
3
2018-03-17T15:16:59.000Z
2018-09-11T06:10:24.000Z
bokchoi/bokchoi.py
TimNooren/buzz
28ce37b76fbe7e3e3750cf632e8820537374df89
[ "MIT" ]
1
2018-09-17T13:04:43.000Z
2018-09-17T13:04:43.000Z
bokchoi/bokchoi.py
TimNooren/buzz
28ce37b76fbe7e3e3750cf632e8820537374df89
[ "MIT" ]
5
2018-04-24T09:12:56.000Z
2019-05-22T07:30:03.000Z
from bokchoi.config import Config from bokchoi.aws import EMR, EC2 from bokchoi.gcp import GCP def requires_config(fn): """ Decorator; adds check whether config was loaded successfully. :param fn: Function to add check to :return: Decorated function """...
29.217949
96
0.609039
258
2,279
5.290698
0.263566
0.087912
0.087179
0.043956
0.158974
0.068132
0
0
0
0
0
0.001835
0.28258
2,279
77
97
29.597403
0.833028
0.151382
0
0.145833
0
0
0.098396
0
0
0
0
0
0
1
0.229167
false
0
0.0625
0.0625
0.5625
0.083333
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
4ab173907597511d4620d28a2b239bb7856896d7
4,381
py
Python
neon/initializers/initializer.py
Bam4d/neon
87ee86a5129a45f0ebbb4bb559296de935208fc4
[ "Apache-2.0" ]
null
null
null
neon/initializers/initializer.py
Bam4d/neon
87ee86a5129a45f0ebbb4bb559296de935208fc4
[ "Apache-2.0" ]
4
2021-03-26T00:21:20.000Z
2022-03-12T00:46:11.000Z
neon/initializers/initializer.py
Bam4d/neon
87ee86a5129a45f0ebbb4bb559296de935208fc4
[ "Apache-2.0" ]
2
2018-04-04T17:13:00.000Z
2018-04-17T21:15:24.000Z
# ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
33.442748
93
0.63821
576
4,381
4.763889
0.362847
0.032799
0.028061
0.040816
0.225948
0.162172
0.153061
0.153061
0.088192
0.088192
0
0.012972
0.225748
4,381
130
94
33.7
0.795991
0.496005
0
0.152174
0
0
0.0333
0
0
0
0
0
0
1
0.282609
false
0
0.043478
0
0.478261
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
4ab2b101d305c3ad95e82b6fed5cf21ab319433c
3,475
py
Python
language-modeling/BERT-finetuning/args.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
null
null
null
language-modeling/BERT-finetuning/args.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
null
null
null
language-modeling/BERT-finetuning/args.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Sony Group Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
51.102941
78
0.690072
471
3,475
4.902335
0.354565
0.136423
0.257687
0.090082
0.434387
0.359896
0.286271
0.252057
0.252057
0.082287
0
0.019581
0.162302
3,475
67
79
51.865672
0.773617
0.160863
0
0
0
0
0.248449
0.041695
0
0
0
0
0
1
0.021277
false
0
0.021277
0
0.06383
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
4ab2ca389252439a48ece6aa9c803093f5a3cc94
3,894
py
Python
main.py
nanxung/table_auto
0ffc3194201319ed66fe7290994ca0ac9c4e94a6
[ "Apache-2.0" ]
null
null
null
main.py
nanxung/table_auto
0ffc3194201319ed66fe7290994ca0ac9c4e94a6
[ "Apache-2.0" ]
null
null
null
main.py
nanxung/table_auto
0ffc3194201319ed66fe7290994ca0ac9c4e94a6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Module implementing MainWindow. """ import sys from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import QMainWindow from Ui_mainUI import Ui_MainWindow from PyQt5 import QtWidgets import json from PyQt5.QtWidgets import QMessageBox from test_tool import test_ecjtu as tool class MainWi...
28.014388
119
0.57961
447
3,894
4.928412
0.313199
0.047208
0.057195
0.056741
0.272356
0.176577
0.130277
0.130277
0.103949
0.081253
0
0.004693
0.288649
3,894
138
120
28.217391
0.790614
0.139445
0
0.148148
0
0
0.052565
0.008233
0
0
0
0.036232
0
1
0.098765
false
0.049383
0.098765
0
0.209877
0.037037
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
4ab38184de09c8c8d8d0f5b3b432cd70303e59e9
693
py
Python
jet_guestbook/model.py
rbw/jet-guestbook
34be64094cc4628c2d7ea68b747142332ca77176
[ "MIT" ]
null
null
null
jet_guestbook/model.py
rbw/jet-guestbook
34be64094cc4628c2d7ea68b747142332ca77176
[ "MIT" ]
4
2020-03-24T16:53:56.000Z
2021-06-01T23:27:09.000Z
jet_guestbook/model.py
rbw/jet-guestbook
34be64094cc4628c2d7ea68b747142332ca77176
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from peewee import Model, ForeignKeyField, CharField, DateTimeField class VisitorModel(Model): class Meta: table_name = 'visitor' indexes = ( (('name', 'ip_addr'), True), ) name = CharField() ip_addr = CharField() ...
22.354839
79
0.652237
70
693
6.385714
0.557143
0.044743
0.06264
0.085011
0.102908
0
0
0
0
0
0
0.00189
0.236652
693
30
80
23.1
0.8431
0.030303
0
0.1
0
0
0.03438
0
0
0
0
0
0
1
0.05
false
0
0.1
0.05
0.7
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
4ab47fd434ff75a02607bcd8c20a1750b8df6a3b
1,458
py
Python
w11-functional-programming/prepare-examples/example4-lambda-function.py
carloswm85/2021-cs111-programming-with-functions
73cc376e3f0de60aa0150d33ec95568d217096ec
[ "Unlicense" ]
null
null
null
w11-functional-programming/prepare-examples/example4-lambda-function.py
carloswm85/2021-cs111-programming-with-functions
73cc376e3f0de60aa0150d33ec95568d217096ec
[ "Unlicense" ]
null
null
null
w11-functional-programming/prepare-examples/example4-lambda-function.py
carloswm85/2021-cs111-programming-with-functions
73cc376e3f0de60aa0150d33ec95568d217096ec
[ "Unlicense" ]
null
null
null
# Example 4 def main(): fahr_temps = [72, 65, 71, 75, 82, 87, 68] # Print the Fahrenheit temperatures. print(f"Fahrenheit: {fahr_temps}") # Define a lambda function that converts # a Fahrenheit temperature to Celsius and # returns the Celsius temperature. def cels_from_fahr(fahr): return ...
33.136364
228
0.72428
223
1,458
4.636771
0.408072
0.108317
0.082205
0.087041
0.327853
0.251451
0.224371
0.224371
0.224371
0.224371
0
0.025795
0.202332
1,458
43
229
33.906977
0.860705
0.227023
0
0
0
0
0.154971
0
0
0
0
0
0
0
null
null
0
0
null
null
0.25
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
4ab84e599cfa4904981fa3dcca6ab4032c397456
352
py
Python
DP/climbStairs.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
DP/climbStairs.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
DP/climbStairs.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
class Solution(object): def climbStairs(self, n): """ :type n: int :rtype: int """ if n <= 2: return n pre1 = 2 pre2 = 1 cur = 0 while(n>2): cur = pre1 + pre2 pre2 = pre1 pre1 = cur n ...
19.555556
29
0.349432
37
352
3.324324
0.513514
0.03252
0
0
0
0
0
0
0
0
0
0.083333
0.556818
352
18
30
19.555556
0.705128
0.068182
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.307692
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
4aba16a9cf81607b5ff59780d3fbbcda6ae5a28d
1,448
py
Python
homeassistant/components/alarmdecoder/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/alarmdecoder/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/alarmdecoder/const.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Constants for the AlarmDecoder component.""" CONF_ALT_NIGHT_MODE = "alt_night_mode" CONF_AUTO_BYPASS = "auto_bypass" CONF_CODE_ARM_REQUIRED = "code_arm_required" CONF_DEVICE_BAUD = "device_baudrate" CONF_DEVICE_PATH = "device_path" CONF_RELAY_ADDR = "zone_relayaddr" CONF_RELAY_CHAN = "zone_relaychan" CONF_ZONE_LOOP...
28.96
54
0.820442
199
1,448
5.41206
0.306533
0.03714
0.05571
0.029712
0.102136
0.102136
0
0
0
0
0
0.009181
0.097376
1,448
49
55
29.55102
0.814843
0.028315
0
0
0
0
0.281941
0.087081
0
0
0
0
0
1
0
false
0.075
0
0
0
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
4abb881cae1ea44aba6e6839491c2be946d707c6
709
py
Python
disease/migrations/0007_auto_20200519_1528.py
archi-007/disease-predictor
3c527da051042998e2ff6f92a424c8e5ca9adc94
[ "MIT" ]
1
2020-05-18T10:44:52.000Z
2020-05-18T10:44:52.000Z
disease/migrations/0007_auto_20200519_1528.py
archi-007/disease-predictor
3c527da051042998e2ff6f92a424c8e5ca9adc94
[ "MIT" ]
59
2020-05-16T14:52:57.000Z
2021-09-22T19:01:34.000Z
disease/migrations/0007_auto_20200519_1528.py
archi-007/disease-predictor
3c527da051042998e2ff6f92a424c8e5ca9adc94
[ "MIT" ]
3
2020-05-16T13:43:48.000Z
2020-06-13T21:29:29.000Z
# Generated by Django 3.0.6 on 2020-05-19 15:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('disease', '0006_auto_20200517_2348'), ] operations = [ migrations.CreateModel( name='symptoms', fields...
27.269231
115
0.54725
68
709
5.588235
0.764706
0
0
0
0
0
0
0
0
0
0
0.071579
0.330042
709
25
116
28.36
0.728421
0.06347
0
0.105263
1
0
0.102041
0.036107
0
0
0
0
0
1
0
false
0
0.052632
0
0.210526
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
4abd32ee70a24b00965716c8234fc8832164dcdc
346
py
Python
my_code.py
Athenian-ComputerScience-Fall2020/greeting-open-Milan938
a02297e62334f30771881fdc864d2d65c2728069
[ "Apache-2.0" ]
null
null
null
my_code.py
Athenian-ComputerScience-Fall2020/greeting-open-Milan938
a02297e62334f30771881fdc864d2d65c2728069
[ "Apache-2.0" ]
null
null
null
my_code.py
Athenian-ComputerScience-Fall2020/greeting-open-Milan938
a02297e62334f30771881fdc864d2d65c2728069
[ "Apache-2.0" ]
null
null
null
# Collaborators (including web sites where you got help: (enter none if you didn't need help) # # Write a program that asks for the user's name and another piece of information.Then prints a response using both of the inputs. x = input("What is your name?") y = input("How old are you?") print("Hello " + x + ", you ...
43.25
129
0.690751
60
346
3.983333
0.783333
0
0
0
0
0
0
0
0
0
0
0
0.202312
346
8
130
43.25
0.865942
0.638728
0
0
0
0
0.5
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
4abe0101cda0a2655a9a61f572e0986f6b7f41d0
500
py
Python
newsletter/models.py
OtchereDev/django-jobs
403cbfc2f751c8a435c34ebc83b936f18106c228
[ "MIT" ]
null
null
null
newsletter/models.py
OtchereDev/django-jobs
403cbfc2f751c8a435c34ebc83b936f18106c228
[ "MIT" ]
null
null
null
newsletter/models.py
OtchereDev/django-jobs
403cbfc2f751c8a435c34ebc83b936f18106c228
[ "MIT" ]
null
null
null
from django.db import models CONTENT_TYPE=( ('html','html'), ('text','text') ) class Newsletter(models.Model): title=models.CharField(max_length=500) content_type=models.CharField(choices=CONTENT_TYPE,max_length=30) content=models.TextField() subscribers=models.ManyToManyField('Subcriber',blan...
25
69
0.748
63
500
5.793651
0.539683
0.09863
0.09863
0.131507
0
0
0
0
0
0
0
0.025
0.12
500
19
70
26.315789
0.804545
0
0
0
0
0
0.0501
0
0
0
0
0
0
1
0
false
0
0.071429
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
4ac13f408d6c982d440ba710d7fc80a90cf55e07
2,863
py
Python
tests/conftest.py
kgroshert/ha-porscheconnect
b2d5e2eed9f349d08e3c1ae2d6d7c85eb8e8d901
[ "MIT" ]
null
null
null
tests/conftest.py
kgroshert/ha-porscheconnect
b2d5e2eed9f349d08e3c1ae2d6d7c85eb8e8d901
[ "MIT" ]
null
null
null
tests/conftest.py
kgroshert/ha-porscheconnect
b2d5e2eed9f349d08e3c1ae2d6d7c85eb8e8d901
[ "MIT" ]
null
null
null
"""Global fixtures for Porsche Connect integration.""" from typing import Any from unittest.mock import patch import pytest from pyporscheconnectapi.exceptions import WrongCredentials # from unittest.mock import Mock pytest_plugins = "pytest_homeassistant_custom_component" # This fixture is used to prevent HomeAss...
37.671053
98
0.76109
364
2,863
5.807692
0.266484
0.039735
0.04825
0.028382
0.575686
0.575686
0.468307
0.468307
0.468307
0.426679
0
0.001242
0.156479
2,863
75
99
38.173333
0.87412
0.411107
0
0.292683
0
0
0.388278
0.357753
0
0
0
0
0
1
0.146341
false
0.097561
0.097561
0
0.243902
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
4349dd14835e3629ebbdff8fbc7472e1e75148c0
215
py
Python
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/project/viewmodels/test_models.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
6
2018-11-26T08:42:52.000Z
2020-06-01T08:33:48.000Z
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/project/viewmodels/test_models.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
null
null
null
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/project/viewmodels/test_models.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
1
2019-01-22T06:45:36.000Z
2019-01-22T06:45:36.000Z
#coding=utf-8 ''' Created on 2015-10-10 @author: Devuser ''' class Tag(object): def __init__(self,tagid,name,color): self.tagid=tagid self.tagname=name self.tagcolor=color
15.357143
40
0.6
28
215
4.464286
0.714286
0.144
0
0
0
0
0
0
0
0
0
0.057325
0.269767
215
14
41
15.357143
0.738854
0.24186
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
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
434e44f659e455d6fd0f26dda4958476cb90d06f
2,261
py
Python
roamPy/subscriptionsClass.py
maahutch/roamPy
d3752b982eced2b514cfe34ffde5c06d5bd77d8e
[ "MIT" ]
null
null
null
roamPy/subscriptionsClass.py
maahutch/roamPy
d3752b982eced2b514cfe34ffde5c06d5bd77d8e
[ "MIT" ]
null
null
null
roamPy/subscriptionsClass.py
maahutch/roamPy
d3752b982eced2b514cfe34ffde5c06d5bd77d8e
[ "MIT" ]
null
null
null
from requests import request from roamPy.pageFunc import pageIterate class subscriptions(object): def __init__(self, url, header): self.url = url self.header = header def getAllSubscriptions(self): """ Iterates through the paginated 'Subscriptions' ...
36.467742
108
0.639098
253
2,261
5.695652
0.387352
0.024289
0.035392
0.041638
0.208883
0.167245
0.14712
0.14712
0.14712
0.14712
0
0.001255
0.295444
2,261
61
109
37.065574
0.903327
0.502433
0
0
0
0
0.059937
0
0
0
0
0
0
1
0.210526
false
0
0.105263
0
0.368421
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
434eae99c409ec447d8b3fbf0ba7594d8321b88e
659
py
Python
tools/anonimize_user.py
alinbalutoiu/Zeeguu-Core
348f0aa05603fb9d2b06e1f38dbf6bb9fdcaac6d
[ "MIT" ]
null
null
null
tools/anonimize_user.py
alinbalutoiu/Zeeguu-Core
348f0aa05603fb9d2b06e1f38dbf6bb9fdcaac6d
[ "MIT" ]
null
null
null
tools/anonimize_user.py
alinbalutoiu/Zeeguu-Core
348f0aa05603fb9d2b06e1f38dbf6bb9fdcaac6d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Script that goes through all the users in a DB and renames their names with random ones. """ import sqlalchemy import zeeguu from faker import Faker fake = Faker() from zeeguu.model import User session = zeeguu.db.session for user in User.query.all(): for _ in range(0,13): ...
21.258065
50
0.581184
83
659
4.60241
0.626506
0.057592
0
0
0
0
0
0
0
0
0
0.006682
0.318665
659
30
51
21.966667
0.844098
0.165402
0
0
0
0
0.052434
0
0
0
0
0
0
1
0
false
0.052632
0.210526
0
0.210526
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
0
0
0
1
0
0
0
0
0
1
434eb429856fc1671995db7d1e22cc7b257ee06c
4,827
py
Python
siice/settings/base.py
altest-com/siice-api
322098b91a8dc22de1dddb5102a4c8beddd9a009
[ "MIT" ]
null
null
null
siice/settings/base.py
altest-com/siice-api
322098b91a8dc22de1dddb5102a4c8beddd9a009
[ "MIT" ]
null
null
null
siice/settings/base.py
altest-com/siice-api
322098b91a8dc22de1dddb5102a4c8beddd9a009
[ "MIT" ]
null
null
null
""" Django settings for dnfas project. Generated by 'django-admin startproject' using Django 2.2.3. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # B...
26.96648
82
0.630412
519
4,827
5.722543
0.431599
0.022222
0.037037
0.042088
0.118519
0.112795
0.09798
0.09798
0.028283
0.028283
0
0.013618
0.224156
4,827
178
83
27.117978
0.779439
0.216491
0
0.065041
1
0
0.464362
0.27234
0
0
0
0
0
1
0
false
0
0.00813
0
0.00813
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
4350ad39c41c9e6b99a14f10c394b6a5be2013e4
3,820
py
Python
flaskbb/pet/views.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
null
null
null
flaskbb/pet/views.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
null
null
null
flaskbb/pet/views.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ flaskbb.user.views ~~~~~~~~~~~~~~~~~~ The user view handles the user profile and the user settings from a signed in user. :copyright: (c) 2014 by the FlaskBB Team. :license: BSD, see LICENSE for more details. """ from flask import Blueprint, flash, request,redirect,...
29.84375
90
0.642408
498
3,820
4.738956
0.257028
0.03178
0.035593
0.042373
0.305508
0.283898
0.252119
0.205932
0.205932
0.205932
0
0.006967
0.210995
3,820
127
91
30.07874
0.776045
0.022513
0
0.1625
0
0
0.153714
0.053054
0
0
0
0
0
0
null
null
0
0.1125
null
null
0.0375
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
4353864ce897390d61d9254310229b6063ad7483
7,750
py
Python
tms_rs/tms_rs_refrigerator/scripts/mbedrpc.py
robotpilot/ros_tms
3d6b6579e89aa9cb216cd3cb6157fabc553c18f1
[ "BSD-3-Clause" ]
54
2015-01-06T06:58:28.000Z
2021-05-02T07:49:37.000Z
tms_rs/tms_rs_refrigerator/scripts/mbedrpc.py
robotpilot/ros_tms
3d6b6579e89aa9cb216cd3cb6157fabc553c18f1
[ "BSD-3-Clause" ]
114
2015-01-07T06:42:21.000Z
2022-02-12T05:54:04.000Z
tms_rs/tms_rs_refrigerator/scripts/mbedrpc.py
robotpilot/ros_tms
3d6b6579e89aa9cb216cd3cb6157fabc553c18f1
[ "BSD-3-Clause" ]
24
2015-03-27T08:35:59.000Z
2020-06-08T13:05:31.000Z
# mbedRPC.py - mbed RPC interface for Python # # Copyright (c) 2010 ARM Ltd # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the right...
26.816609
101
0.568
1,030
7,750
4.168932
0.21068
0.09129
0.094783
0.108291
0.500932
0.496507
0.468561
0.462972
0.442944
0.381463
0
0.02211
0.282194
7,750
288
102
26.909722
0.749775
0.163355
0
0.477778
0
0
0.078196
0
0
0
0
0
0
1
0.261111
false
0
0.016667
0
0.411111
0.011111
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
4353bc994e1b98cbc6ec7382e72b2766c56cd1da
22,200
py
Python
utilities/database_upgrader.py
voussoir/etiquette
e982858c28335b11528c52af181abd1bbc71673f
[ "BSD-3-Clause" ]
20
2018-03-20T01:40:13.000Z
2022-02-11T20:23:41.000Z
utilities/database_upgrader.py
voussoir/etiquette
e982858c28335b11528c52af181abd1bbc71673f
[ "BSD-3-Clause" ]
null
null
null
utilities/database_upgrader.py
voussoir/etiquette
e982858c28335b11528c52af181abd1bbc71673f
[ "BSD-3-Clause" ]
1
2018-03-20T13:10:31.000Z
2018-03-20T13:10:31.000Z
import argparse import os import sys import etiquette class Migrator: ''' Many of the upgraders involve adding columns. ALTER TABLE ADD COLUMN only allows adding at the end, which I usually don't prefer. In order to add a column in the middle, you must rename the table, create a new one, transfer ...
30.790569
112
0.641622
2,810
22,200
4.910676
0.149466
0.028698
0.028263
0.034785
0.465613
0.420175
0.379375
0.350098
0.313284
0.252699
0
0.004756
0.270721
22,200
720
113
30.833333
0.84756
0.183198
0
0.610586
0
0
0.622024
0.074374
0
0
0
0
0
1
0.045369
false
0.005671
0.007561
0.00189
0.062382
0.005671
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
435525325a1d63bdcbc2884fc0fa943a21810faa
8,793
py
Python
src/collectors/nfs/nfs.py
kevinrobinson/Diamond-1
a15c4c178d9cc0c1c111652a8a6323206a9f31ac
[ "MIT" ]
6
2015-04-13T21:24:24.000Z
2020-05-11T07:43:05.000Z
src/collectors/nfs/nfs.py
kevinrobinson/Diamond-1
a15c4c178d9cc0c1c111652a8a6323206a9f31ac
[ "MIT" ]
3
2015-09-11T16:29:54.000Z
2016-05-18T15:31:54.000Z
src/collectors/nfs/nfs.py
kevinrobinson/Diamond-1
a15c4c178d9cc0c1c111652a8a6323206a9f31ac
[ "MIT" ]
13
2015-01-11T12:10:45.000Z
2021-01-27T10:55:02.000Z
# coding=utf-8 """ The NfsCollector collects nfs utilization metrics using /proc/net/rpc/nfs. #### Dependencies * /proc/net/rpc/nfs """ import diamond.collector import os class NfsCollector(diamond.collector.Collector): PROC = '/proc/net/rpc/nfs' def get_default_config_help(self): config_help ...
38.735683
74
0.393722
764
8,793
4.484293
0.243456
0.131349
0.070053
0.127554
0.239054
0.239054
0.07735
0.057501
0
0
0
0.058705
0.492437
8,793
226
75
38.90708
0.70894
0.031275
0
0.333333
0
0
0.121542
0
0
0
0
0
0
1
0.015385
false
0.102564
0.010256
0
0.05641
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
4361e58a6a7e6307a5dc1632758cae8f89d043e6
1,252
py
Python
demo/demo_ipaddress.py
nearform/udaru-anomaly-detection
ffae43713ef51135f6cf32e9244a5af098f888fe
[ "Apache-2.0" ]
4
2018-06-11T15:35:07.000Z
2021-03-16T14:19:31.000Z
demo/demo_ipaddress.py
nearform/udaru-anomaly-detection
ffae43713ef51135f6cf32e9244a5af098f888fe
[ "Apache-2.0" ]
null
null
null
demo/demo_ipaddress.py
nearform/udaru-anomaly-detection
ffae43713ef51135f6cf32e9244a5af098f888fe
[ "Apache-2.0" ]
1
2019-04-04T16:36:19.000Z
2019-04-04T16:36:19.000Z
from udaru_anomaly_detection import check_ipaddress hour = 60 * 60 * 1000 nyc_ipaddress = '64.64.117.58' # New York City wdc_ipaddress = '173.239.197.169' # Washington DC lon_ipaddress = '5.101.142.229' # London print(f'{nyc_ipaddress} (New York City) -> {lon_ipaddress} (London) : 9 hours') print(check_ipaddress....
44.714286
86
0.607029
140
1,252
5.15
0.292857
0.116505
0.061026
0.074896
0.796117
0.699029
0.699029
0.699029
0.699029
0.619972
0
0.054608
0.297923
1,252
27
87
46.37037
0.765643
0.027157
0
0.545455
0
0
0.209398
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0.363636
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
4365126384a112fefbea637fbaf05c2a8c731ccf
477
py
Python
python/2.7/test_root.py
matplo/rootutils
334664e2bab68abaef898f487bf5b12e63754dfb
[ "MIT" ]
null
null
null
python/2.7/test_root.py
matplo/rootutils
334664e2bab68abaef898f487bf5b12e63754dfb
[ "MIT" ]
1
2015-02-25T14:42:33.000Z
2015-02-25T14:42:33.000Z
python/2.7/test_root.py
matplo/rootutils
334664e2bab68abaef898f487bf5b12e63754dfb
[ "MIT" ]
2
2015-02-14T15:24:30.000Z
2016-10-03T21:50:52.000Z
#!/usr/bin/env python import import_root as impr import sys def test(): try: impr.try_importing_root(verbose=False) import ROOT h = ROOT.TH1F ("testh", "test", 10, 0, 10) print 'success' except: print 'failed' def main(): import subprocess try: out = subprocess.check_output([__file__, 'test']) exce...
15.387097
51
0.637317
69
477
4.173913
0.521739
0.069444
0.055556
0
0
0
0
0
0
0
0
0.02122
0.209644
477
30
52
15.9
0.742706
0.041929
0
0.32
0
0
0.096491
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.12
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
43680c28a557736ac55cfa169d8d2c8fcf741ded
3,283
py
Python
Dashboard/account/models.py
Dheerajdoppalapudi/DashBoard-BackEnd
67fdffcd8d2236cb7032588157f1f482bef1704c
[ "Apache-2.0" ]
null
null
null
Dashboard/account/models.py
Dheerajdoppalapudi/DashBoard-BackEnd
67fdffcd8d2236cb7032588157f1f482bef1704c
[ "Apache-2.0" ]
25
2022-01-07T09:04:19.000Z
2022-02-27T17:51:16.000Z
Dashboard/account/models.py
Dheerajdoppalapudi/DashBoard-BackEnd
67fdffcd8d2236cb7032588157f1f482bef1704c
[ "Apache-2.0" ]
2
2022-01-07T09:11:18.000Z
2022-01-11T06:07:17.000Z
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager from django.contrib.auth.models import PermissionsMixin from django.db import models from organization.models import Campus, Institute from rest_framework.authtoken.models import Token from django.dispatch import receiver from rest_framework.au...
34.197917
77
0.600975
346
3,283
5.589595
0.283237
0.031024
0.046536
0.062048
0.253361
0.226474
0.193382
0.144778
0.054809
0
0
0.006545
0.301858
3,283
95
78
34.557895
0.83726
0
0
0.105263
0
0
0.071885
0
0
0
0
0
0
1
0.078947
false
0.078947
0.118421
0.039474
0.447368
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
43712f1330778894c23c8558d6868bb7003ee373
1,068
py
Python
examples/hddmcp.py
markito3/hddm
887b72c0d27869696e243d277c37fcf2fabd2207
[ "Apache-2.0" ]
null
null
null
examples/hddmcp.py
markito3/hddm
887b72c0d27869696e243d277c37fcf2fabd2207
[ "Apache-2.0" ]
2
2021-04-04T04:06:25.000Z
2021-10-18T00:59:12.000Z
examples/hddmcp.py
markito3/hddm
887b72c0d27869696e243d277c37fcf2fabd2207
[ "Apache-2.0" ]
2
2021-04-14T20:58:51.000Z
2021-04-14T21:13:58.000Z
#!/bin/env python # # hddmcp.py - python alternative to the old hddmcp, multithreaded. # # author: richard.t.jones at uconn.edu # version: march 23, 2018 import threading import hddm_s import sys def usage(): print "Usage: hddmcp.py [-n #threads] <file1.hddm> <file2.hddm> ... <outfile.hddm>" sys.exit(1) def co...
20.941176
86
0.626404
157
1,068
4.22293
0.464968
0.030166
0.033183
0.045249
0.048265
0
0
0
0
0
0
0.023058
0.228464
1,068
50
87
21.36
0.781553
0.132959
0
0.102564
0
0.025641
0.103261
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
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
1
0
0
0
0
0
0
0
0
1
437255814a5c9cf329415df2cffeeda7731e6cda
279
py
Python
BrainTeaser/rabbitsteps.py
BodhiTechnology/PythonLib
f558a32bd4da24845f4e411fec084ac64c270307
[ "MIT" ]
null
null
null
BrainTeaser/rabbitsteps.py
BodhiTechnology/PythonLib
f558a32bd4da24845f4e411fec084ac64c270307
[ "MIT" ]
null
null
null
BrainTeaser/rabbitsteps.py
BodhiTechnology/PythonLib
f558a32bd4da24845f4e411fec084ac64c270307
[ "MIT" ]
1
2021-06-27T20:40:38.000Z
2021-06-27T20:40:38.000Z
import numpy as np """ rabbit wants to climb some stairs and it can do steps of 1 or 2. How many possible paths are there to follow ( e.g 1-1-1... or 2-2-2 ... or 2-1-2-1... etc) """ def count_no_steps(totsteps: int) -> int: pass if __name__ == '__main__': pass
16.411765
65
0.630824
54
279
3.074074
0.703704
0.054217
0.048193
0
0
0
0
0
0
0
0
0.056338
0.236559
279
16
66
17.4375
0.723005
0
0
0.4
0
0
0.070796
0
0
0
0
0
0
1
0.2
false
0.4
0.2
0
0.4
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
4372c8164b1328176081f588eb6efcaaf777da9e
2,269
py
Python
apps/security/src/security/views.py
xiaobing007/hue
cd68e9be3c96209d8dc8a4e08ec6b8265ec3becf
[ "Apache-2.0" ]
null
null
null
apps/security/src/security/views.py
xiaobing007/hue
cd68e9be3c96209d8dc8a4e08ec6b8265ec3becf
[ "Apache-2.0" ]
null
null
null
apps/security/src/security/views.py
xiaobing007/hue
cd68e9be3c96209d8dc8a4e08ec6b8265ec3becf
[ "Apache-2.0" ]
1
2019-07-23T12:36:09.000Z
2019-07-23T12:36:09.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
33.367647
107
0.728955
297
2,269
5.377104
0.397306
0.055103
0.087664
0.039449
0.390106
0.313087
0.313087
0.313087
0.313087
0.22918
0
0.002643
0.166152
2,269
67
108
33.865672
0.841438
0.334509
0
0.382353
0
0
0.158635
0.044177
0
0
0
0
0
1
0.176471
false
0
0.088235
0.176471
0.441176
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
1
0
0
0
1
43749ced59daa883aa0744ed2416e2161a48dc97
5,530
py
Python
sdk/python/bin/build/lib/pulumi_ecl/provider.py
keiichi-hikita/pulumi-ecl
8863968ba70884258c6c7d5f4caf35898673f938
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/bin/build/lib/pulumi_ecl/provider.py
keiichi-hikita/pulumi-ecl
8863968ba70884258c6c7d5f4caf35898673f938
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/bin/build/lib/pulumi_ecl/provider.py
keiichi-hikita/pulumi-ecl
8863968ba70884258c6c7d5f4caf35898673f938
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-09T17:15:26.000Z
2021-09-09T17:15:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from . import utilities, tables class Provider(pulumi.ProviderResource...
40.661765
462
0.66745
712
5,530
4.724719
0.202247
0.037455
0.093639
0.10107
0.142093
0.100178
0.020214
0.020214
0
0
0
0.00024
0.247559
5,530
135
463
40.962963
0.808219
0.120615
0
0
1
0
0.163952
0.004595
0
0
0
0
0
1
0.032258
false
0.043011
0.053763
0.021505
0.11828
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
437671c93b1eeb65ddd812bf0726aa6f5271fdfe
3,403
py
Python
models/io/readers.py
k-wojcik/kylin_client_tool
0fe827d1c8a86e3da61c85c48f78ce03c9260f3c
[ "Apache-2.0" ]
null
null
null
models/io/readers.py
k-wojcik/kylin_client_tool
0fe827d1c8a86e3da61c85c48f78ce03c9260f3c
[ "Apache-2.0" ]
null
null
null
models/io/readers.py
k-wojcik/kylin_client_tool
0fe827d1c8a86e3da61c85c48f78ce03c9260f3c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'Huang, Hua' import sys, time, datetime from models.io.cube import CubeCSV from models.cube import CubeDesc, CubeModel from models.cube import CubePartitionDesc from models.hbase import HBaseMappingDesc from models.rowkey import RowKeyDesc class CSVReader: APPEND_COUNT_MEASUR...
35.082474
118
0.625624
414
3,403
4.799517
0.236715
0.092602
0.063412
0.077504
0.322094
0.258178
0.242073
0.115752
0.072471
0.072471
0
0.003332
0.294446
3,403
96
119
35.447917
0.82424
0.048487
0
0.157143
0
0
0.028156
0
0
0
0
0
0
0
null
null
0.014286
0.1
null
null
0.028571
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
4379dd0d29e540307a68b340eb5d25c59c4b3e26
4,446
py
Python
apps/fithm-service/apps/models.py
sergio1221/flask-backend
11a9e0db5b5e664fcc820919d97039738176ac62
[ "BSD-3-Clause" ]
3
2022-03-04T03:05:55.000Z
2022-03-04T09:02:32.000Z
apps/fithm-service/apps/models.py
sergio1221/flask-backend
11a9e0db5b5e664fcc820919d97039738176ac62
[ "BSD-3-Clause" ]
null
null
null
apps/fithm-service/apps/models.py
sergio1221/flask-backend
11a9e0db5b5e664fcc820919d97039738176ac62
[ "BSD-3-Clause" ]
null
null
null
from sqlalchemy.orm import relationship, backref from sqlalchemy import ( Column, String, ForeignKey, Float, Integer, DateTime, Boolean ) from sqlalchemy.orm import relationship from libs.database import Base from apps.account.models import Account, AccountPosition from apps.m...
33.938931
107
0.647773
490
4,446
5.679592
0.2
0.06899
0.064678
0.047431
0.317284
0.217391
0.18613
0.144808
0.029465
0
0
0.006704
0.228295
4,446
130
108
34.2
0.80443
0.014395
0
0.147059
0
0
0.140935
0
0
0
0
0
0
1
0.039216
false
0.009804
0.078431
0.029412
0.735294
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
437d32dc6a0726e2567a34e872e3f1bfe5b9f6b5
456
py
Python
test.py
joelcrocker/django-smart-selects
2377ea4d2690001b1b4d877afc7e534f3d43f42c
[ "BSD-3-Clause" ]
null
null
null
test.py
joelcrocker/django-smart-selects
2377ea4d2690001b1b4d877afc7e534f3d43f42c
[ "BSD-3-Clause" ]
null
null
null
test.py
joelcrocker/django-smart-selects
2377ea4d2690001b1b4d877afc7e534f3d43f42c
[ "BSD-3-Clause" ]
null
null
null
if __name__ == '__main__': from django.conf import settings settings.configure( DATABASES={'default': { 'NAME': ':memory:', 'ENGINE': 'django.db.backends.sqlite3' }}, INSTALLED_APPS=('smart_selects',), MIDDLEWARE_CLASSES=(), ) from django.core.management impor...
28.5
70
0.60307
47
456
5.553191
0.680851
0.076628
0
0
0
0
0
0
0
0
0
0.011696
0.25
456
15
71
30.4
0.751462
0
0
0
0
0
0.195175
0.057018
0
0
0
0
0
1
0
true
0
0.214286
0
0.214286
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
1
0
0
0
0
0
0
1
4382c4a06e61a17c44c54a5d64593770d264401f
1,797
py
Python
section06/lecture051.py
JorijnInEemland/MyPythonProjects
9c440c2ddc133f9b5930291414ecd903bbc1be1c
[ "Unlicense" ]
null
null
null
section06/lecture051.py
JorijnInEemland/MyPythonProjects
9c440c2ddc133f9b5930291414ecd903bbc1be1c
[ "Unlicense" ]
null
null
null
section06/lecture051.py
JorijnInEemland/MyPythonProjects
9c440c2ddc133f9b5930291414ecd903bbc1be1c
[ "Unlicense" ]
1
2020-02-28T17:06:07.000Z
2020-02-28T17:06:07.000Z
# Functions and Methods - Homework Assignment # Import the necessary stuff import math import string # Calculate the volume of a sphere given its radius def vol(rad): return (4 / 3) * (math.pi) * (rad ** 3) # Check whether a number is in a given range def is_in_range(num, low, high): return low <= num <= hig...
39.933333
110
0.695047
304
1,797
4.069079
0.322368
0.048504
0.058205
0.048504
0.231205
0.135812
0.072757
0.051738
0
0
0
0.017368
0.166945
1,797
44
111
40.840909
0.808951
0.216472
0
0
0
0.076923
0.523231
0.080772
0
0
0
0
0
1
0.192308
false
0
0.076923
0.115385
0.461538
0.384615
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
1
0
0
0
1
438569695252058d972ceb7ba7f1fc7264dfd827
337
py
Python
python/fibonacci.py
DennisPing/Benchmarks
0ac54d9de026b57003ad53d4e7e8107d2fff9e0b
[ "MIT" ]
null
null
null
python/fibonacci.py
DennisPing/Benchmarks
0ac54d9de026b57003ad53d4e7e8107d2fff9e0b
[ "MIT" ]
null
null
null
python/fibonacci.py
DennisPing/Benchmarks
0ac54d9de026b57003ad53d4e7e8107d2fff9e0b
[ "MIT" ]
null
null
null
from time import time def naive_fib(n): if n < 2: return n return naive_fib(n-1) + naive_fib(n-2) def main(): n = 47 acc = 0 for _ in range(5): t0 = time() print(naive_fib(n)) acc += (time() - t0) print(f"Time taken: {round(acc/5, 3)}") if __name__ == "__ma...
18.722222
43
0.513353
53
337
3.018868
0.490566
0.2
0.225
0
0
0
0
0
0
0
0
0.048889
0.332344
337
18
44
18.722222
0.662222
0
0
0
0
0
0.109467
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0
0.333333
0.133333
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
438858e84d9fe561560bd3b74f0d0ed5e6d5057f
512
py
Python
Numpy/FuncionesUniversales/operadores.py
Jovamih/PythonProyectos
cc87cc98001fba528c3a03fe9a0edd290b83ec60
[ "MIT" ]
null
null
null
Numpy/FuncionesUniversales/operadores.py
Jovamih/PythonProyectos
cc87cc98001fba528c3a03fe9a0edd290b83ec60
[ "MIT" ]
null
null
null
Numpy/FuncionesUniversales/operadores.py
Jovamih/PythonProyectos
cc87cc98001fba528c3a03fe9a0edd290b83ec60
[ "MIT" ]
null
null
null
# /usr/bin/env python3 import numpy as np def operadores(): a=np.random.randint(3,10,size=10) b=np.random.randint(4,78,size=10) print(np.add(a,b)) print(np.subtract(b,a)) print(np.negative(a,b)) print(np.multiply(a,b)) print(np.divide(a,b)) print(np.floor_divide(b,a)) prin...
24.380952
51
0.601563
85
512
3.517647
0.447059
0.187291
0.093645
0.120401
0
0
0
0
0
0
0
0.027569
0.220703
512
21
52
24.380952
0.721805
0.199219
0
0
0
0
0.019704
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.142857
0.571429
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
438c65aead64d0909c3523397922f0569ed4aaea
561
py
Python
api/urls.py
istiakshihab/api-covid19-rt-bd
10d059bb28b7955ddac3c77a52376ee7bc5900a9
[ "MIT" ]
null
null
null
api/urls.py
istiakshihab/api-covid19-rt-bd
10d059bb28b7955ddac3c77a52376ee7bc5900a9
[ "MIT" ]
3
2021-04-08T21:11:45.000Z
2021-09-22T19:19:47.000Z
api/urls.py
istiakshihab/api-covid19-rt-bd
10d059bb28b7955ddac3c77a52376ee7bc5900a9
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('rt_value', views.get_rt_value), path('generate_json',views.generate_json), path('latest_rt_value', views.latest_rt), path('before_15_rt', views.before_15_rt), path('doubling_growth_value', views.doubling_growth_data), path(...
35.0625
67
0.759358
75
561
5.28
0.266667
0.10101
0.060606
0
0
0
0
0
0
0
0
0.008097
0.11943
561
15
68
37.4
0.793522
0
0
0
1
0
0.265597
0.153298
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
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
438d2a523c190b1261e702301f68bfa173f416ea
1,166
py
Python
quantity/quotation/helpers.py
wyjcpu/quantity
a53126a430f12b5bac81a52b2fe749cc497faf36
[ "MIT" ]
null
null
null
quantity/quotation/helpers.py
wyjcpu/quantity
a53126a430f12b5bac81a52b2fe749cc497faf36
[ "MIT" ]
null
null
null
quantity/quotation/helpers.py
wyjcpu/quantity
a53126a430f12b5bac81a52b2fe749cc497faf36
[ "MIT" ]
1
2021-05-11T09:33:59.000Z
2021-05-11T09:33:59.000Z
# coding:utf8 import json import os import re import requests STOCK_CODE_PATH = 'stock_codes.conf' def update_stock_codes(): """获取所有股票 ID 到 all_stock_code 目录下""" all_stock_codes_url = 'http://www.shdjt.com/js/lib/astock.js' grep_stock_codes = re.compile('~(\d+)`') response = requests.get(all_stock_c...
28.439024
69
0.666381
173
1,166
4.190751
0.294798
0.22069
0.107586
0.088276
0.633103
0.604138
0.604138
0.537931
0.537931
0.537931
0
0.001078
0.204117
1,166
40
70
29.15
0.780172
0.063465
0
0.307692
0
0
0.102683
0
0
0
0
0
0
1
0.115385
false
0
0.153846
0.038462
0.384615
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
438ec2d22244f3b6b2a0f3be6e742a009ca670fe
5,456
py
Python
typescript/libs/editor_client.py
colinta/TypeScript-Sublime-Plugin
7556dff41350ace41bc90317aad27ab187403860
[ "Apache-2.0" ]
1
2018-12-08T21:54:28.000Z
2018-12-08T21:54:28.000Z
typescript/libs/editor_client.py
colinta/TypeScript-Sublime-Plugin
7556dff41350ace41bc90317aad27ab187403860
[ "Apache-2.0" ]
null
null
null
typescript/libs/editor_client.py
colinta/TypeScript-Sublime-Plugin
7556dff41350ace41bc90317aad27ab187403860
[ "Apache-2.0" ]
1
2020-01-14T00:35:38.000Z
2020-01-14T00:35:38.000Z
from .reference import RefInfo from .node_client import ServerClient, WorkerClient from .service_proxy import ServiceProxy from .logger import log from .global_vars import * from . import global_vars class ClientFileInfo: """per-file, globally-accessible information""" def __init__(self, filename): ...
37.888889
115
0.666972
680
5,456
5.067647
0.239706
0.026407
0.022345
0.027858
0.28816
0.185142
0.146257
0.101567
0.082995
0.026117
0
0.001462
0.247984
5,456
143
116
38.153846
0.838167
0.072031
0
0.07767
0
0
0.126599
0.064166
0
0
0
0.006993
0
0
null
null
0
0.058252
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
4390ae8eeae43e95af2272c18b3c160ce5cbe3ad
908
py
Python
src/scing/config.py
dpeerlab/scing
0be0819c66d33645a5d7f20bcfa49c6fa3ece481
[ "MIT" ]
null
null
null
src/scing/config.py
dpeerlab/scing
0be0819c66d33645a5d7f20bcfa49c6fa3ece481
[ "MIT" ]
null
null
null
src/scing/config.py
dpeerlab/scing
0be0819c66d33645a5d7f20bcfa49c6fa3ece481
[ "MIT" ]
1
2022-02-24T20:45:22.000Z
2022-02-24T20:45:22.000Z
import os from pathlib import Path class Config: _10x_eula_cookie_key = "sw-eula-full" @property def ten_x_eula_cookie_key(self) -> str: return type(self)._10x_eula_cookie_key def __init__(self): self.path_home = os.path.join(Path.home(), ".scing") self.path_10x_eula_cfg = o...
29.290323
77
0.647577
135
908
4.022222
0.348148
0.141805
0.143646
0.110497
0.246777
0.106814
0.106814
0.106814
0
0
0
0.03193
0.241189
908
30
78
30.266667
0.756168
0
0
0
0
0
0.037445
0
0
0
0
0
0
1
0.227273
false
0
0.090909
0.090909
0.545455
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
1
0
0
0
0
0
0
0
1
439285709387b11591d6188dd1d54a7a7b372433
748
py
Python
runtimePlot.py
nayanbera/SAXS_Drive
1c5a83c6575fa888bfbcc3c34cedb38321bd5f92
[ "MIT" ]
null
null
null
runtimePlot.py
nayanbera/SAXS_Drive
1c5a83c6575fa888bfbcc3c34cedb38321bd5f92
[ "MIT" ]
2
2019-07-31T23:14:14.000Z
2020-12-26T16:27:02.000Z
runtimePlot.py
nayanbera/SAXS_Drive
1c5a83c6575fa888bfbcc3c34cedb38321bd5f92
[ "MIT" ]
2
2019-07-31T22:22:06.000Z
2020-07-14T04:58:16.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 3 20:13:05 2017 @author: epics """ from readData import read1DSAXS import sys import numpy as np import pylab as pl data={} start=int(sys.argv[1]) end=int(sys.argv[2]) for num in range(start,end+1): fname='/home/epics/CARS5/Data/chemmat/Data...
26.714286
127
0.668449
131
748
3.763359
0.503817
0.085193
0.073022
0.066937
0.324544
0.324544
0.324544
0.235294
0.146045
0.146045
0
0.060606
0.117647
748
28
128
26.714286
0.686364
0.377005
0
0.153846
0
0.076923
0.250549
0.243956
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
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
43983bbeb093d2b9b9b8885ff0a002e62a22617e
2,261
py
Python
src/tx-verifier.py
alex-lt-kong/bitcoin-block-parser
ad59f92fbc006b525763a19d29fa37f5bbb02a14
[ "BSD-3-Clause" ]
null
null
null
src/tx-verifier.py
alex-lt-kong/bitcoin-block-parser
ad59f92fbc006b525763a19d29fa37f5bbb02a14
[ "BSD-3-Clause" ]
null
null
null
src/tx-verifier.py
alex-lt-kong/bitcoin-block-parser
ad59f92fbc006b525763a19d29fa37f5bbb02a14
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import io import utils from block import Block, BlockHeader with open('../../../usb-decrypted/bitcoin/blocks/blk00001.dat', 'rb') as block_reader: block_reader.seek(0, io.SEEK_END) fSize = block_reader.tell() - 80 block_reader.seek(0, io.SEEK_SET) block = Block(block_reader) block.transa...
38.322034
297
0.812915
242
2,261
7.433884
0.42562
0.06726
0.046693
0.066704
0.214008
0.185103
0.146192
0.105058
0.105058
0.105058
0
0.22494
0.077842
2,261
58
298
38.982759
0.63789
0.382574
0
0.09375
0
0
0.20737
0.073699
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0.21875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
439ad7e41c48db282d74403bf0821771381f35db
707
py
Python
tests/conftest.py
st3107/bluesky_scanplans
2ab126c0b7f4427a10d42cf59ea004770c433383
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
st3107/bluesky_scanplans
2ab126c0b7f4427a10d42cf59ea004770c433383
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
st3107/bluesky_scanplans
2ab126c0b7f4427a10d42cf59ea004770c433383
[ "BSD-3-Clause" ]
null
null
null
from importlib.resources import path import pytest from bluesky import RunEngine from ophyd.sim import hw from xpdacq.beamtime import Beamtime from xpdacq.beamtime import xpd_configuration from xpdacq.beamtimeSetup import load_beamtime from xpdacq.simulation import xpd_pe1c, shctl1 with path("data", "__init__.py") as...
19.638889
76
0.708628
93
707
5.236559
0.516129
0.082136
0.073922
0.098563
0
0
0
0
0
0
0
0.010471
0.189533
707
35
77
20.2
0.839442
0
0
0
0
0
0.118812
0.042433
0
0
0
0
0
1
0.076923
false
0
0.307692
0.038462
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
439d098b704929cd2eb7415ff14c55c18b21dc50
243,040
py
Python
r.py
PrinceOSX/Oliver
7520a82fce1ecaef828e9799aa7d8750e2de3efa
[ "Apache-2.0" ]
null
null
null
r.py
PrinceOSX/Oliver
7520a82fce1ecaef828e9799aa7d8750e2de3efa
[ "Apache-2.0" ]
null
null
null
r.py
PrinceOSX/Oliver
7520a82fce1ecaef828e9799aa7d8750e2de3efa
[ "Apache-2.0" ]
1
2019-03-13T16:37:22.000Z
2019-03-13T16:37:22.000Z
#PHUSUI TEAM DELETE #Ki4 from linepy import * from akad.ttypes import Message from akad.ttypes import ContentType as Type from akad.ttypes import ChatRoomAnnouncementContents from akad.ttypes import ChatRoomAnnouncement from multiprocessing import Pool, Process from datetime import datetime from time import sleep from...
56.246239
867
0.420791
25,100
243,040
4.2249
0.078486
0.048093
0.030327
0.034514
0.732001
0.683238
0.647423
0.611014
0.589146
0.568928
0
0.017115
0.439598
243,040
4,320
868
56.259259
0.729853
0.014952
0
0.580921
0
0.012814
0.162621
0.031333
0.000237
0
0
0
0
0
null
null
0.008543
0.003085
null
null
0.00878
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
43b16e2ddf797e12b214f10dfec85750d8d9c271
438
py
Python
survey/surveys/metadata/mixins.py
vahndi/quant-survey
1a0fcf0c22e2c7306cba0218f82d24c97d28ee1f
[ "MIT" ]
2
2021-04-10T21:50:36.000Z
2022-03-26T16:46:52.000Z
survey/surveys/metadata/mixins.py
vahndi/quant-survey
1a0fcf0c22e2c7306cba0218f82d24c97d28ee1f
[ "MIT" ]
11
2020-08-30T18:47:14.000Z
2021-09-09T15:57:19.000Z
survey/surveys/metadata/mixins.py
vahndi/quant-survey
1a0fcf0c22e2c7306cba0218f82d24c97d28ee1f
[ "MIT" ]
null
null
null
from typing import List, Dict class Metadata(object): name: str text: str @staticmethod def text_to_name(metadatas: List['Metadata']) -> Dict[str, str]: """ Create a dictionary mapping the text of each metadata instance to its name. :param metadatas: List of Metadata...
20.857143
77
0.579909
51
438
4.941176
0.588235
0.103175
0
0
0
0
0
0
0
0
0
0
0.340183
438
20
78
21.9
0.871972
0.278539
0
0
0
0
0.028986
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.6
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
43b3d0246a4694c1ce8eb3941e4fb8ff8b5eace2
3,257
py
Python
robco_flexbe_behaviors/src/robco_flexbe_behaviors/cprmover4_fluid_motion_demo___bulgarian_sm.py
skydancerbg/robco_behaviors
b4e411a22bb6b21688892eed8fdedc80d40e711f
[ "BSD-3-Clause" ]
null
null
null
robco_flexbe_behaviors/src/robco_flexbe_behaviors/cprmover4_fluid_motion_demo___bulgarian_sm.py
skydancerbg/robco_behaviors
b4e411a22bb6b21688892eed8fdedc80d40e711f
[ "BSD-3-Clause" ]
null
null
null
robco_flexbe_behaviors/src/robco_flexbe_behaviors/cprmover4_fluid_motion_demo___bulgarian_sm.py
skydancerbg/robco_behaviors
b4e411a22bb6b21688892eed8fdedc80d40e711f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################### # WARNING: Generated code! # # ************************** # # Manual changes may get lost if file is generated again. # # Only code inside the [MANUAL] ta...
33.57732
115
0.666564
365
3,257
5.756164
0.356164
0.034269
0.053308
0.05426
0.373632
0.373632
0.320324
0.277487
0.241314
0.201333
0
0.029235
0.180841
3,257
96
116
33.927083
0.758246
0.302733
0
0.193548
1
0
0.260492
0
0
0
0
0
0
1
0.064516
false
0
0.096774
0
0.225806
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
43b9673b5457d8f981d734d09fb3edc31e3e145c
2,280
py
Python
share/transformers/com_peerj.py
felliott/SHARE
8fd60ff4749349c9b867f6188650d71f4f0a1a56
[ "Apache-2.0" ]
87
2015-01-06T18:24:45.000Z
2021-08-08T07:59:40.000Z
share/transformers/com_peerj.py
fortress-biotech/SHARE
9c5a05dd831447949fa6253afec5225ff8ab5d4f
[ "Apache-2.0" ]
442
2015-01-01T19:16:01.000Z
2022-03-30T21:10:26.000Z
share/transformers/com_peerj.py
fortress-biotech/SHARE
9c5a05dd831447949fa6253afec5225ff8ab5d4f
[ "Apache-2.0" ]
67
2015-03-10T16:32:58.000Z
2021-11-12T16:33:41.000Z
from share.transform.chain import ChainTransformer, Parser, Delegate, RunPython, ParseDate, ParseName, Map, ctx, Try, Subjects, IRI, Concat class Subject(Parser): name = ctx class ThroughSubjects(Parser): subject = Delegate(Subject, ctx) class Tag(Parser): name = ctx class ThroughTags(Parser): t...
24.782609
139
0.666228
271
2,280
5.527675
0.339483
0.052069
0.026035
0.036048
0.144192
0.144192
0.096128
0.096128
0.096128
0
0
0.00056
0.217105
2,280
91
140
25.054945
0.838655
0
0
0.114754
0
0
0.055702
0
0
0
0
0
0
1
0.016393
false
0
0.016393
0
0.655738
0.04918
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
43bbee530c69d9b2e0edc0839d0b86070961b128
6,242
py
Python
Graphs/manage_graphs.py
PatSunter/OTP-Routing-Tools
218b080b6888e9294d9ba2336553b3cc3044991a
[ "BSD-3-Clause" ]
2
2017-06-28T14:42:06.000Z
2020-01-25T10:47:38.000Z
Graphs/manage_graphs.py
PatSunter/pyOTPA
218b080b6888e9294d9ba2336553b3cc3044991a
[ "BSD-3-Clause" ]
null
null
null
Graphs/manage_graphs.py
PatSunter/pyOTPA
218b080b6888e9294d9ba2336553b3cc3044991a
[ "BSD-3-Clause" ]
null
null
null
import os.path import operator import itertools GTFS_BEAN = "org.opentripplanner.graph_builder.model.GtfsBundle" GTFS_PROP_PATH = "path" GTFS_PROP_BIKES = "defaultBikesAllowed" GTFS_PROP_AGENCY_ID = "defaultAgencyId" MODE_ALLOW_BIKES = { 'train': 'true', 'tram': 'false', 'bus': 'false', 'bus-mway': '...
38.060976
82
0.633611
864
6,242
4.206019
0.193287
0.054485
0.065493
0.026417
0.335993
0.288938
0.263621
0.221244
0.17749
0.165933
0
0.003697
0.263377
6,242
163
83
38.294479
0.786646
0.056392
0
0.105263
0
0
0.104641
0.01971
0
0
0
0
0
0
null
null
0
0.022556
null
null
0.052632
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
43bce9bf05f34d941a55ad6e52f8da1e426cc18f
1,052
py
Python
handlers/admin/admin_check_user/check_user_in_base.py
AleksZavg/Admin-telegram-bot
c671419ba9fd5e93df742ebe9443d72afa4c99aa
[ "MIT" ]
null
null
null
handlers/admin/admin_check_user/check_user_in_base.py
AleksZavg/Admin-telegram-bot
c671419ba9fd5e93df742ebe9443d72afa4c99aa
[ "MIT" ]
null
null
null
handlers/admin/admin_check_user/check_user_in_base.py
AleksZavg/Admin-telegram-bot
c671419ba9fd5e93df742ebe9443d72afa4c99aa
[ "MIT" ]
null
null
null
from typing import Text from aiogram import types from aiogram.dispatcher.filters.builtin import Text from aiogram.dispatcher import FSMContext from keyboards.default.admin_panel import admin_panel_kb from middlewares.states.admin_panel_states import check_user from utils.db_api import sql from loader import dp ''' d...
31.878788
75
0.704373
140
1,052
5.171429
0.442857
0.055249
0.074586
0.058011
0.218232
0
0
0
0
0
0
0.001155
0.176806
1,052
32
76
32.875
0.834873
0
0
0.136364
0
0
0.111465
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
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
43bf74756b82c866f14bf4c34721696c86bfe751
415
py
Python
tests/snippets/ast_snippet.py
gabhijit/RustPython
3eafcbec3d687a81606556b4f6815cc6825b7ef3
[ "MIT" ]
1
2020-05-03T14:29:22.000Z
2020-05-03T14:29:22.000Z
tests/snippets/ast_snippet.py
gabhijit/RustPython
3eafcbec3d687a81606556b4f6815cc6825b7ef3
[ "MIT" ]
null
null
null
tests/snippets/ast_snippet.py
gabhijit/RustPython
3eafcbec3d687a81606556b4f6815cc6825b7ef3
[ "MIT" ]
1
2020-12-04T23:52:08.000Z
2020-12-04T23:52:08.000Z
import ast print(ast) source = """ def foo(): print('bar') pass """ n = ast.parse(source) print(n) print(n.body) print(n.body[0].name) assert n.body[0].name == 'foo' foo = n.body[0] assert foo.lineno == 2 print(foo.body) assert len(foo.body) == 2 print(foo.body[0]) print(foo.body[0].value.func.id) assert foo....
17.291667
43
0.648193
77
415
3.493506
0.298701
0.130112
0.118959
0.074349
0.141264
0.141264
0
0
0
0
0
0.03352
0.137349
415
23
44
18.043478
0.717877
0
0
0
0
0
0.111111
0
0
0
0
0
0.285714
1
0
false
0.047619
0.047619
0
0.047619
0.428571
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
43c6593189c84886a0887b5b7a503c392d864854
3,358
py
Python
Chapter04/conway_gpu_syncthreads_shared.py
liopeer/Hands-On-GPU-Programming-with-Python-and-CUDA
a4bedd805de56bb9509f878588a23618136fa502
[ "MIT" ]
null
null
null
Chapter04/conway_gpu_syncthreads_shared.py
liopeer/Hands-On-GPU-Programming-with-Python-and-CUDA
a4bedd805de56bb9509f878588a23618136fa502
[ "MIT" ]
null
null
null
Chapter04/conway_gpu_syncthreads_shared.py
liopeer/Hands-On-GPU-Programming-with-Python-and-CUDA
a4bedd805de56bb9509f878588a23618136fa502
[ "MIT" ]
null
null
null
# Iterative Conway's game of life in Python / CUDA C # this version is meant to illustrate the use of shared kernel memory in CUDA. # written by Brian Tuomanen for "Hands on GPU Programming with Python and CUDA" import pycuda.autoinit import pycuda.driver as drv from pycuda import gpuarray from pycuda.compiler import ...
31.383178
116
0.563431
471
3,358
3.832272
0.326964
0.053186
0.038781
0.054294
0.141828
0.087535
0.087535
0.087535
0.087535
0.087535
0
0.029464
0.322811
3,358
106
117
31.679245
0.764292
0.066111
0
0.162162
0
0.067568
0.776749
0.027787
0
0
0
0
0
1
0
false
0
0.094595
0
0.108108
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
43c82061cf705677c94a6e6d34dab64eabb33926
796
py
Python
tests/external_tests/class_tests/_test_junit_report_fixture_raise_exception_after_yield.py
omertuc/junit-report
69197e9b69a185b272f4c4cd62823de8ddd50f7e
[ "MIT" ]
4
2021-03-30T16:24:40.000Z
2021-04-04T12:43:03.000Z
tests/external_tests/class_tests/_test_junit_report_fixture_raise_exception_after_yield.py
omertuc/junit-report
69197e9b69a185b272f4c4cd62823de8ddd50f7e
[ "MIT" ]
2
2021-04-05T08:49:22.000Z
2021-04-11T10:19:53.000Z
tests/external_tests/class_tests/_test_junit_report_fixture_raise_exception_after_yield.py
eliorerz/junit-report
e0ed2c5b5b38500b020a2dc09a7ff172d01609ed
[ "MIT" ]
null
null
null
import pytest from src.junit_report import JunitFixtureTestCase, JunitTestCase, JunitTestSuite from tests import REPORT_DIR class TestExceptionAfterYield: @pytest.fixture @JunitFixtureTestCase() def fixture_with_exception_after_yield(self): yield raise ValueError("Fixture Test Exception")...
23.411765
117
0.702261
86
796
6.197674
0.348837
0.082552
0.106942
0.129456
0.283302
0.283302
0
0
0
0
0
0
0.227387
796
33
118
24.121212
0.866667
0
0
0.32
0
0
0.036432
0
0
0
0
0
0
1
0.2
false
0.08
0.12
0
0.4
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
43ccd7dfdb3c8917fc706738ab8287ee10de5b95
801
py
Python
celo_sdk/utils/hash_utils.py
rcroessmann/celo-sdk-py
8826adaa6bbcb53374e7c26f0638a7fc973a9dd9
[ "Apache-2.0" ]
7
2021-02-09T20:44:41.000Z
2022-03-30T10:56:06.000Z
celo_sdk/utils/hash_utils.py
rcroessmann/celo-sdk-py
8826adaa6bbcb53374e7c26f0638a7fc973a9dd9
[ "Apache-2.0" ]
4
2020-11-04T07:39:10.000Z
2022-02-19T00:06:46.000Z
celo_sdk/utils/hash_utils.py
rcroessmann/celo-sdk-py
8826adaa6bbcb53374e7c26f0638a7fc973a9dd9
[ "Apache-2.0" ]
8
2020-11-03T14:45:26.000Z
2022-02-23T12:41:05.000Z
from web3 import Web3 import string def is_message_hex_strict(message:str) -> bool: if message[:2] == '0x': for letter in message: if letter not in string.hexdigits: return False return True else: return False def message_length(message: str) -> str: if ...
28.607143
96
0.635456
104
801
4.740385
0.336538
0.060852
0.048682
0.073022
0.10142
0
0
0
0
0
0
0.026936
0.258427
801
28
97
28.607143
0.80303
0
0
0.208333
0
0
0.052369
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.583333
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
43ce8e558c927be0efde8537ca99027aa3291876
39,373
py
Python
Lib/importlib/_bootstrap.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/importlib/_bootstrap.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/importlib/_bootstrap.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
"""Core implementation of import. This module jest NOT meant to be directly imported! It has been designed such that it can be bootstrapped into Python jako the implementation of import. As such it requires the injection of specific modules oraz attributes w order to work. One should use importlib jako the public-faci...
33.680924
85
0.625911
4,612
39,373
5.114918
0.130963
0.011869
0.021365
0.008309
0.270666
0.201272
0.159983
0.118779
0.092242
0.085206
0
0.001676
0.287811
39,373
1,168
86
33.70976
0.839592
0.10337
0
0.437845
0
0
0.049198
0.00185
0
0
0
0
0.001381
0
null
null
0
0.062155
null
null
0.001381
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
43d1935a14394de7a9ba19aa98ee6ece4e3b26f9
453
py
Python
TelegramSpider/crawler/contact_user_crawler.py
panchaoxin/telegram-crawler
73d5ad62bf73027a9ca42699a87e865e5db3f589
[ "MIT" ]
9
2019-11-01T01:54:26.000Z
2022-02-22T16:48:15.000Z
TelegramSpider/crawler/contact_user_crawler.py
zestcode/telegram-crawler
73d5ad62bf73027a9ca42699a87e865e5db3f589
[ "MIT" ]
1
2021-10-16T12:34:00.000Z
2021-10-16T12:34:00.000Z
TelegramSpider/crawler/contact_user_crawler.py
zestcode/telegram-crawler
73d5ad62bf73027a9ca42699a87e865e5db3f589
[ "MIT" ]
3
2020-07-14T11:31:21.000Z
2021-02-04T12:46:51.000Z
from telethon.sync import TelegramClient from telethon import functions, types import socks import random from TelegramSpider import fetch from TelegramSpider.client import client def crawl_contact(): contact_result = client(functions.contacts.GetContactsRequest(hash=0)) user_list = contact_result.users f...
22.65
74
0.766004
57
453
5.807018
0.508772
0.108761
0
0
0
0
0
0
0
0
0
0.002639
0.163355
453
19
75
23.842105
0.870712
0
0
0.133333
0
0
0.01766
0
0
0
0
0
0
1
0.133333
false
0
0.4
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
1
0
0
0
0
1
43d521e3c7ced22d18952a053d33a70af75f63fa
3,983
py
Python
indexer/src/interfaces/idb.py
Bautista-Baiocchi-lora/ethereum-indexer
27eb219ad3c41ac16c19107964ab17b48d56b756
[ "MIT" ]
null
null
null
indexer/src/interfaces/idb.py
Bautista-Baiocchi-lora/ethereum-indexer
27eb219ad3c41ac16c19107964ab17b48d56b756
[ "MIT" ]
null
null
null
indexer/src/interfaces/idb.py
Bautista-Baiocchi-lora/ethereum-indexer
27eb219ad3c41ac16c19107964ab17b48d56b756
[ "MIT" ]
null
null
null
""" We use formal interfaces to enforce **modularity** first and foremost, and then structure onto all of the code that is to be written. Think of this as mathematical axioms, with which you then build proofs which you then use together to build new proofs. """ import abc from typing import Any, Dict, List, Optional ...
30.174242
89
0.612855
430
3,983
5.430233
0.290698
0.065953
0.070664
0.06424
0.328908
0.302784
0.302784
0.272805
0.272805
0.272805
0
0.000364
0.309817
3,983
131
90
30.40458
0.849036
0.430078
0
0.212766
0
0
0.018418
0
0
0
0
0.015267
0
1
0.148936
false
0
0.042553
0.021277
0.276596
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
43d5e5b73bcf7b03a3ce686d1898ccc5d8e59543
11,866
py
Python
towerlib/entities/settings.py
inazir/towerlib
e18556394b482828e1d03a076a26f66fa9545bec
[ "MIT" ]
30
2018-09-03T18:15:20.000Z
2022-02-08T14:54:19.000Z
towerlib/entities/settings.py
inazir/towerlib
e18556394b482828e1d03a076a26f66fa9545bec
[ "MIT" ]
48
2018-09-12T18:08:35.000Z
2022-03-11T11:56:21.000Z
towerlib/entities/settings.py
inazir/towerlib
e18556394b482828e1d03a076a26f66fa9545bec
[ "MIT" ]
41
2018-08-29T07:30:42.000Z
2022-03-25T10:14:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: settings.py # # Copyright 2019 Yorick Hoorneman # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including withou...
27.659674
112
0.622788
1,329
11,866
5.332581
0.205418
0.050797
0.059263
0.03838
0.484126
0.3862
0.353041
0.339918
0.26471
0.180471
0
0.002364
0.28687
11,866
428
113
27.724299
0.835145
0.389769
0
0.125
0
0
0.227624
0.165486
0
0
0
0
0
1
0.243056
false
0
0.020833
0.006944
0.409722
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
43d79939bcb6f7ed3bccbf3c3395229d253eefbb
1,119
py
Python
forms-flow-api/migrations/versions/166054bd81b5_allow_modified_date_as_nullable.py
andrepestana-aot/forms-flow-ai
18a77a713f4af70ba077d3821db96970c0c403ae
[ "Apache-2.0" ]
132
2020-04-16T20:26:18.000Z
2022-03-30T12:39:50.000Z
forms-flow-api/migrations/versions/166054bd81b5_allow_modified_date_as_nullable.py
andrepestana-aot/forms-flow-ai
18a77a713f4af70ba077d3821db96970c0c403ae
[ "Apache-2.0" ]
102
2020-06-05T21:30:27.000Z
2022-03-30T04:53:25.000Z
forms-flow-api/migrations/versions/166054bd81b5_allow_modified_date_as_nullable.py
andrepestana-aot/forms-flow-ai
18a77a713f4af70ba077d3821db96970c0c403ae
[ "Apache-2.0" ]
91
2020-04-15T18:54:51.000Z
2022-03-29T04:58:49.000Z
"""allow modified date as nullable Revision ID: 166054bd81b5 Revises: 80b8d5e95e9b Create Date: 2021-10-11 03:47:20.983464 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = "166054bd81b5" down_revision = "80b8d5e95e9b" br...
24.866667
87
0.671135
120
1,119
6.133333
0.458333
0.038043
0.070652
0.163043
0.540761
0.540761
0.540761
0.516304
0.516304
0.516304
0
0.059293
0.216265
1,119
44
88
25.431818
0.779932
0.279714
0
0.37037
0
0
0.150845
0
0
0
0
0
0
1
0.074074
false
0
0.111111
0
0.185185
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
43d9a91c8d522732651ffd9da1ce2fdd1141e544
4,589
py
Python
AllisonCampbell_hw1.py
allisonmcampbell/solar_angle_calculator
998fe6c9ff19c5209bdcc503efe940a0f94e9b61
[ "MIT" ]
null
null
null
AllisonCampbell_hw1.py
allisonmcampbell/solar_angle_calculator
998fe6c9ff19c5209bdcc503efe940a0f94e9b61
[ "MIT" ]
null
null
null
AllisonCampbell_hw1.py
allisonmcampbell/solar_angle_calculator
998fe6c9ff19c5209bdcc503efe940a0f94e9b61
[ "MIT" ]
null
null
null
from numpy import * from operator import itemgetter def getw(phi,long,tr,td,n,sign,pst): w = [] a = [] g = [] s = [] for i in range(len(n)): ww = [] aa = [] gg = [] ss = [] b = tr*(n[i]-1.)*360/365 E = 229.2*(7.5e-5 + 1.868e-3*cos(b) - 3.2077e-2*sin(b) - 1.4615e-2*cos(2*b) - 4.089e-2*sin(2*b))*15/60 ...
21.748815
104
0.521464
968
4,589
2.459711
0.159091
0.027299
0.02352
0.033599
0.251995
0.230155
0.159177
0.159177
0.091558
0.075179
0
0.140737
0.207235
4,589
210
105
21.852381
0.513744
0.054042
0
0.065359
0
0
0.019276
0
0
0
0
0
0
0
null
null
0
0.013072
null
null
0.078431
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
43de25e34b24ee9fc234cef9443cd2620f88deb0
348
py
Python
test/test.py
acocac/scivision-plankton-torch
9d382b7ed95bd051fcf1cd90d82966202b26d659
[ "BSD-3-Clause" ]
null
null
null
test/test.py
acocac/scivision-plankton-torch
9d382b7ed95bd051fcf1cd90d82966202b26d659
[ "BSD-3-Clause" ]
null
null
null
test/test.py
acocac/scivision-plankton-torch
9d382b7ed95bd051fcf1cd90d82966202b26d659
[ "BSD-3-Clause" ]
null
null
null
from scivision_plankton_models import resnet50 import PIL import torch import torchvision X = PIL.Image.open('Pia1.2017-10-12.0711+N00207451_hc.tif') X = torchvision.transforms.ToTensor()(X) X = torchvision.transforms.Resize((256,256))(X) X = torch.unsqueeze(X, 0) model = resnet50() y = model.predict(X) _, preds = t...
21.75
59
0.747126
54
348
4.740741
0.611111
0.09375
0.171875
0
0
0
0
0
0
0
0
0.106452
0.109195
348
16
60
21.75
0.719355
0
0
0
0
0
0.106017
0.106017
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.083333
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
78da122f35e67fdcfbdc1ecc9ebb4f463c56951a
3,075
py
Python
tests/test_capabilities.py
bontekasper/openeo-python-client
3a3cfd4ce619dd648e7dec0684281f4fecf4c2e3
[ "Apache-2.0" ]
75
2017-11-17T11:49:15.000Z
2022-02-15T14:21:42.000Z
tests/test_capabilities.py
bontekasper/openeo-python-client
3a3cfd4ce619dd648e7dec0684281f4fecf4c2e3
[ "Apache-2.0" ]
238
2017-12-05T14:48:30.000Z
2022-03-31T15:42:38.000Z
tests/test_capabilities.py
bontekasper/openeo-python-client
3a3cfd4ce619dd648e7dec0684281f4fecf4c2e3
[ "Apache-2.0" ]
28
2018-01-24T08:42:54.000Z
2022-01-27T09:16:26.000Z
import pytest from openeo.capabilities import ComparableVersion @pytest.mark.parametrize(["a", "b", "c"], [ (ComparableVersion("1.2.3"), ComparableVersion("1.2.3"), ComparableVersion("2.3.4")), (ComparableVersion("1.2.3"), "1.2.3", "2.3.4"), ("1.2.3", ComparableVersion("1.2.3"), ComparableVersion("2.3.4"...
31.377551
89
0.615935
565
3,075
3.267257
0.088496
0.197183
0.176056
0.144095
0.729686
0.618635
0.475081
0.368906
0.087757
0.046587
0
0.075856
0.202602
3,075
97
90
31.701031
0.676998
0
0
0.022989
0
0
0.098862
0
0
0
0
0
0.781609
1
0.045977
false
0
0.022989
0
0.068966
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
1
0
0
0
0
0
0
0
0
0
1
78dcbe9bc75e02b3e3acceb6a724f36132743f1b
987
py
Python
submission/migrations/0002_auto_20170509_1203.py
lizehongss/oj_backend
f7bd9f16b44f944e0bb370dcc7e0e82a1f2b5eb4
[ "MIT" ]
5,237
2015-09-08T07:39:15.000Z
2022-03-31T09:17:33.000Z
submission/migrations/0002_auto_20170509_1203.py
lizehongss/oj_backend
f7bd9f16b44f944e0bb370dcc7e0e82a1f2b5eb4
[ "MIT" ]
365
2015-10-21T08:49:32.000Z
2022-03-29T19:25:08.000Z
submission/migrations/0002_auto_20170509_1203.py
lizehongss/oj_backend
f7bd9f16b44f944e0bb370dcc7e0e82a1f2b5eb4
[ "MIT" ]
1,654
2015-09-14T09:34:05.000Z
2022-03-29T07:03:40.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2017-05-09 12:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('submission', '0001_initial'), ] operations = [ migrations.AlterField( ...
25.307692
52
0.555218
87
987
6.068966
0.563218
0.132576
0.143939
0.087121
0.17803
0.17803
0.17803
0
0
0
0
0.03012
0.327254
987
38
53
25.973684
0.76506
0.067882
0
0.322581
1
0
0.173391
0
0
0
0
0
0
1
0
false
0
0.064516
0
0.16129
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
78e18c6c578d795ea1067074f7179707a7da870d
13,897
py
Python
agent_based_models/abm_conjugation_simple/abm_grid.py
mattsmart/biomodels
237f87489553fa1ebf5c676fab563166dd0c39e9
[ "MIT" ]
null
null
null
agent_based_models/abm_conjugation_simple/abm_grid.py
mattsmart/biomodels
237f87489553fa1ebf5c676fab563166dd0c39e9
[ "MIT" ]
null
null
null
agent_based_models/abm_conjugation_simple/abm_grid.py
mattsmart/biomodels
237f87489553fa1ebf5c676fab563166dd0c39e9
[ "MIT" ]
null
null
null
import csv import datetime import os import random from math import ceil, floor from numpy.random import randint from plot_data import data_plotter from plot_grid import hex_plotter # IO # ================================================= runs_folder = "runs\\" # store timestamped runs here current_time = datetime....
33.567633
133
0.544362
1,763
13,897
4.088486
0.164492
0.016509
0.025943
0.016648
0.396088
0.331299
0.288013
0.228219
0.207547
0.18091
0
0.02039
0.340073
13,897
413
134
33.64891
0.765565
0.18083
0
0.365772
0
0
0.025503
0
0
0
0
0
0
0
null
null
0
0.026846
null
null
0.026846
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
78e33ce29f87876049b86d061a8b7164e59b5172
1,527
py
Python
packages/pyright-internal/src/tests/samples/genericTypes50.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
1
2021-09-25T19:15:45.000Z
2021-09-25T19:15:45.000Z
packages/pyright-internal/src/tests/samples/genericTypes50.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
2
2021-09-22T09:50:48.000Z
2021-09-23T14:40:06.000Z
packages/pyright-internal/src/tests/samples/genericTypes50.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
1
2021-09-25T19:17:27.000Z
2021-09-25T19:17:27.000Z
# This sample tests the TypeVar constraint solver in cases where # generic protocols are used. from datetime import timedelta from typing import Any, Generic, Literal, Protocol, TypeVar, overload _X_co = TypeVar("_X_co", covariant=True) _X_contra = TypeVar("_X_contra", contravariant=True) class SupportsDivMod(Proto...
24.629032
84
0.695481
197
1,527
4.964467
0.335025
0.030675
0.05726
0.071575
0.338446
0.292434
0.137014
0.137014
0
0
0
0.021824
0.15979
1,527
61
85
25.032787
0.740452
0.058939
0
0.285714
0
0
0.076709
0
0
0
0
0
0
1
0.257143
false
0
0.057143
0
0.4
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
78e77ce1ebd4894699361f1ec99845359fce5942
544
py
Python
signbank/dictionary/migrations/0031_auto_20170920_1051.py
ISOF-ITD/FinSL-signbank
439fad48c67d3df031e479f2f71c1d6765d7e1f5
[ "BSD-3-Clause" ]
1
2018-03-05T12:32:08.000Z
2018-03-05T12:32:08.000Z
signbank/dictionary/migrations/0031_auto_20170920_1051.py
ISOF-ITD/FinSL-signbank
439fad48c67d3df031e479f2f71c1d6765d7e1f5
[ "BSD-3-Clause" ]
4
2020-02-11T23:19:27.000Z
2021-04-28T12:37:52.000Z
signbank/dictionary/migrations/0031_auto_20170920_1051.py
ISOF-ITD/teckenlistor
43e0f72168f68024de589ebb6e1292d78054c467
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-20 07:51 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dictionary', '0030_auto_20170810_1248'), ] operations = [ migrations.Rename...
24.727273
72
0.630515
58
544
5.724138
0.775862
0.054217
0
0
0
0
0
0
0
0
0
0.080097
0.242647
544
21
73
25.904762
0.725728
0.125
0
0
1
0
0.162791
0.048626
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
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
78f03b89bdf1f4a82646bba5cfe3b83899b0b64a
990
py
Python
flymc/chain_generators.py
feynmanliang/firefly-monte-carlo
61a5e120d5c340a0e946dfe4231783c5be5aeb28
[ "MIT" ]
30
2015-09-03T20:56:46.000Z
2021-09-05T14:33:24.000Z
flymc/chain_generators.py
feynmanliang/firefly-monte-carlo
61a5e120d5c340a0e946dfe4231783c5be5aeb28
[ "MIT" ]
2
2016-04-27T17:55:35.000Z
2016-04-28T10:45:55.000Z
flymc/chain_generators.py
HIPS/firefly-monte-carlo
e72f95a73e9da59850307fb7a29d386a93236d56
[ "MIT" ]
20
2015-10-19T18:27:01.000Z
2020-03-24T02:22:43.000Z
import flymc as ff import numpy as np import numpy.random as npr def logistic_regression_chain(x, t, N_iter=100, stepsize=1, th0=1, q=0.1, y0=1, seed=None): # Set seed npr.seed(seed) # Obtain joint distributions over z and th and set step functions model = ff.LogisticModel(x, t, th0=th0, y0=y0) z...
30
107
0.641414
165
990
3.69697
0.418182
0.032787
0.039344
0.042623
0.055738
0
0
0
0
0
0
0.023778
0.235354
990
32
108
30.9375
0.782034
0.126263
0
0
0
0
0.043073
0
0
0
0
0
0
0
null
null
0
0.15
null
null
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
0
0
1
0
0
0
0
0
0
0
0
1
78f0b4b7ef1ccbd94761aaecd576e88205d1ce4d
5,258
py
Python
babygit/store.py
kryptine/ghilbert
2d00c685325e5d27ba921c35d09c01c939b373c0
[ "Apache-2.0" ]
38
2017-07-20T06:18:45.000Z
2022-02-05T13:58:07.000Z
babygit/store.py
kryptine/ghilbert
2d00c685325e5d27ba921c35d09c01c939b373c0
[ "Apache-2.0" ]
1
2017-06-09T04:07:26.000Z
2017-06-09T04:07:26.000Z
babygit/store.py
kryptine/ghilbert
2d00c685325e5d27ba921c35d09c01c939b373c0
[ "Apache-2.0" ]
3
2017-06-04T20:34:23.000Z
2021-05-16T07:11:26.000Z
# license import logging import hashlib import zlib # This is a handy base class for actual store implementations to derive from. # Note: this is not done yet, as it needs more thinking about how to handle # pack reading obj_types = [None, 'commit', 'tree', 'blob', 'tag'] def get_delta_hdr_size(data, offset): ...
33.705128
85
0.543553
659
5,258
4.223065
0.251897
0.022997
0.011498
0.017248
0.226734
0.211283
0.159899
0.104563
0.071146
0.029465
0
0.02346
0.351464
5,258
155
86
33.922581
0.792669
0.115633
0
0.244094
0
0
0.034959
0
0
0
0.010142
0
0
0
null
null
0.007874
0.023622
null
null
0.007874
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
78fa534998394baa9cc1b1d4f4982beb545c834d
1,653
py
Python
SEM-external-cell-texture/analysis_scripts/0_data_retrieval.py
ocarmo/EMP1-trafficking_PTP7-analysis
54138d63ed6bc60033d3e2412d373530f888ed86
[ "MIT" ]
null
null
null
SEM-external-cell-texture/analysis_scripts/0_data_retrieval.py
ocarmo/EMP1-trafficking_PTP7-analysis
54138d63ed6bc60033d3e2412d373530f888ed86
[ "MIT" ]
null
null
null
SEM-external-cell-texture/analysis_scripts/0_data_retrieval.py
ocarmo/EMP1-trafficking_PTP7-analysis
54138d63ed6bc60033d3e2412d373530f888ed86
[ "MIT" ]
null
null
null
# script adapted from https://github.com/dezeraecox-manuscripts/COX_Proteome-stability import os import re import zipfile import gzip import shutil from shutil import copyfile from loguru import logger from contextlib import closing import urllib.request as request import tarfile logger.info('Import OK') def downloa...
30.054545
101
0.69873
218
1,653
5.16055
0.431193
0.064
0.04
0.058667
0.030222
0
0
0
0
0
0
0.006011
0.194797
1,653
54
102
30.611111
0.839219
0.242589
0
0
0
0.032258
0.266055
0.10342
0
0
0
0
0
1
0.032258
false
0
0.354839
0
0.387097
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
78fc668a2a1f84b3d05bec556d269cdd743a5d0c
586
py
Python
assignments/assignment02/code/tests/test_tstat.py
juanshishido/info290-dds
1b9d7df8fbdf73d41fd0dbed20e13f9578c2826b
[ "MIT" ]
null
null
null
assignments/assignment02/code/tests/test_tstat.py
juanshishido/info290-dds
1b9d7df8fbdf73d41fd0dbed20e13f9578c2826b
[ "MIT" ]
null
null
null
assignments/assignment02/code/tests/test_tstat.py
juanshishido/info290-dds
1b9d7df8fbdf73d41fd0dbed20e13f9578c2826b
[ "MIT" ]
null
null
null
import unittest import pandas as pd from code.permutation import _to_arr, _tstat df = pd.DataFrame({'movie_id' : [1, 23, 45, 67, 89], 'John_Goodman' : [0, 1, 0, 1, 0], 'hit' : [1, 1, 0, 0, 1]}) arr, n = _to_arr(df, 'John_Goodman') class TestToArray(unittest.TestCase): def...
23.44
57
0.595563
89
586
3.741573
0.438202
0.03003
0.027027
0.024024
0
0
0
0
0
0
0
0.070295
0.24744
586
24
58
24.416667
0.684807
0
0
0
0
0
0.059727
0
0
0
0
0
0.2
1
0.2
false
0
0.2
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
78fc68a3a1291a1d3604df6804aee3364df53ba3
1,381
py
Python
pylearn2/models/tests/test_rbm.py
Menerve/pylearn2
ad7bcfda3294404aebd71f5a5c4a8623d401a98e
[ "BSD-3-Clause" ]
3
2016-01-23T10:18:39.000Z
2019-02-28T06:22:45.000Z
pylearn2/models/tests/test_rbm.py
Menerve/pylearn2
ad7bcfda3294404aebd71f5a5c4a8623d401a98e
[ "BSD-3-Clause" ]
null
null
null
pylearn2/models/tests/test_rbm.py
Menerve/pylearn2
ad7bcfda3294404aebd71f5a5c4a8623d401a98e
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import theano.sandbox.rng_mrg RandomStreams = theano.sandbox.rng_mrg.MRG_RandomStreams from theano import tensor as T from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix from pylearn2.models.rbm import RBM from pylearn2.training_algorithms.default import DefaultTrainingAlgorithm fro...
24.660714
73
0.724113
205
1,381
4.697561
0.395122
0.049844
0.037383
0.040498
0.128764
0.074766
0.056075
0
0
0
0
0.023277
0.191166
1,381
55
74
25.109091
0.838854
0.194062
0
0.103448
0
0
0.007246
0
0
0
0
0
0
0
null
null
0
0.241379
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
78fda7c6fde8080b7fe487aeec7801450debcef1
623
py
Python
callbacklearn/examples/graphviz/import.py
1067511899/tornado-learn
497cc8f7816f15e2eab834a758f192d50704fe05
[ "Apache-2.0" ]
1
2017-12-27T09:05:23.000Z
2017-12-27T09:05:23.000Z
callbacklearn/examples/graphviz/import.py
1067511899/tornado-learn
497cc8f7816f15e2eab834a758f192d50704fe05
[ "Apache-2.0" ]
null
null
null
callbacklearn/examples/graphviz/import.py
1067511899/tornado-learn
497cc8f7816f15e2eab834a758f192d50704fe05
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' This example shows the interals of certain Python modules when they are being imported. ''' from pycallgraph import PyCallGraph from pycallgraph import Config from pycallgraph.output import GraphvizOutput def main(): import_list = ( 'pickle', 'htmllib', 'urllib2',...
22.25
77
0.672552
69
623
5.84058
0.608696
0.111663
0.104218
0
0
0
0
0
0
0
0
0.002079
0.227929
623
27
78
23.074074
0.835759
0.173355
0
0
0
0
0.080868
0
0
0
0
0
0
1
0.058824
false
0
0.411765
0
0.470588
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
60011ab5bae42643a0c4e163e8c5c7176a9f7ae9
807
py
Python
blog/users/views.py
Obuya-Nyang/Python_Django
fce1326c26d5723239ba48ccd53523025abe7460
[ "MIT" ]
null
null
null
blog/users/views.py
Obuya-Nyang/Python_Django
fce1326c26d5723239ba48ccd53523025abe7460
[ "MIT" ]
null
null
null
blog/users/views.py
Obuya-Nyang/Python_Django
fce1326c26d5723239ba48ccd53523025abe7460
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate, login from django.shortcuts import redirect, render from django.contrib.auth.models import Group from .forms import RegistrationForm def register(request): if request.method == 'POST': form = RegistrationForm(request.POST) if form.is_valid(): ...
32.28
78
0.643123
86
807
6.023256
0.453488
0.057915
0.065637
0.081081
0
0
0
0
0
0
0
0.001653
0.25031
807
24
79
33.625
0.854545
0
0
0
0
0
0.065675
0
0
0
0
0
0
1
0.05
false
0.1
0.2
0
0.35
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
600184b2766933dee20a3749baf7fa830ab73983
3,479
py
Python
ecommerce/migrations/0001_initial.py
kobito-kun/Potatify
9e511b71be11d0aeb5b1f62e86df4ea5b329629a
[ "MIT" ]
null
null
null
ecommerce/migrations/0001_initial.py
kobito-kun/Potatify
9e511b71be11d0aeb5b1f62e86df4ea5b329629a
[ "MIT" ]
null
null
null
ecommerce/migrations/0001_initial.py
kobito-kun/Potatify
9e511b71be11d0aeb5b1f62e86df4ea5b329629a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-04-15 03:13 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
46.386667
173
0.57689
351
3,479
5.595442
0.270655
0.045825
0.04888
0.08554
0.513747
0.486253
0.422098
0.368635
0.348778
0.348778
0
0.018658
0.275941
3,479
74
174
47.013514
0.761016
0.012935
0
0.402985
1
0
0.103438
0
0
0
0
0
0
1
0
false
0
0.044776
0
0.104478
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
6001ebe13429e7888ae87faf0c304c1e53aeeebc
443
py
Python
util/filelist.py
elecun/pyface
47d7d4b6b163492c5c4dfc1ec45b05391dd98a64
[ "MIT" ]
null
null
null
util/filelist.py
elecun/pyface
47d7d4b6b163492c5c4dfc1ec45b05391dd98a64
[ "MIT" ]
null
null
null
util/filelist.py
elecun/pyface
47d7d4b6b163492c5c4dfc1ec45b05391dd98a64
[ "MIT" ]
null
null
null
# -*- coding : utf-8 -*- import os ''' @brief find all files ''' def findfiles(path, ext): all_files = [] subdirs = [path+"/"+name for name in os.listdir(path)] for subdir in subdirs: try: files = [subdir+"/"+f for f in os.listdir(subdir) if os.path.isfile(os.path.join(subdir, f)) and...
23.315789
125
0.580135
60
443
4.233333
0.5
0.125984
0.086614
0
0
0
0
0
0
0
0
0.003135
0.27991
443
18
126
24.611111
0.793103
0.049661
0
0
0
0
0.005155
0
0
0
0
0
0
1
0.090909
false
0.090909
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
0
0
0
0
0
1
0
0
0
0
0
1
600a8d4d4a23b8684227d9cf3a9d0257e50193a0
1,249
py
Python
hivs_administrative/migrations/0008_add_areatype.py
tehamalab/hivs
db7dfa7f89174be07d42bd469fd23c8553c0eff2
[ "MIT" ]
null
null
null
hivs_administrative/migrations/0008_add_areatype.py
tehamalab/hivs
db7dfa7f89174be07d42bd469fd23c8553c0eff2
[ "MIT" ]
null
null
null
hivs_administrative/migrations/0008_add_areatype.py
tehamalab/hivs
db7dfa7f89174be07d42bd469fd23c8553c0eff2
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-09-20 10:17 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('hivs_administrative', '0007_remove_areatype'), ] operations = [ migrations.CreateModel( name='A...
36.735294
176
0.59968
131
1,249
5.534351
0.51145
0.106207
0.062069
0.06069
0
0
0
0
0
0
0
0.024149
0.270616
1,249
33
177
37.848485
0.771679
0.036029
0
0.074074
1
0
0.178037
0.023295
0
0
0
0
0
1
0
false
0
0.074074
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
600badbe44633d22cdad3efd8d7668a7eac16d7b
539
py
Python
crm-poc/apps/organisation/migrations/0005_auto_20160211_1347.py
uktrade/crm-poc
9085b7bc9e58eb89971a05fa6e6cb60212d4381e
[ "BSD-3-Clause" ]
null
null
null
crm-poc/apps/organisation/migrations/0005_auto_20160211_1347.py
uktrade/crm-poc
9085b7bc9e58eb89971a05fa6e6cb60212d4381e
[ "BSD-3-Clause" ]
null
null
null
crm-poc/apps/organisation/migrations/0005_auto_20160211_1347.py
uktrade/crm-poc
9085b7bc9e58eb89971a05fa6e6cb60212d4381e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-02-11 13:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('organisation', '0004_auto_20160211_1145'), ] operations = [ migrations.Alter...
25.666667
125
0.641929
60
539
5.583333
0.833333
0
0
0
0
0
0
0
0
0
0
0.134615
0.2282
539
20
126
26.95
0.670673
0.124304
0
0
1
0
0.208955
0.1258
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
600e2eb0db2011deaae62820f2044b88a364ca21
2,473
py
Python
clase1/parsingCSV.py
raulgonzalezcz/Data-Wrangling
6ec5692f062a906cf5720327bfcac14063da1946
[ "MIT" ]
null
null
null
clase1/parsingCSV.py
raulgonzalezcz/Data-Wrangling
6ec5692f062a906cf5720327bfcac14063da1946
[ "MIT" ]
null
null
null
clase1/parsingCSV.py
raulgonzalezcz/Data-Wrangling
6ec5692f062a906cf5720327bfcac14063da1946
[ "MIT" ]
null
null
null
# Your task is to read the input DATAFILE line by line, and for the first 10 lines (not including the header) # split each line on "," and then for each line, create a dictionary # where the key is the header title of the field, and the value is the value of that field in the row. # The function parse_file should retur...
33.876712
216
0.615042
332
2,473
4.539157
0.418675
0.034506
0.031851
0.026543
0.199071
0.098208
0.054413
0.054413
0
0
0
0.015092
0.276587
2,473
73
217
33.876712
0.827278
0.350991
0
0.142857
0
0
0.189514
0.014529
0
0
0
0
0.047619
0
null
null
0
0.071429
null
null
0.071429
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
600f487d82f46181f5fff25f002cfa009f90b55b
1,891
py
Python
discordlists/__init__.py
MattIPv4/discordlists.py
16d5de8370131cd36fa5e531098d79e6b15d51a2
[ "MIT" ]
11
2019-07-26T21:27:14.000Z
2021-08-22T07:57:37.000Z
discordlists/__init__.py
botblock/discordlists.py
16d5de8370131cd36fa5e531098d79e6b15d51a2
[ "MIT" ]
4
2020-10-02T10:43:59.000Z
2021-11-30T01:46:59.000Z
discordlists/__init__.py
MattIPv4/discordlists.py
16d5de8370131cd36fa5e531098d79e6b15d51a2
[ "MIT" ]
2
2019-08-24T04:44:44.000Z
2020-09-03T21:33:52.000Z
""" * discordlists.py: A simple API wrapper for botblock.org providing server count posting to all bot lists and fetching * bot information from all. * <https://github.com/MattIPv4/discordlists.py/> * Copyright (C) 2019 Matt Cowley (MattIPv4) (me@mattcowley.co.uk) * * Permission is hereby granted, free of c...
46.121951
119
0.757271
264
1,891
5.344697
0.537879
0.062367
0.019844
0.031184
0.051028
0.051028
0
0
0
0
0
0.012706
0.167636
1,891
40
120
47.275
0.883736
0.742993
0
0
0
0
0.262009
0
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
601027ee8f3c9ab7a206ac6c24ff9c0e04d02253
522
py
Python
pokepay/request/refund_transaction.py
pokepay/pokepay-partner-python-sdk
7437370dc1cd0bde38959713015074315291b1e1
[ "MIT" ]
null
null
null
pokepay/request/refund_transaction.py
pokepay/pokepay-partner-python-sdk
7437370dc1cd0bde38959713015074315291b1e1
[ "MIT" ]
null
null
null
pokepay/request/refund_transaction.py
pokepay/pokepay-partner-python-sdk
7437370dc1cd0bde38959713015074315291b1e1
[ "MIT" ]
1
2022-01-28T03:00:12.000Z
2022-01-28T03:00:12.000Z
# DO NOT EDIT: File is generated by code generator. from pokepay_partner_python_sdk.pokepay.request.request import PokepayRequest from pokepay_partner_python_sdk.pokepay.response.transaction import Transaction class RefundTransaction(PokepayRequest): def __init__(self, transaction_id, **rest_args): self....
37.285714
79
0.737548
61
522
6.032787
0.57377
0.059783
0.097826
0.130435
0.184783
0.184783
0
0
0
0
0
0
0.172414
522
13
80
40.153846
0.851852
0.09387
0
0
1
0
0.053079
0
0.111111
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
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
601366c3d92f3004984c08f99d03efcd04ea9596
224
py
Python
PythonExecicios/ex019.py
lucasohara98/Python_CursoemVideo
e5266abaf67ef3e27fe8928458b3860feb0ed46d
[ "MIT" ]
null
null
null
PythonExecicios/ex019.py
lucasohara98/Python_CursoemVideo
e5266abaf67ef3e27fe8928458b3860feb0ed46d
[ "MIT" ]
null
null
null
PythonExecicios/ex019.py
lucasohara98/Python_CursoemVideo
e5266abaf67ef3e27fe8928458b3860feb0ed46d
[ "MIT" ]
null
null
null
import math import random p = input('primeiro aluno:') s = input('segundo aluno: ') t = input('terceiro aluno: ') q = input('quarto aluno: ') lista = [p, s, t, q] print(f'O aluno escolhido foi {random.(lista)}')
20.363636
49
0.620536
33
224
4.212121
0.575758
0
0
0
0
0
0
0
0
0
0
0
0.205357
224
10
50
22.4
0.780899
0
0
0
0
0
0.457944
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.125
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
60149080530b730b9fae58bb85a3db37ba6fe0ff
800
py
Python
tests/py/tests.py
NiceCircuits/sh_lamp_board_firmware
7dd6bdbbe173acf998b4edd9b61e1a2837e5aef6
[ "Unlicense" ]
null
null
null
tests/py/tests.py
NiceCircuits/sh_lamp_board_firmware
7dd6bdbbe173acf998b4edd9b61e1a2837e5aef6
[ "Unlicense" ]
null
null
null
tests/py/tests.py
NiceCircuits/sh_lamp_board_firmware
7dd6bdbbe173acf998b4edd9b61e1a2837e5aef6
[ "Unlicense" ]
null
null
null
# Random tests import math if 1: def isqrt(x): op = x res = 0 one = 1 << 30 while one > op: one >>= 2 while one != 0: if op >= res + one: op -= res + one res += one << 1 res >>= 1 one >>= 2 ...
19.512195
40
0.32875
100
800
2.63
0.3
0.136882
0.121673
0.053232
0.585551
0.585551
0.585551
0.494297
0.494297
0.494297
0
0.083333
0.55
800
40
41
20
0.647222
0.015
0
0.647059
0
0
0.007634
0
0
0
0
0
0
1
0.058824
false
0
0.029412
0
0.147059
0.058824
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
601591e69bd9ce25b49eb94b1ae4dddfd99a48f6
546
py
Python
stations/depot/migrations/0007_state_tag.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
stations/depot/migrations/0007_state_tag.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
stations/depot/migrations/0007_state_tag.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-05-13 11:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('depot', '0006_auto_20160513_1103'), ] operations = [ migrations.AddField( ...
26
154
0.641026
68
546
4.970588
0.823529
0
0
0
0
0
0
0
0
0
0
0.085158
0.247253
546
20
155
27.3
0.737226
0.122711
0
0
1
0
0.207983
0.048319
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
601661cc5245f792876faa091c42a70b793158d5
1,490
py
Python
backend/sales/models.py
alvarengacarlos/topicos-avancados-prog-2022
1b65eb4df16beee2213144084eb93ace5fcaf1ca
[ "MIT" ]
null
null
null
backend/sales/models.py
alvarengacarlos/topicos-avancados-prog-2022
1b65eb4df16beee2213144084eb93ace5fcaf1ca
[ "MIT" ]
null
null
null
backend/sales/models.py
alvarengacarlos/topicos-avancados-prog-2022
1b65eb4df16beee2213144084eb93ace5fcaf1ca
[ "MIT" ]
null
null
null
from django.db import models class Base(models.Model): createdAt = models.DateTimeField(auto_now=True) updatedAt = models.DateTimeField(auto_now=True) active = models.BooleanField(default=True) class Meta: ordering = ['id'] abstract = True class Category(Base): description = mode...
29.8
100
0.688591
169
1,490
5.863905
0.402367
0.066599
0.05449
0.072654
0.182644
0
0
0
0
0
0
0.01097
0.204698
1,490
50
101
29.8
0.825316
0
0
0.194444
0
0.027778
0.127431
0
0
0
0
0
0
1
0.083333
false
0
0.027778
0.083333
0.75
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
6016f4617b20765dd2813752ab8692cff1f5b759
778
py
Python
osf_pigeon/settings/local-dist.py
felliott/osf-pigeon
7a7275de65980bf9bcc28cb972472644cf16f427
[ "MIT" ]
null
null
null
osf_pigeon/settings/local-dist.py
felliott/osf-pigeon
7a7275de65980bf9bcc28cb972472644cf16f427
[ "MIT" ]
null
null
null
osf_pigeon/settings/local-dist.py
felliott/osf-pigeon
7a7275de65980bf9bcc28cb972472644cf16f427
[ "MIT" ]
null
null
null
import os DATACITE_USERNAME = os.environ.get("DATACITE_USERNAME") DATACITE_PASSWORD = os.environ.get("DATACITE_PASSWORD") OSF_BEARER_TOKEN = os.environ.get("OSF_BEARER_TOKEN") # New tokens can be found at https://archive.org/account/s3.php IA_ACCESS_KEY = os.environ.get("IA_ACCESS_KEY") IA_SECRET_KEY = os.environ.get...
33.826087
85
0.760925
121
778
4.619835
0.520661
0.080501
0.107335
0.071556
0.060823
0
0
0
0
0
0
0.036313
0.079692
778
22
86
35.363636
0.744413
0.078406
0
0
0
0
0.434965
0.172028
0
0
0
0
0
1
0
false
0.058824
0.058824
0
0.058824
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
60222cb1d18e31107f7b4eaddea2e82bc87a44fe
3,921
py
Python
scripts/game_sir_interface.py
fnivek/Pop-a-Gator
7c7e24c5baa177ea68d2eba1dcae293f053c9f23
[ "MIT" ]
null
null
null
scripts/game_sir_interface.py
fnivek/Pop-a-Gator
7c7e24c5baa177ea68d2eba1dcae293f053c9f23
[ "MIT" ]
null
null
null
scripts/game_sir_interface.py
fnivek/Pop-a-Gator
7c7e24c5baa177ea68d2eba1dcae293f053c9f23
[ "MIT" ]
null
null
null
#!/usr/bin/env python from bluetooth import * import sys from collections import OrderedDict import argparse import serial # Take in command line args parser = argparse.ArgumentParser(description='Interface with a game sir remote') parser.add_argument('--pass_to_serial', action='store_true', help='Pass the b...
29.481203
156
0.58735
494
3,921
4.497976
0.331984
0.049505
0.045005
0.031053
0.093609
0.068407
0.029703
0.029703
0
0
0
0.026011
0.27442
3,921
133
157
29.481203
0.755009
0.065545
0
0.086538
0
0
0.234072
0.033908
0
0
0.010391
0
0
0
null
null
0.048077
0.048077
null
null
0.144231
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
6022d27a5cb55c3e390e16cbf487b9e9b6398e69
6,632
py
Python
alex/applications/PublicTransportInfoCS/hclg/kaldi_calibration.py
beka-evature/alex
e8fdc6f2d908d7a1911b18f29c218ae58d19ed6f
[ "Apache-2.0" ]
1
2015-10-19T17:36:27.000Z
2015-10-19T17:36:27.000Z
alex/applications/PublicTransportInfoCS/hclg/kaldi_calibration.py
beka-evature/alex
e8fdc6f2d908d7a1911b18f29c218ae58d19ed6f
[ "Apache-2.0" ]
null
null
null
alex/applications/PublicTransportInfoCS/hclg/kaldi_calibration.py
beka-evature/alex
e8fdc6f2d908d7a1911b18f29c218ae58d19ed6f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from __future__ import unicode_literals """ This script computes a calibration fucntion for KALDI ASR word posterior scores. It assumes that relevant binary fst(s) already exists. These can be computed using :: cd .. && run_decode_indomain_kaldi.sh cd .. run_decode_ind...
24.116364
111
0.573281
1,058
6,632
3.418715
0.214556
0.024883
0.066353
0.046447
0.313243
0.219242
0.18966
0.17473
0.12386
0.119436
0
0.037888
0.291616
6,632
274
112
24.20438
0.732014
0.035133
0
0.230769
0
0
0.064603
0.018506
0
0
0
0
0
0
null
null
0
0.087912
null
null
0.10989
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
602446ed698f67f3319b8adf8bc275982056144a
9,769
py
Python
princeton/assignments/assignment2/visualize_network.py
ruikawahara/cs144_networking_stanford
0e5dc8bfe3d345a9fbc26528f024d69a0449db09
[ "MIT" ]
1
2020-06-22T15:41:17.000Z
2020-06-22T15:41:17.000Z
princeton/assignments/assignment2/visualize_network.py
ruikawahara/cs144_networking_stanford
0e5dc8bfe3d345a9fbc26528f024d69a0449db09
[ "MIT" ]
null
null
null
princeton/assignments/assignment2/visualize_network.py
ruikawahara/cs144_networking_stanford
0e5dc8bfe3d345a9fbc26528f024d69a0449db09
[ "MIT" ]
2
2020-03-09T06:44:53.000Z
2021-04-18T22:03:07.000Z
import sys from Tkinter import * import tkFont import json import thread import time from router import Router from network import Network from packet import Packet from link import Link from DVrouter import DVrouter from LSrouter import LSrouter class App: """Tkinter GUI application for network simulation visual...
42.659389
141
0.6277
1,071
9,769
5.695612
0.264239
0.027869
0.034098
0.00918
0.086885
0.056066
0.036066
0.026885
0.026885
0.026885
0
0.021409
0.25888
9,769
228
142
42.846491
0.821133
0.014024
0
0.102273
0
0.005682
0.054906
0.003176
0
0
0
0
0
0
null
null
0
0.068182
null
null
0.011364
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