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
4b9e62db340ea51b4cda5971027dcd23a1f17c3d
3,704
py
Python
superset_config.py
mikiec84/incubator-superset
3a1c32ae2378902a26873113d98bd55d290233ca
[ "Apache-2.0" ]
1
2020-08-07T16:30:54.000Z
2020-08-07T16:30:54.000Z
superset_config.py
mikiec84/incubator-superset
3a1c32ae2378902a26873113d98bd55d290233ca
[ "Apache-2.0" ]
null
null
null
superset_config.py
mikiec84/incubator-superset
3a1c32ae2378902a26873113d98bd55d290233ca
[ "Apache-2.0" ]
1
2020-08-07T16:30:58.000Z
2020-08-07T16:30:58.000Z
#--------------------------------------------------------- # Superset specific config #--------------------------------------------------------- ROW_LIMIT = 5000 SUPERSET_WEBSERVER_PORT = 8088 #--------------------------------------------------------- #--------------------------------------------------------- # Flask...
35.615385
107
0.551836
352
3,704
5.590909
0.426136
0.03252
0.042683
0.025915
0.396341
0.396341
0.382114
0.270325
0.251016
0.162602
0
0.024669
0.24487
3,704
103
108
35.961165
0.678942
0.262959
0
0
0
0
0.307692
0.276923
0
0
0
0
0
1
0
false
0
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
0
0
0
0
0
1
0
4b9ee2812f3c3d983291b0a7f5a83dcf6f853ee4
5,038
py
Python
python_code/yolo/extract_car_num.py
mukulbhave/tensorflow
848b16fa32cd0f180ab80a98254edd2147ea3948
[ "CNRI-Python" ]
null
null
null
python_code/yolo/extract_car_num.py
mukulbhave/tensorflow
848b16fa32cd0f180ab80a98254edd2147ea3948
[ "CNRI-Python" ]
null
null
null
python_code/yolo/extract_car_num.py
mukulbhave/tensorflow
848b16fa32cd0f180ab80a98254edd2147ea3948
[ "CNRI-Python" ]
null
null
null
import argparse import cv2 import re import numpy as np import string import PIL import os,glob import ntpath import time import matplotlib.pyplot as plt from PIL import Image from yad2k.models.keras_yolo import (preprocess_true_boxes, yolo_body, yolo_eval, yolo_head, yolo_loss) fr...
39.984127
133
0.639936
699
5,038
4.336195
0.288984
0.032662
0.021445
0.022435
0.076212
0.04223
0
0
0
0
0
0.035107
0.264986
5,038
126
134
39.984127
0.783419
0.089123
0
0
0
0
0.014525
0
0
0
0
0
0
1
0.043956
false
0
0.186813
0
0.274725
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
0
0
1
0
4ba04308181ebd07871e89cce3a567b034f969f9
2,881
py
Python
examples/time_frequency/plot_tfr_topography.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
2
2015-09-27T20:33:49.000Z
2020-04-22T19:10:56.000Z
examples/time_frequency/plot_tfr_topography.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
null
null
null
examples/time_frequency/plot_tfr_topography.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
1
2018-09-15T09:45:38.000Z
2018-09-15T09:45:38.000Z
""" =================================================================== Plot time-frequency representations on topographies for MEG sensors =================================================================== Both induced power and phase locking values are displayed. """ print(__doc__) # Authors: Alexandre Gramfort <g...
35.567901
79
0.591461
352
2,881
4.71875
0.414773
0.036123
0.030704
0.024082
0.131246
0.10596
0.10596
0.10596
0
0
0
0.015365
0.164179
2,881
80
80
36.0125
0.674419
0.289483
0
0.05
0
0
0.104338
0.041032
0
0
0
0
0
1
0
false
0
0.175
0
0.175
0.025
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
0
1
0
4ba39b6087c75616c2877cb61a2b0736b03e97e4
2,201
py
Python
A1/greenHouseBluetooth.py
rmit-s3559384-andrew-alvaro/IoT
ec444d0b037ddbd2e3aab01c34ea57fd2bd51d5f
[ "MIT" ]
null
null
null
A1/greenHouseBluetooth.py
rmit-s3559384-andrew-alvaro/IoT
ec444d0b037ddbd2e3aab01c34ea57fd2bd51d5f
[ "MIT" ]
1
2021-06-01T23:39:58.000Z
2021-06-01T23:39:58.000Z
A1/greenHouseBluetooth.py
AndrewAlvaro/IoT
ec444d0b037ddbd2e3aab01c34ea57fd2bd51d5f
[ "MIT" ]
null
null
null
import bluetooth import sys, os import subprocess as sp import datetime from pushBulletForBluetooth import pushNotification from makeReminderforBluetooth import Reminder import csv class blueDev: def findmyDevice(self): sendPushBullet = pushNotification() timestamp = datetime.datetime.now()...
31
103
0.52567
195
2,201
5.8
0.435897
0.045977
0.03183
0.050398
0
0
0
0
0
0
0
0.004402
0.380736
2,201
70
104
31.442857
0.825385
0
0
0.06
0
0
0.092727
0.009545
0
0
0
0
0
1
0.04
false
0
0.14
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ba509cf1a05cf33bf195b861b6306f41e7b81ea
954
py
Python
myfitnesspal_to_sqlite/cli.py
seeM/myfitnesspal-to-sqlite
ce4c133009cbeacd5fa5410016f81f5eb45e7a64
[ "Apache-2.0" ]
4
2021-07-14T17:31:40.000Z
2021-12-03T21:50:09.000Z
myfitnesspal_to_sqlite/cli.py
seeM/myfitnesspal-to-sqlite
ce4c133009cbeacd5fa5410016f81f5eb45e7a64
[ "Apache-2.0" ]
null
null
null
myfitnesspal_to_sqlite/cli.py
seeM/myfitnesspal-to-sqlite
ce4c133009cbeacd5fa5410016f81f5eb45e7a64
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import myfitnesspal import sqlite_utils import click from . import utils @click.group() @click.version_option() def cli(): "Save data from MyFitnessPal to a SQLite database" @cli.command() @click.argument( "db_path", type=click.Path(file_okay=True, dir_okay=False, allow_das...
21.2
82
0.705451
126
954
5.206349
0.388889
0.073171
0.077744
0.07622
0.073171
0
0
0
0
0
0
0
0.178197
954
44
83
21.681818
0.836735
0.131027
0
0.236842
0
0
0.159329
0
0
0
0
0
0
1
0.052632
false
0
0.131579
0
0.184211
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
0
0
1
0
4ba90d216dd9521bb1b314598a55d371117b4821
8,392
py
Python
alipay/aop/api/domain/CircleRecommendItemDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/CircleRecommendItemDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/CircleRecommendItemDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AoiInfoDTO import AoiInfoDTO from alipay.aop.api.domain.ItemStoreDTO import ItemStoreDTO class CircleRecommendItemDTO(object): def __init__(self): self._aoi_info = No...
32.401544
83
0.596282
1,063
8,392
4.367827
0.056444
0.07409
0.080121
0.058152
0.411587
0.314236
0.057506
0.031876
0
0
0
0.000172
0.308151
8,392
258
84
32.527132
0.799518
0.005005
0
0.138528
0
0
0.101366
0
0
0
0
0
0
1
0.142857
false
0
0.017316
0.064935
0.242424
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
0
0
1
0
4bab64e23dd52a8b7e2e5474ebad268f962e7d94
3,599
py
Python
vmcasterpub/uploader_dcap.py
hepix-virtualisation/vmcaster
f4ef1c65bbb81b82aa72a0cd1afc1aa6cf13eb51
[ "Apache-2.0" ]
null
null
null
vmcasterpub/uploader_dcap.py
hepix-virtualisation/vmcaster
f4ef1c65bbb81b82aa72a0cd1afc1aa6cf13eb51
[ "Apache-2.0" ]
null
null
null
vmcasterpub/uploader_dcap.py
hepix-virtualisation/vmcaster
f4ef1c65bbb81b82aa72a0cd1afc1aa6cf13eb51
[ "Apache-2.0" ]
null
null
null
import subprocess import time import logging import os import signal log = logging.getLogger(__name__) def runpreloadcommand(cmd,timeout,preload): newenv = dict(os.environ) newenv["LD_PRELOAD"] = preload process = subprocess.Popen([cmd], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE,env=new...
31.025862
108
0.594054
384
3,599
5.528646
0.244792
0.067829
0.052756
0.033914
0.562412
0.562412
0.562412
0.513424
0.513424
0.513424
0
0.011806
0.293971
3,599
115
109
31.295652
0.823691
0
0
0.601942
0
0
0.055293
0.013337
0
0
0
0
0
1
0.087379
false
0
0.048544
0
0.252427
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
0
0
1
0
4babaa82bca32126bf21a61b9966b1e6ecb0d62c
3,923
py
Python
drones/serializers.py
maprezdev/restfuldrones
9448a63b148cdf7da8f46d65067ddbb8773e2fd2
[ "MIT" ]
null
null
null
drones/serializers.py
maprezdev/restfuldrones
9448a63b148cdf7da8f46d65067ddbb8773e2fd2
[ "MIT" ]
null
null
null
drones/serializers.py
maprezdev/restfuldrones
9448a63b148cdf7da8f46d65067ddbb8773e2fd2
[ "MIT" ]
null
null
null
# drones/serializers.py file from rest_framework import serializers from drones.models import DroneCategory, Drone, Pilot, Competition from django.contrib.auth.models import User import drones.views class UserDroneSerializer(serializers.HyperlinkedModelSerializer): """serialize the drones related to a User""" ...
29.946565
100
0.617894
374
3,923
6.40107
0.270053
0.026316
0.040936
0.04386
0.32122
0.255221
0.239348
0.239348
0.239348
0.239348
0
0
0.293143
3,923
131
101
29.946565
0.863325
0.237828
0
0.488889
0
0
0.121884
0.017313
0
0
0
0
0
1
0
false
0
0.044444
0
0.311111
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
0
0
1
0
4bb0265f943903e9ce05ffd83240a67916be1de6
5,186
py
Python
scripts/utils.py
alterapars/drought_classification
585aaed3f00d5835059be1c80ad998189d9726f7
[ "MIT" ]
1
2022-02-19T11:42:24.000Z
2022-02-19T11:42:24.000Z
scripts/utils.py
alterapars/drought_classification
585aaed3f00d5835059be1c80ad998189d9726f7
[ "MIT" ]
null
null
null
scripts/utils.py
alterapars/drought_classification
585aaed3f00d5835059be1c80ad998189d9726f7
[ "MIT" ]
2
2022-02-02T08:24:37.000Z
2022-02-03T12:27:05.000Z
import random import matplotlib.pyplot as plt import numpy as np from scipy import stats ############################ STATS input data ################################################ def return_nan_percentage(input_data): """ prints percentage of nan values in max. 3D sized array Parameters -----...
26.459184
94
0.633822
716
5,186
4.444134
0.311453
0.034569
0.005657
0.013199
0.045883
0.034569
0
0
0
0
0
0.019525
0.219823
5,186
195
95
26.594872
0.76693
0.387968
0
0.057971
0
0
0.100719
0
0
0
0
0.005128
0
1
0.144928
false
0
0.057971
0
0.318841
0.188406
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
0
1
0
4bb0f0499ca35cb26e70156806115a77ce9290c6
1,382
py
Python
2021/day8/2.py
tomhel/AoC_2019
c76c34235821864bc763f85d43cbcbfb9ed43469
[ "MIT" ]
1
2021-12-07T13:18:52.000Z
2021-12-07T13:18:52.000Z
2021/day8/2.py
tomhel/AoC
c76c34235821864bc763f85d43cbcbfb9ed43469
[ "MIT" ]
null
null
null
2021/day8/2.py
tomhel/AoC
c76c34235821864bc763f85d43cbcbfb9ed43469
[ "MIT" ]
null
null
null
def load(): with open("input") as f: for x in f: a, b, = x.strip().split("|") yield {frozenset(x) for x in a.strip().split()}, [frozenset(x) for x in b.strip().split()] def decode_signal(signal): num = {} while len(num) < 10: for x in signal.difference(num.values()...
28.791667
102
0.447902
219
1,382
2.808219
0.237443
0.065041
0.117073
0.131707
0.260163
0.126829
0
0
0
0
0
0.045012
0.40521
1,382
47
103
29.404255
0.703163
0
0
0
0
0
0.004342
0
0
0
0
0
0
1
0.081081
false
0
0
0
0.135135
0.027027
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
0
1
0
4bb3c9f13001ae9f4765556a61ae26a55cabde2c
1,402
py
Python
Data Structures/Linked Lists/reverse-a-linked-list.py
Owngithub10101/Hackerrank-Problem-Solving
4e35b609c9f5b94c5bda292b9991baa054a944b6
[ "MIT" ]
23
2020-02-28T16:18:48.000Z
2021-12-21T11:51:07.000Z
Data Structures/Linked Lists/reverse-a-linked-list.py
ramanagali/Hackerrank-Problem-Solving
98f654f984013140d52b9a344146e9e38e46fb81
[ "MIT" ]
null
null
null
Data Structures/Linked Lists/reverse-a-linked-list.py
ramanagali/Hackerrank-Problem-Solving
98f654f984013140d52b9a344146e9e38e46fb81
[ "MIT" ]
16
2020-04-08T10:46:39.000Z
2021-11-15T03:46:56.000Z
# Reverse a linked list # Developer: Murillo Grubler # https://www.hackerrank.com/challenges/reverse-a-linked-list/problem # Time complexity of reverse function: O(n) class SinglyLinkedListNode: def __init__(self, node_data): self.data = node_data self.next = None class SinglyLinkedList: def _...
24.596491
69
0.622682
165
1,402
5.078788
0.357576
0.047733
0.033413
0.042959
0
0
0
0
0
0
0
0
0.285307
1,402
56
70
25.035714
0.836327
0.199715
0
0
0
0
0.008115
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.194444
0.027778
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
0
1
0
4bb64f1dd8e15adacfcfa40dd94e5cebe3d88bea
1,737
py
Python
web/api/user/utilities.py
cclrobotics/ARTBot
a0bffabebbc09361bf7748741fe3d30c78af8fbd
[ "MIT" ]
5
2020-12-04T19:28:42.000Z
2021-12-07T16:14:28.000Z
web/api/user/utilities.py
cclrobotics/ARTBot
a0bffabebbc09361bf7748741fe3d30c78af8fbd
[ "MIT" ]
50
2019-10-08T19:47:24.000Z
2021-07-26T05:43:37.000Z
web/api/user/utilities.py
cclrobotics/ARTBot
a0bffabebbc09361bf7748741fe3d30c78af8fbd
[ "MIT" ]
4
2019-10-23T04:14:49.000Z
2021-08-01T01:22:37.000Z
import os from PIL import Image import random from functools import wraps from flask import jsonify from flask_jwt_extended import get_current_user from .artpiece import Artpiece from .exceptions import InvalidUsage from web.extensions import cache #decorator to require admin_acccess for a route def access_level_requ...
31.017857
89
0.716753
222
1,737
5.391892
0.418919
0.066834
0.045113
0
0
0
0
0
0
0
0
0.007358
0.217617
1,737
56
90
31.017857
0.873436
0.044329
0
0
0
0
0.060041
0.014493
0
0
0
0
0
1
0.128205
false
0
0.230769
0
0.487179
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
0
0
1
0
4bb717792f0ab03afa44f642bc10364fd9b57993
2,528
py
Python
network/utils.py
Goochaozheng/ChunkFusion
7458a8e08886cc76cfeb87881c51e23b1d0674c3
[ "MIT" ]
3
2022-03-15T08:34:15.000Z
2022-03-15T08:40:06.000Z
network/utils.py
Goochaozheng/ChunkFusion
7458a8e08886cc76cfeb87881c51e23b1d0674c3
[ "MIT" ]
null
null
null
network/utils.py
Goochaozheng/ChunkFusion
7458a8e08886cc76cfeb87881c51e23b1d0674c3
[ "MIT" ]
null
null
null
import spconv import torch from torch import nn def residualBlock(channels, kernel_size=3): return spconv.SparseSequential( spconv.ConcatTable() .add(spconv.Identity()) .add(spconv.SparseSequential( nn.BatchNorm1d(channels), spconv.SubMConv3d(channels...
36.114286
168
0.71163
273
2,528
6.472527
0.32967
0.050934
0.061121
0.070175
0.269383
0.233164
0.166384
0.166384
0.166384
0.11545
0
0.018191
0.173655
2,528
69
169
36.637681
0.827669
0.109177
0
0.083333
0
0
0.001779
0
0
0
0
0
0
1
0.125
false
0
0.0625
0.0625
0.291667
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
0
0
1
0
4bbaecaa33cf5b0c99d08e0e5f803ac656d6dabe
2,659
py
Python
unn/models/initializer.py
zongdaoming/TinyTransformer
8e64f8816117048c388b4b20e3a56760ce149fe3
[ "Apache-2.0" ]
2
2021-08-08T11:23:14.000Z
2021-09-16T04:05:23.000Z
unn/models/initializer.py
zongdaoming/TinyTransformer
8e64f8816117048c388b4b20e3a56760ce149fe3
[ "Apache-2.0" ]
1
2021-08-08T11:25:47.000Z
2021-08-08T11:26:15.000Z
unn/models/initializer.py
zongdaoming/TinyTransformer
8e64f8816117048c388b4b20e3a56760ce149fe3
[ "Apache-2.0" ]
null
null
null
import copy import logging import math import torch from torch import nn logger = logging.getLogger('global') def init_weights_normal(module, std=0.01): for m in module.modules(): if isinstance(m, nn.Conv2d) or isinstance(m, nn.Linear) or isinstance( m, nn.ConvTranspose2d): n...
32.036145
83
0.588943
367
2,659
4.141689
0.220708
0.042763
0.102632
0.078947
0.395395
0.380921
0.380921
0.380921
0.354605
0.354605
0
0.018577
0.291463
2,659
82
84
32.426829
0.788217
0.024445
0
0.349206
0
0
0.039382
0
0
0
0
0
0
1
0.095238
false
0
0.079365
0
0.190476
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
0
0
1
0
4bbcb3d3943aa14ce46dab08f6f7c37762566694
3,000
py
Python
AudioFile.py
ZZZlax/.Pyrate
42a85213e0557b2988bf62bb8eac540263e0ce30
[ "Unlicense" ]
null
null
null
AudioFile.py
ZZZlax/.Pyrate
42a85213e0557b2988bf62bb8eac540263e0ce30
[ "Unlicense" ]
null
null
null
AudioFile.py
ZZZlax/.Pyrate
42a85213e0557b2988bf62bb8eac540263e0ce30
[ "Unlicense" ]
null
null
null
# This Python file uses the following encoding: utf-8 import os; import sys; import urllib.request; from bs4 import BeautifulSoup; import wikipedia from PyQt5.QtWebEngineWidgets import *; from PyQt5.QtGui import QIcon; from PyQt5.QtWidgets import *; from PyQt5.QtNetwork import QNetworkProxy class AudioFile(QMainWindo...
69.767442
620
0.676667
334
3,000
6.005988
0.389222
0.053838
0.03988
0.050847
0.170489
0.170489
0.170489
0.143569
0.085743
0.085743
0
0.026736
0.164667
3,000
42
621
71.428571
0.773743
0.017
0
0
0
0
0.149304
0.016966
0
0
0.001018
0
0
1
0.121212
false
0.030303
0.060606
0
0.212121
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
0
0
1
0
4bbd5d337a02e7405c19f8ae7746f2dbce197b3b
4,189
py
Python
s09_files_and_random/solutions/random_walking_simple.py
silverfield/pythonsessions
bf5d82dded7616a5d6998da4eb445708c728794f
[ "MIT" ]
null
null
null
s09_files_and_random/solutions/random_walking_simple.py
silverfield/pythonsessions
bf5d82dded7616a5d6998da4eb445708c728794f
[ "MIT" ]
null
null
null
s09_files_and_random/solutions/random_walking_simple.py
silverfield/pythonsessions
bf5d82dded7616a5d6998da4eb445708c728794f
[ "MIT" ]
null
null
null
__author__ = 'ferrard' # --------------------------------------------------------------- # Imports # --------------------------------------------------------------- import scipy as sp import random import time # --------------------------------------------------------------- # Class - Graph # -----------------------...
34.336066
116
0.467176
455
4,189
4.098901
0.274725
0.058981
0.085791
0.035389
0.153351
0.082038
0.034853
0.023592
0
0
0
0.005433
0.253044
4,189
121
117
34.619835
0.590604
0.344235
0
0.080645
0
0
0.073328
0
0
0
0
0
0
1
0.096774
false
0
0.048387
0
0.193548
0.193548
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
0
1
0
4bc09df45d93aefe38be329327bcf363df1f3d3e
7,018
py
Python
bin/tdgwgeo2csv.py
Bauble/bauble.api
183c97fda076ea870e21e70ecf89a2a94a7f5722
[ "BSD-3-Clause" ]
null
null
null
bin/tdgwgeo2csv.py
Bauble/bauble.api
183c97fda076ea870e21e70ecf89a2a94a7f5722
[ "BSD-3-Clause" ]
1
2015-02-05T13:15:00.000Z
2015-02-05T13:15:00.000Z
bin/tdgwgeo2csv.py
Bauble/bauble.api
183c97fda076ea870e21e70ecf89a2a94a7f5722
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # tdwggeo2csv.py # # Description: convert TDWG plant distribution files out of the box to a single # CSV file # # TODO: should create new id's for each entry and have a tdwg_code for # each so we can maintain as much data as possbible # TODO: we should probably include the original text files ...
31.470852
98
0.578655
963
7,018
4.050883
0.239875
0.069982
0.065368
0.053576
0.340682
0.302487
0.273263
0.260446
0.207383
0.169444
0
0.021535
0.285409
7,018
222
99
31.612613
0.756331
0.209176
0
0.286713
0
0
0.106618
0
0
0
0
0.004505
0
1
0.097902
false
0.013986
0.027972
0.006993
0.188811
0.048951
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
0
1
0
298a78605da6ac7b5a8526389d33bd97829a9e95
12,607
py
Python
tornado_sockets/views/timeseries.py
willjschmitt/joulia-webserver
712decb749c2d1bda71af49ecab245378bf30078
[ "FTL" ]
null
null
null
tornado_sockets/views/timeseries.py
willjschmitt/joulia-webserver
712decb749c2d1bda71af49ecab245378bf30078
[ "FTL" ]
95
2016-08-04T01:59:37.000Z
2021-06-10T18:41:46.000Z
tornado_sockets/views/timeseries.py
willjschmitt/joulia-webserver
712decb749c2d1bda71af49ecab245378bf30078
[ "FTL" ]
null
null
null
"""Handles websockets and asynchronous endpoints provided by Tornado instead of Django, but use the Django model framework for a database ORM. """ import datetime import functools import json import logging import tornado.escape from tornado.ioloop import IOLoop import tornado.web import tornado.websocket from django...
39.396875
80
0.649005
1,468
12,607
5.398501
0.223433
0.042397
0.028265
0.011987
0.17653
0.148391
0.107508
0.082524
0.073691
0.059811
0
0.000885
0.282938
12,607
319
81
39.520376
0.875774
0.324264
0
0.08284
0
0
0.05337
0
0
0
0
0.003135
0.011834
1
0.100592
false
0.005917
0.112426
0.005917
0.266272
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
0
0
1
0
298ede4e030cbedbbcf9ef9a22b8209288395ba1
1,751
py
Python
plugins/train/model/dfaker.py
aaman123/faceswap
a5825c3457b062c1824ef3f8b02e4f3fa4c2217f
[ "MIT" ]
2
2021-11-11T08:29:01.000Z
2021-11-11T08:34:50.000Z
plugins/train/model/dfaker.py
aaman123/faceswap
a5825c3457b062c1824ef3f8b02e4f3fa4c2217f
[ "MIT" ]
null
null
null
plugins/train/model/dfaker.py
aaman123/faceswap
a5825c3457b062c1824ef3f8b02e4f3fa4c2217f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ DFaker Model Based on the dfaker model: https://github.com/dfaker """ from keras.initializers import RandomNormal from keras.layers import Input from lib.model.nn_blocks import Conv2DOutput, UpscaleBlock, ResidualBlock from .original import Model as OriginalModel, KerasModel class Mo...
38.911111
85
0.656768
230
1,751
4.721739
0.326087
0.066298
0.04512
0.051565
0.325967
0.270718
0.270718
0.270718
0.270718
0.160221
0
0.041789
0.221017
1,751
44
86
39.795455
0.754399
0.067961
0
0
0
0
0.026103
0
0
0
0
0
0
1
0.064516
false
0
0.129032
0
0.258065
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
0
0
1
0
29902382e677a01b98fcb79346e95e0a9cada7e6
2,459
py
Python
classify/train.py
gallupliu/QA
0e284dd17e27ea9384a1e4d7a4c206eb95e4bf7f
[ "Apache-2.0" ]
3
2017-09-06T07:10:05.000Z
2019-08-01T03:27:39.000Z
classify/train.py
gallupliu/QA
0e284dd17e27ea9384a1e4d7a4c206eb95e4bf7f
[ "Apache-2.0" ]
2
2018-01-25T14:46:40.000Z
2018-01-25T14:53:13.000Z
classify/train.py
gallupliu/QA
0e284dd17e27ea9384a1e4d7a4c206eb95e4bf7f
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ @author: gallupliu @contact: gallup-liu@hotmail.com @version: 1.0 @license: Apache Licence @file: train.py @time: 2018/3/5 22:58 """ import tensorflow as tf from classify.dataset import data_utils from sklearn.model_selection import train_test_split from classify.model import TextCNN def da...
33.684932
109
0.684831
329
2,459
4.838906
0.370821
0.035176
0.035176
0.025126
0.238693
0.209799
0.163317
0.163317
0.114322
0.060302
0
0.02387
0.199268
2,459
72
110
34.152778
0.784662
0.256608
0
0
0
0
0.041065
0.036626
0
0
0
0
0
1
0.03125
false
0
0.125
0
0.1875
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2992bbf3c6e1e4c6fcb24c568c080fff0f59e86b
2,299
py
Python
src/cone/app/tests/test_browser_login.py
lenadax/cone.app
b25c55aedb85e45a962003d2767a22a927cc61c0
[ "BSD-3-Clause" ]
1
2022-03-13T17:51:09.000Z
2022-03-13T17:51:09.000Z
src/cone/app/tests/test_browser_login.py
lenadax/cone.app
b25c55aedb85e45a962003d2767a22a927cc61c0
[ "BSD-3-Clause" ]
1
2021-08-06T08:12:00.000Z
2021-08-06T08:12:00.000Z
src/cone/app/tests/test_browser_login.py
lenadax/cone.app
b25c55aedb85e45a962003d2767a22a927cc61c0
[ "BSD-3-Clause" ]
null
null
null
from cone.app import get_root from cone.app import security from cone.app import testing from cone.app.browser.login import login_view from cone.app.browser.login import logout_view from cone.tile import render_tile from cone.tile.tests import TileTestCase from webob.response import Response from webob.exc import HTTPF...
40.333333
94
0.660722
270
2,299
5.511111
0.255556
0.073925
0.060484
0.040323
0.505376
0.455645
0.370968
0.278226
0.278226
0.223118
0
0.003842
0.207482
2,299
56
95
41.053571
0.812843
0.031753
0
0.26087
0
0.043478
0.239316
0.046334
0
0
0
0
0.108696
1
0.086957
false
0.043478
0.195652
0
0.326087
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
0
0
1
0
29934fcb2bb4b9dd5b0dcf07accd0d89e7187b95
752
py
Python
View/telaEditarControle.py
IuriBritoDev/TKINO
3c689788324bd5badc84c7969f331b076046c211
[ "MIT" ]
null
null
null
View/telaEditarControle.py
IuriBritoDev/TKINO
3c689788324bd5badc84c7969f331b076046c211
[ "MIT" ]
null
null
null
View/telaEditarControle.py
IuriBritoDev/TKINO
3c689788324bd5badc84c7969f331b076046c211
[ "MIT" ]
null
null
null
from tkinter import * def TelaEditarControle(tela, controle): # Cria a tela de configuração telaEditar = Toplevel(tela) telaEditar.title('EDITA CONTROLE') telaEditar.geometry('280x180+620+120') telaEditar['bg'] = 'gray' telaEditar.resizable(False,False) telaEditar.focus_force() telaEdi...
32.695652
96
0.694149
98
752
5.295918
0.673469
0.034682
0
0
0
0
0
0
0
0
0
0.055556
0.162234
752
23
97
32.695652
0.768254
0.093085
0
0
0
0
0.113402
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.133333
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
0
0
1
0
29964b779c4f66694fdf10686261f2a4a69976ee
4,531
py
Python
src/multiuserpad/twitchutil.py
codingwithsomeguy/multiuserpad
caca02bb3f98e855a0980b8ac9947c05d5b89463
[ "MIT" ]
4
2020-04-14T03:25:06.000Z
2020-11-03T14:30:20.000Z
src/multiuserpad/twitchutil.py
codingwithsomeguy/multiuserpad
caca02bb3f98e855a0980b8ac9947c05d5b89463
[ "MIT" ]
null
null
null
src/multiuserpad/twitchutil.py
codingwithsomeguy/multiuserpad
caca02bb3f98e855a0980b8ac9947c05d5b89463
[ "MIT" ]
null
null
null
# TODO: Generalize this with the discordutil module, factor out oauth import logging from urllib.parse import urlencode import requests import json from flask import request, redirect, session from creds import get_creds from config import config from sessionutil import invalidate_session def twitch_login(): ss...
31.685315
82
0.63827
546
4,531
5.086081
0.274725
0.031689
0.023046
0.019445
0.190493
0.14116
0.123875
0.093626
0.063378
0.03529
0
0.000894
0.259766
4,531
142
83
31.908451
0.827072
0.140366
0
0.234234
0
0
0.214378
0.030405
0
0
0
0.007042
0
1
0.036036
false
0
0.072072
0
0.189189
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
0
0
1
0
2996df27209f1d350199a6a54bcf14fae9ad1a1a
6,173
py
Python
src/pixel_sorting.py
in3rtial/imgsrt
2dec237b7d797d9964ed874c4e4d72f7eb23eaf0
[ "CC0-1.0" ]
2
2015-11-08T09:22:30.000Z
2020-10-15T03:42:24.000Z
src/pixel_sorting.py
in3rtial/imgsrt
2dec237b7d797d9964ed874c4e4d72f7eb23eaf0
[ "CC0-1.0" ]
null
null
null
src/pixel_sorting.py
in3rtial/imgsrt
2dec237b7d797d9964ed874c4e4d72f7eb23eaf0
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python3 """transliteration of Kim Asendorf's pixel sorting script""" from copy import copy from random import random, gauss from PIL import Image from numpy import int32 from argparse import ArgumentParser # PROGRAM CONSTANTS # rgb(103, 105, 128) BLACK_VALUE = int32(-10000000) # rgb(164, 114, 128) WHITE_V...
32.661376
95
0.638749
821
6,173
4.580999
0.190012
0.035363
0.076044
0.042808
0.373039
0.326243
0.319596
0.289817
0.244616
0.244616
0
0.025768
0.245586
6,173
188
96
32.835106
0.781834
0.135752
0
0.271186
0
0
0.023482
0
0
0
0
0
0.025424
1
0.101695
false
0
0.042373
0
0.194915
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
0
0
1
0
299c02cae606323659e0dd5bb1c799eaccfa8b0a
2,109
py
Python
setup.py
tilakpatidar/pytest-snowflake_bdd
db49f0a6d844828b607a2717b96bba517995cf72
[ "MIT" ]
null
null
null
setup.py
tilakpatidar/pytest-snowflake_bdd
db49f0a6d844828b607a2717b96bba517995cf72
[ "MIT" ]
null
null
null
setup.py
tilakpatidar/pytest-snowflake_bdd
db49f0a6d844828b607a2717b96bba517995cf72
[ "MIT" ]
1
2022-01-24T08:26:08.000Z
2022-01-24T08:26:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import codecs import os from setuptools import setup def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() gh_run_number = os.environ.get("BUILD_NUMBER", None) build_number = None if ...
33.47619
114
0.625889
246
2,109
5.227642
0.447154
0.103421
0.136081
0.080871
0
0
0
0
0
0
0
0.023708
0.220009
2,109
62
115
34.016129
0.758055
0.019915
0
0.096154
0
0
0.505569
0.069734
0
0
0
0
0
1
0.019231
false
0
0.057692
0
0.096154
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
0
0
1
0
29a35e6f75f695c4d26d13d7a9c5d6dff08f119d
6,228
py
Python
aptitudetech_private/aptitudetech_private/doctype/simplified_time_reporting/simplified_time_reporting.py
CloudGround/aptitudetech_private
d4d150226bd33ea0c76086264286ae7cae52457f
[ "MIT" ]
null
null
null
aptitudetech_private/aptitudetech_private/doctype/simplified_time_reporting/simplified_time_reporting.py
CloudGround/aptitudetech_private
d4d150226bd33ea0c76086264286ae7cae52457f
[ "MIT" ]
null
null
null
aptitudetech_private/aptitudetech_private/doctype/simplified_time_reporting/simplified_time_reporting.py
CloudGround/aptitudetech_private
d4d150226bd33ea0c76086264286ae7cae52457f
[ "MIT" ]
1
2019-05-17T00:04:05.000Z
2019-05-17T00:04:05.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, Aptitudetech and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document class SimplifiedTimeReporting(Document): def onload_post_render(self):...
34.793296
312
0.701028
845
6,228
4.895858
0.216568
0.021271
0.021271
0.027073
0.27242
0.187576
0.129321
0.082185
0.082185
0.082185
0
0.008831
0.163616
6,228
178
313
34.988764
0.785371
0.064708
0
0.181159
0
0
0.193604
0.050034
0
0
0
0
0
1
0.065217
false
0
0.137681
0
0.246377
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
0
0
1
0
29a405435385e49ddae23458da015f3ba0c567e1
442
py
Python
6 - Python/Collections/7 - Piling Up!.py
Terence-Guan/Python.HackerRank
165a5f0e739c7678dfac7eae95443018e2167c3d
[ "MIT" ]
88
2016-10-23T16:41:14.000Z
2019-12-30T23:51:47.000Z
HackerRank/6 - Python/Collections/7 - Piling Up!.py
natalie-o-perret/coding-challenges
9a242e0ec54488f59be82592822b31ff51af1633
[ "MIT" ]
1
2018-10-13T14:31:54.000Z
2018-10-13T14:31:54.000Z
HackerRank/6 - Python/Collections/7 - Piling Up!.py
natalie-o-perret/coding-challenges
9a242e0ec54488f59be82592822b31ff51af1633
[ "MIT" ]
82
2017-02-01T17:02:56.000Z
2020-02-01T11:45:58.000Z
from collections import deque T = int(input()) for t in range(T): n = int(input()) lengths = deque(map(int, input().split())) top = max(lengths) while len(lengths) > 0: left = lengths[0] right = lengths[-1] if (right >= left) and (right <= top): top = right lengths.pop() elif (left >= right) and (lef...
19.217391
43
0.595023
65
442
4.046154
0.492308
0.091255
0.08365
0
0
0
0
0
0
0
0
0.011696
0.226244
442
22
44
20.090909
0.75731
0
0
0.095238
0
0
0.011312
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0.095238
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
0
1
0
29a7cf6d7a2997edf3ae4f28829f450e4f401145
1,225
py
Python
tests/__main__.py
nickswebsite/nickswebsite-serializer
2c131a04a4105afae439670f96b5b72bdfe65854
[ "Unlicense" ]
2
2017-09-26T16:38:36.000Z
2018-08-09T15:09:51.000Z
tests/__main__.py
nickswebsite/nickswebsite-serializer
2c131a04a4105afae439670f96b5b72bdfe65854
[ "Unlicense" ]
8
2015-02-20T13:16:11.000Z
2016-12-20T14:55:43.000Z
tests/__main__.py
nickswebsite/nickswebsite-serializer
2c131a04a4105afae439670f96b5b72bdfe65854
[ "Unlicense" ]
6
2015-05-20T21:26:40.000Z
2018-08-08T10:33:04.000Z
import doctest import sys import unittest import r2dto from tests.test_acceptance import AcceptanceTests from tests.test_base_serializer import BaseSerializerTests __all__ = ["doctest", "sys", "unittest", "r2dto", "AcceptanceTests", "BaseSerializerTests"] try: import pep8 except ImportError: print("WARNING: ...
26.06383
117
0.660408
146
1,225
5.280822
0.472603
0.046693
0.033722
0.059663
0
0
0
0
0
0
0
0.02521
0.222857
1,225
46
118
26.630435
0.784664
0
0
0.051282
0
0
0.323265
0.043265
0
0
0
0
0
1
0
false
0
0.205128
0
0.205128
0.051282
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
0
1
0
29a7fecfec58a37e5770387c0619949240d50800
10,697
py
Python
manager/jobs/jobs.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
30
2016-03-26T12:08:04.000Z
2021-12-24T14:48:32.000Z
manager/jobs/jobs.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
1,250
2016-03-23T04:56:50.000Z
2022-03-28T02:27:58.000Z
manager/jobs/jobs.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
11
2016-07-14T17:04:20.000Z
2021-07-01T16:19:09.000Z
""" Module that defines the interface between the `manager` (i.e Django) and the `broker` (i.e. RabbitMQ). Defines three functions involved in a job's lifecycle: - `dispatch_job` - send a job to a queue - `update_job` - update the status of a job by checking it's (intermediate) result - `check_job` - for a parent job...
37.013841
102
0.598299
1,351
10,697
4.669874
0.260548
0.021557
0.019179
0.008084
0.085592
0.059597
0.049136
0.043113
0.043113
0.014899
0
0.00515
0.32841
10,697
288
103
37.142361
0.873051
0.346452
0
0.219512
0
0
0.03952
0
0
0
0
0
0.006098
1
0.02439
false
0
0.054878
0.006098
0.115854
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
0
0
1
0
29aa089f836846e2e53f80e15d88b7aa8aa740d4
12,785
py
Python
assignment2/ptb-lm-loss-compute.py
adijo/ift6135-rnn
88ebcd621cea4042f5ada688f2452ce25d02b761
[ "Apache-2.0" ]
null
null
null
assignment2/ptb-lm-loss-compute.py
adijo/ift6135-rnn
88ebcd621cea4042f5ada688f2452ce25d02b761
[ "Apache-2.0" ]
null
null
null
assignment2/ptb-lm-loss-compute.py
adijo/ift6135-rnn
88ebcd621cea4042f5ada688f2452ce25d02b761
[ "Apache-2.0" ]
null
null
null
#!/bin/python # coding: utf-8 import argparse import time import collections import os import sys import torch import torch.nn from torch.autograd import Variable import torch.nn as nn import numpy as np from models_grad import RNN, GRU from models_grad import make_model as TRANSFORMER parser = argparse.ArgumentPars...
38.509036
141
0.630504
1,782
12,785
4.351291
0.248036
0.018571
0.035079
0.011607
0.108847
0.092984
0.084086
0.073253
0.062935
0.062935
0
0.008516
0.21009
12,785
331
142
38.625378
0.759283
0.196246
0
0.076531
0
0
0.118081
0.005061
0
0
0
0
0
1
0.05102
false
0.005102
0.066327
0
0.163265
0.056122
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
0
1
0
29aa65c529d8ece9233ccff13d236d4bc2a7ac6d
4,892
py
Python
python-3.4.4.amd64/Lib/site-packages/idlexlib/extensions/ClearWindow.py
CSnap/photogate
208272ef39f4e86f40d431da2ca523e21701f789
[ "CC0-1.0" ]
2
2018-12-29T13:47:40.000Z
2018-12-29T13:47:49.000Z
Build/External/WPy3710/python-3.7.1/Lib/site-packages/idlexlib/extensions/ClearWindow.py
Heono/Turtle-IDE
aa42dd8f658284601b1a8d3ffb92f157de5022e2
[ "MIT" ]
1
2022-03-17T16:46:04.000Z
2022-03-17T16:46:04.000Z
Lib/site-packages/idlexlib/extensions/ClearWindow.py
JWerbrouck/RWTH_M1_Projekt
7ae63a2277361fa3273cf0677b297379482b8240
[ "bzip2-1.0.6" ]
null
null
null
# IDLEX EXTENSION ## """ ## Copyright(C) 2011-2012 The Board of Trustees of the University of Illinois. ## All rights reserved. ## ## Developed by: Roger D. Serwy ## University of Illinois ## ## Permission is hereby granted, free of charge, to any person obtaining ## a copy of thi...
33.737931
107
0.634914
632
4,892
4.848101
0.414557
0.028721
0.019582
0.016645
0.102807
0.0953
0.080287
0.080287
0.080287
0.080287
0
0.010803
0.262061
4,892
144
108
33.972222
0.83795
0.46157
0
0.069444
0
0
0.10545
0.029621
0
0
0
0
0
1
0.111111
false
0
0.041667
0.013889
0.222222
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
0
0
1
0
29ad5c4ad4e9d3f8e84eb705d16ecf7d414f2aac
4,025
py
Python
tests/test_preprocessing_evaluation_pipelines.py
CLARIN-PL/embeddings
49fb59b796475ca92bc262ec2bc6def1d89a10e0
[ "MIT" ]
33
2021-06-15T12:09:29.000Z
2022-03-26T14:34:16.000Z
tests/test_preprocessing_evaluation_pipelines.py
CLARIN-PL/embeddings
49fb59b796475ca92bc262ec2bc6def1d89a10e0
[ "MIT" ]
201
2021-03-23T05:50:23.000Z
2022-03-31T22:56:04.000Z
tests/test_preprocessing_evaluation_pipelines.py
CLARIN-PL/embeddings
49fb59b796475ca92bc262ec2bc6def1d89a10e0
[ "MIT" ]
null
null
null
from tempfile import TemporaryDirectory from typing import Any, Dict, Tuple import datasets import flair import numpy as np import pytest import torch from flair.data import Corpus from numpy import typing as nptyping from embeddings.data.data_loader import HuggingFaceDataLoader from embeddings.data.dataset import Hu...
31.692913
99
0.766957
422
4,025
7.049763
0.241706
0.030252
0.037647
0.041681
0.362353
0.282017
0.273613
0.273613
0.223193
0.223193
0
0.009014
0.14559
4,025
126
100
31.944444
0.856063
0
0
0.269231
0
0
0.087702
0.067578
0
0
0
0
0.019231
1
0.076923
false
0
0.163462
0.048077
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
0
0
0
0
1
0
29adb65f2ba3f76e7586b891107a612d5e21f5e3
672
py
Python
Exercises/Exercises_01/06_exercise.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
7
2021-12-28T23:38:42.000Z
2022-03-29T16:36:16.000Z
Exercises/Exercises_01/06_exercise.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
null
null
null
Exercises/Exercises_01/06_exercise.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
4
2021-06-29T20:21:52.000Z
2022-03-12T10:04:17.000Z
# Proszę zaimplementować funkcję, która otrzymuje na wejściu posortowaną niemalejąco tablicę A # o rozmiarze n oraz liczbę x i sprawdza, czy x występuje w A. Jeśli tak, to zwraca najmniejszy indeks, # pod którym x występuje. def binary_search(T, i, j, x): if i > j: return None c = (i + j) // 2 if ...
28
103
0.574405
118
672
3.228814
0.457627
0.15748
0.170604
0.110236
0.089239
0.089239
0.089239
0
0
0
0
0.032051
0.303571
672
23
104
29.217391
0.782051
0.324405
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.375
0.0625
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
0
1
0
29ae59f7491eb508b08d30811e2ad409b6a63558
4,508
py
Python
lib/sentencers/RuleBasedSentencer.py
gucorpling/GumDrop
06e705adc5b78b048f199a3d6f50d911fed398e2
[ "Apache-2.0" ]
null
null
null
lib/sentencers/RuleBasedSentencer.py
gucorpling/GumDrop
06e705adc5b78b048f199a3d6f50d911fed398e2
[ "Apache-2.0" ]
null
null
null
lib/sentencers/RuleBasedSentencer.py
gucorpling/GumDrop
06e705adc5b78b048f199a3d6f50d911fed398e2
[ "Apache-2.0" ]
null
null
null
import re, io, os, sys from nltk import word_tokenize from argparse import ArgumentParser # Allow package level imports in module script_dir = os.path.dirname(os.path.realpath(__file__)) lib = os.path.abspath(script_dir + os.sep + "..") sys.path.append(lib) from conll_reader import space_join, text2conllu class RuleB...
37.882353
110
0.562999
603
4,508
4.154229
0.454395
0.006387
0.013174
0.011178
0.012774
0.012774
0.012774
0
0
0
0
0.006821
0.187001
4,508
118
111
38.20339
0.676126
0.091837
0
0.034091
0
0
0.232239
0.005145
0
0
0
0
0.011364
1
0.022727
false
0
0.045455
0
0.090909
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
0
0
0
0
0
0
0
0
1
0
29b0e35636d971fec8136ffc141e0dd2c3c239b5
2,878
py
Python
pyogp/lib/client/tests/test_appearance.py
grobertson/PyOGP.lib.Client
681492d95b9a901a79071b70c77bfdd55cdb02db
[ "Apache-2.0" ]
null
null
null
pyogp/lib/client/tests/test_appearance.py
grobertson/PyOGP.lib.Client
681492d95b9a901a79071b70c77bfdd55cdb02db
[ "Apache-2.0" ]
null
null
null
pyogp/lib/client/tests/test_appearance.py
grobertson/PyOGP.lib.Client
681492d95b9a901a79071b70c77bfdd55cdb02db
[ "Apache-2.0" ]
null
null
null
""" Contributors can be viewed at: http://svn.secondlife.com/svn/linden/projects/2008/pyogp/lib/base/trunk/CONTRIBUTORS.txt $LicenseInfo:firstyear=2008&license=apachev2$ Copyright 2009, Linden Research, Inc. Licensed under the Apache License, Version 2.0. You may obtain a copy of the License at: http://www.apa...
32.704545
89
0.723767
364
2,878
5.598901
0.313187
0.083906
0.035329
0.039254
0.36261
0.344946
0.325319
0.325319
0.325319
0.280177
0
0.03682
0.169562
2,878
87
90
33.08046
0.8159
0.177554
0
0.288462
0
0
0.060323
0.045879
0
0
0
0
0.134615
1
0.134615
false
0.038462
0.192308
0
0.403846
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
0
0
1
0
29b134fd22e0ec5acfe0ea6bb8fddd3eb700cbd7
1,018
py
Python
tests/validators/test_symbol_required.py
Ennkua/wtforms
c08ec7840c5a78ae8784139f7ee70f9627cf1ab8
[ "BSD-3-Clause" ]
null
null
null
tests/validators/test_symbol_required.py
Ennkua/wtforms
c08ec7840c5a78ae8784139f7ee70f9627cf1ab8
[ "BSD-3-Clause" ]
null
null
null
tests/validators/test_symbol_required.py
Ennkua/wtforms
c08ec7840c5a78ae8784139f7ee70f9627cf1ab8
[ "BSD-3-Clause" ]
null
null
null
import pytest from wtforms.validators import symbol_required from wtforms.validators import ValidationError @pytest.mark.parametrize("min_v", [2, 3, 4, 5, 6]) def test_correct_symbol_required(min_v, dummy_form, dummy_field): """ It should pass for the string with correct count of required symbol. """ ...
28.277778
79
0.674853
130
1,018
5.1
0.415385
0.147813
0.084465
0.11463
0.171946
0.087481
0.087481
0
0
0
0
0.02005
0.21611
1,018
35
80
29.085714
0.810777
0.139489
0
0.173913
0
0
0.128994
0.024852
0
0
0
0
0.043478
1
0.086957
false
0
0.130435
0
0.217391
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
0
0
1
0
29b2e2e2b5e0b11ab0a21e7a356d8c2fabd4abe1
1,028
py
Python
src/Nodes/WhileOp.py
gabrielzezze/z-lang
89be471fd5618a9d1c9e3eb955608cdc888511c2
[ "MIT" ]
null
null
null
src/Nodes/WhileOp.py
gabrielzezze/z-lang
89be471fd5618a9d1c9e3eb955608cdc888511c2
[ "MIT" ]
null
null
null
src/Nodes/WhileOp.py
gabrielzezze/z-lang
89be471fd5618a9d1c9e3eb955608cdc888511c2
[ "MIT" ]
null
null
null
from src.Node import Node from src.Nodes import Block from src.SymbolTable import SymbolTable class WhileOp(Node): def __init__(self, child: Block, condition: Node): self.condition = condition self.child = child super().__init__( value=condition, children=[child, con...
35.448276
82
0.694553
128
1,028
5.28125
0.28125
0.097633
0.057692
0.088757
0.510355
0.465976
0.465976
0.263314
0.263314
0.263314
0
0
0.213035
1,028
28
83
36.714286
0.8356
0
0
0.086957
0
0
0.040856
0
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.304348
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
0
0
1
0
29b61776c27c79d1d7092a2b9bd2ee11a295186e
251
py
Python
Check_if_subarray_with_0_sum_is_exists_or_not.py
KiranPesarlanka9/data-structures-and-algorithms-Problems
557e3ca7f04b37fa5a709295f455b6338815486e
[ "MIT" ]
1
2019-11-28T12:21:51.000Z
2019-11-28T12:21:51.000Z
Check_if_subarray_with_0_sum_is_exists_or_not.py
KiranPesarlanka9/data-structures-and-algorithms-Problems
557e3ca7f04b37fa5a709295f455b6338815486e
[ "MIT" ]
null
null
null
Check_if_subarray_with_0_sum_is_exists_or_not.py
KiranPesarlanka9/data-structures-and-algorithms-Problems
557e3ca7f04b37fa5a709295f455b6338815486e
[ "MIT" ]
1
2019-12-06T09:18:41.000Z
2019-12-06T09:18:41.000Z
def check(arr): sum_log = set() _sum = 0 for i in xrange(len(arr)): if _sum in sum_log: return True _sum += 1 sum_log.add(_sum) return False arr = [1, 0, -2, 5, -4, 1, 9, -2] print(check(arr))
15.6875
34
0.49004
41
251
2.829268
0.560976
0.155172
0
0
0
0
0
0
0
0
0
0.063291
0.370518
251
15
35
16.733333
0.670886
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0.090909
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
0
1
0
29b90065070b5025868557255475b9c600fb78b4
1,588
py
Python
scripts/join_completed.py
shannonfenn/data-tools
c730c2f88b8443f3c84a41467a40b2cc59dd8e87
[ "MIT" ]
null
null
null
scripts/join_completed.py
shannonfenn/data-tools
c730c2f88b8443f3c84a41467a40b2cc59dd8e87
[ "MIT" ]
null
null
null
scripts/join_completed.py
shannonfenn/data-tools
c730c2f88b8443f3c84a41467a40b2cc59dd8e87
[ "MIT" ]
null
null
null
#! /usr/bin/env python import argparse import pandas as pd import numpy as np def check_dataframe(filename, data_frame, key_columns): if any(col not in data_frame for col in key_columns): raise ValueError('Key columns not in {}.'.format(filename)) nonzero = np.count_nonzero(data_frame['trg_error']) ...
31.137255
72
0.632872
199
1,588
4.889447
0.462312
0.08222
0.024666
0.032888
0.045221
0.045221
0
0
0
0
0
0.002549
0.258816
1,588
50
73
31.76
0.824129
0.066121
0
0
0
0
0.127703
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.194444
0.027778
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
0
1
0
29b95a7e7b6ab6d04a7196faa187fadcabb8c0e4
9,859
py
Python
pet/preprocessor.py
YerongLi/pet
8323080e9033c38c234431aecacad154ed477472
[ "Apache-2.0" ]
null
null
null
pet/preprocessor.py
YerongLi/pet
8323080e9033c38c234431aecacad154ed477472
[ "Apache-2.0" ]
null
null
null
pet/preprocessor.py
YerongLi/pet
8323080e9033c38c234431aecacad154ed477472
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
48.566502
120
0.674713
1,266
9,859
5.008689
0.191153
0.047942
0.037849
0.034695
0.420912
0.397414
0.337802
0.305315
0.281974
0.269989
0
0.004935
0.239578
9,859
202
121
48.806931
0.84087
0.165027
0
0.276423
0
0.00813
0.040789
0
0
0
0
0
0.065041
1
0.04878
false
0.00813
0.04065
0
0.162602
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
0
0
1
0
29bcfd631b01019c349e3bbedaeeb2cbda9283d5
2,832
py
Python
src/cogs/xpevent.py
nsde/lhxp
ef6d1004c704c1156b9b01172e4748634b31b541
[ "MIT" ]
2
2021-12-18T11:44:31.000Z
2022-01-07T23:27:00.000Z
src/cogs/xpevent.py
nsde/lhxp
ef6d1004c704c1156b9b01172e4748634b31b541
[ "MIT" ]
null
null
null
src/cogs/xpevent.py
nsde/lhxp
ef6d1004c704c1156b9b01172e4748634b31b541
[ "MIT" ]
null
null
null
try: from .helpers import config, management, xp, spam except ImportError: import helpers.config, helpers.management, helpers.xp, helpers.spam import time import discord from discord.ext import commands from discord.commands import slash_command class XPEvent(commands.Cog): def __init__(self, client): ...
32.551724
92
0.628884
347
2,832
4.994236
0.273775
0.097519
0.0779
0.055395
0.195038
0.139642
0.041546
0.041546
0
0
0
0.009995
0.258121
2,832
87
93
32.551724
0.81485
0.019774
0
0.15625
0
0
0.056978
0.008294
0
0
0
0
0
1
0.03125
false
0.015625
0.109375
0
0.203125
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
0
0
1
0
29be043b68e9b14821af31619772ea7a817c2a7b
2,199
py
Python
utilities/utils.py
jluech/PGAcloud_Manager
9008fac26f9d762b2ab527034e46d467b5b0c26f
[ "MIT" ]
null
null
null
utilities/utils.py
jluech/PGAcloud_Manager
9008fac26f9d762b2ab527034e46d467b5b0c26f
[ "MIT" ]
null
null
null
utilities/utils.py
jluech/PGAcloud_Manager
9008fac26f9d762b2ab527034e46d467b5b0c26f
[ "MIT" ]
null
null
null
import logging import os import subprocess import sys import yaml files_dir = "" # --- General util commands --- def execute_command( command, working_directory, environment_variables, executor, logger=logging, livestream=False ): logger_prefix = "" if executo...
23.393617
76
0.637108
275
2,199
4.850909
0.327273
0.041979
0.029985
0.034483
0.167916
0.122939
0.085457
0.043478
0.043478
0
0
0.006595
0.241473
2,199
93
77
23.645161
0.793165
0.031378
0
0.058824
0
0
0.028209
0
0
0
0
0
0
1
0.117647
false
0
0.073529
0.014706
0.279412
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
0
0
1
0
29bfe3374dd25a06358a1da66a585cb725eee7be
578
py
Python
pyscf/nao/m_color.py
KMCzajkowski/pyscf
e8af41d910cc0d3963655120c0b689590ad978e7
[ "BSD-2-Clause" ]
null
null
null
pyscf/nao/m_color.py
KMCzajkowski/pyscf
e8af41d910cc0d3963655120c0b689590ad978e7
[ "BSD-2-Clause" ]
null
null
null
pyscf/nao/m_color.py
KMCzajkowski/pyscf
e8af41d910cc0d3963655120c0b689590ad978e7
[ "BSD-2-Clause" ]
null
null
null
class color: import os T = os.getenv('TERM') if ( T=='cygwin' or T=='mingw' ) : HEADER = '\033[01;35m' BLUE = '\033[01;34m' GREEN = '\033[01;32m' WARNING = '\033[01;33m' FAIL = '\033[01;31m' RED = FAIL ENDC = '\033[0m' else : HEADER = '\033[95m' BLUE = '\033[94m' GREEN = ...
19.931034
36
0.49308
77
578
3.701299
0.480519
0.087719
0.077193
0.098246
0.112281
0
0
0
0
0
0
0.169154
0.304498
578
28
37
20.642857
0.539801
0
0
0.148148
0
0
0.214533
0
0
0
0
0
0
1
0.037037
false
0
0.037037
0
0.148148
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
0
0
1
0
29c079a0baef167378f06f75800a84013625dfce
7,958
py
Python
Scripts Daily/재무정보수집.py
oms1226/msbot
4c141502ef6899f9e4bb3fe8e03c7eb866487d5e
[ "MIT" ]
1
2020-05-01T07:50:49.000Z
2020-05-01T07:50:49.000Z
Scripts Daily/재무정보수집.py
oms1226/msbot
4c141502ef6899f9e4bb3fe8e03c7eb866487d5e
[ "MIT" ]
1
2021-06-01T22:36:14.000Z
2021-06-01T22:36:14.000Z
Scripts Daily/재무정보수집.py
oms1226/msbot
4c141502ef6899f9e4bb3fe8e03c7eb866487d5e
[ "MIT" ]
8
2019-10-26T03:30:53.000Z
2022-03-26T08:06:25.000Z
# -*- coding: utf-8 -*- import re import calendar import datetime, time from datetime import timedelta import urllib.request import requests, json from http.cookiejar import CookieJar from bs4 import BeautifulSoup import numpy as np import pandas as pd from pandas import DataFrame import pandas.io.sql as pdsql from ma...
37.895238
199
0.539834
1,034
7,958
4.088008
0.236944
0.039745
0.038325
0.029808
0.615093
0.582446
0.574403
0.559735
0.559735
0.559735
0
0.023418
0.280975
7,958
209
200
38.076555
0.715309
0.112842
0
0.534247
0
0.027397
0.135058
0.018908
0
0
0
0
0
1
0.034247
false
0
0.09589
0
0.171233
0.006849
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
0
1
0
29c3750914f24305e5c021af40b18b30bd0ff4d0
5,387
py
Python
information_extraction/Preprocessor.py
shatha2014/Fashion_Rec
5f4dd4f1c7c2d18a9364b02f1798125c259e6598
[ "BSD-2-Clause" ]
11
2018-08-30T10:52:35.000Z
2021-11-08T06:04:22.000Z
information_extraction/Preprocessor.py
shatha2014/Fashion_Rec
5f4dd4f1c7c2d18a9364b02f1798125c259e6598
[ "BSD-2-Clause" ]
1
2020-09-08T19:53:48.000Z
2021-11-08T13:29:42.000Z
information_extraction/Preprocessor.py
shatha2014/Fashion_Rec
5f4dd4f1c7c2d18a9364b02f1798125c259e6598
[ "BSD-2-Clause" ]
8
2018-08-30T10:52:37.000Z
2022-02-20T09:13:40.000Z
# Author: Kim Hammar <kimham@kth.se> KTH 2018 from nltk.corpus import stopwords from nltk.stem import WordNetLemmatizer from nltk.tokenize import TweetTokenizer from nltk.tag.perceptron import PerceptronTagger import nltk import emoji nltk.download('averaged_perceptron_tagger') nltk.download('stopwords') nltk.download...
45.652542
131
0.667347
726
5,387
4.81405
0.165289
0.088698
0.051502
0.018884
0.420029
0.388269
0.384263
0.325036
0.231187
0.115308
0
0.00307
0.213848
5,387
117
132
46.042735
0.822196
0.122888
0
0
0
0
0.056791
0.005614
0
0
0
0
0
1
0.146667
false
0
0.08
0
0.293333
0.093333
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
0
1
0
29c79f364e1d41c68e19d472b3c1d55bd0b5b9e5
1,070
py
Python
afterglow_core/schemas/api/v1/jobs/field_cal_job.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
2
2021-05-24T15:12:07.000Z
2022-02-17T19:58:16.000Z
afterglow_core/schemas/api/v1/jobs/field_cal_job.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
1
2022-02-27T03:01:06.000Z
2022-02-27T03:01:06.000Z
afterglow_core/schemas/api/v1/jobs/field_cal_job.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
2
2021-06-08T18:16:40.000Z
2021-07-09T14:19:49.000Z
""" Afterglow Core: photometric calibration job schemas """ from typing import List as TList from marshmallow.fields import Integer, List, Nested from ..job import JobSchema, JobResultSchema from ..field_cal import FieldCalSchema, FieldCalResultSchema from ..photometry import PhotSettingsSchema from .source_extracti...
31.470588
72
0.774766
92
1,070
8.869565
0.434783
0.029412
0
0
0
0
0
0
0
0
0
0
0.142991
1,070
33
73
32.424242
0.889858
0.047664
0
0
0
0
0.048467
0.02275
0
0
0
0
0
1
0
false
0
0.3
0
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
0
0
1
0
29c7ff7b0f45d2d5b8a537d89fbcc9e55ee8907c
2,692
py
Python
Python/addRow.py
alexwu2021/practice
ff786d4d16afdef3e031002d22b58a976c8ed16b
[ "MIT" ]
null
null
null
Python/addRow.py
alexwu2021/practice
ff786d4d16afdef3e031002d22b58a976c8ed16b
[ "MIT" ]
1
2021-11-22T05:54:33.000Z
2021-11-22T05:54:33.000Z
Python/addRow.py
alexwu2021/practice
ff786d4d16afdef3e031002d22b58a976c8ed16b
[ "MIT" ]
null
null
null
#import unittest def addRow(r, d, v): dmo = [] getHeightAndMore(r, 0, dmo, d) if len(dmo) <= 0: print ('no way to add row for no d-1 nodes found') return print('dmo has %d' % len(dmo)) print('dmo: %s' % ','.join([str(x.val) for x in dmo])) for n in dmo: left, right = N...
23.206897
154
0.556092
398
2,692
3.673367
0.170854
0.073871
0.057456
0.069767
0.120383
0.087551
0.087551
0.04788
0.04788
0
0
0.020321
0.305349
2,692
115
155
23.408696
0.761497
0.094725
0
0.139535
0
0
0.043299
0
0
0
0
0
0
1
0.093023
false
0
0
0
0.151163
0.162791
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
0
1
0
29cb4ed39bb073f7561e68074f27a72bbc5b7c7c
7,167
py
Python
tests/test_editor_common.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
null
null
null
tests/test_editor_common.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
21
2020-07-03T13:14:15.000Z
2020-07-14T14:27:43.000Z
tests/test_editor_common.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
null
null
null
from ped_core import editor_common import io import pprint import os import curses import curses.ascii import time import re from ped_core import keymap from ped_core import keytab from ped_core import clipboard from ped_test_util import read_str, match_attr, undo_all, window_pos, play_macro, validate_mark, validate_sc...
40.954286
205
0.599972
960
7,167
4.320833
0.194792
0.052314
0.082208
0.077869
0.425747
0.391273
0.36162
0.324012
0.293153
0.283028
0
0.036176
0.255616
7,167
174
206
41.189655
0.741331
0.001814
0
0.391566
0
0
0.052161
0.003356
0
0
0
0
0.373494
1
0.036145
false
0
0.078313
0
0.114458
0.012048
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
0
1
0
29cf80f6c6965927720d1b295a0c8b626681599d
254
py
Python
Store/robot-test/say.py
Quanta-Robotics/Robot-Blueberry
7b7e77e09ac5e9ec5afd947e0db1ecc8773e56da
[ "MIT" ]
25
2021-06-08T07:09:30.000Z
2021-12-30T06:28:35.000Z
Store/robot-test/say.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
2
2021-05-23T12:54:51.000Z
2021-06-07T17:47:56.000Z
Store/robot-test/say.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
14
2021-06-08T13:02:28.000Z
2021-12-30T20:07:18.000Z
import pyttsx3 engine = pyttsx3.init() engine.setProperty('rate', 150) voices = engine.getProperty('voices') engine.setProperty("voice", 'english_rp+f4') def talk(text): engine.say(text) engine.runAndWait() talk("My name is robot leena")
15.875
44
0.704724
33
254
5.393939
0.69697
0.191011
0
0
0
0
0
0
0
0
0
0.02765
0.145669
254
15
45
16.933333
0.792627
0
0
0
0
0
0.198413
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
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
0
0
1
0
29d3aa7dc92ae861ca049b62d573cabdb669506d
1,579
py
Python
tests/integration/test_dug_utils.py
helxplatform/roger
60c1c1198c41949804692217c74848e2aa8b9ea2
[ "MIT" ]
null
null
null
tests/integration/test_dug_utils.py
helxplatform/roger
60c1c1198c41949804692217c74848e2aa8b9ea2
[ "MIT" ]
7
2021-04-08T12:17:27.000Z
2022-02-08T23:12:32.000Z
tests/integration/test_dug_utils.py
helxplatform/roger
60c1c1198c41949804692217c74848e2aa8b9ea2
[ "MIT" ]
3
2020-12-07T20:49:43.000Z
2021-06-12T19:49:43.000Z
import tempfile from pathlib import Path import pytest from dug_helpers.dug_utils import FileFetcher, get_topmed_files, get_dbgap_files from roger.Config import config def test_fetch_network_file(): filename = "README.md" with tempfile.TemporaryDirectory() as tmp_dir: fetch1 = FileFetcher( ...
26.316667
80
0.640912
184
1,579
5.266304
0.277174
0.049536
0.04128
0.099071
0.573787
0.50774
0.468524
0.385965
0.385965
0.385965
0
0.003439
0.263458
1,579
60
81
26.316667
0.829751
0
0
0.444444
0
0
0.107595
0.056962
0
0
0
0
0.133333
1
0.088889
false
0
0.111111
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
29d584e58250f68d3fe99344f92ca1d026fcfaa6
6,915
py
Python
tests/bean_test.py
samuelchen/truepy
f1fd86ffccf7c3b2eee4cd4ced9436ff832d257e
[ "OpenSSL" ]
40
2015-08-04T11:01:33.000Z
2022-01-17T10:45:18.000Z
tests/bean_test.py
samuelchen/truepy
f1fd86ffccf7c3b2eee4cd4ced9436ff832d257e
[ "OpenSSL" ]
9
2016-09-14T04:40:58.000Z
2021-07-22T09:07:51.000Z
tests/bean_test.py
samuelchen/truepy
f1fd86ffccf7c3b2eee4cd4ced9436ff832d257e
[ "OpenSSL" ]
13
2015-02-24T05:39:10.000Z
2022-02-03T00:41:53.000Z
# coding: utf-8 # truepy # Copyright (C) 2014-2015 Moses Palmér # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation, either version 3 of the License, or (at your option) any later # version. # # Th...
32.013889
79
0.572523
717
6,915
5.343096
0.232915
0.082224
0.021926
0.022187
0.321587
0.249804
0.165492
0.151397
0.087967
0.074393
0
0.010553
0.314823
6,915
215
80
32.162791
0.798016
0.175127
0
0.409396
0
0
0.16316
0.029066
0
0
0
0.004651
0.174497
1
0.134228
false
0.013423
0.04698
0.020134
0.248322
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
0
0
1
0
29d6295eb61db2d065b900e834740080a6c5d3ff
3,679
py
Python
normal_version/export_es_data.py
Logistic98/es-data-transfer
6ed916201e8ab701e258e156e2c71468a3c509e5
[ "Apache-2.0" ]
1
2022-03-23T05:22:41.000Z
2022-03-23T05:22:41.000Z
normal_version/export_es_data.py
Logistic98/es-data-transfer
6ed916201e8ab701e258e156e2c71468a3c509e5
[ "Apache-2.0" ]
null
null
null
normal_version/export_es_data.py
Logistic98/es-data-transfer
6ed916201e8ab701e258e156e2c71468a3c509e5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from elasticsearch import Elasticsearch from datetime import timedelta import datetime import os import json import logging from configparser import ConfigParser # 生成日志文件 logging.basicConfig(filename='logging_es.log', level=logging.INFO, format='%(asctime)s - %(name)s - %(l...
32.27193
84
0.57271
455
3,679
4.362637
0.292308
0.051385
0.036272
0.042317
0.125945
0.080605
0.057431
0.057431
0.029219
0.029219
0
0.010491
0.274531
3,679
113
85
32.557522
0.733233
0.055178
0
0.090909
0
0
0.148342
0.04014
0
0
0
0
0
1
0.034091
false
0.034091
0.079545
0
0.125
0.102273
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
0
1
0
29dae29f89683a7db968db7356c874c048160ba7
2,645
py
Python
cnmodel/util/expfitting.py
pbmanis/cnmodel
eee593c673752c19137658d5b9a381ea9ad4580f
[ "BSD-3-Clause" ]
5
2017-07-26T21:46:14.000Z
2020-11-27T07:53:14.000Z
cnmodel/util/expfitting.py
pbmanis/cnmodel
eee593c673752c19137658d5b9a381ea9ad4580f
[ "BSD-3-Clause" ]
12
2017-07-26T07:16:16.000Z
2021-07-14T13:41:37.000Z
cnmodel/util/expfitting.py
pbmanis/cnmodel
eee593c673752c19137658d5b9a381ea9ad4580f
[ "BSD-3-Clause" ]
10
2017-07-26T07:03:29.000Z
2021-06-23T15:52:37.000Z
#!/usr/bin/env python # encoding: utf-8 """ expfitting.py Provide single or double exponential fits to data. """ import lmfit import numpy as np import scipy.optimize class ExpFitting: """ Parameters ---------- nexp : int 1 or 2 for single or double exponential fit initpars : dict ...
33.910256
92
0.485444
349
2,645
3.644699
0.34384
0.051887
0.028302
0.018868
0.258648
0.207547
0.207547
0.179245
0.179245
0.144654
0
0.052033
0.367864
2,645
77
93
34.350649
0.708732
0.196219
0
0.086957
0
0
0.018474
0
0
0
0
0
0.043478
1
0.130435
false
0
0.065217
0.086957
0.326087
0.021739
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
0
1
0
29db5cdc597125eaa323b36fcd83763a78a5f8f9
4,338
py
Python
django_cloud_tasks/models.py
joaodaher/django-cloud-tasks
bc8ff94a281bda8b49ee73229d5ed5cacdd7a388
[ "Apache-2.0" ]
null
null
null
django_cloud_tasks/models.py
joaodaher/django-cloud-tasks
bc8ff94a281bda8b49ee73229d5ed5cacdd7a388
[ "Apache-2.0" ]
1
2020-07-09T17:48:19.000Z
2020-07-09T17:53:33.000Z
django_cloud_tasks/models.py
joaodaher/django-cloud-tasks
bc8ff94a281bda8b49ee73229d5ed5cacdd7a388
[ "Apache-2.0" ]
null
null
null
# pylint: disable=no-member from datetime import datetime from typing import Optional, Dict from django.db import transaction, models from django.apps import apps from django_cloud_tasks import tasks, serializers class Pipeline(models.Model): name = models.CharField(max_length=100) def start(self): r...
31.434783
109
0.642692
487
4,338
5.581109
0.289528
0.02649
0.029433
0.032377
0.269316
0.228845
0.160412
0.13245
0.073584
0.038263
0
0.002774
0.251959
4,338
137
110
31.664234
0.834823
0.074228
0
0.20354
0
0
0.10399
0.037905
0
0
0
0.007299
0
1
0.079646
false
0
0.044248
0.00885
0.327434
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
0
0
1
0
29db5eb5db45a035903363004257142de128c253
2,913
py
Python
src/ifood/model/order/event.py
micael95/sdk-ifood-python
27462d8127b62a29b5c89624e79accbea9563a80
[ "MIT" ]
2
2021-05-06T18:50:43.000Z
2021-06-05T21:54:04.000Z
src/ifood/model/order/event.py
micael95/sdk-ifood-python
27462d8127b62a29b5c89624e79accbea9563a80
[ "MIT" ]
null
null
null
src/ifood/model/order/event.py
micael95/sdk-ifood-python
27462d8127b62a29b5c89624e79accbea9563a80
[ "MIT" ]
1
2021-05-06T18:50:54.000Z
2021-05-06T18:50:54.000Z
from datetime import datetime from uuid import UUID from ...serializer import IfoodSerializable from ...utils import auto_str from uuid import UUID @auto_str class Consumer(IfoodSerializable): financial_occurrence: str payment_type: str @staticmethod def unserialize(dict=None): if dict is No...
26.243243
119
0.610711
307
2,913
5.641694
0.192182
0.009238
0.057737
0.069284
0.42552
0.405889
0.360855
0.360855
0.327945
0.327945
0
0
0.311363
2,913
110
120
26.481818
0.86341
0
0
0.438202
0
0
0.019567
0.007896
0
0
0
0
0
1
0.067416
false
0.011236
0.05618
0
0.426966
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
0
0
1
0
29dc92373ea8f436e4e33eb083ad67d7e28abdae
2,599
py
Python
scripts/pm/set_sla_kpis.py
supsi-dacd-isaac/parity-sidechain-interface
b64a5fb724955332afb4998344081d1b93ac216a
[ "MIT" ]
null
null
null
scripts/pm/set_sla_kpis.py
supsi-dacd-isaac/parity-sidechain-interface
b64a5fb724955332afb4998344081d1b93ac216a
[ "MIT" ]
null
null
null
scripts/pm/set_sla_kpis.py
supsi-dacd-isaac/parity-sidechain-interface
b64a5fb724955332afb4998344081d1b93ac216a
[ "MIT" ]
null
null
null
# Importing section import json import requests import argparse import logging import time import datetime from classes.time_utils import TimeUtils import utilities as u # Main if __name__ == "__main__": arg_parser = argparse.ArgumentParser() arg_parser.add_argument('-c', help='config file') arg_parser.ad...
33.320513
106
0.614082
302
2,599
5.129139
0.39404
0.027114
0.019367
0.036798
0.205294
0.205294
0.136862
0.136862
0.136862
0
0
0.001009
0.237014
2,599
77
107
33.753247
0.780131
0.083109
0
0.111111
0
0
0.205474
0.050526
0
0
0
0
0
1
0
false
0
0.148148
0
0.148148
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
0
0
1
0
29dd6adf13db2f5c89c5474bb138c114f67d7138
4,506
py
Python
mac/pyobjc-framework-Quartz/Examples/Core Image/CIBevelSample/CIBevelView.py
albertz/music-player
d23586f5bf657cbaea8147223be7814d117ae73d
[ "BSD-2-Clause" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Quartz/Examples/Core Image/CIBevelSample/CIBevelView.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Quartz/Examples/Core Image/CIBevelSample/CIBevelView.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from Cocoa import * from Quartz import * from SampleCIView import SampleCIView from math import sin import objc NUM_POINTS=4 class CIBevelView (SampleCIView): currentPoint = objc.ivar(type=objc._C_INT) points = objc.ivar() angleTime = objc.ivar(type=objc._C_FLT) lineIm...
36.634146
126
0.630715
471
4,506
5.906582
0.312102
0.061107
0.01977
0.052121
0.141625
0.050324
0.037383
0
0
0
0
0.023767
0.262317
4,506
122
127
36.934426
0.813177
0.031735
0
0.078652
0
0
0.052088
0.004819
0
0
0
0
0
1
0.05618
false
0
0.05618
0
0.224719
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
0
0
1
0
29e24314b4b43a27db5d5e7fb35c4c927a75f669
4,226
py
Python
oops_fhir/r4/code_system/request_intent.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/request_intent.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/request_intent.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["RequestIntent"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json")) class RequestIntent: """ RequestIntent Codes indicating the degree of authority/i...
35.813559
266
0.600331
428
4,226
5.897196
0.32243
0.051506
0.087163
0.083201
0.513471
0.481775
0.452456
0.452456
0.452456
0.452456
0
0.001397
0.322291
4,226
117
267
36.119658
0.879888
0.046616
0
0.059701
0
0.074627
0.527142
0
0
0
0
0
0
1
0
false
0
0.044776
0
0.149254
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
0
0
1
0
29e35c162bb13bbac4bbfa70c3c033b9eb162d1c
266
py
Python
ABC/202/b.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/202/b.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/202/b.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
def main(): # input S = list(input()) # compute for i,s in enumerate(S): if s == '6': S[i] = '9' elif s == '9': S[i] = '6' # output print(''.join(reversed(S))) if __name__ == '__main__': main()
14.777778
31
0.406015
34
266
2.941176
0.558824
0.06
0
0
0
0
0
0
0
0
0
0.025157
0.402256
266
17
32
15.647059
0.603774
0.075188
0
0
0
0
0.049587
0
0
0
0
0
0
1
0.1
false
0
0
0
0.1
0.1
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
0
1
0
29e60f021e4805e18f02c579cb9365d85a32c49b
371
py
Python
test_game.py
thom1555/euchre
f2fa54fcecb5deeaad2e750e8cda04c94eb1e1e9
[ "Apache-2.0" ]
null
null
null
test_game.py
thom1555/euchre
f2fa54fcecb5deeaad2e750e8cda04c94eb1e1e9
[ "Apache-2.0" ]
null
null
null
test_game.py
thom1555/euchre
f2fa54fcecb5deeaad2e750e8cda04c94eb1e1e9
[ "Apache-2.0" ]
null
null
null
import unittest from game import Game from suit import Suit class TestGame(unittest.TestCase): def test_setup(self): g = Game('tim', 'rick', 'bob', 'james', 'ballers', 'scrubs') self.assertEqual(len(g.players), 4) self.assertEqual(g.dealer, 0) self.assertEqual(g.trump, Suit.spades...
21.823529
68
0.6469
48
371
4.8125
0.625
0.194805
0.138528
0
0
0
0
0
0
0
0
0.006826
0.210243
371
16
69
23.1875
0.78157
0
0
0
0
0
0.097035
0
0
0
0
0
0.272727
1
0.090909
false
0
0.272727
0
0.454545
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
0
0
1
0
29ea1aef1c82bd772907c42e68df319791525947
6,824
py
Python
Render2018/lib/create_config_bodyflow.py
BigOto2/BlenderRenderDNS
a8ff239ecffef5217f0db35d579227a0a444c32d
[ "MIT" ]
1
2021-07-28T00:42:39.000Z
2021-07-28T00:42:39.000Z
Render2018/lib/create_config_bodyflow.py
BigOto2/BlenderRenderDNS
a8ff239ecffef5217f0db35d579227a0a444c32d
[ "MIT" ]
null
null
null
Render2018/lib/create_config_bodyflow.py
BigOto2/BlenderRenderDNS
a8ff239ecffef5217f0db35d579227a0a444c32d
[ "MIT" ]
1
2019-05-13T17:38:05.000Z
2019-05-13T17:38:05.000Z
import os.path import configparser from dircheck import get_yesno_input import create_jobscripts from create_dirname_config import config_dirname_cfg from create_all_dirs import create_all import socket import cgns_load_data # Script that creates the two configuration files (case and render files) necessary to run the ...
56.396694
286
0.75381
980
6,824
5.010204
0.242857
0.063136
0.058045
0.034216
0.275153
0.205092
0.164766
0.129532
0.105906
0.092057
0
0.00728
0.134379
6,824
120
287
56.866667
0.823938
0.228751
0
0.049383
0
0.049383
0.350391
0.029024
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.024691
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
0
1
0
29eb3307185eaf4daecd050d3551f86ee4f012bf
1,004
py
Python
util/replicate.py
ZvonimirSun/janusgraph-utils
c10e7b3ccb7c56c7662053d9d8b1d0bcb0a20bb8
[ "Apache-2.0" ]
204
2017-08-10T02:36:53.000Z
2022-03-11T12:21:18.000Z
util/replicate.py
HsbcJone/Jaunsgraph-LoadBulkData-Utils-
9c4e3b0c0b9f9966ab43422929ae5ea4993b3bb8
[ "Apache-2.0" ]
37
2017-08-16T01:06:02.000Z
2020-08-05T02:30:18.000Z
util/replicate.py
HsbcJone/Jaunsgraph-LoadBulkData-Utils-
9c4e3b0c0b9f9966ab43422929ae5ea4993b3bb8
[ "Apache-2.0" ]
103
2017-08-29T14:17:32.000Z
2022-03-07T14:30:48.000Z
#!/usr/bin/python import sys import simplejson as json def replicate_vertex(conf,pos, i): p = conf["VertexTypes"][pos]["columns"]["T{}-P1".format(pos+1)] for x in range(2, i+1): new_key = "T{}-P{}".format(pos+1, str(x)) conf["VertexTypes"][pos]["columns"][new_key] = p return conf def replicate_edge(conf, pos, ...
32.387097
77
0.62749
184
1,004
3.320652
0.255435
0.126023
0.10802
0.090016
0.700491
0.620295
0.620295
0.558101
0.459902
0.420622
0
0.031638
0.118526
1,004
30
78
33.466667
0.658757
0.015936
0
0.166667
0
0
0.109422
0
0
0
0
0
0
1
0.125
false
0
0.083333
0
0.291667
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
0
0
1
0
29eb4a3f8932c013c8f2635314e11c22d12e4148
1,602
py
Python
commands/fight.py
AlexMog/IRCPokemonBot
0a735f262ce06ecd4c3b702094cf4b78e3cd7c45
[ "MIT" ]
2
2015-06-10T12:16:53.000Z
2016-03-09T22:43:43.000Z
commands/fight.py
AlexMog/IRCPokemonBot
0a735f262ce06ecd4c3b702094cf4b78e3cd7c45
[ "MIT" ]
null
null
null
commands/fight.py
AlexMog/IRCPokemonBot
0a735f262ce06ecd4c3b702094cf4b78e3cd7c45
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import copy import random from classes.Pokemons import * from classes.Battle import * def fight(connection, canal, auteur, cmds, canalobj, mogbot): user = mogbot.getUserManager().findUser(auteur) if user == False: connection.privmsg(canal, auteur + " je ne te trouve pas dans la ...
40.05
173
0.585518
192
1,602
4.885417
0.484375
0.108742
0.140725
0.089552
0.166311
0.057569
0
0
0
0
0
0.009857
0.303371
1,602
39
174
41.076923
0.830645
0.013109
0
0.147059
0
0.029412
0.193794
0
0
0
0
0
0
1
0.029412
false
0
0.117647
0
0.235294
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
0
0
1
0
29ebeb3c0f6aa2c670636976b54b4c234e9cc858
3,356
py
Python
horizon_hpe_storage/storage_panel/config/software_tests/forms.py
hp-storage/horizon-ssmc-link
f419ecf2a545a79f1ff6628dc26f31dfb7c84996
[ "Apache-2.0" ]
1
2017-01-07T13:45:57.000Z
2017-01-07T13:45:57.000Z
horizon_hpe_storage/storage_panel/config/software_tests/forms.py
hp-storage/horizon-ssmc-link
f419ecf2a545a79f1ff6628dc26f31dfb7c84996
[ "Apache-2.0" ]
null
null
null
horizon_hpe_storage/storage_panel/config/software_tests/forms.py
hp-storage/horizon-ssmc-link
f419ecf2a545a79f1ff6628dc26f31dfb7c84996
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
44.157895
78
0.616508
364
3,356
5.510989
0.343407
0.038385
0.042373
0.057328
0.542871
0.516949
0.501496
0.501496
0.460618
0.460618
0
0.008061
0.297676
3,356
75
79
44.746667
0.843021
0.155542
0
0.690909
0
0
0.119419
0.02197
0
0
0
0
0
1
0.036364
false
0
0.127273
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
0
0
0
0
0
1
0
29ecd056c8357be81181e47ac71a968400c85cc9
1,396
py
Python
tests/test_liquidity_provider_factory.py
diem/liquidity-emulator
255cccd06c0949750e42e93906b083e915ddf505
[ "Apache-2.0" ]
2
2021-11-29T06:00:59.000Z
2022-01-27T18:42:29.000Z
tests/test_liquidity_provider_factory.py
hengkyherdianto/liquidity-emulator
255cccd06c0949750e42e93906b083e915ddf505
[ "Apache-2.0" ]
1
2021-01-31T09:14:05.000Z
2021-02-01T07:43:41.000Z
tests/test_liquidity_provider_factory.py
hengkyherdianto/liquidity-emulator
255cccd06c0949750e42e93906b083e915ddf505
[ "Apache-2.0" ]
4
2021-02-15T14:45:04.000Z
2022-03-03T02:32:45.000Z
from diem import chain_ids from liquidity import create_liquidity_provider, init_liquidity_provider from liquidity.liquidity import FaucetLiquidityProvider, DDLiquidityProvider CUSTODY_PRIVATE_KEYS = ( '{"liquidity":"c6537e56d844fa4a15f3bf5eacd41c9123a19ef19a1026f2325a6b2dd33a13f1"}' ) def test_faucet_liquidity...
33.238095
86
0.809456
152
1,396
7.013158
0.25
0.175422
0.135084
0.075985
0.672608
0.634146
0.634146
0.566604
0.566604
0.566604
0
0.031553
0.114613
1,396
41
87
34.04878
0.830906
0
0
0.6
0
0
0.117479
0.057307
0
0
0
0
0.1
1
0.1
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
29f10336d5ea889a3a24c9c3648237cbdaee7b65
5,586
py
Python
tools/remote_debugger.py
budelius/openstreetmap-heatmap
f7376671eecda68955b8edc016c63218c5ebc6a2
[ "Apache-2.0" ]
null
null
null
tools/remote_debugger.py
budelius/openstreetmap-heatmap
f7376671eecda68955b8edc016c63218c5ebc6a2
[ "Apache-2.0" ]
null
null
null
tools/remote_debugger.py
budelius/openstreetmap-heatmap
f7376671eecda68955b8edc016c63218c5ebc6a2
[ "Apache-2.0" ]
null
null
null
""" Remote debugging support. This addon allows you to use a remote Python debugger with PyCharm, PyDev and possibly other IDEs. As it is, without modification, it only supports PyCharm, but it may work by pointing it at a similar egg file shipped with PyDev. Before using, point the addon to your pycharm-debug-py3k.e...
30.692308
100
0.674544
703
5,586
5.194879
0.308677
0.032859
0.019715
0.031216
0.328587
0.268894
0.215225
0.197152
0.079956
0.079956
0
0.012189
0.236305
5,586
181
101
30.861878
0.843882
0.209273
0
0.186916
0
0
0.194832
0.023325
0
0
0
0
0
1
0.065421
false
0
0.074766
0
0.317757
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
0
0
1
0
29f1f4d867171d615c82f43e02801e5ac479dcd4
2,247
py
Python
todo/views/accepted_petitions.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
null
null
null
todo/views/accepted_petitions.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
41
2021-03-23T12:58:25.000Z
2021-05-25T11:38:42.000Z
todo/views/accepted_petitions.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
null
null
null
import datetime from django.contrib import messages from django.contrib.auth.decorators import login_required, user_passes_test from django.http import HttpResponse from django.shortcuts import render from .book_assign import send_email_reject_book from todo.forms import SearchForm from todo.models import Task, Book,...
31.208333
151
0.668002
272
2,247
5.375
0.319853
0.062244
0.046512
0.045144
0.150479
0.073871
0
0
0
0
0
0.000577
0.229194
2,247
71
152
31.647887
0.843533
0
0
0.072727
0
0
0.102804
0.012461
0
0
0
0
0
1
0.018182
false
0.018182
0.145455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
29f6bfc61051a4c8d3929a3bb610dca313e55859
7,696
py
Python
ajustes_UM/tesis/tesis/settings.py
abelgonzalez/ajustes
f6f99aea18cfb82750805321abfc822d8a6ec5ed
[ "MIT" ]
1
2015-03-04T13:04:33.000Z
2015-03-04T13:04:33.000Z
ajustes_UM/tesis/tesis/settings.py
abelgonzalez/ajustes
f6f99aea18cfb82750805321abfc822d8a6ec5ed
[ "MIT" ]
null
null
null
ajustes_UM/tesis/tesis/settings.py
abelgonzalez/ajustes
f6f99aea18cfb82750805321abfc822d8a6ec5ed
[ "MIT" ]
null
null
null
""" Django settings for tesis project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # -*- coding: utf-8 -*- # A tuple that lists people who get code error notifi...
34.204444
120
0.721674
1,045
7,696
5.226794
0.394258
0.015379
0.016477
0.024167
0.145002
0.100513
0.067192
0.039912
0.025998
0.011351
0
0.007677
0.170608
7,696
225
121
34.204444
0.848034
0.594335
0
0.020408
0
0.010204
0.401448
0.246134
0
0
0
0
0
1
0
false
0
0.030612
0
0.030612
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
0
0
1
0
29f709dd701c60c4489620b7e5b46e5aca1a0daf
7,468
py
Python
code/lib/models/FCRN_depth.py
santomon/taskonomy
4b22087a2686172b21b61589831061e7a386fe36
[ "MIT" ]
789
2018-03-21T05:28:38.000Z
2022-03-29T19:32:47.000Z
code/lib/models/FCRN_depth.py
santomon/taskonomy
4b22087a2686172b21b61589831061e7a386fe36
[ "MIT" ]
46
2018-05-03T07:11:10.000Z
2022-03-11T23:26:03.000Z
code/lib/models/FCRN_depth.py
santomon/taskonomy
4b22087a2686172b21b61589831061e7a386fe36
[ "MIT" ]
152
2018-03-24T10:20:44.000Z
2022-02-09T02:38:10.000Z
from __future__ import absolute_import, division, print_function from models.base_net import BaseNet import losses.all as losses_lib import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np import pdb import optimizers.train_steps as train_steps import optimizers.ops as optimize from functo...
38.494845
152
0.622657
920
7,468
4.827174
0.245652
0.024769
0.014636
0.012159
0.094348
0.061923
0.047512
0.047512
0.047512
0.047512
0
0.009542
0.29834
7,468
193
153
38.694301
0.837977
0.301285
0
0.121212
0
0
0.071488
0
0
0
0
0
0
1
0.080808
false
0
0.121212
0
0.272727
0.030303
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
0
1
0
29f82c973044d39870f0f41f75666b3782377f54
13,459
py
Python
tests/test_handler.py
Tas-Kit/platform
34e1abb3f85b9649cbf18496333bf35f74aa6e3d
[ "Apache-2.0" ]
null
null
null
tests/test_handler.py
Tas-Kit/platform
34e1abb3f85b9649cbf18496333bf35f74aa6e3d
[ "Apache-2.0" ]
null
null
null
tests/test_handler.py
Tas-Kit/platform
34e1abb3f85b9649cbf18496333bf35f74aa6e3d
[ "Apache-2.0" ]
null
null
null
# trigger build import json import uuid import pytest from mock import MagicMock, patch from src import handler, db from src.models import User, MiniApp, TObject from src.constants import ROLE from werkzeug.exceptions import BadRequest @patch('src.db.push', side_effect=Exception) def test_execute_obj_post_exception(m...
31.155093
141
0.666691
1,762
13,459
4.729285
0.093644
0.037442
0.051482
0.043202
0.602184
0.529941
0.478219
0.436217
0.388576
0.343094
0
0.017786
0.197934
13,459
431
142
31.227378
0.754145
0.000966
0
0.434667
0
0.002667
0.136641
0.04039
0
0
0
0
0.125333
1
0.085333
false
0
0.021333
0.008
0.117333
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
0
0
1
0
29f8d1a4f8b0cea46b5286a6c9367ca7d6ae25dc
579
py
Python
ersilia/utils/identifiers/long.py
ersilia-os/ersilia
eded117d6c7029ce4a497effdb514c21edfe3673
[ "MIT" ]
32
2020-07-30T20:31:05.000Z
2022-03-31T17:27:14.000Z
ersilia/utils/identifiers/long.py
ersilia-os/ersilia
eded117d6c7029ce4a497effdb514c21edfe3673
[ "MIT" ]
59
2022-03-21T10:00:04.000Z
2022-03-31T23:03:14.000Z
ersilia/utils/identifiers/long.py
ersilia-os/ersilia
eded117d6c7029ce4a497effdb514c21edfe3673
[ "MIT" ]
44
2022-03-17T13:11:07.000Z
2022-03-31T19:44:16.000Z
try: import uuid except ModuleNotFoundError as err: uuid = None ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" PATTERN = [8, 4, 4, 4, 12] SEP = "-" class LongIdentifier(object): def __init__(self): super().__init__() @staticmethod def encode(): """Get UUID code (long identifie...
23.16
75
0.56304
62
579
5.112903
0.693548
0.07571
0
0
0
0
0
0
0
0
0
0.0425
0.309154
579
24
76
24.125
0.75
0.053541
0
0
0
0
0.070111
0.066421
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
29f9eab4a69842a784121a1073e07bcadc752ced
3,265
py
Python
Realsense2CV.py
felix2072/pytorch-CycleGAN-and-pix2pix
4980106ceab5e1eb7bb20c2b492d007b6310d9e1
[ "BSD-3-Clause" ]
null
null
null
Realsense2CV.py
felix2072/pytorch-CycleGAN-and-pix2pix
4980106ceab5e1eb7bb20c2b492d007b6310d9e1
[ "BSD-3-Clause" ]
null
null
null
Realsense2CV.py
felix2072/pytorch-CycleGAN-and-pix2pix
4980106ceab5e1eb7bb20c2b492d007b6310d9e1
[ "BSD-3-Clause" ]
null
null
null
## License: Apache 2.0. See LICENSE file in root directory. ## Copyright(c) 2015-2017 Intel Corporation. All Rights Reserved. ############################################### ## Open CV and Numpy integration ## ############################################### import pyrealsense2 as rs import numpy a...
34.368421
109
0.644717
440
3,265
4.625
0.397727
0.044226
0.025061
0.029484
0.043243
0.030467
0
0
0
0
0
0.049921
0.226953
3,265
94
110
34.734043
0.756339
0.280551
0
0
0
0
0.020609
0
0
0
0
0
0
1
0.018868
false
0
0.056604
0
0.09434
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
0
0
1
0
29fbb43e9c43f01cd5a84414b7fa4416473edd33
566
py
Python
main.py
Benrflanders/Genetic-Algorithm-Function-Solver
7234aed5478d0701f0f8ce342116ac154aa40ba1
[ "MIT" ]
null
null
null
main.py
Benrflanders/Genetic-Algorithm-Function-Solver
7234aed5478d0701f0f8ce342116ac154aa40ba1
[ "MIT" ]
null
null
null
main.py
Benrflanders/Genetic-Algorithm-Function-Solver
7234aed5478d0701f0f8ce342116ac154aa40ba1
[ "MIT" ]
null
null
null
import genetic_algorithm #where the population will be processed and the main loop is contained #initialise population with random candidate solutions print("Enter a function to be solved: \n") fitness_function = [1780, 17, -2] #n = ax + by #function: [n, a, b] ga = genetic_algorithm.genetic_algorithm(fitness_func...
21.769231
70
0.780919
79
566
5.531646
0.734177
0.10984
0
0
0
0
0
0
0
0
0
0.014553
0.150177
566
25
71
22.64
0.893971
0.65371
0
0
0
0
0.180328
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0
0
0
0
0
0
0
0
1
0
29ffd5d34e2555908d5acb7cecdc5aad3a6e87bc
1,983
py
Python
src/predictionAlgorithms/machineLearning/training/convolutionalLstm.py
aivaras-ciurlionis/meteo
434759d16f7cca505d280475611d1fef5176827b
[ "MIT" ]
null
null
null
src/predictionAlgorithms/machineLearning/training/convolutionalLstm.py
aivaras-ciurlionis/meteo
434759d16f7cca505d280475611d1fef5176827b
[ "MIT" ]
6
2020-05-23T11:30:48.000Z
2022-03-11T23:45:06.000Z
src/predictionAlgorithms/machineLearning/training/convolutionalLstm.py
aivaras-ciurlionis/meteo
434759d16f7cca505d280475611d1fef5176827b
[ "MIT" ]
null
null
null
import tensorflow from PIL import Image from keras.models import Sequential from keras.layers import Conv2D, Conv2DTranspose, ConvLSTM2D from keras.optimizers import SGD import numpy as np import os from keras import backend as K from src.predictionAlgorithms.machineLearning.algorithms.ConvLSTM import ConvLstm from sr...
34.189655
104
0.611699
192
1,983
6.197917
0.479167
0.030252
0.068067
0.105882
0.087395
0
0
0
0
0
0
0.027536
0.304085
1,983
58
105
34.189655
0.834783
0.020171
0
0.156863
0
0
0.030381
0
0
0
0
0
0
1
0.019608
false
0
0.235294
0
0.27451
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
0
0
1
0
4b00cec2aa25b2e4c87f0a86c86662d5e0d2edb1
1,927
py
Python
batchtest.py
nachewigkeit/CropDefender
e78fc48f720367ca94033f6263eb1e4a9c6b7858
[ "MIT" ]
2
2021-10-14T08:14:15.000Z
2021-12-01T05:57:49.000Z
batchtest.py
nachewigkeit/CropDefender
e78fc48f720367ca94033f6263eb1e4a9c6b7858
[ "MIT" ]
null
null
null
batchtest.py
nachewigkeit/CropDefender
e78fc48f720367ca94033f6263eb1e4a9c6b7858
[ "MIT" ]
1
2021-12-01T05:57:53.000Z
2021-12-01T05:57:53.000Z
import bchlib from PIL import Image, ImageOps import numpy as np import glob from tqdm import tqdm import torch import matplotlib.pyplot as plt from model import StegaStampDecoder BCH_POLYNOMIAL = 137 BCH_BITS = 5 def get_bits(secret="MITPBL"): # 输入字符串,输出BCH码 bch = bchlib.BCH(BCH_POLYNOMIAL, BCH_BITS) da...
24.705128
79
0.63259
261
1,927
4.544061
0.448276
0.040472
0.026981
0.035413
0.040472
0
0
0
0
0
0
0.028513
0.235599
1,927
77
80
25.025974
0.776646
0.043072
0
0.036364
0
0
0.044589
0.027189
0
0
0
0
0
1
0.072727
false
0
0.145455
0
0.290909
0.018182
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
0
1
0
4b070ef3534dcec1b94204596a275dcc71c8d799
428
py
Python
examples/echobot.py
samedamci/telegrask
8cd0d7663e3a7386784396462f66c176bc6543c5
[ "0BSD" ]
4
2021-08-19T19:17:17.000Z
2021-10-12T19:25:59.000Z
examples/echobot.py
samedamci/telegrask
8cd0d7663e3a7386784396462f66c176bc6543c5
[ "0BSD" ]
null
null
null
examples/echobot.py
samedamci/telegrask
8cd0d7663e3a7386784396462f66c176bc6543c5
[ "0BSD" ]
1
2021-08-31T10:49:34.000Z
2021-08-31T10:49:34.000Z
#!/usr/bin/python3 """Simple bot to reply exactly the same what user sent to chat.""" # This program is dedicated to the public domain under the CC0 license. from telegrask import Telegrask bot = Telegrask("BOT_TOKEN") @bot.command("echo", help="repeat user words", allow_without_prefix=True) def echo(update, contex...
25.176471
73
0.740654
64
428
4.765625
0.71875
0.078689
0
0
0
0
0
0
0
0
0
0.00545
0.142523
428
16
74
26.75
0.825613
0.345794
0
0
0
0
0.139194
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
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
0
0
1
0
4b07a5e3542e7f446d97c19101d6130c567a06f9
2,238
py
Python
lib/emailsmtp/models.py
hdknr/emailqueue
05e108562f4fb612440f769973b9a3d02c11afcd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
lib/emailsmtp/models.py
hdknr/emailqueue
05e108562f4fb612440f769973b9a3d02c11afcd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
lib/emailsmtp/models.py
hdknr/emailqueue
05e108562f4fb612440f769973b9a3d02c11afcd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from emailqueue.models import BaseModel class Domain(BaseModel): '''Domain: - used for :ref:`postfix.relay_domains`, :ref:`postfix.transport_maps` ''' domain = models.CharField( _('Domain'), max_length=50, u...
29.84
76
0.636282
266
2,238
5.101504
0.300752
0.040531
0.017686
0.025055
0.149595
0.117907
0.117907
0.072218
0.072218
0.072218
0
0.009971
0.238159
2,238
74
77
30.243243
0.785924
0.058088
0
0.12766
0
0
0.069657
0
0
0
0
0
0
1
0.085106
false
0
0.06383
0.042553
0.468085
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
0
0
1
0
4b0bae7ae91cfcfff2eabb361271fc8c258445e7
1,628
py
Python
venv/Lib/site-packages/traits/tests/test_constant.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
1
2022-01-18T17:56:51.000Z
2022-01-18T17:56:51.000Z
venv/Lib/site-packages/traits/tests/test_constant.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
null
null
null
venv/Lib/site-packages/traits/tests/test_constant.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
null
null
null
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only under # the conditions described in the aforementioned license. The license # is also available online at...
29.6
71
0.625307
232
1,628
4.241379
0.362069
0.060976
0.042683
0.109756
0.429878
0.367886
0.367886
0.367886
0.262195
0.262195
0
0.044371
0.252457
1,628
54
72
30.148148
0.764174
0.238329
0
0.466667
0
0
0.00813
0
0
0
0
0
0.233333
1
0.133333
false
0
0.066667
0
0.366667
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
0
0
1
0
4b0c74252519e1d0763eeba5100d8c404e0ec79d
5,072
py
Python
midap_simulator/packet_manager.py
cap-lab/MidapSim
4f92a9f9413c29d7e1f37e863cce90ebdde8b420
[ "MIT" ]
2
2021-03-28T16:19:06.000Z
2022-02-26T08:58:33.000Z
midap_simulator/packet_manager.py
cap-lab/MidapSim
4f92a9f9413c29d7e1f37e863cce90ebdde8b420
[ "MIT" ]
null
null
null
midap_simulator/packet_manager.py
cap-lab/MidapSim
4f92a9f9413c29d7e1f37e863cce90ebdde8b420
[ "MIT" ]
1
2021-02-22T08:44:20.000Z
2021-02-22T08:44:20.000Z
import mmap import numpy as np from time import sleep import os class PacketManager(object): buf_size = 0x1000 packet_size = 2072 #typedef struct _Packet{ # PacketType type; # uint32_t size; # uint64_t cycle; # uint32_t address; # uint8_t data[8]; # uint32_t flags; ...
33.813333
134
0.589708
634
5,072
4.580442
0.20347
0.034091
0.049242
0.052686
0.386364
0.32989
0.290634
0.278926
0.211777
0.198003
0
0.028841
0.268533
5,072
149
135
34.040268
0.753908
0.144322
0
0.225806
0
0
0.038666
0
0
0
0.002084
0
0
1
0.11828
false
0
0.043011
0
0.27957
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
0
0
1
0
4b0eec937bcf7b4132e9bab483c930a0a86d89bc
3,824
py
Python
amurlevel_model/model/train_test_split.py
RaevskyDN/aij2020-amur-noflood-public
d11349b1f8cc79c18bb078392731eac32b3c56ff
[ "Apache-2.0" ]
7
2021-02-17T18:55:13.000Z
2021-07-30T13:56:19.000Z
amurlevel_model/model/train_test_split.py
RaevskyDN/aij2020-amur-noflood-public
d11349b1f8cc79c18bb078392731eac32b3c56ff
[ "Apache-2.0" ]
null
null
null
amurlevel_model/model/train_test_split.py
RaevskyDN/aij2020-amur-noflood-public
d11349b1f8cc79c18bb078392731eac32b3c56ff
[ "Apache-2.0" ]
1
2022-01-23T15:11:43.000Z
2022-01-23T15:11:43.000Z
# -*- coding: utf-8 -*- import pandas as pd import numpy as np from datetime import date from typing import Union,Tuple,Optional,List from ..config_features import CATEGORICAL_FEATURES,NUMERICAL_FEATURES from ..config import DAYS_FORECAST,ALL_STATIONS from ..utils.normalizer import get_normalizer_stats def train_tes...
41.565217
117
0.636245
494
3,824
4.702429
0.244939
0.077486
0.068876
0.041326
0.355144
0.260439
0.191563
0.176496
0.104176
0.104176
0
0.008872
0.263075
3,824
92
118
41.565217
0.815472
0.250523
0
0.216667
0
0
0.014332
0
0
0
0
0
0
1
0.016667
false
0
0.116667
0
0.15
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
0
0
1
0
4b136b651e1325beb870ea9f5a79512ec242273e
80,229
py
Python
common/ui.py
Regnareb/StreamManager
8b95e785d41c78f03725077f5dce2a5c15e0354f
[ "MIT" ]
null
null
null
common/ui.py
Regnareb/StreamManager
8b95e785d41c78f03725077f5dce2a5c15e0354f
[ "MIT" ]
null
null
null
common/ui.py
Regnareb/StreamManager
8b95e785d41c78f03725077f5dce2a5c15e0354f
[ "MIT" ]
null
null
null
import os import sys import copy import ctypes import socket import logging import threading import functools import webbrowser logger = logging.getLogger(__name__) import keyboard from PySide2 import QtCore, QtWidgets, QtGui, QtWebEngineWidgets # TODO # Be able to import a text file in the description/title as variab...
50.874445
398
0.672114
8,503
80,229
6.232389
0.122192
0.037023
0.042344
0.011492
0.401857
0.271087
0.194192
0.1366
0.09569
0.075971
0
0.005079
0.19751
80,229
1,576
399
50.906726
0.81798
0.022785
0
0.192082
0
0.007331
0.132297
0.008256
0
0
0
0.000635
0
1
0.08871
false
0.001466
0.014663
0.002199
0.13783
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
0
0
1
0
4b1766db2c0ad0a27e5899ec9658c4cad1b1b54e
8,242
py
Python
map.py
BenoitCorsini/world-flights
5e5ce6575a912cb6a71bf1caf6ef7c2d388044ce
[ "MIT" ]
null
null
null
map.py
BenoitCorsini/world-flights
5e5ce6575a912cb6a71bf1caf6ef7c2d388044ce
[ "MIT" ]
null
null
null
map.py
BenoitCorsini/world-flights
5e5ce6575a912cb6a71bf1caf6ef7c2d388044ce
[ "MIT" ]
null
null
null
import os import os.path as osp import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Circle, Polygon, Rectangle from config import PARAMS class WorldMap(object): def __init__(self, shapes=[], params=PARAMS): ''' The 'WorldMap' class is useful in constructing a 3D fig...
36.631111
111
0.473065
888
8,242
4.302928
0.228604
0.091599
0.043182
0.021984
0.326354
0.291808
0.217482
0.209369
0.1743
0.112013
0
0.019242
0.382067
8,242
225
112
36.631111
0.731003
0.219122
0
0.25
0
0
0.0815
0
0
0
0
0
0.013514
1
0.054054
false
0
0.040541
0
0.114865
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
0
0
1
0
4b1897d255b0413c9d4325f9c12538b29485ce83
2,197
py
Python
chapter15/cache_aside/populate_db.py
JoeanAmiee/Mastering-Python-Design-Patterns-Second-Edition
89c55dcf5e1e0e730dde593b487050f360371932
[ "MIT" ]
278
2018-08-16T12:59:24.000Z
2022-03-21T08:21:11.000Z
chapter15/cache_aside/populate_db.py
50611/Mastering-Python-Design-Patterns-Second-Edition
6efc4a935f15d2aa6c840131f72fb8c53a493a93
[ "MIT" ]
4
2019-05-16T11:44:45.000Z
2022-02-04T07:24:47.000Z
chapter15/cache_aside/populate_db.py
50611/Mastering-Python-Design-Patterns-Second-Edition
6efc4a935f15d2aa6c840131f72fb8c53a493a93
[ "MIT" ]
166
2018-08-13T21:47:16.000Z
2022-03-18T12:20:31.000Z
import sys import sqlite3 import csv from random import randint from faker import Faker fake = Faker() def setup_db(): try: db = sqlite3.connect('data/quotes.sqlite3') # Get a cursor object cursor = db.cursor() cursor.execute(''' CREATE TABLE quotes(id INTEGER PRIMAR...
25.252874
86
0.522531
266
2,197
4.18797
0.319549
0.05386
0.045781
0.048474
0.437163
0.385996
0.369838
0.305206
0.305206
0.305206
0
0.014851
0.356395
2,197
86
87
25.546512
0.772984
0.025489
0
0.460317
0
0
0.192236
0.009822
0
0
0
0
0
1
0.047619
false
0
0.079365
0
0.142857
0.126984
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
0
1
0
4b1a17df754eb85c581497a16047422be041c22f
523
py
Python
amulet/world_interface/chunk/interfaces/leveldb/leveldb_13/leveldb_13_interface.py
Podshot/Amulet-Core
678a722daa5e4487d193a7e947ccceacac325fd2
[ "MIT" ]
null
null
null
amulet/world_interface/chunk/interfaces/leveldb/leveldb_13/leveldb_13_interface.py
Podshot/Amulet-Core
678a722daa5e4487d193a7e947ccceacac325fd2
[ "MIT" ]
null
null
null
amulet/world_interface/chunk/interfaces/leveldb/leveldb_13/leveldb_13_interface.py
Podshot/Amulet-Core
678a722daa5e4487d193a7e947ccceacac325fd2
[ "MIT" ]
null
null
null
from __future__ import annotations from amulet.world_interface.chunk.interfaces.leveldb.leveldb_12.leveldb_12_interface import ( LevelDB12Interface, ) class LevelDB13Interface(LevelDB12Interface): def __init__(self): LevelDB12Interface.__init__(self) self.features["chunk_version"] = 13 ...
21.791667
93
0.6826
54
523
6.259259
0.555556
0.053254
0
0
0
0
0
0
0
0
0
0.050251
0.239006
523
23
94
22.73913
0.798995
0
0
0.125
0
0
0.038241
0
0
0
0
0
0
1
0.125
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
0
0
0
0
0
0
0
1
0
4b1b507d5e7bd884f752c61b8ba7c52263c2268a
921
py
Python
oarepo_model_builder/builders/jsonschema_builder.py
mesemus/oarepo-model-builder
3dd9cc3db887c67f7b58281faae65c8162b0651e
[ "MIT" ]
null
null
null
oarepo_model_builder/builders/jsonschema_builder.py
mesemus/oarepo-model-builder
3dd9cc3db887c67f7b58281faae65c8162b0651e
[ "MIT" ]
null
null
null
oarepo_model_builder/builders/jsonschema_builder.py
mesemus/oarepo-model-builder
3dd9cc3db887c67f7b58281faae65c8162b0651e
[ "MIT" ]
null
null
null
from oarepo_model_builder.builders.json import JSONBuilder from oarepo_model_builder.output import JsonSchemaOutput class JSONSchemaBuilder(JSONBuilder): """Handles building of jsonschema from a data model specification.""" def __init__(self): super().__init__() self.output = None def pre...
32.892857
73
0.587405
100
921
5.26
0.48
0.060837
0.057034
0.08365
0.087452
0
0
0
0
0
0
0.003115
0.302932
921
27
74
34.111111
0.816199
0.068404
0
0.090909
0
0
0.024648
0
0
0
0
0
0
1
0.136364
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b1e6350105907d7f3eb0e342a99233ff398a655
10,305
py
Python
benchmark/automated_agents_selenium/exatag_labels_agent.py
MedTAG/medtag-core
f2dae7b38230179d71babede7e4910631d91053f
[ "MIT" ]
6
2021-12-20T12:15:17.000Z
2022-02-02T15:28:42.000Z
benchmark/automated_agents_selenium/exatag_labels_agent.py
MedTAG/medtag-core
f2dae7b38230179d71babede7e4910631d91053f
[ "MIT" ]
1
2022-03-07T14:57:44.000Z
2022-03-11T18:11:55.000Z
benchmark/automated_agents_selenium/exatag_labels_agent.py
MedTAG/medtag-core
f2dae7b38230179d71babede7e4910631d91053f
[ "MIT" ]
2
2021-05-29T09:44:38.000Z
2021-12-28T03:53:40.000Z
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import psycopg2 import time import statistics from selenium.webdriver.support.select import Select import json def wait_unt...
35.78125
147
0.450849
1,004
10,305
4.473108
0.209163
0.026497
0.034068
0.038076
0.483411
0.433311
0.397016
0.348252
0.332665
0.313516
0
0.020876
0.432897
10,305
287
148
35.905923
0.747604
0.267055
0
0.294479
0
0
0.092093
0.05437
0
0
0
0
0
1
0.018405
false
0.01227
0.055215
0
0.110429
0.067485
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
0
1
0
4b1ec74bf2a93ae529c6f9b679c345029b8413cf
1,517
py
Python
randgenuntil.py
i-can-not-program/randgenuntil
cec853bc0c0a6589d60e1c6e3064e273e6278e0f
[ "Unlicense" ]
1
2021-09-09T12:03:57.000Z
2021-09-09T12:03:57.000Z
randgenuntil.py
i-can-not-program/randgenuntil
cec853bc0c0a6589d60e1c6e3064e273e6278e0f
[ "Unlicense" ]
null
null
null
randgenuntil.py
i-can-not-program/randgenuntil
cec853bc0c0a6589d60e1c6e3064e273e6278e0f
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import random import argparse import sys def error(message): print(message) sys.exit(1) parser = argparse.ArgumentParser() parser.add_argument("number", help="Generate a random numbers until they are equal to this.", type=int) parser.add_argument("-s", "--start", t...
35.27907
111
0.652604
225
1,517
4.333333
0.36
0.050256
0.087179
0.028718
0.082051
0.082051
0.082051
0.082051
0.082051
0.082051
0
0.014143
0.207647
1,517
42
112
36.119048
0.797005
0.013843
0
0
0
0
0.344043
0
0
0
0
0
0
1
0.028571
false
0
0.085714
0
0.114286
0.114286
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
0
1
0
4b21181e3a74fe5a1a2c9a5d58470698abe2c63a
10,698
py
Python
python/cvi_toolkit/numpy_helper/tensor_compare.py
sophgo/tpu_compiler
6299ea0a3adae1e5c206bcb9bedf225d16e636db
[ "Apache-2.0" ]
3
2022-03-14T11:47:20.000Z
2022-03-16T01:45:37.000Z
python/cvi_toolkit/numpy_helper/tensor_compare.py
sophgo/tpu_compiler
6299ea0a3adae1e5c206bcb9bedf225d16e636db
[ "Apache-2.0" ]
null
null
null
python/cvi_toolkit/numpy_helper/tensor_compare.py
sophgo/tpu_compiler
6299ea0a3adae1e5c206bcb9bedf225d16e636db
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import numpy as np import sys import struct # from math import fabs from enum import IntEnum from scipy import spatial from math import * from collections import OrderedDict def second(elem): return elem[1] def get_topk(a, k): k = min(a.size, k) idx = np.argpartition(-a.ravel(), k - 1)[:...
37.405594
102
0.623294
1,451
10,698
4.43694
0.146795
0.021746
0.037589
0.015843
0.17785
0.093507
0.068034
0.031998
0.023299
0.015843
0
0.027869
0.235278
10,698
285
103
37.536842
0.759076
0.051598
0
0.055319
0
0
0.084625
0.002172
0
0
0
0
0.012766
1
0.068085
false
0.029787
0.029787
0.012766
0.204255
0.119149
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
0
1
0
4b239e38be546f3cf138ae920d55ac95f83dd8aa
4,508
py
Python
src/cleaners.py
RellikDog/dota2-win-predictor-v2
2751093d988830296ab0408a820e52bd7fd963b0
[ "MIT" ]
1
2020-06-12T00:27:45.000Z
2020-06-12T00:27:45.000Z
src/cleaners.py
RellikDog/dota2-win-predictor-v2
2751093d988830296ab0408a820e52bd7fd963b0
[ "MIT" ]
null
null
null
src/cleaners.py
RellikDog/dota2-win-predictor-v2
2751093d988830296ab0408a820e52bd7fd963b0
[ "MIT" ]
null
null
null
from src.eda import make_counter import pandas as pd import numpy as np from src.heroes import heroes, name_id, id_name def id_list_from_history(data): ''' Takes raw data returnd by api_calls.get_match_history() and returns a list of just the match ID's Input: data(list): ...
32.905109
119
0.590949
634
4,508
4.064669
0.283912
0.02988
0.021731
0.012418
0.103997
0.089251
0.089251
0.089251
0.089251
0.062088
0
0.004211
0.315217
4,508
137
120
32.905109
0.83058
0.471162
0
0
0
0
0.159848
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.196429
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
0
0
1
0
4b2a94692c84f7c38268202ef3957322166618de
991
py
Python
tensorflow_v2/dragen1860/ch10/bn_main.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
tensorflow_v2/dragen1860/ch10/bn_main.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
tensorflow_v2/dragen1860/ch10/bn_main.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers, optimizers # BatchNorm 归一化网络激活函数 # 2 images with 4x4 size, 3 channels # we explicitly enforce the mean and stddev to N(1, 0.5) x = tf.random.normal([2, 4, 4, 3], mean=1.0, stddev=0.5) net = layers.BatchNormalization(axis=-1, ce...
30.030303
81
0.71443
156
991
4.512821
0.461538
0.034091
0.039773
0.06392
0.146307
0.119318
0.119318
0.119318
0.119318
0.119318
0
0.036993
0.15439
991
32
82
30.96875
0.803103
0.136226
0
0.15
0
0
0.121034
0
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4b2b18a133cf43bd4b7425912dff7947dc039608
1,001
py
Python
pytocl/main.py
moltob/pytocl
905c09e649feca8feeaef6fdecd6767d82cdb28e
[ "MIT" ]
12
2016-11-02T08:43:04.000Z
2020-05-17T11:23:32.000Z
pytocl/main.py
moltob/pytocl
905c09e649feca8feeaef6fdecd6767d82cdb28e
[ "MIT" ]
1
2020-06-08T09:48:20.000Z
2020-06-08T09:48:20.000Z
pytocl/main.py
moltob/pytocl
905c09e649feca8feeaef6fdecd6767d82cdb28e
[ "MIT" ]
3
2017-08-01T18:30:32.000Z
2018-08-04T13:10:15.000Z
"""Application entry point.""" import argparse import logging from pytocl.protocol import Client def main(): """Main entry point of application.""" parser = argparse.ArgumentParser(description='Client for TORCS racing car simulation with SCRC ' 'network server...
30.333333
100
0.622378
119
1,001
5.092437
0.571429
0.044554
0.084158
0
0
0
0
0
0
0
0
0.021248
0.247752
1,001
32
101
31.28125
0.783533
0.094905
0
0
0
0
0.272931
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.190476
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
0
0
1
0
4b2b25ace759328c89bdd5c3d6fc4d697b6531e4
2,381
py
Python
JSMultiline.py
axilleasiv/JSMultiline
59779d4b6c444461597b105e31aa0efb0e86805c
[ "MIT" ]
6
2015-05-04T00:05:00.000Z
2016-12-09T14:40:47.000Z
JSMultiline.py
axilleasiv/JSMultiline
59779d4b6c444461597b105e31aa0efb0e86805c
[ "MIT" ]
1
2018-06-25T17:13:37.000Z
2018-06-25T17:13:37.000Z
JSMultiline.py
axilleasiv/JSMultiline
59779d4b6c444461597b105e31aa0efb0e86805c
[ "MIT" ]
null
null
null
import sublime import sublime_plugin import re import os rexLastTabs = re.compile(r'(\t+|\s+)$', re.MULTILINE) rexEmptyLines = re.compile('^[ \t]*$\r?\n', re.MULTILINE) rexCont = re.compile(r'[^\t\s].*[^\t\s]') rexFormatted = re.compile(r"((?<=\s)'|(?<=\t)')|('*\s[\+|\\|])") class RunMultilineAction(sublime_plugin.T...
28.345238
116
0.639227
313
2,381
4.833866
0.319489
0.072703
0.019828
0.039656
0.104428
0.070059
0.070059
0.070059
0.070059
0.070059
0
0.008638
0.173457
2,381
84
117
28.345238
0.760163
0.046619
0
0.035088
0
0
0.086458
0.014998
0.017544
0
0
0
0
1
0.070175
false
0
0.070175
0
0.245614
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
0
0
1
0