hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
d788ad2e0e4762dfe1aa6e2559af48c180f16bf4
10,962
py
Python
examples/seq2seq/task_seq2seq_simbert_v2_stage2.py
Tongjilibo/bert4torch
71d5ffb3698730b16e5a252b06644a136787711e
[ "MIT" ]
49
2022-03-15T07:28:16.000Z
2022-03-31T07:16:15.000Z
examples/seq2seq/task_seq2seq_simbert_v2_stage2.py
Tongjilibo/bert4torch
71d5ffb3698730b16e5a252b06644a136787711e
[ "MIT" ]
null
null
null
examples/seq2seq/task_seq2seq_simbert_v2_stage2.py
Tongjilibo/bert4torch
71d5ffb3698730b16e5a252b06644a136787711e
[ "MIT" ]
null
null
null
#! -*- coding: utf-8 -*- # SimBERT_v2stage2simbertroformer-sim # https://github.com/ZhuiyiTechnology/roformer-sim import json import numpy as np import torch from torch import nn, optim from torch.utils.data import DataLoader import torch.nn.functional as F from bert4torch.models import build_transformer_model, BaseMo...
36.54
137
0.628352
d78a10d27ddc86c99b26b8eff9416d8403b7dcfc
5,872
py
Python
Validation/RecoTrack/python/customiseMTVForBPix123Holes.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Validation/RecoTrack/python/customiseMTVForBPix123Holes.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Validation/RecoTrack/python/customiseMTVForBPix123Holes.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
from __future__ import print_function # This customise file provides an example (in the form of holes in # BPix L1-L2 and L3-L3) on how to select a subset of generalTracks # (e.g. by phi and eta) and setup various MTV instances for those # (selected tracks, built tracks, and seeds in this case). The naming # of DQM fol...
48.933333
129
0.679666
d78adda6c383319ee2452a20f3e7494d5bd7a171
145
py
Python
helloworld/api/v1.py
ElyasSantana/example-api
f99cff55a152e3ab4e1b3490d2632e8f06b7f7fb
[ "MIT" ]
null
null
null
helloworld/api/v1.py
ElyasSantana/example-api
f99cff55a152e3ab4e1b3490d2632e8f06b7f7fb
[ "MIT" ]
null
null
null
helloworld/api/v1.py
ElyasSantana/example-api
f99cff55a152e3ab4e1b3490d2632e8f06b7f7fb
[ "MIT" ]
null
null
null
from fastapi import APIRouter router_helloworld = APIRouter()
16.111111
31
0.724138
d78be78c3b064c64ae4256d80473c5ab6ad70fcf
791
py
Python
projects/slots/activities/activity_randomizer.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
projects/slots/activities/activity_randomizer.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
projects/slots/activities/activity_randomizer.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
from random import sample, randint """ Randomizer for available lists plus radio broadcasting randomizer """ # Available lists randomizer class # alias randomize = Randomize_and_pop_on_call # random radio broadcast = "" if randint(1, 4) == 1 else "" __all__ = ['randomize', 'broadcast'] if __name__ == '__main__': ...
25.516129
65
0.672566
d78d46855b1e8af013795bcd9ce42f63ccd57ab7
7,716
py
Python
tests/test_contract.py
iwob/pysv
6fdfb93d66cce84cceacabd3806f3f51f0cbbe17
[ "MIT" ]
2
2017-06-21T04:00:11.000Z
2018-06-11T17:28:55.000Z
tests/test_contract.py
iwob/pysv
6fdfb93d66cce84cceacabd3806f3f51f0cbbe17
[ "MIT" ]
null
null
null
tests/test_contract.py
iwob/pysv
6fdfb93d66cce84cceacabd3806f3f51f0cbbe17
[ "MIT" ]
1
2018-06-11T17:28:56.000Z
2018-06-11T17:28:56.000Z
import unittest from pysv.contract import *
49.780645
194
0.525531
d791857131ffb45651a77bad5f5ede0b6842e7f5
3,774
py
Python
unittests/unintary_tests.py
OneCricketeer/pysqoop
616199a8441d886ffcc4111445da3d0351401454
[ "MIT" ]
9
2019-06-17T19:21:22.000Z
2021-07-12T05:14:03.000Z
unittests/unintary_tests.py
OneCricketeer/pysqoop
616199a8441d886ffcc4111445da3d0351401454
[ "MIT" ]
5
2019-07-19T14:42:43.000Z
2020-08-06T16:55:05.000Z
unittests/unintary_tests.py
OneCricketeer/pysqoop
616199a8441d886ffcc4111445da3d0351401454
[ "MIT" ]
14
2019-06-05T16:50:27.000Z
2021-08-05T16:36:15.000Z
import unittest from pysqoop.SqoopImport import Sqoop if __name__ == '__main__': unittest.main()
51.69863
454
0.607578
d793148e8a5d44297963077f150757b903cf3e64
1,084
py
Python
tests/base.py
strukovsv/PyHAML
75d7774f30809f755dad2867e9ab55cea3019046
[ "BSD-3-Clause" ]
21
2015-01-27T13:32:46.000Z
2022-03-12T21:45:12.000Z
tests/base.py
strukovsv/PyHAML
75d7774f30809f755dad2867e9ab55cea3019046
[ "BSD-3-Clause" ]
2
2017-05-23T11:30:01.000Z
2019-07-29T01:21:27.000Z
tests/base.py
strukovsv/PyHAML
75d7774f30809f755dad2867e9ab55cea3019046
[ "BSD-3-Clause" ]
8
2015-07-13T17:46:24.000Z
2021-12-08T18:13:22.000Z
from unittest import TestCase, main, SkipTest import os from mako.template import Template import haml
24.636364
100
0.551661
d793b12d0e01c44da57d39ebb7878a010a633a7a
5,787
py
Python
playground/basis_set.py
not-matt/QuantumPlayground
ddd832efb73563cf80c1090b817fa11ff05fc535
[ "MIT" ]
null
null
null
playground/basis_set.py
not-matt/QuantumPlayground
ddd832efb73563cf80c1090b817fa11ff05fc535
[ "MIT" ]
null
null
null
playground/basis_set.py
not-matt/QuantumPlayground
ddd832efb73563cf80c1090b817fa11ff05fc535
[ "MIT" ]
null
null
null
import requests import logging import numpy as np from playground.utils import elements, angular_quanta _LOGGER = logging.getLogger(__name__) def parse_basis_lines(basis_lines: str): """ Handles creating the atomic orbitals for one atom of the basis set. basis_lines is a list of each line of t...
36.859873
145
0.541386
d797ff101f30669e899d5350f2889ccccfcd1a17
849
py
Python
controls.py
juandigomez/me366j
9f82d0ea2b6e4b422be0add0ceb1a842e0dd6b21
[ "MIT" ]
null
null
null
controls.py
juandigomez/me366j
9f82d0ea2b6e4b422be0add0ceb1a842e0dd6b21
[ "MIT" ]
null
null
null
controls.py
juandigomez/me366j
9f82d0ea2b6e4b422be0add0ceb1a842e0dd6b21
[ "MIT" ]
null
null
null
import pygame import sys pygame.init() screen = pygame.display.set_mode((640, 480)) clock = pygame.time.Clock() x = 0 y = 0 # use a (r, g, b) tuple for color yellow = (255, 255, 0) # create the basic window/screen and a title/caption # default is a black background screen = pygame.display.set_mode((640, 280)) pygame....
21.225
57
0.687868
d798c9e9d158d810636d91b75d39f308e04e9254
1,439
py
Python
scripts/conversion/rename_associations.py
xapple/libcbm_runner
d042bc45e0bb9bcf2c59330b67e9a836d237ccbf
[ "MIT" ]
2
2019-10-18T15:39:53.000Z
2022-02-22T17:54:56.000Z
scripts/conversion/rename_associations.py
xapple/libcbm_runner
d042bc45e0bb9bcf2c59330b67e9a836d237ccbf
[ "MIT" ]
null
null
null
scripts/conversion/rename_associations.py
xapple/libcbm_runner
d042bc45e0bb9bcf2c59330b67e9a836d237ccbf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Written by Lucas Sinclair and Paul Rougieux. JRC Biomass Project. Unit D1 Bioeconomy. This script will rename the header column of the file: * /common/associations.csv Before running this script the headers are simply "A", "B", "C". After running this script, the...
24.810345
79
0.589993
d798da1a3531801a3799d983990b94ffd796a480
342
py
Python
_Training_/RegEx - HackerRank/1. Introduction/Matching Anything But a Newline.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
_Training_/RegEx - HackerRank/1. Introduction/Matching Anything But a Newline.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
_Training_/RegEx - HackerRank/1. Introduction/Matching Anything But a Newline.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/matching-anything-but-new-line/problem import re # Inputs standard_input = """123.456.abc.def""" regex_pattern = r".{3}\..{3}\..{3}\..{3}$" # Do not delete 'r'. test_string = input() # 123.456.abc.def match = re.match(regex_pattern, test_string) is not None print(str(m...
16.285714
78
0.669591
ad02704fb18873433d885fc6641f661f8839081f
3,004
py
Python
test1.py
czyczyyzc/MyForElise
dcbf5924d3d63f441d3247741828804f74a29345
[ "MIT" ]
null
null
null
test1.py
czyczyyzc/MyForElise
dcbf5924d3d63f441d3247741828804f74a29345
[ "MIT" ]
null
null
null
test1.py
czyczyyzc/MyForElise
dcbf5924d3d63f441d3247741828804f74a29345
[ "MIT" ]
null
null
null
import time import numpy as np import tensorflow as tf from yalenet import YaleNet from Mybase.solver import Solver """ def test(): mdl = YaleNet(cls_num=1000, reg=1e-4, typ=tf.float32) sov = Solver(mdl, opm_cfg={ 'lr_base': 0.005, 'decay_rul...
32.301075
57
0.374168
ad032b910fb71a08f9b40c52e3ef58efd6aac044
368
py
Python
a4/decrypt/elliptic.py
fultonms/crypto
a3819e3e81b9f93b818a63382183c1804d2edacc
[ "MIT" ]
null
null
null
a4/decrypt/elliptic.py
fultonms/crypto
a3819e3e81b9f93b818a63382183c1804d2edacc
[ "MIT" ]
null
null
null
a4/decrypt/elliptic.py
fultonms/crypto
a3819e3e81b9f93b818a63382183c1804d2edacc
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser(description="Decrpyt a selection of text from a substitution cypher, with the provided key") parser.add_argument('cryptFile', metavar='encrypted', type=str, help='Path to the encrpyted text') parser.add_argument('keyFile', metavar='key', type=str, help='Path to the key ...
40.888889
125
0.766304
ad049c2108d387b7a21cb9771949419fab0bb4c8
251
py
Python
examples/hist.py
RyanAugust/geoplotlib
97ae83fc05d19237db79be66eb577906c35e8db5
[ "MIT" ]
1,021
2015-02-26T12:08:01.000Z
2022-03-15T10:04:29.000Z
examples/hist.py
RyanAugust/geoplotlib
97ae83fc05d19237db79be66eb577906c35e8db5
[ "MIT" ]
51
2015-03-27T20:46:44.000Z
2022-02-03T09:58:35.000Z
examples/hist.py
RyanAugust/geoplotlib
97ae83fc05d19237db79be66eb577906c35e8db5
[ "MIT" ]
196
2015-03-25T02:32:28.000Z
2022-03-25T23:07:22.000Z
""" Example of 2D histogram """ import geoplotlib from geoplotlib.utils import read_csv, BoundingBox data = read_csv('data/opencellid_dk.csv') geoplotlib.hist(data, colorscale='sqrt', binsize=8) geoplotlib.set_bbox(BoundingBox.DK) geoplotlib.show()
20.916667
51
0.784861
ad051771273652e3931222dfcf867589f136b709
20,814
py
Python
gui/StaffScreen.py
Harsh0294/carrentsystem
c94f8cddd02b0057bac2c8813ec90460c9496f3b
[ "MIT" ]
null
null
null
gui/StaffScreen.py
Harsh0294/carrentsystem
c94f8cddd02b0057bac2c8813ec90460c9496f3b
[ "MIT" ]
null
null
null
gui/StaffScreen.py
Harsh0294/carrentsystem
c94f8cddd02b0057bac2c8813ec90460c9496f3b
[ "MIT" ]
null
null
null
from PyQt4 import QtCore, QtGui from Vehicles import *
55.504
141
0.611608
ad052c19680261e01fda678f8a14469fccd45f3c
10,083
py
Python
southwestalerts/southwest.py
hoopsbwc34/southwest-alerts
39a9e13cb045cf3601b02518fc4e13753cce9ca6
[ "MIT" ]
null
null
null
southwestalerts/southwest.py
hoopsbwc34/southwest-alerts
39a9e13cb045cf3601b02518fc4e13753cce9ca6
[ "MIT" ]
null
null
null
southwestalerts/southwest.py
hoopsbwc34/southwest-alerts
39a9e13cb045cf3601b02518fc4e13753cce9ca6
[ "MIT" ]
null
null
null
import json import time import requests BASE_URL = 'https://mobile.southwest.com'
47.561321
318
0.648517
ad05edc84a23e5d2226eaa6c195a89e43c5ab6c0
17,502
py
Python
lear-db/test_data/data_loader.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
1
2019-11-07T20:32:59.000Z
2019-11-07T20:32:59.000Z
lear-db/test_data/data_loader.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
lear-db/test_data/data_loader.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Province of British Columbia # # 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 agre...
43.214815
116
0.620958
ad07b147f4f90acb57865d0385c6621563004a6f
2,115
py
Python
compiler/extensions/python/runtime/src/zserio/bitfield.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
2
2019-02-06T17:50:24.000Z
2019-11-20T16:51:34.000Z
compiler/extensions/python/runtime/src/zserio/bitfield.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
1
2019-11-25T16:25:51.000Z
2019-11-25T18:09:39.000Z
compiler/extensions/python/runtime/src/zserio/bitfield.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
null
null
null
""" The module provides help methods for bit fields calculation. """ from zserio.exception import PythonRuntimeException def getBitFieldLowerBound(length): """ Gets the lower bound of a unsigned bitfield type with given length. :param length: Length of the unsigned bitfield in bits. :returns: The low...
34.112903
101
0.74279
ad08cf47ba42bae95ff25fda628ffbf2136e4ecb
59
py
Python
pacote-download/Mundo1/ex002.py
ariadne-pereira/cev-python
b2c6bbebb5106bb0152c9127c04c83f23e9d7757
[ "MIT" ]
null
null
null
pacote-download/Mundo1/ex002.py
ariadne-pereira/cev-python
b2c6bbebb5106bb0152c9127c04c83f23e9d7757
[ "MIT" ]
null
null
null
pacote-download/Mundo1/ex002.py
ariadne-pereira/cev-python
b2c6bbebb5106bb0152c9127c04c83f23e9d7757
[ "MIT" ]
null
null
null
nome = input('Qual o seu nome?') print('Bem vindo ' , nome)
29.5
32
0.644068
ad099a3f7a3f39b1c81dfbd2b6b67a25e14da906
25
py
Python
eqparse/spaceloads/__init__.py
TfedUD/eqparse
ab1fba5b4995bed3f5fa2f77cdf505bb613c7e71
[ "MIT" ]
3
2021-01-26T18:48:39.000Z
2021-07-14T23:22:09.000Z
eqparse/spaceloads/__init__.py
TfedUD/eqparse
ab1fba5b4995bed3f5fa2f77cdf505bb613c7e71
[ "MIT" ]
null
null
null
eqparse/spaceloads/__init__.py
TfedUD/eqparse
ab1fba5b4995bed3f5fa2f77cdf505bb613c7e71
[ "MIT" ]
3
2020-11-18T20:22:00.000Z
2021-07-14T18:55:31.000Z
from .spaceloads import *
25
25
0.8
ad0a91316f80ba2f9a71f515c6569203c3867373
11,388
py
Python
demos/HFL/example/pytorch/hugging_face/local_bert_text_classifier/dataset.py
monadyn/fedlearn-algo
c4459d421139b0bb765527d636fff123bf17bda4
[ "Apache-2.0" ]
86
2021-07-20T01:54:21.000Z
2021-10-06T04:02:40.000Z
demos/HFL/example/pytorch/hugging_face/local_bert_text_classifier/dataset.py
fedlearnAI/fedlearnalgo
63d9ceb64d331ff2b5103ae49e54229cad7e2095
[ "Apache-2.0" ]
5
2021-07-23T21:22:16.000Z
2021-09-12T15:48:35.000Z
demos/HFL/example/pytorch/hugging_face/local_bert_text_classifier/dataset.py
fedlearnAI/fedlearnalgo
63d9ceb64d331ff2b5103ae49e54229cad7e2095
[ "Apache-2.0" ]
28
2021-07-20T07:15:33.000Z
2021-08-22T20:04:57.000Z
# Copyright 2021 Fedlearn authors. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
40.671429
185
0.648402
ad0e9389830044b275eaeda53fb94fe0bd3d6df6
55
py
Python
egtaonline/__init__.py
egtaonline/egtaonline-api
a450aad43f5828ab1bc74def7237018b2de9647e
[ "Apache-2.0" ]
null
null
null
egtaonline/__init__.py
egtaonline/egtaonline-api
a450aad43f5828ab1bc74def7237018b2de9647e
[ "Apache-2.0" ]
null
null
null
egtaonline/__init__.py
egtaonline/egtaonline-api
a450aad43f5828ab1bc74def7237018b2de9647e
[ "Apache-2.0" ]
1
2019-03-09T11:45:55.000Z
2019-03-09T11:45:55.000Z
"""Module for egta online api""" __version__ = '0.8.7'
18.333333
32
0.654545
ad11d47033d4af835763923edb8fa478546cbbc5
1,897
py
Python
views.py
wbellman/Python-Fate-Example
a764d3d386b60d4ecfbb59837321e6c30f1c4249
[ "MIT" ]
null
null
null
views.py
wbellman/Python-Fate-Example
a764d3d386b60d4ecfbb59837321e6c30f1c4249
[ "MIT" ]
null
null
null
views.py
wbellman/Python-Fate-Example
a764d3d386b60d4ecfbb59837321e6c30f1c4249
[ "MIT" ]
null
null
null
import time import settings from printLibs import printl, printc from inputLibs import get_number
22.05814
126
0.634686
ad12130ce9f4ea80edd96982e4874aa4efd37547
4,473
py
Python
recipes/Python/578871_Simple_Tkinter_strip_chart/recipe-578871.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/578871_Simple_Tkinter_strip_chart/recipe-578871.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/578871_Simple_Tkinter_strip_chart/recipe-578871.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
# (c) MIT License Copyright 2014 Ronald H Longo # Please reuse, modify or distribute freely. from collections import OrderedDict import tkinter as tk if __name__ == '__main__': top = tk.Tk( ) graph = StripChart( top, 100, 300, { 'A':'blue', 'B':'green', 'C':'red' } ) graph.grid( ) val_A = 0 val_B ...
33.886364
81
0.56338
ad142cceab8899fa59076896998cb49029523f11
2,793
py
Python
sendmail.py
jvadair/simpleforum
d1e602841e64130c0059c7390ac2fbe7950feb89
[ "MIT" ]
null
null
null
sendmail.py
jvadair/simpleforum
d1e602841e64130c0059c7390ac2fbe7950feb89
[ "MIT" ]
null
null
null
sendmail.py
jvadair/simpleforum
d1e602841e64130c0059c7390ac2fbe7950feb89
[ "MIT" ]
null
null
null
import smtplib, ssl from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart SMTP_URL = "example.com"
36.75
74
0.668815
ad14b5c195d0bd8131b0b4d5f2f280f2ab66ece5
3,474
py
Python
research/compression/entropy_coder/lib/block_util.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
research/compression/entropy_coder/lib/block_util.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
research/compression/entropy_coder/lib/block_util.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow 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 the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
34.058824
81
0.658031
ad159cd804674520f14ca7bf3672f76b7911e56a
10,068
py
Python
core/models.py
ditttu/gymkhana-Nominations
2a0e993c1b8362c456a9369b0b549d1c809a21df
[ "MIT" ]
3
2018-02-27T13:48:28.000Z
2018-03-03T21:57:50.000Z
core/models.py
ditttu/gymkhana-Nominations
2a0e993c1b8362c456a9369b0b549d1c809a21df
[ "MIT" ]
6
2020-02-12T00:07:46.000Z
2022-03-11T23:25:59.000Z
core/models.py
ditttu/gymkhana-Nominations
2a0e993c1b8362c456a9369b0b549d1c809a21df
[ "MIT" ]
1
2019-03-26T20:19:57.000Z
2019-03-26T20:19:57.000Z
from django.db import models from django.contrib.auth.models import User from .choices import * from datetime import datetime,date from django.dispatch import receiver from django.db.models.signals import post_save from django.utils import timezone def user_directory_path(instance, filename): # file wil...
38.723077
129
0.708482
ad185864b0257450aa7c1d7f4d336d5631a276f2
1,232
py
Python
tests/test/search/test_references_searcher_db_files.py
watermelonwolverine/fvttmv
8689d47d1f904dd2bf0a083de515fda65713c460
[ "MIT" ]
1
2022-03-30T19:12:14.000Z
2022-03-30T19:12:14.000Z
tests/test/search/test_references_searcher_db_files.py
watermelonwolverine/fvttmv
8689d47d1f904dd2bf0a083de515fda65713c460
[ "MIT" ]
null
null
null
tests/test/search/test_references_searcher_db_files.py
watermelonwolverine/fvttmv
8689d47d1f904dd2bf0a083de515fda65713c460
[ "MIT" ]
null
null
null
from fvttmv.search.__references_searcher_db_files import ReferencesSearcherDbFiles from test.common import TestCase, AbsPaths, References
42.482759
113
0.57224
ad1ab51f8499f1d4ded5f9bd2c0db3404d94ac2b
8,956
py
Python
apps/quiver/views.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/quiver/views.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/quiver/views.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from apps.quiver.models import AnalyticsService, AnalyticsServiceExecution from django.shortcuts import render, HttpResponseRedirect from django.core.exceptions import PermissionDenied from django.views.generic import FormView, CreateView, ListView, DetailView, UpdateView from django.contrib.auth.mixins import LoginRe...
41.082569
135
0.704891
ad1aeb9442720992cb51bbedc547de7f9083c3fa
1,102
py
Python
boml/load_data/experiment.py
LongMa319/BOML
8cbb5a557e93dabd858438efd67c0685402efa9e
[ "MIT" ]
2
2021-12-20T03:24:27.000Z
2022-01-10T14:16:21.000Z
boml/load_data/experiment.py
perseveranceLX/BOML
8cbb5a557e93dabd858438efd67c0685402efa9e
[ "MIT" ]
null
null
null
boml/load_data/experiment.py
perseveranceLX/BOML
8cbb5a557e93dabd858438efd67c0685402efa9e
[ "MIT" ]
1
2022-03-29T13:21:20.000Z
2022-03-29T13:21:20.000Z
""" Simple container for useful quantities for a supervised learning experiment, where data is managed with feed dictionary """ import tensorflow as tf
36.733333
98
0.669691
ad1c4914c79a24918776134b469b340712c87fc6
11,873
py
Python
pypy/translator/jvm/opcodes.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/translator/jvm/opcodes.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
pypy/translator/jvm/opcodes.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
""" Mapping from OOType opcodes to JVM MicroInstructions. Most of these come from the oosupport directory. """ from pypy.translator.oosupport.metavm import \ PushArg, PushAllArgs, StoreResult, InstructionList, New, DoNothing, Call,\ SetField, GetField, DownCast, RuntimeNew, OOString, OOUnicode, \ Cas...
44.137546
135
0.544176
ad1c7e0f78e361f8b94e7d3cccfcbd1e73831978
459
py
Python
graph_explorer/structured_metrics/plugins/vmstat.py
farheenkaifee/dashboard_3
bc557a6190a99182ec7a1c96dfdd33208a8575cd
[ "Apache-2.0" ]
284
2015-01-03T05:35:18.000Z
2022-01-19T08:30:31.000Z
graph_explorer/structured_metrics/plugins/vmstat.py
farheenkaifee/dashboard_3
bc557a6190a99182ec7a1c96dfdd33208a8575cd
[ "Apache-2.0" ]
9
2015-01-20T16:41:01.000Z
2017-02-03T08:02:39.000Z
graph_explorer/structured_metrics/plugins/vmstat.py
isabella232/graph-explorer
bc557a6190a99182ec7a1c96dfdd33208a8575cd
[ "Apache-2.0" ]
35
2015-02-05T13:03:51.000Z
2022-01-19T08:31:15.000Z
from . import Plugin # vim: ts=4 et sw=4:
27
82
0.490196
ad1cabe254e2aa9697b539f3226adbf97155e405
819
py
Python
2018/day02.py
iKevinY/advent
d160fb711a0a4d671f53cbd61088117e7ff0276a
[ "MIT" ]
11
2019-12-03T06:32:37.000Z
2021-12-24T12:23:57.000Z
2018/day02.py
iKevinY/advent
d160fb711a0a4d671f53cbd61088117e7ff0276a
[ "MIT" ]
null
null
null
2018/day02.py
iKevinY/advent
d160fb711a0a4d671f53cbd61088117e7ff0276a
[ "MIT" ]
1
2019-12-07T06:21:31.000Z
2019-12-07T06:21:31.000Z
import fileinput from collections import Counter BOXES = [line.strip() for line in fileinput.input()] DOUBLES = 0 TRIPLES = 0 COMMON = None for box_1 in BOXES: doubles = 0 triples = 0 for char, count in Counter(box_1).items(): if count == 2: doubles += 1 elif count == 3: ...
19.5
71
0.534799
ad1e497bcf39064afc3262311487df49eca70a14
3,324
py
Python
pyreindexer/tests/tests/test_sql.py
Restream/reindexer-py
9a5925f167ac676f07ba39e32985cc6f6a0abebf
[ "Apache-2.0" ]
2
2020-08-07T16:44:33.000Z
2020-08-07T20:57:18.000Z
pyreindexer/tests/tests/test_sql.py
Restream/reindexer-py
9a5925f167ac676f07ba39e32985cc6f6a0abebf
[ "Apache-2.0" ]
null
null
null
pyreindexer/tests/tests/test_sql.py
Restream/reindexer-py
9a5925f167ac676f07ba39e32985cc6f6a0abebf
[ "Apache-2.0" ]
3
2020-08-07T20:57:24.000Z
2021-09-07T14:52:14.000Z
from hamcrest import * from tests.helpers.sql import sql_query
50.363636
137
0.659446
ad1e54977e7558a8f0c8a31c237e57a940caccfa
184
py
Python
app/auth/__init__.py
Muxi-Studio/ccnu-network-culture-festival
3ff62b2a3052d1c0fcbc62df53f8985ea8bfd9d3
[ "MIT" ]
3
2016-12-01T07:38:17.000Z
2016-12-17T14:37:24.000Z
examples/HelloAPI/app/auth/__init__.py
misakar/rest
8bf7369aaa9da5cc4a300c625e4d7fea21f52681
[ "MIT" ]
7
2020-03-24T16:05:11.000Z
2022-01-13T00:51:53.000Z
examples/HelloAPI/app/auth/__init__.py
misakar/rest
8bf7369aaa9da5cc4a300c625e4d7fea21f52681
[ "MIT" ]
4
2015-12-11T03:20:27.000Z
2016-02-03T04:47:52.000Z
# coding: utf-8 from flask import Blueprint auth = Blueprint( 'auth', __name__, template_folder = 'templates', static_folder = 'static' ) from . import views, forms
14.153846
34
0.663043
ad1e748da5fe246fe028cfff71db337937c5eff0
4,800
py
Python
generator/paperplane.py
isikdogan/paperplane
4f1e3510ef88ede0d0c6b5d3fc19e91ad48b66df
[ "MIT" ]
3
2019-03-23T03:26:15.000Z
2021-05-09T01:20:52.000Z
generator/paperplane.py
isikdogan/paperplane
4f1e3510ef88ede0d0c6b5d3fc19e91ad48b66df
[ "MIT" ]
1
2019-03-24T05:22:42.000Z
2019-03-24T17:42:04.000Z
generator/paperplane.py
isikdogan/paperplane
4f1e3510ef88ede0d0c6b5d3fc19e91ad48b66df
[ "MIT" ]
4
2015-12-07T11:51:17.000Z
2019-03-24T04:26:28.000Z
# -*- coding: utf-8 -*- """ PaperPlane: a very simple, flat-file, static blog generator. Created on Sat Feb 21 2015 Author: Leo Isikdogan """ import codecs, unicodedata import dateutil.parser import os, re, glob import markdown import jinja2
38.4
107
0.606875
ad1e941439ad470245712f61db2a8e49fea80a56
9,723
py
Python
app/recepie/tests/test_recepie_api.py
TheMysteryPuzzles/recepie-app-api
a62f3104ead34f40b310b12e7cecfde4c248c2fc
[ "Apache-2.0" ]
null
null
null
app/recepie/tests/test_recepie_api.py
TheMysteryPuzzles/recepie-app-api
a62f3104ead34f40b310b12e7cecfde4c248c2fc
[ "Apache-2.0" ]
null
null
null
app/recepie/tests/test_recepie_api.py
TheMysteryPuzzles/recepie-app-api
a62f3104ead34f40b310b12e7cecfde4c248c2fc
[ "Apache-2.0" ]
null
null
null
import tempfile import os from PIL import Image from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient from core.models import Recepie, Tag, Ingredient from recepie.serializers impor...
34.97482
79
0.635709
ad1eb8418e4c93dbcc4f80cc958dc638df52a380
809
py
Python
scrap_single_news.py
pralhad88/Web_scraping
c40c2dcf0549cb8a0b18a981a583db3caaec5213
[ "MIT" ]
1
2020-04-14T08:31:35.000Z
2020-04-14T08:31:35.000Z
scrap_single_news.py
pralhad88/Web_scraping
c40c2dcf0549cb8a0b18a981a583db3caaec5213
[ "MIT" ]
null
null
null
scrap_single_news.py
pralhad88/Web_scraping
c40c2dcf0549cb8a0b18a981a583db3caaec5213
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import urllib.request article = [] data_storage = {} source = urllib.request.urlopen("https://www.ndtv.com/india-news/pm-modi-in-telangana-says-seek-your-support-blessings-for-bjp-in-coming-polls-1953954").read() soup = BeautifulSoup(source,'lxml') data_storage['Title'] = soup.h1.string ...
31.115385
159
0.729295
ad1ec9e6f76fa6eefed47245dd47853b28775217
435
py
Python
localstack/services/awslambda/multivalue_transformer.py
zonywhoop/localstack
673e1a23374362c64606fb36c0746ee29cbf5553
[ "Apache-2.0" ]
1
2021-02-19T19:28:30.000Z
2021-02-19T19:28:30.000Z
localstack/services/awslambda/multivalue_transformer.py
zonywhoop/localstack
673e1a23374362c64606fb36c0746ee29cbf5553
[ "Apache-2.0" ]
null
null
null
localstack/services/awslambda/multivalue_transformer.py
zonywhoop/localstack
673e1a23374362c64606fb36c0746ee29cbf5553
[ "Apache-2.0" ]
1
2021-01-10T03:21:47.000Z
2021-01-10T03:21:47.000Z
from collections import defaultdict from localstack.utils.common import to_str
27.1875
63
0.648276
ad1f043741d903cb1b322256803ad59d9dd73fb5
3,601
py
Python
code/dgp/dgp_sorf_optim.py
GiaLacTRAN/convolutional_deep_gp_random_features
93330f3171ab4e9539f6bae0d4a68ae1f6a1e104
[ "Apache-2.0" ]
5
2019-09-16T10:51:49.000Z
2020-10-13T14:44:29.000Z
code/dgp/dgp_sorf_optim.py
GiaLacTRAN/convolutional_deep_gp_random_features
93330f3171ab4e9539f6bae0d4a68ae1f6a1e104
[ "Apache-2.0" ]
1
2020-08-09T06:33:46.000Z
2020-08-20T03:11:50.000Z
code/dgp/dgp_sorf_optim.py
GiaLacTRAN/convolutional_deep_gp_random_features
93330f3171ab4e9539f6bae0d4a68ae1f6a1e104
[ "Apache-2.0" ]
4
2019-05-06T03:57:13.000Z
2020-04-24T13:37:40.000Z
## Copyright 2019 Gia-Lac TRAN, Edwin V. Bonilla, John P. Cunningham, Pietro Michiardi, and Maurizio Filippone ## ## 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...
46.766234
162
0.741461
ad2017893d41afb16c0e80e4020d3f6bd20849ba
109
py
Python
tests/__init__.py
antoinebourayne/sd2c
c76a0c56d5836caba9e6b90cdf7235516e2dd694
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
antoinebourayne/sd2c
c76a0c56d5836caba9e6b90cdf7235516e2dd694
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
antoinebourayne/sd2c
c76a0c56d5836caba9e6b90cdf7235516e2dd694
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Ceci est un module avec les tests unitaires et les tests d'intgrations. """
21.8
76
0.633028
ad201c7e5400ff477533d2ab2495459d41d30028
7,534
py
Python
Tutorial 2 - Data Navigation/PlugIns/experimental/scripts/MultiEELS.py
paradimdata/Cornell_EM_SummerSchool_2021
9f3583e1b85a9cdd86e1b91800027966d501ce96
[ "MIT" ]
8
2021-06-13T20:02:12.000Z
2022-03-24T09:19:23.000Z
Tutorial 2 - Data Navigation/PlugIns/experimental/scripts/MultiEELS.py
paradimdata/Cornell_EM_SummerSchool_2021
9f3583e1b85a9cdd86e1b91800027966d501ce96
[ "MIT" ]
null
null
null
Tutorial 2 - Data Navigation/PlugIns/experimental/scripts/MultiEELS.py
paradimdata/Cornell_EM_SummerSchool_2021
9f3583e1b85a9cdd86e1b91800027966d501ce96
[ "MIT" ]
1
2021-07-16T20:12:28.000Z
2021-07-16T20:12:28.000Z
import numpy import uuid from nion.data import Calibration from nion.data import DataAndMetadata from nion.data import xdata_1_0 as xd from nion.utils import Registry
47.987261
163
0.719273
ad21ba75d05a89c78aac426e67b6209c152b8f74
3,571
py
Python
torch_connectomics/data/augmentation/rotation.py
al093/pytorch_connectomics
52821951233b061102380fc0d2521843652c580a
[ "MIT" ]
2
2019-11-16T23:14:00.000Z
2020-09-25T09:51:46.000Z
torch_connectomics/data/augmentation/rotation.py
al093/pytorch_connectomics
52821951233b061102380fc0d2521843652c580a
[ "MIT" ]
1
2020-09-22T08:49:04.000Z
2020-09-22T08:49:04.000Z
torch_connectomics/data/augmentation/rotation.py
al093/pytorch_connectomics
52821951233b061102380fc0d2521843652c580a
[ "MIT" ]
null
null
null
import cv2 import numpy as np from .augmentor import DataAugment import math
39.241758
116
0.541865
ad21e1a931641e8b434612db21482b74d41ff9af
1,073
py
Python
constants.py
LuisHernandez96/Pichon
7c7a1da6a404eae216b919dc2140ee4ca6624901
[ "MIT" ]
1
2018-03-12T00:23:37.000Z
2018-03-12T00:23:37.000Z
constants.py
LuisHernandez96/Pichon
7c7a1da6a404eae216b919dc2140ee4ca6624901
[ "MIT" ]
null
null
null
constants.py
LuisHernandez96/Pichon
7c7a1da6a404eae216b919dc2140ee4ca6624901
[ "MIT" ]
null
null
null
import re # Used to access the DATA_TYPES dictionary INT = "INT" FLOAT = "FLOAT" BOOLEAN = "BOOLEAN" INT_LIST = "INT_LIST" FLOAT_LIST = "FLOAT_LIST" BOOLEAN_LIST = "BOOLEAN_LIST" VOID = "VOID" OBJECT = "OBJECT" SEMANTIC_ERROR = 99 # Regular expressiones to match data types REGEX_BOOLEAN = r'true|false' regex_boolean ...
17.590164
48
0.571295
ad229f171cc9684921e7ee20ce7549cff09359f6
204
py
Python
server/app/__init__.py
mrchipzhou/simple-android-demo
69b7f40924b8e62fab6cc2fcccb89f3e728e6ef4
[ "MIT" ]
null
null
null
server/app/__init__.py
mrchipzhou/simple-android-demo
69b7f40924b8e62fab6cc2fcccb89f3e728e6ef4
[ "MIT" ]
null
null
null
server/app/__init__.py
mrchipzhou/simple-android-demo
69b7f40924b8e62fab6cc2fcccb89f3e728e6ef4
[ "MIT" ]
null
null
null
from flask import Flask from . import user from . import attendance app = Flask(__name__) app.register_blueprint(user.bp, url_prefix='/User') app.register_blueprint(attendance.bp, url_prefix='/Attend')
22.666667
59
0.784314
ad2372f4683a8e3edf11b3a342a6152ebfa81c44
3,877
py
Python
SimCalorimetry/EcalSelectiveReadoutProducers/python/ecalDigis_craft_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
SimCalorimetry/EcalSelectiveReadoutProducers/python/ecalDigis_craft_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
SimCalorimetry/EcalSelectiveReadoutProducers/python/ecalDigis_craft_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms simEcalDigis = cms.EDProducer("EcalSelectiveReadoutProducer", # Label of input EB and EE digi collections digiProducer = cms.string('simEcalUnsuppressedDigis'), # Instance name of input EB digi collections EBdigiCollection = cms.string(''), # Instance name...
36.233645
79
0.685324
ad248d2fae3558935a3c28c5b44d8c20fef9db65
33,264
py
Python
HDXer/methods.py
TMB-CSB/HDXer
f1e860427a0db2caccb37d630bc85de4a247c0cc
[ "BSD-3-Clause" ]
3
2022-01-28T03:50:00.000Z
2022-02-01T11:04:55.000Z
HDXer/methods.py
TMB-CSB/HDXer
f1e860427a0db2caccb37d630bc85de4a247c0cc
[ "BSD-3-Clause" ]
1
2022-03-31T20:41:31.000Z
2022-03-31T22:07:50.000Z
HDXer/methods.py
Lucy-Forrest-Lab/HDXer
6ad1d73931f6a53922c3c960e6c3f67ebcbd7161
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Class for HDX trajectories, inherited from MDTraj # import mdtraj as md import numpy as np import os, glob, copy from .dfpred import DfPredictor from .errors import HDX_Error from . import functions ### Add further classes for methods below here
52.21978
185
0.616432
ad24ff76711efc4ad761466ca54751008e0bd6ce
1,176
py
Python
datasource/interface.py
YAmikep/datasource
6c8d72bd299aa0a9e2880228f0f39d2b8721b146
[ "MIT" ]
1
2018-06-16T11:33:56.000Z
2018-06-16T11:33:56.000Z
datasource/interface.py
YAmikep/datasource
6c8d72bd299aa0a9e2880228f0f39d2b8721b146
[ "MIT" ]
1
2020-03-24T17:32:45.000Z
2020-03-24T17:32:45.000Z
datasource/interface.py
YAmikep/datasource
6c8d72bd299aa0a9e2880228f0f39d2b8721b146
[ "MIT" ]
2
2018-06-16T11:37:34.000Z
2020-07-30T17:56:54.000Z
MAX_MEMORY = 5 * 1024 * 2 ** 10 # 5 MB BUFFER_SIZE = 1 * 512 * 2 ** 10 # 512 KB
30.153846
127
0.62415
ad2588d5d21fa5a0ab0624f48b923896aa205c21
214
py
Python
python/mock_patch/test_topathch.py
amitsaha/playground
82cb5ac02ac90d3fa858a5153b0a5705187c14ce
[ "Unlicense" ]
4
2018-04-14T16:28:39.000Z
2021-11-14T12:08:02.000Z
python/mock_patch/test_topathch.py
amitsaha/playground
82cb5ac02ac90d3fa858a5153b0a5705187c14ce
[ "Unlicense" ]
3
2022-02-14T10:38:51.000Z
2022-02-27T16:01:16.000Z
python/mock_patch/test_topathch.py
amitsaha/playground
82cb5ac02ac90d3fa858a5153b0a5705187c14ce
[ "Unlicense" ]
4
2015-07-07T01:01:27.000Z
2019-04-12T05:38:26.000Z
from mock import patch
23.777778
52
0.682243
ad276315f893a288238d66dae8d8e08290828c3c
85,143
py
Python
pyjsg/parser/jsgParser.py
hsolbrig/pyjsg
5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429
[ "CC0-1.0" ]
3
2017-07-23T11:11:23.000Z
2020-11-30T15:36:51.000Z
pyjsg/parser/jsgParser.py
hsolbrig/pyjsg
5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429
[ "CC0-1.0" ]
15
2018-01-05T17:18:34.000Z
2021-12-13T17:40:25.000Z
try2/lib/python3.9/site-packages/pyjsg/parser/jsgParser.py
diatomsRcool/eco-kg
4251f42ca2ab353838a39b640cb97593db76d4f4
[ "BSD-3-Clause" ]
1
2021-01-18T10:32:56.000Z
2021-01-18T10:32:56.000Z
# Generated from jsgParser.g4 by ANTLR 4.9 # encoding: utf-8 from antlr4 import * from io import StringIO import sys if sys.version_info[1] > 5: from typing import TextIO else: from typing.io import TextIO
34.429034
299
0.566318
ad2a6e5fc9f7663e6a63e74433c09fbbe508fe41
4,568
py
Python
Nokore/scripts/main-simon-transfer.py
algorine/nokware
709c7d7061082f73fc2b3d4e0897d451a5fbbbd8
[ "MIT" ]
null
null
null
Nokore/scripts/main-simon-transfer.py
algorine/nokware
709c7d7061082f73fc2b3d4e0897d451a5fbbbd8
[ "MIT" ]
null
null
null
Nokore/scripts/main-simon-transfer.py
algorine/nokware
709c7d7061082f73fc2b3d4e0897d451a5fbbbd8
[ "MIT" ]
null
null
null
import time import numpy as np import pandas as pd import random from Simon import Simon from Simon.Encoder import Encoder from Simon.LengthStandardizer import DataLengthStandardizerRaw start_time = time.time() ### Read-in the emails and print some basic statistics # Enron EnronEmails = pd.read_csv('data/enron_em...
35.968504
147
0.768827
ad2d2edbe5cd065fd478d317524918fed089d282
1,111
py
Python
example/familytree.py
realistschuckle/pyvisitor
f08bd50f5ca5ff4288f00d9045ca406e278ed306
[ "MIT" ]
15
2015-01-30T21:08:28.000Z
2022-02-03T18:00:56.000Z
example/familytree.py
realistschuckle/pyvisitor
f08bd50f5ca5ff4288f00d9045ca406e278ed306
[ "MIT" ]
2
2016-10-03T21:33:29.000Z
2019-02-05T13:06:05.000Z
example/familytree.py
realistschuckle/pyvisitor
f08bd50f5ca5ff4288f00d9045ca406e278ed306
[ "MIT" ]
7
2016-09-16T07:34:50.000Z
2022-02-03T18:03:01.000Z
from __future__ import print_function import sys import os # Put the path to the visitor module on the search path path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src')) if not path in sys.path: sys.path.insert(1, path) import visitor
19.491228
76
0.688569
ad2d3fa37ba1868e4e2a135fb9535b7aef051f1f
234
py
Python
bgui/server/server/config.py
monash-emu/Legacy-AuTuMN
513bc14b4ea8c29c5983cc90fb94284e6a003515
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
bgui/server/server/config.py
monash-emu/Legacy-AuTuMN
513bc14b4ea8c29c5983cc90fb94284e6a003515
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
bgui/server/server/config.py
monash-emu/Legacy-AuTuMN
513bc14b4ea8c29c5983cc90fb94284e6a003515
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
SQLALCHEMY_DATABASE_URI = 'sqlite:///database.sqlite' SECRET_KEY = 'F12Zr47j\3yX R~X@H!jmM]Lwf/,?KT' SAVE_FOLDER = '../../../projects' SQLALCHEMY_TRACK_MODIFICATIONS = 'False' PORT = '3000' STATIC_FOLDER = '../../client/dist/static'
29.25
53
0.709402
ad2e32d215791b8f6d838656d93aa2028c4b0dfd
416
py
Python
dentexchange/apps/location/tests/test_zip_code.py
hellhound/dentexchange
58ae303e842404fc9e1860f294ec8044a332bef3
[ "BSD-3-Clause" ]
1
2017-11-09T23:09:51.000Z
2017-11-09T23:09:51.000Z
dentexchange/apps/location/tests/test_zip_code.py
hellhound/dentexchange
58ae303e842404fc9e1860f294ec8044a332bef3
[ "BSD-3-Clause" ]
null
null
null
dentexchange/apps/location/tests/test_zip_code.py
hellhound/dentexchange
58ae303e842404fc9e1860f294ec8044a332bef3
[ "BSD-3-Clause" ]
3
2015-08-11T16:58:47.000Z
2021-01-04T08:23:51.000Z
# -*- coding:utf-8 -*- import unittest import mock import decimal from ..models import ZipCode
19.809524
46
0.637019
ad3017e922c09970a0f8a72fe88d8aaa1a57078a
224,543
py
Python
src/Intel_Project (1).py
Lance-Dsilva/Intel-Image-Classification-Using-CNN-91-Accuracy-
e5b729dddaa3671337c6c5019b69fc6ca2c868c0
[ "Unlicense" ]
null
null
null
src/Intel_Project (1).py
Lance-Dsilva/Intel-Image-Classification-Using-CNN-91-Accuracy-
e5b729dddaa3671337c6c5019b69fc6ca2c868c0
[ "Unlicense" ]
null
null
null
src/Intel_Project (1).py
Lance-Dsilva/Intel-Image-Classification-Using-CNN-91-Accuracy-
e5b729dddaa3671337c6c5019b69fc6ca2c868c0
[ "Unlicense" ]
null
null
null
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="dns-prefetch" href="https://github.githubassets.com"> <link rel="dns-prefetch" href="https://avatars0.githubusercontent.com"> <link rel="dns-prefetch" href="https://avatars1.githubusercontent.com"> <link rel="dns-prefetch" href...
68.291667
2,554
0.634956
ad306fcfd7d3c8210a18c93a19c2085a8ed5bde6
1,523
py
Python
spaces/utils.py
jgillick/Spaces
96247701d530a017f10a0bd0ac6cf241d621be11
[ "MIT" ]
1
2018-08-12T23:43:45.000Z
2018-08-12T23:43:45.000Z
spaces/utils.py
jgillick/Spaces
96247701d530a017f10a0bd0ac6cf241d621be11
[ "MIT" ]
3
2016-01-13T10:12:51.000Z
2016-01-13T10:13:15.000Z
spaces/utils.py
jgillick/Spaces
96247701d530a017f10a0bd0ac6cf241d621be11
[ "MIT" ]
null
null
null
import re import os import uuid from datetime import date from django.conf import settings def normalize_path(path): """ Normalizes a path: * Removes extra and trailing slashes * Converts special characters to underscore """ if path is None: return "" path = re.sub(r'/+', '/',...
23.075758
58
0.594879
ad31e247da8cf855b63a1a735072233c2abea496
3,608
py
Python
babyname_parser.py
jongtaeklho/swpp-hw1-jongtaeklho
1f0d2e4d4af985f83cbf3a9ee7548fecee68d346
[ "Apache-2.0" ]
null
null
null
babyname_parser.py
jongtaeklho/swpp-hw1-jongtaeklho
1f0d2e4d4af985f83cbf3a9ee7548fecee68d346
[ "Apache-2.0" ]
null
null
null
babyname_parser.py
jongtaeklho/swpp-hw1-jongtaeklho
1f0d2e4d4af985f83cbf3a9ee7548fecee68d346
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Modified by Alchan Kim at SNU Software Platform Lab for # SWPP fall 2020 lecture. import s...
33.100917
119
0.636918
ad322b052b2b88031cf1b45b1db093b00f0d7cf1
8,137
py
Python
tests/test_position_stk_short.py
nwillemse/nctrader
4754ccdeae465ef4674a829f35fc3f78cf1d3ea4
[ "MIT" ]
1
2019-11-13T06:38:12.000Z
2019-11-13T06:38:12.000Z
tests/test_position_stk_short.py
nwillemse/nctrader
4754ccdeae465ef4674a829f35fc3f78cf1d3ea4
[ "MIT" ]
null
null
null
tests/test_position_stk_short.py
nwillemse/nctrader
4754ccdeae465ef4674a829f35fc3f78cf1d3ea4
[ "MIT" ]
1
2021-05-11T11:24:08.000Z
2021-05-11T11:24:08.000Z
import unittest from datetime import datetime from nctrader.position2 import Position from nctrader.price_parser import PriceParser if __name__ == "__main__": unittest.main()
54.610738
177
0.665233
ad32a03d43ea33a557f3e2f1e814ed32989f10d1
1,280
py
Python
app/services/bgm_tv/bgm_tv.py
renovate-tests/pol
dca9aa4ce34273575d69a140dc3bb1d2ac14ecbf
[ "MIT" ]
5
2019-05-11T05:14:44.000Z
2019-09-07T10:22:53.000Z
app/services/bgm_tv/bgm_tv.py
renovate-tests/pol
dca9aa4ce34273575d69a140dc3bb1d2ac14ecbf
[ "MIT" ]
161
2019-09-09T07:30:25.000Z
2022-03-14T19:52:43.000Z
app/services/bgm_tv/bgm_tv.py
renovate-tests/pol
dca9aa4ce34273575d69a140dc3bb1d2ac14ecbf
[ "MIT" ]
3
2019-09-07T13:15:05.000Z
2020-05-06T04:30:46.000Z
from typing import Optional import requests from app.core import config from app.services.bgm_tv.model import UserInfo, SubjectWithEps
29.767442
82
0.640625
ad32a493dcd06ab200267b7f9637b1ea5be35b2c
1,164
py
Python
backend_thread.py
HusseinLezzaik/Stock-Market-Prediction
03f6b835466ebee9d4ee5ad217c4ed5c57b60a30
[ "MIT" ]
null
null
null
backend_thread.py
HusseinLezzaik/Stock-Market-Prediction
03f6b835466ebee9d4ee5ad217c4ed5c57b60a30
[ "MIT" ]
null
null
null
backend_thread.py
HusseinLezzaik/Stock-Market-Prediction
03f6b835466ebee9d4ee5ad217c4ed5c57b60a30
[ "MIT" ]
null
null
null
import time import numpy as np import yahoo_fin.stock_info as si from PyQt5.QtCore import QThread, pyqtSignal from data_processing.download_data import download_data
27.069767
63
0.603952
ad344532336002200ed3df2295a2d40ee97f93bb
2,183
py
Python
csp_observer/settings.py
flxn/django-csp-observer
a7848085c94c53c06b523096a384118a1deae3e3
[ "MIT" ]
1
2020-08-26T13:58:10.000Z
2020-08-26T13:58:10.000Z
csp_observer/settings.py
flxn/django-csp-observer
a7848085c94c53c06b523096a384118a1deae3e3
[ "MIT" ]
null
null
null
csp_observer/settings.py
flxn/django-csp-observer
a7848085c94c53c06b523096a384118a1deae3e3
[ "MIT" ]
null
null
null
from django.conf import settings from .models import StoredConfig NAMESPACE = getattr(settings, 'CSP_OBSERVER_NAMESPACE' , 'CSPO') REPORT_ONLY = ns_getattr(settings, 'REPORT_ONLY', True) ENABLED_PATHS = ns_getattr(settings, 'ENABLED_PATHS', [ "/" ]) CSP_POLICIES = ns_getattr(settings, 'CSP_POLICIES', { 'defa...
33.584615
137
0.737975
ad357f0d42f5dc8811eeedd1a1ffd8d72bef3528
585
py
Python
examples/gemini examples/basic_private_api_usage.py
wiqram/robin_stocks
4e5dcf6515659e7f3f571ffa5e18e44afe3ab8a5
[ "MIT" ]
null
null
null
examples/gemini examples/basic_private_api_usage.py
wiqram/robin_stocks
4e5dcf6515659e7f3f571ffa5e18e44afe3ab8a5
[ "MIT" ]
null
null
null
examples/gemini examples/basic_private_api_usage.py
wiqram/robin_stocks
4e5dcf6515659e7f3f571ffa5e18e44afe3ab8a5
[ "MIT" ]
null
null
null
''' The most basic way to use the Private API. I recommend renaming the file .env to .env and filling out the gemini api key information. The dotenv package loads the .env (or .env) file and the os.environ() function reads the values from the file. ''' import os import robin_stocks.gemini as g from dotenv import load_...
30.789474
99
0.748718
ad35d6c682f13b8a035b9d728de67d944b584d36
420
py
Python
cozens_circles_beams.py
hattfe/Math
7957c31a830071195d11a206ce2eea9f21d62f98
[ "MIT" ]
null
null
null
cozens_circles_beams.py
hattfe/Math
7957c31a830071195d11a206ce2eea9f21d62f98
[ "MIT" ]
null
null
null
cozens_circles_beams.py
hattfe/Math
7957c31a830071195d11a206ce2eea9f21d62f98
[ "MIT" ]
null
null
null
import turtle t = turtle.Pen() t.speed(10) x1 = [] y1 = [] for i in range(0, 36): t.circle(200,10) x, y =(t.pos()) x1.append(int(x)) y1.append(int(y)) print(x1, y1) x11 = x1[0] y11 = y1[0] for n in range(len(x1)): basagit(n,2)
15.555556
50
0.519048
ad3655bbbb52c012300bf70990dabf83a7394946
1,808
py
Python
mysite/stocktrader/models.py
bennett39/stocktrader
c56a72f7a22367241d7126f8ed5b17f8d50a93db
[ "MIT" ]
1
2020-10-09T03:19:10.000Z
2020-10-09T03:19:10.000Z
mysite/stocktrader/models.py
bennett39/stocktrader
c56a72f7a22367241d7126f8ed5b17f8d50a93db
[ "MIT" ]
null
null
null
mysite/stocktrader/models.py
bennett39/stocktrader
c56a72f7a22367241d7126f8ed5b17f8d50a93db
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from django.core.validators import MinValueValidator # Create your models here. class Stock(models.Model): symbol = models.CharField( max_length=1...
25.828571
65
0.654867
ad375040d6b6884d5223dc6bfe23eb549e651e7b
322
py
Python
sql/mysql_demo.py
garyhu1/first-python
01731d419a64aec9683b450d0e8e233f4b5cc9a7
[ "Apache-2.0" ]
1
2019-09-03T11:42:38.000Z
2019-09-03T11:42:38.000Z
sql/mysql_demo.py
garyhu1/first-python
01731d419a64aec9683b450d0e8e233f4b5cc9a7
[ "Apache-2.0" ]
null
null
null
sql/mysql_demo.py
garyhu1/first-python
01731d419a64aec9683b450d0e8e233f4b5cc9a7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- 'Mysql ' __author__ = 'garyhu' import mysql.connector; # conn = mysql.connector.connect(user='root',password='****',database='websites'); s = conn.cursor(); s.execute('select * from users where id = %s',(7,)) value = s.fetchall(); print(value); s.close();
15.333333
80
0.642857
ad379fc8f1e12b0d1ebe0428591ed665c7bd1cdd
1,017
py
Python
plugins/remind/plugin.py
CrushAndRun/Automata
fb16f2e4e985e22adcd244b8a81387f2678f68be
[ "MIT" ]
null
null
null
plugins/remind/plugin.py
CrushAndRun/Automata
fb16f2e4e985e22adcd244b8a81387f2678f68be
[ "MIT" ]
null
null
null
plugins/remind/plugin.py
CrushAndRun/Automata
fb16f2e4e985e22adcd244b8a81387f2678f68be
[ "MIT" ]
null
null
null
from twisted.internet import reactor
42.375
115
0.627335
ad37a81771adfbf9c4a7bbfe30efdf3df704ada9
1,436
py
Python
kkutil/loader/loader.py
kaka19ace/kkutils
1ac449488d85ba2c6b18c5dc9cf77a0bc36579b1
[ "MIT" ]
1
2015-12-13T18:42:52.000Z
2015-12-13T18:42:52.000Z
kkutil/loader/loader.py
kaka19ace/kkutil
1ac449488d85ba2c6b18c5dc9cf77a0bc36579b1
[ "MIT" ]
null
null
null
kkutil/loader/loader.py
kaka19ace/kkutil
1ac449488d85ba2c6b18c5dc9cf77a0bc36579b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # import threading import logging Loader.set_logger(logger=logging.getLogger(Loader.__name__))
25.192982
98
0.608635
ad3a349f295eb61db842675383d6912392309c0a
3,879
py
Python
bdt2cpp/XGBoostParser.py
bixel/bdt2cpp
bffd94d777181a3a3bba81a8173ca57ead65c27c
[ "MIT" ]
3
2017-10-01T15:25:10.000Z
2021-04-10T18:42:19.000Z
bdt2cpp/XGBoostParser.py
bixel/bdt2cpp
bffd94d777181a3a3bba81a8173ca57ead65c27c
[ "MIT" ]
3
2020-02-25T17:02:56.000Z
2021-05-04T06:49:49.000Z
bdt2cpp/XGBoostParser.py
bixel/bdt2cpp
bffd94d777181a3a3bba81a8173ca57ead65c27c
[ "MIT" ]
null
null
null
import re from .Node import Node
35.916667
105
0.588812
ad3b4e7ac7bf858225d06af83d3f9f52e0bd5d3f
2,896
py
Python
Backend/ChatBot/model.py
paucutrina/RareHacks_Chatbot
c7ecfef693bf2f477d090629d6eecf7b0bf57872
[ "MIT" ]
null
null
null
Backend/ChatBot/model.py
paucutrina/RareHacks_Chatbot
c7ecfef693bf2f477d090629d6eecf7b0bf57872
[ "MIT" ]
null
null
null
Backend/ChatBot/model.py
paucutrina/RareHacks_Chatbot
c7ecfef693bf2f477d090629d6eecf7b0bf57872
[ "MIT" ]
null
null
null
import pickle import json import random # NLP stuff import nltk # nltk.download('punkt') from nltk.stem.lancaster import LancasterStemmer # TensorFlow stuff import numpy as np import tflearn import tensorflow as tf import os import time stemmer = LancasterStemmer() intents_dict = dict() folder_entities = "entitie...
24.965517
74
0.696133
ad3bbfaab9acdd38aa4c59baaeda66231af95942
3,658
py
Python
.tmpl/python_scripts/batch_cmd_py/batch_cmd.py
githeim/wh_tmpl
cb869cb241fbe4b66bb0ed5b08a4a4e2dad0ed89
[ "MIT" ]
3
2020-10-08T11:32:16.000Z
2021-08-11T09:47:29.000Z
.tmpl/python_scripts/batch_cmd_py/batch_cmd.py
githeim/wh_tmpl
cb869cb241fbe4b66bb0ed5b08a4a4e2dad0ed89
[ "MIT" ]
null
null
null
.tmpl/python_scripts/batch_cmd_py/batch_cmd.py
githeim/wh_tmpl
cb869cb241fbe4b66bb0ed5b08a4a4e2dad0ed89
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import subprocess import os import sys import unittest import enum import datetime # :x: example # Write Unit Test Here if __name__ == '__main__': print ("chk") exit( main())
26.128571
95
0.603062
ad3e3b47f7469d7f8af94e97611d088863a579cd
2,753
py
Python
{{cookiecutter.repo_name}}/src/evaluate.py
nussl/cookiecutter
5df8512592778ea7155b05e3e4b54676227968b0
[ "MIT" ]
null
null
null
{{cookiecutter.repo_name}}/src/evaluate.py
nussl/cookiecutter
5df8512592778ea7155b05e3e4b54676227968b0
[ "MIT" ]
null
null
null
{{cookiecutter.repo_name}}/src/evaluate.py
nussl/cookiecutter
5df8512592778ea7155b05e3e4b54676227968b0
[ "MIT" ]
null
null
null
import nussl import os import json from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor import tqdm import gin from .helpers import build_dataset import logging
35.753247
74
0.648384
ad3e9b467042b664880d401cd499df829e241e47
260
py
Python
ballpark/cashflows/admin.py
keyvanm/ballpark
90ca6ac355319f159fa0836f30df487ee8e72ddd
[ "MIT" ]
null
null
null
ballpark/cashflows/admin.py
keyvanm/ballpark
90ca6ac355319f159fa0836f30df487ee8e72ddd
[ "MIT" ]
null
null
null
ballpark/cashflows/admin.py
keyvanm/ballpark
90ca6ac355319f159fa0836f30df487ee8e72ddd
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(GenericOnetimeIncome) admin.site.register(GenericRecurringIncome) admin.site.register(GenericOnetimeExpense) admin.site.register(GenericRecurringExpense)
26
44
0.846154
ad3f016195bbebe749ea93e6dd6bbfeb76dd0048
1,376
py
Python
client/examples/cycle-cards.py
spoore1/smart-card-removinator
dfc42e0ab5cea45c2ba299c10e7bc3b5857ddba2
[ "Apache-2.0" ]
26
2016-10-14T02:33:42.000Z
2022-02-22T01:44:28.000Z
client/examples/cycle-cards.py
spoore1/smart-card-removinator
dfc42e0ab5cea45c2ba299c10e7bc3b5857ddba2
[ "Apache-2.0" ]
2
2018-03-18T03:06:52.000Z
2021-03-21T10:14:17.000Z
client/examples/cycle-cards.py
spoore1/smart-card-removinator
dfc42e0ab5cea45c2ba299c10e7bc3b5857ddba2
[ "Apache-2.0" ]
8
2017-04-26T01:54:07.000Z
2021-09-21T14:14:49.000Z
#!/usr/bin/env python from removinator import removinator import subprocess # This example cycles through each card slot in the Removinator. Any # slots that have a card present will then have the certificates on the # card printed out using the pkcs15-tool utility, which is provided by # the OpenSC project. # # Exa...
32.761905
74
0.667151
ad3f3ba0c8f945d938221059aed3b9fa065e26c7
716
py
Python
PDFParser/Client.py
NekuHarp/TPScrum1
bf5d4cd4353066517077bd4116b523b3ce1f99ea
[ "Apache-2.0" ]
2
2018-12-14T10:57:02.000Z
2019-11-23T14:20:55.000Z
PDFParser/Client.py
NekuHarp/TPScrum1
bf5d4cd4353066517077bd4116b523b3ce1f99ea
[ "Apache-2.0" ]
null
null
null
PDFParser/Client.py
NekuHarp/TPScrum1
bf5d4cd4353066517077bd4116b523b3ce1f99ea
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from . import Defs as _D from .Parser import Parser as _P
21.058824
84
0.52095
ad3f53ef596ae070ce4e4844884650cb4e2cce56
1,425
py
Python
tree/binary/02.py
zlikun-lang/python-data-structure-and-algorithm
f6bd97e1cfb142baa804113c654ab32144c34175
[ "Apache-2.0" ]
null
null
null
tree/binary/02.py
zlikun-lang/python-data-structure-and-algorithm
f6bd97e1cfb142baa804113c654ab32144c34175
[ "Apache-2.0" ]
null
null
null
tree/binary/02.py
zlikun-lang/python-data-structure-and-algorithm
f6bd97e1cfb142baa804113c654ab32144c34175
[ "Apache-2.0" ]
null
null
null
bt = BinaryTree('*') bt.insert_left('+') bt.insert_right('-') # * + - print(bt.get_root_value(), bt.get_left_child(), bt.get_right_child()) bt.set_root_value('/') # / + - print(bt.get_root_value(), bt.get_left_child(), bt.get_right_child()) bt.insert_left(3) bt.insert_right(4) # (3 + 4) / (7 - 2) # / 3 + None 4 N...
23.75
69
0.619649
ad407d34582125c1bd24f6cfc57ab71b5fbb80c8
1,705
py
Python
tmp/keyword_get.py
mingyuexc/huluxia_woman_meitui
f6706947dbeb6cdd9e39b08ad1fcf2fc459ecb0d
[ "Apache-2.0" ]
3
2021-01-19T02:41:54.000Z
2021-05-04T08:23:18.000Z
tmp/keyword_get.py
mingyuexc/huluxia_woman_meitui
f6706947dbeb6cdd9e39b08ad1fcf2fc459ecb0d
[ "Apache-2.0" ]
null
null
null
tmp/keyword_get.py
mingyuexc/huluxia_woman_meitui
f6706947dbeb6cdd9e39b08ad1fcf2fc459ecb0d
[ "Apache-2.0" ]
1
2021-04-14T10:05:32.000Z
2021-04-14T10:05:32.000Z
#!/usr/bin/python3 # coding = utf-8 """ @author:m1n9yu3 @file:keyword_get.py @time:2021/01/13 """ from get_data import * import threading from urllib import parse def multi_thread(idlist, path): """ 1000 """ # for i in range(start_id, step+start_id): # parse_json(url, start_id+i) threads = [] ...
27.063492
129
0.622874
ad43350b2da704f794c52e0d66b5d6a868f93d05
388
py
Python
Proctor_Brad/Assignments/bubble sort.py
webguru001/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
5
2019-05-17T01:30:02.000Z
2021-06-17T21:02:58.000Z
Proctor_Brad/Assignments/bubble sort.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
Proctor_Brad/Assignments/bubble sort.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
import random import time b = [] for x in range(0,100): b.append(int(random.random()*10000)) maximum = len(b) - 1 start_time = time.time() for i in range(0,maximum): for j in range(0,maximum): if(b[j] > b[j+1]): temp = b[j] b[j] = b[j+1] b[j+1] = temp maximum -= ...
20.421053
56
0.523196
ad437b9b77502ea14c72a607a4c29fcf984906ad
1,863
py
Python
app/morocco/authentication.py
troydai/Morocco
b975d4f6813734a4c7b8e6c61669976389a27560
[ "MIT" ]
null
null
null
app/morocco/authentication.py
troydai/Morocco
b975d4f6813734a4c7b8e6c61669976389a27560
[ "MIT" ]
9
2017-07-11T08:17:27.000Z
2017-08-01T21:48:00.000Z
app/morocco/authentication.py
troydai/Morocco
b975d4f6813734a4c7b8e6c61669976389a27560
[ "MIT" ]
null
null
null
import flask_login from .application import app from .models import DbUser login_manager = flask_login.LoginManager() # pylint: disable=invalid-name login_manager.init_app(app) login_manager.user_loader(lambda user_id: DbUser.query.filter_by(id=user_id).first()) login_required = flask_login.login_required
27.397059
85
0.703167
ad45281e97f21d2403bb3011a6ec4b34ad957b3a
2,401
py
Python
src/pynwb/ndx_icephys_meta/io/icephys.py
oruebel/ndx-icephys-meta
c97ea4f0ff60ad05e173cca30b0c46b809727f89
[ "BSD-3-Clause-LBNL" ]
6
2020-04-15T14:28:29.000Z
2022-03-31T20:33:25.000Z
src/pynwb/ndx_icephys_meta/io/icephys.py
oruebel/ndx-icephys-meta
c97ea4f0ff60ad05e173cca30b0c46b809727f89
[ "BSD-3-Clause-LBNL" ]
55
2019-10-10T19:21:08.000Z
2021-07-21T03:02:29.000Z
src/pynwb/ndx_icephys_meta/io/icephys.py
oruebel/ndx-icephys-meta
c97ea4f0ff60ad05e173cca30b0c46b809727f89
[ "BSD-3-Clause-LBNL" ]
null
null
null
""" Module with ObjectMapper classes for the icephys-meta Container classes/neurodata_types """ from pynwb import register_map from pynwb.io.file import NWBFileMap from hdmf.common.io.table import DynamicTableMap from ndx_icephys_meta.icephys import ICEphysFile, AlignedDynamicTable
47.078431
120
0.768013
ad45360a92c7f02994ad544e2eb3f4433e8d7fb6
7,265
py
Python
plugin/AssemblerSPAdes/bin/RunAssembler.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
125
2015-01-22T05:43:23.000Z
2022-03-22T17:15:59.000Z
plugin/AssemblerSPAdes/bin/RunAssembler.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
59
2015-02-10T09:13:06.000Z
2021-11-11T02:32:38.000Z
plugin/AssemblerSPAdes/bin/RunAssembler.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
98
2015-01-17T01:25:10.000Z
2022-03-18T17:29:42.000Z
#!/usr/bin/env python import json import os import subprocess import sys import sys if __name__ == "__main__": if len(sys.argv) == 5: sample_id = sys.argv[1] sample_seq = sys.argv[2] bam_file = sys.argv[3] out_dir = sys.argv[4] runner = AssemblerRunner(sample_id, sample_seq...
38.439153
87
0.599725
ad4606ad266b7b3db3e78f36d7d519b541e707cd
1,242
py
Python
log_utils.py
zheng-yanan/hierarchical-deep-generative-models
3a92d2ce69a51f4da55a18b09ca4c246f6f6ed43
[ "MIT" ]
1
2019-06-06T02:55:45.000Z
2019-06-06T02:55:45.000Z
log_utils.py
zheng-yanan/hierarchical-deep-generative-model
3a92d2ce69a51f4da55a18b09ca4c246f6f6ed43
[ "MIT" ]
null
null
null
log_utils.py
zheng-yanan/hierarchical-deep-generative-model
3a92d2ce69a51f4da55a18b09ca4c246f6f6ed43
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import division from __future__ import absolute_import from __future__ import print_function import os import sys import logging def logger_fn(name, filepath, level = logging.DEBUG): """ Function for creating log manager Args: name: name for log manager filepath: file ...
25.875
107
0.711755
ad46fd5c399e0415b0358814ed40f6bdf8278661
336
py
Python
api/types.py
ElPapi42/test-api
d7a68e8fadb6cbb6bf48e993e1df4898bedc6372
[ "MIT" ]
null
null
null
api/types.py
ElPapi42/test-api
d7a68e8fadb6cbb6bf48e993e1df4898bedc6372
[ "MIT" ]
null
null
null
api/types.py
ElPapi42/test-api
d7a68e8fadb6cbb6bf48e993e1df4898bedc6372
[ "MIT" ]
null
null
null
from bson.objectid import ObjectId, InvalidId
21
47
0.622024
ad47d50e27f1ff53557e090e02e00ff688fd1b95
1,818
py
Python
phr/insteducativa/api/serializers.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/insteducativa/api/serializers.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/insteducativa/api/serializers.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
from drf_extra_fields.geo_fields import PointField from rest_framework import serializers from phr.insteducativa.models import InstitucionEducativa from phr.ubigeo.models import UbigeoDepartamento, UbigeoDistrito, UbigeoProvincia
42.27907
116
0.684268
ad48ea0d8d6cb42aaecd71882b43cea8143d3ab2
885
py
Python
python/review_02_list.py
dayoungMM/TIL
b844ef5621657908d4c256cdfe233462dd075e8b
[ "MIT" ]
null
null
null
python/review_02_list.py
dayoungMM/TIL
b844ef5621657908d4c256cdfe233462dd075e8b
[ "MIT" ]
null
null
null
python/review_02_list.py
dayoungMM/TIL
b844ef5621657908d4c256cdfe233462dd075e8b
[ "MIT" ]
null
null
null
## list array = [1,2,3,"four","five","six",True] print(array[:3]) dust = { '': 50, '' : 40 } ## Dictionary print(dust['']) dust2 = dict(abc=50) print(dust2) ## coffee 3 import random coffee = ['','','','',''] coffee_fav=coffee[1:4] # print(coffee_fav) ls = [] while True: a = random.choice(coffe...
15.526316
58
0.59887
ad49616aedf0c8496a6ad656e69c031e7078edfd
1,661
py
Python
DetectAESECB.py
styojm/CryptoPal-Challenges
e7b1759d01de7d388c1632b827c51f506e419db7
[ "MIT" ]
null
null
null
DetectAESECB.py
styojm/CryptoPal-Challenges
e7b1759d01de7d388c1632b827c51f506e419db7
[ "MIT" ]
null
null
null
DetectAESECB.py
styojm/CryptoPal-Challenges
e7b1759d01de7d388c1632b827c51f506e419db7
[ "MIT" ]
null
null
null
''' Detect AES in ECB mode In this file are a bunch of hex-encoded ciphertexts. One of them has been encrypted with ECB. Detect it. Remember that the problem with ECB is that it is stateless and deterministic; the same 16 byte plaintext block will always produce the same 16 byte ciphertext. Strategy is to separate ...
28.637931
159
0.658037
ad4b8493a7a78d74d29fd8adec60eaee8fb97b35
14,527
py
Python
uam_simulator/orca.py
colineRamee/UAM_simulator_scitech2021
0583f5ce195cf1ec4f6919d6523fa39851c419fc
[ "MIT" ]
1
2021-02-04T15:57:03.000Z
2021-02-04T15:57:03.000Z
uam_simulator/orca.py
colineRamee/UAM_simulator_scitech2021
0583f5ce195cf1ec4f6919d6523fa39851c419fc
[ "MIT" ]
null
null
null
uam_simulator/orca.py
colineRamee/UAM_simulator_scitech2021
0583f5ce195cf1ec4f6919d6523fa39851c419fc
[ "MIT" ]
2
2021-02-04T04:41:08.000Z
2022-03-01T16:18:14.000Z
import numpy as np import math """ Implementation of the ORCA algorithm Resources: van den Berg, Reciprocal n-body Collision Avoidance, RVO2 library (C++) https://github.com/snape/RVO2/blob/master/src/Agent.cpp Pyorca library to see another python implementation https://github.com/...
56.968627
191
0.597921
ad4bc314e783e86d0936529813182a506c16c465
3,030
py
Python
lib/heuristic_methods/greedy_packing/largest_heat_match_greedy.py
cog-imperial/min_matches_heuristics
669fd082c747f886c949aacc427f00e80d0c5291
[ "Apache-2.0" ]
4
2019-04-14T14:11:57.000Z
2020-07-02T10:42:12.000Z
lib/heuristic_methods/greedy_packing/largest_heat_match_greedy.py
cog-imperial/min_matches_heuristics
669fd082c747f886c949aacc427f00e80d0c5291
[ "Apache-2.0" ]
null
null
null
lib/heuristic_methods/greedy_packing/largest_heat_match_greedy.py
cog-imperial/min_matches_heuristics
669fd082c747f886c949aacc427f00e80d0c5291
[ "Apache-2.0" ]
2
2018-03-27T15:05:40.000Z
2020-07-03T08:00:37.000Z
from time import time from ...problem_classes.heat_exchange import Heat_Exchange # It computes the maximum heat that can be exchanged between i and j # with heat vectors QH and QC, respectively.
26.12069
86
0.648515
ad4bd3da35c74d546fcb8432bf4ca348b5a1195d
3,125
py
Python
cosifer/utils/stats.py
C-nit/cosifer
550b3ee1055bf1ceb8883ee8736c8d538ceb6ee4
[ "MIT" ]
7
2020-01-17T17:29:37.000Z
2022-02-18T09:53:50.000Z
cosifer/utils/stats.py
C-nit/cosifer
550b3ee1055bf1ceb8883ee8736c8d538ceb6ee4
[ "MIT" ]
2
2020-10-19T14:28:49.000Z
2021-01-14T18:20:46.000Z
cosifer/utils/stats.py
C-nit/cosifer
550b3ee1055bf1ceb8883ee8736c8d538ceb6ee4
[ "MIT" ]
3
2020-11-02T15:42:34.000Z
2021-02-24T12:37:34.000Z
"""Statistics utils.""" import numpy as np import pandas as pd from statsmodels.stats import multitest as mt from .data import scale_graph def bonferroni_correction(p_values, q_star): """ Return indices of pValues that make reject null hypothesis at given significance level with a Bonferroni correction. ...
30.940594
75
0.68096
ad4d7bab059d0ea9bad8d2d28f8ce727a3796264
14,523
py
Python
src/dmglib.py
rickmark/dmglib
abcb16b4eeaec8e34f13248874c0e5b39dcfd96d
[ "MIT" ]
null
null
null
src/dmglib.py
rickmark/dmglib
abcb16b4eeaec8e34f13248874c0e5b39dcfd96d
[ "MIT" ]
null
null
null
src/dmglib.py
rickmark/dmglib
abcb16b4eeaec8e34f13248874c0e5b39dcfd96d
[ "MIT" ]
null
null
null
""" dmglib is a basic ``hdiutil`` wrapper that simplifies working with dmg images from Python. The module can be used to attach and detach disk images, to check a disk image's validity and to query whether disk images are password protected or have a license agreement included. """ import plistlib import subprocess i...
31.988987
106
0.658955
ad500e55895d6938ba4ad576c120964bb8775e2f
786
py
Python
example_app/sqlalchemy/models.py
aalamdev/py-angular-testapp
34fbeae36f8890dc254fb181d2d4fe986ada6d00
[ "MIT" ]
null
null
null
example_app/sqlalchemy/models.py
aalamdev/py-angular-testapp
34fbeae36f8890dc254fb181d2d4fe986ada6d00
[ "MIT" ]
null
null
null
example_app/sqlalchemy/models.py
aalamdev/py-angular-testapp
34fbeae36f8890dc254fb181d2d4fe986ada6d00
[ "MIT" ]
null
null
null
import sqlalchemy as sqa from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() db_name = "aalam_pyangtestapp"
25.354839
68
0.680662
ad50231d4a1b87b0ce0cfc2a3007141905a769f4
1,195
py
Python
UMSLHackRestAPI/api/serializeres.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
1
2020-03-29T17:52:26.000Z
2020-03-29T17:52:26.000Z
UMSLHackRestAPI/api/serializeres.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
6
2021-03-19T00:01:21.000Z
2021-09-22T18:37:17.000Z
UMSLHackRestAPI/api/serializeres.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
null
null
null
from rest_framework import serializers from .utils import get_ml_predictions from .models import MLRequest, Prediction
37.34375
123
0.669456
ad51ca380d95e2a4ab5344077a584650b02823ba
160
py
Python
info/modules/passport/__init__.py
xnzgt/git_flask_news
2511927efd2ecd05f2e4312a896cbdfaf69da790
[ "MIT" ]
null
null
null
info/modules/passport/__init__.py
xnzgt/git_flask_news
2511927efd2ecd05f2e4312a896cbdfaf69da790
[ "MIT" ]
null
null
null
info/modules/passport/__init__.py
xnzgt/git_flask_news
2511927efd2ecd05f2e4312a896cbdfaf69da790
[ "MIT" ]
null
null
null
# from flask import Blueprint # url_prefix passport_blu = Blueprint("passport",__name__,url_prefix="/passport") from .views import *
22.857143
68
0.80625
ad53cf2904294aa05e0f2f946c5cc98c0ecb42f6
1,276
py
Python
sequential_bake_main.py
Mateusz-Grzelinski/cycles-bake-workaround
9bf68e4e646561c6b2de1303fe0f131dd95e4a9f
[ "MIT" ]
1
2021-06-04T11:39:22.000Z
2021-06-04T11:39:22.000Z
sequential_bake_main.py
Mateusz-Grzelinski/cycles-bake-workaround
9bf68e4e646561c6b2de1303fe0f131dd95e4a9f
[ "MIT" ]
null
null
null
sequential_bake_main.py
Mateusz-Grzelinski/cycles-bake-workaround
9bf68e4e646561c6b2de1303fe0f131dd95e4a9f
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import argparse import os import tempfile def main(): """ Calls instances of blender with script that will bake. """ args = parse() counter_file = tempfile.NamedTemporaryFile(mode='r') blender_script = "./bpy_bake.py" while True: try: os.system...
25.019608
97
0.568182
ad56a104d06bf367829a2691a45c3980f07d5ff2
664
py
Python
serve.py
uwmisl/purpledrop-driver
7744141c40801d367b6dd54e42eec1ca69320100
[ "MIT" ]
null
null
null
serve.py
uwmisl/purpledrop-driver
7744141c40801d367b6dd54e42eec1ca69320100
[ "MIT" ]
null
null
null
serve.py
uwmisl/purpledrop-driver
7744141c40801d367b6dd54e42eec1ca69320100
[ "MIT" ]
null
null
null
from gevent import monkey monkey.patch_all() import sys import purpledrop.server as server from purpledrop.purpledrop import list_purpledrop_devices, PurpleDropDevice, PurpleDropController devices = list_purpledrop_devices() if(len(devices) == 0): print("No PurpleDrop USB device found") sys.exit(1) elif len(d...
31.619048
106
0.762048
ad57972501ce548d43bea55cbadb56125e31eb1f
1,720
py
Python
freiner/storage/redis_cluster.py
djmattyg007/freiner
4acff72c55c37495862ea642a70b443da1278894
[ "MIT" ]
null
null
null
freiner/storage/redis_cluster.py
djmattyg007/freiner
4acff72c55c37495862ea642a70b443da1278894
[ "MIT" ]
null
null
null
freiner/storage/redis_cluster.py
djmattyg007/freiner
4acff72c55c37495862ea642a70b443da1278894
[ "MIT" ]
null
null
null
from typing import Any from urllib.parse import urlparse from rediscluster import RedisCluster from .redis import RedisStorage __all__ = [ "RedisClusterStorage", ]
30.175439
94
0.62907
ad5b0dcb1fddf5cb54d8253c41cd8dbc19845262
2,986
py
Python
test4/alien_dict_coderpad.py
MrCsabaToth/IK
713f91c28af7b4a964ba854ede9fec73bf0c4682
[ "Apache-2.0" ]
null
null
null
test4/alien_dict_coderpad.py
MrCsabaToth/IK
713f91c28af7b4a964ba854ede9fec73bf0c4682
[ "Apache-2.0" ]
null
null
null
test4/alien_dict_coderpad.py
MrCsabaToth/IK
713f91c28af7b4a964ba854ede9fec73bf0c4682
[ "Apache-2.0" ]
null
null
null
import pytest pytest.main()
27.145455
68
0.490288
ad5c12d313589ae7fb0ab9514bf6274dd4fef970
64
py
Python
KAMA1ShortOnly/custom_indicators/__init__.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
38
2021-09-18T15:33:28.000Z
2022-02-21T17:29:08.000Z
ott2butKAMA1/custom_indicators/__init__.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
4
2022-01-02T14:46:12.000Z
2022-02-16T18:39:41.000Z
KAMA1ShortOnly/custom_indicators/__init__.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
11
2021-10-19T06:21:43.000Z
2022-02-21T17:29:10.000Z
from .ott import ott from .var import var from .rma import rma
12.8
20
0.75
ad5c22c2a30ebb3dd262b8552db1d5d150acb5ab
500
py
Python
tests/test_invoke.py
avara1986/ardy
1942413f12e117b991278cada69f478474b9b94b
[ "Apache-2.0" ]
3
2017-07-07T06:39:36.000Z
2017-11-29T23:09:37.000Z
tests/test_invoke.py
avara1986/ardy
1942413f12e117b991278cada69f478474b9b94b
[ "Apache-2.0" ]
3
2017-07-06T20:23:30.000Z
2018-11-05T21:15:48.000Z
tests/test_invoke.py
avara1986/ardy
1942413f12e117b991278cada69f478474b9b94b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # python imports from __future__ import unicode_literals, print_function, absolute_import import os import unittest from ardy.core.invoke import Invoke TESTS_PATH = os.path.dirname(os.path.abspath(__file__)) if __name__ == '__main__': unittest.main()
19.230769
72
0.726
ad5c5f31d45895838d2f7af9abde703612dccc2f
4,415
py
Python
pysparkbasics/L02_DataFrame/S01_DataStructures/01_RowClassExp.py
pengfei99/PySparkCommonFunc
8238949f52a8e0d2c30c42d9f4002941f43db466
[ "MIT" ]
null
null
null
pysparkbasics/L02_DataFrame/S01_DataStructures/01_RowClassExp.py
pengfei99/PySparkCommonFunc
8238949f52a8e0d2c30c42d9f4002941f43db466
[ "MIT" ]
null
null
null
pysparkbasics/L02_DataFrame/S01_DataStructures/01_RowClassExp.py
pengfei99/PySparkCommonFunc
8238949f52a8e0d2c30c42d9f4002941f43db466
[ "MIT" ]
null
null
null
from pyspark import Row from pyspark.sql import SparkSession """ Row class introduction: Row class extends the tuple hence it takes variable number of arguments, Row() is used to create the row object. Once the row object created, we can retrieve the data from Row using index similar to tuple. Key Points of Row Cla...
36.791667
120
0.63624
ad5daf01c044c5fde437a87219ebf1f9aed1ff36
551
py
Python
icon_prometheus_exporter/config.py
ghalwash/icon-prometheus-exporter
57201f8ad2c0f30aab5b24c99a94e55f68cffb2f
[ "MIT" ]
null
null
null
icon_prometheus_exporter/config.py
ghalwash/icon-prometheus-exporter
57201f8ad2c0f30aab5b24c99a94e55f68cffb2f
[ "MIT" ]
2
2020-07-06T17:34:09.000Z
2020-07-06T17:34:10.000Z
icon_prometheus_exporter/config.py
ghalwash/icon-prometheus-exporter
57201f8ad2c0f30aab5b24c99a94e55f68cffb2f
[ "MIT" ]
2
2020-06-28T19:53:35.000Z
2020-09-17T21:25:43.000Z
discovery_node_rpc_url='https://ctz.solidwallet.io/api/v3' request_data = { "jsonrpc": "2.0", "id": 1234, "method": "icx_call", "params": { "to": "cx0000000000000000000000000000000000000000", "dataType": "call", "data": { ...
27.55
67
0.372051