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
8d0131fd0dd77260df8028fcae8b87ef1c39cda9
1,175
py
Python
tests/integration_tests/test_suassystem_interop_client.py
liyu711/SUAS
2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b
[ "MIT" ]
null
null
null
tests/integration_tests/test_suassystem_interop_client.py
liyu711/SUAS
2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b
[ "MIT" ]
null
null
null
tests/integration_tests/test_suassystem_interop_client.py
liyu711/SUAS
2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b
[ "MIT" ]
null
null
null
import unittest import interop from SUASSystem import InteropClientConverter from SUASSystem import Location class SDATestCase(unittest.TestCase): def setUp(self): self.interop_client = InteropClientConverter() def test_submit_target(self): compiled_target_info = { "latitude" : 38...
27.97619
110
0.621277
122
1,175
5.713115
0.442623
0.07891
0.121951
0.065997
0
0
0
0
0
0
0
0.017794
0.282553
1,175
41
111
28.658537
0.809015
0.06383
0
0
0
0
0.118447
0.02233
0
0
0
0
0
1
0.2
false
0
0.16
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8d061cbc92ba43ecf28dbdbaa3d14137c3609085
3,244
py
Python
xlremed/dataset/docred.py
osainz59/XLREMed
d7fb0c322126676fe95f71ced0014076cb7a9e4d
[ "Apache-2.0" ]
4
2020-10-01T16:58:24.000Z
2021-11-30T09:29:03.000Z
xlremed/dataset/docred.py
osainz59/XLREMed
d7fb0c322126676fe95f71ced0014076cb7a9e4d
[ "Apache-2.0" ]
null
null
null
xlremed/dataset/docred.py
osainz59/XLREMed
d7fb0c322126676fe95f71ced0014076cb7a9e4d
[ "Apache-2.0" ]
null
null
null
import os import json #import fire from collections import defaultdict from pprint import pprint from itertools import product from .dataset import Dataset class DocRED(Dataset): def __init__(self, path): super(DocRED, self).__init__(name='DocRED') self.path = path self._init() ...
33.791667
109
0.544698
391
3,244
4.347826
0.235294
0.037647
0.029412
0.041176
0.208824
0.125882
0.070588
0
0
0
0
0.004606
0.330764
3,244
96
110
33.791667
0.778443
0.008015
0
0
0
0
0.069941
0.020827
0.013514
0
0
0
0
1
0.094595
false
0
0.081081
0
0.243243
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8d06a575c43d8f20bdee54e0f28161929a56cf8b
7,955
py
Python
swyft/networks/classifier.py
undark-lab/swyft
50aa524e2f3a2b3d1354543178ff72bc7f055a35
[ "MIT" ]
104
2020-11-26T09:46:03.000Z
2022-03-18T06:22:03.000Z
swyft/networks/classifier.py
cweniger/swyft
2c0ed514622a37e8ec4e406b99a8327ecafb7ab4
[ "MIT" ]
83
2021-03-02T15:54:26.000Z
2022-03-10T08:09:05.000Z
swyft/networks/classifier.py
undark-lab/swyft
50aa524e2f3a2b3d1354543178ff72bc7f055a35
[ "MIT" ]
10
2021-02-04T14:27:36.000Z
2022-03-31T17:39:34.000Z
from abc import ABC, abstractmethod from typing import Dict, Hashable, Tuple import torch import torch.nn as nn import swyft import swyft.utils from swyft.networks.channelized import ResidualNetWithChannel from swyft.networks.standardization import ( OnlineDictStandardizingLayer, OnlineStandardizingLayer, ) f...
34.737991
118
0.669893
890
7,955
5.710112
0.176404
0.091499
0.03778
0.034632
0.344943
0.297324
0.256789
0.214286
0.153089
0.140693
0
0.004169
0.246135
7,955
228
119
34.890351
0.843255
0.067505
0
0.338983
0
0.00565
0.033826
0.003287
0
0
0
0
0.011299
1
0.101695
false
0.016949
0.050847
0.011299
0.248588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8d09e1e56a5c8747b2ab32acaa6c0733d2870eb2
12,386
py
Python
mstrio/distribution_services/contact/contact.py
czyzq/mstrio-py
b25fd19936b659d503a7eaaa96c8d0b4e118cb7c
[ "Apache-2.0" ]
1
2022-02-15T13:18:04.000Z
2022-02-15T13:18:04.000Z
mstrio/distribution_services/contact/contact.py
czyzq/mstrio-py
b25fd19936b659d503a7eaaa96c8d0b4e118cb7c
[ "Apache-2.0" ]
null
null
null
mstrio/distribution_services/contact/contact.py
czyzq/mstrio-py
b25fd19936b659d503a7eaaa96c8d0b4e118cb7c
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from enum import auto from typing import Iterable, List, Optional, TYPE_CHECKING, Union from mstrio import config from mstrio.api import contacts from mstrio.distribution_services.contact_group import ContactGroup from mstrio.distribution_services.device import Device from mstrio.ut...
35.797688
98
0.619086
1,321
12,386
5.636639
0.161998
0.024174
0.017459
0.010744
0.290089
0.213672
0.189901
0.170293
0.1574
0.145313
0
0.000114
0.292588
12,386
345
99
35.901449
0.849692
0.244389
0
0.085
0
0
0.106578
0.009381
0
0
0
0
0
1
0.06
false
0
0.06
0
0.24
0.005
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8d0a2cafd43bfa146f864191d3b8493254f59ce2
330
py
Python
sources/t04/t04ej15.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
sources/t04/t04ej15.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
sources/t04/t04ej15.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
# Iterador a partir de una función generadora def fib(): prev, curr = 0, 1 while True: yield curr prev, curr = curr, prev + curr f = fib() # Recorremos nuestro iterador, llamando a next(). Dentro del for se llama automáticamente a iter(f) print(0, end=' ') for n in range(16): print(next(f)...
25.384615
99
0.630303
51
330
4.078431
0.666667
0.115385
0.115385
0
0
0
0
0
0
0
0
0.020243
0.251515
330
13
100
25.384615
0.821862
0.427273
0
0
0
0
0.010695
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.111111
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8d0bafb0014137256cbe170eed5e636723c3e6ff
1,166
py
Python
setup.py
snower/sevent
a11e4488e500a4008b07f4391119ad3288a1f07f
[ "MIT" ]
14
2018-02-16T10:33:04.000Z
2021-09-28T02:04:50.000Z
setup.py
snower/sevent
a11e4488e500a4008b07f4391119ad3288a1f07f
[ "MIT" ]
null
null
null
setup.py
snower/sevent
a11e4488e500a4008b07f4391119ad3288a1f07f
[ "MIT" ]
1
2021-09-26T06:09:38.000Z
2021-09-26T06:09:38.000Z
#!/usr/bin/env python import os import sys import platform from setuptools import setup, Extension if platform.system() != 'Windows' and platform.python_implementation() == "CPython": ext_modules = [Extension('sevent/cbuffer', sources=['sevent/cbuffer.c'])] else: ext_modules = [] if os.path.exist...
27.116279
85
0.610635
137
1,166
5.072993
0.562044
0.129496
0.040288
0.046043
0.083453
0.083453
0.083453
0
0
0
0
0.01676
0.232419
1,166
42
86
27.761905
0.759777
0.017153
0
0.135135
0
0
0.242067
0
0
0
0
0
0
1
0
false
0
0.108108
0
0.108108
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2386c477dd9e245a8edc63bb8d5ff08d06c30f67
1,202
py
Python
core/systems/cart_pole.py
ivandariojr/core
c4dec054a3e80355ed3812d48ca2bba286584a67
[ "MIT" ]
6
2021-01-26T21:00:24.000Z
2022-02-28T23:57:50.000Z
core/systems/cart_pole.py
ivandariojr/core
c4dec054a3e80355ed3812d48ca2bba286584a67
[ "MIT" ]
15
2020-01-28T22:49:18.000Z
2021-12-14T08:34:39.000Z
core/systems/cart_pole.py
ivandariojr/core
c4dec054a3e80355ed3812d48ca2bba286584a67
[ "MIT" ]
6
2019-06-07T21:31:20.000Z
2021-12-13T01:00:02.000Z
from torch import cat, cos, float64, sin, stack, tensor from torch.nn import Module, Parameter from core.dynamics import RoboticDynamics class CartPole(RoboticDynamics, Module): def __init__(self, m_c, m_p, l, g=9.81): RoboticDynamics.__init__(self, 2, 1) Module.__init__(self) self.params...
29.317073
72
0.526622
181
1,202
3.259669
0.220994
0.044068
0.050847
0.027119
0.288136
0.105085
0.084746
0.084746
0.084746
0.084746
0
0.0246
0.323627
1,202
40
73
30.05
0.701107
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0.09375
0.03125
0.46875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2389a78f5b884ed87e17e07d946941aa063ef130
2,674
py
Python
export.py
nicolasm/lastfm-export
43456161c7083b490d09a1d2638a38c9771e1b3f
[ "MIT" ]
7
2015-11-17T20:40:29.000Z
2022-02-03T17:55:23.000Z
export.py
nicolasm/lastfm-export
43456161c7083b490d09a1d2638a38c9771e1b3f
[ "MIT" ]
2
2021-12-30T22:32:11.000Z
2021-12-30T22:32:12.000Z
export.py
nicolasm/lastfm-export
43456161c7083b490d09a1d2638a38c9771e1b3f
[ "MIT" ]
1
2020-08-03T09:19:11.000Z
2020-08-03T09:19:11.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ####################################################################### # This script imports your Last.fm listening history # # inside a MySQL or Sqlite database. # # ...
31.093023
89
0.613687
350
2,674
4.465714
0.337143
0.070377
0.019194
0.029431
0.165067
0.112604
0.075496
0.075496
0
0
0
0.010572
0.221765
2,674
85
90
31.458824
0.740509
0.170157
0
0.076923
0
0
0.140087
0
0
0
0
0
0
1
0
false
0
0.134615
0
0.134615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
238ac0373309554dc94b4fa70cb2b5d3ddfb8bbc
2,617
py
Python
final_project/code/src/data_attention.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
final_project/code/src/data_attention.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
final_project/code/src/data_attention.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ data file read in data """ from typing import Tuple, Any import pandas as pd import tensorflow as tf from loguru import logger from utils import file_path_relative import numpy as np from transformers import DistilBertTokenizer NUM_ROWS_TRAIN: int = 15000 TEST_RATIO: float = 0.2 def _run...
27.260417
131
0.649599
333
2,617
4.867868
0.378378
0.02591
0.048118
0.06169
0.226403
0.226403
0.120296
0.120296
0.05182
0
0
0.008612
0.245701
2,617
95
132
27.547368
0.812563
0.086741
0
0.16129
0
0
0.097488
0.027246
0
0
0
0
0
1
0.032258
false
0
0.112903
0
0.177419
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2390d6b6f9cc47e9e8fe109965cc9769d5444907
2,875
py
Python
applications/WindEngineeringApplication/tests/test_WindEngineeringApplication.py
clazaro/Kratos
b947b82c90dfcbf13d60511427f85990d36b90be
[ "BSD-4-Clause" ]
null
null
null
applications/WindEngineeringApplication/tests/test_WindEngineeringApplication.py
clazaro/Kratos
b947b82c90dfcbf13d60511427f85990d36b90be
[ "BSD-4-Clause" ]
null
null
null
applications/WindEngineeringApplication/tests/test_WindEngineeringApplication.py
clazaro/Kratos
b947b82c90dfcbf13d60511427f85990d36b90be
[ "BSD-4-Clause" ]
null
null
null
# Kratos imports import KratosMultiphysics import KratosMultiphysics.KratosUnittest as UnitTest from KratosMultiphysics.WindEngineeringApplication.test_suite import SuiteFlags, TestSuite import run_cpp_tests # STL imports import pathlib class TestLoader(UnitTest.TestLoader): @property def suiteClass(self): ...
31.25
103
0.681391
384
2,875
4.916667
0.317708
0.047669
0.025424
0.027013
0.129237
0.098517
0.069915
0.043432
0.043432
0.043432
0
0
0.249739
2,875
92
104
31.25
0.87529
0.340174
0
0.046512
0
0
0.011918
0
0
0
0
0
0
1
0.069767
false
0
0.116279
0.023256
0.255814
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2392d8b12f4d624279784bb31763afce245b714a
5,739
py
Python
src/cadorsfeed/fpr.py
kurtraschke/cadors-parse
67ac398ef318562dcbd7c60ef7c0d91e7980111a
[ "MIT" ]
1
2018-01-05T12:54:13.000Z
2018-01-05T12:54:13.000Z
src/cadorsfeed/fpr.py
kurtraschke/cadors-parse
67ac398ef318562dcbd7c60ef7c0d91e7980111a
[ "MIT" ]
null
null
null
src/cadorsfeed/fpr.py
kurtraschke/cadors-parse
67ac398ef318562dcbd7c60ef7c0d91e7980111a
[ "MIT" ]
null
null
null
import re import uuid from copy import deepcopy from datetime import datetime from lxml import etree from lxml.html import xhtml_to_html from geoalchemy import WKTSpatialElement from geolucidate.functions import _cleanup, _convert from geolucidate.parser import parser_re from cadorsfeed import db from cadorsfeed.mo...
34.781818
76
0.626067
635
5,739
5.513386
0.269291
0.071979
0.023993
0.017138
0.228221
0.180805
0.160811
0.067124
0.032276
0.023993
0
0.025946
0.267991
5,739
164
77
34.993902
0.807427
0.024743
0
0.188525
0
0
0.132511
0.037554
0
0
0
0
0
1
0.032787
false
0
0.131148
0
0.196721
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2393234a05bc91425b68a33c2343314b4950796f
1,016
py
Python
sstcam_sandbox/d191122_dc_tf/generate_pedestal.py
watsonjj/CHECLabPySB
91330d3a6f510a392f635bd7f4abd2f77871322c
[ "BSD-3-Clause" ]
null
null
null
sstcam_sandbox/d191122_dc_tf/generate_pedestal.py
watsonjj/CHECLabPySB
91330d3a6f510a392f635bd7f4abd2f77871322c
[ "BSD-3-Clause" ]
null
null
null
sstcam_sandbox/d191122_dc_tf/generate_pedestal.py
watsonjj/CHECLabPySB
91330d3a6f510a392f635bd7f4abd2f77871322c
[ "BSD-3-Clause" ]
1
2021-03-30T09:46:56.000Z
2021-03-30T09:46:56.000Z
from sstcam_sandbox import get_checs from TargetCalibSB.pedestal import PedestalTargetCalib from TargetCalibSB import get_cell_ids_for_waveform from CHECLabPy.core.io import TIOReader from tqdm import tqdm from glob import glob def process(path): pedestal_path = path.replace("_r0.tio", "_ped.tcal") reader = T...
29.028571
94
0.714567
139
1,016
4.920863
0.388489
0.061404
0.052632
0.061404
0.061404
0
0
0
0
0
0
0.015892
0.194882
1,016
34
95
29.882353
0.820293
0
0
0
0
0
0.072835
0.030512
0
0
0
0
0
1
0.074074
false
0
0.222222
0
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2395f7861779117a4a46333dc411993e7c87448d
2,723
py
Python
algorithm/leetcode/2018-03-25.py
mhoonjeon/problemsolving
f47ff41b03ce406b26ea36be602c0aa14ac7ccf1
[ "MIT" ]
null
null
null
algorithm/leetcode/2018-03-25.py
mhoonjeon/problemsolving
f47ff41b03ce406b26ea36be602c0aa14ac7ccf1
[ "MIT" ]
null
null
null
algorithm/leetcode/2018-03-25.py
mhoonjeon/problemsolving
f47ff41b03ce406b26ea36be602c0aa14ac7ccf1
[ "MIT" ]
null
null
null
# 804. Unique Morse Code Words class Solution: def __init__(self): self.morse_code = [".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", "--", "-.", "---", ".--.", "--.-", ".-.", "...", "-", "..-", ...
27.785714
79
0.480353
302
2,723
4.278146
0.281457
0.05031
0.06192
0.092879
0.224458
0.157895
0.137771
0.077399
0.077399
0.077399
0
0.0258
0.288285
2,723
97
80
28.072165
0.640867
0.128167
0
0
0
0
0.087621
0.0209
0
0
0
0
0
1
0.117647
false
0
0
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2396d1a675b3960ca8025853ba1b4a50d69159c9
19,779
py
Python
pygna/block_model.py
Gee-3/pygna
61f2128e918e423fef73d810e0c3af5761933096
[ "MIT" ]
32
2019-07-11T22:58:14.000Z
2022-03-04T19:34:55.000Z
pygna/block_model.py
Gee-3/pygna
61f2128e918e423fef73d810e0c3af5761933096
[ "MIT" ]
3
2021-05-24T14:03:13.000Z
2022-01-07T03:47:32.000Z
pygna/block_model.py
Gee-3/pygna
61f2128e918e423fef73d810e0c3af5761933096
[ "MIT" ]
5
2019-07-24T09:38:07.000Z
2021-12-30T09:20:20.000Z
import networkx as nx import matplotlib.pyplot as plt import matplotlib.patches as mpatches import numpy as np import logging from pygna import output from pygna.utils import YamlConfig import pandas as pd import random import string import seaborn as sns import pygna.output as output class BlockModel(object): ...
36.027322
258
0.590323
2,706
19,779
4.13969
0.13969
0.026245
0.018211
0.006249
0.441707
0.377076
0.342082
0.307356
0.288074
0.273433
0
0.024883
0.278679
19,779
548
259
36.093066
0.760286
0.265433
0
0.300699
0
0.01049
0.169069
0.001568
0
0
0
0
0
1
0.059441
false
0
0.041958
0
0.108392
0.027972
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2398b8c755adf06d3f7f1e5cae4d4aedb1f1899b
443
py
Python
class/lect/Lect-17/pd1.py
MikenzieAlasca/F21-1010
a7c15b8d9bf84f316aa6921f6d8a588c513a22b8
[ "MIT" ]
5
2021-09-09T21:08:14.000Z
2021-12-14T02:30:52.000Z
class/lect/Lect-17/pd1.py
MikenzieAlasca/F21-1010
a7c15b8d9bf84f316aa6921f6d8a588c513a22b8
[ "MIT" ]
null
null
null
class/lect/Lect-17/pd1.py
MikenzieAlasca/F21-1010
a7c15b8d9bf84f316aa6921f6d8a588c513a22b8
[ "MIT" ]
8
2021-09-09T17:46:07.000Z
2022-02-08T22:41:35.000Z
import pandas as pd people_dict = { "weight": pd.Series([145, 182, 191],index=["joan", "bob", "mike"]), "birthyear": pd.Series([2002, 2000, 1999], index=["bob", "joan", "mike"], name="year"), "children": pd.Series([1, 2], index=["mike", "bob"]), "hobby": pd.Series(["Rock Climbing", "S...
31.642857
104
0.557562
55
443
4.454545
0.581818
0.130612
0.097959
0.130612
0
0
0
0
0
0
0
0.064972
0.200903
443
13
105
34.076923
0.627119
0
0
0
0
0
0.235294
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
239ed9095bc55c203b6c4b8328d5c14492d59001
6,762
py
Python
test/phagesExperiment/runTableCases.py
edsaac/bioparticle
67e191329ef191fc539b290069524b42fbaf7e21
[ "MIT" ]
null
null
null
test/phagesExperiment/runTableCases.py
edsaac/bioparticle
67e191329ef191fc539b290069524b42fbaf7e21
[ "MIT" ]
1
2020-09-25T23:31:21.000Z
2020-09-25T23:31:21.000Z
test/phagesExperiment/runTableCases.py
edsaac/VirusTransport_RxSandbox
67e191329ef191fc539b290069524b42fbaf7e21
[ "MIT" ]
1
2021-09-30T05:00:58.000Z
2021-09-30T05:00:58.000Z
############################################################### # _ _ _ _ _ # | |__ (_) ___ _ __ __ _ _ __| |_(_) ___| | ___ # | '_ \| |/ _ \| '_ \ / _` | '__| __| |/ __| |/ _ \ # | |_) | | (_) | |_) | (_| | | | |_| | (__| | __/ # |_.__/|_|\___/| .__/ \__,_|_| \__|_|\___|_|\___...
34.676923
106
0.603963
831
6,762
4.761733
0.302046
0.044478
0.047258
0.056609
0.176649
0.115744
0.065706
0.047511
0.047511
0.034369
0
0.025119
0.164005
6,762
195
107
34.676923
0.674863
0.213842
0
0.092437
0
0
0.237549
0.018972
0.016807
0
0
0
0
1
0.02521
false
0
0.042017
0.016807
0.084034
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
239f83a7c0d314a200223629c25572a463600e23
593
py
Python
mongo_list_temp.py
ScottStanton/mqtt_temp_mongo_web
76d59910f132fea9724b86aebfcef04b61789b8d
[ "Unlicense" ]
null
null
null
mongo_list_temp.py
ScottStanton/mqtt_temp_mongo_web
76d59910f132fea9724b86aebfcef04b61789b8d
[ "Unlicense" ]
null
null
null
mongo_list_temp.py
ScottStanton/mqtt_temp_mongo_web
76d59910f132fea9724b86aebfcef04b61789b8d
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 # # This software is covered by The Unlicense license # import os, pymongo, sys def print_mongo(): myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["cpu_temperature"] mycol = mydb["temps"] #print(myclient.list_database_names()) for x in mycol.find()...
17.969697
64
0.60371
67
593
5.134328
0.686567
0.05814
0
0
0
0
0
0
0
0
0
0.018476
0.269815
593
32
65
18.53125
0.775982
0.175379
0
0.105263
0
0
0.134298
0.053719
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.157895
0.210526
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23a2a97bb6db12d817c114dd0b13665cae319c12
2,185
py
Python
second/pytorch/models/fusion.py
RickOnEarth/pointpillars_based_CLOCs
c6d4576a151540200dac2354b00dc4ecce6ee72d
[ "MIT" ]
2
2022-01-05T08:41:38.000Z
2022-02-14T01:30:08.000Z
second/pytorch/models/fusion.py
RickOnEarth/pointpillars_based_CLOCs
c6d4576a151540200dac2354b00dc4ecce6ee72d
[ "MIT" ]
1
2022-03-28T03:23:36.000Z
2022-03-28T03:23:36.000Z
second/pytorch/models/fusion.py
RickOnEarth/pointpillars_based_CLOCs
c6d4576a151540200dac2354b00dc4ecce6ee72d
[ "MIT" ]
2
2022-01-07T05:56:43.000Z
2022-02-16T13:26:13.000Z
import time import torch from torch import nn from torch.nn import functional as F #import spconv import torchplus from torchplus.nn import Empty, GroupNorm, Sequential from torchplus.ops.array_ops import gather_nd, scatter_nd from torchplus.tools import change_default_args import sys if '/opt/ros/kinetic/lib/python2....
33.106061
92
0.556522
304
2,185
3.832237
0.305921
0.054936
0.036052
0.046352
0.271245
0.245494
0.245494
0.180258
0.118455
0.118455
0
0.099277
0.30389
2,185
65
93
33.615385
0.666667
0.08238
0
0.206897
0
0
0.050025
0.044022
0
0
0
0
0
1
0.034483
false
0
0.155172
0
0.224138
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23a456677b9384e5a17f6de8dcdc1e93e2a745f9
3,001
py
Python
pdf_lines_gluer.py
serge-sotnyk/pdf-lines-gluer
b44284a28e4bce377d683ab8d6f820e704c630cb
[ "MIT" ]
1
2021-04-16T13:05:20.000Z
2021-04-16T13:05:20.000Z
pdf_lines_gluer.py
serge-sotnyk/pdf-lines-gluer
b44284a28e4bce377d683ab8d6f820e704c630cb
[ "MIT" ]
null
null
null
pdf_lines_gluer.py
serge-sotnyk/pdf-lines-gluer
b44284a28e4bce377d683ab8d6f820e704c630cb
[ "MIT" ]
2
2019-06-24T06:45:46.000Z
2019-06-28T19:43:20.000Z
import string from typing import List, Dict # inject code here # def _mean_in_window(lines, i) -> float: start = max(i - 5, 0) finish = min(i + 5, len(lines) - 1) sm, count = 0, 0 for n in range(start, finish): sm += len(lines[n]) - 1 # minus one-char prefix count += 1 return sm /...
26.557522
97
0.55115
410
3,001
3.853659
0.241463
0.028481
0.032911
0.034177
0.134177
0.08481
0.039241
0.039241
0
0
0
0.021184
0.307897
3,001
112
98
26.794643
0.739528
0.044985
0
0.086957
0
0
0.033602
0
0
0
0
0
0
1
0.076087
false
0
0.021739
0.01087
0.184783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23a5398ab784fc5aa194816a75732cc159a8849f
1,241
py
Python
backend/thing/urls.py
thuong-lino/thing
e45d8f197896f4ab9b52dec0a85169396fff629a
[ "MIT" ]
null
null
null
backend/thing/urls.py
thuong-lino/thing
e45d8f197896f4ab9b52dec0a85169396fff629a
[ "MIT" ]
null
null
null
backend/thing/urls.py
thuong-lino/thing
e45d8f197896f4ab9b52dec0a85169396fff629a
[ "MIT" ]
null
null
null
from django.conf.urls import include from django.urls import path from django.contrib import admin from users.views import FacebookLogin import django_js_reverse.views from rest_framework.routers import DefaultRouter from common.routes import routes as common_routes router = DefaultRouter() routes = common_routes fo...
37.606061
85
0.706688
155
1,241
5.567742
0.290323
0.04635
0.041715
0.05562
0
0
0
0
0
0
0
0
0.124093
1,241
32
86
38.78125
0.793928
0
0
0
0
0
0.295729
0.112812
0
0
0
0
0
1
0
false
0
0.269231
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
0
0
0
0
0
1
0
23a5e45f9981098530b74e9239812e4a0d27fb21
7,302
py
Python
core/dataset/data_loader.py
thuzhaowang/idn-solver
7da29ce0b0bd7e76023e1cae56e3d186b324a394
[ "MIT" ]
22
2021-10-11T02:31:52.000Z
2022-02-23T08:06:14.000Z
core/dataset/data_loader.py
xubin1994/idn-solver
6b5dcfd94f35cc118c5dee0f98401e4848e670e3
[ "MIT" ]
4
2021-12-02T02:36:30.000Z
2022-03-16T01:04:47.000Z
core/dataset/data_loader.py
xubin1994/idn-solver
6b5dcfd94f35cc118c5dee0f98401e4848e670e3
[ "MIT" ]
4
2022-01-20T03:12:23.000Z
2022-03-16T00:08:54.000Z
import numpy as np from path import Path import random import pickle import torch import os import cv2 def load_as_float(path): """Loads image""" im = cv2.imread(path) im = cv2.cvtColor(im, cv2.COLOR_BGR2RGB).astype(np.float32) return im class SequenceFolder(torch.utils.data.Dataset)...
38.840426
161
0.65037
1,129
7,302
3.991143
0.139947
0.077674
0.09099
0.036618
0.43431
0.389925
0.388815
0.353085
0.3249
0.303373
0
0.021527
0.198439
7,302
187
162
39.048128
0.748334
0.033826
0
0.253333
0
0
0.064954
0
0
0
0
0
0
1
0.033333
false
0
0.046667
0.006667
0.106667
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23a7e7e53ed3f920173ee73d17e3e8afad1d765f
3,813
py
Python
glue.py
mkechagia/android-survey
a1649c0fb9476fcc9fdf586ecde9da9a9a0138aa
[ "Apache-2.0" ]
1
2022-01-26T08:14:24.000Z
2022-01-26T08:14:24.000Z
glue.py
mkechagia/android-survey-tool
a1649c0fb9476fcc9fdf586ecde9da9a9a0138aa
[ "Apache-2.0" ]
null
null
null
glue.py
mkechagia/android-survey-tool
a1649c0fb9476fcc9fdf586ecde9da9a9a0138aa
[ "Apache-2.0" ]
null
null
null
import re import copy from collections import defaultdict from string import Template # initialize the dictionary for the methods with checked exceptions such as {fake method: real method} method_dict_checked = {'deleteRecord' : 'delete', \ 'editText' : 'setText_new', \ 'insertData' : 'insert_new', \ 'setLayout...
34.981651
104
0.710464
528
3,813
4.979167
0.276515
0.041841
0.018258
0.019399
0.170407
0.141499
0.120959
0.065424
0.065424
0.03043
0
0.003427
0.158143
3,813
108
105
35.305556
0.815576
0.337792
0
0.086957
0
0
0.227747
0.043304
0
0
0
0
0
1
0.072464
false
0
0.057971
0
0.217391
0.028986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23abc12980cb0a7128b692a9097ad4b745fb655b
756
py
Python
python/torch_helpers/trace2jit.py
zhaohb/Forward
08c7622090ce0cdd32fe5d0b462cb63258ce0a75
[ "BSD-3-Clause" ]
1
2021-03-24T11:49:35.000Z
2021-03-24T11:49:35.000Z
python/torch_helpers/trace2jit.py
zhaohb/Forward
08c7622090ce0cdd32fe5d0b462cb63258ce0a75
[ "BSD-3-Clause" ]
null
null
null
python/torch_helpers/trace2jit.py
zhaohb/Forward
08c7622090ce0cdd32fe5d0b462cb63258ce0a75
[ "BSD-3-Clause" ]
null
null
null
import torch import torchvision.models as models ''' Description: convert torch module to JIT TracedModule. 功能说明: 将torch 模型转化为 JIT TracedModule。 ''' def TracedModelFactory(file_name, traced_model): traced_model.save(file_name) traced_model = torch.jit.load(file_name) print("filename : ", file_name...
28
81
0.718254
100
756
5.18
0.44
0.127413
0.081081
0.104247
0.088803
0
0
0
0
0
0
0.016181
0.18254
756
26
82
29.076923
0.822006
0.124339
0
0
0
0
0.059891
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.214286
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23ad1135866d4f8277494a12a0ed3be2f1311aa3
9,739
py
Python
CppSimShared/Python/cppsimdata.py
silicon-vlsi-org/eda-sue2Plus
83a2afa9c80308d5afe07a3fa0214d8412addb6d
[ "MIT" ]
1
2021-05-30T13:27:33.000Z
2021-05-30T13:27:33.000Z
CppSimShared/Python/cppsimdata.py
silicon-vlsi-org/eda-sue2Plus
83a2afa9c80308d5afe07a3fa0214d8412addb6d
[ "MIT" ]
null
null
null
CppSimShared/Python/cppsimdata.py
silicon-vlsi-org/eda-sue2Plus
83a2afa9c80308d5afe07a3fa0214d8412addb6d
[ "MIT" ]
null
null
null
# cppsimdata.py # written by Michael H. Perrott # with minor modifications by Doug Pastorello to work with both Python 2.7 and Python 3.4 # available at www.cppsim.com as part of the CppSim package # Copyright (c) 2013-2017 by Michael H. Perrott # This file is disributed under the MIT license (see Copying file) impo...
38.800797
149
0.629736
1,305
9,739
4.500383
0.201533
0.039333
0.038311
0.024519
0.530734
0.426698
0.340712
0.298655
0.275498
0.228163
0
0.018712
0.231749
9,739
250
150
38.956
0.766239
0.069822
0
0.401914
0
0
0.177355
0.045776
0
0
0
0
0
1
0.052632
false
0
0.038278
0.019139
0.138756
0.172249
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23b3590bb9d68aac5032da0773011d5e1741a6b6
5,977
py
Python
notify/handlers.py
marzocchi/iterm-notify
5e587213ca89c0361a39c785fa4560fda275052f
[ "MIT" ]
28
2019-12-01T21:45:28.000Z
2021-05-05T17:46:09.000Z
notify/handlers.py
marzocchi/iterm-notify
5e587213ca89c0361a39c785fa4560fda275052f
[ "MIT" ]
null
null
null
notify/handlers.py
marzocchi/iterm-notify
5e587213ca89c0361a39c785fa4560fda275052f
[ "MIT" ]
2
2020-08-04T12:55:04.000Z
2020-12-20T22:23:47.000Z
import logging from datetime import datetime from typing import List from notify.backends import BackendFactory from notify.commands import Command from notify.config import Config, Stack from notify.notifications import Factory, Notification from notify.strategies import StrategyFactory class MaintainConfig: de...
42.091549
115
0.736657
690
5,977
5.871014
0.108696
0.075537
0.097754
0.033325
0.408047
0.350531
0.269563
0.235991
0.135769
0.135769
0
0.000205
0.185545
5,977
141
116
42.390071
0.831964
0
0
0.144231
0
0
0.005187
0
0
0
0
0
0
1
0.192308
false
0
0.076923
0
0.298077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23ba2ecb3b446799d3bd04447ada1a6c88421c82
8,113
py
Python
sdk/python/feast/loaders/ingest.py
wzpy/feast
06fe09b7047fe370cbf63555cec1ba820f1e7267
[ "Apache-2.0" ]
1
2019-12-12T13:21:56.000Z
2019-12-12T13:21:56.000Z
sdk/python/feast/loaders/ingest.py
wzpy/feast
06fe09b7047fe370cbf63555cec1ba820f1e7267
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/loaders/ingest.py
wzpy/feast
06fe09b7047fe370cbf63555cec1ba820f1e7267
[ "Apache-2.0" ]
null
null
null
import logging import multiprocessing import os import time from functools import partial from multiprocessing import Process, Queue, Pool from typing import Iterable import pandas as pd import pyarrow as pa from feast.feature_set import FeatureSet from feast.type_map import convert_dict_to_proto_values from feast.type...
31.815686
103
0.646986
1,013
8,113
4.987167
0.260612
0.037609
0.020784
0.021378
0.169438
0.114212
0.089667
0.061758
0.061758
0.061758
0
0.006695
0.282017
8,113
254
104
31.940945
0.860601
0.288796
0
0.130719
0
0
0.128951
0.03143
0
0
0
0
0
1
0.039216
false
0
0.098039
0
0.143791
0.013072
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23bb7ae2de638bcc64e1ae2469bf78db888b942c
389
py
Python
1stRound/Easy/389 Find the Difference/Counter.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
2
2020-04-24T18:36:52.000Z
2020-04-25T00:15:57.000Z
1stRound/Easy/389 Find the Difference/Counter.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
1stRound/Easy/389 Find the Difference/Counter.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
import collections class Solution: def findTheDifference(self, s, t): """ :type s: str :type t: str :rtype: str """ scount, tcount = collections.Counter(s), collections.Counter(t) for t in tcount: if tcount[t] > scount[t]: return t ...
24.3125
71
0.539846
47
389
4.468085
0.489362
0.019048
0
0
0
0
0
0
0
0
0
0
0.33419
389
16
72
24.3125
0.810811
0.095116
0
0
0
0
0.028754
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.363636
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23bd05e550888fff887e56ad22915b9704444c37
4,136
py
Python
submission.py
Amar1729/Liked-Saved-Image-Downloader
48c17d8cb0cdce3bf7ebab16729510be11f51013
[ "MIT" ]
60
2015-12-04T20:11:23.000Z
2019-03-17T20:00:56.000Z
submission.py
Amar1729/Liked-Saved-Image-Downloader
48c17d8cb0cdce3bf7ebab16729510be11f51013
[ "MIT" ]
68
2019-03-22T01:07:32.000Z
2021-07-02T04:48:57.000Z
submission.py
Amar1729/Liked-Saved-Image-Downloader
48c17d8cb0cdce3bf7ebab16729510be11f51013
[ "MIT" ]
19
2015-09-15T17:30:29.000Z
2019-03-17T18:05:30.000Z
# -*- coding: utf-8 -*- import pickle import os # third-party imports import jsonpickle class Submission: def __init__(self): # Source is either Tumblr or Reddit self.source = u'' self.title = u'' self.author = u'' self.subreddit = u'' self.subredditTitle = u'' ...
30.637037
100
0.604691
445
4,136
5.597753
0.238202
0.012846
0.016861
0.00843
0.17503
0.077479
0
0
0
0
0
0.005402
0.23912
4,136
134
101
30.865672
0.786146
0.027321
0
0.11
0
0
0.144102
0
0
0
0
0
0
1
0.15
false
0
0.03
0.01
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23be77dcebe4a2a83f67827319e9327e25df75de
1,699
py
Python
exp/noise_features/models.py
WilliamCCHuang/GraphLIME
0f89bd67865c0b4b5a93becbc03273e55c15fc68
[ "MIT" ]
38
2020-06-07T14:44:11.000Z
2022-03-08T06:19:49.000Z
exp/noise_features/models.py
WilliamCCHuang/GraphLIME
0f89bd67865c0b4b5a93becbc03273e55c15fc68
[ "MIT" ]
9
2020-10-22T02:38:01.000Z
2022-03-15T09:53:30.000Z
exp/noise_features/models.py
WilliamCCHuang/GraphLIME
0f89bd67865c0b4b5a93becbc03273e55c15fc68
[ "MIT" ]
6
2021-03-04T21:32:34.000Z
2021-12-24T05:58:35.000Z
import torch.nn as nn import torch.nn.functional as F from torch_geometric.nn import GCNConv, GATConv class GCN(nn.Module): def __init__(self, input_dim, hidden_dim, output_dim, dropout=0.5): super(GCN, self).__init__() self.dropout = dropout self.conv1 = GCNConv(input_dim, hidd...
33.313725
116
0.575633
226
1,699
4.070796
0.221239
0.058696
0.065217
0.047826
0.43913
0.43913
0.43913
0.368478
0.326087
0.326087
0
0.02
0.323131
1,699
50
117
33.98
0.78
0
0
0.324324
0
0
0
0
0
0
0
0
0
1
0.108108
false
0
0.081081
0
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23c09d19f8336af168a12e16ec8d400bf72a904d
7,740
py
Python
nscl/nn/scene_graph/scene_graph.py
OolongQian/NSCL-PyTorch-Release
4cf0a633ceeaa9d221d66e066ef7892c04cdf9eb
[ "MIT" ]
null
null
null
nscl/nn/scene_graph/scene_graph.py
OolongQian/NSCL-PyTorch-Release
4cf0a633ceeaa9d221d66e066ef7892c04cdf9eb
[ "MIT" ]
null
null
null
nscl/nn/scene_graph/scene_graph.py
OolongQian/NSCL-PyTorch-Release
4cf0a633ceeaa9d221d66e066ef7892c04cdf9eb
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : scene_graph.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 07/19/2018 # # This file is part of NSCL-PyTorch. # Distributed under terms of the MIT license. """ Scene Graph generation. """ import os import torch import torch.nn as nn impo...
47.484663
120
0.588889
1,004
7,740
4.318725
0.204183
0.017297
0.02583
0.018681
0.410055
0.354244
0.29036
0.259917
0.218404
0.218404
0
0.030966
0.30323
7,740
162
121
47.777778
0.773039
0.108786
0
0.148148
0
0
0.004169
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0.018519
0.157407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23c12f3233981fe353e6b9f38266cba0ebd64146
789
py
Python
roomcreator.py
ajaxalex5/MidYearProject
a399347cd8cb4b24cf1aeac4e11269a0a2109ddf
[ "MIT" ]
null
null
null
roomcreator.py
ajaxalex5/MidYearProject
a399347cd8cb4b24cf1aeac4e11269a0a2109ddf
[ "MIT" ]
null
null
null
roomcreator.py
ajaxalex5/MidYearProject
a399347cd8cb4b24cf1aeac4e11269a0a2109ddf
[ "MIT" ]
null
null
null
class Room (object): def __init__(self, name, xl, yl, layout): self.name = str(name) self.xl = int(xl) self.yl = int(yl) self.layout = layout def load_room_file(file): roomfile = open(file, "r") roomlist = [] linelist = [] for line in roomfile: linelist.ap...
24.65625
94
0.564005
98
789
4.479592
0.367347
0.125285
0.082005
0.050114
0.08656
0
0
0
0
0
0
0.023214
0.290241
789
32
95
24.65625
0.760714
0
0
0
0
0
0.006329
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23c2c0ad760da305cb104343e55a702bf05d28ce
630
py
Python
nomad/tests/core/test_shortest_path_solver.py
romilbhardwaj/nomad
c6a8289872bfd07d1aa0b913f0aee7a2fccd5bf1
[ "MIT" ]
2
2019-02-06T19:47:48.000Z
2019-10-30T07:30:14.000Z
nomad/tests/core/test_shortest_path_solver.py
romilbhardwaj/nomad
c6a8289872bfd07d1aa0b913f0aee7a2fccd5bf1
[ "MIT" ]
6
2019-03-21T18:29:04.000Z
2019-04-11T18:31:34.000Z
nomad/tests/core/test_shortest_path_solver.py
romilbhardwaj/nomad
c6a8289872bfd07d1aa0b913f0aee7a2fccd5bf1
[ "MIT" ]
null
null
null
import unittest import networkx as nx from core.placement.spsolver import DPShortestPathSolver class TestShorthestPathSolverMethods(unittest.TestCase): def setUp(self): self.g1 = nx.read_weighted_edgelist('tests/test-graph_1.txt', create_using=nx.MultiDiGraph, nodetype=int) def test_shortest_path(self...
30
113
0.680952
78
630
5.25641
0.564103
0.117073
0.117073
0
0
0
0
0
0
0
0
0.020367
0.220635
630
21
114
30
0.814664
0
0
0
0
0
0.047544
0.034865
0
0
0
0
0.125
1
0.125
false
0
0.1875
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23c38e57ef816e8a8c15f2598a7fb8639340906e
1,285
py
Python
Leetcode/medium/integer-break.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Leetcode/medium/integer-break.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Leetcode/medium/integer-break.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
""" # INTEGER BREAK Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get. Example 1: Input: 2 Output: 1 Explanation: 2 = 1 + 1, 1 × 1 = 1. Example 2: Input: 10 Output: 36 Explanation: 10 = 3 + 3 + 4, ...
26.770833
167
0.525292
193
1,285
3.512953
0.414508
0.022124
0.026549
0.029499
0
0
0
0
0
0
0
0.067602
0.389883
1,285
48
168
26.770833
0.793367
0.42179
0
0.173913
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0
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
0
0
0
0
1
0
23c622f1dbca6b4b9f0f05bf93b50ad3b73a9109
408
py
Python
qiang00_before_project/qiang02_the_template/q02_add_template_filter.py
13528770807/flask_project
2930db1d59763b155f758ad4061a70d413bfc34d
[ "MIT" ]
null
null
null
qiang00_before_project/qiang02_the_template/q02_add_template_filter.py
13528770807/flask_project
2930db1d59763b155f758ad4061a70d413bfc34d
[ "MIT" ]
null
null
null
qiang00_before_project/qiang02_the_template/q02_add_template_filter.py
13528770807/flask_project
2930db1d59763b155f758ad4061a70d413bfc34d
[ "MIT" ]
null
null
null
from flask import Flask, render_template app = Flask(__name__) @app.route('/') def index(): li = [1, 2, 3, 4, 5, 6, 7] return render_template('filter.html', li=li) @app.template_filter('li_rv2') # 添加过滤器 方法二 def li_reverse(li): res = list(li) res.reverse() return res # app.add_template_filter...
17
59
0.647059
63
408
3.857143
0.555556
0.17284
0.131687
0
0
0
0
0
0
0
0
0.024465
0.198529
408
23
60
17.73913
0.718654
0.161765
0
0
0
0
0.076923
0
0
0
0
0
0
1
0.153846
false
0
0.076923
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23c6a65b4e2832bc68e0d04d1fcc2bd1ed8f0280
801
py
Python
smps/rcmod.py
BenjiStomps/py-smps
c449bbfcd748203630bc0aecf2552c8d836f827c
[ "MIT" ]
16
2017-02-22T02:26:41.000Z
2021-04-05T10:28:02.000Z
smps/rcmod.py
BenjiStomps/py-smps
c449bbfcd748203630bc0aecf2552c8d836f827c
[ "MIT" ]
22
2017-02-27T21:50:45.000Z
2021-05-21T02:31:35.000Z
smps/rcmod.py
BenjiStomps/py-smps
c449bbfcd748203630bc0aecf2552c8d836f827c
[ "MIT" ]
8
2017-09-30T09:50:44.000Z
2021-05-20T22:29:54.000Z
"""""" import matplotlib as mpl __all__ = ["set"] def set(tick_scale=1, rc=dict()): """ Control plot style and scaling using seaborn and the matplotlib rcParams interface. :param tick_scale: A scaler number controling the spacing on tick marks, defaults to 1. :type tick_scale: floa...
26.7
62
0.601748
105
801
4.447619
0.514286
0.134904
0.038544
0.072805
0.167024
0
0
0
0
0
0
0.025381
0.262172
801
29
63
27.62069
0.764805
0.33583
0
0
0
0
0.273859
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23c9d0fc017e203c468d9f46add866be9898f0bd
2,961
py
Python
abqPython_SvM_3_SaveODB.py
jtipton2/abaqusSignedvM
83f0577b6a3eab6d3c86a46ae110a94a7075981c
[ "BSD-3-Clause" ]
2
2022-03-16T13:50:21.000Z
2022-03-27T15:14:09.000Z
abqPython_SvM_3_SaveODB.py
jtipton2/abaqusSignedvM
83f0577b6a3eab6d3c86a46ae110a94a7075981c
[ "BSD-3-Clause" ]
null
null
null
abqPython_SvM_3_SaveODB.py
jtipton2/abaqusSignedvM
83f0577b6a3eab6d3c86a46ae110a94a7075981c
[ "BSD-3-Clause" ]
2
2021-07-18T03:10:12.000Z
2022-03-27T15:14:11.000Z
# -*- coding: utf-8 -*- import numpy as np from odbAccess import * from abaqusConstants import * filename = 'Job-4e-SS-Pulse' """ LOAD DATA =============================================================================== """ results = np.load(filename + '.npz') vonMisesMax = results['vonMisesMax'].transpose() vonMis...
37.961538
150
0.660588
307
2,961
6.371336
0.29316
0.058282
0.053681
0.071575
0.330777
0.253067
0.253067
0.253067
0.109918
0
0
0.014184
0.095238
2,961
77
151
38.454545
0.715939
0.031746
0
0
0
0
0.117863
0
0
0
0
0
0
1
0
false
0
0.088235
0
0.088235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23cbfc7fdcdcf980a0e3a9a727e48fece2483a0e
7,014
py
Python
ssh.py
unazed/Py-s-SH
c20d883f75f094c71386e62cbfa8197120c641fc
[ "MIT" ]
null
null
null
ssh.py
unazed/Py-s-SH
c20d883f75f094c71386e62cbfa8197120c641fc
[ "MIT" ]
null
null
null
ssh.py
unazed/Py-s-SH
c20d883f75f094c71386e62cbfa8197120c641fc
[ "MIT" ]
null
null
null
""" SSH reimplementation in Python, made by Unazed Spectaculum under the MIT license """ import socket import struct class SSH(object): """ Abstracted interface for secure-shell protocol with underlying TCP structure """ def __init__(self, host_ip, hostname, host_port=22, version="SSH-2.0"): ...
44.675159
120
0.681637
841
7,014
5.282996
0.146254
0.054018
0.088229
0.113437
0.525771
0.365069
0.313302
0.220122
0.180959
0.089129
0
0.014772
0.208583
7,014
156
121
44.961538
0.785624
0.025235
0
0.033898
0
0
0.10816
0.046815
0
0
0
0
0
1
0.076271
false
0.008475
0.016949
0
0.118644
0.194915
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23ce177acd70b69372b2d3dd196d4ee81ee251d0
1,140
py
Python
seriously/probably_prime.py
Mego/Seriously
07b256e4f35f5efec3b01434300f9ccc551b1c3e
[ "MIT" ]
104
2015-11-02T00:08:32.000Z
2022-02-17T23:17:14.000Z
seriously/probably_prime.py
Mego/Seriously
07b256e4f35f5efec3b01434300f9ccc551b1c3e
[ "MIT" ]
68
2015-11-09T05:33:24.000Z
2020-04-10T06:46:54.000Z
seriously/probably_prime.py
Mego/Seriously
07b256e4f35f5efec3b01434300f9ccc551b1c3e
[ "MIT" ]
25
2015-11-19T05:34:09.000Z
2021-07-20T13:54:03.000Z
import random def find_spelling(n): """ Finds d, r s.t. n-1 = 2^r * d """ r = 0 d = n - 1 # divmod used for large numbers quotient, remainder = divmod(d, 2) # while we can still divide 2's into n-1... while remainder != 1: r += 1 d = quotient # previo...
24.782609
89
0.497368
168
1,140
3.345238
0.434524
0.021352
0.046263
0.085409
0.088968
0
0
0
0
0
0
0.039301
0.397368
1,140
46
90
24.782609
0.778748
0.317544
0
0.214286
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.035714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23ce1db523427cb59d90dd66571f9536a6eda982
4,859
py
Python
home/moz4r/Marty/marty_customInmoov.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
63
2015-02-03T18:49:43.000Z
2022-03-29T03:52:24.000Z
home/moz4r/Marty/marty_customInmoov.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
16
2016-01-26T19:13:29.000Z
2018-11-25T21:20:51.000Z
home/moz4r/Marty/marty_customInmoov.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
151
2015-01-03T18:55:54.000Z
2022-03-04T07:04:23.000Z
#MARTY I2C PI #SCRIPT BASED ON MATS WORK #SCRIPT PUSHED INSIDE inmoovCustom : https://github.com/MyRobotLab/inmoov/tree/master/InmoovScript raspi = Runtime.createAndStart("RasPi","RasPi") adaFruit16c = Runtime.createAndStart("AdaFruit16C","Adafruit16CServoDriver") adaFruit16c.setController("RasPi","1","0x40") # # This...
22.919811
98
0.787611
562
4,859
6.809609
0.25089
0.114973
0.066109
0.025085
0.232558
0.215574
0.215574
0.175856
0.175856
0.175856
0
0.048616
0.085614
4,859
211
99
23.028436
0.812739
0.064622
0
0.366279
0
0
0.05465
0.004848
0
0
0.000881
0
0
1
0.040698
false
0
0
0
0.040698
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23ce6753d608fd795d0aebbaec8257e2469df9e3
7,214
py
Python
tabular_experiments_supp_mat.py
juliendelaunay35000/APE-Adapted_Post-Hoc_Explanations
991c4cf6153fafef4200732a5ef8ac93f1175f27
[ "MIT" ]
null
null
null
tabular_experiments_supp_mat.py
juliendelaunay35000/APE-Adapted_Post-Hoc_Explanations
991c4cf6153fafef4200732a5ef8ac93f1175f27
[ "MIT" ]
null
null
null
tabular_experiments_supp_mat.py
juliendelaunay35000/APE-Adapted_Post-Hoc_Explanations
991c4cf6153fafef4200732a5ef8ac93f1175f27
[ "MIT" ]
null
null
null
from sklearn import tree, svm from sklearn.neural_network import MLPClassifier from sklearn.multiclass import OneVsRestClassifier from sklearn.ensemble import GradientBoostingClassifier, RandomForestClassifier, VotingClassifier from sklearn.linear_model import LogisticRegression, RidgeClassifier from sklearn.naive_baye...
59.131148
182
0.624896
740
7,214
5.847297
0.293243
0.024035
0.031431
0.018489
0.172175
0.144211
0.081812
0.044373
0.029119
0.029119
0
0.008179
0.28819
7,214
122
183
59.131148
0.834469
0.123094
0
0.05102
0
0
0.078884
0
0
0
0
0
0
1
0.020408
false
0
0.142857
0.010204
0.193878
0.091837
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23ceb4be40ab14b96763eb535badca57463b0253
8,099
py
Python
summarise_results.py
MDBAuth/EWR_tool
5b05cf276822d97a38a32a5fc031209224a04fb3
[ "CC0-1.0" ]
5
2021-03-17T00:33:53.000Z
2022-03-07T18:16:25.000Z
summarise_results.py
MDBAuth/EWR_tool
5b05cf276822d97a38a32a5fc031209224a04fb3
[ "CC0-1.0" ]
null
null
null
summarise_results.py
MDBAuth/EWR_tool
5b05cf276822d97a38a32a5fc031209224a04fb3
[ "CC0-1.0" ]
2
2022-01-14T03:50:10.000Z
2022-02-14T00:45:56.000Z
import pandas as pd import numpy as np import data_inputs, evaluate_EWRs #-------------------------------------------------------------------------------------------------- def sum_events(events): '''returns a sum of events''' return int(round(events.sum(), 0)) def get_frequency(events): '''Returns the f...
47.087209
118
0.548463
963
8,099
4.41433
0.185877
0.04399
0.033874
0.042343
0.410727
0.337803
0.262291
0.255705
0.255705
0.218772
0
0.004683
0.340783
8,099
172
119
47.087209
0.791534
0.115076
0
0.275362
0
0
0.06482
0
0
0
0
0
0
1
0.065217
false
0
0.021739
0
0.15942
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23cf95b3c49a497e9b4fcecf5c43de957206031c
1,564
py
Python
setup.py
nitehawck/DevEnvManager
425b0d621be577fe73f22b4641f7099eac65669e
[ "MIT" ]
1
2016-05-16T23:13:47.000Z
2016-05-16T23:13:47.000Z
setup.py
nitehawck/DevEnvManager
425b0d621be577fe73f22b4641f7099eac65669e
[ "MIT" ]
41
2016-01-22T00:56:14.000Z
2016-05-12T14:38:37.000Z
setup.py
nitehawck/DevEnvManager
425b0d621be577fe73f22b4641f7099eac65669e
[ "MIT" ]
null
null
null
from setuptools import setup with open('README.rst') as f: readme = f.read() setup( name="dem", version="0.0.8", author="Ian Macaulay, Jeremy Opalach", author_email="ismacaul@gmail.com", url="http://www.github.com/nitehawck/dem", description="An agnostic library/package manager for setting...
31.28
103
0.575448
152
1,564
5.855263
0.644737
0.106742
0.140449
0.08764
0
0
0
0
0
0
0
0.012456
0.28133
1,564
50
104
31.28
0.779359
0.05179
0
0.065217
0
0
0.550607
0
0
0
0
0
0
1
0
false
0
0.021739
0
0.021739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23d1f2c4f4ea5639727ded8d5757f9d66fc0cc39
13,959
py
Python
TarSync.py
waynegramlich/Fab
d4a23067a0354ffda106f7032df0501c8db24499
[ "MIT" ]
1
2022-03-20T12:25:34.000Z
2022-03-20T12:25:34.000Z
TarSync.py
waynegramlich/Fab
d4a23067a0354ffda106f7032df0501c8db24499
[ "MIT" ]
null
null
null
TarSync.py
waynegramlich/Fab
d4a23067a0354ffda106f7032df0501c8db24499
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """TarSync.py: Synchronize .fcstd and .tar files. Usage: TarSync.py [OPTIONS] [DIR] ... Recursively scans directories searching for `.fcstd`/`.FCstd` files and synchronizes them with associated `.tar` files. The current directory is used if no explicit directory or files are listed. Options: ...
45.617647
98
0.646321
1,837
13,959
4.753402
0.209036
0.01924
0.009162
0.013743
0.243014
0.193541
0.163536
0.137197
0.08967
0.074782
0
0.008279
0.247224
13,959
305
99
45.767213
0.822707
0.389641
0
0.184049
0
0
0.13019
0
0
0
0
0
0.128834
1
0.02454
false
0
0.055215
0
0.092025
0.006135
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23d7aa18934d135f4447648b4a864fe8e8b4a99c
1,790
py
Python
moods.py
henry232323/Discord-Pesterchum
70be67f3671b35aa6cbe6e4eb66a4a1c07707ce3
[ "MIT" ]
27
2017-01-31T03:28:26.000Z
2021-09-05T21:02:36.000Z
moods.py
henry232323/Discord-Pesterchum
70be67f3671b35aa6cbe6e4eb66a4a1c07707ce3
[ "MIT" ]
18
2018-02-03T16:44:18.000Z
2021-06-26T04:12:17.000Z
moods.py
henry232323/Discord-Pesterchum
70be67f3671b35aa6cbe6e4eb66a4a1c07707ce3
[ "MIT" ]
5
2017-09-23T15:53:08.000Z
2020-07-26T06:19:13.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2020, henry232323 # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, mo...
42.619048
76
0.701117
234
1,790
5.346154
0.606838
0.070344
0.020783
0.033573
0
0
0
0
0
0
0
0.011212
0.202793
1,790
41
77
43.658537
0.865452
0.603352
0
0.125
0
0
0.281567
0
0
0
0
0
0
1
0.1875
false
0
0
0.0625
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23d7e7b0e05f376311c1a1430b049eda79a5c69d
4,465
py
Python
reclass/utils/tests/test_refvalue.py
bbinet/reclass
c08b844b328fa0fe182db49dd423cc203a016ce9
[ "Artistic-2.0" ]
101
2015-01-09T14:59:57.000Z
2021-11-06T23:33:50.000Z
reclass/utils/tests/test_refvalue.py
bbinet/reclass
c08b844b328fa0fe182db49dd423cc203a016ce9
[ "Artistic-2.0" ]
48
2015-01-30T05:53:47.000Z
2019-03-21T23:17:40.000Z
reclass/utils/tests/test_refvalue.py
bbinet/reclass
c08b844b328fa0fe182db49dd423cc203a016ce9
[ "Artistic-2.0" ]
50
2015-01-30T08:56:07.000Z
2020-12-25T02:34:08.000Z
# # -*- coding: utf-8 -*- # # This file is part of reclass (http://github.com/madduck/reclass) # # Copyright © 2007–14 martin f. krafft <madduck@madduck.net> # Released under the terms of the Artistic Licence 2.0 # from reclass.utils.refvalue import RefValue from reclass.defaults import PARAMETER_INTERPOLATION_SENTINE...
34.882813
76
0.600224
501
4,465
5.095808
0.237525
0.041128
0.047395
0.046612
0.51038
0.438308
0.427732
0.410497
0.390521
0.390521
0
0.006194
0.27682
4,465
127
77
35.15748
0.783834
0.044345
0
0.357143
0
0
0.102161
0
0
0
0
0
0.183673
1
0.173469
false
0
0.040816
0.020408
0.244898
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23d88124e0abeec9041b9f813d746d7445479956
1,506
py
Python
backend/neuroflow/routes/mood.py
isamu-isozaki/neuroflow-challenge
ca29b8e48be4853317ab706acd4731ea0a8bab10
[ "MIT" ]
null
null
null
backend/neuroflow/routes/mood.py
isamu-isozaki/neuroflow-challenge
ca29b8e48be4853317ab706acd4731ea0a8bab10
[ "MIT" ]
null
null
null
backend/neuroflow/routes/mood.py
isamu-isozaki/neuroflow-challenge
ca29b8e48be4853317ab706acd4731ea0a8bab10
[ "MIT" ]
null
null
null
""" Author: Isamu Isozaki (isamu.website@gmail.com) Description: description Created: 2021-12-01T16:32:53.089Z Modified: !date! Modified By: modifier """ from flask import Blueprint, redirect, jsonify, url_for, request from neuroflow.repository import create_mood, get_authorized, load_moods_from_user from functools i...
30.12
82
0.616866
173
1,506
5.190751
0.468208
0.033408
0.028953
0.037862
0
0
0
0
0
0
0
0.026508
0.273572
1,506
49
83
30.734694
0.794333
0.096946
0
0.054054
0
0
0.079882
0
0
0
0
0
0.027027
1
0.108108
false
0
0.108108
0
0.432432
0.108108
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23d8fd0ae625c1772c3f3bb0a2d8ee76180f8da6
2,684
py
Python
capstone/upload_to_s3.py
slangenbach/udacity-de-nanodegree
ba885eb4c6fbce063e443375a89b92dbc46fa809
[ "MIT" ]
2
2020-03-07T23:32:41.000Z
2020-05-22T15:35:16.000Z
capstone/upload_to_s3.py
slangenbach/udacity-de-nanodegree
ba885eb4c6fbce063e443375a89b92dbc46fa809
[ "MIT" ]
1
2020-05-25T11:17:15.000Z
2020-05-26T06:58:37.000Z
capstone/upload_to_s3.py
slangenbach/udacity-de-nanodegree
ba885eb4c6fbce063e443375a89b92dbc46fa809
[ "MIT" ]
2
2020-03-31T13:00:01.000Z
2021-07-14T14:34:37.000Z
import logging import time from pathlib import Path from configparser import ConfigParser import boto3 from botocore.exceptions import ClientError def create_bucket(bucket_name: str, region: str = 'us-west-2'): """ Create S3 bucket https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-c...
31.209302
120
0.688897
362
2,684
4.944751
0.312155
0.039106
0.030168
0.024581
0.298324
0.251397
0.218994
0.218994
0.178771
0.132961
0
0.013189
0.209016
2,684
85
121
31.576471
0.829958
0.293219
0
0.292683
0
0
0.184818
0.025303
0
0
0
0
0
1
0.04878
false
0
0.146341
0
0.292683
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23dbf2b9d9cefc92e0075e49e75f8a00b52cb7f9
4,174
py
Python
core/loader.py
CrackerCat/ZetaSploit
4589d467c9fb81c1a5075cd43358b2df9b896530
[ "MIT" ]
3
2020-12-04T07:29:31.000Z
2022-01-30T10:14:41.000Z
core/loader.py
CrackerCat/ZetaSploit
4589d467c9fb81c1a5075cd43358b2df9b896530
[ "MIT" ]
null
null
null
core/loader.py
CrackerCat/ZetaSploit
4589d467c9fb81c1a5075cd43358b2df9b896530
[ "MIT" ]
1
2021-03-27T06:14:43.000Z
2021-03-27T06:14:43.000Z
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020 EntySec # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use,...
43.030928
115
0.598946
481
4,174
5.037422
0.324324
0.037144
0.03962
0.033017
0.151465
0.099876
0.099876
0.099876
0.099876
0.099876
0
0.003837
0.313129
4,174
97
116
43.030928
0.841298
0.258984
0
0.234375
0
0
0.042345
0
0
0
0
0
0
1
0.09375
false
0.015625
0.1875
0
0.390625
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23dc4f684d9d5300357e5bf6d8fabca6e13f5585
8,556
py
Python
parameter_setting/parameters_setting_cropping_impact.py
MorganeAudrain/Calcium_new
1af0ab4f70b91d1ca55c6053112c1744b1da1bd3
[ "MIT" ]
null
null
null
parameter_setting/parameters_setting_cropping_impact.py
MorganeAudrain/Calcium_new
1af0ab4f70b91d1ca55c6053112c1744b1da1bd3
[ "MIT" ]
null
null
null
parameter_setting/parameters_setting_cropping_impact.py
MorganeAudrain/Calcium_new
1af0ab4f70b91d1ca55c6053112c1744b1da1bd3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 5 @author: Melisa Maidana This script runs different cropping parameters, motion correct the cropped images using reasonable motion correction parameters that were previously selected by using the parameters_setting_motion_correction scripts, and ...
50.329412
161
0.661524
1,178
8,556
4.535654
0.282683
0.031443
0.04941
0.019465
0.270073
0.246491
0.21224
0.186786
0.186786
0.186786
0
0.024364
0.227676
8,556
169
162
50.627219
0.784201
0.132539
0
0.190083
0
0.008264
0.151081
0.061216
0
0
0
0
0
1
0
false
0
0.132231
0
0.132231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23dd6ab36e5a83840094cc404aedad771f6f9076
1,676
py
Python
src/data/energidataservice_api.py
titanbender/electricity-price-forecasting
c288a9b6d7489ac03ee800318539195bd1cd2650
[ "MIT" ]
1
2021-04-15T13:05:03.000Z
2021-04-15T13:05:03.000Z
src/data/energidataservice_api.py
titanbender/electricity-price-forecasting
c288a9b6d7489ac03ee800318539195bd1cd2650
[ "MIT" ]
1
2018-12-11T13:41:45.000Z
2018-12-11T14:15:15.000Z
src/data/energidataservice_api.py
titanbender/electricity-price-forecasting
c288a9b6d7489ac03ee800318539195bd1cd2650
[ "MIT" ]
1
2020-01-01T21:03:02.000Z
2020-01-01T21:03:02.000Z
import pandas as pd import json import urllib2 def download_nordpool(limit, output_file): ''' The method downloads the nordpool available data from www.energidataservice.dk and saves it in a csv file limit: Int, the number of maximum rows of data to download output_file: Str, the name of the output file ''' ...
37.244444
127
0.7679
245
1,676
5.122449
0.342857
0.063745
0.023904
0.028685
0.70757
0.661355
0.615139
0.557769
0.557769
0.557769
0
0.04321
0.130072
1,676
45
128
37.244444
0.817558
0.332339
0
0.347826
0
0.086957
0.414077
0
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.217391
0.217391
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23df352466c71a2286ba6b66bb76f8b89e0ba1ff
1,873
py
Python
models/cnn.py
amayuelas/NNKGReasoning
0e3623b344fd4e3088ece897f898ddbb1f80888d
[ "MIT" ]
1
2022-03-16T22:20:12.000Z
2022-03-16T22:20:12.000Z
models/cnn.py
amayuelas/NNKGReasoning
0e3623b344fd4e3088ece897f898ddbb1f80888d
[ "MIT" ]
2
2022-03-22T23:34:38.000Z
2022-03-24T17:35:53.000Z
models/cnn.py
amayuelas/NNKGReasoning
0e3623b344fd4e3088ece897f898ddbb1f80888d
[ "MIT" ]
null
null
null
from typing import Any import torch import torch.nn as nn import torch.nn.functional as F class CNN(nn.Module): def __init__(self, entity_dim): super(CNN, self).__init__() self.dim = entity_dim self.conv1 = nn.Conv1d(in_channels=1, out_channels=10, kernel_s...
31.745763
75
0.538708
284
1,873
3.433099
0.176056
0.086154
0.073846
0.073846
0.652308
0.652308
0.621538
0.588718
0.521026
0.521026
0
0.069586
0.317138
1,873
59
76
31.745763
0.692729
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23e397535cfd73ea5daf63a3a67cc1be6978c490
29,136
py
Python
src/valr_python/ws_client.py
duncan-lumina/valr-python
9c94b76990416b4b709d507b538bd8265ed51312
[ "MIT" ]
6
2019-12-31T17:25:14.000Z
2021-12-15T14:30:05.000Z
src/valr_python/ws_client.py
duncan-lumina/valr-python
9c94b76990416b4b709d507b538bd8265ed51312
[ "MIT" ]
17
2020-01-03T00:03:30.000Z
2022-03-14T19:17:50.000Z
src/valr_python/ws_client.py
duncan-lumina/valr-python
9c94b76990416b4b709d507b538bd8265ed51312
[ "MIT" ]
6
2020-06-24T03:23:37.000Z
2021-12-17T14:20:46.000Z
import asyncio from typing import Callable from typing import Dict from typing import List from typing import Optional from typing import Type from typing import Union try: import simplejson as json except ImportError: import json import websockets from valr_python.enum import AccountEvent from valr_python.e...
30.864407
120
0.512699
2,622
29,136
5.607551
0.206712
0.029382
0.041896
0.037475
0.438822
0.369788
0.337006
0.30674
0.272938
0.23519
0
0.050607
0.37198
29,136
943
121
30.897137
0.752924
0.747426
0
0.1125
0
0
0.084629
0.030101
0
0
0
0
0
1
0.0375
false
0
0.25
0.0125
0.3625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23e64fd0f143ca1fd055ab9e432dcd782eb331eb
2,215
py
Python
emailer.py
dblossom/raffle-checker
807d33a305e836579a423986be2a7ff7c2d655e1
[ "MIT" ]
null
null
null
emailer.py
dblossom/raffle-checker
807d33a305e836579a423986be2a7ff7c2d655e1
[ "MIT" ]
null
null
null
emailer.py
dblossom/raffle-checker
807d33a305e836579a423986be2a7ff7c2d655e1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from database import Database from rafflecollector import RaffleCollector import os import smtplib, ssl from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart import schedule import time class Emailer: db = Database() email_id = os.environ['RAFFLE_EMAIL'] ...
31.642857
91
0.621219
272
2,215
4.841912
0.363971
0.083523
0.033409
0.045558
0.157935
0.135156
0.083523
0.059226
0.059226
0
0
0.007917
0.258691
2,215
69
92
32.101449
0.794153
0.013093
0
0.140351
0
0
0.125916
0.009615
0
0
0
0
0
1
0.087719
false
0.035088
0.140351
0
0.350877
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23e79af618c8a287421e1a5d39cd45ed069fab6f
4,391
py
Python
website_handling/website_check.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
null
null
null
website_handling/website_check.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
3
2021-04-29T22:57:09.000Z
2021-05-03T15:32:39.000Z
website_handling/website_check.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
1
2021-08-29T09:53:09.000Z
2021-08-29T09:53:09.000Z
import os import json import shutil import time from pathlib import Path from sys import platform # TODO: (stackoverflow.com/question/17136514/how-to-get-3rd-party-cookies) # stackoverflow.com/questions/22200134/make-selenium-grab-all-cookies, add the selenium, phantomjs part to catch ALL cookies # TODO: Maybe save ...
35.128
125
0.662491
574
4,391
4.979094
0.277003
0.039188
0.029391
0.041638
0.637159
0.63366
0.538139
0.520644
0.520644
0.487054
0
0.012148
0.231382
4,391
124
126
35.41129
0.834667
0.26486
0
0.360656
0
0
0.274423
0.19403
0
0
0
0.008065
0
1
0.04918
false
0
0.098361
0
0.147541
0.147541
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23ed67548a141b4172f60911a628a2325339dc44
4,468
py
Python
podstreamer.py
Swall0w/pymusic
73e08e6a5ad4c6d418a0074fc3a83be0896cf97c
[ "MIT" ]
1
2017-06-08T11:41:00.000Z
2017-06-08T11:41:00.000Z
podstreamer.py
Swall0w/pymusic
73e08e6a5ad4c6d418a0074fc3a83be0896cf97c
[ "MIT" ]
null
null
null
podstreamer.py
Swall0w/pymusic
73e08e6a5ad4c6d418a0074fc3a83be0896cf97c
[ "MIT" ]
null
null
null
import feedparser import vlc import argparse import sys import time import curses import wget def arg(): parser = argparse.ArgumentParser( description='Simple Podcast Streamer.') parser.add_argument('--add', '-a', type=str, default=None, help='Pass Podcast an URL argument that you want to add....
30.813793
75
0.57744
542
4,468
4.638376
0.282288
0.02864
0.054097
0.029833
0.217979
0.202864
0.115354
0.083532
0.083532
0.083532
0
0.021063
0.288048
4,468
144
76
31.027778
0.769255
0.00291
0
0.101695
0
0.016949
0.109364
0
0
0
0
0
0
1
0.050847
false
0.033898
0.059322
0
0.127119
0.025424
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23ef7212ca626e96219a55f6302d2adc0e8dabbe
5,704
py
Python
Engine.py
MaciejKrol51/chess
457590768d338b900253ba345e64e56afbdf1ddd
[ "Apache-2.0" ]
null
null
null
Engine.py
MaciejKrol51/chess
457590768d338b900253ba345e64e56afbdf1ddd
[ "Apache-2.0" ]
null
null
null
Engine.py
MaciejKrol51/chess
457590768d338b900253ba345e64e56afbdf1ddd
[ "Apache-2.0" ]
null
null
null
def is_area_in_board(area): if 0 <= area[0] <= 7 and 0 <= area[1] <= 7: return True return False def cancel_castling(checker): if abs(checker.val) == 50 or abs(checker.val) == 900: checker.castling = False def is_king_beaten(board, color): for row in board: for are...
37.526316
121
0.577489
830
5,704
3.708434
0.090361
0.0705
0.067576
0.059129
0.570825
0.514295
0.480507
0.430799
0.337882
0.291748
0
0.021734
0.322405
5,704
151
122
37.774834
0.774644
0.012097
0
0.343511
0
0
0.003467
0
0
0
0
0
0
1
0.122137
false
0.045802
0
0
0.251908
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23f06c21c858b67e6817ed29322c8b3b1f30395d
2,281
py
Python
jsportal_docsite/portal/markdown_extensions/__init__.py
jumpscale7/prototypes
a17f20aa203d4965708b6e0e3a34582f55baac30
[ "Apache-2.0" ]
null
null
null
jsportal_docsite/portal/markdown_extensions/__init__.py
jumpscale7/prototypes
a17f20aa203d4965708b6e0e3a34582f55baac30
[ "Apache-2.0" ]
null
null
null
jsportal_docsite/portal/markdown_extensions/__init__.py
jumpscale7/prototypes
a17f20aa203d4965708b6e0e3a34582f55baac30
[ "Apache-2.0" ]
null
null
null
""" Original code Copyright 2009 [Waylan Limberg](http://achinghead.com) All changes Copyright 2008-2014 The Python Markdown Project Changed by Mohammad Tayseer to add CSS classes to table License: [BSD](http://www.opensource.org/licenses/bsd-license.php) """ from __future__ import absolute_import from __future__ ...
35.092308
88
0.621657
253
2,281
5.537549
0.498024
0.031406
0.022841
0.025696
0
0
0
0
0
0
0
0.009575
0.267427
2,281
64
89
35.640625
0.828845
0.259097
0
0
0
0
0.068154
0
0
0
0
0
0
1
0.078947
false
0
0.131579
0.026316
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23f14aa8cb681028e47a2e9707262f0b7d8d18f4
6,320
py
Python
NAS/single-path-one-shot/src/MNIST/test.py
naviocean/SimpleCVReproduction
61b43e3583977f42e6f91ef176ec5e1701e98d33
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
NAS/single-path-one-shot/src/MNIST/test.py
Twenty3hree/SimpleCVReproduction
9939f8340c54dbd69b0017cecad875dccf428f26
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
NAS/single-path-one-shot/src/MNIST/test.py
Twenty3hree/SimpleCVReproduction
9939f8340c54dbd69b0017cecad875dccf428f26
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import argparse import json import logging import os import sys import time import cv2 import numpy as np import PIL import torch import torch.nn as nn import torchvision.datasets as datasets import torchvision.transforms as transforms from PIL import Image from angle import generate_angle # from cifar100_dataset im...
31.287129
91
0.612025
766
6,320
4.879896
0.295039
0.0313
0.059123
0.026752
0.158909
0.12306
0.087212
0.075441
0.075441
0.075441
0
0.0205
0.259019
6,320
201
92
31.442786
0.777707
0.112816
0
0.015504
0
0
0.131291
0.008598
0
0
0
0
0.007752
1
0.023256
false
0
0.131783
0
0.162791
0.03876
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23f63778d171661ca3379def8f64e54d84bf8d22
2,868
py
Python
analysis/files/files.py
mg98/arbitrary-data-on-blockchains
6450e638cf7c54f53ef247ff779770b22128a024
[ "MIT" ]
1
2022-03-21T01:51:44.000Z
2022-03-21T01:51:44.000Z
analysis/files/files.py
mg98/arbitrary-data-on-blockchains
6450e638cf7c54f53ef247ff779770b22128a024
[ "MIT" ]
null
null
null
analysis/files/files.py
mg98/arbitrary-data-on-blockchains
6450e638cf7c54f53ef247ff779770b22128a024
[ "MIT" ]
null
null
null
import codecs import sqlite3 import json from fnmatch import fnmatch from abc import ABC, abstractmethod class FilesAnalysis(ABC): """Abstraction for analysis of transaction input data that contain popular file types.""" def __init__(self, chain: str, limit: int = 0, content_types: list[str] = ['*']): """ Initi...
32.224719
132
0.709902
392
2,868
5.040816
0.334184
0.066802
0.024292
0.019231
0.145749
0.116397
0.116397
0.116397
0.116397
0.116397
0
0.005495
0.175035
2,868
88
133
32.590909
0.82967
0.222455
0
0.096774
0
0
0.237047
0.016048
0
0
0
0
0
1
0.145161
false
0
0.080645
0
0.306452
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23faddb427ccf2b4a51011515cdd3a2b5edefbe2
1,211
py
Python
examples/pymt-frostnumbermodel-multidim-parameter-study.py
csdms/dakotathon
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
8
2019-09-11T12:59:57.000Z
2021-08-11T16:31:58.000Z
examples/pymt-frostnumbermodel-multidim-parameter-study.py
csdms/dakota
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
66
2015-04-06T17:11:21.000Z
2019-02-03T18:09:52.000Z
examples/pymt-frostnumbermodel-multidim-parameter-study.py
csdms/dakota
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
5
2015-03-24T22:39:34.000Z
2018-04-21T12:14:05.000Z
"""An example of using Dakota as a component with PyMT. This example requires a WMT executor with PyMT installed, as well as the CSDMS Dakota interface and FrostNumberModel installed as components. """ import os from pymt.components import MultidimParameterStudy, FrostNumberModel from dakotathon.utils import configur...
27.522727
68
0.721718
146
1,211
5.767123
0.486301
0.033254
0.042755
0.038005
0
0
0
0
0
0
0
0.011605
0.14616
1,211
43
69
28.162791
0.802708
0.182494
0
0
0
0
0.281059
0.021385
0
0
0
0
0
1
0
false
0
0.107143
0
0.107143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23fdbc64ade39f6aaca5e42eb2790bc7ac6b2823
4,427
py
Python
tensorflow/train_pretrained.py
sevakon/mobilenetv2
e6634da41c377ae1c76662d061e6b2b804a3b09c
[ "MIT" ]
1
2020-01-17T07:54:02.000Z
2020-01-17T07:54:02.000Z
tensorflow/train_pretrained.py
sevakon/mobilenetv2
e6634da41c377ae1c76662d061e6b2b804a3b09c
[ "MIT" ]
null
null
null
tensorflow/train_pretrained.py
sevakon/mobilenetv2
e6634da41c377ae1c76662d061e6b2b804a3b09c
[ "MIT" ]
null
null
null
from callback import ValidationHistory from dataloader import Dataloader from normalizer import Normalizer import tensorflow as tf import numpy as np import argparse def get_model(input_shape, n_classes): base_model = tf.keras.applications.MobileNetV2(input_shape=input_shape, ...
33.793893
87
0.5733
469
4,427
5.215352
0.328358
0.042927
0.029436
0.026165
0.232216
0.232216
0.205233
0.205233
0.205233
0.205233
0
0.008325
0.321663
4,427
130
88
34.053846
0.806194
0.022815
0
0.295238
0
0
0.116435
0.021296
0
0
0
0
0
1
0.038095
false
0
0.057143
0
0.114286
0.009524
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23fe13301d5fe663179594a9c1c64fdce727026b
1,354
py
Python
source/test.py
valrus/alfred-org-mode-workflow
30f81772ad16519317ccb170d36782e387988633
[ "MIT" ]
52
2016-08-04T02:15:52.000Z
2021-12-20T20:33:07.000Z
source/test.py
valrus/alfred-org-mode-workflow
30f81772ad16519317ccb170d36782e387988633
[ "MIT" ]
3
2019-11-15T15:13:51.000Z
2020-11-25T10:42:34.000Z
source/test.py
valrus/alfred-org-mode-workflow
30f81772ad16519317ccb170d36782e387988633
[ "MIT" ]
9
2019-03-06T04:21:29.000Z
2021-08-16T02:28:33.000Z
# coding=utf-8 from orgmode_entry import OrgmodeEntry entry = u'#A Etwas machen:: DL: Morgen S: Heute Ausstellung am 23.09.2014 12:00 oder am Montag bzw. am 22.10 13:00 sollte man anschauen. ' org = OrgmodeEntry() # Use an absolute path org.inbox_file = '/Users/Alex/Documents/Planung/Planning/Inbox.org' org.delim...
33.02439
140
0.739291
214
1,354
4.574766
0.46729
0.044944
0.030644
0.032686
0
0
0
0
0
0
0
0.037102
0.163959
1,354
40
141
33.85
0.827739
0.39808
0
0
0
0.047619
0.258469
0.060226
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23fead2b5260640c347d0b505721cb2630c98560
407
py
Python
25/00/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
null
null
null
25/00/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
70
2017-06-01T11:02:51.000Z
2017-06-30T00:35:32.000Z
25/00/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
null
null
null
import gzip import bz2 import lzma s = b'witch which has which witches wrist watch' with open('2.txt', 'wb') as f: f.write(s) with gzip.open('2.txt.gz', 'wb') as f: f.write(s) with bz2.open('2.txt.bz2', 'wb') as f: f.write(s) with lzma.open('2.txt.xz', 'wb') as f: f.write(s) print('txt', len(s)) print('gz ', len(gzip...
25.4375
49
0.641278
83
407
3.144578
0.301205
0.076628
0.122605
0.091954
0.229885
0.229885
0.183908
0
0
0
0
0.025352
0.127764
407
15
50
27.133333
0.709859
0
0
0
0
0
0.224138
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
23ff90db58dc31d3acc655b347ff8c32734fce8f
751
py
Python
timezones.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
timezones.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
timezones.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
import pytz from datetime import datetime MEETING_HOURS = range(6, 23) # meet from 6 - 22 max TIMEZONES = set(pytz.all_timezones) def within_schedule(utc, *timezones): """Receive a utc datetime and one or more timezones and check if they are all within schedule (MEETING_HOURS)""" times = [] ...
25.033333
68
0.624501
96
751
4.8125
0.520833
0.077922
0
0
0
0
0
0
0
0
0
0.011342
0.295606
751
30
69
25.033333
0.862004
0.170439
0
0
0
0
0
0
0
0
0
0
0
1
0.05
false
0.05
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b000540f0f753d3e1bc63731ed866572a4a795c
450
py
Python
config.py
saurabhchardereal/kernel-tracker
60d53e6ae377925f8540f148b742869929337088
[ "MIT" ]
null
null
null
config.py
saurabhchardereal/kernel-tracker
60d53e6ae377925f8540f148b742869929337088
[ "MIT" ]
null
null
null
config.py
saurabhchardereal/kernel-tracker
60d53e6ae377925f8540f148b742869929337088
[ "MIT" ]
null
null
null
from os import sys, environ from tracker.__main__ import args # Name of the file to save kernel versions json DB_FILE_NAME = "data.json" # By default looks up in env for api and chat id or just put your stuff in here # directly if you prefer it that way BOT_API = environ.get("BOT_API") CHAT_ID = environ.get("CHAT_ID"...
28.125
79
0.717778
84
450
3.678571
0.630952
0.097087
0.064725
0.07767
0
0
0
0
0
0
0
0.002801
0.206667
450
15
80
30
0.862745
0.351111
0
0
0
0
0.201389
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b02d42862a5d0797afc71d43094512a70c96510
3,302
py
Python
Packs/dnstwist/Integrations/dnstwist/dnstwist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/dnstwist/Integrations/dnstwist/dnstwist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/dnstwist/Integrations/dnstwist/dnstwist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import subprocess from CommonServerPython import * TWIST_EXE = '/dnstwist/dnstwist.py' if demisto.command() == 'dnstwist-domain-variations': KEYS_TO_MD = ["whois_updated", "whois_created", "dns_a", "dns_mx", "dns_ns"] DOMAIN = demisto.args()['domain'] LIMIT = int(demisto.args()['limit']) ...
35.891304
117
0.58934
398
3,302
4.690955
0.248744
0.09052
0.048206
0.054633
0.149973
0.111409
0
0
0
0
0
0.001676
0.277408
3,302
91
118
36.285714
0.780805
0.040581
0
0
0
0
0.219096
0.029402
0
0
0
0
0
1
0.025974
false
0
0.038961
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
0
0
0
0
0
0
1
0
9b049ff801a11852ac7c1f7e34a2e069aca68527
3,395
py
Python
test/test_resourcerequirements.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
6
2018-08-10T17:11:10.000Z
2020-04-29T07:05:36.000Z
test/test_resourcerequirements.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
58
2018-08-13T08:36:08.000Z
2021-07-07T08:32:52.000Z
test/test_resourcerequirements.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
7
2018-08-10T12:53:18.000Z
2021-11-08T05:15:42.000Z
# pylint: disable=missing-docstring,protected-access """ Copyright 2017 ARM Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required b...
38.146067
90
0.648895
378
3,395
5.653439
0.359788
0.056153
0.078615
0.077211
0.363126
0.218531
0.196069
0.1343
0.059897
0.059897
0
0.012448
0.219146
3,395
88
91
38.579545
0.793663
0.197644
0
0.214286
0
0
0.189757
0.009212
0
0
0
0
0.178571
1
0.089286
false
0
0.035714
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b04ad53449f706663e52db825a5918226304aab
321
py
Python
hadoop_example/reduce.py
hatbot-team/hatbot
e7fea42b5431cc3e93d9e484c5bb5232d8f2e981
[ "MIT" ]
1
2016-05-26T08:18:36.000Z
2016-05-26T08:18:36.000Z
hadoop_example/reduce.py
hatbot-team/hatbot
e7fea42b5431cc3e93d9e484c5bb5232d8f2e981
[ "MIT" ]
null
null
null
hadoop_example/reduce.py
hatbot-team/hatbot
e7fea42b5431cc3e93d9e484c5bb5232d8f2e981
[ "MIT" ]
null
null
null
#!/bin/python3 import sys prev = '' cnt = 0 for x in sys.stdin.readlines(): q, w = x.split('\t')[0], int(x.split('\t')[1]) if (prev == q): cnt += 1 else: if (cnt > 0): print(prev + '\t' + str(cnt)) prev = q cnt = w if (cnt > 0): print(prev + '\t' + str(cnt))...
17.833333
50
0.433022
50
321
2.78
0.44
0.086331
0.100719
0.158273
0.316547
0.316547
0.316547
0.316547
0
0
0
0.033493
0.34891
321
17
51
18.882353
0.631579
0.040498
0
0.285714
0
0
0.026059
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b0792a063a2b49e22d50a2e57caac25388b1b3e
511
py
Python
tests/blockchain/test_hashing_and_proof.py
thecoons/blockchain
426ede04d058b5eb0e595fcf6e9c71d16605f9a7
[ "MIT" ]
null
null
null
tests/blockchain/test_hashing_and_proof.py
thecoons/blockchain
426ede04d058b5eb0e595fcf6e9c71d16605f9a7
[ "MIT" ]
null
null
null
tests/blockchain/test_hashing_and_proof.py
thecoons/blockchain
426ede04d058b5eb0e595fcf6e9c71d16605f9a7
[ "MIT" ]
null
null
null
import json import hashlib from .test_case.blockchain import BlockchainTestCase class TestHashingAndProofs(BlockchainTestCase): def test_hash_is_correct(self): self.create_block() new_block = self.blockchain.last_block new_block_json = json.dumps( self.blockchain.last_block, ...
26.894737
61
0.702544
62
511
5.516129
0.467742
0.093567
0.076023
0.134503
0
0
0
0
0
0
0
0.012469
0.215264
511
18
62
28.388889
0.840399
0
0
0
0
0
0
0
0
0
0
0
0.153846
1
0.076923
false
0
0.230769
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b0816140cf40f94ed1ecf980a99d990c62d409b
14,495
py
Python
xgbse/_kaplan_neighbors.py
gdmarmerola/xgboost-survival-embeddings
cb672d5c2bf09c7d8cbf9edf7807a153bce4db40
[ "Apache-2.0" ]
null
null
null
xgbse/_kaplan_neighbors.py
gdmarmerola/xgboost-survival-embeddings
cb672d5c2bf09c7d8cbf9edf7807a153bce4db40
[ "Apache-2.0" ]
null
null
null
xgbse/_kaplan_neighbors.py
gdmarmerola/xgboost-survival-embeddings
cb672d5c2bf09c7d8cbf9edf7807a153bce4db40
[ "Apache-2.0" ]
null
null
null
import warnings import numpy as np import pandas as pd import xgboost as xgb import scipy.stats as st from sklearn.neighbors import BallTree from xgbse._base import XGBSEBaseEstimator from xgbse.converters import convert_data_to_xgb_format, convert_y from xgbse.non_parametric import ( calculate_kaplan_vectorized,...
34.186321
135
0.635598
1,807
14,495
4.915329
0.201439
0.021617
0.02567
0.011822
0.558883
0.543684
0.501351
0.461946
0.433799
0.413983
0
0.005691
0.29693
14,495
423
136
34.267139
0.865862
0.41504
0
0.388889
0
0
0.092977
0.012168
0
0
0
0
0.005051
1
0.035354
false
0
0.045455
0
0.136364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b086dcb5153716593628ec1966115cfb5eef668
3,932
py
Python
homework_2/1.py
jelic98/raf_mu
8b965fa41d5f89eeea371ab7b8e15bd167325b5f
[ "Apache-2.0" ]
null
null
null
homework_2/1.py
jelic98/raf_mu
8b965fa41d5f89eeea371ab7b8e15bd167325b5f
[ "Apache-2.0" ]
null
null
null
homework_2/1.py
jelic98/raf_mu
8b965fa41d5f89eeea371ab7b8e15bd167325b5f
[ "Apache-2.0" ]
1
2021-05-30T15:26:52.000Z
2021-05-30T15:26:52.000Z
import math import numpy as np import pandas as pd import tensorflow as tf import datetime as dt import matplotlib.pyplot as plt import matplotlib.dates as mdates import warnings warnings.filterwarnings('ignore') # Hiperparametri epoch_max = 10 alpha_max = 0.025 alpha_min = 0.001 batch_size = 32 window_size = 14 test...
31.206349
95
0.694557
634
3,932
4.15142
0.309148
0.018237
0.020517
0.033435
0.168693
0.119301
0.087766
0.080547
0.080547
0.059271
0
0.019787
0.164547
3,932
125
96
31.456
0.781431
0.170905
0
0
0
0
0.030622
0
0
0
0
0
0
1
0
false
0
0.115942
0
0.115942
0.028986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b0a82ae7938b94fafa2d863a1f8c7ee8913dbbc
2,674
py
Python
playground/toy_grads_compositional.py
TUIlmenauAMS/nca_mss
f0deb4b0acd0e317fb50340a57979c2e0a43c293
[ "MIT" ]
2
2019-08-15T11:51:17.000Z
2019-08-15T12:59:37.000Z
playground/toy_grads_compositional.py
TUIlmenauAMS/nca_mss
f0deb4b0acd0e317fb50340a57979c2e0a43c293
[ "MIT" ]
1
2020-08-11T14:25:45.000Z
2020-08-11T14:25:45.000Z
playground/toy_grads_compositional.py
TUIlmenauAMS/nca_mss
f0deb4b0acd0e317fb50340a57979c2e0a43c293
[ "MIT" ]
1
2021-03-16T12:30:31.000Z
2021-03-16T12:30:31.000Z
# -*- coding: utf-8 -*- __author__ = 'S.I. Mimilakis' __copyright__ = 'MacSeNet' import torch from torch.autograd import Variable import numpy as np dtype = torch.DoubleTensor np.random.seed(2183) torch.manual_seed(2183) # D is the "batch size"; N is input dimension; # H is hidden dimension; N_out is output dimens...
33.012346
112
0.726253
469
2,674
3.936034
0.26226
0.071506
0.078007
0.091008
0.375406
0.2974
0.282232
0.266522
0.222102
0.114843
0
0.011905
0.120419
2,674
80
113
33.425
0.772959
0.218773
0
0
0
0
0.058795
0
0
0
0
0
0
1
0
false
0
0.068182
0
0.068182
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b0ea10947bac276566d22b561a64d291c54aa39
3,195
py
Python
blog/forms.py
oversabiproject/ghostrr
0bf49537ddf0436d08d705b29bffbd49b66e7c65
[ "MIT" ]
null
null
null
blog/forms.py
oversabiproject/ghostrr
0bf49537ddf0436d08d705b29bffbd49b66e7c65
[ "MIT" ]
null
null
null
blog/forms.py
oversabiproject/ghostrr
0bf49537ddf0436d08d705b29bffbd49b66e7c65
[ "MIT" ]
null
null
null
import string from django import forms from django.conf import settings from django.shortcuts import get_object_or_404 from accounts.models import User, Profile from .models import Blogs from .utils import get_limit_for_level, write_to_limit class EditLimitForm(forms.Form): free_limit = forms.IntegerField(help_t...
34.728261
179
0.747418
470
3,195
4.938298
0.265957
0.030159
0.045239
0.054287
0.251616
0.173632
0.173632
0.173632
0.173632
0.15726
0
0.013739
0.157121
3,195
92
180
34.728261
0.848125
0.133959
0
0
0
0.018519
0.270811
0
0
0
0
0
0
1
0.092593
false
0
0.12963
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b0f367d08c895d53158d4654de98cbeabd4b541
1,032
py
Python
Class Work/Recursion & Search /app.py
Pondorasti/CS-1.2
c86efa40f8a09c1ca1ce0b937ca63a07108bfc6c
[ "MIT" ]
null
null
null
Class Work/Recursion & Search /app.py
Pondorasti/CS-1.2
c86efa40f8a09c1ca1ce0b937ca63a07108bfc6c
[ "MIT" ]
null
null
null
Class Work/Recursion & Search /app.py
Pondorasti/CS-1.2
c86efa40f8a09c1ca1ce0b937ca63a07108bfc6c
[ "MIT" ]
null
null
null
a = [1, 2, 3, 5, 6] def recursive_search(array, item_to_find, current_index=0): if current_index == len(array): return None elif array[current_index] == item_to_find: return current_index else: return recursive_search(array, item_to_find, current_index + 1) # print(recursive_search(...
21.957447
117
0.593992
140
1,032
4.214286
0.257143
0.183051
0.115254
0.081356
0.301695
0.142373
0.142373
0.142373
0
0
0
0.0427
0.296512
1,032
47
118
21.957447
0.769972
0.028101
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.366667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b119221fff46228bdcf97a9b0a6cdd84ac53dfa
6,623
py
Python
klusta/kwik/mock.py
hrnciar/klusta
408e898e8d5dd1788841d1f682e51d0dc003a296
[ "BSD-3-Clause" ]
45
2016-03-19T14:39:40.000Z
2021-12-15T06:34:57.000Z
klusta/kwik/mock.py
hrnciar/klusta
408e898e8d5dd1788841d1f682e51d0dc003a296
[ "BSD-3-Clause" ]
73
2016-03-19T16:15:45.000Z
2022-02-22T16:37:16.000Z
klusta/kwik/mock.py
hrnciar/klusta
408e898e8d5dd1788841d1f682e51d0dc003a296
[ "BSD-3-Clause" ]
41
2016-04-08T14:04:00.000Z
2021-09-09T20:49:41.000Z
# -*- coding: utf-8 -*- """Mock Kwik files.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ import os.path as op import numpy as np import numpy.random as nr from .mea import staggered_posit...
36.191257
79
0.562434
757
6,623
4.638045
0.216645
0.029052
0.034178
0.032469
0.311023
0.22814
0.115921
0.07092
0.049559
0.029052
0
0.022709
0.261966
6,623
182
80
36.39011
0.695581
0.141326
0
0.06087
0
0
0.117637
0.036795
0
0
0
0.005495
0
1
0.086957
false
0
0.052174
0.06087
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b11b55cfbda19b56fe51d5da114dd0268d96bc2
1,824
py
Python
telluride_decoding/preprocess_audio.py
RULCSoft/telluride_decoding
ff2a5b421a499370b379e7f4fc3f28033c045e17
[ "Apache-2.0" ]
8
2019-07-03T15:33:52.000Z
2021-10-21T00:56:43.000Z
telluride_decoding/preprocess_audio.py
RULCSoft/telluride_decoding
ff2a5b421a499370b379e7f4fc3f28033c045e17
[ "Apache-2.0" ]
3
2020-09-02T19:04:36.000Z
2022-03-12T19:46:50.000Z
telluride_decoding/preprocess_audio.py
RULCSoft/telluride_decoding
ff2a5b421a499370b379e7f4fc3f28033c045e17
[ "Apache-2.0" ]
7
2019-07-03T15:50:24.000Z
2020-11-26T12:16:10.000Z
# Copyright 2020 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.48
80
0.733553
266
1,824
4.969925
0.545113
0.045386
0.019667
0.024206
0.143722
0.113464
0.113464
0.072617
0
0
0
0.007157
0.157346
1,824
49
81
37.22449
0.85296
0.719298
0
0.2
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b122420662104df8bedddda57c416404fd43cea
3,355
py
Python
aioouimeaux/device/__init__.py
frawau/aioouimeaux
ea473ded95e41e350793b0e289944a359049c501
[ "BSD-3-Clause" ]
2
2019-01-26T02:44:14.000Z
2019-08-06T00:40:56.000Z
aioouimeaux/device/__init__.py
frawau/aioouimeaux
ea473ded95e41e350793b0e289944a359049c501
[ "BSD-3-Clause" ]
1
2019-05-23T22:35:27.000Z
2019-05-25T20:23:50.000Z
aioouimeaux/device/__init__.py
frawau/aioouimeaux
ea473ded95e41e350793b0e289944a359049c501
[ "BSD-3-Clause" ]
null
null
null
import logging from urllib.parse import urlsplit import asyncio as aio from functools import partial from .api.service import Service from .api.xsd import device as deviceParser from ..utils import requests_get log = logging.getLogger(__name__) class DeviceUnreachable(Exception): pass class UnknownService(Excepti...
28.432203
76
0.614903
378
3,355
5.304233
0.338624
0.041895
0.057357
0.029925
0
0
0
0
0
0
0
0.007825
0.276304
3,355
117
77
28.675214
0.817957
0.017884
0
0.057471
0
0
0.041896
0
0
0
0
0
0
1
0.137931
false
0.045977
0.08046
0.045977
0.344828
0.057471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b1232a2760be1096b010b97407d362bad15d50f
2,012
py
Python
src/lib/localtime.py
RonaldHiemstra/BronartsmeiH
1ad3838b43abfe9a1f3416334439c8056aa50dde
[ "MIT" ]
null
null
null
src/lib/localtime.py
RonaldHiemstra/BronartsmeiH
1ad3838b43abfe9a1f3416334439c8056aa50dde
[ "MIT" ]
3
2021-03-17T16:05:01.000Z
2021-05-01T18:47:43.000Z
src/lib/localtime.py
RonaldHiemstra/BronartsmeiH
1ad3838b43abfe9a1f3416334439c8056aa50dde
[ "MIT" ]
null
null
null
"""File providing localtime support.""" import time import network import ntptime from machine import RTC, reset from config import Config system_config = Config('system_config.json') class Localtime(): """Synchronized realtime clock using NTP.""" def __init__(self, utc_offset=None): self.utc_offset =...
39.45098
92
0.578032
248
2,012
4.475806
0.379032
0.040541
0.054054
0.067568
0.2
0.127928
0.046847
0
0
0
0
0.007278
0.317097
2,012
50
93
40.24
0.800582
0.215706
0
0.102564
0
0
0.039406
0
0
0
0
0
0
1
0.128205
false
0
0.128205
0
0.358974
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b126b83c2c4f4a5775d0727f5ece4feb0b27a5c
448
py
Python
accounts/api/urls.py
tejaswari7/JagratiWebApp
e9030f8bd6319a7bb43e036bb7bc43cca01d64a1
[ "MIT" ]
59
2019-12-05T13:23:14.000Z
2021-12-07T13:54:25.000Z
accounts/api/urls.py
tejaswari7/JagratiWebApp
e9030f8bd6319a7bb43e036bb7bc43cca01d64a1
[ "MIT" ]
266
2020-09-22T16:22:56.000Z
2021-10-17T18:13:11.000Z
accounts/api/urls.py
tejaswari7/JagratiWebApp
e9030f8bd6319a7bb43e036bb7bc43cca01d64a1
[ "MIT" ]
213
2020-05-20T18:17:21.000Z
2022-03-06T11:03:42.000Z
from django.urls import path from . import views urlpatterns = [ path('register/', views.registration_view, name='api_register'), path('login/', views.LoginView.as_view(), name='api_login'), path('complete_profile/', views.complete_profile_view, name='api_complete_profile'), path('logout/', views.Logou...
44.8
89
0.736607
59
448
5.288136
0.355932
0.112179
0.141026
0.083333
0
0
0
0
0
0
0
0
0.104911
448
10
90
44.8
0.778055
0
0
0
0
0
0.291759
0.048998
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b1bd86935affb209f3416a74dae1cedee23495f
1,733
py
Python
SimpleBeep.py
RalphBacon/219-Raspberry-Pi-PICO-Sound-Generation
1c7a5cbfb5373aa5eccde00638bbdff062c57a2d
[ "MIT" ]
2
2021-07-15T14:11:29.000Z
2022-03-25T23:20:54.000Z
SimpleBeep.py
RalphBacon/219-Raspberry-Pi-PICO-Sound-Generation
1c7a5cbfb5373aa5eccde00638bbdff062c57a2d
[ "MIT" ]
null
null
null
SimpleBeep.py
RalphBacon/219-Raspberry-Pi-PICO-Sound-Generation
1c7a5cbfb5373aa5eccde00638bbdff062c57a2d
[ "MIT" ]
1
2021-07-15T14:11:48.000Z
2021-07-15T14:11:48.000Z
# Import the required 'libraries' for pin definitions and PWM from machine import Pin, PWM # Also import a subset for sleep and millisecond sleep. If you just import # the utime you will have to prefix each call with "utime." from utime import sleep, sleep_ms # Define what the buzzer object is - a PWM output o...
28.883333
119
0.671091
284
1,733
4.059859
0.464789
0.030356
0.056375
0.048569
0.06765
0.038161
0
0
0
0
0
0.098174
0.241777
1,733
60
120
28.883333
0.7793
0.508367
0
0.481481
0
0
0
0
0
0
0
0
0
1
0.074074
false
0
0.074074
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b1c20b6056395f07046b2fb8132dfe7ff823554
1,789
py
Python
vendor/packages/sqlalchemy/test/orm/test_bind.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
2
2016-05-09T09:17:35.000Z
2016-08-03T16:30:16.000Z
test/orm/test_bind.py
clones/sqlalchemy
c9f08aa78a48ba53dd221d3c5de54e5956ecf806
[ "MIT" ]
null
null
null
test/orm/test_bind.py
clones/sqlalchemy
c9f08aa78a48ba53dd221d3c5de54e5956ecf806
[ "MIT" ]
null
null
null
from sqlalchemy.test.testing import assert_raises, assert_raises_message from sqlalchemy import MetaData, Integer from sqlalchemy.test.schema import Table from sqlalchemy.test.schema import Column from sqlalchemy.orm import mapper, create_session import sqlalchemy as sa from sqlalchemy.test import testing from test.orm...
29.816667
75
0.618222
204
1,789
5.264706
0.372549
0.078212
0.067039
0.075419
0.160149
0.07635
0.07635
0
0
0
0
0
0.297373
1,789
59
76
30.322034
0.854415
0
0
0.122449
0
0
0.064913
0.011752
0
0
0
0
0.102041
1
0.102041
false
0.020408
0.163265
0
0.306122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b1ea81c58845b4a3bb52fdf9a88f5aa5548c833
3,316
py
Python
Chapter08/ppo/ppo_kb.py
rwill128/TensorFlow-Reinforcement-Learning-Quick-Start-Guide
45ec2bd23a49ed72ce75f8c8d440ce7840c8ffce
[ "MIT" ]
40
2019-05-19T01:29:12.000Z
2022-03-27T04:37:31.000Z
Chapter08/ppo/ppo_kb.py
rwill128/TensorFlow-Reinforcement-Learning-Quick-Start-Guide
45ec2bd23a49ed72ce75f8c8d440ce7840c8ffce
[ "MIT" ]
null
null
null
Chapter08/ppo/ppo_kb.py
rwill128/TensorFlow-Reinforcement-Learning-Quick-Start-Guide
45ec2bd23a49ed72ce75f8c8d440ce7840c8ffce
[ "MIT" ]
19
2019-05-02T19:55:57.000Z
2022-02-26T01:51:45.000Z
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import gym from class_ppo import * from gym_torcs import TorcsEnv #---------------------------------------------------------------------------------------- EP_MAX = 2000 EP_LEN = 1000 GAMMA = 0.95 A_LR = 1e-4 C_LR = 1e-4 BATCH = 128 A_UPDA...
25.507692
123
0.495778
474
3,316
3.312236
0.291139
0.040127
0.044586
0.038217
0.217834
0.150318
0.123567
0.101911
0.101911
0.101911
0
0.036632
0.283776
3,316
129
124
25.705426
0.624421
0.16918
0
0.121622
0
0
0.037213
0
0
0
0
0
0
1
0
false
0
0.081081
0
0.081081
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b22737cee51dac49b519ede06b216b061a09833
1,628
py
Python
py/garage/tests/threads/test_executors.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
3
2016-01-04T06:28:52.000Z
2020-09-20T13:18:40.000Z
py/garage/tests/threads/test_executors.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
py/garage/tests/threads/test_executors.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
import unittest import threading from garage.threads import executors class ExecutorTest(unittest.TestCase): def test_executor(self): pool = executors.WorkerPool() self.assertEqual(0, len(pool)) # No jobs, no workers are hired. with executors.Executor(pool, 1) as executor: ...
29.071429
67
0.595823
194
1,628
4.927835
0.304124
0.188285
0.117155
0.139121
0.574268
0.574268
0.546025
0.446653
0.446653
0.366109
0
0.032562
0.28317
1,628
55
68
29.6
0.786632
0.054054
0
0.621622
0
0
0.005205
0
0
0
0
0
0.378378
1
0.054054
false
0
0.081081
0
0.162162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b227c99cc76d04bed95afc7abf3ffae257b32fd
2,619
py
Python
exporter/BattleRoyal.py
dl-stuff/dl-datamine
aae37710d2525aaa2b83f809e908be67f074c2d2
[ "MIT" ]
3
2020-04-29T12:35:33.000Z
2022-03-22T20:08:22.000Z
exporter/BattleRoyal.py
dl-stuff/dl-datamine
aae37710d2525aaa2b83f809e908be67f074c2d2
[ "MIT" ]
1
2020-10-23T00:08:35.000Z
2020-10-29T04:10:35.000Z
exporter/BattleRoyal.py
dl-stuff/dl-datamine
aae37710d2525aaa2b83f809e908be67f074c2d2
[ "MIT" ]
4
2020-04-05T15:09:08.000Z
2020-10-21T15:08:34.000Z
import os import json from tqdm import tqdm from loader.Database import DBViewIndex, DBView, check_target_path from exporter.Shared import snakey from exporter.Adventurers import CharaData from exporter.Dragons import DragonData class BattleRoyalCharaSkin(DBView): def __init__(self, index): super().__ini...
37.956522
124
0.649866
329
2,619
4.844985
0.322188
0.033877
0.041405
0.04266
0.21079
0.200753
0.200753
0.179423
0.104141
0.053952
0
0.003876
0.211913
2,619
68
125
38.514706
0.768411
0.021
0
0.145455
0
0
0.162763
0.009368
0
0
0
0
0
1
0.127273
false
0
0.127273
0
0.345455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1955c751f92a084391167fe5becfed42fd578e2
772
py
Python
test/test_slope_heuristic.py
StatisKit/Core
79d8ec07c203eb7973a6cf482852ddb2e8e1e93e
[ "Apache-2.0" ]
null
null
null
test/test_slope_heuristic.py
StatisKit/Core
79d8ec07c203eb7973a6cf482852ddb2e8e1e93e
[ "Apache-2.0" ]
7
2018-03-20T14:23:16.000Z
2019-04-09T11:57:57.000Z
test/test_slope_heuristic.py
StatisKit/Core
79d8ec07c203eb7973a6cf482852ddb2e8e1e93e
[ "Apache-2.0" ]
7
2017-04-28T07:41:01.000Z
2021-03-15T18:17:20.000Z
import matplotlib matplotlib.use('Agg') from statiskit import core from statiskit.data import core as data import unittest from nose.plugins.attrib import attr @attr(linux=True, osx=True, win=True, level=1) class TestSlopeHeuristic(unittest.TestCase): @classmethod def setUpClass(cls): ...
25.733333
140
0.676166
95
772
5.431579
0.505263
0.050388
0.073643
0.089147
0
0
0
0
0
0
0
0.00165
0.215026
772
30
141
25.733333
0.849835
0.11399
0
0.095238
0
0
0.014948
0
0
0
0
0
0
1
0.142857
false
0
0.238095
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
0
0
0
0
1
0
f1966b5ea95fad48b2c50f6ae0e84a62362e0d49
688
py
Python
holteandtalley/test/matToJson.py
garrettdreyfus/HolteAndTalleyMLDPy
baab854ef955664437f04fdc7de100dcc894bbda
[ "MIT" ]
18
2019-03-07T06:25:58.000Z
2022-03-07T04:38:36.000Z
holteandtalley/test/matToJson.py
garrettdreyfus/HolteAndTalleyMLDPy
baab854ef955664437f04fdc7de100dcc894bbda
[ "MIT" ]
null
null
null
holteandtalley/test/matToJson.py
garrettdreyfus/HolteAndTalleyMLDPy
baab854ef955664437f04fdc7de100dcc894bbda
[ "MIT" ]
3
2020-06-21T23:22:19.000Z
2022-03-07T05:11:14.000Z
from scipy.io import loadmat import pickle mldinfo =loadmat('mldinfo.mat')["mldinfo"] out={} print(mldinfo) for i in mldinfo: line={} line["floatNumber"] = i[0] line["cycleNumber"] = i[26] line["tempMLTFIT"] = i[27] line["tempMLTFITIndex"] = i[28] line["densityMLTFIT"] = i[30] line["salinity...
25.481481
42
0.604651
93
688
4.473118
0.526882
0.009615
0.033654
0
0
0
0
0
0
0
0
0.048649
0.193314
688
26
43
26.461538
0.700901
0
0
0
0
0
0.298399
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
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
0
0
0
0
0
0
0
1
0
f19839bccee38959af0b437965974c79d3cf702f
1,578
py
Python
natlas-server/natlas-db.py
purplesecops/natlas
74edd7ba9b5c265ec06dfdb3f7ee0b38751e5ef8
[ "Apache-2.0" ]
500
2018-09-27T17:28:11.000Z
2022-03-30T02:05:57.000Z
natlas-server/natlas-db.py
purplesecops/natlas
74edd7ba9b5c265ec06dfdb3f7ee0b38751e5ef8
[ "Apache-2.0" ]
888
2018-09-20T05:04:46.000Z
2022-03-28T04:11:22.000Z
natlas-server/natlas-db.py
purplesecops/natlas
74edd7ba9b5c265ec06dfdb3f7ee0b38751e5ef8
[ "Apache-2.0" ]
79
2019-02-13T19:49:21.000Z
2022-02-27T16:39:04.000Z
#!/usr/bin/env python """ This is a special app instance that allows us to perform database operations without going through the app's migration_needed check. Running this script is functionally equivalent to what `flask db` normally does. The reason we can't continue to use that is that command is that...
33.574468
135
0.716096
214
1,578
5.149533
0.53271
0.019964
0.045372
0.034483
0
0
0
0
0
0
0
0
0.207224
1,578
46
136
34.304348
0.880895
0.280101
0
0.133333
0
0.066667
0.349638
0
0
0
0
0
0
1
0.033333
false
0
0.133333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f19909329b0b6001c89ab80ab88194f8528fba3b
4,368
py
Python
ontask/action/forms/crud.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
33
2017-12-02T04:09:24.000Z
2021-11-07T08:41:57.000Z
ontask/action/forms/crud.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
189
2017-11-16T04:06:29.000Z
2022-03-11T23:35:59.000Z
ontask/action/forms/crud.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
30
2017-11-30T03:35:44.000Z
2022-01-31T03:08:08.000Z
# -*- coding: utf-8 -*- """Forms to process action related fields. ActionUpdateForm: Basic form to process the name/description of an action ActionForm: Inherits from Basic to process name, description and type ActionDescriptionForm: Inherits from basic but process only description (for surveys) FilterForm: Fo...
29.315436
78
0.63576
513
4,368
5.259259
0.311891
0.026686
0.04003
0.016679
0.130838
0.110823
0.064122
0.064122
0.034841
0.034841
0
0.001844
0.255266
4,368
148
79
29.513514
0.827544
0.24794
0
0.233766
0
0
0.125938
0
0
0
0
0
0
1
0.064935
false
0
0.116883
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f199cbd96d64f014fd31d99a8774f29dfb8baff8
3,400
py
Python
apps/events/tests/admin_tests.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
32
2017-02-22T13:38:38.000Z
2022-03-31T23:29:54.000Z
apps/events/tests/admin_tests.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
694
2017-02-15T23:09:52.000Z
2022-03-31T23:16:07.000Z
apps/events/tests/admin_tests.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
35
2017-09-02T21:13:09.000Z
2022-02-21T11:30:30.000Z
from django.contrib.auth.models import Group from django.test import TestCase from django.urls import reverse, reverse_lazy from django_dynamic_fixture import G from apps.authentication.models import OnlineUser from ..constants import EventType from ..models import Event from .utils import ( add_event_permissions...
33.009709
83
0.746471
452
3,400
5.287611
0.188053
0.037657
0.060251
0.075314
0.58159
0.509623
0.351883
0.351883
0.337657
0.333891
0
0.0074
0.165294
3,400
102
84
33.333333
0.834743
0.021471
0
0.2
0
0
0.038195
0.029173
0
0
0
0
0.123077
1
0.2
false
0
0.123077
0.046154
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f19aa91679864846081cef43f5707f10afbe079f
9,380
py
Python
instagram.py
Breizhux/picture-dl
3e2bfa590097db56d3326a4aa36d0dd37c1bacc3
[ "Unlicense" ]
null
null
null
instagram.py
Breizhux/picture-dl
3e2bfa590097db56d3326a4aa36d0dd37c1bacc3
[ "Unlicense" ]
2
2019-09-06T12:19:18.000Z
2019-09-06T15:21:36.000Z
instagram.py
Breizhux/picture-dl
3e2bfa590097db56d3326a4aa36d0dd37c1bacc3
[ "Unlicense" ]
null
null
null
# coding: utf-8 import urllib2 import message_box from ast import literal_eval class InfoExtractor(): """ Extractor Information class for Instagram Instagram InfoExtractor that, given url, extract information about the image (or images) the URL refers to. This information includes the real image URL,...
50.430108
133
0.615032
1,074
9,380
5.128492
0.17784
0.052288
0.117647
0.026688
0.598039
0.537582
0.509078
0.455338
0.377269
0.350218
0
0.004322
0.260021
9,380
185
134
50.702703
0.789223
0.173774
0
0.475862
0
0.006897
0.224769
0.061265
0
0
0
0
0
1
0.062069
false
0
0.02069
0
0.158621
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1a479eb0ca5a8f8bbec21a491ef98b110500e1b
1,584
py
Python
python/qisrc/test/test_qisrc_foreach.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qisrc/test/test_qisrc_foreach.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qisrc/test/test_qisrc_foreach.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the COPYING file. def test_qisrc_foreach(qisrc_action, record_messages): worktree = qisrc_action.worktree worktree.create_project("not_in_git") git_worktree...
40.615385
77
0.709596
226
1,584
4.69469
0.292035
0.171536
0.118756
0.090481
0.538172
0.538172
0.427898
0.348728
0.295947
0.214892
0
0.007369
0.143308
1,584
38
78
41.684211
0.774503
0.101641
0
0.172414
0
0
0.187456
0
0
0
0
0
0.275862
1
0.103448
false
0
0
0
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1ad55c7e2b9846cac3302cc84dc78c54a2ce31b
3,562
py
Python
coursework/src/highscore.py
SpeedoDevo/G51FSE
bf5e203d936965e254eff1efa0b74edc368a6cda
[ "MIT" ]
null
null
null
coursework/src/highscore.py
SpeedoDevo/G51FSE
bf5e203d936965e254eff1efa0b74edc368a6cda
[ "MIT" ]
null
null
null
coursework/src/highscore.py
SpeedoDevo/G51FSE
bf5e203d936965e254eff1efa0b74edc368a6cda
[ "MIT" ]
null
null
null
import pygame import sys import collections # for ordered dict import pickle # for saving and loading highscores from constants import (SCREEN_WIDTH, SCREEN_HEIGHT, RED, GREEN, GREY, BLACK, WHITE) # class that shows, saves and loads highscores class ScoreTable(pygame.sprite.Sprite): # passing in bg so that it's ne...
37.893617
168
0.588433
470
3,562
4.42766
0.410638
0.034599
0.024027
0.021624
0.061028
0.028352
0.019702
0.019702
0
0
0
0.02707
0.294778
3,562
94
169
37.893617
0.801354
0.201572
0
0.03125
0
0
0.042169
0
0
0
0
0
0
1
0.140625
false
0
0.078125
0.015625
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1b0c5d59ac79b7bc53e1a8befc59467c9a655ae
3,188
py
Python
judge/download.py
tokusumi/judge-cli
e6883ba55dc37e8ca2f328105a4df57b0b3145ba
[ "MIT" ]
null
null
null
judge/download.py
tokusumi/judge-cli
e6883ba55dc37e8ca2f328105a4df57b0b3145ba
[ "MIT" ]
6
2021-04-04T06:19:30.000Z
2021-09-18T16:48:41.000Z
judge/download.py
tokusumi/judge-cli
e6883ba55dc37e8ca2f328105a4df57b0b3145ba
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Optional, Tuple import typer from onlinejudge import utils from pydantic.networks import HttpUrl from pydantic.types import DirectoryPath from judge.schema import JudgeConfig from judge.tools.download import DownloadArgs, LoginForm, SaveArgs from judge.tools.download import...
30.653846
88
0.631117
383
3,188
5.154047
0.334204
0.033435
0.032928
0.048126
0.285714
0.159574
0.159574
0.159574
0.140831
0.140831
0
0.001279
0.264115
3,188
103
89
30.951456
0.840153
0.081556
0
0.223684
0
0
0.114986
0.008287
0
0
0
0
0
1
0.026316
false
0.026316
0.131579
0
0.223684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1b7cdef9de310ce5a7fb0146da43f000e1ce55f
18,861
py
Python
gitflow/context.py
abacusresearch/gitflow
81ea7f5d468f9b128cd593f62972f13352bd3a63
[ "MIT" ]
null
null
null
gitflow/context.py
abacusresearch/gitflow
81ea7f5d468f9b128cd593f62972f13352bd3a63
[ "MIT" ]
null
null
null
gitflow/context.py
abacusresearch/gitflow
81ea7f5d468f9b128cd593f62972f13352bd3a63
[ "MIT" ]
null
null
null
import atexit import os import re import shutil from enum import Enum from typing import List, Optional import collections from gitflow import cli, const, repotools, _, utils from gitflow.common import Result from gitflow.const import VersioningScheme from gitflow.properties import PropertyIO from gitflow.repotools i...
38.64959
117
0.564233
1,893
18,861
5.367142
0.151083
0.035827
0.022047
0.031496
0.31624
0.246752
0.204921
0.189961
0.142323
0.106201
0
0.000731
0.34733
18,861
487
118
38.728953
0.824614
0.030433
0
0.194444
0
0
0.063499
0.014713
0
0
0
0.002053
0
1
0.055556
false
0.002778
0.036111
0.022222
0.263889
0.019444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1b87ee915b0b88ddd9829337e7a6f4316b55ca5
705
py
Python
LeetCode/1219_Path_with_Maximum_Gold/main.py
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
1
2020-07-08T23:16:19.000Z
2020-07-08T23:16:19.000Z
LeetCode/1219_Path_with_Maximum_Gold/main.py
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
1
2020-05-16T03:12:24.000Z
2020-05-16T03:14:42.000Z
LeetCode/1219_Path_with_Maximum_Gold/main.py
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
2
2020-05-16T03:25:16.000Z
2021-02-10T16:51:25.000Z
class Solution: def __init__(self): self.m = 0 self.n = 0 def dfs(self, y, x, grid) -> int: if y < 0 or y >= self.m or x < 0 or x >= self.n or grid[y][x] == 0: return 0 res = 0 tmpGrid = grid[y][x] grid[y][x] = 0 for y_, x_ in ((y, x - 1),...
32.045455
85
0.453901
120
705
2.6
0.233333
0.064103
0.096154
0.044872
0
0
0
0
0
0
0
0.029613
0.377305
705
22
86
32.045455
0.681093
0
0
0
0
0
0
0
0
0
0
0
0
1
0.157895
false
0
0
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1b884785bf603bff438ce57a6af789de6bc8891
2,307
py
Python
test/test_modify_contact.py
peruana80/python_training
0070bdc07b22d80594c029984c9967e56ba51951
[ "Apache-2.0" ]
null
null
null
test/test_modify_contact.py
peruana80/python_training
0070bdc07b22d80594c029984c9967e56ba51951
[ "Apache-2.0" ]
null
null
null
test/test_modify_contact.py
peruana80/python_training
0070bdc07b22d80594c029984c9967e56ba51951
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact from random import randrange def test_modify_contact_name(app, db, check_ui): if len(db.get_group_list()) == 0: app.contact.create(Contact(firstname="test")) old_contacts = db.get_contact_list() index = randrange(len(old_contacts)) contact = Contact(first_name...
56.268293
186
0.702211
292
2,307
5.263699
0.25
0.08458
0.063761
0.068315
0.514639
0.444372
0.405335
0.405335
0.382563
0.382563
0
0.009534
0.181621
2,307
41
187
56.268293
0.804555
0.306025
0
0.095238
0
0
0.231108
0.050378
0
0
0
0
0.142857
1
0.047619
false
0
0.095238
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1b8db0ca9074a5d55378aaf5be9d198fcaa6a0b
734
py
Python
base.py
oknalv/linky
78fba19946e2212b10f3d1a5b27c7d9329556290
[ "MIT" ]
null
null
null
base.py
oknalv/linky
78fba19946e2212b10f3d1a5b27c7d9329556290
[ "MIT" ]
null
null
null
base.py
oknalv/linky
78fba19946e2212b10f3d1a5b27c7d9329556290
[ "MIT" ]
null
null
null
import webapp2 from webapp2_extras import sessions class BaseHandler(webapp2.RequestHandler): def dispatch(self): self.session_store = sessions.get_store(request=self.request) try: webapp2.RequestHandler.dispatch(self) finally: self.session_store.save_sessions(self.r...
29.36
69
0.647139
85
734
5.447059
0.364706
0.190065
0.103672
0.136069
0.151188
0.151188
0.151188
0
0
0
0
0.008961
0.239782
734
25
70
29.36
0.820789
0
0
0.1
0
0
0.034014
0
0
0
0
0
0
1
0.2
false
0
0.1
0.05
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1b9ea9a68748f5299174c8b988d634a02fb6fda
6,999
py
Python
tests/test_helpers.py
albertoalcolea/dbhelpers
c65f77a750cf46874ae7b5b0e6d4930e9df729af
[ "Apache-2.0" ]
2
2015-10-31T20:36:22.000Z
2021-10-05T12:08:10.000Z
tests/test_helpers.py
albertoalcolea/dbhelpers
c65f77a750cf46874ae7b5b0e6d4930e9df729af
[ "Apache-2.0" ]
null
null
null
tests/test_helpers.py
albertoalcolea/dbhelpers
c65f77a750cf46874ae7b5b0e6d4930e9df729af
[ "Apache-2.0" ]
null
null
null
import unittest try: from unittest.mock import Mock, call except ImportError: from mock import Mock, call from dbhelpers import cm_cursor, fetchiter, fetchone_nt, fetchmany_nt, fetchall_nt, fetchiter_nt class HelpersTestCase(unittest.TestCase): def test_cm_cursor(self): """ Creates a cont...
38.456044
96
0.570796
841
6,999
4.526754
0.117717
0.161545
0.085106
0.059102
0.711321
0.635671
0.563961
0.515629
0.462832
0.401103
0
0.036431
0.3019
6,999
181
97
38.668508
0.742734
0.043863
0
0.531469
0
0
0.039369
0
0
0
0
0
0.377622
1
0.055944
false
0
0.034965
0
0.097902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1be0f593e7493f91a2f96246f4cf8a9df42b366
1,367
py
Python
electrumsv_sdk/builtin_components/electrumsv_server/local_tools.py
electrumsv/electrumsv-sdk
2d4b9474b2e2fc5518bba10684c5d5130ffb6328
[ "OML" ]
4
2020-07-06T12:13:14.000Z
2021-07-29T12:45:27.000Z
electrumsv_sdk/builtin_components/electrumsv_server/local_tools.py
electrumsv/electrumsv-sdk
2d4b9474b2e2fc5518bba10684c5d5130ffb6328
[ "OML" ]
62
2020-07-04T04:50:27.000Z
2021-08-19T21:06:10.000Z
electrumsv_sdk/builtin_components/electrumsv_server/local_tools.py
electrumsv/electrumsv-sdk
2d4b9474b2e2fc5518bba10684c5d5130ffb6328
[ "OML" ]
3
2021-01-21T09:22:45.000Z
2021-06-12T10:16:03.000Z
import logging import typing from electrumsv_sdk.utils import get_directory_name COMPONENT_NAME = get_directory_name(__file__) logger = logging.getLogger(COMPONENT_NAME) if typing.TYPE_CHECKING: from .electrumsv_server import Plugin class LocalTools: """helper for operating on plugin-specific state (like...
34.175
96
0.686906
168
1,367
5.261905
0.357143
0.091629
0.117647
0.126697
0.311086
0.311086
0.278281
0.154977
0
0
0
0.002825
0.223116
1,367
39
97
35.051282
0.829567
0.060717
0
0
0
0
0.096244
0
0
0
0
0
0.034483
1
0.068966
false
0
0.137931
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1be97cb28ba644933394a127fc92f299492f132
4,955
py
Python
cluster/core/include/python/http_parser.py
JarryShaw/broapt
5a6253af862cb618718d8fad69343a23ef2ac9e4
[ "BSD-3-Clause" ]
3
2020-04-25T08:47:55.000Z
2020-11-04T11:18:21.000Z
cluster/core/include/python/http_parser.py
JarryShaw/broapt
5a6253af862cb618718d8fad69343a23ef2ac9e4
[ "BSD-3-Clause" ]
11
2020-06-15T16:28:15.000Z
2021-11-29T17:11:07.000Z
source/include/python/http_parser.py
JarryShaw/broapt
5a6253af862cb618718d8fad69343a23ef2ac9e4
[ "BSD-3-Clause" ]
3
2019-07-24T02:41:37.000Z
2021-12-06T09:38:58.000Z
# -*- coding: utf-8 -*- # pylint: disable=all import base64 import binascii import contextlib import math import os import textwrap import time import urllib.parse from const import LOGS_PATH from logparser import parse from utils import is_nan, print_file # from utils import IPAddressJSONEncoder, is_nan, print_file ...
30.030303
128
0.594147
673
4,955
4.20951
0.210996
0.049418
0.038828
0.045182
0.340275
0.300741
0.261207
0.203318
0.203318
0.17155
0
0.007998
0.242987
4,955
164
129
30.213415
0.747267
0.134208
0
0.019608
0
0.019608
0.171368
0.070287
0
0
0
0
0
1
0.078431
false
0
0.107843
0
0.284314
0.107843
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0