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
87107e37ffdc02b098da89b0da2fc716fa2d7cab
1,540
py
Python
zeus/factories/change_request.py
edgerepo/zeus
aea557bde167e95b505a42877422a652baee14c9
[ "Apache-2.0" ]
null
null
null
zeus/factories/change_request.py
edgerepo/zeus
aea557bde167e95b505a42877422a652baee14c9
[ "Apache-2.0" ]
5
2021-12-13T20:52:05.000Z
2022-03-08T23:33:59.000Z
zeus/factories/change_request.py
edgerepo/zeus
aea557bde167e95b505a42877422a652baee14c9
[ "Apache-2.0" ]
1
2020-07-03T00:59:04.000Z
2020-07-03T00:59:04.000Z
import factory from datetime import timedelta from faker import Factory from random import randint from zeus import models from zeus.utils import timezone from .base import ModelFactory from .types import GUIDFactory faker = Factory.create() class ChangeRequestFactory(ModelFactory): id = GUIDFactory() mes...
33.478261
88
0.688961
157
1,540
6.649682
0.375796
0.114943
0.060345
0.086207
0.185824
0.101533
0
0
0
0
0
0.010673
0.209091
1,540
45
89
34.222222
0.84647
0
0
0
0
0
0.161039
0.092857
0
0
0
0
0
1
0
false
0
0.216216
0
0.540541
0
0
0
0
null
0
0
0
0
0
0
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
871241c02fd1a1aac794e5e3bec442bc42d3ea37
1,384
py
Python
test/test_goimport_task.py
enterstudio/artman
b9b2e6c0d42a0698b6ee59f4e755e7f2e603f8aa
[ "Apache-2.0" ]
2
2019-11-30T23:42:09.000Z
2021-08-30T19:54:48.000Z
test/test_goimport_task.py
enterstudio/artman
b9b2e6c0d42a0698b6ee59f4e755e7f2e603f8aa
[ "Apache-2.0" ]
null
null
null
test/test_goimport_task.py
enterstudio/artman
b9b2e6c0d42a0698b6ee59f4e755e7f2e603f8aa
[ "Apache-2.0" ]
1
2017-03-30T00:28:15.000Z
2017-03-30T00:28:15.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
38.444444
77
0.712428
208
1,384
4.615385
0.533654
0.0625
0.05
0.033333
0.022917
0
0
0
0
0
0
0.00708
0.183526
1,384
35
78
39.542857
0.842478
0.408237
0
0
0
0
0.171429
0.096894
0
0
0
0
0.055556
1
0.055556
false
0
0.333333
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
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
8714cd18b74166dbafbe16e4f6096ad33e31d5f9
665
py
Python
api_site/src/test_pay_manager.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
1
2019-10-14T11:51:49.000Z
2019-10-14T11:51:49.000Z
api_site/src/test_pay_manager.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
null
null
null
api_site/src/test_pay_manager.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function from flask.ext.script import Manager, Server, Shell from test_pay_site import create_app manager = Manager(create_app) manager.add_option('-e', '--env', dest='env', default='dev', required=False) def make_shell_co...
24.62963
76
0.745865
98
665
4.734694
0.510204
0.060345
0.094828
0.064655
0.090517
0
0
0
0
0
0
0.015411
0.121805
665
26
77
25.576923
0.77911
0.063158
0
0
0
0
0.067633
0
0
0
0
0
0
1
0.071429
false
0
0.357143
0
0.5
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
87223c233f69940e4fa64e8113dbaae7db9afab5
577
py
Python
tests/test_double_backslash.py
sonvt1710/bigjson
b562d7be1e8de689cfaf44fdca7a636a8d21ca20
[ "MIT" ]
null
null
null
tests/test_double_backslash.py
sonvt1710/bigjson
b562d7be1e8de689cfaf44fdca7a636a8d21ca20
[ "MIT" ]
null
null
null
tests/test_double_backslash.py
sonvt1710/bigjson
b562d7be1e8de689cfaf44fdca7a636a8d21ca20
[ "MIT" ]
null
null
null
from io import BytesIO from unittest import TestCase import bigjson JSON_FILE = b""" { "1": "single \\\\ backslash", "2": "double \\\\\\\\ backslash", "3": "triple \\\\\\\\\\\\ backslash" } """ class TestDoubleBackslash(TestCase): def test_double_backslash(self): file = BytesIO(JSON_FILE) ...
22.192308
62
0.594454
61
577
5.557377
0.42623
0.176991
0.168142
0.165192
0
0
0
0
0
0
0
0.015419
0.213172
577
25
63
23.08
0.731278
0
0
0
0
0
0.318891
0
0
0
0
0
0.222222
1
0.055556
false
0
0.166667
0
0.277778
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
87298b8f8eb133786a9cc7fabda6e49bcfffe1a1
496
py
Python
cerosdefunciones-bacterias.py
abullrich91/lenguajes_programacion
ab96020985ed7b8098b8500e9aa5f17ce98a67ee
[ "MIT" ]
null
null
null
cerosdefunciones-bacterias.py
abullrich91/lenguajes_programacion
ab96020985ed7b8098b8500e9aa5f17ce98a67ee
[ "MIT" ]
null
null
null
cerosdefunciones-bacterias.py
abullrich91/lenguajes_programacion
ab96020985ed7b8098b8500e9aa5f17ce98a67ee
[ "MIT" ]
null
null
null
import math def c(t): return 80 * math.exp(-2*t) + 20 * math.exp(-0.5*t) def c1(t): return 80 * (-2) * math.exp(-2*t) def n_r_bacterias(x, error, k, limit): print("n x \n") hours = 0 i = 0 y = c(hours) while i <= k and y >= error and x >= limit: print(i, k) x = x ...
18.37037
54
0.491935
89
496
2.696629
0.359551
0.0875
0.075
0.075
0
0
0
0
0
0
0
0.087613
0.332661
496
26
55
19.076923
0.637462
0
0
0
0
0
0.024194
0
0
0
0
0
0
1
0.166667
false
0
0.055556
0.111111
0.388889
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
873440b69b9560c23224aef412b66c9d2049ac8e
1,495
py
Python
covid mail/sendDetailedEmail/email.py
rahul263-stack/PROJECT-Dump
d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09
[ "MIT" ]
1
2020-04-06T04:41:56.000Z
2020-04-06T04:41:56.000Z
covid mail/sendDetailedEmail/email.py
rahul263-stack/quarantine
d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09
[ "MIT" ]
null
null
null
covid mail/sendDetailedEmail/email.py
rahul263-stack/quarantine
d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09
[ "MIT" ]
null
null
null
import smtplib import os from email.message import EmailMessage from getCredentials.read import ConfigReader CURRENT_FOLDER = "sendDetailedEmail" HTML_TEMPLATE_NAME = "Template_corona_info.html" HTML_TEMPLATE_PATH = os.path.join(CURRENT_FOLDER, HTML_TEMPLATE_NAME) AUTH_DATA = ConfigReader() eMAIL = AUTH_DATA.read_co...
31.808511
85
0.645485
179
1,495
5.178771
0.463687
0.05178
0.03452
0.030205
0.058252
0.058252
0
0
0
0
0
0.005329
0.246823
1,495
47
86
31.808511
0.81794
0
0
0
0
0
0.177139
0.016711
0
0
0
0
0
1
0.057143
false
0.057143
0.114286
0
0.2
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
87388d8f054879e371b9b9cc2a13a042552e8ea4
1,031
py
Python
scripts/resubmit_batch.py
Sam91/vmc_general
cb2b0cb103a66307a3d78dbf137582a3ad224f8d
[ "MIT" ]
null
null
null
scripts/resubmit_batch.py
Sam91/vmc_general
cb2b0cb103a66307a3d78dbf137582a3ad224f8d
[ "MIT" ]
null
null
null
scripts/resubmit_batch.py
Sam91/vmc_general
cb2b0cb103a66307a3d78dbf137582a3ad224f8d
[ "MIT" ]
null
null
null
#!/usr/bin/python from subprocess import call import pickle import sys task={} i=0 kk=0 full = False taskfile = str(sys.argv[1]) batchfile = str(sys.argv[2]) #open tasklist task = pickle.load( open(taskfile, "rb" ) ) f = open(batchfile, "a" ) for t in sorted(task.keys()): mytask = task[ t ] cmd = mytask[0] ...
17.775862
96
0.554801
157
1,031
3.636943
0.420382
0.052539
0.056042
0.031524
0.06655
0.06655
0.06655
0
0
0
0
0.019973
0.271581
1,031
57
97
18.087719
0.740346
0.119302
0
0.105263
0
0
0.113082
0.032151
0
0
0
0
0
0
null
null
0
0.078947
null
null
0.131579
0
0
0
null
0
0
0
0
0
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
873b6e2dcd86434d12edf47039a2bc95bf707bb5
863
py
Python
bnbapp/workflow/forms.py
Bionetbook/bionetbook
c92d5bbdc5c121631c2230cf93aa63977d381f30
[ "MIT" ]
null
null
null
bnbapp/workflow/forms.py
Bionetbook/bionetbook
c92d5bbdc5c121631c2230cf93aa63977d381f30
[ "MIT" ]
null
null
null
bnbapp/workflow/forms.py
Bionetbook/bionetbook
c92d5bbdc5c121631c2230cf93aa63977d381f30
[ "MIT" ]
null
null
null
from django import forms from workflow.models import Workflow from django.db.models.query import EmptyQuerySet from django.utils.translation import ugettext_lazy as _ from organization.models import Organization class WorkflowForm(forms.ModelForm): class Meta: model = Workflow exclude = ('user','data','slug','...
39.227273
182
0.761298
97
863
6.701031
0.546392
0.067692
0.055385
0.073846
0.116923
0.116923
0
0
0
0
0
0
0.117034
863
21
183
41.095238
0.853018
0.317497
0
0
0
0
0.044444
0
0
0
0
0
0
1
0
false
0
0.416667
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
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
8744d4749c9a2398f02e145059c8511f162911e8
8,122
py
Python
substance/command/command.py
romelperez/substance
9f1c1992cb27cc94fc21bfc57aaea90d88e010a1
[ "Apache-2.0" ]
21
2017-06-12T20:55:32.000Z
2021-04-20T20:15:32.000Z
substance/command/command.py
romelperez/substance
9f1c1992cb27cc94fc21bfc57aaea90d88e010a1
[ "Apache-2.0" ]
46
2017-07-24T16:14:36.000Z
2021-04-30T02:14:09.000Z
substance/command/command.py
romelperez/substance
9f1c1992cb27cc94fc21bfc57aaea90d88e010a1
[ "Apache-2.0" ]
8
2018-02-19T20:24:54.000Z
2021-04-28T23:39:15.000Z
import sys import os import re import logging import pkgutil import importlib import traceback from collections import OrderedDict from importlib import import_module import optparse from getpass import getpass from substance import Shell from substance.exceptions import InvalidCommandError logger = logging.getLogg...
28.103806
115
0.609086
880
8,122
5.556818
0.2375
0.021268
0.013292
0.009816
0.178732
0.113292
0.103885
0.075256
0.059305
0.059305
0
0.002934
0.286506
8,122
288
116
28.201389
0.840897
0.03509
0
0.231481
0
0
0.050947
0.006144
0
0
0
0
0
1
0.222222
false
0.037037
0.064815
0.069444
0.472222
0.00463
0
0
0
null
0
0
0
0
0
0
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
874d74cc5be80f1e8db8adca2f67cf9ab7963e24
24,944
py
Python
limatix/steps/runscriptstep.py
nscheirer/limatix
bd22ce349a59194834879aac5b2452d85d12293e
[ "BSD-3-Clause" ]
null
null
null
limatix/steps/runscriptstep.py
nscheirer/limatix
bd22ce349a59194834879aac5b2452d85d12293e
[ "BSD-3-Clause" ]
3
2018-06-26T22:56:24.000Z
2018-07-09T18:33:00.000Z
limatix/steps/runscriptstep.py
nscheirer/limatix
bd22ce349a59194834879aac5b2452d85d12293e
[ "BSD-3-Clause" ]
1
2022-03-03T19:26:11.000Z
2022-03-03T19:26:11.000Z
import os import sys import copy #import fcntl import pty import threading import subprocess from lxml import etree try: # py2.x from urllib import pathname2url from urllib import url2pathname from urllib import quote pass except ImportError: # py3.x from urllib.request import pathname2ur...
37.063893
432
0.613013
2,733
24,944
5.511892
0.208196
0.025093
0.027748
0.025093
0.307156
0.264804
0.195101
0.153877
0.140998
0.135821
0
0.008041
0.302037
24,944
672
433
37.119048
0.857209
0.220574
0
0.425056
0
0.006711
0.103746
0.008227
0
0
0.006002
0.001488
0
1
0.051454
false
0.163311
0.069351
0
0.214765
0
0
0
0
null
0
0
0
0
0
0
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
8754d6f2234a5b448a07b52fbba0bbb6fe247a1b
2,466
py
Python
MENU and SUBMENU .py
HorridHanu/Notepad-Python
5c40ddf0cc01b88387bf3052117581cba6e8ab6f
[ "Apache-2.0" ]
1
2021-07-03T09:16:26.000Z
2021-07-03T09:16:26.000Z
MENU and SUBMENU .py
HorridHanu/Notepad-Python
5c40ddf0cc01b88387bf3052117581cba6e8ab6f
[ "Apache-2.0" ]
null
null
null
MENU and SUBMENU .py
HorridHanu/Notepad-Python
5c40ddf0cc01b88387bf3052117581cba6e8ab6f
[ "Apache-2.0" ]
null
null
null
######################################################################################## ######################################################################################## ## # CODE LANGUAGE IS PYHTON! ## ## ## ## # DATE: 1-JULY-2021 ## ## ...
38.53125
88
0.516221
267
2,466
4.670412
0.258427
0.176423
0.264635
0.136327
0.617482
0.542101
0.211708
0
0
0
0
0.019155
0.174371
2,466
64
89
38.53125
0.59332
0.255474
0
0
0
0
0.132231
0
0
0
0
0
0
1
0.027778
false
0
0.027778
0
0.055556
0.083333
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
875acef1869320dc569f36e31468ec855f6e260b
1,278
py
Python
que/exceptions.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
97
2016-11-15T14:44:23.000Z
2022-03-13T18:09:15.000Z
que/exceptions.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
334
2016-11-17T19:56:57.000Z
2022-03-18T10:45:53.000Z
que/exceptions.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
33
2017-01-02T16:04:13.000Z
2022-02-07T19:20:24.000Z
class TaskException(Exception): """ Like classic Exception, but we keep the task result, which gets spoiled by celery cache result backend. The kwargs parameter is used for passing custom metadata. """ obj = None def __init__(self, result, msg=None, **kwargs): if msg: resul...
22.821429
107
0.654147
148
1,278
5.47973
0.493243
0.055487
0.027127
0.046856
0.086313
0.086313
0.086313
0.086313
0
0
0
0
0.237872
1,278
55
108
23.236364
0.832649
0.318466
0
0.37037
0
0
0.014706
0
0
0
0
0
0
1
0.074074
false
0.222222
0
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
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
875c990b1f42acf903a944090df309957b43b219
947
py
Python
problem_solving/algorithms/Strong Password/main.py
hugolribeiro/hackerrank_exercises
d2757b24479c26ec39e01091e3a15e8980e97864
[ "MIT" ]
null
null
null
problem_solving/algorithms/Strong Password/main.py
hugolribeiro/hackerrank_exercises
d2757b24479c26ec39e01091e3a15e8980e97864
[ "MIT" ]
null
null
null
problem_solving/algorithms/Strong Password/main.py
hugolribeiro/hackerrank_exercises
d2757b24479c26ec39e01091e3a15e8980e97864
[ "MIT" ]
null
null
null
def minimumNumber(n, password): # Return the minimum number of characters to make the password strong # Its length is at least 6. # It contains at least one digit. # It contains at least one lowercase English character. # It contains at least one uppercase English character. # It contains at lea...
41.173913
90
0.674762
122
947
5.188525
0.360656
0.139021
0.075829
0.107425
0.467615
0.404423
0.404423
0.240126
0.240126
0.240126
0
0.023481
0.23548
947
22
91
43.045455
0.850829
0.334741
0
0.266667
0
0
0.118971
0.083601
0
0
0
0
0
1
0.066667
false
0.333333
0
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
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
875f70f2cd684f261bc83a2ee0eff5f6f69e3ad6
763
py
Python
Software 1/Practical/Week 07/Practical 11/test_exercise_2.py
KristoffLiu/YorkCSSolution
cae76529b1e5956a59ac4bd51797a30a5a23fb8d
[ "Apache-2.0" ]
3
2019-11-14T22:04:32.000Z
2019-11-17T16:07:58.000Z
Software 1/Practical/Week 07/Practical 11/test_exercise_2.py
KristoffLiu/YorkCSSolution
cae76529b1e5956a59ac4bd51797a30a5a23fb8d
[ "Apache-2.0" ]
null
null
null
Software 1/Practical/Week 07/Practical 11/test_exercise_2.py
KristoffLiu/YorkCSSolution
cae76529b1e5956a59ac4bd51797a30a5a23fb8d
[ "Apache-2.0" ]
1
2019-11-15T07:52:14.000Z
2019-11-15T07:52:14.000Z
''' Created on 7 Nov 2019 @author: Lilian ''' import unittest import inspect from recursion import sum_digits class TestExercise2(unittest.TestCase): def test_sum_positive(self): self.assertEqual(10, sum_digits(1234), "sum_digits(1234) incorrect") self.assertEqual(10, sum_digits(244), "sum_digits...
27.25
77
0.676278
100
763
4.89
0.34
0.239264
0.09816
0.122699
0.294479
0.241309
0.241309
0.241309
0.241309
0.241309
0
0.066129
0.187418
763
27
78
28.259259
0.722581
0.049803
0
0
0
0
0.223152
0
0
0
0
0
0.4
1
0.2
false
0
0.2
0
0.466667
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
875f95a933d6413c59960f59072bf55538bb6046
745
py
Python
src/commands/template_command.py
zaanposni/umfrageBot
3e19dc0629cde394da2ae8706e6e043b4e87059d
[ "MIT" ]
6
2019-08-15T20:19:38.000Z
2021-02-28T21:33:19.000Z
src/commands/template_command.py
zaanposni/umfrageBot
3e19dc0629cde394da2ae8706e6e043b4e87059d
[ "MIT" ]
31
2019-08-14T08:42:08.000Z
2020-05-07T13:43:43.000Z
src/commands/template_command.py
zaanposni/umfrageBot
3e19dc0629cde394da2ae8706e6e043b4e87059d
[ "MIT" ]
5
2019-08-17T13:39:53.000Z
2020-04-01T07:25:51.000Z
import os.path from bt_utils.console import Console from bt_utils.get_content import content_dir SHL = Console("BundestagsBot Template Command") # Use SHL.output(text) for all console based output! settings = { 'name': 'template', # name/invoke of your command 'mod_cmd': True, # if this cmd is only useabl...
32.391304
101
0.718121
111
745
4.765766
0.603604
0.022684
0.041588
0.049149
0
0
0
0
0
0
0
0
0.185235
745
22
102
33.863636
0.871499
0.495302
0
0
0
0
0.209809
0
0
0
0
0
0
1
0
false
0.076923
0.230769
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
0
1
0
0
0
0
0
1
876940495a07221c20950961c94c3fa8a0e8b479
277
py
Python
try_variable.py
RadarSun/PytorchStudy
ad7a24324cf5ad96bec6c1f6bea51c4cd59a5376
[ "Apache-2.0" ]
1
2021-08-22T01:56:56.000Z
2021-08-22T01:56:56.000Z
try_variable.py
RadarSun/PytorchStudy
ad7a24324cf5ad96bec6c1f6bea51c4cd59a5376
[ "Apache-2.0" ]
null
null
null
try_variable.py
RadarSun/PytorchStudy
ad7a24324cf5ad96bec6c1f6bea51c4cd59a5376
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Sep 11 15:30:58 2020 @author: apple """ import torch from torch.autograd import Variable tensor = torch.FloatTensor([[1,2],[3,4]]) variable = Variable(tensor,requires_grad=True) print(tensor) print(variable)
17.3125
46
0.703971
42
277
4.619048
0.785714
0.14433
0
0
0
0
0
0
0
0
0
0.07438
0.126354
277
15
47
18.466667
0.727273
0.34296
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
876a9d065c5a34c293c420cc954ebcbb251d44ed
1,945
py
Python
Scripts/aws/aws_dsgdpp.py
tvandera/nomad
7a92ff3aad6b9bbfecea4dcf5a58209e726954b8
[ "Apache-2.0" ]
null
null
null
Scripts/aws/aws_dsgdpp.py
tvandera/nomad
7a92ff3aad6b9bbfecea4dcf5a58209e726954b8
[ "Apache-2.0" ]
null
null
null
Scripts/aws/aws_dsgdpp.py
tvandera/nomad
7a92ff3aad6b9bbfecea4dcf5a58209e726954b8
[ "Apache-2.0" ]
2
2020-10-23T00:59:42.000Z
2020-11-22T10:21:37.000Z
import os import subprocess import sys datasets = [("yahoo", 1.00, 0.0005, 0.5, 300), ("netflix", 0.05, 0.008, 0.5, 300), ("hugewiki", 0.01, 0.008, 0.5, 200)] numprocs = [32] numcpus = [4] dim=100 exp_name=sys.argv[0][:sys.argv[0].rfind('.py')] #root@master:/yundata/nomad/Scripts/aws# /yundata/libpmf-mpi-1.4/mpi-d...
40.520833
132
0.583033
283
1,945
3.883392
0.399293
0.063694
0.032757
0.010919
0.269336
0.269336
0.269336
0.269336
0.269336
0.203822
0
0.042847
0.256041
1,945
47
133
41.382979
0.716655
0.262211
0
0
0
0.035714
0.219495
0.115708
0
0
0
0
0
0
null
null
0
0.107143
null
null
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
876b20c325f1d9b6ae3f153afea078ddd74d5eb7
1,549
py
Python
build-scripts/oscap_svg_support.py
kishorkunal-raj/content
c2029dc02cedd83ada1fbb9bd97d10e137b51a26
[ "BSD-3-Clause" ]
3
2015-08-08T06:54:03.000Z
2019-03-25T02:37:54.000Z
build-scripts/oscap_svg_support.py
kishorkunal-raj/content
c2029dc02cedd83ada1fbb9bd97d10e137b51a26
[ "BSD-3-Clause" ]
30
2020-06-29T13:15:41.000Z
2021-01-18T13:51:49.000Z
build-scripts/oscap_svg_support.py
kishorkunal-raj/content
c2029dc02cedd83ada1fbb9bd97d10e137b51a26
[ "BSD-3-Clause" ]
1
2020-10-12T19:15:34.000Z
2020-10-12T19:15:34.000Z
#!/usr/bin/env python2 import tempfile import sys import os.path import ssg.shims svg_benchmark = """<?xml version="1.0"?> <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="RHEL-6" resolved="1" xml:lang="en-US"> <status date="20...
30.372549
89
0.641704
232
1,549
4.211207
0.478448
0.057318
0.073695
0.09826
0.232344
0.193449
0.171955
0.171955
0.171955
0.171955
0
0.058282
0.158167
1,549
50
90
30.98
0.690951
0.044545
0
0
0
0.135135
0.711096
0.08931
0
0
0
0
0
1
0.027027
false
0
0.108108
0
0.135135
0
0
0
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
877236459887d23b59a46a25f7f530af53a2ca96
490
py
Python
taiga/projects/wiki/migrations/0005_auto_20161201_1628.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
null
null
null
taiga/projects/wiki/migrations/0005_auto_20161201_1628.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
12
2019-11-25T14:08:32.000Z
2021-06-24T10:35:51.000Z
taiga/projects/wiki/migrations/0005_auto_20161201_1628.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-01 16:28 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wiki', '0004_auto_20160928_0540'), ] operations = [ migrations.AlterField( ...
23.333333
92
0.630612
56
490
5.303571
0.803571
0.053872
0
0
0
0
0
0
0
0
0
0.097826
0.24898
490
20
93
24.5
0.709239
0.138776
0
0
1
0
0.102625
0.054893
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
87753a24f03a189885822630fa52025b5b134403
722
py
Python
data/train/python/87753a24f03a189885822630fa52025b5b134403manage_joint_promotions.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/87753a24f03a189885822630fa52025b5b134403manage_joint_promotions.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/87753a24f03a189885822630fa52025b5b134403manage_joint_promotions.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
# [Copyright] # SmartPath v1.0 # Copyright 2014-2015 Mountain Pass Solutions, Inc. # This unpublished material is proprietary to Mountain Pass Solutions, Inc. # [End Copyright] manage_joint_promotions = { "code": "manage_joint_promotions", "descr": "Manage Joint Secondary Promotions", "header": "Manage Joint Second...
27.769231
100
0.706371
75
722
6.706667
0.693333
0.087475
0.083499
0.095427
0
0
0
0
0
0
0
0.016103
0.139889
722
25
101
28.88
0.793881
0.229917
0
0
0
0
0.656364
0.041818
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
877700edaaf15bbef4685c8e62d90d6c45cfaea8
5,548
py
Python
scitbx/linalg/tests/tst_lapack_svd.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
scitbx/linalg/tests/tst_lapack_svd.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
scitbx/linalg/tests/tst_lapack_svd.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division def exercise_impl(svd_impl_name, use_fortran): import scitbx.linalg svd_impl = getattr(scitbx.linalg, "lapack_%s" % svd_impl_name) from scitbx.array_family import flex from scitbx import matrix from libtbx.test_utils import approx_equal # for diag in [0, 1]: for n in xr...
35.113924
76
0.613014
788
5,548
4.138325
0.222081
0.045078
0.043852
0.036799
0.284269
0.223244
0.172953
0.149034
0.149034
0.131861
0
0.085804
0.252163
5,548
157
77
35.33758
0.700169
0.015141
0
0.243243
0
0
0.056614
0.004764
0
0
0
0
0.067568
0
null
null
0
0.074324
null
null
0.047297
0
0
0
null
0
0
0
0
0
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
8778e22e2ac1752b339ac99a5a03e2dc8bf1c580
4,135
py
Python
breidablik/interpolate/test_spectra.py
ellawang44/Breidablik
667e66f77f7e4126aa6fc7ad3c1b18e54839ab88
[ "MIT" ]
2
2019-06-03T03:45:21.000Z
2020-11-03T07:09:50.000Z
breidablik/interpolate/test_spectra.py
ellawang44/Breidablik
667e66f77f7e4126aa6fc7ad3c1b18e54839ab88
[ "MIT" ]
1
2021-02-02T15:54:00.000Z
2022-01-27T02:17:05.000Z
breidablik/interpolate/test_spectra.py
ellawang44/Breidablik
667e66f77f7e4126aa6fc7ad3c1b18e54839ab88
[ "MIT" ]
null
null
null
from breidablik.interpolate.spectra import Spectra import numpy as np import pytest import warnings try: Spectra() flag = False except: flag = True # skip these tests if the trained models are not present pytestmark = pytest.mark.skipif(flag, reason = 'No trained Spectra model') class Test_find_abund: ...
42.628866
151
0.590085
632
4,135
3.699367
0.172468
0.030796
0.025663
0.130026
0.68905
0.669803
0.652695
0.633875
0.62917
0.628315
0
0.100129
0.25127
4,135
96
152
43.072917
0.655039
0.029746
0
0.311688
0
0
0.013473
0
0
0
0
0
0.077922
1
0.168831
false
0
0.051948
0
0.246753
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
877ac4e2bfe225d7430cc7663221205eb9e460d0
405
py
Python
schedules/migrations/0003_auto_20191109_0731.py
AntenehDev/HiLCoE
3fad7e30e50f3aacb8bceecc12487a824cd66c6d
[ "MIT" ]
null
null
null
schedules/migrations/0003_auto_20191109_0731.py
AntenehDev/HiLCoE
3fad7e30e50f3aacb8bceecc12487a824cd66c6d
[ "MIT" ]
2
2020-06-06T00:44:24.000Z
2021-06-10T22:17:51.000Z
schedules/migrations/0003_auto_20191109_0731.py
AntenehDev/HiLCoE
3fad7e30e50f3aacb8bceecc12487a824cd66c6d
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-11-09 07:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('schedules', '0002_announcement_date_created'), ] operations = [ migrations.AlterField( model_name='credithour', name...
21.315789
56
0.617284
43
405
5.674419
0.860465
0
0
0
0
0
0
0
0
0
0
0.07483
0.274074
405
18
57
22.5
0.755102
0.111111
0
0
1
0
0.167598
0.083799
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
877af5b9b4b4d0997811575d123956ad9cca9f69
3,205
py
Python
sc-lisp/slisp.py
sclereid/collection
61782f45314db560657b3081e2fa8e1032fd8dbf
[ "MIT" ]
null
null
null
sc-lisp/slisp.py
sclereid/collection
61782f45314db560657b3081e2fa8e1032fd8dbf
[ "MIT" ]
1
2019-01-21T02:02:27.000Z
2020-08-06T05:34:19.000Z
sc-lisp/slisp.py
sclereid/collection
61782f45314db560657b3081e2fa8e1032fd8dbf
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import re def parse(s): l = re.sub(r'\s+', ', ', (' '+s.lower()+' ').replace('(', '[').replace(')', ']'))[2:-2] return eval(re.sub(r'(?P<symbol>[\w#%\\/^*+_\|~<>?!:-]+)', lambda m : '"%s"' % m.group('symbol'), l)) def cons(a, d): if atom(d): return (a, d) return (lambda...
25.436508
172
0.495476
474
3,205
3.208861
0.204641
0.010519
0.042078
0.04142
0.051282
0
0
0
0
0
0
0.014047
0.289236
3,205
125
173
25.64
0.653644
0.026521
0
0.07767
0
0
0.126444
0.033697
0
0
0
0
0
0
null
null
0.009709
0.009709
null
null
0.067961
0
0
0
null
0
0
0
0
0
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
5e4122453eb97dc28ed43d36e07494d5b4fad627
2,731
py
Python
doubanLogin.py
sparrow629/Clawer-doubanAlbum
d5b440a8368a874144c6c1b35bf45d983e0ce917
[ "MIT" ]
null
null
null
doubanLogin.py
sparrow629/Clawer-doubanAlbum
d5b440a8368a874144c6c1b35bf45d983e0ce917
[ "MIT" ]
null
null
null
doubanLogin.py
sparrow629/Clawer-doubanAlbum
d5b440a8368a874144c6c1b35bf45d983e0ce917
[ "MIT" ]
null
null
null
#coding:utf-8 import requests from bs4 import BeautifulSoup import urllib import re def doubanLogin(url): print ''' --------------------------------------- 欢迎使用豆瓣登录器 --------------------------------------- ''' user = raw_input("请输入你的用户名:") password = raw_input("请输入你的密码...
30.685393
144
0.583669
303
2,731
5.20462
0.478548
0.034242
0.026633
0.02156
0.18643
0.18643
0.18643
0.18643
0.069753
0
0
0.022319
0.245331
2,731
88
145
31.034091
0.742843
0.036983
0
0.136364
0
0.045455
0.379626
0.093476
0
0
0
0
0
0
null
null
0.030303
0.060606
null
null
0.075758
0
0
0
null
0
0
0
0
0
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
5e4146eb8839ca378da99d2e4ef722c74890ea18
1,480
py
Python
setup.py
ClockworkNet/GitSync
fa8494b6078096d5982beef47ee11549923b576b
[ "MIT" ]
1
2015-04-22T15:03:06.000Z
2015-04-22T15:03:06.000Z
setup.py
ClockworkNet/GitSync
fa8494b6078096d5982beef47ee11549923b576b
[ "MIT" ]
null
null
null
setup.py
ClockworkNet/GitSync
fa8494b6078096d5982beef47ee11549923b576b
[ "MIT" ]
null
null
null
# -*- encoding: utf8 -*- import glob import io import re from os.path import basename from os.path import dirname from os.path import join from os.path import splitext from setuptools import find_packages from setuptools import setup def read(*names, **kwargs): return io.open( join(dirname(__file__), *nam...
29.019608
113
0.603378
185
1,480
4.745946
0.610811
0.027335
0.045558
0.072893
0
0
0
0
0
0
0
0.018341
0.226351
1,480
50
114
29.6
0.748472
0.014865
0
0.043478
0
0
0.361264
0
0
0
0
0
0
1
0.021739
true
0
0.195652
0.021739
0.23913
0
0
0
0
null
0
0
0
0
0
0
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
5e4b29c93b92153d5776f723abfb3b22d6632947
6,694
py
Python
Protos/proto_py/AddressBook_pb2.py
sjinny/ProtoPyToJsonSchema
e3dca838f57ce0ab10428b306047d525b0c8acad
[ "MIT" ]
2
2022-02-25T06:41:31.000Z
2022-03-19T00:32:53.000Z
Protos/proto_py/AddressBook_pb2.py
sjinny/ProtoPyToJsonSchema
e3dca838f57ce0ab10428b306047d525b0c8acad
[ "MIT" ]
null
null
null
Protos/proto_py/AddressBook_pb2.py
sjinny/ProtoPyToJsonSchema
e3dca838f57ce0ab10428b306047d525b0c8acad
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: AddressBook.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _r...
32.495146
631
0.738422
840
6,694
5.605952
0.189286
0.044171
0.025483
0.032703
0.476322
0.434912
0.420471
0.403058
0.368656
0.334254
0
0.04031
0.132806
6,694
205
632
32.653659
0.770887
0.047057
0
0.587571
1
0.011299
0.146759
0.086329
0
0
0
0
0
1
0
false
0
0.039548
0
0.039548
0
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
5e4d5c8844682ff4f10e0d0051cb7e33e6b55577
1,379
py
Python
Raspberry Pi/script.py
scroix/nodel-recipes
3aa26de380d13957ae96d85befe00de6289d2687
[ "MIT" ]
8
2017-04-22T15:34:23.000Z
2022-02-03T20:00:20.000Z
Raspberry Pi/script.py
scroix/nodel-recipes
3aa26de380d13957ae96d85befe00de6289d2687
[ "MIT" ]
48
2016-12-01T19:25:53.000Z
2021-11-24T04:23:53.000Z
Raspberry Pi/script.py
scroix/nodel-recipes
3aa26de380d13957ae96d85befe00de6289d2687
[ "MIT" ]
10
2017-04-05T09:51:43.000Z
2021-07-23T04:50:41.000Z
# Copyright (c) 2014Museum Victoria # This software is released under the MIT license (see license.txt for details) '''This node provides raspberry pi controls.''' import subprocess def shutdown(): returncode = subprocess.call("sudo shutdown -h now", shell=True) def mute(): returncode = subprocess.call("sudo am...
31.340909
130
0.69108
185
1,379
5.097297
0.4
0.037116
0.101803
0.11877
0.219512
0.219512
0.219512
0.093319
0
0
0
0.007525
0.132705
1,379
43
131
32.069767
0.780936
0.121827
0
0
0
0
0.265356
0
0
0
0
0
0
0
null
null
0
0.043478
null
null
0.217391
0
0
0
null
0
0
0
0
0
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
5e4e528ceb93ba9a6bfb5fe4a70a113976795b94
5,523
py
Python
sdk/python/pulumi_alicloud/cen/get_private_zones.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/cen/get_private_zones.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/cen/get_private_zones.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
36.098039
139
0.640232
675
5,523
4.982222
0.202963
0.047577
0.057092
0.062444
0.271484
0.201606
0.138864
0.099019
0.078501
0.078501
0
0.001222
0.258917
5,523
152
140
36.335526
0.820425
0.215463
0
0.11
1
0
0.13899
0.03094
0
0
0
0
0
1
0.1
false
0
0.06
0.01
0.27
0
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
5e5091abb7e7b794d903d32698a65e8ca8e16cf6
4,486
py
Python
server_primes.py
schollz/beowulf_ssh_cluster
2ef9cc91f464586e9f4fb4ee9e8df6f7d8bc45ac
[ "MIT" ]
32
2015-04-18T15:36:41.000Z
2022-01-24T05:18:29.000Z
server_primes.py
schollz/beowulf_ssh_cluster
2ef9cc91f464586e9f4fb4ee9e8df6f7d8bc45ac
[ "MIT" ]
null
null
null
server_primes.py
schollz/beowulf_ssh_cluster
2ef9cc91f464586e9f4fb4ee9e8df6f7d8bc45ac
[ "MIT" ]
5
2017-12-02T15:48:05.000Z
2021-05-12T16:05:14.000Z
import shlex from subprocess import Popen, PIPE import logging import threading import time import json import pickle ''' 1. On server computer: ssh-keygen 2. Then ssh-copy-id user@address 3. For each address, add it to the "cluster" variable below ''' cluster = {} cluster['this computer']={'address':'bitnami@127....
28.573248
123
0.681453
661
4,486
4.594554
0.334342
0.03622
0.015805
0.028976
0.251893
0.232137
0.184063
0.164965
0.116233
0.091208
0
0.018918
0.163397
4,486
156
124
28.75641
0.790301
0.211101
0
0.306122
0
0
0.14402
0.007514
0.010204
0
0
0
0
0
null
null
0
0.071429
null
null
0.05102
0
0
0
null
0
0
0
0
0
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
5e531a18f3569cd9c6bbc159b37d040eca559c34
2,167
py
Python
gpu_usage_analysis/count_gpuuse_apps.py
RiS3-Lab/ModelXRay
60a98718eaa91eeb15d0737a9728cee4d714edd2
[ "Apache-2.0" ]
13
2021-04-05T08:37:37.000Z
2021-12-27T13:14:02.000Z
gpu_usage_analysis/count_gpuuse_apps.py
RiS3-Lab/ModelXRay
60a98718eaa91eeb15d0737a9728cee4d714edd2
[ "Apache-2.0" ]
1
2021-05-21T01:54:51.000Z
2021-11-19T07:36:47.000Z
gpu_usage_analysis/count_gpuuse_apps.py
RiS3-Lab/ModelXRay
60a98718eaa91eeb15d0737a9728cee4d714edd2
[ "Apache-2.0" ]
2
2022-01-18T07:37:31.000Z
2022-03-10T19:42:35.000Z
#!/usr/bin/env python def get_ml_gpu_apps(ml_apps, ml_libs, libfile): lines = open(libfile, 'r').readlines() #print(lines[0]) target_apps = [] gpu_libs = [] for l in lines: fields = l.split('/') app = fields[0] lib = fields[2][:-5] #print("app:%s, lib:%s"%(app,lib)) ...
30.521127
72
0.654822
315
2,167
4.24127
0.165079
0.063623
0.114521
0.041916
0.532186
0.379491
0.279192
0.279192
0.202844
0.092814
0
0.011323
0.225658
2,167
70
73
30.957143
0.784863
0.101061
0
0.254902
0
0
0.174497
0.108415
0
0
0
0
0
0
null
null
0
0
null
null
0.137255
0
0
0
null
0
0
0
0
0
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
5e60473b8000eaa53221111b902029574102092b
721
py
Python
src/purerpc/utils.py
frepond/purerpc
5184a4684e2fafecc924c684463b7d13217984b4
[ "Apache-2.0" ]
null
null
null
src/purerpc/utils.py
frepond/purerpc
5184a4684e2fafecc924c684463b7d13217984b4
[ "Apache-2.0" ]
null
null
null
src/purerpc/utils.py
frepond/purerpc
5184a4684e2fafecc924c684463b7d13217984b4
[ "Apache-2.0" ]
null
null
null
import platform import anyio import pdb import math def is_linux(): return platform.system() == "Linux" def is_darwin(): return platform.system() == "Darwin" def get_linux_kernel_version(): if not is_linux(): return None release = platform.release() if not release: return None ...
21.205882
90
0.647712
96
721
4.625
0.458333
0.072072
0.058559
0.072072
0
0
0
0
0
0
0
0.012915
0.248266
721
33
91
21.848485
0.806273
0
0
0.16
0
0
0.018031
0
0
0
0
0
0
1
0.12
false
0
0.2
0.08
0.52
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
0
0
0
0
0
0
1
0
0
1
5e693f6b199b74160b60b0f3178a9dcd4b79b5dc
1,277
py
Python
hera/loader.py
iafisher/hera-py
773729870cd593f0dc55ac6fe8b9c8690faa73c1
[ "MIT" ]
2
2020-10-27T19:16:45.000Z
2020-10-27T19:26:44.000Z
hera/loader.py
iafisher/hera-py
773729870cd593f0dc55ac6fe8b9c8690faa73c1
[ "MIT" ]
141
2018-11-20T16:55:06.000Z
2021-03-29T01:07:59.000Z
hera/loader.py
iafisher/hera-py
773729870cd593f0dc55ac6fe8b9c8690faa73c1
[ "MIT" ]
1
2019-02-27T22:02:33.000Z
2019-02-27T22:02:33.000Z
""" Convenient interface for parsing, type-checking and preprocessing a HERA program contained in a string or file. Author: Ian Fisher (iafisher@fastmail.com) Version: March 2019 """ from .checker import check from .data import Program, Settings from .parser import parse from .utils import handle_messages, Path, PATH...
35.472222
88
0.752545
172
1,277
5.436047
0.389535
0.102674
0.098396
0.086631
0.388235
0.35508
0.35508
0.278075
0.278075
0.278075
0
0.003742
0.162882
1,277
35
89
36.485714
0.870907
0.330462
0
0.4
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.266667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5e6b526d24bda66fea56fee9ffc6dbf1a7762c55
4,094
py
Python
src/dataclay/util/management/classmgr/Type.py
bsc-dom/pyclay
abb392c39f2c5991d890acd9a034c2d5c50cc0e4
[ "BSD-3-Clause" ]
1
2020-04-16T17:09:15.000Z
2020-04-16T17:09:15.000Z
src/dataclay/util/management/classmgr/Type.py
bsc-dom/pyclay
abb392c39f2c5991d890acd9a034c2d5c50cc0e4
[ "BSD-3-Clause" ]
35
2019-11-06T17:06:16.000Z
2021-04-12T16:27:20.000Z
src/dataclay/util/management/classmgr/Type.py
bsc-dom/pyclay
abb392c39f2c5991d890acd9a034c2d5c50cc0e4
[ "BSD-3-Clause" ]
1
2020-05-06T11:28:16.000Z
2020-05-06T11:28:16.000Z
""" Class description goes here. """ from dataclay.util.MgrObject import ManagementObject # Added descriptor and typeName class Type(ManagementObject): _fields = ["id", # sql id, internals "descriptor", "signature", "typeName", "includes", ...
40.94
97
0.573034
423
4,094
5.416076
0.333333
0.048887
0.02357
0.038411
0.268005
0.226102
0.226102
0.192929
0.192929
0.192929
0
0.000373
0.344651
4,094
99
98
41.353535
0.853522
0.287494
0
0.428571
0
0
0.090747
0
0
0
0
0.010101
0
1
0.031746
false
0.031746
0.095238
0
0.301587
0
0
0
0
null
0
0
0
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
5e6cef070a741281952542c67242e44998f24d2d
726
py
Python
order/migrations/0010_auto_20201203_1426.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
1
2021-06-18T03:03:42.000Z
2021-06-18T03:03:42.000Z
order/migrations/0010_auto_20201203_1426.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
order/migrations/0010_auto_20201203_1426.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-12-03 06:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0009_auto_20201203_1410'), ] operations = [ migrations.AlterField( model_name='order', name=...
29.04
134
0.559229
77
726
5.142857
0.675325
0.068182
0.126263
0.146465
0.191919
0.191919
0
0
0
0
0
0.078585
0.298898
726
24
135
30.25
0.699411
0.063361
0
0.333333
1
0
0.110092
0.035168
0
0
0
0
0
1
0
false
0
0.055556
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5e70bf08c7388c88c5140bf5d2ef06f9460c36cf
1,012
py
Python
sso/oauth2/migrations/0004_application_allow_access_by_email_suffix_squashed_0005_auto_20180205_2004.py
uktrade/staff-sso
c23da74415befdaed60649a9a940b1ba8331581e
[ "MIT" ]
7
2018-07-30T16:18:52.000Z
2022-03-21T12:58:20.000Z
sso/oauth2/migrations/0004_application_allow_access_by_email_suffix_squashed_0005_auto_20180205_2004.py
uktrade/staff-sso
c23da74415befdaed60649a9a940b1ba8331581e
[ "MIT" ]
55
2017-06-26T12:49:01.000Z
2022-03-09T15:48:49.000Z
sso/oauth2/migrations/0004_application_allow_access_by_email_suffix_squashed_0005_auto_20180205_2004.py
uktrade/staff-sso
c23da74415befdaed60649a9a940b1ba8331581e
[ "MIT" ]
1
2020-05-28T07:17:26.000Z
2020-05-28T07:17:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2018-02-05 20:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): replaces = [ ("oauth2", "0004_application_allow_access_by_email_suffix"), ("oauth2", "0005_auto_2018020...
31.625
238
0.613636
121
1,012
4.917355
0.710744
0.055462
0.065546
0.090756
0.12437
0
0
0
0
0
0
0.064649
0.281621
1,012
31
239
32.645161
0.753783
0.067194
0
0.086957
1
0.043478
0.306057
0.144527
0
0
0
0
0
1
0
false
0
0.086957
0
0.26087
0
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
5e71aeaad2f9769b70ed0eb57f079534f81dda33
296
py
Python
src/cube2crypto/cube2crypto/extended_euclidean_gcd.py
DanSeraf/spyd
af893b7f9c67785613b25754eb2cf150523a9fe4
[ "Zlib" ]
1
2020-03-23T20:28:06.000Z
2020-03-23T20:28:06.000Z
src/cube2crypto/cube2crypto/extended_euclidean_gcd.py
DanSeraf/spyd
af893b7f9c67785613b25754eb2cf150523a9fe4
[ "Zlib" ]
1
2022-02-05T16:59:53.000Z
2022-02-08T17:30:55.000Z
src/cube2crypto/cube2crypto/extended_euclidean_gcd.py
DanSeraf/spyd
af893b7f9c67785613b25754eb2cf150523a9fe4
[ "Zlib" ]
null
null
null
def extended_euclidean_gcd(a, b): """Copied from http://en.wikibooks.org/wiki/Algorithm_Implementation/Mathematics/Extended_Euclidean_algorithm""" x,y, u,v = 0,1, 1,0 while a != 0: q,r = b//a,b%a; m,n = x-u*q,y-v*q b,a, x,y, u,v = a,r, u,v, m,n return b, x, y
32.888889
101
0.581081
60
296
2.783333
0.466667
0.035928
0.035928
0.047904
0
0
0
0
0
0
0
0.02193
0.22973
296
8
102
37
0.710526
0.358108
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
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
5e7dd0b934aab871ce8d452afd739f1a06bef30a
763
py
Python
KEYWORDS/LENGTH.py
Andrew95496/ODL
0bb9b0055862c2b48e04b5610674044f03db5107
[ "MIT" ]
null
null
null
KEYWORDS/LENGTH.py
Andrew95496/ODL
0bb9b0055862c2b48e04b5610674044f03db5107
[ "MIT" ]
null
null
null
KEYWORDS/LENGTH.py
Andrew95496/ODL
0bb9b0055862c2b48e04b5610674044f03db5107
[ "MIT" ]
null
null
null
from KEYWORDS.KEYVAR import VAR_STACK import os class b: HEADER = '\033[95m' OKBLUE = '\033[94m' OKCYAN = '\033[96m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' class LENGTH: # number of items list de...
23.84375
84
0.546527
102
763
4
0.539216
0.078431
0.095588
0.102941
0.176471
0
0
0
0
0
0
0.089015
0.307995
763
32
85
23.84375
0.683712
0.060288
0
0.08
0
0
0.148252
0
0
0
0
0
0
1
0.08
false
0
0.08
0
0.6
0.12
0
0
0
null
0
0
0
0
0
0
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
5e8023c4903e4369a94d3258701033721632b42d
1,181
bzl
Python
javadoc/rules.bzl
prashantsharma04/bazel_java_rules
4f80fbe70e1778aa8e3e0ee8aa2f1efc3e44a462
[ "Apache-2.0" ]
1
2020-10-22T06:44:10.000Z
2020-10-22T06:44:10.000Z
javadoc/rules.bzl
prashantsharma04/bazel_java_rules
4f80fbe70e1778aa8e3e0ee8aa2f1efc3e44a462
[ "Apache-2.0" ]
5
2020-06-01T22:33:59.000Z
2020-11-01T17:03:06.000Z
javadoc/rules.bzl
prashantsharma04/bazel_java_rules
4f80fbe70e1778aa8e3e0ee8aa2f1efc3e44a462
[ "Apache-2.0" ]
1
2020-08-17T07:42:21.000Z
2020-08-17T07:42:21.000Z
# TODO(mihaibojin): WIP; finish writing a javadoc -> target plugin def _javadoc(ctx): """ Rule implementation for generating javadoc for the specified sources """ target_name = ctx.label.name output_jar = ctx.actions.declare_file("{}:{}-javadoc.jar".format(ctx.attr.group_id, ctx.attr.artifact_id)) ...
28.804878
118
0.61304
148
1,181
4.72973
0.513514
0.057143
0.037143
0
0
0
0
0
0
0
0
0.029967
0.237087
1,181
40
119
29.525
0.746948
0.208298
0
0
0
0
0.097032
0
0
0
0
0.025
0
1
0.035714
false
0
0
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
5e845c188167e350f5e164c93cb689fc21acc016
1,493
py
Python
jselect/lex.py
lennon-guan/jselect
29d78ff23954cea87255acd7613fec50abf9a09a
[ "MIT" ]
null
null
null
jselect/lex.py
lennon-guan/jselect
29d78ff23954cea87255acd7613fec50abf9a09a
[ "MIT" ]
null
null
null
jselect/lex.py
lennon-guan/jselect
29d78ff23954cea87255acd7613fec50abf9a09a
[ "MIT" ]
null
null
null
#coding: u8 import ply.lex as lex tokens = ( 'WHITE', 'WHERE', 'INT', 'FLOAT', 'STR', 'DOT', 'COMMA', 'LPAREN', 'RPAREN', 'LBRACKET', 'RBRACKET', 'SELECT', 'AND', 'OR', 'NOT', 'IN', 'EQ', 'NE', 'GT', 'LT', 'GE', 'LE', 'KEYWORD...
13.953271
34
0.446082
235
1,493
2.689362
0.268085
0.075949
0.142405
0.156646
0.175633
0.080696
0
0
0
0
0
0.003003
0.330877
1,493
106
35
14.084906
0.62963
0.006698
0
0.114943
0
0
0.184211
0.01417
0
0
0
0
0
0
null
null
0.011494
0.022989
null
null
0.011494
0
0
0
null
0
0
0
0
0
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
5e85c0515b017c623115ba7183541c7aa36bd2ce
1,303
py
Python
fileuploader/migrations/0001_initial.py
adi-x-ak/SEP
e029ccfc08b01109987aed30abcfd5c7ece6dd07
[ "MIT" ]
6
2020-08-09T13:56:57.000Z
2022-01-24T18:59:29.000Z
fileuploader/migrations/0001_initial.py
adi-x-ak/SEP
e029ccfc08b01109987aed30abcfd5c7ece6dd07
[ "MIT" ]
4
2019-09-19T17:47:50.000Z
2019-10-27T14:09:04.000Z
fileuploader/migrations/0001_initial.py
adi-x-ak/SEP
e029ccfc08b01109987aed30abcfd5c7ece6dd07
[ "MIT" ]
7
2019-09-25T16:22:34.000Z
2021-07-24T11:23:56.000Z
# Generated by Django 2.2.4 on 2019-10-26 22:56 from django.db import migrations, models import fileuploader.models import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='MyMedia', fields=[ ...
32.575
114
0.556408
128
1,303
5.515625
0.5
0.084986
0.101983
0.135977
0.338527
0.223796
0.223796
0.223796
0.223796
0.223796
0
0.031042
0.307751
1,303
39
115
33.410256
0.751663
0.034536
0
0.3125
1
0
0.069268
0
0
0
0
0
0
1
0
false
0
0.09375
0
0.21875
0
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
5e8729beb7ddd935f0fe8174b0f917382902904a
2,052
py
Python
dataset.py
AlbertoCenzato/dnn_bouncing_balls
78050f2cbd02fd91bae4ab41d7d8bed7a2db1b34
[ "MIT" ]
null
null
null
dataset.py
AlbertoCenzato/dnn_bouncing_balls
78050f2cbd02fd91bae4ab41d7d8bed7a2db1b34
[ "MIT" ]
null
null
null
dataset.py
AlbertoCenzato/dnn_bouncing_balls
78050f2cbd02fd91bae4ab41d7d8bed7a2db1b34
[ "MIT" ]
null
null
null
import math import re import os import numpy as np from torch.utils.data import Dataset class SutskeverDataset(Dataset): """ Loads from folder 'path' the dataset generated with 'dataset_generation.py' as numpy.ndarray. Expects one .npy file for sequence and returns numpy.ndarrays with shape (tim...
29.314286
87
0.615497
264
2,052
4.575758
0.333333
0.072848
0.049669
0.02649
0.09106
0.057947
0.057947
0.057947
0.057947
0
0
0.004752
0.282164
2,052
69
88
29.73913
0.815343
0.16423
0
0.047619
1
0
0.050725
0.013889
0
0
0
0
0
1
0.095238
false
0
0.119048
0.02381
0.309524
0
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
5e87960f3fa7a066bf5d6471d8ddf65ed5c00cbc
2,053
py
Python
scripts/import_mp_photos.py
transparenciahackday/democratica
246e79931c3e314a269469e67da00c12af3a5818
[ "MIT" ]
3
2016-01-10T16:00:10.000Z
2018-03-13T09:21:33.000Z
scripts/import_mp_photos.py
transparenciahackday/democratica
246e79931c3e314a269469e67da00c12af3a5818
[ "MIT" ]
null
null
null
scripts/import_mp_photos.py
transparenciahackday/democratica
246e79931c3e314a269469e67da00c12af3a5818
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Script para criar os modelos do Django a partir dos datasets Copyright 2010-2011 Ricardo Lafuente <r@sollec.org> Licenciado segundo a GPL v3 http://www.gnu.org/licenses/gpl.html ''' ### Set up Django path import sys, os projectpath = os.path.abspath('../../') if pr...
31.584615
83
0.690209
274
2,053
5.00365
0.437956
0.030635
0.021882
0
0
0
0
0
0
0
0
0.00602
0.19094
2,053
64
84
32.078125
0.819386
0.068193
0
0
0
0
0.196626
0.042467
0
0
0
0
0
0
null
null
0.02381
0.190476
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5e89cb3b1de67b3dbce5212dc884ebe7e210fc4f
438
py
Python
benkyo/benkyo/migrations/0006_auto_20180805_1619.py
ryanarnold/benkyo
a75b0ec7e0663ca5bf79ca98e25d201444f472aa
[ "MIT" ]
null
null
null
benkyo/benkyo/migrations/0006_auto_20180805_1619.py
ryanarnold/benkyo
a75b0ec7e0663ca5bf79ca98e25d201444f472aa
[ "MIT" ]
null
null
null
benkyo/benkyo/migrations/0006_auto_20180805_1619.py
ryanarnold/benkyo
a75b0ec7e0663ca5bf79ca98e25d201444f472aa
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-08-05 08:19 from django.conf import settings from django.db import migrations class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('benkyo', '0005_review'), ] operations = [ migrat...
21.9
66
0.63242
46
438
5.913043
0.73913
0.073529
0
0
0
0
0
0
0
0
0
0.058104
0.253425
438
19
67
23.052632
0.7737
0.10274
0
0
1
0
0.079284
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5e8e2dbc1f029c41a50fa920deaa2679cd725b9b
888
py
Python
tests/pipe_proc_tests/ext.py
thegooglecodearchive/nmrglue
34ffb5247f457c19b93c584e048df4042dea0482
[ "BSD-3-Clause" ]
1
2019-04-22T06:08:13.000Z
2019-04-22T06:08:13.000Z
tests/pipe_proc_tests/ext.py
thegooglecodearchive/nmrglue
34ffb5247f457c19b93c584e048df4042dea0482
[ "BSD-3-Clause" ]
null
null
null
tests/pipe_proc_tests/ext.py
thegooglecodearchive/nmrglue
34ffb5247f457c19b93c584e048df4042dea0482
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python import nmrglue.fileio.pipe as pipe import nmrglue.process.pipe_proc as p d,a = pipe.read("time_complex.fid") d,a = p.ext(d,a,left=True,sw=True) pipe.write("ext1.glue",d,a,overwrite=True) d,a = pipe.read("time_complex.fid") d,a = p.ext(d,a,right=True) pipe.write("ext2.glue",d,a,overwrite=True) ...
26.909091
42
0.690315
194
888
3.118557
0.242268
0.092562
0.069421
0.115702
0.619835
0.58843
0.58843
0.58843
0.58843
0.58843
0
0.040244
0.076577
888
32
43
27.75
0.697561
0.023649
0
0.304348
0
0
0.202079
0
0
0
0
0
0
1
0
true
0
0.086957
0
0.086957
0
0
0
0
null
0
0
0
0
0
0
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
5e973331bee14db1a5838ea95c2b980405beeaa2
1,970
py
Python
sa/profiles/ZTE/ZXA10/profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/profiles/ZTE/ZXA10/profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/profiles/ZTE/ZXA10/profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Vendor: ZTE # OS: ZXA10 # --------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # Pyt...
35.178571
99
0.508629
241
1,970
4.041494
0.443983
0.020534
0.01848
0.016427
0.320329
0.320329
0.320329
0.176591
0.112936
0.112936
0
0.012912
0.213706
1,970
55
100
35.818182
0.615881
0.165482
0
0.2
0
0.1
0.346389
0.24235
0
0
0
0
0
1
0.025
false
0
0.05
0
0.525
0
0
0
0
null
0
0
0
0
0
0
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
5e9a6cc0a39da3597bcfb0366bf17c52fcaad974
4,094
py
Python
test/test_cbors.py
mjkoo/cbors
297eed6392f8bbd418f8e23394f1b8a98b9d3240
[ "MIT" ]
6
2020-12-03T10:12:15.000Z
2022-03-15T18:59:40.000Z
test/test_cbors.py
mjkoo/cbors
297eed6392f8bbd418f8e23394f1b8a98b9d3240
[ "MIT" ]
8
2020-09-08T12:01:43.000Z
2022-03-24T17:28:53.000Z
test/test_cbors.py
mjkoo/cbors
297eed6392f8bbd418f8e23394f1b8a98b9d3240
[ "MIT" ]
2
2019-07-23T19:06:17.000Z
2021-04-26T11:33:36.000Z
import math from string import printable import cbors import pytest from hypothesis import given, settings, HealthCheck from hypothesis.strategies import ( binary, booleans, dictionaries, floats, integers, lists, none, recursive, text, ) i64 = integers(min_value=-92233720368547758...
26.412903
88
0.574744
429
4,094
5.421911
0.412587
0.030095
0.034394
0.042992
0.104901
0.063629
0.063629
0
0
0
0
0.220523
0.281143
4,094
154
89
26.584416
0.569827
0
0
0.073529
0
0
0.014656
0
0
0
0.131412
0
0.125
1
0.044118
false
0.007353
0.044118
0
0.095588
0.022059
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5e9e1d41f279474ef24ee635bb92698e3c189783
594
py
Python
setup.py
kdschlosser/wxAnimation
ad472719a77a081da5e51280d469cfd5d5bfcd3c
[ "MIT" ]
2
2020-03-23T11:29:56.000Z
2021-11-24T22:10:07.000Z
setup.py
kdschlosser/wxAnimation
ad472719a77a081da5e51280d469cfd5d5bfcd3c
[ "MIT" ]
null
null
null
setup.py
kdschlosser/wxAnimation
ad472719a77a081da5e51280d469cfd5d5bfcd3c
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from build_framework.extensions import Extension setup( name='wxAnimation', version='0.0.1a', url='https://github.com/kdschlosser/wxAnimation', packages=find_packages(include=['webp', 'webp.*', 'webp_build']), package_data={'webp_build': ['*.h', '*.c'...
29.7
94
0.690236
72
594
5.541667
0.638889
0.06015
0.080201
0.130326
0
0
0
0
0
0
0
0.017442
0.131313
594
20
95
29.7
0.755814
0
0
0
0
0
0.393939
0.114478
0
0
0
0
0
1
0
true
0
0.133333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
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
5ea6c818979aea29cdb91edf3b12f09c9cff06a1
2,296
py
Python
mailinglists/management/commands/diff-mailinglist.py
rickvanderzwet/makerspaceleiden-crm
a36d5073d4c49bbf46580ca9bbda5d80593d2d84
[ "Apache-2.0" ]
null
null
null
mailinglists/management/commands/diff-mailinglist.py
rickvanderzwet/makerspaceleiden-crm
a36d5073d4c49bbf46580ca9bbda5d80593d2d84
[ "Apache-2.0" ]
null
null
null
mailinglists/management/commands/diff-mailinglist.py
rickvanderzwet/makerspaceleiden-crm
a36d5073d4c49bbf46580ca9bbda5d80593d2d84
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from django.conf import settings from members.models import User from mailinglists.models import Mailinglist, Subscription, MailmanAccount, MailmanService import sys,os class Command(BaseCommand): help = 'Compare mailinglist(s) in mailman with da...
32.8
150
0.561411
245
2,296
5.208163
0.391837
0.035266
0.066614
0.029781
0
0
0
0
0
0
0
0.001273
0.315767
2,296
69
151
33.275362
0.810948
0
0
0.038462
0
0
0.176829
0
0
0
0
0
0
1
0.038462
false
0.096154
0.096154
0
0.173077
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5ea9ab769b4cb74be965540f81f1ea9fc3a5c6d8
2,886
py
Python
libtiepie/object.py
TiePie/python-libtiepie
d2a9875855298a58d6a16be5b61aaa89a558e7d8
[ "MIT" ]
6
2020-01-04T02:00:35.000Z
2022-03-22T00:32:26.000Z
libtiepie/object.py
TiePie/python-libtiepie
d2a9875855298a58d6a16be5b61aaa89a558e7d8
[ "MIT" ]
3
2020-08-05T15:16:29.000Z
2022-03-21T07:00:27.000Z
libtiepie/object.py
TiePie/python-libtiepie
d2a9875855298a58d6a16be5b61aaa89a558e7d8
[ "MIT" ]
null
null
null
from .api import api from .const import * from .library import library class Object(object): """""" def __init__(self, handle): self._handle = handle def __del__(self): api.ObjClose(self._handle) def _get_is_removed(self): """ Check whether an object is removed. """ ...
36.075
121
0.63167
359
2,886
4.86351
0.247911
0.057274
0.064147
0.088202
0.388316
0.337915
0.337915
0.318442
0.249714
0.167239
0
0.006202
0.273735
2,886
79
122
36.531646
0.826813
0.364172
0
0.305556
0
0
0.007495
0
0
0
0
0
0
1
0.25
false
0
0.083333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5eaa3cf2696e8a39fbb9b667c73926edefbd052b
1,756
py
Python
IMU/VTK-6.2.0/Examples/Modelling/Python/Delaunay3D.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
4
2016-03-30T14:31:52.000Z
2019-02-02T05:01:32.000Z
IMU/VTK-6.2.0/Examples/Modelling/Python/Delaunay3D.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
null
null
null
IMU/VTK-6.2.0/Examples/Modelling/Python/Delaunay3D.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
#!/usr/bin/env python # This example shows how to use Delaunay3D with alpha shapes. import vtk # The points to be triangulated are generated randomly in the unit # cube located at the origin. The points are then associated with a # vtkPolyData. math = vtk.vtkMath() points = vtk.vtkPoints() for i in range(...
28.786885
70
0.736333
231
1,756
5.597403
0.558442
0.020882
0.025522
0.027842
0.027842
0.027842
0.027842
0.027842
0
0
0
0.023858
0.164579
1,756
60
71
29.266667
0.857532
0.375854
0
0.057143
1
0
0
0
0
0
0
0
0
1
0
false
0
0.028571
0
0.028571
0
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
5eb6e27e0014da0b71d43e2be4825471196a4db4
2,676
py
Python
matrix_log_handler/__init__.py
getbenchmarked/matrix-log-handler
b3ee634f9b097d3f4b77619420b7bbee2528b53f
[ "Apache-2.0" ]
1
2019-02-26T03:54:50.000Z
2019-02-26T03:54:50.000Z
matrix_log_handler/__init__.py
getbenchmarked/matrix-log-handler
b3ee634f9b097d3f4b77619420b7bbee2528b53f
[ "Apache-2.0" ]
null
null
null
matrix_log_handler/__init__.py
getbenchmarked/matrix-log-handler
b3ee634f9b097d3f4b77619420b7bbee2528b53f
[ "Apache-2.0" ]
null
null
null
"""Log handler to send log messages to a Matrix room """ import logging from matrix_client.api import MatrixHttpApi class MatrixLogHandler(logging.Handler): """Log handler to send records to a Matrix room. :param base_url: the base URL of the Matrix homeserver to use. This should not include the `...
35.68
100
0.647608
381
2,676
4.435696
0.293963
0.028402
0.028402
0.018935
0.050888
0.050888
0.050888
0.050888
0.050888
0.050888
0
0
0.269058
2,676
74
101
36.162162
0.864008
0.406577
0
0
0
0
0.127418
0
0
0
0
0
0
1
0.114286
false
0.142857
0.057143
0
0.228571
0
0
0
0
null
0
0
0
0
0
0
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
5eb741227abdfcccea1345787df7e6c34e6450e0
10,159
py
Python
iron/pythonlib/PairwiseAlignmentBasics.py
jason-weirather/Au-public
c4e37770229f64a24bc79cd380e393f6de1fd7cb
[ "Apache-2.0" ]
4
2016-03-11T07:48:18.000Z
2017-01-01T20:49:10.000Z
iron/pythonlib/PairwiseAlignmentBasics.py
jason-weirather/Au-public
c4e37770229f64a24bc79cd380e393f6de1fd7cb
[ "Apache-2.0" ]
null
null
null
iron/pythonlib/PairwiseAlignmentBasics.py
jason-weirather/Au-public
c4e37770229f64a24bc79cd380e393f6de1fd7cb
[ "Apache-2.0" ]
5
2015-03-09T18:13:06.000Z
2019-01-15T10:19:07.000Z
import sys, re from SequenceBasics import rc class PairwiseAlignment: def __init__(self): self.s1 = None self.s2 = None self.a1 = None self.a2 = None self.score = None def load_sequences(self,s1,s2): self.s1 = s1 self.s2 = s2 def do_needleman_wunsch(self): [a1,a2,score] = needlema...
30.507508
125
0.565312
1,569
10,159
3.553856
0.110261
0.028694
0.026901
0.022597
0.406564
0.330344
0.256098
0.198171
0.155488
0.108142
0
0.04712
0.266759
10,159
332
126
30.599398
0.701436
0.042327
0
0.287582
0
0
0.042932
0
0
0
0
0
0
0
null
null
0
0.006536
null
null
0.022876
0
0
0
null
0
0
0
0
0
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
5eb8b31fbb7b14184dfd1086f0a5a701b48a97ed
3,279
py
Python
batch/lib/dbregister.py
makiichikawa/kabucalculator
283e4de96d3c1e5ac124fbe2abe5089902bd50c3
[ "MIT" ]
null
null
null
batch/lib/dbregister.py
makiichikawa/kabucalculator
283e4de96d3c1e5ac124fbe2abe5089902bd50c3
[ "MIT" ]
80
2021-09-23T04:48:36.000Z
2022-03-27T13:42:10.000Z
batch/lib/dbregister.py
makiichikawa/kabucalculator
283e4de96d3c1e5ac124fbe2abe5089902bd50c3
[ "MIT" ]
null
null
null
import mysql.connector as mydb class DBRegister: @property def host(self): pass @property def port(self): pass @property def username(self): pass @property def password(self): pass @property def database(self): pass @property ...
28.267241
74
0.541629
347
3,279
4.945245
0.242075
0.05303
0.052448
0.068182
0.238928
0.238928
0.054196
0.00641
0.00641
0.00641
0
0.020663
0.365355
3,279
115
75
28.513043
0.80394
0
0
0.247423
0
0.010309
0.392803
0.018298
0
0
0
0
0
1
0.164948
false
0.113402
0.010309
0
0.185567
0
0
0
0
null
0
0
0
0
0
0
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
5ebdc71a2b2592656aee2b36a81d0319c918aab9
34,055
py
Python
PyTorch NN Image Classification.py
pmadinei/dl-img-pytorch
06b25c7d17077f37e458c80ba1d41bf3dd23eda8
[ "Apache-2.0" ]
null
null
null
PyTorch NN Image Classification.py
pmadinei/dl-img-pytorch
06b25c7d17077f37e458c80ba1d41bf3dd23eda8
[ "Apache-2.0" ]
null
null
null
PyTorch NN Image Classification.py
pmadinei/dl-img-pytorch
06b25c7d17077f37e458c80ba1d41bf3dd23eda8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Designing and Altering Hyper-parameters in Neural Networks performed in Pytorch for Maximizing the Accuracy in Image Classification # ## Image Classification - Parsa Madinei # ## Imports # In[68]: import random import numpy as np import torchvision import torch import matp...
42.356965
1,173
0.735957
5,311
34,055
4.63698
0.174355
0.025338
0.024039
0.022414
0.311122
0.281683
0.27413
0.260933
0.251919
0.242498
0
0.018232
0.172163
34,055
803
1,174
42.409714
0.855207
0.527235
0
0.421196
0
0
0.052359
0.006379
0
0
0
0
0
1
0.038043
false
0
0.043478
0
0.108696
0.116848
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5ebf7ac2139dbb479f829cbcc2f15fe1a5415200
10,776
py
Python
linkcheck/models.py
AASHE/django-linkcheck
268a30d2bed9789d4c19ce62e6e55f749503f5f9
[ "BSD-3-Clause" ]
null
null
null
linkcheck/models.py
AASHE/django-linkcheck
268a30d2bed9789d4c19ce62e6e55f749503f5f9
[ "BSD-3-Clause" ]
null
null
null
linkcheck/models.py
AASHE/django-linkcheck
268a30d2bed9789d4c19ce62e6e55f749503f5f9
[ "BSD-3-Clause" ]
null
null
null
import re import imp import os.path import sys from datetime import datetime from datetime import timedelta from httplib import BadStatusLine from HTMLParser import HTMLParseError import logging import urllib2 from django.conf import settings from django.utils.importlib import import_module from django.contrib.conten...
36.282828
133
0.581385
1,205
10,776
5.100415
0.26556
0.029613
0.018223
0.017084
0.132932
0.096323
0.0781
0.052717
0.052717
0.042629
0
0.005088
0.325167
10,776
296
134
36.405405
0.840072
0.155252
0
0.3
0
0
0.082221
0
0
0
0
0.003378
0
0
null
null
0.013636
0.127273
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
5ec4a7b7b1e7feda36027d9c48ace546f1614296
1,134
py
Python
bitmessage/bitmessage_listener.py
FreeJournal/freejournal
4caa904c3adbc9e9c66603aec1e9b490d37c5306
[ "MIT" ]
4
2015-03-01T01:41:40.000Z
2015-07-09T18:34:50.000Z
bitmessage/bitmessage_listener.py
FreeJournal/freejournal
4caa904c3adbc9e9c66603aec1e9b490d37c5306
[ "MIT" ]
78
2015-02-28T22:50:37.000Z
2015-05-06T04:51:23.000Z
bitmessage/bitmessage_listener.py
FreeJournal/freejournal
4caa904c3adbc9e9c66603aec1e9b490d37c5306
[ "MIT" ]
1
2018-06-02T22:34:43.000Z
2018-06-02T22:34:43.000Z
from controllers.controller import Controller from config import MAIN_CHANNEL_ADDRESS, LISTEN_PERIOD from async import repeat_periodic, wait_for_interrupt, run_as_thread from time import sleep @run_as_thread def wait_for_join(controller): controller.join_downloads() def exit_func(controller): print "" if...
29.842105
110
0.706349
136
1,134
5.639706
0.463235
0.045632
0.046936
0.054759
0
0
0
0
0
0
0
0.003386
0.218695
1,134
37
111
30.648649
0.862302
0
0
0.071429
0
0
0.144821
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5ec797171cb36ec3e9e67b549e926c5cc1708dee
728
py
Python
scripts/timeout-demo.py
bworrell/buckshot
d500bab603672c18bdff2f4c66f3ef1030479eca
[ "MIT" ]
null
null
null
scripts/timeout-demo.py
bworrell/buckshot
d500bab603672c18bdff2f4c66f3ef1030479eca
[ "MIT" ]
null
null
null
scripts/timeout-demo.py
bworrell/buckshot
d500bab603672c18bdff2f4c66f3ef1030479eca
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print_function import os import sys import time import logging from buckshot import distribute TIMEOUT = 1.5 @distribute(timeout=TIMEOUT) def sleep_and_unicode(x): print("Process %s sle...
18.666667
66
0.699176
100
728
4.82
0.52
0.062241
0.099585
0
0
0
0
0
0
0
0
0.010204
0.192308
728
38
67
19.157895
0.809524
0.027473
0
0
0
0
0.137199
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.458333
0.208333
0
0
0
null
0
0
0
0
0
0
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
5ecd8e9a72bfa3f923a55a87bf1654a5e838237d
395
py
Python
setup.py
CampSights/CampSights
d9c2b64bc702deb6a7bf008e67c19925c1ad5a0d
[ "MIT" ]
null
null
null
setup.py
CampSights/CampSights
d9c2b64bc702deb6a7bf008e67c19925c1ad5a0d
[ "MIT" ]
null
null
null
setup.py
CampSights/CampSights
d9c2b64bc702deb6a7bf008e67c19925c1ad5a0d
[ "MIT" ]
2
2018-07-03T20:41:21.000Z
2018-07-10T21:36:57.000Z
from setuptools import setup setup( name='campsights', version='0.1.0', python_requires='>=3.6.0', packages=find_packages(), entry_points={ 'console_scripts': [ 'campsights = campsights_cli.__main__:main' ] }, url='https://github.com/mattCarnovale/CampSights', ...
23.235294
55
0.632911
43
395
5.581395
0.767442
0
0
0
0
0
0
0
0
0
0
0.019417
0.217722
395
16
56
24.6875
0.757282
0
0
0
0
0
0.407595
0.136709
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
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
5ece75e432760a34805fe3a2924e81dd71c0e847
328
py
Python
project_euler/100.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
project_euler/100.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
project_euler/100.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
import sys def check(n): tmp = n*(n-1)/2 x = int(tmp**0.5) return x*(x+1) == tmp def next(n, rate): m = int(n*rate) while not check(m): m += 1 return m, float(m)/n n = 4 rate = 5.0 for i in xrange(0, 100): (n, rate) = next(n, rate) print n if n > int(1e12): print '-'*50 print int((n*(n-1)/2)**0.5)+1 ...
14.26087
31
0.542683
73
328
2.438356
0.410959
0.11236
0.033708
0.044944
0
0
0
0
0
0
0
0.091633
0.234756
328
22
32
14.909091
0.61753
0
0
0
0
0
0.003049
0
0
0
0
0
0
0
null
null
0
0.052632
null
null
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
1
0
0
0
0
0
0
0
0
1
5ed27e6a42668bb013177ee2b16058403800f9a7
676
py
Python
tests/test_utils.py
django-athm/django-athm
a990c7e6a8c06619400c4550b9dc8fd6789a99d4
[ "MIT" ]
3
2020-07-25T02:04:57.000Z
2020-10-25T12:55:35.000Z
tests/test_utils.py
django-athm/django-athm
a990c7e6a8c06619400c4550b9dc8fd6789a99d4
[ "MIT" ]
162
2020-02-02T23:59:26.000Z
2022-03-29T06:13:56.000Z
tests/test_utils.py
django-athm/django-athm
a990c7e6a8c06619400c4550b9dc8fd6789a99d4
[ "MIT" ]
null
null
null
from django_athm import constants, utils def test_parse_error_code(): assert utils.parse_error_code("3020") == constants.ERROR_DICT["3020"] class TestSyncHTTPAdapter: def test_adapter_get_with_data(self, mock_httpx): adapter = utils.SyncHTTPAdapter() response = adapter.get_with_data(constan...
28.166667
73
0.70858
82
676
5.54878
0.390244
0.079121
0.072527
0.079121
0.452747
0.452747
0.452747
0.452747
0.210989
0
0
0.014545
0.186391
676
23
74
29.391304
0.812727
0
0
0.285714
0
0
0.065089
0
0
0
0
0
0.357143
1
0.214286
false
0
0.071429
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5ed790784871e41fd4ab0cd3833612366a0bbf60
6,611
py
Python
client.py
k4otix/python-tpam
1e310cf954e5963c2dafcd6549bf0af361c9d956
[ "MIT" ]
1
2017-11-03T18:25:43.000Z
2017-11-03T18:25:43.000Z
client.py
k4otix/python-tpam
1e310cf954e5963c2dafcd6549bf0af361c9d956
[ "MIT" ]
null
null
null
client.py
k4otix/python-tpam
1e310cf954e5963c2dafcd6549bf0af361c9d956
[ "MIT" ]
2
2018-12-21T03:07:30.000Z
2019-05-16T15:37:27.000Z
''' This module defines the TPAM SSHClient for interacting with the TPAM SSH CLI. Under the hood it uses paramiko to open an SSH connection and execute commands on the remote server. ''' import re import socket import paramiko import config import error from api_methods import api_2_5_11 from tpam.error import TPAM...
36.932961
87
0.561186
745
6,611
4.873826
0.312752
0.035803
0.008262
0.011567
0.140457
0.086753
0.06114
0.031396
0.031396
0.019829
0
0.007363
0.342611
6,611
178
88
37.140449
0.828118
0.080169
0
0.262295
0
0
0.053341
0.008052
0
0
0
0.005618
0
0
null
null
0.040984
0.057377
null
null
0.016393
0
0
0
null
0
0
0
0
0
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
0d5ec652c1b1e173d68fe6186e23332081d7aa22
290
py
Python
misc_functions.py
curaro/skidstorm_all_tt_data
cf2fc5c658e2c5432d35d1e602b1d97a1a435ac4
[ "Apache-2.0" ]
null
null
null
misc_functions.py
curaro/skidstorm_all_tt_data
cf2fc5c658e2c5432d35d1e602b1d97a1a435ac4
[ "Apache-2.0" ]
null
null
null
misc_functions.py
curaro/skidstorm_all_tt_data
cf2fc5c658e2c5432d35d1e602b1d97a1a435ac4
[ "Apache-2.0" ]
null
null
null
import csv def do_transpose(some_2Dlist): y = zip(*some_2Dlist) z = [] for i in y: z.append(list(i)) return z def write_2dlist_to_csv(some_2Dlist, some_file_name): fp = open(some_file_name, 'wb') writer = csv.writer(fp) writer.writerows(some_2Dlist)
18.125
53
0.651724
46
290
3.847826
0.543478
0.225989
0.135593
0
0
0
0
0
0
0
0
0.022523
0.234483
290
15
54
19.333333
0.774775
0
0
0
0
0
0.006897
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.363636
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
0d60f3970d447e8bb70b7af9f29562a60d3f03ad
844
py
Python
what_meta/migrations/0004_one_to_one_field.py
OdinGitDat/WhatManager2
ddbce0fa1ff4e1fc44bfa726c4f7eace4adbe8a9
[ "MIT" ]
null
null
null
what_meta/migrations/0004_one_to_one_field.py
OdinGitDat/WhatManager2
ddbce0fa1ff4e1fc44bfa726c4f7eace4adbe8a9
[ "MIT" ]
null
null
null
what_meta/migrations/0004_one_to_one_field.py
OdinGitDat/WhatManager2
ddbce0fa1ff4e1fc44bfa726c4f7eace4adbe8a9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('what_meta', '0003_add_artist_aliases'), ] operations = [ migrations.AlterField( model_name='whatmetafulltext', ...
29.103448
83
0.613744
76
844
6.592105
0.486842
0.063872
0.149701
0.173653
0.568862
0.568862
0.471058
0.251497
0
0
0
0.008117
0.270142
844
29
84
29.103448
0.805195
0.024882
0
0.391304
0
0
0.221411
0.090024
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
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
0d6105f9c8f29254d9ac03ab5d0f45431b693bc1
320
py
Python
controller/school.py
YunYinORG/social
5020e980cacd8eca39fccc36faabc584f3c3e15f
[ "Apache-2.0" ]
4
2015-12-20T14:57:57.000Z
2021-01-23T12:54:20.000Z
controller/school.py
YunYinORG/social
5020e980cacd8eca39fccc36faabc584f3c3e15f
[ "Apache-2.0" ]
1
2016-03-13T15:19:02.000Z
2016-03-18T03:11:18.000Z
controller/school.py
YunYinORG/social
5020e980cacd8eca39fccc36faabc584f3c3e15f
[ "Apache-2.0" ]
4
2015-12-21T02:26:29.000Z
2016-09-03T02:57:07.000Z
#!/usr/bin/env python # coding=utf-8 import web import lib.user as user class nku(object): """南开""" def GET(self): userinfo=user.getUser() render = web.template.render ('templates/school/',base="layout") if userinfo: return render.nku(userinfo) else: return render.nku_unlogin()
22.857143
70
0.64375
43
320
4.767442
0.72093
0.117073
0.146341
0
0
0
0
0
0
0
0
0.003968
0.2125
320
14
71
22.857143
0.809524
0.1125
0
0
0
0
0.082734
0
0
0
0
0
0
1
0.1
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
0d6e2e797b7358471f3afef690e4908d6f87c861
606
py
Python
frappe/utils/xlsxutils.py
rohitwaghchaure/frappe
9414bec421496eab66ea96ff8199d388bfca019c
[ "MIT" ]
2
2021-08-28T06:08:17.000Z
2021-09-06T10:41:43.000Z
frappe/utils/xlsxutils.py
rohitwaghchaure/frappe
9414bec421496eab66ea96ff8199d388bfca019c
[ "MIT" ]
null
null
null
frappe/utils/xlsxutils.py
rohitwaghchaure/frappe
9414bec421496eab66ea96ff8199d388bfca019c
[ "MIT" ]
1
2018-03-21T16:13:12.000Z
2018-03-21T16:13:12.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import encode, cstr, cint, flt, comma_or import openpyxl from cStringIO import StringIO from openpyxl.styles import Font # return xlsx file objec...
23.307692
68
0.768977
94
606
4.797872
0.606383
0.070953
0.062084
0
0
0
0
0
0
0
0
0.015414
0.143564
606
26
69
23.307692
0.853565
0.19637
0
0
0
0
0.014463
0
0
0
0
0
0
1
0.0625
false
0
0.375
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
0d7004a66109b761319e103307dfe33265bf92b1
373
py
Python
webtask13.py
shabidkhan/IMDB-scraper
9bf4b4b44b3594089e94f0547ba0bcaf5c9c534d
[ "MIT" ]
1
2020-07-03T06:49:44.000Z
2020-07-03T06:49:44.000Z
webtask13.py
shabidkhan/IMDB-scraper
9bf4b4b44b3594089e94f0547ba0bcaf5c9c534d
[ "MIT" ]
null
null
null
webtask13.py
shabidkhan/IMDB-scraper
9bf4b4b44b3594089e94f0547ba0bcaf5c9c534d
[ "MIT" ]
null
null
null
from webtask4 import * movies=movies_details() from webtask12 import * all_movie_and_actors_details=[] movies_actor=movie_actors() for i in range (len(movies)): movies[i]['cast']=movies_actor[i] all_movie_and_actors_details.append(movies[i]) # all_movie_and_actors_details.append(movies_actor[i]) if __name__=='__m...
24.866667
55
0.801609
57
373
4.736842
0.385965
0.118519
0.162963
0.251852
0.451852
0.274074
0.274074
0.274074
0
0
0
0.008746
0.080429
373
14
56
26.642857
0.778426
0.13941
0
0
0
0
0.037618
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
0d71abc116db87e01623b1e4bb809e395ce48bf3
892
py
Python
conventions/migrations/0013_convention_premiere_soumission_le.py
MTES-MCT/appel
3b840ccea600ef31cfea57721fe5e6edbdbc2c79
[ "MIT" ]
null
null
null
conventions/migrations/0013_convention_premiere_soumission_le.py
MTES-MCT/appel
3b840ccea600ef31cfea57721fe5e6edbdbc2c79
[ "MIT" ]
2
2021-12-15T05:10:43.000Z
2021-12-15T05:11:00.000Z
conventions/migrations/0013_convention_premiere_soumission_le.py
MTES-MCT/appel
3b840ccea600ef31cfea57721fe5e6edbdbc2c79
[ "MIT" ]
1
2021-12-28T13:06:06.000Z
2021-12-28T13:06:06.000Z
# Generated by Django 3.2.8 on 2021-11-05 14:48 from django.db import migrations, models def set_premiere_soumission_le(apps, schema_editor): # We can't import the Person model directly as it may be a newer # version than this migration expects. We use the historical version. Convention = apps.get_model...
28.774194
73
0.692825
106
892
5.641509
0.660377
0.120401
0.133779
0.076923
0
0
0
0
0
0
0
0.027299
0.219731
892
30
74
29.733333
0.831897
0.197309
0
0
1
0
0.122191
0.063202
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0d72784ec3c0a78bea24349efc0e936ec01f70ba
9,194
py
Python
submission/artificial_idiot/game/node.py
Dovermore/artificial_intelligence_project
2d71afd241490b456dd58e71b8f1fa92e8e2f0b7
[ "MIT" ]
null
null
null
submission/artificial_idiot/game/node.py
Dovermore/artificial_intelligence_project
2d71afd241490b456dd58e71b8f1fa92e8e2f0b7
[ "MIT" ]
null
null
null
submission/artificial_idiot/game/node.py
Dovermore/artificial_intelligence_project
2d71afd241490b456dd58e71b8f1fa92e8e2f0b7
[ "MIT" ]
null
null
null
from math import sqrt, log from random import shuffle from artificial_idiot.util.misc import randint class Node: """A node in a search tree. Contains a pointer to the parent (the node that this is a successor of) and to the actual state for this node. Note that if a state is arrived at by two paths, then ...
34.825758
79
0.586034
1,148
9,194
4.522648
0.226481
0.025616
0.025424
0.013867
0.216872
0.197034
0.176618
0.16198
0.16198
0.16198
0
0.012593
0.3263
9,194
263
80
34.958175
0.825638
0.214379
0
0.259887
0
0.00565
0.013595
0
0
0
0
0.019011
0
1
0.118644
false
0
0.016949
0.033898
0.440678
0.011299
0
0
0
null
0
0
0
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
0d78fc68c43bf0d7137ec88922e401e2589da130
2,825
py
Python
src/environments/kinova_env.py
gamerDecathlete/neural_jacobian_estimation
44deed91f0650830dd2da1796e67d084f0918995
[ "Apache-2.0" ]
4
2021-03-26T23:58:44.000Z
2022-01-17T18:06:49.000Z
src/environments/kinova_env.py
gamerDecathlete/neural_jacobian_estimation
44deed91f0650830dd2da1796e67d084f0918995
[ "Apache-2.0" ]
null
null
null
src/environments/kinova_env.py
gamerDecathlete/neural_jacobian_estimation
44deed91f0650830dd2da1796e67d084f0918995
[ "Apache-2.0" ]
null
null
null
import numpy as np import gym from environments.DHKinematics import DHKinematics from collections import namedtuple Bound = namedtuple('Bound', 'low high') class KinovaEnv(gym.core.Env): #Information from Kinova #https://www.kinovarobotics.com/sites/default/files/UG-014_KINOVA_Gen3_Ultra_lightweight_robot_Us...
33.630952
122
0.63115
394
2,825
4.360406
0.393401
0.023283
0.023283
0.027939
0.125728
0.061118
0.036671
0
0
0
0
0.046944
0.276106
2,825
83
123
34.036145
0.793154
0.135929
0
0.111111
0
0
0.053174
0
0
0
0
0.012048
0.092593
1
0.12963
false
0
0.074074
0
0.388889
0
0
0
0
null
0
0
0
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
0d7d3e1bf97cafa0ce9bbc1b4b9efa8089ee53df
2,209
py
Python
tridentstream/notifiers/wamp/handler.py
tridentstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
6
2020-01-03T14:50:09.000Z
2021-09-13T01:44:31.000Z
tridentstream/notifiers/wamp/handler.py
tidalstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
null
null
null
tridentstream/notifiers/wamp/handler.py
tidalstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
null
null
null
import logging from django.contrib.auth.models import User from unplugged import RelatedPluginField, Schema, fields from wampyre.realm import realm_manager from ...plugins import ConfigPlugin, NotifierPlugin logger = logging.getLogger(__name__) class WAMPSchema(Schema): config = RelatedPluginField(plugin_type=...
29.065789
79
0.598008
211
2,209
6.075829
0.350711
0.065523
0.042122
0.026521
0.048362
0.048362
0
0
0
0
0
0.000656
0.309642
2,209
75
80
29.453333
0.84
0.007243
0
0.111111
0
0
0.059334
0.013692
0
0
0
0.013333
0
1
0.055556
false
0
0.092593
0.018519
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
0d8940e0f8510037f2d5f28e61ce7f7422e50067
556
py
Python
lectures/chapter5/maxScore.py
arongas/python-examples
6a7c7923a048dde04b3472fd06381ab218ed2bc9
[ "Unlicense" ]
null
null
null
lectures/chapter5/maxScore.py
arongas/python-examples
6a7c7923a048dde04b3472fd06381ab218ed2bc9
[ "Unlicense" ]
null
null
null
lectures/chapter5/maxScore.py
arongas/python-examples
6a7c7923a048dde04b3472fd06381ab218ed2bc9
[ "Unlicense" ]
null
null
null
# 🚨 Don't change the code below 👇 student_scores = input("Input a list of student scores ").split() for n in range(0, len(student_scores)): student_scores[n] = int(student_scores[n]) print(student_scores) # 🚨 Don't change the code above 👆 #Write your code below this row 👇 max_score = -1 index = -1 max_index = -...
25.272727
80
0.708633
97
556
3.958763
0.42268
0.304688
0.026042
0.057292
0.09375
0.09375
0
0
0
0
0
0.011038
0.185252
556
21
81
26.47619
0.825607
0.170863
0
0
0
0
0.221491
0
0
0
0
0
0
1
0
false
0
0
0
0
0.133333
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
0d89603cb6143b26a131f84180a888c6ee7dfc8b
279
py
Python
Early/copyField_offices.py
adambreznicky/smudge_python
af7ba221890253ac6fe7f38691b351861f8b3d96
[ "MIT" ]
1
2017-05-24T02:05:20.000Z
2017-05-24T02:05:20.000Z
historic/copyField_offices.py
adambreznicky/smudge_python
af7ba221890253ac6fe7f38691b351861f8b3d96
[ "MIT" ]
null
null
null
historic/copyField_offices.py
adambreznicky/smudge_python
af7ba221890253ac6fe7f38691b351861f8b3d96
[ "MIT" ]
null
null
null
import arcpy source = "C:\\TxDOT\\Shapefiles\\District_Offices.shp" outputcopy = "T:\\DATAMGT\\MAPPING\\Personal Folders\\Adam\\District_Offices.shp" def copyPhone(): arcpy.JoinField_management(outputcopy, "Address", source, "Address", ["Phone"]) return "complete" copyPhone()
34.875
81
0.752688
32
279
6.46875
0.75
0.144928
0.173913
0
0
0
0
0
0
0
0
0
0.075269
279
7
82
39.857143
0.802326
0
0
0
0
0
0.487455
0.387097
0
0
0
0
0
1
0.142857
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
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
0d8d7e7e579835b1ef3e7258b8332cb5dfa57547
828
py
Python
sense_hat/sensor.py
g-grilli/station
8a26da6318c2b1fbc8129ea7224907c4798ae3be
[ "MIT" ]
null
null
null
sense_hat/sensor.py
g-grilli/station
8a26da6318c2b1fbc8129ea7224907c4798ae3be
[ "MIT" ]
null
null
null
sense_hat/sensor.py
g-grilli/station
8a26da6318c2b1fbc8129ea7224907c4798ae3be
[ "MIT" ]
null
null
null
#!usr/bin/env python 3 from sense_hat import SenseHat sense = SenseHat() <<<<<<< HEAD t = sense.get_temperature() h = sense.get_humidity() p = sense.get_pressure() def temperature(t): return round((t / 5 * 9) + 32, 1) def bar(p): return round((p / 0.02952998751, 1)) def hum(h): return round(humidity) msg ...
22.378378
105
0.681159
116
828
4.784483
0.362069
0.086486
0.068468
0.068468
0.216216
0.03964
0
0
0
0
0
0.094901
0.147343
828
36
106
23
0.691218
0.025362
0
0.076923
0
0.038462
0.124069
0
0
0
0
0
0
0
null
null
0
0.038462
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0d90994022bbaa7488b2d8e1a3b0fd3e812b5284
651
py
Python
AoC2020/Day_3/day_3.py
byarmis/AdventOfCode
9c91808c2ea06d49f7e726779ac44918a99136f0
[ "Unlicense" ]
null
null
null
AoC2020/Day_3/day_3.py
byarmis/AdventOfCode
9c91808c2ea06d49f7e726779ac44918a99136f0
[ "Unlicense" ]
null
null
null
AoC2020/Day_3/day_3.py
byarmis/AdventOfCode
9c91808c2ea06d49f7e726779ac44918a99136f0
[ "Unlicense" ]
null
null
null
with open('input.txt') as f: graph = f.readlines() tree_count = 0 x = 0 for line in graph: if line[x] == '#': tree_count += 1 x += 3 x %= len(line.strip()) print('Part one: ', tree_count) slopes = (1, 3, 5, 7) mult_count = 1 for slope in slopes: tree_count = 0 x = 0 for line in gr...
16.692308
31
0.522273
103
651
3.174757
0.291262
0.247706
0.091743
0.100917
0.593272
0.593272
0.593272
0.538226
0.348624
0.269113
0
0.038288
0.317972
651
38
32
17.131579
0.698198
0
0
0.633333
0
0
0.049231
0
0
0
0
0
0
1
0
false
0
0
0
0
0.066667
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
0d946d1feddd62be89b333dbe52500456f9be1ae
12,532
py
Python
lib/oe/patch.py
andreimironenko/arago-oe-dev
4e1175f61be9d0dd68873e4847fe531e5f93b52a
[ "MIT" ]
70
2015-02-23T04:18:51.000Z
2022-03-15T02:01:27.000Z
lib/oe/patch.py
buglabs/oe-buglabs
b8a4c4b1358214cd3ac1cf6f85154e9c62b16ce7
[ "MIT" ]
1
2020-09-07T15:33:56.000Z
2020-09-07T15:33:56.000Z
lib/oe/patch.py
buglabs/oe-buglabs
b8a4c4b1358214cd3ac1cf6f85154e9c62b16ce7
[ "MIT" ]
88
2015-02-11T12:03:16.000Z
2022-03-30T11:33:42.000Z
import subprocess import os import oe.path import oe.process import bb.fetch, bb.data class PatchError(Exception): def __init__(self, msg): self.msg = msg def __str__(self): return "Patch Error: %s" % self.msg class PatchSet(object): defaults = { "strippath": 1 } def __in...
35.005587
153
0.549633
1,443
12,532
4.705475
0.18018
0.042121
0.01296
0.012371
0.35405
0.290722
0.240943
0.176141
0.133137
0.12106
0
0.00473
0.325168
12,532
357
154
35.103641
0.798155
0.059767
0
0.402256
0
0
0.110317
0
0
0
0
0.002801
0
0
null
null
0.003759
0.052632
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0d9b435f660073263afdc3081e6bdc85757bf2e8
2,640
py
Python
venv/lib/python3.7/site-packages/pystan/tests/test_stan_file_io.py
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/pystan/tests/test_stan_file_io.py
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/pystan/tests/test_stan_file_io.py
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import unittest import io import os import tempfile import numpy as np from pystan import stan, stanc class TestStanFileIO(unittest.TestCase): def test_stan_model_from_file(self): bernoulli_model_code = """ d...
33
82
0.543182
374
2,640
3.729947
0.197861
0.017204
0.086022
0.057348
0.615771
0.615771
0.610753
0.610753
0.610753
0.610753
0
0.063578
0.29697
2,640
79
83
33.417722
0.688039
0.021591
0
0.491803
0
0
0.165632
0.008146
0
0
0
0
0.327869
1
0.016393
false
0
0.114754
0
0.147541
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0dab0d85663753a5dc32c1d96b21d9dddace6ecd
1,124
py
Python
wall/migrations/0002_auto_20160929_2016.py
adrianborkowski/blog
35f5d1c385c7115659b6e002261a07a861e4b032
[ "MIT" ]
null
null
null
wall/migrations/0002_auto_20160929_2016.py
adrianborkowski/blog
35f5d1c385c7115659b6e002261a07a861e4b032
[ "MIT" ]
10
2019-11-28T22:31:22.000Z
2022-03-11T23:14:14.000Z
wall/migrations/0002_auto_20160929_2016.py
adrianborkowski/blog
35f5d1c385c7115659b6e002261a07a861e4b032
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-29 18:16 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wall', '0001_initial'), ] operations = [ migrations.AddFiel...
26.139535
90
0.553381
110
1,124
5.509091
0.518182
0.059406
0.085809
0.112211
0.414191
0.414191
0.356436
0.356436
0.356436
0.224422
0
0.039683
0.327402
1,124
42
91
26.761905
0.761905
0.060498
0
0.485714
1
0
0.049383
0
0
0
0
0
0
1
0
false
0
0.085714
0
0.171429
0
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
0db3b42a018e4288b64805652d9f1500f5982678
1,536
py
Python
hfb/runner/__init__.py
harshanarayana/hfb
c42a6d7da29ada5053e259195a4676835a6afa86
[ "MIT" ]
1
2019-02-09T18:42:39.000Z
2019-02-09T18:42:39.000Z
hfb/runner/__init__.py
harshanarayana/hfb
c42a6d7da29ada5053e259195a4676835a6afa86
[ "MIT" ]
null
null
null
hfb/runner/__init__.py
harshanarayana/hfb
c42a6d7da29ada5053e259195a4676835a6afa86
[ "MIT" ]
null
null
null
from hfb.strategy import AbstractFrameworkBenchmarkRunner, AbstractServerRunner import hfb.runner.factory from inspect import getmembers class Context: def __init__( self, benchmark_runner: AbstractFrameworkBenchmarkRunner, server_runner: AbstractServerRunner, ): self._benchmar...
31.346939
86
0.66862
161
1,536
6.111801
0.322981
0.101626
0.096545
0.050813
0
0
0
0
0
0
0
0.000845
0.229818
1,536
48
87
32
0.830938
0
0
0
0
0
0.033854
0
0
0
0
0
0
1
0.216216
false
0
0.081081
0.081081
0.432432
0
0
0
0
null
0
0
0
0
0
0
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
0db5d9e14b63835b158b52f37c8953bcac5ad8d9
1,298
py
Python
solutions/solution593.py
Satily/leetcode_python_solution
3f05fff7758d650469862bc28df9e4aa7b1d3203
[ "MIT" ]
3
2018-11-22T10:31:09.000Z
2019-05-05T15:53:48.000Z
solutions/solution593.py
Satily/leetcode_python_solution
3f05fff7758d650469862bc28df9e4aa7b1d3203
[ "MIT" ]
null
null
null
solutions/solution593.py
Satily/leetcode_python_solution
3f05fff7758d650469862bc28df9e4aa7b1d3203
[ "MIT" ]
null
null
null
class Vector(object): def __init__(self, p0, p1): self.x = p1[0] - p0[0] self.y = p1[1] - p0[1] def is_vertical(self, other): return not self.dot(other) def dot(self, other): return self.x * other.x + self.y * other.y def norm_square(self): return self.dot(self...
30.904762
92
0.491525
183
1,298
3.377049
0.289617
0.080906
0.053398
0.02589
0.084142
0
0
0
0
0
0
0.052195
0.350539
1,298
41
93
31.658537
0.680902
0.070878
0
0
0
0
0.006957
0
0
0
0
0
0
1
0.185185
false
0
0
0.111111
0.444444
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0dcf4f1e32aa294d423662c949199e3b9071cbb0
3,113
py
Python
scrape_mars.py
Mahamoud8/web-scraping-challenge
bac165a7129a466972812137b8cb19316e924ddc
[ "ADSL" ]
null
null
null
scrape_mars.py
Mahamoud8/web-scraping-challenge
bac165a7129a466972812137b8cb19316e924ddc
[ "ADSL" ]
null
null
null
scrape_mars.py
Mahamoud8/web-scraping-challenge
bac165a7129a466972812137b8cb19316e924ddc
[ "ADSL" ]
null
null
null
# Importing dependencies from splinter import Browser from bs4 import BeautifulSoup as bs import time import pandas as pd import requests import os # chromedriver executable_path = {'executable_path': 'C:\\Users\\bin\\chromedriver.exe'} browser = Browser('chrome', **executable_path, headless = False) def scrape(): ...
31.13
112
0.641825
394
3,113
4.840102
0.319797
0.051914
0.031463
0.039853
0.2344
0.121133
0.073414
0.073414
0
0
0
0.00339
0.241889
3,113
100
113
31.13
0.804661
0.056537
0
0.202899
0
0.014493
0.203072
0.019795
0
0
0
0
0
0
null
null
0
0.086957
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
0de32051c782cb7909c0bad16199bf69690cadcf
627
py
Python
for python/data/tbiru/pframe.py
aerolalit/Auto-Testing-Python-Programs
dd49ab266c9f0fd8e34278f68f8af017711942e3
[ "MIT" ]
4
2019-10-03T21:16:51.000Z
2019-10-04T01:28:08.000Z
for python/data/tbiru/pframe.py
aerolalit/Auto-Testing
dd49ab266c9f0fd8e34278f68f8af017711942e3
[ "MIT" ]
null
null
null
for python/data/tbiru/pframe.py
aerolalit/Auto-Testing
dd49ab266c9f0fd8e34278f68f8af017711942e3
[ "MIT" ]
null
null
null
# 350111 # a3 p10.py # Tibebu T.Biru # t.biru@jacobs-university.de #function definition def print_frame(n, m, c): print(c * m) for i in range(1, n - 1): print(c, ' ' * (m - 2), c, sep='') print(c * m) """ Basically, we print the first and last lines by using repetition which is mult...
26.125
70
0.623604
100
627
3.89
0.54
0.046272
0.053985
0.061697
0.066838
0
0
0
0
0
0
0.027601
0.248804
627
23
71
27.26087
0.798301
0.141946
0
0.222222
0
0
0.229927
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.111111
0.555556
0
0
0
null
0
0
0
0
0
0
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
0de663f4b7a6f5dc0b5d1aa30bebb48dc0c03777
4,474
py
Python
authors/apps/profiles/test_follow.py
james-chege/ah-shakas
d1ed11097bd1f9e9cf1b867a0b29909df6262cf0
[ "BSD-3-Clause" ]
null
null
null
authors/apps/profiles/test_follow.py
james-chege/ah-shakas
d1ed11097bd1f9e9cf1b867a0b29909df6262cf0
[ "BSD-3-Clause" ]
1
2020-02-11T23:27:42.000Z
2020-02-11T23:27:42.000Z
authors/apps/profiles/test_follow.py
koechkevin/authors-copy
78f79d58ddf9ed885c2bfb56f6310889797d52b7
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth import get_user_model from rest_framework import status from rest_framework.reverse import reverse from rest_framework.test import APITestCase from authors.apps.authentication.models import UserManager from .models import Profile from authors.apps.authentication.token import generate_token cl...
38.904348
95
0.645284
516
4,474
5.434109
0.158915
0.060628
0.064194
0.062767
0.701854
0.68224
0.68224
0.668688
0.655849
0.639087
0
0.011455
0.21949
4,474
114
96
39.245614
0.791523
0.025928
0
0.505495
0
0
0.127872
0.018102
0
0
0
0
0.087912
1
0.131868
false
0.021978
0.076923
0
0.241758
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0de6c997a1e0c7041f6459f98aaf837034c66d41
4,663
py
Python
ModernWarfare/XAssets/battlePasses.py
Mario-Kart-Felix/Hyde
eaaae703cf04752caa009a93c3928959de8047bd
[ "MIT" ]
14
2020-05-01T13:54:48.000Z
2022-02-14T21:58:35.000Z
ModernWarfare/XAssets/battlePasses.py
Mario-Kart-Felix/Hyde
eaaae703cf04752caa009a93c3928959de8047bd
[ "MIT" ]
3
2020-06-09T19:24:48.000Z
2021-03-06T11:34:04.000Z
ModernWarfare/XAssets/battlePasses.py
Mario-Kart-Felix/Hyde
eaaae703cf04752caa009a93c3928959de8047bd
[ "MIT" ]
4
2020-05-24T19:15:08.000Z
2022-02-04T21:20:29.000Z
import logging from typing import Any, Dict, List, TypedDict from utility import Utility log: logging.Logger = logging.getLogger(__name__) class BattlePassSeason(TypedDict): """Structure of loot/battlepass_season*.csv""" level: int xp: int lootId: str # array of ints isFree: int # bool xp...
29.512658
87
0.531846
463
4,663
5.323974
0.280778
0.0357
0.0357
0.045436
0.281542
0.158215
0.111156
0.111156
0.081136
0.081136
0
0.004946
0.34956
4,663
157
88
29.700637
0.807781
0.083208
0
0.070796
0
0
0.108798
0.045885
0
0
0
0
0
1
0.035398
false
0.185841
0.026549
0
0.460177
0
0
0
0
null
0
0
0
0
0
0
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
0de9378e253d2a430bc9e5d7a8d3c3e0a8860c85
2,823
py
Python
codegen.py
scottidler/dabaez-compiler
b8744eb1e0e9e00dfa28cdaee95a29166acf660a
[ "MIT" ]
null
null
null
codegen.py
scottidler/dabaez-compiler
b8744eb1e0e9e00dfa28cdaee95a29166acf660a
[ "MIT" ]
null
null
null
codegen.py
scottidler/dabaez-compiler
b8744eb1e0e9e00dfa28cdaee95a29166acf660a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import re import sys sys.dont_write_bytecode = True REAL_FILE = os.path.abspath(__file__) REAL_NAME = os.path.basename(REAL_FILE) REAL_PATH = os.path.dirname(REAL_FILE) if os.path.islink(__file__): LINK_FILE = REAL_FILE; REAL_FILE = os.path.abspath(os.readl...
20.605839
77
0.54481
386
2,823
3.84456
0.186529
0.056604
0.048518
0.02628
0.556604
0.421833
0.361186
0.281671
0.281671
0.238544
0
0.00489
0.275593
2,823
136
78
20.757353
0.720782
0.015232
0
0.3125
0
0
0.074677
0.007763
0
0
0
0
0
1
0.229167
false
0
0.03125
0.020833
0.3125
0.03125
0
0
0
null
0
0
0
0
0
0
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
0ded00e574cafbc56c7040c0c27b8a448f864ab0
4,622
py
Python
exatomic/widgets/tests/test_widget_util.py
tjduigna/exatomic
3e27233084588bc6a58b63fc81aaf5a6b67a968d
[ "Apache-2.0" ]
null
null
null
exatomic/widgets/tests/test_widget_util.py
tjduigna/exatomic
3e27233084588bc6a58b63fc81aaf5a6b67a968d
[ "Apache-2.0" ]
1
2017-05-25T21:05:40.000Z
2017-05-25T23:54:15.000Z
exatomic/widgets/tests/test_widget_util.py
tjduigna/exatomic
3e27233084588bc6a58b63fc81aaf5a6b67a968d
[ "Apache-2.0" ]
1
2017-05-25T20:48:33.000Z
2017-05-25T20:48:33.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015-2018, Exa Analytics Development Team # Distributed under the terms of the Apache License 2.0 from unittest import TestCase from ipywidgets import Button from ..widget_utils import _ListDict, Folder, GUIBox, gui_field_widgets class TestFolder(TestCase): def test_ini...
33.985294
77
0.548464
583
4,622
4.252144
0.161235
0.175474
0.075434
0.083501
0.594191
0.480436
0.38685
0.311013
0.296087
0.246067
0
0.025736
0.243401
4,622
135
78
34.237037
0.683157
0.028343
0
0.307692
0
0
0.028527
0
0
0
0
0
0.423077
1
0.153846
false
0
0.028846
0
0.221154
0
0
0
0
null
0
0
0
0
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
0ded2ca8eaaac72958206c2dc3bdae081b9aa14a
446
py
Python
thresher_backend/storage.py
normangilmore/TextThresher
b5919389dd6a2eb1ce084cb6262e9ff7a06cc751
[ "Apache-2.0" ]
21
2016-08-01T23:42:00.000Z
2020-08-06T17:41:31.000Z
thresher_backend/storage.py
normangilmore/TextThresher
b5919389dd6a2eb1ce084cb6262e9ff7a06cc751
[ "Apache-2.0" ]
38
2016-08-02T01:07:57.000Z
2017-10-27T22:48:31.000Z
thresher_backend/storage.py
normangilmore/TextThresher
b5919389dd6a2eb1ce084cb6262e9ff7a06cc751
[ "Apache-2.0" ]
11
2016-08-03T22:31:59.000Z
2021-12-28T18:35:49.000Z
from django.contrib.staticfiles import storage # Configure the permissions used by ./manage.py collectstatic # See https://docs.djangoproject.com/en/1.10/ref/contrib/staticfiles/ class TTStaticFilesStorage(storage.StaticFilesStorage): def __init__(self, *args, **kwargs): kwargs['file_permissions_mode'] = 0...
44.6
69
0.753363
50
446
6.48
0.74
0.111111
0
0
0
0
0
0
0
0
0
0.028424
0.132287
446
9
70
49.555556
0.808786
0.284753
0
0
0
0
0.148734
0.148734
0
0
0
0
0
1
0.166667
false
0
0.166667
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
0dee464f8a51d51b0180dc58f6b81c0b1049217f
367
py
Python
kalin_combat/project/battle/area_battle.py
ivan-yosifov88/python_oop_june_2021
7ae6126065abbcce7ce97c86d1150ae307360249
[ "MIT" ]
1
2021-08-03T19:14:24.000Z
2021-08-03T19:14:24.000Z
kalin_combat/project/battle/area_battle.py
ivan-yosifov88/python_oop_june_2021
7ae6126065abbcce7ce97c86d1150ae307360249
[ "MIT" ]
null
null
null
kalin_combat/project/battle/area_battle.py
ivan-yosifov88/python_oop_june_2021
7ae6126065abbcce7ce97c86d1150ae307360249
[ "MIT" ]
null
null
null
from project.battle.battle import Battle from project.figure.figure import Figure class AreaBattle(Battle): @staticmethod def battle(figure_1: Figure, figure_2: Figure): if figure_1.calculate_area() == figure_2.calculate_area(): return None return figure_1 if figure_1.calculate_ar...
30.583333
94
0.730245
50
367
5.12
0.34
0.109375
0.070313
0.140625
0.328125
0.328125
0.328125
0.328125
0.328125
0
0
0.026846
0.188011
367
11
95
33.363636
0.832215
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
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
0df1f29a19c6cc447ec0844d6f8e737199e39b12
1,407
py
Python
cirq/testing/consistent_resolve_parameters.py
lilies/Cirq
519b8b70ba4d2d92d1c034c398161ebdbd23e2e7
[ "Apache-2.0" ]
3
2020-09-26T03:56:28.000Z
2020-09-27T13:21:04.000Z
cirq/testing/consistent_resolve_parameters.py
lilies/Cirq
519b8b70ba4d2d92d1c034c398161ebdbd23e2e7
[ "Apache-2.0" ]
null
null
null
cirq/testing/consistent_resolve_parameters.py
lilies/Cirq
519b8b70ba4d2d92d1c034c398161ebdbd23e2e7
[ "Apache-2.0" ]
1
2020-12-24T07:13:40.000Z
2020-12-24T07:13:40.000Z
# Copyright 2020 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
35.175
80
0.707889
197
1,407
5.010152
0.517767
0.06079
0.026342
0.032421
0
0
0
0
0
0
0
0.008341
0.23312
1,407
39
81
36.076923
0.906395
0.539446
0
0.117647
0
0
0
0
0
0
0
0
0.352941
1
0.058824
false
0.058824
0.117647
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
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
0dfa39eb04cfcbad6da4d193f8eaa3b63bd9a7dc
24,051
py
Python
code/finetune.py
bdevans/generalisation-humans-DNNs
b38bc59fd4bd34e13c50c8fd19cd418d2f3a36f9
[ "CC-BY-4.0" ]
null
null
null
code/finetune.py
bdevans/generalisation-humans-DNNs
b38bc59fd4bd34e13c50c8fd19cd418d2f3a36f9
[ "CC-BY-4.0" ]
null
null
null
code/finetune.py
bdevans/generalisation-humans-DNNs
b38bc59fd4bd34e13c50c8fd19cd418d2f3a36f9
[ "CC-BY-4.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.05538
143
0.671282
2,978
24,051
5.10544
0.165547
0.037885
0.044725
0.030387
0.472902
0.414628
0.380624
0.346027
0.300908
0.288214
0
0.026564
0.237745
24,051
631
144
38.115689
0.80276
0.178995
0
0.34763
0
0
0.100179
0.053153
0
0
0
0.001585
0.040632
1
0.060948
false
0.072235
0.045147
0
0.23702
0.031603
0
0
0
null
0
0
0
0
0
0
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
216cd97974b24c766e645446ad7743996af9a07e
405
py
Python
api/tests/test_cases.py
Master-Bruce/breakfast
6347b2c94a8b7b6c9b3e6eb6cf794af1ca7d97ff
[ "MIT" ]
null
null
null
api/tests/test_cases.py
Master-Bruce/breakfast
6347b2c94a8b7b6c9b3e6eb6cf794af1ca7d97ff
[ "MIT" ]
24
2018-11-12T21:16:00.000Z
2022-03-11T23:40:25.000Z
api/tests/test_cases.py
Master-Bruce/breakfast
6347b2c94a8b7b6c9b3e6eb6cf794af1ca7d97ff
[ "MIT" ]
null
null
null
from rest_framework.test import APIClient from election.tests.test_case import BallotsTestCase class BallotsApiTestCase(BallotsTestCase): def setUp(self): super().setUp() self.client = APIClient() response = self.client.post('/api/login/', {'username': 'admin', 'password': 'admin'}) ...
33.75
94
0.698765
44
405
6.363636
0.681818
0.107143
0
0
0
0
0
0
0
0
0
0
0.162963
405
11
95
36.818182
0.825959
0
0
0
0
0
0.118519
0
0
0
0
0
0
1
0.125
false
0.125
0.25
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
1
0
0
0
0
0
1
216e26f85be418bde605be243d86b39875107984
7,725
py
Python
Extraction/src/main/python/opensextant/TaxCat.py
jgibson/Xponents
808abeb4ebfd0c669126ddea95dc1eea10e14cb0
[ "Apache-2.0" ]
null
null
null
Extraction/src/main/python/opensextant/TaxCat.py
jgibson/Xponents
808abeb4ebfd0c669126ddea95dc1eea10e14cb0
[ "Apache-2.0" ]
null
null
null
Extraction/src/main/python/opensextant/TaxCat.py
jgibson/Xponents
808abeb4ebfd0c669126ddea95dc1eea10e14cb0
[ "Apache-2.0" ]
null
null
null
''' Copyright 2014 The MITRE Corporation. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
29.041353
119
0.570356
990
7,725
4.354545
0.309091
0.032475
0.015078
0.007423
0.018557
0.018557
0.018557
0.018557
0
0
0
0.0124
0.321424
7,725
265
120
29.150943
0.809996
0.034951
0
0.141844
0
0
0.06075
0
0
0
0
0
0
0
null
null
0
0.021277
null
null
0.042553
0
0
0
null
0
0
0
0
0
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
21735e388744900ddb38738b93a06247b2dcb7b2
365
py
Python
setup.py
Fxe/biosapi
f8ae593bcac6274b00faaa923b79dbf5ac7a303a
[ "MIT" ]
null
null
null
setup.py
Fxe/biosapi
f8ae593bcac6274b00faaa923b79dbf5ac7a303a
[ "MIT" ]
null
null
null
setup.py
Fxe/biosapi
f8ae593bcac6274b00faaa923b79dbf5ac7a303a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='biosapi', version='0.1.0', description='BIOS API', url='https://github.com/Fxe/biosapi', author='Filipe Liu', author_email='fliu@anl.gov', license='MIT', packages=find_packages(), install_requires=[ "reque...
26.071429
43
0.59726
44
365
4.840909
0.818182
0.112676
0
0
0
0
0
0
0
0
0
0.025547
0.249315
365
14
44
26.071429
0.751825
0
0
0
0
0
0.254098
0
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
2174cc0e4dba5950b5d457755e94e8c5e7d64585
4,941
py
Python
tests/test_models/test_dense_heads/test_tood_head.py
skymanaditya1/mmdetection_modifications
0030b884b691ff6d6429a3024f4e080063b7f1df
[ "Apache-2.0" ]
10
2021-12-31T02:30:30.000Z
2022-03-16T03:13:26.000Z
tests/test_models/test_dense_heads/test_tood_head.py
skymanaditya1/mmdetection_modifications
0030b884b691ff6d6429a3024f4e080063b7f1df
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_dense_heads/test_tood_head.py
skymanaditya1/mmdetection_modifications
0030b884b691ff6d6429a3024f4e080063b7f1df
[ "Apache-2.0" ]
4
2022-01-02T02:14:53.000Z
2022-01-14T13:24:06.000Z
# Copyright (c) OpenMMLab. All rights reserved. import mmcv import torch from mmdet.models.dense_heads import TOODHead def test_paa_head_loss(): """Tests paa head loss when truth is empty and non-empty.""" s = 256 img_metas = [{ 'img_shape': (s, s, 3), 'scale_factor': 1, 'pad_sha...
38.302326
79
0.611212
701
4,941
4.082739
0.252496
0.039133
0.041929
0.031447
0.655486
0.619147
0.619147
0.619147
0.619147
0.619147
0
0.043491
0.283343
4,941
128
80
38.601563
0.764756
0.161303
0
0.429907
0
0
0.117148
0
0
0
0
0
0.074766
1
0.009346
false
0
0.028037
0
0.037383
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
217c436555c51ae877a3b4fcbb46d2351a9777b1
3,138
py
Python
Back/chatroom/migrations/0001_initial.py
sadeghjafari5528/404-
0499b93cc473ec4def96d95364180eb4f4dafb11
[ "MIT" ]
null
null
null
Back/chatroom/migrations/0001_initial.py
sadeghjafari5528/404-
0499b93cc473ec4def96d95364180eb4f4dafb11
[ "MIT" ]
1
2020-12-27T14:59:35.000Z
2020-12-27T14:59:35.000Z
Back/chatroom/migrations/0001_initial.py
sadeghjafari5528/404-
0499b93cc473ec4def96d95364180eb4f4dafb11
[ "MIT" ]
2
2020-10-30T08:08:32.000Z
2020-10-30T20:47:51.000Z
# Generated by Django 3.1.2 on 2020-11-14 09:28 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
45.478261
120
0.571702
307
3,138
5.723127
0.257329
0.102447
0.071713
0.095618
0.638589
0.57712
0.522482
0.522482
0.522482
0.522482
0
0.017951
0.272148
3,138
68
121
46.147059
0.751313
0.01434
0
0.491803
1
0
0.101585
0
0
0
0
0
0
1
0
false
0
0.04918
0
0.114754
0
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
217da88d6f0f105b3aa67589b0366b60d8f74ee8
2,156
py
Python
doubles/targets/expectation_target.py
fakeNetflix/uber-repo-doubles
15e68dcf98f709b19a581915fa6af5ef49ebdd8a
[ "MIT" ]
150
2015-01-06T11:40:39.000Z
2022-01-10T10:29:59.000Z
doubles/targets/expectation_target.py
fakeNetflix/uber-repo-doubles
15e68dcf98f709b19a581915fa6af5ef49ebdd8a
[ "MIT" ]
78
2015-01-13T21:04:13.000Z
2022-02-11T13:22:56.000Z
doubles/targets/expectation_target.py
fakeNetflix/uber-repo-doubles
15e68dcf98f709b19a581915fa6af5ef49ebdd8a
[ "MIT" ]
22
2015-03-11T18:33:33.000Z
2022-01-13T01:54:19.000Z
import inspect from doubles.class_double import ClassDouble from doubles.exceptions import ConstructorDoubleError from doubles.lifecycle import current_space def expect(target): """ Prepares a target object for a method call expectation (mock). The name of the method to expect should be called as a metho...
31.705882
100
0.690167
262
2,156
5.465649
0.370229
0.027933
0.018156
0.01676
0.036313
0
0
0
0
0
0
0
0.231911
2,156
67
101
32.179104
0.864734
0.483766
0
0
0
0
0.071651
0
0
0
0
0
0
1
0.190476
false
0
0.190476
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
21800b1c0c139deba40b113daf3d51e8b21a643b
542
py
Python
src/utils/pythonSrc/watchFaceParser/models/elements/goalProgress/circularGoalProgressElement.py
chm-dev/amazfitGTSwatchfaceBundle
4cb04be5215de16628418e9b38152a35d5372d3e
[ "MIT" ]
49
2019-12-18T11:24:56.000Z
2022-03-28T09:56:27.000Z
src/utils/pythonSrc/watchFaceParser/models/elements/goalProgress/circularGoalProgressElement.py
chm-dev/amazfitGTSwatchfaceBundle
4cb04be5215de16628418e9b38152a35d5372d3e
[ "MIT" ]
6
2020-01-08T21:31:15.000Z
2022-03-25T19:13:26.000Z
src/utils/pythonSrc/watchFaceParser/models/elements/goalProgress/circularGoalProgressElement.py
chm-dev/amazfitGTSwatchfaceBundle
4cb04be5215de16628418e9b38152a35d5372d3e
[ "MIT" ]
6
2019-12-27T17:30:24.000Z
2021-09-30T08:11:01.000Z
import logging from watchFaceParser.models.elements.common.circularProgressElement import CircularProgressElement class CircularGoalProgressElement(CircularProgressElement): def __init__(self, parameter, parent, name = None): super(CircularGoalProgressElement, self).__init__(parameter = parameter, parent...
41.692308
110
0.765683
51
542
8
0.568627
0.073529
0.176471
0
0
0
0
0
0
0
0
0.004274
0.136531
542
12
111
45.166667
0.865385
0
0
0
0
0
0
0
0
0
0
0
0.125
0
null
null
0
0.25
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
2184a11a94a831f4e96df04f3690cf528d77445a
1,001
py
Python
tests/deprecated/test_re.py
DarkEnergyScienceCollaboration/chroma
64fc123a065334b307654f29b3bea52885b46ec8
[ "BSD-2-Clause", "BSD-3-Clause" ]
3
2015-10-22T14:57:27.000Z
2016-08-25T08:16:02.000Z
tests/deprecated/test_re.py
DarkEnergyScienceCollaboration/chroma
64fc123a065334b307654f29b3bea52885b46ec8
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2017-08-28T14:42:46.000Z
2017-08-28T16:08:37.000Z
tests/deprecated/test_re.py
DarkEnergyScienceCollaboration/chroma
64fc123a065334b307654f29b3bea52885b46ec8
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
import numpy as np import lmfit import _mypath import chroma def fiducial_galaxy(): gparam = lmfit.Parameters() gparam.add('x0', value=0.0) gparam.add('y0', value=0.0) gparam.add('n', value=0.5) gparam.add('r_e', value=1.0) gparam.add('flux', value=1.0) gparam.add('gmag', value=0.0) gp...
26.342105
58
0.695305
178
1,001
3.825843
0.297753
0.092511
0.073421
0.057269
0.581498
0.370044
0.370044
0.370044
0.32746
0.239354
0
0.066511
0.143856
1,001
37
59
27.054054
0.728121
0
0
0.16129
0
0
0.213786
0
0
0
0
0
0
0
null
null
0
0.129032
null
null
0.354839
0
0
0
null
0
0
0
0
0
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
21852b03a955837b9bc482a3cc1f547ec65609ce
19,144
py
Python
PyTangoArchiving/hdbpp/multi.py
sergirubio/PyTangoArchiving
ce66ac0d790984675449687a2901a8ba87274a86
[ "CC-BY-3.0" ]
6
2017-03-15T15:38:44.000Z
2021-06-04T13:46:17.000Z
PyTangoArchiving/hdbpp/multi.py
sergirubio/PyTangoArchiving
ce66ac0d790984675449687a2901a8ba87274a86
[ "CC-BY-3.0" ]
19
2017-04-07T10:20:18.000Z
2022-01-13T14:52:27.000Z
PyTangoArchiving/hdbpp/multi.py
sergirubio/PyTangoArchiving
ce66ac0d790984675449687a2901a8ba87274a86
[ "CC-BY-3.0" ]
9
2017-01-20T11:59:31.000Z
2020-12-08T15:22:36.000Z
import sys,os,re,traceback import fandango as fn import fandango.db as fdb import fandango.tango as ft from fandango.functional import * from fandango import Cached import PyTangoArchiving import PyTangoArchiving as pta ############################################################################## def get_sc...
36.120755
104
0.544557
2,407
19,144
4.199834
0.138762
0.009892
0.011277
0.010881
0.256603
0.2018
0.187556
0.178455
0.16975
0.164408
0
0.006381
0.328719
19,144
529
105
36.189036
0.780251
0.090786
0
0.212389
0
0
0.087931
0.006369
0
0
0
0
0.00295
0
null
null
0.026549
0.032448
null
null
0.038348
0
0
0
null
0
0
0
0
0
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
21872b7fb6e6b08a0cd0e6f440f33aa094db2577
2,132
py
Python
codeforces/499/attempt/c_town.py
cripplet/practice
e79700aa29dfa8ad6f8f1c2073e06f9b5ae2dfa0
[ "MIT" ]
null
null
null
codeforces/499/attempt/c_town.py
cripplet/practice
e79700aa29dfa8ad6f8f1c2073e06f9b5ae2dfa0
[ "MIT" ]
null
null
null
codeforces/499/attempt/c_town.py
cripplet/practice
e79700aa29dfa8ad6f8f1c2073e06f9b5ae2dfa0
[ "MIT" ]
null
null
null
import fileinput ### ### # utility func # ### ### dbug = True def stoi(s): return([ int(x) for x in s.split() ]) def pd(s, label=''): global dbug if dbug: header = 'debug:' if label != '': header += ' (%s)\t' % label print header, s ### ### # code follows # ### ### ...
24.505747
97
0.47561
406
2,132
2.472906
0.216749
0.027888
0.023904
0.031873
0.218127
0.188247
0.110558
0.061753
0.017928
0
0
0.087898
0.263602
2,132
86
98
24.790698
0.551592
0.090994
0
0
0
0
0.080296
0
0
0
0
0
0.098361
0
null
null
0
0.032787
null
null
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1