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
6ab4adb92969b15eb2c974889f086f66aef842c0
3,351
py
Python
tb_plugin/torch_tb_profiler/profiler/trace.py
azhou-determined/kineto
46ed0ce917c1515db29c39cd87b0c5430f5be94e
[ "BSD-3-Clause" ]
null
null
null
tb_plugin/torch_tb_profiler/profiler/trace.py
azhou-determined/kineto
46ed0ce917c1515db29c39cd87b0c5430f5be94e
[ "BSD-3-Clause" ]
null
null
null
tb_plugin/torch_tb_profiler/profiler/trace.py
azhou-determined/kineto
46ed0ce917c1515db29c39cd87b0c5430f5be94e
[ "BSD-3-Clause" ]
2
2021-08-12T08:00:41.000Z
2021-08-20T03:41:03.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # -------------------------------------------------------------------------- from enum import IntEnum from .. import utils __all__ = ["EventTypes", "create_event"] logger = utils.ge...
27.925
122
0.578036
386
3,351
4.873057
0.297927
0.042531
0.052632
0.038278
0.164274
0.109516
0.082935
0.0521
0.0521
0.0521
0
0.001608
0.257535
3,351
119
123
28.159664
0.754421
0.087437
0
0.217391
0
0
0.098296
0
0
0
0
0
0
1
0.141304
false
0
0.021739
0.043478
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab4b36734b64370a49309c3224c455e6990233d
59,130
gyp
Python
base/base.gyp
eval1749/elang
5208b386ba3a3e866a5c0f0271280f79f9aac8c4
[ "Apache-2.0" ]
1
2018-01-27T22:40:53.000Z
2018-01-27T22:40:53.000Z
base/base.gyp
eval1749/elang
5208b386ba3a3e866a5c0f0271280f79f9aac8c4
[ "Apache-2.0" ]
1
2016-01-29T00:54:49.000Z
2016-01-29T00:54:49.000Z
base/base.gyp
eval1749/elang
5208b386ba3a3e866a5c0f0271280f79f9aac8c4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'includes': [ '../build/win_precompile.gypi', 'base.gypi', ], 'targets': [ { 'tar...
34.278261
96
0.532589
5,706
59,130
5.189975
0.13074
0.079692
0.014655
0.015499
0.505504
0.35159
0.271561
0.21608
0.189741
0.151415
0
0.007295
0.327668
59,130
1,724
97
34.298144
0.737618
0.074142
0
0.494788
0
0
0.557471
0.406606
0
0
0
0.00058
0
1
0
true
0
0.001226
0
0.001226
0.002452
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
6ab5293b9595b159942c1bb0c1e2bfcef5e08aec
1,029
py
Python
solutions/PE4.py
KerimovEmil/ProjectEuler
bc9cb682181c1ac7889ee57c36d32beae7b441a8
[ "MIT" ]
1
2022-01-22T19:48:44.000Z
2022-01-22T19:48:44.000Z
solutions/PE4.py
KerimovEmil/ProjectEuler
bc9cb682181c1ac7889ee57c36d32beae7b441a8
[ "MIT" ]
null
null
null
solutions/PE4.py
KerimovEmil/ProjectEuler
bc9cb682181c1ac7889ee57c36d32beae7b441a8
[ "MIT" ]
null
null
null
""" PROBLEM A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. ANSWER: 906609 Solve time ~ 0.760 seconds """ from itertools import product import unittest fro...
21.4375
114
0.640428
144
1,029
4.458333
0.493056
0.042056
0.062305
0.074766
0.133956
0.133956
0.133956
0.133956
0.133956
0
0
0.050781
0.253644
1,029
47
115
21.893617
0.783854
0.252673
0
0
0
0
0.010512
0
0
0
0
0
0.041667
1
0.208333
false
0
0.125
0.041667
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
6ab57006541d451df413f174cce8e16652508bf7
1,399
py
Python
indexclient/parsers/info.py
uc-cdis/indexclient
5d61bdb2cb9c0104f173d7bba43d92449a093c6d
[ "Apache-2.0" ]
2
2020-02-19T15:52:13.000Z
2021-10-30T12:06:22.000Z
indexclient/parsers/info.py
uc-cdis/indexclient
5d61bdb2cb9c0104f173d7bba43d92449a093c6d
[ "Apache-2.0" ]
20
2017-11-30T18:15:53.000Z
2021-08-20T16:14:17.000Z
indexclient/parsers/info.py
uc-cdis/indexclient
5d61bdb2cb9c0104f173d7bba43d92449a093c6d
[ "Apache-2.0" ]
1
2019-01-31T21:07:50.000Z
2019-01-31T21:07:50.000Z
import sys import json import logging import argparse import warnings import requests from indexclient import errors # DEPRECATED 11/2019 -- interacts with old `/alias/` endpoint. # For creating aliases for indexd records, prefer using # the `add_alias` function, which interacts with the new # `/index/{GUID}/aliase...
25.436364
76
0.653324
170
1,399
5.317647
0.482353
0.043142
0.039823
0.04646
0.331858
0.331858
0.247788
0.247788
0.247788
0.247788
0
0.005613
0.235883
1,399
54
77
25.907407
0.840037
0.182273
0
0.060606
0
0
0.253153
0.020721
0
0
0
0
0
1
0.060606
false
0
0.212121
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab5f637fa16cf262bdd8660fa9b73c3bc7980b2
1,151
py
Python
email-worker-compose/app/sender.py
guilhermebc/docker-playground
e614c314ed2f5ab54835a8c45b4b3eec1ac4c57b
[ "MIT" ]
1
2019-08-31T11:03:33.000Z
2019-08-31T11:03:33.000Z
email-worker-compose/app/sender.py
guilhermebc/docker-playground
e614c314ed2f5ab54835a8c45b4b3eec1ac4c57b
[ "MIT" ]
6
2020-09-07T03:12:42.000Z
2022-03-02T05:25:57.000Z
email-worker-compose/app/sender.py
guilhermebc/docker-playground
e614c314ed2f5ab54835a8c45b4b3eec1ac4c57b
[ "MIT" ]
null
null
null
import psycopg2 import redis import json from bottle import Bottle, request class Sender(Bottle): def __init__(self): super().__init__() self.route('/', method='POST', callback=self.send) self.fila = redis.StrictRedis(host='queue', port=6379, db=0) DSN = 'dbname=email_sender user=p...
30.289474
70
0.617724
135
1,151
5.125926
0.488889
0.151734
0.043353
0
0
0
0
0
0
0
0
0.017162
0.24066
1,151
38
71
30.289474
0.7746
0
0
0
0
0
0.186632
0
0
0
0
0
0
1
0.1
false
0
0.133333
0
0.3
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab5f90a0a47ff5a1e41ea47789a04eed55d4b77
8,949
py
Python
tests/ximpl.py
zsimic/sandbox
3d1571ca723d1a5e80ddecae0ad912160334fee9
[ "MIT" ]
null
null
null
tests/ximpl.py
zsimic/sandbox
3d1571ca723d1a5e80ddecae0ad912160334fee9
[ "MIT" ]
null
null
null
tests/ximpl.py
zsimic/sandbox
3d1571ca723d1a5e80ddecae0ad912160334fee9
[ "MIT" ]
null
null
null
import click import poyo import ruamel.yaml import runez import strictyaml import yaml as pyyaml from zyaml import load_path, load_string, tokens_from_path, tokens_from_string from zyaml.marshal import decode, default_marshal, represented_scalar from . import TestSettings class ImplementationCollection(object): ...
30.233108
124
0.598391
1,018
8,949
5.094303
0.193517
0.030852
0.026996
0.038565
0.251253
0.183186
0.110875
0.055534
0.02931
0.02931
0
0.003341
0.297575
8,949
295
125
30.335593
0.821667
0.026707
0
0.18932
0
0
0.044473
0
0
0
0
0
0.009709
1
0.160194
false
0.024272
0.043689
0.063107
0.436893
0.014563
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab606d6bade1bb254f8ee2b1905c9d3d07e2051
11,447
py
Python
ai_analysis.py
kwangilkimkenny/chatbot_seq2seq_flask
f2f3bda9311c5f2930aebc8ae4a6497597b190e1
[ "MIT" ]
null
null
null
ai_analysis.py
kwangilkimkenny/chatbot_seq2seq_flask
f2f3bda9311c5f2930aebc8ae4a6497597b190e1
[ "MIT" ]
null
null
null
ai_analysis.py
kwangilkimkenny/chatbot_seq2seq_flask
f2f3bda9311c5f2930aebc8ae4a6497597b190e1
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import re import pickle # plotting import seaborn as sns import matplotlib.pyplot as plt # Tune learning_rate from numpy import loadtxt from xgboost import XGBClassifier from sklearn.model_selection import GridSearchCV from sklearn.model_selection import Stratifie...
41.625455
3,675
0.653621
1,750
11,447
4.194286
0.326857
0.006812
0.00327
0.007084
0.107493
0.070845
0.06049
0.053951
0.053951
0.053951
0
0.011976
0.241373
11,447
275
3,676
41.625455
0.833026
0.451909
0
0.042553
0
0.007092
0.111929
0.024987
0
0
0
0
0
1
0.035461
false
0
0.156028
0.007092
0.22695
0.070922
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6ab6c4226f6262d47cafb69a5403744916d50994
17,464
py
Python
mummi_ras/online/aa/aa_get_tiltrot_z_state.py
mummi-framework/mummi-ras
7f4522aad36661e4530e39c830ab8c2a6f134060
[ "MIT" ]
4
2021-11-16T07:16:36.000Z
2022-02-16T23:33:46.000Z
mummi_ras/online/aa/aa_get_tiltrot_z_state.py
mummi-framework/mummi-ras
7f4522aad36661e4530e39c830ab8c2a6f134060
[ "MIT" ]
1
2021-11-23T20:23:28.000Z
2021-12-03T09:08:34.000Z
mummi_ras/online/aa/aa_get_tiltrot_z_state.py
mummi-framework/mummi-ras
7f4522aad36661e4530e39c830ab8c2a6f134060
[ "MIT" ]
2
2021-11-23T19:54:59.000Z
2022-02-16T23:32:17.000Z
############################################################################### # @todo add Pilot2-splash-app disclaimer ############################################################################### """ Get's KRAS states """ import MDAnalysis as mda from MDAnalysis.analysis import align from MDAnalysis.lib.mdamath ...
47.072776
173
0.57129
2,476
17,464
3.874394
0.173667
0.026269
0.030022
0.03784
0.450328
0.377254
0.333472
0.303346
0.279266
0.237048
0
0.030961
0.243587
17,464
370
174
47.2
0.695231
0.398477
0
0.183333
0
0
0.061358
0.003379
0
0
0
0.008108
0
1
0.022222
false
0
0.055556
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab82df482a2f9c96080ef85619210a77bdeb9a0
3,676
py
Python
homeassistant/components/switch/hikvisioncam.py
maddox/home-assistant
6624cfefd6ea81b559085779173b91a3dc6bd349
[ "MIT" ]
1
2015-09-13T21:10:09.000Z
2015-09-13T21:10:09.000Z
homeassistant/components/switch/hikvisioncam.py
michaelarnauts/home-assistant
7d905e6c0c99a4454de26d63af0581b454f01ca1
[ "MIT" ]
null
null
null
homeassistant/components/switch/hikvisioncam.py
michaelarnauts/home-assistant
7d905e6c0c99a4454de26d63af0581b454f01ca1
[ "MIT" ]
1
2020-05-07T08:48:36.000Z
2020-05-07T08:48:36.000Z
""" homeassistant.components.switch.hikvision ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support turning on/off motion detection on Hikvision cameras. Note: Currently works using default https port only. CGI API Guide: http://bit.ly/1RuyUuF Configuration: To use the Hikvision motion detection switch you will need to...
27.029412
76
0.681991
447
3,676
5.454139
0.317673
0.067678
0.026251
0.016407
0.108285
0.021329
0.021329
0
0
0
0
0.010094
0.218444
3,676
135
77
27.22963
0.838496
0.322905
0
0.145161
0
0
0.108409
0
0
0
0
0
0
1
0.145161
false
0.048387
0.129032
0
0.403226
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab942559c3b1955ee240520738d5bee4d16cc10
5,689
py
Python
src/richie/apps/search/filter_definitions/mixins.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
null
null
null
src/richie/apps/search/filter_definitions/mixins.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
null
null
null
src/richie/apps/search/filter_definitions/mixins.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
null
null
null
"""Define mixins to easily compose custom FilterDefinition classes.""" class TermsQueryMixin: """A mixin for filter definitions that need to apply term queries.""" def get_query_fragment(self, data): """Build the query fragments as term queries for each selected value.""" value_list = data.ge...
41.830882
97
0.4746
542
5,689
4.904059
0.289668
0.024078
0.013544
0.022573
0.434537
0.415726
0.36757
0.341986
0.341986
0.295711
0
0.005041
0.442081
5,689
135
98
42.140741
0.832388
0.51749
0
0.296296
0
0
0.039132
0
0
0
0
0
0
1
0.074074
false
0
0
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
6ab9a4f6d4ca5cd5f443cec5fb87c6e2f96318a3
12,830
py
Python
electrumsv/gui/qt/receive_view.py
AustEcon/electrumsv
db924efc69f091f39e7d02e7f2d7a71350f4e6af
[ "MIT" ]
1
2019-07-04T03:35:32.000Z
2019-07-04T03:35:32.000Z
electrumsv/gui/qt/receive_view.py
AustEcon/electrumsv
db924efc69f091f39e7d02e7f2d7a71350f4e6af
[ "MIT" ]
null
null
null
electrumsv/gui/qt/receive_view.py
AustEcon/electrumsv
db924efc69f091f39e7d02e7f2d7a71350f4e6af
[ "MIT" ]
null
null
null
from typing import List, Optional, TYPE_CHECKING import weakref from PyQt5.QtCore import QEvent, Qt from PyQt5.QtWidgets import (QComboBox, QGridLayout, QGroupBox, QHBoxLayout, QLabel, QLineEdit, QVBoxLayout, QWidget) from electrumsv.app_state import app_state from electrumsv.bitcoin import script_template_to_str...
41.928105
98
0.676695
1,584
12,830
5.128157
0.183712
0.063646
0.025114
0.025606
0.236366
0.14342
0.117075
0.093808
0.054167
0.042103
0
0.006231
0.237023
12,830
305
99
42.065574
0.823577
0.028995
0
0.122449
0
0
0.078394
0.00257
0
0
0
0
0
1
0.089796
false
0
0.077551
0.008163
0.212245
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab9d713b15cf7e2722180a91c20d945c012ee0e
514
py
Python
test/crossrunner/compat.py
BluechipSystems/thrift
c595aa18cba0032e074f9585aa2d6ca548f07197
[ "Apache-2.0" ]
null
null
null
test/crossrunner/compat.py
BluechipSystems/thrift
c595aa18cba0032e074f9585aa2d6ca548f07197
[ "Apache-2.0" ]
null
null
null
test/crossrunner/compat.py
BluechipSystems/thrift
c595aa18cba0032e074f9585aa2d6ca548f07197
[ "Apache-2.0" ]
null
null
null
import os import sys if sys.version_info[0] == 2: _ENCODE = sys.getfilesystemencoding() def path_join(*args): bin_args = map(lambda a: a.decode(_ENCODE), args) return os.path.join(*bin_args).encode(_ENCODE) def str_join(s, l): bin_args = map(lambda a: a.decode(_ENCODE), l) b = s.decode(_ENCODE)...
20.56
53
0.678988
81
514
4.098765
0.358025
0.096386
0.060241
0.096386
0.319277
0.180723
0.180723
0.180723
0
0
0
0.004773
0.184825
514
24
54
21.416667
0.78759
0
0
0
0
0
0.013619
0
0
0
0
0
0
1
0.176471
false
0
0.117647
0.058824
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aba555a9c95d6e5cd6afe857fa51108b432e61a
1,518
py
Python
test/test_vom.py
usamaahmadkhan/vpp
cece3e682f6dba68ba86b66b295f99a33496d9ee
[ "Apache-2.0" ]
null
null
null
test/test_vom.py
usamaahmadkhan/vpp
cece3e682f6dba68ba86b66b295f99a33496d9ee
[ "Apache-2.0" ]
null
null
null
test/test_vom.py
usamaahmadkhan/vpp
cece3e682f6dba68ba86b66b295f99a33496d9ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ VAPI test """ import unittest import os import signal from framework import VppTestCase, running_extended_tests, \ VppTestRunner, Worker @unittest.skipUnless(running_extended_tests(), "part of extended tests") class VOMTestCase(VppTestCase): """ VPP Object Model Test """ def te...
33
75
0.590909
171
1,518
5.116959
0.502924
0.054857
0.045714
0.043429
0.082286
0.082286
0.082286
0.082286
0
0
0
0.003788
0.304348
1,518
45
76
33.733333
0.824811
0.04809
0
0.057143
0
0
0.187237
0.018233
0
0
0
0
0.057143
1
0.028571
false
0
0.114286
0
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6abaa4631fe046cd2892f35a91bca62bc7f0f887
3,096
py
Python
locations/spiders/tesco.py
bealbrown/allhours
f750ee7644246a97bd16879f14115d7845f76b89
[ "MIT" ]
null
null
null
locations/spiders/tesco.py
bealbrown/allhours
f750ee7644246a97bd16879f14115d7845f76b89
[ "MIT" ]
null
null
null
locations/spiders/tesco.py
bealbrown/allhours
f750ee7644246a97bd16879f14115d7845f76b89
[ "MIT" ]
null
null
null
import json import re import scrapy from locations.hourstudy import inputoutput DAYS = { 'mo': 'Mo', 'tu': 'Tu', 'we': 'We', 'fr': 'Fr', 'th': 'Th', 'sa': 'Sa', 'su': 'Su', } class TescoSpider(scrapy.Spider): name = "tesco" allowed_domains = ["tescolocation.api.tesco.com"] def st...
38.222222
257
0.549096
323
3,096
5.188854
0.473684
0.077566
0.047733
0.048329
0.084726
0.029833
0
0
0
0
0
0.031929
0.271641
3,096
80
258
38.7
0.711308
0.010013
0
0
0
0.015152
0.33998
0.026806
0
0
0
0
0
1
0.045455
false
0
0.060606
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
6abb4495b3d52a4655573442ecead7d8db0e2301
12,883
py
Python
astropy/table/serialize.py
tacaswell/astropy
75046e61916da36dffe87ddf59a7c6bfb00de81c
[ "BSD-3-Clause" ]
1
2019-10-05T18:20:27.000Z
2019-10-05T18:20:27.000Z
astropy/table/serialize.py
tacaswell/astropy
75046e61916da36dffe87ddf59a7c6bfb00de81c
[ "BSD-3-Clause" ]
null
null
null
astropy/table/serialize.py
tacaswell/astropy
75046e61916da36dffe87ddf59a7c6bfb00de81c
[ "BSD-3-Clause" ]
null
null
null
from importlib import import_module import re from copy import deepcopy from collections import OrderedDict from astropy.utils.data_info import MixinInfo from .column import Column from .table import Table, QTable, has_info_class from astropy.units.quantity import QuantityInfo __construct_mixin_classes = ('astropy.t...
41.028662
87
0.645579
1,735
12,883
4.637464
0.214409
0.02784
0.007954
0.006214
0.111733
0.072458
0.070346
0.049963
0.0348
0.024111
0
0.00855
0.264612
12,883
313
88
41.159744
0.840722
0.468292
0
0.080882
0
0
0.090362
0.066924
0
0
0
0
0
1
0.058824
false
0.007353
0.066176
0.014706
0.198529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6abe0f56148406c214bae2a7180acf428b205f37
1,914
py
Python
UVa 573 - The Snail/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 573 - The Snail/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 573 - The Snail/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
''' Created on Jun 18, 2013 @author: Yubin Bai All rights reserved. ''' import time from multiprocessing.pool import Pool parallelSolve = False infinity = 1 << 30 def solve(par): H, U, D, F = par day = 0 amountRise = U currH = 0 while True: amountRise = U * (1 - 0.01 * F * day) ...
24.538462
78
0.527168
236
1,914
4.224576
0.355932
0.032096
0.048144
0.064193
0.238716
0.218656
0.164493
0.164493
0.164493
0.164493
0
0.037618
0.333333
1,914
77
79
24.857143
0.74373
0.03396
0
0.20339
0
0
0.068441
0
0
0
0
0
0
1
0.101695
false
0
0.033898
0
0.186441
0.033898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6abe9ac6695fe5a1d34b503ad56c8e41374a9ea6
5,074
py
Python
scibert/models/text_classifier.py
tomhoper/scibert
3cc65f433808f7879c973dc4fc41bd25e465dc15
[ "Apache-2.0" ]
1,143
2019-03-27T01:49:11.000Z
2022-03-24T10:43:47.000Z
scibert/models/text_classifier.py
tomhoper/scibert
3cc65f433808f7879c973dc4fc41bd25e465dc15
[ "Apache-2.0" ]
91
2019-03-27T17:20:27.000Z
2022-03-29T09:29:58.000Z
scibert/models/text_classifier.py
tomhoper/scibert
3cc65f433808f7879c973dc4fc41bd25e465dc15
[ "Apache-2.0" ]
206
2019-03-28T02:22:30.000Z
2022-03-30T07:07:05.000Z
from typing import Dict, Optional, List, Any import torch import torch.nn.functional as F from allennlp.data import Vocabulary from allennlp.models.model import Model from allennlp.modules import FeedForward, TextFieldEmbedder, Seq2SeqEncoder from allennlp.nn import InitializerApplicator, RegularizerApplicator from al...
40.919355
120
0.653331
579
5,074
5.518135
0.278066
0.022535
0.026604
0.028169
0.162128
0.080125
0.080125
0.064476
0.064476
0.037559
0
0.008225
0.257194
5,074
123
121
41.252033
0.83948
0.204769
0
0.078947
0
0
0.022135
0
0
0
0
0
0
1
0.052632
false
0
0.131579
0
0.236842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6abec40d890d6b8f05f738693cce2c79127a8924
4,716
py
Python
plugins/template/tasks.py
crotwell/cmd2
5ce3a64e41258b6a694ad45bb1c604be53a1e974
[ "MIT" ]
469
2016-02-16T16:18:48.000Z
2022-03-31T15:24:40.000Z
plugins/template/tasks.py
crotwell/cmd2
5ce3a64e41258b6a694ad45bb1c604be53a1e974
[ "MIT" ]
1,076
2016-02-19T02:50:47.000Z
2022-03-22T03:08:06.000Z
plugins/template/tasks.py
crotwell/cmd2
5ce3a64e41258b6a694ad45bb1c604be53a1e974
[ "MIT" ]
138
2016-02-19T02:46:23.000Z
2022-03-30T13:13:01.000Z
# # -*- coding: utf-8 -*- """Development related tasks to be run with 'invoke'""" import os import pathlib import shutil import invoke TASK_ROOT = pathlib.Path(__file__).resolve().parent TASK_ROOT_STR = str(TASK_ROOT) # shared function def rmrf(items, verbose=True): """Silently remove a list of directories or ...
23.231527
87
0.671968
617
4,716
4.993517
0.249595
0.04544
0.033755
0.05258
0.253489
0.185654
0.04544
0.022071
0
0
0
0.00105
0.192112
4,716
202
88
23.346535
0.807612
0.293681
0
0.195652
0
0
0.133831
0.027078
0
0
0
0
0
1
0.130435
false
0.021739
0.043478
0
0.173913
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6abef106632056c480a54511ff7725bfc1193a55
4,116
py
Python
scripts/automation/trex_control_plane/interactive/trex/examples/stl/ndr_plugin.py
timgates42/trex-core
efe94752fcb2d0734c83d4877afe92a3dbf8eccd
[ "Apache-2.0" ]
956
2015-06-24T15:04:55.000Z
2022-03-30T06:25:04.000Z
scripts/automation/trex_control_plane/interactive/trex/examples/stl/ndr_plugin.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
782
2015-09-20T15:19:00.000Z
2022-03-31T23:52:05.000Z
scripts/automation/trex_control_plane/interactive/trex/examples/stl/ndr_plugin.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
429
2015-06-27T19:34:21.000Z
2022-03-23T11:02:51.000Z
import stl_path class MyNDRPlugin(): def __init__(self): pass def pre_iteration(self, finding_max_rate, run_results=None, **kwargs): """ Function ran before each iteration. :parameters: finding_max_rate: boolean Indicates whether we are running ...
35.482759
196
0.557337
486
4,116
4.58642
0.292181
0.017945
0.025123
0.052041
0.71153
0.71153
0.679228
0.64603
0.608345
0.57694
0
0.003259
0.403547
4,116
116
197
35.482759
0.904684
0.749028
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.363636
false
0.181818
0.090909
0.090909
0.727273
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
6abf04d8aaa93e623f487cf9322ec9b114c31f92
2,590
py
Python
homeassistant/components/epsonworkforce/sensor.py
maexono/home-assistant
c174b83f5408124fc7834e8282969a1e8f9cca16
[ "Apache-2.0" ]
2
2019-12-30T14:12:33.000Z
2021-07-05T10:33:08.000Z
homeassistant/components/epsonworkforce/sensor.py
maexono/home-assistant
c174b83f5408124fc7834e8282969a1e8f9cca16
[ "Apache-2.0" ]
2
2022-01-13T04:00:03.000Z
2022-03-12T01:02:40.000Z
homeassistant/components/epsonworkforce/sensor.py
maexono/home-assistant
c174b83f5408124fc7834e8282969a1e8f9cca16
[ "Apache-2.0" ]
3
2019-04-28T16:35:45.000Z
2020-05-28T15:21:59.000Z
"""Support for Epson Workforce Printer.""" from datetime import timedelta import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_HOST, CONF_MONITORED_CONDITIONS from homeassistant.exceptions import PlatformNotReady import homeassistant....
30.116279
71
0.679151
302
2,590
5.655629
0.384106
0.088993
0.040398
0.043911
0
0
0
0
0
0
0
0.003872
0.202317
2,590
85
72
30.470588
0.822846
0.146332
0
0.089286
0
0
0.079167
0
0
0
0
0
0
1
0.142857
false
0
0.160714
0
0.410714
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6abf99810278b3e6bb4dfbe19a2991c6db839dec
19,661
py
Python
bot/exts/help_channels/_cog.py
bast0006/bot
dec9a9dba77aa4322f9dc37b6493a8410e7482ec
[ "MIT", "BSD-3-Clause" ]
null
null
null
bot/exts/help_channels/_cog.py
bast0006/bot
dec9a9dba77aa4322f9dc37b6493a8410e7482ec
[ "MIT", "BSD-3-Clause" ]
null
null
null
bot/exts/help_channels/_cog.py
bast0006/bot
dec9a9dba77aa4322f9dc37b6493a8410e7482ec
[ "MIT", "BSD-3-Clause" ]
null
null
null
import asyncio import logging import random import typing as t from datetime import datetime, timezone from operator import attrgetter import discord import discord.abc from discord.ext import commands from bot import constants from bot.bot import Bot from bot.exts.help_channels import _caches, _channel, _cooldown, _...
42.010684
120
0.670363
2,540
19,661
5.055118
0.159843
0.017523
0.013707
0.00662
0.195016
0.125389
0.08053
0.047196
0.039252
0.039252
0
0.000743
0.247088
19,661
467
121
42.100642
0.866649
0.15869
0
0.123552
0
0.007722
0.181683
0.008811
0
0
0
0
0
1
0.011583
false
0.003861
0.050193
0
0.111969
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac05bd39a70de6163a586a9ee9a2b3649ee2eef
16,516
py
Python
code/menu/screens/shopmenu.py
LordZagreus/LodeRunner
68aab36be47cabe31e52f3ee43520bdafcdf3c95
[ "MIT" ]
1
2017-10-31T22:26:22.000Z
2017-10-31T22:26:22.000Z
code/menu/screens/shopmenu.py
team-sparrow/LodeRunner
68aab36be47cabe31e52f3ee43520bdafcdf3c95
[ "MIT" ]
2
2019-07-05T03:17:18.000Z
2019-07-08T16:15:29.000Z
code/menu/screens/shopmenu.py
team-sparrow/LodeRunner
68aab36be47cabe31e52f3ee43520bdafcdf3c95
[ "MIT" ]
1
2020-10-15T09:03:20.000Z
2020-10-15T09:03:20.000Z
import os import math import random import time from code.menu.menu import Menu from code.tools.eventqueue import EventQueue from code.tools.xml import XMLParser from code.utils.common import coalesce, intersect, offset_rect, log, log2, xml_encode, xml_decode, translate_rgb_to_string from code.constants.common i...
31.339658
233
0.60069
1,928
16,516
4.946058
0.194502
0.039534
0.039639
0.035445
0.356544
0.27716
0.256292
0.221791
0.205852
0.171456
0
0.001921
0.306491
16,516
526
234
31.39924
0.830627
0.273311
0
0.261062
0
0
0.075
0.010101
0
0
0
0
0
1
0.039823
false
0
0.048673
0
0.128319
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac069f3cef035db6da504010b64c5c2110dea99
3,665
py
Python
lib/bridgedb/runner.py
liudonghua123/bridgedb
94dd10673f9e6650e8a00e162f348e64f7a1ecab
[ "BSD-3-Clause-Clear" ]
null
null
null
lib/bridgedb/runner.py
liudonghua123/bridgedb
94dd10673f9e6650e8a00e162f348e64f7a1ecab
[ "BSD-3-Clause-Clear" ]
null
null
null
lib/bridgedb/runner.py
liudonghua123/bridgedb
94dd10673f9e6650e8a00e162f348e64f7a1ecab
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8 ; test-case-name: bridgedb.test.test_runner -*- # # This file is part of BridgeDB, a Tor bridge distribution system. # # :authors: Isis Lovecruft 0xA3ADB67A2CDB8B35 <isis@torproject.org> # please also see AUTHORS file # :copyright: (c) 2007-2015, The Tor Project, Inc. # (c) 200...
33.318182
79
0.661937
452
3,665
5.34292
0.477876
0.016149
0.007453
0
0
0
0
0
0
0
0
0.013965
0.257572
3,665
109
80
33.623853
0.873576
0.53397
0
0
0
0
0.110261
0
0
0
0
0
0
1
0.066667
false
0
0.177778
0
0.311111
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
6ac1a5f132a19c0dca01d22ddfd3613255dba8b5
4,258
py
Python
wce_triage/ops/create_image_runner.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
3
2019-07-25T03:24:23.000Z
2021-06-23T14:01:34.000Z
wce_triage/ops/create_image_runner.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
1
2019-12-20T16:04:19.000Z
2019-12-20T16:04:19.000Z
wce_triage/ops/create_image_runner.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
2
2019-07-25T03:24:26.000Z
2021-02-14T05:27:11.000Z
#!/usr/bin/env python3 # # Create disk image # import re, sys, traceback from .tasks import task_fetch_partitions, task_refresh_partitions, task_mount, task_remove_persistent_rules, task_remove_logs, task_fsck, task_shrink_partition, task_expand_partition, task_unmount from .partclone_tasks import task_create_disk_im...
35.190083
196
0.711837
593
4,258
4.903879
0.284992
0.079436
0.067056
0.071871
0.237276
0.18088
0.162311
0.162311
0.149243
0.134801
0
0.003726
0.180601
4,258
120
197
35.483333
0.829751
0.155707
0
0.27381
0
0
0.142457
0
0
0
0
0.008333
0
1
0.02381
false
0.130952
0.107143
0
0.142857
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6ac297a5895de04303f5fe688063a599cff885d4
4,053
py
Python
batch_processing_dataflow/play_store_flow.py
KeeplerIO/meetup-hands-on-gcp-2019
3674922d89d2be8984eb5719f0faaae127823ab4
[ "MIT" ]
1
2019-04-03T17:47:04.000Z
2019-04-03T17:47:04.000Z
batch_processing_dataflow/play_store_flow.py
KeeplerIO/meetup-hands-on-gcp-2019
3674922d89d2be8984eb5719f0faaae127823ab4
[ "MIT" ]
2
2020-08-10T10:52:57.000Z
2022-01-22T04:18:42.000Z
batch_processing_dataflow/play_store_flow.py
KeeplerIO/meetup-hands-on-gcp-2019
3674922d89d2be8984eb5719f0faaae127823ab4
[ "MIT" ]
null
null
null
import argparse import logging import apache_beam as beam from apache_beam.io import WriteToBigQuery from apache_beam.io import ReadFromText, WriteToText from apache_beam.options.pipeline_options import PipelineOptions class ProcessCSV(beam.DoFn): def process(self, element, *args, **kwargs): import csv ...
42.663158
116
0.593881
406
4,053
5.729064
0.334975
0.068788
0.018057
0.013758
0.104041
0.059329
0.033534
0.033534
0
0
0
0.008895
0.278806
4,053
94
117
43.117021
0.786863
0.012583
0
0.054054
0
0
0.174718
0.043805
0
0
0
0
0
1
0.054054
false
0
0.121622
0
0.27027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac30849631c3b7df115a92dba1c94f0bb05ed26
4,259
py
Python
backend/main/server/resources/Message.py
Manotomo-Alliance-Support-Squad/WWS
3df21a3f715eeb3b57314bf08c38f2239b2ba399
[ "MIT" ]
null
null
null
backend/main/server/resources/Message.py
Manotomo-Alliance-Support-Squad/WWS
3df21a3f715eeb3b57314bf08c38f2239b2ba399
[ "MIT" ]
20
2021-03-15T20:30:35.000Z
2021-06-02T19:16:55.000Z
backend/main/server/resources/Message.py
Manotomo-Alliance-Support-Squad/WWS
3df21a3f715eeb3b57314bf08c38f2239b2ba399
[ "MIT" ]
null
null
null
from flask import request from flask_jwt import jwt_required from flask_restful import Resource from main.server import app, cache, db from main.server.models import Message, MessageSchema messages_schema = MessageSchema(many=True) message_schema = MessageSchema() @app.after_request def add_header(response): r...
35.789916
182
0.621273
487
4,259
5.373717
0.250513
0.073366
0.048911
0.047765
0.42415
0.281238
0.265189
0.235384
0.205579
0.172717
0
0.01885
0.240197
4,259
118
183
36.09322
0.789864
0.061047
0
0.333333
0
0.012821
0.214322
0.051437
0
0
0
0
0
1
0.089744
false
0
0.064103
0
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac3173f834c06ec5469554b76a1d8e391432cee
5,171
py
Python
demos/chicken_pasta/chicken_pasta.py
icaros-usc/wecook
27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc
[ "BSD-3-Clause" ]
15
2019-09-15T05:24:19.000Z
2021-02-26T20:31:19.000Z
demos/chicken_pasta/chicken_pasta.py
icaros-usc/wecook
27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc
[ "BSD-3-Clause" ]
16
2019-10-10T23:27:00.000Z
2020-05-14T02:30:56.000Z
demos/chicken_pasta/chicken_pasta.py
icaros-usc/wecook
27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc
[ "BSD-3-Clause" ]
2
2020-02-01T16:31:29.000Z
2020-04-07T21:00:04.000Z
#!/usr/bin/env python3 import rospy from wecook.msg import ActionMsg, TaskMsg, SceneMsg, ObjectMsg, ContainingMsg, AgentMsg def talker(): pub = rospy.Publisher('WeCookDispatch', TaskMsg, queue_size=10) rospy.init_node('wecook_chicken_pasta', anonymous=True) scene_msg = SceneMsg([ObjectMsg('wall0', ...
55.010638
98
0.375169
482
5,171
3.927386
0.242739
0.058109
0.049128
0.243001
0.58056
0.349709
0.303222
0.231379
0.156366
0
0
0.11743
0.47631
5,171
93
99
55.602151
0.58161
0.010056
0
0.097561
0
0
0.243502
0.197772
0
0
0
0
0
1
0.012195
false
0.012195
0.02439
0
0.036585
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6ac35d88701fa7c3171d4b1e9eb134859f289cd2
5,380
py
Python
volttron/platform/vip/agent/subsystems/heartbeat.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
null
null
null
volttron/platform/vip/agent/subsystems/heartbeat.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
null
null
null
volttron/platform/vip/agent/subsystems/heartbeat.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2017, Battelle Memorial Institute. # # 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...
34.487179
86
0.666729
669
5,380
5.301943
0.38864
0.019735
0.025374
0.028193
0.113617
0.081195
0.0468
0.024246
0
0
0
0.005987
0.254833
5,380
155
87
34.709677
0.878773
0.429368
0
0.242857
0
0
0.046647
0.00984
0
0
0
0
0
1
0.142857
false
0.014286
0.114286
0
0.271429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac367d8d5ec9f368f230df751f19e5799e20bdd
18,984
py
Python
datasets/experimental/ni_superalloys/Ni_superalloy.py
kyawlin/smlb
79c757d7fc040fb30ad44410be158b3ce3bdf30d
[ "Apache-2.0" ]
null
null
null
datasets/experimental/ni_superalloys/Ni_superalloy.py
kyawlin/smlb
79c757d7fc040fb30ad44410be158b3ce3bdf30d
[ "Apache-2.0" ]
null
null
null
datasets/experimental/ni_superalloys/Ni_superalloy.py
kyawlin/smlb
79c757d7fc040fb30ad44410be158b3ce3bdf30d
[ "Apache-2.0" ]
null
null
null
"""Ni-Superalloy dataset. Scientific Machine Learning Benchmark A benchmark of regression models in chem- and materials informatics. 2019, Brendan Folie, Citrine Informatics. See class NiSuperalloyDataset for details. """ import os import json import zipfile from typing import List, Optional, Tuple, Union import nu...
40.650964
99
0.629794
2,284
18,984
5.073555
0.171629
0.04263
0.014498
0.021747
0.346911
0.313687
0.292458
0.253193
0.189506
0.177339
0
0.011178
0.29783
18,984
466
100
40.738197
0.85814
0.372314
0
0.178862
0
0
0.115858
0.006523
0
0
0
0
0.020325
1
0.056911
false
0
0.03252
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
6ac3c0aa131a8fbf4b061367a8fbb2e23790a4c8
3,777
py
Python
metricbeat/module/postgresql/test_postgresql.py
SHolzhauer/beats
39679a536a22e8a0d7534a2475504488909d19fd
[ "ECL-2.0", "Apache-2.0" ]
4
2020-11-17T06:29:30.000Z
2021-08-08T11:56:01.000Z
metricbeat/module/postgresql/test_postgresql.py
SHolzhauer/beats
39679a536a22e8a0d7534a2475504488909d19fd
[ "ECL-2.0", "Apache-2.0" ]
36
2021-02-02T14:18:40.000Z
2022-03-20T15:07:30.000Z
metricbeat/module/postgresql/test_postgresql.py
SHolzhauer/beats
39679a536a22e8a0d7534a2475504488909d19fd
[ "ECL-2.0", "Apache-2.0" ]
6
2021-03-10T05:38:32.000Z
2021-08-16T13:11:19.000Z
import metricbeat import os import pytest import sys import unittest class Test(metricbeat.BaseTest): COMPOSE_SERVICES = ['postgresql'] def common_checks(self, output): # Ensure no errors or warnings exist in the log. self.assert_no_logged_warnings() for evt in output: t...
32.843478
76
0.581943
380
3,777
5.626316
0.247368
0.028064
0.084191
0.064546
0.697381
0.623012
0.579046
0.579046
0.579046
0.579046
0
0.00224
0.290707
3,777
114
77
33.131579
0.795819
0.041038
0
0.556818
0
0
0.182432
0.008164
0
0
0
0
0.170455
1
0.056818
false
0.079545
0.056818
0
0.147727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6ac43cedb06c0b3488172628809f67d3f8c8275d
2,520
py
Python
pytorch_lightning/accelerators/cpu_backend.py
ozen/pytorch-lightning
3b0b402d30fa19e0fef7d150c30ff4bb14a64230
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/accelerators/cpu_backend.py
ozen/pytorch-lightning
3b0b402d30fa19e0fef7d150c30ff4bb14a64230
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/accelerators/cpu_backend.py
ozen/pytorch-lightning
3b0b402d30fa19e0fef7d150c30ff4bb14a64230
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
34.520548
99
0.681746
317
2,520
5.305994
0.413249
0.098098
0.0761
0.078478
0.300238
0.268728
0.268728
0.167658
0.167658
0.167658
0
0.00209
0.240476
2,520
72
100
35
0.876698
0.284524
0
0.461538
0
0
0.029164
0
0
0
0
0
0
1
0.153846
false
0
0.102564
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
6ac4859e41ada58d0b49c47a334602416d451187
219
py
Python
books/admin.py
aurphillus/Django-Library-Completed
f46e45f85c888e7694323e22f6e966c291a4a0be
[ "MIT" ]
null
null
null
books/admin.py
aurphillus/Django-Library-Completed
f46e45f85c888e7694323e22f6e966c291a4a0be
[ "MIT" ]
null
null
null
books/admin.py
aurphillus/Django-Library-Completed
f46e45f85c888e7694323e22f6e966c291a4a0be
[ "MIT" ]
null
null
null
from django.contrib import admin from books.models import Genre, Author, Book, TBR # Register your models here. admin.site.register(Genre) admin.site.register(Author) admin.site.register(Book) admin.site.register(TBR)
24.333333
49
0.799087
33
219
5.30303
0.454545
0.205714
0.388571
0
0
0
0
0
0
0
0
0
0.09589
219
9
50
24.333333
0.883838
0.118721
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
6ac4ca9b00a8492410dc6166ad36ac8d64fdcffc
2,337
py
Python
rabbitmq/tests/common.py
jfmyers9/integrations-core
8793c784f1d5b2c9541b2dd4214dd91584793ced
[ "BSD-3-Clause" ]
1
2021-03-24T13:00:14.000Z
2021-03-24T13:00:14.000Z
rabbitmq/tests/common.py
jfmyers9/integrations-core
8793c784f1d5b2c9541b2dd4214dd91584793ced
[ "BSD-3-Clause" ]
null
null
null
rabbitmq/tests/common.py
jfmyers9/integrations-core
8793c784f1d5b2c9541b2dd4214dd91584793ced
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os from packaging import version from datadog_checks.base.utils.common import get_docker_hostname HERE = os.path.dirname(os.path.abspath(__file__)) ROOT = os.path.dirname(os.path.dirname(HERE)) ...
23.606061
64
0.618314
291
2,337
4.694158
0.323024
0.023426
0.070278
0.076135
0.489751
0.418009
0.418009
0.418009
0.418009
0.418009
0
0.027749
0.182713
2,337
98
65
23.846939
0.687435
0.046213
0
0.341772
0
0
0.402247
0.011236
0
0
0
0
0
1
0
false
0.088608
0.037975
0
0.037975
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6ac4e4fc48c67f3dafab5b728a225aa95eec15e2
7,668
py
Python
st2common/st2common/util/pack.py
timgates42/st2
0e8ae756f30ffe2e017c64bff67830abdee7f7c9
[ "Apache-2.0" ]
null
null
null
st2common/st2common/util/pack.py
timgates42/st2
0e8ae756f30ffe2e017c64bff67830abdee7f7c9
[ "Apache-2.0" ]
15
2021-02-11T22:58:54.000Z
2021-08-06T18:03:47.000Z
st2common/st2common/util/pack.py
timgates42/st2
0e8ae756f30ffe2e017c64bff67830abdee7f7c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, 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 ...
36.514286
100
0.666275
1,013
7,668
4.860809
0.27542
0.022746
0.019903
0.025589
0.139115
0.095857
0.075955
0.075955
0.045085
0.045085
0
0.008607
0.257564
7,668
209
101
36.688995
0.856315
0.276865
0
0.056075
0
0
0.221292
0.028476
0
0
0
0
0
1
0.065421
false
0
0.121495
0
0.261682
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac55faf90a367de65f30a569842061f13204e0c
2,952
py
Python
module1-introduction-to-sql/query.py
jrslagle/DS-Unit-3-Sprint-2-SQL-and-Databases
8a6b3fd14b6a6833ee3a14b2d8a7db3bee494a14
[ "MIT" ]
null
null
null
module1-introduction-to-sql/query.py
jrslagle/DS-Unit-3-Sprint-2-SQL-and-Databases
8a6b3fd14b6a6833ee3a14b2d8a7db3bee494a14
[ "MIT" ]
null
null
null
module1-introduction-to-sql/query.py
jrslagle/DS-Unit-3-Sprint-2-SQL-and-Databases
8a6b3fd14b6a6833ee3a14b2d8a7db3bee494a14
[ "MIT" ]
null
null
null
# Look at the charactercreator_character table # GET_CHARACTERS = """ # SELECT * # FROM charactercreator_character; # """ # How many total Characters are there? (302) TOTAL_CHARACTERS = """ SELECT COUNT(*) as number_of_characters FROM charactercreator_character; """ # How many of each specific subclass? # TOTAL_SUBC...
28.941176
120
0.774051
404
2,952
5.445545
0.195545
0.109091
0.079545
0.084545
0.530455
0.464091
0.430909
0.337727
0.308636
0.265909
0
0.009827
0.138211
2,952
101
121
29.227723
0.854953
0.300474
0
0.328358
0
0
0.882353
0.267647
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6ac65f8d4a911234497385069b667c9dd2f68934
21,364
py
Python
pixelproject/grid.py
MickaelRigault/pixelproject
d98db99a8e69eafa7a979c02a099e4c07f5fd568
[ "Apache-2.0" ]
null
null
null
pixelproject/grid.py
MickaelRigault/pixelproject
d98db99a8e69eafa7a979c02a099e4c07f5fd568
[ "Apache-2.0" ]
null
null
null
pixelproject/grid.py
MickaelRigault/pixelproject
d98db99a8e69eafa7a979c02a099e4c07f5fd568
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # import warnings import numpy as np UNIT_SQUARE = np.asarray([[0,0],[0,1],[1,1],[1,0]])-0.5 from propobject import BaseObject from shapely import geometry import pandas import geopandas # ======================= # # # # Functions # # ...
35.08046
145
0.550178
2,326
21,364
4.94196
0.155632
0.031057
0.014876
0.009134
0.165811
0.114485
0.10274
0.071596
0.063941
0.063941
0
0.005833
0.325969
21,364
608
146
35.138158
0.792431
0.252294
0
0.181818
0
0.006993
0.100605
0.002789
0
0
0
0
0.006993
1
0.13986
false
0
0.041958
0.006993
0.335664
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac66c22ad3d5b81a13742eecef45d93fd664ee6
31,445
py
Python
numpy/lib/format.py
AnirudhDagar/numpy
77bc3225e6f4badf83190ec300a0e10e56949644
[ "BSD-3-Clause" ]
5
2021-08-23T06:23:15.000Z
2022-02-05T07:27:30.000Z
numpy/lib/format.py
AnirudhDagar/numpy
77bc3225e6f4badf83190ec300a0e10e56949644
[ "BSD-3-Clause" ]
75
2021-07-12T01:28:50.000Z
2022-03-28T20:09:00.000Z
numpy/lib/format.py
AnirudhDagar/numpy
77bc3225e6f4badf83190ec300a0e10e56949644
[ "BSD-3-Clause" ]
1
2019-11-05T15:23:08.000Z
2019-11-05T15:23:08.000Z
""" Binary serialization NPY format ========== A simple format for saving numpy arrays to disk with the full information about them. The ``.npy`` format is the standard binary file format in NumPy for persisting a *single* arbitrary NumPy array on disk. The format stores all of the shape and dtype information necess...
34.21654
87
0.641437
4,430
31,445
4.488713
0.16298
0.008549
0.006336
0.006688
0.224793
0.186724
0.16173
0.151974
0.147448
0.135479
0
0.011151
0.272794
31,445
918
88
34.253813
0.858442
0.558181
0
0.215873
0
0.003175
0.118329
0
0
0
0
0
0.003175
1
0.063492
false
0.012698
0.028571
0
0.165079
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac6979dc72c67c44ef423ebf8b3a34cc0b6d4cc
539
py
Python
gva/data/validator/is_valid_enum.py
gva-jjoyce/gva_data
cda990d0abb4b175025aaf16e75192bd9cc213af
[ "Apache-2.0" ]
null
null
null
gva/data/validator/is_valid_enum.py
gva-jjoyce/gva_data
cda990d0abb4b175025aaf16e75192bd9cc213af
[ "Apache-2.0" ]
24
2020-12-24T12:21:42.000Z
2021-01-28T14:22:38.000Z
gva/data/validator/is_valid_enum.py
gva-jjoyce/gva_data
cda990d0abb4b175025aaf16e75192bd9cc213af
[ "Apache-2.0" ]
null
null
null
""" Enumerator Test """ from typing import Any class is_valid_enum(): """ Test if a variable is on a list of valid values """ __slots__ = ('symbols') def __init__(self, **kwargs): """ -> "type": "enum", "symbols": ["up", "down"] symbols: list of allowed values (case sensit...
22.458333
56
0.569573
65
539
4.446154
0.584615
0.103806
0
0
0
0
0
0
0
0
0
0
0.283859
539
24
57
22.458333
0.748705
0.293135
0
0
0
0
0.10061
0
0
0
0
0
0
1
0.333333
false
0
0.111111
0.222222
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
6ac7d878414c23d75e260d1c447ced1efb264340
2,420
py
Python
events_page/app.py
los-verdes/lv-event-pagenerator
88416b626ff2dca6e2d71fa60bff4823954b3131
[ "MIT" ]
null
null
null
events_page/app.py
los-verdes/lv-event-pagenerator
88416b626ff2dca6e2d71fa60bff4823954b3131
[ "MIT" ]
7
2022-01-16T15:36:40.000Z
2022-01-25T22:02:12.000Z
events_page/app.py
los-verdes/lv-event-pagenerator
88416b626ff2dca6e2d71fa60bff4823954b3131
[ "MIT" ]
null
null
null
#!/usr/bin/env python from zoneinfo import ZoneInfo import flask from dateutil.parser import parse from flask_assets import Bundle, Environment from logzero import logger, setup_logger from webassets.filter import get_filter from config import cfg from apis import calendar as gcal setup_logger(name=__name__) app =...
24.444444
87
0.648347
319
2,420
4.711599
0.413793
0.035928
0.033932
0.03992
0.141051
0.141051
0.086494
0.086494
0.086494
0.086494
0
0.008952
0.215289
2,420
98
88
24.693878
0.782517
0.06281
0
0.04
0
0
0.150133
0.0093
0
0
0
0.010204
0
1
0.08
false
0
0.106667
0.04
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6ac8631a21e5b850ca9b81ac1543a63108f70e71
6,090
py
Python
bin/focus_scan.py
desihub/desicmx
6f7c9a3cff25c970af57de20e3a12001382deb23
[ "BSD-3-Clause" ]
3
2019-11-15T23:17:23.000Z
2019-11-27T17:19:33.000Z
bin/focus_scan.py
desihub/desicmx
6f7c9a3cff25c970af57de20e3a12001382deb23
[ "BSD-3-Clause" ]
4
2019-12-12T03:37:32.000Z
2020-01-28T21:29:51.000Z
bin/focus_scan.py
desihub/desicmx
6f7c9a3cff25c970af57de20e3a12001382deb23
[ "BSD-3-Clause" ]
2
2019-12-20T08:21:52.000Z
2020-06-30T15:21:53.000Z
#!/usr/bin/env python import astropy.io.fits as fits import numpy as np import os import matplotlib.pyplot as plt import argparse def _fname(expid, night, basedir='/n/home/datasystems/users/ameisner/reduced/focus', ccds=False): fname = basedir + '/' + night + '/' + str(expid).zfill(...
35.614035
129
0.612315
836
6,090
4.327751
0.276316
0.021559
0.023494
0.024323
0.326423
0.30293
0.220011
0.208679
0.195412
0.158928
0
0.02575
0.228407
6,090
170
130
35.823529
0.744201
0.027915
0
0.104348
0
0
0.186475
0.069992
0
0
0
0
0.008696
1
0.043478
false
0
0.043478
0
0.104348
0.078261
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac89300a5b9e4ad6f97864631998446abb69eb0
313
py
Python
proto_3/ddq/topics/logics/topic.py
jadnohra/connect
8eb21e6f122898094447bc3d5edb3053d5a2adf2
[ "Unlicense" ]
null
null
null
proto_3/ddq/topics/logics/topic.py
jadnohra/connect
8eb21e6f122898094447bc3d5edb3053d5a2adf2
[ "Unlicense" ]
6
2021-03-19T12:06:56.000Z
2022-03-12T00:23:09.000Z
proto_3/ddq/topics/logics/topic.py
jadnohra/connect
8eb21e6f122898094447bc3d5edb3053d5a2adf2
[ "Unlicense" ]
null
null
null
from typing import List from ddq.taxonomy.reference import Reference from ddq.topics.topic import Topic class Logic(Topic): def references(self) -> List[Reference]: return [ Reference("Classical and Nonclassical Logics", [("Eric", "Schechter")]) ]
26.083333
59
0.610224
32
313
5.96875
0.65625
0.073298
0
0
0
0
0
0
0
0
0
0
0.29393
313
12
60
26.083333
0.864253
0
0
0
0
0
0.146497
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0.111111
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
6ac951af97aa3d1a0ef9e931276c0e45ff2d14cc
4,344
py
Python
pythia/utils/logger.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
2
2019-05-23T02:07:03.000Z
2019-06-08T18:56:05.000Z
pythia/utils/logger.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
null
null
null
pythia/utils/logger.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import base64 import logging import os import sys from tensorboardX import SummaryWriter from pythia.utils.distributed_utils import is_main_process from pythia.utils.general import (ckpt_name_from_core_args, foldername_from_config_ov...
34.204724
81
0.63628
540
4,344
4.874074
0.246296
0.042553
0.06459
0.027356
0.282295
0.220745
0.147036
0.072948
0.032675
0
0
0.000625
0.263352
4,344
126
82
34.47619
0.821875
0.037523
0
0.206522
0
0
0.057738
0
0
0
0
0
0
1
0.076087
false
0
0.086957
0
0.23913
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac9be98a456dcdce40e3c4f391cc313ab62f054
13,522
py
Python
sdk/python/pulumi_google_native/healthcare/v1beta1/user_data_mapping.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/healthcare/v1beta1/user_data_mapping.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/healthcare/v1beta1/user_data_mapping.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
45.837288
400
0.654859
1,582
13,522
5.326802
0.112516
0.075709
0.071437
0.060045
0.702029
0.633915
0.59523
0.565088
0.546695
0.466477
0
0.000293
0.24205
13,522
294
401
45.993197
0.821934
0.278953
0
0.362245
1
0
0.111542
0.00786
0
0
0
0
0
1
0.142857
false
0.005102
0.035714
0.020408
0.265306
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6aca7a5f520c3a19c81c989f925529d891ca4d67
661
py
Python
_doc/sphinxdoc/source/conf.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
null
null
null
_doc/sphinxdoc/source/conf.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
null
null
null
_doc/sphinxdoc/source/conf.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
null
null
null
import sys import os import sphinx_rtd_theme source_path = os.path.normpath( os.path.join( os.path.abspath( os.path.split(__file__)[0]))) try: from conf_base import * except ImportError: sys.path.append(source_path) from conf_base import * html_theme = 'sphinx_rtd_theme' html_the...
25.423077
74
0.741301
98
661
4.673469
0.428571
0.091703
0.091703
0.078603
0.152838
0.152838
0.152838
0.152838
0
0
0
0.00703
0.139183
661
25
75
26.44
0.797891
0
0
0.105263
0
0
0.151286
0
0
0
0
0
0
1
0
false
0
0.315789
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6acaa1d753027b9aa151aee9ced96ca2d15567b0
2,247
py
Python
dolfyn/adv/api.py
lkilcher/dolfyn-light
416bf6aa8a3455cebf973f416c9e4ba89a801a71
[ "Apache-2.0" ]
null
null
null
dolfyn/adv/api.py
lkilcher/dolfyn-light
416bf6aa8a3455cebf973f416c9e4ba89a801a71
[ "Apache-2.0" ]
null
null
null
dolfyn/adv/api.py
lkilcher/dolfyn-light
416bf6aa8a3455cebf973f416c9e4ba89a801a71
[ "Apache-2.0" ]
null
null
null
""" This module contains routines for reading and working with adv data. It contains: +-----------------------------------+-----------------------------------------+ | Name | Description | +===================================+====================================...
51.068182
79
0.348465
144
2,247
5.416667
0.4375
0.044872
0.046154
0.04359
0.241026
0.241026
0.241026
0.241026
0.241026
0.138462
0
0.001285
0.307076
2,247
43
80
52.255814
0.499679
0.921673
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6acb7ed968b97603aa5b744b910e0997b0f3f62d
561
py
Python
server/api/migrations/0002_auto_20201011_1053.py
ShahriarDhruvo/WebTech_Assignment2
845d198a91b1dcc8ed149362499754167fca419d
[ "MIT" ]
null
null
null
server/api/migrations/0002_auto_20201011_1053.py
ShahriarDhruvo/WebTech_Assignment2
845d198a91b1dcc8ed149362499754167fca419d
[ "MIT" ]
null
null
null
server/api/migrations/0002_auto_20201011_1053.py
ShahriarDhruvo/WebTech_Assignment2
845d198a91b1dcc8ed149362499754167fca419d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-11 10:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AlterField( model_name='task', name='author', field=m...
23.375
72
0.57041
58
561
5.448276
0.637931
0.037975
0.050633
0.063291
0.310127
0.234177
0
0
0
0
0
0.086957
0.30303
561
23
73
24.391304
0.721228
0.080214
0
0.352941
1
0
0.120623
0
0
0
0
0
0
1
0
false
0
0.058824
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6acc395ad3bfafbc612c2d532d32bbb5ce80e13f
4,123
py
Python
flink-ai-flow/lib/notification_service/notification_service/mongo_event_storage.py
lisy09/flink-ai-extended
011a5a332f7641f66086653e715d0596eab2e107
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-08-06T04:24:36.000Z
2021-08-06T04:24:36.000Z
flink-ai-flow/lib/notification_service/notification_service/mongo_event_storage.py
sentimentist/flink-ai-extended
689d000f2db8919fd80e0725a1609918ca4a26f4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
flink-ai-flow/lib/notification_service/notification_service/mongo_event_storage.py
sentimentist/flink-ai-extended
689d000f2db8919fd80e0725a1609918ca4a26f4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-05-20T02:17:11.000Z
2021-05-20T02:17:11.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
38.175926
97
0.64031
494
4,123
5.192308
0.311741
0.024561
0.026901
0.023392
0.051462
0.041326
0
0
0
0
0
0.004329
0.271647
4,123
107
98
38.53271
0.849817
0.182391
0
0.037975
0
0
0.063544
0.01253
0
0
0
0
0
1
0.101266
false
0.063291
0.101266
0
0.303797
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6acc7db3216417c3207f16b6723988768ff50b66
711
py
Python
src/unicon/plugins/confd/csp/__init__.py
tahigash/unicon.plugins
1b43a5a61244ea9312387fd855442ace37c65db9
[ "Apache-2.0" ]
1
2021-02-25T19:36:56.000Z
2021-02-25T19:36:56.000Z
src/unicon/plugins/confd/csp/__init__.py
tahigash/unicon.plugins
1b43a5a61244ea9312387fd855442ace37c65db9
[ "Apache-2.0" ]
null
null
null
src/unicon/plugins/confd/csp/__init__.py
tahigash/unicon.plugins
1b43a5a61244ea9312387fd855442ace37c65db9
[ "Apache-2.0" ]
null
null
null
__author__ = "Dave Wapstra <dwapstra@cisco.com>" from unicon.plugins.confd import ConfdServiceList, ConfdConnection, ConfdConnectionProvider from .statemachine import CspStateMachine from .settings import CspSettings from . import service_implementation as csp_svc class CspServiceList(ConfdServiceList): def __i...
28.44
91
0.759494
70
711
7.385714
0.657143
0.023211
0
0
0
0
0
0
0
0
0
0
0.168776
711
24
92
29.625
0.874788
0
0
0
0
0
0.082982
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6accba984dd52f022ed6544e1f7ad42db7180437
665
py
Python
setup.py
rrwen/search_google
e647868ba5da2803e787a3c06b32e09452068736
[ "MIT" ]
15
2017-08-24T18:44:55.000Z
2021-02-01T22:07:53.000Z
setup.py
rrwen/search_google
e647868ba5da2803e787a3c06b32e09452068736
[ "MIT" ]
5
2017-09-05T12:25:09.000Z
2021-10-18T06:45:24.000Z
setup.py
rrwen/search_google
e647868ba5da2803e787a3c06b32e09452068736
[ "MIT" ]
1
2018-02-20T13:44:44.000Z
2018-02-20T13:44:44.000Z
# -*- coding: utf-8 -*- from setuptools import setup import search_google as package def readme(): with open('README.rst') as f: return ''.join(f.readlines()[11:]) setup( name=package.__name__, version=package.__version__, description=package.__description__, long_description=readme(), author=pack...
24.62963
47
0.771429
77
665
5.844156
0.480519
0.044444
0
0
0
0
0
0
0
0
0
0.005119
0.118797
665
26
48
25.576923
0.762799
0.031579
0
0
0
0
0.015576
0
0
0
0
0
0
1
0.047619
true
0
0.095238
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
6acd5e71b7f337a2cb3ca947d7cf6d05f0a0b474
851
py
Python
setup.py
chearon/macpack
1cf6ce453dd33a811343e4bb6ee5575bc9fe919d
[ "MIT" ]
24
2016-11-14T14:09:57.000Z
2022-01-26T02:22:45.000Z
setup.py
najiji/macpack
20b518e9bc0f4e58d47c5416a686a4b246a3764d
[ "MIT" ]
5
2016-11-14T14:09:53.000Z
2019-04-18T15:49:14.000Z
setup.py
najiji/macpack
20b518e9bc0f4e58d47c5416a686a4b246a3764d
[ "MIT" ]
3
2018-01-27T15:38:46.000Z
2019-04-09T16:21:23.000Z
import setuptools import os try: import pypandoc description = pypandoc.convert('README.md', 'rst') if os.path.exists('README.md') else '' except ImportError: description = '' setuptools.setup( name = 'macpack', packages = setuptools.find_packages(), version = '1.0.3', description = 'Makes a macOS binar...
32.730769
131
0.706228
100
851
5.93
0.7
0.026981
0.047218
0.057336
0.104553
0.104553
0
0
0
0
0
0.008208
0.141011
851
25
132
34.04
0.80301
0
0
0
0
0
0.435958
0.032902
0
0
0
0
0
1
0
false
0
0.173913
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6acdf3a0dc36f1ce88eb6431d38ef46ea81f633b
1,371
py
Python
WEEK2/day5/scripts/06_NB_Challenges_Isolines.py
tizon9804/SS2017
7cb374ad21cdfeeef223ac4a65cbbf40dab22e06
[ "MIT" ]
null
null
null
WEEK2/day5/scripts/06_NB_Challenges_Isolines.py
tizon9804/SS2017
7cb374ad21cdfeeef223ac4a65cbbf40dab22e06
[ "MIT" ]
null
null
null
WEEK2/day5/scripts/06_NB_Challenges_Isolines.py
tizon9804/SS2017
7cb374ad21cdfeeef223ac4a65cbbf40dab22e06
[ "MIT" ]
null
null
null
import vtk # Read the file (to test that it was written correctly) reader = vtk.vtkXMLImageDataReader() reader.SetFileName("../data/wind_image.vti") reader.Update() print(reader.GetOutput()) # Convert the image to a polydata imageDataGeometryFilter = vtk.vtkImageDataGeometryFilter() imageDataGeometryFilter.SetInputCon...
30.466667
74
0.835157
117
1,371
9.777778
0.538462
0.026224
0
0
0
0
0
0
0
0
0
0.004677
0.064187
1,371
44
75
31.159091
0.886984
0.073669
0
0
0
0
0.024506
0.017391
0
0
0
0
0
1
0
false
0
0.032258
0
0.032258
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ace6e18f6860e091c836de50634b3a607e70811
11,303
py
Python
mbbl_envs/mbbl/env/gym_env/invertedPendulum.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
9
2022-01-16T11:27:00.000Z
2022-03-13T14:04:48.000Z
mbbl_envs/mbbl/env/gym_env/invertedPendulum.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
null
null
null
mbbl_envs/mbbl/env/gym_env/invertedPendulum.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
null
null
null
""" # ----------------------------------------------------------------------------- # @brief: # Tingwu: reset the reward function so that it's more similar to the one # defined in GYM # ----------------------------------------------------------------------------- """ import numpy as np from mbbl.config i...
35.656151
79
0.529594
1,356
11,303
4.106195
0.168879
0.055316
0.025682
0.022629
0.363865
0.244971
0.181394
0.122665
0.11153
0.104346
0
0.018529
0.345837
11,303
316
80
35.768987
0.734514
0.178714
0
0.175141
0
0
0.074819
0
0
0
0
0.003165
0.016949
1
0.073446
false
0
0.039548
0.00565
0.169492
0.00565
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad075ac74b446b2102501aae9ff9190489a4090
270
py
Python
ACME/visdom/__init__.py
mauriziokovacic/ACME
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
3
2019-10-23T23:10:55.000Z
2021-09-01T07:30:14.000Z
ACME/visdom/__init__.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
null
null
null
ACME/visdom/__init__.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
1
2020-07-11T11:35:43.000Z
2020-07-11T11:35:43.000Z
from .bar import * from .create_session import * from .image import * from .line import * from .mesh import * from .pie import * from .text import * from .VisdomFigure import * from .VisdomScene import *
27
29
0.555556
28
270
5.321429
0.428571
0.536913
0
0
0
0
0
0
0
0
0
0
0.377778
270
9
30
30
0.886905
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
6ad0bc72be93fcbf7c2b0d3f4185b26d3bfb3b1c
1,426
py
Python
web/pingpongpiweb.py
andrewdyersmith/pingpongpi
63e969468da24b2d00e86033dfcb22de75f264bc
[ "MIT" ]
null
null
null
web/pingpongpiweb.py
andrewdyersmith/pingpongpi
63e969468da24b2d00e86033dfcb22de75f264bc
[ "MIT" ]
null
null
null
web/pingpongpiweb.py
andrewdyersmith/pingpongpi
63e969468da24b2d00e86033dfcb22de75f264bc
[ "MIT" ]
null
null
null
# Ping Pong Pi web UI running on flask. # Uses zmq to speak to daemon controlling screen. from flask import Flask, render_template, appcontext_tearing_down, request from multiprocessing import Process, Queue from multiprocessing.connection import Client import atexit import time import zmq app = Flask(__name__) @ap...
22.634921
74
0.704067
191
1,426
5.062827
0.486911
0.086867
0.024819
0.057911
0
0
0
0
0
0
0
0.007608
0.170407
1,426
62
75
23
0.809806
0.059607
0
0.043478
0
0
0.096413
0
0
0
0
0
0
1
0.108696
false
0
0.130435
0.021739
0.282609
0.108696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad190f41233de2c7f9d3aa69edc83f906187598
5,171
py
Python
watcher/tests/decision_engine/strategy/strategies/test_base.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
64
2015-10-18T02:57:24.000Z
2022-01-13T11:27:51.000Z
watcher/tests/decision_engine/strategy/strategies/test_base.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
null
null
null
watcher/tests/decision_engine/strategy/strategies/test_base.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
35
2015-12-25T13:53:21.000Z
2021-07-19T15:50:16.000Z
# -*- encoding: utf-8 -*- # Copyright (c) 2019 European Organization for Nuclear Research (CERN) # # 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...
36.673759
76
0.705473
623
5,171
5.675762
0.272873
0.027998
0.046663
0.056561
0.554299
0.465215
0.413744
0.386029
0.353224
0.353224
0
0.002446
0.209244
5,171
140
77
36.935714
0.862314
0.245794
0
0.460526
0
0
0.046126
0
0
0
0
0.007143
0.065789
1
0.105263
false
0
0.092105
0
0.236842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad2141e919181f75e53ccffa43344d1aae6eea7
346
py
Python
main.py
BenG49/sudoku
e4b14655e23d04c161feb16ceb1338537f519bdb
[ "MIT" ]
null
null
null
main.py
BenG49/sudoku
e4b14655e23d04c161feb16ceb1338537f519bdb
[ "MIT" ]
null
null
null
main.py
BenG49/sudoku
e4b14655e23d04c161feb16ceb1338537f519bdb
[ "MIT" ]
null
null
null
from sudoku import Sudoku def main(): s = Sudoku.parse( ''' ------------- | |2 | | | | 6 |4 3| | | 5| 7 | ------------- | 7 | 2|8 | |51 | 4|9 | | 9| 3| | ------------- | | 9| | | 2| | 98| | 83|1 |2 | ------------- ''' ) print(s) print(s.solve()) if __name...
12.814815
26
0.297688
38
346
2.5
0.605263
0.126316
0
0
0
0
0
0
0
0
0
0.105505
0.369942
346
26
27
13.307692
0.330275
0
0
0
0
0
0.062016
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6ad243bce2bf880a6b70228da5819c87e92c557b
776
py
Python
test/test_sampler.py
pfnet-research/autogbt-alt
57f7ae1bce2923d11f73c3631e34be49c7dd25da
[ "MIT" ]
83
2019-04-01T05:45:37.000Z
2021-04-13T02:33:04.000Z
test/test_sampler.py
pfnet-research/autogbt-alt
57f7ae1bce2923d11f73c3631e34be49c7dd25da
[ "MIT" ]
null
null
null
test/test_sampler.py
pfnet-research/autogbt-alt
57f7ae1bce2923d11f73c3631e34be49c7dd25da
[ "MIT" ]
10
2019-04-15T03:15:42.000Z
2020-03-30T11:52:12.000Z
import numpy as np import pandas as pd from autogbt.sampler import MajorityUnderSampler def _test_sample(y): sampler = MajorityUnderSampler() idx = sampler.sample(y, 40000, 3.0) assert len(idx) == 40000 assert y[idx].sum() == 10000 def test_sample_with_series(): y = pd.Series(np.concatenate([np....
23.515152
73
0.640464
111
776
4.342342
0.315315
0.124481
0.114108
0.153527
0.493776
0.435685
0.153527
0.153527
0
0
0
0.108065
0.201031
776
32
74
24.25
0.669355
0
0
0.166667
0
0
0
0
0
0
0
0
0.125
1
0.166667
false
0
0.125
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad3007b95e5d17415b05151d343ee3326e45e1d
2,157
py
Python
experiment/diabetes/accuracy_info.py
leandro-santiago/bloomwisard
4c02610c4ef2d2cf8424797c8a815da182ca2383
[ "MIT" ]
2
2020-10-25T17:01:10.000Z
2020-12-04T14:26:26.000Z
experiment/diabetes/accuracy_info.py
leandro-santiago/bloomwisard
4c02610c4ef2d2cf8424797c8a815da182ca2383
[ "MIT" ]
null
null
null
experiment/diabetes/accuracy_info.py
leandro-santiago/bloomwisard
4c02610c4ef2d2cf8424797c8a815da182ca2383
[ "MIT" ]
null
null
null
import numpy as np import sys from timeit import default_timer as timer sys.path.append("../../") from core import wnn from encoding import thermometer from encoding import util #Load Diabetes data base_path = "../../dataset/diabetes/" #2/3 Test bits_encoding = 20 train_data, train_label, test_data, test_label, data...
23.445652
95
0.658785
349
2,157
3.868195
0.240688
0.047407
0.013333
0.024444
0.395556
0.34963
0.34963
0.28
0.225185
0.225185
0
0.040756
0.215114
2,157
91
96
23.703297
0.756645
0.046824
0
0.3125
0
0
0.039063
0.01123
0
0
0
0
0
0
null
null
0
0.09375
null
null
0.078125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6ad38265801ddbc75fcce3bfaba00694854f353b
690
py
Python
PyGame/pygame1/tutorial1/startercode.py
hoppfull/Legacy-Python
43f465bfdb76c91f2ac16aabb0783fdf5f459adb
[ "MIT" ]
null
null
null
PyGame/pygame1/tutorial1/startercode.py
hoppfull/Legacy-Python
43f465bfdb76c91f2ac16aabb0783fdf5f459adb
[ "MIT" ]
null
null
null
PyGame/pygame1/tutorial1/startercode.py
hoppfull/Legacy-Python
43f465bfdb76c91f2ac16aabb0783fdf5f459adb
[ "MIT" ]
null
null
null
from pygamehelper import * from pygame import * from pygame.locals import * from vec2d import * from random import uniform import numpy as np class Starter(PygameHelper): def __init__(self): self.w, self.h = 800, 600 PygameHelper.__init__(self, size=(self.w, self.h), fill=((0,0,0))) d...
22.258065
98
0.588406
90
690
4.422222
0.433333
0.100503
0.105528
0.128141
0.128141
0.128141
0.128141
0.128141
0
0
0
0.042857
0.289855
690
30
99
23
0.769388
0
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.272727
false
0.181818
0.272727
0
0.590909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
6ad3e60ef95d7e5c040fd394c92201b95875defd
1,155
py
Python
main.py
thewhiteninja/twitch-recorder
815b571e22917daa906d054a8ab2fe794e99bb8a
[ "MIT" ]
null
null
null
main.py
thewhiteninja/twitch-recorder
815b571e22917daa906d054a8ab2fe794e99bb8a
[ "MIT" ]
null
null
null
main.py
thewhiteninja/twitch-recorder
815b571e22917daa906d054a8ab2fe794e99bb8a
[ "MIT" ]
null
null
null
import glob import os import sys import utils from recorder import StreamRec OUTDIR = "" def parse_args(a): global OUTDIR i = 1 while i < len(a): if a[i] in ["-h", "--help", "/?"]: usage() if a[i] in ["-d", "--dir"]: OUTDIR = a[i + 1] i += 1 i ...
20.625
91
0.565368
158
1,155
4
0.411392
0.012658
0.012658
0.018987
0.063291
0.063291
0
0
0
0
0
0.007282
0.28658
1,155
55
92
21
0.759709
0
0
0.139535
0
0
0.204329
0
0
0
0
0
0
1
0.093023
false
0
0.116279
0
0.209302
0.186047
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad40da9c9320f7c8df4a83d064f6172f24c03ec
2,268
py
Python
karbor-1.3.0/karbor/policies/protectables.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
karbor-1.3.0/karbor/policies/protectables.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
karbor-1.3.0/karbor/policies/protectables.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright (c) 2017 Huawei Technologies Co., Ltd. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
31.068493
78
0.619489
238
2,268
5.718487
0.42437
0.044085
0.035268
0.052902
0.398971
0.314475
0.314475
0.277737
0.191036
0.191036
0
0.004963
0.289242
2,268
72
79
31.5
0.83933
0.272928
0
0.392157
0
0
0.234394
0.111383
0
0
0
0
0
1
0.019608
false
0
0.039216
0.019608
0.078431
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad42755c1900a89dea96e604b75bea9a5c3b32c
9,507
py
Python
router.example.py
unyo/uhpackage
07d0263c586e5daa0012c3ff82754be381850911
[ "BSD-3-Clause" ]
null
null
null
router.example.py
unyo/uhpackage
07d0263c586e5daa0012c3ff82754be381850911
[ "BSD-3-Clause" ]
null
null
null
router.example.py
unyo/uhpackage
07d0263c586e5daa0012c3ff82754be381850911
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # routers are dictionaries of URL routing parameters. # # For each request, the effective router is: # the built-in default base router (shown below), # updated by the BASE router in routes.py routers, # updated by the app-specific router in routes.py routers (if an...
42.632287
164
0.679289
1,293
9,507
4.91802
0.235112
0.04246
0.042931
0.062746
0.261834
0.224092
0.182419
0.161032
0.11983
0.086806
0
0.008371
0.195856
9,507
222
165
42.824324
0.823414
0.91196
0
0.142857
0
0
0.037406
0
0
0
0
0
0
1
0.071429
false
0.071429
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
6ad467fa9905c0ca84ad3c1dc298047956f35818
252
py
Python
notebooks/2018.11.09 Meeting.py
costrouc/uarray
c3c42147181a88265942ad5f9cf439467f746782
[ "BSD-3-Clause" ]
null
null
null
notebooks/2018.11.09 Meeting.py
costrouc/uarray
c3c42147181a88265942ad5f9cf439467f746782
[ "BSD-3-Clause" ]
null
null
null
notebooks/2018.11.09 Meeting.py
costrouc/uarray
c3c42147181a88265942ad5f9cf439467f746782
[ "BSD-3-Clause" ]
null
null
null
#%% from uarray.core import * #%% s = Scalar(Int(10)) #%% @operation def Always(a: T) -> CCallableUnary[T, CContent]: ... #%% register(Call(Always(w("a")), w("idx")), lambda a, idx: a) #%% a_ten = Always(s) #%% s = Sequence(Int(10), a_ten)
10.956522
58
0.559524
37
252
3.756757
0.594595
0.071942
0
0
0
0
0
0
0
0
0
0.019417
0.18254
252
22
59
11.454545
0.65534
0.047619
0
0
0
0
0.017094
0
0
0
0
0
0
1
0.125
false
0
0.125
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
6ad4fd638f3c8440ee1f4046774d447aac8466fb
2,540
py
Python
var/spack/repos/builtin/packages/py-black/package.py
dwstreetNNL/spack
8f929707147c49606d00386a10161529dad4ec56
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-black/package.py
dwstreetNNL/spack
8f929707147c49606d00386a10161529dad4ec56
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-black/package.py
dwstreetNNL/spack
8f929707147c49606d00386a10161529dad4ec56
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyBlack(PythonPackage): """Black is the uncompromising Python code formatter. By using it,...
47.924528
96
0.663386
354
2,540
4.70904
0.446328
0.086383
0.09898
0.14817
0.25135
0.238152
0.210558
0.188362
0.154769
0
0
0.115509
0.144488
2,540
52
97
48.846154
0.651634
0.250394
0
0
0
0.033333
0.446695
0.141258
0
0
0
0
0
1
0.033333
false
0
0.066667
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad54c23aea43b34f6b32a39f371e9919e5e2f64
3,772
py
Python
store/adminshop/templatetags/admin_extras.py
vallemrv/my_store_test
2da624fd02c5f1784464f15b751b488f3dd2bae6
[ "Apache-2.0" ]
null
null
null
store/adminshop/templatetags/admin_extras.py
vallemrv/my_store_test
2da624fd02c5f1784464f15b751b488f3dd2bae6
[ "Apache-2.0" ]
null
null
null
store/adminshop/templatetags/admin_extras.py
vallemrv/my_store_test
2da624fd02c5f1784464f15b751b488f3dd2bae6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Manuel Rodriguez <valle> # @Date: 27-Aug-2017 # @Email: valle.mrv@gmail.com # @Filename: admin_extras.py # @Last modified by: valle # @Last modified time: 02-Feb-2018 # @License: Apache license vesion 2.0 from django import template from django.db.models import Q try: from ...
24.980132
72
0.656946
535
3,772
4.48972
0.271028
0.110741
0.112406
0.034971
0.202748
0.162365
0.147377
0.124896
0.105745
0.046628
0
0.009539
0.194062
3,772
150
73
25.146667
0.779934
0.060445
0
0.214286
0
0
0.091655
0
0
0
0
0
0
1
0.178571
false
0
0.071429
0.089286
0.491071
0.008929
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad59b00bcc766f57088e62e448110d102b95431
17,165
py
Python
doc/tutorial/using_gpu_solution_1.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
doc/tutorial/using_gpu_solution_1.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
doc/tutorial/using_gpu_solution_1.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Aesara tutorial # Solution to Exercise in section 'Using the GPU' # 1. Raw results import numpy as np import aesara import aesara.tensor as tt aesara.config.floatX = "float32" rng = np.random N = 400 feats = 784 D = ( rng.randn(N, feats).astype(aesara.config.floatX), rng.randint...
62.192029
374
0.579435
2,707
17,165
3.629479
0.16956
0.015878
0.017812
0.029415
0.567226
0.45028
0.381069
0.344733
0.27888
0.250483
0
0.197341
0.268162
17,165
275
375
62.418182
0.584779
0.024061
0
0.075472
0
0
0.111111
0
0
0
0
0
0
1
0
false
0
0.056604
0
0.056604
0.150943
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad5dcf7e9f96dc2d1c33142dc858481b208540e
1,242
py
Python
chainercv/transforms/bbox/translate_bbox.py
souravsingh/chainercv
8f76510472bc95018c183e72f37bc6c34a89969c
[ "MIT" ]
1
2018-08-24T02:28:31.000Z
2018-08-24T02:28:31.000Z
chainercv/transforms/bbox/translate_bbox.py
souravsingh/chainercv
8f76510472bc95018c183e72f37bc6c34a89969c
[ "MIT" ]
null
null
null
chainercv/transforms/bbox/translate_bbox.py
souravsingh/chainercv
8f76510472bc95018c183e72f37bc6c34a89969c
[ "MIT" ]
2
2019-12-16T02:20:26.000Z
2022-01-17T02:00:49.000Z
def translate_bbox(bbox, y_offset=0, x_offset=0): """Translate bounding boxes. This method is mainly used together with image transforms, such as padding and cropping, which translates the left top point of the image from coordinate :math:`(0, 0)` to coordinate :math:`(y, x) = (y_{offset}, x_{offse...
37.636364
78
0.65942
190
1,242
4.210526
0.415789
0.0975
0.03
0.0525
0.2075
0.2075
0.2075
0.0775
0
0
0
0.008439
0.236715
1,242
32
79
38.8125
0.835443
0.777778
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
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
6ad9fa52c59620d080c895b1dcbcc37ef6f3e407
504
py
Python
behave/features/environment.py
ministryofjustice/cla-end-to-end-tests
3d7e525c17f38403a91087c2b1af460ca1109a9b
[ "MIT" ]
1
2022-02-09T13:12:57.000Z
2022-02-09T13:12:57.000Z
behave/features/environment.py
ministryofjustice/cla-end-to-end-tests
3d7e525c17f38403a91087c2b1af460ca1109a9b
[ "MIT" ]
3
2021-09-16T12:24:44.000Z
2022-03-08T10:21:26.000Z
behave/features/environment.py
ministryofjustice/cla-end-to-end-tests
3d7e525c17f38403a91087c2b1af460ca1109a9b
[ "MIT" ]
null
null
null
import os from configparser import ConfigParser from helper.helper_web import get_browser def before_all(context): config = ConfigParser() print((os.path.join(os.getcwd(), 'setup.cfg'))) my_file = (os.path.join(os.getcwd(), 'setup.cfg')) config.read(my_file) # Reading the browser type from the c...
28
67
0.71627
67
504
5.253731
0.462687
0.056818
0.056818
0.068182
0.147727
0.147727
0.147727
0
0
0
0
0
0.164683
504
18
68
28
0.836105
0.103175
0
0
0
0
0.079823
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.416667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ada8f8c31036f868e794a58c29dd691ac89f964
2,422
py
Python
recipe_organizer/gui/recipe_list/recipe_source.py
j-sommer/recipe-organizer
91d39e12c453ecf3d3254645b565bbceacaecde9
[ "MIT" ]
null
null
null
recipe_organizer/gui/recipe_list/recipe_source.py
j-sommer/recipe-organizer
91d39e12c453ecf3d3254645b565bbceacaecde9
[ "MIT" ]
null
null
null
recipe_organizer/gui/recipe_list/recipe_source.py
j-sommer/recipe-organizer
91d39e12c453ecf3d3254645b565bbceacaecde9
[ "MIT" ]
null
null
null
from pathlib import Path from tkinter import Frame, Label from recipe_organizer.events.event import Event, EventType from recipe_organizer.events.event_observer import EventObserver from recipe_organizer.events.event_publisher import EventPublisher from recipe_organizer.gui.interfaces.widget_container import WidgetCon...
34.112676
111
0.671346
284
2,422
5.366197
0.320423
0.052493
0.074803
0.049213
0.170604
0.081365
0.03937
0
0
0
0
0.006547
0.243187
2,422
70
112
34.6
0.824877
0
0
0.038462
0
0
0.006606
0
0
0
0
0
0
1
0.134615
false
0.019231
0.153846
0
0.403846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ada8fe0ced127e4eb158cbef0bc674aa2bd2da2
917
py
Python
var/spack/repos/builtin/packages/spot/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-05-24T15:23:12.000Z
2020-05-24T15:23:12.000Z
var/spack/repos/builtin/packages/spot/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
var/spack/repos/builtin/packages/spot/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2021-01-06T18:58:26.000Z
2021-01-06T18:58:26.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Spot(AutotoolsPackage): """Spot is a C++11 library for omega-automata manipulation and mod...
38.208333
96
0.707743
120
917
5.375
0.616667
0.018605
0.069767
0.049612
0
0
0
0
0
0
0
0.15443
0.138495
917
23
97
39.869565
0.662025
0.288986
0
0
0
0.090909
0.507862
0.201258
0
0
0
0
0
1
0
false
0
0.090909
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
6adbdd74efd4b512d8ebd0cf5926e792b5bd7772
42
py
Python
0.py
itspuneet/itspuneet
d44f78afcff275aa56f03bba738ac3e4f2c30843
[ "bzip2-1.0.6" ]
null
null
null
0.py
itspuneet/itspuneet
d44f78afcff275aa56f03bba738ac3e4f2c30843
[ "bzip2-1.0.6" ]
null
null
null
0.py
itspuneet/itspuneet
d44f78afcff275aa56f03bba738ac3e4f2c30843
[ "bzip2-1.0.6" ]
null
null
null
k=0 while k!=1: print(k) k+=1
8.4
13
0.404762
9
42
1.888889
0.555556
0.235294
0
0
0
0
0
0
0
0
0
0.12
0.404762
42
4
14
10.5
0.56
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
6adc3f2423ac6cf2c778f44e1751ae2e595e05f5
74,159
py
Python
jss_figures_replication_script.py
Cole-vJ/AdvEMDpy
160cd44b371a2c8aa66961f23062c1d7305dd728
[ "Unlicense" ]
null
null
null
jss_figures_replication_script.py
Cole-vJ/AdvEMDpy
160cd44b371a2c8aa66961f23062c1d7305dd728
[ "Unlicense" ]
null
null
null
jss_figures_replication_script.py
Cole-vJ/AdvEMDpy
160cd44b371a2c8aa66961f23062c1d7305dd728
[ "Unlicense" ]
null
null
null
# ________ # / # \ / # \ / # \/ import random import textwrap import emd_mean import AdvEMDpy import emd_basis import emd_utils import numpy as np import pandas as pd import cvxpy as cvx import seaborn as sns import matplotlib.pyplot as plt from scipy.integrate import odeint from ...
48.949835
135
0.664141
12,802
74,159
3.621856
0.043196
0.016909
0.027498
0.012768
0.784416
0.728988
0.665711
0.613152
0.567192
0.53523
0
0.065736
0.149732
74,159
1,514
136
48.982166
0.66959
0.012662
0
0.425532
0
0.007092
0.114509
0.018518
0
0
0
0
0
1
0.000788
false
0.000788
0.016548
0
0.018125
0.007092
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6adce2d4edcce50b7803e777bec26f0e2dbe1ef5
8,165
py
Python
GPT-distributed.py
wenhuchen/LogicNLG
e986516e5b6d310219215510b3fe1603d03215cd
[ "MIT" ]
141
2020-04-23T03:30:16.000Z
2022-03-19T08:36:31.000Z
GPT-distributed.py
wenhuchen/LogicNLG
e986516e5b6d310219215510b3fe1603d03215cd
[ "MIT" ]
15
2020-04-26T07:12:30.000Z
2021-06-10T16:40:35.000Z
GPT-distributed.py
wenhuchen/LogicNLG
e986516e5b6d310219215510b3fe1603d03215cd
[ "MIT" ]
20
2020-04-27T03:07:10.000Z
2022-01-22T22:13:15.000Z
import argparse import logging import torch import torch.nn.functional as F import numpy as np from torch import nn from torch.autograd import Variable from transformers import GPT2Config from transformers import GPT2LMHeadModel, GPT2Tokenizer, BertTokenizer from DataLoader import * from Model import BERTGen from utils...
47.196532
145
0.643846
1,068
8,165
4.779026
0.23221
0.04761
0.089929
0.049961
0.380486
0.330525
0.3029
0.27116
0.248824
0.239616
0
0.012314
0.23417
8,165
173
146
47.196532
0.803934
0.017759
0
0.135714
0
0
0.180095
0.012721
0
0
0
0
0
1
0.007143
false
0
0.185714
0
0.192857
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6addc56efc2458ffaaa37a8a1a9d3060123eac26
9,901
py
Python
bentoml/saved_bundle/loader.py
niits/BentoML
3954f36762e10f5df15af7e0ae6dd71f5f214261
[ "Apache-2.0" ]
3,451
2019-04-02T01:47:42.000Z
2022-03-31T16:20:49.000Z
bentoml/saved_bundle/loader.py
niits/BentoML
3954f36762e10f5df15af7e0ae6dd71f5f214261
[ "Apache-2.0" ]
1,925
2019-04-03T00:19:05.000Z
2022-03-31T22:41:54.000Z
bentoml/saved_bundle/loader.py
niits/BentoML
3954f36762e10f5df15af7e0ae6dd71f5f214261
[ "Apache-2.0" ]
451
2019-04-02T01:53:41.000Z
2022-03-29T08:49:06.000Z
# Copyright 2019 Atalaya Tech, 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, ...
35.487455
86
0.692051
1,287
9,901
5.094017
0.24087
0.089994
0.032032
0.024405
0.269372
0.202257
0.155583
0.109213
0.087401
0.087401
0
0.005518
0.23129
9,901
278
87
35.615108
0.855867
0.248965
0
0.174419
0
0
0.089266
0.009036
0
0
0
0
0
1
0.069767
false
0
0.180233
0.011628
0.319767
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6adeb529cfb4e14bdceab8619cd0e9f75dad5fb6
615
py
Python
migrations/versions/0158_remove_rate_limit_default.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0158_remove_rate_limit_default.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0158_remove_rate_limit_default.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
""" Revision ID: 0158_remove_rate_limit_default Revises: 0157_add_rate_limit_to_service Create Date: 2018-01-09 14:33:08.313893 """ import sqlalchemy as sa from alembic import op revision = "0158_remove_rate_limit_default" down_revision = "0157_add_rate_limit_to_service" def upgrade(): op.execute("ALTER TABLE ...
26.73913
82
0.785366
93
615
4.924731
0.430108
0.157205
0.122271
0.165939
0.720524
0.558952
0.388646
0.388646
0.209607
0
0
0.082552
0.133333
615
22
83
27.954545
0.776735
0.2
0
0
0
0
0.59751
0.124481
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6adecc40e2158fa98b341e37dfb8d034335bed2b
1,267
py
Python
gen-post.py
younghk/younghk.netlify.com
605ab089252127c0b768d31afb027e8896ae33b4
[ "MIT" ]
null
null
null
gen-post.py
younghk/younghk.netlify.com
605ab089252127c0b768d31afb027e8896ae33b4
[ "MIT" ]
null
null
null
gen-post.py
younghk/younghk.netlify.com
605ab089252127c0b768d31afb027e8896ae33b4
[ "MIT" ]
null
null
null
import os import errno from datetime import datetime print("Generating A New Post\n") post_name = input('Input Post Name: ') date_time = datetime.now() date_time_dir = date_time.strftime("%Y-%m-%d") date_time_post = date_time.strftime("%Y-%m-%d %H:%M:%S") p_name = post_name.replace(" ","-") p_name = p_name.replace(...
23.462963
56
0.561168
194
1,267
3.515464
0.314433
0.175953
0.102639
0.105572
0.35044
0.23607
0.080645
0.080645
0.080645
0.080645
0
0
0.195738
1,267
54
57
23.462963
0.669284
0
0
0.266667
0
0
0.235804
0.016562
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.088889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae0041ec06abb5f41acc8d9e0ad54c9727be449
39,758
py
Python
rmgpy/reactionTest.py
Lyle-zhang/RMG-Py
273eb51fa3c175562056c85d7d61814d5fa2986d
[ "MIT" ]
null
null
null
rmgpy/reactionTest.py
Lyle-zhang/RMG-Py
273eb51fa3c175562056c85d7d61814d5fa2986d
[ "MIT" ]
null
null
null
rmgpy/reactionTest.py
Lyle-zhang/RMG-Py
273eb51fa3c175562056c85d7d61814d5fa2986d
[ "MIT" ]
1
2021-08-14T13:47:18.000Z
2021-08-14T13:47:18.000Z
#!/usr/bin/env python # encoding: utf-8 -*- """ This module contains unit tests of the rmgpy.reaction module. """ import numpy import unittest from external.wip import work_in_progress from rmgpy.species import Species, TransitionState from rmgpy.reaction import Reaction from rmgpy.statmech.translation import Transl...
42.567452
208
0.566452
4,000
39,758
5.6075
0.14475
0.049844
0.018457
0.030762
0.702185
0.672893
0.657289
0.61975
0.600713
0.566295
0
0.069843
0.303159
39,758
933
209
42.613076
0.739758
0.082575
0
0.626591
0
0
0.046929
0
0
0
0
0
0.154173
1
0.048091
false
0
0.029703
0.004243
0.087694
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae016a3900fe6ed337451d458c99fc65e3be76f
888
py
Python
backend/core/api_urls.py
albeiks/omaralbeik.com
8d096130393919612863aac6280dffaf6e00961d
[ "MIT" ]
10
2020-05-05T16:20:04.000Z
2021-07-22T15:15:13.000Z
backend/core/api_urls.py
albeiks/omaralbeik.com
8d096130393919612863aac6280dffaf6e00961d
[ "MIT" ]
null
null
null
backend/core/api_urls.py
albeiks/omaralbeik.com
8d096130393919612863aac6280dffaf6e00961d
[ "MIT" ]
1
2020-05-06T22:31:48.000Z
2020-05-06T22:31:48.000Z
from django.conf.urls import url, include from core.routers import OptionalTrailingSlashRouter from blog import views as blogViews from snippets import views as snippetsViews from projects import views as projectsViews from tags import views as tagsViews from contents import views as contentsViews from contact import ...
35.52
71
0.824324
107
888
6.841122
0.411215
0.13388
0.143443
0
0
0
0
0
0
0
0
0.001245
0.095721
888
24
72
37
0.910336
0.047297
0
0
0
0
0.061611
0
0
0
0
0
0
1
0
false
0
0.421053
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6ae09675e3f04c208d0aada0fe5dc7452f3a90fa
9,402
py
Python
python/video_ADG.py
alexberndt/mobile-AGV-optimization
76b97fd5aa3898fd6cb6f74f8d87140555c92af5
[ "MIT" ]
2
2021-12-22T03:07:08.000Z
2022-03-19T09:41:29.000Z
python/video_ADG.py
alexberndt/mobile-AGV-optimization
76b97fd5aa3898fd6cb6f74f8d87140555c92af5
[ "MIT" ]
null
null
null
python/video_ADG.py
alexberndt/mobile-AGV-optimization
76b97fd5aa3898fd6cb6f74f8d87140555c92af5
[ "MIT" ]
1
2021-11-22T10:58:38.000Z
2021-11-22T10:58:38.000Z
""" closed-loop MILP solved to determine optimal ordering defined by ADG """ import sys import yaml import time import matplotlib.colors as mcolors import matplotlib import matplotlib.pyplot as plt import random import logging import time import networkx as nx import csv import statistics as stat import os import ...
40.008511
251
0.623591
1,199
9,402
4.654712
0.251043
0.057875
0.018635
0.017201
0.086364
0.0611
0.049812
0.035119
0
0
0
0.009113
0.241332
9,402
234
252
40.179487
0.773307
0.153903
0
0.073171
0
0
0.147679
0.008695
0
0
0
0
0
1
0.006098
false
0.006098
0.134146
0
0.140244
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae0b2e5802c9a882bad8e33b9afb8e9564c00ff
4,558
py
Python
tests/model/test_guest.py
bcurnow/rfid-security-svc
d3806cb74d3d0cc2623ea425230dc8781ba4d8b4
[ "Apache-2.0" ]
null
null
null
tests/model/test_guest.py
bcurnow/rfid-security-svc
d3806cb74d3d0cc2623ea425230dc8781ba4d8b4
[ "Apache-2.0" ]
null
null
null
tests/model/test_guest.py
bcurnow/rfid-security-svc
d3806cb74d3d0cc2623ea425230dc8781ba4d8b4
[ "Apache-2.0" ]
null
null
null
import pytest from unittest.mock import patch import rfidsecuritysvc.model.guest as model from rfidsecuritysvc.model.color import Color from rfidsecuritysvc.model.guest import Guest from rfidsecuritysvc.model.sound import Sound from rfidsecuritysvc.exception import SoundNotFoundError def test_Guest(assert_model, def...
33.762963
136
0.740895
627
4,558
5.145136
0.089314
0.130192
0.147241
0.158091
0.791383
0.738686
0.706138
0.640422
0.563546
0.49349
0
0.011114
0.131417
4,558
134
137
34.014925
0.803738
0
0
0.435644
0
0
0.17047
0.130979
0
0
0.012286
0
0.29703
1
0.158416
false
0
0.069307
0.019802
0.247525
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6ae26b063b0fbd07c2ce06161f218674d84af1d4
1,119
py
Python
ice/consoles.py
reavessm/Ice
e78d046abfd6006b1a81d1cbdb516b7c3e141ac9
[ "MIT" ]
578
2015-01-02T12:43:52.000Z
2022-03-27T23:45:32.000Z
ice/consoles.py
reavessm/Ice
e78d046abfd6006b1a81d1cbdb516b7c3e141ac9
[ "MIT" ]
271
2015-01-05T01:56:38.000Z
2021-08-14T02:51:24.000Z
ice/consoles.py
reavessm/Ice
e78d046abfd6006b1a81d1cbdb516b7c3e141ac9
[ "MIT" ]
156
2015-01-07T15:43:20.000Z
2021-12-11T19:10:44.000Z
# encoding: utf-8 import os import roms def console_roms_directory(configuration, console): """ If the user has specified a custom ROMs directory in consoles.txt then return that. Otherwise, append the shortname of the console to the default ROMs directory given by config.txt. """ if console.custom_ro...
31.971429
98
0.747096
162
1,119
5.092593
0.475309
0.094545
0.069091
0.08
0.077576
0
0
0
0
0
0
0.001081
0.173369
1,119
34
99
32.911765
0.890811
0.49151
0
0
0
0
0.003745
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae285af81cb46f32301f55fbf5e2dcaee2e26e6
5,527
py
Python
clue/c3.py
dumpmemory/roformer-v2
95b71ae03b8bb910998285e194d7752b1e4104c0
[ "Apache-2.0" ]
44
2022-03-17T02:58:27.000Z
2022-03-31T13:08:29.000Z
clue/c3.py
dumpmemory/roformer-v2
95b71ae03b8bb910998285e194d7752b1e4104c0
[ "Apache-2.0" ]
null
null
null
clue/c3.py
dumpmemory/roformer-v2
95b71ae03b8bb910998285e194d7752b1e4104c0
[ "Apache-2.0" ]
2
2022-03-17T05:47:06.000Z
2022-03-22T10:33:54.000Z
#! -*- coding:utf-8 -*- # CLUE评测 # c3多项选择阅读理解 # 思路:每个选项分别与问题、篇章拼接后打分排序 import json import numpy as np from snippets import * from bert4keras.backend import keras from bert4keras.snippets import sequence_padding, DataGenerator from bert4keras.snippets import open from bert4keras.snippets import truncate_sequences from ...
29.089474
79
0.599602
749
5,527
4.162884
0.256342
0.028865
0.029185
0.032072
0.257858
0.220334
0.173509
0.154907
0.076972
0.039128
0
0.01716
0.272481
5,527
189
80
29.243386
0.758269
0.041071
0
0.134328
0
0
0.059115
0.009535
0
0
0
0
0
1
0.059701
false
0
0.059701
0
0.164179
0.007463
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae3ed28439c3795f0a3092e3b0da325e69356b7
1,590
py
Python
tools/perf/contrib/oop_raster/oop_raster.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/perf/contrib/oop_raster/oop_raster.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/perf/contrib/oop_raster/oop_raster.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from benchmarks import smoothness,thread_times import page_sets from telemetry import benchmark # pylint: disable=protected-access def CustomizeBrowserOptio...
34.565217
78
0.796855
170
1,590
7.341176
0.547059
0.076923
0.019231
0.038462
0.251603
0.251603
0.251603
0.133013
0
0
0
0.008553
0.11761
1,590
45
79
35.333333
0.880969
0.249686
0
0.461538
0
0
0.192833
0.114334
0
0
0
0
0
1
0.192308
false
0
0.115385
0.076923
0.653846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6ae4d12e5b6c5a2ce81f0095493d76c6afcfb99b
3,481
py
Python
logpy/util.py
mrocklin/logpy
7e32f4da10a0ab5b86fb23947cfce9a4d49c6b3f
[ "BSD-3-Clause" ]
1
2016-09-20T16:05:12.000Z
2016-09-20T16:05:12.000Z
logpy/util.py
mrocklin/logpy
7e32f4da10a0ab5b86fb23947cfce9a4d49c6b3f
[ "BSD-3-Clause" ]
null
null
null
logpy/util.py
mrocklin/logpy
7e32f4da10a0ab5b86fb23947cfce9a4d49c6b3f
[ "BSD-3-Clause" ]
null
null
null
import itertools as it from toolz.compatibility import range, map, iteritems def hashable(x): try: hash(x) return True except TypeError: return False def transitive_get(key, d): """ Transitive dict.get >>> from logpy.util import transitive_get >>> d = {1: 2, 2: 3, 3: 4} ...
24.687943
67
0.545246
482
3,481
3.879668
0.278008
0.076471
0.027807
0.040642
0.110695
0.059893
0
0
0
0
0
0.02292
0.323183
3,481
140
68
24.864286
0.770798
0.214019
0
0.215909
0
0
0.020046
0
0
0
0
0
0
1
0.159091
false
0.045455
0.022727
0.022727
0.420455
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae561e06496768e94110f91362d5a5eeb524bdb
545
py
Python
index.py
rinocloud/rinobot-plugin-shift
4f7f16a5e610b91b64377733d24b6ab4b63daa67
[ "MIT" ]
null
null
null
index.py
rinocloud/rinobot-plugin-shift
4f7f16a5e610b91b64377733d24b6ab4b63daa67
[ "MIT" ]
null
null
null
index.py
rinocloud/rinobot-plugin-shift
4f7f16a5e610b91b64377733d24b6ab4b63daa67
[ "MIT" ]
null
null
null
import rinobot_plugin as bot import numpy as np def main(): # lets get our parameters and data filepath = bot.filepath() data = bot.loadfile(filepath) # now comes the custom plugin logic shift = bot.get_arg('shift', type=float, required=True) index = bot.index_from_args(data) data[index] =...
25.952381
59
0.669725
77
545
4.558442
0.584416
0.051282
0
0
0
0
0
0
0
0
0
0
0.218349
545
20
60
27.25
0.823944
0.168807
0
0
0
0
0.057906
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae5c492e4c7a58f8381ae12e47edd808dc70752
1,912
py
Python
gluon/contrib/memcache/__init__.py
arsfeld/fog-web2py
32263a03d4183dcaf7537c87edcb4e574d4bec6e
[ "BSD-3-Clause" ]
null
null
null
gluon/contrib/memcache/__init__.py
arsfeld/fog-web2py
32263a03d4183dcaf7537c87edcb4e574d4bec6e
[ "BSD-3-Clause" ]
null
null
null
gluon/contrib/memcache/__init__.py
arsfeld/fog-web2py
32263a03d4183dcaf7537c87edcb4e574d4bec6e
[ "BSD-3-Clause" ]
1
2019-03-13T08:20:25.000Z
2019-03-13T08:20:25.000Z
from gluon.contrib.memcache.memcache import Client import time """ examle of usage: cache.memcache=MemcacheClient(request,[127.0.0.1:11211],debug=true) """ import cPickle as pickle import thread locker = thread.allocate_lock() def MemcacheClient(*a, **b): locker.acquire() if not hasattr(MemcacheClient, '__...
28.537313
72
0.620816
226
1,912
5.00885
0.29646
0.037102
0.070671
0.077739
0.196113
0.196113
0.134276
0.072438
0
0
0
0.016417
0.267259
1,912
66
73
28.969697
0.791577
0.014121
0
0.208333
0
0
0.011167
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0.020833
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
6ae692e1d71ed7665097647321e9c90f2d578c91
206
py
Python
test_data/parse/unexpected/symbol_table/inheritance_from_non_class/meta_model.py
aas-core-works/aas-core-csharp-codegen
731f706e2d12bf80722ac55d920fcf5402fb26ef
[ "MIT" ]
null
null
null
test_data/parse/unexpected/symbol_table/inheritance_from_non_class/meta_model.py
aas-core-works/aas-core-csharp-codegen
731f706e2d12bf80722ac55d920fcf5402fb26ef
[ "MIT" ]
2
2021-11-17T22:11:59.000Z
2021-11-18T15:17:40.000Z
test_data/parse/unexpected/symbol_table/inheritance_from_non_class/meta_model.py
aas-core-works/aas-core-csharp-codegen
731f706e2d12bf80722ac55d920fcf5402fb26ef
[ "MIT" ]
null
null
null
class Some_enum(Enum): some_literal = "some_literal" class Something(Some_enum): pass class Reference: pass __book_url__ = "dummy" __book_version__ = "dummy" associate_ref_with(Reference)
12.875
33
0.737864
26
206
5.230769
0.538462
0.117647
0
0
0
0
0
0
0
0
0
0
0.174757
206
15
34
13.733333
0.8
0
0
0.222222
0
0
0.106796
0
0
0
0
0
0
1
0
false
0.222222
0
0
0.444444
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
6ae7079318bfafa24286324b4e5be07089c8ccfb
11,135
py
Python
deepcut/deepcut.py
wannaphong/deepcut
e4f7779caa087c5ffbad3bc4e88f919e300d020c
[ "MIT" ]
17
2020-10-06T12:35:19.000Z
2021-11-19T07:33:15.000Z
deepcut/deepcut.py
wannaphong/deepcut
e4f7779caa087c5ffbad3bc4e88f919e300d020c
[ "MIT" ]
3
2020-10-07T06:29:33.000Z
2020-10-23T15:21:09.000Z
deepcut/deepcut.py
wannaphong/deepcut
e4f7779caa087c5ffbad3bc4e88f919e300d020c
[ "MIT" ]
1
2020-10-06T13:16:54.000Z
2020-10-06T13:16:54.000Z
#!/usr/bin/env python # encoding: utf-8 import numbers import os import re import sys from itertools import chain import numpy as np import scipy.sparse as sp import six import pickle from .model import get_convo_nn2 from .stop_words import THAI_STOP_WORDS from .utils import CHAR_TYPES_MAP, CHARS_MAP, create_feature_...
34.367284
116
0.587068
1,495
11,135
4.218729
0.248161
0.011892
0.00333
0.010782
0.108768
0.073411
0.065166
0.042334
0.042334
0.035516
0
0.015395
0.317467
11,135
324
117
34.367284
0.811711
0.29762
0
0.051136
0
0
0.030397
0
0
0
0
0
0
1
0.068182
false
0
0.068182
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae71d1265e8389449c1186df9eae1ba04f43f40
4,824
py
Python
spconv/utils/__init__.py
djiajunustc/spconv
647927ce6b64dc51fbec4eb50c7194f8ca5007e5
[ "Apache-2.0" ]
null
null
null
spconv/utils/__init__.py
djiajunustc/spconv
647927ce6b64dc51fbec4eb50c7194f8ca5007e5
[ "Apache-2.0" ]
null
null
null
spconv/utils/__init__.py
djiajunustc/spconv
647927ce6b64dc51fbec4eb50c7194f8ca5007e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Yan Yan # # 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, soft...
41.230769
101
0.676824
631
4,824
4.998415
0.277338
0.03234
0.055802
0.045656
0.532023
0.52156
0.515536
0.469562
0.396322
0.396322
0
0.012983
0.249585
4,824
116
102
41.586207
0.858287
0.177446
0
0.378378
0
0
0.088662
0
0
0
0
0
0
1
0.108108
false
0.013514
0.175676
0.027027
0.378378
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae7a32e4ed90bb4e297477064266c060efd4768
5,346
py
Python
build/android/gyp/lint.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-16T03:57:28.000Z
2021-01-23T15:29:45.000Z
build/android/gyp/lint.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
build/android/gyp/lint.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:13.000Z
2020-11-04T07:24:13.000Z
#!/usr/bin/env python # # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs Android's lint tool.""" import optparse import os import sys from xml.dom import minidom from util import build_utils ...
33.4125
78
0.62963
648
5,346
5
0.294753
0.04321
0.046296
0.021605
0.147222
0.107407
0.085802
0.085802
0.053086
0.053086
0
0.002982
0.247288
5,346
159
79
33.622642
0.802187
0.081556
0
0.070796
0
0
0.185937
0.00902
0
0
0
0
0
1
0.053097
false
0
0.044248
0
0.150442
0.035398
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae97714d8f4b22a1d08d058e87732477cbb19c0
9,424
py
Python
clif/pybind11/generator.py
snu5mumr1k/clif
3a907dd7b0986f2b3306c88503d414f4d4f963ae
[ "Apache-2.0" ]
null
null
null
clif/pybind11/generator.py
snu5mumr1k/clif
3a907dd7b0986f2b3306c88503d414f4d4f963ae
[ "Apache-2.0" ]
null
null
null
clif/pybind11/generator.py
snu5mumr1k/clif
3a907dd7b0986f2b3306c88503d414f4d4f963ae
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # 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, ...
38.622951
80
0.671053
1,275
9,424
4.718431
0.174118
0.017952
0.037899
0.033245
0.407746
0.270279
0.237699
0.126496
0.087766
0.043551
0
0.015397
0.214346
9,424
243
81
38.781893
0.797137
0.131367
0
0.187845
0
0
0.21052
0.132609
0
0
0
0
0.005525
1
0.060773
false
0
0.066298
0
0.138122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aea2be020c7e8aa245e0f3059dcd2d6daefd1b7
2,865
py
Python
advent/model/discriminator.py
ChristopheGraveline064/ADVENT
fc0ecd099862ed68979b2197423f1bb34df09c74
[ "Apache-2.0" ]
1
2021-01-17T06:02:10.000Z
2021-01-17T06:02:10.000Z
advent/model/discriminator.py
ChristopheGraveline064/ADVENT
fc0ecd099862ed68979b2197423f1bb34df09c74
[ "Apache-2.0" ]
2
2021-01-17T06:21:29.000Z
2021-01-17T20:19:50.000Z
advent/model/discriminator.py
ChristopheGraveline064/ADVENT
fc0ecd099862ed68979b2197423f1bb34df09c74
[ "Apache-2.0" ]
null
null
null
from torch import nn def get_fc_discriminator(num_classes, ndf=64): return nn.Sequential( nn.Conv2d(num_classes, ndf, kernel_size=4, stride=2, padding=1), nn.LeakyReLU(negative_slope=0.2, inplace=True), nn.Conv2d(ndf, ndf * 2, kernel_size=4, stride=2, padding=1), nn.LeakyReLU(negat...
49.396552
90
0.624433
450
2,865
3.86
0.086667
0.092113
0.175014
0.221071
0.967761
0.967761
0.967761
0.938975
0.8981
0.8981
0
0.077502
0.211867
2,865
58
91
49.396552
0.691763
0.539267
0
0.391304
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.043478
0.086957
0.217391
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
6aea61815f42420b447d1ce164aa7c65f5c5bc94
3,652
py
Python
spyder/dependencies.py
aglotero/spyder
075d32fa359b728416de36cb0e744715fa5e3943
[ "MIT" ]
2
2019-04-25T08:25:37.000Z
2019-04-25T08:25:43.000Z
spyder/dependencies.py
aglotero/spyder
075d32fa359b728416de36cb0e744715fa5e3943
[ "MIT" ]
1
2020-10-29T19:53:11.000Z
2020-10-29T19:53:11.000Z
spyder/dependencies.py
aglotero/spyder
075d32fa359b728416de36cb0e744715fa5e3943
[ "MIT" ]
1
2019-02-18T01:28:51.000Z
2019-02-18T01:28:51.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Module checking Spyder runtime dependencies""" import os # Local imports from spyder.utils import programs class Dependency(object): """Sp...
32.035088
78
0.585706
375
3,652
5.6
0.314667
0.099048
0.057143
0.042857
0.220476
0.206667
0.184762
0.157143
0.106667
0
0
0.007229
0.318182
3,652
113
79
32.318584
0.835743
0.194962
0
0.169014
0
0
0.03255
0
0
0
0
0
0
1
0.112676
false
0
0.028169
0
0.309859
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aea82e968ce364fdac8932cf3b83554a12ac797
2,947
py
Python
setup.py
jasperhyp/Chemprop4SE
c02b604b63b6766464db829fea0b306c67302e82
[ "MIT" ]
1
2021-12-15T05:18:07.000Z
2021-12-15T05:18:07.000Z
setup.py
jasperhyp/chemprop4SE
c02b604b63b6766464db829fea0b306c67302e82
[ "MIT" ]
null
null
null
setup.py
jasperhyp/chemprop4SE
c02b604b63b6766464db829fea0b306c67302e82
[ "MIT" ]
null
null
null
import os from setuptools import find_packages, setup # Load version number __version__ = None src_dir = os.path.abspath(os.path.dirname(__file__)) version_file = os.path.join(src_dir, 'chemprop', '_version.py') with open(version_file, encoding='utf-8') as fd: exec(fd.read()) # Load README with ope...
33.873563
88
0.599932
325
2,947
5.261538
0.452308
0.045614
0.061404
0.060819
0.139766
0
0
0
0
0
0
0.026782
0.25246
2,947
86
89
34.267442
0.749433
0.010519
0
0.025641
0
0
0.528475
0.169084
0
0
0
0
0
1
0
false
0.025641
0.025641
0
0.025641
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aec0377fc121dfeab883792414df3e21c04a712
2,335
py
Python
mars/tensor/indexing/slice.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/indexing/slice.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
null
null
null
mars/tensor/indexing/slice.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # 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 a...
33.84058
76
0.636403
312
2,335
4.653846
0.435897
0.041322
0.035124
0.022039
0
0
0
0
0
0
0
0.012274
0.267238
2,335
68
77
34.338235
0.836353
0.259957
0
0.097561
0
0
0.012259
0
0
0
0
0
0
1
0.121951
false
0
0.121951
0.02439
0.463415
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aec42c6af54cc3a34d294f61a827b50bebc2cb6
50,221
py
Python
ftplugin/python/python/pyflakes/pyflakes/checker.py
leewckk/vim.configuration
db3faa4343714dd3eb3b7ab19f8cd0b64a52ee57
[ "MIT" ]
null
null
null
ftplugin/python/python/pyflakes/pyflakes/checker.py
leewckk/vim.configuration
db3faa4343714dd3eb3b7ab19f8cd0b64a52ee57
[ "MIT" ]
null
null
null
ftplugin/python/python/pyflakes/pyflakes/checker.py
leewckk/vim.configuration
db3faa4343714dd3eb3b7ab19f8cd0b64a52ee57
[ "MIT" ]
null
null
null
""" Main module. Implement the central Checker class. Also, it models the Bindings and Scopes. """ import __future__ import doctest import os import sys PY2 = sys.version_info < (3, 0) PY32 = sys.version_info < (3, 3) # Python 2.5 to 3.2 PY33 = sys.version_info < (3, 4) # Python 2.5 to 3.3 PY34 = ...
36.900073
87
0.567054
5,448
50,221
5.127019
0.14464
0.012566
0.017399
0.00401
0.157525
0.117571
0.090255
0.062366
0.05005
0.030145
0
0.004061
0.352821
50,221
1,360
88
36.927206
0.855332
0.2036
0
0.260369
0
0
0.017609
0.000637
0
0
0
0.000735
0.004608
1
0.101382
false
0.009217
0.06682
0.013825
0.395161
0.002304
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aed26d63f42531533566c9bcedcbe6f5289c5e4
3,349
py
Python
AutoScreenShot.py
infinyte7/Auto-Screenshot
5d8e39af61f3361f372ffb48add53171b7cea672
[ "MIT" ]
3
2020-10-29T13:57:15.000Z
2021-02-19T21:59:15.000Z
AutoScreenShot.py
infinyte7/Auto-Screenshot
5d8e39af61f3361f372ffb48add53171b7cea672
[ "MIT" ]
null
null
null
AutoScreenShot.py
infinyte7/Auto-Screenshot
5d8e39af61f3361f372ffb48add53171b7cea672
[ "MIT" ]
1
2021-02-19T21:59:48.000Z
2021-02-19T21:59:48.000Z
# Project Name: Auto Screenshot # Description: Take screenshot of screen when any change take place. # Author: Mani (Infinyte7) # Date: 26-10-2020 # License: MIT from pyscreenshot import grab from PIL import ImageChops import os import time import subprocess, sys from datetime import datetime import tkinter as tk fr...
32.833333
101
0.616602
407
3,349
4.955774
0.383292
0.023798
0.032226
0.029747
0.242935
0.226078
0.172533
0.172533
0.160635
0.108081
0
0.023829
0.260675
3,349
101
102
33.158416
0.790792
0.149
0
0.1
0
0
0.108757
0.008121
0
0
0
0
0
1
0.066667
false
0
0.15
0
0.233333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aed847e420c882fffa9edfe88238102ee06ac09
2,749
py
Python
rqalpha/utils/logger.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
1
2020-11-10T05:44:39.000Z
2020-11-10T05:44:39.000Z
rqalpha/utils/logger.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
null
null
null
rqalpha/utils/logger.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
1
2020-03-05T05:06:45.000Z
2020-03-05T05:06:45.000Z
# -*- coding: utf-8 -*- # 版权所有 2019 深圳米筐科技有限公司(下称“米筐科技”) # # 除非遵守当前许可,否则不得使用本软件。 # # * 非商业用途(非商业用途指个人出于非商业目的使用本软件,或者高校、研究所等非营利机构出于教育、科研等目的使用本软件): # 遵守 Apache License 2.0(下称“Apache 2.0 许可”),您可以在以下位置获得 Apache 2.0 许可的副本:http://www.apache.org/licenses/LICENSE-2.0。 # 除非法律有要求或以书面形式达成协议,否则本软件分发时需保持当前许可“原样”...
25.220183
144
0.694434
336
2,749
5.473214
0.395833
0.053834
0.062534
0.04894
0.135943
0.089179
0.045677
0.045677
0.045677
0
0
0.009329
0.181157
2,749
108
145
25.453704
0.807641
0.276464
0
0.107143
0
0
0.102186
0
0
0
0
0
0
1
0.089286
false
0
0.089286
0
0.232143
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aee73a3b8946a07512f9eca678734d10d671560
5,517
py
Python
salt/modules/oracle.py
wikimedia/operations-debs-salt
be6342abc7401ff92f67ed59f7834f1359f35314
[ "Apache-2.0" ]
null
null
null
salt/modules/oracle.py
wikimedia/operations-debs-salt
be6342abc7401ff92f67ed59f7834f1359f35314
[ "Apache-2.0" ]
null
null
null
salt/modules/oracle.py
wikimedia/operations-debs-salt
be6342abc7401ff92f67ed59f7834f1359f35314
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Oracle DataBase connection module :mainteiner: Vladimir Bormotov <bormotov@gmail.com> :maturity: new :depends: cx_Oracle :platform: all :configuration: module provide connections for multiple Oracle DB instances. **OS Environment** .. code-block:: text ORACLE_HOME: pa...
24.52
82
0.610839
701
5,517
4.626248
0.269615
0.064138
0.024052
0.031452
0.243602
0.193956
0.141844
0.11255
0.041628
0
0
0.008354
0.26228
5,517
224
83
24.629464
0.788452
0.334783
0
0.242105
0
0
0.134739
0
0
0
0
0
0
1
0.105263
false
0.042105
0.052632
0
0.284211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aef1e728fe8745d27da0badcde01e88381bd9b3
32,785
py
Python
tests/test_std.py
ashwini-balnaves/python-consul
4ddec9b57eb5284b58967ce1a9b2422519f88cc2
[ "MIT" ]
469
2015-01-02T18:36:39.000Z
2022-03-10T09:18:13.000Z
tests/test_std.py
ashwini-balnaves/python-consul
4ddec9b57eb5284b58967ce1a9b2422519f88cc2
[ "MIT" ]
249
2015-01-21T19:06:34.000Z
2022-01-12T09:12:58.000Z
tests/test_std.py
ashwini-balnaves/python-consul
4ddec9b57eb5284b58967ce1a9b2422519f88cc2
[ "MIT" ]
279
2015-01-17T04:25:04.000Z
2022-03-11T22:06:46.000Z
import base64 import operator import struct import time import pytest import six import consul import consul.std Check = consul.Check class TestHTTPClient(object): def test_uri(self): http = consul.std.HTTPClient() assert http.uri('/v1/kv') == 'http://127.0.0.1:8500/v1/kv' assert http....
34.766702
78
0.574257
4,296
32,785
4.297952
0.079376
0.063367
0.026213
0.035908
0.702773
0.64206
0.569053
0.515327
0.474328
0.431163
0
0.023165
0.275797
32,785
942
79
34.803609
0.754496
0.059539
0
0.433333
0
0
0.11702
0.00234
0
0
0
0
0.286364
1
0.063636
false
0.028788
0.012121
0
0.078788
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0