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
5ce80b01b9f8e17ac6ffc55034469489ba387c31
1,923
py
Python
project_euler/051-100/75.py
floppp/programming_challenges
42df1b72faf5ddf907296f90e9b14e014d2ea13b
[ "MIT" ]
null
null
null
project_euler/051-100/75.py
floppp/programming_challenges
42df1b72faf5ddf907296f90e9b14e014d2ea13b
[ "MIT" ]
null
null
null
project_euler/051-100/75.py
floppp/programming_challenges
42df1b72faf5ddf907296f90e9b14e014d2ea13b
[ "MIT" ]
null
null
null
''' It turns out that 12 cm is the smallest length of wire that can be bent to form an integer sided right angle triangle in exactly one way, but there are many more examples. 12 cm: (3,4,5) 24 cm: (6,8,10) 30 cm: (5,12,13) 36 cm: (9,12,15) 40 cm: (8,15,17) 48 cm: (12,16,20) In contrast, some lengths of wire, like 20...
25.302632
76
0.539782
331
1,923
3.087613
0.380665
0.041096
0.066536
0.086106
0.168297
0.138943
0.113503
0.086106
0.086106
0.086106
0
0.089157
0.352574
1,923
75
77
25.64
0.730924
0.031721
0
0.139535
0
0
0.034111
0
0
0
0
0
0
0
null
null
0
0.046512
null
null
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a2258880574e02df853dfcd6742c7dc97fb0440
3,253
py
Python
quilldelta/types.py
mariocesar/quill-delta-py
06dda55bfa91d4bded0f904eb7e7bbc56aee072c
[ "MIT" ]
2
2018-02-14T19:04:23.000Z
2018-02-15T12:15:26.000Z
quilldelta/types.py
mariocesar/quill-delta-py
06dda55bfa91d4bded0f904eb7e7bbc56aee072c
[ "MIT" ]
1
2018-12-12T13:10:01.000Z
2018-12-13T13:54:22.000Z
quilldelta/types.py
mariocesar/quill-delta-py
06dda55bfa91d4bded0f904eb7e7bbc56aee072c
[ "MIT" ]
null
null
null
from collections import namedtuple from functools import partial from typing import Any, Dict, Union from quilldelta import utils as _ __all__ = ['Insert', 'Retain', 'Delete', 'OperationType', 'is_retain', 'is_insert', 'is_delete', 'it_insert_text', 'load_operation'] def _sum_operation(instanc...
26.024
78
0.662158
398
3,253
5.075377
0.198492
0.044554
0.041584
0.026733
0.427723
0.384653
0.384653
0.35
0.35
0.35
0
0.000404
0.239779
3,253
124
79
26.233871
0.816417
0
0
0.465909
0
0
0.10083
0
0
0
0
0
0.022727
1
0.136364
false
0
0.045455
0.056818
0.556818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7a242e887d3acfd08567b350e186065577ffa3f8
3,260
py
Python
gists/process_data.py
snafis/Utils
37998a3a253b7fdee52f5f79cf9c02ec2a3363d4
[ "MIT" ]
3
2019-02-14T21:16:15.000Z
2020-05-05T20:20:42.000Z
gists/process_data.py
snafis/Utils
37998a3a253b7fdee52f5f79cf9c02ec2a3363d4
[ "MIT" ]
null
null
null
gists/process_data.py
snafis/Utils
37998a3a253b7fdee52f5f79cf9c02ec2a3363d4
[ "MIT" ]
1
2019-07-11T02:06:49.000Z
2019-07-11T02:06:49.000Z
# coding: utf-8 import os import warnings import pandas as pd import numpy as np import click import pathlib from src.utils.io.get_absolute_fpath import get_absolute_fpath from src.utils.io.python_config_dict import config_dict_from_python_fpath # Silence C dtype mapping warnings warnings.filterwarnings("ignore", cate...
39.277108
107
0.718712
489
3,260
4.564417
0.300614
0.0681
0.053763
0.049283
0.182796
0.053763
0
0
0
0
0
0.002253
0.183129
3,260
82
108
39.756098
0.835899
0.299387
0
0.081633
0
0
0.233966
0.034327
0
0
0
0
0
0
null
null
0
0.285714
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a28dcac15a09341b92917671b7a5b4a610344cf
10,660
py
Python
new_network/spw_network_new_brian2.py
andrisecker/KOKI_sharp_waves
e6375a2574559172a7036c2def177064a7b6def8
[ "MIT" ]
null
null
null
new_network/spw_network_new_brian2.py
andrisecker/KOKI_sharp_waves
e6375a2574559172a7036c2def177064a7b6def8
[ "MIT" ]
null
null
null
new_network/spw_network_new_brian2.py
andrisecker/KOKI_sharp_waves
e6375a2574559172a7036c2def177064a7b6def8
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf8 -*- """ creates PC (adExp IF) and BC (exp IF) population in Brian2, loads in recurrent connection matrix for PC population runs simulation and checks the dynamics (updated network, parameters are/should be closer to the experimental data!) authors: Bence Bagi, András Ecker last upda...
38.071429
182
0.647092
1,521
10,660
4.348455
0.275477
0.012096
0.010886
0.012096
0.191261
0.154974
0.117176
0.090414
0.08225
0.08225
0
0.054698
0.228236
10,660
279
183
38.207885
0.74924
0.112664
0
0.087179
0
0.010256
0.203022
0.038698
0
0
0
0
0.005128
0
null
null
0
0.046154
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a2af235eb80217d9758a2d03bd8760c9bce222a
2,182
py
Python
OOP-PythonBackend/sensor_db.py
mrmareksvk/Project3
46380625caa39e82f1093c8c23f742816de629f1
[ "MIT" ]
null
null
null
OOP-PythonBackend/sensor_db.py
mrmareksvk/Project3
46380625caa39e82f1093c8c23f742816de629f1
[ "MIT" ]
null
null
null
OOP-PythonBackend/sensor_db.py
mrmareksvk/Project3
46380625caa39e82f1093c8c23f742816de629f1
[ "MIT" ]
null
null
null
import psycopg2 from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT class Sensor_DB: def __init__(self, host="127.0.0.1", database="postgres", user="postgres", password=""): self.__DBconnection = psycopg2.connect( host=host, database="postgres", user=user, password=password ) ...
34.09375
120
0.56462
200
2,182
5.86
0.345
0.109215
0.064846
0.076792
0.321672
0.238908
0.174061
0.093857
0
0
0
0.007333
0.312557
2,182
63
121
34.634921
0.774
0
0
0.156863
0
0.019608
0.192974
0.010304
0
0
0
0
0
1
0.058824
false
0.058824
0.039216
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7a2b7d4a814a1efb2cb90294f014ed9ec049f5ce
300
py
Python
tests/guinea-pigs/unittest/subtest_failure.py
djeebus/teamcity-python
b4d38efc1f2c8269128715bf084de9a2d463a922
[ "Apache-2.0" ]
null
null
null
tests/guinea-pigs/unittest/subtest_failure.py
djeebus/teamcity-python
b4d38efc1f2c8269128715bf084de9a2d463a922
[ "Apache-2.0" ]
null
null
null
tests/guinea-pigs/unittest/subtest_failure.py
djeebus/teamcity-python
b4d38efc1f2c8269128715bf084de9a2d463a922
[ "Apache-2.0" ]
null
null
null
import unittest from teamcity.unittestpy import TeamcityTestRunner class TestXXX(unittest.TestCase): def testSubtestFailure(self): with self.subTest(i=0): pass with self.subTest(i="abc.xxx"): assert 1 == 0 unittest.main(testRunner=TeamcityTestRunner)
20
50
0.68
33
300
6.181818
0.69697
0.078431
0.147059
0.156863
0
0
0
0
0
0
0
0.012987
0.23
300
14
51
21.428571
0.87013
0
0
0
0
0
0.023333
0
0
0
0
0
0.111111
1
0.111111
false
0.111111
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7a3161c72634a58d19d9a4d2bf7a290f9507118a
82,945
py
Python
xmeos/models/old/master_orig.py
aswolf/xmeos
0bb8adb7afdbe9b479e0620093b03579ad19d318
[ "MIT" ]
1
2020-08-19T17:09:11.000Z
2020-08-19T17:09:11.000Z
xmeos/models/old/master_orig.py
aswolf/xmeos
0bb8adb7afdbe9b479e0620093b03579ad19d318
[ "MIT" ]
1
2017-08-04T21:46:04.000Z
2017-08-04T21:46:04.000Z
xmeos/models/old/master_orig.py
aswolf/xmeos
0bb8adb7afdbe9b479e0620093b03579ad19d318
[ "MIT" ]
1
2018-11-20T20:48:10.000Z
2018-11-20T20:48:10.000Z
import numpy as np import scipy as sp from abc import ABCMeta, abstractmethod from scipy import integrate import scipy.interpolate as interpolate import matplotlib.pyplot as plt #==================================================================== # xmeos: Xtal-Melt Equation of State package # models - librar...
35.629296
112
0.565278
12,248
82,945
3.509308
0.060581
0.049323
0.033037
0.022195
0.689661
0.639361
0.596855
0.544856
0.509585
0.469964
0
0.03141
0.2876
82,945
2,327
113
35.644607
0.695989
0.134077
0
0.5
0
0
0.053653
0.001284
0
0
0
0
0.011312
0
null
null
0.016591
0.004525
null
null
0.002262
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a3854067ac06f4e69ce4c4bd430634c36975caf
8,573
py
Python
backup/Version 0.7/EvaClientU.py
gabrieloandco/BB84py
0b2c01c00aac142503cddc429f4118e497b5e2de
[ "MIT" ]
null
null
null
backup/Version 0.7/EvaClientU.py
gabrieloandco/BB84py
0b2c01c00aac142503cddc429f4118e497b5e2de
[ "MIT" ]
null
null
null
backup/Version 0.7/EvaClientU.py
gabrieloandco/BB84py
0b2c01c00aac142503cddc429f4118e497b5e2de
[ "MIT" ]
1
2019-12-04T08:47:30.000Z
2019-12-04T08:47:30.000Z
# Copyright (c) 2016 Gabriel Oliveri (<gabrieloandco@gmail.com>) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
35.279835
207
0.636883
921
8,573
5.841477
0.275787
0.041078
0.022119
0.023792
0.158364
0.146468
0.110037
0.097398
0.097398
0.097398
0
0.012941
0.269917
8,573
242
208
35.42562
0.846621
0.126327
0
0.180412
0
0
0.049277
0
0
0
0
0
0
0
null
null
0.005155
0.041237
null
null
0.108247
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a3c4b538575ba8ec1463e01e4e653726d4b945f
8,563
py
Python
src/fhir_types/FHIR_ClaimResponse.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
2
2022-02-03T00:51:30.000Z
2022-02-03T18:42:43.000Z
src/fhir_types/FHIR_ClaimResponse.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
src/fhir_types/FHIR_ClaimResponse.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
from typing import Any, List, Literal, TypedDict from .FHIR_Attachment import FHIR_Attachment from .FHIR_ClaimResponse_AddItem import FHIR_ClaimResponse_AddItem from .FHIR_ClaimResponse_Adjudication import FHIR_ClaimResponse_Adjudication from .FHIR_ClaimResponse_Error import FHIR_ClaimResponse_Error from .FHIR_ClaimRe...
71.358333
839
0.749854
1,125
8,563
5.604444
0.270222
0.070103
0.026646
0.013323
0.158604
0.137351
0.137351
0.137351
0.137351
0.137351
0
0
0.206003
8,563
119
840
71.957983
0.927342
0.607614
0
0
0
0
0.121605
0
0
0
0
0
0
1
0
false
0
0.305556
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7a3c6fc70bdb12c11cbffe0455c99ea5bfd3c9cc
8,821
py
Python
python_scripts/nand/legacyftl.py
slango20/iphone-dataprotection
424317205f2077dbb8d9712286ae4c181fb05075
[ "Xnet", "X11" ]
19
2019-04-27T15:09:22.000Z
2022-03-27T14:06:15.000Z
python_scripts/nand/legacyftl.py
slango20/iphone-dataprotection
424317205f2077dbb8d9712286ae4c181fb05075
[ "Xnet", "X11" ]
null
null
null
python_scripts/nand/legacyftl.py
slango20/iphone-dataprotection
424317205f2077dbb8d9712286ae4c181fb05075
[ "Xnet", "X11" ]
4
2020-11-10T19:23:01.000Z
2022-02-25T02:10:19.000Z
from carver import NANDCarver from construct.core import Struct from construct.macros import ULInt32, ULInt16, Array, ULInt8, Padding from pprint import pprint from structs import SpareData from util import hexdump from vfl import VFL import plistlib """ openiboot/plat-s5l8900/ftl.c openiboot/plat-s5l8900/i...
39.914027
136
0.514454
954
8,821
4.631027
0.206499
0.057039
0.057039
0.071299
0.289271
0.247397
0.223631
0.200317
0.184699
0.162743
0
0.034259
0.387825
8,821
220
137
40.095455
0.783889
0.021766
0
0.236181
0
0
0.101455
0.01767
0
0
0.010698
0
0.01005
0
null
null
0
0.040201
null
null
0.080402
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a47a0a653ed8dafc607d2bc3bf8ee64ad01d60f
960
py
Python
tracker/migrations/0002_processedblock.py
shapeshift-legacy/watchtower
c9cd5150f8549145f7de9b1ea820d548959350fe
[ "MIT" ]
null
null
null
tracker/migrations/0002_processedblock.py
shapeshift-legacy/watchtower
c9cd5150f8549145f7de9b1ea820d548959350fe
[ "MIT" ]
null
null
null
tracker/migrations/0002_processedblock.py
shapeshift-legacy/watchtower
c9cd5150f8549145f7de9b1ea820d548959350fe
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-08-11 00:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('tracker', '0001_initial'), ] operations = [ migrations.CreateModel( name='ProcessedBlock', ...
35.555556
152
0.609375
100
960
5.69
0.6
0.042179
0.049209
0.077329
0.108963
0.108963
0
0
0
0
0
0.034965
0.255208
960
26
153
36.923077
0.760839
0.046875
0
0
1
0
0.142388
0.024096
0
0
0
0
0
1
0
false
0
0.1
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7a4b082352fa803cac1f0d348d35ee072552226a
1,871
py
Python
games/views.py
sarahboyce/play-connect-four
9dea0328d0ca894376d564b3ab1b9d07cfc86924
[ "MIT" ]
null
null
null
games/views.py
sarahboyce/play-connect-four
9dea0328d0ca894376d564b3ab1b9d07cfc86924
[ "MIT" ]
null
null
null
games/views.py
sarahboyce/play-connect-four
9dea0328d0ca894376d564b3ab1b9d07cfc86924
[ "MIT" ]
null
null
null
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.db.models import Q from django.http import JsonResponse from django.shortcuts import get_object_or_404 from django.views import generic from .forms import GameForm from .models import Game class GameListView(LoginRequiredMixin...
30.672131
86
0.699091
223
1,871
5.690583
0.349776
0.052009
0.059102
0.044129
0.085106
0.085106
0.085106
0.066194
0.066194
0.066194
0
0.010681
0.199359
1,871
60
87
31.183333
0.836449
0
0
0.116279
0
0
0.038482
0
0
0
0
0
0
1
0.116279
false
0.046512
0.162791
0.023256
0.674419
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7a4b8830dc812180e5e95997eac1edcc5ac86d88
24,253
py
Python
crowdsourcing/interfaces/simulator.py
sbranson/online_crowdsourcing
d1f7c814bb60aae9cf5e76e0b299713246f98ce3
[ "MIT" ]
4
2019-08-14T21:14:18.000Z
2021-11-04T09:32:37.000Z
crowdsourcing/interfaces/simulator.py
sbranson/online_crowdsourcing
d1f7c814bb60aae9cf5e76e0b299713246f98ce3
[ "MIT" ]
null
null
null
crowdsourcing/interfaces/simulator.py
sbranson/online_crowdsourcing
d1f7c814bb60aae9cf5e76e0b299713246f98ce3
[ "MIT" ]
1
2019-11-09T08:20:27.000Z
2019-11-09T08:20:27.000Z
import numpy as np import os import sys import copy import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D sys.path.append(os.path.join(os.path.dirname(__file__),"../")) from crowdsourcing.annotation_types.classification import * def combine_dicts(ds): v = {} for d in ds: for k i...
89.494465
784
0.65629
3,483
24,253
4.334195
0.081826
0.04902
0.059618
0.033983
0.678657
0.606253
0.549351
0.508148
0.478869
0.462175
0
0.008644
0.136602
24,253
270
785
89.825926
0.712273
0.018925
0
0.076923
0
0
0.249796
0.01702
0
0
0
0
0.004274
0
null
null
0
0.029915
null
null
0.008547
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a50f0acea342fe7f12effa0d083e026d48495b0
708
py
Python
problem_solving/algorithms/strings/q11_funny_string.py
mxdzi/hackerrank
4455f73e4479a4204b2e1167253f6a02351aa5b7
[ "MIT" ]
null
null
null
problem_solving/algorithms/strings/q11_funny_string.py
mxdzi/hackerrank
4455f73e4479a4204b2e1167253f6a02351aa5b7
[ "MIT" ]
null
null
null
problem_solving/algorithms/strings/q11_funny_string.py
mxdzi/hackerrank
4455f73e4479a4204b2e1167253f6a02351aa5b7
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # # Complete the 'funnyString' function below. # # The function is expected to return a STRING. # The function accepts STRING s as parameter. # def funnyString(s): # Write your code here r = s[::-1] if [abs(ord(s[i]) - ord(s[i+1])) f...
18.631579
124
0.587571
110
708
3.690909
0.518182
0.051724
0.024631
0.029557
0.078818
0.078818
0.078818
0
0
0
0
0.011321
0.251412
708
37
125
19.135135
0.754717
0.234463
0
0
0
0
0.067416
0
0
0
0
0.027027
0
1
0.052632
false
0
0.263158
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7a5ad26e8eaff3144c98b7bba6051bc4911435a5
5,072
py
Python
cli/user.py
sgtdarkskull/passwordManager
e0570c4dd185bd66319338f682fc653108693aeb
[ "MIT" ]
null
null
null
cli/user.py
sgtdarkskull/passwordManager
e0570c4dd185bd66319338f682fc653108693aeb
[ "MIT" ]
null
null
null
cli/user.py
sgtdarkskull/passwordManager
e0570c4dd185bd66319338f682fc653108693aeb
[ "MIT" ]
null
null
null
import os import sql_query as sql from styling import color import password_checker import password_generator # Login Main class class Login: def __init__(self): self.username = '' self.password = '' self.is_login = False self.website = '' self.account = '' try: ...
28.982857
84
0.51183
571
5,072
4.481611
0.189142
0.046893
0.035561
0.049238
0.343103
0.280578
0.203204
0.18601
0.153576
0.106292
0
0.010799
0.361002
5,072
174
85
29.149425
0.778772
0.003155
0
0.335714
0
0
0.145232
0.005342
0
0
0
0
0
1
0.078571
false
0.285714
0.035714
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7a6572ba5cfe190927f38f676a5f51fd82017fd0
5,109
py
Python
tests/configure_bst_feature_api_ct.py
r-cc-c/ops-broadview
b9002fab5fe1f27628bfd403631840ff4a118cf2
[ "Apache-2.0" ]
null
null
null
tests/configure_bst_feature_api_ct.py
r-cc-c/ops-broadview
b9002fab5fe1f27628bfd403631840ff4a118cf2
[ "Apache-2.0" ]
null
null
null
tests/configure_bst_feature_api_ct.py
r-cc-c/ops-broadview
b9002fab5fe1f27628bfd403631840ff4a118cf2
[ "Apache-2.0" ]
1
2021-09-10T08:19:29.000Z
2021-09-10T08:19:29.000Z
''' * * (C) Copyright Broadcom Corporation 2015 * * 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 appli...
37.566176
188
0.641809
645
5,109
5.009302
0.347287
0.017023
0.023522
0.020427
0.313216
0.290932
0.290932
0.290932
0.290932
0.290932
0
0.025428
0.245645
5,109
135
189
37.844444
0.812922
0.003915
0
0.291667
0
0.020833
0.205309
0.011797
0.010417
0
0
0
0
0
null
null
0.010417
0.083333
null
null
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a6cda1cb3a0414e55c2c0ff36655720b599e421
8,604
py
Python
python/dynamic_graph/sot/torque_control/main.py
jviereck/sot-torque-control
90409a656e5b5be4dd4ff937724154579861c20f
[ "BSD-2-Clause" ]
null
null
null
python/dynamic_graph/sot/torque_control/main.py
jviereck/sot-torque-control
90409a656e5b5be4dd4ff937724154579861c20f
[ "BSD-2-Clause" ]
null
null
null
python/dynamic_graph/sot/torque_control/main.py
jviereck/sot-torque-control
90409a656e5b5be4dd4ff937724154579861c20f
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*-1 """ 2014, LAAS/CNRS @author: Andrea Del Prete """ from dynamic_graph import plug from dynamic_graph.sot.torque_control.se3_trajectory_generator import SE3TrajectoryGenerator from dynamic_graph.sot.torque_control.create_entities_utils import create_trajectory_switch, connect_synchronous_traject...
52.145455
148
0.718852
1,167
8,604
4.958869
0.156812
0.013478
0.01296
0.072576
0.523933
0.488682
0.446691
0.401763
0.348885
0.270952
0
0.029222
0.188633
8,604
164
149
52.463415
0.799742
0.062064
0
0.268908
0
0
0.031529
0.007531
0
0
0
0
0
0
null
null
0
0.193277
null
null
0.033613
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a6e8b3ef0baec88726759e05a7ed608687f8f2a
1,820
py
Python
click_man/__main__.py
smarlowucf/click-man
23f7e2c2e986773d95a32223dc3d0b66d9f24240
[ "MIT" ]
1
2020-03-23T20:51:28.000Z
2020-03-23T20:51:28.000Z
click_man/__main__.py
smarlowucf/click-man
23f7e2c2e986773d95a32223dc3d0b66d9f24240
[ "MIT" ]
null
null
null
click_man/__main__.py
smarlowucf/click-man
23f7e2c2e986773d95a32223dc3d0b66d9f24240
[ "MIT" ]
1
2020-05-09T07:11:55.000Z
2020-05-09T07:11:55.000Z
""" click-man - Generate man pages for click application ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module provides a click CLI command to generate man pages from a click application. :copyright: (c) 2016 by Timo Furrer. :license: MIT, see LICENSE for more details. """ import os import click from pkg_...
33.703704
92
0.68022
251
1,820
4.788845
0.422311
0.0599
0.066556
0.063228
0
0
0
0
0
0
0
0.006689
0.178571
1,820
53
93
34.339623
0.797324
0.340659
0
0
1
0
0.182131
0
0
0
0
0
0
1
0.04
false
0.04
0.16
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7a8620b0c6322cbb25c99b2fe406e4594e656575
453
py
Python
kata/07/string_end_with.py
vyahello/upgrade-python-kata
15de7b094f3aaef69a845887f0df5e0958c29ed4
[ "MIT" ]
null
null
null
kata/07/string_end_with.py
vyahello/upgrade-python-kata
15de7b094f3aaef69a845887f0df5e0958c29ed4
[ "MIT" ]
4
2021-01-25T16:58:39.000Z
2022-03-12T13:46:37.000Z
kata/07/string_end_with.py
vyahello/upgrade-python-kata
15de7b094f3aaef69a845887f0df5e0958c29ed4
[ "MIT" ]
null
null
null
""" Complete the solution so that it returns true if the first argument(string) passed in ends with the 2nd argument (also a string). """ def solution(string: str, ending: str) -> bool: """Checks if given string ends with specific string. Examples: >>> assert solution("abcb", "cb") >>> assert...
25.166667
129
0.640177
59
453
4.779661
0.627119
0.12766
0.099291
0
0
0
0
0
0
0
0
0.002825
0.218543
453
17
130
26.647059
0.793785
0.593819
0
0
0
0
0.090909
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7a88c0401cd8580465848c243f9192ba68f4a928
309
py
Python
handroll/date.py
iter8ve/handroll
55a97080b82ac5dcec1e974379b22fbaacf18c99
[ "BSD-2-Clause" ]
17
2015-02-28T07:36:13.000Z
2022-01-22T13:49:22.000Z
handroll/date.py
iter8ve/handroll
55a97080b82ac5dcec1e974379b22fbaacf18c99
[ "BSD-2-Clause" ]
61
2015-02-24T01:12:56.000Z
2017-10-21T18:53:26.000Z
handroll/date.py
iter8ve/handroll
55a97080b82ac5dcec1e974379b22fbaacf18c99
[ "BSD-2-Clause" ]
3
2019-02-04T16:33:08.000Z
2021-04-20T08:58:56.000Z
# Copyright (c) 2017, Matt Layman from datetime import datetime import time def convert(date): """Convert a date string into a datetime instance. Assumes date string is RfC 3339 format.""" time_s = time.strptime(date, '%Y-%m-%dT%H:%M:%S') return datetime.fromtimestamp(time.mktime(time_s))
25.75
74
0.702265
47
309
4.574468
0.638298
0.130233
0
0
0
0
0
0
0
0
0
0.031373
0.174757
309
11
75
28.090909
0.811765
0.38835
0
0
0
0
0.094972
0
0
0
0
0
0
1
0.2
false
0
0.4
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
0
0
1
0
0
0
0
1
7a8bf36253cbd340fcf49c57d2d15e00c75ccfea
6,265
py
Python
domain-finder.py
luisrowley/domain-finder
ed600ef92ee7e32157aa76eb90ff9eab5c8b0bec
[ "MIT" ]
null
null
null
domain-finder.py
luisrowley/domain-finder
ed600ef92ee7e32157aa76eb90ff9eab5c8b0bec
[ "MIT" ]
null
null
null
domain-finder.py
luisrowley/domain-finder
ed600ef92ee7e32157aa76eb90ff9eab5c8b0bec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Check for all required python dependencies first try: import sys import argparse import subprocess import shlex except ImportError, e: python_install = raw_input("\nMissing required python dependencies: sys argparse subprocess shlex. Install them now? [y/n]") if ...
31.80203
285
0.67502
867
6,265
4.824683
0.279123
0.025102
0.033469
0.041836
0.471432
0.406646
0.387999
0.379632
0.348076
0.348076
0
0.005564
0.168077
6,265
196
286
31.964286
0.794705
0.121788
0
0.512397
0
0.066116
0.339786
0.016593
0
0
0
0
0
0
null
null
0
0.041322
null
null
0.140496
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a8d585d8bc96d8a74d4356b1306cec7bbbfa48a
1,883
py
Python
XeroPoster.py
6enno/FarmXero
881b1e6648e927631b276e66a4c5287e4de2cbc1
[ "MIT" ]
null
null
null
XeroPoster.py
6enno/FarmXero
881b1e6648e927631b276e66a4c5287e4de2cbc1
[ "MIT" ]
null
null
null
XeroPoster.py
6enno/FarmXero
881b1e6648e927631b276e66a4c5287e4de2cbc1
[ "MIT" ]
null
null
null
# Goal: Push a journal to Xero import json import requests import Secrets from oauthlib.oauth2 import BackendApplicationClient from requests_oauthlib import OAuth2Session url = 'https://api.xero.com/api.xro/2.0/ManualJournals' refreshUrl = "https://identity.xero.com/connect/token" connectUrl ='https://api.xero.com/c...
25.106667
129
0.736059
184
1,883
7.168478
0.472826
0.015921
0.018196
0.022745
0
0
0
0
0
0
0
0.055218
0.124801
1,883
74
130
25.445946
0.745146
0.191184
0
0
0
0
0.48579
0.110377
0
0
0
0
0
0
null
null
0
0.108696
null
null
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a8dcf88c1e815ff3c05b42a523a1cd933d79b41
339
py
Python
gfyrslf/commands/hi.py
mstroud/python-matrix-gfyrslf
0375bfb12d1cd50611f01101917d2cd2123543e4
[ "MIT" ]
null
null
null
gfyrslf/commands/hi.py
mstroud/python-matrix-gfyrslf
0375bfb12d1cd50611f01101917d2cd2123543e4
[ "MIT" ]
null
null
null
gfyrslf/commands/hi.py
mstroud/python-matrix-gfyrslf
0375bfb12d1cd50611f01101917d2cd2123543e4
[ "MIT" ]
null
null
null
import logging from gfyrslf.command import GfyrslfCommand class HelloCommand(GfyrslfCommand): def __init__(self, cmdname, cfg): super().__init__(cmdname, cfg) self.description = "Replies \"Hi\" to a variety of greetings" def event_handler(self, bot, room, event): room.send_text("Hi, " ...
30.818182
69
0.687316
41
339
5.439024
0.707317
0.089686
0
0
0
0
0
0
0
0
0
0
0.19469
339
10
70
33.9
0.81685
0
0
0
0
0
0.132743
0
0
0
0
0
0
1
0.25
false
0
0.25
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
1
0
0
0
0
0
0
0
1
7a90a26f74894e34e47ec913e84e674cc782f67f
3,356
py
Python
main.py
RyanMatheusRamello/ppt
43ae0f0103948b58ac1af05714891e36ad4d5ed7
[ "MIT" ]
null
null
null
main.py
RyanMatheusRamello/ppt
43ae0f0103948b58ac1af05714891e36ad4d5ed7
[ "MIT" ]
null
null
null
main.py
RyanMatheusRamello/ppt
43ae0f0103948b58ac1af05714891e36ad4d5ed7
[ "MIT" ]
null
null
null
import discord import os import time import discord.ext from discord.utils import get from discord.ext import commands, tasks from discord.ext.commands import has_permissions, CheckFailure, check from random import randint client = discord.Client() client = commands.Bot(command_prefix = '>') @client.event async def...
53.269841
165
0.577175
425
3,356
4.545882
0.235294
0.111801
0.086957
0.060559
0.636128
0.636128
0.624224
0.624224
0.528468
0.528468
0
0.003196
0.254172
3,356
62
166
54.129032
0.768678
0.047676
0
0.245283
0
0.207547
0.480739
0.187911
0
0
0
0
0
1
0
false
0
0.150943
0
0.150943
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7a9372b14e26e83c7a293938dc682f2df3674a9e
5,497
py
Python
impl/status.py
HEG-INCIPIT/ARKetype
bd2ced291292fa6cc2f101f59a9614698dae5102
[ "MIT" ]
9
2020-02-26T00:45:09.000Z
2021-11-07T23:07:06.000Z
impl/status.py
HEG-INCIPIT/ARKetype
bd2ced291292fa6cc2f101f59a9614698dae5102
[ "MIT" ]
213
2020-04-07T21:36:17.000Z
2022-03-29T21:26:04.000Z
impl/status.py
HEG-INCIPIT/ARKetype
bd2ced291292fa6cc2f101f59a9614698dae5102
[ "MIT" ]
7
2020-04-07T20:04:51.000Z
2021-08-19T01:11:55.000Z
# ============================================================================= # # EZID :: status.py # # Periodic status reporting. # # This module should be imported at server startup so that its daemon # thread is started. # # Author: # Greg Janee <gjanee@ucop.edu> # # License: # Copyright (c) 2013, Regents of t...
35.694805
84
0.531199
440
5,497
6.509091
0.465909
0.018855
0.026536
0.005587
0.018855
0
0
0
0
0
0
0.005798
0.341095
5,497
153
85
35.928105
0.784925
0.099145
0
0.033613
0
0
0.1517
0.050092
0
0
0
0
0.008403
0
null
null
0.008403
0.151261
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7a93cd7c38d4caf3ea027ba73372c9f2bc859e0a
651
py
Python
scripts/offuscate_names.py
diego0020/lab_vision
375bd9f754fd08e2d185fed7bde6087f3e7237d7
[ "MIT" ]
8
2016-02-01T23:24:52.000Z
2017-06-05T20:49:04.000Z
scripts/offuscate_names.py
diego0020/lab_vision
375bd9f754fd08e2d185fed7bde6087f3e7237d7
[ "MIT" ]
2
2015-03-10T15:23:21.000Z
2016-03-15T19:17:18.000Z
scripts/offuscate_names.py
diego0020/lab_vision
375bd9f754fd08e2d185fed7bde6087f3e7237d7
[ "MIT" ]
48
2015-01-27T17:43:05.000Z
2019-09-07T13:47:31.000Z
import os import hmac import base64 import glob import hashlib from itertools import izip import csv in_dir='/home/pabloa/imagenet_tiny/test' out_dir='/home/pabloa/imagenet_tiny/test_o' cats_file='/home/pabloa/imagenet_tiny/cats_o.csv' key='gBWJPpeNYUeotZfCXacO' os.chdir(in_dir) imgs = glob.glob('*/*.JPEG') hashes =...
27.125
92
0.741935
117
651
4
0.401709
0.032051
0.115385
0.141026
0.123932
0.123932
0
0
0
0
0
0.013722
0.104455
651
23
93
28.304348
0.789022
0
0
0
0
0
0.208909
0.155146
0
0
0
0
0
1
0
false
0
0.368421
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7a962c2bad1baf2f9cc85a8bdcc70734e9ad983e
2,145
py
Python
app/main/models/posts.py
NiHighlism/Minerva
4d95b215f0e5f1b1f768267c0a2dfea014e4baa1
[ "MIT" ]
4
2020-12-06T17:51:03.000Z
2021-01-07T20:41:47.000Z
app/main/models/posts.py
mukul-mehta/Minerva
4d95b215f0e5f1b1f768267c0a2dfea014e4baa1
[ "MIT" ]
3
2020-12-06T15:04:32.000Z
2021-01-04T06:59:22.000Z
app/main/models/posts.py
NiHighlism/Minerva
4d95b215f0e5f1b1f768267c0a2dfea014e4baa1
[ "MIT" ]
2
2020-05-08T06:54:09.000Z
2020-11-30T08:40:17.000Z
""" DB Model for Posts and relevant junction tables """ import datetime from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.sql import and_, select from app.main import db from app.main.models.base import Base from app.main.models.comments import Comment from app.main.models.movies import Movie fr...
28.6
97
0.65035
274
2,145
4.894161
0.343066
0.03132
0.041014
0.050708
0.028337
0
0
0
0
0
0
0.001211
0.230303
2,145
74
98
28.986486
0.811024
0.152914
0
0.097561
0
0
0.070125
0.013113
0
0
0
0
0
1
0.097561
false
0
0.195122
0
0.536585
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7a990a5b2b604caaa2ad6a92b7b6f98635faea1d
686
py
Python
python/iot-sdk-demo/iotSdkDemo/Device/BatchGetDeviceState.py
aliyun/iot-api-demo
09439d7f616d9a3f04a958353fba3e986b026915
[ "Apache-2.0" ]
86
2017-12-07T13:28:59.000Z
2022-01-26T01:24:18.000Z
python/iot-sdk-demo/iotSdkDemo/Device/BatchGetDeviceState.py
cxw91/iotx-api-demo
af5413b445b71045a140548919c7e3bb65e1c22d
[ "Apache-2.0" ]
11
2017-12-28T11:23:01.000Z
2022-03-29T23:03:27.000Z
python/iot-sdk-demo/iotSdkDemo/Device/BatchGetDeviceState.py
cxw91/iotx-api-demo
af5413b445b71045a140548919c7e3bb65e1c22d
[ "Apache-2.0" ]
54
2017-12-13T06:46:58.000Z
2022-03-15T07:59:42.000Z
#!/usr/bin/env python #coding=utf-8 from aliyunsdkcore.client import AcsClient from aliyunsdkcore.acs_exception.exceptions import ClientException from aliyunsdkcore.acs_exception.exceptions import ServerException from aliyunsdkiot.request.v20180120.BatchGetDeviceStateRequest import BatchGetDeviceStateRequest client =...
32.666667
96
0.825073
72
686
7.722222
0.583333
0.071942
0.071942
0.104317
0.161871
0.161871
0
0
0
0
0
0.021841
0.065598
686
20
97
34.3
0.845554
0.084548
0
0
0
0
0.137821
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7a99af28a5f48a180cdf5e9329d431c45f4eff96
513
py
Python
examples/discovery.py
BenoitAnastay/aiohue
1f0ce96b1fbfd098c34e4913c1ea3b16437e0c8f
[ "Apache-2.0" ]
14
2018-03-02T15:39:19.000Z
2020-02-25T12:52:40.000Z
examples/discovery.py
BenoitAnastay/aiohue
1f0ce96b1fbfd098c34e4913c1ea3b16437e0c8f
[ "Apache-2.0" ]
16
2018-03-19T15:02:18.000Z
2020-02-08T02:06:07.000Z
examples/discovery.py
BenoitAnastay/aiohue
1f0ce96b1fbfd098c34e4913c1ea3b16437e0c8f
[ "Apache-2.0" ]
14
2018-03-17T10:43:30.000Z
2020-03-12T10:49:51.000Z
"""AIOHue example for HUE bridge discovery.""" import asyncio from os.path import abspath, dirname from sys import path path.insert(1, dirname(dirname(abspath(__file__)))) from aiohue.discovery import discover_nupnp async def main(): """Run code example.""" discovered_bridges = await discover_nupnp() pr...
19.730769
51
0.688109
62
513
5.564516
0.548387
0.147826
0
0
0
0
0
0
0
0
0
0.002457
0.206628
513
25
52
20.52
0.845209
0.077973
0
0.176471
0
0
0.042793
0
0
0
0
0
0
1
0
false
0.058824
0.235294
0
0.235294
0.294118
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7a9c6ab23e0c4bb8bef5c5742f6b9bd7a908de28
9,066
py
Python
pythonScripts/BVDDataAnalyzer/SimulationFile.py
Yperidis/bvd_agent_based_model
a42ae72ca05d966015bab92afd20130a2c6d848a
[ "MIT" ]
1
2020-11-11T09:27:02.000Z
2020-11-11T09:27:02.000Z
pythonScripts/BVDDataAnalyzer/SimulationFile.py
Yperidis/bvd_agent_based_model
a42ae72ca05d966015bab92afd20130a2c6d848a
[ "MIT" ]
8
2018-06-13T12:41:23.000Z
2019-11-14T05:26:34.000Z
pythonScripts/BVDDataAnalyzer/SimulationFile.py
Yperidis/bvd_agent_based_model
a42ae72ca05d966015bab92afd20130a2c6d848a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import outputSpecification as outputSpec import h5py as h5 import os import numpy as np import sys def getFileNames(fileName): filenames = [] path = "" if fileName.lower().endswith('.txt'): path = os.path.dirname(os.path.abspath(fileName)) with open(fileName) as f: ...
32.263345
117
0.537392
799
9,066
6.082603
0.211514
0.010288
0.00823
0.008025
0.090535
0.032099
0.007819
0
0
0
0
0.003314
0.367527
9,066
280
118
32.378571
0.844262
0.017869
0
0.12844
0
0
0.01978
0
0
0
0
0
0
0
null
null
0.013761
0.022936
null
null
0.036697
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7aa1f82f1eae4c0951f43a1b2c88a3162690f04a
5,615
py
Python
numba/ir/generator/build.py
liuzhenhai/numba
855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf
[ "BSD-2-Clause" ]
1
2015-01-29T06:52:36.000Z
2015-01-29T06:52:36.000Z
numba/ir/generator/build.py
liuzhenhai/numba
855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf
[ "BSD-2-Clause" ]
null
null
null
numba/ir/generator/build.py
liuzhenhai/numba
855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Generate a package with IR implementations and tools. """ from __future__ import print_function, division, absolute_import import os from textwrap import dedent from itertools import chain from . import generator from . import formatting from . import astgen from . import visitorgen from...
33.422619
79
0.570793
608
5,615
5.026316
0.241776
0.046793
0.031414
0.04712
0.236257
0.128272
0.049084
0.049084
0.02356
0
0
0.001337
0.200534
5,615
167
80
33.622754
0.679439
0.208905
0
0.039216
1
0
0.14975
0.036868
0
0
0
0
0
1
0.098039
false
0
0.147059
0.019608
0.303922
0.009804
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7aa4bc3c3434aec4f1b8805e3634ef50eafac22f
2,184
py
Python
_AceVision_testcodes/A6449/RS232_serial Pass NG code.py
lyj911111/OpenCV_Project
9acbfbf666188b6ebb7f2ec4500bb3ab3d2994b9
[ "MIT" ]
null
null
null
_AceVision_testcodes/A6449/RS232_serial Pass NG code.py
lyj911111/OpenCV_Project
9acbfbf666188b6ebb7f2ec4500bb3ab3d2994b9
[ "MIT" ]
6
2021-03-18T23:40:12.000Z
2022-03-11T23:44:46.000Z
_AceVision_testcodes/A6449/RS232_serial Pass NG code.py
lyj911111/OpenCV_Project
9acbfbf666188b6ebb7f2ec4500bb3ab3d2994b9
[ "MIT" ]
null
null
null
import serial import cv2 # 시리얼 연결 실패시 오류 메시지 클래스 class errorMessage(Exception): def __init__(self, msg='init_error_msg'): self.msg = msg def __str__(self): return self.msg # 초기 시리얼 연결 try: print("Suceessfully connected with PLC") ser = serial.Serial( port='COM3', baud...
24.266667
66
0.538004
278
2,184
4.100719
0.363309
0.105263
0.047368
0.052632
0.426316
0.357895
0.357895
0.357895
0.357895
0.357895
0
0.028198
0.334249
2,184
89
67
24.539326
0.755846
0.129121
0
0.375
0
0
0.120631
0
0
0
0
0
0
1
0.089286
false
0.089286
0.035714
0.017857
0.160714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7aadccf42dd64ad0db47179e38545fd060ea1a7f
21,827
py
Python
Scripts/Dealer/CustomThreads/Reconstruction/Reconstruction.py
Sk3pper/AASSS-PoC
67630221f029df0f1fbc598ad3c791d0cd429544
[ "CC-BY-4.0" ]
null
null
null
Scripts/Dealer/CustomThreads/Reconstruction/Reconstruction.py
Sk3pper/AASSS-PoC
67630221f029df0f1fbc598ad3c791d0cd429544
[ "CC-BY-4.0" ]
null
null
null
Scripts/Dealer/CustomThreads/Reconstruction/Reconstruction.py
Sk3pper/AASSS-PoC
67630221f029df0f1fbc598ad3c791d0cd429544
[ "CC-BY-4.0" ]
null
null
null
import threading import os from CustomThreads.groups import MODP2048 from CustomThreads.groups import parametres from CustomThreads.PedersenUtilities.VSS import pedersenVerify from CustomThreads.PedersenUtilities.VSS import pedersenRecover from CustomThreads.PedersenUtilities.VSS import genRand from CustomThreads.aesC...
42.218569
169
0.564897
2,532
21,827
4.672591
0.14218
0.02485
0.02747
0.019779
0.36734
0.313076
0.251543
0.211901
0.208858
0.173274
0
0.031634
0.346818
21,827
516
170
42.300388
0.798204
0.189353
0
0.197568
0
0
0.128316
0.002411
0
0
0
0
0
0
null
null
0.00304
0.033435
null
null
0.164134
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ab3b6c6ad94c37be613ca64a58c30cfe9213e48
3,171
py
Python
vega/language/types.py
philippwiesner/compiler
52c00221ace2cb56b9fba91b3949c14a6f0e4f68
[ "MIT" ]
null
null
null
vega/language/types.py
philippwiesner/compiler
52c00221ace2cb56b9fba91b3949c14a6f0e4f68
[ "MIT" ]
8
2020-05-15T14:50:59.000Z
2020-06-05T11:44:33.000Z
vega/language/types.py
philippwiesner/compiler
52c00221ace2cb56b9fba91b3949c14a6f0e4f68
[ "MIT" ]
null
null
null
"""Vega language types Representation of vega variable types The following variable types are defined here: Basic Types: INT, FLOAT, CHAR, BOOL Complex Types: Array, String """ from typing import List from vega.language.token import Tag from vega.language.token import Word class Type(Word): """Simple type ...
25.780488
79
0.609587
412
3,171
4.512136
0.281553
0.037655
0.017751
0.022593
0.067778
0
0
0
0
0
0
0.002252
0.299905
3,171
122
80
25.991803
0.835135
0.444339
0
0.078947
0
0
0.072988
0.057981
0
0
0
0
0
1
0.210526
false
0
0.078947
0.052632
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7ab3e81beb59cb27880a9c74583b63bf9cd85bc8
343
py
Python
intro_to_machine_learning/lesson/lesson_3_decision_trees/classifyDT.py
robinl3680/udacity-course
308daf62479f9bf6f4256eb19313631f1bb4c5da
[ "MIT" ]
68
2016-07-28T07:24:57.000Z
2021-10-09T19:28:48.000Z
intro_to_machine_learning/lesson/lesson_3_decision_trees/classifyDT.py
robinl3680/udacity-course
308daf62479f9bf6f4256eb19313631f1bb4c5da
[ "MIT" ]
null
null
null
intro_to_machine_learning/lesson/lesson_3_decision_trees/classifyDT.py
robinl3680/udacity-course
308daf62479f9bf6f4256eb19313631f1bb4c5da
[ "MIT" ]
105
2016-10-19T03:56:33.000Z
2022-03-15T02:12:08.000Z
# -*- coding: utf-8 -*- """ Created on Sat Nov 29 18:17:51 2014 @author: tvu """ def classify(features_train, labels_train): ### your code goes here--should return a trained decision tree classifer from sklearn import tree clf = tree.DecisionTreeClassifier() clf = clf.fit(features_train, labels_t...
24.5
76
0.682216
47
343
4.893617
0.765957
0.113043
0.165217
0.208696
0
0
0
0
0
0
0
0.04797
0.209913
343
14
77
24.5
0.800738
0.411079
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7ab8c2c5b96bb40008333cf2b21b48027fd82950
212
py
Python
setup.py
UMCollab/ODM
95da49939dbcd54318a58a132aa76725fd9c0b5f
[ "MIT" ]
2
2019-04-26T13:26:02.000Z
2019-10-18T10:36:52.000Z
setup.py
flowerysong/ODM
95da49939dbcd54318a58a132aa76725fd9c0b5f
[ "MIT" ]
1
2020-10-28T00:38:07.000Z
2020-10-28T00:38:07.000Z
setup.py
flowerysong/ODM
95da49939dbcd54318a58a132aa76725fd9c0b5f
[ "MIT" ]
1
2019-02-21T16:41:24.000Z
2019-02-21T16:41:24.000Z
import os from setuptools import setup from subprocess import check_output version = check_output(['bash', os.path.join(os.path.dirname(__file__), 'version.sh')]).decode('utf-8') setup( version=version, )
19.272727
103
0.740566
30
212
5.033333
0.6
0.145695
0
0
0
0
0
0
0
0
0
0.005348
0.117925
212
10
104
21.2
0.802139
0
0
0
0
0
0.089623
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7aba99444d4bf69dfdab1548ec0a91dbf73a6d13
405
py
Python
pyrate/algorithms/muondet/AverageBinEnergy.py
fscutti/pyrate
0e974cdaa43e25cfa1a93de4449e5a39f67b1097
[ "BSD-3-Clause" ]
null
null
null
pyrate/algorithms/muondet/AverageBinEnergy.py
fscutti/pyrate
0e974cdaa43e25cfa1a93de4449e5a39f67b1097
[ "BSD-3-Clause" ]
null
null
null
pyrate/algorithms/muondet/AverageBinEnergy.py
fscutti/pyrate
0e974cdaa43e25cfa1a93de4449e5a39f67b1097
[ "BSD-3-Clause" ]
null
null
null
""" Compute average energy in input bins. """ import sys from copy import copy from pyrate.core.Algorithm import Algorithm class AverageBinEnergy(Algorithm): __slots__ = () def __init__(self, name, store, logger): super().__init__(name, store, logger) def execute(self, config): e = sel...
17.608696
48
0.661728
51
405
5.019608
0.627451
0.070313
0.117188
0
0
0
0
0
0
0
0
0
0.212346
405
22
49
18.409091
0.802508
0.103704
0
0
0
0
0.061972
0
0
0
0
0
0
1
0.2
false
0
0.3
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7abec00fd74905552fe13f807f010e835da900ad
529
py
Python
authors/apps/stats/tests/base_test.py
deferral/ah-django
b80ad485339dbb02b74d9b2093543bf8173d51de
[ "BSD-3-Clause" ]
1
2019-04-12T08:34:10.000Z
2019-04-12T08:34:10.000Z
authors/apps/stats/tests/base_test.py
deferral/ah-django
b80ad485339dbb02b74d9b2093543bf8173d51de
[ "BSD-3-Clause" ]
18
2019-03-26T02:17:38.000Z
2019-04-26T08:57:47.000Z
authors/apps/stats/tests/base_test.py
deferral/ah-django
b80ad485339dbb02b74d9b2093543bf8173d51de
[ "BSD-3-Clause" ]
1
2019-11-22T11:52:32.000Z
2019-11-22T11:52:32.000Z
from authors.apps.reactions.tests.base_test import BaseTestCase class ReaderStatsBaseTestCase(BaseTestCase): """ Holds mock data and test helpers for the reader stats """ def get_article_slug(self, data={}, rel_path='/read', created=False): """ Returns a url path to post an ar...
29.388889
73
0.642722
63
529
5.253968
0.730159
0.042296
0
0
0
0
0
0
0
0
0
0
0.26465
529
17
74
31.117647
0.8509
0.190926
0
0
0
0
0.107612
0.094488
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7ac06fec782537de155dc57afb20c41b08f71909
579
py
Python
data/check_donors.py
jacobdeasy/flexible-ehr
ce26ce718cf5cf18a18d38f273a84324dbd5f4b2
[ "MIT" ]
12
2020-03-11T06:04:53.000Z
2021-12-06T04:33:24.000Z
data/check_donors.py
jacobdeasy/flexible-ehr
ce26ce718cf5cf18a18d38f273a84324dbd5f4b2
[ "MIT" ]
null
null
null
data/check_donors.py
jacobdeasy/flexible-ehr
ce26ce718cf5cf18a18d38f273a84324dbd5f4b2
[ "MIT" ]
1
2021-02-23T07:01:18.000Z
2021-02-23T07:01:18.000Z
"""Check the maximum length of stay of donors in MIMIC-III. If it is <48 it does not affect our study.""" import os import pandas as pd df = pd.read_csv('ADMISSIONS.csv') df = df.loc[(df['DIAGNOSIS'].str.lower() == 'organ donor') | (df['DIAGNOSIS'].str.lower() == 'organ donor account')] files = os.listdir('root') od...
21.444444
116
0.626943
94
579
3.776596
0.617021
0.059155
0.050704
0.107042
0.16338
0.16338
0
0
0
0
0
0.017021
0.188256
579
26
117
22.269231
0.738298
0.170984
0
0
0
0
0.203991
0
0
0
0
0
0
1
0
false
0.071429
0.142857
0
0.142857
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8f88414fa942a6569c2ebb0298e7e2fef9522f79
485
py
Python
fast_trainer/concepts.py
MITIBMxGraph/SALIENT_artifact
d89c185b2dd4f5389086b434d36c42aab096560e
[ "Apache-2.0" ]
6
2022-02-15T16:27:43.000Z
2022-03-31T18:51:22.000Z
fast_trainer/concepts.py
MITIBMxGraph/SALIENT_artifact
d89c185b2dd4f5389086b434d36c42aab096560e
[ "Apache-2.0" ]
null
null
null
fast_trainer/concepts.py
MITIBMxGraph/SALIENT_artifact
d89c185b2dd4f5389086b434d36c42aab096560e
[ "Apache-2.0" ]
null
null
null
from typing import Any, Optional, Callable, List import torch from .samplers import PreparedBatch from .transferers import DeviceIterator TrainCore = Callable[[torch.nn.Module, PreparedBatch], Any] TrainCallback = Callable[[List[PreparedBatch], List[Any]], None] TrainImpl = Callable[[torch.nn.Module, TrainCore, Devic...
40.416667
76
0.758763
52
485
7.076923
0.480769
0.065217
0.081522
0.11413
0
0
0
0
0
0
0
0
0.142268
485
11
77
44.090909
0.884615
0.053608
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8f897cd74d6d63b60add691545372c93d4cef43a
4,049
py
Python
util/tweet_download.py
jayelm/TwitterSA
abcda951e2866e10603d3d4f564eb184f145e3c0
[ "MIT" ]
null
null
null
util/tweet_download.py
jayelm/TwitterSA
abcda951e2866e10603d3d4f564eb184f145e3c0
[ "MIT" ]
null
null
null
util/tweet_download.py
jayelm/TwitterSA
abcda951e2866e10603d3d4f564eb184f145e3c0
[ "MIT" ]
1
2019-05-21T01:38:48.000Z
2019-05-21T01:38:48.000Z
""" NOTE: This is no longer used in the actual web app, since I grab automatically labeled tweets from Sentiment140. But, I keep it around for convenience. A script to download tweets in a .tsv of the form Status ID User ID Sentiment ==================================== used mainly to get tweets from the Se...
31.387597
79
0.581625
474
4,049
4.883966
0.377637
0.034989
0.021598
0.025918
0.053564
0.053564
0.053564
0.032829
0.032829
0
0
0.003241
0.314152
4,049
128
80
31.632813
0.830393
0.04569
0
0.15
0
0
0.166227
0
0
0
0
0
0
0
null
null
0
0.075
null
null
0.0875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8f8cb062abbb6f603879a2c5514b29e4020aa0d4
30,518
py
Python
ryu/ryu/app/Ryuretic/Ryuretic_Intf.py
Ryuretic/RAP
7b0e58af7d8a932770e3c7f7620024e16992b531
[ "Apache-2.0" ]
2
2019-09-16T17:52:31.000Z
2021-06-24T17:45:01.000Z
ryu/ryu/app/Ryuretic/Ryuretic_Intf.py
Ryuretic/RAP
7b0e58af7d8a932770e3c7f7620024e16992b531
[ "Apache-2.0" ]
null
null
null
ryu/ryu/app/Ryuretic/Ryuretic_Intf.py
Ryuretic/RAP
7b0e58af7d8a932770e3c7f7620024e16992b531
[ "Apache-2.0" ]
3
2019-09-23T07:21:40.000Z
2021-03-03T13:24:25.000Z
##################################################################### # Ryuretic: A Modular Framework for RYU # # !/ryu/ryu/app/Ryuretic/Ryuretic_Intf.py # # Authors: # # Jacob Cox (jcox70@gatech.edu) ...
41.577657
94
0.481126
3,348
30,518
4.29779
0.144265
0.063173
0.045173
0.026687
0.483147
0.438112
0.404198
0.363681
0.349712
0.329696
0
0.016056
0.340815
30,518
733
95
41.634379
0.69921
0.168458
0
0.528376
0
0
0.133998
0
0
0
0.00156
0
0
0
null
null
0.021526
0.003914
null
null
0.11546
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8f8e9180d60844389fe8f760d778e066e1ecac62
1,479
py
Python
tests/conftest.py
daveisadork/PyDevNS
b8249998661c9b4108f0c240b5bcbfa20b1d582a
[ "MIT" ]
7
2017-03-28T15:02:35.000Z
2019-06-07T18:52:07.000Z
tests/conftest.py
daveisadork/PyDevNS
b8249998661c9b4108f0c240b5bcbfa20b1d582a
[ "MIT" ]
2
2017-03-24T18:47:37.000Z
2018-04-23T13:13:51.000Z
tests/conftest.py
daveisadork/PyDevNS
b8249998661c9b4108f0c240b5bcbfa20b1d582a
[ "MIT" ]
3
2017-05-21T20:47:06.000Z
2020-02-05T16:44:34.000Z
import functools import logging import os import pytest import tempfile import devns import devns.cli from mock import MagicMock @pytest.fixture def config(): return devns.Config() @pytest.yield_fixture def resolver_dir(config): resolvers = [] config.resolver_dir = os.path.join( tempfile.gette...
21.434783
65
0.66261
167
1,479
5.784431
0.377246
0.062112
0.087992
0.049689
0.122153
0
0
0
0
0
0
0.009752
0.237323
1,479
68
66
21.75
0.846631
0
0
0.16
0
0
0.014875
0
0
0
0
0
0
1
0.18
false
0
0.16
0.08
0.54
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8f92fd71ae81bbfb489634d366b20cb684e7bbaa
3,897
py
Python
src/ostorlab/agent/message/proto/v2/report/status_pb2.py
bbhunter/ostorlab
968fe4e5b927c0cd159594c13b73f95b71150154
[ "Apache-2.0" ]
113
2022-02-21T09:30:14.000Z
2022-03-31T21:54:26.000Z
src/ostorlab/agent/message/proto/v2/report/status_pb2.py
bbhunter/ostorlab
968fe4e5b927c0cd159594c13b73f95b71150154
[ "Apache-2.0" ]
2
2022-02-25T10:56:55.000Z
2022-03-24T13:08:06.000Z
src/ostorlab/agent/message/proto/v2/report/status_pb2.py
bbhunter/ostorlab
968fe4e5b927c0cd159594c13b73f95b71150154
[ "Apache-2.0" ]
20
2022-02-28T14:25:04.000Z
2022-03-30T23:01:11.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: v2/report/status.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import refl...
33.594828
240
0.681807
466
3,897
5.412017
0.261803
0.044409
0.033307
0.038065
0.471055
0.426646
0.413957
0.413957
0.39889
0.39889
0
0.030971
0.196305
3,897
115
241
33.886957
0.774266
0.066718
0
0.530612
1
0.010204
0.108264
0.052617
0
0
0
0
0
1
0
false
0
0.05102
0
0.05102
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f968f1aa1251174ed1a74677e8fdaa07c9bc0f7
46,380
py
Python
PhenDisco/ReleaseV1.0/information-retrieval/Query_All_HTMLVer1.py
DBMI/iSeeDELVE
72b51b275bd8ae2e1587f4b6709f24307dd6560f
[ "BSD-4-Clause-UC" ]
null
null
null
PhenDisco/ReleaseV1.0/information-retrieval/Query_All_HTMLVer1.py
DBMI/iSeeDELVE
72b51b275bd8ae2e1587f4b6709f24307dd6560f
[ "BSD-4-Clause-UC" ]
null
null
null
PhenDisco/ReleaseV1.0/information-retrieval/Query_All_HTMLVer1.py
DBMI/iSeeDELVE
72b51b275bd8ae2e1587f4b6709f24307dd6560f
[ "BSD-4-Clause-UC" ]
null
null
null
# $Id$ # Query module for information retrieval # This is a part if PFINDR project implemented at DBMI, UCSD # This program is to write into format such as HTML, JSON in order to diplaying and exporting data # Written by Son Doan, Aug 2012 import os,sys import getopt import html2text import json from whoosh.index im...
37.737998
984
0.591505
5,594
46,380
4.883983
0.16035
0.014092
0.013177
0.009956
0.373083
0.323085
0.287288
0.26551
0.234069
0.228579
0
0.04459
0.211837
46,380
1,228
985
37.76873
0.702804
0.080724
0
0.328829
0
0.052928
0.555466
0.123663
0.010135
0
0
0
0
0
null
null
0.005631
0.023649
null
null
0.141892
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8f9bc1b853eae5c54ee69a1bc956d8d37b345e44
327
py
Python
abc/abc048/abc048c.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc048/abc048c.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc048/abc048c.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
N, x = map(int, input().split()) a = list(map(int, input().split())) result = 0 # a[0] が x 以下でないと、a[1] を空にしても条件を満たせない t = a[0] - x if t > 0: result += t a[0] -= t for i in range(1, N): # 箱に入っているキャンディの数が食べれる上限 t = min(a[i - 1] + a[i] - x, a[i]) if t > 0: result += t a[i] -= t print(r...
19.235294
38
0.492355
61
327
2.639344
0.377049
0.049689
0.136646
0.198758
0.149068
0.149068
0
0
0
0
0
0.039301
0.299694
327
16
39
20.4375
0.663755
0.174312
0
0.307692
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.076923
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f9e0aa62b20b4019553c526007a02b32cb72b5d
9,198
py
Python
handlers/storing_passwords_handl.py
bbt-t/bot-pet-project
6b0d7862b14fe739be52d87ff8c8610a3f4548e1
[ "Apache-2.0" ]
null
null
null
handlers/storing_passwords_handl.py
bbt-t/bot-pet-project
6b0d7862b14fe739be52d87ff8c8610a3f4548e1
[ "Apache-2.0" ]
null
null
null
handlers/storing_passwords_handl.py
bbt-t/bot-pet-project
6b0d7862b14fe739be52d87ff8c8610a3f4548e1
[ "Apache-2.0" ]
null
null
null
from datetime import timedelta from hashlib import scrypt as hashlib_scrypt from hmac import compare_digest as hmac_compare_digest from pickle import dumps as pickle_dumps from pickletools import optimize as pickletools_optimize from aiogram.dispatcher import FSMContext from aiogram.dispatcher.filters.builtin import C...
46.690355
121
0.644053
1,203
9,198
4.73483
0.261845
0.026334
0.041081
0.021067
0.389396
0.318469
0.262992
0.2421
0.218926
0.200667
0
0.00408
0.25386
9,198
196
122
46.928571
0.825295
0.017395
0
0.298137
0
0.012422
0.164113
0.016211
0
0
0
0
0
1
0.006211
false
0.279503
0.118012
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8fa934c513e3cf7ee4513c5cb63fa78573e478fa
362
py
Python
Dataset/Leetcode/train/6/163.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/6/163.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/6/163.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, s, numRows) : if numRows==1:return s l=[""]*numRows z=numRows*2-2 #2行2个一组,3行4个一组,4行6个一组 for j in range(len(s)): y=j%z #余数 if y<numRows: l[y]=l[y]+s[j] else: l[z-...
21.294118
44
0.395028
52
362
2.75
0.480769
0.027972
0.041958
0
0
0
0
0
0
0
0
0.045455
0.453039
362
16
45
22.625
0.676768
0.060773
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8faa7fe34456d634575a67d903e016e7f3268444
490
py
Python
test.py
racerxdl/PyMAX30100
b701495cb2039672182db18bcaf90e02407663b8
[ "MIT" ]
null
null
null
test.py
racerxdl/PyMAX30100
b701495cb2039672182db18bcaf90e02407663b8
[ "MIT" ]
null
null
null
test.py
racerxdl/PyMAX30100
b701495cb2039672182db18bcaf90e02407663b8
[ "MIT" ]
1
2018-04-16T21:59:47.000Z
2018-04-16T21:59:47.000Z
#!/usr/bin/env python import time from max30100.oxymeter import Oxymeter from max30100.constants import * x = Oxymeter(1) lastReport = time.time() * 1000 if not x.begin(): print "Error initializing" exit(1) x.setIRLedCurrent(MAX30100_LED_CURR_7_6MA) # Works best with me print "Running loop" while True: x.u...
18.148148
77
0.685714
70
490
4.742857
0.6
0.072289
0.108434
0.13253
0
0
0
0
0
0
0
0.091811
0.177551
490
26
78
18.846154
0.73201
0.079592
0
0.133333
0
0
0.136465
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8fb076d42d4331a8836efb05bc8f36be2402fe50
292
py
Python
test.py
Pokoai/Andrew-NG-Meachine-Learning
5475942611272da800bc5b62b987b35b3abfc7ec
[ "MIT" ]
1
2021-09-29T02:26:06.000Z
2021-09-29T02:26:06.000Z
test.py
adairhu/Andrew-NG-Meachine-Learning
5475942611272da800bc5b62b987b35b3abfc7ec
[ "MIT" ]
null
null
null
test.py
adairhu/Andrew-NG-Meachine-Learning
5475942611272da800bc5b62b987b35b3abfc7ec
[ "MIT" ]
1
2021-12-15T02:57:41.000Z
2021-12-15T02:57:41.000Z
x1, x2 = find_decision_boundary(svc, 0, 5, 1.5, 5, 2 * 10**-3) fig. ax = plt.subplots(figsize=(10, 8)) ax.scatter(x1, x2, s=10, c='r', label='Boundary') plot_init_pic(data, fig, ax) ax.set_title('SVM(C=1) Decition Boundary') ax.set_xlabel('X1') ax.set_ylabel('X2') ax.legend() plt.show()
20.857143
62
0.657534
57
292
3.245614
0.614035
0.081081
0
0
0
0
0
0
0
0
0
0.081712
0.119863
292
14
63
20.857143
0.638132
0
0
0
0
0
0.133562
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
8fb84a84b8cd090659aea8e49452ced9a3011839
351
py
Python
py/tests/slice.py
DoDaek/gpython
f3df7a4f9bc461ad037aa54c434b8fa8b9c8d90e
[ "BSD-3-Clause" ]
null
null
null
py/tests/slice.py
DoDaek/gpython
f3df7a4f9bc461ad037aa54c434b8fa8b9c8d90e
[ "BSD-3-Clause" ]
null
null
null
py/tests/slice.py
DoDaek/gpython
f3df7a4f9bc461ad037aa54c434b8fa8b9c8d90e
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The go-python Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. doc="slice" a = slice(10) assert a.start == None assert a.stop == 10 assert a.step == None a = slice(0, 10, 1) assert a.start == 0 assert a.stop == 10 ass...
21.9375
61
0.695157
65
351
3.753846
0.584615
0.172131
0.110656
0.106557
0.196721
0.196721
0.196721
0
0
0
0
0.056338
0.190883
351
16
62
21.9375
0.802817
0.447293
0
0.2
0
0
0.068063
0
0
0
0
0
0.6
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
8fbf02e5568da0881c99c6abb899c9637c15fbff
774
py
Python
human_services/locations/migrations/0003_serviceatlocation.py
DarwishMenna/pathways-backend
e9825e0373c586ce8f07ee8b70aecc7de679fb41
[ "BSD-3-Clause" ]
12
2017-08-30T18:21:00.000Z
2021-12-09T04:04:17.000Z
human_services/locations/migrations/0003_serviceatlocation.py
DarwishMenna/pathways-backend
e9825e0373c586ce8f07ee8b70aecc7de679fb41
[ "BSD-3-Clause" ]
424
2017-08-08T18:32:14.000Z
2022-03-30T21:42:51.000Z
human_services/locations/migrations/0003_serviceatlocation.py
DarwishMenna/pathways-backend
e9825e0373c586ce8f07ee8b70aecc7de679fb41
[ "BSD-3-Clause" ]
7
2017-09-29T21:14:37.000Z
2019-12-30T21:07:37.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-21 00:46 from __future__ import unicode_literals import common.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('locations', '0002_auto_20171214_1957')...
29.769231
118
0.645995
83
774
5.879518
0.662651
0.04918
0.057377
0.090164
0
0
0
0
0
0
0
0.055369
0.229974
774
25
119
30.96
0.763423
0.087855
0
0
1
0
0.112376
0.032717
0
0
0
0
0
1
0
false
0
0.222222
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8fc83f7a5d40d0024d060775f28d3e09fd589f63
565
py
Python
quasimodo/fact_combinor.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
16
2019-11-28T13:26:37.000Z
2022-02-09T09:53:10.000Z
quasimodo/fact_combinor.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
1
2021-03-26T20:31:48.000Z
2021-07-15T08:52:47.000Z
quasimodo/fact_combinor.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
3
2020-08-14T23:23:25.000Z
2021-12-24T14:02:35.000Z
from quasimodo.parts_of_facts import PartsOfFacts from quasimodo.data_structures.submodule_interface import SubmoduleInterface class FactCombinor(SubmoduleInterface): def __init__(self, module_reference): super().__init__() self._module_reference = module_reference self._name = "Fact Comb...
37.666667
99
0.789381
64
565
6.453125
0.484375
0.135593
0.087167
0.11138
0
0
0
0
0
0
0
0
0.143363
565
14
100
40.357143
0.853306
0
0
0
0
0
0.023009
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8fd39ac39446450c899496cc1397645da7337a61
2,720
py
Python
dftd3/parameters/r2r4.py
bast/pyDFTD3
024085c514ce39b4cd7f0738da14ba89b3bad9ec
[ "MIT" ]
2
2021-05-18T15:45:57.000Z
2021-05-19T01:30:31.000Z
dftd3/parameters/r2r4.py
bast/pyDFTD3
024085c514ce39b4cd7f0738da14ba89b3bad9ec
[ "MIT" ]
15
2020-09-14T17:13:23.000Z
2021-09-26T16:31:27.000Z
dftd3/parameters/r2r4.py
bast/pyDFTD3
024085c514ce39b4cd7f0738da14ba89b3bad9ec
[ "MIT" ]
1
2021-05-18T14:48:32.000Z
2021-05-18T14:48:32.000Z
# -*- coding: utf-8 -*- # # pyDFTD3 -- Python implementation of Grimme's D3 dispersion correction. # Copyright (C) 2020 Rob Paton and contributors. # # This file is part of pyDFTD3. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (th...
20.606061
79
0.620221
420
2,720
4.011905
0.602381
0.052226
0.01543
0
0
0
0
0
0
0
0
0.279035
0.26875
2,720
131
80
20.763359
0.568125
0.479412
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.010204
0
0.010204
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8fd53969a1442c859cfcbe4c6ff0fdbea32e915d
8,486
py
Python
ryu/app/sdnhub_apps/stateless_lb.py
bpalamol28/TP3SDN
8e41e1917ace51b3891a9b90d4f23edcf0eb043f
[ "Apache-2.0" ]
null
null
null
ryu/app/sdnhub_apps/stateless_lb.py
bpalamol28/TP3SDN
8e41e1917ace51b3891a9b90d4f23edcf0eb043f
[ "Apache-2.0" ]
null
null
null
ryu/app/sdnhub_apps/stateless_lb.py
bpalamol28/TP3SDN
8e41e1917ace51b3891a9b90d4f23edcf0eb043f
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2014 SDN Hub # # Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3. # You may not use this file except in compliance with this License. # You may obtain a copy of the License at # # http://www.gnu.org/licenses/gpl-3.0.txt # # Unless required by applicable law or agreed to in writing, software ...
37.548673
89
0.655786
1,142
8,486
4.654991
0.240806
0.032167
0.024454
0.009029
0.336719
0.238713
0.178894
0.141836
0.141836
0.141836
0
0.017032
0.252769
8,486
225
90
37.715556
0.821322
0.216121
0
0.217391
0
0
0.010218
0
0
0
0.007015
0
0
0
null
null
0
0.130435
null
null
0.007246
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8fd9fc69c10d04089bd3fe976abdeeec7d6fbd19
3,047
py
Python
m2-modified/ims/common/agentless-system-crawler/tests/functional/test_functional_plugins.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
108
2015-07-21T10:40:36.000Z
2021-07-01T06:54:51.000Z
m2-modified/ims/common/agentless-system-crawler/tests/functional/test_functional_plugins.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
320
2015-07-21T01:33:20.000Z
2020-07-21T15:57:02.000Z
m2-modified/ims/common/agentless-system-crawler/tests/functional/test_functional_plugins.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
61
2015-07-20T18:26:37.000Z
2021-03-17T01:18:54.000Z
import shutil import tempfile import unittest import docker import requests.exceptions from plugins.systems.cpu_container_crawler import CpuContainerCrawler from plugins.systems.cpu_host_crawler import CpuHostCrawler from plugins.systems.memory_container_crawler import MemoryContainerCrawler from plugins.systems.memor...
35.847059
83
0.675747
353
3,047
5.691218
0.351275
0.064709
0.067198
0.059731
0.198109
0.151817
0.151817
0.110503
0.042807
0.042807
0
0.003376
0.222186
3,047
84
84
36.27381
0.844304
0.045619
0
0.111111
0
0
0.104719
0.008956
0
0
0
0
0.111111
0
null
null
0
0.174603
null
null
0.031746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8fe5370deec8162fed93d4154d855b9321183158
669
py
Python
tests/fixture_classes/db.py
em-2/em2
4f8100defd42cb97928e48f1ff34532b8a0b57f6
[ "MIT" ]
null
null
null
tests/fixture_classes/db.py
em-2/em2
4f8100defd42cb97928e48f1ff34532b8a0b57f6
[ "MIT" ]
174
2016-12-02T11:15:23.000Z
2019-05-06T15:16:56.000Z
tests/fixture_classes/db.py
em-2/em2
4f8100defd42cb97928e48f1ff34532b8a0b57f6
[ "MIT" ]
null
null
null
from em2.core import Database class FakeConn: async def execute(self, *args, **kwargs): pass class DummyAcquireContext: def __init__(self, conn): self.conn = conn async def __aenter__(self): return self.conn async def __aexit__(self, exc_type, exc_val, exc_tb): pass...
20.272727
63
0.639761
79
669
5.101266
0.443038
0.099256
0.08933
0.079404
0
0
0
0
0
0
0
0.00202
0.26009
669
32
64
20.90625
0.812121
0
0
0.190476
0
0
0.014948
0
0
0
0
0
0
1
0.142857
false
0.190476
0.047619
0.047619
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8fe8aad602115af9fe6faa1349463f95307857d4
1,252
py
Python
customers/errors/__init__.py
hnb2/flask-customers
99a6e2e3dc578da1aa47b4c7abff231acfbe2f7d
[ "MIT" ]
1
2016-01-12T15:33:49.000Z
2016-01-12T15:33:49.000Z
customers/errors/__init__.py
hnb2/flask-customers
99a6e2e3dc578da1aa47b4c7abff231acfbe2f7d
[ "MIT" ]
null
null
null
customers/errors/__init__.py
hnb2/flask-customers
99a6e2e3dc578da1aa47b4c7abff231acfbe2f7d
[ "MIT" ]
null
null
null
''' This module contains the error blueprint to handle all the common HTTP errors. ''' from flask import Blueprint, jsonify bp = Blueprint('errors', __name__) def _generic_error(error, message, code): ''' Generic error handler :param error: A python error, is None for a normal HTTP error :p...
20.52459
58
0.646965
166
1,252
4.76506
0.307229
0.088496
0.085967
0.085967
0.324905
0.324905
0.324905
0.324905
0.324905
0.324905
0
0.02954
0.269968
1,252
60
59
20.866667
0.835886
0.425719
0
0
0
0
0.111296
0
0
0
0
0
0
1
0.210526
false
0
0.052632
0
0.473684
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
0
1
0
0
0
0
0
0
0
1
8fe97f54aeb24bb384038a129d616fd1a6732826
607
py
Python
logs/test2.py
MLD1024/pythonDemo
476e02b0b379e9006b1303f6718680b21798e9c0
[ "Apache-2.0" ]
1
2019-10-18T08:29:09.000Z
2019-10-18T08:29:09.000Z
logs/test2.py
MLD1024/pythonDemo
476e02b0b379e9006b1303f6718680b21798e9c0
[ "Apache-2.0" ]
null
null
null
logs/test2.py
MLD1024/pythonDemo
476e02b0b379e9006b1303f6718680b21798e9c0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import os.path # rootdir = 'D:\loganalyze' # list = os.listdir(rootdir) # 列出文件夹下所有的目录与文件 # for i in range(0 ,len(list)): # path = os.path.join(rootdir ,list[i]) # if os.path.isfile(path): # print path # else: # print path # def getFile(path): list...
19.580645
46
0.573311
78
607
4.358974
0.358974
0.088235
0.076471
0.117647
0.305882
0.305882
0.194118
0.194118
0
0
0
0.006849
0.278418
607
31
47
19.580645
0.769406
0.421746
0
0
0
0
0.061947
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8fea50429c8c2b423bb33d9c2fd01be0c546e634
3,121
py
Python
alchemy.py
temple-geography/gis-application-development
ba7699497f338c1a0f66b6dc72d24503ab7584d4
[ "CC0-1.0" ]
3
2021-02-09T18:17:46.000Z
2022-01-25T01:21:00.000Z
alchemy.py
temple-geography/gis-application-development
ba7699497f338c1a0f66b6dc72d24503ab7584d4
[ "CC0-1.0" ]
2
2022-02-11T19:41:38.000Z
2022-02-22T21:41:21.000Z
alchemy.py
temple-geography/gis-application-development
ba7699497f338c1a0f66b6dc72d24503ab7584d4
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 15 22:12:27 2021 @author: tum98420 """ #%% ###Connect to the database### from sqlalchemy import create_engine db = 'connection_string' engine = create_engine(db) #print table names print(engine.table_names()) #establish connection to access and manipulate database c...
24.574803
131
0.725729
439
3,121
5.09795
0.323462
0.093387
0.068365
0.068811
0.30563
0.253798
0.229669
0.103664
0.103664
0.103664
0
0.014482
0.137136
3,121
127
132
24.574803
0.816561
0.275553
0
0.321429
0
0
0.028116
0
0
0
0
0
0
0
null
null
0
0.107143
null
null
0.196429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8fef40483f028e7f96f9d9626c23b4baeb60a842
992
py
Python
src/charma/streaming/decorators.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-01-16T23:36:10.000Z
2020-01-16T23:36:10.000Z
src/charma/streaming/decorators.py
mononobi/imovie-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
24
2020-06-08T18:27:04.000Z
2021-06-06T12:01:39.000Z
src/charma/streaming/decorators.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-12-20T05:29:04.000Z
2020-12-20T05:29:04.000Z
# -*- coding: utf-8 -*- """ streaming decorators module. """ import charma.streaming.services as streaming_services def stream(*args, **kwargs): """ decorator to register a stream provider. :param object args: stream provider class constructor arguments. :param object kwargs: stream provider class c...
24.8
79
0.680444
103
992
6.514563
0.466019
0.187779
0.14158
0.089419
0.104322
0.104322
0
0
0
0
0
0.001325
0.238911
992
39
80
25.435897
0.887417
0.611895
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8ff28fae565e4924eca67b2c2f1fe70a7dd3bf72
475
py
Python
hotdog/show_image.py
rparkin1/inceptionV3_hotdog
a6a68454d8566dc6193c5d073c72b9ea4904c53e
[ "Apache-2.0" ]
null
null
null
hotdog/show_image.py
rparkin1/inceptionV3_hotdog
a6a68454d8566dc6193c5d073c72b9ea4904c53e
[ "Apache-2.0" ]
null
null
null
hotdog/show_image.py
rparkin1/inceptionV3_hotdog
a6a68454d8566dc6193c5d073c72b9ea4904c53e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from IPython.display import Image, HTML, display root = "images" butions = dict(attributions) def show_image(image_path): display(Image(image_path)) image_rel...
23.75
78
0.701053
60
475
5.216667
0.516667
0.095847
0.153355
0
0
0
0
0
0
0
0
0.002525
0.166316
475
19
79
25
0.787879
0.033684
0
0
0
0
0.067686
0
0.083333
0
0
0
0
1
0.083333
false
0
0.416667
0
0.5
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8ff8773f5937c909b2cade86d474a09c83ba737e
2,212
py
Python
graphene/types/tests/test_mutation.py
bcb/graphene
d1a9bdb5c3d4c0bd04e165aff506d458b4ac93fe
[ "MIT" ]
null
null
null
graphene/types/tests/test_mutation.py
bcb/graphene
d1a9bdb5c3d4c0bd04e165aff506d458b4ac93fe
[ "MIT" ]
null
null
null
graphene/types/tests/test_mutation.py
bcb/graphene
d1a9bdb5c3d4c0bd04e165aff506d458b4ac93fe
[ "MIT" ]
1
2020-01-17T00:35:38.000Z
2020-01-17T00:35:38.000Z
import pytest from ..mutation import Mutation from ..objecttype import ObjectType from ..schema import Schema from ..scalars import String from ..dynamic import Dynamic def test_generate_mutation_no_args(): class MyMutation(Mutation): '''Documentation''' @classmethod def mutate(cls, *args...
26.650602
82
0.625678
216
2,212
6.305556
0.305556
0.070485
0.058737
0.033774
0.324523
0.276065
0.223201
0.223201
0.223201
0.140969
0
0
0.271248
2,212
82
83
26.97561
0.844913
0.005877
0
0.290323
1
0
0.139079
0.010944
0
0
0
0
0.177419
1
0.112903
false
0.048387
0.096774
0
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
890652c033f4a8e64288efa0663fc1db0db4d041
3,223
py
Python
jaad/renderers.py
AmadeusITGroup/jaad
9cc818c7011243c82224256f52abf734cea33298
[ "BSD-3-Clause" ]
null
null
null
jaad/renderers.py
AmadeusITGroup/jaad
9cc818c7011243c82224256f52abf734cea33298
[ "BSD-3-Clause" ]
null
null
null
jaad/renderers.py
AmadeusITGroup/jaad
9cc818c7011243c82224256f52abf734cea33298
[ "BSD-3-Clause" ]
null
null
null
from rest_framework.renderers import JSONRenderer, BaseRenderer from rest_framework_csv.renderers import CSVRenderer as BaseCSVRenderer class TextRenderer(BaseRenderer): media_type = "text/plain" format = "text" format_description = "text" def render(self, data, *args, **kwargs): if isinstanc...
34.287234
87
0.573999
364
3,223
4.923077
0.324176
0.03125
0.054688
0.037946
0.276228
0.246094
0.208705
0.192522
0.192522
0.168527
0
0.004144
0.326094
3,223
93
88
34.655914
0.820902
0.107043
0
0.15625
0
0
0.071478
0.031381
0
0
0
0
0
1
0.140625
false
0.015625
0.0625
0.015625
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8906cc0dbbca96fdf3ffb8812b6e9245e0e56ee6
3,717
py
Python
graph_tools/data_gen.py
manon643/causal_lasso
5b4967af9898f4b9f5758f43e5a3edea517037b5
[ "MIT" ]
3
2020-12-04T22:10:18.000Z
2021-06-10T16:21:32.000Z
graph_tools/data_gen.py
manon643/causal_lasso
5b4967af9898f4b9f5758f43e5a3edea517037b5
[ "MIT" ]
null
null
null
graph_tools/data_gen.py
manon643/causal_lasso
5b4967af9898f4b9f5758f43e5a3edea517037b5
[ "MIT" ]
null
null
null
import networkx as nx import numpy as np def gen_graph(graph_type, n, mean_deg): """Generates and returns a nx.Digraph and its adjacency matrix. Nodes are randomly permutated. Arguments: graph_type (string): type of graph Erdos-Renyi, scale-free, sachs or any graph in BNRepo n (int): number o...
35.4
98
0.652139
542
3,717
4.315498
0.285978
0.080804
0.017101
0.019239
0.204788
0.158187
0.081231
0.037623
0.037623
0.037623
0
0.006058
0.24509
3,717
104
99
35.740385
0.827512
0.39548
0
0.104167
1
0
0.018078
0
0
0
0
0
0.041667
1
0.083333
false
0
0.0625
0
0.229167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
890820a4e0aa086fc21800eef367a19f38288036
1,202
py
Python
asymmetric_cryptography/asymmetric.py
elishahyousaf/Awesome-Python-Scripts
d516584517de2d94de60852f73d8f1831524fa19
[ "MIT" ]
1,026
2018-10-02T18:51:12.000Z
2022-03-31T13:45:14.000Z
asymmetric_cryptography/asymmetric.py
elishahyousaf/Awesome-Python-Scripts
d516584517de2d94de60852f73d8f1831524fa19
[ "MIT" ]
164
2018-10-02T18:37:40.000Z
2021-11-18T13:29:54.000Z
asymmetric_cryptography/asymmetric.py
elishahyousaf/Awesome-Python-Scripts
d516584517de2d94de60852f73d8f1831524fa19
[ "MIT" ]
521
2018-10-02T18:15:40.000Z
2022-03-26T12:10:15.000Z
from Crypto import Random from Crypto.PublicKey import RSA import base64 def generate_keys(modulus_length=256*4): privatekey = RSA.generate(modulus_length, Random.new().read) publickey = privatekey.publickey() return privatekey, publickey def encryptit(message , publickey): encrypted_msg = publickey...
35.352941
72
0.732113
139
1,202
6.093525
0.33813
0.141677
0.044864
0
0
0
0
0
0
0
0
0.017408
0.139767
1,202
34
73
35.352941
0.801741
0
0
0
1
0
0.243558
0.126351
0
0
0
0
0
1
0.12
false
0
0.12
0
0.36
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
890b68c32e989cb3fbe1f7fb61f9459b6891827e
1,362
py
Python
pyof/v0x04/controller2switch/set_async.py
smythtech/python-openflow-legacy
f4ddb06ac8c98f074c04f027df4b52542e41c123
[ "MIT" ]
null
null
null
pyof/v0x04/controller2switch/set_async.py
smythtech/python-openflow-legacy
f4ddb06ac8c98f074c04f027df4b52542e41c123
[ "MIT" ]
null
null
null
pyof/v0x04/controller2switch/set_async.py
smythtech/python-openflow-legacy
f4ddb06ac8c98f074c04f027df4b52542e41c123
[ "MIT" ]
null
null
null
"""Define SetAsync message. Sets whether a controller should receive a given asynchronous message that is generated by the switch. """ # System imports # Third-party imports # Local imports from pyof.v0x04.common.header import Type from pyof.v0x04.controller2switch.common import AsyncConfig __all__ = ('SetAsync',)...
30.954545
78
0.64978
160
1,362
5.1625
0.38125
0.058111
0.047216
0.062954
0.467312
0.467312
0.467312
0.467312
0.467312
0.467312
0
0.025075
0.267988
1,362
43
79
31.674419
0.80341
0.418502
0
0
1
0
0.011662
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8914e746f277f8034a03c5659e068b8899d6322d
3,599
py
Python
theano_utils.py
Alexzhuqch001/temprnn
0dc04998cf2feb3b112f067c15f26ffe1e1444b5
[ "BSD-3-Clause" ]
null
null
null
theano_utils.py
Alexzhuqch001/temprnn
0dc04998cf2feb3b112f067c15f26ffe1e1444b5
[ "BSD-3-Clause" ]
null
null
null
theano_utils.py
Alexzhuqch001/temprnn
0dc04998cf2feb3b112f067c15f26ffe1e1444b5
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2016, NVIDIA Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this lis...
40.897727
83
0.597666
423
3,599
5.028369
0.432624
0.013164
0.014104
0.019746
0.179596
0.099671
0.06394
0.06394
0.06394
0.06394
0
0.006513
0.274799
3,599
87
84
41.367816
0.808429
0.53237
0
0.268293
0
0
0.06402
0
0
0
0
0
0.02439
0
null
null
0
0.073171
null
null
0.268293
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8917b06e3f3dc566a02fdb7e11a799f42dc31025
1,473
py
Python
days/day101/Bite 92. Humanize a datetime/test_humanize_date.py
alex-vegan/100daysofcode-with-python-course
b6c12316abe18274b7963371b8f0ed2fd549ef07
[ "MIT" ]
2
2018-10-28T17:12:37.000Z
2018-10-28T17:12:39.000Z
days/day101/Bite 92. Humanize a datetime/test_humanize_date.py
alex-vegan/100daysofcode-with-python-course
b6c12316abe18274b7963371b8f0ed2fd549ef07
[ "MIT" ]
3
2018-10-28T17:11:04.000Z
2018-10-29T22:36:36.000Z
days/day101/Bite 92. Humanize a datetime/test_humanize_date.py
alex-vegan/100daysofcode-with-python-course
b6c12316abe18274b7963371b8f0ed2fd549ef07
[ "MIT" ]
null
null
null
from datetime import timedelta import pytest from humanize_date import pretty_date, NOW def n_days_ago_str(days): return (NOW - timedelta(days=days)).strftime('%m/%d/%y') @pytest.mark.parametrize("arg, expected", [ (NOW - timedelta(seconds=2), 'just now'), (NOW - timedelta(seconds=9), 'ju...
34.255814
62
0.639511
202
1,473
4.509901
0.277228
0.263447
0.148189
0.060373
0.28101
0.1427
0
0
0
0
0
0.043882
0.195519
1,473
43
63
34.255814
0.724895
0
0
0.060606
0
0
0.123603
0
0
0
0
0
0.030303
1
0.121212
false
0
0.090909
0.030303
0.242424
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8919112db31361d3ffa0b5109c47995b407f5e9a
12,925
py
Python
src/raritan/rpc/cert/__init__.py
vhirtzel/apc_reboot
06ab4ef72029b09339a04266970d1546004c9dbe
[ "MIT" ]
1
2021-04-29T23:04:17.000Z
2021-04-29T23:04:17.000Z
raritan/rpc/cert/__init__.py
vhirtzel/desktop_reboot
553795c1727dedf4532dc97922201df3e9e2ad1e
[ "MIT" ]
null
null
null
raritan/rpc/cert/__init__.py
vhirtzel/desktop_reboot
553795c1727dedf4532dc97922201df3e9e2ad1e
[ "MIT" ]
2
2020-06-20T16:21:23.000Z
2021-09-28T19:04:44.000Z
# SPDX-License-Identifier: BSD-3-Clause # # Copyright 2020 Raritan Inc. All rights reserved. # # This is an auto-generated file. # # Section generated by IdlC from "ServerSSLCert.idl" # import raritan.rpc from raritan.rpc import Interface, Structure, ValueObject, Enumeration, typecheck, DecodeException import raritan...
38.239645
133
0.631799
1,194
12,925
6.717755
0.142379
0.042513
0.045381
0.080788
0.491335
0.462411
0.395836
0.299464
0.249345
0.242114
0
0.007003
0.270793
12,925
337
134
38.353116
0.844032
0.102205
0
0.411255
1
0
0.107193
0.032297
0
0
0
0
0.116883
1
0.108225
false
0
0.012987
0.004329
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
64f0b151b1ad8d66e8a5260de420c3507d1e574b
5,118
py
Python
test/test_generator.py
jrimyak/CSE-5525-Semantic-Parsing
41723d8f83e414fccb8c8acee41fae348bae400b
[ "MIT" ]
null
null
null
test/test_generator.py
jrimyak/CSE-5525-Semantic-Parsing
41723d8f83e414fccb8c8acee41fae348bae400b
[ "MIT" ]
null
null
null
test/test_generator.py
jrimyak/CSE-5525-Semantic-Parsing
41723d8f83e414fccb8c8acee41fae348bae400b
[ "MIT" ]
null
null
null
# coding: utf-8 import os import unittest from gpsr_command_understanding.generation import generate_sentence_parse_pairs from gpsr_command_understanding.generator import Generator from gpsr_command_understanding.grammar import NonTerminal, tree_printer, expand_shorthand from gpsr_command_understanding.loading_helpers...
50.673267
179
0.685033
628
5,118
5.350318
0.234076
0.100595
0.157143
0.146726
0.513393
0.501488
0.437798
0.346726
0.288988
0.142857
0
0.023392
0.198124
5,118
100
180
51.18
0.795322
0.05256
0
0.106061
1
0.015152
0.174059
0.012097
0
0
0
0
0.090909
1
0.151515
false
0
0.106061
0
0.272727
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
64f241828ba5808468e75801bb4398c53ffd8d0e
1,724
py
Python
src/titanic.py
santoshilam/titanic_reproducibility
71e71f1c663ffe44538a9ef1baa5d0649e851b18
[ "MIT" ]
null
null
null
src/titanic.py
santoshilam/titanic_reproducibility
71e71f1c663ffe44538a9ef1baa5d0649e851b18
[ "MIT" ]
null
null
null
src/titanic.py
santoshilam/titanic_reproducibility
71e71f1c663ffe44538a9ef1baa5d0649e851b18
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jan 27 09:03:52 2020 @author: santo """ # linear algebra import numpy as np # data processing import pandas as pd # data visualization import seaborn as sns """%matplotlib inline""" from matplotlib import pyplot as plt from matplotlib import style # Algorithms from skl...
28.733333
116
0.736659
253
1,724
4.944664
0.403162
0.079137
0.041567
0.052758
0.39968
0.305356
0.203038
0.142286
0.142286
0.142286
0
0.022457
0.12181
1,724
59
117
29.220339
0.803831
0.078306
0
0.068966
0
0
0.098988
0.04263
0
0
0
0
0
1
0
false
0
0.482759
0
0.482759
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
64f277b112189a0a13dc137d1243ca6b4af12af6
1,871
py
Python
afs/orm/__init__.py
chanke/afspy
525e7b3b53e58be515f11b83cc59ddb0765ef8e5
[ "BSD-2-Clause" ]
null
null
null
afs/orm/__init__.py
chanke/afspy
525e7b3b53e58be515f11b83cc59ddb0765ef8e5
[ "BSD-2-Clause" ]
null
null
null
afs/orm/__init__.py
chanke/afspy
525e7b3b53e58be515f11b83cc59ddb0765ef8e5
[ "BSD-2-Clause" ]
null
null
null
""" module dealing with the object-realational mapping """ __all__ = ["DBMapper", ] from afs.orm import DBMapper from afs.orm import Historic def setup_options(): """ add logging options to cmd-line, but surpress them, so that they don't clobber up the help-messages """ import argparse my_a...
38.183673
70
0.655799
218
1,871
5.357798
0.302752
0.150685
0.167808
0.263699
0.660959
0.587329
0.505137
0.505137
0.463185
0.23887
0
0
0.212186
1,871
48
71
38.979167
0.792402
0.122394
0
0.4
0
0
0.128412
0.046526
0
0
0
0
0
1
0.028571
false
0.028571
0.085714
0
0.142857
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
64f6fa597c48eec9140bf634ca4656af3e0ffab9
13,004
py
Python
models.py
linda-huang/SEAL_OGB
0ae417384920affa70394568709ebbc0ca48d3ff
[ "MIT" ]
null
null
null
models.py
linda-huang/SEAL_OGB
0ae417384920affa70394568709ebbc0ca48d3ff
[ "MIT" ]
null
null
null
models.py
linda-huang/SEAL_OGB
0ae417384920affa70394568709ebbc0ca48d3ff
[ "MIT" ]
null
null
null
# 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. import math import numpy as np import torch from torch.nn import (ModuleList, Linear, Conv1d, MaxPool1d, Embedding, ReLU, ...
38.934132
86
0.586589
1,802
13,004
4.027192
0.129856
0.082954
0.054568
0.038583
0.683616
0.653438
0.637178
0.63139
0.621745
0.621745
0
0.01655
0.307675
13,004
333
87
39.051051
0.789515
0.099662
0
0.636029
0
0
0
0
0
0
0
0
0
1
0.040441
false
0
0.025735
0
0.099265
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
64f9b73636b5ebbc5e4973e37b984fc831403b91
789
py
Python
sknano/setup.py
haidi-ustc/scikit-nano
ef9b24165ba37918b3f520657f7311ba139b3e7d
[ "BSD-2-Clause" ]
21
2016-06-08T18:27:20.000Z
2022-03-22T08:27:46.000Z
sknano/setup.py
haidi-ustc/scikit-nano
ef9b24165ba37918b3f520657f7311ba139b3e7d
[ "BSD-2-Clause" ]
8
2016-06-24T19:45:58.000Z
2021-03-25T21:42:29.000Z
sknano/setup.py
scikit-nano/scikit-nano
ef9b24165ba37918b3f520657f7311ba139b3e7d
[ "BSD-2-Clause" ]
9
2016-12-08T16:35:52.000Z
2021-06-23T17:13:44.000Z
#!/usr/bin/env python from __future__ import division, print_function, absolute_import from __future__ import unicode_literals def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('sknano', parent_package, top_path) config.add_subp...
32.875
64
0.746515
95
789
5.810526
0.484211
0.146739
0.275362
0.072464
0
0
0
0
0
0
0
0
0.136882
789
23
65
34.304348
0.810573
0.054499
0
0
0
0
0.090054
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.333333
0.055556
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f00144b8ddbeccfd4c46a64a8d4d606eb097c87
1,889
py
Python
choice/companion/recruit.py
xelrach/DASaveReader
8027db177ff22ab255a3a1a4946980ff6ebaf6ef
[ "Apache-2.0" ]
1
2015-03-30T00:02:45.000Z
2015-03-30T00:02:45.000Z
choice/companion/recruit.py
xelrach/DASaveReader
8027db177ff22ab255a3a1a4946980ff6ebaf6ef
[ "Apache-2.0" ]
null
null
null
choice/companion/recruit.py
xelrach/DASaveReader
8027db177ff22ab255a3a1a4946980ff6ebaf6ef
[ "Apache-2.0" ]
1
2021-12-07T00:21:59.000Z
2021-12-07T00:21:59.000Z
# Copyright 2014 Charles Noneman # # 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 writin...
29.061538
74
0.787718
305
1,889
4.629508
0.318033
0.114731
0.114731
0.140227
0.439802
0.439802
0.439802
0.439802
0.439802
0.439802
0
0.011571
0.130757
1,889
64
75
29.515625
0.848356
0.302806
0
0.236842
0
0
0
0
0
0
0
0
0
1
0.236842
false
0
0.052632
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8f00ac769f2fc989146a9af0729ccadbfe47b01a
5,115
py
Python
ktane/modules/mazes.py
mattvperry/ktane-py
7a3bf8aed676f6080ac82686b7fb2e09e70e0f25
[ "MIT" ]
null
null
null
ktane/modules/mazes.py
mattvperry/ktane-py
7a3bf8aed676f6080ac82686b7fb2e09e70e0f25
[ "MIT" ]
1
2015-11-04T06:50:13.000Z
2015-11-04T06:50:13.000Z
ktane/modules/mazes.py
mattvperry/ktane-py
7a3bf8aed676f6080ac82686b7fb2e09e70e0f25
[ "MIT" ]
2
2015-10-15T15:51:31.000Z
2018-07-25T23:29:26.000Z
from ktane import Module from itertools import chain from .maze_data import maze_data class Mazes(Module): def run(self): mazes = map(Maze, maze_data) identifier_coords = self.get_coord_or_quit('identifier') if identifier_coords is None: return mazes = [x for x in mazes if x.is_i...
33.874172
101
0.546041
723
5,115
3.618257
0.172891
0.025229
0.018349
0.016055
0.197248
0.098624
0.068807
0.044343
0.034021
0.034021
0
0.027856
0.305181
5,115
151
102
33.874172
0.707935
0.007234
0
0
0
0
0.044935
0
0
0
0
0
0
0
null
null
0
0.02459
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8f0670bce0f6014aeb55a552ef49f0ecbe929494
577
py
Python
flask_kits/utils/util.py
by46/flask-kits
51edfd426fcb8db326d3cc3d7a5b07830d555163
[ "MIT" ]
1
2018-05-22T16:27:58.000Z
2018-05-22T16:27:58.000Z
flask_kits/utils/util.py
by46/flask-kits
51edfd426fcb8db326d3cc3d7a5b07830d555163
[ "MIT" ]
null
null
null
flask_kits/utils/util.py
by46/flask-kits
51edfd426fcb8db326d3cc3d7a5b07830d555163
[ "MIT" ]
null
null
null
import time from decimal import Decimal __all__ = ['purge_sum_result', 'timestamp', 'get_raw_path'] def purge_sum_result(result, field_name='amount', default=None): key = '{0}__sum'.format(field_name) if default is None: default = Decimal('0') return result.get(key) or default de...
24.041667
76
0.65338
78
577
4.589744
0.423077
0.092179
0.078212
0.106145
0.139665
0
0
0
0
0
0
0.004435
0.218371
577
23
77
25.086957
0.789357
0
0
0
0
0
0.16065
0
0
0
0
0
0
1
0.2
false
0
0.133333
0.066667
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8f0887c2c41471e660be4ea754083e2c8da4369f
183
py
Python
exercicios/ex18ERRADO.py
gabrielaraujo3/exercicios-python
37a431854205e489cb7cede8fcae459bfef75a39
[ "MIT" ]
null
null
null
exercicios/ex18ERRADO.py
gabrielaraujo3/exercicios-python
37a431854205e489cb7cede8fcae459bfef75a39
[ "MIT" ]
null
null
null
exercicios/ex18ERRADO.py
gabrielaraujo3/exercicios-python
37a431854205e489cb7cede8fcae459bfef75a39
[ "MIT" ]
null
null
null
import math n1 = float(input('Digite um angulo: ')) sn = math.sin(n1) co = math.cos(n1) ta = math.tan(n1) print('Seno {}, cosseno {} e a tangente {} de {}'.format(sn,co,ta,n1)) ERRADO
26.142857
70
0.639344
33
183
3.545455
0.69697
0
0
0
0
0
0
0
0
0
0
0.032051
0.147541
183
7
71
26.142857
0.717949
0
0
0
0
0
0.320652
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
0
0
0
0
0
0
0
0
0
1
8f0b96f313bc548e842c03a13a3a19221284210c
647
py
Python
Chapter03/2data_normalization.py
packtprasadr/Machine-Learning-Algorithms
06c1d79fd036f32d28261f9a792f6206767717a7
[ "MIT" ]
78
2017-07-24T19:38:32.000Z
2022-01-08T14:36:52.000Z
Chapter03/2data_normalization.py
packtprasadr/Machine-Learning-Algorithms
06c1d79fd036f32d28261f9a792f6206767717a7
[ "MIT" ]
null
null
null
Chapter03/2data_normalization.py
packtprasadr/Machine-Learning-Algorithms
06c1d79fd036f32d28261f9a792f6206767717a7
[ "MIT" ]
65
2017-07-27T03:10:54.000Z
2022-03-07T22:48:00.000Z
from __future__ import print_function import numpy as np from sklearn.preprocessing import Normalizer # For reproducibility np.random.seed(1000) if __name__ == '__main__': # Create a dummy dataset data = np.array([1.0, 2.0]) print(data) # Max normalization n_max = Normalizer(norm...
23.107143
50
0.639876
90
647
4.355556
0.444444
0.107143
0.122449
0.17602
0.229592
0.229592
0.229592
0
0
0
0
0.052953
0.241113
647
28
51
23.107143
0.745418
0.145286
0
0
0
0
0.028791
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0.3125
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f0c897ef1fb4d79195080303aa1a3587decd055
7,582
py
Python
Partial_correlation.py
rmccole/UCEs_genome_organization
f0f24cf2c2bda56d555ecb309dee9adc65a50023
[ "Apache-2.0" ]
3
2019-01-08T07:43:06.000Z
2020-01-18T01:23:28.000Z
Partial_correlation.py
rmccole/UCEs_genome_organization
f0f24cf2c2bda56d555ecb309dee9adc65a50023
[ "Apache-2.0" ]
null
null
null
Partial_correlation.py
rmccole/UCEs_genome_organization
f0f24cf2c2bda56d555ecb309dee9adc65a50023
[ "Apache-2.0" ]
null
null
null
""" Script to take matrices and calculate partial correlations using matlab functions called using the matlab engine for python. Distributed under the following license: Copyright 2017 Harvard University, Wu Lab Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in comp...
38.882051
174
0.719863
956
7,582
5.67887
0.325314
0.006447
0.012525
0.025051
0.128385
0.108123
0.098176
0.06539
0.06539
0.029471
0
0.009667
0.195067
7,582
195
175
38.882051
0.879895
0.173965
0
0.020408
0
0.010204
0.155492
0.024659
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.081633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8f101df165df25240d921e50b0f506db7420bd79
916
py
Python
weather/api/migrations/0001_initial.py
Ethan-Genser/Weather-Station
4e4fa78551afe615f3b29697ee4b89c7cf425b8a
[ "Apache-2.0" ]
null
null
null
weather/api/migrations/0001_initial.py
Ethan-Genser/Weather-Station
4e4fa78551afe615f3b29697ee4b89c7cf425b8a
[ "Apache-2.0" ]
null
null
null
weather/api/migrations/0001_initial.py
Ethan-Genser/Weather-Station
4e4fa78551afe615f3b29697ee4b89c7cf425b8a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-22 20:47 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Humidity', fields=[ ('id', models.AutoField...
30.533333
114
0.579694
95
916
5.463158
0.526316
0.080925
0.096339
0.088632
0.500963
0.500963
0.500963
0.500963
0.500963
0.500963
0
0.035385
0.290393
916
29
115
31.586207
0.763077
0.049127
0
0.454545
1
0
0.06214
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f1156564d05c49b30288f4abe5a998cc281d317
994
py
Python
fungsi_korelasi/korelasi_gas.py
khairulh/pvt-calculator-fr
117a9c402b43fed0b0597a36572854a280f6de66
[ "CC0-1.0" ]
null
null
null
fungsi_korelasi/korelasi_gas.py
khairulh/pvt-calculator-fr
117a9c402b43fed0b0597a36572854a280f6de66
[ "CC0-1.0" ]
null
null
null
fungsi_korelasi/korelasi_gas.py
khairulh/pvt-calculator-fr
117a9c402b43fed0b0597a36572854a280f6de66
[ "CC0-1.0" ]
2
2021-04-26T06:18:29.000Z
2021-04-26T07:03:20.000Z
from math import e as e_nat from math import log as ln from math import log10, ceil, floor def array_P(P_atm, step, P_res, Pb): """ Array 1D dari tekanan untuk standardisasi (psia) :param start: Biasanya 14.7 psia :param step: Biasanya 1 psia :param stop: Biasanya P reservoir (psia) :...
24.85
59
0.538229
143
994
3.671329
0.531469
0.045714
0.08
0
0
0
0
0
0
0
0
0.122642
0.360161
994
39
60
25.487179
0.70283
0.252515
0
0
0
0
0
0
0
0
0
0.025641
0
1
0.083333
false
0
0.125
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8f121bc72bbce551fbafd318270e5efb3a070f3c
1,095
py
Python
accounts/migrations/0002_auto_20210630_0652.py
Srinjay-hack/Buddy
155b9ba58a20bf043493213dd8349f61012fc480
[ "Apache-2.0" ]
null
null
null
accounts/migrations/0002_auto_20210630_0652.py
Srinjay-hack/Buddy
155b9ba58a20bf043493213dd8349f61012fc480
[ "Apache-2.0" ]
null
null
null
accounts/migrations/0002_auto_20210630_0652.py
Srinjay-hack/Buddy
155b9ba58a20bf043493213dd8349f61012fc480
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-30 06:52 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AddField( model_name='assistant', ...
28.815789
86
0.591781
109
1,095
5.816514
0.40367
0.069401
0.119874
0.12776
0.667192
0.613565
0.536278
0.435331
0.435331
0.435331
0
0.037711
0.297717
1,095
37
87
29.594595
0.786736
0.041096
0
0.645161
1
0
0.085878
0
0
0
0
0
0
1
0
false
0
0.064516
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f1397dbbe6ec2811e299d8aff91ee8fb1ff4cc3
1,138
py
Python
nablapps/poll/admin.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
nablapps/poll/admin.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
nablapps/poll/admin.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
""" Admin interface for poll app. """ from django.contrib import admin from .models import Poll, Choice class ChoiceInline(admin.TabularInline): """Define how the choices should be viewed inlined with the poll""" model = Choice extra = 5 fields = ('choice', 'votes', ) fk_name = "poll" @admin.reg...
33.470588
86
0.682777
140
1,138
5.4
0.55
0.059524
0.044974
0.055556
0
0
0
0
0
0
0
0.002176
0.192443
1,138
33
87
34.484848
0.820457
0.154657
0
0
0
0
0.242812
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8f1439debee85d1fdc3aed64feb618c16a0d664f
389
py
Python
server/app.py
johnjdailey/JS-Realtime-Dashboard
aa62cab32096fbd4bdb8be657dd99d3d162e7097
[ "MIT" ]
1
2021-07-17T10:38:51.000Z
2021-07-17T10:38:51.000Z
server/app.py
johnjdailey/JS-Realtime-Dashboard
aa62cab32096fbd4bdb8be657dd99d3d162e7097
[ "MIT" ]
null
null
null
server/app.py
johnjdailey/JS-Realtime-Dashboard
aa62cab32096fbd4bdb8be657dd99d3d162e7097
[ "MIT" ]
1
2021-08-05T04:23:24.000Z
2021-08-05T04:23:24.000Z
from flask import Flask # blueprint import from blueprints.tweets.tweets import tweetsData from blueprints.btc.btc import btcData def create_app(app): # register blueprint app.register_blueprint(tweetsData) app.register_blueprint(btcData) return app if __name__ == "__main__": app = Flask(__nam...
20.473684
63
0.737789
53
389
5.113208
0.45283
0.121771
0.221402
0
0
0
0
0
0
0
0
0.024615
0.164524
389
18
64
21.611111
0.809231
0.089974
0
0
0
0
0.042735
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.5
0.4
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f161ef1ddc3a906b7e74597c33a3e03e27d759d
906
py
Python
youtube/views.py
BudzynskiMaciej/Django-Project
98416a62eac0602b6d52a09386f8737de050212f
[ "MIT" ]
null
null
null
youtube/views.py
BudzynskiMaciej/Django-Project
98416a62eac0602b6d52a09386f8737de050212f
[ "MIT" ]
14
2018-07-12T10:44:33.000Z
2022-03-12T00:57:55.000Z
youtube/views.py
BudzynskiMaciej/Django-Project
98416a62eac0602b6d52a09386f8737de050212f
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views import View from django.views.generic import ListView, DetailView from .models import Video from django.contrib.auth.mixins import LoginRequiredMixin # Create your views here. class PopularVideosList(ListView): template_name = 'index.html' context_object...
28.3125
68
0.736203
107
906
6.056075
0.53271
0.061728
0.046296
0
0
0
0
0
0
0
0
0.002685
0.177704
906
31
69
29.225806
0.867114
0.025386
0
0
0
0
0.122588
0.064699
0
0
0
0
0
1
0.095238
false
0
0.238095
0.047619
0.761905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8f169511330803c5db8b03ab4a1a37417135bac1
586
py
Python
django_prices_vatlayer/migrations/0002_ratetypes.py
korycins/django-prices-vatlayer
865607b8d557c49e6519d764118bcc93d27bd8c1
[ "BSD-3-Clause" ]
12
2017-01-21T11:54:22.000Z
2021-09-08T14:53:59.000Z
django_prices_vatlayer/migrations/0002_ratetypes.py
korycins/django-prices-vatlayer
865607b8d557c49e6519d764118bcc93d27bd8c1
[ "BSD-3-Clause" ]
13
2020-03-24T17:53:51.000Z
2022-02-10T20:01:14.000Z
myvenv/lib/python3.6/site-packages/django_prices_vatlayer/migrations/0002_ratetypes.py
yog240597/saleor
b75a23827a4ec2ce91637f0afe6808c9d09da00a
[ "CC-BY-4.0" ]
14
2017-01-17T11:19:14.000Z
2021-09-08T14:54:36.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-25 13:40 from django.db import migrations, models import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('django_prices_vatlayer', '0001_initial'), ] operations = [ migrations.CreateModel( ...
26.636364
114
0.598976
61
586
5.639344
0.721311
0.087209
0
0
0
0
0
0
0
0
0
0.048837
0.266212
586
21
115
27.904762
0.751163
0.116041
0
0
1
0
0.11068
0.042718
0
0
0
0
0
1
0
false
0
0.133333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f1c68a25f03eec1a55a6210a9171b84be07e3b9
1,625
py
Python
pytorch/config.py
maystroh/modelgenesis
2107193055ea6f5b6efe640ac17ce1d2347dee6c
[ "MIT" ]
null
null
null
pytorch/config.py
maystroh/modelgenesis
2107193055ea6f5b6efe640ac17ce1d2347dee6c
[ "MIT" ]
null
null
null
pytorch/config.py
maystroh/modelgenesis
2107193055ea6f5b6efe640ac17ce1d2347dee6c
[ "MIT" ]
null
null
null
import os import shutil import logging logging.basicConfig( format='%(asctime)s %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s', datefmt='%Y-%m-%d %H:%M:%S', level=logging.DEBUG) log = logging.getLogger() class models_genesis_config: model = "Unet3D" suffix = "genesis_oct" exp_name = ...
23.897059
79
0.596923
224
1,625
4.151786
0.526786
0.026882
0.021505
0.023656
0.077419
0
0
0
0
0
0
0.048863
0.269538
1,625
67
80
24.253731
0.734625
0.077538
0
0
0
0.019608
0.15121
0.074597
0
0
0
0
0
1
0.019608
false
0
0.058824
0
0.72549
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8f1d05ed51a400697af322b9e7d42fa601461fd0
396
py
Python
app/control/serializers.py
aalquaiti/challenge
03fc7d5890e85e53c2f67e635c63302142aa0639
[ "Apache-2.0" ]
null
null
null
app/control/serializers.py
aalquaiti/challenge
03fc7d5890e85e53c2f67e635c63302142aa0639
[ "Apache-2.0" ]
null
null
null
app/control/serializers.py
aalquaiti/challenge
03fc7d5890e85e53c2f67e635c63302142aa0639
[ "Apache-2.0" ]
null
null
null
# Created by: Aymen Al-Quaiti # For QCTRL Backend Challenge # January 2020 """ Contains all Serializers used by Models in app """ from rest_framework import serializers from .models import Control class ControlSerializer(serializers.ModelSerializer): """ Serializer for Control Model. All fields are required ...
20.842105
57
0.709596
46
396
6
0.695652
0
0
0
0
0
0
0
0
0
0
0.012945
0.219697
396
18
58
22
0.880259
0.431818
0
0
0
0
0.035
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
0
1
8f21b69cd88f5d761335be15621c05db3600a524
999
py
Python
src/CassandraLibrary/cassandra_connection_manager.py
SensationS/Robotframework-CassandraLibrary
1eb4e2897692c41fc5820c9017566551b27115db
[ "MIT" ]
null
null
null
src/CassandraLibrary/cassandra_connection_manager.py
SensationS/Robotframework-CassandraLibrary
1eb4e2897692c41fc5820c9017566551b27115db
[ "MIT" ]
1
2019-08-14T11:39:07.000Z
2019-08-14T15:59:28.000Z
src/CassandraLibrary/cassandra_connection_manager.py
SensationS/Robotframework-CassandraLibrary
1eb4e2897692c41fc5820c9017566551b27115db
[ "MIT" ]
null
null
null
from cassandra.cluster import Cluster class CassandraConnection(object): """ Connection Manager handles the connection & disconnection to the database. """ def __init__(self): """ Initializes cluster and session to None. """ self.cluster = None sel...
28.542857
95
0.580581
92
999
6.217391
0.391304
0.076923
0.045455
0
0
0
0
0
0
0
0
0
0.329329
999
34
96
29.382353
0.853731
0.354354
0
0
0
0
0.004115
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8f2a3b95839cbedcc20ef6343f961252546d71c8
999
py
Python
axes/signals.py
tabdon/django-axes
61b17b4d566e08b1af51f78fa4155cabbefe432e
[ "MIT" ]
1
2017-03-16T20:48:35.000Z
2017-03-16T20:48:35.000Z
axes/signals.py
tabdon/django-axes
61b17b4d566e08b1af51f78fa4155cabbefe432e
[ "MIT" ]
null
null
null
axes/signals.py
tabdon/django-axes
61b17b4d566e08b1af51f78fa4155cabbefe432e
[ "MIT" ]
null
null
null
from django.dispatch import Signal, receiver from django.contrib.auth.signals import user_logged_out from django.core.exceptions import ObjectDoesNotExist from axes.models import AccessLog # django 1.4 has a new timezone aware now() use if available. try: from django.utils.timezone import now except ImportError: ...
31.21875
78
0.714715
138
999
5
0.5
0.078261
0.037681
0
0
0
0
0
0
0
0
0.004981
0.196196
999
31
79
32.225806
0.854296
0.143143
0
0
0
0
0.044811
0
0
0
0
0
0
1
0.045455
false
0
0.318182
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
0
0
0
1
0
0
0
0
1
8f2c283fe02c9c5948008ea7c23fd548c4ee9bcc
9,106
py
Python
Step09_Metric_Learn.py
LMSE/PathwayLenPred
3145c1e033507111a5fa0c49933657e7ab57d41b
[ "MIT" ]
null
null
null
Step09_Metric_Learn.py
LMSE/PathwayLenPred
3145c1e033507111a5fa0c49933657e7ab57d41b
[ "MIT" ]
null
null
null
Step09_Metric_Learn.py
LMSE/PathwayLenPred
3145c1e033507111a5fa0c49933657e7ab57d41b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 #$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$# #$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$...
50.871508
153
0.35526
679
9,106
4.440353
0.237113
0.051741
0.043781
0.033831
0.293864
0.191708
0.157877
0.157877
0.100166
0.100166
0
0.011491
0.130354
9,106
178
154
51.157303
0.369239
0.42159
0
0.106195
0
0
0.089573
0.021819
0
0
0
0
0
1
0.035398
false
0.017699
0.265487
0
0.336283
0.088496
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f2c84ff52c48019c041a635694fe1dc844d2f9c
673
py
Python
toutiao-backend/toutiao/main.py
MarioKarting/Flask_toutiao
2fb36053206d10aefdb122985f34a438352ec0e3
[ "MIT" ]
5
2019-08-22T15:25:39.000Z
2021-11-26T06:07:51.000Z
toutiao-backend/toutiao/main.py
MarioKarting/Flask_toutiao
2fb36053206d10aefdb122985f34a438352ec0e3
[ "MIT" ]
2
2019-08-21T10:26:30.000Z
2022-01-14T01:20:55.000Z
toutiao-backend/toutiao/main.py
MarioKarting/Flask_toutiao
2fb36053206d10aefdb122985f34a438352ec0e3
[ "MIT" ]
8
2019-08-26T10:23:22.000Z
2022-02-24T07:01:25.000Z
import sys import os #BASE_DIR -->toutiao-backend BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) #python解释器查找一个包的路径 sys.path.insert(0, os.path.join(BASE_DIR, 'common')) sys.path.insert(0, os.path.join(BASE_DIR)) from flask import jsonify from . import create_app from settings.defa...
24.925926
111
0.701337
96
673
4.729167
0.479167
0.066079
0.057269
0.066079
0.207048
0.136564
0.136564
0.136564
0.136564
0
0
0.003584
0.170877
673
26
112
25.884615
0.810036
0.098068
0
0
0
0
0.039076
0
0
0
0
0
0
1
0.071429
false
0
0.357143
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8f311fb2d8a94f2a7f10814005edf750d51f2f36
3,129
py
Python
nPYc/reports/_generateBasicPCAReport.py
ghaggart/nPYc-Toolbox
d0160b476581fbd695f3f5f0303048466ed95864
[ "MIT" ]
14
2018-01-23T23:10:40.000Z
2022-02-03T15:15:52.000Z
nPYc/reports/_generateBasicPCAReport.py
ghaggart/nPYc-Toolbox
d0160b476581fbd695f3f5f0303048466ed95864
[ "MIT" ]
76
2018-01-24T17:37:25.000Z
2022-03-23T14:12:54.000Z
nPYc/reports/_generateBasicPCAReport.py
ghaggart/nPYc-Toolbox
d0160b476581fbd695f3f5f0303048466ed95864
[ "MIT" ]
11
2018-01-25T11:35:47.000Z
2022-03-07T15:04:02.000Z
import os import re from collections import OrderedDict from ..plotting import plotScores, plotLoadings from pyChemometrics.ChemometricsPCA import ChemometricsPCA def generateBasicPCAReport(pcaModel, dataset, figureCounter=1, destinationPath=None, fileNamePrefix=''): """ Visualise a PCA model by plotting scores plo...
32.936842
104
0.728348
337
3,129
6.747774
0.332344
0.021108
0.021988
0.014512
0.261214
0.171504
0.144239
0.144239
0.144239
0.144239
0
0.00077
0.170022
3,129
94
105
33.287234
0.874856
0.20294
0
0.311475
1
0
0.150446
0
0
0
0
0
0
1
0.016393
false
0
0.081967
0
0.131148
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f32978bdefcb73941ca7c03956d18c4a0ef0ba2
1,927
py
Python
bin/generate_sitemap.py
gaybro8777/CiteSeerX
49ecb503fb1ced8e2c2e94c3e100e5d4dc410ea6
[ "Apache-2.0" ]
108
2015-01-05T09:22:50.000Z
2022-03-15T23:59:53.000Z
bin/generate_sitemap.py
gaybro8777/CiteSeerX
49ecb503fb1ced8e2c2e94c3e100e5d4dc410ea6
[ "Apache-2.0" ]
26
2015-01-04T10:35:53.000Z
2021-11-01T04:41:19.000Z
bin/generate_sitemap.py
gaybro8777/CiteSeerX
49ecb503fb1ced8e2c2e94c3e100e5d4dc410ea6
[ "Apache-2.0" ]
48
2015-01-16T02:03:48.000Z
2022-03-15T23:59:55.000Z
#!/usr/bin/python # Script to generate sitemaps # Douglas Jordan # Requires mysql-python import MySQLdb import argparse import logging import os import sys import subprocess from config import db logging.basicConfig(level=logging.INFO) parser = argparse.ArgumentParser() parser.add_argument("sitemapdir") args = parser...
30.587302
132
0.662688
299
1,927
4.244147
0.41806
0.033097
0.030733
0.040189
0.3026
0.283688
0.283688
0.233255
0.1513
0.1513
0
0.016433
0.147379
1,927
62
133
31.080645
0.755934
0.062792
0
0.18
1
0.08
0.369795
0.033315
0
0
0
0
0
1
0
false
0.02
0.14
0
0.14
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f3f087aafc59fc8b84c56c4d0f2affe32e6fc8a
771
py
Python
saved_scores/mwob/pop_dir.py
nathanShepherd/Intelligent-Interface
4ab8a223ef6dfaed7cf5ebf61b24ec355d00b593
[ "MIT" ]
3
2018-03-26T21:08:45.000Z
2018-11-16T21:16:57.000Z
saved_scores/mwob/pop_dir.py
nathanShepherd/Intelligent-Interface
4ab8a223ef6dfaed7cf5ebf61b24ec355d00b593
[ "MIT" ]
null
null
null
saved_scores/mwob/pop_dir.py
nathanShepherd/Intelligent-Interface
4ab8a223ef6dfaed7cf5ebf61b24ec355d00b593
[ "MIT" ]
2
2018-03-26T21:08:51.000Z
2020-05-06T09:22:52.000Z
click_games = ['BisectAngle', 'ChaseCircle', 'ChooseDate', 'ChooseList', 'CircleCenter', 'ClickButton', 'ClickButtonSequence', 'ClickCheckboxes', 'ClickCollapsible', 'ClickCollapsible2', 'ClickColor', 'ClickDialog', 'ClickDialog2', 'ClickLink', 'ClickMenu2', 'ClickOption', 'ClickPie', 'ClickShades', 'ClickShape', 'Clic...
15.734694
40
0.71725
64
771
8.5625
0.875
0.038321
0
0
0
0
0
0
0
0
0
0.011396
0.089494
771
48
41
16.0625
0.769231
0
0
0
0
0
0.627756
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f407e34098d6f3a675011a3e5e980f5c71e7e07
361
py
Python
result/migrations/mig/0027_auto_20190626_0838.py
0Jihad/uqhs
16e16742022142d47d0a423aa27ca50fe706a06b
[ "MIT" ]
null
null
null
result/migrations/mig/0027_auto_20190626_0838.py
0Jihad/uqhs
16e16742022142d47d0a423aa27ca50fe706a06b
[ "MIT" ]
11
2019-10-13T11:05:26.000Z
2022-03-11T23:48:57.000Z
result/migrations/mig/0027_auto_20190626_0838.py
0Jihad/uqhs
16e16742022142d47d0a423aa27ca50fe706a06b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2019-06-25 19:38 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('result', '0026_auto_20190626_0835'), ] operations = [ migrations.RenameField( model_name='all_subject', old_name='Agg', ...
19
47
0.581717
40
361
5.075
0.85
0
0
0
0
0
0
0
0
0
0
0.123506
0.304709
361
18
48
20.055556
0.685259
0.124654
0
0
1
0
0.146497
0.073248
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8f4c2cd55536456d9a5397e7e2944331a08ff116
1,389
py
Python
vote.py
evan82/dash-voter
05302483986f4595d9ae1d436590a024540a1940
[ "MIT" ]
1
2018-10-25T00:41:11.000Z
2018-10-25T00:41:11.000Z
vote.py
evan82/dash-voter
05302483986f4595d9ae1d436590a024540a1940
[ "MIT" ]
null
null
null
vote.py
evan82/dash-voter
05302483986f4595d9ae1d436590a024540a1940
[ "MIT" ]
1
2018-11-16T21:16:48.000Z
2018-11-16T21:16:48.000Z
#!/usr/bin/env python """ Dash-Voter ---- Mass vote on a proposal semi-anonymously """ import subprocess import argparse import json from config import dashd_path, datadir, masternodes from random import randint, shuffle from time import sleep from sys import exit, argv print dashd_path, datadir if len(argv) == 2...
24.368421
151
0.677466
200
1,389
4.66
0.435
0.032189
0.06867
0.038627
0.165236
0.165236
0.165236
0.145923
0.145923
0.145923
0
0.071493
0.204464
1,389
56
152
24.803571
0.771946
0.166307
0
0
0
0
0.106223
0
0
0
0
0
0
0
null
null
0
0.269231
null
null
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8f5022143be08f647228b60d9d926cbd7722bad7
1,832
py
Python
Frozen/script.py
killua4564/2021-Crypto-CTF
37f9a21db92f3bb8de2a88ced8184e5ad36865e6
[ "MIT" ]
null
null
null
Frozen/script.py
killua4564/2021-Crypto-CTF
37f9a21db92f3bb8de2a88ced8184e5ad36865e6
[ "MIT" ]
null
null
null
Frozen/script.py
killua4564/2021-Crypto-CTF
37f9a21db92f3bb8de2a88ced8184e5ad36865e6
[ "MIT" ]
null
null
null
from pwn import remote from gmpy2 import next_prime from Crypto.Util.number import * conn = remote("03.cr.yp.toc.tf", "25010") def get_params(): conn.recvuntil("[Q]uit") conn.sendline("s") conn.recvuntil(" = ") p = int(conn.recvuntil("\n").decode()) conn.recvuntil(" = ") r = int(conn.recvunti...
25.802817
87
0.584061
275
1,832
3.818182
0.28
0.222857
0.053333
0.064762
0.27619
0.232381
0.121905
0.121905
0.047619
0.047619
0
0.016194
0.191048
1,832
70
88
26.171429
0.692308
0
0
0.131148
0
0.04918
0.052948
0
0
0
0
0
0
1
0.04918
false
0
0.04918
0
0.147541
0.016393
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1