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
464bf6d618e348864ae989e0c75d47891f5c898e
3,535
py
Python
deployment_helper/tests/distribute_hosts.py
dctrwatson/vitess-tools
10bb90c30d5d58e6492b4d44ecfbf831e80a10ab
[ "Apache-2.0" ]
8
2017-08-16T17:20:47.000Z
2020-08-10T05:51:57.000Z
deployment_helper/tests/distribute_hosts.py
dctrwatson/vitess-tools
10bb90c30d5d58e6492b4d44ecfbf831e80a10ab
[ "Apache-2.0" ]
4
2017-08-31T20:32:45.000Z
2019-09-16T06:51:15.000Z
deployment_helper/tests/distribute_hosts.py
dctrwatson/vitess-tools
10bb90c30d5d58e6492b4d44ecfbf831e80a10ab
[ "Apache-2.0" ]
10
2017-08-30T19:37:49.000Z
2020-11-25T13:02:43.000Z
import random import pprint pp = pprint.PrettyPrinter(indent=4) def evaluate_host(shard, jobs): count = len(jobs) shard_count = 0 for j in jobs: if j.startswith(shard): shard_count += 1 if j.startswith('%s_master' % shard): shard_count += 1 return count ...
35
109
0.61471
521
3,535
3.93666
0.170825
0.047782
0.075085
0.017065
0.403706
0.329108
0.248172
0.177474
0.145295
0.120917
0
0.017604
0.26082
3,535
100
110
35.35
0.767317
0.016124
0
0.238636
0
0
0.087169
0
0
0
0
0
0.011364
0
null
null
0
0.022727
null
null
0.147727
0
0
0
null
0
0
0
0
0
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
464e3ad425facede21de5e23119856bc3a5e7dd2
370
py
Python
setup.py
kalyons11/pipeline
4dcaa35691282a7a57e6e15346fa69f43c4b73b1
[ "MIT" ]
null
null
null
setup.py
kalyons11/pipeline
4dcaa35691282a7a57e6e15346fa69f43c4b73b1
[ "MIT" ]
null
null
null
setup.py
kalyons11/pipeline
4dcaa35691282a7a57e6e15346fa69f43c4b73b1
[ "MIT" ]
null
null
null
""" Package setup file. """ from setuptools import setup, find_packages setup(name='buzz', version='1.0.0', author='Kevin Lyons', description='Full stack pipeline with Travis and Docker.', url='hhttps://github.com/kalyons11/pipeline', author_email='kevinandrewlyons@gmail.com', lice...
23.125
64
0.654054
43
370
5.55814
0.790698
0.100418
0
0
0
0
0
0
0
0
0
0.017007
0.205405
370
15
65
24.666667
0.795918
0.051351
0
0
0
0
0.379009
0.075802
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
46512794ee386e81b7a62db4b4be63601dd52811
556
py
Python
mysite/article/search_view.py
wuhaoqiu/engr597-stable
284ab9efae8361c139d330313abb831bfea9e5b9
[ "MIT" ]
null
null
null
mysite/article/search_view.py
wuhaoqiu/engr597-stable
284ab9efae8361c139d330313abb831bfea9e5b9
[ "MIT" ]
6
2020-06-05T20:18:51.000Z
2022-03-11T23:42:53.000Z
mysite/article/search_view.py
wuhaoqiu/engr597-stable
284ab9efae8361c139d330313abb831bfea9e5b9
[ "MIT" ]
1
2020-06-24T01:39:15.000Z
2020-06-24T01:39:15.000Z
#author:Haoqiu Wu Time 19.2.27 from .forms import SearchForm from haystack.views import SearchView # see how to do chinese search engine, https://www.cnblogs.com/xuaijun/p/8027606.html # intro to classed based view,https://docs.djangoproject.com/en/2.0/topics/class-based-views/intro/ class ArticleSearchView(SearchView...
39.714286
99
0.757194
75
556
5.52
0.666667
0.144928
0
0
0
0
0
0
0
0
0
0.029106
0.134892
556
13
100
42.769231
0.831601
0.379496
0
0
0
0
0.076246
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4654438c321d5cb9ac256c37d5e5d0a16dc1d591
1,441
py
Python
events/migrations/0004_auto_20180420_2159.py
Sylvestre67/wagtail_alsace
838c2f3d1870eb9aebf383e4e31c4dfb11de90e4
[ "MIT" ]
null
null
null
events/migrations/0004_auto_20180420_2159.py
Sylvestre67/wagtail_alsace
838c2f3d1870eb9aebf383e4e31c4dfb11de90e4
[ "MIT" ]
1
2021-05-09T16:26:58.000Z
2021-05-09T16:26:58.000Z
events/migrations/0004_auto_20180420_2159.py
uany/wagtail_alsace
838c2f3d1870eb9aebf383e4e31c4dfb11de90e4
[ "MIT" ]
null
null
null
# Generated by Django 2.0.4 on 2018-04-20 21:59 from django.db import migrations, models import django.db.models.deletion import modelcluster.fields import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('events', '0003_auto_20180420_2126'), ] operations = [ ...
33.511628
149
0.600278
142
1,441
5.957746
0.471831
0.037825
0.049645
0.078014
0.219858
0.219858
0.113475
0.113475
0.113475
0
0
0.029665
0.274809
1,441
42
150
34.309524
0.779904
0.031228
0
0.222222
1
0
0.142755
0.016499
0
0
0
0
0
1
0
false
0
0.111111
0
0.194444
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
46649f8cc760960e58e3957a3eb97bdbf45d53f4
2,259
py
Python
checkobis.py
HarrySng/obis-compliance
75c00ddd099e63e47898f80065d1c01dd3a1a7af
[ "MIT" ]
null
null
null
checkobis.py
HarrySng/obis-compliance
75c00ddd099e63e47898f80065d1c01dd3a1a7af
[ "MIT" ]
null
null
null
checkobis.py
HarrySng/obis-compliance
75c00ddd099e63e47898f80065d1c01dd3a1a7af
[ "MIT" ]
null
null
null
from obiscct.setup import * from obiscct.helpers import * from obiscct.generate_report import * from obiscct import file_checks from obiscct import field_checks from obiscct import hierarchy_checks from obiscct import date_checks from obiscct import numerical_checks from obiscct import vocab_checks from obiscct import ...
32.73913
101
0.705622
289
2,259
5.269896
0.346021
0.102429
0.078135
0.090611
0.13132
0.13132
0.105056
0
0
0
0
0.001099
0.194334
2,259
69
102
32.73913
0.835714
0.215139
0
0.155556
1
0
0.155644
0
0
0
0
0
0
1
0.022222
false
0
0.222222
0
0.266667
0.022222
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
466a744da029314ed3238f88a8890b9f2d2e851e
352
py
Python
server/plugins/sensors/lib/temp_dht11.py
clement-dev/Automation
debd3a1183c5247d87fc57c451e73cc2ce1b4496
[ "MIT" ]
null
null
null
server/plugins/sensors/lib/temp_dht11.py
clement-dev/Automation
debd3a1183c5247d87fc57c451e73cc2ce1b4496
[ "MIT" ]
null
null
null
server/plugins/sensors/lib/temp_dht11.py
clement-dev/Automation
debd3a1183c5247d87fc57c451e73cc2ce1b4496
[ "MIT" ]
null
null
null
import Adafruit_DHT import json sensor = Adafruit_DHT.DHT11 pin = 4 # connected to GPIO4. humidity, temperature = Adafruit_DHT.read_retry(sensor, pin) if humidity is not None and temperature is not None: print json.dumps({'temperature':temperature, 'humidity':humidity}) else: print json.dumps({'error':'Faile...
32
70
0.75
50
352
5.2
0.58
0.126923
0.069231
0
0
0
0
0
0
0
0
0.013289
0.144886
352
10
71
35.2
0.850498
0.053977
0
0
0
0
0.172205
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.222222
0
0
0
null
0
0
0
0
0
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
466cb59a85f11394d02ce992b7bb2c2696e20591
650
py
Python
E/101.py
jnoddell/LC
be17ab80e745169a6617788ba82ad2c5b250c0d5
[ "Apache-2.0" ]
2
2021-01-20T14:31:36.000Z
2021-01-20T14:32:31.000Z
E/101.py
jnoddell/LC
be17ab80e745169a6617788ba82ad2c5b250c0d5
[ "Apache-2.0" ]
null
null
null
E/101.py
jnoddell/LC
be17ab80e745169a6617788ba82ad2c5b250c0d5
[ "Apache-2.0" ]
null
null
null
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution(object): def isSymmetric(self, root): """ :type root: TreeNode :rtype: bool ...
28.26087
64
0.496923
84
650
3.797619
0.380952
0.037618
0.037618
0
0
0
0
0
0
0
0
0.002558
0.398462
650
22
65
29.545455
0.813299
0.341538
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
466e709d2450649ab2455ed1b31f2335067ad6d0
552
py
Python
lab5/q1/l5q1a.py
nandiniproothi/itt-lab
fb0381c00abc94fb0653e8e723ca6c3f60c0f7b3
[ "MIT" ]
11
2021-02-21T14:44:28.000Z
2021-05-30T10:11:18.000Z
lab5/q1/l5q1a.py
nandiniproothi/itt-lab
fb0381c00abc94fb0653e8e723ca6c3f60c0f7b3
[ "MIT" ]
null
null
null
lab5/q1/l5q1a.py
nandiniproothi/itt-lab
fb0381c00abc94fb0653e8e723ca6c3f60c0f7b3
[ "MIT" ]
1
2021-05-05T05:39:56.000Z
2021-05-05T05:39:56.000Z
#define functions for all mathemical operations def sum(a, b): return a+b def sub(a, b): return a-b def mult(a, b): return a*b def div(a, b): return a/b #convert input to integer from string a = int(input("Enter number1: ")) b = int(input("Enter number2: ")) print("1. Addition 2. Subtract 3. Mul...
17.806452
62
0.599638
95
552
3.484211
0.421053
0.072508
0.096677
0.108761
0.148036
0.117825
0
0
0
0
0
0.022883
0.208333
552
31
63
17.806452
0.734554
0.148551
0
0
0
0
0.253731
0
0
0
0
0
0
1
0.181818
false
0
0
0.181818
0.363636
0.272727
0
0
0
null
0
0
0
0
0
0
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
466efcee9a83396a275268f318e229a180a3f9ef
394
py
Python
django/contrib/gis/models.py
fizista/django
16f3a6a4c7bab11644d11c2be029374e5095cb56
[ "BSD-3-Clause" ]
2
2016-09-27T09:30:19.000Z
2016-10-17T01:47:43.000Z
env/lib/python2.7/site-packages/django/contrib/gis/models.py
luiscarlosgph/nas
e5acee61e8bbf12c34785fe971ce7df8dee775d4
[ "MIT" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
env/lib/python2.7/site-packages/django/contrib/gis/models.py
luiscarlosgph/nas
e5acee61e8bbf12c34785fe971ce7df8dee775d4
[ "MIT" ]
1
2020-05-03T20:42:29.000Z
2020-05-03T20:42:29.000Z
from django.db import connection if (hasattr(connection.ops, 'spatial_version') and not connection.ops.mysql): # Getting the `SpatialRefSys` and `GeometryColumns` # models for the default spatial backend. These # aliases are provided for backwards-compatibility. SpatialRefSys = connection.ops....
39.4
55
0.751269
45
394
6.488889
0.688889
0.178082
0.136986
0
0
0
0
0
0
0
0
0
0.167513
394
9
56
43.777778
0.890244
0.370558
0
0
0
0
0.061475
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
4671743262d12fc1dcb8deb1ebca16dc3c5e28c9
4,330
py
Python
curedis/client.py
allenling/cureds
0095d28fe77c4422e09ad1865c5a5156aa905a8c
[ "MIT" ]
null
null
null
curedis/client.py
allenling/cureds
0095d28fe77c4422e09ad1865c5a5156aa905a8c
[ "MIT" ]
null
null
null
curedis/client.py
allenling/cureds
0095d28fe77c4422e09ad1865c5a5156aa905a8c
[ "MIT" ]
null
null
null
import curio from curedis.connection import AsyncConnection class RedisAuthError(Exception): pass class SelectDBError(Exception): pass class NotSupportOperation(Exception): pass class CuredisClient: def __init__(self, host='127.0.0.1', port=6379, db=0, password=None, read_size=1024): s...
24.463277
89
0.596767
531
4,330
4.753296
0.20904
0.083201
0.09271
0.049921
0.38233
0.312599
0.27813
0.154517
0.035658
0
0
0.007497
0.291455
4,330
176
90
24.602273
0.815189
0.030716
0
0.279661
0
0
0.047301
0
0
0
0
0
0
1
0.118644
false
0.076271
0.016949
0.016949
0.381356
0.059322
0
0
0
null
0
0
0
0
0
0
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
4679342187f4be1f91f1b7cf6d779f8ffce34bfe
944
py
Python
aplicaciones/blog/admin.py
gabrielpenaranda/blog
0029d0bc063210ded2362f2c7a99ea9ba3492059
[ "MIT" ]
null
null
null
aplicaciones/blog/admin.py
gabrielpenaranda/blog
0029d0bc063210ded2362f2c7a99ea9ba3492059
[ "MIT" ]
null
null
null
aplicaciones/blog/admin.py
gabrielpenaranda/blog
0029d0bc063210ded2362f2c7a99ea9ba3492059
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Categoria, Autor, Post from import_export import resources from import_export.admin import ImportExportModelAdmin # Register your models here. class CategoriaResource(resources.ModelResource): class Meta: model = Categoria class CategoriaAdmin(ImportE...
26.971429
63
0.736229
94
944
7.287234
0.393617
0.039416
0.074453
0.090511
0.341606
0
0
0
0
0
0
0
0.169492
944
34
64
27.764706
0.873724
0.027542
0
0.090909
0
0
0.102732
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.818182
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
467a886855b0f84f5f2cfc27d534f46ea8fda144
10,907
py
Python
scripts/chroot_env/python_port/flip.py
sigttou/db_master_thesis
aa39d62cb68f8721412977f03f3a0fc0ebe8644f
[ "MIT" ]
1
2019-09-07T09:04:22.000Z
2019-09-07T09:04:22.000Z
scripts/chroot_env/python_port/flip.py
sigttou/db_master_thesis
aa39d62cb68f8721412977f03f3a0fc0ebe8644f
[ "MIT" ]
null
null
null
scripts/chroot_env/python_port/flip.py
sigttou/db_master_thesis
aa39d62cb68f8721412977f03f3a0fc0ebe8644f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import json import os import time import shutil from executor import execute, chroot import executor import parse CONFIG_KEYS = [ "instrumenter_call", "instrumenter_outfile", "chroot_template", "tmp_chroot_folder", "folder_with_flips", ...
33.66358
112
0.594206
1,394
10,907
4.441894
0.198709
0.028101
0.033915
0.044089
0.307817
0.231589
0.196059
0.180394
0.140827
0.140827
0
0.005359
0.281471
10,907
323
113
33.767802
0.784739
0.008435
0
0.253219
0
0
0.192128
0.01968
0
0
0
0
0
0
null
null
0
0.034335
null
null
0.103004
0
0
0
null
0
0
0
0
0
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
467e81e5c98c29462261e8797159ccca81ef40ad
692
py
Python
ex0036.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
ex0036.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
ex0036.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
valorcasa = float(input("Qual o valor da casa? ")) valorsalario = float(input("qual o seu salario? ")) anos = float(input("Em quantos anos você planeja pagar o emprestimo")) meses = anos*12 mensalidade = valorcasa/meses if mensalidade > (valorsalario * 0.3): print("-"*20) print("\033[31m Infelizmente o empresti...
49.428571
103
0.705202
105
692
4.647619
0.485714
0.112705
0.057377
0.061475
0.278689
0.278689
0.278689
0.163934
0
0
0
0.065068
0.156069
692
13
104
53.230769
0.770548
0
0
0.153846
0
0
0.511561
0
0
0
0
0
0
1
0
false
0
0
0
0
0.461538
0
0
0
null
0
0
0
0
0
0
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
467e9f8430dd4bd848af734039d15ee960a87532
4,732
py
Python
enterprise_api.py
panamantis/gretnet_api
7b30e3ca07992c52478de90cca94e18c1a1fa9f3
[ "MIT" ]
null
null
null
enterprise_api.py
panamantis/gretnet_api
7b30e3ca07992c52478de90cca94e18c1a1fa9f3
[ "MIT" ]
null
null
null
enterprise_api.py
panamantis/gretnet_api
7b30e3ca07992c52478de90cca94e18c1a1fa9f3
[ "MIT" ]
null
null
null
import sys,os import time import datetime import random import re import json import requests from flask import Flask, jsonify from flasgger import Swagger # pip install flasgger from flasgger import swag_from LOCAL_PATH = os.path.abspath(os.path.dirname(__file__))+"/" sys.path.insert(0,LOCAL_PATH) sys.path.i...
17.856604
140
0.580727
528
4,732
4.971591
0.357955
0.027429
0.041143
0.059429
0.261333
0.240762
0.13181
0
0
0
0
0.007954
0.309172
4,732
264
141
17.924242
0.795044
0.105664
0
0
0
0
0.182371
0
0
0
0
0
0
1
0.017544
false
0
0.315789
0
0.350877
0.245614
0
0
0
null
0
0
0
0
0
0
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
467ec43eaa8eb510edb1b74d46da425dde6f0bae
1,857
py
Python
src/gluonts/model/rotbaum/_estimator.py
kaijennissen/gluon-ts
754fdd4184e2c19b8d667eb97d5ae20d486e3cd3
[ "Apache-2.0" ]
1
2020-11-30T18:05:24.000Z
2020-11-30T18:05:24.000Z
src/gluonts/model/rotbaum/_estimator.py
kaijennissen/gluon-ts
754fdd4184e2c19b8d667eb97d5ae20d486e3cd3
[ "Apache-2.0" ]
null
null
null
src/gluonts/model/rotbaum/_estimator.py
kaijennissen/gluon-ts
754fdd4184e2c19b8d667eb97d5ae20d486e3cd3
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
34.388889
78
0.731287
231
1,857
5.774892
0.528139
0.044978
0.016492
0
0
0
0
0
0
0
0
0.005309
0.188476
1,857
53
79
35.037736
0.879894
0.52881
0
0
0
0
0.00615
0
0
0
0
0
0
1
0.157895
false
0
0.263158
0.052632
0.578947
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
46843b7386468805a4439a29ca5350c95155559b
765
py
Python
webserver/c4Lookup/c4Lookup/getCommitInformation.py
dgaiero/c4-website
43edd8d77c15b73b85b69b8b62a93c3633db0de1
[ "Apache-2.0" ]
1
2020-10-11T05:17:01.000Z
2020-10-11T05:17:01.000Z
webserver/c4Lookup/c4Lookup/getCommitInformation.py
dgaiero/c4-website
43edd8d77c15b73b85b69b8b62a93c3633db0de1
[ "Apache-2.0" ]
35
2019-07-09T02:49:57.000Z
2021-09-06T07:46:11.000Z
webserver/c4Lookup/c4Lookup/getCommitInformation.py
dgaiero/c4-website
43edd8d77c15b73b85b69b8b62a93c3633db0de1
[ "Apache-2.0" ]
1
2020-10-17T19:36:25.000Z
2020-10-17T19:36:25.000Z
import subprocess def getBranchLabel(): branchLabel = subprocess.check_output( ["git", "branch"]).decode("utf8").strip() branchLabel = next(line for line in branchLabel.split( "\n") if line.startswith("*")) branchLabel = branchLabel.strip("*").strip() return branchLabel def getCommitHash()...
28.333333
87
0.644444
74
765
6.621622
0.432432
0.091837
0.128571
0.146939
0.273469
0.273469
0.159184
0
0
0
0
0.007704
0.151634
765
26
88
29.423077
0.747304
0
0
0
0
0
0.124183
0
0
0
0
0
0
1
0.222222
false
0
0.055556
0.055556
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
468692e080047db60c90cdba968c79bb7d2e367f
1,716
py
Python
Client/Event_Base.py
jackshotgamer/ConnectX
20378286524c93967c902940f0cfee3f417c1084
[ "MIT" ]
null
null
null
Client/Event_Base.py
jackshotgamer/ConnectX
20378286524c93967c902940f0cfee3f417c1084
[ "MIT" ]
null
null
null
Client/Event_Base.py
jackshotgamer/ConnectX
20378286524c93967c902940f0cfee3f417c1084
[ "MIT" ]
null
null
null
import arcade import arcade.gui from Client import Buttons symbols = [] held_modifiers = 0 class EventBase(arcade.View): def __init__(self): super().__init__() self.button_manager = Buttons.ButtonManager() def on_mouse_motion(self, x: float, y: float, dx: float, dy: float): self.but...
27.677419
196
0.646853
220
1,716
4.809091
0.386364
0.066163
0.112476
0.031191
0.26087
0.223062
0.223062
0.223062
0.223062
0.223062
0
0.016936
0.243007
1,716
61
197
28.131148
0.797537
0.189977
0
0.121212
0
0
0
0
0
0
0
0
0
1
0.242424
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
468bb5a8a29d8ed13c89ffc5a94535bac0ea82bd
720
py
Python
Loops.py
Abdulhalik/T3-Python-Egitimi
53de6b1bf248caa4f5ac790d1a909c6825a337c0
[ "MIT" ]
null
null
null
Loops.py
Abdulhalik/T3-Python-Egitimi
53de6b1bf248caa4f5ac790d1a909c6825a337c0
[ "MIT" ]
null
null
null
Loops.py
Abdulhalik/T3-Python-Egitimi
53de6b1bf248caa4f5ac790d1a909c6825a337c0
[ "MIT" ]
null
null
null
""" A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string). """ fruits = ["apple", "banana", "cherry"] #Print each fruit in a fruit list: for x in fruits: print(x) for x in "banana": print(x) fruits = ["apple", "banana", "cherry"] for x in fruits: p...
17.560976
73
0.613889
123
720
3.593496
0.365854
0.063348
0.095023
0.208145
0.332579
0.291855
0.251131
0.18552
0.18552
0.18552
0
0.016071
0.222222
720
41
74
17.560976
0.773214
0.270833
0
0.526316
0
0
0.187342
0
0
0
0
0
0
1
0
false
0
0
0
0
0.315789
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
468d19456c95300adae0e81daef3e4a9c6e70770
1,416
py
Python
phaseone/migrations/0002_auto_20200429_2143.py
tobyspark/orbit_data
7648b58a6f845554322d0b46ea34ac6674435c42
[ "MIT" ]
null
null
null
phaseone/migrations/0002_auto_20200429_2143.py
tobyspark/orbit_data
7648b58a6f845554322d0b46ea34ac6674435c42
[ "MIT" ]
null
null
null
phaseone/migrations/0002_auto_20200429_2143.py
tobyspark/orbit_data
7648b58a6f845554322d0b46ea34ac6674435c42
[ "MIT" ]
1
2021-03-31T11:51:15.000Z
2021-03-31T11:51:15.000Z
# Generated by Django 2.2.6 on 2020-04-29 21:43 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import phaseone.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('p...
30.782609
129
0.597458
138
1,416
5.985507
0.492754
0.065375
0.096852
0.116223
0.291768
0.291768
0.199758
0
0
0
0
0.020629
0.281073
1,416
45
130
31.466667
0.790766
0.03178
0
0.435897
1
0
0.1271
0.01534
0
0
0
0
0
1
0
false
0
0.102564
0
0.179487
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
468ed4c12b1942e08b58b28064b35f32d6d0efe2
230
py
Python
53-maximum-subarray/53-maximum-subarray.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
1
2021-10-10T20:21:18.000Z
2021-10-10T20:21:18.000Z
53-maximum-subarray/53-maximum-subarray.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
null
null
null
53-maximum-subarray/53-maximum-subarray.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
null
null
null
class Solution: def maxSubArray(self, nums: List[int]) -> int: ans = nums[0] cur = 0 for i in nums: if cur < 0 :cur = 0 cur += i ans = max(ans,cur) return ans
25.555556
50
0.443478
31
230
3.290323
0.548387
0.117647
0.098039
0
0
0
0
0
0
0
0
0.031746
0.452174
230
9
51
25.555556
0.777778
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
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
469177f6bffcb0ba60c05ac272a2f836c1c77a2f
4,762
py
Python
app/routes.py
yuanqili/ModernFlask
bf75ce9b6bafa9f1c1e942ab34ceb01a80e1c16d
[ "BSD-4-Clause-UC" ]
null
null
null
app/routes.py
yuanqili/ModernFlask
bf75ce9b6bafa9f1c1e942ab34ceb01a80e1c16d
[ "BSD-4-Clause-UC" ]
null
null
null
app/routes.py
yuanqili/ModernFlask
bf75ce9b6bafa9f1c1e942ab34ceb01a80e1c16d
[ "BSD-4-Clause-UC" ]
null
null
null
from datetime import datetime from flask import render_template, flash, redirect, url_for, request from flask_login import current_user, login_user, logout_user, login_required from werkzeug.urls import url_parse from app import app, db from app.forms import LoginForm, RegistrationForm, EditProfileForm, ResetPasswordR...
37.496063
102
0.693616
628
4,762
5.097134
0.200637
0.026242
0.056857
0.074977
0.313964
0.242112
0.170884
0.15214
0.138082
0.106217
0
0.000776
0.187736
4,762
126
103
37.793651
0.826784
0.112978
0
0.302083
0
0
0.132479
0.022317
0
0
0
0
0
1
0.09375
false
0.1875
0.083333
0.010417
0.385417
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
469bb86dd2dd90e26e02524c77bb51de1e0e1cc4
6,921
py
Python
tests/commands/test_bitmap.py
alisaifee/coredis
e72f5d7c665b53e6a1d41e1a7fb9e400858a8b19
[ "MIT" ]
9
2022-01-07T07:42:08.000Z
2022-03-21T15:54:09.000Z
tests/commands/test_bitmap.py
alisaifee/coredis
e72f5d7c665b53e6a1d41e1a7fb9e400858a8b19
[ "MIT" ]
30
2022-01-15T23:33:36.000Z
2022-03-30T22:39:53.000Z
tests/commands/test_bitmap.py
alisaifee/coredis
e72f5d7c665b53e6a1d41e1a7fb9e400858a8b19
[ "MIT" ]
3
2022-01-13T06:11:13.000Z
2022-02-21T11:19:33.000Z
from __future__ import annotations import pytest from coredis import CommandSyntaxError, ReadOnlyError, RedisError from tests.conftest import targets @targets( "redis_basic", "redis_basic_raw", "redis_basic_resp3", "redis_basic_raw_resp3", "redis_cluster", "redis_cluster_raw", "keydb", )...
40.711765
82
0.598035
946
6,921
4.272727
0.135307
0.217714
0.121969
0.048986
0.757546
0.671945
0.543543
0.417615
0.313211
0.291687
0
0.047139
0.23985
6,921
169
83
40.952663
0.721156
0.012137
0
0.258741
0
0
0.089618
0.009225
0
0
0.01025
0
0.300699
1
0
false
0
0.027972
0
0.034965
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
469ced34d0d51c000bba3d957b215f8c8a3b3e01
9,044
py
Python
tests/test_validators.py
crazyvn/crazy
1f85935965e188c529ca3d4fb379fbe67a775b15
[ "MIT" ]
null
null
null
tests/test_validators.py
crazyvn/crazy
1f85935965e188c529ca3d4fb379fbe67a775b15
[ "MIT" ]
10
2019-10-12T05:55:59.000Z
2019-10-25T02:57:21.000Z
tests/test_validators.py
nkthanh98/crazy
1f85935965e188c529ca3d4fb379fbe67a775b15
[ "MIT" ]
2
2019-10-11T04:16:19.000Z
2019-10-11T06:54:50.000Z
import random import base64 import hashlib import uuid import pytest import jwt from crazy import validators from tests import fake def test_integer_with_number_validator(): value = str(fake.random_int(0, 1e6)) ret = validators.number(value) assert ret def test_negative_with_number_validator(): val...
23.613577
115
0.723352
1,240
9,044
4.946774
0.100806
0.060483
0.06521
0.078252
0.739485
0.659439
0.529019
0.437887
0.330127
0.232149
0
0.020473
0.168288
9,044
382
116
23.675393
0.795001
0
0
0.467249
0
0
0.028638
0.002433
0.004367
0
0
0
0.240175
1
0.231441
false
0
0.034935
0
0.266376
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
469d3bfa46e4b07c1c3beccd308e20f6a709a2ef
848
py
Python
apps/jobs/migrations/0005_added_new_fields_to_submission_model.py
ChrsMark/EvalAI
d70163a2465a5d69e818a342ae75f6b0a8eb4cea
[ "BSD-3-Clause" ]
3
2019-02-24T10:57:09.000Z
2019-02-24T16:49:32.000Z
apps/jobs/migrations/0005_added_new_fields_to_submission_model.py
ChrsMark/EvalAI
d70163a2465a5d69e818a342ae75f6b0a8eb4cea
[ "BSD-3-Clause" ]
4
2021-06-08T23:45:35.000Z
2022-01-13T03:32:04.000Z
apps/jobs/migrations/0005_added_new_fields_to_submission_model.py
ChrsMark/EvalAI
d70163a2465a5d69e818a342ae75f6b0a8eb4cea
[ "BSD-3-Clause" ]
1
2018-10-28T15:18:15.000Z
2018-10-28T15:18:15.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2017-04-04 03:24 from __future__ import unicode_literals import base.utils from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('jobs', '0004_added_method_desc_aand_urls_to_submission_model'), ] ...
31.407407
131
0.668632
95
848
5.705263
0.547368
0.103321
0.084871
0.099631
0.553506
0.553506
0.553506
0.365314
0.365314
0.365314
0
0.031579
0.215802
848
26
132
32.615385
0.783459
0.080189
0
0.421053
1
0
0.239382
0.208494
0
0
0
0
0
1
0
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
46a182cf51b9ed1b9b73c8d7f27261908a68ce43
327
py
Python
test/collectd/logger.py
SumoLogic/sumologic-collectd-plugin
a387fa9f8116fc6b56fbcd9628e074e4b602b606
[ "Apache-2.0" ]
10
2017-08-08T20:28:38.000Z
2022-02-09T21:46:10.000Z
test/collectd/logger.py
SumoLogic/sumologic-collectd-plugin
a387fa9f8116fc6b56fbcd9628e074e4b602b606
[ "Apache-2.0" ]
26
2017-08-08T20:36:56.000Z
2022-01-12T15:33:30.000Z
test/collectd/logger.py
SumoLogic/sumologic-collectd-plugin
a387fa9f8116fc6b56fbcd9628e074e4b602b606
[ "Apache-2.0" ]
7
2018-04-16T15:29:37.000Z
2021-09-05T12:02:11.000Z
# -*- coding: utf-8 -*- import logging # We use logging here so we can easily make assertions using pytest's caplog fixture logger = logging.getLogger("collectd") def debug(msg): logger.debug(msg) def info(msg): logger.info(msg) def warning(msg): logger.warning(msg) def error(msg): logger.erro...
14.217391
84
0.681957
48
327
4.645833
0.5625
0.161435
0
0
0
0
0
0
0
0
0
0.003788
0.192661
327
22
85
14.863636
0.840909
0.318043
0
0
0
0
0.036364
0
0
0
0
0
0
1
0.4
false
0
0.1
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
46a1fd0977c9197be9ef2820216c8a019ab390ec
340
py
Python
nautobot/extras/tests/dummy_jobs/test_modify_db.py
romanukes/nautobot
1a58479e702c16c9298ab18b96f74718c64697f9
[ "Apache-2.0" ]
1
2021-06-16T22:18:35.000Z
2021-06-16T22:18:35.000Z
nautobot/extras/tests/dummy_jobs/test_modify_db.py
romanukes/nautobot
1a58479e702c16c9298ab18b96f74718c64697f9
[ "Apache-2.0" ]
null
null
null
nautobot/extras/tests/dummy_jobs/test_modify_db.py
romanukes/nautobot
1a58479e702c16c9298ab18b96f74718c64697f9
[ "Apache-2.0" ]
null
null
null
from nautobot.extras.jobs import Job from nautobot.extras.models import Status class TestModifyDB(Job): """ Job that modifies the database. """ def test_modify_db(self): """ Job function. """ Status.objects.create( name="Test Status", slug="test...
18.888889
41
0.564706
36
340
5.277778
0.666667
0.126316
0.189474
0
0
0
0
0
0
0
0
0
0.326471
340
17
42
20
0.829694
0.132353
0
0
0
0
0.085938
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
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
46a5485a03580751c7f3968dc2d8b512346290ad
1,155
py
Python
demo/demo.py
azg1966/aiohttp-simple-csrf
fb9d7d804041430d1042096b79902ca78e2c9445
[ "WTFPL" ]
null
null
null
demo/demo.py
azg1966/aiohttp-simple-csrf
fb9d7d804041430d1042096b79902ca78e2c9445
[ "WTFPL" ]
null
null
null
demo/demo.py
azg1966/aiohttp-simple-csrf
fb9d7d804041430d1042096b79902ca78e2c9445
[ "WTFPL" ]
null
null
null
from aiohttp import web from aiohttp_session import setup as session_setup, SimpleCookieStorage from aiohttp_simple_csrf import generate_csrf_token, validate_csrf_token async def index(request): html = """ <html> <head> <title> Hello World ...
31.216216
77
0.580952
129
1,155
5.031008
0.395349
0.124807
0.052388
0
0
0
0
0
0
0
0
0.001225
0.293506
1,155
36
78
32.083333
0.794118
0
0
0
1
0
0.445022
0.019048
0
0
0
0
0
1
0
false
0
0.096774
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
46ac839b7f04dec4fe97a3a7d0285a3e36df62fa
2,662
py
Python
reroute/decorators.py
dnerdy/django-reroute
fbc9c3a15f12e9522ef3333896ce0564a2888a30
[ "MIT" ]
3
2015-10-02T07:16:35.000Z
2016-09-20T16:16:13.000Z
reroute/decorators.py
dnerdy/django-reroute
fbc9c3a15f12e9522ef3333896ce0564a2888a30
[ "MIT" ]
null
null
null
reroute/decorators.py
dnerdy/django-reroute
fbc9c3a15f12e9522ef3333896ce0564a2888a30
[ "MIT" ]
null
null
null
# Copyright (c) 2011 Mark Sandstrom # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distr...
42.935484
117
0.67731
317
2,662
5.615142
0.44795
0.049438
0.014607
0.023596
0.138202
0.138202
0.1
0.060674
0
0
0
0.002023
0.257325
2,662
61
118
43.639344
0.898331
0.398197
0
0.405405
0
0.027027
0.059381
0
0
0
0
0
0
1
0.162162
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
46b594756e0a8134aadefa83158347160de33647
12,231
py
Python
examples/flickr8K/flickr8K_to_hdf5_data_backward.py
deepsemantic/image_captioning
2b81ae53b81ed088074a97499e67bbcd5df4381d
[ "BSD-2-Clause" ]
86
2016-07-12T11:49:44.000Z
2021-04-25T02:43:06.000Z
examples/flickr8K/flickr8K_to_hdf5_data_backward.py
deepsemantic/image_captioning
2b81ae53b81ed088074a97499e67bbcd5df4381d
[ "BSD-2-Clause" ]
10
2016-10-25T07:20:29.000Z
2019-05-24T03:51:04.000Z
examples/flickr8K/flickr8K_to_hdf5_data_backward.py
deepsemantic/image_captioning
2b81ae53b81ed088074a97499e67bbcd5df4381d
[ "BSD-2-Clause" ]
42
2016-10-20T07:03:06.000Z
2019-06-21T00:59:57.000Z
#!/usr/bin/env python from hashlib import sha1 import os import random random.seed(3) import re import sys import pdb sys.path.append('./examples/flickr8K/') COCO_PATH = './data/coco/coco' DATA_PATH = '/data/flickr8K' COCO_TOOL_PATH = '%s/PythonAPI/pycocotools' % COCO_PATH COCO_IMAGE_ROOT = '%s/images' % DATA_PATH ...
37.866873
137
0.672472
1,749
12,231
4.454545
0.166381
0.008985
0.011937
0.013862
0.161853
0.09665
0.056989
0.040303
0.027596
0.026441
0
0.034604
0.206116
12,231
322
138
37.984472
0.767765
0.181342
0
0.060345
0
0.00431
0.106698
0.037812
0
0
0
0
0.008621
0
null
null
0
0.034483
null
null
0.047414
0
0
0
null
0
0
0
0
0
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
46b59fa9a80dc751d0b06b4608388ed33cbd0094
408
py
Python
demand/migrations/0002_demand_description.py
foxstarx2beijing/ajms
9ce241ce56670f423f72ed1511f232486c5a291c
[ "MIT" ]
null
null
null
demand/migrations/0002_demand_description.py
foxstarx2beijing/ajms
9ce241ce56670f423f72ed1511f232486c5a291c
[ "MIT" ]
null
null
null
demand/migrations/0002_demand_description.py
foxstarx2beijing/ajms
9ce241ce56670f423f72ed1511f232486c5a291c
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-09-16 13:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('demand', '0001_initial'), ] operations = [ migrations.AddField( model_name='demand', name='description', f...
21.473684
83
0.602941
44
408
5.5
0.795455
0
0
0
0
0
0
0
0
0
0
0.074576
0.276961
408
18
84
22.666667
0.745763
0.105392
0
0
1
0
0.101928
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d3b1393ef3e31943d1d1fb266197e4e75199ef0a
5,305
py
Python
Adventure.py
Edison-Stuart/TextBasedCOA
10b27e9ffc5bb309004c34f957967f2a4715f879
[ "MIT" ]
null
null
null
Adventure.py
Edison-Stuart/TextBasedCOA
10b27e9ffc5bb309004c34f957967f2a4715f879
[ "MIT" ]
null
null
null
Adventure.py
Edison-Stuart/TextBasedCOA
10b27e9ffc5bb309004c34f957967f2a4715f879
[ "MIT" ]
null
null
null
TextBasedCOA drwxr-xr-x 2 edison edison 4096 Oct 1 2020 Videos import time # import to add pause # user responses answer_A = ['A', 'a'] answer_B = ['B', 'b'] answer_C = ['C', 'c'] yes = ['Y', 'y', 'Yes', 'yes'] no = ['N', 'n', 'No', 'no'] funeral_names = ['mom', 'aunt', 'uncle', 'dog', 'cat', 'dad', 'br...
31.766467
118
0.579265
792
5,305
3.818182
0.325758
0.029101
0.026455
0.034722
0.16369
0.102513
0.082672
0.046296
0.024471
0.024471
0
0.012115
0.315363
5,305
166
119
31.957831
0.820485
0.060697
0
0.430769
0
0.023077
0.411042
0
0
0
0
0
0
0
null
null
0
0.007692
null
null
0.292308
0
0
0
null
0
0
0
0
0
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
d3bb9949ba586e6665ccd586cccf1b129022eb94
3,685
py
Python
Algorithms/Haar/solution.py
abefrandsen/numerical_computing
90559f7c4f387885eb44ea7b1fa19bb602f496cb
[ "CC-BY-3.0" ]
null
null
null
Algorithms/Haar/solution.py
abefrandsen/numerical_computing
90559f7c4f387885eb44ea7b1fa19bb602f496cb
[ "CC-BY-3.0" ]
null
null
null
Algorithms/Haar/solution.py
abefrandsen/numerical_computing
90559f7c4f387885eb44ea7b1fa19bb602f496cb
[ "CC-BY-3.0" ]
null
null
null
# Solutions to problem 1 import scipy as sp import numpy as sp from matplotlib import pyplot as plt from scipy import signal def getFrame(m): coeffs = [] k_max = int(sp.pi*2**(m+1)) for k in xrange(k_max): coeffs.append(-2**m*(sp.cos((k+1)*2**(-m)) - sp.cos(k*2**(-m)))) coeffs.append(-2**m*(1-s...
32.901786
102
0.680868
656
3,685
3.756098
0.21189
0.013799
0.008523
0.028409
0.420049
0.361607
0.281656
0.25
0.215097
0.12987
0
0.029928
0.165807
3,685
111
103
33.198198
0.771633
0.161194
0
0.255319
0
0
0
0
0
0
0
0
0
1
0.12766
false
0.085106
0.085106
0
0.340426
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
d3c0d287c9d8b7b57ef1dc487d63020706e656fa
1,153
py
Python
board/urls.py
NSYT0607/DONGKEY
83f926f22a10a28895c9ad71038c9a27d200e231
[ "MIT" ]
1
2018-04-10T11:47:16.000Z
2018-04-10T11:47:16.000Z
board/urls.py
NSYT0607/DONGKEY
83f926f22a10a28895c9ad71038c9a27d200e231
[ "MIT" ]
null
null
null
board/urls.py
NSYT0607/DONGKEY
83f926f22a10a28895c9ad71038c9a27d200e231
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'board' urlpatterns = [ path('admin/list/<int:club_pk>/', views.article_list, name='article_list_admin'), path('list/<int:club_pk>/', views.article_list, name='article_list'), path('ctg/<int:club_pk>/<int:ctg_pk>/', views.article_list, name='arti...
54.904762
96
0.714657
165
1,153
4.721212
0.145455
0.116816
0.215661
0.15276
0.44801
0.38896
0.240051
0.112965
0.112965
0.112965
0
0
0.093669
1,153
21
97
54.904762
0.745455
0
0
0
0
0
0.408146
0.12825
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
d3c50432afba35c66fb36e35f411205109bc463c
2,293
py
Python
mainapp/models.py
deliverhoo/whiteelephant
8a79a637e9b21d1201f46d229bbd807f52717a61
[ "MIT" ]
null
null
null
mainapp/models.py
deliverhoo/whiteelephant
8a79a637e9b21d1201f46d229bbd807f52717a61
[ "MIT" ]
null
null
null
mainapp/models.py
deliverhoo/whiteelephant
8a79a637e9b21d1201f46d229bbd807f52717a61
[ "MIT" ]
null
null
null
from django.db import models class Game(models.Model): game_name = models.CharField(max_length=10) description = models.CharField(max_length=100) def __str__(self): return str(self.pk) + ":"+ self.game_name # Create your models here. class Player(models.Model): game = models.ForeignKey(Game, ...
48.787234
128
0.720454
312
2,293
5.11859
0.221154
0.056356
0.087664
0.107076
0.583594
0.549155
0.529743
0.485285
0.252974
0.146525
0
0.011375
0.156563
2,293
46
129
49.847826
0.814374
0.025294
0
0.157895
0
0
0.02509
0
0
0
0
0
0
1
0.105263
false
0
0.026316
0.078947
0.868421
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
d3c6bc42bbeff804bef134fa3ac8f20350bcf03d
1,092
py
Python
sdk/managementgroups/azure-mgmt-managementgroups/azure/mgmt/managementgroups/operations/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/managementgroups/azure-mgmt-managementgroups/azure/mgmt/managementgroups/operations/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/managementgroups/azure-mgmt-managementgroups/azure/mgmt/managementgroups/operations/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.5
94
0.717949
89
1,092
8.573034
0.629213
0.125819
0.052425
0
0
0
0
0
0
0
0
0.001021
0.10348
1,092
23
95
47.478261
0.778345
0.413919
0
0
0
0
0.242089
0.197785
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d3c88c49d4f2654f32e8bf1101cc91af0cc8b7ea
627
py
Python
contests/pythonist_3/ginorts.py
delaanthonio/hackerrank
b1f2e1e93b3260be90eb3b8cb8e86e9a700acf27
[ "MIT" ]
1
2017-07-02T01:35:39.000Z
2017-07-02T01:35:39.000Z
contests/pythonist_3/ginorts.py
delaanthonio/hackerrank
b1f2e1e93b3260be90eb3b8cb8e86e9a700acf27
[ "MIT" ]
null
null
null
contests/pythonist_3/ginorts.py
delaanthonio/hackerrank
b1f2e1e93b3260be90eb3b8cb8e86e9a700acf27
[ "MIT" ]
1
2018-04-03T15:11:56.000Z
2018-04-03T15:11:56.000Z
#!/usr/bin/env pypy3 """ ginortS :author: Dela Anthonio :hackerrank: https://hackerrank.com/delaanthonio :problem: https://www.hackerrank.com/contests/pythonist3/challenges/ginorts """ import sys def main(): word = input() lower_case = sorted(filter(lambda x: x.islower(), word)) upper_case = sorted(filt...
26.125
81
0.673046
88
627
4.613636
0.511364
0.118227
0.17734
0.187192
0.320197
0.320197
0.20197
0.20197
0.20197
0.20197
0
0.011407
0.161085
627
23
82
27.26087
0.760456
0.280702
0
0
0
0
0.018059
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
0.1
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d3ce177795a20c1894e6a927cdff6820e9111339
1,660
py
Python
cdk/kesher_service_cdk/service_stack/auth_construct.py
aeskincbr/kesher-backend
57e0fd7410fc8ae6a6fe438b3633f191bb791072
[ "MIT" ]
1
2021-05-13T10:58:06.000Z
2021-05-13T10:58:06.000Z
cdk/kesher_service_cdk/service_stack/auth_construct.py
aeskincbr/kesher-backend
57e0fd7410fc8ae6a6fe438b3633f191bb791072
[ "MIT" ]
null
null
null
cdk/kesher_service_cdk/service_stack/auth_construct.py
aeskincbr/kesher-backend
57e0fd7410fc8ae6a6fe438b3633f191bb791072
[ "MIT" ]
2
2021-04-06T15:28:16.000Z
2021-05-13T23:02:59.000Z
from aws_cdk import core, aws_cognito from aws_cdk.aws_cognito import AuthFlow ## A place holder for your cdk assets demonstrated by the cognito cdk stack class KesherAuth(core.Construct): # pylint: disable=redefined-builtin,invalid-name def __init__(self, scope: core.Construct, id: str) -> None: su...
53.548387
140
0.718675
201
1,660
5.577114
0.38806
0.12132
0.074933
0.061552
0.111508
0.044603
0
0
0
0
0
0.00075
0.196988
1,660
30
141
55.333333
0.84021
0.071687
0
0
0
0
0.070917
0
0
0
0
0
0
1
0.045455
false
0.090909
0.090909
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d3d46514f13d4b3f3868b90854160478d17393eb
641
py
Python
servertest/server_starter.py
pyohei/test
3f12ad8519f5c5a13b1aab4509a0b44718ca8509
[ "MIT" ]
null
null
null
servertest/server_starter.py
pyohei/test
3f12ad8519f5c5a13b1aab4509a0b44718ca8509
[ "MIT" ]
4
2020-03-06T03:04:40.000Z
2021-05-16T12:57:16.000Z
servertest/server_starter.py
pyohei/my-sandbox
683af11781dae672a10eee5b5dd838d0f055fb04
[ "MIT" ]
null
null
null
import signal import os import sys import test_server def start(): wf = open( "", "a") rf = open( "/dev/null", "r") os.setsid() os.umask(0) os.dup2(wf.fileno(), sys.stdout.fileno()) os.dup2(rf.fileno(), sys.stdin.fileno()) os.dup2(wf.fileno(), sys.stderr.fileno()) pid_...
18.314286
45
0.566303
86
641
4.069767
0.465116
0.137143
0.045714
0.08
0.097143
0
0
0
0
0
0
0.010593
0.263651
641
34
46
18.852941
0.730932
0
0
0
0
0
0.039185
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.035714
0
0
0
null
0
0
0
0
0
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
d3d50510506ac693473e18aedb8be7c8a2d4b76f
1,259
py
Python
src/natasy/neural_network/network.py
disooqi/DNN
f87a10afba0810778ab3669f30e20128779f9da0
[ "AFL-3.0" ]
3
2019-03-03T11:01:26.000Z
2022-02-01T15:53:47.000Z
src/natasy/neural_network/network.py
disooqi/DNN
f87a10afba0810778ab3669f30e20128779f9da0
[ "AFL-3.0" ]
20
2018-10-31T16:54:21.000Z
2021-08-28T06:05:56.000Z
src/natasy/neural_network/network.py
disooqi/Natasy
f87a10afba0810778ab3669f30e20128779f9da0
[ "AFL-3.0" ]
null
null
null
from .layers import FullyConnectedLayer, OutputLayer, SoftmaxWithXEntropy class NeuralNetwork: def __init__(self, n_features, n_classes): self.n = n_features self.n_classes = n_classes self.layers = list() self.has_output_layer = False self.require_dLdA = False def add...
35.971429
120
0.649722
165
1,259
4.654545
0.327273
0.078125
0.036458
0.070313
0.114583
0.114583
0.114583
0.114583
0.114583
0.114583
0
0.00432
0.264496
1,259
35
121
35.971429
0.825054
0.07784
0
0.071429
0
0
0.017256
0
0
0
0
0.028571
0
1
0.107143
false
0.035714
0.035714
0
0.214286
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
d3d66a022ffe536a138791aeac7d2b3a5aff258c
2,735
py
Python
api/gen/test_platform/phosphorus/upload_to_tko_pb2.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
api/gen/test_platform/phosphorus/upload_to_tko_pb2.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
2
2021-03-26T00:29:32.000Z
2021-04-30T21:29:33.000Z
api/gen/test_platform/phosphorus/upload_to_tko_pb2.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: test_platform/phosphorus/upload_to_tko.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.proto...
36.959459
329
0.804753
333
2,735
6.258258
0.369369
0.092131
0.126679
0.053743
0.222649
0.222649
0.160749
0.088292
0
0
0
0.020153
0.09287
2,735
73
330
37.465753
0.819831
0.096527
0
0.111111
1
0.018519
0.26856
0.228398
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
d3e1806f807f2a402b5d79f4c8e5f2c0a8f29141
1,134
py
Python
system/controls/view.py
gmattis/raspzen
429e99fdba713f996524042a8f732b1624566c7f
[ "MIT" ]
null
null
null
system/controls/view.py
gmattis/raspzen
429e99fdba713f996524042a8f732b1624566c7f
[ "MIT" ]
null
null
null
system/controls/view.py
gmattis/raspzen
429e99fdba713f996524042a8f732b1624566c7f
[ "MIT" ]
null
null
null
from PIL import Image from typing import List from app import App from system.app import app_manager from system.static import settings from .control import Control class View: def __init__(self): self.controls: List[Control] = [] self.parent_app: App = app_manager.app if self.parent_ap...
27
93
0.632275
155
1,134
4.496774
0.393548
0.086083
0.055954
0.05165
0.060258
0
0
0
0
0
0
0.006098
0.276896
1,134
41
94
27.658537
0.843902
0.045855
0
0.066667
0
0
0.009259
0
0
0
0.014815
0.02439
0
1
0.166667
false
0.033333
0.2
0
0.433333
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
d3e6412b8aad32168442e398bacddd94198eaa21
1,370
py
Python
boggle/tests/conftest.py
gianghta/Boggle
2dc664f873ce7c07b0aefa7f2fd841c8788a930a
[ "MIT" ]
null
null
null
boggle/tests/conftest.py
gianghta/Boggle
2dc664f873ce7c07b0aefa7f2fd841c8788a930a
[ "MIT" ]
null
null
null
boggle/tests/conftest.py
gianghta/Boggle
2dc664f873ce7c07b0aefa7f2fd841c8788a930a
[ "MIT" ]
null
null
null
# Took credit from @tomchristie # https://github.com/encode/hostedapi/blob/master/tests/conftest.py from alembic import command from alembic.config import Config from starlette.config import environ from gino.ext.starlette import Gino from sqlalchemy_utils import database_exists, create_database import pytest import u...
24.035088
74
0.720438
191
1,370
5.036649
0.434555
0.04158
0.033264
0.051975
0
0
0
0
0
0
0
0.002703
0.189781
1,370
56
75
24.464286
0.863964
0.086861
0
0
0
0
0.015945
0
0
0
0
0
0
1
0.034483
false
0
0.37931
0
0.413793
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
d3eac0dcec096df14c9546ed0917c81530cfd991
5,458
py
Python
pypy/module/_cppyy/test/test_operators.py
ruby-compiler-survey/pypy
c76ed8d0979e13497786cf99eb427ef8f94ea816
[ "Apache-2.0", "OpenSSL" ]
5
2022-02-24T00:37:44.000Z
2022-02-24T22:05:50.000Z
pypy/module/_cppyy/test/test_operators.py
GabriellaUwa/pypy
2ede3b557a25cb49db969e942ca5a7f8a9eae0d4
[ "Apache-2.0", "OpenSSL" ]
1
2021-03-30T18:08:41.000Z
2021-03-30T18:08:41.000Z
pypy/module/_cppyy/test/test_operators.py
GabriellaUwa/pypy
2ede3b557a25cb49db969e942ca5a7f8a9eae0d4
[ "Apache-2.0", "OpenSSL" ]
null
null
null
import py, os, sys from .support import setup_make currpath = py.path.local(__file__).dirpath() test_dct = str(currpath.join("operatorsDict.so")) def setup_module(mod): setup_make("operatorsDict.so") class AppTestOPERATORS: spaceconfig = dict(usemodules=['_cppyy', '_rawffi', 'itertools']) def setup_cla...
30.836158
79
0.564492
718
5,458
4.128134
0.22702
0.08502
0.080297
0.074224
0.499663
0.436235
0.186235
0.151147
0.114372
0.087382
0
0.0744
0.312935
5,458
176
80
31.011364
0.716
0.106816
0
0.113821
0
0
0.056268
0.015929
0
0
0
0
0.479675
1
0.081301
false
0
0.097561
0
0.203252
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
d3ef602afcdda28edf5013a1350d369c91615d95
22,093
py
Python
planar_graph_sampler/test/mock_objects_creator.py
towink/boltzmann-planar-graph
fcfc3a04f10039f94ff74db58111007e86a31fee
[ "BSD-3-Clause" ]
null
null
null
planar_graph_sampler/test/mock_objects_creator.py
towink/boltzmann-planar-graph
fcfc3a04f10039f94ff74db58111007e86a31fee
[ "BSD-3-Clause" ]
null
null
null
planar_graph_sampler/test/mock_objects_creator.py
towink/boltzmann-planar-graph
fcfc3a04f10039f94ff74db58111007e86a31fee
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2018 by # Marta Grobelna <marta.grobelna@rwth-aachen.de> # Petre Petrov <petrepp4@gmail.com> # Rudi Floren <rudi.floren@gmail.com> # Tobias Winkler <tobias.winkler1@rwth-aachen.de> # All rights reserved. # BSD license. # # Authors: Marta Grobelna <marta.grob...
34.957278
112
0.68533
3,494
22,093
4.041214
0.04522
0.424504
0.085623
0.017139
0.766643
0.644972
0.325708
0.276416
0.252975
0.186473
0
0.068304
0.192867
22,093
631
113
35.012678
0.723531
0.037659
0
0.166359
0
0
0.010833
0
0
0
0
0
0
1
0.011091
false
0
0.005545
0
0.027726
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
d3f151f2f1126a1c6f634d8c755427384e0dfa76
353
py
Python
python/tako/client/resources.py
fredykoci/tako
fd5d50ccacec905699199b88748c27f9ff1847c6
[ "MIT" ]
null
null
null
python/tako/client/resources.py
fredykoci/tako
fd5d50ccacec905699199b88748c27f9ff1847c6
[ "MIT" ]
null
null
null
python/tako/client/resources.py
fredykoci/tako
fd5d50ccacec905699199b88748c27f9ff1847c6
[ "MIT" ]
null
null
null
import enum class AllocationPolicy(enum.Enum): Compact = "Compact" ForceCompact = "ForceCompact" Scatter = "Scatter" class ResourceRequest: def __init__(self, cpus, policy=AllocationPolicy.Compact): self.cpus = cpus self.policy = policy def to_dict(self): return {"cpus"...
20.764706
62
0.66289
38
353
6.026316
0.447368
0.104803
0.122271
0
0
0
0
0
0
0
0
0
0.226629
353
17
63
20.764706
0.838828
0
0
0
0
0
0.084746
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.090909
0.818182
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
d3f5d2648fb6063c50cd37b9b11077a940964008
1,221
py
Python
config_example.py
hvnobug/12306_ticket
111f77adf4da0cfa3101413e282258914973e0d6
[ "MIT" ]
6
2021-01-07T09:47:26.000Z
2022-02-21T17:32:04.000Z
config_example.py
hvnobug/12306_ticket
111f77adf4da0cfa3101413e282258914973e0d6
[ "MIT" ]
2
2021-01-07T09:51:52.000Z
2021-01-12T05:44:19.000Z
config_example.py
hvnobug/12306_ticket
111f77adf4da0cfa3101413e282258914973e0d6
[ "MIT" ]
2
2021-01-06T08:38:48.000Z
2021-01-06T09:58:26.000Z
# 打码服务器配置 code_server = { 'host': '12306.yinaoxiong.cn', 'scheme': 'https', 'path': '/verify/base64/' } # 邮箱配置,如果抢票成功,将通过邮件配置通知给您 # 列举163 # "sender": "xxx@163.com" # "receivers": ["123@qq.com"] # "username": "xxx" # "password": "xxx # "host": "smtp.163.com" # 列举qq , qq设置比较复杂,需要在邮箱-->账户-->开启smtp服务,...
19.693548
76
0.610156
156
1,221
4.711538
0.647436
0.040816
0.057143
0.089796
0.165986
0.165986
0.165986
0.106122
0
0
0
0.08517
0.182637
1,221
61
77
20.016393
0.651303
0.45045
0
0.068966
0
0
0.344774
0
0
0
0
0
0
1
0
false
0.103448
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
d3fb8192c6fc98d0171d208be59e17e79a928d67
790
py
Python
articlestudy/core/config.py
Jay184/articlestudy
48a2ffb8d72baaa1ee28ece1e91fc7b45d8158b9
[ "MIT" ]
null
null
null
articlestudy/core/config.py
Jay184/articlestudy
48a2ffb8d72baaa1ee28ece1e91fc7b45d8158b9
[ "MIT" ]
1
2021-07-03T14:11:54.000Z
2021-07-03T17:39:06.000Z
articlestudy/core/config.py
Jay184/articlestudy
48a2ffb8d72baaa1ee28ece1e91fc7b45d8158b9
[ "MIT" ]
null
null
null
import os FLASK_HOST = os.environ.get('FLASK_HOST', '0.0.0.0') def get_config(env = None): if env is None: env = os.environ.get('ENV', 'development') if env == 'prod' or env == 'production': return ProductionConfig() elif env == 'test': return TestConfig() elif env == 'dev' or...
23.235294
64
0.641772
95
790
5.231579
0.442105
0.054326
0.072435
0
0
0
0
0
0
0
0
0.006568
0.229114
790
34
65
23.235294
0.809524
0
0
0
0
0
0.140329
0
0
0
0
0
0
1
0.04
false
0.04
0.04
0
0.64
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
d3fd3f52865c50e443188989adaffc331a108a0c
1,824
py
Python
chroma/importgeo/load_spectral_data.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/importgeo/load_spectral_data.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/importgeo/load_spectral_data.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
import os,sys import numpy as np def load_hist_data( datfile, xmin, xmax, sep="\t" ): """ helper tool to load data. two columns with seperator (default is tab)""" f = open(datfile,'r') lines = f.readlines() data = [] avediff = 0 lastx = 0 for l in lines: point = l.strip().split(sep)...
31.448276
108
0.563596
257
1,824
3.941634
0.36965
0.034551
0.023692
0
0
0
0
0
0
0
0
0.042169
0.27193
1,824
57
109
32
0.720633
0.036184
0
0
0
0
0.025595
0
0
0
0
0
0
0
null
null
0
0.08
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d3fde58e348363c5b17fafe6369d5b33382849ac
1,861
py
Python
python/cuquantum/cutensornet/_internal/tensor_ifc.py
NVIDIA/cuQuantum
0f00494d4639d760228ac002e83e6d2d3dd97eca
[ "BSD-3-Clause" ]
52
2021-12-04T20:39:12.000Z
2022-03-29T11:52:55.000Z
python/cuquantum/cutensornet/_internal/tensor_ifc.py
NVIDIA/cuQuantum
0f00494d4639d760228ac002e83e6d2d3dd97eca
[ "BSD-3-Clause" ]
3
2022-02-01T22:46:50.000Z
2022-03-24T01:52:29.000Z
python/cuquantum/cutensornet/_internal/tensor_ifc.py
NVIDIA/cuQuantum
0f00494d4639d760228ac002e83e6d2d3dd97eca
[ "BSD-3-Clause" ]
18
2021-12-20T17:52:07.000Z
2022-03-29T02:27:58.000Z
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES # # SPDX-License-Identifier: BSD-3-Clause """ Interface to seamlessly use tensors (or ndarray-like objects) from different libraries. """ from abc import ABC, abstractmethod from . import typemaps class Tensor(ABC): """ A simple wrapper type for ten...
22.421687
112
0.654487
189
1,861
6.328042
0.433862
0.14214
0.16388
0.150502
0.427258
0.427258
0.294314
0.195652
0.195652
0.195652
0
0.006677
0.275658
1,861
82
113
22.695122
0.880564
0.191295
0
0.566038
0
0
0.00206
0
0
0
0
0
0
1
0.226415
false
0.018868
0.037736
0
0.301887
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
310462670c419167887e58fabf2d79d28ee78b96
4,318
py
Python
test/test_models/test_room.py
CorySanin/stepmania-server
0573436abcd5951533f049dc56d91878a40726ad
[ "MIT" ]
17
2016-04-19T18:37:31.000Z
2020-12-15T04:14:20.000Z
test/test_models/test_room.py
CorySanin/stepmania-server
0573436abcd5951533f049dc56d91878a40726ad
[ "MIT" ]
40
2017-02-05T17:17:13.000Z
2018-04-08T10:31:39.000Z
test/test_models/test_room.py
CorySanin/stepmania-server
0573436abcd5951533f049dc56d91878a40726ad
[ "MIT" ]
3
2021-03-13T08:40:20.000Z
2021-09-17T07:31:22.000Z
""" Module to test room model """ import hashlib from smserver import models from test.factories.user_factory import UserFactory, user_with_room_privilege from test.factories.room_factory import RoomFactory from test import utils class RoomTest(utils.DBTest): """ test Room model""" def test_nb_players(self...
29.77931
78
0.628763
523
4,318
5.086042
0.162524
0.095865
0.033835
0.056391
0.462406
0.345865
0.319925
0.232707
0.147744
0.147744
0
0.010873
0.254516
4,318
144
79
29.986111
0.815471
0.091014
0
0.318182
0
0
0.032099
0
0
0
0
0
0.352273
1
0.090909
false
0.068182
0.056818
0
0.159091
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
31060d161b77061e9ce9863cf21662634342032c
2,324
py
Python
sauronlib/sensors/arduino_sensor.py
dmyersturnbull/sauronlib
7c6e15145061c109bf06c5cead6a11a5aee0e44b
[ "Apache-2.0" ]
null
null
null
sauronlib/sensors/arduino_sensor.py
dmyersturnbull/sauronlib
7c6e15145061c109bf06c5cead6a11a5aee0e44b
[ "Apache-2.0" ]
null
null
null
sauronlib/sensors/arduino_sensor.py
dmyersturnbull/sauronlib
7c6e15145061c109bf06c5cead6a11a5aee0e44b
[ "Apache-2.0" ]
null
null
null
import datetime from os.path import dirname from typing import Callable, List import pandas as pd from hipsterplot import HipsterPlotter from klgists.files import make_dirs from sauronlib import logger from sauronlib.sensors.sensor import * class ArduinoCsvSensor(PlottableSensor): """An abstract sensor that uses ...
34.176471
159
0.729346
333
2,324
4.906907
0.354354
0.05508
0.059976
0.026928
0.059976
0.04284
0.04284
0
0
0
0
0.003929
0.123924
2,324
67
160
34.686567
0.798625
0.194492
0
0.046512
0
0
0.081754
0
0
0
0
0
0
1
0.139535
false
0.069767
0.186047
0
0.44186
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
3106b0eb5ec59f74e5d0d4b2c522d986f86aa6af
929
py
Python
automon/helpers/crypto/coinbase.py
TheShellLand/automonisaur
b5f304a44449b8664c93d8a8a3c3cf2d73aa0ce9
[ "MIT" ]
2
2021-09-15T18:35:44.000Z
2022-01-18T05:36:54.000Z
automon/helpers/crypto/coinbase.py
TheShellLand/automonisaur
b5f304a44449b8664c93d8a8a3c3cf2d73aa0ce9
[ "MIT" ]
16
2021-08-29T22:51:53.000Z
2022-03-09T16:08:19.000Z
automon/helpers/crypto/coinbase.py
TheShellLand/automonisaur
b5f304a44449b8664c93d8a8a3c3cf2d73aa0ce9
[ "MIT" ]
null
null
null
from automon.log import Logging from automon.helpers.datascience import Pandas class Coinbase: def __init__(self, csv): self._log = Logging(name=Coinbase.__name__, level=Logging.DEBUG) self.csv = None self.df = None self.is_match = None self.type = Coinbase.__name__ ...
22.119048
72
0.583423
115
929
4.365217
0.295652
0.083665
0.059761
0.055777
0.350598
0.223108
0.223108
0.223108
0.223108
0.223108
0
0
0.32831
929
41
73
22.658537
0.804487
0
0
0.451613
0
0
0
0
0
0
0
0
0
1
0.193548
false
0
0.064516
0.064516
0.516129
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
31070c56f20e425f433f7816d01a597eed60c835
519
py
Python
account_ux/models/account_bank_statements.py
odoo-mastercore/odoo-argentina
58cdfe8610bae42f69ddb9d652a28eb3245f6a04
[ "MIT" ]
1
2021-01-25T15:57:58.000Z
2021-01-25T15:57:58.000Z
account_ux/models/account_bank_statements.py
odoo-mastercore/odoo-argentina
58cdfe8610bae42f69ddb9d652a28eb3245f6a04
[ "MIT" ]
null
null
null
account_ux/models/account_bank_statements.py
odoo-mastercore/odoo-argentina
58cdfe8610bae42f69ddb9d652a28eb3245f6a04
[ "MIT" ]
2
2020-10-17T16:36:02.000Z
2021-01-24T10:20:05.000Z
############################################################################## # For copyright and license notices, see __manifest__.py file in module root # directory ############################################################################## from odoo import models class AccountBankStatement(models.Model): _...
34.6
85
0.508671
46
519
5.478261
0.847826
0
0
0
0
0
0
0
0
0
0
0
0.140655
519
14
86
37.071429
0.565022
0.16185
0
0
0
0
0.141304
0.07971
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
310781d542553a94aa7327bb3962516e8a613be2
1,429
py
Python
thespian/test/test_msg_ValidatedSource.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
210
2015-08-31T19:39:34.000Z
2020-01-10T08:07:48.000Z
thespian/test/test_msg_ValidatedSource.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
85
2017-04-08T19:28:42.000Z
2022-03-23T15:25:49.000Z
thespian/test/test_msg_ValidatedSource.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
47
2015-09-01T19:24:20.000Z
2020-01-02T20:03:05.000Z
from thespian.actors import ValidatedSource, ActorSystemMessage class TestUnitValidatedSourceMsg(object): def test_equality(self): m1 = ValidatedSource(1, 2) assert m1 == ValidatedSource(1, 2) assert m1 == ValidatedSource(1, 4) assert m1 == ValidatedSource(1, 'nine') m2 = ...
37.605263
75
0.652204
146
1,429
6.356164
0.246575
0.155172
0.128233
0.061422
0.349138
0.196121
0.196121
0.158405
0
0
0
0.037307
0.230931
1,429
37
76
38.621622
0.807097
0
0
0.068966
0
0
0.025192
0
0
0
0
0
0.689655
1
0.137931
false
0
0.034483
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
310ca07a917d95bf3e0e037bcb1cd5d863884ff4
200
py
Python
work_4_4.py
Ghost-Lonely-Wolf/work_2
62037de0753328b6770c1371a89c2fdd5e52fad7
[ "MIT" ]
null
null
null
work_4_4.py
Ghost-Lonely-Wolf/work_2
62037de0753328b6770c1371a89c2fdd5e52fad7
[ "MIT" ]
1
2021-02-23T13:39:09.000Z
2021-02-23T13:39:09.000Z
work_4_4.py
Ghost-Lonely-Wolf/work_2
62037de0753328b6770c1371a89c2fdd5e52fad7
[ "MIT" ]
null
null
null
from random import randint my_list = [randint(0, 15) for _ in range(20)] new_list = [el for el in my_list if my_list.count(el) == 1] print(f'Изначальный список\n{my_list}\nНовый список\n {new_list}')
40
66
0.73
39
200
3.564103
0.589744
0.172662
0
0
0
0
0
0
0
0
0
0.034682
0.135
200
4
67
50
0.768786
0
0
0
0
0
0.28
0.12
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
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
311584507cd1ab8585a1ad8539d2a34eeb666859
252
py
Python
ad-hoc/maratona_2366.py
geraldofada/uri-solutions
a46a3bdcb06b2337d3221c22719be1c9d527312a
[ "MIT" ]
null
null
null
ad-hoc/maratona_2366.py
geraldofada/uri-solutions
a46a3bdcb06b2337d3221c22719be1c9d527312a
[ "MIT" ]
null
null
null
ad-hoc/maratona_2366.py
geraldofada/uri-solutions
a46a3bdcb06b2337d3221c22719be1c9d527312a
[ "MIT" ]
null
null
null
n, m = map(int, input().split()) points = list(map(int, input().split())) points.append(42195) ok = True for i in range(len(points) - 1): if points[i+1] - points[i] > m: ok = False break if ok: print("S") else: print("N")
16.8
40
0.547619
41
252
3.365854
0.585366
0.086957
0.15942
0.231884
0.318841
0
0
0
0
0
0
0.037234
0.253968
252
15
41
16.8
0.696809
0
0
0
0
0
0.007905
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
311a58118428566204c991a49433097d09cbecdf
1,272
py
Python
setup.py
austrian-code-wizard/gym-nats
df5f6efb34fefaba3186ad225c45ca296a1f095a
[ "MIT" ]
1
2020-09-29T17:56:21.000Z
2020-09-29T17:56:21.000Z
setup.py
austrian-code-wizard/gym-nats
df5f6efb34fefaba3186ad225c45ca296a1f095a
[ "MIT" ]
4
2020-09-29T10:17:06.000Z
2020-09-29T10:19:37.000Z
setup.py
austrian-code-wizard/gym-nats
df5f6efb34fefaba3186ad225c45ca296a1f095a
[ "MIT" ]
null
null
null
from setuptools import setup setup( name = 'gym-nats', packages = ['gym_nats'], version = '0.1.2', license='MIT', description='OpenAI Gym environment interfacing with NATS.io', long_description = 'Implements an OpenAI gym environment using NATS.io. Using this environment, a reinforceme...
47.111111
179
0.686321
157
1,272
5.522293
0.624204
0.032295
0.11534
0.119954
0.096886
0.096886
0.096886
0.096886
0.096886
0
0
0.012512
0.183176
1,272
27
180
47.111111
0.821944
0
0
0
0
0.115385
0.465043
0.033778
0
0
0
0
0
1
0
true
0
0.038462
0
0.038462
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
311b94fa8955c3e062cb5709eb71938a8fd9c4cc
950
py
Python
tests/programs/dining_philosophers/consecutive.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
1
2018-05-19T18:28:12.000Z
2018-05-19T18:28:12.000Z
tests/programs/dining_philosophers/consecutive.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
12
2018-04-26T00:58:11.000Z
2018-05-13T22:03:39.000Z
tests/programs/dining_philosophers/consecutive.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
null
null
null
from pylps.core import * initialise(max_time=10) create_fluents('available(_)') create_actions('pickup(_, _)', 'putdown(_, _)') create_variables('P', 'P1', 'P2', 'F', 'F1', 'F2') create_facts('philosopher(_)', 'adjacent(_, _, _)') create_events('dine(_)') initially( available('fork1'), available('fork2'), availa...
22.093023
63
0.642105
131
950
4.496183
0.389313
0.033956
0.035654
0.033956
0.078098
0
0
0
0
0
0
0.044471
0.124211
950
42
64
22.619048
0.663462
0
0
0
0
0
0.164211
0
0
0
0
0
0
1
0
true
0
0.032258
0
0.032258
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
31215f58a52c02ce9b4f7100afd5c7bb41f247c3
918
py
Python
scripts/build_all.py
arunj0shi/docker-tensorflow-builder
590c76d1fe1fd6bddbef9dcdb7dac978bd0eb6d2
[ "MIT" ]
169
2018-06-02T23:42:52.000Z
2022-03-03T09:57:36.000Z
scripts/build_all.py
arunj0shi/docker-tensorflow-builder
590c76d1fe1fd6bddbef9dcdb7dac978bd0eb6d2
[ "MIT" ]
25
2018-06-15T00:51:48.000Z
2020-02-09T08:30:25.000Z
scripts/build_all.py
arunj0shi/docker-tensorflow-builder
590c76d1fe1fd6bddbef9dcdb7dac978bd0eb6d2
[ "MIT" ]
56
2018-06-09T04:36:08.000Z
2022-03-03T09:59:32.000Z
# This is a work-in-progress. # The idea is to generate a combination of builds # with different parameters. from pathlib import Path import yaml import itertools base_dir = Path('../') config_path = Path('build_config.yml') config = yaml.load(open(config_path)) matrix = config['matrix'] excluded = config['exclude']...
24.157895
76
0.680828
127
918
4.76378
0.464567
0.049587
0.046281
0
0
0
0
0
0
0
0
0.002793
0.220044
918
37
77
24.810811
0.842179
0.172113
0
0
1
0
0.04244
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3121f4740a306da4da4177b70c63d3930b0fac65
9,912
py
Python
previous_releases/0.4.3/uhbd.py
harmsm/uhbd
0541a0d21d81b458f5ddae347a2ce267c7519cbc
[ "Unlicense" ]
null
null
null
previous_releases/0.4.3/uhbd.py
harmsm/uhbd
0541a0d21d81b458f5ddae347a2ce267c7519cbc
[ "Unlicense" ]
null
null
null
previous_releases/0.4.3/uhbd.py
harmsm/uhbd
0541a0d21d81b458f5ddae347a2ce267c7519cbc
[ "Unlicense" ]
null
null
null
""" uhbd.py: Functions/data necessary to perform a UHBD calculation on a single pdb file. Core of the batch run suite. Required files: pkaS-doinp.inp (in ./inputs/) pkaS.dat (in ./inputs/) """ #*****************************************************************************# # ...
30.687307
80
0.545904
1,284
9,912
4.130841
0.262461
0.019796
0.015837
0.010181
0.075226
0.042232
0.00905
0.00905
0.00905
0
0
0.026269
0.266445
9,912
323
81
30.687307
0.703205
0.186743
0
0.104651
0
0
0.117314
0.009998
0
0
0
0
0
0
null
null
0
0.005814
null
null
0.040698
0
0
0
null
0
0
0
0
0
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
3126675d69c845e718f7ce23bd7f7bd6d81b0af7
3,960
py
Python
ambari-server/src/main/resources/host_scripts/alert_version_select.py
zyclove/ambari
1032f0f54cb7b312b9a3b37570cd840f4e1e89d4
[ "Apache-2.0" ]
null
null
null
ambari-server/src/main/resources/host_scripts/alert_version_select.py
zyclove/ambari
1032f0f54cb7b312b9a3b37570cd840f4e1e89d4
[ "Apache-2.0" ]
null
null
null
ambari-server/src/main/resources/host_scripts/alert_version_select.py
zyclove/ambari
1032f0f54cb7b312b9a3b37570cd840f4e1e89d4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); y...
36.330275
164
0.72399
566
3,960
4.932862
0.349823
0.050143
0.042622
0.025788
0.085244
0.085244
0.060172
0.040831
0.040831
0.040831
0
0.004625
0.181061
3,960
108
165
36.666667
0.856306
0.087879
0
0.117647
0
0
0.186426
0.032613
0
0
0
0
0
0
null
null
0.019608
0.117647
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
312792ba060c297a76571e597aa3fba34b01233b
8,913
py
Python
experiment/top1k_prepro.py
intuinno/capviz
46a18b6e3ed0a279e7c966fbfd3f3955db501cf7
[ "MIT" ]
null
null
null
experiment/top1k_prepro.py
intuinno/capviz
46a18b6e3ed0a279e7c966fbfd3f3955db501cf7
[ "MIT" ]
null
null
null
experiment/top1k_prepro.py
intuinno/capviz
46a18b6e3ed0a279e7c966fbfd3f3955db501cf7
[ "MIT" ]
null
null
null
import json import os import pandas as pd import numpy as np import cPickle as pickle import hickle from collections import Counter from nltk.corpus import stopwords from nltk.corpus import wordnet as wn import urllib import tarfile from PIL import Image from core.vggnet import Vgg19 import tensorflow as tf from scipy...
38.089744
156
0.588915
1,095
8,913
4.621005
0.240183
0.043478
0.024901
0.017391
0.182411
0.107708
0.086166
0.074308
0.043874
0.043874
0
0.017552
0.29687
8,913
233
157
38.253219
0.789852
0.0506
0
0.121053
0
0
0.130327
0.053741
0
0
0
0
0
0
null
null
0
0.110526
null
null
0.068421
0
0
0
null
0
0
0
0
0
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
312a83001f1a11381dfda15674661e528c384991
13,173
py
Python
sdk/python/pulumi_azure_native/keyvault/v20210401preview/private_endpoint_connection.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/keyvault/v20210401preview/private_endpoint_connection.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/keyvault/v20210401preview/private_endpoint_connection.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
47.384892
788
0.68481
1,413
13,173
6.036801
0.113234
0.049004
0.049238
0.059086
0.689683
0.624267
0.578312
0.453224
0.418171
0.364244
0
0.006344
0.222197
13,173
277
789
47.555957
0.826176
0.212025
0
0.372093
1
0
0.200753
0.141666
0
0
0
0
0
1
0.139535
false
0.005814
0.046512
0
0.27907
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
312cb9affe721e15b814dd00ff0f0de7bd937282
255
py
Python
app.py
shams169/pythonProject
19c014f239e1dd360d41c6d175334c1b9c890b9a
[ "MIT" ]
null
null
null
app.py
shams169/pythonProject
19c014f239e1dd360d41c6d175334c1b9c890b9a
[ "MIT" ]
null
null
null
app.py
shams169/pythonProject
19c014f239e1dd360d41c6d175334c1b9c890b9a
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) wsgi_app = app.wsgi_app # @app.route('/') # def hello(): # return "Hello World!" #import routes file #from ContactsDir.routes import *; from routes import * if __name__ == '__main__': app.run()
13.421053
34
0.666667
34
255
4.588235
0.5
0.089744
0.128205
0
0
0
0
0
0
0
0
0
0.196078
255
18
35
14.166667
0.760976
0.411765
0
0
0
0
0.056338
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
31346b358c137629abb672ada88d4d9e397608c5
2,626
py
Python
receiver.py
Vignesh-Desmond/cdma-simulation
d8bfad2c867f6e9d30b605368e7d8fe22525ff01
[ "MIT" ]
6
2021-06-21T17:04:23.000Z
2022-03-30T12:28:28.000Z
receiver.py
Vignesh-Desmond/cdma-simulation
d8bfad2c867f6e9d30b605368e7d8fe22525ff01
[ "MIT" ]
null
null
null
receiver.py
Vignesh-Desmond/cdma-simulation
d8bfad2c867f6e9d30b605368e7d8fe22525ff01
[ "MIT" ]
1
2022-03-31T12:54:19.000Z
2022-03-31T12:54:19.000Z
import logging import pickle import socket import sys from copy import deepcopy import numpy as np import utils # ? Configure logging logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.DEBUG) class UserDecode: """Class to contain decoding for CDMA""" def __init__(self, uId, code): ...
28.857143
88
0.659939
365
2,626
4.605479
0.386301
0.071981
0.042832
0.011898
0.040452
0.040452
0.040452
0.040452
0
0
0
0.009548
0.242193
2,626
90
89
29.177778
0.835176
0.359101
0
0
0
0
0.108176
0.02956
0
0
0
0.011111
0
1
0.081081
false
0
0.189189
0
0.324324
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
3136cbb62b7dc904f961f4e0e065eecafe15b4e2
9,612
py
Python
make_mel_standalone.py
kmiddleton/muscle_maya
3896a4d066cb9e44f1d3a7510c9323b2c32ce636
[ "MIT" ]
null
null
null
make_mel_standalone.py
kmiddleton/muscle_maya
3896a4d066cb9e44f1d3a7510c9323b2c32ce636
[ "MIT" ]
1
2019-02-05T17:24:37.000Z
2019-02-05T17:24:37.000Z
make_mel_standalone.py
kmiddleton/muscle_maya
3896a4d066cb9e44f1d3a7510c9323b2c32ce636
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Generate mel script for stl and data file @author: Kevin Middleton """ print() from numpy import cross, eye, dot, array, pi from numpy.linalg import norm from math import atan2, sqrt def ssc(v): ''' Calculate the skew-symmetric cross-product matrix of v ...
33.608392
97
0.599355
1,385
9,612
4.057762
0.220217
0.076868
0.058541
0.047331
0.337011
0.252669
0.165125
0.165125
0.103203
0.084342
0
0.029952
0.246255
9,612
285
98
33.726316
0.745756
0.189347
0
0.085366
1
0.012195
0.319138
0.070673
0
0
0
0
0
1
0.030488
false
0
0.073171
0
0.128049
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3139596fd1935b381597ed109c05f0bedf0c9664
38,943
py
Python
examples/xma/smokeTest_xmaApp.py
jmouroux/video-sdk
ae3430c8cb0553bbcfc097b8e36ee9e08ac32c35
[ "Apache-2.0", "BSD-3-Clause" ]
11
2021-06-01T06:16:50.000Z
2022-02-16T16:19:20.000Z
examples/xma/smokeTest_xmaApp.py
jmouroux/video-sdk
ae3430c8cb0553bbcfc097b8e36ee9e08ac32c35
[ "Apache-2.0", "BSD-3-Clause" ]
19
2021-08-31T03:31:06.000Z
2022-02-16T22:35:39.000Z
examples/xma/smokeTest_xmaApp.py
jmouroux/video-sdk
ae3430c8cb0553bbcfc097b8e36ee9e08ac32c35
[ "Apache-2.0", "BSD-3-Clause" ]
5
2021-07-09T21:31:27.000Z
2022-03-08T00:44:54.000Z
# # Copyright 2021 Xilinx, 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 agreed to ...
44.303754
171
0.519118
4,586
38,943
4.384213
0.101396
0.035213
0.02641
0.029344
0.696011
0.66423
0.637322
0.626579
0.623545
0.61519
0
0.032149
0.332255
38,943
878
172
44.354214
0.74104
0.091056
0
0.511041
0
0.004732
0.160475
0.001877
0
0
0.000117
0
0
1
0.014196
false
0.042587
0.011041
0
0.033123
0.09306
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
314099cdf9794e12ad8bf58b551d40abf32bb863
5,846
py
Python
examples/02-plot/interpolate-before-map.py
rohankumardubey/pyvista
ec5aa343d857d0c7e6a79aeeba340797bc868ced
[ "MIT" ]
1,107
2019-05-13T06:40:26.000Z
2022-03-31T22:16:32.000Z
examples/02-plot/interpolate-before-map.py
rohankumardubey/pyvista
ec5aa343d857d0c7e6a79aeeba340797bc868ced
[ "MIT" ]
1,709
2019-05-13T05:52:42.000Z
2022-03-31T18:16:53.000Z
examples/02-plot/interpolate-before-map.py
rohankumardubey/pyvista
ec5aa343d857d0c7e6a79aeeba340797bc868ced
[ "MIT" ]
225
2019-05-16T04:24:20.000Z
2022-03-31T18:14:02.000Z
""" Interpolate Before Mapping ~~~~~~~~~~~~~~~~~~~~~~~~~~ The ``add_mesh`` function has an ``interpolate_before_map`` argument - this affects the way scalar data is visualized with colors. The effect can of this can vary depending on the dataset's topology and the chosen colormap. This example serves to demo the diff...
42.985294
121
0.652925
841
5,846
4.447087
0.286564
0.012299
0.014439
0.014973
0.390642
0.371123
0.348663
0.348663
0.348663
0.334759
0
0.023227
0.175163
5,846
135
122
43.303704
0.752385
0.537975
0
0.851852
0
0
0.135051
0
0
0
0
0
0
1
0
false
0
0.018519
0
0.018519
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
31418f29947845533bb149d52341d4d10d3ef09d
292
py
Python
packages/PIPS/pips/src/Passes/pyps/pii.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
51
2015-01-31T01:51:39.000Z
2022-02-18T02:01:50.000Z
packages/PIPS/pips/src/Passes/pyps/pii.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
7
2017-05-29T09:29:00.000Z
2019-03-11T16:01:39.000Z
packages/PIPS/pips/src/Passes/pyps/pii.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
12
2015-03-26T08:05:38.000Z
2022-02-18T02:01:51.000Z
import pyps from pipscc import pipscc class Pii(pipscc): def changes(self, ws): def filter(module): return module.code.count("\n") < 3 ws.filter(filter).inlining() if __name__ == '__main__': thecompiler = Pii(sys.argv) thecompiler.run()
16.222222
46
0.599315
35
292
4.771429
0.714286
0
0
0
0
0
0
0
0
0
0
0.004739
0.277397
292
17
47
17.176471
0.78673
0
0
0
0
0
0.034247
0
0
0
0
0
0
1
0.2
false
0
0.2
0.1
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
314190bd73292e79c3e05cf18c234fd6529a5876
3,311
py
Python
frontend.py
JavierChavez570/proyecto_programacion_estructurada
3283911ea40326ae86ddad3bd572b7e5a259aa98
[ "MIT" ]
null
null
null
frontend.py
JavierChavez570/proyecto_programacion_estructurada
3283911ea40326ae86ddad3bd572b7e5a259aa98
[ "MIT" ]
null
null
null
frontend.py
JavierChavez570/proyecto_programacion_estructurada
3283911ea40326ae86ddad3bd572b7e5a259aa98
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import csv,serial arduino = serial.Serial('/dev/cu.usbmodem30',9600) print(""" ______________________________________________________ Proyecto Programación Estructurada Integrantes: Ing. Juan Manuel Corza Hermosillo ...
33.444444
108
0.684385
472
3,311
4.476695
0.290254
0.037861
0.043067
0.069569
0.419309
0.378135
0.378135
0.34974
0.336015
0.28017
0
0.035239
0.228632
3,311
98
109
33.785714
0.792091
0.030202
0
0.204545
0
0.011364
0.444549
0.033739
0
0
0
0
0
0
null
null
0.034091
0.011364
null
null
0.204545
0
0
0
null
0
0
0
0
0
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
314542bb7a7411f5c546f1adfb3f49049b47048a
24,467
py
Python
jolang/parser/parser.py
jonatan1609/JoLang
177d18d18b42834c2d624a1050902cc799d7d638
[ "MIT" ]
25
2021-11-04T11:59:18.000Z
2022-03-10T20:20:10.000Z
jolang/parser/parser.py
jonatan1609/JoLang
177d18d18b42834c2d624a1050902cc799d7d638
[ "MIT" ]
null
null
null
jolang/parser/parser.py
jonatan1609/JoLang
177d18d18b42834c2d624a1050902cc799d7d638
[ "MIT" ]
1
2022-02-07T21:00:27.000Z
2022-02-07T21:00:27.000Z
import typing from .keywords import keywords from ..tokenizer.tokens import Identifier, Token from ..tokenizer import tokens from . import ast, errors Keyword = Token("KEYWORD") class Parser: comp_op_table = { tokens.IsEqual: ast.Equals, tokens.NotEqual: ast.NotEqual, tokens....
48.163386
206
0.588916
2,838
24,467
4.946794
0.073643
0.138471
0.181209
0.101503
0.611938
0.547974
0.517986
0.505022
0.457226
0.430016
0
0.002368
0.292312
24,467
507
207
48.258383
0.808432
0.056035
0
0.420814
0
0
0.050336
0.02003
0
0
0
0
0
1
0.074661
false
0.00905
0.011312
0.00905
0.167421
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
314fa2351c765111c1e712a8ce36b0e1bbb152e8
4,128
py
Python
challenges/web/pick-a-number-03v2/CTF-MultiFactorNumberCruncher-02-v2-PythonLoop.py
overallcoma/ctf-framework
403d7651beaf7e7c900114bed7943b12561c5058
[ "Unlicense" ]
null
null
null
challenges/web/pick-a-number-03v2/CTF-MultiFactorNumberCruncher-02-v2-PythonLoop.py
overallcoma/ctf-framework
403d7651beaf7e7c900114bed7943b12561c5058
[ "Unlicense" ]
null
null
null
challenges/web/pick-a-number-03v2/CTF-MultiFactorNumberCruncher-02-v2-PythonLoop.py
overallcoma/ctf-framework
403d7651beaf7e7c900114bed7943b12561c5058
[ "Unlicense" ]
null
null
null
import pyotp import sqlite3 import time import datetime import string import shutil import random from os import remove secretkey = open('seed.txt', 'r') secretkey = secretkey.read() onetimepad = pyotp.TOTP(secretkey) index_location = "./index.php" dbfile = "/db/password.db" old_time_string = "!!!NO TIME PRESENT!!!"...
32.503937
152
0.700581
491
4,128
5.714868
0.293279
0.035638
0.042766
0.053457
0.361369
0.333571
0.299359
0.299359
0.270848
0.240912
0
0.023318
0.18968
4,128
126
153
32.761905
0.815546
0
0
0.240741
0
0
0.096899
0
0
0
0
0
0
1
0.055556
false
0.092593
0.074074
0
0.148148
0.037037
0
0
0
null
0
0
0
0
0
0
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
31507dd964fa1555ef34d638808ad658c1dbfc8d
14,553
py
Python
lib/common/listeners.py
lex0tanl/Empire
c8217e87cf333797eb363b782f769cc4b2f64b0b
[ "BSD-3-Clause" ]
230
2017-03-01T22:29:59.000Z
2022-03-27T17:41:59.000Z
lib/common/listeners.py
gcxtx/Empire
dfb049ed48165eff2a8c1fe41941d0fbfa42df31
[ "BSD-3-Clause" ]
9
2017-03-05T17:01:46.000Z
2018-04-22T21:05:25.000Z
lib/common/listeners.py
gcxtx/Empire
dfb049ed48165eff2a8c1fe41941d0fbfa42df31
[ "BSD-3-Clause" ]
47
2017-04-04T18:25:37.000Z
2021-09-27T22:48:35.000Z
""" Listener handling functionality for Empire. """ import fnmatch import imp import helpers import os import pickle import hashlib import copy class Listeners: """ Listener handling class. """ def __init__(self, MainMenu, args): self.mainMenu = MainMenu self.args = args s...
37.507732
158
0.543737
1,389
14,553
5.658027
0.185745
0.066802
0.030284
0.030538
0.333885
0.274717
0.237944
0.210587
0.167579
0.158163
0
0.004667
0.352161
14,553
387
159
37.604651
0.828914
0.144025
0
0.474419
0
0
0.107701
0.004791
0
0
0
0
0
0
null
null
0
0.032558
null
null
0.060465
0
0
0
null
0
0
0
0
0
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
3152b0ca61f165e694193617a1781b5d8e93c77c
2,123
py
Python
api/woeip/apps/air_quality/management/commands/generate_data.py
kbrdsk/woeip
149114751a16465ce7dae1dbb066a5e1d44ba205
[ "MIT" ]
22
2018-11-14T06:09:50.000Z
2022-02-09T07:16:38.000Z
api/woeip/apps/air_quality/management/commands/generate_data.py
kbrdsk/woeip
149114751a16465ce7dae1dbb066a5e1d44ba205
[ "MIT" ]
326
2018-11-01T22:05:14.000Z
2022-03-30T01:36:21.000Z
api/woeip/apps/air_quality/management/commands/generate_data.py
kbrdsk/woeip
149114751a16465ce7dae1dbb066a5e1d44ba205
[ "MIT" ]
29
2018-10-24T03:19:05.000Z
2021-05-02T18:18:22.000Z
import datetime from django.core.management.base import BaseCommand, CommandError from woeip.apps.air_quality.tests import factories class Command(BaseCommand): help = "Generate mock air quality data." def add_arguments(self, parser): parser.add_argument( "--collections", def...
33.698413
88
0.57089
198
2,123
5.984848
0.388889
0.053165
0.037975
0.040506
0.148523
0.116456
0.116456
0.116456
0.116456
0.116456
0
0.005043
0.346208
2,123
62
89
34.241935
0.848703
0.043335
0
0.18
1
0
0.219428
0.058185
0
0
0
0
0
1
0.04
false
0.02
0.06
0
0.14
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3152b98f4d22903a2f6e1c7d05bb38d1baa49d1d
208
py
Python
UVa 10497 sweet child makes trouble/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 10497 sweet child makes trouble/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 10497 sweet child makes trouble/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
import sys sys.stdin = open('input.txt') f = [0, 0, 1, 2] for i in xrange(4, 805): f.append((f[i - 1] + f[i - 2]) * (i - 1)) while True: n = int(input()) if n == -1: break print f[n]
17.333333
45
0.475962
40
208
2.475
0.6
0.040404
0
0
0
0
0
0
0
0
0
0.083333
0.307692
208
11
46
18.909091
0.604167
0
0
0
0
0
0.043269
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3154cc801de835971ecad00c6be4c80843d9daca
590
py
Python
setup.py
sunxuetao/crypto-arbitrage-finder
7df1420490db69ac448a335b0dd610b145ee4a45
[ "Unlicense" ]
71
2017-08-17T02:34:12.000Z
2022-03-08T14:38:30.000Z
setup.py
sunxuetao/crypto-arbitrage-finder
7df1420490db69ac448a335b0dd610b145ee4a45
[ "Unlicense" ]
null
null
null
setup.py
sunxuetao/crypto-arbitrage-finder
7df1420490db69ac448a335b0dd610b145ee4a45
[ "Unlicense" ]
32
2017-12-13T14:14:48.000Z
2021-12-04T20:56:07.000Z
#!/usr/bin/env python from setuptools import setup import sys if sys.version_info < (3,): print("crypto-arbitrage requires Python version >= 3.0") sys.exit(1) setup(name='crypto-arbitrage', packages = ["arbitrage"], version='0.3', description='crypto asset arbitrage opportunity watcher, ma...
26.818182
98
0.667797
72
590
5.416667
0.652778
0.153846
0
0
0
0
0
0
0
0
0
0.0125
0.186441
590
21
99
28.095238
0.8
0.033898
0
0
0
0
0.458699
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
3156267f47ecdd5514eb28258349ffae93803b34
3,730
py
Python
AdminPrefix_Resourcer_v1.py
adambreznicky/smudge_python
af7ba221890253ac6fe7f38691b351861f8b3d96
[ "MIT" ]
1
2017-05-24T02:05:20.000Z
2017-05-24T02:05:20.000Z
AdminPrefix_Resourcer_v1.py
adambreznicky/smudge_python
af7ba221890253ac6fe7f38691b351861f8b3d96
[ "MIT" ]
null
null
null
AdminPrefix_Resourcer_v1.py
adambreznicky/smudge_python
af7ba221890253ac6fe7f38691b351861f8b3d96
[ "MIT" ]
null
null
null
# # #March 2014 #Adam Breznicky - TxDOT TPP - Mapping Group # #This is an independent script which requires a single parameter designating a directory. #The script will walk through each subfolder and file within the designated directory, identifying the MXD files #and re-sourcing the Comanche database connections to ...
44.939759
120
0.471314
349
3,730
4.985673
0.355301
0.027586
0.034483
0.048276
0.395402
0.378161
0.267816
0.267816
0.267816
0.267816
0
0.007156
0.43807
3,730
83
121
44.939759
0.822996
0.120107
0
0.321429
0
0.017857
0.128064
0.025123
0
0
0
0
0
0
null
null
0.017857
0.017857
null
null
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
315d290c754e758dfa17dec64892f3575aa3d012
17,294
py
Python
src/code/losses.py
TerboucheHacene/StyleGAN-pytorch-lightining
cd32dea331b8268c717657c0fa747eced8f0ac3f
[ "MIT" ]
null
null
null
src/code/losses.py
TerboucheHacene/StyleGAN-pytorch-lightining
cd32dea331b8268c717657c0fa747eced8f0ac3f
[ "MIT" ]
null
null
null
src/code/losses.py
TerboucheHacene/StyleGAN-pytorch-lightining
cd32dea331b8268c717657c0fa747eced8f0ac3f
[ "MIT" ]
null
null
null
from turtle import forward import numpy as np import torch import torch.nn as nn import torch.nn.functional as F class Loss(nn.Module): """Base class for implemting different losses""" def __init__(self, name, **kwargs) -> None: super().__init__() self.name = name def disc_loss( ...
29.613014
136
0.593269
1,936
17,294
5.124483
0.116219
0.126399
0.09999
0.074589
0.733293
0.696502
0.671102
0.643786
0.626348
0.623727
0
0.014045
0.300104
17,294
583
137
29.663808
0.805601
0.411819
0
0.510309
0
0
0.021245
0
0
0
0
0
0.010309
1
0.175258
false
0
0.025773
0.005155
0.360825
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
315e8a31be289f9955b1eb705b2e98d4e3a9a330
2,842
py
Python
glove/pairs2vocab.py
Alaa-Ebshihy/mylingchg-stan-py
0706bd971321b0e1fcc319452f609b5f7f1171ae
[ "Apache-2.0" ]
null
null
null
glove/pairs2vocab.py
Alaa-Ebshihy/mylingchg-stan-py
0706bd971321b0e1fcc319452f609b5f7f1171ae
[ "Apache-2.0" ]
null
null
null
glove/pairs2vocab.py
Alaa-Ebshihy/mylingchg-stan-py
0706bd971321b0e1fcc319452f609b5f7f1171ae
[ "Apache-2.0" ]
null
null
null
import argparse import os import ioutils from multiprocessing import Process, Queue from Queue import Empty from representations.matrix_serializer import save_count_vocabulary import six import sys def worker(proc_num, queue, out_dir, in_dir): while True: try: year = queue.get(block=False) ...
35.974684
96
0.606615
370
2,842
4.510811
0.313514
0.02876
0.061114
0.019772
0.129419
0.075494
0.075494
0
0
0
0
0.018831
0.271288
2,842
78
97
36.435897
0.787059
0.014075
0
0.0625
0
0
0.130046
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.109375
0
0
0
null
0
0
0
0
0
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
3169f5d4bc2284ac6ee5f5164163aefed4ea6868
4,572
py
Python
tests/test_utils.py
Adwaith-Rajesh/onstro-db
d62386644fe829a35fa06d36c7279c38978e9feb
[ "MIT" ]
6
2021-07-16T09:08:04.000Z
2021-08-12T18:07:08.000Z
tests/test_utils.py
Adwaith-Rajesh/onstro-db
d62386644fe829a35fa06d36c7279c38978e9feb
[ "MIT" ]
null
null
null
tests/test_utils.py
Adwaith-Rajesh/onstro-db
d62386644fe829a35fa06d36c7279c38978e9feb
[ "MIT" ]
null
null
null
import shutil from typing import Dict import pytest from onstrodb.core.utils import add_default_to_data from onstrodb.core.utils import generate_hash_id from onstrodb.core.utils import validate_data_with_schema from onstrodb.core.utils import validate_query_data from onstrodb.core.utils import validate_schema from on...
28.04908
77
0.586614
544
4,572
4.727941
0.15625
0.083981
0.064152
0.087481
0.667574
0.583593
0.349533
0.225505
0.207621
0.187403
0
0.018031
0.211505
4,572
162
78
28.222222
0.695423
0.005249
0
0.180451
1
0
0.188101
0
0
0
0
0
0.045113
1
0.082707
false
0
0.090226
0
0.172932
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
3171f8dc862418cb57a9559e08bf0f134d754003
3,309
py
Python
backend/apps/docs/views/image.py
codelieche/kanban
1eb70be1a2df4935ab226cb08e7f189c2a41a4cd
[ "MIT" ]
1
2020-12-12T01:38:36.000Z
2020-12-12T01:38:36.000Z
backend/apps/docs/views/image.py
codelieche/kanban
1eb70be1a2df4935ab226cb08e7f189c2a41a4cd
[ "MIT" ]
11
2021-01-28T14:38:20.000Z
2021-10-04T12:49:51.000Z
backend/apps/docs/views/image.py
codelieche/kanban
1eb70be1a2df4935ab226cb08e7f189c2a41a4cd
[ "MIT" ]
null
null
null
""" 图片相关的视图 """ from rest_framework import generics from rest_framework.permissions import IsAuthenticated from rest_framework.filters import SearchFilter, OrderingFilter from django_filters.rest_framework import DjangoFilterBackend from django.http.response import HttpResponseForbidden from tags.models import ObjectT...
34.113402
103
0.641584
326
3,309
6.184049
0.312883
0.045139
0.069444
0.045635
0.322421
0.322421
0.271825
0.271825
0.271825
0.271825
0
0.000827
0.269266
3,309
96
104
34.46875
0.83292
0.056815
0
0.315789
0
0
0.042484
0
0
0
0
0
0
1
0.035088
false
0
0.140351
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
317a0fa20c60a6be37d85600e28f36a1e2423581
442
py
Python
generateGUID/scripts/generate_GUID_Bash_CSV.py
INT-NIT-calcul/generateGUID
446aa5e6d4d37a6c41732b63995c9e39e3ce9b1b
[ "MIT" ]
null
null
null
generateGUID/scripts/generate_GUID_Bash_CSV.py
INT-NIT-calcul/generateGUID
446aa5e6d4d37a6c41732b63995c9e39e3ce9b1b
[ "MIT" ]
null
null
null
generateGUID/scripts/generate_GUID_Bash_CSV.py
INT-NIT-calcul/generateGUID
446aa5e6d4d37a6c41732b63995c9e39e3ce9b1b
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys from generateGUID import generate_GUID import pandas as pd if len(sys.argv) > 1: if len(sys.argv) == 2: file = sys.argv[1] df = pd.read_csv(file, usecols=["subject_name", "Study_ID"]) print(df) for index, row in df.iterrows(): key = row['su...
23.263158
68
0.599548
63
442
4.095238
0.603175
0.081395
0.062016
0.093023
0
0
0
0
0
0
0
0.009231
0.264706
442
18
69
24.555556
0.784615
0.036199
0
0
1
0
0.155294
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3180842dc913eb345c4b99095b173657a9df890e
569
py
Python
dataset.py
sajidbsk/SimpleRegressor
4c72391de85e604ff0a7ba11456bf656bdfe9adb
[ "MIT" ]
null
null
null
dataset.py
sajidbsk/SimpleRegressor
4c72391de85e604ff0a7ba11456bf656bdfe9adb
[ "MIT" ]
null
null
null
dataset.py
sajidbsk/SimpleRegressor
4c72391de85e604ff0a7ba11456bf656bdfe9adb
[ "MIT" ]
null
null
null
import pandas as pd import linear-regressor as lr #Importing the dataset dataset = pd.read_csv('data.csv', header=None) a = dataset.values.tolist() correlation(a) #Prediction done here: def predictor(): flag = 1 print("What parameter do you want to predict? [x, y] ") while flag == 1: x = input() ...
21.884615
57
0.615114
87
569
3.988506
0.563218
0.028818
0.063401
0.092219
0.172911
0.172911
0
0
0
0
0
0.009238
0.239016
569
26
58
21.884615
0.792148
0.073814
0
0.190476
0
0
0.233533
0
0
0
0
0
0
0
null
null
0
0.095238
null
null
0.190476
0
0
0
null
0
0
0
0
0
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
3182bc4644255dc501ead6d24d57ca0d183136fc
18,370
py
Python
bbndb/auspex.py
BBN-Q/bbndb
ebc83ca7c6cc789d48bbcb5d6446ad7d8a4ff087
[ "Apache-2.0" ]
1
2021-05-22T15:35:39.000Z
2021-05-22T15:35:39.000Z
bbndb/auspex.py
BBN-Q/bbndb
ebc83ca7c6cc789d48bbcb5d6446ad7d8a4ff087
[ "Apache-2.0" ]
11
2019-02-27T16:59:28.000Z
2021-05-04T18:33:27.000Z
bbndb/auspex.py
BBN-Q/bbndb
ebc83ca7c6cc789d48bbcb5d6446ad7d8a4ff087
[ "Apache-2.0" ]
null
null
null
import numpy as np import os from copy import deepcopy import datetime import networkx as nx from sqlalchemy import Column, DateTime, String, Boolean, Float, Integer, LargeBinary, ForeignKey, func, JSON, PickleType from sqlalchemy.orm import relationship, backref, validates from sqlalchemy.ext.declarative import decla...
47.4677
202
0.659662
2,296
18,370
5.092334
0.186411
0.044903
0.039001
0.049264
0.507783
0.474855
0.410024
0.383082
0.356483
0.307304
0
0.007962
0.227436
18,370
386
203
47.590674
0.815882
0.12368
0
0.380952
0
0.013605
0.134779
0.029503
0
0
0
0.002591
0.02381
1
0.119048
false
0.003401
0.044218
0.034014
0.530612
0.003401
0
0
0
null
0
0
0
0
0
0
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
318af149003918e95f46db9a756c4de526fe0a7f
6,019
py
Python
stellarpop/zzmass_estimator.py
Annarien/GravitationalLensesResources
55d653f95bfd1e19c66a64079b5af39ea1e000a5
[ "MIT" ]
null
null
null
stellarpop/zzmass_estimator.py
Annarien/GravitationalLensesResources
55d653f95bfd1e19c66a64079b5af39ea1e000a5
[ "MIT" ]
null
null
null
stellarpop/zzmass_estimator.py
Annarien/GravitationalLensesResources
55d653f95bfd1e19c66a64079b5af39ea1e000a5
[ "MIT" ]
null
null
null
from stellarpop.estimator import Estimator class MassEstimator(Estimator): """ An object used to determine estimates of stellar masses. This inherits from the base class NestedSampler, although this functionality is not necessary for simple MCMC chains. """ def __init__(self,priors,dat...
32.360215
79
0.510052
766
6,019
3.968668
0.253264
0.035526
0.032566
0.023684
0.275658
0.263158
0.238487
0.196382
0.176645
0.126645
0
0.020993
0.351055
6,019
185
80
32.535135
0.757296
0.018275
0
0.271429
0
0
0.031244
0
0
0
0
0
0
0
null
null
0
0.05
null
null
0.035714
0
0
0
null
0
0
0
0
0
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
319aaded7c2d844135c6e0c69eaeb49dfae4b897
1,636
py
Python
todo_api/blueprints/auth.py
acuencadev/distributed-todo-api
99e5c613a256dd1f99d6fe093d940e3959a82a55
[ "MIT" ]
null
null
null
todo_api/blueprints/auth.py
acuencadev/distributed-todo-api
99e5c613a256dd1f99d6fe093d940e3959a82a55
[ "MIT" ]
null
null
null
todo_api/blueprints/auth.py
acuencadev/distributed-todo-api
99e5c613a256dd1f99d6fe093d940e3959a82a55
[ "MIT" ]
null
null
null
import jwt import datetime from flask import Blueprint, request, jsonify, make_response from todo_api.app import get_app import todo_api.services.user_service as user_service auth = Blueprint('auth', __name__) @auth.route('/auth', methods=['GET']) def login(): authorization = request.authorization if not...
28.206897
108
0.66687
198
1,636
5.318182
0.333333
0.045584
0.051282
0.065527
0.207977
0.207977
0.207977
0.207977
0.207977
0.207977
0
0.013846
0.205379
1,636
57
109
28.701754
0.796154
0
0
0.128205
0
0
0.169927
0
0
0
0
0
0
1
0.051282
false
0.076923
0.128205
0
0.333333
0.051282
0
0
0
null
0
0
0
0
0
0
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
319db817c1ed3d35de1c08cadea002bf0eac3b0d
4,155
py
Python
scipy/special/tests/test_wright_bessel.py
Ennosigaeon/scipy
2d872f7cf2098031b9be863ec25e366a550b229c
[ "BSD-3-Clause" ]
9,095
2015-01-02T18:24:23.000Z
2022-03-31T20:35:31.000Z
scipy/special/tests/test_wright_bessel.py
Ennosigaeon/scipy
2d872f7cf2098031b9be863ec25e366a550b229c
[ "BSD-3-Clause" ]
11,500
2015-01-01T01:15:30.000Z
2022-03-31T23:07:35.000Z
scipy/special/tests/test_wright_bessel.py
Ennosigaeon/scipy
2d872f7cf2098031b9be863ec25e366a550b229c
[ "BSD-3-Clause" ]
5,838
2015-01-05T11:56:42.000Z
2022-03-31T23:21:19.000Z
# Reference MPMATH implementation: # # import mpmath # from mpmath import nsum # # def Wright_Series_MPMATH(a, b, z, dps=50, method='r+s+e', steps=[1000]): # """Compute Wright' generalized Bessel function as Series. # # This uses mpmath for arbitrary precision. # """ # with mpmath.workdps(dps): # res...
35.818966
78
0.604573
719
4,155
3.414465
0.258693
0.018737
0.017108
0.039919
0.291242
0.239919
0.184929
0.162933
0.162933
0.133605
0
0.210282
0.222864
4,155
115
79
36.130435
0.550015
0.329242
0
0.105263
0
0
0.015253
0
0
0
0
0
0.122807
1
0.087719
false
0
0.087719
0
0.175439
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
31a00b2a49b8956065d37c9338e35982a5a11598
1,591
py
Python
python-52-weeks/m06_classes/devices_app.py
erictapia/devstacklab
2997a620c3f4d29c3a526d561ec0cfb4ba0cd6b4
[ "MIT" ]
null
null
null
python-52-weeks/m06_classes/devices_app.py
erictapia/devstacklab
2997a620c3f4d29c3a526d561ec0cfb4ba0cd6b4
[ "MIT" ]
null
null
null
python-52-weeks/m06_classes/devices_app.py
erictapia/devstacklab
2997a620c3f4d29c3a526d561ec0cfb4ba0cd6b4
[ "MIT" ]
null
null
null
from pprint import pprint from device import Device from misc_types import DeviceType, TransportType def create_devices(): created_devices = dict() created_devices["nxos-netmiko"] = Device( name="nxos-netmiko", hostname="sbx-nxos-mgmt.cisco.com", device_type=DeviceType.CISCO_NXOS, ...
30.596154
94
0.668762
178
1,591
5.769663
0.286517
0.149951
0.157741
0.073028
0.471276
0.357352
0.300876
0.258033
0.258033
0.12074
0
0.019639
0.199874
1,591
51
95
31.196078
0.787117
0
0
0.075
0
0
0.216216
0.043369
0
0
0
0
0
1
0.025
false
0.075
0.075
0
0.125
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
31a6da136d7fd4bdd7763b00bc0e4b1035c7ae90
7,419
py
Python
emonitor/modules/alarmkeys/alarmkey.py
Durburz/eMonitor
56f3b1fe39b9da3a12b49bdd60d0cfca51c23351
[ "BSD-3-Clause" ]
21
2015-03-04T11:36:47.000Z
2021-04-20T07:51:53.000Z
emonitor/modules/alarmkeys/alarmkey.py
Durburz/eMonitor
56f3b1fe39b9da3a12b49bdd60d0cfca51c23351
[ "BSD-3-Clause" ]
79
2015-01-04T21:35:49.000Z
2020-03-05T07:22:10.000Z
emonitor/modules/alarmkeys/alarmkey.py
Durburz/eMonitor
56f3b1fe39b9da3a12b49bdd60d0cfca51c23351
[ "BSD-3-Clause" ]
27
2015-03-04T11:36:48.000Z
2021-09-20T08:15:17.000Z
from sqlalchemy.orm.collections import attribute_mapped_collection from emonitor.extensions import db from emonitor.modules.alarmkeys.alarmkeycar import AlarmkeyCars from emonitor.modules.alarmkeys.alarmkeyset import AlarmkeySet class Alarmkey(db.Model): """Alarmkey class""" __tablename__ = 'alarmkeys' __...
38.046154
124
0.636339
840
7,419
5.557143
0.157143
0.044987
0.03856
0.056555
0.458226
0.415596
0.362254
0.302271
0.216795
0.192802
0
0.010369
0.259065
7,419
194
125
38.242268
0.838821
0.327807
0
0.141304
0
0
0.029723
0
0
0
0
0
0
1
0.152174
false
0
0.043478
0
0.543478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
31b8e3514e71965ea513387dea79b5b116bc6f6e
729
py
Python
creator/files/migrations/0023_add_document_types.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
3
2019-05-04T02:07:28.000Z
2020-10-16T17:47:44.000Z
creator/files/migrations/0023_add_document_types.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
604
2019-02-21T18:14:51.000Z
2022-02-10T08:13:54.000Z
creator/files/migrations/0023_add_document_types.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.20 on 2021-05-04 14:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('files', '0022_add_genomic_workflow_output_type'), ] operations = [ migrations.AlterField( model_name='file', name='...
34.714286
173
0.497942
82
729
4.329268
0.670732
0.04507
0
0
0
0
0
0
0
0
0
0.041818
0.245542
729
20
174
36.45
0.603636
0.0631
0
0
1
0
0.234949
0.054332
0
0
0
0
0
1
0
false
0
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
31cb65d9445bf37474bdc1b60e6d1805d33b210f
13,199
py
Python
src/ecdsa/ecdsa.py
lochotzke/python-ecdsa
cbad6e573975313a79f877e008f38458cba84dcd
[ "MIT" ]
null
null
null
src/ecdsa/ecdsa.py
lochotzke/python-ecdsa
cbad6e573975313a79f877e008f38458cba84dcd
[ "MIT" ]
null
null
null
src/ecdsa/ecdsa.py
lochotzke/python-ecdsa
cbad6e573975313a79f877e008f38458cba84dcd
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ Implementation of Elliptic-Curve Digital Signatures. Classes and methods for elliptic-curve signatures: private keys, public keys, signatures, NIST prime-modulus curves with modulus lengths of 192, 224, 256, 384, and 521 bits. Example: # (In real-life applications, you would probably wa...
38.593567
162
0.786044
1,283
13,199
7.941543
0.265004
0.01325
0.027088
0.010796
0.076651
0.064383
0.0159
0.007066
0.007066
0
0
0.326831
0.145541
13,199
341
163
38.706745
0.576609
0.303962
0
0.071429
0
0
0.018778
0
0
0
0.375333
0
0.005952
1
0.059524
false
0.005952
0.02381
0
0.184524
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
31cc74b3ced36afa2e3a923e75f893ef85b0330d
1,616
py
Python
project_2/src/metrics/__init__.py
tillaczel/Deep-Learning-in-Computer-Vision
792e90a3ad5bafdb30e0267226c2c75b8afd01e3
[ "MIT" ]
null
null
null
project_2/src/metrics/__init__.py
tillaczel/Deep-Learning-in-Computer-Vision
792e90a3ad5bafdb30e0267226c2c75b8afd01e3
[ "MIT" ]
null
null
null
project_2/src/metrics/__init__.py
tillaczel/Deep-Learning-in-Computer-Vision
792e90a3ad5bafdb30e0267226c2c75b8afd01e3
[ "MIT" ]
1
2021-06-08T09:28:01.000Z
2021-06-08T09:28:01.000Z
import torchmetrics import pytorch_lightning as pl from collections import Iterable from project_2.src.metrics.accuracy import Accuracy from project_2.src.metrics.dice import Dice from project_2.src.metrics.iou import IoU from project_2.src.metrics.precision import Precision from project_2.src.metrics.sensitivity impo...
35.130435
102
0.709777
193
1,616
5.756477
0.26943
0.108011
0.136814
0.081008
0.387039
0
0
0
0
0
0
0.004552
0.184406
1,616
45
103
35.911111
0.838392
0.017946
0
0
0
0
0.061908
0
0
0
0
0.022222
0
1
0.060606
false
0
0.272727
0
0.393939
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
31d32a878413219108817c8c9fc3f88f60a1102e
6,954
gyp
Python
nodejs/node_modules/speaker/deps/mpg123/mpg123.gyp
qcuong98/KT-AI-Hackathon
f63f318a88ca856017ebb7bc1186b29c54a9c0ec
[ "MIT" ]
1
2019-08-19T22:01:38.000Z
2019-08-19T22:01:38.000Z
nodejs/node_modules/speaker/deps/mpg123/mpg123.gyp
qcuong98/KT-AI-Hackathon
f63f318a88ca856017ebb7bc1186b29c54a9c0ec
[ "MIT" ]
null
null
null
nodejs/node_modules/speaker/deps/mpg123/mpg123.gyp
qcuong98/KT-AI-Hackathon
f63f318a88ca856017ebb7bc1186b29c54a9c0ec
[ "MIT" ]
null
null
null
# This file is used with the GYP meta build system. # http://code.google.com/p/gyp # To build try this: # svn co http://gyp.googlecode.com/svn/trunk gyp # ./gyp/gyp -f make --depth=. mpg123.gyp # make # ./out/Debug/test { 'variables': { 'target_arch%': 'ia32', }, 'target_defaults': { 'default_con...
27.164063
83
0.455853
598
6,954
5.091973
0.277592
0.157635
0.106732
0.035468
0.302135
0.288998
0.262726
0.218719
0.218719
0.160263
0
0.070535
0.36799
6,954
255
84
27.270588
0.622298
0.087719
0
0.442553
0
0
0.468859
0.205659
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
31def5990dbf9b25d722acb69151fe517d47e28e
474
py
Python
run_budget.py
jgabes/mortgage_tool
da821f68eacc1cd96812d29de2b096fa49dcd4bc
[ "MIT" ]
null
null
null
run_budget.py
jgabes/mortgage_tool
da821f68eacc1cd96812d29de2b096fa49dcd4bc
[ "MIT" ]
null
null
null
run_budget.py
jgabes/mortgage_tool
da821f68eacc1cd96812d29de2b096fa49dcd4bc
[ "MIT" ]
null
null
null
__author__ = "James Gabriel <JamesCGabriel@gmail.com>" import budget import start_numbers import dates import plotter import cash_flow present_day = dates.Date(1, "January", 2019) my_budget = budget.Budget(0, "<NAME> budget", present_day) for income in start_numbers.INCOMES: my_budget.register_income(cash_flow....
22.571429
58
0.793249
69
474
5.173913
0.478261
0.112045
0.078431
0
0
0
0
0
0
0
0
0.016588
0.109705
474
20
59
23.7
0.829384
0
0
0
0
0
0.124473
0.052743
0
0
0
0
0
1
0
false
0
0.357143
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
31e51ff90f9ecc3252c2a7798b041a19f1ca197f
2,875
py
Python
docs/example-event.py
Han-Lon/lambda-http-redirects-demo
70164f65d1bd9df6f5d38a29963a50fd190a8936
[ "MIT" ]
1
2021-12-07T05:07:45.000Z
2021-12-07T05:07:45.000Z
docs/example-event.py
Han-Lon/lambda-http-redirects-demo
70164f65d1bd9df6f5d38a29963a50fd190a8936
[ "MIT" ]
null
null
null
docs/example-event.py
Han-Lon/lambda-http-redirects-demo
70164f65d1bd9df6f5d38a29963a50fd190a8936
[ "MIT" ]
1
2022-03-24T17:43:28.000Z
2022-03-24T17:43:28.000Z
example_event = { 'version': '1.0', 'resource': '/redirect/{proxy+}', 'path': '/default/redirect/google', 'httpMethod': 'GET', 'headers': { 'Content-Length': '0', 'Host': 'an_api_id.execute-api.aws_region.amazonaws.com', 'User-Agent': 'a_user_agent', 'X-Amzn-Trace-Id': 'an_amzn_trace_id', 'X-Forwarded-Fo...
33.823529
152
0.638261
370
2,875
4.862162
0.351351
0.008894
0.010006
0.023346
0.57254
0.57254
0.57254
0.57254
0.57254
0.551417
0
0.031188
0.118957
2,875
85
153
33.823529
0.679037
0
0
0.047059
0
0.047059
0.692281
0.220097
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
31e9853da2150a4ab9ea715fb579586d65dcfadf
781
py
Python
screenpy_selenium/actions/accept_alert.py
bandophahita/screenpy_selenium
5e3f2f4f2cc1ff2d68d5995db28c89f6a28ad64b
[ "MIT" ]
1
2022-02-23T18:40:46.000Z
2022-02-23T18:40:46.000Z
screenpy_selenium/actions/accept_alert.py
bandophahita/screenpy_selenium
5e3f2f4f2cc1ff2d68d5995db28c89f6a28ad64b
[ "MIT" ]
3
2022-02-02T18:26:08.000Z
2022-03-31T16:13:37.000Z
screenpy_selenium/actions/accept_alert.py
bandophahita/screenpy_selenium
5e3f2f4f2cc1ff2d68d5995db28c89f6a28ad64b
[ "MIT" ]
1
2022-03-22T20:18:43.000Z
2022-03-22T20:18:43.000Z
""" Accept a javascript alert. """ from screenpy.actor import Actor from screenpy.pacing import aside, beat from ..abilities import BrowseTheWeb class AcceptAlert: """Accept an alert! Abilities Required: :class:`~screenpy_selenium.abilities.BrowseTheWeb` Examples:: the_actor.attempts_...
23.666667
60
0.645327
91
781
5.450549
0.461538
0.064516
0.056452
0
0
0
0
0
0
0
0
0
0.233035
781
32
61
24.40625
0.828047
0.318822
0
0
0
0
0.145492
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
31eda6faec7b69426ed1d9dd23148df8742d524f
1,385
py
Python
encoding.py
Bhargavasomu/Secure_Client_Server_File_Sharing
f9fc4e8479dce5e905cf69a4c01f0614e70a21c0
[ "MIT" ]
null
null
null
encoding.py
Bhargavasomu/Secure_Client_Server_File_Sharing
f9fc4e8479dce5e905cf69a4c01f0614e70a21c0
[ "MIT" ]
null
null
null
encoding.py
Bhargavasomu/Secure_Client_Server_File_Sharing
f9fc4e8479dce5e905cf69a4c01f0614e70a21c0
[ "MIT" ]
null
null
null
def normalize_single_digits(num): s = str(num) if len(s) == 1: return "0" + s return s def encode_character_to_number(char): assert len(char) == 1 if char.isalpha(): if char.isupper(): encoding = ord(char) - 64 else: encoding = ord(char) - 57 eli...
25.648148
73
0.554513
172
1,385
4.319767
0.284884
0.201884
0.113055
0.107672
0
0
0
0
0
0
0
0.048128
0.32491
1,385
53
74
26.132075
0.746524
0
0
0.0625
0
0
0.055596
0
0
0
0
0
0.041667
1
0.0625
false
0
0
0
0.291667
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
9ec538bdfdaaeed8c0dfbc8fb0ba3a2a50a716a7
198
py
Python
TorPool/__init__.py
SUN-PEI-YUAN/TorPool
6e77e3b4c0b1e370e6b9417e94dc358b1d25f365
[ "MIT" ]
1
2022-01-29T22:24:07.000Z
2022-01-29T22:24:07.000Z
TorPool/__init__.py
SUN-PEI-YUAN/TorPool
6e77e3b4c0b1e370e6b9417e94dc358b1d25f365
[ "MIT" ]
null
null
null
TorPool/__init__.py
SUN-PEI-YUAN/TorPool
6e77e3b4c0b1e370e6b9417e94dc358b1d25f365
[ "MIT" ]
null
null
null
# coding: utf-8 name = "ToorPool" import os _TOR_EXE = os.path.abspath( os.path.join(os.path.dirname(__file__), 'TorPool/tor-win32-0.3.5.8/Tor/tor.exe', ) ) from .tor_method import TorMethod
19.8
86
0.70202
34
198
3.882353
0.647059
0.136364
0
0
0
0
0
0
0
0
0
0.040698
0.131313
198
10
87
19.8
0.726744
0.065657
0
0
0
0
0.244565
0.201087
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9ed19be032cf58bc4607d7949f0bc5d5f08cf239
560
py
Python
datasets/setting/NWPU.py
gjy3035/NWPU-Crowd-Sample-Code-for-Localization
acf445682bb0ece22b37bdabcecfb8ac3fa08791
[ "MIT" ]
26
2020-05-15T03:59:04.000Z
2022-01-23T13:05:30.000Z
datasets/setting/NWPU.py
gjy3035/NWPU-Crowd-Sample-Code-for-Localization
acf445682bb0ece22b37bdabcecfb8ac3fa08791
[ "MIT" ]
4
2020-07-31T14:20:04.000Z
2022-01-18T03:30:24.000Z
datasets/setting/NWPU.py
gjy3035/NWPU-Crowd-Sample-Code-for-Localization
acf445682bb0ece22b37bdabcecfb8ac3fa08791
[ "MIT" ]
8
2020-08-05T03:52:56.000Z
2022-03-12T10:10:41.000Z
from easydict import EasyDict as edict # init __C_NWPU = edict() cfg_data = __C_NWPU __C_NWPU.TRAIN_SIZE = (576,768) __C_NWPU.DATA_PATH = '../ProcessedData/Data.2019.11/NWPU/min_'+ str(__C_NWPU.TRAIN_SIZE[0]) + 'x' + str(__C_NWPU.TRAIN_SIZE[1]) + '_mod16_1024' __C_NWPU.MEAN_STD = ([0.446139603853, 0.40951567888...
22.4
146
0.739286
93
560
3.892473
0.483871
0.165746
0.110497
0.116022
0.093923
0
0
0
0
0
0
0.210634
0.126786
560
24
147
23.333333
0.529652
0.05
0
0
0
0
0.097514
0.07457
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9ed4004596f156c049e789a78b6d553b3ed10e12
1,077
py
Python
TreeModelLib/TreeModel.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
null
null
null
TreeModelLib/TreeModel.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
null
null
null
TreeModelLib/TreeModel.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @date: 2018-Today @author: jasper.bathmann@ufz.de """ class TreeModel: def prepareNextTimeStep(self, t_ini, t_end): try: self.concept.prepareNextTimeStep(t_ini, t_end) except AttributeError: self.raiseAttributeError("prepar...
32.636364
79
0.600743
95
1,077
6.726316
0.505263
0.032864
0.065728
0.201878
0.137715
0
0
0
0
0
0
0.007916
0.296193
1,077
32
80
33.65625
0.835092
0.086351
0
0.285714
0
0
0.089231
0
0
0
0
0
0
1
0.190476
false
0
0
0
0.238095
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