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
05f5c4200cb6e9a7f74bc3a20114687cb596c358
277
py
Python
language_features/loops/for_continue.py
PrasadHonrao/python-samples
faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a
[ "MIT" ]
3
2018-08-20T13:00:01.000Z
2021-09-18T04:19:46.000Z
language_features/loops/for_continue.py
PrasadHonrao/python-samples
faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a
[ "MIT" ]
1
2021-06-25T20:25:02.000Z
2021-08-19T22:44:31.000Z
language_features/loops/for_continue.py
PrasadHonrao/python-samples
faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a
[ "MIT" ]
1
2021-09-18T23:51:20.000Z
2021-09-18T23:51:20.000Z
programming_languages = ["Python", "Scala", "Haskell", "F#", "C#", "JavaScript"] for lang in programming_languages: if (lang == "Haskell"): continue print("Found Haskell !!!", end='\n') # this statement will never be executed print(lang, end=' ')
39.571429
85
0.602888
31
277
5.322581
0.741935
0.242424
0
0
0
0
0
0
0
0
0
0
0.220217
277
7
86
39.571429
0.763889
0.133574
0
0
0
0
0.253219
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
1
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
2
05fc40877c0f99b6531ab92da8b5b8418ae240a6
341
py
Python
cacheback/tasks.py
kevin-brown/django-cacheback
f34b1942a90f13e9eaa7833c82df8190a32816d9
[ "MIT" ]
160
2015-01-02T05:55:29.000Z
2022-03-28T19:33:40.000Z
cacheback/tasks.py
kevin-brown/django-cacheback
f34b1942a90f13e9eaa7833c82df8190a32816d9
[ "MIT" ]
57
2015-01-08T03:32:55.000Z
2022-01-25T07:59:33.000Z
cacheback/tasks.py
kevin-brown/django-cacheback
f34b1942a90f13e9eaa7833c82df8190a32816d9
[ "MIT" ]
66
2015-01-13T14:41:59.000Z
2022-03-31T16:24:45.000Z
from celery import shared_task from django.conf import settings @shared_task(ignore_result=getattr(settings, 'CACHEBACK_TASK_IGNORE_RESULT', False)) def refresh_cache(klass_str, obj_args, obj_kwargs, call_args, call_kwargs): from .base import Job Job.perform_async_refresh(klass_str, obj_args, obj_kwargs, cal...
34.1
86
0.815249
52
341
4.980769
0.5
0.07722
0.123552
0.11583
0.324324
0.324324
0.324324
0.324324
0.324324
0.324324
0
0
0.108504
341
9
87
37.888889
0.851974
0
0
0
0
0
0.082111
0.082111
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
af02a1d8b4580c6edee5866051174448c3182111
1,086
py
Python
backend/models.py
Virace/pdblog
d9a3e1df45e5e8b68c8c066e30b5ffb7d9f63e6c
[ "Apache-2.0" ]
null
null
null
backend/models.py
Virace/pdblog
d9a3e1df45e5e8b68c8c066e30b5ffb7d9f63e6c
[ "Apache-2.0" ]
null
null
null
backend/models.py
Virace/pdblog
d9a3e1df45e5e8b68c8c066e30b5ffb7d9f63e6c
[ "Apache-2.0" ]
null
null
null
from django.db import models # Create your models here. class Users(models.Model): status_list = ( ('0', '正常'), ('1', '封禁'), ('9', '删除') ) login = models.CharField(verbose_name='用户名', max_length=15, unique=True, null=False) passw = models.CharField(verbose_name='密码', max_lengt...
35.032258
88
0.699816
145
1,086
5.096552
0.434483
0.163735
0.17862
0.211096
0.173207
0.116373
0.116373
0.116373
0.116373
0
0
0.01741
0.153775
1,086
30
89
36.2
0.786725
0.022099
0
0
0
0
0.037771
0
0
0
0
0
0
1
0
false
0.047619
0.047619
0
0.809524
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
1
0
0
2
af0358ec5f3e948ae2556d56b80e029312055c69
464
py
Python
src/admin/database/demo.py
aimanow/sft
dce87ffe395ae4bd08b47f28e07594e1889da819
[ "Apache-2.0" ]
280
2016-07-19T09:59:02.000Z
2022-03-05T19:02:48.000Z
database/demo.py
YAR-SEN/GodMode2
d8a79b45c6d8b94f3d2af3113428a87d148d20d0
[ "WTFPL" ]
3
2016-07-20T05:36:49.000Z
2018-12-10T16:16:19.000Z
database/demo.py
YAR-SEN/GodMode2
d8a79b45c6d8b94f3d2af3113428a87d148d20d0
[ "WTFPL" ]
20
2016-07-20T10:51:34.000Z
2022-01-12T23:15:22.000Z
import sqlalchemy as sa from sqlalchemy.orm import relationship from godmode.database import database demo_database = database("sqlite:///database/demo.sqlite", connect_args={"check_same_thread": False}) class User(demo_database.TableBase): __table__ = sa.Table('users', demo_database.metadata, autoload=True) ...
25.777778
101
0.769397
58
464
5.87931
0.465517
0.175953
0.123167
0.152493
0.381232
0.193548
0
0
0
0
0
0
0.116379
464
17
102
27.294118
0.831707
0
0
0
0
0
0.131466
0.064655
0
0
0
0
0
1
0
false
0
0.333333
0
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
1
0
0
2
af07e4dd31a4914cbd33a4acf8cebab169c6aa64
155
py
Python
Pattern/45_pattern.py
manish1822510059/Python-1000-program
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
1
2021-03-06T03:33:42.000Z
2021-03-06T03:33:42.000Z
Pattern/45_pattern.py
manish1822510059/Python-1000-programs
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
null
null
null
Pattern/45_pattern.py
manish1822510059/Python-1000-programs
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
null
null
null
inc = 1 num = 1 for x in range (5,0,-1): for y in range(x,0,-1): print(" ",end="") print(str(num)*inc) num += 2 inc += 2
19.375
28
0.425806
28
155
2.357143
0.5
0.121212
0
0
0
0
0
0
0
0
0
0.092784
0.374194
155
8
29
19.375
0.587629
0
0
0
0
0
0.006711
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
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
2
af211838f27e90551ce31e75a4e8a30fd35abf54
668
py
Python
minibot/bs_repr.py
cornell-cup/cs-reminibot
411d1ed4b4f67f07f3608cb6ddb7f0b8d7a22b24
[ "Apache-2.0" ]
5
2020-09-05T18:57:33.000Z
2022-03-15T00:14:57.000Z
minibot/bs_repr.py
cornell-cup/cs-reminibot
411d1ed4b4f67f07f3608cb6ddb7f0b8d7a22b24
[ "Apache-2.0" ]
33
2019-11-07T22:42:13.000Z
2022-02-05T17:54:50.000Z
minibot/bs_repr.py
cornell-cup/cs-reminibot
411d1ed4b4f67f07f3608cb6ddb7f0b8d7a22b24
[ "Apache-2.0" ]
10
2019-09-28T16:44:10.000Z
2022-03-12T20:23:50.000Z
from collections import deque from socket import socket import time class BS_Repr: """ Represents a basestation that the Minibot is communicating with """ TIMEOUT_LIMIT = 5 def __init__(self, conn_sock: socket): self.last_status_time = time.time() self.conn_sock = conn_sock def ...
27.833333
81
0.672156
89
668
4.786517
0.47191
0.093897
0.098592
0.126761
0.122066
0.122066
0
0
0
0
0
0.001988
0.247006
668
23
82
29.043478
0.84493
0.270958
0
0.153846
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.230769
0
0.692308
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
af287649caf833c7e12356bc40221f779ead86ac
4,036
py
Python
server-python3/wspty/PromptTerminal.py
Aaron-Ming/websocket_terminal
42c24391d51c275eabf1f879fb312b9a3614f51e
[ "MIT" ]
40
2016-11-20T09:48:27.000Z
2021-04-02T00:29:14.000Z
server-python3/wspty/PromptTerminal.py
Aaron-Ming/websocket_terminal
42c24391d51c275eabf1f879fb312b9a3614f51e
[ "MIT" ]
6
2018-01-07T03:43:22.000Z
2022-03-21T08:43:33.000Z
server-python3/wspty/PromptTerminal.py
glensc/websocket_terminal
42c24391d51c275eabf1f879fb312b9a3614f51e
[ "MIT" ]
20
2016-12-02T06:00:27.000Z
2021-08-15T11:40:34.000Z
import subprocess import sys import eventlet.queue import eventlet.tpool import eventlet.green.subprocess from eventlet import green from eventlet.greenpool import GreenPool from .BaseTerminal import BaseTerminal import logging logger = logging.getLogger(__name__) class SubprocessTerminal(BaseTerminal): def __...
26.728477
114
0.652131
491
4,036
5.136456
0.217923
0.023791
0.021808
0.022205
0.250991
0.201427
0.201427
0.133228
0.076923
0.039651
0
0.002606
0.239346
4,036
150
115
26.906667
0.818893
0.018831
0
0.171171
0
0
0.052552
0.020465
0
0
0
0
0
1
0.225225
false
0
0.09009
0.063063
0.540541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
af3c9ab2a4ffc5e73dde198e33c3f4ccce4a8ccb
1,388
py
Python
turnstile.py
RahulRaj97/design-pattern-fellowship
4fa40b5d7295874da431f75e0bae148befc4d2ae
[ "MIT" ]
null
null
null
turnstile.py
RahulRaj97/design-pattern-fellowship
4fa40b5d7295874da431f75e0bae148befc4d2ae
[ "MIT" ]
null
null
null
turnstile.py
RahulRaj97/design-pattern-fellowship
4fa40b5d7295874da431f75e0bae148befc4d2ae
[ "MIT" ]
null
null
null
""" State is a behavioral design pattern that lets an object alter its behavior when its internal state changes. It appears as if the object changed its class. """ import time from abc import abstractmethod class TurnstileStates(): """ The base State class """ @abstractmethod def enter(self): ...
19.828571
109
0.622478
164
1,388
5.152439
0.347561
0.066272
0.071006
0.092308
0.188166
0.188166
0.188166
0.188166
0.188166
0.188166
0
0.002976
0.273775
1,388
69
110
20.115942
0.835317
0.127522
0
0.52381
0
0
0.090067
0
0
0
0
0
0
1
0.357143
false
0.047619
0.047619
0
0.52381
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
af42dfca82d6a6bc811b31bec4684f795be6aa0c
8,290
py
Python
cloudcafe/identity/v2_0/extensions/osksadm/client.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/identity/v2_0/extensions/osksadm/client.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/identity/v2_0/extensions/osksadm/client.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
1
2020-04-13T17:44:28.000Z
2020-04-13T17:44:28.000Z
""" Copyright 2013 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
42.731959
79
0.670084
1,037
8,290
5.141755
0.124397
0.219993
0.090585
0.146662
0.796137
0.771943
0.675731
0.657727
0.609152
0.560015
0
0.00887
0.224849
8,290
193
80
42.953368
0.820884
0.066224
0
0.562914
0
0
0.064658
0.040347
0
0
0
0
0
1
0.152318
false
0.013245
0.02649
0
0.337748
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
af503485e3bcb9e015c81e6a4dc54582b4d0ae9c
146
py
Python
license/apps.py
KieranSweeden/fol.io
a6f231e3f9fb96841387b04d72131470c5fc3239
[ "OLDAP-2.5", "OLDAP-2.4", "OLDAP-2.3" ]
2
2021-06-15T16:46:50.000Z
2021-07-01T04:36:17.000Z
license/apps.py
KieranSweeden/fol.io
a6f231e3f9fb96841387b04d72131470c5fc3239
[ "OLDAP-2.5", "OLDAP-2.4", "OLDAP-2.3" ]
1
2021-07-07T07:01:22.000Z
2021-07-07T07:01:22.000Z
license/apps.py
KieranSweeden/fol.io
a6f231e3f9fb96841387b04d72131470c5fc3239
[ "OLDAP-2.5", "OLDAP-2.4", "OLDAP-2.3" ]
2
2022-01-17T02:45:58.000Z
2022-01-26T23:16:09.000Z
from django.apps import AppConfig class LicenseConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'license'
20.857143
56
0.760274
17
146
6.411765
0.882353
0
0
0
0
0
0
0
0
0
0
0
0.150685
146
6
57
24.333333
0.879032
0
0
0
0
0
0.246575
0.19863
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
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
2
af7bd58497bf1affcffbccc30d92bf647657f2bf
1,895
py
Python
spark_auto_mapper_fhir/value_sets/encounter_location_status.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/value_sets/encounter_location_status.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/encounter_location_status.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
33.839286
84
0.73562
229
1,895
5.973799
0.366812
0.035819
0.05117
0.071637
0.322368
0.255117
0.255117
0.201023
0.201023
0.201023
0
0.005151
0.180475
1,895
55
85
34.454545
0.875724
0.196834
0
0
0
0
0.097656
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.923077
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
af7d1a6a67abf71b68102358cc9c069a202e77d7
381
py
Python
web/api/routers.py
samuelfirst/nemoobot
b74ad66d4f2052eaba14e4b79e20c3da274b5909
[ "MIT" ]
1
2021-01-30T09:19:37.000Z
2021-01-30T09:19:37.000Z
web/api/routers.py
samuelfirst/nemoobot
b74ad66d4f2052eaba14e4b79e20c3da274b5909
[ "MIT" ]
2
2020-12-21T20:57:19.000Z
2021-01-26T08:08:09.000Z
web/api/routers.py
samuelfirst/nemoobot
b74ad66d4f2052eaba14e4b79e20c3da274b5909
[ "MIT" ]
1
2020-12-22T07:42:42.000Z
2020-12-22T07:42:42.000Z
from rest_framework import routers from api import views as api_views router = routers.DefaultRouter() router.register(r'users', api_views.UserViewSet) router.register(r'tokens', api_views.TokenViewSet) router.register(r'settings', api_views.SettingViewSet) router.register(r'custom_commands', api_views.CustomCommandsV...
38.1
68
0.834646
51
381
6.078431
0.45098
0.154839
0.241935
0
0
0
0
0
0
0
0
0
0.062992
381
9
69
42.333333
0.868347
0
0
0
0
0
0.107612
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
1
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
2
af7d2747338ac6bec7dac968f19b7c31a3092ac3
1,627
py
Python
apps/productos/migrations/0005_auto_20180407_1223.py
franciscosf/PalerpWebSite
3a92a6e3019ac02d0661259e6e3af8fca5e39dc9
[ "MIT" ]
null
null
null
apps/productos/migrations/0005_auto_20180407_1223.py
franciscosf/PalerpWebSite
3a92a6e3019ac02d0661259e6e3af8fca5e39dc9
[ "MIT" ]
null
null
null
apps/productos/migrations/0005_auto_20180407_1223.py
franciscosf/PalerpWebSite
3a92a6e3019ac02d0661259e6e3af8fca5e39dc9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2018-04-07 17:23 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('productos', '0004_auto_20180407_1210'), ] operations = [ migrations.AddField...
29.053571
62
0.559926
158
1,627
5.582278
0.392405
0.081633
0.136054
0.172336
0.572562
0.441043
0.399093
0.399093
0.297052
0.181406
0
0.041742
0.32268
1,627
55
63
29.581818
0.758621
0.04118
0
0.520833
1
0
0.114965
0.029544
0
0
0
0
0
1
0
false
0
0.041667
0
0.104167
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
af82310e151d9ec8b5f2d9af76f12bf5661b6026
297
py
Python
Services/SaveEmbeddingService.py
miguel-kjh/ReID-in-Sport-competitions
c7abd47e6ce659aa73e76f797215941a11416981
[ "MIT" ]
5
2021-06-30T07:41:42.000Z
2022-01-20T17:57:36.000Z
Services/SaveEmbeddingService.py
miguel-kjh/ReID-in-Sport-competitions
c7abd47e6ce659aa73e76f797215941a11416981
[ "MIT" ]
null
null
null
Services/SaveEmbeddingService.py
miguel-kjh/ReID-in-Sport-competitions
c7abd47e6ce659aa73e76f797215941a11416981
[ "MIT" ]
null
null
null
from abc import abstractmethod class SaveEmbeddingService: @abstractmethod def saveBodyInformation(self, filename: str, embediddingCollection: dict) -> None: pass @abstractmethod def loadInformation(self, filename: str): pass
21.214286
55
0.62963
23
297
8.130435
0.695652
0.181818
0.160428
0
0
0
0
0
0
0
0
0
0.313131
297
13
56
22.846154
0.916667
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
0.1
0
0.4
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
1
0
0
0
0
0
2
af888a1803a4835d344a58ca68071f9ed710c3cf
547
py
Python
soup/migrations/0005_auto_20180712_1226.py
aaron-meinema/cooksite
2c987e6933a44bfa985d15c77a71860782ba751e
[ "BSD-3-Clause" ]
null
null
null
soup/migrations/0005_auto_20180712_1226.py
aaron-meinema/cooksite
2c987e6933a44bfa985d15c77a71860782ba751e
[ "BSD-3-Clause" ]
null
null
null
soup/migrations/0005_auto_20180712_1226.py
aaron-meinema/cooksite
2c987e6933a44bfa985d15c77a71860782ba751e
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1b1 on 2018-07-12 12:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('soup', '0004_auto_20180712_1217'), ] operations = [ migrations.AlterField( model_name='content', name='type', ...
22.791667
51
0.581353
55
547
5.636364
0.672727
0.129032
0.16129
0.187097
0.187097
0
0
0
0
0
0
0.094987
0.30713
547
23
52
23.782609
0.722955
0.082267
0
0.235294
1
0
0.122
0.046
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
af9b6690fa1bee847307735c2b73b8bd55aa01fd
376
py
Python
src/data/load_dataset/twitter_predict.py
42-AI/DemocracyWatcher
14028eb210259e07347f4ee05546255be69356cc
[ "MIT" ]
3
2022-03-05T14:09:38.000Z
2022-03-07T21:08:39.000Z
src/data/load_dataset/twitter_predict.py
42-AI/DemocracyWatcher
14028eb210259e07347f4ee05546255be69356cc
[ "MIT" ]
56
2022-03-05T14:54:37.000Z
2022-03-29T21:52:02.000Z
src/data/load_dataset/twitter_predict.py
42-AI/SentimentalBB
14028eb210259e07347f4ee05546255be69356cc
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from unidecode import unidecode import os from src import config def get_tweets_csv(csv_path: str) -> np.array: df = pd.read_csv(csv_path) X = df['text'].apply(lambda row: unidecode(row)).to_numpy() return X def get_tweets_df(df) -> np.array: X = df['text'].ap...
20.888889
63
0.696809
64
376
3.953125
0.421875
0.118577
0.094862
0.094862
0.371542
0.371542
0.371542
0.371542
0.371542
0.371542
0
0
0.183511
376
17
64
22.117647
0.824104
0
0
0.333333
0
0
0.021277
0
0
0
0
0
0
1
0.166667
false
0
0.416667
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
afb8f8d7032d23d92bbc198cc9aa27285b17959d
191
py
Python
honeybot/plugins/downloaded/comic/info.py
hailenwashere/honeybot
95a6cd54283db1dcd4b33b9d281a7f6e1056ec09
[ "MIT" ]
60
2019-06-04T13:57:38.000Z
2021-10-19T10:17:56.000Z
honeybot/plugins/downloaded/comic/info.py
hailenwashere/honeybot
95a6cd54283db1dcd4b33b9d281a7f6e1056ec09
[ "MIT" ]
70
2019-06-04T13:59:53.000Z
2021-10-05T10:14:16.000Z
honeybot/plugins/downloaded/comic/info.py
hailenwashere/honeybot
95a6cd54283db1dcd4b33b9d281a7f6e1056ec09
[ "MIT" ]
95
2019-06-04T15:13:42.000Z
2021-08-09T17:15:35.000Z
NAME = 'comic.py' ORIGINAL_AUTHORS = [ 'Miguel Boekhold' ] ABOUT = ''' Returns a random comic from xkcd ''' COMMANDS = ''' >>> .comic returns a url of a random comic ''' WEBSITE = ''
11.235294
32
0.617801
24
191
4.875
0.708333
0.136752
0.205128
0
0
0
0
0
0
0
0
0
0.225131
191
16
33
11.9375
0.790541
0
0
0.166667
0
0
0.531579
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
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
2
afc624142b7319f64089353bbcad4e8376cdec6c
283
py
Python
ScalableLSH/Deploy/client.py
USCDataScience/cmu-fg-bg-similarity
d8fc9a53937551f7a052bc2c6f442bcc29ea2615
[ "Apache-2.0" ]
8
2020-04-13T21:40:26.000Z
2022-01-22T11:32:31.000Z
ScalableLSH/Deploy/client.py
USCDataScience/cmu-fg-bg-similarity
d8fc9a53937551f7a052bc2c6f442bcc29ea2615
[ "Apache-2.0" ]
null
null
null
ScalableLSH/Deploy/client.py
USCDataScience/cmu-fg-bg-similarity
d8fc9a53937551f7a052bc2c6f442bcc29ea2615
[ "Apache-2.0" ]
null
null
null
import zmq context = zmq.Context() socket = context.socket(zmq.REQ) socket.connect("tcp://localhost:5555") socket.send(b"http://10.3.2.61/~ubuntu/projects/001_backpage/dataset/corpus/ImagesNevada/Nevada_2012_10_10_1349862492000_4_0.jpg" + "\0") message = socket.recv() print message
35.375
137
0.777385
44
283
4.840909
0.727273
0.093897
0
0
0
0
0
0
0
0
0
0.139098
0.060071
283
7
138
40.428571
0.661654
0
0
0
0
0.142857
0.480565
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.142857
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
1
0
0
0
0
0
0
0
0
2
bb61e8e1807ed497f73f967386d10e1d15cedd1d
857
py
Python
userlib/analysislib/paco_analysis/kepco_trace.py
specialforcea/labscript_suite
a4ad5255207cced671990fff94647b1625aa0049
[ "BSD-2-Clause" ]
null
null
null
userlib/analysislib/paco_analysis/kepco_trace.py
specialforcea/labscript_suite
a4ad5255207cced671990fff94647b1625aa0049
[ "BSD-2-Clause" ]
null
null
null
userlib/analysislib/paco_analysis/kepco_trace.py
specialforcea/labscript_suite
a4ad5255207cced671990fff94647b1625aa0049
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division from lyse import * from pylab import * from analysislib.common.fit_gaussian_2d import fit_2d from analysislib.common.traces import * from analysislib.spinor.aliases import * from time import time from scipy.ndimage import * from mpl_toolkits.axes_grid1 import make_axes_locatable import ...
23.162162
56
0.757293
135
857
4.614815
0.525926
0.080257
0.067416
0.038523
0
0
0
0
0
0
0
0.012228
0.14119
857
37
57
23.162162
0.834239
0.07818
0
0
0
0
0.089172
0
0
0
0
0
0
0
null
null
0
0.555556
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
bb86f8d5b85e4257863e4e1ca13ac1f757f41a08
600
py
Python
quite/gui/widgets/__init__.py
Wingsgo/PyQtGraphEmbedded
e1992606c7beacde6b24ea5c858ba26a800accdd
[ "MIT" ]
null
null
null
quite/gui/widgets/__init__.py
Wingsgo/PyQtGraphEmbedded
e1992606c7beacde6b24ea5c858ba26a800accdd
[ "MIT" ]
null
null
null
quite/gui/widgets/__init__.py
Wingsgo/PyQtGraphEmbedded
e1992606c7beacde6b24ea5c858ba26a800accdd
[ "MIT" ]
null
null
null
from .widget import Widget from .dialog import Dialog from .main_window import MainWindow from .group_box import GroupBox from .dock_widget import DockWidget from .label import Label from .line_edit import LineEdit from .date_edit import DateEdit from .combo_box import ComboBox from .list_widget import ListWidget fro...
24
42
0.84
86
600
5.697674
0.430233
0.122449
0.053061
0
0
0
0
0
0
0
0
0
0.13
600
24
43
25
0.938697
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
bb94aace1e75eec15ebd05cb7335f95aec142ae3
156
py
Python
AnalysisServer/visomics/vtk/celeryconfig.py
Kitware/Visomics
5a12f132d826c32dececbd2707e920f4d5525da3
[ "Apache-2.0" ]
3
2015-05-03T05:14:50.000Z
2017-03-29T14:54:49.000Z
AnalysisServer/visomics/vtk/celeryconfig.py
Kitware/Visomics
5a12f132d826c32dececbd2707e920f4d5525da3
[ "Apache-2.0" ]
null
null
null
AnalysisServer/visomics/vtk/celeryconfig.py
Kitware/Visomics
5a12f132d826c32dececbd2707e920f4d5525da3
[ "Apache-2.0" ]
1
2017-03-29T15:04:16.000Z
2017-03-29T15:04:16.000Z
BROKER_URL = "mongodb://arbor/celery" CELERY_RESULT_BACKEND = "mongodb" CELERY_MONGODB_BACKEND_SETTINGS = { "host": "arbor", "database": "celery" }
22.285714
37
0.705128
17
156
6.117647
0.588235
0
0
0
0
0
0
0
0
0
0
0
0.141026
156
6
38
26
0.776119
0
0
0
0
0
0.333333
0.141026
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
bb96474ea735e41dc6f943767bcd55a7a5ec7f8f
1,692
py
Python
CS-1520-Web-Applications/Project 4/models.py
solomonheisey/University_Projects
b95cc87ad9ef8aaad3b12b3fb8564f580adf189b
[ "MIT" ]
1
2021-09-26T19:27:42.000Z
2021-09-26T19:27:42.000Z
CS-1520-Web-Applications/Project 4/models.py
solomonheisey/University_Projects
b95cc87ad9ef8aaad3b12b3fb8564f580adf189b
[ "MIT" ]
null
null
null
CS-1520-Web-Applications/Project 4/models.py
solomonheisey/University_Projects
b95cc87ad9ef8aaad3b12b3fb8564f580adf189b
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class User(db.Model): user_id = db.Column(db.Integer, unique=True, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) password = db.Column(db.String(64), nullable=False) purchases = db.relationship('Purchase', b...
37.6
94
0.697991
228
1,692
5.013158
0.175439
0.090989
0.113736
0.062992
0.43832
0.36308
0.307962
0.191601
0.191601
0.191601
0
0.005735
0.175532
1,692
44
95
38.454545
0.81362
0
0
0.058824
0
0
0.049645
0
0
0
0
0
0
1
0.088235
false
0.088235
0.029412
0
0.676471
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
bb967c74251fcdb3fe23b5a069fbddcc0ca3facd
4,355
py
Python
A03vankirkj.py
spring-2019-csc-226/a03-master
7be446b28d5aebfc4c4635cc418db0c0c0fadbca
[ "MIT" ]
null
null
null
A03vankirkj.py
spring-2019-csc-226/a03-master
7be446b28d5aebfc4c4635cc418db0c0c0fadbca
[ "MIT" ]
4
2019-02-07T06:26:00.000Z
2019-02-19T00:08:43.000Z
A03vankirkj.py
spring-2019-csc-226/a03-master
7be446b28d5aebfc4c4635cc418db0c0c0fadbca
[ "MIT" ]
1
2019-02-07T02:23:37.000Z
2019-02-07T02:23:37.000Z
################################################################################ # Author:Justin Vankirk # Username:vankirkj # # Assignment:A03 # https://docs.google.com/document/d/1upvTP9Z7BehzY-HqRqI9Uh2F3cD19rZi_MtArv0Tn_M/edit?usp=sharing #############################################################################...
25.467836
131
0.568772
465
4,355
5.307527
0.258065
0.194489
0.204214
0.295381
0.495138
0.492707
0.492707
0.492707
0.480956
0.480956
0
0.073516
0.269116
4,355
171
132
25.467836
0.701854
0.125373
0
0.6
0
0
0.003187
0
0
0
0
0
0
1
0.04
false
0
0.008
0
0.048
0
0
0
0
null
0
1
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
2
bba012c730f2c271cad587086805b8ecd429093d
279
py
Python
zoo_checks/migrations/0033_merge_20200216_2228.py
falkben/zoo-checks
b1d6cf980088664b1feded4a1e08a82c6f358c33
[ "Apache-2.0" ]
null
null
null
zoo_checks/migrations/0033_merge_20200216_2228.py
falkben/zoo-checks
b1d6cf980088664b1feded4a1e08a82c6f358c33
[ "Apache-2.0" ]
3
2019-06-01T14:56:19.000Z
2019-06-03T13:53:27.000Z
zoo_checks/migrations/0033_merge_20200216_2228.py
falkben/zoo-checks
b1d6cf980088664b1feded4a1e08a82c6f358c33
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.9 on 2020-02-17 03:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('zoo_checks', '0032_auto_20200203_0000'), ('zoo_checks', '0030_auto_20200207_2126'), ] operations = [ ]
18.6
50
0.655914
35
279
5
0.8
0.102857
0
0
0
0
0
0
0
0
0
0.217593
0.225806
279
14
51
19.928571
0.592593
0.16129
0
0
1
0
0.284483
0.198276
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
1
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
2
bba3bcdc84ec759af64f4f1942e13a67470a56b6
1,475
py
Python
portais_tech/portais_tech/items.py
naanadr/portais-noticias-tech
6d3f8164ce4ac590b2a21cd1b9eb44951a2cc7e3
[ "MIT" ]
2
2020-02-22T05:25:32.000Z
2020-02-23T23:47:46.000Z
portais_tech/portais_tech/items.py
naanadr/portais-noticias-tech
6d3f8164ce4ac590b2a21cd1b9eb44951a2cc7e3
[ "MIT" ]
null
null
null
portais_tech/portais_tech/items.py
naanadr/portais-noticias-tech
6d3f8164ce4ac590b2a21cd1b9eb44951a2cc7e3
[ "MIT" ]
null
null
null
import scrapy from scrapy.loader.processors import MapCompose, TakeFirst def get_autor(value): editado_msg = ',' if editado_msg in value: value = value.split(editado_msg)[0] return value def get_revisor(value): editado_msg = ' por ' if editado_msg in value: value = value.split(e...
23.790323
58
0.652203
153
1,475
6.084967
0.267974
0.212675
0.137487
0.214823
0.542428
0.481203
0.440387
0.343716
0.094522
0.094522
0
0.002698
0.246102
1,475
61
59
24.180328
0.834532
0
0
0.34
0
0
0.012203
0
0
0
0
0
0
1
0.06
false
0
0.04
0
0.38
0
0
0
0
null
1
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
2
bba41467d75ce74f68e5c4f722cce19e2307e934
1,047
py
Python
phi/tf/flow.py
eliasdjo/PhiFlow
dc88dca696d25a5ea5793aa48fae390469f0d829
[ "MIT" ]
null
null
null
phi/tf/flow.py
eliasdjo/PhiFlow
dc88dca696d25a5ea5793aa48fae390469f0d829
[ "MIT" ]
null
null
null
phi/tf/flow.py
eliasdjo/PhiFlow
dc88dca696d25a5ea5793aa48fae390469f0d829
[ "MIT" ]
null
null
null
# pylint: disable-msg = wildcard-import, unused-wildcard-import, unused-import """ Standard import for TensorFlow mode. Extends the import `from phi.flow import *` by TensorFlow-related functions and modules. The following TensorFlow modules are included: `tensorflow` / `tf`, `keras`, `layers`. Importing this module...
34.9
117
0.782235
148
1,047
5.418919
0.472973
0.026185
0.049875
0.042394
0
0
0
0
0
0
0
0
0.133715
1,047
29
118
36.103448
0.884234
0.520535
0
0
0
0
0.163968
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
bbac2fab32aea03bab604d536c47b51151cc2aff
322
py
Python
aio.api.github/aio/api/github/utils.py
Nordix/pytooling
b48e70e9098c283d0f17db8016d2f32a2b103a57
[ "Apache-2.0" ]
1
2021-12-09T19:24:48.000Z
2021-12-09T19:24:48.000Z
aio.api.github/aio/api/github/utils.py
Nordix/pytooling
b48e70e9098c283d0f17db8016d2f32a2b103a57
[ "Apache-2.0" ]
392
2021-08-24T15:55:32.000Z
2022-03-28T14:26:22.000Z
aio.api.github/aio/api/github/utils.py
Nordix/pytooling
b48e70e9098c283d0f17db8016d2f32a2b103a57
[ "Apache-2.0" ]
3
2021-10-06T13:43:11.000Z
2021-11-29T13:48:56.000Z
from datetime import datetime # these only deal with utc but are good enough for working with the # github api def dt_from_js_isoformat(iso: str) -> datetime: return datetime.fromisoformat(iso.replace("Z", "+00:00")) def dt_to_js_isoformat(dt: datetime) -> str: return dt.isoformat().replace("+00:00", "Z"...
21.466667
67
0.714286
50
322
4.48
0.58
0.044643
0
0
0
0
0
0
0
0
0
0.02963
0.161491
322
14
68
23
0.8
0.236025
0
0
0
0
0.057851
0
0
0
0
0
0
1
0.4
false
0
0.2
0.4
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
bbb7e11e28b9d116064e13a1a85c12306a593ab3
944
py
Python
rpiRobot/src/vision/infrastructure/openCvCameraCalibrationFactory.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
rpiRobot/src/vision/infrastructure/openCvCameraCalibrationFactory.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
rpiRobot/src/vision/infrastructure/openCvCameraCalibrationFactory.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
from os import path import numpy as np from vision.domain.iCameraCalibration import ICameraCalibration from vision.domain.iCameraCalibrationFactory import ICameraCalibrationFactory from vision.infrastructure.fallbackCameraCalibration import FallBackCameraCalibration from vision.infrastructure.openCvCameraCalibration ...
42.909091
105
0.791314
86
944
8.465116
0.395349
0.054945
0.078297
0.093407
0
0
0
0
0
0
0
0
0.162076
944
21
106
44.952381
0.920354
0
0
0
0
0
0.038136
0.024364
0
0
0
0
0
1
0.066667
false
0
0.4
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
bbbb0192d6eca0fc8ff5dffd0716d00687768996
236
py
Python
custom/icds_reports/migrations/0032_create_datasource_views.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
custom/icds_reports/migrations/0032_create_datasource_views.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2021-06-02T04:45:16.000Z
2021-06-02T04:45:16.000Z
custom/icds_reports/migrations/0032_create_datasource_views.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 1.11.9 on 2018-01-17 20:33 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('icds_reports', '0031_agg_child_health_definitions'), ] operations = []
18.153846
62
0.690678
30
236
5.266667
0.9
0
0
0
0
0
0
0
0
0
0
0.106383
0.20339
236
12
63
19.666667
0.734043
0.194915
0
0
1
0
0.239362
0.175532
0
0
0
0
0
1
0
false
0
0.166667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
bbbdc89756b388bfe27f53df9eee4b4e8d1f4eb6
502
py
Python
NotebookIndex/notebook_index/views_catalog.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
null
null
null
NotebookIndex/notebook_index/views_catalog.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
3
2021-03-19T01:28:43.000Z
2021-04-08T19:57:19.000Z
NotebookIndex/notebook_index/views_catalog.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
null
null
null
from rest_framework.response import Response from rest_framework.views import APIView from NotebookIndex.notebook_index.serializer import ManyCatalog from NotebookManage.notebook.models import Book, Catalog class CatalogView(APIView): def get(self, request, id=None): catalog = Catalog.objects.filter(book=...
41.833333
84
0.752988
63
502
5.952381
0.619048
0.042667
0.090667
0
0
0
0
0
0
0
0
0.006928
0.13745
502
11
85
45.636364
0.859122
0
0
0
0
0
0.063745
0
0
0
0
0
0
1
0.111111
false
0
0.444444
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
bbbf17a3996e84b02e39f13c5f1c38c29bc3dbf7
69
py
Python
code5.py
adarshjudoka212/pythonprogramme
1b3865ddc6060deebd74529ce294b152d5c8f25d
[ "MIT" ]
null
null
null
code5.py
adarshjudoka212/pythonprogramme
1b3865ddc6060deebd74529ce294b152d5c8f25d
[ "MIT" ]
null
null
null
code5.py
adarshjudoka212/pythonprogramme
1b3865ddc6060deebd74529ce294b152d5c8f25d
[ "MIT" ]
null
null
null
def fun(): a=89 str="adar" return[a,str]; print(fun())
9.857143
19
0.492754
11
69
3.090909
0.727273
0
0
0
0
0
0
0
0
0
0
0.040816
0.289855
69
6
20
11.5
0.653061
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.2
1
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
2
bbc18009172fe74ebffc98185da2c2c7d1d02c99
223
py
Python
idk.py
vishalkotha22/codingprojects
afe262dbd43779a798e29b41bf272c25cf40e9a5
[ "CC0-1.0" ]
null
null
null
idk.py
vishalkotha22/codingprojects
afe262dbd43779a798e29b41bf272c25cf40e9a5
[ "CC0-1.0" ]
null
null
null
idk.py
vishalkotha22/codingprojects
afe262dbd43779a798e29b41bf272c25cf40e9a5
[ "CC0-1.0" ]
null
null
null
from sklearn.tree import DecisionTreeClassifier from sklearn import EstimatorObject dtree = DecisionTreeClassifier() dtree.fit(df(['Age', 'Distance']), df['Attended']) model = EstimatorObject() cart_plot(dtree)
22.3
51
0.748879
23
223
7.217391
0.652174
0.13253
0
0
0
0
0
0
0
0
0
0
0.134529
223
10
52
22.3
0.860104
0
0
0
0
0
0.088372
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
2
bbd792287fa96d060acafa0bf57cd96849e6b87e
226
py
Python
JavPy/functions/magnet.py
generaljun/JavPy
e2b5488631c0979c643a2f86ba4cd8bb1709e2f8
[ "Apache-2.0" ]
1
2020-07-30T08:48:17.000Z
2020-07-30T08:48:17.000Z
JavPy/functions/magnet.py
liqiang0330/JavPy
e2b5488631c0979c643a2f86ba4cd8bb1709e2f8
[ "Apache-2.0" ]
null
null
null
JavPy/functions/magnet.py
liqiang0330/JavPy
e2b5488631c0979c643a2f86ba4cd8bb1709e2f8
[ "Apache-2.0" ]
2
2020-07-30T06:30:23.000Z
2020-07-30T08:48:19.000Z
from JavPy.functions.sources import Sources class Magnet: @staticmethod def get_magnet(code): return Sources.Magnet[0].search_magnet(code) if __name__ == '__main__': print(Magnet.get_magnet("ABP-123"))
18.833333
52
0.707965
29
226
5.137931
0.689655
0.120805
0
0
0
0
0
0
0
0
0
0.021505
0.176991
226
11
53
20.545455
0.77957
0
0
0
0
0
0.066372
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.571429
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
2
bbf01995eb69cea6c6ed666e3fa906757fea63d6
268
py
Python
xd.py
Felipe17Programmer/Proyectos_Python
14f52e31c188928e00128df01c78977d5a6265f8
[ "Apache-2.0" ]
null
null
null
xd.py
Felipe17Programmer/Proyectos_Python
14f52e31c188928e00128df01c78977d5a6265f8
[ "Apache-2.0" ]
null
null
null
xd.py
Felipe17Programmer/Proyectos_Python
14f52e31c188928e00128df01c78977d5a6265f8
[ "Apache-2.0" ]
null
null
null
def insertar(lista,elemento): for i in range(len(lista)): if elemento < len(lista): lista.insert(i-1,elemento) if elemento > len(lista): lista.insert(i-1,elemento) print lista listax=[2,3,4,5,7,8,9] insertar(listax,50)
24.363636
38
0.597015
41
268
3.902439
0.536585
0.15
0.1625
0.225
0.4875
0.4875
0.4875
0.4875
0.4875
0
0
0.055276
0.257463
268
10
39
26.8
0.748744
0
0
0.222222
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.111111
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
1
0
0
0
0
0
0
0
0
2
bbf13d9662a378fc31095e8da03cbd5cf4af3556
780
py
Python
imports.py
MarcusTL12/PyCalc
b846f90eddb75acbb126ac2f8e1d2a4c52e77a2f
[ "Apache-2.0" ]
null
null
null
imports.py
MarcusTL12/PyCalc
b846f90eddb75acbb126ac2f8e1d2a4c52e77a2f
[ "Apache-2.0" ]
null
null
null
imports.py
MarcusTL12/PyCalc
b846f90eddb75acbb126ac2f8e1d2a4c52e77a2f
[ "Apache-2.0" ]
null
null
null
import sys sys.path.append('./PyScr/') import numpy as np import matplotlib.pyplot as plt import cmath import math import copy import pfprint import primefac from scipy.special import comb as choose _ = None def ppprint(arg): global _ pfprint.pfprint(arg) _ = arg def frac(): pfprint.frac = not pfprint.frac retu...
15
54
0.719231
125
780
4.392
0.456
0.029144
0.032787
0.076503
0
0
0
0
0
0
0
0.00303
0.153846
780
51
55
15.294118
0.828788
0
0
0
0
0
0.010256
0
0
0
0
0
0
1
0.230769
false
0
0.230769
0.102564
0.589744
0.179487
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
bbf38dbff6c0d07f5bba50b7978d774fa6484af7
222
py
Python
python/python_work2/liebiao2.py
lucycore/python
c1c49e52392615851c0efec886d0e947b609681c
[ "Apache-2.0" ]
null
null
null
python/python_work2/liebiao2.py
lucycore/python
c1c49e52392615851c0efec886d0e947b609681c
[ "Apache-2.0" ]
null
null
null
python/python_work2/liebiao2.py
lucycore/python
c1c49e52392615851c0efec886d0e947b609681c
[ "Apache-2.0" ]
null
null
null
names = ["duanzijie","zhaokeer","lijiaxi","zhuzi","wangwenbo","gongyijun"] print(names) print(names[0]) print(names[1]) print(names[2]) print(names[3]) print(names[4]) print(names[5]) hi = "hi" + " " + name[1] print(hi)
17.076923
74
0.648649
33
222
4.363636
0.484848
0.486111
0
0
0
0
0
0
0
0
0
0.034826
0.094595
222
13
75
17.076923
0.681592
0
0
0
0
0
0.225225
0
0.1
0
0
0
0
1
0
false
0
0
0
0
0.8
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
a526bbe3ed8747ce16ae5d5867a5d7fc89df59e7
4,411
py
Python
tests/designMethods/test_en_13001_input.py
tum-fml/marsDemonstrator
49f45d883eea27b678f10ec6e385e4c0d2e3b409
[ "CC0-1.0" ]
1
2021-05-12T20:06:03.000Z
2021-05-12T20:06:03.000Z
tests/designMethods/test_en_13001_input.py
tum-fml/marsDemonstrator
49f45d883eea27b678f10ec6e385e4c0d2e3b409
[ "CC0-1.0" ]
null
null
null
tests/designMethods/test_en_13001_input.py
tum-fml/marsDemonstrator
49f45d883eea27b678f10ec6e385e4c0d2e3b409
[ "CC0-1.0" ]
null
null
null
import unittest import pathlib import numpy as np from marsDemonstrator.designMethods.en_13001_3_3 import MARSInput # pylint: disable=import-error class En_test(unittest.TestCase): def setUp(self) -> None: self.config = "m1" self.direction = 1 parent_path = pathlib.Path(__fil...
72.311475
149
0.745409
606
4,411
5.056106
0.150165
0.137076
0.217037
0.182768
0.732376
0.644909
0.619125
0.54406
0.302872
0.286554
0
0.007231
0.122195
4,411
60
150
73.516667
0.784091
0.037406
0
0
0
0
0.082736
0.005739
0
0
0
0
0.319149
1
0.06383
false
0
0.085106
0
0.170213
0
0
0
0
null
0
1
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
2
a52b918f09c0f902f3048f04f7dc503f0ed7c971
215
py
Python
hermes/regulars.py
SOBotics/Hermes
af2d8befe4e332019a04c8ceee3f8ebe975f9f8e
[ "MIT" ]
null
null
null
hermes/regulars.py
SOBotics/Hermes
af2d8befe4e332019a04c8ceee3f8ebe975f9f8e
[ "MIT" ]
5
2018-09-18T10:03:41.000Z
2019-06-03T17:12:30.000Z
hermes/regulars.py
SOBotics/SoundFlow
af2d8befe4e332019a04c8ceee3f8ebe975f9f8e
[ "MIT" ]
null
null
null
""" User defined here are allowed to use privileged bot commands """ regulars = [ 965146, #Shree 4946380, #Mithrandir 5067311, #Andras Deak 397817, #Stephen Kennedy 6707985, #geisterfurz007 ]
17.916667
60
0.674419
23
215
6.304348
1
0
0
0
0
0
0
0
0
0
0
0.219512
0.237209
215
11
61
19.545455
0.664634
0.539535
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
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
2
a539b9bbbd63b6a5db6c6b7404fcbce1d7230f25
18,860
py
Python
rps3env/tests/rps3_game_test.py
islamelnabarawy/rps3env
e7728a5c310fa82a9fa9b65a628cb77e4efbc425
[ "Apache-2.0" ]
null
null
null
rps3env/tests/rps3_game_test.py
islamelnabarawy/rps3env
e7728a5c310fa82a9fa9b65a628cb77e4efbc425
[ "Apache-2.0" ]
null
null
null
rps3env/tests/rps3_game_test.py
islamelnabarawy/rps3env
e7728a5c310fa82a9fa9b65a628cb77e4efbc425
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 Islam Elnabarawy Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
40.21322
120
0.575716
2,547
18,860
4.117786
0.102474
0.187834
0.238844
0.272693
0.65799
0.610698
0.552727
0.482647
0.407513
0.368802
0
0.056982
0.273277
18,860
468
121
40.299145
0.70823
0.03176
0
0.355263
0
0
0.132203
0
0
0
0
0
0.152632
1
0.110526
false
0
0.023684
0
0.142105
0.005263
0
0
0
null
0
1
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
2
a53cd473e804512f54a6592d92dab7e1afdf1042
8,468
py
Python
fsm.py
shihyuuuuuuu/chatbot
24bfab040adfb410448bb04aa16f47c7e32ec394
[ "MIT" ]
null
null
null
fsm.py
shihyuuuuuuu/chatbot
24bfab040adfb410448bb04aa16f47c7e32ec394
[ "MIT" ]
null
null
null
fsm.py
shihyuuuuuuu/chatbot
24bfab040adfb410448bb04aa16f47c7e32ec394
[ "MIT" ]
null
null
null
from transitions.extensions import GraphMachine import pymongo from pymongo import MongoClient from pprint import pprint client = MongoClient() db = client.chatbot schedule = db.schedule class TocMachine(GraphMachine): def __init__(self, **machine_configs): self.machine = GraphMachine( model =...
38.666667
201
0.583491
1,045
8,468
4.610526
0.111005
0.076795
0.07472
0.082192
0.727688
0.716065
0.599834
0.548153
0.536945
0.432337
0
0.043235
0.262518
8,468
218
202
38.844037
0.728263
0.027397
0
0.469274
0
0
0.087221
0
0
0
0
0
0
1
0.212291
false
0
0.022346
0
0.312849
0.072626
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
a5446309dc1e4dc4814d0f6638875e9d03515b64
443
py
Python
api/serializers.py
peterwade153/social-meta
67633f8aac7f63ee8678e59e18091b2cd6619fec
[ "MIT" ]
null
null
null
api/serializers.py
peterwade153/social-meta
67633f8aac7f63ee8678e59e18091b2cd6619fec
[ "MIT" ]
null
null
null
api/serializers.py
peterwade153/social-meta
67633f8aac7f63ee8678e59e18091b2cd6619fec
[ "MIT" ]
null
null
null
from rest_framework import serializers from api.models import Post, Like class PostSerializer(serializers.ModelSerializer): class Meta: model = Post read_only_fields = ['id', 'user', 'is_active'] fields = ['text'] + read_only_fields class LikeSerializer(serializers.ModelSerializer): ...
22.15
54
0.6614
49
443
5.77551
0.469388
0.113074
0.19788
0.24735
0.424028
0
0
0
0
0
0
0
0.23702
443
19
55
23.315789
0.837278
0
0
0.166667
0
0
0.065463
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.5
0
0
0
0
null
0
1
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
2
a5594c0fc5b313819654b388377b510a2036915f
115
py
Python
Stones on the Table.py
NehaAgarwal2598/Codeforces
859196a734cb24834736adf9517b351647da6e73
[ "MIT" ]
null
null
null
Stones on the Table.py
NehaAgarwal2598/Codeforces
859196a734cb24834736adf9517b351647da6e73
[ "MIT" ]
null
null
null
Stones on the Table.py
NehaAgarwal2598/Codeforces
859196a734cb24834736adf9517b351647da6e73
[ "MIT" ]
null
null
null
n = int(input()) s = input() c=0 for i in range(n-1): if s[i]==s[i+1]: c +=1 print(c)
10.454545
21
0.391304
23
115
1.956522
0.565217
0.088889
0
0
0
0
0
0
0
0
0
0.057143
0.391304
115
10
22
11.5
0.585714
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
1
0
1
null
0
0
0
0
0
0
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
2
a56df4a560c4a746353d76fcd7919d82fa2b9f05
538
py
Python
22-django/aprendiendoDjango/miapp/models.py
richi2050/Master-en-python
d8ba136f03d8f794cded235c4e7b4b3dadba4dc4
[ "MIT" ]
null
null
null
22-django/aprendiendoDjango/miapp/models.py
richi2050/Master-en-python
d8ba136f03d8f794cded235c4e7b4b3dadba4dc4
[ "MIT" ]
null
null
null
22-django/aprendiendoDjango/miapp/models.py
richi2050/Master-en-python
d8ba136f03d8f794cded235c4e7b4b3dadba4dc4
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Article(models.Model): title = models.CharField(max_length=100) image = models.ImageField(default='null') content = models.TextField() public = models.BooleanField() created_at = models.DateTimeField(auto_now_add=True) updated_at = ...
33.625
56
0.750929
69
538
5.695652
0.521739
0.114504
0.137405
0.183206
0.422392
0.21374
0.21374
0.21374
0
0
0
0.019565
0.144981
538
16
57
33.625
0.834783
0.04461
0
0.166667
0
0
0.007797
0
0
0
0
0
0
1
0
false
0
0.083333
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
a57321ad776cf3a73f1dc9dba83d7dbbe8365249
884
py
Python
vispy/io/datasets.py
izaid/vispy
402cf95bfef88d70c9c45bb27c532ed72944e14a
[ "BSD-3-Clause" ]
null
null
null
vispy/io/datasets.py
izaid/vispy
402cf95bfef88d70c9c45bb27c532ed72944e14a
[ "BSD-3-Clause" ]
null
null
null
vispy/io/datasets.py
izaid/vispy
402cf95bfef88d70c9c45bb27c532ed72944e14a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. import numpy as np from os import path as op from ..util import load_data_file # This is the package data dir, not the dir for config, etc. DATA_DIR = op.join(op.dirname(__f...
24.555556
73
0.613122
127
884
4.149606
0.511811
0.045541
0.068311
0.064516
0.170778
0.091082
0
0
0
0
0
0.040971
0.254525
884
35
74
25.257143
0.758725
0.522624
0
0
0
0
0.129834
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
2
a5953a795730e0e06aede826773d8532f804edb9
836
py
Python
src/restfuls/apps/v1/route.py
Qinnnnnn/Watero_DataCenter
fc56dc13fa9a71817de9243b494dc01ab1d193bd
[ "MIT" ]
null
null
null
src/restfuls/apps/v1/route.py
Qinnnnnn/Watero_DataCenter
fc56dc13fa9a71817de9243b494dc01ab1d193bd
[ "MIT" ]
null
null
null
src/restfuls/apps/v1/route.py
Qinnnnnn/Watero_DataCenter
fc56dc13fa9a71817de9243b494dc01ab1d193bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """ File : route.py Author : Zerui Qin CreateDate : 2019-04-01 09:50:07 Note : 注册URL """ from src.restfuls.apps.v1.apis.auth import AgentAuth from src.restfuls.apps.v1.apis.heartbeat import AgentHeartbeat from src.restfuls.apps.v1.apis.push import AgentPush from src.restful...
30.962963
73
0.723684
110
836
5.445455
0.418182
0.058431
0.125209
0.158598
0.208681
0.208681
0
0
0
0
0
0.027473
0.129187
836
26
74
32.153846
0.79533
0.179426
0
0
0
0
0.110092
0
0
0
0
0
0
1
0.090909
false
0
0.454545
0
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
1
0
1
0
0
2
a5b221fa1c656d7576d2672d422de1386f23210f
1,836
py
Python
nn_modules/gzip-js/test/zipTest.py
PotWallet/PotWallet-Chain
b5728de3ff44b4f9611a01e036410e91c7fec15e
[ "MIT", "Unlicense" ]
305
2015-01-06T12:37:29.000Z
2022-03-25T18:03:52.000Z
node_modules/grunt/node_modules/gzip-js/test/zipTest.py
arhea/grunt-travis
58afde3919d79e78fdfb66aeda42d6bcb44d4e97
[ "MIT" ]
18
2015-02-09T11:04:23.000Z
2020-12-08T21:27:04.000Z
node_modules/grunt/node_modules/gzip-js/test/zipTest.py
arhea/grunt-travis
58afde3919d79e78fdfb66aeda42d6bcb44d4e97
[ "MIT" ]
68
2015-05-09T05:07:42.000Z
2022-02-10T23:22:13.000Z
import os from helpers import run_cmd from colorama import Fore defaultTestDir = 'test-files' defaultOutDir = 'test-outs' """ Run a single test @param tFile- required; the full path to the file to run @param level- optional (default: all); the compression level [1-9] @return True if all tests passed; False if at lea...
30.098361
133
0.667756
276
1,836
4.427536
0.326087
0.057283
0.02455
0.02455
0.171849
0.139116
0.101473
0.101473
0
0
0
0.011858
0.173203
1,836
60
134
30.6
0.793149
0
0
0.242424
0
0.030303
0.231218
0.033552
0
0
0
0
0
0
null
null
0.272727
0.090909
null
null
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
1
0
0
1
0
0
0
0
0
2
3c0153768e4b883adf2eab5ec0d78056452ee636
17,293
py
Python
pysnmp/CRESCENDO-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CRESCENDO-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CRESCENDO-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CRESCENDO-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CRESCENDO-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:12:29 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
125.311594
2,021
0.74215
2,055
17,293
6.245255
0.09635
0.01683
0.01683
0.019947
0.540829
0.503584
0.443198
0.419199
0.409225
0.386162
0
0.079608
0.085468
17,293
137
2,022
126.226277
0.7319
0.018505
0
0
0
0
0.116541
0.002594
0
0
0
0
0
1
0
false
0
0.061538
0
0.061538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3c1950bfb4c58d17df258a837440092dea72e319
317
py
Python
tests/conftest.py
textanalytics2020/laserembeddings
77747b79815b706479425ca48166c89a40eed143
[ "BSD-3-Clause" ]
177
2019-07-23T20:48:23.000Z
2022-03-28T02:59:16.000Z
tests/conftest.py
textanalytics2020/laserembeddings
77747b79815b706479425ca48166c89a40eed143
[ "BSD-3-Clause" ]
21
2019-10-01T10:53:31.000Z
2021-12-12T10:31:43.000Z
tests/conftest.py
textanalytics2020/laserembeddings
77747b79815b706479425ca48166c89a40eed143
[ "BSD-3-Clause" ]
20
2019-08-31T09:56:57.000Z
2021-11-23T10:43:30.000Z
import os import pytest @pytest.fixture def test_data(): import numpy as np test_data_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'data', 'laserembeddings-test-data.npz') return np.load(test_data_file) if os.path.isfile(test_data_file) else None
24.384615
78
0.665615
46
317
4.347826
0.5
0.2
0.18
0
0
0
0
0
0
0
0
0
0.227129
317
12
79
26.416667
0.816327
0
0
0
0
0
0.104101
0.091483
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
3c36824ad9ebdd39f48bbb269eb0a6b11166df47
819
py
Python
venv/lib/python3.7/site-packages/pystan/__init__.py
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/pystan/__init__.py
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/pystan/__init__.py
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2013-2015 PyStan developers # # This file is licensed under Version 3.0 of the GNU General Public # License. See LICENSE for a text of the license. #----------------------------------------------------------------------------...
35.608696
78
0.634921
99
819
5.171717
0.666667
0.097656
0
0
0
0
0
0
0
0
0
0.02585
0.102564
819
22
79
37.227273
0.670748
0.478632
0
0
0
0
0.033413
0
0
0
0
0
0
1
0
false
0
0.545455
0
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
1
0
1
0
0
2
3c397d147b06582185868eee113671c46ccc2bfb
548
py
Python
ampa/cole/migrations/0024_entitat_instance.py
jordiprats/django-ampa
b8e9d6076c32caa8bdc11094362ddccb12d95f8c
[ "Apache-2.0" ]
null
null
null
ampa/cole/migrations/0024_entitat_instance.py
jordiprats/django-ampa
b8e9d6076c32caa8bdc11094362ddccb12d95f8c
[ "Apache-2.0" ]
null
null
null
ampa/cole/migrations/0024_entitat_instance.py
jordiprats/django-ampa
b8e9d6076c32caa8bdc11094362ddccb12d95f8c
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.5 on 2021-03-06 17:29 from django.db import migrations, models def forward(apps, schema_editor): Entitat = apps.get_model("cole", "Entitat") try: entitat_instance = Entitat.objects.all()[0] if entitat_instance: return except: pass entitat_i...
21.92
51
0.640511
62
548
5.516129
0.709677
0.175439
0.128655
0
0
0
0
0
0
0
0
0.0489
0.25365
548
24
52
22.833333
0.787286
0.082117
0
0
1
0
0.081836
0.051896
0
0
0
0
0
1
0.055556
false
0.055556
0.055556
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
1
0
0
0
0
0
2
3c3f4cd4f6d1b2e174e3741225ac00366eb8de7d
92
py
Python
src/wizcoin/__init__.py
emacollins/wizcoin
39c5df6623675e83bae2eb435878d58e23cf0b8e
[ "MIT" ]
null
null
null
src/wizcoin/__init__.py
emacollins/wizcoin
39c5df6623675e83bae2eb435878d58e23cf0b8e
[ "MIT" ]
null
null
null
src/wizcoin/__init__.py
emacollins/wizcoin
39c5df6623675e83bae2eb435878d58e23cf0b8e
[ "MIT" ]
null
null
null
"""WizCoin By Al Sweigart test@gmail.com A basic Python project.""" __version__ = '0.1.0'
13.142857
29
0.695652
15
92
4
0.933333
0
0
0
0
0
0
0
0
0
0
0.038462
0.152174
92
6
30
15.333333
0.730769
0.673913
0
0
0
0
0.208333
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
3c44389404392b3a903490973640379a4ebb22bd
102
py
Python
output/models/saxon_data/xml_versions/xv001_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/saxon_data/xml_versions/xv001_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/saxon_data/xml_versions/xv001_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.saxon_data.xml_versions.xv001_xsd.xv001 import DKstra __all__ = [ "DKstra", ]
17
72
0.754902
14
102
5
0.857143
0
0
0
0
0
0
0
0
0
0
0.068182
0.137255
102
5
73
20.4
0.727273
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
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
2
3c4c728fbade613a2239f30b7eb299a38bc1425a
8,362
py
Python
nova/virt/xenapi/image/utils.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/virt/xenapi/image/utils.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/virt/xenapi/image/utils.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright 2013 OpenStack Foundation' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' co...
12.924266
265
0.602009
1,245
8,362
3.926104
0.127711
0.153437
0.11252
0.13748
0.671849
0.593494
0.529255
0.498977
0.441489
0.38257
0
0.001227
0.122818
8,362
646
266
12.944272
0.665167
0
0
0.908669
0
0.001548
0.36618
0.005023
0
0
0
0
0
0
null
null
0
0.004644
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
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
3c50ba24127886bcf7c71449e0a441caef745c79
2,016
py
Python
cli/utils.py
Remmeauth/remme-core-cli
94cc09fe9d2e718b45273dde68d6c672c4773f6a
[ "MIT" ]
null
null
null
cli/utils.py
Remmeauth/remme-core-cli
94cc09fe9d2e718b45273dde68d6c672c4773f6a
[ "MIT" ]
94
2019-03-27T09:34:28.000Z
2019-08-27T05:32:33.000Z
cli/utils.py
Remmeauth/remme-core-cli
94cc09fe9d2e718b45273dde68d6c672c4773f6a
[ "MIT" ]
6
2019-06-06T15:16:38.000Z
2020-02-24T12:55:55.000Z
""" Provide utils for command line interface. """ import json import click from cli.config import ConfigFile def dict_to_pretty_json(data): r""" Convert dictionary to json with indents (human readable string). From the following code: { "address": [ "The following ad...
24.888889
119
0.659722
243
2,016
5.345679
0.485597
0.021555
0.027714
0.036952
0.08622
0.08622
0
0
0
0
0
0.049838
0.233631
2,016
80
120
25.2
0.790939
0.418651
0
0
0
0
0.038647
0
0
0
0
0
0
1
0.235294
false
0
0.176471
0
0.705882
0.117647
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
3c5c5cae33924c7df042e7f2e12672f2ff06b57a
2,085
py
Python
tests/test_file_walker.py
vardan10/codewatch
d906edaa0f7aa51cc1ee159356f801512d138000
[ "Apache-2.0" ]
null
null
null
tests/test_file_walker.py
vardan10/codewatch
d906edaa0f7aa51cc1ee159356f801512d138000
[ "Apache-2.0" ]
null
null
null
tests/test_file_walker.py
vardan10/codewatch
d906edaa0f7aa51cc1ee159356f801512d138000
[ "Apache-2.0" ]
null
null
null
from codewatch.file_walker import FileWalker MOCK_PATHS = [ ('.', ['dir1', 'dir2'], ['file1', 'file2', 'file3']), ('./dir1', [], ['dir1_file1', 'dir1_file2']), ('./dir2', ['dir2_subdir'], ['dir2_file1']), ('./dir2/dir2_subdir', [], ['subdir_file1']), ] MOCK_START_PATH = '/home/mock' def _expected_fi...
26.0625
72
0.672422
271
2,085
4.701107
0.195572
0.163265
0.133438
0.156986
0.526688
0.450549
0.450549
0.450549
0.450549
0.408163
0
0.017813
0.219185
2,085
79
73
26.392405
0.764742
0
0
0.327586
0
0
0.061391
0
0
0
0
0
0.068966
1
0.241379
false
0
0.017241
0.103448
0.448276
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
3c677a9df343c0d5a10437578fcffa7f4fb98250
208
py
Python
CS Practical/A16.py
adityaruplaha/adityaruplaha-school-projects
b19d06f356fafdbe4189bade59d4a4d1ffec567f
[ "MIT" ]
null
null
null
CS Practical/A16.py
adityaruplaha/adityaruplaha-school-projects
b19d06f356fafdbe4189bade59d4a4d1ffec567f
[ "MIT" ]
null
null
null
CS Practical/A16.py
adityaruplaha/adityaruplaha-school-projects
b19d06f356fafdbe4189bade59d4a4d1ffec567f
[ "MIT" ]
null
null
null
# Swap assign variables print("Enter 3 no.s:") a = float(input("a: ")) b = float(input("b: ")) c = float(input("c: ")) a, b = a+b, b+c print("Variables are: ") print("a:", a) print("b:", b) print("c:", c)
14.857143
24
0.543269
38
208
2.973684
0.368421
0.265487
0
0
0
0
0
0
0
0
0
0.005814
0.173077
208
13
25
16
0.651163
0.100962
0
0
0
0
0.232432
0
0
0
0
0
0
1
0
false
0
0
0
0
0.555556
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
3c7a408d59d93ef0b1725084817a4cd7ce5274e2
82
py
Python
tests/python/setitem.py
jacereda/py2nim
56fc2699d31241c60bed726f59efea4bf46be238
[ "MIT" ]
10
2020-03-10T12:01:01.000Z
2021-05-23T19:47:06.000Z
tests/python/setitem.py
jacereda/py2nim
56fc2699d31241c60bed726f59efea4bf46be238
[ "MIT" ]
null
null
null
tests/python/setitem.py
jacereda/py2nim
56fc2699d31241c60bed726f59efea4bf46be238
[ "MIT" ]
1
2020-07-17T11:20:56.000Z
2020-07-17T11:20:56.000Z
class A: def __setitem__(self, e, f): print(e + f) a = A() a[2] = 8
10.25
32
0.463415
15
82
2.266667
0.666667
0.117647
0
0
0
0
0
0
0
0
0
0.037736
0.353659
82
7
33
11.714286
0.603774
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0.2
1
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
2
3c8070d20cf1a6dacdae8491d5c310a382aa84fd
389
py
Python
setup.py
hoffa/ccz
17488aab3f5fb24a98e422b8510508a1bdf7bba3
[ "Unlicense" ]
null
null
null
setup.py
hoffa/ccz
17488aab3f5fb24a98e422b8510508a1bdf7bba3
[ "Unlicense" ]
3
2021-05-30T09:33:51.000Z
2021-05-30T22:13:37.000Z
setup.py
hoffa/cx
17488aab3f5fb24a98e422b8510508a1bdf7bba3
[ "Unlicense" ]
null
null
null
from setuptools import setup, find_packages with open("README.md") as f: long_description = f.read() setup( name="ccz", version="0.3.2", install_requires=["ccxt"], packages=find_packages(), long_description=long_description, long_description_content_type="text/markdown", entry_points={...
24.3125
55
0.688946
50
389
5.12
0.7
0.234375
0.148438
0.234375
0
0
0
0
0
0
0
0.015244
0.156812
389
15
56
25.933333
0.765244
0
0
0
0
0
0.169666
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
1
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
2
3c96876235514f4a42563f2a2ed427426ff74d32
462
py
Python
tests/test_version.py
aziascreations/mooss-serialize
e8eda61721a014c3fe5c5ddc4e11cc6925358099
[ "Unlicense" ]
null
null
null
tests/test_version.py
aziascreations/mooss-serialize
e8eda61721a014c3fe5c5ddc4e11cc6925358099
[ "Unlicense" ]
null
null
null
tests/test_version.py
aziascreations/mooss-serialize
e8eda61721a014c3fe5c5ddc4e11cc6925358099
[ "Unlicense" ]
null
null
null
# Imports import semver import unittest import mooss.serialize.__version__ as __version__ # Tests class TestVersion(unittest.TestCase): def test_version(self): """ Testing if the version follows the 'Semantic Versioning' format. """ # Assertion is done through the absence...
21
78
0.683983
50
462
5.9
0.7
0
0
0
0
0
0
0
0
0
0
0
0.233766
462
21
79
22
0.833333
0.331169
0
0
0
0
0.028369
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
3c968d11f02a0c76c01083accb901817c8ee198c
1,845
py
Python
python-buildkite-api/buildkite.py
tahoemph/python-buildkite-api
aa20a716a737a8589ba910fd80a8b5935a85aa4a
[ "MIT" ]
null
null
null
python-buildkite-api/buildkite.py
tahoemph/python-buildkite-api
aa20a716a737a8589ba910fd80a8b5935a85aa4a
[ "MIT" ]
null
null
null
python-buildkite-api/buildkite.py
tahoemph/python-buildkite-api
aa20a716a737a8589ba910fd80a8b5935a85aa4a
[ "MIT" ]
3
2016-05-27T03:37:28.000Z
2019-08-23T20:47:28.000Z
from buildkite_auth import BuildkiteAuth from buildkite_base import BuildkiteBase from buildkite_builds import BuildkiteBuilds from buildkite_organizations import BuildkiteOrganizations from buildkite_pipelines import BuildkitePipelines class Buildkite(BuildkiteBase): def __init__(self): self.api_objects =...
32.946429
70
0.619512
198
1,845
5.580808
0.338384
0.081448
0.101357
0.061538
0.086878
0
0
0
0
0
0
0.001531
0.292141
1,845
55
71
33.545455
0.844564
0.060163
0
0
0
0
0.054335
0
0
0
0
0.018182
0
1
0.181818
false
0
0.113636
0.136364
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
1
0
0
0
0
0
0
1
0
0
0
2
b1b59d8a7d29ef53dd847c35698cabe0f808da1a
1,057
py
Python
napari_etdb/etdb.py
alisterburt/napari-etdb
731180630bf0b115340850cc421dacf2e5d63fc6
[ "BSD-3-Clause" ]
1
2021-09-07T05:13:33.000Z
2021-09-07T05:13:33.000Z
napari_etdb/etdb.py
alisterburt/napari-etdb
731180630bf0b115340850cc421dacf2e5d63fc6
[ "BSD-3-Clause" ]
1
2021-09-07T05:33:24.000Z
2021-09-07T18:20:39.000Z
napari_etdb/etdb.py
alisterburt/napari-etdb
731180630bf0b115340850cc421dacf2e5d63fc6
[ "BSD-3-Clause" ]
null
null
null
""" Placeholder file for an actual interface to the ETDB """ from pydantic import BaseModel from napari.utils.events import SelectableEventedList from datetime import date, datetime from typing import Optional from .etdb_entries.placeholders import starfish, spheres class Entry(BaseModel): date: Optional[date] =...
28.567568
74
0.731315
126
1,057
6
0.47619
0.160053
0.218254
0.068783
0
0
0
0
0
0
0
0
0.183538
1,057
37
75
28.567568
0.876014
0.118259
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.208333
0.041667
0.916667
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
1
0
0
2
b1b62056f3f057fc80177f705ac081cf53aa44d7
563
py
Python
sensorApi/api/migrations/0004_auto_20200504_2224.py
Pawel095/SensorArray
1726b1d35c86fa6b2f44c45263e2785b166a5e75
[ "MIT" ]
null
null
null
sensorApi/api/migrations/0004_auto_20200504_2224.py
Pawel095/SensorArray
1726b1d35c86fa6b2f44c45263e2785b166a5e75
[ "MIT" ]
null
null
null
sensorApi/api/migrations/0004_auto_20200504_2224.py
Pawel095/SensorArray
1726b1d35c86fa6b2f44c45263e2785b166a5e75
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-04 20:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("api", "0003_auto_20200504_2154"), ] operations = [ migrations.AddField( model_name="loggeddata", name=...
23.458333
48
0.550622
53
563
5.754717
0.660377
0.118033
0.15082
0.177049
0.459016
0.268852
0
0
0
0
0
0.08871
0.339254
563
23
49
24.478261
0.731183
0.079929
0
0.470588
1
0
0.131846
0.046653
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b1b9fcd0360c0892e2cc3c7642fda8653e07f7cf
293
py
Python
codql/codeql/config.py
Heersin/codeql_packer
5d1258ce2419a67161ac3b844219ebdbe5310e59
[ "MIT" ]
null
null
null
codql/codeql/config.py
Heersin/codeql_packer
5d1258ce2419a67161ac3b844219ebdbe5310e59
[ "MIT" ]
null
null
null
codql/codeql/config.py
Heersin/codeql_packer
5d1258ce2419a67161ac3b844219ebdbe5310e59
[ "MIT" ]
null
null
null
cpp_config = [ 'query-lib/official/cpp/codeql-suites/cpp-security-and-quality.qls', 'query-lib/official/cpp/codeql-suites/cpp-security-extended.qls', ] js_config = [] # exported lang_configs = { 'cpp' : cpp_config, 'javascript' : js_config } need_compile = ['cpp', 'java']
18.3125
72
0.675768
38
293
5.052632
0.526316
0.09375
0.166667
0.197917
0.4375
0.4375
0.4375
0.4375
0
0
0
0
0.153584
293
16
73
18.3125
0.774194
0.027304
0
0
0
0.1
0.517606
0.447183
0
0
0
0
0
1
0
false
0
0
0
0
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b1c082dddb99169a9d7ba76d70b86474d7d218f0
4,526
py
Python
src/quoridor/QuoridorGame.py
oramleo/alphaquoridor
b9d99cfff8205d64ef0365bb864278aa238cf4be
[ "MIT" ]
1
2021-12-11T04:14:30.000Z
2021-12-11T04:14:30.000Z
src/quoridor/QuoridorGame.py
oramleo/alphaquoridor
b9d99cfff8205d64ef0365bb864278aa238cf4be
[ "MIT" ]
null
null
null
src/quoridor/QuoridorGame.py
oramleo/alphaquoridor
b9d99cfff8205d64ef0365bb864278aa238cf4be
[ "MIT" ]
null
null
null
import sys import os import numpy as np sys.path.append(os.path.join(os.path.dirname(__file__), 'pathfind/build')) from alphazero_general.Game import Game from .QuoridorLogic import QuoridorBoard class QuoridorGame(Game): def __init__(self, n): super().__init__() self.n = n self.action_...
33.525926
113
0.563853
551
4,526
4.558984
0.321234
0.033838
0.021497
0.052548
0.176354
0.176354
0.171576
0.119825
0.119825
0.119825
0
0.026581
0.34335
4,526
134
114
33.776119
0.818641
0.415599
0
0.043478
0
0
0.012576
0
0
0
0
0
0
1
0.26087
false
0
0.108696
0.043478
0.608696
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
b1c560d3dcb0fd5f35d6800083b8fa0821849fd9
2,821
py
Python
game/consumers.py
Greenns/channels-obstruction
d91db6920815b02ac06320cc15e901725ea0f67f
[ "MIT" ]
103
2017-02-16T10:18:15.000Z
2022-01-10T23:38:16.000Z
game/consumers.py
fihuer/channels-obstruction
3fa502c9a887cade1a51986c4afd5baf05de51c2
[ "MIT" ]
11
2020-02-12T03:15:17.000Z
2022-02-26T18:56:46.000Z
game/consumers.py
fihuer/channels-obstruction
3fa502c9a887cade1a51986c4afd5baf05de51c2
[ "MIT" ]
49
2017-05-19T06:18:51.000Z
2022-02-15T16:53:19.000Z
import re import logging from channels import Group from channels.sessions import channel_session from .models import Game, GameSquare from channels.auth import http_session_user, channel_session_user, channel_session_user_from_http log = logging.getLogger(__name__) from django.utils.decorators import method_decorator ...
28.21
97
0.627083
329
2,821
5.25228
0.303951
0.056713
0.0625
0.055556
0.578125
0.550926
0.550926
0.550926
0.550926
0.550926
0
0.000992
0.285005
2,821
99
98
28.494949
0.855726
0.274016
0
0.428571
0
0
0.087864
0
0
0
0
0
0
1
0.190476
false
0.095238
0.190476
0
0.52381
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
b1c76af39c924ec2be78cdbd17ab142924fda18a
700
py
Python
py-contract/producer-contract.py
victoriest/photio
f7873fe96e1f9794a34ca179554234eb91054717
[ "Apache-2.0" ]
null
null
null
py-contract/producer-contract.py
victoriest/photio
f7873fe96e1f9794a34ca179554234eb91054717
[ "Apache-2.0" ]
null
null
null
py-contract/producer-contract.py
victoriest/photio
f7873fe96e1f9794a34ca179554234eb91054717
[ "Apache-2.0" ]
null
null
null
from flask import Flask, Response, make_response import json import config app = Flask(__name__) @app.route("/health") def health(): result = {'status': 'UP'} return Response(json.dumps(result), mimetype='application/json') @app.route("/v1/api/invitation/invite") def invite(token, scheduleId, targetUserId)...
19.444444
68
0.711429
91
700
5.32967
0.428571
0.082474
0.082474
0.107216
0.284536
0.237113
0.181443
0.181443
0
0
0
0.006601
0.134286
700
35
69
20
0.793729
0
0
0.181818
0
0
0.201429
0.145714
0
0
0
0
0
1
0.227273
false
0.181818
0.136364
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
0
2
b1cd5e5a11bad9534977afd70d011f48bd5af433
519
py
Python
Roomba Code/main.py
dotcomstar/Incredibots2019
506f470f320668b712a180845b6ab98726424fb9
[ "MIT" ]
null
null
null
Roomba Code/main.py
dotcomstar/Incredibots2019
506f470f320668b712a180845b6ab98726424fb9
[ "MIT" ]
null
null
null
Roomba Code/main.py
dotcomstar/Incredibots2019
506f470f320668b712a180845b6ab98726424fb9
[ "MIT" ]
null
null
null
#!/usr/bin/python import os import sys from wallaby import * import constants as c import actions as a import movement as m import gyro as g import sensors as s import utils as u def main(): print "Starting main()\n" u.setup() u.calibrate() # You only need to include this command if you want the tophats t...
22.565217
120
0.691715
88
519
3.965909
0.647727
0.028653
0.034384
0
0
0
0
0
0
0
0
0.007299
0.208092
519
22
121
23.590909
0.841849
0.223507
0
0
0
0
0.102244
0
0
0
0
0
0
0
null
null
0
0.473684
null
null
0.105263
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
2
b1dfea9d6d33f6396ab7c7791e2bcf1a30ea7661
951
py
Python
lib/coginvasion/gags/Inventory.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
1
2020-03-12T16:44:10.000Z
2020-03-12T16:44:10.000Z
lib/coginvasion/gags/Inventory.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
lib/coginvasion/gags/Inventory.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: lib.coginvasion.gags.Inventory from direct.directNotify.DirectNotifyGlobal import directNotify from direct.showbase.DirectObject import ...
27.171429
104
0.661409
118
951
5.262712
0.5
0.077295
0.038647
0
0
0
0
0
0
0
0
0.061111
0.242902
951
35
105
27.171429
0.801389
0.216614
0
0
0
0
0.012146
0
0
0
0
0
0
1
0.26087
false
0
0.086957
0.130435
0.608696
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
b1e5bd03375177a23f54dcd70374f81f872f644f
53
py
Python
spotdl/__init__.py
brayo-pip/Spotdl
261faae2b23d00e3b0705be9120ebac91a70d2db
[ "MIT" ]
null
null
null
spotdl/__init__.py
brayo-pip/Spotdl
261faae2b23d00e3b0705be9120ebac91a70d2db
[ "MIT" ]
null
null
null
spotdl/__init__.py
brayo-pip/Spotdl
261faae2b23d00e3b0705be9120ebac91a70d2db
[ "MIT" ]
null
null
null
__all__ = ["search", "download","lyrics", "patches"]
26.5
52
0.641509
5
53
6
1
0
0
0
0
0
0
0
0
0
0
0
0.09434
53
1
53
53
0.625
0
0
0
0
0
0.509434
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
b1e84d7aabd4cbde434caa12989290c341d58a83
126
py
Python
album_service.py
stesfu/musick
0379dc221d91bda9d453410ba20524700a0239be
[ "MIT" ]
null
null
null
album_service.py
stesfu/musick
0379dc221d91bda9d453410ba20524700a0239be
[ "MIT" ]
null
null
null
album_service.py
stesfu/musick
0379dc221d91bda9d453410ba20524700a0239be
[ "MIT" ]
null
null
null
album_info = { 'Arrival - ABBA': { 'image': 'arrival.jpg', 'spotify_link_a': '1M4anG49aEs4YimBdj96Oy', }, }
18
49
0.571429
11
126
6.272727
0.909091
0
0
0
0
0
0
0
0
0
0
0.073684
0.246032
126
6
50
21
0.652632
0
0
0
0
0
0.52381
0.174603
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
b1f553e31a1cf320b0ae926d018507be5ee2be00
622
py
Python
src/pyrobot/azure_kinect/camera.py
gujralsanyam22/pyrobot
a0448714857b684d8b280f710e9304988524d2e0
[ "MIT" ]
2,150
2019-06-12T20:55:41.000Z
2022-03-21T07:14:51.000Z
src/pyrobot/azure_kinect/camera.py
gujralsanyam22/pyrobot
a0448714857b684d8b280f710e9304988524d2e0
[ "MIT" ]
124
2019-06-22T17:12:27.000Z
2022-02-26T11:43:13.000Z
src/pyrobot/azure_kinect/camera.py
gujralsanyam22/pyrobot
a0448714857b684d8b280f710e9304988524d2e0
[ "MIT" ]
329
2019-06-13T03:03:54.000Z
2022-03-30T07:04:55.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from pyrobot.kinect2.camera import Kinect2Camera class AzureKinectCamera(Kinect2Camera): """ This is camera class that interfaces wi...
25.916667
65
0.700965
73
622
5.863014
0.671233
0.046729
0
0
0
0
0
0
0
0
0
0.01046
0.231511
622
23
66
27.043478
0.884937
0.57074
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
b1f6fed75bf0324561a438c671e1d089b3001bf6
210
py
Python
cride/users/app.py
chulth/CRide
3dd0aaf12d50ac7786d87413962b9a21e45c0cc7
[ "MIT" ]
null
null
null
cride/users/app.py
chulth/CRide
3dd0aaf12d50ac7786d87413962b9a21e45c0cc7
[ "MIT" ]
null
null
null
cride/users/app.py
chulth/CRide
3dd0aaf12d50ac7786d87413962b9a21e45c0cc7
[ "MIT" ]
null
null
null
'''users app.''' # Django #from django.app import AppConfig from django.apps import AppConfig class UsersAppConfig(AppConfig): '''users app config.''' name = 'cride.users' verbose_name = 'Users'
17.5
33
0.685714
25
210
5.72
0.52
0.111888
0
0
0
0
0
0
0
0
0
0
0.180952
210
11
34
19.090909
0.831395
0.32381
0
0
0
0
0.123077
0
0
0
0
0
0
1
0
false
0
0.25
0
1
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
1
0
0
2
5900d1d102fca4f9321bafdf2652c76ad5621680
1,262
py
Python
models/windows_device_ad_account.py
MIchaelMainer/msgraph-v10-models-python
adad66363ebe151be2332f3ef74a664584385748
[ "MIT" ]
1
2021-03-07T07:02:22.000Z
2021-03-07T07:02:22.000Z
models/windows_device_ad_account.py
MIchaelMainer/msgraph-v10-models-python
adad66363ebe151be2332f3ef74a664584385748
[ "MIT" ]
null
null
null
models/windows_device_ad_account.py
MIchaelMainer/msgraph-v10-models-python
adad66363ebe151be2332f3ef74a664584385748
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' # Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. # # This file was generated and any changes will be overwritten. ''' from __future__ import unicode_literals from ..one_drive_object_bas...
24.745098
151
0.603011
141
1,262
5.156028
0.453901
0.099037
0.13205
0.046768
0.211829
0.211829
0.088033
0.088033
0
0
0
0.001152
0.312203
1,262
50
152
25.24
0.836406
0.301902
0
0.26087
0
0
0.06932
0
0
0
0
0
0
1
0.217391
false
0
0.086957
0
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
1
0
0
0
0
1
0
0
2
591561bcd00ba95a3076d2995292ef8796f702d5
358
py
Python
src/02/count.py
Octau/distributed-system
cec5fc1451f0297cdad95dab7c9ff19b0656be62
[ "CC0-1.0" ]
null
null
null
src/02/count.py
Octau/distributed-system
cec5fc1451f0297cdad95dab7c9ff19b0656be62
[ "CC0-1.0" ]
null
null
null
src/02/count.py
Octau/distributed-system
cec5fc1451f0297cdad95dab7c9ff19b0656be62
[ "CC0-1.0" ]
null
null
null
import sys n_huruf=0; n_angka=0; lines_number = 0 for line in sys.stdin: for chara in line: if(chara.isdigit()): n_angka+=1 elif(chara.isalpha()): n_huruf+=1 lines_number = lines_number + 1 sys.stdout.write('Jumlah huruf :'+str(n_huruf)) sys.stdout.write('\n') sys.stdout...
22.375
47
0.628492
57
358
3.789474
0.385965
0.083333
0.194444
0.185185
0
0
0
0
0
0
0
0.021583
0.223464
358
15
48
23.866667
0.755396
0
0
0
0
0
0.083799
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0
0
0
0
null
0
1
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
2
591fc557a74e28b578bc53d5fbc4c14dcf236ed7
180
py
Python
utils/ids/difficulty_id.py
rkwong43/Toh
702f689aa2c37a9f6f463e24405b6c418fd0607f
[ "CC-BY-4.0" ]
3
2020-01-28T16:02:26.000Z
2020-01-29T21:47:14.000Z
utils/ids/difficulty_id.py
rkwong43/Tears-Under-Heaven
702f689aa2c37a9f6f463e24405b6c418fd0607f
[ "CC-BY-4.0" ]
null
null
null
utils/ids/difficulty_id.py
rkwong43/Tears-Under-Heaven
702f689aa2c37a9f6f463e24405b6c418fd0607f
[ "CC-BY-4.0" ]
null
null
null
from enum import Enum, auto """Represents the IDs of difficulty levels. """ class DifficultyID(Enum): # Difficulties EASY = auto() NORMAL = auto() HARD = auto()
15
43
0.638889
21
180
5.47619
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.244444
180
11
44
16.363636
0.845588
0.066667
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
1
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
1
0
0
2
5921edb8819a04fbbfb0f75b48d321362354828f
1,188
py
Python
LeetCode/Python/first_missing_positive.py
wh-acmer/minixalpha-acm
cb684ad70eaa61d42a445364cb3ee195b9e9302e
[ "MIT" ]
null
null
null
LeetCode/Python/first_missing_positive.py
wh-acmer/minixalpha-acm
cb684ad70eaa61d42a445364cb3ee195b9e9302e
[ "MIT" ]
null
null
null
LeetCode/Python/first_missing_positive.py
wh-acmer/minixalpha-acm
cb684ad70eaa61d42a445364cb3ee195b9e9302e
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding: utf-8 class Solution: # @param A, a list of integers # @return an integer def firstMissingPositive(self, A): if not A: return 1 la = len(A) i = 0 while i < la: if i + 1 == A[i]: i += 1 continue ...
26.4
63
0.446128
170
1,188
3.070588
0.229412
0.321839
0.028736
0.16092
0.304598
0.193487
0.078544
0.057471
0.057471
0.057471
0
0.068376
0.409091
1,188
44
64
27
0.675214
0.068182
0
0.176471
0
0
0.007253
0
0
0
0
0
0.235294
1
0.029412
false
0
0
0
0.088235
0
0
0
0
null
1
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
2
5941351462b05953e2bb10d7a3b6451404874428
1,430
py
Python
class2/exercise2.py
SamerLabban/Network_Automation_Course
ca68e83a7699fded251aa6ec2f021e8a7e53ffed
[ "Apache-2.0" ]
1
2017-04-30T17:43:51.000Z
2017-04-30T17:43:51.000Z
class2/exercise2.py
SamerLabban/Network_Automation_Course
ca68e83a7699fded251aa6ec2f021e8a7e53ffed
[ "Apache-2.0" ]
null
null
null
class2/exercise2.py
SamerLabban/Network_Automation_Course
ca68e83a7699fded251aa6ec2f021e8a7e53ffed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import telnetlib #Need the following to be able to use time.sleep import time #I need the following to be able to use try and except import socket import sys TELNET_PORT = 23 TELNET_TIMEOUT = 6 #Create Telnet Connection def telnet_connect(ip_addr): try: return telnetlib.Telnet(ip_addr, TELNE...
23.064516
63
0.746154
213
1,430
4.812207
0.384977
0.136585
0.062439
0.058537
0.316098
0.056585
0.056585
0.056585
0
0
0
0.019721
0.148951
1,430
61
64
23.442623
0.822514
0.233566
0
0.055556
0
0
0.105166
0
0
0
0
0
0
0
null
null
0.111111
0.111111
null
null
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
594ef4c2e9b789a9cbcdb0044560f2ad24c9c6cc
107
py
Python
past/001/a/answer.py
TakuyaNoguchi/atcoder
d079402e6fe9c9aaf3a6fc9272331ee71fc497da
[ "MIT" ]
null
null
null
past/001/a/answer.py
TakuyaNoguchi/atcoder
d079402e6fe9c9aaf3a6fc9272331ee71fc497da
[ "MIT" ]
null
null
null
past/001/a/answer.py
TakuyaNoguchi/atcoder
d079402e6fe9c9aaf3a6fc9272331ee71fc497da
[ "MIT" ]
null
null
null
import re S = input().rstrip() if re.match('^[0-9]+$', S): print(int(S) * 2) else: print('error')
13.375
27
0.523364
18
107
3.111111
0.777778
0
0
0
0
0
0
0
0
0
0
0.035294
0.205607
107
8
28
13.375
0.623529
0
0
0
0
0
0.12037
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.333333
1
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
2
3cad61659053568395803614f7ad60a640dd6a42
960
py
Python
cosmic_ray/operators/break_continue.py
rob-smallshire/cosmic-ray
4fd751b38eee30568f8366e09452d7aa60be4e26
[ "MIT" ]
null
null
null
cosmic_ray/operators/break_continue.py
rob-smallshire/cosmic-ray
4fd751b38eee30568f8366e09452d7aa60be4e26
[ "MIT" ]
null
null
null
cosmic_ray/operators/break_continue.py
rob-smallshire/cosmic-ray
4fd751b38eee30568f8366e09452d7aa60be4e26
[ "MIT" ]
null
null
null
"""Implementation of the replace-break-with-continue and replace-continue-with-break operators. """ import ast from .operator import Operator class ReplaceBreakWithContinue(Operator): "Operator which replaces 'break' with 'continue'." def visit_Break(self, node): # pylint: disable=invalid-name "Vi...
28.235294
67
0.679167
115
960
5.6
0.286957
0.049689
0.046584
0.090062
0.388199
0.304348
0.304348
0.304348
0.186335
0.186335
0
0
0.2125
960
33
68
29.090909
0.851852
0.397917
0
0.222222
0
0
0.2
0
0
0
0
0
0.111111
1
0.222222
false
0
0.111111
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
3cb1923af301402eb24b54bd236d10f07ebab9fd
1,803
py
Python
tests/transfer_from_rdbms_to_json_test.py
moshebeeri/datap
9ff99bb435728cd69f2589e3ee858a06768ea85e
[ "Apache-2.0" ]
null
null
null
tests/transfer_from_rdbms_to_json_test.py
moshebeeri/datap
9ff99bb435728cd69f2589e3ee858a06768ea85e
[ "Apache-2.0" ]
null
null
null
tests/transfer_from_rdbms_to_json_test.py
moshebeeri/datap
9ff99bb435728cd69f2589e3ee858a06768ea85e
[ "Apache-2.0" ]
null
null
null
from controller import Control import mongomock from elasticmock import elasticmock from datetime import datetime from freezegun import freeze_time from datetime import datetime import elasticsearch from unittest import TestCase from service import * from projects.job import Job import random from rdbms import Alchemy...
31.631579
94
0.747088
216
1,803
6.092593
0.444444
0.031915
0.027356
0.039514
0
0
0
0
0
0
0
0.019646
0.153078
1,803
56
95
32.196429
0.842174
0.042152
0
0.043478
0
0
0.042948
0
0
0
0
0
0.043478
1
0.086957
false
0
0.326087
0.021739
0.608696
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
3cc7eeed94683ad8a5d6e2313f924c29fd0e96fe
371
py
Python
mliyweb/api/v2/instances.py
FINRAOS/MLiy
a6fd56ad8a0de97d9862569d02e5d0f65c181acf
[ "Apache-2.0" ]
13
2018-06-19T18:28:38.000Z
2021-12-02T13:08:52.000Z
mliyweb/api/v2/instances.py
FINRAOS/MLiy
a6fd56ad8a0de97d9862569d02e5d0f65c181acf
[ "Apache-2.0" ]
14
2018-08-09T14:49:08.000Z
2022-02-10T10:54:55.000Z
mliyweb/api/v2/instances.py
FINRAOS/MLiy
a6fd56ad8a0de97d9862569d02e5d0f65c181acf
[ "Apache-2.0" ]
2
2018-07-11T14:13:23.000Z
2019-02-08T14:17:26.000Z
from rest_framework import viewsets from rest_framework.permissions import AllowAny from mliyweb.api.v2.serializers import InstanceSerializer from mliyweb.models import Instance class InstanceViewSet(viewsets.ModelViewSet): queryset = Instance.objects.all().exclude(state__iexact='terminated') serializer_class = In...
28.538462
70
0.843666
41
371
7.487805
0.658537
0.052117
0.110749
0
0
0
0
0
0
0
0
0.002967
0.091644
371
12
71
30.916667
0.908012
0
0
0
0
0
0.027027
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
3ce159415d39a9d3be61532d952f625095ce234f
1,717
py
Python
ntcore/tcpsockets/tcp_stream.py
amorygalili/pynetworktables
59b5d1328274e78393202fe2a7e09845f5ff63a5
[ "BSD-3-Clause" ]
56
2015-01-05T00:59:55.000Z
2022-03-30T22:40:09.000Z
ntcore/tcpsockets/tcp_stream.py
amorygalili/pynetworktables
59b5d1328274e78393202fe2a7e09845f5ff63a5
[ "BSD-3-Clause" ]
71
2015-01-17T23:17:03.000Z
2021-12-28T18:44:44.000Z
ntcore/tcpsockets/tcp_stream.py
amorygalili/pynetworktables
59b5d1328274e78393202fe2a7e09845f5ff63a5
[ "BSD-3-Clause" ]
36
2015-01-26T15:00:04.000Z
2022-03-02T23:02:22.000Z
# novalidate import select import socket import threading class StreamEOF(IOError): pass class TCPStream(object): def __init__(self, sd, peer_ip, peer_port, sock_type): self.m_sd = sd self.m_peerIP = peer_ip self.m_peerPort = peer_port self.m_rdsock = sd.makefile("rb") ...
23.520548
81
0.576587
221
1,717
4.312217
0.375566
0.094439
0.051417
0.047219
0.100735
0.06086
0
0
0
0
0
0.002582
0.323238
1,717
72
82
23.847222
0.817556
0.075131
0
0.085106
0
0
0.016425
0
0
0
0
0.013889
0
1
0.212766
false
0.042553
0.06383
0.06383
0.446809
0
0
0
0
null
0
0
0
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
1
0
0
0
0
0
0
0
2
3ce2b3933382b31b28c9fcfc52c41f5de36e94a4
2,820
py
Python
REST/CDH/modify_yarn_config.py
doronve/myrep
77fe6299f29453daae24990e974eddeb2ea2b17e
[ "Apache-2.0" ]
null
null
null
REST/CDH/modify_yarn_config.py
doronve/myrep
77fe6299f29453daae24990e974eddeb2ea2b17e
[ "Apache-2.0" ]
null
null
null
REST/CDH/modify_yarn_config.py
doronve/myrep
77fe6299f29453daae24990e974eddeb2ea2b17e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import urllib2 import sys, getopt import base64 from urlparse import urlparse import json from pprint import pprint import cdhRest yarn_json = ' { "items" : [ { "name" : "yarn_nodemanager_resource_cpu_vcores", "value" : "8" }, { "name" : "yarn_nodemanager_resource_memory_mb", "value" : "8192" } ] ...
37.6
169
0.639716
321
2,820
5.411215
0.404984
0.036269
0.055268
0.032815
0.052965
0.037997
0
0
0
0
0
0.020455
0.219858
2,820
74
170
38.108108
0.769091
0.066667
0
0.05
0
0.016667
0.212709
0.045662
0
0
0
0
0
0
null
null
0.116667
0.116667
null
null
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
3ce434b3d58945581d792a2f6395262bc7598409
4,400
py
Python
scenarios/DLP_SH_v2/run_cases.py
grossmann-group/or-gym
8ebad3bdc84cc7787592d7bf347fdd39eb24d982
[ "MIT" ]
6
2020-12-03T21:08:39.000Z
2021-12-26T08:40:33.000Z
scenarios/DLP_SH_v2/run_cases.py
grossmann-group/or-gym
8ebad3bdc84cc7787592d7bf347fdd39eb24d982
[ "MIT" ]
9
2020-09-21T19:03:54.000Z
2022-03-07T09:05:56.000Z
scenarios/DLP_SH_v2/run_cases.py
grossmann-group/or-gym
8ebad3bdc84cc7787592d7bf347fdd39eb24d982
[ "MIT" ]
1
2022-03-12T13:40:50.000Z
2022-03-12T13:40:50.000Z
import or_gym import pickle from pyomo.opt import SolverFactory from or_gym.algos.supply_network.math_prog import * from or_gym.algos.supply_network.stoch_prog import * #imputs path = "./scenarios/" ver = "v2" model = "DLP" mode = "SH" window = 30 solver = "glpk" #create file names filename = path+"in"+ver+".pkl" D =...
29.530201
101
0.674091
647
4,400
4.547141
0.61051
0.006798
0.006118
0.009517
0.018355
0.018355
0
0
0
0
0
0.42024
0.205
4,400
149
102
29.530201
0.420812
0.668409
0
0
0
0
0.099702
0
0
0
0
0
0
1
0
false
0
0.16129
0
0.16129
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
2
3ce6866c70e654a59b3bff53a3c4d3db0f346e1f
804
py
Python
tests/schema_comparer/not_matches/test_schema_comparer_struct_to_struct.py
icanbwell/SparkDataFrameComparer
f6364ada42d83a77cd6fcc34993dfc655f6324fc
[ "Apache-2.0" ]
1
2020-10-31T23:25:02.000Z
2020-10-31T23:25:02.000Z
tests/schema_comparer/not_matches/test_schema_comparer_struct_to_struct.py
imranq2/SparkDataFrameComparer
46de202f26713d91d747faee6b0dcf54a872739d
[ "Apache-2.0" ]
null
null
null
tests/schema_comparer/not_matches/test_schema_comparer_struct_to_struct.py
imranq2/SparkDataFrameComparer
46de202f26713d91d747faee6b0dcf54a872739d
[ "Apache-2.0" ]
null
null
null
from pyspark.sql.types import ( StructType, StructField, StringType, IntegerType, FloatType, ) from spark_data_frame_comparer.schema_comparer import SchemaComparer def test_schema_comparer_struct_to_struct() -> None: print("") source_schema: StructType = StructType( [ ...
25.935484
82
0.635572
69
804
7.144928
0.434783
0.212982
0.105477
0.150101
0.271805
0.271805
0.271805
0.271805
0
0
0
0
0.252488
804
30
83
26.8
0.8203
0
0
0.074074
0
0
0.029851
0
0
0
0
0
0
1
0.037037
true
0
0.074074
0
0.111111
0.037037
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
3cec10af265e59a9e78c3e2145439e2d6aa5c28c
393
py
Python
DataStructures-Algorithms/Udacity-Python-DSA/02-Stacks-and-Queues/implement-queue-class.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
1
2020-11-14T18:28:13.000Z
2020-11-14T18:28:13.000Z
DataStructures-Algorithms/Udacity-Python-DSA/02-Stacks-and-Queues/implement-queue-class.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
DataStructures-Algorithms/Udacity-Python-DSA/02-Stacks-and-Queues/implement-queue-class.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
class Queue(object): def __init__(self): self.q = [] def push(self, value): self.q.insert(0, value) def pop(self): return self.q.pop() def is_empty(self): return self.q == [] def size(self): return len(self.q) # Example q = Queue() q.push(1...
16.375
31
0.503817
63
393
3.063492
0.349206
0.129534
0.082902
0.15544
0.093264
0
0
0
0
0
0
0.033457
0.315522
393
23
32
17.086957
0.684015
0.061069
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.277778
false
0
0
0.166667
0.5
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
3cf243c8128823ad0a1f5e9690d2a0b22b044352
1,802
py
Python
invenio_resourcesync/exporter/ext.py
mhaya/invenio-resourcesync
c76188ea713118e01fe6af3b66ae957c4d9ab60d
[ "MIT" ]
null
null
null
invenio_resourcesync/exporter/ext.py
mhaya/invenio-resourcesync
c76188ea713118e01fe6af3b66ae957c4d9ab60d
[ "MIT" ]
null
null
null
invenio_resourcesync/exporter/ext.py
mhaya/invenio-resourcesync
c76188ea713118e01fe6af3b66ae957c4d9ab60d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Zenodo. # Copyright (C) 2018 CERN. # # Zenodo is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later v...
31.614035
76
0.695893
249
1,802
4.955823
0.546185
0.029173
0.031605
0.046191
0.066451
0.045381
0
0
0
0
0
0.014114
0.213652
1,802
56
77
32.178571
0.85674
0.596004
0
0
0
0
0.056296
0
0
0
0
0
0
1
0.235294
false
0
0.176471
0
0.529412
0.058824
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
a70c0be1149a0cfa6d7601960be0d176269b5d10
101
py
Python
01-introduction-functional-paradigm/functional_programming.py
saidulislam/Functional-Programming-in-Python
27ae205f9cf0fa38e16e29089cf72981f8a51a78
[ "Apache-2.0" ]
null
null
null
01-introduction-functional-paradigm/functional_programming.py
saidulislam/Functional-Programming-in-Python
27ae205f9cf0fa38e16e29089cf72981f8a51a78
[ "Apache-2.0" ]
null
null
null
01-introduction-functional-paradigm/functional_programming.py
saidulislam/Functional-Programming-in-Python
27ae205f9cf0fa38e16e29089cf72981f8a51a78
[ "Apache-2.0" ]
null
null
null
import functools my_list = [1,2,3,4] sum = functools.reduce(lambda x,y: x+y, my_list) print(sum)
20.2
49
0.683168
20
101
3.35
0.7
0.179104
0
0
0
0
0
0
0
0
0
0.047059
0.158416
101
5
50
20.2
0.741176
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
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
2
a71c7ecac5633d8136f7ec1764bea45c0cd0795c
9,921
py
Python
src/applications/danews/add_metadata.py
centre-for-humanities-computing/danish-foundation-models
1cc0950fab55650fd92f56b4bad0b13a5be73061
[ "MIT" ]
8
2021-12-10T08:37:55.000Z
2022-02-08T14:42:01.000Z
src/applications/danews/add_metadata.py
centre-for-humanities-computing/danish-foundation-models
1cc0950fab55650fd92f56b4bad0b13a5be73061
[ "MIT" ]
47
2021-12-12T14:41:31.000Z
2022-03-31T08:57:56.000Z
src/applications/danews/add_metadata.py
centre-for-humanities-computing/danish-foundation-models
1cc0950fab55650fd92f56b4bad0b13a5be73061
[ "MIT" ]
null
null
null
""" Add description to dataset and generate an outline to a datasheet describing the dataset. Dependent on: src/applications/danews/dedupe.py Authors: Kenneth Enevoldsen """ from datasets import load_from_disk from pathlib import Path import spacy def word_count(batch): nlp = spacy.blank("da") batch...
35.55914
117
0.753452
1,536
9,921
4.803385
0.342448
0.029818
0.020873
0.013554
0.154242
0.137436
0.137436
0.137436
0.133098
0.119816
0
0.018563
0.152908
9,921
278
118
35.68705
0.858996
0.026409
0
0.04712
1
0.062827
0.849606
0.05255
0
0
0
0
0
1
0.005236
false
0.015707
0.015707
0
0.026178
0.04712
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a7308795495e8f8ade2f72037b391b0808e98305
533
py
Python
tests.py
sorengoyal/combat-evolved
c760bf8aedd7eeb29afeacb02b052f91f388cc0c
[ "CC-BY-3.0" ]
null
null
null
tests.py
sorengoyal/combat-evolved
c760bf8aedd7eeb29afeacb02b052f91f388cc0c
[ "CC-BY-3.0" ]
2
2017-06-10T18:38:02.000Z
2017-06-24T02:39:32.000Z
tests.py
sorengoyal/combat-evolved
c760bf8aedd7eeb29afeacb02b052f91f388cc0c
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jun 1 20:45:09 2017 @author: sogoyal """ from app.tests.TestServerMethods import TestServerMethods from app.tests.TestGeospatial import TestGeospatial import unittest API_KEY = '3d42933f4c284a3b8dd2c5200e97da00' suite = unittest.TestSuite() loader = ...
25.380952
63
0.797373
59
533
7.186441
0.661017
0.033019
0.056604
0.188679
0
0
0
0
0
0
0
0.072165
0.090056
533
20
64
26.65
0.802062
0.294559
0
0
0
0
0.087432
0.087432
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
2
597ea57970ac878f088034814530597b72f4cc24
1,144
py
Python
satoshi.py
malorento/satoshi
adbc6b08455d7c06684fc6588d86822a5cfab44a
[ "MIT" ]
null
null
null
satoshi.py
malorento/satoshi
adbc6b08455d7c06684fc6588d86822a5cfab44a
[ "MIT" ]
null
null
null
satoshi.py
malorento/satoshi
adbc6b08455d7c06684fc6588d86822a5cfab44a
[ "MIT" ]
null
null
null
from Core import core from Core import decor print(decor.banner) while True: print(decor.menu) choose = int(input(decor.yellow + "Enter number >> ")) if choose == 1: file = input(decor.yellow + "Enter filename with extension (file.txt) >> ") password = input(decor.yellow + ...
29.333333
93
0.533217
121
1,144
5.041322
0.404959
0.098361
0.157377
0.206557
0.316393
0.17377
0.17377
0.17377
0.17377
0.17377
0
0.003995
0.343531
1,144
38
94
30.105263
0.808256
0
0
0.266667
0
0
0.256781
0
0
0
0
0
0
1
0
false
0.166667
0.066667
0
0.066667
0.166667
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
1
0
0
0
0
0
2
5983197b11ab4b941ff446cf4950d269e0a51cab
4,144
py
Python
examples/pytorch/models/GPyTorchModels.py
UTokyo-ICEPP/multiml_htautau
5f926c2291a55f57419aa0130d07e2a793fc7353
[ "Apache-2.0" ]
null
null
null
examples/pytorch/models/GPyTorchModels.py
UTokyo-ICEPP/multiml_htautau
5f926c2291a55f57419aa0130d07e2a793fc7353
[ "Apache-2.0" ]
null
null
null
examples/pytorch/models/GPyTorchModels.py
UTokyo-ICEPP/multiml_htautau
5f926c2291a55f57419aa0130d07e2a793fc7353
[ "Apache-2.0" ]
null
null
null
import torch import gpytorch from gpytorch.distributions import MultitaskMultivariateNormal class MultitaskGPModel(gpytorch.models.ApproximateGP): def __init__(self, inducing_points_num, input_dim, num_latents, num_tasks=8): # Let's use a different set of inducing points for each latent function #...
42.721649
95
0.6986
483
4,144
5.776398
0.213251
0.065233
0.048387
0.06129
0.745161
0.726523
0.698566
0.698566
0.698566
0.692832
0
0.001563
0.228041
4,144
96
96
43.166667
0.870585
0.298986
0
0.423077
0
0
0.001055
0
0
0
0
0
0
1
0.096154
false
0
0.057692
0
0.25
0
0
0
0
null
0
0
0
0
1
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
2
598f1ae016dd603cb191e858a8a535adcf57198d
406
py
Python
detection/pixel_link/pylib/test/test_util_tf.py
HLIG/HUAWEI_OCR2019
1070d6291072e0223c2624f686766d0f3065e9c6
[ "MIT" ]
54
2019-04-17T07:55:44.000Z
2021-06-02T06:00:04.000Z
detection/pixel_link/pylib/test/test_util_tf.py
HLIG/HUAWEI_OCR2019
1070d6291072e0223c2624f686766d0f3065e9c6
[ "MIT" ]
5
2019-04-24T03:22:50.000Z
2021-08-18T13:12:38.000Z
detection/pixel_link/pylib/test/test_util_tf.py
HLIG/HUAWEI_OCR2019
1070d6291072e0223c2624f686766d0f3065e9c6
[ "MIT" ]
28
2019-04-17T11:30:58.000Z
2021-12-09T13:37:02.000Z
import util def test_is_gpu_available(): # for i in range(4): if(util.tf.is_gpu_available()): print "GPU is available, %s CUDA installed"%('with' if util.tf.is_gpu_available(True) else 'without'); def test_get_available_gpus(): devices = util.tf.get_available_gpus(); for d in devices: print d ...
27.066667
104
0.714286
66
406
4.045455
0.439394
0.074906
0.209738
0.134831
0.164794
0.164794
0
0
0
0
0
0.00295
0.165025
406
14
105
29
0.784661
0.044335
0
0
0
0
0.119171
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.181818
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
1
0
0
0
0
0
0
0
0
2
599c23bc10129153960f647702884f5e351cae70
272
py
Python
setup.py
WTFox/BenefitPoint
cd307af97ab7b4e8fc492b4e0824afcf32b65cf0
[ "MIT" ]
2
2015-04-21T20:47:08.000Z
2015-06-24T18:40:22.000Z
setup.py
WTFox/BenefitPoint
cd307af97ab7b4e8fc492b4e0824afcf32b65cf0
[ "MIT" ]
null
null
null
setup.py
WTFox/BenefitPoint
cd307af97ab7b4e8fc492b4e0824afcf32b65cf0
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='benefitpoint', version='0.1', packages=['benefitpoint'], url='', license='', author='anthonyfox', author_email='anthonyfox1988@gmail.com', description='A python wrapper for BenefitPoint API' )
20.923077
55
0.665441
29
272
6.206897
0.862069
0
0
0
0
0
0
0
0
0
0
0.027273
0.191176
272
12
56
22.666667
0.790909
0
0
0
0
0
0.360294
0.088235
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
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
1
0
0
0
0
0
0
2
599d11a06e5edd515cb1953e1b7729347d30c29a
323
py
Python
code/events/fix_response_hand_gstroop_code.py
spinoza-rec/PIOP1
74f8c746de27cd5f12a3f61aa545903ead9f9d2a
[ "CC0-1.0" ]
1
2020-08-23T20:21:35.000Z
2020-08-23T20:21:35.000Z
code/events/fix_response_hand_gstroop_code.py
NILAB-UvA/PIOP1
74f8c746de27cd5f12a3f61aa545903ead9f9d2a
[ "CC0-1.0" ]
null
null
null
code/events/fix_response_hand_gstroop_code.py
NILAB-UvA/PIOP1
74f8c746de27cd5f12a3f61aa545903ead9f9d2a
[ "CC0-1.0" ]
null
null
null
import pandas as pd from glob import glob tsvs = sorted(glob('../../sub*/func/*task-gstroop*.tsv')) for tsv in tsvs: df = pd.read_csv(tsv, sep='\t') df.loc[df['response_hand'] == 1, 'response_hand'] = 'left' df.loc[df['response_hand'] == 2, 'response_hand'] = 'right' df.to_csv(tsv, sep='\t', index=Fals...
32.3
63
0.625387
53
323
3.698113
0.566038
0.244898
0.091837
0.102041
0.193878
0
0
0
0
0
0
0.007353
0.157895
323
9
64
35.888889
0.713235
0
0
0
0
0
0.306502
0.105263
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
1
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
2
59aaed1703bcb17421325e37709f1cb55aa98c5c
216
py
Python
decorator/generate_domain.py
MailG/code_py
c21a27c871c5c42625aadf45d51a0ba325095739
[ "MIT" ]
null
null
null
decorator/generate_domain.py
MailG/code_py
c21a27c871c5c42625aadf45d51a0ba325095739
[ "MIT" ]
null
null
null
decorator/generate_domain.py
MailG/code_py
c21a27c871c5c42625aadf45d51a0ba325095739
[ "MIT" ]
null
null
null
import unittest def gen_domain_list(domain): if len(domain) == 0: return None common_index = 0 common_index = domain.find('.') print domain, common_index def main(): gen_domain_list("www.bc.ade.da.com")
15.428571
37
0.708333
34
216
4.294118
0.617647
0.226027
0.178082
0
0
0
0
0
0
0
0
0.01105
0.162037
216
13
38
16.615385
0.79558
0
0
0
0
0
0.083721
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.111111
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
59b2e8192eace452eac95853186123a89babe369
6,603
py
Python
tests/expectdata/statements/load_capiq_cat_annual.py
nickderobertis/py-finstmt
7903bce83b31e4425ac680020bf7d3536ed1ed11
[ "MIT" ]
3
2021-11-30T21:03:25.000Z
2022-01-04T10:18:54.000Z
tests/expectdata/statements/load_capiq_cat_annual.py
nickderobertis/py-finstmt
7903bce83b31e4425ac680020bf7d3536ed1ed11
[ "MIT" ]
23
2020-03-24T18:14:22.000Z
2022-03-12T00:19:51.000Z
tests/expectdata/statements/load_capiq_cat_annual.py
whoopnip/py-finstmt
7903bce83b31e4425ac680020bf7d3536ed1ed11
[ "MIT" ]
3
2021-05-15T11:13:08.000Z
2021-11-30T21:03:28.000Z
import pandas as pd LOAD_CAPIQ_CAT_A_INDEX_str = ["2014-12-31 00:00:00", "2015-12-31 00:00:00", "2016-12-31 00:00:00", "2017-12-31 00:00:00", "2018-12-31 00:00:00"] LOAD_CAPIQ_CAT_A_INDEX = [pd.to_datetime(val) for val in LOAD_CAPIQ_CAT_A_INDEX_str] LOAD_CAPIQ_CAT_A_INDEX_DATA_DICT = dict( revenue=pd.Series( ...
30.150685
144
0.5864
1,138
6,603
3.140598
0.245167
0.045887
0.058758
0.064913
0.535255
0.511192
0.496083
0.415501
0.297706
0.22188
0
0.260094
0.261093
6,603
218
145
30.288991
0.472433
0
0
0.539171
0
0
0.014387
0
0
0
0
0
0
1
0
false
0
0.004608
0
0.004608
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
2
59c49f6515b3e511d038e69f8c8d925051497af1
282
py
Python
modules/dbnd/src/dbnd/_vendor/croniter/tests/base.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
modules/dbnd/src/dbnd/_vendor/croniter/tests/base.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
modules/dbnd/src/dbnd/_vendor/croniter/tests/base.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
try: import unittest2 as unittest except ImportError: import unittest class TestCase(unittest.TestCase): ''' We use this base class for all the tests in this package. If necessary, we can put common utility or setup code in here. ''' # vim:set ft=python:
20.142857
66
0.695035
41
282
4.780488
0.804878
0
0
0
0
0
0
0
0
0
0
0.004651
0.237589
282
13
67
21.692308
0.906977
0.496454
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
0.8
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
2
59cc6a480edbd2cd4d420d7b304beec43816da98
292
py
Python
ABC_A/ABC159_A.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_A/ABC159_A.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_A/ABC159_A.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
import math n, m = map(int, input().split()) ans_n = 0 if n <= 1: ans_n = 0 else: ans_n = math.factorial(n)//(math.factorial(n-2)*math.factorial(2)) ans_m = 0 if m <= 1: ans_m = 0 else: ans_m = math.factorial(m)//(math.factorial(m-2)*math.factorial(2)) print(ans_n+ans_m)
16.222222
70
0.613014
57
292
3
0.280702
0.45614
0.05848
0.175439
0
0
0
0
0
0
0
0.042373
0.191781
292
17
71
17.176471
0.682203
0
0
0.461538
0
0
0
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.076923
0
0
0
null
1
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
2
59cde84d62c301e6d47391eb096662b7e78686f9
1,270
py
Python
cloudbaseinit/conf/base.py
andia10240/cloudbase-init
3c290194c139990f2a0e5747aa2f6c9554d26659
[ "Apache-2.0" ]
160
2015-01-09T14:45:59.000Z
2022-03-15T09:15:12.000Z
cloudbaseinit/conf/base.py
andia10240/cloudbase-init
3c290194c139990f2a0e5747aa2f6c9554d26659
[ "Apache-2.0" ]
95
2015-01-25T15:22:05.000Z
2022-03-16T10:40:27.000Z
cloudbaseinit/conf/base.py
andia10240/cloudbase-init
3c290194c139990f2a0e5747aa2f6c9554d26659
[ "Apache-2.0" ]
86
2015-01-19T17:19:35.000Z
2022-03-24T09:21:55.000Z
# Copyright 2016 Cloudbase Solutions Srl # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
29.534884
78
0.687402
171
1,270
5.040936
0.555556
0.069606
0.030162
0.037123
0
0
0
0
0
0
0
0.008222
0.233858
1,270
42
79
30.238095
0.877698
0.633071
0
0.25
0
0
0.016166
0
0
0
0
0
0
1
0.25
false
0.125
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
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2