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
9a2921aafee477055d03e47abb30d023e2f9b7df
2,645
py
Python
2017/day06/redistribution.py
kmcginn/advent-of-code
96a8d7d723f6f222d431fd9ede88d0a303d86761
[ "MIT" ]
null
null
null
2017/day06/redistribution.py
kmcginn/advent-of-code
96a8d7d723f6f222d431fd9ede88d0a303d86761
[ "MIT" ]
null
null
null
2017/day06/redistribution.py
kmcginn/advent-of-code
96a8d7d723f6f222d431fd9ede88d0a303d86761
[ "MIT" ]
null
null
null
""" from: http://adventofcode.com/2017/day/6 --- Day 6: Memory Reallocation --- A debugger program here is having an issue: it is trying to repair a memory reallocation routine, but it keeps getting stuck in an infinite loop. In this area, there are sixteen memory banks; each memory bank can hold any number of blocks....
56.276596
100
0.761815
477
2,645
4.203354
0.389937
0.032918
0.020948
0.005985
0.04389
0.04389
0.04389
0.04389
0
0
0
0.016768
0.18828
2,645
46
101
57.5
0.917094
0.921739
0
0
0
0
0.088083
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9a29485e3ae58c67b4c0c486240c276c76016ab2
3,328
py
Python
redress/tests/test_geometries.py
maximlamare/REDRESS
a6caa9924d0f6df7ed49f188b35a7743fde1486e
[ "MIT" ]
1
2021-09-16T08:03:31.000Z
2021-09-16T08:03:31.000Z
redress/tests/test_geometries.py
maximlamare/REDRESS
a6caa9924d0f6df7ed49f188b35a7743fde1486e
[ "MIT" ]
null
null
null
redress/tests/test_geometries.py
maximlamare/REDRESS
a6caa9924d0f6df7ed49f188b35a7743fde1486e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Unittests for the GDAl tools. This file is part of the REDRESS algorithm M. Lamare, M. Dumont, G. Picard (IGE, CEN). """ import pytest from geojson import Polygon, Feature, FeatureCollection, dump from redress.geospatial.gdal_ops import (build_poly_from_coords, ...
36.571429
73
0.60607
455
3,328
4.279121
0.298901
0.03698
0.053416
0.058552
0.315871
0.232152
0.232152
0.198254
0.161274
0.161274
0
0.103277
0.275541
3,328
90
74
36.977778
0.704272
0.255409
0
0.177778
0
0
0.009877
0
0
0
0
0
0.155556
1
0.088889
false
0
0.066667
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
9a2995b77fe8a7759abd5fe12be41e28897fa1b0
112
py
Python
output/models/ms_data/regex/letterlike_symbols_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/regex/letterlike_symbols_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/regex/letterlike_symbols_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.regex.letterlike_symbols_xsd.letterlike_symbols import Doc __all__ = [ "Doc", ]
18.666667
85
0.776786
15
112
5.266667
0.8
0.43038
0
0
0
0
0
0
0
0
0
0
0.125
112
5
86
22.4
0.806122
0
0
0
0
0
0.026786
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
9a2ad5d8f34b4182942a86d8ef3f197c1b06c12e
1,296
py
Python
test.py
MarkMurillo/python_ctype_structure_example
9e889cc4cbdeab8433c396262f086071bb961e13
[ "MIT" ]
null
null
null
test.py
MarkMurillo/python_ctype_structure_example
9e889cc4cbdeab8433c396262f086071bb961e13
[ "MIT" ]
null
null
null
test.py
MarkMurillo/python_ctype_structure_example
9e889cc4cbdeab8433c396262f086071bb961e13
[ "MIT" ]
null
null
null
"""test.py Python3 Test script that demonstrates the passing of an initialized python structure to C and retrieving the structure back. """ import testMod from ctypes import * class TESTSTRUCT(Structure): pass TESTSTRUCT._fields_ = [ ("name", c_char_p), ("next", POINTER(TESTSTRUCT), #We can use a ...
31.609756
88
0.73534
190
1,296
4.936842
0.436842
0.021322
0.025586
0.051173
0
0
0
0
0
0
0
0.019196
0.155864
1,296
40
89
32.4
0.838208
0
0
0
0
0
0.069191
0
0
0
0
0
0
0
null
null
0.052632
0.105263
null
null
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
9a2bcb820df0cd2448d9d527aa5328ae749fbcf6
246
py
Python
calculations.py
DikshaAGowda/Project3
675d4d80ad4b44b3a49e8962c9f85709898d0a94
[ "MIT" ]
null
null
null
calculations.py
DikshaAGowda/Project3
675d4d80ad4b44b3a49e8962c9f85709898d0a94
[ "MIT" ]
null
null
null
calculations.py
DikshaAGowda/Project3
675d4d80ad4b44b3a49e8962c9f85709898d0a94
[ "MIT" ]
null
null
null
def addition(num1, num2): return num1 + num2 def subtraction(num1, num2): return num1 - num2 def multiplication(num1, num2): return num1 * num2 def division(num1, num2): if num2 == 0: return None return num1 / num2
17.571429
31
0.642276
33
246
4.787879
0.333333
0.405063
0.35443
0.341772
0.474684
0.474684
0
0
0
0
0
0.099448
0.264228
246
13
32
18.923077
0.773481
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0.3
0.9
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
9a2cec396ceac73b9f9e17a3fefcecf0959ae15d
33,258
py
Python
utility/visualize.py
richban/behavioral.neuroevolution
bb850bda919a772538dc86a9624a6e86623f9b80
[ "Apache-2.0" ]
null
null
null
utility/visualize.py
richban/behavioral.neuroevolution
bb850bda919a772538dc86a9624a6e86623f9b80
[ "Apache-2.0" ]
2
2020-03-31T01:45:13.000Z
2020-09-25T23:39:43.000Z
utility/visualize.py
richban/behavioral.neuroevolution
bb850bda919a772538dc86a9624a6e86623f9b80
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import csv import graphviz import numpy as np import plotly.graph_objs as go import plotly import plotly.plotly as py import matplotlib.pyplot as plt import matplotlib.pylab as pylab import copy import warnings import matplotlib as mpl from plotly.offline import download...
25.7017
115
0.500992
3,806
33,258
4.306096
0.130321
0.017024
0.015864
0.016597
0.56782
0.536396
0.498383
0.470682
0.44359
0.407468
0
0.039828
0.356786
33,258
1,294
116
25.7017
0.7263
0.04002
0
0.583015
0
0
0.124329
0.006406
0
0
0
0
0.001908
1
0.023855
false
0
0.013359
0
0.062023
0.000954
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
9a2d4e4783b1e8d97223132070735cfa9ed1e2ca
1,683
py
Python
CUMCM2014/Problem-A/2014-A-Python_SC/梯度图.py
Amoiensis/Mathmatic_Modeling_CUMCM
c64ec097d764ec3ae14e26e840bf5642be372d7c
[ "Apache-2.0" ]
27
2019-08-30T07:09:53.000Z
2021-08-29T07:37:24.000Z
CUMCM2014/Problem-A/2014-A-Python_SC/梯度图.py
Amoiensis/Mathmatic_Modeling_CUMCM
c64ec097d764ec3ae14e26e840bf5642be372d7c
[ "Apache-2.0" ]
2
2020-08-10T03:11:32.000Z
2020-08-24T13:39:24.000Z
CUMCM2014/Problem-A/2014-A-Python_SC/梯度图.py
Amoiensis/Mathmatic_Modeling_CUMCM
c64ec097d764ec3ae14e26e840bf5642be372d7c
[ "Apache-2.0" ]
28
2019-12-14T03:54:42.000Z
2022-03-12T14:38:22.000Z
# -*- coding: utf-8 -*- """ --------------------------------------------- File Name: 粗避障 Desciption: Author: fanzhiwei date: 2019/9/5 9:58 --------------------------------------------- Change Activity: 2019/9/5 9:58 -------------------------------------...
29.017241
65
0.633393
203
1,683
5.009852
0.374384
0.06883
0.058997
0.013766
0.184857
0.167158
0.096362
0.096362
0.096362
0.096362
0
0.029971
0.187166
1,683
58
66
29.017241
0.71345
0.215092
0
0.060606
0
0
0.030488
0
0
0
0
0
0
1
0.030303
false
0
0.151515
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
9a2d7ee04fd9497228365f3b015187758913933a
965
py
Python
models.py
curieos/Django-Blog-TDD
ba40b285d87c88aa33b1e2eb3d4bda014a88a319
[ "MIT" ]
null
null
null
models.py
curieos/Django-Blog-TDD
ba40b285d87c88aa33b1e2eb3d4bda014a88a319
[ "MIT" ]
8
2019-04-14T13:53:55.000Z
2019-07-11T18:06:57.000Z
models.py
curieos/Django-Blog-TDD
ba40b285d87c88aa33b1e2eb3d4bda014a88a319
[ "MIT" ]
null
null
null
from django.utils.text import slugify from django_extensions.db.fields import AutoSlugField from django.db import models from datetime import datetime def get_current_date_time(): return datetime.now() # Create your models here. class Post(models.Model): title = models.CharField(max_length=50) slug = AutoSlugFi...
29.242424
101
0.78342
131
965
5.564886
0.442748
0.049383
0.060357
0.049383
0.23594
0.109739
0.109739
0
0
0
0
0.009292
0.107772
965
32
102
30.15625
0.837398
0.02487
0
0.086957
0
0
0.046858
0
0
0
0
0
0
1
0.173913
false
0
0.173913
0.173913
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
9a2e437ae8b03063acc62700c14efeca6658092a
145
py
Python
brl_gym/estimators/learnable_bf/__init__.py
gilwoolee/brl_gym
9c0784e9928f12d2ee0528c79a533202d3afb640
[ "BSD-3-Clause" ]
2
2020-08-07T05:50:44.000Z
2022-03-03T08:46:10.000Z
brl_gym/estimators/learnable_bf/__init__.py
gilwoolee/brl_gym
9c0784e9928f12d2ee0528c79a533202d3afb640
[ "BSD-3-Clause" ]
null
null
null
brl_gym/estimators/learnable_bf/__init__.py
gilwoolee/brl_gym
9c0784e9928f12d2ee0528c79a533202d3afb640
[ "BSD-3-Clause" ]
null
null
null
from brl_gym.estimators.learnable_bf.learnable_bf import LearnableBF #from brl_gym.estimators.learnable_bf.bf_dataset import BayesFilterDataset
36.25
74
0.889655
20
145
6.15
0.5
0.268293
0.162602
0.325203
0.504065
0.504065
0
0
0
0
0
0
0.062069
145
3
75
48.333333
0.904412
0.503448
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
9a337713256137d5fcba2e7758391c4a3d42f204
4,156
py
Python
scripts/figures/kernels.py
qbhan/sample_based_MCdenoising
92f5220802ef0668105cdee5fd7e2af8a66201db
[ "Apache-2.0" ]
78
2019-10-02T01:34:46.000Z
2022-03-21T11:18:04.000Z
scripts/figures/kernels.py
qbhan/sample_based_MCdenoising
92f5220802ef0668105cdee5fd7e2af8a66201db
[ "Apache-2.0" ]
17
2019-10-04T17:04:00.000Z
2021-05-17T19:02:12.000Z
scripts/figures/kernels.py
qbhan/sample_based_MCdenoising
92f5220802ef0668105cdee5fd7e2af8a66201db
[ "Apache-2.0" ]
18
2019-10-03T05:02:21.000Z
2021-06-22T15:54:15.000Z
import os import argparse import logging import numpy as np import torch as th from torch.utils.data import DataLoader from torchvision import transforms import ttools from ttools.modules.image_operators import crop_like import rendernet.dataset as dset import rendernet.modules.preprocessors as pre import rendernet....
31.24812
113
0.677334
606
4,156
4.493399
0.292079
0.036724
0.025707
0.012853
0.144326
0.099523
0.060962
0.017628
0.017628
0.017628
0
0.007906
0.178296
4,156
132
114
31.484848
0.789458
0.0077
0
0
0
0
0.102377
0.005822
0
0
0
0
0
1
0.018519
false
0
0.166667
0
0.185185
0.009259
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
9a33a34b59f215b243d9da922749fa4b6ad17b64
1,002
py
Python
code/analytics/models.py
harryface/url-condenser
800b573a82f41dd4900c8264007c1a0260a1a8b4
[ "MIT" ]
null
null
null
code/analytics/models.py
harryface/url-condenser
800b573a82f41dd4900c8264007c1a0260a1a8b4
[ "MIT" ]
null
null
null
code/analytics/models.py
harryface/url-condenser
800b573a82f41dd4900c8264007c1a0260a1a8b4
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from shortener.models import CondenseURL class UrlViewedManager(models.Manager): def create_event(self, condensed_object, ip_address): if isinstance(condensed_object, CondenseURL): obj, created = self.get_or_create(url=condensed_object) ...
31.3125
69
0.653693
117
1,002
5.418803
0.504274
0.085174
0.037855
0.082019
0
0
0
0
0
0
0
0.002674
0.253493
1,002
32
70
31.3125
0.84492
0.023952
0
0.08
0
0
0.048106
0
0
0
0
0
0
1
0.08
false
0
0.08
0.04
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9a3726435cdad9b9e21619560262a26d9cbff99c
299
py
Python
scripts/alan/clean_pycache.py
Pix-00/olea
98bee1fd8866a3929f685a139255afb7b6813f31
[ "Apache-2.0" ]
2
2020-06-18T03:25:52.000Z
2020-06-18T07:33:45.000Z
scripts/alan/clean_pycache.py
Pix-00/olea
98bee1fd8866a3929f685a139255afb7b6813f31
[ "Apache-2.0" ]
15
2021-01-28T07:11:04.000Z
2021-05-24T07:11:37.000Z
scripts/alan/clean_pycache.py
Pix-00/olea
98bee1fd8866a3929f685a139255afb7b6813f31
[ "Apache-2.0" ]
null
null
null
def clean_pycache(dir_, ignores=''): import shutil for path in dir_.glob('**/__pycache__'): if ignores and path.match(ignores): continue shutil.rmtree(path) if __name__ == "__main__": from pathlib import Path clean_pycache(Path(__file__).parents[2])
19.933333
44
0.638796
36
299
4.75
0.638889
0.140351
0
0
0
0
0
0
0
0
0
0.004425
0.244147
299
14
45
21.357143
0.752212
0
0
0
0
0
0.073579
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9a3a8f8810da891a7c03436b0f8a519f17f8d1e7
212
py
Python
orb_simulator/orbsim_language/orbsim_ast/tuple_creation_node.py
dmguezjaviersnet/IA-Sim-Comp-Project
8165b9546efc45f98091a3774e2dae4f45942048
[ "MIT" ]
1
2022-01-19T22:49:09.000Z
2022-01-19T22:49:09.000Z
orb_simulator/orbsim_language/orbsim_ast/tuple_creation_node.py
dmguezjaviersnet/IA-Sim-Comp-Project
8165b9546efc45f98091a3774e2dae4f45942048
[ "MIT" ]
15
2021-11-10T14:25:02.000Z
2022-02-12T19:17:11.000Z
orb_simulator/orbsim_language/orbsim_ast/tuple_creation_node.py
dmguezjaviersnet/IA-Sim-Comp-Project
8165b9546efc45f98091a3774e2dae4f45942048
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List from orbsim_language.orbsim_ast.expression_node import ExpressionNode @dataclass class TupleCreationNode(ExpressionNode): elems: List[ExpressionNode]
30.285714
69
0.858491
24
212
7.458333
0.625
0
0
0
0
0
0
0
0
0
0
0
0.099057
212
7
70
30.285714
0.937173
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
9a4004b98dc117b5e58a273f30a560e340d87721
1,345
py
Python
csv_merge_col.py
adrianpope/VelocityCompression
eb35f586b18890da93a7ad2e287437118c0327a2
[ "BSD-3-Clause" ]
null
null
null
csv_merge_col.py
adrianpope/VelocityCompression
eb35f586b18890da93a7ad2e287437118c0327a2
[ "BSD-3-Clause" ]
null
null
null
csv_merge_col.py
adrianpope/VelocityCompression
eb35f586b18890da93a7ad2e287437118c0327a2
[ "BSD-3-Clause" ]
null
null
null
import sys import numpy as np import pandas as pd def df_add_keys(df): ax = df['fof_halo_angmom_x'] ay = df['fof_halo_angmom_y'] az = df['fof_halo_angmom_z'] mag = np.sqrt(ax**2 + ay**2 + az**2) dx = ax/mag dy = ay/mag dz = az/mag df['fof_halo_angmom_dx'] = dx df['fof_halo_angmom_d...
24.907407
104
0.594052
224
1,345
3.254464
0.294643
0.061728
0.111111
0.144033
0
0
0
0
0
0
0
0.043611
0.266915
1,345
53
105
25.377358
0.69574
0
0
0
0
0.021739
0.188848
0.020818
0
0
0
0
0
1
0.043478
false
0
0.065217
0
0.152174
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
9a409844ea8ff87b62a343aba1bddbe1b4acc686
649
py
Python
Toolkits/VCS/mygulamali__repo-mine/mine/helpers.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
null
null
null
Toolkits/VCS/mygulamali__repo-mine/mine/helpers.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
null
null
null
Toolkits/VCS/mygulamali__repo-mine/mine/helpers.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
null
null
null
from sys import stdout def print_action(action): def print_action_decorator(function): def puts(string): stdout.write(string) stdout.flush() def function_wrapper(*args, **kwargs): puts("{0}... ".format(action)) return_value = function(*args, **kwargs...
27.041667
52
0.628659
77
649
5.077922
0.454545
0.084399
0.071611
0
0
0
0
0
0
0
0
0.002041
0.244992
649
23
53
28.217391
0.795918
0
0
0
0
0
0.061633
0
0
0
0
0
0
1
0.277778
false
0
0.055556
0
0.5
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9a4099a116dd4efb8f2b5619fb34ffe71a578a58
1,845
py
Python
scripts/check-silknow-urls.py
silknow/crawler
d2632cea9b98ab64a8bca56bc70b34edd3c2de31
[ "Apache-2.0" ]
1
2019-04-21T07:09:52.000Z
2019-04-21T07:09:52.000Z
scripts/check-silknow-urls.py
silknow/crawler
d2632cea9b98ab64a8bca56bc70b34edd3c2de31
[ "Apache-2.0" ]
35
2019-01-21T23:53:52.000Z
2022-02-12T04:28:17.000Z
scripts/check-silknow-urls.py
silknow/crawler
d2632cea9b98ab64a8bca56bc70b34edd3c2de31
[ "Apache-2.0" ]
null
null
null
import argparse import csv import os parser = argparse.ArgumentParser() parser.add_argument('-i', '--input', help="Input path of the missing urls CSV file") parser.add_argument('-o', '--output', help="Output directory where the new CSV files will be stored") parser.add_argument('-q', '--quiet', action='store_true', he...
38.4375
105
0.666667
253
1,845
4.715415
0.312253
0.040235
0.033529
0.026823
0.283319
0.24979
0.189438
0.135792
0.068734
0.068734
0
0.002041
0.203252
1,845
47
106
39.255319
0.809524
0
0
0.055556
0
0
0.156098
0.026558
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9a40c18aa2fcf755b162532d605ac1593ac74650
2,302
py
Python
Trabajo 3/auxFunc.py
francaracuel/UGR-GII-CCIA-4-VC-Vision_por_computador-17-18-Practicas
cb801eb5dfc4a8ea0300eae66a3b9bb2943fe8ab
[ "Apache-2.0" ]
1
2019-01-28T09:43:41.000Z
2019-01-28T09:43:41.000Z
Trabajo 3/auxFunc.py
francaracuel/UGR-GII-CCIA-4-VC-Vision_por_computador-17-18-Practicas
cb801eb5dfc4a8ea0300eae66a3b9bb2943fe8ab
[ "Apache-2.0" ]
null
null
null
Trabajo 3/auxFunc.py
francaracuel/UGR-GII-CCIA-4-VC-Vision_por_computador-17-18-Practicas
cb801eb5dfc4a8ea0300eae66a3b9bb2943fe8ab
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 21 11:20:06 2017 @author: NPB """ import cv2 import pickle def loadDictionary(filename): with open(filename,"rb") as fd: feat=pickle.load(fd) return feat["accuracy"],feat["labels"], feat["dictionary"] def loadAux(filename, flagPatches): if flagPatch...
26.45977
69
0.613814
307
2,302
4.576547
0.374593
0.008541
0.037011
0.038434
0.241993
0.186477
0.146619
0.118149
0.118149
0.118149
0
0.031414
0.253258
2,302
86
70
26.767442
0.785922
0.222415
0
0.320755
0
0
0.068439
0
0
0
0
0
0
1
0.075472
false
0
0.037736
0
0.188679
0.075472
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
9a417a0a839c157704c0bb9c7d9a86e16b358f3e
22,087
py
Python
pdb_profiling/processors/uniprot/api.py
NatureGeorge/pdb-profiling
b29f93f90fccf03869a7a294932f61d8e0b3470c
[ "MIT" ]
5
2020-10-27T12:02:00.000Z
2021-11-05T06:51:59.000Z
pdb_profiling/processors/uniprot/api.py
NatureGeorge/pdb-profiling
b29f93f90fccf03869a7a294932f61d8e0b3470c
[ "MIT" ]
9
2021-01-07T04:47:58.000Z
2021-09-22T13:20:35.000Z
pdb_profiling/processors/uniprot/api.py
NatureGeorge/pdb-profiling
b29f93f90fccf03869a7a294932f61d8e0b3470c
[ "MIT" ]
null
null
null
# @Created Date: 2019-12-08 06:46:49 pm # @Filename: api.py # @Email: 1730416009@stu.suda.edu.cn # @Author: ZeFeng Zhu # @Last Modified: 2020-02-16 10:54:32 am # @Copyright (c) 2020 MinghuiGroup, Soochow University from typing import Iterable, Iterator, Optional, Union, Generator, Dict, List from time import perf_coun...
42.55684
186
0.55467
2,578
22,087
4.553918
0.165632
0.010562
0.011244
0.010307
0.230579
0.185349
0.141482
0.125724
0.102129
0.083816
0
0.008874
0.316295
22,087
518
187
42.638996
0.768558
0.019378
0
0.217054
0
0
0.089272
0.034603
0
0
0
0
0.015504
1
0.085271
false
0
0.116279
0.031008
0.302326
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
9a41e415317ae7c881f36ab4cbf51cbe613df940
9,409
py
Python
hep_spt/stats/poisson.py
mramospe/hepspt
11f74978a582ebc20e0a7765dafc78f0d1f1d5d5
[ "MIT" ]
null
null
null
hep_spt/stats/poisson.py
mramospe/hepspt
11f74978a582ebc20e0a7765dafc78f0d1f1d5d5
[ "MIT" ]
null
null
null
hep_spt/stats/poisson.py
mramospe/hepspt
11f74978a582ebc20e0a7765dafc78f0d1f1d5d5
[ "MIT" ]
1
2021-11-03T03:36:15.000Z
2021-11-03T03:36:15.000Z
''' Function and classes representing statistical tools. ''' __author__ = ['Miguel Ramos Pernas'] __email__ = ['miguel.ramos.pernas@cern.ch'] from hep_spt.stats.core import chi2_one_dof, one_sigma from hep_spt.core import decorate, taking_ndarray from hep_spt import PACKAGE_PATH import numpy as np import os from scip...
27.755162
103
0.636199
1,359
9,409
4.282561
0.210449
0.035052
0.028866
0.026117
0.338832
0.324399
0.263574
0.251031
0.208591
0.180241
0
0.007745
0.245297
9,409
338
104
27.837278
0.811857
0.527793
0
0.150442
0
0
0.081703
0.007139
0
0
0
0
0
1
0.123894
false
0
0.070796
0.035398
0.292035
0.017699
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
9a43ea16514e92431028e9e426f7d3c0a8b72e9b
3,088
py
Python
src/octopus/core/framework/__init__.py
smaragden/OpenRenderManagement
cf3ab356f96969d7952b60417b48e941955e435c
[ "BSD-3-Clause" ]
35
2015-02-23T23:13:13.000Z
2021-01-03T05:56:39.000Z
src/octopus/core/framework/__init__.py
smaragden/OpenRenderManagement
cf3ab356f96969d7952b60417b48e941955e435c
[ "BSD-3-Clause" ]
15
2015-01-12T12:58:29.000Z
2016-03-30T13:10:19.000Z
src/octopus/core/framework/__init__.py
mikrosimage/OpenRenderManagement
6f9237a86cb8e4b206313f9c22424c8002fd5e4d
[ "BSD-3-Clause" ]
20
2015-03-18T06:57:13.000Z
2020-07-01T15:09:36.000Z
import tornado import logging import httplib try: import simplejson as json except ImportError: import json from octopus.core.framework.wsappframework import WSAppFramework, MainLoopApplication from octopus.core.framework.webservice import MappingSet from octopus.core.communication.http import Http400 from oc...
29.409524
85
0.663536
337
3,088
5.970326
0.364985
0.05169
0.029821
0.034294
0.134195
0.093439
0.0666
0.0666
0.0666
0
0
0.004632
0.230894
3,088
104
86
29.692308
0.842526
0.040155
0
0.111111
0
0
0.072281
0.008865
0
0
0
0
0
1
0.208333
false
0
0.138889
0.069444
0.569444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
9a4542a7758b9c15cb5e2c79c2e2a38319b81b96
127
py
Python
provstore/__init__.py
vinisalazar/provstore-api
0dd506b4f0e00623b95a52caa70debe758817179
[ "MIT" ]
5
2015-03-09T20:07:08.000Z
2018-07-26T19:59:11.000Z
provstore/__init__.py
vinisalazar/provstore-api
0dd506b4f0e00623b95a52caa70debe758817179
[ "MIT" ]
2
2016-03-16T06:13:59.000Z
2020-11-06T20:53:28.000Z
provstore/__init__.py
vinisalazar/provstore-api
0dd506b4f0e00623b95a52caa70debe758817179
[ "MIT" ]
2
2016-09-01T09:09:05.000Z
2020-11-06T22:13:58.000Z
from provstore.document import Document from provstore.bundle_manager import BundleManager from provstore.bundle import Bundle
31.75
50
0.88189
16
127
6.9375
0.4375
0.351351
0.342342
0
0
0
0
0
0
0
0
0
0.094488
127
3
51
42.333333
0.965217
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
9a45c1430c4ad59b5117e98f3291087d7df4a619
834
py
Python
print-server/src/auth/Singleton.py
Multi-Agent-io/feecc-io-consolidated
9ba60176346ca9e15b22c09c2d5f1e1a5ac3ced6
[ "Apache-2.0" ]
null
null
null
print-server/src/auth/Singleton.py
Multi-Agent-io/feecc-io-consolidated
9ba60176346ca9e15b22c09c2d5f1e1a5ac3ced6
[ "Apache-2.0" ]
2
2021-11-27T09:31:12.000Z
2022-03-23T13:15:57.000Z
print-server/src/auth/Singleton.py
Multi-Agent-io/feecc-io-consolidated
9ba60176346ca9e15b22c09c2d5f1e1a5ac3ced6
[ "Apache-2.0" ]
2
2021-12-09T13:23:17.000Z
2022-03-23T13:04:41.000Z
from __future__ import annotations import typing as tp from loguru import logger class SingletonMeta(type): """ The Singleton class ensures there is always only one instance of a certain class that is globally available. This implementation is __init__ signature agnostic. """ _instances: tp.Dic...
33.36
113
0.655875
107
834
4.841122
0.560748
0.048263
0.086873
0.03861
0
0
0
0
0
0
0
0
0.248201
834
24
114
34.75
0.826156
0.305755
0
0
0
0
0.138258
0.047348
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9a467e6fc069bf386281b9a110e435f9e100a70b
139
py
Python
exercises/spotify/auth_data.py
introprogramming/exercises
8e52f3fa87d29a14ddcf00e8d87598d0721a41f6
[ "MIT" ]
2
2018-08-20T22:44:40.000Z
2018-09-14T17:03:35.000Z
exercises/spotify/auth_data.py
introprogramming/exercises
8e52f3fa87d29a14ddcf00e8d87598d0721a41f6
[ "MIT" ]
31
2015-08-06T16:25:57.000Z
2019-06-11T12:22:35.000Z
exercises/spotify/auth_data.py
introprogramming/exercises
8e52f3fa87d29a14ddcf00e8d87598d0721a41f6
[ "MIT" ]
1
2016-08-15T15:06:40.000Z
2016-08-15T15:06:40.000Z
# Login to https://developer.spotify.com/dashboard/, create an application and fill these out before use! client_id = "" client_secret = ""
46.333333
105
0.755396
20
139
5.15
0.95
0
0
0
0
0
0
0
0
0
0
0
0.129496
139
3
106
46.333333
0.85124
0.741007
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9a47729e5dc9d9a2649d73a1b1f6d29309683f2b
7,871
py
Python
augmentation.py
Harlequln/C1M18X-Behavioural_Cloning
0c49ad2432b2694848a7b83fddeea04c3306aa80
[ "MIT" ]
null
null
null
augmentation.py
Harlequln/C1M18X-Behavioural_Cloning
0c49ad2432b2694848a7b83fddeea04c3306aa80
[ "MIT" ]
null
null
null
augmentation.py
Harlequln/C1M18X-Behavioural_Cloning
0c49ad2432b2694848a7b83fddeea04c3306aa80
[ "MIT" ]
null
null
null
import cv2 import numpy as np import matplotlib.image as mpimg from pathlib import Path from model import * CAMERA_STEERING_CORRECTION = 0.2 def image_path(sample, camera="center"): """ Transform the sample path to the repository structure. Args: sample: a sample (row) of the data d...
35.138393
81
0.632575
1,072
7,871
4.585821
0.203358
0.035801
0.009764
0.015256
0.256713
0.214809
0.189992
0.157038
0.112286
0.0476
0
0.018663
0.285224
7,871
223
82
35.295964
0.855137
0.48685
0
0.186667
0
0
0.025905
0.012069
0
0
0
0
0
1
0.16
false
0
0.066667
0
0.386667
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
9a483acc0e1727f56a550dc2b790cfba50c01c45
4,848
py
Python
test_zeroshot.py
airbert-vln/airbert
a4f667db9fb4021094c738dd8d23739aee3785a5
[ "MIT" ]
17
2021-07-30T14:08:24.000Z
2022-03-30T13:57:02.000Z
test_zeroshot.py
airbert-vln/airbert
a4f667db9fb4021094c738dd8d23739aee3785a5
[ "MIT" ]
4
2021-09-09T03:02:18.000Z
2022-03-24T13:55:55.000Z
test_zeroshot.py
airbert-vln/airbert
a4f667db9fb4021094c738dd8d23739aee3785a5
[ "MIT" ]
2
2021-08-30T11:51:16.000Z
2021-09-03T09:18:50.000Z
import json import logging from typing import List import os import sys import numpy as np import torch from torch.utils.data import DataLoader from tqdm import tqdm from transformers import AutoTokenizer, BertTokenizer from vilbert.vilbert import BertConfig from utils.cli import get_parser from utils.dataset.commo...
27.545455
88
0.65821
629
4,848
4.828299
0.310016
0.023049
0.011854
0.018439
0.115904
0.095489
0.046757
0.046757
0.023049
0
0
0.002884
0.213284
4,848
175
89
27.702857
0.793393
0.094472
0
0
0
0
0.109271
0.037727
0
0
0
0
0
1
0.036697
false
0
0.155963
0
0.220183
0.018349
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
9a49459be97466ed19cf1a661276df8eb41c082e
3,184
py
Python
refp.py
jon2718/ipycool_2.0
34cf74ee99f4a725b997c50a7742ba788ac2dacd
[ "MIT" ]
null
null
null
refp.py
jon2718/ipycool_2.0
34cf74ee99f4a725b997c50a7742ba788ac2dacd
[ "MIT" ]
null
null
null
refp.py
jon2718/ipycool_2.0
34cf74ee99f4a725b997c50a7742ba788ac2dacd
[ "MIT" ]
null
null
null
from modeledcommandparameter import * from pseudoregion import * class Refp(ModeledCommandParameter, PseudoRegion): """ Reference particle """ begtag = 'REFP' endtag = '' models = { 'model_descriptor': {'desc': 'Phase model', 'name': 'phmodref', ...
38.829268
139
0.451005
308
3,184
4.50974
0.298701
0.063355
0.087113
0.061195
0.566595
0.563715
0.563715
0.539957
0.539957
0.539957
0
0.023289
0.339196
3,184
82
140
38.829268
0.636882
0.005653
0
0.484848
0
0.015152
0.347509
0
0
0
0
0
0
1
0.060606
false
0.030303
0.030303
0
0.151515
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
9a4a243b2c4f9a84354c254f16486d8c603e8178
10,620
py
Python
utils/dataloaders.py
sinahmr/parted-vae
261f0654de605c6a260784e47e9a17a737a1a985
[ "MIT" ]
5
2021-06-26T07:45:50.000Z
2022-03-31T11:41:29.000Z
utils/dataloaders.py
sinahmr/parted-vae
261f0654de605c6a260784e47e9a17a737a1a985
[ "MIT" ]
null
null
null
utils/dataloaders.py
sinahmr/parted-vae
261f0654de605c6a260784e47e9a17a737a1a985
[ "MIT" ]
1
2021-11-26T09:14:03.000Z
2021-11-26T09:14:03.000Z
import numpy as np import torch from torch.nn import functional as F from torch.utils.data import Dataset, DataLoader from torchvision import datasets, transforms from torchvision.utils import save_image from utils.fast_tensor_dataloader import FastTensorDataLoader def get_mnist_dataloaders(batch_size=128, path_to_d...
44.06639
177
0.645104
1,409
10,620
4.635912
0.165366
0.028475
0.024495
0.022045
0.532149
0.490814
0.448714
0.376914
0.376914
0.326852
0
0.029893
0.234557
10,620
240
178
44.25
0.77365
0.166196
0
0.478528
0
0
0.029055
0.00261
0
0
0
0.004167
0
1
0.134969
false
0
0.042945
0.04908
0.300614
0.006135
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
9a4a26f9a634d7ab72a8a79970898804d2a1b1c4
1,780
py
Python
posts.py
girish97115/anonymail
f2eb741464ce7b780e4de6de6043c6eed1e13b9a
[ "MIT" ]
null
null
null
posts.py
girish97115/anonymail
f2eb741464ce7b780e4de6de6043c6eed1e13b9a
[ "MIT" ]
null
null
null
posts.py
girish97115/anonymail
f2eb741464ce7b780e4de6de6043c6eed1e13b9a
[ "MIT" ]
null
null
null
from flask import ( Blueprint,session, flash, g, redirect, render_template, request, url_for ) from werkzeug.exceptions import abort from anonymail.auth import login_required from anonymail.db import get_db import datetime now = datetime.datetime.now() current_year = now.year bp = Blueprint('posts', __name__) @b...
28.253968
78
0.580337
218
1,780
4.633028
0.357798
0.069307
0.079208
0.074257
0.114851
0.114851
0.114851
0.114851
0.114851
0.114851
0
0.002364
0.287079
1,780
63
79
28.253968
0.793538
0
0
0.163636
0
0
0.206625
0.012914
0
0
0
0
0
1
0.054545
false
0
0.090909
0.018182
0.218182
0.036364
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
9a4a94c02a87e8e977bec5709e692ef62684b7c3
959
py
Python
app.py
pic-metric/data-science
89bf6e3733a3595220c945269b66befcaf82a3be
[ "MIT" ]
null
null
null
app.py
pic-metric/data-science
89bf6e3733a3595220c945269b66befcaf82a3be
[ "MIT" ]
null
null
null
app.py
pic-metric/data-science
89bf6e3733a3595220c945269b66befcaf82a3be
[ "MIT" ]
3
2020-01-31T22:34:00.000Z
2020-03-06T01:56:06.000Z
# from python-decouple import config from flask import Flask, request, jsonify from .obj_detector import object_detection # from flask_sqlalchemy import SQLAlchemy from dotenv import load_dotenv load_dotenv() def create_app(): app = Flask(__name__) @app.route('/img_summary', methods=['GET']) ...
28.205882
78
0.607925
119
959
4.722689
0.588235
0.032028
0.046263
0
0
0
0
0
0
0
0
0.00597
0.301356
959
33
79
29.060606
0.832836
0.447341
0
0
0
0
0.07947
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9a4bcff10fc3fa7d7e56bb3812a166c957678a62
2,579
py
Python
src/subroutines/array_subroutine.py
cyrilico/aoco-code-correction
3a780df31eea6caaa37213f6347fb71565ce11e8
[ "MIT" ]
4
2020-08-30T08:56:57.000Z
2020-08-31T21:32:03.000Z
src/subroutines/array_subroutine.py
cyrilico/aoco-code-correction
3a780df31eea6caaa37213f6347fb71565ce11e8
[ "MIT" ]
null
null
null
src/subroutines/array_subroutine.py
cyrilico/aoco-code-correction
3a780df31eea6caaa37213f6347fb71565ce11e8
[ "MIT" ]
1
2020-10-01T22:15:33.000Z
2020-10-01T22:15:33.000Z
from .subroutine import subroutine from parameters.string_parameter import string_parameter as String from parameters.numeric_parameter import numeric_parameter as Numeric from parameters.array_parameter import array_parameter as Array from ast import literal_eval class array_subroutine(subroutine): """Subroutine...
47.759259
154
0.606437
295
2,579
5.142373
0.294915
0.064601
0.027686
0.055372
0.142386
0.142386
0.059328
0.059328
0.059328
0.059328
0
0
0.288872
2,579
53
155
48.660377
0.827154
0.089957
0
0.170732
0
0
0.032092
0
0
0
0
0
0
1
0.121951
false
0
0.121951
0.04878
0.463415
0.04878
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
9a4cab617527bcae29b76af4b2c39e67572e4127
1,164
py
Python
auth.py
nivw/onna_test
518c726a656493a5efd7ed6f548f68b2f5350260
[ "BSD-2-Clause" ]
null
null
null
auth.py
nivw/onna_test
518c726a656493a5efd7ed6f548f68b2f5350260
[ "BSD-2-Clause" ]
null
null
null
auth.py
nivw/onna_test
518c726a656493a5efd7ed6f548f68b2f5350260
[ "BSD-2-Clause" ]
1
2020-06-24T16:52:59.000Z
2020-06-24T16:52:59.000Z
import requests import json from config import config from logbook import Logger, StreamHandler import sys StreamHandler(sys.stdout).push_application() log = Logger('auth') class Auth(object): def __init__(self): self.config = config self.auth_code = self.token =None def get_auth_code(self):...
31.459459
83
0.629725
148
1,164
4.783784
0.317568
0.112994
0.101695
0.042373
0.053672
0
0
0
0
0
0
0.001166
0.262887
1,164
36
84
32.333333
0.824009
0
0
0.133333
0
0
0.064433
0
0
0
0
0
0
1
0.133333
false
0
0.166667
0.033333
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
9a4d61b4c436761ff6069be2e39ac836e18b0130
1,540
py
Python
tests/regressions/python/942_lazy_fmap.py
NanmiaoWu/phylanx
295b5f82cc39925a0d53e77ba3b6d02a65204535
[ "BSL-1.0" ]
83
2017-08-27T15:09:13.000Z
2022-01-18T17:03:41.000Z
tests/regressions/python/942_lazy_fmap.py
NanmiaoWu/phylanx
295b5f82cc39925a0d53e77ba3b6d02a65204535
[ "BSL-1.0" ]
808
2017-08-27T15:35:01.000Z
2021-12-14T17:30:50.000Z
tests/regressions/python/942_lazy_fmap.py
NanmiaoWu/phylanx
295b5f82cc39925a0d53e77ba3b6d02a65204535
[ "BSL-1.0" ]
55
2017-08-27T15:09:22.000Z
2022-03-25T12:07:34.000Z
# Copyright (c) 2019 Bita Hasheminezhad # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # #942: `fold_left`, `fold_right` and `fmap` do not work with a lazy function import numpy as np from phylanx import Phyl...
24.0625
79
0.670779
233
1,540
4.347639
0.39485
0.034551
0.026654
0.023692
0.122409
0.078973
0.078973
0.078973
0.078973
0.078973
0
0.021523
0.215584
1,540
63
80
24.444444
0.817053
0.180519
0
0.057143
0
0
0.079808
0
0
0
0
0
0.057143
1
0.2
false
0.028571
0.057143
0.142857
0.457143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
9a4f44e640692a4adea1bc6d6ea01c4fe9188da3
644
py
Python
main.py
DanTheBow/Fibonacci
6b2b694174041c59c1cc151f775772056d88749b
[ "Unlicense" ]
1
2022-01-02T19:50:55.000Z
2022-01-02T19:50:55.000Z
main.py
DanTheBow/Fibonacci
6b2b694174041c59c1cc151f775772056d88749b
[ "Unlicense" ]
null
null
null
main.py
DanTheBow/Fibonacci
6b2b694174041c59c1cc151f775772056d88749b
[ "Unlicense" ]
null
null
null
# Die Fibonacci-Folge ist die unendliche Folge natürlicher Zahlen, die (ursprünglich) mit zweimal der Zahl 1 beginnt # oder (häufig, in moderner Schreibweise) zusätzlich mit einer führenden Zahl 0 versehen ist. # Im Anschluss ergibt jeweils die Summe zweier aufeinanderfolgender Zahlen die unmittelbar danach folgende Za...
58.545455
116
0.706522
111
644
4.099099
0.558559
0.026374
0.013187
0.017582
0.145055
0.145055
0.145055
0.145055
0.145055
0.145055
0
0.07045
0.206522
644
10
117
64.4
0.819961
0.861801
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
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
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
9a51a2dfb9ee0eb5c3e19b169561bb01b5b7ae90
4,063
py
Python
application/api/generate_label.py
Florian-Barthel/stylegan2
4ef87038bf9370596cf2b729e1d1a1bc3ebcddd8
[ "BSD-Source-Code" ]
null
null
null
application/api/generate_label.py
Florian-Barthel/stylegan2
4ef87038bf9370596cf2b729e1d1a1bc3ebcddd8
[ "BSD-Source-Code" ]
null
null
null
application/api/generate_label.py
Florian-Barthel/stylegan2
4ef87038bf9370596cf2b729e1d1a1bc3ebcddd8
[ "BSD-Source-Code" ]
null
null
null
import numpy as np import dnnlib.tflib as tflib from training import dataset tflib.init_tf() class LabelGenerator: def __init__(self, tfrecord_dir: str = None): if tfrecord_dir: self.training_set = dataset.TFRecordDataset(tfrecord_dir, shuffle_mb=0) self.labels_available = True ...
35.330435
99
0.502092
483
4,063
4.049689
0.204969
0.06135
0.050102
0.051125
0.468303
0.395194
0.326687
0.247444
0.247444
0.195297
0
0.057545
0.388383
4,063
114
100
35.640351
0.729577
0
0
0.41
0
0
0.027074
0
0
0
0
0
0
1
0.04
false
0
0.03
0
0.14
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
9a51f5406e8b8b4afa3d8bc309049e92a8011b92
3,333
py
Python
tests/test_urls.py
LaudateCorpus1/apostello
1ace89d0d9e1f7a1760f6247d90a60a9787a4f12
[ "MIT" ]
69
2015-10-03T20:27:53.000Z
2021-04-06T05:26:18.000Z
tests/test_urls.py
LaudateCorpus1/apostello
1ace89d0d9e1f7a1760f6247d90a60a9787a4f12
[ "MIT" ]
73
2015-10-03T17:53:47.000Z
2020-10-01T03:08:01.000Z
tests/test_urls.py
LaudateCorpus1/apostello
1ace89d0d9e1f7a1760f6247d90a60a9787a4f12
[ "MIT" ]
29
2015-10-23T22:00:13.000Z
2021-11-30T04:48:06.000Z
from collections import namedtuple import pytest from rest_framework.authtoken.models import Token from tests.conftest import twilio_vcr from apostello import models StatusCode = namedtuple("StatusCode", "anon, user, staff") @pytest.mark.slow @pytest.mark.parametrize( "url,status_code", [ ("/", Sta...
40.646341
105
0.615362
429
3,333
4.682984
0.228438
0.037332
0.047785
0.038328
0.566949
0.501244
0.313091
0.206073
0.206073
0.206073
0
0.089519
0.19562
3,333
81
106
41.148148
0.659828
0.042004
0
0.190476
0
0
0.204294
0.03947
0
0
0
0
0.15873
1
0.095238
false
0
0.079365
0
0.206349
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
9a52f446636c4417f93211b5960e9ec09c902310
2,491
py
Python
guestbook/main.py
bradmontgomery/mempy-flask-tutorial
8113562460cfa837e7b26df29998e0b6950dd46f
[ "MIT" ]
1
2018-01-10T17:54:18.000Z
2018-01-10T17:54:18.000Z
guestbook/main.py
bradmontgomery/mempy-flask-tutorial
8113562460cfa837e7b26df29998e0b6950dd46f
[ "MIT" ]
null
null
null
guestbook/main.py
bradmontgomery/mempy-flask-tutorial
8113562460cfa837e7b26df29998e0b6950dd46f
[ "MIT" ]
null
null
null
""" A *really* simple guestbook flask app. Data is stored in a SQLite database that looks something like the following: +------------+------------------+------------+ | Name | Email | signed_on | +============+==================+============+ | John Doe | jdoe@example.com | 2012-05-28 | +------...
29.654762
106
0.609394
302
2,491
4.92053
0.410596
0.030283
0.048452
0.05249
0.244953
0.188425
0.188425
0.188425
0.153432
0.153432
0
0.014933
0.193497
2,491
83
107
30.012048
0.724739
0.415496
0
0.235294
0
0
0.195636
0
0
0
0
0
0
1
0.117647
false
0
0.088235
0
0.294118
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
9a555159031db4d7f16f4b7224046ffb7dcc0810
25,673
py
Python
lingvodoc/scripts/lingvodoc_converter.py
SegFaulti4/lingvodoc
8b296b43453a46b814d3cd381f94382ebcb9c6a6
[ "Apache-2.0" ]
5
2017-03-30T18:02:11.000Z
2021-07-20T16:02:34.000Z
lingvodoc/scripts/lingvodoc_converter.py
SegFaulti4/lingvodoc
8b296b43453a46b814d3cd381f94382ebcb9c6a6
[ "Apache-2.0" ]
15
2016-02-24T13:16:59.000Z
2021-09-03T11:47:15.000Z
lingvodoc/scripts/lingvodoc_converter.py
Winking-maniac/lingvodoc
f037bf0e91ccdf020469037220a43e63849aa24a
[ "Apache-2.0" ]
22
2015-09-25T07:13:40.000Z
2021-08-04T18:08:26.000Z
import sqlite3 import base64 import requests import json import hashlib import logging from lingvodoc.queue.client import QueueClient def get_dict_attributes(sqconn): dict_trav = sqconn.cursor() dict_trav.execute("""SELECT dict_name, dict_identificator, ...
51.346
159
0.569158
2,677
25,673
5.100859
0.109824
0.04394
0.029293
0.018455
0.598902
0.528378
0.475943
0.437129
0.394654
0.361626
0
0.009986
0.340825
25,673
499
160
51.448898
0.796904
0.022241
0
0.37296
0
0.002331
0.257024
0.059464
0
0
0
0.002004
0
1
0.025641
false
0.009324
0.020979
0
0.060606
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
9a56a9cb8a9973d77c62dc8bff13ecc6a5a858c1
1,550
py
Python
tests/test_all.py
euranova/DAEMA
29fec157c34afcc9abe95bc602a3012615b3c36b
[ "MIT" ]
6
2021-09-17T02:09:29.000Z
2022-03-20T04:15:15.000Z
tests/test_all.py
Jason-Xu-Ncepu/DAEMA
29fec157c34afcc9abe95bc602a3012615b3c36b
[ "MIT" ]
null
null
null
tests/test_all.py
Jason-Xu-Ncepu/DAEMA
29fec157c34afcc9abe95bc602a3012615b3c36b
[ "MIT" ]
4
2021-06-29T22:57:18.000Z
2022-03-09T09:19:17.000Z
""" Tests the code. """ from torch.utils.data import DataLoader from models import MODELS from pipeline import argument_parser from pipeline.datasets import DATASETS, get_dataset from run import main def test_datasets(): """ Tests all the datasets defined in pipeline.datasets.DATASETS. """ for ds_name in DA...
38.75
113
0.614839
212
1,550
4.358491
0.429245
0.025974
0.048701
0.032468
0.097403
0.04329
0
0
0
0
0
0.012777
0.242581
1,550
39
114
39.74359
0.774276
0.127097
0
0
0
0
0.19367
0.033911
0
0
0
0
0.153846
1
0.115385
false
0
0.192308
0
0.307692
0.038462
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
9a586ac04d9d83458edb9f23d9cb90fb787462de
2,185
py
Python
src/preprocessing.py
Wisteria30/GIM-RL
085ba3b8c10590f82226cd1675ba96c5f90740f3
[ "Apache-2.0" ]
3
2021-10-15T00:57:05.000Z
2021-12-16T13:00:05.000Z
src/preprocessing.py
Wisteria30/GIM-RL
085ba3b8c10590f82226cd1675ba96c5f90740f3
[ "Apache-2.0" ]
null
null
null
src/preprocessing.py
Wisteria30/GIM-RL
085ba3b8c10590f82226cd1675ba96c5f90740f3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import random import os import sys import torch from src.agent import ( EpsilonGreedyAgent, MaxAgent, RandomAgent, RandomCreateBVAgent, ProbabilityAgent, QAgent, QAndUtilityAgent, MultiEpsilonGreedyAgent, MultiMaxAgent, MultiProbabilit...
27.3125
74
0.644851
260
2,185
5.353846
0.265385
0.068966
0.12069
0.112069
0.501437
0.466954
0.466954
0.466954
0.314655
0.270115
0
0.002367
0.226545
2,185
79
75
27.658228
0.821302
0.009611
0
0.382353
0
0
0.10407
0.020814
0
0
0
0
0
1
0.058824
false
0
0.088235
0
0.176471
0.029412
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
9a599c01b7e7a6eb5de9e8bf5a694c44420b04db
101
py
Python
python/testData/editing/spaceDocStringStubInFunction.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/editing/spaceDocStringStubInFunction.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/editing/spaceDocStringStubInFunction.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def func(x, y, z): """ :param x: <caret> :param y: :param z: :return: """
14.428571
21
0.386139
13
101
3
0.615385
0
0
0
0
0
0
0
0
0
0
0
0.405941
101
7
22
14.428571
0.65
0.475248
0
0
0
0
0
0
0
0
0
0
0
1
1
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
9a5ad370a80119a4cd36243d371bcf4ccf37a3ae
1,439
py
Python
src/leaf/file_tools.py
Pix-00/olea-v2_flask_1_
7ddfa83a7a2a7dfbe55b78da002c1193f38781c0
[ "Apache-2.0" ]
null
null
null
src/leaf/file_tools.py
Pix-00/olea-v2_flask_1_
7ddfa83a7a2a7dfbe55b78da002c1193f38781c0
[ "Apache-2.0" ]
null
null
null
src/leaf/file_tools.py
Pix-00/olea-v2_flask_1_
7ddfa83a7a2a7dfbe55b78da002c1193f38781c0
[ "Apache-2.0" ]
null
null
null
from hashlib import sha3_256 import magic from enums import Dep, MangoType MIME_MTYPE = { 'text/plain': MangoType.text, 'audio/flac': MangoType.audio_flac, 'audio/wav': MangoType.audio_wav, 'image/png': MangoType.picture_png, 'image/jpeg': MangoType.picture_jpg, 'video/x-matroska': MangoType....
24.810345
73
0.635858
187
1,439
4.748663
0.363636
0.060811
0.101351
0.070946
0
0
0
0
0
0
0
0.03
0.23558
1,439
57
74
25.245614
0.777273
0
0
0.133333
0
0
0.063238
0
0
0
0
0
0
1
0.044444
false
0
0.066667
0.022222
0.155556
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
9a5cc32eb8d423266537616c2fd2072b4114deb3
2,258
py
Python
fabric_cm/credmgr/swagger_server/__main__.py
fabric-testbed/CredentialManager
da8ce54ab78544ff907af81d8cd7723ff48f6652
[ "MIT" ]
1
2021-05-24T17:20:07.000Z
2021-05-24T17:20:07.000Z
fabric_cm/credmgr/swagger_server/__main__.py
fabric-testbed/CredentialManager
da8ce54ab78544ff907af81d8cd7723ff48f6652
[ "MIT" ]
4
2021-06-07T16:18:45.000Z
2021-06-29T20:13:21.000Z
fabric_cm/credmgr/swagger_server/__main__.py
fabric-testbed/CredentialManager
da8ce54ab78544ff907af81d8cd7723ff48f6652
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
32.724638
80
0.724978
312
2,258
5.141026
0.525641
0.054863
0.022444
0.035536
0
0
0
0
0
0
0
0.003906
0.206377
2,258
68
81
33.205882
0.891183
0.542516
0
0
0
0
0.106599
0
0
0
0
0
0
1
0.037037
false
0
0.333333
0
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9a5d1a5d6e04e787d275225f739fe6d7102b20fa
1,529
py
Python
backendapi/icon/migrations/0001_initial.py
fredblade/Pictogram
d5cc4a25f28b6d80facf51fa9528e8ff969f7c46
[ "MIT" ]
null
null
null
backendapi/icon/migrations/0001_initial.py
fredblade/Pictogram
d5cc4a25f28b6d80facf51fa9528e8ff969f7c46
[ "MIT" ]
null
null
null
backendapi/icon/migrations/0001_initial.py
fredblade/Pictogram
d5cc4a25f28b6d80facf51fa9528e8ff969f7c46
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2022-02-27 17:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import versatileimagefield.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(setting...
41.324324
177
0.646828
161
1,529
5.987578
0.42236
0.129668
0.029046
0.045643
0.487552
0.487552
0.487552
0.487552
0.487552
0.487552
0
0.025274
0.223676
1,529
36
178
42.472222
0.786858
0.029431
0
0.482759
1
0
0.078273
0
0
0
0
0
0
1
0
false
0
0.137931
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9a5f6f4fdf92f5d8e97feaed00a42aa430e9c51a
424,971
py
Python
src/fmiprot.py
tanisc/FMIPROT
9035b5f89768e1028edd08dc7568b3208552f164
[ "Apache-2.0" ]
4
2019-02-25T11:53:55.000Z
2021-03-16T20:16:56.000Z
src/fmiprot.py
tanisc/FMIPROT
9035b5f89768e1028edd08dc7568b3208552f164
[ "Apache-2.0" ]
2
2021-09-14T09:54:42.000Z
2021-11-12T13:30:10.000Z
src/fmiprot.py
tanisc/FMIPROT
9035b5f89768e1028edd08dc7568b3208552f164
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # python version 2.7 # Cemal Melih Tanis (C) ############################################################################### import os import shutil import datetime from pytz import timezone from uuid import uuid4 from definitions import * import fetchers import cal...
64.15625
917
0.714124
60,012
424,971
5.001166
0.03266
0.030274
0.023257
0.018472
0.752571
0.696062
0.656276
0.618799
0.590181
0.552511
0
0.024111
0.113657
424,971
6,623
918
64.165937
0.772687
0.009674
0
0.425317
0
0.021315
0.169098
0.021964
0.055321
0
0.000007
0
0
0
null
null
0.018223
0.008461
null
null
0.005044
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9a61264c94a41a473e6cc008dcf849ae78b0596c
898
py
Python
akamai/cache_buster/bust_cache.py
famartinrh/cloud-services-config
7dd4fe24fc09a62f360e3407629b1c2567a10260
[ "MIT" ]
11
2019-06-25T17:01:12.000Z
2022-01-21T18:53:13.000Z
akamai/cache_buster/bust_cache.py
famartinrh/cloud-services-config
7dd4fe24fc09a62f360e3407629b1c2567a10260
[ "MIT" ]
253
2019-05-24T12:48:32.000Z
2022-03-29T11:00:25.000Z
akamai/cache_buster/bust_cache.py
famartinrh/cloud-services-config
7dd4fe24fc09a62f360e3407629b1c2567a10260
[ "MIT" ]
93
2019-04-17T09:22:43.000Z
2022-03-21T18:53:28.000Z
import sys import subprocess def main(): edgeRcPath = sys.argv[1] branch = sys.argv[2] navlist = sys.argv[3:] domain = 'https://console.stage.redhat.com' if 'prod' in branch: domain = 'https://console.redhat.com' if 'beta' in branch: domain += '/beta' purgeAssets = ['fed-mod...
30.965517
105
0.615813
105
898
5.180952
0.504762
0.038603
0.066176
0
0
0
0
0
0
0
0
0.005874
0.241648
898
28
106
32.071429
0.792952
0
0
0
0
0
0.26392
0.087973
0
0
0
0
0
1
0.038462
false
0
0.076923
0
0.115385
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9a61c54ca6366d9eef60d2491aa686f033543efd
3,261
py
Python
GAparsimony/util/config.py
misantam/GAparsimony
0241092dc5d7741b5546151ff829167588e4f703
[ "MIT" ]
null
null
null
GAparsimony/util/config.py
misantam/GAparsimony
0241092dc5d7741b5546151ff829167588e4f703
[ "MIT" ]
1
2021-12-05T10:24:55.000Z
2021-12-05T11:01:25.000Z
GAparsimony/util/config.py
misantam/GAparsimony
0241092dc5d7741b5546151ff829167588e4f703
[ "MIT" ]
null
null
null
################################################# #****************LINEAR MODELS******************# ################################################# CLASSIF_LOGISTIC_REGRESSION = {"C":{"range": (1., 100.), "type": 1}, "tol":{"range": (0.0001,0.9999), "type": 1}} ...
40.259259
90
0.340693
279
3,261
3.849462
0.200717
0.074488
0.102421
0.112663
0.6946
0.6946
0.680633
0.680633
0.659218
0.659218
0
0.085141
0.236431
3,261
81
91
40.259259
0.346185
0.113155
0
0.53125
0
0
0.240815
0.021248
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
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9a620af02d14a583cea144484597abc9077f8497
6,300
py
Python
gryphon/dashboards/handlers/status.py
qiquanzhijia/gryphon
7bb2c646e638212bd1352feb1b5d21536a5b918d
[ "Apache-2.0" ]
1,109
2019-06-20T19:23:27.000Z
2022-03-20T14:03:43.000Z
gryphon/dashboards/handlers/status.py
qiquanzhijia/gryphon
7bb2c646e638212bd1352feb1b5d21536a5b918d
[ "Apache-2.0" ]
63
2019-06-21T05:36:17.000Z
2021-05-26T21:08:15.000Z
gryphon/dashboards/handlers/status.py
qiquanzhijia/gryphon
7bb2c646e638212bd1352feb1b5d21536a5b918d
[ "Apache-2.0" ]
181
2019-06-20T19:42:05.000Z
2022-03-21T13:05:13.000Z
# -*- coding: utf-8 -*- from datetime import timedelta import logging from delorean import Delorean import tornado.web from gryphon.dashboards.handlers.admin_base import AdminBaseHandler from gryphon.lib.exchange import exchange_factory from gryphon.lib.models.order import Order from gryphon.lib.models.exchange impor...
33.157895
87
0.623968
690
6,300
5.381159
0.207246
0.032588
0.02801
0.021546
0.260167
0.214382
0.172906
0.16321
0.146512
0.114732
0
0.002682
0.289683
6,300
189
88
33.333333
0.827039
0.026508
0
0.131387
0
0
0.046073
0
0
0
0
0.005291
0
1
0.058394
false
0
0.080292
0
0.19708
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
9a63239cdeadf5547e515d79f10a494c6c3288e7
4,897
py
Python
setup.py
Hydar-Zartash/TF_regression
ac7cef4c1f248664b57139ae40c582ec80b2355f
[ "MIT" ]
null
null
null
setup.py
Hydar-Zartash/TF_regression
ac7cef4c1f248664b57139ae40c582ec80b2355f
[ "MIT" ]
null
null
null
setup.py
Hydar-Zartash/TF_regression
ac7cef4c1f248664b57139ae40c582ec80b2355f
[ "MIT" ]
null
null
null
import yfinance as yf import numpy as np import pandas as pd class StockSetup(): """ The object of this class includes a dataframe, a classifier trained on it and some associated test and prediction stats """ def __init__(self, ticker: str, target:int) -> None: """Initialize the ob...
44.926606
195
0.596488
669
4,897
4.328849
0.301943
0.140884
0.041436
0.029351
0.217541
0.166091
0.149171
0.139503
0.09047
0.064227
0
0.033791
0.256688
4,897
109
196
44.926606
0.761813
0.37329
0
0
0
0
0.128457
0
0
0
0
0
0
1
0.186047
false
0
0.069767
0
0.302326
0.046512
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
9a636c8c285701e4e227ff48aaa2926973c39b10
1,893
py
Python
netsuitesdk/api/custom_records.py
wolever/netsuite-sdk-py
1b1c21e2a8a532fdbf54915e7e9d30b8b5fc2d08
[ "MIT" ]
47
2019-08-15T21:36:36.000Z
2022-03-18T23:44:59.000Z
netsuitesdk/api/custom_records.py
wolever/netsuite-sdk-py
1b1c21e2a8a532fdbf54915e7e9d30b8b5fc2d08
[ "MIT" ]
52
2019-06-17T09:43:04.000Z
2022-03-22T05:00:53.000Z
netsuitesdk/api/custom_records.py
wolever/netsuite-sdk-py
1b1c21e2a8a532fdbf54915e7e9d30b8b5fc2d08
[ "MIT" ]
55
2019-06-02T22:18:01.000Z
2022-03-29T07:20:31.000Z
from collections import OrderedDict from .base import ApiBase import logging logger = logging.getLogger(__name__) class CustomRecords(ApiBase): SIMPLE_FIELDS = [ 'allowAttachments', 'allowInlineEditing', 'allowNumberingOverride', 'allowQuickSearch', 'altName', 'au...
25.581081
77
0.59588
139
1,893
7.899281
0.604317
0.03643
0.043716
0.029144
0
0
0
0
0
0
0
0
0.293185
1,893
73
78
25.931507
0.820628
0
0
0
0
0
0.348653
0.057581
0
0
0
0
0.015873
1
0.031746
false
0
0.047619
0
0.142857
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
9a64215513cbe7b2b8f68643b42ce0ea2da19bba
147
py
Python
api/schema/__init__.py
wepickheroes/wepickheroes.github.io
032c2a75ef058aaceb795ce552c52fbcc4cdbba3
[ "MIT" ]
3
2018-02-15T20:04:23.000Z
2018-09-29T18:13:55.000Z
api/schema/__init__.py
wepickheroes/wepickheroes.github.io
032c2a75ef058aaceb795ce552c52fbcc4cdbba3
[ "MIT" ]
5
2018-01-31T02:01:15.000Z
2018-05-11T04:07:32.000Z
api/schema/__init__.py
prattl/wepickheroes
032c2a75ef058aaceb795ce552c52fbcc4cdbba3
[ "MIT" ]
null
null
null
import graphene from schema.queries import Query from schema.mutations import Mutations schema = graphene.Schema(query=Query, mutation=Mutations)
24.5
57
0.836735
19
147
6.473684
0.421053
0.162602
0
0
0
0
0
0
0
0
0
0
0.102041
147
5
58
29.4
0.931818
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
9a6446896e65dc764ddad3e136039fc438fa2758
1,710
py
Python
airbox/commands/__init__.py
lewisjared/airbox
56bfdeb3e81bac47c80fbf249d9ead31c94a2139
[ "MIT" ]
null
null
null
airbox/commands/__init__.py
lewisjared/airbox
56bfdeb3e81bac47c80fbf249d9ead31c94a2139
[ "MIT" ]
null
null
null
airbox/commands/__init__.py
lewisjared/airbox
56bfdeb3e81bac47c80fbf249d9ead31c94a2139
[ "MIT" ]
null
null
null
""" This module contains a number of other commands that can be run via the cli. All classes in this submodule which inherit the baseclass `airbox.commands.base.Command` are automatically included in the possible commands to execute via the commandline. The commands can be called using their `name` property. """ from...
26.307692
118
0.729825
202
1,710
6.074257
0.475248
0.00815
0.00978
0.02282
0
0
0
0
0
0
0
0
0.20117
1,710
64
119
26.71875
0.898243
0.37193
0
0.060606
0
0
0
0
0
0
0
0.015625
0
1
0.090909
false
0.030303
0.30303
0
0.424242
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
1
0
0
0
0
0
1
0
0
0
0
2
9a67bbeeb8843ddedf058092d195c66fcbe342a3
1,881
py
Python
waveguide/waveguide_test.py
DentonGentry/gfiber-platform
2ba5266103aad0b7b676555eebd3c2061ddb8333
[ "Apache-2.0" ]
8
2017-09-24T03:11:46.000Z
2021-08-24T04:29:14.000Z
waveguide/waveguide_test.py
DentonGentry/gfiber-platform
2ba5266103aad0b7b676555eebd3c2061ddb8333
[ "Apache-2.0" ]
null
null
null
waveguide/waveguide_test.py
DentonGentry/gfiber-platform
2ba5266103aad0b7b676555eebd3c2061ddb8333
[ "Apache-2.0" ]
1
2017-10-05T23:04:10.000Z
2017-10-05T23:04:10.000Z
#!/usr/bin/python # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
28.938462
74
0.696438
255
1,881
4.988235
0.509804
0.056604
0.081761
0.069182
0.146226
0.078616
0.078616
0.078616
0.078616
0.078616
0
0.012314
0.179692
1,881
64
75
29.390625
0.812054
0.335991
0
0.235294
0
0
0.099187
0
0
0
0
0
0
1
0.088235
false
0.058824
0.088235
0
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9a67d0c9f6bb396b9d590ca653e1ee83e64bff97
3,421
py
Python
ava/actives/shell_injection.py
indeedsecurity/ava-ce
4483b301034a096b716646a470a6642b3df8ce61
[ "Apache-2.0" ]
2
2019-03-26T15:37:48.000Z
2020-01-03T03:47:30.000Z
ava/actives/shell_injection.py
indeedsecurity/ava-ce
4483b301034a096b716646a470a6642b3df8ce61
[ "Apache-2.0" ]
2
2021-03-25T21:27:09.000Z
2021-06-01T21:20:04.000Z
ava/actives/shell_injection.py
indeedsecurity/ava-ce
4483b301034a096b716646a470a6642b3df8ce61
[ "Apache-2.0" ]
null
null
null
import re from ava.common.check import _ValueCheck, _TimingCheck from ava.common.exception import InvalidFormatException # metadata name = __name__ description = "checks for shell injection" class ShellInjectionCheck(_ValueCheck): """ Checks for Shell Injection by executing the 'id' command. The payload use...
31.385321
117
0.501315
358
3,421
4.734637
0.290503
0.053097
0.057817
0.074336
0.381711
0.325664
0.325664
0.19705
0.145133
0.130973
0
0.025968
0.358375
3,421
108
118
31.675926
0.746241
0.296405
0
0.096774
0
0.016129
0.260927
0.031347
0
0
0
0
0
1
0.064516
false
0
0.048387
0
0.33871
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
7bd4127115e5637b5b3d7a956f2d5a45c70e9ad5
5,536
py
Python
matlab/FRCNN/For_LOC/python/Generate_Trecvid_Data.py
xyt2008/frcnn
32a559e881cceeba09a90ff45ad4aae1dabf92a1
[ "BSD-2-Clause" ]
198
2018-01-07T13:44:29.000Z
2022-03-21T12:06:16.000Z
matlab/FRCNN/For_LOC/python/Generate_Trecvid_Data.py
xyt2008/frcnn
32a559e881cceeba09a90ff45ad4aae1dabf92a1
[ "BSD-2-Clause" ]
18
2018-02-01T13:24:53.000Z
2021-04-26T10:51:47.000Z
matlab/FRCNN/For_LOC/python/Generate_Trecvid_Data.py
xyt2008/frcnn
32a559e881cceeba09a90ff45ad4aae1dabf92a1
[ "BSD-2-Clause" ]
82
2018-01-06T14:21:43.000Z
2022-02-16T09:39:58.000Z
import os import xml.etree.ElementTree as ET import numpy as np import scipy.sparse import scipy.io as sio import cPickle import subprocess import uuid def Get_Class_Ind(Class_INT): concepts = [] concepts.append(('Animal', [ 'n01443537', 'n01503061', 'n01639765', 'n01662784', 'n01674464', 'n01726692'...
37.659864
194
0.588873
676
5,536
4.616864
0.33432
0.019225
0.031721
0.051906
0.149311
0.126562
0.08619
0.069529
0.069529
0.069529
0
0.149387
0.233382
5,536
146
195
37.917808
0.586004
0.039017
0
0.035398
0
0
0.260837
0.073502
0
0
0
0
0.026549
0
null
null
0
0.070796
null
null
0.053097
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7bd4c7d5599bd575e062c27d1c3e19928097f821
5,967
py
Python
train.py
ProfessorHuang/2D-UNet-Pytorch
b3941e8dc0ac3e76b6eedb656f943f1bd66fa799
[ "MIT" ]
11
2020-12-09T10:38:47.000Z
2022-03-07T13:12:48.000Z
train.py
lllllllllllll-llll/2D-UNet-Pytorch
b3941e8dc0ac3e76b6eedb656f943f1bd66fa799
[ "MIT" ]
3
2020-11-24T02:23:02.000Z
2021-04-18T15:31:51.000Z
train.py
ProfessorHuang/2D-UNet-Pytorch
b3941e8dc0ac3e76b6eedb656f943f1bd66fa799
[ "MIT" ]
2
2021-04-07T06:17:46.000Z
2021-11-11T07:41:46.000Z
import argparse import logging import os import sys import numpy as np from tqdm import tqdm import time import torch import torch.nn as nn from torch import optim from torch.utils.tensorboard import SummaryWriter from torch.utils.data import DataLoader from models.unet import UNet from models.nested_unet import Nest...
37.062112
121
0.622256
755
5,967
4.761589
0.25298
0.027538
0.03783
0.01669
0.176356
0.091794
0.061196
0.042281
0
0
0
0.011316
0.244679
5,967
160
122
37.29375
0.786332
0.012066
0
0.016
0
0
0.153794
0
0
0
0
0
0
1
0.016
false
0
0.144
0
0.168
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
7bd5134da373e6ab71f1575fcac61884fd8fa7f9
41
py
Python
bot/run.py
anhhanuman/python-selenium
6dbb169282c44c50189447a1c9a303ae1a790a8b
[ "Apache-2.0" ]
null
null
null
bot/run.py
anhhanuman/python-selenium
6dbb169282c44c50189447a1c9a303ae1a790a8b
[ "Apache-2.0" ]
5
2021-09-02T13:02:25.000Z
2021-09-20T04:58:37.000Z
bot/run.py
anhhanuman/python-selenium
6dbb169282c44c50189447a1c9a303ae1a790a8b
[ "Apache-2.0" ]
null
null
null
from booking.constants import myConstant
20.5
40
0.878049
5
41
7.2
1
0
0
0
0
0
0
0
0
0
0
0
0.097561
41
1
41
41
0.972973
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
7bd7021be4efb1d2b67a9ea0b8c76a83b68b38ed
411
py
Python
geoxml.py
ssubramanian90/UMich-Python-coursera
35aa6b7d939852e7e9f1751d6a7b369910c5a572
[ "bzip2-1.0.6" ]
null
null
null
geoxml.py
ssubramanian90/UMich-Python-coursera
35aa6b7d939852e7e9f1751d6a7b369910c5a572
[ "bzip2-1.0.6" ]
null
null
null
geoxml.py
ssubramanian90/UMich-Python-coursera
35aa6b7d939852e7e9f1751d6a7b369910c5a572
[ "bzip2-1.0.6" ]
null
null
null
import urllib import xml.etree.ElementTree as ET address = raw_input('Enter location: ') url = address print 'Retrieving', url uh = urllib.urlopen(url) data = uh.read() print 'Retrieved',len(data),'characters' tree = ET.fromstring(data) sumcount=count=0 counts = tree.findall('.//count') for i in counts: co...
17.125
40
0.690998
59
411
4.79661
0.627119
0
0
0
0
0
0
0
0
0
0
0.005764
0.155718
411
23
41
17.869565
0.809798
0
0
0
0
0
0.158151
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7bd7513f32c35775cd41faee3dba10cf9bfca50a
882
py
Python
app/mod_tweepy/controllers.py
cbll/SocialDigger
177a7b5bb1b295722e8d281a8f33678a02bd5ab0
[ "Apache-2.0" ]
3
2016-01-28T20:35:46.000Z
2020-03-08T08:49:07.000Z
app/mod_tweepy/controllers.py
cbll/SocialDigger
177a7b5bb1b295722e8d281a8f33678a02bd5ab0
[ "Apache-2.0" ]
null
null
null
app/mod_tweepy/controllers.py
cbll/SocialDigger
177a7b5bb1b295722e8d281a8f33678a02bd5ab0
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask.ext.tweepy import Tweepy app = Flask(__name__) app.config.setdefault('TWEEPY_CONSUMER_KEY', 'sve32G2LtUhvgyj64J0aaEPNk') app.config.setdefault('TWEEPY_CONSUMER_SECRET', '0z4NmfjET4BrLiOGsspTkVKxzDK1Qv6Yb2oiHpZC9Vi0T9cY2X') app.config.setdefault('TWEEPY_ACCESS_TOKEN_KEY', '1425531373-...
38.347826
102
0.794785
100
882
6.76
0.46
0.053254
0.112426
0.147929
0.204142
0.106509
0
0
0
0
0
0.045623
0.080499
882
22
103
40.090909
0.787916
0
0
0
0
0
0.414302
0.273553
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.352941
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
7bd7c0bcead87f462866473027496b7fc3302170
128
py
Python
sftp_sync/__init__.py
bluec0re/python-sftpsync
f68a8cb47ff38cdf883d93c448cf1bcc9df7f532
[ "MIT" ]
3
2017-06-09T09:23:03.000Z
2021-12-10T00:52:27.000Z
sftp_sync/__init__.py
bluec0re/python-sftpsync
f68a8cb47ff38cdf883d93c448cf1bcc9df7f532
[ "MIT" ]
null
null
null
sftp_sync/__init__.py
bluec0re/python-sftpsync
f68a8cb47ff38cdf883d93c448cf1bcc9df7f532
[ "MIT" ]
null
null
null
from __future__ import absolute_import from .__main__ import main from .sftp import * from .sync import * __version__ = '0.6'
16
38
0.765625
18
128
4.722222
0.555556
0.235294
0
0
0
0
0
0
0
0
0
0.018692
0.164063
128
7
39
18.285714
0.775701
0
0
0
0
0
0.023438
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
7bd8ac16582450f85a23c7ef200dbfd91aa09837
2,636
py
Python
core/predictor/RF/rf_predict.py
LouisYZK/dds-avec2019
9a0ee86bddf6c23460a689bde8d75302f1d5aa45
[ "BSD-2-Clause" ]
8
2020-02-28T04:04:30.000Z
2021-12-28T07:06:06.000Z
core/predictor/RF/rf_predict.py
LouisYZK/dds-avec2019
9a0ee86bddf6c23460a689bde8d75302f1d5aa45
[ "BSD-2-Clause" ]
1
2021-04-18T09:35:13.000Z
2021-04-18T09:35:13.000Z
core/predictor/RF/rf_predict.py
LouisYZK/dds-avec2019
9a0ee86bddf6c23460a689bde8d75302f1d5aa45
[ "BSD-2-Clause" ]
2
2020-03-26T21:42:15.000Z
2021-09-09T12:50:41.000Z
"""Simple predictor using random forest """ import pandas as pd import numpy as np import math from sklearn.ensemble import RandomForestRegressor from sklearn.ensemble import RandomForestClassifier from sklearn import preprocessing from sklearn.metrics import mean_absolute_error from sklearn.metrics import f1_score fr...
30.651163
90
0.638088
359
2,636
4.504178
0.339833
0.047619
0.022263
0.030921
0.084106
0.084106
0.084106
0.055659
0.055659
0.055659
0
0.009274
0.263657
2,636
86
91
30.651163
0.823802
0.074734
0
0.116667
0
0
0.046394
0.018979
0
0
0
0
0
1
0.15
false
0.05
0.316667
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7bd8f52d214214860defef756924562c2d718956
2,135
py
Python
speed/__init__.py
Astrochamp/speed
e17b2d1de6590d08e5cfddf875b4445f20c1e08a
[ "MIT" ]
1
2022-02-12T18:43:43.000Z
2022-02-12T18:43:43.000Z
speed/__init__.py
Astrochamp/speed
e17b2d1de6590d08e5cfddf875b4445f20c1e08a
[ "MIT" ]
null
null
null
speed/__init__.py
Astrochamp/speed
e17b2d1de6590d08e5cfddf875b4445f20c1e08a
[ "MIT" ]
null
null
null
def showSpeed(func, r, *args): '''Usage: showSpeed(function, runs) You can also pass arguments into <function> like so: showSpeed(function, runs, <other>, <args>, <here> ...) showSpeed() prints the average execution time of <function> over <runs> runs ''' def formatted(f): import re ...
31.865672
92
0.562061
266
2,135
4.383459
0.323308
0.06175
0.06175
0.024014
0.67753
0.634648
0.634648
0.634648
0.634648
0.557461
0
0.004024
0.301639
2,135
66
93
32.348485
0.778001
0.209368
0
0.679245
0
0
0.038953
0.034084
0
0
0
0
0
1
0.132075
false
0
0.09434
0
0.339623
0.018868
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
7bd9a84e5c6f84dbd90d1bc72cc33fccf0f2c06c
9,106
py
Python
polygonize.py
yaramohajerani/GL_learning
aa8d644024e48ba3e68398050f259b61d0660a2e
[ "MIT" ]
7
2021-03-04T15:43:21.000Z
2021-07-08T08:42:23.000Z
polygonize.py
yaramohajerani/GL_learning
aa8d644024e48ba3e68398050f259b61d0660a2e
[ "MIT" ]
null
null
null
polygonize.py
yaramohajerani/GL_learning
aa8d644024e48ba3e68398050f259b61d0660a2e
[ "MIT" ]
2
2021-03-11T12:04:42.000Z
2021-04-20T16:33:31.000Z
#!/usr/bin/env python u""" polygonize.py Yara Mohajerani (Last update 09/2020) Read output predictions and convert to shapefile lines """ import os import sys import rasterio import numpy as np import getopt import shapefile from skimage.measure import find_contours from shapely.geometry import Polygon,LineString,Poin...
32.992754
121
0.647595
1,509
9,106
3.795891
0.206759
0.021997
0.026187
0.015712
0.261697
0.185754
0.155203
0.148918
0.112954
0.09602
0
0.01023
0.184164
9,106
275
122
33.112727
0.760802
0.250494
0
0.16129
0
0.005376
0.143216
0.028998
0
0
0
0
0
1
0.005376
false
0
0.043011
0
0.048387
0.005376
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
7bdb2f5c5a190e7161ceacb56d31dd8753fd3925
4,573
py
Python
test_autofit/graphical/regression/test_linear_regression.py
rhayes777/AutoFit
f5d769755b85a6188ec1736d0d754f27321c2f06
[ "MIT" ]
null
null
null
test_autofit/graphical/regression/test_linear_regression.py
rhayes777/AutoFit
f5d769755b85a6188ec1736d0d754f27321c2f06
[ "MIT" ]
null
null
null
test_autofit/graphical/regression/test_linear_regression.py
rhayes777/AutoFit
f5d769755b85a6188ec1736d0d754f27321c2f06
[ "MIT" ]
null
null
null
import numpy as np import pytest from autofit.graphical import ( EPMeanField, LaplaceOptimiser, EPOptimiser, Factor, ) from autofit.messages import FixedMessage, NormalMessage np.random.seed(1) prior_std = 10. error_std = 1. a = np.array([[-1.3], [0.7]]) b = np.array([-0.5]) n_obs = 100 n_features,...
26.9
84
0.659086
682
4,573
4.073314
0.159824
0.079194
0.059395
0.064795
0.37653
0.342693
0.25594
0.25594
0.212023
0.212023
0
0.020306
0.213864
4,573
170
85
26.9
0.752434
0.003499
0
0.24812
0
0
0.018218
0
0
0
0
0
0.052632
1
0.090226
false
0
0.030075
0.030075
0.172932
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
7bdbfbdb118df696ee04cd30b0904cea6a77354a
1,716
py
Python
src/linear/linear.py
RaulMurillo/cpp-torch
30d0ee38c20f389e4b996d821952a48cccc70789
[ "MIT" ]
null
null
null
src/linear/linear.py
RaulMurillo/cpp-torch
30d0ee38c20f389e4b996d821952a48cccc70789
[ "MIT" ]
null
null
null
src/linear/linear.py
RaulMurillo/cpp-torch
30d0ee38c20f389e4b996d821952a48cccc70789
[ "MIT" ]
null
null
null
import math from torch import nn import torch import torch.nn.functional as F import linear_cpu as linear class LinearFunction(torch.autograd.Function): @staticmethod def forward(ctx, input, weights, bias, params): is_bias = int(params[0]) outputs = linear.forward(input, weights, bias, is_bi...
29.586207
79
0.666084
221
1,716
4.950226
0.294118
0.04936
0.058501
0.060329
0.133455
0.058501
0
0
0
0
0
0.006061
0.230769
1,716
57
80
30.105263
0.822727
0
0
0.102564
0
0
0
0
0
0
0
0
0
1
0.128205
false
0
0.128205
0.025641
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7bdf6ec04e7754ae150125e027e057b6d43b24d9
11,907
py
Python
object_files_api/files_api.py
ndlib/mellon-manifest-pipeline
aa90494e73fbc30ce701771ac653d28d533217db
[ "Apache-2.0" ]
1
2021-06-27T15:16:13.000Z
2021-06-27T15:16:13.000Z
object_files_api/files_api.py
ndlib/marble-manifest-pipeline
abc036e4c81a8a5e938373a43153e2492a17cbf8
[ "Apache-2.0" ]
8
2019-11-05T18:58:23.000Z
2021-09-03T14:54:42.000Z
object_files_api/files_api.py
ndlib/mellon-manifest-pipeline
aa90494e73fbc30ce701771ac653d28d533217db
[ "Apache-2.0" ]
null
null
null
""" Files API """ import boto3 import os import io from datetime import datetime, timedelta import json import time from s3_helpers import write_s3_json, read_s3_json, delete_s3_key from api_helpers import json_serial from search_files import crawl_available_files, update_pdf_fields from dynamo_helpers import add_file_...
62.340314
259
0.646342
1,505
11,907
4.780731
0.163455
0.033357
0.022516
0.015566
0.361084
0.261015
0.218485
0.148436
0.105073
0.082557
0
0.004741
0.256068
11,907
190
260
62.668421
0.807519
0.099773
0
0.117647
0
0
0.12948
0.05076
0
0
0
0
0
1
0.047059
false
0
0.076471
0
0.164706
0.011765
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
7be095f1c9c4b3f5f33d92d1c96cc497d62846c5
40,240
py
Python
sampledb/frontend/projects.py
NicolasCARPi/sampledb
d6fd0f4d28d05010d7e0c022fbf2576e25435077
[ "MIT" ]
null
null
null
sampledb/frontend/projects.py
NicolasCARPi/sampledb
d6fd0f4d28d05010d7e0c022fbf2576e25435077
[ "MIT" ]
null
null
null
sampledb/frontend/projects.py
NicolasCARPi/sampledb
d6fd0f4d28d05010d7e0c022fbf2576e25435077
[ "MIT" ]
null
null
null
# coding: utf-8 """ """ import flask import flask_login import json from flask_babel import _ from . import frontend from .. import logic from ..logic.object_permissions import Permissions from ..logic.security_tokens import verify_token from ..logic.languages import get_languages, get_language, get_language_by_lang...
56.437588
256
0.675149
4,720
40,240
5.4375
0.060593
0.060316
0.033041
0.034366
0.672823
0.619209
0.542139
0.490395
0.448899
0.430859
0
0.001411
0.242768
40,240
712
257
56.516854
0.840865
0.008921
0
0.475336
0
0.001495
0.127377
0.009432
0
0
0
0
0
1
0.008969
false
0.005979
0.020927
0
0.119581
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
7be58215b629ccdaed1b12b4ee8ac016d5bf374b
1,474
py
Python
setup.py
caalle/caaalle
3653155338fefde73579508ee83905a8ad8e3924
[ "Apache-2.0" ]
null
null
null
setup.py
caalle/caaalle
3653155338fefde73579508ee83905a8ad8e3924
[ "Apache-2.0" ]
4
2021-04-26T18:42:38.000Z
2021-04-26T18:42:41.000Z
setup.py
caalle/caaalle
3653155338fefde73579508ee83905a8ad8e3924
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import codecs import os import re from setuptools import setup with open('README.md', 'r') as f: readme = f.read() here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): with codecs.open(os.path.join(here, *parts), 'r') as fp: return fp.read() def find_version(*f...
26.321429
68
0.643148
177
1,474
5.101695
0.519774
0.084164
0.110742
0.115172
0
0
0
0
0
0
0
0.012007
0.208955
1,474
55
69
26.8
0.762436
0.014247
0
0
0
0
0.263774
0
0
0
0
0
0
1
0.042553
false
0
0.085106
0
0.170213
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
7be7ae3f178cdb0ca2b090e6df4678e140e34e75
311
py
Python
Assets/Code/Python/src/python.py
Ross-Morgan/Logic-Gate-Visualisation
01976248ef66837ec2009f18533fd0aab090a8b9
[ "BSD-3-Clause" ]
null
null
null
Assets/Code/Python/src/python.py
Ross-Morgan/Logic-Gate-Visualisation
01976248ef66837ec2009f18533fd0aab090a8b9
[ "BSD-3-Clause" ]
null
null
null
Assets/Code/Python/src/python.py
Ross-Morgan/Logic-Gate-Visualisation
01976248ef66837ec2009f18533fd0aab090a8b9
[ "BSD-3-Clause" ]
null
null
null
def or_gate(a:int, b:int): return a | b def and_gate(a:int, b:int): return a & b def nor_gate(a:int, b:int): return 1 - (a | b) def nand_gate(a:int, b:int): return 1 - (a | b) def xor_gate(a:int, b:int): return a ^ b def xnor_gate(a:int, b:int): return 1 - (a ^ b)
17.277778
29
0.533762
63
311
2.539683
0.206349
0.1875
0.3
0.3375
0.8625
0.8625
0.8625
0.8625
0.8625
0.3
0
0.013825
0.302251
311
17
30
18.294118
0.723502
0
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
0
0
0
null
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
10
7be827f0693117abffb3e3ef853dcd8e6d5807a0
10,522
py
Python
kevlar/tests/test_novel.py
johnsmith2077/kevlar
3ed06dae62479e89ccd200391728c416d4df8052
[ "MIT" ]
24
2016-12-07T07:59:09.000Z
2019-03-11T02:05:36.000Z
kevlar/tests/test_novel.py
johnsmith2077/kevlar
3ed06dae62479e89ccd200391728c416d4df8052
[ "MIT" ]
325
2016-12-07T07:37:17.000Z
2019-03-12T19:01:40.000Z
kevlar/tests/test_novel.py
standage/kevlar
622d1869266550422e91a60119ddc7261eea434a
[ "MIT" ]
8
2017-08-17T01:37:39.000Z
2019-03-01T16:17:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # ----------------------------------------------------------------------------- # Copyright (c) 2016 The Regents of the University of California # # This file is part of kevlar (http://github.com/dib-lab/kevlar) and is # licensed under the MIT license: see LICENSE. # ----...
37.180212
79
0.585535
1,306
10,522
4.64242
0.199081
0.02639
0.027874
0.040739
0.498763
0.427016
0.395349
0.381824
0.351146
0.331024
0
0.02712
0.229044
10,522
282
80
37.312057
0.720291
0.035735
0
0.350427
0
0
0.227089
0.069449
0
0
0
0
0.128205
1
0.051282
false
0
0.055556
0
0.106838
0.012821
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
7be972ac4586def48187bfcf50e95c9e16542c4d
361
py
Python
Python Advanced Retake Exam - 16 Dec 2020/Problem 3- Magic triangle - Pascal.py
DiyanKalaydzhiev23/Advanced---Python
ed2c60bb887c49e5a87624719633e2b8432f6f6b
[ "MIT" ]
null
null
null
Python Advanced Retake Exam - 16 Dec 2020/Problem 3- Magic triangle - Pascal.py
DiyanKalaydzhiev23/Advanced---Python
ed2c60bb887c49e5a87624719633e2b8432f6f6b
[ "MIT" ]
null
null
null
Python Advanced Retake Exam - 16 Dec 2020/Problem 3- Magic triangle - Pascal.py
DiyanKalaydzhiev23/Advanced---Python
ed2c60bb887c49e5a87624719633e2b8432f6f6b
[ "MIT" ]
null
null
null
def get_magic_triangle(n): triangle = [[1], [1, 1]] for _ in range(2, n): row = [1] last_row = triangle[-1] for i in range(1, len(last_row)): num = last_row[i-1] + last_row[i] row.append(num) row.append(1) triangle.append(row) ret...
21.235294
46
0.509695
51
361
3.431373
0.352941
0.16
0.182857
0
0
0
0
0
0
0
0
0.04329
0.360111
361
16
47
22.5625
0.714286
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7bea7db6a9ed79dea66853c2fd9ed8df8241cc8b
1,353
py
Python
bot.py
egor5q/pvp-combat
42d0f9df14e35c408deb7a360a9f7544ceae7dd7
[ "MIT" ]
null
null
null
bot.py
egor5q/pvp-combat
42d0f9df14e35c408deb7a360a9f7544ceae7dd7
[ "MIT" ]
null
null
null
bot.py
egor5q/pvp-combat
42d0f9df14e35c408deb7a360a9f7544ceae7dd7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import telebot import time import random import threading from emoji import emojize from telebot import types from pymongo import MongoClient import traceback token = os.environ['TELEGRAM_TOKEN'] bot = telebot.TeleBot(token) #client=MongoClient(os.environ['database']) #db=client. #u...
22.932203
115
0.625277
164
1,353
5.036585
0.47561
0.053269
0.039952
0.041162
0
0
0
0
0
0
0
0.016699
0.247598
1,353
58
116
23.327586
0.794695
0.064302
0
0
0
0
0.08254
0
0
0
0
0
0
1
0.111111
false
0
0.25
0.055556
0.416667
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
7beab3658ca8052cfa8c2cfea3b8cd3bd3c9a157
262
py
Python
py4mc/__init__.py
capslock321/py4mc
aad43d33f2ab1d264f0b86a84c80823309677994
[ "MIT" ]
null
null
null
py4mc/__init__.py
capslock321/py4mc
aad43d33f2ab1d264f0b86a84c80823309677994
[ "MIT" ]
null
null
null
py4mc/__init__.py
capslock321/py4mc
aad43d33f2ab1d264f0b86a84c80823309677994
[ "MIT" ]
null
null
null
from .api import MojangApi from .dispatcher import Dispatch from .exceptions import ( ApiException, ResourceNotFound, InternalServerException, UserNotFound, ) __version__ = "0.0.1a" __license__ = "MIT" __author__ = "capslock321"
17.466667
33
0.698473
23
262
7.434783
0.782609
0
0
0
0
0
0
0
0
0
0
0.029557
0.225191
262
14
34
18.714286
0.812808
0
0
0
0
0
0.080645
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7bed1d2243d33ac3902ca09a4b56c1ae1c77465e
553
py
Python
server/players/query.py
kfields/django-arcade
24df3d43dde2d69df333529d8790507fb1f5fcf1
[ "MIT" ]
1
2021-10-03T05:44:32.000Z
2021-10-03T05:44:32.000Z
server/players/query.py
kfields/django-arcade
24df3d43dde2d69df333529d8790507fb1f5fcf1
[ "MIT" ]
null
null
null
server/players/query.py
kfields/django-arcade
24df3d43dde2d69df333529d8790507fb1f5fcf1
[ "MIT" ]
null
null
null
from loguru import logger from channels.db import database_sync_to_async from schema.base import query from .models import Player from .schemata import PlayerConnection @query.field("allPlayers") @database_sync_to_async def resolve_all_players(root, info, after='', before='', first=0, last=0): players = [p for ...
24.043478
74
0.755877
77
553
5.25974
0.519481
0.088889
0.103704
0.140741
0.14321
0.14321
0
0
0
0
0
0.004202
0.139241
553
22
75
25.136364
0.846639
0
0
0.125
0
0
0.028933
0
0
0
0
0
0
1
0.125
false
0
0.3125
0.0625
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7bee6b98a8502317f53e2986edd1dc16f78c2ac7
50,039
py
Python
simleague/simleague.py
Kuro-Rui/flare-cogs
f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d
[ "MIT" ]
38
2021-03-07T17:13:10.000Z
2022-02-28T19:50:00.000Z
simleague/simleague.py
Kuro-Rui/flare-cogs
f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d
[ "MIT" ]
44
2021-03-12T19:13:32.000Z
2022-03-18T10:20:52.000Z
simleague/simleague.py
Kuro-Rui/flare-cogs
f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d
[ "MIT" ]
33
2021-03-08T18:59:59.000Z
2022-03-23T10:57:46.000Z
import asyncio import logging import random import time from abc import ABC from typing import Literal, Optional import aiohttp import discord from redbot.core import Config, bank, checks, commands from redbot.core.utils.chat_formatting import box from redbot.core.utils.menus import DEFAULT_CONTROLS, menu from tabulat...
43.85539
142
0.428846
4,680
50,039
4.551068
0.113675
0.033804
0.029297
0.037185
0.513123
0.476407
0.43387
0.392225
0.35997
0.352364
0
0.028665
0.465277
50,039
1,140
143
43.89386
0.767276
0.006915
0
0.457407
0
0.00463
0.074023
0.002471
0
0
0.000324
0
0
1
0.002778
false
0.001852
0.015741
0
0.056481
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
7befce5f0d88c105c0447661c3338248d03f3ae9
2,118
py
Python
7_neural_networks/4_DeepLearning2.py
edrmonteiro/DataSciencePython
0a35fb085bc0b98b33e083d0e1b113a04caa3aac
[ "MIT" ]
null
null
null
7_neural_networks/4_DeepLearning2.py
edrmonteiro/DataSciencePython
0a35fb085bc0b98b33e083d0e1b113a04caa3aac
[ "MIT" ]
null
null
null
7_neural_networks/4_DeepLearning2.py
edrmonteiro/DataSciencePython
0a35fb085bc0b98b33e083d0e1b113a04caa3aac
[ "MIT" ]
null
null
null
""" Deep Learning """ import pandas as pd from keras.models import Sequential from keras.layers import Dense from sklearn.model_selection import train_test_split from sklearn.metrics import confusion_matrix from sklearn.preprocessing import LabelEncoder, OneHotEncoder from sklearn.preprocessing import StandardScaler f...
29.830986
119
0.767705
316
2,118
4.984177
0.452532
0.019048
0.024762
0.04381
0.07873
0.07873
0.07873
0.07873
0.07873
0.07873
0
0.015021
0.119924
2,118
70
120
30.257143
0.829936
0.1983
0
0
0
0
0.062649
0
0
0
0
0
0
1
0
false
0.02439
0.219512
0
0.219512
0.02439
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
7bf26d67b6d552692974b4958df2a46110802ae6
1,529
py
Python
src/python_settings/python_settings.py
tomatze/opendihu-webapp
0f08bdeb82348a1e30fa44db1ac3b9b1606f1da1
[ "MIT" ]
17
2018-11-25T19:29:34.000Z
2021-09-20T04:46:22.000Z
src/python_settings/python_settings.py
tomatze/opendihu-webapp
0f08bdeb82348a1e30fa44db1ac3b9b1606f1da1
[ "MIT" ]
1
2020-11-12T15:15:58.000Z
2020-12-29T15:29:24.000Z
src/python_settings/python_settings.py
tomatze/opendihu-webapp
0f08bdeb82348a1e30fa44db1ac3b9b1606f1da1
[ "MIT" ]
4
2018-10-17T12:18:10.000Z
2021-05-28T13:24:20.000Z
import re # import all settings-modules here, so we can only import this module to get them all from python_settings.settings_activatable import * from python_settings.settings_child_placeholder import * from python_settings.settings_choice import * from python_settings.settings_comment import * from python_settings.s...
39.205128
120
0.695226
196
1,529
5.244898
0.392857
0.155642
0.157588
0.227626
0.280156
0
0
0
0
0
0
0.011008
0.2276
1,529
38
121
40.236842
0.859441
0.258339
0
0
0
0
0.025709
0
0
0
0
0
0
1
0.074074
false
0
0.37037
0.037037
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
7bf3d0583faad7a302993fc30d577771cb1e654a
460
py
Python
titan/abstracts/decorator.py
DeSireFire/titans
9194950694084a7cbc6434dfec0ecb2e755f0cdf
[ "Apache-2.0" ]
17
2020-03-14T01:08:07.000Z
2020-12-26T08:20:14.000Z
titan/abstracts/decorator.py
DeSireFire/titans
9194950694084a7cbc6434dfec0ecb2e755f0cdf
[ "Apache-2.0" ]
4
2020-12-05T08:50:55.000Z
2022-02-27T06:48:21.000Z
titan/abstracts/decorator.py
DeSireFire/titans
9194950694084a7cbc6434dfec0ecb2e755f0cdf
[ "Apache-2.0" ]
1
2020-05-24T06:57:03.000Z
2020-05-24T06:57:03.000Z
# -*- coding: utf-8 -*- import timeit from functools import wraps from titan.manages.global_manager import GlobalManager def run_time_sum(func): @wraps(func) def wrapper(*args, **kwargs): start = timeit.default_timer() __func = func(*args, **kwargs) end = timeit.default_timer() ...
25.555556
70
0.630435
56
460
5.017857
0.607143
0.049822
0.128114
0
0
0
0
0
0
0
0
0.005731
0.241304
460
17
71
27.058824
0.799427
0.045652
0
0
0
0
0.032037
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.538462
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7bf5036dc7b11f3015385fa7ebed58f2c40e9c71
262
py
Python
src/cs2mako/patterns.py
eventbrite/cs2mako
163affcc764a574b4af543c3520b7f345992973a
[ "MIT" ]
null
null
null
src/cs2mako/patterns.py
eventbrite/cs2mako
163affcc764a574b4af543c3520b7f345992973a
[ "MIT" ]
null
null
null
src/cs2mako/patterns.py
eventbrite/cs2mako
163affcc764a574b4af543c3520b7f345992973a
[ "MIT" ]
2
2015-04-03T05:35:36.000Z
2021-09-08T11:48:27.000Z
# Copyright (c) 2014 Eventbrite, Inc. All rights reserved. # See "LICENSE" file for license. import re open_r_str = r'\<\?cs\s*([a-zA-Z]+)([:]|\s)' close_r_str = r'\<\?cs\s*/([a-zA-Z]+)\s*\?\>' open_r = re.compile(open_r_str) close_r = re.compile(close_r_str)
26.2
58
0.637405
49
262
3.204082
0.489796
0.101911
0.101911
0.089172
0.165605
0.165605
0.165605
0.165605
0.165605
0
0
0.017316
0.118321
262
9
59
29.111111
0.662338
0.335878
0
0
0
0
0.327485
0.327485
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7bf5401a73cd65b2b3dab4a303b9fc867d22f877
3,142
py
Python
presta_connect.py
subteno-it/presta_connect
7cc8f2f915b28ada40a03573651a3558e6503004
[ "MIT" ]
null
null
null
presta_connect.py
subteno-it/presta_connect
7cc8f2f915b28ada40a03573651a3558e6503004
[ "MIT" ]
null
null
null
presta_connect.py
subteno-it/presta_connect
7cc8f2f915b28ada40a03573651a3558e6503004
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Subteno IT # License MIT License import requests import xmltodict import string import random import io class PrestaConnectError(RuntimeError): pass class PrestaConnect: _BOUNDARY_CHARS = string.digits + string.ascii_letters _STATUSES = (200, 201) def __ini...
34.911111
131
0.579885
380
3,142
4.660526
0.313158
0.039526
0.047995
0.038396
0.117448
0.097685
0.041784
0.041784
0
0
0
0.008014
0.285169
3,142
90
132
34.911111
0.780499
0.083386
0
0.030769
0
0
0.069841
0
0
0
0
0
0
1
0.169231
false
0.015385
0.076923
0.076923
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7bf8224c1d14572f51a3d9141d24b9fbd1be25c1
2,884
py
Python
blender/SCAFFOLDER_settings.py
nodtem66/Scaffolder
c2b89e981192f61b028e1e8780a01894b1e34494
[ "MIT" ]
8
2019-12-24T17:28:03.000Z
2022-03-23T02:49:28.000Z
blender/SCAFFOLDER_settings.py
nodtem66/Scaffolder
c2b89e981192f61b028e1e8780a01894b1e34494
[ "MIT" ]
9
2019-12-27T18:10:05.000Z
2021-08-04T15:18:47.000Z
blender/SCAFFOLDER_settings.py
nodtem66/Scaffolder
c2b89e981192f61b028e1e8780a01894b1e34494
[ "MIT" ]
null
null
null
import bpy from bpy.types import Panel from bpy.props import * import math default_surface_names = [ ("bcc", "bcc", "", 1), ("schwarzp", "schwarzp", "", 2), ("schwarzd", "schwarzd", "", 3), ("gyroid", "gyroid", "", 4), ("double-p", "double-p", "", 5), ("double-d", "double-d", "", 6), ("doub...
40.055556
106
0.645631
372
2,884
4.884409
0.311828
0.019813
0.023115
0.022014
0.119978
0.119978
0.100165
0.100165
0.048431
0
0
0.037399
0.184119
2,884
72
107
40.055556
0.734807
0
0
0
0
0
0.159099
0
0
0
0
0
0
1
0.066667
false
0.016667
0.066667
0.033333
0.566667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7bf8ba88150b609b31fa7978009e2b6cda410d96
1,702
py
Python
examples/run_burgers.py
s274001/PINA
beb33f0da20581338c46f0c525775904b35a1130
[ "MIT" ]
4
2022-02-16T14:52:55.000Z
2022-03-17T13:31:42.000Z
examples/run_burgers.py
s274001/PINA
beb33f0da20581338c46f0c525775904b35a1130
[ "MIT" ]
3
2022-02-17T08:57:42.000Z
2022-03-28T08:41:53.000Z
examples/run_burgers.py
s274001/PINA
beb33f0da20581338c46f0c525775904b35a1130
[ "MIT" ]
7
2022-02-13T14:35:00.000Z
2022-03-28T08:51:11.000Z
import argparse import torch from torch.nn import Softplus from pina import PINN, Plotter from pina.model import FeedForward from problems.burgers import Burgers1D class myFeature(torch.nn.Module): """ Feature: sin(pi*x) """ def __init__(self, idx): super(myFeature, self).__init__() s...
28.366667
79
0.636898
212
1,702
4.90566
0.45283
0.042308
0.021154
0.038462
0.080769
0.080769
0.080769
0.080769
0.080769
0
0
0.024187
0.222679
1,702
59
80
28.847458
0.761905
0.010576
0
0
0
0
0.092326
0
0
0
0
0
0
1
0.044444
false
0
0.133333
0.022222
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
7bf92b8ac984ff1d4af8bc11028ce720f6dccb7d
2,072
py
Python
questions/cousins-in-binary-tree/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
141
2017-12-12T21:45:53.000Z
2022-03-25T07:03:39.000Z
questions/cousins-in-binary-tree/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
32
2015-10-05T14:09:52.000Z
2021-05-30T10:28:41.000Z
questions/cousins-in-binary-tree/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
56
2015-09-30T05:23:28.000Z
2022-03-08T07:57:11.000Z
""" In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1. Two nodes of a binary tree are cousins if they have the same depth, but have different parents. We are given the root of a binary tree with unique values, and the values x and y of two different nodes in the tree. Re...
28
117
0.531853
329
2,072
3.325228
0.246201
0.032907
0.040219
0.030165
0.23766
0.173675
0.173675
0.113346
0.113346
0.113346
0
0.059848
0.362934
2,072
74
118
28
0.768939
0.446911
0
0.392857
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.25
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
7bfad01ae563f31b06389bcaffa8bf4fb786658a
456
py
Python
utility_ai/models/action.py
TomasMaciulis/Utility-AI-API
29144e4b5dc038854335bd11ed3b072ba1231ebc
[ "MIT" ]
null
null
null
utility_ai/models/action.py
TomasMaciulis/Utility-AI-API
29144e4b5dc038854335bd11ed3b072ba1231ebc
[ "MIT" ]
null
null
null
utility_ai/models/action.py
TomasMaciulis/Utility-AI-API
29144e4b5dc038854335bd11ed3b072ba1231ebc
[ "MIT" ]
null
null
null
from .configuration_entry import ConfigurationEntry from utility_ai.traits.utility_score_trait import UtilityScoreTrait class Action(ConfigurationEntry, UtilityScoreTrait): def __init__(self, name: str, description: dict): ConfigurationEntry.__init__(self, name, description) UtilityScoreTrait.__i...
30.4
67
0.699561
41
456
7.317073
0.585366
0.08
0.08
0
0
0
0
0
0
0
0
0
0.230263
456
14
68
32.571429
0.854701
0
0
0
0
0
0.046053
0.046053
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7bfb0d85a9d2727156196fca82066ec05a53a3a0
1,119
py
Python
widdy/styles.py
ubunatic/widdy
1e5923d90010f27e352ad3eebb670c09752dd86b
[ "MIT" ]
2
2018-05-30T17:23:46.000Z
2019-08-29T20:32:27.000Z
widdy/styles.py
ubunatic/widdy
1e5923d90010f27e352ad3eebb670c09752dd86b
[ "MIT" ]
null
null
null
widdy/styles.py
ubunatic/widdy
1e5923d90010f27e352ad3eebb670c09752dd86b
[ "MIT" ]
null
null
null
from collections import namedtuple Style = namedtuple('Style', 'name fg bg') default_pal = { Style('inv-black', 'black', 'light gray'), Style('green-bold', 'dark green,bold', ''), Style('red-bold', 'dark red,bold', ''), Style('blue-bold', 'dark blue,bold', ''), St...
29.447368
61
0.489723
116
1,119
4.655172
0.189655
0.1
0.077778
0.074074
0
0
0
0
0
0
0
0
0.319929
1,119
37
62
30.243243
0.709593
0
0
0
0
0
0.323503
0
0
0
0
0
0
1
0
false
0
0.033333
0
0.033333
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
7bfb8c398b66afff9f9537190851684dffe009d8
189
py
Python
basics.py
c25l/longmont_data_science_tensorflow
78302ab5b76a1e4632deda164615b4861c21f534
[ "MIT" ]
null
null
null
basics.py
c25l/longmont_data_science_tensorflow
78302ab5b76a1e4632deda164615b4861c21f534
[ "MIT" ]
null
null
null
basics.py
c25l/longmont_data_science_tensorflow
78302ab5b76a1e4632deda164615b4861c21f534
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import tensorflow as tf x=tf.Variable(0.5) y = x*x sess = tf.Session() sess.run(tf.global_variables_initializer()) print("x =",sess.run(x)) print("y =",sess.run(y))
18.9
43
0.687831
35
189
3.657143
0.571429
0.164063
0
0
0
0
0
0
0
0
0
0.017647
0.100529
189
9
44
21
0.735294
0.111111
0
0
0
0
0.035928
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7bfc0a90c6e361e602b8b4fb5d3bb23952ab70e8
3,468
py
Python
nist_tools/combine_images.py
Nepherhotep/roboarchive-broom
a60c6038a5506c19edc6b74dbb47de525b246d2a
[ "MIT" ]
null
null
null
nist_tools/combine_images.py
Nepherhotep/roboarchive-broom
a60c6038a5506c19edc6b74dbb47de525b246d2a
[ "MIT" ]
null
null
null
nist_tools/combine_images.py
Nepherhotep/roboarchive-broom
a60c6038a5506c19edc6b74dbb47de525b246d2a
[ "MIT" ]
null
null
null
import os import random import cv2 import numpy as np from gen_textures import add_noise, texture, blank_image from nist_tools.extract_nist_text import BaseMain, parse_args, display class CombineMain(BaseMain): SRC_DIR = 'blurred' DST_DIR = 'combined_raw' BG_DIR = 'backgrounds' SMPL_DIR = 'combined...
31.527273
94
0.625144
489
3,468
4.188139
0.269939
0.058594
0.024414
0.03418
0.20752
0.13916
0.13916
0.099609
0.071289
0.041992
0
0.026974
0.262399
3,468
109
95
31.816514
0.773651
0.043253
0
0.028571
0
0
0.030504
0
0
0
0
0
0
1
0.1
false
0
0.085714
0.014286
0.314286
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7bfe07fff56233f17c17498061812fd747efa684
1,205
py
Python
auto_funcs/look_for_date.py
rhysrushton/testauto
9c32f40640f58703a0d063afbb647855fb680a61
[ "MIT" ]
null
null
null
auto_funcs/look_for_date.py
rhysrushton/testauto
9c32f40640f58703a0d063afbb647855fb680a61
[ "MIT" ]
null
null
null
auto_funcs/look_for_date.py
rhysrushton/testauto
9c32f40640f58703a0d063afbb647855fb680a61
[ "MIT" ]
null
null
null
# this function looks for either the encounter date or the patient's date of birth # so that we can avoid duplicate encounters. import time def look_for_date (date_string, driver): print('looking for date') date_present = False for div in driver.find_elements_by_class_name('card.my-4.patient-card.assessme...
30.125
99
0.637344
159
1,205
4.63522
0.421384
0.054274
0.081411
0.130258
0.398915
0.320217
0.320217
0.320217
0.320217
0.320217
0
0.005695
0.271369
1,205
39
100
30.897436
0.833713
0.237344
0
0.222222
0
0
0.207048
0.099119
0
0
0
0
0
1
0.111111
false
0
0.055556
0
0.277778
0.222222
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
7bfefe9a585dfb51817f970316b20305a606310a
1,047
py
Python
app/api/apis/token_api.py
boceckts/ideahub
fbd48c53a5aaf7252a5461d0c0d2fe9d4eef9aed
[ "BSD-3-Clause" ]
null
null
null
app/api/apis/token_api.py
boceckts/ideahub
fbd48c53a5aaf7252a5461d0c0d2fe9d4eef9aed
[ "BSD-3-Clause" ]
null
null
null
app/api/apis/token_api.py
boceckts/ideahub
fbd48c53a5aaf7252a5461d0c0d2fe9d4eef9aed
[ "BSD-3-Clause" ]
null
null
null
from flask import g from flask_restplus import Resource, marshal from app import db from app.api.namespaces.token_namespace import token_ns, token from app.api.security.authentication import basic_auth, token_auth @token_ns.route('', strict_slashes=False) @token_ns.response(401, 'Unauthenticated') @token_ns.response...
32.71875
67
0.700096
136
1,047
5.191176
0.419118
0.069405
0.084986
0.072238
0
0
0
0
0
0
0
0.021251
0.191022
1,047
31
68
33.774194
0.812279
0.040115
0
0.083333
0
0
0.115694
0
0
0
0
0
0
1
0.083333
false
0
0.208333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7bff9b4a9c838befc20c601a3d326698664e8b5d
1,025
py
Python
quickSort.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
quickSort.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
quickSort.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # low --> Starting index, high --> Ending index class Solution(object): def quickSort(self, arr, low, high): if low < high: pi = self.partition(arr, low, high) self.quickSort(arr, low, pi - 1) self.quickSort(arr, pi + 1, high) return a...
29.285714
66
0.520976
135
1,025
3.955556
0.451852
0.065543
0.05618
0.052434
0
0
0
0
0
0
0
0.039334
0.355122
1,025
35
67
29.285714
0.768533
0.298537
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d0003ec058228de9777e23294e4fbffc93d7d212
4,816
py
Python
docker_multiarch/tool.py
CynthiaProtector/helo
ad9e22363a92389b3fa519ecae9061c6ead28b05
[ "Apache-2.0" ]
399
2017-05-30T05:12:48.000Z
2022-01-29T05:53:08.000Z
docker_multiarch/tool.py
greenpea0104/incubator-mxnet
fc9e70bf2d349ad4c6cb65ff3f0958e23a7410bf
[ "Apache-2.0" ]
58
2017-05-30T23:25:32.000Z
2019-11-18T09:30:54.000Z
docker_multiarch/tool.py
greenpea0104/incubator-mxnet
fc9e70bf2d349ad4c6cb65ff3f0958e23a7410bf
[ "Apache-2.0" ]
107
2017-05-30T05:53:22.000Z
2021-06-24T02:43:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache Licen...
30.871795
108
0.65054
648
4,816
4.697531
0.376543
0.013798
0.014455
0.015769
0.034166
0
0
0
0
0
0
0.0069
0.217608
4,816
155
109
31.070968
0.800955
0.232143
0
0.038835
0
0
0.170725
0.013406
0
0
0
0
0.019417
1
0.116505
false
0
0.07767
0.038835
0.271845
0.009709
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
d001b6743e397b1ed7c3a5a49549452902031c2c
150
py
Python
integrate/test/test_samples/sample_norun.py
Requirement-Engineers/default-coding-Bo2
f51e4e17af4fff077aebe2f3611c363da9ed9871
[ "Unlicense" ]
null
null
null
integrate/test/test_samples/sample_norun.py
Requirement-Engineers/default-coding-Bo2
f51e4e17af4fff077aebe2f3611c363da9ed9871
[ "Unlicense" ]
null
null
null
integrate/test/test_samples/sample_norun.py
Requirement-Engineers/default-coding-Bo2
f51e4e17af4fff077aebe2f3611c363da9ed9871
[ "Unlicense" ]
null
null
null
import json def dummy_function(): return [] def test_norun(): this shall not run if __name__ == '__main__': test_norun()
11.538462
27
0.593333
18
150
4.333333
0.833333
0.230769
0
0
0
0
0
0
0
0
0
0
0.306667
150
12
28
12.5
0.75
0
0
0
0
0
0.057971
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
d003fb1f6605d874e72c3a666281e62431d7b2a8
3,283
py
Python
02module/module_containers.py
mayi140611/szzy_pytorch
81978d75513bc9a1b85aec05023d14fa6f748674
[ "Apache-2.0" ]
null
null
null
02module/module_containers.py
mayi140611/szzy_pytorch
81978d75513bc9a1b85aec05023d14fa6f748674
[ "Apache-2.0" ]
null
null
null
02module/module_containers.py
mayi140611/szzy_pytorch
81978d75513bc9a1b85aec05023d14fa6f748674
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ # @file name : module_containers.py # @author : tingsongyu # @date : 2019-09-20 10:08:00 # @brief : 模型容器——Sequential, ModuleList, ModuleDict """ import torch import torchvision import torch.nn as nn from collections import OrderedDict # ============================ Sequenti...
22.486301
76
0.540664
392
3,283
4.423469
0.257653
0.031142
0.025375
0.034602
0.363322
0.317186
0.235294
0.182814
0.182814
0.182814
0
0.052609
0.282059
3,283
145
77
22.641379
0.682223
0.180627
0
0.328947
0
0
0.027872
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.263158
0.013158
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
d00408e74248e82eceb28ea83155d9b67a8bad9f
2,124
py
Python
tests/test_sample_images.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
null
null
null
tests/test_sample_images.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
20
2019-07-15T21:49:29.000Z
2020-01-09T14:35:03.000Z
tests/test_sample_images.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
null
null
null
import pytest import shutil as sh import pandas as pd from pathlib import Path from glob import glob import libs.dirs as dirs from libs.iteration_manager import SampleImages from libs.utils import copy_files, replace_symbols class Te...
34.819672
91
0.677966
243
2,124
5.740741
0.358025
0.057348
0.080287
0.043011
0.167742
0.058781
0.058781
0
0
0
0
0.007453
0.241996
2,124
61
92
34.819672
0.859006
0.078154
0
0.052632
0
0
0.064995
0.027636
0
0
0
0
0.131579
1
0.105263
false
0
0.210526
0
0.342105
0.026316
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
d0056587271ff8ce0d2628ab99ab1c7bc8e2f7e9
558
py
Python
data/Carp.py
shebang-sh/npb-ouenka-bot
6fc6f7c1717632c3845496c309560233a9c73d8e
[ "MIT" ]
null
null
null
data/Carp.py
shebang-sh/npb-ouenka-bot
6fc6f7c1717632c3845496c309560233a9c73d8e
[ "MIT" ]
14
2022-03-29T09:07:31.000Z
2022-03-30T02:37:07.000Z
data/Carp.py
shebang-sh/npb-ouenka-bot
6fc6f7c1717632c3845496c309560233a9c73d8e
[ "MIT" ]
null
null
null
data={ "田中広輔":"赤く燃え上がる 夢見たこの世界で 研ぎ澄ませそのセンス 打てよ広輔", "長野久義":"歓声を背に受け 頂をみつめて 紅一筋に 突き進め長野", "安部友裕":"新しい時代に 今手を伸ばせ 終わらぬ夢の先に 導いてくれ", "堂林翔太":"光り輝く その道を 翔けぬけて魅せろ 堂林SHOW TIME!", "會澤翼":"いざ大空へ翔ばたけ 熱い想い乗せ 勝利へ導く一打 決めろよ翼", "菊池涼介":"【前奏:始まりの鐘が鳴る 広島伝説】\n光を追い越して メーター振りきり駆け抜けろ 止まらないぜ 韋駄天菊池", "野間峻祥":"鋭い打球飛ばせ 自慢...
42.923077
77
0.691756
64
558
6.03125
0.984375
0
0
0
0
0
0
0
0
0
0
0
0.166667
558
13
78
42.923077
0.830108
0
0
0
0
0
0.767442
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d0057db4b4f167cbdeebfbc062e049713a913fcb
42
py
Python
source/constants.py
sideround/predict-revenue-new-releases
b6b597cfed328d6b7981917477ceb6f0630aee49
[ "MIT" ]
null
null
null
source/constants.py
sideround/predict-revenue-new-releases
b6b597cfed328d6b7981917477ceb6f0630aee49
[ "MIT" ]
11
2020-05-21T17:52:04.000Z
2020-06-08T03:33:28.000Z
source/constants.py
sideround/predict-revenue-new-releases
b6b597cfed328d6b7981917477ceb6f0630aee49
[ "MIT" ]
2
2020-06-02T13:14:16.000Z
2020-06-11T17:46:05.000Z
BASE_URL = 'https://api.themoviedb.org/3'
21
41
0.714286
7
42
4.142857
1
0
0
0
0
0
0
0
0
0
0
0.025641
0.071429
42
1
42
42
0.717949
0
0
0
0
0
0.666667
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d00676794b322b39517d8082c8b83c61f4836359
284
py
Python
Unit 2/2.16/2.16.5 Black and White Squares.py
shashwat73/cse
60e49307e57105cf9916c7329f53f891c5e81fdb
[ "MIT" ]
1
2021-04-08T14:02:49.000Z
2021-04-08T14:02:49.000Z
Unit 2/2.16/2.16.5 Black and White Squares.py
shashwat73/cse
60e49307e57105cf9916c7329f53f891c5e81fdb
[ "MIT" ]
null
null
null
Unit 2/2.16/2.16.5 Black and White Squares.py
shashwat73/cse
60e49307e57105cf9916c7329f53f891c5e81fdb
[ "MIT" ]
null
null
null
speed(0) def make_square(i): if i % 2 == 0: begin_fill() for i in range(4): forward(25) left(90) end_fill() penup() setposition(-100, 0) pendown() for i in range (6): pendown() make_square(i) penup() forward(35)
14.947368
23
0.503521
40
284
3.475
0.625
0.143885
0.158273
0.158273
0
0
0
0
0
0
0
0.082418
0.359155
284
18
24
15.777778
0.681319
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.0625
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
d0075df444476cd69e92bd3d5f61f5eff5a35b08
771
py
Python
Q1/read.py
arpanmangal/Regression
06969286d7db65a537e89ac37905310592542ca9
[ "MIT" ]
null
null
null
Q1/read.py
arpanmangal/Regression
06969286d7db65a537e89ac37905310592542ca9
[ "MIT" ]
null
null
null
Q1/read.py
arpanmangal/Regression
06969286d7db65a537e89ac37905310592542ca9
[ "MIT" ]
null
null
null
""" Module for reading data from 'linearX.csv' and 'linearY.csv' """ import numpy as np def loadData (x_file="ass1_data/linearX.csv", y_file="ass1_data/linearY.csv"): """ Loads the X, Y matrices. Splits into training, validation and test sets """ X = np.genfromtxt(x_file) Y = np.genfromtxt(y_...
25.7
78
0.639429
124
771
3.822581
0.346774
0.126582
0.082278
0.037975
0.054852
0
0
0
0
0
0
0.021417
0.212711
771
29
79
26.586207
0.759473
0.217899
0
0
0
0
0.072917
0.072917
0
0
0
0
0
1
0.066667
false
0
0.066667
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
d00814276e589d5ea8bb86b5cdc709673c74e2be
331
py
Python
apps/experiments/forms.py
Intellia-SME/OptiPLANT
1d40b62f00b3fff940499fa27d0c2d59e7e6dd4c
[ "Apache-2.0" ]
1
2022-01-26T18:07:22.000Z
2022-01-26T18:07:22.000Z
apps/experiments/forms.py
Intellia-SME/OptiPLANT
1d40b62f00b3fff940499fa27d0c2d59e7e6dd4c
[ "Apache-2.0" ]
null
null
null
apps/experiments/forms.py
Intellia-SME/OptiPLANT
1d40b62f00b3fff940499fa27d0c2d59e7e6dd4c
[ "Apache-2.0" ]
1
2022-01-26T18:07:26.000Z
2022-01-26T18:07:26.000Z
from django import forms from .models import Experiment class CreateExperimentForm(forms.ModelForm): class Meta: model = Experiment fields = ['name', 'description', 'dataset'] def save(self, commit=True): self.instance.experimenter = self.request.user return super().save(comm...
23.642857
54
0.679758
36
331
6.25
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.217523
331
13
55
25.461538
0.868726
0
0
0
0
0
0.066465
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d0089b5c467aacb771cc69018d2b7e9da7c6f7d7
3,377
py
Python
Giveme5W1H/extractor/tools/timex.py
bkrrr/Giveme5W
657738781fe387d76e6e0da35ed009ccf81f4290
[ "Apache-2.0" ]
410
2018-05-02T12:53:02.000Z
2022-03-28T16:11:34.000Z
Giveme5W1H/extractor/tools/timex.py
bkrrr/Giveme5W
657738781fe387d76e6e0da35ed009ccf81f4290
[ "Apache-2.0" ]
51
2018-05-02T13:53:19.000Z
2022-03-22T00:16:39.000Z
Giveme5W1H/extractor/tools/timex.py
TU-Berlin/Giveme5W1H
b1586328393a50acde86015d22f78a4c15bf2f34
[ "Apache-2.0" ]
81
2018-05-29T14:03:27.000Z
2022-02-08T08:59:38.000Z
from datetime import datetime from dateutil.relativedelta import relativedelta class Timex: """ Simply represents a Timex object. Main reason for this class is that the datetime class (and other Python equivalents) do not allow to reflect a month or a day but only a single point in time. """ _dat...
35.547368
112
0.638733
429
3,377
4.715618
0.261072
0.097874
0.044983
0.049432
0.400395
0.274345
0.250618
0.217993
0.217993
0.148295
0
0.026231
0.266213
3,377
94
113
35.925532
0.790153
0.184779
0
0.305085
0
0
0.024137
0
0.016949
0
0
0
0
1
0.169492
false
0.067797
0.033898
0.118644
0.508475
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
1
1
0
0
3
d008c5731d8fedc349d8c20f7b0bc4f197dfbb75
1,172
py
Python
utils/get_dic_question_id.py
Pxtri2156/M4C_inforgraphicsVQA
8846ea01a9be726de03e8944c746203936334bc9
[ "BSD-3-Clause" ]
1
2022-02-15T14:46:15.000Z
2022-02-15T14:46:15.000Z
utils/get_dic_question_id.py
Pxtri2156/M4C_inforgraphicsVQA
8846ea01a9be726de03e8944c746203936334bc9
[ "BSD-3-Clause" ]
null
null
null
utils/get_dic_question_id.py
Pxtri2156/M4C_inforgraphicsVQA
8846ea01a9be726de03e8944c746203936334bc9
[ "BSD-3-Clause" ]
1
2022-02-13T11:15:11.000Z
2022-02-13T11:15:11.000Z
import argparse import json from os import openpty def create_dic_question_id(path): set_name = ['train', 'val', 'test'] dic_qid = {} for i in range(len(set_name)): print("Processing, ", set_name[i]) annot_path = path.replace("change", set_name[i]) annot_fi = open(annot_path) ...
29.3
96
0.595563
153
1,172
4.27451
0.418301
0.06422
0.051988
0.058104
0
0
0
0
0
0
0
0.00939
0.273038
1,172
40
97
29.3
0.758216
0
0
0
0
0
0.12191
0.064791
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.222222
0.055556
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