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
863f656903c4148e82b3b4fd5343ee724e111ab6
3,469
py
Python
function/python/brightics/function/textanalytics/regex.py
jhpark428/studio
539457b3026dda827c1b17b4cb851946e34e3b85
[ "Apache-2.0" ]
202
2018-10-23T04:37:35.000Z
2022-01-27T05:51:10.000Z
function/python/brightics/function/textanalytics/regex.py
sagarmk/studio
3bc547fdf85ae6be80c1b40916f9f5d31d2b3f75
[ "MIT" ]
444
2018-11-07T08:41:14.000Z
2022-03-16T06:48:57.000Z
function/python/brightics/function/textanalytics/regex.py
sagarmk/studio
3bc547fdf85ae6be80c1b40916f9f5d31d2b3f75
[ "MIT" ]
99
2018-11-08T04:12:13.000Z
2022-03-30T05:36:27.000Z
""" Copyright 2019 Samsung SDS 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 ...
40.811765
120
0.643701
418
3,469
5.114833
0.311005
0.07203
0.058934
0.028064
0.260992
0.138447
0.138447
0.089804
0.056127
0.038354
0
0.008242
0.265494
3,469
84
121
41.297619
0.830848
0.189968
0
0.183333
0
0
0.064093
0
0
0
0
0
0
1
0.05
false
0
0.066667
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
863fffaabccfedecd9149dc35acae6b9542aa04c
8,500
py
Python
bin/temperature_functions.py
travc/outbreak-reporter
0f03ca66993827ae1866d09e3cf5d9f6d4acb633
[ "MIT" ]
null
null
null
bin/temperature_functions.py
travc/outbreak-reporter
0f03ca66993827ae1866d09e3cf5d9f6d4acb633
[ "MIT" ]
2
2019-12-15T19:58:26.000Z
2019-12-17T05:33:32.000Z
bin/temperature_functions.py
travc/outbreak-reporter
0f03ca66993827ae1866d09e3cf5d9f6d4acb633
[ "MIT" ]
1
2022-03-04T01:36:38.000Z
2022-03-04T01:36:38.000Z
#!/usr/bin/env python3 import sys import os import logging import numpy as np import pandas as pd import dateutil def tempF2C(x): return (x-32.0)*5.0/9.0 def tempC2F(x): return (x*9.0/5.0)+32.0 def load_temperature_hdf5(temps_fn, local_time_offset, basedir=None, start_year=None, truncate_to_full_day=False): ## ...
41.062802
132
0.598
1,259
8,500
3.926926
0.250993
0.01699
0.021238
0.009709
0.234426
0.188107
0.158981
0.149272
0.149272
0.137136
0
0.025862
0.263059
8,500
206
133
41.262136
0.76341
0.294118
0
0.149254
0
0
0.081514
0
0
0
0
0
0.022388
1
0.052239
false
0.007463
0.044776
0.014925
0.134328
0.029851
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
864003328f8b49eae739c102dea7da6313ecab13
2,584
py
Python
applications/CSharpWrapperApplication/tests/test_CSharpWrapperApplication.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/CSharpWrapperApplication/tests/test_CSharpWrapperApplication.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/CSharpWrapperApplication/tests/test_CSharpWrapperApplication.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
# import Kratos import KratosMultiphysics import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication import KratosMultiphysics.CSharpWrapperApplication as CSharpWrapperApplication import run_cpp_unit_tests # Import Kratos "wrapper" for unittests import KratosMultiphysics.KratosUnittest ...
29.363636
90
0.71904
267
2,584
6.861423
0.370787
0.065502
0.026201
0.091703
0.176856
0.067686
0.03821
0.03821
0
0
0
0
0.195046
2,584
87
91
29.701149
0.880769
0.379257
0
0
0
0
0.135786
0.017391
0
0
0
0
0
1
0.035714
false
0
0.25
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86421594cd7a65136f722a4e9889059ae90e1d77
2,145
py
Python
run.py
Ganeshrockz/Flask-Python-Dev
522b280484e8f4cf3877b378a1334c501ffbc41e
[ "Apache-2.0" ]
null
null
null
run.py
Ganeshrockz/Flask-Python-Dev
522b280484e8f4cf3877b378a1334c501ffbc41e
[ "Apache-2.0" ]
null
null
null
run.py
Ganeshrockz/Flask-Python-Dev
522b280484e8f4cf3877b378a1334c501ffbc41e
[ "Apache-2.0" ]
null
null
null
from flask import Flask, flash, render_template, redirect, url_for from flask.ext.pymongo import PyMongo from flask import request app=Flask(__name__) app.config['MONGO_DBNAME']='stud' app.config['MONGO_URI']='mongodb://localhost:27017/stud' mongo=PyMongo(app) """ @app.route('/add') def add(): user=mongo.db.users ...
35.75
213
0.620513
253
2,145
5.166008
0.316206
0.075746
0.061209
0.039021
0.056618
0.056618
0
0
0
0
0
0.008711
0.197203
2,145
59
214
36.355932
0.75029
0
0
0.159091
0
0
0.224921
0.015839
0
0
0
0
0
1
0.068182
false
0.045455
0.068182
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
86448f12322f6a8ff13f239dbc2163cdebce1c56
12,198
py
Python
resources/tests/conftest.py
jussiarpalahti/respa
c308bcb96e56d9401e22df94d3073e248618e243
[ "MIT" ]
null
null
null
resources/tests/conftest.py
jussiarpalahti/respa
c308bcb96e56d9401e22df94d3073e248618e243
[ "MIT" ]
null
null
null
resources/tests/conftest.py
jussiarpalahti/respa
c308bcb96e56d9401e22df94d3073e248618e243
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest import datetime from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from rest_framework.test import APIClient, APIRequestFactory from resources.enums import UnitAuthorizationLevel from resources.models import Resource, ResourceType, Unit, Pu...
29.606796
119
0.702492
1,374
12,198
5.983988
0.140466
0.069569
0.070056
0.041596
0.596935
0.550596
0.498662
0.456702
0.403308
0.334469
0
0.010521
0.205198
12,198
411
120
29.678832
0.837545
0.019101
0
0.478788
0
0
0.075429
0.004353
0
0
0
0
0
1
0.112121
false
0
0.030303
0.060606
0.254545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86468125b6e8c3a2e71c1dfdfd2e29f1c5b2af19
586
py
Python
qcmetadataprinter/struct.py
x2dev/device_leeco_x2
9bf4549b5f64390ca4da291745b2a66a8e3f006e
[ "FTL" ]
null
null
null
qcmetadataprinter/struct.py
x2dev/device_leeco_x2
9bf4549b5f64390ca4da291745b2a66a8e3f006e
[ "FTL" ]
null
null
null
qcmetadataprinter/struct.py
x2dev/device_leeco_x2
9bf4549b5f64390ca4da291745b2a66a8e3f006e
[ "FTL" ]
null
null
null
#!/bin/python3 with open('../camera/QCamera2/stack/common/cam_intf.h', 'r') as f: data = f.read() f.closed start = data.find(' INCLUDE(CAM_INTF_META_HISTOGRAM') end = data.find('} metadata_data_t;') data = data[start:end] metadata = data.split("\n") metalist = list() for line in metadata: if (line.starts...
23.44
66
0.593857
84
586
4.071429
0.535714
0.035088
0
0
0
0
0
0
0
0
0
0.010846
0.213311
586
24
67
24.416667
0.73102
0.022184
0
0.117647
0
0
0.263986
0.127622
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8647521d4f7b0429f689d687206113be1ffbd603
317
py
Python
abc/abc121/abc121d-2.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc121/abc121d-2.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc121/abc121d-2.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
def g(A, n): if A == -1: return 0 return A // (2 * n) * n + max(A % (2 * n) - (n - 1), 0) def f(A, B): result = 0 for i in range(48): t = 1 << i if (g(B, t) - g(A - 1, t)) % 2 == 1: result += t return result A, B = map(int, input().split()) print(f(A, B))
16.684211
59
0.381703
59
317
2.050847
0.40678
0.049587
0.049587
0.066116
0
0
0
0
0
0
0
0.068783
0.403785
317
18
60
17.611111
0.571429
0
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0
0
0.384615
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86479efec94998d8ac597979216e69bc35252174
807
py
Python
log_mysql.py
kizunai/Weather-Scrapy
d2104d28dc303f6710b043f9821dcb84c665665d
[ "Apache-2.0" ]
null
null
null
log_mysql.py
kizunai/Weather-Scrapy
d2104d28dc303f6710b043f9821dcb84c665665d
[ "Apache-2.0" ]
null
null
null
log_mysql.py
kizunai/Weather-Scrapy
d2104d28dc303f6710b043f9821dcb84c665665d
[ "Apache-2.0" ]
null
null
null
import logging from logging.handlers import TimedRotatingFileHandler class MyLog(): def __init__(self, name, filename): self.logger = logging.getLogger(name) if not self.logger.handlers: self.logger.setLevel(logging.INFO) ch = TimedRotatingFileHandler(filename=filename, when...
31.038462
97
0.675341
91
807
5.945055
0.43956
0.110906
0.140481
0
0
0
0
0
0
0
0
0.001517
0.183395
807
25
98
32.28
0.819423
0
0
0
0
0
0.114236
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8647faa20530aa0d730c1a40c079c5454d72f20d
1,252
py
Python
src/fiesta/urls.py
lerooze/django-fiesta
d521f50bcdd3d40e91f0474ec2fa7e256758e0a5
[ "BSD-3-Clause" ]
null
null
null
src/fiesta/urls.py
lerooze/django-fiesta
d521f50bcdd3d40e91f0474ec2fa7e256758e0a5
[ "BSD-3-Clause" ]
3
2019-10-29T23:31:01.000Z
2020-03-31T03:08:28.000Z
src/fiesta/urls.py
lerooze/django-fiesta
d521f50bcdd3d40e91f0474ec2fa7e256758e0a5
[ "BSD-3-Clause" ]
null
null
null
# urls.py from django.urls import path, register_converter from fiesta import converters from fiesta.views import views from rest_framework.urlpatterns import format_suffix_patterns # "http://django-sdmx.org/wsrest/" # "http://django-sdmx.org/ws/" register_converter(converters.ResourceConverter, 'res') register_con...
40.387097
125
0.742812
136
1,252
6.720588
0.308824
0.045952
0.065646
0.105033
0.484683
0.484683
0.40372
0.370897
0.370897
0.370897
0
0
0.099042
1,252
30
126
41.733333
0.810284
0.055112
0
0.142857
0
0
0.29202
0.272496
0
0
0
0
0
1
0
false
0
0.190476
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
0
0
0
0
0
0
1
0
864838cbb6dc59b795206fdcacaeae0f4be0ca16
9,159
py
Python
sepa_generator/definitions.py
jason-gm/python_sepa
542c48326c07ab68d341a07d5ee12502f7248690
[ "MIT" ]
null
null
null
sepa_generator/definitions.py
jason-gm/python_sepa
542c48326c07ab68d341a07d5ee12502f7248690
[ "MIT" ]
null
null
null
sepa_generator/definitions.py
jason-gm/python_sepa
542c48326c07ab68d341a07d5ee12502f7248690
[ "MIT" ]
null
null
null
def construct_tag_data(tag_name, attrs=None, value=None, sorting=None): data = { '_name': tag_name, '_attrs': attrs or [], '_value': value, } if sorting: data['_sorting'] = sorting return data def add_simple_child(data, child_friendly_name, child_tag_name, child_attr...
48.460317
116
0.601048
902
9,159
5.720621
0.174058
0.102326
0.136434
0.046512
0.242636
0.202907
0.175581
0.117054
0.086047
0.086047
0
0.002314
0.292172
9,159
188
117
48.718085
0.793614
0
0
0.088889
0
0.007407
0.148395
0.012776
0
0
0
0
0
1
0.066667
false
0
0
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
864bf69490c6ee45920463f0c6f8b0b6dbff18dc
4,624
py
Python
ReportBot.py
SeveNNoff/InstagramReportBot
0a613b5f2733d988a952d64d8141cb7390527b9e
[ "Apache-2.0" ]
1
2020-10-13T16:04:08.000Z
2020-10-13T16:04:08.000Z
ReportBot.py
SeveNNoff/InstagramReportBot
0a613b5f2733d988a952d64d8141cb7390527b9e
[ "Apache-2.0" ]
null
null
null
ReportBot.py
SeveNNoff/InstagramReportBot
0a613b5f2733d988a952d64d8141cb7390527b9e
[ "Apache-2.0" ]
1
2021-04-17T04:42:29.000Z
2021-04-17T04:42:29.000Z
# coding=utf-8 #!/usr/bin/env python3 from libs.check_modules import check_modules from sys import exit from os import _exit check_modules() from os import path from libs.logo import print_logo from libs.utils import print_success from libs.utils import print_error from libs.utils import ask_question ...
30.421053
96
0.599048
611
4,624
4.360065
0.211129
0.04542
0.024399
0.035661
0.479354
0.418544
0.395646
0.374625
0.324324
0.201201
0
0.01125
0.288711
4,624
152
97
30.421053
0.798723
0.016436
0
0.466102
0
0
0.175131
0
0
0
0
0
0
1
0.050847
false
0.008475
0.127119
0
0.211864
0.279661
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
864d054eec7d0aab41c1311c42de1bf952355469
33,765
py
Python
spyder/plugins/variableexplorer/widgets/arrayeditor.py
seryj/spyder
acea4f501c1a04d57b02e5e817708a69b503f430
[ "MIT" ]
null
null
null
spyder/plugins/variableexplorer/widgets/arrayeditor.py
seryj/spyder
acea4f501c1a04d57b02e5e817708a69b503f430
[ "MIT" ]
null
null
null
spyder/plugins/variableexplorer/widgets/arrayeditor.py
seryj/spyder
acea4f501c1a04d57b02e5e817708a69b503f430
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ NumPy Array Editor Dialog based on Qt """ # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 # Stand...
39.817217
84
0.53206
3,540
33,765
4.926836
0.180226
0.017889
0.013417
0.007224
0.207672
0.160197
0.102632
0.080901
0.043575
0.038186
0
0.008448
0.361943
33,765
847
85
39.864227
0.801058
0.107449
0
0.187017
0
0
0.043203
0
0
0
0
0.001181
0
1
0.068006
false
0.006182
0.018547
0
0.16847
0.003091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
864d134a9c98ae3913986fb31b160d825e4250a2
4,638
py
Python
libbeat/tests/system/idxmgmt.py
dddpaul/beats
0d4a830fea46210ee264c52a977834d39493c750
[ "ECL-2.0", "Apache-2.0" ]
4
2020-11-17T06:29:30.000Z
2021-08-08T11:56:01.000Z
libbeat/tests/system/idxmgmt.py
dddpaul/beats
0d4a830fea46210ee264c52a977834d39493c750
[ "ECL-2.0", "Apache-2.0" ]
6
2020-06-23T16:28:27.000Z
2020-10-05T17:52:01.000Z
libbeat/tests/system/idxmgmt.py
dddpaul/beats
0d4a830fea46210ee264c52a977834d39493c750
[ "ECL-2.0", "Apache-2.0" ]
2
2020-10-26T15:34:06.000Z
2021-12-10T08:51:58.000Z
import datetime import unittest import pytest from elasticsearch import NotFoundError class IdxMgmt(unittest.TestCase): def __init__(self, client, index): self._client = client self._index = index if index != '' and index != '*' else 'mockbeat' def needs_init(self, s): return s == ''...
39.305085
99
0.618586
525
4,638
5.262857
0.2
0.057908
0.096272
0.131741
0.446978
0.411871
0.372059
0.355411
0.294607
0.198335
0
0.003158
0.24903
4,638
117
100
39.641026
0.790123
0.02997
0
0.282609
0
0
0.101224
0
0
0
0
0
0.23913
1
0.184783
false
0.032609
0.043478
0.01087
0.271739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
864d964c990a587e44dea52d446ea4e2f4b1a45e
6,340
py
Python
chaco/polygon_plot.py
burnpanck/chaco
6457cdd28625991ba69fbbee105051cab237aa51
[ "BSD-3-Clause" ]
3
2017-09-17T17:32:06.000Z
2022-03-15T13:04:43.000Z
chaco/polygon_plot.py
burnpanck/chaco
6457cdd28625991ba69fbbee105051cab237aa51
[ "BSD-3-Clause" ]
null
null
null
chaco/polygon_plot.py
burnpanck/chaco
6457cdd28625991ba69fbbee105051cab237aa51
[ "BSD-3-Clause" ]
5
2015-05-17T16:08:11.000Z
2021-02-23T09:23:42.000Z
""" Defines the PolygonPlot class. """ from __future__ import with_statement # Major library imports import numpy as np # Enthought library imports. from enable.api import LineStyle, black_color_trait, \ transparent_color_trait from kiva.agg import points_in_polygon from traits.api ...
36.647399
82
0.603312
828
6,340
4.43599
0.266908
0.031854
0.016335
0.013068
0.288048
0.166077
0.128233
0.128233
0.109992
0.109992
0
0.004871
0.255205
6,340
172
83
36.860465
0.772978
0.424606
0
0.3125
0
0
0.033682
0
0
0
0
0
0
1
0.0875
false
0
0.075
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86502380f0447c4c5893fb4c09f732239b1cc11f
552
py
Python
webapp/template_config.py
evgenyss/investing
b72da8587a4783bfdd389f1781dcd108d1a5e53f
[ "MIT" ]
null
null
null
webapp/template_config.py
evgenyss/investing
b72da8587a4783bfdd389f1781dcd108d1a5e53f
[ "MIT" ]
null
null
null
webapp/template_config.py
evgenyss/investing
b72da8587a4783bfdd389f1781dcd108d1a5e53f
[ "MIT" ]
null
null
null
import os from datetime import timedelta basedir = os.path.abspath(os.path.dirname(__file__)) API_DATA_URL = "https://invest-public-api.tinkoff.ru/rest/tinkoff.public.invest.api.contract.v1.InstrumentsService/" API_LASTPRICES_URL = "https://invest-public-api.tinkoff.ru/rest/\ tinkoff.public.invest.api.contract.v1.Mar...
29.052632
116
0.778986
73
552
5.671233
0.589041
0.043478
0.067633
0.096618
0.328502
0.328502
0.328502
0.328502
0.328502
0.328502
0
0.005882
0.076087
552
18
117
30.666667
0.805882
0
0
0
0
0.090909
0.217391
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8650d9e6c008eb69e8a60ee61bf0c6b0618f2c83
3,842
py
Python
humann2/quantify/families.py
dytk2134/humann2
9b8f212bdd910ee7187f06f1550f0c86bce0473b
[ "MIT" ]
null
null
null
humann2/quantify/families.py
dytk2134/humann2
9b8f212bdd910ee7187f06f1550f0c86bce0473b
[ "MIT" ]
null
null
null
humann2/quantify/families.py
dytk2134/humann2
9b8f212bdd910ee7187f06f1550f0c86bce0473b
[ "MIT" ]
null
null
null
""" HUMAnN2: quantify_families module Compute alignments by gene family Copyright (c) 2014 Harvard School of Public Health Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, inc...
40.442105
116
0.728267
534
3,842
5.050562
0.346442
0.032629
0.016314
0.032258
0.132369
0.08046
0.066741
0.066741
0.03337
0.03337
0
0.002313
0.212389
3,842
94
117
40.87234
0.888962
0.442998
0
0.1
0
0
0.032764
0
0
0
0
0
0
1
0.025
false
0
0.15
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
865144cd196eb39a73555fc643c117d083a615cc
744
py
Python
Buta Nicolae/threads.py
RazvanBalau/parallel-2020
bd9c0dea6cc70e167320f64632d7a235522dfdb3
[ "MIT" ]
null
null
null
Buta Nicolae/threads.py
RazvanBalau/parallel-2020
bd9c0dea6cc70e167320f64632d7a235522dfdb3
[ "MIT" ]
null
null
null
Buta Nicolae/threads.py
RazvanBalau/parallel-2020
bd9c0dea6cc70e167320f64632d7a235522dfdb3
[ "MIT" ]
23
2020-01-15T15:02:39.000Z
2020-01-15T17:23:03.000Z
import threading from multiprocessing import Queue results = [] results2 = [] def take_numbers(q): print('Enter the numbers:') for i in range(0,3): num1 = int(input('Enter first number: ')) num2 = int(input('Enter second number: ')) q.put(num1) q.put(num2) def add_num(q): ...
20.666667
54
0.606183
106
744
4.216981
0.40566
0.049217
0.026846
0.049217
0.076063
0.076063
0.076063
0
0
0
0
0.040636
0.239247
744
36
55
20.666667
0.749117
0
0
0.068966
0
0
0.103356
0
0
0
0
0
0
1
0.068966
false
0
0.068966
0
0.137931
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86517e62e82db5794921e6da0e41993351344585
576
py
Python
code_week11_76_712/unique_paths.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week11_76_712/unique_paths.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week11_76_712/unique_paths.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
''' 一个机器人位于一个 m x n 网格的左上角 (起始点在下图中标记为“Start” )。 机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角(在下图中标记为“Finish”)。 问总共有多少条不同的路径? 例如,上图是一个7 x 3 的网格。有多少可能的路径?   示例 1: 输入: m = 3, n = 2 输出: 3 解释: 从左上角开始,总共有 3 条路径可以到达右下角。 1. 向右 -> 向右 -> 向下 2. 向右 -> 向下 -> 向右 3. 向下 -> 向右 -> 向右 示例 2: 输入: m = 7, n = 3 输出: 28 来源:力扣(LeetCode) 链接:https:...
15.567568
49
0.552083
98
576
3.244898
0.55102
0.028302
0.031447
0.037736
0
0
0
0
0
0
0
0.045673
0.277778
576
37
50
15.567568
0.71875
0.616319
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86524c143ea8ba1817f21135f1c0c27360fa74e8
3,361
py
Python
spektral/datasets/qm9.py
JonaBecher/spektral
ff59e16d959e0ec698428997363be20462625699
[ "MIT" ]
2,145
2019-01-21T20:49:44.000Z
2022-03-28T20:27:27.000Z
spektral/datasets/qm9.py
jasper-park/spektral
ad2d96549c00f68ce992a7d29e2c3fd025fb529b
[ "MIT" ]
259
2019-01-22T05:18:19.000Z
2022-03-25T10:46:10.000Z
spektral/datasets/qm9.py
jasper-park/spektral
ad2d96549c00f68ce992a7d29e2c3fd025fb529b
[ "MIT" ]
322
2019-02-11T16:18:27.000Z
2022-03-24T16:26:59.000Z
import os import os.path as osp import numpy as np from joblib import Parallel, delayed from tensorflow.keras.utils import get_file from tqdm import tqdm from spektral.data import Dataset, Graph from spektral.utils import label_to_one_hot, sparse from spektral.utils.io import load_csv, load_sdf ATOM_TYPES = [1, 6, 7...
29.482456
80
0.621839
497
3,361
4.060362
0.352113
0.014866
0.014866
0.019326
0.040634
0.040634
0.025768
0
0
0
0
0.011722
0.26391
3,361
113
81
29.743363
0.803961
0.249331
0
0
0
0.015152
0.078215
0
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.318182
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
865416b109055549efa6918ca6073abc6d07a490
602
py
Python
code/Level 1 - Intro to CPX/5-acceleration/main.py
tscofield/cpx-training
682a2cef6bb164bc7c374744de94c21581258392
[ "MIT" ]
null
null
null
code/Level 1 - Intro to CPX/5-acceleration/main.py
tscofield/cpx-training
682a2cef6bb164bc7c374744de94c21581258392
[ "MIT" ]
null
null
null
code/Level 1 - Intro to CPX/5-acceleration/main.py
tscofield/cpx-training
682a2cef6bb164bc7c374744de94c21581258392
[ "MIT" ]
1
2019-02-07T04:04:05.000Z
2019-02-07T04:04:05.000Z
from adafruit_circuitplayground.express import cpx # Main loop gets x, y and z axis acceleration, prints the values, and turns on # red, green and blue, at levels related to the x, y and z values. while True: if cpx.switch: print("Slide switch off!") cpx.pixels.fill((0, 0, 0)) continue ...
25.083333
78
0.503322
94
602
3.212766
0.468085
0.02649
0.033113
0.039735
0
0
0
0
0
0
0
0.016129
0.38206
602
23
79
26.173913
0.795699
0.234219
0
0
0
0
0.037199
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86543345af40c82152fa05b0f713964bb091299c
7,692
py
Python
src/data_preprocess.py
QinganZhao/ML-based-driving-motion-prediction
5a7772cf199d30e4e33bbe943775c2e19aac5d5b
[ "MIT" ]
18
2019-01-08T02:53:56.000Z
2022-03-03T11:34:20.000Z
src/data_preprocess.py
QinganZhao/ML-based-driving-motion-prediction
5a7772cf199d30e4e33bbe943775c2e19aac5d5b
[ "MIT" ]
null
null
null
src/data_preprocess.py
QinganZhao/ML-based-driving-motion-prediction
5a7772cf199d30e4e33bbe943775c2e19aac5d5b
[ "MIT" ]
7
2018-06-13T20:12:25.000Z
2022-02-20T08:39:07.000Z
import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import matplotlib.patches as patches def load_data(file_name, car_flag): if car_flag == 1: data = np.loadtxt('./car1/'+str(file_name)) elif car_flag == 2: data = np.loadtxt('./car2/'+str(file_name)) return data def get...
29.136364
89
0.623375
1,246
7,692
3.614767
0.162921
0.130995
0.101909
0.091918
0.442496
0.318162
0.238455
0.181172
0.140764
0.099911
0
0.065277
0.189418
7,692
263
90
29.247148
0.657097
0.25637
0
0.121212
0
0
0.064361
0.017291
0
0
0
0
0
1
0.045455
false
0
0.030303
0
0.090909
0.037879
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86545fd84ae7762d72208edf0f23289ff9f754a1
4,660
py
Python
balancesheet/equityManager.py
tylertjburns/ledgerkeeper
cd69e9f48f35a973d08e450dfffdfea46bdc3802
[ "MIT" ]
null
null
null
balancesheet/equityManager.py
tylertjburns/ledgerkeeper
cd69e9f48f35a973d08e450dfffdfea46bdc3802
[ "MIT" ]
null
null
null
balancesheet/equityManager.py
tylertjburns/ledgerkeeper
cd69e9f48f35a973d08e450dfffdfea46bdc3802
[ "MIT" ]
null
null
null
import balancesheet.mongoData.equities_data_service as dsvce from userInteraction.financeCliInteraction import FinanceCliInteraction import ledgerkeeper.mongoData.account_data_service as dsvca from balancesheet.enums import EquityClass, AssetType, LiabiltyType, EquityTimeHorizon, EquityStatus, EquityContingency import ...
43.551402
119
0.65279
507
4,660
5.763314
0.224852
0.074264
0.105407
0.049281
0.350445
0.288159
0.219713
0.201917
0.201917
0.201917
0
0.000288
0.254721
4,660
106
120
43.962264
0.84106
0
0
0.181818
0
0
0.079931
0
0
0
0
0
0
1
0.103896
false
0
0.064935
0
0.194805
0.077922
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8655870bbe029c575ef810e01964410eb82d6a13
10,603
py
Python
confluent_server/confluent/syncfiles.py
xcat2/confluent
47a83f4628df48638c2aebbfbcddc1531aac20d0
[ "Apache-2.0" ]
27
2015-02-11T13:56:46.000Z
2021-12-28T14:17:20.000Z
confluent_server/confluent/syncfiles.py
jjohnson42/confluent
47a83f4628df48638c2aebbfbcddc1531aac20d0
[ "Apache-2.0" ]
32
2015-09-23T13:19:04.000Z
2022-03-15T13:50:45.000Z
confluent_server/confluent/syncfiles.py
xcat2/confluent
47a83f4628df48638c2aebbfbcddc1531aac20d0
[ "Apache-2.0" ]
24
2015-07-14T20:41:55.000Z
2021-07-15T04:18:51.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2021 Lenovo # # 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 ...
37.334507
106
0.529661
1,097
10,603
5.094804
0.273473
0.017177
0.016103
0.007157
0.072106
0.042226
0.027196
0.017892
0.017892
0
0
0.010135
0.357918
10,603
283
107
37.466431
0.810811
0.084127
0
0.18254
0
0
0.086912
0.012283
0
0
0
0
0
1
0.031746
false
0.007937
0.039683
0
0.103175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86559f8329a6ab4177af7e36ab701bd44241c349
1,804
py
Python
fym/models/missile.py
JungYT/fym
d519c50086e3c7793b960e0326c92ed407836790
[ "MIT" ]
14
2019-08-23T10:02:39.000Z
2021-12-24T13:04:43.000Z
fym/models/missile.py
JungYT/fym
d519c50086e3c7793b960e0326c92ed407836790
[ "MIT" ]
110
2019-08-23T08:09:32.000Z
2021-06-29T06:54:48.000Z
fym/models/missile.py
JungYT/fym
d519c50086e3c7793b960e0326c92ed407836790
[ "MIT" ]
10
2019-09-02T03:49:06.000Z
2021-05-10T04:35:40.000Z
import numpy as np from fym.core import BaseSystem class MissilePlanar(BaseSystem): R = 288 g = 9.80665 S = 1 t1 = 1.5 t2 = 8.5 name = 'missile' def __init__(self, initial_state): super().__init__(initial_state) def external(self, states, controls): return 0 ...
25.408451
68
0.444568
279
1,804
2.83871
0.422939
0.015152
0.007576
0
0
0
0
0
0
0
0
0.167608
0.411308
1,804
70
69
25.771429
0.578154
0.121951
0
0.075472
0
0
0.004447
0
0
0
0
0
0
1
0.056604
false
0
0.037736
0.018868
0.264151
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8655ba3bbd3cf852e91a43d33c2f2f32d558bc09
2,175
py
Python
egg/zoo/addition/data.py
chengemily/EGG
40e84228e9d6e9ae785c0e4a846bb7e12e2b9291
[ "MIT" ]
1
2022-03-01T18:57:48.000Z
2022-03-01T18:57:48.000Z
egg/zoo/addition/data.py
chengemily/EGG
40e84228e9d6e9ae785c0e4a846bb7e12e2b9291
[ "MIT" ]
null
null
null
egg/zoo/addition/data.py
chengemily/EGG
40e84228e9d6e9ae785c0e4a846bb7e12e2b9291
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Iterable, Optional, Tuple import torch from torch.utils.data import DataLoader class ScaledDataset: def __init__(self,...
32.462687
120
0.624368
269
2,175
4.821561
0.319703
0.048574
0.027756
0.038551
0.214341
0.1835
0.083269
0.083269
0.083269
0
0
0.006423
0.284138
2,175
66
121
32.954545
0.82659
0.110345
0
0.046512
0
0
0.035
0
0
0
0
0
0
1
0.116279
false
0
0.069767
0.023256
0.302326
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8657acef2a48725b54eda761add6bd9a28ac1231
3,379
py
Python
simulation-web3py/utility.py
miker83z/cloud-chain
0f5c43159544da547173ee0425e78bede261513b
[ "MIT" ]
null
null
null
simulation-web3py/utility.py
miker83z/cloud-chain
0f5c43159544da547173ee0425e78bede261513b
[ "MIT" ]
null
null
null
simulation-web3py/utility.py
miker83z/cloud-chain
0f5c43159544da547173ee0425e78bede261513b
[ "MIT" ]
1
2022-01-27T14:18:24.000Z
2022-01-27T14:18:24.000Z
import json import os from argparse import ArgumentTypeError from eth_typing import Address from web3.contract import Contract from settings import MIN_VAL, MAX_VAL, DEPLOYED_CONTRACTS, CONFIG_DIR async def init_simulation(contracts: [], factor: float, fn: str, status_init: bool) -> bool: statuses = [True] ...
32.805825
106
0.612607
415
3,379
4.795181
0.303614
0.01809
0.047739
0.050251
0.131156
0.128141
0.128141
0.128141
0.128141
0.055276
0
0.002929
0.29269
3,379
102
107
33.127451
0.829707
0.035809
0
0.189873
0
0
0.091302
0.023134
0
0
0
0
0
1
0.088608
false
0
0.101266
0
0.303797
0.037975
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8657d90fe7092bbdb91cfe26101bae5ad4366000
808
py
Python
migrations/versions/816ea3631582_add_topics.py
OpenASL/HowSignBot
bd9c5bc0edfd6fb50bdce7c7c1d84462e1e704c2
[ "MIT" ]
9
2021-01-12T07:28:30.000Z
2021-12-30T09:27:04.000Z
migrations/versions/816ea3631582_add_topics.py
OpenASL/HowSignBot
bd9c5bc0edfd6fb50bdce7c7c1d84462e1e704c2
[ "MIT" ]
16
2021-03-28T16:31:42.000Z
2022-03-21T00:18:30.000Z
migrations/versions/816ea3631582_add_topics.py
OpenASL/HowSignBot
bd9c5bc0edfd6fb50bdce7c7c1d84462e1e704c2
[ "MIT" ]
1
2021-07-18T20:49:19.000Z
2021-07-18T20:49:19.000Z
"""add topics Revision ID: 816ea3631582 Revises: 37a124b0099b Create Date: 2021-03-13 14:20:10.044131 """ from alembic import op import sqlalchemy as sa import bot # revision identifiers, used by Alembic. revision = "816ea3631582" down_revision = "37a124b0099b" branch_labels = None depends_on = None def upgrade()...
23.085714
90
0.674505
96
808
5.604167
0.59375
0.050186
0.078067
0.085502
0.163569
0.163569
0.163569
0.163569
0
0
0
0.089094
0.194307
808
34
91
23.764706
0.737327
0.361386
0
0
0
0
0.133612
0
0
0
0
0
0
1
0.125
false
0
0.1875
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86582bc3a8c357318983a8612ae2ca233e2c4562
3,137
py
Python
src/Lib/importlib/__init__.py
NUS-ALSET/ace-react-redux-brython
d009490263c5716a145d9691cd59bfcd5aff837a
[ "MIT" ]
1
2021-08-05T12:45:39.000Z
2021-08-05T12:45:39.000Z
src/Lib/importlib/__init__.py
NUS-ALSET/ace-react-redux-brython
d009490263c5716a145d9691cd59bfcd5aff837a
[ "MIT" ]
null
null
null
src/Lib/importlib/__init__.py
NUS-ALSET/ace-react-redux-brython
d009490263c5716a145d9691cd59bfcd5aff837a
[ "MIT" ]
1
2019-09-05T08:20:07.000Z
2019-09-05T08:20:07.000Z
"""A pure Python implementation of import.""" __all__ = ['__import__', 'import_module', 'invalidate_caches'] # Bootstrap help ##################################################### # Until bootstrapping is complete, DO NOT import any modules that attempt # to import importlib._bootstrap (directly or indirectly)....
36.057471
81
0.668792
409
3,137
4.98533
0.425428
0.039235
0.021579
0.012751
0
0
0
0
0
0
0
0.000832
0.233663
3,137
86
82
36.476744
0.847338
0.532037
0
0
0
0
0.108085
0
0
0
0
0
0
1
0.085714
false
0.028571
0.285714
0
0.457143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86589b5f56644ed9997dc3b47f7f98c31f2ddd04
8,848
py
Python
lib/arlunio/arlunio/image.py
swyddfa/stylo
4d6b348ce5812dc5c2554bfd21a1550375aa05e1
[ "MIT" ]
null
null
null
lib/arlunio/arlunio/image.py
swyddfa/stylo
4d6b348ce5812dc5c2554bfd21a1550375aa05e1
[ "MIT" ]
13
2019-06-02T21:26:52.000Z
2019-08-04T15:54:41.000Z
lib/arlunio/arlunio/image.py
swyddfa/stylo
4d6b348ce5812dc5c2554bfd21a1550375aa05e1
[ "MIT" ]
1
2019-07-08T17:00:56.000Z
2019-07-08T17:00:56.000Z
from __future__ import annotations import base64 import io import logging import pathlib from typing import Optional # TODO: Remove these, as they should be contained in the numpy backend. import numpy as np import PIL.Image as PImage import arlunio.ast as ast import arlunio.color as color import arlunio.mask as mas...
26.570571
148
0.617315
1,154
8,848
4.690641
0.235702
0.02882
0.018105
0.014779
0.18474
0.155921
0.146314
0.133937
0.099575
0.063551
0
0.018996
0.268196
8,848
332
149
26.650602
0.816988
0.520231
0
0.020202
0
0
0.022859
0
0
0
0
0.003012
0
1
0.191919
false
0
0.121212
0.030303
0.464646
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
865a20fd18fa17925d3611f9138e1d796448c4ce
9,001
py
Python
yamlable/tests/test_yamlable.py
smarie/python-yamlable
c726f5c56eea037968560ce83f9753bde1514991
[ "BSD-3-Clause" ]
27
2018-07-12T17:09:41.000Z
2022-02-07T18:56:26.000Z
yamlable/tests/test_yamlable.py
smarie/python-yamlable
c726f5c56eea037968560ce83f9753bde1514991
[ "BSD-3-Clause" ]
14
2018-07-10T08:09:21.000Z
2022-03-02T15:29:56.000Z
yamlable/tests/test_yamlable.py
smarie/python-yamlable
c726f5c56eea037968560ce83f9753bde1514991
[ "BSD-3-Clause" ]
1
2020-09-22T16:13:51.000Z
2020-09-22T16:13:51.000Z
from copy import copy try: # Python 2 only: from StringIO import StringIO # create a variant that can serve as a context manager class StringIO(StringIO): def __enter__(self): return self def __exit__(self, exception_type, exception_value, traceback): self.close(...
26.551622
115
0.56627
1,112
9,001
4.364209
0.146583
0.030291
0.036266
0.047599
0.653822
0.641665
0.641665
0.614259
0.588296
0.567278
0
0.002646
0.328297
9,001
338
116
26.630178
0.800033
0.232196
0
0.639175
0
0
0.072947
0.027909
0
0
0
0.002959
0.139175
1
0.170103
false
0.025773
0.051546
0.06701
0.376289
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
865a984bc7cd45c042cff94434fa063630359314
29,537
py
Python
src/twisted/web/server.py
vmario/twisted
34f3d8f8c6f51772eaed92a89257ea011e9a818d
[ "Unlicense", "MIT" ]
null
null
null
src/twisted/web/server.py
vmario/twisted
34f3d8f8c6f51772eaed92a89257ea011e9a818d
[ "Unlicense", "MIT" ]
null
null
null
src/twisted/web/server.py
vmario/twisted
34f3d8f8c6f51772eaed92a89257ea011e9a818d
[ "Unlicense", "MIT" ]
null
null
null
# -*- test-case-name: twisted.web.test.test_web -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ This is a web server which integrates with the twisted.internet infrastructure. @var NOT_DONE_YET: A token value which L{twisted.web.resource.IResource.render} implementations can return...
32.601545
88
0.593561
3,276
29,537
5.295788
0.213065
0.008877
0.00807
0.007263
0.090783
0.055969
0.040636
0.03372
0.029454
0.02565
0
0.004778
0.312693
29,537
905
89
32.637569
0.84981
0.317026
0
0.161572
0
0
0.081838
0.013387
0
0
0
0
0
1
0.10917
false
0.002183
0.052402
0.004367
0.303493
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
865af347d7d59f9bd67eb9dbfa07a221fbd308e5
554
py
Python
Pset/hamming_numbers.py
MarkHershey/python-learning
8d6c87941af6db5878b59483526ed402f4b319b3
[ "MIT" ]
9
2020-06-05T17:01:23.000Z
2022-03-16T19:55:50.000Z
Pset/hamming_numbers.py
MarkHershey/python-learning
8d6c87941af6db5878b59483526ed402f4b319b3
[ "MIT" ]
null
null
null
Pset/hamming_numbers.py
MarkHershey/python-learning
8d6c87941af6db5878b59483526ed402f4b319b3
[ "MIT" ]
null
null
null
def hamming(n): """Returns the nth hamming number""" hamming = {1} x = 1 while len(hamming) <= n * 3.5: new_hamming = {1} for i in hamming: new_hamming.add(i * 2) new_hamming.add(i * 3) new_hamming.add(i * 5) # merge new number into hamming set...
24.086957
44
0.592058
77
554
4.194805
0.454545
0.154799
0.120743
0.130031
0
0
0
0
0
0
0
0.115385
0.296029
554
22
45
25.181818
0.712821
0.290614
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
865bbf72a785e72699020e27186c8a54194bf255
1,615
py
Python
examples/python/test_as2.py
sloriot/cgal-swig-bindings
c9c5afdf64fa0c52f9c3785173159167ab2b3163
[ "BSL-1.0" ]
null
null
null
examples/python/test_as2.py
sloriot/cgal-swig-bindings
c9c5afdf64fa0c52f9c3785173159167ab2b3163
[ "BSL-1.0" ]
null
null
null
examples/python/test_as2.py
sloriot/cgal-swig-bindings
c9c5afdf64fa0c52f9c3785173159167ab2b3163
[ "BSL-1.0" ]
null
null
null
from CGAL.CGAL_Kernel import Point_2 from CGAL.CGAL_Kernel import Weighted_point_2 from CGAL.CGAL_Alpha_shape_2 import Alpha_shape_2 from CGAL.CGAL_Alpha_shape_2 import Weighted_alpha_shape_2 from CGAL.CGAL_Alpha_shape_2 import Weighted_alpha_shape_2_Face_handle from CGAL.CGAL_Alpha_shape_2 import GENERAL, EXTERIOR, SI...
26.47541
82
0.740557
293
1,615
3.764505
0.187713
0.108794
0.149592
0.107888
0.595648
0.453309
0.453309
0.453309
0.446963
0.359021
0
0.059626
0.138081
1,615
60
83
26.916667
0.732759
0
0
0
0
0
0.019195
0
0
0
0
0
0
1
0
false
0
0.191489
0
0.191489
0.191489
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
865fa048751d6ad0bc743581cad5200b3338324d
2,192
py
Python
indico/web/forms/fields/protection.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
1
2018-11-12T21:29:26.000Z
2018-11-12T21:29:26.000Z
indico/web/forms/fields/protection.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
9
2020-09-08T09:25:57.000Z
2022-01-13T02:59:05.000Z
indico/web/forms/fields/protection.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
3
2020-07-20T09:09:44.000Z
2020-10-19T00:29:49.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import absolute_import, unicode_literals from flask import render_template from markupsaf...
45.666667
111
0.734945
268
2,192
5.701493
0.373134
0.107984
0.078534
0.031414
0.175393
0.146597
0.057592
0
0
0
0
0.005571
0.181113
2,192
47
112
46.638298
0.845682
0.091241
0
0.058824
0
0
0.091184
0.053401
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
866094a72b6fdcd5bf322c232acd28e290c2c5aa
3,096
py
Python
solver.py
jacobchh/Sudoku-Solver
946a954e8eda234760872c55fcd2354dc0a8a4f9
[ "Apache-2.0" ]
1
2020-08-04T05:11:05.000Z
2020-08-04T05:11:05.000Z
solver.py
jacobchh/Sudoku-Solver
946a954e8eda234760872c55fcd2354dc0a8a4f9
[ "Apache-2.0" ]
null
null
null
solver.py
jacobchh/Sudoku-Solver
946a954e8eda234760872c55fcd2354dc0a8a4f9
[ "Apache-2.0" ]
null
null
null
import numpy as np board = np.zeros(shape=(9, 9)) count = 0 def solve(): global count count += 1 if count % 1000 == 0: print('\rCurrent number of computations made:', count, end='') freePos = find() if freePos is None: return True i = freePos[0] j = freePos[1] for w in...
23.633588
105
0.440891
406
3,096
3.342365
0.238916
0.022108
0.056743
0.029477
0.344878
0.32056
0.32056
0.32056
0.296242
0.296242
0
0.029963
0.396318
3,096
130
106
23.815385
0.696094
0.046835
0
0.514851
0
0
0.12466
0.013247
0
0
0
0
0
1
0.069307
false
0
0.009901
0
0.178218
0.19802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8660a9342ead6210c470087662e4e506c3d6349b
2,863
py
Python
nova/api/openstack/compute/used_limits.py
bopopescu/nova-8
768d7cc0a632e1a880f00c5840c1ec8051e161be
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/used_limits.py
bopopescu/nova-8
768d7cc0a632e1a880f00c5840c1ec8051e161be
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/used_limits.py
bopopescu/nova-8
768d7cc0a632e1a880f00c5840c1ec8051e161be
[ "Apache-2.0" ]
1
2020-07-22T21:09:15.000Z
2020-07-22T21:09:15.000Z
# Copyright 2012 OpenStack Foundation # # 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 ...
35.7875
78
0.625218
321
2,863
5.395639
0.423676
0.034642
0.025404
0.046189
0.161663
0.116628
0.079677
0.079677
0
0
0
0.00441
0.287111
2,863
79
79
36.240506
0.844194
0.204331
0
0.181818
0
0
0.151502
0.02871
0
0
0
0
0
1
0.054545
false
0
0.109091
0
0.254545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86612e58c1d3c9004b21a40197263a8e6dc182a5
7,362
py
Python
tf_agents/bandits/agents/examples/v2/trainer.py
howards11/agents
8d5627d9b9c3680468a63564c25a4d82fa1befb0
[ "Apache-2.0" ]
3,175
2017-09-08T18:28:32.000Z
2022-03-31T01:32:22.000Z
tf_agents/bandits/agents/examples/v2/trainer.py
MFosset/agents
756f7bdf493986c25eb585438134f1dbb8045b1b
[ "Apache-2.0" ]
703
2017-09-18T05:51:57.000Z
2022-03-31T17:37:50.000Z
tf_agents/bandits/agents/examples/v2/trainer.py
MFosset/agents
756f7bdf493986c25eb585438134f1dbb8045b1b
[ "Apache-2.0" ]
844
2017-09-08T23:28:57.000Z
2022-03-30T09:29:32.000Z
# coding=utf-8 # Copyright 2020 The TF-Agents Authors. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
37.948454
89
0.740424
966
7,362
5.380952
0.291925
0.027703
0.01616
0.034629
0.175644
0.103117
0.103117
0.078107
0.078107
0.060793
0
0.004341
0.186362
7,362
193
90
38.145078
0.863439
0.338631
0
0.035088
0
0
0.030659
0
0
0
0
0.005181
0
1
0.061404
false
0.008772
0.096491
0
0.192982
0.008772
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86614dcad65e20388a5967a40083bdb556db6db0
2,469
py
Python
rally_openstack/cfg/manila.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
rally_openstack/cfg/manila.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
rally_openstack/cfg/manila.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
1
2018-12-10T12:31:27.000Z
2018-12-10T12:31:27.000Z
# Copyright 2013: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
35.271429
78
0.651681
288
2,469
5.444444
0.354167
0.070153
0.097577
0.143495
0.638393
0.579719
0.579719
0.524235
0.446429
0.432398
0
0.018569
0.258404
2,469
69
79
35.782609
0.837794
0.243013
0
0.660377
0
0
0.443366
0.149407
0
0
0
0
0
1
0
false
0
0.018868
0
0.018868
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86624e00bb7b419aff83121a582546742f805433
571
py
Python
app/backend/app/crud/crud_register_invoice.py
matayoos/invoice-scrapper
d36c944c10714e61d304693d0fce28769d2a746a
[ "MIT" ]
null
null
null
app/backend/app/crud/crud_register_invoice.py
matayoos/invoice-scrapper
d36c944c10714e61d304693d0fce28769d2a746a
[ "MIT" ]
null
null
null
app/backend/app/crud/crud_register_invoice.py
matayoos/invoice-scrapper
d36c944c10714e61d304693d0fce28769d2a746a
[ "MIT" ]
null
null
null
from sqlalchemy.orm.session import Session from app import crud from .utils import insert, get_content def register_invoice(db: Session, url: str): content = get_content.get_invoice_info(url) grocery_store_id = insert.insert_grocery_store_info( db, obj_in=content["grocery_store"] ) invoice_...
27.190476
83
0.749562
83
571
4.807229
0.313253
0.180451
0.140351
0.100251
0.220551
0
0
0
0
0
0
0
0.161121
571
20
84
28.55
0.832985
0
0
0
0
0
0.043783
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8666c057450744d94668536ee8580d907346f31a
28,602
py
Python
tools/genapixml.py
garronej/linphone
f61a337f5363b991d6e866a6aa7d303658c04073
[ "BSD-2-Clause" ]
null
null
null
tools/genapixml.py
garronej/linphone
f61a337f5363b991d6e866a6aa7d303658c04073
[ "BSD-2-Clause" ]
null
null
null
tools/genapixml.py
garronej/linphone
f61a337f5363b991d6e866a6aa7d303658c04073
[ "BSD-2-Clause" ]
1
2021-03-17T10:04:06.000Z
2021-03-17T10:04:06.000Z
#!/usr/bin/python # Copyright (C) 2014 Belledonne Communications SARL # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version....
35.977358
149
0.706559
3,369
28,602
5.897596
0.133868
0.017313
0.014042
0.008153
0.373144
0.321204
0.278424
0.232926
0.213196
0.208868
0
0.003129
0.161912
28,602
794
150
36.02267
0.825748
0.035767
0
0.267806
0
0.004274
0.120401
0.045214
0
0
0
0
0
1
0.071225
false
0.001425
0.011396
0.005698
0.135328
0.029915
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86686cf65534bfae5dd8d13670449f7c68cf0bb3
2,226
py
Python
yolk/test/utils.py
yolkdata/yolk-python
978d98cbe637c1309a1be766a40bb874e996c61d
[ "MIT", "Unlicense" ]
null
null
null
yolk/test/utils.py
yolkdata/yolk-python
978d98cbe637c1309a1be766a40bb874e996c61d
[ "MIT", "Unlicense" ]
null
null
null
yolk/test/utils.py
yolkdata/yolk-python
978d98cbe637c1309a1be766a40bb874e996c61d
[ "MIT", "Unlicense" ]
null
null
null
from datetime import date, datetime, timedelta from decimal import Decimal import unittest from dateutil.tz import tzutc import six from yolk import utils class TestUtils(unittest.TestCase): def test_timezone_utils(self): now = datetime.now() utcnow = datetime.now(tz=tzutc()) self.asser...
28.177215
75
0.574573
245
2,226
5.081633
0.37551
0.084337
0.041767
0.036948
0.15261
0.15261
0.104418
0.104418
0.104418
0.104418
0
0.023718
0.299191
2,226
78
76
28.538462
0.774359
0
0
0.032787
0
0
0.093441
0
0
0
0
0
0.163934
1
0.098361
false
0
0.098361
0
0.213115
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
866878f76f3d3d6bb3a8d89014200d8e8b85019b
2,797
py
Python
09Scan/matrix.py
kw1122/MKS66
25986e79077692afbc085920af1fef276c22d967
[ "MIT" ]
null
null
null
09Scan/matrix.py
kw1122/MKS66
25986e79077692afbc085920af1fef276c22d967
[ "MIT" ]
null
null
null
09Scan/matrix.py
kw1122/MKS66
25986e79077692afbc085920af1fef276c22d967
[ "MIT" ]
null
null
null
""" A matrix will be an N sized list of 4 element lists. Each individual list will represent an [x, y, z, 1] point. For multiplication purposes, consider the lists like so: x0 x1 xn y0 y1 yn z0 z1 ... zn 1 1 1 """ import math def make_bezier(): return [ [-1, 3, -3, 1], ...
22.739837
59
0.464784
442
2,797
2.895928
0.244344
0.05625
0.05625
0.060938
0.355469
0.317969
0.235938
0.21875
0.217188
0.185938
0
0.06843
0.378262
2,797
122
60
22.92623
0.667625
0.167322
0
0.315217
0
0
0.00456
0
0
0
0
0
0
1
0.130435
false
0
0.01087
0.021739
0.23913
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
866977a21872a2e8438dbbd5f5b289547da5a50c
641
py
Python
app/flaskApp/config.py
jeanmarc2019/PTHacks2019-Planning
bc0c71588187fde8498494b3e74728c09de56f18
[ "MIT" ]
null
null
null
app/flaskApp/config.py
jeanmarc2019/PTHacks2019-Planning
bc0c71588187fde8498494b3e74728c09de56f18
[ "MIT" ]
null
null
null
app/flaskApp/config.py
jeanmarc2019/PTHacks2019-Planning
bc0c71588187fde8498494b3e74728c09de56f18
[ "MIT" ]
null
null
null
import configparser import os dir_path = os.path.dirname(os.path.realpath(__file__)) dir_path += '/cfg.ini' class Configuration(object): def __init__(self,debug=False): section = "Flask-debug" if debug else "Flask" cfg = configparser.ConfigParser() cfg.read(dir_path if debug e...
29.136364
73
0.669267
84
641
4.904762
0.440476
0.050971
0.053398
0
0
0
0
0
0
0
0
0
0.199688
641
21
74
30.52381
0.803119
0
0
0
0
0
0.148206
0.046802
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
866b4e64606eb0b8b047d742a5c885f477addc0c
1,551
py
Python
authentication/migrate.py
anae09/electionWebService
756968e5cd6db1422ae5fe8445a9e92a25953073
[ "MIT" ]
null
null
null
authentication/migrate.py
anae09/electionWebService
756968e5cd6db1422ae5fe8445a9e92a25953073
[ "MIT" ]
null
null
null
authentication/migrate.py
anae09/electionWebService
756968e5cd6db1422ae5fe8445a9e92a25953073
[ "MIT" ]
null
null
null
from flask import Flask; from configuration import Configuration; from flask_migrate import Migrate, init, migrate, upgrade; from models import database, Role, UserRole, User; from sqlalchemy_utils import database_exists, create_database; application = Flask(__name__); application.config.from_object(Configuration); m...
28.2
78
0.595745
144
1,551
6.298611
0.395833
0.115766
0.079383
0.077178
0.187431
0.103638
0.103638
0
0
0
0
0.012975
0.30432
1,551
54
79
28.722222
0.827618
0
0
0.170732
0
0
0.078659
0.029658
0
0
0
0
0
1
0
false
0.02439
0.121951
0
0.121951
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
866b8b6db3282415cf332ea707795a1897c51203
4,066
py
Python
output/ensemble_analysis.py
gitter-lab/pria-ams-enamine
b37bc7edf3c21af6653267ecd4bb9fd232eeb575
[ "MIT" ]
1
2021-09-28T23:10:05.000Z
2021-09-28T23:10:05.000Z
output/ensemble_analysis.py
gitter-lab/pria-ams-enamine
b37bc7edf3c21af6653267ecd4bb9fd232eeb575
[ "MIT" ]
null
null
null
output/ensemble_analysis.py
gitter-lab/pria-ams-enamine
b37bc7edf3c21af6653267ecd4bb9fd232eeb575
[ "MIT" ]
null
null
null
from __future__ import print_function import os import json import numpy as np def extract(file_path): if not os.path.isfile(file_path): return -1, -1, -1 with open(file_path, 'r') as f: lines = f.readlines() test_roc, test_precision, test_NEF = -1, -1, -1 for line ...
42.354167
171
0.58485
518
4,066
4.303089
0.34556
0.037685
0.080754
0.051144
0.445491
0.403769
0.349933
0.324809
0.324809
0.248542
0
0.107475
0.286031
4,066
96
172
42.354167
0.660351
0
0
0.25641
0
0
0.135448
0.074018
0
0
0
0
0
1
0.012821
false
0
0.051282
0
0.089744
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
866be250cb91ad06867da752bf60c3e580b71448
1,687
py
Python
openstack_dashboard/test/integration_tests/regions/messages.py
ankur-gupta91/block_storage
938548a3d4507dc56c1c26b442767eb41aa2e610
[ "Apache-2.0" ]
1
2021-01-02T03:34:19.000Z
2021-01-02T03:34:19.000Z
openstack_dashboard/test/integration_tests/regions/messages.py
ankur-gupta91/block_storage
938548a3d4507dc56c1c26b442767eb41aa2e610
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/test/integration_tests/regions/messages.py
ankur-gupta91/block_storage
938548a3d4507dc56c1c26b442767eb41aa2e610
[ "Apache-2.0" ]
null
null
null
# 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, software # d...
36.673913
79
0.711322
224
1,687
5.165179
0.535714
0.051858
0.022472
0.027658
0
0
0
0
0
0
0
0.003731
0.205691
1,687
45
80
37.488889
0.859701
0.405453
0
0
0
0
0.054767
0
0
0
0
0
0
1
0.173913
false
0
0.130435
0.086957
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
866d362b7d20329b9a8556ff353eba1624b11b05
8,175
py
Python
model_input.py
bgarbin/GUIDE
06bca4e696b97ca14c11d74844d3b3ab7287f8f1
[ "MIT" ]
null
null
null
model_input.py
bgarbin/GUIDE
06bca4e696b97ca14c11d74844d3b3ab7287f8f1
[ "MIT" ]
null
null
null
model_input.py
bgarbin/GUIDE
06bca4e696b97ca14c11d74844d3b3ab7287f8f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np #import cmath as cm # Main parameters for window # 'record_every': number of time_steps one between two consecutive record events window_params = {'kernel': 'RK4','nstep_update_plot': 100, 'step_size': 0.01, 'array_size': 10000, 'streaming': True, 'record_state':False, ...
65.4
761
0.651865
1,191
8,175
4.361041
0.235936
0.035425
0.020793
0.022911
0.371005
0.337505
0.295918
0.240855
0.198883
0.185791
0
0.032697
0.154495
8,175
124
762
65.927419
0.71875
0.431437
0
0
0
0
0.318399
0
0
0
0
0
0
1
0.2
false
0.014286
0.014286
0.085714
0.385714
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
866eb114075c78f8e3231df363ccab857402a80e
1,464
py
Python
input/EnvEq/pairwise/Tneg-Tpro/u_lim_o2Tpro-u_lim_o2Tneg/parallelizer.py
Harshavardhan-BV/Cancer-compe-strat
e4decacd5779e85a68c81d0ce3bedf42dea2964f
[ "MIT" ]
1
2020-10-18T15:54:26.000Z
2020-10-18T15:54:26.000Z
input/EnvEq/pairwise/Tneg-Tpro/u_lim_o2Tpro-u_lim_o2Tneg/parallelizer.py
Harshavardhan-BV/Cancer-compe-strat
e4decacd5779e85a68c81d0ce3bedf42dea2964f
[ "MIT" ]
null
null
null
input/EnvEq/pairwise/Tneg-Tpro/u_lim_o2Tpro-u_lim_o2Tneg/parallelizer.py
Harshavardhan-BV/Cancer-compe-strat
e4decacd5779e85a68c81d0ce3bedf42dea2964f
[ "MIT" ]
null
null
null
from multiprocessing import Pool import EnvEq as ee import numpy as np import itertools as it import os #parsing input into numpy arrays from input import * y0=np.array([y0_Tpos,y0_Tpro,y0_Tneg,y0_o2,y0_test]) p=np.array([p_o2,p_test]) mu=np.array([[mu_o2Tpos,mu_o2Tpro,mu_o2Tneg],[mu_testTpos,mu_testTpro,0]]) lam=np.a...
34.046512
190
0.733607
296
1,464
3.317568
0.327703
0.040733
0.03055
0.020367
0.059063
0.03055
0.03055
0.03055
0
0
0
0.046353
0.101093
1,464
42
191
34.857143
0.699848
0.125
0
0
0
0
0.034483
0.018025
0
0
0
0
0
1
0.030303
false
0.030303
0.181818
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
866f56e685c4eea3f8e5c6a81ebbf185f955f32d
4,495
py
Python
task1_makeTrainingDataset.py
1985312383/contest
c4734647ad436cf5884075f906a3e9f10fc4dcfa
[ "Apache-2.0" ]
2
2021-12-10T08:38:47.000Z
2021-12-31T08:44:18.000Z
task1_makeTrainingDataset.py
huxiaoyi0625/Mathematical_Modeling_Contest_E_2021
40293aa2375daa46d2351870c72394d4e1114081
[ "Apache-2.0" ]
null
null
null
task1_makeTrainingDataset.py
huxiaoyi0625/Mathematical_Modeling_Contest_E_2021
40293aa2375daa46d2351870c72394d4e1114081
[ "Apache-2.0" ]
null
null
null
import csv import re import numpy as np thre = 1.5 # 要调整的参数,这个是阈值 iteration_num = 2 # 要调整的参数,这个是迭代次数 def KalmanFilter(z, n_iter=20): # 卡尔曼滤波 # 这里是假设A=1,H=1的情况 # intial parameters sz = (n_iter,) # size of array # Q = 1e-5 # process variance Q = 1e-6 # process variance # allocate space...
36.544715
117
0.602447
691
4,495
3.761216
0.259045
0.111581
0.038092
0.021162
0.172374
0.104656
0.060023
0.003848
0
0
0
0.026956
0.240712
4,495
122
118
36.844262
0.734544
0.193103
0
0.033333
0
0.011111
0.051854
0.037078
0
0
0
0
0
1
0.055556
false
0.011111
0.033333
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86720b27c369fdf8140425890d2127c46b5bc111
24,252
py
Python
editing files/Portable Python 3.2.5.1/App/Lib/site-packages/serial/serialposix.py
mattl1598/testing
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
null
null
null
editing files/Portable Python 3.2.5.1/App/Lib/site-packages/serial/serialposix.py
mattl1598/testing
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
1
2018-04-15T22:59:15.000Z
2018-04-15T22:59:15.000Z
editing files/Portable Python 3.2.5.1/App/Lib/site-packages/serial/serialposix.py
mattl1598/Project-Mochachino
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # # Python Serial Port Extension for Win32, Linux, BSD, Jython # module for serial IO for POSIX compatible systems, like Linux # see __init__.py # # (C) 2001-2010 Chris Liechti <cliechti@gmx.net> # this is distributed under a free software license, see license.txt # # parts based on code from Gran...
37.253456
117
0.601023
3,031
24,252
4.74101
0.230287
0.022547
0.013779
0.012526
0.304384
0.262004
0.23723
0.212596
0.177314
0.170007
0
0.036041
0.302119
24,252
650
118
37.310769
0.812999
0.250247
0
0.323256
0
0
0.106066
0
0
0
0.006391
0
0
1
0.106977
false
0.006977
0.018605
0.027907
0.183721
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
867600e9a45eebd6cdfd857a6ba6c53cc063cb70
845
py
Python
retro_star/utils/logger.py
cthoyt/retro_star
280231eb2f5dffc0e14bed300d770977b323205a
[ "MIT" ]
65
2020-06-27T04:28:21.000Z
2022-03-30T11:18:22.000Z
retro_star/utils/logger.py
cthoyt/retro_star
280231eb2f5dffc0e14bed300d770977b323205a
[ "MIT" ]
15
2020-07-07T13:17:05.000Z
2022-03-22T12:52:29.000Z
retro_star/utils/logger.py
cthoyt/retro_star
280231eb2f5dffc0e14bed300d770977b323205a
[ "MIT" ]
14
2020-06-30T09:22:13.000Z
2022-03-30T11:18:28.000Z
import logging def setup_logger(fname=None, silent=False): if fname is None: logging.basicConfig( level=logging.INFO if not silent else logging.CRITICAL, format='%(name)-12s: %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M', filemode='w' ) els...
33.8
81
0.571598
91
845
5.296703
0.428571
0.068465
0.099585
0.112033
0.497925
0.497925
0.443983
0.443983
0.443983
0.443983
0
0.014901
0.285207
845
24
82
35.208333
0.783113
0
0
0.363636
0
0
0.183432
0
0
0
0
0
0
1
0.045455
false
0
0.045455
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86760e9869adb9d8e359c444118b7fb153ad2c74
63,014
py
Python
Packs/MISP/Integrations/MISPV3/MISPV3.py
hiep4hiep/content
f609c4c9548fe2188e8e2e00b2c9e80a74e24427
[ "MIT" ]
null
null
null
Packs/MISP/Integrations/MISPV3/MISPV3.py
hiep4hiep/content
f609c4c9548fe2188e8e2e00b2c9e80a74e24427
[ "MIT" ]
42
2022-03-11T10:52:26.000Z
2022-03-31T01:50:42.000Z
Packs/MISP/Integrations/MISPV3/MISPV3.py
hiep4hiep/content
f609c4c9548fe2188e8e2e00b2c9e80a74e24427
[ "MIT" ]
null
null
null
# type: ignore from typing import Union, List, Dict from urllib.parse import urlparse import urllib3 from pymisp import ExpandedPyMISP, PyMISPError, MISPObject, MISPSighting, MISPEvent, MISPAttribute from pymisp.tools import GenericObjectGenerator import copy from pymisp.tools import FileObject from CommonServerPytho...
41.869767
120
0.674295
8,050
63,014
5.019876
0.085466
0.025588
0.019055
0.01465
0.406533
0.334967
0.282999
0.235882
0.198293
0.161594
0
0.003746
0.224775
63,014
1,504
121
41.897606
0.823378
0.152442
0
0.202912
0
0.00546
0.177397
0.017067
0
0
0
0
0
1
0.057325
false
0.00273
0.007279
0.00091
0.134668
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8678e0fdfc11399c75f91f8ec0af910ceb4aab00
3,212
py
Python
python_survey/finished_files/main.py
trenton3983/PyCharmProjects
fae8653a25e07e7384eb0ddf6ea191adeb44face
[ "MIT" ]
null
null
null
python_survey/finished_files/main.py
trenton3983/PyCharmProjects
fae8653a25e07e7384eb0ddf6ea191adeb44face
[ "MIT" ]
null
null
null
python_survey/finished_files/main.py
trenton3983/PyCharmProjects
fae8653a25e07e7384eb0ddf6ea191adeb44face
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import scipy.stats from finished_files.survey_data_dictionary import DATA_DICTIONARY # Load data # We want to take the names list from our data dictionary names = [x.name for x in DATA_DICTIONARY] # Generate the list of names to import usecols =...
31.184466
79
0.699253
515
3,212
4.264078
0.384466
0.051002
0.010929
0.018215
0.160747
0.075137
0.075137
0
0
0
0
0.014965
0.188668
3,212
103
80
31.184466
0.827705
0.362702
0
0.039216
0
0
0.195749
0.091943
0
0
0
0
0
1
0
false
0
0.098039
0
0.098039
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8679399f0ab155a65d5523949359b9a4e0752af4
4,918
py
Python
adet/modeling/embedmask/mask_pred.py
yinghdb/AdelaiDet
94a9b7cde92fb039852f876964d991a1f3e15af4
[ "BSD-2-Clause" ]
3
2021-05-21T08:02:48.000Z
2021-11-05T11:06:40.000Z
adet/modeling/embedmask/mask_pred.py
yinghdb/AdelaiDet
94a9b7cde92fb039852f876964d991a1f3e15af4
[ "BSD-2-Clause" ]
null
null
null
adet/modeling/embedmask/mask_pred.py
yinghdb/AdelaiDet
94a9b7cde92fb039852f876964d991a1f3e15af4
[ "BSD-2-Clause" ]
1
2021-05-24T06:53:32.000Z
2021-05-24T06:53:32.000Z
import torch from torch.nn import functional as F from torch import nn from torch.autograd import Variable from adet.utils.comm import compute_locations, aligned_bilinear def dice_coefficient(x, target): eps = 1e-5 n_inst = x.size(0) x = x.reshape(n_inst, -1) target = target.reshape(n_inst, -1) in...
36.42963
135
0.637861
698
4,918
4.239255
0.23639
0.032443
0.033119
0.017574
0.25414
0.196688
0.165259
0.129774
0.104765
0.077729
0
0.01898
0.250102
4,918
134
136
36.701493
0.783351
0.06344
0
0.153061
0
0
0.01096
0
0
0
0
0
0.020408
1
0.081633
false
0
0.05102
0.010204
0.234694
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8679dfd086b9b3768ebf7c42ebcbb01fc263b720
2,569
py
Python
bongo/core.py
codeforamerica/bongo
a1b162c54fc51630ae1cfac16e1c136b0ff320a3
[ "BSD-3-Clause" ]
null
null
null
bongo/core.py
codeforamerica/bongo
a1b162c54fc51630ae1cfac16e1c136b0ff320a3
[ "BSD-3-Clause" ]
null
null
null
bongo/core.py
codeforamerica/bongo
a1b162c54fc51630ae1cfac16e1c136b0ff320a3
[ "BSD-3-Clause" ]
1
2021-04-17T10:21:05.000Z
2021-04-17T10:21:05.000Z
""" A simple wrapper for the Bongo Iowa City bus API. """ import requests as req class Bongo(object): """ A simple Python wrapper for the Bongo Iowa City bus API. """ def __init__(self, format='json'): self.format = format def get(self, endpoint, **kwargs): """Perform a HTTP GET...
27.623656
72
0.534838
280
2,569
4.885714
0.310714
0.04386
0.028509
0.046053
0.180556
0.128655
0.084795
0.084795
0
0
0
0.023269
0.330868
2,569
92
73
27.923913
0.772542
0.318801
0
0.238095
0
0
0.088699
0
0
0
0
0
0
1
0.190476
false
0
0.02381
0
0.404762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
867a45f315cdcc7854ea80a22125e3ed4f3423db
1,671
py
Python
src/security/tcp_flooding.py
janaSunrise/useful-python-snippets
f03285b8f0b44f87326ca982129dab80a18697f5
[ "Apache-2.0" ]
1
2021-03-15T16:48:05.000Z
2021-03-15T16:48:05.000Z
src/security/tcp_flooding.py
janaSunrise/useful-python-snippets
f03285b8f0b44f87326ca982129dab80a18697f5
[ "Apache-2.0" ]
null
null
null
src/security/tcp_flooding.py
janaSunrise/useful-python-snippets
f03285b8f0b44f87326ca982129dab80a18697f5
[ "Apache-2.0" ]
null
null
null
import random import socket import string import sys import threading import time def attack(host: str, port: int = 80, request_count: int = 10 ** 10) -> None: # Threading support thread_num = 0 thread_num_mutex = threading.Lock() # Utility function def print_status() -> None: global thre...
26.109375
88
0.591263
209
1,671
4.583732
0.497608
0.065762
0.043841
0
0
0
0
0
0
0
0
0.015715
0.276481
1,671
63
89
26.52381
0.776675
0.020347
0
0.043478
0
0
0.134639
0.014688
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.23913
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
867addf71ccf4a2d2cc021bb3410dbc784317269
319
py
Python
test.py
wangjm12138/Yolov3_wang
3d143c7cd863dec796edede3faedacc6590cab5e
[ "MIT" ]
null
null
null
test.py
wangjm12138/Yolov3_wang
3d143c7cd863dec796edede3faedacc6590cab5e
[ "MIT" ]
8
2020-01-28T22:17:25.000Z
2022-03-12T00:04:30.000Z
test.py
wangjm12138/Yolov3_wang
3d143c7cd863dec796edede3faedacc6590cab5e
[ "MIT" ]
null
null
null
import random class Yolov3(object): def __init__(self): self.num=0 self.input_size=[8,16,32] def __iter__(self): return self def __next__(self): a = random.choice(self.input_size) self.num=self.num+1 if self.num<3: return a else: raise StopIteration yolo=Yolov3() for data in yolo: print(data)
16.789474
36
0.702194
53
319
3.962264
0.584906
0.133333
0.12381
0
0
0
0
0
0
0
0
0.038023
0.175549
319
18
37
17.722222
0.760456
0
0
0
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.058824
0.058824
0.411765
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
867b9f7391f64037b68d280aea495bc5295d4119
1,256
py
Python
utils/turkish.py
derenyilmaz/personality-analysis-framework
9e1f3ac1047b1df07498159de23f88f87644d195
[ "MIT" ]
1
2021-09-15T14:44:45.000Z
2021-09-15T14:44:45.000Z
utils/turkish.py
derenyilmaz/personality-analysis-framework
9e1f3ac1047b1df07498159de23f88f87644d195
[ "MIT" ]
1
2022-03-12T00:48:01.000Z
2022-03-12T00:48:01.000Z
utils/turkish.py
derenyilmaz/personality-analysis-framework
9e1f3ac1047b1df07498159de23f88f87644d195
[ "MIT" ]
null
null
null
class TurkishText(): """Class for handling lowercase/uppercase conversions of Turkish characters.. Attributes: text -- Turkish text to be handled """ text = "" l = ['ı', 'ğ', 'ü', 'ş', 'i', 'ö', 'ç'] u = ['I', 'Ğ', 'Ü', 'Ş', 'İ', 'Ö', 'Ç'] def __init__(self, text): self.te...
26.166667
86
0.468153
151
1,256
3.874172
0.344371
0.068376
0.047863
0.046154
0.283761
0.157265
0.157265
0.157265
0.157265
0.157265
0
0.003891
0.386147
1,256
47
87
26.723404
0.753567
0.265924
0
0.321429
0
0
0.017921
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
868018c92dba01d6288623e8f84851ac57ade115
3,427
py
Python
tf/estimators/keras_estimator.py
aspratyush/dl_utils
c067831f3c72aba88223c231c7fbc249d997e222
[ "Apache-2.0" ]
null
null
null
tf/estimators/keras_estimator.py
aspratyush/dl_utils
c067831f3c72aba88223c231c7fbc249d997e222
[ "Apache-2.0" ]
null
null
null
tf/estimators/keras_estimator.py
aspratyush/dl_utils
c067831f3c72aba88223c231c7fbc249d997e222
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function # Imports import os import numpy as np import tensorflow as tf def run(model, X, Y, optimizer=None, nb_epochs=30, nb_batches=128): """ Run the estimator """ if optimizer is None: optim...
31.731481
85
0.66443
463
3,427
4.688985
0.25054
0.051589
0.023952
0.033164
0.376785
0.361124
0.361124
0.330723
0.239521
0.239521
0
0.017202
0.23665
3,427
107
86
32.028037
0.812691
0.254158
0
0.218182
0
0
0.056718
0.019308
0
0
0
0
0
1
0.036364
false
0
0.109091
0
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8681c3c33618ecd1ae623aef1502da24ff44d7f8
15,279
py
Python
isign/archive.py
l0ui3/isign
c0730ac1ce1b32defe8c6016e19b9701184b0f5a
[ "Apache-2.0" ]
1
2020-03-24T14:22:17.000Z
2020-03-24T14:22:17.000Z
isign/archive.py
l0ui3/isign
c0730ac1ce1b32defe8c6016e19b9701184b0f5a
[ "Apache-2.0" ]
null
null
null
isign/archive.py
l0ui3/isign
c0730ac1ce1b32defe8c6016e19b9701184b0f5a
[ "Apache-2.0" ]
1
2021-08-16T04:03:25.000Z
2021-08-16T04:03:25.000Z
""" Represents an app archive. This is an app at rest, whether it's a naked app bundle in a directory, or a zipped app bundle, or an IPA. We have a common interface to extract these apps to a temp file, then resign them, and create an archive of the same type """ import abc import biplist from bundle impor...
37.540541
97
0.638458
1,978
15,279
4.749747
0.189585
0.027781
0.039808
0.015647
0.22363
0.173922
0.124747
0.107078
0.094518
0.08579
0
0.000906
0.277243
15,279
406
98
37.633005
0.84986
0.258328
0
0.340659
0
0
0.070612
0.004207
0
0
0
0
0
1
0.117216
false
0.018315
0.051282
0.014652
0.296703
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86852eaa353d7f71b07181e8c40327dffa81fc7f
12,985
py
Python
config/appdaemon/apps/power_alarm.py
azogue/hassio_config
591f158794c173d6391179ab2f52348d58c49aad
[ "MIT" ]
18
2018-07-22T15:19:20.000Z
2022-01-09T20:57:43.000Z
config/appdaemon/apps/power_alarm.py
azogue/hassio_config
591f158794c173d6391179ab2f52348d58c49aad
[ "MIT" ]
1
2020-04-30T08:33:36.000Z
2020-05-03T08:25:00.000Z
config/appdaemon/apps/power_alarm.py
azogue/hassio_config
591f158794c173d6391179ab2f52348d58c49aad
[ "MIT" ]
8
2018-07-21T09:29:53.000Z
2021-11-10T19:06:32.000Z
# -*- coding: utf-8 -*- """ Automation task as a AppDaemon App for Home Assistant - current meter PEAK POWER notifications """ import datetime as dt from enum import IntEnum import appdaemon.plugins.hass.hassapi as hass LOG_LEVEL = "INFO" LOG_LEVEL_ALERT = "WARNING" LOGGER = "special_event_log" COEF_CRITICAL_LIMIT ...
35.285326
79
0.5196
1,368
12,985
4.602339
0.190789
0.03669
0.035737
0.021125
0.394854
0.310515
0.254288
0.214263
0.16026
0.141677
0
0.006724
0.392992
12,985
367
80
35.381471
0.791931
0.082095
0
0.40411
0
0
0.1353
0.018677
0
0
0
0.002725
0
1
0.023973
false
0
0.010274
0
0.123288
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86857d42e426b63b37d2aa71caa37b9b57dd862e
13,391
py
Python
mailmynet/Maildir/proxy_postfix/Twisted-11.0.0/build/lib.linux-x86_64-2.6/twisted/internet/gtk2reactor.py
SPIN-UMass/SWEET
1b0f39222e7064f70812e3293ca023619295741d
[ "MIT" ]
3
2020-04-02T06:23:44.000Z
2020-08-13T20:32:31.000Z
mailmynet/Maildir/proxy_postfix/Twisted-11.0.0/twisted/internet/gtk2reactor.py
SPIN-UMass/SWEET
1b0f39222e7064f70812e3293ca023619295741d
[ "MIT" ]
null
null
null
mailmynet/Maildir/proxy_postfix/Twisted-11.0.0/twisted/internet/gtk2reactor.py
SPIN-UMass/SWEET
1b0f39222e7064f70812e3293ca023619295741d
[ "MIT" ]
1
2020-04-02T06:26:10.000Z
2020-04-02T06:26:10.000Z
# -*- test-case-name: twisted.internet.test -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ This module provides support for Twisted to interact with the glib/gtk2 mainloop. In order to use this support, simply do the following:: | from twisted.internet import gtk2reactor | ...
33.394015
92
0.633933
1,604
13,391
5.193267
0.26808
0.023409
0.015126
0.013806
0.219208
0.196399
0.154382
0.144778
0.144778
0.132533
0
0.00752
0.284968
13,391
400
93
33.4775
0.862454
0.356135
0
0.295337
0
0
0.01323
0
0
0
0
0
0
1
0.134715
false
0.005181
0.082902
0.005181
0.310881
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8687420e46b4f12f33134641d5dcf6986b995994
4,012
py
Python
bot.py
menlen/one
e24f1489d98faa9b548ebd668f2860c8d671b489
[ "Apache-2.0" ]
null
null
null
bot.py
menlen/one
e24f1489d98faa9b548ebd668f2860c8d671b489
[ "Apache-2.0" ]
null
null
null
bot.py
menlen/one
e24f1489d98faa9b548ebd668f2860c8d671b489
[ "Apache-2.0" ]
null
null
null
# This example show how to use inline keyboards and process button presses import telebot import time from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton import os, sys from PIL import Image, ImageDraw, ImageFont import random TELEGRAM_TOKEN = '1425859530:AAF5MQE87Zg_bv3B2RLe3Vl2A5rMz6vYpsA' ...
30.861538
181
0.592722
483
4,012
4.815735
0.428571
0.017197
0.020636
0.018057
0.195185
0.187446
0.171109
0.153912
0.153912
0.153912
0
0.023554
0.280409
4,012
129
182
31.100775
0.782127
0.053091
0
0.141509
0
0.018868
0.247884
0.028665
0
0
0
0
0
1
0.056604
false
0
0.056604
0
0.141509
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86880b5b73b7634f999e8879e1b07c2360a00ae8
6,256
py
Python
tests/unit/types/message/test_message.py
Immich/jina
1f5f7cf4d82029d76ab41df157526fe6f6e0da50
[ "Apache-2.0" ]
1
2021-02-25T19:28:50.000Z
2021-02-25T19:28:50.000Z
tests/unit/types/message/test_message.py
Immich/jina
1f5f7cf4d82029d76ab41df157526fe6f6e0da50
[ "Apache-2.0" ]
4
2020-09-01T17:47:27.000Z
2021-04-16T23:11:57.000Z
tests/unit/types/message/test_message.py
Immich/jina
1f5f7cf4d82029d76ab41df157526fe6f6e0da50
[ "Apache-2.0" ]
null
null
null
import sys from typing import Sequence import pytest from jina import Request, QueryLang, Document from jina.clients.request import request_generator from jina.proto import jina_pb2 from jina.proto.jina_pb2 import EnvelopeProto from jina.types.message import Message from jina.types.request import _trigger_fields from...
32.082051
111
0.634431
853
6,256
4.520516
0.141852
0.023859
0.035788
0.033714
0.610737
0.544865
0.509855
0.466805
0.466805
0.449689
0
0.019796
0.249041
6,256
194
112
32.247423
0.800979
0.037884
0
0.426573
0
0
0.036137
0
0
0
0
0
0.370629
1
0.090909
false
0
0.06993
0
0.160839
0.013986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
868a5177cfe7a43dcc855371fdd275a394644658
2,074
py
Python
homeassistant/components/eight_sleep/binary_sensor.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
2
2020-01-03T17:06:33.000Z
2020-01-13T18:57:32.000Z
homeassistant/components/eight_sleep/binary_sensor.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
1,016
2019-06-18T21:27:47.000Z
2020-03-06T11:09:58.000Z
homeassistant/components/eight_sleep/binary_sensor.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
null
null
null
"""Support for Eight Sleep binary sensors.""" from __future__ import annotations import logging from pyeight.eight import EightSleep from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.core import HomeAssistant from homeassistant.helpers.enti...
28.805556
81
0.700579
220
2,074
6.368182
0.390909
0.060671
0.031406
0.025696
0
0
0
0
0
0
0
0
0.217454
2,074
71
82
29.211268
0.863216
0.07377
0
0.078431
0
0
0.027464
0
0
0
0
0
0.039216
1
0.039216
false
0
0.196078
0
0.313725
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
868d3680b0c2bd4371570ee9b629404359f69eee
1,220
py
Python
apps/organization/urls.py
stormsha/StormOnline
10983b7a9ee09958927731ee3fd74178d7534ff6
[ "Apache-2.0" ]
18
2018-03-16T07:11:01.000Z
2021-11-18T08:42:11.000Z
apps/organization/urls.py
stormsha/StormOnline
10983b7a9ee09958927731ee3fd74178d7534ff6
[ "Apache-2.0" ]
1
2018-03-15T11:40:25.000Z
2018-03-15T11:40:25.000Z
apps/organization/urls.py
stormsha/StormOnline
10983b7a9ee09958927731ee3fd74178d7534ff6
[ "Apache-2.0" ]
13
2018-03-16T07:11:05.000Z
2020-06-23T09:27:49.000Z
# _*_ coding: utf-8 _*_ # --------------------------- __author__ = 'StormSha' __date__ = '2018/3/28 18:01' # --------------------------- # -------------------------django---------------------- from django.conf.urls import url from .views import OrgView, AddUserAskView, OrgHomeView, OrgCourseView, OrgDescView, OrgTeach...
48.8
111
0.566393
142
1,220
4.598592
0.323944
0.05513
0.137825
0.099541
0
0
0
0
0
0
0
0.010889
0.096721
1,220
25
112
48.8
0.58167
0.193443
0
0
0
0
0.294479
0.141104
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
868dd694341f559c01703d972c3b261cb6620ffe
571
py
Python
tech_project/lib/python2.7/site-packages/filer/migrations/0010_auto_20180414_2058.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
tech_project/lib/python2.7/site-packages/filer/migrations/0010_auto_20180414_2058.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
11
2019-11-02T20:57:52.000Z
2020-09-27T09:08:33.000Z
tech_project/lib/python2.7/site-packages/filer/migrations/0010_auto_20180414_2058.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
4
2018-08-07T17:13:48.000Z
2019-06-13T11:09:32.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('filer', '0009_auto_20171220_1635'), ] operations = [ migrations.AlterField( mod...
27.190476
187
0.670753
64
571
5.734375
0.65625
0.065395
0.076294
0.119891
0
0
0
0
0
0
0
0.037611
0.208406
571
20
188
28.55
0.774336
0.036778
0
0
0
0
0.122263
0.041971
0
0
0
0
0
1
0
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
868dd7b75196bf80f589754ce91dc36872de638a
12,166
py
Python
SLHCUpgradeSimulations/Configuration/python/aging.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
SLHCUpgradeSimulations/Configuration/python/aging.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
SLHCUpgradeSimulations/Configuration/python/aging.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # handle normal mixing or premixing def getHcalDigitizer(process): if hasattr(process,'mixData'): return process.mixData if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'hcal'): return process.mix.digiti...
44.40146
176
0.715025
1,347
12,166
6.331106
0.213066
0.044207
0.0394
0.025797
0.504573
0.418386
0.355183
0.304526
0.268293
0.211069
0
0.033714
0.185681
12,166
273
177
44.564103
0.827092
0.088279
0
0.235294
0
0
0.083642
0.045344
0
0
0
0.003663
0
1
0.117647
false
0
0.036199
0
0.298643
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
868de8e68215f41c7a22fbffe3549ae81cd16557
10,106
py
Python
xml_parser.py
cbschaff/nlimb
f0564b00bab1b3367aaa88163e49bebc88f349bb
[ "MIT" ]
12
2018-10-26T19:33:05.000Z
2022-01-17T11:47:59.000Z
xml_parser.py
cbschaff/nlimb
f0564b00bab1b3367aaa88163e49bebc88f349bb
[ "MIT" ]
9
2020-01-28T22:30:55.000Z
2022-03-11T23:32:04.000Z
xml_parser.py
cbschaff/nlimb
f0564b00bab1b3367aaa88163e49bebc88f349bb
[ "MIT" ]
3
2019-07-09T14:56:01.000Z
2019-11-18T06:58:41.000Z
import numpy as np import xml.etree.ElementTree as ET class Geom(object): def __init__(self, geom): self.xml = geom self.params = [] def get_params(self): return self.params.copy() def set_params(self, new_params): self.params = new_params def update_point(self, p, ne...
33.574751
169
0.608351
1,449
10,106
4.069703
0.132505
0.026454
0.028489
0.024419
0.474818
0.374089
0.290487
0.224182
0.196201
0.149059
0
0.023403
0.247378
10,106
300
170
33.686667
0.751906
0.02355
0
0.306723
0
0
0.054981
0.02465
0
0
0
0
0.029412
1
0.193277
false
0.02521
0.02521
0.067227
0.37395
0.037815
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
868f0e1cedcadcbc2d277dd9469765ca291fed6d
689
py
Python
meiduo_mall/celery_tasks/sms/tasks.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
meiduo_mall/celery_tasks/sms/tasks.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
meiduo_mall/celery_tasks/sms/tasks.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
from ronglian_sms_sdk import SmsSDK from celery_tasks.main import app # 写我们的任务(函数) # 任务必须要celery的实例对象装饰器task装饰 # 任务包的任务需要celery调用自检检查函数。(在main里面写。) @app.task def celery_send_sms_code(mobile, sms_code): accId = '8a216da8762cb4570176c60593ba35ec' accToken = '514a8783b8c2481ebbeb6a814434796f' appId = '8a216da...
32.809524
65
0.703919
79
689
6.037975
0.670886
0.044025
0
0
0
0
0
0
0
0
0
0.158645
0.185776
689
21
66
32.809524
0.691622
0.335269
0
0
0
0
0.220982
0.214286
0
0
0
0
0
1
0.083333
false
0
0.166667
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
86920ec1c0159b8548b81683e13e218d1875aaf1
33,860
py
Python
python/test_pip_package.py
syt123450/tfjs-converter
a90fa59a44d9425beb7b1584fe753c62d62bbc4d
[ "Apache-2.0" ]
null
null
null
python/test_pip_package.py
syt123450/tfjs-converter
a90fa59a44d9425beb7b1584fe753c62d62bbc4d
[ "Apache-2.0" ]
null
null
null
python/test_pip_package.py
syt123450/tfjs-converter
a90fa59a44d9425beb7b1584fe753c62d62bbc4d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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, s...
38.741419
88
0.674778
4,231
33,860
5.193808
0.099504
0.019113
0.027759
0.023572
0.705893
0.676724
0.647645
0.629989
0.605961
0.58967
0
0.014756
0.205434
33,860
873
89
38.785796
0.802037
0.167218
0
0.643902
0
0
0.137504
0.038757
0
0
0
0
0.162602
1
0.056911
false
0
0.037398
0
0.104065
0.001626
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
869310d00b7b8dcf8e18a56efd569e5ae8396471
7,195
py
Python
script.ezclean/resources/lib/modules/skinz.py
rrosajp/script.ezclean
ed6fbe6441713a3c96ce15a595cdd5c69291355f
[ "MIT" ]
5
2019-03-12T23:10:48.000Z
2021-05-06T05:31:26.000Z
script.ezclean/resources/lib/modules/skinz.py
rrosajp/script.ezclean-1
ed6fbe6441713a3c96ce15a595cdd5c69291355f
[ "MIT" ]
3
2019-03-17T21:53:29.000Z
2019-04-22T16:44:38.000Z
script.ezclean/resources/lib/modules/skinz.py
rrosajp/script.ezclean-1
ed6fbe6441713a3c96ce15a595cdd5c69291355f
[ "MIT" ]
4
2019-03-17T21:17:19.000Z
2020-03-30T12:45:33.000Z
# -*- coding: UTF-8 -*- import os, re, shutil, time, xbmc from resources.lib.modules import control try: import json as simplejson except: import simplejson ADDONS = os.path.join(control.HOMEPATH, 'addons') def currSkin(): return control.skin def getOld(old): try: old = '"%s"' % old quer...
46.720779
254
0.580542
826
7,195
5.054479
0.232446
0.015808
0.017246
0.016766
0.36024
0.262515
0.232814
0.212695
0.212695
0.195928
0
0.010876
0.246004
7,195
153
255
47.026144
0.75871
0.002919
0
0.157895
0
0.045113
0.282845
0.082287
0
0
0
0
0
1
0.052632
false
0.015038
0.030075
0.007519
0.112782
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86939231df10a74a6b6c8263b5d61c5806d7e19e
10,360
py
Python
pyhap/characteristic.py
bdraco/HAP-python
a2a5ce109d08af2f4f5bda4075f2176a98123806
[ "Apache-2.0" ]
null
null
null
pyhap/characteristic.py
bdraco/HAP-python
a2a5ce109d08af2f4f5bda4075f2176a98123806
[ "Apache-2.0" ]
null
null
null
pyhap/characteristic.py
bdraco/HAP-python
a2a5ce109d08af2f4f5bda4075f2176a98123806
[ "Apache-2.0" ]
null
null
null
""" All things for a HAP characteristic. A Characteristic is the smallest unit of the smart home, e.g. a temperature measuring or a device status. """ import logging from pyhap.const import ( HAP_PERMISSION_READ, HAP_REPR_DESC, HAP_REPR_FORMAT, HAP_REPR_IID, HAP_REPR_MAX_LEN, HAP_REPR_PERM, ...
33.099042
86
0.643629
1,285
10,360
4.927626
0.182101
0.055433
0.036955
0.026532
0.173405
0.139135
0.098389
0.050221
0.023057
0.023057
0
0.006104
0.272587
10,360
312
87
33.205128
0.83413
0.28195
0
0.074866
0
0
0.072639
0
0
0
0
0
0
1
0.058824
false
0
0.016043
0
0.128342
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8693c080676cb2787d00c99c4612bc9e39e2bff8
1,767
py
Python
configs/_base_/datasets/uniter/vqa_dataset_uniter.py
linxi1158/iMIX
af87a17275f02c94932bb2e29f132a84db812002
[ "Apache-2.0" ]
23
2021-06-26T08:45:19.000Z
2022-03-02T02:13:33.000Z
configs/_base_/datasets/uniter/vqa_dataset_uniter.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
null
null
null
configs/_base_/datasets/uniter/vqa_dataset_uniter.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
9
2021-06-10T02:36:20.000Z
2021-11-09T02:18:16.000Z
dataset_type = 'UNITER_VqaDataset' data_root = '/home/datasets/mix_data/UNITER/VQA/' train_datasets = ['train'] test_datasets = ['minival'] # name not in use, but have defined one to run vqa_cfg = dict( train_txt_dbs=[ data_root + 'vqa_train.db', data_root + 'vqa_trainval.db', data_root +...
24.205479
75
0.63837
234
1,767
4.431624
0.358974
0.077146
0.04243
0.037608
0.358727
0.32594
0.281581
0.229508
0.229508
0.229508
0
0.038777
0.241087
1,767
72
76
24.541667
0.734526
0.032258
0
0.363636
0
0
0.186987
0.046307
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
869425b882c792777c4c9df4c4e4ede390b45006
752
py
Python
students/k3340/laboratory_works/laboratory_works/Arlakov_Denis/laboratiry_work_2_and_3/lab/django-react-ecommerce-master/home/urls.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
10
2020-03-20T09:06:12.000Z
2021-07-27T13:06:02.000Z
students/k3340/laboratory_works/laboratory_works/Arlakov_Denis/laboratiry_work_2_and_3/lab/django-react-ecommerce-master/home/urls.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
134
2020-03-23T09:47:48.000Z
2022-03-12T01:05:19.000Z
students/k3340/laboratory_works/laboratory_works/Arlakov_Denis/laboratiry_work_2_and_3/lab/django-react-ecommerce-master/home/urls.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
71
2020-03-20T12:45:56.000Z
2021-10-31T19:22:25.000Z
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, include, re_path from django.views.generic import TemplateView urlpatterns = [ path('api-auth/', include('rest_framework.urls')), path('rest-auth/', include('rest_auth.urls...
32.695652
78
0.678191
94
752
5.319149
0.393617
0.1
0.056
0.064
0
0
0
0
0
0
0
0
0.179521
752
22
79
34.181818
0.810373
0
0
0
0
0
0.183511
0.066489
0
0
0
0
0
1
0
false
0
0.277778
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
869447ef2f6a217e512b23fd0c00a4c4fa0f87a0
22,881
py
Python
20200416_Socialmail/mailserverUi.py
karta1782310/python-docx-automated-report-generation
f0e02a50a9e9547d131e583be0711aad72f08b51
[ "MIT" ]
null
null
null
20200416_Socialmail/mailserverUi.py
karta1782310/python-docx-automated-report-generation
f0e02a50a9e9547d131e583be0711aad72f08b51
[ "MIT" ]
null
null
null
20200416_Socialmail/mailserverUi.py
karta1782310/python-docx-automated-report-generation
f0e02a50a9e9547d131e583be0711aad72f08b51
[ "MIT" ]
null
null
null
#!/bin/bash # -*- coding: UTF-8 -*- # 基本控件都在这里面 from PyQt5.QtWebEngineWidgets import QWebEngineView from PyQt5.QtWidgets import (QApplication, QMainWindow, QWidget, QGridLayout, QMessageBox, QFileDialog, QLabel, QLineEdit, QPushButton, QComboBox, QCheckBox, QDateTimeEdit, ...
41.75365
151
0.617193
2,943
22,881
4.561332
0.133877
0.036651
0.077846
0.082241
0.445694
0.357122
0.330676
0.303784
0.248063
0.1802
0
0.022542
0.261309
22,881
548
152
41.75365
0.771625
0.019405
0
0.221957
0
0
0.04008
0.001039
0
0
0
0
0
1
0.062053
false
0.009547
0.033413
0.002387
0.112172
0.009547
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86947b6782d353d9c52f3c8165971a18131a9c5c
3,869
py
Python
nntools/layers/corrmm.py
317070/nntools
00e2865b1f8246254b3adc22c37989a8b77718d5
[ "MIT" ]
null
null
null
nntools/layers/corrmm.py
317070/nntools
00e2865b1f8246254b3adc22c37989a8b77718d5
[ "MIT" ]
null
null
null
nntools/layers/corrmm.py
317070/nntools
00e2865b1f8246254b3adc22c37989a8b77718d5
[ "MIT" ]
null
null
null
""" GpuCorrMM-based convolutional layers """ import numpy as np import theano import theano.tensor as T from theano.sandbox.cuda.basic_ops import gpu_contiguous from theano.sandbox.cuda.blas import GpuCorrMM from .. import init from .. import nonlinearities from . import base # base class for all layers that rely ...
37.931373
135
0.632205
517
3,869
4.535783
0.235977
0.055437
0.053731
0.025586
0.142431
0.093817
0.093817
0.026439
0
0
0
0.015498
0.266219
3,869
101
136
38.306931
0.810497
0.065392
0
0.12
0
0.013333
0.045228
0
0
0
0
0
0
1
0.08
false
0.013333
0.106667
0.026667
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8696b91ed345a9efbc515a25e28bfe35f30846c8
3,831
py
Python
ldtools/helpers.py
dmr/Ldtools
9cc5474404a07bd4b7ad756d31306dfc37a39c7b
[ "BSD-2-Clause" ]
3
2015-12-24T15:18:46.000Z
2022-02-09T06:56:40.000Z
ldtools/helpers.py
dmr/Ldtools
9cc5474404a07bd4b7ad756d31306dfc37a39c7b
[ "BSD-2-Clause" ]
1
2016-10-10T17:26:05.000Z
2016-10-10T17:26:05.000Z
ldtools/helpers.py
dmr/Ldtools
9cc5474404a07bd4b7ad756d31306dfc37a39c7b
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals try: unicode except NameError: basestring = unicode = str # Python 3 import logging import rdflib from rdflib import compare logger = logging.getLogger("ldtools") RESET_SEQ = "\033[0m" COLOR_SEQ = "\033[1;%dm" BOLD_SEQ = "\033[...
30.895161
79
0.631689
453
3,831
5.231788
0.370861
0.025316
0.01519
0.027004
0
0
0
0
0
0
0
0.023683
0.261551
3,831
123
80
31.146341
0.814069
0.085095
0
0.032609
0
0
0.089137
0.012611
0
0
0
0
0.021739
1
0.043478
false
0
0.097826
0.01087
0.195652
0.065217
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8696be28bebb97248ddd7aa9ff8ffc4d35ce9393
1,420
py
Python
fakenet/diverters/debuglevels.py
AzzOnFire/flare-fakenet-ng
bafd7e97b61cd43190dee7f1d2c3f4388488af76
[ "Apache-2.0" ]
null
null
null
fakenet/diverters/debuglevels.py
AzzOnFire/flare-fakenet-ng
bafd7e97b61cd43190dee7f1d2c3f4388488af76
[ "Apache-2.0" ]
null
null
null
fakenet/diverters/debuglevels.py
AzzOnFire/flare-fakenet-ng
bafd7e97b61cd43190dee7f1d2c3f4388488af76
[ "Apache-2.0" ]
null
null
null
# Debug print levels for fine-grained debug trace output control DNFQUEUE = (1 << 0) # netfilterqueue DGENPKT = (1 << 1) # Generic packet handling DGENPKTV = (1 << 2) # Generic packet handling with TCP analysis DCB = (1 << 3) # Packet handlign callbacks DPROCFS = (1 << 4) # procfs DIPTBLS = (...
33.023256
72
0.592958
166
1,420
5.066265
0.614458
0.030916
0.049941
0.057075
0
0
0
0
0
0
0
0.048544
0.274648
1,420
42
73
33.809524
0.767961
0.359155
0
0
0
0
0.091114
0
0
0
0.044994
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
869714958dec93fb87488625f1ab7000485c9fb2
3,175
py
Python
multichannel_lstm/train.py
zhr1201/Multi-channel-speech-extraction-using-DNN
4e48869e02b815a8b094acc9251ac6586fda350c
[ "MIT" ]
65
2017-08-04T03:36:56.000Z
2022-03-10T07:25:17.000Z
multichannel_lstm/train.py
zhr1201/Multi-channel-speech-extraction-using-DNN
4e48869e02b815a8b094acc9251ac6586fda350c
[ "MIT" ]
7
2017-10-10T02:34:08.000Z
2019-09-27T08:59:27.000Z
multichannel_lstm/train.py
zhr1201/Multi-channel-speech-extraction-using-DNN
4e48869e02b815a8b094acc9251ac6586fda350c
[ "MIT" ]
39
2017-08-02T04:27:37.000Z
2021-11-03T06:43:25.000Z
''' Script for training the model ''' import tensorflow as tf import numpy as np from input import BatchGenerator from model import MultiRnn import time from datetime import datetime import os import matplotlib as mpl mpl.use('Agg') from matplotlib import pyplot as plt sum_dir = 'sum' # dir to write summary train_di...
33.776596
83
0.624252
429
3,175
4.351981
0.321678
0.022496
0.02571
0.027317
0.170327
0.170327
0.170327
0.140332
0.140332
0.094269
0
0.019947
0.289449
3,175
93
84
34.139785
0.807624
0.084094
0
0.084507
0
0
0.036678
0
0
0
0
0
0
1
0
false
0
0.126761
0
0.126761
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8697573e23a0bff4599f9e6ef4bcf4db3b6b315f
4,002
py
Python
python_modules/dagster/dagster/daemon/cli/__init__.py
elsenorbw/dagster
b38822d7463812624dab0b2dae7c62e2a8d59828
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/daemon/cli/__init__.py
elsenorbw/dagster
b38822d7463812624dab0b2dae7c62e2a8d59828
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/daemon/cli/__init__.py
elsenorbw/dagster
b38822d7463812624dab0b2dae7c62e2a8d59828
[ "Apache-2.0" ]
null
null
null
import os import sys import threading import time import warnings from contextlib import ExitStack import click import pendulum from dagster import __version__ from dagster.core.instance import DagsterInstance from dagster.daemon.controller import ( DEFAULT_DAEMON_HEARTBEAT_TOLERANCE_SECONDS, DagsterDaemonCont...
28.183099
121
0.696902
462
4,002
5.800866
0.279221
0.080597
0.05597
0.053731
0.248507
0.181343
0.104478
0.084328
0.051493
0.051493
0
0.00191
0.215142
4,002
141
122
28.382979
0.851321
0.024738
0
0.13913
0
0.008696
0.224372
0.013819
0
0
0
0
0
1
0.095652
false
0
0.104348
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
869758494ec4227a029bca8c4e214109b3aea62a
331
py
Python
tests/exhaustive/nfl_tests.py
atklaus/sportsreference
22a45ea83ce1608c3176f00d4f414d5b9463605c
[ "MIT" ]
1
2020-03-08T20:17:39.000Z
2020-03-08T20:17:39.000Z
tests/exhaustive/nfl_tests.py
atklaus/sportsreference
22a45ea83ce1608c3176f00d4f414d5b9463605c
[ "MIT" ]
null
null
null
tests/exhaustive/nfl_tests.py
atklaus/sportsreference
22a45ea83ce1608c3176f00d4f414d5b9463605c
[ "MIT" ]
null
null
null
import sys, os sys.path.append(os.path.dirname(os.path.dirname(sys.path[0]))) from sportsreference.nfl.teams import Teams for team in Teams(): print(team.name) for player in team.roster.players: print(player.name) for game in team.schedule: print(game.dataframe) print(game.dataframe...
27.583333
62
0.700906
49
331
4.714286
0.469388
0.060606
0.112554
0
0
0
0
0
0
0
0
0.003704
0.18429
331
11
63
30.090909
0.851852
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86979f732a31535e5210a87577515eada4d424aa
1,116
py
Python
rust-old/python/examples/map_fields.py
SerebryakovMA/quelea
4bac70d60852a454ad6533d08a02e018c75dc377
[ "MIT" ]
3
2021-03-01T15:35:49.000Z
2021-04-04T17:24:48.000Z
rust-old/python/examples/map_fields.py
SerebryakovMA/quelea
4bac70d60852a454ad6533d08a02e018c75dc377
[ "MIT" ]
null
null
null
rust-old/python/examples/map_fields.py
SerebryakovMA/quelea
4bac70d60852a454ad6533d08a02e018c75dc377
[ "MIT" ]
null
null
null
import numpy as np import matplotlib import matplotlib.pyplot as plt import sys sys.path.append("../") from quelea import * nx = 217 ny = 133 x0 = 0 x1 = 30 # lambdas y0 = 0 y1 = 20 # lambdas xs = np.linspace(x0, x1, nx) ys = np.linspace(y0, y1, ny) # 2d array of (x, y, z, t) coords = np.array( [ [x, y, 0, 0] for ...
21.882353
76
0.641577
200
1,116
3.565
0.405
0.039271
0.092567
0
0
0
0
0
0
0
0
0.049945
0.192652
1,116
50
77
22.32
0.741398
0.189068
0
0
0
0
0.03132
0
0
0
0
0
0
1
0
false
0
0.135135
0
0.135135
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86981ef4c2dc9e662bd6493203efcef25a7c5284
4,709
py
Python
test.py
t-kaichi/hyperspoof
6effdf03be8489ba74154a12416c69948681aa51
[ "MIT" ]
10
2021-06-23T09:42:30.000Z
2022-03-31T22:26:17.000Z
test.py
t-kaichi/hyperspoof
6effdf03be8489ba74154a12416c69948681aa51
[ "MIT" ]
null
null
null
test.py
t-kaichi/hyperspoof
6effdf03be8489ba74154a12416c69948681aa51
[ "MIT" ]
null
null
null
import os from absl import app from absl import flags import numpy as np import tqdm from tensorflow.keras import Model from albumentations import ( Compose, HorizontalFlip, RandomBrightness,RandomContrast, ShiftScaleRotate, ToFloat, VerticalFlip) from utils import reset_tf from eval_utils import calc_score_v...
36.503876
84
0.660437
641
4,709
4.586583
0.330733
0.015306
0.017007
0.012245
0.087755
0.060544
0.021088
0.021088
0
0
0
0.026272
0.232109
4,709
129
85
36.503876
0.786781
0.046931
0
0.058824
0
0
0.04847
0
0
0
0
0
0.019608
1
0.039216
false
0
0.127451
0.009804
0.196078
0.039216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8698961278b2541aa172b54c8053ea36ceff0d54
4,612
py
Python
generator/apps.py
TheJacksonLaboratory/jaxid_generator
be5222d9c5ce57a169b94b0afd1ae9f7f10a66c1
[ "Apache-2.0" ]
2
2020-10-19T17:21:09.000Z
2020-10-20T14:27:25.000Z
generator/apps.py
cometsong/jaxid_generator
be5222d9c5ce57a169b94b0afd1ae9f7f10a66c1
[ "Apache-2.0" ]
null
null
null
generator/apps.py
cometsong/jaxid_generator
be5222d9c5ce57a169b94b0afd1ae9f7f10a66c1
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from suit import apps from suit.apps import DjangoSuitConfig from suit.menu import ParentItem, ChildItem APP_NAME = settings.APP_NAME WIKI_URL = settings.WIKI_URL class SuitConfig(DjangoSuitConfig): name = 'suit' verbose_name = 'Mbiome Core JAXid Generator' site_title = '...
37.803279
198
0.550954
481
4,612
5.064449
0.370062
0.053366
0.054187
0.059113
0.245895
0.151067
0.108374
0.108374
0.024631
0
0
0.011792
0.338031
4,612
121
199
38.115702
0.786112
0.208803
0
0.225
0
0.025
0.305249
0.152762
0
0
0
0
0
1
0
false
0
0.0875
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
869a42d471e5a0264cf98babfcdd88a6669b3cbc
12,970
py
Python
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/classify/weka.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/classify/weka.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/classify/weka.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# Natural Language Toolkit: Interface to Weka Classsifiers # # Copyright (C) 2001-2015 NLTK Project # Author: Edward Loper <edloper@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT """ Classifiers that make use of the external 'Weka' package. """ from __future__ import print_fu...
37.485549
85
0.562606
1,395
12,970
5.119713
0.273118
0.023663
0.008401
0.007841
0.158499
0.130916
0.092691
0.055447
0.055447
0.045645
0
0.005129
0.338551
12,970
345
86
37.594203
0.827369
0.210486
0
0.166667
0
0
0.130976
0.026237
0
0
0
0
0
1
0.083333
false
0
0.060185
0.013889
0.25463
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
869a8a31a260884a519f22c5d9a29b22876f051f
5,502
py
Python
src/si/data/dataset.py
pg428/SIB
b887c2011eb3a04d119a93b3932785d182e331d3
[ "Apache-2.0" ]
null
null
null
src/si/data/dataset.py
pg428/SIB
b887c2011eb3a04d119a93b3932785d182e331d3
[ "Apache-2.0" ]
null
null
null
src/si/data/dataset.py
pg428/SIB
b887c2011eb3a04d119a93b3932785d182e331d3
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np from src.si.util.util import label_gen __all__ = ['Dataset'] class Dataset: def __init__(self, X=None, Y=None, xnames: list = None, yname: str = None): """ Tabular Dataset""" if X is None: raise Exception("Trying ...
32.364706
166
0.526172
683
5,502
4.175695
0.196193
0.021038
0.025245
0.02805
0.265778
0.187938
0.169004
0.121318
0.121318
0.121318
0
0.008242
0.338422
5,502
169
167
32.556213
0.775275
0.290622
0
0.309278
0
0
0.039114
0
0
0
0
0
0
1
0.113402
false
0
0.030928
0.010309
0.257732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
869e135c2c869c0e98bb08d38ef8fc9d0c3c1530
11,744
py
Python
homeassistant/components/fritz/sensor.py
EuleMitKeule/core
3af54d96c7dcc3f7087d1196e6ab0db029301ee7
[ "Apache-2.0" ]
3
2022-02-18T14:03:39.000Z
2022-03-26T20:26:55.000Z
homeassistant/components/fritz/sensor.py
EuleMitKeule/core
3af54d96c7dcc3f7087d1196e6ab0db029301ee7
[ "Apache-2.0" ]
74
2020-08-05T07:20:27.000Z
2022-03-23T12:47:28.000Z
homeassistant/components/fritz/sensor.py
marecabo/home-assistant
e33774a61e7fcc88aff752dfa4618dd26a746872
[ "Apache-2.0" ]
2
2020-06-06T21:55:32.000Z
2022-03-06T04:18:21.000Z
"""AVM FRITZ!Box binary sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime, timedelta import logging from typing import Any, Literal from fritzconnection.core.exceptions import ( FritzActionError, FritzActionFaile...
33.458689
94
0.712364
1,315
11,744
6.003042
0.147529
0.023942
0.041804
0.049405
0.545984
0.49582
0.437294
0.410312
0.400937
0.346592
0
0.008086
0.199676
11,744
350
95
33.554286
0.831791
0.091366
0
0.387218
0
0
0.088146
0.017382
0
0
0
0
0
1
0.067669
false
0.003759
0.06015
0
0.221805
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
869e8784f6deaecfb703cc98502b159dc7530a96
5,330
py
Python
middleware/io-monitor/recipes-common/io-monitor/io-monitor/io_monitor/utils/data_collector.py
xe1gyq/stx-utils
93b7f7dc2c6732db8c8ae0eb3f52ace4df714dc9
[ "Apache-2.0" ]
null
null
null
middleware/io-monitor/recipes-common/io-monitor/io-monitor/io_monitor/utils/data_collector.py
xe1gyq/stx-utils
93b7f7dc2c6732db8c8ae0eb3f52ace4df714dc9
[ "Apache-2.0" ]
null
null
null
middleware/io-monitor/recipes-common/io-monitor/io-monitor/io_monitor/utils/data_collector.py
xe1gyq/stx-utils
93b7f7dc2c6732db8c8ae0eb3f52ace4df714dc9
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (c) 2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # import logging import os from io_monitor.constants import DOMAIN from io_monitor.utils.data_window import DataCollectionWindow LOG = logging.getLogger(DOMAIN) class DeviceDataCollec...
36.013514
77
0.630206
678
5,330
4.679941
0.185841
0.055468
0.071856
0.070596
0.503309
0.431768
0.364324
0.332178
0.332178
0.313899
0
0.008314
0.277861
5,330
147
78
36.258503
0.816056
0.059475
0
0.227723
0
0
0.0532
0
0
0
0
0
0
1
0.108911
false
0
0.039604
0.029703
0.336634
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
869e8ff896779ff36d9b024ced2d268e80c7682a
19,793
py
Python
examples/language-modeling/debias_lm_hps_tune.py
SoumyaBarikeri/transformers
996c6e113404000f50444287aa8a31a174ebd92f
[ "Apache-2.0" ]
1
2021-08-07T06:06:45.000Z
2021-08-07T06:06:45.000Z
examples/language-modeling/debias_lm_hps_tune.py
SoumyaBarikeri/transformers
996c6e113404000f50444287aa8a31a174ebd92f
[ "Apache-2.0" ]
null
null
null
examples/language-modeling/debias_lm_hps_tune.py
SoumyaBarikeri/transformers
996c6e113404000f50444287aa8a31a174ebd92f
[ "Apache-2.0" ]
2
2021-05-31T08:50:50.000Z
2022-01-26T13:14:58.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
38.210425
175
0.664477
2,475
19,793
5.071919
0.202424
0.020075
0.015136
0.020314
0.333307
0.300486
0.263284
0.204812
0.178125
0.162192
0
0.006436
0.24635
19,793
517
176
38.284333
0.835087
0.21548
0
0.089636
0
0.011204
0.203429
0.016628
0
0
0
0
0.002801
1
0.016807
false
0.002801
0.039216
0
0.12605
0.002801
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
869ee02cc744c1a084a226d08c1391e0d7881239
1,373
py
Python
checksums.py
pgp/RootHelperClientTestInteractions
6b9e9cc9f10eb2bf9b9dafa851ed56005f7666b5
[ "Apache-2.0" ]
1
2019-05-04T12:29:41.000Z
2019-05-04T12:29:41.000Z
checksums.py
pgp/RootHelperClientTestInteractions
6b9e9cc9f10eb2bf9b9dafa851ed56005f7666b5
[ "Apache-2.0" ]
null
null
null
checksums.py
pgp/RootHelperClientTestInteractions
6b9e9cc9f10eb2bf9b9dafa851ed56005f7666b5
[ "Apache-2.0" ]
null
null
null
from net_common import * import struct import sys def getDirHashOpts(withNames=False, ignoreThumbsFiles=True, ignoreUnixHiddenFiles=True, ignoreEmptyDirs=True): return bytearray([((1 if withNames else 0) + (2 if ignoreThumbsFiles else ...
40.382353
128
0.627822
170
1,373
5
0.505882
0.077647
0.070588
0.074118
0
0
0
0
0
0
0
0.043647
0.24909
1,373
33
129
41.606061
0.780795
0.255645
0
0
0
0
0.072277
0
0
0
0
0
0
1
0.04
false
0
0.12
0.04
0.2
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86a15534f296338602eb17c7dad23025e0241a4e
3,208
py
Python
scripts/viewStokespat.py
David-McKenna/AntPat
45618659994b27e2654f1effd6d9baa15867b6d3
[ "ISC" ]
5
2016-06-21T14:54:23.000Z
2021-04-06T06:23:25.000Z
scripts/viewStokespat.py
David-McKenna/AntPat
45618659994b27e2654f1effd6d9baa15867b6d3
[ "ISC" ]
null
null
null
scripts/viewStokespat.py
David-McKenna/AntPat
45618659994b27e2654f1effd6d9baa15867b6d3
[ "ISC" ]
2
2019-10-25T03:16:06.000Z
2020-11-15T14:18:46.000Z
#!/usr/bin/env python """A simple viewer for Stokes patterns based on two far-field pattern files. (Possibly based on one FF pattern files if it has two requests: one for each polarization channel.)""" import os import argparse import numpy import matplotlib.pyplot as plt from antpat.reps.sphgridfun.tvecfun import TVec...
36.044944
102
0.674564
457
3,208
4.582057
0.347921
0.049666
0.034384
0.035817
0.170487
0.148042
0.08596
0.08596
0.056351
0.056351
0
0.019399
0.180486
3,208
88
103
36.454545
0.777102
0.122818
0
0.119403
0
0
0.105866
0.007868
0
0
0
0
0
1
0.029851
false
0
0.104478
0
0.149254
0.044776
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86a15d2cf1ab721951e4abf4f4b561d571ed4d1c
2,141
py
Python
utils.py
lingjiao10/Facial-Expression-Recognition.Pytorch
f5ba0e527347af3778d44eb7045e4970d01641a6
[ "MIT" ]
null
null
null
utils.py
lingjiao10/Facial-Expression-Recognition.Pytorch
f5ba0e527347af3778d44eb7045e4970d01641a6
[ "MIT" ]
null
null
null
utils.py
lingjiao10/Facial-Expression-Recognition.Pytorch
f5ba0e527347af3778d44eb7045e4970d01641a6
[ "MIT" ]
1
2019-10-02T02:26:39.000Z
2019-10-02T02:26:39.000Z
'''Some helper functions for PyTorch, including: - progress_bar: progress bar mimic xlua.progress. - set_lr : set the learning rate - clip_gradient : clip gradient ''' import os import sys import time import math import torch import torch.nn as nn import torch.nn.init as init from torch.autogr...
27.101266
76
0.604858
308
2,141
4.045455
0.327922
0.086677
0.123596
0.054575
0.250401
0.218299
0.138042
0.05939
0.05939
0.05939
0
0.021144
0.248949
2,141
78
77
27.448718
0.753731
0.148996
0
0.071429
0
0
0.034282
0
0
0
0
0
0
1
0.053571
false
0
0.142857
0
0.196429
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
86a1bd490fa794c86a7ba173a9dce9709f3eb600
2,236
py
Python
string-method/src/analysis/FE_analysis/index_converter.py
delemottelab/gpcr-string-method-2019
b50786a4a8747d56ad04ede525592eb31f1890fd
[ "MIT" ]
null
null
null
string-method/src/analysis/FE_analysis/index_converter.py
delemottelab/gpcr-string-method-2019
b50786a4a8747d56ad04ede525592eb31f1890fd
[ "MIT" ]
null
null
null
string-method/src/analysis/FE_analysis/index_converter.py
delemottelab/gpcr-string-method-2019
b50786a4a8747d56ad04ede525592eb31f1890fd
[ "MIT" ]
3
2020-03-16T04:33:50.000Z
2021-03-19T17:25:59.000Z
from __future__ import absolute_import, division, print_function import logging import sys logging.basicConfig( stream=sys.stdout, level=logging.DEBUG, format='%(asctime)s %(name)s-%(levelname)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S') import numpy as np import utils logger = logging.getLogger("ind...
38.551724
116
0.609123
315
2,236
4.155556
0.27619
0.064171
0.049656
0.038961
0.135982
0.135982
0.135982
0.091673
0.039725
0
0
0.007273
0.262075
2,236
57
117
39.22807
0.786061
0
0
0.040816
0
0
0.110465
0.010286
0
0
0
0
0
1
0.102041
false
0
0.102041
0
0.326531
0.040816
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86a37502649b0fcb2349b60e7e2d86e82dd233f5
12,050
py
Python
cirq-pasqal/cirq_pasqal/pasqal_device.py
pavoljuhas/Cirq
b6d6577be61d216ce2f29f8c64ae5879cf3087d5
[ "Apache-2.0" ]
1
2022-02-05T22:17:39.000Z
2022-02-05T22:17:39.000Z
cirq-pasqal/cirq_pasqal/pasqal_device.py
pavoljuhas/Cirq
b6d6577be61d216ce2f29f8c64ae5879cf3087d5
[ "Apache-2.0" ]
null
null
null
cirq-pasqal/cirq_pasqal/pasqal_device.py
pavoljuhas/Cirq
b6d6577be61d216ce2f29f8c64ae5879cf3087d5
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
37.42236
99
0.630954
1,493
12,050
5.002009
0.229739
0.024371
0.01406
0.016872
0.201794
0.15225
0.118104
0.082217
0.061328
0.046599
0
0.005036
0.291452
12,050
321
100
37.538941
0.869642
0.326058
0
0.096154
0
0
0.151161
0.02495
0
0
0
0
0
1
0.147436
false
0
0.044872
0.083333
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86a3efacb490990d88c7dfa47acc3b8f0d98c63a
22,798
py
Python
command_line/show.py
huwjenkins/dials
885a2f6ea3900dd0c9fcc15c03561fb45452c3bb
[ "BSD-3-Clause" ]
null
null
null
command_line/show.py
huwjenkins/dials
885a2f6ea3900dd0c9fcc15c03561fb45452c3bb
[ "BSD-3-Clause" ]
1
2019-06-03T16:09:12.000Z
2019-06-04T12:47:20.000Z
command_line/show.py
rjgildea/dials
0665a385d644bbef7541fb2d33c7a3c5a748e2b4
[ "BSD-3-Clause" ]
null
null
null
import os import sys import numpy as np import iotbx.phil from cctbx import uctbx from dxtbx.model.experiment_list import ExperimentListFactory from scitbx.math import five_number_summary import dials.util from dials.array_family import flex from dials.util import Sorry, tabulate help_message = """ Examples:: d...
32.992764
88
0.530485
2,690
22,798
4.302974
0.141636
0.025054
0.018056
0.019698
0.259698
0.173823
0.1073
0.068683
0.040432
0.036112
0
0.01114
0.342442
22,798
690
89
33.04058
0.76099
0.0411
0
0.134191
0
0.001838
0.13467
0.023847
0
0
0
0
0
1
0.022059
false
0
0.025735
0
0.071691
0.027574
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86a477c71ec5eb0f689387ca230eaa223627c82b
8,749
py
Python
app/config/env_jesa.py
OuissalTAIM/jenkins
7ea5bcdeb6c0bb3cc14c2826a68e4f521de163c1
[ "BSD-1-Clause" ]
null
null
null
app/config/env_jesa.py
OuissalTAIM/jenkins
7ea5bcdeb6c0bb3cc14c2826a68e4f521de163c1
[ "BSD-1-Clause" ]
6
2021-02-02T22:52:41.000Z
2022-03-12T00:37:30.000Z
app/config/env_jesa.py
OuissalTAIM/jenkins
7ea5bcdeb6c0bb3cc14c2826a68e4f521de163c1
[ "BSD-1-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from enum import Enum, IntEnum, unique import os APP_NAME = "mine2farm" NETWORK_NAME = "CenterAxis" LOG_LEVEL_CONSOLE = "WARNING" LOG_LEVEL_FILE = "INFO" APP_FOLDER = os.getenv("JESA_MINE2FARM_HOME", "C:/GitRepos/mine2farm/") LOG_FOLDER = APP_FOLDER + "app/log/" LOG_FILE = "%(asctime)_" + AP...
29.758503
125
0.65356
896
8,749
6.129464
0.25558
0.055353
0.026038
0.03059
0.259104
0.159323
0.102877
0.065186
0.046249
0.025127
0
0.018384
0.197965
8,749
294
126
29.758503
0.764287
0.011887
0
0.17094
0
0
0.312833
0.060806
0
0
0
0
0
1
0
false
0
0.008547
0
0.183761
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86a5619ddeca5e16cc4b5d0ebb8500be1708f077
6,001
py
Python
app/app.py
Moustique-bot/hands-on-2021
fd023f0a431f72ef2c48e3a469be42e2de9e2957
[ "MIT" ]
null
null
null
app/app.py
Moustique-bot/hands-on-2021
fd023f0a431f72ef2c48e3a469be42e2de9e2957
[ "MIT" ]
null
null
null
app/app.py
Moustique-bot/hands-on-2021
fd023f0a431f72ef2c48e3a469be42e2de9e2957
[ "MIT" ]
null
null
null
import base64 import io import dash import dash_core_components as dcc import dash_html_components as html import dash_bootstrap_components as dbc from dash.dependencies import Input, Output import numpy as np import tensorflow as tf from PIL import Image from constants import CLASSES import yaml with open('app.ya...
31.920213
402
0.551408
635
6,001
5.107087
0.398425
0.02806
0.016035
0.016651
0.19334
0.173296
0.173296
0.146778
0.146778
0.115325
0
0.017514
0.324446
6,001
188
403
31.920213
0.782437
0.097484
0
0.23741
0
0.007194
0.179301
0.004088
0
0
0
0
0
1
0.021583
false
0
0.086331
0.007194
0.143885
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86a57ddfcf5854e170f6cff9e4deb86cb8f9d464
1,214
py
Python
books/rakutenapi.py
NobukoYano/LibraryApp
623f60614f15ab760e1c0d2f18954ce948f2d2a3
[ "MIT" ]
1
2019-04-27T11:18:42.000Z
2019-04-27T11:18:42.000Z
books/rakutenapi.py
NobukoYano/LibrayApp
623f60614f15ab760e1c0d2f18954ce948f2d2a3
[ "MIT" ]
11
2020-02-12T00:11:23.000Z
2022-02-10T07:59:24.000Z
books/rakutenapi.py
NobukoYano/LibrayApp
623f60614f15ab760e1c0d2f18954ce948f2d2a3
[ "MIT" ]
null
null
null
import json import requests from django.conf import settings class rakuten: def get_json(self, isbn: str) -> dict: appid = settings.RAKUTEN_APP_ID # API request template api = "https://app.rakuten.co.jp/services/api/BooksTotal/"\ "Search/20170404?format=json&isbnjan={isbnj...
27.590909
74
0.559308
143
1,214
4.65035
0.41958
0.096241
0.090226
0.126316
0
0
0
0
0
0
0
0.020666
0.282537
1,214
43
75
28.232558
0.742824
0.07743
0
0.08
0
0
0.2354
0.060198
0
0
0
0
0
1
0.04
false
0
0.12
0
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
0
0
0
0
0
0
0
0
0
0
1
0
86a699aa985f4eb39369d4b317e19a2eb2706a0b
18,710
py
Python
sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2018_01_01_preview/models/_models_py3.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2018_01_01_preview/models/_models_py3.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2018_01_01_preview/models/_models_py3.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
32.147766
165
0.615446
2,014
18,710
5.531778
0.103774
0.028902
0.030967
0.02585
0.533794
0.458846
0.40903
0.390988
0.319181
0.300332
0
0.006306
0.245697
18,710
581
166
32.203098
0.783108
0.334848
0
0.591463
0
0
0.182952
0.024427
0
0
0
0
0
1
0.04878
false
0
0.009146
0
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0