hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
ac844765c4ce5c32dfa9aa2da4c0094d7fbd95aa
154
py
Python
convert.py
Resist4263/span-aste-1
13815a262638592506b445315d03df8db965947b
[ "Apache-2.0" ]
null
null
null
convert.py
Resist4263/span-aste-1
13815a262638592506b445315d03df8db965947b
[ "Apache-2.0" ]
null
null
null
convert.py
Resist4263/span-aste-1
13815a262638592506b445315d03df8db965947b
[ "Apache-2.0" ]
null
null
null
from gensim.scripts.glove2word2vec import glove2word2vec (count, dimensions) = glove2word2vec("dataset/glove.42B.300d.txt", "dataset/cropus/42B_w2v.txt")
51.333333
96
0.811688
0
0
0
0
0
0
0
0
56
0.363636
ac854af38b11787c1689126c56bfc2405c99c2c4
4,970
py
Python
src/pcbLibraryManager/libraries/librarySwitches.py
NiceCircuits/pcbLibraryManager
df83f24b5a558e0f7f72629d9ef7c82fcb9e6718
[ "CC0-1.0" ]
null
null
null
src/pcbLibraryManager/libraries/librarySwitches.py
NiceCircuits/pcbLibraryManager
df83f24b5a558e0f7f72629d9ef7c82fcb9e6718
[ "CC0-1.0" ]
1
2016-04-16T08:16:36.000Z
2016-04-16T08:16:36.000Z
src/pcbLibraryManager/libraries/librarySwitches.py
NiceCircuits/pcbLibraryManager
df83f24b5a558e0f7f72629d9ef7c82fcb9e6718
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jul 19 22:17:33 2015 @author: piotr at nicecircuits.com """ from libraryManager.library import libraryClass from footprints.footprintSmdDualRow import footprintSmdDualRow from libraryManager.part import part from libraryManager.symbol import symbol from libraryManager.symbol...
38.230769
88
0.597988
4,348
0.874849
0
0
0
0
0
0
723
0.145473
ac85b889248a7fe66df90411b1896a2b3cc25961
131
py
Python
Codeforces/problems/0799/A/799A.py
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
2
2021-07-27T10:46:47.000Z
2021-07-27T10:47:57.000Z
Codeforces/problems/0799/A/799A.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
Codeforces/problems/0799/A/799A.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
import math n, t, k, d = map(int, input().split()) x = math.ceil(n/k) * t if (d + t) < x: print("YES") else: print("NO")
13.1
38
0.503817
0
0
0
0
0
0
0
0
9
0.068702
ac8615af3d9f334ab252cb1f100f3ad3f649766c
3,159
py
Python
model.py
ganeshpc/flower-classification
aa836389f04b40a4368d4c1bf2c13cc44ee51af1
[ "MIT" ]
null
null
null
model.py
ganeshpc/flower-classification
aa836389f04b40a4368d4c1bf2c13cc44ee51af1
[ "MIT" ]
null
null
null
model.py
ganeshpc/flower-classification
aa836389f04b40a4368d4c1bf2c13cc44ee51af1
[ "MIT" ]
null
null
null
import keras from keras import layers from keras.layers import Dropout, Dense from keras.preprocessing.image import ImageDataGenerator import numpy as np import tensorflow_hub as hub import cv2 import pandas as p IMAGE_SHAPE = (224, 224) #(HEIGHT, WIDTH) TRAINING_DATA_DIRECTORY = '/content/drive/My Drive/Colab ...
24.679688
106
0.709085
0
0
0
0
0
0
0
0
478
0.151314
ac86900c935920ddf1e7d5f2d9ab4b10680baaec
12,421
py
Python
psg_utils/io/header/header_standardizers.py
perslev/sleep-utils
9f9edf67f4cac6d8361243b4153bfe6351314844
[ "MIT" ]
1
2022-03-17T10:37:17.000Z
2022-03-17T10:37:17.000Z
psg_utils/io/header/header_standardizers.py
perslev/sleep-utils
9f9edf67f4cac6d8361243b4153bfe6351314844
[ "MIT" ]
null
null
null
psg_utils/io/header/header_standardizers.py
perslev/sleep-utils
9f9edf67f4cac6d8361243b4153bfe6351314844
[ "MIT" ]
null
null
null
""" A set of functions for extracting header information from PSG objects Typically only used internally in from unet.io.header.header_extractors Each function takes some PSG or header-like object and returns a dictionary with at least the following keys: { 'n_channels': int, 'channel_names': list of strings,...
41.821549
120
0.646164
0
0
0
0
0
0
0
0
6,456
0.519765
ac8b1415e78b57c9f8a18413e55459164d6e3fa4
2,620
py
Python
py/hover/cfg.py
HomeSmartMesh/raspi
43ecd07c130144c72d7c7da677eab1980d555cc2
[ "MIT" ]
16
2019-12-19T09:23:05.000Z
2022-01-25T18:34:36.000Z
py/hover/cfg.py
HomeSmartMesh/raspi
43ecd07c130144c72d7c7da677eab1980d555cc2
[ "MIT" ]
4
2020-06-07T08:13:29.000Z
2021-09-04T09:34:37.000Z
py/hover/cfg.py
HomeSmartMesh/raspi
43ecd07c130144c72d7c7da677eab1980d555cc2
[ "MIT" ]
3
2020-08-28T13:00:30.000Z
2020-12-17T09:10:19.000Z
import sys,os import json import logging as log import socket from collections import OrderedDict import datetime from platform import system as system_name # Returns the system/OS name from subprocess import call as system_call # Execute a shell command def ping(host): """ Returns True if host (str) re...
34.473684
127
0.594656
0
0
0
0
0
0
0
0
975
0.372137
ac8b3ba743761efaa0df8e7bef2daa017b63a13e
27,156
py
Python
guillotina/schema/tests/test__bootstrapfields.py
diefenbach/guillotina
a8c7247fca8294752901f643b35c5ed1c5dee76d
[ "BSD-2-Clause" ]
null
null
null
guillotina/schema/tests/test__bootstrapfields.py
diefenbach/guillotina
a8c7247fca8294752901f643b35c5ed1c5dee76d
[ "BSD-2-Clause" ]
null
null
null
guillotina/schema/tests/test__bootstrapfields.py
diefenbach/guillotina
a8c7247fca8294752901f643b35c5ed1c5dee76d
[ "BSD-2-Clause" ]
null
null
null
############################################################################## # # Copyright (c) 2012 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
33.902622
79
0.647739
25,872
0.952718
0
0
0
0
0
0
1,663
0.061239
ac8b7c1d0b88747e30dd4b04da5a9e3ae9540f10
2,410
py
Python
project.py
pedroalvesfilho/rest_flask_render0
81b7e1e865d083718a60e5ec38a0ca8f889e14f8
[ "MIT" ]
null
null
null
project.py
pedroalvesfilho/rest_flask_render0
81b7e1e865d083718a60e5ec38a0ca8f889e14f8
[ "MIT" ]
null
null
null
project.py
pedroalvesfilho/rest_flask_render0
81b7e1e865d083718a60e5ec38a0ca8f889e14f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python from flask import Flask from flask import render_template, request app = Flask(__name__) """ # https://www.pluralsight.com/guides/manipulating-lists-dictionaries-python # A list is a mutable, ordered sequence of items. # list = ['a', 'b', 'c'] # list[0] # A dictionary is a mutable, unordered se...
33.472222
92
0.607469
0
0
0
0
643
0.266805
0
0
1,540
0.639004
ac8b7fc77b1b29feaa2f6078b42fbbccbd054d3d
1,971
py
Python
tests/bugs/core_1894_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_1894_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_1894_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_1894 # title: Circular dependencies between computed fields crashs the engine # decription: # Checked on LI-T4.0.0.419 after commit 19.10.2016 18:26 # https://github.com/FirebirdSQL/firebird/commit/6a00b3aee6ba17b2f80a5b00def728023e34...
24.036585
106
0.650431
0
0
0
0
185
0.093861
0
0
1,508
0.765094
3ba2a6cd1ef7931310fdf480d5b0bc1594f43a55
1,296
py
Python
lib/pykdlib/modules.py
bin601/pkyd
2b60c0ebd81e9e3e29f88ea60691d5c403df2160
[ "MIT" ]
1
2020-05-31T20:11:03.000Z
2020-05-31T20:11:03.000Z
lib/pykdlib/modules.py
bin601/pykd
2b60c0ebd81e9e3e29f88ea60691d5c403df2160
[ "MIT" ]
null
null
null
lib/pykdlib/modules.py
bin601/pykd
2b60c0ebd81e9e3e29f88ea60691d5c403df2160
[ "MIT" ]
1
2020-11-13T11:12:47.000Z
2020-11-13T11:12:47.000Z
# # Modules Info # import pykd moduleList = [] def reloadModules(): global moduleList for m in moduleList: globals()[ m.name().lower() ] = None if pykd.isKernelDebugging(): global nt nt = pykd.loadModule("nt") modules = pykd.typedV...
17.28
133
0.549383
0
0
0
0
0
0
0
0
177
0.136574
3ba3da7e08c14ac9df758e9e45e7cb972fc56eb2
139
py
Python
compiled/construct/repeat_eos_u4.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
4
2017-04-08T12:55:11.000Z
2020-12-05T21:09:31.000Z
compiled/construct/repeat_eos_u4.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
7
2018-04-23T01:30:33.000Z
2020-10-30T23:56:14.000Z
compiled/construct/repeat_eos_u4.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
6
2017-04-08T11:41:14.000Z
2020-10-30T22:47:31.000Z
from construct import * from construct.lib import * repeat_eos_u4 = Struct( 'numbers' / GreedyRange(Int32ul), ) _schema = repeat_eos_u4
15.444444
34
0.755396
0
0
0
0
0
0
0
0
9
0.064748
3ba72f829fd19f1024caa6c030fe4b09746f7a00
2,981
py
Python
Python/simpleencrypt/aes256.py
shreyasnayak/SimpleEncrypt
32223ee7a52baf186c53ac065cb61e9a32e4d20f
[ "MIT" ]
null
null
null
Python/simpleencrypt/aes256.py
shreyasnayak/SimpleEncrypt
32223ee7a52baf186c53ac065cb61e9a32e4d20f
[ "MIT" ]
null
null
null
Python/simpleencrypt/aes256.py
shreyasnayak/SimpleEncrypt
32223ee7a52baf186c53ac065cb61e9a32e4d20f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # aes256.py # This file is part of SimpleEncrypt project (https://github.com/shreyasnayak/SimpleEncrypt) # # Copyright Shreyas Nayak (c) 2021-2022 <[email protected]> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documen...
36.353659
92
0.739349
0
0
0
0
0
0
0
0
2,023
0.678631
3ba741e941c63d039ed8b54e0f39f036cca0c01c
1,735
py
Python
tests/widgets/test_error_dialog.py
sisoe24/NukeServerSocket
fbb95a609fcaf462aeb349597fae23dda67bf49b
[ "MIT" ]
12
2021-08-01T09:41:24.000Z
2021-12-03T02:53:10.000Z
tests/widgets/test_error_dialog.py
sisoe24/NukeServerSocket
fbb95a609fcaf462aeb349597fae23dda67bf49b
[ "MIT" ]
5
2021-09-11T16:51:01.000Z
2022-02-18T16:20:29.000Z
tests/widgets/test_error_dialog.py
sisoe24/NukeServerSocket
fbb95a609fcaf462aeb349597fae23dda67bf49b
[ "MIT" ]
2
2021-08-03T16:02:27.000Z
2021-08-06T07:51:54.000Z
"""Test module for the Error dialog widget.""" import os import logging import pytest from PySide2.QtGui import QClipboard from src.widgets import error_dialog from src.about import about_to_string @pytest.fixture() def error_log_path(_package): """Get the log directory path.""" yield os.path.join(_package...
27.539683
78
0.725648
0
0
546
0.314697
595
0.342939
0
0
706
0.406916
3ba791283dc54edfe51e5015658bbc050291ab63
3,854
py
Python
DataStructure/Table/HashTable.py
zhangsifan/ClassicAlgorighthms
b769d46727279cf6d8532819076a3fef496d05c7
[ "Apache-2.0" ]
27
2021-04-21T08:17:25.000Z
2021-06-30T07:04:49.000Z
DataStructure/Table/HashTable.py
zhangsifan/ClassicAlgorighthms
b769d46727279cf6d8532819076a3fef496d05c7
[ "Apache-2.0" ]
null
null
null
DataStructure/Table/HashTable.py
zhangsifan/ClassicAlgorighthms
b769d46727279cf6d8532819076a3fef496d05c7
[ "Apache-2.0" ]
1
2021-04-21T11:26:01.000Z
2021-04-21T11:26:01.000Z
# -*- coding: utf-8 -*-# ''' @Project : ClassicAlgorighthms @File : HashTable.py @USER : ZZZZZ @TIME : 2021/4/25 18:25 ''' class Node(): ''' 链地址法解决冲突的结点 ''' def __init__(self, value = None, next = None): self.val = value self.next = next class HashTable(): ...
23.644172
69
0.493254
4,575
0.879469
0
0
0
0
0
0
3,042
0.584775
3ba7a6554c459e41f8d769b9e6caea0153ae3a05
7,908
py
Python
ossdbtoolsservice/query/batch.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
33
2019-05-27T13:04:35.000Z
2022-03-17T13:33:05.000Z
ossdbtoolsservice/query/batch.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
31
2019-06-10T01:55:47.000Z
2022-03-09T07:27:49.000Z
ossdbtoolsservice/query/batch.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
25
2019-05-13T18:39:24.000Z
2021-11-16T03:07:33.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
38.38835
157
0.69221
5,822
0.736216
0
0
1,023
0.129363
0
0
1,213
0.153389
3ba806cb9a29badf3e7a080781be0d67fc995823
1,017
py
Python
seqlib.py
rvenkatesh99/sequence_alignment
107c262ef25ddbf025e054339bdd29efd728033a
[ "MIT" ]
null
null
null
seqlib.py
rvenkatesh99/sequence_alignment
107c262ef25ddbf025e054339bdd29efd728033a
[ "MIT" ]
null
null
null
seqlib.py
rvenkatesh99/sequence_alignment
107c262ef25ddbf025e054339bdd29efd728033a
[ "MIT" ]
null
null
null
import gzip def read_fasta(filename): name = None seqs = [] fp = None if filename.endswith('.gz'): fp = gzip.open(filename, 'rt') else: fp = open(filename) for line in fp.readlines(): line = line.rstrip() if line.startswith('>'): if len(seqs) > 0: seq = ''.join(seqs) yield(name, seq) na...
17.237288
43
0.573255
0
0
1,001
0.984267
0
0
0
0
39
0.038348
3ba896ffed28499b8d1d9a50c6e51c5241f414aa
2,413
py
Python
train.py
adamian98/LabelNoiseFlatMinimizers
2c7a60ea0b72f8ac3a0ce3f059526440385b4f60
[ "MIT" ]
7
2021-08-21T23:45:28.000Z
2021-12-13T13:39:38.000Z
train.py
adamian98/LabelNoiseFlatMinimizers
2c7a60ea0b72f8ac3a0ce3f059526440385b4f60
[ "MIT" ]
null
null
null
train.py
adamian98/LabelNoiseFlatMinimizers
2c7a60ea0b72f8ac3a0ce3f059526440385b4f60
[ "MIT" ]
null
null
null
import torch from pytorch_lightning import Trainer, seed_everything from pytorch_lightning.loggers import WandbLogger from pytorch_lightning.callbacks import LearningRateMonitor from data import CIFAR10Data from module import CIFAR10Module from callbacks import * from pathlib import Path import wandb from absl import...
30.544304
85
0.703274
0
0
0
0
0
0
0
0
394
0.163282
3ba9c357940e99f10b2151b5ccc410817c1d8e70
10,559
py
Python
test/lda/createGraphFeatures.py
bekou/graph-topic-model
7bd99aede6c22675f738166e690174ae0917b9eb
[ "MIT" ]
6
2020-01-17T13:23:35.000Z
2022-01-15T22:49:34.000Z
learn/lda/createGraphFeatures.py
bekou/graph-topic-model
7bd99aede6c22675f738166e690174ae0917b9eb
[ "MIT" ]
null
null
null
learn/lda/createGraphFeatures.py
bekou/graph-topic-model
7bd99aede6c22675f738166e690174ae0917b9eb
[ "MIT" ]
1
2019-05-26T15:57:35.000Z
2019-05-26T15:57:35.000Z
import networkx as nx import string import numpy as np import math def degree_centrality(G): centrality={} s=1.0 centrality=dict((n,d*s) for n,d in G.degree_iter()) return centrality def in_degree_centrality(G): if not G.is_directed(): raise nx.NetworkXError("in_degree_centrality() not...
43.632231
254
0.58604
0
0
0
0
0
0
0
0
2,008
0.19017
3bab2d583dbdb20d52e61488899227c07f7c4954
30,867
py
Python
blocks/bricks/sequence_generators.py
KIKOcaoyue/blocks
dfbeb400cfacfc1abe75e377cc03c1bf61b9c2fa
[ "BSD-3-Clause" ]
1,067
2015-05-16T23:39:15.000Z
2019-02-10T13:33:00.000Z
blocks/bricks/sequence_generators.py
loveisbasa/blocks
7f380deec8f810b390880e6a4de836115e6e478d
[ "BSD-3-Clause" ]
577
2015-05-16T18:52:53.000Z
2018-11-27T15:31:09.000Z
blocks/bricks/sequence_generators.py
loveisbasa/blocks
7f380deec8f810b390880e6a4de836115e6e478d
[ "BSD-3-Clause" ]
379
2015-05-21T03:24:04.000Z
2019-01-29T02:55:00.000Z
"""Sequence generation framework. Recurrent networks are often used to generate/model sequences. Examples include language modelling, machine translation, handwriting synthesis, etc.. A typical pattern in this context is that sequence elements are generated one often another, and every generated element is fed back in...
35.357388
78
0.655846
28,858
0.934914
0
0
14,598
0.472932
0
0
15,848
0.513429
3bad4e23a3beb6bf9c00280bce54c9d434b3e821
1,752
py
Python
src/plotComponents2D.py
ElsevierSoftwareX/SOFTX-D-21-00108
3ae995e7ef2fa2eb706a2f55390d8b53424082af
[ "MIT" ]
null
null
null
src/plotComponents2D.py
ElsevierSoftwareX/SOFTX-D-21-00108
3ae995e7ef2fa2eb706a2f55390d8b53424082af
[ "MIT" ]
null
null
null
src/plotComponents2D.py
ElsevierSoftwareX/SOFTX-D-21-00108
3ae995e7ef2fa2eb706a2f55390d8b53424082af
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np def plotComponents2D(X, y, labels, use_markers = False, ax=None, legends = None, tags = None): if X.shape[1] < 2: print('ERROR: X MUST HAVE AT LEAST 2 FEATURES/COLUMNS! SKIPPING plotComponents2D().') return # Gray shades can be given ...
36.5
114
0.4629
0
0
0
0
0
0
0
0
350
0.199772
3bafd74c087e7fcccb34aa701eb50c300c1ce2a1
5,541
py
Python
bin/sa_haveibeenpwned/aob_py3/cloudconnectlib/splunktacollectorlib/data_collection/ta_data_collector.py
hRun/SA-haveibeenpwned
2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb
[ "Apache-2.0" ]
2
2020-08-17T07:52:48.000Z
2020-12-18T16:39:32.000Z
bin/sa_haveibeenpwned/aob_py3/cloudconnectlib/splunktacollectorlib/data_collection/ta_data_collector.py
hRun/SA-haveibeenpwned
2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb
[ "Apache-2.0" ]
5
2020-12-15T23:40:14.000Z
2022-02-23T15:43:18.000Z
bin/sa_haveibeenpwned/aob_py3/cloudconnectlib/splunktacollectorlib/data_collection/ta_data_collector.py
hRun/SA-haveibeenpwned
2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb
[ "Apache-2.0" ]
4
2019-05-16T09:57:33.000Z
2021-07-14T12:31:21.000Z
#!/usr/bin/python from __future__ import absolute_import from builtins import object import threading import time from collections import namedtuple from . import ta_consts as c from ..common import log as stulog from ...splunktalib.common import util as scu evt_fmt = ("<stream><event><host>{0}</host>" ...
37.693878
80
0.497203
4,344
0.783974
0
0
0
0
0
0
857
0.154665
3bb2017aa37b51490a6ff0089cf9d21b31b7addf
220
py
Python
basic_assignment/32.py
1212091/python-learning
30fad66460daf73fd3961cf667ee25b91dee923d
[ "MIT" ]
null
null
null
basic_assignment/32.py
1212091/python-learning
30fad66460daf73fd3961cf667ee25b91dee923d
[ "MIT" ]
null
null
null
basic_assignment/32.py
1212091/python-learning
30fad66460daf73fd3961cf667ee25b91dee923d
[ "MIT" ]
null
null
null
class Circle: def __init__(self, radius): self.radius = radius def compute_area(self): return self.radius ** 2 * 3.14 circle = Circle(2) print("Area of circuit: " + str(circle.compute_area()))
20
55
0.631818
142
0.645455
0
0
0
0
0
0
19
0.086364
3bb360a4392cf829c811ffb8e087e7288ebd8630
502
py
Python
415.py
RafaelHuang87/Leet-Code-Practice
7754dcee38ffda18a5759113ef06d7becf4fe728
[ "MIT" ]
null
null
null
415.py
RafaelHuang87/Leet-Code-Practice
7754dcee38ffda18a5759113ef06d7becf4fe728
[ "MIT" ]
null
null
null
415.py
RafaelHuang87/Leet-Code-Practice
7754dcee38ffda18a5759113ef06d7becf4fe728
[ "MIT" ]
null
null
null
class Solution: def addStrings(self, num1: str, num2: str) -> str: i, j, result, carry = len(num1) - 1, len(num2) - 1, '', 0 while i >= 0 or j >= 0: if i >= 0: carry += ord(num1[i]) - ord('0') if j >= 0: carry += ord(num2[j]) - ord('0') ...
31.375
65
0.376494
501
0.998008
0
0
0
0
0
0
14
0.027888
3bb3f6ef40737ea90a9f45f3effca880da0d4227
154
py
Python
lambdata-mkhalil/my_script.py
mkhalil7625/lambdata-mkhalil
87f74166a3ae4f4cc92733cb5fc0c15e3b32f565
[ "MIT" ]
null
null
null
lambdata-mkhalil/my_script.py
mkhalil7625/lambdata-mkhalil
87f74166a3ae4f4cc92733cb5fc0c15e3b32f565
[ "MIT" ]
null
null
null
lambdata-mkhalil/my_script.py
mkhalil7625/lambdata-mkhalil
87f74166a3ae4f4cc92733cb5fc0c15e3b32f565
[ "MIT" ]
null
null
null
import pandas as pd from my_mod import enlarge print("Hello!") df = pd.DataFrame({"a":[1,2,3], "b":[4,5,6]}) print(df.head()) x = 11 print(enlarge(x))
14
45
0.62987
0
0
0
0
0
0
0
0
14
0.090909
3bb55e28e639f9add169bf9d74da89f4b5663f84
885
py
Python
exploit_mutillidae.py
binarioGH/minihacktools
664e72ccc54089baa3b4d2ddc28bdcddbfdd1833
[ "MIT" ]
null
null
null
exploit_mutillidae.py
binarioGH/minihacktools
664e72ccc54089baa3b4d2ddc28bdcddbfdd1833
[ "MIT" ]
null
null
null
exploit_mutillidae.py
binarioGH/minihacktools
664e72ccc54089baa3b4d2ddc28bdcddbfdd1833
[ "MIT" ]
null
null
null
#-*-coding: utf-8-*- from requests import session from bs4 import BeautifulSoup #Aqui pones la ip de tu maquina. host = "192.168.1.167" #Aqui pones la ruta de el dns-lookup.php route = "/mutillidae/index.php?page=dns-lookup.php" with session() as s: cmd = '' while cmd != 'exit': cmd = input(">>") payload = "|...
32.777778
87
0.692655
0
0
0
0
0
0
0
0
514
0.580791
3bb5cf6df03cde1b36d438f6ec362fdce3a55254
101
py
Python
submissions/abc085/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/abc085/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/abc085/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
# sys.stdin.readline() import sys input = sys.stdin.readline print(input().replace('2017', '2018'))
16.833333
38
0.70297
0
0
0
0
0
0
0
0
34
0.336634
3bb6a612c41a6fc405f13a76e25386f09fd4787a
4,069
py
Python
rsmtool/utils/files.py
MarcoGorelli/rsmtool
8759f5bec09a8ba0dd2ca16f6af8ce100d5ea6a0
[ "Apache-2.0" ]
null
null
null
rsmtool/utils/files.py
MarcoGorelli/rsmtool
8759f5bec09a8ba0dd2ca16f6af8ce100d5ea6a0
[ "Apache-2.0" ]
null
null
null
rsmtool/utils/files.py
MarcoGorelli/rsmtool
8759f5bec09a8ba0dd2ca16f6af8ce100d5ea6a0
[ "Apache-2.0" ]
null
null
null
""" Utility classes and functions for RSMTool file management. :author: Jeremy Biggs ([email protected]) :author: Anastassia Loukina ([email protected]) :author: Nitin Madnani ([email protected]) :organization: ETS """ import json import re from glob import glob from pathlib import Path from os.path import join from .c...
29.70073
111
0.616368
0
0
0
0
0
0
0
0
2,550
0.62669
3bbaa7105c8bdb5d9e446a53505849bc8d258fd0
2,479
py
Python
src/aiotube/playlist.py
jnsougata/AioTube
719bc52e442d06f922ada65da7650cfb92a0f237
[ "MIT" ]
4
2021-10-02T07:01:22.000Z
2021-12-30T08:27:36.000Z
src/aiotube/playlist.py
jnsougata/AioTube
719bc52e442d06f922ada65da7650cfb92a0f237
[ "MIT" ]
2
2021-11-18T20:21:39.000Z
2021-12-27T17:12:17.000Z
src/aiotube/playlist.py
jnsougata/AioTube
719bc52e442d06f922ada65da7650cfb92a0f237
[ "MIT" ]
3
2021-10-01T03:21:33.000Z
2021-12-21T20:49:30.000Z
from ._threads import _Thread from .utils import filter from .videobulk import _VideoBulk from ._http import _get_playlist_data from ._rgxs import _PlaylistPatterns as rgx from typing import List, Optional, Dict, Any class Playlist: __HEAD = 'https://www.youtube.com/playlist?list=' def __init__(self, playli...
27.853933
90
0.592981
2,251
0.908027
0
0
1,750
0.70593
0
0
668
0.269463
3bbaf9656983dcec4f85d013784da058e74250a8
160
py
Python
actions/sleep.py
bhaveshAn/Lucy
9ea97184c725a10a041af64cad0ef4b533be42ad
[ "MIT" ]
1
2018-04-13T08:26:27.000Z
2018-04-13T08:26:27.000Z
actions/sleep.py
bhaveshAn/Lucy
9ea97184c725a10a041af64cad0ef4b533be42ad
[ "MIT" ]
null
null
null
actions/sleep.py
bhaveshAn/Lucy
9ea97184c725a10a041af64cad0ef4b533be42ad
[ "MIT" ]
null
null
null
import random def go_to_sleep(text): replies = ['See you later!', 'Just call my name and I\'ll be there!'] return (random.choice(replies)) quit()
20
73
0.65
0
0
0
0
0
0
0
0
55
0.34375
3bbc9e86460d1c4a98d44711f0b944fd26bd0864
441
py
Python
django_sso_app/core/api/utils.py
paiuolo/django-sso-app
75b96c669dc0b176dc77e08f018a3e97d259f636
[ "MIT" ]
1
2021-11-16T15:16:08.000Z
2021-11-16T15:16:08.000Z
django_sso_app/core/api/utils.py
paiuolo/django-sso-app
75b96c669dc0b176dc77e08f018a3e97d259f636
[ "MIT" ]
null
null
null
django_sso_app/core/api/utils.py
paiuolo/django-sso-app
75b96c669dc0b176dc77e08f018a3e97d259f636
[ "MIT" ]
null
null
null
import logging from django.contrib.messages import get_messages from django.utils.encoding import force_str logger = logging.getLogger('django_sso_app') def get_request_messages_string(request): """ Serializes django messages :param request: :return: """ storage = get_messages(request) ...
20.045455
48
0.709751
0
0
0
0
0
0
0
0
96
0.217687
3bbcc2fb4051ff428b3a3b66b12c0e4e0235c79c
1,092
py
Python
download_stock_data.py
dabideee13/Price-Pattern-Prediction
632d961fc08777adab8eeb7ecbf16ac7cc71a3a7
[ "MIT" ]
null
null
null
download_stock_data.py
dabideee13/Price-Pattern-Prediction
632d961fc08777adab8eeb7ecbf16ac7cc71a3a7
[ "MIT" ]
null
null
null
download_stock_data.py
dabideee13/Price-Pattern-Prediction
632d961fc08777adab8eeb7ecbf16ac7cc71a3a7
[ "MIT" ]
null
null
null
#!/opt/anaconda3/bin/python # -*- coding: utf-8 -*- """ Get Stock Data """ import time import pandas as pd import yfinance as yf if __name__ == '__main__': # Path to file # TODO: make directory if directory doesn't exist f_file = "/Users/d.e.magno/Datasets/raw_stocks_new.csv" # TODO: need to ...
24.266667
77
0.598901
0
0
0
0
0
0
0
0
358
0.327839
3bbd5cc24a379d3da78746ccf10468524d2749f7
2,421
py
Python
_int_tools.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
_int_tools.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
_int_tools.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
""" This module contains functions related to integer formatting and math. """ from functools import reduce from itertools import count from math import gcd, prod # ================ ARRAY FORMATTING FUNCTIONS ================ def str_array_to_int(intarray): return int(''.join(intarray)) def int_array_to_int(i...
23.278846
79
0.534077
0
0
567
0.234104
0
0
0
0
706
0.291495
3bbf01d5cb0102d02a8a8a3dba1f25da4c1520b3
2,260
py
Python
source/stats/lstm_model_builder.py
dangtunguyen/nids
a92b56a5ac29cc1482ae29374eef02bb7654785f
[ "MIT" ]
2
2019-11-22T19:56:50.000Z
2020-12-15T02:43:52.000Z
source/stats/lstm_model_builder.py
dangtunguyen/nids
a92b56a5ac29cc1482ae29374eef02bb7654785f
[ "MIT" ]
null
null
null
source/stats/lstm_model_builder.py
dangtunguyen/nids
a92b56a5ac29cc1482ae29374eef02bb7654785f
[ "MIT" ]
2
2020-12-15T02:43:54.000Z
2021-11-05T03:19:59.000Z
#!/usr/bin/env python from keras.models import Sequential from keras.layers import Dense, Activation, Dropout, TimeDistributed, Flatten from keras.layers import LSTM ''' Reference: https://keras.io/getting-started/sequential-model-guide/ A stateful recurrent model is one for which the internal states (memories) obta...
48.085106
161
0.712389
1,737
0.768584
0
0
0
0
0
0
750
0.331858
3bc0be85bb851d619749be911d22c015dc81cc08
26,696
py
Python
pyinstagram/base.py
alessandrocucci/PyInstagram
cd8f30b8c470a8cdcd8da801af897e4d14f7a677
[ "MIT" ]
1
2019-05-03T17:46:02.000Z
2019-05-03T17:46:02.000Z
pyinstagram/base.py
alessandrocucci/PyInstagram
cd8f30b8c470a8cdcd8da801af897e4d14f7a677
[ "MIT" ]
1
2021-06-01T21:51:23.000Z
2021-06-01T21:51:23.000Z
pyinstagram/base.py
alessandrocucci/PyInstagram
cd8f30b8c470a8cdcd8da801af897e4d14f7a677
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random from datetime import datetime from operator import itemgetter import requests import time from pyinstagram.model import Media from .exceptions import OAuthException, PyInstagramException from .oauth import OAuth from .constants import API_URL from .utils import DESAdapter class...
44.271973
661
0.523599
26,411
0.987992
0
0
342
0.012794
0
0
16,960
0.634446
3bc1971c02e3a51d7591b4d8543cd3bec3e278e6
1,483
py
Python
csv_readers/stay_points_csv_reader.py
s0lver/stm-creator
b058185ca028abd1902edbb35a52d3565b06f8b0
[ "Apache-2.0" ]
null
null
null
csv_readers/stay_points_csv_reader.py
s0lver/stm-creator
b058185ca028abd1902edbb35a52d3565b06f8b0
[ "Apache-2.0" ]
null
null
null
csv_readers/stay_points_csv_reader.py
s0lver/stm-creator
b058185ca028abd1902edbb35a52d3565b06f8b0
[ "Apache-2.0" ]
null
null
null
import csv from typing import List, Iterator, Dict from entities.StayPoint import StayPoint def read(file_path: str) -> List[StayPoint]: """ Returns a list of StayPoint read from the specified file path :param file_path: The path of file to read :return: A list of StayPoint """ file = open(fi...
29.66
75
0.681052
0
0
459
0.309508
0
0
0
0
523
0.352664
3bc47ccda883fce926fb879e2f171e425ac7191d
1,959
py
Python
login/models.py
zcw576020095/netsysyconfig_platform
d47be2c5b3418d59a226cb9e135972160e51df00
[ "Unlicense" ]
1
2022-03-25T07:49:10.000Z
2022-03-25T07:49:10.000Z
login/models.py
zcw576020095/netsysyconfig_platform
d47be2c5b3418d59a226cb9e135972160e51df00
[ "Unlicense" ]
null
null
null
login/models.py
zcw576020095/netsysyconfig_platform
d47be2c5b3418d59a226cb9e135972160e51df00
[ "Unlicense" ]
null
null
null
from django.db import models # Create your models here. class User(models.Model): gender = ( ('male',"男"), ('female',"女") ) name = models.CharField(max_length=128,unique=True) password = models.CharField(max_length=256) email = models.EmailField(unique=True) sex = models.CharF...
27.591549
78
0.669219
1,966
0.952058
0
0
0
0
0
0
353
0.170944
3bc52fc59dc21473a03e193fd04c98996f1d2a1e
2,083
py
Python
DataAnalysis.py
andairka/Simple-default-Backpropagation-ANN
995de1471e2b132af721b2babbec034f29228640
[ "MIT" ]
null
null
null
DataAnalysis.py
andairka/Simple-default-Backpropagation-ANN
995de1471e2b132af721b2babbec034f29228640
[ "MIT" ]
null
null
null
DataAnalysis.py
andairka/Simple-default-Backpropagation-ANN
995de1471e2b132af721b2babbec034f29228640
[ "MIT" ]
null
null
null
import ImportTitanicData import DataPreparation # analiza danych przed preparacją danych class DataAnaliysisBefore(): def showTrain(self): importData = ImportTitanicData.DataImport() train = importData.importTrain() return train def shapeTrain(self): return self.showTrain().sha...
26.367089
63
0.68987
1,311
0.628476
0
0
0
0
0
0
679
0.325503
3bc5e3ab47f6373dad23233f3b3391f39ba91b96
10,341
py
Python
tests/api/test_predict.py
mldock/mldock
314b733e4f0102321727f8b145fc276486ecad85
[ "Apache-2.0" ]
2
2021-07-12T13:51:21.000Z
2021-07-19T08:40:02.000Z
tests/api/test_predict.py
mldock/mldock
314b733e4f0102321727f8b145fc276486ecad85
[ "Apache-2.0" ]
41
2021-06-28T11:05:20.000Z
2022-03-13T13:48:50.000Z
tests/api/test_predict.py
mldock/mldock
314b733e4f0102321727f8b145fc276486ecad85
[ "Apache-2.0" ]
1
2021-07-17T19:07:06.000Z
2021-07-17T19:07:06.000Z
"""Test Predict API calls""" import io from PIL import Image from dataclasses import dataclass import tempfile from pathlib import Path import pytest from mock import patch from mldock.api.predict import send_image_jpeg, send_csv, send_json, handle_prediction import responses import requests @pytest.fixture def image...
35.782007
86
0.579634
9,784
0.946137
0
0
9,718
0.939754
0
0
2,697
0.260806
3bc608810561bbe247f5ed3cfef52e4be93e7faa
2,081
py
Python
neutron/tests/tempest/api/test_qos_negative.py
mail2nsrajesh/neutron
352afb37afcf4952f03436b25618d0066c51f3f1
[ "Apache-2.0" ]
null
null
null
neutron/tests/tempest/api/test_qos_negative.py
mail2nsrajesh/neutron
352afb37afcf4952f03436b25618d0066c51f3f1
[ "Apache-2.0" ]
null
null
null
neutron/tests/tempest/api/test_qos_negative.py
mail2nsrajesh/neutron
352afb37afcf4952f03436b25618d0066c51f3f1
[ "Apache-2.0" ]
null
null
null
# 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 # d...
41.62
78
0.695819
1,119
0.537722
0
0
1,013
0.486785
0
0
783
0.376261
3bc6222a69419d7c3721ce7c39a656221c86ab89
1,105
py
Python
src/main/python/storytext/lib/storytext/javageftoolkit/__init__.py
emilybache/texttest-runner
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
[ "MIT" ]
null
null
null
src/main/python/storytext/lib/storytext/javageftoolkit/__init__.py
emilybache/texttest-runner
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
[ "MIT" ]
null
null
null
src/main/python/storytext/lib/storytext/javageftoolkit/__init__.py
emilybache/texttest-runner
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
[ "MIT" ]
null
null
null
""" Don't load any Eclipse stuff at global scope, needs to be importable previous to Eclipse starting """ from storytext import javarcptoolkit import sys class ScriptEngine(javarcptoolkit.ScriptEngine): def createReplayer(self, universalLogging=False, **kw): return UseCaseReplayer(self.uiMap, universalLo...
38.103448
105
0.761086
943
0.853394
0
0
0
0
0
0
140
0.126697
3bc648d7577a48d53c343d95dc1ac69b209de7c4
11,380
py
Python
subscribe/models.py
jonge-democraten/dyonisos
bebc5b28761bd5e036e4e6e219b5474d901026c3
[ "MIT" ]
null
null
null
subscribe/models.py
jonge-democraten/dyonisos
bebc5b28761bd5e036e4e6e219b5474d901026c3
[ "MIT" ]
10
2016-10-31T21:14:06.000Z
2021-01-07T22:34:42.000Z
subscribe/models.py
jonge-democraten/dyonisos
bebc5b28761bd5e036e4e6e219b5474d901026c3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2011,2014 Floor Terra <[email protected]> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS ...
37.682119
228
0.644991
9,714
0.853603
0
0
0
0
0
0
2,536
0.222847
3bc7d40a1ff3f95ca6bbd675bada6d5806be3718
7,661
py
Python
vumi/worker.py
hnec-vr/vumi
b9c1100176a46774b502d5a0db225930a2d298c7
[ "BSD-3-Clause" ]
1
2016-07-27T17:13:32.000Z
2016-07-27T17:13:32.000Z
vumi/worker.py
TouK/vumi
6d250c7039fa1d82b01c5b68722aa8a6a94580b2
[ "BSD-3-Clause" ]
null
null
null
vumi/worker.py
TouK/vumi
6d250c7039fa1d82b01c5b68722aa8a6a94580b2
[ "BSD-3-Clause" ]
null
null
null
# -*- test-case-name: vumi.tests.test_worker -*- """Basic tools for workers that handle TransportMessages.""" import time import os import socket from twisted.internet.defer import ( inlineCallbacks, succeed, maybeDeferred, gatherResults) from twisted.python import log from vumi.service import Worker from vumi....
35.967136
79
0.645477
6,862
0.895706
851
0.111082
872
0.113823
0
0
1,997
0.260671
3bc950ff5c221db7b60343065a9a70cf058a7e1a
1,204
py
Python
tt/ksl/setup.py
aiboyko/ttpy
8fda9d29e27e4f9f68ffba5cc1e16b3020eb131f
[ "MIT" ]
2
2021-04-02T17:42:03.000Z
2021-11-17T11:30:42.000Z
tt/ksl/setup.py
qbit-/ttpy
596b1c9fe6ce5f0ba66d801ac88a1147204cec2f
[ "MIT" ]
null
null
null
tt/ksl/setup.py
qbit-/ttpy
596b1c9fe6ce5f0ba66d801ac88a1147204cec2f
[ "MIT" ]
1
2021-01-10T07:02:09.000Z
2021-01-10T07:02:09.000Z
# setup.py # This script will build the main subpackages # See LICENSE for details from __future__ import print_function, absolute_import from numpy.distutils.misc_util import Configuration from os.path import join TTFORT_DIR = '../tt-fort' EXPM_DIR = '../tt-fort/expm' EXPOKIT_SRC = [ 'explib.f90', 'n...
19.737705
59
0.58887
0
0
0
0
0
0
0
0
364
0.302326
3bcd4cf0614ab6f7c88bcffd7170ce176a5a3489
305
py
Python
tests/text_processors/test_json_text_processor.py
lyteloli/NekoGram
f077471000b40a74e0eb4e98dfb570b5e34d23ab
[ "MIT" ]
8
2020-08-21T07:43:52.000Z
2022-01-27T06:48:01.000Z
tests/text_processors/test_json_text_processor.py
lyteloli/NekoGram
f077471000b40a74e0eb4e98dfb570b5e34d23ab
[ "MIT" ]
null
null
null
tests/text_processors/test_json_text_processor.py
lyteloli/NekoGram
f077471000b40a74e0eb4e98dfb570b5e34d23ab
[ "MIT" ]
1
2022-01-27T06:48:02.000Z
2022-01-27T06:48:02.000Z
from NekoGram import Neko, Bot import json def test_json_text_processor(): neko = Neko(bot=Bot(token='0:0', validate_token=False), validate_text_names=False) raw_json = '{"x": {"text": "hello"} }' neko.add_texts(texts=raw_json, lang='en') assert neko.texts['en'] == json.loads(raw_json)
30.5
86
0.688525
0
0
0
0
0
0
0
0
40
0.131148
3bcdd1ca315307c12c5399ab4a8df2ed64ad6708
7,960
py
Python
itdagene/app/meetings/migrations/0001_initial.py
itdagene-ntnu/itdagene
b972cd3d803debccebbc33641397a39834b8d69a
[ "MIT" ]
9
2018-10-17T20:58:09.000Z
2021-12-16T16:16:45.000Z
itdagene/app/meetings/migrations/0001_initial.py
itdagene-ntnu/itdagene
b972cd3d803debccebbc33641397a39834b8d69a
[ "MIT" ]
177
2018-10-27T18:15:56.000Z
2022-03-28T04:29:06.000Z
itdagene/app/meetings/migrations/0001_initial.py
itdagene-ntnu/itdagene
b972cd3d803debccebbc33641397a39834b8d69a
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)] operations = [ migrations.CreateModel( name="Meeting", ...
35.695067
87
0.358417
7,842
0.985176
0
0
0
0
0
0
848
0.106533
3bcdfa047a911d02d5d42da304bd32569f2f1c95
2,247
py
Python
models/mail.py
Huy-Ngo/temp-mail
6269f1f405cd7447ea0d45799ee1c4a0623d23a6
[ "MIT" ]
3
2022-01-18T17:15:17.000Z
2022-01-22T09:52:19.000Z
models/mail.py
Huy-Ngo/temp-mail
6269f1f405cd7447ea0d45799ee1c4a0623d23a6
[ "MIT" ]
28
2020-06-18T08:53:32.000Z
2020-08-07T02:33:47.000Z
models/mail.py
Huy-Ngo/temp-mail
6269f1f405cd7447ea0d45799ee1c4a0623d23a6
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Ngô Ngọc Đức Huy from db import db class MailModel(db.Model): """Model for representing and storing mails.""" id = db.Column(db.Integer, primary_key=True) sender = db.Column(db.String(254)) recipient = db.Column(db.String(254), db.ForeignKey('user_mode...
28.807692
68
0.549622
2,185
0.969818
0
0
321
0.142477
0
0
437
0.193964
3bce9c159c555e02a3e9d2befee3b2b0dfb1fa84
1,681
py
Python
jesse/indicators/bollinger_bands.py
leaiannotti/jesse
564c54845774891ff3b5a8d3c02cc7cea890ac54
[ "MIT" ]
5
2021-05-21T07:39:16.000Z
2021-11-17T11:08:41.000Z
jesse/indicators/bollinger_bands.py
leaiannotti/jesse
564c54845774891ff3b5a8d3c02cc7cea890ac54
[ "MIT" ]
null
null
null
jesse/indicators/bollinger_bands.py
leaiannotti/jesse
564c54845774891ff3b5a8d3c02cc7cea890ac54
[ "MIT" ]
2
2021-05-21T10:14:53.000Z
2021-05-27T04:39:51.000Z
from collections import namedtuple import numpy as np import talib from jesse.indicators.ma import ma from jesse.indicators.mean_ad import mean_ad from jesse.indicators.median_ad import median_ad from jesse.helpers import get_candle_source, slice_candles BollingerBands = namedtuple('BollingerBands', ['upperband', 'm...
32.960784
129
0.684117
0
0
0
0
0
0
0
0
467
0.277811
3bcf9e27b60f3e382de5df8d52f14b8d023fe9df
3,050
py
Python
coveralls_check.py
jayvdb/coveralls-check
ca3b0428b90fe3c6d22cad3a122dedc2c46d12e4
[ "MIT" ]
null
null
null
coveralls_check.py
jayvdb/coveralls-check
ca3b0428b90fe3c6d22cad3a122dedc2c46d12e4
[ "MIT" ]
2
2018-07-11T07:09:25.000Z
2022-03-10T12:18:18.000Z
coveralls_check.py
jayvdb/coveralls-check
ca3b0428b90fe3c6d22cad3a122dedc2c46d12e4
[ "MIT" ]
1
2020-01-10T05:27:46.000Z
2020-01-10T05:27:46.000Z
from __future__ import print_function import logging from argparse import ArgumentParser import backoff import requests import sys POLL_URL = 'https://coveralls.io/builds/{}.json' DONE_URL = 'https://coveralls.io/webhook' def setup_logging(): logger = logging.getLogger('backoff') logger.addHandler(logging....
30.5
80
0.585902
0
0
0
0
0
0
0
0
798
0.261639
3bd21db03fbff68669d9cf01fd41194e607124e2
1,399
py
Python
ScienceCruiseDataManagement/data_storage_management/utils.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
6
2017-10-06T09:18:04.000Z
2022-02-10T08:54:56.000Z
ScienceCruiseDataManagement/data_storage_management/utils.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
12
2020-02-27T09:24:50.000Z
2021-09-22T17:39:55.000Z
ScienceCruiseDataManagement/data_storage_management/utils.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
1
2017-10-16T13:49:33.000Z
2017-10-16T13:49:33.000Z
import subprocess import glob import os import datetime # This file is part of https://github.com/cpina/science-cruise-data-management # # This project was programmed in a hurry without any prior Django experience, # while circumnavigating the Antarctic on the ACE expedition, without proper # Internet access, with 150...
31.088889
83
0.68549
0
0
0
0
0
0
0
0
701
0.501072
3bd3be55e7aed0ec74f1031095e8ca063b4aa8fd
515
py
Python
Applied Project/Web/app/config.py
rebeccabernie/CurrencyAnalyser
1f57e5b5fee854912c205cb98f57c980027f0a03
[ "MIT" ]
27
2018-06-22T18:49:52.000Z
2022-02-18T07:58:48.000Z
Applied Project/Web/app/config.py
taraokelly/CurrencyAnalyser
1f57e5b5fee854912c205cb98f57c980027f0a03
[ "MIT" ]
10
2020-01-28T22:24:22.000Z
2022-02-10T13:11:32.000Z
Applied Project/Web/app/config.py
taraokelly/CurrencyAnalyser
1f57e5b5fee854912c205cb98f57c980027f0a03
[ "MIT" ]
6
2018-05-02T16:43:45.000Z
2020-11-17T18:00:36.000Z
""" Global Flask Application Settings """ import os from app import app class Config(object): DEBUG = False TESTING = False PRODUCTION = False class Development(Config): MODE = 'Development' DEBUG = True class Production(Config): MODE = 'Production' DEBUG = False PRODUCTION = True...
19.074074
69
0.700971
239
0.464078
0
0
0
0
0
0
177
0.343689
3bd3e56f8e3f7640af1c0c1de7776e8679289263
103
py
Python
Exercise-1/Q4_reverse.py
abhay-lal/18CSC207J-APP
79a955a99837e6d41c89cb1a9e84eb0230c0fa7b
[ "MIT" ]
null
null
null
Exercise-1/Q4_reverse.py
abhay-lal/18CSC207J-APP
79a955a99837e6d41c89cb1a9e84eb0230c0fa7b
[ "MIT" ]
null
null
null
Exercise-1/Q4_reverse.py
abhay-lal/18CSC207J-APP
79a955a99837e6d41c89cb1a9e84eb0230c0fa7b
[ "MIT" ]
null
null
null
word = input('Enter a word') len = len(word) for i in range(len-1, -1, -1): print(word[i], end='')
20.6
30
0.572816
0
0
0
0
0
0
0
0
16
0.15534
3bd475c386fa8a4a56cad45921819b936313ea64
162
py
Python
exercise/6.py
zhaoshengshi/practicepython-exercise
3e123eb602aaf1c9638c7a2199607146e860b96c
[ "Apache-2.0" ]
null
null
null
exercise/6.py
zhaoshengshi/practicepython-exercise
3e123eb602aaf1c9638c7a2199607146e860b96c
[ "Apache-2.0" ]
null
null
null
exercise/6.py
zhaoshengshi/practicepython-exercise
3e123eb602aaf1c9638c7a2199607146e860b96c
[ "Apache-2.0" ]
null
null
null
ss = input('Please give me a string: ') if ss == ss[::-1]: print("Yes, %s is a palindrome." % ss) else: print('Nevermind, %s isn\'t a palindrome.' % ss)
23.142857
52
0.574074
0
0
0
0
0
0
0
0
89
0.549383
3bd4ef311d3ceb65a757cf2dcd1641a9fa9f94c6
5,420
py
Python
app/v2/resources/users.py
fabischolasi/fast-food-fast-v1
492f0bdaaeadf12089a200a9b64bdfc22cd03d0c
[ "MIT" ]
1
2019-10-16T07:56:31.000Z
2019-10-16T07:56:31.000Z
app/v2/resources/users.py
fabzer0/FastFoodAPI
492f0bdaaeadf12089a200a9b64bdfc22cd03d0c
[ "MIT" ]
null
null
null
app/v2/resources/users.py
fabzer0/FastFoodAPI
492f0bdaaeadf12089a200a9b64bdfc22cd03d0c
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify, make_response from flask_restful import Resource, Api, reqparse, inputs from ..models.decorators import admin_required from ..models.models import UserModel import os class SignUp(Resource): def __init__(self): """ Validates both json and form-data input ...
38.992806
132
0.587823
4,921
0.907934
0
0
646
0.119188
0
0
1,238
0.228413
3bd6298a19903f15f7e907c194b8869777800558
21,160
py
Python
model_blocks/tests.py
aptivate/django-model-blocks
5057ed57887683d777f04c95d67d268d21a18c02
[ "BSD-3-Clause" ]
6
2015-01-20T08:43:44.000Z
2020-08-13T01:57:10.000Z
model_blocks/tests.py
techdragon/django-model-blocks
8175d7353d792cb720b4ac356f4538888bf7747c
[ "BSD-3-Clause" ]
1
2016-10-16T17:35:07.000Z
2016-10-16T17:35:07.000Z
model_blocks/tests.py
techdragon/django-model-blocks
8175d7353d792cb720b4ac356f4538888bf7747c
[ "BSD-3-Clause" ]
null
null
null
""" Test the model blocks """ import datetime from django.test import TestCase from mock import Mock from django.db.models import Model, IntegerField, DateTimeField, CharField from django.template import Context, Template, TemplateSyntaxError from example_project.pepulator_factory.models import Pepulator, Distribut...
44.453782
304
0.578544
20,680
0.977316
0
0
0
0
0
0
9,265
0.437854
3bd65ecba92bc72c9d3f44c46609ce82742a80af
1,794
py
Python
lit_nlp/examples/toxicity_demo.py
ghostian/lit
891673ef120391f4682be4478881fdb408241f82
[ "Apache-2.0" ]
null
null
null
lit_nlp/examples/toxicity_demo.py
ghostian/lit
891673ef120391f4682be4478881fdb408241f82
[ "Apache-2.0" ]
null
null
null
lit_nlp/examples/toxicity_demo.py
ghostian/lit
891673ef120391f4682be4478881fdb408241f82
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 r"""LIT Demo for a Toxicity model. To run locally: python -m lit_nlp.examples.toxicity_demo --port=5432 Once you see the ASCII-art LIT logo, navigate to localhost:5432 to access the demo UI. """ from absl import app from absl import flags from absl import logging from lit_nlp import dev_server ...
30.931034
137
0.755295
0
0
0
0
0
0
0
0
757
0.421962
3bd7deac97fd990b363d6a3492c5b97386f321f3
2,669
py
Python
portifolio_analysis.py
lucasHashi/app-calculate-stock-portifolio-division
1e2d852215db29f9768bf509d2f52bdec5988ad4
[ "MIT" ]
null
null
null
portifolio_analysis.py
lucasHashi/app-calculate-stock-portifolio-division
1e2d852215db29f9768bf509d2f52bdec5988ad4
[ "MIT" ]
null
null
null
portifolio_analysis.py
lucasHashi/app-calculate-stock-portifolio-division
1e2d852215db29f9768bf509d2f52bdec5988ad4
[ "MIT" ]
null
null
null
import pandas as pd import streamlit as st import plotly.graph_objects as go import plotly.express as px import plotly.io as pio pio.templates.default = "plotly_white" def load_portifolio_analysis(df_stocks_and_grades): st.write('# Portifolio analysis') st.write('## Investments by sector and sub sector') ...
32.54878
160
0.671787
0
0
0
0
0
0
0
0
569
0.213188
3bd99b382f3bb66011f0a2e220815e6d5fe49246
864
py
Python
clicrud/clicrud/helpers.py
DavidJohnGee/clicrud
f1f178ac44649efe7b7681d37e97d2632b8971b2
[ "Apache-2.0" ]
9
2015-12-07T23:00:24.000Z
2021-06-23T21:31:47.000Z
clicrud/clicrud/helpers.py
DavidJohnGee/clicrud
f1f178ac44649efe7b7681d37e97d2632b8971b2
[ "Apache-2.0" ]
8
2016-04-05T12:36:54.000Z
2017-05-15T16:00:08.000Z
clicrud/clicrud/helpers.py
DavidJohnGee/clicrud
f1f178ac44649efe7b7681d37e97d2632b8971b2
[ "Apache-2.0" ]
7
2016-06-02T23:39:05.000Z
2021-03-25T20:52:46.000Z
""" Copyright 2015 Brocade Communications Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
24.685714
72
0.689815
0
0
0
0
0
0
0
0
651
0.753472
3bd9caeeddf847dd9546e4e833234ce3cce7f394
28
py
Python
patton_server/service/__init__.py
directionless/patton-server
da39cb8b09029dbcf4edd5c78abb150dc53e8ebe
[ "Apache-2.0" ]
null
null
null
patton_server/service/__init__.py
directionless/patton-server
da39cb8b09029dbcf4edd5c78abb150dc53e8ebe
[ "Apache-2.0" ]
null
null
null
patton_server/service/__init__.py
directionless/patton-server
da39cb8b09029dbcf4edd5c78abb150dc53e8ebe
[ "Apache-2.0" ]
null
null
null
from .make_web_app import *
14
27
0.785714
0
0
0
0
0
0
0
0
0
0
3bda0b8e560a339719620c78e288885bd05aa2f6
689
py
Python
lib/abridger/exc.py
willangenent/abridger
6daa80f7360339376b38544ce60694c5addaa30f
[ "MIT" ]
8
2016-10-19T14:15:34.000Z
2020-06-23T09:37:02.000Z
lib/abridger/exc.py
freewilll/abridger
6daa80f7360339376b38544ce60694c5addaa30f
[ "MIT" ]
null
null
null
lib/abridger/exc.py
freewilll/abridger
6daa80f7360339376b38544ce60694c5addaa30f
[ "MIT" ]
null
null
null
class AbridgerError(Exception): pass class ConfigFileLoaderError(AbridgerError): pass class IncludeError(ConfigFileLoaderError): pass class DataError(ConfigFileLoaderError): pass class FileNotFoundError(ConfigFileLoaderError): pass class DatabaseUrlError(AbridgerError): pass class Ex...
13.509804
51
0.776488
652
0.946299
0
0
0
0
0
0
0
0
3bdb6220329725e793142bac8d5000ba99303cc3
989
py
Python
common/permissions.py
pedro-hs/financial-account
7e8e4d0f3ac888fa36a091d0e733a8e1926180d2
[ "MIT" ]
null
null
null
common/permissions.py
pedro-hs/financial-account
7e8e4d0f3ac888fa36a091d0e733a8e1926180d2
[ "MIT" ]
null
null
null
common/permissions.py
pedro-hs/financial-account
7e8e4d0f3ac888fa36a091d0e733a8e1926180d2
[ "MIT" ]
null
null
null
from rest_framework.permissions import BasePermission, IsAuthenticated class IsBackOffice(BasePermission): def has_permission(self, request, view): return bool(request.user and request.user.is_authenticated and request.user.role == 'collaborator') class IsUserBase(IsAuthenticated): def has_permissio...
34.103448
107
0.706775
906
0.916077
0
0
0
0
0
0
86
0.086957
3bdba7505ba48dff77d09ed882c1ad53fae133f6
956
py
Python
mcp_generation/mcqa_formatter.py
yuchenlin/XCSR
ace4336de98a8567fcad43498907e0efefe70de4
[ "MIT" ]
16
2021-06-14T00:54:28.000Z
2022-03-06T08:52:21.000Z
mcp_generation/mcqa_formatter.py
yuchenlin/XCSR
ace4336de98a8567fcad43498907e0efefe70de4
[ "MIT" ]
null
null
null
mcp_generation/mcqa_formatter.py
yuchenlin/XCSR
ace4336de98a8567fcad43498907e0efefe70de4
[ "MIT" ]
2
2021-08-02T18:54:33.000Z
2021-09-20T05:37:02.000Z
import json probes = [] with open("./multilingual_probes.jsonl",'r') as f: for line in f: probes.append(json.loads(line.rstrip('\n|\r'))) results = [] for probe in probes: new_items = {} answer_labels = ["A", "B", "C", "D", "E","F","G","H"] print(probe["truth_id"]) answerKey = answer_label...
29.875
111
0.599372
0
0
0
0
0
0
0
0
248
0.259414
3bdc4d0f00442b263a279d7821b9572ea9833620
2,016
py
Python
tests/test_behavior.py
beskyfil/labels
0a1e4831621ce2027ebc9af3e4161f03ff946a6d
[ "MIT" ]
null
null
null
tests/test_behavior.py
beskyfil/labels
0a1e4831621ce2027ebc9af3e4161f03ff946a6d
[ "MIT" ]
null
null
null
tests/test_behavior.py
beskyfil/labels
0a1e4831621ce2027ebc9af3e4161f03ff946a6d
[ "MIT" ]
null
null
null
import pytest from labelsync.github import Github from labelsync.helpers import HTTPError from tests.helpers import fl, FIXTURES_PATH, create_cfg_env, get_labels c = create_cfg_env('good.cfg') github = Github(c, name='github', api_url='https://api.github.com/repos') label = { 'name':'blabla', 'color':...
28.8
73
0.695933
0
0
0
0
0
0
0
0
534
0.264881
3bdfbd90f140aef1f2b7005698a05751030fadf0
4,249
py
Python
authentication/cryptosign/function/authenticator.py
oberstet/crossbar-examples
852680eee646cf5479bff18ec727a8026d9bdcda
[ "Apache-2.0" ]
null
null
null
authentication/cryptosign/function/authenticator.py
oberstet/crossbar-examples
852680eee646cf5479bff18ec727a8026d9bdcda
[ "Apache-2.0" ]
null
null
null
authentication/cryptosign/function/authenticator.py
oberstet/crossbar-examples
852680eee646cf5479bff18ec727a8026d9bdcda
[ "Apache-2.0" ]
null
null
null
import copy import random from pprint import pformat from txaio import make_logger from autobahn.wamp.exception import ApplicationError from autobahn.util import hl, hltype, hlid, hlval # a simple principals database. in real world use, this likey would be # replaced by some persistent database used to store principal...
33.195313
138
0.589786
0
0
0
0
0
0
3,102
0.730054
2,044
0.481054
3bdfdc921f29e9f07e8dacf34bfc075882611de3
1,368
py
Python
syd/syd_stitch_image.py
OpenSyd/syd
0f7478c7dedb623ab955e906c103cb64a7abb4b3
[ "Apache-2.0" ]
4
2015-07-29T19:10:35.000Z
2020-11-17T07:48:41.000Z
syd/syd_stitch_image.py
OpenSyd/syd
0f7478c7dedb623ab955e906c103cb64a7abb4b3
[ "Apache-2.0" ]
9
2015-05-14T09:07:37.000Z
2022-03-15T10:13:59.000Z
syd/syd_stitch_image.py
OpenSyd/syd
0f7478c7dedb623ab955e906c103cb64a7abb4b3
[ "Apache-2.0" ]
3
2016-09-07T06:26:52.000Z
2016-10-04T12:29:03.000Z
#!/usr/bin/env python3 import itk import syd # ----------------------------------------------------------------------------- def stitch_image(db, image1, image2): print('image1', image1) print('image2', image2) im1 = syd.read_itk_image(db, image1) im2 = syd.read_itk_image(db, image2) im = stitch...
23.186441
79
0.557749
0
0
0
0
0
0
0
0
378
0.276316
3be0272cc4ef59d691881a66ca66a56c66ec41a0
2,617
py
Python
pylinear/h5table/ddt.py
npirzkal/pyLINEAR
00419dcbd91ea7b64386e6fe4f3164cd141333f2
[ "MIT" ]
null
null
null
pylinear/h5table/ddt.py
npirzkal/pyLINEAR
00419dcbd91ea7b64386e6fe4f3164cd141333f2
[ "MIT" ]
null
null
null
pylinear/h5table/ddt.py
npirzkal/pyLINEAR
00419dcbd91ea7b64386e6fe4f3164cd141333f2
[ "MIT" ]
null
null
null
import numpy as np import pdb from . import columns from . import h5utils from .base import Base class DDT(Base): def __init__(self,segid): self.segid=segid self.pix=[] self.xyg=columns.XYG() self.wav=columns.WAV() self.val=columns.VAL() def extend(self,xyg,wa...
24.231481
75
0.534964
2,509
0.958731
0
0
68
0.025984
0
0
231
0.088269
3be1c731ef6e27de1ae8fcab0e00a570b8b671ef
851
py
Python
tools/auto_freeze.py
airacid/pruned-face-detector
ef587e274ccf87633af653694890eb6712d6b3eb
[ "MIT" ]
1
2021-11-01T02:39:36.000Z
2021-11-01T02:39:36.000Z
tools/auto_freeze.py
airacid/pruned-face-detector
ef587e274ccf87633af653694890eb6712d6b3eb
[ "MIT" ]
null
null
null
tools/auto_freeze.py
airacid/pruned-face-detector
ef587e274ccf87633af653694890eb6712d6b3eb
[ "MIT" ]
1
2021-11-01T02:39:37.000Z
2021-11-01T02:39:37.000Z
import os import tensorflow as tf import argparse parser = argparse.ArgumentParser() parser.add_argument('--ckpt_path', type=str) parser.add_argument('--output_path', type=str) args = parser.parse_args() os.environ["CUDA_VISIBLE_DEVICES"] = "-1" checkpoint = args.ckpt_path ##input_checkpoint input_che...
29.344828
119
0.774383
0
0
0
0
0
0
0
0
356
0.418331
3be1c8da8fb0704e33d69f4791863e002d5b116a
2,045
py
Python
examples/nowcoder/SQL3/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/nowcoder/SQL3/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/nowcoder/SQL3/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.db import models # 1. Django不支持符合主键(Composite Primary Key). # 2. Django不支持关闭主键(Disable Primary Key), # 当表中的所有字段都没有定义 Primary Key 时, # Django会自动增加一个id字段, 并将primary key设定到id字段上. # # # 一般情况下, InnoDB在建表时, 当没有定义Primary Key时, # 如果有 Unique Key 时, InnoDB会将该Unique Key当作聚集索引. # 如果也没有 Unique Key时, InnoDB会创建一个隐藏的...
33.52459
109
0.684597
1,502
0.655609
0
0
0
0
0
0
1,561
0.681362
3be3d29eecfe1ea6c347859c1388d314f37ccbc5
1,247
py
Python
concat_csv.py
jweckman/vim
c225f36ab05c2bdcedfc9866c367c1ddc4cd3646
[ "MIT" ]
null
null
null
concat_csv.py
jweckman/vim
c225f36ab05c2bdcedfc9866c367c1ddc4cd3646
[ "MIT" ]
null
null
null
concat_csv.py
jweckman/vim
c225f36ab05c2bdcedfc9866c367c1ddc4cd3646
[ "MIT" ]
null
null
null
import pandas as pd from pathlib import Path import sys ''' Concatenates all csv files in the folder passed to stdin ''' path = Path(sys.argv[1]) def get_csv_paths(path): return [p for p in path.iterdir() if p.suffix == '.csv'] def ask_details(): print('Please specify the following:') encod...
30.414634
94
0.653569
0
0
0
0
0
0
0
0
212
0.170008
3be3ffc19dbd5fc20c5420fc3ab9c6320aeeee0a
2,589
py
Python
catkin_ws/src/rostest_example/tests/duckiecall_tester_node.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
12
2016-04-14T12:21:46.000Z
2021-06-18T07:51:40.000Z
catkin_ws/src/rostest_example/tests/duckiecall_tester_node.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
14
2017-03-03T23:33:05.000Z
2018-04-03T18:07:53.000Z
catkin_ws/src/rostest_example/tests/duckiecall_tester_node.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
113
2016-05-03T06:11:42.000Z
2019-06-01T14:37:38.000Z
#!/usr/bin/env python import rospy import unittest, rostest from rostest_example.Quacker import * from std_msgs.msg import String, Int32 class DuckiecallTesterNode(unittest.TestCase): def __init__(self, *args): super(DuckiecallTesterNode, self).__init__(*args) self.msg_duckiecall = String() ...
43.15
127
0.696794
2,273
0.877945
0
0
0
0
0
0
709
0.273851
3be4dea35fbe812684c863cfb56967cde0971e92
1,679
py
Python
buildroot/support/testing/tests/init/test_busybox.py
rbrenton/hassos
fa6f7ac74ddba50e76f5779c613c56d937684844
[ "Apache-2.0" ]
617
2015-01-04T14:33:56.000Z
2022-03-24T22:42:25.000Z
buildroot/support/testing/tests/init/test_busybox.py
rbrenton/hassos
fa6f7ac74ddba50e76f5779c613c56d937684844
[ "Apache-2.0" ]
631
2015-01-01T22:53:25.000Z
2022-03-17T18:41:00.000Z
buildroot/support/testing/tests/init/test_busybox.py
rbrenton/hassos
fa6f7ac74ddba50e76f5779c613c56d937684844
[ "Apache-2.0" ]
133
2015-03-03T18:40:05.000Z
2022-03-18T13:34:26.000Z
import infra.basetest from tests.init.base import InitSystemBase as InitSystemBase class InitSystemBusyboxBase(InitSystemBase): config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ """ # BR2_TARGET_ROOTFS_TAR is not set """ def check_init(self): super(InitSystemBusyboxBase, self...
25.830769
69
0.659321
1,581
0.941632
0
0
0
0
0
0
506
0.30137
3be559b23f04ad4fbb4310964aaa62522258d721
8,529
py
Python
mayan/apps/linking/api_views.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
null
null
null
mayan/apps/linking/api_views.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
5
2021-03-19T22:59:52.000Z
2022-03-12T00:13:16.000Z
mayan/apps/linking/api_views.py
Sumit-Kumar-Jha/mayan
5b7ddeccf080b9e41cc1074c70e27dfe447be19f
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import absolute_import, unicode_literals from django.shortcuts import get_object_or_404 from mayan.apps.acls.models import AccessControlList from mayan.apps.documents.models import Document from mayan.apps.documents.permissions import permission_document_view from mayan.apps.rest_api import generics ...
30.569892
85
0.653183
7,820
0.916872
0
0
0
0
0
0
1,435
0.16825
3be6d032aab66cc3f999f8f1017e760af49f209f
4,013
py
Python
download_stats.py
zhengsipeng/kinetics-downloader
c85c6946a4408d1f9219441ae3f7aed679b10458
[ "MIT" ]
263
2018-03-10T15:44:35.000Z
2022-03-16T10:57:30.000Z
download_stats.py
zhengsipeng/kinetics-downloader
c85c6946a4408d1f9219441ae3f7aed679b10458
[ "MIT" ]
17
2018-09-13T00:30:22.000Z
2021-07-26T17:42:33.000Z
download_stats.py
zhengsipeng/kinetics-downloader
c85c6946a4408d1f9219441ae3f7aed679b10458
[ "MIT" ]
85
2018-07-12T03:45:38.000Z
2022-03-21T23:11:36.000Z
import argparse, os import lib.config as config import lib.utils as utils def count_present_and_missing(cls, directory, metadata): """ Count present and missing videos for a class based on metadata. :param cls: The class. If None, count all videos (used for testing videos - no classes). :param direc...
31.108527
120
0.697982
0
0
0
0
0
0
0
0
963
0.23997
3be947a82f13de6d26fc798282d17c1307b2aaf7
257
py
Python
ex-mundo3/ex107/moeda.py
PedroPegado/ex-cursoemvideo
46751a7238e6a142b639c4cc3acf1759411732d7
[ "MIT" ]
null
null
null
ex-mundo3/ex107/moeda.py
PedroPegado/ex-cursoemvideo
46751a7238e6a142b639c4cc3acf1759411732d7
[ "MIT" ]
null
null
null
ex-mundo3/ex107/moeda.py
PedroPegado/ex-cursoemvideo
46751a7238e6a142b639c4cc3acf1759411732d7
[ "MIT" ]
null
null
null
def aumentar(preco, taxa): p = preco + (preco * taxa/100) return p def diminuir(preco, taxa): p = preco - (preco * taxa/100) return p def dobro(preco): p = preco * 2 return p def metade(preco): p = preco / 2 return p
12.238095
34
0.564202
0
0
0
0
0
0
0
0
0
0
3beac65b5cb6099092c07d4a94aab675261b906d
3,885
py
Python
e2e/test_accessbot_show_resources.py
arthurSena0704/accessbot
5097453c45c5193e6516bc1f9441e90e49b3d324
[ "Apache-2.0" ]
null
null
null
e2e/test_accessbot_show_resources.py
arthurSena0704/accessbot
5097453c45c5193e6516bc1f9441e90e49b3d324
[ "Apache-2.0" ]
null
null
null
e2e/test_accessbot_show_resources.py
arthurSena0704/accessbot
5097453c45c5193e6516bc1f9441e90e49b3d324
[ "Apache-2.0" ]
3
2021-08-16T22:34:05.000Z
2021-09-22T02:51:13.000Z
# pylint: disable=invalid-name import pytest import sys from unittest.mock import MagicMock from test_common import create_config, DummyResource sys.path.append('plugins/sdm') from lib import ShowResourcesHelper pytest_plugins = ["errbot.backends.test"] extra_plugin_dir = 'plugins/sdm' class Test_show_resources: ...
45.174419
111
0.7426
2,497
0.642728
0
0
1,085
0.279279
0
0
728
0.187387
3beb73cbef34b508a909878716873d4472cedd74
64
py
Python
tftf/layers/activations/tanh.py
yusugomori/tftf
e98b9ddffdbaa1fe04320437a47f12f3182ab6f3
[ "Apache-2.0" ]
35
2018-08-11T05:01:41.000Z
2021-01-29T02:28:47.000Z
tftf/layers/activations/tanh.py
yusugomori/tftf
e98b9ddffdbaa1fe04320437a47f12f3182ab6f3
[ "Apache-2.0" ]
null
null
null
tftf/layers/activations/tanh.py
yusugomori/tftf
e98b9ddffdbaa1fe04320437a47f12f3182ab6f3
[ "Apache-2.0" ]
4
2018-10-19T14:12:04.000Z
2021-01-29T02:28:49.000Z
import tensorflow as tf def tanh(x): return tf.nn.tanh(x)
10.666667
24
0.671875
0
0
0
0
0
0
0
0
0
0
3becb3cb8a9347c5c892e9c12331df179e27be0f
406
py
Python
game/migrations/0011_onlinegame_playersready.py
dimamelnik22/drawfulru
da2d21ef4c0b6776fc7c1059dbdf617f591c4ef8
[ "Apache-2.0" ]
null
null
null
game/migrations/0011_onlinegame_playersready.py
dimamelnik22/drawfulru
da2d21ef4c0b6776fc7c1059dbdf617f591c4ef8
[ "Apache-2.0" ]
7
2020-06-05T20:14:47.000Z
2021-09-22T18:18:06.000Z
game/migrations/0011_onlinegame_playersready.py
dimamelnik22/drawfulru
da2d21ef4c0b6776fc7c1059dbdf617f591c4ef8
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0 on 2019-12-23 06:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('game', '0010_auto_20191223_0818'), ] operations = [ migrations.AddField( model_name='onlinegame', name='...
21.368421
50
0.576355
309
0.761084
0
0
0
0
0
0
103
0.253695
3bed882365f0c947238e86347d95e522a56968a9
2,380
py
Python
deprecated.py
tungr/CoeusBot
90bdc869a1f8c077a1f88dcf1335d20a19d49fee
[ "MIT" ]
null
null
null
deprecated.py
tungr/CoeusBot
90bdc869a1f8c077a1f88dcf1335d20a19d49fee
[ "MIT" ]
null
null
null
deprecated.py
tungr/CoeusBot
90bdc869a1f8c077a1f88dcf1335d20a19d49fee
[ "MIT" ]
null
null
null
#### Transfer data from JSON file to MongoDB #### # @client.command() # async def qupload(self, ctx): # mclient = MongoClient(host="localhost", port=27017) # db = mclient.coeusbot # quotesdb = db.quotes # with open('quotes.json', 'r') as f: # quotes = json.load(f) # for quotenum in ra...
32.162162
93
0.561765
0
0
0
0
0
0
0
0
2,298
0.964331
3bedf4765622764f7282bd201ee9a488ae9fdbd2
370
py
Python
packaging/scripts/collect_matlab.py
robotraconteur/robotraconteur
ff997351761a687be364234684202e3348c4083c
[ "Apache-2.0" ]
37
2019-01-31T06:05:17.000Z
2022-03-21T06:56:18.000Z
packaging/scripts/collect_matlab.py
robotraconteur/robotraconteur
ff997351761a687be364234684202e3348c4083c
[ "Apache-2.0" ]
14
2019-07-18T04:09:45.000Z
2021-08-31T02:04:22.000Z
packaging/scripts/collect_matlab.py
robotraconteur/robotraconteur
ff997351761a687be364234684202e3348c4083c
[ "Apache-2.0" ]
3
2018-11-23T22:03:22.000Z
2021-11-02T10:03:39.000Z
import shutil import pathlib asset_dirs = ["artifacts/main", "artifacts/build_python_version"] pathlib.Path("distfiles").mkdir(exist_ok=True) for asset_dir in asset_dirs: for fname in list(pathlib.Path(asset_dir).glob('**/RobotRaconteur-*-MATLAB*')): print(fname) dest = pathlib.Path(fname) ...
30.833333
83
0.705405
0
0
0
0
0
0
0
0
100
0.27027
3bee8a2e3ce8d0e0dbf5627d1dd4f2bc366b92ab
821
py
Python
setup.py
bryan-he/closek
b0367e09d7fa1a096580d762db6fd948e04c1d9e
[ "MIT" ]
null
null
null
setup.py
bryan-he/closek
b0367e09d7fa1a096580d762db6fd948e04c1d9e
[ "MIT" ]
null
null
null
setup.py
bryan-he/closek
b0367e09d7fa1a096580d762db6fd948e04c1d9e
[ "MIT" ]
null
null
null
"""Metadata for package to allow installation with pip.""" import setuptools exec(open("closek/version.py").read()) with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="closek", description="Scikit-learn-style implementation of the close-k classifier.", long_descri...
24.878788
79
0.6419
0
0
0
0
0
0
0
0
351
0.427527
3beed423b84aed994aacbe9098f28892995cd210
491
py
Python
ramda/memoize_with_test.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
56
2018-08-06T08:44:58.000Z
2022-03-17T09:49:03.000Z
ramda/memoize_with_test.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
28
2019-06-17T11:09:52.000Z
2022-02-18T16:59:21.000Z
ramda/memoize_with_test.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
5
2019-09-18T09:24:38.000Z
2021-07-21T08:40:23.000Z
from ramda.memoize_with import memoize_with from ramda.product import product from ramda.private.asserts import assert_equal as e count = 0 def memoize_with_test(): @memoize_with(lambda x: -x) def factorial(n): global count count += 1 return product(range(1, n + 1)) e(factorial(...
20.458333
51
0.631365
0
0
0
0
129
0.262729
0
0
0
0
3beefe8b0cd9218be467b3453fa033b4d6ace79a
18,821
py
Python
cdlib/evaluation/comparison.py
xing-lab-pitt/cdlib
590e145429cda1db4d3671c994c502bedd77f108
[ "BSD-2-Clause" ]
248
2019-02-17T05:31:22.000Z
2022-03-30T04:57:20.000Z
cdlib/evaluation/comparison.py
xing-lab-pitt/cdlib
590e145429cda1db4d3671c994c502bedd77f108
[ "BSD-2-Clause" ]
130
2019-02-10T19:35:55.000Z
2022-03-31T10:58:39.000Z
cdlib/evaluation/comparison.py
xing-lab-pitt/cdlib
590e145429cda1db4d3671c994c502bedd77f108
[ "BSD-2-Clause" ]
70
2019-02-15T19:04:29.000Z
2022-03-27T12:58:50.000Z
import numpy as np from cdlib.evaluation.internal import onmi from cdlib.evaluation.internal.omega import Omega from nf1 import NF1 from collections import namedtuple, defaultdict __all__ = [ "MatchingResult", "normalized_mutual_information", "overlapping_normalized_mutual_information_LFK", "overlappin...
36.263969
391
0.692684
0
0
0
0
0
0
0
0
11,522
0.612156
3bef530282cd351acc8d5d5fce296f7123e0bfe8
56
py
Python
node/views/__init__.py
mohamedmansor/path-detector
14954795ea47109d404b54f74575337f86d6134f
[ "MIT" ]
null
null
null
node/views/__init__.py
mohamedmansor/path-detector
14954795ea47109d404b54f74575337f86d6134f
[ "MIT" ]
null
null
null
node/views/__init__.py
mohamedmansor/path-detector
14954795ea47109d404b54f74575337f86d6134f
[ "MIT" ]
null
null
null
from .node_view import ConnectNodesViewSet, PathViewSet
28
55
0.875
0
0
0
0
0
0
0
0
0
0
3bf1bbdf44b6a8b3ce4f31f26290f905b3426047
1,193
py
Python
tests/modules/extra/fastapi/controller/integration/test_fastapi_app_with_controller.py
alice-biometrics/petisco
b96e697cc875f67a28e60b4fc0d9ed9fc646cd86
[ "MIT" ]
19
2019-11-01T09:27:17.000Z
2021-12-15T10:52:31.000Z
tests/modules/extra/fastapi/controller/integration/test_fastapi_app_with_controller.py
alice-biometrics/petisco
b96e697cc875f67a28e60b4fc0d9ed9fc646cd86
[ "MIT" ]
68
2020-01-15T06:55:00.000Z
2022-02-22T15:57:24.000Z
tests/modules/extra/fastapi/controller/integration/test_fastapi_app_with_controller.py
alice-biometrics/petisco
b96e697cc875f67a28e60b4fc0d9ed9fc646cd86
[ "MIT" ]
2
2019-11-19T10:40:25.000Z
2019-11-28T07:12:07.000Z
from typing import Optional import pytest from fastapi import FastAPI, Header from fastapi.testclient import TestClient from meiga import BoolResult, Failure, isFailure, isSuccess from petisco import NotFound, assert_http from petisco.extra.fastapi import FastAPIController app = FastAPI(title="test-app") result_fro...
29.097561
78
0.75943
178
0.149204
0
0
554
0.464376
0
0
166
0.139145
3bf3ea019e2b8d99252bef80157556503f118e91
438
py
Python
component/reminder/tasks.py
pablo0723/just-a-test
31e8157a5d1f50b30d83d945b77caaa2b7b717ba
[ "MIT" ]
null
null
null
component/reminder/tasks.py
pablo0723/just-a-test
31e8157a5d1f50b30d83d945b77caaa2b7b717ba
[ "MIT" ]
null
null
null
component/reminder/tasks.py
pablo0723/just-a-test
31e8157a5d1f50b30d83d945b77caaa2b7b717ba
[ "MIT" ]
null
null
null
from django.core.mail import send_mail from component.reminder.models import Reminder from server.celery import app @app.task def send_email(id): reminder = Reminder.objects.filter(id=id).first() if reminder is not None: send_mail(subject="ReminderMessage", message=reminder.text, ...
27.375
53
0.636986
0
0
0
0
318
0.726027
0
0
36
0.082192
3bf45f24ab2dd0e2ee1d2a8a4c89e7d8442c50d9
1,203
py
Python
skmine/tests/test_base.py
remiadon/scikit-mine
769d7d5ea0dda5d4adea33236733f4ce1ea0c815
[ "BSD-3-Clause" ]
null
null
null
skmine/tests/test_base.py
remiadon/scikit-mine
769d7d5ea0dda5d4adea33236733f4ce1ea0c815
[ "BSD-3-Clause" ]
null
null
null
skmine/tests/test_base.py
remiadon/scikit-mine
769d7d5ea0dda5d4adea33236733f4ce1ea0c815
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import pytest from ..base import BaseMiner, MDLOptimizer def test_inst_params(): class MyMiner(BaseMiner): def __init__(self, eps=3): self.eps = eps self._a = 2 def fit(self, D): self._a = 12 kwargs = dict(eps=4) miner = MyMiner(**...
20.741379
70
0.591022
513
0.426434
0
0
0
0
0
0
16
0.0133
3bf5e5434eef73539dca4c83819a0c06da30de79
893
py
Python
src/season/data/websrc/modules/intro/controller/index.py
season-framework/season-flask-wiz
95d75758a6036d387c1b803bd6a68f238ec430e0
[ "MIT" ]
6
2021-12-09T05:06:49.000Z
2022-01-18T02:38:03.000Z
src/season/data/websrc/modules/intro/controller/index.py
season-framework/season-flask-wiz
95d75758a6036d387c1b803bd6a68f238ec430e0
[ "MIT" ]
2
2022-02-18T02:00:36.000Z
2022-03-22T05:18:30.000Z
src/season/data/websrc/modules/intro/controller/index.py
season-framework/season-flask-wiz
95d75758a6036d387c1b803bd6a68f238ec430e0
[ "MIT" ]
2
2022-01-07T00:26:00.000Z
2022-03-07T06:24:27.000Z
import season import random class Controller(season.interfaces.controller.base): def __init__(self, framework): super().__init__(framework) def __default__(self, framework): return self.redirect('list') def list(self, framework): data = [] for i in range(20): ...
33.074074
80
0.571109
864
0.967525
0
0
0
0
0
0
85
0.095185
3bf63b37e1c270fbc81e663a1141ad00744d52eb
11,770
py
Python
crypten/nn/onnx_converter.py
chenfar/CrypTen
9a11b79f1fa9d707eb38abf7d812911980520559
[ "MIT" ]
null
null
null
crypten/nn/onnx_converter.py
chenfar/CrypTen
9a11b79f1fa9d707eb38abf7d812911980520559
[ "MIT" ]
null
null
null
crypten/nn/onnx_converter.py
chenfar/CrypTen
9a11b79f1fa9d707eb38abf7d812911980520559
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy import io import onnx import torch import torch.onnx.symbolic_helper as sym_help import torch.onnx.symbo...
34.925816
87
0.693203
0
0
0
0
2,641
0.224384
0
0
4,972
0.42243
3bf70a1a9f2bab5e2d13cf95f5bb6e7cbc23fec9
3,582
py
Python
examples/pipeline.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
null
null
null
examples/pipeline.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
null
null
null
examples/pipeline.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
null
null
null
from arekit.common.data.input.providers.label.multiple import MultipleLabelProvider from arekit.common.data.row_ids.multiple import MultipleIDProvider from arekit.common.data.storages.base import BaseRowsStorage from arekit.common.data.views.samples import BaseSampleStorageView from arekit.common.experiment.data_type i...
40.704545
105
0.769961
0
0
0
0
0
0
0
0
282
0.078246
3bf77e53ccae2099f5deb07947c3ee02b77cf7b8
9,038
py
Python
python/lapack_like/reflect.py
justusc/Elemental
145ccb28411f3f0c65ca30ecea776df33297e4ff
[ "BSD-3-Clause" ]
null
null
null
python/lapack_like/reflect.py
justusc/Elemental
145ccb28411f3f0c65ca30ecea776df33297e4ff
[ "BSD-3-Clause" ]
null
null
null
python/lapack_like/reflect.py
justusc/Elemental
145ccb28411f3f0c65ca30ecea776df33297e4ff
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2009-2015, Jack Poulson # All rights reserved. # # This file is part of Elemental and is under the BSD 2-Clause License, # which can be found in the LICENSE file in the root directory, or at # http://opensource.org/licenses/BSD-2-Clause # from ..core import * import ctypes # Apply packed refle...
42.834123
78
0.731356
0
0
0
0
0
0
0
0
727
0.080438
3bf87ad7597d41df2c5bff20fab72d6e34dbefa1
2,443
py
Python
src/PointClasses/Bisector.py
Lovely-XPP/tkzgeom
bf68e139dc05f759542d6611f4dc07f4f2727b92
[ "MIT" ]
41
2021-11-24T05:54:08.000Z
2022-03-26T10:19:30.000Z
src/PointClasses/Bisector.py
Lovely-XPP/tkzgeom
bf68e139dc05f759542d6611f4dc07f4f2727b92
[ "MIT" ]
1
2022-02-28T04:34:51.000Z
2022-03-07T10:49:27.000Z
src/PointClasses/Bisector.py
Lovely-XPP/tkzgeom
bf68e139dc05f759542d6611f4dc07f4f2727b92
[ "MIT" ]
10
2021-11-24T07:35:17.000Z
2022-03-25T18:42:14.000Z
from Point import Point import Constant as c from GeometryMath import bisector_point class Bisector(Point): def __init__(self, item): """Construct Bisector.""" Point.__init__(self, item) self.item["sub_type"] = c.Point.Definition.BISECTOR def tikzify(self): return '\\tkzDefLin...
40.04918
119
0.56447
2,355
0.963979
0
0
63
0.025788
0
0
527
0.215718
3bf883b35e2fe868219f30a0db3d466b114010f3
354
py
Python
custom_components/fitx/const.py
Raukze/home-assistant-fitx
2808200e0e87a0559b927dc013765bf1cd20030e
[ "MIT" ]
3
2022-03-02T07:49:47.000Z
2022-03-18T08:59:05.000Z
custom_components/fitx/const.py
Raukze/home-assistant-fitx
2808200e0e87a0559b927dc013765bf1cd20030e
[ "MIT" ]
null
null
null
custom_components/fitx/const.py
Raukze/home-assistant-fitx
2808200e0e87a0559b927dc013765bf1cd20030e
[ "MIT" ]
null
null
null
DOMAIN = "fitx" ICON = "mdi:weight-lifter" CONF_LOCATIONS = 'locations' CONF_ID = 'id' ATTR_ADDRESS = "address" ATTR_STUDIO_NAME = "studioName" ATTR_ID = CONF_ID ATTR_URL = "url" DEFAULT_ENDPOINT = "https://www.fitx.de/fitnessstudios/{id}" REQUEST_METHOD = "GET" REQUEST_AUTH = None REQUEST_HEADERS = None REQUEST_PAYLOA...
25.285714
60
0.762712
0
0
0
0
0
0
0
0
112
0.316384
3bf93c870b2bc30c3baf9567a64d06171558f06b
1,894
py
Python
youtube_dl/extractor/scivee.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
5
2016-04-25T16:26:07.000Z
2021-04-28T16:10:29.000Z
youtube_dl/extractor/scivee.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
5
2016-04-22T01:33:31.000Z
2016-08-04T15:33:19.000Z
youtube_dl/extractor/scivee.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
5
2020-10-25T09:18:58.000Z
2021-05-23T22:57:55.000Z
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import int_or_none class SciVeeIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?scivee\.tv/node/(?P<id>\d+)' _TEST = { 'url': 'http://www.scivee.tv/node/62352', 'md5': 'b16699b74c9e6a120f677...
33.22807
116
0.541711
1,773
0.936114
0
0
0
0
0
0
745
0.393347
3bfa7757212343833fdcee31409e1364ca82a73d
11,790
py
Python
examples/plot_tuh_eeg_corpus.py
SciMK/braindecode
65b8de3e8a542e299996c0917ea3383aea5a9a69
[ "BSD-3-Clause" ]
null
null
null
examples/plot_tuh_eeg_corpus.py
SciMK/braindecode
65b8de3e8a542e299996c0917ea3383aea5a9a69
[ "BSD-3-Clause" ]
null
null
null
examples/plot_tuh_eeg_corpus.py
SciMK/braindecode
65b8de3e8a542e299996c0917ea3383aea5a9a69
[ "BSD-3-Clause" ]
null
null
null
"""Process a big data EEG resource (TUH EEG Corpus) =================================================== In this example, we showcase usage of the Temple University Hospital EEG Corpus (https://www.isip.piconepress.com/projects/tuh_eeg/html/downloads.shtml#c_tueg) including simple preprocessing steps as well as cutting...
39.966102
195
0.653605
0
0
0
0
377
0.031971
0
0
6,991
0.59286
3bfae0d38025f9ed469b1477352c2cbb4d204cae
9,752
py
Python
tests/metrics/test_metrics.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
tests/metrics/test_metrics.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
tests/metrics/test_metrics.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
import logging import numpy as np from emmental.metrics.accuracy import accuracy_scorer from emmental.metrics.accuracy_f1 import accuracy_f1_scorer from emmental.metrics.fbeta import f1_scorer, fbeta_scorer from emmental.metrics.matthews_correlation import ( matthews_correlation_coefficient_scorer, ) from emmenta...
31.869281
85
0.658839
0
0
0
0
0
0
0
0
947
0.097108
3bfbc45da374cdb7d8360321c18d5a979fdef4e1
3,986
py
Python
vesper/command/job_logging_manager.py
HaroldMills/NFC
356b2234dc3c7d180282a597fa1e039ae79e03c6
[ "MIT" ]
null
null
null
vesper/command/job_logging_manager.py
HaroldMills/NFC
356b2234dc3c7d180282a597fa1e039ae79e03c6
[ "MIT" ]
1
2015-01-12T12:41:29.000Z
2015-01-12T12:41:29.000Z
vesper/command/job_logging_manager.py
HaroldMills/NFC
356b2234dc3c7d180282a597fa1e039ae79e03c6
[ "MIT" ]
null
null
null
"""Module containing class `JobLoggingManager`.""" from collections import defaultdict from logging import FileHandler, Handler from logging.handlers import QueueHandler, QueueListener from multiprocessing import Queue import logging import vesper.util.logging_utils as logging_utils import vesper.util.os_utils as os...
34.068376
76
0.659809
3,467
0.869794
0
0
1,054
0.264425
0
0
2,066
0.518314
3bfc3d39f5d7c8e9a54f0fc8a5c3d30aa858a4b2
4,837
py
Python
evaluation/metrics.py
victorperezpiqueras/MONRP
f20bbde8895867d37b735dec7a5fd95ee90fadf6
[ "MIT" ]
null
null
null
evaluation/metrics.py
victorperezpiqueras/MONRP
f20bbde8895867d37b735dec7a5fd95ee90fadf6
[ "MIT" ]
2
2021-05-05T14:41:24.000Z
2022-01-18T09:08:06.000Z
evaluation/metrics.py
victorperezpiqueras/MONRP
f20bbde8895867d37b735dec7a5fd95ee90fadf6
[ "MIT" ]
null
null
null
import math from typing import List import numpy as np from datasets.Dataset import Dataset from models.Solution import Solution def calculate_avgValue(population: List[Solution]) -> float: avgValue = 0 for ind in population: avgValue += ind.compute_mono_objective_score() avgValue /= len(populati...
30.23125
92
0.64999
0
0
0
0
0
0
0
0
140
0.028944
3bfc6525bf99e8218a93653bc016cb8baae15ea1
3,803
py
Python
networkx/classes/tests/test_digraph_historical.py
KyleBenson/networkx
26ccb4a380ba0e5304d7bbff53eb9859c6e4c93a
[ "BSD-3-Clause" ]
null
null
null
networkx/classes/tests/test_digraph_historical.py
KyleBenson/networkx
26ccb4a380ba0e5304d7bbff53eb9859c6e4c93a
[ "BSD-3-Clause" ]
null
null
null
networkx/classes/tests/test_digraph_historical.py
KyleBenson/networkx
26ccb4a380ba0e5304d7bbff53eb9859c6e4c93a
[ "BSD-3-Clause" ]
1
2019-01-30T17:57:36.000Z
2019-01-30T17:57:36.000Z
#!/usr/bin/env python """Original NetworkX graph tests""" from nose.tools import * import networkx import networkx as nx from networkx.testing.utils import * from historical_tests import HistoricalTests class TestDiGraphHistorical(HistoricalTests): def setUp(self): HistoricalTests.setUp(self) sel...
34.889908
79
0.519853
3,596
0.945569
0
0
0
0
0
0
372
0.097818
3bfc66ab6394f443698742193984f19425d0486f
6,325
py
Python
older/fn_res_to_icd/fn_res_to_icd/components/res_to_icd_function.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
older/fn_res_to_icd/fn_res_to_icd/components/res_to_icd_function.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
older/fn_res_to_icd/fn_res_to_icd/components/res_to_icd_function.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
# -*- coding: utf-8 -*- # (c) Copyright IBM Corp. 2019. All Rights Reserved. # pragma pylint: disable=unused-argument, no-self-use import logging import re import sys import requests from bs4 import BeautifulSoup as bsoup from resilient_circuits import ResilientComponent, function, handler from resilient_circuits impo...
49.031008
191
0.591146
5,723
0.904822
5,172
0.817708
5,382
0.850909
0
0
1,931
0.305296
ce017638896c04f18c2cb7532f41f9850780cdae
28,484
py
Python
nimbleclient/v1/api/groups.py
prachiruparelia-hpe/nimble-python-sdk
a3e99d89e647291caf7936300ae853d21d94d6e5
[ "Apache-2.0" ]
1
2020-05-28T19:48:59.000Z
2020-05-28T19:48:59.000Z
nimbleclient/v1/api/groups.py
prachiruparelia-hpe/nimble-python-sdk
a3e99d89e647291caf7936300ae853d21d94d6e5
[ "Apache-2.0" ]
null
null
null
nimbleclient/v1/api/groups.py
prachiruparelia-hpe/nimble-python-sdk
a3e99d89e647291caf7936300ae853d21d94d6e5
[ "Apache-2.0" ]
null
null
null
# # © Copyright 2020 Hewlett Packard Enterprise Development LP # # This file was auto-generated by the Python SDK generator; DO NOT EDIT. # from ...resource import Resource, Collection from ...exceptions import NimOSAPIOperationUnsupported class Group(Resource): """Group is a collection of arrays operating ...
44.5759
179
0.584082
28,232
0.991118
0
0
0
0
0
0
21,502
0.754853
ce02069f82a4f0531c7597c44775348bc1d10f18
309
py
Python
sdk_client/scripts/cards2json.py
victorlacorte/MTG-SDK-Client
33fdbfbf545e9f3961369b123a2f7fe783ce8f12
[ "DOC" ]
null
null
null
sdk_client/scripts/cards2json.py
victorlacorte/MTG-SDK-Client
33fdbfbf545e9f3961369b123a2f7fe783ce8f12
[ "DOC" ]
null
null
null
sdk_client/scripts/cards2json.py
victorlacorte/MTG-SDK-Client
33fdbfbf545e9f3961369b123a2f7fe783ce8f12
[ "DOC" ]
null
null
null
import json import mtgsdk as mtg magic_sets = ('grn',) def main(): for s in magic_sets: cards = [vars(c) for c in mtg.Card.where(set=s).all()] with open(f'tests/data/{s}.json', 'w') as f: json.dump(cards, f, indent=4, sort_keys=True) if __name__ == '__main__': main()
19.3125
62
0.585761
0
0
0
0
0
0
0
0
40
0.12945