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
ad7aad78941e8e598e4db1cb32649155d5707797
3,047
py
Python
demo/store/migrations/0001_initial.py
ikcam/django-boilerplate
d8253665d74f0f18cf9a5fd46772598a60f20c5c
[ "Apache-2.0" ]
5
2016-10-02T04:57:10.000Z
2019-08-12T22:22:39.000Z
demo/store/migrations/0001_initial.py
ikcam/django-boilerplate
d8253665d74f0f18cf9a5fd46772598a60f20c5c
[ "Apache-2.0" ]
null
null
null
demo/store/migrations/0001_initial.py
ikcam/django-boilerplate
d8253665d74f0f18cf9a5fd46772598a60f20c5c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-17 21:02 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Creat...
39.571429
163
0.538891
285
3,047
5.603509
0.301754
0.068879
0.056356
0.075141
0.460238
0.460238
0.421415
0.398247
0.398247
0.311835
0
0.015774
0.313423
3,047
76
164
40.092105
0.74761
0.021989
0
0.382353
1
0
0.131676
0
0
0
0
0
0
1
0
false
0
0.044118
0
0.102941
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
ad7aed22c74b97bbc456afac3855bc6f9f4d2947
26,462
py
Python
pytools/lib/common.py
virtualparadox/bbmap
ea57dba1a1a112de3060793de600da91fa32fbc0
[ "BSD-3-Clause-LBNL" ]
134
2016-08-16T00:57:11.000Z
2022-03-16T20:54:41.000Z
pytools/lib/common.py
virtualparadox/bbmap
ea57dba1a1a112de3060793de600da91fa32fbc0
[ "BSD-3-Clause-LBNL" ]
36
2016-08-16T00:57:06.000Z
2021-07-07T01:31:17.000Z
pytools/lib/common.py
virtualparadox/bbmap
ea57dba1a1a112de3060793de600da91fa32fbc0
[ "BSD-3-Clause-LBNL" ]
100
2016-04-24T16:16:20.000Z
2022-03-31T07:36:16.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Function definitions common to all programs. """ ## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ## libraries to use #import re import os import time import sys #import getpass import ...
31.27896
363
0.573766
3,611
26,462
4.070341
0.187483
0.026534
0.01143
0.012247
0.30909
0.243843
0.188597
0.154103
0.126072
0.119404
0
0.051189
0.272088
26,462
845
364
31.315976
0.711868
0.097687
0
0.227477
0
0.022523
0.297792
0.111529
0
0
0
0
0.002252
0
null
null
0.002252
0.013514
null
null
0.029279
0
0
0
null
0
0
0
0
0
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
ad7e564e3a21a3bc9bf517d761406042f5b39ee9
278
py
Python
ex008.py
iagoMaik/exPython
aef001c7526c6981ee19d38b41af37495244e1c4
[ "MIT" ]
null
null
null
ex008.py
iagoMaik/exPython
aef001c7526c6981ee19d38b41af37495244e1c4
[ "MIT" ]
null
null
null
ex008.py
iagoMaik/exPython
aef001c7526c6981ee19d38b41af37495244e1c4
[ "MIT" ]
null
null
null
m = float(input('Digite um tamanho (em metros): ')) dm = m * 10 cm = m * 100 mm = m * 1000 dam = m / 10 hm = m / 100 km = m / 1000 print('convertendo...') print('[dm] =', dm) print('[cm] =', cm) print('[mm] =', mm) print('[dam] =', dam) print('[hm] =', hm) print('[km] =', km)
17.375
51
0.514388
46
278
3.108696
0.413043
0.041958
0
0
0
0
0
0
0
0
0
0.081818
0.208633
278
15
52
18.533333
0.568182
0
0
0
0
0
0.296029
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
ad8490c0c3e371f5f12c2cf2a91146edb52856f6
1,062
py
Python
tests/keras/layers/test_embeddings.py
nishank974/Keras
72c7769bc961cdc6f5e98cc0a9f916d6aacc523c
[ "MIT" ]
2
2017-06-27T10:03:36.000Z
2020-10-14T11:15:27.000Z
tests/keras/layers/test_embeddings.py
nishank974/Keras
72c7769bc961cdc6f5e98cc0a9f916d6aacc523c
[ "MIT" ]
null
null
null
tests/keras/layers/test_embeddings.py
nishank974/Keras
72c7769bc961cdc6f5e98cc0a9f916d6aacc523c
[ "MIT" ]
1
2018-10-19T13:14:26.000Z
2018-10-19T13:14:26.000Z
import pytest import numpy as np from numpy.testing import assert_allclose from keras.models import Sequential from keras.layers.core import Dense, Activation, Flatten from keras.layers.embeddings import Embedding from keras.constraints import unitnorm from keras import backend as K X1 = np.array([[1], [2]], dtype='i...
33.1875
75
0.666667
148
1,062
4.614865
0.493243
0.065886
0.043924
0.029283
0
0
0
0
0
0
0
0.042676
0.183616
1,062
31
76
34.258065
0.745098
0
0
0
0
0
0.063089
0
0
0
0
0
0.08
1
0.04
false
0
0.32
0
0.36
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
ad8565b0723d37c7d6ee152bf4acfe932d4f6d8c
644
py
Python
python/problems/jewels_and_stones.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
1
2019-05-04T13:21:41.000Z
2019-05-04T13:21:41.000Z
python/problems/jewels_and_stones.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
1
2021-08-30T09:34:58.000Z
2021-08-30T09:34:58.000Z
python/problems/jewels_and_stones.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
null
null
null
""" https://leetcode.com/problems/jewels-and-stones/ https://leetcode.com/submissions/detail/138688434/ """ class Solution: def numJewelsInStones(self, J, S): """ :type J: str :type S: str :rtype: int """ result = 0 for stone in J: result += S.c...
19.515152
72
0.591615
70
644
5.328571
0.585714
0.069705
0.085791
0.214477
0
0
0
0
0
0
0
0.025478
0.268634
644
32
73
20.125
0.766454
0.214286
0
0
0
0
0.043573
0
0
0
0
0
0.142857
1
0.142857
false
0
0.071429
0
0.428571
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
ad884ea791960cc0f74c22074d36ec8ddce0aa63
1,704
py
Python
scripts/busqueda_codon_secuencia.py
rod13-afk/python_class
6ceed724dbd8dbbc279354572678827219cc22b5
[ "MIT" ]
null
null
null
scripts/busqueda_codon_secuencia.py
rod13-afk/python_class
6ceed724dbd8dbbc279354572678827219cc22b5
[ "MIT" ]
1
2021-08-24T18:09:30.000Z
2021-08-24T18:09:30.000Z
scripts/busqueda_codon_secuencia.py
rod13-afk/python_class
6ceed724dbd8dbbc279354572678827219cc22b5
[ "MIT" ]
2
2021-04-09T18:12:47.000Z
2021-08-24T17:57:03.000Z
''' NAME Busqueda del Codón inicial y secuencia transcrita VERSION 1.0 AUTHOR Rodrigo Daniel Hernández Barrera DESCRIPTION Find the start codon and the transcribed sequence CATEGORY Genomic sequence INPUT Read a DNA sequence entered by the user OUTPUT Returns as ou...
33.411765
164
0.726526
251
1,704
4.916335
0.398406
0.058347
0.045381
0.055105
0.293355
0.293355
0.293355
0.246353
0.246353
0.23825
0
0.007491
0.216549
1,704
50
165
34.08
0.916854
0.490023
0
0
0
0
0.494737
0
0
0
0
0.02
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
0
0
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
ad88b5beaf218ae916c86b861b95babfb1ddf892
3,137
py
Python
py/gps_building_blocks/airflow/utils/errors.py
miguelfc/gps_building_blocks
07e00883c070c2a4dc8ed675a9d0012a7b28a969
[ "Apache-2.0" ]
null
null
null
py/gps_building_blocks/airflow/utils/errors.py
miguelfc/gps_building_blocks
07e00883c070c2a4dc8ed675a9d0012a7b28a969
[ "Apache-2.0" ]
null
null
null
py/gps_building_blocks/airflow/utils/errors.py
miguelfc/gps_building_blocks
07e00883c070c2a4dc8ed675a9d0012a7b28a969
[ "Apache-2.0" ]
null
null
null
# python3 # coding=utf-8 # Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
25.92562
74
0.747848
378
3,137
6.134921
0.417989
0.042691
0.054334
0.031048
0.163001
0.103493
0.075895
0.075895
0.039672
0.039672
0
0.004213
0.167676
3,137
120
75
26.141667
0.883953
0.530443
0
0.333333
0
0
0.006589
0
0
0
0
0
0
1
0.047619
false
0.333333
0.02381
0
0.47619
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
ad894822b86529d0fd56cbb6e9f4fff3ec67f56c
1,976
py
Python
optaradio/ui/input/keyboard.py
p4cx/optaradio
a65adcd8de944d52dfb010fc91af3efa60ad0ea9
[ "MIT" ]
2
2020-02-20T01:48:21.000Z
2021-12-20T11:21:23.000Z
optaradio/ui/input/keyboard.py
p4cx/optaradio
a65adcd8de944d52dfb010fc91af3efa60ad0ea9
[ "MIT" ]
2
2021-09-08T01:35:20.000Z
2022-01-13T02:00:17.000Z
optaradio/ui/input/keyboard.py
p4cx/optaradio
a65adcd8de944d52dfb010fc91af3efa60ad0ea9
[ "MIT" ]
null
null
null
import sys import pygame as pg from ui.input import control def check_keyboard_events(window, state): def close(): pg.quit() sys.exit() events = pg.event.get() for event in events: if event.type == pg.QUIT: close() elif event.type == pg.KEYDOWN and event.ke...
36.592593
67
0.606781
283
1,976
4.123675
0.19788
0.123393
0.150814
0.192802
0.723222
0.537275
0.537275
0.537275
0.537275
0.537275
0
0.009818
0.27834
1,976
53
68
37.283019
0.808555
0
0
0.047619
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad93e804abbe453465ee552b69ba0915b8fd9df4
2,972
py
Python
readthedocs/donate/forms.py
ardalis/readthedocs.org
1c417d866f014e01d3842022facf7fed4c09921a
[ "MIT" ]
1
2016-05-25T14:55:18.000Z
2016-05-25T14:55:18.000Z
readthedocs/donate/forms.py
ardalis/readthedocs.org
1c417d866f014e01d3842022facf7fed4c09921a
[ "MIT" ]
null
null
null
readthedocs/donate/forms.py
ardalis/readthedocs.org
1c417d866f014e01d3842022facf7fed4c09921a
[ "MIT" ]
null
null
null
import logging from django import forms from django.conf import settings from django.utils.translation import ugettext_lazy as _ import stripe from .models import Supporter log = logging.getLogger(__name__) class SupporterForm(forms.ModelForm): class Meta: model = Supporter fields = ( ...
34.964706
97
0.572005
327
2,972
5.033639
0.446483
0.04678
0.063791
0.032807
0.100851
0.100851
0.100851
0
0
0
0
0.009881
0.318977
2,972
84
98
35.380952
0.80336
0
0
0.027778
0
0
0.234747
0
0
0
0
0
0
0
null
null
0
0.083333
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
ad953edaca07e3a63fbaf9501362bdb0a5e6f815
6,172
py
Python
src/who_is_on_my_wifi.py
tucnakomet1/Python-Who-Is-On-My-WiFi
bbecd3217d7e7fe82a2e4882674367939ef297ac
[ "MIT" ]
19
2020-08-17T12:37:12.000Z
2021-08-21T17:09:52.000Z
src/who_is_on_my_wifi.py
tucnakomet1/Python-Who-Is-On-My-WiFi
bbecd3217d7e7fe82a2e4882674367939ef297ac
[ "MIT" ]
8
2020-08-20T22:48:07.000Z
2021-07-18T22:24:26.000Z
src/who_is_on_my_wifi.py
tucnakomet1/Python-Who-Is-On-My-WiFi
bbecd3217d7e7fe82a2e4882674367939ef297ac
[ "MIT" ]
5
2020-09-08T18:50:52.000Z
2022-02-22T00:20:56.000Z
from scapy.all import * from device import * from who import * import who_is_on_my_wifi import subprocess import argparse import textwrap import platform import inspect import socket import getmac import sys import os if platform.system() == "Windows": import wmi def contact(): print(""" >>>> Contact <<<< My Gm...
28.311927
188
0.534673
794
6,172
4.052897
0.265743
0.043505
0.056557
0.069919
0.383779
0.329086
0.276259
0.270976
0.260721
0.248602
0
0.028369
0.314647
6,172
217
189
28.442396
0.730496
0
0
0.202703
0
0.087838
0.699802
0.116579
0
0
0
0
0
1
0.027027
false
0.006757
0.108108
0
0.135135
0.047297
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad9ee206b6b93dce414398a07a2eea3a449ce466
408
py
Python
work/apidoc/schema1.py
haizaar/crossbar-examples
a3daffc0348565aa5e989433978dec2913242ea8
[ "Apache-2.0" ]
97
2016-12-14T16:48:49.000Z
2021-09-12T17:48:10.000Z
work/apidoc/schema1.py
Weeshlow/crossbarexamples
e392ea2708f52ba322e63808041f9fe6dcfe893e
[ "Apache-2.0" ]
38
2016-12-13T09:42:38.000Z
2020-07-05T11:58:07.000Z
work/apidoc/schema1.py
Weeshlow/crossbarexamples
e392ea2708f52ba322e63808041f9fe6dcfe893e
[ "Apache-2.0" ]
118
2016-12-12T21:36:40.000Z
2021-11-17T11:49:33.000Z
from jsonschema import validate from pprint import pprint schema = { "type" : "object", "properties" : { "price" : {"type" : "number"}, "name" : {"type" : "string"}, }, } validate({"name" : "Eggs", "price" : 34.99}, schema) #validate({"name" : "Eggs", "price" : "Invalid"}, schema) import...
19.428571
57
0.563725
46
408
5
0.543478
0.104348
0.13913
0.182609
0
0
0
0
0
0
0
0.012739
0.230392
408
20
58
20.4
0.719745
0.137255
0
0
0
0
0.19943
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0.142857
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
a8e67a3f22abb3c853e40074c416c43aab3b004b
229
py
Python
meridian/acupoints/quze12.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
5
2015-12-14T15:14:23.000Z
2022-02-09T10:15:33.000Z
meridian/acupoints/quze12.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
null
null
null
meridian/acupoints/quze12.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
3
2015-11-27T05:23:49.000Z
2020-11-28T09:01:56.000Z
#!/usr/bin/python #coding=utf-8 ''' @author: sheng @license: ''' SPELL=u'qūzé' CN=u'曲泽' NAME=u'quze12' CHANNEL='pericardium' CHANNEL_FULLNAME='PericardiumChannelofHand-Jueyin' SEQ='PC3' if __name__ == '__main__': pass
10.904762
50
0.689956
30
229
4.966667
0.866667
0
0
0
0
0
0
0
0
0
0
0.02
0.126638
229
20
51
11.45
0.725
0.235808
0
0
0
0
0.391566
0.186747
0
0
0
0
0
1
0
false
0.125
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a8e7fb4a3970588cfca9e24d8568f63021eef768
779
py
Python
topicmodelling/hdp/ConvertTopicDisplayFormat.py
awbennett/HCA-WSI
7338435bce01fec751d360c6f1b54e585acad482
[ "Apache-2.0" ]
6
2016-08-15T07:57:42.000Z
2021-01-16T06:27:38.000Z
topicmodelling/hdp/ConvertTopicDisplayFormat.py
awbennett/HCA-WSI
7338435bce01fec751d360c6f1b54e585acad482
[ "Apache-2.0" ]
1
2017-09-03T11:57:43.000Z
2017-09-03T12:06:35.000Z
topicmodelling/hdp/ConvertTopicDisplayFormat.py
awbennett/HCA-WSI
7338435bce01fec751d360c6f1b54e585acad482
[ "Apache-2.0" ]
5
2016-08-15T07:57:43.000Z
2020-11-30T10:27:55.000Z
""" Quick and simple python program that converts the ugly and dumb vertical display of topics to horizontal display (1 topic per line). Usage: ConvertTopicDisplayFormat.py Stdin: topics.txt Stdout: mod_topics.txt Other Input: N/A Other Output: N/A Author: Jey Han Lau Date: ...
22.911765
90
0.591784
110
779
4.127273
0.554545
0.039648
0.030837
0.044053
0.0837
0.0837
0.0837
0
0
0
0
0.018215
0.29525
779
33
91
23.606061
0.808743
0.032092
0
0.125
0
0
0.002392
0
0
0
0
0
0
0
null
null
0
0.0625
null
null
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a8f3f4224974e7167be947cab469a78a7fa42a4e
1,326
py
Python
lin.py
iboraham/linear-reg-from-scratch
f12bf462228162ac7295b6067dbebc85a1d7cc99
[ "MIT" ]
null
null
null
lin.py
iboraham/linear-reg-from-scratch
f12bf462228162ac7295b6067dbebc85a1d7cc99
[ "MIT" ]
5
2020-09-06T14:15:26.000Z
2020-09-06T21:18:05.000Z
lin.py
iboraham/linear-reg-from-scratch
f12bf462228162ac7295b6067dbebc85a1d7cc99
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split from sklearn.metrics import r2_score from shared_utilities import find_linearReg_optimal_test_size from shared_utilities import plot_linear_reg from shared_utilities import check...
31.571429
103
0.729261
209
1,326
4.315789
0.382775
0.060976
0.084257
0.110865
0.126386
0
0
0
0
0
0
0.009928
0.164404
1,326
41
104
32.341463
0.804152
0.076923
0
0
0
0
0.042623
0
0
0
0
0
0
1
0
false
0
0.366667
0
0.366667
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
1
0
0
0
0
1
a8faf18ded68341368c92906c1c1b8041b614885
914
py
Python
tests/test_tools.py
frenners/python-amazon-paapi
9cb744bef17f5127231367430191df12126e9c24
[ "MIT" ]
121
2020-03-07T06:56:56.000Z
2022-03-30T21:03:43.000Z
tests/test_tools.py
frenners/python-amazon-paapi
9cb744bef17f5127231367430191df12126e9c24
[ "MIT" ]
61
2020-03-03T11:03:58.000Z
2022-01-20T19:27:49.000Z
tests/test_tools.py
frenners/python-amazon-paapi
9cb744bef17f5127231367430191df12126e9c24
[ "MIT" ]
29
2020-03-04T18:08:22.000Z
2022-03-25T18:49:46.000Z
from amazon_paapi.exceptions import AsinNotFoundException from amazon_paapi.tools import get_asin import pytest def test_get_asin(): assert get_asin('B01N5IB20Q') == 'B01N5IB20Q' assert get_asin('https://www.amazon.es/gp/product/B07PHPXHQS') == 'B07PHPXHQS' assert get_asin('https://www.amazon.es/gp/produc...
53.764706
245
0.768053
133
914
5.015038
0.473684
0.094453
0.097451
0.112444
0.455772
0.455772
0.334333
0.296852
0.266867
0.143928
0
0.098301
0.098468
914
16
246
57.125
0.711165
0
0
0.153846
0
0.076923
0.538293
0
0
0
0
0
0.384615
1
0.076923
true
0
0.230769
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
0
1
0
0
0
0
0
0
1
a8fd9b7ea811c043cd681d5e9631625cceeacf2e
5,409
py
Python
IndianNameGenerator/Names.py
bshantherishenoy/indian-name-generator
a05618d947c3d137d7eaacc81ff20e659ed18bfc
[ "MIT" ]
null
null
null
IndianNameGenerator/Names.py
bshantherishenoy/indian-name-generator
a05618d947c3d137d7eaacc81ff20e659ed18bfc
[ "MIT" ]
null
null
null
IndianNameGenerator/Names.py
bshantherishenoy/indian-name-generator
a05618d947c3d137d7eaacc81ff20e659ed18bfc
[ "MIT" ]
null
null
null
import random #Punjabi #----- mainNamePunjabi=["Gagan", "Har", "Bal", "Man", "Nav", "Sukh", "Kush", "Gur", "Karam", "Karan", "Dil", "Dharam", "Param", "Dal", "Jas", "Par", "Dul"] maleSuffixPunjabi=["jeet", "jyot", "vinder", "preet", "meet"] femleSuffixPunjabi=["preet", "jeet", "bir"] unionSuffixPunjabi=ma...
53.029412
542
0.68349
500
5,409
7.394
0.748
0.061672
0.018664
0.030836
0.063836
0.040573
0
0
0
0
0
0
0.085968
5,409
102
543
53.029412
0.747775
0.015899
0
0.205882
0
0
0.405146
0
0
0
0
0
0
1
0.205882
false
0
0.014706
0
0.426471
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
a8fe8e91f4b2231a8abf008517d00c715b1977b2
2,949
py
Python
bnn/src/training/characters-gen-binary-weights.py
Siraj-Qazi/BNN-PYNQ
b942fe92b3c62b0b877b0a9d5c13e7eb3a234685
[ "BSD-3-Clause" ]
7
2019-01-23T10:48:31.000Z
2021-06-20T17:42:49.000Z
bnn/src/training/characters-gen-binary-weights.py
Siraj-Qazi/BNN-PYNQ
b942fe92b3c62b0b877b0a9d5c13e7eb3a234685
[ "BSD-3-Clause" ]
null
null
null
bnn/src/training/characters-gen-binary-weights.py
Siraj-Qazi/BNN-PYNQ
b942fe92b3c62b0b877b0a9d5c13e7eb3a234685
[ "BSD-3-Clause" ]
5
2019-05-17T23:42:17.000Z
2021-08-18T20:03:26.000Z
#BSD 3-Clause License #======= # #Copyright (c) 2017, Xilinx #All rights reserved. # #Redistribution and use in source and binary forms, with or without #modification, are permitted provided that the following conditions are met: # #* Redistributions of source code must retain the above copyright notice, this # list o...
48.344262
256
0.688708
410
2,949
4.902439
0.495122
0.008955
0.008955
0.019403
0.184577
0.093532
0.093532
0.093532
0.093532
0.093532
0
0.024732
0.177348
2,949
60
257
49.15
0.803792
0.52628
0
0
0
0
0.125551
0.062408
0
0
0
0
0
0
null
null
0
0.136364
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
d101c939c8f2dcbad599cd642fbc66a1844f398d
927
py
Python
option_keyboard/core/networks.py
aditimavalankar/option-keyboard
7bace01f1aa67e0aa40bb516d8f5d96268c2aa02
[ "MIT" ]
13
2020-09-05T00:20:31.000Z
2022-02-27T21:19:57.000Z
option_keyboard/core/networks.py
aditimavalankar/option-keyboard
7bace01f1aa67e0aa40bb516d8f5d96268c2aa02
[ "MIT" ]
1
2021-08-12T12:19:06.000Z
2021-09-02T20:12:31.000Z
option_keyboard/core/networks.py
aditimavalankar/option-keyboard
7bace01f1aa67e0aa40bb516d8f5d96268c2aa02
[ "MIT" ]
1
2020-10-17T11:25:32.000Z
2020-10-17T11:25:32.000Z
import torch.nn as nn class MlpDiscrete(nn.Module): def __init__(self, input_dim, output_dim, hidden=[64, 128]): super(MlpDiscrete, self).__init__() self.hidden1 = nn.Linear(input_dim, hidden[0]) self.relu = nn.ReLU() self.hidden2 = nn.Linear(hidden[0], hidden[1]) self.ou...
29.903226
69
0.614887
139
927
3.899281
0.352518
0.083026
0.051661
0.062731
0
0
0
0
0
0
0
0.031474
0.245955
927
30
70
30.9
0.74392
0
0
0
0
0
0
0
0
0
0
0
0
1
0.227273
false
0
0.045455
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d102d39c168f24d45dd484b3a9359fd0c95a1952
2,494
py
Python
decorators_ex.py
srknbyrm/Python
d71a939fefdb9c405b5f531e9123cf2faaef0761
[ "MIT" ]
null
null
null
decorators_ex.py
srknbyrm/Python
d71a939fefdb9c405b5f531e9123cf2faaef0761
[ "MIT" ]
null
null
null
decorators_ex.py
srknbyrm/Python
d71a939fefdb9c405b5f531e9123cf2faaef0761
[ "MIT" ]
null
null
null
def start_end_decorator(func): def wrapper(): print('start') func() print('end') return wrapper @start_end_decorator # print_name = start_end_decorator(print_name) def print_name(): print('serkan') print_name() import functools def sum_of_digits(func): @functools.wraps(f...
20.112903
96
0.639134
335
2,494
4.531343
0.265672
0.065876
0.067194
0.047431
0.13307
0.083004
0.083004
0.083004
0
0
0
0.006363
0.243785
2,494
124
97
20.112903
0.798515
0.146752
0
0.25974
0
0
0.087653
0.023563
0
0
0
0
0
1
0.233766
false
0
0.025974
0.012987
0.415584
0.194805
0
0
0
null
0
0
0
0
0
0
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
d10b8fe8fc715e4563c3ce53c5af83aaec2201a0
8,489
py
Python
splunk_ansible_code-master/backend/update_apps_in_branch.py
jfhucka/Configator
bfbe5ce6bfe6da58f9e0037e916fc4e0bb85877c
[ "MIT" ]
1
2020-04-07T14:47:32.000Z
2020-04-07T14:47:32.000Z
splunk_ansible_code-master/backend/update_apps_in_branch.py
jfhucka/Configator
bfbe5ce6bfe6da58f9e0037e916fc4e0bb85877c
[ "MIT" ]
null
null
null
splunk_ansible_code-master/backend/update_apps_in_branch.py
jfhucka/Configator
bfbe5ce6bfe6da58f9e0037e916fc4e0bb85877c
[ "MIT" ]
1
2020-04-07T14:47:36.000Z
2020-04-07T14:47:36.000Z
################################################ # # This is a python that pulls all the splunk apps from teh git:/splunk_apps repo # # This script should be attached to a cron job, if the local repo branch is to be kept up to date. # Or this script can be executed manaully after the user has made a change to ...
40.42381
180
0.67664
1,177
8,489
4.752761
0.24554
0.064355
0.042546
0.030032
0.248123
0.193422
0.177333
0.138363
0.091169
0.081516
0
0.003429
0.209919
8,489
209
181
40.617225
0.830625
0.361527
0
0.289256
0
0.008264
0.236188
0.038732
0
0
0
0
0
0
null
null
0
0.057851
null
null
0.07438
0
0
0
null
0
0
0
0
0
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
d10d48601ece4c855302929836e580fd7a326f74
13,943
py
Python
APIdata.py
janbrus/px-api-prophet
d118625c1a10527302339ad052aae4f753e28232
[ "Apache-2.0" ]
null
null
null
APIdata.py
janbrus/px-api-prophet
d118625c1a10527302339ad052aae4f753e28232
[ "Apache-2.0" ]
null
null
null
APIdata.py
janbrus/px-api-prophet
d118625c1a10527302339ad052aae4f753e28232
[ "Apache-2.0" ]
null
null
null
""" coding: utf-8 @authour: Christine K. Kaushal, modified Jan Bruusgaard Inspired by: https://github.com/hmelberg/stats-to-pandas/blob/master/stats_to_pandas/__init__.py https://github.com/eurostat/prophet """ from __future__ import print_function import pandas as pd import requests import ast from pyjstat i...
33.356459
132
0.548017
1,703
13,943
4.390487
0.233705
0.049218
0.026749
0.014712
0.244349
0.199813
0.173332
0.173332
0.154072
0.154072
0
0.00934
0.339597
13,943
418
133
33.356459
0.802672
0.320161
0
0.303867
0
0.005525
0.092826
0.009283
0
0
0
0.011962
0
1
0.055249
false
0
0.049724
0
0.160221
0.033149
0
0
0
null
0
0
0
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
d1131798d6e5cabf8160dbeb5637b6f3798ebb7c
2,632
py
Python
mavsdk/transponder_pb2_grpc.py
PML-UCF/MAVSDK-Python
a328834518621842f530804572ecb3baeec31805
[ "BSD-3-Clause" ]
null
null
null
mavsdk/transponder_pb2_grpc.py
PML-UCF/MAVSDK-Python
a328834518621842f530804572ecb3baeec31805
[ "BSD-3-Clause" ]
null
null
null
mavsdk/transponder_pb2_grpc.py
PML-UCF/MAVSDK-Python
a328834518621842f530804572ecb3baeec31805
[ "BSD-3-Clause" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from . import transponder_pb2 as transponder_dot_transponder__pb2 class TransponderServiceStub(object): """ Allow users to get ADS-B information and set ADS-B update rates. """ def __init__(self, channel): """Constructor...
38.705882
108
0.773556
250
2,632
7.832
0.296
0.071502
0.114913
0.128703
0.526047
0.426966
0.332993
0.209397
0.209397
0.209397
0
0.004468
0.149696
2,632
67
109
39.283582
0.87042
0.12386
0
0.205128
1
0
0.131053
0.073301
0
0
0
0
0
1
0.102564
false
0
0.051282
0
0.205128
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
d114ad738ae24f9793047c0e81f0f8490b34ba77
6,593
py
Python
oslo_middleware/tests/test_http_proxy_to_wsgi.py
mail2nsrajesh/oslo.middleware
9537eba5214622f7d2449dab846c194d0108f055
[ "Apache-2.0" ]
null
null
null
oslo_middleware/tests/test_http_proxy_to_wsgi.py
mail2nsrajesh/oslo.middleware
9537eba5214622f7d2449dab846c194d0108f055
[ "Apache-2.0" ]
null
null
null
oslo_middleware/tests/test_http_proxy_to_wsgi.py
mail2nsrajesh/oslo.middleware
9537eba5214622f7d2449dab846c194d0108f055
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
43.091503
78
0.667374
818
6,593
5.237164
0.215159
0.092437
0.079832
0.077031
0.740663
0.711485
0.695845
0.651494
0.626284
0.579832
0
0.01774
0.213408
6,593
152
79
43.375
0.80833
0.118307
0
0.622642
0
0.009434
0.180297
0.046066
0
0
0
0
0.141509
1
0.188679
false
0
0.037736
0.037736
0.283019
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
d11984dcbb52c42102ccb7d6850d1c94b833fbb9
431
py
Python
app/settings.py
satrio-pamungkas/vrede-backend-fastapi
bdbed53380a6bda646c9a11f1fb593fd26efd8bb
[ "MIT" ]
null
null
null
app/settings.py
satrio-pamungkas/vrede-backend-fastapi
bdbed53380a6bda646c9a11f1fb593fd26efd8bb
[ "MIT" ]
null
null
null
app/settings.py
satrio-pamungkas/vrede-backend-fastapi
bdbed53380a6bda646c9a11f1fb593fd26efd8bb
[ "MIT" ]
null
null
null
from dotenv import load_dotenv import os load_dotenv() SERVER_PORT = int(os.getenv("WEB_PORT")) DATABASE_USER = os.getenv("DB_USER") DATABASE_PASSWORD = os.getenv("DB_PASSWORD") DATABASE_SERVER = os.getenv("DB_SERVER") DATABASE_PORT = os.getenv("DB_PORT") DATABASE_NAME = os.getenv("DB_NAME") DATABASE_URL = f"postg...
30.785714
132
0.779582
62
431
5.096774
0.322581
0.151899
0.158228
0
0
0
0
0
0
0
0
0
0.076566
431
13
133
33.153846
0.79397
0
0
0
0
0
0.37819
0.264501
0
0
0
0
0
1
0
false
0.2
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d11e5aa06c6dbcd5f3941921bfc11583be2dad97
283
py
Python
wagtail/images/migrations/0023_merge_20200415_1549.py
sprymix/wagtail
236662cc38cf34d211dc893869f84af5843d25bc
[ "BSD-3-Clause" ]
null
null
null
wagtail/images/migrations/0023_merge_20200415_1549.py
sprymix/wagtail
236662cc38cf34d211dc893869f84af5843d25bc
[ "BSD-3-Clause" ]
null
null
null
wagtail/images/migrations/0023_merge_20200415_1549.py
sprymix/wagtail
236662cc38cf34d211dc893869f84af5843d25bc
[ "BSD-3-Clause" ]
1
2020-04-10T03:21:10.000Z
2020-04-10T03:21:10.000Z
# Generated by Django 2.2.12 on 2020-04-15 06:49 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('wagtailimages', '0021_image_file_hash'), ('wagtailimages', '0022_auto_20190506_2114'), ] operations = [ ]
18.866667
53
0.660777
33
283
5.484848
0.848485
0
0
0
0
0
0
0
0
0
0
0.163636
0.222615
283
14
54
20.214286
0.659091
0.162544
0
0
1
0
0.293617
0.097872
0
0
0
0
0
1
0
false
0
0.125
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d12a61272183dff2ab1503d7c2f1780fc2668cd9
18,173
py
Python
spartan/expr/base.py
MaggieQi/spartan
24b9f977d0a9ae99e672bf90d80a0f22ac41d133
[ "Apache-2.0" ]
null
null
null
spartan/expr/base.py
MaggieQi/spartan
24b9f977d0a9ae99e672bf90d80a0f22ac41d133
[ "Apache-2.0" ]
null
null
null
spartan/expr/base.py
MaggieQi/spartan
24b9f977d0a9ae99e672bf90d80a0f22ac41d133
[ "Apache-2.0" ]
null
null
null
''' Defines the base class of all expressions (`Expr`), as well as common subclasses for collections. ''' import collections import weakref import sys import traceback import numpy as np from ..node import Node, indent from .. import blob_ctx, node, util from ..util import Assert, copy_docstring from ..array import ...
25.066207
110
0.65944
2,573
18,173
4.522736
0.171007
0.02578
0.020624
0.024749
0.166022
0.138352
0.116009
0.11051
0.060239
0.050443
0
0.001919
0.22594
18,173
724
111
25.100829
0.825336
0.062785
0
0.239247
0
0
0.046244
0.003489
0
0
0
0
0.008065
0
null
null
0
0.048387
null
null
0.010753
0
0
0
null
0
0
0
0
0
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
d12b4a7a6e93cd606046039c5fcf71a656a784b7
4,098
py
Python
MavenScrapy/MavenScrapy/settings.py
wjcIvan/oschinaLearning
4f172b068ab00063b4b0e6217d031e0dcb48f492
[ "MIT" ]
1
2020-07-29T07:00:32.000Z
2020-07-29T07:00:32.000Z
MavenScrapy/MavenScrapy/settings.py
wjcIvan/oschinaLearning
4f172b068ab00063b4b0e6217d031e0dcb48f492
[ "MIT" ]
4
2020-07-30T08:44:04.000Z
2020-07-30T08:45:14.000Z
MavenScrapy/MavenScrapy/settings.py
wjcIvan/oschinaLearning
4f172b068ab00063b4b0e6217d031e0dcb48f492
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for MavenScrapy project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest/t...
32.52381
102
0.770864
539
4,098
5.734694
0.419295
0.025882
0.045293
0.054998
0.217082
0.169201
0.169201
0.169201
0.146231
0.11032
0
0.029477
0.122499
4,098
125
103
32.784
0.830089
0.690093
0
0
0
0.057143
0.387124
0.230769
0
0
0
0
0
1
0
false
0.057143
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d12b60730218c5a155a071faa089fe7886d2e8c9
2,040
py
Python
conda.recipe/build_and_upload_conda_package.py
xinbinhuang/featuretools
f93a90bac32aa6ea5d1ca8e808d57473856d8542
[ "BSD-3-Clause" ]
1
2019-06-06T15:16:26.000Z
2019-06-06T15:16:26.000Z
conda.recipe/build_and_upload_conda_package.py
xinbinhuang/featuretools
f93a90bac32aa6ea5d1ca8e808d57473856d8542
[ "BSD-3-Clause" ]
1
2019-03-22T00:30:54.000Z
2019-03-22T00:30:54.000Z
conda.recipe/build_and_upload_conda_package.py
xinbinhuang/featuretools
f93a90bac32aa6ea5d1ca8e808d57473856d8542
[ "BSD-3-Clause" ]
1
2019-03-21T04:36:16.000Z
2019-03-21T04:36:16.000Z
import subprocess def build_docker_img(img_id, no_cache=False): build_cmd = ["docker", "build"] if no_cache: build_cmd.append("--no-cache") build_cmd.extend(["-t", img_id, "."]) # remove so we can catch an error more easily # in the case where the build command fails subprocess.run([...
37.090909
114
0.615196
250
2,040
4.856
0.424
0.024712
0.070016
0.028007
0.082372
0.051071
0
0
0
0
0
0
0.251471
2,040
54
115
37.777778
0.795023
0.041667
0
0
0
0
0.214139
0.036885
0
0
0
0
0
1
0.02439
false
0.146341
0.121951
0
0.146341
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
d134f4184597301f2ea2d1eef42c45845e1a0159
3,635
py
Python
OPMS_v3-dev3.1/apps/online_management/models.py
litiian/asyncstudy
a59119f189ca96fdd7f64b0b3212207572165dce
[ "Apache-2.0" ]
null
null
null
OPMS_v3-dev3.1/apps/online_management/models.py
litiian/asyncstudy
a59119f189ca96fdd7f64b0b3212207572165dce
[ "Apache-2.0" ]
null
null
null
OPMS_v3-dev3.1/apps/online_management/models.py
litiian/asyncstudy
a59119f189ca96fdd7f64b0b3212207572165dce
[ "Apache-2.0" ]
null
null
null
from django.db import models from users.models import UserProfile from host_management.models import DomainNameResolveInfo, ProjectInfo ###################################### # 故障标签表 ###################################### class TroubleTag(models.Model): name = models.CharField(verbose_name='分类名称', max_length=20) ...
42.764706
142
0.661348
420
3,635
5.490476
0.228571
0.190807
0.095403
0.112749
0.715958
0.562012
0.562012
0.483088
0.483088
0.483088
0
0.013049
0.135626
3,635
84
143
43.27381
0.720878
0.005227
0
0.418182
0
0
0.051135
0
0
0
0
0
0
1
0.072727
false
0
0.054545
0.072727
0.854545
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
d1356000e5b1ce11d4418dbaf6253d40e4d10ada
235
py
Python
Users/forms.py
Fowerus/drf-crm
be5420f1942886b685214c33537cf4b3759704a1
[ "Apache-2.0" ]
3
2021-09-20T09:21:46.000Z
2021-09-21T08:51:14.000Z
Users/forms.py
Fowerus/drf-crm
be5420f1942886b685214c33537cf4b3759704a1
[ "Apache-2.0" ]
null
null
null
Users/forms.py
Fowerus/drf-crm
be5420f1942886b685214c33537cf4b3759704a1
[ "Apache-2.0" ]
null
null
null
from django import forms from .models import User class MUserForm(forms.ModelForm): class Meta: model = User fields = ['id', 'surname', 'first_name', 'second_name', 'email', 'phone', 'address']
21.363636
61
0.595745
26
235
5.307692
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.276596
235
10
62
23.5
0.811765
0
0
0
0
0
0.2
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.571429
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
d13d02291d9d7620446a28b98ddff489b568bd23
1,521
py
Python
snake/utilities.py
owenjaques/kuhmilch
b9ccfe7c3e1a18f193d0e845061f9e6e2c5e26e7
[ "MIT" ]
null
null
null
snake/utilities.py
owenjaques/kuhmilch
b9ccfe7c3e1a18f193d0e845061f9e6e2c5e26e7
[ "MIT" ]
null
null
null
snake/utilities.py
owenjaques/kuhmilch
b9ccfe7c3e1a18f193d0e845061f9e6e2c5e26e7
[ "MIT" ]
null
null
null
import json from enum import Enum import numpy as np # TODO: create did collide with self function # TODO: create did collide with wall function # TODO: create did kill other snake function # TODO: create did eat food function # TODO: move this to a seperate 'constants' file FREE = 0 FOOD = 1 SNAKE = 2 HEAD = 3 # TO...
22.701493
65
0.663379
262
1,521
3.751908
0.362595
0.056968
0.052899
0.06409
0.079349
0
0
0
0
0
0
0.005719
0.195266
1,521
67
65
22.701493
0.797386
0.249836
0
0.045455
0
0
0.135279
0
0
0
0
0.014925
0
1
0.136364
false
0
0.068182
0.022727
0.272727
0.113636
0
0
0
null
0
0
0
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
d13d8f95142c8e6e796f8828446e5d095c5e633e
1,072
py
Python
hackerearth/Algorithms/Roy and Tiles/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/Roy and Tiles/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/Roy and Tiles/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here from collections import defaultdict mod = ...
24.363636
94
0.473881
147
1,072
3.435374
0.414966
0.079208
0.059406
0.051485
0.154455
0
0
0
0
0
0
0.032558
0.398321
1,072
43
95
24.930233
0.750388
0.248134
0
0.064516
0
0
0
0
0
0
0
0.023256
0
1
0
false
0
0.032258
0
0.032258
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d141000cd5a117806ec3366e42b99eb21e4a846b
1,202
py
Python
zerver/webhooks/gosquared/view.py
acguglielmo/zulip
97ed71ca699c3abd1c2584cc3c6a8370430ae2f6
[ "Apache-2.0" ]
1
2018-11-20T10:11:58.000Z
2018-11-20T10:11:58.000Z
zerver/webhooks/gosquared/view.py
hcxiong/zulip
bf22eefedebd50b25f32b22988217c13a89b65d1
[ "Apache-2.0" ]
7
2020-09-06T14:54:30.000Z
2022-02-10T18:51:14.000Z
zerver/webhooks/gosquared/view.py
hcxiong/zulip
bf22eefedebd50b25f32b22988217c13a89b65d1
[ "Apache-2.0" ]
9
2019-11-04T18:59:29.000Z
2022-03-22T17:46:37.000Z
from typing import Any, Dict, Optional from django.http import HttpRequest, HttpResponse from django.utils.translation import ugettext as _ from zerver.decorator import api_key_only_webhook_view from zerver.lib.request import REQ, has_request_variables from zerver.lib.response import json_error, json_success from zer...
44.518519
104
0.774542
161
1,202
5.496894
0.403727
0.056497
0.044068
0.038418
0.108475
0
0
0
0
0
0
0
0.126456
1,202
26
105
46.230769
0.842857
0
0
0
0
0
0.145591
0.02579
0
0
0
0
0
1
0.047619
false
0
0.380952
0
0.47619
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
d144d3f669e639530ed81b5fccd8a8f8910ff583
1,735
py
Python
openbook_invitations/migrations/0002_auto_20190101_1413.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
164
2019-07-29T17:59:06.000Z
2022-03-19T21:36:01.000Z
openbook_invitations/migrations/0002_auto_20190101_1413.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
188
2019-03-16T09:53:25.000Z
2019-07-25T14:57:24.000Z
openbook_invitations/migrations/0002_auto_20190101_1413.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
80
2019-08-03T17:49:08.000Z
2022-02-28T16:56:33.000Z
# Generated by Django 2.1.4 on 2019-01-01 13:13 from django.conf import settings import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODE...
45.657895
342
0.65072
190
1,735
5.789474
0.494737
0.040909
0.054545
0.065455
0.06
0.06
0
0
0
0
0
0.025148
0.220749
1,735
37
343
46.891892
0.788462
0.025937
0
0.096774
1
0
0.170024
0
0
0
0
0
0
1
0
false
0
0.129032
0
0.225806
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
d1468c013407ca6fecaef0dea6e4d0892de30163
14,874
py
Python
storage/views.py
bopopescu/storyboard
0258fd6f80b6bbd9d0ca493cbaaae87c3a6d16e2
[ "MIT" ]
null
null
null
storage/views.py
bopopescu/storyboard
0258fd6f80b6bbd9d0ca493cbaaae87c3a6d16e2
[ "MIT" ]
null
null
null
storage/views.py
bopopescu/storyboard
0258fd6f80b6bbd9d0ca493cbaaae87c3a6d16e2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ views.py Created by Darcy Liu on 2012-04-02. Copyright (c) 2012 Close To U. All rights reserved. """ import datetime import logging import hashlib from django.shortcuts import render_to_response from django.shortcuts import get_object_or_404 from django.template import Requ...
39.983871
117
0.568979
1,804
14,874
4.478381
0.150222
0.004951
0.012378
0.013368
0.549449
0.502909
0.455378
0.428395
0.425053
0.413418
0
0.013402
0.312761
14,874
372
118
39.983871
0.776952
0.202501
0
0.551724
0
0
0.081037
0.014164
0
0
0
0
0
0
null
null
0.00431
0.12069
null
null
0.00431
0
0
0
null
0
0
0
0
0
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
d14dcd20960cf7c7dc33f8e8cb653d6b49c6ceaf
695
py
Python
stock_activities/migrations/0015_alter_stockactivity_activity_type_id.py
ericpesto/Archeon-Django-REST-API
e02b871b95c5247d83580acfe25f6ec299fdb9b1
[ "MIT" ]
1
2021-06-07T17:31:23.000Z
2021-06-07T17:31:23.000Z
stock_activities/migrations/0015_alter_stockactivity_activity_type_id.py
ericpesto/Archeon-Django-REST-API
e02b871b95c5247d83580acfe25f6ec299fdb9b1
[ "MIT" ]
null
null
null
stock_activities/migrations/0015_alter_stockactivity_activity_type_id.py
ericpesto/Archeon-Django-REST-API
e02b871b95c5247d83580acfe25f6ec299fdb9b1
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-05 22:36 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('activity_definitions', '0008_alter_activitydefinition_activity_type_id'), ('stock_activities', '0014_alter_stockacti...
33.095238
198
0.705036
79
695
5.936709
0.582278
0.102345
0.119403
0.093817
0
0
0
0
0
0
0
0.040564
0.184173
695
20
199
34.75
0.786596
0.064748
0
0
1
0
0.320988
0.194444
0.071429
0
0
0
0
1
0
false
0
0.142857
0
0.357143
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
d14fba36a8ba70dcac07e635f24fa4699efeacb6
2,009
py
Python
gym_wrapper/jsbsimgymenvironmentwrapper.py
lauritowal/JSBSim_gym_wrapper
c54159c2915b93ab3c070289e9a608066cf654d7
[ "MIT" ]
1
2021-01-28T10:09:58.000Z
2021-01-28T10:09:58.000Z
gym_wrapper/jsbsimgymenvironmentwrapper.py
lauritowal/JSBSim_gym_wrapper
c54159c2915b93ab3c070289e9a608066cf654d7
[ "MIT" ]
1
2021-01-28T10:09:54.000Z
2021-01-28T10:09:54.000Z
gym_wrapper/jsbsimgymenvironmentwrapper.py
lauritowal/JSBSim_gym_wrapper
c54159c2915b93ab3c070289e9a608066cf654d7
[ "MIT" ]
1
2021-01-28T10:25:13.000Z
2021-01-28T10:25:13.000Z
import gym from typing import List, Tuple, Dict import numpy as np from gym import spaces from core.simulation import Simulation from service import global_constants class JsbsimGymEnvironmentWrapper(gym.Env): """Custom Environment that follows gym interface""" metadata = {'render.modes': ['human']} def __...
30.907692
97
0.632653
236
2,009
5.199153
0.411017
0.051345
0.03423
0.02771
0.07661
0.07661
0.07661
0.07661
0
0
0
0.01061
0.249378
2,009
64
98
31.390625
0.80305
0.048283
0
0.134615
0
0
0.026772
0.011024
0
0
0
0
0
1
0.173077
false
0.057692
0.115385
0
0.423077
0.019231
0
0
0
null
0
0
0
0
0
0
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
d1545e688a5b265c53aaa89e45f33af571c73cab
2,975
py
Python
cloudrunner/node/matcher.py
CloudRunnerIO/cloudrunner
dc4712a6ccbe95fa552b5699d301de75928bcf08
[ "Apache-2.0" ]
5
2015-05-14T01:35:48.000Z
2021-12-21T14:46:28.000Z
cloudrunner/node/matcher.py
CloudRunnerIO/cloudrunner
dc4712a6ccbe95fa552b5699d301de75928bcf08
[ "Apache-2.0" ]
1
2015-02-12T12:39:53.000Z
2015-02-12T12:40:06.000Z
cloudrunner/node/matcher.py
CloudRunnerIO/cloudrunner
dc4712a6ccbe95fa552b5699d301de75928bcf08
[ "Apache-2.0" ]
1
2021-12-21T14:57:24.000Z
2021-12-21T14:57:24.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 CloudRunner.IO # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the Lic...
32.336957
78
0.568403
340
2,975
4.802941
0.429412
0.036742
0.085732
0.033068
0.12921
0.12921
0.07226
0.07226
0.07226
0.07226
0
0.006
0.327731
2,975
91
79
32.692308
0.8105
0.237647
0
0.117647
0
0
0.019266
0
0
0
0
0
0
0
null
null
0
0.039216
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
d1557a7b5f0d63ef5925ccffd42b30ea29f48455
2,280
py
Python
kolab/multiese/parser.py
KuramitsuLab/kolab
91fa4bae4a440a15291ba2d2690e4e335cbfd21e
[ "MIT" ]
null
null
null
kolab/multiese/parser.py
KuramitsuLab/kolab
91fa4bae4a440a15291ba2d2690e4e335cbfd21e
[ "MIT" ]
1
2021-11-14T05:38:27.000Z
2021-11-14T05:38:27.000Z
kolab/multiese/parser.py
KuramitsuLab/kolab
91fa4bae4a440a15291ba2d2690e4e335cbfd21e
[ "MIT" ]
7
2020-11-02T13:05:44.000Z
2022-01-09T11:06:04.000Z
import pegtree as pg from pegtree import ParseTree from pegtree.visitor import ParseTreeVisitor import tree as ntree import pprint peg = pg.grammar('multiese.pegtree') parser = pg.generate(peg) def fix(tree): a = [tree.epos_] for t in tree: fix(t) a.append(t.epos_) for key in tree.keys():...
24.782609
67
0.608333
304
2,280
4.407895
0.305921
0.041791
0.065672
0.029851
0.109701
0.068657
0.068657
0.068657
0.068657
0.068657
0
0.005924
0.259649
2,280
91
68
25.054945
0.787915
0.035526
0
0.161765
1
0
0.076186
0.025547
0
0
0
0
0
1
0.176471
false
0
0.073529
0.029412
0.411765
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d15a63f00dd21182091729d8b2c1a43004890258
3,355
py
Python
CarND-Camera-Calibration/challenge/challenge.py
vikramriyer/CarND-Advanced-Lane-Lines
6c06b004baff32eb35725f5b82493b2ea4733e8a
[ "MIT" ]
1
2019-08-22T01:00:35.000Z
2019-08-22T01:00:35.000Z
CarND-Camera-Calibration/challenge/challenge.py
vikramriyer/CarND-Advanced-Lane-Lines
6c06b004baff32eb35725f5b82493b2ea4733e8a
[ "MIT" ]
null
null
null
CarND-Camera-Calibration/challenge/challenge.py
vikramriyer/CarND-Advanced-Lane-Lines
6c06b004baff32eb35725f5b82493b2ea4733e8a
[ "MIT" ]
null
null
null
import pickle import cv2 import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg %matplotlib inline # Read in the saved camera matrix and distortion coefficients # These are the arrays you calculated using cv2.calibrateCamera() dist_pickle = pickle.load( open( "wide_dist_pickle.p", "rb" ) )...
36.868132
85
0.62623
500
3,355
4.114
0.376
0.023821
0.009723
0.02771
0.100146
0.083617
0.026252
0
0
0
0
0.063579
0.240537
3,355
90
86
37.277778
0.743721
0.377645
0
0
0
0
0.050786
0
0
0
0
0
0
0
null
null
0
0.135135
null
null
0.054054
0
0
0
null
0
0
0
0
0
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
d15d17ab20e1d946a795b71f8f44dad2a1ba1c85
1,599
py
Python
src/workspace.py
monkey2000/wtfcf
f09773c34db084f45b4f32fafa969341efc5e654
[ "MIT" ]
1
2018-01-31T00:51:00.000Z
2018-01-31T00:51:00.000Z
src/workspace.py
monkey2000/wtfcf
f09773c34db084f45b4f32fafa969341efc5e654
[ "MIT" ]
null
null
null
src/workspace.py
monkey2000/wtfcf
f09773c34db084f45b4f32fafa969341efc5e654
[ "MIT" ]
1
2016-07-14T00:03:54.000Z
2016-07-14T00:03:54.000Z
#!/usr/bin/env python3 # coding=UTF-8 import os import sys import shutil import ConfigParser from logger import * def generate_workspace(config, info): cwd = os.path.abspath(os.getcwd()) ws_dir = cwd + '/' + info['contest_id'] + info['problem_id'] sample_dir = ws_dir + '/sample' if os.path.isd...
32.632653
136
0.630394
219
1,599
4.429224
0.383562
0.036082
0.049485
0.057732
0.2
0.125773
0.074227
0
0
0
0
0.002366
0.207004
1,599
48
137
33.3125
0.762618
0.021263
0
0
1
0
0.18758
0
0
0
0
0
0
1
0.030303
false
0
0.151515
0
0.181818
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
d1625e23ed2c7c70ad165f3f9236b3f87b7b6b26
606
py
Python
WebApp/forms.py
sunniqua97/Vote-Power
f63230155f28f23b21515f7b2cb93aa76e1e3db0
[ "MIT" ]
null
null
null
WebApp/forms.py
sunniqua97/Vote-Power
f63230155f28f23b21515f7b2cb93aa76e1e3db0
[ "MIT" ]
null
null
null
WebApp/forms.py
sunniqua97/Vote-Power
f63230155f28f23b21515f7b2cb93aa76e1e3db0
[ "MIT" ]
2
2022-03-29T03:36:21.000Z
2022-03-29T03:39:50.000Z
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import DataRequired, EqualTo, Email # Form for address class AddressForm(FlaskForm): address = StringField('Address',validators=[DataRequired()]) submit = SubmitField('Submit') # Form for email noti...
33.666667
71
0.729373
59
606
7.474576
0.423729
0.199546
0.113379
0.15873
0.290249
0.290249
0.290249
0
0
0
0
0
0.156766
606
17
72
35.647059
0.863014
0.074257
0
0.181818
0
0
0.075786
0
0
0
0
0
0
1
0
false
0
0.272727
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d162d88a1450a13ffa75543229ab8dcfc57dc3af
469
py
Python
src/materia/actions/action.py
kijanac/Materia
b49af518c8eff7d3a8c6caff39783e3daf80a7a0
[ "MIT" ]
null
null
null
src/materia/actions/action.py
kijanac/Materia
b49af518c8eff7d3a8c6caff39783e3daf80a7a0
[ "MIT" ]
null
null
null
src/materia/actions/action.py
kijanac/Materia
b49af518c8eff7d3a8c6caff39783e3daf80a7a0
[ "MIT" ]
null
null
null
import abc __all__ = ["Action", "ActionSignal"] class Action(abc.ABC): @abc.abstractmethod def run(self, node, tasks, links, done): pass class ActionSignal(Exception): def __init__(self, message=None, result=None, actions=None): # result and actions have default values only # so...
24.684211
66
0.660981
58
469
5.137931
0.62069
0.040268
0
0
0
0
0
0
0
0
0
0
0.245203
469
18
67
26.055556
0.841808
0.21322
0
0
0
0
0.04918
0
0
0
0
0
0
1
0.181818
false
0.090909
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d16d0e3b1eb175c65345049bbc214491e3230d13
1,780
py
Python
tools/regVariation/maf_cpg_filter.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
2
2016-02-23T00:09:14.000Z
2019-02-11T07:48:44.000Z
tools/regVariation/maf_cpg_filter.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
tools/regVariation/maf_cpg_filter.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
6
2015-05-27T13:09:50.000Z
2019-02-11T07:48:46.000Z
#!/usr/bin/env python #Guruprasad Ananda #Adapted from bx/scripts/maf_mask_cpg.py """ Mask out potential CpG sites from a maf. Restricted or inclusive definition of CpG sites can be used. The total fraction masked is printed to stderr. usage: %prog < input > output restricted -m, --mask=N: Character to use as mask...
29.180328
144
0.629213
240
1,780
4.55
0.4375
0.051282
0.054945
0.065934
0.081502
0.056777
0
0
0
0
0
0.011817
0.239326
1,780
60
145
29.666667
0.794682
0.042697
0
0.166667
0
0
0.108877
0
0
0
0
0
0.02381
0
null
null
0.02381
0.166667
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d16db7bac798744b3bb095b78298fba838c92792
2,219
py
Python
src/register/migrations/0001_initial.py
saurabhs92/django-organ-donatation
55e780d1a81a83ab5f1760e753e4b058db83828c
[ "MIT" ]
null
null
null
src/register/migrations/0001_initial.py
saurabhs92/django-organ-donatation
55e780d1a81a83ab5f1760e753e4b058db83828c
[ "MIT" ]
null
null
null
src/register/migrations/0001_initial.py
saurabhs92/django-organ-donatation
55e780d1a81a83ab5f1760e753e4b058db83828c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-13 18:46 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migratio...
42.673077
219
0.590807
223
2,219
5.735426
0.434978
0.070367
0.098514
0.131353
0.411259
0.286161
0.215794
0.215794
0.215794
0.215794
0
0.029376
0.263632
2,219
51
220
43.509804
0.753366
0.029743
0
0.209302
1
0
0.124186
0
0
0
0
0
0
1
0
false
0
0.093023
0
0.186047
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
d1717d3dec5fc2bcc51a46f1410c2c5a9997baae
474
py
Python
setup.py
RaymondKlass/entity-extract
c5d06536b4660da280ecf1ae1de04d93c69ffe95
[ "MIT" ]
null
null
null
setup.py
RaymondKlass/entity-extract
c5d06536b4660da280ecf1ae1de04d93c69ffe95
[ "MIT" ]
null
null
null
setup.py
RaymondKlass/entity-extract
c5d06536b4660da280ecf1ae1de04d93c69ffe95
[ "MIT" ]
null
null
null
#! /usr/bin/env python from setuptools import setup setup(name="entity-extractor", version="0.01", author="Raymond Klass", author_email="raymondklass@gmail.com", description="Entity Extraction, Recognition, and Translation to RDF", license="MIT", packages=["entity_extract"], i...
27.882353
75
0.611814
51
474
5.627451
0.803922
0.090592
0
0
0
0
0
0
0
0
0
0.016713
0.242616
474
17
76
27.882353
0.78273
0.044304
0
0
0
0
0.434879
0.048565
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
d17465372f9930f1e635e1f0d0aef802c7843dcc
798
py
Python
Assignment_1.py
ankit9437/Zelthy
ba96ce0f7f4156780fb026d4ed972ac936ff1997
[ "MIT" ]
null
null
null
Assignment_1.py
ankit9437/Zelthy
ba96ce0f7f4156780fb026d4ed972ac936ff1997
[ "MIT" ]
null
null
null
Assignment_1.py
ankit9437/Zelthy
ba96ce0f7f4156780fb026d4ed972ac936ff1997
[ "MIT" ]
null
null
null
import smtplib #Python Library print("Subject?") sub=input() #Used to take subject print("Body?") message = input() #Used for taking message for email print("Recipient") receivers_mail = input() #Used to take receiver's mail print("Sender's Mail?") sender_mail= inpu...
44.333333
86
0.639098
101
798
5
0.465347
0.071287
0.065347
0.089109
0.142574
0
0
0
0
0
0
0.005119
0.265664
798
18
87
44.333333
0.856655
0.275689
0
0
0
0
0.203971
0
0
0
0
0
0
1
0
false
0.117647
0.058824
0
0.058824
0.352941
0
0
0
null
0
0
0
0
0
0
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
66f35c23a889743b20156afee8c6c4a43a96630c
281
py
Python
blog/admin.py
KimLHill/MSP4
2321076c24f3d49caa409b03109fb67330ed63fe
[ "blessing" ]
null
null
null
blog/admin.py
KimLHill/MSP4
2321076c24f3d49caa409b03109fb67330ed63fe
[ "blessing" ]
null
null
null
blog/admin.py
KimLHill/MSP4
2321076c24f3d49caa409b03109fb67330ed63fe
[ "blessing" ]
1
2021-09-30T10:51:36.000Z
2021-09-30T10:51:36.000Z
from django.contrib import admin from .models import Blog # Blog information class BlogAdmin(admin.ModelAdmin): list_display = ( 'name', 'author', 'description', 'image', ) ordering = ('name',) admin.site.register(Blog, BlogAdmin)
14.789474
36
0.6121
28
281
6.107143
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.270463
281
18
37
15.611111
0.834146
0.05694
0
0
0
0
0.114068
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.454545
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
66f65d1bf976493b7edec99f0aed0d9e2968bb5d
490
py
Python
manage.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
null
null
null
manage.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
null
null
null
manage.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
1
2020-02-12T09:21:15.000Z
2020-02-12T09:21:15.000Z
from flask_migrate import MigrateCommand from flask_script import Manager from app import app from app.commands import InitDbCommand # Setup Flask-Script with command line commands manager = Manager(app) manager.add_command('db', MigrateCommand) manager.add_command('init_db', InitDbCommand) if __name__ == "__main__"...
32.666667
79
0.744898
60
490
5.866667
0.483333
0.051136
0.096591
0
0
0
0
0
0
0
0
0
0.185714
490
15
80
32.666667
0.882206
0.371429
0
0
0
0
0.056106
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
66f79ee716ec2f7297f1e9c1f7186fb3b72bb7d6
222
py
Python
Students/abinash_flask/day1/app.py
Throttlerz-devs/flask-tutorial
09e1ad364c73ffba4e698592219d448865c6b31a
[ "MIT" ]
7
2021-09-03T12:18:52.000Z
2021-09-07T09:53:14.000Z
Students/abinash_flask/day1/app.py
Throttlerz-devs/flask-tutorial
09e1ad364c73ffba4e698592219d448865c6b31a
[ "MIT" ]
4
2021-09-04T09:00:11.000Z
2021-09-22T07:26:17.000Z
Students/abinash_flask/day1/app.py
Throttlerz-devs/flask-tutorial
09e1ad364c73ffba4e698592219d448865c6b31a
[ "MIT" ]
6
2021-09-03T14:37:33.000Z
2021-09-03T21:46:25.000Z
from flask import Flask, render_template # create a flask application name app app = Flask(__name__) @app.route("/") def index(): return render_template('index.html') if __name__=="__main__": app.run(debug=True)
20.181818
40
0.720721
31
222
4.709677
0.645161
0.191781
0
0
0
0
0
0
0
0
0
0
0.148649
222
11
41
20.181818
0.772487
0.157658
0
0
0
0
0.102151
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
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
0
1
0
0
0
1
66fd1c92f0162b0a5c17cea1909c153005363445
1,287
py
Python
evaluation/easy_evaluation.py
eldrin/MTLMusicRepresentation
2c194ca07df4d4a0222d8122fe0e157464715177
[ "MIT" ]
5
2018-02-18T21:02:10.000Z
2018-12-13T08:35:43.000Z
evaluation/easy_evaluation.py
eldrin/MTLMusicRepresentation
2c194ca07df4d4a0222d8122fe0e157464715177
[ "MIT" ]
null
null
null
evaluation/easy_evaluation.py
eldrin/MTLMusicRepresentation
2c194ca07df4d4a0222d8122fe0e157464715177
[ "MIT" ]
null
null
null
# import numpy as np from sklearn.pipeline import Pipeline # from sklearn.svm import SVC, SVR from sklearn.linear_model import SGDClassifier from sklearn.preprocessing import StandardScaler from sklearn.decomposition import PCA from sklearn.model_selection import cross_val_predict from sklearn.metrics import accuracy_...
23.833333
65
0.651127
169
1,287
4.763314
0.449704
0.095652
0.037267
0.019876
0
0
0
0
0
0
0
0.010173
0.236208
1,287
53
66
24.283019
0.808749
0.166278
0
0.068966
0
0
0.033493
0
0
0
0
0
0
1
0.103448
false
0.068966
0.206897
0
0.37931
0.103448
0
0
0
null
0
0
0
0
0
0
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
66fda9bbea5e5a3e63544d572757bcdee7fa62f5
14,318
py
Python
QUIC-project/2_post_process_parse_packets_to_handshakes_BSSL_NEWPORT.py
prchander/boringssl
0993d04161159acb7f95012b794746491f5cd53c
[ "MIT" ]
1
2021-07-19T23:46:39.000Z
2021-07-19T23:46:39.000Z
QUIC-project/2_post_process_parse_packets_to_handshakes_BSSL_NEWPORT.py
prchander/boringssl
0993d04161159acb7f95012b794746491f5cd53c
[ "MIT" ]
null
null
null
QUIC-project/2_post_process_parse_packets_to_handshakes_BSSL_NEWPORT.py
prchander/boringssl
0993d04161159acb7f95012b794746491f5cd53c
[ "MIT" ]
1
2021-10-12T05:30:12.000Z
2021-10-12T05:30:12.000Z
import csv import os import re import sys import time handshakeCutoff = 1000 #1000 #None print(f'Handshake counter cutoff number: ', handshakeCutoff) # numSamples = 10 # print(f'Using {numSamples} samples') #time.sleep(3) # Select the droprate sequence #droprates = [0, 5, 10, 20, 40] # Default droprates = [0, 5, 10...
38.697297
2,318
0.724822
1,945
14,318
5.066324
0.196401
0.046276
0.075502
0.026791
0.36371
0.26162
0.180739
0.119139
0.091536
0.053785
0
0.016635
0.143526
14,318
369
2,319
38.802168
0.78692
0.432183
0
0.173333
0
0.004444
0.210867
0.053465
0
0
0
0
0
1
0.022222
false
0.008889
0.022222
0
0.071111
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
66ff6d6e84f9cf7827838e7b562a95c1c47f4136
855
py
Python
users/urls.py
bhatiaisb5300/DevelopmentRobotix
d56555120ad4ed170609764ca2dcc455df71c0e0
[ "Apache-2.0" ]
null
null
null
users/urls.py
bhatiaisb5300/DevelopmentRobotix
d56555120ad4ed170609764ca2dcc455df71c0e0
[ "Apache-2.0" ]
7
2020-02-12T02:54:35.000Z
2022-03-12T00:06:26.000Z
users/urls.py
bhatiaisb5300/DevelopmentRobotix
d56555120ad4ed170609764ca2dcc455df71c0e0
[ "Apache-2.0" ]
6
2020-02-10T16:37:38.000Z
2021-01-28T13:39:46.000Z
from rest_framework.routers import DefaultRouter from django.urls import path,include,re_path from . import views from .views import UserProfileViewSet,accountView,loginView,registerView router = DefaultRouter() router.register('profiles',UserProfileViewSet,base_name='user-profile-viewset') urlpatterns = [ path('...
45
124
0.735673
110
855
5.554545
0.427273
0.10802
0.052373
0.065466
0.114566
0.114566
0.114566
0
0
0
0
0.005089
0.080702
855
18
125
47.5
0.772265
0.139181
0
0
0
0
0.254422
0.07619
0
0
0
0
0
1
0
false
0.066667
0.266667
0
0.266667
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
0f05e0f501122abe2ff980259a1d4c376517e2ae
939
py
Python
components/example_01/nodes/telegram.py
Legodev/Flask-Drawflow
981abb40ed6828d3a3feefd094cdb636ab8cb352
[ "MIT" ]
null
null
null
components/example_01/nodes/telegram.py
Legodev/Flask-Drawflow
981abb40ed6828d3a3feefd094cdb636ab8cb352
[ "MIT" ]
null
null
null
components/example_01/nodes/telegram.py
Legodev/Flask-Drawflow
981abb40ed6828d3a3feefd094cdb636ab8cb352
[ "MIT" ]
null
null
null
from components.base.drawflownodebase import DrawflowNodeBase class TelegramNode(DrawflowNodeBase): def __init__(self): super().__init__() self.name('telegram') self.title('Telegram send message') self.input('msg', str) self.icon('fab fa-telegram') self.html(""" ...
34.777778
95
0.498403
94
939
4.851064
0.414894
0.096491
0.157895
0.157895
0
0
0
0
0
0
0
0.013514
0.369542
939
26
96
36.115385
0.756757
0
0
0.086957
0
0.043478
0.707135
0.13099
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f0cadf0b2ad490bd0e0a7b62647d630897acf1f
936
py
Python
py/path-sum-iii.py
ckclark/leetcode
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
[ "Apache-2.0" ]
null
null
null
py/path-sum-iii.py
ckclark/leetcode
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
[ "Apache-2.0" ]
null
null
null
py/path-sum-iii.py
ckclark/leetcode
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
[ "Apache-2.0" ]
null
null
null
from collections import Counter # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def dfs(self, cur): if cur: self.subsum += cur.val yield...
27.529412
65
0.535256
114
936
4.315789
0.333333
0.223577
0.172764
0.128049
0.23374
0.178862
0
0
0
0
0
0.008333
0.358974
936
33
66
28.363636
0.811667
0.220085
0
0.105263
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.263158
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f0dd60538d6292c289443c9d9f367dd185894eb
641
py
Python
tests/test_zz_jvm_kill.py
edurand/cellom2tif
1806ca579d4a9ff4aeda619bac47d3b648a7cb36
[ "BSD-3-Clause" ]
4
2015-02-25T21:58:35.000Z
2016-09-02T19:15:55.000Z
tests/test_zz_jvm_kill.py
edurand/cellom2tif
1806ca579d4a9ff4aeda619bac47d3b648a7cb36
[ "BSD-3-Clause" ]
3
2015-02-26T03:34:35.000Z
2019-03-10T02:45:18.000Z
tests/test_zz_jvm_kill.py
edurand/cellom2tif
1806ca579d4a9ff4aeda619bac47d3b648a7cb36
[ "BSD-3-Clause" ]
3
2015-02-25T08:08:04.000Z
2019-03-07T08:25:13.000Z
from cellom2tif import cellom2tif import bioformats as bf import pytest cfile = 'test-data/d1/MFGTMP_120628160001_C18f00d0.C01' def test_read_image(): im = cellom2tif.read_image(cfile) assert im.shape == (512, 512) def test_read_image_from_reader(): rdr = bf.ImageReader(cfile) im = cellom2tif.read...
21.366667
67
0.722309
88
641
5.079545
0.465909
0.100671
0.127517
0.071588
0.237136
0.116331
0.116331
0
0
0
0
0.077505
0.174727
641
29
68
22.103448
0.767486
0
0
0.210526
0
0
0.107644
0.070203
0
0
0
0
0.210526
1
0.210526
false
0
0.157895
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0f0f49d0be3ffc2f2da8693b999d6c0fd461d32a
975
py
Python
python/design/0225_implement_stack_using_queues.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/design/0225_implement_stack_using_queues.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/design/0225_implement_stack_using_queues.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class MyStack(object): def __init__(self): """ Initialize your data structure here. """ self.data = [] def push(self, x): """ Push element x onto stack. :type x: int :rtype: None """ q = [x] while self.data: q....
19.5
73
0.483077
116
975
4.017241
0.387931
0.120172
0.038627
0.051502
0.124464
0.124464
0
0
0
0
0
0.013559
0.394872
975
49
74
19.897959
0.776271
0.255385
0
0
0
0
0
0
0
0
0
0
0.142857
1
0.285714
false
0
0
0
0.47619
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
0f1181960b46270c6ffd4b3a51275ac579f3bd21
1,168
py
Python
copy farture.py
wy1157497582/arcpy
c7b67505a3e2d47bdbcfdbef7e54f1b0b0a23d02
[ "Apache-2.0" ]
1
2019-07-07T17:49:28.000Z
2019-07-07T17:49:28.000Z
copy farture.py
wy1157497582/arcpy
c7b67505a3e2d47bdbcfdbef7e54f1b0b0a23d02
[ "Apache-2.0" ]
null
null
null
copy farture.py
wy1157497582/arcpy
c7b67505a3e2d47bdbcfdbef7e54f1b0b0a23d02
[ "Apache-2.0" ]
null
null
null
#-*- coding:utf-8-*- import arcpy,os inPath = u"F:\第四批数据\beizh\ls.mdb" arcpy.env.workspace = inPath arcpy.env.overwriteoutput=1 outPath =u"F:" outName = "dian.mdb" try: #'''''复制要素类函数''' def copyAll(outPath,outName): for fc in arcpy.ListFeatureClasses(): #print(" Feature Class: {0}".format(...
34.352941
90
0.680651
132
1,168
6.007576
0.515152
0.040353
0.064313
0.087011
0.07314
0
0
0
0
0
0
0.013598
0.181507
1,168
34
91
34.352941
0.814854
0.318493
0
0
0
0
0.049936
0.026889
0
0
0
0
0
0
null
null
0
0.05
null
null
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
1
0
0
0
0
0
0
0
0
1
0f15651f2289a181da625e3442323cb35e0d6334
452
py
Python
urbarium/character/migrations/0005_auto_20200518_1218.py
nikerzetic/zacasno-ime
7ca42665a0f64cae7233c994c879f2d81502efec
[ "MIT" ]
null
null
null
urbarium/character/migrations/0005_auto_20200518_1218.py
nikerzetic/zacasno-ime
7ca42665a0f64cae7233c994c879f2d81502efec
[ "MIT" ]
5
2021-03-30T14:18:31.000Z
2021-09-22T19:35:18.000Z
urbarium/character/migrations/0005_auto_20200518_1218.py
nikerzetic/zacasno-ime
7ca42665a0f64cae7233c994c879f2d81502efec
[ "MIT" ]
1
2020-09-08T10:38:54.000Z
2020-09-08T10:38:54.000Z
# Generated by Django 3.0.4 on 2020-05-18 10:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('character', '0004_auto_20200518_1215'), ] operations = [ migrations.AlterField( model_name='character', name='notes'...
22.6
76
0.606195
48
452
5.583333
0.8125
0
0
0
0
0
0
0
0
0
0
0.107362
0.278761
452
19
77
23.789474
0.714724
0.099558
0
0
1
0
0.11358
0.05679
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
0f1c19cfd4f91c97881a72051f5fc2079b193238
1,901
py
Python
main.py
Lonikoo/Sorting_Visualization
17fda7eb1fddb66978b088d68c98c8ed34c7fae5
[ "MIT" ]
1
2021-01-26T06:50:27.000Z
2021-01-26T06:50:27.000Z
main.py
Lonikoo/Sorting_Visualization
17fda7eb1fddb66978b088d68c98c8ed34c7fae5
[ "MIT" ]
null
null
null
main.py
Lonikoo/Sorting_Visualization
17fda7eb1fddb66978b088d68c98c8ed34c7fae5
[ "MIT" ]
null
null
null
from data import DataSeq from bubblesort import BubbleSort from bucketsort import BucketSort from combsort import CombSort from cyclesort import CycleSort from heapsort import HeapSort from insertionsort import InsertionSort from mergesort import MergeSort from monkeysort import MonkeySort from quicksort import QuickSo...
37.27451
132
0.685429
211
1,901
6.061611
0.369668
0.04222
0.07975
0.032838
0.050039
0.050039
0
0
0
0
0
0.005288
0.204103
1,901
51
133
37.27451
0.840053
0
0
0.043478
0
0
0.160883
0
0
0
0
0
0
1
0
false
0
0.304348
0
0.304348
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0f28261d1a1e5c15f4bfb5671885024b53f5470c
571
py
Python
sem6000/bluetooth_lowenergy_interface/timeout_decorator.py
moormaster/voltcraft-sem-6000
e41766ab6f1eea1950ab70ca28227ec91d777331
[ "MIT" ]
2
2020-08-20T07:25:12.000Z
2021-12-04T20:36:46.000Z
sem6000/bluetooth_lowenergy_interface/timeout_decorator.py
moormaster/voltcraft-sem-6000
e41766ab6f1eea1950ab70ca28227ec91d777331
[ "MIT" ]
null
null
null
sem6000/bluetooth_lowenergy_interface/timeout_decorator.py
moormaster/voltcraft-sem-6000
e41766ab6f1eea1950ab70ca28227ec91d777331
[ "MIT" ]
null
null
null
import threading def DisconnectAfterTimeout(timeout): def Decorator(function): def decorated_function(*s, **d): def disconnect(): disconnectable = s[0] disconnectable.disconnect() timer = threading.Timer(timeout, disconnect) timer.start()...
22.84
56
0.534151
47
571
6.382979
0.446809
0.11
0.066667
0
0
0
0
0
0
0
0
0.002874
0.390543
571
24
57
23.791667
0.859195
0
0
0
0
0
0
0
0
0
0
0
0
1
0.235294
false
0
0.058824
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0f2e00d2488cbf83364768ef69279b2c15f41671
4,706
py
Python
python02/PythonExample3.py
zhayangtao/HelloPython
e0e8b450afba1382f56411344ad54ef9910a5004
[ "Apache-2.0" ]
null
null
null
python02/PythonExample3.py
zhayangtao/HelloPython
e0e8b450afba1382f56411344ad54ef9910a5004
[ "Apache-2.0" ]
1
2017-09-01T03:59:11.000Z
2017-09-01T03:59:11.000Z
python02/PythonExample3.py
zhayangtao/HelloPython
e0e8b450afba1382f56411344ad54ef9910a5004
[ "Apache-2.0" ]
null
null
null
class Number: def __init__(self, start): self.data = start def __sub__(self, other): return Number(self.data - other) class Indexer: data = [5, 6, 7, 8, 9] def __getitem__(self, item): print('getitem:', item) return self.data[item] def __setitem__(self, index, va...
18.674603
44
0.555886
565
4,706
4.311504
0.19646
0.077586
0.058703
0.039409
0.281199
0.16092
0.137931
0.108374
0.055008
0.055008
0
0.008424
0.318955
4,706
251
45
18.749004
0.751638
0
0
0.341615
0
0
0.028727
0
0
0
0
0
0
1
0.248447
false
0.006211
0
0.043478
0.534161
0.118012
0
0
0
null
0
0
0
0
0
0
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
0f314aa70caa923828d2c6da6465a1a777d359b7
3,588
py
Python
docs/lectures/lecture31/notebook/helper.py
DavidAssaraf106/2021-CS109B
502970bf8bb653222eade0ff42d1fc2c54d3fa74
[ "MIT" ]
null
null
null
docs/lectures/lecture31/notebook/helper.py
DavidAssaraf106/2021-CS109B
502970bf8bb653222eade0ff42d1fc2c54d3fa74
[ "MIT" ]
null
null
null
docs/lectures/lecture31/notebook/helper.py
DavidAssaraf106/2021-CS109B
502970bf8bb653222eade0ff42d1fc2c54d3fa74
[ "MIT" ]
null
null
null
# This helper file, setups the rules and rewards for the mouse grid system # State = 1, start point # Action - 1: Top, 2:Left, 3:Right, 4:Down def transition_rules(state, action): # For state 1 if state == 1 and (action == 3 or action == 4): state = 1 elif state == 1 and action == 1: state...
22.425
74
0.495819
517
3,588
3.431335
0.090909
0.253664
0.067644
0.101466
0.622322
0.342165
0.325817
0
0
0
0
0.109711
0.40301
3,588
159
75
22.566038
0.718487
0.093367
0
0.429825
0
0
0
0
0
0
0
0
0
1
0.017544
false
0
0
0
0.035088
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f355ef81ff58ba813d80dde1368e0ec61c5c3f5
834
py
Python
website/migrations/0004_auto_20180602_1043.py
pomo-mondreganto/CTForces-old
86758192f800108ff109f07fe155d5a98b4a3e14
[ "MIT" ]
null
null
null
website/migrations/0004_auto_20180602_1043.py
pomo-mondreganto/CTForces-old
86758192f800108ff109f07fe155d5a98b4a3e14
[ "MIT" ]
6
2021-10-01T14:18:34.000Z
2021-10-01T14:19:17.000Z
website/migrations/0004_auto_20180602_1043.py
pomo-mondreganto/CTForces-old
86758192f800108ff109f07fe155d5a98b4a3e14
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-06-02 07:43 from django.db import migrations, models import website.models_auxiliary class Migration(migrations.Migration): dependencies = [ ('website', '0003_auto_20180601_2313'), ] operations = [ migrations.AddField( model_name='task', ...
30.888889
114
0.546763
76
834
5.828947
0.671053
0.088036
0.148984
0
0
0
0
0
0
0
0
0.057728
0.356115
834
26
115
32.076923
0.767225
0.053957
0
0.1
1
0
0.082592
0.029225
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
0f3f6ab70f782313725b84150e02fc10f2840f80
729
py
Python
get-page.py
cristianounix/python-scripts
fe326741f6ef49b3171255b6c42f297803462dca
[ "MIT" ]
null
null
null
get-page.py
cristianounix/python-scripts
fe326741f6ef49b3171255b6c42f297803462dca
[ "MIT" ]
null
null
null
get-page.py
cristianounix/python-scripts
fe326741f6ef49b3171255b6c42f297803462dca
[ "MIT" ]
null
null
null
import pycurl import thread from StringIO import StringIO def request_url(thread_name, start, end): buffer = StringIO() for x in range(start, end): c = pycurl.Curl() print(str(thread_name)+"Processando --> "+str(x)) c.setopt(c.URL, 'http://www.site.com.br/?id='+str(x)) c.setopt...
22.090909
69
0.599451
102
729
4.196078
0.509804
0.070093
0.11215
0.051402
0.224299
0.168224
0.168224
0
0
0
0
0.032432
0.238683
729
32
70
22.78125
0.738739
0.015089
0
0
0
0
0.143654
0
0
0
0
0
0
0
null
null
0.043478
0.130435
null
null
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0f42ead463567c7f02f6ff3aa4c1735191ce77d9
6,843
py
Python
common/past/arguments.py
punk95/Hierarchical-constrained-RL
848dc52a95208c4ce2908e3451c0067e38cea191
[ "MIT" ]
null
null
null
common/past/arguments.py
punk95/Hierarchical-constrained-RL
848dc52a95208c4ce2908e3451c0067e38cea191
[ "MIT" ]
null
null
null
common/past/arguments.py
punk95/Hierarchical-constrained-RL
848dc52a95208c4ce2908e3451c0067e38cea191
[ "MIT" ]
null
null
null
import argparse def get_args(): """ Utility for getting the arguments from the user for running the experiment :return: parsed arguments """ # Env parser = argparse.ArgumentParser(description='collect arguments') parser.add_argument('--save_dir', type=str, default="results/grid/sarsa/")...
54.744
120
0.604413
880
6,843
4.630682
0.265909
0.106012
0.200245
0.04589
0.267975
0.17227
0.087853
0.072147
0.072147
0.072147
0
0.020388
0.261727
6,843
124
121
55.185484
0.786223
0.208096
0
0.026316
0
0
0.363907
0.007814
0
0
0
0
0
1
0.013158
false
0
0.013158
0
0.039474
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
0f42f90945149af1ed2ed5b250901f087c1333e9
2,218
py
Python
nicos_mlz/kompass/setups/aircontrol.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/kompass/setups/aircontrol.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/kompass/setups/aircontrol.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
description = 'Aircontrol PLC devices' group = 'optional' tango_base = 'tango://kompasshw.kompass.frm2:10000/kompass/aircontrol/plc_' devices = dict( spare_motor_x2 = device('nicos.devices.entangle.Motor', description = 'spare motor', tangodevice = tango_base + 'spare_mot_x2', fmtstr = '%...
34.65625
88
0.593327
253
2,218
5.086957
0.332016
0.062937
0.111888
0.161616
0.383838
0.346542
0.206682
0
0
0
0
0.016908
0.253381
2,218
63
89
35.206349
0.760266
0.114968
0
0.166667
0
0
0.33163
0.152274
0
0
0
0
0
1
0
false
0.020833
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f4375c15727235305899fcdd1f8500b3f38ccb2
14,884
py
Python
SimulateCNVs.py
YJulyXing/SimulateCNVs
21eb122f033e23da17fe37ebfc3978d2c7bac103
[ "MIT" ]
3
2018-09-07T13:54:35.000Z
2018-09-10T09:43:46.000Z
SimulateCNVs.py
YJulyXing/SimulateCNVs
21eb122f033e23da17fe37ebfc3978d2c7bac103
[ "MIT" ]
1
2020-11-22T22:16:48.000Z
2020-11-22T22:16:48.000Z
SimulateCNVs.py
YJulyXing/SimulateCNVs
21eb122f033e23da17fe37ebfc3978d2c7bac103
[ "MIT" ]
1
2021-11-23T10:13:45.000Z
2021-11-23T10:13:45.000Z
#!/usr/bin/python ''' Yue July Xing 06/27/2018 ''' import argparse import random import os import subprocess import math import sys import time from WES_simulator import * from WGS_simulator import * from Common import * def main(): parser = argparse.ArgumentParser(description='Simulator for WES or WGS data', \ ...
43.520468
179
0.697124
2,401
14,884
4.10329
0.118284
0.053593
0.029842
0.020706
0.455441
0.358303
0.326431
0.265834
0.247665
0.230106
0
0.014503
0.147608
14,884
342
180
43.520468
0.76204
0.011422
0
0.246622
0
0.033784
0.447367
0.008721
0
0
0
0
0
0
null
null
0
0.033784
null
null
0.118243
0
0
0
null
0
0
0
0
0
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
0f4e05cf91f96e929501349f2479bbdcbef0e8ab
336
py
Python
TeacherTree/venv/Lib/site-packages/flask_boost/templates/model.py
intuile/teacher-tree-website
71b4a30bd2d1f541f0921a8afd1ab476c7af7928
[ "MIT" ]
543
2015-01-12T06:22:48.000Z
2022-02-18T11:42:32.000Z
TeacherTree/venv/Lib/site-packages/flask_boost/templates/model.py
intuile/teacher-tree-website
71b4a30bd2d1f541f0921a8afd1ab476c7af7928
[ "MIT" ]
31
2015-01-01T06:55:59.000Z
2018-02-17T00:20:42.000Z
TeacherTree/venv/Lib/site-packages/flask_boost/templates/model.py
intuile/teacher-tree-website
71b4a30bd2d1f541f0921a8afd1ab476c7af7928
[ "MIT" ]
96
2015-01-04T08:44:39.000Z
2020-01-07T18:18:04.000Z
# coding: utf-8 from datetime import datetime from ._base import db class #{model|title}(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True) created_at = db.Column(db.DateTime, default=datetime.now) def __repr__(self): return '<#{model|title} %...
25.846154
61
0.675595
50
336
4.4
0.6
0.109091
0.136364
0
0
0
0
0
0
0
0
0.01083
0.175595
336
12
62
28
0.783394
0.110119
0
0
0
0
0.05919
0
0
0
0
0
0
0
null
null
0
0.25
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
0f548ba9f576b1d802e9c0247e2667162ab7a43b
5,577
py
Python
blueqat/backends/cuquantum.py
mdrft/Blueqat
878d24e2038063e32b4d391a03bc2c2be0600470
[ "Apache-2.0" ]
25
2018-09-16T22:54:48.000Z
2019-02-22T01:21:30.000Z
blueqat/backends/cuquantum.py
mdrft/Blueqat
878d24e2038063e32b4d391a03bc2c2be0600470
[ "Apache-2.0" ]
22
2018-09-20T02:47:56.000Z
2019-02-08T05:25:30.000Z
blueqat/backends/cuquantum.py
mdrft/Blueqat
878d24e2038063e32b4d391a03bc2c2be0600470
[ "Apache-2.0" ]
5
2018-10-23T04:56:04.000Z
2019-02-13T14:02:31.000Z
from .backendbase import Backend from ..circuit import Circuit from ..gate import * import numpy as np class cuTN(Backend): def _preprocess_run(self, gates, n_qubits, args, kwargs): import opt_einsum as oe arr_tensor = [] arr_arm = [] arr_state = [] n_symbols =...
33.196429
196
0.530393
793
5,577
3.566204
0.176545
0.026874
0.033593
0.054455
0.583098
0.540665
0.514144
0.464286
0.464286
0.444837
0
0.057662
0.328313
5,577
168
197
33.196429
0.697277
0.082302
0
0.37931
0
0
0.03794
0.004325
0
0
0
0
0
1
0.091954
false
0
0.126437
0.022989
0.54023
0.011494
0
0
0
null
0
0
0
0
0
0
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
0f55291bddd7fe90a231cee923902194b9169c08
2,972
py
Python
bel/schemas/nanopubs.py
belbio/bel
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
[ "Apache-2.0" ]
6
2018-01-31T21:25:40.000Z
2020-11-18T16:43:56.000Z
bel/schemas/nanopubs.py
belbio/bel
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
[ "Apache-2.0" ]
83
2018-01-03T17:31:49.000Z
2021-12-13T19:50:17.000Z
bel/schemas/nanopubs.py
belbio/bel
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
[ "Apache-2.0" ]
2
2019-04-12T20:42:06.000Z
2020-07-17T02:49:03.000Z
# Standard Library import enum from typing import Any, List, Mapping, Optional, Union # Third Party import pydantic from pydantic import AnyUrl, BaseModel, Field, HttpUrl, validator # Local from bel.schemas.bel import ValidationErrors class NanopubType(BaseModel): name: str = "BEL" version: str = "latest" ...
21.381295
95
0.646366
322
2,972
5.916149
0.378882
0.103937
0.08399
0.066142
0.191076
0.074541
0.074541
0.074541
0.074541
0.074541
0
0.002228
0.244953
2,972
138
96
21.536232
0.846702
0.091184
0
0.310345
0
0.011494
0.124205
0
0
0
0
0
0.022989
1
0
false
0
0.057471
0
0.770115
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
0f57883badd20369704f60571ecc4a2fc76cfdce
823
py
Python
h/traversal/organization.py
bibliotechie/h
16e275f79ef7d1086971bd30ef403501c6b93beb
[ "BSD-2-Clause" ]
null
null
null
h/traversal/organization.py
bibliotechie/h
16e275f79ef7d1086971bd30ef403501c6b93beb
[ "BSD-2-Clause" ]
null
null
null
h/traversal/organization.py
bibliotechie/h
16e275f79ef7d1086971bd30ef403501c6b93beb
[ "BSD-2-Clause" ]
null
null
null
from dataclasses import dataclass from functools import cached_property from pyramid.request import Request from h.models import Organization from h.traversal.root import Root, RootFactory class OrganizationRoot(RootFactory): """Root factory for routes which deal with organizations.""" def __getitem__(self...
24.939394
87
0.72418
88
823
6.613636
0.522727
0.056701
0.106529
0
0
0
0
0
0
0
0
0
0.204131
823
32
88
25.71875
0.88855
0.111786
0
0
0
0
0.016667
0
0
0
0
0
0
1
0.1
false
0
0.25
0.05
0.65
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
0f583e0f7c7de7d73085445c449dde0d188665dc
425
py
Python
BurnySC2/local/rush_agent/run.py
PhoenixNest/Hello-PySC2
8c4a963494b8a2ee22d22f42ede51701511d4e22
[ "MIT" ]
null
null
null
BurnySC2/local/rush_agent/run.py
PhoenixNest/Hello-PySC2
8c4a963494b8a2ee22d22f42ede51701511d4e22
[ "MIT" ]
null
null
null
BurnySC2/local/rush_agent/run.py
PhoenixNest/Hello-PySC2
8c4a963494b8a2ee22d22f42ede51701511d4e22
[ "MIT" ]
null
null
null
import random import sc2 from sc2.player import Bot, Computer import protoss_agent if __name__ == '__main__': enemy_race = random.choice([sc2.Race.Protoss, sc2.Race.Terran, sc2.Race.Zerg, sc2.Race.Random]) sc2.run_game(sc2.maps.get("Simple128"), [Bot(sc2.Race.Protoss, protoss_agent.ProtossRu...
30.357143
99
0.665882
54
425
5
0.5
0.12963
0.103704
0
0
0
0
0
0
0
0
0.038806
0.211765
425
13
100
32.692308
0.767164
0
0
0
0
0
0.04
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0f661f8d656dbe13f6c6156701664855202ab169
407
py
Python
main/settings_for_script.py
nmota/public-contracts
b809df82147e5e4fa746416c0f9d51db2c6db05a
[ "BSD-3-Clause" ]
null
null
null
main/settings_for_script.py
nmota/public-contracts
b809df82147e5e4fa746416c0f9d51db2c6db05a
[ "BSD-3-Clause" ]
null
null
null
main/settings_for_script.py
nmota/public-contracts
b809df82147e5e4fa746416c0f9d51db2c6db05a
[ "BSD-3-Clause" ]
null
null
null
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'publics', 'USER': 'publics_read_only', 'PASSWORD': r'read-only', 'HOST': '5.153.9.51', 'PORT': '5432', } } INSTALLED_APPS = ( 'contracts', 'law', 'deputies' ) # ...
19.380952
62
0.555283
45
407
4.911111
0.888889
0.072398
0
0
0
0
0
0
0
0
0
0.040541
0.272727
407
20
63
20.35
0.706081
0.14742
0
0
0
0
0.44186
0.110465
0
0
0
0
0
1
0
false
0.0625
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0f678d3d3a5963f1ca80940399c8836022c7348f
3,359
py
Python
alttprbot_discord/cogs/racetime_tools.py
skyscooby/sahasrahbot
16fce824bd024f6357a8f260e2447ba477dcdac2
[ "MIT" ]
15
2019-10-15T21:35:59.000Z
2022-03-31T19:49:39.000Z
alttprbot_discord/cogs/racetime_tools.py
skyscooby/sahasrahbot
16fce824bd024f6357a8f260e2447ba477dcdac2
[ "MIT" ]
12
2019-10-06T01:33:13.000Z
2022-03-10T14:35:16.000Z
alttprbot_discord/cogs/racetime_tools.py
skyscooby/sahasrahbot
16fce824bd024f6357a8f260e2447ba477dcdac2
[ "MIT" ]
28
2019-11-25T23:49:56.000Z
2022-03-10T04:03:31.000Z
import json import aiohttp import discord from discord.ext import commands from alttprbot import models class RacetimeTools(commands.Cog): def __init__(self, bot): self.bot: commands.Bot = bot @commands.Cog.listener() async def on_racetime_open(self, handler, data): pass @commands....
41.469136
179
0.635904
409
3,359
5
0.229829
0.059169
0.038142
0.049878
0.563325
0.485086
0.485086
0.4489
0.4489
0.41467
0
0.0004
0.256029
3,359
80
180
41.9875
0.817927
0
0
0.370968
0
0.032258
0.131884
0.068175
0
0
0
0
0
1
0.032258
false
0.064516
0.080645
0
0.129032
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
0f6c50fdad09f8e9d10f536b05c524d1884290ad
1,254
py
Python
core/config/base_config.py
Wr490046178/fast-api-frame
1f44bc0a18b819be6d02c3635dc844e7e6383ba0
[ "Apache-2.0" ]
null
null
null
core/config/base_config.py
Wr490046178/fast-api-frame
1f44bc0a18b819be6d02c3635dc844e7e6383ba0
[ "Apache-2.0" ]
null
null
null
core/config/base_config.py
Wr490046178/fast-api-frame
1f44bc0a18b819be6d02c3635dc844e7e6383ba0
[ "Apache-2.0" ]
null
null
null
import os def str2bool(v): if v is None or isinstance(v, bool): return v return v.lower() in ("yes", "true", "t", "1") def str2int(v): if v is None: return v if v == "": return None return int(v) def str2float(v): if v is None: return v return int(v) c...
27.866667
107
0.611643
169
1,254
4.331361
0.390533
0.120219
0.021858
0.02459
0.117486
0.046448
0.046448
0
0
0
0
0.033498
0.19059
1,254
44
108
28.5
0.687685
0.083732
0
0.25
0
0
0.276856
0.105677
0
0
0
0
0
1
0.107143
false
0
0.035714
0
0.857143
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
0f704bb1947b55b9a3aa9f8b097171686343d9cd
220
py
Python
examples/gridworld_example.py
omardrwch/rl_exploration_benchmark
347721cc08aba1e402233469cfb33b48dedb35ab
[ "MIT" ]
1
2020-09-02T00:15:26.000Z
2020-09-02T00:15:26.000Z
examples/gridworld_example.py
omardrwch/rl_exploration_benchmark
347721cc08aba1e402233469cfb33b48dedb35ab
[ "MIT" ]
null
null
null
examples/gridworld_example.py
omardrwch/rl_exploration_benchmark
347721cc08aba1e402233469cfb33b48dedb35ab
[ "MIT" ]
null
null
null
from rlxp.envs import GridWorld from rlxp.rendering import render_env2d env = GridWorld(7, 10, walls=((2,2), (3,3))) env.enable_rendering() for tt in range(50): env.step(env.action_space.sample()) render_env2d(env)
27.5
44
0.736364
37
220
4.27027
0.648649
0.101266
0.177215
0
0
0
0
0
0
0
0
0.056701
0.118182
220
8
45
27.5
0.757732
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f70a7ce51e47dd15d6b21c96880894bca661974
13,509
py
Python
one_fm/templates/pages/applicant_docs.py
mohsinalimat/One-FM
ad9a5d8f785c4e69ca68ba1ef75dd26725e5c9c3
[ "MIT" ]
null
null
null
one_fm/templates/pages/applicant_docs.py
mohsinalimat/One-FM
ad9a5d8f785c4e69ca68ba1ef75dd26725e5c9c3
[ "MIT" ]
null
null
null
one_fm/templates/pages/applicant_docs.py
mohsinalimat/One-FM
ad9a5d8f785c4e69ca68ba1ef75dd26725e5c9c3
[ "MIT" ]
null
null
null
from google.cloud import vision import os, io import frappe from frappe.utils import cstr import json import frappe.sessions import base64 import datetime import hashlib from dateutil.parser import parse from frappe import _ from frappe.model.document import Document from one_fm.one_fm.doctype.magic_link.magic_link im...
37.629526
148
0.672515
1,770
13,509
4.941243
0.141808
0.041162
0.075806
0.05534
0.625886
0.565859
0.505946
0.469357
0.457123
0.439744
0
0.006972
0.203716
13,509
358
149
37.734637
0.80608
0.151307
0
0.419643
0
0
0.135863
0.022037
0
0
0
0
0
1
0.066964
false
0.09375
0.058036
0.008929
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0f71bce09b3b0ac10bd0f722c7e60b6654304656
3,875
py
Python
bot.py
Delivery-Klad/DiscordMusicBot
385a4a91c03d077d18e3c1d1666d191c1a1ebd2a
[ "Apache-2.0" ]
9
2020-10-02T19:22:08.000Z
2021-03-15T12:34:41.000Z
bot.py
Delivery-Klad/DiscordMusicBot
385a4a91c03d077d18e3c1d1666d191c1a1ebd2a
[ "Apache-2.0" ]
4
2021-02-02T07:27:51.000Z
2022-03-26T19:48:39.000Z
bot.py
Delivery-Klad/DiscordMusicBot
385a4a91c03d077d18e3c1d1666d191c1a1ebd2a
[ "Apache-2.0" ]
5
2020-08-31T13:03:53.000Z
2021-11-12T16:37:58.000Z
import discord import youtube_dl import os from discord.ext import commands from discord.utils import get from discord import FFmpegPCMAudio bot = commands.Bot(command_prefix='.') vol = 100 @bot.event async def on_ready(): print("Logged in as: " + bot.user.name + "\n") game = discord.Game("поиск дома") a...
29.580153
98
0.636129
503
3,875
4.838966
0.369781
0.049302
0.073952
0.051767
0.248562
0.248562
0.17461
0.150781
0.150781
0.135168
0
0.005366
0.230452
3,875
130
99
29.807692
0.810865
0
0
0.198113
0
0
0.226581
0
0
0
0
0
0
1
0
false
0.066038
0.056604
0
0.084906
0.056604
0
0
0
null
0
0
0
0
0
0
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
0f774fdbab86594be665bd41cc07815f0c588fa1
1,536
py
Python
overhave/admin/views/index/login_form.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
33
2021-02-01T15:49:37.000Z
2021-12-20T00:44:43.000Z
overhave/admin/views/index/login_form.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
46
2021-02-03T12:56:52.000Z
2021-12-19T18:50:27.000Z
overhave/admin/views/index/login_form.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
1
2021-12-07T09:02:44.000Z
2021-12-07T09:02:44.000Z
import logging import flask from flask_wtf import FlaskForm as Form from pydantic import SecretStr from werkzeug import Response from wtforms import PasswordField, StringField, validators from overhave.authorization import IAdminAuthorizationManager from overhave.entities import SystemUserModel logger = logging.getL...
34.133333
99
0.721354
163
1,536
6.564417
0.435583
0.041122
0.042056
0.035514
0
0
0
0
0
0
0
0
0.181641
1,536
44
100
34.909091
0.851233
0.018229
0
0
0
0
0.126
0.014
0
0
0
0
0
1
0.090909
false
0.151515
0.242424
0
0.484848
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0f808654a3e6270e55f4627d4e343777ae4843c8
755
py
Python
Books/code/chapter_29/02_kfold_decision_tree.py
Mikma03/Optimization_in_Machine_Learning
257d0455d4ae0b4fc7a762eda841a16611c49000
[ "Apache-2.0" ]
1
2022-03-30T11:07:28.000Z
2022-03-30T11:07:28.000Z
Books/code/chapter_29/02_kfold_decision_tree.py
Mikma03/Optimization_in_Machine_Learning
257d0455d4ae0b4fc7a762eda841a16611c49000
[ "Apache-2.0" ]
null
null
null
Books/code/chapter_29/02_kfold_decision_tree.py
Mikma03/Optimization_in_Machine_Learning
257d0455d4ae0b4fc7a762eda841a16611c49000
[ "Apache-2.0" ]
null
null
null
# evaluate a decision tree on the entire small dataset from numpy import mean from numpy import std from sklearn.datasets import make_classification from sklearn.model_selection import cross_val_score from sklearn.model_selection import RepeatedStratifiedKFold from sklearn.tree import DecisionTreeClassifier # define da...
41.944444
104
0.803974
108
755
5.462963
0.490741
0.074576
0.050847
0.084746
0.105085
0
0
0
0
0
0
0.022255
0.107285
755
17
105
44.411765
0.853116
0.181457
0
0
0
0
0.055646
0
0
0
0
0
0
1
0
false
0
0.545455
0
0.545455
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0f848a1d7704cd7014c54423a43a41e9044a9a21
2,746
py
Python
python/coffer/ticker/baseprice.py
Steve132/wallet_standard
09c909b24dc17cf6a0a433644d8f1912e886ab1c
[ "MIT" ]
null
null
null
python/coffer/ticker/baseprice.py
Steve132/wallet_standard
09c909b24dc17cf6a0a433644d8f1912e886ab1c
[ "MIT" ]
null
null
null
python/coffer/ticker/baseprice.py
Steve132/wallet_standard
09c909b24dc17cf6a0a433644d8f1912e886ab1c
[ "MIT" ]
null
null
null
import logging import time import bisect class PriceLookupBoundsError(Exception): def __init__(self,requested_timestamp,nearest_timestamp,nearest_price): super(PriceLookupBoundsError, self).__init__("Requested price lookup at time %s is out of bounds of the available data" % (requested_timestamp)) self.request...
36.613333
146
0.798252
376
2,746
5.582447
0.228723
0.115293
0.130062
0.05717
0.179133
0.07051
0
0
0
0
0
0.005213
0.09177
2,746
74
147
37.108108
0.836407
0.012382
0
0.072727
0
0
0.041328
0
0
0
0
0
0
0
null
null
0.036364
0.054545
null
null
0.018182
0
0
0
null
0
0
0
0
0
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
0f873feac5a6ae7bfea0e4b0f2a6e2f2bb3822bb
2,450
py
Python
neutron/tests/unit/plugins/ml2/drivers/test_type_gre.py
cleo4zheng/neutron
6d65318308edfd984bdd0ff1ac7fef9486a040f7
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/tests/unit/plugins/ml2/drivers/test_type_gre.py
cleo4zheng/neutron
6d65318308edfd984bdd0ff1ac7fef9486a040f7
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/tests/unit/plugins/ml2/drivers/test_type_gre.py
cleo4zheng/neutron
6d65318308edfd984bdd0ff1ac7fef9486a040f7
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright (c) 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
37.692308
78
0.720408
316
2,450
5.341772
0.379747
0.052133
0.091232
0.063981
0.292654
0.278436
0.187204
0.187204
0.11019
0.11019
0
0.013953
0.210204
2,450
64
79
38.28125
0.858398
0.24898
0
0.297297
0
0
0.041644
0
0
0
0
0
0.054054
1
0.027027
false
0
0.135135
0
0.513514
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
0f8a920455e51986d7810968be8dcc8933152594
10,951
py
Python
Camera_Caliberation_and_Fundamental_Matrix/code/student_code.py
dasdristanta13/Computer-vision
2fe99066c33f822772ae252f489728b8fff68399
[ "Unlicense" ]
null
null
null
Camera_Caliberation_and_Fundamental_Matrix/code/student_code.py
dasdristanta13/Computer-vision
2fe99066c33f822772ae252f489728b8fff68399
[ "Unlicense" ]
null
null
null
Camera_Caliberation_and_Fundamental_Matrix/code/student_code.py
dasdristanta13/Computer-vision
2fe99066c33f822772ae252f489728b8fff68399
[ "Unlicense" ]
1
2021-11-03T08:17:37.000Z
2021-11-03T08:17:37.000Z
import numpy as np def calculate_projection_matrix(points_2d, points_3d): """ To solve for the projection matrix. You need to set up a system of equations using the corresponding 2D and 3D points: [ M11 [ u1 ...
38.29021
113
0.511186
1,447
10,951
3.741534
0.203179
0.031031
0.026413
0.031215
0.385852
0.345216
0.332287
0.316587
0.284817
0.284817
0
0.046037
0.279974
10,951
285
114
38.424561
0.640583
0.474112
0
0.241379
0
0
0
0
0
0
0
0.014035
0.011494
1
0.057471
false
0
0.011494
0
0.126437
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
0f8c46d159227775a491d6beb5ae6f6089b949f2
1,943
py
Python
write_file.py
jayagascon/pos-chair
a5eefdb23df97e21bbc72e3f84711c2ab6377357
[ "CC0-1.0" ]
null
null
null
write_file.py
jayagascon/pos-chair
a5eefdb23df97e21bbc72e3f84711c2ab6377357
[ "CC0-1.0" ]
null
null
null
write_file.py
jayagascon/pos-chair
a5eefdb23df97e21bbc72e3f84711c2ab6377357
[ "CC0-1.0" ]
null
null
null
# adapted from https://learn.adafruit.com/mcp3008-spi-adc/python-circuitpython import busio import digitalio import board import time import adafruit_mcp3xxx.mcp3008 as MCP from adafruit_mcp3xxx.analog_in import AnalogIn import csv from datetime import datetime # create the spi bus spi = busio.SPI(clock=board.SCK, MI...
33.5
210
0.689655
286
1,943
4.545455
0.353147
0.092308
0.064615
0.030769
0.215385
0.215385
0
0
0
0
0
0.041333
0.165723
1,943
57
211
34.087719
0.760642
0.321153
0
0
0
0
0.034615
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0.038462
0
0
0
null
0
0
0
0
0
0
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
0f8d0be0f01c75eae2d08cf631e90daa1d5a5cbc
1,594
py
Python
compose/connectors/urls.py
lijc210/compose
475945e2b4c993e2a0b11d1bc8497b6d03b7d942
[ "Apache-2.0" ]
null
null
null
compose/connectors/urls.py
lijc210/compose
475945e2b4c993e2a0b11d1bc8497b6d03b7d942
[ "Apache-2.0" ]
null
null
null
compose/connectors/urls.py
lijc210/compose
475945e2b4c993e2a0b11d1bc8497b6d03b7d942
[ "Apache-2.0" ]
1
2022-02-25T18:06:03.000Z
2022-02-25T18:06:03.000Z
# -- coding: utf-8 -- # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
43.081081
137
0.712673
230
1,594
4.847826
0.443478
0.043049
0.043946
0.044843
0.113004
0.096861
0
0
0
0
0
0.00369
0.149937
1,594
36
138
44.277778
0.819188
0.803639
0
0
0
0
0.154639
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f8d7f550c0509ed719c0c07fe1af04f20d8a645
971
py
Python
server/engine_grs/manager.py
Teddywonseokyoo/-GRS
23fd7f0542d6cbfc1e39b707788a8f461c7d3249
[ "MIT" ]
null
null
null
server/engine_grs/manager.py
Teddywonseokyoo/-GRS
23fd7f0542d6cbfc1e39b707788a8f461c7d3249
[ "MIT" ]
null
null
null
server/engine_grs/manager.py
Teddywonseokyoo/-GRS
23fd7f0542d6cbfc1e39b707788a8f461c7d3249
[ "MIT" ]
null
null
null
import preprocessorV2 import gaugedetectorV2 import colorbalance import gaugeocr import sys import cv2 def main(argv): path = '/home/pi/GRS/aeye_grs/storage/org_files/' outfile = "" imgfile = "" if len(argv) > 1: outfile = argv[1] imgfile = argv[1] image = cv2.imread(path+imgfile) cb =...
26.243243
88
0.684861
120
971
5.325
0.425
0.043818
0.075117
0.093897
0.14241
0.071987
0
0
0
0
0
0.018987
0.186406
971
36
89
26.972222
0.789873
0
0
0.068966
0
0
0.179679
0.042781
0
0
0
0
0
0
null
null
0
0.206897
null
null
0.103448
0
0
0
null
0
0
0
0
0
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
0f8fbfdd109ea964d9856eb930a58147c60a4300
3,245
py
Python
imagersite/imager_images/views.py
famavott/django-imager
a9867656af7a665f81574c1be5d50a2a703b4af4
[ "MIT" ]
null
null
null
imagersite/imager_images/views.py
famavott/django-imager
a9867656af7a665f81574c1be5d50a2a703b4af4
[ "MIT" ]
1
2017-11-27T05:32:39.000Z
2017-11-27T05:32:39.000Z
imagersite/imager_images/views.py
famavott/django-imager
a9867656af7a665f81574c1be5d50a2a703b4af4
[ "MIT" ]
null
null
null
"""Views for imager_images.""" from django.urls import reverse_lazy from django.views.generic import CreateView, DetailView, ListView, TemplateView, UpdateView from imager_images.forms import AlbumForm, PhotoForm from imager_images.models import Album, Photo class LibraryView(TemplateView): """View for library...
27.268908
91
0.681048
389
3,245
5.532134
0.192802
0.066915
0.075279
0.100372
0.548327
0.430297
0.430297
0.39684
0.39684
0.356877
0
0
0.20678
3,245
118
92
27.5
0.836053
0.163636
0
0.453125
0
0
0.114916
0.095129
0
0
0
0
0
1
0.109375
false
0
0.0625
0
0.84375
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
0f90e9ec1cdf8bd38dff8bdd35bb53dbafc07fc6
6,370
py
Python
130_html_to_csv/190_mkcsv_t_result_odds.py
takobouzu/BOAT_RACE_DB
f16ed8f55aef567c0ecc6ebd3ad0e917f5c600d8
[ "MIT" ]
6
2020-12-23T01:06:04.000Z
2022-01-12T10:18:36.000Z
130_html_to_csv/190_mkcsv_t_result_odds.py
takobouzu/BOAT_RACE_DB
f16ed8f55aef567c0ecc6ebd3ad0e917f5c600d8
[ "MIT" ]
15
2021-03-02T05:59:24.000Z
2021-09-12T08:12:38.000Z
130_html_to_csv/190_mkcsv_t_result_odds.py
takobouzu/BOAT_RACE_DB
f16ed8f55aef567c0ecc6ebd3ad0e917f5c600d8
[ "MIT" ]
1
2021-05-09T10:47:21.000Z
2021-05-09T10:47:21.000Z
''' 【システム】BOAT_RACE_DB2 【ファイル】180_mkcsv_t_result_odds.py 【機能仕様】レース結果HTMLファイルからレース結果オッズテーブル「t_result_odds」のインポートCSVファイルを作成する 【動作環境】macOS 11.1/Raspbian OS 10.4/python 3.9.1/sqlite3 3.32.3 【来  歴】2021.02.01 ver 1.00 ''' import re import os import datetime from bs4 import BeautifulSoup #インストールディレクトの定義 BASE_DIR = '/home/pi/B...
47.537313
118
0.445369
704
6,370
3.690341
0.24858
0.158968
0.207467
0.104696
0.526559
0.384911
0.376443
0.3495
0.313703
0.255966
0
0.036731
0.448666
6,370
133
119
47.894737
0.702733
0.073312
0
0.17
0
0.01
0.062576
0.028855
0
0
0
0
0
1
0.01
false
0
0.04
0
0.05
0.03
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
0f925a198fe445c814f5d100fc0f17f91ba9ff3b
2,794
py
Python
app/users/views.py
prapeller/phoneauth_api
daab1554ea479676ec5e13a9ef219b27750b7456
[ "MIT" ]
null
null
null
app/users/views.py
prapeller/phoneauth_api
daab1554ea479676ec5e13a9ef219b27750b7456
[ "MIT" ]
null
null
null
app/users/views.py
prapeller/phoneauth_api
daab1554ea479676ec5e13a9ef219b27750b7456
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.core.exceptions import ObjectDoesNotExist from rest_framework import mixins, viewsets, generics from rest_framework import status from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.renderers import JSONRenderer, BrowsableAPIRenderer ...
37.756757
86
0.687545
271
2,794
6.948339
0.361624
0.025491
0.054169
0.046734
0.152947
0.152947
0.133298
0.05948
0
0
0
0.004215
0.235863
2,794
73
87
38.273973
0.877752
0.04617
0
0.203704
0
0
0.003782
0
0
0
0
0
0
1
0.037037
false
0
0.166667
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
0f9338fea5dc5444f2ea7e607d91afbe2ea3a5e3
390
py
Python
scripts/common/css/uri/authority.py
appcelerator-archive/titanium_mobile_tooling
550dbb3615cb3c006fa73975cfc71fff7fb74cc1
[ "Apache-2.0" ]
2
2015-05-30T20:28:13.000Z
2021-01-08T17:02:41.000Z
support/common/css/uri/authority.py
yuni/titanium_mobile
e21d79a58c7c25df8769fd3477ca87587aa67a14
[ "Apache-2.0" ]
6
2015-04-27T22:12:58.000Z
2020-05-23T01:14:06.000Z
support/common/css/uri/authority.py
yuni/titanium_mobile
e21d79a58c7c25df8769fd3477ca87587aa67a14
[ "Apache-2.0" ]
2
2018-06-21T07:28:38.000Z
2020-06-07T11:13:25.000Z
# -*- coding: utf-8 -*- def userinfo( authority, otherwise='' ): """Extracts the user info (user:pass).""" end = authority.find('@') if -1 == end: return otherwise return authority[0:end] def location( authority ): """Extracts the location (host:port).""" end = authority.find('@') ...
21.666667
45
0.576923
45
390
5
0.466667
0.053333
0.142222
0.16
0.248889
0.248889
0.248889
0
0
0
0
0.017065
0.248718
390
17
46
22.941176
0.750853
0.238462
0
0.4
0
0
0.007018
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7e1467fd710f0c7ee978695091d43e0277edd2b4
522
py
Python
minecraft/migrations/0002_category_date.py
Tosmel2/Python_Django
98ea6f454e260af366364c12f0d9ff9189a785f8
[ "MIT" ]
null
null
null
minecraft/migrations/0002_category_date.py
Tosmel2/Python_Django
98ea6f454e260af366364c12f0d9ff9189a785f8
[ "MIT" ]
null
null
null
minecraft/migrations/0002_category_date.py
Tosmel2/Python_Django
98ea6f454e260af366364c12f0d9ff9189a785f8
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-24 18:38 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('minecraft', '0001_initial'), ] operations = [ migrations.AddField( model_n...
23.727273
107
0.624521
60
522
5.383333
0.683333
0.024768
0.037152
0
0
0
0
0
0
0
0
0.098701
0.262452
522
21
108
24.857143
0.74026
0.086207
0
0
1
0
0.069474
0
0
0
0
0
0
1
0
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e16214c55e20795ef184fe92890b72dd483ebab
286
py
Python
main/migrations/0004_delete_bugreport.py
josylad/RoomScout
a3d067dd67dfdd43702ea2e89064213dbd469157
[ "MIT" ]
null
null
null
main/migrations/0004_delete_bugreport.py
josylad/RoomScout
a3d067dd67dfdd43702ea2e89064213dbd469157
[ "MIT" ]
null
null
null
main/migrations/0004_delete_bugreport.py
josylad/RoomScout
a3d067dd67dfdd43702ea2e89064213dbd469157
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2019-12-11 19:23 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main', '0003_bugreport'), ] operations = [ migrations.DeleteModel( name='BugReport', ), ]
16.823529
47
0.590909
30
286
5.6
0.8
0
0
0
0
0
0
0
0
0
0
0.094059
0.293706
286
16
48
17.875
0.737624
0.157343
0
0
1
0
0.112971
0
0
0
0
0
0
1
0
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e16aaa9aef5bbe1519d74d864fdbbdbf41ed995
4,445
py
Python
src/mobot_client/tests/factories/__init__.py
mobilecoinofficial/mobot
4872e4308beb5305d88dcace94394aaa251f65e1
[ "MIT" ]
6
2021-07-28T13:49:16.000Z
2022-02-16T22:08:03.000Z
src/mobot_client/tests/factories/__init__.py
mobilecoinofficial/mobot
4872e4308beb5305d88dcace94394aaa251f65e1
[ "MIT" ]
10
2021-08-18T15:18:34.000Z
2021-09-27T21:40:24.000Z
src/mobot_client/tests/factories/__init__.py
mobilecoinofficial/mobot
4872e4308beb5305d88dcace94394aaa251f65e1
[ "MIT" ]
3
2021-07-28T01:17:06.000Z
2021-09-20T21:19:50.000Z
# Copyright (c) 2021 MobileCoin. All rights reserved. from decimal import Decimal import factory import pytz from django.utils import timezone from datetime import timedelta from faker.factory import Factory from faker.providers import date_time, internet, phone_number, lorem Faker = Factory.create fake = Faker() fa...
27.955975
104
0.711586
536
4,445
5.748134
0.29291
0.037975
0.090555
0.093476
0.428432
0.367413
0.101915
0.101915
0.101915
0.070107
0
0.01776
0.176603
4,445
158
105
28.132911
0.824044
0.011474
0
0.19469
0
0
0.066955
0.011159
0
0
0
0
0
1
0.044248
false
0.00885
0.070796
0.026549
0.654867
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
7e16ef3c325fb5a0e5d09744a103e71fc4646fae
322
py
Python
speedex/adminzone/refgen.py
97-63/Django-project
048ae4c9bbe50983ee8f7bc154e0e28f3786ac37
[ "bzip2-1.0.6" ]
null
null
null
speedex/adminzone/refgen.py
97-63/Django-project
048ae4c9bbe50983ee8f7bc154e0e28f3786ac37
[ "bzip2-1.0.6" ]
null
null
null
speedex/adminzone/refgen.py
97-63/Django-project
048ae4c9bbe50983ee8f7bc154e0e28f3786ac37
[ "bzip2-1.0.6" ]
null
null
null
import random#modeule generating random nos def getref(): refno='sp' for i in range(1,3):#here range(1,3) means for(i>=1;i<=3;i++) n=random.randrange(1,5) refno+=str(n) n=random.randrange(0,7) refno +=str(n) n = random.randrange(3,9) refno +=str(n) return ref...
26.833333
65
0.568323
53
322
3.45283
0.471698
0.114754
0.262295
0.10929
0.273224
0.273224
0
0
0
0
0
0.051064
0.270186
322
12
66
26.833333
0.72766
0.214286
0
0.272727
0
0
0.007937
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
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
7e1fca90362dbdbd864dacf83cc01a604e368041
3,254
py
Python
rdftools/tools/rdf2rdf.py
cosminbasca/rdftools
5a9516e1a3bb52cbfc61ec546795a3b73fd82f48
[ "Apache-2.0" ]
4
2015-11-18T18:44:59.000Z
2021-05-04T18:35:11.000Z
rdftools/tools/rdf2rdf.py
cosminbasca/rdftools
5a9516e1a3bb52cbfc61ec546795a3b73fd82f48
[ "Apache-2.0" ]
1
2015-09-17T11:52:45.000Z
2015-09-17T11:52:45.000Z
rdftools/tools/rdf2rdf.py
cosminbasca/rdftools
5a9516e1a3bb52cbfc61ec546795a3b73fd82f48
[ "Apache-2.0" ]
2
2015-07-13T15:44:26.000Z
2015-11-16T21:23:04.000Z
# # author: Cosmin Basca # # Copyright 2010 University of Zurich # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
32.54
104
0.660111
439
3,254
4.738041
0.339408
0.081731
0.017308
0.021635
0.203846
0.188462
0.142308
0.100962
0.100962
0.100962
0
0.008925
0.242471
3,254
99
105
32.868687
0.834888
0.178549
0
0.08
0
0
0.039467
0
0
0
0
0
0
0
null
null
0
0.12
null
null
0.02
0
0
0
null
0
0
0
0
0
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
7e29591817c4ad18f004d21edbe0986384efbda5
281
py
Python
AtC_Gra_Con_001-010/AGC001/B.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
AtC_Gra_Con_001-010/AGC001/B.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
AtC_Gra_Con_001-010/AGC001/B.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
n, x = map(int, input().split()) if (x > n // 2 and n % 2 == 0) or (x > (n + 1) // 2 and n % 2 == 1): x = n - x A = n - x B = x k = 0 m = -1 ans = n while m != 0: k = A // B m = A % B ans += B * k * 2 if m == 0: ans -= B A = B B = m print(ans)
14.789474
68
0.341637
61
281
1.57377
0.311475
0.0625
0.104167
0.125
0
0
0
0
0
0
0
0.076923
0.44484
281
19
69
14.789474
0.538462
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.058824
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e344583908902aa39e24bbb5d2c9400854941b5
21,635
py
Python
roomfinder_router/roomfinder_router/router.py
GuillaumeMorini/roomfinder
d756bba6e50a7361ecf9cf529af4a1775a0e836b
[ "Apache-2.0" ]
14
2017-01-23T02:58:53.000Z
2020-12-21T14:05:07.000Z
roomfinder_router/roomfinder_router/router.py
GuillaumeMorini/roomfinder
d756bba6e50a7361ecf9cf529af4a1775a0e836b
[ "Apache-2.0" ]
2
2017-01-23T09:46:54.000Z
2017-09-11T10:15:07.000Z
roomfinder_router/roomfinder_router/router.py
GuillaumeMorini/roomfinder
d756bba6e50a7361ecf9cf529af4a1775a0e836b
[ "Apache-2.0" ]
9
2017-01-23T02:55:27.000Z
2020-05-20T18:38:18.000Z
#!/usr/bin/env python2.7 import pika, os, sys, json, requests, datetime import base64, urllib, unicodedata, re import os, json, requests, sys, re, base64 try: from BeautifulSoup import BeautifulSoup from HTMLParser import HTMLParser except ImportError: from bs4 import BeautifulSoup from html.parser ...
47.445175
227
0.568985
2,552
21,635
4.749216
0.164969
0.041584
0.064686
0.013861
0.387459
0.331766
0.284901
0.242079
0.220957
0.207426
0
0.015941
0.27511
21,635
455
228
47.549451
0.756871
0.058609
0
0.241645
0
0.028278
0.307681
0.04524
0
0
0
0
0
0
null
null
0.028278
0.025707
null
null
0.010283
0
0
0
null
0
0
0
0
0
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
7e364ce6b10307495d6432fae4cbf3a842f579b2
1,568
py
Python
xpxchain/models/mosaic/mosaic_id.py
Sharmelen/python-xpx-chain-sdk
a1bfb1b7da20d50dd5049a950794955d1c492a71
[ "Apache-2.0" ]
1
2021-02-02T12:46:51.000Z
2021-02-02T12:46:51.000Z
xpxchain/models/mosaic/mosaic_id.py
Sharmelen/python-xpx-chain-sdk
a1bfb1b7da20d50dd5049a950794955d1c492a71
[ "Apache-2.0" ]
4
2021-02-06T06:14:27.000Z
2021-07-20T11:41:44.000Z
xpxchain/models/mosaic/mosaic_id.py
Sharmelen/python-xpx-chain-sdk
a1bfb1b7da20d50dd5049a950794955d1c492a71
[ "Apache-2.0" ]
1
2021-08-09T15:45:21.000Z
2021-08-09T15:45:21.000Z
""" mosaic_id ========= Identifier for an asset. License ------- Copyright 2019 NEM Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache....
24.123077
76
0.660714
204
1,568
4.965686
0.514706
0.05923
0.025666
0.031589
0
0
0
0
0
0
0
0.008503
0.25
1,568
64
77
24.5
0.852891
0.492347
0
0
0
0
0.016418
0
0
0
0
0
0
1
0.142857
false
0
0.190476
0.095238
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7e3a9024a8b305ddd02b457e5637b4526d75087a
774
py
Python
beers/migrations/0022_auto_20171117_1915.py
nvembar/onehundredbeers
96af46ad946e63736f9924cb3b966b0d597254f5
[ "CC0-1.0" ]
1
2017-07-23T22:44:29.000Z
2017-07-23T22:44:29.000Z
beers/migrations/0022_auto_20171117_1915.py
nvembar/onehundredbeers
96af46ad946e63736f9924cb3b966b0d597254f5
[ "CC0-1.0" ]
25
2017-07-23T21:04:17.000Z
2021-06-10T18:06:50.000Z
beers/migrations/0022_auto_20171117_1915.py
nvembar/onehundredbeers
96af46ad946e63736f9924cb3b966b0d597254f5
[ "CC0-1.0" ]
1
2019-02-24T01:16:08.000Z
2019-02-24T01:16:08.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-11-18 00:15 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('beers', '0021_auto_20171117_1846'), ] operations = [ migrations.AddField( ...
29.769231
182
0.594315
86
774
5.162791
0.674419
0.081081
0.103604
0.121622
0.202703
0.202703
0.202703
0
0
0
0
0.060241
0.249354
774
25
183
30.96
0.703959
0.085271
0
0.333333
1
0
0.192908
0.032624
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1