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
46175a845f983668cd1561f331edd1b1e7cee344
12,398
py
Python
main_gat.py
basiralab/RG-Select
074274f61667611205724c4423fc498ee4a0a9d0
[ "MIT" ]
1
2021-09-07T06:55:37.000Z
2021-09-07T06:55:37.000Z
main_gat.py
basiralab/RG-Select
074274f61667611205724c4423fc498ee4a0a9d0
[ "MIT" ]
null
null
null
main_gat.py
basiralab/RG-Select
074274f61667611205724c4423fc498ee4a0a9d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sklearn import preprocessing from torch.autograd import Variable from models_gat import GAT import os import torch import numpy as np import argparse import pickle import sklearn.metrics as metrics import cross_val import time import random torch.manual_seed(0) np.random.seed(0) random.s...
37.008955
137
0.607275
1,514
12,398
4.795244
0.178336
0.022039
0.04449
0.018182
0.372176
0.322865
0.273003
0.256198
0.222865
0.193113
0
0.005985
0.258751
12,398
335
138
37.008955
0.784004
0.116793
0
0.267943
0
0
0.135067
0.012066
0
0
0
0
0
1
0.038278
false
0
0.057416
0
0.129187
0.057416
0
0
0
null
0
0
0
0
0
0
0
0
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
4617a69a551305b5f32925b26d808534b36117fc
12,752
py
Python
dev/Gems/CloudGemDefectReporter/v1/AWS/common-code/Python/piexif/_dump.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
8
2019-10-07T16:33:47.000Z
2020-12-07T03:59:58.000Z
dev/Gems/CloudGemDefectReporter/v1/AWS/common-code/Python/piexif/_dump.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
1
2018-02-18T22:24:55.000Z
2018-02-21T18:36:09.000Z
dev/Gems/CloudGemDefectReporter/v1/AWS/common-code/Python/piexif/_dump.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
import copy import numbers import struct from ._common import * from ._exif import * TIFF_HEADER_LENGTH = 8 def dump(exif_dict_original): """ py:function:: piexif.load(data) Return exif as bytes. :param dict exif: Exif data({"0th":dict, "Exif":dict, "GPS":dict, "Interop":dict, "1st":dict, "thumbn...
36.74928
117
0.571361
1,602
12,752
4.27216
0.093633
0.068673
0.051286
0.038866
0.522501
0.497224
0.468147
0.419053
0.403565
0.336061
0
0.020273
0.311481
12,752
346
118
36.855491
0.759226
0.018036
0
0.363036
0
0.0033
0.049808
0.008648
0
0
0
0
0
1
0.039604
false
0
0.016502
0.026403
0.09571
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
4617fb2b1109fbc2c363e6e5ce80547d57eca614
8,000
py
Python
portal.py
mrahman4782/portalhoop
29e87ccaca5544590aa9ed20096c3628c1ab57b1
[ "Apache-2.0" ]
null
null
null
portal.py
mrahman4782/portalhoop
29e87ccaca5544590aa9ed20096c3628c1ab57b1
[ "Apache-2.0" ]
null
null
null
portal.py
mrahman4782/portalhoop
29e87ccaca5544590aa9ed20096c3628c1ab57b1
[ "Apache-2.0" ]
null
null
null
import pygame import random from pygame import * pygame.init() width, height = 740, 500 screen = pygame.display.set_mode((width, height)) player = [pygame.transform.scale(pygame.image.load("Resources/Balljump-1(2).png"), (100,100)), pygame.t...
28.776978
419
0.5115
948
8,000
4.28692
0.194093
0.054134
0.0406
0.064961
0.380906
0.336614
0.290108
0.225886
0.202018
0.202018
0
0.062708
0.360125
8,000
277
420
28.880866
0.731198
0.081
0
0.213483
0
0
0.059924
0.041769
0
0
0
0
0
1
0.022472
false
0
0.016854
0
0.039326
0.005618
0
0
0
null
0
0
0
0
0
0
0
0
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
461ab2e151fa2b1e92504b3b4e0d6a8160278475
843
py
Python
prev_ob_models/KaplanLansner2014/plotting_and_analysis/plot_results.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
5
2019-10-03T14:49:02.000Z
2022-01-13T13:37:34.000Z
prev_ob_models/KaplanLansner2014/plotting_and_analysis/plot_results.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
4
2019-12-30T15:57:24.000Z
2020-10-07T22:42:50.000Z
prev_ob_models/KaplanLansner2014/plotting_and_analysis/plot_results.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
2
2020-05-19T20:12:48.000Z
2020-11-04T17:17:44.000Z
import pylab import numpy import sys if (len(sys.argv) < 2): fn = raw_input("Please enter data file to be plotted\n") else: fn = sys.argv[1] data = np.loadtxt(fn) # if the first line contains crap use skiprows=1 #data = np.loadtxt(fn, skiprows=1) fig = pylab.figure() ax = fig.add_subplot(111) # if you wan...
21.075
60
0.618031
142
843
3.619718
0.535211
0.035019
0.075875
0.054475
0.062257
0
0
0
0
0
0
0.039531
0.189798
843
39
61
21.615385
0.713031
0.500593
0
0.125
0
0
0.09828
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
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
1c9d4e8ece8e1713ad5f9d3791c348c5f5f83733
2,691
py
Python
lib/take2/main.py
zacharyfrederick/deep_q_gaf
6b712b17a6c89c1cba0d22e18fa336369c521d4e
[ "MIT" ]
null
null
null
lib/take2/main.py
zacharyfrederick/deep_q_gaf
6b712b17a6c89c1cba0d22e18fa336369c521d4e
[ "MIT" ]
null
null
null
lib/take2/main.py
zacharyfrederick/deep_q_gaf
6b712b17a6c89c1cba0d22e18fa336369c521d4e
[ "MIT" ]
null
null
null
from __future__ import division from lib import env_config from lib.senior_env import BetterEnvironment from keras.optimizers import Adam from rl.agents.dqn import DQNAgent from rl.policy import LinearAnnealedPolicy, BoltzmannQPolicy, EpsGreedyQPolicy from rl.memory import SequentialMemory from lib import models impor...
42.714286
109
0.726867
393
2,691
4.852417
0.519084
0.02517
0.018878
0.014683
0
0
0
0
0
0
0
0.03389
0.199554
2,691
62
110
43.403226
0.851439
0.454106
0
0
0
0
0.046832
0
0
0
0
0
0
1
0.033333
false
0
0.3
0.033333
0.366667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
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
1c9df7adb0b666ca2019704ffcc93ac51a469c6b
1,752
py
Python
src/clcore.py
ShepardPower/PyMCBuilder
b247151864cc6b7bca0dc23aa87cdbb44b52defc
[ "MIT" ]
1
2019-07-09T04:45:07.000Z
2019-07-09T04:45:07.000Z
src/clcore.py
ShepardPower/PyMCBuilder
b247151864cc6b7bca0dc23aa87cdbb44b52defc
[ "MIT" ]
null
null
null
src/clcore.py
ShepardPower/PyMCBuilder
b247151864cc6b7bca0dc23aa87cdbb44b52defc
[ "MIT" ]
null
null
null
# I'm just the one that executes the instructions! import sys, math, json, operator, time import mcpi.minecraft as minecraft from PIL import Image as pillow from blockid import get_block import mcpi.block as block import functions as pymc from tqdm import tqdm import tkinter as tk # Functions # Main code mc = minecra...
26.545455
93
0.66153
279
1,752
4.114695
0.387097
0.041812
0.052265
0.027875
0.165505
0.062718
0.062718
0.062718
0.062718
0.062718
0
0.021862
0.190639
1,752
65
94
26.953846
0.787729
0.063356
0
0.333333
0
0
0.107645
0
0
0
0
0
0
1
0
false
0
0.148148
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c9e901d1d765a0acf44b58e4a7dca2f74accdab
4,377
py
Python
gaphor/tools/gaphorconvert.py
987Frogh/project-makehuman
3afc838b03c50f8e574d8c87cb71de4435a18a6d
[ "Apache-2.0" ]
1
2020-11-27T12:39:15.000Z
2020-11-27T12:39:15.000Z
gaphor/tools/gaphorconvert.py
987Frogh/project-makehuman
3afc838b03c50f8e574d8c87cb71de4435a18a6d
[ "Apache-2.0" ]
null
null
null
gaphor/tools/gaphorconvert.py
987Frogh/project-makehuman
3afc838b03c50f8e574d8c87cb71de4435a18a6d
[ "Apache-2.0" ]
3
2020-01-23T14:13:59.000Z
2020-02-18T18:21:47.000Z
#!/usr/bin/python import optparse import os import re import sys import cairo from gaphas.painter import Context, ItemPainter from gaphas.view import View import gaphor.UML as UML from gaphor.application import Application from gaphor.storage import storage def pkg2dir(package): """ Return directory path f...
28.796053
87
0.570482
484
4,377
5.088843
0.373967
0.021924
0.030451
0.015428
0.051969
0.024361
0
0
0
0
0
0.004639
0.310487
4,377
151
88
28.986755
0.811465
0.051177
0
0.045045
0
0
0.172951
0.007541
0
0
0
0
0.009009
1
0.036036
false
0
0.09009
0
0.135135
0.018018
0
0
0
null
0
0
0
0
0
0
0
0
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
1ca0182af54f9900fd8dd3f4d8ff457375adde5e
1,140
py
Python
test/test_ID.py
a-buntjer/tsib
9d6ddcdca55c9b8afb5324c0da8d0910cb1a326e
[ "MIT" ]
14
2019-12-16T16:54:43.000Z
2021-11-08T11:46:51.000Z
test/test_ID.py
a-buntjer/tsib
9d6ddcdca55c9b8afb5324c0da8d0910cb1a326e
[ "MIT" ]
null
null
null
test/test_ID.py
a-buntjer/tsib
9d6ddcdca55c9b8afb5324c0da8d0910cb1a326e
[ "MIT" ]
7
2020-05-27T19:49:58.000Z
2022-02-02T12:45:33.000Z
# -*- coding: utf-8 -*- """ Created on Fri Apr 08 11:33:01 2016 @author: Leander Kotzur """ import tsib def test_get_ID(): # parameterize a building bdgcfg = tsib.BuildingConfiguration( { "refurbishment": False, "nightReduction": False, "occControl": False, ...
20.727273
47
0.509649
106
1,140
5.396226
0.59434
0.041958
0.052448
0.08042
0.444056
0.318182
0.318182
0.129371
0
0
0
0.049451
0.361404
1,140
54
48
21.111111
0.736264
0.114912
0
0.277778
0
0
0.209209
0
0
0
0
0
0
1
0.055556
false
0
0.027778
0
0.138889
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
1ca13538bfcd1f5b4948e14f8020f58d87fb25a8
25,791
py
Python
dislib/model_selection/_search.py
alexbarcelo/dislib
989f81f235ae30b17410a8d805df258c7d931b38
[ "Apache-2.0" ]
36
2018-10-22T19:21:14.000Z
2022-03-22T12:10:01.000Z
dislib/model_selection/_search.py
alexbarcelo/dislib
989f81f235ae30b17410a8d805df258c7d931b38
[ "Apache-2.0" ]
329
2018-11-22T18:04:57.000Z
2022-03-18T01:26:55.000Z
dislib/model_selection/_search.py
alexbarcelo/dislib
989f81f235ae30b17410a8d805df258c7d931b38
[ "Apache-2.0" ]
21
2019-01-10T11:46:39.000Z
2022-03-17T12:59:45.000Z
from abc import ABC, abstractmethod from collections import defaultdict from collections.abc import Sequence from functools import partial from itertools import product import numpy as np from pycompss.api.api import compss_wait_on from scipy.stats import rankdata from sklearn import clone from sklearn.model_selection...
44.087179
79
0.584351
3,088
25,791
4.737047
0.145078
0.021876
0.012442
0.019688
0.51962
0.49166
0.470263
0.466229
0.460213
0.460213
0
0.013298
0.306037
25,791
584
80
44.162671
0.804
0.614129
0
0.098266
0
0
0.080383
0
0
0
0
0
0
1
0.069364
false
0.011561
0.075145
0
0.179191
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
1ca1a822fc7884017cd3ac1dd4d887f9f5596b45
1,407
py
Python
webapp/ui/tests/test_parse_search_results.py
robseed/botanist
2f4fbab5d26499105a5057c86e0e6e37a2e8a727
[ "MIT" ]
null
null
null
webapp/ui/tests/test_parse_search_results.py
robseed/botanist
2f4fbab5d26499105a5057c86e0e6e37a2e8a727
[ "MIT" ]
null
null
null
webapp/ui/tests/test_parse_search_results.py
robseed/botanist
2f4fbab5d26499105a5057c86e0e6e37a2e8a727
[ "MIT" ]
null
null
null
import os from django.test import TestCase from mock import patch from ui.views import parse_search_results FIXTURES_ROOT = os.path.join(os.path.dirname(__file__), 'fixtures') FX = lambda *relpath: os.path.join(FIXTURES_ROOT, *relpath) @patch('ui.views.get_repo_type') @patch('ui.views.CODE_ROOT', '/opt/botanist/re...
43.96875
188
0.686567
169
1,407
5.544379
0.47929
0.022412
0.035219
0.0619
0.36286
0.36286
0.275347
0.275347
0.275347
0.275347
0
0.002611
0.183369
1,407
32
189
43.96875
0.812881
0
0
0
0
0
0.320313
0.12358
0
0
0
0
0.16
1
0.08
false
0
0.16
0
0.36
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
1ca27636ecfdf6c794d529bed48bdedc1987bdf3
4,598
py
Python
tsdl/tools/extensions.py
burgerdev/hostload
93142628bb32923c5e6f3a8b791488d72a5c9077
[ "MIT" ]
null
null
null
tsdl/tools/extensions.py
burgerdev/hostload
93142628bb32923c5e6f3a8b791488d72a5c9077
[ "MIT" ]
null
null
null
tsdl/tools/extensions.py
burgerdev/hostload
93142628bb32923c5e6f3a8b791488d72a5c9077
[ "MIT" ]
null
null
null
""" Extensions for pylearn2 training algorithms. Those are either reimplemented to suit the execution model of this package, or new ones for recording metrics. """ import os import cPickle as pkl import numpy as np from pylearn2.train_extensions import TrainExtension from .abcs import Buildable class BuildableTr...
27.047059
78
0.626577
506
4,598
5.549407
0.332016
0.021368
0.034188
0.044516
0.266738
0.259972
0.211538
0.174858
0.143519
0.09188
0
0.003633
0.281644
4,598
169
79
27.207101
0.846503
0.257503
0
0.381579
0
0
0.033971
0
0
0
0
0
0
1
0.197368
false
0.013158
0.065789
0
0.460526
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
1ca288015e226ac02375d4c474cc5edb714fc3e0
6,189
py
Python
nogi/utils/post_extractor.py
Cooomma/nogi-backup-blog
19868511d2b0f0c4d06bf4a88981bbfadc4121e4
[ "MIT" ]
null
null
null
nogi/utils/post_extractor.py
Cooomma/nogi-backup-blog
19868511d2b0f0c4d06bf4a88981bbfadc4121e4
[ "MIT" ]
164
2020-04-02T18:25:59.000Z
2022-02-17T17:09:32.000Z
nogi/utils/post_extractor.py
Cooomma/nogi-backup-blog
19868511d2b0f0c4d06bf4a88981bbfadc4121e4
[ "MIT" ]
null
null
null
import asyncio from io import BytesIO import logging import os import random import time from typing import List from urllib.parse import urlparse import aiohttp from aiohttp import ClientSession, TCPConnector import requests from requests import Response from tqdm import tqdm from nogi import REQUEST_HEADERS from no...
41.26
146
0.618517
742
6,189
4.927224
0.256065
0.021061
0.02407
0.031729
0.213074
0.176422
0.176422
0.139223
0.121718
0.078775
0
0.009421
0.27969
6,189
149
147
41.536913
0.810677
0.003232
0
0.171875
0
0.007813
0.088078
0
0
0
0
0
0
1
0.046875
false
0
0.148438
0.015625
0.242188
0.054688
0
0
0
null
0
0
0
0
0
0
0
0
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
1ca3e775b2d474b15aa148de47bee4762a8d884c
1,429
py
Python
sandbox/lib/jumpscale/JumpscaleLibsExtra/sal_zos/gateway/dhcp.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
1
2020-10-05T08:53:57.000Z
2020-10-05T08:53:57.000Z
sandbox/lib/jumpscale/JumpscaleLibsExtra/sal_zos/gateway/dhcp.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
17
2019-11-14T08:41:37.000Z
2020-05-27T09:23:51.000Z
sandbox/lib/jumpscale/JumpscaleLibsExtra/sal_zos/gateway/dhcp.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
from Jumpscale import j import signal from .. import templates DNSMASQ = "/bin/dnsmasq --conf-file=/etc/dnsmasq.conf -d" class DHCP: def __init__(self, container, domain, networks): self.container = container self.domain = domain self.networks = networks def apply_config(self): ...
36.641026
94
0.638908
179
1,429
5.03352
0.368715
0.129856
0.084351
0.053274
0.266371
0.266371
0.266371
0.204218
0.09545
0.09545
0
0.0055
0.236529
1,429
38
95
37.605263
0.820348
0.026592
0
0
0
0
0.12095
0.020878
0
0
0
0
0
1
0.142857
false
0
0.107143
0
0.321429
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
1ca4f326c31dc7913ff0486df63cbab12df18fbe
888
py
Python
LEDdebug/examples/led-demo.py
UrsaLeo/LEDdebug
228af02468e4f3b617a50e6195931a623a4ad848
[ "Apache-2.0" ]
null
null
null
LEDdebug/examples/led-demo.py
UrsaLeo/LEDdebug
228af02468e4f3b617a50e6195931a623a4ad848
[ "Apache-2.0" ]
null
null
null
LEDdebug/examples/led-demo.py
UrsaLeo/LEDdebug
228af02468e4f3b617a50e6195931a623a4ad848
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """UrsaLeo LEDdebug board LED demo Turn the LED's on one at a time, then all off""" import time ON = 1 OFF = 0 DELAY = 0.5 # seconds try: from LEDdebug import LEDdebug except ImportError: try: import sys import os sys.path.append("..") sys.path.appen...
20.651163
69
0.595721
121
888
4.256198
0.504132
0.081553
0.069903
0.100971
0.16699
0.16699
0
0
0
0
0
0.01278
0.295045
888
42
70
21.142857
0.809904
0.21509
0
0.222222
0
0
0.118421
0
0
0
0
0
0
1
0.037037
false
0
0.296296
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
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
1ca57a9994de049d5edebf8ee7ac8544c88a916a
6,352
py
Python
modules/server.py
Nitin-Mane/SARS-CoV-2-xDNN-Classifier
abb6a82b8ee89a041b0e26e14ec1e416c4561266
[ "MIT" ]
null
null
null
modules/server.py
Nitin-Mane/SARS-CoV-2-xDNN-Classifier
abb6a82b8ee89a041b0e26e14ec1e416c4561266
[ "MIT" ]
null
null
null
modules/server.py
Nitin-Mane/SARS-CoV-2-xDNN-Classifier
abb6a82b8ee89a041b0e26e14ec1e416c4561266
[ "MIT" ]
null
null
null
#!/usr/bin/env python ################################################################################### ## ## Project: COVID -19 xDNN Classifier 2020 ## Version: 1.0.0 ## Module: Server ## Desription: The COVID -19 xDNN Classifier 2020 server. ## License: MIT ## Copyright: 2021, Asociacion De Investigac...
31.60199
83
0.65318
790
6,352
5.224051
0.349367
0.039981
0.032954
0.040708
0.258057
0.136903
0.109038
0.038769
0.038769
0.038769
0
0.016852
0.177897
6,352
200
84
31.76
0.773458
0.306675
0
0.133929
0
0
0.186047
0
0
0
0
0
0
1
0.044643
false
0
0.125
0
0.205357
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
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
1ca66df25ee895df823541d354d97c61178071b8
4,107
py
Python
jsparse/meijiexia/meijiexia.py
PyDee/Spiders
6fc0a414060032b5ba4332302285e3fcc9a6113e
[ "Apache-2.0" ]
6
2020-06-02T16:22:58.000Z
2021-09-18T03:20:16.000Z
jsparse/meijiexia/meijiexia.py
PyDee/Spiders
6fc0a414060032b5ba4332302285e3fcc9a6113e
[ "Apache-2.0" ]
4
2021-03-31T19:54:37.000Z
2022-03-12T00:33:41.000Z
jsparse/meijiexia/meijiexia.py
PyDee/Spiders
6fc0a414060032b5ba4332302285e3fcc9a6113e
[ "Apache-2.0" ]
5
2020-06-02T16:23:00.000Z
2021-09-03T02:16:15.000Z
import time import random import requests from lxml import etree import pymongo from .url_file import mjx_weibo, mjx_dy, mjx_ks, mjx_xhs class DBMongo: def __init__(self): self.my_client = pymongo.MongoClient("mongodb://localhost:27017/") # 连接数据库 self.db = self.my_client["mcn"] def i...
41.07
450
0.567324
504
4,107
4.468254
0.412698
0.017762
0.019982
0.031083
0.119449
0.05595
0.028419
0.028419
0
0
0
0.083306
0.266374
4,107
99
451
41.484848
0.664122
0.004139
0
0.023529
0
0.035294
0.356496
0.204306
0
0
0
0
0
1
0.070588
false
0
0.070588
0
0.176471
0.035294
0
0
0
null
0
0
0
0
0
0
0
0
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
1ca67740a4b7ba54382fd28803af944938695c13
2,756
py
Python
MLModules/ABD/B_PCAQDA.py
jamster112233/ICS_IDS
dac6abc3c8d6e840a21adedcb9e8dcfaa304b499
[ "BSD-3-Clause" ]
null
null
null
MLModules/ABD/B_PCAQDA.py
jamster112233/ICS_IDS
dac6abc3c8d6e840a21adedcb9e8dcfaa304b499
[ "BSD-3-Clause" ]
null
null
null
MLModules/ABD/B_PCAQDA.py
jamster112233/ICS_IDS
dac6abc3c8d6e840a21adedcb9e8dcfaa304b499
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from keras.utils import np_utils import pandas as pd import sys from sklearn.preprocessing import LabelEncoder from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis as QDA from sklearn.decomposition import PCA import os from sklearn.externals import joblib from sklearn.metrics impor...
26.757282
105
0.675617
390
2,756
4.720513
0.348718
0.029875
0.009777
0.022814
0.101032
0.076046
0.024986
0.024986
0.024986
0
0
0.017001
0.167634
2,756
102
106
27.019608
0.785527
0.129898
0
0.084507
0
0
0.046502
0.010473
0
0
0
0
0
1
0
false
0
0.140845
0
0.140845
0.070423
0
0
0
null
0
0
0
0
0
0
0
0
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
1ca68195c840c66d0de8f1f855f4ded2b7c95a94
2,850
py
Python
GR2-Save-Loader.py
203Null/Gravity-Rush-2-Save-Loader
40cf8a1748449c0e019a2e57ac2b8eccd50d8917
[ "MIT" ]
2
2022-02-06T10:40:22.000Z
2022-02-06T10:45:51.000Z
GR2-Save-Loader.py
203Null/Gravity-Rush-2-Save-Loader
40cf8a1748449c0e019a2e57ac2b8eccd50d8917
[ "MIT" ]
null
null
null
GR2-Save-Loader.py
203Null/Gravity-Rush-2-Save-Loader
40cf8a1748449c0e019a2e57ac2b8eccd50d8917
[ "MIT" ]
null
null
null
import struct import json from collections import OrderedDict file_path = "data0002.bin" show_offset = True show_hash = False loaded_data = 0 def unpack(upstream_data_set): global loaded_data loaded_data = loaded_data + 1 currentCursor = file.tell() print(hex(file.tell())) file.seek(...
36.075949
115
0.587719
371
2,850
4.369272
0.283019
0.064158
0.049969
0.059223
0.228254
0.190006
0.16533
0.16533
0.05182
0
0
0.032023
0.276842
2,850
79
116
36.075949
0.754488
0.024912
0
0.180556
0
0
0.073786
0
0
0
0.013348
0
0
1
0.013889
false
0
0.041667
0
0.055556
0.152778
0
0
0
null
0
0
0
0
0
0
0
0
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
1ca91ede49b4b76cb020ec83f9b1603af4b3c7c0
1,406
py
Python
pages/tests/test_views.py
andywar65/starter-fullstack
683d6282eb02a9b967d15cd254976e67549672e9
[ "BSD-2-Clause" ]
null
null
null
pages/tests/test_views.py
andywar65/starter-fullstack
683d6282eb02a9b967d15cd254976e67549672e9
[ "BSD-2-Clause" ]
null
null
null
pages/tests/test_views.py
andywar65/starter-fullstack
683d6282eb02a9b967d15cd254976e67549672e9
[ "BSD-2-Clause" ]
null
null
null
from django.test import TestCase, override_settings from django.urls import reverse from pages.models import Article, HomePage @override_settings(USE_I18N=False) class PageViewTest(TestCase): @classmethod def setUpTestData(cls): print("\nTest page views") # Set up non-modified objects used by...
35.15
77
0.647226
165
1,406
5.430303
0.406061
0.033482
0.055804
0.070313
0.385045
0.34933
0.210938
0.210938
0.210938
0.145089
0
0.031481
0.231863
1,406
39
78
36.051282
0.798148
0.036984
0
0.125
0
0
0.188609
0.018491
0
0
0
0
0.15625
1
0.125
false
0
0.09375
0
0.25
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
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
1caa879917346512e7a2dc23a9df954e997c28d0
26,030
py
Python
poco/services/batch/server.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
null
null
null
poco/services/batch/server.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
7
2019-03-22T06:26:39.000Z
2021-06-10T19:36:06.000Z
poco/services/batch/server.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
1
2017-10-25T03:43:51.000Z
2017-10-25T03:43:51.000Z
#!/usr/bin/env python import logging import sys sys.path.append("../../") sys.path.append("pylib") import time import datetime import pymongo import uuid import os import subprocess import os.path import settings from common.utils import getSiteDBCollection sys.path.insert(0, "../../") class LoggingManager: de...
39.142857
106
0.678871
3,047
26,030
5.383984
0.103709
0.021579
0.060226
0.039622
0.598049
0.490216
0.415239
0.317159
0.266809
0.255349
0
0.000749
0.230311
26,030
664
107
39.201807
0.818068
0.029466
0
0.274162
0
0.003945
0.12397
0.052338
0
0
0
0.001506
0
1
0.142012
false
0.003945
0.055227
0.009862
0.2643
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
1caaa79685649df41865169e49ad903c14174dcc
4,488
py
Python
tests/integration/basket/model_tests.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
tests/integration/basket/model_tests.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
tests/integration/basket/model_tests.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal as D from django.test import TestCase from oscar.apps.basket.models import Basket from oscar.apps.partner import strategy from oscar.test import factories from oscar.apps.catalogue.models import Option class TestAddingAProductToABasket(TestCase): def setUp(self): self.basket...
35.619048
93
0.694296
543
4,488
5.504604
0.180479
0.076949
0.036132
0.044496
0.552024
0.456005
0.385413
0.385413
0.359318
0.337906
0
0.011771
0.204991
4,488
125
94
35.904
0.825953
0
0
0.361702
0
0
0.012701
0
0
0
0
0
0.159574
1
0.180851
false
0
0.06383
0
0.287234
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
1cab057f92135b745b2c22597acdb2d7401a8e30
11,134
py
Python
experiments/render-tests-avg.py
piotr-karon/realworld-starter-kit
6285e4b5913fe5e99d72e9178eb4b1db246d02c9
[ "MIT" ]
null
null
null
experiments/render-tests-avg.py
piotr-karon/realworld-starter-kit
6285e4b5913fe5e99d72e9178eb4b1db246d02c9
[ "MIT" ]
null
null
null
experiments/render-tests-avg.py
piotr-karon/realworld-starter-kit
6285e4b5913fe5e99d72e9178eb4b1db246d02c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import os from pathlib import Path import numpy as np from natsort import natsorted try: from docopt import docopt from marko.ext.gfm import gfm import pygal from pygal.style import Style, DefaultStyle except ImportError as e: raise Exception('Some external depe...
36.032362
157
0.647566
1,614
11,134
4.304833
0.185254
0.033103
0.024611
0.038284
0.483161
0.453224
0.41825
0.382556
0.335492
0.298503
0
0.011916
0.20855
11,134
308
158
36.149351
0.776555
0.057122
0
0.274336
0
0.004425
0.225477
0.030344
0
0
0
0
0
1
0.088496
false
0
0.044248
0.013274
0.212389
0.061947
0
0
0
null
0
0
0
0
0
0
0
0
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
1cab32916328111ed29e8c7581e89b8013c63586
9,839
py
Python
litex/build/altera/quartus.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
1,501
2016-04-19T18:16:21.000Z
2022-03-31T17:46:31.000Z
litex/build/altera/quartus.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
1,135
2016-04-19T05:49:14.000Z
2022-03-31T15:21:19.000Z
litex/build/altera/quartus.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
357
2016-04-19T05:00:24.000Z
2022-03-31T11:28:32.000Z
# # This file is part of LiteX. # # Copyright (c) 2014-2019 Florent Kermarrec <florent@enjoy-digital.fr> # Copyright (c) 2019 msloniewski <marcin.sloniewski@gmail.com> # Copyright (c) 2019 vytautasb <v.buitvydas@limemicro.com> # SPDX-License-Identifier: BSD-2-Clause import os import subprocess import sys import math f...
38.433594
107
0.598536
1,194
9,839
4.721106
0.207705
0.047898
0.014902
0.024481
0.292177
0.209331
0.161788
0.15008
0.115487
0.103424
0
0.0054
0.24718
9,839
255
108
38.584314
0.755637
0.146255
0
0.129412
0
0
0.186027
0.044264
0
0
0
0
0
1
0.064706
false
0
0.047059
0
0.170588
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
1cac38aa4a5a8e636d6285190a3fb18a56c06114
10,831
py
Python
polystores/stores/azure_store.py
polyaxon/polystores
141789ef75622c80d1f3875cec6952ad3c2d5ec7
[ "MIT" ]
50
2018-12-10T14:46:12.000Z
2021-11-03T16:38:58.000Z
polystores/stores/azure_store.py
polyaxon/polystores
141789ef75622c80d1f3875cec6952ad3c2d5ec7
[ "MIT" ]
17
2019-01-21T14:14:30.000Z
2019-08-23T20:39:07.000Z
polystores/stores/azure_store.py
polyaxon/polystores
141789ef75622c80d1f3875cec6952ad3c2d5ec7
[ "MIT" ]
8
2019-01-21T14:52:37.000Z
2019-07-29T19:53:12.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from rhea import RheaError from rhea import parser as rhea_parser from azure.common import AzureHttpError from azure.storage.blob.models import BlobPrefix from polystores.clients.azure_client import get_blob_service_c...
35.864238
98
0.587942
1,211
10,831
5.036334
0.141206
0.110838
0.057714
0.068208
0.489425
0.38285
0.360059
0.326611
0.311854
0.301361
0
0.000413
0.329886
10,831
301
99
35.983389
0.839901
0.206444
0
0.329268
0
0
0.029555
0.005736
0
0
0
0
0
1
0.085366
false
0.006098
0.060976
0
0.195122
0.006098
0
0
0
null
0
0
0
0
0
0
0
0
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
1cad3cf72fd9e55c370708003b5cfc6962c4bf8e
22,217
py
Python
analysis/webservice/NexusHandler.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
23
2016-08-09T22:45:14.000Z
2020-02-17T08:18:29.000Z
analysis/webservice/NexusHandler.py
lewismc/incubator-sdap-nexus
ff98fa346303431542b8391cc2a1bf7561d1bd03
[ "Apache-2.0" ]
6
2017-04-27T21:22:17.000Z
2021-06-01T21:45:52.000Z
analysis/webservice/NexusHandler.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
5
2016-08-31T13:47:29.000Z
2017-11-14T21:45:22.000Z
""" Copyright (c) 2016 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved """ import sys import numpy as np import logging import time import types from datetime import datetime from netCDF4 import Dataset from nexustiles.nexustiles import NexusTileService from webservice.webmodel impor...
40.030631
165
0.508755
2,221
22,217
4.831607
0.178748
0.020129
0.010064
0.012301
0.31656
0.25841
0.232784
0.203802
0.152735
0.13652
0
0.009246
0.396363
22,217
554
166
40.102888
0.790918
0.04186
0
0.287946
0
0
0.088667
0
0
0
0
0.001805
0.006696
1
0.102679
false
0.015625
0.024554
0.024554
0.203125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1cade1c54a41deec5844621516e8934dad9ba6ed
2,602
py
Python
utils/box/metric.py
ming71/SLA
7024b093bc0d456b274314ebeae3bc500c2db65a
[ "MIT" ]
9
2021-05-26T05:51:19.000Z
2021-12-25T02:31:55.000Z
utils/box/metric.py
ming71/SLA
7024b093bc0d456b274314ebeae3bc500c2db65a
[ "MIT" ]
4
2021-09-17T11:24:20.000Z
2022-03-16T02:07:33.000Z
utils/box/metric.py
ming71/SLA
7024b093bc0d456b274314ebeae3bc500c2db65a
[ "MIT" ]
null
null
null
import numpy as np from collections import defaultdict, Counter from .rbbox_np import rbbox_iou def get_ap(recall, precision): recall = [0] + list(recall) + [1] precision = [0] + list(precision) + [0] for i in range(len(precision) - 1, 0, -1): precision[i - 1] = max(precision[i - 1], precision[i...
37.171429
117
0.563028
378
2,602
3.716931
0.21164
0.034875
0.023488
0.038434
0.193594
0.081139
0.058363
0.058363
0.058363
0
0
0.025224
0.314374
2,602
69
118
37.710145
0.762332
0.013067
0
0.033333
0
0
0
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1caee980c9d28fcb7768f3cf4259dd89c12fcb4a
5,186
py
Python
app.py
winstonschroeder/setlistmanager
3c177a8da4bd56049964076f6ead51e3fffff5fa
[ "MIT" ]
null
null
null
app.py
winstonschroeder/setlistmanager
3c177a8da4bd56049964076f6ead51e3fffff5fa
[ "MIT" ]
null
null
null
app.py
winstonschroeder/setlistmanager
3c177a8da4bd56049964076f6ead51e3fffff5fa
[ "MIT" ]
null
null
null
import logging import pygame from app import * from pygame.locals import * from werkzeug.serving import run_simple from web import webapp as w import data_access as da logging.basicConfig(filename='setlistmanager.log', level=logging.DEBUG) SCREEN_WIDTH = 160 SCREEN_HEIGHT = 128 class Button: pass class Text()...
35.040541
122
0.571732
685
5,186
4.220438
0.265693
0.014528
0.016603
0.020754
0.112764
0.094431
0.088897
0.075061
0.075061
0.032515
0
0.014576
0.298882
5,186
147
123
35.278912
0.780528
0.244312
0
0.020833
0
0
0.061522
0.006257
0
0
0
0
0
1
0.104167
false
0.010417
0.072917
0
0.208333
0.072917
0
0
0
null
0
0
0
0
0
0
0
0
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
1caf08d291951db640773cc4547ec6df82e53a36
4,488
py
Python
sim_keypoints.py
Praznat/annotationmodeling
014b8b94b2225f947691c18b26eb8a4b148d2c8a
[ "BSD-3-Clause" ]
8
2020-05-03T20:01:03.000Z
2021-12-20T12:24:34.000Z
sim_keypoints.py
Praznat/annotationmodeling
014b8b94b2225f947691c18b26eb8a4b148d2c8a
[ "BSD-3-Clause" ]
1
2021-11-19T02:33:19.000Z
2021-12-28T03:22:33.000Z
sim_keypoints.py
Praznat/annotationmodeling
014b8b94b2225f947691c18b26eb8a4b148d2c8a
[ "BSD-3-Clause" ]
4
2020-05-04T15:04:57.000Z
2021-11-04T18:14:26.000Z
import json import pandas as pd import numpy as np from matplotlib import pyplot as plt import simulation from eval_functions import oks_score_multi import utils def alter_location(points, x_offset, y_offset): x, y = points.T return np.array([x + x_offset, y + y_offset]).T def alter_rotation(points, radians):...
43.153846
143
0.64951
627
4,488
4.440191
0.275917
0.020115
0.020115
0.016164
0.084052
0.084052
0.065374
0.043103
0
0
0
0.017796
0.223708
4,488
104
144
43.153846
0.781286
0
0
0.022222
0
0
0.040766
0.009133
0
0
0
0
0
1
0.133333
false
0
0.077778
0.033333
0.344444
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
1cb1d08525c852f3c763a5bfd0e70b7e85abb9c4
6,592
py
Python
local/controller.py
Loptt/home-automation-system
f1878596905e022d1d626d485d1a29dc7212f480
[ "MIT" ]
null
null
null
local/controller.py
Loptt/home-automation-system
f1878596905e022d1d626d485d1a29dc7212f480
[ "MIT" ]
null
null
null
local/controller.py
Loptt/home-automation-system
f1878596905e022d1d626d485d1a29dc7212f480
[ "MIT" ]
null
null
null
import requests import time import os import sys import json import threading from getpass import getpass import schedule import event as e import configuration as c import RPi.GPIO as GPIO #SERVER_URL = "https://home-automation-289621.uc.r.appspot.com" #SERVER_URL = "http://127.0.0.1:4747" SERVER_URL = "http://192.16...
29.168142
226
0.618174
890
6,592
4.460674
0.222472
0.038539
0.037783
0.028212
0.347607
0.189924
0.165743
0.153149
0.147103
0.139547
0
0.023057
0.236802
6,592
225
227
29.297778
0.76605
0.028823
0
0.103659
0
0
0.135063
0.013131
0
0
0
0
0
1
0.079268
false
0.02439
0.067073
0
0.176829
0.103659
0
0
0
null
0
0
0
0
0
0
0
0
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
1cb40b16f030cc0fc491e5ff712cd9ba3b6fe9c3
1,640
py
Python
src/graphql_sqlalchemy/graphql_types.py
gzzo/graphql-sqlalchemy
54a30d0b2fe2d5a1eb3668f0f7bc6ec3cb366ec4
[ "MIT" ]
12
2020-06-11T18:17:46.000Z
2021-11-23T04:23:59.000Z
src/graphql_sqlalchemy/graphql_types.py
gzzo/graphql-sqlalchemy
54a30d0b2fe2d5a1eb3668f0f7bc6ec3cb366ec4
[ "MIT" ]
9
2020-06-03T21:34:50.000Z
2021-05-23T16:48:01.000Z
src/graphql_sqlalchemy/graphql_types.py
gzzo/graphql-sqlalchemy
54a30d0b2fe2d5a1eb3668f0f7bc6ec3cb366ec4
[ "MIT" ]
2
2020-07-02T09:59:30.000Z
2021-04-13T19:28:48.000Z
from typing import Dict, Union from graphql import ( GraphQLBoolean, GraphQLFloat, GraphQLInputField, GraphQLInt, GraphQLList, GraphQLNonNull, GraphQLScalarType, GraphQLString, ) from sqlalchemy import ARRAY, Boolean, Float, Integer from sqlalchemy.dialects.postgresql import ARRAY as PG...
32.8
116
0.739024
157
1,640
7.452229
0.318471
0.103419
0.14359
0.075214
0.148718
0.05812
0.05812
0
0
0
0
0
0.171341
1,640
49
117
33.469388
0.860927
0
0
0
0
0
0.028659
0
0
0
0
0
0
1
0.078947
false
0
0.131579
0.052632
0.394737
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
1cb410c38e7b086fc006f0a9169efd98fc6fc76d
3,223
py
Python
Knapsack.py
byterubpay/mininero1
ea6b8017cdbab82011d7f329e7726cc52d1ef431
[ "BSD-3-Clause" ]
182
2016-02-05T18:33:09.000Z
2022-03-23T12:31:54.000Z
Knapsack.py
byterubpay/mininero1
ea6b8017cdbab82011d7f329e7726cc52d1ef431
[ "BSD-3-Clause" ]
81
2016-09-04T14:00:24.000Z
2022-03-28T17:22:52.000Z
Knapsack.py
byterubpay/mininero1
ea6b8017cdbab82011d7f329e7726cc52d1ef431
[ "BSD-3-Clause" ]
63
2016-02-05T19:38:06.000Z
2022-03-07T06:07:46.000Z
import Crypto.Random.random as rand import itertools import math #for log import sys def decomposition(i): #from stack exchange, don't think it's uniform while i > 0: n = rand.randint(1, i) yield n i -= n def Decomposition(i): while True: l = list(decomposition(i)) i...
29.036036
99
0.559727
467
3,223
3.837259
0.286938
0.039063
0.030134
0.006696
0.055804
0.035714
0
0
0
0
0
0.025401
0.303754
3,223
110
100
29.3
0.773173
0.125659
0
0.022989
0
0
0.072345
0
0
0
0
0
0
1
0.08046
false
0
0.045977
0.011494
0.183908
0.149425
0
0
0
null
0
0
0
0
0
0
0
0
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
1cb4f5278643eda7e6d9e305ee74cda8346049cd
14,601
py
Python
drought_impact_forecasting/models/model_parts/Conv_Transformer.py
rudolfwilliam/satellite_image_forecasting
164ee7e533e1a8d730a0ee9c0062fd9b32e0bcdc
[ "MIT" ]
4
2021-12-16T18:32:01.000Z
2021-12-28T15:57:27.000Z
drought_impact_forecasting/models/model_parts/Conv_Transformer.py
rudolfwilliam/satellite_image_forecasting
164ee7e533e1a8d730a0ee9c0062fd9b32e0bcdc
[ "MIT" ]
null
null
null
drought_impact_forecasting/models/model_parts/Conv_Transformer.py
rudolfwilliam/satellite_image_forecasting
164ee7e533e1a8d730a0ee9c0062fd9b32e0bcdc
[ "MIT" ]
2
2021-10-05T15:01:47.000Z
2021-12-28T15:57:14.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from einops import rearrange from .shared import Conv_Block from ..utils.utils import zeros, mean_cube, last_frame, ENS class Residual(nn.Module): def __init__(self, fn): super().__init__() self.fn = fn def f...
48.996644
184
0.617423
2,013
14,601
4.217586
0.123199
0.060424
0.061249
0.023086
0.520612
0.44841
0.41967
0.39258
0.382097
0.359128
0
0.012005
0.258338
14,601
298
185
48.996644
0.772001
0.083487
0
0.282609
0
0
0.014618
0
0
0
0
0.003356
0
1
0.095652
false
0.004348
0.030435
0.017391
0.230435
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
1cb7e53b2c17e731b27a68b654287de75f6d7775
1,042
py
Python
src/precon/commands.py
Albert-91/precon
aaded1d6a5f743b3539ea46b19a37a7bf9930e05
[ "MIT" ]
null
null
null
src/precon/commands.py
Albert-91/precon
aaded1d6a5f743b3539ea46b19a37a7bf9930e05
[ "MIT" ]
null
null
null
src/precon/commands.py
Albert-91/precon
aaded1d6a5f743b3539ea46b19a37a7bf9930e05
[ "MIT" ]
null
null
null
import asyncio import click from precon.devices_handlers.distance_sensor import show_distance as show_distance_func from precon.remote_control import steer_vehicle, Screen try: import RPi.GPIO as GPIO except (RuntimeError, ModuleNotFoundError): import fake_rpi GPIO = fake_rpi.RPi.GPIO @click.command(n...
25.414634
87
0.690019
127
1,042
5.488189
0.377953
0.086083
0.045911
0.05165
0.269727
0.269727
0.269727
0.183644
0.183644
0.183644
0
0
0.213052
1,042
40
88
26.05
0.85
0
0
0.46875
0
0
0.121881
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.25
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1cb813fdb41b3152ecad7b90bfbabd5c02323b45
57,607
py
Python
midway.py
sjtichenor/midway-ford
43bf8770f2edd483d7c27dede8b9ac1fb8f10152
[ "MIT" ]
null
null
null
midway.py
sjtichenor/midway-ford
43bf8770f2edd483d7c27dede8b9ac1fb8f10152
[ "MIT" ]
null
null
null
midway.py
sjtichenor/midway-ford
43bf8770f2edd483d7c27dede8b9ac1fb8f10152
[ "MIT" ]
null
null
null
import csv import string import ftplib import math import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import sqlite...
39.894044
537
0.591282
6,201
57,607
5.404128
0.156588
0.006923
0.012354
0.013727
0.369341
0.334696
0.29835
0.272657
0.250843
0.226015
0
0.010216
0.277813
57,607
1,443
538
39.921691
0.795279
0.142795
0
0.2867
0
0.016749
0.276741
0.045615
0
0
0
0
0
1
0.028571
false
0.005911
0.024631
0.000985
0.06798
0.141872
0
0
0
null
0
0
0
0
0
0
0
0
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
1cb871009f40d73e438998df7547b42738178c54
3,932
py
Python
monolithe/generators/sdkgenerator.py
edwinfeener/monolithe
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
[ "BSD-3-Clause" ]
18
2015-06-24T18:35:20.000Z
2022-01-19T19:04:00.000Z
monolithe/generators/sdkgenerator.py
edwinfeener/monolithe
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
[ "BSD-3-Clause" ]
63
2015-11-03T18:57:12.000Z
2020-09-30T02:54:49.000Z
monolithe/generators/sdkgenerator.py
edwinfeener/monolithe
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
[ "BSD-3-Clause" ]
38
2015-10-23T19:04:44.000Z
2021-06-04T08:13:33.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # no...
44.179775
115
0.721261
490
3,932
5.677551
0.385714
0.03954
0.010784
0.027318
0.156722
0.12509
0.07908
0.048886
0.048886
0.048886
0
0.001573
0.19176
3,932
88
116
44.681818
0.87382
0.392675
0
0.046512
0
0
0.115205
0.011436
0
0
0
0
0
1
0.046512
false
0
0.162791
0
0.232558
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
1cb99804e820098ccccda4d6284924e807ceb66e
1,787
py
Python
rllab-taewoo/rllab/plotter/plotter.py
kyuhoJeong11/GrewRL
a514698df8d38df34de0bd1667d99927f0aa3885
[ "MIT" ]
null
null
null
rllab-taewoo/rllab/plotter/plotter.py
kyuhoJeong11/GrewRL
a514698df8d38df34de0bd1667d99927f0aa3885
[ "MIT" ]
null
null
null
rllab-taewoo/rllab/plotter/plotter.py
kyuhoJeong11/GrewRL
a514698df8d38df34de0bd1667d99927f0aa3885
[ "MIT" ]
null
null
null
import atexit import sys if sys.version_info[0] == 2: from Queue import Empty else: from queue import Empty from multiprocessing import Process, Queue from rllab.sampler.utils import rollout import numpy as np __all__ = [ 'init_worker', 'init_plot', 'update_plot' ] process = None queue = None de...
24.479452
94
0.564633
206
1,787
4.708738
0.359223
0.064948
0.030928
0.041237
0.119588
0.119588
0.119588
0.119588
0.119588
0.119588
0
0.005013
0.330162
1,787
72
95
24.819444
0.805347
0.033016
0
0.172414
0
0
0.057971
0.017971
0
0
0
0
0
1
0.086207
false
0.017241
0.12069
0
0.206897
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
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
1cbebb0ca1313739b0fe47f6d54aaa9f17675ecf
1,949
py
Python
djangito/backends.py
mechanicbuddy/djangito
07c08a83c57577cbf945bba461219bc0ef2a7695
[ "Apache-2.0" ]
null
null
null
djangito/backends.py
mechanicbuddy/djangito
07c08a83c57577cbf945bba461219bc0ef2a7695
[ "Apache-2.0" ]
null
null
null
djangito/backends.py
mechanicbuddy/djangito
07c08a83c57577cbf945bba461219bc0ef2a7695
[ "Apache-2.0" ]
null
null
null
import base64 import json import jwt import requests from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend USER_MODEL = get_user_model() class ALBAuth(ModelBackend): def authenticate(self, request, **kwargs): if request: ...
29.984615
75
0.626988
255
1,949
4.564706
0.356863
0.085052
0.04811
0.043814
0.165808
0.098797
0.07732
0.07732
0.07732
0.07732
0
0.01683
0.268343
1,949
64
76
30.453125
0.799439
0.066188
0
0
0
0.021739
0.103524
0.011564
0
0
0
0
0
1
0.086957
false
0.021739
0.152174
0
0.326087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1cbf5ae6b77e5700645e93821c03cc92778db151
11,306
py
Python
data_profiler/labelers/regex_model.py
gme5078/data-profiler
602cc5e4f4463f9b807000abf3893815918d0723
[ "Apache-2.0" ]
null
null
null
data_profiler/labelers/regex_model.py
gme5078/data-profiler
602cc5e4f4463f9b807000abf3893815918d0723
[ "Apache-2.0" ]
null
null
null
data_profiler/labelers/regex_model.py
gme5078/data-profiler
602cc5e4f4463f9b807000abf3893815918d0723
[ "Apache-2.0" ]
null
null
null
import json import os import sys import re import copy import numpy as np from data_profiler.labelers.base_model import BaseModel from data_profiler.labelers.base_model import AutoSubRegistrationMeta _file_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(_file_dir) class RegexModel(BaseModel, metac...
38.719178
81
0.523527
1,161
11,306
4.936262
0.222222
0.033502
0.013959
0.015704
0.258768
0.203106
0.187751
0.154947
0.154947
0.139941
0
0.006589
0.38254
11,306
291
82
38.852234
0.814353
0.285335
0
0.112583
0
0
0.108749
0.005724
0
0
0
0
0
1
0.059603
false
0.02649
0.05298
0
0.139073
0.006623
0
0
0
null
0
0
0
0
0
0
0
0
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
1cbf73995d2a6d71959f99c6cb216fdecd75b4e3
1,693
py
Python
taller_estructuras_de_control_selectivas/ejercicio_13.py
JMosqueraM/algoritmos_y_programacion
30dc179b976f1db24401b110496250fbcb98938e
[ "MIT" ]
null
null
null
taller_estructuras_de_control_selectivas/ejercicio_13.py
JMosqueraM/algoritmos_y_programacion
30dc179b976f1db24401b110496250fbcb98938e
[ "MIT" ]
null
null
null
taller_estructuras_de_control_selectivas/ejercicio_13.py
JMosqueraM/algoritmos_y_programacion
30dc179b976f1db24401b110496250fbcb98938e
[ "MIT" ]
null
null
null
# Desarrolle un un programa que reciba la fecha de nacimiento # de una persona, y como salida, indique el nombre del signo del # zodiaco correspondiente, ademas de su edad def zodiaco(DD, MM): if (((DD >= 22) and (MM == 11)) or ((DD <=21) and (MM == 12))): return("Sagitario") if (((DD >= 22) and (MM ==...
33.196078
130
0.512109
265
1,693
3.241509
0.324528
0.139697
0.057043
0.073341
0.268917
0
0
0
0
0
0
0.067783
0.259303
1,693
51
130
33.196078
0.617225
0.09746
0
0
0
0.028571
0.16
0
0
0
0
0
0
1
0.028571
false
0
0
0
0.028571
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
1cc05adcc568b6fb2373878d0e0ebc62065ed391
5,110
py
Python
assignment3/crawler/spiders/benchmark_spider.py
vhazali/cs5331
3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f
[ "MIT" ]
8
2020-02-22T12:47:12.000Z
2021-12-03T11:39:19.000Z
assignment3/crawler/spiders/benchmark_spider.py
vhazali/cs5331
3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f
[ "MIT" ]
null
null
null
assignment3/crawler/spiders/benchmark_spider.py
vhazali/cs5331
3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f
[ "MIT" ]
4
2018-08-15T12:58:36.000Z
2021-12-29T07:06:29.000Z
import re, scrapy from crawler.items import * class BenchmarkSpider(scrapy.Spider): drop_params = True # Spider name, for use with the scrapy crawl command name = "benchmarks" # Constants to get url parts FULL, PROTOCOL, USER, PASSWORD, SUBDOMAIN, DOMAIN, TOP_LEVEL_DOMAIN, PORT_NUM, PATH, PAGE, GE...
33.181818
218
0.520939
567
5,110
4.622575
0.342152
0.030523
0.045784
0.053415
0.093857
0.078596
0.078596
0.078596
0.078596
0.078596
0
0.023419
0.331507
5,110
154
219
33.181818
0.743852
0.164384
0
0.135417
0
0.010417
0.15
0.051031
0
0
0
0
0
1
0.0625
false
0.010417
0.020833
0
0.208333
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
1cc2858f2edc96485c6ae59c62afeb79423f9cef
1,180
py
Python
ryu/gui/views/router_address_delete.py
isams1/Thesis
dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3
[ "Apache-2.0" ]
3
2019-04-23T11:11:46.000Z
2020-11-04T20:14:17.000Z
ryu/gui/views/router_address_delete.py
isams1/Thesis
dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3
[ "Apache-2.0" ]
null
null
null
ryu/gui/views/router_address_delete.py
isams1/Thesis
dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3
[ "Apache-2.0" ]
3
2019-10-03T09:31:42.000Z
2021-05-15T04:41:12.000Z
import re import logging import httplib import view_base from models import rt_proxy LOG = logging.getLogger('ryu.gui') class RtAddrDel(view_base.ViewBase): def __init__(self, host, port, dpid, address_id, status=None): super(RtAddrDel, self).__init__() self.host = host self.port = port ...
26.818182
79
0.594915
142
1,180
4.725352
0.330986
0.067064
0.035768
0.059613
0
0
0
0
0
0
0
0.002404
0.294915
1,180
44
80
26.818182
0.804087
0.00678
0
0.060606
0
0
0.099061
0
0
0
0
0
0
1
0.090909
false
0
0.151515
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
1cc5fd243fb313db4d6da43f6b24a969983fb154
964
py
Python
Python-Files/model_conversion/convert_to_tflite.py
jcgeo9/ML-For-Fish-Recognition
0b5faba77d0b2c5452950637f047882c80fa6fb7
[ "Apache-2.0" ]
null
null
null
Python-Files/model_conversion/convert_to_tflite.py
jcgeo9/ML-For-Fish-Recognition
0b5faba77d0b2c5452950637f047882c80fa6fb7
[ "Apache-2.0" ]
null
null
null
Python-Files/model_conversion/convert_to_tflite.py
jcgeo9/ML-For-Fish-Recognition
0b5faba77d0b2c5452950637f047882c80fa6fb7
[ "Apache-2.0" ]
null
null
null
# ============================================================================= # Created By : Giannis Kostas Georgiou # Project : Machine Learning for Fish Recognition (Individual Project) # ============================================================================= # Description : File in order to convert save...
43.818182
79
0.572614
109
964
4.972477
0.53211
0.121771
0.055351
0
0
0
0
0
0
0
0
0
0.139004
964
21
80
45.904762
0.653012
0.672199
0
0
0
0
0.216393
0
0
0
0
0
0
1
0
false
0
0.142857
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
1cc943b894a8b8ca43a398705ed5a7c52cece87e
492
py
Python
src/listIntersect/inter.py
rajitbanerjee/leetcode
720fcdd88d371e2d6592ceec8370a6760a77bb89
[ "CC0-1.0" ]
null
null
null
src/listIntersect/inter.py
rajitbanerjee/leetcode
720fcdd88d371e2d6592ceec8370a6760a77bb89
[ "CC0-1.0" ]
null
null
null
src/listIntersect/inter.py
rajitbanerjee/leetcode
720fcdd88d371e2d6592ceec8370a6760a77bb89
[ "CC0-1.0" ]
1
2021-04-28T18:17:55.000Z
2021-04-28T18:17:55.000Z
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def getIntersectionNode(self, headA: ListNode, headB: ListNode) -> ListNode: seen = set() curr = headA while curr: seen.add(curr) ...
21.391304
80
0.530488
54
492
4.759259
0.481481
0.124514
0.093385
0.124514
0
0
0
0
0
0
0
0
0.394309
492
22
81
22.363636
0.862416
0.069106
0
0.235294
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0
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
1ccaa4cf179ca9984d4a2effe3502e46bd80d7d5
1,214
py
Python
photon_stream_production/tests/test_drs_run_assignment.py
fact-project/photon_stream_production
ca2f946976c9a9717cfcd9364f2361ef385b45aa
[ "MIT" ]
null
null
null
photon_stream_production/tests/test_drs_run_assignment.py
fact-project/photon_stream_production
ca2f946976c9a9717cfcd9364f2361ef385b45aa
[ "MIT" ]
2
2019-01-17T12:11:27.000Z
2019-02-27T14:51:05.000Z
photon_stream_production/tests/test_drs_run_assignment.py
fact-project/photon_stream_production
ca2f946976c9a9717cfcd9364f2361ef385b45aa
[ "MIT" ]
null
null
null
import numpy as np import photon_stream as ps import photon_stream_production as psp import pkg_resources import os runinfo_path = pkg_resources.resource_filename( 'photon_stream_production', os.path.join('tests', 'resources', 'runinfo_20161115_to_20170103.csv') ) drs_fRunID_for_obs_run = psp.drs_run._drs_fRu...
30.35
74
0.660626
171
1,214
4.339181
0.327485
0.072776
0.097035
0.113208
0.230458
0
0
0
0
0
0
0.052174
0.242175
1,214
39
75
31.128205
0.754348
0
0
0
0
0
0.074135
0.046129
0
0
0
0
0.137931
1
0.034483
false
0
0.172414
0
0.206897
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
1ccca623d7f5e702eea65074c02fe6486e238208
10,450
py
Python
autoscaler/azure.py
gabrieladt/kops-ec2-autoscaler
8b90fa23caaacf9cf0a4310b65667769906af777
[ "MIT" ]
null
null
null
autoscaler/azure.py
gabrieladt/kops-ec2-autoscaler
8b90fa23caaacf9cf0a4310b65667769906af777
[ "MIT" ]
null
null
null
autoscaler/azure.py
gabrieladt/kops-ec2-autoscaler
8b90fa23caaacf9cf0a4310b65667769906af777
[ "MIT" ]
1
2019-07-08T07:06:27.000Z
2019-07-08T07:06:27.000Z
import http import logging from typing import List, Tuple, MutableMapping from datetime import datetime import re from requests.packages.urllib3 import Retry import autoscaler.utils as utils from autoscaler.autoscaling_groups import AutoScalingGroup from autoscaler.azure_api import AzureApi, AzureScaleSet, AzureScale...
40.980392
150
0.655598
1,272
10,450
5.099057
0.187893
0.062905
0.022202
0.025902
0.198736
0.106383
0.03099
0.012797
0.012797
0
0
0.003619
0.259522
10,450
255
151
40.980392
0.834583
0.057416
0
0.134409
0
0
0.085981
0.046321
0
0
0
0
0.005376
1
0.102151
false
0
0.053763
0.032258
0.290323
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
1ccedf375dff61d5b7747bbbaf81aa8a41e6f3f6
1,780
py
Python
Python2/tareas/tarea_7.py
eveiramirez/python_class
7a3830cc92dc842b853b243c6b01e06993faa97e
[ "MIT" ]
null
null
null
Python2/tareas/tarea_7.py
eveiramirez/python_class
7a3830cc92dc842b853b243c6b01e06993faa97e
[ "MIT" ]
null
null
null
Python2/tareas/tarea_7.py
eveiramirez/python_class
7a3830cc92dc842b853b243c6b01e06993faa97e
[ "MIT" ]
3
2021-04-09T19:12:15.000Z
2021-08-24T18:24:58.000Z
""" NAME tarea_7.py VERSION [1.0] AUTHOR Ignacio Emmanuel Ramirez Bernabe CONTACT iramirez@lcg.unam.mx GITHUB https://github.com/eveiramirez/python_class/blob/master/Python2/tareas/tarea_7.py DESCRIPTION Este programa contiene arrays estructurados para los arrays ...
29.180328
89
0.567978
237
1,780
4.177215
0.409283
0.054545
0.060606
0.066667
0.19596
0.111111
0.111111
0.089899
0.062626
0
0
0.048426
0.303933
1,780
60
90
29.666667
0.750605
0.45618
0
0
0
0
0.154574
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
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
1ccf03aa9b400d7a3b6f76334d043ce47040c33d
11,857
py
Python
iguanas/pipeline/_base_pipeline.py
paypal/Iguanas
166ea81b7d370eb4281a27aa449719ed1d38a74a
[ "Apache-2.0" ]
20
2021-12-22T14:15:03.000Z
2022-03-31T22:46:42.000Z
iguanas/pipeline/_base_pipeline.py
paypal/Iguanas
166ea81b7d370eb4281a27aa449719ed1d38a74a
[ "Apache-2.0" ]
12
2022-01-18T16:55:56.000Z
2022-03-10T11:39:39.000Z
iguanas/pipeline/_base_pipeline.py
paypal/Iguanas
166ea81b7d370eb4281a27aa449719ed1d38a74a
[ "Apache-2.0" ]
5
2021-12-25T07:28:29.000Z
2022-02-23T09:40:03.000Z
""" Base pipeline class. Main rule generator classes inherit from this one. """ from copy import deepcopy from typing import List, Tuple, Union, Dict from iguanas.pipeline.class_accessor import ClassAccessor from iguanas.utils.typing import PandasDataFrameType, PandasSeriesType import iguanas.utils.utils as utils from ...
40.606164
112
0.580417
1,326
11,857
5.042232
0.151584
0.027221
0.021388
0.022884
0.547861
0.515256
0.481454
0.452139
0.425815
0.425815
0
0.001425
0.348908
11,857
291
113
40.745704
0.864637
0.452222
0
0.318182
0
0
0.042534
0
0
0
0
0
0
1
0.090909
false
0
0.054545
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
1cd008f314f201433a589af299e0dc00308ca8c5
6,306
py
Python
test_activity_merger.py
AlexanderMakarov/activitywatch-ets
36e5ac92c7834b9515a54c5d633ae5e45d6928bc
[ "MIT" ]
null
null
null
test_activity_merger.py
AlexanderMakarov/activitywatch-ets
36e5ac92c7834b9515a54c5d633ae5e45d6928bc
[ "MIT" ]
null
null
null
test_activity_merger.py
AlexanderMakarov/activitywatch-ets
36e5ac92c7834b9515a54c5d633ae5e45d6928bc
[ "MIT" ]
null
null
null
import unittest import datetime from parameterized import parameterized from activity_merger import Interval from aw_core.models import Event from typing import List, Tuple def _build_datetime(seed: int) -> datetime.datetime: return datetime.datetime(2000, 1, seed, seed, 0, 0).astimezone(datetime.timezone.utc) ...
30.172249
112
0.482873
629
6,306
4.602544
0.176471
0.053886
0.131261
0.157513
0.606563
0.572712
0.504663
0.493264
0.302591
0.288083
0
0.036193
0.4085
6,306
208
113
30.317308
0.739946
0.03235
0
0.594737
0
0
0.085719
0
0
0
0
0
0.021053
1
0.031579
false
0
0.031579
0.010526
0.084211
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
1cd0df6aa8a1e2d70124b017898c86056e7b29dd
4,526
py
Python
pommerman/agents/player_agent.py
alekseynp/playground
523cc924fe9fd269a8eb3e29c45ace1c5c85b12c
[ "Apache-2.0" ]
8
2019-06-11T16:08:25.000Z
2020-10-28T09:03:53.000Z
pommerman/agents/player_agent.py
alekseynp/playground
523cc924fe9fd269a8eb3e29c45ace1c5c85b12c
[ "Apache-2.0" ]
1
2019-06-21T03:57:35.000Z
2019-06-21T03:57:35.000Z
pommerman/agents/player_agent.py
alekseynp/playground
523cc924fe9fd269a8eb3e29c45ace1c5c85b12c
[ "Apache-2.0" ]
1
2018-03-21T15:21:52.000Z
2018-03-21T15:21:52.000Z
""" NOTE: There are a few minor complications to fluid human control which make this code a little more involved than trivial. 1. Key press-release cycles can be, and often are, faster than one tick of the game/simulation, but the player still wants that cycle to count, i.e. to lay a bomb! 2. When holding down ...
33.776119
98
0.614671
658
4,526
4.132219
0.355623
0.022067
0.024274
0.02648
0.053696
0.024274
0.024274
0.024274
0
0
0
0.009003
0.312859
4,526
133
99
34.030075
0.865273
0.480115
0
0.073529
0
0
0.01508
0
0
0
0
0
0.014706
1
0.117647
false
0
0.058824
0.014706
0.279412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1cd0fd2e907a405a13689ee31a56a04909e02b9c
555
py
Python
spanglish/tests/fixtures/models/language.py
omaraljazairy/FedalAPI
2be0a19bb2629be9e2a0477f99477e4bfbd8901e
[ "MIT" ]
null
null
null
spanglish/tests/fixtures/models/language.py
omaraljazairy/FedalAPI
2be0a19bb2629be9e2a0477f99477e4bfbd8901e
[ "MIT" ]
null
null
null
spanglish/tests/fixtures/models/language.py
omaraljazairy/FedalAPI
2be0a19bb2629be9e2a0477f99477e4bfbd8901e
[ "MIT" ]
null
null
null
""" fixtures that return an sql statement with a list of values to be inserted.""" def load_language(): """ return the sql and values of the insert queuery.""" sql = """ INSERT INTO Spanglish_Test.Language ( `name`, `iso-639-1` ) VALUES (%s, %s) ...
19.137931
82
0.405405
51
555
4.372549
0.686275
0
0
0
0
0
0
0
0
0
0
0.013378
0.461261
555
28
83
19.821429
0.732441
0.223423
0
0.086957
0
0
0.41866
0.055024
0
0
0
0
0
1
0.043478
false
0
0
0
0.086957
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
1cd1aa4b57039ede6d30d90d5b70dc7281d0f585
9,693
py
Python
main-hs2.py
tradewartracker/phase-one-product-hs2
38dd328a8211695c31f09a34832535dc2c82a5c2
[ "MIT" ]
null
null
null
main-hs2.py
tradewartracker/phase-one-product-hs2
38dd328a8211695c31f09a34832535dc2c82a5c2
[ "MIT" ]
null
null
null
main-hs2.py
tradewartracker/phase-one-product-hs2
38dd328a8211695c31f09a34832535dc2c82a5c2
[ "MIT" ]
null
null
null
import datetime as dt from os.path import dirname, join import numpy as np import pandas as pd import pyarrow as pa import pyarrow.parquet as pq from bokeh.io import curdoc from bokeh.layouts import column, gridplot, row from bokeh.models import ColumnDataSource, DataRange1d, Select, HoverTool, Panel, Tabs, LinearC...
37.280769
400
0.613123
1,263
9,693
4.585115
0.285827
0.030392
0.033155
0.034191
0.336211
0.305129
0.256605
0.242618
0.223968
0.172854
0
0.050317
0.235221
9,693
259
401
37.42471
0.730878
0.094089
0
0.251656
0
0.039735
0.270389
0.008772
0.006623
0
0
0
0
1
0.02649
false
0
0.099338
0.006623
0.145695
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
1cd3b57ef203189fa0937ba41bdb1a37dbdad462
2,223
py
Python
aiohttp_middlewares/https.py
alxpy/aiohttp-middlewares
377740d21cdaf3142523eb81b0cee4c6dd01f6b5
[ "BSD-3-Clause" ]
34
2017-05-14T11:31:41.000Z
2022-03-24T06:07:31.000Z
aiohttp_middlewares/https.py
alxpy/aiohttp-middlewares
377740d21cdaf3142523eb81b0cee4c6dd01f6b5
[ "BSD-3-Clause" ]
77
2017-10-20T19:40:59.000Z
2022-03-01T05:07:36.000Z
aiohttp_middlewares/https.py
alxpy/aiohttp-middlewares
377740d21cdaf3142523eb81b0cee4c6dd01f6b5
[ "BSD-3-Clause" ]
2
2019-11-06T12:45:33.000Z
2021-11-24T14:55:28.000Z
""" ================ HTTPS Middleware ================ Change scheme for current request when aiohttp application deployed behind reverse proxy with HTTPS enabled. Usage ===== .. code-block:: python from aiohttp import web from aiohttp_middlewares import https_middleware # Basic usage app = web.App...
25.848837
79
0.645524
244
2,223
5.77459
0.360656
0.0511
0.038325
0.042583
0.251242
0.251242
0.146203
0.146203
0.146203
0.146203
0
0.002427
0.258659
2,223
85
80
26.152941
0.852549
0.469186
0
0
0
0
0.082936
0
0
0
0
0
0
1
0.035714
false
0
0.142857
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
1cd5217ab9022ac6fb992de8575b10b6f886806f
1,452
py
Python
backtest.py
YangTaoCN/IntroNeuralNetworks
45b0311f85c9cdd9d3f0806e0059201e2655697f
[ "MIT" ]
null
null
null
backtest.py
YangTaoCN/IntroNeuralNetworks
45b0311f85c9cdd9d3f0806e0059201e2655697f
[ "MIT" ]
null
null
null
backtest.py
YangTaoCN/IntroNeuralNetworks
45b0311f85c9cdd9d3f0806e0059201e2655697f
[ "MIT" ]
null
null
null
import pandas_datareader.data as pdr import yfinance as fix import numpy as np fix.pdr_override() def back_test(strategy, seq_len, ticker, start_date, end_date, dim): """ A simple back test for a given date period :param strategy: the chosen strategy. Note to have already formed the model, and fitted with...
40.333333
111
0.669421
223
1,452
4.251121
0.452915
0.031646
0.022152
0.037975
0.126582
0.044304
0
0
0
0
0
0.018018
0.235537
1,452
35
112
41.485714
0.836036
0.43595
0
0.111111
0
0
0.059055
0
0
0
0
0
0
1
0.055556
false
0
0.166667
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
1cd64e7eef2ac9aae41c0784aa1ab81588c6d2ef
2,278
py
Python
src/tespy/components/subsystems.py
jbueck/tespy
dd7a2633ce12f33b4936ae902f4fe5df29191690
[ "MIT" ]
null
null
null
src/tespy/components/subsystems.py
jbueck/tespy
dd7a2633ce12f33b4936ae902f4fe5df29191690
[ "MIT" ]
null
null
null
src/tespy/components/subsystems.py
jbueck/tespy
dd7a2633ce12f33b4936ae902f4fe5df29191690
[ "MIT" ]
null
null
null
# -*- coding: utf-8 """Module for custom component groups. It is possible to create subsystems of component groups in tespy. The subsystem class is the base class for custom subsystems. This file is part of project TESPy (github.com/oemof/tespy). It's copyrighted by the contributors recorded in the version control ...
25.311111
79
0.579017
266
2,278
4.890977
0.394737
0.036895
0.057648
0.046118
0.086088
0.05073
0
0
0
0
0
0.001267
0.306848
2,278
89
80
25.595506
0.822673
0.498244
0
0.3
0
0
0.093071
0
0
0
0
0
0
1
0.133333
false
0
0.033333
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1cd7fdf07b75be54fc81ee90365afd1023ab4167
7,940
py
Python
fairscale/optim/oss.py
blefaudeux/fairscale
aa5850107a37c7d5644b6079516e7ae1079ff5e8
[ "BSD-3-Clause" ]
1
2020-07-23T22:30:36.000Z
2020-07-23T22:30:36.000Z
fairscale/optim/oss.py
blefaudeux/fairscale
aa5850107a37c7d5644b6079516e7ae1079ff5e8
[ "BSD-3-Clause" ]
null
null
null
fairscale/optim/oss.py
blefaudeux/fairscale
aa5850107a37c7d5644b6079516e7ae1079ff5e8
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. import copy import logging from typing import TYPE_CHECKING, Any, Callable, List, Optional, Type import torch import tor...
37.990431
116
0.614987
973
7,940
4.848921
0.258993
0.043875
0.022043
0.016109
0.197117
0.169139
0.133319
0.109792
0.045782
0.045782
0
0.004699
0.303149
7,940
208
117
38.173077
0.848003
0.288287
0
0.188034
0
0
0.072434
0.004076
0
0
0
0
0.008547
1
0.08547
false
0
0.068376
0
0.239316
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
1cd93bcec91ffc966a787c6dda07671b2cad8b23
603
py
Python
homepage/urls.py
r0kym/SNI-backend
5fdc25df21846fadb313d439acba73782a6248c3
[ "MIT" ]
1
2021-06-03T22:07:24.000Z
2021-06-03T22:07:24.000Z
homepage/urls.py
r0kym/SNI-backend
5fdc25df21846fadb313d439acba73782a6248c3
[ "MIT" ]
1
2020-07-19T11:10:22.000Z
2020-07-19T11:10:22.000Z
homepage/urls.py
r0kym/SNI-backend
5fdc25df21846fadb313d439acba73782a6248c3
[ "MIT" ]
2
2020-07-02T12:05:03.000Z
2020-07-02T18:34:39.000Z
""" URLconf of the homepage """ from django.urls import path, include from . import views urlpatterns = [ path('', views.home, name='home'), path('auth', views.auth, name='auth'), path('auth/public', views.auth_public, name='auth-public'), path('auth/full', views.auth_full, name='auth-full'), p...
27.409091
66
0.656716
83
603
4.686747
0.337349
0.082262
0
0
0
0
0
0
0
0
0
0.011628
0.144279
603
21
67
28.714286
0.742248
0.038143
0
0
0
0
0.241259
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1cd940fc315fde5b1737f292edb3bdacd8fa4aa7
3,058
py
Python
srcflib/email/__init__.py
mas90/srcf-python
09ce45c65d2ddbec2cdfc559a7b5983398dbdfa0
[ "MIT" ]
null
null
null
srcflib/email/__init__.py
mas90/srcf-python
09ce45c65d2ddbec2cdfc559a7b5983398dbdfa0
[ "MIT" ]
null
null
null
srcflib/email/__init__.py
mas90/srcf-python
09ce45c65d2ddbec2cdfc559a7b5983398dbdfa0
[ "MIT" ]
null
null
null
""" Notification email machinery, for tasks to send credentials and instructions to users. Email templates placed inside the `templates` directory of this module should: - extend from `layout` - provide `subject` and `body` blocks """ from enum import Enum import os.path from jinja2 import Environment, FileSystemLo...
30.888889
96
0.657292
358
3,058
5.47486
0.351955
0.05
0.021429
0.027551
0
0
0
0
0
0
0
0.001299
0.244604
3,058
98
97
31.204082
0.847186
0.16416
0
0.081633
0
0
0.057179
0
0
0
0
0
0
1
0.102041
false
0
0.142857
0
0.346939
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
1cd9cb84780ce4068a648d1e9469d9570121c655
5,852
py
Python
src/train_nn.py
anirudhbhashyam/911-Calls-Seattle-Predictions
8c975ab6c6a85d514ad74388778e1b635ed3e63d
[ "MIT" ]
null
null
null
src/train_nn.py
anirudhbhashyam/911-Calls-Seattle-Predictions
8c975ab6c6a85d514ad74388778e1b635ed3e63d
[ "MIT" ]
null
null
null
src/train_nn.py
anirudhbhashyam/911-Calls-Seattle-Predictions
8c975ab6c6a85d514ad74388778e1b635ed3e63d
[ "MIT" ]
null
null
null
import os from typing import Union import tensorflow as tf import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split, KFold import utility as ut from variables import * # Read the data. train_data = pd.read_csv(os.path.join(DATA_PATH, ".".join([DATA...
27.866667
135
0.681647
840
5,852
4.564286
0.266667
0.039906
0.040689
0.023474
0.163276
0.11085
0.085029
0.031299
0.013041
0
0
0.015196
0.179084
5,852
209
136
28
0.782889
0.49607
0
0
0
0
0.048939
0.010267
0
0
0
0
0
1
0.052632
false
0
0.118421
0
0.210526
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
1cd9fdc42b14ec8f2d6ab3af8d353bbdb853608c
1,971
py
Python
pdserver/objects.py
Gustavo6046/polydung
e8626c67b0f59e00a2400b5a5c644e3f6b925e00
[ "MIT" ]
null
null
null
pdserver/objects.py
Gustavo6046/polydung
e8626c67b0f59e00a2400b5a5c644e3f6b925e00
[ "MIT" ]
null
null
null
pdserver/objects.py
Gustavo6046/polydung
e8626c67b0f59e00a2400b5a5c644e3f6b925e00
[ "MIT" ]
null
null
null
import base64 import random import string import netbyte import numpy as np try: import simplejson as json except ImportError: import json kinds = {} class PDObject(object): def __init__(self, game, kind, id, pos, properties): self.game = game self.kind = kind self.id = ...
27.375
115
0.559614
228
1,971
4.723684
0.324561
0.044568
0.024141
0.031569
0.038997
0
0
0
0
0
0
0.003687
0.312024
1,971
72
116
27.375
0.79056
0.027397
0
0.037037
0
0
0.037598
0
0
0
0
0
0
1
0.166667
false
0
0.148148
0.055556
0.425926
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
1cdc48fef2a5dcb4bffb7cadff760f5a6da8ed72
2,486
py
Python
preprocessor/base.py
shayanthrn/AGAIN-VC
41934f710d117d524b4a0bfdee7e9b845a56d422
[ "MIT" ]
3
2022-02-21T09:40:00.000Z
2022-02-27T13:52:19.000Z
preprocessor/base.py
shayanthrn/AGAIN-VC
41934f710d117d524b4a0bfdee7e9b845a56d422
[ "MIT" ]
null
null
null
preprocessor/base.py
shayanthrn/AGAIN-VC
41934f710d117d524b4a0bfdee7e9b845a56d422
[ "MIT" ]
1
2022-02-21T09:40:02.000Z
2022-02-21T09:40:02.000Z
import os import logging import numpy as np from tqdm import tqdm from functools import partial from multiprocessing.pool import ThreadPool import pyworld as pw from util.dsp import Dsp logger = logging.getLogger(__name__) def preprocess_one(input_items, module, output_path=''): input_path, basename = input_item...
37.666667
108
0.666935
338
2,486
4.724852
0.310651
0.068879
0.074515
0.052599
0.107702
0.067627
0
0
0
0
0
0.008264
0.221239
2,486
65
109
38.246154
0.816632
0
0
0.052632
0
0
0.134755
0.016895
0
0
0
0
0
1
0.087719
false
0
0.140351
0
0.298246
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
1cde121b7cc2a3e5e4fa33ad8b2f5852ba028e54
2,970
py
Python
test/core/s3_table_test_base.py
adidas/m3d-api
755d676452e4b10075fa65f9acfdbf30a6ee828e
[ "Apache-2.0" ]
24
2019-09-26T13:15:14.000Z
2021-11-10T11:10:04.000Z
test/core/s3_table_test_base.py
adidas/m3d-api
755d676452e4b10075fa65f9acfdbf30a6ee828e
[ "Apache-2.0" ]
null
null
null
test/core/s3_table_test_base.py
adidas/m3d-api
755d676452e4b10075fa65f9acfdbf30a6ee828e
[ "Apache-2.0" ]
11
2019-09-26T13:27:10.000Z
2020-11-04T03:13:20.000Z
import os from test.core.emr_system_unit_test_base import EMRSystemUnitTestBase from test.core.tconx_helper import TconxHelper class S3TableTestBase(EMRSystemUnitTestBase): default_tconx = \ "test/resources/s3_table_test_base/tconx-bdp-emr_test-dev-bi_test101.json" multi_partition_tconx = \ ...
37.594937
108
0.662626
347
2,970
5.368876
0.302594
0.030059
0.037574
0.032206
0.3489
0.2657
0.242083
0.17445
0.095008
0.095008
0
0.011553
0.27138
2,970
78
109
38.076923
0.849353
0.285522
0
0.217391
0
0
0.114925
0.107463
0
0
0
0
0.065217
1
0.043478
false
0
0.065217
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ce01d2d1af3efb76606596d816ab61448b4bddc
2,911
bzl
Python
sqlc/private/sqlc_toolchain.bzl
dmayle/rules_sqlc
c465542827a086994e9427e2c792bbc4355c3e70
[ "Apache-2.0" ]
2
2020-12-09T16:01:14.000Z
2021-02-15T09:24:27.000Z
sqlc/private/sqlc_toolchain.bzl
dmayle/rules_sqlc
c465542827a086994e9427e2c792bbc4355c3e70
[ "Apache-2.0" ]
2
2020-12-08T16:46:25.000Z
2020-12-09T16:17:55.000Z
sqlc/private/sqlc_toolchain.bzl
dmayle/rules_sqlc
c465542827a086994e9427e2c792bbc4355c3e70
[ "Apache-2.0" ]
3
2021-07-28T20:39:10.000Z
2022-01-26T19:33:28.000Z
# Copyright 2020 Plezentek, 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 applicable law or...
32.707865
86
0.61113
328
2,911
5.259146
0.390244
0.075362
0.049275
0.06087
0.151884
0.151884
0.132174
0
0
0
0
0.003857
0.28753
2,911
88
87
33.079545
0.827869
0.196153
0
0.144928
0
0
0.214531
0.125107
0
0
0
0
0
1
0.028986
false
0
0
0
0.043478
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
1ce0a4f2656bca31c4698766977c076b08c6dfcd
4,041
py
Python
configs/tracker_configs/new_test_20e_cam_1_new_short.py
nolanzzz/mtmct
8bbbc7ff2fa53ab8af424feaac3cf7424b87fff0
[ "MIT" ]
17
2021-09-01T23:13:14.000Z
2022-03-28T11:12:37.000Z
configs/tracker_configs/new_test_20e_cam_1_new_short.py
nolanzzz/MTMCT
8bbbc7ff2fa53ab8af424feaac3cf7424b87fff0
[ "MIT" ]
4
2022-01-21T05:47:09.000Z
2022-03-31T04:44:01.000Z
configs/tracker_configs/new_test_20e_cam_1_new_short.py
nolanzzz/MTMCT
8bbbc7ff2fa53ab8af424feaac3cf7424b87fff0
[ "MIT" ]
6
2021-12-16T02:08:43.000Z
2022-03-09T06:18:32.000Z
root = { "general" : { "display_viewer" : False, #The visible GPUS will be restricted to the numbers listed here. The pytorch (cuda:0) numeration will start at 0 #This is a trick to get everything onto the wanted gpus because just setting cuda:4 in the function calls will #not work...
48.686747
130
0.632022
520
4,041
4.619231
0.486538
0.023314
0.024979
0.039967
0.083264
0.046628
0.034138
0.034138
0
0
0
0.052285
0.247464
4,041
82
131
49.280488
0.737586
0.18832
0
0
0
0
0.287462
0.16055
0
0
0
0
0
1
0
false
0
0
0
0
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
1ce29cc9381fd7dde956750ac0935a544001e2ba
22,057
py
Python
ogusa/tax.py
hdoupe/OG-USA
f7e4d600b7a2993c7d1b53e23bfe29cfccaea770
[ "CC0-1.0" ]
null
null
null
ogusa/tax.py
hdoupe/OG-USA
f7e4d600b7a2993c7d1b53e23bfe29cfccaea770
[ "CC0-1.0" ]
2
2020-09-02T22:58:36.000Z
2020-09-03T19:29:46.000Z
ogusa/tax.py
prrathi/OG-USA
2e5c116bb8656ab190a59e431a8d57415fe26b08
[ "CC0-1.0" ]
null
null
null
''' ------------------------------------------------------------------------ Functions for taxes in the steady state and along the transition path. ------------------------------------------------------------------------ ''' # Packages import numpy as np from ogusa import utils ''' -----------------------------------...
36.823038
109
0.518611
3,005
22,057
3.658902
0.092845
0.051569
0.045839
0.068759
0.743975
0.686403
0.618008
0.592542
0.55698
0.538699
0
0.018618
0.340073
22,057
598
110
36.884615
0.736741
0.325792
0
0.556575
0
0
0.008172
0
0
0
0
0
0
1
0.033639
false
0
0.006116
0
0.073395
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
1ce4e6e88e3b37747a733ee2057c09e983742a39
478
py
Python
PythonDAdata/3358OS_06_Code/code6/pd_plotting.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:54.000Z
2020-02-22T18:55:54.000Z
PythonDAdata/3358OS_06_Code/code6/pd_plotting.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
null
null
null
PythonDAdata/3358OS_06_Code/code6/pd_plotting.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:57.000Z
2020-02-22T18:55:57.000Z
import matplotlib.pyplot as plt import numpy as np import pandas as pd df = pd.read_csv('transcount.csv') df = df.groupby('year').aggregate(np.mean) gpu = pd.read_csv('gpu_transcount.csv') gpu = gpu.groupby('year').aggregate(np.mean) df = pd.merge(df, gpu, how='outer', left_index=True, right_index=True) df = df.rep...
26.555556
101
0.717573
85
478
3.917647
0.447059
0.036036
0.054054
0.132132
0.156156
0
0
0
0
0
0
0.004651
0.100418
478
17
102
28.117647
0.769767
0
0
0
0
0
0.194561
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
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
1ce783ade7ec4e76f4c0abea82bc09661b19e042
29,965
py
Python
src/dataops/pandas_db.py
ShizhuZhang/ontask_b
acbf05ff9b18dae0a41c67d1e41774e54a890c40
[ "MIT" ]
null
null
null
src/dataops/pandas_db.py
ShizhuZhang/ontask_b
acbf05ff9b18dae0a41c67d1e41774e54a890c40
[ "MIT" ]
null
null
null
src/dataops/pandas_db.py
ShizhuZhang/ontask_b
acbf05ff9b18dae0a41c67d1e41774e54a890c40
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import logging import os.path import subprocess from collections import OrderedDict from itertools import izip import numpy as np import pandas as pd from django.conf import settings from django.core.cache import cache from django.db impo...
31.776246
86
0.64275
4,133
29,965
4.518993
0.125575
0.026021
0.018847
0.009049
0.435455
0.374204
0.348557
0.326819
0.304278
0.28163
0
0.005019
0.26858
29,965
942
87
31.809979
0.847151
0.41702
0
0.325359
0
0.002392
0.077164
0.010428
0.009569
0
0
0
0
1
0.086124
false
0.019139
0.033493
0.002392
0.205742
0.009569
0
0
0
null
0
0
0
0
0
0
0
0
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
1ce82884bd68028c036284e33b78a44ed716634f
3,881
py
Python
ducktape/template.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
ducktape/template.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
ducktape/template.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Confluent Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.184783
113
0.670188
481
3,881
5.274428
0.345114
0.02365
0.040205
0.02838
0.096965
0.07568
0.058337
0.058337
0.058337
0.058337
0
0.004511
0.257408
3,881
91
114
42.648352
0.875781
0.417934
0
0.051282
0
0
0.092857
0
0
0
0
0
0
1
0.076923
false
0
0.128205
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ceb4e48c8b6f66fc03698755dae7d3610a03921
1,258
py
Python
handlers/product_add.py
MuchkoM/CalorieMatchBot
ca26a1f6195079e10dd798ca9e77968438f2aa01
[ "MIT" ]
null
null
null
handlers/product_add.py
MuchkoM/CalorieMatchBot
ca26a1f6195079e10dd798ca9e77968438f2aa01
[ "MIT" ]
null
null
null
handlers/product_add.py
MuchkoM/CalorieMatchBot
ca26a1f6195079e10dd798ca9e77968438f2aa01
[ "MIT" ]
null
null
null
from telegram import Update from telegram.ext import Updater, CallbackContext, ConversationHandler, CommandHandler, MessageHandler, Filters from db import DBConnector import re str_matcher = r"\"(?P<name>.+)\"\s*(?P<fat>\d+)\s*/\s*(?P<protein>\d+)\s*/\s*(?P<carbohydrates>\d+)\s*(?P<kcal>\d+)" ADD_1 = 0 def add_0(...
32.25641
116
0.67806
156
1,258
5.326923
0.416667
0.024067
0.064982
0.079422
0
0
0
0
0
0
0
0.007835
0.188394
1,258
38
117
33.105263
0.806072
0.038951
0
0
0
0.037037
0.177057
0.089776
0
0
0
0
0
1
0.111111
false
0
0.148148
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
1cebb0fff2532d5f8a3a2e41a74346938730be3d
1,298
py
Python
python-packages/nolearn-0.5/build/lib.linux-x86_64-2.7/nolearn/tests/test_dataset.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2017-08-13T14:09:32.000Z
2018-07-16T23:39:00.000Z
python-packages/nolearn-0.5/build/lib.linux-x86_64-2.7/nolearn/tests/test_dataset.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
null
null
null
python-packages/nolearn-0.5/build/lib.linux-x86_64-2.7/nolearn/tests/test_dataset.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2018-04-02T06:45:11.000Z
2018-07-16T23:39:02.000Z
from mock import patch import numpy as np def test_dataset_simple(): from ..dataset import Dataset data = object() target = object() dataset = Dataset(data, target) assert dataset.data is data assert dataset.target is target @patch('nolearn.dataset.np.load') def test_dataset_with_filenames(...
24.961538
65
0.682589
179
1,298
4.793296
0.268156
0.141026
0.065268
0.111888
0.39627
0.177156
0.090909
0.090909
0
0
0
0.05706
0.20339
1,298
51
66
25.45098
0.772727
0
0
0.222222
0
0
0.035439
0.01772
0
0
0
0
0.305556
1
0.111111
false
0
0.166667
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1cec0b60edcd31e7b741951f8b76edad6144ee56
1,345
py
Python
src/Cipher/MultiLevelCaesarDecrypt.py
EpicTofuu/Assignment
293f99d20e8fa7d688c16a56c48a554bcd3c9e7d
[ "Apache-2.0" ]
null
null
null
src/Cipher/MultiLevelCaesarDecrypt.py
EpicTofuu/Assignment
293f99d20e8fa7d688c16a56c48a554bcd3c9e7d
[ "Apache-2.0" ]
null
null
null
src/Cipher/MultiLevelCaesarDecrypt.py
EpicTofuu/Assignment
293f99d20e8fa7d688c16a56c48a554bcd3c9e7d
[ "Apache-2.0" ]
null
null
null
import Cipher.tk from Cipher.tk import EncryptDecryptCoord, GetChiSquared, Mode def MultiDecrypt (message, alphabet, usables = 3, lan = "English", transformations = [], lowestchi = 9999, ogMessage = ""): msg = "" prev = (9999, (0, 0)) # (chi, key) for i in range (len(message)): ...
32.804878
150
0.584387
149
1,345
5.275168
0.409396
0.025445
0.072519
0
0
0
0
0
0
0
0
0.025105
0.289219
1,345
41
151
32.804878
0.797071
0.042379
0
0
0
0
0.006579
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.238095
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
1ced85b293ca7dbd18aca02752e3ef9bf70663c2
4,125
py
Python
alphacoders/__init__.py
whoiscc/alphacoders
685d1e7e02a7276ae0518114b0c6aab58914aab7
[ "MIT" ]
7
2019-09-22T16:16:15.000Z
2020-08-27T23:53:07.000Z
alphacoders/__init__.py
whoiscc/alphacoders
685d1e7e02a7276ae0518114b0c6aab58914aab7
[ "MIT" ]
1
2020-08-27T23:53:02.000Z
2020-08-28T06:10:10.000Z
alphacoders/__init__.py
whoiscc/alphacoders
685d1e7e02a7276ae0518114b0c6aab58914aab7
[ "MIT" ]
null
null
null
# from aiohttp.client_exceptions import ClientError from lxml import html from pathlib import Path from asyncio import create_task from functools import wraps def start_immediately(task): @wraps(task) def wrapper(*args, **kwargs): return create_task(task(*args, **kwargs)) return wrapper @start...
30.555556
95
0.629333
517
4,125
4.829787
0.234043
0.04165
0.050461
0.057669
0.287545
0.204245
0.082499
0.055266
0.031237
0
0
0.006319
0.27103
4,125
134
96
30.783582
0.824077
0.021576
0
0.209524
0
0
0.085544
0.021076
0
0
0
0
0.028571
1
0.047619
false
0.019048
0.047619
0.009524
0.190476
0.019048
0
0
0
null
0
0
0
0
0
0
0
0
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
1cef547e153ff6ac5a327c151e5950b2c7563ac2
1,298
py
Python
scripts/data_extract.py
amichalski2/WBC-SHAP
b69a4a8746aaf7a8dfacfdb4dbd85b4868d73ad0
[ "MIT" ]
null
null
null
scripts/data_extract.py
amichalski2/WBC-SHAP
b69a4a8746aaf7a8dfacfdb4dbd85b4868d73ad0
[ "MIT" ]
null
null
null
scripts/data_extract.py
amichalski2/WBC-SHAP
b69a4a8746aaf7a8dfacfdb4dbd85b4868d73ad0
[ "MIT" ]
null
null
null
import os import cv2 import random import numpy as np from tensorflow.keras.utils import to_categorical from scripts.consts import class_dict def get_data(path, split=0.2): X, y = [], [] for directory in os.listdir(path): dirpath = os.path.join(path, directory) print(directory, len(os.listd...
25.45098
79
0.617874
197
1,298
3.903553
0.314721
0.052016
0.028609
0.028609
0.140442
0.140442
0.140442
0.06502
0
0
0
0.038776
0.244992
1,298
50
80
25.96
0.745918
0
0
0
0
0
0.010786
0
0
0
0
0
0
1
0.03125
false
0
0.1875
0
0.25
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
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
1cf117501c6990cccaec0505efbf96de4aa8d218
299
py
Python
opentimesheet/profiles/tests/test_models.py
valerymelou/opentimesheet-server
0da97ebb3c3e59962132d1bc5e83e1d727f7331b
[ "MIT" ]
null
null
null
opentimesheet/profiles/tests/test_models.py
valerymelou/opentimesheet-server
0da97ebb3c3e59962132d1bc5e83e1d727f7331b
[ "MIT" ]
95
2021-02-20T21:53:29.000Z
2022-01-14T17:24:50.000Z
opentimesheet/profiles/tests/test_models.py
valerymelou/opentimesheet-server
0da97ebb3c3e59962132d1bc5e83e1d727f7331b
[ "MIT" ]
null
null
null
import pytest from opentimesheet.core.tests import TenantTestCase @pytest.mark.usefixtures("profile") class TestProfile(TenantTestCase): def test__str__(self): assert ( self.profile.first_name + " " + self.profile.last_name == self.profile.__str__() )
23
66
0.665552
31
299
6.096774
0.645161
0.174603
0.15873
0
0
0
0
0
0
0
0
0
0.230769
299
12
67
24.916667
0.821739
0
0
0
0
0
0.026756
0
0
0
0
0
0.111111
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1cf4fd8e02d4b81f15724ee999de5c59e9d28d5e
3,210
py
Python
setup.py
rohernandezz/coldtype
724234fce454699a469d17b6c78ae50fa8138169
[ "Apache-2.0" ]
null
null
null
setup.py
rohernandezz/coldtype
724234fce454699a469d17b6c78ae50fa8138169
[ "Apache-2.0" ]
null
null
null
setup.py
rohernandezz/coldtype
724234fce454699a469d17b6c78ae50fa8138169
[ "Apache-2.0" ]
null
null
null
import setuptools long_description = """ # Coldtype ### Programmatic display typography More info available at: [coldtype.goodhertz.com](https://coldtype.goodhertz.com) """ setuptools.setup( name="coldtype", version="0.6.6", author="Rob Stenson / Goodhertz", author_email="rob@goodhertz.com", des...
25.68
83
0.50405
259
3,210
6.189189
0.525097
0.03743
0.026201
0.03743
0.093575
0.093575
0.093575
0.093575
0.093575
0.093575
0
0.013365
0.347352
3,210
124
84
25.887097
0.75179
0.052648
0
0.193277
0
0
0.456042
0.102733
0
0
0
0
0
1
0
false
0
0.008403
0
0.008403
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
1cf68294fceda7fcab026e615d3065d3c8dac6d6
5,064
py
Python
GFOLD_problem.py
xdedss/SuccessiveConvexification
8b330b64a31f546ce92c1e34036c212484cbae5e
[ "MIT" ]
null
null
null
GFOLD_problem.py
xdedss/SuccessiveConvexification
8b330b64a31f546ce92c1e34036c212484cbae5e
[ "MIT" ]
null
null
null
GFOLD_problem.py
xdedss/SuccessiveConvexification
8b330b64a31f546ce92c1e34036c212484cbae5e
[ "MIT" ]
1
2021-01-18T11:47:19.000Z
2021-01-18T11:47:19.000Z
# -*- coding: utf-8 -*- # GFOLD_static_p3p4 min_=min from cvxpy import * import cvxpy_codegen as cpg from time import time import numpy as np import sys import GFOLD_params ''' As defined in the paper... PROBLEM 3: Minimum Landing Error (tf roughly solved) MINIMIZE : norm of landing error vector SUBJ TO : ...
33.536424
102
0.540482
802
5,064
3.290524
0.253117
0.015915
0.009094
0.009094
0.082607
0.032967
0.006821
0.006821
0.006821
0
0
0.05501
0.296406
5,064
150
103
33.76
0.685658
0.150276
0
0.02381
0
0
0.035331
0
0
0
0
0
0
1
0.011905
false
0
0.071429
0
0.095238
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
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
1cf6d2a88472187827c03695f3dd1ceab02478dc
6,154
py
Python
Hints.py
SarienFates/MMRandomizer
7c677140d83e94167fecee35e8c25216a51bdd56
[ "MIT" ]
36
2018-08-23T05:01:33.000Z
2021-03-17T03:25:20.000Z
Hints.py
SarienFates/MMRandomizer
7c677140d83e94167fecee35e8c25216a51bdd56
[ "MIT" ]
11
2018-09-07T21:43:13.000Z
2019-02-10T22:40:11.000Z
Hints.py
SarienFates/MMRandomizer
7c677140d83e94167fecee35e8c25216a51bdd56
[ "MIT" ]
7
2018-08-22T09:49:12.000Z
2020-01-12T20:23:29.000Z
import io import hashlib import logging import os import struct import random from HintList import getHint, getHintGroup, Hint from Utils import local_path #builds out general hints based on location and whether an item is required or not def buildGossipHints(world, rom): stoneAddresses = [0x938e4c, 0...
41.581081
183
0.666071
720
6,154
5.629167
0.35
0.084382
0.040711
0.045398
0.188502
0.134222
0.118431
0.096718
0.07698
0.07698
0
0.061392
0.248294
6,154
147
184
41.863946
0.814743
0.20377
0
0.203704
0
0
0.063794
0
0
0
0.074356
0
0
1
0.055556
false
0.009259
0.074074
0.009259
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
1cf8bcf99614d3811354f1616a7df6d5dc7e2771
786
py
Python
bokeh/models/tests/test_callbacks.py
ndepal/bokeh
1b514f28fe40eeb71954eac0c113b2debdb2eda9
[ "BSD-3-Clause" ]
1
2018-11-14T19:08:18.000Z
2018-11-14T19:08:18.000Z
bokeh/models/tests/test_callbacks.py
ndepal/bokeh
1b514f28fe40eeb71954eac0c113b2debdb2eda9
[ "BSD-3-Clause" ]
1
2021-05-09T02:45:17.000Z
2021-05-09T02:45:17.000Z
bokeh/models/tests/test_callbacks.py
ndepal/bokeh
1b514f28fe40eeb71954eac0c113b2debdb2eda9
[ "BSD-3-Clause" ]
1
2020-06-17T05:47:16.000Z
2020-06-17T05:47:16.000Z
from pytest import raises from bokeh.models import CustomJS, Slider def test_js_callback(): slider = Slider() cb = CustomJS(code="foo();", args=dict(x=slider)) assert 'foo()' in cb.code assert cb.args['x'] is slider cb = CustomJS(code="foo();", args=dict(x=3)) assert 'foo()' in cb.code a...
22.457143
56
0.605598
119
786
3.932773
0.277311
0.08547
0.094017
0.111111
0.529915
0.529915
0.529915
0.529915
0.405983
0.405983
0
0.006734
0.244275
786
34
57
23.117647
0.781145
0.043257
0
0.48
0
0
0.056075
0
0
0
0
0
0.32
1
0.16
false
0
0.08
0
0.24
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
1cf8fa369efacd3241e998562ea192fd61a8484a
639
py
Python
tests/test_0150-attributeerrors.py
martindurant/awkward-1.0
a3221ee1bab6551dd01d5dd07a1d2dc24fd02c38
[ "BSD-3-Clause" ]
null
null
null
tests/test_0150-attributeerrors.py
martindurant/awkward-1.0
a3221ee1bab6551dd01d5dd07a1d2dc24fd02c38
[ "BSD-3-Clause" ]
null
null
null
tests/test_0150-attributeerrors.py
martindurant/awkward-1.0
a3221ee1bab6551dd01d5dd07a1d2dc24fd02c38
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/jpivarski/awkward-1.0/blob/master/LICENSE from __future__ import absolute_import import sys import pytest import numpy import awkward1 class Dummy(awkward1.Record): @property def broken(self): raise AttributeError("I'm broken!") def test(): behavi...
23.666667
88
0.666667
84
639
4.964286
0.607143
0.009592
0.038369
0
0
0
0
0
0
0
0
0.019231
0.186228
639
26
89
24.576923
0.782692
0.181534
0
0
0
0
0.086538
0
0
0
0
0
0.058824
1
0.117647
false
0
0.294118
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1cf9ec2d86459244af14ac26fb2ee812ead9cfcb
1,262
py
Python
ievv_opensource/demo/batchframeworkdemo/apps.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
null
null
null
ievv_opensource/demo/batchframeworkdemo/apps.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
37
2015-10-26T09:14:12.000Z
2022-02-10T10:35:33.000Z
ievv_opensource/demo/batchframeworkdemo/apps.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
1
2015-11-06T07:56:34.000Z
2015-11-06T07:56:34.000Z
from django.apps import AppConfig from ievv_opensource import ievv_batchframework from ievv_opensource.ievv_batchframework import batchregistry class HelloWorldAction(ievv_batchframework.Action): def execute(self): self.logger.info('Hello world! %r', self.kwargs) class HelloWorldAsyncAction(ievv_batchf...
33.210526
89
0.655309
116
1,262
6.982759
0.353448
0.024691
0.02963
0.02963
0.395062
0.388889
0.380247
0.380247
0.380247
0.251852
0
0
0.260697
1,262
37
90
34.108108
0.868167
0
0
0.275862
0
0.034483
0.150555
0.098257
0
0
0
0
0
1
0.103448
false
0
0.103448
0
0.37931
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
1cfa6189a373dd681dccafae6be7e17e2a430784
4,438
py
Python
evaluate.py
DeppMeng/DANNet
831eb70d44a4a0b6f6f57ca2014521fc64d1906c
[ "Apache-2.0" ]
null
null
null
evaluate.py
DeppMeng/DANNet
831eb70d44a4a0b6f6f57ca2014521fc64d1906c
[ "Apache-2.0" ]
null
null
null
evaluate.py
DeppMeng/DANNet
831eb70d44a4a0b6f6f57ca2014521fc64d1906c
[ "Apache-2.0" ]
null
null
null
import os import torch import numpy as np from PIL import Image import torch.nn as nn from torch.utils import data from network import * from dataset.zurich_night_dataset import zurich_night_DataSet from configs.test_config import get_arguments palette = [128, 64, 128, 244, 35, 232, 70, 70, 70, 102, 102, 156, 190, ...
37.294118
116
0.630689
624
4,438
4.350962
0.304487
0.046409
0.051565
0.027993
0.20442
0.18453
0.141436
0.141436
0.069245
0.069245
0
0.113906
0.220595
4,438
118
117
37.610169
0.671003
0.014421
0
0.066667
0
0
0.033035
0.004818
0
0
0
0
0
1
0.022222
false
0
0.1
0
0.133333
0.011111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e8000d1d11cc25ead163054e538c9037a92ad52f
2,090
py
Python
test/pyfrechet_visualize.py
compgeomTU/frechetForCurves
625bfe32a45d23b194226b4ac7713ded09bd2825
[ "MIT" ]
null
null
null
test/pyfrechet_visualize.py
compgeomTU/frechetForCurves
625bfe32a45d23b194226b4ac7713ded09bd2825
[ "MIT" ]
null
null
null
test/pyfrechet_visualize.py
compgeomTU/frechetForCurves
625bfe32a45d23b194226b4ac7713ded09bd2825
[ "MIT" ]
null
null
null
# Author: Will Rodman # wrodman@tulane.edu # # Command line to run program: # python3 pyfrechet_visualize.py import sys, os, unittest sys.path.insert(0, "../") from pyfrechet.distance import StrongDistance from pyfrechet.visualize import FreeSpaceDiagram, Trajectories TEST_DATA = "sp500" if TEST_DATA == "sp500": ...
27.866667
71
0.704306
242
2,090
5.797521
0.31405
0.068425
0.071276
0.10335
0.385602
0.292231
0.292231
0.292231
0.292231
0.292231
0
0.018811
0.211483
2,090
74
72
28.243243
0.832524
0.04689
0
0.269231
0
0
0.044814
0.029204
0
0
0
0
0.019231
1
0.115385
false
0.019231
0.057692
0
0.211538
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
e800c566ae2b10b4aec8821bd3d2096d44b1f7e9
6,403
py
Python
py_ser_freeastro/core.py
nww2007/py_ser_freeastro
5806cf83316f48a6db0abe4a88e4485fc04a1b4d
[ "MIT" ]
null
null
null
py_ser_freeastro/core.py
nww2007/py_ser_freeastro
5806cf83316f48a6db0abe4a88e4485fc04a1b4d
[ "MIT" ]
null
null
null
py_ser_freeastro/core.py
nww2007/py_ser_freeastro
5806cf83316f48a6db0abe4a88e4485fc04a1b4d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # vim:fileencoding=UTF-8 # -*- coding: UTF-8 -*- """ Created on 15 juny 2019 y. @author: Vlsdimir Nekrasov nww2007@mail.ru """ import sys import struct import numpy as np from progress.bar import Bar import logging logging.basicConfig(format = u'%(filename)s:%(lineno)d: %(levelname)-8s [%(asc...
38.341317
165
0.580353
895
6,403
3.943017
0.264804
0.079343
0.095211
0.113347
0.386795
0.31567
0.277132
0.263531
0.263531
0.254463
0
0.127188
0.259566
6,403
166
166
38.572289
0.617169
0.509449
0
0
0
0.016393
0.060209
0.022536
0
0
0
0
0
1
0.065574
false
0
0.081967
0
0.180328
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
e801eb5a0287658d171711d53067b93a3c272ccf
10,915
py
Python
sgdml_dataset_generation/readers/fchk.py
humeniuka/sGDML_dataset_generation
a99f792b6aac7ff869ebcd1bd7a7226ca81f43ee
[ "MIT" ]
null
null
null
sgdml_dataset_generation/readers/fchk.py
humeniuka/sGDML_dataset_generation
a99f792b6aac7ff869ebcd1bd7a7226ca81f43ee
[ "MIT" ]
null
null
null
sgdml_dataset_generation/readers/fchk.py
humeniuka/sGDML_dataset_generation
a99f792b6aac7ff869ebcd1bd7a7226ca81f43ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __all__ = ["FormattedCheckpointFile"] # # Imports import numpy as np import scipy.linalg as sla from collections import OrderedDict import re import logging # # Local Imports from sgdml_dataset_generation import units from sgdml_dataset_generation.units import hbar # # L...
38.298246
132
0.536143
1,316
10,915
4.396657
0.287994
0.023505
0.013308
0.011061
0.144314
0.109402
0.080539
0.033529
0.02074
0.02074
0
0.019153
0.368575
10,915
284
133
38.433099
0.820371
0.40055
0
0.166667
0
0.017544
0.163988
0.003974
0
0
0
0
0.026316
1
0.070175
false
0
0.061404
0
0.201754
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
e803805e9e6f0689766fc36aba000586323cb80c
3,097
py
Python
fuzzywuzzy/process.py
rhasspy/fuzzywuzzy
e5b486c756b392481ec8e1382eedce280e56fd69
[ "MIT" ]
3
2015-10-18T18:00:08.000Z
2021-03-23T06:42:02.000Z
fuzzywuzzy/process.py
rhasspy/fuzzywuzzy
e5b486c756b392481ec8e1382eedce280e56fd69
[ "MIT" ]
20
2015-01-16T18:46:53.000Z
2016-02-18T22:01:00.000Z
process.py
agile-geoscience/fuzzylas
0298292878d7fb6c0a788a1a2a21b543f49432bd
[ "Apache-2.0" ]
10
2015-08-11T10:12:56.000Z
2022-02-20T14:45:50.000Z
#!/usr/bin/env python # encoding: utf-8 """ process.py Copyright (c) 2011 Adam Cohen 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 t...
35.193182
119
0.668389
440
3,097
4.684091
0.438636
0.042698
0.030568
0.027171
0.033964
0.033964
0
0
0
0
0
0.006271
0.22764
3,097
87
120
35.597701
0.855351
0.635777
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.107143
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e803dd122dcc777403d95c61024e9847e1e285a3
2,063
py
Python
day03/day03.py
robfalck/AoC2017
fa19f3fb42d979b60888a1954bea571c9d4ee735
[ "Apache-2.0" ]
null
null
null
day03/day03.py
robfalck/AoC2017
fa19f3fb42d979b60888a1954bea571c9d4ee735
[ "Apache-2.0" ]
null
null
null
day03/day03.py
robfalck/AoC2017
fa19f3fb42d979b60888a1954bea571c9d4ee735
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, division, absolute_import import numpy as np INPUT = 265149 def part1(number): skip = 2 d = 1 row = None col = None for shell_idx in range(1, 10000): size = shell_idx * 2 + 1 a = d + skip b = a + skip c = b + skip d ...
21.946809
64
0.448376
268
2,063
3.354478
0.279851
0.046719
0.040044
0.03337
0.140156
0.140156
0.093437
0
0
0
0
0.050644
0.435288
2,063
93
65
22.182796
0.72103
0.046049
0
0.138462
0
0
0.022074
0
0
0
0
0
0
1
0.030769
false
0
0.030769
0
0.092308
0.046154
0
0
0
null
0
0
0
0
0
0
0
0
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
e805511a04665665499fc07f9e4ac3855c825235
1,801
py
Python
ahrs/common/geometry.py
jaluebbe/ahrs
4b4a33b1006e0d455a71ac8379a2697202361758
[ "MIT" ]
184
2019-09-06T07:58:52.000Z
2022-03-31T04:27:09.000Z
ahrs/common/geometry.py
geoKinga/ahrs
87f9210cfcf6c545d86ae8588a93f012020164ee
[ "MIT" ]
48
2019-11-13T15:42:46.000Z
2022-03-31T23:53:53.000Z
ahrs/common/geometry.py
geoKinga/ahrs
87f9210cfcf6c545d86ae8588a93f012020164ee
[ "MIT" ]
34
2019-12-19T16:22:00.000Z
2022-03-14T09:51:50.000Z
# -*- coding: utf-8 -*- """ Geometrical functions --------------------- References ---------- .. [W1] Wikipedia: https://de.wikipedia.org/wiki/Ellipse#Ellipsengleichung_(Parameterform) .. [WAE] Wolfram Alpha: Ellipse. (http://mathworld.wolfram.com/Ellipse.html) """ import numpy as np from typing import Union def ci...
27.287879
124
0.599667
264
1,801
4.064394
0.325758
0.050326
0.044734
0.050326
0.514445
0.38397
0.212488
0.160298
0.160298
0.160298
0
0.020319
0.23487
1,801
65
125
27.707692
0.758345
0.533037
0
0.307692
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e8072be9245c30cff262ca9e32de353f2b9c7c66
4,435
py
Python
htdocs/plotting/auto/scripts100/p116.py
jamayfieldjr/iem
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
[ "MIT" ]
1
2019-10-07T17:01:24.000Z
2019-10-07T17:01:24.000Z
htdocs/plotting/auto/scripts100/p116.py
jamayfieldjr/iem
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
[ "MIT" ]
null
null
null
htdocs/plotting/auto/scripts100/p116.py
jamayfieldjr/iem
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
[ "MIT" ]
null
null
null
"""Monthly HDD/CDD Totals.""" import datetime from pandas.io.sql import read_sql from pyiem.plot.use_agg import plt from pyiem.util import get_dbconn, get_autoplot_context from pyiem.exceptions import NoDataFound PDICT = {'cdd': 'Cooling Degree Days', 'hdd': 'Heating Degree Days'} def get_description(): ...
34.92126
76
0.555355
606
4,435
4.011551
0.384488
0.024681
0.020979
0.018511
0.138215
0.126697
0.061703
0.061703
0.061703
0.061703
0
0.038426
0.266516
4,435
126
77
35.198413
0.708884
0.017587
0
0.09434
0
0
0.378889
0.019359
0
0
0
0
0
1
0.018868
false
0
0.056604
0
0.09434
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e807b65f64a7deff0b619d067868e319ecf01061
12,502
py
Python
examples/horovod/ray_torch_shuffle.py
krfricke/ray_shuffling_data_loader
b238871d45218c655cd0fcd78b8bf2a3940087f9
[ "Apache-2.0" ]
16
2021-05-13T08:03:03.000Z
2021-09-30T00:20:01.000Z
examples/horovod/ray_torch_shuffle.py
krfricke/ray_shuffling_data_loader
b238871d45218c655cd0fcd78b8bf2a3940087f9
[ "Apache-2.0" ]
12
2021-05-04T22:18:01.000Z
2021-07-14T12:10:40.000Z
examples/horovod/ray_torch_shuffle.py
krfricke/ray_shuffling_data_loader
b238871d45218c655cd0fcd78b8bf2a3940087f9
[ "Apache-2.0" ]
5
2021-05-18T02:57:50.000Z
2021-07-01T11:23:05.000Z
import os import pickle import time import timeit import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np import torch import tempfile import horovod.torch as hvd from horovod.ray import RayExecutor from ray_shuffling_data_loader.torch_dataset import (TorchShufflingDatase...
35.925287
79
0.654375
1,689
12,502
4.622262
0.201303
0.042654
0.054438
0.016396
0.256052
0.192135
0.170104
0.130652
0.120917
0.103241
0
0.017533
0.233563
12,502
347
80
36.028818
0.797224
0.06431
0
0.191126
0
0
0.201456
0.043854
0
0
0
0.002882
0
1
0.017065
false
0
0.05802
0
0.088737
0.068259
0
0
0
null
0
0
0
0
0
0
0
0
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
e80814f0c20b1ee061421e9446a7dafff2db52a5
13,051
py
Python
tests/test_main/test_base/tests.py
PitonX60/django-firebird
407bd5916a8ae37184d06adb3b943d6bb4f7076f
[ "BSD-3-Clause" ]
51
2015-01-13T00:16:36.000Z
2022-01-28T12:18:22.000Z
tests/test_main/test_base/tests.py
PitonX60/django-firebird
407bd5916a8ae37184d06adb3b943d6bb4f7076f
[ "BSD-3-Clause" ]
84
2015-01-28T19:08:22.000Z
2022-03-26T02:04:03.000Z
tests/test_main/test_base/tests.py
PitonX60/django-firebird
407bd5916a8ae37184d06adb3b943d6bb4f7076f
[ "BSD-3-Clause" ]
47
2015-01-13T00:53:27.000Z
2021-08-03T04:20:31.000Z
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from django.conf import settings from django.db import connection, DatabaseError from django.db.models import F, DateField, DateTimeField, IntegerField, TimeField, CASCADE from django.db.models.fields.related import ForeignKey from django.db.models.func...
42.930921
257
0.64815
1,528
13,051
5.338351
0.152487
0.038617
0.039843
0.034326
0.549344
0.490622
0.46267
0.408851
0.393037
0.382248
0
0.014994
0.233469
13,051
303
258
43.072607
0.80038
0.026588
0
0.252137
0
0.029915
0.184067
0.031139
0
0
0
0
0.153846
1
0.098291
false
0.004274
0.038462
0.008547
0.213675
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
e80f9dcf1fbaf95d64db548a68a4a0e2a7c25dc9
3,993
py
Python
tests/test_liif.py
Yshuo-Li/mmediting-test
ff8349a183b3d266495a53be0c8ad8e342e8b461
[ "Apache-2.0" ]
2
2021-05-16T14:49:23.000Z
2022-03-28T01:16:44.000Z
tests/test_liif.py
Yshuo-Li/mmediting-test
ff8349a183b3d266495a53be0c8ad8e342e8b461
[ "Apache-2.0" ]
null
null
null
tests/test_liif.py
Yshuo-Li/mmediting-test
ff8349a183b3d266495a53be0c8ad8e342e8b461
[ "Apache-2.0" ]
2
2021-04-22T12:10:14.000Z
2021-05-19T02:09:48.000Z
import numpy as np import torch import torch.nn as nn from mmcv.runner import obj_from_dict from mmcv.utils.config import Config from mmedit.models import build_model from mmedit.models.losses import L1Loss from mmedit.models.registry import COMPONENTS @COMPONENTS.register_module() class BP(nn.Module): """A simp...
34.721739
77
0.615577
516
3,993
4.579457
0.284884
0.081253
0.0584
0.045705
0.419382
0.372408
0.336014
0.336014
0.336014
0.336014
0
0.030931
0.238918
3,993
114
78
35.026316
0.746627
0.069371
0
0.26506
0
0
0.080033
0
0
0
0
0
0.289157
1
0.036145
false
0
0.096386
0
0.156627
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
e80fc2194a7c4cdddb23cee4ca11cad0caafde7b
3,739
py
Python
database/signals.py
ccraddock/beiwe-backend-cc
b37c2604800aafcf81c93bc14673ada6aed17a39
[ "BSD-3-Clause" ]
null
null
null
database/signals.py
ccraddock/beiwe-backend-cc
b37c2604800aafcf81c93bc14673ada6aed17a39
[ "BSD-3-Clause" ]
null
null
null
database/signals.py
ccraddock/beiwe-backend-cc
b37c2604800aafcf81c93bc14673ada6aed17a39
[ "BSD-3-Clause" ]
null
null
null
from django.utils import timezone from django.core.exceptions import ObjectDoesNotExist from django.db.models.signals import post_save, pre_save from django.dispatch import receiver from database.study_models import DeviceSettings, Study, Survey, SurveyArchive @receiver(post_save, sender=Study) def popula...
46.7375
127
0.70099
510
3,739
5.021569
0.347059
0.031238
0.018743
0.022257
0.100742
0.018743
0
0
0
0
0
0.000701
0.237229
3,739
79
128
47.329114
0.897265
0.457074
0
0.189189
0
0
0.035998
0
0
0
0
0
0
1
0.054054
false
0
0.135135
0
0.216216
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
e810f0787ee0e3fe022cdf8b169ed014bf9c5752
673
py
Python
docs/examples/notify/notify_skeleton.py
Blakstar26/npyscreen
d47f9c78dc9fea6f66aaef60403e748bb89e52f7
[ "BSD-2-Clause" ]
null
null
null
docs/examples/notify/notify_skeleton.py
Blakstar26/npyscreen
d47f9c78dc9fea6f66aaef60403e748bb89e52f7
[ "BSD-2-Clause" ]
null
null
null
docs/examples/notify/notify_skeleton.py
Blakstar26/npyscreen
d47f9c78dc9fea6f66aaef60403e748bb89e52f7
[ "BSD-2-Clause" ]
null
null
null
import npyscreen class NotifyBaseExample(npyscreen.Form): def create(self): key_of_choice = 'p' what_to_display = 'Press {} for popup \n Press escape key to quit'.format(key_of_choice) self.how_exited_handers[npyscreen.wgwidget.EXITED_ESCAPE] = self.exit_application self.add(npysc...
29.26087
96
0.707281
81
673
5.617284
0.592593
0.021978
0.048352
0
0
0
0
0
0
0
0
0
0.190193
673
23
97
29.26087
0.834862
0
0
0
0
0
0.115727
0
0
0
0
0
0
1
0.2
false
0
0.066667
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e8112e27cfea3db2efc0a5a799487bb00e1650b2
5,656
py
Python
practicioner_bundle/ch15-neural_style/pyimagesearch/nn/conv/minigooglenet.py
romanroson/pis_code
1221c39c23bec62ba419f9a324f88b0d8e5e4b5b
[ "MIT" ]
1
2020-06-07T04:02:16.000Z
2020-06-07T04:02:16.000Z
practicioner_bundle/ch15-neural_style/pyimagesearch/nn/conv/minigooglenet.py
romanroson/pis_code
1221c39c23bec62ba419f9a324f88b0d8e5e4b5b
[ "MIT" ]
null
null
null
practicioner_bundle/ch15-neural_style/pyimagesearch/nn/conv/minigooglenet.py
romanroson/pis_code
1221c39c23bec62ba419f9a324f88b0d8e5e4b5b
[ "MIT" ]
2
2020-03-25T10:51:54.000Z
2020-09-18T09:36:44.000Z
# -*- coding: utf-8 -*- """Implementation of MiniGoogLeNet architecture. This implementation is based on the original implemetation of GoogLeNet. The authors of the net used BN before Activation layer. This should be switched. """ from keras.layers.normalization import BatchNormalization from keras.layers.convolutiona...
39.277778
102
0.647454
703
5,656
5.103841
0.221906
0.062709
0.041806
0.06466
0.440635
0.360089
0.319119
0.229376
0.212096
0.212096
0
0.025042
0.265736
5,656
143
103
39.552448
0.838912
0.423798
0
0.157895
0
0
0.014691
0
0
0
0
0
0
1
0.070175
false
0
0.210526
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e811afcf8e2f5fbd26eb4879dec2b68ca870f0fa
1,475
py
Python
03/triangle.py
machinelearningdeveloper/aoc_2016
e2c2f7909b09c2ad27f87e05a80f2b2feee6a3a2
[ "MIT" ]
null
null
null
03/triangle.py
machinelearningdeveloper/aoc_2016
e2c2f7909b09c2ad27f87e05a80f2b2feee6a3a2
[ "MIT" ]
null
null
null
03/triangle.py
machinelearningdeveloper/aoc_2016
e2c2f7909b09c2ad27f87e05a80f2b2feee6a3a2
[ "MIT" ]
null
null
null
"""Test whether putative triangles, specified as triples of side lengths, in fact are possible.""" def load_triangles(filename): """Load triangles from filename.""" triangles = [] with open(filename) as f: for line in f: if line.strip(): triangles.append(tuple([int(side) ...
31.382979
76
0.51661
225
1,475
3.364444
0.324444
0.036988
0.019815
0.023778
0.239102
0.239102
0.239102
0.173052
0.10568
0.10568
0
0.022845
0.347119
1,475
46
77
32.065217
0.76324
0.24678
0
0.193548
0
0
0
0
0
0
0
0
0
1
0.096774
false
0
0
0
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e812c612130c7c8d3bd444f6ef7c0936cdb5b8cc
9,594
py
Python
backend/api/tests/mixins/credit_trade_relationship.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
18
2017-05-10T21:55:11.000Z
2021-03-01T16:41:32.000Z
backend/api/tests/mixins/credit_trade_relationship.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
1,167
2017-03-04T00:18:43.000Z
2022-03-03T22:31:51.000Z
backend/api/tests/mixins/credit_trade_relationship.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
48
2017-03-09T17:19:39.000Z
2022-02-24T16:38:17.000Z
# -*- coding: utf-8 -*- # pylint: disable=no-member,invalid-name,duplicate-code """ REST API Documentation for the NRS TFRS Credit Trading Application The Transportation Fuels Reporting System is being designed to streamline compliance reporting for transportation fuel suppliers in accordance with the ...
36.340909
96
0.575985
897
9,594
6.012263
0.296544
0.07417
0.066753
0.120156
0.308734
0.287224
0.239941
0.158353
0.057853
0.057853
0
0.002698
0.343235
9,594
263
97
36.479087
0.853198
0.17636
0
0.291429
0
0
0.098927
0.00916
0
0
0
0
0
1
0.017143
false
0
0.045714
0
0.114286
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
e814b12d587f4fdbbd8d27aa48d2d332f3fb169b
14,345
py
Python
mybot.py
johnnyboiii3020/matchmaking-bot
c36df430fd8b3292f34fb2e156e65d9914e0e497
[ "MIT" ]
null
null
null
mybot.py
johnnyboiii3020/matchmaking-bot
c36df430fd8b3292f34fb2e156e65d9914e0e497
[ "MIT" ]
null
null
null
mybot.py
johnnyboiii3020/matchmaking-bot
c36df430fd8b3292f34fb2e156e65d9914e0e497
[ "MIT" ]
null
null
null
import discord import json import random import os from discord.ext import commands TOKEN = "" client = commands.Bot(command_prefix = '--') os.chdir(r'D:\Programming\Projects\Discord bot\jsonFiles') SoloCounter = 30 SolominCounter = 10 Queueiter = 1 T_Queueiter = 1 TeamCounter = 50 TeamminCounter = 20 ...
40.408451
171
0.594772
1,762
14,345
4.738933
0.111805
0.035569
0.017605
0.02012
0.603832
0.522874
0.463832
0.382036
0.326228
0.325269
0
0.018072
0.23625
14,345
354
172
40.522599
0.744067
0.01199
0
0.450331
0
0
0.110995
0.00232
0
0
0
0
0
1
0
false
0.039735
0.016556
0
0.016556
0.036424
0
0
0
null
0
0
0
0
0
0
0
0
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
e814cda6088e4f32617041b4185b65bf218042f4
18,547
py
Python
conversation.py
markemus/economy
d7b3be9b2095393d7ee5c8967b9fcee8998776bb
[ "MIT" ]
2
2017-05-09T22:46:18.000Z
2021-09-07T06:04:57.000Z
conversation.py
markemus/economy
d7b3be9b2095393d7ee5c8967b9fcee8998776bb
[ "MIT" ]
null
null
null
conversation.py
markemus/economy
d7b3be9b2095393d7ee5c8967b9fcee8998776bb
[ "MIT" ]
3
2017-07-20T21:22:30.000Z
2020-10-17T13:04:28.000Z
import database as d import numpy as np import random from transitions import Machine #Conversations are markov chains. Works as follows: a column vector for each CURRENT state j, a row vector for each TARGET state i. #Each entry i,j = the probability of moving to state i from state j. #target state D = end of convers...
40.942605
153
0.586025
2,147
18,547
5.05496
0.129017
0.013268
0.010504
0.00774
0.500691
0.461716
0.437114
0.394545
0.348567
0.30176
0
0.038397
0.289481
18,547
453
154
40.942605
0.785172
0.219335
0
0.269504
0
0
0.106914
0
0
0
0
0
0
1
0.056738
false
0.003546
0.014184
0
0.102837
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
e815ba1c0be05931c138a14af77c58193d1bc5db
3,812
py
Python
blog/views.py
farman99ahmed/diyblog
2e4548037c95b5563d2fdba3d05b488330a5e2b4
[ "MIT" ]
null
null
null
blog/views.py
farman99ahmed/diyblog
2e4548037c95b5563d2fdba3d05b488330a5e2b4
[ "MIT" ]
null
null
null
blog/views.py
farman99ahmed/diyblog
2e4548037c95b5563d2fdba3d05b488330a5e2b4
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from .forms import AuthorForm, BlogForm, NewUserForm from .models import Author, Blog from django.contrib.auth import login, authenticate, logout from django.contrib import messages from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth.decorator...
33.147826
100
0.670776
476
3,812
5.277311
0.168067
0.038217
0.06051
0.044586
0.462182
0.392516
0.308121
0.216561
0.157643
0.029459
0
0.00198
0.204879
3,812
114
101
33.438596
0.82679
0.006034
0
0.455446
0
0
0.135727
0.018748
0
0
0
0
0
1
0.108911
false
0.039604
0.069307
0
0.326733
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
e81917ac02c5b07e90d8b7911baf13d1cd91a319
574
py
Python
downloadMusic/main.py
yaosir0317/my_first
387fe21aa529bca1d08ed45e13269aca23dce251
[ "MIT" ]
null
null
null
downloadMusic/main.py
yaosir0317/my_first
387fe21aa529bca1d08ed45e13269aca23dce251
[ "MIT" ]
null
null
null
downloadMusic/main.py
yaosir0317/my_first
387fe21aa529bca1d08ed45e13269aca23dce251
[ "MIT" ]
null
null
null
from enum import Enum import requests class MusicAPP(Enum): qq = "qq" wy = "netease" PRE_URL = "http://www.musictool.top/" headers = {"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"} def get_music_list(name, app, pag...
24.956522
149
0.663763
89
574
4.101124
0.674157
0.054795
0.065753
0
0
0
0
0
0
0
0
0.058577
0.167247
574
22
150
26.090909
0.705021
0
0
0
0
0.071429
0.343206
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
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
e81d5f97eebe858da4677a4562a912397f01a885
5,487
py
Python
rdkit/ML/InfoTheory/BitRank.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
1,609
2015-01-05T02:41:13.000Z
2022-03-30T21:57:24.000Z
rdkit/ML/InfoTheory/BitRank.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
3,412
2015-01-06T12:13:33.000Z
2022-03-31T17:25:41.000Z
rdkit/ML/InfoTheory/BitRank.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
811
2015-01-11T03:33:48.000Z
2022-03-28T11:57:49.000Z
# # Copyright (C) 2001,2002,2003 greg Landrum and Rational Discovery LLC # """ Functionality for ranking bits using info gains **Definitions used in this module** - *sequence*: an object capable of containing other objects which supports __getitem__() and __len__(). Examples of these include lists, tupl...
27.163366
97
0.68635
682
5,487
5.483871
0.269795
0.024064
0.01123
0.034759
0.506417
0.477273
0.459091
0.459091
0.459091
0.341979
0
0.008619
0.217605
5,487
201
98
27.298507
0.862567
0.536905
0
0.241935
0
0
0.060657
0
0
0
0
0
0
1
0.080645
false
0
0.032258
0
0.193548
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