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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc02df874faed8e17078e5eb54095d31c7a4ea7d | 2,293 | py | Python | bookclubs/meeting_link.py | hihi-itsann/SEG_Major_Group | bec3d333da59361fd3036f20bb4d7aa82bc3fa5e | [
"MIT"
] | 6 | 2022-02-05T23:03:59.000Z | 2022-02-08T03:08:58.000Z | bookclubs/meeting_link.py | hihi-itsann/SEG_Major_Group | bec3d333da59361fd3036f20bb4d7aa82bc3fa5e | [
"MIT"
] | 2 | 2022-03-13T04:18:25.000Z | 2022-03-16T20:49:53.000Z | bookclubs/meeting_link.py | hihi-itsann/SEG_Major_Group | bec3d333da59361fd3036f20bb4d7aa82bc3fa5e | [
"MIT"
] | null | null | null | import datetime
import time
import jwt
import requests
from faker import Faker
# create a function to generate a token using the pyjwt library
def generateToken():
token = jwt.encode(
# Create a payload of the token containing API Key & expiration time
{"iss": "Z8KPddIlSg-N9LTbgh5jnQ", "exp": time... | 31.410959 | 94 | 0.649368 | 267 | 2,293 | 5.456929 | 0.35206 | 0.057653 | 0.030199 | 0.041181 | 0.395333 | 0.395333 | 0.382292 | 0.382292 | 0.382292 | 0.382292 | 0 | 0.022334 | 0.218927 | 2,293 | 72 | 95 | 31.847222 | 0.791178 | 0.093764 | 0 | 0.340426 | 1 | 0 | 0.262066 | 0.067085 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0.021277 | 0.106383 | 0.042553 | 0.276596 | 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 |
cc03908e2a3dcaafe890657b7d0214bc8a07590a | 362 | py | Python | rllib/algorithms/appo/__init__.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | null | null | null | rllib/algorithms/appo/__init__.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | 41 | 2021-09-21T01:13:48.000Z | 2022-03-19T07:12:22.000Z | rllib/algorithms/appo/__init__.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | null | null | null | from ray.rllib.algorithms.appo.appo import APPO, APPOConfig, DEFAULT_CONFIG
from ray.rllib.algorithms.appo.appo_tf_policy import APPOTF1Policy, APPOTF2Policy
from ray.rllib.algorithms.appo.appo_torch_policy import APPOTorchPolicy
__all__ = [
"APPO",
"APPOConfig",
"APPOTF1Policy",
"APPOTF2Policy",
"... | 27.846154 | 81 | 0.762431 | 40 | 362 | 6.65 | 0.4 | 0.078947 | 0.135338 | 0.24812 | 0.338346 | 0.338346 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.138122 | 362 | 12 | 82 | 30.166667 | 0.839744 | 0 | 0 | 0 | 0 | 0 | 0.190608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 |
cc0e1b87823d84a1a9e6556fa062bd03ae13d615 | 1,748 | py | Python | DPopt.py | mikiec84/Python-DP-Means-Clustering | 09fd4c48dbc7fabacef884d2cabe0ec357e8e7c9 | [
"BSD-2-Clause"
] | 31 | 2015-02-16T22:54:51.000Z | 2021-01-12T01:50:20.000Z | DPopt.py | mikiec84/Python-DP-Means-Clustering | 09fd4c48dbc7fabacef884d2cabe0ec357e8e7c9 | [
"BSD-2-Clause"
] | null | null | null | DPopt.py | mikiec84/Python-DP-Means-Clustering | 09fd4c48dbc7fabacef884d2cabe0ec357e8e7c9 | [
"BSD-2-Clause"
] | 14 | 2015-04-22T02:10:18.000Z | 2019-08-22T22:55:20.000Z | #!/usr/bin/env python
import cluster
import sys
import csv
import math
import random
import scipy.optimize
# function to minimize
def g(l, returnObject=False):
minError = sys.maxint
for i in range(0,iters):
k1 = cluster.dpmeans(res, l, xVal)
err, xerr = k1.run()
... | 26.089552 | 96 | 0.6373 | 278 | 1,748 | 3.996403 | 0.438849 | 0.018002 | 0.027003 | 0.035104 | 0.171917 | 0.094509 | 0.072907 | 0.054005 | 0 | 0 | 0 | 0.023238 | 0.236842 | 1,748 | 66 | 97 | 26.484848 | 0.809595 | 0.169336 | 0 | 0.075472 | 0 | 0 | 0.058987 | 0.031228 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.113208 | null | null | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc1571daecc362c8460bdba94758169bd1e95bb8 | 347 | py | Python | BOJ_Solved/BOJ-11279.py | CodingLeeSeungHoon/Python_Algorithm_TeamNote | 1e92986999b45aa9951e12e67b23062e410e9b36 | [
"MIT"
] | 7 | 2021-11-19T14:50:59.000Z | 2022-02-25T20:00:20.000Z | BOJ_Solved/BOJ-11279.py | CodingLeeSeungHoon/Python_Algorithm_TeamNote | 1e92986999b45aa9951e12e67b23062e410e9b36 | [
"MIT"
] | null | null | null | BOJ_Solved/BOJ-11279.py | CodingLeeSeungHoon/Python_Algorithm_TeamNote | 1e92986999b45aa9951e12e67b23062e410e9b36 | [
"MIT"
] | null | null | null | # coding=utf-8
"""
백준 11279번 : 최대 힙
"""
import heapq
import sys
N = int(sys.stdin.readline())
heap = []
for _ in range(N):
num = int(sys.stdin.readline())
if num == 0:
if len(heap) != 0:
print(heapq.heappop(heap)[1])
else:
print(0)
else:
heapq.heappush(heap,... | 16.52381 | 53 | 0.524496 | 49 | 347 | 3.673469 | 0.571429 | 0.066667 | 0.122222 | 0.211111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.308357 | 347 | 20 | 54 | 17.35 | 0.708333 | 0.112392 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.153846 | 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 |
cc274865f2a0f6c5e457b87cfe67beb2ea23058f | 502 | py | Python | contatos/views.py | LuanFaria/Agenda | 0a7d3d46761a44537819a593c1e280984b7df444 | [
"MIT"
] | 1 | 2021-08-07T16:36:21.000Z | 2021-08-07T16:36:21.000Z | contatos/views.py | LuanFaria/Agenda | 0a7d3d46761a44537819a593c1e280984b7df444 | [
"MIT"
] | null | null | null | contatos/views.py | LuanFaria/Agenda | 0a7d3d46761a44537819a593c1e280984b7df444 | [
"MIT"
] | null | null | null | from django.shortcuts import render, get_object_or_404
from .models import Contato
from django.http import Http404
def index(request):
contatos = Contato.objects.all()
return render(request, 'contatos/index.html', {
'contatos': contatos
})
def ver_contato(request, contato_id):
#contato = Co... | 25.1 | 57 | 0.711155 | 64 | 502 | 5.40625 | 0.359375 | 0.104046 | 0.138728 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021898 | 0.181275 | 502 | 19 | 58 | 26.421053 | 0.819951 | 0.087649 | 0 | 0.153846 | 0 | 0 | 0.131291 | 0.054705 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cc29bd1dd1a8b70d983d3db97c45bd5d6a940d1f | 1,343 | py | Python | servomoteur_api/script/servo.py | stimulee/rpi_samples | 9017f656278844b90600b6fb94286c3e0e5bae19 | [
"Apache-2.0"
] | null | null | null | servomoteur_api/script/servo.py | stimulee/rpi_samples | 9017f656278844b90600b6fb94286c3e0e5bae19 | [
"Apache-2.0"
] | null | null | null | servomoteur_api/script/servo.py | stimulee/rpi_samples | 9017f656278844b90600b6fb94286c3e0e5bae19 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import RPi.GPIO as GPIO
import time,sys,getopt
# Servo Control
GPIO.cleanup()
GPIO.setmode(GPIO.BCM)
GPIO.setup(5, GPIO.OUT)
p = GPIO.PWM(5,50)
p.start(7.5)
#GPIO.setup(11, GPIO.OUT)
#p1 = GPIO.PWM(11,50)
#p1.start(7.5)
#Gestion des parametres en entree
statu="neutre"
mode = 0
try:
opts,args ... | 16.7875 | 48 | 0.655249 | 215 | 1,343 | 4.055814 | 0.390698 | 0.013761 | 0.09633 | 0.086009 | 0.254587 | 0.254587 | 0.254587 | 0.146789 | 0.146789 | 0.146789 | 0 | 0.0553 | 0.192107 | 1,343 | 79 | 49 | 17 | 0.748387 | 0.262844 | 0 | 0.173913 | 0 | 0 | 0.150206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.195652 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cc2e1e8883b738f9fbc9cd0460438ad7319169a3 | 3,358 | py | Python | yapu/meta/meta.py | pestrela/yapu | 27acb067b89ef0eeaa3da2234141abf9d811e0ae | [
"MIT"
] | null | null | null | yapu/meta/meta.py | pestrela/yapu | 27acb067b89ef0eeaa3da2234141abf9d811e0ae | [
"MIT"
] | null | null | null | yapu/meta/meta.py | pestrela/yapu | 27acb067b89ef0eeaa3da2234141abf9d811e0ae | [
"MIT"
] | null | null | null |
from ..imports.internal import *
from ..meta.listify import *
###
### very generic wrappers go here
###
def percentage(a,b=None, digits=1):
if b is None:
b=1.0
ret = (float(a) * 100.0) / float(b)
return ret
def st_percent(a, b=None, digits=1):
"""
form1: a= 0..1
form2: a=0... | 21.388535 | 97 | 0.562239 | 502 | 3,358 | 3.7251 | 0.332669 | 0.008556 | 0.016043 | 0.020856 | 0.08984 | 0.065775 | 0.057754 | 0 | 0 | 0 | 0 | 0.027397 | 0.304348 | 3,358 | 157 | 98 | 21.388535 | 0.773116 | 0.433591 | 0 | 0.225806 | 0 | 0 | 0.015446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209677 | false | 0 | 0.032258 | 0.048387 | 0.33871 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0bc768bb89ba62c5f818ab01aeb73a8bbc2cd477 | 2,238 | py | Python | plotter.py | Anny-Moon/PlotterPyPCA | fff75196ab23321f30ed2555a0869fe23818646f | [
"Apache-2.0"
] | null | null | null | plotter.py | Anny-Moon/PlotterPyPCA | fff75196ab23321f30ed2555a0869fe23818646f | [
"Apache-2.0"
] | null | null | null | plotter.py | Anny-Moon/PlotterPyPCA | fff75196ab23321f30ed2555a0869fe23818646f | [
"Apache-2.0"
] | null | null | null | """
Run me like this:
python ./plotter.py <path/pcaFile> <"show" or the name of the file to save> <configurations>
python ./movieMaker.py data/1abs 1abs.pdf 30 44 58
If you pass only the first argument then I will
plot the 0-th configuration.
"""
#============ parameters ===============
# Plot
dotSize = None; #if ... | 28.692308 | 93 | 0.691689 | 298 | 2,238 | 5.174497 | 0.389262 | 0.049935 | 0.032425 | 0.027237 | 0.450065 | 0.450065 | 0.450065 | 0.416342 | 0.374838 | 0.374838 | 0 | 0.022704 | 0.134048 | 2,238 | 78 | 94 | 28.692308 | 0.772962 | 0.170688 | 0 | 0.297872 | 0 | 0 | 0.032684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106383 | null | null | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0bcb074cbebc2453a585aa9a56849b1915ac4857 | 31,724 | py | Python | 2017/395T-greg/HW3/hw3-release/models.py | xxks-kkk/Code-for-blog | 3d5ae181f2b6c986f3dc1977d190847757d30834 | [
"MIT"
] | 8 | 2018-10-04T08:20:03.000Z | 2021-09-11T23:43:59.000Z | 2017/395T-greg/HW3/hw3-release/models.py | xxks-kkk/Code-for-blog | 3d5ae181f2b6c986f3dc1977d190847757d30834 | [
"MIT"
] | 1 | 2017-10-22T20:10:50.000Z | 2017-10-22T20:10:50.000Z | 2017/395T-greg/HW3/hw3-release/models.py | xxks-kkk/Code-for-blog | 3d5ae181f2b6c986f3dc1977d190847757d30834 | [
"MIT"
] | 10 | 2017-12-26T09:02:45.000Z | 2022-02-24T05:17:27.000Z | # models.py
import tensorflow as tf
import numpy as np
import random
import datetime
from sentiment_data import *
import os
# We suppress the warning messages raised by the tensorflow
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
# Returns a new numpy array with the data from np_arr padded to be of length length. If leng... | 47.491018 | 152 | 0.622841 | 4,376 | 31,724 | 4.305073 | 0.131399 | 0.021498 | 0.007803 | 0.008758 | 0.491162 | 0.438771 | 0.409629 | 0.386698 | 0.347577 | 0.327034 | 0 | 0.01491 | 0.276983 | 31,724 | 668 | 153 | 47.491018 | 0.806426 | 0.225697 | 0 | 0.268182 | 0 | 0 | 0.033901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013636 | null | null | 0.061364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0bd04fa0573c5e82bad1ed9836f9d18f94111e5d | 2,119 | py | Python | tracehess.py | BrettLeroux/GRIPS-MCMC | 154457acfc47977e25870aed76c7dc49d70608af | [
"MIT"
] | null | null | null | tracehess.py | BrettLeroux/GRIPS-MCMC | 154457acfc47977e25870aed76c7dc49d70608af | [
"MIT"
] | null | null | null | tracehess.py | BrettLeroux/GRIPS-MCMC | 154457acfc47977e25870aed76c7dc49d70608af | [
"MIT"
] | 1 | 2020-07-08T07:39:23.000Z | 2020-07-08T07:39:23.000Z | import numpy as np
<<<<<<< HEAD
#Gradient Function
x = np.array([[1],[2]])
def the_func(y):
return (y[0]**2+y[1]**2)
=======
import math
#Gradient Function
x= np.array([[2],[2],[2]])
def f(x):
return x[0]**2*x[1]**2*x[2]**2
>>>>>>> master
def gradient_f(x, f):
assert (x.shape[0] >= x.shape[1]), "th... | 24.356322 | 76 | 0.540349 | 368 | 2,119 | 3.019022 | 0.171196 | 0.030603 | 0.040504 | 0.048605 | 0.617462 | 0.544554 | 0.530153 | 0.513051 | 0.469847 | 0.444644 | 0 | 0.047352 | 0.242567 | 2,119 | 86 | 77 | 24.639535 | 0.64486 | 0 | 0 | 0.416667 | 0 | 0 | 0.029103 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0 | null | null | 0 | 0.041667 | 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 |
0be0736592b98328e93dd97259f238e565739777 | 2,918 | py | Python | pywizlight/bulblibrary.py | UH-60/pywizlight | a669305ceff8163ee93ee96171a9f980c73944d9 | [
"MIT"
] | 221 | 2020-02-20T00:04:52.000Z | 2022-03-31T22:36:10.000Z | pywizlight/bulblibrary.py | UH-60/pywizlight | a669305ceff8163ee93ee96171a9f980c73944d9 | [
"MIT"
] | 93 | 2020-03-13T16:29:40.000Z | 2022-03-15T01:43:24.000Z | pywizlight/bulblibrary.py | UH-60/pywizlight | a669305ceff8163ee93ee96171a9f980c73944d9 | [
"MIT"
] | 54 | 2020-02-24T07:40:16.000Z | 2022-03-12T17:07:04.000Z | """Library with compatible bulb types.
Bulb Type detection:
ESP01_SHDW1C_31
ESP01 -- defines the module family (WiFi only bulb in this case)
SH -- Single Head light (most bulbs are single heads) / LED Strip
TW -- Tunable White - can only control CCT and dimming; no color
DW -- Dimmable White (most filament bulbs)
RGB ... | 29.18 | 91 | 0.669294 | 360 | 2,918 | 5.327778 | 0.358333 | 0.033368 | 0.035454 | 0.046924 | 0.140772 | 0.047967 | 0.047967 | 0 | 0 | 0 | 0 | 0.005005 | 0.246744 | 2,918 | 99 | 92 | 29.474747 | 0.867607 | 0.310144 | 0 | 0.092593 | 0 | 0 | 0.045189 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.018519 | false | 0 | 0.074074 | 0 | 0.425926 | 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 |
0be2da741345c24e2410f9b0ea04422f24cfc826 | 280 | py | Python | bugtests/test019.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test019.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test019.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | """
Check strange indexes/slices.
"""
import support
bits = ['1','1','0','0']
try:
bits[2:1] = '2'
except TypeError:
pass
else:
pass
# BW says this will be allowed in python1.6
#raise support.TestError("Assignment to slice should fail, but didn't " + `bits`)
| 14 | 84 | 0.628571 | 42 | 280 | 4.190476 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040909 | 0.214286 | 280 | 19 | 85 | 14.736842 | 0.759091 | 0.542857 | 0 | 0.25 | 0 | 0 | 0.043103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.125 | 0 | 0.125 | 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 |
0be431e90e0f6ecbd1b887f6d9cdd21992ea240a | 502 | py | Python | tangerine/migrations/0017_config_show_future.py | shacker/tangerine | 0c52d61d7cbbb856c09790b941b75fb761cb7505 | [
"BSD-2-Clause"
] | 1 | 2018-03-29T05:16:40.000Z | 2018-03-29T05:16:40.000Z | tangerine/migrations/0017_config_show_future.py | shacker/tangerine | 0c52d61d7cbbb856c09790b941b75fb761cb7505 | [
"BSD-2-Clause"
] | null | null | null | tangerine/migrations/0017_config_show_future.py | shacker/tangerine | 0c52d61d7cbbb856c09790b941b75fb761cb7505 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.0 on 2018-01-06 08:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tangerine', '0016_auto_20180104_2324'),
]
operations = [
migrations.AddField(
model_name='config',
name='show_future',... | 26.421053 | 163 | 0.645418 | 58 | 502 | 5.482759 | 0.844828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079576 | 0.249004 | 502 | 18 | 164 | 27.888889 | 0.763926 | 0.085657 | 0 | 0 | 1 | 0 | 0.317287 | 0.050328 | 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 |
0beb1918778da3d45bce0287c8cbef43e6de27e1 | 3,494 | py | Python | ros/src/tl_detector/light_classification/tl_classifier.py | nuaayxy/CarND-Capstone | 20ec273cbc4ec7406da721b9aaea0fa358fea32e | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/tl_classifier.py | nuaayxy/CarND-Capstone | 20ec273cbc4ec7406da721b9aaea0fa358fea32e | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/tl_classifier.py | nuaayxy/CarND-Capstone | 20ec273cbc4ec7406da721b9aaea0fa358fea32e | [
"MIT"
] | null | null | null |
import tensorflow as tf
import numpy as np
from PIL import Image
from PIL import ImageDraw
from PIL import ImageColor
import cv2
import time
from styx_msgs.msg import TrafficLight
class TLClassifier(object):
def __init__(self):
self.current_light = TrafficLight.UNKNOWN
SSD_GRAPH_FILE = '.... | 38.395604 | 119 | 0.610189 | 417 | 3,494 | 4.920863 | 0.328537 | 0.076023 | 0.052632 | 0.03655 | 0.153021 | 0.077485 | 0.077485 | 0.061404 | 0 | 0 | 0 | 0.007525 | 0.315398 | 3,494 | 91 | 120 | 38.395604 | 0.850334 | 0.26245 | 0 | 0 | 0 | 0 | 0.041451 | 0.010761 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bec97a19bbf0b9e6384f6b906bfcdcef3b8c682 | 394 | py | Python | mysql_test/settings.py | AlbertCQY/AIOps | c5ee7276d99d9de722cfab60f55845a62fb807fe | [
"Apache-2.0"
] | 3 | 2020-10-14T05:05:47.000Z | 2020-11-24T07:23:23.000Z | mysql_test/settings.py | AlbertCQY/AIOps | c5ee7276d99d9de722cfab60f55845a62fb807fe | [
"Apache-2.0"
] | null | null | null | mysql_test/settings.py | AlbertCQY/AIOps | c5ee7276d99d9de722cfab60f55845a62fb807fe | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# mysql connect info 待压测数据库信息
mydb_info = 'testdb'
mydb_ip = '1.1.3.111'
mydb_usr = 'compare'
mydb_pass = 'ZAQ_xsw2'
mydb_port = 3306
mydb_db = 'otpstest'
#待压测mysql主机信息
os_data_ip = '1.1.3.200'
os_user = 'oracle'
os_pass = 'oracle22222'
# mysql资料库信息
my_ip = '1.1.3.111'
my_us... | 16.416667 | 29 | 0.682741 | 67 | 394 | 3.761194 | 0.507463 | 0.035714 | 0.047619 | 0.059524 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101796 | 0.152284 | 394 | 23 | 30 | 17.130435 | 0.652695 | 0.233503 | 0 | 0 | 0 | 0 | 0.327645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.214286 | 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 |
0bf0492fd3f457b811bb44204e51735545e0ee97 | 2,669 | py | Python | python/EnglishSpellCorrection/source/StatisticLog.py | smallflyingpig/projects | fc4a35b3227c3cfd67c6b4a62b016d912b828196 | [
"MIT"
] | 31 | 2018-05-13T12:32:41.000Z | 2022-03-18T04:01:36.000Z | python/EnglishSpellCorrection/source/StatisticLog.py | haitaobiyao/projects | 94f75c798a6bbb6341ab004645018d99caaab787 | [
"MIT"
] | null | null | null | python/EnglishSpellCorrection/source/StatisticLog.py | haitaobiyao/projects | 94f75c798a6bbb6341ab004645018d99caaab787 | [
"MIT"
] | 57 | 2017-05-22T05:55:41.000Z | 2022-03-03T07:41:19.000Z | # ! /usr/bin/env/ python2
# -*- coding:utf-8 -*-
LOG_PATH = './'
LOG_FILENAME = 'test_doc.log' #'top3_t2_basic_1.log'
def StatisticLog():
data = open(LOG_PATH+LOG_FILENAME, 'rb')
#data.readline()
#data.readline()
misspell_type_list = ['deletion', 'insertion', 'replacement', 'transposition']
line... | 32.54878 | 82 | 0.608842 | 420 | 2,669 | 3.490476 | 0.159524 | 0.070941 | 0.090041 | 0.098226 | 0.550477 | 0.257844 | 0.184175 | 0.148704 | 0.148704 | 0.099591 | 0 | 0.04783 | 0.240165 | 2,669 | 81 | 83 | 32.950617 | 0.675049 | 0.035594 | 0 | 0.068966 | 0 | 0 | 0.03545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.086207 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0bf1b20d63cc17ff0927675b1190628218340fa1 | 893 | py | Python | djmx/widgets.py | justquick/django-mx-datetime | 25677449b2753cde76f0ea478c524b38817b4fc1 | [
"BSD-3-Clause"
] | null | null | null | djmx/widgets.py | justquick/django-mx-datetime | 25677449b2753cde76f0ea478c524b38817b4fc1 | [
"BSD-3-Clause"
] | 1 | 2015-06-14T20:52:46.000Z | 2015-06-14T21:02:49.000Z | djmx/widgets.py | justquick/django-mx-datetime | 25677449b2753cde76f0ea478c524b38817b4fc1 | [
"BSD-3-Clause"
] | null | null | null | from mx.DateTime import DateTimeType
from django.forms import widgets
from django.contrib.admin import widgets as admin_widgets
class DateInput(widgets.DateInput):
"""
DateInput that returns the date from a mx.DateTime.DateTime instance to hide time information.
Also gives a bigger input size by default ... | 30.793103 | 99 | 0.679731 | 113 | 893 | 5.265487 | 0.530973 | 0.05042 | 0.036975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013235 | 0.238522 | 893 | 28 | 100 | 31.892857 | 0.861765 | 0.279955 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0bf2616476641f363089df825878a0eda68ea9a0 | 4,685 | py | Python | datacamp-data-scientist-master/Python-career-track/13-intro-to-data-visualization-with-python/02-plotting-2d-arrays.py | vitthal10/datacamp | 522d2b192656f7f6563bf6fc33471b048f1cf029 | [
"MIT"
] | null | null | null | datacamp-data-scientist-master/Python-career-track/13-intro-to-data-visualization-with-python/02-plotting-2d-arrays.py | vitthal10/datacamp | 522d2b192656f7f6563bf6fc33471b048f1cf029 | [
"MIT"
] | null | null | null | datacamp-data-scientist-master/Python-career-track/13-intro-to-data-visualization-with-python/02-plotting-2d-arrays.py | vitthal10/datacamp | 522d2b192656f7f6563bf6fc33471b048f1cf029 | [
"MIT"
] | 1 | 2021-08-08T05:09:52.000Z | 2021-08-08T05:09:52.000Z | # Import numpy and matplotlib.pyplot
import numpy as np
import matplotlib.pyplot as plt
# Generate two 1-D arrays: u, v
u = np.linspace(-2, 2, 41)
v = np.linspace(-1,1,21)
# Generate 2-D arrays from u and v: X, Y
X,Y = np.meshgrid(u,v)
# Compute Z based on X and Y
Z = np.sin(3*np.sqrt(X**2 + Y**2))
# Display the r... | 23.308458 | 77 | 0.703522 | 854 | 4,685 | 3.844262 | 0.187354 | 0.013402 | 0.046908 | 0.043862 | 0.591228 | 0.510813 | 0.435577 | 0.420347 | 0.388364 | 0.312824 | 0 | 0.045758 | 0.137033 | 4,685 | 200 | 78 | 23.425 | 0.766263 | 0.396371 | 0 | 0.49 | 1 | 0 | 0.196332 | 0.079827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02 | 0 | 0.02 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bf91f135838f2f80daa40263dc3747547194c25 | 5,510 | py | Python | adsb_arrivals.py | phreakmonkey/ads-b-arrivals | 6b5bc4931b4a2b390325884d9826a8ec5315a2d5 | [
"MIT"
] | 4 | 2019-02-06T21:13:09.000Z | 2020-08-10T17:27:05.000Z | adsb_arrivals.py | phreakmonkey/ads-b-arrivals | 6b5bc4931b4a2b390325884d9826a8ec5315a2d5 | [
"MIT"
] | 1 | 2019-05-04T12:48:57.000Z | 2019-05-04T12:49:49.000Z | adsb_arrivals.py | phreakmonkey/ads-b-arrivals | 6b5bc4931b4a2b390325884d9826a8ec5315a2d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import datetime
import select
import socket
import time
import errno
from operator import itemgetter
from geopy import distance
import paho.mqtt.publish as publish
MQTT_HOST = 'localhost' # MQTT broker
ADSB_HOST = 'pi-sdr001' # Host running dump1090
ADSB_PORT = 30003
AIRCRAFT = ['A8F94E'] ... | 27.412935 | 88 | 0.586388 | 794 | 5,510 | 4.010076 | 0.288413 | 0.00691 | 0.00848 | 0.007538 | 0.220163 | 0.191269 | 0.161118 | 0.116834 | 0.062186 | 0.056533 | 0 | 0.031381 | 0.265517 | 5,510 | 200 | 89 | 27.55 | 0.755374 | 0.058439 | 0 | 0.217143 | 0 | 0.005714 | 0.105253 | 0.015257 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045714 | null | null | 0.091429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
040563f4b4bfd4af0024c8839898c6addc174473 | 13,941 | py | Python | posix_checkapi/TRACES/POT/testcv_notify_all.py | JustinCappos/checkapi | 2508c414869eda3479e1384b1bea65ec1e749d3b | [
"Apache-2.0"
] | null | null | null | posix_checkapi/TRACES/POT/testcv_notify_all.py | JustinCappos/checkapi | 2508c414869eda3479e1384b1bea65ec1e749d3b | [
"Apache-2.0"
] | null | null | null | posix_checkapi/TRACES/POT/testcv_notify_all.py | JustinCappos/checkapi | 2508c414869eda3479e1384b1bea65ec1e749d3b | [
"Apache-2.0"
] | null | null | null | """
Author: Vjekoslav Brajkovic
Start Date: May 16th, 2009
Purpose: Test cases for the condition variable primitive implementation.
"""
#begin include cv.repy
"""
Author: Vjekoslav Brajkovic
Start date: May 24th, 2009
Purpose: This module provides condition variable (cv) interface.
Abstract: Conceptuall... | 25.721402 | 111 | 0.706047 | 1,800 | 13,941 | 5.363889 | 0.197778 | 0.042465 | 0.0261 | 0.035422 | 0.445469 | 0.406007 | 0.354324 | 0.335474 | 0.331952 | 0.326567 | 0 | 0.004671 | 0.216842 | 13,941 | 541 | 112 | 25.768946 | 0.879648 | 0.226598 | 0 | 0.418033 | 0 | 0 | 0.152554 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0 | null | null | 0.008197 | 0 | null | null | 0.008197 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
04072a3dae166e3e9a133f4e5d796bd3b3803b3d | 1,667 | py | Python | app/auth/routes.py | jod35/Fast-Food-Fast | 7dbe2ea8b602460f917bc0dc76ad65f3ae09b829 | [
"Apache-2.0"
] | null | null | null | app/auth/routes.py | jod35/Fast-Food-Fast | 7dbe2ea8b602460f917bc0dc76ad65f3ae09b829 | [
"Apache-2.0"
] | null | null | null | app/auth/routes.py | jod35/Fast-Food-Fast | 7dbe2ea8b602460f917bc0dc76ad65f3ae09b829 | [
"Apache-2.0"
] | null | null | null | from flask import Blueprint, redirect, url_for, jsonify, make_response, request
from ..models.users import User
from ..utils.database import db
from flask_login import login_user, logout_user
from ..controllers.methods import check_email_exists, check_username_exists
auth_bp = Blueprint("auth", __name__)
@auth_bp.r... | 26.460317 | 86 | 0.671266 | 210 | 1,667 | 5.104762 | 0.333333 | 0.051306 | 0.065299 | 0.074627 | 0.160448 | 0.059701 | 0.059701 | 0 | 0 | 0 | 0 | 0.002252 | 0.20096 | 1,667 | 62 | 87 | 26.887097 | 0.802553 | 0 | 0 | 0.119048 | 0 | 0 | 0.127175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.142857 | 0.119048 | 0 | 0.333333 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
040c2ca0a42c72040452ad6fe7d2f423d7f728d5 | 1,612 | py | Python | ProsperFlask-deb/{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/__init__.py | EVEprosper/ProsperCookiecutters | 569ca0c311a5ead2b49f0cdde4cb2ad14dcd3a2c | [
"MIT"
] | null | null | null | ProsperFlask-deb/{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/__init__.py | EVEprosper/ProsperCookiecutters | 569ca0c311a5ead2b49f0cdde4cb2ad14dcd3a2c | [
"MIT"
] | null | null | null | ProsperFlask-deb/{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/__init__.py | EVEprosper/ProsperCookiecutters | 569ca0c311a5ead2b49f0cdde4cb2ad14dcd3a2c | [
"MIT"
] | null | null | null | """__init__.py: Flask app configuration"""
from os import path
try:
from flask import Flask
import {{cookiecutter.app_name}}.{{cookiecutter.endpoint_group}} as {{cookiecutter.endpoint_group}}
import {{cookiecutter.app_name}}.config as api_config
import prosper.common.prosper_logging as p_logging
excep... | 27.793103 | 103 | 0.691687 | 190 | 1,612 | 5.594737 | 0.405263 | 0.075259 | 0.094073 | 0.047037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00156 | 0.204715 | 1,612 | 57 | 104 | 28.280702 | 0.827613 | 0 | 0 | 0 | 0 | 0 | 0.042749 | 0.020956 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | 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 |
040fba588560bf22f93fd05012d141133439e1c7 | 2,130 | py | Python | index.py | Samwisebuze/virtuoso-container | 4bfbc67bf9f177314e5b4c5500a16643378a71b8 | [
"MIT"
] | 2 | 2020-03-07T16:37:55.000Z | 2020-08-10T23:56:02.000Z | index.py | Samwisebuze/virtuoso-container | 4bfbc67bf9f177314e5b4c5500a16643378a71b8 | [
"MIT"
] | 1 | 2021-05-11T05:58:44.000Z | 2021-05-11T05:58:44.000Z | index.py | Samwisebuze/virtuoso-container | 4bfbc67bf9f177314e5b4c5500a16643378a71b8 | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify
app = Flask(__name__)
# JSON POST request format:
# {
# "networkId": "<unique id>",
# "networkDetails": [
# {
# "machineId": "<unique id>",
# "machineAddress": "<unique address>",
# "machineType": "<host | switch>",
# ... | 27.662338 | 68 | 0.566667 | 216 | 2,130 | 5.467593 | 0.333333 | 0.03387 | 0.064352 | 0.052498 | 0.669771 | 0.669771 | 0.669771 | 0.669771 | 0.669771 | 0.632515 | 0 | 0.015385 | 0.267606 | 2,130 | 76 | 69 | 28.026316 | 0.741667 | 0.567606 | 0 | 0.545455 | 0 | 0 | 0.152794 | 0.050171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.318182 | 0.045455 | 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 |
0413d57e7cbff6e033a786c2e1a4e062d30fbe29 | 472 | py | Python | models/users_model.py | raphaelcordon/Resenhando | 1dfe142f8771f9d7570872ed39713b0b17e8838a | [
"MIT"
] | null | null | null | models/users_model.py | raphaelcordon/Resenhando | 1dfe142f8771f9d7570872ed39713b0b17e8838a | [
"MIT"
] | null | null | null | models/users_model.py | raphaelcordon/Resenhando | 1dfe142f8771f9d7570872ed39713b0b17e8838a | [
"MIT"
] | null | null | null |
class Users:
def __init__(self, id, name, surname, password, email, changepass, read_comment, read_like):
self.id = id
self.name = name
self.surname = surname
self.password = password
self.email = email
self.changepass = changepass
self.read_comment = read_co... | 26.222222 | 96 | 0.625 | 56 | 472 | 5.017857 | 0.267857 | 0.085409 | 0.078292 | 0.092527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294492 | 472 | 17 | 97 | 27.764706 | 0.843844 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.428571 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
04173b2ad2c1deac75b56ffad4605da903abfa56 | 11,064 | py | Python | scripts/5a-render-model3.py | lpenuelac/ImageAnalysis | a01b1278cca92e45fef6f5e41d1310cfbb041308 | [
"MIT"
] | 93 | 2015-11-26T14:15:51.000Z | 2022-03-10T13:54:21.000Z | scripts/5a-render-model3.py | lpenuelac/ImageAnalysis | a01b1278cca92e45fef6f5e41d1310cfbb041308 | [
"MIT"
] | 19 | 2017-04-06T11:09:21.000Z | 2022-03-05T20:12:39.000Z | scripts/5a-render-model3.py | lpenuelac/ImageAnalysis | a01b1278cca92e45fef6f5e41d1310cfbb041308 | [
"MIT"
] | 30 | 2017-06-12T16:08:51.000Z | 2022-01-28T17:34:04.000Z | #!/usr/bin/env python3
# 6a-render-model3.py - investigate delauney triangulation for
# individual image surface mesh generation.
# for all the images in the fitted group, generate a 2d polygon
# surface fit. Then project the individual images onto this surface
# and generate an AC3D model.
#
# Note: insufficient im... | 35.690323 | 147 | 0.601229 | 1,554 | 11,064 | 4.134492 | 0.226512 | 0.026148 | 0.011984 | 0.011206 | 0.179611 | 0.126848 | 0.116109 | 0.08249 | 0.06786 | 0.05821 | 0 | 0.019296 | 0.283351 | 11,064 | 309 | 148 | 35.805825 | 0.79102 | 0.207068 | 0 | 0.169014 | 1 | 0 | 0.071666 | 0.002412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.061033 | 0 | 0.098592 | 0.061033 | 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 |
04200d79a007d1d63965ebbcf84b0133a4b6d773 | 401 | py | Python | setup.py | pritchardlabatpsu/cga | 0a71c672b1348cebc724560643fd908d636fc133 | [
"MIT"
] | null | null | null | setup.py | pritchardlabatpsu/cga | 0a71c672b1348cebc724560643fd908d636fc133 | [
"MIT"
] | null | null | null | setup.py | pritchardlabatpsu/cga | 0a71c672b1348cebc724560643fd908d636fc133 | [
"MIT"
] | 1 | 2022-02-08T01:06:20.000Z | 2022-02-08T01:06:20.000Z | from setuptools import setup, find_packages
setup(
name="ceres_infer",
version="1.0",
author="Boyang Zhao",
description='CERES inference',
long_description=open('README.md').read(),
package_dir={"": "src"},
packages=find_packages("ceres_infer"),
include_package_data=True,
zip_safe=F... | 26.733333 | 72 | 0.680798 | 49 | 401 | 5.367347 | 0.77551 | 0.091255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.15212 | 401 | 14 | 73 | 28.642857 | 0.767647 | 0 | 0 | 0 | 0 | 0 | 0.201995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
042c0de00c783b84c468188c4fd891293be78cbc | 4,202 | py | Python | yq_baoliu.py | yq342/Aptamer-predictor | 29ff3788c9a3ccfa2c017295d1c8b09b2a89e43e | [
"BSD-3-Clause"
] | null | null | null | yq_baoliu.py | yq342/Aptamer-predictor | 29ff3788c9a3ccfa2c017295d1c8b09b2a89e43e | [
"BSD-3-Clause"
] | null | null | null | yq_baoliu.py | yq342/Aptamer-predictor | 29ff3788c9a3ccfa2c017295d1c8b09b2a89e43e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding:utf-8
import pse
import argparse
from argparse import RawTextHelpFormatter
from mlab.releases import latest_release as matlab
from mlab.releases import latest_release as matlab
from mlab.releases import latest_release as matlab
from collections import OrderedDict
import numpy a... | 30.014286 | 127 | 0.604474 | 584 | 4,202 | 4.260274 | 0.27226 | 0.048232 | 0.03135 | 0.033762 | 0.491158 | 0.438907 | 0.426045 | 0.416801 | 0.416801 | 0.389871 | 0 | 0.041628 | 0.228225 | 4,202 | 139 | 128 | 30.230216 | 0.725563 | 0.352689 | 0 | 0.488095 | 0 | 0 | 0.152848 | 0.024288 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | null | null | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
042e1a4373b703804cb0de00737c01258c699f95 | 740 | py | Python | venv/lib/python3.8/site-packages/django/utils/hashable.py | Joshua-Barawa/My-Photos | adcaea48149c6b31e9559b045709d538d0b749bc | [
"PostgreSQL",
"Unlicense"
] | 16 | 2019-08-10T12:24:06.000Z | 2020-05-21T09:11:14.000Z | venv/lib/python3.8/site-packages/django/utils/hashable.py | Joshua-Barawa/My-Photos | adcaea48149c6b31e9559b045709d538d0b749bc | [
"PostgreSQL",
"Unlicense"
] | 12 | 2019-08-10T11:55:29.000Z | 2020-05-21T04:46:30.000Z | venv/lib/python3.8/site-packages/django/utils/hashable.py | Joshua-Barawa/My-Photos | adcaea48149c6b31e9559b045709d538d0b749bc | [
"PostgreSQL",
"Unlicense"
] | 4 | 2022-03-12T10:17:00.000Z | 2022-03-26T08:40:43.000Z | from django.utils.itercompat import is_iterable
def make_hashable(value):
"""
Attempt to make value hashable or raise a TypeError if it fails.
The returned value should generate the same hash for equal values.
"""
if isinstance(value, dict):
return tuple(
[
(ke... | 27.407407 | 79 | 0.604054 | 90 | 740 | 4.888889 | 0.533333 | 0.081818 | 0.077273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318919 | 740 | 26 | 80 | 28.461538 | 0.873016 | 0.333784 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0438a3924901c4b59a9d58cf72d823253508cd46 | 500 | py | Python | psi/serialize/ecc.py | delta-mpc/python-psi | 1665de12a713b37abd889268c66de84cddb1bf84 | [
"Apache-2.0"
] | 35 | 2021-05-28T10:03:09.000Z | 2022-03-24T12:08:19.000Z | psi/serialize/ecc.py | delta-mpc/python-psi | 1665de12a713b37abd889268c66de84cddb1bf84 | [
"Apache-2.0"
] | 9 | 2021-07-15T09:16:34.000Z | 2022-03-31T03:59:16.000Z | psi/serialize/ecc.py | delta-mpc/python-psi | 1665de12a713b37abd889268c66de84cddb1bf84 | [
"Apache-2.0"
] | 16 | 2021-06-18T02:18:56.000Z | 2022-03-25T02:43:48.000Z | from Crypto.PublicKey import ECC
__all__ = ["point_to_bytes", "key_to_bytes", "bytes_to_key"]
def point_to_bytes(point: ECC.EccPoint):
xs = point.x.to_bytes()
ys = bytes([2 + point.y.is_odd()])
return xs + ys
def key_to_bytes(key: ECC.EccKey):
if key.has_private():
raise ValueError("only pu... | 25 | 78 | 0.694 | 81 | 500 | 4.024691 | 0.469136 | 0.128834 | 0.07362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002433 | 0.178 | 500 | 19 | 79 | 26.315789 | 0.790754 | 0 | 0 | 0 | 0 | 0 | 0.182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0439d170274aad09be0e80976305465dcf079c70 | 1,773 | py | Python | getpaid/backends/payu/views.py | fizista/django-getpaid | e3f1e957c0be720a5c13d2f4f6f163050bab723d | [
"MIT"
] | null | null | null | getpaid/backends/payu/views.py | fizista/django-getpaid | e3f1e957c0be720a5c13d2f4f6f163050bab723d | [
"MIT"
] | null | null | null | getpaid/backends/payu/views.py | fizista/django-getpaid | e3f1e957c0be720a5c13d2f4f6f163050bab723d | [
"MIT"
] | 1 | 2022-03-26T16:35:01.000Z | 2022-03-26T16:35:01.000Z | import logging
from django.core.urlresolvers import reverse
from django.http import HttpResponse, HttpResponseRedirect
from django.views.generic.base import View
from django.views.generic.detail import DetailView
from getpaid.backends.payu import PaymentProcessor
from getpaid.models import Payment
logger = logging.get... | 36.183673 | 105 | 0.693739 | 210 | 1,773 | 5.8 | 0.385714 | 0.045156 | 0.029557 | 0.036125 | 0.223317 | 0.223317 | 0.17734 | 0.17734 | 0.098522 | 0.098522 | 0 | 0 | 0.200226 | 1,773 | 48 | 106 | 36.9375 | 0.858956 | 0.166949 | 0 | 0.137931 | 0 | 0 | 0.124385 | 0.048489 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.241379 | 0.034483 | 0.655172 | 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 |
0448d0c41fa443ce6feaa6a42e8f40cf501c91c8 | 477 | py | Python | 2020/Day02/Day02_Prob1_Valid_Passwords.py | guilhermebaos/Advent-of-Code-Solutions | 232facf72a21284478134b2c56357352b4aaaf74 | [
"MIT"
] | null | null | null | 2020/Day02/Day02_Prob1_Valid_Passwords.py | guilhermebaos/Advent-of-Code-Solutions | 232facf72a21284478134b2c56357352b4aaaf74 | [
"MIT"
] | null | null | null | 2020/Day02/Day02_Prob1_Valid_Passwords.py | guilhermebaos/Advent-of-Code-Solutions | 232facf72a21284478134b2c56357352b4aaaf74 | [
"MIT"
] | null | null | null | import re
# Puzzle Input
with open('Day02_Input.txt', 'r') as puzzle_input:
passwords = puzzle_input.read().split('\n')
# Separate the input
processed_passwords = []
for pass_list in passwords:
processed_passwords += [re.split(r'[- :]', pass_list)]
# See if passwords are valid
valid = 0
for pass_list in proc... | 23.85 | 78 | 0.685535 | 71 | 477 | 4.422535 | 0.464789 | 0.178344 | 0.070064 | 0.082803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020305 | 0.174004 | 477 | 19 | 79 | 25.105263 | 0.77665 | 0.121593 | 0 | 0 | 0 | 0 | 0.055422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.583333 | 0.083333 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0449e135c30677261bf514c49de5bb6da7ae0eb5 | 755 | py | Python | src/djshop/apps/store/migrations/0003_auto_20161205_1901.py | diegojromerolopez/djshop | 3fe623532228006e96269bd0f21c7b7d380c3a1a | [
"MIT"
] | null | null | null | src/djshop/apps/store/migrations/0003_auto_20161205_1901.py | diegojromerolopez/djshop | 3fe623532228006e96269bd0f21c7b7d380c3a1a | [
"MIT"
] | 1 | 2017-05-08T17:05:00.000Z | 2018-04-04T11:55:30.000Z | src/djshop/apps/store/migrations/0003_auto_20161205_1901.py | diegojromerolopez/djshop | 3fe623532228006e96269bd0f21c7b7d380c3a1a | [
"MIT"
] | 2 | 2017-04-25T10:32:57.000Z | 2020-05-04T16:12:08.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-12-05 19:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0002_auto_20161204_2335'),
]
operations = [
migrations.AddField(
... | 29.038462 | 129 | 0.631788 | 81 | 755 | 5.703704 | 0.679012 | 0.071429 | 0.069264 | 0.08658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 0.247682 | 755 | 25 | 130 | 30.2 | 0.757042 | 0.087417 | 0 | 0.222222 | 1 | 0 | 0.195335 | 0.06414 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
044f8eb405e953846709760ce64767fdec216955 | 2,607 | py | Python | SimpleSpider/simple_spider/sys_func/datahub.py | snoW3heX/SimpleSpider | 572fd31b450230664872569309b0f913a3789168 | [
"Apache-2.0"
] | 5 | 2019-11-13T13:35:26.000Z | 2020-06-27T07:50:10.000Z | SimpleSpider/simple_spider/sys_func/datahub.py | snoW3heX/SimpleSpider | 572fd31b450230664872569309b0f913a3789168 | [
"Apache-2.0"
] | null | null | null | SimpleSpider/simple_spider/sys_func/datahub.py | snoW3heX/SimpleSpider | 572fd31b450230664872569309b0f913a3789168 | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
import hashlib
import time
import math
import platform
class DataHub:
# 数据存放出
_tmpData = {}
# -1为无限制
_size_max = -1
_regID = []
'''
数据中心
临时存放数据的位置
'''
def __init__(self, size_max=0):
# 获取数据中心最大值 默认无限制
self._size_max = size_max if size_max != 0 e... | 22.669565 | 94 | 0.523207 | 297 | 2,607 | 4.424242 | 0.262626 | 0.09589 | 0.045662 | 0.022831 | 0.254947 | 0.221461 | 0.167428 | 0.127854 | 0 | 0 | 0 | 0.018976 | 0.33295 | 2,607 | 115 | 95 | 22.669565 | 0.73663 | 0.190257 | 0 | 0.301587 | 0 | 0 | 0.049316 | 0.010742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15873 | false | 0 | 0.063492 | 0.063492 | 0.507937 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
045035fd20b7483ec17189a0d48993e78e95813d | 835 | py | Python | machina/apps/forum_member/admin.py | BrendaH/django-machina | c75b6f39f61ca92745aebb0bb6ab3c707d88063d | [
"BSD-3-Clause"
] | 572 | 2015-04-10T06:15:43.000Z | 2022-03-30T06:40:25.000Z | machina/apps/forum_member/admin.py | BrendaH/django-machina | c75b6f39f61ca92745aebb0bb6ab3c707d88063d | [
"BSD-3-Clause"
] | 241 | 2015-10-26T22:23:59.000Z | 2022-03-25T12:30:56.000Z | machina/apps/forum_member/admin.py | BrendaH/django-machina | c75b6f39f61ca92745aebb0bb6ab3c707d88063d | [
"BSD-3-Clause"
] | 156 | 2015-10-02T19:32:08.000Z | 2022-03-30T06:40:11.000Z | """
Forum member model admin definitions
====================================
This module defines admin classes used to populate the Django administration dashboard.
"""
from django.contrib import admin
from machina.core.db.models import get_model
from machina.models.fields import MarkupTextField, Marku... | 25.30303 | 91 | 0.683832 | 85 | 835 | 6.541176 | 0.564706 | 0.039568 | 0.05036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168862 | 835 | 32 | 92 | 26.09375 | 0.801153 | 0.232335 | 0 | 0 | 0 | 0 | 0.13355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 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 |
045ea12b191fbf8793e262598adb88477efe4f13 | 468 | py | Python | src/design_patterns/strategy/application_runner.py | schuna/design-patterns-python | 3798e6c418bcbc224e57dd6b95ef03046729e9d2 | [
"MIT"
] | null | null | null | src/design_patterns/strategy/application_runner.py | schuna/design-patterns-python | 3798e6c418bcbc224e57dd6b95ef03046729e9d2 | [
"MIT"
] | null | null | null | src/design_patterns/strategy/application_runner.py | schuna/design-patterns-python | 3798e6c418bcbc224e57dd6b95ef03046729e9d2 | [
"MIT"
] | null | null | null | from design_patterns.strategy.fahrenheit_celsius_strategy import ConverterStrategy
class ApplicationRunner:
def __init__(self, application):
self.application = application
def run(self):
self.application.init()
while not self.application.done:
self.application.idle()
... | 26 | 82 | 0.700855 | 46 | 468 | 6.804348 | 0.586957 | 0.28754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209402 | 468 | 17 | 83 | 27.529412 | 0.845946 | 0.034188 | 0 | 0 | 0 | 0 | 0.017778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.333333 | 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 |
f08626d72dc7714fe8885102c35085b1b17f38b8 | 5,277 | py | Python | scratch/test_dir3/process_catalogs.py | benw1/WINGS | 32d4bfd073da0b86d2340cde25a5601d0a1ec95e | [
"RSA-MD"
] | 4 | 2022-01-04T18:24:56.000Z | 2022-01-27T08:23:37.000Z | scratch/test_dir3/process_catalogs.py | benw1/WINGS | 32d4bfd073da0b86d2340cde25a5601d0a1ec95e | [
"RSA-MD"
] | null | null | null | scratch/test_dir3/process_catalogs.py | benw1/WINGS | 32d4bfd073da0b86d2340cde25a5601d0a1ec95e | [
"RSA-MD"
] | null | null | null | #! /usr/bin/env python
import argparse,os,subprocess
from wpipe import *
from wingtips import WingTips as wtips
from wingtips import time, np, ascii
def register(PID,task_name):
myPipe = Pipeline.get(PID)
myTask = Task(task_name,myPipe).create()
_t = Task.add_mask(myTask,'*','start',task_name)
_t = Task.a... | 38.518248 | 94 | 0.571537 | 635 | 5,277 | 4.592126 | 0.330709 | 0.021605 | 0.034979 | 0.012346 | 0.120713 | 0.061728 | 0.043896 | 0.043896 | 0.043896 | 0 | 0 | 0.018937 | 0.279515 | 5,277 | 136 | 95 | 38.801471 | 0.748027 | 0 | 0 | 0.07619 | 0 | 0 | 0.097892 | 0.005427 | 0.009524 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038095 | null | null | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f08a3eaaac92891d8bd46eb6de644022441703e6 | 287 | py | Python | Blog/apps/articles/forms.py | singhabhigkp77/Django-Blog | 66753febdcbca17d31bba96eeb525fe53cb71fd4 | [
"MIT"
] | null | null | null | Blog/apps/articles/forms.py | singhabhigkp77/Django-Blog | 66753febdcbca17d31bba96eeb525fe53cb71fd4 | [
"MIT"
] | 4 | 2021-03-19T12:14:39.000Z | 2022-02-10T09:30:01.000Z | Blog/apps/articles/forms.py | singhabhigkp77/Django-Blog | 66753febdcbca17d31bba96eeb525fe53cb71fd4 | [
"MIT"
] | 1 | 2020-10-01T18:16:39.000Z | 2020-10-01T18:16:39.000Z | from django.forms import ModelForm
from .models import Post
# Create the form class.
class ArticleForm(ModelForm):
class Meta:
model = Post
fields = [ 'title', 'text', 'created_date']
def clean(self):
cleaned_data = super(ArticleForm, self).clean()
| 23.916667 | 55 | 0.651568 | 34 | 287 | 5.441176 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243902 | 287 | 11 | 56 | 26.090909 | 0.852535 | 0.076655 | 0 | 0 | 0 | 0 | 0.079848 | 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 |
f08adfdb6d6e1c6cc1a8df60e35e9bc20c1776b1 | 932 | py | Python | mowl/examples/wro.py | bio-ontology-research-group/OntoML | 4cdc17dc7ee26464db96c67838c3e77dba5318f9 | [
"BSD-3-Clause"
] | null | null | null | mowl/examples/wro.py | bio-ontology-research-group/OntoML | 4cdc17dc7ee26464db96c67838c3e77dba5318f9 | [
"BSD-3-Clause"
] | null | null | null | mowl/examples/wro.py | bio-ontology-research-group/OntoML | 4cdc17dc7ee26464db96c67838c3e77dba5318f9 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import click as ck
import numpy as np
import pandas as pd
import pickle
import gzip
import os
import sys
import logging
logging.basicConfig(level=logging.INFO)
sys.path.insert(0, '')
sys.path.append('../../')
from mowl.datasets import PPIYeastDataset
from mowl.graph.walking_rdf_and_owl.model... | 25.189189 | 85 | 0.60515 | 112 | 932 | 4.839286 | 0.633929 | 0.04059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.27897 | 932 | 36 | 86 | 25.888889 | 0.782738 | 0.10515 | 0 | 0 | 0 | 0 | 0.136473 | 0.03744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.37037 | 0 | 0.407407 | 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 |
f08b2dd03316e1d17e6a857c6662932309cc409b | 1,384 | py | Python | sdk/monitor/azure-monitor-query/samples/sample_logs_query_key_value_form.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | null | null | null | sdk/monitor/azure-monitor-query/samples/sample_logs_query_key_value_form.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | null | null | null | sdk/monitor/azure-monitor-query/samples/sample_logs_query_key_value_form.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import os
import pandas as pd
from datetime import datetime, timedelta
from msrest.serialization import UTC
from azure.monitor.query import LogsQueryClient
from azure.identity import DefaultAzureCredential
credential = Defa... | 28.244898 | 100 | 0.695809 | 150 | 1,384 | 6.353333 | 0.66 | 0.053515 | 0.059811 | 0.050367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065905 | 0.177746 | 1,384 | 48 | 101 | 28.833333 | 0.771529 | 0.127168 | 0 | 0 | 0 | 0 | 0.165075 | 0.046385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f08e33eab3566ef0679fe9bf31509829ef43386c | 201 | py | Python | PP4E/Examples/PP4E/Preview/dump_db_pickle.py | BeacherHou/Python-_Markdown- | 015d79a02d32f49395b80ca10919b3a09b72c4df | [
"MIT"
] | null | null | null | PP4E/Examples/PP4E/Preview/dump_db_pickle.py | BeacherHou/Python-_Markdown- | 015d79a02d32f49395b80ca10919b3a09b72c4df | [
"MIT"
] | null | null | null | PP4E/Examples/PP4E/Preview/dump_db_pickle.py | BeacherHou/Python-_Markdown- | 015d79a02d32f49395b80ca10919b3a09b72c4df | [
"MIT"
] | null | null | null | import pickle
dbfile = open('people-pickle', 'rb') # use binary mode files in 3.X
db = pickle.load(dbfile)
for key in db:
print(key, '=>\n ', db[key])
print(db['sue']['name'])
| 28.714286 | 82 | 0.567164 | 31 | 201 | 3.677419 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.248756 | 201 | 6 | 83 | 33.5 | 0.748344 | 0.139303 | 0 | 0 | 0 | 0 | 0.169697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 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 |
f08ecb603c6680968fb1e9612f98611f6652e43d | 740 | py | Python | pyschool/static/libs/importhooks/localstorage.py | niansa/brython-in-the-classroom | a1f132898ed1afd1d1baf8170b99e58e39e87912 | [
"MIT"
] | 14 | 2016-03-16T18:01:52.000Z | 2021-09-24T14:07:20.000Z | pyschool/static/libs/importhooks/localstorage.py | niansa/brython-in-the-classroom | a1f132898ed1afd1d1baf8170b99e58e39e87912 | [
"MIT"
] | 9 | 2015-03-31T00:31:26.000Z | 2021-05-28T06:24:16.000Z | pyschool/static/libs/importhooks/localstorage.py | niansa/brython-in-the-classroom | a1f132898ed1afd1d1baf8170b99e58e39e87912 | [
"MIT"
] | 7 | 2015-05-04T04:06:04.000Z | 2020-10-28T09:54:07.000Z | import BaseHook
from browser.local_storage import storage
import sys
#define my custom import hook (just to see if it get called etc).
class LocalStorageHook(BaseHook.BaseHook):
def __init__(self, fullname, path):
BaseHook.BaseHook.__init__(self, fullname, path)
#self._fullname=fullname
#self._path... | 28.461538 | 73 | 0.647297 | 94 | 740 | 4.829787 | 0.521277 | 0.105727 | 0.070485 | 0.088106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255405 | 740 | 25 | 74 | 29.6 | 0.823956 | 0.22027 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f0902c9c2c3287d4b120a77cdf9780b181028c14 | 2,966 | py | Python | asv_bench/benchmarks/io/style.py | umangino/pandas | c492672699110fe711b7f76ded5828ff24bce5ab | [
"BSD-3-Clause"
] | 28,899 | 2016-10-13T03:32:12.000Z | 2022-03-31T21:39:05.000Z | asv_bench/benchmarks/io/style.py | umangino/pandas | c492672699110fe711b7f76ded5828ff24bce5ab | [
"BSD-3-Clause"
] | 31,004 | 2016-10-12T23:22:27.000Z | 2022-03-31T23:17:38.000Z | asv_bench/benchmarks/io/style.py | umangino/pandas | c492672699110fe711b7f76ded5828ff24bce5ab | [
"BSD-3-Clause"
] | 15,149 | 2016-10-13T03:21:31.000Z | 2022-03-31T18:46:47.000Z | import numpy as np
from pandas import (
DataFrame,
IndexSlice,
)
class Render:
params = [[12, 24, 36], [12, 120]]
param_names = ["cols", "rows"]
def setup(self, cols, rows):
self.df = DataFrame(
np.random.randn(rows, cols),
columns=[f"float_{i+1}" for i in range(... | 31.553191 | 88 | 0.617667 | 416 | 2,966 | 4.165865 | 0.201923 | 0.083093 | 0.076168 | 0.101558 | 0.58165 | 0.538373 | 0.500289 | 0.435661 | 0.41431 | 0.406232 | 0 | 0.014785 | 0.247471 | 2,966 | 93 | 89 | 31.892473 | 0.761649 | 0.026635 | 0 | 0.285714 | 0 | 0 | 0.042302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242857 | false | 0 | 0.028571 | 0.014286 | 0.328571 | 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 |
f09452126c40f8f65420eab2ff49d615df198414 | 1,071 | py | Python | SumOf2Num.py | Stephen-Kamau/Algo | b0b49861388053bb3ae2b7c18bbc16cc5b5f7920 | [
"MIT"
] | 1 | 2021-07-07T21:59:39.000Z | 2021-07-07T21:59:39.000Z | SumOf2Num.py | Stephen-Kamau/Algo | b0b49861388053bb3ae2b7c18bbc16cc5b5f7920 | [
"MIT"
] | null | null | null | SumOf2Num.py | Stephen-Kamau/Algo | b0b49861388053bb3ae2b7c18bbc16cc5b5f7920 | [
"MIT"
] | null | null | null |
def SumOfTwoNums(array , target):
"""
Get THe Sum of Two Numbers from an array to match the required target
"""
#sort the array
array.sort()
NumSums = []
left = 0
right = len(array)-1
while left < right:
currSum = array[left] + array[right]
# print(left , right , c... | 24.340909 | 73 | 0.535014 | 137 | 1,071 | 4.182482 | 0.357664 | 0.09075 | 0.031414 | 0.066318 | 0.17452 | 0.17452 | 0.059337 | 0.059337 | 0.059337 | 0.059337 | 0 | 0.047619 | 0.333333 | 1,071 | 43 | 74 | 24.906977 | 0.754902 | 0.122316 | 0 | 0.322581 | 0 | 0 | 0.005435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.064516 | 0 | 0 | 0.129032 | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f094d08e47064234aefa7b10987a68478a0074f2 | 2,295 | py | Python | champData.py | Scew5145/TentacleBot | c37ec30b617a7762d08bad13a29d6361d2dd94aa | [
"MIT"
] | 1 | 2018-03-01T13:30:14.000Z | 2018-03-01T13:30:14.000Z | champData.py | Scew5145/TentacleBot | c37ec30b617a7762d08bad13a29d6361d2dd94aa | [
"MIT"
] | null | null | null | champData.py | Scew5145/TentacleBot | c37ec30b617a7762d08bad13a29d6361d2dd94aa | [
"MIT"
] | null | null | null | import json
import sys
import requests
class championDB:
# Class for handling riot static API requests and doing level based calcs.
riotKey = ''
# stat dicts don't need to be loaded permanently because there's no limit on static requests! Yay!
def __init__(self, _riotKey):
self.riotKey = _r... | 38.25 | 110 | 0.634858 | 293 | 2,295 | 4.911263 | 0.430034 | 0.041696 | 0.062543 | 0.041696 | 0.234885 | 0.202919 | 0.202919 | 0.202919 | 0.202919 | 0.144545 | 0 | 0.010006 | 0.259695 | 2,295 | 59 | 111 | 38.898305 | 0.836963 | 0.330283 | 0 | 0.162162 | 0 | 0.027027 | 0.185817 | 0.016415 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.108108 | false | 0 | 0.081081 | 0 | 0.378378 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f097029008b53ddf16959affb8f885ebca2b5078 | 24,040 | py | Python | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/lib/pg_util.py | khuddlefish/gpdb | 2d20bae838c5ed433eecf6ecceca1b8dd5221197 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/lib/pg_util.py | khuddlefish/gpdb | 2d20bae838c5ed433eecf6ecceca1b8dd5221197 | [
"PostgreSQL",
"Apache-2.0"
] | 6 | 2018-08-04T07:51:37.000Z | 2018-11-26T07:09:44.000Z | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/lib/pg_util.py | henglabs/gpdb | 09a8cc05ac90d63c64c6d432ca35179b55a461b2 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2004-Present Pivotal Software, Inc.
This program and the accompanying materials are made available under
the terms of the 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.... | 49.772257 | 193 | 0.602288 | 3,085 | 24,040 | 4.534198 | 0.132253 | 0.040034 | 0.041178 | 0.016443 | 0.566772 | 0.518301 | 0.461753 | 0.427223 | 0.380898 | 0.35845 | 0 | 0.005887 | 0.286356 | 24,040 | 482 | 194 | 49.875519 | 0.809454 | 0.026498 | 0 | 0.454787 | 0 | 0.00266 | 0.207557 | 0.018163 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018617 | 0.029255 | null | null | 0.023936 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f097bee167a815e2efa268ef8e5f7cf099a857d2 | 1,312 | py | Python | tests/example_svmlr.py | salmuz/svm-label-ranking | 876225400a9d81237b15200f67c09c72a618f6ff | [
"MIT"
] | 2 | 2020-04-23T09:51:23.000Z | 2021-11-22T08:41:37.000Z | tests/example_svmlr.py | salmuz/svm-label-ranking | 876225400a9d81237b15200f67c09c72a618f6ff | [
"MIT"
] | null | null | null | tests/example_svmlr.py | salmuz/svm-label-ranking | 876225400a9d81237b15200f67c09c72a618f6ff | [
"MIT"
] | null | null | null | from svm_label_ranking import arff
from svm_label_ranking.model import SVMLR
# Example script of executing the svm multi label model.
# By default, we set the possible value of hyper-parameter v=[0.1, 0.4, 0.7, 0.9, 8, 24, 32, 128]. It could be
# assigned to other values by modifying the __init__ of the class.
# We s... | 32 | 110 | 0.743902 | 216 | 1,312 | 4.412037 | 0.375 | 0.100735 | 0.100735 | 0.088143 | 0.390346 | 0.335782 | 0.335782 | 0.335782 | 0.335782 | 0.335782 | 0 | 0.044866 | 0.116616 | 1,312 | 40 | 111 | 32.8 | 0.777394 | 0.25 | 0 | 0.363636 | 0 | 0 | 0.281603 | 0.021583 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f09b0ed66b34bd819b4810947b420f6bab467682 | 1,122 | py | Python | ReverseLinkedList.py | NickMonks/AlgorithmsAndDataStructure | ec1e7164b511cb755e6ae45c172df82cd0114b57 | [
"MIT"
] | null | null | null | ReverseLinkedList.py | NickMonks/AlgorithmsAndDataStructure | ec1e7164b511cb755e6ae45c172df82cd0114b57 | [
"MIT"
] | null | null | null | ReverseLinkedList.py | NickMonks/AlgorithmsAndDataStructure | ec1e7164b511cb755e6ae45c172df82cd0114b57 | [
"MIT"
] | null | null | null | # This is an input class. Do not edit.
class LinkedList:
def __init__(self, value):
self.value = value
self.next = None
def reverseLinkedList(head):
# The trick of the problem is that we need to use three pointers, not two (which is the common pattern).
# the first and third pointer act as a ... | 34 | 153 | 0.677362 | 209 | 1,122 | 3.617225 | 0.425837 | 0.026455 | 0.026455 | 0.039683 | 0.042328 | 0.042328 | 0.042328 | 0 | 0 | 0 | 0 | 0.044365 | 0.256684 | 1,122 | 33 | 154 | 34 | 0.86211 | 0.737077 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 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 |
f09b491dfcb4f1145fded909ff132824d911e3ed | 1,035 | py | Python | initrd/usr/share/dstat/dstat_wifi.py | OpenCloudOS/OpenCloudOS-tools | 06b12aab3182f4207d78a5d8733be03f0d7b69a4 | [
"MulanPSL-1.0"
] | 8 | 2021-11-26T06:19:06.000Z | 2022-01-11T01:30:11.000Z | initrd/usr/share/dstat/dstat_wifi.py | OpenCloudOS/OpenCloudOS-tools | 06b12aab3182f4207d78a5d8733be03f0d7b69a4 | [
"MulanPSL-1.0"
] | null | null | null | initrd/usr/share/dstat/dstat_wifi.py | OpenCloudOS/OpenCloudOS-tools | 06b12aab3182f4207d78a5d8733be03f0d7b69a4 | [
"MulanPSL-1.0"
] | 2 | 2021-12-21T08:36:02.000Z | 2021-12-21T08:55:38.000Z | global iwlibs
from pythonwifi import iwlibs
class dstat_plugin(dstat):
def __init__(self):
self.name = 'wifi'
self.type = 'd'
self.width = 3
self.scale = 33
self.check()
self.vars = iwlibs.getNICnames()
self.nick = ('lnk', 's/n')
self.cols = 2
de... | 31.363636 | 143 | 0.564251 | 124 | 1,035 | 4.66129 | 0.508065 | 0.103806 | 0.069204 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034237 | 0.322705 | 1,035 | 32 | 144 | 32.34375 | 0.7903 | 0.067633 | 0 | 0.153846 | 0 | 0 | 0.036765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | 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 |
f0a73e68c79e7df9d5a6350756412c1d17555bca | 354 | py | Python | solution/practice/algorithms/implementation/TheHurdleRace/solution.py | satyam857/HackerRank | b6c0c199a5e320b1b59fdedafda2630258314b76 | [
"MIT"
] | null | null | null | solution/practice/algorithms/implementation/TheHurdleRace/solution.py | satyam857/HackerRank | b6c0c199a5e320b1b59fdedafda2630258314b76 | [
"MIT"
] | null | null | null | solution/practice/algorithms/implementation/TheHurdleRace/solution.py | satyam857/HackerRank | b6c0c199a5e320b1b59fdedafda2630258314b76 | [
"MIT"
] | 1 | 2018-10-22T10:42:45.000Z | 2018-10-22T10:42:45.000Z | #!/bin/python3
import sys
def hurdleRace(k, height):
temp = max(height)-k
if (temp > 0):
return temp
else:
return 0
if __name__ == "__main__":
n, k = input().strip().split(' ')
n, k = [int(n), int(k)]
height = list(map(int, input().strip().split(' ')))
result = hurdle... | 19.666667 | 55 | 0.539548 | 47 | 354 | 3.893617 | 0.531915 | 0.114754 | 0.185792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011719 | 0.276836 | 354 | 17 | 56 | 20.823529 | 0.703125 | 0.036723 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.307692 | 0.076923 | 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 |
f0b204662ac6523a66be2b1b3e8d47a25cf6cafa | 2,246 | py | Python | dataset.py | Aria-K-Alethia/Semi-supervised-VAE | 5ede4e755515109a34d8f1bcc279c3c915a6c5ce | [
"MIT"
] | null | null | null | dataset.py | Aria-K-Alethia/Semi-supervised-VAE | 5ede4e755515109a34d8f1bcc279c3c915a6c5ce | [
"MIT"
] | null | null | null | dataset.py | Aria-K-Alethia/Semi-supervised-VAE | 5ede4e755515109a34d8f1bcc279c3c915a6c5ce | [
"MIT"
] | null | null | null | '''
Copyright (c) 2020 Aria-K-Alethia@github.com
Description:
mnist dataset
Licence:
MIT
THE USER OF THIS CODE AGREES TO ASSUME ALL LIABILITY FOR THE USE OF THIS CODE.
Any use of this code should display all the info above.
'''
import numpy as np
import torch
import torch.nn as nn
... | 42.377358 | 117 | 0.682547 | 287 | 2,246 | 5.167247 | 0.376307 | 0.042481 | 0.047202 | 0.04855 | 0.28321 | 0.213756 | 0.213756 | 0.213756 | 0.213756 | 0.213756 | 0 | 0.007523 | 0.230632 | 2,246 | 52 | 118 | 43.192308 | 0.850694 | 0.142476 | 0 | 0.060606 | 0 | 0 | 0.001059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.30303 | 0 | 0.424242 | 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 |
f0b881a0fee5a29499b06654d091e5cf3e209986 | 10,949 | py | Python | pbtranscript/tasks/TPickles.py | ylipacbio/pbtranscript | 6b4ef164f191ffd4201feb62b951d9eeac3315b6 | [
"BSD-3-Clause"
] | null | null | null | pbtranscript/tasks/TPickles.py | ylipacbio/pbtranscript | 6b4ef164f191ffd4201feb62b951d9eeac3315b6 | [
"BSD-3-Clause"
] | null | null | null | pbtranscript/tasks/TPickles.py | ylipacbio/pbtranscript | 6b4ef164f191ffd4201feb62b951d9eeac3315b6 | [
"BSD-3-Clause"
] | 1 | 2021-02-26T10:08:09.000Z | 2021-02-26T10:08:09.000Z | #!/usr/bin/env python
"""
Class ChunkTask defines info used for chunk tasks ICE, ice_partial
and ice_polish.
Class ChunkTasksPickle reads and writes ChunkTask objects from/to
input/output pickle files.
"""
import cPickle
import os.path as op
from pbcore.io import ContigSet
from pbtranscript.ice.IceFiles import IceFile... | 41.007491 | 112 | 0.629647 | 1,460 | 10,949 | 4.403425 | 0.14863 | 0.043553 | 0.046508 | 0.023643 | 0.333022 | 0.254161 | 0.168767 | 0.155701 | 0.155701 | 0.148701 | 0 | 0.000757 | 0.276281 | 10,949 | 266 | 113 | 41.161654 | 0.810575 | 0.030322 | 0 | 0.198758 | 0 | 0 | 0.042205 | 0 | 0 | 0 | 0 | 0 | 0.055901 | 0 | null | null | 0 | 0.024845 | null | null | 0.006211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f0b8eb740b1e01993800309e436063f8b53f5b15 | 1,392 | py | Python | bitrise_reports/models.py | dotanuki-labs/bitrise-reports | 11b2678ba1188c806059edb460d26405ff4bdf55 | [
"MIT"
] | 22 | 2021-03-25T16:00:32.000Z | 2022-02-10T15:56:52.000Z | bitrise_reports/models.py | dotanuki-labs/bitrise-reports | 11b2678ba1188c806059edb460d26405ff4bdf55 | [
"MIT"
] | 102 | 2021-03-25T15:17:49.000Z | 2022-03-31T08:15:40.000Z | bitrise_reports/models.py | dotanuki-labs/bitrise-reports | 11b2678ba1188c806059edb460d26405ff4bdf55 | [
"MIT"
] | 1 | 2021-03-29T10:41:12.000Z | 2021-03-29T10:41:12.000Z | # models.py
from dataclasses import dataclass
from enum import Enum
from typing import Dict
from datetime import datetime
class MachineSize(Enum):
g1small = "standard"
g1medium = "elite"
g1large = "elite-xl"
g2small = "g2.4core"
g2medium = "g2.8core"
g2large = "g2.12core"
class BuildStack(E... | 16 | 33 | 0.68319 | 158 | 1,392 | 5.993671 | 0.474684 | 0.126716 | 0.160507 | 0.202746 | 0.17529 | 0.059134 | 0 | 0 | 0 | 0 | 0 | 0.015009 | 0.234195 | 1,392 | 86 | 34 | 16.186047 | 0.873358 | 0.006466 | 0 | 0.274194 | 0 | 0 | 0.04055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.870968 | 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 |
f0ba0416e0e77ca699021bd96612d13b94e6eaf5 | 1,485 | py | Python | src/pattern_pascal_triangle1/main.py | pranshuag9/my-hackerblocks-codes | 817d4d8085d62d4dbdd7f52828fcb4285353fbf7 | [
"MIT"
] | null | null | null | src/pattern_pascal_triangle1/main.py | pranshuag9/my-hackerblocks-codes | 817d4d8085d62d4dbdd7f52828fcb4285353fbf7 | [
"MIT"
] | null | null | null | src/pattern_pascal_triangle1/main.py | pranshuag9/my-hackerblocks-codes | 817d4d8085d62d4dbdd7f52828fcb4285353fbf7 | [
"MIT"
] | 1 | 2020-10-01T09:39:59.000Z | 2020-10-01T09:39:59.000Z | '''
@author: Pranshu Aggarwal
@problem: https://hack.codingblocks.com/app/practice/1/285/problem
Algorithm to Generate(arr, n):
for row:=0 to n step by 1,
for col:=0 to row + 1 step by 1,
Set arr[row][col] = 1 if column is 0 or equals row
Set arr[row][col] = (Sum of Diagonally Pre... | 37.125 | 119 | 0.536027 | 249 | 1,485 | 3.128514 | 0.228916 | 0.06932 | 0.082157 | 0.057766 | 0.304236 | 0.245186 | 0.21181 | 0.183569 | 0.183569 | 0.143774 | 0 | 0.048972 | 0.312458 | 1,485 | 40 | 120 | 37.125 | 0.714006 | 0.438384 | 0 | 0.181818 | 1 | 0 | 0.013547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.227273 | 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 |
f0bb2d18f5acdef182b77a989105c48f87832c11 | 1,325 | py | Python | scale_client/sensors/community_seismic_network/virtual_csn_server/import_fixer.py | prav33nv/scale_client | dcbd6ed4c8f4a27606ebef5b5f9dabb2e4f3b806 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2018-05-24T00:59:05.000Z | 2020-01-03T08:03:33.000Z | scale_client/sensors/community_seismic_network/virtual_csn_server/import_fixer.py | prav33nv/scale_client | dcbd6ed4c8f4a27606ebef5b5f9dabb2e4f3b806 | [
"BSD-2-Clause-FreeBSD"
] | 26 | 2015-01-19T22:47:07.000Z | 2017-05-03T01:43:10.000Z | scale_client/sensors/community_seismic_network/virtual_csn_server/import_fixer.py | prav33nv/scale_client | dcbd6ed4c8f4a27606ebef5b5f9dabb2e4f3b806 | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-01-20T20:05:09.000Z | 2017-06-01T02:19:01.000Z | # coding=utf-8
"""
Enables protocol buffer support despite conflicting root package.
Notes
-----
Taken from App Engine Python Google Group. View the `original thread`_.
.. _original thread: https://groups.google.com/forum/
?fromgroups=#!topic/google-appengine/25EO1Arklfw
"""
import os
import sys
BASE_PAC... | 28.191489 | 79 | 0.673208 | 166 | 1,325 | 5.144578 | 0.548193 | 0.103045 | 0.056206 | 0.056206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004897 | 0.229434 | 1,325 | 46 | 80 | 28.804348 | 0.831538 | 0.404528 | 0 | 0 | 0 | 0 | 0.018158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.388889 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f0c41d6d713d226b86645704b6108857bbb8d511 | 726 | py | Python | services/engine/model.py | chrkaatz/BitVision | 73e264c32ec693128927f22e65458a57ee893c69 | [
"MIT"
] | 1,070 | 2018-01-12T03:21:56.000Z | 2022-03-29T01:39:54.000Z | services/engine/model.py | chrkaatz/BitVision | 73e264c32ec693128927f22e65458a57ee893c69 | [
"MIT"
] | 162 | 2018-01-09T06:46:12.000Z | 2021-07-24T22:11:45.000Z | services/engine/model.py | chrkaatz/BitVision | 73e264c32ec693128927f22e65458a57ee893c69 | [
"MIT"
] | 151 | 2018-01-07T00:27:54.000Z | 2022-03-16T08:36:19.000Z | #########
# GLOBALS
#########
from sklearn.linear_model import LogisticRegression
from sklearn.preprocessing import StandardScaler
######
# MAIN
######
class Model(object):
def __init__(self, training_data, hyperopt=False):
self.scaler = StandardScaler()
self.scaler.fit(training_data.drop("Tre... | 25.928571 | 93 | 0.680441 | 85 | 726 | 5.647059 | 0.494118 | 0.15 | 0.066667 | 0.0875 | 0.145833 | 0.145833 | 0.145833 | 0.145833 | 0 | 0 | 0 | 0.024671 | 0.162534 | 726 | 27 | 94 | 26.888889 | 0.764803 | 0.03719 | 0 | 0 | 0 | 0 | 0.025719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f0c7f8feb52e3bf6a09b44a09f1a6fd2e817b536 | 9,263 | py | Python | gizer/opdelete.py | racker/gizer | 4600999c35e99bce54071ea4f952b09b3fd5dc9b | [
"Apache-2.0"
] | null | null | null | gizer/opdelete.py | racker/gizer | 4600999c35e99bce54071ea4f952b09b3fd5dc9b | [
"Apache-2.0"
] | null | null | null | gizer/opdelete.py | racker/gizer | 4600999c35e99bce54071ea4f952b09b3fd5dc9b | [
"Apache-2.0"
] | null | null | null | """opdelete module
Implementation of "delete" operation for "realtime" etl process for
transferring data from MongoDB nested collections to PostgreSQL flat data
with using pregenerated schema and tailing records (events) in oplog.rs
collection.
How to use:
del = op_delete_stmts(dbreq, schema, path, str_id, datab... | 42.296804 | 92 | 0.622045 | 1,102 | 9,263 | 4.911978 | 0.167877 | 0.033253 | 0.025864 | 0.016627 | 0.419176 | 0.335489 | 0.309071 | 0.219102 | 0.214853 | 0.183078 | 0 | 0.003987 | 0.268919 | 9,263 | 218 | 93 | 42.490826 | 0.795334 | 0.21397 | 0 | 0.228188 | 1 | 0 | 0.05487 | 0.004157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040268 | false | 0 | 0.013423 | 0 | 0.114094 | 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 |
f0c92d03a10e1b644366403d84a912979de1c7ab | 820 | py | Python | friends/models.py | tss89/calendar-sem8-tp | 7e184dfe8a900a0f0a798de6d80ba1a6e824659f | [
"MIT"
] | null | null | null | friends/models.py | tss89/calendar-sem8-tp | 7e184dfe8a900a0f0a798de6d80ba1a6e824659f | [
"MIT"
] | null | null | null | friends/models.py | tss89/calendar-sem8-tp | 7e184dfe8a900a0f0a798de6d80ba1a6e824659f | [
"MIT"
] | null | null | null | from django.db import models
from calendar_sem8.settings import AUTH_USER_MODEL
class Friends(models.Model):
facebook_id = models.CharField(max_length=150, db_index=True, blank=True, unique=True)
email = models.CharField(max_length=100, default=None, null=True)
first_name = models.CharField(max_length=10... | 41 | 90 | 0.776829 | 116 | 820 | 5.284483 | 0.405172 | 0.097879 | 0.117455 | 0.156607 | 0.420881 | 0.375204 | 0.375204 | 0.375204 | 0.238173 | 0.163132 | 0 | 0.018031 | 0.120732 | 820 | 19 | 91 | 43.157895 | 0.832178 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f0ce6eccf5a75f3fba6bd1c45711679caa6fc377 | 13,482 | py | Python | curricula/serializers.py | code-dot-org/curriculumbuilder | e40330006145b8528f777a8aec2abff5b309d1c7 | [
"Apache-2.0"
] | 3 | 2019-10-22T20:21:15.000Z | 2022-01-12T19:38:48.000Z | curricula/serializers.py | code-dot-org/curriculumbuilder | e40330006145b8528f777a8aec2abff5b309d1c7 | [
"Apache-2.0"
] | 67 | 2019-09-27T17:04:52.000Z | 2022-03-21T22:16:23.000Z | curricula/serializers.py | code-dot-org/curriculumbuilder | e40330006145b8528f777a8aec2abff5b309d1c7 | [
"Apache-2.0"
] | 1 | 2019-10-18T16:06:31.000Z | 2019-10-18T16:06:31.000Z | import json
from rest_framework import serializers
from curricula.models import Unit, Chapter, Curriculum
from lessons.models import Lesson, Activity, Resource, Vocab, Annotation, Standard, Block
from documentation.models import Block
"""
Curriculum serializers
"""
class ResourceSerializer(serializers.ModelSerialize... | 33.288889 | 129 | 0.679276 | 1,350 | 13,482 | 6.665185 | 0.154815 | 0.027228 | 0.02645 | 0.026673 | 0.511558 | 0.443876 | 0.427762 | 0.397199 | 0.357079 | 0.322627 | 0 | 0.002091 | 0.219478 | 13,482 | 404 | 130 | 33.371287 | 0.852989 | 0.026035 | 0 | 0.422939 | 0 | 0 | 0.08332 | 0.012105 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007168 | 0.017921 | null | null | 0.007168 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f0d2098adb627eb83c3a39ee825cc3f18ecb18f5 | 3,939 | py | Python | extra/cda/cachegen.py | heinsm/qira | 3726403c4bf4a4f3cf74e1514001333b3fa0e6b4 | [
"MIT"
] | 2,056 | 2018-03-17T01:46:40.000Z | 2022-03-31T20:06:48.000Z | extra/cda/cachegen.py | heinsm/qira | 3726403c4bf4a4f3cf74e1514001333b3fa0e6b4 | [
"MIT"
] | 45 | 2018-05-15T08:50:51.000Z | 2022-01-01T10:51:40.000Z | extra/cda/cachegen.py | heinsm/qira | 3726403c4bf4a4f3cf74e1514001333b3fa0e6b4 | [
"MIT"
] | 365 | 2018-04-09T05:46:11.000Z | 2022-03-20T22:57:18.000Z | #!/usr/bin/env python2.7
import os
import sys
import cda_config
basedir = os.path.dirname(os.path.realpath(__file__))
#sys.path.append(basedir+"/clang/llvm/tools/clang/bindings/python")
import clang.cindex as ci
ci.Config.set_library_file(cda_config.LIBCLANG_PATH)
import pickle
from clang.cindex import CursorKind
im... | 29.177778 | 193 | 0.683676 | 563 | 3,939 | 4.687389 | 0.255773 | 0.077302 | 0.061387 | 0.050398 | 0.341796 | 0.294809 | 0.271315 | 0.220159 | 0.172414 | 0.172414 | 0 | 0.003757 | 0.189134 | 3,939 | 134 | 194 | 29.395522 | 0.82248 | 0.196497 | 0 | 0.158537 | 0 | 0 | 0.015669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 0.060976 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f0d6105f11a951be382dfbeaab120617efca0793 | 269 | py | Python | zipper.py | mas250/Python3 | 6ac6f0ffe7869cd7520b2ae0debf3650116a97b1 | [
"MIT"
] | 1 | 2019-12-28T12:31:28.000Z | 2019-12-28T12:31:28.000Z | zipper.py | mas250/Python3 | 6ac6f0ffe7869cd7520b2ae0debf3650116a97b1 | [
"MIT"
] | null | null | null | zipper.py | mas250/Python3 | 6ac6f0ffe7869cd7520b2ae0debf3650116a97b1 | [
"MIT"
] | null | null | null | a = [3, 4, 5, 6]
b = ['a', 'b', 'c', 'd']
def zipper(a,b):
newZip = []
if len (a) == len(b):
for i in range(len(a)):
newZip.append([a[i], b[i]])
print (newZip)
if len(a)!= len(b):
print("lists do not match")
zipper(a,b)
| 20.692308 | 39 | 0.434944 | 47 | 269 | 2.489362 | 0.489362 | 0.051282 | 0.136752 | 0.205128 | 0.273504 | 0.273504 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.32342 | 269 | 12 | 40 | 22.416667 | 0.620879 | 0 | 0 | 0 | 0 | 0 | 0.081784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0.181818 | 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 |
f0d6b816a7dc983780edaaea8ca62b8dd6697b17 | 3,933 | py | Python | modules/apertium_wikistats.py | apertium/phenny | 77f302bac05e50cd7d19bc5cc2737bb98fec0cc7 | [
"EFL-2.0"
] | 7 | 2018-10-29T18:01:47.000Z | 2022-01-21T04:13:46.000Z | modules/apertium_wikistats.py | apertium/phenny | 77f302bac05e50cd7d19bc5cc2737bb98fec0cc7 | [
"EFL-2.0"
] | 225 | 2018-03-08T10:41:50.000Z | 2021-11-01T19:51:17.000Z | modules/apertium_wikistats.py | apertium/phenny | 77f302bac05e50cd7d19bc5cc2737bb98fec0cc7 | [
"EFL-2.0"
] | 44 | 2018-03-19T15:30:15.000Z | 2020-07-29T08:47:45.000Z | #!/usr/bin/env python3
"""
apertium_wikistats.py - Phenny Apertium Wiki Stats Module
"""
import os
import requests
import shlex
import subprocess
import urllib.request
import urllib.error
from web import REQUEST_TIMEOUT
from tools import dot_path
PARENT_DIRECTORY = os.path.dirname(os.path.dirname(os.path.abspath(__fil... | 40.546392 | 143 | 0.628274 | 450 | 3,933 | 5.415556 | 0.304444 | 0.033238 | 0.041855 | 0.041034 | 0.39762 | 0.333607 | 0.256463 | 0.212146 | 0.194091 | 0.194091 | 0 | 0.002706 | 0.248411 | 3,933 | 96 | 144 | 40.96875 | 0.821719 | 0.032545 | 0 | 0.394737 | 0 | 0.013158 | 0.235232 | 0.01846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0.078947 | 0.105263 | 0 | 0.197368 | 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 |
f0d74849b355b954d5e7b2486a017df0c4292161 | 3,424 | py | Python | hydragnn/models/CGCNNStack.py | pzhanggit/HydraGNN | 0af9f4e567338d0104e631d69988ab062f425fe4 | [
"BSD-3-Clause"
] | null | null | null | hydragnn/models/CGCNNStack.py | pzhanggit/HydraGNN | 0af9f4e567338d0104e631d69988ab062f425fe4 | [
"BSD-3-Clause"
] | null | null | null | hydragnn/models/CGCNNStack.py | pzhanggit/HydraGNN | 0af9f4e567338d0104e631d69988ab062f425fe4 | [
"BSD-3-Clause"
] | null | null | null | ##############################################################################
# Copyright (c) 2021, Oak Ridge National Laboratory #
# All rights reserved. #
# #
# Th... | 43.341772 | 214 | 0.534755 | 372 | 3,424 | 4.744624 | 0.432796 | 0.022663 | 0.018697 | 0.032295 | 0.075921 | 0.049858 | 0.049858 | 0.049858 | 0.049858 | 0 | 0 | 0.003135 | 0.347839 | 3,424 | 78 | 215 | 43.897436 | 0.787282 | 0.431075 | 0 | 0.26 | 0 | 0.02 | 0.149485 | 0.040664 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.08 | false | 0 | 0.1 | 0.04 | 0.26 | 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 |
f0d7ed7607ff9b448f15a724e3b18a6559e3e3a0 | 1,609 | py | Python | graph_recsys_benchmark/nn/kgcn_conv.py | ecom-research/graph_recsys_benchmark | 4c7e7128e18c250cee5369dd8a00c3e008fc5292 | [
"MIT"
] | 1 | 2021-06-12T11:10:55.000Z | 2021-06-12T11:10:55.000Z | graph_recsys_benchmark/nn/kgcn_conv.py | ecml-peagnn/graph_recsys_benchmark | 4c7e7128e18c250cee5369dd8a00c3e008fc5292 | [
"MIT"
] | null | null | null | graph_recsys_benchmark/nn/kgcn_conv.py | ecml-peagnn/graph_recsys_benchmark | 4c7e7128e18c250cee5369dd8a00c3e008fc5292 | [
"MIT"
] | 1 | 2021-04-07T12:31:29.000Z | 2021-04-07T12:31:29.000Z | import torch
from torch.nn import Parameter
import torch.nn.functional as F
from torch_geometric.nn.conv import MessagePassing
from torch_geometric.utils import remove_self_loops
from torch_geometric.nn.inits import glorot, zeros
class KGCNConv(MessagePassing):
def __init__(
self, in_channels, out_ch... | 32.18 | 75 | 0.624612 | 205 | 1,609 | 4.604878 | 0.317073 | 0.069915 | 0.057203 | 0.042373 | 0.052966 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003416 | 0.272219 | 1,609 | 49 | 76 | 32.836735 | 0.802733 | 0 | 0 | 0 | 0 | 0 | 0.016843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.166667 | 0.055556 | 0.472222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f0d88cbfa56337695912166479e4da8893b042fc | 3,678 | py | Python | ehc/unit.py | jamesbowman/ga144tools | 3754cebbd90491aa581ac177d1125f4a02a38f47 | [
"MIT"
] | 13 | 2015-01-20T11:51:40.000Z | 2019-10-31T05:53:44.000Z | ehc/unit.py | jamesbowman/ga144tools | 3754cebbd90491aa581ac177d1125f4a02a38f47 | [
"MIT"
] | 3 | 2017-07-30T22:25:30.000Z | 2019-02-05T01:39:42.000Z | ehc/unit.py | jamesbowman/ga144tools | 3754cebbd90491aa581ac177d1125f4a02a38f47 | [
"MIT"
] | 1 | 2017-07-30T21:50:04.000Z | 2017-07-30T21:50:04.000Z | import sys
import time
import struct
import serial
import random
from ga144 import GA144
def trivial(load, send, recv):
load("trivial.ga")
for i in range(4):
send('NORTH', 100)
assert 100 == recv('EAST')
send('EAST', 200)
assert 200 == recv('SOUTH')
send('SOUTH', 300)
... | 25.365517 | 62 | 0.491028 | 525 | 3,678 | 3.386667 | 0.268571 | 0.031496 | 0.016873 | 0.024747 | 0.224409 | 0.183352 | 0.143982 | 0.107987 | 0.107987 | 0.082115 | 0 | 0.074979 | 0.343665 | 3,678 | 144 | 63 | 25.541667 | 0.661558 | 0.070962 | 0 | 0.178862 | 0 | 0 | 0.058409 | 0 | 0 | 0 | 0.015556 | 0 | 0.065041 | 0 | null | null | 0 | 0.04878 | null | null | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f0dac08610d937c915c82d07a6565ceb25ff5e37 | 626 | py | Python | pymlconf/yamlhelper.py | pylover/pymlconf | 4111ed84b23201957ee789b58e6818f330eeb28b | [
"MIT"
] | 36 | 2015-02-09T14:20:32.000Z | 2020-12-18T03:01:29.000Z | pymlconf/yamlhelper.py | pylover/pymlconf | 4111ed84b23201957ee789b58e6818f330eeb28b | [
"MIT"
] | 23 | 2015-06-05T07:30:18.000Z | 2020-05-26T17:45:46.000Z | pymlconf/yamlhelper.py | pylover/pymlconf | 4111ed84b23201957ee789b58e6818f330eeb28b | [
"MIT"
] | 5 | 2016-02-19T14:22:28.000Z | 2018-08-06T14:04:44.000Z | import sys
import yaml
from yaml import YAMLError
try:
from yaml import CLoader as Loader
except ImportError: # pragma: no cover
from yaml import Loader
def loads(string):
try:
return yaml.load(string, Loader)
except YAMLError as ex:
print('YAML parsing error', file=sys.stderr)
... | 20.193548 | 52 | 0.661342 | 88 | 626 | 4.681818 | 0.465909 | 0.067961 | 0.126214 | 0.131068 | 0.140777 | 0.140777 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246006 | 626 | 30 | 53 | 20.866667 | 0.872881 | 0.025559 | 0 | 0.095238 | 0 | 0 | 0.085526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.047619 | 0.571429 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f0e07f239a465a1fa9235fa8cb3b0fbde08bd8aa | 464 | py | Python | regtests/bench/add.py | gython/Gython | 52f49260f29582dc3274da77a9aaead142cfae32 | [
"BSD-3-Clause"
] | 65 | 2015-01-22T07:35:09.000Z | 2022-03-13T15:51:57.000Z | regtests/bench/add.py | gython/Gython | 52f49260f29582dc3274da77a9aaead142cfae32 | [
"BSD-3-Clause"
] | null | null | null | regtests/bench/add.py | gython/Gython | 52f49260f29582dc3274da77a9aaead142cfae32 | [
"BSD-3-Clause"
] | 14 | 2017-04-29T04:50:36.000Z | 2022-02-06T11:40:30.000Z | '''
loop and add (integer)
'''
from time import clock
def main():
if PYTHON=='PYTHONJS': ## about 25% faster with normal and javascript backends
pythonjs.configure( direct_operator='+' )
pass
start = clock()
a = -1000000
for i in range(1000000):
for j in range(100):
a = 1 + 2
print(clock()-start)
#... | 20.173913 | 84 | 0.665948 | 72 | 464 | 4.277778 | 0.736111 | 0.064935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057377 | 0.211207 | 464 | 22 | 85 | 21.090909 | 0.784153 | 0.43319 | 0 | 0 | 0 | 0 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.083333 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f0e85162afd4b7115cae3dea298400ddc0f7af12 | 3,287 | py | Python | tests/test_map.py | wiremas/map | 384d61b93bca959babdfb0732bce1eccf1e31473 | [
"MIT"
] | 6 | 2019-06-29T21:25:35.000Z | 2021-11-03T12:35:36.000Z | tests/test_map.py | wiremas/map | 384d61b93bca959babdfb0732bce1eccf1e31473 | [
"MIT"
] | null | null | null | tests/test_map.py | wiremas/map | 384d61b93bca959babdfb0732bce1eccf1e31473 | [
"MIT"
] | null | null | null | import os
import sys
import unittest
class TestAsyncMap(unittest.TestCase):
def test_single_arg_funcs(self):
""" test if we can pass single arguments of differnt types """
single_int_arg = [1]
r = async.map(simple_return_func, single_int_arg, chunk_size=1, modules=['time as t'])
s... | 31.912621 | 125 | 0.640402 | 512 | 3,287 | 3.865234 | 0.224609 | 0.03335 | 0.072259 | 0.077817 | 0.43052 | 0.411824 | 0.386054 | 0.331986 | 0.30571 | 0.300152 | 0 | 0.028407 | 0.207484 | 3,287 | 102 | 126 | 32.22549 | 0.731286 | 0.263766 | 0 | 0.12963 | 0 | 0 | 0.035 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | null | null | 0 | 0.074074 | null | null | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f0eeeaa214c07e1906756e1a429c8b42fe981de7 | 3,119 | py | Python | dnsTunnelIdentifier/DNSInfo.py | Inocustonner/dnsTunnelIdentifier | d2d2129456ab85c73584eca1e9c4a16119326ae1 | [
"BSD-3-Clause"
] | null | null | null | dnsTunnelIdentifier/DNSInfo.py | Inocustonner/dnsTunnelIdentifier | d2d2129456ab85c73584eca1e9c4a16119326ae1 | [
"BSD-3-Clause"
] | 1 | 2021-02-03T11:35:20.000Z | 2021-02-04T07:55:38.000Z | dnsTunnelIdentifier/DNSInfo.py | Inocustonner/dnsTunnelIdentifier | d2d2129456ab85c73584eca1e9c4a16119326ae1 | [
"BSD-3-Clause"
] | null | null | null | import enum
from dnsTunnelIdentifier.functional import compose
from dnsTunnelIdentifier.utils import getLogger
from scapy.utils import RawPcapReader
from scapy.layers.l2 import Ether
from scapy.layers.inet import IP, UDP
from scapy.layers.dns import DNS, DNSQR, DNSRR
from typing import Union, List, Tuple
import trac... | 25.77686 | 102 | 0.641872 | 456 | 3,119 | 4.298246 | 0.348684 | 0.039286 | 0.018367 | 0.027551 | 0.135714 | 0.109184 | 0.067347 | 0.035714 | 0.035714 | 0.035714 | 0 | 0.014131 | 0.228599 | 3,119 | 121 | 103 | 25.77686 | 0.800499 | 0.025008 | 0 | 0.101124 | 0 | 0.011236 | 0.04139 | 0.027716 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157303 | false | 0 | 0.101124 | 0.067416 | 0.58427 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f0f99119d103d3227b9b826bcdbc0c7902b4f6d8 | 3,047 | py | Python | auctions/migrations/0002_auctionlisting_bids_comments_watchlist.py | Architkapoor13/Auctions | fd4dc67f8c03662df260ff12f76fc0be697ae5d7 | [
"MIT"
] | 5 | 2021-04-22T17:39:32.000Z | 2022-03-07T16:05:35.000Z | auctions/migrations/0002_auctionlisting_bids_comments_watchlist.py | Architkapoor13/Auctions | fd4dc67f8c03662df260ff12f76fc0be697ae5d7 | [
"MIT"
] | null | null | null | auctions/migrations/0002_auctionlisting_bids_comments_watchlist.py | Architkapoor13/Auctions | fd4dc67f8c03662df260ff12f76fc0be697ae5d7 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-09-13 18:33
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auctions', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | 52.534483 | 175 | 0.625862 | 320 | 3,047 | 5.775 | 0.275 | 0.038961 | 0.060606 | 0.095238 | 0.645563 | 0.617424 | 0.617424 | 0.600649 | 0.529221 | 0.44697 | 0 | 0.017131 | 0.233672 | 3,047 | 57 | 176 | 53.45614 | 0.774304 | 0.014769 | 0 | 0.431373 | 1 | 0.019608 | 0.154333 | 0.023 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f0fa4782150d5083d7c7c4b9f27f5ea7d639f4c5 | 1,563 | py | Python | leetcode_python/Array/fair-candy-swap.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | 18 | 2019-08-01T07:45:02.000Z | 2022-03-31T18:05:44.000Z | leetcode_python/Array/fair-candy-swap.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | leetcode_python/Array/fair-candy-swap.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | 15 | 2019-12-29T08:46:20.000Z | 2022-03-08T14:14:05.000Z | # V0
# V1
# https://www.jiuzhang.com/solution/fair-candy-swap/#tag-highlight-lang-python
class Solution:
"""
@param A: an array
@param B: an array
@return: an integer array
"""
def fairCandySwap(self, A, B):
# Write your code here.
ans = []
sumA = sum(A)
sumB =... | 24.809524 | 78 | 0.43762 | 219 | 1,563 | 3.091324 | 0.328767 | 0.035451 | 0.041359 | 0.047267 | 0.364845 | 0.295421 | 0.227474 | 0.227474 | 0.227474 | 0.227474 | 0 | 0.028384 | 0.413948 | 1,563 | 63 | 79 | 24.809524 | 0.710699 | 0.244402 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f0fdb39e9667fc5f88fba809a6d17a1d3ba23898 | 1,313 | py | Python | ExerciciosComStrings/13.py | TheCarvalho/atividades-wikipython | 9163d5de40dbed0d73917f6257e64a651a77e085 | [
"Unlicense"
] | null | null | null | ExerciciosComStrings/13.py | TheCarvalho/atividades-wikipython | 9163d5de40dbed0d73917f6257e64a651a77e085 | [
"Unlicense"
] | null | null | null | ExerciciosComStrings/13.py | TheCarvalho/atividades-wikipython | 9163d5de40dbed0d73917f6257e64a651a77e085 | [
"Unlicense"
] | null | null | null |
# todo 13. Jogo da palavra embaralhada. Desenvolva um jogo em que o usuário tenha que adivinhar uma palavra que será mostrada com as letras embaralhadas. O programa terá uma lista de palavras lidas de um arquivo texto e escolherá uma aleatoriamente. O jogador terá seis tentativas para adivinhar a palavra. Ao final a p... | 29.840909 | 401 | 0.657273 | 188 | 1,313 | 4.590426 | 0.553191 | 0.034762 | 0.013905 | 0.034762 | 0.088065 | 0.088065 | 0.088065 | 0.088065 | 0.088065 | 0 | 0 | 0.005859 | 0.220107 | 1,313 | 43 | 402 | 30.534884 | 0.836914 | 0.303884 | 0 | 0.2 | 0 | 0 | 0.277717 | 0.136114 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b1121098908e128236fba1cd7656078359213be | 1,896 | py | Python | azdevman/commands/delete.py | kcraley/azdevman | 703267022bbcb93fd310b6537b1a84ea18f961e1 | [
"MIT"
] | null | null | null | azdevman/commands/delete.py | kcraley/azdevman | 703267022bbcb93fd310b6537b1a84ea18f961e1 | [
"MIT"
] | 1 | 2021-06-01T23:22:52.000Z | 2021-06-01T23:22:52.000Z | azdevman/commands/delete.py | kcraley/azdevman | 703267022bbcb93fd310b6537b1a84ea18f961e1 | [
"MIT"
] | null | null | null | import click
@click.group('delete')
@click.pass_obj
def delete(ctx):
"""Delete Azure DevOps resources"""
@delete.command('repo')
@click.option('-p', '--project', 'project',
help='Project name or id the repository in')
@click.argument('repository_names', nargs=-1, required=True)
@click.pass_obj
def... | 38.693878 | 88 | 0.67616 | 230 | 1,896 | 5.386957 | 0.278261 | 0.072639 | 0.029056 | 0.03632 | 0.391445 | 0.282486 | 0.282486 | 0.282486 | 0.229217 | 0.229217 | 0 | 0.002028 | 0.219937 | 1,896 | 48 | 89 | 39.5 | 0.8357 | 0.054325 | 0 | 0.384615 | 0 | 0 | 0.177265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.025641 | 0 | 0.102564 | 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 |
0b14ebb4f84ed4c3310d457d6e283082d5eb0d7a | 352 | py | Python | cookbook/migrations/0018_auto_20200216_2303.py | mhoellmann/recipes | 525aa4e4a4f218a47e1770498fff9fa8b0d7a097 | [
"MIT"
] | null | null | null | cookbook/migrations/0018_auto_20200216_2303.py | mhoellmann/recipes | 525aa4e4a4f218a47e1770498fff9fa8b0d7a097 | [
"MIT"
] | 1 | 2020-04-11T09:47:20.000Z | 2020-04-11T09:47:20.000Z | cookbook/migrations/0018_auto_20200216_2303.py | mcejp/recipes | 913d858473a1d44b2ced02e09fddfc4d320848b7 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-02-16 22:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cookbook', '0017_auto_20200216_2257'),
]
operations = [
migrations.RenameModel(
old_name='RecipeIngredients',
new_name='Reci... | 19.555556 | 48 | 0.619318 | 36 | 352 | 5.916667 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121569 | 0.275568 | 352 | 17 | 49 | 20.705882 | 0.713725 | 0.127841 | 0 | 0 | 1 | 0 | 0.209836 | 0.07541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b15d29ae80a75d106de503845d05424cd252b8e | 13,871 | py | Python | main_1.py | Alexkorkod/deckmaker | 103e08b576284e01a4ebc5c40199d5d351c367c5 | [
"MIT"
] | null | null | null | main_1.py | Alexkorkod/deckmaker | 103e08b576284e01a4ebc5c40199d5d351c367c5 | [
"MIT"
] | null | null | null | main_1.py | Alexkorkod/deckmaker | 103e08b576284e01a4ebc5c40199d5d351c367c5 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import math, json, operator
import sys
import random
import time
sys.setrecursionlimit(10)
with open('bd.json', 'r') as f:
read_data = f.read()
ar = json.loads(read_data)
def findMostExpensiveCardInHand(hand):
meindex = 0
max_cost = 0
for (i,card) in enumerate(hand):
if ... | 33.831707 | 143 | 0.520943 | 1,694 | 13,871 | 4.104486 | 0.116293 | 0.047174 | 0.025888 | 0.019416 | 0.383432 | 0.320725 | 0.27125 | 0.231699 | 0.20768 | 0.199051 | 0 | 0.015774 | 0.328167 | 13,871 | 409 | 144 | 33.914425 | 0.730336 | 0.006705 | 0 | 0.327225 | 0 | 0 | 0.088639 | 0.004356 | 0 | 0 | 0 | 0.002445 | 0 | 0 | null | null | 0 | 0.010471 | 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 |
0b16a1de749c76fec83cfa801b6de96b67c0487f | 5,533 | py | Python | wzdat/nbdependresolv.py | haje01/wzdat | fad4aa411d63f643127842fdbf9450eb6d967503 | [
"BSD-3-Clause"
] | 15 | 2015-03-17T00:45:34.000Z | 2021-04-14T12:31:39.000Z | wzdat/nbdependresolv.py | haje01/wzdat | fad4aa411d63f643127842fdbf9450eb6d967503 | [
"BSD-3-Clause"
] | null | null | null | wzdat/nbdependresolv.py | haje01/wzdat | fad4aa411d63f643127842fdbf9450eb6d967503 | [
"BSD-3-Clause"
] | 2 | 2016-08-23T06:25:44.000Z | 2021-04-14T12:31:42.000Z | # -*- coding: utf-8 -*-
"""Notebook dependency resolver."""
import os
import logging
from wzdat.rundb import check_notebook_error_and_changed, reset_run,\
get_run_info
from wzdat.util import iter_notebook_manifest, get_notebook_dir
from wzdat.ipynb_runner import update_notebook_by_run, NoDataFound
from wzdat.manif... | 32.934524 | 79 | 0.608892 | 665 | 5,533 | 4.890226 | 0.196992 | 0.016605 | 0.012915 | 0.020295 | 0.151907 | 0.067036 | 0.01845 | 0.01845 | 0 | 0 | 0 | 0.001043 | 0.306705 | 5,533 | 167 | 80 | 33.131737 | 0.846715 | 0.054039 | 0 | 0.114754 | 0 | 0 | 0.046841 | 0.004584 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016393 | 0.057377 | 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 |
0b19fb6ba7941824ebaaad6529fd26d774db02bf | 2,633 | py | Python | AppDB/test/unit/test_cassandra_interface.py | christianbaun/appscale | c24ddfd987c8eed8ed8864cc839cc0556a8af3c7 | [
"Apache-2.0"
] | 2 | 2018-10-09T17:48:12.000Z | 2019-01-15T10:18:19.000Z | AppDB/test/unit/test_cassandra_interface.py | christianbaun/appscale | c24ddfd987c8eed8ed8864cc839cc0556a8af3c7 | [
"Apache-2.0"
] | null | null | null | AppDB/test/unit/test_cassandra_interface.py | christianbaun/appscale | c24ddfd987c8eed8ed8864cc839cc0556a8af3c7 | [
"Apache-2.0"
] | 1 | 2022-02-20T20:57:12.000Z | 2022-02-20T20:57:12.000Z | #!/usr/bin/env python
# Programmer: Navraj Chohan
import os
import sys
import unittest
from cassandra.cluster import Cluster
from cassandra.query import BatchStatement
from flexmock import flexmock
sys.path.append(os.path.join(os.path.dirname(__file__), '../../'))
from cassandra_env import cassandra_interface
sys.p... | 27.427083 | 76 | 0.665401 | 319 | 2,633 | 5.282132 | 0.250784 | 0.100297 | 0.049852 | 0.071217 | 0.627893 | 0.627893 | 0.627893 | 0.60178 | 0.60178 | 0.60178 | 0 | 0.01765 | 0.182302 | 2,633 | 95 | 77 | 27.715789 | 0.764979 | 0.05507 | 0 | 0.516129 | 0 | 0 | 0.075312 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 1 | 0.096774 | false | 0 | 0.129032 | 0 | 0.241935 | 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 |
0b1a535a0d3a86fa36dcdd409f00bfa59e9fecc3 | 2,291 | py | Python | tools/Video/DeltaColormap/analyze.py | swharden/ephys-projects | fb675c17d19cfcabde726cbc3468741c64661870 | [
"MIT"
] | null | null | null | tools/Video/DeltaColormap/analyze.py | swharden/ephys-projects | fb675c17d19cfcabde726cbc3468741c64661870 | [
"MIT"
] | null | null | null | tools/Video/DeltaColormap/analyze.py | swharden/ephys-projects | fb675c17d19cfcabde726cbc3468741c64661870 | [
"MIT"
] | null | null | null | """
This script starts with a folder of BMP files generated with ImageJ.
It calculates a mean baseline image and uses that to create dF/F images.
Images are then plotted, annotated, saved in another folder, and encoded as a video.
"""
from os import path
import pathlib
import numpy as np
import matplotlib.pyplot as pl... | 36.951613 | 110 | 0.678306 | 292 | 2,291 | 5.294521 | 0.493151 | 0.035576 | 0.028461 | 0.009056 | 0.104787 | 0.104787 | 0.104787 | 0.104787 | 0.104787 | 0.104787 | 0 | 0.052802 | 0.189873 | 2,291 | 61 | 111 | 37.557377 | 0.780172 | 0.098647 | 0 | 0 | 1 | 0.068182 | 0.193972 | 0.094312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.113636 | 0 | 0.159091 | 0.068182 | 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 |
0b1e1a95e108e7549cbcf5fd7d903ddfe0273c0b | 240 | py | Python | h5_file.py | mns1yash/Work_Yash | 80dccc7dcbcc52d0760bb70442dbcf5e9eb066fc | [
"MIT"
] | null | null | null | h5_file.py | mns1yash/Work_Yash | 80dccc7dcbcc52d0760bb70442dbcf5e9eb066fc | [
"MIT"
] | null | null | null | h5_file.py | mns1yash/Work_Yash | 80dccc7dcbcc52d0760bb70442dbcf5e9eb066fc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 24 12:17:42 2020
@author: BEL
"""
import tensorflow as tf
import keras
import h5py
f = h5py.File('individual_model.h5','r')
list(f.keys())
strategy = tf.distribute.MirroredStrategy()
strategy
| 17.142857 | 43 | 0.7 | 37 | 240 | 4.513514 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077295 | 0.1375 | 240 | 13 | 44 | 18.461538 | 0.729469 | 0.3 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0b1ed81ec61917779ec886692a923819fd2d2e4d | 590 | py | Python | helper_functions.py | dendisuhubdy/pytorch_HMM | 3235326027328e1b0377b17f9dad8fcc56a3668c | [
"Apache-2.0"
] | 88 | 2020-01-27T06:25:23.000Z | 2022-02-21T00:42:52.000Z | helper_functions.py | dendisuhubdy/pytorch_HMM | 3235326027328e1b0377b17f9dad8fcc56a3668c | [
"Apache-2.0"
] | 3 | 2021-01-07T13:19:55.000Z | 2022-02-11T01:41:05.000Z | helper_functions.py | dendisuhubdy/pytorch_HMM | 3235326027328e1b0377b17f9dad8fcc56a3668c | [
"Apache-2.0"
] | 20 | 2020-01-26T23:38:25.000Z | 2022-03-29T07:34:09.000Z | import torch
def one_hot(letters, S):
"""
letters : LongTensor of shape (batch size, sequence length)
S : integer
Convert batch of integer letter indices to one-hot vectors of dimension S (# of possible letters).
"""
out = torch.zeros(letters.shape[0], letters.shape[1], S)
for i in range(0, letters.shape[0]):... | 24.583333 | 99 | 0.662712 | 102 | 590 | 3.794118 | 0.45098 | 0.124031 | 0.100775 | 0.072351 | 0.103359 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018634 | 0.181356 | 590 | 23 | 100 | 25.652174 | 0.782609 | 0.422034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 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 |
0b1f75ea136b12d16271128e65d6e4c7d297603d | 3,706 | py | Python | ui/about.py | Chereq/cryptex | 64201d04ebe4c7f904ae771cc252650772c12743 | [
"MIT"
] | null | null | null | ui/about.py | Chereq/cryptex | 64201d04ebe4c7f904ae771cc252650772c12743 | [
"MIT"
] | null | null | null | ui/about.py | Chereq/cryptex | 64201d04ebe4c7f904ae771cc252650772c12743 | [
"MIT"
] | 1 | 2021-05-05T09:25:24.000Z | 2021-05-05T09:25:24.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'about.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui,... | 50.767123 | 114 | 0.733405 | 412 | 3,706 | 6.429612 | 0.325243 | 0.09966 | 0.04228 | 0.04681 | 0.14496 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01162 | 0.164058 | 3,706 | 72 | 115 | 51.472222 | 0.843447 | 0.072855 | 0 | 0 | 1 | 0 | 0.080222 | 0.012252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.017241 | 0.017241 | 0 | 0.068966 | 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 |
9bd3ff51e5ab4bbc924762b0bdc9adde93ac7077 | 385 | py | Python | test_programs/readConfig.py | hackpsu-tech/hackPSUS2018-rfid | 0f33b588ddbf4a82ced9a25ba8a8384649b16017 | [
"MIT"
] | null | null | null | test_programs/readConfig.py | hackpsu-tech/hackPSUS2018-rfid | 0f33b588ddbf4a82ced9a25ba8a8384649b16017 | [
"MIT"
] | 2 | 2018-04-02T14:32:13.000Z | 2018-08-20T22:54:15.000Z | test_programs/readConfig.py | hackpsu-tech/hackPSUS2018-rfid | 0f33b588ddbf4a82ced9a25ba8a8384649b16017 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
This application simply reads a config file created by the HackPSUconfig module and prints the output to the console
"""
import HackPSUconfig as config
configFile = input('Please enter the name of a configuration file: ')
dict = config.getProperties(configFile)
print('Dictionary:')
for key in d... | 25.666667 | 116 | 0.748052 | 53 | 385 | 5.433962 | 0.698113 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148052 | 385 | 15 | 117 | 25.666667 | 0.878049 | 0.345455 | 0 | 0 | 0 | 0 | 0.318367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9be29f217d56542db20a231180a3704d2348f3ea | 5,404 | py | Python | BirdSongToolbox/PreProcFlow.py | Darilbii/BirdSongToolbox | f4853a7f6cb5c4ef0f57e9f346be08f6e153ca65 | [
"Apache-2.0"
] | 3 | 2021-08-03T00:03:37.000Z | 2021-09-25T04:37:52.000Z | BirdSongToolbox/PreProcFlow.py | Darilbii/BirdSongToolbox | f4853a7f6cb5c4ef0f57e9f346be08f6e153ca65 | [
"Apache-2.0"
] | 1 | 2021-08-08T11:04:36.000Z | 2021-08-08T11:04:36.000Z | BirdSongToolbox/PreProcFlow.py | Darilbii/BirdSongToolbox | f4853a7f6cb5c4ef0f57e9f346be08f6e153ca65 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import os
import h5py
import sys
import scipy
import scipy.io.wavfile
from scipy.signal import butter
# Reconsider the Handling of SN_L, Gp_L, and Gp in the Freq_Bin Commands
# Command for Initiallizing work space with Access to both: All the Data and Ephysflow Commands
def initiate_path():
"""... | 34.420382 | 122 | 0.6745 | 842 | 5,404 | 4.17696 | 0.292162 | 0.023884 | 0.01706 | 0.022747 | 0.181405 | 0.141598 | 0.122263 | 0.112596 | 0.112596 | 0.092693 | 0 | 0.014861 | 0.227979 | 5,404 | 156 | 123 | 34.641026 | 0.82814 | 0.400444 | 0 | 0.023529 | 0 | 0 | 0.069226 | 0.031781 | 0 | 0 | 0 | 0 | 0.035294 | 1 | 0.058824 | false | 0.058824 | 0.082353 | 0 | 0.2 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9be83457e0d803caf6d166b553718fa5b4ff9746 | 405 | py | Python | tr_sys/tr_ars/migrations/0002_actor_active.py | jdr0887/Relay | 323b954033dc7fc6bd9acc52cfec7133594ee59a | [
"MIT"
] | 4 | 2020-02-06T17:15:46.000Z | 2021-08-30T14:16:40.000Z | tr_sys/tr_ars/migrations/0002_actor_active.py | jdr0887/Relay | 323b954033dc7fc6bd9acc52cfec7133594ee59a | [
"MIT"
] | 109 | 2020-04-27T21:07:13.000Z | 2022-02-18T18:34:53.000Z | tr_sys/tr_ars/migrations/0002_actor_active.py | jdr0887/Relay | 323b954033dc7fc6bd9acc52cfec7133594ee59a | [
"MIT"
] | 23 | 2020-01-14T17:02:20.000Z | 2022-02-11T16:20:00.000Z | # Generated by Django 3.2.1 on 2021-06-01 13:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tr_ars', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='actor',
name='active',
field... | 21.315789 | 84 | 0.6 | 45 | 405 | 5.311111 | 0.8 | 0.075314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065292 | 0.281481 | 405 | 18 | 85 | 22.5 | 0.756014 | 0.111111 | 0 | 0 | 1 | 0 | 0.122905 | 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 |
9bf0fe9e3305af9187c2244a95499530d21fac75 | 2,175 | py | Python | agilicus/v1/apigenerator/deployment.py | Agilicus/kustomize-plugins | df7249c0c841e2b59b2ea76b89bfa4915415a8de | [
"Apache-2.0"
] | 58 | 2019-08-16T16:26:03.000Z | 2022-01-13T20:57:13.000Z | agilicus/v1/apigenerator/deployment.py | Agilicus/kustomize-plugins | df7249c0c841e2b59b2ea76b89bfa4915415a8de | [
"Apache-2.0"
] | 2 | 2019-10-07T09:39:45.000Z | 2019-10-11T07:39:33.000Z | agilicus/v1/apigenerator/deployment.py | Agilicus/kustomize-plugins | df7249c0c841e2b59b2ea76b89bfa4915415a8de | [
"Apache-2.0"
] | 14 | 2019-08-12T16:56:53.000Z | 2022-01-13T20:55:09.000Z | deployment = """
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {cfg[name_version]}-{cfg[name]}
namespace: {cfg[metadata][namespace]}
spec:
replicas: {cfg[replicas]}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
selector:
matchLabels:
app: {... | 26.52439 | 65 | 0.518161 | 171 | 2,175 | 6.538012 | 0.538012 | 0.068873 | 0.062612 | 0.076029 | 0.128801 | 0.128801 | 0.062612 | 0 | 0 | 0 | 0 | 0.014254 | 0.387126 | 2,175 | 81 | 66 | 26.851852 | 0.824456 | 0 | 0 | 0.234568 | 0 | 0 | 0.990805 | 0.154943 | 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 |
9bf13bf0949d396c77817ede871ebe2292b56747 | 3,613 | py | Python | test-framework/test-suites/integration/tests/remove/test_remove_storage_partition.py | knutsonchris/stacki | 33087dd5fa311984a66ccecfeee6f9c2c25f665d | [
"BSD-3-Clause"
] | null | null | null | test-framework/test-suites/integration/tests/remove/test_remove_storage_partition.py | knutsonchris/stacki | 33087dd5fa311984a66ccecfeee6f9c2c25f665d | [
"BSD-3-Clause"
] | null | null | null | test-framework/test-suites/integration/tests/remove/test_remove_storage_partition.py | knutsonchris/stacki | 33087dd5fa311984a66ccecfeee6f9c2c25f665d | [
"BSD-3-Clause"
] | null | null | null | import os
import subprocess
import pytest
STORAGE_SPREADSHEETS = ['multi_teradata_global', 'multi_teradata_backend']
@pytest.mark.parametrize("csvfile", STORAGE_SPREADSHEETS)
def test_remove_storage_partition(host, add_host, csvfile, test_file):
# get filename
input_file = test_file(f'load/storage_partition_{csvf... | 35.772277 | 103 | 0.71907 | 517 | 3,613 | 4.970986 | 0.208897 | 0.107393 | 0.065759 | 0.091051 | 0.587549 | 0.554086 | 0.518288 | 0.45642 | 0.35642 | 0.319844 | 0 | 0.009641 | 0.167451 | 3,613 | 100 | 104 | 36.13 | 0.844747 | 0.288403 | 0 | 0.548387 | 0 | 0 | 0.318995 | 0.043776 | 0 | 0 | 0 | 0 | 0.532258 | 1 | 0.032258 | false | 0 | 0.048387 | 0 | 0.080645 | 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 |
9bf4fb04451317ccb242a676536ecc5edcbd9f38 | 1,761 | py | Python | py/mtree/heap_queue.py | wjcskqygj2015/M-Tree | 51798932efad942c012699c15037350133ee4a42 | [
"MIT"
] | 48 | 2015-02-09T14:46:40.000Z | 2022-02-16T14:27:38.000Z | py/mtree/heap_queue.py | wjcskqygj2015/M-Tree | 51798932efad942c012699c15037350133ee4a42 | [
"MIT"
] | 1 | 2021-12-01T03:14:57.000Z | 2021-12-01T03:14:57.000Z | py/mtree/heap_queue.py | wjcskqygj2015/M-Tree | 51798932efad942c012699c15037350133ee4a42 | [
"MIT"
] | 24 | 2015-03-10T06:58:02.000Z | 2022-03-11T04:43:40.000Z | from collections import namedtuple
_HeapItem = namedtuple('_HeapItem', 'k, value')
class HeapQueue(object):
def __init__(self, content=(), key=lambda x:x, max=False):
if max:
self.key = lambda x: -key(x)
else:
self.key = key
self._items = [_HeapItem(self.key(value), value) for value in content]
self.... | 22.576923 | 91 | 0.661556 | 283 | 1,761 | 3.869258 | 0.204947 | 0.205479 | 0.054795 | 0.060274 | 0.271233 | 0.16621 | 0.16621 | 0.115068 | 0 | 0 | 0 | 0.014085 | 0.19364 | 1,761 | 77 | 92 | 22.87013 | 0.757042 | 0 | 0 | 0.133333 | 0 | 0 | 0.009654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183333 | false | 0 | 0.016667 | 0.05 | 0.316667 | 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 |
9bf569d20aa15f1ada9d14ee168baa8bad4e66d8 | 2,426 | py | Python | 2015/13_seatings_test.py | pchudzik/adventofcode | e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1 | [
"MIT"
] | null | null | null | 2015/13_seatings_test.py | pchudzik/adventofcode | e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1 | [
"MIT"
] | null | null | null | 2015/13_seatings_test.py | pchudzik/adventofcode | e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1 | [
"MIT"
] | null | null | null | import importlib
parse_seatings = importlib \
.import_module("13_seatings") \
.parse_seatings
count_happiness = importlib \
.import_module("13_seatings") \
.count_happiness
happines_change = importlib \
.import_module("13_seatings") \
.happines_change
include_me = importlib \
.import_module... | 27.568182 | 96 | 0.530503 | 268 | 2,426 | 4.679104 | 0.164179 | 0.133971 | 0.15311 | 0.220096 | 0.483254 | 0.336523 | 0.336523 | 0.062201 | 0.062201 | 0 | 0 | 0.043562 | 0.356554 | 2,426 | 87 | 97 | 27.885057 | 0.759769 | 0 | 0 | 0.194805 | 0 | 0 | 0.373866 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 1 | 0.051948 | false | 0 | 0.116883 | 0 | 0.168831 | 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 |
9bfac8d62cb75c86493374051921b0919564d76e | 1,836 | py | Python | ResumeWebsite/resumeApp/migrations/0002_auto_20170707_2027.py | patryan117/Django_Resume_Website | 1db271fc7db1862c68cf6a809f361875293dbe89 | [
"MIT"
] | null | null | null | ResumeWebsite/resumeApp/migrations/0002_auto_20170707_2027.py | patryan117/Django_Resume_Website | 1db271fc7db1862c68cf6a809f361875293dbe89 | [
"MIT"
] | null | null | null | ResumeWebsite/resumeApp/migrations/0002_auto_20170707_2027.py | patryan117/Django_Resume_Website | 1db271fc7db1862c68cf6a809f361875293dbe89 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-07-08 00:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('resumeApp', '0001_initial'),
]
operations = [
migrations.Crea... | 34.641509 | 115 | 0.520153 | 162 | 1,836 | 5.716049 | 0.432099 | 0.077754 | 0.077754 | 0.103672 | 0.461123 | 0.25594 | 0.25594 | 0.25594 | 0.25594 | 0.25594 | 0 | 0.037594 | 0.348039 | 1,836 | 52 | 116 | 35.307692 | 0.736007 | 0.037037 | 0 | 0.4 | 1 | 0 | 0.107998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 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 |
500c041f8494ea6b95b486916405d29fd02cbdcb | 1,114 | py | Python | 2020-11/src/201403624.py | ivanLM2310/CoronavirusML_ant | e7da9a9ea0417ef3dbe42609958216b4d9eb82c5 | [
"Apache-2.0"
] | 2 | 2021-12-26T03:21:05.000Z | 2022-01-02T15:03:59.000Z | 2020-11/src/201403624.py | ivanLM2310/CoronavirusML_ant | e7da9a9ea0417ef3dbe42609958216b4d9eb82c5 | [
"Apache-2.0"
] | 41 | 2020-11-10T02:52:15.000Z | 2020-11-16T07:32:26.000Z | 2020-11/src/201403624.py | ivanLM2310/CoronavirusML_ant | e7da9a9ea0417ef3dbe42609958216b4d9eb82c5 | [
"Apache-2.0"
] | 50 | 2020-11-10T02:08:31.000Z | 2020-11-16T06:33:34.000Z | import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import PolynomialFeatures
from sklearn.metrics import mean_squared_error, r2_score
import matplotlib.pyplot as plt
import numpy as np
import random
import pandas as pd
data ... | 31.828571 | 145 | 0.747756 | 177 | 1,114 | 4.564972 | 0.491525 | 0.092822 | 0.054455 | 0.059406 | 0.066832 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0.120287 | 1,114 | 34 | 146 | 32.764706 | 0.781633 | 0 | 0 | 0.071429 | 0 | 0 | 0.189748 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.321429 | 0 | 0.321429 | 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 |
500c414f3412c4bde7caf59c2b37990fbce9c1b9 | 772 | py | Python | freebasics/templatetags/freebasics_tags.py | praekelt/molo-freebasics | b597ffd5b2344865426be853caee5a11e91559b8 | [
"BSD-2-Clause"
] | null | null | null | freebasics/templatetags/freebasics_tags.py | praekelt/molo-freebasics | b597ffd5b2344865426be853caee5a11e91559b8 | [
"BSD-2-Clause"
] | 127 | 2016-01-13T10:36:12.000Z | 2018-04-04T10:13:41.000Z | freebasics/templatetags/freebasics_tags.py | praekelt/molo-freebasics | b597ffd5b2344865426be853caee5a11e91559b8 | [
"BSD-2-Clause"
] | null | null | null | from django.template import Library
from django.conf import settings
register = Library()
@register.inclusion_tag('custom_css.html', takes_context=True)
def custom_css(context):
styles = {
"body_border_color": settings.CUSTOM_CSS_BASE_BACKGROUND_COLOR,
"body_font_family": settings.CUSTOM_CSS_BODY... | 32.166667 | 77 | 0.766839 | 101 | 772 | 5.405941 | 0.356436 | 0.148352 | 0.217949 | 0.120879 | 0.098901 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006107 | 0.151554 | 772 | 23 | 78 | 33.565217 | 0.827481 | 0 | 0 | 0 | 0 | 0 | 0.151554 | 0.028497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.055556 | 0.333333 | 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 |
500db16baeb702fec403155a363325b5a1b4c188 | 1,840 | py | Python | cache_gs/interfaces/super_cache.py | guionardo/py-cache-guiosoft | 4f9b6805d4b20c2583648bb9b8c43c8cfa73ebdf | [
"MIT"
] | null | null | null | cache_gs/interfaces/super_cache.py | guionardo/py-cache-guiosoft | 4f9b6805d4b20c2583648bb9b8c43c8cfa73ebdf | [
"MIT"
] | 11 | 2020-04-03T17:18:44.000Z | 2021-02-10T20:02:53.000Z | cache_gs/interfaces/super_cache.py | guionardo/py-cache-guiosoft | 4f9b6805d4b20c2583648bb9b8c43c8cfa73ebdf | [
"MIT"
] | null | null | null | from cache_gs.cache_classes.cache_data import CacheData
from cache_gs.utils.logging import get_logger
class SuperCache:
def __init__(self, string_connection: str, **extra_args):
if not isinstance(string_connection, str) or not string_connection:
raise AttributeError(
"bad stri... | 30.163934 | 77 | 0.647826 | 223 | 1,840 | 5.143498 | 0.26009 | 0.083697 | 0.073235 | 0.06626 | 0.396687 | 0.349608 | 0.183958 | 0.183958 | 0.115083 | 0.115083 | 0 | 0.002166 | 0.247283 | 1,840 | 60 | 78 | 30.666667 | 0.825993 | 0 | 0 | 0.186047 | 0 | 0 | 0.015761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27907 | false | 0.023256 | 0.046512 | 0 | 0.465116 | 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 |
501029de8f6d3608699bc60e1b478226f524542c | 262 | py | Python | custom/__init__.py | georgi/MusicTransformer-pytorch | fe1af43fa5f38703c41b2887673eadbfb2db761a | [
"MIT"
] | null | null | null | custom/__init__.py | georgi/MusicTransformer-pytorch | fe1af43fa5f38703c41b2887673eadbfb2db761a | [
"MIT"
] | null | null | null | custom/__init__.py | georgi/MusicTransformer-pytorch | fe1af43fa5f38703c41b2887673eadbfb2db761a | [
"MIT"
] | null | null | null | import argparse
def get_argument_parser(description=None):
parser = argparse.ArgumentParser(description)
parser.add_argument("-m", "--model_dir", type=str, required=True,
help="The directory for a trained model is saved.")
return parser | 32.75 | 69 | 0.717557 | 33 | 262 | 5.575758 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175573 | 262 | 8 | 70 | 32.75 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0.212928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 |
5015cb5e4ef07e51611a455e4f2e0ea3f5b60a6e | 7,042 | py | Python | compile-conformers.py | ghutchis/conformer-scoring | 4b1c9280f6663ea47b2c09ec98cbebbd5cddb9a2 | [
"MIT"
] | 4 | 2017-10-16T21:15:40.000Z | 2019-11-30T06:22:59.000Z | compile-conformers.py | ghutchis/conformer-scoring | 4b1c9280f6663ea47b2c09ec98cbebbd5cddb9a2 | [
"MIT"
] | 2 | 2017-10-17T10:54:15.000Z | 2018-11-24T22:14:15.000Z | compile-conformers.py | ghutchis/conformer-scoring | 4b1c9280f6663ea47b2c09ec98cbebbd5cddb9a2 | [
"MIT"
] | 4 | 2016-08-04T02:01:21.000Z | 2021-04-20T17:32:42.000Z | #!/usr/bin/env python
import sys, os, glob, json, re
import pybel
import openbabel as ob
def is_number(s):
try:
float(s)
return True
except ValueError:
return False
ff = pybel._forcefields["mmff94"]
print 'name, conf, dftE, pm7E, mmffE'
# atomization energies
atomE = [0.0] * 118
ato... | 37.860215 | 120 | 0.510082 | 838 | 7,042 | 4.26969 | 0.23747 | 0.006708 | 0.017608 | 0.023477 | 0.474846 | 0.455282 | 0.439072 | 0.382616 | 0.340693 | 0.321129 | 0 | 0.054691 | 0.361261 | 7,042 | 185 | 121 | 38.064865 | 0.740774 | 0.138739 | 0 | 0.431507 | 0 | 0 | 0.087448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006849 | 0.020548 | null | null | 0.054795 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
501909bce879b6534cc057a129bcd166c229b549 | 393 | py | Python | dbt/adapters/athena/__init__.py | EarnestResearch/dbt-athena | 2409993aade3791bb5e889feb99e014613e8d12a | [
"Apache-2.0"
] | 43 | 2020-01-14T18:55:42.000Z | 2022-03-23T12:16:59.000Z | dbt/adapters/athena/__init__.py | EarnestResearch/dbt-athena | 2409993aade3791bb5e889feb99e014613e8d12a | [
"Apache-2.0"
] | 19 | 2020-01-17T10:02:07.000Z | 2021-08-05T21:41:25.000Z | dbt/adapters/athena/__init__.py | EarnestResearch/dbt-athena | 2409993aade3791bb5e889feb99e014613e8d12a | [
"Apache-2.0"
] | 14 | 2020-01-18T17:49:48.000Z | 2020-12-16T09:44:17.000Z | from dbt.adapters.athena.connections import AthenaConnectionManager, AthenaCredentials
from dbt.adapters.athena.impl import AthenaAdapter
from dbt.adapters.base import AdapterPlugin
from dbt.include import athena
AthenaConnectionManager = AthenaConnectionManager
Plugin = AdapterPlugin(
adapter=AthenaAdapter,
... | 26.2 | 86 | 0.83715 | 39 | 393 | 8.384615 | 0.461538 | 0.085627 | 0.137615 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109415 | 393 | 14 | 87 | 28.071429 | 0.934286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
501c7a2d3cb4b26ca74d3853db60cd30d7ff00b5 | 314 | py | Python | settings.py | saud-learning-services/module-progress | cf5c4f32e63fb43222aee6961c0ee0e1cbeeba1e | [
"MIT"
] | 5 | 2020-06-11T19:04:41.000Z | 2020-09-10T21:19:14.000Z | settings.py | saud-learning-services/module-progress | cf5c4f32e63fb43222aee6961c0ee0e1cbeeba1e | [
"MIT"
] | 24 | 2020-06-11T19:58:34.000Z | 2022-01-18T21:44:20.000Z | settings.py | saud-learning-services/module-progress | cf5c4f32e63fb43222aee6961c0ee0e1cbeeba1e | [
"MIT"
] | 1 | 2020-07-16T18:38:08.000Z | 2020-07-16T18:38:08.000Z | """
Declares several global variables that are used throughout the project.
* The status dictionary gets updated to reflect the success/failed state of each course (and relevant errors)
* ROOT_DIR is the filepath to the src folder
"""
import os
status = {}
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
| 26.166667 | 109 | 0.767516 | 48 | 314 | 4.895833 | 0.770833 | 0.059574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156051 | 314 | 11 | 110 | 28.545455 | 0.886792 | 0.72293 | 0 | 0 | 0 | 0 | 0 | 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 |
501d0af594cd477b05e9b987ba4c27d7eabd39aa | 2,230 | py | Python | update-locales-1.0-to-1.0.1.py | Marcool04/utilities | d9bf0aae7decdad111fc0c8cefacf10c230ce9ee | [
"MIT"
] | 10 | 2015-04-14T16:49:43.000Z | 2020-06-01T14:31:04.000Z | update-locales-1.0-to-1.0.1.py | Marcool04/utilities | d9bf0aae7decdad111fc0c8cefacf10c230ce9ee | [
"MIT"
] | 23 | 2015-01-20T04:13:35.000Z | 2021-09-07T18:36:00.000Z | update-locales-1.0-to-1.0.1.py | Marcool04/utilities | d9bf0aae7decdad111fc0c8cefacf10c230ce9ee | [
"MIT"
] | 6 | 2015-01-10T13:00:37.000Z | 2021-09-19T09:25:22.000Z | # -*- coding: utf-8 -*-
# Python script to update locale files from CSL 1.0 to 1.0.1
# Author: Rintze M. Zelle
# Version: 2012-07-15
# * Requires lxml library (http://lxml.de/)
#
# Extremely hacky (I need a linux box!)
import os, glob, re
from lxml import etree
localesPath = 'C:\Documents and Settings\zelle\My Docume... | 41.296296 | 128 | 0.712108 | 277 | 2,230 | 5.714801 | 0.379061 | 0.030322 | 0.037903 | 0.06633 | 0.293114 | 0.293114 | 0.28427 | 0.238787 | 0.213519 | 0.094757 | 0 | 0.017718 | 0.139462 | 2,230 | 53 | 129 | 42.075472 | 0.807191 | 0.158744 | 0 | 0 | 0 | 0.064516 | 0.245972 | 0.090763 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
501d5f48e17e88b4505020bb448744173cdd5715 | 36,012 | py | Python | test/fit_tests/common/fit_common.py | smiller171/RackHD | 02a6406bb50d8b49efbc2b04ecd4435e0341aa65 | [
"Apache-2.0"
] | null | null | null | test/fit_tests/common/fit_common.py | smiller171/RackHD | 02a6406bb50d8b49efbc2b04ecd4435e0341aa65 | [
"Apache-2.0"
] | null | null | null | test/fit_tests/common/fit_common.py | smiller171/RackHD | 02a6406bb50d8b49efbc2b04ecd4435e0341aa65 | [
"Apache-2.0"
] | null | null | null | '''
Copyright 2016, EMC, Inc.
Author(s):
George Paulos
OnRack/RackHD Functional Integration Test (FIT) library
This is the main common function library for OnRack/RackHD FIT tests.
'''
# Standard imports
import os
import sys
import json
import subprocess
import time, datetime
import unittest
import signal
import re
... | 42.021004 | 152 | 0.534183 | 3,908 | 36,012 | 4.798106 | 0.139202 | 0.029438 | 0.011786 | 0.012693 | 0.410538 | 0.346702 | 0.30889 | 0.288945 | 0.273799 | 0.264999 | 0 | 0.009432 | 0.337554 | 36,012 | 856 | 153 | 42.070093 | 0.776576 | 0.096468 | 0 | 0.419549 | 0 | 0 | 0.198635 | 0.029436 | 0 | 0 | 0 | 0 | 0.001504 | 0 | null | null | 0.021053 | 0.016541 | null | null | 0.07218 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
501d7506e033738a0a95add7c219bb4003287320 | 2,680 | py | Python | location/Peru/INEI/clean.py | vishalbelsare/classifications | e16dbc9b625ff7e233be30bfb3d432f7b026facd | [
"BSD-3-Clause"
] | 16 | 2016-02-05T22:05:55.000Z | 2022-02-18T12:23:22.000Z | location/Peru/INEI/clean.py | vishalbelsare/classifications | e16dbc9b625ff7e233be30bfb3d432f7b026facd | [
"BSD-3-Clause"
] | 2 | 2018-04-06T18:07:01.000Z | 2018-11-01T21:19:42.000Z | location/Peru/INEI/clean.py | vishalbelsare/classifications | e16dbc9b625ff7e233be30bfb3d432f7b026facd | [
"BSD-3-Clause"
] | 5 | 2015-04-09T01:39:00.000Z | 2020-12-27T03:02:25.000Z | # -*- coding: utf8 -*-
import pandas as pd
from fix_spanish_title_case import fix_spanish_title_case
from classification import (
Hierarchy,
parent_code_table_to_parent_id_table,
Classification,
)
if __name__ == "__main__":
df = pd.read_csv(
"in/ubigeo-data-titlecased.csv", encoding="utf-8",... | 29.450549 | 87 | 0.579478 | 347 | 2,680 | 4.233429 | 0.345821 | 0.074881 | 0.071477 | 0.032675 | 0.159973 | 0.071477 | 0.040844 | 0 | 0 | 0 | 0 | 0.017949 | 0.272388 | 2,680 | 90 | 88 | 29.777778 | 0.735385 | 0.156343 | 0 | 0 | 0 | 0 | 0.22237 | 0.03684 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.015152 | false | 0 | 0.045455 | 0 | 0.075758 | 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 |
502042e1d426a4d07fe4d45a2c671495c846f106 | 3,449 | py | Python | learn.py | mnabila/learningMininet | 494573c975cc4201b51d34c5b2e463efeb59527b | [
"MIT"
] | null | null | null | learn.py | mnabila/learningMininet | 494573c975cc4201b51d34c5b2e463efeb59527b | [
"MIT"
] | null | null | null | learn.py | mnabila/learningMininet | 494573c975cc4201b51d34c5b2e463efeb59527b | [
"MIT"
] | null | null | null | from mininet.topo import Topo
from mininet.net import OVSKernelSwitch
class GedungSatu(Topo):
def __init__(self, **opts):
Topo.__init__(self, **opts)
# tambah client sebanyak 15 komputer
h1 = self.addHost(name="h1", mac="00:00:00:00:0h:01", ip="192.168.100.10/27")
h2 = self.addHost... | 44.792208 | 87 | 0.600464 | 560 | 3,449 | 3.683929 | 0.171429 | 0.127969 | 0.127969 | 0.095977 | 0.224915 | 0.199709 | 0.105187 | 0.105187 | 0 | 0 | 0 | 0.206756 | 0.218904 | 3,449 | 76 | 88 | 45.381579 | 0.55902 | 0.164106 | 0 | 0 | 0 | 0 | 0.237531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.040816 | 0 | 0.081633 | 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 |
502698b77081d0e34876ab5cc4bd0370cc67a998 | 1,235 | py | Python | year_name_source.py | vijayp/imageanalysis | b4646f084a03d6dd99f711c07a90d0334bf7a7aa | [
"Apache-2.0"
] | 19 | 2015-01-04T01:50:08.000Z | 2020-10-16T05:23:49.000Z | year_name_source.py | vijayp/imageanalysis | b4646f084a03d6dd99f711c07a90d0334bf7a7aa | [
"Apache-2.0"
] | 3 | 2021-09-08T03:01:45.000Z | 2022-03-12T00:55:23.000Z | year_name_source.py | vijayp/imageanalysis | b4646f084a03d6dd99f711c07a90d0334bf7a7aa | [
"Apache-2.0"
] | 4 | 2015-11-02T22:18:22.000Z | 2017-11-02T17:56:43.000Z | #!/usr/bin/env python
import os
from collections import defaultdict
import cPickle
def get_movie_map(movie_path):
rv = {}
for (path, dirs, files) in os.walk(movie_path):
for f in files:
if f.endswith('.html') and f != 'index.html':
mname = f[:-5].replace('-', ' ')
... | 30.121951 | 70 | 0.561134 | 173 | 1,235 | 3.791908 | 0.358382 | 0.085366 | 0.091463 | 0.04878 | 0.259146 | 0.143293 | 0.143293 | 0.143293 | 0.143293 | 0.143293 | 0 | 0.0047 | 0.310931 | 1,235 | 40 | 71 | 30.875 | 0.766157 | 0.016194 | 0 | 0.181818 | 0 | 0 | 0.049423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.