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
f5553f600d9e51ffdced6978931c7ede4d5b363d
7,458
py
Python
src/extract_features.py
AymericBebert/MusicLearning
8fbc931330029baa8ae9cfcfa20c79e41b5eca8f
[ "MIT" ]
null
null
null
src/extract_features.py
AymericBebert/MusicLearning
8fbc931330029baa8ae9cfcfa20c79e41b5eca8f
[ "MIT" ]
null
null
null
src/extract_features.py
AymericBebert/MusicLearning
8fbc931330029baa8ae9cfcfa20c79e41b5eca8f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*-coding:utf-8-*- """ This module is used to extract features from the data """ import numpy as np from scipy.fftpack import fft from scipy.fftpack.realtransforms import dct import python_speech_features eps = 0.00000001 def file_length(soundParams): """Returns the file length, in sec...
34.850467
121
0.616519
0
0
0
0
0
0
0
0
2,834
0.379995
f558d1166458b00b259c7deac962e45e929e8c73
255
py
Python
src/gme/estimate/__init__.py
USITC-Gravity-Group/GME
640e1cd6a571e6802a62b5fdcb00544f3b8c0b32
[ "CC0-1.0" ]
10
2018-10-17T18:50:08.000Z
2021-11-05T22:27:45.000Z
src/gme/estimate/__init__.py
USITC-Gravity-Group/GME
640e1cd6a571e6802a62b5fdcb00544f3b8c0b32
[ "CC0-1.0" ]
7
2020-06-03T20:04:10.000Z
2021-03-31T13:59:01.000Z
src/gme/estimate/__init__.py
USITC-Gravity-Group/GME
640e1cd6a571e6802a62b5fdcb00544f3b8c0b32
[ "CC0-1.0" ]
6
2020-05-12T12:43:55.000Z
2022-02-25T08:47:17.000Z
from .combine_sector_results import * from .DiagnosticsLog import * from .EstimationModel import * from .format_regression_table import * from .save_and_load import * from .SlimResults import * from .Specification import * from .visualize_results import *
31.875
38
0.815686
0
0
0
0
0
0
0
0
0
0
f5592d87345b5a481da2afaed4ea4665c57dc09d
2,435
py
Python
tools/blender/io_export_curve.py
waskosky/patches
f80a33eb6fd029b905aca55894ec7a7526b89042
[ "MIT" ]
187
2015-09-21T15:08:57.000Z
2017-07-31T08:01:22.000Z
tools/blender/io_export_curve.py
waskosky/patches
f80a33eb6fd029b905aca55894ec7a7526b89042
[ "MIT" ]
1,533
2015-09-15T23:49:33.000Z
2017-08-01T08:52:00.000Z
tools/blender/io_export_curve.py
waskosky/patches
f80a33eb6fd029b905aca55894ec7a7526b89042
[ "MIT" ]
52
2015-10-11T10:42:50.000Z
2017-07-16T22:31:42.000Z
# Part of the Engi-WebGL suite. from bpy.props import * from bpy_extras.io_utils import ExportHelper from mathutils import * from functools import reduce import os, sys, os.path, bpy, bmesh, math, struct, base64, itertools bl_info = { 'name': 'Curve Export (.json)', 'author': 'Lasse Nielsen', 'version': (0, 2), '...
24.59596
85
0.657906
1,324
0.543737
0
0
0
0
0
0
681
0.279671
f5599fb599f6ac244f63777232a27937cf321454
2,678
py
Python
organize/filters/mimetype.py
tank0226/organize
d5595a52f06ea6c805fe421dcc2429a3ccd03b09
[ "MIT" ]
1,231
2018-01-13T17:06:24.000Z
2022-03-31T22:14:36.000Z
organize/filters/mimetype.py
tank0226/organize
d5595a52f06ea6c805fe421dcc2429a3ccd03b09
[ "MIT" ]
170
2018-03-13T19:15:17.000Z
2022-03-31T10:14:15.000Z
organize/filters/mimetype.py
tank0226/organize
d5595a52f06ea6c805fe421dcc2429a3ccd03b09
[ "MIT" ]
86
2018-03-14T02:12:49.000Z
2022-03-27T00:16:07.000Z
import mimetypes from pathlib import Path from organize.utils import DotDict, flatten from .filter import Filter class MimeType(Filter): """ Filter by MIME type associated with the file extension. Supports a single string or list of MIME type strings as argument. The types don't need to be fully s...
26.514851
125
0.5295
2,560
0.955937
0
0
118
0.044063
0
0
1,811
0.676251
f55a03a501c8713245dc76b3760e3ffdd100d23e
1,857
py
Python
third_party/conan/recipes/libprotobuf-mutator/conanfile.py
tufeigunchu/orbit
407354cf7c9159ff7e3177c603a6850b95509e3a
[ "BSD-2-Clause" ]
1,847
2020-03-24T19:01:42.000Z
2022-03-31T13:18:57.000Z
third_party/conan/recipes/libprotobuf-mutator/conanfile.py
tufeigunchu/orbit
407354cf7c9159ff7e3177c603a6850b95509e3a
[ "BSD-2-Clause" ]
1,100
2020-03-24T19:41:13.000Z
2022-03-31T14:27:09.000Z
third_party/conan/recipes/libprotobuf-mutator/conanfile.py
tufeigunchu/orbit
407354cf7c9159ff7e3177c603a6850b95509e3a
[ "BSD-2-Clause" ]
228
2020-03-25T05:32:08.000Z
2022-03-31T11:27:39.000Z
from conans import ConanFile, CMake, tools class LibprotobufMutatorConan(ConanFile): name = "libprotobuf-mutator" version = "20200506" license = "Apache-2.0" settings = "os", "compiler", "build_type", "arch" generators = "cmake" exports_sources = "patches/*", build_requires = "protoc_insta...
36.411765
82
0.622509
1,811
0.975229
0
0
0
0
0
0
482
0.259558
f55c8c9f40e1cf4319ff4ee1c9422d7c3883f725
524
py
Python
animation/common.py
codyly/locomotion-by-mann
89139466829ef7802bf645f865e335d4cda444e4
[ "MIT" ]
null
null
null
animation/common.py
codyly/locomotion-by-mann
89139466829ef7802bf645f865e335d4cda444e4
[ "MIT" ]
null
null
null
animation/common.py
codyly/locomotion-by-mann
89139466829ef7802bf645f865e335d4cda444e4
[ "MIT" ]
null
null
null
import numpy as np VEC_FORWARD = np.array([0, 0, 1]) VEC_UP = np.array([0, 1, 0]) VEC_RIGHT = np.array([1, 0, 0]) STYLE_NOMOVE = np.array([1, 0, 0, 0, 0, 0]) STYLE_TROT = np.array([0, 1, 0, 0, 0, 0]) STYLE_JUMP = np.array([0, 0, 1, 0, 0, 0]) STYLE_SIT = np.array([0, 0, 0, 1, 0, 0]) STYLE_STAND = np.array([0...
23.818182
54
0.593511
0
0
0
0
0
0
0
0
33
0.062977
f55da49181d53035411252526f6236de7beb9882
2,222
py
Python
codes3d/build_gene_index.py
Genome3d/codes3d-v1
fe4897cb07bd8b2c10cfc29defe8570d447b69e0
[ "MIT" ]
null
null
null
codes3d/build_gene_index.py
Genome3d/codes3d-v1
fe4897cb07bd8b2c10cfc29defe8570d447b69e0
[ "MIT" ]
4
2018-10-25T02:09:37.000Z
2019-06-27T20:50:27.000Z
codes3d/build_gene_index.py
Genome3d/codes3d-v1
fe4897cb07bd8b2c10cfc29defe8570d447b69e0
[ "MIT" ]
null
null
null
#!/usr/bin/python import argparse,codes3d,configparser, os if __name__ == "__main__": parser = argparse.ArgumentParser(description="Create a BED file detailing the locations of genes in the genome, and a database containing additional gene information. Note: If a file in .gtf format is supplied, no other arguments ...
96.608696
246
0.756976
0
0
0
0
0
0
0
0
1,414
0.636364
f55e3e29a41fea6104e2a766525f7a160ac34c13
5,900
py
Python
Kinematic/forward.py
DDDong2666/tum-adlr-ws20-02
2e439886e0287777589cd276d614fd03bea4ed0c
[ "MIT" ]
null
null
null
Kinematic/forward.py
DDDong2666/tum-adlr-ws20-02
2e439886e0287777589cd276d614fd03bea4ed0c
[ "MIT" ]
null
null
null
Kinematic/forward.py
DDDong2666/tum-adlr-ws20-02
2e439886e0287777589cd276d614fd03bea4ed0c
[ "MIT" ]
null
null
null
import numpy as np from Optimizer.path import get_x_substeps from Kinematic import frames, chain as kc def initialize_frames(shape, robot, mode='hm'): return frames.initialize_frames(shape=shape + (robot.n_frames,), n_dim=robot.n_dim, mode=mode) def initialize_frames_jac(shape, robot, mode='hm'): f = initi...
33.908046
132
0.597119
0
0
0
0
0
0
0
0
901
0.152712
f560897ff46b99cf1a7890d1251f2fa26c8a2e3a
977
py
Python
dnslookup.py
r1nzler/dnslookup
74613614b694602244582bfd555ffd8a5dea8bff
[ "MIT" ]
null
null
null
dnslookup.py
r1nzler/dnslookup
74613614b694602244582bfd555ffd8a5dea8bff
[ "MIT" ]
null
null
null
dnslookup.py
r1nzler/dnslookup
74613614b694602244582bfd555ffd8a5dea8bff
[ "MIT" ]
null
null
null
import dns.resolver import dns.ipv4 import argparse parser = argparse.ArgumentParser() parser.add_argument('-l', "--list", help="List of dns names you want IP's for") parser.add_argument('-o', "--output", help="Output file to save list") args = parser.parse_args() ip_list = [...] subs = open(args.list, 'r', newline='...
27.914286
79
0.518936
0
0
0
0
0
0
0
0
164
0.167861
f5609c24bd958aa1dc8093dff8643942d2269130
8,416
py
Python
eval/report.py
DBCobra/CobraBench
d48697248948decc206cfba0a6e40fea8a772ff9
[ "MIT" ]
1
2021-03-03T06:52:50.000Z
2021-03-03T06:52:50.000Z
eval/report.py
DBCobra/CobraBench
d48697248948decc206cfba0a6e40fea8a772ff9
[ "MIT" ]
1
2021-03-05T09:36:50.000Z
2021-03-08T12:02:53.000Z
eval/report.py
DBCobra/CobraBench
d48697248948decc206cfba0a6e40fea8a772ff9
[ "MIT" ]
1
2021-03-03T06:57:02.000Z
2021-03-03T06:57:02.000Z
import pandas import numpy as np import math import os import sys import re from utils import * DIR_PATH = os.path.dirname(os.path.realpath(__file__)) percentiles = [ 10, 25, 50, 75, 90, 95, 99, 99.9 ] DATA_FOLDER = DIR_PATH + '/data' def getResult(trial_string, thread, client_num=2): print("thread: {}".format(t...
33.52988
110
0.557153
0
0
0
0
0
0
0
0
1,248
0.148289
f560efe52fd0d8fc1e6638e6bf52578a71fd2927
1,821
py
Python
platypush/backend/foursquare.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
228
2018-01-30T11:17:09.000Z
2022-03-24T11:22:26.000Z
platypush/backend/foursquare.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
167
2017-12-11T19:35:38.000Z
2022-03-27T14:45:30.000Z
platypush/backend/foursquare/__init__.py
BlackLight/runbullet
8d26c8634d2677b4402f0a21b9ab8244b44640db
[ "MIT" ]
16
2018-05-03T07:31:56.000Z
2021-12-05T19:27:37.000Z
from typing import Optional from platypush.backend import Backend from platypush.context import get_plugin from platypush.message.event.foursquare import FoursquareCheckinEvent class FoursquareBackend(Backend): """ This backend polls for new check-ins on the user's Foursquare account and triggers an event wh...
34.358491
115
0.697968
1,618
0.888523
0
0
0
0
0
0
624
0.342669
f560ffe95556ccc11b3d6d39837b76f47f81ba08
2,980
py
Python
src/data/make_dataset.py
karsti11/caffe_bar_sales_analysis
f7001bbf2d09c1ceeb8aef35322652a8495949ed
[ "MIT" ]
null
null
null
src/data/make_dataset.py
karsti11/caffe_bar_sales_analysis
f7001bbf2d09c1ceeb8aef35322652a8495949ed
[ "MIT" ]
null
null
null
src/data/make_dataset.py
karsti11/caffe_bar_sales_analysis
f7001bbf2d09c1ceeb8aef35322652a8495949ed
[ "MIT" ]
null
null
null
import os import time import pandas as pd from src.utils import get_project_root from src.data.item_names_replacement import REPLACE_DICT1, REPLACE_DICT1 YEARS = [str(x) for x in list(range(2013,2021))] ROOT_DIR = get_project_root() def string_to_float(number): #Custom function for converting 'sales_value' colum...
40.27027
125
0.632215
0
0
0
0
0
0
0
0
868
0.291275
f5617dd2284793a4d37b296ffc5aba3ca5a2e5d9
1,143
py
Python
aiml_bot/utilities.py
hosford42/pyaiml
42bb344d5f1d75c136e512bd05a44945d506f490
[ "BSD-2-Clause" ]
9
2017-08-17T08:34:44.000Z
2021-01-06T16:08:09.000Z
aiml_bot/utilities.py
hosford42/pyaiml
42bb344d5f1d75c136e512bd05a44945d506f490
[ "BSD-2-Clause" ]
2
2017-08-17T19:53:41.000Z
2020-01-22T23:19:44.000Z
aiml_bot/utilities.py
hosford42/pyaiml
42bb344d5f1d75c136e512bd05a44945d506f490
[ "BSD-2-Clause" ]
1
2018-07-29T19:16:14.000Z
2018-07-29T19:16:14.000Z
""" This file contains assorted general utility functions used by other modules in the aiml_bot package. """ # TODO: Correctly handle abbreviations. def split_sentences(text: str) -> list: """Split the string s into a list of sentences.""" if not isinstance(text, str): raise TypeError(text) positi...
29.307692
67
0.594051
0
0
0
0
0
0
0
0
311
0.272091
f565e620ce2b4fec57d532c3907bb966211865f1
5,858
py
Python
hard-gists/5181631/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/5181631/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/5181631/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import os, time, random from collections import defaultdict from System import Console, ConsoleColor, ConsoleKey from System.Threading import Thread, ThreadStart class Screen(object): red = ConsoleColor.Red; green = ConsoleColor.Green; blue = ConsoleColor.Blue;black = ConsoleColor.Black dimension = (21,39) ...
59.171717
177
0.669
5,337
0.911062
0
0
64
0.010925
0
0
325
0.05548
f566d3437e302ac56089e454a2ea9560ed781683
14,376
py
Python
dttpy/dttdata.py
neouniverse/dttpy
c5ff8870d796d84b39c4e6f82ec4eefe523cc3e7
[ "MIT" ]
null
null
null
dttpy/dttdata.py
neouniverse/dttpy
c5ff8870d796d84b39c4e6f82ec4eefe523cc3e7
[ "MIT" ]
null
null
null
dttpy/dttdata.py
neouniverse/dttpy
c5ff8870d796d84b39c4e6f82ec4eefe523cc3e7
[ "MIT" ]
null
null
null
# #! coding:utf-8 import xml.etree.ElementTree as ET from xml.etree import ElementTree import base64 import binascii import numpy as np import matplotlib.pyplot as plt from collections import OrderedDict SubType = {'1':'ASD','2':'CSD','3':'TF','4':'???','5':'COH'} average_type = {'0':'Fixed','1':'Exponential','2':'Ac...
38.438503
81
0.483097
13,866
0.964524
0
0
0
0
0
0
2,710
0.188509
f56710ff85a90ed722496b29dbe8a6afdffc8f9d
2,291
py
Python
neural_structured_learning/tools/graph_builder.py
eustomaqua/neural-structured-learning
e63a9e7ef435caaf6d70c04b6529e830bf47239d
[ "Apache-2.0" ]
null
null
null
neural_structured_learning/tools/graph_builder.py
eustomaqua/neural-structured-learning
e63a9e7ef435caaf6d70c04b6529e830bf47239d
[ "Apache-2.0" ]
null
null
null
neural_structured_learning/tools/graph_builder.py
eustomaqua/neural-structured-learning
e63a9e7ef435caaf6d70c04b6529e830bf47239d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.19403
80
0.717154
0
0
0
0
0
0
0
0
1,479
0.64557
f56a3c3291794639e68ab580cfe7cfde7175ba0c
11,672
py
Python
main/dataset.py
MarcSerraPeralta/rec-flows
d05c3eca944f2228cffa575698ee5b010e83f167
[ "MIT" ]
null
null
null
main/dataset.py
MarcSerraPeralta/rec-flows
d05c3eca944f2228cffa575698ee5b010e83f167
[ "MIT" ]
null
null
null
main/dataset.py
MarcSerraPeralta/rec-flows
d05c3eca944f2228cffa575698ee5b010e83f167
[ "MIT" ]
null
null
null
import torch from torch.utils import data import sys from sklearn.utils import shuffle import numpy as np import argparse import matplotlib.pyplot as plt class UserSet(data.Dataset): def __init__(self, path, tsplit, idim=100, seed=0, Nsongs=180198, pc_split=0.1, tag2vector_path=""): """ path : str path + fn...
36.936709
199
0.706306
4,920
0.421522
0
0
0
0
0
0
2,692
0.230637
f56aef37015ae46f5772b8eb36d680a12e113fe7
892
py
Python
back/LocationParser.py
DimaYurchenko/postdata-hackathon-app
f688491b27db991946fd104102a7912c1b104ea4
[ "MIT" ]
null
null
null
back/LocationParser.py
DimaYurchenko/postdata-hackathon-app
f688491b27db991946fd104102a7912c1b104ea4
[ "MIT" ]
null
null
null
back/LocationParser.py
DimaYurchenko/postdata-hackathon-app
f688491b27db991946fd104102a7912c1b104ea4
[ "MIT" ]
null
null
null
import json from typing import List from LocationObject import LocationObject def parse(file_path: str) -> List[LocationObject]: with open(file_path, "r") as file: data = json.loads(file.read().replace("\n", "")) locations: List[LocationObject] = [] for object in data: city = ...
27.030303
89
0.602018
0
0
0
0
0
0
0
0
103
0.115471
f56b8e9802094da8814e591262fd9b96c9698428
736
py
Python
data/train/python/f56b8e9802094da8814e591262fd9b96c9698428manage.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/f56b8e9802094da8814e591262fd9b96c9698428manage.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/f56b8e9802094da8814e591262fd9b96c9698428manage.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
#!/usr/bin/env python3 #-*- codin:utf-8 -*- ''' 用django + celery + redis演示异步队列任务。 不过文章写的太简略了,文章没啥意思,水平到了可以直接看代码。 python manage.py migrate -- looks at the INSTALLED_APPS setting and creates any necessary database tables according to the database settings in your mysite/settings.py file and the database migrations shipp...
33.454545
221
0.777174
0
0
0
0
0
0
0
0
653
0.784856
f56b9c719e339cbfa0c390fd236dda0208636e27
7,786
py
Python
nfp/servicos/controles/controle_execucao.py
FranciscoACLima/Robo_NFP_Selenium
7702854f94355fee8d78a4c04fc134cf099db5f0
[ "MIT" ]
null
null
null
nfp/servicos/controles/controle_execucao.py
FranciscoACLima/Robo_NFP_Selenium
7702854f94355fee8d78a4c04fc134cf099db5f0
[ "MIT" ]
16
2020-09-05T16:03:40.000Z
2022-03-19T17:42:05.000Z
nfp/servicos/controles/controle_execucao.py
FranciscoACLima/Robo_NFP_Selenium
7702854f94355fee8d78a4c04fc134cf099db5f0
[ "MIT" ]
null
null
null
import os from datetime import datetime from sqlalchemy.orm import sessionmaker import nfp.servicos.model as tables from nfp import CONEXAO class ControleExecucao(object): uri = '' tarefa = None tarefa_nova = False engine = CONEXAO def configurar_base_de_dados(self): self.DBSession = ses...
32.041152
96
0.595171
6,755
0.866692
0
0
0
0
0
0
761
0.097639
f56c33ff6b67b94fb127b4ea54ac62ad0efe9506
2,458
py
Python
artifactory/repository/repository.py
VeritasOS/py-artifactory
a54bde5cf31f02a1f836bb013ac17a78859b3370
[ "Apache-2.0" ]
6
2017-08-11T23:53:43.000Z
2019-10-25T17:34:11.000Z
artifactory/repository/repository.py
VeritasOS/py-artifactory
a54bde5cf31f02a1f836bb013ac17a78859b3370
[ "Apache-2.0" ]
2
2019-05-07T01:36:08.000Z
2021-03-31T18:40:11.000Z
artifactory/repository/repository.py
VeritasOS/py-artifactory
a54bde5cf31f02a1f836bb013ac17a78859b3370
[ "Apache-2.0" ]
2
2018-12-11T09:43:15.000Z
2019-10-25T18:19:05.000Z
# -*- coding: utf-8 -*- """ Artifactory repository endpoint """ __copyright__ = "Copyright (C) 2016 Veritas Technologies LLC. All rights reserved." # project imports from ..http import HTTP from .repotype import RepositoryType from .virtual import Virtual from .local import Local from .remote import Remote # define a...
27.311111
83
0.579333
2,019
0.8214
0
0
0
0
0
0
606
0.246542
f56e6fbda99325c6509cd93be29f620a11819e74
2,887
py
Python
app.py
PrismaPhonic/PetFinder-Exercise
a4d2c6293873299f9d6632158bca837a830fac98
[ "MIT" ]
null
null
null
app.py
PrismaPhonic/PetFinder-Exercise
a4d2c6293873299f9d6632158bca837a830fac98
[ "MIT" ]
null
null
null
app.py
PrismaPhonic/PetFinder-Exercise
a4d2c6293873299f9d6632158bca837a830fac98
[ "MIT" ]
null
null
null
"""Adoption application.""" from flask import Flask, request, redirect, render_template from models import db, connect_db, Pets from wtforms import StringField, IntegerField, TextAreaField, BooleanField from wtforms.validators import DataRequired,InputRequired,AnyOf,URL, NumberRange from flask_wtf import FlaskForm fro...
29.459184
114
0.66505
710
0.24593
0
0
1,476
0.511257
0
0
697
0.241427
f56f1c7317138379cc46e4bc9738fe0615922706
17,810
py
Python
pyrolite/util/resampling.py
bomtuckle/pyrolite
c0af0ade14ff26b4e9fdd5a033b27e73df085c55
[ "BSD-3-Clause" ]
69
2019-02-25T00:17:53.000Z
2022-03-31T17:26:48.000Z
pyrolite/util/resampling.py
bomtuckle/pyrolite
c0af0ade14ff26b4e9fdd5a033b27e73df085c55
[ "BSD-3-Clause" ]
68
2018-07-20T09:01:01.000Z
2022-03-31T16:28:36.000Z
pyrolite/util/resampling.py
bomtuckle/pyrolite
c0af0ade14ff26b4e9fdd5a033b27e73df085c55
[ "BSD-3-Clause" ]
24
2018-10-02T04:32:10.000Z
2021-11-10T08:24:17.000Z
""" Utilities for (weighted) bootstrap resampling applied to geoscientific point-data. """ import numpy as np import pandas as pd from .meta import subkwargs from .spatial import great_circle_distance, _get_sqare_grid_segment_indicies from .log import Handle logger = Handle(__name__) try: import sklea...
40.022472
131
0.614935
0
0
0
0
0
0
0
0
10,230
0.574396
f56fadc40b0f5bac091cf8c15f4a134f11cb883f
49
py
Python
sfrmaker/test/test_nhdplus_utils.py
mnfienen/sfrmaker
f3ee175c67c80df15bff509235d9a6218bfc6b0b
[ "CC0-1.0" ]
17
2015-08-15T02:20:04.000Z
2020-04-30T17:36:21.000Z
sfrmaker/test/test_nhdplus_utils.py
rfrederiksen/sfrmaker
7e66d67d6cb0ad84fbb9994402f0baaf5b3fcd01
[ "CC0-1.0" ]
15
2015-03-04T16:57:13.000Z
2020-01-14T16:29:18.000Z
sfrmaker/test/test_nhdplus_utils.py
rfrederiksen/sfrmaker
7e66d67d6cb0ad84fbb9994402f0baaf5b3fcd01
[ "CC0-1.0" ]
9
2015-08-18T14:15:07.000Z
2020-04-28T18:45:21.000Z
# TODO: add unit tests for test_nhdplus_utils.py
24.5
48
0.795918
0
0
0
0
0
0
0
0
48
0.979592
f570043bcd7ec43faf876327124a5a21c6d01798
1,809
py
Python
src/examples/stimuli-representation.py
cwardell97/learn-hippo-1
90280c614fb94aea82a60c2ed071db8068a37d5c
[ "MIT" ]
null
null
null
src/examples/stimuli-representation.py
cwardell97/learn-hippo-1
90280c614fb94aea82a60c2ed071db8068a37d5c
[ "MIT" ]
null
null
null
src/examples/stimuli-representation.py
cwardell97/learn-hippo-1
90280c614fb94aea82a60c2ed071db8068a37d5c
[ "MIT" ]
null
null
null
import numpy as np import seaborn as sns import matplotlib.pyplot as plt from task import SequenceLearning sns.set(style='white', palette='colorblind', context='poster') np.random.seed(0) '''how to use''' # init n_param, n_branch = 16, 4 pad_len = 0 n_parts = 2 n_samples = 256 p_rm_ob_enc = 0 p_rm_ob_rcl = 0 n_rm_fixe...
28.265625
74
0.666667
0
0
0
0
0
0
0
0
391
0.216142
f570cddcfd6909cf11435d43423d70ccb8d64b16
133
py
Python
WEEKS/wk17/CodeSignal-Solutions/Core_007_-_lateRide.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/wk17/CodeSignal-Solutions/Core_007_-_lateRide.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/wk17/CodeSignal-Solutions/Core_007_-_lateRide.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
def lateRide(n): hours = n // 60 minutes = n % 60 return (hours // 10) + (hours % 10) + (minutes // 10) + (minutes % 10)
26.6
74
0.511278
0
0
0
0
0
0
0
0
0
0
f571719391b271f64aa33623e91452b85398b280
704
py
Python
eventbusk/exceptions.py
Airbase/eventbusk
704d50a4c9c1f7d332dba93ee04ab07afa59d216
[ "BSD-3-Clause" ]
null
null
null
eventbusk/exceptions.py
Airbase/eventbusk
704d50a4c9c1f7d332dba93ee04ab07afa59d216
[ "BSD-3-Clause" ]
1
2021-06-13T18:08:50.000Z
2021-06-13T18:08:50.000Z
eventbusk/exceptions.py
Airbase/eventbusk
704d50a4c9c1f7d332dba93ee04ab07afa59d216
[ "BSD-3-Clause" ]
null
null
null
""" Custom exceptions """ from __future__ import annotations __all__ = [ "AlreadyRegistered", "ConsumerError", "EventBusError", "UnknownEvent", ] class EventBusError(Exception): """ Base of exceptions raised by the bus. """ class UnknownEvent(EventBusError): """ Raised when an r...
16.761905
79
0.661932
526
0.747159
0
0
0
0
0
0
415
0.589489
f572b933b1b5aed70aca3d4ac6ade4a2e8fe1e58
9,580
py
Python
sparse_ct/example/dgr_example.py
mozanunal/SparseCT
97d7f06c0414f934c7fa36023adcf9fe4c071eaf
[ "MIT" ]
11
2020-11-01T11:35:30.000Z
2022-03-30T02:19:52.000Z
sparse_ct/example/dgr_example.py
mozanunal/SparseCT
97d7f06c0414f934c7fa36023adcf9fe4c071eaf
[ "MIT" ]
8
2020-12-13T12:17:38.000Z
2021-12-21T21:04:27.000Z
sparse_ct/example/dgr_example.py
mozanunal/SparseCT
97d7f06c0414f934c7fa36023adcf9fe4c071eaf
[ "MIT" ]
null
null
null
from sparse_ct.tool import plot_grid from sparse_ct.data import image_to_sparse_sinogram from sparse_ct.reconstructor_2d import ( IRadonReconstructor, SartReconstructor, SartTVReconstructor, DgrReconstructor, SartBM3DReconstructor) import logging logging.basicConfig( filename='dgr_example_32_...
38.167331
93
0.423173
0
0
0
0
0
0
0
0
1,138
0.118789
f5735cd931c6cb22e8fa362f8340421fcf372c3d
1,340
py
Python
backend/app/settings/globals.py
alldevic/base-fastapi-postgresql
7e3a2916910155cd83b10cd7fec42eba7b1d3a95
[ "MIT" ]
3
2021-06-17T00:06:15.000Z
2022-01-26T03:53:51.000Z
backend/app/settings/globals.py
alldevic/base-fastapi-postgresql
7e3a2916910155cd83b10cd7fec42eba7b1d3a95
[ "MIT" ]
null
null
null
backend/app/settings/globals.py
alldevic/base-fastapi-postgresql
7e3a2916910155cd83b10cd7fec42eba7b1d3a95
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Optional from starlette.config import Config from starlette.datastructures import CommaSeparatedStrings from ..models.pydantic.database import DatabaseURL p: Path = Path(__file__).parents[2] / ".env" config: Config = Config(p if p.exists() else None) DATABASE: str = confi...
31.162791
72
0.750746
0
0
0
0
0
0
0
0
185
0.13806
f5738865aace2f3446a95a35c7f51b460031ae67
1,607
py
Python
03. Advanced (Nested) Conditional Statements/P09 Fruit Shop #.py
KrisBestTech/Python-Basics
10bd961bf16d15ddb94bbea53327b4fc5bfdba4c
[ "MIT" ]
null
null
null
03. Advanced (Nested) Conditional Statements/P09 Fruit Shop #.py
KrisBestTech/Python-Basics
10bd961bf16d15ddb94bbea53327b4fc5bfdba4c
[ "MIT" ]
null
null
null
03. Advanced (Nested) Conditional Statements/P09 Fruit Shop #.py
KrisBestTech/Python-Basics
10bd961bf16d15ddb94bbea53327b4fc5bfdba4c
[ "MIT" ]
null
null
null
fruit = str(input()) day_of_the_week = str(input()) quantity = float(input()) price = 0 if fruit == 'banana' or \ fruit == 'apple' or \ fruit == 'orange' or \ fruit == 'grapefruit' or \ fruit == 'kiwi' or \ fruit == 'pineapple' or \ fruit == 'grapes': if day_of_the_...
21.716216
71
0.47542
0
0
0
0
0
0
0
0
298
0.185439
f573e98c3617ee161a5bc2f46171d1b7f2905fc3
1,368
py
Python
trajectories/tests/test_DTW.py
donsheehy/geomcps
b4ef5dbf0fed21927485b01580b724272f84d9ed
[ "MIT" ]
null
null
null
trajectories/tests/test_DTW.py
donsheehy/geomcps
b4ef5dbf0fed21927485b01580b724272f84d9ed
[ "MIT" ]
null
null
null
trajectories/tests/test_DTW.py
donsheehy/geomcps
b4ef5dbf0fed21927485b01580b724272f84d9ed
[ "MIT" ]
null
null
null
import unittest from trajectories.dynamic_time_warper import * from trajectories.trajectory import Trajectory from trajectories.point import Point class TestDTW(unittest.TestCase): def test_1D_DTW(self): t1 = [1,2,2,10,2,1] t2 = [3,3,5,5,2] self.assertEqual(45, dtw(t1, t2, -1, metricI)) ...
33.365854
93
0.54386
1,171
0.855994
0
0
0
0
0
0
10
0.00731
f57687a33470d7205bc87af05ce7973af384b2a0
235
py
Python
1103.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
3
2021-09-21T18:50:20.000Z
2021-12-14T13:07:31.000Z
1103.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
1103.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
while True: h1,m1,h2,m2=map(int,input().split()) i=f=0 if m1+m2+h1+h2==0:break if h1==0:i=(24*60)+m1 else:i=(h1*60)+m1 if h2==0:f=(24*60)+m2 else:f=(h2*60)+m2 print(f-i) if f>i else print((24*60)-(i-f))
23.5
47
0.52766
0
0
0
0
0
0
0
0
0
0
f578b94c9410c26b42768750abeeeeadcdf0cd8f
4,820
py
Python
portfolio_pj/portfolio_app/views.py
duynb92/portfolio_site_py
b69be83a11d9adafae664bf08e506273f541ff53
[ "MIT" ]
null
null
null
portfolio_pj/portfolio_app/views.py
duynb92/portfolio_site_py
b69be83a11d9adafae664bf08e506273f541ff53
[ "MIT" ]
4
2020-02-11T23:47:01.000Z
2021-06-10T21:12:36.000Z
portfolio_pj/portfolio_app/views.py
duynb92/portfolio_site_py
b69be83a11d9adafae664bf08e506273f541ff53
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db.models import Count from django.template import RequestContext from django.views.decorators.csrf import csrf_exempt from django.htt...
41.551724
111
0.700415
0
0
0
0
0
0
0
0
873
0.18112
f5792851b55e8b741f344366679574e04969bc93
1,022
py
Python
backend/repositories/bookmark_repository.py
heshikirihasebe/fastapi-instagram-clone
7bc265a62160171c5c5c1b2f18b3c86833cb64e7
[ "MIT" ]
1
2022-02-08T19:35:22.000Z
2022-02-08T19:35:22.000Z
backend/repositories/bookmark_repository.py
heshikirihasebe/fastapi-instagram-clone
7bc265a62160171c5c5c1b2f18b3c86833cb64e7
[ "MIT" ]
null
null
null
backend/repositories/bookmark_repository.py
heshikirihasebe/fastapi-instagram-clone
7bc265a62160171c5c5c1b2f18b3c86833cb64e7
[ "MIT" ]
null
null
null
import datetime from ..databases.postgresql import session from ..models.bookmark_model import Bookmark # Select one async def select_one(user_id: int, post_id: int): bookmark = session.query(Bookmark).filter(Bookmark.user_id == user_id, Bookmark.post_id == post_id).first() return bookmark # Insert async def ...
31.9375
116
0.720157
0
0
0
0
0
0
856
0.837573
46
0.04501
f57b07d03e45e8f7fc9d99adb6fc72590a4d7edd
3,326
py
Python
D3_cgi/support/uman.py
slzjw26/learn_Pthon
9c4053ec1ea4c32a01fa2658499d8e53a4a532f3
[ "MIT" ]
null
null
null
D3_cgi/support/uman.py
slzjw26/learn_Pthon
9c4053ec1ea4c32a01fa2658499d8e53a4a532f3
[ "MIT" ]
null
null
null
D3_cgi/support/uman.py
slzjw26/learn_Pthon
9c4053ec1ea4c32a01fa2658499d8e53a4a532f3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # # User management application # """ 六、用python写一个cgi程序,功能如下: 1. 查询用户 (get) 2. 创建用户 (post) 3. 修改用户 (post) 4. 删除用户 (post) 要点: 1. 通过变量 REQUEST_METHOD 来判断是get还是post 2. 通过变量 QUERY_STRING 来判断是创建还是修改还是删除 3. 通过subprocess.getoutput, 或者os.system 来运行shell命令 4. 相关命令如下: ...
27.262295
77
0.591401
0
0
0
0
0
0
0
0
1,553
0.425014
f57b96c36aa134214c43fa41994f0ddf57c913f2
1,979
py
Python
main.py
TheGreatRambler/blender-universal-exporter
996191a787b36aa6ea007b82a36b9a752b9f50ee
[ "MIT" ]
2
2018-10-11T17:34:51.000Z
2021-04-26T20:51:45.000Z
main.py
TheGreatRambler/blender-universal-exporter
996191a787b36aa6ea007b82a36b9a752b9f50ee
[ "MIT" ]
null
null
null
main.py
TheGreatRambler/blender-universal-exporter
996191a787b36aa6ea007b82a36b9a752b9f50ee
[ "MIT" ]
null
null
null
bl_info = { "name": "Universal Exporter", "category": "Import & Export", } import bpy class Export(bpy.types.Operator): """Export blender project""" bl_idname = "object.export_scene" bl_label = "Export Blender Scene" bl_options = {'REGISTER', 'UNDO'} def execute(self, context): s...
32.983333
69
0.458312
1,724
0.871147
0
0
0
0
0
0
252
0.127337
f57c524ea058c9eaac99f335f5d9b80e94762f25
2,024
py
Python
chmm_files/chmm_gen.py
IvanTyulyandin/Lin_alg_Viterbi
0359c33ed67f8748cd51e8852555ea2fa35b9365
[ "Apache-2.0" ]
null
null
null
chmm_files/chmm_gen.py
IvanTyulyandin/Lin_alg_Viterbi
0359c33ed67f8748cd51e8852555ea2fa35b9365
[ "Apache-2.0" ]
null
null
null
chmm_files/chmm_gen.py
IvanTyulyandin/Lin_alg_Viterbi
0359c33ed67f8748cd51e8852555ea2fa35b9365
[ "Apache-2.0" ]
null
null
null
import random # Parameters states_num: int = 900 trans_per_state: int = 3 transitions_num: int = trans_per_state * states_num num_non_zero_start_probs: int = 2 emit_range: int = 20 file_name: str = "random_" + \ str(states_num) + "_" + str(transitions_num) + "_" + \ str(emit_range) + "_" + str(num_non_zero_st...
32.126984
77
0.64081
0
0
0
0
0
0
0
0
378
0.186759
f57e7874385469f7089b57659f20f37fe7da9980
1,764
py
Python
solutions/0409-longest-palindrome/longest-palindrome.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
solutions/0409-longest-palindrome/longest-palindrome.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
solutions/0409-longest-palindrome/longest-palindrome.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
# Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. # # This is case sensitive, for example "Aa" is not considered a palindrome here. # # Note: # Assume the length of given string will not exceed 1,010. # # # Example: ...
20.275862
148
0.616213
548
0.310658
0
0
0
0
0
0
1,152
0.653061
f57f22bf388fb4aa2a7b99663c5c1b62f0a9da4f
108
py
Python
getpaid/rest_framework/apps.py
wuuuduu/django-getpaid
d864de53bc947e2d1ab4f2d3879a803cab1216d3
[ "MIT" ]
6
2020-05-26T08:49:10.000Z
2022-01-03T17:44:19.000Z
getpaid/rest_framework/apps.py
wuuuduu/django-getpaid
d864de53bc947e2d1ab4f2d3879a803cab1216d3
[ "MIT" ]
null
null
null
getpaid/rest_framework/apps.py
wuuuduu/django-getpaid
d864de53bc947e2d1ab4f2d3879a803cab1216d3
[ "MIT" ]
1
2021-08-23T06:59:05.000Z
2021-08-23T06:59:05.000Z
from django.apps import AppConfig class GetpaidRestConfig(AppConfig): name = "getpaid_rest_framework"
18
35
0.796296
71
0.657407
0
0
0
0
0
0
24
0.222222
f580e360a82ba7dad75ab77286f0111cf9d43ab3
392
py
Python
new_server.py
19bcs2410/flask_updated-web-chat
c72644a2b1feb2c6ba3b6c1c8d0ec53817e6d05e
[ "MIT" ]
null
null
null
new_server.py
19bcs2410/flask_updated-web-chat
c72644a2b1feb2c6ba3b6c1c8d0ec53817e6d05e
[ "MIT" ]
null
null
null
new_server.py
19bcs2410/flask_updated-web-chat
c72644a2b1feb2c6ba3b6c1c8d0ec53817e6d05e
[ "MIT" ]
null
null
null
import socketio import socketio sio = socketio.Client() @sio.event def connect(): print('connection established') @sio.event def my_message(data): print('message received with ', data) sio.emit('my response', {'response': 'my response'}) @sio.event def disconnect(): print('disconne...
17.818182
57
0.660714
0
0
0
0
265
0.67602
0
0
133
0.339286
f582dcf3f1bc8baf921c638fcb41729df76ff930
2,042
py
Python
ricecooker/utils/libstudio.py
elaeon/ricecooker
e5ef13478625b6996775ae7690e027140bc63373
[ "MIT" ]
null
null
null
ricecooker/utils/libstudio.py
elaeon/ricecooker
e5ef13478625b6996775ae7690e027140bc63373
[ "MIT" ]
1
2019-04-20T07:14:04.000Z
2019-04-20T07:14:04.000Z
ricecooker/utils/libstudio.py
nucleogenesis/ricecooker
7525f842e34f5bbb37d1f2d3c85872faa32724ff
[ "MIT" ]
null
null
null
import requests import requests_cache requests_cache.install_cache() from ricecooker.config import LOGGER STUDIO_URL = 'https://studio.learningequality.org' NODES_ENDPOINT = STUDIO_URL + '/api/get_nodes_by_ids_complete/' LICENSES_LIST_ENDPOINT = STUDIO_URL + '/api/license' # TODO https://studio.learningequa...
37.127273
94
0.664055
1,574
0.770813
0
0
0
0
0
0
515
0.252204
f583aafa3eab4133dcbce8cce69eba93bfd77474
2,163
py
Python
Python/kruskal.py
AtilioA/algoritmos-teoria-dos-grafos
287234d9d4c5c16707dfe71629f5c237e1759826
[ "Unlicense" ]
2
2020-05-14T14:12:45.000Z
2020-09-07T20:44:23.000Z
Python/kruskal.py
AtilioA/teoria-dos-grafos
287234d9d4c5c16707dfe71629f5c237e1759826
[ "Unlicense" ]
null
null
null
Python/kruskal.py
AtilioA/teoria-dos-grafos
287234d9d4c5c16707dfe71629f5c237e1759826
[ "Unlicense" ]
null
null
null
# Supostamente não funciona from aresta import Aresta from insert import insert_sort from collections import defaultdict def kruskal(arestas): arestas, vertices = insert_sort(arestas, defaultdict()) # Inicializa a árvore de fato arvore = list() # vertices terá o número de chaves do dicionário retorna...
33.796875
90
0.609801
0
0
0
0
0
0
0
0
1,181
0.542241
f58515c1c70e7d555b4680ca39bcd04616159789
1,983
py
Python
metodoDePaulo.py
paulossa/MSN
e80b4b82ae865ea50f69619712f7e73dc1eac95d
[ "MIT" ]
null
null
null
metodoDePaulo.py
paulossa/MSN
e80b4b82ae865ea50f69619712f7e73dc1eac95d
[ "MIT" ]
null
null
null
metodoDePaulo.py
paulossa/MSN
e80b4b82ae865ea50f69619712f7e73dc1eac95d
[ "MIT" ]
null
null
null
# coding: utf-8 import sys __author__ = "Paulo Sérgio dos Santos Araujo" __license__ = "MIT" __version__ = "1.0.0" __email__ = "paulo.araujo [at] splab.ufcg.edu.br" class Msn: """ Essa classe feita para disciplina de Métodos de Software Númericos - UFCG 2018.2 se propõe a encontrar as raízes de uma certa...
36.054545
122
0.534039
1,559
0.77911
0
0
0
0
0
0
853
0.426287
f585cb72a0db164994f5a14aac9910a31f98b2a9
1,096
py
Python
unit1/data-types.py
mmunozz/merit-notes
66c04939eb2aa9f63efe4ef947c291aafbc1ce0a
[ "MIT" ]
null
null
null
unit1/data-types.py
mmunozz/merit-notes
66c04939eb2aa9f63efe4ef947c291aafbc1ce0a
[ "MIT" ]
null
null
null
unit1/data-types.py
mmunozz/merit-notes
66c04939eb2aa9f63efe4ef947c291aafbc1ce0a
[ "MIT" ]
null
null
null
""" Project: Data Types Notes Author: Mr. Buckley Last update: 8/25/2018 Description: Goes over comments, int, float, str, and type casting """ # *** COMMENTS *** # This is a comment (with a "#") # Comments are only for the user's eyes, the program doesn't read them. # Describe what sections of code do with...
20.296296
71
0.671533
0
0
0
0
0
0
0
0
780
0.711679
f5869e041f8cfc604cdaeae8bc529488e18f09e4
3,812
py
Python
zarr-dataset/test_anime_faces.py
tinon224/experiments
cbe066fb9eec20f290eaff5bb19131616af61bee
[ "MIT" ]
103
2015-03-28T14:32:44.000Z
2021-03-31T08:20:24.000Z
zarr-dataset/test_anime_faces.py
tinon224/experiments
cbe066fb9eec20f290eaff5bb19131616af61bee
[ "MIT" ]
6
2016-05-17T13:31:56.000Z
2020-11-13T17:19:19.000Z
zarr-dataset/test_anime_faces.py
tinon224/experiments
cbe066fb9eec20f290eaff5bb19131616af61bee
[ "MIT" ]
106
2015-05-10T14:29:06.000Z
2021-07-13T08:19:19.000Z
import os import zarr import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import DataLoader from torch.utils.data import Dataset from tqdm import tqdm, trange class FaceDataset(Dataset): def __init__(self, path, transforms=None): self.path = path self.keys = (...
33.147826
88
0.597587
2,057
0.539612
0
0
0
0
0
0
159
0.04171
f586db857714c3a406cc8d011335a90b361a86d4
1,066
py
Python
pepper/spiders/pepper.py
Guilehm/dr-pepper-crawler
0cc02f8b9bf9a739cb1644d4ef4c0c566428f6a2
[ "MIT" ]
null
null
null
pepper/spiders/pepper.py
Guilehm/dr-pepper-crawler
0cc02f8b9bf9a739cb1644d4ef4c0c566428f6a2
[ "MIT" ]
2
2021-03-31T19:47:28.000Z
2021-06-08T20:39:41.000Z
pepper/spiders/pepper.py
Guilehm/dr-pepper-crawler
0cc02f8b9bf9a739cb1644d4ef4c0c566428f6a2
[ "MIT" ]
null
null
null
import os import scrapy from pepper.items import PepperItem class PepperSpider(scrapy.Spider): name = 'pepper' start_urls = ['https://blog.drpepper.com.br'] def parse(self, response): images = response.xpath( './/img[contains(@class,"size-full")]' ) images += respons...
28.052632
93
0.541276
1,001
0.939024
891
0.835835
0
0
0
0
265
0.248593
f5885ba233a8e2203989f8de45355db074bbea32
4,334
py
Python
spotseeker_server/test/search/uw_noise_level.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
5
2015-03-12T00:36:33.000Z
2022-02-24T16:41:25.000Z
spotseeker_server/test/search/uw_noise_level.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
133
2016-02-03T23:54:45.000Z
2022-03-30T21:33:58.000Z
spotseeker_server/test/search/uw_noise_level.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
6
2015-01-07T23:21:15.000Z
2017-12-07T08:26:33.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.test import TestCase from django.test.client import Client from django.test.utils import override_settings import simplejson as json from spotseeker_server.models import Spot, SpotExtendedInfo from spotseeker_server.org_...
42.910891
79
0.682972
3,512
0.810337
0
0
3,709
0.855791
0
0
1,140
0.263036
f58a63fcbad7aec0c720d44005782e265c314a57
17
py
Python
inventoryanalytics/simulation/deterministic/__init__.py
vishalbelsare/inventoryanalytics
85feff8f1abaf2c29414e066eed096ac3a74973b
[ "MIT" ]
7
2018-06-17T02:45:33.000Z
2021-06-11T09:13:06.000Z
inventoryanalytics/simulation/deterministic/__init__.py
vishalbelsare/inventoryanalytics
85feff8f1abaf2c29414e066eed096ac3a74973b
[ "MIT" ]
1
2021-02-07T03:33:22.000Z
2021-06-02T21:11:59.000Z
inventoryanalytics/simulation/deterministic/__init__.py
vishalbelsare/inventoryanalytics
85feff8f1abaf2c29414e066eed096ac3a74973b
[ "MIT" ]
7
2018-07-14T19:45:43.000Z
2021-10-12T09:45:04.000Z
__all__ = ["des"]
17
17
0.588235
0
0
0
0
0
0
0
0
5
0.294118
f58b58dad3bb3dc21147ea1fd781e8e5e4ef8b49
185
py
Python
spotdl/metadata/providers/__init__.py
khjxiaogu/spotify-downloader
a8dcb8d998da0769bbe210f2808d16b346453c23
[ "MIT" ]
4,698
2017-06-20T22:37:10.000Z
2022-03-28T13:38:07.000Z
spotdl/metadata/providers/__init__.py
Delgan/spotify-downloader
8adf3e8d6b98269b1538dd91c9a44ed345c77545
[ "MIT" ]
690
2017-06-20T20:08:42.000Z
2022-02-26T23:36:07.000Z
spotdl/metadata/providers/__init__.py
Delgan/spotify-downloader
8adf3e8d6b98269b1538dd91c9a44ed345c77545
[ "MIT" ]
741
2017-06-21T23:32:51.000Z
2022-03-07T12:11:54.000Z
from spotdl.metadata.providers.spotify import ProviderSpotify from spotdl.metadata.providers.youtube import ProviderYouTube from spotdl.metadata.providers.youtube import YouTubeSearch
37
61
0.881081
0
0
0
0
0
0
0
0
0
0
f58db2e3a8108081fdad6ca36c2b07a1f84d614d
1,476
py
Python
_03_AttributesAndMethodsLab/_02_Integer.py
Andrey-V-Georgiev/PythonOOP
73aabdccace5ce7183c39e2f5674f7e17475b1cc
[ "MIT" ]
1
2021-06-30T10:34:38.000Z
2021-06-30T10:34:38.000Z
_03_AttributesAndMethodsLab/_02_Integer.py
Andrey-V-Georgiev/PythonOOP
73aabdccace5ce7183c39e2f5674f7e17475b1cc
[ "MIT" ]
null
null
null
_03_AttributesAndMethodsLab/_02_Integer.py
Andrey-V-Georgiev/PythonOOP
73aabdccace5ce7183c39e2f5674f7e17475b1cc
[ "MIT" ]
null
null
null
from math import floor class Integer: def __init__(self, value): self.value = value @classmethod def from_float(cls, float_value): if isinstance(float_value, float): return cls(floor(float_value)) else: return 'value is not a float' @classmethod d...
25.448276
89
0.554201
1,287
0.871951
0
0
958
0.649051
0
0
121
0.081978
f58e292660fbb4b40d7f4326ad34ea03b891aa42
324
py
Python
app/app/schemas/token.py
Tall-Programacion-FIME/backend
95b6934fd57086ffc2be3d9135732df3d240f694
[ "Apache-2.0" ]
null
null
null
app/app/schemas/token.py
Tall-Programacion-FIME/backend
95b6934fd57086ffc2be3d9135732df3d240f694
[ "Apache-2.0" ]
13
2021-03-04T22:59:54.000Z
2021-05-16T23:24:22.000Z
app/app/schemas/token.py
Tall-Programacion-FIME/backend
95b6934fd57086ffc2be3d9135732df3d240f694
[ "Apache-2.0" ]
1
2021-04-20T14:51:43.000Z
2021-04-20T14:51:43.000Z
import datetime from typing import Optional from pydantic import BaseModel class TokenBase(BaseModel): access_token: str class Token(TokenBase): refresh_token: str class TokenData(BaseModel): username: Optional[str] = None class VerificationToken(BaseModel): user_id: int exp: datetime.datet...
14.727273
35
0.753086
236
0.728395
0
0
0
0
0
0
0
0
f58e82435946520f98ad569c02443f0eda8332d6
1,988
py
Python
bot/finance.py
kianhean/ShiokBot
948417ead579d7476350592f0a960c2c0ea8b757
[ "BSD-2-Clause" ]
6
2017-04-06T02:55:16.000Z
2020-01-27T05:14:12.000Z
bot/finance.py
kianhean/ShiokBot
948417ead579d7476350592f0a960c2c0ea8b757
[ "BSD-2-Clause" ]
13
2016-09-12T14:24:22.000Z
2021-10-22T01:19:43.000Z
bot/finance.py
kianhean/ShiokBot
948417ead579d7476350592f0a960c2c0ea8b757
[ "BSD-2-Clause" ]
1
2016-09-12T14:01:49.000Z
2016-09-12T14:01:49.000Z
import json from urllib.request import urlopen import requests from bs4 import BeautifulSoup def get_sti(): # https://github.com/hongtaocai/googlefinance return '<a href="https://chart.finance.yahoo.com/t?s=%5eSTI&lang=en-SG&region=SG&width=300&height=180" >' def get_fx(): url = 'https://eservices.mas....
33.694915
153
0.639336
0
0
0
0
0
0
0
0
715
0.359658
f5915199b7c0be4872a450c1503f4eb928f9e20f
637
py
Python
dependencyinjection/internal/callsite_resolvers.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
dependencyinjection/internal/callsite_resolvers.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
dependencyinjection/internal/callsite_resolvers.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com> # ---------- # # ---------- from .common import LifeTime, IServiceProvider, ICallSiteResolver from .descriptors import CallableDescriptor class CallSiteResolver(ICallSiteResolver): def __init__(self, service_provider: IServiceProvi...
33.526316
98
0.726845
413
0.648352
0
0
0
0
0
0
105
0.164835
f5931d77f9a036d1b90d5e9b889749394d2eff5e
1,124
py
Python
pipeline/filterstories.py
Xirider/BookGen
6eaffa936aea3215944dbfbf7ec92398b6e44587
[ "MIT" ]
1
2021-05-31T09:40:19.000Z
2021-05-31T09:40:19.000Z
pipeline/filterstories.py
Xirider/BookGen
6eaffa936aea3215944dbfbf7ec92398b6e44587
[ "MIT" ]
1
2021-06-30T14:35:22.000Z
2021-06-30T14:35:22.000Z
pipeline/filterstories.py
Xirider/BookGen
6eaffa936aea3215944dbfbf7ec92398b6e44587
[ "MIT" ]
null
null
null
from joblib import Memory cachedir = "cache" memory = Memory(cachedir, verbose=10) # @memory.cache def filter_ff_stories(books, max_rating, min_words, max_words, min_chapters, max_chapters, max_books): print("filtering ff stories") ratings = {"K":1, "K+":2, "T":3, "M":4, "MA":5 } rating_number = ratings...
25.545455
102
0.572954
0
0
0
0
0
0
0
0
145
0.129004
f5936c772afa998f17b6206beacedcb9d549bb50
2,167
py
Python
GoAround/goaround.py
AJunque9/GoAround
1f432a6a80e057e818e2c2073d3bafebba49de48
[ "MIT" ]
6
2021-10-03T10:42:59.000Z
2022-01-05T05:25:57.000Z
GoAround/goaround.py
AJunque9/GoAround
1f432a6a80e057e818e2c2073d3bafebba49de48
[ "MIT" ]
null
null
null
GoAround/goaround.py
AJunque9/GoAround
1f432a6a80e057e818e2c2073d3bafebba49de48
[ "MIT" ]
1
2021-10-13T08:38:58.000Z
2021-10-13T08:38:58.000Z
import sys import helpers.printer import helpers.parser import helpers.config import program.obfuscation import program.bypass modes = helpers.config.Modes bypass_methods = helpers.config.BypassMethods obfuscation_methods = helpers.config.ObfuscationMethods printer = helpers.printer.Printer() parser = helpers.parser....
29.283784
103
0.616059
0
0
0
0
0
0
0
0
363
0.167513
f594558a69e840af8885fc68a994d40b44b65eaf
1,169
py
Python
src/data/CIFAR10_utils.py
namanwahi/Transfer-Learning
93b9f664fd727a93e0b09b859a20d863602ec743
[ "MIT" ]
null
null
null
src/data/CIFAR10_utils.py
namanwahi/Transfer-Learning
93b9f664fd727a93e0b09b859a20d863602ec743
[ "MIT" ]
null
null
null
src/data/CIFAR10_utils.py
namanwahi/Transfer-Learning
93b9f664fd727a93e0b09b859a20d863602ec743
[ "MIT" ]
null
null
null
import torch import torchvision import torchvision.transforms as transforms from torch.utils.data.sampler import SubsetRandomSampler from torch.utils.data import DataLoader import os path = os.path.abspath(__file__) dir_path = os.path.dirname(path) resnet_18_default = 224 def _get_dataset(resize=resnet_18_default): ...
33.4
107
0.718563
0
0
0
0
0
0
0
0
113
0.096664
f5970041908938ed814405d6c8377946dc2070bf
3,680
py
Python
SVHN/svhn.py
Tenant/Densenet-Tensorflow
27dca5a3f1a18ae070a8a6387c8a36b2a4be197e
[ "MIT" ]
null
null
null
SVHN/svhn.py
Tenant/Densenet-Tensorflow
27dca5a3f1a18ae070a8a6387c8a36b2a4be197e
[ "MIT" ]
null
null
null
SVHN/svhn.py
Tenant/Densenet-Tensorflow
27dca5a3f1a18ae070a8a6387c8a36b2a4be197e
[ "MIT" ]
null
null
null
from scipy import io import numpy as np import random import tensorflow as tf class_num = 10 image_size = 32 img_channels = 3 def OneHot(label,n_classes): label=np.array(label).reshape(-1) label=np.eye(n_classes)[label] return label def prepare_data(): classes = 10 data1 = io.loadmat('./data/...
32.857143
108
0.6
0
0
0
0
0
0
0
0
375
0.101902
f59759138fa73fcc525ff95be2e388e6c99396f6
530
py
Python
app/models/user.py
johnshumon/fastapi-boilerplate
f0cb31e74ab773b8ce044149b17ce24c2e7fa4fc
[ "MIT" ]
null
null
null
app/models/user.py
johnshumon/fastapi-boilerplate
f0cb31e74ab773b8ce044149b17ce24c2e7fa4fc
[ "MIT" ]
null
null
null
app/models/user.py
johnshumon/fastapi-boilerplate
f0cb31e74ab773b8ce044149b17ce24c2e7fa4fc
[ "MIT" ]
null
null
null
""" User models module """ from sqlalchemy import Column, Integer, String from app.models import Base class User(Base): """User class""" id: int = Column(Integer, primary_key=True, index=True) firstname: str = Column(String(50), nullable=False, index=True) lastname: str = Column(String(50), nullabl...
27.894737
79
0.696226
423
0.798113
0
0
0
0
0
0
42
0.079245
f5987f75714e27b31f8445c59b2b8df50b29383c
782
py
Python
oops_fhir/r4/value_set/parent_relationship_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/parent_relationship_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/parent_relationship_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.v3_role_code import v3RoleCode __all__ = ["ParentRelationshipCodes"] _resource = _ValueSet.parse_file(Path(__file__).with_suffix(".json")) class ParentRelationsh...
23
76
0.751918
483
0.617647
0
0
0
0
0
0
409
0.523018
f59c2ee308a2569240f5244e69e497fec60a9ffe
253
py
Python
setting.py
JamesPerlman/Dain-App
f589abdca8309cfdb6dd106da7c7c4613d152c72
[ "MIT" ]
688
2020-12-02T18:02:21.000Z
2022-03-31T09:56:14.000Z
setting.py
JamesPerlman/Dain-App
f589abdca8309cfdb6dd106da7c7c4613d152c72
[ "MIT" ]
29
2020-12-03T00:21:25.000Z
2021-12-04T22:32:42.000Z
setting.py
JamesPerlman/Dain-App
f589abdca8309cfdb6dd106da7c7c4613d152c72
[ "MIT" ]
88
2020-12-03T00:13:29.000Z
2022-03-26T16:03:38.000Z
counter = 0 interpolations = None padding = None def AddCounter(tag): global counter #print("\nSetting:\n" +tag +": " + str(counter) + "\n") counter += 1 def SetPad(pad): global padding padding = pad def GetPad(): global padding return padding
15.8125
56
0.679842
0
0
0
0
0
0
0
0
55
0.217391
f59da655c4bae4aa2a9b07d54d040a1c00439910
1,540
py
Python
bgjobs/plugins.py
holtgrewe/sodar_core
116c5c8abc1dea483a640ba68af6d5cf4d27c8d7
[ "MIT" ]
null
null
null
bgjobs/plugins.py
holtgrewe/sodar_core
116c5c8abc1dea483a640ba68af6d5cf4d27c8d7
[ "MIT" ]
null
null
null
bgjobs/plugins.py
holtgrewe/sodar_core
116c5c8abc1dea483a640ba68af6d5cf4d27c8d7
[ "MIT" ]
null
null
null
"""Code related to ``django-plugins``. First, it creates a ``ProjectAppPluginPoint`` for the ``bgjobs`` app. Second, it creates a new plugin point for the registering ``BackgroundJob`` specializations. """ from djangoplugins.point import PluginPoint from projectroles.plugins import ProjectAppPluginPoint from .urls ...
26.551724
77
0.718831
1,195
0.775974
0
0
0
0
0
0
952
0.618182
f5a27b850295f14cce9d9e2cff15b6524fbbecf8
4,562
py
Python
cogs/automod.py
ZeroTwo36/midna
f78591baacdd32386d9155cb7728de7384016361
[ "MIT" ]
1
2022-01-18T09:53:34.000Z
2022-01-18T09:53:34.000Z
cogs/automod.py
ZeroTwo36/midna
f78591baacdd32386d9155cb7728de7384016361
[ "MIT" ]
null
null
null
cogs/automod.py
ZeroTwo36/midna
f78591baacdd32386d9155cb7728de7384016361
[ "MIT" ]
null
null
null
import discord as nextcord import asyncio from discord.ext import commands import json import time import typing def log(*,text): ... class AutoMod(commands.Cog): def __init__(self,bot): self.bot=bot self._cd = commands.CooldownMapping.from_cooldown(5, 5, commands.BucketType.membe...
38.016667
153
0.622534
4,363
0.95575
0
0
3,895
0.853231
3,300
0.722892
904
0.198028
f5a40afb92b821bdbd1bca8cea58ac0b9702d2e6
960
py
Python
task07.py
G00387867/pands-problems
01db5fd26eb0327f6f61da7e06dfe1f2b9f0333c
[ "MIT" ]
null
null
null
task07.py
G00387867/pands-problems
01db5fd26eb0327f6f61da7e06dfe1f2b9f0333c
[ "MIT" ]
null
null
null
task07.py
G00387867/pands-problems
01db5fd26eb0327f6f61da7e06dfe1f2b9f0333c
[ "MIT" ]
null
null
null
# Adam # A program that reads in a text # file and outputs the number of e's it contains # The program takes the filename from # an argument on the command line. # I found information on this website: # https://www.sanfoundry.com/python-program-read-file-counts-number/ #fname = input("Enter file name: ") #l = input(...
20.869565
68
0.558333
0
0
0
0
0
0
0
0
620
0.645833
f5a59287ceaf7b3b0006e335abd2aae06f9ad302
3,936
py
Python
texext/tests/test_tinypages.py
effigies/texext
545ecf3715ab43bfb95859861fbb17af1fef512d
[ "BSD-2-Clause" ]
null
null
null
texext/tests/test_tinypages.py
effigies/texext
545ecf3715ab43bfb95859861fbb17af1fef512d
[ "BSD-2-Clause" ]
null
null
null
texext/tests/test_tinypages.py
effigies/texext
545ecf3715ab43bfb95859861fbb17af1fef512d
[ "BSD-2-Clause" ]
null
null
null
""" Tests for tinypages build using sphinx extensions """ from os.path import (join as pjoin, dirname, isdir) import sphinx SPHINX_ge_1p5 = sphinx.version_info[:2] >= (1, 5) from sphinxtesters import PageBuilder HERE = dirname(__file__) PAGES = pjoin(HERE, 'tinypages') from texext.tests.test_plotdirective import f...
37.485714
71
0.54497
3,446
0.875508
0
0
389
0.098831
0
0
1,846
0.469004
f5a8efb033fff75dd7f358a028f0ce20386e8ec9
3,708
py
Python
core.py
marcolcl/django-toolkit
f425cccb6f55f3afce4326e7e79770e5c36c9646
[ "MIT" ]
1
2021-04-07T14:25:01.000Z
2021-04-07T14:25:01.000Z
core.py
marcolcl/django-toolkit
f425cccb6f55f3afce4326e7e79770e5c36c9646
[ "MIT" ]
5
2021-03-30T14:08:53.000Z
2021-09-22T19:29:42.000Z
core.py
marcolcl/django-toolkit
f425cccb6f55f3afce4326e7e79770e5c36c9646
[ "MIT" ]
null
null
null
import logging from django.core.exceptions import ObjectDoesNotExist from django.db import transaction from django.http import HttpRequest from rest_framework.exceptions import NotFound from rest_framework.test import APIRequestFactory from rest_framework.views import exception_handler, APIView from typing import List,...
33.107143
128
0.702805
38
0.010248
0
0
1,631
0.43986
0
0
1,762
0.475189
f5aa196ccf6037cd4fcdad669c9f9252c8778f6e
436
py
Python
atcoder/past/past201912_f.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
atcoder/past/past201912_f.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
atcoder/past/past201912_f.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
S = input() arr = [] now = [] counter = 0 for s in S: now.append(s.lower()) if s.isupper(): if counter == 0: counter += 1 else: arr.append(''.join(now)) now = [] counter = 0 arr.sort() for word in arr: for i, s in enumerate(word): if i ...
19.818182
40
0.428899
0
0
0
0
0
0
0
0
6
0.013761
f5aa1cc085abe91e5e9d7da0530662e853080933
738
py
Python
lesson13n2/states/out.py
muzudho/py-state-machine-practice
e31c066f4cf142b6b6c5ff273b56a0f89428c59e
[ "MIT" ]
null
null
null
lesson13n2/states/out.py
muzudho/py-state-machine-practice
e31c066f4cf142b6b6c5ff273b56a0f89428c59e
[ "MIT" ]
null
null
null
lesson13n2/states/out.py
muzudho/py-state-machine-practice
e31c066f4cf142b6b6c5ff273b56a0f89428c59e
[ "MIT" ]
null
null
null
from lesson12_projects.house3.data.const import E_TURNED_KNOB, MSG_TURN_KNOB, E_FAILED class OutState: def update(self, req): self.on_entry(req) # 入力 msg = self.on_trigger(req) # 外に居ます。 'Turn knob' とメッセージを送ってくるのが正解です if msg == MSG_TURN_KNOB: self.on_turned_kn...
21.085714
86
0.585366
700
0.886076
0
0
0
0
0
0
151
0.191139
190f3d0f2aa0d41a590c2d4d36fe77e3833762f3
2,171
py
Python
setup.py
biodatageeks/pysequila
2fb3b83f008e6b7f874648ea02e7ca307d8519d3
[ "Apache-2.0" ]
1
2020-10-14T23:02:04.000Z
2020-10-14T23:02:04.000Z
setup.py
biodatageeks/pysequila
2fb3b83f008e6b7f874648ea02e7ca307d8519d3
[ "Apache-2.0" ]
9
2020-11-07T23:33:28.000Z
2021-12-13T09:22:07.000Z
setup.py
biodatageeks/pysequila
2fb3b83f008e6b7f874648ea02e7ca307d8519d3
[ "Apache-2.0" ]
1
2020-11-07T22:35:40.000Z
2020-11-07T22:35:40.000Z
# -*- coding: utf-8 -*- """setup.py""" import os import sys from setuptools import setup from setuptools.command.test import test as TestCommand class Tox(TestCommand): user_options = [('tox-args=', 'a', 'Arguments to pass to tox')] def initialize_options(self): TestCommand.initialize_options(self) ...
28.194805
76
0.64947
578
0.266237
0
0
0
0
0
0
756
0.348227
1910c0a5070edd02fb3f35021e3104c2486a91bb
2,266
py
Python
binaryblob.py
rikusalminen/trimuncher
bdf534fdf382c750e0ec7a6031433de88014e656
[ "Zlib" ]
1
2018-11-06T05:11:08.000Z
2018-11-06T05:11:08.000Z
binaryblob.py
rikusalminen/trimuncher
bdf534fdf382c750e0ec7a6031433de88014e656
[ "Zlib" ]
null
null
null
binaryblob.py
rikusalminen/trimuncher
bdf534fdf382c750e0ec7a6031433de88014e656
[ "Zlib" ]
null
null
null
from sys import stdin, stdout from struct import pack, unpack def float2half(float_val): f = unpack('I', pack('f', float_val))[0] if f == 0: return 0 if f == 0x80000000: return 0x8000 return ((f>>16)&0x8000) | ((((f&0x7f800000)-0x38000000)>>13)&0x7c00) | ((f>>13)&0x03ff) def half2float(h): if h ==...
35.40625
91
0.621359
0
0
462
0.203883
0
0
0
0
70
0.030891
1910e99d0b7143a24de2db38d697e59e51df210d
2,234
py
Python
lib/piservices/remote/integration.py
creative-workflow/pi-setup
d6d28cb8d34ef71b1e8ac95dd94099bfad08837a
[ "MIT" ]
1
2020-04-25T00:55:45.000Z
2020-04-25T00:55:45.000Z
lib/piservices/remote/integration.py
creative-workflow/pi-setup
d6d28cb8d34ef71b1e8ac95dd94099bfad08837a
[ "MIT" ]
4
2015-05-28T23:20:13.000Z
2015-05-28T23:24:01.000Z
lib/piservices/remote/integration.py
creative-workflow/pi-setup
d6d28cb8d34ef71b1e8ac95dd94099bfad08837a
[ "MIT" ]
null
null
null
from config import * from template import * from dictasobject import DictAsObject class RemoteFileHelper: def __init__(self, service): self.service = service self.config = DictAsObject({ 'ini' : self.config_ini, 'parser' : self.config_parser, 'shellvars' : self.config_shellvars,...
39.192982
83
0.656222
2,150
0.962399
0
0
0
0
0
0
45
0.020143
191159a3e3b8327371261a5ae76fdabd0024bab8
4,400
py
Python
src/architecture/cartpole_target.py
ginevracoal/adversarialGAN
7a38e037a5ddbbe0bb4daed35fcb0e6fbf9b311e
[ "CC-BY-4.0" ]
1
2020-12-15T03:03:47.000Z
2020-12-15T03:03:47.000Z
src/architecture/cartpole_target.py
ginevracoal/adversarialGAN
7a38e037a5ddbbe0bb4daed35fcb0e6fbf9b311e
[ "CC-BY-4.0" ]
null
null
null
src/architecture/cartpole_target.py
ginevracoal/adversarialGAN
7a38e037a5ddbbe0bb4daed35fcb0e6fbf9b311e
[ "CC-BY-4.0" ]
1
2020-11-05T09:35:11.000Z
2020-11-05T09:35:11.000Z
import os import torch import torch.nn as nn import torch.optim as optim from torch.utils.tensorboard import SummaryWriter from tqdm import tqdm import matplotlib.pyplot as plt import architecture.default from architecture.default import Defender DEBUG=False BATCH_SIZE=32 FIXED_POLICY=False NORMALIZE=False K=10 PENAL...
30.769231
114
0.606136
4,001
0.909318
0
0
0
0
0
0
185
0.042045
1911d18a99f00abe9dd822c30eace393500445cb
7,785
py
Python
tictactoe.py
smrsassa/tic-tac-toe-pygame
36f738fb94a3a138ef2aa21d409558e3d1680526
[ "MIT" ]
1
2019-10-21T18:19:12.000Z
2019-10-21T18:19:12.000Z
tictactoe.py
smrsassa/tic-tac-toe-pygame
36f738fb94a3a138ef2aa21d409558e3d1680526
[ "MIT" ]
null
null
null
tictactoe.py
smrsassa/tic-tac-toe-pygame
36f738fb94a3a138ef2aa21d409558e3d1680526
[ "MIT" ]
null
null
null
import pygame import random from time import sleep white = (255, 255, 255) black = (0, 0, 0) red = (255, 0, 0) green = (0, 255, 0) blue = (0, 0, 255) pygame.init() largura = 320 altura = 320 fundo = pygame.display.set_mode((largura, altura)) pygame.display.set_caption("TicTacToe") def texto(msg, cor, tam, x, y): ...
31.26506
116
0.491715
0
0
0
0
0
0
0
0
77
0.009891
19128f435521b2a41c0130fc202af247adfc091d
2,332
py
Python
src/plugins/notice.py
napalmpiri/irkotr0id
8125c0119038ddccdf6f0a587fa9eb4a0f66821d
[ "Beerware" ]
7
2017-10-30T17:12:51.000Z
2021-03-03T23:00:35.000Z
src/plugins/notice.py
napalmpiri/irkotr0id
8125c0119038ddccdf6f0a587fa9eb4a0f66821d
[ "Beerware" ]
1
2017-09-20T13:34:56.000Z
2017-09-20T13:34:56.000Z
src/plugins/notice.py
napalmpiri/irkotr0id
8125c0119038ddccdf6f0a587fa9eb4a0f66821d
[ "Beerware" ]
7
2017-09-16T10:39:20.000Z
2018-02-28T19:43:57.000Z
#/usr/bin/env python # -*- coding: Utf8 -*- import event class Plugin: def __init__(self, client): self.client = client self.notices = {} #:nisay!~nisay@53.ip-192-99-70.net PRIVMSG #testbobot :!notice user message @event.privmsg() def get_notice(self, e): target = e.values['t...
33.797101
80
0.51458
2,272
0.974271
0
0
1,845
0.791166
0
0
380
0.16295
191359000d3e32159cc42150dd476b64da855e66
5,794
py
Python
pyec/distribution/bayes/parser.py
hypernicon/pyec
7072835c97d476fc45ffc3b34f5c3ec607988e6d
[ "MIT" ]
2
2015-03-16T21:18:27.000Z
2017-10-09T19:59:24.000Z
pyec/distribution/bayes/parser.py
hypernicon/pyec
7072835c97d476fc45ffc3b34f5c3ec607988e6d
[ "MIT" ]
null
null
null
pyec/distribution/bayes/parser.py
hypernicon/pyec
7072835c97d476fc45ffc3b34f5c3ec607988e6d
[ "MIT" ]
null
null
null
""" Copyright (C) 2012 Alan J Lockett Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,...
43.893939
460
0.576458
4,514
0.779082
0
0
0
0
0
0
2,241
0.386779
1916221a240fca8e366955bf9b55225db064e9c4
169
py
Python
Desafio25.py
sergioboff/Desafios-Curso-em-Video
f876396635b12c00bdd9523758364bbebfd70ae0
[ "MIT" ]
null
null
null
Desafio25.py
sergioboff/Desafios-Curso-em-Video
f876396635b12c00bdd9523758364bbebfd70ae0
[ "MIT" ]
null
null
null
Desafio25.py
sergioboff/Desafios-Curso-em-Video
f876396635b12c00bdd9523758364bbebfd70ae0
[ "MIT" ]
null
null
null
nome = str(input('Digite seu nome completo: ')).strip() if 'silva' in nome.lower(): print('Sim, seu nome tem Silva.') else: print('Não , seu nome não tem Silva')
33.8
55
0.64497
0
0
0
0
0
0
0
0
93
0.54386
19179562beab192ca5fca3ff7c055101546a8163
1,527
py
Python
migrations/versions/8b664608a7c7_.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
5
2021-12-13T14:52:08.000Z
2022-03-15T08:59:32.000Z
migrations/versions/8b664608a7c7_.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
null
null
null
migrations/versions/8b664608a7c7_.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
1
2021-04-26T06:08:35.000Z
2021-04-26T06:08:35.000Z
"""empty message Revision ID: 8b664608a7c7 Revises: ec21e19825ff Create Date: 2021-06-01 14:37:20.327189 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '8b664608a7c7' down_revision = 'ec21e19825ff' branch_labels = None depends_on = None def upgrade(): # ...
35.511628
80
0.675835
0
0
0
0
0
0
0
0
643
0.399627
191840622ba4f376a7f93c8724514c6d2f52d3bb
1,393
py
Python
africa/views.py
Mutugiii/Pinstagram
40436facfb068eea135c6dffcdaf85028ff803c1
[ "MIT" ]
null
null
null
africa/views.py
Mutugiii/Pinstagram
40436facfb068eea135c6dffcdaf85028ff803c1
[ "MIT" ]
6
2021-03-30T13:09:41.000Z
2021-09-08T01:50:42.000Z
africa/views.py
Mutugiii/Pinstagram
40436facfb068eea135c6dffcdaf85028ff803c1
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from .models import Location,Category,Image def index(request): '''Main view function for the start page''' images = Image.get_images() template = loader.get_template('index.html') context = { ...
30.955556
67
0.65542
0
0
0
0
0
0
0
0
305
0.218952
1918493233bb0f6b63771c2685165671159e3808
509
py
Python
src/chapter4/exercise6.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
src/chapter4/exercise6.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
src/chapter4/exercise6.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
x = (input("enters hours")) y = (input("enters rate")) def compute_pay(hours, rate): """The try block ensures that the user enters a value between from 0-1 otherwise an error message pops up""" try: hours = float(x) rate = float(y) if hours <= 40: pay= float(hours * rate...
23.136364
63
0.563851
0
0
0
0
0
0
0
0
153
0.300589
1918ab57423bec266c18fa1bdfea020adfc67165
628
py
Python
front_end/create_data_natalia_icassp.py
adiyoss/DeepVOT
6bbda01fc5a4f93c92fccba2b9dacee511533244
[ "MIT" ]
6
2016-10-16T14:23:44.000Z
2021-05-06T12:00:08.000Z
front_end/create_data_natalia_icassp.py
adiyoss/DeepVOT
6bbda01fc5a4f93c92fccba2b9dacee511533244
[ "MIT" ]
3
2019-10-17T19:21:45.000Z
2020-08-06T10:29:27.000Z
front_end/create_data_natalia_icassp.py
adiyoss/DeepVOT
6bbda01fc5a4f93c92fccba2b9dacee511533244
[ "MIT" ]
8
2016-07-02T04:38:07.000Z
2021-08-31T08:25:19.000Z
# import argparse # # # def main(audio_path, textgrid_path, output_path): # data = list() # for # print(1) # # if __name__ == "__main__": # # -------------MENU-------------- # # # command line arguments # parser = argparse.ArgumentParser() # parser.add_argument("audio_path", help="The path t...
33.052632
83
0.638535
0
0
0
0
0
0
0
0
610
0.971338
1918ecc1cb7ed0d73d2876e4710c8c0ffca95358
557
py
Python
phone_numbers.py
EdilOndong/beginner_code
13b05afb25ec2ba4396f5fbe751febe7cb4bdabb
[ "Unlicense" ]
1
2021-09-19T13:33:33.000Z
2021-09-19T13:33:33.000Z
phone_numbers.py
EdilOndong/beginner_code
13b05afb25ec2ba4396f5fbe751febe7cb4bdabb
[ "Unlicense" ]
null
null
null
phone_numbers.py
EdilOndong/beginner_code
13b05afb25ec2ba4396f5fbe751febe7cb4bdabb
[ "Unlicense" ]
null
null
null
import phonenumbers from phonenumbers import geocoder, carrier def get_information_about_number(phone_numbers): number = phonenumbers.parse(phone_numbers, "en") phone_location = geocoder.description_for_number(number, "en") phone_carrier = carrier.name_for_number(number, "en") print("The Locat...
39.785714
125
0.732496
0
0
0
0
0
0
0
0
126
0.226212
191b02340ae1fb3a92d5b7d4ecfd3b82e78caed3
3,494
py
Python
src/templates/camera.py
coherentsolutionsinc/issoft-insights-2019-sdc-carla-ros
f6d3e162888bd79d59b771c82ff028df0f70ae11
[ "MIT" ]
8
2019-06-04T16:21:07.000Z
2021-09-05T07:24:20.000Z
src/templates/camera.py
coherentsolutionsinc/issoft-insights-2019-sdc-carla-ros
f6d3e162888bd79d59b771c82ff028df0f70ae11
[ "MIT" ]
null
null
null
src/templates/camera.py
coherentsolutionsinc/issoft-insights-2019-sdc-carla-ros
f6d3e162888bd79d59b771c82ff028df0f70ae11
[ "MIT" ]
1
2019-06-21T14:37:18.000Z
2019-06-21T14:37:18.000Z
# TODO: 1. Add indicator that node should be run by python # line above indicates that python is responsible for running this node import os import csv import rospy import numpy as np import pygame from utilities import pipline import cv2 from cv_bridge import CvBridge, CvBridgeError from sensor_msgs.msg import Im...
30.920354
121
0.642244
2,670
0.764167
0
0
0
0
0
0
1,447
0.414139
191e560813185fd516419069f86e8ed6f0ccdaf4
393
py
Python
Server APP/epl/rest/migrations/0012_auto_20180201_2304.py
seanjohn85/Premier-League
61c1406733e9c6fb282f8a4544a2f16cd6ff80a0
[ "MIT" ]
null
null
null
Server APP/epl/rest/migrations/0012_auto_20180201_2304.py
seanjohn85/Premier-League
61c1406733e9c6fb282f8a4544a2f16cd6ff80a0
[ "MIT" ]
null
null
null
Server APP/epl/rest/migrations/0012_auto_20180201_2304.py
seanjohn85/Premier-League
61c1406733e9c6fb282f8a4544a2f16cd6ff80a0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-02-01 23:04 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('rest', '0011_auto_20180201_2256'), ] operations = [ migrations.RenameModel( ...
19.65
46
0.615776
245
0.62341
0
0
0
0
0
0
119
0.302799
191ea83d06729e5bde9055413df2bd0a44ff8fe7
2,669
py
Python
plugins/beacon/alerta_beacon.py
ernadhalilovic/alerta-contrib
e12b5cf1e7f5913f641758032ca0d426c7eb8a08
[ "MIT" ]
null
null
null
plugins/beacon/alerta_beacon.py
ernadhalilovic/alerta-contrib
e12b5cf1e7f5913f641758032ca0d426c7eb8a08
[ "MIT" ]
null
null
null
plugins/beacon/alerta_beacon.py
ernadhalilovic/alerta-contrib
e12b5cf1e7f5913f641758032ca0d426c7eb8a08
[ "MIT" ]
null
null
null
import logging import os import json import requests try: from alerta.plugins import app # alerta >= 5.0 except ImportError: from alerta.app import app # alerta < 5.0 from alerta.plugins import PluginBase LOG = logging.getLogger('alerta.plugins.beacon') BEACON_HEADERS = { 'Content-Type': 'applicati...
35.118421
104
0.573248
1,637
0.613338
0
0
0
0
0
0
720
0.269764
1923272d7be3c0492ef9a0ede3d5a0e3b7f1d272
5,542
py
Python
pyscriptman/hosts/host.py
reap2sow1/pyscriptman
2020111097e846c3fb6c4669d67de05ee3ef979a
[ "MIT" ]
null
null
null
pyscriptman/hosts/host.py
reap2sow1/pyscriptman
2020111097e846c3fb6c4669d67de05ee3ef979a
[ "MIT" ]
null
null
null
pyscriptman/hosts/host.py
reap2sow1/pyscriptman
2020111097e846c3fb6c4669d67de05ee3ef979a
[ "MIT" ]
null
null
null
"""The abstract class module for all hosts.""" # Standard Library Imports from abc import ABC, abstractmethod, abstractclassmethod # Third Party Imports # Local Application Imports from util.helpers import get_typeof_repo_names from util.message import Message class Host(ABC): """The abstract class for all host...
28.27551
83
0.616925
5,276
0.952003
0
0
3,074
0.554673
0
0
3,578
0.645615
192369f557f40b35dc6e1a446089e36a7716438d
488
py
Python
discovery-provider/src/models/reward_manager.py
AudiusProject/audius-protocol
0315c31402121b24faa039e93cea8869d5b80743
[ "Apache-2.0" ]
429
2019-08-14T01:34:07.000Z
2022-03-30T06:31:38.000Z
discovery-provider/src/models/reward_manager.py
AudiusProject/audius-protocol
0315c31402121b24faa039e93cea8869d5b80743
[ "Apache-2.0" ]
998
2019-08-14T01:52:37.000Z
2022-03-31T23:17:22.000Z
discovery-provider/src/models/reward_manager.py
AudiusProject/audius-protocol
0315c31402121b24faa039e93cea8869d5b80743
[ "Apache-2.0" ]
73
2019-10-04T04:24:16.000Z
2022-03-24T16:27:30.000Z
from sqlalchemy import ( Column, Integer, String, DateTime, ) from .models import Base class RewardManagerTransaction(Base): __tablename__ = "reward_manager_txs" signature = Column(String, nullable=False, primary_key=True) slot = Column(Integer, nullable=False) created_at = Column(DateT...
25.684211
64
0.719262
384
0.786885
0
0
0
0
0
0
128
0.262295
1924e772ac06a1b05910f40c7a40911d19ba34ea
2,326
py
Python
plugins/roll.py
Cyame/OkayuTweetBot
5ca257f2faa622f5b88cecc95522f2114e5717fc
[ "MIT" ]
3
2020-04-10T16:47:25.000Z
2020-05-17T14:44:47.000Z
plugins/roll.py
Cyame/OkayuTweetBot
5ca257f2faa622f5b88cecc95522f2114e5717fc
[ "MIT" ]
null
null
null
plugins/roll.py
Cyame/OkayuTweetBot
5ca257f2faa622f5b88cecc95522f2114e5717fc
[ "MIT" ]
1
2020-04-12T09:38:22.000Z
2020-04-12T09:38:22.000Z
from nonebot import on_command, CommandSession,permission as perm import asyncio import traceback from helper import getlogger,msgSendToBot,CQsessionToStr,data_read,data_save from module.roll import match_roll logger = getlogger(__name__) __plugin_name__ = 'ROLL骰' __plugin_usage__ = r""" roll命令 """ #预处理 def headdeal(se...
32.305556
87
0.602322
0
0
0
0
1,964
0.78247
1,769
0.704781
661
0.263347
1925e952156fee34defbc265e2d492362c1470a4
384
py
Python
wip/ray/serve/archive/serve-dag-client.py
nitish-raj/data-science-on-aws
b760805d28f8375094ce83aee849de8b9d3382a2
[ "Apache-2.0" ]
42
2022-02-27T16:16:57.000Z
2022-03-30T20:11:05.000Z
wip/ray/serve/archive/serve-dag-client.py
nitish-raj/data-science-on-aws
b760805d28f8375094ce83aee849de8b9d3382a2
[ "Apache-2.0" ]
null
null
null
wip/ray/serve/archive/serve-dag-client.py
nitish-raj/data-science-on-aws
b760805d28f8375094ce83aee849de8b9d3382a2
[ "Apache-2.0" ]
26
2022-02-28T18:28:11.000Z
2022-03-29T13:15:22.000Z
import time import requests # Http endpoint cur = time.time() print(requests.post("http://127.0.0.1:8000/my-dag", json=["5", [1, 2], "sum"]).text) print(f"Time spent: {round(time.time() - cur, 2)} secs.") # Http endpoint cur = time.time() print(requests.post("http://127.0.0.1:8000/my-dag", json=["1", [0, 2], "max"])....
29.538462
84
0.630208
0
0
0
0
0
0
0
0
206
0.536458
192684c2fc33a3cff3429a446241736d19388fbe
697
py
Python
apps/careeropportunity/migrations/0015_auto_20200426_1109.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
32
2017-02-22T13:38:38.000Z
2022-03-31T23:29:54.000Z
apps/careeropportunity/migrations/0015_auto_20200426_1109.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
694
2017-02-15T23:09:52.000Z
2022-03-31T23:16:07.000Z
apps/careeropportunity/migrations/0015_auto_20200426_1109.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
35
2017-09-02T21:13:09.000Z
2022-02-21T11:30:30.000Z
# Generated by Django 3.0.5 on 2020-04-26 09:09 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("companyprofile", "0007_company_created_date"), ("careeropportunity", "0014_auto_20191031_1239"), ] operatio...
26.807692
60
0.604017
571
0.819225
0
0
0
0
0
0
217
0.311334
1928b4ff5a13f2e891c264d668791fc8b69f1469
790
py
Python
Businesslayer/Email_Validate.py
rohitgs28/FindMyEmployer
d4b369eb488f44e40ef371ac09847f8ccc39994c
[ "MIT" ]
null
null
null
Businesslayer/Email_Validate.py
rohitgs28/FindMyEmployer
d4b369eb488f44e40ef371ac09847f8ccc39994c
[ "MIT" ]
null
null
null
Businesslayer/Email_Validate.py
rohitgs28/FindMyEmployer
d4b369eb488f44e40ef371ac09847f8ccc39994c
[ "MIT" ]
null
null
null
import os import os.path import logging import sys import IValidator import re sys.path.append(os.path.abspath(os.path.join('0', '../extensions'))) from extensions_logging import logmyerror class Email_Validate(IValidator.IValidator): def formValidate_BSL(self,email): try: regex_emailCheck = r...
32.916667
73
0.640506
598
0.756962
0
0
0
0
0
0
103
0.13038
192a1f5991a077d1bd0f6488cd823461b384cac5
188
py
Python
psmate/apps/blog/admin.py
vgrivtsov/psmate
10e0279b995d36518e0867e8c5d5125c355a2f00
[ "MIT" ]
null
null
null
psmate/apps/blog/admin.py
vgrivtsov/psmate
10e0279b995d36518e0867e8c5d5125c355a2f00
[ "MIT" ]
null
null
null
psmate/apps/blog/admin.py
vgrivtsov/psmate
10e0279b995d36518e0867e8c5d5125c355a2f00
[ "MIT" ]
null
null
null
from django.contrib import admin from psmate.models import News class BlogAdmin(admin.ModelAdmin): prepopulated_fields = {'slug': ('title',)} admin.site.register(News, BlogAdmin)
17.090909
46
0.75
82
0.43617
0
0
0
0
0
0
13
0.069149
192a9867b561e4cc653889667cda0bafef034b8e
4,706
py
Python
Main/APIUsagePatternSearcher.py
SMAT-Lab/APIMatchmaker
0cc5c68f7f2aba570ad4c583bbc5ec757158c676
[ "MIT" ]
null
null
null
Main/APIUsagePatternSearcher.py
SMAT-Lab/APIMatchmaker
0cc5c68f7f2aba570ad4c583bbc5ec757158c676
[ "MIT" ]
null
null
null
Main/APIUsagePatternSearcher.py
SMAT-Lab/APIMatchmaker
0cc5c68f7f2aba570ad4c583bbc5ec757158c676
[ "MIT" ]
null
null
null
# coding:utf-8 import re from Helper.common import * class APIUsagePatternSearcher: def __init__(self, OPTIONS, custom_args, numOfRecs): self.OPTIONS = OPTIONS self.custom_args = custom_args self.numOfRecs = numOfRecs def searchAPIUsagePatterns(self): # Collect in allProjects ...
35.923664
116
0.563536
4,651
0.987054
0
0
0
0
0
0
757
0.160654
192b17d903cd1b6ec6531cfdd00faa10c1ae8213
873
py
Python
tools/leetcode.093.Restore IP Addresses/leetcode.093.Restore IP Addresses.submission2.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
tools/leetcode.093.Restore IP Addresses/leetcode.093.Restore IP Addresses.submission2.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
tools/leetcode.093.Restore IP Addresses/leetcode.093.Restore IP Addresses.submission2.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
class Solution: # @param {string} s # @return {string[]} def restoreIpAddresses(self, s): if not s or len(s) < 4: return [] res = [] cur = [] self.helper(s, res, cur, 0) return res def helper(self, s, res, cur, level): if level == 4: i...
873
873
0.412371
873
1
0
0
0
0
0
0
853
0.97709
192b90d17689e6aeda21369042966d2de1a7f460
335
py
Python
Beginner/Ambiguous Permutations (PERMUT2)/permutation.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
127
2020-10-13T18:04:35.000Z
2022-02-17T10:56:27.000Z
Beginner/Ambiguous Permutations (PERMUT2)/permutation.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
132
2020-10-13T18:06:53.000Z
2021-10-17T18:44:26.000Z
Beginner/Ambiguous Permutations (PERMUT2)/permutation.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
364
2020-10-13T18:04:52.000Z
2022-03-04T14:34:53.000Z
while True : n = int(input()) if n == 0 : break else : arr = input().split() check = True for i in range(n) : if int(arr[int(arr[i]) - 1]) != i + 1 : check = False if check : print('ambiguous') else : print('...
23.928571
51
0.402985
0
0
0
0
0
0
0
0
26
0.077612
192bad6eff2c66e4ca11db59cd7ea795ca554716
2,140
py
Python
src/voiceassistant/integrations/respeaker.py
vadimtitov/voice-assistant
9ed6a799f44d5a546eb712195e3e84e6ff10d2fa
[ "Apache-2.0" ]
1
2021-12-19T14:59:31.000Z
2021-12-19T14:59:31.000Z
src/voiceassistant/integrations/respeaker.py
vadimtitov/voice-assistant
9ed6a799f44d5a546eb712195e3e84e6ff10d2fa
[ "Apache-2.0" ]
3
2021-09-16T20:47:58.000Z
2021-12-19T02:45:59.000Z
src/voiceassistant/integrations/respeaker.py
vadimtitov/voice-assistant
9ed6a799f44d5a546eb712195e3e84e6ff10d2fa
[ "Apache-2.0" ]
null
null
null
"""Add-On functions for speech interface.""" from __future__ import annotations from typing import TYPE_CHECKING, List from voiceassistant.addons.create import Addon, CoreAttribute, addon_begin, addon_end from voiceassistant.exceptions import IntegrationError from .base import Integration if TYPE_CHECKING: fro...
24.883721
98
0.700935
470
0.219626
0
0
936
0.437383
0
0
373
0.174299
192bfb70b6700b39e9f6c097fb207ffc155ff246
4,602
py
Python
src/driving_curriculum/agents/neural_networks/tf/tf_novelty_detector.py
takeitallsource/pac-simulator
2c00d878047ec4a0247167e8a7de5aec8b474086
[ "MIT" ]
1
2018-07-14T07:09:23.000Z
2018-07-14T07:09:23.000Z
src/driving_curriculum/agents/neural_networks/tf/tf_novelty_detector.py
takeitallsource/pac-simulator
2c00d878047ec4a0247167e8a7de5aec8b474086
[ "MIT" ]
null
null
null
src/driving_curriculum/agents/neural_networks/tf/tf_novelty_detector.py
takeitallsource/pac-simulator
2c00d878047ec4a0247167e8a7de5aec8b474086
[ "MIT" ]
null
null
null
from math import cos, sin import numpy as np import tensorflow as tf from .....simulator import Agent # from simulator import Agent tf.set_random_seed(1234) class TensorflowNoveltyDetector(Agent): def execute(self, action): raise NotImplementedError() def __init__(self, world, learning=True, x=0.0,...
37.112903
100
0.634941
4,440
0.964798
0
0
0
0
0
0
113
0.024555
192c65ff044acb45e1b0a8921920efeebef0c02a
4,093
py
Python
setup.py
opalmer/pycffiwin32
39210182a92e93c37a9f1c644fd5fcc1aa32f6d1
[ "MIT" ]
10
2015-11-19T12:39:50.000Z
2021-02-21T20:15:29.000Z
setup.py
opalmer/pycffiwin32
39210182a92e93c37a9f1c644fd5fcc1aa32f6d1
[ "MIT" ]
109
2015-06-15T05:03:33.000Z
2018-01-14T10:18:48.000Z
setup.py
opalmer/pycffiwin32
39210182a92e93c37a9f1c644fd5fcc1aa32f6d1
[ "MIT" ]
8
2015-07-29T04:18:27.000Z
2018-11-02T17:15:40.000Z
from __future__ import print_function import os import sys from errno import ENOENT from os.path import dirname, abspath, join, isdir from setuptools import setup, find_packages from distutils.command.upload import upload from pywincffi import __version__ try: WindowsError except NameError: WindowsError = ...
31.728682
79
0.583435
2,001
0.488883
0
0
0
0
0
0
1,269
0.310042
192d556dfe9b06a1468a98d96f04aa0a6fb881ce
331
py
Python
data/split.py
manhcuongk55/gender-classification-by-hand
cafc5781f9c0a6476e848239f13d3ddf3a55de59
[ "MIT" ]
null
null
null
data/split.py
manhcuongk55/gender-classification-by-hand
cafc5781f9c0a6476e848239f13d3ddf3a55de59
[ "MIT" ]
null
null
null
data/split.py
manhcuongk55/gender-classification-by-hand
cafc5781f9c0a6476e848239f13d3ddf3a55de59
[ "MIT" ]
1
2020-12-07T06:38:16.000Z
2020-12-07T06:38:16.000Z
import shutil with open('test.csv', 'r') as f: lines = f.readlines() for line in lines: image, gender = line.split(",") print(image) if 'female' in gender: shutil.move("test/" + image, "test/female/" + image) else: shutil.move("test/" + image, "test/male/...
27.583333
64
0.531722
0
0
0
0
0
0
0
0
64
0.193353
192f1d7e5401a66f3ca654feee18cca382797d01
2,941
py
Python
generate.py
fnrcum/dungeon_generator
7f5d1bd1b612f66e39f2782eac6fcd40abe7f7f0
[ "MIT" ]
null
null
null
generate.py
fnrcum/dungeon_generator
7f5d1bd1b612f66e39f2782eac6fcd40abe7f7f0
[ "MIT" ]
null
null
null
generate.py
fnrcum/dungeon_generator
7f5d1bd1b612f66e39f2782eac6fcd40abe7f7f0
[ "MIT" ]
null
null
null
import random from helpers import Leaf, Rect, RoomList from renderer import MapRenderer from typing import List, Any class BSPTree: def __init__(self): self.level: List = [] self.room: object = None self._leafs: List = [] self.MAX_LEAF_SIZE: int = 32 self.ROOM_MAX_SIZE: int...
35.011905
82
0.550493
2,653
0.902074
0
0
0
0
0
0
359
0.122067
19308256c02abbb6b9f77d5d12549a9bf4a3e01e
1,382
py
Python
src/runner/exporter.py
leechunghwan/YCSB-runner
f33d0fed30b41797864d95b7dbc8a6c2430f0bd8
[ "Apache-2.0" ]
null
null
null
src/runner/exporter.py
leechunghwan/YCSB-runner
f33d0fed30b41797864d95b7dbc8a6c2430f0bd8
[ "Apache-2.0" ]
null
null
null
src/runner/exporter.py
leechunghwan/YCSB-runner
f33d0fed30b41797864d95b7dbc8a6c2430f0bd8
[ "Apache-2.0" ]
null
null
null
class Exporter: # Extensions for output files FILE_EXT = ".txt" PLOTS_FILE_EXT = ".pdf" """Exporter: Exports statistical data captured from YCSB output to a file.""" def __init__(self, stats_set): """__init__ :param stats_set: StatisticsSet object containing data to be export...
32.139535
81
0.636035
1,381
0.999276
0
0
0
0
0
0
939
0.67945
1930fdebe216693651fdbce0248a0cc3fa01cfe6
4,387
py
Python
src/sima/riflex/crsaxialfrictionmodel.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/riflex/crsaxialfrictionmodel.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/riflex/crsaxialfrictionmodel.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# This an autogenerated file # # Generated with CRSAxialFrictionModel from typing import Dict,Sequence,List from dmt.entity import Entity from dmt.blueprint import Blueprint from .blueprints.crsaxialfrictionmodel import CRSAxialFrictionModelBlueprint from typing import Dict from sima.sima.moao import MOAO from sima.si...
29.641892
174
0.647367
4,023
0.917028
0
0
2,532
0.57716
0
0
1,205
0.274675