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
d6f04c69930d8daaf3665187e1843a857960e36a
2,124
py
Python
k1lib/cli/gb.py
157239n/k1lib
285520b8364ad5b21cb736b44471aa939e692e9b
[ "MIT" ]
1
2021-08-11T19:10:08.000Z
2021-08-11T19:10:08.000Z
k1lib/cli/gb.py
157239n/k1lib
285520b8364ad5b21cb736b44471aa939e692e9b
[ "MIT" ]
null
null
null
k1lib/cli/gb.py
157239n/k1lib
285520b8364ad5b21cb736b44471aa939e692e9b
[ "MIT" ]
null
null
null
# AUTOGENERATED FILE! PLEASE DON'T EDIT """All tools related to GenBank file format. Expected to use behind the "gb" module name, like this:: from k1lib.imports import * cat("abc.gb") | gb.feats() """ from k1lib import cli __all__ = ["feats", "origin"] class feats(cli.BaseCli): """Fetches features, each on...
47.2
102
0.563559
297
2,124
3.969697
0.393939
0.030534
0.025445
0.030534
0.083121
0.083121
0.083121
0.040712
0
0
0
0.015267
0.259887
2,124
45
103
47.2
0.734733
0.269303
0
0.290323
1
0
0.041995
0
0
0
0
0
0
1
0.16129
false
0
0.032258
0.032258
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d6f25ccc74453edf4e8c6ff7079d0d2227978b44
1,003
py
Python
test/unit/messages/bloxroute/test_broadcast_message.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
12
2019-11-06T17:39:10.000Z
2022-03-01T11:26:19.000Z
test/unit/messages/bloxroute/test_broadcast_message.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
8
2019-11-06T21:31:11.000Z
2021-06-02T00:46:50.000Z
test/unit/messages/bloxroute/test_broadcast_message.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
5
2019-11-14T18:08:11.000Z
2022-02-08T09:36:22.000Z
from bxcommon.test_utils.abstract_test_case import AbstractTestCase from bxcommon.messages.bloxroute.broadcast_message import BroadcastMessage from bxcommon.test_utils import helpers from bxcommon.utils.buffers.input_buffer import InputBuffer from bxcommon.utils.crypto import SHA256_HASH_LEN from bxcommon.utils.object_...
38.576923
120
0.790628
123
1,003
6.105691
0.365854
0.106525
0.067909
0.055925
0
0
0
0
0
0
0
0.02459
0.148554
1,003
25
121
40.12
0.854801
0
0
0
0
0
0
0
0
0
0
0
0.055556
1
0.055556
false
0
0.333333
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
1
0
0
0
0
1
d6f4b3d7fcb24ede7e5372b4cdfd8771be4e7d6d
1,464
py
Python
inout/corpus_reader.py
mattroweshow/Drought-Analysis
9a1492089dc30130f4d6441031ff8406e3a31534
[ "Apache-2.0" ]
null
null
null
inout/corpus_reader.py
mattroweshow/Drought-Analysis
9a1492089dc30130f4d6441031ff8406e3a31534
[ "Apache-2.0" ]
null
null
null
inout/corpus_reader.py
mattroweshow/Drought-Analysis
9a1492089dc30130f4d6441031ff8406e3a31534
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from datatypes import Tweet class CorpusReader(object): @staticmethod def read_post_2010_dataset(year): print "Running year: " + str(year) datasets_dir = "/home/rowem/Documents/Git/Data/Drought-Project/" dateFormatter = "%Y-%m-%d %H:%M:%S" file = o...
39.567568
102
0.512295
155
1,464
4.722581
0.6
0.028689
0.046448
0
0
0
0
0
0
0
0
0.018286
0.402322
1,464
37
103
39.567568
0.818286
0.165984
0
0
0
0
0.084089
0.038747
0
0
0
0
0
0
null
null
0.038462
0.076923
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d6fba31b3a59853a44dad032230f55b4795ef0f8
826
py
Python
bin/gen.py
lelandpaul/otlinearize
9095108807a03e30a3d5b9d02e4ae28d75a33841
[ "Unlicense" ]
1
2018-07-13T16:18:15.000Z
2018-07-13T16:18:15.000Z
bin/gen.py
lelandpaul/optimal-linearization
9095108807a03e30a3d5b9d02e4ae28d75a33841
[ "Unlicense" ]
null
null
null
bin/gen.py
lelandpaul/optimal-linearization
9095108807a03e30a3d5b9d02e4ae28d75a33841
[ "Unlicense" ]
null
null
null
#! /usr/bin/python """ Provides the Gen class, along with functions for iterating over output linearizations given a particular tree input. """ from itertools import permutations def gen_strings(tree, null_phon = {}, spaces = False): null_phon = {t.lower() for t in null_phon} terminals = {t.label[0].lower() f...
22.944444
70
0.730024
117
826
5
0.504274
0.054701
0.030769
0.037607
0
0
0
0
0
0
0
0.001453
0.16707
826
35
71
23.6
0.848837
0.294189
0
0
0
0
0
0
0
0
0
0
0
1
0.266667
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
1
0
0
0
0
0
0
0
1
d6fddfa5e3c8843c585db51ba7f4dd20ed1c06d0
7,337
py
Python
docs/Tutorial/4-computation-tips/plot_specific_models.py
bbayukari/abess
3b21b0a58cac6c1464ec9403ffbe4902fee7b890
[ "Intel" ]
null
null
null
docs/Tutorial/4-computation-tips/plot_specific_models.py
bbayukari/abess
3b21b0a58cac6c1464ec9403ffbe4902fee7b890
[ "Intel" ]
null
null
null
docs/Tutorial/4-computation-tips/plot_specific_models.py
bbayukari/abess
3b21b0a58cac6c1464ec9403ffbe4902fee7b890
[ "Intel" ]
null
null
null
""" Specific Models =============== """ ########################################## # Introduction # ^^^^^^^^^^^^ # From the algorithm preseneted in “`ABESS algorithm: details <https://abess.readthedocs.io/en/latest/auto_gallery/1-glm/plot_a2_abess_algorithm_details.html>`__”, # one of the bottleneck in algorithm is th...
49.911565
445
0.687747
1,088
7,337
4.55239
0.305147
0.076317
0.038764
0.041187
0.313951
0.277004
0.277004
0.263679
0.241874
0.218857
0
0.015521
0.13943
7,337
146
446
50.253425
0.768926
0.805097
0
0.555556
0
0.027778
0.170543
0.07907
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ba30c2605056f3c8465058f81e69392d97b8f7df
1,752
py
Python
nodes/models.py
borsboomT/BubbleManagement
34c668a82df675e61f8e86b58bac1488581649eb
[ "MIT" ]
null
null
null
nodes/models.py
borsboomT/BubbleManagement
34c668a82df675e61f8e86b58bac1488581649eb
[ "MIT" ]
null
null
null
nodes/models.py
borsboomT/BubbleManagement
34c668a82df675e61f8e86b58bac1488581649eb
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib.auth import get_user_model from django.db import models from django.urls import reverse import django.utils.timezone as timezone from mptt.models import MPTTModel, TreeForeignKey from users.models import CustomUser class Bubble(models.Model): id = models.AutoFi...
30.206897
103
0.718037
222
1,752
5.463964
0.337838
0.034625
0.046167
0.06925
0.519373
0.474856
0.311624
0.222589
0.090684
0.090684
0
0.006254
0.178653
1,752
57
104
30.736842
0.836692
0
0
0.25
0
0
0.038813
0
0
0
0
0
0
1
0.136364
false
0
0.159091
0.136364
0.863636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
ba3276f8f097ba7695cf6cd0e27c15ea70a7135a
2,035
py
Python
scripts/automation/trex_control_plane/interactive/trex/examples/astf/astf_error_logging_plugin.py
timgates42/trex-core
efe94752fcb2d0734c83d4877afe92a3dbf8eccd
[ "Apache-2.0" ]
956
2015-06-24T15:04:55.000Z
2022-03-30T06:25:04.000Z
scripts/automation/trex_control_plane/interactive/trex/examples/astf/astf_error_logging_plugin.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
782
2015-09-20T15:19:00.000Z
2022-03-31T23:52:05.000Z
scripts/automation/trex_control_plane/interactive/trex/examples/astf/astf_error_logging_plugin.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
429
2015-06-27T19:34:21.000Z
2022-03-23T11:02:51.000Z
import astf_path class ErrorLogger(): def __init__(self, name, allowed_errors): self.iteration_counter = 0 self.name = name self.client_allowed_errors = set(allowed_errors['client']) self.server_allowed_errors = set(allowed_errors['server']) self.iteration_to_mult_map = {} ...
37
127
0.667813
244
2,035
5.27459
0.29918
0.10101
0.0777
0.035742
0.125097
0.05439
0.05439
0
0
0
0
0.002546
0.22801
2,035
54
128
37.685185
0.816677
0.014251
0
0
0
0
0.114271
0
0
0
0
0
0
1
0.25
false
0.025
0.025
0.05
0.425
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ba34ce81c18cc861cb699cf54c9e7f77aeb2cb3c
403
py
Python
lang/Python/enforced-immutability-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/enforced-immutability-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/enforced-immutability-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
class Immut(object): def __setattr__(self, *args): raise TypeError( "'Immut' object does not support item assignment") __delattr__ = __setattr__ def __repr__(self): return str(self.value) def __init__(self, value): # assign to the un-assignable the hard way. super...
19.190476
59
0.64268
51
403
4.607843
0.607843
0.093617
0
0
0
0
0
0
0
0
0
0.0299
0.253102
403
20
60
20.15
0.750831
0.101737
0
0
0
0
0.145251
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ba376d47167e4b313f3aaea4015b968607da45e7
568
py
Python
test/test_python3_actions.py
BoPeng/sos
ba4aeab6e00f3810194416eb057916cae75cee9c
[ "BSD-3-Clause" ]
null
null
null
test/test_python3_actions.py
BoPeng/sos
ba4aeab6e00f3810194416eb057916cae75cee9c
[ "BSD-3-Clause" ]
null
null
null
test/test_python3_actions.py
BoPeng/sos
ba4aeab6e00f3810194416eb057916cae75cee9c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) Bo Peng and the University of Texas MD Anderson Cancer Center # Distributed under the terms of the 3-clause BSD License. from sos import execute_workflow def test_python(): '''Test python command. This might fail if python3 is the default interpreter''' execute_wor...
21.037037
77
0.565141
72
568
4.388889
0.652778
0.142405
0.101266
0.107595
0.094937
0.094937
0
0
0
0
0
0.025126
0.299296
568
26
78
21.846154
0.768844
0.401408
0
0.533333
0
0
0.553517
0
0
0
0
0
0
1
0.133333
true
0
0.066667
0
0.2
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
ba3c3a8e33999719a02228638f81e0e5fd4e2b6b
8,232
py
Python
test_active_directory.py
tjguk/active_directory
765e060897d7823547098d76afbfa72c0fdb191c
[ "MIT" ]
8
2015-02-09T09:23:26.000Z
2021-05-15T02:55:24.000Z
test_active_directory.py
tjguk/active_directory
765e060897d7823547098d76afbfa72c0fdb191c
[ "MIT" ]
12
2015-04-29T11:44:50.000Z
2020-08-10T10:06:14.000Z
test_active_directory.py
tjguk/active_directory
765e060897d7823547098d76afbfa72c0fdb191c
[ "MIT" ]
10
2016-06-27T20:01:50.000Z
2020-04-17T16:57:15.000Z
# -*- coding: UTF-8 -*- import os, sys try: import ConfigParser except ImportError: import configparser as ConfigParser import filecmp import random import shutil import tempfile import time import unittest try: from StringIO import StringIO except ImportError: from io import StringIO import win32com.c...
34.588235
114
0.642736
1,004
8,232
5.120518
0.177291
0.038125
0.038514
0.058354
0.531609
0.513324
0.478701
0.438242
0.438242
0.438242
0
0.008953
0.24016
8,232
237
115
34.734177
0.81279
0.024295
0
0.451977
0
0
0.064681
0.00673
0
0
0
0
0.20339
1
0.220339
false
0.016949
0.090395
0
0.350282
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ba4b341daa914184f9ee192a389ac78c8cbb1c1b
682
py
Python
tests/test_data/__init__.py
stcstores/ccapi
cc137efa7344b8552e122d30899616bfdbd6af0b
[ "MIT" ]
1
2018-09-11T11:53:22.000Z
2018-09-11T11:53:22.000Z
tests/test_data/__init__.py
stcstores/ccapi
cc137efa7344b8552e122d30899616bfdbd6af0b
[ "MIT" ]
24
2018-09-11T13:57:53.000Z
2022-03-18T10:18:36.000Z
tests/test_data/__init__.py
stcstores/ccapi
cc137efa7344b8552e122d30899616bfdbd6af0b
[ "MIT" ]
1
2018-09-12T12:04:58.000Z
2018-09-12T12:04:58.000Z
"""Example data for testing API requests.""" from .check_ranges_on_sales_channel_test_data import ( CHECK_RANGES_ON_SALES_CHANNEL_RESULT, ) from .find_product_selected_options_only_test_data import ( FIND_PRODUCT_SELECTED_OPTIONS_ONLY_TEST_RESLULT, ) from .get_products_for_range_response import GET_PRODUCTS_FO...
34.1
76
0.846041
94
682
5.43617
0.308511
0.152642
0.076321
0.105675
0.67319
0.348337
0.16047
0
0
0
0
0
0.101173
682
19
77
35.894737
0.833605
0.055718
0
0
0
0
0.261755
0.231975
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ba4befd2f359d09210826423328b2f5ccda0d97c
487
py
Python
src/dbManage.py
SolOasis/SolOasisAPIServer-
0a84cee99cfa91dab06f8a622b6c7ca4ba1c84a6
[ "BSD-3-Clause" ]
null
null
null
src/dbManage.py
SolOasis/SolOasisAPIServer-
0a84cee99cfa91dab06f8a622b6c7ca4ba1c84a6
[ "BSD-3-Clause" ]
null
null
null
src/dbManage.py
SolOasis/SolOasisAPIServer-
0a84cee99cfa91dab06f8a622b6c7ca4ba1c84a6
[ "BSD-3-Clause" ]
null
null
null
import os from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from API import app, db app.config.from_object(os.environ['APP_SETTINGS']) migrate = Migrate(app, db, directory='src/migrations') manager = Manager(app) @manager.command def clearAlembic(): """ Used to clear incorrect...
19.48
54
0.741273
64
487
5.421875
0.5625
0.051873
0
0
0
0
0
0
0
0
0
0
0.151951
487
24
55
20.291667
0.840194
0.084189
0
0
0
0
0.082192
0
0
0
0
0
0
1
0.071429
false
0
0.357143
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ba501a3c5d35174856e144e1120f45d399ff3dce
1,742
py
Python
tests/call_method_parser/test_parse_kwarg.py
nyradr/django-unicorn
48a112ee1187715c4dbb54b24cb7b4688a24ac4b
[ "MIT" ]
1
2021-02-11T13:26:06.000Z
2021-02-11T13:26:06.000Z
tests/call_method_parser/test_parse_kwarg.py
nyradr/django-unicorn
48a112ee1187715c4dbb54b24cb7b4688a24ac4b
[ "MIT" ]
null
null
null
tests/call_method_parser/test_parse_kwarg.py
nyradr/django-unicorn
48a112ee1187715c4dbb54b24cb7b4688a24ac4b
[ "MIT" ]
1
2022-02-10T07:47:01.000Z
2022-02-10T07:47:01.000Z
import pytest from django_unicorn.call_method_parser import InvalidKwarg, parse_kwarg def test_kwargs_string(): expected = {"test": "1"} actual = parse_kwarg("test='1'") assert actual == expected assert isinstance(actual["test"], str) assert actual["test"] == "1" def test_kwargs_int(): exp...
23.863014
76
0.703215
220
1,742
5.313636
0.218182
0.085543
0.100086
0.066724
0.681779
0.632164
0.575706
0.536356
0.536356
0.403764
0
0.007022
0.182549
1,742
72
77
24.194444
0.813904
0
0
0.340909
0
0
0.10333
0.053961
0
0
0
0
0.340909
1
0.204545
false
0
0.045455
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
1
0
0
0
0
0
0
0
1
ba582028b92fb61059d54d51985a75d3f2d57caf
1,400
py
Python
adlermanager/AdlerManagerSSHProtocol.py
evilham/prometheus-adlermanager
2556982526e306b7302e85e5da89ec9f987cbada
[ "MIT" ]
1
2019-11-12T23:12:45.000Z
2019-11-12T23:12:45.000Z
adlermanager/AdlerManagerSSHProtocol.py
evilham/prometheus-adlermanager
2556982526e306b7302e85e5da89ec9f987cbada
[ "MIT" ]
null
null
null
adlermanager/AdlerManagerSSHProtocol.py
evilham/prometheus-adlermanager
2556982526e306b7302e85e5da89ec9f987cbada
[ "MIT" ]
null
null
null
import functools from .conch_helpers import SSHSimpleProtocol from .Config import Config class AdlerManagerSSHProtocol(SSHSimpleProtocol): sites_manager = None def __init__(self, user): """ Create an instance of AdlerManagerSSHProtocol. """ SSHSimpleProtocol.__init__(self, u...
29.166667
78
0.618571
171
1,400
4.918129
0.538012
0.049941
0.035672
0.035672
0
0
0
0
0
0
0
0.003018
0.29
1,400
47
79
29.787234
0.843058
0.295
0
0.086957
0
0
0.083242
0
0
0
0
0.06383
0
1
0.130435
false
0
0.130435
0.043478
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ba5833575964aa6ef1918dbc0f4d895c5808d014
364
py
Python
tasks/sum_indivisible.py
pwlodarczyk92/python-problems
aadd3ae50cc5d80324902256f3909536e0d29e80
[ "MIT" ]
null
null
null
tasks/sum_indivisible.py
pwlodarczyk92/python-problems
aadd3ae50cc5d80324902256f3909536e0d29e80
[ "MIT" ]
null
null
null
tasks/sum_indivisible.py
pwlodarczyk92/python-problems
aadd3ae50cc5d80324902256f3909536e0d29e80
[ "MIT" ]
null
null
null
# write program reading an integer from standard input - a # printing sum of all numbers indivisible by 3, smaller than a # for example, for a=10, result = 1 + 2 + 4 + 5 + 7 + 8 = 27 a = int(input("pass a - ")) element = 1 result = 0 while element < a: if element % 3 != 0 : result = result + element element = el...
22.75
62
0.637363
59
364
3.932203
0.644068
0.068966
0
0
0
0
0
0
0
0
0
0.058182
0.244505
364
15
63
24.266667
0.785455
0.483516
0
0
0
0
0.097826
0
0
0
0
0
0
1
0
false
0.125
0
0
0
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
1
0
0
0
0
0
1
ba61187b22eaa6c896520a50af8ca865ae36b12f
2,080
py
Python
test/rotation_test.py
digital-chemistry/pov_isomeriser
993f2d984ba54cf96b44d9ea2bec681b070fc36b
[ "MIT" ]
null
null
null
test/rotation_test.py
digital-chemistry/pov_isomeriser
993f2d984ba54cf96b44d9ea2bec681b070fc36b
[ "MIT" ]
null
null
null
test/rotation_test.py
digital-chemistry/pov_isomeriser
993f2d984ba54cf96b44d9ea2bec681b070fc36b
[ "MIT" ]
null
null
null
''' Created on Jul 2, 2017 @author: Viktor Simjanoski ''' import unittest from povs_isomeriser.rotation import Rotation class RotationTest(unittest.TestCase): def test1_cycle2(self): rot1 = Rotation(mapping={1:1, 2:2}) self.assertEqual(rot1.degree, 1) rot2 = Rotation(mapping={2:2, 1:1}) ...
32
62
0.572596
305
2,080
3.832787
0.160656
0.230967
0.095808
0.013687
0.636441
0.514115
0.442258
0.312233
0.272027
0.244654
0
0.105952
0.264904
2,080
64
63
32.5
0.6586
0.045673
0
0.291667
0
0
0.004047
0
0
0
0
0
0.375
1
0.145833
false
0
0.041667
0
0.208333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ba693fa9bbfb911d5f0d380773b2aa5894fd1e43
659
py
Python
whitewater/view/blocks/fitblock.py
awthomp/Persimmon
714453e63ff280a8daac8f87820bbdd5e3823ce1
[ "MIT" ]
13
2019-04-28T14:36:21.000Z
2019-11-01T17:24:04.000Z
whitewater/view/blocks/fitblock.py
awthomp/Persimmon
714453e63ff280a8daac8f87820bbdd5e3823ce1
[ "MIT" ]
null
null
null
whitewater/view/blocks/fitblock.py
awthomp/Persimmon
714453e63ff280a8daac8f87820bbdd5e3823ce1
[ "MIT" ]
1
2019-04-28T14:36:25.000Z
2019-04-28T14:36:25.000Z
from whitewater.view.blocks.block import Block # MYPY HACK from whitewater.view.pins import InputPin, OutputPin from kivy.properties import ObjectProperty from kivy.lang import Builder from time import time Builder.load_file('whitewater/view/blocks/fitblock.kv') class FitBlock(Block): data_in = ObjectProperty...
26.36
74
0.663126
92
659
4.663043
0.467391
0.097902
0.083916
0.060606
0.083916
0.083916
0
0
0
0
0
0.015534
0.218513
659
25
75
26.36
0.817476
0.013657
0
0
0
0
0.09245
0.052388
0
0
0
0
0
1
0.058824
false
0
0.294118
0
0.588235
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ba72f28b4b32b89d66575a86d1771d34b0820dd5
679
py
Python
ml_enabler/aggregators/BaseAggregator.py
gaoxm/ml-enabler-cli
91874757f039e6cd9d84696b5688c9914d29e284
[ "BSD-2-Clause" ]
5
2019-07-23T22:42:45.000Z
2020-02-28T09:57:33.000Z
ml_enabler/aggregators/BaseAggregator.py
gaoxm/ml-enabler-cli
91874757f039e6cd9d84696b5688c9914d29e284
[ "BSD-2-Clause" ]
17
2019-06-06T17:56:10.000Z
2019-09-18T03:17:04.000Z
ml_enabler/aggregators/BaseAggregator.py
gaoxm/ml-enabler-cli
91874757f039e6cd9d84696b5688c9914d29e284
[ "BSD-2-Clause" ]
1
2020-05-11T00:54:55.000Z
2020-05-11T00:54:55.000Z
import json class BaseAggregator: def __init__(self, zoom, overpass_url, infile, outfile): data = json.load(infile) self.zoom = zoom current_zoom = data['metadata']['zoom'] if zoom > current_zoom: raise ValueError('Output zoom cannot be higher than current zoom level.')...
32.333333
88
0.639175
75
679
5.64
0.52
0.078014
0.070922
0
0
0
0
0
0
0
0
0
0.273932
679
20
89
33.95
0.858012
0
0
0
0
0
0.218447
0
0
0
0
0
0
1
0.071429
false
0.142857
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ba86f9b547686487cf46979d6223b349832b32d9
3,281
py
Python
Python3.01.06.py
MrMontag/python_test
f3c24be648de15a409e8cb8ba9860062cedfecec
[ "MIT" ]
null
null
null
Python3.01.06.py
MrMontag/python_test
f3c24be648de15a409e8cb8ba9860062cedfecec
[ "MIT" ]
null
null
null
Python3.01.06.py
MrMontag/python_test
f3c24be648de15a409e8cb8ba9860062cedfecec
[ "MIT" ]
1
2021-06-08T11:46:52.000Z
2021-06-08T11:46:52.000Z
import os print("Hallo, ich habe 5 Fragen an Sie. Sie können zwischen den Fragen wählen.") punkte=0 while True: print("Geben Sie die Nummer der gewünschten Frage ein.") print("Geben Sie STOP ein, wenn Sie das Programm verlassen möchten.") nummer=input() if nummer.upper()=="STOP": print("Sie hab...
39.53012
106
0.503505
380
3,281
4.347368
0.302632
0.038136
0.033293
0.057506
0.429782
0.429782
0.429782
0.429782
0.429782
0.429782
0
0.019015
0.374886
3,281
83
107
39.53012
0.786446
0
0
0.434211
0
0
0.375686
0
0
0
0
0
0
1
0
false
0
0.013158
0
0.013158
0.473684
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
ba961e23369dd083ca679ddd8996b3a49062e3a3
599
py
Python
async_strava/attributes.py
kiodsim/strava
4a6a385249b63b1473ee4559e0ca18f44d6bd441
[ "MIT" ]
1
2021-07-17T03:27:40.000Z
2021-07-17T03:27:40.000Z
async_strava/attributes.py
kiodsim/strava
4a6a385249b63b1473ee4559e0ca18f44d6bd441
[ "MIT" ]
null
null
null
async_strava/attributes.py
kiodsim/strava
4a6a385249b63b1473ee4559e0ca18f44d6bd441
[ "MIT" ]
null
null
null
from typing import NamedTuple from datetime import datetime EMPTY_ACTIVITY_VALUE = -127 EMPTY_ACTIVITY = -255 class ActivityValues(NamedTuple): """Values from activity page""" distance: float moving_time: dict # {'hours': 0, 'min': 13, 'sec': 7} avg_pace: dict # {'min_km': 6, 'sec_km': 25} ele...
21.392857
58
0.691152
73
599
5.493151
0.643836
0.064838
0
0
0
0
0
0
0
0
0
0.027542
0.21202
599
27
59
22.185185
0.822034
0.203673
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
baa7ac959ace479189ad0c0e053be82901deecbf
1,374
py
Python
syft/__init__.py
ceballosiker/PySyft
9680f5ebddec9d4e31eefade8d0b9b19f30ba32c
[ "Apache-2.0" ]
2
2018-12-24T14:46:16.000Z
2018-12-24T16:53:47.000Z
syft/__init__.py
ashgreat/PySyft
41a525443881bfd94ccb488d7a24765c1778ac05
[ "Apache-2.0" ]
null
null
null
syft/__init__.py
ashgreat/PySyft
41a525443881bfd94ccb488d7a24765c1778ac05
[ "Apache-2.0" ]
1
2018-11-12T10:59:30.000Z
2018-11-12T10:59:30.000Z
"""Some syft imports...""" from syft import dp from syft import core from syft import spdz from syft.core.frameworks.torch import _SyftTensor from syft.core.frameworks.torch import TorchHook from syft.core.frameworks.torch import ( _LocalTensor, _PointerTensor, _LogTensor, _FixedPrecisionTensor, _...
22.16129
77
0.708151
160
1,374
5.93125
0.4625
0.067439
0.063224
0.092729
0.342466
0.342466
0.238145
0.238145
0
0
0
0
0.199418
1,374
61
78
22.52459
0.862727
0.206696
0
0
0
0
0.181481
0.042593
0
0
0
0.016393
0
1
0
false
0
0.266667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
baa849135816e28618aff61d40783faea37c571c
5,569
py
Python
scripts/sim_controller.py
SaeedAlRahma/cps-quadrotor
521dd5d4d235b7ffc404ee1373a223f31672e8c3
[ "BSD-2-Clause" ]
null
null
null
scripts/sim_controller.py
SaeedAlRahma/cps-quadrotor
521dd5d4d235b7ffc404ee1373a223f31672e8c3
[ "BSD-2-Clause" ]
null
null
null
scripts/sim_controller.py
SaeedAlRahma/cps-quadrotor
521dd5d4d235b7ffc404ee1373a223f31672e8c3
[ "BSD-2-Clause" ]
1
2018-04-30T18:11:13.000Z
2018-04-30T18:11:13.000Z
#!/usr/bin/env python import rospy, sys, select, time, datetime, math, random from std_msgs.msg import Header, Bool from geometry_msgs.msg import Pose, PoseStamped, Point from hector_uav_msgs.srv import EnableMotors from nav_msgs.msg import Odometry CPS_DIR = "/home/saeed/cps_ws/src/cps_quadrotor/" msg = """ Publish...
29.157068
124
0.632968
682
5,569
5.052786
0.260997
0.052234
0.044109
0.026698
0.24289
0.202554
0.148578
0.148578
0.148578
0.124782
0
0.019208
0.25211
5,569
190
125
29.310526
0.808163
0.055845
0
0.286667
0
0
0.129026
0.028016
0
0
0
0
0
0
null
null
0
0.033333
null
null
0.093333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bab1215116c392b14bb2b3216d98aacf76c0c92b
5,596
py
Python
acats/const.py
lesywix/ACATS_parser
ae8524f9486208eccb5e58e840b43159f3c5eb78
[ "MIT" ]
null
null
null
acats/const.py
lesywix/ACATS_parser
ae8524f9486208eccb5e58e840b43159f3c5eb78
[ "MIT" ]
null
null
null
acats/const.py
lesywix/ACATS_parser
ae8524f9486208eccb5e58e840b43159f3c5eb78
[ "MIT" ]
null
null
null
from enum import Enum class SimpleEnum(Enum): @classmethod def keys(cls): # remove first under line as real key return [i.name if not i.name.startswith('_') else i.name.partition('_')[-1] for i in cls] @classmethod def values(cls): return [i.value for i in cls] # use key...
24.871111
97
0.628306
649
5,596
5.331279
0.577812
0.007225
0.011272
0.005202
0.012139
0
0
0
0
0
0
0.03293
0.261973
5,596
224
98
24.982143
0.801937
0.015547
0
0.043716
0
0
0.442063
0.007628
0
0
0
0
0
1
0.016393
false
0
0.005464
0.010929
0.978142
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bab4ad758e2994236bbffde494492da46b33f867
1,630
py
Python
pretty.py
davidbau/periscope
472240053d5caabdf862de520141e4aa12a88337
[ "MIT" ]
1
2016-12-19T06:18:19.000Z
2016-12-19T06:18:19.000Z
pretty.py
davidbau/periscope
472240053d5caabdf862de520141e4aa12a88337
[ "MIT" ]
null
null
null
pretty.py
davidbau/periscope
472240053d5caabdf862de520141e4aa12a88337
[ "MIT" ]
1
2019-01-29T01:06:21.000Z
2019-01-29T01:06:21.000Z
from termcolor import colored import datetime import sys def section(msg): print(colored("\n::", "blue", attrs=["bold"]), colored(msg, attrs=["bold"]), file=sys.stderr) def task(msg): print(colored("==>", "green", attrs=["bold"]), colored(msg, attrs=["bold"]), file=sys.stderr) def subtask(msg): print(color...
40.75
158
0.622086
196
1,630
5.081633
0.392857
0.054217
0.045181
0.057229
0.225904
0.225904
0.225904
0.225904
0.225904
0.225904
0
0.001561
0.21411
1,630
39
159
41.794872
0.775956
0.128834
0
0
0
0
0.081197
0.014957
0
0
0
0
0
1
0.25
false
0
0.142857
0.071429
0.642857
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bababa0a9717399da04935effdd4fee60a4443ab
3,203
py
Python
flowtorch/bijectors/affine_autoregressive.py
brianjo/flowtorch
88dcc5cf0a7e1899de18d0fc88157690a1d189ac
[ "MIT" ]
5
2020-12-09T22:05:16.000Z
2020-12-17T23:43:15.000Z
flowtorch/bijectors/affine_autoregressive.py
stefanwebb/flowtorch-old
7dfc0ccb1ba43d0b0190611f27e966f55ef7784e
[ "MIT" ]
12
2020-12-09T21:03:36.000Z
2020-12-17T23:36:30.000Z
flowtorch/bijectors/affine_autoregressive.py
stefanwebb/flowtorch-old
7dfc0ccb1ba43d0b0190611f27e966f55ef7784e
[ "MIT" ]
null
null
null
# Copyright (c) FlowTorch Development Team. All Rights Reserved # SPDX-License-Identifier: MIT from typing import Optional, Tuple import torch import torch.distributions.constraints as constraints import flowtorch import flowtorch.params from flowtorch.utils import clamp_preserve_gradients class AffineAutoregressi...
33.364583
84
0.630034
376
3,203
5.125
0.31117
0.095485
0.049818
0.046705
0.368448
0.311365
0.311365
0.311365
0.311365
0.293721
0
0.004789
0.28286
3,203
95
85
33.715789
0.834131
0.117702
0
0.315789
0
0
0
0
0
0
0
0.010526
0.039474
1
0.065789
false
0
0.078947
0.013158
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
babcfb33ad5b69595153615af4addc0faa0dc51d
8,103
py
Python
lpmidimon/lp2ctrlui.py
looperlative/lpmidimon
95ec767c45a146be8df3973a7280fd38e372df83
[ "BSD-3-Clause" ]
null
null
null
lpmidimon/lp2ctrlui.py
looperlative/lpmidimon
95ec767c45a146be8df3973a7280fd38e372df83
[ "BSD-3-Clause" ]
null
null
null
lpmidimon/lp2ctrlui.py
looperlative/lpmidimon
95ec767c45a146be8df3973a7280fd38e372df83
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'lp2ctrlui.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, Qt...
56.270833
105
0.722325
874
8,103
6.520595
0.191076
0.050535
0.072995
0.047377
0.331111
0.185647
0.015441
0.015441
0
0
0
0.019712
0.167345
8,103
143
106
56.664336
0.824959
0.033815
0
0
1
0
0.112773
0.011635
0
0
0
0
0
1
0.015504
false
0
0.007752
0
0.031008
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bac250c9eeb7a731d5cc10789a9497cee343363e
3,740
py
Python
src/service.py
LynxN1/amino_service
f89c85ce0ee249c6980c962f370aa29535c90a98
[ "MIT" ]
16
2021-01-03T17:05:42.000Z
2021-07-28T23:54:58.000Z
src/service.py
LynxN1/amino_service
f89c85ce0ee249c6980c962f370aa29535c90a98
[ "MIT" ]
null
null
null
src/service.py
LynxN1/amino_service
f89c85ce0ee249c6980c962f370aa29535c90a98
[ "MIT" ]
10
2021-01-24T20:21:56.000Z
2021-09-01T23:55:23.000Z
import traceback from typing import Union from termcolor import colored from src import database, amino_async from src.utils import convert_from_txt, logger, file_logger from src.login import login from src.scripts.badass import Badass from src.scripts.bot_management import BotManagement from src.scripts.ch...
38.958333
106
0.518182
367
3,740
5.152589
0.33515
0.029614
0.034373
0.038075
0.241142
0.173453
0.145955
0.069804
0.069804
0.069804
0
0.009174
0.387968
3,740
95
107
39.368421
0.816951
0
0
0.27907
0
0
0.077915
0
0
0
0
0
0
1
0
false
0.069767
0.139535
0
0.174419
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bac6859d15fe87d4d13bd0fc1cf9875d7ed55e2b
1,642
py
Python
itero/helpers.py
faircloth-lab/itero
25c7fb694f480e7837ea5a5c5679fc2191464577
[ "BSD-3-Clause" ]
2
2020-05-09T10:04:49.000Z
2021-01-15T14:00:39.000Z
itero/helpers.py
faircloth-lab/itero
25c7fb694f480e7837ea5a5c5679fc2191464577
[ "BSD-3-Clause" ]
10
2018-05-31T19:09:50.000Z
2020-05-12T09:10:37.000Z
itero/helpers.py
faircloth-lab/itero
25c7fb694f480e7837ea5a5c5679fc2191464577
[ "BSD-3-Clause" ]
2
2019-08-15T19:27:20.000Z
2021-03-04T21:20:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ (c) 2018 Brant Faircloth || http://faircloth-lab.org/ All rights reserved. This code is distributed under a 3-clause BSD license. Please see LICENSE.txt for more information. Created on 14 April 2018 16:11 CDT (-0500) """ import os import re import sys import glob ...
25.65625
83
0.641291
215
1,642
4.837209
0.530233
0.040385
0.021154
0.032692
0.261538
0.242308
0.159615
0.092308
0.092308
0
0
0.017886
0.250914
1,642
64
84
25.65625
0.827642
0.090743
0
0.2
0
0
0.077741
0
0
0
0
0
0
0
null
null
0
0.228571
null
null
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bacf344bd052c4213f1cf5dfcbbba661d5db73a5
1,403
py
Python
tests/simulation/test_reward_factory.py
iryzhkov/stock-trading-backend
7161026b7b4deb78a934b66550c85a27c6b32933
[ "MIT" ]
1
2021-01-27T18:24:02.000Z
2021-01-27T18:24:02.000Z
tests/simulation/test_reward_factory.py
iryzhkov/stock-trading-backend
7161026b7b4deb78a934b66550c85a27c6b32933
[ "MIT" ]
null
null
null
tests/simulation/test_reward_factory.py
iryzhkov/stock-trading-backend
7161026b7b4deb78a934b66550c85a27c6b32933
[ "MIT" ]
null
null
null
"""Unit tests for reward factory. """ from datetime import datetime import unittest from parameterized import parameterized from stock_trading_backend.simulation import create_reward from stock_trading_backend.simulation.constant_reward import ConstantReward from stock_trading_backend.simulation.net_worth_ratio_rewa...
37.918919
87
0.726301
159
1,403
6.132075
0.371069
0.036923
0.065641
0.094359
0.135385
0
0
0
0
0
0
0.010471
0.183179
1,403
36
88
38.972222
0.840314
0.138275
0
0
0
0
0.079191
0.037068
0
0
0
0
0.130435
1
0.086957
false
0
0.304348
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bad7a96f2a98f3eec51ca8ac3a102160bdf67652
1,761
py
Python
Configuration/Generator/python/EtaBToJpsiJpsi_forSTEAM_13TeV_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/Generator/python/EtaBToJpsiJpsi_forSTEAM_13TeV_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/Generator/python/EtaBToJpsiJpsi_forSTEAM_13TeV_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
# Only for Trigger Study import FWCore.ParameterSet.Config as cms from Configuration.Generator.PythiaUESettings_cfi import * generator = cms.EDFilter("Pythia6GeneratorFilter", pythiaHepMCVerbosity = cms.untracked.bool(False), maxEventsToPrint = cms.untracked.int32(3), pythiaPylistVerbosity = cms.untracked.int32(1), dis...
30.894737
71
0.744463
233
1,761
5.622318
0.39485
0.201527
0.09084
0.091603
0.129771
0.129771
0.129771
0.129771
0
0
0
0.09375
0.091425
1,761
56
72
31.446429
0.725
0.218626
0
0
0
0
0.159091
0.016129
0
0
0
0
0
1
0
false
0
0.044444
0
0.044444
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bad7e383e4ff5c3f2f069fb569d4e8a637edda7d
775
py
Python
pypad/active_skill/lock_orbs_as.py
candyninja001/pypad
82bfc104c2524ca54cc415d37d2c21fec471838f
[ "MIT" ]
null
null
null
pypad/active_skill/lock_orbs_as.py
candyninja001/pypad
82bfc104c2524ca54cc415d37d2c21fec471838f
[ "MIT" ]
null
null
null
pypad/active_skill/lock_orbs_as.py
candyninja001/pypad
82bfc104c2524ca54cc415d37d2c21fec471838f
[ "MIT" ]
null
null
null
from . import ActiveSkill from ..skill_loader import SkillLoader from ..region import Region from ..orb_attribute import OrbAttribute from ..common import binary_to_list, iterable_to_string class LockOrbsAS(ActiveSkill): _handle_types = {152} def parse_args(self): self.orbs = tuple(OrbAttribute(o) fo...
27.678571
80
0.695484
105
775
4.904762
0.419048
0.062136
0.034951
0.038835
0.054369
0
0
0
0
0
0
0.006601
0.218065
775
28
81
27.678571
0.843234
0.032258
0
0
0
0
0.048064
0
0
0
0
0
0
1
0.2
false
0
0.25
0.1
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
badffb23de9c721cafd42980c201bf7beb8cb56d
1,166
py
Python
sheslcrypto/LFSR/MatrixCrackLfsr.py
shesl-meow/shesl-crypto
d6caf4fe13a15fa6700c1fef5667816f9d9a03d6
[ "Apache-2.0" ]
2
2019-11-30T17:29:11.000Z
2019-12-12T15:42:01.000Z
sheslcrypto/LFSR/MatrixCrackLfsr.py
shesl-meow/shesl-crypto
d6caf4fe13a15fa6700c1fef5667816f9d9a03d6
[ "Apache-2.0" ]
null
null
null
sheslcrypto/LFSR/MatrixCrackLfsr.py
shesl-meow/shesl-crypto
d6caf4fe13a15fa6700c1fef5667816f9d9a03d6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 #coding=utf-8 from sage.all import * class MatrixCrackLfsr: """ 通过矩阵乘积的方式,求解 lfsr 的转移矩阵 :param seq: 已经捕获的比特流序列,一个 0,1 数字构成的列表 :param period: 用户可以指定序列的周期,如果周期不对,则会报出 Assert 错误 :return 序列对应的状态转移矩阵 """ def __init__(self, seq, period=None): self.period = period...
29.897436
90
0.572041
179
1,166
3.631285
0.357542
0.138462
0.08
0.086154
0.258462
0.258462
0.246154
0.246154
0.246154
0.246154
0
0.045024
0.276158
1,166
38
91
30.684211
0.725118
0.028302
0
0
0
0
0.008239
0
0
0
0
0
0.136364
0
null
null
0
0.045455
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bae69259d0650076eec021aa20c07e005aa8409a
1,542
py
Python
7.py
hsebastian/fuzzy-octo-avenger
71e533e87bf27b30d9a66597ba9e67c4d1caf807
[ "Apache-2.0" ]
null
null
null
7.py
hsebastian/fuzzy-octo-avenger
71e533e87bf27b30d9a66597ba9e67c4d1caf807
[ "Apache-2.0" ]
null
null
null
7.py
hsebastian/fuzzy-octo-avenger
71e533e87bf27b30d9a66597ba9e67c4d1caf807
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import binascii import os import png DATA_FILE = 'oxygen.png' DATA_DIR = 'data' def main(): print "-" * 80 root_dir = os.path.dirname(__file__) image_filepath = os.path.abspath( os.path.join(root_dir, DATA_DIR, DATA_FILE)) print "opening=%s" % image_filepath print...
25.278689
61
0.540208
190
1,542
4.221053
0.357895
0.043641
0.027431
0.042394
0.054863
0.054863
0
0
0
0
0
0.038462
0.342412
1,542
61
62
25.278689
0.752465
0.01297
0
0.106383
0
0
0.047306
0
0
0
0
0
0
0
null
null
0
0.06383
null
null
0.297872
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
baf1d821d4b0158c76d00e1c5260e12d103e3cd5
335
py
Python
VSCode_work/chapter8/chapter8_8_12.py
yangyahu-1994/Python-Crash-Course
6f8ef7fe8466d88931a0d3cc423ba5d966663b9d
[ "MIT" ]
12
2020-10-22T14:03:27.000Z
2022-03-28T08:14:22.000Z
VSCode_work/chapter8/chapter8_8_12.py
yangyahu-1994/Python-Crash-Course
6f8ef7fe8466d88931a0d3cc423ba5d966663b9d
[ "MIT" ]
null
null
null
VSCode_work/chapter8/chapter8_8_12.py
yangyahu-1994/Python-Crash-Course
6f8ef7fe8466d88931a0d3cc423ba5d966663b9d
[ "MIT" ]
9
2020-12-22T10:22:12.000Z
2022-03-28T08:14:53.000Z
# 定义函数 def sandwich_ingredients(*toppings): """打印一条消息,对顾客点的三明治进行概述""" print("\nMaking a sandwich with the following toppings:") for topping in toppings: print(f"- {topping}") # 调用函数 sandwich_ingredients('Toast', 'Six eggs') sandwich_ingredients('Tomato slices', 'Lettuce leaves') sandwich_ingredient...
30.454545
61
0.719403
38
335
6.236842
0.710526
0.320675
0
0
0
0
0
0
0
0
0
0
0.146269
335
11
62
30.454545
0.828671
0.089552
0
0
0
0
0.364548
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
0.285714
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bafa5f96d9d3a6c160237a63b04d91efd754f3fc
409
py
Python
TT/api/migrations/0015_auto_20191112_0424.py
2019CapstoneDesign/CD4_FastQuest
bcc3da6b1dbd516c2f3a1ac1f05c240329b95196
[ "Apache-2.0" ]
2
2019-10-14T01:13:47.000Z
2019-10-29T19:01:09.000Z
TT/api/migrations/0015_auto_20191112_0424.py
2019CapstoneDesign/CD4_FastQuest
bcc3da6b1dbd516c2f3a1ac1f05c240329b95196
[ "Apache-2.0" ]
10
2019-12-09T12:07:07.000Z
2022-03-12T00:07:20.000Z
TT/api/migrations/0015_auto_20191112_0424.py
2019CapstoneDesign/CD4_FastQuest
bcc3da6b1dbd516c2f3a1ac1f05c240329b95196
[ "Apache-2.0" ]
2
2019-10-13T23:59:36.000Z
2019-10-29T19:01:15.000Z
# Generated by Django 2.2.6 on 2019-11-12 04:24 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0014_auto_20191112_0420'), ] operations = [ migrations.AlterField( model_name='takes', name='...
20.45
64
0.611247
45
409
5.466667
0.777778
0
0
0
0
0
0
0
0
0
0
0.10473
0.276284
409
19
65
21.526316
0.726351
0.110024
0
0
1
0
0.096685
0.063536
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bafd148cf46f496427286ccf0de1c13708b70100
3,631
py
Python
rubybot/cogs/utils/texttable.py
lakepower/Ruby-Bot
332d3f8bc9c8ba2902f67b59e360596778483473
[ "MIT" ]
null
null
null
rubybot/cogs/utils/texttable.py
lakepower/Ruby-Bot
332d3f8bc9c8ba2902f67b59e360596778483473
[ "MIT" ]
null
null
null
rubybot/cogs/utils/texttable.py
lakepower/Ruby-Bot
332d3f8bc9c8ba2902f67b59e360596778483473
[ "MIT" ]
null
null
null
def print_table(table, max_char): if table: if len(table) > 0: if len(table[0]) > 0: #find length/height col = len(table) row = len(table[0]) maxlen = [] output = [] #find l...
31.573913
75
0.345084
321
3,631
3.88162
0.224299
0.086677
0.096308
0.102729
0.386035
0.32183
0.309791
0.239165
0.205457
0.205457
0
0.01369
0.537318
3,631
114
76
31.850877
0.727976
0.086202
0
0.30303
0
0
0.033608
0
0
0
0
0
0
1
0.015152
false
0.015152
0
0
0.030303
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
240028e358a8bb73bdce892214347078863ef45a
6,731
py
Python
mflowgen/common/testbench/generate_testbench.py
mfkiwl/garnet
89b2f907d72c5bb7f86a71bf8fea307f040dc194
[ "BSD-3-Clause" ]
56
2018-12-15T02:47:57.000Z
2022-03-25T23:50:40.000Z
mflowgen/common/testbench/generate_testbench.py
mfkiwl/garnet
89b2f907d72c5bb7f86a71bf8fea307f040dc194
[ "BSD-3-Clause" ]
525
2018-07-27T20:35:54.000Z
2022-03-28T23:52:20.000Z
mflowgen/common/testbench/generate_testbench.py
mfkiwl/garnet
89b2f907d72c5bb7f86a71bf8fea307f040dc194
[ "BSD-3-Clause" ]
11
2019-01-26T06:41:10.000Z
2021-03-28T08:02:26.000Z
from random import random import math import numpy as np import binascii import struct import os import csv import re from defines import inputs, outputs, scope import subprocess def generate_raw(tile): sv = open('waveform_to_csv.sh', 'w') waveform = 'run' clock_period = float(os.environ.get("clock_period...
30.183857
183
0.584609
945
6,731
3.951323
0.213757
0.037493
0.032137
0.027317
0.267274
0.191751
0.141403
0.093465
0.093465
0.058382
0
0.016393
0.256871
6,731
222
184
30.31982
0.730108
0.0104
0
0.155556
1
0.033333
0.456293
0.140583
0
0
0
0
0
1
0.022222
false
0.033333
0.055556
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2409554b023a2b68d65e8692358714e6b4aa0f8e
449
py
Python
post.py
geektown/geektown-wechat
af5abd954299fd953729b2286888aba37b67b1aa
[ "Apache-2.0" ]
null
null
null
post.py
geektown/geektown-wechat
af5abd954299fd953729b2286888aba37b67b1aa
[ "Apache-2.0" ]
null
null
null
post.py
geektown/geektown-wechat
af5abd954299fd953729b2286888aba37b67b1aa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import urllib import urllib2 import json def http_post(): url='http://115.29.199.8:6000/openapi' values ={'userid':u'Smith','userinput':u' 红烧肉怎么做? '} jdata = json.dumps(values) # 对数据进行JSON格式化编码 req = urllib2.Request(url, jdata) # 生成页面请求的完整数据 response ...
26.411765
60
0.603563
52
449
5.173077
0.692308
0.05948
0
0
0
0
0
0
0
0
0
0.051205
0.260579
449
17
61
26.411765
0.759036
0.151448
0
0
0
0
0.162234
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2417336864edbd9eedf33589408a461a7c130f04
981
py
Python
hexrd/ui/fix_pdb.py
HEXRD/hexrdgui
d92915463f237e0521b5830655ae73bc5bcd9f80
[ "BSD-3-Clause" ]
13
2020-02-18T00:23:02.000Z
2022-02-24T20:04:36.000Z
hexrd/ui/fix_pdb.py
HEXRD/hexrdgui
d92915463f237e0521b5830655ae73bc5bcd9f80
[ "BSD-3-Clause" ]
656
2020-01-14T02:33:40.000Z
2022-03-26T15:31:17.000Z
hexrd/ui/fix_pdb.py
HEXRD/hexrdgui
d92915463f237e0521b5830655ae73bc5bcd9f80
[ "BSD-3-Clause" ]
6
2020-01-17T15:02:53.000Z
2020-11-01T22:02:48.000Z
import pdb import sys class FixedPdb(pdb.Pdb): """ Since we re-direct stdout and stderr in other parts of the application, pdb can't interpret things like arrow keys and auto-complete correctly. This class fixes the issue by getting pdb to always use the default stdout and stderr. """ ...
28.028571
62
0.667686
133
981
4.661654
0.398496
0.064516
0.045161
0.058065
0
0
0
0
0
0
0
0
0.240571
981
34
63
28.852941
0.832215
0.234455
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.1
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
24184896a4018e8fa6259029ce2990a45339bc75
3,386
py
Python
gnlse/envelopes.py
JiEumKim/github
fc20bc9f00b791b975bf64af841f531e1224b3d3
[ "MIT" ]
13
2020-08-15T14:42:12.000Z
2022-02-22T21:28:37.000Z
gnlse/envelopes.py
JiEumKim/github
fc20bc9f00b791b975bf64af841f531e1224b3d3
[ "MIT" ]
5
2020-08-20T09:55:21.000Z
2022-02-13T20:22:03.000Z
gnlse/envelopes.py
JiEumKim/github
fc20bc9f00b791b975bf64af841f531e1224b3d3
[ "MIT" ]
5
2020-08-15T14:42:13.000Z
2022-01-06T08:41:37.000Z
"""Amplitude envelopes of different pulses This module contains functions drawing envelopes of various pulses: hyperbolic secant, gaussian and lorentzian. """ import numpy as np class Envelope(object): def A(T): raise NotImplementedError() class SechEnvelope(Envelope): """Amplitude envelope of hy...
22.130719
73
0.498523
374
3,386
4.470588
0.229947
0.057416
0.090909
0.064593
0.621411
0.523325
0.414474
0.414474
0.414474
0.414474
0
0.008392
0.366509
3,386
152
74
22.276316
0.771096
0.404607
0
0.333333
0
0
0.049742
0
0
0
0
0
0
1
0.214286
false
0
0.02381
0
0.452381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
24192c50574a634de329537e4a843e3137e0d024
6,645
py
Python
tools/vfunc_conv/jrc_global.py
jdngibson/CanFlood
37f738be6944ea6b68dfcffeee6b6ac6ff7eb8a0
[ "MIT" ]
15
2021-05-01T02:24:55.000Z
2022-03-25T15:02:47.000Z
tools/vfunc_conv/jrc_global.py
jdngibson/CanFlood
37f738be6944ea6b68dfcffeee6b6ac6ff7eb8a0
[ "MIT" ]
20
2021-06-02T16:31:22.000Z
2022-03-24T23:46:07.000Z
tools/vfunc_conv/jrc_global.py
jdngibson/CanFlood
37f738be6944ea6b68dfcffeee6b6ac6ff7eb8a0
[ "MIT" ]
3
2021-05-10T22:50:01.000Z
2021-12-11T12:36:33.000Z
''' Created on Feb. 9, 2021 @author: cefect ''' #=============================================================================== # imports #=============================================================================== import os, datetime start = datetime.datetime.now() import pandas as pd import numpy as np from pa...
33.059701
149
0.361926
562
6,645
4.08363
0.434164
0.021786
0.011765
0.016558
0
0
0
0
0
0
0
0.013734
0.309707
6,645
201
150
33.059701
0.486593
0.29842
0
0.023256
0
0.011628
0.131047
0.037929
0
0
0
0
0.023256
1
0.034884
false
0
0.069767
0
0.139535
0.011628
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2420e8a1c52fb3a0fc54eba39942de076acdc9f2
5,900
py
Python
phdfellows/models.py
sirkp/phdadmission
80beae033e6a3a87435ea5fded107bb0dec116fd
[ "MIT" ]
1
2020-01-26T12:42:12.000Z
2020-01-26T12:42:12.000Z
phdfellows/models.py
sirkp/phdadmission
80beae033e6a3a87435ea5fded107bb0dec116fd
[ "MIT" ]
null
null
null
phdfellows/models.py
sirkp/phdadmission
80beae033e6a3a87435ea5fded107bb0dec116fd
[ "MIT" ]
null
null
null
from django.db import models from accounts.models import User from datetime import date from django.utils.translation import gettext as _ from django.core.validators import RegexValidator class Application(models.Model): """ this is the model for application that needs to be filled for applying for admission ...
37.106918
221
0.714576
749
5,900
5.400534
0.225634
0.062299
0.032633
0.059333
0.435105
0.276143
0.153276
0.114215
0.075649
0.075649
0
0.019734
0.158305
5,900
158
222
37.341772
0.794805
0.049492
0
0.089109
0
0
0.138166
0
0
0
0
0
0
1
0.019802
false
0.009901
0.049505
0.019802
0.70297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
242368e460706e3f7afdda3f97942fe58b11e735
378
py
Python
src/rolca/core/migrations/0003_theme_is_series.py
dblenkus/rolca
033492d9b573b1dc65cb836579dff27c6e06c7a7
[ "Apache-2.0" ]
null
null
null
src/rolca/core/migrations/0003_theme_is_series.py
dblenkus/rolca
033492d9b573b1dc65cb836579dff27c6e06c7a7
[ "Apache-2.0" ]
12
2016-11-27T18:38:23.000Z
2017-09-09T16:18:17.000Z
src/rolca/core/migrations/0003_theme_is_series.py
dblenkus/rolca
033492d9b573b1dc65cb836579dff27c6e06c7a7
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-03 14:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0002_submission'), ] operations = [ migrations.AddField( model_name='theme', name='is_series', f...
19.894737
53
0.589947
40
378
5.5
0.85
0
0
0
0
0
0
0
0
0
0
0.071161
0.293651
378
18
54
21
0.752809
0.119048
0
0
1
0
0.099698
0
0
0
0
0
0
1
0
false
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2427a02fe3158ba0bc4b3f66386eb245006801b3
21,591
py
Python
sideui.py
neeyuqi/Video-editing-auxiliary-tool-based-on-barrage-analysis-
a49be1e7cc51f16e3ca4c98497e6219eb2eca41b
[ "MIT" ]
4
2020-05-22T05:43:10.000Z
2021-05-18T07:55:31.000Z
sideui.py
neeyuqi/Video-editing-auxiliary-tool-based-on-barrage-analysis-
a49be1e7cc51f16e3ca4c98497e6219eb2eca41b
[ "MIT" ]
1
2020-05-20T20:47:53.000Z
2020-05-22T03:13:59.000Z
sideui.py
neeyuqi/Video-editing-auxiliary-tool-based-on-barrage-analysis-
a49be1e7cc51f16e3ca4c98497e6219eb2eca41b
[ "MIT" ]
2
2020-05-24T11:28:24.000Z
2020-05-27T14:48:08.000Z
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'sideui.ui' ## ## Created by: Qt User Interface Compiler version 5.14.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ###########...
60.991525
703
0.699782
2,650
21,591
5.630943
0.189434
0.03076
0.011259
0.014475
0.36932
0.328776
0.263168
0.245342
0.241255
0.227986
0
0.107534
0.149785
21,591
353
704
61.164306
0.705344
0.010328
0
0.007353
1
0.044118
0.223608
0.149184
0
0
0
0
0
1
0.007353
false
0
0.014706
0
0.025735
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
242afbc269b0a19006ba4fbbbd8ae5d93f3b555d
1,587
py
Python
UpyLab/UpyLaB 3.02 - Instructions conditionnelles.py
FredC94/MOOC-Python3
bb8d15fabc5c0cb240198f968aed4be0d3e0900b
[ "MIT" ]
null
null
null
UpyLab/UpyLaB 3.02 - Instructions conditionnelles.py
FredC94/MOOC-Python3
bb8d15fabc5c0cb240198f968aed4be0d3e0900b
[ "MIT" ]
null
null
null
UpyLab/UpyLaB 3.02 - Instructions conditionnelles.py
FredC94/MOOC-Python3
bb8d15fabc5c0cb240198f968aed4be0d3e0900b
[ "MIT" ]
null
null
null
""" Auteur: Frédéric Castel Date : Mars 2020 Projet : MOOC Python 3 - France Université Numérique Objectif: Écrire un programme qui, si temperature (entier lu sur input correspondant à la température maximale prévue pour aujourd’hui) est strictement supérieur à 0, teste si temperature est inférieur ou égal...
52.9
242
0.724638
256
1,587
4.5
0.542969
0.013889
0.03125
0.027778
0.039931
0.039931
0
0
0
0
0
0.010417
0.213611
1,587
29
243
54.724138
0.911058
0.89603
0
0
0
0
0.216561
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2431b50818e4ea17ad926891754e86c2ab9d2bdc
3,939
py
Python
alice_blue_api/websocket_streams.py
DibyaranjanSathua/stocklabs
0ea6068d4ebf0a1f0cb8cf12290a34676d71e91d
[ "Apache-2.0" ]
1
2021-07-24T07:38:02.000Z
2021-07-24T07:38:02.000Z
alice_blue_api/websocket_streams.py
DibyaranjanSathua/stocklabs
0ea6068d4ebf0a1f0cb8cf12290a34676d71e91d
[ "Apache-2.0" ]
null
null
null
alice_blue_api/websocket_streams.py
DibyaranjanSathua/stocklabs
0ea6068d4ebf0a1f0cb8cf12290a34676d71e91d
[ "Apache-2.0" ]
1
2021-07-27T12:04:52.000Z
2021-07-27T12:04:52.000Z
""" File: websocket_streams.py Author: Dibyaranjan Sathua Created on: 21/06/21, 7:15 pm """ from dataclasses import dataclass import datetime import struct def unpack_int8(bin_data, pos): """ Convert 1 byte data """ return struct.unpack(">B", bin_data[pos:pos+1])[0] def unpack_int16(bi...
34.552632
98
0.670221
519
3,939
4.830443
0.22158
0.100519
0.12844
0.165138
0.597926
0.466294
0.428799
0.306342
0.27842
0.27842
0
0.045016
0.21046
3,939
113
99
34.858407
0.761093
0.104849
0
0.365854
0
0
0.085162
0
0
0
0
0
0
1
0.085366
false
0
0.036585
0
0.560976
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
243a47dbb3aeed74d86a3804dce9662dfa70dadc
950
py
Python
Asta_Velo_Service/tests/RegisterAdminTest.py
astaVelo/asta_velo
0def3484b4b51e2008fb376b7e6e8b07e8cedec3
[ "MIT" ]
null
null
null
Asta_Velo_Service/tests/RegisterAdminTest.py
astaVelo/asta_velo
0def3484b4b51e2008fb376b7e6e8b07e8cedec3
[ "MIT" ]
null
null
null
Asta_Velo_Service/tests/RegisterAdminTest.py
astaVelo/asta_velo
0def3484b4b51e2008fb376b7e6e8b07e8cedec3
[ "MIT" ]
null
null
null
import unittest import requests def check_response_body_is_null(response): data = response.json() assert data['id'] is None assert data['email'] is None # Typo in response body passwort instead of password assert data['password'] is None class MyTestCase(unittest.TestCase): def test_Registe...
29.6875
72
0.677895
126
950
4.888889
0.388889
0.058442
0.055195
0.061688
0.545455
0.545455
0.444805
0.444805
0.444805
0.444805
0
0.036745
0.197895
950
32
73
29.6875
0.771654
0.052632
0
0.190476
0
0
0.210234
0
0
0
0
0
0.238095
1
0.142857
false
0.142857
0.095238
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
243d2e805f57180cb8a64cc692783797bcd64d7e
3,049
py
Python
mysite/posts/serializers.py
2021fallCMPUT404/group-cmput404-project
985b76dc6c554caf77e7cf5788355cca22a26e74
[ "Apache-2.0" ]
2
2021-12-06T06:42:41.000Z
2022-03-29T21:40:14.000Z
mysite/posts/serializers.py
2021fallCMPUT404/group-cmput404-project
985b76dc6c554caf77e7cf5788355cca22a26e74
[ "Apache-2.0" ]
7
2021-10-29T20:31:44.000Z
2021-12-05T06:55:58.000Z
mysite/posts/serializers.py
2021fallCMPUT404/group-cmput404-project
985b76dc6c554caf77e7cf5788355cca22a26e74
[ "Apache-2.0" ]
null
null
null
from django.db.models.fields import SlugField from rest_framework import serializers from .models import Post, Comment, Like, CommentLike, Node#, InboxLike from users.serializers import User_Profile, userPSerializer, UserSerializer, InboxSerializer class PostSerializer(serializers.ModelSerializer): #author...
40.118421
94
0.628403
293
3,049
6.40273
0.259386
0.090085
0.085288
0.027186
0.133795
0.086354
0.044776
0
0
0
0
0
0.261725
3,049
76
95
40.118421
0.833407
0.071499
0
0.16129
0
0
0.119941
0
0
0
0
0
0
1
0
false
0.032258
0.129032
0
0.612903
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
24407d019b7b48031e96bdb10a36987d893b11a2
477
py
Python
setup.py
senzil/cabot-alert-rocketchat
f7cb13b484ea675aafbf6305ffde22e77f313b46
[ "MIT" ]
2
2018-05-04T15:58:50.000Z
2018-05-08T17:20:16.000Z
setup.py
senzil/cabot-alert-rocketchat
f7cb13b484ea675aafbf6305ffde22e77f313b46
[ "MIT" ]
3
2018-06-26T10:58:14.000Z
2020-10-27T00:39:54.000Z
setup.py
senzil/cabot-alert-rocketchat
f7cb13b484ea675aafbf6305ffde22e77f313b46
[ "MIT" ]
1
2021-08-25T03:04:34.000Z
2021-08-25T03:04:34.000Z
#!/usr/bin/env python from setuptools import setup, find_packages def readme(): with open('README.rst') as f: return f.read() setup(name='cabot-alert-rocketchat', version='0.1.2', description='A RocketChat alert plugin for Cabot', long_description=readme(), license='MIT', au...
25.105263
56
0.647799
60
477
5.083333
0.716667
0.127869
0.104918
0
0
0
0
0
0
0
0
0.007937
0.207547
477
18
57
26.5
0.798942
0.041929
0
0
0
0
0.322368
0.118421
0
0
0
0
0
1
0.071429
true
0
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
2446ac37525b1b7b0b813b34b79850f0a4e96707
400
py
Python
scratchpad/20191013_get_all_data.py
R-fred/awesome-streamlit
10f2b132bc8e61a82edfacb4b3bb36d0da6c63d3
[ "CC0-1.0" ]
1,194
2019-10-09T06:15:27.000Z
2022-03-31T14:53:00.000Z
scratchpad/20191013_get_all_data.py
R-fred/awesome-streamlit
10f2b132bc8e61a82edfacb4b3bb36d0da6c63d3
[ "CC0-1.0" ]
55
2019-10-09T12:08:39.000Z
2022-02-10T00:48:53.000Z
scratchpad/20191013_get_all_data.py
R-fred/awesome-streamlit
10f2b132bc8e61a82edfacb4b3bb36d0da6c63d3
[ "CC0-1.0" ]
272
2019-10-09T12:04:31.000Z
2022-03-29T02:43:30.000Z
import requests def get_all_data(): root = "https://raw.githubusercontent.com/patidarparas13/Sentiment-Analyzer-Tool/master/Datasets/" data = requests.get(root + "imdb_labelled.txt").text.split("\n") data += requests.get(root + "amazon_cells_labelled.txt").text.split("\n") data += requests.get(root +...
26.666667
102
0.6975
54
400
5.018519
0.5
0.132841
0.166052
0.210332
0.372694
0.295203
0.295203
0.295203
0.295203
0
0
0.005764
0.1325
400
14
103
28.571429
0.775216
0
0
0
0
0
0.385
0.0625
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
24476590d3c8b13f463f5555e2dfe01186373567
976
py
Python
corehq/apps/case_search/migrations/0007_auto_20170522_1506.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/case_search/migrations/0007_auto_20170522_1506.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/case_search/migrations/0007_auto_20170522_1506.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
# Generated by Django 1.10.7 on 2017-05-22 15:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('case_search', '0006_remove_casesearchconfig__config'), ] operations = [ migrations.CreateModel( name='IgnorePatterns', ...
33.655172
114
0.603484
99
976
5.747475
0.575758
0.105448
0.084359
0.115993
0.214411
0.214411
0.214411
0.214411
0.147627
0
0
0.044944
0.270492
976
28
115
34.857143
0.754213
0.047131
0
0.090909
1
0
0.167026
0.06681
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
24497f8f174f6531a82173227c7a124bfb036b36
1,022
py
Python
pwmScoreSeq.py
tbepler/ets-analysis-scripts
fe2b537e2fbeb8370568a7a43707f7dca411f390
[ "MIT" ]
null
null
null
pwmScoreSeq.py
tbepler/ets-analysis-scripts
fe2b537e2fbeb8370568a7a43707f7dca411f390
[ "MIT" ]
null
null
null
pwmScoreSeq.py
tbepler/ets-analysis-scripts
fe2b537e2fbeb8370568a7a43707f7dca411f390
[ "MIT" ]
null
null
null
import PyPositionWeightMatrix as PWM import sys import os comp = { 'A' : 'T', 'C' : 'G', 'G' : 'C' , 'T' : 'A' } def rvscomp( seq ): return [ comp[c] for c in seq[::-1] ] def scoreSeqs( pwm, fpath ): with open( fpath, 'r' ) as f: for line in f: [ seq, _, label ] = line.strip().split() ...
26.205128
79
0.472603
123
1,022
3.853659
0.422764
0.044304
0.059072
0.07173
0.109705
0
0
0
0
0
0
0.006359
0.38454
1,022
38
80
26.894737
0.747218
0
0
0
0
0
0.021526
0
0
0
0
0
0
0
null
null
0
0.1
null
null
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
1
0
0
0
0
0
0
0
0
1
2451b23b3f177c4c4d8779a7e5f96cc61fa0c361
565
py
Python
6.00.1x/final/p4-2.py
NicholasAsimov/courses
d60981f25816445578eb9e89bbbeef2d38eaf014
[ "MIT" ]
null
null
null
6.00.1x/final/p4-2.py
NicholasAsimov/courses
d60981f25816445578eb9e89bbbeef2d38eaf014
[ "MIT" ]
null
null
null
6.00.1x/final/p4-2.py
NicholasAsimov/courses
d60981f25816445578eb9e89bbbeef2d38eaf014
[ "MIT" ]
null
null
null
def getSublists(L, n): sublists = [] for i in range(len(L)): next_sublist = L[i:i+n] if len(next_sublist) == n: sublists.append(next_sublist) return sublists def longestRun(L): best = [] for i in range(len(L), 0, -1): for lst in getSublists(L, i): ...
21.730769
59
0.511504
95
565
3.010526
0.357895
0.115385
0.031469
0.041958
0.202797
0.146853
0
0
0
0
0
0.080729
0.320354
565
25
60
22.6
0.664063
0.086726
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
24532774aa1407f89b98d668750c3ae3ce86b645
2,191
py
Python
run_ridge_gridsearch.py
gnkm/kaggle.house-prices
5fd1fcc9fcf8e191c0729ab6244b01180d44f535
[ "MIT" ]
null
null
null
run_ridge_gridsearch.py
gnkm/kaggle.house-prices
5fd1fcc9fcf8e191c0729ab6244b01180d44f535
[ "MIT" ]
null
null
null
run_ridge_gridsearch.py
gnkm/kaggle.house-prices
5fd1fcc9fcf8e191c0729ab6244b01180d44f535
[ "MIT" ]
null
null
null
import copy import numpy as np import pandas as pd from sklearn.linear_model import RidgeCV from sklearn.model_selection import cross_val_score, GridSearchCV import warnings # warnings.simplefilter('ignore') def main(): features = [ 'OverallQual', 'GrLivArea', 'GarageArea', 'Tota...
27.734177
68
0.621178
280
2,191
4.6
0.328571
0.201087
0.074534
0.065217
0.17236
0.118012
0.052795
0.052795
0.052795
0.052795
0
0.024566
0.238247
2,191
78
69
28.089744
0.747154
0.086262
0
0.032787
0
0
0.159399
0.01203
0
0
0
0
0
1
0.016393
false
0
0.098361
0
0.114754
0.016393
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2460c99cbcc239693d6902dd18bb808c49ce4c11
528
py
Python
nbdev_demo/_nbdev.py
pete88b/nbdev_demo
b537df601f00c8e2e2d363265a46c35892515b1d
[ "Apache-2.0" ]
null
null
null
nbdev_demo/_nbdev.py
pete88b/nbdev_demo
b537df601f00c8e2e2d363265a46c35892515b1d
[ "Apache-2.0" ]
1
2022-02-26T09:51:32.000Z
2022-02-26T09:51:32.000Z
nbdev_demo/_nbdev.py
pete88b/nbdev_demo
b537df601f00c8e2e2d363265a46c35892515b1d
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"core_fn": "00_core.ipynb", "Apple": "00a_apple.ipynb", "core_text_fn": "10_text_core.ipynb", "text_util_fn": "10a_text_utils.ipynb"} modules = ["core.py", "apple.py", ...
26.4
61
0.626894
74
528
4.148649
0.513514
0.058632
0.091205
0
0
0
0
0
0
0
0
0.028369
0.198864
528
19
62
27.789474
0.6974
0.068182
0
0
1
0
0.534694
0
0
0
0
0
0
1
0.083333
false
0
0
0.083333
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2466f79ec94f6bb2374ed42ebf3fa9439d6c7f7a
4,904
py
Python
drafts/lists.py
lcnodc/codes
068e04323362737c3f840b4e21a73cf0718aa401
[ "MIT" ]
1
2019-09-16T18:00:47.000Z
2019-09-16T18:00:47.000Z
drafts/lists.py
lcnodc/codes
068e04323362737c3f840b4e21a73cf0718aa401
[ "MIT" ]
null
null
null
drafts/lists.py
lcnodc/codes
068e04323362737c3f840b4e21a73cf0718aa401
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """2.Lista. Declaração Acessando elementos Adicionando elementos Removendo elementos """ # Declarando uma lista. lista = ['João', 'Pedro', 'Antonio', 'Carlos',] # Acessando elementos individualmente. print(lista[0]) print(lista[1]) print(lista[2]) print(lista[3]) # Acessando elementos atra...
25.148718
75
0.6823
686
4,904
4.765306
0.234694
0.067299
0.043744
0.063628
0.403793
0.396146
0.378709
0.342307
0.298256
0.240135
0
0.029496
0.149674
4,904
194
76
25.278351
0.754436
0.162928
0
0.429907
0
0
0.252504
0
0
0
0
0.005155
0
1
0
false
0
0
0
0
0.626168
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
2467894050e676c0391a53007e72dcd3aea8ef5d
1,472
py
Python
python_project/mfresh_project/mfresh_api/mfresh_api/urls.py
452366we/python_web
527342a1b238d5b3d1261caeb5c907a9a031be8e
[ "MIT" ]
null
null
null
python_project/mfresh_project/mfresh_api/mfresh_api/urls.py
452366we/python_web
527342a1b238d5b3d1261caeb5c907a9a031be8e
[ "MIT" ]
null
null
null
python_project/mfresh_project/mfresh_api/mfresh_api/urls.py
452366we/python_web
527342a1b238d5b3d1261caeb5c907a9a031be8e
[ "MIT" ]
null
null
null
"""mfresh_api URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
35.047619
85
0.73913
197
1,472
5.502538
0.42132
0.050738
0.013838
0.02214
0.107934
0.107934
0.069188
0
0
0
0
0.00793
0.143342
1,472
41
86
35.902439
0.851705
0.44769
0
0
0
0
0.163772
0
0
0
0
0
0
1
0.047619
false
0
0.333333
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
246870e3255abcee36568f0934af1d21b8f4c116
216
py
Python
src/example_server/test.py
smartuni/GirlsDay2016
3186670cb482627eb8ca9e9b48fe459ebf7e0396
[ "MIT" ]
null
null
null
src/example_server/test.py
smartuni/GirlsDay2016
3186670cb482627eb8ca9e9b48fe459ebf7e0396
[ "MIT" ]
null
null
null
src/example_server/test.py
smartuni/GirlsDay2016
3186670cb482627eb8ca9e9b48fe459ebf7e0396
[ "MIT" ]
null
null
null
from ../client_wrapper/COAPclient import * import time logging.basicConfig(level=logging.DEBUG) for x in range(0,10): try: bla=get("coap://localhost/plant") print(str(bla)) time.sleep(3) except: print(e)
16.615385
42
0.708333
33
216
4.606061
0.848485
0
0
0
0
0
0
0
0
0
0
0.02139
0.134259
216
12
43
18
0.791444
0
0
0
0
0
0.101852
0.101852
0
0
0
0
0
0
null
null
0
0.2
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
79e5b7d0e826c6b07b0f425b0328af8df8ccd9e0
4,046
py
Python
basic/wordcount.py
Dante-Basile/Python-Google-Dev-Course
6d71e309293154eccf46b95e42fdf787dcd258ce
[ "Apache-2.0" ]
null
null
null
basic/wordcount.py
Dante-Basile/Python-Google-Dev-Course
6d71e309293154eccf46b95e42fdf787dcd258ce
[ "Apache-2.0" ]
null
null
null
basic/wordcount.py
Dante-Basile/Python-Google-Dev-Course
6d71e309293154eccf46b95e42fdf787dcd258ce
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Wordcount exercise Google's Python class The main() below is already defined and comp...
31.364341
79
0.690311
551
4,046
5.023593
0.355717
0.032514
0.01987
0.026012
0.127529
0.112355
0.112355
0.087066
0.05961
0.05961
0
0.008844
0.217499
4,046
128
80
31.609375
0.865445
0.152496
0
0.090909
0
0
0.052397
0
0
0
0
0.007813
0
0
null
null
0
0.018182
null
null
0.145455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
79eaa57aba132776b432a191757d2d3118187d78
1,379
py
Python
scrapper.py
animeshkuzur/annodat
d278ad9d618d27abea4500cee25a8a8b0de2e55a
[ "MIT" ]
null
null
null
scrapper.py
animeshkuzur/annodat
d278ad9d618d27abea4500cee25a8a8b0de2e55a
[ "MIT" ]
null
null
null
scrapper.py
animeshkuzur/annodat
d278ad9d618d27abea4500cee25a8a8b0de2e55a
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import sys def query(query): url = "http://www.amazon.in/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=" for x in query: url = url+x+"+" url=url[0:-1] return url def getproductid(url): pid="" try: response_code = requests.get(url) #print response_cod...
24.625
145
0.700508
216
1,379
4.37037
0.425926
0.076271
0.066737
0.085805
0.108051
0.108051
0.108051
0.108051
0.108051
0
0
0.014346
0.140682
1,379
56
146
24.625
0.782278
0.06454
0
0.3125
0
0.020833
0.239316
0.069153
0
0
0
0
0
0
null
null
0
0.0625
null
null
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
03150b8d191cd934e0c87e0f4f759a93a763b91e
9,118
py
Python
dbschema/archive_projectdb.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
dbschema/archive_projectdb.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
dbschema/archive_projectdb.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
import sys import sinedon from sinedon import dbconfig from sinedon import directq from leginon import projectdata from leginon import leginondata import time # set direct_query values # exclude preset lable excludelist = () def checkSinedon(): try: destination_dbinfo = dbconfig.getConfig('importdata') except Key...
30.804054
103
0.737333
1,066
9,118
6.222326
0.273921
0.008141
0.032564
0.034977
0.152118
0.136741
0.104176
0.046133
0.046133
0.046133
0
0.002696
0.145756
9,118
295
104
30.908475
0.848889
0.054069
0
0.185185
0
0.00463
0.150654
0.006162
0.009259
0
0
0
0
0
null
null
0
0.236111
null
null
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0327a1a3c2ea9dbbb3c21fb603c5d276bad5eeb7
2,054
py
Python
wxdatagetters/dataGetter.py
cacraig/wxDataGetters
8eb2ac75976fe54de3a78a752e5c0411fbc8b9df
[ "MIT" ]
1
2015-05-30T16:30:44.000Z
2015-05-30T16:30:44.000Z
wxdatagetters/dataGetter.py
cacraig/wxDataGetters
8eb2ac75976fe54de3a78a752e5c0411fbc8b9df
[ "MIT" ]
null
null
null
wxdatagetters/dataGetter.py
cacraig/wxDataGetters
8eb2ac75976fe54de3a78a752e5c0411fbc8b9df
[ "MIT" ]
null
null
null
from processors.dataProcessor import DataProcessor from generators.gempak import Gempak from optparse import OptionParser from argparse import ArgumentParser import ConfigParser # Usage : python dataGetter.py -dev -b --clean # [ONE MODEL] : python dataGetter.py -b -dev --model gfs def main(): parser = ArgumentPar...
28.929577
87
0.684031
233
2,054
5.901288
0.412017
0.032727
0.061818
0.055273
0.194182
0.061091
0.061091
0.061091
0
0
0
0
0.203992
2,054
70
88
29.342857
0.840979
0.256086
0
0.04878
0
0
0.133686
0
0
0
0
0
0
0
null
null
0
0.170732
null
null
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
032f153a5bcf1cc672df9bb281d2c92663a5110a
3,033
py
Python
atha/core/AthaConfig.py
AlanDThiessen/atha
e3cfa3c773f4feafeb1181d1fce0183ef7076d59
[ "MIT" ]
3
2015-08-25T02:23:47.000Z
2016-03-19T01:50:00.000Z
atha/core/AthaConfig.py
AlanDThiessen/atha
e3cfa3c773f4feafeb1181d1fce0183ef7076d59
[ "MIT" ]
null
null
null
atha/core/AthaConfig.py
AlanDThiessen/atha
e3cfa3c773f4feafeb1181d1fce0183ef7076d59
[ "MIT" ]
null
null
null
''' Created on Oct 3, 2013 @author: athiessen ''' import os class AthaConfig(object): ''' classdocs ''' def __init__(self): ''' Constructor ''' self.athaRoot = os.path.dirname( os.path.abspath(__file__ + "/../" ) ) self.controlPoint = '/'.join( ( self...
38.884615
84
0.228157
139
3,033
4.920863
0.453237
0.081871
0.122807
0.087719
0.365497
0.318713
0.093567
0
0
0
0
0.018849
0.667656
3,033
77
85
39.38961
0.659722
0.021101
0
0.444444
0
0
0.130688
0
0
0
0
0
0
1
0.018519
false
0
0.018519
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0337a64d764e5ea4eb6e1b01c46d360d65c362e0
405
py
Python
coati/win32.py
lgovea/coati
636ec99d5baff4cdcbfe7478611cf54d4cbf4546
[ "MIT" ]
null
null
null
coati/win32.py
lgovea/coati
636ec99d5baff4cdcbfe7478611cf54d4cbf4546
[ "MIT" ]
9
2017-05-25T23:43:41.000Z
2017-09-15T22:05:48.000Z
coati/win32.py
lgovea/coati
636ec99d5baff4cdcbfe7478611cf54d4cbf4546
[ "MIT" ]
2
2017-10-13T20:08:22.000Z
2018-12-05T21:17:06.000Z
"""General functionality for the win32 api.""" import win32com.client as w32 from ctypes import windll import time def run(name): app = w32.Dispatch(name) app.Visible = True return app def copy(obj): windll.user32.EmptyClipboard() obj.Activate() obj.Copy() def execute_commandbar(element, c...
18.409091
55
0.711111
53
405
5.415094
0.716981
0.04878
0
0
0
0
0
0
0
0
0
0.036254
0.182716
405
21
56
19.285714
0.830816
0.098765
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0.214286
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
033b5762a2d3761bf2ec5661805ad700816931a0
1,504
py
Python
FangSpider/FangSpider/spiders/xici_proxy_spider.py
Justyer/FangDataSpider
254abe329689db709856e645a4ce4509e5103d38
[ "MIT" ]
1
2018-07-12T02:59:15.000Z
2018-07-12T02:59:15.000Z
FangSpider/FangSpider/spiders/xici_proxy_spider.py
Justyer/FangDataSpider
254abe329689db709856e645a4ce4509e5103d38
[ "MIT" ]
null
null
null
FangSpider/FangSpider/spiders/xici_proxy_spider.py
Justyer/FangDataSpider
254abe329689db709856e645a4ce4509e5103d38
[ "MIT" ]
null
null
null
import re from scrapy.spiders import CrawlSpider from scrapy.selector import Selector from scrapy.loader import ItemLoader from scrapy.http import Request from FangSpider.items import * class SixSixProxySpider(CrawlSpider): name = 'xici_proxy_ip' start_urls = [ 'http://www.xicidaili.com/nn' ] ...
29.490196
97
0.581782
171
1,504
4.976608
0.45614
0.047004
0.074031
0.044653
0.077556
0.077556
0.077556
0.077556
0
0
0
0.018282
0.272606
1,504
50
98
30.08
0.759598
0.073138
0
0.05
0
0
0.179727
0.097771
0
0
0
0
0
0
null
null
0
0.15
null
null
0.075
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
034010f84f0c986172929992d0a275baf744c990
3,391
py
Python
task_mongo_crud.py
kkr016/mongoDB
0ed6a6c1b4d1876bb42ad929abab0508554838a2
[ "CC0-1.0" ]
null
null
null
task_mongo_crud.py
kkr016/mongoDB
0ed6a6c1b4d1876bb42ad929abab0508554838a2
[ "CC0-1.0" ]
null
null
null
task_mongo_crud.py
kkr016/mongoDB
0ed6a6c1b4d1876bb42ad929abab0508554838a2
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """Task_mongo_CRUD.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1OuDg6bEjpOU2NmeZwJWc-f4HubVPYXQ0 """ import pymongo # Connecting Mongo Database with Object db = pymongo.MongoClient("mongodb://kkr016:qwerty12@kkr016-s...
32.605769
284
0.621646
489
3,391
4.233129
0.341513
0.028986
0.026087
0.034783
0.283575
0.270048
0.264251
0.210628
0.177295
0.177295
0
0.085429
0.14391
3,391
104
285
32.605769
0.627627
0.10233
0
0.320755
1
0.037736
0.435686
0.084433
0
0
0
0
0
1
0
false
0
0.018868
0
0.018868
0.264151
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0349ef31d5028d9bf26115cb820dc7764116c668
2,288
py
Python
rbb_server/src/rbb_server/model/rosbag_comment.py
SK4P3/rbb_core
618617270314af5335de30179072244e1f440c4c
[ "MIT" ]
55
2019-05-09T06:43:05.000Z
2021-12-08T05:56:43.000Z
rbb_server/src/rbb_server/model/rosbag_comment.py
SK4P3/rbb_core
618617270314af5335de30179072244e1f440c4c
[ "MIT" ]
5
2019-09-08T15:33:28.000Z
2021-04-17T17:30:53.000Z
rbb_server/src/rbb_server/model/rosbag_comment.py
SK4P3/rbb_core
618617270314af5335de30179072244e1f440c4c
[ "MIT" ]
16
2019-08-08T07:15:35.000Z
2021-12-07T15:34:41.000Z
# AMZ-Driverless # Copyright (c) 2019 Authors: # - Huub Hendrikx <hhendrik@ethz.ch> # # 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 ...
36.31746
80
0.723776
315
2,288
5.161905
0.48254
0.054121
0.01599
0.03075
0
0
0
0
0
0
0
0.004376
0.201049
2,288
62
81
36.903226
0.88512
0.486888
0
0
0
0
0.067885
0
0
0
0
0
0
1
0.071429
false
0.035714
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
034e2a21f2190fcc6264719cad9b4a98a57bff38
3,215
py
Python
xldlib/exception/codes.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
xldlib/exception/codes.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
xldlib/exception/codes.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
''' Exceptions/codes ________________ Organized error codes for reporting errors and exceptions. :copyright: (c) 2015 The Regents of the University of California. :license: GNU GPL, see licenses/GNU GPLv3.txt for more details. ''' CODES = { "000": ("Cannot find file%(-s)s in row%(-s)s {0}." ...
51.854839
78
0.609642
419
3,215
4.637232
0.479714
0.009264
0.01544
0.018013
0.152856
0.136902
0.106022
0.037056
0.022645
0
0
0.039934
0.244479
3,215
61
79
52.704918
0.759984
0.069673
0
0.1
0
0
0.744178
0.0162
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0352f7045546a5a53a59d0a490e31a702dbe77ea
520
py
Python
tests/test_config.py
upwork/python-upwork-oauth2
5a10558a5c4479e7aea462fec0193db40ecde9e2
[ "Apache-2.0" ]
9
2020-09-19T04:55:12.000Z
2022-02-28T18:35:14.000Z
tests/test_config.py
upwork/python-upwork-oauth2
5a10558a5c4479e7aea462fec0193db40ecde9e2
[ "Apache-2.0" ]
1
2021-06-16T10:24:36.000Z
2021-06-17T08:09:24.000Z
tests/test_config.py
upwork/python-upwork-oauth2
5a10558a5c4479e7aea462fec0193db40ecde9e2
[ "Apache-2.0" ]
null
null
null
from upwork import config def test_config_initialization(): cfg = config.Config( { "client_id": "keyxxxxxxxxxxxxxxxxxxxx", "client_secret": "secretxxxxxxxxxx", "redirect_uri": "https://a.callback.url", "token": {"access_token": "a"}, } ) ass...
28.888889
55
0.611538
51
520
6.039216
0.431373
0.116883
0.201299
0.11039
0.181818
0.181818
0
0
0
0
0
0
0.248077
520
17
56
30.588235
0.787724
0
0
0
0
0
0.359615
0.088462
0
0
0
0
0.285714
1
0.071429
false
0
0.071429
0
0.142857
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0354b2bf1378ff0915be1768d7fa5553d74764e4
659
py
Python
setup.py
Delaunay/bcachefs-pytools
7f2a3ae925347cea69cbfb7f88bf2f297dedcd27
[ "BSD-3-Clause" ]
null
null
null
setup.py
Delaunay/bcachefs-pytools
7f2a3ae925347cea69cbfb7f88bf2f297dedcd27
[ "BSD-3-Clause" ]
null
null
null
setup.py
Delaunay/bcachefs-pytools
7f2a3ae925347cea69cbfb7f88bf2f297dedcd27
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import setup import subprocess if __name__ == '__main__': subprocess.run("make build-bcachefs", shell=True, check=True) setup( name='pybcachefs', version='0.0.0', description='BCacheFS tools', author='Pierre Delaunay', package_dat...
22.724138
65
0.53566
56
659
6.071429
0.625
0.158824
0
0
0
0
0
0
0
0
0
0.006803
0.330804
659
28
66
23.535714
0.764172
0.080425
0
0.090909
0
0
0.269868
0.039735
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
03587528e5ca26d864c0b289ea4f185141665f23
787
py
Python
pyupdater/vendor/PyInstaller/hooks/hook-encodings.py
rsumner31/PyUpdater1
d9658000472e57453267ee8fa174ae914dd8d33c
[ "BSD-2-Clause" ]
5
2018-01-31T04:49:00.000Z
2020-11-05T10:10:43.000Z
pyupdater/vendor/PyInstaller/hooks/hook-encodings.py
rsumner31/PyUpdater1
d9658000472e57453267ee8fa174ae914dd8d33c
[ "BSD-2-Clause" ]
1
2021-06-01T21:44:48.000Z
2021-06-01T21:44:48.000Z
pyupdater/vendor/PyInstaller/hooks/hook-encodings.py
rsumner31/PyUpdater1
d9658000472e57453267ee8fa174ae914dd8d33c
[ "BSD-2-Clause" ]
3
2019-03-18T06:50:11.000Z
2020-09-08T10:12:26.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this softwa...
31.48
80
0.565438
88
787
4.954545
0.579545
0.082569
0.059633
0.068807
0.073395
0
0
0
0
0
0
0.008746
0.128335
787
24
81
32.791667
0.626822
0.505718
0
0
0
0
0.126316
0
0
0
0
0
0
1
0
false
0
0.4
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
1
0
0
0
0
1
036b9d9eb919c9221656e05d8e2b5e9f1e7d5a55
888
py
Python
core/migrations/0005_movrotativo.py
diegopmayer/ProjetoFinal
18dfaa15c80e5890a0832ba059d312cd557193da
[ "MIT" ]
3
2021-01-30T20:49:10.000Z
2021-01-30T20:57:58.000Z
core/migrations/0005_movrotativo.py
diegopmayer/ProjetoFinal
18dfaa15c80e5890a0832ba059d312cd557193da
[ "MIT" ]
3
2020-02-12T00:26:13.000Z
2021-03-18T22:20:34.000Z
core/migrations/0005_movrotativo.py
diegopmayer/ProjetoFinal
18dfaa15c80e5890a0832ba059d312cd557193da
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-04 21:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0004_auto_20190304_1833'), ] operations = [ migrations.CreateModel( name='MovRotativo',...
34.153846
117
0.60473
91
888
5.802198
0.593407
0.060606
0.079545
0.125
0.223485
0.223485
0.223485
0.223485
0.223485
0.223485
0
0.046828
0.254505
888
25
118
35.52
0.750755
0.050676
0
0
1
0
0.124851
0.027348
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
036c70357ced74ec6ba030e5898283825420af7f
6,186
py
Python
tests/test_basic.py
reactive-firewall/FetchPublicBlacklists
70050ab53882ec2b4a35ca87a15703c0106c95cd
[ "Apache-2.0" ]
null
null
null
tests/test_basic.py
reactive-firewall/FetchPublicBlacklists
70050ab53882ec2b4a35ca87a15703c0106c95cd
[ "Apache-2.0" ]
6
2018-05-30T05:58:31.000Z
2018-05-30T06:52:06.000Z
tests/test_basic.py
reactive-firewall/FetchPublicBlacklists
70050ab53882ec2b4a35ca87a15703c0106c95cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from .context import FetchPublicBlacklists # noqa from FetchPublicBlacklists import FetchPublicBlacklists # noqa from FetchPublicBlacklists import helpers # noqa import unittest class BasicTestSuite(unittest.TestCase): """Basic test cases.""" def test_absolute_truth_and_meaning(s...
34.366667
91
0.574846
706
6,186
4.890935
0.161473
0.017376
0.018245
0.013901
0.653635
0.567912
0.450623
0.392123
0.353316
0.353316
0
0.276704
0.297769
6,186
179
92
34.558659
0.518186
0.091497
0
0.451389
0
0
0.205554
0.115398
0
0
0
0
0.201389
1
0.097222
false
0
0.027778
0
0.131944
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
036d929e1beda675e9dd609e886a0097e1f5f354
7,046
py
Python
Classes/Functions/MapLoader.py
Occy88/TrainSimulator
5791cd1d9719f9343610419eda880ec2212bd9c5
[ "MIT" ]
null
null
null
Classes/Functions/MapLoader.py
Occy88/TrainSimulator
5791cd1d9719f9343610419eda880ec2212bd9c5
[ "MIT" ]
null
null
null
Classes/Functions/MapLoader.py
Occy88/TrainSimulator
5791cd1d9719f9343610419eda880ec2212bd9c5
[ "MIT" ]
null
null
null
from io import BytesIO from PIL import Image from urllib import request import os from pathlib import Path import time import threading from SimpleGUICS2Pygame import simpleguics2pygame from Classes.Middle.SpriteControl.SpriteAnimator import SpriteAnimator from Classes.Base.Vector import Vector from Classes.Super.MapTi...
51.057971
2,364
0.682515
865
7,046
5.520231
0.23237
0.077906
0.036859
0.030785
0.400628
0.311623
0.223874
0.138429
0.047749
0.034764
0
0.043811
0.203094
7,046
137
2,365
51.430657
0.806589
0.025263
0
0.201835
0
0.009174
0.354707
0.340426
0.009174
0
0.030312
0
0
1
0.091743
false
0
0.137615
0
0.266055
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0375a9245f194c33beb9554a3fcc3bba408fdd39
365
py
Python
tests/test_stats.py
tomwhite/dboard
1b446d3c65ee6be42fb09e3c0aa149e129b6420a
[ "Apache-2.0" ]
2
2018-12-11T21:32:05.000Z
2019-03-06T20:37:21.000Z
tests/test_stats.py
tomwhite/dboard
1b446d3c65ee6be42fb09e3c0aa149e129b6420a
[ "Apache-2.0" ]
null
null
null
tests/test_stats.py
tomwhite/dboard
1b446d3c65ee6be42fb09e3c0aa149e129b6420a
[ "Apache-2.0" ]
null
null
null
from dboard import stats import pytest data = ((0, 1, 2, 3, 4), (2.0, 5.0, 4.5, 10.0, 6.0)) def test_time_in_range(): assert stats.time_in_range(data, (4.0, 7.0)) == pytest.approx(60.0) def test_mean(): assert stats.mean(data) == pytest.approx(5.5) def test_estimated_hba1c(): assert stats.estimated_h...
21.470588
72
0.660274
68
365
3.411765
0.441176
0.090517
0.068966
0
0
0
0
0
0
0
0
0.107492
0.158904
365
16
73
22.8125
0.648208
0
0
0
0
0
0
0
0
0
0
0
0.333333
1
0.333333
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0378dde56ea0a6e4866ccad32ee39504c41db748
3,538
gyp
Python
third_party/webrtc/src/chromium/src/third_party/errorprone/errorprone.gyp
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
8
2016-02-08T11:59:31.000Z
2020-05-31T15:19:54.000Z
third_party/webrtc/src/chromium/src/third_party/errorprone/errorprone.gyp
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
1
2021-05-05T11:11:31.000Z
2021-05-05T11:11:31.000Z
third_party/webrtc/src/chromium/src/third_party/errorprone/errorprone.gyp
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
7
2016-02-09T09:28:14.000Z
2020-07-25T19:03:36.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'errorprone_script_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone', }, 'targets': [ { # GN: //third_party/errorpron...
29.731092
80
0.536179
353
3,538
5.110482
0.331445
0.049889
0.033259
0.060976
0.384701
0.358093
0.296009
0.243348
0.222838
0.129712
0
0.010093
0.299887
3,538
118
81
29.983051
0.718208
0.167044
0
0.415094
0
0
0.540034
0.346508
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
037b10990a0454384955f936aa8f5b913624b935
2,417
py
Python
tests/integration/cli/setup_test.py
gamechanger/dusty
dd9778e3a4f0c623209e53e98aa9dc1fe76fc309
[ "MIT" ]
421
2015-06-02T16:29:59.000Z
2021-06-03T18:44:42.000Z
tests/integration/cli/setup_test.py
gamechanger/dusty
dd9778e3a4f0c623209e53e98aa9dc1fe76fc309
[ "MIT" ]
404
2015-06-02T20:23:42.000Z
2019-08-21T16:59:41.000Z
tests/integration/cli/setup_test.py
gamechanger/dusty
dd9778e3a4f0c623209e53e98aa9dc1fe76fc309
[ "MIT" ]
16
2015-06-16T17:21:02.000Z
2020-03-27T02:27:09.000Z
from mock import patch from ...testcases import DustyIntegrationTestCase from dusty import constants from dusty.config import save_config_value class TestSetupCLI(DustyIntegrationTestCase): def setUp(self): super(TestSetupCLI, self).setUp() save_config_value(constants.CONFIG_SETUP_KEY, False) ...
50.354167
162
0.742242
314
2,417
5.359873
0.184713
0.106952
0.160428
0.192513
0.768865
0.636958
0.607249
0.598336
0.531788
0.50921
0
0.011555
0.14067
2,417
47
163
51.425532
0.798748
0
0
0.384615
0
0.025641
0.221349
0.158875
0
0
0
0
0.230769
1
0.153846
false
0
0.102564
0
0.282051
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
037c15002ca6aec64953f7f2f7bea2e50e64adac
140
py
Python
Python/Bit++.py
bic-potato/codeforces_learning
28ee656a71f841f997e564ba0417fe1a8aa15b1b
[ "MIT" ]
null
null
null
Python/Bit++.py
bic-potato/codeforces_learning
28ee656a71f841f997e564ba0417fe1a8aa15b1b
[ "MIT" ]
null
null
null
Python/Bit++.py
bic-potato/codeforces_learning
28ee656a71f841f997e564ba0417fe1a8aa15b1b
[ "MIT" ]
null
null
null
n=int(input()) i=0 x=0 while (i<n): b=set(input()) if("+" in b): x+=1 else: x+=(-1) i+=1 else: print(x)
10.769231
18
0.385714
26
140
2.076923
0.538462
0.074074
0
0
0
0
0
0
0
0
0
0.05618
0.364286
140
12
19
11.666667
0.550562
0
0
0.166667
0
0
0.007143
0
0
0
0
0
0
1
0
false
0
0
0
0
0.083333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
037c3ab1e61d06772711646d47a3c87659b86fbf
1,553
py
Python
node.py
CERIT-SC/puppet-reports
5bca5f8207bf8030968d4188b5f365859148c138
[ "WTFPL" ]
1
2015-01-06T15:44:37.000Z
2015-01-06T15:44:37.000Z
node.py
CERIT-SC/puppet-reports
5bca5f8207bf8030968d4188b5f365859148c138
[ "WTFPL" ]
null
null
null
node.py
CERIT-SC/puppet-reports
5bca5f8207bf8030968d4188b5f365859148c138
[ "WTFPL" ]
null
null
null
#!/usr/bin/python from pypuppetdb import connect import datetime, optparse, sys def get_events(db, node, days=1): data = {} now = datetime.datetime.utcnow() for r in db.node(node).reports(): delta = now - r.start.replace(tzinfo=None) if delta.days >= days: continue for ...
26.775862
74
0.538313
211
1,553
3.924171
0.421801
0.030193
0.02657
0.028986
0.062802
0.062802
0.062802
0
0
0
0
0.016995
0.280103
1,553
57
75
27.245614
0.723614
0.026401
0
0.159091
0
0
0.124252
0
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.113636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cee38903a3855fb46b5e4f136c490f40d7068269
1,761
py
Python
examples/catalog.py
gqueiroz/stac.py
e564670e52357a422ce516d237a43d176c5edced
[ "MIT" ]
null
null
null
examples/catalog.py
gqueiroz/stac.py
e564670e52357a422ce516d237a43d176c5edced
[ "MIT" ]
null
null
null
examples/catalog.py
gqueiroz/stac.py
e564670e52357a422ce516d237a43d176c5edced
[ "MIT" ]
1
2021-07-29T04:38:14.000Z
2021-07-29T04:38:14.000Z
"""A class that models a STAC Catalog.""" from examples._utils import Utils from examples.relation import RelationType from examples.traversable import Traversable class Catalog(Traversable): """A class that models a STAC Catalog.""" def __init__(self, data=None): """Initialize the Catalog instance ...
27.952381
84
0.626349
207
1,761
5.2657
0.410628
0.055046
0.018349
0.029358
0.157798
0.157798
0.108257
0
0
0
0
0.00239
0.287337
1,761
62
85
28.403226
0.866135
0.439523
0
0.333333
0
0
0.033735
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.541667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ceecf15110ce7f80be66c38ab3208ecea4949d06
6,927
py
Python
src/oci/core/models/drg_route_distribution_statement.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/core/models/drg_route_distribution_statement.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/core/models/drg_route_distribution_statement.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
36.650794
245
0.670131
823
6,927
5.528554
0.217497
0.065714
0.153846
0.06
0.606154
0.468132
0.414066
0.390769
0.390769
0.390769
0
0.005911
0.26736
6,927
188
246
36.845745
0.89064
0.627256
0
0.070175
0
0
0.086753
0.02026
0
0
0
0
0
1
0.210526
false
0
0.035088
0.035088
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
cef14f83119f2bfafc1ed581d95cd85017907234
1,567
py
Python
test/snmp/test_any_failure_happened.py
polarG/splunk-connect-for-snmp
d1e85675edd5caa5bad9114d1611411e15cec063
[ "Apache-2.0" ]
null
null
null
test/snmp/test_any_failure_happened.py
polarG/splunk-connect-for-snmp
d1e85675edd5caa5bad9114d1611411e15cec063
[ "Apache-2.0" ]
null
null
null
test/snmp/test_any_failure_happened.py
polarG/splunk-connect-for-snmp
d1e85675edd5caa5bad9114d1611411e15cec063
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from unittest.mock import patch from pysnmp.proto.errind import EmptyResponse from splunk_connect_for_snmp.snmp.exceptions import SnmpActionError from splunk_connect_for_snmp.snmp.manager import _any_failure_happened class TestAnyFailureHappened(TestCase): def test__any_failure_hap...
43.527778
102
0.714742
201
1,567
5.318408
0.253731
0.014967
0.117867
0.112254
0.786717
0.76333
0.646399
0.646399
0.594013
0.594013
0
0.028662
0.198468
1,567
35
103
44.771429
0.822452
0
0
0.482759
0
0.068966
0.253989
0.074027
0
0
0
0
0.172414
1
0.103448
false
0
0.172414
0
0.310345
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
30034753a2acec80f7550fbbeef869fbfd72a7af
1,518
py
Python
example/tests/test_e2e_link.py
TorselloM/non-admin-draftail
c3565181e02300aaffda5b83f01c2541203bf8d4
[ "BSD-3-Clause" ]
null
null
null
example/tests/test_e2e_link.py
TorselloM/non-admin-draftail
c3565181e02300aaffda5b83f01c2541203bf8d4
[ "BSD-3-Clause" ]
null
null
null
example/tests/test_e2e_link.py
TorselloM/non-admin-draftail
c3565181e02300aaffda5b83f01c2541203bf8d4
[ "BSD-3-Clause" ]
null
null
null
import pytest from .conftest import FORM_PAGE_URL @pytest.mark.django_db def test_link_button(authenticated_page, live_server): URL = "https://timonweb.com/" TEXT = "timonweb.com" authenticated_page.goto(live_server + FORM_PAGE_URL) # Click image button in the editor authenticated_page.click("b...
37.95
88
0.742424
196
1,518
5.576531
0.382653
0.202196
0.146386
0.076853
0.42086
0.42086
0.354986
0.274474
0.221409
0.221409
0
0
0.147563
1,518
39
89
38.923077
0.844668
0.164032
0
0.3
0
0
0.315079
0.138095
0
0
0
0
0.1
1
0.05
false
0
0.1
0
0.15
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
300a76e92e77168e5ea47d3bd21eb4bf81b69004
708
py
Python
CEV/ex037.py
EduardoMachadoCostaOliveira/Python
329e388c190118f742a3c3df90a15cd00519a58e
[ "MIT" ]
null
null
null
CEV/ex037.py
EduardoMachadoCostaOliveira/Python
329e388c190118f742a3c3df90a15cd00519a58e
[ "MIT" ]
null
null
null
CEV/ex037.py
EduardoMachadoCostaOliveira/Python
329e388c190118f742a3c3df90a15cd00519a58e
[ "MIT" ]
null
null
null
# Excreva um programa que leia um número inteiro qualquer e peça para o usuário escolher qual será a base de conversão: # -1 para binário # -2 para octal # -3 para hexadecimal numero = int(input('Digite um número inteiro: ')) print('''Escolha uma das bases para conversão: [ 1 ] converter para BINÁRIO [ 2 ] coverter par...
37.263158
119
0.693503
110
708
4.463636
0.463636
0.06721
0.07332
0.089613
0.105906
0
0
0
0
0
0
0.020583
0.176554
708
18
120
39.333333
0.821612
0.235876
0
0
0
0
0.666045
0
0
0
0
0
0
1
0
false
0
0
0
0
0.357143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
300b7b072994b1779a0293e5983272d75729a6ad
645
py
Python
backend/product_composition/models.py
carlosan1708/django-next
bd856d9f09693e47d237934b12a5d26b194e6bd4
[ "MIT" ]
1
2022-02-19T12:28:10.000Z
2022-02-19T12:28:10.000Z
backend/product_composition/models.py
carlosan1708/django-next
bd856d9f09693e47d237934b12a5d26b194e6bd4
[ "MIT" ]
null
null
null
backend/product_composition/models.py
carlosan1708/django-next
bd856d9f09693e47d237934b12a5d26b194e6bd4
[ "MIT" ]
1
2022-02-18T12:41:17.000Z
2022-02-18T12:41:17.000Z
from django.db import models class Product(models.Model): title = models.CharField(max_length=100) year = models.IntegerField() created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) creator = models.ForeignKey('auth.User', related_name='products', on_...
35.833333
95
0.711628
77
645
5.818182
0.532468
0.049107
0.071429
0.098214
0.303571
0.178571
0.178571
0
0
0
0
0.011215
0.170543
645
18
96
35.833333
0.826168
0
0
0.266667
0
0
0.052632
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.866667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
301047878595ee7e035b6da34a18d08b58903c20
939
py
Python
src/composite.py
Reathe/Qubic
7ee18eb6cb67ff3637f664dd225273c51ae19847
[ "MIT" ]
null
null
null
src/composite.py
Reathe/Qubic
7ee18eb6cb67ff3637f664dd225273c51ae19847
[ "MIT" ]
null
null
null
src/composite.py
Reathe/Qubic
7ee18eb6cb67ff3637f664dd225273c51ae19847
[ "MIT" ]
null
null
null
from abc import ABC from typing import List from ursina import * class Composite(ABC, Entity): __components: List[Entity] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.__components = [] @property def components(self) -> List[Entity]: """ components of the composite objects...
19.5625
57
0.682641
122
939
5.081967
0.45082
0.112903
0.019355
0.032258
0.064516
0
0
0
0
0
0
0.006596
0.192758
939
47
58
19.978723
0.811346
0.238552
0
0.083333
0
0
0.050946
0
0
0
0
0
0
1
0.208333
false
0
0.125
0
0.458333
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
30115e08c32a5e3c9fd516b4f447af2218bb952f
3,916
py
Python
fetch_stock_data.py
guan4015/Deep-Learning-Methods-in-Predicting-the-Movements-of-Stock-Prices.
db6a601592fbf3c5b254a5f9d2ca571296e8b055
[ "MIT" ]
null
null
null
fetch_stock_data.py
guan4015/Deep-Learning-Methods-in-Predicting-the-Movements-of-Stock-Prices.
db6a601592fbf3c5b254a5f9d2ca571296e8b055
[ "MIT" ]
null
null
null
fetch_stock_data.py
guan4015/Deep-Learning-Methods-in-Predicting-the-Movements-of-Stock-Prices.
db6a601592fbf3c5b254a5f9d2ca571296e8b055
[ "MIT" ]
null
null
null
import datetime import sys import urllib2 import re import os import time import urllib import urllib2 import pandas_datareader.data as web import random import json from math import log # output file name: input/stockPrices_raw.json # json structure: crawl daily price data from yahoo finance # ticker # ...
36.259259
154
0.639173
525
3,916
4.687619
0.377143
0.04551
0.035758
0.018692
0.076392
0
0
0
0
0
0
0.032515
0.230337
3,916
108
155
36.259259
0.784008
0.318182
0
0.101695
0
0.033898
0.130488
0.075092
0
0
0
0
0
0
null
null
0
0.20339
null
null
0.050847
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3018b442e363ad0b43eb00e44405fa890b80e5d8
9,770
py
Python
contributions/slice_generator.py
Parth92/ml-mock-data-challenge-1
2a3b8e7c6927b0d39a552bb3f1f4d615505bf6e9
[ "Apache-2.0" ]
10
2021-09-30T05:52:15.000Z
2022-03-23T17:23:00.000Z
contributions/slice_generator.py
Parth92/ml-mock-data-challenge-1
2a3b8e7c6927b0d39a552bb3f1f4d615505bf6e9
[ "Apache-2.0" ]
13
2021-10-09T14:34:05.000Z
2022-02-15T11:27:21.000Z
contributions/slice_generator.py
Parth92/ml-mock-data-challenge-1
2a3b8e7c6927b0d39a552bb3f1f4d615505bf6e9
[ "Apache-2.0" ]
5
2021-11-03T03:37:24.000Z
2021-12-29T17:03:38.000Z
import multiprocessing as mp import h5py import queue import time import warnings import numpy as np class Slicer(object): """Generator to access slices of an input file as output by generate_data.py for the MLGWSC-1. Arguments --------- filepath : str Path to the file that should be ...
37.722008
80
0.510338
1,092
9,770
4.43956
0.222527
0.020421
0.016089
0.016502
0.209365
0.179662
0.179662
0.166873
0.141295
0.108911
0
0.010817
0.403889
9,770
258
81
37.868217
0.8216
0.192835
0
0.312139
1
0
0.035039
0
0
0
0
0
0
1
0.086705
false
0
0.034682
0.011561
0.16763
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
301a91d972455996b12107cc90dd0c5c480512fa
461
py
Python
teknologr/registration/migrations/0005_applicant_country.py
christiansegercrantz/teknologr.io
0356b4a09218354829a00205e58e5b7ceb2a3d59
[ "MIT" ]
null
null
null
teknologr/registration/migrations/0005_applicant_country.py
christiansegercrantz/teknologr.io
0356b4a09218354829a00205e58e5b7ceb2a3d59
[ "MIT" ]
null
null
null
teknologr/registration/migrations/0005_applicant_country.py
christiansegercrantz/teknologr.io
0356b4a09218354829a00205e58e5b7ceb2a3d59
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-06-15 15:07 from django.db import migrations import django_countries.fields class Migration(migrations.Migration): dependencies = [ ('registration', '0004_auto_20190610_2250'), ] operations = [ migrations.AddField( model_name='applicant', ...
23.05
95
0.642082
51
461
5.666667
0.745098
0.103806
0.145329
0
0
0
0
0
0
0
0
0.092219
0.247289
461
19
96
24.263158
0.740634
0.097614
0
0
1
0
0.128019
0.055556
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
301da1396bd2ba14340016cef4458a675c28f4f1
155
py
Python
algorithms/recursion/fibonnaci.py
emirot/algo-loco.blog
0e377a7b0699ded1599a9a5025148236bc2ee22a
[ "Apache-2.0" ]
null
null
null
algorithms/recursion/fibonnaci.py
emirot/algo-loco.blog
0e377a7b0699ded1599a9a5025148236bc2ee22a
[ "Apache-2.0" ]
null
null
null
algorithms/recursion/fibonnaci.py
emirot/algo-loco.blog
0e377a7b0699ded1599a9a5025148236bc2ee22a
[ "Apache-2.0" ]
null
null
null
def fib(n): if n <= 1: return n return fib(n - 1) + fib(n - 2) if __name__ == "__main__": assert fib(3) == 2 assert fib(6) == 8
14.090909
34
0.477419
26
155
2.538462
0.5
0.181818
0
0
0
0
0
0
0
0
0
0.07
0.354839
155
10
35
15.5
0.59
0
0
0
0
0
0.051948
0
0
0
0
0
0.285714
1
0.142857
false
0
0
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
30223588af21bcbef5215086c0c2ae4d50706f8c
2,916
py
Python
web/banktest/routers.py
juanmitaboada/banktest
56685f1dc05a951e186ea317ff0d36a1eac64877
[ "Apache-2.0" ]
null
null
null
web/banktest/routers.py
juanmitaboada/banktest
56685f1dc05a951e186ea317ff0d36a1eac64877
[ "Apache-2.0" ]
null
null
null
web/banktest/routers.py
juanmitaboada/banktest
56685f1dc05a951e186ea317ff0d36a1eac64877
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.models import AnonymousUser from django.conf import settings from rest_framework import routers, serializers, viewsets from .base.models import User class UserSerializer(serializers.HyperlinkedModelSerializer): ''' Serializers define the API representation. ''' class Meta: ...
26.509091
72
0.567558
280
2,916
5.810714
0.339286
0.063921
0.031346
0.023356
0.207744
0.207744
0.207744
0.152428
0.152428
0.152428
0
0
0.341907
2,916
109
73
26.752294
0.847837
0.076475
0
0.487179
0
0
0.075649
0
0
0
0
0
0
1
0.051282
false
0.115385
0.051282
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3024bf5de01efd56e530bdd962c041ef8dacbe04
263
py
Python
src/config.py
djin31/p4-trafficgentools
8070dcfc1e91d6102762eab0f0c478e4398ed87b
[ "MIT" ]
21
2019-10-08T11:28:52.000Z
2021-12-09T16:48:21.000Z
src/config.py
djin31/p4-traffictools
8070dcfc1e91d6102762eab0f0c478e4398ed87b
[ "MIT" ]
29
2020-05-09T13:10:22.000Z
2020-12-25T10:28:26.000Z
src/config.py
djin31/p4-traffictools
8070dcfc1e91d6102762eab0f0c478e4398ed87b
[ "MIT" ]
8
2019-10-08T04:33:14.000Z
2021-12-21T11:43:46.000Z
# global variables for common header types ETHER_DETECT = False IPv4_DETECT = False IPv6_DETECT = False TCP_DETECT = False UDP_DETECT = False DEBUG = False # Maximum possible headers within a packet, hyperparameter with default value as 10 MAX_PATH_LENGTH = 10
21.916667
83
0.798479
39
263
5.205128
0.74359
0.270936
0
0
0
0
0
0
0
0
0
0.027273
0.163498
263
11
84
23.909091
0.895455
0.463878
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
302523b649bb48f95991c056f6bc2701dddaa360
1,989
py
Python
src/day2/day2.py
msloniewski/AoC2019
c6f6c149e1905d7841a640700d4cc4a7062422df
[ "MIT" ]
null
null
null
src/day2/day2.py
msloniewski/AoC2019
c6f6c149e1905d7841a640700d4cc4a7062422df
[ "MIT" ]
null
null
null
src/day2/day2.py
msloniewski/AoC2019
c6f6c149e1905d7841a640700d4cc4a7062422df
[ "MIT" ]
null
null
null
import sys, os, re sys.path.insert(0, os.path.abspath('..')) from common.DayBase import DayBase class Day2(DayBase): def __init__(self): super(Day2, self).__init__() self._instructions = None self._instructions_backup = None def process_input(self): self._instructions = self....
28.414286
73
0.562092
211
1,989
5.028436
0.303318
0.377003
0.112158
0.120641
0.174364
0
0
0
0
0
0
0.041353
0.331322
1,989
69
74
28.826087
0.756391
0
0
0.076923
0
0
0.033685
0.011564
0
0
0
0
0
1
0.096154
false
0
0.038462
0
0.153846
0.038462
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
302a4793e594ef9eb65f9f3b5f352f6a129dfa47
537
py
Python
python3/teemo_attacking.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
1
2020-10-08T09:17:40.000Z
2020-10-08T09:17:40.000Z
python3/teemo_attacking.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
python3/teemo_attacking.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
class Solution: def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int: if not timeSeries: return 0 ans = 0 start = timeSeries[0] end = timeSeries[0] + duration for t in timeSeries[1:]: if t < end: ...
24.409091
80
0.41527
50
537
4.46
0.42
0.098655
0.107623
0
0
0
0
0
0
0
0
0.018797
0.504655
537
22
81
24.409091
0.819549
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
302ddf6b0317c906636f91e271336a04a0d769c8
7,904
py
Python
MachineLearning/dataLoader_uber_old.py
ChanaRoss/Thesis
39ab83d52055d401a3bb71da25b3458ad9196ecd
[ "Apache-2.0" ]
null
null
null
MachineLearning/dataLoader_uber_old.py
ChanaRoss/Thesis
39ab83d52055d401a3bb71da25b3458ad9196ecd
[ "Apache-2.0" ]
9
2020-03-24T17:19:30.000Z
2022-03-11T23:55:15.000Z
MachineLearning/dataLoader_uber_old.py
ChanaRoss/Thesis
39ab83d52055d401a3bb71da25b3458ad9196ecd
[ "Apache-2.0" ]
null
null
null
# mathematical imports - import numpy as np # pytorch imports - import torch import torch.utils.data as data device = torch.device("cuda" if torch.cuda.is_available() else "cpu") def createDiff(data): dataOut = np.zeros(shape=(data.shape[0],data.shape[1]-1)) for i in range(data.shape[1]-1): da...
39.919192
140
0.584008
1,026
7,904
4.420078
0.135478
0.098787
0.094598
0.046307
0.708049
0.682249
0.626461
0.625358
0.625358
0.623594
0
0.025402
0.267839
7,904
197
141
40.121827
0.758251
0.039853
0
0.585526
0
0
0.053305
0.012007
0
0
0
0
0
1
0.092105
false
0
0.019737
0.026316
0.203947
0.059211
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
30448f7f5758c4bf07790c6650c6ec6989c1e485
1,287
py
Python
python/TrackExtrapolateTool.py
Plamenna/proba
517d7e437865c372e538f77d2242c188740f35d9
[ "BSD-4-Clause" ]
null
null
null
python/TrackExtrapolateTool.py
Plamenna/proba
517d7e437865c372e538f77d2242c188740f35d9
[ "BSD-4-Clause" ]
null
null
null
python/TrackExtrapolateTool.py
Plamenna/proba
517d7e437865c372e538f77d2242c188740f35d9
[ "BSD-4-Clause" ]
null
null
null
import ROOT import shipunit as u minNdf = 20 parallelToZ = ROOT.TVector3(0., 0., 1.) top = ROOT.gGeoManager.GetTopVolume() z_ecal = top.GetNode('Ecal_1').GetMatrix().GetTranslation()[2] def extrapolateToPlane(fT,z): # etrapolate to a plane perpendicular to beam direction (z) rc,pos,mom = False,None,None fst = fT...
35.75
63
0.636364
184
1,287
4.429348
0.445652
0.03681
0.031902
0.034356
0
0
0
0
0
0
0
0.026471
0.207459
1,287
35
64
36.771429
0.772549
0.063714
0
0
0
0
0.029118
0
0
0
0
0
0
0
null
null
0
0.064516
null
null
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3049bf1c67390464519f9d7c121aac9b0262956a
1,290
py
Python
em_tests.py
amloewi/css-blockmodels
f4c0b907632c1cd9dea2930e3efc25125cd18e66
[ "MIT" ]
2
2015-11-20T14:22:19.000Z
2016-10-12T21:03:49.000Z
em_tests.py
amloewi/css-blockmodels
f4c0b907632c1cd9dea2930e3efc25125cd18e66
[ "MIT" ]
null
null
null
em_tests.py
amloewi/css-blockmodels
f4c0b907632c1cd9dea2930e3efc25125cd18e66
[ "MIT" ]
null
null
null
import numpy as np import blockmodels as bm import css_em as em # Do it # 1) With k > 2 # 2) Different rates for diffent groups # G_true = bm.blocked_matrix(20, 2, dim=2) # on=1, off=0 X = [bm.blocked_matrix(20, 2, dim=2, on=.8, off=.2) for i in range(5)] X += [bm.blocked_matrix(20, 2, dim=2, on=.9, off=.1) for i i...
29.318182
85
0.684496
247
1,290
3.518219
0.497976
0.013809
0.051784
0.058688
0.112773
0.085155
0.085155
0.085155
0.057537
0
0
0.028463
0.182946
1,290
43
86
30
0.796015
0.539535
0
0
0
0
0.059233
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
306652c3b7321ce306db91c9361587f93a19afa8
13,686
py
Python
.circleci/scripts/summarize-test-results.py
tinker-michaelj/hedera-services
60c4aa6d4d6746b23528e487aa5b87ae0b8fd723
[ "Apache-2.0" ]
null
null
null
.circleci/scripts/summarize-test-results.py
tinker-michaelj/hedera-services
60c4aa6d4d6746b23528e487aa5b87ae0b8fd723
[ "Apache-2.0" ]
null
null
null
.circleci/scripts/summarize-test-results.py
tinker-michaelj/hedera-services
60c4aa6d4d6746b23528e487aa5b87ae0b8fd723
[ "Apache-2.0" ]
1
2021-12-06T21:22:47.000Z
2021-12-06T21:22:47.000Z
import re import sys import os import json import argparse from collections import OrderedDict class TestJobResult: def __init__(self, status, job_url, step_failed): self.job_url = job_url self.status = status self.step_failed = step_failed def summarize_test(): return '' ...
40.371681
140
0.637294
1,759
13,686
4.741899
0.17112
0.034408
0.036926
0.058027
0.400072
0.365664
0.342885
0.299604
0.275626
0.190385
0
0.006928
0.240684
13,686
338
141
40.491124
0.795708
0.167982
0
0.191304
0
0.013043
0.212135
0.099243
0
0
0
0
0
1
0.056522
false
0.108696
0.026087
0.017391
0.156522
0.056522
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3066f7710a10b7ce103af5450ee2e11a5c03b81a
588
py
Python
scripts/convert_pm.py
transparenciahackday/democratica
246e79931c3e314a269469e67da00c12af3a5818
[ "MIT" ]
3
2016-01-10T16:00:10.000Z
2018-03-13T09:21:33.000Z
scripts/convert_pm.py
transparenciahackday/democratica
246e79931c3e314a269469e67da00c12af3a5818
[ "MIT" ]
null
null
null
scripts/convert_pm.py
transparenciahackday/democratica
246e79931c3e314a269469e67da00c12af3a5818
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ### Set up Django path import sys, os projectpath = os.path.abspath('../../') if projectpath not in sys.path: sys.path.append(projectpath) sys.path.append(os.path.join(projectpath, 'democratica/')) os.environ['DJANGO_SETTINGS_MODULE'] = 'democratica.settings' from...
25.565217
63
0.721088
84
588
5
0.559524
0.05
0.061905
0
0
0
0
0
0
0
0
0.007843
0.132653
588
22
64
26.727273
0.815686
0.103742
0
0
0
0
0.191939
0.042226
0
0
0
0
0
0
null
null
0
0.2
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
306d709ff64719f817cc5782c4e350394884728b
969
py
Python
Interview Based/Kadane's Algorithm.py
nane121/HacktoberFest2020
29eb99754ee93f643d4b0bd7e18570079e718d59
[ "MIT" ]
25
2020-10-01T05:44:04.000Z
2020-10-30T17:30:26.000Z
Interview Based/Kadane's Algorithm.py
nane121/HacktoberFest2020
29eb99754ee93f643d4b0bd7e18570079e718d59
[ "MIT" ]
14
2020-10-01T09:32:47.000Z
2020-11-05T16:17:12.000Z
Interview Based/Kadane's Algorithm.py
nane121/HacktoberFest2020
29eb99754ee93f643d4b0bd7e18570079e718d59
[ "MIT" ]
143
2020-10-01T05:47:04.000Z
2021-10-03T04:25:42.000Z
""" Given an array arr of N integers. Find the contiguous sub-array with maximum sum. Input: The first line of input contains an integer T denoting the number of test cases. The description of T test cases follows. The first line of each test case contains a single integer N denoting the size of array. The second l...
20.617021
103
0.667699
186
969
3.505376
0.387097
0.02454
0.013804
0.064417
0.015337
0
0
0
0
0
0
0.0563
0.230134
969
46
104
21.065217
0.810992
0.75129
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.090909
0
0
0
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1