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
7c070117ea285fbf91b8bef8e02fd36a2e2f89d8
319
py
Python
src/wafec/fi/hypothesis/controllers/_route.py
wafec/wafec-fi-hypothesis
e74fea0eb5da39e8f26973fa577dc4515317150c
[ "MIT" ]
null
null
null
src/wafec/fi/hypothesis/controllers/_route.py
wafec/wafec-fi-hypothesis
e74fea0eb5da39e8f26973fa577dc4515317150c
[ "MIT" ]
null
null
null
src/wafec/fi/hypothesis/controllers/_route.py
wafec/wafec-fi-hypothesis
e74fea0eb5da39e8f26973fa577dc4515317150c
[ "MIT" ]
null
null
null
from . import app, api from . import TestController, TestParameterController from threading import Lock TEST_PARAMETER_LOCK = Lock() api.add_resource(TestController, '/api/tests') api.add_resource(TestParameterController, '/api/parameters', resource_class_kwargs ={'lock_obj': TEST_PARAMETER_LOCK})
29
74
0.768025
36
319
6.555556
0.472222
0.084746
0.144068
0
0
0
0
0
0
0
0
0
0.137931
319
10
75
31.9
0.858182
0
0
0
0
0
0.103448
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7c0951163353e83edc349027462e1c7c6756e24c
4,352
py
Python
calc_HI_rms.py
sjforeman/RadioFisher
fe25f969de9a700c5697168ba9e0d2645c55ed81
[ "AFL-3.0" ]
3
2020-12-05T11:28:47.000Z
2021-07-09T02:42:21.000Z
calc_HI_rms.py
sjforeman/RadioFisher
fe25f969de9a700c5697168ba9e0d2645c55ed81
[ "AFL-3.0" ]
null
null
null
calc_HI_rms.py
sjforeman/RadioFisher
fe25f969de9a700c5697168ba9e0d2645c55ed81
[ "AFL-3.0" ]
2
2021-07-09T02:42:23.000Z
2021-11-30T06:37:47.000Z
#!/usr/bin/python """ Calculate signal power as a function of frequency. """ import numpy as np import pylab as P import scipy.integrate import baofisher import experiments from experiments import cosmo from units import * import copy nu21 = 1420. # Line frequency at z=0 # Pre-calculate cosmological qu...
32.969697
100
0.585018
701
4,352
3.549215
0.28388
0.024116
0.027331
0.032154
0.432074
0.336817
0.310289
0.295418
0.237138
0.191318
0
0.071407
0.230928
4,352
131
101
33.221374
0.671945
0.201287
0
0.246914
0
0.024691
0.168823
0.006921
0
0
0
0
0
0
null
null
0
0.098765
null
null
0.197531
0
0
0
null
0
0
0
0
0
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
7c0a5c5c08c2bb457475e9da17a07fec375ef9a2
3,317
py
Python
tirelire-auth/tests/unit/test_handlers.py
AgRenaud/tirelire
0ac42dbf735dea4ecb741057bd037c18657b95c7
[ "MIT" ]
null
null
null
tirelire-auth/tests/unit/test_handlers.py
AgRenaud/tirelire
0ac42dbf735dea4ecb741057bd037c18657b95c7
[ "MIT" ]
null
null
null
tirelire-auth/tests/unit/test_handlers.py
AgRenaud/tirelire
0ac42dbf735dea4ecb741057bd037c18657b95c7
[ "MIT" ]
null
null
null
from unittest import TestCase from typing import List from app import bootstrap from app.domain import commands, model from app.service_layer import handlers from app.service_layer.unit_of_work import UnitOfWork from app.service_layer.auth_service import AuthService class FakeRepository: def __init__(self, use...
29.096491
78
0.636418
396
3,317
5.108586
0.229798
0.031142
0.034602
0.027682
0.381117
0.336629
0.259516
0.259516
0.225902
0.225902
0
0.013906
0.262888
3,317
113
79
29.353982
0.813497
0.00814
0
0.325581
0
0
0.05809
0
0
0
0
0.00885
0.023256
1
0.197674
false
0.139535
0.081395
0.093023
0.418605
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
9fd9f048de2faaf9309fa29b093dc331d6222413
5,624
py
Python
libraries/ArbotiX/examples/old/CommExt/CommEXT.py
bouraqadi/ArbotiX-M
6056a8086f0d2ad67909c1433d7544fc02d435d1
[ "MIT" ]
1
2019-11-14T11:49:20.000Z
2019-11-14T11:49:20.000Z
libraries/ArbotiX/examples/old/CommExt/CommEXT.py
bouraqadi/ArbotiX-M
6056a8086f0d2ad67909c1433d7544fc02d435d1
[ "MIT" ]
null
null
null
libraries/ArbotiX/examples/old/CommExt/CommEXT.py
bouraqadi/ArbotiX-M
6056a8086f0d2ad67909c1433d7544fc02d435d1
[ "MIT" ]
1
2021-09-14T01:49:30.000Z
2021-09-14T01:49:30.000Z
#!/usr/bin/env python # CommEXT.py - ArbotiX Commander Extended Instruction Set Example # Copyright (c) 2008-2010 Vanadium Labs LLC. All right reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistri...
34.716049
86
0.60633
766
5,624
4.406005
0.340731
0.029037
0.028444
0.031111
0.224296
0.152889
0.144593
0.144593
0.144593
0.144593
0
0.040081
0.29463
5,624
161
87
34.931677
0.810688
0.372866
0
0.182796
0
0
0.006186
0
0
0
0.012372
0
0
0
null
null
0
0.010753
null
null
0.021505
0
0
0
null
0
0
0
0
0
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
9fdbf1fc42ece41e217bfd55e5aff5e2209c5666
1,343
py
Python
torch_rl/envs/__init__.py
JimmyMVP/plain_rl
4780f05fffb62533a339197b49de487cdc9d9954
[ "MIT" ]
10
2018-03-18T21:27:59.000Z
2020-08-13T20:15:05.000Z
torch_rl/envs/__init__.py
JimmyMVP/plain_rl
4780f05fffb62533a339197b49de487cdc9d9954
[ "MIT" ]
1
2018-03-19T09:51:04.000Z
2018-03-19T10:11:02.000Z
torch_rl/envs/__init__.py
JimmyMVP/plain_rl
4780f05fffb62533a339197b49de487cdc9d9954
[ "MIT" ]
3
2018-03-10T09:17:10.000Z
2019-12-17T20:19:56.000Z
from gym.envs.registration import register from .wrappers import * from .logger import * from .envs import * register( id='BanditsX2-v0', kwargs = {'num_bandits' : 2}, entry_point='torch_rl.envs:BanditEnv', ) register( id='BanditsX4-v0', kwargs = {'num_bandits' : 4}, entry_point='torch_rl.env...
17.671053
60
0.613552
148
1,343
5.432432
0.412162
0.087065
0.074627
0.084577
0.370647
0.282338
0.245025
0.245025
0
0
0
0.033066
0.256888
1,343
75
61
17.906667
0.772545
0
0
0.34
0
0
0.306367
0.092135
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
9fe2a8a0fe0648a3bd95e7158bbf4b6caba1381b
4,121
py
Python
rectangles.py
CoffeeTableEnnui/RedCircleGame
f525e626a67b22735e04f8409d39930b689983f1
[ "MIT" ]
null
null
null
rectangles.py
CoffeeTableEnnui/RedCircleGame
f525e626a67b22735e04f8409d39930b689983f1
[ "MIT" ]
null
null
null
rectangles.py
CoffeeTableEnnui/RedCircleGame
f525e626a67b22735e04f8409d39930b689983f1
[ "MIT" ]
null
null
null
import pygame class Rectangle: def collide(self, circle): x_range = range(self.xmin - circle.size, self.xmax + circle.size) y_range = range(self.ymin - circle.size, self.ymax + circle.size) return circle.x in x_range and circle.y in y_range class LevelButton(Rectangle): WHITE = (255, 2...
39.625
145
0.501335
453
4,121
4.507726
0.112583
0.092556
0.070029
0.092556
0.739961
0.712537
0.694907
0.56905
0.53477
0.530362
0
0.023438
0.378792
4,121
103
146
40.009709
0.774219
0
0
0.595745
0
0
0.000971
0
0
0
0
0
0
1
0.106383
false
0
0.010638
0
0.361702
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
9feea97ecc0e366fcd0c2bb5df9bcbdf6cedf039
837
py
Python
tools/gdb/print_list.py
prattmic/F4OS
43e067e2108356c9a84f9b8362384143ba7f3f3f
[ "MIT" ]
42
2015-01-29T16:07:24.000Z
2021-04-12T09:06:42.000Z
tools/gdb/print_list.py
prattmic/F4OS
43e067e2108356c9a84f9b8362384143ba7f3f3f
[ "MIT" ]
null
null
null
tools/gdb/print_list.py
prattmic/F4OS
43e067e2108356c9a84f9b8362384143ba7f3f3f
[ "MIT" ]
19
2015-01-29T16:07:25.000Z
2021-12-14T04:51:34.000Z
import gdb class Print_List(gdb.Command): """Prints out an F4OS linked list in a pretty format""" def __init__(self): super(Print_List, self).__init__("print-list", gdb.COMMAND_DATA, gdb.COMPLETE_SYMBOL) def invoke(self, arg, from_tty): head = gdb.parse_and_eval(arg) self.print_li...
22.026316
93
0.541219
99
837
4.393939
0.444444
0.124138
0.055172
0.087356
0
0
0
0
0
0
0
0.001821
0.344086
837
37
94
22.621622
0.790528
0
0
0.083333
0
0
0.080563
0
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.291667
0
0
0
null
0
0
0
0
0
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
9ff12933f505fe6c12eefa8876aee68d63356ab5
8,087
py
Python
tests/all/backends/redis/client.py
stuaxo/python-stdnet
78db5320bdedc3f28c5e4f38cda13a4469e35db7
[ "BSD-3-Clause" ]
61
2015-01-13T23:41:10.000Z
2021-09-14T03:23:59.000Z
tests/all/backends/redis/client.py
drscream/python-stdnet
78db5320bdedc3f28c5e4f38cda13a4469e35db7
[ "BSD-3-Clause" ]
4
2015-02-28T08:57:14.000Z
2020-12-29T17:14:43.000Z
tests/all/backends/redis/client.py
drscream/python-stdnet
78db5320bdedc3f28c5e4f38cda13a4469e35db7
[ "BSD-3-Clause" ]
12
2015-01-01T09:23:06.000Z
2021-09-16T08:09:13.000Z
'''Test additional commands for redis client.''' import json from hashlib import sha1 from stdnet import getdb from stdnet.backends import redisb from stdnet.utils import test, flatzset def get_version(info): if 'redis_version' in info: return info['redis_version'] else: return inf...
42.340314
84
0.521207
1,079
8,087
3.858202
0.168675
0.096085
0.06846
0.04564
0.484506
0.441749
0.355753
0.313716
0.294739
0.294739
0
0.040709
0.295289
8,087
191
85
42.340314
0.68977
0.002844
0
0.188679
0
0
0.066873
0
0
0
0
0
0.301887
0
null
null
0
0.031447
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
9ff91c20de6fb08adc81f06b8d8c568c3b1391bf
3,008
py
Python
picammodapipkg/camproject.py
nkosinathintuli/mypackage
075233420e7d28731b87ef72f67a40043b78b3dc
[ "MIT" ]
null
null
null
picammodapipkg/camproject.py
nkosinathintuli/mypackage
075233420e7d28731b87ef72f67a40043b78b3dc
[ "MIT" ]
10
2020-12-24T18:02:29.000Z
2022-02-03T03:27:11.000Z
picammodapipkg/camproject.py
nkosinathintuli/mypackage
075233420e7d28731b87ef72f67a40043b78b3dc
[ "MIT" ]
null
null
null
"""This module contains the functions for taking video recordings and enabling/disabling light triggered automatic recording """ import anvil.server import picamera import takeImg import adc import smtplib import motionDetect motionState = False server = smtplib.SMTP('smtp.gmail.com',587) server.starttls() server.log...
29.490196
84
0.658245
344
3,008
5.726744
0.322674
0.032487
0.060914
0.033503
0.239594
0.239594
0.218274
0.218274
0.218274
0.218274
0
0.03021
0.240691
3,008
101
85
29.782178
0.832312
0.01629
0
0.333333
0
0
0.22908
0.082022
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9ff9d122e6b91ec75688c4f2ffcd6182edfc9362
3,852
py
Python
gcf/gcf.py
pangjie/gcf
45a6a74694b651613420b22e963a7c52cc3735d2
[ "MIT" ]
18
2018-06-15T02:29:18.000Z
2022-01-14T07:45:02.000Z
gcf/gcf.py
pangjie/gcf
45a6a74694b651613420b22e963a7c52cc3735d2
[ "MIT" ]
2
2018-04-27T02:58:30.000Z
2018-06-26T00:08:16.000Z
gcf/gcf.py
pangjie/gcf
45a6a74694b651613420b22e963a7c52cc3735d2
[ "MIT" ]
1
2020-01-17T10:55:55.000Z
2020-01-17T10:55:55.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- import click from . import gcf_mining as gm from . import gcf_scrape as gs @click.group(invoke_without_command=True, no_args_is_help=True) @click.option('--dj', '-d', default='', help=u'Search by dj, such as -d \'西蒙#四十二\' or \'西蒙\'.\ Use #,...
29.860465
78
0.556075
495
3,852
4.10101
0.325253
0.065025
0.039409
0.046798
0.209852
0.092611
0.034483
0
0
0
0
0.014984
0.272326
3,852
128
79
30.09375
0.70924
0.113967
0
0.238095
0
0
0.209558
0.008311
0
0
0
0
0
1
0.071429
false
0.059524
0.035714
0
0.202381
0.011905
0
0
0
null
0
0
0
0
0
0
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
9ffeb4897c0832a10770d89943683029d4110dbb
443
py
Python
src/Africa/migrations/0006_dish_images01.py
MCN10/Demo1
3ff6b18f6da9f6b6b634513f9654c2c643014072
[ "Apache-2.0" ]
null
null
null
src/Africa/migrations/0006_dish_images01.py
MCN10/Demo1
3ff6b18f6da9f6b6b634513f9654c2c643014072
[ "Apache-2.0" ]
null
null
null
src/Africa/migrations/0006_dish_images01.py
MCN10/Demo1
3ff6b18f6da9f6b6b634513f9654c2c643014072
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-31 12:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Africa', '0005_auto_20200731_1203'), ] operations = [ migrations.AddField( model_name='dish', name='images01', ...
22.15
74
0.602709
48
443
5.416667
0.854167
0
0
0
0
0
0
0
0
0
0
0.106918
0.282167
443
19
75
23.315789
0.710692
0.10158
0
0
1
0
0.136364
0.058081
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
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
b002dc6634daaf43ca0acff110077d016cf0eab3
362
py
Python
src/main_test.py
AliManjotho/tf_hci_pose
ed1086a834ee3bcee6f5b0de64ff7b4c39a5749a
[ "Apache-2.0" ]
null
null
null
src/main_test.py
AliManjotho/tf_hci_pose
ed1086a834ee3bcee6f5b0de64ff7b4c39a5749a
[ "Apache-2.0" ]
null
null
null
src/main_test.py
AliManjotho/tf_hci_pose
ed1086a834ee3bcee6f5b0de64ff7b4c39a5749a
[ "Apache-2.0" ]
null
null
null
import cv2 from src.utils.heatmap import getHeatmaps from src.visualization.visualize import visualizeAllHeatmap, visualizeBackgroundHeatmap keypoints = [ [[100, 100, 2], [105,105, 2]] ] image = cv2.imread('images/person.jpg') hmaps = getHeatmaps(image, keypoints, 7) visualizeAllHeatmap(image, hmaps) visualizeBackg...
25.857143
87
0.78453
42
362
6.761905
0.571429
0.049296
0
0
0
0
0
0
0
0
0
0.058462
0.10221
362
13
88
27.846154
0.815385
0
0
0
0
0
0.046961
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
b008276fe0545e90455d6de864641ff0964a9f3c
3,664
py
Python
src/database_processor/db_common.py
Brian-Pho/RVST598_Speech_Emotion_Recognition
e31d2c948319f0f38515e509545b39f2e0ecac96
[ "MIT" ]
2
2019-10-25T14:59:16.000Z
2019-11-22T13:15:28.000Z
src/database_processor/db_common.py
Brian-Pho/RVST598_Speech-Emotion-Recognition
e31d2c948319f0f38515e509545b39f2e0ecac96
[ "MIT" ]
null
null
null
src/database_processor/db_common.py
Brian-Pho/RVST598_Speech-Emotion-Recognition
e31d2c948319f0f38515e509545b39f2e0ecac96
[ "MIT" ]
null
null
null
""" This file holds common functions across all database processing such as calculating statistics. """ import numpy as np from src import em_constants as emc def is_outlier(wav, lower, upper): """ Checks if an audio sample is an outlier. Bounds are inclusive. :param wav: The audio time series data poi...
28.850394
80
0.672762
590
3,664
4.044068
0.279661
0.036882
0.016345
0.013412
0.133697
0.092624
0.04694
0
0
0
0
0.017741
0.246179
3,664
126
81
29.079365
0.846126
0.583515
0
0
0
0
0.013292
0
0
0
0
0
0
1
0.2
false
0
0.066667
0
0.533333
0.033333
0
0
0
null
0
0
0
0
0
0
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
b008d703cfeee89f9ec0a7ad969f8fc30b9b01c2
314
py
Python
attendance_app/urls.py
mattmorz/attendance_system
8d7277e78414dbaced4201642759dd7c6b08ae2a
[ "Apache-2.0" ]
null
null
null
attendance_app/urls.py
mattmorz/attendance_system
8d7277e78414dbaced4201642759dd7c6b08ae2a
[ "Apache-2.0" ]
null
null
null
attendance_app/urls.py
mattmorz/attendance_system
8d7277e78414dbaced4201642759dd7c6b08ae2a
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from django.urls import path, include from . import views urlpatterns = [ path('', views.index, name='index'), path('sign-in', views.signup, name='sign-in'), path('home-page', views.loggedIn, name='home-page'), path('log-out', views.logout_view, name='log-out'), ]
31.4
56
0.671975
46
314
4.565217
0.478261
0.095238
0
0
0
0
0
0
0
0
0
0
0.143312
314
10
57
31.4
0.780669
0
0
0
0
0
0.161905
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
b0111c5688f56b8ccda6e49b9f00e97cbc5a3564
391
py
Python
tests/test_kooptimise.py
anilkumarpanda/kooptimize
998295dd51c08e0b86b2aa7a9a23e99888674dac
[ "MIT" ]
null
null
null
tests/test_kooptimise.py
anilkumarpanda/kooptimize
998295dd51c08e0b86b2aa7a9a23e99888674dac
[ "MIT" ]
3
2020-02-23T00:05:06.000Z
2020-02-23T02:37:04.000Z
tests/test_kooptimise.py
anilkumarpanda/kooptimize
998295dd51c08e0b86b2aa7a9a23e99888674dac
[ "MIT" ]
null
null
null
import pytest from kooptimize.korules import get_rules_for_individual def test_get_rule_for_individual(): ind = [1,0,1,0] rule_dict = {0:"age <= 70",1:"ltv<=90", 3:"no_of_primary_accts <= 50",4:"credit_history_lenght >= 3"} result_dict = get_rules_for_individual(ind) expected_dict = {0:"age <= 70",...
35.545455
65
0.705882
63
391
4.015873
0.52381
0.15415
0.086957
0.166008
0.150198
0.150198
0
0
0
0
0
0.063444
0.153453
391
11
66
35.545455
0.700906
0
0
0
0
0
0.257653
0.053571
0
0
0
0
0.111111
1
0.111111
false
0
0.222222
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
b01250e79543d0508ee54e0135a64c57e877000e
749
py
Python
Part_1/ch03_func/3_2_return.py
hyperpc/AutoStuffWithPython
e05f5e0acb5818d634e4ab84d640848cd4ae7e70
[ "MIT" ]
null
null
null
Part_1/ch03_func/3_2_return.py
hyperpc/AutoStuffWithPython
e05f5e0acb5818d634e4ab84d640848cd4ae7e70
[ "MIT" ]
null
null
null
Part_1/ch03_func/3_2_return.py
hyperpc/AutoStuffWithPython
e05f5e0acb5818d634e4ab84d640848cd4ae7e70
[ "MIT" ]
null
null
null
import random def getAnswer(answerNumber): result = '' if answerNumber == 1: result = 'It is certain' elif answerNumber == 2: result = 'It is decidedly so' elif answerNumber == 3: result = 'Yes' elif answerNumber == 4: result = 'Reply hazy try again' elif answerN...
25.827586
44
0.604806
89
749
5.089888
0.483146
0.282561
0.04415
0.066225
0
0
0
0
0
0
0
0.024482
0.291055
749
29
45
25.827586
0.828625
0
0
0
0
0
0.186667
0
0
0
0
0
0
1
0.038462
false
0
0.038462
0
0.115385
0.076923
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
b012b87556fc5adecb6fd190d1c966f21344f211
368
py
Python
core/migrations/0024_auto_20200410_2228.py
scottstanie/fashbowl
d723bd175ca37ec3d001ab01b1e552f8682c6cb6
[ "MIT" ]
1
2020-04-02T16:20:31.000Z
2020-04-02T16:20:31.000Z
core/migrations/0024_auto_20200410_2228.py
scottstanie/fashbowl
d723bd175ca37ec3d001ab01b1e552f8682c6cb6
[ "MIT" ]
9
2020-04-02T00:14:48.000Z
2021-06-10T20:02:14.000Z
core/migrations/0024_auto_20200410_2228.py
scottstanie/fashbowl
d723bd175ca37ec3d001ab01b1e552f8682c6cb6
[ "MIT" ]
null
null
null
# Generated by Django 2.2.10 on 2020-04-10 22:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0023_game_max_words'), ] operations = [ migrations.RenameField( model_name='game', old_name='max_words', ...
19.368421
48
0.589674
42
368
4.952381
0.714286
0.076923
0
0
0
0
0
0
0
0
0
0.077519
0.298913
368
18
49
20.444444
0.728682
0.125
0
0
1
0
0.1625
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b018460b317db929c5cb407a9804ae6c72d953f2
5,273
py
Python
BancoEAN.py
VivianaMontacost/ProyectoBancoEAN
b87bc4a0f8d1e7f2ecf2c61c1025c0526d8502c3
[ "MIT" ]
null
null
null
BancoEAN.py
VivianaMontacost/ProyectoBancoEAN
b87bc4a0f8d1e7f2ecf2c61c1025c0526d8502c3
[ "MIT" ]
null
null
null
BancoEAN.py
VivianaMontacost/ProyectoBancoEAN
b87bc4a0f8d1e7f2ecf2c61c1025c0526d8502c3
[ "MIT" ]
null
null
null
""" Juandabu """ persona= ['clark kent', 'Bruce Wane' ] usuario= ['superman' , 'batman' ] contraseña= [1111 , 2222 ] numero_de_cuenta= [ 3115996681 , 32221822 ] tipo_de_cuenta= [ 'corriente', 'ahorros' ] dinero= ...
44.686441
102
0.504267
502
5,273
5.105578
0.205179
0.065548
0.087398
0.044479
0.362856
0.320718
0.250488
0.250488
0.250488
0.250488
0
0.017102
0.390101
5,273
118
103
44.686441
0.779851
0.001517
0
0.173469
0
0
0.18405
0.005456
0
0
0
0
0
1
0
false
0
0
0
0
0.438776
0
0
0
null
0
0
0
0
0
0
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
b020e29b5069b5c83b3331ecac5504bcdfad3e5a
465
py
Python
expect.py
chendong2016/chendong2016.github.io
d120b4aedd8739791432117665bf3c927db183d1
[ "MIT" ]
null
null
null
expect.py
chendong2016/chendong2016.github.io
d120b4aedd8739791432117665bf3c927db183d1
[ "MIT" ]
null
null
null
expect.py
chendong2016/chendong2016.github.io
d120b4aedd8739791432117665bf3c927db183d1
[ "MIT" ]
null
null
null
#!/usr/bin/python import pexpect import os import sys def git_expect(repodir, u, p): os.chdir(repodir) os.system('git pull') os.system('git add .') os.system('git commit -m update') foo = pexpect.spawn('git push') foo.expect('.*Username.*:') foo.sendline(u) foo.expect('.*ssword:*') ...
18.6
41
0.615054
69
465
4
0.507246
0.086957
0.119565
0
0
0
0
0
0
0
0
0.008086
0.202151
465
24
42
19.375
0.735849
0.034409
0
0
0
0
0.169643
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b020fbafdabd7d6af9aad2423393db7537e6805e
2,038
py
Python
latent_with_splitseqs/base/classifier_base.py
fgitmichael/SelfSupevisedSkillDiscovery
60eee11cfd67046190dd2784bf40e97bdbed9d40
[ "MIT" ]
null
null
null
latent_with_splitseqs/base/classifier_base.py
fgitmichael/SelfSupevisedSkillDiscovery
60eee11cfd67046190dd2784bf40e97bdbed9d40
[ "MIT" ]
6
2021-02-02T23:00:02.000Z
2022-01-13T03:13:51.000Z
latent_with_splitseqs/base/classifier_base.py
fgitmichael/SelfSupevisedSkillDiscovery
60eee11cfd67046190dd2784bf40e97bdbed9d40
[ "MIT" ]
null
null
null
import abc import torch from code_slac.network.base import BaseNetwork from latent_with_splitseqs.config.fun.get_obs_dims_used_df import get_obs_dims_used_df class SplitSeqClassifierBase(BaseNetwork, metaclass=abc.ABCMeta): def __init__(self, obs_dim, seq_len, ...
24.261905
86
0.537291
227
2,038
4.45815
0.268722
0.083004
0.097826
0.059289
0.26581
0.166996
0.112648
0.047431
0.047431
0
0
0.006467
0.393032
2,038
83
87
24.554217
0.811641
0
0
0.382353
0
0
0
0
0
0
0
0
0.058824
1
0.088235
false
0.058824
0.058824
0.014706
0.205882
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
b022e711a223c451fdf3f6c5b2d45ea984588d7b
6,878
py
Python
benchtmpl/workflow/parameter/base.py
scailfin/benchmark-templates
0b9c593b4281b30e42d49f486b55bf953adcb29d
[ "MIT" ]
null
null
null
benchtmpl/workflow/parameter/base.py
scailfin/benchmark-templates
0b9c593b4281b30e42d49f486b55bf953adcb29d
[ "MIT" ]
1
2019-06-17T15:52:41.000Z
2019-06-21T14:00:32.000Z
benchtmpl/workflow/parameter/base.py
scailfin/benchmark-templates
0b9c593b4281b30e42d49f486b55bf953adcb29d
[ "MIT" ]
null
null
null
# This file is part of the Reproducible Open Benchmarks for Data Analysis # Platform (ROB). # # Copyright (C) 2019 NYU. # # ROB is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """Base class for workflow template parameters. Each parame...
30.034934
87
0.602646
836
6,878
4.851675
0.214115
0.053254
0.056706
0.057692
0.205375
0.154093
0.139793
0.139793
0.08284
0.08284
0
0.001049
0.307066
6,878
228
88
30.166667
0.849979
0.434574
0
0
0
0
0.040371
0.007611
0
0
0
0
0
1
0.222222
false
0
0.027778
0
0.472222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b02394b415c8140f94b67dc59bdeceac7b4f6f67
39,712
py
Python
main.py
maphouse/create-subtitles
34fd6c05dc8ee2d6bdf6bb5cb24468412a37ca65
[ "MIT" ]
null
null
null
main.py
maphouse/create-subtitles
34fd6c05dc8ee2d6bdf6bb5cb24468412a37ca65
[ "MIT" ]
4
2021-01-09T07:40:48.000Z
2021-01-09T16:19:03.000Z
main.py
maphouse/create-subtitles
34fd6c05dc8ee2d6bdf6bb5cb24468412a37ca65
[ "MIT" ]
null
null
null
#requires oscar.mp4 video file in same folder #transcript text file "oscar4.txt" #might have to be in a folder name called oscar #change certain character variables import imageio imageio.plugins.ffmpeg.download() from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip import time from time import strftime,lo...
41.539749
838
0.618654
5,056
39,712
4.802017
0.177413
0.008897
0.004613
0.005931
0.295482
0.261584
0.234606
0.223156
0.208575
0.187322
0
0.015632
0.270271
39,712
955
839
41.583246
0.822182
0.244712
0
0.454397
0
0.060261
0.301413
0.007893
0
0
0
0
0
0
null
null
0.001629
0.029316
null
null
0.114007
0
0
0
null
0
0
0
0
0
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
b02c4abee7676b2437b036ab4216f080caff36fa
417
py
Python
ml/classifier.py
shilang1220/tfwrapper
36b8097d63636d93e93a0a8023a535fded9f1455
[ "MIT" ]
null
null
null
ml/classifier.py
shilang1220/tfwrapper
36b8097d63636d93e93a0a8023a535fded9f1455
[ "MIT" ]
null
null
null
ml/classifier.py
shilang1220/tfwrapper
36b8097d63636d93e93a0a8023a535fded9f1455
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 18-5-15 下午5:32 # @Author : Guoliang PU # @File : classifier.py # @Software: tfwrapper from keras.layers import Dense from keras.models import Sequential from keras.datasets import mnist (x_train,y_train),(x_test,y_test) = mnist.load_data() print('Origin ...
24.529412
64
0.707434
68
417
4.176471
0.588235
0.084507
0.077465
0
0
0
0
0
0
0
0
0.04507
0.148681
417
16
65
26.0625
0.75493
0.330935
0
0
0
0
0.084559
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b02f82ff5d143782a3b962eb9d516060267e264f
440
py
Python
Yatube/hw04_tests/posts/migrations/0010_auto_20201103_2339.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
3
2020-11-18T05:16:30.000Z
2021-03-08T06:36:01.000Z
Yatube/hw05_final/posts/migrations/0010_auto_20201103_2339.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
null
null
null
Yatube/hw05_final/posts/migrations/0010_auto_20201103_2339.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
1
2021-01-20T12:41:48.000Z
2021-01-20T12:41:48.000Z
# Generated by Django 2.2.6 on 2020-11-03 16:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0009_auto_20201023_1643'), ] operations = [ migrations.AlterField( model_name='post', name='title', ...
23.157895
109
0.620455
50
440
5.32
0.84
0
0
0
0
0
0
0
0
0
0
0.104615
0.261364
440
18
110
24.444444
0.713846
0.102273
0
0
1
0
0.16285
0.058524
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b031f8c8beda608406c95042125b30c74fdf6984
3,305
py
Python
rtcat/get_knpsr.py
mpsurnis/greenburst
bb643458eed700d1639e5fc0a48bb32f695974b2
[ "MIT" ]
null
null
null
rtcat/get_knpsr.py
mpsurnis/greenburst
bb643458eed700d1639e5fc0a48bb32f695974b2
[ "MIT" ]
null
null
null
rtcat/get_knpsr.py
mpsurnis/greenburst
bb643458eed700d1639e5fc0a48bb32f695974b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.5 __author__ = 'Mayuresh Surnis' __email__ = 'mayuresh.surnis@mail.wvu.edu' import argparse from catalog_utils import gen_catalog from webcrawler import * # Generate the catalog using the rtcat function cat = gen_catalog() # Some useful functions def hmstodeg(ra): # Convert ra from hms to...
33.383838
197
0.565204
448
3,305
4.120536
0.337054
0.113759
0.119177
0.087757
0.202059
0.202059
0.137595
0.111593
0.111593
0.111593
0
0.028674
0.240242
3,305
98
198
33.72449
0.706491
0.202118
0
0.118644
1
0
0.182131
0.010691
0
0
0
0
0
1
0.033898
false
0.016949
0.050847
0
0.118644
0.050847
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
b0464fb01afbaf6d4c632af91a5036fa843f778c
1,876
py
Python
tests/test_ds_simple_db/test_serializers/test_table_serializer.py
dmitryshurov/simple_data_storage_library
f6b6aac38082e9cfe547b3cb7a662ffea8db5e8f
[ "MIT" ]
null
null
null
tests/test_ds_simple_db/test_serializers/test_table_serializer.py
dmitryshurov/simple_data_storage_library
f6b6aac38082e9cfe547b3cb7a662ffea8db5e8f
[ "MIT" ]
null
null
null
tests/test_ds_simple_db/test_serializers/test_table_serializer.py
dmitryshurov/simple_data_storage_library
f6b6aac38082e9cfe547b3cb7a662ffea8db5e8f
[ "MIT" ]
null
null
null
from unittest import TestCase from ds_simple_db.core.entry import Entry from ds_simple_db.serializers.table_serializer import TableSerializer class TestTableSerializer(TestCase): def test_entries_to_string_empty_entries_returns_empty_string(self): entries = [] self.assertEqual( '', ...
28.861538
120
0.538913
196
1,876
4.882653
0.234694
0.125392
0.138976
0.175549
0.502612
0.423197
0.364681
0.203762
0.155695
0.085684
0
0.013981
0.275586
1,876
64
121
29.3125
0.690213
0
0
0.204082
0
0.020408
0.168444
0.07516
0
0
0
0
0.163265
1
0.122449
false
0
0.061224
0
0.204082
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
b04ac00339f0926cf582a19daea30849d81c146b
267
py
Python
ixl_learning_3.py
EternalTitan/ICPC-Practise
cd258c909d455139aef135dc2300f98c48ddfd96
[ "MIT" ]
1
2018-04-24T17:32:28.000Z
2018-04-24T17:32:28.000Z
ixl_learning_3.py
EternalTitan/ICPC-Practise
cd258c909d455139aef135dc2300f98c48ddfd96
[ "MIT" ]
null
null
null
ixl_learning_3.py
EternalTitan/ICPC-Practise
cd258c909d455139aef135dc2300f98c48ddfd96
[ "MIT" ]
null
null
null
def countX(steps): RC_MAXIMUM = 1000000 edge_r = edge_c = RC_MAXIMUM for each_step in steps: r, c = map(int, each_step.split()) if r < edge_r: edge_r = r if c < edge_c: edge_c = c return edge_r * edge_c
24.272727
42
0.539326
43
267
3.069767
0.418605
0.151515
0.204545
0.151515
0
0
0
0
0
0
0
0.042169
0.378277
267
10
43
26.7
0.753012
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b04c5288092671a52183773e11067d33bef89d99
415
py
Python
wagtaildocs_previews/tests/urls.py
mikiec84/wagtail-filepreviews
bce5f75214063de58c6ad33f887cbd6b44e38d1e
[ "MIT" ]
22
2017-04-18T02:12:29.000Z
2022-03-23T08:10:37.000Z
wagtaildocs_previews/tests/urls.py
filepreviews/wagtail-filepreviews
bce5f75214063de58c6ad33f887cbd6b44e38d1e
[ "MIT" ]
9
2017-04-17T13:42:46.000Z
2021-06-17T20:15:12.000Z
wagtaildocs_previews/tests/urls.py
mikiec84/wagtail-filepreviews
bce5f75214063de58c6ad33f887cbd6b44e38d1e
[ "MIT" ]
3
2017-04-19T14:55:33.000Z
2019-05-23T01:42:00.000Z
from __future__ import absolute_import, unicode_literals from django.conf.urls import include, url from wagtail.admin import urls as wagtailadmin_urls from wagtail.core import urls as wagtail_urls from wagtaildocs_previews import urls as wagtaildocs_urls urlpatterns = [ url(r'^admin/', include(wagtailadmin_urls...
27.666667
57
0.780723
56
415
5.553571
0.375
0.096463
0.115756
0
0
0
0
0
0
0
0
0
0.13012
415
14
58
29.642857
0.861496
0
0
0
0
0
0.043373
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b04cf4deda44ef822741ddb359e9ff3e30c79308
3,599
py
Python
chat/filters.py
jbbqqf/okapi
3db29ef1e15685fae304190bd176f75c4e367d03
[ "BSD-3-Clause" ]
null
null
null
chat/filters.py
jbbqqf/okapi
3db29ef1e15685fae304190bd176f75c4e367d03
[ "BSD-3-Clause" ]
null
null
null
chat/filters.py
jbbqqf/okapi
3db29ef1e15685fae304190bd176f75c4e367d03
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django_filters import (FilterSet, CharFilter, DateTimeFilter, NumberFilter, BooleanFilter) from guardian.shortcuts import get_objects_for_user from rest_framework import filters from chat.models import Post, Channel def get_readable_channel_ids(user): """ ...
38.287234
78
0.668797
422
3,599
5.549763
0.296209
0.038429
0.0538
0.040991
0.29462
0.24936
0.199829
0.093937
0.093937
0.093937
0
0.000367
0.24229
3,599
93
79
38.698925
0.858453
0.138927
0
0.185185
0
0
0.199076
0
0
0
0
0
0
1
0.055556
false
0
0.074074
0
0.592593
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
b04e0be02292ffc10d8d1a857e8126f2b7680dcc
1,343
py
Python
todo_api/services/todo_service.py
acuencadev/distributed-todo-api
99e5c613a256dd1f99d6fe093d940e3959a82a55
[ "MIT" ]
null
null
null
todo_api/services/todo_service.py
acuencadev/distributed-todo-api
99e5c613a256dd1f99d6fe093d940e3959a82a55
[ "MIT" ]
null
null
null
todo_api/services/todo_service.py
acuencadev/distributed-todo-api
99e5c613a256dd1f99d6fe093d940e3959a82a55
[ "MIT" ]
null
null
null
import uuid from typing import List, Optional from todo_api.extensions import db from todo_api.models import Todo def create_todo(text: str, user_id: int) -> Todo: todo = Todo(public_id=uuid.uuid4(), text=text, user_id=user_id) db.session.add(todo) db.session.commit() return todo def get_all_todo...
18.652778
78
0.68131
198
1,343
4.439394
0.212121
0.127418
0.085324
0.119454
0.466439
0.422071
0.326507
0.326507
0.326507
0.326507
0
0.000939
0.206999
1,343
71
79
18.915493
0.824413
0
0
0.45
0
0
0
0
0
0
0
0
0
1
0.175
false
0
0.1
0.025
0.525
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
b050bfc89edfcd2e231251e51b5d196593545d81
838
py
Python
simpleml/pipelines/__init__.py
ptoman/SimpleML
a829ee05da01a75b64982d91a012e9274b6f7c6e
[ "BSD-3-Clause" ]
15
2018-08-19T19:36:23.000Z
2021-11-09T17:47:18.000Z
simpleml/pipelines/__init__.py
ptoman/SimpleML
a829ee05da01a75b64982d91a012e9274b6f7c6e
[ "BSD-3-Clause" ]
75
2020-10-11T17:58:59.000Z
2022-03-29T22:34:54.000Z
simpleml/pipelines/__init__.py
ptoman/SimpleML
a829ee05da01a75b64982d91a012e9274b6f7c6e
[ "BSD-3-Clause" ]
4
2018-04-30T23:09:42.000Z
2022-01-19T08:03:18.000Z
''' Import modules to register class names in global registry Define convenience classes composed of different mixins ''' __author__ = 'Elisha Yadgaran' from .base_pipeline import Pipeline, AbstractPipeline, DatasetSequence, TransformedSequence from .validation_split_mixins import Split, SplitContainer, NoSplitMixi...
26.1875
92
0.806683
84
838
7.964286
0.559524
0.040359
0.044843
0.050822
0.185351
0.185351
0.185351
0.185351
0.185351
0.185351
0
0
0.146778
838
31
93
27.032258
0.935664
0.328162
0
0.333333
0
0
0.027125
0
0
0
0
0
0
1
0
false
0.333333
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b0572bc9f44bb37cf17c504096a70b4e51d1fb7b
1,046
py
Python
api/src/opentrons/config/gripper_config.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/config/gripper_config.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/config/gripper_config.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from dataclasses import dataclass import logging from typing import Tuple, Optional from typing_extensions import Literal log = logging.getLogger(__name__) GripperName = Literal["gripper"] GripperModel = Literal["gripper_v1"] DEFAULT_GRIPPER_CALIBRATION_OFFSET = [0.0, 0.0, 0.0] @...
23.244444
73
0.734226
139
1,046
5.258993
0.388489
0.030096
0.032832
0.032832
0.032832
0.032832
0.032832
0
0
0
0
0.03125
0.173996
1,046
44
74
23.772727
0.814815
0.030593
0
0
0
0
0.046443
0
0
0
0
0.022727
0
1
0.028571
false
0
0.142857
0.028571
0.485714
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
b0613f13e0b3363de438aa47b33a490b3bf1de59
710
py
Python
src/model/UrlMap.py
joyghosh/tiny
6717664e50c360e48976e209719ceb556dc9d130
[ "MIT" ]
1
2016-07-02T07:23:05.000Z
2016-07-02T07:23:05.000Z
src/model/UrlMap.py
joyghosh/tiny
6717664e50c360e48976e209719ceb556dc9d130
[ "MIT" ]
null
null
null
src/model/UrlMap.py
joyghosh/tiny
6717664e50c360e48976e209719ceb556dc9d130
[ "MIT" ]
null
null
null
''' Created on 02-Jul-2016 @author: Joy Ghosh @version: 1.0 @since: 1.0 ''' from flask_sqlalchemy import SQLAlchemy from restful.tiny_routes import app db = SQLAlchemy(app) class UrlMap(db.Model): ''' A model responsible for storing shortened to long url mapping. ''' id = db.Column('id', db.Integer, ...
24.482759
69
0.61831
98
710
4.357143
0.489796
0.093677
0.046838
0.065574
0.112412
0.112412
0
0
0
0
0
0.030075
0.250704
710
29
70
24.482759
0.772556
0.201408
0
0
0
0
0.034483
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b0632fabb0195c3d7eee0a801496408d4e9a7b70
472
py
Python
method2/utils.py
Kenneth111/BlindWatermark
e2efbc962f78eba88b7938c2b0b590ebeec87dc2
[ "MIT" ]
2
2019-04-11T17:20:09.000Z
2021-09-17T16:50:10.000Z
method2/utils.py
Kenneth111/BlindWatermark
e2efbc962f78eba88b7938c2b0b590ebeec87dc2
[ "MIT" ]
null
null
null
method2/utils.py
Kenneth111/BlindWatermark
e2efbc962f78eba88b7938c2b0b590ebeec87dc2
[ "MIT" ]
null
null
null
import numpy as np from scipy.fftpack import dct, idct def dct2(a): return dct( dct( a, axis=0, norm='ortho' ), axis=1, norm='ortho' ) def idct2(a): return idct( idct( a, axis=0 , norm='ortho'), axis=1 , norm='ortho') def binarizeImg(img): threshold = 200 table = [] for i in range( 256 ): ...
24.842105
72
0.57839
71
472
3.816901
0.492958
0.132841
0.04428
0.073801
0.236162
0.236162
0.236162
0.236162
0.236162
0.236162
0
0.041298
0.28178
472
19
73
24.842105
0.758112
0
0
0
0
0
0.042283
0
0
0
0
0
0
1
0.1875
false
0
0.125
0.125
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
b0642bbaca312bfcb6c78edd1c02e90025503a95
492
py
Python
tagannotator/base/migrations/0004_auto_20200113_0232.py
kixlab/suggestbot-instagram-context-annotator
c49947906d647f5cc6000ea2d35938f0c9ff4c68
[ "MIT" ]
null
null
null
tagannotator/base/migrations/0004_auto_20200113_0232.py
kixlab/suggestbot-instagram-context-annotator
c49947906d647f5cc6000ea2d35938f0c9ff4c68
[ "MIT" ]
null
null
null
tagannotator/base/migrations/0004_auto_20200113_0232.py
kixlab/suggestbot-instagram-context-annotator
c49947906d647f5cc6000ea2d35938f0c9ff4c68
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2020-01-13 02:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0003_auto_20200113_0225'), ] operations = [ migrations.RemoveField( model_name='photo', name='user', ...
21.391304
63
0.565041
51
492
5.333333
0.764706
0.066176
0.102941
0.132353
0
0
0
0
0
0
0
0.10119
0.317073
492
22
64
22.363636
0.708333
0.091463
0
0.25
1
0
0.103371
0.051685
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c65cda2c153b4de336378beac87ae37d005990d1
2,678
py
Python
htic/data.py
jenskutilek/HumbleTypeInstructionCompiler
99a16bfb085304b62ba11c29e70680ccaa7faa64
[ "MIT" ]
2
2018-09-18T00:11:32.000Z
2019-08-14T22:14:22.000Z
htic/data.py
jenskutilek/HumbleTypeInstructionCompiler
99a16bfb085304b62ba11c29e70680ccaa7faa64
[ "MIT" ]
null
null
null
htic/data.py
jenskutilek/HumbleTypeInstructionCompiler
99a16bfb085304b62ba11c29e70680ccaa7faa64
[ "MIT" ]
null
null
null
from __future__ import absolute_import from .error import HumbleError class Data(object): """Manage parsed data""" def __init__(self): self.gasp = [] """[(int size, bool doGridfit, bool doGray, bool symSmoothing, bool symGridfit)]""" self.maxp = {} """{string name : int value}""" self.cvt = [] """[i...
25.028037
85
0.705751
309
2,678
5.938511
0.242718
0.047956
0.054496
0.046322
0.19782
0.095913
0
0
0
0
0
0
0.163181
2,678
106
86
25.264151
0.818831
0.006721
0
0.135135
0
0
0.086095
0
0
0
0
0
0
1
0.216216
false
0
0.027027
0.013514
0.351351
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
c66405503462dc6df6570d18060641625ac31a9b
6,936
py
Python
src/RFDTypeDefinition.py
RFDaemoniac/ReadableFormattedData
ce2d15479722c09de697a51e641f98b852fe8ca2
[ "Unlicense" ]
1
2020-10-02T16:11:57.000Z
2020-10-02T16:11:57.000Z
src/RFDTypeDefinition.py
RFDaemoniac/ReadableFormattedData
ce2d15479722c09de697a51e641f98b852fe8ca2
[ "Unlicense" ]
6
2017-09-15T18:29:08.000Z
2018-02-22T05:13:07.000Z
src/RFDTypeDefinition.py
RFDaemoniac/ReadableFormattedData
ce2d15479722c09de697a51e641f98b852fe8ca2
[ "Unlicense" ]
null
null
null
import re import pprint import pdb from RFDUtilityFunctions import LogValidationCheck, LogError, GetInteger, GetBoolean, GetFloat, GetString, ParseValue class RootTypes(): Unspecified = 'Unspecified' Bool = 'Bool' Int = 'Int' Float = 'Float' String = 'String' Array = 'Array' Object = 'Object' Any = 'Any' All...
29.896552
164
0.755911
862
6,936
5.906032
0.190255
0.075427
0.033392
0.062856
0.268709
0.177175
0.132587
0.079749
0.058928
0.041249
0
0
0.153403
6,936
231
165
30.025974
0.866996
0.10842
0
0.275132
0
0
0.059128
0
0
0
0
0.004329
0
0
null
null
0.005291
0.021164
null
null
0.005291
0
0
0
null
0
0
0
0
0
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
c668c6ee09b76f7b34a6a02a4e3e6923bab8f28e
743
py
Python
oo/pessoa.py
DouglasPortela0403/pythonbirds
f1e8910b321297fd0fa3600caff57cce42913c03
[ "MIT" ]
null
null
null
oo/pessoa.py
DouglasPortela0403/pythonbirds
f1e8910b321297fd0fa3600caff57cce42913c03
[ "MIT" ]
null
null
null
oo/pessoa.py
DouglasPortela0403/pythonbirds
f1e8910b321297fd0fa3600caff57cce42913c03
[ "MIT" ]
null
null
null
class Pessoa: olhos = 2 def __init__(self, *filhos, nome=None, idade=None): self.nome = nome self.idade = idade self.filhos =list(filhos) def cumprimentar(self): return 'Olá' @staticmethod def metodo_estatico(): return 42 @classmethod def nome_e_atri...
20.638889
55
0.61642
94
743
4.595745
0.37234
0.083333
0.064815
0.074074
0.199074
0.097222
0
0
0
0
0
0.009058
0.257066
743
35
56
21.228571
0.773551
0
0
0.142857
0
0
0.052703
0
0
0
0
0
0
1
0.142857
false
0
0
0.107143
0.321429
0.357143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
c66ad5459b85bb506604441c241c7c32a7fd6370
81,610
py
Python
bin/nrcSpreadsheetScraper.py
SkyTruth/scraper
c1903a74c717a7b36a05f0f466c51544911c4499
[ "MIT" ]
2
2016-07-01T02:41:17.000Z
2020-04-04T16:16:55.000Z
bin/nrcSpreadsheetScraper.py
SkyTruth/scraper
c1903a74c717a7b36a05f0f466c51544911c4499
[ "MIT" ]
4
2015-01-14T17:00:12.000Z
2015-06-29T19:36:27.000Z
bin/nrcSpreadsheetScraper.py
SkyTruth/scraper
c1903a74c717a7b36a05f0f466c51544911c4499
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This document is part of scraper # https://github.com/SkyTruth/scraper # =================================================================================== # # # The MIT License (MIT) # # Copyright (c) 2014 SkyTruth # # Permission is hereby granted, free of charge, to any person obtainin...
38.861905
140
0.447911
7,005
81,610
5.03783
0.11606
0.010711
0.018249
0.024766
0.471097
0.417257
0.388495
0.348371
0.328535
0.307283
0
0.00452
0.354736
81,610
2,099
141
38.880419
0.665629
0.216665
0
0.409569
0
0.003828
0.241637
0.011453
0
0
0
0.002382
0
0
null
null
0.009569
0.011483
null
null
0.065072
0
0
0
null
0
0
0
0
0
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
c66d0285d8faed6d5c070e11531c2edd75167e83
3,197
py
Python
modules/infra/admin_piccolo/tables.py
Fates-List/BotList
48f300d9463ec551e21684e4853dd8a69d7633d5
[ "MIT" ]
17
2021-02-14T12:45:31.000Z
2022-02-10T18:35:08.000Z
modules/infra/admin_piccolo/tables.py
Fates-List/BotList
48f300d9463ec551e21684e4853dd8a69d7633d5
[ "MIT" ]
17
2021-04-13T15:42:07.000Z
2022-01-29T06:15:46.000Z
modules/infra/admin_piccolo/tables.py
Fates-List/BotList
48f300d9463ec551e21684e4853dd8a69d7633d5
[ "MIT" ]
5
2021-03-06T16:47:42.000Z
2021-12-03T16:23:10.000Z
import datetime from piccolo.columns.column_types import (UUID, Array, BigInt, Boolean, Float, ForeignKey, Integer, Secret, Text, Timestamptz, Varchar) from piccolo.columns.readable import Readable from piccolo.table import Table from...
37.611765
166
0.663434
382
3,197
5.424084
0.403141
0.030888
0.050676
0.02751
0.102317
0
0
0
0
0
0
0.004425
0.222396
3,197
84
167
38.059524
0.829043
0.016891
0
0.027027
0
0
0.092126
0
0
0
0
0
0
1
0.013514
false
0
0.067568
0.013514
0.959459
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
c66e727bc8ba804708b902d6f179b2ff01710620
656
py
Python
elements-of-programming-interviews/14.1.sorted-array-intersection.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
8
2019-05-14T12:50:29.000Z
2022-03-01T09:08:27.000Z
elements-of-programming-interviews/14.1.sorted-array-intersection.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
46
2019-03-24T20:59:29.000Z
2019-04-09T16:28:43.000Z
elements-of-programming-interviews/14.1.sorted-array-intersection.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
1
2022-01-28T12:46:29.000Z
2022-01-28T12:46:29.000Z
from typing import List def intersection(x: List[int], y: List[int]) -> List[int]: result = [] idx_x = idx_y = 0 while idx_x < len(x) and idx_y < len(y): if x[idx_x] == y[idx_y] and (not result or result[-1] != x[idx_x]): result.append(x[idx_x]) idx_x += 1 idx_...
22.62069
75
0.506098
111
656
2.864865
0.252252
0.100629
0.078616
0.188679
0.289308
0.289308
0.226415
0.226415
0
0
0
0.071429
0.317073
656
28
76
23.428571
0.638393
0
0
0.2
0
0
0
0
0
0
0
0
0.15
1
0.05
false
0
0.05
0
0.15
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
c6726f2e0959401a7de703a57c2e2502979af2e8
688
py
Python
src/semver/__init__.py
b0uh/python-semver
54a1af6fe62e98725d2f0d1eb175995681ca78ac
[ "BSD-3-Clause" ]
159
2019-11-14T11:47:44.000Z
2022-03-29T02:57:46.000Z
src/semver/__init__.py
b0uh/python-semver
54a1af6fe62e98725d2f0d1eb175995681ca78ac
[ "BSD-3-Clause" ]
146
2019-11-05T08:22:43.000Z
2022-03-04T18:59:52.000Z
src/semver/__init__.py
b0uh/python-semver
54a1af6fe62e98725d2f0d1eb175995681ca78ac
[ "BSD-3-Clause" ]
65
2015-04-12T11:36:38.000Z
2019-11-03T18:33:24.000Z
""" semver package major release 3. A Python module for semantic versioning. Simplifies comparing versions. """ from ._deprecated import ( bump_build, bump_major, bump_minor, bump_patch, bump_prerelease, compare, finalize_version, format_version, match, max_ver, min_ver, ...
17.2
71
0.68314
72
688
5.861111
0.638889
0.061611
0
0
0
0
0
0
0
0
0
0.001942
0.251453
688
39
72
17.641026
0.817476
0.151163
0
0
0
0
0
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
c6764f936caa6be30572087e1ef670a38f758b28
12,801
py
Python
build-support/mini-cluster/relocate_binaries_for_mini_cluster.py
granthenke/kudu
990bb4d134c8fd9bd4621cd2fb9827d47f623db7
[ "Apache-2.0" ]
2
2019-07-17T19:08:07.000Z
2019-07-17T19:13:25.000Z
build-support/mini-cluster/relocate_binaries_for_mini_cluster.py
granthenke/kudu
990bb4d134c8fd9bd4621cd2fb9827d47f623db7
[ "Apache-2.0" ]
null
null
null
build-support/mini-cluster/relocate_binaries_for_mini_cluster.py
granthenke/kudu
990bb4d134c8fd9bd4621cd2fb9827d47f623db7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The...
34.97541
102
0.702601
1,800
12,801
4.809444
0.22
0.014555
0.012706
0.014555
0.219476
0.163914
0.112395
0.084325
0.037888
0.028878
0
0.003561
0.188345
12,801
365
103
35.071233
0.829644
0.192876
0
0.137056
0
0
0.13417
0.002945
0
0
0
0.00274
0
0
null
null
0
0.050761
null
null
0.005076
0
0
0
null
0
0
0
0
0
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
c677c6de6e11be1aa3096b046263e94a8e1bd327
844
py
Python
SumOfPrimes.py
kevjames3/CodingChallenges
8bc0d37723711fb3a6045caf8ab33c4fbf59116f
[ "MIT" ]
null
null
null
SumOfPrimes.py
kevjames3/CodingChallenges
8bc0d37723711fb3a6045caf8ab33c4fbf59116f
[ "MIT" ]
null
null
null
SumOfPrimes.py
kevjames3/CodingChallenges
8bc0d37723711fb3a6045caf8ab33c4fbf59116f
[ "MIT" ]
null
null
null
''' Focus of this file is to determine the sum of the first 1000 prime numbers. ''' import random import math def isPrime(num): result = True if num > 2 and not (num % 2 == 0): #Use Fermat's little theorem a^n (mod n) = a (mod n). #If they equal each other, then that means that this #one is prime. Also, 2 <=...
23.444444
75
0.636256
133
844
3.962406
0.518797
0.02277
0.026565
0
0
0
0
0
0
0
0
0.031299
0.242891
844
36
76
23.444444
0.793427
0.186019
0
0.12
0
0
0.013311
0
0
0
0
0
0
0
null
null
0
0.08
null
null
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c67af4a27db6a09611c4b6105e90e38d28ef0e3e
350
py
Python
ventura/_hweb.py
HermesPasser/ventura
dad1803637e53a36a71740a1775f8c885533a730
[ "MIT" ]
null
null
null
ventura/_hweb.py
HermesPasser/ventura
dad1803637e53a36a71740a1775f8c885533a730
[ "MIT" ]
null
null
null
ventura/_hweb.py
HermesPasser/ventura
dad1803637e53a36a71740a1775f8c885533a730
[ "MIT" ]
null
null
null
import urllib.request as req import ventura._hpath as hpath import os def download(url, file_name): response = req.urlopen(url) # Create folders if need hpath.create_dir(file_name) file = open(file_name,'wb') file.write(response.read()) file.close() def get_page(url): response = req.urlopen(url) return r...
19.444444
38
0.734286
54
350
4.648148
0.555556
0.095618
0.143426
0.167331
0
0
0
0
0
0
0
0.003322
0.14
350
17
39
20.588235
0.830565
0.062857
0
0.166667
0
0
0.018405
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.5
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
c67b3bd1ae4d6acd002cf04cba1e9e4dd69ff68a
1,493
py
Python
pyramid_api/helper_types.py
shawnsarwar/pyramid_analytics_python
5a10deb14642e20be2c05fa2fc8acc33c995616a
[ "MIT" ]
null
null
null
pyramid_api/helper_types.py
shawnsarwar/pyramid_analytics_python
5a10deb14642e20be2c05fa2fc8acc33c995616a
[ "MIT" ]
null
null
null
pyramid_api/helper_types.py
shawnsarwar/pyramid_analytics_python
5a10deb14642e20be2c05fa2fc8acc33c995616a
[ "MIT" ]
null
null
null
from dataclasses import dataclass import json from string import Template from typing import Any from dataclasses_json import DataClassJsonMixin from . import api_types @dataclass class MetaData(DataClassJsonMixin): name: str = None dstPath: str = None modified: str = None @dataclass ...
28.169811
76
0.604153
165
1,493
5.278788
0.369697
0.032147
0.027555
0
0
0
0
0
0
0
0
0.000977
0.314133
1,493
52
77
28.711538
0.849609
0.026792
0
0.097561
0
0
0.009292
0
0
0
0
0
0
1
0.097561
false
0
0.146341
0
0.512195
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
c67ba6386ca477c6a32f6051052a5a165f78650e
675
py
Python
python/pynet/w01_03.py
bandarji/lekhan
211127a764f94189f0992fe2634c036258b3dc7b
[ "Apache-2.0" ]
null
null
null
python/pynet/w01_03.py
bandarji/lekhan
211127a764f94189f0992fe2634c036258b3dc7b
[ "Apache-2.0" ]
null
null
null
python/pynet/w01_03.py
bandarji/lekhan
211127a764f94189f0992fe2634c036258b3dc7b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Create three different variables the first variable should use all lower case characters with underscore ( _ ) as the word separator. The second variable should use all upper case characters with underscore as the word separator. The third variable should use numbers, letters, and undersco...
28.125
79
0.77037
100
675
5.11
0.63
0.082192
0.099804
0.078278
0.191781
0.191781
0.191781
0.191781
0.191781
0
0
0.010889
0.183704
675
23
80
29.347826
0.916515
0.02963
0
0
0
0
0.133333
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c68343a6f423ddcce92fc080bff23b750acde4c8
1,165
py
Python
weixin/framework/tornado.py
500-Error/weixin-SDK
d646ff34c58ca6a03ed6b08fb7c2b0c0fe244863
[ "MIT" ]
1
2017-12-01T11:17:22.000Z
2017-12-01T11:17:22.000Z
weixin/framework/tornado.py
500-Error/weixin-SDK
d646ff34c58ca6a03ed6b08fb7c2b0c0fe244863
[ "MIT" ]
null
null
null
weixin/framework/tornado.py
500-Error/weixin-SDK
d646ff34c58ca6a03ed6b08fb7c2b0c0fe244863
[ "MIT" ]
1
2019-03-29T16:59:11.000Z
2019-03-29T16:59:11.000Z
# encoding=utf-8 import functools import tornado.web from ..utils import is_valid_request def weixin_request_only(func): @functools.wraps(func) def _wrapper_(req): nts = map(lambda k: req.get_query_argument(k, ""), ['nonce', 'timestamp', 'signature']) nonce, timestamp, sig = n...
24.270833
59
0.607725
133
1,165
5.135338
0.473684
0.057101
0.074671
0
0
0
0
0
0
0
0
0.004854
0.292704
1,165
47
60
24.787234
0.824029
0.012017
0
0.060606
0
0
0.031332
0
0
0
0
0
0
1
0.212121
false
0
0.090909
0.030303
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c68c1e02a679c55698b82790575cc4a170003c27
515
py
Python
rrs_cleaner.py
mwweinberg/red_raid_squeakquel
b6512892e85b59ba23ec0789395427458cf222fc
[ "CC0-1.0" ]
null
null
null
rrs_cleaner.py
mwweinberg/red_raid_squeakquel
b6512892e85b59ba23ec0789395427458cf222fc
[ "CC0-1.0" ]
null
null
null
rrs_cleaner.py
mwweinberg/red_raid_squeakquel
b6512892e85b59ba23ec0789395427458cf222fc
[ "CC0-1.0" ]
1
2019-03-18T15:42:43.000Z
2019-03-18T15:42:43.000Z
from bs4 import BeautifulSoup import urllib #sets the URLs h1 = "test_eng.html" h2 = "test2_eng.html" # need to either figure out how to skip "None" results or turn search_all into a string def headliner(url): soup = BeautifulSoup((open(url)), "lxml") head1 = soup.find_all(['h1','h2','h3']) head2 = soup.h2.st...
13.918919
87
0.67767
81
515
4.222222
0.580247
0.087719
0.105263
0.099415
0
0
0
0
0
0
0
0.052758
0.190291
515
36
88
14.305556
0.767386
0.332039
0
0
0
0
0.109467
0
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.230769
0
0
0
null
0
0
0
0
0
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
c68e7151a565be3e78ceb9413c050f4add5ee266
4,288
py
Python
NYK.py
innovationgarage/shipdash
265a21216e94474efc25e9b28d76aaf75503e784
[ "Apache-2.0" ]
null
null
null
NYK.py
innovationgarage/shipdash
265a21216e94474efc25e9b28d76aaf75503e784
[ "Apache-2.0" ]
null
null
null
NYK.py
innovationgarage/shipdash
265a21216e94474efc25e9b28d76aaf75503e784
[ "Apache-2.0" ]
null
null
null
import json import numpy as np import pandas as pd pd.options.mode.chained_assignment = None from sklearn.preprocessing import Imputer, StandardScaler import DataSource import os.path class NYK(DataSource.DataSource): def __init__(self, app, dsrc_name='', dsrc_type='csv', dsrc_path='data/', file_name='', header_r...
44.666667
188
0.628032
597
4,288
4.378559
0.323283
0.045907
0.019893
0.013772
0.259373
0.214231
0.199694
0.100995
0.100995
0.100995
0
0.030881
0.229711
4,288
95
189
45.136842
0.760521
0.10541
0
0.136986
0
0
0.064059
0
0
0
0
0.010526
0
1
0.082192
false
0
0.082192
0
0.232877
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
c6979e7e1433dc806dd54e96b942f8067b7a4292
731
py
Python
src/robusta/runner/main.py
shahar-lev/robusta
dbee478f2dc3c9757c091b6f55d7ea023711eb7c
[ "MIT" ]
null
null
null
src/robusta/runner/main.py
shahar-lev/robusta
dbee478f2dc3c9757c091b6f55d7ea023711eb7c
[ "MIT" ]
null
null
null
src/robusta/runner/main.py
shahar-lev/robusta
dbee478f2dc3c9757c091b6f55d7ea023711eb7c
[ "MIT" ]
null
null
null
import os import os.path from inspect import getmembers import manhole from .log_init import init_logging from .web import Web from ..core.playbooks.playbooks_event_handler_impl import PlaybooksEventHandlerImpl from .. import api as robusta_api from .config_loader import ConfigLoader from ..model.config import Registr...
26.107143
83
0.746922
90
731
5.833333
0.455556
0.091429
0.07619
0
0
0
0
0
0
0
0
0
0.157319
731
27
84
27.074074
0.852273
0.010944
0
0
0
0
0.042996
0
0
0
0
0
0
1
0.045455
false
0
0.454545
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c697a5200326427c179709b347abf0e52806d459
1,797
py
Python
app/recipe/views.py
HHHMHA/recipe-app-api
272da0dc2fe6d926fe8cd57778734f9178d1cc73
[ "MIT" ]
1
2021-01-11T23:28:59.000Z
2021-01-11T23:28:59.000Z
app/recipe/views.py
HHHMHA/recipe-app-api
272da0dc2fe6d926fe8cd57778734f9178d1cc73
[ "MIT" ]
null
null
null
app/recipe/views.py
HHHMHA/recipe-app-api
272da0dc2fe6d926fe8cd57778734f9178d1cc73
[ "MIT" ]
null
null
null
from rest_framework import viewsets, mixins from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from .serializers import TagSerializer, IngredientSerializer, RecipeSerializer from core.models import Tag, Ingredient, Recipe class BaseRecipeAttrViewSet(vi...
32.089286
78
0.722315
181
1,797
7.082873
0.39779
0.034321
0.039782
0.044462
0.25273
0.187207
0.074883
0.074883
0.074883
0.074883
0
0
0.1931
1,797
55
79
32.672727
0.884138
0.17251
0
0.206897
0
0
0.003446
0
0
0
0
0
0
1
0.103448
false
0
0.172414
0
0.827586
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
c6987ddf714201510c5db211088be92e86c589f0
931
py
Python
tests/support/sample_app/serializers.py
proteanhq/flask-authentic
05bd643927fa2721bf0a7294d9c7e53e71e88a89
[ "BSD-3-Clause" ]
3
2018-08-24T17:09:32.000Z
2020-06-22T03:03:28.000Z
tests/support/sample_app/serializers.py
proteanhq/flask-authentic
05bd643927fa2721bf0a7294d9c7e53e71e88a89
[ "BSD-3-Clause" ]
1
2019-03-14T07:27:06.000Z
2019-03-14T07:27:06.000Z
tests/support/sample_app/serializers.py
proteanhq/flask-authentic
05bd643927fa2721bf0a7294d9c7e53e71e88a89
[ "BSD-3-Clause" ]
1
2020-06-22T03:03:29.000Z
2020-06-22T03:03:29.000Z
""" Serializers used by the sample app """ from authentic.entities import Account from protean.context import context from protean_flask.core.serializers import EntitySerializer from protean_flask.core.serializers import ma from .entities import Human class AccountSerializer(EntitySerializer): """ Serializer for...
28.212121
70
0.669173
104
931
5.894231
0.490385
0.053834
0.052202
0.065253
0.120718
0.120718
0
0
0
0
0
0
0.22986
931
32
71
29.09375
0.854951
0.136412
0
0.1
0
0
0.109255
0
0
0
0
0
0
1
0.05
false
0
0.25
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c6a3834fe1f8eaa7a295b542063ea087e361166a
4,522
py
Python
raysect/core/math/cython/tests/test_tetrahedra.py
raysect/source
11f03089d0379fc7fb4d23c6f60c3d255673cec9
[ "BSD-3-Clause" ]
71
2015-10-25T16:50:18.000Z
2022-03-02T03:46:19.000Z
raysect/core/math/cython/tests/test_tetrahedra.py
raysect/source
11f03089d0379fc7fb4d23c6f60c3d255673cec9
[ "BSD-3-Clause" ]
336
2015-02-11T22:39:54.000Z
2022-02-22T18:42:32.000Z
raysect/core/math/cython/tests/test_tetrahedra.py
raysect/source
11f03089d0379fc7fb4d23c6f60c3d255673cec9
[ "BSD-3-Clause" ]
24
2016-09-11T17:12:10.000Z
2022-02-24T22:57:09.000Z
# Copyright (c) 2014-2021, Dr Alex Meakins, Raysect Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
56.525
126
0.684653
706
4,522
4.332861
0.259207
0.125531
0.058843
0.129454
0.532527
0.49101
0.49101
0.49101
0.461589
0.461589
0
0.099114
0.201238
4,522
79
127
57.240506
0.747785
0.408669
0
0
0
0
0.003044
0
0
0
0
0
0.62069
1
0.034483
false
0
0.103448
0
0.172414
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
c6a3e4db19b17779f2cb2ee302d2b09758a55aab
4,318
py
Python
test_relation.py
melahi/my-tensorflow-layers
13f4749a069de1997fdd5a94c65482054df40df9
[ "Apache-2.0" ]
1
2020-01-09T07:23:33.000Z
2020-01-09T07:23:33.000Z
test_relation.py
melahi/my-tensorflow-layers
13f4749a069de1997fdd5a94c65482054df40df9
[ "Apache-2.0" ]
null
null
null
test_relation.py
melahi/my-tensorflow-layers
13f4749a069de1997fdd5a94c65482054df40df9
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow.python.keras import testing_utils, backend from tensorflow.python.keras.utils import get_custom_objects from tensorflow.python.platform import test from relation import Relation class RelationTest(test.TestCase): @staticmethod def test_relation_lay...
42.333333
98
0.428439
435
4,318
4.133333
0.372414
0.046719
0.077864
0.027809
0.191324
0.191324
0.163515
0.124583
0.083426
0.083426
0
0.22326
0.454377
4,318
101
99
42.752475
0.539898
0
0
0.071429
0
0
0.037517
0
0
0
0
0
0.02381
1
0.02381
false
0
0.071429
0
0.107143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6b27776ca80f3389381922c6f58f5a5b88f155c
376
py
Python
setup.py
Pratilipi-Labs/python-logware
ce8945a37f1ffc453ad87bbb54aba22f168cb723
[ "MIT" ]
null
null
null
setup.py
Pratilipi-Labs/python-logware
ce8945a37f1ffc453ad87bbb54aba22f168cb723
[ "MIT" ]
null
null
null
setup.py
Pratilipi-Labs/python-logware
ce8945a37f1ffc453ad87bbb54aba22f168cb723
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='logware', version='0.1.4', description='Logging middleware for python web services', url='https://github.com/Pratilipi-Labs/python-logware', author='Giridhar', author_email='samanth.giridhar@gmail.com', license='MIT', packages=['logware'], instal...
25.066667
61
0.664894
44
376
5.613636
0.840909
0
0
0
0
0
0
0
0
0
0
0.009804
0.18617
376
14
62
26.857143
0.797386
0
0
0
0
0
0.401596
0.069149
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
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
c6b43993e5e68eba45091eb529c6d421f6d9393a
1,149
py
Python
run/index-correct.py
ai-ku/uwsd
a74c5c8ebb668a2a1e6156a4b1570dfaa762e931
[ "MIT" ]
3
2015-08-23T04:12:38.000Z
2022-02-05T23:30:06.000Z
run/index-correct.py
ai-ku/uwsd
a74c5c8ebb668a2a1e6156a4b1570dfaa762e931
[ "MIT" ]
null
null
null
run/index-correct.py
ai-ku/uwsd
a74c5c8ebb668a2a1e6156a4b1570dfaa762e931
[ "MIT" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- __author__ = "Osman Baskaya" import sys from collections import defaultdict as dd from nlp_utils import fopen pos_file = sys.argv[1] aw_file = sys.argv[2] TAG = "-NONE-" aw_lines = fopen(aw_file).readlines() indices = dd(list) for line in aw_lines: line = line.split() ...
23.9375
49
0.596171
176
1,149
3.744318
0.352273
0.031866
0.059181
0.051593
0
0
0
0
0
0
0
0.00949
0.266319
1,149
47
50
24.446809
0.772242
0.08094
0
0.081081
0
0
0.019962
0
0
0
0
0
0
0
null
null
0
0.081081
null
null
0.027027
0
0
0
null
0
0
0
0
0
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
c6b5bedb112e3777385e450942bb492673fec5b1
719
py
Python
2017/d5/jumps.py
remarkablerocket/advent-of-code
2a9dd69c29311e8173ae1ccd5f77923a66f57539
[ "MIT" ]
null
null
null
2017/d5/jumps.py
remarkablerocket/advent-of-code
2a9dd69c29311e8173ae1ccd5f77923a66f57539
[ "MIT" ]
null
null
null
2017/d5/jumps.py
remarkablerocket/advent-of-code
2a9dd69c29311e8173ae1ccd5f77923a66f57539
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from operator import eq as isequal def import_input(path): with open(path, encoding='utf-8') as infile: return [int(line) for line in infile] instructions = import_input("input.txt") class Jumper: def __init__(self, instructions): self.instructions = instructions ...
21.147059
48
0.566064
86
719
4.662791
0.488372
0.279302
0.169576
0.089776
0
0
0
0
0
0
0
0.018557
0.325452
719
33
49
21.787879
0.808247
0.029207
0
0
0
0
0.020086
0
0
0
0
0
0
1
0.136364
false
0
0.136364
0
0.409091
0.045455
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
c6c1b2b80a8e521f4b428e80eba14b8dec873017
1,837
py
Python
main.py
roesel/growth
e4e58c1f7fdbb42f381b0f90b8d20c9d0d9ade02
[ "CC0-1.0" ]
1
2021-11-30T09:16:38.000Z
2021-11-30T09:16:38.000Z
main.py
roesel/growth
e4e58c1f7fdbb42f381b0f90b8d20c9d0d9ade02
[ "CC0-1.0" ]
null
null
null
main.py
roesel/growth
e4e58c1f7fdbb42f381b0f90b8d20c9d0d9ade02
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The main script to run, enables profiling. ''' import numpy as np import math from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from crystal import * from plot_init_tools import * def main(num_of_growths): ''' Main method to start simulation. Uncomment specific ...
22.402439
95
0.609145
256
1,837
4.199219
0.390625
0.032558
0.07814
0.059535
0.326512
0.292093
0.271628
0.271628
0.271628
0.271628
0
0.016082
0.255308
1,837
81
96
22.679012
0.769737
0.559608
0
0
0
0
0.051282
0
0
0
0
0
0
1
0.1
false
0
0.4
0
0.5
0.05
0
0
0
null
0
0
0
0
0
0
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
c6cbbbb5931a3a712cb8e636f9094972ba9c59df
581
py
Python
backend/apps/users/urls.py
tomoya-kwansei/emonotateV2
33cfebdbe5bf4f29016e42ac426e0d3dbf0396ab
[ "MIT" ]
null
null
null
backend/apps/users/urls.py
tomoya-kwansei/emonotateV2
33cfebdbe5bf4f29016e42ac426e0d3dbf0396ab
[ "MIT" ]
null
null
null
backend/apps/users/urls.py
tomoya-kwansei/emonotateV2
33cfebdbe5bf4f29016e42ac426e0d3dbf0396ab
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from django.conf.urls import url, include from .views import * router = DefaultRouter() router.register(r'users', UserViewSet) router.register(r'curves', CurveViewSet, basename='curves') router.register(r'contents', ContentViewSet, basename='contents') router.register(r...
41.5
71
0.796902
68
581
6.764706
0.455882
0.182609
0.195652
0
0
0
0
0
0
0
0
0.003704
0.070568
581
13
72
44.692308
0.848148
0
0
0
0
0
0.158348
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
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
c6cf75e045480df1f26cc4bb7506d4d8be86a608
741
py
Python
variants/migrations/0013_smallvariantflags_flag_summary.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
14
2019-09-30T12:44:17.000Z
2022-02-04T14:45:16.000Z
variants/migrations/0013_smallvariantflags_flag_summary.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
244
2021-03-26T15:13:15.000Z
2022-03-31T15:48:04.000Z
variants/migrations/0013_smallvariantflags_flag_summary.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
8
2020-05-19T21:55:13.000Z
2022-03-31T07:02:58.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-11-14 19:30 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("variants", "0012_auto_20181114_1914")] operations = [ migrations.AddField( ...
26.464286
60
0.504723
62
741
5.854839
0.774194
0
0
0
0
0
0
0
0
0
0
0.077253
0.37112
741
27
61
27.444444
0.701717
0.093117
0
0
1
0
0.186846
0.03438
0
0
0
0
0
1
0
false
0
0.1
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6d25f2d82d7ca406f4ce3f889793e6df5b302ec
263
py
Python
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/project/viewmodels/project_fortesting_list_view.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
6
2018-11-26T08:42:52.000Z
2020-06-01T08:33:48.000Z
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/project/viewmodels/project_fortesting_list_view.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
null
null
null
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/project/viewmodels/project_fortesting_list_view.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
1
2019-01-22T06:45:36.000Z
2019-01-22T06:45:36.000Z
#coding=utf-8 ''' Created on 2015-10-10 @author: Devuser ''' class ProjectFortestingList(object): def __init__(self,fullpart,isversion,fortestings): self.fullpart=fullpart self.isversion=isversion self.fortestings=fortestings
16.4375
54
0.695817
28
263
6.392857
0.642857
0.134078
0
0
0
0
0
0
0
0
0
0.042654
0.197719
263
15
55
17.533333
0.805687
0.197719
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6e3f24bd775edbc9fe98c310983df8a43e32fa2
21,469
py
Python
src/datafinder/core/configuration/properties/property_type.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
9
2016-05-25T06:12:52.000Z
2021-04-30T07:22:48.000Z
src/datafinder/core/configuration/properties/property_type.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
6
2016-03-29T13:38:18.000Z
2017-01-18T15:57:42.000Z
src/datafinder/core/configuration/properties/property_type.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
7
2016-06-15T12:01:22.000Z
2022-03-05T08:50:25.000Z
# $Filename$ # $Authors$ # Last Changed: $Date$ $Committer$ $Revision-Id$ # # Copyright (c) 2003-2011, German Aerospace Center (DLR) # All rights reserved. # #Redistribution and use in source and binary forms, with or without # #modification, are permitted provided that the following conditions are #met: # ...
39.610701
111
0.608226
1,963
21,469
6.515028
0.197147
0.030026
0.044961
0.026038
0.359059
0.331457
0.306983
0.28243
0.244038
0.232074
0
0.00116
0.317155
21,469
541
112
39.683919
0.871214
0.083609
0
0.415842
0
0
0.054333
0
0
0
0
0
0
0
null
null
0.0033
0.056106
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
c6e9c451a345163dd8ad57191a900a2f72769111
1,276
py
Python
faravdms/account/views.py
samcodesio/faravdms_active
cab6e8973db074c287da97afbfe739e23e4b1f35
[ "Apache-2.0" ]
null
null
null
faravdms/account/views.py
samcodesio/faravdms_active
cab6e8973db074c287da97afbfe739e23e4b1f35
[ "Apache-2.0" ]
null
null
null
faravdms/account/views.py
samcodesio/faravdms_active
cab6e8973db074c287da97afbfe739e23e4b1f35
[ "Apache-2.0" ]
1
2021-12-21T16:39:20.000Z
2021-12-21T16:39:20.000Z
from django.shortcuts import redirect, render from django.http import HttpResponse from django.contrib.auth.models import User, auth from django.contrib import messages from django.contrib.auth.forms import UserCreationForm from .forms import CreateUserForm from django.contrib.auth.decorators import login_required # ...
28.355556
70
0.653605
144
1,276
5.756944
0.340278
0.072376
0.082027
0.075995
0.062726
0
0
0
0
0
0
0
0.245298
1,276
45
71
28.355556
0.860852
0.043103
0
0.151515
0
0
0.078818
0
0
0
0
0
0
1
0.090909
false
0.060606
0.212121
0
0.484848
0.030303
0
0
0
null
0
0
0
0
0
0
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
c6ef95722fa713edcdc0ac5d717a183abf66c833
205
py
Python
cfg.py
CharlesPikachu/DeepDream
4f04c2a3bff8c49fd94384aa1eb43b1129e806a7
[ "MIT" ]
15
2019-11-19T14:52:53.000Z
2022-03-08T01:49:59.000Z
cfg.py
CharlesPikachu/DeepDream
4f04c2a3bff8c49fd94384aa1eb43b1129e806a7
[ "MIT" ]
1
2021-11-19T14:08:37.000Z
2021-11-19T14:08:37.000Z
cfg.py
CharlesPikachu/DeepDream
4f04c2a3bff8c49fd94384aa1eb43b1129e806a7
[ "MIT" ]
5
2020-02-15T02:18:03.000Z
2021-03-30T15:28:56.000Z
'''config file''' MEANS = [0.485, 0.456, 0.406] STDS = [0.229, 0.224, 0.225] MAX_JITTER = 32 MAX_ITERS = 50 LEARNING_RATE = 2e-2 NUM_OCTAVES = 6 OCTAVE_SCALE = 1.4 SAVE_INTERVAL = 10 SAVEDIR = 'results'
15.769231
29
0.668293
38
205
3.447368
0.842105
0
0
0
0
0
0
0
0
0
0
0.205882
0.170732
205
12
30
17.083333
0.564706
0.053659
0
0
0
0
0.037234
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
c6f855aac077f916d78d149654047923f5f5d906
2,042
py
Python
src/modules/resnet18.py
lkm2835/ELimNet
c6eb9c26727967531a570ebabdd9dbf65404ebd6
[ "MIT" ]
6
2021-12-03T04:09:24.000Z
2021-12-11T12:18:18.000Z
src/modules/resnet18.py
lkm2835/ELimNet
c6eb9c26727967531a570ebabdd9dbf65404ebd6
[ "MIT" ]
12
2021-12-04T06:42:13.000Z
2021-12-07T04:59:56.000Z
src/modules/resnet18.py
lkm2835/ELimNet
c6eb9c26727967531a570ebabdd9dbf65404ebd6
[ "MIT" ]
2
2021-12-03T11:09:42.000Z
2021-12-08T17:54:50.000Z
import torch from torch import nn as nn from src.modules.base_generator import GeneratorAbstract from torchvision import models class Resnet18(nn.Module): def __init__(self, in_channel: int, out_channel: int, pretrained: bool): """ Args: in_channel: input channels. out_c...
27.972603
78
0.574437
247
2,042
4.587045
0.287449
0.13504
0.111209
0.048544
0.127979
0.063548
0.063548
0.063548
0
0
0
0.041096
0.320764
2,042
73
79
27.972603
0.775775
0.090597
0
0.104167
0
0
0.017768
0
0
0
0
0.013699
0
1
0.104167
false
0.020833
0.083333
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c6fd25df5b07b0c4620571602b2474b62cdbc4b9
588
py
Python
chainer/utils/argument.py
takeratta/chainer
02686e98cd6dc8f20979a1f3a79130f076cbfc6c
[ "MIT" ]
2
2018-02-05T07:25:48.000Z
2018-08-28T20:29:45.000Z
chainer/utils/argument.py
takeratta/chainer
02686e98cd6dc8f20979a1f3a79130f076cbfc6c
[ "MIT" ]
null
null
null
chainer/utils/argument.py
takeratta/chainer
02686e98cd6dc8f20979a1f3a79130f076cbfc6c
[ "MIT" ]
1
2018-08-23T01:34:57.000Z
2018-08-23T01:34:57.000Z
def check_unexpected_kwargs(kwargs, **unexpected): for key, message in unexpected.items(): if key in kwargs: raise ValueError(message) def parse_kwargs(kwargs, *name_and_values): values = [kwargs.pop(name, default_value) for name, default_value in name_and_values] if kwar...
30.947368
71
0.659864
78
588
4.820513
0.461538
0.095745
0.090426
0
0
0
0
0
0
0
0
0
0.232993
588
18
72
32.666667
0.833703
0.057823
0
0
0
0
0.077899
0
0
0
0
0
0.076923
1
0.230769
false
0
0
0
0.307692
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
059f871d2f7aa5dd5cbb50e76593207fa6f94466
2,154
py
Python
pysite/mixins.py
schwartzadev/site
a4638db6138487b23f0fd863f72bf57ec98065c6
[ "MIT" ]
null
null
null
pysite/mixins.py
schwartzadev/site
a4638db6138487b23f0fd863f72bf57ec98065c6
[ "MIT" ]
null
null
null
pysite/mixins.py
schwartzadev/site
a4638db6138487b23f0fd863f72bf57ec98065c6
[ "MIT" ]
null
null
null
# coding=utf-8 from flask import Blueprint from rethinkdb.ast import Table from _weakref import ref from pysite.database import RethinkDB class DBMixin(): """ Mixin for classes that make use of RethinkDB. It can automatically create a table with the specified primary key using the attributes set at class...
34.741935
115
0.65831
284
2,154
4.890845
0.419014
0.057595
0.053996
0.023038
0
0
0
0
0
0
0
0.000619
0.249768
2,154
61
116
35.311475
0.858911
0.565924
0
0.095238
0
0
0.118081
0.04059
0
0
0
0
0
1
0.142857
false
0
0.190476
0.095238
0.571429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
05a0ee26a39398d721f5b968e43baedb2ef7e66b
1,858
py
Python
python/AnalysisLaunchers/get_analysis.py
FabricGenomics/omicia_api_examples
b761d40744032720bdf1a4f59877e16b8b1dfcf0
[ "MIT" ]
2
2017-06-13T13:59:17.000Z
2021-12-17T18:52:08.000Z
python/AnalysisLaunchers/get_analysis.py
FabricGenomics/omicia_api_examples
b761d40744032720bdf1a4f59877e16b8b1dfcf0
[ "MIT" ]
1
2017-11-22T00:20:19.000Z
2017-11-22T00:41:05.000Z
python/AnalysisLaunchers/get_analysis.py
FabricGenomics/omicia_api_examples
b761d40744032720bdf1a4f59877e16b8b1dfcf0
[ "MIT" ]
3
2020-03-05T18:41:36.000Z
2021-01-14T08:31:30.000Z
"""Get an analysis, or all analyses in the workspace. Example usages: python get_analysis.py --id 1802 python get_analysis.py """ import os import requests from requests.auth import HTTPBasicAuth import sys import simplejson as json import argparse # Load environment variables for request authentication parameters ...
30.459016
91
0.718515
258
1,858
4.930233
0.333333
0.099057
0.066824
0.029874
0.166667
0.166667
0.117925
0.117925
0.070755
0.070755
0
0.003243
0.170075
1,858
60
92
30.966667
0.82166
0.165231
0
0.054054
0
0
0.215264
0
0
0
0
0
0
1
0.054054
false
0.108108
0.162162
0
0.243243
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
05a23c311ed0ca6df0c526d7d2f18f01a7f8f9b6
3,630
py
Python
elfinder/exceptions.py
vikifox/CMDB
bac9b7da204c3eee344f55bb2187df38ef3b3d4c
[ "Apache-2.0" ]
16
2020-08-13T04:28:50.000Z
2021-06-10T06:24:51.000Z
elfinder/exceptions.py
ppetrid/yawd-elfinder
955d39c8194ee61f1e24f5cd5e4530bb0e6e9b3c
[ "BSD-3-Clause" ]
2
2016-02-14T23:53:28.000Z
2016-12-09T21:15:14.000Z
elfinder/exceptions.py
ppetrid/yawd-elfinder
955d39c8194ee61f1e24f5cd5e4530bb0e6e9b3c
[ "BSD-3-Clause" ]
24
2015-03-25T11:03:01.000Z
2018-12-04T10:14:11.000Z
from django.utils.translation import ugettext as _ class ElfinderErrorMessages: """ Standard error message codes, the text message of which is handled by the elFinder client """ ERROR_UNKNOWN = 'errUnknown' ERROR_UNKNOWN_CMD = 'errUnknownCmd' ERROR_CONF = 'errConf' ERROR_CONF_NO_JSON ...
41.724138
137
0.719008
407
3,630
6.044226
0.425061
0.022764
0.026829
0.04065
0.077642
0.026829
0
0
0
0
0
0.003385
0.186226
3,630
87
138
41.724138
0.829384
0.199174
0
0.071429
0
0
0.217193
0
0
0
0
0
0
1
0.085714
false
0
0.014286
0
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
05a7e9f9f674017948bc9d39cea6ef0baa5ccde9
550
py
Python
tests/conftest.py
mattip/numpy-threading-extensions
9d1acc7620905572cdfb6730cf23b5aaf155a3f8
[ "MIT" ]
null
null
null
tests/conftest.py
mattip/numpy-threading-extensions
9d1acc7620905572cdfb6730cf23b5aaf155a3f8
[ "MIT" ]
null
null
null
tests/conftest.py
mattip/numpy-threading-extensions
9d1acc7620905572cdfb6730cf23b5aaf155a3f8
[ "MIT" ]
null
null
null
import numpy as np import pytest from packaging.utils import Version import fast_numpy_loops old_numpy = Version(np.__version__) < Version('1.18') @pytest.fixture(scope='session') def initialize_fast_numpy_loops(): fast_numpy_loops.initialize() @pytest.fixture(scope='function') def rng(): if old_numpy: ...
23.913043
53
0.687273
72
550
5.041667
0.472222
0.07438
0.115702
0
0
0
0
0
0
0
0
0.025463
0.214545
550
22
54
25
0.814815
0
0
0
0
0
0.034545
0
0
0
0
0
0
1
0.105263
false
0.052632
0.210526
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
05af1e52f354f8f5935ac47f980749e330de992a
448
py
Python
test/test_io.py
thomasleese/fitbod-analysis
d7443b4272915884639e6475461eee318fd4b6ff
[ "MIT" ]
null
null
null
test/test_io.py
thomasleese/fitbod-analysis
d7443b4272915884639e6475461eee318fd4b6ff
[ "MIT" ]
null
null
null
test/test_io.py
thomasleese/fitbod-analysis
d7443b4272915884639e6475461eee318fd4b6ff
[ "MIT" ]
null
null
null
from pathlib import Path from unittest import TestCase from gains.io import FitbodLoader class TestFitbodLoader(TestCase): data_filename = Path(__file__).parent / "data.csv" def test_loading_data(self): loader = FitbodLoader(self.data_filename) analysis = loader.analysis exercises ...
23.578947
59
0.71875
52
448
6.019231
0.596154
0.076677
0
0
0
0
0
0
0
0
0
0.019499
0.198661
448
18
60
24.888889
0.852368
0
0
0
0
0
0.017857
0
0
0
0
0
0.181818
1
0.090909
false
0
0.272727
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
05b45cfc287a01a24c2389805b2c11ed663b6bd1
345
py
Python
100DaysOfDays/Dia07/ex32.py
giselemanuel/programming-challenges
c7f37685989190b71ed7ec773f1dc407fd961cf1
[ "MIT" ]
null
null
null
100DaysOfDays/Dia07/ex32.py
giselemanuel/programming-challenges
c7f37685989190b71ed7ec773f1dc407fd961cf1
[ "MIT" ]
null
null
null
100DaysOfDays/Dia07/ex32.py
giselemanuel/programming-challenges
c7f37685989190b71ed7ec773f1dc407fd961cf1
[ "MIT" ]
null
null
null
""" Exercício Python 32: Faça um programa que leia um ano qualquer e mostre se ele é bissexto. """ print("-" * 40) print(f'{"Ano Bissexto":^40}') print("-" * 40) ano = int(input("Insira um ano: ")) if ano % 4 == 0 and ano % 100 == 0 or ano % 400 == 0: print(f"O ano {ano} é BISSEXTO !!!") else: print(f'Este {...
24.642857
90
0.591304
59
345
3.457627
0.559322
0.132353
0
0
0
0
0
0
0
0
0
0.066421
0.214493
345
14
91
24.642857
0.686347
0.26087
0
0.25
0
0
0.370968
0
0
0
0
0
0
1
0
false
0
0
0
0
0.625
0
0
0
null
0
0
0
0
0
0
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
05ba8a5ccd0644501753777241432cc030fa574a
1,342
py
Python
python-flask/mymodel.py
jirramounikapriyanka/sample-android-python-ml-app
5bbf324a0ee2829d8a322cfb5dd716a15313836f
[ "Apache-2.0" ]
null
null
null
python-flask/mymodel.py
jirramounikapriyanka/sample-android-python-ml-app
5bbf324a0ee2829d8a322cfb5dd716a15313836f
[ "Apache-2.0" ]
null
null
null
python-flask/mymodel.py
jirramounikapriyanka/sample-android-python-ml-app
5bbf324a0ee2829d8a322cfb5dd716a15313836f
[ "Apache-2.0" ]
null
null
null
import pandas as pd import pickle from sklearn.ensemble import RandomForestClassifier from sklearn.linear_model import SGDClassifier from sklearn.metrics import confusion_matrix, classification_report from sklearn.preprocessing import StandardScaler, LabelEncoder from sklearn.model_selection import train_test_spl...
37.277778
94
0.751863
200
1,342
4.89
0.495
0.067485
0.02863
0.022495
0
0
0
0
0
0
0
0.022222
0.128167
1,342
35
95
38.342857
0.813675
0.184054
0
0
0
0.043478
0.132004
0.075024
0
0
0
0
0
1
0
false
0
0.304348
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
05bdce660ed8bc337ce434089b05733546dae354
2,195
py
Python
btstock/db/db_mysql.py
huangxl-github/base-tushare-stock
fb4bf9a496c14e6361defeec7c7368cc50792263
[ "MIT" ]
5
2020-12-19T13:41:45.000Z
2021-11-08T08:09:43.000Z
btstock/db/db_mysql.py
huangxl-github/base-tushare-stock
fb4bf9a496c14e6361defeec7c7368cc50792263
[ "MIT" ]
null
null
null
btstock/db/db_mysql.py
huangxl-github/base-tushare-stock
fb4bf9a496c14e6361defeec7c7368cc50792263
[ "MIT" ]
3
2020-12-19T13:41:46.000Z
2021-11-08T08:09:44.000Z
#!/usr/bin/python #-*- coding: UTF-8 -*- import os from dbutils.pooled_db import PooledDB import pymysql class Mysql(object): 'Mysql element' def __init__(self): self.mysql_host = '127.0.0.1' self.user = 'root' self.password = '123456' self.db = 'tushare' self.conn_num = 5 self.port = 3306 self.pool = ...
25.523256
133
0.65877
354
2,195
3.918079
0.251412
0.034607
0.07354
0.077866
0.456381
0.456381
0.456381
0.456381
0.436914
0.436914
0
0.010947
0.167654
2,195
85
134
25.823529
0.748221
0.023235
0
0.481013
0
0
0.054267
0
0
0
0
0
0
1
0.151899
false
0.075949
0.037975
0
0.227848
0.012658
0
0
0
null
0
0
0
0
0
0
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
05bf987fe93cb235db09e2846a3c97b398a7c9b7
1,047
py
Python
test/sesqlite/avc/test.py
unibg-seclab/sesqlite
433ded6008e991792f0cf2c39e8276051589c805
[ "Apache-2.0" ]
10
2015-12-08T08:34:59.000Z
2021-06-09T10:21:31.000Z
test/sesqlite/avc/test.py
unibg-seclab/sesqlite
433ded6008e991792f0cf2c39e8276051589c805
[ "Apache-2.0" ]
null
null
null
test/sesqlite/avc/test.py
unibg-seclab/sesqlite
433ded6008e991792f0cf2c39e8276051589c805
[ "Apache-2.0" ]
2
2016-02-01T08:28:04.000Z
2020-11-25T22:27:26.000Z
#!/usr/bin/env python from subprocess import check_output import numpy as np from sys import argv def get_output(command): return map(int, check_output(command.split()).split()) tests = argv[1] if len(argv) > 1 else 1000 avc_first = get_output("./avctest/avctest %s 1" % tests) avc_other = get_output("./avctest/...
31.727273
63
0.721108
178
1,047
3.955056
0.219101
0.079545
0.028409
0.051136
0.284091
0.122159
0.068182
0
0
0
0
0.010917
0.125119
1,047
32
64
32.71875
0.757642
0.019102
0
0
0
0
0.18616
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
05c38714175541666935ac727a955bbbc056317d
8,525
py
Python
tests/util/test_requirements.py
pomes/valiant
786d417a7903d40e54136f645fdbe51575612902
[ "MIT" ]
2
2020-11-11T00:13:32.000Z
2021-04-26T08:31:28.000Z
tests/util/test_requirements.py
pomes/valiant
786d417a7903d40e54136f645fdbe51575612902
[ "MIT" ]
10
2020-03-15T00:09:23.000Z
2021-06-10T22:43:53.000Z
tests/util/test_requirements.py
pomes/valiant
786d417a7903d40e54136f645fdbe51575612902
[ "MIT" ]
null
null
null
"""Test for valiant.util.requirements. Copyright 2021 The Valiant Authors 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/licenses/LICENSE-2.0 Unless required by appli...
30.887681
92
0.503343
635
8,525
6.617323
0.225197
0.015707
0.099
0.123751
0.637792
0.612565
0.589719
0.562589
0.509043
0.456211
0
0.16153
0.368211
8,525
275
93
31
0.618641
0.091378
0
0.703704
0
0
0.289617
0.152641
0
0
0
0
0.024691
1
0.012346
false
0
0.020576
0
0.032922
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
05c4b5738c6f7f9d38ff7d0359efe91b56f0ecaa
2,694
py
Python
tests/test_mc_flow_sim.py
sthagen/python-mc_flow_sim
cba5594a48dd6b1f137433181d9847dc88fadfa5
[ "MIT" ]
1
2020-07-29T16:01:46.000Z
2020-07-29T16:01:46.000Z
tests/test_mc_flow_sim.py
sthagen/python-mc_flow_sim
cba5594a48dd6b1f137433181d9847dc88fadfa5
[ "MIT" ]
26
2020-07-29T12:00:14.000Z
2020-12-06T16:58:01.000Z
tests/test_mc_flow_sim.py
sthagen/python-mc_flow_sim
cba5594a48dd6b1f137433181d9847dc88fadfa5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=missing-docstring,unused-import,reimported import pytest # type: ignore import mc_flow_sim.mc_flow_sim as mc def test_walk_ok_empty_string(): empty = '' assert mc.walk(empty) is None def test_walk_ok_empty_list(): seq = [] assert mc.walk(seq) is None def...
22.45
75
0.665553
425
2,694
3.967059
0.181176
0.078885
0.123962
0.084816
0.596679
0.496441
0.455516
0.441281
0.441281
0.441281
0
0.010849
0.213066
2,694
119
76
22.638655
0.784434
0.034521
0
0.25641
0
0
0.09819
0.010782
0
0
0
0
0.179487
1
0.24359
false
0
0.025641
0
0.269231
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
05c91595f21d8992dffcbcc136f5ed08148157eb
860
py
Python
q4.py
cs-fullstack-2019-fall/codeassessment2-Deltonjr2
cf8c6a35133b1dd43e42c16cffd0e73e5d59c5b5
[ "Apache-2.0" ]
null
null
null
q4.py
cs-fullstack-2019-fall/codeassessment2-Deltonjr2
cf8c6a35133b1dd43e42c16cffd0e73e5d59c5b5
[ "Apache-2.0" ]
null
null
null
q4.py
cs-fullstack-2019-fall/codeassessment2-Deltonjr2
cf8c6a35133b1dd43e42c16cffd0e73e5d59c5b5
[ "Apache-2.0" ]
null
null
null
# ### Problem 4 # Write a program that allows users to compare words by their length. Implement a function called chk_strings that accepts 2 strings entered by the user and compares them by length # The function should return true if the first string parameter has more characters (i.e. longer) than the second string pa...
34.4
191
0.731395
142
860
4.415493
0.549296
0.087719
0.054226
0.073365
0
0
0
0
0
0
0
0.028818
0.193023
860
24
192
35.833333
0.87464
0.695349
0
0
0
0
0.113821
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
05c9baac097ed23b8ee4781c3f78d79ee42f6c5a
18,353
py
Python
001_Snake Game/snake.py
Guilhermeasper/Tutoriais
e52852ae42034570cee5ceb0c0c00e32bb615746
[ "MIT" ]
null
null
null
001_Snake Game/snake.py
Guilhermeasper/Tutoriais
e52852ae42034570cee5ceb0c0c00e32bb615746
[ "MIT" ]
null
null
null
001_Snake Game/snake.py
Guilhermeasper/Tutoriais
e52852ae42034570cee5ceb0c0c00e32bb615746
[ "MIT" ]
null
null
null
''' A biblioteca pygame é importada, juntamente do modulo locals dela, além disso o metodo randrange que usaremos para gerar numeros aleatórios para as posições da cobra e maçã ''' import pygame import pygame.locals from random import randrange print("Módulos importados com sucesso") ''' Utilizando um ...
39.639309
92
0.518498
2,117
18,353
4.448748
0.198394
0.023784
0.023784
0.032279
0.435974
0.370142
0.333829
0.305797
0.271608
0.259822
0
0.035929
0.393396
18,353
462
93
39.725108
0.810024
0.025554
0
0.458647
0
0
0.029704
0
0
0
0
0.047619
0
1
0.06015
false
0.003759
0.015038
0
0.097744
0.011278
0
0
0
null
0
0
0
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
05cbf6d9aa5e0ce83a7d20babf2873500dbc7243
4,772
py
Python
main.py
mangoprojectfactory/Bank-System
381437adfd584a9f7f6fdc6108ee40bcb3908244
[ "CC0-1.0" ]
null
null
null
main.py
mangoprojectfactory/Bank-System
381437adfd584a9f7f6fdc6108ee40bcb3908244
[ "CC0-1.0" ]
null
null
null
main.py
mangoprojectfactory/Bank-System
381437adfd584a9f7f6fdc6108ee40bcb3908244
[ "CC0-1.0" ]
null
null
null
class bank: def __init__(self): self.accountDict = {} def inputCheck(self, email, password): if email not in self.accountDict: return 'EmailNotFound' if self.accountDict[email]['password'] != password: return 'PasswrodError' return None def creat...
32.684932
159
0.559304
456
4,772
5.844298
0.27193
0.078049
0.060038
0.036023
0.206004
0.206004
0.162101
0.162101
0.162101
0.12758
0
0.004255
0.310562
4,772
146
160
32.684932
0.805775
0.010059
0
0.260163
0
0
0.2766
0.013565
0
0
0
0
0
1
0.073171
false
0.186992
0
0
0.243902
0.089431
0
0
0
null
0
0
0
0
0
0
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
05d2164881321bfa985b9c6f5ed65c77b491ca95
1,988
py
Python
molo/core/migrations/0018_remove_wagtail_forms.py
Ishma59/molo
4fd31df9266bc251e09e9339a132d3ccd4143c69
[ "BSD-2-Clause" ]
25
2015-09-26T13:45:30.000Z
2018-09-13T14:12:20.000Z
molo/core/migrations/0018_remove_wagtail_forms.py
Ishma59/molo
4fd31df9266bc251e09e9339a132d3ccd4143c69
[ "BSD-2-Clause" ]
510
2015-05-29T09:30:44.000Z
2018-12-11T09:08:11.000Z
molo/core/migrations/0018_remove_wagtail_forms.py
Ishma59/molo
4fd31df9266bc251e09e9339a132d3ccd4143c69
[ "BSD-2-Clause" ]
5
2020-03-26T19:30:13.000Z
2020-09-04T16:35:59.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-07-23 19:11 from __future__ import unicode_literals from django.db import migrations import molo.core.blocks import molo.core.models import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): ...
36.814815
632
0.631288
192
1,988
6.40625
0.473958
0.089431
0.12439
0.097561
0.20813
0.20813
0.105691
0.105691
0.105691
0.105691
0
0.022078
0.225352
1,988
53
633
37.509434
0.776623
0.034708
0
0.391304
1
0
0.180063
0.055324
0
0
0
0
0
1
0
false
0
0.152174
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
05d2fd7997953d7a01271b654e80de90764f5c33
1,729
py
Python
flash/build.py
mikeal/windmill
0f2b640d107bfaf6615184471f8e14ff2ecc8319
[ "Apache-2.0" ]
2
2015-06-23T17:34:58.000Z
2015-11-06T00:04:14.000Z
flash/build.py
mikeal/windmill
0f2b640d107bfaf6615184471f8e14ff2ecc8319
[ "Apache-2.0" ]
null
null
null
flash/build.py
mikeal/windmill
0f2b640d107bfaf6615184471f8e14ff2ecc8319
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import optparse import os import re import shutil # Location of compiler MXMLC_PATH = 'mxmlc -debug -verbose-stacktraces -incremental=true -compiler.strict -compiler.show-actionscript-warnings' # For replacing .as with .swf as_re = re.compile('\.as$|\.mxml$') def windmill(): cmd = MXMLC_PA...
28.344262
120
0.609023
218
1,729
4.747706
0.43578
0.042512
0.031884
0.04058
0.158454
0.063768
0.063768
0
0
0
0
0
0.250434
1,729
60
121
28.816667
0.798611
0.137073
0
0.170732
0
0.073171
0.30027
0.120108
0
0
0
0
0
0
null
null
0
0.097561
null
null
0.02439
0
0
0
null
0
0
0
0
0
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
05dae049a3e5113350f44df68d210a4e54f640d9
1,206
py
Python
app.py
jimzers/annotate-mock
a4e7acfa148fadfc7b9d5a2741c2deb7185491dc
[ "MIT" ]
null
null
null
app.py
jimzers/annotate-mock
a4e7acfa148fadfc7b9d5a2741c2deb7185491dc
[ "MIT" ]
null
null
null
app.py
jimzers/annotate-mock
a4e7acfa148fadfc7b9d5a2741c2deb7185491dc
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:pAASSSJFLFDSDF@localhost/annotate_mock_db' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app) class User(db.Model): __tablename__ = "users" ...
24.612245
104
0.695688
163
1,206
4.871166
0.368098
0.110831
0.138539
0.107053
0.298489
0.195214
0.195214
0.124685
0
0
0
0.023976
0.169983
1,206
48
105
25.125
0.769231
0
0
0.090909
0
0
0.130182
0.095357
0
0
0
0
0
1
0.060606
false
0
0.060606
0.030303
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
05e00467804af6dc580672c801f913e99e101c97
1,569
py
Python
phrasebook/views/general.py
DanCatchpole/phrasebook-django
4f85ec40626cbb97c659448ee06f2291c8f2918b
[ "MIT" ]
1
2020-11-10T17:31:56.000Z
2020-11-10T17:31:56.000Z
phrasebook/views/general.py
DanCatchpole/phrasebook-django
4f85ec40626cbb97c659448ee06f2291c8f2918b
[ "MIT" ]
null
null
null
phrasebook/views/general.py
DanCatchpole/phrasebook-django
4f85ec40626cbb97c659448ee06f2291c8f2918b
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.http import JsonResponse from django.shortcuts import render, redirect from django.utils.decorators import decorator_from_middleware from phrasebook.contexts import get_sidebar_args from phrasebook.middleware import FirstLoginMiddleware from phraseb...
34.866667
114
0.731676
185
1,569
5.978378
0.356757
0.05877
0.085895
0.131103
0.18264
0.057866
0
0
0
0
0
0.002996
0.14914
1,569
44
115
35.659091
0.825468
0
0
0.125
0
0
0.144678
0.063735
0
0
0
0
0
1
0.15625
false
0
0.21875
0.0625
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
05e1729dd7d22ff4f46a070aadbb151c2663b9a9
1,617
py
Python
ventanas_clases/bienvenidos.py
SilviaSanjose/Music_Project_DB_PyQt5
a5d99cae83cc11c12e98b05c627ae009cb6a93c1
[ "ISC" ]
null
null
null
ventanas_clases/bienvenidos.py
SilviaSanjose/Music_Project_DB_PyQt5
a5d99cae83cc11c12e98b05c627ae009cb6a93c1
[ "ISC" ]
null
null
null
ventanas_clases/bienvenidos.py
SilviaSanjose/Music_Project_DB_PyQt5
a5d99cae83cc11c12e98b05c627ae009cb6a93c1
[ "ISC" ]
null
null
null
from ventanas.ventana_bienvenida import Ui_music_window from PyQt5.Qt import QTime, QDate class VentanaMusical(Ui_music_window): def __init__(self, my_win, registro, listado, tabla, usuarios): self.registro = registro self.listado = listado self.tabla = tabla self.usuarios...
34.404255
90
0.646877
187
1,617
5.320856
0.28877
0.050251
0.072362
0.096482
0.162814
0.052261
0
0
0
0
0
0.000848
0.270872
1,617
47
91
34.404255
0.843087
0.015461
0
0
0
0
0.003236
0
0
0
0
0
0
1
0.21875
false
0
0.0625
0
0.3125
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
05efd9d4d1c88f9978f414c21f09ed690f8fa1dd
2,320
py
Python
src/wagtail_marketing/helpers.py
mikiec84/wagtail-marketing-addons
b798b8422f262d45463905568267c59cc30551d9
[ "BSD-3-Clause" ]
null
null
null
src/wagtail_marketing/helpers.py
mikiec84/wagtail-marketing-addons
b798b8422f262d45463905568267c59cc30551d9
[ "BSD-3-Clause" ]
null
null
null
src/wagtail_marketing/helpers.py
mikiec84/wagtail-marketing-addons
b798b8422f262d45463905568267c59cc30551d9
[ "BSD-3-Clause" ]
null
null
null
from django.template.defaultfilters import truncatechars from wagtail.contrib.modeladmin.helpers import PageAdminURLHelper as AbstractPageAdminURLHelper from wagtail_marketing.conf import get_wagtail_marketing_setting class PageAdminURLHelper(AbstractPageAdminURLHelper): def get_action_url(self, action, *args, *...
29
95
0.632759
249
2,320
5.590361
0.24498
0.126437
0.136494
0.186782
0.31681
0.31681
0.290948
0.158046
0.158046
0
0
0.008388
0.280603
2,320
79
96
29.367089
0.823247
0
0
0.253968
0
0
0.084483
0.037931
0
0
0
0
0
1
0.126984
false
0
0.047619
0.063492
0.365079
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
05f52bdb050ca3cf581c0a7bd1b50b5363d1369b
565
py
Python
038. Count and Say.py
95subodh/Leetcode
6aea0e5fb2f75c6b6f67c78b550172898b614fa1
[ "MIT" ]
2
2016-08-18T03:17:25.000Z
2016-09-25T14:07:48.000Z
038. Count and Say.py
95subodh/Leetcode
6aea0e5fb2f75c6b6f67c78b550172898b614fa1
[ "MIT" ]
null
null
null
038. Count and Say.py
95subodh/Leetcode
6aea0e5fb2f75c6b6f67c78b550172898b614fa1
[ "MIT" ]
null
null
null
#The count-and-say sequence is the sequence of integers beginning as follows: #1, 11, 21, 1211, 111221, ... # #1 is read off as "one 1" or 11. #11 is read off as "two 1s" or 21. #21 is read off as "one 2, then one 1" or 1211. #Given an integer n, generate the nth sequence. class Solution(object): def countAndSay(se...
22.6
77
0.585841
121
565
2.735537
0.454545
0.024169
0.081571
0.099698
0.084592
0
0
0
0
0
0
0.092971
0.219469
565
25
78
22.6
0.657596
0.460177
0
0.142857
0
0
0.007576
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
05fa4f3c92817ec5cbe24dc85c0c753c2384ec99
1,122
py
Python
solutions/Craftingtables.py
aalekhpatel07/IEEExtreme14
3b358d2c9b7ee0f141d5ad8d16a0ac6c570253a9
[ "MIT" ]
2
2021-02-02T03:46:36.000Z
2021-02-02T03:51:39.000Z
solutions/Craftingtables.py
aalekhpatel07/IEEExtreme14
3b358d2c9b7ee0f141d5ad8d16a0ac6c570253a9
[ "MIT" ]
null
null
null
solutions/Craftingtables.py
aalekhpatel07/IEEExtreme14
3b358d2c9b7ee0f141d5ad8d16a0ac6c570253a9
[ "MIT" ]
null
null
null
def solve(c, n, p, w): """ Solve the problem here. :return: The expected output. """ if c > w: return 0 leading_ps = w // p tables = 0 zeroes_available = n - (leading_ps + 1) if w % p == 0: zeroes_available += 1 while zeroes_available > 0: number_of_zer...
19.344828
64
0.575758
149
1,122
4.107383
0.362416
0.171569
0.114379
0.163399
0.098039
0
0
0
0
0
0
0.009186
0.320856
1,122
57
65
19.684211
0.793963
0.209447
0
0.074074
0
0
0.010638
0
0
0
0
0
0
1
0.111111
false
0
0
0.037037
0.296296
0.037037
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
05fad382c93fb3d3d46e07cca35d8caf4d3d0fed
531
py
Python
Ranking/tests/test.py
iznokill/Epit-as-Ranking
877a4125858af814215a00cf52765b7deba35179
[ "Apache-2.0" ]
null
null
null
Ranking/tests/test.py
iznokill/Epit-as-Ranking
877a4125858af814215a00cf52765b7deba35179
[ "Apache-2.0" ]
null
null
null
Ranking/tests/test.py
iznokill/Epit-as-Ranking
877a4125858af814215a00cf52765b7deba35179
[ "Apache-2.0" ]
null
null
null
from Ranking.src.Ranker import Ranker, add_player def test_update(file, update_text, expected): res = Ranker(file, update_text) assert res == expected, "Update failed\ngot:\n" + str(res) + "\nexpected:\n" + expected def test_add(file, player, expected): res = add_player(file, player) assert res == e...
33.1875
108
0.664783
72
531
4.680556
0.430556
0.053412
0.083086
0.136499
0.344214
0.344214
0.344214
0.344214
0.344214
0.344214
0
0.004454
0.154426
531
15
109
35.4
0.746102
0
0
0.222222
0
0
0.305085
0.039548
0
0
0
0
0.222222
1
0.222222
false
0
0.111111
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
1
0
0
0
0
0
0
0
1
05fb2ad786ff26b11b5b7b2b65807c73a61fad75
3,276
py
Python
tests/test_auth_endpoint.py
ephes/django-indieweb
b0de98c614daab5c80cb1bb1735d5166db7903cf
[ "BSD-3-Clause" ]
9
2016-05-17T08:38:14.000Z
2021-11-03T13:37:10.000Z
tests/test_auth_endpoint.py
ephes/django-indieweb
b0de98c614daab5c80cb1bb1735d5166db7903cf
[ "BSD-3-Clause" ]
1
2017-10-31T12:27:03.000Z
2017-11-01T09:32:20.000Z
tests/test_auth_endpoint.py
ephes/django-indieweb
b0de98c614daab5c80cb1bb1735d5166db7903cf
[ "BSD-3-Clause" ]
2
2019-02-23T18:22:55.000Z
2019-03-29T13:33:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_django-indieweb ------------ Tests for `django-indieweb` auth endpoint. """ import pytz from datetime import datetime from datetime import timedelta from urllib.parse import parse_qs from urllib.parse import urlparse from django.conf import settings from djang...
38.093023
86
0.666972
416
3,276
5.165865
0.293269
0.046533
0.04188
0.058632
0.353188
0.343881
0.327129
0.310377
0.310377
0.284784
0
0.01202
0.212759
3,276
85
87
38.541176
0.821249
0.136447
0
0.280702
0
0
0.079176
0.009038
0
0
0
0
0.157895
1
0.105263
false
0.105263
0.192982
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
05fe849b4fe1b773c6865b0b6ce0994e850690c0
662
py
Python
01-01. variable and constant.py
dhchoi82/mathematics-python
eebded87d66e771984288a88c69f990e191d9e12
[ "MIT" ]
3
2018-11-28T17:01:16.000Z
2019-06-12T00:54:41.000Z
01-01. variable and constant.py
dhchoi82/mathematics-python
eebded87d66e771984288a88c69f990e191d9e12
[ "MIT" ]
null
null
null
01-01. variable and constant.py
dhchoi82/mathematics-python
eebded87d66e771984288a88c69f990e191d9e12
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # 변수 ''' Python에서는 변수를 선언하여 사용할 수 있다. 변수 이름은 문자나 숫자로 이루어지는데, 변수 이름은 숫자나 '_' 이외의 특수문자로 시작할 수 없고, 이미 역할이 지정된 keyword는 변수 이름으로 사용할 수 없다. ''' for a in (1, 3, 10, -2): print('a =', a) print('a × 3 + 1 =', a * 3 + 1, '\n') # 상수 ''' Python에서 변수와 같은 이름을 갖는 상수를 선언하는 방법은 기...
21.354839
49
0.569486
125
662
2.976
0.624
0.021505
0.021505
0
0
0
0
0
0
0
0
0.072289
0.247734
662
31
50
21.354839
0.672691
0.26284
0
0
0
0
0.12894
0
0
0
0
0
0
1
0
false
0
0
0
0
0.454545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
05ff58f639a9f4e93d55518678293defef3f860a
864
py
Python
openapi_core/enums.py
andyceo/openapi-core
8d92c25c11a136110449f1636f58cd11e11d59ff
[ "BSD-3-Clause" ]
null
null
null
openapi_core/enums.py
andyceo/openapi-core
8d92c25c11a136110449f1636f58cd11e11d59ff
[ "BSD-3-Clause" ]
null
null
null
openapi_core/enums.py
andyceo/openapi-core
8d92c25c11a136110449f1636f58cd11e11d59ff
[ "BSD-3-Clause" ]
null
null
null
from enum import Enum class ParameterLocation(Enum): PATH = 'path' QUERY = 'query' HEADER = 'header' COOKIE = 'cookie' @classmethod def has_value(cls, value): return (any(value == item.value for item in cls)) class ParameterStyle(Enum): MATRIX = 'matrix' LABEL = 'label' ...
17.632653
57
0.599537
89
864
5.775281
0.561798
0
0
0
0
0
0
0
0
0
0
0.012862
0.280093
864
48
58
18
0.813505
0
0
0
0
0
0.194444
0
0
0
0
0
0
1
0.028571
false
0.028571
0.028571
0.028571
0.971429
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
af01aa35f11a5ded6243301b684504764460f7c4
573
py
Python
examples/ffs_config.py
textileio/pygate-gRPC
429967fd3c6f56c5f787e54a1d02e0b377640d6f
[ "MIT" ]
null
null
null
examples/ffs_config.py
textileio/pygate-gRPC
429967fd3c6f56c5f787e54a1d02e0b377640d6f
[ "MIT" ]
null
null
null
examples/ffs_config.py
textileio/pygate-gRPC
429967fd3c6f56c5f787e54a1d02e0b377640d6f
[ "MIT" ]
1
2022-03-24T07:21:40.000Z
2022-03-24T07:21:40.000Z
from pygate_grpc.client import PowerGateClient client = PowerGateClient("127.0.0.1:5002", False) print("Creating a new FFS:") newFfs = client.ffs.create() tk = newFfs.token print("Token: " + tk) print("Using the new FFS token to request the default config:") defaultConfig = client.ffs.default_config(tk) print(default...
26.045455
63
0.748691
82
573
5.170732
0.463415
0.183962
0.103774
0.136792
0.198113
0.198113
0.198113
0
0
0
0
0.019724
0.115183
573
21
64
27.285714
0.816568
0
0
0.25
0
0
0.280977
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0.4375
0
0
0
null
0
0
0
0
0
0
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
af09781dcabe4d06272ab4cd5bb1a0b89db0f533
2,512
py
Python
Analysis Scripts/supply_demand_mismatch.py
bonesbb/HASPR
856af4a480f4ff135591bbbcc1267898d88cbf0d
[ "MIT" ]
1
2019-07-07T19:54:17.000Z
2019-07-07T19:54:17.000Z
Analysis Scripts/supply_demand_mismatch.py
bonesbb/HASPR
856af4a480f4ff135591bbbcc1267898d88cbf0d
[ "MIT" ]
null
null
null
Analysis Scripts/supply_demand_mismatch.py
bonesbb/HASPR
856af4a480f4ff135591bbbcc1267898d88cbf0d
[ "MIT" ]
null
null
null
# HASPR - High-Altitude Solar Power Research # Script to get alleviation of supply/demand mismatch given generation profiles # Version 0.1 # Author: neyring from os import walk import haspr from haspr import Result from haspr import Dataset from numpy import genfromtxt # PARAMETERS # # path to .csv file o...
36.941176
103
0.696258
336
2,512
5.074405
0.377976
0.056305
0.058651
0.021114
0.056305
0.056305
0.056305
0
0
0
0
0.025013
0.20422
2,512
67
104
37.492537
0.827914
0.291401
0
0
0
0
0.160165
0.044326
0
0
0
0
0
1
0
false
0
0.341463
0
0.341463
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
af09e41dbd5e429dbd94088ef8488e1c79094f7a
234
py
Python
lambda/exercices/PhotoCollector/getAllSubjectLambda.py
Mythridor/aws-scripting
5f978ae7f2b05a40862cbe35d766534fcc40fef0
[ "MIT" ]
null
null
null
lambda/exercices/PhotoCollector/getAllSubjectLambda.py
Mythridor/aws-scripting
5f978ae7f2b05a40862cbe35d766534fcc40fef0
[ "MIT" ]
null
null
null
lambda/exercices/PhotoCollector/getAllSubjectLambda.py
Mythridor/aws-scripting
5f978ae7f2b05a40862cbe35d766534fcc40fef0
[ "MIT" ]
null
null
null
import boto3 def lambda_handler(event, context): dynamodb = boto3.resource('dynamodb') table = dynamodb.Table('<DBName>') result = table.scan( ProjectionExpression='subject', ) return (result['Items'])
18
41
0.649573
23
234
6.565217
0.73913
0.172185
0
0
0
0
0
0
0
0
0
0.01087
0.213675
234
12
42
19.5
0.809783
0
0
0
0
0
0.119658
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
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
af0ce4d170f280d8b27db0b54a722e4e12b4935c
9,580
py
Python
counternet/dataset.py
BirkhoffG/counternet
1bd37858c682edcec7a87497aecefb374d79b00a
[ "Apache-2.0" ]
null
null
null
counternet/dataset.py
BirkhoffG/counternet
1bd37858c682edcec7a87497aecefb374d79b00a
[ "Apache-2.0" ]
null
null
null
counternet/dataset.py
BirkhoffG/counternet
1bd37858c682edcec7a87497aecefb374d79b00a
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01b_data.ipynb (unless otherwise specified). __all__ = ['dict2json', 'load_configs', 'update_json_file', 'bn_func', 'x1_to_x3', 'x1x2_to_x4', 'bn_gen', 'load_adult_income_dataset', 'load_learning_analytic_data', 'describe'] # Cell from .import_essentials impo...
44.766355
164
0.582777
1,161
9,580
4.624462
0.302326
0.050289
0.033898
0.043584
0.212144
0.185882
0.107096
0.086422
0.032036
0.017135
0
0.02397
0.255324
9,580
214
165
44.766355
0.728623
0.10762
0
0.080537
1
0.006711
0.304824
0.023059
0
0
0
0
0
1
0.087248
false
0
0.006711
0.020134
0.174497
0.020134
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
af11c3fa90dd7b456f7c879054a08d276957b5a8
2,794
py
Python
lmp/util/validate.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
lmp/util/validate.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
lmp/util/validate.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
"""Checking types and values.""" import os from typing import Any, List, Type, Union def raise_if_empty_str(*, val: str, val_name: str) -> None: """Raise if ``val`` is an empty :py:class:`str`. Parameters ---------- val: str Test target. val_name: str Test target name. Mainly used to create error...
22.901639
106
0.612026
409
2,794
4.06846
0.202934
0.050481
0.036058
0.033654
0.643029
0.579327
0.50601
0.40625
0.341346
0.299279
0
0.000918
0.220115
2,794
121
107
23.090909
0.762735
0.518253
0
0
0
0
0.193686
0.018771
0
0
0
0
0
1
0.26087
false
0
0.086957
0
0.347826
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
af1a78d827c93ea6cf407ffebf15ca0e7c6daca5
4,978
py
Python
django_ancestry_relation/managers.py
aaronmarkey/django-ancestry-relation
0104060f10800ea629fea4bd7a28f6824b4eb0d6
[ "BSD-2-Clause" ]
2
2017-09-05T19:31:59.000Z
2017-12-10T04:14:10.000Z
django_ancestry_relation/managers.py
aaronmarkey/django-ancestry-relation
0104060f10800ea629fea4bd7a28f6824b4eb0d6
[ "BSD-2-Clause" ]
null
null
null
django_ancestry_relation/managers.py
aaronmarkey/django-ancestry-relation
0104060f10800ea629fea4bd7a28f6824b4eb0d6
[ "BSD-2-Clause" ]
null
null
null
from django.db import models class NodeManager(models.Manager): def create_node(self, *args, **kwargs): ''' Create a Node object. Generates level and path automatically if ones are not supplied in kwargs. RETURNS ------- node: Node The Node object, unsa...
26.062827
80
0.494576
519
4,978
4.657033
0.260116
0.033099
0.027307
0.03103
0.187836
0.119983
0.119983
0.097642
0.097642
0.097642
0
0.003822
0.421856
4,978
190
81
26.2
0.835997
0.318401
0
0.157143
1
0
0.027987
0
0
0
0
0
0
1
0.128571
false
0
0.028571
0
0.314286
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
af1b573c110ef5aa9eeddb473b61a2d97dc8d0db
2,782
py
Python
download.py
felipefelixarias/a2cat-vn-pytorch
6e1b97c58be2405ef860718a91ecd2b07bc4b65f
[ "MIT" ]
7
2020-12-06T02:15:13.000Z
2022-01-27T17:51:08.000Z
utils/download.py
jkulhanek/a2cat-vn
6283c1f1f7c88e87387f606fddfb16d8e3f66906
[ "MIT" ]
null
null
null
utils/download.py
jkulhanek/a2cat-vn
6283c1f1f7c88e87387f606fddfb16d8e3f66906
[ "MIT" ]
3
2019-05-09T15:46:51.000Z
2020-12-15T01:38:43.000Z
import requests import io import zipfile from collections import namedtuple import os def _convert_name(name, acc = ''): if len(name) == 0: return acc if name[0].isupper(): acc += ('-' if len(acc) > 0 else '') + name[0].lower() elif name[0] == '_': acc += '-' else: acc +...
27.009709
109
0.652768
347
2,782
5.0317
0.25072
0.032073
0.034364
0.016037
0.029782
0.029782
0
0
0
0
0
0.003293
0.235802
2,782
103
110
27.009709
0.817968
0.006111
0
0.075949
0
0
0.065847
0
0
0
0
0
0
1
0.21519
false
0
0.063291
0.063291
0.481013
0.025316
0
0
0
null
0
0
0
0
0
0
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