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
c16138a7cd5144aec3ed7335c23d116573f315f9
2,093
py
Python
pages/product_page.py
DedMazzai/stepic_test_project
f5dc9e71c9f18b48edf017cbfde86ada888482e2
[ "Apache-2.0" ]
null
null
null
pages/product_page.py
DedMazzai/stepic_test_project
f5dc9e71c9f18b48edf017cbfde86ada888482e2
[ "Apache-2.0" ]
null
null
null
pages/product_page.py
DedMazzai/stepic_test_project
f5dc9e71c9f18b48edf017cbfde86ada888482e2
[ "Apache-2.0" ]
null
null
null
from .base_page import BasePage from .locators import ProductPageLocators class ProductPage(BasePage): def should_be_button_add_to_basket(self): assert self.is_element_present( *ProductPageLocators.BUTTON_ADD_TO_BASKET), "Button add to basket is not presented" def click_button_add_to_bas...
49.833333
117
0.763497
278
2,093
5.359712
0.176259
0.05906
0.060403
0.088591
0.634899
0.413423
0.242953
0.173154
0.173154
0.096644
0
0
0.175824
2,093
41
118
51.04878
0.863768
0
0
0.129032
0
0
0.180602
0
0
0
0
0
0.225806
1
0.258065
false
0
0.064516
0
0.354839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c16436e269d25cef8488abc134bc5e666d9d98ac
2,863
py
Python
ViyaCasual/CAS/CASTableBase.py
willhaley-bne/ViyaCasual
9c0ca9b05a9602e67c8d56e2f63eba01e1218e42
[ "MIT" ]
null
null
null
ViyaCasual/CAS/CASTableBase.py
willhaley-bne/ViyaCasual
9c0ca9b05a9602e67c8d56e2f63eba01e1218e42
[ "MIT" ]
null
null
null
ViyaCasual/CAS/CASTableBase.py
willhaley-bne/ViyaCasual
9c0ca9b05a9602e67c8d56e2f63eba01e1218e42
[ "MIT" ]
null
null
null
import pandas as pd class CASTableBase(object): source_sql = None source_data = None source_cas = None source_caslib = None cas_table_name = None caslib = None decision_source = None decision = None db_conn = None clean_up = False def __init__(self, viya_conn, db_conn=N...
28.63
96
0.653161
390
2,863
4.44359
0.194872
0.092325
0.072706
0.03693
0.25678
0.201385
0.169071
0.150606
0.130987
0.130987
0
0.000477
0.267202
2,863
99
97
28.919192
0.825548
0
0
0.150685
0
0
0.02445
0
0
0
0
0
0
1
0.178082
false
0.068493
0.027397
0.013699
0.438356
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c16b90c3a22166a86fb8294e272716e1caa3d0d8
4,066
py
Python
BI/delta.py
aessex24/rindr
2a546b27ce1c72728bb7a63e60653929ca592cfe
[ "MIT" ]
1
2021-12-21T16:24:18.000Z
2021-12-21T16:24:18.000Z
BI/delta.py
aessex24/rindr
2a546b27ce1c72728bb7a63e60653929ca592cfe
[ "MIT" ]
1
2021-12-10T01:05:55.000Z
2021-12-10T01:05:55.000Z
BI/delta.py
aessex24/rindr
2a546b27ce1c72728bb7a63e60653929ca592cfe
[ "MIT" ]
1
2021-12-10T00:48:33.000Z
2021-12-10T00:48:33.000Z
#!/usr/bin/python3 """ Run "mypy --disallow-untyped-defs --ignore-missing-imports \ --show-error-codes --strict-equality delta.py". The holidays module lacks type hints. Next need: explicit Pytests. Notice the imports are punctuated in an isort style. """ from datetime import datetime, timedelta import sy...
40.257426
118
0.624693
594
4,066
4.079125
0.217172
0.044573
0.072637
0.048287
0.431284
0.38052
0.27858
0.257532
0.257532
0.195625
0
0.128539
0.24422
4,066
100
119
40.66
0.659941
0.274471
0
0.037736
0
0.018868
0.14134
0.049799
0
0
0
0
0.056604
1
0.150943
false
0
0.056604
0.09434
0.509434
0.056604
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c16fb7371862914b59939c00a0c9796c961142c4
856
py
Python
buildbot/master/files/config/passwords.py
ecoal95/saltfs
4d2596794a70919c2887688d6d116f2f5bb5cf1e
[ "Apache-2.0", "MIT" ]
1
2021-01-07T18:49:38.000Z
2021-01-07T18:49:38.000Z
buildbot/master/files/config/passwords.py
ecoal95/saltfs
4d2596794a70919c2887688d6d116f2f5bb5cf1e
[ "Apache-2.0", "MIT" ]
null
null
null
buildbot/master/files/config/passwords.py
ecoal95/saltfs
4d2596794a70919c2887688d6d116f2f5bb5cf1e
[ "Apache-2.0", "MIT" ]
null
null
null
import json # Jinja will replace the inside with double-quote-using JSON, # so use single quotes to delimit the string. # Use double quotes inside to keep the expression as a single string. credentials = json.loads('{{ pillar["buildbot"]["credentials"]|json }}') # json.loads creates unicode strings but Buildbot requir...
45.052632
72
0.775701
123
856
5.268293
0.528455
0.049383
0.04321
0.052469
0.12963
0
0
0
0
0
0
0.007833
0.10514
856
18
73
47.555556
0.83812
0.331776
0
0
0
0
0.284452
0.155477
0
0
0
0
0
1
0
false
0.272727
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c170014093c78e48166681a428ba4bef1d6ab86d
11,819
py
Python
analytics/core/tests/unittest_core_processor.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
null
null
null
analytics/core/tests/unittest_core_processor.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
29
2015-02-23T07:59:13.000Z
2015-04-05T09:49:53.000Z
analytics/core/tests/unittest_core_processor.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # import libs import unittest import random import sys import warnings # import classes import analytics.utils.misc as misc import analytics.exceptions.exceptions as ex import analytics.core.processor.processor as processor from types import ListType, DictType from analytics.core.map.dataitemmap ...
40.064407
77
0.607496
1,236
11,819
5.669094
0.147249
0.117739
0.048808
0.029542
0.556872
0.550878
0.519481
0.509776
0.483659
0.483659
0
0.009123
0.258059
11,819
294
78
40.20068
0.789942
0.028767
0
0.466667
0
0
0.043015
0
0
0
0
0
0.266667
0
null
null
0
0.070588
null
null
0.011765
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c1764afdac11e0d9a60b3e199a98aa40f4ecf8a4
894
py
Python
ecommerce/accounts/migrations/0028_auto_20220127_2039.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
ecommerce/accounts/migrations/0028_auto_20220127_2039.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
ecommerce/accounts/migrations/0028_auto_20220127_2039.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
# Generated by Django 3.2.10 on 2022-01-27 17:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0027_alter_totprequest_receiver'), ] operations = [ migrations.AlterModelOptions( name='totprequest', o...
31.928571
135
0.621924
91
894
5.945055
0.637363
0.081331
0.066543
0.085028
0.262477
0.162662
0
0
0
0
0
0.042042
0.255034
894
27
136
33.111111
0.77027
0.051454
0
0.333333
1
0
0.267139
0.036643
0
0
0
0
0
1
0
false
0
0.047619
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c185bdc700271a99b44e838020cbe70d16ab1c2c
5,039
py
Python
utilities/fragtop.py
ondrejholecek/fortimonitor
79b0377f97b084f04396a323a84bb3e8a93d6f2d
[ "BSD-3-Clause" ]
9
2018-10-19T08:47:42.000Z
2020-08-19T01:58:27.000Z
utilities/fragtop.py
ondrejholecek/fortimonitor
79b0377f97b084f04396a323a84bb3e8a93d6f2d
[ "BSD-3-Clause" ]
1
2019-11-07T11:24:43.000Z
2019-11-07T11:52:51.000Z
utilities/fragtop.py
ondrejholecek/fortimonitor
79b0377f97b084f04396a323a84bb3e8a93d6f2d
[ "BSD-3-Clause" ]
3
2020-04-24T03:51:15.000Z
2021-12-19T16:08:24.000Z
#!/usr/bin/env python2.7 import os # to be able to import our modules from the directory above os.sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from parsers.CurrentTime import ParserCurrentTime from parsers.Fragmentation import ParserFragmentation from parsers.ProcessCPU import ParserP...
39.992063
150
0.653106
655
5,039
4.905344
0.290076
0.04793
0.045752
0.023654
0.280423
0.247744
0.21413
0.191721
0.1108
0.080299
0
0.014943
0.15003
5,039
125
151
40.312
0.735232
0.021036
0
0.090909
0
0.040404
0.338068
0.016437
0
0
0
0
0
0
null
null
0
0.080808
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c18f1ada21fe45a22c35f613a302bd0bd45fb736
871
py
Python
tests/test_Sk.py
sambit-giri/DMemu
1827832efdab2dfcb735035b6956854e34d17202
[ "MIT" ]
3
2021-08-23T14:50:38.000Z
2022-02-25T11:06:05.000Z
tests/test_Sk.py
sambit-giri/BCMemu
3b2afb1fb3be09f98a7730e7a5ff18baafd8660e
[ "MIT" ]
null
null
null
tests/test_Sk.py
sambit-giri/BCMemu
3b2afb1fb3be09f98a7730e7a5ff18baafd8660e
[ "MIT" ]
null
null
null
import numpy as np import pickle from BCMemu import * ### Cosmology Ob, Om = 0.0463, 0.2793 bcmdict = {'log10Mc': 13.32, 'mu' : 0.93, 'thej' : 4.235, 'gamma' : 2.25, 'delta' : 6.40, 'eta' : 0.15, 'deta' : 0.14, } k_eval = 10**np.linspace(-1,1.08,50) def test_BCM_7p...
31.107143
182
0.619977
159
871
3.308176
0.446541
0.057034
0.13308
0.08365
0.106464
0
0
0
0
0
0
0.201729
0.203215
871
28
182
31.107143
0.556196
0.091848
0
0
0
0
0.038462
0
0
0
0
0
0.047619
1
0.047619
false
0
0.142857
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c1911e4814c500c6d717e67d052d56f8aad603a6
1,693
py
Python
controle_financeiro/autenticacao/forms.py
douglaspands/controle-financeiro
1f8f44dca6132b730e92ccf62447dede4119b28e
[ "MIT" ]
null
null
null
controle_financeiro/autenticacao/forms.py
douglaspands/controle-financeiro
1f8f44dca6132b730e92ccf62447dede4119b28e
[ "MIT" ]
null
null
null
controle_financeiro/autenticacao/forms.py
douglaspands/controle-financeiro
1f8f44dca6132b730e92ccf62447dede4119b28e
[ "MIT" ]
1
2021-06-15T22:14:22.000Z
2021-06-15T22:14:22.000Z
import re from django import forms from django.utils.translation import gettext_lazy as _ from usuarios.models import Usuario class RegistroForm(forms.Form): REGEX_USERNAME = r'^[a-zA-Z0-9]([._-](?![._-])|[a-zA-Z0-9]){3,18}[a-zA-Z0-9]$' username = forms.CharField( max_length=100, label=_('U...
26.873016
84
0.604843
188
1,693
5.281915
0.452128
0.072508
0.090634
0.018127
0.220544
0.220544
0.189325
0.118832
0.118832
0
0
0.017785
0.269344
1,693
62
85
27.306452
0.784964
0
0
0.22
0
0.02
0.157708
0.034259
0
0
0
0
0
1
0.04
false
0.1
0.08
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
1
0
0
0
0
0
1
c19246725b954f2f43ba88f9e9c66c4d573ae9a3
1,238
py
Python
bot.py
oumike/rachmaninoff-bot
b8a44468a70020342b483f4de8980ca3859c806e
[ "Apache-2.0" ]
null
null
null
bot.py
oumike/rachmaninoff-bot
b8a44468a70020342b483f4de8980ca3859c806e
[ "Apache-2.0" ]
null
null
null
bot.py
oumike/rachmaninoff-bot
b8a44468a70020342b483f4de8980ca3859c806e
[ "Apache-2.0" ]
null
null
null
# bot.py import os from discord.ext import commands from dotenv import load_dotenv from rachmaninoff_bot import RachmaninoffBot from cogs.general_cog import GeneralCog from cogs.weather_cog import WeatherCog from cogs.traffic_cog import TrafficCog from cogs.covid_cog import CovidCog from cogs.stock_cog import StockCog ...
32.578947
80
0.710824
148
1,238
5.689189
0.25
0.171021
0.053444
0.142518
0.206651
0.206651
0.171021
0.092637
0.092637
0
0
0
0.211632
1,238
37
81
33.459459
0.862705
0.004847
0
0
0
0
0.06428
0.017087
0
0
0
0
0
1
0
false
0
0.333333
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
1
0
0
0
0
1
c1957a877ea69974035f42a8db38ff5234fcd531
13,245
py
Python
src/Ikarus/strategies/StrategyBase.py
bilkosem/Icarus
16d66600f1764a43dccd1b19153b906452cdef5a
[ "Apache-2.0" ]
null
null
null
src/Ikarus/strategies/StrategyBase.py
bilkosem/Icarus
16d66600f1764a43dccd1b19153b906452cdef5a
[ "Apache-2.0" ]
2
2022-01-23T20:27:16.000Z
2022-01-30T15:51:35.000Z
src/Ikarus/strategies/StrategyBase.py
bilkosem/Icarus
16d66600f1764a43dccd1b19153b906452cdef5a
[ "Apache-2.0" ]
1
2022-01-23T22:16:07.000Z
2022-01-23T22:16:07.000Z
import json import logging from binance.helpers import round_step_size from sqlalchemy import false from ..enums import * import bson import abc import itertools from ..objects import EState, EOrderType, ECommand, EnhancedJSONEncoder from ..utils import safe_sum, round_step_downward, truncate, safe_multiply, safe_subst...
44.003322
174
0.649
1,697
13,245
4.856217
0.226871
0.026696
0.012134
0.016382
0.243417
0.193544
0.167819
0.130567
0.115277
0.115277
0
0.004123
0.267573
13,245
300
175
44.15
0.845377
0.302907
0
0.251748
0
0.020979
0.090604
0.025603
0
0
0
0.02
0
1
0.034965
false
0.041958
0.083916
0.013986
0.223776
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c19ba5d245f195cdb6eb4605b71e37758440a2a2
4,991
py
Python
twitchtv/datadog_checks/twitchtv/twitchtv.py
johananlai/integrations-extras
e3cf6f17f9f2ebf4f997b67aa5b757be90d31ec4
[ "BSD-3-Clause" ]
null
null
null
twitchtv/datadog_checks/twitchtv/twitchtv.py
johananlai/integrations-extras
e3cf6f17f9f2ebf4f997b67aa5b757be90d31ec4
[ "BSD-3-Clause" ]
null
null
null
twitchtv/datadog_checks/twitchtv/twitchtv.py
johananlai/integrations-extras
e3cf6f17f9f2ebf4f997b67aa5b757be90d31ec4
[ "BSD-3-Clause" ]
null
null
null
import requests import simplejson as json from six.moves.urllib.parse import urljoin from datadog_checks.checks import AgentCheck class TwitchtvCheck(AgentCheck): CHECK_NAME = 'twitchtv' def __init__(self, name, init_config, agentConfig, instances=None): super(TwitchtvCheck, self).__init__(name, ini...
36.97037
95
0.598077
611
4,991
4.666121
0.155483
0.067345
0.063136
0.073658
0.576991
0.495265
0.412487
0.324798
0.324798
0.252192
0
0.002518
0.283911
4,991
134
96
37.246269
0.795187
0.020036
0
0.397959
0
0
0.125307
0.0043
0
0
0
0
0
0
null
null
0
0.040816
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c19ec7fa6563be347aaab52b5eafbb49e3825d49
20,933
py
Python
site/_build/jupyter_execute/notebooks/book/19_training_and_deploying_at_scale.py
rpi-techfundamentals/spring2020_website
b4b208ce7555f5574054ff5ff5d79b9e0e825499
[ "MIT" ]
1
2021-07-01T13:00:30.000Z
2021-07-01T13:00:30.000Z
site/_build/jupyter_execute/notebooks/book/19_training_and_deploying_at_scale.py
rpi-techfundamentals/spring2020_website
b4b208ce7555f5574054ff5ff5d79b9e0e825499
[ "MIT" ]
2
2020-12-31T14:33:02.000Z
2020-12-31T14:38:26.000Z
site/_build/jupyter_execute/notebooks/book/19_training_and_deploying_at_scale.py
rpi-techfundamentals/spring2020_website
b4b208ce7555f5574054ff5ff5d79b9e0e825499
[ "MIT" ]
3
2021-01-05T20:26:15.000Z
2021-02-15T14:54:44.000Z
**Chapter 19 – Training and Deploying TensorFlow Models at Scale** _This notebook contains all the sample code in chapter 19._ <table align="left"> <td> <a target="_blank" href="https://colab.research.google.com/github/ageron/handson-ml2/blob/master/19_training_and_deploying_at_scale.ipynb"><img src="https://ww...
37.514337
655
0.716572
3,108
20,933
4.682111
0.224582
0.018898
0.006872
0.003711
0.383933
0.363043
0.333288
0.319269
0.305319
0.290269
0
0.043198
0.162853
20,933
558
656
37.514337
0.786864
0.070463
0
0.483029
0
0.057441
0.1005
0.026992
0
0
0
0
0.007833
0
null
null
0.005222
0.060052
null
null
0.031332
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c1a365128f0c36be71cba9ee9f85b9c58b5f1207
29,113
py
Python
groupdocs_comparison_cloud/models/settings.py
groupdocs-comparison-cloud/groupdocs-comparison-cloud-python
f970b22fae7a791d07b756c2d418217fd368c289
[ "MIT" ]
null
null
null
groupdocs_comparison_cloud/models/settings.py
groupdocs-comparison-cloud/groupdocs-comparison-cloud-python
f970b22fae7a791d07b756c2d418217fd368c289
[ "MIT" ]
null
null
null
groupdocs_comparison_cloud/models/settings.py
groupdocs-comparison-cloud/groupdocs-comparison-cloud-python
f970b22fae7a791d07b756c2d418217fd368c289
[ "MIT" ]
1
2021-02-02T18:41:48.000Z
2021-02-02T18:41:48.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose Pty Ltd" file="Settings.py"> # Copyright (c) 2003-2021 Aspose Pty Ltd # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of th...
36.574121
624
0.645828
3,417
29,113
5.216564
0.088382
0.06014
0.028275
0.016045
0.641515
0.496213
0.393043
0.239215
0.188387
0.12892
0
0.020956
0.275513
29,113
795
625
36.620126
0.824151
0.342527
0
0.102639
0
0
0.152875
0.050799
0
0
0
0
0
1
0.146628
false
0.082111
0.008798
0
0.246334
0.005865
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c1a48eb1c0e309496f0be9a970ec65fc62f63f3c
981
py
Python
tests/losses/test_lamb_gan_loss.py
limberc/HyperGAN
b074e74abf0ed9b81bd52084706e3707a47e0fe2
[ "MIT" ]
889
2016-08-27T01:37:35.000Z
2018-10-07T19:47:56.000Z
tests/losses/test_lamb_gan_loss.py
limberc/HyperGAN
b074e74abf0ed9b81bd52084706e3707a47e0fe2
[ "MIT" ]
218
2021-05-25T01:46:15.000Z
2022-02-11T01:08:52.000Z
tests/losses/test_lamb_gan_loss.py
limberc/HyperGAN
b074e74abf0ed9b81bd52084706e3707a47e0fe2
[ "MIT" ]
145
2016-09-27T06:56:24.000Z
2018-09-25T16:09:28.000Z
import tensorflow as tf import hyperchamber as hc import hypergan as hg import numpy as np from hypergan.losses.lamb_gan_loss import LambGanLoss from hypergan.ops import TensorflowOps from unittest.mock import MagicMock from tests.mocks import mock_gan loss_config = {'test': True, 'reduce':'reduce_mean', 'labels': [0...
32.7
119
0.654434
135
981
4.533333
0.392593
0.05719
0.053922
0.055556
0.075163
0
0
0
0
0
0
0.011921
0.230377
981
29
120
33.827586
0.798676
0
0
0.08
0
0
0.057085
0
0
0
0
0
0.12
1
0.08
false
0
0.32
0
0.44
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c1ae52c695e3f0b50fa41e0e39c71498b5115833
403
py
Python
src/chitty/web/meta.py
zgoda/chitty-server
8257ab39a9a6c0ae70d6e39e595925905c444850
[ "BSD-3-Clause" ]
null
null
null
src/chitty/web/meta.py
zgoda/chitty-server
8257ab39a9a6c0ae70d6e39e595925905c444850
[ "BSD-3-Clause" ]
null
null
null
src/chitty/web/meta.py
zgoda/chitty-server
8257ab39a9a6c0ae70d6e39e595925905c444850
[ "BSD-3-Clause" ]
null
null
null
import os from falcon import Request, Response class ServerMetadataResource: def on_get(self, req: Request, resp: Response) -> None: resp.cache_control = ['public', 'max-age=604800'] resp.media = { 'chat': { 'host': os.getenv('CHITTY_CHAT_HOST', '127.0.0.1'), ...
25.1875
67
0.550868
46
403
4.695652
0.695652
0.074074
0.12963
0.166667
0
0
0
0
0
0
0
0.05694
0.30273
403
15
68
26.866667
0.711744
0
0
0
0
0
0.191067
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c1b820b4d47994172a5b13534ae44af8e3d7d6e0
228
py
Python
10.变态跳台阶/10.变态跳台阶(DP).py
shenweichen/coding_interviews
990cc54a62b8fa277b743289e8d6f6e96a95225d
[ "MIT" ]
483
2020-01-05T12:58:59.000Z
2022-03-19T05:44:00.000Z
10.变态跳台阶/10.变态跳台阶(DP).py
moshilangzi/coding_interviews
990cc54a62b8fa277b743289e8d6f6e96a95225d
[ "MIT" ]
1
2020-01-20T08:47:15.000Z
2020-01-27T13:24:15.000Z
10.变态跳台阶/10.变态跳台阶(DP).py
moshilangzi/coding_interviews
990cc54a62b8fa277b743289e8d6f6e96a95225d
[ "MIT" ]
122
2020-01-05T14:10:04.000Z
2022-03-19T05:24:42.000Z
# -*- coding:utf-8 -*- class Solution: def jumpFloorII(self, number): # write code here dp = [0,1,2] for i in range(3,number+1): dp.append(sum(dp)+1) return dp[number]
25.333333
35
0.491228
31
228
3.612903
0.774194
0
0
0
0
0
0
0
0
0
0
0.048276
0.364035
228
9
36
25.333333
0.724138
0.157895
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c1b9ee59be99f775c2f552e13c66ff23db053369
1,025
py
Python
osp/test/corpus/models/document/test_format_counts.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
220
2016-01-22T21:19:02.000Z
2022-01-25T04:33:55.000Z
osp/test/corpus/models/document/test_format_counts.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-01-23T14:34:39.000Z
2016-09-19T19:58:37.000Z
osp/test/corpus/models/document/test_format_counts.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-02-03T13:47:48.000Z
2019-03-27T13:09:05.000Z
import pytest from osp.corpus.models import Document from osp.corpus.models import Document_Format pytestmark = pytest.mark.usefixtures('db') def test_format_counts(): """ Document.format_counts() """ d1 = Document.create(path='1') d2 = Document.create(path='2') d3 = Document.create(pat...
24.404762
62
0.650732
128
1,025
5.117188
0.328125
0.192366
0.164886
0.256489
0.100763
0.100763
0
0
0
0
0
0.051095
0.198049
1,025
41
63
25
0.745742
0.090732
0
0
0
0
0.077851
0
0
0
0
0
0.045455
1
0.045455
false
0
0.136364
0
0.181818
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c1ba667085462dd4a1725b7706f902a599a1b8e8
3,696
py
Python
polyaxon/dockerizer/builders/jobs.py
vfdev-5/polyaxon
3e1511a993dc1a03e0a0827de0357f4adcc0015f
[ "MIT" ]
null
null
null
polyaxon/dockerizer/builders/jobs.py
vfdev-5/polyaxon
3e1511a993dc1a03e0a0827de0357f4adcc0015f
[ "MIT" ]
null
null
null
polyaxon/dockerizer/builders/jobs.py
vfdev-5/polyaxon
3e1511a993dc1a03e0a0827de0357f4adcc0015f
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from constants.jobs import JobLifeCycle from db.models.repos import Repo from dockerizer.builders.base import BaseDockerBuilder class BaseJobDockerBuilder(BaseDockerBuilder): CHECK_INTERVAL = 10 def __init__(self, ...
34.222222
91
0.588474
420
3,696
4.859524
0.261905
0.050955
0.041156
0.039196
0.129838
0.086722
0.050955
0.033317
0
0
0
0.00123
0.340097
3,696
107
92
34.542056
0.835588
0.151786
0
0.139241
0
0
0.034693
0
0
0
0
0
0
1
0.063291
false
0.050633
0.063291
0
0.21519
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c1c7c2c4ce7d208b7884ed9d436d4aa0dfa66353
2,821
py
Python
src/csi_rover_vision/nodes/depth_image_processor.py
BhargavRE25/Rover-Machine-Learning
af48811ceb08acae1dda76473d294f362178dcbe
[ "MIT" ]
3
2020-09-21T17:15:08.000Z
2020-09-25T01:08:19.000Z
src/csi_rover_vision/nodes/depth_image_processor.py
columbia-university-robotics/vehicle-machine-learning
af48811ceb08acae1dda76473d294f362178dcbe
[ "MIT" ]
null
null
null
src/csi_rover_vision/nodes/depth_image_processor.py
columbia-university-robotics/vehicle-machine-learning
af48811ceb08acae1dda76473d294f362178dcbe
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Header from geometry_msgs.msg import PoseStamped from nav_msgs.msg import Odometry from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError import cv2 import sys import numpy as np import message_filters import tf class DepthImageProc...
30.333333
97
0.651542
369
2,821
4.674797
0.317073
0.081159
0.064928
0.017391
0.108986
0.023188
0
0
0
0
0
0.009165
0.265154
2,821
92
98
30.663043
0.822962
0.105636
0
0.105263
0
0
0.054162
0.017125
0
0
0
0
0
0
null
null
0.017544
0.192982
null
null
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c1c86881d74c59dcc1055e4123f85ff985b2a7b8
14,313
py
Python
src/ecs/packing_utils_v2.py
luojie1024/Huawei_CodeCraft_2018
f7fc6db09c65d9b19c773d3a8933109084ec0489
[ "Apache-2.0" ]
3
2019-03-01T12:16:02.000Z
2019-12-19T07:59:07.000Z
src/ecs/packing_utils_v2.py
luojie1024/Huawei_CodeCraft_2018
f7fc6db09c65d9b19c773d3a8933109084ec0489
[ "Apache-2.0" ]
null
null
null
src/ecs/packing_utils_v2.py
luojie1024/Huawei_CodeCraft_2018
f7fc6db09c65d9b19c773d3a8933109084ec0489
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import const_map import math import packing_method # 选择在packing_model 中的装配方案 pack_function = packing_method.used_func def pack_api(dataObj, predict_result,target_c_m): ''' 装配接口 :param dataObj: 数据对象 :param predict_result: 预测结果 ''' picker = VmWorker(predict_result) ...
27.107955
90
0.505485
1,942
14,313
3.45829
0.123584
0.038416
0.005807
0.00536
0.324598
0.216796
0.171828
0.144133
0.105718
0.094997
0
0.027532
0.375742
14,313
527
91
27.159393
0.724119
0.052051
0
0.25
0
0
0.024894
0.00606
0
0
0
0
0
0
null
null
0.009146
0.009146
null
null
0.006098
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c1d2a8d963e6ebb39bdd05cfd3af6f753ebfe074
821
py
Python
cookbook/c09/p06_optarg_decorator.py
Xiao-jiuguan/python3-cookbook
95d5a1d5cb59b5d88e816f6f10eb1e5befc25b05
[ "Apache-2.0" ]
3
2018-05-10T01:13:08.000Z
2018-06-17T12:34:07.000Z
cookbook/c09/p06_optarg_decorator.py
Xiao-jiuguan/python3-cookbook
95d5a1d5cb59b5d88e816f6f10eb1e5befc25b05
[ "Apache-2.0" ]
2
2020-09-19T17:10:23.000Z
2020-10-17T16:43:52.000Z
cookbook/c09/p06_optarg_decorator.py
Xiao-jiuguan/python3-cookbook
95d5a1d5cb59b5d88e816f6f10eb1e5befc25b05
[ "Apache-2.0" ]
1
2020-07-20T22:10:31.000Z
2020-07-20T22:10:31.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Topic: 带可选参数的装饰器 Desc : """ from functools import wraps, partial import logging def logged(func=None, *, level=logging.DEBUG, name=None, message=None): if func is None: return partial(logged, level=level, name=name, message=message) logname = name ...
19.093023
71
0.637028
122
821
4.221311
0.442623
0.046602
0.01165
0.015534
0.023301
0.023301
0
0
0
0
0
0.015337
0.205847
821
43
72
19.093023
0.77454
0.09866
0
0
0
0
0.02052
0
0
0
0
0
0
1
0.208333
false
0
0.083333
0.041667
0.458333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c1e6cca7b165fead74a5bacc1f44b552bb2b6d04
954
py
Python
tests/test_import.py
sandeep937/dvc
b3df249c9f9ae0ff2b54f58845d7c2479be86232
[ "Apache-2.0" ]
null
null
null
tests/test_import.py
sandeep937/dvc
b3df249c9f9ae0ff2b54f58845d7c2479be86232
[ "Apache-2.0" ]
null
null
null
tests/test_import.py
sandeep937/dvc
b3df249c9f9ae0ff2b54f58845d7c2479be86232
[ "Apache-2.0" ]
null
null
null
import os from uuid import uuid4 from dvc.main import main from tests.basic_env import TestDvc class TestCmdImport(TestDvc): def test(self): ret = main(['import', self.FOO, 'import']) self.assertEqual(ret, 0) self.assertTrue(os.path.exists('import.dvc')) ret = main(['import', 'n...
26.5
74
0.619497
113
954
5.20354
0.380531
0.085034
0.088435
0.061224
0.153061
0.153061
0.153061
0.153061
0.153061
0
0
0.00823
0.235849
954
35
75
27.257143
0.798354
0
0
0.24
0
0
0.119497
0
0
0
0
0
0.28
1
0.12
false
0
0.4
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c1e77797557582d8cf0f019777241dcacc17a322
1,620
py
Python
wapps/factories/identity.py
apihackers/wapps
e8158747aa3d77246d41142580faf9a5f2b0d968
[ "MIT" ]
7
2018-01-17T20:26:59.000Z
2022-03-23T08:12:00.000Z
wapps/factories/identity.py
apihackers/wapps
e8158747aa3d77246d41142580faf9a5f2b0d968
[ "MIT" ]
511
2017-10-21T17:59:50.000Z
2022-03-28T18:49:21.000Z
wapps/factories/identity.py
apihackers/wapps
e8158747aa3d77246d41142580faf9a5f2b0d968
[ "MIT" ]
2
2018-05-02T08:27:42.000Z
2020-08-17T18:42:49.000Z
import factory from wapps.models import IdentitySettings from .image import ImageFactory, SvgFileField from .site import SiteFactory from .tag import TagFactory class IdentityFactory(factory.DjangoModelFactory): site = factory.SubFactory(SiteFactory) name = factory.Faker('word') description = factory.Fa...
30.566038
57
0.661728
173
1,620
6.104046
0.479769
0.159091
0.075758
0.094697
0
0
0
0
0
0
0
0.001626
0.240741
1,620
52
58
31.153846
0.856911
0.050617
0
0
0
0
0.076271
0
0
0
0
0
0
1
0.02439
false
0
0.121951
0
0.731707
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c1ed569418f14a7b151160b01f80064045a30cb9
407
py
Python
evap/results/urls.py
PFischbeck/EvaP
33c4f07186966e0ef2636174aec1e6f330a91226
[ "MIT" ]
null
null
null
evap/results/urls.py
PFischbeck/EvaP
33c4f07186966e0ef2636174aec1e6f330a91226
[ "MIT" ]
null
null
null
evap/results/urls.py
PFischbeck/EvaP
33c4f07186966e0ef2636174aec1e6f330a91226
[ "MIT" ]
null
null
null
from django.urls import path from evap.results import views app_name = "results" urlpatterns = [ path("", views.index, name="index"), path("semester/<int:semester_id>/evaluation/<int:evaluation_id>", views.evaluation_detail, name="evaluation_detail"), path("evaluation/<int:evaluation_id>/text_answers_ex...
31.307692
140
0.766585
52
407
5.730769
0.384615
0.110738
0.171141
0.167785
0
0
0
0
0
0
0
0
0.09828
407
12
141
33.916667
0.811989
0
0
0
0
0
0.407862
0.336609
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c1f2d237f1126654af0b97b1caec7c54058b92fe
15,956
py
Python
models.py
Eudorajab1/jasmin_smsc_gui
c0a240e61791e167f23c39eb4f2663e27294af0d
[ "MIT" ]
9
2021-04-29T19:37:34.000Z
2022-03-28T23:44:54.000Z
models.py
Eudorajab1/jasmin_smsc_gui
c0a240e61791e167f23c39eb4f2663e27294af0d
[ "MIT" ]
1
2022-03-28T23:46:35.000Z
2022-03-28T23:46:35.000Z
models.py
Eudorajab1/jasmin_smsc_gui
c0a240e61791e167f23c39eb4f2663e27294af0d
[ "MIT" ]
2
2021-11-02T08:57:09.000Z
2022-02-01T14:04:57.000Z
""" This file defines the database models """ from .common import db, Field from pydal.validators import * from yatl.helpers import * from py4web.utils.form import Form, FormStyleBulma MTROUTE_TYPES = ('DefaultRoute', 'StaticMTRoute', 'RandomRoundrobinMTRoute','FailoverMTRoute') MOROUTE_TYPES = ('DefaultRoute', 'Stat...
109.287671
327
0.675859
2,187
15,956
4.821674
0.204847
0.021053
0.015932
0.025605
0.429872
0.346799
0.296159
0.246657
0.219346
0.206923
0
0.017591
0.191276
15,956
146
328
109.287671
0.799597
0.002319
0
0.031496
0
0.15748
0.57598
0.0159
0
0
0
0
0
1
0
false
0.015748
0.031496
0
0.031496
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de070afa042a313c96fb5ec549097de43204f066
21,498
py
Python
health.py
elvis124/health
ead2a9031ecc422cca78d2d79f8529f708ff42f4
[ "MIT" ]
1
2019-03-06T09:37:28.000Z
2019-03-06T09:37:28.000Z
health.py
elvis124/health
ead2a9031ecc422cca78d2d79f8529f708ff42f4
[ "MIT" ]
null
null
null
health.py
elvis124/health
ead2a9031ecc422cca78d2d79f8529f708ff42f4
[ "MIT" ]
null
null
null
#importing neccesary libaries and mudules needed to support functions from __future__ import unicode_literals from kivy.app import App from kivy.config import Config Config.set('input', 'multitouchscreen1', 'tuio,192.168.2.22:3306') Config.set('postproc','desktop','1') Config.set('kivy','exit_on_escape','1') Config.set...
47.041575
323
0.642618
2,853
21,498
4.690852
0.127936
0.028768
0.025106
0.013151
0.602257
0.531346
0.437719
0.411492
0.362026
0.307554
0
0.013886
0.219462
21,498
456
324
47.144737
0.783671
0.042748
0
0.439698
0
0
0.122196
0.00618
0
0
0
0
0
1
0.133166
false
0.055276
0.115578
0
0.30402
0.017588
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
de08caba4ef0b21f76f6627b323b97de341fa90a
5,106
py
Python
mangrove/bootstrap/views/measure_view_generation_times.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
mangrove/bootstrap/views/measure_view_generation_times.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
mangrove/bootstrap/views/measure_view_generation_times.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
import datetime from mangrove.datastore.database import get_db_manager,\ _delete_db_and_remove_db_manager from mangrove.bootstrap.initializer import _find_views from pytz import UTC import random from mangrove.datastore.entity import Entity from collections import defaultdict class ViewGenerationTimer(object): ...
39.276923
110
0.62123
614
5,106
4.794788
0.252443
0.057065
0.065217
0.038723
0.205163
0.190557
0.077106
0.059103
0.059103
0.029212
0
0.010046
0.278692
5,106
129
111
39.581395
0.789302
0.080102
0
0.05
0
0
0.070239
0
0
0
0
0
0
0
null
null
0
0.08
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
de08ddb186608454e8bbaacbc67356a1a3584bf7
14,411
py
Python
solace/scripts.py
Plurk/Solace
752a98e3279f1e7e0dafd6281e90ba24cb733474
[ "BSD-3-Clause" ]
4
2015-10-28T22:23:07.000Z
2021-08-25T15:21:25.000Z
solace/scripts.py
sfermigier/solace
32d0b398643344c797a40a094689300c364de3b0
[ "BSD-3-Clause" ]
null
null
null
solace/scripts.py
sfermigier/solace
32d0b398643344c797a40a094689300c364de3b0
[ "BSD-3-Clause" ]
1
2018-11-25T17:52:22.000Z
2018-11-25T17:52:22.000Z
# -*- coding: utf-8 -*- """ solace.scripts ~~~~~~~~~~~~~~ Provides some setup.py commands. The js-translation compiler is taken from Sphinx, the Python documentation tool. :copyright: (c) 2009 by Plurk Inc. (c) 2009 by the Sphinx Team, see AUTHORS for more details. :license: B...
37.334197
78
0.546319
1,603
14,411
4.825328
0.321273
0.012928
0.012799
0.013575
0.198449
0.118552
0.10084
0.069295
0.067615
0.067615
0
0.012784
0.36493
14,411
385
79
37.431169
0.832386
0.021997
0
0.203175
0
0
0.180776
0.001861
0
0
0
0
0
0
null
null
0.015873
0.073016
null
null
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
de0c0866e0e73f56c68f46aa289f7a3a8ae8815a
744
py
Python
setup.py
patthoyts/tivoctl
e780548992e71420b5734fdf4fcae8874d018d81
[ "MIT" ]
2
2019-05-06T21:04:48.000Z
2019-05-07T04:37:49.000Z
setup.py
patthoyts/tivoctl
e780548992e71420b5734fdf4fcae8874d018d81
[ "MIT" ]
null
null
null
setup.py
patthoyts/tivoctl
e780548992e71420b5734fdf4fcae8874d018d81
[ "MIT" ]
2
2018-12-08T23:45:54.000Z
2021-06-01T21:32:31.000Z
#!/usr/bin/env python import setuptools import tivoctl setuptools.setup( name=tivoctl.__title__, version=tivoctl.__version__, description=tivoctl.__doc__, url=tivoctl.__url__, author=tivoctl.__author__, author_email=tivoctl.__author_email__, license=tivoctl.__license__, long_descriptio...
25.655172
60
0.647849
72
744
6.152778
0.652778
0.058691
0
0
0
0
0
0
0
0
0
0.003431
0.216398
744
28
61
26.571429
0.756432
0.026882
0
0
0
0
0.28769
0.040111
0
0
0
0
0
1
0
true
0
0.08
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
de0d3355466a1d74003a1deace60e7eaab7653de
8,065
py
Python
src/aslc/GLSLBackend.py
ronsaldo/aslc
1c9570434c33b89ce7c238bee6e81dcde9c91daf
[ "MIT" ]
null
null
null
src/aslc/GLSLBackend.py
ronsaldo/aslc
1c9570434c33b89ce7c238bee6e81dcde9c91daf
[ "MIT" ]
null
null
null
src/aslc/GLSLBackend.py
ronsaldo/aslc
1c9570434c33b89ce7c238bee6e81dcde9c91daf
[ "MIT" ]
null
null
null
import StringIO from HLBackend import * BasicTypeRawMapping = ( ('void', 'void'), ('int', 'int'), (VectorType.get(BasicType_Int, 2), 'ivec2'), (VectorType.get(BasicType_Int, 3), 'ivec3'), (VectorType.get(BasicType_Int, 4), 'ivec4'), ('float', 'float'), (VectorType.get(BasicType_Float, 2), 'vec2'), (VectorTyp...
28.199301
144
0.722505
793
8,065
7.281211
0.259773
0.032906
0.022861
0.030308
0.217007
0.152754
0.089713
0.069622
0.069622
0.024939
0
0.004903
0.140236
8,065
286
145
28.199301
0.827805
0.008308
0
0.176211
0
0
0.072661
0
0
0
0
0
0.017621
0
null
null
0
0.008811
null
null
0.008811
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
de0d4fbe0dcdc845431d0fb590e975c2c855b47f
1,078
py
Python
geoapps/simpegPF/Utils/__init__.py
RichardScottOZ/geoapps
5b3c1d4fd11add45992e8b2497312ac014272b69
[ "MIT" ]
1
2022-02-18T16:24:53.000Z
2022-02-18T16:24:53.000Z
geoapps/simpegPF/Utils/__init__.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
geoapps/simpegPF/Utils/__init__.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
from discretize.utils.interputils import interpmat from .matutils import ( mkvc, sdiag, sdInv, speye, kron3, spzeros, ddx, av, av_extrap, ndgrid, ind2sub, sub2ind, getSubArray, inv3X3BlockDiagonal, inv2X2BlockDiagonal, TensorType, makePropertyTensor, ...
21.137255
81
0.730983
98
1,078
7.979592
0.734694
0.025575
0
0
0
0
0
0
0
0
0
0.010613
0.213358
1,078
50
82
21.56
0.911557
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.270833
0
0.270833
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
a9a915fa17967a2202dcf4b6b40dcb29d45aca39
4,482
py
Python
hantek_wave_viewer/__init__.py
mattdavis90/hantek-wave-viewer
5cb2b10ec56ef73015cd7b7a1c1d1983fa89cc07
[ "MIT" ]
3
2021-07-30T13:05:39.000Z
2022-03-21T11:13:32.000Z
hantek_wave_viewer/__init__.py
mattdavis90/hantek-wave-viewer
5cb2b10ec56ef73015cd7b7a1c1d1983fa89cc07
[ "MIT" ]
1
2022-01-02T13:37:45.000Z
2022-01-02T16:18:22.000Z
hantek_wave_viewer/__init__.py
mattdavis90/hantek-wave-viewer
5cb2b10ec56ef73015cd7b7a1c1d1983fa89cc07
[ "MIT" ]
2
2021-11-01T16:20:41.000Z
2021-11-25T13:17:20.000Z
import click import matplotlib.pyplot as plt import matplotlib.transforms as transforms import numpy as np from kaitaistruct import KaitaiStructError from matplotlib.ticker import MultipleLocator, NullFormatter from .parser.hantek import Hantek from .parser import conversions, utils @click.argument("filename", type=...
45.272727
107
0.694333
645
4,482
4.702326
0.272868
0.075833
0.083086
0.032971
0.383119
0.362018
0.322453
0.288164
0.215628
0.208704
0
0.025765
0.168675
4,482
98
108
45.734694
0.788245
0.080544
0
0.054795
0
0
0.060097
0.006083
0
0
0
0.010204
0
1
0.013699
false
0
0.109589
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
1
0
0
0
0
0
0
0
0
0
0
1
a9aa11beddbf453f76e21bbaf090fbb954fec6e5
1,102
py
Python
test/test_phones.py
miaowization/PythonTraining
32ff6ceedc3ba15efbc86b1bb8afbf65060690a1
[ "Apache-2.0" ]
null
null
null
test/test_phones.py
miaowization/PythonTraining
32ff6ceedc3ba15efbc86b1bb8afbf65060690a1
[ "Apache-2.0" ]
null
null
null
test/test_phones.py
miaowization/PythonTraining
32ff6ceedc3ba15efbc86b1bb8afbf65060690a1
[ "Apache-2.0" ]
null
null
null
import re import random def test_phones_on_home_page(app): contacts = app.contact.get_contact_list() index = random.randrange(len((contacts))) contact_from_home_page = app.contact.get_contact_list()[index] contact_from_edit_page = app.contact.get_contact_info_from_edit_page(index) assert contact_fr...
47.913043
129
0.831216
164
1,102
5.042683
0.176829
0.186215
0.130593
0.160822
0.766626
0.585248
0.43289
0.394196
0.394196
0.394196
0
0
0.098911
1,102
22
130
50.090909
0.83283
0
0
0.352941
0
0
0
0
0
0
0
0
0.294118
1
0.117647
false
0
0.117647
0
0.235294
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9ab94f9f5d611ce8b806cca6cd5a5489f613dbb
543
py
Python
heritage/migrations/0034_auto_20160223_1445.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
heritage/migrations/0034_auto_20160223_1445.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
11
2020-03-24T15:29:46.000Z
2022-03-11T23:14:48.000Z
heritage/migrations/0034_auto_20160223_1445.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('heritage', '0033_merge'), ] operations = [ migrations.RemoveField( model_name='sessionasset', name='i...
21.72
40
0.569061
42
543
7.142857
0.642857
0.16
0.173333
0.2
0.306667
0.306667
0
0
0
0
0
0.013514
0.3186
543
24
41
22.625
0.797297
0.038674
0
0.368421
0
0
0.151923
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9b4cd658e27fcad2f69590611913292ad17226d
1,087
py
Python
projectoAdmVeh/negocio/tipoVehiculo.py
Jofemago/Administrador_vehiculos
9e523498b2b5bc47d05d24cd0d02ba833abd07d6
[ "MIT" ]
null
null
null
projectoAdmVeh/negocio/tipoVehiculo.py
Jofemago/Administrador_vehiculos
9e523498b2b5bc47d05d24cd0d02ba833abd07d6
[ "MIT" ]
null
null
null
projectoAdmVeh/negocio/tipoVehiculo.py
Jofemago/Administrador_vehiculos
9e523498b2b5bc47d05d24cd0d02ba833abd07d6
[ "MIT" ]
1
2019-07-18T03:49:58.000Z
2019-07-18T03:49:58.000Z
from modelo.BD_tipoVehiculo import _TipoVehiculo from modelo.createDatabase import makeEngine from modelo.createDatabase import makeBase from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine class TipoVehiculo: base = makeBase() eng = makeEngine() def __init__(...
20.509434
70
0.590616
115
1,087
5.408696
0.443478
0.048232
0.07717
0.096463
0
0
0
0
0
0
0
0
0.327507
1,087
53
71
20.509434
0.850889
0.039558
0
0
0
0
0.039354
0
0
0
0
0
0
1
0.137931
false
0
0.172414
0.034483
0.517241
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a9b6978fd7689a0ce662a351c5883daf559bb70f
700
py
Python
luiz_otavio/exercises/ex014.py
felipefdeaguiar/-LearnPython3
c5344da713533faafb10cadb6fc26a98d7c6bea6
[ "MIT" ]
1
2021-11-21T13:56:38.000Z
2021-11-21T13:56:38.000Z
luiz_otavio/exercises/ex014.py
felipefdeaguiar/Python
c5344da713533faafb10cadb6fc26a98d7c6bea6
[ "MIT" ]
null
null
null
luiz_otavio/exercises/ex014.py
felipefdeaguiar/Python
c5344da713533faafb10cadb6fc26a98d7c6bea6
[ "MIT" ]
null
null
null
""" 23.12.2020 - Felipe Ferreira de Aguiar Manipulando Strings * Strings Indices * Fatiamento de Strings * Funcões built-in len, abs, type, print Documentação da aula abaixo: https://docs.python.org/3/library/functions.html https://docs.python.org/3/library/stdtypes.html """ # ! ind...
22.580645
82
0.671429
103
700
4.543689
0.631068
0.038462
0.064103
0.076923
0.209402
0.111111
0
0
0
0
0
0.053286
0.195714
700
30
83
23.333333
0.777975
0.68
0
0.222222
0
0
0.255556
0
0
0
0
0
0
1
0
false
0
0
0
0
0.444444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
a9b8040ed8f737b98e31e016b7a9276c10b17abd
2,915
py
Python
Python Scripts/happy-new-year.py
lazydinoz/HackFest21
84bfbfbb2c75a6511226a87d2e947984db878ba1
[ "MIT" ]
1
2021-11-12T10:51:19.000Z
2021-11-12T10:51:19.000Z
Python Scripts/happy-new-year.py
lazydinoz/HackFest21
84bfbfbb2c75a6511226a87d2e947984db878ba1
[ "MIT" ]
null
null
null
Python Scripts/happy-new-year.py
lazydinoz/HackFest21
84bfbfbb2c75a6511226a87d2e947984db878ba1
[ "MIT" ]
null
null
null
# Visit pyGuru on Youtube import turtle t = turtle.Pen() t.shape('turtle') t.width(20) t.speed(8) t.up() t.goto(-190,170) t.down() def h(): t.color('blue') t.lt(90) t.fd(100) t.back(50) t.rt(90) t.fd(50) t.lt(90) t.fd(50) t.back(100) def a(): t.lt(90) t.fd(100) t.rt(90) t.fd(50...
10.958647
26
0.501544
658
2,915
2.221885
0.120061
0.104651
0.133379
0.094391
0.725034
0.653899
0.599863
0.525992
0.463748
0.452804
0
0.150893
0.231561
2,915
265
27
11
0.501786
0.021955
0
0.77686
0
0
0.038357
0
0
0
0
0
0
1
0.045455
false
0
0.004132
0
0.049587
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9b897b26ef4a2a11ab551bfa5b0cdae3273a400
189
py
Python
codeforces/231ATeam.py
Fr3ud/codingProblems
8db943f5796385a4eeacc6fb0acfc846972cb058
[ "Apache-2.0" ]
null
null
null
codeforces/231ATeam.py
Fr3ud/codingProblems
8db943f5796385a4eeacc6fb0acfc846972cb058
[ "Apache-2.0" ]
null
null
null
codeforces/231ATeam.py
Fr3ud/codingProblems
8db943f5796385a4eeacc6fb0acfc846972cb058
[ "Apache-2.0" ]
2
2021-10-30T09:58:08.000Z
2021-10-30T11:21:00.000Z
def sol(prblm): _1 = prblm.count("1") if _1 >= 2: return 1 return 0 count = 0 for _ in range(int(input())): prblm = input() count += sol(prblm) print(count)
12.6
29
0.534392
28
189
3.5
0.535714
0.163265
0
0
0
0
0
0
0
0
0
0.053846
0.312169
189
14
30
13.5
0.7
0
0
0
0
0
0.005291
0
0
0
0
0
0
1
0.1
false
0
0
0
0.3
0.1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9ba46bc07112c5c0befffe8d27b137867207f8f
371
py
Python
test/unit/api/test_network_provider_fullname.py
redmic-project/device-oag-buoy-modem
e905c53a5705695670512ff8f72bcc44c44421b1
[ "MIT" ]
2
2019-07-02T14:34:52.000Z
2021-04-15T12:48:20.000Z
test/unit/api/test_network_provider_fullname.py
alzeih/python-vodem-vodafone-K4607-Z
d3b1f35d510b71b79ba9203993b5228006d9d8ee
[ "MIT" ]
null
null
null
test/unit/api/test_network_provider_fullname.py
alzeih/python-vodem-vodafone-K4607-Z
d3b1f35d510b71b79ba9203993b5228006d9d8ee
[ "MIT" ]
null
null
null
import unittest from vodem.api import network_provider_fullname class TestNetworkProviderFullname(unittest.TestCase): @classmethod def setUpClass(cls): cls.valid_response = { 'network_provider_fullname': '', } def test_call(self): resp = network_provider_fullname() ...
21.823529
53
0.690027
37
371
6.675676
0.594595
0.182186
0.279352
0
0
0
0
0
0
0
0
0
0.229111
371
16
54
23.1875
0.863636
0
0
0
0
0
0.067385
0.067385
0
0
0
0
0.090909
1
0.181818
false
0
0.181818
0
0.454545
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9bbfd75a2ef05b8db8b8c94582084bcd100e96f
2,419
py
Python
user_tags/migrations/0001_initial.py
bitlabstudio/django-user-tags
b3f55d46cf4943ced266c112c49f4555b7bab74e
[ "MIT" ]
3
2017-11-10T19:30:12.000Z
2019-10-27T02:23:13.000Z
user_tags/migrations/0001_initial.py
bitmazk/django-user-tags
b3f55d46cf4943ced266c112c49f4555b7bab74e
[ "MIT" ]
4
2018-04-13T14:49:58.000Z
2021-06-10T20:34:57.000Z
user_tags/migrations/0001_initial.py
bitmazk/django-user-tags
b3f55d46cf4943ced266c112c49f4555b7bab74e
[ "MIT" ]
1
2021-09-23T12:42:30.000Z
2021-09-23T12:42:30.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-14 15:53 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('conten...
39.016129
167
0.608929
245
2,419
5.808163
0.342857
0.061841
0.039353
0.061841
0.323261
0.323261
0.323261
0.269852
0.24104
0.16655
0
0.015075
0.259611
2,419
61
168
39.655738
0.779453
0.028111
0
0.433962
1
0
0.13586
0.041312
0
0
0
0
0
1
0
false
0
0.075472
0
0.150943
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9bf3baaff334d5d1c7c48eb7a8296df89e43617
3,616
py
Python
tf1x/models/lca_conv_model.py
dpaiton/DeepSparseCoding
5ea01fa8770794df5e13743aa3f2d85297c27eb1
[ "MIT" ]
12
2017-04-27T17:19:31.000Z
2021-11-07T03:37:59.000Z
tf1x/models/lca_conv_model.py
dpaiton/DeepSparseCoding
5ea01fa8770794df5e13743aa3f2d85297c27eb1
[ "MIT" ]
12
2018-03-21T01:16:25.000Z
2022-02-10T00:21:58.000Z
tf1x/models/lca_conv_model.py
dpaiton/DeepSparseCoding
5ea01fa8770794df5e13743aa3f2d85297c27eb1
[ "MIT" ]
12
2017-02-01T19:49:57.000Z
2021-12-08T03:16:58.000Z
import numpy as np import tensorflow as tf import DeepSparseCoding.tf1x.utils.plot_functions as pf import DeepSparseCoding.tf1x.utils.data_processing as dp from DeepSparseCoding.tf1x.models.lca_model import LcaModel from DeepSparseCoding.tf1x.modules.lca_conv_module import LcaConvModule class LcaConvModel(LcaModel): ...
42.541176
96
0.716538
526
3,616
4.701521
0.319392
0.07683
0.032349
0.04448
0.207845
0.146785
0.099879
0.099879
0.084917
0.084917
0
0.011897
0.163164
3,616
84
97
43.047619
0.805354
0.183075
0
0
0
0
0.064899
0
0
0
0
0.011905
0.019231
1
0.076923
false
0
0.115385
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a9c3d53fc599904f6373e7e563f41224c6d22000
2,184
py
Python
agents/prioritized_dqn_agent.py
itraveribon/banana_dqn_udacity
a3d51e6fdcbe148f4aba034f0d3d1f34eab828bb
[ "MIT" ]
null
null
null
agents/prioritized_dqn_agent.py
itraveribon/banana_dqn_udacity
a3d51e6fdcbe148f4aba034f0d3d1f34eab828bb
[ "MIT" ]
null
null
null
agents/prioritized_dqn_agent.py
itraveribon/banana_dqn_udacity
a3d51e6fdcbe148f4aba034f0d3d1f34eab828bb
[ "MIT" ]
null
null
null
import numpy as np import torch from agents import dqn_agent from agents.prioritized_replay_buffer_sumtree import PrioritizedReplayBuffer class PrioritizedAgent(dqn_agent.Agent): """Interacts with and learns from the environment.""" def __init__(self, state_size, action_size, seed): """Initialize an...
37.016949
120
0.661172
256
2,184
5.414063
0.425781
0.070707
0.079365
0.097403
0.113997
0
0
0
0
0
0
0.010035
0.224359
2,184
58
121
37.655172
0.808146
0.245421
0
0
0
0
0
0
0
0
0
0
0
1
0.08
false
0
0.36
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a9c7ae6f19a724519a8e4f82da222706b5f300a7
5,088
py
Python
citadel/api/pod.py
CMGS/citadel
8363a598ed4422d6671f06bad7def3ebb848f441
[ "MIT" ]
null
null
null
citadel/api/pod.py
CMGS/citadel
8363a598ed4422d6671f06bad7def3ebb848f441
[ "MIT" ]
null
null
null
citadel/api/pod.py
CMGS/citadel
8363a598ed4422d6671f06bad7def3ebb848f441
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Pod / Node management API""" from flask import g, abort from citadel.libs.view import create_api_blueprint, user_require from citadel.models.container import Container from citadel.rpc.client import get_core bp = create_api_blueprint('pod', __name__, 'pod') def _get_pod(name): pod =...
41.704918
2,580
0.56191
521
5,088
5.360845
0.429942
0.027569
0.025063
0.034014
0.265306
0.231293
0.15324
0.15324
0.15324
0.131042
0
0.0634
0.153695
5,088
121
2,581
42.049587
0.58523
0.696737
0
0.242424
0
0
0.074458
0
0
0
0
0
0
1
0.181818
false
0
0.121212
0
0.484848
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9cb1d2561d4e913f2056aa2c9b69a723a641969
1,931
py
Python
lbm/src/app/base_app.py
jviquerat/lbm
96522a247d25ac533e6fdba90ddb90251f144a50
[ "MIT" ]
32
2020-11-13T07:49:34.000Z
2022-03-31T08:36:52.000Z
lbm/src/app/base_app.py
elswit/lbm
68b061f6f6bdb200a1e9e18531fd7bcad553f26f
[ "MIT" ]
1
2022-02-17T11:44:14.000Z
2022-03-25T12:56:11.000Z
lbm/src/app/base_app.py
elswit/lbm
68b061f6f6bdb200a1e9e18531fd7bcad553f26f
[ "MIT" ]
7
2021-07-18T22:37:41.000Z
2022-03-29T21:57:55.000Z
# Generic imports import math # Custom imports from lbm.src.utils.shapes import * from lbm.src.core.obstacle import * ############################################### ### Base app class base_app(): ### Set inlet fields def set_inlets(self, lattice, it): pass ### Compute observables def observ...
27.585714
70
0.494045
222
1,931
4.184685
0.373874
0.053821
0.043057
0.036598
0.083961
0.083961
0.083961
0
0
0
0
0.005573
0.34956
1,931
69
71
27.985507
0.734076
0.074573
0
0.261905
0
0
0.078671
0
0
0
0
0
0
1
0.142857
false
0.071429
0.071429
0
0.261905
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a9d095ce36356e7ef30c09a4ee6e2a2426195379
1,072
py
Python
python/strings/yahoo2.py
hs634/algorithms
e411d747eb27a1c784605e44111de2703f6dde4d
[ "MIT" ]
null
null
null
python/strings/yahoo2.py
hs634/algorithms
e411d747eb27a1c784605e44111de2703f6dde4d
[ "MIT" ]
null
null
null
python/strings/yahoo2.py
hs634/algorithms
e411d747eb27a1c784605e44111de2703f6dde4d
[ "MIT" ]
null
null
null
__author__ = 'harsh' ''' Given two words, determine if the first word, or any anagram of it, appears in consecutive characters of the second word. For instance, tea appears as an anagram in the last three letters of slate, but let does not appear as an anagram in actor even though all the letters of let a...
24.930233
126
0.624067
153
1,072
4.287582
0.444444
0.036585
0.068598
0.039634
0
0
0
0
0
0
0
0.008108
0.309701
1,072
43
127
24.930233
0.878378
0
0
0.222222
0
0
0.051282
0
0
0
0
0
0
0
null
null
0
0
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a9d0ce32cd89e66e535e007ce974d024f687913b
3,505
py
Python
backend/core/migrations/0001_initial.py
andreaabellera/Ecoyou
7b12e8a0d910549eaabf9d0e5e2da0abc293ca36
[ "MIT" ]
null
null
null
backend/core/migrations/0001_initial.py
andreaabellera/Ecoyou
7b12e8a0d910549eaabf9d0e5e2da0abc293ca36
[ "MIT" ]
null
null
null
backend/core/migrations/0001_initial.py
andreaabellera/Ecoyou
7b12e8a0d910549eaabf9d0e5e2da0abc293ca36
[ "MIT" ]
1
2021-01-14T21:12:47.000Z
2021-01-14T21:12:47.000Z
# Generated by Django 3.1.4 on 2021-01-08 02:38 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Badge', fields=[ ('id', models.AutoField(au...
44.935897
114
0.562054
322
3,505
6
0.242236
0.100932
0.051242
0.071429
0.609213
0.571946
0.571946
0.571946
0.571946
0.571946
0
0.027744
0.290442
3,505
77
115
45.519481
0.749095
0.012839
0
0.585714
1
0
0.09572
0
0
0
0
0
0
1
0
false
0
0.014286
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9d5869d6b2fa94ae875350765d730ba155cbe5b
1,512
py
Python
bin/contentctl_project/contentctl_infrastructure/builder/security_content_investigation_builder.py
arjunkhunti-crest/security_content
41e354485e5917d3366ef735a9c5b25a20d3b8cc
[ "Apache-2.0" ]
null
null
null
bin/contentctl_project/contentctl_infrastructure/builder/security_content_investigation_builder.py
arjunkhunti-crest/security_content
41e354485e5917d3366ef735a9c5b25a20d3b8cc
[ "Apache-2.0" ]
null
null
null
bin/contentctl_project/contentctl_infrastructure/builder/security_content_investigation_builder.py
arjunkhunti-crest/security_content
41e354485e5917d3366ef735a9c5b25a20d3b8cc
[ "Apache-2.0" ]
null
null
null
import re import sys from pydantic import ValidationError from bin.contentctl_project.contentctl_core.application.builder.investigation_builder import InvestigationBuilder from bin.contentctl_project.contentctl_core.domain.entities.investigation import Investigation from bin.contentctl_project.contentctl_infrastructu...
34.363636
221
0.691799
153
1,512
6.686275
0.411765
0.132942
0.066471
0.093842
0.236559
0.138807
0.101662
0.101662
0
0
0
0.000811
0.184524
1,512
44
221
34.363636
0.828873
0
0
0
0
0
0.036352
0
0
0
0
0
0
1
0.172414
false
0
0.241379
0.034483
0.517241
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a9d679a3cfe8f4ed6ca4462fc2c4aebf02501562
626
py
Python
test/base.py
itsmeCin/d2vs
d67f737620b0fe0aa479e9c66a834764f036bd68
[ "MIT" ]
null
null
null
test/base.py
itsmeCin/d2vs
d67f737620b0fe0aa479e9c66a834764f036bd68
[ "MIT" ]
null
null
null
test/base.py
itsmeCin/d2vs
d67f737620b0fe0aa479e9c66a834764f036bd68
[ "MIT" ]
null
null
null
import numpy as np from unittest import TestCase from PIL import Image from d2vs.ocr import OCR class OCRTestCases(TestCase): def setUp(self): self.ocr = OCR() def _img_to_np(self, path): img = Image.open(path) return np.asarray(img, dtype='uint8') def _check_...
25.04
73
0.627796
84
626
4.464286
0.452381
0.106667
0.037333
0
0
0
0
0
0
0
0
0.008929
0.284345
626
24
74
26.083333
0.828125
0
0
0
0
0
0.008306
0
0
0
0
0
0.176471
1
0.176471
false
0
0.235294
0
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a9d9b2323083a4b66b6d5fb8c072903336330ae4
13,539
py
Python
all_functions/linux server/python GUI/wxpython_flash - Copy.py
Heroku-elasa/-heroku-buildpack-python-ieee-new
06ec2fda04d9e478ed2506400e460489b0ca91ab
[ "MIT" ]
null
null
null
all_functions/linux server/python GUI/wxpython_flash - Copy.py
Heroku-elasa/-heroku-buildpack-python-ieee-new
06ec2fda04d9e478ed2506400e460489b0ca91ab
[ "MIT" ]
15
2021-03-18T20:25:13.000Z
2022-03-02T14:54:33.000Z
all_functions/linux server/python GUI/wxpython_flash - Copy.py
Heroku-elasa/heroku-buildpack-python-ieee-new
06ec2fda04d9e478ed2506400e460489b0ca91ab
[ "MIT" ]
1
2017-03-04T16:48:55.000Z
2017-03-04T16:48:55.000Z
""" GrooveWalrus: Flash Player Copyright (C) 2009, 2010 11y3y3y3y43@gmail.com http://groove-walrus.turnip-town.net ----- 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...
41.530675
168
0.626265
1,699
13,539
4.830489
0.250147
0.046302
0.01316
0.026319
0.388571
0.334105
0.272329
0.237968
0.196661
0.172048
0
0.014586
0.250535
13,539
325
169
41.658462
0.794225
0.274319
0
0.148387
0
0.006452
0.081055
0
0
0
0
0
0.006452
0
null
null
0.025806
0.045161
null
null
0.03871
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a9dabd49cf3a4d5bba971150c7530208c635b045
2,813
py
Python
federation/tests/test_fetchers.py
weex/federation
01357aacb04b076442ce5f803a0fc65df5a74d09
[ "BSD-3-Clause" ]
93
2016-11-26T10:52:13.000Z
2022-01-15T20:07:35.000Z
federation/tests/test_fetchers.py
weex/federation
01357aacb04b076442ce5f803a0fc65df5a74d09
[ "BSD-3-Clause" ]
75
2016-10-18T10:15:44.000Z
2019-10-05T22:16:32.000Z
federation/tests/test_fetchers.py
weex/federation
01357aacb04b076442ce5f803a0fc65df5a74d09
[ "BSD-3-Clause" ]
9
2017-04-08T08:03:45.000Z
2021-09-13T22:00:48.000Z
from unittest.mock import patch, Mock, call from federation.fetchers import retrieve_remote_profile, retrieve_remote_content class TestRetrieveRemoteContent: @patch("federation.fetchers.importlib.import_module") def test_calls_activitypub_retrieve_and_parse_content(self, mock_import): mock_retrieve =...
50.232143
120
0.740135
339
2,813
5.758112
0.182891
0.056352
0.094262
0.065574
0.633197
0.604508
0.571721
0.571721
0.571721
0.405738
0
0.005083
0.160683
2,813
55
121
51.145455
0.821686
0
0
0.333333
0
0
0.219694
0.145396
0
0
0
0
0.125
1
0.083333
false
0
0.333333
0
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a9dd37febc5a7ea11a814b60ad8ec5a510d6ba88
278
py
Python
siteblog/blog/templatetags/menu.py
wiky-avis/dartblog
af8cfcaa410006c62707fe1bfe8f94a2c5714b02
[ "MIT" ]
null
null
null
siteblog/blog/templatetags/menu.py
wiky-avis/dartblog
af8cfcaa410006c62707fe1bfe8f94a2c5714b02
[ "MIT" ]
6
2021-06-09T18:05:22.000Z
2022-03-12T00:56:37.000Z
siteblog/blog/templatetags/menu.py
wiky-avis/dartblog
af8cfcaa410006c62707fe1bfe8f94a2c5714b02
[ "MIT" ]
null
null
null
from django import template from blog.models import Category register = template.Library() @register.inclusion_tag('inc/menu_tpl.html') def show_menu(menu_class='menu'): categories = Category.objects.all() return {'categories': categories, 'menu_class': menu_class}
23.166667
63
0.758993
36
278
5.694444
0.611111
0.131707
0.126829
0
0
0
0
0
0
0
0
0
0.122302
278
11
64
25.272727
0.840164
0
0
0
0
0
0.147482
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a9e76e674583cf9bbe414aa9046751492cfebb42
3,362
py
Python
test/test_exponential_family.py
nonconvexopt/pytorch_ssge
3e07e1748d97bd227c66f76ee76c04dc3e8b4ec4
[ "MIT" ]
null
null
null
test/test_exponential_family.py
nonconvexopt/pytorch_ssge
3e07e1748d97bd227c66f76ee76c04dc3e8b4ec4
[ "MIT" ]
1
2022-01-11T10:37:49.000Z
2022-01-11T10:37:49.000Z
test/test_exponential_family.py
nonconvexopt/pytorch_ssge
3e07e1748d97bd227c66f76ee76c04dc3e8b4ec4
[ "MIT" ]
null
null
null
import pytest import torch import gpytorch from torch_ssge import SSGE KERNELS = [ gpytorch.kernels.ScaleKernel(gpytorch.kernels.RBFKernel()), gpytorch.kernels.ScaleKernel(gpytorch.kernels.MaternKernel()), ] # Example is consist of (<sampler instance>) # <sampler instance> should have '.sample' and 'log_pro...
28.016667
95
0.533016
362
3,362
4.878453
0.248619
0.211778
0.101925
0.095696
0.294451
0.248018
0.230464
0.230464
0.230464
0.193658
0
0.037712
0.282272
3,362
119
96
28.252101
0.694157
0.031529
0
0.165049
0
0
0.064863
0
0
0
0
0
0.009709
1
0.009709
false
0
0.038835
0
0.048544
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9ea7e1103d7e405e0173553e3a33e8c3f2d77a8
1,116
py
Python
src/Chapter7/Exercise2.py
djeada/Python-For-Informatics
fc93cb60b6c81ee98b82b76934d39930a0c323d0
[ "MIT" ]
null
null
null
src/Chapter7/Exercise2.py
djeada/Python-For-Informatics
fc93cb60b6c81ee98b82b76934d39930a0c323d0
[ "MIT" ]
null
null
null
src/Chapter7/Exercise2.py
djeada/Python-For-Informatics
fc93cb60b6c81ee98b82b76934d39930a0c323d0
[ "MIT" ]
null
null
null
""" Exercise 2 Write a program to prompt for a file name, and then read through the file and look for lines of the form: X-DSPAM-Confidence: 0.8475 When you encounter a line that starts with 'X-DSPAM-Confidence:' pull apart the line to extract the floating point number on the line. Count these lines and the compute ...
36
78
0.729391
177
1,116
4.542373
0.40113
0.059701
0.104478
0.039801
0.11194
0
0
0
0
0
0
0.040975
0.19086
1,116
30
79
37.2
0.849391
0.583333
0
0
0
0
0.140044
0
0
0
0
0
0
1
0
false
0.076923
0
0
0
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
1
0
0
0
0
0
1
a9ed614fe3c61a4ccb6a6fd96549be447884ceeb
353
py
Python
assets/downloads/CQED/CQED/Code/color.py
OTPS3141/otps3141.github.io
2c0ee2d0f531ad4f7c99c0ba2962d7e1b6b290a4
[ "MIT" ]
null
null
null
assets/downloads/CQED/CQED/Code/color.py
OTPS3141/otps3141.github.io
2c0ee2d0f531ad4f7c99c0ba2962d7e1b6b290a4
[ "MIT" ]
null
null
null
assets/downloads/CQED/CQED/Code/color.py
OTPS3141/otps3141.github.io
2c0ee2d0f531ad4f7c99c0ba2962d7e1b6b290a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Nov 21 13:00:28 2021 @author: OTPS """ import matplotlib.pyplot as plt import numpy as np from scipy.ndimage.filters import gaussian_filter from PIL import Image img1 = Image.open(r"fit to merge.png", mode='r') img2 = Image.open(r"base to merge.png") img1.paste(img2, ...
17.65
49
0.685552
61
353
3.95082
0.704918
0.074689
0.082988
0
0
0
0
0
0
0
0
0.071429
0.167139
353
20
50
17.65
0.748299
0.206799
0
0
0
0
0.124542
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a9efff0068d850b62f8833a3ca0a86fffd2e04fc
1,305
py
Python
muddery/server/elements/world_npc.py
dongwudanci/muddery
669fbbdb394d04995470e32e94f10d42f3387996
[ "BSD-3-Clause" ]
127
2015-04-16T15:27:59.000Z
2022-03-10T08:35:37.000Z
muddery/server/elements/world_npc.py
dongwudanci/muddery
669fbbdb394d04995470e32e94f10d42f3387996
[ "BSD-3-Clause" ]
14
2015-12-17T08:02:18.000Z
2022-01-30T15:15:38.000Z
muddery/server/elements/world_npc.py
dongwudanci/muddery
669fbbdb394d04995470e32e94f10d42f3387996
[ "BSD-3-Clause" ]
54
2015-06-23T07:27:45.000Z
2022-02-22T01:46:05.000Z
""" None Player Characters Player Characters are (by default) Objects setup to be puppeted by Players. They are what you "see" in game. The Character class in this module is setup to be the "default" character type created by the default creation commands. """ from muddery.server.mappings.element_set import ELEMENT ...
28.369565
84
0.669732
166
1,305
5.114458
0.457831
0.042403
0.060071
0.025913
0
0
0
0
0
0
0
0.00102
0.249042
1,305
45
85
29
0.865306
0.31954
0
0
0
0
0.054863
0
0
0
0
0
0
1
0.125
false
0
0.1875
0
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a9f3f3be1654fa48f8d6c06923796e334d80d0ec
7,135
py
Python
davan/http/service/presence/PresenceMgrService.py
davandev/davanserver
0be914268c8e34d4092251508bae213cff3ef621
[ "MIT" ]
null
null
null
davan/http/service/presence/PresenceMgrService.py
davandev/davanserver
0be914268c8e34d4092251508bae213cff3ef621
[ "MIT" ]
null
null
null
davan/http/service/presence/PresenceMgrService.py
davandev/davanserver
0be914268c8e34d4092251508bae213cff3ef621
[ "MIT" ]
null
null
null
''' @author: davandev ''' import logging import os import urllib import datetime from threading import Thread,Event import davan.config.config_creator as configuration import davan.http.service.presence.url_helper as url_util import davan.util.constants as constants import davan.util.cmd_executor as cmd_exec...
37.952128
140
0.569306
819
7,135
4.777778
0.302808
0.028111
0.035778
0.026578
0.244569
0.137746
0.065679
0.065679
0.052645
0.030156
0
0.021726
0.316188
7,135
187
141
38.15508
0.780283
0.062929
0
0.147541
0
0
0.091901
0.008355
0
0
0
0
0
0
null
null
0.008197
0.114754
null
null
0.008197
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a9fefe89a714c084a57a2cacbde52e00dfefc404
6,278
py
Python
examples/hubert/train.py
underdogliu/audio
38e530d77e5a194d4e5f91356cc1a191207a3b29
[ "BSD-2-Clause" ]
null
null
null
examples/hubert/train.py
underdogliu/audio
38e530d77e5a194d4e5f91356cc1a191207a3b29
[ "BSD-2-Clause" ]
null
null
null
examples/hubert/train.py
underdogliu/audio
38e530d77e5a194d4e5f91356cc1a191207a3b29
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """Train the HuBERTPretrainModel by using labels generated by KMeans clustering. Example: python train.py --root-path ./exp/data/mfcc/ --feature-type mfcc --num-classes 100 """ import logging import pathlib from argparse import ( ArgumentDefaultsHelpFormatter, ArgumentParser, RawDesc...
28.798165
113
0.624084
721
6,278
5.255201
0.295423
0.045131
0.085247
0.01346
0.135392
0.074426
0.047506
0.047506
0.02692
0.02692
0
0.018953
0.260433
6,278
217
114
28.930876
0.797114
0.06021
0
0.25
1
0.005208
0.257725
0.018676
0
0
0
0
0
1
0.020833
false
0.005208
0.036458
0
0.067708
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e7038aeca649431fd026d3a0b2376ad105c16473
246
py
Python
source/menu.py
Azzy001/Login-Register_Tk
774538666992cee12797671bd56fcc0dde46c343
[ "MIT" ]
1
2022-02-01T15:46:51.000Z
2022-02-01T15:46:51.000Z
source/menu.py
Azzy001/Login-Register_Tk
774538666992cee12797671bd56fcc0dde46c343
[ "MIT" ]
null
null
null
source/menu.py
Azzy001/Login-Register_Tk
774538666992cee12797671bd56fcc0dde46c343
[ "MIT" ]
null
null
null
from tkinter import * window = Tk() def open_menu_window(): pass # Window configs window.title("Azzy001 : Menu Window") window.geometry("440x520") window.resizable(0, 0) window.attributes("-topmost", True) window.mainloop()
16.4
38
0.682927
30
246
5.533333
0.666667
0.120482
0
0
0
0
0
0
0
0
0
0.054726
0.182927
246
15
39
16.4
0.771144
0.056911
0
0
0
0
0.165899
0
0
0
0
0
0
1
0.111111
false
0.111111
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e71022164013af8d4affab42a89cbbb9cbc78af8
250
py
Python
Ex02.py
ErickTeixeira777/Python-3
5bd886d13e8118bba556d499ecd6841e9cdb5e9f
[ "MIT" ]
null
null
null
Ex02.py
ErickTeixeira777/Python-3
5bd886d13e8118bba556d499ecd6841e9cdb5e9f
[ "MIT" ]
null
null
null
Ex02.py
ErickTeixeira777/Python-3
5bd886d13e8118bba556d499ecd6841e9cdb5e9f
[ "MIT" ]
null
null
null
# Aula 06-A # Tipos Primitivos e Saída de Dados n1 = int(input('\033[0;30;47mDigite um número:\033[m')) n2 = int(input('\033[0;30;47mDigite outro número:\033[m')) s = n1 + n2 print('\033[4;36;40mA soma entre {} e {} vale {}\033[m'.format(n1, n2, s))
41.666667
74
0.644
49
250
3.285714
0.612245
0.074534
0.136646
0.149068
0.285714
0.285714
0
0
0
0
0
0.190698
0.14
250
6
74
41.666667
0.55814
0.176
0
0
0
0
0.598039
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e711732a95edbbd28e9325c694a3258b0896d4c9
3,304
py
Python
importkit/import_/tests/test_proxy.py
sprymix/importkit
72702fd6150ef9b470c986061ff976bc814463c8
[ "MIT" ]
2
2015-04-25T09:04:10.000Z
2018-05-04T18:03:19.000Z
importkit/import_/tests/test_proxy.py
sprymix/importkit
72702fd6150ef9b470c986061ff976bc814463c8
[ "MIT" ]
null
null
null
importkit/import_/tests/test_proxy.py
sprymix/importkit
72702fd6150ef9b470c986061ff976bc814463c8
[ "MIT" ]
null
null
null
## # Copyright (c) 2012 Sprymix Inc. # All rights reserved. # # See LICENSE for details. ## import importlib import pickle import sys import types import unittest from importkit.import_ import module as module_utils from importkit.import_ import utils as import_utils class TestLangImportModuleProxy(unittest.TestCa...
29.5
99
0.664346
371
3,304
5.714286
0.215633
0.088208
0.086792
0.045283
0.616509
0.580189
0.564623
0.564623
0.564623
0.564623
0
0.017821
0.252724
3,304
111
100
29.765766
0.840826
0.055387
0
0.547945
0
0
0.037942
0
0
0
0
0
0.506849
1
0.041096
false
0
0.219178
0
0.273973
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
e71491f4cb9bb7378a6de6ac09af125d71edaa4c
317
py
Python
Problem1/Collections/DefaultDict Tutorial.py
Joanna-O-Ben/ADM-HW1
0a914d4ab5462fa563980644d3f5d777af61aef9
[ "MIT" ]
null
null
null
Problem1/Collections/DefaultDict Tutorial.py
Joanna-O-Ben/ADM-HW1
0a914d4ab5462fa563980644d3f5d777af61aef9
[ "MIT" ]
null
null
null
Problem1/Collections/DefaultDict Tutorial.py
Joanna-O-Ben/ADM-HW1
0a914d4ab5462fa563980644d3f5d777af61aef9
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT from collections import defaultdict n, m = map(int, input().split()) d = defaultdict(lambda: -1) for i in range(1, n+1): word = input() d[word] = d[word] + ' ' + str(i) if word in d else str(i) for _ in range(m): print(d[input()])
22.642857
69
0.630915
55
317
3.618182
0.563636
0.070352
0
0
0
0
0
0
0
0
0
0.012097
0.217666
317
13
70
24.384615
0.790323
0.211356
0
0
0
0
0.004032
0
0
0
0
0.076923
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e716eb4f5f13801172dc0b217aa846ea2a03b1b0
25,735
py
Python
PyU4V/tests/unit_tests/test_pyu4v_system.py
SiSTm1/PyU4V
ce9784fc5f8192024cfa42509b8d45583b83f01d
[ "MIT" ]
19
2020-01-06T12:02:25.000Z
2021-12-14T06:50:04.000Z
PyU4V/tests/unit_tests/test_pyu4v_system.py
SiSTm1/PyU4V
ce9784fc5f8192024cfa42509b8d45583b83f01d
[ "MIT" ]
53
2019-12-17T17:26:44.000Z
2022-02-03T12:28:34.000Z
PyU4V/tests/unit_tests/test_pyu4v_system.py
SiSTm1/PyU4V
ce9784fc5f8192024cfa42509b8d45583b83f01d
[ "MIT" ]
11
2020-05-24T14:42:46.000Z
2022-03-02T16:30:57.000Z
# Copyright (c) 2020 Dell Inc. or its subsidiaries. # # 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...
46.790909
79
0.674956
3,074
25,735
5.283669
0.099219
0.030784
0.023642
0.024628
0.688216
0.632003
0.560337
0.507942
0.486763
0.466814
0
0.005149
0.230309
25,735
549
80
46.876138
0.814822
0.086614
0
0.427586
0
0
0.069326
0.003095
0
0
0
0
0.17931
1
0.098851
false
0.05977
0.034483
0
0.135632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e720bfb7b582ffd688d460b748233b9c2140ca6a
1,528
py
Python
kite-python/kite_ml/kite/infer_keyword/classifier.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
17
2022-01-10T11:01:50.000Z
2022-03-25T03:21:08.000Z
kite-python/kite_ml/kite/infer_keyword/classifier.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
1
2022-01-13T14:28:47.000Z
2022-01-13T14:28:47.000Z
kite-python/kite_ml/kite/infer_keyword/classifier.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
7
2022-01-07T03:58:10.000Z
2022-03-24T07:38:20.000Z
import tensorflow as tf class SoftmaxClassifier(object): # x should have a shape of [batch size, encoded feature size] def __init__(self, x: tf.Tensor, n_categories: int, scope: str): with tf.name_scope(scope): self.labels: tf.Tensor = tf.placeholder(tf.int64, [None], name='labels') # sha...
52.689655
119
0.645942
217
1,528
4.460829
0.460829
0.057851
0.061983
0.03719
0.097107
0.097107
0
0
0
0
0
0.011986
0.235602
1,528
28
120
54.571429
0.816781
0.240183
0
0
0
0
0.021701
0
0
0
0
0.035714
0
1
0.071429
false
0
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e723fc68b936a185b342791de1bcfa8bea088d91
1,550
py
Python
pages/process.py
BuildWeek-AirBnB-Optimal-Price/application
c65e1ec3db309dd3afbcf9429d16489ccda534d8
[ "MIT" ]
null
null
null
pages/process.py
BuildWeek-AirBnB-Optimal-Price/application
c65e1ec3db309dd3afbcf9429d16489ccda534d8
[ "MIT" ]
1
2021-08-23T21:22:51.000Z
2021-08-23T21:22:51.000Z
pages/process.py
BuildWeek-AirBnB-Optimal-Price/application
c65e1ec3db309dd3afbcf9429d16489ccda534d8
[ "MIT" ]
null
null
null
''' blog space for collaborative and model development process RJProcess ''' # Imports from 3rd party libraries import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app # 1 column layout...
26.271186
212
0.687742
193
1,550
5.471503
0.626943
0.037879
0.043561
0
0
0
0
0
0
0
0
0.01468
0.252903
1,550
59
213
26.271186
0.897237
0.136129
0
0.111111
0
0
0.09633
0.075688
0
0
0
0
0
1
0
false
0
0.333333
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
1
0
0
0
0
1
e725e18e3a277e1d976adc5ce8f0c78b09bd922e
999
py
Python
pro_tes/ga4gh/tes/endpoints/utils.py
Ayush5120/proTES
5bf1a7394b7c528f6d5a5dc38c05689262ae033a
[ "Apache-2.0" ]
2
2020-02-14T18:41:08.000Z
2020-02-17T06:56:10.000Z
pro_tes/ga4gh/tes/endpoints/utils.py
Ayush5120/proTES
5bf1a7394b7c528f6d5a5dc38c05689262ae033a
[ "Apache-2.0" ]
22
2018-11-15T18:17:09.000Z
2019-11-21T14:14:40.000Z
pro_tes/ga4gh/tes/endpoints/utils.py
Ayush5120/proTES
5bf1a7394b7c528f6d5a5dc38c05689262ae033a
[ "Apache-2.0" ]
3
2020-03-25T11:28:40.000Z
2022-03-16T09:41:59.000Z
def # Set access token if authorization required: try: access_token = request_access_token( user_id=document['user_id'], token_endpoint=endpoint_params['token_endpoint'], timeout=endpoint_params['timeout_token_request'], ) ...
34.448276
78
0.502503
86
999
5.523256
0.476744
0.138947
0.088421
0.113684
0.168421
0.168421
0
0
0
0
0
0
0.419419
999
28
79
35.678571
0.818966
0.016016
0
0.074074
0
0
0.186544
0.021407
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e73096dd8b901862007a1822a67dd870b61cd04e
43,110
py
Python
tests/PyroTests/test_server.py
gabehack/Pyro4
88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b
[ "MIT" ]
null
null
null
tests/PyroTests/test_server.py
gabehack/Pyro4
88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b
[ "MIT" ]
null
null
null
tests/PyroTests/test_server.py
gabehack/Pyro4
88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b
[ "MIT" ]
null
null
null
""" Tests for a running Pyro server, without timeouts. Pyro - Python Remote Objects. Copyright by Irmen de Jong (irmen@razorvine.net). """ import time import sys import uuid import unittest import Pyro4.core import Pyro4.errors import Pyro4.util import Pyro4.message from Pyro4 import threadutil, curren...
42.767857
153
0.575389
4,536
43,110
5.391534
0.130071
0.046614
0.029768
0.034593
0.504539
0.450033
0.416176
0.370134
0.340898
0.290236
0
0.021669
0.327743
43,110
1,007
154
42.810328
0.822194
0.095546
0
0.548881
0
0
0.067314
0.00459
0
0
0.000637
0
0.241461
0
null
null
0.008245
0.012956
null
null
0.002356
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e7480e46acbddcd69f925328f54a3a8f35b1978c
832
py
Python
setup.py
JimBoonie/hydra
63665090812e4e209c67d5dc0b84b5bb35a57ead
[ "MIT" ]
28
2015-12-30T22:38:16.000Z
2021-03-21T07:52:39.000Z
setup.py
JimBoonie/hydra
63665090812e4e209c67d5dc0b84b5bb35a57ead
[ "MIT" ]
2
2017-02-23T09:54:09.000Z
2018-12-14T12:20:28.000Z
setup.py
JimBoonie/hydra
63665090812e4e209c67d5dc0b84b5bb35a57ead
[ "MIT" ]
7
2017-02-23T09:43:24.000Z
2022-01-10T12:17:36.000Z
from setuptools import setup from setuptools.command.install import install as _install class install(_install): def run(self): _install.run(self) setup( cmdclass = { 'install' : install }, name = 'hydra', version = '0.1', author = 'tatsy', author_email = 'tatsy.mail@gmail.com', ur...
25.212121
58
0.56851
86
832
5.453488
0.581395
0.121535
0.159915
0.166311
0.115139
0
0
0
0
0
0
0.013468
0.286058
832
32
59
26
0.776094
0
0
0
0
0
0.387019
0
0
0
0
0
0
1
0.033333
false
0
0.066667
0
0.133333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e74a1d4b6667e28ee221b633c7ed252338e6e82b
689
py
Python
appmail/migrations/0003_emailtemplate_test_context.py
yunojuno/django-appmail
e665990a56e00b06469177d165cc14970b61971a
[ "MIT" ]
7
2017-03-16T22:16:54.000Z
2020-07-06T20:07:06.000Z
appmail/migrations/0003_emailtemplate_test_context.py
yunojuno/django-appmail
e665990a56e00b06469177d165cc14970b61971a
[ "MIT" ]
13
2017-04-27T15:26:51.000Z
2021-07-09T16:31:21.000Z
appmail/migrations/0003_emailtemplate_test_context.py
yunojuno/django-appmail
e665990a56e00b06469177d165cc14970b61971a
[ "MIT" ]
3
2017-03-10T18:22:03.000Z
2018-09-25T14:40:29.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-05-06 08:15 from __future__ import unicode_literals from django.db import migrations from ..compat import JSONField class Migration(migrations.Migration): dependencies = [("appmail", "0002_add_template_description")] operations = [ migra...
24.607143
85
0.552975
67
689
5.522388
0.820896
0
0
0
0
0
0
0
0
0
0
0.047085
0.352685
689
27
86
25.518519
0.782511
0.098694
0
0.105263
1
0
0.210356
0.046926
0
0
0
0
0
1
0
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e74c20ff4559c50606dac276ec5df833419986bc
3,160
py
Python
dcorch/drivers/openstack/cinder_v2.py
starlingx-staging/stx-kingbird
9869ad4640e76384fa14f031a59134cd439929a8
[ "Apache-2.0" ]
1
2018-08-24T19:48:03.000Z
2018-08-24T19:48:03.000Z
dcorch/drivers/openstack/cinder_v2.py
kbujold/stx-distcloud
e82c7b43362bceb8d4ae9d121d023e42268204db
[ "Apache-2.0" ]
3
2018-08-23T20:32:45.000Z
2018-08-30T19:26:00.000Z
dcorch/drivers/openstack/cinder_v2.py
kbujold/stx-distcloud
e82c7b43362bceb8d4ae9d121d023e42268204db
[ "Apache-2.0" ]
4
2018-08-21T18:09:12.000Z
2018-08-28T15:47:12.000Z
# 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 # distributed unde...
35.505618
77
0.603797
362
3,160
5.10221
0.361878
0.043855
0.037899
0.073633
0.200866
0.092041
0.092041
0.056308
0.056308
0.056308
0
0.002818
0.326266
3,160
88
78
35.909091
0.864725
0.261392
0
0.320755
0
0
0.011489
0
0
0
0
0.011364
0
1
0.09434
false
0
0.09434
0
0.283019
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e7524d0748239053472f74164e6004e070acbfe8
281
py
Python
scripts/stop.py
J0ins08/aria2-python-script
461c1e861893b6309726bb804d51f9e2fff0a1e8
[ "MIT" ]
null
null
null
scripts/stop.py
J0ins08/aria2-python-script
461c1e861893b6309726bb804d51f9e2fff0a1e8
[ "MIT" ]
null
null
null
scripts/stop.py
J0ins08/aria2-python-script
461c1e861893b6309726bb804d51f9e2fff0a1e8
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- #@File : stop.py #@Time : 2021/12/23 16:21:37 #@Author : J0ins08 #@Software : Visual Studio Code from aria2 import * if __name__ == '__main__': remove_aria2_file() remove_download_file() remove_torrent_file()
23.416667
36
0.590747
34
281
4.470588
0.823529
0.131579
0
0
0
0
0
0
0
0
0
0.098039
0.274021
281
12
37
23.416667
0.647059
0.476868
0
0
0
0
0.061069
0
0
0
0
0
0
1
0
true
0
0.2
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
1
0
0
0
0
0
0
1
e7556f82e722747db689856c467461b5664c4d41
65,366
py
Python
avi/heat/resources/pool.py
itlinux/avi-heat
551adc130f651e1a52dcff0afc01cfa6b29a87f0
[ "Apache-2.0" ]
2
2016-08-09T21:06:52.000Z
2016-08-18T21:34:11.000Z
avi/heat/resources/pool.py
itlinux/avi-heat
551adc130f651e1a52dcff0afc01cfa6b29a87f0
[ "Apache-2.0" ]
10
2016-08-03T00:07:51.000Z
2018-10-30T19:00:38.000Z
avi/heat/resources/pool.py
itlinux/avi-heat
551adc130f651e1a52dcff0afc01cfa6b29a87f0
[ "Apache-2.0" ]
10
2016-06-13T20:17:19.000Z
2020-12-21T11:46:59.000Z
# GENERATED FILE - DO NOT EDIT THIS FILE UNLESS YOU ARE A WIZZARD #pylint: skip-file from heat.engine import properties from heat.engine import constraints from heat.engine import attributes from heat.common.i18n import _ from avi.heat.avi_resource import AviResource from avi.heat.avi_resource import AviNestedResource...
37.783815
486
0.669813
7,361
65,366
5.678576
0.084771
0.138565
0.168947
0.122488
0.652392
0.594761
0.518971
0.420024
0.354522
0.324904
0
0.004322
0.242588
65,366
1,729
487
37.805668
0.839968
0.02945
0
0.472186
1
0.046572
0.36614
0.060626
0
0
0
0
0
1
0.000647
false
0.003234
0.007115
0.000647
0.165589
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e7596a25709bd7aeb8d58fbb9eb155b5582963d5
3,996
py
Python
Homeautomation/Alarmpi/get_weather_yahoo.py
EtechProjects/Curtains-and-Blinds-Tests
7bfacf50ee7a4b951337e60f0fa288fbe59762e2
[ "Apache-2.0" ]
null
null
null
Homeautomation/Alarmpi/get_weather_yahoo.py
EtechProjects/Curtains-and-Blinds-Tests
7bfacf50ee7a4b951337e60f0fa288fbe59762e2
[ "Apache-2.0" ]
null
null
null
Homeautomation/Alarmpi/get_weather_yahoo.py
EtechProjects/Curtains-and-Blinds-Tests
7bfacf50ee7a4b951337e60f0fa288fbe59762e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib import urllib2 import json import decimal import time from apcontent import alarmpi_content class weather_yahoo(alarmpi_content): def build(self): location = self.sconfig['location'] if self.sconfig['metric'] == str(1): metric = '%20and%2...
37.698113
191
0.548048
438
3,996
4.913242
0.287671
0.041822
0.106877
0.139405
0.379182
0.379182
0.296004
0.204461
0.072491
0
0
0.016364
0.311812
3,996
105
192
38.057143
0.766182
0.041291
0
0.05
0
0
0.244049
0
0
0
0
0
0
0
null
null
0
0.075
null
null
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e7610363e0afa1615d49f445e3e975b339f2990d
592
py
Python
day26.py
impractical101/LeetCode-30--June
5420685a151e5561f54e7f1a0b699015050f75c2
[ "MIT" ]
null
null
null
day26.py
impractical101/LeetCode-30--June
5420685a151e5561f54e7f1a0b699015050f75c2
[ "MIT" ]
null
null
null
day26.py
impractical101/LeetCode-30--June
5420685a151e5561f54e7f1a0b699015050f75c2
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right #Submitted by thr3sh0ld class Solution: def solve(self,root, curr): if root == None: return 0 cu...
28.190476
73
0.572635
78
592
4.294872
0.384615
0.080597
0.116418
0.113433
0
0
0
0
0
0
0
0.017456
0.322635
592
21
74
28.190476
0.817955
0.339527
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0.1
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e761eb72917ebd1c05f7e0b4d31c558fc821a540
511
py
Python
extra/docker/django/mailinglist/factories.py
rlaneyjr/project_pawz
27f316ef35968ed1319ec0585a050ebed795763a
[ "MIT" ]
null
null
null
extra/docker/django/mailinglist/factories.py
rlaneyjr/project_pawz
27f316ef35968ed1319ec0585a050ebed795763a
[ "MIT" ]
13
2020-02-12T00:12:52.000Z
2022-02-12T09:42:36.000Z
extra/docker/django/mailinglist/factories.py
rlaneyjr/project_pawz
27f316ef35968ed1319ec0585a050ebed795763a
[ "MIT" ]
null
null
null
from unittest.mock import patch import factory from mailinglist.models import Subscriber class SubscriberFactory(factory.DjangoModelFactory): email = factory.Sequence(lambda n: 'foo.%d@example.com' % n) class Meta: model = Subscriber @classmethod def _create(cls, model_class, *args, **kwar...
25.55
76
0.690802
57
511
6.035088
0.614035
0.087209
0.081395
0.116279
0
0
0
0
0
0
0
0
0.209393
511
19
77
26.894737
0.851485
0
0
0
0
0
0.156863
0.121569
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e7623781c52321968e53976d519675e457ceed8b
486
py
Python
wildlifelicensing/apps/main/migrations/0006_auto_20160801_1622.py
jawaidm/wildlifelicensing
87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82
[ "Apache-2.0" ]
null
null
null
wildlifelicensing/apps/main/migrations/0006_auto_20160801_1622.py
jawaidm/wildlifelicensing
87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82
[ "Apache-2.0" ]
11
2019-03-19T02:03:11.000Z
2019-05-31T07:20:59.000Z
wildlifelicensing/apps/main/migrations/0006_auto_20160801_1622.py
jawaidm/wildlifelicensing
87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82
[ "Apache-2.0" ]
2
2020-08-10T10:17:10.000Z
2021-10-31T23:20:53.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-01 08:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wl_main', '0005_wildlifelicence_locations'), ] operations = [ migrations.Alt...
23.142857
63
0.63786
53
486
5.641509
0.830189
0
0
0
0
0
0
0
0
0
0
0.060274
0.248971
486
20
64
24.3
0.758904
0.13786
0
0
1
0
0.15625
0.072115
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e7632eac9bb25990fae2d561c6c167a8a522a509
5,565
py
Python
plugin.program.super.favourites/player.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:38:10.000Z
2019-03-05T09:38:10.000Z
plugin.program.super.favourites/player.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
plugin.program.super.favourites/player.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
# # Copyright (C) 2014- # Sean Poyser (seanpoyser@gmail.com) # # 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, or (at your option) # any later version. # # Thi...
27.413793
115
0.611321
637
5,565
5.313972
0.3281
0.090399
0.055835
0.039882
0.151551
0.075923
0.048449
0.027179
0.027179
0.027179
0
0.010777
0.283019
5,565
203
116
27.413793
0.837594
0.234501
0
0.243478
0
0
0.10192
0.005689
0
0
0
0
0
0
null
null
0.008696
0.069565
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e76480471e6bea18ea40a9e4037a74ba815e2226
1,756
py
Python
bot/sign_api.py
rombintu/project12
a127b8c697cb6e7cc07ff9528a79888f72c4c4ca
[ "MIT" ]
null
null
null
bot/sign_api.py
rombintu/project12
a127b8c697cb6e7cc07ff9528a79888f72c4c4ca
[ "MIT" ]
null
null
null
bot/sign_api.py
rombintu/project12
a127b8c697cb6e7cc07ff9528a79888f72c4c4ca
[ "MIT" ]
null
null
null
import os from Crypto.Hash import SHA256 from Crypto.PublicKey import RSA from Crypto.Signature import pkcs1_15 def create_sign_of_file(file_name): # Генерируем новый ключ key = RSA.generate(1024, os.urandom) # Получаем хэш файла hesh = SHA256.new() with open(file_name, "rb") as f: for ch...
28.786885
109
0.656606
235
1,756
4.8
0.319149
0.06383
0.044326
0.042553
0.635638
0.54344
0.495567
0.442376
0.359043
0.359043
0
0.038922
0.23918
1,756
61
110
28.786885
0.805389
0.198747
0
0.809524
0
0
0.002863
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.333333
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e764cbf89763dd805ae8cb69ca387c4c6438236e
38,685
py
Python
vyperlogix/decorators/pyanno.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/decorators/pyanno.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/decorators/pyanno.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
""" Pyanno Python Annotations version 0.76 Uses the new python decorators feature. Do not apply these annotations within this module. charlesmchen@gmail.com for documentation, see the index.html file included in the distribution. http://fightingquaker.com/pyanno/ """ #from __future__ import with_statement imp...
36.323944
158
0.632338
3,248
38,685
7.242303
0.115456
0.011606
0.011308
0.008077
0.474217
0.413298
0.369468
0.339327
0.303023
0.273435
0
0.002567
0.274939
38,685
1,064
159
36.358083
0.836073
0.123588
0
0.446228
0
0.004815
0.073774
0.000666
0
0
0
0.00094
0
0
null
null
0.00321
0.006421
null
null
0.054575
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e765459a83dd0305141cdf26d6934ff99915432e
495
py
Python
apps/batchResize.py
mshafiei/cvutils
5805229d8822a9ee4a3c63e060358aca96fe5338
[ "MIT" ]
2
2021-07-19T12:38:14.000Z
2021-11-01T21:30:36.000Z
apps/batchResize.py
mshafiei/cvgutils
ea93b3cb70a969c3b814f5a9f7672c6e00de5c61
[ "MIT" ]
null
null
null
apps/batchResize.py
mshafiei/cvgutils
ea93b3cb70a969c3b814f5a9f7672c6e00de5c61
[ "MIT" ]
null
null
null
import numpy as np import glob import cvgutils.Image as cvgim import os import tqdm indir = '/home/mohammad/Projects/NRV/dataset/envmaps/*.exr' outdir = '/home/mohammad/Projects/NRV/dataset/envmaps_512_1024' inimgs = glob.glob(indir) max16 = (2**16-1) for img in tqdm.tqdm(inimgs): im = cvgim.imread(img) im = cv...
30.9375
76
0.705051
80
495
4.3375
0.55
0.069164
0.115274
0.132565
0.213256
0.213256
0
0
0
0
0
0.074766
0.135354
495
15
77
33
0.735981
0.070707
0
0
0
0
0.242358
0.220524
0
0
0
0
0
1
0
false
0
0.357143
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e766e365a4ab93717384f44001cba425202a3102
837
py
Python
modulo-1/exercicios/atividade_2_operadores_aritmeticos.py
giselemanuel/programa-Ifood-backend
d12544c30e2a26f7e2e2cd85df38a3f2c8860fe7
[ "MIT" ]
3
2021-04-25T23:31:13.000Z
2021-04-26T16:59:12.000Z
modulo-1/exercicios/atividade_2_operadores_aritmeticos.py
giselemanuel/programa-Ifood-backend
d12544c30e2a26f7e2e2cd85df38a3f2c8860fe7
[ "MIT" ]
null
null
null
modulo-1/exercicios/atividade_2_operadores_aritmeticos.py
giselemanuel/programa-Ifood-backend
d12544c30e2a26f7e2e2cd85df38a3f2c8860fe7
[ "MIT" ]
null
null
null
""" Programa VamoAI: Aluna: Gisele Rodrigues Manuel Atividade 1.3 Descrição do Execício 2: Criar um programa que: Some : 1024 por 2048, Multiplique: 1024 por 2048, Divida 2048 por 1024,Subtraia 1024 por 2048, executar print dos operadores aritméticos. """ #Definição das variáveis num1 = 1024 num2 = 2048 soma = num1 ...
27.9
162
0.685783
120
837
4.783333
0.408333
0.052265
0.097561
0.111498
0.114983
0.080139
0
0
0
0
0
0.121127
0.151732
837
30
163
27.9
0.687324
0.346476
0
0.368421
0
0
0.504638
0
0
0
0
0
0
1
0
false
0
0
0
0
0.684211
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
e76a3be58b3e2fbe5929631298e3ee8bfa3c6f30
1,997
py
Python
tests/exercise5/lesson_5/exercise_6/hangman_clean.py
PONSASIKALA/signal-interpreter-server
2a0fad375768e0dca99b8e8cb4ef19e863d99007
[ "MIT" ]
null
null
null
tests/exercise5/lesson_5/exercise_6/hangman_clean.py
PONSASIKALA/signal-interpreter-server
2a0fad375768e0dca99b8e8cb4ef19e863d99007
[ "MIT" ]
null
null
null
tests/exercise5/lesson_5/exercise_6/hangman_clean.py
PONSASIKALA/signal-interpreter-server
2a0fad375768e0dca99b8e8cb4ef19e863d99007
[ "MIT" ]
null
null
null
# pylint: disable=missing-function-docstring ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" def get_display_word(secret_word): display_word = [] for i in range(len(secret_word)): if secret_word[i] in ALPHABET: display_word.append("_") else: display_word.append(secr...
27.356164
79
0.620431
254
1,997
4.637795
0.271654
0.205433
0.089134
0.071307
0.194397
0.116299
0.067912
0.067912
0
0
0
0.004944
0.290936
1,997
72
80
27.736111
0.826977
0.021032
0
0.150943
0
0
0.167464
0.013822
0
0
0
0
0
1
0.113208
false
0
0
0
0.169811
0.207547
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e76c2081bccf726a610c27def463e58a09b8c81d
21,136
py
Python
utlz/__init__.py
theno/utlz
bf7d2b53f3e0d35c6f8ded81f3f774a74fcd3389
[ "MIT" ]
2
2018-10-29T18:35:12.000Z
2019-01-14T12:56:15.000Z
utlz/__init__.py
Bhanditz/utlz
bf7d2b53f3e0d35c6f8ded81f3f774a74fcd3389
[ "MIT" ]
null
null
null
utlz/__init__.py
Bhanditz/utlz
bf7d2b53f3e0d35c6f8ded81f3f774a74fcd3389
[ "MIT" ]
1
2019-01-14T11:11:32.000Z
2019-01-14T11:11:32.000Z
# -*- coding: utf-8 -*- import collections import functools import gzip import json import inspect import os.path import shutil import sys import struct import time from functools import wraps from utlz._version import __version__ # inspired by: http://stackoverflow.com/a/6618825 def flo(string): '''Return the s...
31.879336
86
0.58909
2,594
21,136
4.629144
0.178874
0.010493
0.012991
0.014657
0.379247
0.307878
0.273651
0.23959
0.205696
0.178548
0
0.014065
0.293575
21,136
662
87
31.927492
0.790168
0.33909
0
0.308782
0
0
0.052207
0.006253
0
0
0
0.016616
0.005666
1
0.121813
false
0.011331
0.036827
0.005666
0.294618
0.014164
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e76ddf3376b76bafc19cbf52b3ad8126a2980c57
2,491
py
Python
nora10/mylakeinitpar.py
kojitominaga/scratch
5eaf4de30c89ff1e855a6be493105d1201f07f74
[ "FSFAP" ]
null
null
null
nora10/mylakeinitpar.py
kojitominaga/scratch
5eaf4de30c89ff1e855a6be493105d1201f07f74
[ "FSFAP" ]
null
null
null
nora10/mylakeinitpar.py
kojitominaga/scratch
5eaf4de30c89ff1e855a6be493105d1201f07f74
[ "FSFAP" ]
null
null
null
import numpy as np import os depth_resolution = 0.1 # metre def mylakeinit(max_depth, area): '''max_depth: m, area: m2. returns string to be written to an init file of MyLake assumes a cone shaped bathymetry curve''' depth_levels = np.arange(0, max_depth, depth_resolution) if not max_depth i...
31.531646
172
0.653954
573
2,491
2.719023
0.314136
0.134788
0.031451
0.020539
0.132863
0.033376
0
0
0
0
0
0.132789
0.21397
2,491
78
173
31.935897
0.662921
0.09996
0
0
0
0.045455
0.684734
0
0
0
0
0
0
1
0.030303
false
0
0.030303
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e77801f926d4f34148ef7757e8d2132f28e45ad4
2,228
py
Python
download snipets.py
alxcord/my_public_scripts
856decd73afe869b68095d5ab21d32ea261d872f
[ "Apache-2.0" ]
null
null
null
download snipets.py
alxcord/my_public_scripts
856decd73afe869b68095d5ab21d32ea261d872f
[ "Apache-2.0" ]
null
null
null
download snipets.py
alxcord/my_public_scripts
856decd73afe869b68095d5ab21d32ea261d872f
[ "Apache-2.0" ]
null
null
null
import urllib.request ... url = 'http://example.com/' response = urllib.request.urlopen(url) data = response.read() # a `bytes` object text = data.decode('utf-8') # a `str`; this step can't be used if data is binary import urllib.request import gzip ... # Read the first 64 bytes of the file inside t...
25.318182
144
0.670108
323
2,228
4.541796
0.452012
0.038173
0.027267
0.047035
0.050443
0.050443
0.050443
0
0
0
0
0.017357
0.198384
2,228
87
145
25.609195
0.804031
0.206912
0
0.076923
0
0
0.163669
0.017386
0
0
0
0
0
0
null
null
0
0.134615
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e77c7c1bc1c9242cd9b4a6f6bef09a3ab1d3884c
731
py
Python
_unittests/ut_datasource/test_geodata.py
sdpython/pyensae
ada4dbb0b9901bf481eff2ea239e74ed964d93b0
[ "MIT" ]
28
2015-07-19T21:20:51.000Z
2022-02-16T11:50:53.000Z
_unittests/ut_datasource/test_geodata.py
sdpython/pyensae
ada4dbb0b9901bf481eff2ea239e74ed964d93b0
[ "MIT" ]
34
2015-06-16T15:38:25.000Z
2021-12-29T11:04:01.000Z
_unittests/ut_datasource/test_geodata.py
sdpython/pyensae
ada4dbb0b9901bf481eff2ea239e74ed964d93b0
[ "MIT" ]
27
2015-01-13T08:24:22.000Z
2022-03-31T14:51:23.000Z
""" @brief test log(time=3s) """ import unittest from pyquickhelper.pycode import ExtTestCase, get_temp_folder from pyensae.datasource import load_french_departements class TestGeoData(ExtTestCase): def test_load_french_departements(self): temp = get_temp_folder(__file__, "temp_load_french_departeme...
31.782609
92
0.670315
90
731
5.011111
0.533333
0.088692
0.195122
0
0
0
0
0
0
0
0
0.008591
0.20383
731
22
93
33.227273
0.766323
0.039672
0
0
0
0
0.20317
0.041787
0
0
0
0
0.142857
1
0.071429
false
0
0.214286
0
0.357143
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e77f1fd0092c945c3470861a6d81a4b28e40b56f
422
py
Python
phasma_food_v2/devices/admin.py
VizLoreLabs/phasmaFoodPlatform
02c811c9178f338e081efbeacadb37c766dcb2db
[ "Apache-1.1" ]
null
null
null
phasma_food_v2/devices/admin.py
VizLoreLabs/phasmaFoodPlatform
02c811c9178f338e081efbeacadb37c766dcb2db
[ "Apache-1.1" ]
null
null
null
phasma_food_v2/devices/admin.py
VizLoreLabs/phasmaFoodPlatform
02c811c9178f338e081efbeacadb37c766dcb2db
[ "Apache-1.1" ]
null
null
null
from django.contrib import admin from .models import PhasmaDevice @admin.register(PhasmaDevice) class PhasmaDeviceAdmin(admin.ModelAdmin): list_display = ("mac", "name", "date_added") fieldsets = ( ("Info", {"fields": ("mac", "name")}), ("Date added/updated", {"fields": ("date_added", "date_u...
28.133333
74
0.64455
44
422
6
0.522727
0.170455
0.083333
0.121212
0.19697
0
0
0
0
0
0
0
0.177725
422
14
75
30.142857
0.760807
0
0
0
0
0
0.267773
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e77f4dac26b5f08c981a363bf893116d6ff184f3
1,400
py
Python
scripts/af_assemblyPrep.py
aaronfang/small-Scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
1
2018-03-08T16:34:00.000Z
2018-03-08T16:34:00.000Z
scripts/af_assemblyPrep.py
aaronfang/personal_scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
null
null
null
scripts/af_assemblyPrep.py
aaronfang/personal_scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
null
null
null
import pymel.core as pm # Step1: # Select top group node. Run the following.It will generate a locator. # Send to the current group pivot position. # You can position the locator where you want to represent the final pivot position. curSel = pm.ls(sl=True,type='transform')[0] trans = pm.xform(curSel,ws=1,piv=1,q=1) r...
33.333333
95
0.702857
291
1,400
3.378007
0.281787
0.099695
0.123093
0.079349
0.326551
0.214649
0.120041
0.120041
0.120041
0.120041
0
0.051037
0.104286
1,400
41
96
34.146341
0.732855
0.341429
0
0.1
1
0
0.014286
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e78630157ef111fb5facf453b100529fad826536
370
py
Python
objectModel/Python/cdm/enums/cdm_incremental_partition_type.py
Microsoft/CDM
7ea59264d661356ca1b44c31a352753928d08b5f
[ "CC-BY-4.0", "MIT" ]
265
2018-03-04T04:47:50.000Z
2019-05-06T13:31:18.000Z
objectModel/Python/cdm/enums/cdm_incremental_partition_type.py
Microsoft/CDM
7ea59264d661356ca1b44c31a352753928d08b5f
[ "CC-BY-4.0", "MIT" ]
39
2018-03-21T16:57:12.000Z
2019-05-06T17:30:23.000Z
objectModel/Python/cdm/enums/cdm_incremental_partition_type.py
Microsoft/CDM
7ea59264d661356ca1b44c31a352753928d08b5f
[ "CC-BY-4.0", "MIT" ]
75
2018-03-09T20:33:13.000Z
2019-05-05T06:55:43.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from enum import Enum class CdmIncrementalPartitionType(Enum): NONE = 'None' INSERT = 'Insert' UPDATE = 'Update' DELETE = 'Delete' UPSERT = 'U...
24.666667
94
0.716216
43
370
6.116279
0.72093
0.091255
0
0
0
0
0
0
0
0
0
0
0.202703
370
14
95
26.428571
0.891525
0.405405
0
0
0
0
0.199074
0
0
0
0
0
0
1
0
false
0
0.125
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e786a7b6d7533638ac5bb296afe211e365fb9e28
7,727
py
Python
test/unitTest/arg_test.py
alljoyn/devtools-codegen
388cac15e584dce3040d5090e8f627e5360e5c0f
[ "0BSD" ]
null
null
null
test/unitTest/arg_test.py
alljoyn/devtools-codegen
388cac15e584dce3040d5090e8f627e5360e5c0f
[ "0BSD" ]
null
null
null
test/unitTest/arg_test.py
alljoyn/devtools-codegen
388cac15e584dce3040d5090e8f627e5360e5c0f
[ "0BSD" ]
null
null
null
# Copyright AllSeen Alliance. All rights reserved. # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR...
39.423469
75
0.640481
998
7,727
4.804609
0.159319
0.156413
0.086757
0.077998
0.664025
0.589781
0.456309
0.378311
0.318874
0.310115
0
0.007646
0.221431
7,727
195
76
39.625641
0.789395
0.151547
0
0.362963
0
0
0.074769
0
0.007407
0
0
0
0.488889
1
0.051852
false
0
0.051852
0
0.162963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
e78723495183f0fe8aa489d98c4605dbae6178f0
914
py
Python
nlpatl/sampling/uncertainty/least_confidence.py
dumpmemory/nlpatl
59209242d1ac26714b11b86261070ac50cc90432
[ "MIT" ]
18
2021-11-29T06:43:46.000Z
2022-03-29T09:58:32.000Z
nlpatl/sampling/uncertainty/least_confidence.py
dumpmemory/nlpatl
59209242d1ac26714b11b86261070ac50cc90432
[ "MIT" ]
null
null
null
nlpatl/sampling/uncertainty/least_confidence.py
dumpmemory/nlpatl
59209242d1ac26714b11b86261070ac50cc90432
[ "MIT" ]
1
2021-11-29T06:43:47.000Z
2021-11-29T06:43:47.000Z
from typing import Tuple import numpy as np from nlpatl.sampling import Sampling class LeastConfidenceSampling(Sampling): """ Sampling data points according to the least confidence. Pick the lowest probabilies for the highest class. https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1...
30.466667
132
0.659737
117
914
5
0.529915
0.076923
0.041026
0
0
0
0
0
0
0
0
0.021645
0.241794
914
29
133
31.517241
0.822511
0.305252
0
0
0
0
0.043253
0.043253
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e7960cdb285d6dd5c4c71de1f2286b8e8d673adb
547
py
Python
skynet-agent/plugins/extension/loadavg.py
skynetera/skynet
24a50f2a2eb95b777802934a2b66f162bf4b2d53
[ "Apache-2.0" ]
3
2016-09-12T08:54:46.000Z
2016-09-18T07:54:10.000Z
skynet-agent/plugins/extension/loadavg.py
skynetera/skynet
24a50f2a2eb95b777802934a2b66f162bf4b2d53
[ "Apache-2.0" ]
null
null
null
skynet-agent/plugins/extension/loadavg.py
skynetera/skynet
24a50f2a2eb95b777802934a2b66f162bf4b2d53
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 __author__ = 'whoami' """ @version: 1.0 @author: whoami @license: Apache Licence 2.0 @contact: skutil@gmail.com @site: http://www.itweet.cn @software: PyCharm Community Edition @file: loadavg.py @time: 2015-11-28 下午1:51 """ def monitor(frist_invoke=1): f = open('/proc/loadavg...
17.645161
36
0.6234
78
547
4.141026
0.75641
0.074303
0
0
0
0
0
0
0
0
0
0.055046
0.202925
547
30
37
18.233333
0.68578
0.062157
0
0
0
0
0.177419
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
e7a08c3c2295908e12651250df01fbce4284f4fe
3,227
py
Python
crawler/scheduler.py
dukov/simplecrawler
eb6c44b9e3c43cab34ee4a2b39c7283136ce9352
[ "Apache-2.0" ]
null
null
null
crawler/scheduler.py
dukov/simplecrawler
eb6c44b9e3c43cab34ee4a2b39c7283136ce9352
[ "Apache-2.0" ]
null
null
null
crawler/scheduler.py
dukov/simplecrawler
eb6c44b9e3c43cab34ee4a2b39c7283136ce9352
[ "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 # distributed under t...
34.329787
75
0.570499
397
3,227
4.493703
0.450882
0.033632
0.021861
0.026906
0.169843
0.141816
0.128924
0.128924
0.128924
0.128924
0
0.011644
0.334676
3,227
93
76
34.698925
0.819283
0.182832
0
0.268657
0
0
0.096454
0
0
0
0
0.010753
0
1
0.059701
false
0
0.134328
0
0.223881
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e7a8eb29f59a7169a8670d3bd2d5361afff30ad8
1,509
py
Python
setup.py
StreetHawkInc/behave-http
236f62faaa7448c55d13767c21bfd2711b11456c
[ "BSD-2-Clause" ]
null
null
null
setup.py
StreetHawkInc/behave-http
236f62faaa7448c55d13767c21bfd2711b11456c
[ "BSD-2-Clause" ]
null
null
null
setup.py
StreetHawkInc/behave-http
236f62faaa7448c55d13767c21bfd2711b11456c
[ "BSD-2-Clause" ]
null
null
null
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme_file: long_description = readme_file.read() setup_requires = ['wheel'] install_requires = [ 'behave>=1.2.4', 'Jinja2>=2.5', 'jpath>=1.1', 'ensure>=0.1.6', ...
30.18
71
0.609013
163
1,509
5.527607
0.490798
0.147614
0.194229
0.115427
0.059933
0
0
0
0
0
0
0.025261
0.239231
1,509
49
72
30.795918
0.759582
0
0
0
0
0
0.51226
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e7c296cbcbe2a40314c5ebd466c9648b4f998c96
3,993
py
Python
Assignment_3/marbles.py
cVoltic/MIDS
417b7d2e6e7eff20292c5429cbe5245813e9a1d9
[ "MIT" ]
null
null
null
Assignment_3/marbles.py
cVoltic/MIDS
417b7d2e6e7eff20292c5429cbe5245813e9a1d9
[ "MIT" ]
null
null
null
Assignment_3/marbles.py
cVoltic/MIDS
417b7d2e6e7eff20292c5429cbe5245813e9a1d9
[ "MIT" ]
null
null
null
# A Marbles Game # A Marbles Game - Problem # Cuong Trinh import sys class MarblesBoard(): def __init__(self, board): self.board = list(board) def __str__(self): return f"{ ' '.join(map(str, self.board)) }" def __repr__(self): return f"MarblesBoard(({ ', '.join(map(str, self.b...
35.651786
169
0.569747
560
3,993
3.976786
0.269643
0.096991
0.029187
0.020207
0.160754
0.094297
0.052088
0.026044
0
0
0
0.013559
0.335086
3,993
111
170
35.972973
0.825235
0.121963
0
0.301887
0
0
0.074227
0
0
0
0
0
0
1
0.207547
false
0
0.018868
0.075472
0.377358
0.075472
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e7cfb5f65289821950b5026983f1eb4b8e97063e
1,829
py
Python
xen/xen-4.2.2/tools/xm-test/tests/unpause/01_unpause_basic_pos.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2018-02-02T00:15:26.000Z
2018-02-02T00:15:26.000Z
xen/xen-4.2.2/tools/xm-test/tests/unpause/01_unpause_basic_pos.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
null
null
null
xen/xen-4.2.2/tools/xm-test/tests/unpause/01_unpause_basic_pos.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2019-05-27T09:47:18.000Z
2019-05-27T09:47:18.000Z
#!/usr/bin/python # Copyright (C) International Business Machines Corp., 2005 # Author: Paul Larson <pl@us.ibm.com> # Description: # Positive Tests: # Tests for xm unpause # 1) Create domain, verify it's up with console # 2) randomly pause and unpause the domain # 3) unpause it one last time # 4) verify it's still a...
23.753247
73
0.663204
253
1,829
4.794466
0.434783
0.037098
0.019786
0.064303
0.359439
0.340478
0.304204
0.304204
0.280297
0.280297
0
0.014134
0.226353
1,829
76
74
24.065789
0.84311
0.329688
0
0.475
0
0
0.2
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e7d0a01dfe244608cccd3bc500765f871dee666f
861
py
Python
python/p-test.py
kettlewell/bashisms
c6222424984264c7c6488f20ea5591ff5078d040
[ "MIT" ]
null
null
null
python/p-test.py
kettlewell/bashisms
c6222424984264c7c6488f20ea5591ff5078d040
[ "MIT" ]
null
null
null
python/p-test.py
kettlewell/bashisms
c6222424984264c7c6488f20ea5591ff5078d040
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Force Python3 ''' from __future__ import print_function from pprint import pprint from pssh.pssh_client import ParallelSSHClient from pssh.exceptions import AuthenticationException, \ UnknownHostException, ConnectionErrorException import pssh.utils pssh.utils.enable_host_logger() hosts...
23.27027
83
0.732869
100
861
6.17
0.55
0.048622
0.21718
0
0
0
0
0
0
0
0
0.009629
0.155633
861
36
84
23.916667
0.839065
0.04065
0
0
0
0
0.173594
0.050122
0
0
0
0
0
1
0
false
0.047619
0.238095
0
0.238095
0.333333
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e7d2ffd3f7f2be532081ab4ccbd72d2f7d534660
1,968
py
Python
text_mode.py
JacekPrzemieniecki/UNIFAC
c32702aeffd695a9fd3883cf150500e902df7a97
[ "MIT" ]
6
2016-01-04T02:33:13.000Z
2021-07-18T08:32:51.000Z
text_mode.py
JacekPrzemieniecki/UNIFAC
c32702aeffd695a9fd3883cf150500e902df7a97
[ "MIT" ]
1
2020-07-27T17:56:23.000Z
2020-08-10T06:30:06.000Z
text_mode.py
JacekPrzemieniecki/UNIFAC
c32702aeffd695a9fd3883cf150500e902df7a97
[ "MIT" ]
6
2015-01-02T19:18:16.000Z
2021-04-16T08:12:14.000Z
''' Created on 16-10-2012 @author: Jacek Przemieniecki ''' from unifac.facade import Facade #@UnresolvedImport class UI(object): def __init__(self): self.facade = Facade() def parse_file(self, f): """ Opens the file from patch f and executes commands inside""" with open(f...
31.741935
102
0.571138
211
1,968
5.227488
0.421801
0.054397
0.019946
0.054397
0.253853
0.253853
0.197643
0.11786
0.11786
0.11786
0
0.015072
0.325711
1,968
61
103
32.262295
0.816127
0.292683
0
0
0
0
0.044152
0
0
0
0
0.032787
0
1
0.117647
false
0
0.029412
0
0.176471
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e7d5c15d7006467f20bff9ef1db02036b30e8aa0
3,875
py
Python
python/spellcheck.py
andrewgaul/src
4dd18eaf692c1a3740b00c68b3c088842d958e7a
[ "MIT" ]
null
null
null
python/spellcheck.py
andrewgaul/src
4dd18eaf692c1a3740b00c68b3c088842d958e7a
[ "MIT" ]
null
null
null
python/spellcheck.py
andrewgaul/src
4dd18eaf692c1a3740b00c68b3c088842d958e7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''spellcheck.py - parse source code and spell check comments, strings, or all tokens. Usage: find $SRCDIR -name \*.java | spellcheck.py --dict /usr/share/dict/words Most users will need a large custom dictionary of technical terms, e.g., HTTP, malloc, etc. Users may want to pipe output throug...
33.405172
79
0.594065
450
3,875
5.002222
0.42
0.022212
0.030209
0.019547
0.039982
0.020435
0.020435
0
0
0
0
0.005281
0.315871
3,875
115
80
33.695652
0.843833
0.314065
0
0.231884
0
0
0.044376
0
0
0
0
0.017391
0
1
0.043478
false
0
0.057971
0
0.101449
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e7d8a57bd82d83430fc2050120ea5bf3d037a7e3
1,981
py
Python
sliding_racket/Environment.py
alizindari/Deep-Reinforcement-Learning
315aedcaaa2ba134e77c95270fd30ed5d814182c
[ "MIT" ]
1
2022-01-24T06:11:18.000Z
2022-01-24T06:11:18.000Z
sliding_racket/Environment.py
alizindari/Deep-Reinforcement-Learning
315aedcaaa2ba134e77c95270fd30ed5d814182c
[ "MIT" ]
null
null
null
sliding_racket/Environment.py
alizindari/Deep-Reinforcement-Learning
315aedcaaa2ba134e77c95270fd30ed5d814182c
[ "MIT" ]
null
null
null
import numpy as np from collections import deque from experience_replay import * from brain import * from agent import * from Hyperparameters import * class Environment: def __init__(self,x,y): param = Hyperparameters() self.x = x self.y = y self.buff = deque(maxlen= param.CHANNEL...
27.513889
98
0.498233
281
1,981
3.434164
0.199288
0.082902
0.066321
0.074611
0.524352
0.510881
0.472539
0.472539
0.472539
0.422798
0
0.034566
0.372034
1,981
72
99
27.513889
0.741158
0
0
0.320755
0
0
0.003029
0
0
0
0
0
0
1
0.056604
false
0.056604
0.113208
0
0.226415
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1