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
81cebf3a029062a583c68e39e01efe2e5a2006d8
472
py
Python
setup.py
clarkcb/redis-h3-client-py
a338f345cd660674542f7ee438ba36cadbd2126b
[ "MIT" ]
null
null
null
setup.py
clarkcb/redis-h3-client-py
a338f345cd660674542f7ee438ba36cadbd2126b
[ "MIT" ]
null
null
null
setup.py
clarkcb/redis-h3-client-py
a338f345cd660674542f7ee438ba36cadbd2126b
[ "MIT" ]
null
null
null
from setuptools import setup from redis_h3_client import __version__ setup(name='redis-h3-client-py', version=__version__, description='A client of redis server with H3 module loaded', url='https://github.com/clarkcb/redis-h3-client-py.git', author='Cary Clark', author_email='clarkcb@gmai...
31.466667
67
0.675847
60
472
5.05
0.616667
0.092409
0.171617
0.09901
0
0
0
0
0
0
0
0.015666
0.188559
472
14
68
33.714286
0.775457
0
0
0
0
0
0.351695
0
0
0
0
0
0
1
0
true
0
0.153846
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
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
81dd4e5032832119d52c15a35bd708319929420f
433
py
Python
slide_17.py
JakeRoggenbuck/strategy_presentation_numpy
6f5303c65c3a73cae1a0e0283a88c4f57694a08c
[ "MIT" ]
null
null
null
slide_17.py
JakeRoggenbuck/strategy_presentation_numpy
6f5303c65c3a73cae1a0e0283a88c4f57694a08c
[ "MIT" ]
null
null
null
slide_17.py
JakeRoggenbuck/strategy_presentation_numpy
6f5303c65c3a73cae1a0e0283a88c4f57694a08c
[ "MIT" ]
null
null
null
import requests def pull_data_from_team(team_num): key = "12345" end_point = f"team/frc{team_num}/matches/2017" url = f"https://www.thebluealliance.com/api/v3/{end_point}" request_headers = {"X-TBA-Auth-Key": key} request = requests.get(url, headers=request_headers) data = request.json() ...
22.789474
63
0.709007
68
433
4.25
0.558824
0.110727
0.16609
0.221453
0
0
0
0
0
0
0
0.076923
0.159353
433
18
64
24.055556
0.717033
0.023095
0
0
0
0
0.238663
0.073986
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
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
81de3ac2fb84a6876170d4c7f3655ee8336b6fdd
24,692
py
Python
aws.py
chkp-noye/sddc
bafff717c250340edd871300a0e8c7e3f3d4611a
[ "Apache-2.0" ]
5
2018-11-20T13:12:23.000Z
2019-06-25T15:36:39.000Z
aws.py
chkp-noye/sddc
bafff717c250340edd871300a0e8c7e3f3d4611a
[ "Apache-2.0" ]
2
2019-03-27T16:00:46.000Z
2021-02-18T13:12:52.000Z
aws.py
chkp-noye/sddc
bafff717c250340edd871300a0e8c7e3f3d4611a
[ "Apache-2.0" ]
16
2018-11-19T07:13:26.000Z
2021-05-08T17:25:13.000Z
#!/usr/bin/env python # Copyright 2015 Check Point Software Technologies LTD # # 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 # # ...
35.426112
83
0.540337
2,934
24,692
4.406612
0.158146
0.025756
0.012066
0.008353
0.136128
0.069379
0.039833
0.039833
0.022121
0.010828
0
0.016
0.326705
24,692
696
84
35.477011
0.761684
0.026729
0
0.107383
0
0
0.152619
0.013567
0
0
0
0
0
0
null
null
0.008389
0.025168
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
81e66befb6911479d73247bc3c501ef17f60bd4e
3,608
py
Python
turbosnake/_slotted_component.py
AlexeyBond/turbosnake
832c924c2cf29a741234848792bf750aa72fece2
[ "MIT" ]
2
2021-09-23T01:11:22.000Z
2022-02-04T21:08:24.000Z
turbosnake/_slotted_component.py
AlexeyBond/turbosnake
832c924c2cf29a741234848792bf750aa72fece2
[ "MIT" ]
null
null
null
turbosnake/_slotted_component.py
AlexeyBond/turbosnake
832c924c2cf29a741234848792bf750aa72fece2
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from typing import Optional, Callable from ._components import Component, ComponentsCollection, ComponentRenderingContext, ComponentCollectionBuilder from ._render_context import enter_render_context class SlotsCollectionBuilder(metaclass=ABCMeta): def __init__(self, compo...
32.8
111
0.70704
393
3,608
6
0.193384
0.071247
0.038168
0.041561
0.319763
0.173028
0.092451
0.024597
0.024597
0
0
0.000353
0.213969
3,608
109
112
33.100917
0.8311
0
0
0.2
0
0
0.062916
0.023836
0
0
0
0
0.053333
1
0.226667
false
0
0.053333
0.026667
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c48d73733025b9f692ef213d645b063915f85fbb
466
py
Python
load_embeddings.py
matthewkennedy5/ShakespeareRNN
915105a50c6dc988b874142de6e0fe6012ca984f
[ "MIT" ]
null
null
null
load_embeddings.py
matthewkennedy5/ShakespeareRNN
915105a50c6dc988b874142de6e0fe6012ca984f
[ "MIT" ]
null
null
null
load_embeddings.py
matthewkennedy5/ShakespeareRNN
915105a50c6dc988b874142de6e0fe6012ca984f
[ "MIT" ]
null
null
null
import torch DIMENSIONS = 300 # Size of embedded vectors def load(file): # file should contain a trailing newline embeddings = {} with open(file) as f: for line in f: char = line[0] embeddings[char] = torch.zeros(DIMENSIONS) for i, word in enumerate(line[1:]....
29.125
63
0.590129
56
466
4.910714
0.642857
0.203636
0
0
0
0
0
0
0
0
0
0.01548
0.306867
466
15
64
31.066667
0.835913
0.242489
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
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
c49448b824807cfbd63a7b7dd2d7e0e21b12f31c
641
py
Python
spydrnet/ir/tests/test_pin.py
ganeshgore/spydrnet
22672b8fc7d63461a71077bd20f29df6d38e96f4
[ "BSD-3-Clause" ]
null
null
null
spydrnet/ir/tests/test_pin.py
ganeshgore/spydrnet
22672b8fc7d63461a71077bd20f29df6d38e96f4
[ "BSD-3-Clause" ]
null
null
null
spydrnet/ir/tests/test_pin.py
ganeshgore/spydrnet
22672b8fc7d63461a71077bd20f29df6d38e96f4
[ "BSD-3-Clause" ]
null
null
null
import unittest from spydrnet.ir import FirstClassElement from spydrnet.ir import Pin class TestPin(unittest.TestCase): def setUp(self): self.pin = Pin() def test_constructor(self): self.assertFalse(isinstance(self.pin, FirstClassElement)) self.assertTrue(self.pin) pin2 = Pin...
23.740741
68
0.666147
78
641
5.346154
0.384615
0.117506
0.067146
0.095923
0
0
0
0
0
0
0
0.004065
0.232449
641
26
69
24.653846
0.843496
0
0
0
0
0
0.037442
0
0
0
0
0
0.263158
1
0.263158
false
0
0.157895
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c495d598a6f91a05cd98d8c1e7d5717ca8634158
567
py
Python
carve.py
miladshiri/handypic
039404d5a0f14ff343d1c72f87b40c88ce547116
[ "MIT" ]
null
null
null
carve.py
miladshiri/handypic
039404d5a0f14ff343d1c72f87b40c88ce547116
[ "MIT" ]
null
null
null
carve.py
miladshiri/handypic
039404d5a0f14ff343d1c72f87b40c88ce547116
[ "MIT" ]
null
null
null
import cv2 import numpy as np from basic import imshow, rescale def circular(img): if img.shape[2] < 4: img = np.concatenate( [ img, np.ones((img.shape[0], img.shape[1], 1), dtype = img.dtype) * 255 ], axis = 2, ...
29.842105
142
0.47619
81
567
3.320988
0.407407
0.208178
0.163569
0.089219
0.193309
0.193309
0.193309
0.193309
0.193309
0.193309
0
0.069519
0.340388
567
19
143
29.842105
0.649733
0
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.3125
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
c49e462adaa087d5370ae3bdc43f5031660bd9d8
5,749
py
Python
Python/site_dpm/gene_set_enrichment.py
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
Python/site_dpm/gene_set_enrichment.py
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
Python/site_dpm/gene_set_enrichment.py
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
# # Copyright John Reid 2008 # """ Code to test for enrichment of gene sets (factors/targets of transcriptional programs) w.r.t. other gene sets (typically genes in pathways) """ import os, biopsy, logging from itertools import chain, ifilter, imap from kegg import get_kegg_pathway_info def read_gene_set_from_file(...
38.326667
125
0.704818
829
5,749
4.636912
0.225573
0.043704
0.020031
0.026535
0.245578
0.190947
0.17846
0.150364
0.150364
0.150364
0
0.004618
0.20908
5,749
149
126
38.583893
0.840774
0.025918
0
0.116279
0
0.011628
0.112545
0.009511
0
0
0
0
0.023256
0
null
null
0
0.046512
null
null
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c4a0bebc3e733335685b10c689c0e239cec99964
1,899
py
Python
render.py
BraveHelyx/Orbweaver
56db16aaecf3416cedb1d4b17ef3cb59f11f5dc1
[ "MIT" ]
2
2017-10-30T06:57:34.000Z
2017-10-30T22:44:25.000Z
render.py
BraveHelyx/Orbweaver
56db16aaecf3416cedb1d4b17ef3cb59f11f5dc1
[ "MIT" ]
null
null
null
render.py
BraveHelyx/Orbweaver
56db16aaecf3416cedb1d4b17ef3cb59f11f5dc1
[ "MIT" ]
null
null
null
#!/usr/bin/python # Written by Bruce Hely for funzies in 2017 # from termcolor import colored def format_targets(targets, newSurface): formattedTargets = [] i = 0 for target in targets: if target in newSurface: formattedTargets.append("%-8s%-56s" % (i, target + ' [*]')) else: formattedTargets.append("%-8s...
29.215385
84
0.650869
235
1,899
5.212766
0.382979
0.032653
0.040816
0.044082
0.088163
0.088163
0
0
0
0
0
0.018773
0.158504
1,899
64
85
29.671875
0.74781
0.237493
0
0.047619
0
0
0.098189
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
c4b1597482fd7ab36220ec7fc1c47cefdecce32f
785
py
Python
tests/test_py27.py
unjambonakap/pymap3d
5a0ca7b6964917b954edbd50844c36c54b5e7c73
[ "BSD-2-Clause" ]
null
null
null
tests/test_py27.py
unjambonakap/pymap3d
5a0ca7b6964917b954edbd50844c36c54b5e7c73
[ "BSD-2-Clause" ]
null
null
null
tests/test_py27.py
unjambonakap/pymap3d
5a0ca7b6964917b954edbd50844c36c54b5e7c73
[ "BSD-2-Clause" ]
null
null
null
""" for strictly pure Python (no Numpy) only modules Python >= 2.7 """ import pytest from pytest import approx from math import radians import pymap3d.math as pm lla0 = (42, -82, 200) rlla0 = (radians(lla0[0]), radians(lla0[1]), lla0[2]) aer0 = (33, 70, 1000) raer0 = (radians(aer0[0]), radians(aer0[1]), aer0[2]) enu0...
25.322581
88
0.636943
132
785
3.681818
0.477273
0.030864
0.055556
0.061728
0.125514
0.125514
0.065844
0
0
0
0
0.226929
0.157962
785
30
89
26.166667
0.508321
0.078981
0
0
0
0
0.011189
0
0
0
0
0
0.055556
1
0.055556
false
0
0.222222
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c4b92ac699a2e989e2f6119bd958ad915e51d6c1
4,495
py
Python
Website/OperatorApp/forms.py
uofg-cs20/oti-operator
76aaeb021280dfb40bfc8cf04b2636c85b48ff48
[ "Apache-2.0" ]
null
null
null
Website/OperatorApp/forms.py
uofg-cs20/oti-operator
76aaeb021280dfb40bfc8cf04b2636c85b48ff48
[ "Apache-2.0" ]
null
null
null
Website/OperatorApp/forms.py
uofg-cs20/oti-operator
76aaeb021280dfb40bfc8cf04b2636c85b48ff48
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth import authenticate from django.contrib.auth.models import User from .models import Mode, Operator class LoginForm(forms.Form): username = forms.CharField(widget=forms.TextInput(attrs={'class' : 'form-group'})) password = forms.CharField(widget=forms.PasswordIn...
45.867347
128
0.66941
506
4,495
5.881423
0.183794
0.070228
0.080645
0.117608
0.520161
0.493616
0.421035
0.418683
0.360215
0.360215
0
0.001103
0.192881
4,495
98
129
45.867347
0.819184
0.036485
0
0.30137
0
0
0.152566
0
0
0
0
0
0
1
0.041096
false
0.150685
0.054795
0
0.493151
0
0
0
0
null
0
0
0
0
0
0
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
c4b94cf66335f754263c2fc81788199ed4ca14d9
3,694
py
Python
packages/pywst/pywst/sp/solvers/grasp.py
USEPA/Water-Security-Toolkit
6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb
[ "BSD-3-Clause" ]
3
2019-06-10T18:04:14.000Z
2020-12-05T18:11:40.000Z
packages/pywst/pywst/sp/solvers/grasp.py
USEPA/Water-Security-Toolkit
6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb
[ "BSD-3-Clause" ]
null
null
null
packages/pywst/pywst/sp/solvers/grasp.py
USEPA/Water-Security-Toolkit
6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb
[ "BSD-3-Clause" ]
2
2020-09-24T19:04:14.000Z
2020-12-05T18:11:43.000Z
import json import os, sys import os.path import shutil from string import lower import pyutilib.services import pyutilib.subprocess from pyutilib.workflow import functor_api from pywst.sp.util import get_solvername @functor_api(namespace='pywst.sp') def grasp_default(data, prob=None): """ Perform optimizat...
30.528926
99
0.640227
442
3,694
5.255656
0.316742
0.046492
0.027981
0.027551
0.218252
0.119673
0.027551
0.027551
0.027551
0
0
0.00398
0.25176
3,694
120
100
30.783333
0.836469
0.027071
0
0.103448
0
0
0.142981
0
0
0
0
0
0
0
null
null
0
0.103448
null
null
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c4bc484d971be9347a6c887ef5615e4f41bb5d4b
10,512
py
Python
gnuradio-3.7.13.4/gr-utils/python/utils/plot_fft_base.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
1
2021-03-09T07:32:37.000Z
2021-03-09T07:32:37.000Z
gnuradio-3.7.13.4/gr-utils/python/utils/plot_fft_base.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
gnuradio-3.7.13.4/gr-utils/python/utils/plot_fft_base.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007,2008,2011 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your ...
42.048
825
0.628425
1,531
10,512
4.175049
0.237753
0.017835
0.013767
0.016896
0.255945
0.168648
0.133917
0.099499
0.069149
0.032854
0
0.024335
0.245529
10,512
249
826
42.216867
0.781616
0.135369
0
0.188235
0
0.017647
0.180371
0
0
0
0
0
0
0
null
null
0.005882
0.035294
null
null
0.023529
0
0
0
null
0
0
0
0
0
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
c4bcc2e15d2288710c6ab6e865839a1bd7effc82
572
py
Python
3.sequence-tagging/chunk_senna.py
burakkerim/nlp-tutorials
4498a7df0e6718fa586c75cc992089ad767e6c0d
[ "MIT" ]
null
null
null
3.sequence-tagging/chunk_senna.py
burakkerim/nlp-tutorials
4498a7df0e6718fa586c75cc992089ad767e6c0d
[ "MIT" ]
null
null
null
3.sequence-tagging/chunk_senna.py
burakkerim/nlp-tutorials
4498a7df0e6718fa586c75cc992089ad767e6c0d
[ "MIT" ]
null
null
null
# -*-coding: utf-8 -*- ''' Created on 17 Mar 2016 @author: BurakKerim ''' from nltk.tokenize import WordPunctTokenizer from nltk.tag import SennaChunkTagger senna_path = '/media/burak/Data/Workspace/Library/senna' chunker = SennaChunkTagger(senna_path) tokenizer = WordPunctTokenizer() def tokenize...
19.724138
78
0.713287
69
572
5.884058
0.57971
0.08867
0.123153
0
0
0
0
0
0
0
0
0.014862
0.176573
572
28
79
20.428571
0.847134
0.113636
0
0
0
0
0.22293
0.087049
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
0.5
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
c4bd09db592a7771633df1baad6641a6055e71a3
1,251
py
Python
exercises/ex44d.py
jinkyukim-me/StudyPython
6c98598c23c506101882392645fbb14d4aa998d4
[ "MIT" ]
null
null
null
exercises/ex44d.py
jinkyukim-me/StudyPython
6c98598c23c506101882392645fbb14d4aa998d4
[ "MIT" ]
null
null
null
exercises/ex44d.py
jinkyukim-me/StudyPython
6c98598c23c506101882392645fbb14d4aa998d4
[ "MIT" ]
null
null
null
class Parent(object): """A simple example class""" # 클래스 정의 시작부분에 """...""" 도큐먼트 스트링 def __init__(self): # 컨스트럭터 (생성자) self.name = "Kim" def override(self): # override() 메소드 print("PARENT override()") def implicit(self): ...
28.431818
83
0.454836
117
1,251
4.760684
0.350427
0.057451
0.075404
0.075404
0.104129
0.104129
0
0
0
0
0
0
0.42446
1,251
43
84
29.093023
0.773611
0.183054
0
0.222222
0
0
0.128614
0
0
0
0
0
0
1
0.259259
false
0
0
0
0.333333
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c4bd0fea2f38c3e03b65b0b71c616ed6d7b6d688
3,968
py
Python
poroto/common.py
TANGO-Project/poroto
380c0ab9f33bead70ed71c78493e682924d7f997
[ "BSD-3-Clause" ]
1
2018-05-22T22:53:31.000Z
2018-05-22T22:53:31.000Z
poroto/common.py
TANGO-Project/poroto
380c0ab9f33bead70ed71c78493e682924d7f997
[ "BSD-3-Clause" ]
null
null
null
poroto/common.py
TANGO-Project/poroto
380c0ab9f33bead70ed71c78493e682924d7f997
[ "BSD-3-Clause" ]
null
null
null
import os import re import math import struct import config root_path=os.path.dirname(os.path.dirname(os.path.abspath(__file__))) def mkdir_safe(name): try: os.makedirs(name) except OSError: pass def get_path_for(file_path, file_name, top_dir=config.vhdl_path): if config.platform_vendor: ...
34.504348
131
0.642641
603
3,968
4.023217
0.162521
0.083677
0.054411
0.065952
0.680132
0.657873
0.650866
0.587799
0.549876
0.549876
0
0.005258
0.233115
3,968
114
132
34.807018
0.791982
0
0
0.421569
0
0
0.044859
0
0
0
0
0
0
0
null
null
0.009804
0.04902
null
null
0.009804
0
0
0
null
0
0
0
0
0
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
c4c0ebd57800e71282ec7e71c0407e91a5e717bc
3,570
py
Python
scrap.py
souravgl0/scrapemphc
50e91a718a4a89d50721ffe4a1ec1eef244a7e51
[ "MIT" ]
null
null
null
scrap.py
souravgl0/scrapemphc
50e91a718a4a89d50721ffe4a1ec1eef244a7e51
[ "MIT" ]
null
null
null
scrap.py
souravgl0/scrapemphc
50e91a718a4a89d50721ffe4a1ec1eef244a7e51
[ "MIT" ]
null
null
null
import sys import os import requests from bs4 import BeautifulSoup as bs url = "http://district.mphc.gov.in/%E0%A4%A8%E0%A4%BF%E0%A4%B0%E0%A5%8D%E0%A4%A3%E0%A4%AF-%E0%A4%86%E0%A4%A6%E0%A5%87%E0%A4%B6" path = "data/" def getjudgeurllist(): html = s.get(url) soup = bs(html.content,'lxml') select = soup.fin...
30
127
0.583473
498
3,570
4.156627
0.269076
0.046377
0.05314
0.043478
0.394203
0.264251
0.242995
0.174396
0.161353
0.130435
0
0.021261
0.24902
3,570
118
128
30.254237
0.750839
0.017087
0
0.153846
0
0.021978
0.136947
0
0
0
0
0
0
0
null
null
0
0.043956
null
null
0.043956
0
0
0
null
0
0
0
0
0
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
c4c3fd23750a0a0c0a9290dcd7488e8ec475747d
730
py
Python
channels_project/chat/decorators.py
zLianK/django-channels-chat
bbc0fb224f736f0a7ded6a4950481c15ee2e24aa
[ "MIT" ]
1
2021-12-08T22:33:20.000Z
2021-12-08T22:33:20.000Z
channels_project/chat/decorators.py
zLianK/django-channels-chat
bbc0fb224f736f0a7ded6a4950481c15ee2e24aa
[ "MIT" ]
null
null
null
channels_project/chat/decorators.py
zLianK/django-channels-chat
bbc0fb224f736f0a7ded6a4950481c15ee2e24aa
[ "MIT" ]
null
null
null
from django.shortcuts import redirect def unauthenticated_user_only(view_func): def wrapper(request): if request.user.is_authenticated: return redirect('index') return view_func(request) return wrapper def authenticated_user_only(view_func): def wrapper(request): if r...
24.333333
45
0.668493
83
730
5.722892
0.26506
0.101053
0.069474
0.113684
0.631579
0.522105
0.437895
0.282105
0.282105
0.282105
0
0
0.253425
730
29
46
25.172414
0.87156
0
0
0.619048
0
0
0.027397
0
0
0
0
0
0
1
0.285714
false
0
0.047619
0
0.809524
0
0
0
0
null
0
0
0
0
0
0
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
c4c83498b2563369bc83be6a6cca973106804782
748
py
Python
setup.py
indeedsecurity/ava-ce
4483b301034a096b716646a470a6642b3df8ce61
[ "Apache-2.0" ]
2
2019-03-26T15:37:48.000Z
2020-01-03T03:47:30.000Z
setup.py
indeedsecurity/ava-ce
4483b301034a096b716646a470a6642b3df8ce61
[ "Apache-2.0" ]
2
2021-03-25T21:27:09.000Z
2021-06-01T21:20:04.000Z
setup.py
indeedsecurity/ava-ce
4483b301034a096b716646a470a6642b3df8ce61
[ "Apache-2.0" ]
null
null
null
import sys from setuptools import setup, find_packages if sys.version_info[0] < 3 or sys.version_info[1] < 5: sys.exit('Error: AVA only runs on Python 3.5 and above.') setup( name='ava', version='1.0.0', packages=find_packages(), author='Jonathan Hawes', author_email='jhawes@indeed.com', ...
23.375
61
0.553476
104
748
3.894231
0.576923
0.059259
0.069136
0
0
0
0
0
0
0
0
0.07286
0.266043
748
31
62
24.129032
0.664845
0
0
0
0
0
0.367647
0.032086
0
0
0
0
0
1
0
true
0
0.071429
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
0
0
0
0
1
0
0
0
0
0
0
1
c4ca8df399b0c712f1bd77327247a4539cfbbbed
360
py
Python
src/helpers/threads.py
periket2000/mybi-ci
b48d5ebb6cd8ad765c939ef4cd555b79371cff60
[ "Apache-2.0" ]
null
null
null
src/helpers/threads.py
periket2000/mybi-ci
b48d5ebb6cd8ad765c939ef4cd555b79371cff60
[ "Apache-2.0" ]
null
null
null
src/helpers/threads.py
periket2000/mybi-ci
b48d5ebb6cd8ad765c939ef4cd555b79371cff60
[ "Apache-2.0" ]
null
null
null
__author__ = 'marcoantonioalberoalbero' import multiprocessing class Threads: def __init__(self): pass @staticmethod def run_detached(routine): p = multiprocessing.current_process() name = "worker-" + str(p.pid) cc = multiprocessing.Process(name=name, target=routine) ...
22.5
63
0.647222
36
360
6.194444
0.722222
0.098655
0
0
0
0
0
0
0
0
0
0
0.255556
360
16
64
22.5
0.83209
0
0
0
0
0
0.085873
0.066482
0
0
0
0
0
1
0.166667
false
0.083333
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c4cb907c944d5b8ae365539d39fda157632fc2ab
2,027
py
Python
blog/models.py
sz-lhl/myblogtest
21467b36287a7e07e089ec0e8495eb598783e31c
[ "MIT" ]
null
null
null
blog/models.py
sz-lhl/myblogtest
21467b36287a7e07e089ec0e8495eb598783e31c
[ "MIT" ]
null
null
null
blog/models.py
sz-lhl/myblogtest
21467b36287a7e07e089ec0e8495eb598783e31c
[ "MIT" ]
null
null
null
#coding:utf8 from django.db import models from django.contrib.auth.models import User from django.urls import reverse from django.utils.six import python_2_unicode_compatible # Create your models here. # python_2_unicode_compatible 装饰器用于兼容 Python2 @python_2_unicode_compatible class Category(models.Model): name = m...
27.026667
74
0.72817
272
2,027
5.272059
0.441176
0.03417
0.06834
0.117155
0.230823
0.216876
0.216876
0.216876
0.216876
0.216876
0
0.023579
0.184016
2,027
74
75
27.391892
0.84341
0.175629
0
0.357143
0
0
0.012161
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.892857
0
0
0
0
null
0
0
0
0
0
0
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
c4cc3fe0bd6d63b3b5916fba1787ac283c89c7e6
15,297
py
Python
test/test_ops.py
cocoaaa/vision
bd8592a4c956747549dbae03d30782378f1ecdca
[ "BSD-3-Clause" ]
2
2020-06-29T14:52:35.000Z
2021-04-25T18:04:43.000Z
test/test_ops.py
cocoaaa/vision
bd8592a4c956747549dbae03d30782378f1ecdca
[ "BSD-3-Clause" ]
null
null
null
test/test_ops.py
cocoaaa/vision
bd8592a4c956747549dbae03d30782378f1ecdca
[ "BSD-3-Clause" ]
1
2021-04-25T17:59:44.000Z
2021-04-25T17:59:44.000Z
from __future__ import division import numpy as np import torch from torch.autograd import gradcheck from torchvision import ops from itertools import product import unittest class RoIOpTester(object): @classmethod def setUpClass(cls): cls.dtype = torch.float64 def test_forward_cpu_contiguous(s...
41.120968
112
0.555338
2,181
15,297
3.664833
0.106373
0.021894
0.02815
0.031277
0.717127
0.673089
0.656825
0.645064
0.631052
0.629551
0
0.024191
0.327123
15,297
371
113
41.231806
0.752356
0.048441
0
0.473118
0
0
0.022774
0
0
0
0
0
0.02509
1
0.136201
false
0.010753
0.02509
0.039427
0.268817
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
c4cc5c594425a5cfd663b3609a3239476c2b06ae
416
py
Python
server/listforwards.py
perkinslr/openwrt_firewall_scripts
154cad3bbe89b3dca5231982aed905385c7ed70a
[ "Unlicense" ]
2
2020-04-18T14:28:17.000Z
2022-02-09T19:10:34.000Z
server/listforwards.py
perkinslr/openwrt_firewall_scripts
154cad3bbe89b3dca5231982aed905385c7ed70a
[ "Unlicense" ]
null
null
null
server/listforwards.py
perkinslr/openwrt_firewall_scripts
154cad3bbe89b3dca5231982aed905385c7ed70a
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3.7 -I import time import os import pwd me = pwd.getpwuid(int(os.environ['ouid'])).pw_name os.environ['HOME']='/var/portforwarder' os.environ['USER']='portforwarder' with open('/var/portforwarder/list.log', 'a') as f: print(time.strftime("%Y-%m-%dT%H:%M:%S%z:"), "port forard list requested by", m...
26
90
0.692308
73
416
3.90411
0.69863
0.094737
0
0
0
0
0
0
0
0
0
0.026525
0.09375
416
15
91
27.733333
0.729443
0.052885
0
0
0
0.111111
0.483461
0.068702
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c4d223c8621f89e823cabf6557e1b39f2beb2c22
492
py
Python
resources/resources/enow/jython/interfaces/samplefunction.py
ENOW-IJI/ENOW-server
1398d5a9d037efcee2886f6c7393b5e396ab0c18
[ "Apache-2.0" ]
3
2016-08-12T14:46:53.000Z
2016-08-13T02:54:58.000Z
resources/resources/enow/jython/interfaces/samplefunction.py
ENOW-IJI/ENOW-server
1398d5a9d037efcee2886f6c7393b5e396ab0c18
[ "Apache-2.0" ]
1
2016-09-16T07:13:05.000Z
2016-09-16T07:13:05.000Z
python/enow/jython/interfaces/samplefunction.py
ENOW-IJI/api
415fc69fc8f1ad25f1619aca0fa932f92e8b9d09
[ "Apache-2.0" ]
null
null
null
{ "roadMapId" : "2", "mapIds" : { "1" : { "parameter" : [ "-l" ], "code" : "import json\ndef eventHandler(event, context, callback):\n\tjsonString = json.dumps(event)\n\tprint(jsonString)\n\tif event[\"present\"] == \"person\":\n\t\tprint(\"OK\")...
32.8
226
0.449187
43
492
5.139535
0.744186
0.0181
0.072398
0
0
0
0
0
0
0
0
0.01548
0.343496
492
14
227
35.142857
0.668731
0
0
0
0
0.071429
0.512195
0.184959
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
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
1
0
0
0
0
0
0
1
c4d2b9ff1c52ee76c8f196a509e5c8dd6c4ce5ae
502
py
Python
axonius_api_client/api/assets/__init__.py
rwils83/axonius_api_client
1990ed4d1287482a4648dc51edcaa5eb08255f5b
[ "MIT" ]
null
null
null
axonius_api_client/api/assets/__init__.py
rwils83/axonius_api_client
1990ed4d1287482a4648dc51edcaa5eb08255f5b
[ "MIT" ]
3
2021-05-18T14:28:30.000Z
2021-09-06T20:01:56.000Z
axonius_api_client/api/assets/__init__.py
rwils83/axonius_api_client
1990ed4d1287482a4648dc51edcaa5eb08255f5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """API models package.""" from . import asset_mixin, devices, fields, labels, saved_query, users from .asset_mixin import AssetMixin from .devices import Devices from .fields import Fields from .labels import Labels from .saved_query import SavedQuery from .users import Users __all__ = ( "U...
20.08
70
0.655378
57
502
5.596491
0.333333
0.094044
0.100313
0
0
0
0
0
0
0
0
0.002525
0.211155
502
24
71
20.916667
0.80303
0.083665
0
0
0
0
0.198238
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c4d454d4e1ef9d297d8e8e385b4eb4ca8478534d
1,289
py
Python
setup.py
thatlarrypearson/LightRoomClassicCatalogReader
e379edafad94ca6c350bf90d9d17e25c8ecb449b
[ "MIT" ]
1
2020-08-19T17:51:42.000Z
2020-08-19T17:51:42.000Z
setup.py
thatlarrypearson/LightroomClassicCatalogReader
e379edafad94ca6c350bf90d9d17e25c8ecb449b
[ "MIT" ]
null
null
null
setup.py
thatlarrypearson/LightroomClassicCatalogReader
e379edafad94ca6c350bf90d9d17e25c8ecb449b
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="lr-reader", version="0.3", packages=find_packages('src'), py_modules=['lr_reader', ], install_requires=[], python_requires='>=3.6', # metadata to display on PyPI author="Larry Pearson", author_email="ThatLarryPearson@gmail.co...
36.828571
93
0.661753
126
1,289
6.674603
0.611111
0.052319
0.066587
0.142687
0.280618
0
0
0
0
0
0
0.010567
0.192397
1,289
35
94
36.828571
0.79731
0.020946
0
0.0625
0
0
0.538462
0.020619
0
0
0
0
0
1
0
true
0
0.03125
0
0.03125
0
0
0
0
null
0
0
0
0
0
0
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
c4d5a3e56787b60d0f56729516da16c6fa6dfa2f
8,420
py
Python
PyGames/CS254_rpg/CS254_RPG/src/main_rpg.py
iPatso/PyGameProjs
b1eed993649a1e90da5214a1604fdb59d65ff0b4
[ "Apache-2.0" ]
null
null
null
PyGames/CS254_rpg/CS254_RPG/src/main_rpg.py
iPatso/PyGameProjs
b1eed993649a1e90da5214a1604fdb59d65ff0b4
[ "Apache-2.0" ]
null
null
null
PyGames/CS254_rpg/CS254_RPG/src/main_rpg.py
iPatso/PyGameProjs
b1eed993649a1e90da5214a1604fdb59d65ff0b4
[ "Apache-2.0" ]
null
null
null
import pygame, sys, os from pygame.locals import * pygame.init() WINDOW_SIZE = (700,700) FPS = 60 clock = pygame.time.Clock() screen = pygame.display.set_mode(WINDOW_SIZE) bg_path = os.path.join('data','Forest_2.png') npc_on_borad_path = os.path.join('data','NPCpose1.png') npc_image_path = os.path.join('data','NPC....
30.179211
97
0.664133
1,326
8,420
4.049774
0.162142
0.033892
0.042458
0.033892
0.416015
0.3
0.280074
0.193482
0.143575
0.090317
0
0.044557
0.18171
8,420
278
98
30.28777
0.734833
0.013539
0
0.175966
0
0
0.044447
0.010359
0
0
0
0
0
0
null
null
0
0.008584
null
null
0.017167
0
0
0
null
0
0
0
0
0
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
c4dd6cf1ded916260ddcddaae5f5f1279726b36a
3,228
py
Python
smb2.py
berrnd/linuxfabrik-lib
c999d682a39ee806c170045f21dfc7aea44dbacf
[ "Unlicense" ]
null
null
null
smb2.py
berrnd/linuxfabrik-lib
c999d682a39ee806c170045f21dfc7aea44dbacf
[ "Unlicense" ]
null
null
null
smb2.py
berrnd/linuxfabrik-lib
c999d682a39ee806c170045f21dfc7aea44dbacf
[ "Unlicense" ]
null
null
null
#! /usr/bin/env python2 # -*- coding: utf-8; py-indent-offset: 4 -*- # # Author: Linuxfabrik GmbH, Zurich, Switzerland # Contact: info (at) linuxfabrik (dot) ch # https://www.linuxfabrik.ch/ # License: The Unlicense, see LICENSE file. # https://github.com/Linuxfabrik/monitoring-plugins/blob/main/CONTRIBUTING...
37.534884
135
0.648699
351
3,228
5.874644
0.410256
0.042677
0.037827
0.046557
0.496605
0.459748
0.459748
0.459748
0.459748
0.4258
0
0.017291
0.247522
3,228
85
136
37.976471
0.831618
0.230793
0
0.62069
0
0
0.146916
0
0
0
0
0
0
1
0.034483
false
0.086207
0.068966
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c4dd72ea60825371a518f1655820d603d4ad5c45
4,292
py
Python
accounts/views.py
bubaic/e-shop
d0156d02d6e74e35d115f8742b55809466126513
[ "MIT" ]
1
2022-02-21T18:00:48.000Z
2022-02-21T18:00:48.000Z
accounts/views.py
bubaic/e-shop
d0156d02d6e74e35d115f8742b55809466126513
[ "MIT" ]
null
null
null
accounts/views.py
bubaic/e-shop
d0156d02d6e74e35d115f8742b55809466126513
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate, logout, login, get_user_model from django.shortcuts import render, redirect from django.utils.http import is_safe_url from django.views.generic import CreateView, FormView, DetailView from django.contrib.auth.mixins import LoginRequiredMixin from .forms import LoginForm, R...
35.766667
92
0.62698
498
4,292
5.210843
0.204819
0.050867
0.046243
0.055491
0.462042
0.462042
0.429672
0.418882
0.39499
0.39499
0
0
0.260485
4,292
120
93
35.766667
0.81758
0.410764
0
0.237288
0
0
0.055981
0
0
0
0
0
0
1
0.050847
false
0.050847
0.135593
0.016949
0.474576
0
0
0
0
null
0
0
0
0
0
0
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
c4e0b06a4b7ded0ff53f695af140d7ede59e97dc
2,761
py
Python
dp83xgui/dp83x.py
ornea/dp832-gui
8268b196ea5514b19d844efd8974cc038a26658e
[ "MIT" ]
null
null
null
dp83xgui/dp83x.py
ornea/dp832-gui
8268b196ea5514b19d844efd8974cc038a26658e
[ "MIT" ]
null
null
null
dp83xgui/dp83x.py
ornea/dp832-gui
8268b196ea5514b19d844efd8974cc038a26658e
[ "MIT" ]
null
null
null
# pip install pyvisa-py import pyvisa as visa #Insert your serial number here / confirm via Ultra Sigma GUI # examples "TCPIP0::192.168.1.60::INSTR" # "USB0::0x1AB1::0x0E11::DPXXXXXXXXXXX::INSTR" CONNECTSTRING = "TCPIP0::192.168.1.60::INSTR" class DP83X(object): def __init__(self): pass def...
32.482353
105
0.567186
342
2,761
4.540936
0.336257
0.082421
0.066967
0.054733
0.249839
0.218931
0.150676
0.121056
0.121056
0.069543
0
0.032493
0.253169
2,761
84
106
32.869048
0.72066
0.13582
0
0.072727
0
0
0.13277
0.021142
0
0
0
0
0
1
0.309091
false
0.018182
0.018182
0.072727
0.381818
0.109091
0
0
0
null
0
0
0
0
0
0
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
c4e68c016f667934f8db2d278b0ce6c508748a70
2,050
py
Python
main.py
OpenIotNetwork/echo-firmware
007ead22704231f320abdc1ce32430a6d69a57f7
[ "Apache-2.0" ]
1
2021-03-08T18:34:06.000Z
2021-03-08T18:34:06.000Z
main.py
OpenIotNetwork/echo-firmware
007ead22704231f320abdc1ce32430a6d69a57f7
[ "Apache-2.0" ]
null
null
null
main.py
OpenIotNetwork/echo-firmware
007ead22704231f320abdc1ce32430a6d69a57f7
[ "Apache-2.0" ]
null
null
null
FORMAT_VERSION = 1 import machine from network import LoRa import socket import ubinascii import struct from uModBus.serial import Serial as ModbusSerial from machine import Pin from db_meter import DBMeter from machine import I2C from volt_meter import VoltMeter from led import LED import config led = LED() lo...
28.472222
156
0.686829
276
2,050
4.996377
0.398551
0.026106
0.024656
0.023205
0.352429
0.330674
0.330674
0.330674
0.330674
0.278463
0
0.034799
0.200976
2,050
71
157
28.873239
0.807082
0.089756
0
0.326923
0
0
0.006445
0
0
0
0
0.014085
0
1
0
false
0.019231
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
1
0
0
0
0
0
0
0
0
0
0
1
c4e94f4edef2880779ac0d236ebe82a69642d76c
2,194
py
Python
Python/pymd/md/integrators/brownian_integrator.py
ryanlopezzzz/ABPTutorial
923fa89f1959cd71b28ecf4628ecfbfce6a6206c
[ "MIT" ]
8
2020-05-05T00:41:50.000Z
2021-11-04T20:54:43.000Z
Python/pymd/md/integrators/brownian_integrator.py
ryanlopezzzz/ABPTutorial
923fa89f1959cd71b28ecf4628ecfbfce6a6206c
[ "MIT" ]
null
null
null
Python/pymd/md/integrators/brownian_integrator.py
ryanlopezzzz/ABPTutorial
923fa89f1959cd71b28ecf4628ecfbfce6a6206c
[ "MIT" ]
5
2020-05-04T16:37:13.000Z
2021-08-18T07:53:58.000Z
# Copyright 2020 Rastko Sknepnek, University of Dundee, r.skepnek@dundee.ac.uk # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation # the rights ...
31.342857
114
0.657247
301
2,194
4.777409
0.508306
0.061196
0.018081
0.027816
0.03338
0
0
0
0
0
0
0.009254
0.261167
2,194
69
115
31.797101
0.877853
0.696445
0
0
0
0
0
0
0
0
0
0
0
1
0.176471
false
0.058824
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c4ee3c41ba386f63d21a6efde6cd7623a88f218f
713
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/validators.py
paolofantozzi/cookiecutter-django
bcc8468b19bbdece813151243c83d017d6febd72
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/validators.py
paolofantozzi/cookiecutter-django
bcc8468b19bbdece813151243c83d017d6febd72
[ "BSD-3-Clause" ]
3
2020-11-25T19:21:40.000Z
2020-11-25T19:40:59.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/validators.py
paolofantozzi/cookiecutter-django
bcc8468b19bbdece813151243c83d017d6febd72
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Validators for users.""" import re from localflavor.it.util import ssn_validation from rest_framework.exceptions import ValidationError class CfValidator: """Validator for italian ssn.""" def __call__(self, cf): """Check if the cf is valid.""" cf = cf.upper() ...
28.52
80
0.601683
99
713
4.262626
0.565657
0.066351
0.163507
0.199052
0.234597
0
0
0
0
0
0
0.02277
0.26087
713
24
81
29.708333
0.777989
0.190743
0
0.142857
0
0.071429
0.1875
0.067857
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.357143
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c4fb69b51af866d69d353b5963831aad2485b6d7
620
py
Python
catalogos/migrations/0010_usuarioescuela.py
abcdatoz/noocs
39a31a948899d808ba5c24a7f37e7ecdf1292827
[ "MIT" ]
null
null
null
catalogos/migrations/0010_usuarioescuela.py
abcdatoz/noocs
39a31a948899d808ba5c24a7f37e7ecdf1292827
[ "MIT" ]
null
null
null
catalogos/migrations/0010_usuarioescuela.py
abcdatoz/noocs
39a31a948899d808ba5c24a7f37e7ecdf1292827
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-01-18 00:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalogos', '0009_auto_20210114_0414'), ] operations = [ migrations.CreateModel( name='UsuarioEscuela', fields=[ ...
26.956522
114
0.567742
56
620
6.178571
0.75
0.156069
0
0
0
0
0
0
0
0
0
0.069124
0.3
620
22
115
28.181818
0.728111
0.069355
0
0
1
0
0.126957
0.04
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f202869c3e30c238f67347d7e8a9a20fc567f539
9,976
py
Python
Lv2_merged_pulse_methods.py
masonng-astro/nicerpy_xrayanalysis
c21c7c9bc5570c63c986197fb363ae80691515d5
[ "MIT" ]
3
2020-01-13T20:13:14.000Z
2021-06-03T21:58:08.000Z
Lv2_merged_pulse_methods.py
masonng-astro/nicerpy_xrayanalysis
c21c7c9bc5570c63c986197fb363ae80691515d5
[ "MIT" ]
null
null
null
Lv2_merged_pulse_methods.py
masonng-astro/nicerpy_xrayanalysis
c21c7c9bc5570c63c986197fb363ae80691515d5
[ "MIT" ]
2
2020-01-15T15:08:40.000Z
2021-07-09T11:49:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Fri Aug 23 5:18pm 2019 Script that takes in an input (barycentered) merged time series from multiple data_ids, and outputs a pulse profile! Methods script. """ from __future__ import division, print_function import numpy as np import subprocess from astropy...
47.056604
174
0.677927
1,490
9,976
4.328188
0.151678
0.04931
0.030237
0.038301
0.716235
0.680571
0.651729
0.632191
0.614204
0.601644
0
0.026789
0.214214
9,976
211
175
47.279621
0.795892
0.263532
0
0.388889
0
0
0.20042
0.006993
0
0
0
0
0
1
0.031746
false
0.007937
0.047619
0
0.111111
0.071429
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
f204d7903145cc43ba364f21ca2e3a28cfa1337b
309
py
Python
scripts/visualize_model.py
jonahwu/cner
2d85c4abf86c070513408a9db02ed7336be448a8
[ "MIT" ]
823
2019-11-22T17:08:39.000Z
2022-03-31T03:03:23.000Z
scripts/visualize_model.py
jonahwu/cner
2d85c4abf86c070513408a9db02ed7336be448a8
[ "MIT" ]
46
2019-11-25T15:14:05.000Z
2022-03-31T12:59:45.000Z
scripts/visualize_model.py
jonahwu/cner
2d85c4abf86c070513408a9db02ed7336be448a8
[ "MIT" ]
326
2019-11-24T01:31:27.000Z
2022-03-27T19:48:04.000Z
import spacy_streamlit import typer def main(models: str, default_text: str): models = [name.strip() for name in models.split(",")] spacy_streamlit.visualize(models, default_text, visualizers=["ner"]) if __name__ == "__main__": try: typer.run(main) except SystemExit: pass
20.6
72
0.669903
38
309
5.131579
0.631579
0.14359
0
0
0
0
0
0
0
0
0
0
0.20712
309
14
73
22.071429
0.795918
0
0
0
0
0
0.038835
0
0
0
0
0
0
1
0.1
false
0.1
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f2058d1d7c125422b612a19b4d3a36a8e4507d58
346
py
Python
Curso de Python 3 - Mundo 1 - Curso em Video/ex017.py
HebertFB/Curso-de-Python-Mundo-1-Curso-em-Video
885e3efe4227dd610a70f13b2260612249b48865
[ "MIT" ]
null
null
null
Curso de Python 3 - Mundo 1 - Curso em Video/ex017.py
HebertFB/Curso-de-Python-Mundo-1-Curso-em-Video
885e3efe4227dd610a70f13b2260612249b48865
[ "MIT" ]
null
null
null
Curso de Python 3 - Mundo 1 - Curso em Video/ex017.py
HebertFB/Curso-de-Python-Mundo-1-Curso-em-Video
885e3efe4227dd610a70f13b2260612249b48865
[ "MIT" ]
null
null
null
"""Faça um programa que leia o comprimento do cateto oposto e do cateto adjacente de um triângulo retângulo. Calcule e mostre o comprimento da hipotenusa""" from math import hypot ca = float(input("Informe o cateto adjacente: ")) co = float(input('Informe o cateto oposto: ')) print(f'A hipotenusa do triângulo retângu...
38.444444
84
0.751445
55
346
4.727273
0.6
0.092308
0.130769
0.138462
0.184615
0
0
0
0
0
0
0.003401
0.150289
346
8
85
43.25
0.880952
0.433526
0
0
0
0
0.573684
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
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
f20c4dd3eec16423fae71732d125216d230b6d9b
1,864
py
Python
outfit/utils/db_status.py
situkangsayur/python-outfit
5a47eb9e765afde3219ff26525958274499f6ecc
[ "MIT" ]
1
2020-02-29T12:44:31.000Z
2020-02-29T12:44:31.000Z
outfit/utils/db_status.py
situkangsayur/python-outfit
5a47eb9e765afde3219ff26525958274499f6ecc
[ "MIT" ]
null
null
null
outfit/utils/db_status.py
situkangsayur/python-outfit
5a47eb9e765afde3219ff26525958274499f6ecc
[ "MIT" ]
1
2019-08-01T02:48:05.000Z
2019-08-01T02:48:05.000Z
from enum import Enum class MongoLib(Enum): """enumeration for mongo libs for python """ MONGO_ALCHEMY = 1 PYMONGO = 2 MONGOENGINE = 3 class DBStatus(object): def mongo_checker(self, dbmongo, mongo_libs): def mongoengine(): import copy result = True, 'mongo u...
29.587302
95
0.55633
202
1,864
5.039604
0.321782
0.058939
0.058939
0.078585
0.416503
0.29666
0.237721
0.176817
0.108055
0.108055
0
0.004234
0.366416
1,864
62
96
30.064516
0.857748
0.01985
0
0.26087
0
0
0.137665
0
0
0
0
0
0
1
0.152174
false
0
0.065217
0.043478
0.521739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f211a87144194bc71c4120f645edad05b47def20
1,263
py
Python
Datasets/PathLoader.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
52
2020-02-28T20:40:15.000Z
2021-08-25T05:35:17.000Z
Datasets/PathLoader.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
2
2021-02-14T15:57:03.000Z
2021-10-05T12:21:34.000Z
Datasets/PathLoader.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
8
2020-02-28T20:40:11.000Z
2020-07-09T13:27:23.000Z
import os, shutil, zipfile from PuzzleLib.Datasets.InputLoader import InputLoader class PathLoader(InputLoader): def __init__(self, onFile=None, exts=None, dataname=None, cachename=None, onFileList=None, doOpen=True): super().__init__(onFile, exts, dataname, cachename, onFileList) self.doOpen = doOpen class ...
20.047619
105
0.709422
175
1,263
4.942857
0.434286
0.06474
0.025434
0.034682
0
0
0
0
0
0
0
0.000943
0.159937
1,263
62
106
20.370968
0.814326
0
0
0
0
0
0.042755
0
0
0
0
0
0
1
0.25
false
0.027778
0.055556
0.055556
0.472222
0
0
0
0
null
0
0
0
0
0
0
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
f213840092f88e87246f3456833098a160dfc67e
5,628
py
Python
africanus/model/wsclean/spec_model.py
JoshVStaden/codex-africanus
4a38994431d51510b1749fa0e4b8b6190b8b530f
[ "BSD-3-Clause" ]
null
null
null
africanus/model/wsclean/spec_model.py
JoshVStaden/codex-africanus
4a38994431d51510b1749fa0e4b8b6190b8b530f
[ "BSD-3-Clause" ]
null
null
null
africanus/model/wsclean/spec_model.py
JoshVStaden/codex-africanus
4a38994431d51510b1749fa0e4b8b6190b8b530f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from numba import types import numpy as np from africanus.util.numba import generated_jit from africanus.util.docs import DocstringTemplate def ordinary_spectral_model(I, coeffs, log_poly, freq, ref_freq): # noqa: E741 """ Numpy ordinary polynomial implementation """ coeffs_idx = np....
31.79661
79
0.578891
722
5,628
4.385042
0.225762
0.059697
0.032849
0.028427
0.481996
0.454517
0.424826
0.35976
0.346494
0.185092
0
0.015129
0.295309
5,628
176
80
31.977273
0.783157
0.056681
0
0.304688
1
0.007813
0.298146
0.020621
0
0
0
0
0
1
0.078125
false
0.015625
0.03125
0.015625
0.171875
0
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
f21da69724648a864a840d87381d5458dee2a247
1,953
py
Python
selection_insertion_bubble.py
ChaoooW/kpivp
554cf59ed7e3a9894b9376bf74f579fd3db50ce4
[ "MIT" ]
null
null
null
selection_insertion_bubble.py
ChaoooW/kpivp
554cf59ed7e3a9894b9376bf74f579fd3db50ce4
[ "MIT" ]
null
null
null
selection_insertion_bubble.py
ChaoooW/kpivp
554cf59ed7e3a9894b9376bf74f579fd3db50ce4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """selection_insertion_bubble_.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1oXTwR5YDfl9T_fpNlhMne_tBtpgYFPOg """ import random #selection_sort #time complexity: O(n^2) #Space complexity: O(1) def selection_sort(arr, ...
22.976471
77
0.63236
309
1,953
3.763754
0.213592
0.132416
0.085125
0.078246
0.49871
0.484093
0.475494
0.453138
0.453138
0.424764
0
0.024215
0.217614
1,953
85
78
22.976471
0.736911
0.19406
0
0.384615
1
0
0.085311
0
0
0
0
0
0
1
0.076923
false
0
0.019231
0
0.153846
0.307692
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
1eecb3f255131743e9075ad822d6812fc0a246dc
438
py
Python
scripts/ascii2povray.py
petavazohi/PyChemia
e779389418771c25c830aed360773c63bb069372
[ "MIT" ]
67
2015-01-31T07:44:55.000Z
2022-03-21T21:43:34.000Z
scripts/ascii2povray.py
petavazohi/PyChemia
e779389418771c25c830aed360773c63bb069372
[ "MIT" ]
13
2016-06-03T19:07:51.000Z
2022-03-31T04:20:40.000Z
scripts/ascii2povray.py
petavazohi/PyChemia
e779389418771c25c830aed360773c63bb069372
[ "MIT" ]
37
2015-01-22T15:37:23.000Z
2022-03-21T15:38:10.000Z
#!/usr/bin/env python import os import subprocess import pychemia import pychemia.visual for ifile in [x for x in os.listdir('.') if x[-5:] == 'ascii']: st = pychemia.io.ascii.load(ifile) pov = pychemia.visual.StructurePovray(st) povfile = ifile[:-5] + 'pov' jpgfile = ifile[:-5] + 'jpg' pov.write_...
29.2
101
0.625571
62
438
4.403226
0.564516
0.102564
0
0
0
0
0
0
0
0
0
0.033149
0.173516
438
14
102
31.285714
0.720994
0.045662
0
0
0
0
0.105516
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1eef22e025b65089418deda05e5d15a2dc538138
3,651
py
Python
resp/vdw_surface.py
alenaizan/resp
41c58f465f9f3c00225dba9dfa54e5269a970240
[ "BSD-3-Clause" ]
10
2019-03-15T20:33:02.000Z
2021-12-15T02:05:28.000Z
resp/vdw_surface.py
alenaizan/resp
41c58f465f9f3c00225dba9dfa54e5269a970240
[ "BSD-3-Clause" ]
18
2018-06-13T04:10:39.000Z
2022-03-18T08:17:33.000Z
resp/vdw_surface.py
alenaizan/resp
41c58f465f9f3c00225dba9dfa54e5269a970240
[ "BSD-3-Clause" ]
5
2018-06-13T02:57:28.000Z
2021-06-08T15:43:15.000Z
from __future__ import division, absolute_import, print_function import numpy as np """ A sript to generate van der Waals surface of molecules. """ # Van der Waals radii (in angstrom) are taken from GAMESS. vdw_r = {'H': 1.20, 'HE': 1.20, 'LI': 1.37, 'BE': 1.45, 'B': 1.45, 'C': 1.50, 'N': 1.50, 'O...
31.747826
80
0.552177
512
3,651
3.882813
0.355469
0.039235
0.022133
0.018109
0.029175
0.029175
0
0
0
0
0
0.027454
0.34155
3,651
114
81
32.026316
0.799501
0.356341
0
0.067797
1
0
0.054029
0
0
0
0
0
0
1
0.033898
false
0
0.033898
0
0.118644
0.016949
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
1eefbc35316b232bd8e37ac007cc5b746961ee74
2,041
py
Python
orders/migrations/0001_initial.py
adam-thomas/coding-test
903219a3bfbc0ed9354a4d1037554cb273f3317d
[ "MIT" ]
null
null
null
orders/migrations/0001_initial.py
adam-thomas/coding-test
903219a3bfbc0ed9354a4d1037554cb273f3317d
[ "MIT" ]
null
null
null
orders/migrations/0001_initial.py
adam-thomas/coding-test
903219a3bfbc0ed9354a4d1037554cb273f3317d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-14 05:54 import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Customer...
40.82
146
0.596276
206
2,041
5.776699
0.315534
0.033613
0.047059
0.07395
0.530252
0.489076
0.489076
0.426891
0.426891
0.426891
0
0.018642
0.264086
2,041
49
147
41.653061
0.773635
0.022048
0
0.47619
1
0
0.091775
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1ef5d41a128fce67a5b2292d8b3f9304dd50b6f5
760
py
Python
Score_counter_class.py
annydalch/pypong
f53ec97c972d591b2dfc9e8314ee61273a06bcbb
[ "MIT" ]
null
null
null
Score_counter_class.py
annydalch/pypong
f53ec97c972d591b2dfc9e8314ee61273a06bcbb
[ "MIT" ]
null
null
null
Score_counter_class.py
annydalch/pypong
f53ec97c972d591b2dfc9e8314ee61273a06bcbb
[ "MIT" ]
null
null
null
import pygame import globals pygame.font.init() class Score_counter: def __init__(self, font, size, pos, color): # font: a string with the name of a system font to use # size: font size # pos: a tuple with x and y pos as ints # color: what color it is self.font = pygame.fo...
25.333333
79
0.607895
113
760
4.017699
0.477876
0.079295
0.048458
0.057269
0
0
0
0
0
0
0
0.005629
0.298684
760
29
80
26.206897
0.846154
0.239474
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.277778
false
0
0.111111
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
1ef97e044989f4556c95241d1736c6862eafca70
814
py
Python
Python/questions/FindAndReplacePattern/find-and-replace-pattern.py
udcymen/leetcode
7c7c4085e6a8cea7106dd8bca86b370ca53e3ddd
[ "MIT" ]
null
null
null
Python/questions/FindAndReplacePattern/find-and-replace-pattern.py
udcymen/leetcode
7c7c4085e6a8cea7106dd8bca86b370ca53e3ddd
[ "MIT" ]
null
null
null
Python/questions/FindAndReplacePattern/find-and-replace-pattern.py
udcymen/leetcode
7c7c4085e6a8cea7106dd8bca86b370ca53e3ddd
[ "MIT" ]
null
null
null
class Solution: def findAndReplacePattern(self, words: List[str], pattern: str) -> List[str]: result = [] if not words or not pattern: return result for word in words: mapping = {} isMapped = True for i, c in enum...
28.068966
81
0.388206
69
814
4.57971
0.449275
0.044304
0.056962
0
0
0
0
0
0
0
0
0
0.541769
814
29
82
28.068966
0.847185
0
0
0.2
0
0
0
0
0
0
0
0
0
1
0.05
false
0
0
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1efbe702f15403093715f99272d42648d663e9d3
5,567
py
Python
talentmap_api/bidding/views/bidcycle.py
MetaPhase-Consulting/State-TalentMAP-API
4e238cbfe241fd3d0a718a9a0fc038dbed00f13b
[ "CC0-1.0" ]
7
2018-10-17T15:13:05.000Z
2021-12-10T14:53:38.000Z
talentmap_api/bidding/views/bidcycle.py
MetaPhase-Consulting/State-TalentMAP-API
4e238cbfe241fd3d0a718a9a0fc038dbed00f13b
[ "CC0-1.0" ]
208
2018-12-28T17:11:00.000Z
2022-03-29T18:47:23.000Z
talentmap_api/bidding/views/bidcycle.py
MetaPhase-Consulting/State-TalentMAP-API
4e238cbfe241fd3d0a718a9a0fc038dbed00f13b
[ "CC0-1.0" ]
null
null
null
import logging from rest_framework import mixins from rest_framework.viewsets import GenericViewSet from rest_framework.views import APIView from rest_framework.permissions import IsAuthenticatedOrReadOnly from rest_framework.response import Response from rest_framework import status from django.shortcuts import get_ob...
38.393103
132
0.712592
634
5,567
6.072555
0.216088
0.037143
0.041558
0.029091
0.445714
0.409091
0.288571
0.288571
0.266753
0.231948
0
0.013813
0.206754
5,567
144
133
38.659722
0.858016
0.104365
0
0.373494
0
0.036145
0.086947
0.026272
0
0
0
0
0
1
0.084337
false
0
0.216867
0
0.566265
0
0
0
0
null
0
0
0
0
0
0
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
1efc3a75f5c071479e80fb035dcd450ed6e545a8
2,244
py
Python
portfolio/Python/scrapy/rosarioweb/refrinclima_it.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/rosarioweb/refrinclima_it.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/rosarioweb/refrinclima_it.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
5
2016-03-22T07:40:46.000Z
2021-05-30T16:12:21.000Z
from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from scrapy.http import Request from product_spiders.items import Product, ProductLoader from product_spiders.utils import extract_price2uk from decimal import Decimal import logging class RefrinclimaItSpider(BaseSpider): name = ...
35.0625
104
0.60918
275
2,244
4.883636
0.327273
0.031273
0.020849
0.025316
0.096798
0
0
0
0
0
0
0.007071
0.243761
2,244
64
105
35.0625
0.784325
0
0
0.08
0
0.04
0.200891
0.13853
0
0
0
0
0
0
null
null
0
0.14
null
null
0.02
0
0
0
null
0
0
0
0
0
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
1efd38291316be979988e8d16f2f708520c78c52
953
py
Python
efundsapi/drf_utils/middleware.py
code-scaffold/django
b149cbdee87adb7e45998d86d4caa986a784814d
[ "Apache-2.0" ]
1
2021-09-30T07:17:29.000Z
2021-09-30T07:17:29.000Z
efundsapi/drf_utils/middleware.py
code-scaffold/django
b149cbdee87adb7e45998d86d4caa986a784814d
[ "Apache-2.0" ]
null
null
null
efundsapi/drf_utils/middleware.py
code-scaffold/django
b149cbdee87adb7e45998d86d4caa986a784814d
[ "Apache-2.0" ]
null
null
null
import uuid from libs import logger class RequestIdMiddleware(object): def __init__(self, get_response=None): self.get_response = get_response def __call__(self, request): self.process_request(request) response = self.get_response(request) return response def process_re...
25.756757
57
0.648478
111
953
5.288288
0.315315
0.149915
0.153322
0.057922
0.589438
0.589438
0.589438
0.589438
0.589438
0.589438
0
0.002793
0.248688
953
36
58
26.472222
0.817039
0
0
0.56
0
0
0.026233
0
0
0
0
0
0
1
0.24
false
0
0.08
0
0.48
0
0
0
0
null
0
0
0
0
0
0
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
1efdbdccce224dc7e53b34483efe12d0cc43bc0f
299
py
Python
Some basic programs/GetFiles.py
ankitraj7994/Unique-Python
8013914a01b0b91c0c6c86defb68136efbf2ebd8
[ "MIT" ]
6
2018-10-01T06:13:01.000Z
2019-01-10T02:02:04.000Z
Some basic programs/GetFiles.py
ankitraj7994/Unique-Python
8013914a01b0b91c0c6c86defb68136efbf2ebd8
[ "MIT" ]
28
2018-10-01T05:51:21.000Z
2018-10-23T17:56:15.000Z
Some basic programs/GetFiles.py
ankitraj7994/Unique-Python
8013914a01b0b91c0c6c86defb68136efbf2ebd8
[ "MIT" ]
31
2017-12-14T17:21:00.000Z
2018-10-19T01:55:52.000Z
import os #This program finds all the files in a directory whose address we provide and prints it. def get_files(): directory = os.path.join('C:\\Users\\%s\\Desktop' %os.getlogin()) file_list = os.listdir(directory) print (file_list) def main(): get_files() if __name__ == '__main__': main()
23
88
0.712375
47
299
4.276596
0.723404
0.079602
0
0
0
0
0
0
0
0
0
0
0.147157
299
13
89
23
0.788235
0.29097
0
0
0
0
0.141509
0.103774
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4806f42087f02d85c3c6f1de2a8b43b7fdb4f406
3,283
py
Python
psychic/quiz/models.py
wsh32/psychic
2af3bf1b0031dd44c2ff3cde14e490ca74107f7b
[ "MIT" ]
null
null
null
psychic/quiz/models.py
wsh32/psychic
2af3bf1b0031dd44c2ff3cde14e490ca74107f7b
[ "MIT" ]
11
2019-08-11T18:16:36.000Z
2022-02-10T10:31:41.000Z
psychic/quiz/models.py
wsh32/psychic
2af3bf1b0031dd44c2ff3cde14e490ca74107f7b
[ "MIT" ]
null
null
null
import datetime from django.db import models from django.utils import timezone class Quiz(models.Model): title = models.CharField(max_length=200) description_text = models.TextField() submit_text = models.TextField(default='Your response was recorded. Thank you!') pub_date = models.DateTimeField('pub...
36.477778
125
0.701797
419
3,283
5.293556
0.229117
0.072137
0.06312
0.064923
0.466637
0.401262
0.343553
0.343553
0.343553
0.311993
0
0.012153
0.19799
3,283
89
126
36.88764
0.830232
0.048431
0
0.301587
0
0
0.042588
0
0
0
0
0
0
1
0.142857
false
0
0.047619
0.095238
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
480863cd75dc1afd2da9557dcf989014613665e4
344
py
Python
SOAPapi/conftest.py
altazur/PythonAutomationExamples
de5f1db849cb8e5416090811f361440022bcf4fd
[ "MIT" ]
null
null
null
SOAPapi/conftest.py
altazur/PythonAutomationExamples
de5f1db849cb8e5416090811f361440022bcf4fd
[ "MIT" ]
null
null
null
SOAPapi/conftest.py
altazur/PythonAutomationExamples
de5f1db849cb8e5416090811f361440022bcf4fd
[ "MIT" ]
null
null
null
from CalculatorSOAP import Calculator import pytest @pytest.fixture def get_calculator(): calculator = Calculator() yield calculator def pytest_addoption(parser): parser.addoption('--SOAPver', default='1.1', help='SOAP version: 1 or 2') @pytest.fixture def soap_version(request): return request.config...
22.933333
77
0.744186
42
344
6.02381
0.547619
0.102767
0.126482
0
0
0
0
0
0
0
0
0.013468
0.136628
344
14
78
24.571429
0.838384
0
0
0.181818
0
0
0.119186
0
0
0
0
0
0
1
0.272727
false
0
0.181818
0.090909
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
480b7e0185832e40c1eac043cad057e06de0bb2b
1,596
py
Python
ancestral/3comp_binary_reconstruct.py
Tancata/phylo
fb397c31b5cf4cea3c1513391b330e715da2d603
[ "MIT" ]
5
2020-11-02T06:23:36.000Z
2021-09-07T01:35:35.000Z
ancestral/3comp_binary_reconstruct.py
Tancata/phylo
fb397c31b5cf4cea3c1513391b330e715da2d603
[ "MIT" ]
1
2021-11-10T13:34:23.000Z
2021-11-10T16:53:02.000Z
ancestral/3comp_binary_reconstruct.py
Tancata/phylo
fb397c31b5cf4cea3c1513391b330e715da2d603
[ "MIT" ]
4
2018-07-17T13:35:20.000Z
2021-07-09T18:28:44.000Z
var.nexus_allowAllDigitNames = True # put it somewhere else var.doCheckForDuplicateSequences = False t = var.trees[0] a = var.alignments[0] t.data = Data() t.model.dump() print('\nAfter optimizing, the composition of the model for the non-root nodes is:') print(t.model.parts[0].comps[0].val) print('...and:') prin...
31.92
104
0.662907
263
1,596
3.996198
0.376426
0.062797
0.104662
0.114177
0.222645
0.16746
0.086584
0.062797
0.062797
0
0
0.032138
0.161654
1,596
49
105
32.571429
0.753363
0.178571
0
0.051282
0
0
0.172546
0
0
0
0
0
0
1
0
false
0
0
0
0
0.461538
0
0
0
null
0
0
0
0
0
0
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
480ef3183c4853458b215bcc5dfca766784d186c
12,364
py
Python
car2dc-kiran/Scripts/ClusterCalculation_500.py
kirannCS/MasterThesis
a12771dc40efe77ae7d6e1631ed66c4b9992afd8
[ "Unlicense" ]
null
null
null
car2dc-kiran/Scripts/ClusterCalculation_500.py
kirannCS/MasterThesis
a12771dc40efe77ae7d6e1631ed66c4b9992afd8
[ "Unlicense" ]
null
null
null
car2dc-kiran/Scripts/ClusterCalculation_500.py
kirannCS/MasterThesis
a12771dc40efe77ae7d6e1631ed66c4b9992afd8
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from __future__ import absolute_import from __future__ import print_function import os import sys import csv import time import xml.etree.ElementTree as ET import math # Global Vaiables ParserIP = "" ParserPort = "" UDMPort = "" SumoFloatingDataPath = "" CommRange = 0.0 LogInfoEnable = "" L...
39.126582
239
0.618813
1,134
12,364
6.697531
0.214286
0.025675
0.010533
0.015668
0.42686
0.369717
0.352732
0.344964
0.331007
0.279789
0
0.03114
0.262375
12,364
315
240
39.250794
0.801645
0.040116
0
0.268482
0
0
0.125928
0.019581
0.003891
0
0
0
0
0
null
null
0
0.035019
null
null
0.046693
0
0
0
null
0
0
0
0
0
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
481bdb0463d99d25090ea4e0e60d9da715b30c29
4,742
py
Python
src/app.py
abhirajpoot/ser-wala
efd23569044fe225537dd8ac0dcd82097601aa1a
[ "MIT" ]
null
null
null
src/app.py
abhirajpoot/ser-wala
efd23569044fe225537dd8ac0dcd82097601aa1a
[ "MIT" ]
null
null
null
src/app.py
abhirajpoot/ser-wala
efd23569044fe225537dd8ac0dcd82097601aa1a
[ "MIT" ]
null
null
null
import datetime import uuid from src.common.database import Database from src.models.student_data import Students from src.models.admin import Admin # from src.models.user import User from flask import Flask, render_template, request, session, make_response __author__ = "abhishekmadhu" app = Flask(__name__) # '__ma...
34.613139
112
0.66744
576
4,742
5.274306
0.246528
0.0553
0.072416
0.048387
0.376234
0.340685
0.270573
0.250165
0.202765
0.142199
0
0.004811
0.167229
4,742
136
113
34.867647
0.764497
0.128849
0
0.2
0
0
0.21147
0.039427
0
0
0
0
0
1
0.129412
false
0.070588
0.070588
0.047059
0.364706
0
0
0
0
null
0
0
0
0
0
0
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
481d14c1e7e314ae3835dbe8b4721f77f7f0fdb1
2,390
py
Python
M2Crypto/m2xmlrpclib.py
M2Crypto/m2crypto
4c4450cc29a0fc28cc26c88c49ee5d03c9a28316
[ "MIT" ]
19
2015-01-02T23:31:39.000Z
2015-06-23T09:14:52.000Z
M2Crypto/m2xmlrpclib.py
M2Crypto/m2crypto
4c4450cc29a0fc28cc26c88c49ee5d03c9a28316
[ "MIT" ]
19
2015-01-22T23:54:37.000Z
2015-07-07T16:08:50.000Z
M2Crypto/m2xmlrpclib.py
M2Crypto/m2crypto
4c4450cc29a0fc28cc26c88c49ee5d03c9a28316
[ "MIT" ]
12
2015-03-07T19:02:23.000Z
2015-06-05T20:04:46.000Z
from __future__ import absolute_import """M2Crypto enhancement to xmlrpclib. Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved.""" import base64 import M2Crypto from M2Crypto import SSL, httpslib, m2urllib, six, util if util.py27plus: from typing import Any, AnyStr, Callable, Optional # noqa from M...
29.875
76
0.607531
275
2,390
5.083636
0.44
0.042918
0.021459
0.018598
0.028612
0
0
0
0
0
0
0.018311
0.291632
2,390
79
77
30.253165
0.807442
0.129289
0
0.041667
0
0
0.04883
0
0
0
0
0
0
1
0.041667
false
0.0625
0.166667
0
0.270833
0
0
0
0
null
0
0
0
0
0
0
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
481e33d9e758d03cfbd8c47fee191759df4da3a8
1,772
py
Python
miniwiki/auth.py
Oxygem/MiniWiki
a9c45b22b8ad57e90af31eb345809497b631f6ca
[ "MIT" ]
4
2020-06-12T01:54:20.000Z
2022-03-25T00:29:26.000Z
miniwiki/auth.py
Oxygem/MiniWiki
a9c45b22b8ad57e90af31eb345809497b631f6ca
[ "MIT" ]
6
2020-06-12T07:40:07.000Z
2021-09-08T20:15:06.000Z
miniwiki/auth.py
Oxygem/MiniWiki
a9c45b22b8ad57e90af31eb345809497b631f6ca
[ "MIT" ]
1
2022-01-14T04:56:39.000Z
2022-01-14T04:56:39.000Z
import hmac from bcrypt import hashpw from flask import abort, redirect, render_template, request, session class AnonymousAuthBackend(object): get_login = False post_login = False get_logout = False def __init__(self, config): pass def is_logged_in(self): return True class Sim...
26.058824
98
0.629233
200
1,772
5.39
0.375
0.051948
0.020408
0.03154
0.103896
0.103896
0
0
0
0
0
0.004666
0.274266
1,772
67
99
26.447761
0.833593
0.103273
0
0.186047
0
0
0.162939
0.036422
0
0
0
0
0
1
0.162791
false
0.116279
0.069767
0.069767
0.465116
0
0
0
0
null
0
0
0
0
0
0
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
48270f50aaa0751e31ea890a4f9eac0c72859812
3,528
py
Python
config.py
gve-sw/GVE_DevNet_Jabber_MigrateRooms-ChatToWebex
f9cd4999fa77f8cfe760e98af247ad10aa2a1040
[ "RSA-MD" ]
1
2021-05-31T03:16:03.000Z
2021-05-31T03:16:03.000Z
config.py
gve-sw/GVE_DevNet_Jabber_MigrateRooms-ChatToWebex
f9cd4999fa77f8cfe760e98af247ad10aa2a1040
[ "RSA-MD" ]
null
null
null
config.py
gve-sw/GVE_DevNet_Jabber_MigrateRooms-ChatToWebex
f9cd4999fa77f8cfe760e98af247ad10aa2a1040
[ "RSA-MD" ]
null
null
null
"""Copyright (c) 2020 Cisco and/or its affiliates. This software is licensed to you under the terms of the Cisco Sample Code License, Version 1.1 (the "License"). You may obtain a copy of the License at https://developer.cisco.com/docs/licenses All use of the material herein must be in accorda...
43.02439
133
0.755952
556
3,528
4.660072
0.390288
0.03242
0.01621
0.018526
0.195291
0.195291
0.184871
0.150521
0.121961
0.0934
0
0.00276
0.178288
3,528
81
134
43.555556
0.890997
0.665249
0
0
0
0
0.308063
0.104693
0
0
0
0
0
1
0
false
0.136364
0.045455
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
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
48274ebd7e53929acc88d3d55b7c3a13eb729622
9,529
py
Python
multistep.py
juanlao7/DL-lab2
91f9aeb0b9a62e9fd56b5e1222e01b5ca1ed69ff
[ "MIT" ]
null
null
null
multistep.py
juanlao7/DL-lab2
91f9aeb0b9a62e9fd56b5e1222e01b5ca1ed69ff
[ "MIT" ]
null
null
null
multistep.py
juanlao7/DL-lab2
91f9aeb0b9a62e9fd56b5e1222e01b5ca1ed69ff
[ "MIT" ]
null
null
null
""" .. module:: WindPrediction WindPrediction ************* :Description: WindPrediction :Authors: bejar, lao :Version: :Created on: 06/09/2017 9:47 """ import numpy as np from keras.models import Sequential from keras.layers import Dense, Activation from keras.layers import LSTM, GRU, Dropout from keras...
31.763333
126
0.54056
1,027
9,529
4.900682
0.253165
0.008941
0.008345
0.010332
0.242599
0.189152
0.175045
0.165309
0.165309
0.15458
0
0.012797
0.319341
9,529
299
127
31.869565
0.763182
0.022878
0
0.181319
0
0
0.088361
0
0
0
0
0
0
0
null
null
0.005495
0.098901
null
null
0.054945
0
0
0
null
0
0
0
0
0
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
482a1a4ef552ef5cb7fc3b3d08660f46e7a2001c
838
py
Python
api/teams/migrations/0002_auto_20210924_1241.py
uktrade/lite-ap
4e1a57956bd921992b4a6e2b8fbacbba5720960d
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/teams/migrations/0002_auto_20210924_1241.py
uktrade/lite-ap
4e1a57956bd921992b4a6e2b8fbacbba5720960d
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/teams/migrations/0002_auto_20210924_1241.py
uktrade/lite-ap
4e1a57956bd921992b4a6e2b8fbacbba5720960d
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
# Generated by Django 3.1.12 on 2021-09-24 11:41 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('teams', '0001_squashed_0003_auto_20210325_0812'), ] operations = [ migrations.CreateModel( ...
29.928571
164
0.616945
91
838
5.571429
0.637363
0.047337
0.055227
0.086785
0
0
0
0
0
0
0
0.059486
0.257757
838
27
165
31.037037
0.755627
0.054893
0
0.095238
1
0
0.117722
0.046835
0
0
0
0
0
1
0
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
482d333d5647a22a3774b77e63c34c6220a6ecdc
385
py
Python
apps/dataporten/study/tests/courses_tests.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/dataporten/study/tests/courses_tests.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/dataporten/study/tests/courses_tests.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
from django.test import TestCase from ..courses import get_courses_for_key class CoursesTestCase(TestCase): def test_get_courses_by_key(self): d = { 'MASTER_COURSE': '', 'MASTER_COURSE_1': '', 'MASTER_COURSE_2': '', 'BIT_COURSE_1': '', } se...
24.0625
74
0.6
45
385
4.711111
0.488889
0.226415
0.122642
0.150943
0
0
0
0
0
0
0
0.014388
0.277922
385
15
75
25.666667
0.748201
0
0
0
0
0
0.179221
0
0
0
0
0
0.090909
1
0.090909
false
0
0.181818
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
482ddbaa29dff8f06823303da6bb577b7179504d
1,854
py
Python
noggin/form/validators.py
CyberFlameGO/noggin
f1fbd53b2c373c660e724a71ab6963c4f5bc36c5
[ "MIT" ]
null
null
null
noggin/form/validators.py
CyberFlameGO/noggin
f1fbd53b2c373c660e724a71ab6963c4f5bc36c5
[ "MIT" ]
53
2021-06-01T07:37:34.000Z
2022-03-25T22:22:01.000Z
noggin/form/validators.py
abompard/noggin
7bb35ac1995631797fcd882cbd1869e05ed178ac
[ "MIT" ]
null
null
null
from flask import current_app from flask_babel import lazy_gettext as _ from wtforms.validators import Email as WTFormsEmailValidator from wtforms.validators import Length, Regexp, StopValidation, ValidationError class Email(WTFormsEmailValidator): """Extend the WTForms email validator, adding the ability to bloc...
30.9
88
0.656958
215
1,854
5.44186
0.390698
0.069231
0.068376
0.038462
0.160684
0.05641
0
0
0
0
0
0.00212
0.236785
1,854
59
89
31.423729
0.824735
0.092772
0
0.075
0
0
0.139591
0.040313
0
0
0
0
0
1
0.175
false
0.075
0.1
0.025
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
482f819c998c78343dfd658df170ff12f380d87c
574
py
Python
beu/scripts/shell.py
kenjyco/beu
484da9833fa12a446a20ddf635ecd90d78d8e043
[ "MIT" ]
null
null
null
beu/scripts/shell.py
kenjyco/beu
484da9833fa12a446a20ddf635ecd90d78d8e043
[ "MIT" ]
null
null
null
beu/scripts/shell.py
kenjyco/beu
484da9833fa12a446a20ddf635ecd90d78d8e043
[ "MIT" ]
null
null
null
import click @click.command() @click.option( '--no-vi', 'no_vi', is_flag=True, default=False, help='Do not use vi editing mode' ) @click.option( '--no-colors', 'no_colors', is_flag=True, default=False, help='Do not use colors / syntax highlighting' ) def main(**kwargs): """Start ipython with `beu`...
21.259259
60
0.620209
78
574
4.371795
0.435897
0.035191
0.076246
0.099707
0.199413
0.199413
0.199413
0.199413
0.199413
0
0
0
0.229965
574
26
61
22.076923
0.771493
0.080139
0
0.095238
0
0
0.227969
0
0
0
0
0
0
1
0.047619
true
0
0.142857
0
0.190476
0.095238
0
0
0
null
0
0
0
0
0
0
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
483003c95d2846bc9b9ba277d0f05922927415cf
505
py
Python
JottoWebApp/migrations/0004_auto_20170812_1422.py
newnone/Jotto-Web
52d5d0bfca0a102567bbd4c6d5d3077e21eac4c2
[ "MIT" ]
null
null
null
JottoWebApp/migrations/0004_auto_20170812_1422.py
newnone/Jotto-Web
52d5d0bfca0a102567bbd4c6d5d3077e21eac4c2
[ "MIT" ]
null
null
null
JottoWebApp/migrations/0004_auto_20170812_1422.py
newnone/Jotto-Web
52d5d0bfca0a102567bbd4c6d5d3077e21eac4c2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-12 14:22 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('JottoWebApp', '0003_auto_20170812_1410'), ] operations...
22.954545
74
0.643564
56
505
5.642857
0.767857
0.06962
0.120253
0
0
0
0
0
0
0
0
0.086162
0.241584
505
21
75
24.047619
0.738903
0.134653
0
0
1
0
0.099078
0.052995
0
0
0
0
0
1
0
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4831a871d212734d9a2470763129f707973cac70
1,660
py
Python
ecosys/utils/data_preprocessor.py
drunkcoding/efficient-nlp
9509e0ef08016506280a7cfc600ea8e3778dea2d
[ "Apache-2.0" ]
null
null
null
ecosys/utils/data_preprocessor.py
drunkcoding/efficient-nlp
9509e0ef08016506280a7cfc600ea8e3778dea2d
[ "Apache-2.0" ]
null
null
null
ecosys/utils/data_preprocessor.py
drunkcoding/efficient-nlp
9509e0ef08016506280a7cfc600ea8e3778dea2d
[ "Apache-2.0" ]
null
null
null
from transformers import GPT2Tokenizer from torch.utils.data import DataLoader, SequentialSampler import torch from .data_structure import HuggingFaceDataset def build_gpt2_special_tokens(self, token_ids_0, token_ids_1=None): """ For GPT2 special must be added after text tokenization """ outputs = [s...
33.2
181
0.706024
206
1,660
5.349515
0.359223
0.050817
0.024501
0.039927
0.092559
0
0
0
0
0
0
0.010495
0.196386
1,660
50
182
33.2
0.815592
0
0
0
0
0
0.045305
0
0
0
0
0
0
0
null
null
0.030303
0.121212
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
4832dfdd44cd24931d284ba64aa690949a29d3ae
411
py
Python
code_week8_615_621/length_of_last_word.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week8_615_621/length_of_last_word.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week8_615_621/length_of_last_word.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
''' 给定一个仅包含大小写字母和空格 ' ' 的字符串 s,返回其最后一个单词的长度。如果字符串从左向右滚动显示,那么最后一个单词就是最后出现的单词。 如果不存在最后一个单词,请返回 0 。 说明:一个单词是指仅由字母组成、不包含任何空格字符的 最大子字符串。   示例: 输入: "Hello World" 输出: 5 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/length-of-last-word ''' class Solution: def lengthOfLastWord(self, s: str) -> int: if ...
15.807692
72
0.639903
53
411
4.962264
0.867925
0
0
0
0
0
0
0
0
0
0
0.012422
0.216545
411
25
73
16.44
0.804348
0.571776
0
0
0
0
0.005952
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4833db7ef4f7b52a6f0c02482fee76f0ff7c3e7c
2,803
py
Python
freight/notifiers/base.py
armandomeeuwenoord/freight
31ae2fa9252ab0b25385abd04742475e6671e3b1
[ "Apache-2.0" ]
562
2015-02-20T08:25:24.000Z
2021-11-12T19:58:44.000Z
freight/notifiers/base.py
armandomeeuwenoord/freight
31ae2fa9252ab0b25385abd04742475e6671e3b1
[ "Apache-2.0" ]
129
2015-02-20T07:41:14.000Z
2022-02-17T21:14:40.000Z
freight/notifiers/base.py
armandomeeuwenoord/freight
31ae2fa9252ab0b25385abd04742475e6671e3b1
[ "Apache-2.0" ]
54
2015-02-28T01:12:23.000Z
2021-03-02T11:14:52.000Z
from freight.models import Deploy, TaskStatus from freight import http __all__ = ["Notifier", "NotifierEvent"] class NotifierEvent(object): TASK_STARTED = 0 TASK_FINISHED = 1 TASK_QUEUED = 2 class Notifier(object): DEFAULT_EVENTS = [ NotifierEvent.TASK_QUEUED, NotifierEvent.TASK_STA...
36.881579
119
0.651802
360
2,803
4.966667
0.311111
0.03132
0.050336
0.03915
0.356823
0.261186
0.214765
0.105145
0.105145
0.06264
0
0.002752
0.222262
2,803
75
120
37.373333
0.817431
0.147699
0
0.037037
0
0.055556
0.213025
0.023529
0
0
0
0.013333
0
1
0.12963
false
0
0.037037
0.055556
0.462963
0
0
0
0
null
0
0
0
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
48342ec41189d1ea748b86d47faf51d68aadde1e
331
py
Python
sqlite3/daoru.py
reverie2007/LearnPython
135bcaa53531c2254ce06be69897bf95230a6889
[ "MIT" ]
null
null
null
sqlite3/daoru.py
reverie2007/LearnPython
135bcaa53531c2254ce06be69897bf95230a6889
[ "MIT" ]
null
null
null
sqlite3/daoru.py
reverie2007/LearnPython
135bcaa53531c2254ce06be69897bf95230a6889
[ "MIT" ]
null
null
null
import jiekou2 import jiekou print("%s have a num:" % __name__, jiekou.num) print("%s have a num:" % __name__, jiekou2.num) print(len(dir(__builtins__))) try: None[0] except TypeError as e: print("type error!", e) x = 'sfefjdisjfkdsj' print(hash(x)) print(hash(123456789101183) == 101718800) print(hash(1017188...
19.470588
47
0.697885
48
331
4.5625
0.541667
0.123288
0.091324
0.100457
0.164384
0.164384
0
0
0
0
0
0.126761
0.141994
331
16
48
20.6875
0.644366
0
0
0
0
0
0.160121
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.5
0
0
0
null
0
0
0
0
0
0
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
4837c7628d3fafe819d23f7ec29e559fcd71fe78
1,736
py
Python
test/test_schema.py
SAEON/Open-Data-Platform
8509c39c6f65ba18518e825e2359213ec4c67af5
[ "MIT" ]
null
null
null
test/test_schema.py
SAEON/Open-Data-Platform
8509c39c6f65ba18518e825e2359213ec4c67af5
[ "MIT" ]
null
null
null
test/test_schema.py
SAEON/Open-Data-Platform
8509c39c6f65ba18518e825e2359213ec4c67af5
[ "MIT" ]
null
null
null
from jschon import JSON, JSONPatch, URI from odp.lib.schema import schema_catalog as catalog def test_validity(): input_schema = catalog.get_schema(URI('https://odp.saeon.ac.za/schema/metadata/saeon/iso19115')) input_json = catalog.load_json(URI('https://odp.saeon.ac.za/schema/metadata/saeon/iso19115-example...
45.684211
123
0.730415
232
1,736
5.331897
0.267241
0.045271
0.062247
0.090542
0.499596
0.499596
0.447858
0.447858
0.447858
0.447858
0
0.020053
0.138249
1,736
37
124
46.918919
0.806818
0.080645
0
0.083333
0
0.125
0.316153
0
0
0
0
0.027027
0.291667
1
0.083333
false
0
0.083333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
483e66c4713588f868f1047452af98ad1d6d445c
424
py
Python
wagtail_localize/test/migrations/0015_testsnippet_small_charfield.py
hpoul/wagtail-localize
f5880059cc84ee96aab5ade17f78dc6112b04462
[ "BSD-3-Clause" ]
123
2019-11-21T12:55:04.000Z
2022-03-23T08:08:47.000Z
wagtail_localize/test/migrations/0015_testsnippet_small_charfield.py
hpoul/wagtail-localize
f5880059cc84ee96aab5ade17f78dc6112b04462
[ "BSD-3-Clause" ]
334
2019-11-20T10:40:08.000Z
2022-03-27T17:33:01.000Z
wagtail_localize/test/migrations/0015_testsnippet_small_charfield.py
hpoul/wagtail-localize
f5880059cc84ee96aab5ade17f78dc6112b04462
[ "BSD-3-Clause" ]
41
2020-01-16T17:24:52.000Z
2022-03-28T13:09:59.000Z
# Generated by Django 3.2.4 on 2021-06-29 15:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wagtail_localize_test', '0014_auto_20210217_0924'), ] operations = [ migrations.AddField( model_name='testsnippet', ...
22.315789
62
0.627358
47
424
5.489362
0.851064
0
0
0
0
0
0
0
0
0
0
0.105769
0.264151
424
18
63
23.555556
0.721154
0.106132
0
0
1
0
0.185676
0.116711
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
4842a95f658b94108ced53fb657c63868c5d4478
400
py
Python
loaf/users/migrations/0005_auto_20181014_2222.py
phj95304/loaf_django
da3dd778fc11f4cd5583c4f4537a9bf8760756b9
[ "MIT" ]
null
null
null
loaf/users/migrations/0005_auto_20181014_2222.py
phj95304/loaf_django
da3dd778fc11f4cd5583c4f4537a9bf8760756b9
[ "MIT" ]
null
null
null
loaf/users/migrations/0005_auto_20181014_2222.py
phj95304/loaf_django
da3dd778fc11f4cd5583c4f4537a9bf8760756b9
[ "MIT" ]
null
null
null
# Generated by Django 2.0.8 on 2018-10-14 13:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0004_remove_user_apt_score'), ] operations = [ migrations.AlterField( model_name='user', name='username', ...
21.052632
63
0.605
45
400
5.244444
0.844444
0
0
0
0
0
0
0
0
0
0
0.076389
0.28
400
18
64
22.222222
0.743056
0.1125
0
0
1
0
0.121813
0.073654
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
48462d0738ebc377bc2fdde2aa3e4ed724a4bee9
527
py
Python
src/ht3/lookup_table.py
rupol/Hash-Tables-Lecture
5b692ad08a0604e81c7d12d09e912925fa12c512
[ "MIT" ]
null
null
null
src/ht3/lookup_table.py
rupol/Hash-Tables-Lecture
5b692ad08a0604e81c7d12d09e912925fa12c512
[ "MIT" ]
null
null
null
src/ht3/lookup_table.py
rupol/Hash-Tables-Lecture
5b692ad08a0604e81c7d12d09e912925fa12c512
[ "MIT" ]
null
null
null
import math # inverse square root is 1 / square root of a number # relatively time consuming def get_inverse_square(num): return 1/math.sqrt(num) # using a lookup table could help a lot if we know we're going to do this over and over for numbers between 1 and 1000 def build_lookup_table(): lookup_table = ...
21.08
118
0.734345
89
527
4.157303
0.516854
0.267568
0.121622
0.108108
0
0
0
0
0
0
0
0.037647
0.193548
527
24
119
21.958333
0.832941
0.366224
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.090909
0.454545
0.181818
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
48496dc287f3ba62206317ee941ff5ee957deaaa
2,800
py
Python
update_thing.py
djfurman/example-db-app
3d3e60cf7e4f951d0e380a37a1dc3e4069c87be8
[ "BSD-3-Clause" ]
null
null
null
update_thing.py
djfurman/example-db-app
3d3e60cf7e4f951d0e380a37a1dc3e4069c87be8
[ "BSD-3-Clause" ]
null
null
null
update_thing.py
djfurman/example-db-app
3d3e60cf7e4f951d0e380a37a1dc3e4069c87be8
[ "BSD-3-Clause" ]
null
null
null
import os import pymysql # Environment variables can be set on the client or server # You can also run `cp .env.example .env` and set them locally # The .env file will be ignored by version control # This creates a convenient way to test and transports to prod settings # Intentionally using os.getenv instead of os.en...
30.107527
94
0.644643
388
2,800
4.582474
0.502577
0.022497
0.022497
0
0
0
0
0
0
0
0
0.000489
0.27
2,800
92
95
30.434783
0.869374
0.537143
0
0
0
0
0.352893
0
0
0
0
0.01087
0
1
0.043478
false
0.021739
0.043478
0
0.086957
0.043478
0
0
0
null
0
0
0
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
484ba8c7e1196342baf1dfa2193006d1a4f3fb11
160
py
Python
chapter01/variable_summary.py
KustomApe/nerdape
aef6fb2d1f8c364b26d91bf8570b4487a24de69a
[ "MIT" ]
null
null
null
chapter01/variable_summary.py
KustomApe/nerdape
aef6fb2d1f8c364b26d91bf8570b4487a24de69a
[ "MIT" ]
null
null
null
chapter01/variable_summary.py
KustomApe/nerdape
aef6fb2d1f8c364b26d91bf8570b4487a24de69a
[ "MIT" ]
null
null
null
# 変数宣言 name = 1234 # 整数型、文字列型、浮動小数点型 123 'hello' "world" "I can't drive." 1.23 # コメント # プログラムの意味を記述するもの # デバッグポイント・コードの実行に支障はありません # print()関数 # 関数はミニプログラム
8.888889
26
0.6875
23
160
4.826087
1
0
0
0
0
0
0
0
0
0
0
0.075758
0.175
160
18
27
8.888889
0.757576
0.54375
0
0
0
0
0.363636
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
48500526498d8d068cf111ac518826fe54debc38
2,850
py
Python
tools/legacy/mw4-erf-converter/convertErf.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
tools/legacy/mw4-erf-converter/convertErf.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
tools/legacy/mw4-erf-converter/convertErf.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
import sys import json import glob import readErf importFilenames = sys.argv[1:] # lower half of mech # hip # (l/r)uleg (u for upper) # (l/r)mleg (m for middle) # (l/r)dleg (d for down) # (l/r)foot # (l/r)ftoe (f for front) # (l/r)btoe (b for back) def getMaxMinY(items): map...
38.513514
115
0.568421
297
2,850
5.447811
0.417508
0.088381
0.070457
0.02843
0.07293
0.038319
0.038319
0
0
0
0
0.006129
0.312982
2,850
73
116
39.041096
0.820225
0.067719
0
0.036364
0
0
0.026455
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.054545
0
0
0
null
0
0
0
0
0
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
4860252481abd13c8835a85e797be9b8bfe9b9f5
19,706
py
Python
Alignment/MuonAlignmentAlgorithms/scripts/createBeamHaloJobs.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
Alignment/MuonAlignmentAlgorithms/scripts/createBeamHaloJobs.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
Alignment/MuonAlignmentAlgorithms/scripts/createBeamHaloJobs.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os, sys, re, optparse, math copyargs = sys.argv[:] for i in range(len(copyargs)): if copyargs[i] == "": copyargs[i] = "\"\"" if copyargs[i].find(" ") != -1: copyargs[i] = "\"%s\"" % copyargs[i] commandline = " ".join(copyargs) usage = """./%prog DIRNAME PATTERN IN...
43.986607
296
0.685679
2,144
19,706
6.19916
0.20056
0.064329
0.051764
0.053043
0.426078
0.394703
0.375141
0.354601
0.354601
0.342262
0
0.011196
0.19319
19,706
447
297
44.085011
0.824769
0.001015
0
0.361257
0
0.031414
0.591466
0.291339
0
0
0
0
0
0
null
null
0
0.005236
null
null
0.002618
0
0
0
null
0
0
0
0
0
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
4861a58e27128c5d0289606dc873b81b21df7275
14,971
py
Python
nipyapi/registry/models/bundle_version_metadata.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
199
2017-08-24T12:19:41.000Z
2022-03-20T14:50:17.000Z
nipyapi/registry/models/bundle_version_metadata.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
275
2017-08-28T21:21:49.000Z
2022-03-29T17:57:26.000Z
nipyapi/registry/models/bundle_version_metadata.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
73
2017-09-07T10:13:56.000Z
2022-02-28T10:37:21.000Z
# coding: utf-8 """ Apache NiFi Registry REST API The REST API provides an interface to a registry with operations for saving, versioning, reading NiFi flows and components. OpenAPI spec version: 1.15.0 Contact: dev@nifi.apache.org Generated by: https://github.com/swagger-api/swagger-codegen.git ...
28.680077
265
0.603968
1,703
14,971
5.155021
0.103347
0.043741
0.184531
0.075179
0.571705
0.469302
0.393439
0.310172
0.25356
0.24627
0
0.014459
0.320887
14,971
521
266
28.735125
0.849021
0.375994
0
0.080189
0
0
0.111658
0
0
0
0
0
0
1
0.169811
false
0
0.014151
0
0.29717
0.004717
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
4861bed22826c795ba004bf81a765f61bf509f2a
2,002
py
Python
riglib/button.py
sgowda/brain-python-interface
708e2a5229d0496a8ce9de32bda66f0925d366d9
[ "Apache-2.0" ]
7
2015-08-25T00:28:49.000Z
2020-04-14T22:58:51.000Z
riglib/button.py
sgowda/brain-python-interface
708e2a5229d0496a8ce9de32bda66f0925d366d9
[ "Apache-2.0" ]
89
2020-08-03T16:54:08.000Z
2022-03-09T19:56:19.000Z
riglib/button.py
sgowda/brain-python-interface
708e2a5229d0496a8ce9de32bda66f0925d366d9
[ "Apache-2.0" ]
4
2016-10-05T17:54:26.000Z
2020-08-06T15:37:09.000Z
''' Interact with a peripheral 'button' device hooked up to an FTDI chip ''' import threading import queue import ftdi import time class Button(threading.Thread): ''' Docstring ''' def __init__(self): ''' Docstring Parameters ---------- Returns ------- ...
19.436893
77
0.45954
194
2,002
4.525773
0.386598
0.072893
0.13098
0.170843
0
0
0
0
0
0
0
0.018644
0.410589
2,002
102
78
19.627451
0.725424
0.164336
0
0.088889
0
0
0.023121
0.016619
0
0
0.010838
0
0.022222
1
0.111111
false
0
0.111111
0
0.311111
0.022222
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
4864510c82d113edff63bd2fc60fd0a6446ec69a
3,992
py
Python
hard-gists/8814190/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/8814190/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/8814190/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
# Read from Rigol DS1000 scope # version 1 # 2013-12-27 import visa import os, serial import numpy as np import pylab as plt import time class Scope: def __init__(self,address,timeOut=40,chunkSize=1024000): self.device = visa.instrument(address,timeout=timeOut,chunk_size=chunkSize) self.id = self...
34.119658
99
0.558617
464
3,992
4.752155
0.338362
0.117914
0.088435
0.050794
0.471202
0.461224
0.461224
0.430385
0.430385
0.430385
0
0.02749
0.298347
3,992
117
100
34.119658
0.759729
0.04008
0
0.325
0
0
0.124301
0.00559
0
0
0
0
0
0
null
null
0
0.0625
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
486bc3c3b2a409cbb16fed6cd53651cd1eaed647
7,081
py
Python
src/server/data_access/user_data_access.py
chickenPopcorn/food-truck-inc
ed45fe4be9a4256a24d75e540c66e0605c6f3329
[ "MIT" ]
1
2016-10-17T01:10:02.000Z
2016-10-17T01:10:02.000Z
src/server/data_access/user_data_access.py
chickenPopcorn/food-truck-inc
ed45fe4be9a4256a24d75e540c66e0605c6f3329
[ "MIT" ]
11
2016-10-16T11:36:11.000Z
2016-12-28T03:15:01.000Z
src/server/data_access/user_data_access.py
chickenPopcorn/food-truck-inc
ed45fe4be9a4256a24d75e540c66e0605c6f3329
[ "MIT" ]
1
2016-10-17T01:10:03.000Z
2016-10-17T01:10:03.000Z
import bcrypt from forms import LoginForm, ChangePasswordForm, UpdateProfileForm, DeleteForm, VendorRegisterForm, CustomerRegisterForm class UserDataAccess: def __init__(self, users): self.users = users def authorize(self, requestForm): user, status, message = {}, False, "" fo...
40.00565
121
0.504166
625
7,081
5.6
0.1824
0.074286
0.026
0.032
0.435429
0.418857
0.343143
0.298857
0.282286
0.252286
0
0.001164
0.393588
7,081
177
122
40.00565
0.813926
0.00805
0
0.472222
0
0
0.122957
0
0
0
0
0.00565
0
1
0.076389
false
0.125
0.013889
0.020833
0.180556
0
0
0
0
null
0
0
0
0
0
0
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
486ce800d4cb7cf51df15ce36e547ae8d1b0ef8a
1,081
py
Python
Harvard-CS50x/pset6/sentiments/analyzer.py
Sam-Gao-Xin/Courses-
122810e56024e6e72d378317b4f98c5a9d97e5f8
[ "Apache-2.0" ]
622
2018-07-17T09:05:41.000Z
2022-03-29T02:57:02.000Z
Harvard-CS50x/pset6/sentiments/analyzer.py
thientvse/Courses-
263ff4680ed1dfd253be3652f7f13ad707af1a36
[ "Apache-2.0" ]
21
2019-11-10T02:06:09.000Z
2022-01-22T23:54:11.000Z
Harvard-CS50x/pset6/sentiments/analyzer.py
thientvse/Courses-
263ff4680ed1dfd253be3652f7f13ad707af1a36
[ "Apache-2.0" ]
906
2018-07-17T09:05:43.000Z
2022-03-31T12:55:49.000Z
import nltk class Analyzer(): """Implements sentiment analysis.""" def __init__(self, positives, negatives): """Initialize Analyzer.""" self.negatives=[] self.positives=[] with open ("negative-words.txt") as negative: for line in negative: ...
30.027778
63
0.501388
101
1,081
5.326733
0.425743
0.096654
0.037175
0.070632
0.085502
0
0
0
0
0
0
0.004552
0.390379
1,081
35
64
30.885714
0.811836
0.102683
0
0.086957
0
0
0.043573
0
0
0
0
0.028571
0
1
0.086957
false
0
0.043478
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
48742a3e8cf5fc80393c79210f5da626b84e1058
6,441
py
Python
cmd.py
OldGameBox/TeleCMD
8881c00e810a652820631b5cb81b075eb5bf3415
[ "MIT" ]
null
null
null
cmd.py
OldGameBox/TeleCMD
8881c00e810a652820631b5cb81b075eb5bf3415
[ "MIT" ]
null
null
null
cmd.py
OldGameBox/TeleCMD
8881c00e810a652820631b5cb81b075eb5bf3415
[ "MIT" ]
null
null
null
import telebot import subprocess import os import atexit import datetime mode=2 users = [] def load_users(): file = open("users.cfg","r") for line in file.readlines(): users.append(line[0:len(line)-1]) print(users) file.close() load_users() bot = telebot.TeleBot("") time = dat...
34.816216
152
0.599596
828
6,441
4.571256
0.164251
0.116248
0.107001
0.164069
0.695112
0.630383
0.596037
0.569617
0.569617
0.569617
0
0.006544
0.264555
6,441
184
153
35.005435
0.792485
0.035398
0
0.52795
0
0.006211
0.154485
0.005648
0
0
0
0
0
1
0.074534
false
0
0.031056
0
0.10559
0.124224
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
487aa8ae1f7b0fa069ed7ca204f9487331d13652
5,508
py
Python
server/supply/migrations/0001_initial.py
ayame-q/PersonalSupplyManager
9bfaaf3a816a8ead7c815f941290524e42e45466
[ "MIT" ]
null
null
null
server/supply/migrations/0001_initial.py
ayame-q/PersonalSupplyManager
9bfaaf3a816a8ead7c815f941290524e42e45466
[ "MIT" ]
null
null
null
server/supply/migrations/0001_initial.py
ayame-q/PersonalSupplyManager
9bfaaf3a816a8ead7c815f941290524e42e45466
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-06 16:55 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import uuid class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(...
56.204082
182
0.62382
601
5,508
5.552413
0.234609
0.10878
0.044951
0.056937
0.661372
0.62721
0.498052
0.436919
0.378783
0.378783
0
0.008201
0.225127
5,508
97
183
56.783505
0.77343
0.00817
0
0.444444
1
0
0.133675
0.014832
0
0
0
0
0
1
0
false
0
0.055556
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
487dae5be1095ee760d6a31f2b1ef99ceaa684a0
2,819
py
Python
src/test/testcases/testModifyScom.py
wak-google/sbe
c9fea2e9662bdef548ea4742106b721386240ffe
[ "Apache-2.0" ]
null
null
null
src/test/testcases/testModifyScom.py
wak-google/sbe
c9fea2e9662bdef548ea4742106b721386240ffe
[ "Apache-2.0" ]
null
null
null
src/test/testcases/testModifyScom.py
wak-google/sbe
c9fea2e9662bdef548ea4742106b721386240ffe
[ "Apache-2.0" ]
null
null
null
# IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/test/testcases/testModifyScom.py $ # # OpenPOWER sbe Project # # Contributors Listed Below - COPYRIGHT 2016 # [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not...
28.474747
69
0.593118
337
2,819
4.905045
0.433234
0.015729
0.050817
0.038717
0.287961
0.116152
0.087114
0.073805
0
0
0
0.117787
0.256119
2,819
98
70
28.765306
0.670482
0.363604
0
0.372549
1
0
0.055713
0.014213
0
0
0.175668
0
0
1
0.019608
false
0
0.039216
0
0.058824
0.039216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
487f4e21db981b49bff0be65f6dc985cdd4768d5
12,475
py
Python
Examples/FanFicFare-master/fanficfare/adapters/adapter_efpfanficnet.py
TomNorrie/ePubify
89c89bd22cafdea787f3131ca9cdc8336209ed6c
[ "MIT" ]
null
null
null
Examples/FanFicFare-master/fanficfare/adapters/adapter_efpfanficnet.py
TomNorrie/ePubify
89c89bd22cafdea787f3131ca9cdc8336209ed6c
[ "MIT" ]
null
null
null
Examples/FanFicFare-master/fanficfare/adapters/adapter_efpfanficnet.py
TomNorrie/ePubify
89c89bd22cafdea787f3131ca9cdc8336209ed6c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2012 Fanficdownloader team, 2017 FanFicFare team # # 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 # # Un...
39.983974
262
0.5802
1,468
12,475
4.909401
0.30654
0.037464
0.044401
0.013598
0.22159
0.180519
0.147773
0.132926
0.131678
0.08797
0
0.009391
0.291543
12,475
311
263
40.11254
0.806065
0.280641
0
0.146893
0
0
0.151876
0.023029
0
0
0
0
0
0
null
null
0.028249
0.039548
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
48873835cf267154fddc15177b33e9d62d57e364
482
py
Python
multi-processor-scheduler.py
doughgle/scheduling-algorithms
fb4cebdf22945fd7ae54d9a10e2f2887cebf3a65
[ "Unlicense" ]
null
null
null
multi-processor-scheduler.py
doughgle/scheduling-algorithms
fb4cebdf22945fd7ae54d9a10e2f2887cebf3a65
[ "Unlicense" ]
null
null
null
multi-processor-scheduler.py
doughgle/scheduling-algorithms
fb4cebdf22945fd7ae54d9a10e2f2887cebf3a65
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python from multiprocessing import Pool from simulator import * if __name__ == '__main__': input_file = 'input.txt' process_list = read_input(input_file) num = 4 p = Pool(processes=num) results = p.map(FCFS_scheduling, [process_list[i::num] for i in range(num)]) print "average_wa...
37.076923
118
0.686722
77
482
4.090909
0.584416
0.057143
0.038095
0.08254
0
0
0
0
0
0
0
0.010152
0.182573
482
12
119
40.166667
0.78934
0.041494
0
0
0
0
0.101952
0.045553
0
0
0
0
0
0
null
null
0
0.2
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4887a228c4ae1f12ecae750cb80ec642bc2ecb73
33,011
py
Python
numpy/ma/tests/test_old_ma.py
qpython-android/QPypi-numpy
4e5fa5c2e01bb6250537fe44f426f878a240bcc7
[ "BSD-3-Clause" ]
7
2016-11-29T18:01:53.000Z
2018-08-21T09:45:15.000Z
numpy/ma/tests/test_old_ma.py
plaes/numpy
209866bc55eee56e92692307c4437af024bae87d
[ "BSD-3-Clause" ]
1
2016-06-28T14:03:59.000Z
2016-06-28T14:03:59.000Z
numpy/ma/tests/test_old_ma.py
plaes/numpy
209866bc55eee56e92692307c4437af024bae87d
[ "BSD-3-Clause" ]
3
2016-10-19T00:41:31.000Z
2020-03-01T04:57:36.000Z
import numpy import types from numpy.ma import * from numpy.core.numerictypes import float32 from numpy.ma.core import umath from numpy.testing import * pi = numpy.pi def eq(v,w, msg=''): result = allclose(v,w) if not result: print """Not eq:%s %s ---- %s"""% (msg, str(v), str(w)) return result cl...
37.943678
81
0.516525
5,016
33,011
3.369219
0.084928
0.149941
0.115503
0.053432
0.495976
0.408698
0.354497
0.27426
0.246272
0.206154
0
0.074114
0.300657
33,011
869
82
37.987342
0.657931
0.046166
0
0.192673
0
0
0.032412
0
0
0
0
0
0.179104
0
null
null
0
0.009498
null
null
0.002714
0
0
0
null
0
0
0
0
0
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
6f7eb8faa3503164f8e35bc8cafae068f7accc84
7,513
py
Python
createvoc.py
woodspower/socr
75462c12734b2aa7868f06e48ac3e41a16b5e423
[ "Apache-2.0" ]
null
null
null
createvoc.py
woodspower/socr
75462c12734b2aa7868f06e48ac3e41a16b5e423
[ "Apache-2.0" ]
null
null
null
createvoc.py
woodspower/socr
75462c12734b2aa7868f06e48ac3e41a16b5e423
[ "Apache-2.0" ]
null
null
null
import os import re import errno from lxml import etree, objectify from PIL import Image import shutil import random class VocCreator: # pascal_label_map.pbtxt format is as below: # "item {\r\n id: 1\r\n name: 'Actor'\r\n}\r\nitem {\r\n id: 2\r\n name: # 'Guider'\r\n}\r\nitem {\r\n id: 3\r\n name: 'Boss'\...
39.542105
118
0.517104
937
7,513
4.129136
0.254002
0.012923
0.023262
0.018093
0.194624
0.158956
0.138796
0.101835
0.101835
0.101835
0
0.022379
0.339811
7,513
189
119
39.751323
0.757661
0.21323
0
0.152672
0
0.007634
0.081207
0.009281
0
0
0
0
0.015267
0
null
null
0
0.053435
null
null
0.022901
0
0
0
null
0
0
0
0
0
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
6f83a59d15a21a0af8d0328381072bf8f4b2ff3b
799
py
Python
src/aleph/web/controllers/aggregates.py
aleph-im/py-aleph
a18beb8b4eba36887ca85054ed2471c3680bdfde
[ "MIT" ]
null
null
null
src/aleph/web/controllers/aggregates.py
aleph-im/py-aleph
a18beb8b4eba36887ca85054ed2471c3680bdfde
[ "MIT" ]
null
null
null
src/aleph/web/controllers/aggregates.py
aleph-im/py-aleph
a18beb8b4eba36887ca85054ed2471c3680bdfde
[ "MIT" ]
null
null
null
from aiohttp import web from aleph.model.messages import get_computed_address_aggregates async def address_aggregate(request): """Returns the aggregate of an address. TODO: handle filter on a single key, or even subkey. """ address = request.match_info["address"] keys = request.query.get("keys"...
27.551724
75
0.685857
103
799
5.213592
0.524272
0.040968
0.067039
0.104283
0.108007
0
0
0
0
0
0
0.006279
0.202753
799
28
76
28.535714
0.836735
0
0
0
0
0
0.096403
0
0
0
0
0.035714
0
1
0
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6f84769bbd158ac8837fd39be5455f6415a5ecb6
453
py
Python
leetcode/94. Inorder/solution.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
leetcode/94. Inorder/solution.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
leetcode/94. Inorder/solution.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
class Solution: solution = [] def inorderTraversal(self, root: TreeNode) -> List[int]: if (root == None): return self.solution = [] self.inorderHelper(root) return self.solution def inorderHelper(self, root: TreeNode): if (root == None): ...
26.647059
60
0.560706
44
453
5.772727
0.386364
0.11811
0.248032
0.125984
0.15748
0
0
0
0
0
0
0
0.331126
453
16
61
28.3125
0.838284
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6f88adf090fdb3cbed9ca65e143950de3803e5d6
2,577
py
Python
social/twtr/tests.py
carloocchiena/django_boilerplate
5024ca85ce3469144c5505ae090c69ef98df2838
[ "MIT" ]
1
2022-03-31T21:40:45.000Z
2022-03-31T21:40:45.000Z
social/twtr/tests.py
carloocchiena/django_boilerplate
5024ca85ce3469144c5505ae090c69ef98df2838
[ "MIT" ]
null
null
null
social/twtr/tests.py
carloocchiena/django_boilerplate
5024ca85ce3469144c5505ae090c69ef98df2838
[ "MIT" ]
1
2022-03-31T20:58:37.000Z
2022-03-31T20:58:37.000Z
import unittest from django.contrib.auth import get_user_model from django.contrib.auth.models import User from django.test import Client, TestCase, TransactionTestCase from . import models # Create your tests here. TEST_USER = { 'username': 'caxthetyx', 'password': 'bvQ7%rpxz2*4o2', } USER_AGENT = { 'w...
37.897059
133
0.647652
318
2,577
5.066038
0.305031
0.074488
0.05959
0.04221
0.435754
0.435754
0.378647
0.378647
0.358163
0.358163
0
0.05037
0.214203
2,577
68
134
37.897059
0.745185
0.031044
0
0.301887
0
0.075472
0.257857
0
0
0
0
0
0.09434
1
0.113208
false
0.132075
0.09434
0
0.264151
0
0
0
0
null
0
0
0
0
0
0
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
6f88d16c76593e536164be60590af2a639cb870b
578
py
Python
utils/model_trainer.py
heroclass728/alpr_egyptian
a94e287245595233100b4f3683e68dcc25f8c11b
[ "CNRI-Python" ]
null
null
null
utils/model_trainer.py
heroclass728/alpr_egyptian
a94e287245595233100b4f3683e68dcc25f8c11b
[ "CNRI-Python" ]
null
null
null
utils/model_trainer.py
heroclass728/alpr_egyptian
a94e287245595233100b4f3683e68dcc25f8c11b
[ "CNRI-Python" ]
null
null
null
from darkflow.net.build import TFNet if __name__ == '__main__': options = {"model": "/media/mensa/Data/Task/EgyALPR/darkflow/cfg/yolo.cfg", "load": "/media/mensa/Data/Task/EgyALPR/darkflow/bin/yolo.weights", "batch": 8, "epoch": 100, "gpu": 0.9, ...
34
83
0.574394
67
578
4.761194
0.552239
0.125392
0.175549
0.225705
0.45768
0.45768
0.250784
0
0
0
0
0.014184
0.268166
578
16
84
36.125
0.739953
0
0
0
0
0
0.458478
0.368512
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
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
6f8c930d5a0aacdff68fcf57dd7c6b07df56f63f
3,682
py
Python
Generate website content.py
RafaelMostert/lofar-pink-visualization-tool
b6b2d60ae8ff63b9f8f37bb6509014ce53c6d348
[ "BSD-3-Clause" ]
1
2020-05-08T21:22:26.000Z
2020-05-08T21:22:26.000Z
Generate website content.py
RafaelMostert/lofar-pink-visualization-tool
b6b2d60ae8ff63b9f8f37bb6509014ce53c6d348
[ "BSD-3-Clause" ]
null
null
null
Generate website content.py
RafaelMostert/lofar-pink-visualization-tool
b6b2d60ae8ff63b9f8f37bb6509014ce53c6d348
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Generate website content import pinklib.website as web import os from astropy.stats import median_absolute_deviation import numpy as np import importlib import pandas as pd # INPUT PARAMETERS # Name of the binary file cutouts_bin_name = 'cutouts_preprocessed' # SOM para...
37.958763
144
0.770234
551
3,682
4.802178
0.3049
0.037415
0.029478
0.026455
0.325397
0.289872
0.185941
0.185941
0.123205
0.123205
0
0.030716
0.142314
3,682
96
145
38.354167
0.807156
0.155894
0
0.039216
1
0
0.134067
0.059262
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0.078431
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
6f95078752a7d323bcd1bd81af7f0c92f7bbefc4
460
py
Python
polls/migrations/0011_alter_poll_public_key.py
miladgharibi/pollarita
b5d8154652d2b26a28f05b1745cd13e383cec40e
[ "MIT" ]
5
2022-02-04T19:23:26.000Z
2022-02-26T10:15:25.000Z
polls/migrations/0011_alter_poll_public_key.py
miladgharibi/pollarita
b5d8154652d2b26a28f05b1745cd13e383cec40e
[ "MIT" ]
null
null
null
polls/migrations/0011_alter_poll_public_key.py
miladgharibi/pollarita
b5d8154652d2b26a28f05b1745cd13e383cec40e
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-26 15:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('polls', '0010_alter_poll_anonymous_voters_and_more'), ] operations = [ migrations.AlterField( model_name='poll', nam...
24.210526
106
0.630435
53
460
5.301887
0.867925
0
0
0
0
0
0
0
0
0
0
0.066474
0.247826
460
18
107
25.555556
0.745665
0.097826
0
0
1
0
0.186441
0.099274
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
6f9cfe62f09cd4ccbcdc0d1b5296e5eb970ab0de
1,961
py
Python
backend/pharmacy/models.py
FreakStar03/MedAlthea
c11f6239baba9dc9514fc9b88adabfcab05f3d99
[ "BSD-3-Clause" ]
1
2022-01-28T13:47:59.000Z
2022-01-28T13:47:59.000Z
backend/pharmacy/models.py
FreakStar03/MedAlthea
c11f6239baba9dc9514fc9b88adabfcab05f3d99
[ "BSD-3-Clause" ]
null
null
null
backend/pharmacy/models.py
FreakStar03/MedAlthea
c11f6239baba9dc9514fc9b88adabfcab05f3d99
[ "BSD-3-Clause" ]
null
null
null
# pylint: disable=missing-module-docstring # # Copyright (C) 2022 by YadavGulshan@Github, < https://github.com/YadavGulshan >. # # This file is part of < https://github.com/Yadavgulshan/pharmaService > project, # and is released under the "BSD 3-Clause License Agreement". # Please see < https://github.com/YadavGulshan/...
37
82
0.72718
253
1,961
5.55336
0.517787
0.038434
0.051246
0.068327
0.36726
0.27331
0.27331
0.27331
0.27331
0.203559
0
0.019465
0.161652
1,961
52
83
37.711538
0.835158
0.216726
0
0.285714
0
0
0.027821
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6fa530f87ee92c8b64818fc7bc69e79b55b80391
1,262
py
Python
app/tasker/tasks/models.py
jaredlockhart/django-htmx-todo
126c1f64f692321550c28c59b5e407d4464c7a88
[ "CC0-1.0" ]
4
2021-07-18T16:18:04.000Z
2022-02-14T04:06:05.000Z
app/tasker/tasks/models.py
bharathjinka09/django-htmx-todo
126c1f64f692321550c28c59b5e407d4464c7a88
[ "CC0-1.0" ]
null
null
null
app/tasker/tasks/models.py
bharathjinka09/django-htmx-todo
126c1f64f692321550c28c59b5e407d4464c7a88
[ "CC0-1.0" ]
4
2021-04-11T11:44:10.000Z
2021-09-08T16:41:14.000Z
from django.db import models from django.db.models.query import QuerySet from django.urls import reverse class TaskList(models.Model): name = models.CharField(max_length=255) slug = models.CharField(max_length=255) tasks: QuerySet["Task"] class Meta: verbose_name = "Task List" verbos...
25.24
69
0.660856
159
1,262
5.062893
0.339623
0.054658
0.067081
0.089441
0.409938
0.31677
0.201242
0.134161
0.134161
0.134161
0
0.00924
0.228209
1,262
49
70
25.755102
0.817248
0
0
0.305556
0
0
0.058637
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0.166667
0.694444
0
0
0
0
null
0
0
0
0
0
0
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
6fa9e41675eb78f9ada3af52d08103afb0dbeb75
8,791
py
Python
src/drivers/misc/udp.py
isys-vision/rosweld_drivers
aaab5026be950f6dada30fdaccb9ad7f0a841038
[ "Apache-2.0" ]
2
2019-12-24T13:28:25.000Z
2022-03-03T17:06:04.000Z
src/drivers/misc/udp.py
isys-vision/rosweld_drivers
aaab5026be950f6dada30fdaccb9ad7f0a841038
[ "Apache-2.0" ]
null
null
null
src/drivers/misc/udp.py
isys-vision/rosweld_drivers
aaab5026be950f6dada30fdaccb9ad7f0a841038
[ "Apache-2.0" ]
3
2021-02-08T17:42:27.000Z
2021-08-03T14:39:46.000Z
""" ROSWELD Version 0.0.1, March 2019 http://rosin-project.eu/ftp/rosweld Copyright (c) 2019 PPM Robotics AS This library is part of ROSWELD project, the Focused Technical Project ROSWELD - ROS based framework for planning, monitoring and control of multi-pass robot welding is co-financed by the EU project ROSIN (www...
32.680297
101
0.552269
1,023
8,791
4.697947
0.298143
0.019975
0.01623
0.009363
0.084062
0.054307
0.034124
0.017478
0
0
0
0.012021
0.356501
8,791
268
102
32.802239
0.837546
0.141736
0
0.157407
0
0
0.04812
0
0
0
0
0
0
0
null
null
0
0.064815
null
null
0.009259
0
0
0
null
0
0
0
0
0
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
6fae8adab3fc73547c08924d1a0f57d656d8e0a2
4,130
py
Python
cognateLanguage_AutoSentence.py
hchiam/cognateLanguage
8009b88c3dbd8db8a363cb06a269fab601063e7a
[ "MIT" ]
5
2017-09-06T16:11:19.000Z
2021-09-27T21:06:37.000Z
cognateLanguage_AutoSentence.py
hchiam/cognateLanguage
8009b88c3dbd8db8a363cb06a269fab601063e7a
[ "MIT" ]
5
2017-04-28T16:44:54.000Z
2017-08-14T19:00:44.000Z
cognateLanguage_AutoSentence.py
hchiam/cognateLanguage
8009b88c3dbd8db8a363cb06a269fab601063e7a
[ "MIT" ]
null
null
null
# automatically generates sentences based on source words # from output_shortlist.txt # with a=action (verb), d=descriptor (adjective/adverb), t=thing (noun/pronoun), c=connector (preposition) import random filename1 = 'output_shortlist.txt' # get lines of file into a list: with open(filename1,'r') as f1: data =...
33.04
132
0.623729
450
4,130
5.702222
0.368889
0.059236
0.023383
0.017147
0.253702
0.240452
0.240452
0.213172
0.213172
0.213172
0
0.036847
0.24431
4,130
124
133
33.306452
0.785325
0.184988
0
0.375
1
0
0.116856
0
0
0
0
0
0
1
0.045455
false
0
0.011364
0
0.102273
0.215909
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
6fb8fb114f56deef708f4f9362906ca9d8f435c5
58,095
py
Python
rtk/hardware/__gui/gtk/IntegratedCircuit.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
null
null
null
rtk/hardware/__gui/gtk/IntegratedCircuit.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
null
null
null
rtk/hardware/__gui/gtk/IntegratedCircuit.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
2
2020-04-03T04:14:42.000Z
2021-02-22T05:30:35.000Z
#!/usr/bin/env python """ ############################################################ Integrated Circuit Package Component Specific Work Book View ############################################################ """ # -*- coding: utf-8 -*- # # rtk.hardware.gui.gtk.IntegratedCircuit.py is part of The RTK Project # #...
47.155032
274
0.573715
6,763
58,095
4.671595
0.090788
0.029025
0.013135
0.021017
0.786194
0.756599
0.673261
0.64737
0.602551
0.581756
0
0.019213
0.319115
58,095
1,231
275
47.193339
0.779502
0.141768
0
0.595923
0
0.005995
0.119192
0.014534
0
0
0
0.000812
0
1
0.015588
false
0
0.020384
0
0.052758
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6fc5d5c7edad550c6cca62b688093293eab6827e
824
py
Python
xbox/sg/utils/events.py
rako77/xbox-smartglass-core-python
e01a5413c788bbbbd62a631b170a789fe19d77dc
[ "MIT" ]
null
null
null
xbox/sg/utils/events.py
rako77/xbox-smartglass-core-python
e01a5413c788bbbbd62a631b170a789fe19d77dc
[ "MIT" ]
null
null
null
xbox/sg/utils/events.py
rako77/xbox-smartglass-core-python
e01a5413c788bbbbd62a631b170a789fe19d77dc
[ "MIT" ]
null
null
null
""" Wrapper around gevent's greenlets """ import gevent class Event(object): def __init__(self, green=False): self.handlers = [] self.green = green def add(self, handler): if not callable(handler): raise TypeError("Handler should be callable") self.handlers.append(...
23.542857
57
0.581311
91
824
5.087912
0.395604
0.12959
0.069114
0.090713
0
0
0
0
0
0
0
0
0.313107
824
34
58
24.235294
0.818021
0.040049
0
0.083333
0
0
0.033206
0
0
0
0
0
0
1
0.25
false
0
0.041667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1