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
494af8a19fc7069eaca361442a209c2b56549d38
1,919
py
Python
polling_stations/apps/feedback/admin.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/feedback/admin.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
364
2020-10-19T07:16:41.000Z
2022-03-31T06:10:55.000Z
polling_stations/apps/feedback/admin.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
import csv import datetime from django.conf.urls import url from django.contrib import admin from django.http import HttpResponse, HttpResponseForbidden from .models import Feedback class FeedbackAdmin(admin.ModelAdmin): list_filter = ("found_useful",) list_display = ("id", "found_useful", "comments", "create...
33.666667
86
0.643564
221
1,919
5.429864
0.384615
0.036667
0.03
0.043333
0.185
0.185
0.185
0.185
0.185
0.185
0
0
0.233976
1,919
56
87
34.267857
0.816327
0
0
0.130435
0
0
0.133924
0.013549
0
0
0
0
0
1
0.130435
false
0
0.130435
0.043478
0.543478
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
4952059218fa8f6046f55d6d7f2889fb0f42b050
901
py
Python
cpdb/data/migrations/0048_investigator.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
25
2018-07-20T22:31:40.000Z
2021-07-15T16:58:41.000Z
cpdb/data/migrations/0048_investigator.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
13
2018-06-18T23:08:47.000Z
2022-02-10T07:38:25.000Z
cpdb/data/migrations/0048_investigator.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
6
2018-05-17T21:59:43.000Z
2020-11-17T00:30:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-05-30 08:43 from __future__ import unicode_literals import data.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data', '0047_officerallegation_outcome'), ] operations = [ ...
28.15625
114
0.618202
91
901
5.956044
0.582418
0.099631
0.127306
0.149446
0.158672
0.158672
0
0
0
0
0
0.039334
0.266371
901
31
115
29.064516
0.780635
0.075472
0
0.333333
1
0
0.137349
0.062651
0
0
0
0
0
1
0
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4957abe62eced05c85372110401addfaefc5b780
335
py
Python
cli/psym/graphql/enum/cellular_network_type.py
danielrh135568/symphony-1
54c92a0f8775d1a837ab7c7bd6a08ccd906d28a4
[ "BSD-3-Clause" ]
null
null
null
cli/psym/graphql/enum/cellular_network_type.py
danielrh135568/symphony-1
54c92a0f8775d1a837ab7c7bd6a08ccd906d28a4
[ "BSD-3-Clause" ]
12
2022-02-14T04:20:30.000Z
2022-03-28T04:20:17.000Z
cli/psym/graphql/enum/cellular_network_type.py
danielrh135568/symphony-1
54c92a0f8775d1a837ab7c7bd6a08ccd906d28a4
[ "BSD-3-Clause" ]
1
2022-02-24T21:47:51.000Z
2022-02-24T21:47:51.000Z
#!/usr/bin/env python3 # @generated AUTOGENERATED file. Do not Change! from enum import Enum class CellularNetworkType(Enum): CDMA = "CDMA" GSM = "GSM" LTE = "LTE" WCDMA = "WCDMA" MISSING_ENUM = "" @classmethod def _missing_(cls, value: object) -> "CellularNetworkType": return cl...
19.705882
63
0.650746
38
335
5.631579
0.684211
0.102804
0
0
0
0
0
0
0
0
0
0.003906
0.235821
335
16
64
20.9375
0.832031
0.2
0
0
1
0
0.12782
0
0
0
0
0
0
1
0.1
false
0
0.1
0.1
0.9
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
4959f1b295b42176e7c24dfadff4e9bbed378990
301
py
Python
setup.py
almirjgomes/DE_LibUtil
e5ae30f9efc8f64238e8810ede4f5dc0977296c8
[ "MIT" ]
null
null
null
setup.py
almirjgomes/DE_LibUtil
e5ae30f9efc8f64238e8810ede4f5dc0977296c8
[ "MIT" ]
null
null
null
setup.py
almirjgomes/DE_LibUtil
e5ae30f9efc8f64238e8810ede4f5dc0977296c8
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='DE_LibUtil', version='0.0.19', packages=[''], url='https://github.com/almirjgomes/DE_LibUtil.git', license='MIT', author='Almir J Gomes', author_email='almir.jg@hotmail.com', description='LibUtil - Biblioteca de Utilidades' )
23.153846
56
0.664452
38
301
5.184211
0.763158
0.091371
0
0
0
0
0
0
0
0
0
0.016129
0.17608
301
12
57
25.083333
0.778226
0
0
0
0
0
0.435216
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
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
495c313be0b46a470ef84174f695acabbd0f8d4d
2,243
py
Python
scribbles/datasets/decorators.py
ltiao/scribbles
9f30ea92ee348154568a7791751634d1feaba774
[ "MIT" ]
1
2020-03-01T04:36:36.000Z
2020-03-01T04:36:36.000Z
scribbles/datasets/decorators.py
ltiao/scribbles
9f30ea92ee348154568a7791751634d1feaba774
[ "MIT" ]
3
2020-01-02T19:09:40.000Z
2020-01-02T19:11:02.000Z
scribbles/datasets/decorators.py
ltiao/scribbles
9f30ea92ee348154568a7791751634d1feaba774
[ "MIT" ]
null
null
null
import numpy as np def binarize(positive_label=3, negative_label=5): """ MNIST binary classification. Examples -------- .. plot:: :context: close-figs import tensorflow as tf from scribbles.datasets import binarize from scribbles.plotting import plot_image_grid ...
30.310811
77
0.584485
319
2,243
3.721003
0.22884
0.065712
0.035383
0.060657
0.339511
0.234204
0.193766
0.09941
0.062342
0
0
0.013063
0.317432
2,243
73
78
30.726027
0.762247
0.384753
0
0.166667
0
0
0
0
0
0
0
0.013699
0
1
0.166667
false
0
0.041667
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
495c979cc813200a2674b980a7b652a257d15ba2
405
py
Python
utils/bot.py
drx/archfinch
836534302cd6d3d63fa65eb8d66ed642f0e72228
[ "MIT" ]
1
2015-11-12T19:13:20.000Z
2015-11-12T19:13:20.000Z
utils/bot.py
drx/archfinch
836534302cd6d3d63fa65eb8d66ed642f0e72228
[ "MIT" ]
null
null
null
utils/bot.py
drx/archfinch
836534302cd6d3d63fa65eb8d66ed642f0e72228
[ "MIT" ]
null
null
null
import socket class Bot(): def __init__(self): self.host = 'localhost' self.port = 40037 def send_message(self, channel, message): try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((self.host, self.port)) s.send(channel + ' ' + me...
21.315789
65
0.538272
46
405
4.586957
0.543478
0.075829
0
0
0
0
0
0
0
0
0
0.018868
0.345679
405
18
66
22.5
0.777358
0
0
0
0
0
0.024691
0
0
0
0
0
0
1
0.142857
false
0.071429
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
49682305b5c1971b14151b43d2d1acc6af2a273d
434
py
Python
src/posts/urls.py
eduardkh/matkonim2
d836b16403d7fce0db88dd39dac2ba24575e6fca
[ "MIT" ]
null
null
null
src/posts/urls.py
eduardkh/matkonim2
d836b16403d7fce0db88dd39dac2ba24575e6fca
[ "MIT" ]
null
null
null
src/posts/urls.py
eduardkh/matkonim2
d836b16403d7fce0db88dd39dac2ba24575e6fca
[ "MIT" ]
null
null
null
from django.urls import path import posts.views # for media files in test env from django.conf import settings from django.conf.urls.static import static app_name = 'posts' urlpatterns = [ path('', posts.views.index, name='index'), path('<slug:slug>', posts.views.detail, name='recipe_detail'), ] if settings....
25.529412
66
0.698157
58
434
5.137931
0.482759
0.100671
0.09396
0
0
0
0
0
0
0
0
0
0.186636
434
16
67
27.125
0.844193
0.062212
0
0
0
0
0.083951
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
496850c77621ad21ba541530a3741d2e9a0e0db4
262
py
Python
2019/day01/day01_part1.py
boffman/adventofcode
077e727b9b050c1fc5cb99ed7fbd64c5a69d9605
[ "MIT" ]
null
null
null
2019/day01/day01_part1.py
boffman/adventofcode
077e727b9b050c1fc5cb99ed7fbd64c5a69d9605
[ "MIT" ]
null
null
null
2019/day01/day01_part1.py
boffman/adventofcode
077e727b9b050c1fc5cb99ed7fbd64c5a69d9605
[ "MIT" ]
null
null
null
def calc_fuel(mass): fuel = int(mass / 3) - 2 return fuel with open("input.txt") as infile: fuel_sum = 0 for line in infile: mass = int(line.strip()) fuel = calc_fuel(mass) fuel_sum += fuel print(fuel_sum)
21.833333
34
0.553435
38
262
3.684211
0.552632
0.15
0.171429
0.228571
0
0
0
0
0
0
0
0.017241
0.335878
262
11
35
23.818182
0.787356
0
0
0
0
0
0.035857
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
0.1
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
49688c796ef0c9e17063df6279636aeeb38647f9
4,867
py
Python
synth/data_pipeline/SDN.py
MTG/content_choral_separation
f3710fb9a15a88651d13ea2c07c6d0368f1cfb8f
[ "Apache-2.0" ]
5
2020-09-23T09:44:35.000Z
2022-03-20T11:21:58.000Z
synth/data_pipeline/SDN.py
MTG/content_choral_separation
f3710fb9a15a88651d13ea2c07c6d0368f1cfb8f
[ "Apache-2.0" ]
9
2020-09-25T22:42:25.000Z
2022-02-10T02:10:29.000Z
synth/data_pipeline/SDN.py
MTG/content_choral_separation
f3710fb9a15a88651d13ea2c07c6d0368f1cfb8f
[ "Apache-2.0" ]
2
2021-06-03T14:52:20.000Z
2021-12-11T18:10:16.000Z
# Generator functions to generate batches of data. import numpy as np import os import time import h5py import matplotlib.pyplot as plt import collections from synth.config import config from synth.utils import utils def data_gen_SDN(mode = 'Train', sec_mode = 0): with h5py.File(config.stat_file, mode='r') ...
42.321739
878
0.642696
744
4,867
3.872312
0.204301
0.029157
0.054148
0.017008
0.391184
0.335647
0.205484
0.179799
0.10656
0.092329
0
0.04865
0.231354
4,867
115
879
42.321739
0.721465
0.308198
0
0
1
0
0.035192
0
0
0
0
0
0.016949
1
0.016949
false
0
0.135593
0
0.152542
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
4973e3a7482c8f1210ee98a8a38d41aceea56b20
2,621
py
Python
tests/test_types.py
trickeydan/j5-dev
ba9e2adcb6d9ed766e4be048cb77cf3fa6592b5f
[ "MIT" ]
10
2019-01-19T13:09:37.000Z
2021-06-18T13:40:10.000Z
tests/test_types.py
trickeydan/j5-dev
ba9e2adcb6d9ed766e4be048cb77cf3fa6592b5f
[ "MIT" ]
681
2019-01-22T18:12:23.000Z
2022-03-25T14:14:31.000Z
tests/test_types.py
trickeydan/j5-dev
ba9e2adcb6d9ed766e4be048cb77cf3fa6592b5f
[ "MIT" ]
8
2019-02-22T21:45:47.000Z
2021-11-17T19:43:33.000Z
"""Test custom types.""" import pytest from j5.types import ImmutableDict, ImmutableList def test_immutable_dict_get_member() -> None: """Test that we can get an item from an ImmutableDict.""" d = ImmutableDict[str, str]({'foo': 'bar'}) assert d['foo'] == 'bar' def test_immutable_dict_iterator() -> No...
27.020619
71
0.615795
372
2,621
4.223118
0.172043
0.049013
0.112031
0.017823
0.539147
0.493953
0.388924
0.388924
0.388924
0.280076
0
0.023541
0.222053
2,621
96
72
27.302083
0.746935
0.218237
0
0.423077
0
0
0.08006
0.010574
0
0
0
0
0.230769
1
0.211538
false
0
0.038462
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4977986beccc327bbdf0aa0b045d2ec6ad9fe5ca
182
py
Python
jp.atcoder/abc253/abc253_a/32028159.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc253/abc253_a/32028159.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc253/abc253_a/32028159.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
def main() -> None: a, b, c = map(int, input().split()) d = [a, b, c] d.sort() print("Yes" if d[1] == b else "No") if __name__ == "__main__": main()
16.545455
40
0.43956
28
182
2.571429
0.678571
0.055556
0.083333
0
0
0
0
0
0
0
0
0.008264
0.335165
182
10
41
18.2
0.586777
0
0
0
0
0
0.075581
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4978d0214beb2608dedb68c31044d16f710034ff
955
py
Python
duckyEmu.py
darkwire37/Rubber-Ducky-Emulator
ea6b40bb32df5e275e51d77b30e18fae4a999a42
[ "MIT" ]
1
2020-12-28T00:28:34.000Z
2020-12-28T00:28:34.000Z
duckyEmu.py
darkwire37/Rubber-Ducky-Emulator
ea6b40bb32df5e275e51d77b30e18fae4a999a42
[ "MIT" ]
null
null
null
duckyEmu.py
darkwire37/Rubber-Ducky-Emulator
ea6b40bb32df5e275e51d77b30e18fae4a999a42
[ "MIT" ]
null
null
null
import pyautogui as pag import time import sys args = sys.argv if len(args) != 2: print("Please specify the file path of the script you would like to run.") quit() script = open(sys.argv[1]) lines = script.readlines() for line in lines: print(line) command = line.split(None, 1)[0].lowe...
23.292683
79
0.565445
115
955
4.695652
0.513043
0.081481
0.048148
0.051852
0.077778
0
0
0
0
0
0
0.021021
0.302618
955
40
80
23.875
0.78979
0
0
0.0625
0
0
0.13224
0
0
0
0
0
0
1
0
false
0.0625
0.09375
0
0.09375
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
49798559a7aa2a5f3cf4c9557602e9f6ae0ff404
18,833
py
Python
frontend/gnip/mongo.py
pablobesada/tw
7c82278dce578dd73fb6fa465aed8585af224445
[ "Apache-2.0" ]
null
null
null
frontend/gnip/mongo.py
pablobesada/tw
7c82278dce578dd73fb6fa465aed8585af224445
[ "Apache-2.0" ]
null
null
null
frontend/gnip/mongo.py
pablobesada/tw
7c82278dce578dd73fb6fa465aed8585af224445
[ "Apache-2.0" ]
null
null
null
#encoding: utf-8 from pymongo import MongoClient from bson import ObjectId import argparse from pprint import pprint import time import threading from datetime import datetime, timedelta from tweet import Tweet class Product(object): def __init__(self, id, mongoproduct): self.id = id self.o = ...
31.8125
192
0.589444
2,127
18,833
5.076164
0.12835
0.055571
0.047976
0.029175
0.499768
0.422154
0.390942
0.346207
0.322127
0.302862
0
0.004596
0.283651
18,833
592
193
31.8125
0.795716
0.016195
0
0.483945
0
0
0.056393
0.005005
0
0
0
0
0
0
null
null
0.004587
0.025229
null
null
0.006881
0
0
0
null
0
0
0
0
0
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
497e0204000f817a3f5cf2a839e7e39fb09dd169
1,697
py
Python
ooobuild/lo/drawing/bar_code_error_correction.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/drawing/bar_code_error_correction.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/drawing/bar_code_error_correction.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
32.634615
203
0.714791
249
1,697
4.751004
0.562249
0.050719
0.047337
0.0541
0.174979
0.154691
0
0
0
0
0
0.023792
0.207425
1,697
51
204
33.27451
0.855762
0.762522
0
0
0
0
0.28481
0.205696
0
0
0
0
0
1
0
false
0
0
0
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
49863ab69b6a37f90c1cebabfdebd63c1e698bf3
6,347
py
Python
unit_1_flexbe_behaviors/src/unit_1_flexbe_behaviors/get_products_sm.py
menno409/fase2
60a6402f98be93e881149cc94bc389ef9a033ff7
[ "BSD-3-Clause" ]
null
null
null
unit_1_flexbe_behaviors/src/unit_1_flexbe_behaviors/get_products_sm.py
menno409/fase2
60a6402f98be93e881149cc94bc389ef9a033ff7
[ "BSD-3-Clause" ]
null
null
null
unit_1_flexbe_behaviors/src/unit_1_flexbe_behaviors/get_products_sm.py
menno409/fase2
60a6402f98be93e881149cc94bc389ef9a033ff7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################### # WARNING: Generated code! # # ************************** # # Manual changes may get lost if file is generated again. # # Only code inside the [MANUAL] ta...
39.179012
131
0.689617
632
6,347
6.672468
0.283228
0.036993
0.047427
0.038416
0.281005
0.235713
0.179274
0.158881
0.118568
0.061655
0
0.018054
0.170947
6,347
161
132
39.42236
0.783352
0.154561
0
0.130952
1
0
0.263924
0.053949
0
0
0
0
0
1
0.02381
false
0
0.107143
0
0.154762
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
498fd0f96f8ff4ae0d3e7d7a7bc026676e269ea4
1,544
py
Python
01_P/P_2_1_1_01/main.py
genfifth/generative-design_Code-Package-Python-Mode
93fc8435933aa2e9329de77a1177bb34e63dd1c4
[ "BSD-2-Clause" ]
1
2019-04-23T16:26:31.000Z
2019-04-23T16:26:31.000Z
01_P/P_2_1_1_01/main.py
QuantumNovice/generative-design_Code-Package-Python-Mode
93fc8435933aa2e9329de77a1177bb34e63dd1c4
[ "BSD-2-Clause" ]
null
null
null
01_P/P_2_1_1_01/main.py
QuantumNovice/generative-design_Code-Package-Python-Mode
93fc8435933aa2e9329de77a1177bb34e63dd1c4
[ "BSD-2-Clause" ]
1
2019-01-31T16:05:19.000Z
2019-01-31T16:05:19.000Z
add_library('pdf') import random from datetime import datetime tileCount = 20 def setup(): global savePDF, actStrokeCap, actRandomSeed savePDF = False actStrokeCap = ROUND actRandomSeed = 0 def draw(): global savePDF, actStrokeCap, actRandomSeed if savePDF: beginRecord(PDF, datetime...
24.125
77
0.591321
169
1,544
5.39645
0.390533
0.057018
0.109649
0.166667
0.142544
0.054825
0.054825
0.054825
0.054825
0
0
0.021798
0.286917
1,544
63
78
24.507937
0.80654
0
0
0.170213
0
0
0.02722
0
0
0
0
0
0
1
0.085106
false
0
0.042553
0
0.12766
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
4993167df5cb9a627ae23589192b49d9d108ce89
2,902
py
Python
tsai/models/mWDN.py
sjdlloyd/tsai
98d9c02b8429708819d373b475deb9e99f0ab7df
[ "Apache-2.0" ]
null
null
null
tsai/models/mWDN.py
sjdlloyd/tsai
98d9c02b8429708819d373b475deb9e99f0ab7df
[ "Apache-2.0" ]
null
null
null
tsai/models/mWDN.py
sjdlloyd/tsai
98d9c02b8429708819d373b475deb9e99f0ab7df
[ "Apache-2.0" ]
1
2021-08-12T20:45:07.000Z
2021-08-12T20:45:07.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/110_models.mWDN.ipynb (unless otherwise specified). __all__ = ['WaveBlock', 'mWDN'] # Cell from ..imports import * from .layers import * from .InceptionTime import * from .utils import create_model # Cell import pywt # Cell # This is an unofficial PyTorch implementati...
39.753425
250
0.628877
454
2,902
3.825991
0.317181
0.037997
0.009211
0.01612
0.143926
0.120898
0.10593
0.10593
0.034542
0.034542
0
0.050343
0.247071
2,902
73
251
39.753425
0.744622
0.167471
0
0.037037
1
0
0.005396
0
0
0
0
0
0
1
0.092593
false
0
0.092593
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
499f33a3e02e5f26996716040895f5626283883f
907
py
Python
RegonAPI/consts/voivodeships.py
damianwasik98/RegonAPI
0c45363ba7fcfdc7c0938084288575c5b32ec4da
[ "MIT" ]
10
2020-01-17T15:40:16.000Z
2022-01-29T10:45:21.000Z
RegonAPI/consts/voivodeships.py
damianwasik98/RegonAPI
0c45363ba7fcfdc7c0938084288575c5b32ec4da
[ "MIT" ]
4
2019-10-25T08:21:26.000Z
2021-04-19T11:28:30.000Z
RegonAPI/consts/voivodeships.py
damianwasik98/RegonAPI
0c45363ba7fcfdc7c0938084288575c5b32ec4da
[ "MIT" ]
3
2020-11-23T13:12:26.000Z
2021-07-23T10:10:46.000Z
# Keys are ISO 3166-2:PL abbr. VOIVODESHIPS = { "DS": {"teryt": "02", "name_pl": "dolnośląskie"}, "KP": {"teryt": "04", "name_pl": "kujawsko-pomorskie"}, "LU": {"teryt": "06", "name_pl": "lubelskie"}, "LB": {"teryt": "08", "name_pl": "lubuskie"}, "LD": {"teryt": "10", "name_pl": "łódzkie"}, "MA"...
45.35
60
0.520397
106
907
4.301887
0.556604
0.210526
0
0
0
0
0
0
0
0
0
0.049137
0.169791
907
19
61
47.736842
0.556441
0.030871
0
0
0
0
0.502851
0
0
0
0
0
0
1
0
false
0
0
0
0
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
b8c6d0a228ede375333d9692fe89838bd0ac57c1
4,429
py
Python
enigma.py
vmonaco/enigma
5c871ab10c06e52f429e4fa6f9a117c8e06175e5
[ "MIT" ]
2
2015-11-19T13:03:12.000Z
2016-11-07T12:59:52.000Z
enigma.py
vmonaco/enigma
5c871ab10c06e52f429e4fa6f9a117c8e06175e5
[ "MIT" ]
null
null
null
enigma.py
vmonaco/enigma
5c871ab10c06e52f429e4fa6f9a117c8e06175e5
[ "MIT" ]
null
null
null
''' Created on Aug 4, 2012 @author: vinnie ''' class Rotor(object): def __init__(self, symbols, permutation): ''' ''' self.states = [] self.inverse_states = [] self.n_symbols = len(symbols) for i in range(self.n_symbols): self.states.append({sy...
25.164773
114
0.50779
511
4,429
4.299413
0.189824
0.08193
0.043696
0.038234
0.261721
0.192535
0.085116
0.05553
0
0
0
0.003917
0.365997
4,429
175
115
25.308571
0.77849
0.135697
0
0.157303
0
0
0.021926
0
0
0
0
0
0.011236
1
0.202247
false
0
0
0
0.404494
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
b8c767e496546ef8f47255ddf700b4309e9b5a81
839
py
Python
imp_flask/models/pos.py
thijsmie/imp_flask
2cad9f628c54572c02a5f893ef9c0cb1149b18ea
[ "MIT" ]
1
2019-06-13T07:28:02.000Z
2019-06-13T07:28:02.000Z
imp_flask/models/pos.py
k-automation/imp_flask
2cad9f628c54572c02a5f893ef9c0cb1149b18ea
[ "MIT" ]
4
2016-12-06T11:25:36.000Z
2021-04-29T07:43:14.000Z
imp_flask/models/pos.py
k-automation/imp_flask
2cad9f628c54572c02a5f893ef9c0cb1149b18ea
[ "MIT" ]
2
2017-09-06T14:26:04.000Z
2018-02-03T18:55:36.000Z
from imp_flask.models.helpers import Base, many_to_many from sqlalchemy import Column, String, Integer, DateTime, ForeignKey from sqlalchemy.orm import relationship class PosInstance(Base): name = Column(String(80)) posusers = many_to_many('posusers', 'PosInstance', 'User') class PosSellable(Base)...
31.074074
69
0.703218
93
839
6.225806
0.376344
0.082902
0.093264
0
0
0
0
0
0
0
0
0.010234
0.184744
839
26
70
32.269231
0.836257
0
0
0
0
0
0.110701
0
0
0
0
0
0
1
0
false
0
0.15
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b8c8262a57c4beb8a244418694c5527b4ccb9037
883
py
Python
MXXXPXXX/sg/managers.py
seokzin/minepost
7f0c57f917f415f163167a2c6e38f7e3f6d73c9a
[ "MIT" ]
4
2020-09-10T01:53:57.000Z
2020-09-20T05:38:55.000Z
MXXXPXXX/sg/managers.py
seokzin/MinePost
7f0c57f917f415f163167a2c6e38f7e3f6d73c9a
[ "MIT" ]
4
2021-03-30T13:28:34.000Z
2021-06-10T19:21:54.000Z
MXXXPXXX/sg/managers.py
seokzin/MinePost
7f0c57f917f415f163167a2c6e38f7e3f6d73c9a
[ "MIT" ]
6
2020-05-15T11:53:21.000Z
2020-07-07T13:44:01.000Z
from django.contrib.auth.base_user import BaseUserManager class UserManager(BaseUserManager): use_in_migrations = True def create_user(self, name, email, userid=None, password=None): if not email: raise ValueError('must have user email') user = self.model( email=self.n...
28.483871
67
0.604757
102
883
5.088235
0.382353
0.046243
0.050096
0.073218
0.393064
0.393064
0.393064
0.393064
0.393064
0.393064
0
0
0.308041
883
30
68
29.433333
0.849427
0
0
0.461538
0
0
0.02265
0
0
0
0
0
0
1
0.076923
false
0.153846
0.038462
0
0.269231
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
b8cb4dd4364c62a047e764c78730555e39d86df5
608
py
Python
lib/daemonlog.py
oddeyeco/oe-proxy
73c724972b12bed87e0aeb0f3e9287967eab5dd0
[ "Apache-2.0" ]
1
2020-03-27T01:27:33.000Z
2020-03-27T01:27:33.000Z
lib/daemonlog.py
oddeyeco/oe-proxy
73c724972b12bed87e0aeb0f3e9287967eab5dd0
[ "Apache-2.0" ]
null
null
null
lib/daemonlog.py
oddeyeco/oe-proxy
73c724972b12bed87e0aeb0f3e9287967eab5dd0
[ "Apache-2.0" ]
null
null
null
import time import lib.getconfig import logging.handlers log_file = lib.getconfig.getparam('daemon', 'log_file') backupcount = int(lib.getconfig.getparam('daemon', 'log_rotate_seconds')) seconds = int(lib.getconfig.getparam('daemon', 'log_rotate_backups')) log = logging.handlers.TimedRotatingFileHandler(log_file, 's...
27.636364
96
0.759868
78
608
5.820513
0.435897
0.105727
0.132159
0.171806
0.231278
0.167401
0.167401
0
0
0
0
0
0.095395
608
21
97
28.952381
0.825455
0
0
0
0
0
0.133443
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.266667
0.066667
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
b8cbcee7e982baf6e7864edac5b6d67e18e5027b
860
py
Python
allennlp/semparse/util.py
entslscheia/allennlp
eeba62e34c8e211ed5963f830528c957f178607b
[ "Apache-2.0" ]
null
null
null
allennlp/semparse/util.py
entslscheia/allennlp
eeba62e34c8e211ed5963f830528c957f178607b
[ "Apache-2.0" ]
null
null
null
allennlp/semparse/util.py
entslscheia/allennlp
eeba62e34c8e211ed5963f830528c957f178607b
[ "Apache-2.0" ]
1
2021-09-21T12:03:27.000Z
2021-09-21T12:03:27.000Z
from typing import List def lisp_to_nested_expression(lisp_string: str) -> List: """ Takes a logical form as a lisp string and returns a nested list representation of the lisp. For example, "(count (division first))" would get mapped to ['count', ['division', 'first']]. """ stack: List = [] cu...
35.833333
97
0.613953
96
860
5.34375
0.4375
0.231969
0.070175
0.089669
0
0
0
0
0
0
0
0.007949
0.268605
860
23
98
37.391304
0.807631
0.215116
0
0
0
0
0.00458
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
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
b8ce95600b790a734a48582cd4bd8fffd7894cd1
4,626
py
Python
cca_zoo/generate_data.py
sunshiding/cca_zoo
4ec7c98b7e869f80e9bd9cbe3253f0a6d0b12dda
[ "MIT" ]
6
2021-03-02T16:58:01.000Z
2021-11-08T06:05:28.000Z
cca_zoo/generate_data.py
sunshiding/cca_zoo
4ec7c98b7e869f80e9bd9cbe3253f0a6d0b12dda
[ "MIT" ]
null
null
null
cca_zoo/generate_data.py
sunshiding/cca_zoo
4ec7c98b7e869f80e9bd9cbe3253f0a6d0b12dda
[ "MIT" ]
2
2021-02-01T08:53:08.000Z
2021-10-15T04:39:44.000Z
import numpy as np from scipy.linalg import toeplitz def gaussian(x, mu, sig, dn): return np.exp(-np.power(x - mu, 2.) / (2 * np.power(sig, 2.))) * dn / (np.sqrt(2 * np.pi) * sig) def generate_mai(m: int, k: int, N: int, M: int, sparse_variables_1: int = None, sparse_variables_2: int = None, si...
31.469388
122
0.521185
778
4,626
2.951157
0.182519
0.052265
0.052265
0.023955
0.290505
0.238676
0.199477
0.199477
0.115854
0.068815
0
0.02752
0.300908
4,626
146
123
31.684932
0.682437
0.120406
0
0.127451
1
0
0.007901
0
0
0
0
0.006849
0
1
0.039216
false
0
0.019608
0.009804
0.098039
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
b8ceb2ae5dca6b31bfc483eb1c7d8d44902cc4cf
1,833
py
Python
scripts/extract_ssv2.py
18wh1a0590/NLP-Text-Generation
1a4115875d6898d7491953cffded6153cb9ff221
[ "MIT" ]
25
2021-06-12T11:38:07.000Z
2022-03-17T13:32:02.000Z
scripts/extract_ssv2.py
18wh1a0590/NLP-Text-Generation
1a4115875d6898d7491953cffded6153cb9ff221
[ "MIT" ]
3
2021-07-18T19:20:41.000Z
2022-03-09T09:35:37.000Z
scripts/extract_ssv2.py
18wh1a0590/NLP-Text-Generation
1a4115875d6898d7491953cffded6153cb9ff221
[ "MIT" ]
6
2021-07-27T15:08:32.000Z
2022-02-18T19:01:35.000Z
import os import subprocess import json from glob import glob from joblib import Parallel, delayed out_h = 256 out_w = 256 in_folder = 'data/ssv2/' out_folder = 'data/ssv2_{}x{}q5'.format(out_w,out_h) split_dir = "splits/ssv2_OTAM" wc = os.path.join(split_dir, "*.txt") def run_cmd(cmd): try: os.mkdir(cm...
22.9125
100
0.56192
272
1,833
3.643382
0.323529
0.042381
0.060545
0.036327
0.162462
0.103935
0.103935
0.103935
0.074672
0.074672
0
0.014604
0.290235
1,833
80
100
22.9125
0.747118
0.051828
0
0.241935
0
0
0.066168
0
0
0
0
0
0
1
0.016129
false
0.080645
0.080645
0
0.096774
0.032258
0
0
0
null
0
0
0
0
0
0
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
b8d4cf2f6660e66c120638e0a0696b3a7a218b2a
4,139
py
Python
deafrica/tests/test_s2_gap_report.py
caitlinadams/deafrica-scripts
a4c0ac7ba640fd60606da1d214c972cb5b588556
[ "Apache-2.0" ]
3
2021-11-12T08:07:31.000Z
2022-02-13T22:18:16.000Z
deafrica/tests/test_s2_gap_report.py
caitlinadams/deafrica-scripts
a4c0ac7ba640fd60606da1d214c972cb5b588556
[ "Apache-2.0" ]
6
2021-09-30T23:34:28.000Z
2022-01-18T04:00:05.000Z
deafrica/tests/test_s2_gap_report.py
digitalearthafrica/scripts
ed1e91857764e77ab0f4fc5ea4e541f1cb8406ad
[ "Apache-2.0" ]
1
2021-11-16T23:38:10.000Z
2021-11-16T23:38:10.000Z
from unittest.mock import patch import boto3 from moto import mock_s3 from urlpath import URL from deafrica.monitoring import s2_gap_report from deafrica.monitoring.s2_gap_report import ( get_and_filter_cogs_keys, generate_buckets_diff, ) from deafrica.tests.conftest import ( COGS_REGION, INVENTORY_BU...
28.156463
90
0.689055
489
4,139
5.390593
0.132924
0.12519
0.10091
0.050076
0.775797
0.723065
0.699165
0.632398
0.592185
0.566388
0
0.018634
0.222034
4,139
146
91
28.349315
0.8
0.038173
0
0.461538
0
0
0.119305
0.090108
0
0
0
0
0.017094
1
0.017094
false
0
0.059829
0
0.076923
0.025641
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b8d63a07863a0897cdb30619334b2a2ac0fede53
4,531
py
Python
DataLog.py
croomjm/Cubli
79c5cb03f261989154ce3d6bcf454b3b725d90d7
[ "MIT" ]
4
2019-07-01T05:55:35.000Z
2022-03-29T19:38:47.000Z
DataLog.py
croomjm/Cubli
79c5cb03f261989154ce3d6bcf454b3b725d90d7
[ "MIT" ]
null
null
null
DataLog.py
croomjm/Cubli
79c5cb03f261989154ce3d6bcf454b3b725d90d7
[ "MIT" ]
3
2017-10-28T14:12:36.000Z
2020-10-12T17:53:03.000Z
from collections import deque import os class DataLog: """ Class to contain saved data and save to json file when commanded. All logged data are limited to self.__buffer_length unique records. Exclusively uses jsonpickle library to read/write log data. """ def __init__(self,logDir = None, buf...
39.4
213
0.586405
533
4,531
4.836773
0.300188
0.060512
0.062064
0.057021
0.2436
0.207913
0.194725
0.162917
0.162917
0.162917
0
0.006845
0.322887
4,531
114
214
39.745614
0.833442
0.077687
0
0.233766
0
0
0.119977
0.008673
0
0
0
0
0
0
null
null
0
0.064935
null
null
0.025974
0
0
0
null
0
0
0
0
0
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
b8d7694a4c7ed1dcedf82087fcbcc8ca2e263849
1,918
py
Python
decuen/memories/uniform.py
ziyadedher/decuen
bc3bd42857308d7b189f576a3404abb3f9152531
[ "MIT" ]
2
2019-03-21T20:15:22.000Z
2019-11-06T21:18:52.000Z
decuen/memories/uniform.py
ziyadedher/decuen
bc3bd42857308d7b189f576a3404abb3f9152531
[ "MIT" ]
10
2019-11-17T14:41:31.000Z
2019-11-26T18:52:27.000Z
decuen/memories/uniform.py
ziyadedher/decuen
bc3bd42857308d7b189f576a3404abb3f9152531
[ "MIT" ]
null
null
null
"""Implementation of a possibly bounded uniform experience replay manager.""" import random from typing import List, Optional from decuen.memories._memory import Memory from decuen.structs import Trajectory, Transition class UniformMemory(Memory): """Sized uniform memory mechanism, stores memories up to a maxim...
45.666667
107
0.724713
230
1,918
5.786957
0.286957
0.073629
0.042074
0.037566
0.075131
0.075131
0.033058
0
0
0
0
0.002566
0.187174
1,918
41
108
46.780488
0.851187
0.199166
0
0
0
0
0
0
0
0
0
0
0
1
0.192308
false
0
0.153846
0.076923
0.538462
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
b8d9a06f1700543068eae4ce44b1704eab01ae60
66,246
py
Python
src/haizea/core/scheduler/vm_scheduler.py
Hamdy/haizea
797e1b0ae19b41887c8970298de3adb9498034f3
[ "Apache-2.0" ]
1
2017-10-31T22:17:31.000Z
2017-10-31T22:17:31.000Z
src/haizea/core/scheduler/vm_scheduler.py
Hamdy/haizea
797e1b0ae19b41887c8970298de3adb9498034f3
[ "Apache-2.0" ]
null
null
null
src/haizea/core/scheduler/vm_scheduler.py
Hamdy/haizea
797e1b0ae19b41887c8970298de3adb9498034f3
[ "Apache-2.0" ]
null
null
null
# -------------------------------------------------------------------------- # # Copyright 2006-2009, University of Chicago # # Copyright 2008-2009, Distributed Systems Architecture Group, Universidad # # Complutense de Madrid (dsa-research.org) # # ...
44.282086
235
0.58633
7,431
66,246
5.096488
0.102005
0.01109
0.009506
0.010562
0.42443
0.366788
0.339882
0.3031
0.268747
0.249049
0
0.002108
0.341213
66,246
1,495
236
44.311706
0.86568
0.12917
0
0.371935
0
0.00545
0.061442
0.003894
0
0
0
0.003344
0
0
null
null
0
0.010899
null
null
0.043597
0
0
0
null
0
0
0
0
0
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
b8dd37c1b9ea60598fb685249570cd5e7e9283c2
5,942
py
Python
src/unicon/plugins/nxos/service_statements.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
1
2021-02-25T19:36:56.000Z
2021-02-25T19:36:56.000Z
src/unicon/plugins/nxos/service_statements.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
null
null
null
src/unicon/plugins/nxos/service_statements.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
null
null
null
""" Module: unicon.plugins.service.nxos Authors: pyATS TEAM (pyats-support@cisco.com, pyats-support-ext@cisco.com) Description: Module for defining all Services Statement, handlers(callback) and Statement list for service dialog would be defined here. """ from time import sleep from unicon.eal.dialog...
36.906832
80
0.583978
574
5,942
5.75784
0.224739
0.062935
0.074735
0.087141
0.357337
0.323449
0.229652
0.149773
0.087443
0.072617
0
0.002067
0.348704
5,942
161
81
36.906832
0.851938
0.086671
0
0.378378
0
0
0.014975
0
0
0
0
0.006211
0
1
0.027027
false
0.162162
0.072072
0
0.099099
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
b8ddba0d5d00d93f28c829b8fd0de859b33b8aba
2,374
py
Python
fn/stream.py
bmintz/fn.py
df53f5d6bf0e94a37f44f6be57d1c87c9b7a6c26
[ "Apache-2.0" ]
2,260
2015-01-01T22:32:23.000Z
2022-03-31T10:33:13.000Z
fn/stream.py
Digenis/fn.py
df53f5d6bf0e94a37f44f6be57d1c87c9b7a6c26
[ "Apache-2.0" ]
15
2015-04-24T04:37:38.000Z
2022-03-25T18:13:22.000Z
fn/stream.py
Digenis/fn.py
df53f5d6bf0e94a37f44f6be57d1c87c9b7a6c26
[ "Apache-2.0" ]
164
2015-01-10T23:32:17.000Z
2022-03-07T02:54:43.000Z
from sys import version_info if version_info[0] == 2: from sys import maxint else: from sys import maxsize as maxint from itertools import chain from .iters import map, range class Stream(object): __slots__ = ("_last", "_collection", "_origin") class _StreamIterator(object): __slot...
29.308642
89
0.58888
270
2,374
4.855556
0.322222
0.045767
0.029748
0.021358
0.122044
0
0
0
0
0
0
0.008075
0.32182
2,374
80
90
29.675
0.806211
0.092249
0
0.107143
0
0
0.046154
0
0
0
0
0.0125
0
1
0.142857
false
0
0.089286
0.017857
0.446429
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
b8e1c1a35f8b32b46bd2bdcfb50e1b372737e30e
165
py
Python
AlgorithmTest/BOJ_STEP_PYTHON/Step8/BOJ1712.py
bluesky0960/AlgorithmTest
35e6c01b1c25bf13d4c034c047f3dd3b67f1578e
[ "MIT" ]
null
null
null
AlgorithmTest/BOJ_STEP_PYTHON/Step8/BOJ1712.py
bluesky0960/AlgorithmTest
35e6c01b1c25bf13d4c034c047f3dd3b67f1578e
[ "MIT" ]
null
null
null
AlgorithmTest/BOJ_STEP_PYTHON/Step8/BOJ1712.py
bluesky0960/AlgorithmTest
35e6c01b1c25bf13d4c034c047f3dd3b67f1578e
[ "MIT" ]
null
null
null
#https://www.acmicpc.net/problem/1712 a, b, b2 = map(int, input().split()) if b >= b2: print(-1) else: bx = b2 - b count = a // bx + 1 print(count)
16.5
37
0.533333
28
165
3.142857
0.678571
0.068182
0
0
0
0
0
0
0
0
0
0.07377
0.260606
165
10
38
16.5
0.647541
0.218182
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b8e2637733cda896665795a495f2bd76ff43b7ed
3,747
py
Python
google/ads/google_ads/v6/proto/common/real_time_bidding_setting_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/common/real_time_bidding_setting_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/common/real_time_bidding_setting_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v6/common/real_time_bidding_setting.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf imp...
45.695122
575
0.800107
468
3,747
6.113248
0.305556
0.083887
0.097868
0.11884
0.453338
0.415589
0.272981
0.224048
0.204474
0.150647
0
0.038841
0.079263
3,747
81
576
46.259259
0.790435
0.092607
0
0.147541
1
0.032787
0.38684
0.365595
0
0
0
0
0
1
0
false
0
0.081967
0
0.081967
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
b8e879c13406c5b443ec40c08ac8ab2d2d9ba643
1,002
py
Python
Leetcode/leetcode/editor/cn/[2]两数相加.py
MathAdventurer/Python-Algorithms-and-Data-Structures
6a61a93b52ceea83f52d2e610d0b13b12510a06b
[ "MIT" ]
1
2021-01-14T14:35:15.000Z
2021-01-14T14:35:15.000Z
Leetcode/leetcode/editor/cn/[2]两数相加.py
MathAdventurer/Python-Algorithms-and-Data-Structures
6a61a93b52ceea83f52d2e610d0b13b12510a06b
[ "MIT" ]
null
null
null
Leetcode/leetcode/editor/cn/[2]两数相加.py
MathAdventurer/Python-Algorithms-and-Data-Structures
6a61a93b52ceea83f52d2e610d0b13b12510a06b
[ "MIT" ]
null
null
null
# 给你两个 非空 的链表,表示两个非负的整数。它们每位数字都是按照 逆序 的方式存储的,并且每个节点只能存储 一位 数字。 # # 请你将两个数相加,并以相同形式返回一个表示和的链表。 # # 你可以假设除了数字 0 之外,这两个数都不会以 0 开头。 # # # # 示例 1: # # # 输入:l1 = [2,4,3], l2 = [5,6,4] # 输出:[7,0,8] # 解释:342 + 465 = 807. # # # 示例 2: # # # 输入:l1 = [0], l2 = [0] # 输出:[0] # # # 示例 3: # # # 输入:l1 = ...
16.983051
68
0.562874
146
1,002
3.849315
0.541096
0.039146
0.042705
0.035587
0.012456
0.012456
0
0
0
0
0
0.089409
0.274451
1,002
58
69
17.275862
0.68088
0.708583
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.666667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b8e9585072b995632a68c18779274bee52318161
400
py
Python
halo.py
heffra/superheffra
95e87bff307ed22d8031b27847bfc6d267482b9a
[ "MIT" ]
null
null
null
halo.py
heffra/superheffra
95e87bff307ed22d8031b27847bfc6d267482b9a
[ "MIT" ]
null
null
null
halo.py
heffra/superheffra
95e87bff307ed22d8031b27847bfc6d267482b9a
[ "MIT" ]
null
null
null
print("Halo") print("This is my program in vscode ") name = input("what your name : ") if name == "Hero": print("Wow your name {} ? , my name is Hero too, nice to meet you ! ".format(name)) else: print("Halo {} , nice to meet you friend".format(name)) age = input("how old are you : ") if age == "21": ...
33.333333
88
0.595
66
400
3.606061
0.5
0.10084
0.084034
0.109244
0
0
0
0
0
0
0
0.013158
0.24
400
12
89
33.333333
0.769737
0
0
0.166667
0
0
0.546154
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
b8f3f13ffdda47c389f86baa2382077f3c8a773e
1,209
py
Python
src/snippets/05_regular-expressions.py
yvesbeutler/tyrannosaurus
19b85ffcbef82f2efe82b0bde39a10625c970ebe
[ "MIT" ]
null
null
null
src/snippets/05_regular-expressions.py
yvesbeutler/tyrannosaurus
19b85ffcbef82f2efe82b0bde39a10625c970ebe
[ "MIT" ]
null
null
null
src/snippets/05_regular-expressions.py
yvesbeutler/tyrannosaurus
19b85ffcbef82f2efe82b0bde39a10625c970ebe
[ "MIT" ]
null
null
null
import re # match - looks for a regular expression at the beginning of the string email_pattern = r"[a-zA-Z\.]+@[a-zA-Z]{3,}\.[a-zA-Z]{2,3}" assert re.match(email_pattern, 'joe.johnson@gmail.com'), 'is a valid email' assert not re.match(email_pattern, 'joe.johnson8@gmail.com'), 'is not a valid email' # match - might...
44.777778
99
0.727047
208
1,209
4.149038
0.3125
0.056779
0.02781
0.088065
0.462341
0.345307
0.312862
0.273465
0.273465
0.078795
0
0.017941
0.124069
1,209
26
100
46.5
0.796978
0.200165
0
0
0
0.133333
0.45842
0.127859
0
0
0
0
0.666667
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
b8f79d5ea2a50138e7ec9e979acfa00f4ef8f1fb
1,490
py
Python
src/include/report_state.py
joeldentici/python_stepper
ab32c62d0d0333ad901d7329fb198c7a23988007
[ "MIT" ]
1
2020-11-29T20:00:39.000Z
2020-11-29T20:00:39.000Z
src/include/report_state.py
joeldentici/python_stepper
ab32c62d0d0333ad901d7329fb198c7a23988007
[ "MIT" ]
null
null
null
src/include/report_state.py
joeldentici/python_stepper
ab32c62d0d0333ad901d7329fb198c7a23988007
[ "MIT" ]
null
null
null
import re def indent(what): lines = what.split("\n") indentation = ' ' return "\n".join(indentation + x for x in lines) def dict_state_to_string(state, active_transform): if (state["type"] == "statement_group"): return "\n".join(state_to_string(x, active_transform) for x in state["statements"] if x) #return...
36.341463
90
0.713423
216
1,490
4.712963
0.226852
0.176817
0.140472
0.159136
0.450884
0.450884
0.418468
0.235756
0.18664
0.18664
0
0.001531
0.12349
1,490
40
91
37.25
0.777948
0.030201
0
0
0
0
0.108726
0
0
0
0
0
0
1
0.1875
false
0
0.03125
0.0625
0.59375
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
b8f80f0f4109adf2837477300419389e1f9d3bf9
3,575
py
Python
coin_dectector/coins/circles.py
jorisroovers/opencv-playground
4a5d179be422ea58f05ad1b050724e27b5a75820
[ "Apache-2.0" ]
null
null
null
coin_dectector/coins/circles.py
jorisroovers/opencv-playground
4a5d179be422ea58f05ad1b050724e27b5a75820
[ "Apache-2.0" ]
null
null
null
coin_dectector/coins/circles.py
jorisroovers/opencv-playground
4a5d179be422ea58f05ad1b050724e27b5a75820
[ "Apache-2.0" ]
null
null
null
import cv2 import cv2.cv import numpy as np import sys # http://www.pyimagesearch.com/2014/07/21/detecting-circles-images-using-opencv-hough-circles/ print "Reading image..." img = cv2.imread(sys.argv[1], 0) height, width = img.shape img2 = cv2.imread(sys.argv[1], 1) output = np.zeros((height, width, 3), np.uint8) pr...
33.101852
108
0.48028
512
3,575
3.345703
0.216797
0.030356
0.06655
0.024518
0.203152
0.183304
0.177466
0.177466
0.138938
0.110917
0
0.099243
0.334825
3,575
107
109
33.411215
0.62111
0.025734
0
0.163265
0
0
0.049698
0
0
0
0
0
0
0
null
null
0
0.040816
null
null
0.091837
0
0
0
null
0
0
0
0
0
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
b8f8595db1ceb2787e079f2371921b2880f90a96
174
py
Python
003/inout.py
sauhor/miniprocon
841ffcc50f7955cba9f9dd45a405d55928a61fec
[ "MIT" ]
null
null
null
003/inout.py
sauhor/miniprocon
841ffcc50f7955cba9f9dd45a405d55928a61fec
[ "MIT" ]
null
null
null
003/inout.py
sauhor/miniprocon
841ffcc50f7955cba9f9dd45a405d55928a61fec
[ "MIT" ]
null
null
null
# inout.py #coding: utf-8 import sys from solve import solve argvs=sys.argv argc=len(argvs) if argc >= 2: res=solve(argvs[1]) else: res=solve('prb.txt') print res
11.6
24
0.672414
31
174
3.774194
0.677419
0.17094
0
0
0
0
0
0
0
0
0
0.021127
0.183908
174
14
25
12.428571
0.802817
0.12069
0
0
0
0
0.046667
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b8f87e5766ca227ea2b05a40f0e262895cab53de
642
py
Python
source/pic2card/tests/base_test_class.py
sivasakthiv/AdaptiveCards
dfa4bfef70c1111e1a5cc8eed90b2f1e8d76f75c
[ "MIT" ]
null
null
null
source/pic2card/tests/base_test_class.py
sivasakthiv/AdaptiveCards
dfa4bfef70c1111e1a5cc8eed90b2f1e8d76f75c
[ "MIT" ]
null
null
null
source/pic2card/tests/base_test_class.py
sivasakthiv/AdaptiveCards
dfa4bfef70c1111e1a5cc8eed90b2f1e8d76f75c
[ "MIT" ]
1
2022-02-03T04:53:52.000Z
2022-02-03T04:53:52.000Z
import os import unittest from tests.utils import ( img_to_base64, headers, payload_empty_dict_data, payload_data_some_string, generate_base64, ) from app.api import app class BaseAPITest(unittest.TestCase): """Base test class """ def setUp(self): """Define test variables and init...
25.68
62
0.683801
84
642
4.928571
0.464286
0.07971
0.05314
0.096618
0.120773
0
0
0
0
0
0
0.018219
0.23053
642
24
63
26.75
0.819838
0.090343
0
0
1
0
0.022688
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.315789
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
b8fb1c51d5f735cb8e75b386a978f7688e1c7d36
220
py
Python
tridesclous/labelcodes.py
remi-pr/tridesclous
074f425fd40f1fb76f619f74cc024dd9817b7ee7
[ "MIT" ]
36
2016-01-27T22:27:12.000Z
2022-01-28T08:49:27.000Z
tridesclous/labelcodes.py
remi-pr/tridesclous
074f425fd40f1fb76f619f74cc024dd9817b7ee7
[ "MIT" ]
87
2015-12-14T08:16:16.000Z
2022-03-22T14:35:55.000Z
tridesclous/labelcodes.py
remi-pr/tridesclous
074f425fd40f1fb76f619f74cc024dd9817b7ee7
[ "MIT" ]
31
2015-11-10T14:37:28.000Z
2022-03-30T06:41:19.000Z
LABEL_TRASH = -1 LABEL_NOISE = -2 LABEL_ALIEN = -9 LABEL_UNCLASSIFIED = -10 LABEL_NO_WAVEFORM = -11 to_name = { -1: 'Trash', -2 : 'Noise', -9: 'Alien', -10: 'Unclassified', -11: 'No waveforms', }
11.578947
25
0.577273
29
220
4.137931
0.517241
0
0
0
0
0
0
0
0
0
0
0.084848
0.25
220
18
26
12.222222
0.642424
0
0
0
0
0
0.179724
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
770048c69f7a27d900213a804f2c47dd94bcf28c
9,052
py
Python
examples/analyze_no_mef.py
castillohair/FlowCal
455d1dd9ff882c2c932e90e648184ba9a5c32889
[ "MIT" ]
null
null
null
examples/analyze_no_mef.py
castillohair/FlowCal
455d1dd9ff882c2c932e90e648184ba9a5c32889
[ "MIT" ]
null
null
null
examples/analyze_no_mef.py
castillohair/FlowCal
455d1dd9ff882c2c932e90e648184ba9a5c32889
[ "MIT" ]
null
null
null
#!/usr/bin/python """ FlowCal Python API example, without using calibration beads data. This script is divided in two parts. Part one processes data from five cell samples, and generates plots of each one. Part two exemplifies how to use the processed cell sample data with FlowCal's plotting and statistics modules, i...
42.698113
80
0.644498
1,159
9,052
4.968939
0.335634
0.01719
0.009724
0.010939
0.053134
0
0
0
0
0
0
0.013563
0.275077
9,052
211
81
42.900474
0.864066
0.575011
0
0.051282
1
0
0.133369
0.005892
0
0
0
0
0
1
0
false
0
0.064103
0
0.064103
0.076923
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
7704f4a304a64e6a7fd9211196c398bc2b4e0d27
40,998
py
Python
bluesky_queueserver/manager/tests/test_plan_queue_ops.py
ksunden/bluesky-queueserver
49a4b22d942f5f0593dedb6afa57e0929b459df4
[ "BSD-3-Clause" ]
null
null
null
bluesky_queueserver/manager/tests/test_plan_queue_ops.py
ksunden/bluesky-queueserver
49a4b22d942f5f0593dedb6afa57e0929b459df4
[ "BSD-3-Clause" ]
null
null
null
bluesky_queueserver/manager/tests/test_plan_queue_ops.py
ksunden/bluesky-queueserver
49a4b22d942f5f0593dedb6afa57e0929b459df4
[ "BSD-3-Clause" ]
null
null
null
import asyncio import pytest import json import copy from bluesky_queueserver.manager.plan_queue_ops import PlanQueueOperations errmsg_wrong_plan_type = "Parameter 'item' should be a dictionary" @pytest.fixture def pq(): pq = PlanQueueOperations() asyncio.run(pq.start()) # Clear any pool entries asy...
35.650435
115
0.605517
5,807
40,998
4.002755
0.057345
0.056918
0.035278
0.040957
0.77065
0.720788
0.652426
0.590991
0.537386
0.491654
0
0.01097
0.246256
40,998
1,149
116
35.681462
0.741214
0.124494
0
0.57438
0
0
0.133062
0.003454
0
0
0
0
0.258953
1
0.046832
false
0
0.006887
0
0.056474
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
770a64d652b1d8b4e646de230d09337c2004fb3e
287
py
Python
ConvertCommands.py
Wilhite-r/QuadPod
5c1a927fde166bc3eddc977a3462585311611308
[ "MIT" ]
null
null
null
ConvertCommands.py
Wilhite-r/QuadPod
5c1a927fde166bc3eddc977a3462585311611308
[ "MIT" ]
null
null
null
ConvertCommands.py
Wilhite-r/QuadPod
5c1a927fde166bc3eddc977a3462585311611308
[ "MIT" ]
null
null
null
from math import pi print("Commanding Command Converter... ") def ConvertCommands(command): if (command == "Forward"): return (0.0,1.0,0.0) if (command == "Turn"): return (0.0,0.0,pi/2) if (command == "Jump"): return (0.0,0.0,0.0) return None
19.133333
41
0.560976
43
287
3.744186
0.44186
0.136646
0.130435
0.099379
0.136646
0
0
0
0
0
0
0.079812
0.25784
287
15
42
19.133333
0.676056
0
0
0
0
0
0.163763
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.6
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
770d5e4280ead2144c7843b93f767fd209c925b6
7,767
py
Python
src/applications/api/serializers.py
luisito666/M2Backend
2d7c829a1d0e26a5937622bc43c67fa58460e7a4
[ "MIT" ]
null
null
null
src/applications/api/serializers.py
luisito666/M2Backend
2d7c829a1d0e26a5937622bc43c67fa58460e7a4
[ "MIT" ]
3
2021-04-08T19:14:52.000Z
2022-03-12T01:05:15.000Z
src/applications/api/serializers.py
luisito666/M2Backend
2d7c829a1d0e26a5937622bc43c67fa58460e7a4
[ "MIT" ]
1
2020-12-25T20:34:09.000Z
2020-12-25T20:34:09.000Z
""" Serializers """ from django.utils.translation import ugettext_lazy as _ from django.core.mail import EmailMultiAlternatives from django.conf import settings from applications.authentication import authenticate from rest_framework import exceptions, serializers from .state import User from .tokens import Acce...
28.660517
86
0.636153
759
7,767
6.324111
0.299078
0.018333
0.015625
0.01
0.273958
0.265208
0.23
0.23
0.212083
0.16125
0
0.002272
0.263422
7,767
270
87
28.766667
0.836742
0.075962
0
0.324176
0
0
0.122406
0.010871
0
0
0
0
0
1
0.071429
false
0.120879
0.049451
0.005495
0.406593
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
771844fe6a1315fd6a340968109d691e369ad657
969
py
Python
fython/test/printruc/printruc_test.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
41
2016-01-21T05:14:45.000Z
2021-11-24T20:37:21.000Z
fython/test/printruc/printruc_test.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
5
2016-01-21T05:36:37.000Z
2016-08-22T19:26:51.000Z
fython/test/printruc/printruc_test.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
3
2016-01-23T04:03:44.000Z
2016-08-21T15:58:38.000Z
s = r""" .a.fy integer: x=8, var_name_without_dot=10, any_var_name=10 integer: float int vector(10) vector_content(10) char(10): variable_name='./file', string = 'abcdef' # basic print 'x {:x}' # dotted print .file 'x1 {:x}' print url(.file) 'x2 {:x}' # in variable or unit open(10, file=variable_name) p...
17.944444
61
0.653251
156
969
3.916667
0.519231
0.045827
0.045827
0.055646
0
0
0
0
0
0
0
0.0401
0.176471
969
53
62
18.283019
0.725564
0.0516
0
0
0
0
0.882225
0.109051
0
0
0
0
0
1
0
false
0
0.02439
0
0.02439
0.292683
0
0
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
77198b0a8aadc56786474d55d6a154027cb72650
8,266
py
Python
examples/monthly_budget_mover_example.py
Ressmann/starthinker
301c5cf17e382afee346871974ca2f4ae905a94a
[ "Apache-2.0" ]
138
2018-11-28T21:42:44.000Z
2022-03-30T17:26:35.000Z
examples/monthly_budget_mover_example.py
Ressmann/starthinker
301c5cf17e382afee346871974ca2f4ae905a94a
[ "Apache-2.0" ]
36
2019-02-19T18:33:20.000Z
2022-01-24T18:02:44.000Z
examples/monthly_budget_mover_example.py
Ressmann/starthinker
301c5cf17e382afee346871974ca2f4ae905a94a
[ "Apache-2.0" ]
54
2018-12-06T05:47:32.000Z
2022-02-21T22:01:01.000Z
########################################################################### # # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/l...
41.33
250
0.663199
1,062
8,266
5.03484
0.282486
0.028614
0.054049
0.029923
0.351973
0.303348
0.293997
0.293997
0.267627
0.233963
0
0.013912
0.208686
8,266
199
251
41.537688
0.803547
0.081781
0
0.211268
0
0.014085
0.478588
0.026806
0
0
0
0
0
0
null
null
0
0.042254
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
77204f2b86216c49a6b5f9881ee0a7e64589882e
2,356
py
Python
tests/test_target.py
iksteen/dpf
e0a5a8e6ef3f4f1f7e1b91ee379711f4a49cb0e6
[ "MIT" ]
133
2015-04-07T07:37:49.000Z
2022-01-12T13:34:34.000Z
tests/test_target.py
iksteen/dpf
e0a5a8e6ef3f4f1f7e1b91ee379711f4a49cb0e6
[ "MIT" ]
3
2016-04-21T12:40:21.000Z
2019-04-04T10:11:53.000Z
tests/test_target.py
iksteen/dpf
e0a5a8e6ef3f4f1f7e1b91ee379711f4a49cb0e6
[ "MIT" ]
31
2015-05-28T03:34:14.000Z
2020-06-20T08:54:02.000Z
import mock import pytest import pwny def test_default_arch_x86(): with mock.patch('platform.machine') as platform_mock: platform_mock.return_value = 'i386' assert pwny.Target().arch is pwny.Target.Arch.x86 def test_default_arch_x86_64(): with mock.patch('platform.machine') as platform_mock...
29.08642
108
0.711375
333
2,356
4.858859
0.132132
0.197775
0.173053
0.077874
0.679234
0.62979
0.575402
0.555624
0.459827
0.410383
0
0.028162
0.171053
2,356
80
109
29.45
0.800307
0
0
0.226415
0
0
0.060696
0.02674
0
0
0
0
0.207547
1
0.245283
false
0
0.056604
0
0.301887
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
7728187e92641ed8172f657a7d951e5b2d39a973
1,185
py
Python
accounting/accounting/doctype/gl_entry/test_gl_entry.py
ChillarAnand/accounting
e4665df4dce863e0703b8b733255d200aa953c1c
[ "MIT" ]
2
2021-07-20T10:11:41.000Z
2021-08-01T21:58:15.000Z
accounting/accounting/doctype/gl_entry/test_gl_entry.py
ChillarAnand/accounting
e4665df4dce863e0703b8b733255d200aa953c1c
[ "MIT" ]
1
2021-05-31T06:05:04.000Z
2021-06-02T09:31:29.000Z
accounting/accounting/doctype/gl_entry/test_gl_entry.py
ChillarAnand/accounting
e4665df4dce863e0703b8b733255d200aa953c1c
[ "MIT" ]
2
2021-07-20T10:11:41.000Z
2021-08-01T21:57:25.000Z
# Copyright (c) 2021, ac and Contributors # See license.txt import frappe import unittest from accounting.accounting.doctype.sales_invoice.test_sales_invoice import TestSalesInvoice class TestGLEntry(unittest.TestCase): def setUp(self) -> None: self.doctype = 'GL Entry' def test_gl_entries_for_sales_invoice(s...
29.625
91
0.771308
174
1,185
4.91954
0.287356
0.163551
0.11215
0.084112
0.688084
0.688084
0.688084
0.688084
0.679907
0.679907
0
0.00779
0.133333
1,185
39
92
30.384615
0.825706
0.046414
0
0.4
0
0
0.063886
0
0
0
0
0
0.24
1
0.12
false
0
0.12
0
0.28
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
772a94d8fe0a9d247191c882b51f87bc8163f2cb
12,829
py
Python
flappy-bird.py
FernandaMakiHirose/flappy-bird
0e7754b133bff1e358decf5f193db261a459ade4
[ "MIT" ]
3
2022-02-14T14:11:35.000Z
2022-03-13T14:39:31.000Z
flappy-bird.py
FernandaMakiHirose/flappy-bird
0e7754b133bff1e358decf5f193db261a459ade4
[ "MIT" ]
null
null
null
flappy-bird.py
FernandaMakiHirose/flappy-bird
0e7754b133bff1e358decf5f193db261a459ade4
[ "MIT" ]
null
null
null
# no python console digite: pip install pygame # biblioteca para criar jogos import pygame # biblioteca permite integrar o código com os arquivos do computador import os # biblioteca que gera números aleatórios no python import random TELA_LARGURA = 500 TELA_ALTURA = 800 # ygame.transform.scale2x() -> aumenta a im...
33.322078
133
0.62881
1,822
12,829
4.360593
0.204171
0.028949
0.017621
0.015859
0.212964
0.169666
0.148899
0.100944
0.090875
0.090875
0
0.016813
0.299945
12,829
384
134
33.408854
0.867832
0.395042
0
0.2
0
0
0.012276
0
0
0
0
0
0
1
0.085714
false
0.154286
0.017143
0.005714
0.188571
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
772d21caca1c2aa9a162b05727d34b58572e67fb
239
py
Python
discord/ext/timers/__init__.py
iagolirapasssos/discord-timers
a15f492df6f8ab40e1625ca04420596d408855ce
[ "MIT" ]
9
2019-10-26T22:14:59.000Z
2022-02-16T06:04:13.000Z
discord/ext/timers/__init__.py
iagolirapasssos/discord-timers
a15f492df6f8ab40e1625ca04420596d408855ce
[ "MIT" ]
null
null
null
discord/ext/timers/__init__.py
iagolirapasssos/discord-timers
a15f492df6f8ab40e1625ca04420596d408855ce
[ "MIT" ]
4
2020-06-03T04:02:45.000Z
2022-03-03T14:00:55.000Z
# -*- coding: utf-8 -*- __author__ = "Lorenzo" __copyright__ = "Copyright 2019 Lorenzo" __docformat__ = "restructuredtext en" __license__ = "MIT" __title__ = "discord-timers" __version__ = "0.1.0" from .timers import Timer, TimerManager
21.727273
40
0.728033
26
239
5.769231
0.846154
0
0
0
0
0
0
0
0
0
0
0.038835
0.138075
239
10
41
23.9
0.68932
0.087866
0
0
0
0
0.324074
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
772de628aa4cad0f4e56eb065a2f30b87ca43f8e
954
py
Python
auto_package.py
znsoooo/IDLE-Advance
cd52a2b0c7e4672884745df51a15e86fe77c2382
[ "MIT" ]
4
2021-06-09T12:18:01.000Z
2021-11-02T13:57:26.000Z
auto_package.py
znsoooo/IDLE-Advance
cd52a2b0c7e4672884745df51a15e86fe77c2382
[ "MIT" ]
null
null
null
auto_package.py
znsoooo/IDLE-Advance
cd52a2b0c7e4672884745df51a15e86fe77c2382
[ "MIT" ]
null
null
null
# TODO 增加右键菜单和拖拽启动打包 import os import glob import time import zipfile def mark(target): tt = time.strftime('.%Y%m%d_%H%M%S') base, ext = os.path.splitext(target) os.rename(target, base + tt + ext) def compress(paths, except_key=()): save_name = os.path.splitext(paths[0])[0] + time.st...
27.257143
124
0.591195
138
954
4
0.391304
0.043478
0.047101
0.050725
0.065217
0.065217
0.065217
0.065217
0
0
0
0.002817
0.255765
954
34
125
28.058824
0.774648
0.040881
0
0
0
0
0.074032
0
0
0
0
0.029412
0
1
0.086957
false
0
0.173913
0
0.26087
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7734013178a3bbdb6d1c06f43560e46759c2794d
5,297
py
Python
arraytool/documentation/other_examples/comparison_of_polarization_definitions.py
markuskreitzer/arraytool
e8d50a4a062dae4d9551daf75c808d2733b6563c
[ "CNRI-Python" ]
1
2021-07-26T14:14:58.000Z
2021-07-26T14:14:58.000Z
arraytool/documentation/other_examples/comparison_of_polarization_definitions.py
elec3647/arraytool
e8d50a4a062dae4d9551daf75c808d2733b6563c
[ "CNRI-Python" ]
null
null
null
arraytool/documentation/other_examples/comparison_of_polarization_definitions.py
elec3647/arraytool
e8d50a4a062dae4d9551daf75c808d2733b6563c
[ "CNRI-Python" ]
1
2022-03-27T01:32:47.000Z
2022-03-27T01:32:47.000Z
#! /usr/bin/env python # Author: Srinivasa Rao Zinka (srinivas . zinka [at] gmail . com) # Copyright (c) 2011 Srinivasa Rao Zinka # License: New BSD License. """ Simple script for comparing different antenna polarization definitions """ import numpy as np import matplotlib.pyplot as plt # from enthought.mayavi impo...
43.77686
81
0.371531
545
5,297
3.577982
0.33945
0.061538
0.039487
0.009231
0.242564
0.182051
0.168718
0.061538
0.050256
0.030769
0
0.058305
0.122522
5,297
120
82
44.141667
0.361231
0.679252
0
0.045455
0
0
0.048585
0.017835
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0.022727
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
77341609163094aa5e14dbd291fc7a30a8d1f4c8
1,886
py
Python
lib/structures/my_list.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
33
2021-12-15T07:11:47.000Z
2022-03-29T08:58:32.000Z
lib/structures/my_list.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
3
2021-12-15T11:39:54.000Z
2022-03-29T07:24:23.000Z
lib/structures/my_list.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch class MyList(list): def __getitem__(self, index): """support indexing using torch.Tensor.""" if isinstance(index, torch.Tensor): if isinstance(index, torch.BoolTensor): return [self[i] for i, idx in enumerate(index) if idx] el...
25.835616
70
0.556204
257
1,886
4.019455
0.198444
0.154889
0.095837
0.123911
0.636012
0.636012
0.57696
0.57696
0.57696
0.520813
0
0.014394
0.300106
1,886
72
71
26.194444
0.768182
0.027572
0
0.438596
0
0
0.076039
0
0
0
0
0
0
1
0.017544
false
0
0.035088
0
0.192982
0.45614
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
773d222bb30ccbed2e0f30066aa45d836a6862a2
290
py
Python
python/example100/13.py
claviering/code
7019d50ff2e390696bc60358d1e39d9112f332e0
[ "WTFPL" ]
1
2017-12-16T13:55:04.000Z
2017-12-16T13:55:04.000Z
python/example100/13.py
claviering/code
7019d50ff2e390696bc60358d1e39d9112f332e0
[ "WTFPL" ]
1
2021-09-03T03:00:17.000Z
2021-09-03T03:00:17.000Z
python/example100/13.py
claviering/code
7019d50ff2e390696bc60358d1e39d9112f332e0
[ "WTFPL" ]
1
2016-12-19T16:35:13.000Z
2016-12-19T16:35:13.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2016 claviering <claviering@sunn> # # Distributed under terms of the WTFPL license. for n in range(100,1000): i = n % 10 j = n / 10 % 10 k = n / 100 if n == i**3 + j**3 + k**3: print n
19.333333
47
0.548276
50
290
3.2
0.68
0.05
0
0
0
0
0
0
0
0
0
0.120192
0.282759
290
14
48
20.714286
0.644231
0.517241
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7740d8339d6c6e18590dabaf47aae13324786b7f
393
py
Python
Arena_Test.py
Robotics-Club-IIT-BHU/Vision-2.0-2020-Arena
8b9e19deaedb96173fe0dc308333247fe67432b4
[ "MIT" ]
11
2020-11-03T08:35:20.000Z
2021-01-29T10:16:07.000Z
Arena_Test.py
Robotics-Club-IIT-BHU/Vision-2.0-2020-Arena
8b9e19deaedb96173fe0dc308333247fe67432b4
[ "MIT" ]
1
2020-11-04T11:28:17.000Z
2020-11-04T11:28:17.000Z
Arena_Test.py
Robotics-Club-IIT-BHU/Vision-2.0-2020-Arena
8b9e19deaedb96173fe0dc308333247fe67432b4
[ "MIT" ]
17
2020-11-02T20:49:32.000Z
2022-02-06T14:11:48.000Z
import gym import vision_arena import time import pybullet as p import pybullet_data import cv2 if __name__=="__main__": env = gym.make("vision_arena-v0") x=0 while True: p.stepSimulation() env.move_husky(5, 5, 5, 5) if x==100: img = env.camera_feed() cv2.imw...
21.833333
59
0.600509
58
393
3.844828
0.603448
0.026906
0.026906
0
0
0
0
0
0
0
0
0.052632
0.274809
393
18
60
21.833333
0.729825
0
0
0
0
0
0.101523
0
0
0
0
0
0
1
0
false
0
0.352941
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
77444315f6bf4180969c0a6f52a378647c6f4b5c
522
py
Python
blueapps/account/backends.py
jin-cc/bastion-test
9feecbe927e5446213ab25b4da4a5eca23cf6bae
[ "Apache-2.0" ]
42
2021-06-16T12:06:03.000Z
2022-03-29T13:18:00.000Z
blueapps/account/backends.py
jin-cc/bastion-test
9feecbe927e5446213ab25b4da4a5eca23cf6bae
[ "Apache-2.0" ]
null
null
null
blueapps/account/backends.py
jin-cc/bastion-test
9feecbe927e5446213ab25b4da4a5eca23cf6bae
[ "Apache-2.0" ]
16
2021-07-13T01:17:57.000Z
2022-03-01T12:39:32.000Z
# -*- coding: utf-8 -*- from blueapps.account.conf import ConfFixture from blueapps.account.utils import load_backend if hasattr(ConfFixture, 'USER_BACKEND'): UserBackend = load_backend(ConfFixture.USER_BACKEND) if hasattr(ConfFixture, 'WEIXIN_BACKEND'): WeixinBackend = load_backend(ConfFixture.WEIXIN_BACKEND...
32.625
60
0.789272
62
522
6.403226
0.370968
0.138539
0.161209
0.27204
0
0
0
0
0
0
0
0.002151
0.109195
522
15
61
34.8
0.851613
0.04023
0
0
0
0
0.102204
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
774588453348a08606da052d97cbae7213b726a8
1,681
py
Python
openCVMiniProject.py
GroupOneSEED/github-slideshow
71254452b459d9d56e4d0a846df8370483a06ec5
[ "MIT" ]
null
null
null
openCVMiniProject.py
GroupOneSEED/github-slideshow
71254452b459d9d56e4d0a846df8370483a06ec5
[ "MIT" ]
3
2021-02-17T21:12:38.000Z
2021-02-18T17:37:54.000Z
openCVMiniProject.py
GroupOneSEED/github-slideshow
71254452b459d9d56e4d0a846df8370483a06ec5
[ "MIT" ]
null
null
null
from time import sleep from picamera import PiCamera as Camera import cv2 as cv import cv2.aruco as aruco import numpy as np camera = Camera(resolution=(1920, 1080), framerate=60) def cameraCalibration(): camera.iso = 100 sleep(2) camera.shutter_speed = camera.exposure_speed camera.exposure_mo...
34.306122
112
0.656752
211
1,681
5.165877
0.398104
0.033028
0.051376
0.055046
0.234862
0.117431
0.090826
0
0
0
0
0.053558
0.222487
1,681
48
113
35.020833
0.780413
0.042832
0
0
0
0
0.026333
0
0
0
0
0
0
0
null
null
0
0.113636
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
77462b675d2ceda744a1e0acbfe606c6dea79dda
809
py
Python
tests/test_switch/test_switchshow.py
wardy3/mdssdk
393102fab146917a3893b6aa2bd6a0449ad491c5
[ "Apache-2.0" ]
4
2020-12-13T20:02:43.000Z
2022-02-27T23:36:58.000Z
tests/test_switch/test_switchshow.py
wardy3/mdssdk
393102fab146917a3893b6aa2bd6a0449ad491c5
[ "Apache-2.0" ]
13
2020-09-23T07:30:15.000Z
2022-03-30T01:12:25.000Z
tests/test_switch/test_switchshow.py
wardy3/mdssdk
393102fab146917a3893b6aa2bd6a0449ad491c5
[ "Apache-2.0" ]
12
2020-05-11T09:33:21.000Z
2022-03-18T11:11:28.000Z
import unittest from tests.test_switch.vars import * log = logging.getLogger(__name__) class TestSwitchShow(unittest.TestCase): def __init__(self, testName, sw): super().__init__(testName) self.switch = sw def setUp(self) -> None: log.debug(self.switch.version) log.debug(sel...
26.966667
69
0.640297
105
809
4.780952
0.409524
0.095618
0.095618
0.143426
0.406375
0.406375
0.310757
0.195219
0.195219
0.195219
0
0
0.233622
809
29
70
27.896552
0.809677
0
0
0.095238
0
0
0.114957
0
0
0
0
0
0
1
0.238095
false
0.047619
0.095238
0
0.380952
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
7750bc84830b27b35b9cbeead5b50cce6a727024
1,373
py
Python
rcm/rcm_merge.py
breadcrumbbuilds/bcws-psu-research
e541ffc050807186160a6b8d7cc6ac78fc9f3ddc
[ "Apache-2.0" ]
null
null
null
rcm/rcm_merge.py
breadcrumbbuilds/bcws-psu-research
e541ffc050807186160a6b8d7cc6ac78fc9f3ddc
[ "Apache-2.0" ]
null
null
null
rcm/rcm_merge.py
breadcrumbbuilds/bcws-psu-research
e541ffc050807186160a6b8d7cc6ac78fc9f3ddc
[ "Apache-2.0" ]
null
null
null
# the -n is important on gdal_merge otherwise data gets stomped! import os sep = os.path.sep s = ['5MCP19/1/20210710/rgb.bin', '5MCP19/1/20210722/rgb.bin', '5MCP19/1/20210714/rgb.bin', '5MCP19/2/20210710/rgb.bin', '5MCP19/2/20210722/rgb.bin', '5MCP19/2/20210714/rgb.bin', '5MCP18/1/20210718...
28.020408
92
0.609614
225
1,373
3.671111
0.4
0.130751
0.079903
0.047216
0
0
0
0
0
0
0
0.200743
0.216315
1,373
48
93
28.604167
0.566915
0.130371
0
0
0
0
0.41484
0.374368
0
0
0
0
0
1
0.04878
false
0
0.04878
0.02439
0.121951
0.02439
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
775309d4dae53386d3006f2df4e808491f00d261
142
py
Python
LetterCount/LetterCount.py
SACHIN1625/LetterCount
ff5a8b9fc54510291019342c5e65aa4f711ccb85
[ "MIT" ]
null
null
null
LetterCount/LetterCount.py
SACHIN1625/LetterCount
ff5a8b9fc54510291019342c5e65aa4f711ccb85
[ "MIT" ]
null
null
null
LetterCount/LetterCount.py
SACHIN1625/LetterCount
ff5a8b9fc54510291019342c5e65aa4f711ccb85
[ "MIT" ]
null
null
null
def repetition(a,b): count=0; for i in range(len(a)): if(a[i]==b): count=count+1 return count
12.909091
27
0.443662
21
142
3
0.666667
0.190476
0
0
0
0
0
0
0
0
0
0.024096
0.415493
142
10
28
14.2
0.73494
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
77564c87a1f8feb6785a610609ff35207f2185ab
8,038
py
Python
WeChatPython/wxmsg.py
snowyxx/WechatScripts
915144c4db9affdf35db4dd1427b059c454f5662
[ "MIT" ]
3
2017-12-11T07:39:02.000Z
2021-05-31T00:15:34.000Z
WeChatPython/wxmsg.py
snowyxx/WechatScripts
915144c4db9affdf35db4dd1427b059c454f5662
[ "MIT" ]
2
2017-06-30T01:38:03.000Z
2021-06-02T00:12:02.000Z
WeChatPython/wxmsg.py
snowyxx/WechatScripts
915144c4db9affdf35db4dd1427b059c454f5662
[ "MIT" ]
2
2017-08-08T09:41:42.000Z
2017-12-11T07:39:08.000Z
#!/usr/bin/evn python #coding:utf-8 import sys reload(sys) sys.setdefaultencoding("utf-8") from Config import wxLogger from Config import CORPID from Config import SECRET from Config import TOUSER from Config import PARTYID from Config import TAGID from Config import AGENTID from Config import ACCOUNTTYPE from Config i...
42.305263
327
0.579497
905
8,038
5.069613
0.267403
0.055144
0.041848
0.018309
0.299477
0.235179
0.211421
0.192023
0.143636
0.080863
0
0.025261
0.285892
8,038
190
328
42.305263
0.774042
0.04852
0
0.253247
0
0.032468
0.189374
0.008734
0
0
0
0
0
0
null
null
0.006494
0.11039
null
null
0.019481
0
0
0
null
0
0
0
0
0
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
77577f687de054c774d314b0148b049032b31837
184,340
py
Python
test/onnx/test_pytorch_onnx_onnxruntime.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
206
2020-11-28T22:56:38.000Z
2022-03-27T02:33:04.000Z
test/onnx/test_pytorch_onnx_onnxruntime.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
19
2020-12-09T23:13:14.000Z
2022-01-24T23:24:08.000Z
test/onnx/test_pytorch_onnx_onnxruntime.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
28
2020-11-29T15:25:12.000Z
2022-01-20T02:16:27.000Z
import unittest import onnxruntime # noqa import torch import numpy as np import io import itertools import copy from torch.nn.utils import rnn as rnn_utils from model_defs.lstm_flattening_result import LstmFlatteningResult from model_defs.rnn_model_with_packed_sequence import RnnModelWithPackedSequence from test_py...
38.205181
131
0.573722
22,921
184,340
4.45587
0.044806
0.030774
0.043943
0.042611
0.76464
0.714275
0.667306
0.626399
0.593295
0.552495
0
0.036043
0.307052
184,340
4,824
132
38.213101
0.763508
0.037686
0
0.543781
0
0
0.009919
0.002449
0
0
0
0.000207
0.003155
1
0.192217
false
0.00263
0.006837
0.058375
0.379437
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7759d2666f1aa5f048393eba4c23266aea3e8bd9
342
py
Python
atcoder/abc179/B.py
Siddhant-K-code/Competitive-Programing-Submissions
336d73bb1164a85ed247898fa040f44b0dbcc431
[ "Apache-2.0" ]
2
2020-12-24T14:06:07.000Z
2021-02-21T20:07:11.000Z
atcoder/abc179/B.py
Siddhant-K-code/Competitive-Programing-Submissions
336d73bb1164a85ed247898fa040f44b0dbcc431
[ "Apache-2.0" ]
null
null
null
atcoder/abc179/B.py
Siddhant-K-code/Competitive-Programing-Submissions
336d73bb1164a85ed247898fa040f44b0dbcc431
[ "Apache-2.0" ]
4
2021-04-11T15:11:28.000Z
2021-06-12T18:30:24.000Z
n = int(input()) xy = [map(int, input().split()) for _ in range(n)] x, y = [list(i) for i in zip(*xy)] count = 0 buf = 0 for xi, yi in zip(x, y): if xi == yi: buf += 1 else: if buf > count: count = buf buf = 0 if buf > count: count = buf if count >= 3: print('Yes')...
16.285714
50
0.473684
58
342
2.775862
0.448276
0.099379
0.124224
0.186335
0.223602
0
0
0
0
0
0
0.022624
0.353801
342
21
51
16.285714
0.705882
0
0
0.444444
0
0
0.014577
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
775cec5ac0e56645d19f6877e7dde59c1b6abad8
882
py
Python
setup.py
kyungjunleeme/azure_blob_check
8dccf2f3b716d29517996ab7f13853d143ea496d
[ "Apache-2.0" ]
1
2021-02-02T02:25:42.000Z
2021-02-02T02:25:42.000Z
setup.py
kyungjunleeme/azure_blob_check
8dccf2f3b716d29517996ab7f13853d143ea496d
[ "Apache-2.0" ]
null
null
null
setup.py
kyungjunleeme/azure_blob_check
8dccf2f3b716d29517996ab7f13853d143ea496d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='azure_blob_check', version='2.0', description='azure blob filelist check', author='Kyung Jun Lee', author_email='kyungjunlee.me@gmail.com', url='https://github.com/kyungjunleeme/azure_blob_check', download_url...
33.923077
86
0.660998
106
882
5.301887
0.556604
0.096085
0.099644
0.13879
0.156584
0.156584
0.156584
0.156584
0
0
0
0.015048
0.171202
882
25
87
35.28
0.753762
0.02381
0
0
0
0
0.506403
0.077998
0
0
0
0
0
1
0
true
0
0.045455
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
91f3f29a0ad8acfb65d5e6dcd06badfb22c0f180
755
py
Python
test/tet_train.py
luoyudong593/Keras-TextClassification
b3e6966b5dbc7f425522074e2043fbff0614de84
[ "MIT" ]
1,339
2019-06-13T15:34:46.000Z
2022-03-31T11:24:09.000Z
test/tet_train.py
zhangshixing-chn/Keras-TextClassification
640e3f44f90d9d8046546f7e1a93a29ebe5c8d30
[ "MIT" ]
75
2019-06-25T06:38:27.000Z
2022-03-25T06:48:19.000Z
test/tet_train.py
zhangshixing-chn/Keras-TextClassification
640e3f44f90d9d8046546f7e1a93a29ebe5c8d30
[ "MIT" ]
400
2019-06-17T03:00:48.000Z
2022-03-23T07:00:53.000Z
# !/usr/bin/python # -*- coding: utf-8 -*- # @time : 2019/11/12 16:45 # @author : Mo # @function: from keras_textclassification import train train(graph='TextCNN', # 必填, 算法名, 可选"ALBERT","BERT","XLNET","FASTTEXT","TEXTCNN","CHARCNN", # "TEXTRNN","RCNN","DCNN","DPCNN","VDCNN","CRNN","DEEPMOJI...
44.411765
99
0.621192
89
755
5.179775
0.752809
0.034707
0.043384
0.073753
0.212581
0.212581
0.212581
0.212581
0
0
0
0.026801
0.209272
755
16
100
47.1875
0.745394
0.643709
0
0
0
0
0.027451
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
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
91f9a0f7fb3536125658f874d6067338e5f35957
573
py
Python
algorithms/quick_sort.py
mserevko/sorting_algorithms
8bdccbd5ecb20762925ed4e986a3d16cf77c6ffe
[ "MIT" ]
null
null
null
algorithms/quick_sort.py
mserevko/sorting_algorithms
8bdccbd5ecb20762925ed4e986a3d16cf77c6ffe
[ "MIT" ]
null
null
null
algorithms/quick_sort.py
mserevko/sorting_algorithms
8bdccbd5ecb20762925ed4e986a3d16cf77c6ffe
[ "MIT" ]
null
null
null
""" Quick Sort is one of the most efficient sorting algorithms. It is based on the splitting of the input list into smaller lists. Quick Sort works better with smaller data sets in comparison to merge sort. """ import random rand_list = [random.randint(1, 100) for i in range(0,8)] def swap(arr: list, i: int, k: int)...
23.875
75
0.65096
98
573
3.795918
0.530612
0.048387
0.069892
0.080645
0.123656
0.123656
0
0
0
0
0
0.013857
0.244328
573
23
76
24.913043
0.845266
0.633508
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
620660a2b966dc6d228878d9275d4f968064378b
1,865
py
Python
com.toroam.appengine/views_community.py
yafraorg/yafra-toroam
6e3cbbeeab854df61ddfddfea556e224161ba69d
[ "Apache-2.0" ]
null
null
null
com.toroam.appengine/views_community.py
yafraorg/yafra-toroam
6e3cbbeeab854df61ddfddfea556e224161ba69d
[ "Apache-2.0" ]
null
null
null
com.toroam.appengine/views_community.py
yafraorg/yafra-toroam
6e3cbbeeab854df61ddfddfea556e224161ba69d
[ "Apache-2.0" ]
null
null
null
import os import webapp2 import logging import utils from google.appengine.ext import db from google.appengine.api import users from gpx import SaveToDB from models import GPXheader, ToroamUsers from usermgmt import UserMgmt from views import BaseHandler class Search(BaseHandler): def post(self): searchtxt...
36.568627
96
0.656836
215
1,865
5.646512
0.362791
0.045305
0.04201
0.049423
0.233114
0.233114
0.233114
0.233114
0.233114
0.16145
0
0.00417
0.228418
1,865
50
97
37.3
0.839472
0.046649
0
0.272727
0
0
0.138998
0
0
0
0
0.02
0
1
0.090909
false
0
0.227273
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
1
0
0
0
0
0
0
0
0
0
0
1
620811b88e2492d1d06bbfcb801c2afda4b64ecd
834
py
Python
demo/helper.py
scottx611x/napkin
318363364abea483173813d5212772ee9a641fe8
[ "MIT" ]
190
2019-02-10T09:58:00.000Z
2022-03-31T21:14:11.000Z
demo/helper.py
scottx611x/napkin
318363364abea483173813d5212772ee9a641fe8
[ "MIT" ]
9
2020-03-07T12:52:24.000Z
2022-03-25T13:37:25.000Z
demo/helper.py
scottx611x/napkin
318363364abea483173813d5212772ee9a641fe8
[ "MIT" ]
7
2019-07-10T08:17:45.000Z
2021-06-17T04:22:28.000Z
import inspect import os import napkin def generate_markdown_file(title, src_path): name, _ = os.path.splitext(os.path.basename(src_path)) src_file = name + '.py' napkin.generate(output_format='plantuml_png', output_dir='../images') text = """# {title} Following examples are auto-generated by [demo/{s...
28.758621
73
0.651079
113
834
4.610619
0.469027
0.067179
0.042226
0
0
0
0
0
0
0
0
0.002886
0.169065
834
28
74
29.785714
0.748918
0
0
0
1
0
0.266187
0.073141
0
0
0
0
0
1
0.041667
false
0
0.125
0
0.166667
0.041667
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
6209364216fa993a7ab72e7901f6379437d51e1d
23,131
py
Python
bin/tlinks.py
ddierschow/cab984
108ec0e4358690719ca2dabe0149021cfc7acd93
[ "MIT" ]
null
null
null
bin/tlinks.py
ddierschow/cab984
108ec0e4358690719ca2dabe0149021cfc7acd93
[ "MIT" ]
null
null
null
bin/tlinks.py
ddierschow/cab984
108ec0e4358690719ca2dabe0149021cfc7acd93
[ "MIT" ]
null
null
null
#!/usr/local/bin/python import os, sys, urllib2 import basics import config import mbdata import useful # -- links # main entry point for toylinks @basics.web_page def links(pif): pif.render.print_html() ostr = '' pif.render.hierarchy_append('/', 'Home') pif.render.hierarchy_append('/cgi-bin/links.c...
38.233058
209
0.611863
3,215
23,131
4.243546
0.148056
0.027707
0.025654
0.022869
0.391923
0.301547
0.251631
0.200176
0.164773
0.132302
0
0.008103
0.205006
23,131
604
210
38.296358
0.733808
0.06688
0
0.145161
0
0.012097
0.216421
0.004038
0
0
0
0
0
0
null
null
0.004032
0.010081
null
null
0.024194
0
0
0
null
0
0
0
0
0
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
620ce275b80be65353a4411ab4978dacdc5e9fba
1,075
py
Python
scorers/classification/binary/false_positive_count.py
theaiacademy/driverlessai-recipes
4530fb52c65a1c9bfd65abf95b77f910f8df51a4
[ "Apache-2.0" ]
null
null
null
scorers/classification/binary/false_positive_count.py
theaiacademy/driverlessai-recipes
4530fb52c65a1c9bfd65abf95b77f910f8df51a4
[ "Apache-2.0" ]
null
null
null
scorers/classification/binary/false_positive_count.py
theaiacademy/driverlessai-recipes
4530fb52c65a1c9bfd65abf95b77f910f8df51a4
[ "Apache-2.0" ]
null
null
null
"""Optimizes for specific Confusion Matrix Values: `FP` - only recommended if threshold is adjusted""" import typing import numpy as np from h2oaicore.metrics import CustomScorer from sklearn.preprocessing import LabelEncoder from sklearn.metrics import confusion_matrix class CMFalsePositive(CustomScorer): _thres...
37.068966
104
0.682791
125
1,075
5.752
0.568
0.038943
0.044506
0.058414
0.069541
0
0
0
0
0
0
0.004884
0.23814
1,075
28
105
38.392857
0.873016
0.165581
0
0
0
0
0.032548
0
0
0
0
0
0
1
0.041667
false
0
0.208333
0
0.583333
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
620d67a890680268a3f2bb7d6f26195cede1cf6d
620
py
Python
backend/balance/migrations/0003_auto_20190827_1917.py
Kodeworks/budsjetteringssystem
30b8c2ef0522847c316e466d299a59470e73f712
[ "MIT" ]
6
2019-06-14T08:25:49.000Z
2019-09-18T18:38:04.000Z
backend/balance/migrations/0003_auto_20190827_1917.py
Kodeworks/liquidator-frontend
30b8c2ef0522847c316e466d299a59470e73f712
[ "MIT" ]
113
2019-06-13T09:09:42.000Z
2019-09-21T16:43:49.000Z
backend/balance/migrations/0003_auto_20190827_1917.py
Kodeworks/budsjetteringssystem
30b8c2ef0522847c316e466d299a59470e73f712
[ "MIT" ]
2
2019-10-21T18:07:01.000Z
2019-12-08T07:11:40.000Z
# Generated by Django 2.2.4 on 2019-08-27 17:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('balance', '0002_auto_20190627_1503'), ] operations = [ migrations.AlterField( model_name='bankbalance', name='date',...
25.833333
89
0.606452
65
620
5.676923
0.630769
0.108401
0.135501
0.157182
0.238482
0.238482
0
0
0
0
0
0.070136
0.287097
620
23
90
26.956522
0.764706
0.072581
0
0.352941
1
0
0.219895
0.04014
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
620e28b9835219a28fd9f58a8a21747d3c95f17d
2,266
py
Python
tests/framework/test_loaders.py
mrbermell/ffai
b035ccc1413744211c95bc85a33c084b6d75f92e
[ "Apache-2.0" ]
2
2020-11-08T21:27:21.000Z
2020-12-23T15:27:34.000Z
tests/framework/test_loaders.py
ctelloordonez/botbowl
1289142264f1cc66d0071bf584d8e3f94589f1e4
[ "Apache-2.0" ]
12
2020-12-29T15:29:08.000Z
2021-10-04T20:34:59.000Z
tests/framework/test_loaders.py
mrbermell/ffai
b035ccc1413744211c95bc85a33c084b6d75f92e
[ "Apache-2.0" ]
1
2022-03-18T10:02:28.000Z
2022-03-18T10:02:28.000Z
import pytest from botbowl.core.load import * def test_rule_loader(): rulesetBB2016 = load_rule_set("BB2016") rulesetLRB5Experimental = load_rule_set("LRB5-Experimental") assert rulesetBB2016.name == "BB2016" assert rulesetLRB5Experimental.name == "LRB5-Experimental" assert len(rulesetBB2016.races...
36.548387
74
0.728597
322
2,266
4.822981
0.208075
0.086929
0.069543
0.038635
0.414037
0.159691
0.030908
0
0
0
0
0.058017
0.163283
2,266
61
75
37.147541
0.761076
0.01677
0
0.040816
0
0
0.097978
0
0
0
0
0
0.530612
1
0.102041
false
0
0.040816
0
0.142857
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
621cde1fb89b40f013dc5957333ec94209f79166
335
py
Python
UCourse/resources/migrations/0004_auto_20200906_1020.py
Natsu1270/UCourse
e8c814d91e54f5f51e4a0fa2df177ebb59544dc2
[ "MIT" ]
1
2020-08-31T22:40:27.000Z
2020-08-31T22:40:27.000Z
UCourse/resources/migrations/0004_auto_20200906_1020.py
Natsu1270/UCourse
e8c814d91e54f5f51e4a0fa2df177ebb59544dc2
[ "MIT" ]
13
2020-08-05T16:17:09.000Z
2022-03-12T00:18:42.000Z
UCourse/resources/migrations/0004_auto_20200906_1020.py
Natsu1270/UCourse
e8c814d91e54f5f51e4a0fa2df177ebb59544dc2
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-09-06 03:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('resources', '0003_remove_resource_code'), ] operations = [ migrations.AlterModelTable( name='resource', table='Resource', ...
18.611111
51
0.6
34
335
5.823529
0.823529
0
0
0
0
0
0
0
0
0
0
0.079832
0.289552
335
17
52
19.705882
0.752101
0.134328
0
0
1
0
0.173611
0.086806
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
621fda847aaed9ab9ccd2f9780a6dac6fb95958b
469
py
Python
src/cuda_slic/debug/__main__.py
abonawas/cuda-slic
5264b81b12fa3049ccb9cab59257740422a13d21
[ "Apache-2.0" ]
6
2020-10-11T20:58:43.000Z
2022-03-14T15:19:05.000Z
src/cuda_slic/debug/__main__.py
abonawas/cuda-slic
5264b81b12fa3049ccb9cab59257740422a13d21
[ "Apache-2.0" ]
1
2020-09-19T11:08:42.000Z
2020-09-26T20:14:30.000Z
src/cuda_slic/debug/__main__.py
abonawas/cuda-slic
5264b81b12fa3049ccb9cab59257740422a13d21
[ "Apache-2.0" ]
1
2021-02-28T11:05:45.000Z
2021-02-28T11:05:45.000Z
import numpy as np import pycuda from skimage import color, data, filters from ..slic import slic def test_slic_grayscale_runs(n=200, sp_size=5): blob = data.binary_blobs(length=n, n_dim=3, seed=2) blob = np.float32(blob) n_segments = n ** 3 / sp_size ** 3 labels = slic(blob, n_segments=n_segments, ...
23.45
61
0.714286
74
469
4.216216
0.527027
0.086538
0.108974
0.134615
0.160256
0.160256
0
0
0
0
0
0.036176
0.17484
469
19
62
24.684211
0.770026
0
0
0
0
0
0.017058
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6227700c69c1b0e62a1f179944319a2d548d2706
500
py
Python
backend/blog/admin.py
saifxd7/WeBlog
6e48c6b7df665d8ab1bd80cf73b822951ac96ade
[ "MIT" ]
null
null
null
backend/blog/admin.py
saifxd7/WeBlog
6e48c6b7df665d8ab1bd80cf73b822951ac96ade
[ "MIT" ]
null
null
null
backend/blog/admin.py
saifxd7/WeBlog
6e48c6b7df665d8ab1bd80cf73b822951ac96ade
[ "MIT" ]
null
null
null
from django.contrib import admin from django_summernote.admin import SummernoteModelAdmin from .models import BlogPost # Apply summernote to all TextField in model. class BlogPostAdmin(SummernoteModelAdmin): # instead of ModelAdmin exclude = ('slug', ) list_display = ('id', 'title', 'category', 'date_created'...
35.714286
67
0.734
57
500
6.280702
0.666667
0.055866
0
0
0
0
0
0
0
0
0
0.004739
0.156
500
14
68
35.714286
0.843602
0.13
0
0
0
0
0.115473
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.909091
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
6227e2043247d91f59f6d94b7edbf9b2cd06fa2b
394
py
Python
imagenet/getlogger.py
wizard1203/examples-master
14d152ea2bf2fe07bb54b0e287f09a2bef2d37e1
[ "BSD-3-Clause" ]
null
null
null
imagenet/getlogger.py
wizard1203/examples-master
14d152ea2bf2fe07bb54b0e287f09a2bef2d37e1
[ "BSD-3-Clause" ]
null
null
null
imagenet/getlogger.py
wizard1203/examples-master
14d152ea2bf2fe07bb54b0e287f09a2bef2d37e1
[ "BSD-3-Clause" ]
null
null
null
import logging def get_logger(logger_name, log_file, level=logging.INFO): l = logging.getLogger(logger_name) formatter = logging.Formatter('%(asctime)s : %(message)s', "%Y-%m-%d %H:%M:%S") fileHandler = logging.FileHandler(log_file, mode='w') fileHandler.setFormatter(formatter) l.setLevel(level) ...
30.307692
83
0.708122
51
394
5.352941
0.529412
0.10989
0.161172
0.190476
0
0
0
0
0
0
0
0
0.147208
394
12
84
32.833333
0.8125
0
0
0
0
0
0.109137
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6228fcd1d0ac8191bb1c8623c53c45d0bf6c01e2
8,515
py
Python
tests/test_manager.py
X0rg/afancontrol
91fd8b3bf1fa759651b991ffc5e0ae551e6e4907
[ "MIT" ]
1
2021-07-28T21:16:43.000Z
2021-07-28T21:16:43.000Z
tests/test_manager.py
X0rg/afancontrol
91fd8b3bf1fa759651b991ffc5e0ae551e6e4907
[ "MIT" ]
null
null
null
tests/test_manager.py
X0rg/afancontrol
91fd8b3bf1fa759651b991ffc5e0ae551e6e4907
[ "MIT" ]
null
null
null
from contextlib import ExitStack from unittest.mock import MagicMock, patch, sentinel import pytest import afancontrol.manager from afancontrol.config import ( Actions, AlertCommands, FanName, FanSpeedModifier, FansTempsRelation, MappingName, TempName, TriggerConfig, ) from afancontrol...
34.334677
88
0.47798
706
8,515
5.613314
0.13881
0.059046
0.054504
0.059046
0.705778
0.679283
0.671966
0.614434
0.614434
0.614434
0
0.0313
0.41468
8,515
247
89
34.473684
0.763844
0.003758
0
0.565217
0
0
0.023349
0
0
0
0
0
0.030435
1
0.013043
false
0
0.047826
0.004348
0.065217
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
6230899c7ad886343b2ad0d9e921d2373c140093
831
py
Python
src/routines/base_routine.py
Impossibum/SARPBC
725dcf9da15673c3ebfbeab191e16ee212a89204
[ "MIT" ]
1
2021-08-23T20:47:58.000Z
2021-08-23T20:47:58.000Z
src/routines/base_routine.py
Impossibum/SARPBC
725dcf9da15673c3ebfbeab191e16ee212a89204
[ "MIT" ]
null
null
null
src/routines/base_routine.py
Impossibum/SARPBC
725dcf9da15673c3ebfbeab191e16ee212a89204
[ "MIT" ]
null
null
null
from rlbot.utils.structures.bot_input_struct import PlayerInput from rlbot.utils.structures.game_data_struct import GameTickPacket import utils.car as car_module import utils.game_data as game_data # Medium-long term task which may include maneuvers or even other routines! class BaseRoutine: def __init__(self, ca...
34.625
76
0.691937
109
831
5.155963
0.431193
0.05694
0.049822
0.085409
0
0
0
0
0
0
0
0
0.23586
831
23
77
36.130435
0.885039
0.087846
0
0
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0.210526
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
0
0
0
0
0
1
0
0
1
62351a8e0bee96b149e196486307f3929e7ed393
1,649
py
Python
AuthServices/tests/registration_test.py
airavata-courses/Team-Rocket
8c91526bd1a97fcee59705ccfb3e10bd39700e50
[ "Apache-2.0" ]
1
2020-06-05T18:46:01.000Z
2020-06-05T18:46:01.000Z
AuthServices/tests/registration_test.py
aravindparappil46/Team-Rocket
8c91526bd1a97fcee59705ccfb3e10bd39700e50
[ "Apache-2.0" ]
146
2019-01-26T22:13:19.000Z
2022-02-12T08:20:25.000Z
AuthServices/tests/registration_test.py
aravindparappil46/Team-Rocket
8c91526bd1a97fcee59705ccfb3e10bd39700e50
[ "Apache-2.0" ]
2
2019-05-04T03:33:26.000Z
2019-09-07T02:43:11.000Z
#importing service to test the registration method from Services.service import Service #importing required libraries for unittesting import unittest # Tests to run registration method class RegistrationTest(unittest.TestCase): # Test whether the register is working with positive scenario def test_registrati...
42.282051
107
0.693754
186
1,649
6.026882
0.403226
0.029438
0.050847
0.061552
0.529884
0.529884
0.529884
0.498662
0.498662
0.427297
0
0.017991
0.191025
1,649
38
108
43.394737
0.822339
0.209218
0
0.461538
0
0
0.283513
0
0
0
0
0
0.230769
1
0.115385
false
0.192308
0.076923
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
62371e8362acd1bfeb760ca8b391c282dca18b48
13,989
py
Python
cloudify_deployment_proxy/tests/test_execute.py
jrzeszutek/cloudify-utilities-plugin
d62fc98e9164fd836d8f22a757b5a58ca119f97a
[ "Apache-2.0" ]
8
2017-06-14T14:59:17.000Z
2021-09-15T05:44:05.000Z
cloudify_deployment_proxy/tests/test_execute.py
jrzeszutek/cloudify-utilities-plugin
d62fc98e9164fd836d8f22a757b5a58ca119f97a
[ "Apache-2.0" ]
75
2017-04-20T20:42:26.000Z
2022-02-16T11:03:02.000Z
cloudify_deployment_proxy/tests/test_execute.py
jrzeszutek/cloudify-utilities-plugin
d62fc98e9164fd836d8f22a757b5a58ca119f97a
[ "Apache-2.0" ]
21
2017-08-13T13:19:58.000Z
2021-12-09T14:41:42.000Z
# Copyright (c) 2017-2018 Cloudify Platform Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
41.144118
79
0.600829
1,426
13,989
5.526648
0.135344
0.049486
0.036163
0.033752
0.736582
0.715011
0.65512
0.623906
0.604999
0.585966
0
0.007163
0.321395
13,989
339
80
41.265487
0.823027
0.073558
0
0.613027
0
0
0.140251
0.084429
0
0
0
0
0.045977
1
0.061303
false
0
0.038314
0
0.111111
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
62377b9ea7c8295ca51c82f411156fe24fb60564
6,438
py
Python
allsky/model_list_allsky_serial.py
philbull/SinglePixel
0cd3dba84a0a36ab672707154d3cf8dde903872b
[ "MIT" ]
null
null
null
allsky/model_list_allsky_serial.py
philbull/SinglePixel
0cd3dba84a0a36ab672707154d3cf8dde903872b
[ "MIT" ]
null
null
null
allsky/model_list_allsky_serial.py
philbull/SinglePixel
0cd3dba84a0a36ab672707154d3cf8dde903872b
[ "MIT" ]
null
null
null
import models import model_values_allsky_serial from utils import rj2cmb # Define input models and their amplitudes/parameters ## Naming conventions follow those in model_list.py ## CMB model def cmb_model( CMB_I = 50, CMB_Q = 0.6, CMB_U = 0.6 ): cmb_model = models.CMB( amp_I = CMB_I, amp_Q = CMB_Q, amp_U = CMB_U...
46.992701
139
0.534327
921
6,438
3.434311
0.166124
0.064496
0.018969
0.050585
0.22289
0.22289
0.188113
0.174518
0.174518
0.174518
0
0.069151
0.337372
6,438
136
140
47.338235
0.672293
0.10205
0
0.098039
0
0
0.06881
0
0
0
0
0
0
0
null
null
0
0.029412
null
null
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
1
0
0
0
0
0
0
0
0
1
6242474447ce0d60548535d3478479418e111873
21,356
py
Python
client/software/resources/modules/MU_Musica.py
MU-Software/Project_Musica_for_Contest
c1f63f381b167d6bfe701a36e998727cf4ed3bec
[ "MIT" ]
null
null
null
client/software/resources/modules/MU_Musica.py
MU-Software/Project_Musica_for_Contest
c1f63f381b167d6bfe701a36e998727cf4ed3bec
[ "MIT" ]
null
null
null
client/software/resources/modules/MU_Musica.py
MU-Software/Project_Musica_for_Contest
c1f63f381b167d6bfe701a36e998727cf4ed3bec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #Project Musica main definition module import json try: from . import * except: pass from __init__ import * from MU_GUI import * COMBO_TEXT = \ """\ COMBO {0}\ """ def randomID(size=6, chars=string.ascii_uppercase + string.digits): return ''.join(random.choice(chars) fo...
37.865248
142
0.708653
3,255
21,356
4.437788
0.125653
0.03946
0.026653
0.026168
0.416961
0.341295
0.271582
0.217722
0.194116
0.179232
0
0.031265
0.137338
21,356
564
143
37.865248
0.752809
0.024771
0
0.207739
0
0
0.075136
0.01698
0
0
0
0
0
0
null
null
0.014257
0.008147
null
null
0.00611
0
0
0
null
0
0
0
0
0
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
6247eca52f794ed2ec00decc8e41d70c1bc250ab
483
py
Python
tests/test_labeling/test_bi_lstm_crf_model.py
Adline125/Kashgari
a54bc923e6edba87c9f7b7eafe9acd74e3ea463b
[ "Apache-2.0" ]
1
2020-07-06T05:16:45.000Z
2020-07-06T05:16:45.000Z
tests/test_labeling/test_bi_lstm_crf_model.py
Adline125/Kashgari
a54bc923e6edba87c9f7b7eafe9acd74e3ea463b
[ "Apache-2.0" ]
null
null
null
tests/test_labeling/test_bi_lstm_crf_model.py
Adline125/Kashgari
a54bc923e6edba87c9f7b7eafe9acd74e3ea463b
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # author: BrikerMan # contact: eliyar917@gmail.com # blog: https://eliyar.biz # file: test_bi_lstm_crf_model.py # time: 6:19 下午 import unittest import tests.test_labeling.test_bi_lstm_model as base from kashgari.tasks.labeling import BiLSTM_CRF_Model class TestBiLSTM_CRF_Model(base.TestBiLSTM_Mo...
18.576923
53
0.743271
70
483
4.757143
0.685714
0.096096
0.06006
0
0
0
0
0
0
0
0
0.01995
0.169772
483
25
54
19.32
0.810474
0.275362
0
0
0
0
0.023324
0
0
0
0
0
0
1
0.1
false
0.1
0.3
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
624f0b7ca2012265dbd007f2cace449f52c2947c
864
py
Python
lilutils.py
UIKit0/featherweight.light
d248af772640d66d1484096904d071577021b5f7
[ "Apache-2.0" ]
11
2015-09-12T20:27:36.000Z
2019-10-06T20:14:48.000Z
lilutils.py
UIKit0/featherweight.light
d248af772640d66d1484096904d071577021b5f7
[ "Apache-2.0" ]
null
null
null
lilutils.py
UIKit0/featherweight.light
d248af772640d66d1484096904d071577021b5f7
[ "Apache-2.0" ]
2
2017-06-30T06:12:53.000Z
2020-06-05T11:46:04.000Z
# Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
36
114
0.746528
137
864
4.70073
0.686131
0.093168
0.040373
0.049689
0
0
0
0
0
0
0
0.019364
0.163194
864
23
115
37.565217
0.871369
0.832176
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
624f3a879ae06cdc9728066272efd7a4724200ba
2,651
py
Python
tests/modeltests/get_latest/models.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
23
2015-01-26T12:16:59.000Z
2022-02-10T10:58:40.000Z
tests/modeltests/get_latest/models.py
joetyson/django
c3699190186561d5c216b2a77ecbfc487d42a734
[ "BSD-3-Clause" ]
1
2021-08-20T19:02:08.000Z
2021-08-20T19:02:08.000Z
tests/modeltests/get_latest/models.py
joetyson/django
c3699190186561d5c216b2a77ecbfc487d42a734
[ "BSD-3-Clause" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
""" 8. get_latest_by Models can have a ``get_latest_by`` attribute, which should be set to the name of a ``DateField`` or ``DateTimeField``. If ``get_latest_by`` exists, the model's manager will get a ``latest()`` method, which will return the latest object in the database according to that field. "Latest" means "havi...
33.1375
105
0.705017
386
2,651
4.715026
0.336788
0.065934
0.07033
0.056044
0.245055
0.118681
0.118681
0.048352
0.048352
0.048352
0
0.047471
0.149755
2,651
79
106
33.556962
0.759982
0.154659
0
0.181818
0
0.090909
0.789969
0.283475
0
0
0
0
0.018182
1
0.036364
false
0.036364
0.036364
0.036364
0.254545
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
62532376ca9d681b89dffda250d99342639cf501
1,106
py
Python
app.py
pschfr/kept
3dca32528895a0607c5b51fb98e588bf6b2e4354
[ "MIT" ]
1
2019-03-28T23:45:32.000Z
2019-03-28T23:45:32.000Z
app.py
pschfr/kept
3dca32528895a0607c5b51fb98e588bf6b2e4354
[ "MIT" ]
null
null
null
app.py
pschfr/kept
3dca32528895a0607c5b51fb98e588bf6b2e4354
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # import system modules import os import json # import and initiate dotenv from dotenv import load_dotenv load_dotenv() # import and initiate the Google Keep API import gkeepapi keep = gkeepapi.Keep() # attempt to load note cache from file cache_exists = os.path.isfile('keep_cache.json') # i...
23.041667
94
0.72604
180
1,106
4.361111
0.394444
0.040764
0.071338
0.038217
0.201274
0.152866
0.152866
0.152866
0.152866
0.152866
0
0.001072
0.15642
1,106
47
95
23.531915
0.8403
0.371609
0
0
0
0
0.157585
0
0
0
0
0
0
1
0
false
0.090909
0.181818
0
0.181818
0.045455
0
0
0
null
0
0
0
0
0
0
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
626703100081c4f459e5a7e21d505ee3e267000e
1,169
py
Python
Algorithms/Misc/ManacherPalindrome.py
sshh12/SchoolCode
2b16f0e15d325e01194ce0388bf87eb813ed43e8
[ "MIT" ]
5
2017-09-26T19:36:51.000Z
2020-10-01T16:59:07.000Z
Algorithms/Misc/ManacherPalindrome.py
sshh12/SchoolCode
2b16f0e15d325e01194ce0388bf87eb813ed43e8
[ "MIT" ]
18
2017-07-16T20:26:50.000Z
2018-10-05T20:15:24.000Z
Algorithms/Misc/ManacherPalindrome.py
sshh12/SchoolCode
2b16f0e15d325e01194ce0388bf87eb813ed43e8
[ "MIT" ]
1
2019-04-22T17:38:46.000Z
2019-04-22T17:38:46.000Z
# Based on: https://articles.leetcode.com/longest-palindromic-substring-part-ii/ def _process(s): alt_chars = ['$', '#'] for char in s: alt_chars.extend([char, '#']) alt_chars += ['@'] return alt_chars def _run_manacher(alt_chars): palin_table = [0] * len(alt_chars) center, right...
21.254545
89
0.587682
160
1,169
4.04375
0.2625
0.200927
0.136012
0.074189
0.114374
0.114374
0.114374
0
0
0
0
0.017564
0.269461
1,169
54
90
21.648148
0.740047
0.066724
0
0
0
0
0.03214
0.02112
0
0
0
0
0
1
0.133333
false
0
0
0
0.233333
0.033333
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
6269a461b091ef949bc0bd9f8b386044006e1e4b
4,327
py
Python
sdk/python/pulumi_cloudflare/account_member.py
vijayraavi/pulumi-cloudflare
ba61514d650fc7a5a2667147519de213c07344b8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_cloudflare/account_member.py
vijayraavi/pulumi-cloudflare
ba61514d650fc7a5a2667147519de213c07344b8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_cloudflare/account_member.py
vijayraavi/pulumi-cloudflare
ba61514d650fc7a5a2667147519de213c07344b8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from . import utilities, tables class Account...
49.735632
191
0.687543
566
4,327
5.0053
0.273852
0.059301
0.022591
0.018002
0.505824
0.435934
0.420402
0.390046
0.341334
0.341334
0
0.000304
0.238965
4,327
86
192
50.313953
0.860006
0.361451
0
0.041667
1
0
0.175973
0.018613
0
0
0
0
0
1
0.083333
false
0.020833
0.125
0.041667
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
626d9efb10162dc87a6c34cf81b9e2b69faf0f1c
762
py
Python
Lutece-VJudge-prototype/aizu.py
HeRaNO/ChickenRibs
9aa8dd8f915aa39a7168940b5ff99a1d665f5212
[ "MIT" ]
14
2020-03-02T09:55:44.000Z
2021-09-17T09:39:40.000Z
Lutece-VJudge-prototype/aizu.py
HeRaNO/ChickenRibs
9aa8dd8f915aa39a7168940b5ff99a1d665f5212
[ "MIT" ]
null
null
null
Lutece-VJudge-prototype/aizu.py
HeRaNO/ChickenRibs
9aa8dd8f915aa39a7168940b5ff99a1d665f5212
[ "MIT" ]
8
2020-06-08T12:38:56.000Z
2021-06-27T14:23:30.000Z
import requests import json import sys username = "" # Fill it passwd = "" # Fill it session = requests.Session() url = 'https://judgeapi.u-aizu.ac.jp' loginUrl = url + '/session' formData = { 'id': username, 'password': passwd, } headers = {'content-type': "application/json"} r = session.post(loginUrl, data =...
17.72093
90
0.667979
98
762
5.183673
0.55102
0.047244
0.047244
0.082677
0.242126
0.181102
0.181102
0.181102
0
0
0
0.012461
0.15748
762
42
91
18.142857
0.778816
0.019685
0
0.148148
0
0
0.225806
0.052419
0
0
0
0
0
1
0
false
0.074074
0.111111
0
0.111111
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
626e6519b849ca4136b66ee15415361f53cd28d5
1,061
py
Python
spider/baiduyun.py
iloster/Lynceus
b7f1c1ffb61f7748153d5cd2b32d5f2cef5c0742
[ "MIT" ]
1
2018-02-02T07:35:55.000Z
2018-02-02T07:35:55.000Z
spider/baiduyun.py
iloster/Lynceus
b7f1c1ffb61f7748153d5cd2b32d5f2cef5c0742
[ "MIT" ]
null
null
null
spider/baiduyun.py
iloster/Lynceus
b7f1c1ffb61f7748153d5cd2b32d5f2cef5c0742
[ "MIT" ]
2
2018-02-02T07:35:42.000Z
2018-08-16T16:29:23.000Z
#coding:utf-8 import time import urllib2 import urllib url = "http://pan.baidu.com/api/sharedownload" print url; postData = {} postData["sign"]="8d991feb9e90c057e03708bd8256f26dac081822"; postData["timestamp"]="1457229784"; postData["bdstoken"]=""; postData["channel"]="chunlei"; postData["clienttype"] = 0; postData["...
30.314286
138
0.711593
154
1,061
4.883117
0.649351
0.042553
0.058511
0.05984
0
0
0
0
0
0
0
0.106925
0.074458
1,061
35
139
30.314286
0.658859
0.01131
0
0
0
0.064516
0.580553
0.115348
0
0
0
0
0
0
null
null
0
0.096774
null
null
0.064516
0
0
0
null
0
0
0
0
0
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
62707f6db9cb8a2368578d4d7c9ae42a3672ebc9
214
py
Python
PythonExercicios/ex061.py
github-felipe/ExerciciosEmPython-cursoemvideo
0045464a287f21b6245554a975588cf06c5b476d
[ "MIT" ]
null
null
null
PythonExercicios/ex061.py
github-felipe/ExerciciosEmPython-cursoemvideo
0045464a287f21b6245554a975588cf06c5b476d
[ "MIT" ]
null
null
null
PythonExercicios/ex061.py
github-felipe/ExerciciosEmPython-cursoemvideo
0045464a287f21b6245554a975588cf06c5b476d
[ "MIT" ]
null
null
null
n1 = int(input('Digite o começo de uma PA: ')) n2 = int(input('Agora digite a razão de uma PA: ')) contador = 0 while contador < 10: print(f'{n1 + (contador * n2)}', end=', ') contador += 1 print('Acabou')
26.75
51
0.602804
34
214
3.794118
0.647059
0.124031
0.108527
0
0
0
0
0
0
0
0
0.047337
0.21028
214
7
52
30.571429
0.715976
0
0
0
0
0
0.415888
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
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
6272fc8abc4aff9931cf14b1f2332ed81ca140ae
62,903
py
Python
libwise/imgutils.py
flomertens/wise-utils
ebc8e88a0a752f6119d049e6f7a044c9e6818f24
[ "MIT" ]
2
2017-11-07T19:32:51.000Z
2019-11-06T17:31:29.000Z
libwise/imgutils.py
flomertens/libwise
ebc8e88a0a752f6119d049e6f7a044c9e6818f24
[ "MIT" ]
null
null
null
libwise/imgutils.py
flomertens/libwise
ebc8e88a0a752f6119d049e6f7a044c9e6818f24
[ "MIT" ]
null
null
null
''' Description: Set of class and function that help handle images data from different source (jpeg, png, fits, ...) Created on Feb 22, 2012 @author: fmertens Requirement: astropy version >= 0.3 ''' import os import re import copy import imghdr import decimal import datetime import pkg_resources import numpy as np ...
32.2745
129
0.594248
8,477
62,903
4.251268
0.093311
0.011987
0.009462
0.011099
0.318775
0.24427
0.201759
0.173012
0.147455
0.114629
0
0.019453
0.277586
62,903
1,948
130
32.291068
0.773602
0.064019
0
0.259091
0
0.000758
0.027392
0.003142
0.000758
0
0
0.000513
0.00303
0
null
null
0.001515
0.023485
null
null
0.012121
0
0
0
null
0
0
0
0
0
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
628f4ad7bcab61a042141bfa9396c947acee4d1b
820
py
Python
mushroom_rl_benchmark/builders/environment_builder.py
benvoe/mushroom-rl-benchmark
217d8c077bf6f3febaed92821a2cf183c83f703b
[ "MIT" ]
null
null
null
mushroom_rl_benchmark/builders/environment_builder.py
benvoe/mushroom-rl-benchmark
217d8c077bf6f3febaed92821a2cf183c83f703b
[ "MIT" ]
null
null
null
mushroom_rl_benchmark/builders/environment_builder.py
benvoe/mushroom-rl-benchmark
217d8c077bf6f3febaed92821a2cf183c83f703b
[ "MIT" ]
null
null
null
from copy import deepcopy import mushroom_rl.environments class EnvironmentBuilder: """ Class to spawn instances of a MushroomRL environment """ def __init__(self, env_name, env_params): """ Constructor Args: env_name: name of the environment to build e...
26.451613
78
0.62439
92
820
5.380435
0.402174
0.070707
0.066667
0.056566
0
0
0
0
0
0
0
0
0.303659
820
31
79
26.451613
0.8669
0.341463
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.181818
0
0.727273
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
6291a1238eda9c5d302982d9f3cfb44be7f4896c
1,679
py
Python
squint/__init__.py
shawnbrown/squint
a9d326ff8edb2e2b740c4355fd953edd2c0cf114
[ "Apache-2.0" ]
3
2020-01-11T23:29:15.000Z
2020-05-30T09:39:15.000Z
squint/__init__.py
shawnbrown/squint
a9d326ff8edb2e2b740c4355fd953edd2c0cf114
[ "Apache-2.0" ]
3
2019-10-15T13:23:31.000Z
2020-07-23T22:13:11.000Z
squint/__init__.py
shawnbrown/squint
a9d326ff8edb2e2b740c4355fd953edd2c0cf114
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """squint: simple query interface for tabular data PYTEST_DONT_REWRITE """ from __future__ import absolute_import import sys as _sys # Check that `sqlite3` is available. Some non-standard builds # of Python do not include the full standard library (e.g., # Jython 2.7 and Jython 2.5). try: ...
29.45614
64
0.688505
224
1,679
4.964286
0.450893
0.053957
0.03777
0.032374
0
0
0
0
0
0
0
0.022318
0.172722
1,679
56
65
29.982143
0.778258
0.309708
0
0.133333
0
0
0.269194
0.021801
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6291b731cbfd6c2ae641d6765ee72f3fb1d00c5e
7,089
py
Python
prettyqt/gui/__init__.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
7
2019-05-01T01:34:36.000Z
2022-03-08T02:24:14.000Z
prettyqt/gui/__init__.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
141
2019-04-16T11:22:01.000Z
2021-04-14T15:12:36.000Z
prettyqt/gui/__init__.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
5
2019-04-17T11:48:19.000Z
2021-11-21T10:30:19.000Z
"""Gui module. Contains QtGui-based classes """ from __future__ import annotations from prettyqt.qt.QtGui import ( QKeyEvent as KeyEvent, QMouseEvent as MouseEvent, QWheelEvent as WheelEvent, QActionEvent as ActionEvent, QShowEvent as ShowEvent, QDropEvent as DropEvent, QFocusEvent as Focu...
26.852273
77
0.749048
615
7,089
8.617886
0.305691
0.006792
0.005283
0.00717
0.009434
0
0
0
0
0
0
0.002916
0.17774
7,089
263
78
26.954373
0.90633
0.020172
0
0
0
0
0.194436
0.01672
0
0
0
0
0
1
0.004065
false
0
0.345528
0
0.357724
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
65577bddb53c1f7c38cd916914b106ef947d2be9
1,001
py
Python
app/v1/__init__.py
SyedaZehra95/wfh-demo
84ed156861e423544fbcd2f44e004f5c4b5d5480
[ "Apache-2.0" ]
null
null
null
app/v1/__init__.py
SyedaZehra95/wfh-demo
84ed156861e423544fbcd2f44e004f5c4b5d5480
[ "Apache-2.0" ]
null
null
null
app/v1/__init__.py
SyedaZehra95/wfh-demo
84ed156861e423544fbcd2f44e004f5c4b5d5480
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint from flask_restplus import Api v1_blueprint = Blueprint('v1_blueprint', __name__, template_folder='templates') # Bases Authorization # authorizations = { # 'apiKey': { # 'type': 'apiKey', # 'in': 'header', # 'name': 'Authorization' # ...
22.75
59
0.662338
108
1,001
5.833333
0.388889
0.039683
0.044444
0.063492
0.120635
0
0
0
0
0
0
0.013106
0.237762
1,001
43
60
23.27907
0.812582
0.193806
0
0
0
0
0.081967
0
0
0
0
0
0
1
0
false
0
0.315789
0
0.315789
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6565482b301603980bea018ca4b4a4c7fd690c7a
1,978
py
Python
bsstudio/widgets/mplwidget.py
bsobhani/bsstudio
d404de6c105f7116b88baeb18a22fee56b672651
[ "BSD-3-Clause" ]
null
null
null
bsstudio/widgets/mplwidget.py
bsobhani/bsstudio
d404de6c105f7116b88baeb18a22fee56b672651
[ "BSD-3-Clause" ]
null
null
null
bsstudio/widgets/mplwidget.py
bsobhani/bsstudio
d404de6c105f7116b88baeb18a22fee56b672651
[ "BSD-3-Clause" ]
null
null
null
# Imports from PyQt5 import QtWidgets, QtCore from matplotlib.figure import Figure import matplotlib.pyplot as plt from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as Canvas from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar from matplotlib.backends.backend_qt5 impo...
34.103448
94
0.768453
263
1,978
5.653992
0.357414
0.0538
0.04304
0.058507
0.137189
0.090114
0.03497
0
0
0
0
0.015446
0.116279
1,978
57
95
34.701754
0.83524
0.308392
0
0.058824
0
0
0.018519
0
0
0
0
0
0
1
0.147059
false
0
0.264706
0.058824
0.529412
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
656a39f7ed1469977f746acdb8b8b0f464c9ceec
748
py
Python
py_challenge/level_7.py
bertrandvidal/stuff
107628d42176eebd6e79adec3cf46bd686f40643
[ "Unlicense" ]
null
null
null
py_challenge/level_7.py
bertrandvidal/stuff
107628d42176eebd6e79adec3cf46bd686f40643
[ "Unlicense" ]
1
2021-03-06T15:01:49.000Z
2021-03-06T15:01:49.000Z
py_challenge/level_7.py
bertrandvidal/stuff
107628d42176eebd6e79adec3cf46bd686f40643
[ "Unlicense" ]
null
null
null
from challenge import open_next_level import requests import zipfile import os import tempfile tmp = tempfile.mkdtemp() (_, archive_path) = tempfile.mkstemp(dir=tmp) with open(archive_path, "w") as channel: response = requests.get("http://www.pythonchallenge.com/pc/def/channel.zip") response.raise_for_status() ...
22
78
0.739305
101
748
5.356436
0.623762
0.060998
0.048059
0
0
0
0
0
0
0
0
0.009346
0.141711
748
33
79
22.666667
0.833333
0
0
0
0
0
0.110963
0
0
0
0
0
0
0
null
null
0
0.192308
null
null
0.076923
0
0
0
null
0
0
0
0
0
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
656c0c9b1e023d3a51f27d615e9757dbc5b3bef9
2,772
py
Python
data_steward/cdr_cleaner/cleaning_rules/clean_ppi_numeric_fields_using_parameters.py
dcampbell-vumc/curation
327296b12cc0864cf32636be03b2b020447bd012
[ "MIT" ]
null
null
null
data_steward/cdr_cleaner/cleaning_rules/clean_ppi_numeric_fields_using_parameters.py
dcampbell-vumc/curation
327296b12cc0864cf32636be03b2b020447bd012
[ "MIT" ]
null
null
null
data_steward/cdr_cleaner/cleaning_rules/clean_ppi_numeric_fields_using_parameters.py
dcampbell-vumc/curation
327296b12cc0864cf32636be03b2b020447bd012
[ "MIT" ]
null
null
null
import constants.cdr_cleaner.clean_cdr as cdr_consts CLEAN_PPI_NUMERIC_FIELDS = """ UPDATE `{project}.{dataset}.observation` u1 SET u1.value_as_number = NULL, u1.value_as_concept_id = 2000000010 FROM ( SELECT * FROM `{project}.{dataset}.observation` WHERE observation_concept_id = 1585889 AND (value_as_...
21
90
0.742063
393
2,772
4.913486
0.21374
0.079751
0.141378
0.124288
0.566546
0.566546
0.566546
0.566546
0.523045
0.475401
0
0.050284
0.174964
2,772
131
91
21.160305
0.794053
0.086219
0
0.520408
0
0
0.689724
0.241903
0
0
0
0
0
1
0.010204
false
0
0.030612
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
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1