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
20a47d6f91e5e6f79d6cfe1129996f199140067c
889
py
Python
project_name/settings/prod.py
wearespindle/Estrada
6d12539d89fc81758de37646f19e228ac847fb82
[ "MIT" ]
2
2016-01-17T09:33:27.000Z
2017-09-20T19:50:12.000Z
project_name/settings/prod.py
wearespindle/estrada
6d12539d89fc81758de37646f19e228ac847fb82
[ "MIT" ]
null
null
null
project_name/settings/prod.py
wearespindle/estrada
6d12539d89fc81758de37646f19e228ac847fb82
[ "MIT" ]
null
null
null
from {{ project_name }}.settings.base import * # noqa DEBUG = boolean(os.environ.get('DEBUG', 0)) TEMPLATE_DEBUG = boolean(os.environ.get('DEBUG', DEBUG)) ALLOWED_HOSTS = ['.example.com'] # Use the cached template loader so template is compiled once and read from # memory instead of reading from disk on each load. ...
32.925926
88
0.75928
121
889
5.371901
0.61157
0.064615
0.096923
0.064615
0.16
0.089231
0
0
0
0
0
0.013072
0.139483
889
26
89
34.192308
0.836601
0.23847
0
0
0
0
0.244411
0.184799
0
0
0
0
0
0
null
null
0
0.052632
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
20a5a6b04734bb68843fbee0b67f8aa80267dbb6
171,154
py
Python
phjokes/jokes/jokes.py
Tmpts21/phjokes
dcc72a8ec744124505bd38de264022c985c66cb8
[ "MIT" ]
null
null
null
phjokes/jokes/jokes.py
Tmpts21/phjokes
dcc72a8ec744124505bd38de264022c985c66cb8
[ "MIT" ]
null
null
null
phjokes/jokes/jokes.py
Tmpts21/phjokes
dcc72a8ec744124505bd38de264022c985c66cb8
[ "MIT" ]
null
null
null
pinoy_jokes = { 1: {'dialect': 'bisaya', 'joke': ['Teban: Dok, ngano gasakit man akong dughan kada inum nakug ' 'tuba, pero kung libre gani dili mosakit??', 'Doktor: Ah kabalo nako ana, nipis imong BAGA, pero BAGA IMONG ' 'NAWONG']}, 2: {'dialect': 'bisaya', 'jok...
50.802612
80
0.512585
20,476
171,154
4.318177
0.24033
0.02884
0.051098
0.004942
0.081838
0.058517
0.046291
0.035264
0.028229
0.024836
0
0.016124
0.362597
171,154
3,369
81
50.802612
0.788036
0
0
0.054335
0
0.000297
0.635021
0.000444
0
0
0
0
0
1
0
false
0.002078
0.000891
0
0.000891
0
0
0
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
20ac473f19213823287394b84e1fa85dd5167fc1
427
py
Python
django_project/blog/migrations/0007_add_snippet_to_post_model.py
jsolly/shower-thought-blog
b1f61b50f20b6cc20a10f87bbd6d9532dc0b06c5
[ "MIT" ]
1
2022-03-22T15:40:18.000Z
2022-03-22T15:40:18.000Z
django_project/blog/migrations/0007_add_snippet_to_post_model.py
jsolly/shower-thought-blog
b1f61b50f20b6cc20a10f87bbd6d9532dc0b06c5
[ "MIT" ]
16
2022-03-22T15:35:35.000Z
2022-03-30T00:55:14.000Z
django_project/blog/migrations/0007_add_snippet_to_post_model.py
jsolly/blogthedata
4f9ea581d0ddbcdefcf49b0911082b0b964fe594
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2022-03-07 15:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0006_change_content_field_to_richtextuploading'), ] operations = [ migrations.AddField( model_name='post', n...
22.473684
74
0.622951
48
427
5.395833
0.833333
0
0
0
0
0
0
0
0
0
0
0.070064
0.264637
427
18
75
23.722222
0.754777
0.105386
0
0
1
0
0.160526
0.121053
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
20bfc39cf26ded020a9ec56612b89b74cf329ac1
1,014
py
Python
settings.py
fastent/fastent
ce49b250e7c5b2c475b981307f11a0595fc96a89
[ "MIT" ]
8
2018-04-16T09:12:59.000Z
2020-12-08T12:35:56.000Z
settings.py
fastent/fastent
ce49b250e7c5b2c475b981307f11a0595fc96a89
[ "MIT" ]
10
2018-01-23T16:03:51.000Z
2021-03-31T18:35:22.000Z
settings.py
fastent/fastent
ce49b250e7c5b2c475b981307f11a0595fc96a89
[ "MIT" ]
3
2018-06-26T18:19:38.000Z
2021-08-09T14:16:45.000Z
import couchdb def init(username = None, password = None): """ Global Initialization of settings Return the list of words closer to word1 in comparison with word2 Args: word1 (str): first word word2 (str): second word Returns: void: As it is global settings init nothing i...
22.533333
87
0.606509
130
1,014
4.723077
0.5
0.045603
0.065147
0.078176
0.032573
0
0
0
0
0
0
0.034091
0.30572
1,014
44
88
23.045455
0.838068
0.428008
0
0.117647
0
0
0.098232
0
0
0
0
0
0
1
0.117647
false
0.117647
0.058824
0
0.294118
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
20c6a2e3dbb5e69f0d2fef1f3e6995742a9176e6
3,744
py
Python
build/android/xwalkcore_library_template/prepare_r_java.py
shawngao5/crosswalk
093dab2db675944cb39f1d820a96fe73c953a7f0
[ "BSD-3-Clause" ]
1
2015-02-24T02:09:10.000Z
2015-02-24T02:09:10.000Z
build/android/xwalkcore_library_template/prepare_r_java.py
ds-hwang/crosswalk
d603b6e5b80bfe77294052a87e1be68b5d3c9e7b
[ "BSD-3-Clause" ]
null
null
null
build/android/xwalkcore_library_template/prepare_r_java.py
ds-hwang/crosswalk
d603b6e5b80bfe77294052a87e1be68b5d3c9e7b
[ "BSD-3-Clause" ]
1
2019-03-11T07:20:49.000Z
2019-03-11T07:20:49.000Z
#!/usr/bin/env python # # Copyright (c) 2013 Intel Corporation. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Copy the generated R.java to additional packages under gen. Besides copying, the script will change the fixed value in new ...
30.942149
80
0.629274
506
3,744
4.486166
0.280632
0.024229
0.043172
0.04185
0.156388
0.112775
0.085463
0.085463
0.061674
0.061674
0
0.012908
0.255075
3,744
120
81
31.2
0.801004
0.106838
0
0.149254
0
0.014925
0.16465
0.022736
0
0
0
0
0
0
null
null
0
0.059701
null
null
0.044776
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
20c7806baaeb94095c8b47052cf6e808415dc12b
2,337
py
Python
trial_of_the_stones/the_trial_of_the_stones.py
ikostan/ElegantBrowserAutomationWithPythonAndSelenium
da087036d74a8fbaec3a2875dad5c45c2a85689c
[ "Unlicense" ]
3
2020-05-14T16:41:15.000Z
2020-11-15T00:01:04.000Z
trial_of_the_stones/the_trial_of_the_stones.py
ikostan/ElegantBrowserAutomationWithPythonAndSelenium
da087036d74a8fbaec3a2875dad5c45c2a85689c
[ "Unlicense" ]
null
null
null
trial_of_the_stones/the_trial_of_the_stones.py
ikostan/ElegantBrowserAutomationWithPythonAndSelenium
da087036d74a8fbaec3a2875dad5c45c2a85689c
[ "Unlicense" ]
1
2019-11-18T08:27:53.000Z
2019-11-18T08:27:53.000Z
from trial_of_the_stones.models.page_model import PageModel import selenium import unittest import time def trial_of_the_stones_automation(): ''' Source web page: https://techstepacademy.com/trial-of-the-stones :return: ''' # open web page page = PageModel(selenium.webdriver.Chrome()) pag...
31.16
96
0.729568
286
2,337
5.681818
0.241259
0.118154
0.024615
0.039385
0.457231
0.121846
0
0
0
0
0
0.000514
0.167309
2,337
74
97
31.581081
0.834532
0.117244
0
0
0
0
0.023576
0
0
0
0
0
0.285714
1
0.119048
false
0.309524
0.095238
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
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
20c9e23ffbfcb65e2097680c1fc39deca0fc3b44
156
py
Python
Handout/09.Strings e Fatiamento/02ex.py
pedroivoal/Dessoft
da4da1b48112db8da6a6b2ac5beef396c6d624d7
[ "MIT" ]
null
null
null
Handout/09.Strings e Fatiamento/02ex.py
pedroivoal/Dessoft
da4da1b48112db8da6a6b2ac5beef396c6d624d7
[ "MIT" ]
null
null
null
Handout/09.Strings e Fatiamento/02ex.py
pedroivoal/Dessoft
da4da1b48112db8da6a6b2ac5beef396c6d624d7
[ "MIT" ]
null
null
null
def conta_a(palavra): c = 0 for letra in palavra: if letra == 'a': c += 1 return c s = 'Insper' r = s[::-2] print(r)
12
25
0.442308
24
156
2.833333
0.708333
0
0
0
0
0
0
0
0
0
0
0.032609
0.410256
156
12
26
13
0.706522
0
0
0
0
0
0.044872
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0.111111
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
20d41274b7a53939b7213fd9dfb276b1adae0b04
1,395
py
Python
jobboard/messages.py
OnGridSystems/RobotVeraWebApp
01cee658a3983fcaf128b40bb99c1a4272e90c07
[ "MIT" ]
11
2018-06-13T10:10:11.000Z
2021-06-05T08:23:43.000Z
jobboard/messages.py
OnGridSystems/RobotVeraWebApp
01cee658a3983fcaf128b40bb99c1a4272e90c07
[ "MIT" ]
5
2021-03-19T23:41:21.000Z
2022-03-12T00:37:18.000Z
jobboard/messages.py
OnGridSystems/RobotVeraWebApp
01cee658a3983fcaf128b40bb99c1a4272e90c07
[ "MIT" ]
5
2018-08-17T16:09:33.000Z
2021-06-06T05:32:10.000Z
from django.utils.translation import ugettext_lazy as _ MESSAGES = { 'VacancyChange': _('Vacancy status change now pending...') + '&nbsp;<span data-uk-spinner="ratio: 0.5"></span>', 'Not_VacancyChange': '<span class="red-text" data-uk-icon="ban"></span>&emsp;To add new pipeline action you have to disab...
73.421053
121
0.64086
183
1,395
4.814208
0.322404
0.074915
0.136209
0.15891
0.498297
0.498297
0.498297
0.498297
0.498297
0.498297
0
0.016681
0.140502
1,395
18
122
77.5
0.718098
0
0
0
0
0.058824
0.777778
0.189247
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0
0
0
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
20d5c7c3a9e694ca7ac261490ac21a5a2610202a
1,217
py
Python
src/simplempu2.py
k323r/roller
134eef2344c30aba4f584c4706c9ce0604555619
[ "MIT" ]
null
null
null
src/simplempu2.py
k323r/roller
134eef2344c30aba4f584c4706c9ce0604555619
[ "MIT" ]
null
null
null
src/simplempu2.py
k323r/roller
134eef2344c30aba4f584c4706c9ce0604555619
[ "MIT" ]
null
null
null
import machine class MPUSimple(): def __init__(self, i2c, address=0x69): self._i2c = i2c self._addr = address self._i2c.start() self._i2c.writeto(self._addr, bytearray([107, 0])) self._i2c.stop() def _get_raw_values(self): self._i2c.start() raw_data = se...
35.794118
80
0.598192
165
1,217
4.133333
0.387879
0.174487
0.164223
0.205279
0
0
0
0
0
0
0
0.075824
0.25226
1,217
33
81
36.878788
0.673626
0.021364
0
0.142857
0
0
0.017677
0
0
0
0.010101
0
0
1
0.142857
false
0
0.035714
0
0.357143
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
20d61fd734abe4875eac2952a390cf9df8dcf442
868
py
Python
adventure_anywhere/s3_bucket_saves.py
zhammer/adventure-anywhere
b690750ab341da8c7feaecd64e5afe2e9cfff01a
[ "Apache-2.0" ]
null
null
null
adventure_anywhere/s3_bucket_saves.py
zhammer/adventure-anywhere
b690750ab341da8c7feaecd64e5afe2e9cfff01a
[ "Apache-2.0" ]
3
2019-07-08T05:13:39.000Z
2021-05-09T23:49:26.000Z
adventure_anywhere/s3_bucket_saves.py
zhammer/adventure-anywhere
b690750ab341da8c7feaecd64e5afe2e9cfff01a
[ "Apache-2.0" ]
null
null
null
import io from typing import Optional import boto3 import botocore from adventure_anywhere.definitions import SavesGateway s3 = boto3.resource("s3") class S3BucketSavesGateway(SavesGateway): bucket_name: str def __init__(self, bucket_name: str) -> None: self.bucket_name = bucket_name def fetc...
27.125
68
0.660138
110
868
5.018182
0.436364
0.108696
0.101449
0.057971
0.206522
0.137681
0.137681
0.137681
0.137681
0
0
0.016566
0.235023
868
31
69
28
0.814759
0
0
0.090909
0
0
0.02765
0
0
0
0
0
0
1
0.136364
false
0
0.227273
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
20e36d188851b2fcf5fda84db951166776838cb8
1,270
py
Python
cogrun.py
dribnet/ResearchPortfolioCode
e355cb9d6f832943e6b381b0f510fb01633802f1
[ "MIT" ]
null
null
null
cogrun.py
dribnet/ResearchPortfolioCode
e355cb9d6f832943e6b381b0f510fb01633802f1
[ "MIT" ]
null
null
null
cogrun.py
dribnet/ResearchPortfolioCode
e355cb9d6f832943e6b381b0f510fb01633802f1
[ "MIT" ]
null
null
null
# Prediction interface for Cog ⚙️ # Reference: https://github.com/replicate/cog/blob/main/docs/python.md import os import cog import pathlib from pathlib import Path from explorer import do_setup, perform_analysis, prepare_folder # https://stackoverflow.com/a/6587648/1010653 import tempfile, shutil def create_tempora...
38.484848
137
0.729921
173
1,270
5.190751
0.485549
0.023385
0.046771
0.044543
0.071269
0.071269
0
0
0
0
0
0.016023
0.164567
1,270
32
138
39.6875
0.828464
0.201575
0
0
0
0
0.078921
0.036963
0
0
0
0
0
1
0.130435
false
0
0.26087
0
0.521739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
20e515131352e3a2af824e3e96f7a905f67beb77
2,298
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/models/_resource_management_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/models/_resource_management_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/models/_resource_management_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
41.035714
102
0.685379
254
2,298
6.035433
0.535433
0.016308
0.07045
0.076321
0.130463
0.130463
0.040444
0
0
0
0
0.000536
0.18886
2,298
55
103
41.781818
0.821888
0.553525
0
0
0
0
0.117457
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0.047619
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
20edfe0998847a13f8f5f3efb740ffca3dd1ec23
2,965
py
Python
baselines/deepq/prediction/example/atari-gray/example.py
yenchenlin/rl-attack-detection
13ff1765cf52dda150c4266d8e68fd3c4aa350ed
[ "MIT" ]
66
2017-09-27T21:40:56.000Z
2022-02-22T13:58:41.000Z
baselines/deepq/prediction/example/atari-gray/example.py
haider4445/AdvDRL
c17ef8d6044c31a172884d2124e87d72f848dda2
[ "MIT" ]
4
2017-09-27T19:29:26.000Z
2021-02-22T10:01:33.000Z
baselines/deepq/prediction/example/atari-gray/example.py
haider4445/AdvDRL
c17ef8d6044c31a172884d2124e87d72f848dda2
[ "MIT" ]
14
2017-09-27T22:13:16.000Z
2021-07-12T10:01:58.000Z
import tensorflow as tf import numpy as np import cv2 import argparse import sys, os import logging def get_config(args): config = tf.ConfigProto() config.gpu_options.allow_growth = True return config def get_cv_image(img, mean, scale): return img def main(args): from tfacvp.model import Actio...
41.180556
125
0.639798
400
2,965
4.6125
0.385
0.019512
0.04607
0.045528
0.116531
0.058537
0.058537
0
0
0
0
0.009941
0.253626
2,965
71
126
41.760563
0.823769
0.164587
0
0
0
0
0.176614
0
0
0
0
0
0
0
null
null
0
0.177778
null
null
0.022222
0
0
0
null
0
0
0
0
0
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
20f1d1d12fc6a872c9870c2985b0990f98b3879e
1,249
py
Python
CursoEmVideo/Mundo3/Exercicios/ex106.py
rafaelgama/Curso_Python
908231de9de4a17f5aa829f2671fd88de9261eda
[ "MIT" ]
1
2020-05-07T20:21:15.000Z
2020-05-07T20:21:15.000Z
CursoEmVideo/Mundo3/Exercicios/ex106.py
rafaelgama/Curso_Python
908231de9de4a17f5aa829f2671fd88de9261eda
[ "MIT" ]
null
null
null
CursoEmVideo/Mundo3/Exercicios/ex106.py
rafaelgama/Curso_Python
908231de9de4a17f5aa829f2671fd88de9261eda
[ "MIT" ]
null
null
null
# Faça um mini-sistema que utilize o Interactive Help do Python. O usuário vai digitar o comando e o manual vai aparecer. # Quando o usuário digitar a palavra 'FIM', o programa se encerrará. Importante: use cores. c = ('\033[m','\033[1;32m','\033[1;31m','\033[7:30m') cores = {'limpa':'\033[m', 'bverde...
26.574468
122
0.591673
170
1,249
4.2
0.476471
0.022409
0.092437
0.047619
0.081232
0
0
0
0
0
0
0.057172
0.201761
1,249
47
123
26.574468
0.658977
0.20016
0
0.176471
0
0
0.321608
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.058824
0.441176
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
454bd6d4d2314743150dcf34112fa9294a989e60
3,199
py
Python
track3/utils/vis/vis_split.py
NVIDIAAICITYCHALLENGE/2018AICITY_Beihang
1ac0daceb5816e272658e35b8106e20c5db4d626
[ "MIT" ]
4
2018-11-28T22:54:53.000Z
2021-11-08T05:43:48.000Z
track3/utils/vis/vis_split.py
NVIDIAAICITYCHALLENGE/2018AICITY_Beihang
1ac0daceb5816e272658e35b8106e20c5db4d626
[ "MIT" ]
2
2019-01-22T09:38:25.000Z
2020-04-26T14:39:27.000Z
track3/utils/vis/vis_split.py
NVIDIAAICITYCHALLENGE/2018AICITY_Beihang
1ac0daceb5816e272658e35b8106e20c5db4d626
[ "MIT" ]
5
2018-11-29T22:02:09.000Z
2020-11-13T06:03:57.000Z
import numpy as np import sys import os import cv2 #version_num = sys.argv[1] root_path = 'home_directory/VIC/track3/new/tracklets' track_res_file = os.path.join(root_path, 'track_res_idx_v5_1_0.4_nodate.txt') #'track_res_idx_' + version_num + '.txt') with open(track_res_file, 'r') as f: lines = f.readlines() n...
31.99
136
0.577368
528
3,199
3.293561
0.223485
0.048304
0.051754
0.011501
0.32835
0.212766
0.156412
0.144911
0.120759
0.120759
0
0.027695
0.266333
3,199
99
137
32.313131
0.713251
0.116286
0
0.1
0
0
0.108184
0.07984
0
0
0
0
0.033333
0
null
null
0
0.066667
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
455cf80a6cc89cea804bcbfd52b7a7a286ad0346
4,227
py
Python
improved_DNS_lookup.py
ThanosGkara/improved_DNS_lookup
4543aadbea4910f7579cf49e79dcf0a86e120001
[ "MIT" ]
null
null
null
improved_DNS_lookup.py
ThanosGkara/improved_DNS_lookup
4543aadbea4910f7579cf49e79dcf0a86e120001
[ "MIT" ]
null
null
null
improved_DNS_lookup.py
ThanosGkara/improved_DNS_lookup
4543aadbea4910f7579cf49e79dcf0a86e120001
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Author: Athanasios Gkaraliakos email: a.gkaraliakos@gmail.com The script is written on python >=2.6 Script to resolve hostnames and ips from DNS Depends on python-dns " yum install python-dns " """ import sys import argparse import ipaddress from pprint import pprint try: import dns.reso...
27.809211
103
0.583156
516
4,227
4.653101
0.296512
0.059559
0.013328
0.044981
0.153269
0.10329
0.07247
0.044981
0.044981
0.044981
0
0.011529
0.302342
4,227
151
104
27.993377
0.802645
0.105512
0
0.27957
0
0
0.108344
0
0
0
0
0
0
0
null
null
0.010753
0.075269
null
null
0.086022
0
0
0
null
0
0
0
0
0
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
455e82ca8439d7766f12a093434358f28514165e
5,638
py
Python
tests/test_core.py
astromancer/pyshoc
64082927d03b5afdef6e07ae85003ffc6da07bf6
[ "MIT" ]
null
null
null
tests/test_core.py
astromancer/pyshoc
64082927d03b5afdef6e07ae85003ffc6da07bf6
[ "MIT" ]
null
null
null
tests/test_core.py
astromancer/pyshoc
64082927d03b5afdef6e07ae85003ffc6da07bf6
[ "MIT" ]
null
null
null
import more_itertools as mit import functools as ftl from recipes.testing import Expect from astropy.io.fits.hdu.base import _BaseHDU from pathlib import Path from pySHOC import shocCampaign, shocHDU, shocNewHDU, shocBiasHDU, shocFlatHDU import pytest import numpy as np import os import tempfile as tmp # TODO: old + n...
31.149171
80
0.570415
651
5,638
4.800307
0.296467
0.19712
0.192
0.03648
0.41536
0.38816
0.33696
0.32128
0.30656
0.29792
0
0.192991
0.261085
5,638
180
81
31.322222
0.557129
0.249202
0
0.086538
0
0
0.335966
0.29744
0
0
0
0.005556
0.028846
1
0.076923
false
0
0.096154
0.019231
0.211538
0.028846
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
4568067c0ed2ef45481a831818439aaf55738679
2,824
py
Python
workflow_demo.py
KhunWasut/chempython
8dd7407bec345042cc5304989f48c05d31b14a7c
[ "MIT" ]
null
null
null
workflow_demo.py
KhunWasut/chempython
8dd7407bec345042cc5304989f48c05d31b14a7c
[ "MIT" ]
null
null
null
workflow_demo.py
KhunWasut/chempython
8dd7407bec345042cc5304989f48c05d31b14a7c
[ "MIT" ]
null
null
null
### necessary imports ### import kpython_path as kp import os, re # Read necessary data from our workspace scheme # These arrays need to be sorted! x_snapshot_filelist = os.listdir('./x-snapshots') f_snapshot_filelist = os.listdir('./f-snapshots') x_snapshot_filelist.sort(key=kp.utils.natural_keys) f_snapshot_file...
26.392523
110
0.690864
503
2,824
3.689861
0.314115
0.077586
0.029095
0.034483
0.123922
0.123922
0.123922
0.044181
0
0
0
0.029047
0.171034
2,824
106
111
26.641509
0.763776
0.321884
0
0
0
0
0.036996
0
0
0
0
0
0.018868
0
null
null
0
0.037736
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
45758dbdba747a55a2e0362baa9c3920a89c1c17
1,288
py
Python
wouso/games/challenge/urls.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
117
2015-01-02T18:07:33.000Z
2021-01-06T22:36:25.000Z
wouso/games/challenge/urls.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
229
2015-01-12T07:07:58.000Z
2019-10-12T08:27:01.000Z
wouso/games/challenge/urls.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
96
2015-01-07T05:26:09.000Z
2020-06-25T07:28:51.000Z
from django.conf.urls.defaults import * urlpatterns = patterns('wouso.games.challenge.views', url(r'^$', 'index', name='challenge_index_view'), url(r'^(?P<id>\d+)/$', 'challenge', name='view_challenge'), url(r'^launch/(?P<to_id>\d+)/$', 'launch', name='challenge_launch'), url(r'^refuse/(?P<id>\d+)/$', ...
51.52
99
0.643634
170
1,288
4.682353
0.235294
0.075377
0.025126
0.067839
0.315327
0.315327
0.315327
0.315327
0.241206
0.241206
0
0
0.103261
1,288
24
100
53.666667
0.689177
0
0
0.1
0
0
0.61646
0.301242
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0
0
0
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
4578c5fa54d19b44546f7b5572685a40e7b3f7b2
737
py
Python
project3/films/admin.py
Codetype/Django-application
91c47a89fb284fb2702eb17438ecb9f02908c3b8
[ "MIT" ]
null
null
null
project3/films/admin.py
Codetype/Django-application
91c47a89fb284fb2702eb17438ecb9f02908c3b8
[ "MIT" ]
null
null
null
project3/films/admin.py
Codetype/Django-application
91c47a89fb284fb2702eb17438ecb9f02908c3b8
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Category, Movie, Comment class CategoryAdmin(admin.ModelAdmin): list_display = ['name', 'slug'] prepopulated_fields = {'slug': ('name',)} admin.site.register(Category, CategoryAdmin) class FilmAdmin(admin.ModelAdmin): list_display = ['name', 'slug', ...
32.043478
117
0.715061
83
737
6.156627
0.39759
0.088063
0.111546
0.152642
0.497065
0.438356
0.305284
0
0
0
0
0
0.126187
737
23
118
32.043478
0.793478
0
0
0.133333
0
0
0.224932
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
45790309d3110216c758cf44995103be8e3c452a
3,866
py
Python
etl-scripts/slice/convert_to_parquet/parquet_writer.py
aculich/openmappr
c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba
[ "MIT" ]
19
2018-04-05T23:33:33.000Z
2022-03-24T00:18:20.000Z
etl-scripts/slice/convert_to_parquet/parquet_writer.py
aculich/openmappr
c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba
[ "MIT" ]
13
2018-01-10T23:31:11.000Z
2018-07-20T12:55:02.000Z
etl-scripts/slice/convert_to_parquet/parquet_writer.py
aculich/openmappr
c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba
[ "MIT" ]
5
2018-02-12T05:33:19.000Z
2019-09-21T22:43:02.000Z
# Databricks notebook source exported at Sat, 7 May 2016 16:46:36 UTC # MAGIC %md # MAGIC Sanitized csv file to paraquet file writer # MAGIC #NOTES # MAGIC here, I read the temp data and split out parquet data for the given file. # MAGIC # MAGIC also, if the file has already been processed, then we don't process it ag...
36.130841
151
0.701759
516
3,866
5.19186
0.366279
0.083987
0.074655
0.016424
0.067189
0.067189
0.046286
0.046286
0.046286
0.046286
0
0.004586
0.153906
3,866
106
152
36.471698
0.81443
0.322556
0
0.039216
0
0
0.110248
0.018634
0
0
0
0
0
0
null
null
0
0.176471
null
null
0.039216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
458276874211f084e30ea5c68bd3e5d85f79ca8c
714
py
Python
jp.atcoder/abc090/abc090_b/11471132.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc090/abc090_b/11471132.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc090/abc090_b/11471132.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys def cnt(n): m = str(n) l = len(m) if l == 1: return n + 1 tot = 0 tot += pow(10, (l - 1) // 2) * (int(m[0]) - 1) tot += pow(10, l // 2) - 1 - pow(10, l // 2 - 1) * (l & 1 ^ 1) while l >= 2: l -= 2 if l == 0: tot += m[1] >= m[0] ...
21
67
0.340336
116
714
2.025862
0.258621
0.051064
0.102128
0.051064
0.221277
0.085106
0.085106
0.085106
0
0
0
0.09901
0.434174
714
33
68
21.636364
0.482673
0
0
0
0
0
0.013216
0
0
0
0
0
0
1
0.08
false
0
0.04
0
0.2
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4595f1a6e62ad4bf200c62b4b310fdc0e9e3cf4d
655
py
Python
Entry Widget & Grid Layout In Tkinter/Code-1.py
Ranjan2104/Tkinter-GUI--Series
9d96059cc81f9c1256b4135f40946f01c198f2de
[ "Apache-2.0" ]
2
2021-06-28T06:11:52.000Z
2021-08-18T05:01:12.000Z
Entry Widget & Grid Layout In Tkinter/Code-1.py
Ranjan2104/Tkinter-GUI--Series
9d96059cc81f9c1256b4135f40946f01c198f2de
[ "Apache-2.0" ]
null
null
null
Entry Widget & Grid Layout In Tkinter/Code-1.py
Ranjan2104/Tkinter-GUI--Series
9d96059cc81f9c1256b4135f40946f01c198f2de
[ "Apache-2.0" ]
null
null
null
from tkinter import * def getvals(): print(f"The value of username is {uservalue.get()}") print(f"The value of password is {passvalue.get()}") root = Tk() root.geometry("655x333") user = Label(root, text="Username") password = Label(root, text="Password") user.grid() password.grid(row=1) # Variable classe...
20.46875
56
0.720611
86
655
5.488372
0.5
0.044492
0.038136
0.059322
0.067797
0
0
0
0
0
0
0.019332
0.131298
655
31
57
21.129032
0.810193
0.103817
0
0
0
0
0.193825
0
0
0
0
0
0
1
0.055556
false
0.333333
0.055556
0
0.111111
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4599e46d8c31b015e5e21625e36cea0251d9bd04
2,269
py
Python
akatsuki/thanos/views.py
raun/vigilant-system
f535e16d63c7d48e550b52e4d1e833569cb43669
[ "MIT" ]
null
null
null
akatsuki/thanos/views.py
raun/vigilant-system
f535e16d63c7d48e550b52e4d1e833569cb43669
[ "MIT" ]
8
2021-09-08T14:13:53.000Z
2021-09-09T02:12:44.000Z
akatsuki/thanos/views.py
raun/vigilant-system
f535e16d63c7d48e550b52e4d1e833569cb43669
[ "MIT" ]
1
2021-08-29T05:17:43.000Z
2021-08-29T05:17:43.000Z
from thanos import models, serializers from rest_framework import generics, mixins # Create your views here. class FeatureRequestsListAll(generics.ListAPIView): queryset = models.FeatureRequest.objects.all() serializer_class = serializers.FeatureRequestsBasicListSerializer class FeatureRequestsList(generic...
37.196721
165
0.800793
238
2,269
7.365546
0.256303
0.095836
0.100399
0.06389
0.484313
0.420993
0.420993
0.420993
0.402168
0.249287
0
0.000504
0.124725
2,269
60
166
37.816667
0.882175
0.015866
0
0.459459
0
0
0.034081
0
0
0
0
0
0
1
0.108108
false
0
0.054054
0
0.837838
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
459a15f46679be2c40a2cdb11e67bc3b343f2b9f
1,261
py
Python
girlfriend/util/concurrent.py
chihongze/girlfriend
e00e62a21be5d5a08799550d56ae1509b51bfffd
[ "MIT" ]
83
2016-02-19T02:40:04.000Z
2022-02-15T04:48:53.000Z
girlfriend/util/concurrent.py
chihongze/girlfriend
e00e62a21be5d5a08799550d56ae1509b51bfffd
[ "MIT" ]
2
2016-04-11T13:11:57.000Z
2016-09-05T11:38:19.000Z
girlfriend/util/concurrent.py
chihongze/girlfriend
e00e62a21be5d5a08799550d56ae1509b51bfffd
[ "MIT" ]
15
2016-04-11T13:07:52.000Z
2022-01-07T10:47:28.000Z
# coding: utf-8 """并发工具集 """ from __future__ import absolute_import import threading from girlfriend.exception import InvalidArgumentException class CountDownLatch(object): """基于计数的闭锁实现 """ def __init__(self, count): if count <= 0: raise InvalidArgumentException(u"count参数必须为正整数") ...
22.927273
60
0.586043
122
1,261
5.754098
0.311475
0.166667
0.096866
0.089744
0.532764
0.425926
0.347578
0.242165
0.242165
0.242165
0
0.009324
0.319588
1,261
54
61
23.351852
0.808858
0.015067
0
0.575758
0
0
0.021849
0
0
0
0
0
0
0
null
null
0
0.090909
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
45a3347ed7fd62fd645e5a5149cb51c58e3eec20
3,344
py
Python
airnetSNL/dataset/rand_shapes.py
dennis-j-lee/AirNet-SNL
c35b84b50b7f1351a450a5970b19d8a8b83053d1
[ "BSD-3-Clause" ]
1
2021-08-13T14:31:49.000Z
2021-08-13T14:31:49.000Z
airnetSNL/dataset/rand_shapes.py
Kokoing123/AirNet-SNL
c35b84b50b7f1351a450a5970b19d8a8b83053d1
[ "BSD-3-Clause" ]
null
null
null
airnetSNL/dataset/rand_shapes.py
Kokoing123/AirNet-SNL
c35b84b50b7f1351a450a5970b19d8a8b83053d1
[ "BSD-3-Clause" ]
1
2022-01-04T07:36:06.000Z
2022-01-04T07:36:06.000Z
import numpy as np from skimage.draw import random_shapes import torch from torch.utils.data import Dataset from torch_radon import Radon class RandomShapeDataset(Dataset): """ Generate random shapes for training and testing. Args: * imgSize (int): Number of rows / cols in image * maxShap...
28.338983
69
0.541567
386
3,344
4.608808
0.323834
0.017988
0.044969
0.040472
0.078696
0.035975
0
0
0
0
0
0.023677
0.355861
3,344
117
70
28.581197
0.802228
0.188995
0
0.028169
1
0
0.010421
0
0
0
0
0
0
1
0.056338
false
0
0.070423
0.014085
0.183099
0
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
45a42c719fa7f3aab4e4af54bd6bcf0874ba4205
3,158
py
Python
example_images.py
BerenMillidge/Theory_Associative_Memory
f5e0f5e7fd192949036d81227112bdeb7c5c2c6e
[ "MIT" ]
3
2022-02-10T22:35:52.000Z
2022-02-14T05:05:10.000Z
example_images.py
BerenMillidge/Theory_Associative_Memory
f5e0f5e7fd192949036d81227112bdeb7c5c2c6e
[ "MIT" ]
null
null
null
example_images.py
BerenMillidge/Theory_Associative_Memory
f5e0f5e7fd192949036d81227112bdeb7c5c2c6e
[ "MIT" ]
null
null
null
# quick scripts to generate example images for figures import matplotlib.pyplot as plt import seaborn as sns import torch import numpy as np from functions import * from data import * from copy import deepcopy import pickle def plot_threshold_value_examples(savename): with open(savename, 'rb') as handle: d...
34.326087
203
0.619379
436
3,158
4.327982
0.307339
0.046635
0.045045
0.017488
0.247483
0.193959
0.138845
0.068892
0.068892
0.068892
0
0.038012
0.241925
3,158
92
204
34.326087
0.750209
0.068398
0
0.146667
1
0
0.076739
0.045703
0
0
0
0
0
1
0.013333
false
0
0.106667
0
0.12
0.106667
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
45a808311200467ed04bf1b45c77df5adbe5e9c5
1,838
py
Python
server/opendp_apps/terms_of_access/migrations/0001_initial.py
mikephelan/opendp-ux
80c65da0ed17adc01c69b05dbc9cbf3a5973a016
[ "MIT" ]
6
2021-05-25T18:50:58.000Z
2022-03-23T19:52:15.000Z
server/opendp_apps/terms_of_access/migrations/0001_initial.py
mikephelan/opendp-ux
80c65da0ed17adc01c69b05dbc9cbf3a5973a016
[ "MIT" ]
298
2021-05-19T17:34:09.000Z
2022-03-29T18:45:22.000Z
server/opendp_apps/terms_of_access/migrations/0001_initial.py
opendp/dpcreator
6ba3c58ecdcd81ca1f4533a14ce7604eccf6a646
[ "MIT" ]
2
2020-10-16T22:03:24.000Z
2020-11-15T22:45:19.000Z
# Generated by Django 3.1.12 on 2021-07-28 18:28 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='TermsOfAccess', ...
37.510204
136
0.559304
172
1,838
5.843023
0.406977
0.031841
0.091542
0.103483
0.41393
0.41393
0.41393
0.41393
0.41393
0.41393
0
0.016432
0.304679
1,838
48
137
38.291667
0.769953
0.025027
0
0.439024
1
0
0.137989
0.016201
0
0
0
0
0
1
0
false
0
0.073171
0
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45b2f703a4bc3108722c88d718ac13183fff953f
1,365
py
Python
Base/views.py
yorlysoro/INCOLARA
ce09cac91a2fc0d3afa6a238369c59a0ae32f245
[ "BSD-3-Clause" ]
null
null
null
Base/views.py
yorlysoro/INCOLARA
ce09cac91a2fc0d3afa6a238369c59a0ae32f245
[ "BSD-3-Clause" ]
null
null
null
Base/views.py
yorlysoro/INCOLARA
ce09cac91a2fc0d3afa6a238369c59a0ae32f245
[ "BSD-3-Clause" ]
null
null
null
from django.urls import reverse_lazy from django.views.generic import TemplateView, UpdateView, ListView, CreateView, DetailView, DeleteView from .forms import FormularioSectores, FormularioCuenta from .models import Cuenta, Sectores # Create your views here. class Inicio(TemplateView): template_name = 'index.html' ...
27.3
103
0.794139
164
1,365
6.384146
0.347561
0.080229
0.091691
0.105062
0.30468
0.242598
0.242598
0.242598
0.162369
0.162369
0
0
0.116484
1,365
49
104
27.857143
0.868159
0.01685
0
0.277778
0
0
0.173134
0.084328
0
0
0
0
0
1
0.027778
false
0
0.111111
0.027778
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
45b405281f3c3565dd4a995424f081f0b681a235
7,187
py
Python
collector_service_sdk/api/template/update_template_with_yaml_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
collector_service_sdk/api/template/update_template_with_yaml_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
collector_service_sdk/api/template/update_template_with_yaml_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: update_template_with_yaml.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from g...
46.367742
620
0.787672
797
7,187
6.777917
0.186951
0.038504
0.042762
0.023695
0.485931
0.433358
0.433358
0.433358
0.419289
0.419289
0
0.030002
0.104912
7,187
154
621
46.668831
0.809731
0.051621
0
0.615385
1
0.007692
0.246034
0.221063
0
0
0
0
0
1
0
false
0
0.046154
0
0.046154
0
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
45b70d8235d3aaf7f4a1c5c6930f0d27d1f5ab69
884
py
Python
ogle/lexer/language_spec.py
yshrdbrn/ogle
529337203b1bd3ec66c08f4ed153dba5fc8349a1
[ "MIT" ]
null
null
null
ogle/lexer/language_spec.py
yshrdbrn/ogle
529337203b1bd3ec66c08f4ed153dba5fc8349a1
[ "MIT" ]
null
null
null
ogle/lexer/language_spec.py
yshrdbrn/ogle
529337203b1bd3ec66c08f4ed153dba5fc8349a1
[ "MIT" ]
null
null
null
tokens = { 'ID': r'[A-Za-z][A-Za-z_0-9]*', 'FLOATNUM': r'(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)', 'INTNUM': r'[0-9]+', # Multi-character operators '==': r'==', '<=': r'<=', '>=': r'>=', '<>': r'<>', '::': r'::', } special_characters = '<>+-*/=(){}...
20.090909
93
0.384615
98
884
3.428571
0.44898
0.053571
0.035714
0.047619
0.053571
0.053571
0.041667
0
0
0
0
0.026627
0.235294
884
43
94
20.55814
0.470414
0.028281
0
0
0
0.027027
0.449242
0.140023
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45c128ccef7502c85db16755496819a9ea5b0ecf
414
py
Python
algorithm/16-DFS.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
algorithm/16-DFS.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
algorithm/16-DFS.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
# DFS: Depth First Search, 从最左侧由根向下遍历,对象有未被遍历的叶时继续往下遍历,无未被遍历叶时向上返回,返回到根时退出。 nums = [2, 0, 3, 1, 3, 4] pst = 3 def dfs(nums, p, t=0, nb=set()): step = nums[p] if p - step < 0 and p + step > len(nums): return False if nums[p - step] == t or nums[p + step] == t: return p - step or p + step ...
27.6
75
0.557971
72
414
3.208333
0.416667
0.17316
0.155844
0.17316
0.103896
0
0
0
0
0
0
0.030405
0.285024
414
14
76
29.571429
0.75
0.176329
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.363636
0.090909
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
45c63b33c0bb789703bf6a4e8274a4e734760af7
3,062
py
Python
docker_registry_client/Repository.py
agrrh/docker-registry-client
8abf6b0200a68bed986f698dcbf02d444257b75c
[ "Apache-2.0" ]
49
2015-09-23T11:01:33.000Z
2022-03-09T14:02:37.000Z
docker_registry_client/Repository.py
agrrh/docker-registry-client
8abf6b0200a68bed986f698dcbf02d444257b75c
[ "Apache-2.0" ]
32
2015-03-09T20:56:04.000Z
2022-01-25T12:37:36.000Z
docker_registry_client/Repository.py
agrrh/docker-registry-client
8abf6b0200a68bed986f698dcbf02d444257b75c
[ "Apache-2.0" ]
58
2015-09-23T11:01:36.000Z
2021-09-08T08:05:54.000Z
from __future__ import absolute_import from .Image import Image class BaseRepository(object): def __init__(self, client, repository, namespace=None): self._client = client self.repository = repository self.namespace = namespace @property def name(self): if self.namespace:...
30.019608
78
0.602874
331
3,062
5.350453
0.178248
0.073405
0.057595
0.091474
0.367024
0.289102
0.168267
0.060983
0
0
0
0.004655
0.298498
3,062
101
79
30.316832
0.819832
0.037884
0
0.257143
0
0
0.030459
0.011636
0
0
0
0
0.014286
1
0.257143
false
0
0.028571
0.085714
0.542857
0
0
0
0
null
0
0
0
0
0
0
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
45c9bd92884c72e6e4c3f7a0c6d0b2f3bc21fc33
499
py
Python
api/routes/guilds.py
vcokltfre/Raptor
540d5584a1d91addc018978e0ecbea6b2537ba83
[ "MIT" ]
3
2021-09-09T14:41:07.000Z
2021-12-24T14:26:53.000Z
api/routes/guilds.py
vcokltfre/Raptor
540d5584a1d91addc018978e0ecbea6b2537ba83
[ "MIT" ]
null
null
null
api/routes/guilds.py
vcokltfre/Raptor
540d5584a1d91addc018978e0ecbea6b2537ba83
[ "MIT" ]
null
null
null
from fastapi import APIRouter, HTTPException from tortoise.exceptions import DoesNotExist from ..config import get_guild_config as get_config from ..models import GuildConfigResponse router = APIRouter(prefix="/guilds") @router.get("/{id}/config") async def get_guild_config(id: int) -> GuildConfigResponse: try:...
27.722222
59
0.755511
57
499
6.508772
0.526316
0.043127
0.075472
0
0
0
0
0
0
0
0
0.007092
0.152305
499
17
60
29.352941
0.869976
0
0
0
0
0
0.066132
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
45d45ec0bf81fc02195d557dcba6a8b5884c9f6c
2,377
py
Python
passwordgenerator/app.py
aminbeigi/Password-Generator-Rest-API
b64159cd14cecabb6481be2ae10780e1435fb6a7
[ "MIT" ]
null
null
null
passwordgenerator/app.py
aminbeigi/Password-Generator-Rest-API
b64159cd14cecabb6481be2ae10780e1435fb6a7
[ "MIT" ]
null
null
null
passwordgenerator/app.py
aminbeigi/Password-Generator-Rest-API
b64159cd14cecabb6481be2ae10780e1435fb6a7
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_restful import Api, Resource from .data_generator import DataGenerator from webargs import fields, validate from webargs.flaskparser import use_args, use_kwargs, parser, abort """The Password-Generator Restful API This API will take in words as a parameter or will randomly ...
32.561644
88
0.701725
326
2,377
4.972393
0.371166
0.044417
0.029611
0.027144
0.287477
0.287477
0.287477
0.287477
0.287477
0.287477
0
0.010718
0.214977
2,377
73
89
32.561644
0.857985
0.136306
0
0.372093
0
0
0.079882
0
0
0
0
0
0
1
0.069767
false
0.093023
0.116279
0
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
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
45e33a2571477fbf015bac90469c8d9ff5ed057e
777
py
Python
src/Cells/Gol_Cell.py
eniallator/Game-of-Life-Workshop
7b05458b91654ea32e5f519d14ab2edd04ec409a
[ "MIT" ]
null
null
null
src/Cells/Gol_Cell.py
eniallator/Game-of-Life-Workshop
7b05458b91654ea32e5f519d14ab2edd04ec409a
[ "MIT" ]
null
null
null
src/Cells/Gol_Cell.py
eniallator/Game-of-Life-Workshop
7b05458b91654ea32e5f519d14ab2edd04ec409a
[ "MIT" ]
null
null
null
from src.Cells.Base_Cell import Base_Cell class Gol_Cell(Base_Cell): _neighbour_radius = 1 @classmethod def try_spawn(cls, neighbours): gol_cell_count = 0 for row in neighbours: for cell in row: if cell.__class__ == Gol_Cell: gol_cell_count...
24.28125
52
0.564994
102
777
3.960784
0.362745
0.190594
0.207921
0.118812
0.485149
0.485149
0.485149
0.485149
0.485149
0.485149
0
0.026263
0.362934
777
31
53
25.064516
0.789899
0
0
0.454545
0
0
0
0
0
0
0
0
0
1
0.136364
false
0
0.045455
0
0.318182
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
45e3bd4f197c5eb17ac5b8c229b30d3db30d4fe8
23,687
py
Python
codeSheets/SEAS6401/PGAProject/Exploratory_Analysis.py
kylearbide/kylearbide.github.io
33520b64ec83ae10ebc02593af5341610ee320ff
[ "CC-BY-3.0" ]
null
null
null
codeSheets/SEAS6401/PGAProject/Exploratory_Analysis.py
kylearbide/kylearbide.github.io
33520b64ec83ae10ebc02593af5341610ee320ff
[ "CC-BY-3.0" ]
null
null
null
codeSheets/SEAS6401/PGAProject/Exploratory_Analysis.py
kylearbide/kylearbide.github.io
33520b64ec83ae10ebc02593af5341610ee320ff
[ "CC-BY-3.0" ]
null
null
null
# Databricks notebook source import pandas as pd import math import matplotlib.pyplot as plt import numpy as np # COMMAND ---------- roundsDf = pd.read_csv("/dbfs/FileStore/karbide/Rounds.txt") holesDf = pd.read_csv("/dbfs/FileStore/karbide/Holes.txt") holesDf.drop(["Score", "ToPar", "Unnamed: 0"],axis=1,inplace = Tr...
29.720201
236
0.691603
2,879
23,687
5.618618
0.178882
0.013353
0.017804
0.020772
0.373022
0.325977
0.281034
0.244498
0.199369
0.196526
0
0.020034
0.119137
23,687
796
237
29.757538
0.755236
0.325284
0
0.171521
0
0
0.226756
0.048554
0
0
0
0
0
0
null
null
0
0.02589
null
null
0.019417
0
0
0
null
0
0
0
0
0
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
afd9b633b39ef9f50a012bc409866034bc5f8c8c
1,716
py
Python
rlutils/pytorch/functional.py
vermouth1992/rlutils
a326373b9e39dbf147c6c4261b82a688d4dc3e78
[ "Apache-2.0" ]
null
null
null
rlutils/pytorch/functional.py
vermouth1992/rlutils
a326373b9e39dbf147c6c4261b82a688d4dc3e78
[ "Apache-2.0" ]
null
null
null
rlutils/pytorch/functional.py
vermouth1992/rlutils
a326373b9e39dbf147c6c4261b82a688d4dc3e78
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torch.nn as nn def soft_update(target: nn.Module, source: nn.Module, tau): with torch.no_grad(): for target_param, param in zip(target.parameters(), source.parameters()): target_param.data.copy_(target_param.data * (1.0 - tau) + param.data * tau) def ha...
34.32
87
0.68648
262
1,716
4.366412
0.377863
0.048077
0.039336
0.04458
0.33479
0.26049
0.216783
0.157343
0.157343
0.157343
0
0.00524
0.221445
1,716
49
88
35.020408
0.851048
0.382867
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.227273
false
0
0.181818
0
0.590909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
afdc984fe1cfd582572ba843dac8b0037b008c0f
10,361
py
Python
shapeft/views.py
dksivagis/shpescape
a2c97be4628b012145fd5bda63d79836bc5898a0
[ "Apache-2.0" ]
1
2018-07-26T07:40:47.000Z
2018-07-26T07:40:47.000Z
shapeft/views.py
dksivagis/shpescape
a2c97be4628b012145fd5bda63d79836bc5898a0
[ "Apache-2.0" ]
1
2016-07-22T19:24:30.000Z
2016-07-22T19:24:30.000Z
shapeft/views.py
dksivagis/shpescape
a2c97be4628b012145fd5bda63d79836bc5898a0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
31.492401
90
0.671267
1,420
10,361
4.728873
0.258451
0.029486
0.012509
0.00968
0.141772
0.044974
0.044974
0.034847
0.034847
0.027104
0
0.014944
0.224978
10,361
328
91
31.588415
0.821295
0.138886
0
0.181818
0
0
0.11146
0.012333
0
0
0
0
0
0
null
null
0.004132
0.086777
null
null
0.078512
0
0
0
null
0
0
0
0
0
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
afe06cd156c8a97325d72aefd597fb7373d2ebfd
582
py
Python
abstract_scorm_xblock/abstract_scorm_xblock/utils.py
Abstract-Tech/abstract-scorm-xblock
11c2f0ec61dbc4d4e1af37b5a203c2f8be7eb944
[ "Apache-2.0" ]
5
2020-08-17T11:03:02.000Z
2021-02-18T02:54:57.000Z
abstract_scorm_xblock/abstract_scorm_xblock/utils.py
Abstract-Tech/abstract-scorm-xblock
11c2f0ec61dbc4d4e1af37b5a203c2f8be7eb944
[ "Apache-2.0" ]
2
2020-09-14T16:24:21.000Z
2021-06-04T08:38:26.000Z
abstract_scorm_xblock/abstract_scorm_xblock/utils.py
Abstract-Tech/abstract-scorm-xblock
11c2f0ec61dbc4d4e1af37b5a203c2f8be7eb944
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pkg_resources from django.template import Context, Template def gettext(text): """Dummy `gettext` replacement to make string extraction tools scrape strings marked for translation """ return text def resource_string(path): """Handy helper for getting resources from ou...
26.454545
71
0.743986
72
582
5.819444
0.527778
0.100239
0
0
0
0
0
0
0
0
0
0.00409
0.159794
582
21
72
27.714286
0.852761
0.292096
0
0
0
0
0.010076
0
0
0
0
0
0
1
0.3
false
0
0.2
0
0.8
0
0
0
0
null
0
0
0
0
0
0
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
afe38c9ec088a4afbef6d70c8069a990e305670e
5,523
py
Python
lwm2m/MdsNotificationDemo.py
jefforeilly/django-rest-framework-iot
c74c73677a23c469fdaed9278187b79c4f86ef7c
[ "Apache-2.0" ]
3
2017-01-17T00:38:01.000Z
2017-10-31T18:39:34.000Z
lwm2m/MdsNotificationDemo.py
kimiscircle/django-rest-framework-iot
c74c73677a23c469fdaed9278187b79c4f86ef7c
[ "Apache-2.0" ]
null
null
null
lwm2m/MdsNotificationDemo.py
kimiscircle/django-rest-framework-iot
c74c73677a23c469fdaed9278187b79c4f86ef7c
[ "Apache-2.0" ]
1
2018-10-06T13:04:48.000Z
2018-10-06T13:04:48.000Z
''' Created on October 25th, 2014 Subscribe to a resource, connect to the notification channel of an mDS instance and receive notifications from the subscribed resource Process the notifications and filter a set of endpints and a particualr resource path. Index the resource value from the notification and use it to...
39.170213
113
0.588991
482
5,523
6.711618
0.304979
0.034621
0.054096
0.068006
0.402782
0.387326
0.376198
0.349614
0.349614
0.349614
0
0.017658
0.302734
5,523
141
114
39.170213
0.822384
0.007242
0
0.336449
0
0
0.116932
0
0
0
0
0
0
0
null
null
0.028037
0.037383
null
null
0.149533
0
0
0
null
0
0
0
0
0
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
afeaeabf68ad77507c18bb28bd4167774636d57b
5,375
py
Python
pjproject_android/pjsip-apps/src/python/samples/presence.py
WachterJud/qaul.net_legacy
9c2be0a38ad6e90fadc0d1150340e37d220997ae
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
4
2019-11-11T08:16:08.000Z
2020-08-25T03:08:44.000Z
pjproject_android/pjsip-apps/src/python/samples/presence.py
WachterJud/qaul.net_legacy
9c2be0a38ad6e90fadc0d1150340e37d220997ae
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
1
2020-02-20T06:58:16.000Z
2020-02-20T07:08:07.000Z
my_softphone/pjproject-2.9/pjsip-apps/src/python/samples/presence.py
sashkaseltsov1/reposCpp
3ff5ce2a14a368a36b1758099ce4f3e8c4cdf11d
[ "Unlicense" ]
5
2019-07-02T02:03:24.000Z
2022-03-30T09:58:52.000Z
# $Id: presence.py 2171 2008-07-24 09:01:33Z bennylp $ # # Presence and instant messaging # # Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> # # 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 Foun...
30.539773
78
0.587721
659
5,375
4.675266
0.336874
0.039273
0.025316
0.025966
0.198312
0.16975
0.142162
0.142162
0.142162
0.107108
0
0.014138
0.315721
5,375
175
79
30.714286
0.823545
0.197767
0
0.327434
0
0
0.102546
0
0
0
0
0
0
0
null
null
0
0.017699
null
null
0.20354
0
0
0
null
0
0
0
0
0
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
aff20113a49410e00123a0009e08c39afd8fa4fe
3,550
py
Python
factory_boss/generator.py
mariushelf/factory_boss
b9f9c99ea731e2af1c6951f734e20ffe05ba1693
[ "MIT" ]
1
2021-06-03T12:47:17.000Z
2021-06-03T12:47:17.000Z
factory_boss/generator.py
mariushelf/factory_boss
b9f9c99ea731e2af1c6951f734e20ffe05ba1693
[ "MIT" ]
5
2021-05-25T12:46:00.000Z
2021-05-27T18:32:37.000Z
factory_boss/generator.py
mariushelf/factory_boss
b9f9c99ea731e2af1c6951f734e20ffe05ba1693
[ "MIT" ]
null
null
null
from graphlib import TopologicalSorter from typing import Dict, List from factory_boss.entity import Entity from factory_boss.instance import Instance, InstanceValue from factory_boss.reference_resolver import ReferenceResolver from factory_boss.relation_maker import RelationMaker class Generator: def __init__(s...
40.340909
85
0.640845
386
3,550
5.709845
0.243523
0.03539
0.040835
0.020417
0.037205
0.037205
0.037205
0.037205
0.037205
0
0
0.000778
0.275493
3,550
87
86
40.804598
0.856143
0.080845
0
0.082192
0
0
0.00865
0
0
0
0
0.011494
0
1
0.109589
false
0
0.082192
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
1
0
0
0
0
0
0
0
0
0
0
1
affbe4a22a5e997a745549d721843b0a11f49882
716
py
Python
python/validAnagram.py
guozengxin/myleetcode
ed7ab4f716845646cf164a08f03ea342f60b14e1
[ "MIT" ]
null
null
null
python/validAnagram.py
guozengxin/myleetcode
ed7ab4f716845646cf164a08f03ea342f60b14e1
[ "MIT" ]
null
null
null
python/validAnagram.py
guozengxin/myleetcode
ed7ab4f716845646cf164a08f03ea342f60b14e1
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/valid-anagram/ class Solution(object): def isAnagram(self, s, t): """ :type s: str :type t: str :rtype: bool """ if len(s) != len(t): return False chars = {} for c in s: if c in chars: ...
21.69697
46
0.423184
86
716
3.523256
0.406977
0.079208
0.069307
0.072607
0.158416
0
0
0
0
0
0
0.010336
0.459497
716
32
47
22.375
0.77261
0.061453
0
0.291667
0
0
0.033784
0
0
0
0
0
0
0
null
null
0
0
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b303705743eefab0ba3a94237990637335ac9fdf
14,855
py
Python
accelbyte_py_sdk/api/platform/models/fulfillment_history_info.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/platform/models/fulfillment_history_info.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/platform/models/fulfillment_history_info.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # justice-platform-service (4.10.0) # pylint: disabl...
40.040431
187
0.601414
1,497
14,855
5.754843
0.102872
0.079396
0.048288
0.039466
0.24585
0.155543
0.076146
0.04202
0.04202
0.032734
0
0.002334
0.307775
14,855
370
188
40.148649
0.835457
0.118613
0
0.209559
1
0
0.093254
0.003234
0
0
0
0
0
1
0.080882
false
0
0.029412
0.018382
0.264706
0
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
b303a7bdf946198e49b329535470da47fffb4d2f
3,342
py
Python
djgumroad/products/views.py
hiroto0222/gumroad-clone
47779d3643ce52a1265ec873d56ef95a0285a5a3
[ "MIT" ]
null
null
null
djgumroad/products/views.py
hiroto0222/gumroad-clone
47779d3643ce52a1265ec873d56ef95a0285a5a3
[ "MIT" ]
null
null
null
djgumroad/products/views.py
hiroto0222/gumroad-clone
47779d3643ce52a1265ec873d56ef95a0285a5a3
[ "MIT" ]
null
null
null
from django.http.response import JsonResponse from django.shortcuts import redirect, render from django.views import generic from .models import Product from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import reverse from .forms import ProductModelForm import stripe from django.conf import set...
30.381818
75
0.6538
351
3,342
6.102564
0.316239
0.039216
0.046685
0.05042
0.202148
0.202148
0.17507
0.17507
0.17507
0.17507
0
0.004351
0.243567
3,342
110
76
30.381818
0.842959
0.016756
0
0.207317
0
0
0.108404
0.045981
0
0
0
0
0
1
0.109756
false
0
0.109756
0.073171
0.573171
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b3047f98b590fe799d1f093c407616af4a2bef0e
1,073
py
Python
peerdrive/client/extract-public.image.py
DavidAlphaFox/chef-server
ead19eff311062687af6c063062dc1ab6c30ffaa
[ "Apache-2.0" ]
null
null
null
peerdrive/client/extract-public.image.py
DavidAlphaFox/chef-server
ead19eff311062687af6c063062dc1ab6c30ffaa
[ "Apache-2.0" ]
null
null
null
peerdrive/client/extract-public.image.py
DavidAlphaFox/chef-server
ead19eff311062687af6c063062dc1ab6c30ffaa
[ "Apache-2.0" ]
1
2020-11-04T03:19:15.000Z
2020-11-04T03:19:15.000Z
#!/usr/bin/env python # vim: set fileencoding=utf-8 : # # PeerDrive # Copyright (C) 2011 Jan Klötzke <jan DOT kloetzke AT freenet DOT de> # # 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, eithe...
28.236842
71
0.730662
167
1,073
4.694611
0.634731
0.042092
0.049745
0.072704
0.104592
0.071429
0
0
0
0
0
0.010169
0.17521
1,073
37
72
29
0.875706
0.72507
0
0
0
0
0.098182
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b30859cad748d616b1c18294c97e2494c40ff7af
243
py
Python
Python/Uri 1011 - Esfera.py
Gui25Reis/URI
3df11b4eb27513b336bdff1e56b7707568b249e3
[ "MIT" ]
null
null
null
Python/Uri 1011 - Esfera.py
Gui25Reis/URI
3df11b4eb27513b336bdff1e56b7707568b249e3
[ "MIT" ]
null
null
null
Python/Uri 1011 - Esfera.py
Gui25Reis/URI
3df11b4eb27513b336bdff1e56b7707568b249e3
[ "MIT" ]
null
null
null
raio = int(input('Raio: ')) format(r,'.2f') pi = 3.14159 volume = (4/3)*pi*raio**3 print("Volume = ", format(volume,'.3f')) #Para o URI: R = float(input()) format(R,'.2f') pi = 3.14159 v = (4/3)*pi*R**3 print("VOLUME = "+format(v,'.3f'))
14.294118
40
0.559671
44
243
3.090909
0.409091
0.102941
0.132353
0.161765
0.25
0.25
0
0
0
0
0
0.10628
0.148148
243
17
41
14.294118
0.550725
0.045267
0
0.2
0
0
0.155172
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
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
b30ee6a748d2d9b6d85fc0a86a570db53c906627
373
py
Python
loader.py
Flaiers/Youtube
440c84e7a200baccfd72680726071edbb1d3259e
[ "MIT" ]
2
2021-04-06T09:20:04.000Z
2021-04-06T09:56:51.000Z
loader.py
Flaiers/Youtube
440c84e7a200baccfd72680726071edbb1d3259e
[ "MIT" ]
null
null
null
loader.py
Flaiers/Youtube
440c84e7a200baccfd72680726071edbb1d3259e
[ "MIT" ]
1
2022-01-15T04:26:29.000Z
2022-01-15T04:26:29.000Z
from aiogram.contrib.fsm_storage.memory import MemoryStorage from aiogram import Bot, Dispatcher from config import TOKEN import logging # уровень логов logging.basicConfig(level=logging.INFO) # место хранения данных FSM storage = MemoryStorage() # инициализация бота bot = Bot(token=TOKEN, parse_...
19.631579
61
0.756032
46
373
6.086957
0.586957
0.078571
0
0
0
0
0
0
0
0
0
0
0.168901
373
18
62
20.722222
0.903226
0.155496
0
0
0
0
0.013652
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
b31b0d72b6bf1e9c7b8afd42f634d86f8f9409db
13,949
py
Python
env/lib/python3.6/site-packages/pytests/test_filters.py
rogerscristo/BotFWD
4f2ab1f4f4543c157ca0a79084536c065f74159f
[ "MIT" ]
null
null
null
env/lib/python3.6/site-packages/pytests/test_filters.py
rogerscristo/BotFWD
4f2ab1f4f4543c157ca0a79084536c065f74159f
[ "MIT" ]
3
2017-09-01T22:18:30.000Z
2017-09-01T22:24:57.000Z
env/lib/python3.6/site-packages/pytests/test_filters.py
rogerscristo/BotFWD
4f2ab1f4f4543c157ca0a79084536c065f74159f
[ "MIT" ]
3
2018-02-22T22:20:27.000Z
2018-04-22T10:58:24.000Z
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2017 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publis...
39.292958
89
0.652735
1,604
13,949
5.523067
0.122818
0.10272
0.086692
0.090868
0.604583
0.507506
0.424427
0.38729
0.338864
0.304323
0
0.004864
0.248333
13,949
354
90
39.403955
0.840057
0.055631
0
0.276364
0
0
0.03945
0.001953
0
0
0
0
0.447273
1
0.141818
false
0.003636
0.014545
0.010909
0.178182
0
0
0
0
null
0
0
0
0
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
b32c3b1f6b9960d68abbd7b2eb50e2141abb04e2
2,621
py
Python
src/compiler/gen_comb.py
luinaudt/deparser
06d3c82ee151da4cef2823015d56bf867e0205f6
[ "Apache-2.0" ]
7
2021-02-25T14:48:39.000Z
2022-03-05T06:46:01.000Z
src/compiler/gen_comb.py
luinaudt/deparser
06d3c82ee151da4cef2823015d56bf867e0205f6
[ "Apache-2.0" ]
null
null
null
src/compiler/gen_comb.py
luinaudt/deparser
06d3c82ee151da4cef2823015d56bf867e0205f6
[ "Apache-2.0" ]
1
2020-12-15T08:23:11.000Z
2020-12-15T08:23:11.000Z
from collections import OrderedDict def genListCombinaison(P4Graph): """ Generate a set of tuples from graph. Each tuple represents possible active headers at the same time """ combinaison = [] return combinaison def genListHeaders(P4Graph): """ Generate the dictionnary of headers. P4Gra...
30.835294
76
0.537963
280
2,621
5.021429
0.332143
0.02845
0.051209
0.01707
0.261735
0.261735
0.210526
0.210526
0.210526
0.210526
0
0.008353
0.360549
2,621
84
77
31.202381
0.830549
0.122091
0
0.229508
1
0
0.032488
0
0
0
0
0
0
1
0.098361
false
0
0.016393
0.016393
0.229508
0.032787
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
b337c9155d731fdef2e59329d91780d71098d7fd
543
py
Python
bluebottle/projects/migrations/0037_longer_place_20170914_1129.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/projects/migrations/0037_longer_place_20170914_1129.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/projects/migrations/0037_longer_place_20170914_1129.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-09-14 09:29 from __future__ import unicode_literals import bluebottle.utils.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projects', '0036_merge_20170831_1449'), ] operations...
24.681818
109
0.651934
62
543
5.532258
0.822581
0
0
0
0
0
0
0
0
0
0
0.086331
0.232044
543
21
110
25.857143
0.736211
0.12523
0
0
1
0
0.137712
0.050847
0
0
0
0
0
1
0
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b33b0db664b85a2c8bb3219cc5d5f2b210477277
2,181
py
Python
cartography/record.py
tingled/synthetic-cartography
54bca8d8b0db87e107d25429e14acad63446eee6
[ "MIT" ]
null
null
null
cartography/record.py
tingled/synthetic-cartography
54bca8d8b0db87e107d25429e14acad63446eee6
[ "MIT" ]
2
2020-04-07T17:37:08.000Z
2020-04-07T17:38:22.000Z
cartography/record.py
tingled/synthetic-cartography
54bca8d8b0db87e107d25429e14acad63446eee6
[ "MIT" ]
null
null
null
import numpy as np import pyaudio from pyaudio import PyAudio from queue import Queue import struct from time import sleep def get_steinberg_device_idx(pa: PyAudio) -> int: """ looks up the steinberg device index """ for i in range(pa.get_device_count()): name = pa.get_device_info_by_index(i)...
30.71831
93
0.623109
282
2,181
4.592199
0.386525
0.048649
0.050193
0.032432
0.074131
0.074131
0
0
0
0
0
0.010178
0.27923
2,181
70
94
31.157143
0.813613
0.155892
0
0
0
0
0.041254
0
0
0
0
0.014286
0
1
0.142857
false
0
0.122449
0
0.367347
0.020408
0
0
0
null
0
0
0
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
b33fd47979327b473f19118f37cd23e62fde6238
502
py
Python
pwa_store_backend/pwas/migrations/0016_auto_20210814_1636.py
nathanhfoster/pwa-store-backend
93a4bb1d347a9076b40600a2ec2fac92cada03cf
[ "MIT" ]
null
null
null
pwa_store_backend/pwas/migrations/0016_auto_20210814_1636.py
nathanhfoster/pwa-store-backend
93a4bb1d347a9076b40600a2ec2fac92cada03cf
[ "MIT" ]
38
2021-08-09T21:15:40.000Z
2021-10-11T04:15:47.000Z
pwa_store_backend/pwas/migrations/0016_auto_20210814_1636.py
nathanhfoster/pwa-store-backend
93a4bb1d347a9076b40600a2ec2fac92cada03cf
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-08-14 16:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pwas', '0015_auto_20210814_1622'), ] operations = [ migrations.RemoveField( model_name='pwa', name='tags', ...
21.826087
77
0.563745
52
502
5.326923
0.711538
0.086643
0.086643
0.115523
0.144404
0
0
0
0
0
0
0.092486
0.310757
502
22
78
22.818182
0.708092
0.091633
0
0.375
1
0
0.11674
0.050661
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b347f59a52dc01edc7fb0fdd6bbeaff06da53688
1,408
py
Python
review/models.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
16
2021-09-22T19:08:28.000Z
2022-03-18T18:57:02.000Z
review/models.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
6
2021-09-30T12:36:02.000Z
2022-03-18T22:18:00.000Z
review/models.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
6
2021-12-06T02:04:51.000Z
2022-03-13T14:38:14.000Z
from cloudinary.models import CloudinaryField from customers.models import Customer from django.db import models from django.utils.translation import gettext as _ from model.common_fields import BaseModel from product.models import Product class Review(BaseModel): """ Review model for products """ ...
33.52381
122
0.658381
161
1,408
5.627329
0.521739
0.03532
0.030905
0.037528
0.064018
0.064018
0.064018
0
0
0
0
0.005597
0.238636
1,408
41
123
34.341463
0.839552
0.017756
0
0
0
0.032258
0.231634
0
0
0
0
0
0
1
0.032258
false
0
0.193548
0.032258
0.548387
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b349cd0079f852f9f2fe7518942673c178bee728
3,561
py
Python
test.py
deemozyc/zycs_WiFi_location
fcbb608488ce3114f0980f8f69494e1baaad8ef1
[ "MIT" ]
2
2021-11-05T12:31:10.000Z
2021-12-23T07:01:36.000Z
test.py
deemozyc/zycs_WiFi_location
fcbb608488ce3114f0980f8f69494e1baaad8ef1
[ "MIT" ]
1
2021-01-14T10:27:21.000Z
2021-01-15T10:23:10.000Z
test.py
deemozyc/zycs_WiFi_location
fcbb608488ce3114f0980f8f69494e1baaad8ef1
[ "MIT" ]
null
null
null
# coding:utf-8 from sklearn import svm from sklearn.svm import SVC import csv import matplotlib import matplotlib.pyplot as plt from base import * def print_base(): #输出采集点地图 tst_coord = get_csv('db/02/tst01crd.csv') tst_coord = coord_zip(tst_coord) fig,ax = plt.subplots() plt.axis([2, 16, 14, 32]) plt.scatter(...
27.820313
99
0.663016
677
3,561
3.323486
0.233383
0.092889
0.085333
0.073333
0.502667
0.441778
0.368
0.309778
0.121778
0.097778
0
0.165824
0.110924
3,561
127
100
28.03937
0.544852
0.038472
0
0.122449
0
0
0.081257
0
0
0
0
0
0
0
null
null
0
0.122449
null
null
0.122449
0
0
0
null
0
0
0
0
0
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
b3559696a24c9b140eba4e3b40aec6b66e9caced
188
py
Python
panon/plasmoid/contents/scripts/panon/backend/get_pa_devices.py
ByteDream/dead-projects
530d704e9ee940189e5b20702197558a52b7e14c
[ "MIT" ]
null
null
null
panon/plasmoid/contents/scripts/panon/backend/get_pa_devices.py
ByteDream/dead-projects
530d704e9ee940189e5b20702197558a52b7e14c
[ "MIT" ]
null
null
null
panon/plasmoid/contents/scripts/panon/backend/get_pa_devices.py
ByteDream/dead-projects
530d704e9ee940189e5b20702197558a52b7e14c
[ "MIT" ]
null
null
null
from soundcard import pulseaudio as sc import json l = [] for mic in sc.all_microphones(exclude_monitors=False): l.append({'id': mic.id, 'name': mic.name}) s = json.dumps(l) print(s)
20.888889
54
0.702128
32
188
4.0625
0.6875
0
0
0
0
0
0
0
0
0
0
0
0.148936
188
8
55
23.5
0.8125
0
0
0
0
0
0.031915
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.142857
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
b35742c7a217bc1e2e13b80e481ff29f98d8775d
961
py
Python
src/pretix/control/forms/organizer.py
abrock/pretix
cd9c048458afce1198276e5936bf583578855a4f
[ "ECL-2.0", "Apache-2.0" ]
1
2021-06-23T07:44:54.000Z
2021-06-23T07:44:54.000Z
src/pretix/control/forms/organizer.py
awg24/pretix
b1d67a48601838bac0d4e498cbe8bdcd16013d60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/control/forms/organizer.py
awg24/pretix
b1d67a48601838bac0d4e498cbe8bdcd16013d60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from django import forms from django.utils.translation import ugettext_lazy as _ from pretix.base.forms import VersionedModelForm from pretix.base.models import Organizer class OrganizerForm(VersionedModelForm): error_messages = { 'duplicate_slug': _("This slug is already in use. Please choose a differen...
28.264706
91
0.650364
105
961
5.771429
0.533333
0.064356
0.046205
0.085809
0
0
0
0
0
0
0
0
0.243496
961
33
92
29.121212
0.833563
0
0
0.08
0
0
0.138398
0
0
0
0
0
0
1
0.12
false
0
0.16
0.04
0.52
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b3585155370e8aed218cc293c3d7a851633bfb1c
1,053
py
Python
upload.py
markraemer/limesurvey-factorial-vignette
f77235bef64fdad1841a903ec93b9540daf917c0
[ "MIT" ]
1
2020-12-22T12:28:13.000Z
2020-12-22T12:28:13.000Z
upload.py
markraemer/limesurvey-factorial-vignette
f77235bef64fdad1841a903ec93b9540daf917c0
[ "MIT" ]
null
null
null
upload.py
markraemer/limesurvey-factorial-vignette
f77235bef64fdad1841a903ec93b9540daf917c0
[ "MIT" ]
null
null
null
import base64 from limesurveyrc2api.limesurvey import LimeSurvey url = "https://livinginsmarthomes.limequery.com/admin/remotecontrol" username = "" password = "" surveyID = "" # Open a session. api = LimeSurvey(url=url, username=username) api.open(password=password) # Get a list of surveys the admin can see, and pr...
25.682927
68
0.733143
145
1,053
5.268966
0.544828
0.068063
0.034031
0.057592
0
0
0
0
0
0
0
0.007675
0.133903
1,053
40
69
26.325
0.830044
0.264957
0
0
0
0
0.200262
0.032723
0
0
0
0
0
1
0
false
0.090909
0.136364
0
0.136364
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
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
b3591909701b2598794ab1588ccde0c4771dd1cf
5,074
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Weights/Correlations/FLOPS/operating_items.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Weights/Correlations/FLOPS/operating_items.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Weights/Correlations/FLOPS/operating_items.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Methods-Weights-Correlations-FLOPS # operating_items.py # # Created: May 2020, W. Van Gijseghem # Modified: # ---------------------------------------------------------------------- # Imports # ---------------------------------------------------------------------- from SUAVE.Core import Units, Data import...
46.127273
116
0.571344
563
5,074
5.065719
0.34103
0.036466
0.015778
0.023142
0.135344
0.071529
0.017532
0
0
0
0
0.027059
0.329917
5,074
109
117
46.550459
0.811765
0.479306
0
0.057692
0
0
0.014561
0
0
0
0
0
0
1
0.019231
false
0.173077
0.038462
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
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
b35fb5f33155f6c37d8fa5bd0083e49c6314e152
972
py
Python
src/ui/setup_progress_screen.py
AndreWohnsland/CocktailBerry
60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d
[ "MIT" ]
1
2022-03-06T23:50:34.000Z
2022-03-06T23:50:34.000Z
src/ui/setup_progress_screen.py
AndreWohnsland/CocktailBerry
60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d
[ "MIT" ]
4
2022-03-03T11:16:17.000Z
2022-03-20T15:53:37.000Z
src/ui/setup_progress_screen.py
AndreWohnsland/CocktailBerry
60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d
[ "MIT" ]
null
null
null
from PyQt5.QtCore import Qt from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import QMainWindow from src.ui_elements.progressbarwindow import Ui_Progressbarwindow from src.tabs.maker import interrupt_cocktail from src.display_controller import DP_CONTROLLER from src.dialog_handler import UI_LANGUAGE class Progres...
37.384615
89
0.768519
113
972
6.362832
0.495575
0.038943
0
0
0
0
0
0
0
0
0
0.003667
0.158436
972
25
90
38.88
0.875306
0.053498
0
0
0
0
0.008772
0
0
0
0
0
0
1
0.052632
false
0
0.368421
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
b365a628677f2c11b43119df6b1df9b71de68a18
22,135
py
Python
Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/ihooks.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
9
2019-11-22T04:58:40.000Z
2022-02-26T16:47:28.000Z
Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/ihooks.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
null
null
null
Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/ihooks.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
8
2017-09-27T10:31:18.000Z
2022-01-08T10:30:46.000Z
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: ihooks.py """Import hook support. Consistent use of this module will make it possible to change the different mechanisms involved in loading modules...
32.890045
116
0.563406
2,684
22,135
4.461624
0.181446
0.018789
0.01286
0.007599
0.227641
0.137537
0.102714
0.079081
0.053528
0.039499
0
0.030316
0.360696
22,135
673
117
32.890045
0.815914
0
0
0.264151
0
0
0.054714
0
0
0
0
0
0
0
null
null
0.004193
0.092243
null
null
0.004193
0
0
0
null
0
0
0
0
0
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
b368cf90f7154ef38658425c18d4327f543b3313
1,680
py
Python
tests/test_override_threading.py
wordlesstruth/stomp.py
d7382554eadc29c34c3aec4d5c300fe267a64e42
[ "Apache-2.0" ]
null
null
null
tests/test_override_threading.py
wordlesstruth/stomp.py
d7382554eadc29c34c3aec4d5c300fe267a64e42
[ "Apache-2.0" ]
null
null
null
tests/test_override_threading.py
wordlesstruth/stomp.py
d7382554eadc29c34c3aec4d5c300fe267a64e42
[ "Apache-2.0" ]
null
null
null
import logging import time from concurrent.futures import ThreadPoolExecutor import pytest import stomp from stomp.listener import TestListener from .testutils import * executor = ThreadPoolExecutor() def create_thread(fc): f = executor.submit(fc) print("Created future %s on executor %s" % (f, executor)) ...
26.25
78
0.680952
196
1,680
5.673469
0.418367
0.06295
0.045863
0.056655
0.133993
0.133993
0.133993
0.133993
0.133993
0.091727
0
0.012821
0.210714
1,680
63
79
26.666667
0.825792
0.015476
0
0.046512
0
0
0.088378
0
0
0
0
0
0
1
0.116279
false
0.069767
0.162791
0
0.348837
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
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
b36a7e1a45b66fc6c3ad4f5d74626e7fda094de7
1,871
py
Python
esbo_etc/classes/optical_component/CosmicBackground.py
LukasK13/ESBO-ETC
d1db999f1670f2777c5227d79629d421f03e5393
[ "Apache-2.0" ]
null
null
null
esbo_etc/classes/optical_component/CosmicBackground.py
LukasK13/ESBO-ETC
d1db999f1670f2777c5227d79629d421f03e5393
[ "Apache-2.0" ]
null
null
null
esbo_etc/classes/optical_component/CosmicBackground.py
LukasK13/ESBO-ETC
d1db999f1670f2777c5227d79629d421f03e5393
[ "Apache-2.0" ]
null
null
null
from .AOpticalComponent import AOpticalComponent from ..IRadiant import IRadiant import astropy.units as u from astropy.modeling.models import BlackBody from ..Entry import Entry from typing import Union class CosmicBackground(AOpticalComponent): """ This class models the spectral radiance of the cosmic backg...
32.258621
108
0.606627
221
1,871
5.081448
0.429864
0.017809
0.021371
0.017809
0.040962
0.040962
0.040962
0
0
0
0
0.006923
0.305184
1,871
57
109
32.824561
0.856923
0.402459
0
0.2
0
0
0.026345
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b36b3e7943e5d09dc4330ff1f6ec09920c211a27
15,921
py
Python
sentinel_possesor.py
yohaimagen/gamma_sentinel
59c3af8d4f7b01db5156eb66f2662a58793c66bf
[ "MIT" ]
8
2020-08-04T08:32:16.000Z
2022-02-15T10:05:12.000Z
sentinel_possesor.py
yohaimagen/gamma_sentinel
59c3af8d4f7b01db5156eb66f2662a58793c66bf
[ "MIT" ]
2
2020-01-21T14:37:27.000Z
2021-02-22T00:24:34.000Z
sentinel_possesor.py
yohaimagen/gamma_sentinel
59c3af8d4f7b01db5156eb66f2662a58793c66bf
[ "MIT" ]
1
2020-01-31T01:37:23.000Z
2020-01-31T01:37:23.000Z
#! /home/yohai/anaconda2/bin/python import sys,os,re,time,glob,string,getopt, argparse import numpy as np ############################################################ #print messeges to standart error and log file # ############################################################ def message(mes): # messege...
48.688073
406
0.652346
2,566
15,921
3.8106
0.13484
0.11127
0.103804
0.114543
0.454694
0.397832
0.364594
0.321947
0.295971
0.275107
0
0.015615
0.187488
15,921
326
407
48.837423
0.74026
0.013881
0
0.246212
0
0.094697
0.336283
0.053374
0
0
0
0
0
0
null
null
0.003788
0.026515
null
null
0.037879
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b36ebf2bb4e637183ce289413556ff9caf9c4301
6,595
py
Python
src/cloudwatch/modules/flusher.py
klarna/collectd-cloudwatch
d17013a0fb130dae841cb9449ffc17e8531b7eab
[ "MIT" ]
1
2019-06-13T23:48:25.000Z
2019-06-13T23:48:25.000Z
src/cloudwatch/modules/flusher.py
klarna/collectd-cloudwatch
d17013a0fb130dae841cb9449ffc17e8531b7eab
[ "MIT" ]
null
null
null
src/cloudwatch/modules/flusher.py
klarna/collectd-cloudwatch
d17013a0fb130dae841cb9449ffc17e8531b7eab
[ "MIT" ]
1
2022-02-22T08:01:14.000Z
2022-02-22T08:01:14.000Z
import threading import time import os import math from client.putclient import PutClient from logger.logger import get_logger from metricdata import MetricDataStatistic, MetricDataBuilder class Flusher(object): """ The flusher is responsible for translating Collectd metrics to CloudWatch MetricDataStatistic,...
40.709877
135
0.628355
813
6,595
4.831488
0.232472
0.052699
0.036405
0.016293
0.104888
0.078666
0.065937
0.039715
0.021894
0.021894
0
0.00284
0.305989
6,595
161
136
40.962733
0.855364
0.0279
0
0.22449
0
0
0.032123
0
0
0
0
0
0
0
null
null
0
0.071429
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
b373fdbd5517742623a5158e4b39ae13ef4c20fe
4,010
py
Python
simulation/src/launch_tools/scripts/launch_tools/services_timer.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
null
null
null
simulation/src/launch_tools/scripts/launch_tools/services_timer.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
null
null
null
simulation/src/launch_tools/scripts/launch_tools/services_timer.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Copyright (c) 2013, Systems, Robotics and Vision Group University of the Balearican Islands All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code ...
37.830189
86
0.702993
543
4,010
5.075506
0.388582
0.047896
0.043541
0.017417
0.149855
0.118287
0.118287
0.093614
0.093614
0.093614
0
0.004172
0.222943
4,010
105
87
38.190476
0.880295
0.130673
0
0.041667
0
0.020833
0.113649
0
0
0
0
0
0
0
null
null
0
0.104167
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
b374896bdff6bd1b17cfb2b70ee3c9dc10c79a33
289
py
Python
ListaDeExercicios/Exercicio12.py
LucasAlmeida0/Estudos
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
[ "MIT" ]
null
null
null
ListaDeExercicios/Exercicio12.py
LucasAlmeida0/Estudos
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
[ "MIT" ]
null
null
null
ListaDeExercicios/Exercicio12.py
LucasAlmeida0/Estudos
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
[ "MIT" ]
null
null
null
# 12 Tendo como dados de entrada a altura de uma pessoa, construa um algoritmo que calcule seu peso ideal, usando a seguinte fórmula: (72.7*altura) - 58 Altura = float(input("Digite sua altura: ")); PesoIdeal = ( 72.7 * Altura ) - 58; print("Seu peso ideal é {:.2f}".format(PesoIdeal));
41.285714
152
0.702422
46
289
4.413043
0.717391
0.068966
0.118227
0.108374
0
0
0
0
0
0
0
0.054167
0.16955
289
6
153
48.166667
0.791667
0.519031
0
0
0
0
0.306569
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
b3756a51abf6feb83f08d485b60040cc7a78b58d
2,793
py
Python
src/autostory/map_generators.py
gustavospiess/2021-1-JD-Eq1
9369be1342bfaeba11e95f1ec9e7fa0c0ca45f3b
[ "MIT" ]
null
null
null
src/autostory/map_generators.py
gustavospiess/2021-1-JD-Eq1
9369be1342bfaeba11e95f1ec9e7fa0c0ca45f3b
[ "MIT" ]
1
2021-03-13T19:17:14.000Z
2021-03-13T19:24:52.000Z
src/autostory/map_generators.py
gustavospiess/2021-1-JD-Eq1
9369be1342bfaeba11e95f1ec9e7fa0c0ca45f3b
[ "MIT" ]
null
null
null
from typing import NamedTuple from random import choice, randint, shuffle __doc___ = ''' This module is used to generate the graph of a game map. The graph is divided in partition in such way that to any two partitions, there are at most one edge between this two. This partitions are linked in a tree structure, inte...
29.09375
95
0.615467
394
2,793
4.215736
0.279188
0.039735
0.021674
0.036123
0.137869
0.109573
0.086695
0.086695
0.086695
0.086695
0
0.012755
0.298246
2,793
95
96
29.4
0.834694
0
0
0
1
0
0.220909
0.009667
0
0
0
0
0
1
0.027027
false
0
0.027027
0.013514
0.283784
0
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
2fa44e4e47a3f5b19e9ebbb7649647eb40eae1cf
3,833
py
Python
qa/rpc-tests/preciousblock.py
jeffontenot/bitcoin
47ca613dd53824a511c52e2a466642da27d57205
[ "MIT" ]
null
null
null
qa/rpc-tests/preciousblock.py
jeffontenot/bitcoin
47ca613dd53824a511c52e2a466642da27d57205
[ "MIT" ]
null
null
null
qa/rpc-tests/preciousblock.py
jeffontenot/bitcoin
47ca613dd53824a511c52e2a466642da27d57205
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test PreciousBlock code # from test_framework.test_framework import BitcoinTestFramework from test_framew...
43.556818
87
0.652231
497
3,833
4.967807
0.231388
0.171324
0.081004
0.058323
0.558526
0.438639
0.323613
0.26934
0.246254
0.208991
0
0.027388
0.218889
3,833
87
88
44.057471
0.797261
0.071745
0
0.27027
0
0
0.158873
0
0
0
0
0
0.27027
0
null
null
0
0.027027
null
null
0.216216
0
0
0
null
0
0
0
0
0
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
2faa6772a1c0e6ea94a99542d2afd5edcdcd5b1a
704
py
Python
pwtools/test/test_extend_array.py
elcorto/pwtools
cee068d1c7984d85e94ace243f86de350d3a1dba
[ "BSD-3-Clause" ]
41
2016-06-25T13:17:57.000Z
2022-02-24T16:08:47.000Z
pwtools/test/test_extend_array.py
elcorto/pwtools
cee068d1c7984d85e94ace243f86de350d3a1dba
[ "BSD-3-Clause" ]
4
2019-02-27T09:14:17.000Z
2021-10-30T21:12:53.000Z
pwtools/test/test_extend_array.py
elcorto/pwtools
cee068d1c7984d85e94ace243f86de350d3a1dba
[ "BSD-3-Clause" ]
9
2017-06-01T12:57:57.000Z
2022-02-20T01:52:03.000Z
import numpy as np import os from pwtools import num, common rand = np.random.rand def equal(a,b): assert (a == b).all() def test_extend_array(): arr = rand(3,3) nrep = 5 a0 = num.extend_array(arr, nrep, axis=0) a1 = num.extend_array(arr, nrep, axis=1) a2 = num.extend_array(arr, nrep, axis=2) ...
27.076923
56
0.588068
119
704
3.428571
0.336134
0.134804
0.171569
0.166667
0.25
0.25
0.127451
0
0
0
0
0.062264
0.247159
704
25
57
28.16
0.707547
0.045455
0
0
0
0
0
0
0
0
0
0
0.238095
1
0.095238
false
0
0.142857
0
0.238095
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
2faf59679af175d36c0529fd1ae4df2470a26189
6,086
py
Python
main/urls.py
rajeshgupta14/pathscriptfinal
1a0b933d00b902588dfe30b9bea62c3e0c7ec4a2
[ "Apache-2.0" ]
null
null
null
main/urls.py
rajeshgupta14/pathscriptfinal
1a0b933d00b902588dfe30b9bea62c3e0c7ec4a2
[ "Apache-2.0" ]
null
null
null
main/urls.py
rajeshgupta14/pathscriptfinal
1a0b933d00b902588dfe30b9bea62c3e0c7ec4a2
[ "Apache-2.0" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
66.879121
127
0.678935
903
6,086
4.467331
0.168328
0.060982
0.035697
0.044621
0.516361
0.430342
0.391671
0.230788
0.212196
0.114031
0
0.006917
0.073612
6,086
91
128
66.879121
0.708585
0.116168
0
0.032258
0
0.193548
0.546555
0.463128
0
0
0
0
0
1
0
false
0
0.112903
0
0.112903
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2fb07341967c6d967f2c52cfdf49a1ee063767d8
832
py
Python
Day-6/problem1.py
sanjusci/10-Days-of-Statistics
2dd34b85f7f8c61d4367f993eba106adef0f562b
[ "MIT" ]
1
2019-07-25T16:38:10.000Z
2019-07-25T16:38:10.000Z
Day-6/problem1.py
sanjusci/10-Days-of-Statistics
2dd34b85f7f8c61d4367f993eba106adef0f562b
[ "MIT" ]
null
null
null
Day-6/problem1.py
sanjusci/10-Days-of-Statistics
2dd34b85f7f8c61d4367f993eba106adef0f562b
[ "MIT" ]
null
null
null
# Day 6: The Central Limit Theorem I # Enter your code here. Read input from STDIN. Print output to STDOUT __author__ = "Sanju Sci" __email__ = "sanju.sci9@gmail.com" __copyright__ = "Copyright 2019" import math class Day6(object): e = 2.71829 def __init__(self): pass # Define functions ...
20.8
74
0.63101
121
832
4.024793
0.578512
0.082136
0.092402
0.135524
0.141684
0
0
0
0
0
0
0.03645
0.241587
832
39
75
21.333333
0.735341
0.200721
0
0
0
0
0.086626
0
0
0
0
0.025641
0
1
0.1
false
0.05
0.05
0.05
0.3
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
1
0
0
0
0
0
0
0
0
0
0
1
2fb15372eb68e66f6cbbed99caff5226197f7aac
304
py
Python
net/pacemaker1/files/extra-patch-cts_remote.py
egypcio/freebsd-ports
ad435aba14f027ef6976fd9e94eb85ed18fef874
[ "BSD-2-Clause" ]
7
2017-03-22T19:01:24.000Z
2021-11-02T13:22:54.000Z
net/pacemaker1/files/extra-patch-cts_remote.py
egypcio/freebsd-ports
ad435aba14f027ef6976fd9e94eb85ed18fef874
[ "BSD-2-Clause" ]
null
null
null
net/pacemaker1/files/extra-patch-cts_remote.py
egypcio/freebsd-ports
ad435aba14f027ef6976fd9e94eb85ed18fef874
[ "BSD-2-Clause" ]
4
2017-04-28T16:18:02.000Z
2019-10-31T13:27:16.000Z
--- cts/remote.py.orig 2020-02-07 14:06:22 UTC +++ cts/remote.py @@ -125,7 +125,7 @@ class RemoteExec: ''' def __init__(self, rsh, silent=False): - self.async = [] + self.async_calls = [] self.rsh = rsh self.silent = silent self.logger = LogFactory()
25.333333
46
0.542763
40
304
4
0.625
0.1125
0.1375
0
0
0
0
0
0
0
0
0.101852
0.289474
304
11
47
27.636364
0.638889
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2fb1ddb4b09b4965223d7029ce31ccfa8f4df1e8
2,937
py
Python
bridges/data_src_dependent/song.py
krs-world/bridges-python
2d3a22d637fd75a897cc9f6b2619eeebad5942bb
[ "MIT" ]
1
2020-09-21T15:13:27.000Z
2020-09-21T15:13:27.000Z
bridges/data_src_dependent/song.py
BridgesUNCC/bridges-python
bf1f9697a45bf6d7748f22dbbcbff4c20cfb2229
[ "MIT" ]
57
2019-07-02T21:30:28.000Z
2021-11-05T23:27:50.000Z
bridges/data_src_dependent/song.py
krs-world/bridges-python
2d3a22d637fd75a897cc9f6b2619eeebad5942bb
[ "MIT" ]
3
2018-02-06T20:33:41.000Z
2019-01-02T23:59:36.000Z
class Song: """ @brief A Song object, used along with the Songs data source. This is a convenience class provided for users who wish to use this data source as part of their application. It provides an API that makes it easy to access the attributes of this data set. This object is generally...
23.685484
116
0.534219
344
2,937
4.444767
0.252907
0.100719
0.049052
0.044474
0.090255
0.031393
0
0
0
0
0
0.005537
0.385087
2,937
123
117
23.878049
0.841085
0.445012
0
0.135135
0
0
0
0
0
0
0
0
0
1
0.297297
false
0
0
0
0.459459
0
0
0
0
null
0
0
0
0
0
0
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
2fb51b44bf22ffe65cf502156a037a1148f74a70
15,791
py
Python
titanic/titanic.py
cjporteo/kaggle-competitions
8bf691a042062d6b445ba6fb4f4a8d8fe6b3189b
[ "Unlicense" ]
null
null
null
titanic/titanic.py
cjporteo/kaggle-competitions
8bf691a042062d6b445ba6fb4f4a8d8fe6b3189b
[ "Unlicense" ]
null
null
null
titanic/titanic.py
cjporteo/kaggle-competitions
8bf691a042062d6b445ba6fb4f4a8d8fe6b3189b
[ "Unlicense" ]
null
null
null
import warnings warnings.filterwarnings('ignore') import pandas as pd import numpy as np pd.set_option('display.max_rows', 5000) pd.set_option('display.max_columns', 5000) from collections import Counter, defaultdict from scipy.stats import skew from scipy.special import boxcox1p from scipy.stats import boxcox_no...
41.885942
148
0.661959
2,206
15,791
4.630553
0.24252
0.010573
0.005482
0.007538
0.219383
0.164366
0.111894
0.075967
0.047283
0.031424
0
0.019776
0.218669
15,791
376
149
41.99734
0.808154
0.343233
0
0.283105
0
0
0.164707
0.009748
0
0
0
0
0
1
0.03653
false
0.073059
0.050228
0
0.173516
0.013699
0
0
0
null
0
0
0
0
0
0
0
0
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
2fb9060ffe50f24f290c5cd7b51d835fd0233597
556
py
Python
save/MacroFuegoRunsList.py
tbird20d/fserver
34433397f09374ad87b6be33a4036a73b16b7b07
[ "MIT" ]
null
null
null
save/MacroFuegoRunsList.py
tbird20d/fserver
34433397f09374ad87b6be33a4036a73b16b7b07
[ "MIT" ]
null
null
null
save/MacroFuegoRunsList.py
tbird20d/fserver
34433397f09374ad87b6be33a4036a73b16b7b07
[ "MIT" ]
null
null
null
""" MacroFuegoRunList - show a list of test runs """ import os def main(req, args=""): full_dirlist = os.listdir(req.config.files_dir+os.sep+"runs") full_dirlist.sort() # each run is it's own directory dirlist = full_dirlist # FIXTHIS - look for test run json file if not dirlist: return req.html_erro...
21.384615
81
0.620504
85
556
3.952941
0.564706
0.098214
0.083333
0
0
0
0
0
0
0
0
0
0.219424
556
25
82
22.24
0.774194
0.122302
0
0
0
0
0.134259
0
0
0
0
0
0
0
null
null
0
0.076923
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
2fba991af0ff31f29f819f4906492e2c14caf4ae
4,611
py
Python
alphamind/portfolio/meanvariancebuilder.py
rongliang-tech/alpha-mind
39f720974c637d17e185e445dc05c9fc4863a241
[ "MIT" ]
186
2017-11-27T01:26:44.000Z
2022-03-28T16:11:33.000Z
alphamind/portfolio/meanvariancebuilder.py
rongliang-tech/alpha-mind
39f720974c637d17e185e445dc05c9fc4863a241
[ "MIT" ]
2
2017-12-19T02:47:36.000Z
2021-01-09T05:25:18.000Z
alphamind/portfolio/meanvariancebuilder.py
vishalbelsare/alpha-mind
9b7a23bc3354103f16e46ea31fd1ba6c7b69e0ae
[ "MIT" ]
65
2017-11-27T01:26:47.000Z
2022-03-17T10:50:52.000Z
# -*- coding: utf-8 -*- """ Created on 2017-6-27 @author: cheng.li """ from typing import Dict from typing import Optional from typing import Tuple from typing import Union import numpy as np from alphamind.portfolio.optimizers import ( QuadraticOptimizer, TargetVolOptimizer ) from alphamind.exceptions.excep...
37.185484
98
0.539362
472
4,611
5.07839
0.184322
0.067584
0.033375
0.043805
0.687109
0.632874
0.601585
0.601585
0.601585
0.601585
0
0.006852
0.366949
4,611
123
99
37.487805
0.81432
0.013446
0
0.489796
0
0
0.034133
0
0
0
0
0
0
1
0.040816
false
0
0.071429
0
0.153061
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2fca3e8b11793d903b46b0d6f05f5c243c33fbd0
903
py
Python
custom_auth/custom_login/my_user_manager.py
farhadmpr/DjangoMobileLogin
8d1067dea428668a45bd48b6f7a32c7f7a3639d9
[ "MIT" ]
null
null
null
custom_auth/custom_login/my_user_manager.py
farhadmpr/DjangoMobileLogin
8d1067dea428668a45bd48b6f7a32c7f7a3639d9
[ "MIT" ]
null
null
null
custom_auth/custom_login/my_user_manager.py
farhadmpr/DjangoMobileLogin
8d1067dea428668a45bd48b6f7a32c7f7a3639d9
[ "MIT" ]
null
null
null
from django.contrib.auth.base_user import BaseUserManager class MyUserManager(BaseUserManager): def create_user(self, mobile, password=None, **other_fields): if not mobile: raise ValueError('mobile is required') user = self.model(mobile=mobile, **other_fields) user.set_password...
36.12
70
0.682171
110
903
5.409091
0.327273
0.166387
0.105882
0.115966
0.406723
0.255462
0.144538
0.144538
0.144538
0
0
0
0.220377
903
24
71
37.625
0.84517
0
0
0
0
0
0.140642
0
0
0
0
0
0
1
0.111111
false
0.222222
0.055556
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
1
0
0
0
0
0
1
2fd73e7166b19f3341a387049800c4d668484343
7,202
py
Python
ch06/ch0602_recurrent_neural_network.py
zhuyuanxiang/deep-learning-with-python-notebooks
6b6b5670193f5a26321c36de3b547203e30dc8c7
[ "MIT" ]
6
2019-11-30T01:34:24.000Z
2021-11-28T10:53:22.000Z
ch06/ch0602_recurrent_neural_network.py
zhuyuanxiang/deep-learning-with-python-notebooks
6b6b5670193f5a26321c36de3b547203e30dc8c7
[ "MIT" ]
null
null
null
ch06/ch0602_recurrent_neural_network.py
zhuyuanxiang/deep-learning-with-python-notebooks
6b6b5670193f5a26321c36de3b547203e30dc8c7
[ "MIT" ]
4
2020-04-11T10:46:17.000Z
2021-11-09T08:04:55.000Z
# -*- encoding: utf-8 -*- """ @Author : zYx.Tom @Contact : 526614962@qq.com @site : https://zhuyuanxiang.github.io --------------------------- @Software : PyCharm @Project : deep-learning-with-python-notebooks @File : ch0602_recurrent_neural_network.py @Version : v0.1 @Time ...
35.303922
107
0.66301
917
7,202
5.039258
0.304253
0.036356
0.022506
0.02467
0.40251
0.35858
0.346029
0.346029
0.346029
0.336724
0
0.036783
0.169536
7,202
203
108
35.477833
0.735663
0.221605
0
0.373134
0
0
0.031795
0
0
0
0
0
0.014925
1
0.059701
false
0.059701
0.11194
0.007463
0.19403
0.044776
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2fde142f5fb8f6e3d0bdf34eef43beaad4a42352
66,632
py
Python
Classes/QAData.py
usgsdsm/qrevpy
e9f1586aa5ace81d4dc76134bacdd08e3007b82a
[ "CC0-1.0" ]
null
null
null
Classes/QAData.py
usgsdsm/qrevpy
e9f1586aa5ace81d4dc76134bacdd08e3007b82a
[ "CC0-1.0" ]
null
null
null
Classes/QAData.py
usgsdsm/qrevpy
e9f1586aa5ace81d4dc76134bacdd08e3007b82a
[ "CC0-1.0" ]
null
null
null
import numpy as np from Classes.Uncertainty import Uncertainty from Classes.QComp import QComp class QAData(object): """Evaluates and stores quality assurance characteristics and messages. Attributes ---------- q_run_threshold_caution: int Caution threshold for interpolated discharge for a ru...
46.923944
120
0.511871
7,263
66,632
4.522924
0.066501
0.03239
0.007884
0.012938
0.563288
0.487032
0.443988
0.388128
0.333577
0.275464
0
0.016279
0.387832
66,632
1,419
121
46.957012
0.789066
0.136376
0
0.339744
0
0
0.14703
0.002055
0
0
0
0.001409
0
1
0.014957
false
0.082265
0.003205
0
0.021368
0
0
0
0
null
0
0
0
0
0
0
0
0
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
2fe09500932be461c7c334e745fb8d2139e734b4
21,946
py
Python
migrations/sqlite_versions/2020-07-10_b7fc1ab24c92_add_checkconstraints_for_non_nullable_.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
4
2021-05-14T08:22:47.000Z
2022-02-04T19:48:25.000Z
migrations/sqlite_versions/2020-07-10_b7fc1ab24c92_add_checkconstraints_for_non_nullable_.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
1,083
2019-11-06T17:01:07.000Z
2022-03-25T10:26:51.000Z
migrations/sqlite_versions/2020-07-10_b7fc1ab24c92_add_checkconstraints_for_non_nullable_.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
4
2019-11-06T12:00:45.000Z
2021-06-09T04:18:28.000Z
"""Add CheckConstraints for non-nullable string cols Revision ID: b7fc1ab24c92 Revises: d5d740c76aa3 Create Date: 2020-07-10 13:24:56.007611 """ from datetime import datetime from uuid import uuid4 from alembic import op from geoalchemy2 import Geometry from sqlalchemy import DATE, Column, DateTime, ForeignKey, Inte...
39.974499
100
0.679076
2,420
21,946
5.780165
0.089669
0.044038
0.033028
0.048041
0.658993
0.643266
0.632256
0.588004
0.410137
0.3503
0
0.010953
0.213752
21,946
548
101
40.047445
0.79971
0.008111
0
0.315421
0
0
0.128125
0.034743
0
0
0
0
0
1
0.007009
false
0
0.030374
0
0.504673
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
2fe3295a92b86d4704196e5665468fb882524594
2,058
py
Python
utils/load_custom_datasets.py
chansoopark98/MobileNet-SSD
4f540b43f2331224eeae5ed8d53de8675f15be4f
[ "MIT" ]
2
2021-06-19T15:47:14.000Z
2021-06-19T16:24:46.000Z
utils/load_custom_datasets.py
chansoopark98/MobileNet-SSD
4f540b43f2331224eeae5ed8d53de8675f15be4f
[ "MIT" ]
null
null
null
utils/load_custom_datasets.py
chansoopark98/MobileNet-SSD
4f540b43f2331224eeae5ed8d53de8675f15be4f
[ "MIT" ]
null
null
null
from tensorflow.keras.utils import Sequence import os import pandas as pd import random import numpy as np class DataGenerator(Sequence): def __init__(self, path_args, batch_size: int, shuffle: bool, mode: str): self.x_img_path = './train...
28.191781
81
0.594752
292
2,058
3.976027
0.297945
0.060293
0.089578
0.031008
0.14298
0.14298
0.14298
0.14298
0.14298
0.14298
0
0.003458
0.297376
2,058
73
82
28.191781
0.799447
0.072886
0
0
0
0
0.008408
0
0
0
0
0.013699
0
1
0.163265
false
0
0.102041
0.081633
0.387755
0
0
0
0
null
0
0
0
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
2fe5620fd96d53f737b1525609f9b68ff59b6e49
75,321
py
Python
tests/unit/test_translator.py
flatironhealth/aws-remediation-framework
7b3e4016a891f25b7bee6d00ea003ca53d068f59
[ "BSD-3-Clause" ]
22
2020-08-09T18:55:31.000Z
2022-02-28T16:45:40.000Z
tests/unit/test_translator.py
flatironhealth/aws-remediation-framework
7b3e4016a891f25b7bee6d00ea003ca53d068f59
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_translator.py
flatironhealth/aws-remediation-framework
7b3e4016a891f25b7bee6d00ea003ca53d068f59
[ "BSD-3-Clause" ]
6
2020-08-09T18:55:32.000Z
2022-02-06T01:22:27.000Z
import sys import os from importlib import reload from nose.tools import assert_equal, assert_true, assert_false from unittest import TestCase, mock from unittest.mock import MagicMock from resources.event_translator.main import translate_event class TestTranslator(TestCase): def test_sqs_SetQueueAttributes_tra...
45.42883
259
0.389427
4,430
75,321
6.589165
0.180587
0.017061
0.016547
0.016033
0.674032
0.631586
0.610791
0.600445
0.582151
0.548852
0
0.130998
0.482309
75,321
1,657
260
45.456246
0.617598
0
0
0.614532
0
0.008005
0.390542
0.109345
0
0
0
0
0.0117
0
null
null
0.003079
0.00431
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
2fe8c3186d3654e1f28a27ab2208939111f464b6
920
py
Python
blog/views/user.py
maxis1314/pyutils
7e0666c650209155b3da186d09c54cf14825df1e
[ "Apache-2.0" ]
2
2017-06-12T07:58:51.000Z
2018-03-08T09:43:35.000Z
blog/views/user.py
maxis1314/pyutils
7e0666c650209155b3da186d09c54cf14825df1e
[ "Apache-2.0" ]
1
2017-06-10T02:05:52.000Z
2017-07-04T03:57:28.000Z
blog/views/user.py
maxis1314/pyutils
7e0666c650209155b3da186d09c54cf14825df1e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from flask import Flask,request,session,g,redirect,url_for,Blueprint from flask import abort,render_template,flash from helpers import getAvatar import config #from .base import BaseHandler import base config = config.rec() user = Blueprint('user', __name__) #class LoginHandler(BaseHandler): @user....
24.864865
69
0.673913
105
920
5.838095
0.457143
0.091354
0.04894
0.078303
0
0
0
0
0
0
0
0.001342
0.190217
920
36
70
25.555556
0.821477
0.116304
0
0.16
0
0
0.08798
0
0
0
0
0
0
1
0.08
false
0.08
0.2
0
0.48
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2ff6302b5a9fd1c53009e3fda5ea5d2e828e5ac6
4,271
py
Python
tests/test_hashlib_scrypt.py
isabella232/pynacl
b3f6c320569d858ba61d4bdf2ac788564528c1c9
[ "Apache-2.0" ]
null
null
null
tests/test_hashlib_scrypt.py
isabella232/pynacl
b3f6c320569d858ba61d4bdf2ac788564528c1c9
[ "Apache-2.0" ]
2
2022-03-01T00:38:29.000Z
2022-03-04T00:34:25.000Z
tests/test_hashlib_scrypt.py
isabella232/pynacl
b3f6c320569d858ba61d4bdf2ac788564528c1c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Donald Stufft and individual contributors # # 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...
29.659722
79
0.574807
831
4,271
2.937425
0.34296
0.02458
0.027857
0.011061
0.490782
0.490782
0.4195
0.4195
0.4195
0.4195
0
0.254623
0.341606
4,271
143
80
29.867133
0.613442
0.404355
0
0.318681
0
0
0.365308
0
0
0
0
0
0.010989
1
0.021978
false
0.043956
0.065934
0
0.087912
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
2ff88369e5473a0a00e710119d771db960e26192
2,381
py
Python
python/runtime/pai/cluster_conf.py
lhw362950217/sqlflow
a96cb7967a4b9cc82620b0286804b17e6d879f2c
[ "Apache-2.0" ]
2
2020-08-09T14:30:15.000Z
2020-09-20T16:33:30.000Z
python/runtime/pai/cluster_conf.py
lhw362950217/sqlflow
a96cb7967a4b9cc82620b0286804b17e6d879f2c
[ "Apache-2.0" ]
9
2020-08-09T11:12:05.000Z
2020-10-14T00:19:57.000Z
python/runtime/pai/cluster_conf.py
lhw362950217/sqlflow
a96cb7967a4b9cc82620b0286804b17e6d879f2c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The SQLFlow Authors. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
34.014286
76
0.639227
320
2,381
4.640625
0.371875
0.094276
0.121212
0.072727
0.146128
0
0
0
0
0
0
0.016667
0.244015
2,381
69
77
34.507246
0.808333
0.319194
0
0
0
0
0.294564
0
0
0
0
0.014493
0
1
0.023256
false
0
0.023256
0
0.069767
0
0
0
0
null
0
0
0
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
2fff1360e980f9995a7efc38b1e8412d04ae2a78
438
py
Python
tests/conftest.py
f213/richtypo.py
717cf4b640289c410b5ecddbd240d7cc818b8b68
[ "MIT" ]
9
2017-01-12T16:52:35.000Z
2020-11-08T19:08:34.000Z
tests/conftest.py
f213/richtypo.py
717cf4b640289c410b5ecddbd240d7cc818b8b68
[ "MIT" ]
115
2018-06-12T20:48:09.000Z
2020-07-29T02:14:58.000Z
tests/conftest.py
f213/richtypo.py
717cf4b640289c410b5ecddbd240d7cc818b8b68
[ "MIT" ]
1
2022-02-10T06:40:58.000Z
2022-02-10T06:40:58.000Z
def pytest_generate_tests(metafunc): """ Generate tests for ruledefs in yaml files according to their specs defined in-place """ if 'rule_name' in metafunc.fixturenames: from richtypo.rules import load_from_file rules = [] for ruledef in ['generic', 'ru', 'en']: rule...
33.692308
87
0.648402
56
438
4.928571
0.553571
0.086957
0.086957
0
0
0
0
0
0
0
0
0
0.246575
438
12
88
36.5
0.836364
0.189498
0
0
1
0
0.10355
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
640fda8c635790da1f5a203f395e616bfe1855de
544
py
Python
data/migrations/0024_job_vm_volume_name.py
Duke-GCB/bespin-api
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
[ "MIT" ]
null
null
null
data/migrations/0024_job_vm_volume_name.py
Duke-GCB/bespin-api
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
[ "MIT" ]
137
2016-12-09T18:59:45.000Z
2021-06-10T18:55:47.000Z
data/migrations/0024_job_vm_volume_name.py
Duke-GCB/bespin-api
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
[ "MIT" ]
3
2017-11-14T16:05:58.000Z
2018-12-28T18:07:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-08-04 19:25 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data', '0023_auto_20170801_1925'), ] operations = [ migrations.AddField( ...
25.904762
143
0.641544
69
544
4.869565
0.782609
0
0
0
0
0
0
0
0
0
0
0.087591
0.244485
544
20
144
27.2
0.729927
0.125
0
0
1
0
0.209302
0.048626
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
6419469a612798f82999a23b2061a7946d98c3a8
456
py
Python
setup.py
philbarker/ocxmd
c6374a24e9616bed647020bb9cfebfe1794523b9
[ "Apache-2.0" ]
8
2019-01-26T17:39:18.000Z
2022-01-21T09:34:41.000Z
setup.py
philbarker/ocxmd
c6374a24e9616bed647020bb9cfebfe1794523b9
[ "Apache-2.0" ]
4
2019-02-01T17:18:32.000Z
2019-08-16T14:03:23.000Z
setup.py
philbarker/ocxmd
c6374a24e9616bed647020bb9cfebfe1794523b9
[ "Apache-2.0" ]
1
2020-02-20T14:11:33.000Z
2020-02-20T14:11:33.000Z
from setuptools import setup setup( name="ocxmd", version="0.2", py_modules=["ocxmd"], install_requires=["markdown>=3.0", "PyYAML>=3.13"], author="Phil Barker", author_email="phil.barker@pjjk.co.uk", url="https://github.com/philbarker/ocxmd", description="A python markdown extension to ...
32.571429
158
0.686404
67
456
4.626866
0.80597
0.064516
0
0
0
0
0
0
0
0
0
0.02122
0.173246
456
13
159
35.076923
0.801061
0
0
0
0
0.083333
0.552632
0.048246
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
641dc958047ee373775f32224fe45fa3827715b3
3,690
py
Python
Code/Client/ui_face.py
jhuboo/sparky
72839101617c883e37afad45eb41e69a417dc10f
[ "MIT" ]
3
2021-12-08T23:08:14.000Z
2021-12-10T09:42:24.000Z
Code/Client/ui_face.py
jhuboo/sparky
72839101617c883e37afad45eb41e69a417dc10f
[ "MIT" ]
null
null
null
Code/Client/ui_face.py
jhuboo/sparky
72839101617c883e37afad45eb41e69a417dc10f
[ "MIT" ]
1
2022-03-19T18:39:20.000Z
2022-03-19T18:39:20.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\Freenove\Desktop\树莓派六足机器人\界面UI\face.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are do...
30.75
102
0.671003
490
3,690
4.985714
0.302041
0.062628
0.007368
0.0307
0.304544
0.264429
0.231682
0.231682
0.150225
0.150225
0
0.05647
0.160163
3,690
119
103
31.008403
0.731849
0.08374
0
0.457143
1
0.009524
0.3445
0.13697
0
0
0
0
0
1
0.019048
false
0.009524
0.009524
0
0.038095
0
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
641fcf13a8199dd5459829762356fb23520146e9
679
py
Python
Drawing Book/Drawing Book.py
saurav0001kumar/HackerRank
38daaaf1e3f7b230ca70005480fa2f3e2c7a12be
[ "MIT" ]
1
2020-07-03T02:07:30.000Z
2020-07-03T02:07:30.000Z
Drawing Book/Drawing Book.py
saurav0001kumar/HackerRank
38daaaf1e3f7b230ca70005480fa2f3e2c7a12be
[ "MIT" ]
null
null
null
Drawing Book/Drawing Book.py
saurav0001kumar/HackerRank
38daaaf1e3f7b230ca70005480fa2f3e2c7a12be
[ "MIT" ]
null
null
null
#!/bin/python3 import os import sys # # Complete the pageCount function below. # def pageCount(n, p): t1=0 t2=0 if p==1 or p==n: return(0) else: i=2 while i<=p: if i%2==0: t1+=1 i+=1 i=n-1 while i>=p: ...
13.857143
47
0.428571
94
679
3
0.43617
0.021277
0.078014
0.06383
0.085106
0.085106
0.085106
0
0
0
0
0.058824
0.424153
679
48
48
14.145833
0.662404
0.108984
0
0.068966
0
0
0.036789
0
0
0
0
0.020833
0
1
0.034483
false
0
0.068966
0
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6421abfce3e95035b0536529c7f9fd8a59108f34
1,877
py
Python
luracoin/helpers.py
maguayo/luracoin-python
9ce1ef6e048d22ca58d79cca244e350a41bf0d63
[ "MIT" ]
12
2018-01-25T09:50:55.000Z
2021-12-11T09:55:04.000Z
luracoin/helpers.py
maguayo/luracoin-python
9ce1ef6e048d22ca58d79cca244e350a41bf0d63
[ "MIT" ]
3
2021-06-12T13:01:41.000Z
2021-11-25T19:43:14.000Z
luracoin/helpers.py
maguayo/luracoin-python
9ce1ef6e048d22ca58d79cca244e350a41bf0d63
[ "MIT" ]
6
2018-08-31T11:10:09.000Z
2021-06-17T09:23:52.000Z
import os import ecdsa import binascii import hashlib from typing import Union from luracoin.config import Config def bits_to_target(bits: bytes) -> hex: """ The first byte is the exponent and the other three bytes are the coefficient. Example: 0x1d00ffff => 00000000ffff00000000000000000000000...
29.793651
78
0.687267
278
1,877
4.532374
0.42446
0.055556
0.047619
0.014286
0.025397
0.025397
0
0
0
0
0
0.054422
0.216835
1,877
62
79
30.274194
0.802721
0.312733
0
0
0
0
0.00639
0
0
0
0
0
0
1
0.1875
false
0
0.1875
0.0625
0.59375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6427a547be426a6fb4356da19143c33752106378
1,835
py
Python
xml2ES.py
Fadavvi/XML2Elastic
cbb533f33e2eb588cf1fd89c39158085baa42ddf
[ "Apache-2.0" ]
4
2019-08-04T02:32:56.000Z
2021-12-08T15:36:29.000Z
xml2ES.py
Fadavvi/XML2Elastic
cbb533f33e2eb588cf1fd89c39158085baa42ddf
[ "Apache-2.0" ]
null
null
null
xml2ES.py
Fadavvi/XML2Elastic
cbb533f33e2eb588cf1fd89c39158085baa42ddf
[ "Apache-2.0" ]
null
null
null
import xmltodict import json from elasticsearch import Elasticsearch from elasticsearch.connection import create_ssl_context import sys ##By: Milad Fadavvi def Connect2ES(ip='127.0.0.1',port='9200',user="",password="",https=False,CertPath="",ES_Index='reports',Data=""): ## Connection to Elastic Search (htt...
34.622642
169
0.614169
246
1,835
4.52439
0.410569
0.081761
0.032345
0.034142
0.179695
0.179695
0.179695
0.179695
0.179695
0.12938
0
0.031272
0.233243
1,835
52
170
35.288462
0.759773
0.190736
0
0.216216
0
0
0.089185
0.024579
0
0
0
0
0
1
0.054054
false
0.081081
0.135135
0
0.216216
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
642de0bcb204705d3d21c9dd85614a96bebd929b
5,021
py
Python
python/MarkovChain.py
alessandrobondielli/alessandrobondielli.github.com
19bc59d73b77aa9036e273cc2d211d77fed7e5e5
[ "MIT" ]
null
null
null
python/MarkovChain.py
alessandrobondielli/alessandrobondielli.github.com
19bc59d73b77aa9036e273cc2d211d77fed7e5e5
[ "MIT" ]
null
null
null
python/MarkovChain.py
alessandrobondielli/alessandrobondielli.github.com
19bc59d73b77aa9036e273cc2d211d77fed7e5e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- import matplotlib.pyplot as plt import numpy.random as random class MarkovChain: """Simple Markov Chain Model. Parameters ---------- n : int Number of states. p : list, len (n) Base probabilities. T : list of list, shape (n, n) ...
30.065868
95
0.561442
662
5,021
4.200906
0.273414
0.048544
0.031643
0.032362
0.257102
0.235886
0.231571
0.205681
0.205681
0.205681
0
0.025043
0.308106
5,021
166
96
30.246988
0.775475
0.02609
0
0.125
0
0
0.07149
0
0
0
0
0
0.053571
0
null
null
0
0.035714
null
null
0.053571
0
0
0
null
0
0
0
0
0
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
643459f79244909ac8734abcb45f29d2e1bfa925
1,951
py
Python
tryalgo/fenwick.py
siebenbrunner/tryalgo
b519f45b6babe0cdac8bbec267941c7ec29df004
[ "MIT" ]
null
null
null
tryalgo/fenwick.py
siebenbrunner/tryalgo
b519f45b6babe0cdac8bbec267941c7ec29df004
[ "MIT" ]
null
null
null
tryalgo/fenwick.py
siebenbrunner/tryalgo
b519f45b6babe0cdac8bbec267941c7ec29df004
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """\ Fenwick tree jill-jenn vie et christoph durr - 2014-2018 """ # snip{ class Fenwick: """maintains a tree to allow quick updates and queries """ def __init__(self, t): """stores a table t and allows updates and queries of prefix sums in log...
27.871429
65
0.479754
262
1,951
3.557252
0.362595
0.015021
0.038627
0.023605
0.223176
0.133047
0.096567
0.096567
0.096567
0.05794
0
0.021703
0.385956
1,951
69
66
28.275362
0.75626
0.458739
0
0.083333
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
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
644147b1315fea93c66729fd5b0663b86c345f7e
2,755
py
Python
starfish/pipeline/registration/fourier_shift.py
Xiaojieqiu/starfish
426480fcfeda4b8b1eb9371a818ff20275ac898d
[ "MIT" ]
1
2018-10-07T03:53:43.000Z
2018-10-07T03:53:43.000Z
starfish/pipeline/registration/fourier_shift.py
Xiaojieqiu/starfish
426480fcfeda4b8b1eb9371a818ff20275ac898d
[ "MIT" ]
null
null
null
starfish/pipeline/registration/fourier_shift.py
Xiaojieqiu/starfish
426480fcfeda4b8b1eb9371a818ff20275ac898d
[ "MIT" ]
null
null
null
from typing import Union from starfish.constants import Indices from starfish.image import ImageStack from starfish.util.argparse import FsExistsType from ._base import RegistrationAlgorithmBase class FourierShiftRegistration(RegistrationAlgorithmBase): """ Implements fourier shift registration. TODO: (dgan...
39.357143
101
0.666062
341
2,755
5.249267
0.43695
0.06257
0.030168
0.02514
0
0
0
0
0
0
0
0.001435
0.241016
2,755
69
102
39.927536
0.854615
0.175318
0
0
0
0
0.059455
0
0
0
0
0.028986
0.02381
1
0.119048
false
0
0.190476
0
0.404762
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ff22309eac715fea8ae3bfe16985113c59ec5383
639
py
Python
ioflo/base/__init__.py
BradyHammond/ioflo
177ac656d7c4ff801aebb0d8b401db365a5248ce
[ "ECL-2.0", "Apache-2.0", "MIT" ]
128
2015-01-14T12:26:56.000Z
2021-11-06T07:09:29.000Z
ioflo/base/__init__.py
BradyHammond/ioflo
177ac656d7c4ff801aebb0d8b401db365a5248ce
[ "ECL-2.0", "Apache-2.0", "MIT" ]
17
2015-01-28T18:26:50.000Z
2020-11-19T22:08:06.000Z
ioflo/base/__init__.py
BradyHammond/ioflo
177ac656d7c4ff801aebb0d8b401db365a5248ce
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2015-01-27T23:28:31.000Z
2021-05-04T16:37:30.000Z
""" base package """ #print("Package at {0}".format(__path__[0])) import importlib _modules = ['globaling', 'excepting', 'interfacing', 'registering', 'storing', 'skedding', 'tasking', 'framing', 'logging', 'serving', 'monitoring', 'acting', 'poking', 'goaling', 'needing', 'traiting'...
30.428571
76
0.625978
65
639
6.046154
0.769231
0.035623
0
0
0
0
0
0
0
0
0
0.00578
0.187793
639
20
77
31.95
0.751445
0.087637
0
0
0
0
0.34904
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ff29165bd34534d117f33755f89f2cc1496d9969
2,713
py
Python
scripts/tutorials/generate_database.py
cfontanive/SIMPLE-db
92dd86c043c5cf610e3097928936ed15c72f7697
[ "BSD-3-Clause" ]
6
2020-10-21T05:56:25.000Z
2021-09-25T00:06:46.000Z
scripts/tutorials/generate_database.py
cfontanive/SIMPLE-db
92dd86c043c5cf610e3097928936ed15c72f7697
[ "BSD-3-Clause" ]
130
2020-10-27T20:25:22.000Z
2022-03-15T21:23:23.000Z
scripts/tutorials/generate_database.py
cfontanive/SIMPLE-db
92dd86c043c5cf610e3097928936ed15c72f7697
[ "BSD-3-Clause" ]
8
2020-10-27T19:54:01.000Z
2021-11-19T18:59:47.000Z
# Script to generate database from JSON contents # This gets run automatically with Github Actions import argparse import sys import os from astrodbkit2.astrodb import create_database, Database sys.path.append(os.getcwd()) # hack to be able to discover simple from simple.schema import * # Location of source data DB_...
31.546512
94
0.704386
339
2,713
5.489676
0.40118
0.163353
0.077378
0.045137
0.094573
0.094573
0.063407
0.063407
0.063407
0.063407
0
0.002326
0.207519
2,713
85
95
31.917647
0.863256
0.276447
0
0.12766
1
0
0.168638
0
0
0
0
0
0
1
0.06383
false
0.021277
0.106383
0
0.170213
0.021277
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
ff2c80e712a4812f96fe034e68b3cc76d6404036
927
py
Python
Course-Work/week_5/Money Change Again.py
TSG405/Algorithmic-Toolbox-UC-San-Diego
ff9361dc69a3c3dd787f78956727a6ff38d7ff28
[ "BSD-3-Clause" ]
1
2021-06-18T06:47:19.000Z
2021-06-18T06:47:19.000Z
Course-Work/week_5/Money Change Again.py
TSG405/Algorithmic-Toolbox-UC-San-Diego
ff9361dc69a3c3dd787f78956727a6ff38d7ff28
[ "BSD-3-Clause" ]
null
null
null
Course-Work/week_5/Money Change Again.py
TSG405/Algorithmic-Toolbox-UC-San-Diego
ff9361dc69a3c3dd787f78956727a6ff38d7ff28
[ "BSD-3-Clause" ]
2
2021-06-18T15:57:50.000Z
2021-06-19T09:33:02.000Z
>> import math money = int(input()) denominations = [1, 3, 4] minCoins = [0] + [math.inf]*money for i in range(1, money+1): for j in denominations: if i>=j: coins = minCoins[i-j]+1 if coins < minCoins[i]: minCoins[i] = coins print(minCoins[money]) ''' --...
14.484375
35
0.455232
170
927
2.482353
0.252941
0.028436
0.066351
0
0
0
0
0
0
0
0
0.117647
0.339806
927
63
36
14.714286
0.571895
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.076923
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