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
38dad5cb06aba3dc3692e137ec97ea7f065c4ce9
1,306
py
Python
scripts/PIRSensor.py
sradevski/HomeAutomate
ad80a26cc00cf94e585b1fc14cfcb56a051b9837
[ "MIT" ]
null
null
null
scripts/PIRSensor.py
sradevski/HomeAutomate
ad80a26cc00cf94e585b1fc14cfcb56a051b9837
[ "MIT" ]
null
null
null
scripts/PIRSensor.py
sradevski/HomeAutomate
ad80a26cc00cf94e585b1fc14cfcb56a051b9837
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time import come_home import radio_lights import remote_core as core sensor = 23 GPIO.setmode(GPIO.BCM) GPIO.setup(sensor, GPIO.IN, GPIO.PUD_DOWN) #Denotes when to start checking if the kitchen lights should be turned on or not. turn_on_hour = 18 turn_off_hour = 8 last_movement_time = ...
32.65
86
0.680704
186
1,306
4.516129
0.349462
0.066667
0.07619
0.104762
0.384524
0.302381
0.302381
0.214286
0.214286
0
0
0.008671
0.205207
1,306
39
87
33.487179
0.800578
0.061256
0
0.21875
0
0
0.075918
0
0
0
0
0
0
0
null
null
0
0.15625
null
null
0.0625
0
0
0
null
0
0
0
0
0
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
38e2aba55d90d3c40463cdef9ac5ee5c3c26d9fe
2,682
py
Python
src/emmental/scorer.py
vishalbelsare/emmental
040ff13752a8443485abe5f664d7e7df2f30f894
[ "MIT" ]
75
2019-06-22T23:40:20.000Z
2021-06-05T19:12:15.000Z
src/emmental/scorer.py
vishalbelsare/emmental
040ff13752a8443485abe5f664d7e7df2f30f894
[ "MIT" ]
38
2019-07-02T21:05:28.000Z
2021-03-27T08:55:05.000Z
src/emmental/scorer.py
vishalbelsare/emmental
040ff13752a8443485abe5f664d7e7df2f30f894
[ "MIT" ]
20
2019-07-11T15:10:46.000Z
2021-05-09T14:03:53.000Z
"""Emmental scorer.""" import logging from functools import partial from typing import Callable, Dict, List, Union from numpy import ndarray from emmental.metrics import METRICS from emmental.utils.utils import array_to_numpy logger = logging.getLogger(__name__) class Scorer(object): """A class to score tasks....
30.827586
87
0.563386
293
2,682
5.054608
0.341297
0.044564
0.032411
0.04659
0
0
0
0
0
0
0
0.001141
0.346383
2,682
86
88
31.186047
0.843697
0.215884
0
0.211538
0
0
0.025176
0
0
0
0
0
0
1
0.038462
false
0.057692
0.115385
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
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
38e5451c8f690adf284c81388e18a43ce33c742f
349
py
Python
app/api/serializers/post.py
parkgeonhu/drf-boilerplate
6de149cb8e7221b134520be78ffc3b295fe680ad
[ "MIT" ]
1
2022-03-02T20:04:02.000Z
2022-03-02T20:04:02.000Z
app/api/serializers/post.py
parkgeonhu/drf-boilerplate
6de149cb8e7221b134520be78ffc3b295fe680ad
[ "MIT" ]
null
null
null
app/api/serializers/post.py
parkgeonhu/drf-boilerplate
6de149cb8e7221b134520be78ffc3b295fe680ad
[ "MIT" ]
null
null
null
from app.models import * from rest_framework import serializers from .user import * class PostSerializer(serializers.ModelSerializer): author = UserSerializer(read_only=True) def create(self, validated_data): return Post.objects.create(**validated_data) class Meta: model = Post...
23.266667
52
0.690544
38
349
6.131579
0.736842
0.111588
0
0
0
0
0
0
0
0
0
0
0.226361
349
15
53
23.266667
0.862963
0
0
0
0
0
0.02
0
0
0
0
0
0
0
null
null
0
0.3
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
c7f70797dd316fb5a4761705f72d85b064a1901e
8,947
py
Python
tests/test_c_data_model/test_array.py
mrh1997/headlock
720ede7e02681d6466b27ae7fb3958ef8c4a238c
[ "MIT" ]
2
2017-11-09T13:49:57.000Z
2020-03-07T01:29:37.000Z
tests/test_c_data_model/test_array.py
mrh1997/headlock
720ede7e02681d6466b27ae7fb3958ef8c4a238c
[ "MIT" ]
4
2017-12-22T12:27:34.000Z
2020-03-31T07:42:07.000Z
tests/test_c_data_model/test_array.py
mrh1997/headlock
720ede7e02681d6466b27ae7fb3958ef8c4a238c
[ "MIT" ]
null
null
null
import pytest from unittest.mock import patch import headlock.c_data_model as cdm from headlock.address_space.virtual import VirtualAddressSpace @pytest.fixture def carray_type(cint_type, addrspace): return cdm.CArrayType(cint_type, 10, addrspace) class TestCArrayType: def test_init_returnsArrayCProxy(se...
44.959799
97
0.693417
1,159
8,947
5.023296
0.177739
0.091206
0.02628
0.049468
0.390072
0.367571
0.305222
0.261937
0.220027
0.198901
0
0.057187
0.196714
8,947
198
98
45.186869
0.752887
0
0
0.111111
0
0.013072
0.048843
0.023807
0
0
0.017883
0
0.248366
1
0.248366
false
0
0.026144
0.006536
0.300654
0
0
0
0
null
0
0
0
0
0
0
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
2a08b2002501633de44605624f88ff9cfec3f637
1,476
py
Python
src/frequent_phrase_mining/frequent_pattern_mining.py
paperplanet/SegPhrase
bb27b517d8da62017930bf4a529798d129f195d3
[ "Apache-2.0" ]
275
2015-06-14T17:49:45.000Z
2022-03-22T06:55:14.000Z
src/frequent_phrase_mining/frequent_pattern_mining.py
paperplanet/SegPhrase
bb27b517d8da62017930bf4a529798d129f195d3
[ "Apache-2.0" ]
22
2015-09-23T18:32:06.000Z
2021-04-12T09:44:32.000Z
src/frequent_phrase_mining/frequent_pattern_mining.py
paperplanet/SegPhrase
bb27b517d8da62017930bf4a529798d129f195d3
[ "Apache-2.0" ]
99
2015-07-22T14:31:45.000Z
2022-01-15T09:28:06.000Z
from sets import Set def frequentPatternMining(tokens, patternOutputFilename, threshold): dict = {} tokensNumber = len(tokens) for i in xrange(tokensNumber): token = tokens[i] if token == '$': continue if token in dict: dict[token].append(i) else: ...
32.086957
75
0.491192
126
1,476
5.753968
0.388889
0.013793
0.016552
0
0
0
0
0
0
0
0
0.010405
0.413957
1,476
45
76
32.8
0.827746
0.029133
0
0.102564
0
0
0.02095
0
0
0
0
0
0
0
null
null
0
0.025641
null
null
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2a0b0caf46ed8d86fcd26c846d11f05eabdbc4df
951
py
Python
getDomainAge/services/notification.py
ljnath/getDomainAge
a15337433d319597c1a705b49553e31620e00058
[ "MIT" ]
2
2020-03-12T14:43:19.000Z
2021-08-02T06:21:52.000Z
getDomainAge/services/notification.py
ljnath/getDomainAge
a15337433d319597c1a705b49553e31620e00058
[ "MIT" ]
2
2021-05-25T16:01:29.000Z
2021-09-07T19:17:01.000Z
getDomainAge/services/notification.py
ljnath/getDomainAge
a15337433d319597c1a705b49553e31620e00058
[ "MIT" ]
null
null
null
from flask import flash from getDomainAge.models.enums import NotificationCategory class NotificationService: """ Service class for showing all kinds of notificatin in the webpage """ def notify_success(self, message: str) -> None: """ method to show success message :param mes...
28.818182
69
0.62776
103
951
5.76699
0.38835
0.045455
0.070707
0.090909
0.560606
0.560606
0.560606
0.409091
0.409091
0.409091
0
0
0.29653
951
32
70
29.71875
0.887892
0.308097
0
0.25
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2a14660e93211d0ec659673ae308ebd1437c132e
616
py
Python
solutions/reverse-bits.py
Shuailong/Leetcode
153aa7bc1b9ad5bbc503ddd7e0694bd2a17a2b97
[ "MIT" ]
3
2017-05-21T04:28:32.000Z
2019-03-06T03:28:51.000Z
solutions/reverse-bits.py
Shuailong/Leetcode
153aa7bc1b9ad5bbc503ddd7e0694bd2a17a2b97
[ "MIT" ]
null
null
null
solutions/reverse-bits.py
Shuailong/Leetcode
153aa7bc1b9ad5bbc503ddd7e0694bd2a17a2b97
[ "MIT" ]
1
2018-10-28T22:49:40.000Z
2018-10-28T22:49:40.000Z
#!/usr/bin/env python # encoding: utf-8 """ reverse-bits.py Created by Shuailong on 2016-03-02. https://leetcode.com/problems/reverse-bits/. """ class Solution(object): def reverseBits(self, n): """ :type n: int :rtype: int """ res = 0 count = 0 while n:...
15.794872
44
0.470779
71
616
3.971831
0.619718
0.042553
0
0
0
0
0
0
0
0
0
0.067385
0.397727
616
39
45
15.794872
0.692722
0.058442
0
0
0
0
0.019277
0
0
0
0
0
0
0
null
null
0
0
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2a1d180664d81adfceb9047b7b59c0d285a86d23
436
py
Python
setup.py
GuoJing/c3po-grpc-gateway
2fd6c2d872b27e7b4acb5186787de7591b958fdd
[ "MIT" ]
1
2016-04-28T12:49:21.000Z
2016-04-28T12:49:21.000Z
setup.py
GuoJing/c3po-grpc-gateway
2fd6c2d872b27e7b4acb5186787de7591b958fdd
[ "MIT" ]
null
null
null
setup.py
GuoJing/c3po-grpc-gateway
2fd6c2d872b27e7b4acb5186787de7591b958fdd
[ "MIT" ]
null
null
null
from c3po import __version__ from setuptools import setup, find_packages setup( name='c3po', version=__version__, description='A light weight Python gRPC transport layer gateway with tornado named c3po.', author='GuoJing', author_email='soundbbg@gmail.com', license='MIT', url='https://githu...
29.066667
94
0.71789
54
436
5.574074
0.722222
0.079734
0
0
0
0
0
0
0
0
0
0.010899
0.158257
436
14
95
31.142857
0.809264
0
0
0
0
0
0.37844
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
2a1f6ae56404186f98a5b6b21462ed02d68e33b5
4,822
py
Python
pysnmp-with-texts/CISCOSB-SENSORENTMIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCOSB-SENSORENTMIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCOSB-SENSORENTMIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCOSB-SENSORENTMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-SENSORENTMIB # Produced by pysmi-0.3.4 at Wed May 1 12:23:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
107.155556
493
0.793861
513
4,822
7.45614
0.360624
0.047059
0.082353
0.006275
0.282353
0.182222
0.125229
0.125229
0.125229
0.125229
0
0.047189
0.081501
4,822
44
494
109.590909
0.816437
0.069266
0
0
0
0.055556
0.319714
0.009824
0
0
0
0
0
1
0
false
0
0.277778
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2a242802faee5ed89fef94bfe2576a4c6f041eb1
296
py
Python
jsonrpc/__init__.py
yosida95/python-jsonrpc
b3c00705a0d3844d836c1462b6815eb963f3b9a2
[ "BSD-3-Clause" ]
null
null
null
jsonrpc/__init__.py
yosida95/python-jsonrpc
b3c00705a0d3844d836c1462b6815eb963f3b9a2
[ "BSD-3-Clause" ]
1
2021-11-08T08:33:29.000Z
2021-11-08T08:33:29.000Z
jsonrpc/__init__.py
yosida95/python-jsonrpc
b3c00705a0d3844d836c1462b6815eb963f3b9a2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from .client import ( Error, ServerProxy, ) from .transport import ( TCPSocketTransport, UnixDomainSocketTransport, ) __all__ = [ # .client 'Error', 'ServerProxy', # .transport 'TCPSocketTransport', 'UnixDomainSocketTransport', ]
14.8
32
0.625
20
296
9.05
0.6
0.176796
0
0
0
0
0
0
0
0
0
0.004484
0.246622
296
19
33
15.578947
0.807175
0.135135
0
0
0
0
0.234127
0.099206
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
2a2ac6b1d527e06b0bf37b89f26672742b1c7c0b
629
py
Python
mathy_envs/envs/__init__.py
mathy/mathy_envs
41d82cca881ff9d3d3fe576d0e75100116a0e4da
[ "MIT" ]
1
2021-12-06T10:29:40.000Z
2021-12-06T10:29:40.000Z
mathy_envs/envs/__init__.py
mathy/mathy_envs
41d82cca881ff9d3d3fe576d0e75100116a0e4da
[ "MIT" ]
8
2020-09-06T17:17:22.000Z
2021-08-11T20:35:26.000Z
mathy_envs/envs/__init__.py
mathy/mathy_envs
41d82cca881ff9d3d3fe576d0e75100116a0e4da
[ "MIT" ]
null
null
null
from .binomial_distribute import BinomialDistribute from .complex_simplify import ComplexSimplify from .poly_combine_in_place import PolyCombineInPlace from .poly_commute_like_terms import PolyCommuteLikeTerms from .poly_grouping import PolyGroupLikeTerms from .poly_haystack_like_terms import PolyHaystackLikeTerms from...
31.45
59
0.847377
58
629
8.896552
0.465517
0.093023
0.05814
0
0
0
0
0
0
0
0
0
0.122417
629
19
60
33.105263
0.934783
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2a2b684868901d9c40fa481e6665b0bed092605b
1,176
py
Python
measurements/migrations/0003_auto_20200707_1237.py
JakubWolak/blood_pressure_monitor
6ff4d6eeac29543c245b7f18568ead092063b778
[ "CC0-1.0" ]
null
null
null
measurements/migrations/0003_auto_20200707_1237.py
JakubWolak/blood_pressure_monitor
6ff4d6eeac29543c245b7f18568ead092063b778
[ "CC0-1.0" ]
8
2021-03-30T13:48:07.000Z
2022-03-12T00:41:54.000Z
measurements/migrations/0003_auto_20200707_1237.py
JakubWolak/blood_pressure_monitor
6ff4d6eeac29543c245b7f18568ead092063b778
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-07 10:37 from django.db import migrations, models import measurements.validators class Migration(migrations.Migration): dependencies = [ ('measurements', '0002_auto_20200706_1258'), ] operations = [ migrations.AlterField( model_name='me...
39.2
202
0.695578
112
1,176
7.116071
0.419643
0.193225
0.094103
0.109159
0.273526
0.165621
0
0
0
0
0
0.040512
0.202381
1,176
29
203
40.551724
0.809168
0.038265
0
0.391304
1
0
0.135518
0.020372
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2a2e4b285d1b1c84dbb9f3383d33a9bf598c033f
824
py
Python
GGProject/workflow/views.py
VarenTechInternship/greeterguru
25ec5ab138f3f8a50565f412cd97ba7f0fe13ba2
[ "MIT" ]
null
null
null
GGProject/workflow/views.py
VarenTechInternship/greeterguru
25ec5ab138f3f8a50565f412cd97ba7f0fe13ba2
[ "MIT" ]
32
2019-06-21T16:21:53.000Z
2022-02-10T09:35:44.000Z
GGProject/workflow/views.py
VarenTechInternship/GreeterGuru
25ec5ab138f3f8a50565f412cd97ba7f0fe13ba2
[ "MIT" ]
null
null
null
from django.http import Http404, HttpResponse from rest_framework import status from django.views.generic import View from rest_framework.permissions import IsAdminUser, AllowAny from django.views.generic import View from django.shortcuts import render from scripts import adminOptions # View for synchronizing web dat...
29.428571
60
0.751214
105
824
5.828571
0.52381
0.065359
0.055556
0.071895
0.186275
0.117647
0.117647
0
0
0
0
0.013373
0.183252
824
27
61
30.518519
0.895988
0.139563
0
0.222222
0
0
0.043909
0
0
0
0
0
0
1
0.166667
false
0
0.388889
0.055556
0.888889
0
0
0
0
null
0
0
0
0
0
0
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
2a359e90808471e0c81eff37f23806a08b882e09
1,698
py
Python
examples/state_machine_examples/global_timers/global_timer_example_pwm_loop_no_events.py
ckarageorgkaneen/pybpod-api
ebccef800ae1abf3b6a643ff33166fab2096c780
[ "MIT" ]
1
2021-01-18T08:18:22.000Z
2021-01-18T08:18:22.000Z
examples/state_machine_examples/global_timers/global_timer_example_pwm_loop_no_events.py
ckarageorgkaneen/pybpod-api
ebccef800ae1abf3b6a643ff33166fab2096c780
[ "MIT" ]
1
2020-09-18T20:46:11.000Z
2020-12-29T14:55:20.000Z
examples/state_machine_examples/global_timers/global_timer_example_pwm_loop_no_events.py
ckarageorgkaneen/pybpod-api
ebccef800ae1abf3b6a643ff33166fab2096c780
[ "MIT" ]
3
2020-09-12T15:32:11.000Z
2022-03-11T23:08:03.000Z
% Example state matrix: 3 global timers in "loop mode" blink port 1-3 LEDs at different rates. % The timers are triggered in the first state. Next, the state machine goes into a state % where it waits for two events: % 1. Port1In momentarily enters a state that stops global timer 3. Port 3 will stop blinking. % 2. Exit...
56.6
125
0.611307
181
1,698
5.734807
0.441989
0.049133
0.057803
0.078035
0.306358
0.306358
0.202312
0.202312
0.202312
0.202312
0
0.042348
0.207303
1,698
29
126
58.551724
0.728826
0
0
0.185185
0
0
0.334708
0.074249
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2a41abbfadd35d5041538df17fc14e299b3858b8
3,097
py
Python
plugins/trivia/trivia.py
awesomarcus/haaaaaaaah
629bf435c446b92cb576577589f3675642dc1df5
[ "MIT" ]
null
null
null
plugins/trivia/trivia.py
awesomarcus/haaaaaaaah
629bf435c446b92cb576577589f3675642dc1df5
[ "MIT" ]
null
null
null
plugins/trivia/trivia.py
awesomarcus/haaaaaaaah
629bf435c446b92cb576577589f3675642dc1df5
[ "MIT" ]
null
null
null
from threading import Thread import time from plugins.trivia.questions import QuestionGenerator # This class will put itself in a pseudo-while loop that is non-blocking # to the rest of the program. class Question: def __init__(self, q, a): self.text = q self.ans = a class Trivia: def __init__(...
36.011628
104
0.546335
341
3,097
4.938416
0.334311
0.041568
0.028504
0.039192
0.233967
0.218527
0.168646
0.168646
0.118765
0.054632
0
0.010579
0.359057
3,097
85
105
36.435294
0.837783
0.134001
0
0.361111
0
0
0.058161
0
0
0
0
0
0
1
0.125
false
0.083333
0.041667
0.013889
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2a42e051ece206dc1a6d9d3a0c3c243d324e62ac
996
py
Python
setupext/sdist.py
theHamsta/jpype
2ea0c56751598f0ce47d1c3be9ac48b4966d3e4a
[ "Apache-2.0" ]
1
2020-01-03T06:03:14.000Z
2020-01-03T06:03:14.000Z
setupext/sdist.py
theHamsta/jpype
2ea0c56751598f0ce47d1c3be9ac48b4966d3e4a
[ "Apache-2.0" ]
null
null
null
setupext/sdist.py
theHamsta/jpype
2ea0c56751598f0ce47d1c3be9ac48b4966d3e4a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import warnings import distutils from distutils.dir_util import copy_tree, remove_tree from setuptools.command.sdist import sdist from setuptools import Extension # Customization of the sdist class BuildSourceDistribution(sdist): """ Override some behavior on sdist ...
29.294118
83
0.672691
134
996
4.932836
0.514925
0.027231
0.04236
0
0
0
0
0
0
0
0
0.001321
0.23996
996
33
84
30.181818
0.871863
0.258032
0
0
0
0
0.134454
0
0
0
0
0
0
1
0.052632
false
0
0.368421
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
0
0
0
1
0
0
0
0
1
2a432355379cb683aecfb17fa84cfcdcf809eca4
2,322
py
Python
src/ezdxf/render/dimension.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
2
2021-07-28T03:52:02.000Z
2021-07-31T05:08:11.000Z
src/ezdxf/render/dimension.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
1
2020-04-28T17:52:26.000Z
2020-10-07T01:28:56.000Z
src/ezdxf/render/dimension.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
1
2021-07-31T05:08:12.000Z
2021-07-31T05:08:12.000Z
# Created: 28.12.2018 # Copyright (c) 2018-2020, Manfred Moitzi # License: MIT License from typing import TYPE_CHECKING from ezdxf.math import UCS from ezdxf.lldxf.const import DXFValueError from ezdxf.entities.dimstyleoverride import DimStyleOverride from .dim_linear import LinearDimension from .dim_radius import Rad...
40.736842
97
0.686908
248
2,322
6.379032
0.278226
0.11378
0.11378
0.094817
0.388116
0.388116
0.290139
0.290139
0.290139
0.290139
0
0.013676
0.212748
2,322
56
98
41.464286
0.851751
0.099483
0
0.076923
0
0
0.116908
0.010145
0
0
0
0
0
1
0.179487
false
0
0.205128
0
0.641026
0
0
0
0
null
0
0
0
0
0
0
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
2a46c350e84c9f1e86a896323945d5590e4dba3d
541
py
Python
flask/templates/app/views.py
telliott99/Pi
d5cf2889e90172c9fe7dc57ab100031d807a99b4
[ "CNRI-Python", "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
flask/templates/app/views.py
telliott99/Pi
d5cf2889e90172c9fe7dc57ab100031d807a99b4
[ "CNRI-Python", "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
flask/templates/app/views.py
telliott99/Pi
d5cf2889e90172c9fe7dc57ab100031d807a99b4
[ "CNRI-Python", "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
from flask import render_template, url_for from app import app script_list = ['demo', 'format_DNA', 'translate', 'extra_sites'] default_choice = 'format_DNA' def render_index_template(): return render_template( "index.html", script_list...
23.521739
42
0.602588
60
541
5.183333
0.5
0.096463
0.122187
0
0
0
0
0
0
0
0
0
0.28281
541
22
43
24.590909
0.801546
0.066543
0
0
0
0
0.133201
0
0
0
0
0
0
1
0.125
false
0
0.125
0.125
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
2a4c048af9adf9820eed5e0fd3ac886d8747608b
777
py
Python
invoice/migrations/0016_expensegroup.py
pickleshb/PyInvoice
49c54fdcba824423d28c339e26b27977be94bb3b
[ "MIT" ]
2
2019-08-29T21:32:19.000Z
2019-12-03T16:57:48.000Z
invoice/migrations/0016_expensegroup.py
pickleshb/PyInvoice
49c54fdcba824423d28c339e26b27977be94bb3b
[ "MIT" ]
19
2017-06-27T19:02:36.000Z
2019-02-10T14:00:42.000Z
invoice/migrations/0016_expensegroup.py
harry-bridge/PyInvoice
49c54fdcba824423d28c339e26b27977be94bb3b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2018-01-03 13:56 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('invoice', '0015_auto_20180102_0048'), ] operations...
31.08
159
0.629344
87
777
5.45977
0.678161
0.050526
0.058947
0.092632
0
0
0
0
0
0
0
0.058923
0.235521
777
24
160
32.375
0.740741
0.087516
0
0
1
0
0.109065
0.032578
0
0
0
0
0
1
0
false
0
0.176471
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2a4d67246ab28927461d2cade67b1457ade90c9d
962
py
Python
setup.py
whit537/httpy
b049831c9118874fbf7e51245f668a7fd8ecf694
[ "Unlicense" ]
null
null
null
setup.py
whit537/httpy
b049831c9118874fbf7e51245f668a7fd8ecf694
[ "Unlicense" ]
null
null
null
setup.py
whit537/httpy
b049831c9118874fbf7e51245f668a7fd8ecf694
[ "Unlicense" ]
null
null
null
from distutils.core import setup classifiers = [ 'Development Status :: 3 - Alpha' , 'Intended Audience :: Developers' , 'License :: OSI Approved :: BSD License' , 'Natural Language :: English' , 'Operating System :: MacOS :: MacOS X' , 'Operating System :: Microsoft :: Windows' , 'Operating System ::...
31.032258
76
0.615385
100
962
5.89
0.64
0.101868
0.081494
0.101868
0.081494
0
0
0
0
0
0
0.001344
0.226611
962
30
77
32.066667
0.790323
0
0
0
0
0
0.626819
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2a4fb2f0d547e8f52378e777f5cdf78e80c1c88e
3,452
py
Python
test/map_optimizer.py
fritzo/kazoo
7281fe382b98ec81a0e223bfc76c49749543afdb
[ "MIT" ]
3
2015-04-29T11:38:29.000Z
2018-08-31T01:32:13.000Z
test/map_optimizer.py
fritzo/kazoo
7281fe382b98ec81a0e223bfc76c49749543afdb
[ "MIT" ]
null
null
null
test/map_optimizer.py
fritzo/kazoo
7281fe382b98ec81a0e223bfc76c49749543afdb
[ "MIT" ]
null
null
null
#!/usr/bin/python from math import * from scipy import * #from matplotlib import pyplot #from scipy import linalg import main #----( commands )------------------------------------------------------------- @main.command def project_unif (X = 3, Y = 2): 'projects dJ matrix via inclusion-exclusion, WRT J metric' J...
20.795181
78
0.527231
581
3,452
3.113597
0.175559
0.033168
0.039801
0.033168
0.568823
0.531233
0.531233
0.520177
0.511332
0.511332
0
0.013894
0.270278
3,452
165
79
20.921212
0.704248
0.07416
0
0.675214
0
0
0.198912
0
0
0
0
0
0
0
null
null
0
0.034188
null
null
0.316239
0
0
0
null
0
0
0
0
0
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
2a585a1195bf81f5f855065e202c112ab1dd05ac
181
py
Python
Python/Set .add()/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
2
2019-08-07T19:58:20.000Z
2019-08-27T00:06:09.000Z
Python/Set .add()/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
1
2020-06-11T19:09:48.000Z
2020-06-11T19:09:48.000Z
Python/Set .add()/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
7
2019-08-27T00:06:11.000Z
2021-12-11T10:01:45.000Z
#author SANKALP SAXENA # Enter your code here. Read input from STDIN. Print output to STDOUT n = int(input()) s = set() for i in range(0, n) : s.add(input()) print(len(s))
16.454545
69
0.646409
32
181
3.65625
0.8125
0
0
0
0
0
0
0
0
0
0
0.007042
0.21547
181
10
70
18.1
0.816901
0.502762
0
0
0
0
0
0
0
0
0
0.1
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2a590657be3f5fc466a2f891be025b15aa04c024
5,851
py
Python
Trellis.py
plex1/turbo-code-simulation
426ea613675a7fb7539261781a9a7359bf9f1424
[ "BSD-2-Clause" ]
1
2018-10-15T12:44:59.000Z
2018-10-15T12:44:59.000Z
Trellis.py
plex1/turbo-code-simulation
426ea613675a7fb7539261781a9a7359bf9f1424
[ "BSD-2-Clause" ]
null
null
null
Trellis.py
plex1/turbo-code-simulation
426ea613675a7fb7539261781a9a7359bf9f1424
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python # title : Trellis.py # description : This class generates a trellis based on a trellis definition class. # Parameters such as reduction (radix) can be used to construct the trellis. # author : Felix Arnold # python_version : 3.5.2 import utils class Tr...
40.075342
98
0.595796
843
5,851
3.879004
0.188612
0.06422
0.055046
0.025688
0.353211
0.221407
0.170031
0.170031
0.130887
0.115596
0
0.007453
0.312083
5,851
145
99
40.351724
0.804969
0.284567
0
0.164557
1
0
0
0
0
0
0
0
0
1
0.063291
false
0.012658
0.012658
0.012658
0.126582
0
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
2a5c3e8bdcbce5c3d1004c2c99b025f2465682ac
2,218
py
Python
image_indexer/imageDAO.py
RikEnde/image-indexer
ffade3d618bb8a59d3cca676e46576d05d2bc122
[ "Apache-2.0" ]
2
2015-08-05T12:19:49.000Z
2015-12-17T09:27:16.000Z
image_indexer/imageDAO.py
RikEnde/image-indexer
ffade3d618bb8a59d3cca676e46576d05d2bc122
[ "Apache-2.0" ]
null
null
null
image_indexer/imageDAO.py
RikEnde/image-indexer
ffade3d618bb8a59d3cca676e46576d05d2bc122
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import bson import pymongo class ImageDAO(object): """ Wraps inserts and queries to the images collection As well as some aggregations """ def __init__(self, connection_string='mongodb://localhost', database='pictures', collection='images', upsert=False): connection ...
32.617647
120
0.54734
246
2,218
4.873984
0.45122
0.035029
0.026689
0.028357
0
0
0
0
0
0
0
0.002099
0.355726
2,218
67
121
33.104478
0.836949
0.009017
0
0.136364
0
0
0.087719
0
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.136364
0
0
0
null
0
0
0
0
0
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
2a5db93f973d41e8d3a3643e186a46027b433da5
470
py
Python
aplicaciones_informaticas/backend/migrations/0023_atentionqueue_max_capacity.py
awainer/7539
4c9e7924741c1478fabc68fcd00b010cbf92fed2
[ "Unlicense" ]
null
null
null
aplicaciones_informaticas/backend/migrations/0023_atentionqueue_max_capacity.py
awainer/7539
4c9e7924741c1478fabc68fcd00b010cbf92fed2
[ "Unlicense" ]
null
null
null
aplicaciones_informaticas/backend/migrations/0023_atentionqueue_max_capacity.py
awainer/7539
4c9e7924741c1478fabc68fcd00b010cbf92fed2
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-08 22:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('backend', '0022_auto_20161208_1740'), ] operations = [ migrations.AddField(...
22.380952
58
0.631915
50
470
5.74
0.8
0
0
0
0
0
0
0
0
0
0
0.1
0.255319
470
20
59
23.5
0.72
0.144681
0
0
1
0
0.137845
0.057644
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2a63a1a65a14b44e8f8f1158017dbc31df57608b
690
py
Python
norns/gear/migrations/0007_auto_20180523_2359.py
the-norns/norns
8856626fb6937452c123e4629a5888a49a82c349
[ "MIT" ]
null
null
null
norns/gear/migrations/0007_auto_20180523_2359.py
the-norns/norns
8856626fb6937452c123e4629a5888a49a82c349
[ "MIT" ]
62
2018-05-19T22:18:01.000Z
2018-05-26T00:13:21.000Z
norns/gear/migrations/0007_auto_20180523_2359.py
the-norns/norns
8856626fb6937452c123e4629a5888a49a82c349
[ "MIT" ]
3
2018-05-19T18:54:28.000Z
2018-05-21T02:14:47.000Z
# Generated by Django 2.0.5 on 2018-05-23 23:59 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('gear', '0006_auto_20180522_2102'), ] operations = [ migrations.AlterField( model_name='consumab...
27.6
113
0.626087
76
690
5.592105
0.526316
0.075294
0.098824
0.155294
0.395294
0.244706
0.244706
0.244706
0.244706
0.244706
0
0.059961
0.250725
690
24
114
28.75
0.762089
0.065217
0
0.333333
1
0
0.132193
0.03577
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2a63e55cba558426a4c8c35dd6b9b8165042552f
700
py
Python
month05/Hadoop/day02_course/code/word_count.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month05/Hadoop/day02_course/code/word_count.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month05/Hadoop/day02_course/code/word_count.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
""" 统计文件中每个文件中单词的数量 """ from mrjob.job import MRJob class WordCount(MRJob): # 重写mapper和reducer方法 # def mapper(self, key, value): def mapper(self, _, line): # 参数key:每行行首的偏移量 # 参数value:一行的内容 # mapper的执行次数由文本的行数决定。 # 文件有几行,mapper被调用几次。每次执行的时候,把行首的偏移量、行首的的文本内容传给key(_),value(lin...
23.333333
73
0.624286
73
700
5.849315
0.726027
0.042155
0.06089
0
0
0
0
0
0
0
0
0.015717
0.272857
700
29
74
24.137931
0.823183
0.467143
0
0
0
0
0.022599
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2a6bdde474282212fe07520d1ff7954658350c17
924
py
Python
scripts/find_revdeps.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
scripts/find_revdeps.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
scripts/find_revdeps.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import pip import sys from pip.req import parse_requirements def rdeps(pkg_name): return [pkg.project_name for pkg in pip.get_installed_distributions() if pkg_name in [requirement.project_name for requirement in pkg.requires()]] def main...
28
72
0.622294
117
924
4.717949
0.42735
0.172101
0.050725
0
0
0
0
0
0
0
0
0.005917
0.268398
924
32
73
28.875
0.810651
0.021645
0
0
0
0
0.066445
0
0
0
0
0
0
0
null
null
0
0.130435
null
null
0.086957
0
0
0
null
0
0
0
0
0
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
2a6c900b37af7cd0da165d680f94469f07748233
15,878
py
Python
todos/models/definitions.py
asidlare/todos
e6ae268efdfe68ae567b516f6cb5fa9cb8a46435
[ "MIT" ]
null
null
null
todos/models/definitions.py
asidlare/todos
e6ae268efdfe68ae567b516f6cb5fa9cb8a46435
[ "MIT" ]
null
null
null
todos/models/definitions.py
asidlare/todos
e6ae268efdfe68ae567b516f6cb5fa9cb8a46435
[ "MIT" ]
null
null
null
from .base import db, DictMixin, DATETIME_TYPE, BOOLEAN_TYPE, UNSIGNEDSMALLINT_TYPE from .utils import on_create, on_drop from sqlalchemy_utils import PasswordType, EmailType, force_auto_coercion from sqlalchemy.ext.hybrid import hybrid_property from enum import Enum from flask_login import UserMixin force_auto_coerci...
37.36
117
0.67055
1,986
15,878
5.173212
0.120846
0.035819
0.028227
0.027253
0.569301
0.518883
0.457757
0.404711
0.364415
0.31497
0
0.005054
0.214889
15,878
424
118
37.448113
0.819108
0.118277
0
0.329545
0
0.003788
0.105336
0.010163
0
0
0
0.023585
0
1
0.090909
false
0.018939
0.022727
0.034091
0.674242
0
0
0
0
null
0
0
0
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
2a72ba097e5417b3c66a2b086273f21d4b2261dd
620
py
Python
plaso/formatters/android_sms.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
2
2016-02-18T12:46:29.000Z
2022-03-13T03:04:59.000Z
plaso/formatters/android_sms.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
null
null
null
plaso/formatters/android_sms.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
6
2016-12-18T08:05:36.000Z
2021-04-06T14:19:11.000Z
# -*- coding: utf-8 -*- """The Android mmssms.db database event formatter.""" from plaso.formatters import interface from plaso.formatters import manager class AndroidSmsFormatter(interface.ConditionalEventFormatter): """Formatter for an Android SMS event.""" DATA_TYPE = u'android:messaging:sms' FORMAT_STRIN...
23.846154
64
0.716129
73
620
5.945205
0.547945
0.041475
0.087558
0.115207
0
0
0
0
0
0
0
0.001916
0.158065
620
25
65
24.8
0.829502
0.170968
0
0
0
0
0.232604
0.04175
0
0
0
0
0
1
0
false
0
0.153846
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
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
2a78696ed96fd74b5621061b53199f5f10b050ce
1,383
py
Python
acapi/resources/environmentlist.py
marynaperesypkina/python-acquia-cloud
533e78efba9b6d8e59293968d92ffeb526220557
[ "MIT" ]
null
null
null
acapi/resources/environmentlist.py
marynaperesypkina/python-acquia-cloud
533e78efba9b6d8e59293968d92ffeb526220557
[ "MIT" ]
null
null
null
acapi/resources/environmentlist.py
marynaperesypkina/python-acquia-cloud
533e78efba9b6d8e59293968d92ffeb526220557
[ "MIT" ]
null
null
null
"""Acquia Cloud API server list resource.""" from acapi.resources.acquialist import AcquiaList from acapi.resources.environment import Environment class EnvironmentList(AcquiaList): """Dict of Acquia Cloud API Environment resources keyed by short name.""" def __init__(self, base_uri, auth, *args, **kwargs):...
28.8125
78
0.586406
162
1,383
4.839506
0.333333
0.089286
0.038265
0.038265
0.104592
0
0
0
0
0
0
0
0.290672
1,383
47
79
29.425532
0.799185
0.311641
0
0
0
0
0.034696
0
0
0
0
0
0
1
0.235294
false
0
0.117647
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
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
2a7ce0c57c45d9dda220d22d2bbab1ea3f1660ad
10,716
py
Python
azure-iot-device/azure/iot/device/iothub/sync_handler_manager.py
danewalton/azure-iot-sdk-python
addc82a8c28478738602bd698acdaf1a16dc39b4
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/iothub/sync_handler_manager.py
danewalton/azure-iot-sdk-python
addc82a8c28478738602bd698acdaf1a16dc39b4
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/iothub/sync_handler_manager.py
danewalton/azure-iot-sdk-python
addc82a8c28478738602bd698acdaf1a16dc39b4
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """This mo...
40.285714
112
0.644644
1,231
10,716
5.388302
0.247766
0.08126
0.03166
0.020805
0.37434
0.270164
0.231117
0.149254
0.129806
0.093171
0
0.000258
0.276876
10,716
265
113
40.437736
0.855723
0.273423
0
0.310559
0
0
0.101528
0.019226
0
0
0
0.011321
0
1
0.124224
false
0.037267
0.049689
0.018634
0.242236
0
0
0
0
null
0
0
0
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
2a83976fd3f1fd732d8786e43320efc55ac9ad63
493
py
Python
python/algorism/sort/selection_sort.py
mts-uw/trainning-repository
1210a0c43f0cb739b5a613e90e1fa6ef2fd33501
[ "MIT" ]
null
null
null
python/algorism/sort/selection_sort.py
mts-uw/trainning-repository
1210a0c43f0cb739b5a613e90e1fa6ef2fd33501
[ "MIT" ]
null
null
null
python/algorism/sort/selection_sort.py
mts-uw/trainning-repository
1210a0c43f0cb739b5a613e90e1fa6ef2fd33501
[ "MIT" ]
null
null
null
import random from typing import List def selection_sort(numbers: List[int]) -> List[int]: len_numbers = len(numbers) for i in range(len_numbers): min_idx = i for j in range(i + 1, len_numbers): if numbers[min_idx] > numbers[j]: min_idx = j numbers[i], numb...
22.409091
67
0.610548
76
493
3.815789
0.421053
0.103448
0.17931
0.206897
0
0
0
0
0
0
0
0.035813
0.263692
493
21
68
23.47619
0.763085
0.05071
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.307692
0.076923
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
2a86c164df8e0d8557e391112faaa674b959a452
1,204
py
Python
test2.py
lyx003288/python_test
f6927b8182a1e8e608b3277a3fe033b856a2c47a
[ "MIT" ]
null
null
null
test2.py
lyx003288/python_test
f6927b8182a1e8e608b3277a3fe033b856a2c47a
[ "MIT" ]
null
null
null
test2.py
lyx003288/python_test
f6927b8182a1e8e608b3277a3fe033b856a2c47a
[ "MIT" ]
null
null
null
# import os import sys from multiprocessing import Pool # import time # from concurrent import futures import test4 print("test2 run") class MyLocker: def __init__(self): print("mylocker.__init__() called.") @staticmethod def acquire(): print("mylocker.acquire() called.") @staticmetho...
17.449275
57
0.57392
128
1,204
5.195313
0.382813
0.090226
0.094737
0.081203
0.117293
0.117293
0
0
0
0
0
0.010689
0.300664
1,204
68
58
17.705882
0.779097
0.084718
0
0.190476
0
0
0.182665
0
0
0
0
0
0
1
0.214286
false
0
0.095238
0
0.452381
0.190476
0
0
0
null
0
0
0
0
0
0
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
2a8a4cadb04fd2cee476c91f0b72500db53cb701
1,501
py
Python
tests/test_expect_column_values_to_not_be_null.py
dm-drogeriemarkt/pyspark-expectations
0f352190e20c7864fc48e8be88447d24d2362801
[ "MIT" ]
null
null
null
tests/test_expect_column_values_to_not_be_null.py
dm-drogeriemarkt/pyspark-expectations
0f352190e20c7864fc48e8be88447d24d2362801
[ "MIT" ]
1
2021-04-30T11:45:57.000Z
2021-04-30T11:45:57.000Z
tests/test_expect_column_values_to_not_be_null.py
dm-drogeriemarkt/pyspark-expectations
0f352190e20c7864fc48e8be88447d24d2362801
[ "MIT" ]
null
null
null
import pytest from pyspark.sql.functions import lit from pyspark_expectations import expectations def test_when_some_values_are_null(df): res = df.expect_column_values_to_not_be_null("height") assert not res["success"] def test_when_allowed_33_percent_null_values_but_there_is_more_null_values(df): # 33.3....
40.567568
82
0.768155
242
1,501
4.322314
0.231405
0.091778
0.137667
0.152964
0.639579
0.597514
0.597514
0.597514
0.532505
0.487572
0
0.026094
0.131912
1,501
36
83
41.694444
0.776669
0.068621
0
0.25
0
0
0.077419
0
0
0
0
0
0.178571
1
0.214286
false
0
0.107143
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
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
2a8c1f73a52cef9e6e4d05af20c45d6ef9f5e079
1,203
py
Python
tests/unit/market_data/fx_rate.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
null
null
null
tests/unit/market_data/fx_rate.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
8
2017-06-06T09:42:41.000Z
2018-01-16T10:16:16.000Z
tests/unit/market_data/fx_rate.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
8
2017-01-18T04:14:01.000Z
2017-12-01T08:03:10.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import json import unittest from amaascore.market_data.fx_rate import FXRate from amaascore.tools.generate_market_data import generate_fx_rate class FXRateTest(unittest.TestCase): def setUp(self): self.longMessage = True...
32.513514
96
0.724855
170
1,203
4.764706
0.358824
0.103704
0.08642
0.051852
0.118519
0.079012
0
0
0
0
0
0
0.186201
1,203
36
97
33.416667
0.827375
0.092269
0
0
1
0
0.029385
0
0
0
0
0
0.2
1
0.2
false
0.04
0.2
0
0.44
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2a9850a940148a5cca9bd75f167bb18960bc0da7
684
py
Python
prisitri/urls.py
soslaio/agreg
241044526d79a6065fa77dd6a17aaf08ff2903dd
[ "MIT" ]
null
null
null
prisitri/urls.py
soslaio/agreg
241044526d79a6065fa77dd6a17aaf08ff2903dd
[ "MIT" ]
null
null
null
prisitri/urls.py
soslaio/agreg
241044526d79a6065fa77dd6a17aaf08ff2903dd
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib import admin from django.urls import path, include from django.conf.urls.static import static from core.urls import corepatterns from rest_framework_simplejwt.views import ( TokenObtainPairView, TokenRefreshView, TokenVerifyView ) urlpatterns = [ p...
32.571429
77
0.755848
82
684
6.158537
0.414634
0.079208
0.059406
0.089109
0
0
0
0
0
0
0
0
0.122807
684
20
78
34.2
0.841667
0
0
0
0
0
0.118594
0
0
0
0
0
0
1
0
false
0
0.352941
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
0
1
0
0
0
0
1
aa4a7df725cc81bc8522f51a5bce49d50b132123
420
py
Python
tests/test_pandas.py
ehw-fit/py-paretoarchive
4c061435ddc1c573faf705e1111d012378c5dc4b
[ "BSD-3-Clause" ]
1
2020-05-05T10:18:36.000Z
2020-05-05T10:18:36.000Z
tests/test_pandas.py
ehw-fit/py-paretoarchive
4c061435ddc1c573faf705e1111d012378c5dc4b
[ "BSD-3-Clause" ]
1
2020-05-05T10:21:22.000Z
2020-05-13T06:53:58.000Z
tests/test_pandas.py
ehw-fit/py-paretoarchive
4c061435ddc1c573faf705e1111d012378c5dc4b
[ "BSD-3-Clause" ]
1
2020-05-05T10:23:00.000Z
2020-05-05T10:23:00.000Z
from paretoarchive.pandas import pareto import pandas as pd def test_df(): df = pd.DataFrame( [[1, 3, 3], [1, 2, 3], [1, 1, 2]], columns=["a", "b", "c"] ) assert (pareto(df, ["a", "b"]).index == [2]).all() assert (pareto(df, ["a", "b", "c"]).index == [2]).all() assert (pareto(df, ["a", "...
26.25
88
0.521429
62
420
3.370968
0.435484
0.038278
0.043062
0.215311
0.325359
0.248804
0.248804
0.248804
0.248804
0
0
0.042296
0.211905
420
16
89
26.25
0.589124
0
0
0
0
0
0.045131
0
0
0
0
0
0.272727
1
0.090909
false
0
0.181818
0
0.272727
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
aa4b6f4080c7c676a86370b1cf5af1f5943d980f
10,483
py
Python
quadclass/seqlearn.py
vavrusa/seqalpha
df8628fff61c030864703adc6fd945d1607941d9
[ "BSD-2-Clause-FreeBSD" ]
2
2020-02-03T11:57:37.000Z
2020-02-03T12:29:35.000Z
quadclass/seqlearn.py
vavrusa/seqalpha
df8628fff61c030864703adc6fd945d1607941d9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
quadclass/seqlearn.py
vavrusa/seqalpha
df8628fff61c030864703adc6fd945d1607941d9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#!/usr/bin/env python import re import sys, getopt import pylab as pl from sklearn.metrics import roc_curve, auc from matplotlib.lines import Line2D def load_classlist(source = 'gqclass.tsv'): ''' Load sequence classlist. ''' gq_classlist = dict() with open(source) as datafile: for line in datafile...
36.911972
130
0.564724
1,378
10,483
4.170537
0.197388
0.026797
0.015834
0.018792
0.159562
0.08822
0.028189
0.0174
0
0
0
0.015958
0.288658
10,483
283
131
37.042403
0.754727
0.055518
0
0.10177
0
0.004425
0.111777
0.008771
0
0
0
0
0
0
null
null
0
0.022124
null
null
0.088496
0
0
0
null
0
0
0
0
0
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
aa546c9123420f27df58ed4ec5d960d6502d7a89
35,413
py
Python
code/GA.py
xijunlee/SPC-POSM
d5b831445437f93d00cb5fe7eb7ac462512feb13
[ "MIT" ]
null
null
null
code/GA.py
xijunlee/SPC-POSM
d5b831445437f93d00cb5fe7eb7ac462512feb13
[ "MIT" ]
null
null
null
code/GA.py
xijunlee/SPC-POSM
d5b831445437f93d00cb5fe7eb7ac462512feb13
[ "MIT" ]
null
null
null
import math import random from random import randint import copy from sklearn.metrics import mean_squared_error import numpy as np from pyspark import SparkContext, SparkConf import time import pandas as pd import sys class Chromosome: def __init__(self): self.geneSerial = [] self.v = [] se...
36.62151
199
0.54689
3,904
35,413
4.893443
0.094518
0.041876
0.026696
0.012092
0.582653
0.554282
0.515861
0.493614
0.463149
0.448178
0
0.017376
0.345071
35,413
967
200
36.62151
0.806321
0.068139
0
0.437313
0
0
0.016057
0.0058
0
0
0
0
0
0
null
null
0
0.014925
null
null
0.00597
0
0
0
null
0
0
0
0
0
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
aa58a71fc1fb4f7749872d6980f1852fdec91991
5,319
py
Python
pubsub/pubsub-pipe-image/pubsub-to-bigquery.py
eyenAFS/TwitterKubeBQ
3694c2ac4f7c65d45aeff02f0c941dbbb0d88379
[ "Apache-2.0" ]
null
null
null
pubsub/pubsub-pipe-image/pubsub-to-bigquery.py
eyenAFS/TwitterKubeBQ
3694c2ac4f7c65d45aeff02f0c941dbbb0d88379
[ "Apache-2.0" ]
null
null
null
pubsub/pubsub-pipe-image/pubsub-to-bigquery.py
eyenAFS/TwitterKubeBQ
3694c2ac4f7c65d45aeff02f0c941dbbb0d88379
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
36.9375
87
0.62681
624
5,319
5.211538
0.355769
0.019373
0.01722
0.02214
0.114699
0.077183
0.067651
0.027675
0.027675
0
0
0.008655
0.283136
5,319
143
88
37.195804
0.844217
0.193269
0
0.103093
0
0
0.085024
0
0
0
0
0.006993
0
0
null
null
0
0.061856
null
null
0.092784
0
0
0
null
0
0
0
0
0
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
aa58b467a18a0af7be33be539efd68e907a783dc
2,389
py
Python
sis_provisioner/tests/dao/test_pws.py
uw-it-aca/bridge-sis-provisioner
6dd31e5ef59263acbcade5e6e4f74b815c16bdee
[ "Apache-2.0" ]
null
null
null
sis_provisioner/tests/dao/test_pws.py
uw-it-aca/bridge-sis-provisioner
6dd31e5ef59263acbcade5e6e4f74b815c16bdee
[ "Apache-2.0" ]
175
2016-07-18T23:25:45.000Z
2022-02-07T20:44:05.000Z
sis_provisioner/tests/dao/test_pws.py
uw-it-aca/bridge-sis-provisioner
6dd31e5ef59263acbcade5e6e4f74b815c16bdee
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.test import TestCase from freezegun import freeze_time from sis_provisioner.dao import DataFailureException from sis_provisioner.dao.pws import ( get_person, is_prior_netid, get_updated_persons) from sis_provisioner....
39.163934
66
0.686061
275
2,389
5.727273
0.316364
0.133333
0.12
0.050794
0.252063
0.215238
0.156825
0.123175
0.099048
0.099048
0
0.056204
0.210548
2,389
60
67
39.816667
0.778897
0.034324
0
0.166667
0
0
0.106337
0.027778
0
0
0
0
0.5
1
0.0625
false
0
0.104167
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
aa6c9c675761db70d8cabb4f1652440d90a1293a
671
py
Python
netmikoo4.py
lalitshankergarg/pylalit
1df9bb20f370e355f63687f793fe9028f85b2d66
[ "Apache-2.0" ]
null
null
null
netmikoo4.py
lalitshankergarg/pylalit
1df9bb20f370e355f63687f793fe9028f85b2d66
[ "Apache-2.0" ]
null
null
null
netmikoo4.py
lalitshankergarg/pylalit
1df9bb20f370e355f63687f793fe9028f85b2d66
[ "Apache-2.0" ]
null
null
null
#1/usr/bin/python3 import netmiko,time #multi vendor library device1={ 'username' : 'lalit', 'password' : 'cisco', 'device_type' : 'cisco_ios', 'host' : '192.168.234.131' } #to connect to target device #by checking couple of things connect handler will allow you to connect device_connect=netmiko.ConnectHandler...
24.851852
74
0.76304
97
671
5.164948
0.628866
0.103792
0.067864
0.091816
0
0
0
0
0
0
0
0.035354
0.114754
671
26
75
25.807692
0.808081
0.463487
0
0
0
0
0.388571
0
0
0
0
0
0
1
0
false
0.181818
0.090909
0
0.090909
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
aa6e11e973fb798ad82e1128603963754414a1ac
77,435
py
Python
plantstuff/schema/ecology.py
christabor/plantstuff
8515fcc4c86ef0a96f34278d90419e5fad2b48d3
[ "MIT" ]
6
2018-02-08T06:02:40.000Z
2022-03-02T11:29:30.000Z
plantstuff/schema/ecology.py
christabor/plantstuff
8515fcc4c86ef0a96f34278d90419e5fad2b48d3
[ "MIT" ]
13
2018-03-07T16:15:22.000Z
2020-03-03T04:50:26.000Z
plantstuff/schema/ecology.py
christabor/plantstuff
8515fcc4c86ef0a96f34278d90419e5fad2b48d3
[ "MIT" ]
null
null
null
"""Locale specific data for the master Model. TODO: add world countries, etc... granularity TBD. """ from neomodel import ( ArrayProperty as ListProp, StructuredNode as Model, StringProperty as StringProp, ) US_COUNTIES = [ "alabama:autauga", "alabama:baldwin", "alabama:barbour", "alabama...
24.327678
71
0.61591
7,159
77,435
6.660288
0.272524
0.027265
0.002307
0.001594
0.011262
0.009668
0.008284
0.00776
0.005684
0.005684
0
0.001218
0.215703
77,435
3,182
72
24.335324
0.783887
0.002647
0
0
0
0
0.664733
0.0348
0
0
0
0.000314
0
1
0
false
0.000316
0.000316
0
0.002212
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aa76f4aab10c1861269b235e3973804005053d20
991
py
Python
LeetCode/_0001_0050/_043_MultiplyStrings.py
BigEggStudy/LeetCode-Py
735e782742fab15bdb046eb6d5fc7b03502cc92d
[ "MIT" ]
1
2021-01-30T04:07:26.000Z
2021-01-30T04:07:26.000Z
LeetCode/_0001_0050/_043_MultiplyStrings.py
BigEggStudy/LeetCode-Py
735e782742fab15bdb046eb6d5fc7b03502cc92d
[ "MIT" ]
null
null
null
LeetCode/_0001_0050/_043_MultiplyStrings.py
BigEggStudy/LeetCode-Py
735e782742fab15bdb046eb6d5fc7b03502cc92d
[ "MIT" ]
1
2021-09-09T20:12:25.000Z
2021-09-09T20:12:25.000Z
#----------------------------------------------------------------------------- # Runtime: 84ms # Memory Usage: # Link: #----------------------------------------------------------------------------- class Solution: def multiply(self, num1: str, num2: str) -> str: if num1 == '0' or num2 == '0': ...
29.147059
78
0.386478
120
991
3.116667
0.358333
0.074866
0.080214
0.074866
0.096257
0.096257
0
0
0
0
0
0.077713
0.311806
991
33
79
30.030303
0.470674
0.191726
0
0
0
0
0.017588
0
0
0
0
0
0
1
0.045455
false
0
0
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aa79f364744d56f8e30df29d36975328b2e75458
12,550
py
Python
tutorials/generate_egoview_overlaid_vector_map.py
jhonykaesemodel/av2-api
0584db439a0c58be7df57214e2b60f6f6f7a8f91
[ "MIT" ]
26
2022-03-17T13:09:18.000Z
2022-03-21T15:06:22.000Z
tutorials/generate_egoview_overlaid_vector_map.py
jhonykaesemodel/av2-api
0584db439a0c58be7df57214e2b60f6f6f7a8f91
[ "MIT" ]
9
2022-03-21T16:03:54.000Z
2022-03-29T02:28:56.000Z
tutorials/generate_egoview_overlaid_vector_map.py
jhonykaesemodel/av2-api
0584db439a0c58be7df57214e2b60f6f6f7a8f91
[ "MIT" ]
6
2022-03-22T08:16:29.000Z
2022-03-30T21:11:33.000Z
# <Copyright 2022, Argo AI, LLC. Released under the MIT license.> """Generate MP4 videos with map entities rendered on top of sensor imagery, for all cameras, for a single log. We use a inferred depth map from LiDAR to render only visible map entities (lanes and pedestrian crossings). """ import logging import os im...
36.588921
117
0.683984
1,753
12,550
4.641757
0.231033
0.013519
0.017697
0.015485
0.32727
0.287207
0.229937
0.21052
0.177338
0.177338
0
0.012029
0.238247
12,550
342
118
36.695906
0.839121
0.269323
0
0.226496
1
0
0.144514
0.020963
0
0
0
0
0
1
0.021368
false
0
0.076923
0
0.115385
0
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
aa7d10ff0a45e5745e0eb11edd40818a68e65c93
4,084
py
Python
var/spack/repos/builtin/packages/findutils/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/findutils/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
17
2019-03-21T15:54:00.000Z
2022-03-29T19:34:28.000Z
var/spack/repos/builtin/packages/findutils/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-04-07T18:27:09.000Z
2022-03-31T22:52:38.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import re class Findutils(AutotoolsPackage, GNUMirrorPackage): """The GNU Find Utilities are the...
54.453333
231
0.742165
394
4,084
7.65736
0.423858
0.050381
0.012927
0.018561
0.113689
0.107391
0.102088
0.102088
0.068943
0.068943
0
0.298389
0.133448
4,084
74
232
55.189189
0.554111
0.130264
0
0
0
0.04
0.577293
0.389581
0
0
0
0
0
1
0.06
false
0
0.04
0.02
0.24
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
aa7d7617757c9ab0d600b58e8deca9e5b77cd37c
906
py
Python
pitch/concurrency.py
georgepsarakis/pitch
bfc903d0be883ce1a989299a2b4835c02bdf00e1
[ "MIT" ]
6
2015-10-20T09:10:09.000Z
2018-09-11T12:35:48.000Z
pitch/concurrency.py
georgepsarakis/pitch
bfc903d0be883ce1a989299a2b4835c02bdf00e1
[ "MIT" ]
12
2015-10-20T17:34:39.000Z
2015-10-27T18:13:56.000Z
pitch/concurrency.py
georgepsarakis/pitch
bfc903d0be883ce1a989299a2b4835c02bdf00e1
[ "MIT" ]
null
null
null
from abc import abstractmethod from concurrent import futures class Pool(object): def __init__(self, loops=1, concurrency=1): self._concurrency = concurrency self._loops = loops @abstractmethod @property def executor_class(self) -> futures.Executor: pass def run(self, fn...
21.571429
72
0.63245
97
906
5.773196
0.42268
0.092857
0.101786
0.128571
0.210714
0.160714
0.160714
0.160714
0
0
0
0.003063
0.279249
906
41
73
22.097561
0.854518
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.178571
false
0.071429
0.071429
0.071429
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
aa86c418cfb62c5360799bdf0986f12f1ae7ba28
3,950
py
Python
src/snippets/06_linear_algebra.py
yvesbeutler/tyrannosaurus
19b85ffcbef82f2efe82b0bde39a10625c970ebe
[ "MIT" ]
null
null
null
src/snippets/06_linear_algebra.py
yvesbeutler/tyrannosaurus
19b85ffcbef82f2efe82b0bde39a10625c970ebe
[ "MIT" ]
null
null
null
src/snippets/06_linear_algebra.py
yvesbeutler/tyrannosaurus
19b85ffcbef82f2efe82b0bde39a10625c970ebe
[ "MIT" ]
null
null
null
from typing import List, Tuple, Callable import math # define some type alias Vector = List[float] Matrix = List[List[float]] ################################### # Vector calculations ################################### def add(v: Vector, w: Vector) -> Vector: """simple vector addition""" assert len(v) == le...
33.193277
95
0.574937
632
3,950
3.530063
0.205696
0.014343
0.016136
0.014343
0.286419
0.229494
0.201703
0.15957
0.125504
0.106679
0
0.044108
0.230886
3,950
118
96
33.474576
0.690257
0.206076
0
0.045455
0
0
0.058803
0
0
0
0
0
0.287879
1
0.227273
false
0
0.030303
0
0.484848
0
0
0
0
null
0
0
0
0
0
0
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
aa889918d55539feb2853161d66ea2da43447fd2
1,116
py
Python
src/project_name/urls.py
konoufo/perfectstart
18cfdd5198f573e91271334d2fb5f3424c3d36aa
[ "MIT" ]
null
null
null
src/project_name/urls.py
konoufo/perfectstart
18cfdd5198f573e91271334d2fb5f3424c3d36aa
[ "MIT" ]
null
null
null
src/project_name/urls.py
konoufo/perfectstart
18cfdd5198f573e91271334d2fb5f3424c3d36aa
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from django.views.generic import RedirectView from profiles.views import SignupView from . import views urlpatterns = [ url(r'^$', views.HomePage.as_view(), name=...
36
85
0.72491
151
1,116
5.264901
0.370861
0.040252
0.05283
0.045283
0
0
0
0
0
0
0
0
0.136201
1,116
30
86
37.2
0.824689
0.158602
0
0
0
0
0.170053
0.025668
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
aa898239ff46463d8c8cbb3dd2476446f0da39e1
1,826
py
Python
joshgordon/04/bingo.py
VisionistInc/-advent-of-code-2021
e22a1d45c38417868f05e0501bacd1cad717a016
[ "MIT" ]
1
2021-12-26T20:00:15.000Z
2021-12-26T20:00:15.000Z
joshgordon/04/bingo.py
VisionistInc/-advent-of-code-2021
e22a1d45c38417868f05e0501bacd1cad717a016
[ "MIT" ]
null
null
null
joshgordon/04/bingo.py
VisionistInc/-advent-of-code-2021
e22a1d45c38417868f05e0501bacd1cad717a016
[ "MIT" ]
4
2021-11-29T23:39:10.000Z
2021-12-06T15:13:33.000Z
from collections import defaultdict import re # shamelessly borrowed from https://stackoverflow.com/questions/2912231/is-there-a-clever-way-to-pass-the-key-to-defaultdicts-default-factory # I've used this before and it's super awesome. It's a defaultdict except your lambda function gets your key # as a parameter. clas...
29.451613
141
0.599671
255
1,826
4.180392
0.388235
0.060038
0.030019
0.033771
0.045028
0
0
0
0
0
0
0.020642
0.28368
1,826
61
142
29.934426
0.794343
0.157722
0
0.113636
0
0
0.050228
0.03653
0
0
0
0
0
1
0.204545
false
0
0.045455
0.045455
0.477273
0
0
0
0
null
0
0
0
0
0
0
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
aa8f983ba4d70f2577135d1f9d6fee70e6ae8f5b
868
py
Python
boxes/sensorgw/web/sensor_gateway.py
yagamy4680/myboxes
dcdd31a0264bda2f0e9509d3b66d678a4bf987d5
[ "Apache-2.0" ]
null
null
null
boxes/sensorgw/web/sensor_gateway.py
yagamy4680/myboxes
dcdd31a0264bda2f0e9509d3b66d678a4bf987d5
[ "Apache-2.0" ]
null
null
null
boxes/sensorgw/web/sensor_gateway.py
yagamy4680/myboxes
dcdd31a0264bda2f0e9509d3b66d678a4bf987d5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from bottle import route, run, post, get, request, static_file from optparse import OptionParser myData = {} @route('/hello') def hello(): return "Hello World!\n" @post('/api/data/<name>') def updateData(name='hello'): jsonData = request.json print(jsonData) myData[name] = json...
22.842105
72
0.673963
115
868
5.043478
0.495652
0.051724
0.037931
0.048276
0.141379
0.141379
0.141379
0.141379
0
0
0
0.010724
0.140553
868
37
73
23.459459
0.766756
0.023041
0
0.148148
0
0
0.173554
0.028335
0
0
0
0
0
1
0.185185
false
0
0.074074
0.111111
0.444444
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
aa904fa671ce1cbac7788d8e9e76a601d75d8969
1,138
py
Python
preprocess/thyroid_tissue_loc.py
PingjunChen/ThyroidGeneralWSI
ee3adaa4c3aa7c56d3cc5bd7b44d99894578beee
[ "MIT" ]
2
2020-05-02T16:37:13.000Z
2020-05-04T20:44:17.000Z
preprocess/thyroid_tissue_loc.py
PingjunChen/frozen-thyroid-cls
ee3adaa4c3aa7c56d3cc5bd7b44d99894578beee
[ "MIT" ]
null
null
null
preprocess/thyroid_tissue_loc.py
PingjunChen/frozen-thyroid-cls
ee3adaa4c3aa7c56d3cc5bd7b44d99894578beee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os, sys import shutil import tissueloc as tl from tissueloc.load_slide import load_slide_img, select_slide_level import numpy as np from skimage import io, color import cv2 if __name__ == "__main__": slide_dir = "../data/TestSlides/Malignant" save_dir = "../data/TestSlides/Mal...
36.709677
103
0.680141
173
1,138
4.184971
0.421965
0.077348
0.041436
0
0
0
0
0
0
0
0
0.033223
0.206503
1,138
30
104
37.933333
0.768549
0.018453
0
0
0
0
0.073543
0.055605
0
0
0
0
0
1
0
false
0
0.304348
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
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
aa91f1eba6fd71a368c868dbc5ee1a333f2ea4a6
271
py
Python
Darlington/phase-2/FILE 1/O/day 83 solution/qtn3.py
darlcruz/python-challenge-solutions
3e03a420d01177b71750d4d1b84cb3cbbf8c6900
[ "MIT" ]
null
null
null
Darlington/phase-2/FILE 1/O/day 83 solution/qtn3.py
darlcruz/python-challenge-solutions
3e03a420d01177b71750d4d1b84cb3cbbf8c6900
[ "MIT" ]
null
null
null
Darlington/phase-2/FILE 1/O/day 83 solution/qtn3.py
darlcruz/python-challenge-solutions
3e03a420d01177b71750d4d1b84cb3cbbf8c6900
[ "MIT" ]
null
null
null
# program that takes a text file as input and returns the number of words of a given text file. def count_words(filepath): with open(filepath) as f: data = f.read() data.replace(",", " ") return len(data.split(" ")) print(count_words("words.txt"))
38.714286
95
0.653137
42
271
4.166667
0.690476
0.091429
0
0
0
0
0
0
0
0
0
0
0.217712
271
7
96
38.714286
0.825472
0.343173
0
0
0
0
0.067797
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.166667
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
aa96837bb7ba9914637bce71b6b4598803da882d
4,188
py
Python
erica/erica_legacy/elster_xml/grundsteuer/elster_data_representation.py
punknoir101/erica-1
675a6280d38ca5b56946af6f3ed7e295ba896db0
[ "MIT" ]
null
null
null
erica/erica_legacy/elster_xml/grundsteuer/elster_data_representation.py
punknoir101/erica-1
675a6280d38ca5b56946af6f3ed7e295ba896db0
[ "MIT" ]
null
null
null
erica/erica_legacy/elster_xml/grundsteuer/elster_data_representation.py
punknoir101/erica-1
675a6280d38ca5b56946af6f3ed7e295ba896db0
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List, Optional from erica.erica_legacy.elster_xml.common.basic_xml_data_representation import ENutzdaten, construct_basic_xml_data_representation from erica.erica_legacy.elster_xml.grundsteuer.elster_eigentuemer import EAngFeststellung, EPersonData, EEigentumsverh, ...
35.794872
130
0.722779
439
4,188
6.656036
0.316629
0.067762
0.022587
0.034223
0.236482
0.205681
0.129363
0.075975
0.04449
0.04449
0
0.017402
0.204155
4,188
116
131
36.103448
0.859286
0.053247
0
0.117647
0
0
0.040629
0.01232
0
0
0
0.008621
0
1
0.082353
false
0
0.082353
0
0.517647
0
0
0
0
null
0
0
0
0
0
0
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
aa9749d4a2020e039bc3e3e1376d7a13768cba28
1,231
py
Python
backend/api/migrations/0006_auto_20181113_0325.py
sperrys/YEF_DEBUG
8e09342ef9639c4f6abe1390f37dddb8e398784c
[ "MIT" ]
2
2018-12-10T03:14:31.000Z
2019-03-27T16:20:36.000Z
backend/api/migrations/0006_auto_20181113_0325.py
sperrys/YEF_DEBUG
8e09342ef9639c4f6abe1390f37dddb8e398784c
[ "MIT" ]
22
2018-12-06T23:54:20.000Z
2019-04-17T18:15:43.000Z
backend/api/migrations/0006_auto_20181113_0325.py
sperrys/YEF_DEBUG
8e09342ef9639c4f6abe1390f37dddb8e398784c
[ "MIT" ]
1
2020-11-03T05:27:10.000Z
2020-11-03T05:27:10.000Z
# Generated by Django 2.1.1 on 2018-11-13 03:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0005_auto_20181113_0259'), ] operations = [ migrations.RenameModel( old_name='JudgePoint...
27.355556
125
0.548335
113
1,231
5.849558
0.513274
0.068079
0.118003
0.136157
0.291982
0.291982
0
0
0
0
0
0.039568
0.322502
1,231
44
126
27.977273
0.752998
0.036556
0
0.605263
1
0
0.141047
0.019426
0
0
0
0
0
1
0
false
0
0.052632
0
0.131579
0
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
aa99393fa86a401cbdbe26e67fb96b55e49d05f4
1,039
py
Python
scripts/calcular_pagamentos_descontos_com variacao_das_taxas.py
GeisonIsrael/scripts_basicos_python
46763977931225691e00ab924ddf8de934c1af27
[ "MIT" ]
null
null
null
scripts/calcular_pagamentos_descontos_com variacao_das_taxas.py
GeisonIsrael/scripts_basicos_python
46763977931225691e00ab924ddf8de934c1af27
[ "MIT" ]
null
null
null
scripts/calcular_pagamentos_descontos_com variacao_das_taxas.py
GeisonIsrael/scripts_basicos_python
46763977931225691e00ab924ddf8de934c1af27
[ "MIT" ]
null
null
null
# Calcular o preço de um produto com % de desconto para pagamento a vista e % de juros para pagamento parcelado. print('x=' * 80) # AQUI FICA O VALOR DO PRODUTO. preco = float(input('Qual o valor do produto ?R$ ')) # VALOR DO DESCONTO OU ACREŚIMO. porcentagem = float(input('Desconto ou acréscimo para este produto em ...
32.46875
156
0.700674
150
1,039
4.853333
0.34
0.041209
0.032967
0.061813
0.065934
0.065934
0.065934
0
0
0
0
0.017401
0.170356
1,039
31
157
33.516129
0.827146
0.305101
0
0.181818
0
0.090909
0.45429
0
0
0
0
0
0
1
0
false
0
0
0
0
0.454545
0
0
0
null
0
0
0
0
0
0
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
aaa2ff96dc6a184fb7c9b1148001dbe5928ed066
267
py
Python
api/migrations/0008_merge_20200313_1603.py
CMPUT404W20-Wed/CMPUT404-project-socialdistribution-tmp
a4198f6c627b1f461bbb982bbfd126aee98cca87
[ "Apache-2.0" ]
1
2020-02-05T20:59:50.000Z
2020-02-05T20:59:50.000Z
api/migrations/0008_merge_20200313_1603.py
CMPUT404W20-Wed/CMPUT404-project-socialdistribution-tmp
a4198f6c627b1f461bbb982bbfd126aee98cca87
[ "Apache-2.0" ]
33
2020-02-17T03:58:23.000Z
2020-04-07T20:03:44.000Z
api/migrations/0008_merge_20200313_1603.py
CMPUT404W20-Wed/CMPUT404-project-socialdistribution
a4198f6c627b1f461bbb982bbfd126aee98cca87
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.10 on 2020-03-13 16:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0007_auto_20200312_2152'), ('api', '0007_comment_contenttype'), ] operations = [ ]
17.8
48
0.640449
32
267
5.1875
0.78125
0.084337
0
0
0
0
0
0
0
0
0
0.176471
0.235955
267
14
49
19.071429
0.637255
0.172285
0
0
1
0
0.242009
0.214612
0
0
0
0
0
1
0
false
0
0.125
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aacc8f8f96f4eb9349fbbc92e717fdc9a76f76c9
596
py
Python
jp.atcoder/abc246/abc246_d/30649952.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc246/abc246_d/30649952.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc246/abc246_d/30649952.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
def main() -> None: n = int(input()) def f(a: int, b: int) -> int: return a**3 + (a + b) * a * b + b**3 def binary_search(a: int) -> int: lo = -1 hi = 1 << 20 while hi - lo > 1: # print(lo, hi) b = (lo + hi) // 2 if f(a, b) >=...
20.551724
45
0.342282
83
596
2.337349
0.361446
0.041237
0.134021
0
0
0
0
0
0
0
0
0.047619
0.506711
596
28
46
21.285714
0.612245
0.021812
0
0
0
0
0.014467
0
0
0
0
0
0
1
0.136364
false
0
0
0.045455
0.227273
0.045455
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
aad0c194b28dd8789762d72cd98cabac46b8ac0b
291
py
Python
clean.py
fahbench/boost
5cbaacfd40cbbec10be42ea682afc0b501860cd5
[ "BSL-1.0" ]
null
null
null
clean.py
fahbench/boost
5cbaacfd40cbbec10be42ea682afc0b501860cd5
[ "BSL-1.0" ]
null
null
null
clean.py
fahbench/boost
5cbaacfd40cbbec10be42ea682afc0b501860cd5
[ "BSL-1.0" ]
null
null
null
want = [ 'filesystem', 'program_options', 'system', ] import shutil import os for d in os.listdir('libs'): if d in want: continue if os.path.isdir('libs/{}'.format(d)): shutil.rmtree('libs/{}'.format(d)) else: os.remove('libs/{}'.format(d))
17.117647
42
0.553265
38
291
4.210526
0.552632
0.1875
0.20625
0
0
0
0
0
0
0
0
0
0.257732
291
16
43
18.1875
0.740741
0
0
0
0
0
0.19244
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
aad3e52b706265c2574b9ea32e675f4438f54bf9
9,744
py
Python
anella/tenor_client/tenor_pop.py
Fundacio-i2CAT/ai4.0-tenor
cafb6127f0c9c4f0a8df1eb48cd4fa1a0ee1aed1
[ "curl", "Vim", "Ruby", "Apache-2.0" ]
null
null
null
anella/tenor_client/tenor_pop.py
Fundacio-i2CAT/ai4.0-tenor
cafb6127f0c9c4f0a8df1eb48cd4fa1a0ee1aed1
[ "curl", "Vim", "Ruby", "Apache-2.0" ]
null
null
null
anella/tenor_client/tenor_pop.py
Fundacio-i2CAT/ai4.0-tenor
cafb6127f0c9c4f0a8df1eb48cd4fa1a0ee1aed1
[ "curl", "Vim", "Ruby", "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """TeNOR PoP Class""" """Uses tenor ns-manager/routes/dc.rb """ import requests import json import ConfigParser CONFIG = ConfigParser.RawConfigParser() CONFIG.read('config.cfg') DEFAULT_TENOR_URL = format('{0}:{1}'.format( CONFIG.get('tenor', 'url'), CONFIG.get('ten...
38.0625
161
0.590722
1,137
9,744
4.851363
0.130167
0.020848
0.032632
0.036983
0.475163
0.436367
0.426215
0.426215
0.426215
0.426215
0
0.006141
0.281404
9,744
255
162
38.211765
0.781634
0.0039
0
0.428571
0
0
0.177904
0.020216
0
0
0
0
0
0
null
null
0
0.014286
null
null
0.004762
0
0
0
null
0
0
0
0
0
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
aadb48bda250d0860d99054d2ca79f3e6cbac622
4,207
py
Python
pylith/tests/Fault.py
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
1
2021-01-20T17:18:28.000Z
2021-01-20T17:18:28.000Z
pylith/tests/Fault.py
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
null
null
null
pylith/tests/Fault.py
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University of Chicago # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://ge...
30.485507
92
0.638222
480
4,207
5.579167
0.2875
0.099328
0.068708
0.041822
0.478715
0.478715
0.43764
0.412995
0.3764
0.336819
0
0.012375
0.193249
4,207
137
93
30.708029
0.776665
0.157119
0
0.5
0
0
0.122903
0
0
0
0
0
0.179487
0
null
null
0
0.038462
null
null
0.115385
0
0
0
null
0
0
0
0
0
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
aadefa6e454034e9c310a70d83ebc83c86db75c2
1,270
py
Python
tests/processors/test_metadata.py
ankitshah009/dcase_util
738571ce78faf60b0fdfa1d59fd42f42c8944f3d
[ "MIT" ]
null
null
null
tests/processors/test_metadata.py
ankitshah009/dcase_util
738571ce78faf60b0fdfa1d59fd42f42c8944f3d
[ "MIT" ]
null
null
null
tests/processors/test_metadata.py
ankitshah009/dcase_util
738571ce78faf60b0fdfa1d59fd42f42c8944f3d
[ "MIT" ]
null
null
null
import nose.tools import dcase_util import tempfile import os def test_MetadataReadingProcessor(): tmp = tempfile.NamedTemporaryFile('r+', suffix='.txt', dir='/tmp', delete=False) try: dcase_util.utils.Example.event_metadata_container().save(tmp.name) m = dcase_util.processors.MetadataReading...
30.238095
84
0.629921
145
1,270
5.303448
0.317241
0.081925
0.085826
0.156047
0.685306
0.685306
0.646294
0.646294
0.646294
0.646294
0
0.017149
0.265354
1,270
41
85
30.97561
0.807074
0
0
0.457143
0
0
0.029134
0
0
0
0
0
0
1
0.028571
false
0
0.114286
0
0.142857
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
aae1b58df76e319a281ba98588d782dc9fb05112
725
py
Python
implementation/server/cms/migrations/0006_homepage_hero_cta_link.py
Aincient/cleo
933ef372fa7847d943206d72bfb03c201dbafbd6
[ "Apache-2.0" ]
null
null
null
implementation/server/cms/migrations/0006_homepage_hero_cta_link.py
Aincient/cleo
933ef372fa7847d943206d72bfb03c201dbafbd6
[ "Apache-2.0" ]
null
null
null
implementation/server/cms/migrations/0006_homepage_hero_cta_link.py
Aincient/cleo
933ef372fa7847d943206d72bfb03c201dbafbd6
[ "Apache-2.0" ]
3
2018-10-01T12:04:36.000Z
2021-01-07T09:30:50.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-06-19 20:30 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wagtailcore', '0040_page_draft_title'), ('cms', '0...
31.521739
237
0.668966
94
725
4.957447
0.670213
0.051502
0.060086
0.094421
0
0
0
0
0
0
0
0.066087
0.206897
725
22
238
32.954545
0.744348
0.095172
0
0
1
0
0.238897
0.067381
0.066667
0
0
0
0
1
0
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aae300efee4d11b46b531058b099b6f191f06b90
9,776
py
Python
ionoscloud/models/user_properties_put.py
ionos-cloud/ionos-cloud-sdk-python
3c5804697c262898e6f6a438dc40e1b45a4bb5c9
[ "Apache-2.0" ]
null
null
null
ionoscloud/models/user_properties_put.py
ionos-cloud/ionos-cloud-sdk-python
3c5804697c262898e6f6a438dc40e1b45a4bb5c9
[ "Apache-2.0" ]
null
null
null
ionoscloud/models/user_properties_put.py
ionos-cloud/ionos-cloud-sdk-python
3c5804697c262898e6f6a438dc40e1b45a4bb5c9
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ CLOUD API IONOS Enterprise-grade Infrastructure as a Service (IaaS) solutions can be managed through the Cloud API, in addition or as an alternative to the \"Data Center Designer\" (DCD) browser-based tool. Both methods employ consistent concepts and features, deliver similar power and ...
29.18209
438
0.610475
1,130
9,776
5.148673
0.152212
0.059127
0.126504
0.111378
0.481437
0.426435
0.411825
0.243554
0.187865
0.073221
0
0.020351
0.306363
9,776
334
439
29.269461
0.837635
0.415303
0
0.089552
0
0
0.05854
0
0
0
0
0
0
1
0.164179
false
0.08209
0.029851
0
0.328358
0.014925
0
0
0
null
0
0
0
0
0
0
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
2a9d89ef8c931787de0f2577eaa69e5778d9dbf4
2,834
py
Python
cgi-bin/pay_order.py
metallhead01/CREATE_ORDER_HTTP_SERVER
358943cd31616d7e224aa7417092f9b36ed73e40
[ "Unlicense" ]
null
null
null
cgi-bin/pay_order.py
metallhead01/CREATE_ORDER_HTTP_SERVER
358943cd31616d7e224aa7417092f9b36ed73e40
[ "Unlicense" ]
null
null
null
cgi-bin/pay_order.py
metallhead01/CREATE_ORDER_HTTP_SERVER
358943cd31616d7e224aa7417092f9b36ed73e40
[ "Unlicense" ]
null
null
null
#!C:\Users\Rustam\AppData\Local\Programs\Python\Python36\python.exe import time import urllib3 import requests import xml.etree.ElementTree as ET print("Content-type: text/html;charset=utf8\r\n\r\n") print("<html>") #print("<head>Something</head>") print("<body>") def pay_order(i, p, user_name, pass_word): resu...
36.805195
99
0.648553
357
2,834
4.92437
0.420168
0.03413
0.027304
0.027304
0.215017
0.215017
0.192264
0.192264
0.150171
0.150171
0
0.019634
0.209245
2,834
76
100
37.289474
0.764837
0.116796
0
0.083333
0
0
0.206741
0.061652
0
0
0
0
0
1
0.020833
false
0.0625
0.083333
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
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
2a9e8e57c3680412bba4d7561cfb3fbc481f8b23
3,402
py
Python
xnat_dashboards/app/authentication/controllers.py
XNAT-Dashboards/XNAT-Dashboards
a46b47d72cca5e15b02829ef8eb17ac92806af16
[ "MIT" ]
null
null
null
xnat_dashboards/app/authentication/controllers.py
XNAT-Dashboards/XNAT-Dashboards
a46b47d72cca5e15b02829ef8eb17ac92806af16
[ "MIT" ]
4
2021-11-10T19:09:37.000Z
2022-03-04T16:07:19.000Z
xnat_dashboards/app/authentication/controllers.py
XNAT-Dashboards/XNAT-Dashboards
a46b47d72cca5e15b02829ef8eb17ac92806af16
[ "MIT" ]
3
2020-10-20T06:34:20.000Z
2021-11-12T15:51:20.000Z
# Import flask dependencies from flask import Blueprint, render_template, session, request, redirect,\ url_for from xnat_dashboards.app.authentication import model # Define the blueprint: 'auth', set its url prefix: app.url/auth auth = Blueprint('auth', __name__, url_prefix='/auth') # Set the route and accepted...
32.09434
74
0.580247
388
3,402
4.987113
0.301546
0.034109
0.028941
0.031008
0.101292
0.074419
0
0
0
0
0
0.000446
0.340682
3,402
105
75
32.4
0.862238
0.290123
0
0.235294
0
0
0.151
0.021268
0
0
0
0
0
1
0.019608
false
0.058824
0.039216
0
0.156863
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2aa0c226934fabf300d9a0aba19fd166445d5322
679
py
Python
init.py
reckonsys/jatayu
facdf4c37746ab471804ca7b32d576cc8f3b79e1
[ "MIT" ]
null
null
null
init.py
reckonsys/jatayu
facdf4c37746ab471804ca7b32d576cc8f3b79e1
[ "MIT" ]
null
null
null
init.py
reckonsys/jatayu
facdf4c37746ab471804ca7b32d576cc8f3b79e1
[ "MIT" ]
null
null
null
# file: app.py import asyncio import asyncpg from pgorm.postgresql import PostgreSQL from myapp.tables import User async def run(): connection = await asyncpg.connect( user='reckonsys', password='we ❤️ python', database='demo', host='db.reckonsys.com') pg = PostgreSQL(connection) # Lets c...
28.291667
59
0.698085
90
679
5.211111
0.577778
0.044776
0.055437
0.081023
0
0
0
0
0
0
0
0.016071
0.175258
679
23
60
29.521739
0.817857
0.192931
0
0
0
0
0.093923
0
0
0
0
0
0
1
0
false
0.0625
0.25
0
0.25
0.0625
0
0
0
null
0
0
0
0
0
0
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
2aa15bd44a66cdebafbd62ceb302f7b6fc728019
914
py
Python
bgen_reader/_environment.py
sbaker-dev/bgen-reader-py
cc7ab65d307c17410ed5665519ef6ca3ecd4ddfb
[ "MIT" ]
null
null
null
bgen_reader/_environment.py
sbaker-dev/bgen-reader-py
cc7ab65d307c17410ed5665519ef6ca3ecd4ddfb
[ "MIT" ]
null
null
null
bgen_reader/_environment.py
sbaker-dev/bgen-reader-py
cc7ab65d307c17410ed5665519ef6ca3ecd4ddfb
[ "MIT" ]
null
null
null
import os from pathlib import Path from appdirs import user_cache_dir from ._file import make_sure_dir_exist CUSTOM_CACHE = None BGEN_READER_CACHE_HOME = Path( os.environ.get( "BGEN_READER_CACHE_HOME", default=Path(user_cache_dir("bgen-reader", "limix")) / "bgen-reader", ) ) def custom_met...
26.114286
77
0.753829
137
914
4.656934
0.408759
0.125392
0.141066
0.178683
0.164577
0.164577
0.164577
0.164577
0
0
0
0
0.171772
914
34
78
26.882353
0.842801
0.2593
0
0
0
0
0.178737
0.067797
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.277778
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2aa98f4fc67f167e6e23d88d800a468073406b3a
1,246
py
Python
tests/mock_client.py
roman-kachanovsky/cmd.fm-python
3365a9b26bc272fe7a11b404b74cd1920bd72d31
[ "BSD-3-Clause" ]
null
null
null
tests/mock_client.py
roman-kachanovsky/cmd.fm-python
3365a9b26bc272fe7a11b404b74cd1920bd72d31
[ "BSD-3-Clause" ]
null
null
null
tests/mock_client.py
roman-kachanovsky/cmd.fm-python
3365a9b26bc272fe7a11b404b74cd1920bd72d31
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from client.client import DirbleClient class MockClient(DirbleClient): def get_genres(self): return [ { "id": 1, "title": "Trance", "description": "stations that plays commercial and other things in tranc...
28.976744
104
0.429374
104
1,246
5.067308
0.567308
0.056926
0.045541
0
0
0
0
0
0
0
0
0.020588
0.454254
1,246
42
105
29.666667
0.754412
0.017657
0
0.083333
0
0
0.323241
0
0
0
0
0.02381
0
1
0.055556
false
0
0.055556
0.055556
0.194444
0
0
0
0
null
0
0
0
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
2aaaa2cc8b457e0e8aa647debfc628faee60079a
729
py
Python
setup.py
yangzhl/trash
e2a4a3c6c6a7335437bb35e115da358470b5b700
[ "MIT" ]
3
2015-11-01T18:55:15.000Z
2020-01-18T08:18:36.000Z
setup.py
yangzhl/trash
e2a4a3c6c6a7335437bb35e115da358470b5b700
[ "MIT" ]
null
null
null
setup.py
yangzhl/trash
e2a4a3c6c6a7335437bb35e115da358470b5b700
[ "MIT" ]
2
2018-07-30T05:06:30.000Z
2019-01-26T05:41:50.000Z
"""`trash` lives on `GitHub <http://github.com/halst/trash/>`_.""" from distutils.core import setup setup(name='trash', version='0.1.0', description='Safe `rm` substitute for OS X', long_description=__doc__, license='MIT', author='Vladimir Keleshev', author_email='vladimir@keleshev...
34.714286
66
0.573388
74
729
5.540541
0.716216
0.043902
0.068293
0.092683
0
0
0
0
0
0
0
0.007505
0.268861
729
20
67
36.45
0.761726
0.082305
0
0
0
0
0.437406
0.031674
0
0
0
0
0
1
0
true
0
0.058824
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
2ab43748ebad874e6ff9c40c3340059b5a377a5c
3,281
py
Python
export_standard_full.py
MuckRock/API-examples
ba7c46b5c905d9c84c6d16b3cf1df19294259feb
[ "MIT" ]
42
2015-07-11T19:33:53.000Z
2022-03-30T01:05:03.000Z
export_standard_full.py
MuckRock/API-examples
ba7c46b5c905d9c84c6d16b3cf1df19294259feb
[ "MIT" ]
7
2015-08-22T18:31:59.000Z
2019-07-15T04:28:44.000Z
export_standard_full.py
MuckRock/API-examples
ba7c46b5c905d9c84c6d16b3cf1df19294259feb
[ "MIT" ]
11
2017-07-31T00:06:34.000Z
2021-02-27T18:06:48.000Z
#!/usr/bin/env python2 # -- coding: utf-8 -- # Standard Library import datetime import json import os import time # Third Party import requests from simplejson.scanner import JSONDecodeError import utils url = utils.API_URL token = utils.get_api_key() headers = utils.get_headers(token) page = 599 next_ = url + 'fo...
34.536842
98
0.569948
351
3,281
5.182336
0.319088
0.009896
0.019791
0.016493
0.018692
0
0
0
0
0
0
0.005305
0.310576
3,281
94
99
34.904255
0.798851
0.029564
0
0.041096
0
0
0.112649
0.015419
0
0
0
0
0
0
null
null
0
0.109589
null
null
0.09589
0
0
0
null
0
0
0
0
0
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
2ac0b8f96aa23035cca5a93b41373eba684ce124
374
py
Python
core/processors/UNKNOWN_TASKProcessor.py
LoriSun/petp
f3bf52e5e26091d98907f97a6c95c9ddbf4999ae
[ "MIT" ]
4
2021-06-06T11:57:14.000Z
2021-07-18T00:34:09.000Z
core/processors/UNKNOWN_TASKProcessor.py
LoriSun/petp
f3bf52e5e26091d98907f97a6c95c9ddbf4999ae
[ "MIT" ]
null
null
null
core/processors/UNKNOWN_TASKProcessor.py
LoriSun/petp
f3bf52e5e26091d98907f97a6c95c9ddbf4999ae
[ "MIT" ]
1
2021-06-16T16:05:55.000Z
2021-06-16T16:05:55.000Z
import logging from core.processor import Processor class UNKNOWN_TASKProcessor(Processor): TPL: str = '{"msg":""}' DESC: str = f''' This is empty task, only should be used when converting Selenium IDE recording to PETP execution. {TPL} ''' def process(self): loggin...
22
105
0.631016
45
374
5.177778
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.251337
374
16
106
23.375
0.832143
0
0
0
0
0
0.435829
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2ad1587403e5aa3d47b918d305a41a6b367f72ed
9,514
py
Python
GlobalSim_cluster.py
cosmo-epfl/glosim2
a1a919cdc6a618fea60bcc3ce43de47d69d5f5f4
[ "MIT" ]
12
2018-03-16T19:57:02.000Z
2021-12-12T23:26:59.000Z
GlobalSim_cluster.py
cosmo-epfl/glosim2
a1a919cdc6a618fea60bcc3ce43de47d69d5f5f4
[ "MIT" ]
6
2018-03-17T08:35:43.000Z
2020-07-20T12:22:59.000Z
GlobalSim_cluster.py
cosmo-epfl/glosim2
a1a919cdc6a618fea60bcc3ce43de47d69d5f5f4
[ "MIT" ]
8
2018-03-11T22:12:28.000Z
2020-10-18T03:26:23.000Z
from subprocess import Popen from time import time,ctime from libmatch.utils import s2hms,print_logo import cPickle as pck from GlobalSimilarity import get_globalKernel import numpy as np from Pool.mpi_pool import MPIPool import sys,os,argparse import quippy as qp def func(command): p = Popen(command, shell=True) ...
42.284444
171
0.619823
1,241
9,514
4.654311
0.242546
0.031163
0.058864
0.009349
0.169841
0.148892
0.141274
0.096953
0.085873
0.085873
0
0.012308
0.239962
9,514
225
172
42.284444
0.786475
0.069477
0
0.076471
0
0.035294
0.236815
0.023364
0
0
0
0
0
0
null
null
0
0.052941
null
null
0.064706
0
0
0
null
0
0
0
0
0
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
2ad30045165507992ba7a7351cf7c4309cd7b0ef
2,571
py
Python
ait/core/bin/ait_table_decode.py
robschneider16/AIT-Core
628e7f60041c4929b82e55dad1a576fc1e8e5e9f
[ "MIT" ]
1
2019-07-29T20:18:34.000Z
2019-07-29T20:18:34.000Z
ait/core/bin/ait_table_decode.py
seanlu99/AIT-Core
d746079bcff574d930f633bee59337eabf54e99c
[ "MIT" ]
null
null
null
ait/core/bin/ait_table_decode.py
seanlu99/AIT-Core
d746079bcff574d930f633bee59337eabf54e99c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Advanced Multi-Mission Operations System (AMMOS) Instrument Toolkit (AIT) # Bespoke Link to Instruments and Small Satellites (BLISS) # # Copyright 2016, by the California Institute of Technology. ALL RIGHTS # RESERVED. United States Government Sponsorship acknowledged. Any # commercial use must...
32.961538
107
0.710229
317
2,571
5.697161
0.520505
0.024917
0.047065
0.038206
0.192691
0.155039
0.155039
0.088594
0.088594
0.088594
0
0.002426
0.198366
2,571
77
108
33.38961
0.873848
0.363283
0
0
0
0
0.116331
0
0
0
0
0
0
0
null
null
0
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
2adfc75f18c733bbdd83f0c97b0c47cfa2c36ae6
3,440
py
Python
ladderdev/RatingSystemTester.py
fistaco/Smogon-Usage-Stats
59a9c1cf3570a9d68d89e073699cce17b1d999c7
[ "MIT" ]
26
2015-02-23T14:38:11.000Z
2022-01-05T14:25:20.000Z
ladderdev/RatingSystemTester.py
fistaco/Smogon-Usage-Stats
59a9c1cf3570a9d68d89e073699cce17b1d999c7
[ "MIT" ]
14
2015-01-02T02:41:49.000Z
2019-06-23T00:27:50.000Z
ladderdev/RatingSystemTester.py
fistaco/Smogon-Usage-Stats
59a9c1cf3570a9d68d89e073699cce17b1d999c7
[ "MIT" ]
13
2015-02-23T14:38:19.000Z
2021-07-27T21:46:49.000Z
#!/usr/bin/python # -*- coding: latin-1 -*- import sys import gzip import json import math import cPickle as pickle def incorrectSyntax(): sys.stderr.write('Incorrect syntax.\n') sys.stderr.write('Correct usage:\n') sys.stderr.write('\tpython RatingSystemTester.py SYSTEMS [-n] [-w prefix] FILES...\n') sys.stderr....
27.741935
152
0.688372
491
3,440
4.814664
0.272912
0.038071
0.059222
0.057107
0.288494
0.239002
0.216582
0.181049
0.105753
0.105753
0
0.021739
0.130814
3,440
123
153
27.96748
0.768896
0.015988
0
0.306931
0
0.009901
0.201064
0.064459
0
0
0
0
0
0
null
null
0
0.059406
null
null
0.059406
0
0
0
null
0
0
0
0
0
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
2ae0aa6b1951e906616bd23c8fdf335abbb0a38d
439
py
Python
InvenTree/part/migrations/0011_part_revision.py
ArakniD/InvenTree
0ebf2ebd832b2d736e895abe054ca56bfd1cc477
[ "MIT" ]
656
2017-03-29T22:06:14.000Z
2022-03-30T11:23:52.000Z
InvenTree/part/migrations/0011_part_revision.py
ArakniD/InvenTree
0ebf2ebd832b2d736e895abe054ca56bfd1cc477
[ "MIT" ]
1,545
2017-04-10T23:26:04.000Z
2022-03-31T18:32:10.000Z
InvenTree/part/migrations/0011_part_revision.py
fablabbcn/InvenTree
1d7ea7716cc96c6ffd151c822b01cd1fb5dcfecd
[ "MIT" ]
196
2017-03-28T03:06:21.000Z
2022-03-28T11:53:29.000Z
# Generated by Django 2.2.2 on 2019-06-20 11:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('part', '0010_auto_20190620_2135'), ] operations = [ migrations.AddField( model_name='part', name='revision', ...
23.105263
108
0.61959
51
439
5.215686
0.784314
0.015038
0
0
0
0
0
0
0
0
0
0.10559
0.266515
439
18
109
24.388889
0.720497
0.102506
0
0
1
0
0.178571
0.058673
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
2aeb20cff06eff048fca3c26e48ee660721ba3f6
1,000
py
Python
watering-plants-ii/watering-plants-ii.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
watering-plants-ii/watering-plants-ii.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
watering-plants-ii/watering-plants-ii.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
class Solution: def minimumRefill(self, plants: List[int], capacityA: int, capacityB: int) -> int: """ [2,2,4,3,3] A = 5, B = 5 cans = 1 1 2 [1,2,4,4,5] A = 6, B = 2 cans = 3 0,3 1,1 (c-(sum%c)) ...
27.027027
86
0.383
130
1,000
2.784615
0.261538
0.077348
0.058011
0.09116
0
0
0
0
0
0
0
0.05726
0.511
1,000
37
87
27.027027
0.683027
0.14
0
0
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.157895
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
2aecf9e6f72a20d941fff5a88ae28947a5b4b7ba
2,155
py
Python
db/fixUnFormatedData.py
yankj12/interview
a0b13e81099edce8c008c4a6f1434ce0e8bc6c65
[ "MIT" ]
null
null
null
db/fixUnFormatedData.py
yankj12/interview
a0b13e81099edce8c008c4a6f1434ce0e8bc6c65
[ "MIT" ]
72
2017-12-12T11:11:23.000Z
2018-10-09T01:34:06.000Z
db/fixUnFormatedData.py
yankj12/interview
a0b13e81099edce8c008c4a6f1434ce0e8bc6c65
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- ''' 转换以下字段的格式 birth yyyy/MM graduateMonth yyyy/MM firstJobBeginMonth yyyy/MM firstPhoneCallTime yyyy-MM-dd HH:mm:ss firstInterviewTime yyyy-MM-dd HH:mm:ss secondInterviewTime yyyy-MM-dd HH:mm:ss ''' __author__ = 'yankj12' from pymongo import MongoClient #from bson.o...
24.770115
80
0.703016
273
2,155
5.347985
0.289377
0.106849
0.021918
0.027397
0.40137
0.328082
0.289726
0.221918
0.221918
0.221918
0
0.001657
0.160093
2,155
86
81
25.05814
0.804972
0.106265
0
0.210526
0
0
0.123561
0
0
0
0
0
0
0
null
null
0.026316
0.131579
null
null
0.052632
0
0
0
null
0
0
0
0
0
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
2afb532f197a0b9af8951765e06408428216cd38
1,113
py
Python
happy_birthday_drchrono/drchronoAPI/api.py
TimothyBest/Happy_Birthday_drchrono
d70a1d9ffd01197d880be5bcd6df06f774bd010f
[ "MIT" ]
null
null
null
happy_birthday_drchrono/drchronoAPI/api.py
TimothyBest/Happy_Birthday_drchrono
d70a1d9ffd01197d880be5bcd6df06f774bd010f
[ "MIT" ]
null
null
null
happy_birthday_drchrono/drchronoAPI/api.py
TimothyBest/Happy_Birthday_drchrono
d70a1d9ffd01197d880be5bcd6df06f774bd010f
[ "MIT" ]
null
null
null
import requests, urllib # TODO: make generic API get function def get_patients(user, parameters={}): social = user.social_auth.get(user=user) access_token = social.extra_data['access_token'] headers = {'Authorization': 'Bearer {0}'.format(access_token)} patients = [] patients_url = 'https://drch...
35.903226
86
0.684636
139
1,113
5.33813
0.302158
0.088949
0.053908
0.06469
0.504043
0.444744
0.444744
0.444744
0.444744
0.444744
0
0.0022
0.183288
1,113
30
87
37.1
0.814081
0.083558
0
0.26087
0
0
0.156496
0
0
0
0
0.033333
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
2aff0564e4af2468c8954d208847276a8c47fc19
983
py
Python
mtgjson5/classes/mtgjson_deck_header.py
0az/mtgjson
64e4e0a452911418e608df932fbf12af5dcb1a35
[ "MIT" ]
512
2016-07-15T20:42:54.000Z
2022-03-09T13:36:15.000Z
mtgjson5/classes/mtgjson_deck_header.py
0az/mtgjson
64e4e0a452911418e608df932fbf12af5dcb1a35
[ "MIT" ]
1,037
2016-07-19T07:23:11.000Z
2022-03-29T17:38:07.000Z
mtgjson5/classes/mtgjson_deck_header.py
0az/mtgjson
64e4e0a452911418e608df932fbf12af5dcb1a35
[ "MIT" ]
142
2016-07-22T15:44:44.000Z
2021-12-16T07:20:06.000Z
""" MTGJSON Singular Deck Header Object """ from typing import Any, Dict from ..classes.mtgjson_deck import MtgjsonDeckObject from ..utils import to_camel_case class MtgjsonDeckHeaderObject: """ MTGJSON Singular Deck Header Object """ code: str file_name: str name: str release_date: str ...
23.97561
63
0.615463
118
983
4.889831
0.40678
0.103986
0.065858
0.086655
0.107452
0
0
0
0
0
0
0
0.298067
983
40
64
24.575
0.836232
0.160732
0
0
0
0
0.002674
0
0
0
0
0
0
1
0.095238
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
63015d2568ef400ffcda8cc56b83bbf88851dc60
620
py
Python
server/api/bin/api_start.py
mminamina/311-data
9a3e4dc6e14c7500fc3f75f583c7fc4b01108b29
[ "MIT" ]
null
null
null
server/api/bin/api_start.py
mminamina/311-data
9a3e4dc6e14c7500fc3f75f583c7fc4b01108b29
[ "MIT" ]
null
null
null
server/api/bin/api_start.py
mminamina/311-data
9a3e4dc6e14c7500fc3f75f583c7fc4b01108b29
[ "MIT" ]
null
null
null
import sys from os.path import join, dirname sys.path.append(join(dirname(__file__), '../src')) def update(): from datetime import datetime import time import db import pb time.sleep(5) last_updated = db.info.last_updated() time_since_update = datetime.utcnow() - last_updated if time...
19.375
56
0.667742
81
620
4.851852
0.481481
0.083969
0.076336
0
0
0
0
0
0
0
0
0.004211
0.233871
620
31
57
20
0.823158
0
0
0
0
0
0.022581
0
0
0
0
0
0
1
0.045455
false
0
0.409091
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
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
6302375a8e83e807e4129e5c129d79410c46e496
4,160
py
Python
settings.py
Eforcers/python-gae-template
297fd8f92c894571bb05c478c18d954457929902
[ "Apache-2.0" ]
1
2018-06-21T12:03:52.000Z
2018-06-21T12:03:52.000Z
settings.py
Eforcers/python-gae-template
297fd8f92c894571bb05c478c18d954457929902
[ "Apache-2.0" ]
null
null
null
settings.py
Eforcers/python-gae-template
297fd8f92c894571bb05c478c18d954457929902
[ "Apache-2.0" ]
null
null
null
#-*- coding: utf-8 -*- # vim: set fileencoding=utf-8 """ settings.py Configuration for Flask app Important: Place your keys in the secret_keys.py module, which should be kept out of version control. """ import logging import os import urllib from secret_keys import CSRF_SECRET_KEY, SESSION_KEY class C...
28.689655
79
0.652885
533
4,160
4.966229
0.324578
0.037401
0.030223
0.016623
0.124292
0.06309
0.057424
0
0
0
0
0.006464
0.25625
4,160
144
80
28.888889
0.849063
0.348077
0
0.202703
0
0.013514
0.124312
0.018883
0
0
0
0.006944
0
1
0.054054
false
0
0.081081
0
0.621622
0
0
0
0
null
0
0
0
0
0
0
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
63088345750e5ea8f9815a53e4cca4bacf69c332
13,042
py
Python
fidimag/micro/dmi.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
53
2016-02-27T09:40:21.000Z
2022-01-19T21:37:44.000Z
fidimag/micro/dmi.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
132
2016-02-26T13:18:58.000Z
2021-12-01T21:52:42.000Z
fidimag/micro/dmi.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
32
2016-02-26T13:21:40.000Z
2022-03-08T08:54:51.000Z
import fidimag.extensions.micro_clib as micro_clib import numpy as np from .energy import Energy from fidimag.common.constant import mu_0 import fidimag.common.helper as helper # import gc class DMI(Energy): """ Compute the Dzyaloshinskii-Moriya interaction in the micromagnetic framework. Currently, the...
45.284722
91
0.346879
1,299
13,042
3.404927
0.230177
0.041149
0.036627
0.032557
0.205743
0.15849
0.141985
0.128194
0.092471
0.092471
0
0.048286
0.561724
13,042
287
92
45.442509
0.725507
0.590324
0
0.398148
0
0
0.040766
0
0
0
0
0
0
1
0.027778
false
0
0.046296
0
0.092593
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
6308f4e2bf1cb559c530cb4a366d871c8ef80e30
1,472
py
Python
logstash/handler_tcp.py
MWedl/python-logstash
d318f3c3a91576a6d86522506aad5e04c479ee60
[ "MIT" ]
1
2019-06-27T19:39:15.000Z
2019-06-27T19:39:15.000Z
logstash/handler_tcp.py
MWedl/python-logstash
d318f3c3a91576a6d86522506aad5e04c479ee60
[ "MIT" ]
null
null
null
logstash/handler_tcp.py
MWedl/python-logstash
d318f3c3a91576a6d86522506aad5e04c479ee60
[ "MIT" ]
1
2019-07-03T14:36:09.000Z
2019-07-03T14:36:09.000Z
from logging.handlers import DatagramHandler, SocketHandler from logstash import formatter # Derive from object to force a new-style class and thus allow super() to work # on Python 2.6 class TCPLogstashHandler(SocketHandler, object): """Python logging handler for Logstash. Sends events over TCP. :param host:...
50.758621
113
0.695652
183
1,472
5.448087
0.431694
0.060181
0.068205
0.066199
0
0
0
0
0
0
0
0.011515
0.233016
1,472
28
114
52.571429
0.871568
0.450408
0
0
0
0
0.013072
0
0
0
0
0
0
1
0.181818
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
0
0
0
0
0
1
0
0
1
63091deb35976b2e461320d7950201b92d9be71a
1,420
py
Python
lib/python2.7/site-packages/appionlib/apWebScript.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/appionlib/apWebScript.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/appionlib/apWebScript.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
### webscripting #python import MySQLdb #appion from appionlib import appiondata #leginon import sinedon #===================== def setJobToRun(jobid): if getJobStatus(jobid) == "R": return False return setJobStatus(jobid, "R") #===================== def setJobToDone(jobid): if getJobStatus(jobid) == "D": ret...
20.882353
59
0.633099
163
1,420
5.496933
0.386503
0.073661
0.084821
0.080357
0.256696
0.142857
0.142857
0.142857
0.142857
0
0
0.000832
0.153521
1,420
67
60
21.19403
0.744592
0.126056
0
0.217391
0
0
0.137818
0
0
0
0
0
0
0
null
null
0
0.065217
null
null
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
0
0
1
0
0
0
0
0
0
0
0
1
630aa7afd165317882faa480db36d08ab3522c89
1,050
py
Python
scikits/statsmodels/examples/example_kde.py
matthew-brett/statsmodels
915c9dc2d762c5592ac17a7cf5f1cc957fcbde1c
[ "BSD-3-Clause" ]
null
null
null
scikits/statsmodels/examples/example_kde.py
matthew-brett/statsmodels
915c9dc2d762c5592ac17a7cf5f1cc957fcbde1c
[ "BSD-3-Clause" ]
null
null
null
scikits/statsmodels/examples/example_kde.py
matthew-brett/statsmodels
915c9dc2d762c5592ac17a7cf5f1cc957fcbde1c
[ "BSD-3-Clause" ]
null
null
null
from scipy import stats import numpy as np from scikits.statsmodels.sandbox.distributions.mixture_rvs import mixture_rvs from scikits.statsmodels.nonparametric.kde import (kdensity, kdensityfft) import matplotlib.pyplot as plt np.random.seed(12345) obs_dist = mixture_rvs([.25,.75], size=10000, dist=[stats.norm, stats....
36.206897
82
0.720952
166
1,050
4.475904
0.439759
0.065949
0.043069
0.069987
0.364738
0.363392
0.306864
0.306864
0.306864
0.218035
0
0.045553
0.121905
1,050
28
83
37.5
0.760304
0.346667
0
0
0
0
0.02651
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
630c6866b93636e7c59862428e1bfb9bb3a1740d
534
py
Python
couchbasekit/__init__.py
ardydedase/couchbasekit
8ae475ace9a1567857f0e732e2a3b646e50f91a0
[ "MIT" ]
3
2016-11-15T02:02:48.000Z
2020-04-29T04:06:20.000Z
couchbasekit/__init__.py
ardydedase/couchbasekit
8ae475ace9a1567857f0e732e2a3b646e50f91a0
[ "MIT" ]
null
null
null
couchbasekit/__init__.py
ardydedase/couchbasekit
8ae475ace9a1567857f0e732e2a3b646e50f91a0
[ "MIT" ]
3
2015-03-29T22:45:44.000Z
2016-08-05T21:35:25.000Z
#! /usr/bin/env python """ couchbasekit ~~~~~~~~~~~~ A wrapper around CouchBase Python driver for document validation and more. :website: http://github.com/kirpit/couchbasekit :copyright: Copyright 2013, Roy Enjoy <kirpit *at* gmail.com>, see AUTHORS.txt. :license: MIT, see LICENSE.txt for details. """ from couchbase...
24.272727
79
0.745318
67
534
5.791045
0.656716
0.123711
0
0
0
0
0
0
0
0
0
0.015184
0.136704
534
22
80
24.272727
0.826464
0.554307
0
0
0
0
0.038961
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
630dd8da19a418640aaa8c3ee3d9c429b39649aa
191
py
Python
18.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
18.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
18.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
word = input("Enter a number: ") word = int(word) count =10 while True: temp = word % 10 word = word//10 if temp % 2==0: print(temp,end="") if word == 0: break
19.1
32
0.52356
29
191
3.448276
0.586207
0.12
0
0
0
0
0
0
0
0
0
0.069767
0.324607
191
10
33
19.1
0.705426
0
0
0
0
0
0.083333
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
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
6311e5d744220189c614e8c6cb901fe13da81d8f
2,163
py
Python
KancolleConnector.py
zigoni/KancolleConnecotr
a9ba4d5a62078beeefbc97794e50d33881621d86
[ "MIT" ]
2
2015-09-14T05:18:22.000Z
2018-05-10T15:15:16.000Z
KancolleConnector.py
zigoni/KancolleConnecotr
a9ba4d5a62078beeefbc97794e50d33881621d86
[ "MIT" ]
null
null
null
KancolleConnector.py
zigoni/KancolleConnecotr
a9ba4d5a62078beeefbc97794e50d33881621d86
[ "MIT" ]
null
null
null
import os import random from flask import Flask, request, abort, session, render_template from requests.exceptions import ReadTimeout from kcc import get_play_url, DmmTokenError, TokenError, AjaxRequestError, LoginError app = Flask(__name__) def get_random_string(length=16, allowed_chars='abcdefghijkmnpqrstuvwxyzABC...
38.625
110
0.687933
263
2,163
5.425856
0.361217
0.050456
0.070077
0.042046
0.174492
0.147863
0.105116
0.105116
0.074282
0
0
0.025974
0.18123
2,163
55
111
39.327273
0.779785
0
0
0.045455
0
0
0.196024
0.074896
0
0
0
0
0
1
0.090909
false
0.068182
0.113636
0.022727
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
1
0
0
0
0
0
1
6316ec14fe8a84b59230bf1d0d17084a61a3f771
611
py
Python
src/post/migrations/0003_auto_20161113_1742.py
pandeydivesh15/item_sharing_portal
c814d5cf0a7b34d73d8155e508a0cf4f334af199
[ "MIT" ]
1
2019-11-04T16:45:27.000Z
2019-11-04T16:45:27.000Z
src/post/migrations/0003_auto_20161113_1742.py
pandeydivesh15/item_sharing_portal
c814d5cf0a7b34d73d8155e508a0cf4f334af199
[ "MIT" ]
null
null
null
src/post/migrations/0003_auto_20161113_1742.py
pandeydivesh15/item_sharing_portal
c814d5cf0a7b34d73d8155e508a0cf4f334af199
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-11-13 17:42 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('post', '0002_post_is_share_post'), ] operations = [ migrations.RemoveField(...
23.5
67
0.592471
66
611
5.242424
0.636364
0.040462
0.063584
0.098266
0
0
0
0
0
0
0
0.053118
0.291326
611
25
68
24.44
0.745958
0.111293
0
0.222222
1
0
0.12037
0.042593
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
631ac0b45063ce71d103dd0826c3bcd6bda524cd
859
py
Python
municipios/views.py
coletivoEITA/django-municipios
2ae0fa153c556f4f80535ff35d0e24aedcc71973
[ "MIT" ]
null
null
null
municipios/views.py
coletivoEITA/django-municipios
2ae0fa153c556f4f80535ff35d0e24aedcc71973
[ "MIT" ]
null
null
null
municipios/views.py
coletivoEITA/django-municipios
2ae0fa153c556f4f80535ff35d0e24aedcc71973
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.core.urlresolvers import reverse from django.db.models import Q from django.http import HttpResponse from django.shortcuts import render from django.apps import apps from municipios.forms import FormMunicipio def base_url_js(request): return HttpResponse(u"var __municipios_bas...
26.030303
96
0.704307
110
859
5.309091
0.463636
0.085616
0.058219
0.061644
0
0
0
0
0
0
0
0.001429
0.185099
859
32
97
26.84375
0.832857
0.024447
0
0.173913
0
0
0.156699
0.093301
0
0
0
0
0
1
0.130435
false
0
0.26087
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
632690a62e54300dd85135aedae0b64e9190149b
63,717
py
Python
Drawbotextension/KM-Laser-master/km_box_flexpath.py
fabloch/DrawbotInkscapeExtensions
36cdd14034b702f0b9150aefeea75a58d23b1c9b
[ "CC0-1.0" ]
null
null
null
Drawbotextension/KM-Laser-master/km_box_flexpath.py
fabloch/DrawbotInkscapeExtensions
36cdd14034b702f0b9150aefeea75a58d23b1c9b
[ "CC0-1.0" ]
null
null
null
Drawbotextension/KM-Laser-master/km_box_flexpath.py
fabloch/DrawbotInkscapeExtensions
36cdd14034b702f0b9150aefeea75a58d23b1c9b
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # paths2flex.py # This is an Inkscape extension to generate boxes with sides as flex which follow a path selected in inkscape # The Inkscape objects must first be converted to paths (Path > Object to Path). # Some paths may not work well -- if the curves are too small for example. # Written ...
47.023616
376
0.556382
8,674
63,717
3.994236
0.103182
0.025977
0.013162
0.013854
0.382815
0.324049
0.272384
0.236045
0.208711
0.184523
0
0.029596
0.321751
63,717
1,355
377
47.023616
0.772029
0.267762
0
0.240148
1
0
0.07343
0
0
0
0
0
0
1
0.04803
false
0.028325
0.008621
0.006158
0.10468
0.002463
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
6326c1bedc4cb76535916b3f830dbaa33309b251
9,611
py
Python
HW4/submission/PART II/code/graph_cut_controller.py
ardaduz/math-cgv
bc89c0ce9beca9a9f02ca23bcf4a9116be187882
[ "MIT" ]
null
null
null
HW4/submission/PART II/code/graph_cut_controller.py
ardaduz/math-cgv
bc89c0ce9beca9a9f02ca23bcf4a9116be187882
[ "MIT" ]
null
null
null
HW4/submission/PART II/code/graph_cut_controller.py
ardaduz/math-cgv
bc89c0ce9beca9a9f02ca23bcf4a9116be187882
[ "MIT" ]
1
2021-02-14T10:41:17.000Z
2021-02-14T10:41:17.000Z
import numpy as np import scipy.ndimage as ndimage import matplotlib.pyplot as plt from skimage import data, color, img_as_float from tkinter import * from PIL import Image from graph_cut import GraphCut from graph_cut_gui import GraphCutGui class GraphCutController: def __init__(self): self.__init_view...
42.153509
126
0.604516
1,264
9,611
4.383703
0.181962
0.050532
0.030861
0.040426
0.186248
0.157372
0.118751
0.095651
0.083739
0.063165
0
0.025706
0.299761
9,611
227
127
42.339207
0.797623
0.19665
0
0.071942
0
0
0.008174
0
0
0
0
0.017621
0
1
0.057554
false
0
0.057554
0
0.158273
0.021583
0
0
0
null
0
0
0
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
632885ec4e34d4f6222d1c0116484306d1c37b08
803
py
Python
notaso/restapiv2/filters.py
jpadilla/notaso
1c2f94d36b3d360d70f6c9937beb053beb8d8ad3
[ "MIT" ]
11
2017-03-16T21:47:51.000Z
2021-11-30T12:38:59.000Z
notaso/restapiv2/filters.py
jpadilla/notaso
1c2f94d36b3d360d70f6c9937beb053beb8d8ad3
[ "MIT" ]
43
2015-01-13T14:14:48.000Z
2021-12-29T14:21:25.000Z
notaso/restapiv2/filters.py
jpadilla/notaso
1c2f94d36b3d360d70f6c9937beb053beb8d8ad3
[ "MIT" ]
5
2015-09-27T15:05:36.000Z
2019-05-14T17:09:06.000Z
import django_filters from ..professors.models import Professor from ..universities.models import University class UniversityFilter(django_filters.FilterSet): """ Filter by University city """ class Meta: model = University fields = ["name", "city"] class ProfessorFilter(django_fil...
26.766667
88
0.714819
82
803
6.768293
0.317073
0.140541
0.12973
0.151351
0.345946
0.151351
0
0
0
0
0
0
0.1868
803
29
89
27.689655
0.849923
0.127024
0
0.142857
0
0
0.160661
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
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
2d4bc5ce9da9e5c6e8de1f1dc3fa2af58210a775
1,436
py
Python
maestro/providers/aws/check_existence.py
tunein/Maestro
789205fdbe85242189c50e407445c57ca916e42c
[ "Apache-2.0" ]
12
2018-04-25T22:37:58.000Z
2021-08-24T07:25:31.000Z
maestro/providers/aws/check_existence.py
tunein/Maestro
789205fdbe85242189c50e407445c57ca916e42c
[ "Apache-2.0" ]
4
2018-04-30T05:57:56.000Z
2019-01-29T03:52:53.000Z
maestro/providers/aws/check_existence.py
tunein/Maestro
789205fdbe85242189c50e407445c57ca916e42c
[ "Apache-2.0" ]
2
2018-05-18T17:17:56.000Z
2021-09-21T19:43:51.000Z
#External libs import boto3 import sys import json import os from botocore.exceptions import ClientError #Establish our boto resources client = boto3.client('lambda') #This is only here for printing pretty colors class color: PURPLE = '\033[95m' CYAN = '\033[96m' DARKCYAN = '\033[36m' BLUE = '\033[94m...
24.758621
113
0.631616
190
1,436
4.726316
0.531579
0.066815
0.046771
0.040089
0.158129
0.158129
0.158129
0
0
0
0
0.048804
0.272284
1,436
58
114
24.758621
0.810526
0.302925
0
0.222222
0
0
0.129101
0
0
0
0
0
0
1
0.055556
false
0
0.138889
0
0.583333
0.083333
0
0
0
null
0
0
0
0
0
0
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
2d5c479bd6169ec27c965010c22ebf97e330fa7c
356
py
Python
sso_trial/routing.py
ujjawal01/temporary-repo
0532dd1b016e8da4fc335582f9d4aef476e40d15
[ "MIT" ]
null
null
null
sso_trial/routing.py
ujjawal01/temporary-repo
0532dd1b016e8da4fc335582f9d4aef476e40d15
[ "MIT" ]
7
2021-03-19T08:56:15.000Z
2022-03-12T00:38:12.000Z
sso_trial/routing.py
ujjawal01/temporary-repo
0532dd1b016e8da4fc335582f9d4aef476e40d15
[ "MIT" ]
null
null
null
from channels.routing import ProtocolTypeRouter, URLRouter from django.conf.urls import url from channels.http import AsgiHandler from channels.auth import AuthMiddlewareStack import news.routing application = ProtocolTypeRouter({ "websocket": AuthMiddlewareStack( URLRouter( news.routing.webso...
25.428571
58
0.752809
34
356
7.852941
0.529412
0.134831
0
0
0
0
0
0
0
0
0
0
0.185393
356
14
59
25.428571
0.92069
0
0
0
0
0
0.02521
0
0
0
0
0
0
1
0
false
0
0.416667
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
0
0
0
1
0
0
0
0
1
2d5d0521ee11a4637db02a3f43a529ff946f5324
1,068
py
Python
setup.py
Tinggaard/pathfinding
90497208f5f761a64e099b42159157de45176b4a
[ "MIT" ]
null
null
null
setup.py
Tinggaard/pathfinding
90497208f5f761a64e099b42159157de45176b4a
[ "MIT" ]
null
null
null
setup.py
Tinggaard/pathfinding
90497208f5f761a64e099b42159157de45176b4a
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='pathfinding', version='0.1.0', # metadata author='Jens Tinggaard', author_email='tinggaard@yahoo.com', description='Using pathfinding algorithms to solve mazes.', keywords='pathfinding maze labyrith astar dijkstra breadthfirst depthfirst solving da...
28.105263
97
0.659176
115
1,068
6.026087
0.791304
0.023088
0.054834
0
0
0
0
0
0
0
0
0.00716
0.215356
1,068
37
98
28.864865
0.819809
0.160112
0
0.066667
0
0
0.416009
0.036077
0
0
0
0
0
1
0
true
0
0.033333
0
0.033333
0
0
0
0
null
0
0
0
0
0
0
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
2d5ec44ae147b214ff0844847dab967bbdfcba25
2,804
py
Python
carpool.py
JackMao981/Carpool
c7ca26146b9cac288ad38fc02635bc554230f475
[ "Apache-2.0" ]
null
null
null
carpool.py
JackMao981/Carpool
c7ca26146b9cac288ad38fc02635bc554230f475
[ "Apache-2.0" ]
null
null
null
carpool.py
JackMao981/Carpool
c7ca26146b9cac288ad38fc02635bc554230f475
[ "Apache-2.0" ]
null
null
null
import numpy as np import math from generate_schedule import * def adjacent(g,node, n): """ find all adjacent nodes of input node in g g: 2D array of numbers, the adjacency matrix node: int, the node whose neighber you wanna find return: a list of ints """ result = [] for i in range(...
24.814159
82
0.522468
408
2,804
3.553922
0.254902
0.044138
0.016552
0.02069
0.227586
0.227586
0.161379
0.161379
0.161379
0.161379
0
0.01261
0.349501
2,804
112
83
25.035714
0.782346
0.327746
0
0.066667
1
0
0.014286
0
0
0
0
0
0
1
0.083333
false
0
0.05
0
0.2
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2d6086c96772cbc049204bdaf05dd83b83ce9291
1,844
py
Python
tracardi_aws_sqs/model/model.py
Tracardi/tracardi-aws-sqs-connector
e2b0d8bd72e324bf5d0ab65b3680441847108c5e
[ "MIT" ]
null
null
null
tracardi_aws_sqs/model/model.py
Tracardi/tracardi-aws-sqs-connector
e2b0d8bd72e324bf5d0ab65b3680441847108c5e
[ "MIT" ]
null
null
null
tracardi_aws_sqs/model/model.py
Tracardi/tracardi-aws-sqs-connector
e2b0d8bd72e324bf5d0ab65b3680441847108c5e
[ "MIT" ]
null
null
null
from typing import Any from pydantic import validator, create_model, AnyHttpUrl from pydantic.main import BaseModel from tracardi.domain.entity import Entity class AwsIamAuth(BaseModel): aws_access_key_id: str aws_secret_access_key: str class Content(BaseModel): content: str type: str @validat...
26.724638
102
0.60846
214
1,844
5.126168
0.38785
0.073838
0.04649
0.060164
0.156791
0.12124
0.12124
0.089335
0.089335
0.089335
0
0.002333
0.302603
1,844
68
103
27.117647
0.8507
0
0
0.192308
0
0
0.109544
0
0
0
0
0
0
1
0.096154
false
0
0.076923
0.038462
0.519231
0
0
0
0
null
0
0
0
0
0
0
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