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
417ebdd6e1eb0369028fccfd1865aff2c181d128
372
py
Python
IoTFunctionApp/SignalRHttpTrigger/__init__.py
niswitze/Hot-Warm-Cold-On-Azure-IoT
8c77b7749301098c3d576a292f0f7b10b06e1c08
[ "MIT" ]
null
null
null
IoTFunctionApp/SignalRHttpTrigger/__init__.py
niswitze/Hot-Warm-Cold-On-Azure-IoT
8c77b7749301098c3d576a292f0f7b10b06e1c08
[ "MIT" ]
null
null
null
IoTFunctionApp/SignalRHttpTrigger/__init__.py
niswitze/Hot-Warm-Cold-On-Azure-IoT
8c77b7749301098c3d576a292f0f7b10b06e1c08
[ "MIT" ]
null
null
null
import logging import azure.functions as func async def main(req: func.HttpRequest, connectionInfoJson: str) -> func.HttpResponse: logging.info('Python SignalR HTTP trigger function processed a request for connection info.') headers = {'Content-type': 'application/json'} return func.HttpResponse(co...
31
97
0.763441
44
372
6.431818
0.772727
0.113074
0
0
0
0
0
0
0
0
0
0.009434
0.145161
372
11
98
33.818182
0.880503
0
0
0
0
0
0.282258
0
0
0
0
0
0
1
0
false
0
0.333333
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
41825e38306dce133c9f048759fb23cde80f9c6c
1,611
py
Python
rotv_apps/navigations/migrations/0001_initial.py
ivellios/django-rotv-apps
95aad945debd0e60d210057c0605928483e213a8
[ "MIT" ]
1
2017-12-05T13:24:23.000Z
2017-12-05T13:24:23.000Z
rotv_apps/navigations/migrations/0001_initial.py
ivellios/django-rotv-apps
95aad945debd0e60d210057c0605928483e213a8
[ "MIT" ]
9
2017-11-22T23:29:48.000Z
2022-03-11T23:11:34.000Z
rotv_apps/navigations/migrations/0001_initial.py
ivellios/django-rotv-apps
95aad945debd0e60d210057c0605928483e213a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.11 on 2016-11-22 12:30 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
43.540541
164
0.609559
173
1,611
5.543353
0.531792
0.114703
0.046924
0.045881
0
0
0
0
0
0
0
0.028736
0.243948
1,611
36
165
44.75
0.758621
0.04221
0
0
1
0
0.179221
0
0
0
0
0
0
1
0
false
0
0.107143
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
41850542e621933a0f70bcec9458e24f1e30cc6d
2,048
py
Python
src/predict.py
lwang94/sem_size_analysis
803251cdcab3d8304a365df9ac5879fcd9346270
[ "Apache-2.0" ]
2
2020-03-11T08:19:46.000Z
2021-05-25T09:14:11.000Z
src/predict.py
lwang94/sem_size_analysis
803251cdcab3d8304a365df9ac5879fcd9346270
[ "Apache-2.0" ]
1
2020-03-11T08:19:34.000Z
2020-03-11T08:19:34.000Z
src/predict.py
lwang94/sem_size_analysis
803251cdcab3d8304a365df9ac5879fcd9346270
[ "Apache-2.0" ]
1
2020-05-12T08:23:31.000Z
2020-05-12T08:23:31.000Z
"""Functions to make predictions using the deep learning model""" import numpy as np from . import config as cf from pathlib import Path import gdown from fastai.vision import load_learner from skimage import measure def fetch_learner(path=Path(__file__).parents[1], model=cf.MODEL): """ Returns learner if ...
29.257143
68
0.614258
251
2,048
4.932271
0.434263
0.029079
0.025848
0.03231
0.101777
0.061389
0.061389
0
0
0
0
0.009518
0.230469
2,048
69
69
29.681159
0.776015
0.524902
0
0.090909
0
0
0.027711
0.027711
0
0
0
0
0
1
0.136364
false
0
0.272727
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
41896f6c58bc8e5a530d69797571c60103eeb70b
3,021
py
Python
src/rprblender/utils/gl.py
Toorero/RadeonProRenderBlenderAddon
46be6f11cfb90e1bc40180213862eb9d8b623c5f
[ "Apache-2.0" ]
1
2021-03-29T05:55:49.000Z
2021-03-29T05:55:49.000Z
src/rprblender/utils/gl.py
wojtuss/RadeonProRenderBlenderAddon
5ce2b5b61de8b6b802e58756f823c662808cf08a
[ "Apache-2.0" ]
1
2021-04-03T09:39:28.000Z
2021-04-03T09:39:28.000Z
src/rprblender/utils/gl.py
wojtuss/RadeonProRenderBlenderAddon
5ce2b5b61de8b6b802e58756f823c662808cf08a
[ "Apache-2.0" ]
null
null
null
#********************************************************************** # Copyright 2020 Advanced Micro Devices, 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.o...
33.566667
105
0.62231
397
3,021
4.574307
0.357683
0.068833
0.079295
0.061674
0.289648
0.222467
0.222467
0.200441
0.167401
0.095815
0
0.01608
0.238332
3,021
89
106
33.94382
0.773142
0.241642
0
0.283333
0
0
0.044376
0.033392
0
0
0
0.011236
0
1
0.083333
false
0
0.1
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4195c579d91a58b402af6ed99d9bdcb8a20af444
1,826
py
Python
tests/tests/test_default.py
Aristotle-Metadata-Enterprises/django-garne
c8166d1146c078091edfd487a57706a279de7b63
[ "BSD-3-Clause" ]
62
2021-08-10T00:16:55.000Z
2022-03-28T01:10:13.000Z
tests/tests/test_default.py
Aristotle-Metadata-Enterprises/django-garne
c8166d1146c078091edfd487a57706a279de7b63
[ "BSD-3-Clause" ]
33
2021-01-02T01:25:15.000Z
2022-03-31T04:23:53.000Z
tests/tests/test_default.py
Aristotle-Metadata-Enterprises/django-garne
c8166d1146c078091edfd487a57706a279de7b63
[ "BSD-3-Clause" ]
2
2020-10-12T05:20:21.000Z
2022-02-28T13:55:23.000Z
from django.test import TestCase from garnett.context import set_field_language from library_app.models import DefaultBook class DefaultTestCase(TestCase): """Test setting of default on translated field""" def test_default(self): """Test that default is returned by getter""" book = DefaultBo...
40.577778
84
0.684009
220
1,826
5.522727
0.3
0.08642
0.109465
0.065844
0.492181
0.387654
0.387654
0.358848
0.297942
0.297942
0
0.011111
0.211391
1,826
44
85
41.5
0.832639
0.192771
0
0.357143
0
0
0.068846
0
0
0
0
0
0.321429
1
0.214286
false
0
0.107143
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4197bef8c3f62cb1495d1daa1658844d09af56df
383
py
Python
scripts/parse_latest.py
lucasdietrich/AVRTOS
a8a3b7890ed54fbb1bd718fd13b0eb620ecf9b13
[ "Apache-2.0" ]
3
2021-12-10T21:16:03.000Z
2022-03-20T08:09:53.000Z
scripts/parse_latest.py
Adecy/atmega328p-multithreading
b0f2da9f31fba7bcccf5f06f827af87494a0bcb3
[ "Apache-2.0" ]
null
null
null
scripts/parse_latest.py
Adecy/atmega328p-multithreading
b0f2da9f31fba7bcccf5f06f827af87494a0bcb3
[ "Apache-2.0" ]
null
null
null
import glob import os from parse_coredump_hex import parse_core from parse_ramdump import parse_ram list_of_files = glob.glob('../*.log') # * means all if need specific format then *.csv print(list_of_files) if list_of_files: latest_file = max(list_of_files, key=os.path.getmtime) # parse_ram(latest_file, l...
25.533333
86
0.759791
62
383
4.387097
0.483871
0.088235
0.161765
0
0
0
0
0
0
0
0
0
0.140992
383
15
87
25.533333
0.826748
0.258486
0
0
0
0
0.028369
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4197f1e06eb48e8fedf25a43ce6b4d2a28ce889a
3,283
py
Python
Dev/Tests/test_procedure2.py
parallaxinc/cyberbot
f7c4d355ee0310dcfef81027802cc41ac6ce90e1
[ "MIT" ]
4
2019-03-18T20:49:41.000Z
2022-03-24T01:44:36.000Z
Dev/Tests/test_procedure2.py
parallaxinc/cyberbot
f7c4d355ee0310dcfef81027802cc41ac6ce90e1
[ "MIT" ]
5
2019-06-07T18:09:27.000Z
2021-04-08T17:16:55.000Z
Dev/Tests/test_procedure2.py
parallaxinc/cyberbot
f7c4d355ee0310dcfef81027802cc41ac6ce90e1
[ "MIT" ]
null
null
null
# test_procedure_10002.py # Connect P15..P8 to P7..P0, D/A0,1 to A/D0,1 A/D2 to 2.5 V # Load micro:bit from microbit import * while True: try:i2c.read(93,1) except OSError:pass else: pin8.set_pull(pin8.PULL_UP);sleep(10) i2c.write(93,b'\0c');sleep(10) while True: try:i2c.read(93,1) except OSError:pass...
21.044872
59
0.639659
676
3,283
3.028107
0.211538
0.044455
0.024426
0.034196
0.316561
0.294089
0.266732
0.246214
0.220811
0.143625
0
0.116921
0.161133
3,283
156
60
21.044872
0.626362
0
0
0.268657
0
0
0.023712
0
0
0
0
0
0
0
null
null
0.014925
0.007463
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
41a22ab6a5cbc845d022e76dc197a907f8256fc4
310
py
Python
helloworld/tests/test_deploy.py
matthiaszimmermann/brownie-docker
4aad6d4b556b7e0cb37d8b40f60c2b5541c7a2f1
[ "Apache-2.0" ]
null
null
null
helloworld/tests/test_deploy.py
matthiaszimmermann/brownie-docker
4aad6d4b556b7e0cb37d8b40f60c2b5541c7a2f1
[ "Apache-2.0" ]
null
null
null
helloworld/tests/test_deploy.py
matthiaszimmermann/brownie-docker
4aad6d4b556b7e0cb37d8b40f60c2b5541c7a2f1
[ "Apache-2.0" ]
null
null
null
VALUE_INITIALIZED = 0 def test_owner_address(box, accounts): # verify that accounts[0] is contract owner assert accounts[0].address == box.owner() def test_value_after_contract_creation(box, accounts): # verify initialized value of box assert VALUE_INITIALIZED == box.retrieve()
25.833333
55
0.719355
40
310
5.375
0.45
0.148837
0.15814
0
0
0
0
0
0
0
0
0.012048
0.196774
310
11
56
28.181818
0.851406
0.235484
0
0
0
0
0
0
0
0
0
0
0.4
1
0.4
false
0
0
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
41a738dbb4224464e1f3a40139bf9d3dbd0630e0
1,108
py
Python
py2vega/functions/type_coercing.py
martinRenou/py2vega
fa90b2670404f510b352e8a7ff1a4353f0040852
[ "BSD-3-Clause" ]
9
2019-08-19T07:17:10.000Z
2021-03-13T21:46:32.000Z
py2vega/functions/type_coercing.py
martinRenou/py2vega
fa90b2670404f510b352e8a7ff1a4353f0040852
[ "BSD-3-Clause" ]
16
2019-08-19T12:13:07.000Z
2021-03-03T08:32:24.000Z
py2vega/functions/type_coercing.py
martinRenou/py2vega
fa90b2670404f510b352e8a7ff1a4353f0040852
[ "BSD-3-Clause" ]
3
2019-08-19T07:17:16.000Z
2020-10-15T17:07:05.000Z
"""Module that implements mocking Vega type coercing functions.""" type_coercing_functions = ['toBoolean', 'toDate', 'toNumber', 'toString'] error_message = ' is a mocking function that is not supposed to be called directly' def toBoolean(value): """Coerce the input value to a string. None values and empty stri...
36.933333
113
0.733755
155
1,108
5.2
0.374194
0.074442
0.069479
0.094293
0.41067
0.41067
0.41067
0.343672
0.343672
0.294045
0
0
0.181408
1,108
29
114
38.206897
0.888644
0.536101
0
0
0
0
0.267368
0
0
0
0
0
0
1
0.4
false
0
0
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
41a74400b4de35df5aeeefe5d76a35e9bb6146d7
2,084
py
Python
marsyas-vamp/marsyas/scripts/Python/make-bextract-splits.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/Python/make-bextract-splits.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/Python/make-bextract-splits.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/global/scratch/sness/openmir/tools/python/bin/python # # # import sys import os import datetime import commands import re import time import simplejson as json import random import pprint pp = pprint.PrettyPrinter(indent=4) def run(inFilename,outPrefix,numFolds): inFile = open(inFilename, "r") line = inF...
24.232558
86
0.518234
250
2,084
4.288
0.384
0.041978
0.037313
0.039179
0.070896
0.070896
0.033582
0
0
0
0
0.010479
0.358925
2,084
85
87
24.517647
0.791916
0.078215
0
0.155172
0
0
0.066946
0.017782
0
0
0
0
0
0
null
null
0
0.155172
null
null
0.051724
0
0
0
null
0
0
0
0
0
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
41aa6fe4fa4c3f516f5f6d8a3daaf5c23b9073c1
2,776
py
Python
generate_from_ddl.py
mohigo/tdm
f12ddcc3c80b0e51b204d520de12505a4461c39d
[ "Apache-2.0" ]
null
null
null
generate_from_ddl.py
mohigo/tdm
f12ddcc3c80b0e51b204d520de12505a4461c39d
[ "Apache-2.0" ]
null
null
null
generate_from_ddl.py
mohigo/tdm
f12ddcc3c80b0e51b204d520de12505a4461c39d
[ "Apache-2.0" ]
null
null
null
import pyodbc import sys import re import getpass import json import datetime database_name='' table_name='' json_data=open('gen_from_ddl_config.json') data = json.load(json_data) for extract_ddl in data['extract_ddl']['config']: dsn = extract_ddl['dsn'] database_name = str(extract_ddl['database_name']) table_n...
23.133333
132
0.680836
441
2,776
4.061224
0.306122
0.105528
0.116136
0.044668
0.216639
0.216639
0.112228
0.112228
0.062535
0.034618
0
0.016081
0.148775
2,776
120
133
23.133333
0.741854
0
0
0.148515
0
0
0.198776
0.008642
0
0
0
0
0
0
null
null
0.039604
0.059406
null
null
0.009901
0
0
0
null
0
0
0
0
0
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
41ab8ea7b613b22f5035733f21ead4faadc89351
11,898
py
Python
sdk/python/pulumi_artifactory/get_file.py
pulumi/terraform-provider-artifactory
4f217f2e6bc2f7e5395a148cd3b3b7b5aaa66372
[ "ECL-2.0", "Apache-2.0" ]
4
2021-11-17T15:06:59.000Z
2022-03-21T02:36:15.000Z
sdk/python/pulumi_artifactory/get_file.py
pulumi/terraform-provider-artifactory
4f217f2e6bc2f7e5395a148cd3b3b7b5aaa66372
[ "ECL-2.0", "Apache-2.0" ]
113
2021-11-09T14:14:50.000Z
2022-03-31T23:18:29.000Z
sdk/python/pulumi_artifactory/get_file.py
pulumi/terraform-provider-artifactory
4f217f2e6bc2f7e5395a148cd3b3b7b5aaa66372
[ "ECL-2.0", "Apache-2.0" ]
2
2021-11-22T11:19:48.000Z
2021-12-17T01:39:20.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
37.533123
293
0.648176
1,458
11,898
5.058985
0.128944
0.028471
0.029962
0.069143
0.497153
0.42462
0.349512
0.278335
0.239154
0.234816
0
0.007422
0.252648
11,898
316
294
37.651899
0.822087
0.238191
0
0.131313
1
0
0.141432
0.006381
0
0
0
0
0
1
0.106061
false
0
0.025253
0.025253
0.237374
0
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
41b05a0bc3b3d1d78a11671cd241d60b1620a867
3,532
py
Python
src/birl_dmp/dmp_training/train_model.py
birlrobotics/birl_dmp
9adf990b4bd19915e1d477219ecd0ed387b3e7e1
[ "BSD-3-Clause" ]
null
null
null
src/birl_dmp/dmp_training/train_model.py
birlrobotics/birl_dmp
9adf990b4bd19915e1d477219ecd0ed387b3e7e1
[ "BSD-3-Clause" ]
null
null
null
src/birl_dmp/dmp_training/train_model.py
birlrobotics/birl_dmp
9adf990b4bd19915e1d477219ecd0ed387b3e7e1
[ "BSD-3-Clause" ]
null
null
null
import model_config_generation import model_score import ipdb import os import util import numpy DEBUG_MODE = False def filter_static_points(mat): last = mat[0] new_mat = [last] for idx in range(mat.shape[0]): if numpy.linalg.norm(mat[idx]-last) < 0.01 \ and idx != mat.shape[0]-1: ...
28.95082
106
0.566535
472
3,532
3.972458
0.29661
0.082133
0.056
0.042667
0.053333
0.053333
0.0256
0.0256
0
0
0
0.024804
0.315119
3,532
121
107
29.190083
0.75031
0
0
0.102041
0
0
0.077882
0.00708
0
0
0
0
0
0
null
null
0.010204
0.112245
null
null
0.081633
0
0
0
null
0
0
0
0
0
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
41b1e35938f6fc793f05d5808a6aff951b0ba8cc
272
py
Python
6/6.6/investigate.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
6/6.6/investigate.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
6/6.6/investigate.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
# 调查 favorite_languages = {'jen': 'python', 'sarah': 'c'} investigate_names = ['jen', 'singi'] for name in investigate_names: if name in favorite_languages.keys(): print('thank you for invastigation.') else: print('please do this investigation.')
27.2
52
0.658088
33
272
5.30303
0.727273
0.194286
0
0
0
0
0
0
0
0
0
0
0.198529
272
9
53
30.222222
0.802752
0.007353
0
0
0
0
0.298507
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
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
41b288a27895b9ab07c9fe7509358c02b9e9b374
357
py
Python
estore_project/users/urls.py
Jawayria/estore_project
ad0c2f30b9a4d8a02b37ea29dfb2259635c55517
[ "MIT" ]
null
null
null
estore_project/users/urls.py
Jawayria/estore_project
ad0c2f30b9a4d8a02b37ea29dfb2259635c55517
[ "MIT" ]
1
2021-05-19T06:41:50.000Z
2021-05-19T06:41:50.000Z
estore_project/users/urls.py
Jawayria/estore_project
ad0c2f30b9a4d8a02b37ea29dfb2259635c55517
[ "MIT" ]
null
null
null
from django.urls import path from rest_framework_simplejwt.views import TokenRefreshView from .views import LoginView, Signup app_name = "users" urlpatterns = [ path("signup/", view=Signup.as_view(), name="signup"), path("login/", LoginView.as_view(), name="login"), path("token/refresh/", TokenRefreshView...
29.75
77
0.728291
45
357
5.622222
0.466667
0.071146
0.118577
0
0
0
0
0
0
0
0
0
0.120448
357
11
78
32.454545
0.805732
0
0
0
0
0
0.156863
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
41b4dfc1e515033914a6807bccd3d86b21aeaddd
844
py
Python
Python-code/test.py
ChahidAbderrazak/Hand-Gesture-Recognition
9630aa0c1fd17aad0a2151006af2b1656903ee86
[ "MIT" ]
null
null
null
Python-code/test.py
ChahidAbderrazak/Hand-Gesture-Recognition
9630aa0c1fd17aad0a2151006af2b1656903ee86
[ "MIT" ]
null
null
null
Python-code/test.py
ChahidAbderrazak/Hand-Gesture-Recognition
9630aa0c1fd17aad0a2151006af2b1656903ee86
[ "MIT" ]
null
null
null
#%% -*- coding: utf-8 -*- """ Created on Wed Apr 24 13:43:56 2019 @author: chahida Email: abderrazak.chahid@gmail.com """ #% Packages and functions import matplotlib.pyplot as plt import numpy as np import pandas as pd import torch import torch.nn as nn from Python_lib.Shared_Functions import * #%% #################...
25.575758
102
0.520142
96
844
4.46875
0.645833
0.083916
0.027972
0.051282
0
0
0
0
0
0
0
0.033333
0.111374
844
32
103
26.375
0.538667
0.31872
0
0
0
0
0.099738
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
41b6bcb3409496b6ad3198ab6bda12906a5f45cb
6,964
py
Python
chalicelib/db.py
craymaru/serverless-todo-backend
5f0bd32b321e783fbdcab2714ccd0cdee30f6156
[ "MIT" ]
1
2020-12-08T09:16:27.000Z
2020-12-08T09:16:27.000Z
chalicelib/db.py
craymaru/serverless-todo-backend
5f0bd32b321e783fbdcab2714ccd0cdee30f6156
[ "MIT" ]
null
null
null
chalicelib/db.py
craymaru/serverless-todo-backend
5f0bd32b321e783fbdcab2714ccd0cdee30f6156
[ "MIT" ]
null
null
null
from uuid import uuid4 from botocore.exceptions import EndpointConnectionError from boto3.dynamodb.conditions import Key, Attr from chalice import NotFoundError from chalicelib.validates import Validates from chalicelib.exceptions import DatabaseConnectionError DEFAULT_USERNAME = 'default' def except_endpoint_con...
30.54386
80
0.608415
654
6,964
6.362385
0.227829
0.021629
0.046143
0.055756
0.341745
0.282865
0.2497
0.228551
0.129056
0.113194
0
0.002292
0.310885
6,964
227
81
30.678414
0.864763
0.362292
0
0.27
0
0
0.091933
0
0
0
0
0.145374
0
1
0.1
false
0
0.06
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
41ba1552a57142a1d58392b777bded41a9edfb9b
1,534
py
Python
opencv/step1.py
1689335/kerwin.github.io
11c7bb2102b60b1a2b57ecb272971503630e1cd0
[ "MIT" ]
null
null
null
opencv/step1.py
1689335/kerwin.github.io
11c7bb2102b60b1a2b57ecb272971503630e1cd0
[ "MIT" ]
null
null
null
opencv/step1.py
1689335/kerwin.github.io
11c7bb2102b60b1a2b57ecb272971503630e1cd0
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np import matplotlib.pyplot as plt # %matplotlib inline #img = cv2.imdecode(np.fromfile(r"/Users/baigk/work/opencv/27/cat.jpg", dtype=np.uint8), -1) # cv.IMREAD_COLOR cv.IMREAD_GRAYSCALE img = cv.imread(r"/Users/baigk/work/opencv/27/cat.jpg", cv.IMREAD_GRAYSCALE) cv.imshow("image", img...
36.52381
92
0.715776
244
1,534
4.454918
0.315574
0.055198
0.055198
0.101196
0.294388
0.294388
0.273229
0.273229
0.24655
0.147194
0
0.075073
0.105606
1,534
41
93
37.414634
0.717201
0.097784
0
0.121212
0
0
0.136331
0.076867
0
0
0.002901
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
41bab3d1f07d0531d4b95671a796f8b445600e4c
2,175
py
Python
backend/models/events.py
nonamedb/kazan_backend
1570027c8722a31645ea913e09f5ea48a274e2d1
[ "MIT" ]
null
null
null
backend/models/events.py
nonamedb/kazan_backend
1570027c8722a31645ea913e09f5ea48a274e2d1
[ "MIT" ]
null
null
null
backend/models/events.py
nonamedb/kazan_backend
1570027c8722a31645ea913e09f5ea48a274e2d1
[ "MIT" ]
null
null
null
# coding: utf-8 from datetime import datetime, timedelta from sqlalchemy import Column, Integer, String, Sequence, Boolean, ForeignKey, DateTime, Text, Date from sqlalchemy.dialects.postgresql import JSON from sqlalchemy.orm import relationship, backref from .organizers import organizer_event_table from .volunteers i...
31.521739
99
0.674943
243
2,175
5.855967
0.283951
0.063949
0.042164
0.064652
0.221363
0.134926
0.134926
0.134926
0.134926
0.134926
0
0.008269
0.221609
2,175
68
100
31.985294
0.83225
0.005977
0
0.192308
0
0
0.062037
0
0
0
0
0
0
1
0.038462
false
0
0.134615
0.038462
0.576923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
41bd849fc2ff8062c0e2119b21e8219673a12d98
228
py
Python
main.py
zBxutii/bot-24-7
07db9741b5777edd5fbfe43e7a068ba9ac9a4fcd
[ "Unlicense" ]
null
null
null
main.py
zBxutii/bot-24-7
07db9741b5777edd5fbfe43e7a068ba9ac9a4fcd
[ "Unlicense" ]
null
null
null
main.py
zBxutii/bot-24-7
07db9741b5777edd5fbfe43e7a068ba9ac9a4fcd
[ "Unlicense" ]
null
null
null
import discord import keep_alive from discord.ext import commands client = discord.Bot(command_prefix='.') @client.event async def on_ready(): print('Bot Encendido.') keep_alive.keep_alive() client.run('token de tu bot')
17.538462
40
0.754386
34
228
4.911765
0.647059
0.161677
0
0
0
0
0
0
0
0
0
0
0.127193
228
12
41
19
0.839196
0
0
0
0
0
0.131579
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
41be05d3a49188f72bc0231a432cc4d4522e96e2
3,548
py
Python
logcube_grabber.py
Andromeda31/senior
f6983c1871844823f2565e40e977b7f00cff23ea
[ "MIT" ]
null
null
null
logcube_grabber.py
Andromeda31/senior
f6983c1871844823f2565e40e977b7f00cff23ea
[ "MIT" ]
null
null
null
logcube_grabber.py
Andromeda31/senior
f6983c1871844823f2565e40e977b7f00cff23ea
[ "MIT" ]
null
null
null
##lots of imports. Some are unnecessary but I left a lot just to be safe... import matplotlib.pyplot as plt import matplotlib from astropy.io import fits import numpy as np import astropy.table as t import matplotlib.image as img from scipy.optimize import newton from pathlib import Path import math import matplotlib.c...
29.081967
225
0.67221
536
3,548
4.324627
0.389925
0.044866
0.028473
0.043141
0.228214
0.220449
0.183348
0.164797
0.154443
0.129422
0
0.028966
0.182638
3,548
121
226
29.322314
0.770345
0.273957
0
0.037037
0
0
0.182232
0.099317
0
0
0
0
0
1
0
false
0
0.462963
0
0.462963
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41c048849a0b4836a673fa15b3e98c19f90b5301
12,429
py
Python
code/python/stefan/decomp_ryan.py
stefan-hofer/cloud-radiative-kernels
2c2ce66113c4e5e9cad7b64565b2341b7675b251
[ "BSD-3-Clause" ]
null
null
null
code/python/stefan/decomp_ryan.py
stefan-hofer/cloud-radiative-kernels
2c2ce66113c4e5e9cad7b64565b2341b7675b251
[ "BSD-3-Clause" ]
null
null
null
code/python/stefan/decomp_ryan.py
stefan-hofer/cloud-radiative-kernels
2c2ce66113c4e5e9cad7b64565b2341b7675b251
[ "BSD-3-Clause" ]
null
null
null
#!/Users/ryan/anaconda2/envs/cdat_lite/bin/python ''' Zelinka et al 2013 decomposition modified using oroginal code from Mark Zelinka files required cloud kernels from Zelinka et al 2012 control cosp run with ISCCP simulator future cosp run with ISCCP simulator clisccp variable dims: (240, 7, 7, 96, 192) rsuscs/rsds...
41.019802
135
0.616783
1,902
12,429
3.925868
0.222923
0.011785
0.010044
0.018749
0.261417
0.21883
0.155484
0.141556
0.112361
0.100576
0
0.058272
0.218521
12,429
302
136
41.155629
0.710491
0.219165
0
0.047368
0
0
0.077951
0.011915
0
0
0
0
0
0
null
null
0
0.036842
null
null
0.021053
0
0
0
null
0
0
0
0
0
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
41c0577b88b94fa6ab90323cfa0a39d89cebe66e
390
py
Python
registry/http/mounts/root/routes/well_known.py
rmb938/tf-registry
bce809ae52e65549b05b836d3f70e8a1de2f2cec
[ "MIT" ]
3
2019-02-25T05:15:39.000Z
2020-11-26T02:56:10.000Z
registry/http/mounts/root/routes/well_known.py
rmb938/tf-registry
bce809ae52e65549b05b836d3f70e8a1de2f2cec
[ "MIT" ]
null
null
null
registry/http/mounts/root/routes/well_known.py
rmb938/tf-registry
bce809ae52e65549b05b836d3f70e8a1de2f2cec
[ "MIT" ]
null
null
null
import cherrypy from ingredients_http.route import Route from ingredients_http.router import Router class WellKnownRouter(Router): def __init__(self): super().__init__(uri_base=".well-known") @Route(route="terraform.json") @cherrypy.tools.json_out() def terraform(self): return { ...
22.941176
63
0.671795
45
390
5.555556
0.555556
0.12
0.152
0
0
0
0
0
0
0
0
0.006494
0.210256
390
16
64
24.375
0.805195
0
0
0
0
0
0.117949
0
0
0
0
0
0
1
0.166667
false
0
0.25
0.083333
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
41ca591cb7568340db69ac28ea04337ce882ed44
4,379
py
Python
src/SpikingFrequencyComputer.py
thatmariia/grid-ping
3c32e48226adddcffba605573daa80cca02b5a57
[ "BSD-4-Clause" ]
null
null
null
src/SpikingFrequencyComputer.py
thatmariia/grid-ping
3c32e48226adddcffba605573daa80cca02b5a57
[ "BSD-4-Clause" ]
null
null
null
src/SpikingFrequencyComputer.py
thatmariia/grid-ping
3c32e48226adddcffba605573daa80cca02b5a57
[ "BSD-4-Clause" ]
null
null
null
from src.params.ParamsPING import * from src.izhikevich_simulation.IzhikevichNetworkOutcome import * from src.params.ParamsFrequencies import * import numpy as np from math import floor, pi from scipy import fft import matplotlib.pyplot as plt from collections import Counter from tqdm import tqdm import warnings cl...
33.427481
110
0.628682
534
4,379
4.964419
0.338951
0.070539
0.06639
0.030555
0.122595
0.053942
0.026405
0.026405
0
0
0
0.010612
0.268326
4,379
130
111
33.684615
0.816792
0.137246
0
0.027397
0
0
0.045154
0.014593
0
0
0
0.038462
0
1
0.054795
false
0
0.136986
0
0.246575
0.041096
0
0
0
null
0
0
0
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
41cadb66a50c20e44637d342f5b073e55a64606f
901
py
Python
core/authentication/dto/auth_code.py
Sick-codes/core
da9250f27a5de4fc3a08e9c47064b19f484b042b
[ "Apache-2.0" ]
4
2020-12-30T12:48:46.000Z
2022-03-29T17:44:00.000Z
core/authentication/dto/auth_code.py
Sick-codes/core
da9250f27a5de4fc3a08e9c47064b19f484b042b
[ "Apache-2.0" ]
null
null
null
core/authentication/dto/auth_code.py
Sick-codes/core
da9250f27a5de4fc3a08e9c47064b19f484b042b
[ "Apache-2.0" ]
2
2021-01-24T19:13:53.000Z
2021-11-02T16:43:25.000Z
"""Authorization code representation.""" from datetime import datetime, timedelta from sqlalchemy import Boolean, Column, Integer, String from ...base import Base class AuthorizationCode(Base): __tablename__ = "authorizationcodes" id = Column(Integer, primary_key=True) user_id = Column(Integer) cli...
33.37037
155
0.734739
107
901
5.878505
0.35514
0.189189
0.100159
0.044515
0
0
0
0
0
0
0
0.00267
0.168701
901
26
156
34.653846
0.837116
0.037736
0
0
0
0.055556
0.180023
0.156794
0
0
0
0
0
1
0.111111
false
0
0.166667
0.055556
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
68c010ff0ce39d6f5de62a566c2faddf41574eaa
448
py
Python
login/migrations/0006_auto_20190213_1700.py
zyayoung/lab-item-tracking
6d0ee000114300d6693ec078f974b9a6ef4dfe40
[ "MIT" ]
4
2019-01-14T15:44:22.000Z
2019-01-16T16:07:19.000Z
login/migrations/0006_auto_20190213_1700.py
zyayoung/lab-item-tracking
6d0ee000114300d6693ec078f974b9a6ef4dfe40
[ "MIT" ]
2
2019-02-01T00:50:20.000Z
2019-02-22T15:15:54.000Z
login/migrations/0006_auto_20190213_1700.py
zyayoung/lab-item-tracking
6d0ee000114300d6693ec078f974b9a6ef4dfe40
[ "MIT" ]
null
null
null
# Generated by Django 2.1.1 on 2019-02-13 17:00 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('login', '0005_user_last_online_time'), ] operations = [ migrations.AlterField( model_name='user', ...
22.4
74
0.638393
51
448
5.470588
0.686275
0.078853
0.136201
0
0
0
0
0
0
0
0
0.056716
0.252232
448
19
75
23.578947
0.776119
0.100446
0
0
1
0
0.127182
0.064838
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
68d1f9ef42d6118ba75166b7e9b45db238e2f99c
2,972
py
Python
src/iterate.py
shiaki/iterative-modelling
d591902c23c753144c0f2d10f6ed75eb63856b73
[ "BSD-3-Clause" ]
null
null
null
src/iterate.py
shiaki/iterative-modelling
d591902c23c753144c0f2d10f6ed75eb63856b73
[ "BSD-3-Clause" ]
null
null
null
src/iterate.py
shiaki/iterative-modelling
d591902c23c753144c0f2d10f6ed75eb63856b73
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import numpy as np import scipy.spatial as spt import make_ptcls import pcs_snap import vel_plot import sys def axisymmetrize(cp_src, with_z = False): # find pos & vel in cylindrical coord. R = np.linalg.norm(cp_src[:, :2, axis = 1) Z, Vz = cp_src[:, 2], cp_src[:, 5] cos_phi, sin_phi = ...
24.97479
68
0.623486
509
2,972
3.442043
0.333988
0.045662
0.013699
0.018836
0.167237
0.110731
0.110731
0.083333
0.083333
0.083333
0
0.044949
0.213997
2,972
118
69
25.186441
0.705051
0
0
0.144928
0
0
0.044931
0
0
0
0
0
0
0
null
null
0
0.115942
null
null
0.072464
0
0
0
null
0
0
0
0
0
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
68d2910e3963c377cd70f17913e36a49e31e49ab
4,130
py
Python
lib/python2.7/site-packages/leginon/datasync.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/leginon/datasync.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/leginon/datasync.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
#!/usr/bin/env python import sys import MySQLdb import getpass print ''' LEGINON 1.3 DATABASE UPDATE SCRIPT This script will update several tables in the Leginon database. Older versions of Leginon will no longer work after this update. ***************************************************************** * YOU SHOULD ...
29.29078
185
0.696368
567
4,130
5.037037
0.312169
0.030812
0.026961
0.029412
0.152311
0.103291
0.087185
0.045518
0.045518
0.045518
0
0.004646
0.166102
4,130
140
186
29.5
0.824623
0.123729
0
0.302752
0
0.009174
0.458286
0.083995
0
0
0
0
0
0
null
null
0.027523
0.027523
null
null
0.211009
0
0
0
null
0
0
0
0
0
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
68d7331d7f81d226727a8353ef87e47d61b60543
1,591
py
Python
fab_addon_turbowidgets/manager.py
lemeur/fab_addon_turbowidgets
9ae89cb06b236af9ec2e81e86fcc3d5ccde040fb
[ "MIT" ]
null
null
null
fab_addon_turbowidgets/manager.py
lemeur/fab_addon_turbowidgets
9ae89cb06b236af9ec2e81e86fcc3d5ccde040fb
[ "MIT" ]
null
null
null
fab_addon_turbowidgets/manager.py
lemeur/fab_addon_turbowidgets
9ae89cb06b236af9ec2e81e86fcc3d5ccde040fb
[ "MIT" ]
null
null
null
import logging from flask_appbuilder.basemanager import BaseManager from flask_babel import lazy_gettext as _ from flask import Blueprint, url_for log = logging.getLogger(__name__) """ Create your plugin manager, extend from BaseManager. This will let you create your models and register your views """ cl...
34.586957
137
0.666248
185
1,591
5.464865
0.443243
0.055391
0.138477
0.102868
0.059347
0.059347
0
0
0
0
0
0
0.2445
1,591
45
138
35.355556
0.841098
0.173476
0
0.090909
0
0
0.259095
0.182786
0
0
0
0
0
1
0.181818
false
0.090909
0.181818
0
0.409091
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
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
68d897d66b1344b68ba0a42f4dc0cceae98dbb4c
1,316
py
Python
UI/glyphPreviewExample.py
typemytype/RoboFontExamples
cc5668de3d27ce996cff5eadb32d0b905c2aff65
[ "MIT" ]
12
2015-01-03T12:34:18.000Z
2022-01-24T13:11:35.000Z
UI/glyphPreviewExample.py
typemytype/RoboFontExamples
cc5668de3d27ce996cff5eadb32d0b905c2aff65
[ "MIT" ]
null
null
null
UI/glyphPreviewExample.py
typemytype/RoboFontExamples
cc5668de3d27ce996cff5eadb32d0b905c2aff65
[ "MIT" ]
3
2015-01-02T13:38:09.000Z
2016-05-06T21:36:01.000Z
from vanilla import Window from mojo.glyphPreview import GlyphPreview from mojo.events import addObserver, removeObserver from mojo.roboFont import OpenWindow class Preview: def __init__(self): ## create a window self.w = Window((400, 400), "Preview", minSize=(100, 100)) ## add a GlyphPre...
32.097561
73
0.669453
162
1,316
5.395062
0.376543
0.064073
0.045767
0.032037
0.135011
0.135011
0.075515
0.075515
0
0
0
0.016113
0.245441
1,316
41
74
32.097561
0.864048
0.330547
0
0.105263
0
0
0.082654
0
0
0
0
0
0
1
0.210526
false
0
0.210526
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
1
0
0
0
0
0
0
0
1
68d9689473ec1a71f1da73564d3a835748fb4d35
1,983
py
Python
backend/backend/migrations/0002_auto_20210521_1029.py
Drew138/v_website
c5b6556ccaf146d2296ff0c48c7473a7cc63d2ad
[ "MIT" ]
null
null
null
backend/backend/migrations/0002_auto_20210521_1029.py
Drew138/v_website
c5b6556ccaf146d2296ff0c48c7473a7cc63d2ad
[ "MIT" ]
8
2020-12-03T15:15:32.000Z
2022-03-12T00:58:27.000Z
backend/backend/migrations/0002_auto_20210521_1029.py
Drew138/v_website
c5b6556ccaf146d2296ff0c48c7473a7cc63d2ad
[ "MIT" ]
1
2021-04-09T16:17:11.000Z
2021-04-09T16:17:11.000Z
# Generated by Django 3.0.7 on 2021-05-21 15:29 import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('backend', '0001_initial'), ] operations = [ migrations.RemoveField( ...
49.575
357
0.589511
250
1,983
4.632
0.328
0.015544
0.018135
0.100173
0.658031
0.658031
0.492228
0.488774
0.488774
0.404145
0
0.030457
0.205245
1,983
39
358
50.846154
0.704315
0.022693
0
0.515152
1
0.181818
0.381198
0.133264
0
0
0
0
0
1
0
false
0
0.090909
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
68daa3be20aad4b92b853ca2a632860e7b7ed366
565
py
Python
tests/test_datasets.py
murari023/torch3d
9a451f876fe7ea23f6251ad783f505ec363ee884
[ "BSD-3-Clause" ]
2
2020-08-28T08:57:38.000Z
2021-12-13T06:17:11.000Z
tests/test_datasets.py
murari023/torch3d
9a451f876fe7ea23f6251ad783f505ec363ee884
[ "BSD-3-Clause" ]
null
null
null
tests/test_datasets.py
murari023/torch3d
9a451f876fe7ea23f6251ad783f505ec363ee884
[ "BSD-3-Clause" ]
null
null
null
import torch import torch3d.datasets as datasets ROOT_DIR = "data" class TestModelnet40: def test_download(self): dataset = datasets.ModelNet40(ROOT_DIR, download=True) assert dataset._check_integrity() class TestS3DIS: def test_download(self): dataset = datasets.S3DIS(ROOT_DIR, tr...
23.541667
79
0.720354
65
565
6.061538
0.415385
0.071066
0.114213
0.14467
0.581218
0.581218
0.22335
0
0
0
0
0.015351
0.19292
565
23
80
24.565217
0.848684
0
0
0.4
0
0
0.015929
0
0
0
0
0
0.2
1
0.2
false
0
0.133333
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
68dd8b5dae802fb35c9f3604f109777c6bee3760
2,642
py
Python
cross.py
tira-io/pangram
7d16431af69bb01774518efd47a6f3eaa22f83de
[ "Apache-2.0" ]
3
2017-03-16T00:06:42.000Z
2020-08-26T13:27:38.000Z
cross.py
tira-io/pangram
7d16431af69bb01774518efd47a6f3eaa22f83de
[ "Apache-2.0" ]
null
null
null
cross.py
tira-io/pangram
7d16431af69bb01774518efd47a6f3eaa22f83de
[ "Apache-2.0" ]
2
2015-11-20T10:32:19.000Z
2017-03-16T00:06:43.000Z
#!/usr/bin/python from argparse import ArgumentParser from pan import ProfilingDataset from tictacs import from_recipe from sklearn.grid_search import GridSearchCV log = [] def cross_val(dataset, task, model, num_folds=4): """ train and cross validate a model :lang: the language :task: the task we want...
38.289855
78
0.608251
336
2,642
4.625
0.389881
0.041184
0.019305
0.024453
0.142857
0.086229
0.086229
0.086229
0.086229
0.086229
0
0.003093
0.265708
2,642
68
79
38.852941
0.797938
0.065481
0
0.081633
0
0
0.230769
0
0
0
0
0
0
0
null
null
0
0.081633
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
68e0551171a65a0ddebf5f98a2face5520353792
1,890
py
Python
backend/apps/subscriptions/serializers.py
Zimodra/foodgram-project-react
d1c35e288c94a76ca6fd609fc4d6df2184f40d4c
[ "MIT" ]
null
null
null
backend/apps/subscriptions/serializers.py
Zimodra/foodgram-project-react
d1c35e288c94a76ca6fd609fc4d6df2184f40d4c
[ "MIT" ]
null
null
null
backend/apps/subscriptions/serializers.py
Zimodra/foodgram-project-react
d1c35e288c94a76ca6fd609fc4d6df2184f40d4c
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework import serializers from rest_framework.exceptions import ValidationError import subscriptions.services as service from .models import Subscription class SubscriptionsSerializer(serializers.Serializer): id = serializers.IntegerField() email = serializers.Em...
41.086957
99
0.678307
199
1,890
6.301508
0.346734
0.023923
0.044657
0.066986
0.357257
0.287081
0.244019
0.165869
0.100478
0.100478
0
0
0.211111
1,890
45
100
42
0.841046
0
0
0.055556
0
0
0.05873
0
0
0
0
0
0
1
0.111111
false
0
0.138889
0.027778
0.638889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
68eceb3c8a4ee7c6e70d18497eb90a237db78e19
1,741
py
Python
Python/alexNet_test.py
hdieset/approximate_DNN_framework
a22d88cf6378288c57282aec06357f7ff2727a74
[ "MIT" ]
1
2020-10-20T07:27:04.000Z
2020-10-20T07:27:04.000Z
Python/alexNet_test.py
hdieset/approximate_DNN_framework
a22d88cf6378288c57282aec06357f7ff2727a74
[ "MIT" ]
null
null
null
Python/alexNet_test.py
hdieset/approximate_DNN_framework
a22d88cf6378288c57282aec06357f7ff2727a74
[ "MIT" ]
null
null
null
# This script prints all layer information and image sizes import torch as T import torchvision.models as models import sys sys.path.insert(0, './small_scripts/') from small_scripts import imagenet_loader alexnet = models.alexnet(pretrained=True) alexnet.eval() val_loader = imagenet_loader.get_val_loader(1) # (imag...
29.508475
78
0.566341
202
1,741
4.737624
0.292079
0.065831
0.122257
0.125392
0.491118
0.464995
0.408568
0.408568
0.408568
0.275862
0
0.005311
0.242964
1,741
58
79
30.017241
0.720789
0.087881
0
0.52381
0
0
0.150095
0
0
0
0
0
0
1
0
false
0
0.095238
0
0.095238
0.595238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
68f56dd71d2ac2f00242390ace7859c2c3db5f80
1,199
py
Python
scripts/peer_install.py
subutai-io/launcher
d8397995e18200b12d60781ed485af04f70bff03
[ "Apache-2.0" ]
1
2017-10-31T18:55:36.000Z
2017-10-31T18:55:36.000Z
scripts/peer_install.py
subutai-attic/launcher
d8397995e18200b12d60781ed485af04f70bff03
[ "Apache-2.0" ]
199
2016-07-28T07:30:48.000Z
2017-10-14T06:15:40.000Z
scripts/peer_install.py
subutai-io/launcher
d8397995e18200b12d60781ed485af04f70bff03
[ "Apache-2.0" ]
1
2021-03-27T10:08:26.000Z
2021-03-27T10:08:26.000Z
import subutai from time import sleep from shutil import copyfile import os import stat def subutaistart(): subutai.CheckDirectories() tmpDir = subutai.GetTmpDir() targetDir = subutai.GetInstallDir() subutai.download("snappy.ova") while subutai.isDownloadComplete() != 1: sleep(0.05) s...
33.305556
105
0.693912
143
1,199
5.804196
0.433566
0.145783
0.160241
0.210843
0.26506
0.2
0.2
0
0
0
0
0.037512
0.155129
1,199
35
106
34.257143
0.781836
0.155129
0
0.16
0
0.04
0.340594
0.049505
0
0
0
0
0
1
0.04
false
0
0.24
0
0.28
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
68f8965e676bccbf4d863883bccfe34b17217de4
674
py
Python
bhr_site/urls.py
amerck/bhr-site
fec06992714a487c9c482de1a23aa583de9c9f16
[ "NCSA" ]
23
2016-02-21T10:18:08.000Z
2022-03-13T01:47:16.000Z
bhr_site/urls.py
amerck/bhr-site
fec06992714a487c9c482de1a23aa583de9c9f16
[ "NCSA" ]
17
2016-04-17T02:49:17.000Z
2021-06-10T17:29:29.000Z
bhr_site/urls.py
amerck/bhr-site
fec06992714a487c9c482de1a23aa583de9c9f16
[ "NCSA" ]
15
2016-07-21T17:16:26.000Z
2022-03-20T03:13:58.000Z
from django.conf.urls import include, url from django.contrib import admin from django.views.generic.base import RedirectView from django.contrib.auth import views as auth_views urlpatterns = [ # Examples: # url(r'^$', 'bhr_site.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'...
37.444444
118
0.678042
94
674
4.765957
0.361702
0.0625
0.053571
0
0
0
0
0
0
0
0
0
0.123145
674
17
119
39.647059
0.758037
0.14095
0
0
0
0
0.194783
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
68f8b76ef4ea452092b81bbd02b213d2aafec514
742
py
Python
tree/101 Symmetric Tree.py
windowssocket/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T02:29:40.000Z
2020-02-05T03:28:16.000Z
tree/101 Symmetric Tree.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
1
2019-03-08T13:22:32.000Z
2019-03-08T13:22:32.000Z
tree/101 Symmetric Tree.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T11:50:24.000Z
2018-11-27T12:31:01.000Z
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def isSymmetric(self, root): """ :type root: TreeNode :rtype: bool """ if not roo...
30.916667
96
0.551213
83
742
4.879518
0.421687
0.081481
0
0
0
0
0
0
0
0
0
0
0.351752
742
24
97
30.916667
0.841996
0.25876
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ec02d0a344e9992feb8d0333e1adb5b45c98270b
11,881
py
Python
workflows/big_data/library.py
xflows/clowdflows
697b36ebc976d1ba4ab726bda2fc4593422af080
[ "MIT" ]
38
2015-11-21T08:16:14.000Z
2021-06-22T16:14:12.000Z
workflows/big_data/library.py
chimeng089/clowdflows
e19bf57906e893d8f0be93329168b76eae758384
[ "MIT" ]
21
2015-12-29T16:34:48.000Z
2022-03-11T23:14:48.000Z
workflows/big_data/library.py
chimeng089/clowdflows
e19bf57906e893d8f0be93329168b76eae758384
[ "MIT" ]
26
2016-01-11T17:51:07.000Z
2022-02-24T11:49:40.000Z
def file_url(input_dict): from discomll import dataset if input_dict["range"] == "true": urls = [url.strip() for url in input_dict["url"].split("\n") if url != ""] else: urls = [[url.strip()] for url in input_dict["url"].split("\n") if url != ""] for url in urls: if url[...
42.131206
107
0.549617
1,185
11,881
5.166245
0.121519
0.182293
0.065338
0.061745
0.72999
0.688337
0.688337
0.578406
0.500653
0.45802
0
0.000924
0.36268
11,881
281
108
42.281139
0.807581
0.018433
0
0.502538
0
0
0.105525
0
0
0
0
0
0
0
null
null
0
0.091371
null
null
0.005076
0
0
0
null
0
0
0
0
0
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
ec09377cf0caf841e7340f9a763d199fb6445a19
2,157
py
Python
flockcontext/flock_open.py
AntoineCezar/flockcontext
59e412e21ae6418a06dae7cd5eb346690a698aaa
[ "BSD-2-Clause" ]
4
2015-08-21T01:28:47.000Z
2020-10-23T13:54:30.000Z
flockcontext/flock_open.py
AntoineCezar/flockcontext
59e412e21ae6418a06dae7cd5eb346690a698aaa
[ "BSD-2-Clause" ]
4
2015-08-21T23:07:31.000Z
2019-07-03T17:38:28.000Z
flockcontext/flock_open.py
AntoineCezar/flockcontext
59e412e21ae6418a06dae7cd5eb346690a698aaa
[ "BSD-2-Clause" ]
1
2015-08-19T07:03:24.000Z
2015-08-19T07:03:24.000Z
# -*- coding: utf-8 -*- from .flock import Flock class FlockOpen(object): """Opens and locks file. Blocking lock exemple: >>> from flockcontext import FlockOpen >>> >>> with FlockOpen('/tmp/my.lock', 'w') as lock: >>> lock.fd.write('Locked\n') ...
28.76
80
0.496059
219
2,157
4.757991
0.278539
0.034549
0.06334
0.097889
0.487524
0.487524
0.465451
0.369482
0.246641
0.246641
0
0.001451
0.36115
2,157
74
81
29.148649
0.754717
0.714882
0
0
0
0
0
0
0
0
0
0
0
1
0.277778
false
0
0.055556
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
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
ec0cdca834984acfef0ad1ef4b8f5a593d540582
1,083
py
Python
App/extension/maple.py
Jeffacy99/Blog
d9f45935998a073e4a3c947456be23c74ae64fef
[ "MIT" ]
null
null
null
App/extension/maple.py
Jeffacy99/Blog
d9f45935998a073e4a3c947456be23c74ae64fef
[ "MIT" ]
5
2020-03-24T18:10:26.000Z
2022-03-12T00:12:33.000Z
App/extension/maple.py
Jeffacy99/Blog-app
d9f45935998a073e4a3c947456be23c74ae64fef
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # ******************************************************************************** # Copyright © 2018 jianglin # File Name: maple.py # Author: jianglin # Email: mail@honmaple.com # Created: 2018-01-25 11:52:26 (CST) # Last Update: Tuesday 2019-09-24 17:53:00 (CST) # ...
30.942857
82
0.569714
132
1,083
4.621212
0.477273
0.103279
0.160656
0
0
0
0
0
0
0
0
0.036626
0.168052
1,083
34
83
31.852941
0.63929
0.369344
0
0
0
0
0.171386
0
0
0
0
0
0
1
0.05
false
0
0.35
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ec17e48f57ea8d4caa991ce36df438fa32428d64
1,867
py
Python
src/rogerthat_rest.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat_rest.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat_rest.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
43.418605
111
0.803964
235
1,867
6.310638
0.476596
0.105192
0.133513
0.20027
0.089009
0.089009
0
0
0
0
0
0.006497
0.093198
1,867
42
112
44.452381
0.869462
0.324585
0
0
0
0
0.10209
0.094855
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ec1b6c458898337258e1acad13646cea6acfe000
708
py
Python
Dataset/Leetcode/test/125/318.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/125/318.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/125/318.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
def XXX(self, s: str) -> bool: re = True enum = 0 front = 0 behind = 0 length = int(len(s)/2) while length > enum: while not s[-(behind+1)].isalnum() and behind + 1 < len(s): behind += 1 while not s[front].isalnum() and front +...
30.782609
116
0.40113
85
708
3.341176
0.329412
0.147887
0.112676
0.077465
0.126761
0
0
0
0
0
0
0.039788
0.467514
708
22
117
32.181818
0.713528
0
0
0.285714
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
ec29045d98419524614783a8b3f9a61c6266e4d9
10,984
py
Python
admin.py
oevans/ago-tools
1b0912361076038ba2510d95bc9ae2556e3d81e9
[ "Apache-2.0" ]
1
2015-11-11T16:35:48.000Z
2015-11-11T16:35:48.000Z
admin.py
oevans/ago-tools
1b0912361076038ba2510d95bc9ae2556e3d81e9
[ "Apache-2.0" ]
null
null
null
admin.py
oevans/ago-tools
1b0912361076038ba2510d95bc9ae2556e3d81e9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import urllib import json import csv from datetime import date, timedelta class Admin: '''A class of tools for administering AGO Orgs or Portals''' def __init__(self, username, portal=None, password=None): from . import User self.user = User(username, portal, password) ...
48.175439
175
0.5935
1,159
10,984
5.598792
0.230371
0.029589
0.022037
0.030513
0.416243
0.367699
0.314995
0.27955
0.240715
0.18462
0
0.015695
0.292334
10,984
228
176
48.175439
0.819117
0.117079
0
0.300752
0
0
0.159605
0.03937
0
0
0
0
0
0
null
null
0.015038
0.037594
null
null
0.150376
0
0
0
null
0
0
0
0
0
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
ec2a9d6f6e32b4c425617db44a075d87140482e6
5,142
py
Python
pbProj/PBXItem.py
samdmarshall/pbProj
bda50db74778097410b1d748227282961d25b4af
[ "BSD-3-Clause" ]
9
2015-10-31T16:50:32.000Z
2019-11-13T18:48:19.000Z
pbProj/PBXItem.py
samdmarshall/pbProj
bda50db74778097410b1d748227282961d25b4af
[ "BSD-3-Clause" ]
null
null
null
pbProj/PBXItem.py
samdmarshall/pbProj
bda50db74778097410b1d748227282961d25b4af
[ "BSD-3-Clause" ]
null
null
null
import collections from .PBX_Constants import * class PBXItem(collections.MutableMapping): def __init__(self, identifier, dictionary): self.isa = dictionary.get(kPBX_isa, dictionary.get(kPBX_isaFallback, None)) self.identifier = identifier self.store = dict() self.key_storage = set...
40.809524
192
0.654998
549
5,142
5.777778
0.213115
0.033102
0.035309
0.026482
0.290984
0.162673
0.128625
0.10971
0.10971
0.062421
0
0.000263
0.261766
5,142
126
193
40.809524
0.835353
0.006029
0
0.102804
0
0
0.013894
0
0.009346
0
0
0
0
0
null
null
0
0.018692
null
null
0.018692
0
0
0
null
0
0
0
0
0
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
ec2cb04a306314575f01355281a434e997a4feda
1,255
py
Python
app/django_project/urls.py
AlexanderEDavis/smartmeter
4418ebbb32dee23b58941869710c1d33a7d5638b
[ "MIT" ]
14
2020-08-14T12:12:47.000Z
2022-01-26T09:10:22.000Z
app/django_project/urls.py
AlexanderEDavis/smartmeter
4418ebbb32dee23b58941869710c1d33a7d5638b
[ "MIT" ]
1
2021-05-15T16:26:31.000Z
2021-05-15T16:26:31.000Z
django_project/urls.py
gjlipman/smartmeter
2129cbaf0d1175a6de2ca17abeeb0f0d067fe196
[ "MIT" ]
4
2021-02-27T18:21:56.000Z
2022-01-26T09:11:17.000Z
"""django_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
38.030303
77
0.711554
180
1,255
4.933333
0.361111
0.067568
0.016892
0.027027
0.131757
0.131757
0.084459
0
0
0
0
0.007561
0.156972
1,255
32
78
39.21875
0.831758
0.501992
0
0
0
0
0.153722
0
0
0
0
0
0
1
0
false
0
0.4375
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ec2cca7b1f0e2fcdca234fa4eb2fd6f94255ea7f
1,208
py
Python
Lvl02/WordGuess/WordGuess.py
barbieauglend/Learning_python
e43f5099532e87ecc172fee3ab288d13224a2313
[ "Unlicense" ]
null
null
null
Lvl02/WordGuess/WordGuess.py
barbieauglend/Learning_python
e43f5099532e87ecc172fee3ab288d13224a2313
[ "Unlicense" ]
null
null
null
Lvl02/WordGuess/WordGuess.py
barbieauglend/Learning_python
e43f5099532e87ecc172fee3ab288d13224a2313
[ "Unlicense" ]
null
null
null
# python 3.5 import getpass word = getpass.getpass('Word: ') tries = 3 guessed_letters = [] playing = True hidden_word = word for letter in word[1:len(word)-1]: hidden_word = hidden_word.replace(letter, ' __ ') print (hidden_word) while playing: gamer_input = input('Your guess: ') hidden_word = word ...
28.093023
79
0.548841
141
1,208
4.531915
0.340426
0.140845
0.065728
0.046948
0.27856
0.225352
0.225352
0.225352
0.150235
0
0
0.012837
0.355132
1,208
42
80
28.761905
0.807445
0.008278
0
0.294118
0
0
0.132107
0.021739
0
0
0
0
0
1
0
false
0.058824
0.029412
0
0.029412
0.235294
0
0
0
null
0
0
0
0
0
0
0
0
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
ec2d81e0bf2ab1e86d2daad0b30ec94c9beef8c8
3,377
py
Python
ReddittoInstaDownloader.py
omarelwaliely/personalprojects
e627bc59e3222cfed7904ba269a53e4a6c245358
[ "Apache-2.0" ]
null
null
null
ReddittoInstaDownloader.py
omarelwaliely/personalprojects
e627bc59e3222cfed7904ba269a53e4a6c245358
[ "Apache-2.0" ]
null
null
null
ReddittoInstaDownloader.py
omarelwaliely/personalprojects
e627bc59e3222cfed7904ba269a53e4a6c245358
[ "Apache-2.0" ]
null
null
null
import urllib import os import praw from instabot import Bot import schedule import time def download(): reddit = praw.Reddit(client_id="", username="", password="", user_agent="l") subreddit = reddit.subreddit("") count = 0 for submission in subreddit.hot(limit=None): ...
33.77
78
0.557003
387
3,377
4.839793
0.219638
0.070475
0.055526
0.045382
0.719701
0.663107
0.553123
0.459156
0.459156
0.439402
0
0.02134
0.306189
3,377
99
79
34.111111
0.778062
0
0
0.522222
0
0
0.115191
0
0
0
0
0
0
1
0.044444
false
0.055556
0.066667
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ec2dbbea8d90a961c346bc977384e8e9a1778903
553
py
Python
fp_py/src/test/test_suite.py
submain/fruitpunch
31773128238830d3d335c1915877dc0db56836cd
[ "MIT" ]
null
null
null
fp_py/src/test/test_suite.py
submain/fruitpunch
31773128238830d3d335c1915877dc0db56836cd
[ "MIT" ]
null
null
null
fp_py/src/test/test_suite.py
submain/fruitpunch
31773128238830d3d335c1915877dc0db56836cd
[ "MIT" ]
1
2020-08-14T02:51:47.000Z
2020-08-14T02:51:47.000Z
''' Created on Aug 15, 2012 @author: leo ''' import unittest import os import pydevd #import pydevd def init(runtime): #from results.results_app import ResultsApp #pydevd.settrace() loader = unittest.TestLoader() #suite.loadTestsFromTestCase(Test) test_runner = unittest.TextTestRunner() ...
19.75
55
0.674503
63
553
5.68254
0.555556
0.067039
0.094972
0
0
0
0
0
0
0
0
0.013761
0.211573
553
27
56
20.481481
0.807339
0.349005
0
0
0
0
0.037572
0
0
0
0
0
0
1
0.1
false
0
0.4
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
ec3d1f7373c4ce3058a0b9a8d56c9419d5262727
518
py
Python
make_csv.py
mlissner/pacer-free-document-stats
1f00d636acaf9478157c51915aa13cefbd01bfd7
[ "BSD-3-Clause" ]
null
null
null
make_csv.py
mlissner/pacer-free-document-stats
1f00d636acaf9478157c51915aa13cefbd01bfd7
[ "BSD-3-Clause" ]
null
null
null
make_csv.py
mlissner/pacer-free-document-stats
1f00d636acaf9478157c51915aa13cefbd01bfd7
[ "BSD-3-Clause" ]
2
2019-04-10T19:25:35.000Z
2019-04-10T19:25:39.000Z
"""Code to be run on the server. Kept here for easy reference. Use the %ed command to get a vi interface into iPython, and paste this in. """ import csv from cl.scrapers.models import PACERFreeDocumentRow def make_csv(): with open('/tmp/out.csv', 'w') as f: w = csv.writer(f) items = PACERFreeDoc...
25.9
74
0.619691
70
518
4.557143
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.297297
518
19
75
27.263158
0.876374
0.291506
0
0
0
0
0.036111
0
0
0
0
0
0
1
0.083333
false
0.083333
0.166667
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ec3ee4aed49a3295fce131b45dab661b2aa2a987
2,626
py
Python
src/worker/formatter.py
tim-hub/pocket-to-wordpress-post
e33e125362492af5d4a89175f0db2eb146477b58
[ "MIT" ]
3
2020-07-29T20:16:25.000Z
2021-11-16T11:38:34.000Z
src/worker/formatter.py
tim-hub/pocket-to-wordpress-post
e33e125362492af5d4a89175f0db2eb146477b58
[ "MIT" ]
null
null
null
src/worker/formatter.py
tim-hub/pocket-to-wordpress-post
e33e125362492af5d4a89175f0db2eb146477b58
[ "MIT" ]
2
2020-07-28T16:50:48.000Z
2020-08-04T09:02:16.000Z
import os import random from datetime import datetime from typing import List, Dict from uuid import uuid4 from jinja2 import Template # from markdown import markdown from src.settings import WP_CAT_ID, WP_TAG_ID class Render: def __init__(self, articles: List): self.articles = articles current...
32.825
113
0.592155
304
2,626
4.983553
0.378289
0.063366
0.026403
0.018482
0.30363
0.245545
0.245545
0.245545
0.245545
0.245545
0
0.009585
0.284844
2,626
79
114
33.240506
0.79606
0.172506
0
0.222222
0
0
0.093099
0.023622
0
0
0
0.012658
0
1
0.12963
false
0
0.12963
0.037037
0.37037
0
0
0
0
null
0
0
0
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
6b4ea2d9c67ae125e693f101ca955cea6571b759
33,317
py
Python
tests/test_ops.py
jbueltemeier/pystiche
0d0707121e63c4355303446e62a4894e86a7b763
[ "BSD-3-Clause" ]
null
null
null
tests/test_ops.py
jbueltemeier/pystiche
0d0707121e63c4355303446e62a4894e86a7b763
[ "BSD-3-Clause" ]
null
null
null
tests/test_ops.py
jbueltemeier/pystiche
0d0707121e63c4355303446e62a4894e86a7b763
[ "BSD-3-Clause" ]
null
null
null
import itertools import torch from torch import nn from torch.nn.functional import mse_loss import pystiche from pystiche import ops from pystiche.enc import MultiLayerEncoder, SequentialEncoder, SingleLayerEncoder from pystiche.image.transforms.functional import transform_motif_affinely from pystiche.ops import func...
33.996939
88
0.619504
3,848
33,317
5.120322
0.055613
0.022535
0.027407
0.083236
0.766482
0.718216
0.688981
0.648023
0.612902
0.587931
0
0.028186
0.291863
33,317
979
89
34.031665
0.806934
0.00027
0
0.632432
0
0
0.007927
0.002222
0
0
0
0.001021
0.094595
1
0.156757
false
0.044595
0.013514
0.040541
0.27027
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6b4f05f1e7de5e00f64f645e4632888005356287
502
py
Python
students/migrations/0004_auto_20200523_0706.py
Latiftanga/recipe-api
c405c63a13aa9e573fdf18a1836f00fd74e3d7a9
[ "MIT" ]
null
null
null
students/migrations/0004_auto_20200523_0706.py
Latiftanga/recipe-api
c405c63a13aa9e573fdf18a1836f00fd74e3d7a9
[ "MIT" ]
null
null
null
students/migrations/0004_auto_20200523_0706.py
Latiftanga/recipe-api
c405c63a13aa9e573fdf18a1836f00fd74e3d7a9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-23 07:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('students', '0003_auto_20200523_0616'), ] operations = [ migrations.AlterField( model_name='klas...
25.1
130
0.651394
57
502
5.631579
0.684211
0.074766
0.087227
0.137072
0
0
0
0
0
0
0
0.080103
0.229084
502
19
131
26.421053
0.749354
0.089641
0
0
1
0
0.153846
0.050549
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
6b519eecf72fa4a15f1cf3cd4772fc5bb3d06be2
2,312
py
Python
rllib/agent/on_policy/actor_critic_agent.py
SamueleMeta/optimal_IS
7d8e0041825acfa003874cd1ad2aec0581f6a9e1
[ "MIT" ]
null
null
null
rllib/agent/on_policy/actor_critic_agent.py
SamueleMeta/optimal_IS
7d8e0041825acfa003874cd1ad2aec0581f6a9e1
[ "MIT" ]
null
null
null
rllib/agent/on_policy/actor_critic_agent.py
SamueleMeta/optimal_IS
7d8e0041825acfa003874cd1ad2aec0581f6a9e1
[ "MIT" ]
null
null
null
"""Implementation of Model-Free Policy Gradient Algorithms.""" import torch.nn.modules.loss as loss from torch.optim import Adam from rllib.algorithms.ac import ActorCritic from rllib.policy import NNPolicy from rllib.value_function import NNQFunction from .on_policy_agent import OnPolicyAgent class ActorCriticAge...
26.272727
88
0.574394
228
2,312
5.745614
0.442982
0.038168
0.021374
0.036641
0
0
0
0
0
0
0
0.012087
0.320069
2,312
87
89
26.574713
0.821247
0.225779
0
0.229508
0
0
0.014968
0
0
0
0
0.011494
0
1
0.032787
false
0
0.098361
0
0.180328
0
0
0
0
null
0
0
0
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
6b578947122af3d5a2c3ffd6e6cc73a243a1e00a
2,609
py
Python
test/magpicard/pareto.py
wavefunction91/LibPFASST
8bf49000d4e613496e824bb98f368527044f7064
[ "BSD-3-Clause-LBNL" ]
7
2019-05-22T11:02:55.000Z
2022-01-29T16:16:33.000Z
test/magpicard/pareto.py
wavefunction91/LibPFASST
8bf49000d4e613496e824bb98f368527044f7064
[ "BSD-3-Clause-LBNL" ]
2
2020-01-18T01:46:02.000Z
2022-01-29T16:32:52.000Z
test/magpicard/pareto.py
wavefunction91/LibPFASST
8bf49000d4e613496e824bb98f368527044f7064
[ "BSD-3-Clause-LBNL" ]
7
2019-02-09T09:38:39.000Z
2021-01-25T23:00:05.000Z
#! /usr/bin/env python import pickle import seaborn as sns import matplotlib.pyplot as plt from pf.pfasst import PFASST, Experiment, Params plt.switch_backend('agg') sns.set() sns.set_style('whitegrid', {'legend.frameon': True}) sns.set_context('paper') colors = sns.color_palette() tfinal = 5.0 params ...
24.383178
83
0.540054
318
2,609
4.336478
0.45283
0.039884
0.018854
0.023205
0.040609
0.040609
0
0
0
0
0
0.018234
0.327328
2,609
106
84
24.613208
0.767521
0.008049
0
0
0
0.011628
0.117511
0.027445
0
0
0
0
0
0
null
null
0
0.046512
null
null
0.069767
0
0
0
null
0
0
0
0
0
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
6b61b616be2b394237ea512e8bfba0a4be055d37
2,296
py
Python
lib/config.py
Sciteb-code/CODiT
f70bf57e6d4710066e2c9ef8f2203f04245715d1
[ "MIT" ]
null
null
null
lib/config.py
Sciteb-code/CODiT
f70bf57e6d4710066e2c9ef8f2203f04245715d1
[ "MIT" ]
null
null
null
lib/config.py
Sciteb-code/CODiT
f70bf57e6d4710066e2c9ef8f2203f04245715d1
[ "MIT" ]
null
null
null
class CFG: # Disease: _TARGET_R0 = 1.4 # before Test and Trace and Isolation DAYS_BEFORE_INFECTIOUS = 4 # t0 DAYS_INFECTIOUS_TO_SYMPTOMS = 2 # t1 DAYS_OF_SYMPTOMS = 5 # t2 PROB_SYMPTOMATIC = 0.6 # pS probability that an infected person develops actionable symptoms ...
43.320755
124
0.656359
323
2,296
4.346749
0.486068
0.021368
0.027778
0.034188
0.074074
0.074074
0.037037
0
0
0
0
0.03726
0.275261
2,296
52
125
44.153846
0.80649
0.310976
0
0
0
0
0.032196
0
0
0
0
0
0
1
0.057143
false
0
0
0
0.657143
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6b6afeb6f7d8af5bf14b092da5667003103b0c85
1,271
py
Python
src/Schedule/IP_Queue.py
YangTianz/Proxy_Platform
c2450382389df41ada4315895bb6e40a99749ecf
[ "MIT" ]
1
2018-06-25T04:11:02.000Z
2018-06-25T04:11:02.000Z
src/Schedule/IP_Queue.py
YangTianz/Proxy_Platform
c2450382389df41ada4315895bb6e40a99749ecf
[ "MIT" ]
2
2021-03-31T18:50:33.000Z
2021-12-13T19:47:41.000Z
src/Schedule/IP_Queue.py
YangTianz/Proxy_Platform
c2450382389df41ada4315895bb6e40a99749ecf
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from queue import Queue from Utils import redisdb from Utils import DBUtils2 import re import json class IP_Queue:#创建可用IP队列 def __init__(self,size,session): self.__ip_queue=Queue() self.__myip=1 if(session!=False) and (session!=True): self.__myip={"ht...
24.921569
66
0.571204
172
1,271
3.953488
0.331395
0.082353
0.113235
0.023529
0.080882
0.019118
0.019118
0.019118
0.019118
0.019118
0
0.014396
0.289536
1,271
51
67
24.921569
0.738649
0.022817
0
0
0
0.025641
0.033871
0.028226
0
0
0
0
0
1
0.179487
false
0
0.128205
0.076923
0.512821
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6b6cc9da9f5799b5849a473c4b3ad9886a687daa
258
py
Python
testapp/views.py
ioannistsanaktsidis/flaskreactredux
2f5fe627441c407a42c82b1e520d7ac850ee5da8
[ "MIT" ]
1
2019-03-07T13:01:18.000Z
2019-03-07T13:01:18.000Z
testapp/views.py
ioannistsanaktsidis/flaskreactredux
2f5fe627441c407a42c82b1e520d7ac850ee5da8
[ "MIT" ]
null
null
null
testapp/views.py
ioannistsanaktsidis/flaskreactredux
2f5fe627441c407a42c82b1e520d7ac850ee5da8
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify blueprint = Blueprint( 'testapp_api', __name__, url_prefix='/api' ) @blueprint.route('/health', methods=['HEAD', 'GET']) def ping(): """Load balancer ping view.""" return jsonify({"health": "ok"})
17.2
52
0.631783
29
258
5.413793
0.758621
0
0
0
0
0
0
0
0
0
0
0
0.186047
258
14
53
18.428571
0.747619
0.093023
0
0
0
0
0.162281
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0.333333
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
6b7cc4b5bca9d77dfffcf7b9b45d0a6a7b0c1132
662
py
Python
LeetCode/Python/Problem#7. Reverse Integer/Reverse Integer.py
MeAnupSarkar/Competitve-Programming-Online-Solutions
88cb9c1ba58e2016e46405b9024e09ba4480ddfb
[ "MIT" ]
6
2021-11-17T07:26:23.000Z
2021-12-30T05:09:21.000Z
LeetCode/Python/Problem#7. Reverse Integer/Reverse Integer.py
MeAnupSarkar/Competitve-Programming-Online-Solutions
88cb9c1ba58e2016e46405b9024e09ba4480ddfb
[ "MIT" ]
null
null
null
LeetCode/Python/Problem#7. Reverse Integer/Reverse Integer.py
MeAnupSarkar/Competitve-Programming-Online-Solutions
88cb9c1ba58e2016e46405b9024e09ba4480ddfb
[ "MIT" ]
1
2021-11-21T10:26:04.000Z
2021-11-21T10:26:04.000Z
class Solution: def reverse(self, x: int) -> int: l = 0 val = 0 flag = 1 if x == 0: return x else: if x>0: val = x l = len(str(val)) else: val = -1*x l = len(str(val)) ...
24.518519
90
0.330816
75
662
2.92
0.32
0.127854
0.03653
0.073059
0.100457
0
0
0
0
0
0
0.093023
0.545317
662
27
91
24.518519
0.634552
0
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.045455
false
0
0
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
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
6b826d6767a48a281d890122983056cdfa05f1d3
3,127
py
Python
client/products/schema/types.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
6
2019-11-21T10:09:49.000Z
2021-06-19T09:52:59.000Z
client/products/schema/types.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
null
null
null
client/products/schema/types.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
null
null
null
import django_filters import graphene from django.db.models import Min, Max from djmoney.models.fields import MoneyField from graphene import relay from graphene_django import DjangoObjectType from graphene_django.converter import convert_django_field from graphene_django.filter import DjangoFilterConnectionField from ...
26.058333
100
0.699392
344
3,127
6.229651
0.299419
0.025198
0.039197
0.033598
0.171722
0.150257
0.082128
0.04853
0.04853
0
0
0
0.216821
3,127
119
101
26.277311
0.875051
0.070995
0
0.2625
0
0
0.035185
0
0
0
0
0
0
1
0.0875
false
0
0.15
0.0625
0.6375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6b827b663c84558ae320e9baed9d20978df4dfc7
717
py
Python
week02/1252_plb.py
shareholders-meeting-of-chicken-farm/ChickenCode
f8d7c2089ce10af34a1b1127b2413cd289f54308
[ "Apache-2.0" ]
null
null
null
week02/1252_plb.py
shareholders-meeting-of-chicken-farm/ChickenCode
f8d7c2089ce10af34a1b1127b2413cd289f54308
[ "Apache-2.0" ]
null
null
null
week02/1252_plb.py
shareholders-meeting-of-chicken-farm/ChickenCode
f8d7c2089ce10af34a1b1127b2413cd289f54308
[ "Apache-2.0" ]
null
null
null
class Solution: def oddCells(self, n: int, m: int, indices: list) -> int: row_operation = [False] * n col_operation = [False] * m for index in indices: row_id, col_id = index row_operation[row_id] = not row_operation[row_id] col_operation[col_id] = not co...
28.68
61
0.548117
93
717
3.903226
0.290323
0.242424
0.15427
0.093664
0
0
0
0
0
0
0
0.011261
0.380753
717
24
62
29.875
0.806306
0
0
0.105263
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.157895
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6b846ca631dc1fe227f7d999ba65e7f99897011b
12,831
py
Python
scripts/Neural_classifier.py
divadnauj-GB/RF_nvbitfi
dc764593a49462b8ca100bab13319eaeb9553e6a
[ "Apache-2.0" ]
null
null
null
scripts/Neural_classifier.py
divadnauj-GB/RF_nvbitfi
dc764593a49462b8ca100bab13319eaeb9553e6a
[ "Apache-2.0" ]
null
null
null
scripts/Neural_classifier.py
divadnauj-GB/RF_nvbitfi
dc764593a49462b8ca100bab13319eaeb9553e6a
[ "Apache-2.0" ]
null
null
null
import os, sys, re, string, operator, math, datetime, time, signal, subprocess, shutil, glob, pkgutil import params as p import common_functions as cf before = -1 ############################################################################### # Check for timeout and kill the job if it has passed the threshold #######...
37.191304
198
0.614216
1,898
12,831
3.995258
0.169652
0.033232
0.029012
0.039562
0.444283
0.387314
0.342608
0.326388
0.325069
0.289727
0
0.017418
0.172239
12,831
344
199
37.299419
0.696545
0.166238
0
0.245833
0
0.016667
0.108489
0
0
0
0
0
0
0
null
null
0
0.0125
null
null
0.054167
0
0
0
null
0
0
0
0
0
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
6b847c088d7322098982087eff585ec445e235bf
556
py
Python
Surukkam/shrink/migrations/0002_urls_created.py
laxmena/URL-Shortener
875763d4a367b7d794ec43282ea5e5e077fa45de
[ "MIT" ]
8
2017-09-24T17:37:57.000Z
2021-04-23T10:44:59.000Z
Surukkam/shrink/migrations/0002_urls_created.py
laxmena/URL-Shortener
875763d4a367b7d794ec43282ea5e5e077fa45de
[ "MIT" ]
null
null
null
Surukkam/shrink/migrations/0002_urls_created.py
laxmena/URL-Shortener
875763d4a367b7d794ec43282ea5e5e077fa45de
[ "MIT" ]
1
2020-06-19T19:17:22.000Z
2020-06-19T19:17:22.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-08-23 07:03 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('shrink', '0001_initial'), ] operations = [ mig...
24.173913
105
0.638489
61
556
5.672131
0.754098
0.063584
0.109827
0
0
0
0
0
0
0
0
0.050119
0.246403
556
22
106
25.272727
0.775656
0.122302
0
0
1
0
0.08866
0
0
0
0
0
0
1
0
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6b98e0e3e4961a71f10017c61753f68b45386fc6
13,458
py
Python
budget-rnn/src/controllers/controller_utils.py
tejaskannan/ml-models
ad5acad2c0ce75773062ffcdff088a6fbe5ffc17
[ "Apache-2.0" ]
1
2021-06-28T15:40:41.000Z
2021-06-28T15:40:41.000Z
budget-rnn/src/controllers/controller_utils.py
tejaskannan/ml-models
ad5acad2c0ce75773062ffcdff088a6fbe5ffc17
[ "Apache-2.0" ]
5
2021-03-04T19:42:15.000Z
2022-02-10T05:46:15.000Z
budget-rnn/src/controllers/controller_utils.py
tejaskannan/budget-rnn
ad5acad2c0ce75773062ffcdff088a6fbe5ffc17
[ "Apache-2.0" ]
null
null
null
import os.path import numpy as np import math from collections import namedtuple from typing import Dict, Any, Tuple, List, Optional from models.adaptive_model import AdaptiveModel from models.standard_model import StandardModel from dataset.dataset import Dataset, DataSeries from utils.file_utils import save_by_file_...
43.273312
143
0.67484
1,723
13,458
5.115496
0.144515
0.023145
0.013274
0.015317
0.655661
0.637055
0.637055
0.633424
0.62049
0.62049
0
0.006499
0.24543
13,458
310
144
43.412903
0.861448
0.296849
0
0.4375
0
0
0.019183
0.002834
0
0
0
0
0.0125
1
0.05
false
0
0.06875
0
0.175
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
6ba15782ed3003538232f1be0cb6eadd3757aaac
686
py
Python
tweets/migrations/0004_auto_20190111_1456.py
marvinChomba/twitter
671193edd40cf6320ec9a5ed4ad593aacd9a3a00
[ "MIT" ]
null
null
null
tweets/migrations/0004_auto_20190111_1456.py
marvinChomba/twitter
671193edd40cf6320ec9a5ed4ad593aacd9a3a00
[ "MIT" ]
null
null
null
tweets/migrations/0004_auto_20190111_1456.py
marvinChomba/twitter
671193edd40cf6320ec9a5ed4ad593aacd9a3a00
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2019-01-11 11:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tweets', '0003_auto_20190110_1752'), ] operations = [ migrations.CreateModel( name='Tag', fields=[ (...
26.384615
114
0.56414
70
686
5.4
0.714286
0.042328
0
0
0
0
0
0
0
0
0
0.069038
0.303207
686
25
115
27.44
0.721757
0.065598
0
0.105263
1
0
0.098592
0.035994
0
0
0
0
0
1
0
false
0
0.052632
0
0.210526
0
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
6ba186d9196f702623054b52df2ceee34f671d5b
783
py
Python
___init__.py
AndrewQuinn2020/Anki-Card-Sequences
2c3a3884607ab095083939bf791d528b5c2c3183
[ "MIT" ]
null
null
null
___init__.py
AndrewQuinn2020/Anki-Card-Sequences
2c3a3884607ab095083939bf791d528b5c2c3183
[ "MIT" ]
null
null
null
___init__.py
AndrewQuinn2020/Anki-Card-Sequences
2c3a3884607ab095083939bf791d528b5c2c3183
[ "MIT" ]
null
null
null
# import the main window object (mw) from aqt from aqt import mw # import the "show info" tool from utils.py from aqt.utils import showInfo, qconnect # import all of the Qt GUI library from aqt.qt import * # We're going to add a menu item below. First we want to create a function to # be called when the menu item is...
27.964286
77
0.722861
129
783
4.387597
0.550388
0.04947
0.045936
0
0
0
0
0
0
0
0
0
0.200511
783
27
78
29
0.904153
0.572158
0
0
0
0
0.055728
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
6ba6ae6d361c74e103f46d24ff850abda08b55eb
5,320
py
Python
run.py
batyrotich/Password-Locker
61e75ebf7dfdf7153961c81c2f165a9d389beb64
[ "MIT" ]
null
null
null
run.py
batyrotich/Password-Locker
61e75ebf7dfdf7153961c81c2f165a9d389beb64
[ "MIT" ]
null
null
null
run.py
batyrotich/Password-Locker
61e75ebf7dfdf7153961c81c2f165a9d389beb64
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.8 import random from user import User from credentials import Credentials import string import getpass def create_user(name, password): ''' function to create a new user ''' new_user = User(name, password) return new_user def save_user(user): ''' function to save use...
28.449198
98
0.568421
562
5,320
5.259786
0.220641
0.03383
0.021989
0.041949
0.074425
0
0
0
0
0
0
0.002268
0.33703
5,320
186
99
28.602151
0.835838
0.086278
0
0.146789
0
0
0.271988
0.025506
0
0
0
0
0
1
0.110092
false
0.293578
0.045872
0
0.220183
0.357798
0
0
0
null
0
0
0
0
0
0
0
0
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
6bb302619ca67d2ad2e7d7b0cfc2f845588bc331
404
py
Python
Ar_Script/ar_234_字典密码保存箱.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
null
null
null
Ar_Script/ar_234_字典密码保存箱.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
1
2020-01-19T01:19:57.000Z
2020-01-19T01:19:57.000Z
Ar_Script/ar_234_字典密码保存箱.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
null
null
null
import sys,pyperclip passwords={ 'qq':'123456789', 'weibo':'sfsfsdfsdfsdfhf', '163':'324324dfgdgddcxv', } if len(sys.argv)<2: print('usage: py pw.py[account]- copy account password') account=sys.argv[1] if account in passwords.keys(): pyperclip.copy(passwords[account]) print('password has co...
21.263158
60
0.685644
54
404
5.12963
0.648148
0.050542
0
0
0
0
0
0
0
0
0
0.059347
0.165842
404
18
61
22.444444
0.762611
0
0
0
0
0
0.408416
0
0
0
0
0
0
1
0
false
0.428571
0.071429
0
0.071429
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
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
6bb50a01f215e3343150d1ff704a6d611b186d31
1,549
py
Python
src/package/numerical.py
Aerl/actions-example-iulusoy
ff13942e976f277bc4b2fdb33257a70cdf7a369e
[ "MIT" ]
1
2021-03-22T08:08:30.000Z
2021-03-22T08:08:30.000Z
src/data_analysis/numerical.py
Aerl/Team6ScientificSoftware
14f30ef1144be6a3f9d4356a8ff999b3b32e87a7
[ "MIT" ]
null
null
null
src/data_analysis/numerical.py
Aerl/Team6ScientificSoftware
14f30ef1144be6a3f9d4356a8ff999b3b32e87a7
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def autocorr_single_tp(a: np.array, t: int) -> float: """Do autocorrelation for a single time point. Parameters ---------- a : np.array The array to correlate (complex or real number) t : int The distance (in the index) Returns -----...
25.816667
90
0.634603
213
1,549
4.535211
0.356808
0.102484
0.05383
0.031056
0.10352
0
0
0
0
0
0
0.001724
0.25113
1,549
59
91
26.254237
0.831034
0.517108
0
0.142857
0
0
0.050903
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
6bb628e709b03529356f89358784c26e57ba9d9b
1,266
py
Python
league_analysis/migrations/0003_auto_20191010_1714.py
tadgh/wldl-cast-stats
bd55e1500cf0f917c9de8b5b194246ff3abfabce
[ "MIT" ]
null
null
null
league_analysis/migrations/0003_auto_20191010_1714.py
tadgh/wldl-cast-stats
bd55e1500cf0f917c9de8b5b194246ff3abfabce
[ "MIT" ]
5
2020-06-05T23:41:29.000Z
2021-06-09T18:31:09.000Z
league_analysis/migrations/0003_auto_20191010_1714.py
tadgh/wldl-cast-stats
bd55e1500cf0f917c9de8b5b194246ff3abfabce
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-11 00:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('league_analysis', '0002_auto_20191008_1832'), ] operations = [ migrations.RenameField( model_name='playerrollingstatistics', ...
28.772727
55
0.586098
110
1,266
6.5
0.436364
0.075524
0.109091
0.125874
0.591608
0.591608
0.514685
0.262937
0.262937
0.262937
0
0.03908
0.312796
1,266
43
56
29.44186
0.782759
0.035545
0
0.540541
1
0
0.233798
0.129614
0
0
0
0
0
1
0
false
0
0.027027
0
0.108108
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6bb98174a95c290833eeeedf6c4f200f50f294c5
592
py
Python
tests/integration/faiss_psql/test_flow_integration.py
albertocarpentieri/executors
3b025b6106fca9dba3c2569b0e60da050273fa6e
[ "Apache-2.0" ]
null
null
null
tests/integration/faiss_psql/test_flow_integration.py
albertocarpentieri/executors
3b025b6106fca9dba3c2569b0e60da050273fa6e
[ "Apache-2.0" ]
null
null
null
tests/integration/faiss_psql/test_flow_integration.py
albertocarpentieri/executors
3b025b6106fca9dba3c2569b0e60da050273fa6e
[ "Apache-2.0" ]
null
null
null
import os import pytest from jina import Document, Flow from jinahub.indexers.searcher.compound.FaissPostgresIndexer import FaissPostgresIndexer cur_dir = os.path.dirname(os.path.abspath(__file__)) compose_yml = os.path.join(cur_dir, 'docker-compose.yml') @pytest.mark.parametrize('docker_compose', [compose_yml], i...
28.190476
88
0.744932
76
592
5.605263
0.552632
0.122066
0
0
0
0
0
0
0
0
0
0.003922
0.138514
592
20
89
29.6
0.831373
0.052365
0
0
0
0
0.139535
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6bbca8538f0cb2ebb2c1842314fd22c7345a5307
829
py
Python
energyPATHWAYS/tests/test_hydro_p2g_dispatch.py
jdailey/EnergyPATHWAYS
0fb0ead475b6395f6b07fc43fe6c85826ee47d0f
[ "MIT" ]
26
2017-02-06T22:57:29.000Z
2022-03-25T20:02:32.000Z
energyPATHWAYS/tests/test_hydro_p2g_dispatch.py
jdailey/EnergyPATHWAYS
0fb0ead475b6395f6b07fc43fe6c85826ee47d0f
[ "MIT" ]
65
2016-01-22T01:33:05.000Z
2016-09-03T14:46:08.000Z
energyPATHWAYS/tests/test_hydro_p2g_dispatch.py
jdailey/EnergyPATHWAYS
0fb0ead475b6395f6b07fc43fe6c85826ee47d0f
[ "MIT" ]
11
2017-02-24T23:27:36.000Z
2021-10-18T17:33:37.000Z
import unittest import energyPATHWAYS import numpy as np import pandas as pd import pylab import os import time from energyPATHWAYS import dispatch_budget import math import copy from ddt import ddt, data, unpack data_dir = os.path.join(os.getcwd(), 'test_dispatch_data') load = pd.DataFrame.from_csv(os.path.join(dat...
25.90625
138
0.781665
128
829
4.914063
0.34375
0.143084
0.047695
0.057234
0.111288
0.111288
0.111288
0.111288
0.111288
0
0
0.034621
0.094089
829
31
139
26.741935
0.802929
0
0
0
0
0
0.068758
0
0
0
0
0
0
1
0
false
0
0.458333
0
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6bbd631b71e157289f1da13e677b51be89448ae5
221
py
Python
icpc/2018-8-4/B-gen.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
3
2018-08-30T09:43:20.000Z
2019-12-03T04:53:43.000Z
icpc/2018-8-4/B-gen.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
icpc/2018-8-4/B-gen.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
#!/usr/bin/env pypy from random import * from sys import argv T, n = map(int, argv[1:]) print T for t in xrange(T): print n for i in xrange(2, n + 1): print i / 2, i # print randint(1, i - 1), i
17
36
0.556561
43
221
2.860465
0.488372
0.097561
0
0
0
0
0
0
0
0
0
0.039216
0.307692
221
12
37
18.416667
0.764706
0.20362
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.375
0
0
0
null
0
0
0
0
0
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
6bc09b13285c79cfae249e5a60d73eec652c0559
549
py
Python
courses/migrations/0005_course_students.py
KwabenaYeboah/Elearning-app
c6bf26650bd38421fd3de41852edf591ef218e9c
[ "PostgreSQL", "MIT" ]
null
null
null
courses/migrations/0005_course_students.py
KwabenaYeboah/Elearning-app
c6bf26650bd38421fd3de41852edf591ef218e9c
[ "PostgreSQL", "MIT" ]
1
2022-03-01T09:20:12.000Z
2022-03-01T09:20:12.000Z
courses/migrations/0005_course_students.py
KwabenaYeboah/Elearning-app
c6bf26650bd38421fd3de41852edf591ef218e9c
[ "PostgreSQL", "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-12-12 06:54 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('courses', '0004_auto_20211209_1229'), ] operations...
26.142857
115
0.668488
61
549
5.836066
0.688525
0.05618
0.089888
0.117978
0
0
0
0
0
0
0
0.070922
0.229508
549
20
116
27.45
0.770686
0.078324
0
0
1
0
0.119048
0.045635
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6bc58556c0ac83b4eed21e216f5f5dd4ee1f1ec0
4,953
py
Python
migrate_tool/services/s3.py
Telunsu/cos_migrate_tool_for_media
084535f6dc9cde151e3b55f816e59dbc4899b592
[ "MIT" ]
null
null
null
migrate_tool/services/s3.py
Telunsu/cos_migrate_tool_for_media
084535f6dc9cde151e3b55f816e59dbc4899b592
[ "MIT" ]
null
null
null
migrate_tool/services/s3.py
Telunsu/cos_migrate_tool_for_media
084535f6dc9cde151e3b55f816e59dbc4899b592
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from logging import getLogger from migrate_tool import storage_service from migrate_tool.task import Task from boto.s3.key import Key from boto.s3.multipart import MultiPartUpload from boto.s3.connection import S3Connection import boto import math import os from filechunkio import FileChunkIO ...
46.726415
117
0.449626
457
4,953
4.649891
0.291028
0.031059
0.036706
0.022588
0.128941
0.100706
0.100706
0.054588
0.054588
0.054588
0
0.025165
0.478498
4,953
105
118
47.171429
0.797522
0.007066
0
0.127907
0
0
0.060631
0
0
0
0
0
0
0
null
null
0
0.127907
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
6bca2a44f006a7b03b7c1a1f072f4be492ca8782
2,915
py
Python
BioPython.py
BlackAdder84/Bioinformatics
6cc662b6c4a3349a89f6fdd26f05f1f6228bd912
[ "MIT" ]
1
2017-06-09T03:06:21.000Z
2017-06-09T03:06:21.000Z
BioPython.py
BlackAdder84/Bioinformatics
6cc662b6c4a3349a89f6fdd26f05f1f6228bd912
[ "MIT" ]
null
null
null
BioPython.py
BlackAdder84/Bioinformatics
6cc662b6c4a3349a89f6fdd26f05f1f6228bd912
[ "MIT" ]
1
2017-05-01T21:15:11.000Z
2017-05-01T21:15:11.000Z
from Bio.Seq import Seq from Bio.Alphabet import IUPAC my_seq = Seq("AGTACACTGGT") # without alphabet defined my_seq = Seq("AGTACACTGGT", IUPAC.unambiguous_dna) # DNA alphabet # get the sequence alphabet my_seq.alphabet # print the position, sequence and lenght for index, letter in enumerate(my_seq) : p...
26.261261
103
0.771184
422
2,915
5.234597
0.35782
0.033952
0.027162
0.043459
0.130376
0.089633
0.089633
0.089633
0.048891
0.048891
0
0.011736
0.152316
2,915
110
104
26.5
0.881425
0.467238
0
0.177778
0
0
0.105438
0.073607
0
0
0
0
0
0
null
null
0
0.266667
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6bcb5af47c14d329a51c988f30f7534cd7ff4665
1,392
py
Python
classifier_builder.py
diptamath/SICOMP
91345858344bce4bed8d68999f856aed79f11c4b
[ "MIT" ]
null
null
null
classifier_builder.py
diptamath/SICOMP
91345858344bce4bed8d68999f856aed79f11c4b
[ "MIT" ]
null
null
null
classifier_builder.py
diptamath/SICOMP
91345858344bce4bed8d68999f856aed79f11c4b
[ "MIT" ]
null
null
null
import os import numpy as np import scipy.io from sklearn.manifold import TSNE from sklearn.svm import SVC from sklearn.model_selection import train_test_split from sklearn.metrics import confusion_matrix, classification_report import matplotlib.pyplot as plt from matplotlib import style style.use('fivethirtyeight') im...
26.264151
90
0.780172
196
1,392
5.397959
0.392857
0.023629
0.026465
0.020794
0.026465
0
0
0
0
0
0
0.032643
0.097701
1,392
52
91
26.769231
0.809713
0.005747
0
0
0
0
0.125996
0.091238
0
0
0
0
0
1
0
false
0
0.305556
0
0.305556
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
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
6bd746b15692e49fcc44bccd2743d4a5d9731d63
1,184
py
Python
BORROWERS_RECORDS.py
WitteDuivel/library_management-
f926d9d4734fece80f337445d5ede3423809bd00
[ "MIT" ]
null
null
null
BORROWERS_RECORDS.py
WitteDuivel/library_management-
f926d9d4734fece80f337445d5ede3423809bd00
[ "MIT" ]
null
null
null
BORROWERS_RECORDS.py
WitteDuivel/library_management-
f926d9d4734fece80f337445d5ede3423809bd00
[ "MIT" ]
1
2021-03-08T10:28:57.000Z
2021-03-08T10:28:57.000Z
import mysql.connector mydb=mysql.connector.connect(host="localhost",user="root",passwd="2zkNKcz&EOZaRjc$",database="library") mycursor=mydb.cursor() BorrowersID=int(input("ENTER YOUR BORROWER_ID:- ")) mycursor.execute("INSERT INTO BOOKS [borrowers_ID] VALUES(BorrowersID)") bookID=input("ENTER THE BOOK'S ID:- ") ...
53.818182
104
0.726351
162
1,184
5.216049
0.37037
0.08284
0.173965
0.207101
0.364497
0.286391
0.134911
0.134911
0.134911
0.134911
0
0.000963
0.123311
1,184
22
105
53.818182
0.813102
0
0
0
0
0
0.528351
0
0
0
0
0
0
1
0
false
0.045455
0.045455
0
0.045455
0.045455
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
6be68ee8f286f9919ed36f253ed84d7a88363a63
11,011
py
Python
VStat.py
andreLTMoraes/VStat
2e9626f1b5665c6a4eaae35d223fb126eb2f46fa
[ "MIT" ]
null
null
null
VStat.py
andreLTMoraes/VStat
2e9626f1b5665c6a4eaae35d223fb126eb2f46fa
[ "MIT" ]
null
null
null
VStat.py
andreLTMoraes/VStat
2e9626f1b5665c6a4eaae35d223fb126eb2f46fa
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # GUI module generated by PAGE version 4.20 # in conjunction with Tcl version 8.6 # Feb 20, 2019 02:41:59 PM -0300 platform: Windows NT """ Created on Mon Feb 18 10:08:04 2019 @author: André Moraes """ import sys try: import Tkinter as tk except ImportError: ...
37.968966
93
0.553174
1,127
11,011
5.273292
0.242236
0.040384
0.025913
0.074037
0.465085
0.373549
0.323574
0.293286
0.256268
0.199731
0
0.061983
0.330397
11,011
289
94
38.100346
0.744066
0.065389
0
0.273543
1
0
0.088413
0
0
0
0
0
0
1
0.022422
false
0
0.076233
0
0.107623
0
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
6be7b2272cc60d0dac5b201f3d022f1c21d364ac
1,174
py
Python
auditoryCortex/ear/AudioThread.py
Jan201102/piAsisstant
088e92186fb4952b022e55260e7d04f325a0d372
[ "MIT" ]
2
2021-11-25T22:32:19.000Z
2022-03-26T16:40:34.000Z
auditoryCortex/ear/AudioThread.py
Jan201102/piAssistant
088e92186fb4952b022e55260e7d04f325a0d372
[ "MIT" ]
null
null
null
auditoryCortex/ear/AudioThread.py
Jan201102/piAssistant
088e92186fb4952b022e55260e7d04f325a0d372
[ "MIT" ]
null
null
null
from queue import Queue from threading import Thread import logging class AudioThread: def __init__(self, stream, chunk, timeout=0, rate=16000): self.run = True self.queue = Queue(maxsize=0) self.thread = Thread(target=self.read_stream, args=(stream, chunk, rate, timeout)) self.thr...
29.35
90
0.564736
141
1,174
4.624113
0.382979
0.082822
0.055215
0.067485
0.180982
0.180982
0.180982
0.180982
0.180982
0.180982
0
0.012723
0.330494
1,174
39
91
30.102564
0.816794
0
0
0.242424
0
0
0.029813
0
0
0
0
0
0
1
0.121212
false
0.060606
0.090909
0
0.30303
0
0
0
0
null
0
0
0
0
0
0
0
0
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
6be875d43da9ca73d516b3e9a9e5b061b0650a9e
16,273
py
Python
tests/units/tournaments/swiss.py
happz/settlers
961a6d2121ab6e89106f17017f026c60c77f16f9
[ "MIT" ]
1
2018-11-16T09:41:31.000Z
2018-11-16T09:41:31.000Z
tests/units/tournaments/swiss.py
happz/settlers
961a6d2121ab6e89106f17017f026c60c77f16f9
[ "MIT" ]
15
2015-01-07T14:17:36.000Z
2019-04-29T13:26:43.000Z
tests/units/tournaments/swiss.py
happz/settlers
961a6d2121ab6e89106f17017f026c60c77f16f9
[ "MIT" ]
null
null
null
import tests import tests.units.tournaments import lib.datalayer import games import games.settlers import tournaments import functools import hruntime from tests.units.tournaments import create_tournament, create_and_populate_tournament from tests import * def print_players(players): for p in players: prin...
27.581356
209
0.524796
1,779
16,273
4.632378
0.150084
0.037374
0.02621
0.017838
0.349594
0.303604
0.263318
0.236136
0.211139
0.193544
0
0.033554
0.349843
16,273
589
210
27.628183
0.745369
0.011061
0
0.298246
0
0.001949
0.265701
0.015545
0
0
0
0
0
0
null
null
0
0.019493
null
null
0.023392
0
0
0
null
0
0
0
0
0
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
6beb3abc553d5cead136af22717bd778c6abc1c9
1,348
py
Python
allsky/launch_allsky_serial.py
philbull/SinglePixel
0cd3dba84a0a36ab672707154d3cf8dde903872b
[ "MIT" ]
null
null
null
allsky/launch_allsky_serial.py
philbull/SinglePixel
0cd3dba84a0a36ab672707154d3cf8dde903872b
[ "MIT" ]
null
null
null
allsky/launch_allsky_serial.py
philbull/SinglePixel
0cd3dba84a0a36ab672707154d3cf8dde903872b
[ "MIT" ]
null
null
null
# Simple program to launch a serial job for the all sky fitting import os import healpy as hp import pdb def main( in_list = 'sync,mbb', fit_list = 'sync,mbb', Nside = 4, redo = 0 ): in_list_all = [ 'cmb', ] ; fit_list_all = [ 'cmb', ] # Removing any white spaces in_list = ...
33.7
110
0.586795
200
1,348
3.72
0.42
0.064516
0.03629
0.043011
0.064516
0.064516
0
0
0
0
0
0.020408
0.272997
1,348
39
111
34.564103
0.738776
0.147626
0
0
0
0
0.131464
0.07362
0
0
0
0
0
0
null
null
0
0.107143
null
null
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6bee5abea0d79f7941406636c810fa405397ca32
14,792
py
Python
parse.py
hesamzkr/python
ee55d3f110f763ca57ac5214040fb86469a3f84b
[ "MIT" ]
null
null
null
parse.py
hesamzkr/python
ee55d3f110f763ca57ac5214040fb86469a3f84b
[ "MIT" ]
null
null
null
parse.py
hesamzkr/python
ee55d3f110f763ca57ac5214040fb86469a3f84b
[ "MIT" ]
null
null
null
import sys import re from lex import * # Parse translates tokens into C#, checks grammar and emits the code class Parser: def __init__(self, lexer, emitter): self.lexer = lexer self.emitter = emitter self.symbols = set() # All the declared variables self.curToken = None ...
36.433498
319
0.557599
1,473
14,792
5.596741
0.135777
0.118874
0.192504
0.053372
0.584425
0.463853
0.396773
0.279597
0.229743
0.19311
0
0.001103
0.325852
14,792
405
320
36.523457
0.825612
0.031098
0
0.534375
0
0.00625
0.094852
0.02263
0
0
0
0
0
1
0.05
false
0
0.009375
0.009375
0.078125
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
6bf0ccd37cb7a6b1b9830d5906534d63260392e6
1,104
py
Python
test_openArrayBlock.py
iresprite/json-chunked-stream-client
a178cb4f04e04582a9051ab45c9feee15e8d540e
[ "Apache-2.0" ]
1
2015-01-01T23:35:37.000Z
2015-01-01T23:35:37.000Z
test_openArrayBlock.py
iresprite/json-chunked-stream-client
a178cb4f04e04582a9051ab45c9feee15e8d540e
[ "Apache-2.0" ]
null
null
null
test_openArrayBlock.py
iresprite/json-chunked-stream-client
a178cb4f04e04582a9051ab45c9feee15e8d540e
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase import ByteStreamHandler class TestOpenArrayBlock(TestCase): def setUp(self): stack = [ByteStreamHandler.State()] self.open_array_block = ByteStreamHandler.OpenArrayBlock(stack) def test_handle(self): self.assertIsInstance(self.open_array_block.handle("]"...
50.181818
105
0.735507
107
1,104
7.373832
0.252336
0.081115
0.131812
0.18251
0.48289
0.48289
0.386565
0.386565
0
0
0
0
0.144022
1,104
22
106
50.181818
0.834921
0
0
0
0
0
0.00543
0
0
0
0
0
0.388889
1
0.166667
false
0
0.111111
0
0.333333
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
6bf14d46e70db106a4ad2309edb20658c894c3af
1,072
py
Python
1_bisection.py
kr813/num_calc
f187ca07937ed8472761e988ef0de561b5d80251
[ "MIT" ]
null
null
null
1_bisection.py
kr813/num_calc
f187ca07937ed8472761e988ef0de561b5d80251
[ "MIT" ]
null
null
null
1_bisection.py
kr813/num_calc
f187ca07937ed8472761e988ef0de561b5d80251
[ "MIT" ]
null
null
null
# 二分法 # TODO: a,bの選び直し # 解が二つあるので,初期値によっては収束しなくなる.why? import matplotlib.pyplot as plt EQUATION = 1 def f(x): if EQUATION == 1: return x ** 2 + 2 * x - 1 # 手計算の解は√2 - 1, -1 - √2 elif EQUATION == 2: return x def main(): epsilon = 0.1 ** 16 n = 0 c_old = 0.191 WRITE = 1 cl...
19.851852
88
0.418843
149
1,072
2.95302
0.389262
0.081818
0.061364
0.036364
0.072727
0.072727
0
0
0
0
0
0.053659
0.426306
1,072
54
89
19.851852
0.658537
0.102612
0
0.051282
0
0
0.039707
0
0
0
0
0.018519
0
1
0.051282
false
0
0.025641
0
0.128205
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6bf31d2a120034538ad7bf6593d6caef6a2c2594
11,596
py
Python
bindings/python/pinocchio/visualize/meshcat_visualizer.py
Sreevis/pinocchio
7e3f96e59047b40e678a53b3877b401af4b6d0bd
[ "BSD-2-Clause-FreeBSD" ]
8
2021-05-12T03:04:59.000Z
2021-08-10T11:43:36.000Z
bindings/python/pinocchio/visualize/meshcat_visualizer.py
Sreevis/pinocchio
7e3f96e59047b40e678a53b3877b401af4b6d0bd
[ "BSD-2-Clause-FreeBSD" ]
1
2018-10-29T12:33:13.000Z
2018-10-29T14:00:48.000Z
bindings/python/pinocchio/visualize/meshcat_visualizer.py
Sreevis/pinocchio
7e3f96e59047b40e678a53b3877b401af4b6d0bd
[ "BSD-2-Clause-FreeBSD" ]
2
2019-07-16T00:20:56.000Z
2021-09-07T18:06:30.000Z
from .. import pinocchio_pywrap as pin from ..utils import npToTuple from . import BaseVisualizer import os import warnings import numpy as np try: import hppfcl WITH_HPP_FCL_BINDINGS = True except: WITH_HPP_FCL_BINDINGS = False def loadBVH(bvh): import meshcat.geometry as mg num_vertices = bv...
43.593985
144
0.607192
1,419
11,596
4.882311
0.200141
0.064665
0.017321
0.010393
0.345121
0.276703
0.204244
0.143331
0.109411
0.08776
0
0.019325
0.281563
11,596
265
145
43.758491
0.812267
0.12832
0
0.184783
0
0
0.044163
0.002208
0
0
0
0.015094
0
1
0.076087
false
0
0.070652
0
0.201087
0
0
0
0
null
0
0
0
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
6bf3ceac0fe59b01e2a6002429ebeb2b31126638
890
py
Python
Training_data/make_data.py
vaibhav9518/FaceReck-
424804344dbb874fab1cd5240963d5f6512a16b6
[ "MIT" ]
5
2015-05-27T19:53:14.000Z
2019-06-27T12:22:19.000Z
Training_data/make_data.py
vaibhav9518/FaceReck-
424804344dbb874fab1cd5240963d5f6512a16b6
[ "MIT" ]
null
null
null
Training_data/make_data.py
vaibhav9518/FaceReck-
424804344dbb874fab1cd5240963d5f6512a16b6
[ "MIT" ]
null
null
null
import sys,cv2,os import numpy import numpy as np import cv2 from sklearn import cluster cur_dir=os.path.dirname(os.path.realpath(__file__)) mypath=[sys.argv[1],sys.argv[2]] filename=[cur_dir+'/data1.txt',cur_dir+'/data2.txt'] for ii in range(len(mypath)): from os import listdir from os.path import isfile, join onl...
26.969697
77
0.677528
171
890
3.444444
0.385965
0.083192
0.050934
0.040747
0.057725
0
0
0
0
0
0
0.045573
0.137079
890
32
78
27.8125
0.721354
0
0
0
0
0
0.042745
0
0
0
0
0
0.033333
0
null
null
0
0.233333
null
null
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6bfbb90c8c9dfdf5b5bd2a70d274ca81eb3f7bf3
291
py
Python
Problems/Top Interview Questions/Easy/07_power_of_three.py
andor2718/LeetCode
59874f49085818e6da751f1cc26867b31079d35d
[ "BSD-3-Clause" ]
1
2022-01-17T19:51:15.000Z
2022-01-17T19:51:15.000Z
Problems/Top Interview Questions/Easy/07_power_of_three.py
andor2718/LeetCode
59874f49085818e6da751f1cc26867b31079d35d
[ "BSD-3-Clause" ]
null
null
null
Problems/Top Interview Questions/Easy/07_power_of_three.py
andor2718/LeetCode
59874f49085818e6da751f1cc26867b31079d35d
[ "BSD-3-Clause" ]
null
null
null
# https://leetcode.com/problems/power-of-three/ import math class Solution: def isPowerOfThree(self, n: int) -> bool: if n <= 1: return n == 1 base = 3 exponent = int(math.log(n, base)) return 3 ** exponent == n or 3 ** (exponent + 1) == n
22.384615
61
0.539519
40
291
3.925
0.625
0.171975
0
0
0
0
0
0
0
0
0
0.030151
0.316151
291
12
62
24.25
0.758794
0.154639
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
6bff29083b67412ae518ad3b187dedc1345291cc
1,087
py
Python
testing/filter.py
MarkHershey/python-learning
8d6c87941af6db5878b59483526ed402f4b319b3
[ "MIT" ]
9
2020-06-05T17:01:23.000Z
2022-03-16T19:55:50.000Z
testing/filter.py
MarkHershey/python-learning
8d6c87941af6db5878b59483526ed402f4b319b3
[ "MIT" ]
null
null
null
testing/filter.py
MarkHershey/python-learning
8d6c87941af6db5878b59483526ed402f4b319b3
[ "MIT" ]
null
null
null
#################### version 1 ################################################# a = list(range(10)) # print(a, id(a)) res_1 = list(a) # print(res_1, id(res_1)) for i in a: if i in (3, 5): print(">>>", i, id(i)) res_1 = list(filter(lambda x: x != i, res_1)) # print(type(res_1), id(res_1))...
19.410714
80
0.413983
171
1,087
2.473684
0.140351
0.104019
0.078014
0.113475
0.404255
0.262411
0.134752
0.134752
0.134752
0.134752
0
0.050725
0.23827
1,087
55
81
19.763636
0.460145
0.222631
0
0.208333
0
0
0.014331
0
0
0
0
0
0
1
0
false
0.041667
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d40a6ed33891dad376506dfb4e4ae51ee127fe87
1,248
py
Python
examples/python/list_devices.py
charliebruce/cobble
92ed485681720efba050e037345dea1c3c031f88
[ "MIT" ]
null
null
null
examples/python/list_devices.py
charliebruce/cobble
92ed485681720efba050e037345dea1c3c031f88
[ "MIT" ]
5
2021-11-12T17:23:58.000Z
2022-03-29T16:38:45.000Z
examples/python/list_devices.py
charliebruce/cobble
92ed485681720efba050e037345dea1c3c031f88
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Scan for BLE devices, print them when found from cobble import cobble from time import sleep def main(): cobble.init() cobble.start_scan() print("Scanning for devices, press Ctrl-C to quit") # Results can be dispatched more than once for the same peripheral, but that isn'...
24
111
0.626603
153
1,248
5.084967
0.686275
0.023136
0.020566
0
0
0
0
0
0
0
0
0.013483
0.286859
1,248
52
112
24
0.860674
0.332532
0
0.08
0
0
0.174123
0
0
0
0
0.019231
0
1
0.04
false
0
0.08
0
0.12
0.2
0
0
0
null
0
0
0
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
d40c15b007b0f1969933ad745a0f02495aa779bf
535
py
Python
examples/epw_to_stat/epw_to_stat.py
SimScaleGmbH/external-building-aerodynamics
8ab6ce7bf7e0835d9b200c55461cd6966479f94a
[ "MIT" ]
null
null
null
examples/epw_to_stat/epw_to_stat.py
SimScaleGmbH/external-building-aerodynamics
8ab6ce7bf7e0835d9b200c55461cd6966479f94a
[ "MIT" ]
null
null
null
examples/epw_to_stat/epw_to_stat.py
SimScaleGmbH/external-building-aerodynamics
8ab6ce7bf7e0835d9b200c55461cd6966479f94a
[ "MIT" ]
null
null
null
import pathlib import numpy as np import simscale_eba.HourlyContinuous as hc epw = hc.HourlyContinuous() # Put any path here path = r'E:\Current Cases\SimScale Objects\examples\epw_to_stat\USA_MA_Boston-Logan.Intl.AP.725090_TMYx.2004-2018.epw' epw.import_epw(pathlib.Path(path)) weather_stats = hc.WeatherStatistics...
26.75
118
0.813084
85
535
4.882353
0.588235
0.173494
0.108434
0
0
0
0
0
0
0
0
0.05071
0.078505
535
19
119
28.157895
0.791075
0.031776
0
0
0
0.083333
0.209302
0.158915
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d40c3b232ce342da57d6da293d3953d82166f65c
1,498
py
Python
utils2devops/aws/security_group.py
alainivars/utils2devops
ff7deb2bc315d18b693d53ae6472da5163a3260e
[ "Apache-2.0" ]
2
2019-06-29T20:09:37.000Z
2020-12-09T22:38:57.000Z
utils2devops/aws/security_group.py
alainivars/utils2devops
ff7deb2bc315d18b693d53ae6472da5163a3260e
[ "Apache-2.0" ]
null
null
null
utils2devops/aws/security_group.py
alainivars/utils2devops
ff7deb2bc315d18b693d53ae6472da5163a3260e
[ "Apache-2.0" ]
null
null
null
import boto3 from utils2devops.aws import SecurityGroup, Gress """ Aws configuration iiles should be present: ~/.aws/credentials ~/.aws/config """ def _make_gress(ports): gress = Gress() gress.protocol = ports['IpProtocol'] if 'PortRange' in ports: gress.from_port = ports['FromPort'] g...
28.807692
87
0.642857
181
1,498
5.209945
0.480663
0.028632
0.044539
0.036055
0.042418
0
0
0
0
0
0
0.006993
0.236315
1,498
51
88
29.372549
0.817308
0.156208
0
0.068966
0
0
0.134733
0
0
0
0
0.019608
0
1
0.068966
false
0
0.068966
0
0.172414
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d40d3e9f9f0760f9c0b64b32a5b6e51267ab3db3
2,945
py
Python
ev3sim/visual/utils.py
LEGO-Robotics/EV3Sim
3a194bc5de05d80ed867a4d2bb282b7a864462d5
[ "BSD-3-Clause" ]
11
2020-08-15T18:28:02.000Z
2022-03-10T05:07:08.000Z
ev3sim/visual/utils.py
LEGO-Robotics/EV3Sim
3a194bc5de05d80ed867a4d2bb282b7a864462d5
[ "BSD-3-Clause" ]
153
2020-08-15T14:54:04.000Z
2021-12-04T23:15:17.000Z
ev3sim/visual/utils.py
LEGO-Robotics/EV3Sim
3a194bc5de05d80ed867a4d2bb282b7a864462d5
[ "BSD-3-Clause" ]
13
2020-08-15T14:09:16.000Z
2021-12-03T05:54:41.000Z
from typing import Tuple import numpy as np GLOBAL_COLOURS = {} def rgb_to_hex(r, g, b): return "#" + "".join( ( str(hex(r)).split("x")[-1].rjust(2, "0"), str(hex(g)).split("x")[-1].rjust(2, "0"), str(hex(b)).split("x")[-1].rjust(2, "0"), ) ) def hex_to_p...
32.362637
120
0.536503
340
2,945
4.502941
0.217647
0.211626
0.172436
0.099282
0.674722
0.625735
0.343566
0.343566
0.124102
0.124102
0
0.034712
0.334805
2,945
90
121
32.722222
0.74681
0.022071
0
0.263158
0
0
0.060806
0
0
0
0
0
0.013158
1
0.065789
false
0
0.052632
0.013158
0.276316
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d40ee2f29010ae660b8a692373cd03b0127f02c0
577
py
Python
model.py
yanwii/Cluster-based-TransR
bc50bc2fb2bc7d55e76e181a942894c5cfd47931
[ "Apache-2.0" ]
23
2018-09-26T07:09:56.000Z
2021-11-27T13:29:38.000Z
model.py
yanwii/Cluster-based-TransR
bc50bc2fb2bc7d55e76e181a942894c5cfd47931
[ "Apache-2.0" ]
null
null
null
model.py
yanwii/Cluster-based-TransR
bc50bc2fb2bc7d55e76e181a942894c5cfd47931
[ "Apache-2.0" ]
7
2019-04-10T11:55:27.000Z
2020-04-24T08:13:12.000Z
# -*- coding:utf-8 -*- ''' @Author: yanwii @Date: 2018-08-16 10:43:55 ''' import tensorflow as tf class ClusterBasedTransR(object): def __init__(self): self.size_of_relation = 256 self.size_of_entity = 128 def init_model(self): pass def __trans(self): with tf.variabl...
20.607143
66
0.544194
74
577
4.013514
0.581081
0.107744
0.13468
0.121212
0
0
0
0
0
0
0
0.054545
0.332756
577
28
67
20.607143
0.716883
0.110919
0
0
0
0
0.013834
0
0
0
0
0
0
1
0.2
false
0.066667
0.066667
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
d4117e33f9bb92eb4826301156e3ab15b9a816fc
4,591
py
Python
touchtechnology/common/tests/test_timezone.py
goodtune/vitriolic
d135eecf7acbc229a872585ebafb8bbefca52df4
[ "BSD-3-Clause" ]
null
null
null
touchtechnology/common/tests/test_timezone.py
goodtune/vitriolic
d135eecf7acbc229a872585ebafb8bbefca52df4
[ "BSD-3-Clause" ]
28
2016-12-09T21:14:19.000Z
2022-01-11T07:17:16.000Z
touchtechnology/common/tests/test_timezone.py
goodtune/vitriolic
d135eecf7acbc229a872585ebafb8bbefca52df4
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from datetime import datetime from os.path import dirname, join from django.test.utils import modify_settings, override_settings from django.utils import timezone from django.utils.encoding import smart_str from test_plus import TestCase from touchtechnology.common.tests.test_t...
32.560284
86
0.627314
527
4,591
5.258065
0.26945
0.034645
0.030314
0.04114
0.662577
0.662577
0.64742
0.609166
0.609166
0.609166
0
0.026623
0.271836
4,591
140
87
32.792857
0.802273
0.12873
0
0.490196
0
0
0.164735
0.04291
0
0
0
0
0.127451
1
0.058824
false
0
0.078431
0
0.176471
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
d41b57904c321e74ece9ad3406cbeb53940985a1
3,782
py
Python
tensorflow_1_x/7_kaggle/notebooks/nb_utils/macro_processing.py
amitbcp/machine_learning_with_Scikit_Learn_and_TensorFlow
37dda063e316503d53ac45f3b104a5cf1aaa4d78
[ "MIT" ]
11
2019-12-19T08:55:52.000Z
2021-10-01T13:07:13.000Z
tensorflow_1_x/7_kaggle/notebooks/nb_utils/macro_processing.py
amitbcp/Scikit_Learn_TensorFlow_Examples
37dda063e316503d53ac45f3b104a5cf1aaa4d78
[ "MIT" ]
5
2019-10-09T01:41:19.000Z
2022-02-10T00:19:01.000Z
tensorflow_1_x/7_kaggle/notebooks/nb_utils/macro_processing.py
amitbcp/Scikit_Learn_TensorFlow_Examples
37dda063e316503d53ac45f3b104a5cf1aaa4d78
[ "MIT" ]
7
2019-10-08T06:10:14.000Z
2020-12-01T07:49:21.000Z
import re from nb_utils import line_macros """ TODO: Separation of concerns between LessonPreprocessor and MacroProcessor is muddled. For historical reasons, LessonPreprocessor currently owns the logic for expander macros. Eventually, would like to move all macro stuff here (and in modules like line_macros.py) """ c...
33.767857
88
0.557641
468
3,782
4.382479
0.373932
0.029254
0.021941
0.030717
0.07606
0.042906
0.042906
0.042906
0.042906
0.042906
0
0.006428
0.341883
3,782
111
89
34.072072
0.817597
0.155209
0
0.116883
0
0
0.058439
0
0
0
0
0.018018
0.038961
1
0.103896
false
0.012987
0.025974
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d428b77e43b2a50a4ef795dc32686acc6d003d35
3,108
py
Python
detect_secrets/core/report/conditions.py
tefiggins/detect-secrets
43c6f571d3426d41e6c296c327245fb56d25db61
[ "Apache-2.0" ]
null
null
null
detect_secrets/core/report/conditions.py
tefiggins/detect-secrets
43c6f571d3426d41e6c296c327245fb56d25db61
[ "Apache-2.0" ]
null
null
null
detect_secrets/core/report/conditions.py
tefiggins/detect-secrets
43c6f571d3426d41e6c296c327245fb56d25db61
[ "Apache-2.0" ]
null
null
null
from detect_secrets.core.audit import get_secrets_list_from_file from detect_secrets.core.report.constants import ReportCheckResult from detect_secrets.core.report.constants import ReportExitCode from detect_secrets.core.report.constants import ReportSecretType def fail_on_unaudited(baseline_filename: str) -> ReportC...
35.724138
81
0.677284
356
3,108
5.705056
0.191011
0.070901
0.109306
0.041359
0.666174
0.61743
0.591334
0.449532
0.431315
0.327917
0
0.001275
0.242921
3,108
86
82
36.139535
0.861878
0.175997
0
0.367347
0
0
0.080274
0
0
0
0
0
0
1
0.061224
false
0.061224
0.081633
0
0.265306
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d42b07b2a18db0c4883187aebefc72c5bc559874
7,716
py
Python
uecho/node_profile.py
cybergarage/uecho-py
6b0dc72b9c3770d79b812bad75ea201c820b089a
[ "Apache-2.0" ]
null
null
null
uecho/node_profile.py
cybergarage/uecho-py
6b0dc72b9c3770d79b812bad75ea201c820b089a
[ "Apache-2.0" ]
null
null
null
uecho/node_profile.py
cybergarage/uecho-py
6b0dc72b9c3770d79b812bad75ea201c820b089a
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2021 Satoshi Konno. 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 ...
38.58
159
0.693753
990
7,716
5.027273
0.184848
0.027326
0.03918
0.0217
0.403858
0.297368
0.205746
0.13482
0.087201
0.069922
0
0.015622
0.236781
7,716
199
160
38.773869
0.829513
0.074132
0
0.221519
0
0
0
0
0
0
0.01571
0
0
1
0.082278
false
0
0.056962
0.006329
0.512658
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d42fbfffefc49212e585f82cc47b253368c6ae44
460
py
Python
common/migrations/0004_lab_member_trainees.py
greenelabwustl/greenelabsite
f5c798540ab06fbee260d56ebb012990e6dee962
[ "MIT" ]
null
null
null
common/migrations/0004_lab_member_trainees.py
greenelabwustl/greenelabsite
f5c798540ab06fbee260d56ebb012990e6dee962
[ "MIT" ]
null
null
null
common/migrations/0004_lab_member_trainees.py
greenelabwustl/greenelabsite
f5c798540ab06fbee260d56ebb012990e6dee962
[ "MIT" ]
null
null
null
# Generated by Django 2.0.4 on 2018-10-26 16:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('common', '0003_lab_member_position'), ] operations = [ migrations.AddField( model_name='lab_member', name='trainees'...
23
84
0.617391
49
460
5.653061
0.755102
0.064982
0
0
0
0
0
0
0
0
0
0.056886
0.273913
460
19
85
24.210526
0.772455
0.097826
0
0
1
0
0.150121
0.058111
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
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
d43705028ac964b35eac5f9fd91f03c83da366fa
794
py
Python
demo/demo_api_proxy.py
Kyle2142/pixivpy-async
639ddf46fbeeaa2aade059e4f5eac80bd450ee52
[ "Unlicense" ]
null
null
null
demo/demo_api_proxy.py
Kyle2142/pixivpy-async
639ddf46fbeeaa2aade059e4f5eac80bd450ee52
[ "Unlicense" ]
null
null
null
demo/demo_api_proxy.py
Kyle2142/pixivpy-async
639ddf46fbeeaa2aade059e4f5eac80bd450ee52
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import asyncio from pixivpy_async import * # change _USERNAME,_PASSWORD first! _USERNAME = "userbay" _PASSWORD = "userpay" async def _cmain(aapi): # set API proxy to pixivlite.com aapi.set_api_proxy("http://app-api.pixivlite.com") json_result = await aapi....
19.365854
80
0.670025
104
794
4.807692
0.548077
0.048
0.04
0.06
0
0
0
0
0
0
0
0.003106
0.188917
794
40
81
19.85
0.773292
0.15869
0
0
0
0
0.120664
0
0
0
0
0
0
1
0.047619
false
0.095238
0.095238
0
0.142857
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1