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
900d82f05310f821f29ddc9642e0427552a38aae
2,687
py
Python
wolfram/wolfram.py
Wyn10/aikaterna-cogs
a7fd5930f90b4046296ce98406639219c38302a7
[ "MIT" ]
null
null
null
wolfram/wolfram.py
Wyn10/aikaterna-cogs
a7fd5930f90b4046296ce98406639219c38302a7
[ "MIT" ]
null
null
null
wolfram/wolfram.py
Wyn10/aikaterna-cogs
a7fd5930f90b4046296ce98406639219c38302a7
[ "MIT" ]
1
2019-03-30T05:18:42.000Z
2019-03-30T05:18:42.000Z
import os import aiohttp from discord.ext import commands import xml.etree.ElementTree as ET from cogs.utils.dataIO import dataIO from .utils import checks from .utils.chat_formatting import escape_mass_mentions from .utils.chat_formatting import box from __main__ import send_cmd_help class Wolfram: def __init__(...
32.373494
100
0.593971
331
2,687
4.691843
0.398792
0.030908
0.036703
0.04443
0.151964
0.079845
0
0
0
0
0
0.003646
0.285448
2,687
82
101
32.768293
0.805208
0
0
0.045455
0
0.015152
0.183886
0.030069
0
0
0
0
0
1
0.060606
false
0.030303
0.136364
0
0.212121
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
900fd7a3396de18f3541a06d832b5444ad752082
671
py
Python
migrations/versions/98f3e3ad195c_update_blog_to_add_a_title.py
Josephat-n/myBlog
d2e3b368617cd3ca55b6bd40e6950122967e1d9f
[ "MIT" ]
null
null
null
migrations/versions/98f3e3ad195c_update_blog_to_add_a_title.py
Josephat-n/myBlog
d2e3b368617cd3ca55b6bd40e6950122967e1d9f
[ "MIT" ]
null
null
null
migrations/versions/98f3e3ad195c_update_blog_to_add_a_title.py
Josephat-n/myBlog
d2e3b368617cd3ca55b6bd40e6950122967e1d9f
[ "MIT" ]
null
null
null
"""update blog to add a title. Revision ID: 98f3e3ad195c Revises: 2d98c5165674 Create Date: 2019-12-02 22:58:10.377423 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '98f3e3ad195c' down_revision = '2d98c5165674' branch_labels = None depends_on = None def upg...
23.137931
84
0.690015
86
671
5.325581
0.616279
0.058952
0.091703
0.100437
0.19214
0.19214
0.19214
0.19214
0
0
0
0.103074
0.175857
671
28
85
23.964286
0.725136
0.460507
0
0
0
0
0.135385
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
901066d43a75d83ccca11050c805f23f07e56a57
2,691
py
Python
message/views.py
ThusharaX/mumbleapi
8435fe9d86869cce81961f42c9860fa3810c171b
[ "Apache-2.0" ]
187
2021-04-24T14:49:44.000Z
2022-03-31T14:25:22.000Z
message/views.py
ThusharaX/mumbleapi
8435fe9d86869cce81961f42c9860fa3810c171b
[ "Apache-2.0" ]
119
2021-04-24T18:08:43.000Z
2022-01-09T00:57:19.000Z
message/views.py
ThusharaX/mumbleapi
8435fe9d86869cce81961f42c9860fa3810c171b
[ "Apache-2.0" ]
174
2021-04-24T15:57:23.000Z
2022-03-11T02:09:04.000Z
from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework import status from users.models import UserProfile from .serializers import MessageSerializer , ThreadSerializer from .models import ...
39
94
0.687105
309
2,691
5.873786
0.271845
0.077135
0.057851
0.077135
0.287603
0.215978
0.176309
0.076033
0.076033
0
0
0.00141
0.209216
2,691
69
95
39
0.851504
0
0
0.338462
0
0
0.079866
0
0
0
0
0
0
1
0.061538
false
0
0.123077
0
0.338462
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
0
0
1
0
9010af2b84b0a8a7a8c133b624651330f5e4d485
3,691
py
Python
widgets/dialogs/transactions_editor.py
redstorm45/money_analyst
9ccf8aa4cd7bad7aff21a82ce4219406009f126a
[ "Apache-2.0" ]
null
null
null
widgets/dialogs/transactions_editor.py
redstorm45/money_analyst
9ccf8aa4cd7bad7aff21a82ce4219406009f126a
[ "Apache-2.0" ]
null
null
null
widgets/dialogs/transactions_editor.py
redstorm45/money_analyst
9ccf8aa4cd7bad7aff21a82ce4219406009f126a
[ "Apache-2.0" ]
null
null
null
import PyQt5.QtWidgets as Qtw import PyQt5.QtCore as QtCore from widgets.labels import LabelsWidget DATE_FORMAT = 'yyyy-MM-dd' class TransactionDialog(Qtw.QDialog): """ A dialog used to edit a transaction """ def __init__(self, parent, model_cat, desc='', category=0, amount=0, date=''): supe...
38.051546
83
0.648605
460
3,691
5
0.265217
0.107826
0.06087
0.06
0.12087
0.026087
0
0
0
0
0
0.014904
0.236521
3,691
96
84
38.447917
0.800568
0.009483
0
0.12987
0
0
0.040934
0
0
0
0
0
0
1
0.051948
false
0
0.038961
0
0.12987
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
0
0
1
0
9010dcd0fdbf2d57ab797fb8bac064a9780ede3f
20,416
py
Python
octue/cloud/pub_sub/service.py
octue/octue-sdk-python
31c6e9358d3401ca708f5b3da702bfe3be3e52ce
[ "MIT" ]
5
2020-10-01T12:43:10.000Z
2022-03-14T17:26:25.000Z
octue/cloud/pub_sub/service.py
octue/octue-sdk-python
31c6e9358d3401ca708f5b3da702bfe3be3e52ce
[ "MIT" ]
322
2020-06-24T15:55:22.000Z
2022-03-30T11:49:28.000Z
octue/cloud/pub_sub/service.py
octue/octue-sdk-python
31c6e9358d3401ca708f5b3da702bfe3be3e52ce
[ "MIT" ]
null
null
null
import base64 import concurrent.futures import json import logging import sys import time import traceback as tb import uuid from google.api_core import retry from google.cloud import pubsub_v1 import octue.exceptions import twined.exceptions from octue.cloud.credentials import GCPCredentialsManager from octue.cloud.p...
43.162791
208
0.653556
2,403
20,416
5.40283
0.161049
0.013171
0.008473
0.009859
0.257953
0.181006
0.141262
0.109066
0.097666
0.091196
0
0.003635
0.272335
20,416
472
209
43.254237
0.870288
0.309218
0
0.180851
0
0.003546
0.119457
0.018928
0
0
0
0
0
1
0.056738
false
0.003546
0.070922
0.003546
0.166667
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
0
0
1
0
90124bdf01042879c8d23bc0de43bbfc19264166
1,978
py
Python
Tareas/DistanciaGrafos.py
A01746540/SEM9Algoritmos
2aaf1a344413dfbece77022a5b34e0c5318aa5e5
[ "MIT" ]
null
null
null
Tareas/DistanciaGrafos.py
A01746540/SEM9Algoritmos
2aaf1a344413dfbece77022a5b34e0c5318aa5e5
[ "MIT" ]
null
null
null
Tareas/DistanciaGrafos.py
A01746540/SEM9Algoritmos
2aaf1a344413dfbece77022a5b34e0c5318aa5e5
[ "MIT" ]
null
null
null
from collections import defaultdict class Graph: metro = ['El Rosario', 'Instituto del Petroleo', 'Tacuba', 'Hidalgo', 'Tacubaya', 'Deportivo 18 de Marzo', 'Centro Medico', 'Mixcoac', 'Balderas', 'Bellas Artes', 'Guerrero', 'Martin Carrera', 'Zapata', 'Chabacano', 'Salto del...
25.688312
110
0.517695
289
1,978
3.529412
0.408305
0.196078
0.011765
0.021569
0
0
0
0
0
0
0
0.096154
0.290192
1,978
77
111
25.688312
0.630342
0.020222
0
0
0
0
0.183884
0
0
0
0
0
0
1
0.04918
false
0
0.016393
0
0.098361
0.065574
0
0
0
null
0
0
0
0
0
0
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
1
0
9012e5a8ed3f5ec28adee161865cc14545390e2d
1,691
py
Python
lab04/submited/utils.py
Battleman/InternetAnalyticsW
005e5de6c0e591be6dc303ec46cc82249e70f666
[ "MIT" ]
null
null
null
lab04/submited/utils.py
Battleman/InternetAnalyticsW
005e5de6c0e591be6dc303ec46cc82249e70f666
[ "MIT" ]
null
null
null
lab04/submited/utils.py
Battleman/InternetAnalyticsW
005e5de6c0e591be6dc303ec46cc82249e70f666
[ "MIT" ]
null
null
null
# ###################### # Some useful utilities. # ###################### import json, os, pickle def listPrettyPrint(l, n): """Prints a list l on n columns to improve readability""" if(n == 5): for a,b,c,d,e in zip(l[::5],l[1::5],l[2::5],l[3::5],l[4::5]): print('{:<22}{:<22}{:<22}{:<22}...
25.621212
69
0.474867
286
1,691
2.793706
0.286713
0.020025
0.022528
0.020025
0.066333
0.032541
0
0
0
0
0
0.040362
0.282082
1,691
65
70
26.015385
0.617792
0.209935
0
0
0
0
0.070492
0.040984
0
0
0
0
0
1
0.147059
false
0
0.029412
0
0.235294
0.147059
0
0
0
null
0
0
0
0
0
0
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
1
0
9012f44f49fd46b9f38512bc6891494632f15f28
489
py
Python
primes/factorisation.py
miloszlakomy/algutils
f83c330a0ca31cdac536de811f447820c70ecb38
[ "MIT" ]
null
null
null
primes/factorisation.py
miloszlakomy/algutils
f83c330a0ca31cdac536de811f447820c70ecb38
[ "MIT" ]
null
null
null
primes/factorisation.py
miloszlakomy/algutils
f83c330a0ca31cdac536de811f447820c70ecb38
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from algutils.primes import cached_primes def factorise(n): if n <= 0: raise ValueError("n must be a positive integer") ps = cached_primes.get_primes_list(min_lim=int(n**.5) + 1) ret = {} for p in ps: if n == 1: break if p**2 > n: # n is prime break i...
13.971429
60
0.492843
83
489
2.843373
0.481928
0.050847
0.033898
0.033898
0.059322
0.059322
0.059322
0
0
0
0
0.039216
0.374233
489
34
61
14.382353
0.732026
0.087935
0
0.190476
0
0
0.063348
0
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
90192683a9596914db24fa7e2c76ff1a12788127
355
py
Python
angr/engines/soot/statements/goto.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
angr/engines/soot/statements/goto.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
angr/engines/soot/statements/goto.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
import logging from .base import SimSootStmt l = logging.getLogger('angr.engines.soot.statements.goto') class SimSootStmt_Goto(SimSootStmt): def _execute(self): jmp_target = self._get_bb_addr_from_instr(instr=self.stmt.target) self._add_jmp_target(target=jmp_target, ...
25.357143
73
0.704225
45
355
5.288889
0.622222
0.113445
0
0
0
0
0
0
0
0
0
0
0.202817
355
13
74
27.307692
0.840989
0
0
0
0
0
0.09322
0.09322
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
901943c57d651786afa2ce40b989408f3ebb4e7f
979
py
Python
game/entity/player.py
fisher60/pyweek-2021
294b45d768a7e0d85ac67dc4b12384e68fc4f399
[ "MIT" ]
8
2021-03-27T21:20:28.000Z
2021-03-31T08:09:26.000Z
game/entity/player.py
fisher60/pyweek-2021
294b45d768a7e0d85ac67dc4b12384e68fc4f399
[ "MIT" ]
49
2021-03-27T21:18:08.000Z
2021-04-03T02:53:53.000Z
game/entity/player.py
fisher60/pyweek-2021
294b45d768a7e0d85ac67dc4b12384e68fc4f399
[ "MIT" ]
1
2021-04-02T21:58:39.000Z
2021-04-02T21:58:39.000Z
import arcade from ..constants import TILE_SIZE, PLAYER_SCALING from ..utils import Vector class PlayerInventory: keys: int = 0 class Player(arcade.Sprite): def __init__(self, *args, **kwargs): super().__init__( "game/assets/sprites/square.png", PLAYER_SCALING, *args, **kwargs )...
25.763158
77
0.597549
116
979
4.844828
0.431034
0.106762
0.085409
0.080071
0.220641
0.16726
0.124555
0.124555
0.124555
0
0
0.001437
0.28907
979
37
78
26.459459
0.806034
0.051073
0
0
0
0
0.033445
0.033445
0
0
0
0
0
1
0.16
false
0
0.12
0.04
0.44
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
0
0
1
0
901cb3458a6cbbc2527b80d00c06a9a4f1e903b2
2,389
py
Python
code/tfidf/tfidf.py
vadlamak/strata-teaching-the-elephant-to-read
5f3963c90c520ac1b7b41d21939230ef5df6414f
[ "Apache-2.0" ]
null
null
null
code/tfidf/tfidf.py
vadlamak/strata-teaching-the-elephant-to-read
5f3963c90c520ac1b7b41d21939230ef5df6414f
[ "Apache-2.0" ]
1
2021-03-26T00:26:00.000Z
2021-03-26T00:26:00.000Z
code/tfidf/tfidf.py
vadlamak/strata-teaching-the-elephant-to-read
5f3963c90c520ac1b7b41d21939230ef5df6414f
[ "Apache-2.0" ]
null
null
null
import math import string from itertools import groupby from operator import itemgetter from nltk.corpus import stopwords from nltk.tokenize import wordpunct_tokenize N = 10788.0 # Number of documents, in float to make division work. class TermMapper(object): def __init__(self): if 'stopwords' in self....
25.688172
72
0.612809
291
2,389
4.883162
0.309278
0.038001
0.046446
0.059113
0.120338
0.106967
0.052076
0.052076
0.052076
0
0
0.007598
0.283801
2,389
92
73
25.967391
0.822911
0.021766
0
0.144928
0
0
0.025696
0
0
0
0
0
0
1
0.173913
false
0
0.101449
0
0.391304
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
0
0
1
0
901eab214940948112dfada28e162b16759ac77e
589
py
Python
plot-wbgt.py
tanupoo/tools-pubsec
3dfea4b677226395eff89f90aebec3105ba4f4d5
[ "MIT" ]
1
2021-05-27T21:10:04.000Z
2021-05-27T21:10:04.000Z
plot-wbgt.py
tanupoo/pubsec-tools
3dfea4b677226395eff89f90aebec3105ba4f4d5
[ "MIT" ]
null
null
null
plot-wbgt.py
tanupoo/pubsec-tools
3dfea4b677226395eff89f90aebec3105ba4f4d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import json import matplotlib.pyplot as plt result = json.load(sys.stdin) x = result["hour"] y = result["wbgt"] fig = plt.figure(figsize=(8, 4)) ax1 = fig.add_subplot(1,1,1) ax1.set_xlabel("hour") ax1.set_ylabel("wbgt") ax1.set_xticks(list(range(0,24,1))) ax1.set_yticks(list(range(1...
21.035714
48
0.696095
114
589
3.517544
0.464912
0.104738
0.05985
0.089776
0.311721
0.27182
0.27182
0.147132
0.147132
0
0
0.070632
0.086587
589
27
49
21.814815
0.674721
0.033956
0
0
0
0
0.059965
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
90204f12090cacf498331393d685af08f22c49b2
1,005
py
Python
day_07/day_07.py
GuillaumeGandon/advent-of-code-2015
ff4201a9a27d1ca7f687a613eeec72dd12fe1487
[ "MIT" ]
null
null
null
day_07/day_07.py
GuillaumeGandon/advent-of-code-2015
ff4201a9a27d1ca7f687a613eeec72dd12fe1487
[ "MIT" ]
null
null
null
day_07/day_07.py
GuillaumeGandon/advent-of-code-2015
ff4201a9a27d1ca7f687a613eeec72dd12fe1487
[ "MIT" ]
null
null
null
from functools import cache def split_row(row): instructions, output = row.split(' -> ') return output, tuple(instructions.split(' ')) @cache def solve(key): if key.isdigit(): return int(key) else: instructions = circuit[key] if len(instructions) == 1: return solv...
25.769231
65
0.536318
118
1,005
4.508475
0.389831
0.067669
0.090226
0.06391
0.157895
0.097744
0.097744
0
0
0
0
0.018978
0.318408
1,005
38
66
26.447368
0.757664
0
0
0.1
0
0
0.084577
0
0
0
0
0
0
1
0.066667
false
0
0.033333
0
0.366667
0.066667
0
0
0
null
0
0
0
0
0
0
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
1
0
90215693db46543c286a97842122238df6972cc0
523
py
Python
noteout/tests/test_nb_only.py
stefanv/noteout
b76b35c675fa1221be35835d56c2937e3f56b317
[ "BSD-2-Clause" ]
3
2021-08-14T19:35:37.000Z
2021-08-23T16:53:51.000Z
noteout/tests/test_nb_only.py
stefanv/noteout
b76b35c675fa1221be35835d56c2937e3f56b317
[ "BSD-2-Clause" ]
1
2021-11-23T18:40:45.000Z
2021-11-23T20:40:48.000Z
noteout/tests/test_nb_only.py
stefanv/noteout
b76b35c675fa1221be35835d56c2937e3f56b317
[ "BSD-2-Clause" ]
1
2021-11-23T18:33:58.000Z
2021-11-23T18:33:58.000Z
""" Test nb-only filter """ from io import StringIO from noteout.nb_only import NbonlyFilter as nnbo from .tutils import (read_md, assert_json_equal, filter_doc) def test_nb_only(): content = """/ Some text [notebook only]{.nb-only}more text. ::: nb-only Only in notebook. ::: More text. """ doc = read_md...
17.433333
60
0.692161
77
523
4.493506
0.363636
0.086705
0.057803
0.098266
0
0
0
0
0
0
0
0
0.179732
523
29
61
18.034483
0.806527
0.036329
0
0.210526
0
0
0.262097
0
0
0
0
0
0.105263
1
0.052632
false
0
0.157895
0
0.210526
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
0
0
1
0
9021bc3863fa351375d2c840439601cf105a7273
3,241
py
Python
backend/fastspider.py
wakeblade/weiboSpiderAndCook
b5ca0708abd0a938eb0ac611d037a5d3daf9384f
[ "MIT" ]
1
2020-02-08T16:22:19.000Z
2020-02-08T16:22:19.000Z
backend/fastspider.py
wakeblade/weiboWordCount
b5ca0708abd0a938eb0ac611d037a5d3daf9384f
[ "MIT" ]
null
null
null
backend/fastspider.py
wakeblade/weiboWordCount
b5ca0708abd0a938eb0ac611d037a5d3daf9384f
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: UTF-8 -*- """ from gevent import monkey monkey.patch_all() from gevent.queue import Queue """ import requests import time import random proxies=[] with open('./ips.txt') as f: proxies = [line.split('@')[0] for line in f] def randomProxy(proxies): ip = random.choice(proxies...
28.429825
142
0.573588
393
3,241
4.641221
0.348601
0.023026
0.012061
0.017544
0.055921
0.029605
0.029605
0
0
0
0
0.012642
0.267819
3,241
114
143
28.429825
0.756005
0.05523
0
0.055556
0
0
0.085813
0
0
0
0
0
0
1
0.097222
false
0
0.041667
0.027778
0.263889
0.013889
0
0
0
null
0
0
0
0
0
0
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
1
0
9022b8901ebe6c1ee9599a4efe5b224353a4bd15
8,328
py
Python
crops/command_line/crops-cropstr.py
jjavier-bm/crops
658a98f9c168cc27b3f967e7a60a0df896ef5ac6
[ "BSD-3-Clause" ]
null
null
null
crops/command_line/crops-cropstr.py
jjavier-bm/crops
658a98f9c168cc27b3f967e7a60a0df896ef5ac6
[ "BSD-3-Clause" ]
5
2020-07-17T08:45:22.000Z
2022-03-11T13:39:26.000Z
crops/command_line/crops-cropstr.py
jjavier-bm/crops
658a98f9c168cc27b3f967e7a60a0df896ef5ac6
[ "BSD-3-Clause" ]
1
2020-07-07T15:42:07.000Z
2020-07-07T15:42:07.000Z
"""========== This script will remove a number of residues from a sequence file in agreement to the intervals and other details supplied. """ from crops.about import __prog__, __description__, __author__, __date__, __version__ import argparse import os from crops.io import check_path from crops.io import outpathgen...
47.862069
289
0.635687
1,006
8,328
5.127237
0.241551
0.027142
0.012214
0.029081
0.257076
0.227608
0.215587
0.178945
0.142691
0.116906
0
0.009274
0.236071
8,328
173
290
48.138728
0.801478
0.035303
0
0.179856
0
0.014388
0.17257
0.007815
0
0
0
0
0
1
0.014388
false
0
0.093525
0
0.122302
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
0
0
1
0
90251fea4bf1c0681bcedcffe3e8a599e9d53e72
13,189
py
Python
DSDM_Assignment2_final.py
antonyjames1996/time-series-analysis-agrotech
1e2abfe07f0e82c7a6f5cc01a268826fb2d29635
[ "MIT" ]
null
null
null
DSDM_Assignment2_final.py
antonyjames1996/time-series-analysis-agrotech
1e2abfe07f0e82c7a6f5cc01a268826fb2d29635
[ "MIT" ]
null
null
null
DSDM_Assignment2_final.py
antonyjames1996/time-series-analysis-agrotech
1e2abfe07f0e82c7a6f5cc01a268826fb2d29635
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[95]: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt # get_ipython().run_line_magic('matplotlib', 'inline') from sklearn.neighbors import LocalOutlierFactor from sklearn.model_selection import train_test_split from sklearn.line...
26.116832
119
0.679506
1,840
13,189
4.645652
0.167391
0.012635
0.013102
0.02059
0.502223
0.433786
0.340664
0.286968
0.253276
0.219584
0
0.02066
0.163242
13,189
504
120
26.168651
0.753896
0.251801
0
0.16875
0
0
0.300638
0.008646
0
0
0
0
0
1
0
false
0
0.13125
0
0.13125
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9025967f892fe7e0100f3ff33e467fab11a11531
4,830
py
Python
dcm2niix.py
rhancockn/dcm2bids
16597eeb20edfa0ec707c9bd0bf8468d94e0c925
[ "MIT" ]
null
null
null
dcm2niix.py
rhancockn/dcm2bids
16597eeb20edfa0ec707c9bd0bf8468d94e0c925
[ "MIT" ]
null
null
null
dcm2niix.py
rhancockn/dcm2bids
16597eeb20edfa0ec707c9bd0bf8468d94e0c925
[ "MIT" ]
null
null
null
#!/use/bin/python import tempfile import os import dicom import pandas import json import numpy as np from os.path import join import glob import errno import shutil class dcm2niix(object): """A wrapper for the dcm2niix command """ def __init__(self, row, bids_dir, intent = None): self.intent = intent #Dico...
32.2
285
0.695238
702
4,830
4.65812
0.264957
0.06055
0.058716
0.06055
0.37156
0.33578
0.237615
0.184098
0.125994
0.105199
0
0.027014
0.149275
4,830
149
286
32.416107
0.7688
0.073292
0
0.098039
0
0
0.169279
0.022615
0
0
0.021944
0
0
1
0.068627
false
0.009804
0.098039
0
0.176471
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
0
0
1
0
902da8cbd33808618399125bb013b3cfef957b80
4,479
py
Python
src/sss/genkey.py
foundriesio/plug-and-trust-ssscli
f77c65d5b3de649d7db1c023ee41d871f77cd224
[ "Apache-2.0" ]
null
null
null
src/sss/genkey.py
foundriesio/plug-and-trust-ssscli
f77c65d5b3de649d7db1c023ee41d871f77cd224
[ "Apache-2.0" ]
null
null
null
src/sss/genkey.py
foundriesio/plug-and-trust-ssscli
f77c65d5b3de649d7db1c023ee41d871f77cd224
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018-2020 NXP # SPDX-License-Identifier: Apache-2.0 # # """License text""" import logging from . import sss_api as apis from .keystore import KeyStore from .keyobject import KeyObject from .getkey import Get from .util import get_ecc_cypher_type log = logging.getLogger(__name__) class Generate: "...
33.177778
124
0.621121
607
4,479
4.319605
0.177924
0.048055
0.036613
0.02746
0.611365
0.548055
0.490465
0.490465
0.471777
0.410755
0
0.006353
0.297165
4,479
134
125
33.425373
0.826557
0.273052
0
0.433333
0
0
0.057619
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.416667
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
0
0
1
0
902e9315b6728c26e93d095508b7d9dca413b5b0
979
py
Python
Python/uds/uds_client.py
kaehsu/template-bash
f8a8a4babb8537622a4e4246701761a9832d6aeb
[ "MIT" ]
null
null
null
Python/uds/uds_client.py
kaehsu/template-bash
f8a8a4babb8537622a4e4246701761a9832d6aeb
[ "MIT" ]
null
null
null
Python/uds/uds_client.py
kaehsu/template-bash
f8a8a4babb8537622a4e4246701761a9832d6aeb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # To communicate with UDS server by nc: "echo -e "string\c" | sudo nc -q 1 -U /var/run/uds_led" import socket serverAddress = '/tmp/portex_tmp' def main(): try: while True: message = input( 'Enter the message send to server ("Quit" to quit): ') ...
28.794118
95
0.507661
107
979
4.53271
0.626168
0.037113
0.049485
0
0
0
0
0
0
0
0
0.017828
0.369765
979
33
96
29.666667
0.768233
0.150153
0
0
0
0
0.188634
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.086957
0.130435
0
0
0
null
0
0
0
0
0
0
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
1
0
903025199c8cb18d7b43068916c16d96cb4139f2
2,967
py
Python
0x06-python-classes/100-singly_linked_list.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
0x06-python-classes/100-singly_linked_list.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
0x06-python-classes/100-singly_linked_list.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Module 100-singly_linked_list Defines class Node (with private data and next_node) Defines class SinglyLinkedList (with private head and public sorted_insert) """ class Node: """ class Node definition Args: data (int): private next_node : private; can be None or Node...
23.179688
78
0.532524
340
2,967
4.432353
0.202941
0.138023
0.043796
0.023889
0.272064
0.135368
0.066357
0.066357
0.066357
0.066357
0
0.002193
0.385238
2,967
127
79
23.362205
0.824013
0.343108
0
0.265306
0
0
0.035692
0
0
0
0
0
0
1
0.163265
false
0
0
0
0.326531
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
0
0
1
0
90303a8de55d76b20b74b604783236c6d15111a5
310
py
Python
BI-IOS/semester-project/webapp/beecon/campaigns/urls.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
20
2016-05-15T10:39:53.000Z
2022-03-29T00:06:06.000Z
BI-IOS/semester-project/webapp/beecon/campaigns/urls.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
3
2017-05-27T16:44:01.000Z
2019-01-02T21:02:59.000Z
BI-IOS/semester-project/webapp/beecon/campaigns/urls.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
11
2018-08-22T21:16:32.000Z
2021-04-10T22:42:34.000Z
from django.conf.urls import url from . import views app_name = 'campaigns' urlpatterns = [ url( r'^$', views.JsonView.response, name='index' ), url( r'^(?P<app_code>[a-zA-Z0-9]+)/info/$', views.info, name='info' ), url( r'^(?P<app_code>[a-zA-Z0-9]+)/services/$', views.services, name='services' ), ]
25.833333
84
0.632258
48
310
4.020833
0.479167
0.062176
0.051813
0.082902
0.186529
0.186529
0.186529
0.186529
0.186529
0
0
0.01476
0.125806
310
11
85
28.181818
0.697417
0
0
0
0
0
0.322581
0.232258
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9032381dcc04f711d03772a06dc91a54a4d1b366
5,802
py
Python
models/joint_representation.py
ybCliff/VideoCaptioning
93fc3b095c970e51e1e24909163a827df98d6ef3
[ "MIT" ]
3
2020-05-16T23:59:57.000Z
2021-06-14T01:59:41.000Z
models/joint_representation.py
ybCliff/VideoCaptioning
93fc3b095c970e51e1e24909163a827df98d6ef3
[ "MIT" ]
null
null
null
models/joint_representation.py
ybCliff/VideoCaptioning
93fc3b095c970e51e1e24909163a827df98d6ef3
[ "MIT" ]
3
2020-05-17T00:01:01.000Z
2020-07-28T18:04:05.000Z
import torch import torch.nn as nn class Gated_Sum(nn.Module): def __init__(self, opt): super(Gated_Sum, self).__init__() hidden_size = opt['dim_hidden'] nf = opt.get('num_factor', 512) self.hidden_size = hidden_size self.num_feats = len(opt['modality']) - sum(opt['skip_in...
39.739726
146
0.601344
771
5,802
4.30869
0.178988
0.109573
0.054184
0.028898
0.276039
0.219446
0.173691
0.159843
0.083082
0.083082
0
0.012114
0.274388
5,802
146
147
39.739726
0.77696
0.13909
0
0.06383
0
0
0.034545
0.005824
0
0
0
0
0.042553
1
0.06383
false
0
0.031915
0
0.148936
0.021277
0
0
0
null
0
0
0
0
0
0
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
1
0
9034fc76134be07855830d17f0d402a691811b26
2,489
py
Python
scream/monorepo.py
r-kells/scream
3f5d325cd05a0f3eccc4b579b4929be49029ab09
[ "MIT" ]
26
2018-11-29T13:33:25.000Z
2021-11-22T18:45:19.000Z
scream/monorepo.py
r-kells/scream
3f5d325cd05a0f3eccc4b579b4929be49029ab09
[ "MIT" ]
14
2019-01-20T00:07:13.000Z
2020-07-15T13:19:29.000Z
scream/monorepo.py
r-kells/scream
3f5d325cd05a0f3eccc4b579b4929be49029ab09
[ "MIT" ]
2
2019-02-25T17:31:47.000Z
2020-01-22T22:10:41.000Z
import collections from scream.files import Docs, Scream, Tox class Monorepo(object): def __init__(self, root_dir): self.root_dir = root_dir self.config = Scream(self.root_dir) def sync(self): """Used internally ensure monorepo maintains certain standards. """ self.co...
34.09589
107
0.627561
280
2,489
5.335714
0.282143
0.096386
0.044177
0.02008
0.323963
0.311914
0.147256
0.064257
0.064257
0.064257
0
0.004469
0.280836
2,489
72
108
34.569444
0.830168
0.024106
0
0.232143
0
0
0.057581
0
0
0
0
0
0
1
0.142857
false
0
0.035714
0
0.267857
0.017857
0
0
0
null
0
0
0
0
0
0
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
1
0
9037bc76d22fa05dd0f3bfed5e08c4fd3d0cc516
538
py
Python
tbase/common/logger.py
iminders/TradeBaselines
26eb87f2bcd5f6ff479149219b38b17002be6a40
[ "MIT" ]
16
2020-03-19T15:12:28.000Z
2021-12-20T06:02:32.000Z
tbase/common/logger.py
iminders/TradeBaselines
26eb87f2bcd5f6ff479149219b38b17002be6a40
[ "MIT" ]
14
2020-03-23T03:57:00.000Z
2021-12-20T05:53:33.000Z
tbase/common/logger.py
iminders/TradeBaselines
26eb87f2bcd5f6ff479149219b38b17002be6a40
[ "MIT" ]
7
2020-03-25T00:30:18.000Z
2021-01-31T18:45:09.000Z
import logging import os logging.basicConfig( level=logging.INFO, format='%(asctime)s %(filename)s[%(lineno)d] %(levelname)s %(message)s') logger = logging.getLogger() dir_name = os.path.join("/tmp", "tbase") if not os.path.exists(dir_name): os.makedirs(dir_name) handler = logging.FileHandler(os.path.jo...
26.9
76
0.723048
74
538
5.202703
0.445946
0.072727
0.083117
0.088312
0.218182
0.218182
0.218182
0.218182
0.218182
0.218182
0
0
0.10223
538
19
77
28.315789
0.797101
0
0
0
0
0.133333
0.263941
0.089219
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
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
0
0
1
0
903bd4a9af5949595a7b7528cd44f5048565dedd
10,070
py
Python
torchsrc/models/fcn32s_BN.py
yuankaihuo/MedPhysics
94d8c5357b76658b9b161b541a1f195c6550ce55
[ "Apache-2.0" ]
null
null
null
torchsrc/models/fcn32s_BN.py
yuankaihuo/MedPhysics
94d8c5357b76658b9b161b541a1f195c6550ce55
[ "Apache-2.0" ]
null
null
null
torchsrc/models/fcn32s_BN.py
yuankaihuo/MedPhysics
94d8c5357b76658b9b161b541a1f195c6550ce55
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F # https://github.com/shelhamer/fcn.berkeleyvision.org/blob/master/surgery.py def get_upsample_filter(size): """Make a 2D bilinear kernel suitable for upsampling""" factor = (size + 1) // 2 if size % 2 == 1: ...
36.751825
101
0.523932
1,279
10,070
4.061767
0.139171
0.065448
0.085082
0.060635
0.47719
0.362079
0.350529
0.350529
0.344562
0.344562
0
0.092868
0.331678
10,070
273
102
36.886447
0.679049
0.090765
0
0.325123
0
0
0
0
0
0
0
0
0.009852
1
0.024631
false
0
0.019704
0
0.059113
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
0
0
1
0
903c7397f31fe34f15318c7f6541642d7c880c26
1,067
py
Python
src/schema/models.py
prashant0079/metabolic_assignment
9660ef06e6015833e3c64de9c3fe34927c85ba49
[ "MIT" ]
null
null
null
src/schema/models.py
prashant0079/metabolic_assignment
9660ef06e6015833e3c64de9c3fe34927c85ba49
[ "MIT" ]
1
2021-09-05T15:39:56.000Z
2021-09-05T20:26:39.000Z
src/schema/models.py
prashant0079/metabolic_assignment
9660ef06e6015833e3c64de9c3fe34927c85ba49
[ "MIT" ]
null
null
null
from pydantic import BaseModel from typing import List # The models used in this module are being used by the API # for type validation using Pydantic as FastAPI is reliant # on pydantic for Data validation class GeographySchema(BaseModel): id: int short_name: str name: str class EntrySchema(BaseModel)...
17.209677
58
0.68135
129
1,067
5.55814
0.403101
0.048815
0.078103
0.100418
0.152022
0.121339
0.083682
0
0
0
0
0
0.266167
1,067
61
59
17.491803
0.915709
0.135895
0
0.512195
0
0
0
0
0
0
0
0
0
1
0
false
0
0.04878
0
0.902439
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
0
0
1
0
903de14b44d3f2b0857467165c0169f5dac5d5b8
404
py
Python
app.py
923310233/APk-Down-Load
e7c3e4fdfbf9f7d8398d91ce0c5c028dfc685f3a
[ "MIT" ]
2
2021-07-28T07:06:55.000Z
2021-07-28T07:08:19.000Z
app.py
923310233/APk-Down-Load
e7c3e4fdfbf9f7d8398d91ce0c5c028dfc685f3a
[ "MIT" ]
null
null
null
app.py
923310233/APk-Down-Load
e7c3e4fdfbf9f7d8398d91ce0c5c028dfc685f3a
[ "MIT" ]
null
null
null
import subprocess f = open("app_list.csv","r") lines = f.readlines() for line in lines: print(line.strip()) command = "node app.js " + line.strip(); display = subprocess.run(command, stdout=subprocess.PIPE, shell=True) # display = subprocess.run(["sudo","-u",username,"tshark", "-r", pcapname, "-Y", disp...
31.076923
126
0.680693
55
404
4.927273
0.6
0.066421
0.147601
0
0
0
0
0
0
0
0
0
0.133663
404
13
127
31.076923
0.774286
0.408416
0
0
0
0
0.105485
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
903ed7280655c7a88f5f5eb4e9a427e26a17d12e
4,035
py
Python
contracts/models.py
sivanagarajumolabanti/IPFS
9ae01ce09c97660ca312aad7d612bbc8eb8146e7
[ "MIT" ]
1
2019-08-27T04:20:06.000Z
2019-08-27T04:20:06.000Z
contracts/models.py
sivanagarajumolabanti/IPFS
9ae01ce09c97660ca312aad7d612bbc8eb8146e7
[ "MIT" ]
null
null
null
contracts/models.py
sivanagarajumolabanti/IPFS
9ae01ce09c97660ca312aad7d612bbc8eb8146e7
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from django.utils.timezone import now class Vendor(models.Model): user = models.ManyToManyField(User) name = models.CharField(max_length=30, null=True) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.Date...
36.351351
102
0.691698
510
4,035
5.292157
0.172549
0.065209
0.073361
0.097814
0.727677
0.67877
0.596147
0.513524
0.482401
0.426454
0
0.017841
0.180421
4,035
110
103
36.681818
0.798307
0
0
0.430233
0
0
0.033457
0
0
0
0
0
0
1
0.093023
false
0
0.034884
0.093023
0.883721
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
0
0
1
0
9040b2be08c9dcba639583373b5f0c4c01de3091
13,242
py
Python
openstackclient/tests/unit/volume/v3/fakes.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
262
2015-01-29T20:10:49.000Z
2022-03-23T01:59:23.000Z
openstackclient/tests/unit/volume/v3/fakes.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
5
2015-01-21T02:37:35.000Z
2021-11-23T02:26:00.000Z
openstackclient/tests/unit/volume/v3/fakes.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
194
2015-01-08T07:39:27.000Z
2022-03-30T13:51:23.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
33.953846
79
0.614258
1,493
13,242
5.320831
0.170127
0.026057
0.034743
0.02719
0.530841
0.468907
0.364552
0.300101
0.260196
0.201158
0
0.017726
0.292781
13,242
389
80
34.041131
0.830539
0.280849
0
0.232143
0
0
0.138629
0.049956
0
0
0
0.002571
0
1
0.0625
false
0.004464
0.040179
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9040cb412be761146b6669d9fd4eade5a3ac0512
12,287
py
Python
gammapy/cube/tests/test_core.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
3
2019-01-28T12:21:14.000Z
2019-02-10T19:58:07.000Z
gammapy/cube/tests/test_core.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
gammapy/cube/tests/test_core.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from numpy.testing import assert_allclose from astropy.coordinates import Angle from astropy.tests.helper import pytest, assert_quantity_allclose from ast...
39.763754
90
0.657524
1,631
12,287
4.786021
0.195586
0.050218
0.040866
0.025109
0.425826
0.358698
0.328593
0.298232
0.272483
0.248655
0
0.049698
0.231952
12,287
308
91
39.892857
0.777472
0.198258
0
0.343284
0
0
0.051192
0.012644
0
0
0
0.006494
0.179104
1
0.084577
false
0
0.064677
0
0.159204
0.004975
0
0
0
null
0
0
0
0
0
0
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
1
0
90459d8bfe26d007178d66a09649931906768496
5,829
py
Python
web_app/ca_modules/make_utils.py
Lockers13/codagio
cfe9325cb3c207f7728db3c287439ce761ffea14
[ "MIT" ]
2
2021-01-16T13:42:14.000Z
2021-03-03T19:36:47.000Z
web_app/ca_modules/make_utils.py
Lockers13/codagio
cfe9325cb3c207f7728db3c287439ce761ffea14
[ "MIT" ]
null
null
null
web_app/ca_modules/make_utils.py
Lockers13/codagio
cfe9325cb3c207f7728db3c287439ce761ffea14
[ "MIT" ]
null
null
null
### A module containing various utilities used at various points throughout the processes of submitting and analyzing problems ### import os import json import subprocess import hashlib import sys import random import string from .output_processor import process_output from . import code_templates def make_file(path,...
40.2
198
0.632699
754
5,829
4.667109
0.274536
0.031827
0.018755
0.024155
0.247798
0.22819
0.212276
0.186132
0.123615
0.103723
0
0.009729
0.259393
5,829
145
199
40.2
0.80542
0.164522
0
0.09009
0
0
0.09338
0.023034
0
0
0
0
0
1
0.081081
false
0.009009
0.09009
0
0.225225
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
0
0
1
0
904821f621f97dceeec43eb063d81e21fa90c37c
21,136
py
Python
wazimap/data/utils.py
AssembleOnline/wazimap
1b8b68fb231b768047eee1b20ed180e4820a2890
[ "MIT" ]
1
2019-01-14T15:37:03.000Z
2019-01-14T15:37:03.000Z
wazimap/data/utils.py
Bhanditz/wazimap
fde22a0874020cf0ae013aeec7ab55b7c5a70b27
[ "MIT" ]
null
null
null
wazimap/data/utils.py
Bhanditz/wazimap
fde22a0874020cf0ae013aeec7ab55b7c5a70b27
[ "MIT" ]
null
null
null
from __future__ import division from collections import OrderedDict from sqlalchemy import create_engine, MetaData, func from sqlalchemy.orm import sessionmaker, class_mapper from django.conf import settings from django.db.backends.base.creation import TEST_DATABASE_PREFIX from django.db import connection if settin...
36.758261
138
0.607116
2,761
21,136
4.519377
0.159725
0.01154
0.007213
0.005289
0.148341
0.115403
0.09673
0.070284
0.057702
0.052412
0
0.005025
0.303321
21,136
574
139
36.8223
0.842377
0.277016
0
0.180516
0
0
0.094829
0.011686
0
0
0
0.001742
0
1
0.051576
false
0.002865
0.028653
0.005731
0.137536
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
0
0
1
0
9048acfcee11de068839ac11bcc199658e3bb1fe
9,913
py
Python
ovis/analysis/gradients.py
vlievin/ovis
71f05a5f5219b2df66a9cdbd5a5339e0e179597b
[ "MIT" ]
10
2020-08-06T22:25:11.000Z
2022-03-07T13:10:15.000Z
ovis/analysis/gradients.py
vlievin/ovis
71f05a5f5219b2df66a9cdbd5a5339e0e179597b
[ "MIT" ]
2
2021-06-08T22:15:24.000Z
2022-03-12T00:45:59.000Z
ovis/analysis/gradients.py
vlievin/ovis
71f05a5f5219b2df66a9cdbd5a5339e0e179597b
[ "MIT" ]
null
null
null
from time import time from typing import * import torch from booster import Diagnostic from torch import Tensor from tqdm import tqdm from .utils import cosine, percentile, RunningMean, RunningVariance from ..estimators import GradientEstimator from ..models import TemplateModel def get_grads_from_tensor(model: Tem...
42.545064
125
0.611924
1,260
9,913
4.684127
0.21746
0.016266
0.017791
0.016096
0.147069
0.076415
0.072857
0.052525
0.042697
0.011183
0
0.009255
0.291536
9,913
232
126
42.728448
0.831126
0.382528
0
0.094828
0
0
0.070229
0.003902
0
0
0
0
0.025862
1
0.025862
false
0
0.077586
0
0.12931
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
0
0
1
0
904a907ab750687eb1de030da0541431f23b5d88
1,081
py
Python
Sem-09-T1-Q5.py
daianasousa/Semana-09
decfc9b47931ae4f5a4f30a0d26b931ecd548f59
[ "MIT" ]
null
null
null
Sem-09-T1-Q5.py
daianasousa/Semana-09
decfc9b47931ae4f5a4f30a0d26b931ecd548f59
[ "MIT" ]
null
null
null
Sem-09-T1-Q5.py
daianasousa/Semana-09
decfc9b47931ae4f5a4f30a0d26b931ecd548f59
[ "MIT" ]
null
null
null
def carrega_cidades(): resultado = [] with open('cidades.csv', 'r', encoding='utf-8') as arquivo: for linha in arquivo: uf, ibge, nome, dia, mes, pop = linha.split(';') resultado.append( (uf, int(ibge), nome, int(dia), int(mes), int(pop)) ) arquivo...
30.885714
138
0.543941
134
1,081
4.313433
0.507463
0.048443
0.031142
0
0
0
0
0
0
0
0
0.01423
0.284921
1,081
35
139
30.885714
0.733506
0
0
0
0
0.037037
0.259704
0.021257
0
0
0
0
0
1
0.074074
false
0
0
0
0.111111
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f3a8ec38dd614e2783df50d617c5b8f3ca8b0f8
1,428
py
Python
data_split.py
CodeDogandCat/ChineseGrammarErrorDiagnose
4e1ec745ae938f742c6afb0e88b08ea50c6028cb
[ "Apache-2.0" ]
null
null
null
data_split.py
CodeDogandCat/ChineseGrammarErrorDiagnose
4e1ec745ae938f742c6afb0e88b08ea50c6028cb
[ "Apache-2.0" ]
null
null
null
data_split.py
CodeDogandCat/ChineseGrammarErrorDiagnose
4e1ec745ae938f742c6afb0e88b08ea50c6028cb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re # from pyltp import Segmentor import jieba.posseg as pseg import jieba import os import sys import json import math # import kenlm import nltk from collections import Counter def dataSplit(inputpath, count): (filepath, tempfilename) = os.path.split(inputpath) (filename, exten...
28
81
0.621148
178
1,428
4.977528
0.421348
0.022573
0.063205
0.076749
0.214447
0.214447
0.214447
0.214447
0.214447
0.214447
0
0.01184
0.231092
1,428
50
82
28.56
0.795082
0.081933
0
0.146341
0
0
0.111877
0
0
0
0
0
0
1
0.02439
false
0
0.219512
0
0.243902
0.219512
0
0
0
null
0
0
0
0
0
0
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
1
0
5f3df5f78e78d0ee2fc42ec4cf3a85208b508f67
7,178
py
Python
eos/old_scott_ANEOS_conversion.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
eos/old_scott_ANEOS_conversion.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
eos/old_scott_ANEOS_conversion.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
""" This is a python script that converts u(rho, T), P(rho, T), Cs(rho,T), S(rho, T) to T(rho, u), P(rho, u), Cs(rho, u), S(rho, u), which is more useful for SPH calculations """ import matplotlib.pyplot as plt from collections import OrderedDict import numpy as np import pandas as pd import csv import sys from scipy...
34.344498
146
0.636389
1,013
7,178
4.363277
0.174729
0.036199
0.01629
0.01267
0.345475
0.280995
0.254525
0.201584
0.137104
0.083258
0
0.022692
0.195737
7,178
208
147
34.509615
0.742941
0.478406
0
0.120482
0
0
0.085888
0
0
0
0
0
0
1
0.048193
false
0
0.096386
0
0.216867
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
0
0
1
0
5f3f44af77a5d9949e7fe7c6858624af3b7fa923
346
py
Python
scheduler/post_scheduler/urls.py
Awinja-j/Social-Media-post-Scheduler
4f95b4bb2ca3f890d3e22bcda859b94ebc483b87
[ "MIT" ]
1
2021-05-08T08:21:06.000Z
2021-05-08T08:21:06.000Z
scheduler/post_scheduler/urls.py
Awinja-j/Social-Media-post-Scheduler
4f95b4bb2ca3f890d3e22bcda859b94ebc483b87
[ "MIT" ]
null
null
null
scheduler/post_scheduler/urls.py
Awinja-j/Social-Media-post-Scheduler
4f95b4bb2ca3f890d3e22bcda859b94ebc483b87
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('post_posts', views.post_posts), path('fetch_posts', views.get_posts), path('fetch_post/<pk>', views.get_post), path('delete_post/<pk>', views.delete_post), path('edit_post/<pk>', views.edit_post), path('search_for_a_post', v...
28.833333
54
0.699422
52
346
4.346154
0.326923
0.079646
0.146018
0.123894
0
0
0
0
0
0
0
0
0.141619
346
12
55
28.833333
0.760943
0
0
0
0
0
0.239193
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f43a06d91c00b879b94bd9ca11de4d7d8fcab07
377
py
Python
full-stack/backend/django-app/django-jwt-app/settings/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
null
null
null
full-stack/backend/django-app/django-jwt-app/settings/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
23
2020-08-15T15:18:32.000Z
2022-02-26T13:49:05.000Z
full-stack/backend/django-app/django-jwt-app/settings/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from rest_framework_jwt.views import ( obtain_jwt_token, refresh_jwt_token, ) urlpatterns = [ path('admin/', admin.site.urls), path('token-auth/', obtain_jwt_token), path('token-refresh/', refresh_jwt_token), path('employ...
22.176471
70
0.710875
48
377
5.375
0.416667
0.124031
0.108527
0
0
0
0
0
0
0
0
0
0.153846
377
16
71
23.5625
0.808777
0
0
0
0
0
0.161804
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f45037068a6ca19658fc2ba430b609e4386fc29
15,989
py
Python
models/train_classifier.py
tarcisobraz/disaster-message-clf
22de03350a0f993005564a1d07a43da6bd989e67
[ "DOC" ]
null
null
null
models/train_classifier.py
tarcisobraz/disaster-message-clf
22de03350a0f993005564a1d07a43da6bd989e67
[ "DOC" ]
null
null
null
models/train_classifier.py
tarcisobraz/disaster-message-clf
22de03350a0f993005564a1d07a43da6bd989e67
[ "DOC" ]
null
null
null
#General libs import sys import os import json from datetime import datetime import time #Data wrangling libs import pandas as pd import numpy as np #DB related libs from sqlalchemy import create_engine #ML models related libs from sklearn.pipeline import Pipeline, FeatureUnion from sklearn.metrics import confusion_...
37.888626
117
0.659704
1,896
15,989
5.327532
0.179852
0.01881
0.009801
0.008316
0.306108
0.244431
0.226314
0.208692
0.184536
0.111276
0
0.005528
0.264557
15,989
421
118
37.978622
0.853474
0.272625
0
0.144144
0
0
0.135254
0.015976
0
0
0
0
0
1
0.045045
false
0
0.103604
0
0.18018
0.103604
0
0
0
null
0
0
0
0
0
0
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
1
0
5f501af017d1618fd9d8ac7f58bef0af07c22038
2,757
py
Python
MLP/Detectar cancer de mama/Cancer_mama_simples.py
alex7alves/Deep-Learning
7843629d5367f3ea8b15915a7ba3667cf7a65587
[ "Apache-2.0" ]
null
null
null
MLP/Detectar cancer de mama/Cancer_mama_simples.py
alex7alves/Deep-Learning
7843629d5367f3ea8b15915a7ba3667cf7a65587
[ "Apache-2.0" ]
null
null
null
MLP/Detectar cancer de mama/Cancer_mama_simples.py
alex7alves/Deep-Learning
7843629d5367f3ea8b15915a7ba3667cf7a65587
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Oct 17 21:04:48 2018 @author: Alex Alves Programa para determinar se um tumor de mama é benigno (saida 0) ou maligno (saida 1) """ import pandas as pa # Importação para poder dividir os dados entre treinamento da rede e testes de validação from skl...
33.216867
114
0.791077
406
2,757
5.251232
0.448276
0.078799
0.023921
0.030957
0.149625
0.136961
0.06848
0.06848
0.06848
0.06848
0
0.030826
0.117519
2,757
82
115
33.621951
0.845458
0.478781
0
0
0
0
0.080657
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f587bf36e711ee18aa81e26269a6338ac9328eb
1,388
py
Python
Stephanie/updater.py
JeremyARussell/stephanie-va
acc894fa69b4e5559308067d525f71f951ecc258
[ "MIT" ]
866
2017-06-10T19:25:28.000Z
2022-01-06T18:29:36.000Z
Stephanie/updater.py
JeremyARussell/stephanie-va
acc894fa69b4e5559308067d525f71f951ecc258
[ "MIT" ]
54
2017-06-11T06:41:19.000Z
2022-01-10T23:06:03.000Z
Stephanie/updater.py
JeremyARussell/stephanie-va
acc894fa69b4e5559308067d525f71f951ecc258
[ "MIT" ]
167
2017-06-10T19:32:54.000Z
2022-01-03T07:01:39.000Z
import requests from Stephanie.configurer import config class Updater: def __init__(self, speaker): self.speaker = speaker self.c = config self.current_version = self.c.config.get("APPLICATION", "version") self.update_url = "https://raw.githubusercontent.com/SlapBot/va-version-check/master/version.json" se...
34.7
142
0.730548
195
1,388
5.097436
0.379487
0.080483
0.054326
0.044266
0.088531
0
0
0
0
0
0
0
0.146974
1,388
39
143
35.589744
0.839527
0
0
0.176471
0
0.058824
0.366715
0.041066
0
0
0
0
0
1
0.088235
false
0
0.058824
0
0.264706
0.176471
0
0
0
null
0
0
0
0
0
0
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
1
0
5f591fe59a581e7f936f818cedb0f094b131b698
24,533
py
Python
WORC/featureprocessing/ComBat.py
MStarmans91/WORC
b6b8fc2ccb7d443a69b5ca20b1d6efb65b3f0fc7
[ "ECL-2.0", "Apache-2.0" ]
47
2018-01-28T14:08:15.000Z
2022-03-24T16:10:07.000Z
WORC/featureprocessing/ComBat.py
JZK00/WORC
14e8099835eccb35d49b52b97c0be64ecca3809c
[ "ECL-2.0", "Apache-2.0" ]
13
2018-08-28T13:32:57.000Z
2020-10-26T16:35:59.000Z
WORC/featureprocessing/ComBat.py
JZK00/WORC
14e8099835eccb35d49b52b97c0be64ecca3809c
[ "ECL-2.0", "Apache-2.0" ]
16
2017-11-13T10:53:36.000Z
2022-03-18T17:02:04.000Z
#!/usr/bin/env python # Copyright 2020 Biomedical Imaging Group Rotterdam, Departments of # Medical Informatics and Radiology, Erasmus MC, Rotterdam, The Netherlands # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a...
40.684909
161
0.604329
2,968
24,533
4.798854
0.152628
0.055676
0.03665
0.028646
0.441831
0.35105
0.290739
0.246367
0.205294
0.186407
0
0.013316
0.292871
24,533
602
162
40.752492
0.807701
0.134309
0
0.252451
0
0.002451
0.103574
0.012325
0
0
0
0.001661
0
1
0.009804
false
0.004902
0.041667
0
0.056373
0.066176
0
0
0
null
0
0
0
0
0
0
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
1
0
5f59e320e469d3924b3247fe49f94eea11acee62
727
py
Python
setup.py
mariocesar/pg-worker
d79c6daa8825226c754330c21150e4e416b09005
[ "MIT" ]
1
2020-06-03T21:21:03.000Z
2020-06-03T21:21:03.000Z
setup.py
mariocesar/pg-worker
d79c6daa8825226c754330c21150e4e416b09005
[ "MIT" ]
null
null
null
setup.py
mariocesar/pg-worker
d79c6daa8825226c754330c21150e4e416b09005
[ "MIT" ]
null
null
null
import os import sys from setuptools import setup, find_packages ROOT = os.path.realpath(os.path.join(os.path.dirname( sys.modules['__main__'].__file__))) sys.path.insert(0, os.path.join(ROOT, 'src')) setup( name='pgworker', packages=find_packages('src'), package_dir={'': 'src'}, classifiers=[ ...
24.233333
53
0.603851
77
727
5.532468
0.571429
0.056338
0.176056
0.122066
0
0
0
0
0
0
0
0.010929
0.244842
727
29
54
25.068966
0.765027
0
0
0
0
0
0.394773
0
0
0
0
0
0
1
0
false
0
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
0
0
0
0
0
1
0
5f5a0eafce7a5f076591e84cd9440a10e1d4e795
2,040
py
Python
PyBank/main.py
gentikosumi/python-challenge
e6532bf1033f5272616d4f8a1cf623bbafe1a1c2
[ "ADSL" ]
null
null
null
PyBank/main.py
gentikosumi/python-challenge
e6532bf1033f5272616d4f8a1cf623bbafe1a1c2
[ "ADSL" ]
null
null
null
PyBank/main.py
gentikosumi/python-challenge
e6532bf1033f5272616d4f8a1cf623bbafe1a1c2
[ "ADSL" ]
null
null
null
import os import csv path = '/Users/kevinkosumi12345/Genti/python-challenge/PyBank/Resources/budget_data.csv' budget_csv=os.path.join("../Resources", "budget_data.csv") csvfile = open(path, newline="") reader=csv.reader(csvfile, delimiter=",") header = next(reader) # print(header) # the columns we have to convert ...
30.909091
129
0.702451
278
2,040
5.082734
0.320144
0.076433
0.067941
0.031139
0.154282
0.096249
0.096249
0.050955
0
0
0
0.00791
0.132353
2,040
66
130
30.909091
0.790395
0.32549
0
0
0
0
0.243382
0.077206
0.068966
0
0
0
0
1
0
false
0
0.068966
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f5b2c35892025ff370debbb01a9bff69a798ad0
1,516
py
Python
models/python/hypothalamus/dynamical/old/simple.py
ABRG-Models/MammalBot
0b153232b94197c7a65156c1c3451ab2b9f725ae
[ "MIT" ]
null
null
null
models/python/hypothalamus/dynamical/old/simple.py
ABRG-Models/MammalBot
0b153232b94197c7a65156c1c3451ab2b9f725ae
[ "MIT" ]
null
null
null
models/python/hypothalamus/dynamical/old/simple.py
ABRG-Models/MammalBot
0b153232b94197c7a65156c1c3451ab2b9f725ae
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt T = 30000 # v = 0.02906 # v = 0.617085 v = 0.99 h = 0.01 a = 0.5 b = 0.5 epsilon = 0.05 c = 0.4 eta = lambda rho: np.exp(-(rho)**2/(2*c**2)) nrho = lambda rho, v: -2.0*(rho**3 + (rho-1.0)*v/2.0 - rho)/(rho + 1.0) nu = lambda rho: (b - eta(rho+1))/a u = np.zeros(T) ...
28.603774
85
0.529024
357
1,516
2.232493
0.22409
0.041405
0.043915
0.022585
0.136763
0.102886
0.080301
0
0
0
0
0.126603
0.176781
1,516
53
86
28.603774
0.512019
0.168865
0
0
0
0
0.029624
0
0
0
0
0
0
1
0
false
0
0.05
0
0.05
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
0
0
1
0
5f5c0b0acb48624cb76c04ec88d096e81b40a0f1
176
py
Python
test_script.py
SamPurle/DE17_Flask
a6462b85854f7bd72c80ebcc555d50488ef17e67
[ "MIT" ]
null
null
null
test_script.py
SamPurle/DE17_Flask
a6462b85854f7bd72c80ebcc555d50488ef17e67
[ "MIT" ]
null
null
null
test_script.py
SamPurle/DE17_Flask
a6462b85854f7bd72c80ebcc555d50488ef17e67
[ "MIT" ]
null
null
null
import numpy as np import os my_array = np.zeros(10) print(my_array) os.system('pip freeze > requirements.txt') my_list = [1,2,3,4,5] for item in my_list: print(item)
12.571429
42
0.693182
34
176
3.470588
0.705882
0.118644
0
0
0
0
0
0
0
0
0
0.048276
0.176136
176
13
43
13.538462
0.765517
0
0
0
0
0
0.164773
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f5ebabcae4886b932638d5f3ecd10d1eb595d7b
6,058
py
Python
lib/blastin.py
zbwrnz/blastdbm
ee694c01ebb00779623702738a9c958fd496a080
[ "Unlicense" ]
1
2018-03-22T10:34:20.000Z
2018-03-22T10:34:20.000Z
lib/blastin.py
arendsee/blastdbm
ee694c01ebb00779623702738a9c958fd496a080
[ "Unlicense" ]
null
null
null
lib/blastin.py
arendsee/blastdbm
ee694c01ebb00779623702738a9c958fd496a080
[ "Unlicense" ]
null
null
null
#! /usr/bin/python3 import argparse import os import re import sqlite3 as sql import sys import xml.etree.cElementTree as et import traceback import lib.initialize as initialize import lib.sqlite_interface as misc import lib.meta as meta # ================== # EXPORTED FUNCTIONS # ================== def parse(pare...
31.552083
83
0.530538
733
6,058
4.249659
0.268759
0.038202
0.020867
0.019262
0.083467
0.05618
0.023756
0.023756
0.023756
0
0
0.002925
0.322879
6,058
191
84
31.717277
0.75646
0.05794
0
0.155844
0
0
0.124955
0
0
0
0
0
0
1
0.084416
false
0.025974
0.064935
0
0.168831
0.006494
0
0
0
null
0
0
0
0
0
0
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
1
0
5f67096a7114362044846dbb3a2978d1562f88ac
700
py
Python
Python-AI-Algorithms/Bubble_sort.py
screadore/Artificial-Intelligence-Sorting-Algorithms
d69f34dbd02556c6a7bbb8e0dee45ab7fdb4b12c
[ "MIT" ]
null
null
null
Python-AI-Algorithms/Bubble_sort.py
screadore/Artificial-Intelligence-Sorting-Algorithms
d69f34dbd02556c6a7bbb8e0dee45ab7fdb4b12c
[ "MIT" ]
null
null
null
Python-AI-Algorithms/Bubble_sort.py
screadore/Artificial-Intelligence-Sorting-Algorithms
d69f34dbd02556c6a7bbb8e0dee45ab7fdb4b12c
[ "MIT" ]
null
null
null
# Bubble sort steps through the list and compares adjacent pairs of elements. The elements are swapped if they are in the wrong order. The pass through the unsorted portion of the list is repeated until the list is sorted. Because Bubble sort repeatedly passes through the unsorted part of the list, it has a worst case...
36.842105
342
0.591429
111
700
3.720721
0.477477
0.067797
0.087167
0
0
0
0
0
0
0
0
0.012848
0.332857
700
19
343
36.842105
0.87152
0.482857
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f670af72f12c73cbff679c29371d4269f74b778
551
py
Python
Practice/Python/Strings/the_minion_game.py
nifannn/HackerRank
b05318251226704b1fb949c29aa49493d6ced44b
[ "MIT" ]
7
2019-02-22T10:34:26.000Z
2021-07-13T01:51:48.000Z
Practice/Python/Strings/the_minion_game.py
nifannn/HackerRank
b05318251226704b1fb949c29aa49493d6ced44b
[ "MIT" ]
null
null
null
Practice/Python/Strings/the_minion_game.py
nifannn/HackerRank
b05318251226704b1fb949c29aa49493d6ced44b
[ "MIT" ]
7
2018-11-09T13:52:34.000Z
2021-03-18T20:36:22.000Z
def minion_game(string): # Stuart score s_idx = [i for i, c in enumerate(string) if c not in 'AEIOU'] s_score = sum([len(string)-i for i in s_idx]) # Kevin score k_idx = [i for i, c in enumerate(string) if c in 'AEIOU'] k_score = sum([len(string)-i for i in k_idx]) # final result if k_sc...
30.611111
65
0.604356
91
551
3.417582
0.351648
0.051447
0.064309
0.051447
0.450161
0.340836
0.340836
0.340836
0.186495
0.186495
0
0
0.255898
551
17
66
32.411765
0.758537
0.067151
0
0
0
0
0.107843
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f7622df0a14efca2dcdfe048326621ae11f4cbc
550
py
Python
blog/models.py
Happy-Project-Foundation/HappyProject
86e9fa7633e68c026e0003f8494df0226fa0dfcf
[ "Apache-2.0" ]
3
2021-12-04T15:00:54.000Z
2021-12-08T16:07:35.000Z
blog/models.py
BirnadinErick/HappyProject
4993a2d966d9c1458ce0e29e72c3a758a7a4ef54
[ "Apache-2.0" ]
3
2021-12-15T00:49:01.000Z
2021-12-16T00:46:14.000Z
blog/models.py
Happy-Project-Foundation/HappyProject
86e9fa7633e68c026e0003f8494df0226fa0dfcf
[ "Apache-2.0" ]
3
2021-12-04T14:18:15.000Z
2021-12-05T08:40:13.000Z
import uuid from django.db import models from django.db.models.fields import TextField class Blog(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) title = models.CharField(verbose_name="Title", max_length=150, default="Happy Blog", blank=False) content = models.T...
32.352941
109
0.736364
74
550
5.324324
0.5
0.083756
0.060914
0.13198
0
0
0
0
0
0
0
0.021322
0.147273
550
16
110
34.375
0.818763
0
0
0
0
0
0.078182
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0.090909
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f79434b07d0fd0852489b19f8f438fa54ae857d
7,273
py
Python
finetune_test.py
tengfeixue-victor/One-Shot-Animal-Video-Segmentation
15f9011c1b10f1e0c068f90ed46e72b3bc343310
[ "MIT" ]
2
2021-09-26T07:03:54.000Z
2022-02-21T15:46:30.000Z
finetune_test.py
tengfeixue-victor/One-Shot-Animal-Video-Segmentation
15f9011c1b10f1e0c068f90ed46e72b3bc343310
[ "MIT" ]
null
null
null
finetune_test.py
tengfeixue-victor/One-Shot-Animal-Video-Segmentation
15f9011c1b10f1e0c068f90ed46e72b3bc343310
[ "MIT" ]
1
2021-04-16T06:11:41.000Z
2021-04-16T06:11:41.000Z
""" References: https://github.com/scaelles/OSVOS-TensorFlow """ from __future__ import print_function import os import random import tensorflow as tf import time import numpy as np from utils import models from utils.load_data_finetune import Dataset from utils.logger import create_logger # seed seed = random.randin...
41.56
126
0.639214
933
7,273
4.705252
0.219721
0.028702
0.034169
0.043052
0.256036
0.205923
0.15467
0.140091
0.140091
0.140091
0
0.017331
0.262203
7,273
174
127
41.798851
0.800783
0.179843
0
0.083333
0
0
0.134641
0.047869
0
0
0
0
0
1
0.027778
false
0
0.083333
0
0.12037
0.009259
0
0
0
null
0
0
0
0
0
0
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
1
0
5f7a417145bc1e9d7aeea4542c8fef811419cb42
4,906
py
Python
codepod/impl.py
alexmorley/codepod
d932391beda9c4df7f048326afe7d0ea73ccb141
[ "Apache-2.0" ]
null
null
null
codepod/impl.py
alexmorley/codepod
d932391beda9c4df7f048326afe7d0ea73ccb141
[ "Apache-2.0" ]
null
null
null
codepod/impl.py
alexmorley/codepod
d932391beda9c4df7f048326afe7d0ea73ccb141
[ "Apache-2.0" ]
null
null
null
import subprocess import os import shutil import tempfile import random import string import yaml src_dir=os.path.dirname(os.path.realpath(__file__)) def codepod(*,repository='',image=None,volumes=[],mount_tmp=True,host_working_directory=None,docker_opts=None,git_smart=False,no_pull=False,command=False): if not d...
35.294964
155
0.664492
640
4,906
4.917188
0.254688
0.055926
0.101684
0.042262
0.224658
0.175405
0.116301
0.075628
0.06101
0.06101
0
0.004713
0.178353
4,906
138
156
35.550725
0.775986
0.091521
0
0.117647
0
0.019608
0.264746
0.113913
0
0
0
0
0
1
0.068627
false
0
0.068627
0.019608
0.176471
0.127451
0
0
0
null
0
0
0
0
0
0
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
1
0
5f7b66cd930462b5d1756ba227c23eb8265b8002
5,040
py
Python
closed/FuriosaAI/code/inference/vision/medical_imaging/3d-unet-kits19/inference_utils.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
388
2018-09-13T20:48:58.000Z
2020-11-23T11:52:13.000Z
closed/FuriosaAI/code/inference/vision/medical_imaging/3d-unet-kits19/inference_utils.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
597
2018-10-08T12:45:29.000Z
2020-11-24T17:53:12.000Z
closed/FuriosaAI/code/inference/vision/medical_imaging/3d-unet-kits19/inference_utils.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
228
2018-11-06T02:04:14.000Z
2020-12-09T07:51:02.000Z
#! /usr/bin/env python3 # coding=utf-8 # Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved. # Copyright 2021 The MLPerf Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of...
32.101911
91
0.698611
727
5,040
4.734525
0.310867
0.055782
0.020918
0.019756
0.36258
0.32946
0.30796
0.30796
0.286461
0.286461
0
0.017799
0.208532
5,040
156
92
32.307692
0.845074
0.333135
0
0.125
0
0
0.291732
0.024025
0
0
0
0
0.041667
1
0.111111
false
0
0.055556
0
0.263889
0.013889
0
0
0
null
0
0
0
0
0
0
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
1
0
5f7d2edfb9acb222096440265492c363f375f8a6
3,047
py
Python
fdtool/modules/GetFDs.py
dancps/FDTool
0958f79fccbb3bb7d55cf9031ee4bd411e9c9b5a
[ "CC0-1.0" ]
13
2019-03-22T13:30:04.000Z
2022-02-01T04:46:44.000Z
fdtool/modules/GetFDs.py
dancps/FDTool
0958f79fccbb3bb7d55cf9031ee4bd411e9c9b5a
[ "CC0-1.0" ]
3
2020-07-01T11:17:40.000Z
2022-02-13T11:20:34.000Z
fdtool/modules/GetFDs.py
dancps/FDTool
0958f79fccbb3bb7d55cf9031ee4bd411e9c9b5a
[ "CC0-1.0" ]
11
2018-07-02T23:46:31.000Z
2021-12-14T12:29:38.000Z
import binaryRepr # Create decorator function to see how many times functions are called def call_counter(func): def helper(*args, **kwargs): helper.calls += 1 return func(*args, **kwargs); helper.calls = 0 helper.__name__= func.__name__ return helper; # Calculate Partition (C_k, ...
43.528571
187
0.637348
435
3,047
4.363218
0.305747
0.01686
0.015806
0.031612
0.155954
0.081138
0.061117
0.061117
0.061117
0.061117
0
0.009362
0.263866
3,047
69
188
44.15942
0.836826
0.529373
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.041667
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
0
0
0
0
1
0
5f7e6f4612c23637da085f15ec80d97da8c65063
1,712
py
Python
experiments/benchmarks/activity_benchmark.py
Oidlichtnwoada/LongTermDependenciesLearning
f2913e86183588107f16402b402524a57b6ea057
[ "MIT" ]
1
2021-01-16T15:42:01.000Z
2021-01-16T15:42:01.000Z
experiments/benchmarks/activity_benchmark.py
Oidlichtnwoada/LongTermDependenciesLearning
f2913e86183588107f16402b402524a57b6ea057
[ "MIT" ]
null
null
null
experiments/benchmarks/activity_benchmark.py
Oidlichtnwoada/LongTermDependenciesLearning
f2913e86183588107f16402b402524a57b6ea057
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import experiments.benchmarks.benchmark as benchmark class ActivityBenchmark(benchmark.Benchmark): def __init__(self): super().__init__('activity', (('--sequence_length', 64, int), ('--max_samples', 40_00...
45.052632
139
0.624416
186
1,712
5.424731
0.413978
0.059465
0.062438
0.065411
0.124876
0
0
0
0
0
0
0.014914
0.255841
1,712
37
140
46.27027
0.77708
0
0
0
0
0
0.098715
0.031542
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f8081343c9866235ed311ae6467c672bfbe7609
4,685
py
Python
apps/menuplans/views.py
jajadinimueter/recipe
f3f0a4054a14637bf4e49728876fe7b0a029a21f
[ "MIT" ]
null
null
null
apps/menuplans/views.py
jajadinimueter/recipe
f3f0a4054a14637bf4e49728876fe7b0a029a21f
[ "MIT" ]
null
null
null
apps/menuplans/views.py
jajadinimueter/recipe
f3f0a4054a14637bf4e49728876fe7b0a029a21f
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as et from dateutil import parser from django.shortcuts import render from django.shortcuts import redirect from django.core.urlresolvers import reverse import untangle from .forms import MenuplanSearchForm from .forms import MenuplanCreateForm from .tables import MenuplanTable from ....
30.225806
81
0.547492
466
4,685
5.345494
0.253219
0.048173
0.024087
0.033721
0.07788
0.054597
0.044159
0.044159
0.044159
0.044159
0
0.000325
0.34365
4,685
154
82
30.422078
0.809756
0
0
0.132743
0
0
0.089861
0.008965
0
0
0
0
0
1
0.035398
false
0.00885
0.115044
0.00885
0.19469
0.017699
0
0
0
null
0
0
0
0
0
0
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
1
0
5f809ea0bdda1d52d937bea676c3f2375a0406e8
6,448
py
Python
data-detective-airflow/data_detective_airflow/operators/sinks/pg_scd1_df_update_insert.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
5
2021-12-01T09:55:23.000Z
2021-12-21T16:23:33.000Z
data-detective-airflow/data_detective_airflow/operators/sinks/pg_scd1_df_update_insert.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
1
2022-03-14T16:50:41.000Z
2022-03-14T16:50:41.000Z
data-detective-airflow/data_detective_airflow/operators/sinks/pg_scd1_df_update_insert.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
2
2021-11-03T09:43:09.000Z
2021-11-17T10:16:29.000Z
from contextlib import closing from io import StringIO import numpy import pandas from airflow.providers.postgres.hooks.postgres import PostgresHook from psycopg2.extensions import connection as psycopg2_connection from data_detective_airflow.dag_generator.works import WorkType from data_detective_airflow.operators.s...
39.317073
109
0.640199
845
6,448
4.602367
0.220118
0.041142
0.053998
0.023142
0.163795
0.124968
0.083312
0.046284
0.024685
0.024685
0
0.002941
0.261787
6,448
163
110
39.558282
0.814076
0.113058
0
0.107438
0
0
0.233676
0.036551
0
0
0
0
0
1
0.041322
false
0
0.066116
0
0.140496
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
0
0
1
0
5f83b8fcb8f9923c7beb83eb883b788a12549bf3
32,588
py
Python
plangym/core.py
FragileTech/plangym
9a1482bea099f12f82bae27f1c5d13393daa8032
[ "MIT" ]
3
2020-03-25T22:19:17.000Z
2020-11-02T16:11:32.000Z
plangym/core.py
FragileTech/plangym
9a1482bea099f12f82bae27f1c5d13393daa8032
[ "MIT" ]
44
2020-03-25T14:17:54.000Z
2022-03-12T00:18:48.000Z
plangym/core.py
FragileTech/plangym
9a1482bea099f12f82bae27f1c5d13393daa8032
[ "MIT" ]
2
2020-03-25T12:17:12.000Z
2020-06-19T23:07:52.000Z
"""Plangym API implementation.""" from abc import ABC from typing import Any, Callable, Dict, Generator, Iterable, Optional, Tuple, Union import gym from gym.envs.registration import registry as gym_registry from gym.spaces import Space import numpy import numpy as np wrap_callable = Union[Callable[[], gym.Wrapper],...
36.574635
99
0.613232
3,925
32,588
4.952866
0.102166
0.049691
0.022222
0.00823
0.494136
0.434465
0.410185
0.376029
0.356584
0.34784
0
0.001401
0.29919
32,588
890
100
36.61573
0.849812
0.419878
0
0.354839
0
0
0.016653
0
0
0
0
0
0
1
0.172811
false
0.006912
0.016129
0
0.327189
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
0
0
1
0
5f890b9328d6983928b109fecc583fe7148f59dc
6,426
py
Python
L2.py
coka28/AlignmentCluster
11a4e5fc578258bd3a2181a13bdaa60346eca8da
[ "MIT" ]
null
null
null
L2.py
coka28/AlignmentCluster
11a4e5fc578258bd3a2181a13bdaa60346eca8da
[ "MIT" ]
null
null
null
L2.py
coka28/AlignmentCluster
11a4e5fc578258bd3a2181a13bdaa60346eca8da
[ "MIT" ]
null
null
null
# Layer 2 server script # project worker '''-. +#_pü'-..... ö*+...:(loop):.............................................. m}°: \ €>!: 1. register clients \ &w^: 2. distribute WLs and add them to pending \...
36.931034
124
0.495331
755
6,426
4.215894
0.223841
0.076029
0.067861
0.042413
0.325479
0.231543
0.114672
0.061263
0.024505
0.024505
0
0.01384
0.336601
6,426
173
125
37.144509
0.730237
0.123561
0
0.117188
0
0.007813
0.228887
0.091996
0
0
0
0
0
1
0.046875
false
0.039063
0.015625
0
0.070313
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f8a8dc4b802b22d26a8494296192bb50d7f2d9a
2,677
py
Python
test/factory/schedule_factory.py
choonho/statistics
31fbae2d0772a2e8b717ac12c8de9edd9d8f1734
[ "Apache-2.0" ]
null
null
null
test/factory/schedule_factory.py
choonho/statistics
31fbae2d0772a2e8b717ac12c8de9edd9d8f1734
[ "Apache-2.0" ]
null
null
null
test/factory/schedule_factory.py
choonho/statistics
31fbae2d0772a2e8b717ac12c8de9edd9d8f1734
[ "Apache-2.0" ]
null
null
null
import factory from spaceone.core import utils from spaceone.statistics.model.schedule_model import Schedule, Scheduled, JoinQuery, Formula, QueryOption class ScheduledFactory(factory.mongoengine.MongoEngineFactory): class Meta: model = Scheduled cron = '*/5 * * * *' interval = 5 minutes = ...
26.245098
105
0.548001
234
2,677
6.141026
0.376068
0.06263
0.125261
0.142658
0.427279
0.427279
0.253306
0.192067
0.161447
0.161447
0
0.011186
0.332088
2,677
101
106
26.504951
0.792506
0
0
0.2875
0
0
0.125514
0
0
0
0
0
0
1
0
false
0
0.0375
0
0.475
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
0
0
1
0
5f9164c1cc7e9494a573895e93fd39680b8520f6
1,324
py
Python
ymir/backend/src/ymir_app/app/models/iteration.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/ymir_app/app/models/iteration.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
1
2022-01-18T09:28:29.000Z
2022-01-18T09:28:29.000Z
ymir/backend/src/ymir_app/app/models/iteration.py
Aryalfrat/ymir
d4617ed00ef67a77ab4e1944763f608bface4be6
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from sqlalchemy import Boolean, Column, DateTime, Integer, SmallInteger, String from app.config import settings from app.db.base_class import Base from app.models.task import Task # noqa class Iteration(Base): __tablename__ = "iteration" id = Column(Integer, primary_key=True, ...
36.777778
79
0.749245
162
1,324
5.919753
0.32716
0.149114
0.140772
0.114703
0.397289
0.265902
0.077164
0
0
0
0
0.001805
0.163142
1,324
35
80
37.828571
0.863718
0.003021
0
0
0
0
0.006829
0
0
0
0
0
0
1
0
false
0
0.178571
0
0.821429
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
0
0
1
0
5f94b482c019a016c621810412b2112d18748236
958
py
Python
Rosalind/iprb.py
yuriyshapovalov/Prototypes
1fc4af4434440a8f59a4bcb486e79fd53d199a7d
[ "Apache-2.0" ]
null
null
null
Rosalind/iprb.py
yuriyshapovalov/Prototypes
1fc4af4434440a8f59a4bcb486e79fd53d199a7d
[ "Apache-2.0" ]
1
2015-03-25T22:35:52.000Z
2015-03-25T22:35:52.000Z
Rosalind/iprb.py
yuriyshapovalov/Prototypes
1fc4af4434440a8f59a4bcb486e79fd53d199a7d
[ "Apache-2.0" ]
null
null
null
# Mendel's First Law # http://rosalind.info/problems/iprb/ import sys import unittest class iprb: def main(self, hom_dom, het, hom_rec): total = hom_dom + het + hom_rec p_hom_dom = hom_dom / total p_het = het / total p_hom_rec = hom_rec / total prob = 1 prob -= p_hom_rec * ((hom_rec-1)/(total-1)) pro...
23.365854
51
0.654489
166
958
3.548193
0.289157
0.112054
0.067912
0.081494
0.224109
0.078098
0.078098
0
0
0
0
0.036269
0.194154
958
41
52
23.365854
0.726684
0.056367
0
0.0625
0
0
0.038803
0
0
0
0
0
0.03125
1
0.09375
false
0
0.0625
0
0.25
0.03125
0
0
0
null
0
0
0
0
0
0
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
1
0
5f96125b242a38cf3339aa9cccbeb3af52c0c4f9
3,679
py
Python
boltzmann.py
jkotrc/2D-Elastic-Gas
ee7632518adb03076a684dae48f0fb6f8c44efa3
[ "Unlicense" ]
null
null
null
boltzmann.py
jkotrc/2D-Elastic-Gas
ee7632518adb03076a684dae48f0fb6f8c44efa3
[ "Unlicense" ]
null
null
null
boltzmann.py
jkotrc/2D-Elastic-Gas
ee7632518adb03076a684dae48f0fb6f8c44efa3
[ "Unlicense" ]
null
null
null
#MAIN method and graphics try: from OpenGL.GL import * from OpenGL import GLU import OpenGL.GL.shaders except: print("OpenGL wrapper for python not found") import glfw import numpy as np from computation import Computation class Graphics: def __init__(self,width,height, computation): ...
44.325301
141
0.651264
419
3,679
5.599045
0.353222
0.042199
0.025575
0.071611
0.212276
0.193521
0.148338
0.127025
0.067349
0.067349
0
0.027628
0.242457
3,679
83
142
44.325301
0.814137
0.041044
0
0.094595
0
0
0.039478
0
0
0
0
0
0
1
0.081081
false
0
0.081081
0
0.189189
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f9861c2730925ff3619b6059676dc2a261cbae6
827
py
Python
question_bank/lemonade-change/lemonade-change.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
9
2020-08-12T10:01:00.000Z
2022-01-05T04:37:48.000Z
question_bank/lemonade-change/lemonade-change.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
1
2021-02-16T10:19:31.000Z
2021-02-16T10:19:31.000Z
question_bank/lemonade-change/lemonade-change.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
4
2020-08-12T10:13:31.000Z
2021-11-05T01:26:58.000Z
# -*- coding: utf-8 -*- # @Author : LG """ 执行用时:152 ms, 在所有 Python3 提交中击败了96.83% 的用户 内存消耗:14 MB, 在所有 Python3 提交中击败了12.45% 的用户 解题思路: 见代码注释 """ class Solution: def lemonadeChange(self, bills: List[int]) -> bool: five = ten = 0 # 5元10元初始各0个 for bill in bills: if bill == 20: # 对于20,...
27.566667
59
0.41717
90
827
3.833333
0.644444
0.043478
0.046377
0.052174
0.075362
0
0
0
0
0
0
0.108747
0.488513
827
30
60
27.566667
0.706856
0.246675
0
0.3
0
0
0
0
0
0
0
0
0
1
0.05
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f9a0e11f9d9a926bf4cc162d77896b7f50869b6
4,668
py
Python
utils/augment_data.py
caiobarrosv/object-detection-for-grasping
2ac2f58700dff73032836ce33d3b98ebf3f29257
[ "BSD-3-Clause" ]
null
null
null
utils/augment_data.py
caiobarrosv/object-detection-for-grasping
2ac2f58700dff73032836ce33d3b98ebf3f29257
[ "BSD-3-Clause" ]
4
2020-07-24T19:31:51.000Z
2022-03-12T00:41:28.000Z
utils/augment_data.py
caiobarrosv/object-detection-for-grasping
2ac2f58700dff73032836ce33d3b98ebf3f29257
[ "BSD-3-Clause" ]
null
null
null
from mxnet import nd import os import sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..'))) import utils.common as dataset_commons import cv2 import numpy as np import glob import pandas as pd from gluoncv.data.transforms.presets.ssd import SSDDefaultTrainTransform from matplotlib import...
33.826087
130
0.633248
647
4,668
4.357032
0.293663
0.042568
0.03973
0.030153
0.202909
0.179142
0.090458
0.063852
0.063852
0.036893
0
0.024083
0.252785
4,668
137
131
34.072993
0.784117
0.11611
0
0.096774
0
0
0.058838
0.009052
0
0
0
0.007299
0
1
0.053763
false
0
0.107527
0
0.204301
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f9c3b49af1837552a765743d83f19677ef7b0fe
3,476
py
Python
targets/simple_router/flow_radar_bm/change_bm.py
tsihang-zz/FlowRadar-P4
1b4f92b83257ba8f34475c098bce8b84daa35b7c
[ "Apache-2.0" ]
15
2018-08-21T10:49:38.000Z
2021-06-23T14:33:32.000Z
targets/simple_router/flow_radar_bm/change_bm.py
harvard-cns/FlowRadar-P4
1b4f92b83257ba8f34475c098bce8b84daa35b7c
[ "Apache-2.0" ]
1
2017-10-16T07:49:06.000Z
2017-10-16T13:45:36.000Z
targets/simple_router/flow_radar_bm/change_bm.py
USC-NSL/FlowRadar-P4
1b4f92b83257ba8f34475c098bce8b84daa35b7c
[ "Apache-2.0" ]
6
2016-07-26T15:47:46.000Z
2018-03-23T01:50:06.000Z
import re import os def changed(lines, token): for line in lines: if line.find(token) != -1: return True return False # copy required files def copy_files(): os.system("cp flow_radar.h ../build/bm/src") # change actions.c to add flow_radar lock def change_actions_c(): actions_c = open("../build/bm/src/actio...
31.035714
148
0.649597
570
3,476
3.678947
0.187719
0.085837
0.047687
0.033381
0.571292
0.408202
0.285646
0.254173
0.22556
0.122079
0
0.011431
0.169448
3,476
111
149
31.315315
0.714929
0.025029
0
0.298969
0
0.010309
0.396455
0.153028
0
0
0
0
0
1
0.051546
false
0
0.020619
0
0.123711
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
0
0
1
0
5f9c577bd20e78c6c12bbdda22baa4f5a81a595e
618
py
Python
Python/Armstrong_Number.py
shashwat-agarwal/hacktoberfest-2
552a4278ffd671603f8659562427b0f1ac5127a4
[ "Apache-2.0" ]
17
2020-10-02T03:28:33.000Z
2020-10-24T04:08:30.000Z
Python/Armstrong_Number.py
shubhamgoel90/hacktoberfest
e7b1aa18485c4a080b2568910f82e98a5feb6f37
[ "Apache-2.0" ]
22
2020-10-01T20:00:56.000Z
2020-10-31T01:56:10.000Z
Python/Armstrong_Number.py
shubhamgoel90/hacktoberfest
e7b1aa18485c4a080b2568910f82e98a5feb6f37
[ "Apache-2.0" ]
139
2020-10-01T19:51:40.000Z
2020-11-02T19:58:19.000Z
#Program to check whether the number is an armstrong number or not #Ask user to enter the number number=int(input("Enter the number you want to check armstrong: ")) #To calculate the length of number entered. order=len(str(number)) #Initialise sum to 0 sum=0 temp=number while temp>0: num=temp%10 sum+=num**o...
21.310345
68
0.723301
103
618
4.339806
0.368932
0.14094
0.134228
0.127517
0.431767
0.431767
0.431767
0.353468
0.187919
0
0
0.022
0.190939
618
28
69
22.071429
0.872
0.425566
0
0
0
0
0.439655
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f9df6e37fc71858adef3ee969afe3699916d4a6
2,669
py
Python
plugins/DonorlessOperation/__init__.py
j-h-m/Media-Journaling-Tool
4ab6961e2768dc002c9bbad182f83188631f01bd
[ "BSD-3-Clause" ]
null
null
null
plugins/DonorlessOperation/__init__.py
j-h-m/Media-Journaling-Tool
4ab6961e2768dc002c9bbad182f83188631f01bd
[ "BSD-3-Clause" ]
null
null
null
plugins/DonorlessOperation/__init__.py
j-h-m/Media-Journaling-Tool
4ab6961e2768dc002c9bbad182f83188631f01bd
[ "BSD-3-Clause" ]
null
null
null
import logging from maskgen import video_tools import random import maskgen.video_tools import os import maskgen import json plugin = "DonorPicker" def transform(img, source, target, **kwargs): valid = [] possible = [] data = {} logging.getLogger('maskgen').info(str(kwargs)) for f in os.listdir(kwa...
38.128571
124
0.557887
307
2,669
4.801303
0.345277
0.044776
0.040706
0.043419
0.150611
0.150611
0
0
0
0
0
0.004772
0.293368
2,669
70
125
38.128571
0.776776
0.104159
0
0
0
0
0.252931
0
0
0
0
0
0
1
0.032258
false
0
0.112903
0.016129
0.177419
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
0
0
1
0
5f9e0f831db1b36f8edc783c6c1bfaa61c116474
1,228
py
Python
track_model/eval_avg_scores.py
QUVA-Lab/lang-tracker
6cb3630471765565b6f2d34a160f0cd51d95a082
[ "BSD-2-Clause-FreeBSD" ]
31
2017-09-13T13:40:59.000Z
2022-01-25T16:55:19.000Z
track_model/eval_avg_scores.py
zhenyangli/lang-tracker
dddd808a22582573ab0a5e4c3dbf0ba054e42d61
[ "BSD-3-Clause" ]
4
2017-09-14T01:56:58.000Z
2021-01-28T00:58:58.000Z
track_model/eval_avg_scores.py
QUVA-Lab/lang-tracker
6cb3630471765565b6f2d34a160f0cd51d95a082
[ "BSD-2-Clause-FreeBSD" ]
9
2017-09-28T03:22:08.000Z
2021-01-19T10:56:44.000Z
import caffe import numpy as np import os import sys import track_model_train as track_model import train_config max_iter = 1000 def eval_avg_scores(config): with open('./track_model/scores.prototxt', 'w') as f: f.write(str(track_model.generate_scores('', config))) caffe.set_device(config.gpu_id) ...
29.95122
90
0.643322
165
1,228
4.521212
0.472727
0.067024
0.034853
0.050938
0
0
0
0
0
0
0
0.093248
0.240228
1,228
40
91
30.7
0.706324
0.198697
0
0
0
0
0.124744
0.059305
0
0
0
0
0
1
0.035714
false
0
0.214286
0
0.25
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5f9e1b47610239b65145f24fa61ab7d89533b94e
1,968
py
Python
tests/group_test.py
gekkeharry13/api-python
b18d1694c19f5f972a126ee9ff3d3971a08815cb
[ "Apache-2.0" ]
1
2018-05-31T17:29:30.000Z
2018-05-31T17:29:30.000Z
tests/group_test.py
gekkeharry13/api-python
b18d1694c19f5f972a126ee9ff3d3971a08815cb
[ "Apache-2.0" ]
8
2015-02-20T16:22:12.000Z
2019-04-25T23:57:43.000Z
tests/group_test.py
gekkeharry13/api-python
b18d1694c19f5f972a126ee9ff3d3971a08815cb
[ "Apache-2.0" ]
8
2015-02-28T06:56:15.000Z
2020-01-02T22:42:09.000Z
# # Copyright (C) 2014 Conjur Inc # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, publish, distri...
37.132075
82
0.757622
299
1,968
4.87291
0.424749
0.060398
0.030199
0.041181
0.154427
0.104324
0.104324
0.059025
0.059025
0.059025
0
0.004207
0.154472
1,968
52
83
37.846154
0.871394
0.533537
0
0.173913
0
0
0.101336
0
0
0
0
0
0.26087
1
0.173913
false
0
0.086957
0
0.26087
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
0
0
1
0
5fa0436f9f5d626cf4b365a484376d1f5343ee15
5,046
py
Python
FTPShell/FTPShell.py
dsogo/H4CKING
58aaaabc25995dbff9aa4985e8308a963772b87e
[ "MIT" ]
17
2020-10-07T01:37:32.000Z
2021-12-11T21:23:25.000Z
FTPShell/FTPShell.py
Al0nnso/H4CKING
58aaaabc25995dbff9aa4985e8308a963772b87e
[ "MIT" ]
null
null
null
FTPShell/FTPShell.py
Al0nnso/H4CKING
58aaaabc25995dbff9aa4985e8308a963772b87e
[ "MIT" ]
8
2020-09-22T03:14:51.000Z
2022-03-07T16:03:24.000Z
from pyftpdlib.authorizers import DummyAuthorizer from pyftpdlib.handlers import FTPHandler from multiprocessing import Process from pyftpdlib import servers from time import sleep from requests import get import socket import psutil import win32api # Al0nnso - 2019 # FTP Reverse Shell # NOT TESTED WITH EXTERN NETWOR...
35.535211
92
0.441538
509
5,046
4.339882
0.273084
0.043006
0.040742
0.027162
0.179267
0.062472
0.028972
0
0
0
0
0.022177
0.419144
5,046
141
93
35.787234
0.731491
0.022989
0
0.320611
0
0
0.082284
0
0
0
0
0
0
1
0.015267
false
0.030534
0.068702
0
0.083969
0.076336
0
0
0
null
0
0
0
0
0
0
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
1
0
5fa103b113b3be7f53cb7ec2e64ba88c2cf38693
8,321
py
Python
tests/test_io.py
wellcometrust/deep_reference_parser
b58e4616f4de9bfe18ab41e90f696f80ab876245
[ "MIT" ]
13
2020-02-19T02:09:00.000Z
2021-12-16T23:15:58.000Z
tests/test_io.py
wellcometrust/deep_reference_parser
b58e4616f4de9bfe18ab41e90f696f80ab876245
[ "MIT" ]
33
2020-02-12T11:21:51.000Z
2022-02-10T00:48:17.000Z
tests/test_io.py
wellcometrust/deep_reference_parser
b58e4616f4de9bfe18ab41e90f696f80ab876245
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 import os import pytest from deep_reference_parser.io.io import ( read_jsonl, write_jsonl, load_tsv, write_tsv, _split_list_by_linebreaks, _unpack, ) from deep_reference_parser.reference_utils import yield_token_label_pairs from .common import TEST_JSON...
24.259475
88
0.414373
1,020
8,321
3.254902
0.107843
0.063253
0.05241
0.06988
0.629819
0.558434
0.509036
0.483735
0.471386
0.471386
0
0.026336
0.361134
8,321
342
89
24.330409
0.598194
0.118736
0
0.502439
0
0
0.19671
0
0
0
0
0
0.068293
1
0.058537
false
0
0.02439
0.004878
0.087805
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
0
0
1
0
5fa141b264762a22f9a2b6309a86900f4d79fb07
389
py
Python
tests/unit/test_priorities.py
anshumangoyal/testrail-api
a9b2983a59667999a8432fa0af034c1fbd07e1cc
[ "MIT" ]
21
2019-04-15T07:25:48.000Z
2022-03-19T04:21:43.000Z
tests/unit/test_priorities.py
anshumangoyal/testrail-api
a9b2983a59667999a8432fa0af034c1fbd07e1cc
[ "MIT" ]
30
2019-04-15T07:18:59.000Z
2022-03-19T07:26:57.000Z
tests/unit/test_priorities.py
anshumangoyal/testrail-api
a9b2983a59667999a8432fa0af034c1fbd07e1cc
[ "MIT" ]
16
2019-02-21T11:59:32.000Z
2022-02-23T17:33:16.000Z
import json import responses def test_get_priorities(api, mock, host): mock.add_callback( responses.GET, '{}index.php?/api/v2/get_priorities'.format(host), lambda x: (200, {}, json.dumps([{'id': 1, 'priority': 1}, {'id': 4, 'priority': 4}])) ) resp = api.priorities.get_priorities...
24.3125
93
0.59383
52
389
4.346154
0.519231
0.172566
0
0
0
0
0
0
0
0
0
0.039216
0.213368
389
15
94
25.933333
0.699346
0
0
0
0
0
0.164524
0.087404
0
0
0
0
0.181818
1
0.090909
false
0
0.181818
0
0.272727
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
0
0
1
0
5fa14c2eb69ff76b5ae4ab590ca445b49132d179
37,185
py
Python
prescient/gosm/tester.py
iSoron/Prescient
a3c1d7c5840893ff43dca48c40dc90f083292d26
[ "BSD-3-Clause" ]
21
2020-06-03T13:54:22.000Z
2022-02-27T18:20:35.000Z
prescient/gosm/tester.py
iSoron/Prescient
a3c1d7c5840893ff43dca48c40dc90f083292d26
[ "BSD-3-Clause" ]
79
2020-07-30T17:29:04.000Z
2022-03-09T00:06:39.000Z
prescient/gosm/tester.py
bknueven/Prescient
6289c06a5ea06c137cf1321603a15e0c96ddfb85
[ "BSD-3-Clause" ]
16
2020-07-14T17:05:56.000Z
2022-02-17T17:51:13.000Z
# ___________________________________________________________________________ # # Prescient # Copyright 2020 National Technology & Engineering Solutions of Sandia, LLC # (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. # Government retains certain rights in this software. # This software is ...
43.644366
134
0.61584
4,520
37,185
4.91792
0.100885
0.019794
0.056593
0.010887
0.693643
0.627649
0.572405
0.52364
0.468262
0.437402
0
0.041509
0.25236
37,185
851
135
43.695652
0.758066
0.064004
0
0.479514
0
0
0.05282
0
0
0
0
0
0.08346
1
0.069803
false
0
0.025797
0.007587
0.124431
0.051593
0
0
0
null
0
0
0
0
0
0
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
1
0
5fa32fa26545cc0a0f75090c1a789058c3f6ac3d
751
py
Python
src/level2/뉴스클러스터링.py
iml1111/programmers_coding_study
07e89220c59c3b40dd92edc39d1b573d018efae4
[ "MIT" ]
1
2021-01-03T13:01:33.000Z
2021-01-03T13:01:33.000Z
src/level2/뉴스클러스터링.py
iml1111/programmers_coding_study
07e89220c59c3b40dd92edc39d1b573d018efae4
[ "MIT" ]
null
null
null
src/level2/뉴스클러스터링.py
iml1111/programmers_coding_study
07e89220c59c3b40dd92edc39d1b573d018efae4
[ "MIT" ]
null
null
null
from collections import Counter def refine(s): result = [] for i in range(len(s) - 1): bigram = s[i:i+2].lower() if bigram.isalpha(): result.append(bigram) return result def solution(str1, str2): counter1, counter2 = Counter(refine(str1)), Counter(refine(str2)) set1, se...
31.291667
77
0.609854
113
751
3.929204
0.415929
0.027027
0.040541
0.036036
0.216216
0.171171
0.171171
0.171171
0.171171
0
0
0.055652
0.234354
751
24
78
31.291667
0.716522
0.046605
0
0
0
0
0.030726
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.315789
0.052632
0
0
0
null
0
0
0
0
0
0
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
1
0
5faad04658ea51684534a077173c5f03481fc86f
6,728
py
Python
Zmuggler.py
electronicbots/Zmuggler
5b9df5919367dffb588b18c5acd567e20135d2b7
[ "MIT" ]
1
2021-07-28T06:02:44.000Z
2021-07-28T06:02:44.000Z
Zmuggler.py
electronicbots/Zmuggler
5b9df5919367dffb588b18c5acd567e20135d2b7
[ "MIT" ]
null
null
null
Zmuggler.py
electronicbots/Zmuggler
5b9df5919367dffb588b18c5acd567e20135d2b7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from requests import Request, Session from requests.exceptions import ReadTimeout import urllib3, requests, collections, http.client, optparse, sys, os print("""\033[1;36m _____ _ |__ /_ __ ___ _ _ __ _ __ _| | ___ _ __ / /| '_ ` _ \| | | |/ _` |/ ...
35.597884
148
0.5
658
6,728
4.93617
0.287234
0.142857
0.120382
0.143165
0.267857
0.239224
0.239224
0.213978
0.184421
0.163177
0
0.026651
0.35865
6,728
188
149
35.787234
0.726072
0.002527
0
0.233129
0
0.042945
0.284501
0.030402
0
0
0
0
0
1
0.067485
false
0
0.018405
0
0.141104
0.06135
0
0
0
null
0
0
0
0
0
0
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
1
0
5faed7df0481d882b8814038712e8be58ef77e17
3,397
py
Python
cosmosis-standard-library/shear/cl_to_xi_fullsky/cl_to_xi_interface.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
1
2021-09-15T10:10:26.000Z
2021-09-15T10:10:26.000Z
cosmosis-standard-library/shear/cl_to_xi_fullsky/cl_to_xi_interface.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
null
null
null
cosmosis-standard-library/shear/cl_to_xi_fullsky/cl_to_xi_interface.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
1
2021-06-11T15:29:43.000Z
2021-06-11T15:29:43.000Z
#coding: utf-8 #import cl_to_xi_full from __future__ import print_function from builtins import range import numpy as np from cosmosis.datablock import option_section, names as section_names from cl_to_xi import save_xi_00_02, save_xi_22, arcmin_to_radians, SpectrumInterp from legendre import get_legfactors_00, get_leg...
36.138298
87
0.657345
480
3,397
4.325
0.25625
0.093931
0.023121
0.028902
0.22736
0.202312
0.148844
0.148844
0.090559
0.090559
0
0.017689
0.251104
3,397
93
88
36.526882
0.798349
0.064469
0
0.178082
0
0
0.114754
0
0
0
0
0
0
1
0.041096
false
0
0.082192
0.013699
0.164384
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
0
0
0
0
0
0
0
0
1
0
5fb11bba5257814c53fdaf00b36feffb7caef7ad
22,329
py
Python
aiida_vasp/parsers/content_parsers/vasprun.py
DropD/aiida_vasp
9967f5501a6fc1c67981154068135cec7be5396a
[ "MIT" ]
3
2016-11-18T07:19:57.000Z
2016-11-28T08:28:38.000Z
aiida_vasp/parsers/content_parsers/vasprun.py
DropD/aiida_vasp
9967f5501a6fc1c67981154068135cec7be5396a
[ "MIT" ]
null
null
null
aiida_vasp/parsers/content_parsers/vasprun.py
DropD/aiida_vasp
9967f5501a6fc1c67981154068135cec7be5396a
[ "MIT" ]
null
null
null
""" The vasprun.xml parser interface. --------------------------------- Contains the parsing interfaces to ``parsevasp`` used to parse ``vasprun.xml`` content. """ # pylint: disable=abstract-method, too-many-public-methods import numpy as np from parsevasp.vasprun import Xml from parsevasp import constants as parseva...
31.898571
132
0.578261
2,355
22,329
5.343524
0.167728
0.02535
0.039177
0.039733
0.207088
0.179832
0.125238
0.101716
0.089558
0.089558
0
0.001314
0.318151
22,329
699
133
31.944206
0.825222
0.22894
0
0.278761
0
0
0.161119
0.022793
0
0
0
0
0
1
0.068584
false
0
0.011062
0.002212
0.19469
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
0
0
1
0
5fb3ccf7fca90c61707cbd90f3475846779b54b9
341
py
Python
clash-of-code/shortest/number_categories.py
jonasnic/codingame
f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721
[ "MIT" ]
30
2016-04-30T01:56:05.000Z
2022-03-09T22:19:12.000Z
clash-of-code/shortest/number_categories.py
jonasnic/codingame
f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721
[ "MIT" ]
1
2021-05-19T19:36:45.000Z
2021-05-19T19:36:45.000Z
clash-of-code/shortest/number_categories.py
jonasnic/codingame
f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721
[ "MIT" ]
17
2020-01-28T13:54:06.000Z
2022-03-26T09:49:27.000Z
from collections import defaultdict c=defaultdict(set) f=lambda:[int(i) for i in input().split()] a,b=f() s,e=f() for i in range(s,e+1): x=i%a==0 y=i%b==0 if x and y: c[3].add(i) elif x and not y: c[1].add(i) elif y and not x: c[2].add(i) else: c[4].add(i) o=[] for i in range(1,5): o.append(str(len(c[i])...
17.05
42
0.58651
84
341
2.380952
0.464286
0.08
0.09
0.11
0
0
0
0
0
0
0
0.031915
0.173021
341
20
43
17.05
0.677305
0
0
0
0
0
0.002924
0
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fb5e0196946388daa9f3a5d9e0cb39eba4f8a0c
520
py
Python
interpreter/src/parser/errors.py
Cdayz/simple_lang
dc19d6ef76bb69c87981c8b826cf8f71b0cc475b
[ "MIT" ]
3
2019-08-22T01:20:16.000Z
2021-02-05T09:11:50.000Z
interpreter/src/parser/errors.py
Cdayz/simple_lang
dc19d6ef76bb69c87981c8b826cf8f71b0cc475b
[ "MIT" ]
null
null
null
interpreter/src/parser/errors.py
Cdayz/simple_lang
dc19d6ef76bb69c87981c8b826cf8f71b0cc475b
[ "MIT" ]
2
2019-08-22T01:20:18.000Z
2021-05-27T14:40:12.000Z
"""Module with useful exceptions for Parser.""" class BadOperationIdentifier(Exception): """Bad operation identifier used.""" class BadOperationArgument(Exception): """Bad argument provided to operation.""" class BadInPlaceValue(Exception): """Bad in-place value provided as argument.""" class Parsin...
22.608696
52
0.696154
55
520
6.436364
0.563636
0.101695
0.073446
0.096045
0
0
0
0
0
0
0
0
0.188462
520
22
53
23.636364
0.838863
0.315385
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
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
0
0
1
0
5fb78ad70383d16f179dd4a23ab825be06e844e6
1,919
py
Python
apps/DuelingBanditsPureExploration/dashboard/Dashboard.py
erinzm/NEXT-chemistry
d6ca0a80640937b36f9cafb5ead371e7a8677734
[ "Apache-2.0" ]
155
2015-11-01T17:48:41.000Z
2022-02-06T21:37:41.000Z
apps/DuelingBanditsPureExploration/dashboard/Dashboard.py
erinzm/NEXT-chemistry
d6ca0a80640937b36f9cafb5ead371e7a8677734
[ "Apache-2.0" ]
193
2015-09-29T21:40:31.000Z
2020-04-21T15:09:13.000Z
apps/DuelingBanditsPureExploration/dashboard/Dashboard.py
erinzm/NEXT-chemistry
d6ca0a80640937b36f9cafb5ead371e7a8677734
[ "Apache-2.0" ]
54
2015-09-30T15:51:05.000Z
2022-02-13T05:26:20.000Z
import json import next.utils as utils from next.apps.AppDashboard import AppDashboard class MyAppDashboard(AppDashboard): def __init__(self,db,ell): AppDashboard.__init__(self,db,ell) def most_current_ranking(self,app, butler, alg_label): """ Description: Returns a ranking of arms in ...
47.975
158
0.604482
246
1,919
4.605691
0.390244
0.035305
0.017652
0.022948
0.125331
0.0812
0.0812
0.0812
0.0812
0
0
0.002882
0.276707
1,919
39
159
49.205128
0.813401
0.45284
0
0
0
0
0.186441
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fc3fd1b7cba71af7933022261d214435bda9000
2,786
py
Python
results/baseline/parse_rollout.py
XiaoSanchez/autophase
3d8d173ad27b9786e36efd22d0ceacbcf1cb1dfb
[ "BSD-3-Clause" ]
14
2020-04-03T12:41:50.000Z
2022-02-04T00:05:01.000Z
results/baseline/parse_rollout.py
XiaoSanchez/autophase
3d8d173ad27b9786e36efd22d0ceacbcf1cb1dfb
[ "BSD-3-Clause" ]
2
2020-03-02T04:32:58.000Z
2021-09-15T20:02:25.000Z
results/baseline/parse_rollout.py
XiaoSanchez/autophase
3d8d173ad27b9786e36efd22d0ceacbcf1cb1dfb
[ "BSD-3-Clause" ]
8
2020-03-02T10:30:36.000Z
2021-08-03T02:29:38.000Z
import pickle import sys import numpy as np def geomean(iterable): a = np.array(iterable).astype(float) prod = a.prod() prod = -prod if prod < 0 else prod return prod**(1.0/len(a)) # Define the valid programs here def is_valid_pgm(pgm): pgms = ['471', '4926', '12092', '3449', '4567', '16510', '6118'...
34.395062
401
0.623116
388
2,786
4.255155
0.332474
0.042399
0.036342
0.012114
0.155058
0.081163
0.032707
0
0
0
0
0.125963
0.207825
2,786
80
402
34.825
0.622111
0.059584
0
0.061538
0
0
0.168453
0.016462
0
0
0
0
0
1
0.046154
false
0.015385
0.046154
0
0.138462
0.169231
0
0
0
null
0
0
0
0
0
0
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
1
0
5fc5f8dbe2e450d186ac311e88fde09d3e71e36d
767
py
Python
src/transformer_utils/util/module_utils.py
cfoster0/transformer-utils
4e4bc61adb331f90bb2a9a394db07e25eda87555
[ "MIT" ]
10
2021-07-11T07:32:35.000Z
2022-02-16T16:46:19.000Z
src/transformer_utils/util/module_utils.py
cfoster0/transformer-utils
4e4bc61adb331f90bb2a9a394db07e25eda87555
[ "MIT" ]
null
null
null
src/transformer_utils/util/module_utils.py
cfoster0/transformer-utils
4e4bc61adb331f90bb2a9a394db07e25eda87555
[ "MIT" ]
2
2021-05-24T22:50:28.000Z
2021-09-14T16:14:10.000Z
from .python_utils import make_print_if_verbose def get_child_module_by_names(module, names): obj = module for getter in map(lambda name: lambda obj: getattr(obj, name), names): obj = getter(obj) return obj def get_leaf_modules(module, verbose=False): vprint = make_print_if_verbose(verbose) ...
23.96875
74
0.65189
103
767
4.592233
0.407767
0.088795
0.046512
0.07611
0.114165
0.114165
0
0
0
0
0
0.001724
0.243807
767
31
75
24.741935
0.813793
0
0
0
0
0
0.002608
0
0
0
0
0
0
1
0.095238
false
0
0.047619
0
0.238095
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fc75bc9dcba17efcc6fbd5b1c74a679be2c870d
32,615
py
Python
monetio/models/_rrfs_cmaq_mm.py
zmoon/monetio
c8326750fa5d2404ccec726a5088f9a0e7fd4c4a
[ "MIT" ]
1
2022-02-18T22:49:23.000Z
2022-02-18T22:49:23.000Z
monetio/models/_rrfs_cmaq_mm.py
zmoon/monetio
c8326750fa5d2404ccec726a5088f9a0e7fd4c4a
[ "MIT" ]
null
null
null
monetio/models/_rrfs_cmaq_mm.py
zmoon/monetio
c8326750fa5d2404ccec726a5088f9a0e7fd4c4a
[ "MIT" ]
1
2022-02-04T19:09:32.000Z
2022-02-04T19:09:32.000Z
""" RRFS-CMAQ File Reader """ import numpy as np import xarray as xr from numpy import concatenate from pandas import Series def can_do(index): if index.max(): return True else: return False def open_mfdataset( fname, convert_to_ppb=True, mech="cb6r3_ae6_aq", var_list=None, ...
29.569356
112
0.508079
3,742
32,615
4.261358
0.14217
0.03029
0.034115
0.042142
0.538568
0.486266
0.452402
0.420544
0.390129
0.332372
0
0.034159
0.369891
32,615
1,102
113
29.596189
0.741764
0.252123
0
0.451237
0
0
0.164185
0
0
0
0
0
0
1
0.032023
false
0
0.007278
0
0.07278
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
0
0
1
0
5fc818c5836435c92ae4ef2d17b3e1e01d7c0fde
816
bzl
Python
build/build.bzl
abaer123/gitlab-agent
71c94d781ae2a7ae2851bb946c37fe01b1ed3da0
[ "MIT" ]
null
null
null
build/build.bzl
abaer123/gitlab-agent
71c94d781ae2a7ae2851bb946c37fe01b1ed3da0
[ "MIT" ]
null
null
null
build/build.bzl
abaer123/gitlab-agent
71c94d781ae2a7ae2851bb946c37fe01b1ed3da0
[ "MIT" ]
null
null
null
load("@com_github_atlassian_bazel_tools//multirun:def.bzl", "command") load("@bazel_skylib//lib:shell.bzl", "shell") def copy_to_workspace(name, label, file_to_copy, workspace_relative_target_directory): command( name = name, command = "//build:copy_to_workspace", data = [label], ar...
37.090909
99
0.658088
95
816
5.389474
0.421053
0.070313
0.085938
0.117188
0.488281
0.443359
0.322266
0.322266
0.167969
0
0
0
0.207108
816
21
100
38.857143
0.791345
0.107843
0
0.444444
0
0
0.282369
0.172176
0
0
0
0
0
1
0.111111
false
0
0
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fc9836cfddecb88f1956951f281f1c8d40b8f81
4,471
py
Python
CAAPR/CAAPR_AstroMagic/PTS/pts/magic/catalog/catalog.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
7
2016-05-20T21:56:39.000Z
2022-02-07T21:09:48.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/magic/catalog/catalog.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2019-03-21T16:10:04.000Z
2019-03-22T17:21:56.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/magic/catalog/catalog.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2020-05-19T16:17:17.000Z
2020-05-19T16:17:17.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
31.485915
97
0.547976
482
4,471
4.887967
0.219917
0.046689
0.033956
0.02292
0.702037
0.663837
0.663837
0.635823
0.603565
0.573005
0
0.001465
0.236636
4,471
141
98
31.70922
0.688544
0.426303
0
0.484848
0
0
0.042416
0
0
0
0
0
0
1
0.121212
false
0
0.121212
0
0.30303
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fcda78cf21f154d5256341e1d4f6994551d5ce9
858
py
Python
exercicio9.py
isaacfelipe1/Estrutura_De_Dados_Um_UEA
79b693d186154b54b7bb0c2dac10cd4cf9886bb3
[ "Apache-2.0" ]
null
null
null
exercicio9.py
isaacfelipe1/Estrutura_De_Dados_Um_UEA
79b693d186154b54b7bb0c2dac10cd4cf9886bb3
[ "Apache-2.0" ]
null
null
null
exercicio9.py
isaacfelipe1/Estrutura_De_Dados_Um_UEA
79b693d186154b54b7bb0c2dac10cd4cf9886bb3
[ "Apache-2.0" ]
null
null
null
#9-Faça um programa que leia um número indeterminado de notas. Após esta entrada de dados, faça seguinte: #. Mostre a quantidade de notas que foram lidas. #. Exiba todas as notas na ordem em que foram informadas. #. Calcule e mostre a média das notas. #. Calcule e mostre a quantidade de notas acima da média calculada. ...
35.75
105
0.708625
141
858
4.283688
0.460993
0.046358
0.056291
0.062914
0.215232
0.135762
0.135762
0.135762
0.135762
0.135762
0
0.008345
0.162005
858
24
106
35.75
0.831711
0.361305
0
0.111111
0
0
0.354779
0
0
0
0
0
0
1
0
false
0
0
0
0
0.388889
0
0
0
null
0
0
0
0
0
0
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
1
0
5fcf633d461876ef2ed0512751ad534119c618aa
1,249
py
Python
src/resnet_datasize_plot.py
chloechsu/nanoparticle
5e78fe33c2d562aa31d5e458be0dbf52813f20b1
[ "MIT" ]
1
2021-04-04T23:07:59.000Z
2021-04-04T23:07:59.000Z
src/resnet_datasize_plot.py
chloechsu/nanoparticle
5e78fe33c2d562aa31d5e458be0dbf52813f20b1
[ "MIT" ]
null
null
null
src/resnet_datasize_plot.py
chloechsu/nanoparticle
5e78fe33c2d562aa31d5e458be0dbf52813f20b1
[ "MIT" ]
3
2021-01-13T14:50:42.000Z
2022-03-20T16:19:52.000Z
import argparse import csv import glob import os import pandas as pd import matplotlib.pyplot as plt import numpy as np import seaborn as sns sns.set() shapes = ['TriangPrismIsosc', 'parallelepiped', 'sphere', 'wire'] def main(): trainsizes = [] avg_acc = [] for f in glob.glob('model/resnet18-all-Adam-l...
29.046512
78
0.622898
178
1,249
4.247191
0.522472
0.042328
0.037037
0
0
0
0
0
0
0
0
0.043254
0.222578
1,249
42
79
29.738095
0.735324
0
0
0
0
0
0.171337
0.066453
0
0
0
0
0.027778
1
0.027778
false
0
0.222222
0
0.25
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
0
0
0
0
0
1
0
5fd0efe4c22b97942030348d8ad7858091215264
1,482
py
Python
pyramid_bootstrap/__init__.py
keitheis/pyramid_bootstrap
e8d6e8b9081427bca264d16a679571c35d3527e5
[ "BSD-3-Clause" ]
null
null
null
pyramid_bootstrap/__init__.py
keitheis/pyramid_bootstrap
e8d6e8b9081427bca264d16a679571c35d3527e5
[ "BSD-3-Clause" ]
null
null
null
pyramid_bootstrap/__init__.py
keitheis/pyramid_bootstrap
e8d6e8b9081427bca264d16a679571c35d3527e5
[ "BSD-3-Clause" ]
1
2018-04-12T14:27:52.000Z
2018-04-12T14:27:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Keith Yang' __email__ = 'yang@keitheis.org' __version__ = '0.1.0' from pyramid.settings import asbool from .bootstrap import BootstrapFactory def includeme(config): DEFAULT = { 'versions': '3.0.3', 'use_min_file': True, 'use_c...
30.244898
79
0.625506
169
1,482
5.130178
0.372781
0.080738
0.076125
0.041522
0.062284
0
0
0
0
0
0
0.009857
0.246964
1,482
48
80
30.875
0.767025
0.02834
0
0
0
0
0.228095
0.06815
0
0
0
0
0
1
0.057143
false
0
0.057143
0.028571
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5fd224ae58a35451a109abe33921bfe534a36c4b
3,043
py
Python
Data Structures/Linked List/Merge Two Sorted Linked Lists/merge_two_sorted_linked_lists.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
2
2020-05-28T07:15:00.000Z
2020-07-21T08:34:06.000Z
Data Structures/Linked List/Merge Two Sorted Linked Lists/merge_two_sorted_linked_lists.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
null
null
null
Data Structures/Linked List/Merge Two Sorted Linked Lists/merge_two_sorted_linked_lists.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys class SinglyLinkedListNode: def __init__(self, node_data): self.data = node_data self.next = None class SinglyLinkedList: def __init__(self): self.head = None self.tail = None def insert_node(self, no...
21.58156
72
0.612882
393
3,043
4.508906
0.216285
0.073363
0.047404
0.056433
0.386005
0.354402
0.312077
0.301919
0.301919
0.301919
0
0.023889
0.312192
3,043
140
73
21.735714
0.822742
0.192573
0
0.231884
0
0
0.009453
0
0
0
0
0
0
1
0.072464
false
0
0.072464
0
0.188406
0.028986
0
0
0
null
0
0
0
0
0
0
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
1
0
3957f752a49e9fed33ab81dcc197e7f08498b9c3
4,856
py
Python
wysihtml5/conf/defaults.py
vkuryachenko/django-wysihtml5
5f6fa86ecbfeccfae61b06386f1f6f44dfca94c0
[ "BSD-2-Clause" ]
4
2015-03-24T20:41:31.000Z
2021-05-24T15:41:16.000Z
wysihtml5/conf/defaults.py
vkuryachenko/django-wysihtml5
5f6fa86ecbfeccfae61b06386f1f6f44dfca94c0
[ "BSD-2-Clause" ]
1
2017-08-06T18:17:53.000Z
2017-08-06T18:17:53.000Z
wysihtml5/conf/defaults.py
vkuryachenko/django-wysihtml5
5f6fa86ecbfeccfae61b06386f1f6f44dfca94c0
[ "BSD-2-Clause" ]
3
2015-05-14T15:06:21.000Z
2021-05-24T15:43:05.000Z
#-*- coding: utf-8 -*- from django.conf import settings WYSIHTML5_EDITOR = { # Give the editor a name, the name will also be set as class # name on the iframe and on the iframe's body 'name': 'null', # Whether the editor should look like the textarea (by adopting styles) 'style': 'true', # Id...
36.787879
76
0.635914
523
4,856
5.764818
0.380497
0.090216
0.124046
0.104478
0.205638
0.067662
0.042454
0.042454
0.042454
0.042454
0
0.010953
0.247941
4,856
131
77
37.068702
0.814622
0.281301
0
0.171717
0
0
0.556326
0.22877
0
0
0
0
0
1
0
false
0
0.010101
0
0.010101
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
0
0
1
0
395a96908738ec18c9180da4437fee979a2a2992
6,496
py
Python
protocols/migration/migration_participant_100_to_reports_300.py
Lucioric2000/GelReportModels
1704cdea3242d5b46c8b81ef46553ccae2799435
[ "Apache-2.0" ]
14
2016-09-22T10:10:01.000Z
2020-09-23T11:40:37.000Z
protocols/migration/migration_participant_100_to_reports_300.py
Lucioric2000/GelReportModels
1704cdea3242d5b46c8b81ef46553ccae2799435
[ "Apache-2.0" ]
159
2016-09-22T11:08:46.000Z
2021-09-29T13:55:52.000Z
protocols/migration/migration_participant_100_to_reports_300.py
Lucioric2000/GelReportModels
1704cdea3242d5b46c8b81ef46553ccae2799435
[ "Apache-2.0" ]
17
2016-09-20T13:31:58.000Z
2020-10-19T04:58:19.000Z
from protocols import reports_3_0_0 as participant_old from protocols import participant_1_0_0 from protocols.migration import BaseMigration class MigrationParticipants100ToReports(BaseMigration): old_model = participant_1_0_0 new_model = participant_old def migrate_pedigree(self, old_instance): ...
56.982456
129
0.736761
768
6,496
5.924479
0.161458
0.072088
0.105495
0.074945
0.183956
0.104396
0.091648
0.069231
0.052088
0
0
0.003584
0.183805
6,496
113
130
57.486726
0.854583
0.024784
0
0.071429
0
0
0
0
0
0
0
0
0
1
0.091837
false
0
0.030612
0
0.244898
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
0
0
1
0
395f29ec9cf26aad90082c0bbf20534ee8f84d4b
788
py
Python
getting_setting.py
madhurgupta96/Image-Fundamentals-with-OpenCV
890fcce30155e98ab66e206c3511d77040570ec5
[ "Apache-2.0" ]
null
null
null
getting_setting.py
madhurgupta96/Image-Fundamentals-with-OpenCV
890fcce30155e98ab66e206c3511d77040570ec5
[ "Apache-2.0" ]
null
null
null
getting_setting.py
madhurgupta96/Image-Fundamentals-with-OpenCV
890fcce30155e98ab66e206c3511d77040570ec5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 15 23:52:04 2020 @author: Madhur Gupta """ from __future__ import print_function import cv2 import argparse ap=argparse.ArgumentParser() ap.add_argument('-i','--image',required=True,help='path to image') args=vars(ap.parse_args()) image=cv2.imread(args['...
22.514286
71
0.619289
132
788
3.643939
0.439394
0.033264
0.043659
0.033264
0.266112
0.266112
0.18711
0.18711
0.18711
0.18711
0
0.088685
0.170051
788
34
72
23.176471
0.646789
0.178934
0
0.222222
0
0
0.232172
0
0
0
0
0
0
1
0
false
0
0.166667
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
0
0
0
0
0
1
0
395f821293e57d64e71d8ac788f63dcdb5e4e300
3,815
py
Python
dictator/validators/base.py
brunosmmm/dictator
60314734b9d0c378fad77d296c8946165f372400
[ "MIT" ]
null
null
null
dictator/validators/base.py
brunosmmm/dictator
60314734b9d0c378fad77d296c8946165f372400
[ "MIT" ]
null
null
null
dictator/validators/base.py
brunosmmm/dictator
60314734b9d0c378fad77d296c8946165f372400
[ "MIT" ]
null
null
null
"""Base validators.""" import re from dictator.errors import ValidationError from dictator.validators import Validator from typing import Type, Callable, Any, Tuple, Union HEX_REGEX = re.compile(r"^(0x)?([0-9A-Fa-f]+)$") BIN_REGEX = re.compile(r"^(0b)?([0-1]+)$") class ValidateType(Validator): """Type validator...
27.644928
79
0.654522
419
3,815
5.732697
0.257757
0.11657
0.029975
0.041632
0.144463
0.131141
0.077435
0.041632
0.041632
0
0
0.004122
0.236959
3,815
137
80
27.846715
0.821024
0.158322
0
0.104478
0
0
0.066978
0.006998
0
0
0
0
0
1
0.104478
false
0
0.059701
0
0.313433
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
0
0
1
0
3960d947244ab5cacdb399b505a02597c36f0c4b
554
py
Python
copasi_test/ReportParserMoieties.py
copasi/python-copasi-testsuite
604ce52f95b4a0e2631712b22c331cd8c263bd05
[ "Artistic-2.0" ]
null
null
null
copasi_test/ReportParserMoieties.py
copasi/python-copasi-testsuite
604ce52f95b4a0e2631712b22c331cd8c263bd05
[ "Artistic-2.0" ]
null
null
null
copasi_test/ReportParserMoieties.py
copasi/python-copasi-testsuite
604ce52f95b4a0e2631712b22c331cd8c263bd05
[ "Artistic-2.0" ]
null
null
null
from .ReportParser import ReportParser class ReportParserMoieties(ReportParser): def __init__(self): ReportParser.__init__(self) def parseLines(self, lines): # type: ([str]) -> None current = self.skip_until(lines, 0, 'Link matrix(ann)') if current == -1: return ...
29.157895
71
0.628159
55
554
6.145455
0.454545
0.130178
0.088757
0.118343
0.508876
0.360947
0.360947
0.360947
0.360947
0.360947
0
0.007353
0.263538
554
18
72
30.777778
0.821078
0.037906
0
0.461538
0
0
0.06403
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.461538
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
0
0
1
0
396309f795615e199934ec29198bf8e06add077e
1,087
py
Python
relationship_classifiction/test.py
suolyer/PyTorch_BERT_Pipeline_IE
869a1fc937e268a565f5b30a2105a460b4e07f59
[ "MIT" ]
8
2021-05-23T02:04:09.000Z
2022-01-14T08:58:42.000Z
relationship_classifiction/test.py
2019hong/PyTorch_BERT_Pipeline_IE
9ee66bc9ceaed42e996e9b2414612de3fc0b23bb
[ "MIT" ]
2
2021-05-14T00:34:45.000Z
2021-08-08T08:36:33.000Z
relationship_classifiction/test.py
2019hong/PyTorch_BERT_Pipeline_IE
9ee66bc9ceaed42e996e9b2414612de3fc0b23bb
[ "MIT" ]
1
2021-09-28T15:15:44.000Z
2021-09-28T15:15:44.000Z
import torch import torch.nn as nn from torch.optim.lr_scheduler import CosineAnnealingLR, CosineAnnealingWarmRestarts import itertools import matplotlib.pyplot as plt initial_lr = 0.1 class model(nn.Module): def __init__(self): super().__init__() self.conv1 = nn.Conv2d(in_channels=3, out_c...
24.155556
83
0.689052
159
1,087
4.509434
0.484277
0.097629
0.033473
0.058577
0.066946
0.066946
0
0
0
0
0
0.043527
0.175713
1,087
44
84
24.704545
0.756696
0.032199
0
0
0
0
0.080229
0
0
0
0
0
0
1
0.068966
false
0.034483
0.172414
0
0.275862
0.068966
0
0
0
null
0
0
0
0
0
0
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
1
0
39642b71284a9db7523df49c8dca22286f61d556
1,236
py
Python
examples/linear_regression/01_linear_regression.py
zhaoshiying97/trading_gym
d4af8d724efa17420e6ebb430f6f9d4f08c6f83a
[ "Apache-2.0" ]
32
2019-12-06T19:23:51.000Z
2022-03-08T06:08:58.000Z
examples/linear_regression/01_linear_regression.py
zhaoshiying97/trading_gym
d4af8d724efa17420e6ebb430f6f9d4f08c6f83a
[ "Apache-2.0" ]
2
2020-02-20T11:04:07.000Z
2020-03-12T08:47:54.000Z
examples/linear_regression/01_linear_regression.py
zhaoshiying97/trading_gym
d4af8d724efa17420e6ebb430f6f9d4f08c6f83a
[ "Apache-2.0" ]
15
2019-12-12T07:43:34.000Z
2022-03-06T13:02:39.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pdb import numpy as np import pandas as pd from sklearn.linear_model import LinearRegression from trading_gym.utils.data.toy import create_toy_data from trading_gym.envs.portfolio_gym.portfolio_gym import PortfolioTradingGym order_book_id_number = 100 toy_data = cr...
30.9
142
0.741909
176
1,236
4.977273
0.534091
0.039954
0.065068
0.038813
0
0
0
0
0
0
0
0.02639
0.141586
1,236
39
143
31.692308
0.799246
0.048544
0
0
0
0
0.064157
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0.115385
0
0
0
null
0
0
0
0
0
0
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
1
0
3968419bade051f1706f219d6c57e614a8cbfb88
49,588
py
Python
climateeconomics/tests/_l1_test_energy_global_values.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
1
2022-01-14T06:37:42.000Z
2022-01-14T06:37:42.000Z
climateeconomics/tests/_l1_test_energy_global_values.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
climateeconomics/tests/_l1_test_energy_global_values.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
''' mode: python; py-indent-offset: 4; tab-width: 4; coding: utf-8 Copyright (C) 2020 Airbus SAS ''' import unittest import time import numpy as np import pandas as pd from sos_trades_core.execution_engine.execution_engine import ExecutionEngine from climateeconomics.sos_processes.iam.witness.witness_dev.usecase_witnes...
47.680769
304
0.638239
6,106
49,588
4.892401
0.092532
0.045526
0.012051
0.01657
0.593479
0.486392
0.408965
0.356174
0.329361
0.309812
0
0.045714
0.260204
49,588
1,039
305
47.72666
0.768598
0.307635
0
0.123457
0
0.016461
0.343213
0.119708
0
0
0
0
0.018519
1
0.00823
false
0
0.012346
0
0.022634
0.154321
0
0
0
null
0
0
0
0
0
0
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
1
0
396aa7d766efce4140f100be9476c86629b27ef9
11,383
py
Python
bmtk/simulator/bionet/modules/save_synapses.py
tjbanks/bmtk
52fee3b230ceb14a666c46f57f2031c38f1ac5b1
[ "BSD-3-Clause" ]
1
2019-03-27T12:23:09.000Z
2019-03-27T12:23:09.000Z
bmtk/simulator/bionet/modules/save_synapses.py
tjbanks/bmtk
52fee3b230ceb14a666c46f57f2031c38f1ac5b1
[ "BSD-3-Clause" ]
null
null
null
bmtk/simulator/bionet/modules/save_synapses.py
tjbanks/bmtk
52fee3b230ceb14a666c46f57f2031c38f1ac5b1
[ "BSD-3-Clause" ]
null
null
null
import os import csv import h5py import numpy as np from neuron import h from .sim_module import SimulatorMod from bmtk.simulator.bionet.biocell import BioCell from bmtk.simulator.bionet.io_tools import io from bmtk.simulator.bionet.pointprocesscell import PointProcessCell pc = h.ParallelContext() MPI_RANK = int(pc....
48.233051
139
0.598876
1,575
11,383
3.902857
0.125714
0.0558
0.073369
0.021474
0.51033
0.458923
0.37075
0.32585
0.317391
0.312836
0
0.010891
0.282087
11,383
235
140
48.438298
0.741312
0.050338
0
0.088398
0
0
0.071673
0.00463
0
0
0
0.004255
0
1
0.082873
false
0
0.049724
0.005525
0.160221
0.01105
0
0
0
null
0
0
0
0
0
0
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
1
0