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
ae1ad8c506c36a888f234786efecf582422e3003
35
py
Python
src/artifice/scraper/supervisor/__init__.py
artifice-project/artifice-scraper
f224a0da22162fd479d6b9f9095ff5cae4723716
[ "MIT" ]
null
null
null
src/artifice/scraper/supervisor/__init__.py
artifice-project/artifice-scraper
f224a0da22162fd479d6b9f9095ff5cae4723716
[ "MIT" ]
5
2019-09-18T19:17:14.000Z
2021-03-20T01:46:06.000Z
src/artifice/scraper/supervisor/__init__.py
artifice-project/artifice-scraper
f224a0da22162fd479d6b9f9095ff5cae4723716
[ "MIT" ]
null
null
null
from .supervisor import Supervisor
17.5
34
0.857143
0
0
0
0
0
0
0
0
0
0
ae1b1c2f48b9a90d658a39990474e0ffceef271d
366
py
Python
Entradas/migrations/0012_auto_20200521_1931.py
ToniIvars/Blog
c2d1674c2c1fdf51749f4b014795b507ed93b45e
[ "MIT" ]
null
null
null
Entradas/migrations/0012_auto_20200521_1931.py
ToniIvars/Blog
c2d1674c2c1fdf51749f4b014795b507ed93b45e
[ "MIT" ]
4
2021-03-30T13:26:38.000Z
2021-06-10T19:20:56.000Z
Entradas/migrations/0012_auto_20200521_1931.py
ToniIvars/Blog
c2d1674c2c1fdf51749f4b014795b507ed93b45e
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-21 17:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Entradas', '0011_comentarios'), ] operations = [ migrations.RenameField( model_name='comentarios', old_name='comentario', ...
19.263158
47
0.587432
281
0.76776
0
0
0
0
0
0
108
0.295082
ae1dba2c9332b1aaf3dca98391c5242cc59d4eab
322
py
Python
jd/api/rest/ComJdQlBasicWsGlscGlscBasicSecondaryWSGetAssortByFidRequest.py
jof2jc/jd
691bf22c68ed88fb3fb32bfb43dd6da75024994a
[ "MIT" ]
null
null
null
jd/api/rest/ComJdQlBasicWsGlscGlscBasicSecondaryWSGetAssortByFidRequest.py
jof2jc/jd
691bf22c68ed88fb3fb32bfb43dd6da75024994a
[ "MIT" ]
null
null
null
jd/api/rest/ComJdQlBasicWsGlscGlscBasicSecondaryWSGetAssortByFidRequest.py
jof2jc/jd
691bf22c68ed88fb3fb32bfb43dd6da75024994a
[ "MIT" ]
null
null
null
from jd.api.base import RestApi class ComJdQlBasicWsGlscGlscBasicSecondaryWSGetAssortByFidRequest(RestApi): def __init__(self,domain,port=80): RestApi.__init__(self,domain, port) self.assFid = None def getapiname(self): return 'jingdong.com.jd.ql.basic.ws.glsc.GlscBasicSecondaryWS.getAssortByFid' ...
20.125
80
0.776398
279
0.86646
0
0
0
0
0
0
70
0.217391
ae209fc837cb7fa92d358e927f5a60ae96f43be3
682
py
Python
tensorflow_gnn/tools/generate_training_data_test.py
mattdangerw/gnn
f39d3ea0d8fc6e51cf58814873fc1502c12554ae
[ "Apache-2.0" ]
611
2021-11-18T06:04:10.000Z
2022-03-29T11:46:42.000Z
tensorflow_gnn/tools/generate_training_data_test.py
mattdangerw/gnn
f39d3ea0d8fc6e51cf58814873fc1502c12554ae
[ "Apache-2.0" ]
25
2021-11-18T17:21:12.000Z
2022-03-31T06:36:55.000Z
tensorflow_gnn/tools/generate_training_data_test.py
mattdangerw/gnn
f39d3ea0d8fc6e51cf58814873fc1502c12554ae
[ "Apache-2.0" ]
52
2021-11-18T23:12:30.000Z
2022-03-27T06:31:08.000Z
"""Unit tests for generate training data test.""" from os import path from absl import flags import tensorflow as tf from tensorflow_gnn.tools import generate_training_data from tensorflow_gnn.utils import test_utils FLAGS = flags.FLAGS class GenerateDataTest(tf.test.TestCase): def test_generate_training_data(...
26.230769
76
0.781525
392
0.57478
0
0
0
0
0
0
118
0.173021
ae2166a391abaacff03859c883ab005463fa8d39
561
py
Python
vsenvs.py
KaoruShiga/geister_rl
a0dbf6bd7f79b0366727664da6d9f1cf3060190e
[ "MIT" ]
8
2021-03-12T00:06:44.000Z
2022-01-15T20:09:51.000Z
vsenvs.py
KaoruShiga/geister_rl
a0dbf6bd7f79b0366727664da6d9f1cf3060190e
[ "MIT" ]
null
null
null
vsenvs.py
KaoruShiga/geister_rl
a0dbf6bd7f79b0366727664da6d9f1cf3060190e
[ "MIT" ]
1
2021-10-04T07:42:01.000Z
2021-10-04T07:42:01.000Z
import random as rnd import numpy as np from random_agent import RandomAgent from geister2 import Geister2 from vsenv import VsEnv class VsEnvs(VsEnv): """複数のエージェントからランダムに一つ使うやつ""" # Resetting def on_episode_begin(self, init_red0): self._opponent = rnd.choice(self._opponents) return super(...
29.526316
67
0.716578
471
0.778512
0
0
0
0
0
0
83
0.13719
ae219f0c0bca31c2d0339c1392885c6f7d746211
2,007
py
Python
src/util/utils.py
purpleposeidon/texture-atlas-generator
68864bf42a8bb38b4cdbd883f776b32816084c8e
[ "Unlicense", "MIT" ]
null
null
null
src/util/utils.py
purpleposeidon/texture-atlas-generator
68864bf42a8bb38b4cdbd883f776b32816084c8e
[ "Unlicense", "MIT" ]
null
null
null
src/util/utils.py
purpleposeidon/texture-atlas-generator
68864bf42a8bb38b4cdbd883f776b32816084c8e
[ "Unlicense", "MIT" ]
null
null
null
import os.path import shutil from data_parsers.json_parser import JsonParser from data_parsers.xml_parser import XmlParser from data_parsers.parser import ParserError from packing_algorithms.ratcliff.texture_packer_ratcliff import TexturePackerRatcliff from packing_algorithms.maxrects.texture_packer_maxrects import Te...
34.016949
93
0.757349
0
0
0
0
0
0
0
0
209
0.104136
ae21aa10b6eac30d1836dbd0c8245d129f6fe3ff
1,038
py
Python
myslice/web/rest/confirm.py
loicbaron/myslice2
32af9462cc9e5654a6e3036978ae74b0a03a2698
[ "MIT" ]
null
null
null
myslice/web/rest/confirm.py
loicbaron/myslice2
32af9462cc9e5654a6e3036978ae74b0a03a2698
[ "MIT" ]
1
2020-06-02T12:30:07.000Z
2020-06-02T12:30:07.000Z
myslice/web/rest/confirm.py
loicbaron/myslice2
32af9462cc9e5654a6e3036978ae74b0a03a2698
[ "MIT" ]
1
2018-10-29T16:11:26.000Z
2018-10-29T16:11:26.000Z
import json import logging import rethinkdb as r from tornado import gen, escape from myslice.db.activity import Event from myslice.lib.util import myJSONEncoder from myslice.web.rest import Api logger = logging.getLogger('myslice.rest.confirm') class ConfirmHandler(Api): @gen.coroutine def get(self, id): ...
31.454545
95
0.628131
788
0.759152
737
0.710019
756
0.728324
0
0
289
0.27842
ae21fa093e46f99cba061fc2247a9c451b1f519b
218
py
Python
FullContact/utils.py
KamalAwasthi/FullContact
fa2e9f29079064b015848d980ddbb8da51f323c9
[ "Apache-2.0" ]
2
2018-05-31T16:21:06.000Z
2019-11-28T11:58:12.000Z
FullContact/utils.py
KamalAwasthi/FullContact
fa2e9f29079064b015848d980ddbb8da51f323c9
[ "Apache-2.0" ]
null
null
null
FullContact/utils.py
KamalAwasthi/FullContact
fa2e9f29079064b015848d980ddbb8da51f323c9
[ "Apache-2.0" ]
2
2018-02-12T16:37:08.000Z
2019-11-28T11:58:24.000Z
import requests def getContacts(email): payload = {'email': email} r = requests.get('https://api.fullcontact.com/v2/person.json', params=payload, headers={"X-FullContact-APIKey": "841831f8eef0a46f"}) return r.text
31.142857
133
0.738532
0
0
0
0
0
0
0
0
91
0.417431
ae22121e986bc6059cb536b9769429d2efd4c361
1,665
py
Python
python/advent_of_code/y2015/day01.py
stonecharioteer/advent-of-code
c18e47e378e82f82b77558a114e7d7c3a43c8429
[ "MIT" ]
null
null
null
python/advent_of_code/y2015/day01.py
stonecharioteer/advent-of-code
c18e47e378e82f82b77558a114e7d7c3a43c8429
[ "MIT" ]
null
null
null
python/advent_of_code/y2015/day01.py
stonecharioteer/advent-of-code
c18e47e378e82f82b77558a114e7d7c3a43c8429
[ "MIT" ]
null
null
null
"""--- Day 1: Not Quite Lisp --- Santa was hoping for a white Christmas, but his weather machine's "snow" function is powered by stars, and he's fresh out! To save Christmas, he needs you to collect fifty stars by December 25th. Collect stars by helping Santa solve puzzles. Two puzzles will be made available on each d...
42.692308
247
0.684685
0
0
0
0
0
0
0
0
1,285
0.771772
ae2625e0bfcb85513b735f8abfbccb014e1bc0b8
875
py
Python
setup.py
nbgallery/ipylogging
fa54a7ace0262398b5d7a9dd3ec6938248a70752
[ "MIT" ]
1
2021-10-18T22:12:37.000Z
2021-10-18T22:12:37.000Z
setup.py
nbgallery/ipylogging
fa54a7ace0262398b5d7a9dd3ec6938248a70752
[ "MIT" ]
null
null
null
setup.py
nbgallery/ipylogging
fa54a7ace0262398b5d7a9dd3ec6938248a70752
[ "MIT" ]
null
null
null
# vim: expandtab tabstop=4 shiftwidth=4 from setuptools import setup # read the contents of your README file from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), 'r') as f: long_description = f.read() setup( name='ipylogging', version...
30.172414
77
0.691429
0
0
0
0
0
0
0
0
412
0.470857
ae288231dc020ec00eec037bd175a4539730e6b8
2,594
py
Python
utils/i18n.py
minsukkahng/pokr.kr
169475778c998b4198ac7d6a1cebbc3c389e41b8
[ "Apache-2.0" ]
76
2015-01-19T12:39:43.000Z
2021-10-14T06:10:25.000Z
utils/i18n.py
minsukkahng/pokr.kr
169475778c998b4198ac7d6a1cebbc3c389e41b8
[ "Apache-2.0" ]
22
2015-01-03T01:00:53.000Z
2019-09-14T11:55:06.000Z
utils/i18n.py
minsukkahng/pokr.kr
169475778c998b4198ac7d6a1cebbc3c389e41b8
[ "Apache-2.0" ]
28
2015-01-14T15:45:00.000Z
2020-06-03T13:29:41.000Z
from babel import Locale from flask import current_app as cur_app, request from flask.ext.babel import Babel, get_locale from functools import wraps from popong_nlp.utils.translit import translit __all__ = ['PopongBabel'] class PopongBabel(Babel): def init_app(self, app): super(PopongBabel, self).ini...
24.018519
82
0.662298
819
0.315729
0
0
769
0.296453
0
0
233
0.089823
ae28fbfcfc5475fc99a477407eec02fb25989dcb
5,240
py
Python
Model/lookalike-model/lookalike_model/application/pipeline/top_n_similarity_table_generator.py
sanjaynirmal/blue-marlin
725d614e941e5de76562d354edf11ac18897f242
[ "Apache-2.0" ]
1
2020-03-06T09:41:49.000Z
2020-03-06T09:41:49.000Z
Model/lookalike-model/lookalike_model/application/pipeline/top_n_similarity_table_generator.py
sanjaynirmal/blue-marlin
725d614e941e5de76562d354edf11ac18897f242
[ "Apache-2.0" ]
null
null
null
Model/lookalike-model/lookalike_model/application/pipeline/top_n_similarity_table_generator.py
sanjaynirmal/blue-marlin
725d614e941e5de76562d354edf11ac18897f242
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
40.620155
306
0.717748
0
0
0
0
0
0
0
0
2,445
0.466603
ae294288f339abaa44909776daf88e26d1673f50
1,056
py
Python
lib/auth.py
p4lsec/autoshoppr
a0dba3060e26008c2d441358ff7f4a909ba4fcab
[ "MIT" ]
null
null
null
lib/auth.py
p4lsec/autoshoppr
a0dba3060e26008c2d441358ff7f4a909ba4fcab
[ "MIT" ]
null
null
null
lib/auth.py
p4lsec/autoshoppr
a0dba3060e26008c2d441358ff7f4a909ba4fcab
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By import pickle import configparser class AmazonLogin: def __init__(self, driver=None): self.url = "https://www.a...
35.2
98
0.629735
825
0.78125
0
0
0
0
0
0
132
0.125
ae29895c6324b4119860a3e674198d1b40dd9964
1,317
py
Python
Verulean/days/aoc15.py
BasedJellyfish11/Advent-of-Code-2021
9ed84902958c99c341ec2444d5db561c84348911
[ "MIT" ]
3
2021-12-03T22:40:17.000Z
2021-12-23T21:17:16.000Z
Verulean/days/aoc15.py
BasedJellyfish11/Advent-of-Code-2021
9ed84902958c99c341ec2444d5db561c84348911
[ "MIT" ]
null
null
null
Verulean/days/aoc15.py
BasedJellyfish11/Advent-of-Code-2021
9ed84902958c99c341ec2444d5db561c84348911
[ "MIT" ]
null
null
null
import numpy as np import heapq class PriorityQueue(list): def pop(self): return heapq.heappop(self) def push(self, value): return heapq.heappush(self, value) def neighbors(i, j): return ((i-1, j), (i+1, j), (i, j-1), (i, j+1)) def numpy_dijkstra(costs): m, n = costs.shape s...
24.388889
64
0.525437
150
0.113895
0
0
0
0
0
0
0
0
ae2d0af0f1b9daeb6ad913a0cc22fcfa911b9c6b
5,291
py
Python
pypy/module/_minimal_curses/fficurses.py
microvm/pypy-mu
6b03fbe93052d0eb3a4c67152c987c16837b3484
[ "Apache-2.0", "OpenSSL" ]
34
2015-07-09T04:53:27.000Z
2021-07-19T05:22:27.000Z
pypy/module/_minimal_curses/fficurses.py
microvm/pypy-mu
6b03fbe93052d0eb3a4c67152c987c16837b3484
[ "Apache-2.0", "OpenSSL" ]
6
2015-05-30T17:20:45.000Z
2017-06-12T14:29:23.000Z
pypy/module/_minimal_curses/fficurses.py
microvm/pypy-mu
6b03fbe93052d0eb3a4c67152c987c16837b3484
[ "Apache-2.0", "OpenSSL" ]
11
2015-09-07T14:26:08.000Z
2020-04-10T07:20:41.000Z
""" The ffi for rpython, need to be imported for side effects """ from rpython.rtyper.lltypesystem import rffi from rpython.rtyper.lltypesystem import lltype from rpython.rtyper.tool import rffi_platform from rpython.rtyper.extfunc import register_external from pypy.module._minimal_curses import interp_curses from rpy...
36.743056
82
0.634096
100
0.0189
1,192
0.225288
0
0
0
0
962
0.181818
ae2e72786b0e755905085b12bef4f3ce69f9d8fc
34
py
Python
pycalc.py
erhuabushuo/pycalc
a46b85aaafe37ad7cca95ac0198d9bfea985b598
[ "MIT" ]
null
null
null
pycalc.py
erhuabushuo/pycalc
a46b85aaafe37ad7cca95ac0198d9bfea985b598
[ "MIT" ]
null
null
null
pycalc.py
erhuabushuo/pycalc
a46b85aaafe37ad7cca95ac0198d9bfea985b598
[ "MIT" ]
null
null
null
import calcpy calcpy.calculcate()
11.333333
19
0.823529
0
0
0
0
0
0
0
0
0
0
ae2f2e86a4f028f1e691a235394a547ef477d257
470
py
Python
peripherals/cardreader.py
sparkoo/payterm
a8c783583017e65a6c2549a831a7dfa44367dbd1
[ "WTFPL" ]
null
null
null
peripherals/cardreader.py
sparkoo/payterm
a8c783583017e65a6c2549a831a7dfa44367dbd1
[ "WTFPL" ]
4
2020-02-26T21:56:57.000Z
2020-03-01T11:37:39.000Z
peripherals/cardreader.py
sparkoo/payterm
a8c783583017e65a6c2549a831a7dfa44367dbd1
[ "WTFPL" ]
null
null
null
import RPi.GPIO as GPIO import time from mfrc522 import SimpleMFRC522 import importlib.util spec = importlib.util.spec_from_file_location("conn", "lib/conn.py") conn = importlib.util.module_from_spec(spec) spec.loader.exec_module(conn) def readCard(): try: time.sleep(1) reader = SimpleMFRC522() cardid, ...
20.434783
68
0.723404
0
0
0
0
0
0
0
0
31
0.065957
ae313f7b22dd8a45cb53e8bfba694df52241d4b5
1,310
py
Python
exercises/development/intermediate/exercise_5.py
littlekign/comp-think.github.io
21bce306c7672b6355a6fdaf260824542dbca595
[ "CC0-1.0", "CC-BY-4.0" ]
40
2019-01-25T11:14:30.000Z
2021-12-05T15:04:11.000Z
exercises/development/intermediate/exercise_5.py
littlekign/comp-think.github.io
21bce306c7672b6355a6fdaf260824542dbca595
[ "CC0-1.0", "CC-BY-4.0" ]
1
2020-11-08T15:18:58.000Z
2020-11-19T22:44:28.000Z
exercises/development/intermediate/exercise_5.py
littlekign/comp-think.github.io
21bce306c7672b6355a6fdaf260824542dbca595
[ "CC0-1.0", "CC-BY-4.0" ]
19
2019-12-28T16:06:01.000Z
2021-12-14T15:52:44.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, Silvio Peroni <[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 I...
33.589744
84
0.70458
0
0
0
0
0
0
0
0
874
0.667176
ae31a4d08aeb572fffda497f8fd188e49b5508e5
149
py
Python
modules/2.79/bpy/types/TextCharacterFormat.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/TextCharacterFormat.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/TextCharacterFormat.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
class TextCharacterFormat: material_index = None use_bold = None use_italic = None use_small_caps = None use_underline = None
14.9
26
0.691275
145
0.973154
0
0
0
0
0
0
0
0
ae3401171f8e9d1d9a120271065ad3caf42b8ad2
38
py
Python
tests/__init__.py
masasin/latexipy
1f888a44f2077a5c0ef63216616cd24c279e44d0
[ "MIT" ]
144
2017-08-24T08:58:58.000Z
2021-04-18T10:38:44.000Z
tests/__init__.py
masasin/latexipy
1f888a44f2077a5c0ef63216616cd24c279e44d0
[ "MIT" ]
424
2017-09-04T16:21:10.000Z
2022-03-28T02:23:25.000Z
tests/__init__.py
masasin/latexipy
1f888a44f2077a5c0ef63216616cd24c279e44d0
[ "MIT" ]
15
2017-08-26T08:05:55.000Z
2019-05-13T22:29:44.000Z
'''Unit test package for latexipy.'''
19
37
0.684211
0
0
0
0
0
0
0
0
37
0.973684
ae340b92aadfe682e4f7ba5a3b3a05872dd322d2
192
py
Python
pyravendb/data/counters.py
CDuPlooy/ravendb-python-client
dbe51ee8eea166e0d9e60897ab480dd9a693366b
[ "MIT" ]
19
2019-02-16T14:39:38.000Z
2022-03-23T12:27:00.000Z
pyravendb/data/counters.py
CDuPlooy/ravendb-python-client
dbe51ee8eea166e0d9e60897ab480dd9a693366b
[ "MIT" ]
24
2018-10-21T07:31:21.000Z
2022-03-27T17:27:29.000Z
pyravendb/data/counters.py
CDuPlooy/ravendb-python-client
dbe51ee8eea166e0d9e60897ab480dd9a693366b
[ "MIT" ]
14
2018-08-14T07:58:46.000Z
2022-01-05T12:20:08.000Z
from enum import Enum class CounterOperationType(Enum): none = "None" increment = "Increment" delete = "Delete" get = "Get" def __str__(self): return self.value
16
33
0.625
167
0.869792
0
0
0
0
0
0
30
0.15625
ae3425a0e350725139bf2c51d7938fab7269b9d6
516
py
Python
src/lib/spaces/orientedplane.py
Wombatlord/PygamePong
d56b1529fe095e6a30b27b6039d9d52105ad900d
[ "MIT" ]
null
null
null
src/lib/spaces/orientedplane.py
Wombatlord/PygamePong
d56b1529fe095e6a30b27b6039d9d52105ad900d
[ "MIT" ]
2
2021-02-19T05:05:43.000Z
2021-02-20T02:16:53.000Z
src/lib/spaces/orientedplane.py
Wombatlord/PygamePong
d56b1529fe095e6a30b27b6039d9d52105ad900d
[ "MIT" ]
1
2020-08-13T10:14:46.000Z
2020-08-13T10:14:46.000Z
from src.lib.spaces.vector import Vector class OrientedPlane: def __init__(self, normal: Vector) -> None: self.normal = normal.normalise() def reflect(self, initialVector: Vector): normalComponent: float = initialVector.dot(self.normal) if normalComponent < 0: normalCompon...
30.352941
70
0.660853
472
0.914729
0
0
0
0
0
0
0
0
ae344aa9b51e47e1afbcdf4afc821fdaead42258
715
py
Python
core/migrations/0003_alter_carro_chassi_alter_carro_montadora.py
montalvas/django05
199f2ba1c757d899a78f8fc40742081bc74a4187
[ "MIT" ]
null
null
null
core/migrations/0003_alter_carro_chassi_alter_carro_montadora.py
montalvas/django05
199f2ba1c757d899a78f8fc40742081bc74a4187
[ "MIT" ]
null
null
null
core/migrations/0003_alter_carro_chassi_alter_carro_montadora.py
montalvas/django05
199f2ba1c757d899a78f8fc40742081bc74a4187
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-02 19:01 import core.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_carro_motoristas'), ] operations = [ migrations.AlterField( mod...
27.5
117
0.633566
570
0.797203
0
0
0
0
0
0
138
0.193007
ae371956e205306769109642792d7cbf72cc52de
156
py
Python
snake/__init__.py
lparolari/snake
ceaaec051584be768c9541fb106234e6de2b4900
[ "MIT" ]
1
2020-11-02T11:04:49.000Z
2020-11-02T11:04:49.000Z
snake/__init__.py
lparolari/snake
ceaaec051584be768c9541fb106234e6de2b4900
[ "MIT" ]
112
2019-09-24T20:08:23.000Z
2021-02-08T00:36:07.000Z
snake/__init__.py
lparolari/snake
ceaaec051584be768c9541fb106234e6de2b4900
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for snake.""" __author__ = """Luca Parolari""" __email__ = '[email protected]' __version__ = '0.2.2'
19.5
39
0.641026
0
0
0
0
0
0
0
0
110
0.705128
ae371c01a5249a7ea65891e859df84f39ceed04c
1,357
py
Python
UI for prediction/prediction_file.py
berfin-t/HeartAttackPrediction
a9acbd0356f3c3e4100b1964862242f6afe7da3b
[ "Apache-2.0" ]
null
null
null
UI for prediction/prediction_file.py
berfin-t/HeartAttackPrediction
a9acbd0356f3c3e4100b1964862242f6afe7da3b
[ "Apache-2.0" ]
null
null
null
UI for prediction/prediction_file.py
berfin-t/HeartAttackPrediction
a9acbd0356f3c3e4100b1964862242f6afe7da3b
[ "Apache-2.0" ]
null
null
null
import pickle import os import sys import pandas as pd from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split import warnings warnings.filterwarnings("ignore", message="Reloaded modules: <module_name>") def train(): data = pd.read_csv('heart.csv') Y = data["target"...
26.096154
95
0.664702
0
0
0
0
0
0
0
0
136
0.100221
ae386b890d023c6368568c73f1d37d4dc2112c5f
1,432
py
Python
bot/models.py
xammi/nash_dom_bot
9d5dfc7e0120d56c95e020e7e20505b973a5d402
[ "MIT" ]
null
null
null
bot/models.py
xammi/nash_dom_bot
9d5dfc7e0120d56c95e020e7e20505b973a5d402
[ "MIT" ]
null
null
null
bot/models.py
xammi/nash_dom_bot
9d5dfc7e0120d56c95e020e7e20505b973a5d402
[ "MIT" ]
null
null
null
from django.db import models from django.db.models import CASCADE class House(models.Model): class Meta: verbose_name = 'Дом' verbose_name_plural = 'дома' address = models.CharField(verbose_name='Адрес дома', max_length=255) tg_chat_id = models.BigIntegerField(verbose_name='ID чата жильцо...
31.822222
87
0.703212
1,533
0.953358
0
0
0
0
0
0
474
0.294776
ae3968619345b1a7bf80058788bc082425067214
3,592
py
Python
tf_ops/genCompileScript.py
chenzhutian/MCCNN
e28ca4a2deeecbfd1c8939ca666fcc010554fcbb
[ "MIT" ]
90
2018-07-05T13:43:43.000Z
2022-01-21T08:23:06.000Z
tf_ops/genCompileScript.py
DylanWusee/MCCNN
13c2afb81aa231779b2be564ae31931b1d82e3fa
[ "MIT" ]
9
2018-11-08T14:22:59.000Z
2022-03-13T08:35:15.000Z
tf_ops/genCompileScript.py
DylanWusee/MCCNN
13c2afb81aa231779b2be564ae31931b1d82e3fa
[ "MIT" ]
12
2018-11-09T09:31:46.000Z
2021-06-21T01:23:11.000Z
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' \file genCompileScript.py \brief Python script to generate the compile script for unix systems. \copyright Copyright (c) 2018 Visual Computing group of Ulm University, Germany. See the LICENSE file at the...
71.84
214
0.65618
0
0
0
0
0
0
0
0
2,044
0.569042
ae39d5bb797b8ed6a1c3f37606a273b2c5c79dbb
8,326
py
Python
tests/test_optimization.py
davidusb-geek/emhass
5d6a5ad45c26b819c6bc1cb0e8943940d7fc8f17
[ "MIT" ]
17
2021-09-12T22:32:09.000Z
2022-03-17T17:45:29.000Z
tests/test_optimization.py
davidusb-geek/emhass
5d6a5ad45c26b819c6bc1cb0e8943940d7fc8f17
[ "MIT" ]
1
2021-12-22T21:10:04.000Z
2021-12-22T21:10:04.000Z
tests/test_optimization.py
davidusb-geek/emhass
5d6a5ad45c26b819c6bc1cb0e8943940d7fc8f17
[ "MIT" ]
2
2021-11-03T10:29:05.000Z
2021-11-19T12:08:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import pandas as pd import numpy as np import pathlib import pickle from datetime import datetime, timezone from emhass.retrieve_hass import retrieve_hass from emhass.optimization import optimization from emhass.forecast import forecast from emhass.utils i...
60.773723
138
0.700336
7,697
0.924454
0
0
0
0
0
0
820
0.098487
ae3a515565662ff474b5546eb89caaad693236c2
223
py
Python
leetcode_runner/models.py
fbjorn/leetcode-runner
38569e68a3ec2e420ed54aa509c236748f5d55dc
[ "MIT" ]
null
null
null
leetcode_runner/models.py
fbjorn/leetcode-runner
38569e68a3ec2e420ed54aa509c236748f5d55dc
[ "MIT" ]
null
null
null
leetcode_runner/models.py
fbjorn/leetcode-runner
38569e68a3ec2e420ed54aa509c236748f5d55dc
[ "MIT" ]
null
null
null
class Args: def __init__(self, *args, **kwargs): self.args = args self.kwargs = kwargs class TestCase: def __init__(self, args: Args, answer): self.args = args self.answer = answer
20.272727
43
0.591928
219
0.982063
0
0
0
0
0
0
0
0
ae3a5afb8c080bcd642ec9b461aca11065494bcb
4,555
py
Python
experiments/counters.py
TenantBase/django-experiments
b75cf11159da4f4c75d9798dff3ddfd1ca454261
[ "MIT" ]
null
null
null
experiments/counters.py
TenantBase/django-experiments
b75cf11159da4f4c75d9798dff3ddfd1ca454261
[ "MIT" ]
1
2019-05-29T00:00:15.000Z
2019-05-29T00:00:15.000Z
experiments/counters.py
TenantBase/django-experiments
b75cf11159da4f4c75d9798dff3ddfd1ca454261
[ "MIT" ]
null
null
null
from django.conf import settings from django.utils.functional import cached_property import redis from redis.sentinel import Sentinel from redis.exceptions import ConnectionError, ResponseError COUNTER_CACHE_KEY = 'experiments:participants:%s' COUNTER_FREQ_CACHE_KEY = 'experiments:freq:%s' class Counters(object): ...
38.931624
130
0.639517
4,258
0.934797
0
0
693
0.152141
0
0
859
0.188584
ae3bab1dfe4bf59579d4fb381bd53583200e99c5
447
py
Python
irl_gym/envs/env_utils.py
uidilr/irl_gym
3352cb9189f3d5076a116db6678207e186ff4fc6
[ "MIT" ]
1
2020-12-29T11:04:56.000Z
2020-12-29T11:04:56.000Z
irl_gym/envs/env_utils.py
uidilr/irl_gym
3352cb9189f3d5076a116db6678207e186ff4fc6
[ "MIT" ]
null
null
null
irl_gym/envs/env_utils.py
uidilr/irl_gym
3352cb9189f3d5076a116db6678207e186ff4fc6
[ "MIT" ]
null
null
null
import os ENV_ASSET_DIR = os.path.join(os.path.dirname(__file__), 'assets') def get_asset_xml(xml_name): return os.path.join(ENV_ASSET_DIR, xml_name) def test_env(env, T=100): aspace = env.action_space env.reset() for t in range(T): o, r, done, infos = env.step(aspace.sample()) prin...
20.318182
65
0.568233
0
0
0
0
0
0
0
0
32
0.071588
ae3bbabd4550be0f4670cf95d502fca83a0b0369
1,483
py
Python
example/resnet/convert_resnet_pytorch.py
leonskim/webdnn
f97c798c9a659fe953f9dc8c8537b8917e4be7a2
[ "MIT" ]
1
2021-04-09T15:55:35.000Z
2021-04-09T15:55:35.000Z
example/resnet/convert_resnet_pytorch.py
leonskim/webdnn
f97c798c9a659fe953f9dc8c8537b8917e4be7a2
[ "MIT" ]
null
null
null
example/resnet/convert_resnet_pytorch.py
leonskim/webdnn
f97c798c9a659fe953f9dc8c8537b8917e4be7a2
[ "MIT" ]
null
null
null
""" Example of converting ResNet-50 PyTorch model """ import argparse import os import torch, torchvision import numpy as np from webdnn.backend import generate_descriptor, backend_names from webdnn.frontend.pytorch import PyTorchConverter from webdnn.util import console def generate_graph(): model = torchvisi...
28.519231
102
0.697235
0
0
0
0
0
0
0
0
227
0.153068
ae3bbe9c1d9612593b0ae91960ae41d57309e29d
436
py
Python
test/test_getter_setter.py
msztolcman/fileperms
8a99c5bb981265c18228b58cf44419c032d8d895
[ "MIT" ]
null
null
null
test/test_getter_setter.py
msztolcman/fileperms
8a99c5bb981265c18228b58cf44419c032d8d895
[ "MIT" ]
null
null
null
test/test_getter_setter.py
msztolcman/fileperms
8a99c5bb981265c18228b58cf44419c032d8d895
[ "MIT" ]
null
null
null
from fileperms import Permission, Permissions class TestGetterSetter: def test_empty(self): prm = Permissions() for item in Permission: assert prm.get(item) == False def test_other(self): prm = Permissions() for item in Permission: prm.set(item, True) ...
24.222222
45
0.577982
387
0.887615
0
0
0
0
0
0
0
0
ae3c1e0a31bb35705167a39456828a45fbe7fc2b
157
py
Python
lessons/Test_and_function_programming_in_Python/project/tests/test_sum_benchmark.py
johnklee/oo_dp_lesson
06814a88b86b38435e0ed8f305ce9e50c1aac1f6
[ "MIT" ]
null
null
null
lessons/Test_and_function_programming_in_Python/project/tests/test_sum_benchmark.py
johnklee/oo_dp_lesson
06814a88b86b38435e0ed8f305ce9e50c1aac1f6
[ "MIT" ]
7
2021-06-07T03:52:37.000Z
2022-03-14T11:07:31.000Z
lessons/Test_and_function_programming_in_Python/project/tests/test_sum_benchmark.py
johnklee/oo_dp_lesson
06814a88b86b38435e0ed8f305ce9e50c1aac1f6
[ "MIT" ]
null
null
null
from my_sum import sum def test_sum_benchmark(benchmark): hundred_one_list = [1] * 100 result = benchmark(sum, hundred_one_list) assert result == 100
22.428571
43
0.751592
0
0
0
0
0
0
0
0
0
0
ae3d3e28bf5a8518622d4a9ff1865444e5e3583f
1,889
py
Python
Project_1-Alien_Invasion/settings.py
Vandeilsonln/Python-Crash-Course
39b4f421504618f947672304a8e97edf7bc7f13d
[ "MIT" ]
null
null
null
Project_1-Alien_Invasion/settings.py
Vandeilsonln/Python-Crash-Course
39b4f421504618f947672304a8e97edf7bc7f13d
[ "MIT" ]
null
null
null
Project_1-Alien_Invasion/settings.py
Vandeilsonln/Python-Crash-Course
39b4f421504618f947672304a8e97edf7bc7f13d
[ "MIT" ]
null
null
null
import pygame class Settings(): # A class to store all settings for Alien Invasion. def __init__(self): # Screen Settings. self.screen_width = 1080 self.screen_height = 630 self.bg_image = pygame.image.load('Project_1-Alien_Invasion/_images/background_stars_moving.jpg') ...
32.568966
105
0.643727
1,874
0.992059
0
0
0
0
0
0
493
0.260985
ae3d486c599d0d195d2c989a9d3e670a0c3383e1
431
py
Python
connect.py
XtremeCurling/nextbus2pg
4a7b32ecbc5232c3a7e4a81152aea87b2c80d517
[ "MIT" ]
null
null
null
connect.py
XtremeCurling/nextbus2pg
4a7b32ecbc5232c3a7e4a81152aea87b2c80d517
[ "MIT" ]
4
2018-04-03T21:12:24.000Z
2018-05-13T22:53:43.000Z
connect.py
XtremeCurling/nextbus2pg
4a7b32ecbc5232c3a7e4a81152aea87b2c80d517
[ "MIT" ]
null
null
null
import urllib import psycopg2 import psycopg2.extras # Connect to a postgres database. Tweak some things. def pgconnect(pghost, pgdb, pguser): connection = psycopg2.connect(host = pghost, dbname = pgdb, user = pguser) # Set autocommit to avoid repetitive connection.commit() statements. connection.autocom...
28.733333
78
0.74942
0
0
0
0
0
0
0
0
157
0.364269
ae3e733e97f3939f4c5a55b9fab69488409a8357
1,153
py
Python
app/main/views/letter_jobs.py
karlchillmaid/notifications-admin
9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880
[ "MIT" ]
null
null
null
app/main/views/letter_jobs.py
karlchillmaid/notifications-admin
9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880
[ "MIT" ]
null
null
null
app/main/views/letter_jobs.py
karlchillmaid/notifications-admin
9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880
[ "MIT" ]
null
null
null
from flask import redirect, render_template, request, session, url_for from flask_login import login_required from app import letter_jobs_client from app.main import main from app.utils import user_is_platform_admin @main.route("/letter-jobs", methods=['GET', 'POST']) @login_required @user_is_platform_admin def lett...
31.162162
100
0.666956
0
0
0
0
933
0.809193
0
0
167
0.14484
ae3ea51dd07df4bb77e861ac50689fed8f983f65
909
py
Python
dev-test/1_euler/srayan/euler-2.py
sgango/Y1-Project
89205600552ede6f8da29231cfa52a3538ae8df4
[ "BSD-2-Clause" ]
2
2020-09-23T13:27:26.000Z
2021-09-14T14:15:30.000Z
dev-test/1_euler/srayan/euler-2.py
sgango/Y1-Project
89205600552ede6f8da29231cfa52a3538ae8df4
[ "BSD-2-Clause" ]
1
2020-06-18T14:02:59.000Z
2020-06-18T14:02:59.000Z
dev-test/1_euler/srayan/euler-2.py
sgango/Y1-Project
89205600552ede6f8da29231cfa52a3538ae8df4
[ "BSD-2-Clause" ]
null
null
null
""" Adapting Euler method to handle 2nd order ODEs Srayan Gangopadhyay 2020-05-16 """ import numpy as np import matplotlib.pyplot as plt """ y' = dy/dx For a function of form y'' = f(x, y, y') Define y' = v so y'' = v' """ def func(y, v, x): # RHS of v' = in terms of y, v, x return x + v - 3*y # PARAMETERS y0 ...
21.139535
67
0.59516
0
0
0
0
0
0
0
0
425
0.467547
ae3ecabbefa60b62d05ffb5c99a5c524d7526637
73
py
Python
task3/mask_r_cnn/mark_cvppp.py
HenryLiangzy/COMP9517_Group
83be7304bee47d52781ea71f06838cd148dbd0bd
[ "Apache-2.0" ]
null
null
null
task3/mask_r_cnn/mark_cvppp.py
HenryLiangzy/COMP9517_Group
83be7304bee47d52781ea71f06838cd148dbd0bd
[ "Apache-2.0" ]
null
null
null
task3/mask_r_cnn/mark_cvppp.py
HenryLiangzy/COMP9517_Group
83be7304bee47d52781ea71f06838cd148dbd0bd
[ "Apache-2.0" ]
null
null
null
import cv2 import os import glob import numpy as np def mark(img):
9.125
18
0.712329
0
0
0
0
0
0
0
0
0
0
ae3f83f14ff4a0be7289a02711f0b034c72507db
3,022
py
Python
dss_sm_so/tests/test_backends.py
MobileCloudNetworking/dssaas
87b6f7d60ecc397a88326a955b2ddfd3d73205d1
[ "Apache-2.0" ]
null
null
null
dss_sm_so/tests/test_backends.py
MobileCloudNetworking/dssaas
87b6f7d60ecc397a88326a955b2ddfd3d73205d1
[ "Apache-2.0" ]
null
null
null
dss_sm_so/tests/test_backends.py
MobileCloudNetworking/dssaas
87b6f7d60ecc397a88326a955b2ddfd3d73205d1
[ "Apache-2.0" ]
1
2018-10-09T06:28:36.000Z
2018-10-09T06:28:36.000Z
__author__ = 'florian' import unittest from occi.backend import ActionBackend, KindBackend from sm.sm.backends import ServiceBackend from mock import patch from sm.sm.so_manager import SOManager from occi.core_model import Kind from occi.core_model import Resource @patch('mcn.sm.so_manager.CONFIG') @patch('mcn.sm.so_...
38.74359
101
0.697551
2,683
0.887823
0
0
1,524
0.504302
0
0
948
0.3137
ae41aa44d40af6f5bd17f7b224b76b24b0631ba4
4,738
py
Python
demo/q0w_demo_analyzer/core/fonts.py
YourNorth/rezak-summarizator
3ab2f4bf1044ea9654b4084a39030987e4b8bfe8
[ "MIT" ]
3
2020-03-28T16:48:10.000Z
2020-12-01T17:18:55.000Z
demo/q0w_demo_analyzer/core/fonts.py
YourNorth/rezak-summarizator
3ab2f4bf1044ea9654b4084a39030987e4b8bfe8
[ "MIT" ]
31
2020-03-20T17:53:08.000Z
2021-03-10T11:48:11.000Z
demo/q0w_demo_analyzer/core/fonts.py
YourNorth/rezak-summarizator
3ab2f4bf1044ea9654b4084a39030987e4b8bfe8
[ "MIT" ]
1
2020-03-20T05:01:16.000Z
2020-03-20T05:01:16.000Z
TESTPHRASE = 'Lorem ipsum' # ANSI COLORS # ====== FAMILY ===== # end = '\33[0m' bold = '\33[1m' italic = '\33[3m' underline = '\33[4m' blink = '\33[5m' blink2 = '\33[6m' selected = '\33[7m' # ====== COLOR ====== # # greyscale black = '\33[97m' grey = '\33[90m' grey2 = '\33[37m' white = '\33[30m' # less saturation red ...
31.798658
117
0.58358
0
0
0
0
0
0
0
0
1,263
0.266568
ae41b46656d025e136cbbd3d68dd912515307e97
1,370
py
Python
setup.py
eduk8s/prototype-cli
74443dafb08e5b65f48ea3b9a7a03a803f79437a
[ "Apache-2.0" ]
1
2019-12-30T02:52:56.000Z
2019-12-30T02:52:56.000Z
setup.py
eduk8s/prototype-cli
74443dafb08e5b65f48ea3b9a7a03a803f79437a
[ "Apache-2.0" ]
null
null
null
setup.py
eduk8s/prototype-cli
74443dafb08e5b65f48ea3b9a7a03a803f79437a
[ "Apache-2.0" ]
null
null
null
import sys import os from setuptools import setup long_description = open("README.rst").read() classifiers = [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Lang...
27.4
68
0.607299
0
0
0
0
0
0
0
0
718
0.524088
ae444d42c02b963c853a9f963e814c548f5a9dae
1,652
py
Python
torchsupport/training/score_supervised.py
bobelly/torchsupport
5aa0a04f20c193ec99310f5d6a3375d2e95e740d
[ "MIT" ]
18
2019-05-02T16:32:15.000Z
2021-04-16T09:33:54.000Z
torchsupport/training/score_supervised.py
bobelly/torchsupport
5aa0a04f20c193ec99310f5d6a3375d2e95e740d
[ "MIT" ]
5
2019-10-14T13:46:49.000Z
2021-06-08T11:48:34.000Z
torchsupport/training/score_supervised.py
bobelly/torchsupport
5aa0a04f20c193ec99310f5d6a3375d2e95e740d
[ "MIT" ]
12
2019-05-12T21:34:24.000Z
2021-07-15T14:14:16.000Z
import random import numpy as np import torch import torch.nn as nn import torch.nn.functional as func from torchsupport.data.io import netwrite, to_device, make_differentiable from torchsupport.training.energy import DenoisingScoreTraining from torchsupport.training.samplers import AnnealedLangevin class ScoreSupe...
30.592593
73
0.70339
1,346
0.81477
0
0
0
0
0
0
12
0.007264
ae44d99a916d3dc0c3e4c682ab78f7a52d9f0c8b
332
py
Python
src/modeling/models/timer.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
src/modeling/models/timer.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
src/modeling/models/timer.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
import time class Timer(): def __init__(self): self.start = time.time() def end(self): self.end = time.time() elapsed_time = self.end - self.start minutes = int(elapsed_time // 60) seconds = elapsed_time % 60 print("Elapsed time: {}m {}s".format(minutes, round...
22.133333
70
0.581325
317
0.954819
0
0
0
0
0
0
23
0.069277
ae490aaf317fe81f8776bee9c9b05dfe568d8efd
3,538
py
Python
tests/system/workspace_factory.py
davetcoleman/catkin_tools
3dd28ffab0e48775b14c6bab5a7b8b974cdd126c
[ "Apache-2.0" ]
null
null
null
tests/system/workspace_factory.py
davetcoleman/catkin_tools
3dd28ffab0e48775b14c6bab5a7b8b974cdd126c
[ "Apache-2.0" ]
null
null
null
tests/system/workspace_factory.py
davetcoleman/catkin_tools
3dd28ffab0e48775b14c6bab5a7b8b974cdd126c
[ "Apache-2.0" ]
null
null
null
import os import shutil from ..utils import temporary_directory class workspace_factory(temporary_directory): def __init__(self, source_space='src', prefix=''): super(workspace_factory, self).__init__(prefix=prefix) self.source_space = source_space def __enter__(self): self.temporary...
37.242105
113
0.623233
3,467
0.979932
0
0
0
0
0
0
704
0.198982
ae4a47fd92f1a12f864fae2ce0feac13263ca7ac
1,019
py
Python
setup.py
thermokarst-forks/q2-plugin-template
0583ed514a7476ae75fd7a052043e0aec2faecb9
[ "BSD-3-Clause" ]
5
2021-05-10T14:23:11.000Z
2022-03-04T14:37:15.000Z
setup.py
thermokarst-forks/q2-plugin-template
0583ed514a7476ae75fd7a052043e0aec2faecb9
[ "BSD-3-Clause" ]
2
2021-05-12T15:08:31.000Z
2021-07-13T13:57:24.000Z
setup.py
thermokarst-forks/q2-plugin-template
0583ed514a7476ae75fd7a052043e0aec2faecb9
[ "BSD-3-Clause" ]
3
2021-05-12T15:02:12.000Z
2022-02-09T13:33:19.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2021, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # -----------------------------------------------------...
29.970588
78
0.570167
0
0
0
0
0
0
0
0
614
0.602552
ae4a834438c1be65dcec72110a53d1ee4b52eb26
7,722
py
Python
zero/recommendation_algorithm.py
Akulen/mangaki-zero
5eb2de06b8684ed948b8b903e9f567f06c35e3ef
[ "MIT" ]
null
null
null
zero/recommendation_algorithm.py
Akulen/mangaki-zero
5eb2de06b8684ed948b8b903e9f567f06c35e3ef
[ "MIT" ]
null
null
null
zero/recommendation_algorithm.py
Akulen/mangaki-zero
5eb2de06b8684ed948b8b903e9f567f06c35e3ef
[ "MIT" ]
null
null
null
from zero.side import SideInformation from zero.chrono import Chrono from collections import defaultdict from itertools import product import numpy as np import pickle import os.path import logging class RecommendationAlgorithmFactory: def __init__(self): self.algorithm_registry = {} self.algorith...
35.916279
91
0.615644
7,192
0.931365
0
0
1,045
0.135328
0
0
1,581
0.20474
ae4aea0f2b66c03f8fc9b59889443427e5fe285c
150,103
py
Python
venv/Lib/site-packages/pyo/lib/_wxwidgets.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/pyo/lib/_wxwidgets.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/pyo/lib/_wxwidgets.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
from __future__ import division from __future__ import print_function from __future__ import absolute_import """ Copyright 2009-2015 Olivier Belanger This file is part of pyo, a python module to help digital signal processing script creation. pyo is free software: you can redistribute it and/or modify it under the t...
35.987293
120
0.525166
144,909
0.965397
0
0
0
0
0
0
8,333
0.055515
ae4bd329b0a39f201a2f41d92b1c573029070350
5,382
py
Python
napalm_yang/utils.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
64
2016-10-20T15:47:18.000Z
2021-11-11T11:57:32.000Z
napalm_yang/utils.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
126
2016-10-05T10:36:14.000Z
2019-05-15T08:43:23.000Z
napalm_yang/utils.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
63
2016-11-07T15:23:08.000Z
2021-09-22T14:41:16.000Z
from napalm_yang import base def model_to_dict(model, mode="", show_defaults=False): """ Given a model, return a representation of the model in a dict. This is mostly useful to have a quick visual represenation of the model. Args: model (PybindBase): Model to transform. mode (string...
30.40678
87
0.473987
0
0
0
0
0
0
0
0
2,931
0.544593
ae4dfb5b9ba2ae94cfbe34ece6b1afd93884dd8b
2,430
py
Python
config.py
kenykau/reinforcement-forex
cac8c59ae7f5593bb7d9bb47e85f4ba2435a7a33
[ "MIT" ]
null
null
null
config.py
kenykau/reinforcement-forex
cac8c59ae7f5593bb7d9bb47e85f4ba2435a7a33
[ "MIT" ]
null
null
null
config.py
kenykau/reinforcement-forex
cac8c59ae7f5593bb7d9bb47e85f4ba2435a7a33
[ "MIT" ]
null
null
null
from enum import IntEnum from typing import List, Dict class AssetType(IntEnum): FOREX = 0 CFD = 1 class SpreadMode(IntEnum): BIDASK = 0 RANDOM = 1 IGNORE = 2 FIXED = 3 SESSIONAL = 4 class Op(IntEnum): LONG = 0 SHORT = 1 HOLD = 2 CLOSEALL = 3 class Config: datafile:st...
25.851064
169
0.488477
2,367
0.974074
0
0
0
0
0
0
1,057
0.434979
ae4e5f7fe6b5f5c3253e178b1b6eeb60c312745d
3,020
py
Python
metaci/release/models.py
giveclarity/MetaCI
f51bd50acf2e7d5e111f993f4816e5f0a5c5a441
[ "BSD-3-Clause" ]
null
null
null
metaci/release/models.py
giveclarity/MetaCI
f51bd50acf2e7d5e111f993f4816e5f0a5c5a441
[ "BSD-3-Clause" ]
null
null
null
metaci/release/models.py
giveclarity/MetaCI
f51bd50acf2e7d5e111f993f4816e5f0a5c5a441
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from django.db import models from django.utils.translation import ugettext_lazy as _ from model_utils import Choices from model_utils.fields import AutoCreatedField, AutoLastModifiedField from model_utils.models import StatusModel from m...
30.816327
82
0.67351
2,640
0.874172
0
0
0
0
0
0
459
0.151987
ae4f4fa26dd1ca5d802353abe3e69eef53ebe442
218
py
Python
src/models/bert_crf.py
Zrealshadow/NLP_HW
1fcc874b53cdf9465ab188c12082587d48644601
[ "MIT" ]
1
2020-08-19T03:27:18.000Z
2020-08-19T03:27:18.000Z
src/models/bert_crf.py
OpenNLPhub/ChineseNER
1fcc874b53cdf9465ab188c12082587d48644601
[ "MIT" ]
null
null
null
src/models/bert_crf.py
OpenNLPhub/ChineseNER
1fcc874b53cdf9465ab188c12082587d48644601
[ "MIT" ]
null
null
null
import torch import os from torch import nn from transformers import BertForTokenClassification,BertTokenizer,BertConfig; cwd=os.getcwd() class BERT_CRF(nn.Module): def __init__(self,vocab_size): pass
16.769231
77
0.770642
74
0.33945
0
0
0
0
0
0
0
0
ae5037c12585478c8a1c85ed99c80d350dbc79af
415
py
Python
mathMB/__init__.py
mburger-stsci/mathMB
107c11a6e65429c5f7d2facb4ce4e199538a39d8
[ "BSD-3-Clause" ]
null
null
null
mathMB/__init__.py
mburger-stsci/mathMB
107c11a6e65429c5f7d2facb4ce4e199538a39d8
[ "BSD-3-Clause" ]
null
null
null
mathMB/__init__.py
mburger-stsci/mathMB
107c11a6e65429c5f7d2facb4ce4e199538a39d8
[ "BSD-3-Clause" ]
null
null
null
from .interpu import interpu from .minmaxmean import minmaxmean from .randomdeviates import random_deviates_1d, random_deviates_2d from .rotation_matrix import rotation_matrix from .smooth import smooth, smooth_sphere from .fit_model import fit_model from .histogram import HistogramSphere, Histogram, Histogram2d name...
29.642857
66
0.824096
0
0
0
0
0
0
0
0
49
0.118072
ae52b0c373a33d43af43b8a92c2a1b20dd0c87e2
3,841
py
Python
dgraphpandas/strategies/horizontal.py
rohith-bs/dgraphpandas
29e91e2e7bb1d5d991ab94709a2d7e27f7dd7316
[ "MIT" ]
1
2022-02-28T17:34:11.000Z
2022-02-28T17:34:11.000Z
dgraphpandas/strategies/horizontal.py
rohith-bs/dgraphpandas
29e91e2e7bb1d5d991ab94709a2d7e27f7dd7316
[ "MIT" ]
null
null
null
dgraphpandas/strategies/horizontal.py
rohith-bs/dgraphpandas
29e91e2e7bb1d5d991ab94709a2d7e27f7dd7316
[ "MIT" ]
1
2021-04-10T19:57:05.000Z
2021-04-10T19:57:05.000Z
import logging from typing import Any, Dict, List, Callable, Union import pandas as pd from dgraphpandas.config import get_from_config from dgraphpandas.strategies.vertical import vertical_transform logger = logging.getLogger(__name__) def horizontal_transform( frame: Union[str, pd.DataFrame], conf...
40.431579
123
0.667534
0
0
0
0
0
0
0
0
1,869
0.486592
ae533f8aecb8c3af4f9e6c1898e9747d30e5e6e5
2,675
py
Python
classifier-start/lib/utils.py
sharifkaiser/codelabs-edgetpu-image-classifier-detector
da01229abec824994776507949adad1939fa45f0
[ "Apache-2.0" ]
4
2019-05-13T15:18:36.000Z
2021-10-08T22:16:49.000Z
classifier-start/lib/utils.py
sharifkaiser/codelabs-edgetpu-image-classifier-detector
da01229abec824994776507949adad1939fa45f0
[ "Apache-2.0" ]
1
2019-06-30T14:43:31.000Z
2019-10-25T17:49:52.000Z
classifier-start/lib/utils.py
sharifkaiser/codelabs-edgetpu-image-classifier-detector
da01229abec824994776507949adad1939fa45f0
[ "Apache-2.0" ]
3
2019-07-22T15:16:02.000Z
2022-03-04T11:51:11.000Z
# 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.74026
94
0.575327
0
0
0
0
0
0
0
0
867
0.324112
ae537a846977c181886563c30f2c68e1118f6d27
74,410
py
Python
remit_admin/views.py
naamara/blink
326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a
[ "Unlicense", "MIT" ]
null
null
null
remit_admin/views.py
naamara/blink
326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a
[ "Unlicense", "MIT" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
remit_admin/views.py
naamara/blink
326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a
[ "Unlicense", "MIT" ]
null
null
null
# Create your views here. from django.template import Template, context, RequestContext from django.shortcuts import render_to_response, render, get_object_or_404, redirect, HttpResponseRedirect, HttpResponse from django.contrib.auth.decorators import login_required from remit_admin.forms import RateUpdateForm, Profile...
39.432962
430
0.619339
0
0
0
0
51,355
0.690163
0
0
17,236
0.231636
ae5506b0817f6bd6ba613b44f0005304d3cd1c5d
932
py
Python
example.py
rivasd/activiewBCI
b2278ebacc733e328f28d308146108a52d3deb78
[ "MIT" ]
1
2020-09-10T08:04:06.000Z
2020-09-10T08:04:06.000Z
example.py
rivasd/activiewBCI
b2278ebacc733e328f28d308146108a52d3deb78
[ "MIT" ]
null
null
null
example.py
rivasd/activiewBCI
b2278ebacc733e328f28d308146108a52d3deb78
[ "MIT" ]
null
null
null
from ActiView import ActiveTwo import pyqtgraph as pg from pyqtgraph.Qt import QtCore, QtGui import numpy as np app = QtGui.QApplication([]) win = pg.GraphicsWindow() win.setWindowTitle("Mimicking ActiView's EEG monitoring screen") monitor = win.addPlot() #we have so many curves that we will store them in an array ...
23.897436
76
0.714592
0
0
0
0
0
0
0
0
226
0.242489
ae56d2f7d0da35ed27472371e04da9a9312adf59
608
py
Python
encoder_decoder_model/DNS_NetworkParameters_Jiao_Wan.py
mrjiao2018/LearningGroupStructure
7426837b8c96f771724cfd663a57ed32f9d16560
[ "MIT" ]
1
2018-12-07T14:36:13.000Z
2018-12-07T14:36:13.000Z
encoder_decoder_model/DNS_NetworkParameters_Jiao_Wan.py
mrjiao2018/LearningGroupStructure
7426837b8c96f771724cfd663a57ed32f9d16560
[ "MIT" ]
null
null
null
encoder_decoder_model/DNS_NetworkParameters_Jiao_Wan.py
mrjiao2018/LearningGroupStructure
7426837b8c96f771724cfd663a57ed32f9d16560
[ "MIT" ]
1
2018-12-05T11:03:07.000Z
2018-12-05T11:03:07.000Z
import os class NetworkParameters: def __init__(self, modelDirectory): self.modelDirectory = modelDirectory if os.path.exists(self.modelDirectory) is False: os.mkdir(self.modelDirectory) self.checkpointedModelDir = os.path.join(self.modelDirectory, 'savedModels') if ...
33.777778
94
0.710526
596
0.980263
0
0
0
0
0
0
54
0.088816
ae581ce55f5c70d548f9c9c2e1e5bda4e73bac54
11,401
py
Python
segmentron/utils/visualize.py
GhadeerElmkaiel/Trans2Seg
6717db602205cbed494ae1913ac7cbbca8e83463
[ "Apache-2.0" ]
null
null
null
segmentron/utils/visualize.py
GhadeerElmkaiel/Trans2Seg
6717db602205cbed494ae1913ac7cbbca8e83463
[ "Apache-2.0" ]
null
null
null
segmentron/utils/visualize.py
GhadeerElmkaiel/Trans2Seg
6717db602205cbed494ae1913ac7cbbca8e83463
[ "Apache-2.0" ]
null
null
null
import os import logging import numpy as np import torch from PIL import Image #from torchsummary import summary from thop import profile __all__ = ['get_color_pallete', 'print_iou', 'set_img_color', 'show_prediction', 'show_colorful_images', 'save_colorful_images'] def print_iou(iu, mean_pixel_acc, clas...
46.534694
3,459
0.556179
0
0
0
0
444
0.038944
0
0
1,420
0.12455
ae585b1ebb6ddaac2ce15869614a545c6f947635
342
py
Python
pangolin/core/context_processors.py
skylifewww/pangolinreact
8d8a45fd15c442618f2ed1ecab15e2e2ab4b7a3a
[ "MIT" ]
null
null
null
pangolin/core/context_processors.py
skylifewww/pangolinreact
8d8a45fd15c442618f2ed1ecab15e2e2ab4b7a3a
[ "MIT" ]
null
null
null
pangolin/core/context_processors.py
skylifewww/pangolinreact
8d8a45fd15c442618f2ed1ecab15e2e2ab4b7a3a
[ "MIT" ]
null
null
null
from django.conf import settings from django.utils.timezone import now from .utils import intspace, set_param def extra(request): ctx = { 'dir': dir, 'list': list, 'len': len, 'enumerate': enumerate, 'range': range, 'settings': settings, 'now': now, 'intspace': intspace, 'set_param': set_...
26.307692
85
0.652047
0
0
0
0
0
0
0
0
70
0.204678
ae58d33794d0e8f0c6295bcf0262290cc4e159e7
1,163
py
Python
Python/Advanced OOP/Attributes/Hotel/01. Hotel.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
Python/Advanced OOP/Attributes/Hotel/01. Hotel.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
Python/Advanced OOP/Attributes/Hotel/01. Hotel.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
class Hotel: def __init__(self, name: str): self.name = name self.rooms = [] self.guests = 0 @classmethod def from_stars(cls, stars_count): name = f'{stars_count} stars Hotel' return cls(name) def add_room(self, room): self.rooms.append(room)...
29.820513
97
0.563199
1,153
0.991402
0
0
122
0.104901
0
0
238
0.204643
ae5b1b9181972edef32d0c181d78511358cde1b1
2,671
py
Python
8_random_walker_segmentation_scikit-image.py
Data-Laboratory/WorkExamples
27e58207e664da7813673e6792c0c30c0a5bf74c
[ "MIT" ]
1
2021-12-15T22:27:27.000Z
2021-12-15T22:27:27.000Z
8_random_walker_segmentation_scikit-image.py
Data-Laboratory/WorkExamples
27e58207e664da7813673e6792c0c30c0a5bf74c
[ "MIT" ]
null
null
null
8_random_walker_segmentation_scikit-image.py
Data-Laboratory/WorkExamples
27e58207e664da7813673e6792c0c30c0a5bf74c
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Sreenivas Bhattiprolu" __license__ = "Feel free to copy, I appreciate if you acknowledge Python for Microscopists" # https://www.youtube.com/watch?v=6P8YhJa2V6o """ Using Random walker to generate lables and then segment and finally cleanup using closing operation. """ import mat...
31.797619
102
0.7383
0
0
0
0
0
0
0
0
1,278
0.478472
ae5c773b88cd0f9d9fbee09e572ef2fc27d6c119
40
py
Python
smileyjoe_io/constant.py
SmileyJoe/smileyjoe_io
29e3b55e33f17f799f59801158499809fcce0af4
[ "MIT" ]
null
null
null
smileyjoe_io/constant.py
SmileyJoe/smileyjoe_io
29e3b55e33f17f799f59801158499809fcce0af4
[ "MIT" ]
2
2020-02-11T23:34:28.000Z
2020-06-05T17:33:09.000Z
smileyjoe_io/constant.py
SmileyJoe/smileyjoe_io
29e3b55e33f17f799f59801158499809fcce0af4
[ "MIT" ]
null
null
null
SUB_SECRET = 'secret' SUB_MAIN = 'main'
13.333333
21
0.7
0
0
0
0
0
0
0
0
14
0.35
ae5dba7efd27593d74b0d517709967bd1f8e2e4a
3,090
py
Python
dockend/dockend.py
ChrisVidal10/dockend
8904e1d017fcc1767d8593190df537a750a50b4c
[ "MIT" ]
null
null
null
dockend/dockend.py
ChrisVidal10/dockend
8904e1d017fcc1767d8593190df537a750a50b4c
[ "MIT" ]
1
2018-06-25T23:38:09.000Z
2018-06-25T23:38:09.000Z
dockend/dockend.py
ChrisVidal10/dockend
8904e1d017fcc1767d8593190df537a750a50b4c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from termcolor import cprint import argparse import docker DOCKER_CLIENT = docker.from_env() def main(): try: not_found_for_stop = False not_found_for_start = False ARGS = parser_arguments() k_name_stop = 'byr' if ARGS.service == 'dla' else 'dev' k_nam...
35.517241
124
0.612621
0
0
0
0
0
0
0
0
867
0.280583
ae5e90efc8111cc99c18543d5afea38d02da46b8
125
py
Python
crawlerhttp/http_header_generator.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
crawlerhttp/http_header_generator.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
crawlerhttp/http_header_generator.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
def get_http_header(user_agent): # 字典数据类型 dict headers = { 'user-agent': user_agent } return headers
17.857143
32
0.616
0
0
0
0
0
0
0
0
37
0.270073
ae616a523c7cfa0788d9038fa4b59abb5b2c597c
625
py
Python
exp_figure/figure_3(grey).py
qqxx6661/LDSM
b2be6fdfdac00fc4a469a72b3a10686fa0f4bd80
[ "MIT" ]
4
2019-06-04T06:19:01.000Z
2021-04-16T15:50:30.000Z
exp_figure/figure_3(grey).py
qqxx6661/LDSM
b2be6fdfdac00fc4a469a72b3a10686fa0f4bd80
[ "MIT" ]
1
2019-09-10T10:33:18.000Z
2021-02-08T14:51:39.000Z
exp_figure/figure_3(grey).py
qqxx6661/LDSM
b2be6fdfdac00fc4a469a72b3a10686fa0f4bd80
[ "MIT" ]
2
2019-06-04T06:19:08.000Z
2021-09-06T07:30:44.000Z
import random import matplotlib.pyplot as plt import numpy as np # 在一个图形中创建两条线 fig = plt.figure(figsize=(10, 6)) ax1 = fig.add_subplot(1, 1, 1) ax1.set_xlabel('Frame', fontsize=18) ax1.set_ylabel('Overall Time Cost (s)', fontsize=18) x = range(180) y1 = [] y2 = [] for i in range(180): y1.append(random.uniform(0...
23.148148
64
0.68
0
0
0
0
0
0
0
0
106
0.163833
ae6311f1dc6cb97bf176a5a088a3d0aac371ae07
176
py
Python
src/radixlib/constants.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
32
2022-01-12T16:52:28.000Z
2022-03-24T18:05:47.000Z
src/radixlib/constants.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
3
2022-01-12T17:01:55.000Z
2022-02-12T15:14:16.000Z
src/radixlib/constants.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
1
2022-01-21T04:28:07.000Z
2022-01-21T04:28:07.000Z
from typing import Dict XRD_RRI: Dict[str, str] = { "mainnet": "xrd_rr1qy5wfsfh", "stokenet": "xrd_tr1qyf0x76s", "betanet": "xrd_br1qy73gwac", "localnet": "" }
22
34
0.636364
0
0
0
0
0
0
0
0
91
0.517045
ae63be6d85b78ced6ae0f350b22b8798f6f015df
1,349
py
Python
tests/examples/coreutils/ls/requirements/requirements.py
testflows/TestFlows-Core
0aa17247dffd2f7199465031ab16cc4f12c9cfb0
[ "Apache-2.0" ]
3
2020-06-25T19:23:19.000Z
2021-10-20T19:29:56.000Z
tests/examples/coreutils/ls/requirements/requirements.py
testflows/TestFlows-Core
0aa17247dffd2f7199465031ab16cc4f12c9cfb0
[ "Apache-2.0" ]
null
null
null
tests/examples/coreutils/ls/requirements/requirements.py
testflows/TestFlows-Core
0aa17247dffd2f7199465031ab16cc4f12c9cfb0
[ "Apache-2.0" ]
1
2020-02-24T12:31:45.000Z
2020-02-24T12:31:45.000Z
# These requirements were auto generated # from software requirements specification (SRS) # document by TestFlows v1.6.200716.1214830. # Do not edit by hand but re-generate instead # using 'tfs requirements generate' command. from testflows.core import Requirement RQ_SRS001_CU_LS = Requirement( name='RQ.SRS001...
26.45098
107
0.578206
0
0
0
0
0
0
0
0
600
0.444774
ae6410131f36b3418762c4c860f8c13f5bed9bd8
1,067
py
Python
build/lib/flaskr/__init__.py
LayneWei/NLP-medical-information-extraction
1657d956afd3a2c476da28e3e8a4f1c4ce4bdc4b
[ "MIT" ]
null
null
null
build/lib/flaskr/__init__.py
LayneWei/NLP-medical-information-extraction
1657d956afd3a2c476da28e3e8a4f1c4ce4bdc4b
[ "MIT" ]
null
null
null
build/lib/flaskr/__init__.py
LayneWei/NLP-medical-information-extraction
1657d956afd3a2c476da28e3e8a4f1c4ce4bdc4b
[ "MIT" ]
null
null
null
import os from flask import Flask #import SQLAlchemy from flaskr import db def clear_data(session): meta = db.metadata for table in reversed(meta.sorted_tables): print('Clear table %s' % table) session.execute(table.delete()) session.commit() def create_app(test_config=None): # cre...
23.711111
66
0.66448
0
0
0
0
0
0
0
0
233
0.218369
ae6515732de013312213bbfb2e08738b394327ad
139
py
Python
nlpatl/sampling/clustering/__init__.py
dumpmemory/nlpatl
59209242d1ac26714b11b86261070ac50cc90432
[ "MIT" ]
18
2021-11-29T06:43:46.000Z
2022-03-29T09:58:32.000Z
nlpatl/sampling/clustering/__init__.py
dumpmemory/nlpatl
59209242d1ac26714b11b86261070ac50cc90432
[ "MIT" ]
null
null
null
nlpatl/sampling/clustering/__init__.py
dumpmemory/nlpatl
59209242d1ac26714b11b86261070ac50cc90432
[ "MIT" ]
1
2021-11-29T06:43:47.000Z
2021-11-29T06:43:47.000Z
from nlpatl.sampling.clustering.nearest_mean import NearestMeanSampling from nlpatl.sampling.clustering.farthest import FarthestSampling
46.333333
72
0.884892
0
0
0
0
0
0
0
0
0
0
ae689f1c1175daa6fc473f2cb48f19de2559deff
830
py
Python
EvaMap/Metrics/sameAs.py
benjimor/EvaMap
42e616abe9f15925b885797d30496e30615989a0
[ "MIT" ]
1
2021-01-29T18:53:26.000Z
2021-01-29T18:53:26.000Z
EvaMap/Metrics/sameAs.py
benjimor/EvaMap
42e616abe9f15925b885797d30496e30615989a0
[ "MIT" ]
1
2021-06-06T17:56:00.000Z
2021-06-06T17:56:00.000Z
EvaMap/Metrics/sameAs.py
benjimor/EvaMap
42e616abe9f15925b885797d30496e30615989a0
[ "MIT" ]
null
null
null
import rdflib import requests from EvaMap.Metrics.metric import metric def sameAs(g_onto, liste_map, g_map, raw_data, g_link) : result = metric() result['name'] = "Use of sameAs properties" nbPossible = 0 points = 0 set_URIs = set() for s, _, _ in g_map.triples((None, None, None)) : if...
31.923077
112
0.595181
0
0
0
0
0
0
0
0
121
0.145783
ae69157e9e2838981548e0247bcf82bb4114ecc3
1,501
py
Python
zeeko/handlers/setup_package.py
alexrudy/Zeeko
fb4992724620ed548dd32c3201f79f5b7bebfe32
[ "BSD-3-Clause" ]
2
2017-07-23T22:06:05.000Z
2020-02-28T07:54:15.000Z
zeeko/handlers/setup_package.py
alexrudy/Zeeko
fb4992724620ed548dd32c3201f79f5b7bebfe32
[ "BSD-3-Clause" ]
1
2020-10-29T19:54:06.000Z
2020-10-29T19:54:06.000Z
zeeko/handlers/setup_package.py
alexrudy/Zeeko
fb4992724620ed548dd32c3201f79f5b7bebfe32
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import os from zeeko._build_helpers import get_utils_extension_args, get_zmq_extension_args, _generate_cython_extensions, pxd, get_package_data from astropy_helpers import setup_helpers utilities = [pxd("..utils.rc"), pxd("..utils.msg"), ...
38.487179
133
0.654231
0
0
0
0
0
0
0
0
361
0.240506
ae69c8b77055ca55392fe8a19a30b6175954dde3
5,716
py
Python
networkapi/api_route_map/v4/serializers.py
vinicius-marinho/GloboNetworkAPI
94651d3b4dd180769bc40ec966814f3427ccfb5b
[ "Apache-2.0" ]
73
2015-04-13T17:56:11.000Z
2022-03-24T06:13:07.000Z
networkapi/api_route_map/v4/serializers.py
leopoldomauricio/GloboNetworkAPI
3b5b2e336d9eb53b2c113977bfe466b23a50aa29
[ "Apache-2.0" ]
99
2015-04-03T01:04:46.000Z
2021-10-03T23:24:48.000Z
networkapi/api_route_map/v4/serializers.py
shildenbrand/GloboNetworkAPI
515d5e961456cee657c08c275faa1b69b7452719
[ "Apache-2.0" ]
64
2015-08-05T21:26:29.000Z
2022-03-22T01:06:28.000Z
# -*- coding: utf-8 -*- import logging from django.db.models import get_model from rest_framework import serializers from networkapi.util.geral import get_app from networkapi.util.serializers import DynamicFieldsModelSerializer log = logging.getLogger(__name__) class RouteMapV4Serializer(DynamicFieldsModelSerializ...
31.065217
78
0.448216
5,445
0.952589
0
0
0
0
0
0
1,414
0.247376
ae6b38b5ef961be1df343f27398c8d975b548233
274
py
Python
src/admin_panel/models.py
sahilsehgal1995/lenme-api
65826619b039c5c4035b6e0c133c32014977489e
[ "MIT" ]
null
null
null
src/admin_panel/models.py
sahilsehgal1995/lenme-api
65826619b039c5c4035b6e0c133c32014977489e
[ "MIT" ]
null
null
null
src/admin_panel/models.py
sahilsehgal1995/lenme-api
65826619b039c5c4035b6e0c133c32014977489e
[ "MIT" ]
null
null
null
from src import db, BaseMixin class Log(db.Model, BaseMixin): action = db.Column(db.String(55), nullable=False) owner_id = db.Column(db.Integer, db.ForeignKey('user.id')) updated_data = db.Column(db.String(1024)) updated_model = db.Column(db.String(125))
27.4
62
0.70073
241
0.879562
0
0
0
0
0
0
9
0.032847
ae6dc1d38a589fb6dfb638a55ee82b80c824df9d
10,329
py
Python
actions/line_mmc.py
fmariv/udt-qgis-plugin
20cbf8889f2a2448d982c7057a4cfbe37d90d78b
[ "MIT" ]
null
null
null
actions/line_mmc.py
fmariv/udt-qgis-plugin
20cbf8889f2a2448d982c7057a4cfbe37d90d78b
[ "MIT" ]
2
2021-09-02T07:22:24.000Z
2021-09-22T05:31:45.000Z
actions/line_mmc.py
fmariv/udt-qgis-plugin
20cbf8889f2a2448d982c7057a4cfbe37d90d78b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** UDTPlugin In this file is where the LineMMC class is defined. The main function of this class is to run the automation process that exports the geometries and generates the metadata of a municipal line. **********...
41.817814
127
0.618162
9,503
0.919853
0
0
0
0
0
0
2,336
0.226116
ae6e3ce852e6d0276690375427d2e2f3c5953dfb
5,369
py
Python
SentimentAnalysis.py
hoossainalik/instalyzer
9ad7c59fba3f617801d3ec0c3ae216029ee0aece
[ "MIT" ]
null
null
null
SentimentAnalysis.py
hoossainalik/instalyzer
9ad7c59fba3f617801d3ec0c3ae216029ee0aece
[ "MIT" ]
null
null
null
SentimentAnalysis.py
hoossainalik/instalyzer
9ad7c59fba3f617801d3ec0c3ae216029ee0aece
[ "MIT" ]
null
null
null
""" Module: Sentiment Analysis Author: Hussain Ali Khan Version: 1.0.0 Last Modified: 29/11/2018 (Thursday) """ from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer import pandas as pd import re import os from emoji import UNICODE_EMOJI import matplotlib.pyplot as plt import seaborn as sns class Res...
28.558511
109
0.596573
2,564
0.477379
0
0
0
0
0
0
1,230
0.229008
ae6e8bcab2c7710339f988ae2adebe63a8a6d860
11,100
py
Python
deep_sort_/track.py
brjathu/PHALP
0502c0aa515292bc70e358fe3b3ec65e63215327
[ "MIT" ]
45
2022-02-23T04:32:22.000Z
2022-03-31T15:02:39.000Z
deep_sort_/track.py
brjathu/PHALP
0502c0aa515292bc70e358fe3b3ec65e63215327
[ "MIT" ]
5
2022-02-23T15:08:29.000Z
2022-03-24T19:54:55.000Z
deep_sort_/track.py
brjathu/PHALP
0502c0aa515292bc70e358fe3b3ec65e63215327
[ "MIT" ]
2
2022-02-26T13:01:19.000Z
2022-03-24T04:53:29.000Z
""" Modified code from https://github.com/nwojke/deep_sort """ import numpy as np import copy import torch import torch.nn as nn import torch.nn.functional as F import scipy.signal as signal from scipy.ndimage.filters import gaussian_filter1d class TrackState: """ Enumeration type for the single target t...
42.692308
176
0.607748
10,847
0.977207
0
0
0
0
0
0
2,807
0.252883
ae722ba487151806c74bc4bb207a931bee8b9346
818
py
Python
meiduo_mall/apps/users/utils.py
150619/meiduo_mall_project
c0441ad744c6dd0e2962d5e734c842e237b9ad0b
[ "MIT" ]
null
null
null
meiduo_mall/apps/users/utils.py
150619/meiduo_mall_project
c0441ad744c6dd0e2962d5e734c842e237b9ad0b
[ "MIT" ]
null
null
null
meiduo_mall/apps/users/utils.py
150619/meiduo_mall_project
c0441ad744c6dd0e2962d5e734c842e237b9ad0b
[ "MIT" ]
null
null
null
import re from django.contrib.auth.backends import ModelBackend from django.contrib.auth.mixins import LoginRequiredMixin from django.http import JsonResponse from apps.users.models import User class AuthMobile(ModelBackend): def authenticate(self, request, username=None, password=None, **kwargs): try: ...
29.214286
76
0.656479
626
0.756039
0
0
0
0
0
0
47
0.056763
ae738c094d5028bff43bc7f3386c802a9cf32a46
95
py
Python
ginger/scripts/templates/app_templates/app_name/urls.py
vivsh/django-ginger
d293109becc72845a23f2aeb732ed808a7a67d69
[ "MIT" ]
null
null
null
ginger/scripts/templates/app_templates/app_name/urls.py
vivsh/django-ginger
d293109becc72845a23f2aeb732ed808a7a67d69
[ "MIT" ]
null
null
null
ginger/scripts/templates/app_templates/app_name/urls.py
vivsh/django-ginger
d293109becc72845a23f2aeb732ed808a7a67d69
[ "MIT" ]
null
null
null
from django.conf.urls import url, patterns from . import views urlpatterns = patterns("", )
11.875
42
0.726316
0
0
0
0
0
0
0
0
2
0.021053
ae73d85a5f4dcb6adc5dcd4a48bf418ba8cec3c0
1,184
py
Python
ppln/gatkRealignerTargCreator.py
asalomatov/nextgen-pipeline
4ac358050075dc40d32a1c09160e86a41f093f98
[ "MIT" ]
4
2017-08-11T21:02:35.000Z
2020-10-29T19:49:41.000Z
ppln/gatkRealignerTargCreator.py
asalomatov/nextgen-pipeline
4ac358050075dc40d32a1c09160e86a41f093f98
[ "MIT" ]
null
null
null
ppln/gatkRealignerTargCreator.py
asalomatov/nextgen-pipeline
4ac358050075dc40d32a1c09160e86a41f093f98
[ "MIT" ]
2
2017-08-18T19:40:10.000Z
2017-08-19T03:43:07.000Z
''' ''' import sys, subprocess sys.path.insert(0, '/nethome/asalomatov/projects/ppln') import logProc ntFlag = '-nt 10' #interval_padding = '--interval_padding 0' # bed files padded with 100bp interval_padding = '--interval_padding 200' read_filter = '--read_filter BadCigar' print '\nsys.args :', sys.argv[1:] inb...
42.285714
215
0.705236
0
0
0
0
0
0
0
0
633
0.534628
ae74ea38559f52ac217bf0d17616d5da35736211
14,773
py
Python
functions_baseline_opencv.py
Shiro-LK/Super-Resolution-ProbaV
e6b9d9d62caa50b84cd5bdca906af53aa1a5de8b
[ "MIT" ]
null
null
null
functions_baseline_opencv.py
Shiro-LK/Super-Resolution-ProbaV
e6b9d9d62caa50b84cd5bdca906af53aa1a5de8b
[ "MIT" ]
null
null
null
functions_baseline_opencv.py
Shiro-LK/Super-Resolution-ProbaV
e6b9d9d62caa50b84cd5bdca906af53aa1a5de8b
[ "MIT" ]
1
2020-04-15T10:36:31.000Z
2020-04-15T10:36:31.000Z
# -*- coding: utf-8 -*- import cv2 import numpy as np import os import pandas as pd import math from skimage import io from skimage.transform import rescale import skimage import numba from numba import prange import time from pathlib import Path # MAX 35 IMG ## Create TXT FILE for loading def import_norm_data(fil...
34.678404
175
0.56434
0
0
0
0
8,648
0.585392
0
0
3,586
0.24274
ae75ff7994410f7e88a0e941f01acf2c32ca349b
4,676
py
Python
csvtoqbo.py
Airbitz/airbitz-ofx
8dc9a851fc585e373611d6d8e27ae0e8540ea35b
[ "MIT" ]
2
2016-01-08T20:14:21.000Z
2018-06-15T17:58:09.000Z
csvtoqbo.py
EdgeApp/airbitz-ofx
8dc9a851fc585e373611d6d8e27ae0e8540ea35b
[ "MIT" ]
null
null
null
csvtoqbo.py
EdgeApp/airbitz-ofx
8dc9a851fc585e373611d6d8e27ae0e8540ea35b
[ "MIT" ]
2
2016-01-08T20:14:22.000Z
2016-03-30T19:59:48.000Z
##################################################################### # # # File: csvtoqbo.py # # Developer: Paul Puey # # Original Code by: Justin Leto # # Forked from https://github.com/jleto/csvtoqbo # # # # main utility script file Python scrip...
39.965812
155
0.534217
0
0
0
0
0
0
0
0
1,629
0.348375
ae76f9115d5aeaf3a667d8ad57a43721c93b13f6
14,613
py
Python
api/app/models/test_geofile.py
enermaps/enermaps
bac472e60e44724be605068103d01da0320483e6
[ "Apache-2.0" ]
5
2021-09-09T13:17:09.000Z
2022-03-31T11:57:06.000Z
api/app/models/test_geofile.py
enermaps/enermaps
bac472e60e44724be605068103d01da0320483e6
[ "Apache-2.0" ]
154
2020-10-16T09:14:00.000Z
2022-03-31T13:31:17.000Z
api/app/models/test_geofile.py
enermaps/enermaps
bac472e60e44724be605068103d01da0320483e6
[ "Apache-2.0" ]
9
2021-05-20T15:12:54.000Z
2022-03-15T15:39:42.000Z
import copy import json import os from app.common import path from app.common.projection import epsg_string_to_proj4 from app.common.test import BaseApiTest from . import geofile, storage class TestLoad(BaseApiTest): def testArea(self): with self.flask_app.app_context(): layer = geofile.load...
34.222482
88
0.534729
14,399
0.985356
0
0
0
0
0
0
2,429
0.166222
ae776a59c5b3c2f0543df97b416e9a2ebb997432
488
py
Python
mypylib/utils.py
WillJBrown/displayotron
8fa143acc7a70c47d4a288bd81afb7241dd10b9f
[ "MIT" ]
null
null
null
mypylib/utils.py
WillJBrown/displayotron
8fa143acc7a70c47d4a288bd81afb7241dd10b9f
[ "MIT" ]
null
null
null
mypylib/utils.py
WillJBrown/displayotron
8fa143acc7a70c47d4a288bd81afb7241dd10b9f
[ "MIT" ]
null
null
null
import os import sys def get_script_path(): #the path to the actual called script return os.path.realpath(sys.argv[0]) def get_script_dir(): #the path to the actual called script directory return os.path.dirname(os.path.realpath(sys.argv[0])) def get_executing_file_dir(): #e.g. the path to the module file ...
32.533333
75
0.75
0
0
0
0
0
0
0
0
162
0.331967
ae777c31a89605e1d2a2a1e2bfa85ac8840eebee
6,676
py
Python
src/modules/base/Configuration.py
andreaswatch/piTomation
140bff77ad0b84ad17898106c7be7dc48a2d0783
[ "MIT" ]
null
null
null
src/modules/base/Configuration.py
andreaswatch/piTomation
140bff77ad0b84ad17898106c7be7dc48a2d0783
[ "MIT" ]
null
null
null
src/modules/base/Configuration.py
andreaswatch/piTomation
140bff77ad0b84ad17898106c7be7dc48a2d0783
[ "MIT" ]
null
null
null
''' Basic piTomation configuration options. ''' from pydantic import BaseModel from typing import Any, Optional, Union from pydantic.class_validators import validator __pdoc__ = { "WithPlugins": None, "configuration": None } __registry: dict[type, list[type]] = {} '''Contains all @configuration class types,...
29.539823
142
0.687088
5,306
0.794787
0
0
0
0
0
0
4,223
0.632564
ae78cbed15f9ad137cc2fb68f470a749694330cd
72
py
Python
danceschool/payments/paypal/__init__.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
32
2017-09-12T04:25:25.000Z
2022-03-21T10:48:07.000Z
danceschool/payments/paypal/__init__.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
97
2017-09-01T02:43:08.000Z
2022-01-03T18:20:34.000Z
danceschool/payments/paypal/__init__.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
19
2017-09-26T13:34:46.000Z
2022-03-21T10:48:10.000Z
default_app_config = 'danceschool.payments.paypal.apps.PaypalAppConfig'
36
71
0.861111
0
0
0
0
0
0
0
0
50
0.694444
ae7a6bf6cf0a8187540066ce63f57293b91d1b01
25
py
Python
datamaps/__init__.py
fossabot/datamaps-1
c66c3f20e43bd41ec0874f40f39bd0eff89fd476
[ "MIT" ]
null
null
null
datamaps/__init__.py
fossabot/datamaps-1
c66c3f20e43bd41ec0874f40f39bd0eff89fd476
[ "MIT" ]
null
null
null
datamaps/__init__.py
fossabot/datamaps-1
c66c3f20e43bd41ec0874f40f39bd0eff89fd476
[ "MIT" ]
null
null
null
__version__ = "1.0.0b13"
12.5
24
0.68
0
0
0
0
0
0
0
0
10
0.4
ae7c6c2bff216ece676b2bf277a3dea69a26d9e6
2,414
py
Python
python/opentrons_ot3_firmware/scripts/generate_header.py
Opentrons/ot3-firmware
3047fbf54ed2bf9350a9fe02c0c0fb246ac0285a
[ "Apache-2.0" ]
3
2021-09-21T13:20:27.000Z
2021-12-02T13:12:32.000Z
python/opentrons_ot3_firmware/scripts/generate_header.py
Opentrons/ot3-firmware
3047fbf54ed2bf9350a9fe02c0c0fb246ac0285a
[ "Apache-2.0" ]
36
2021-08-10T15:18:09.000Z
2022-03-30T19:08:13.000Z
python/opentrons_ot3_firmware/scripts/generate_header.py
Opentrons/ot3-firmware
3047fbf54ed2bf9350a9fe02c0c0fb246ac0285a
[ "Apache-2.0" ]
null
null
null
"""Script to generate c++ header file of canbus constants.""" from __future__ import annotations import argparse import io from enum import Enum from typing import Type, Any import sys from opentrons_ot3_firmware.constants import ( MessageId, FunctionCode, NodeId, ) class block: """C block generator....
27.431818
83
0.584921
710
0.294118
0
0
0
0
0
0
936
0.387738
ae81bb11bf5eb162ed9c0bef3b103ae5f25903e5
772
py
Python
icekit/response_pages/migrations/0001_initial.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
52
2016-09-13T03:50:58.000Z
2022-02-23T16:25:08.000Z
icekit/response_pages/migrations/0001_initial.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
304
2016-08-11T14:17:30.000Z
2020-07-22T13:35:18.000Z
icekit/response_pages/migrations/0001_initial.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
12
2016-09-21T18:46:35.000Z
2021-02-15T19:37:50.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='ResponsePage', fields=[ ('id', models.AutoField...
29.692308
143
0.563472
663
0.858808
0
0
0
0
0
0
120
0.15544
ae81fe56f7386088702aa7258803c69277db7d71
5,495
py
Python
tests/cancer.py
old-rob/cptac
9b33893dd11c9320628a751c8840783a6ce81957
[ "Apache-2.0" ]
null
null
null
tests/cancer.py
old-rob/cptac
9b33893dd11c9320628a751c8840783a6ce81957
[ "Apache-2.0" ]
null
null
null
tests/cancer.py
old-rob/cptac
9b33893dd11c9320628a751c8840783a6ce81957
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Samuel Payne [email protected] # 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 ...
33.10241
89
0.593267
4,630
0.842584
0
0
0
0
0
0
2,352
0.428025
ae836b13e8e1a6b59a6fe8580af78a2b08d03bc1
1,958
py
Python
mobula/solvers/LRUpdater.py
wkcn/mobula
4eec938d6477776f5f2d68bcf41de83fb8da5195
[ "MIT" ]
47
2017-07-15T02:13:18.000Z
2022-01-01T09:37:59.000Z
mobula/solvers/LRUpdater.py
wkcn/mobula
4eec938d6477776f5f2d68bcf41de83fb8da5195
[ "MIT" ]
3
2018-06-22T13:55:12.000Z
2020-01-29T01:41:13.000Z
mobula/solvers/LRUpdater.py
wkcn/mobula
4eec938d6477776f5f2d68bcf41de83fb8da5195
[ "MIT" ]
8
2017-09-03T12:42:54.000Z
2020-09-27T03:38:59.000Z
#coding=utf-8 import numpy as np # TODO: MULTISTEP LR_POLICY_NUM = 7 class LR_POLICY: FIXED, STEP, EXP, INV, MULTISTEP, POLY, SIGMOID = range(LR_POLICY_NUM) class LRUpdater: def __init__(self, *args, **kwargs): if "base_lr" in kwargs: self.base_lr = kwargs["base_lr"] else: ...
37.653846
94
0.650664
1,531
0.78192
0
0
0
0
0
0
169
0.086313
ae83889dc0e1e2a10d944afb86e01b0c15293029
5,098
py
Python
code/mlflow.py
michaelhball/ml_tidbits
55b77fded5f31cd280f043c8aa792a07ca572170
[ "MIT" ]
1
2021-04-15T19:42:51.000Z
2021-04-15T19:42:51.000Z
code/mlflow.py
michaelhball/ml_toolshed
55b77fded5f31cd280f043c8aa792a07ca572170
[ "MIT" ]
null
null
null
code/mlflow.py
michaelhball/ml_toolshed
55b77fded5f31cd280f043c8aa792a07ca572170
[ "MIT" ]
null
null
null
import git from mlflow.tracking import MlflowClient from .utils import scp_files class MyMLFlowClient: """ Class to handle all MLFlow interactions. Only need one such client (i.e. can be used for many training runs). """ def __init__(self, tracking_uri): """ Initialise :param t...
41.112903
113
0.632797
5,012
0.983131
0
0
0
0
0
0
2,127
0.417222
ae84bc9755e4432da8e4dc0549c028ec150a10c7
4,215
py
Python
infinite_nature/autocruise.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
infinite_nature/autocruise.py
davidfitzek/google-research
eb2b142f26e39aac1dcbb768417465ae9d4e5af6
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
infinite_nature/autocruise.py
davidfitzek/google-research
eb2b142f26e39aac1dcbb768417465ae9d4e5af6
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.452381
80
0.704152
0
0
0
0
0
0
0
0
1,717
0.407355
ae84e004def4ae5d171603fde9ae436d07658e06
1,675
py
Python
tilequeue/queue/file.py
ducdk90/tilequeue
c664b5c89a9f0e6743405ab266aa9ca80b57806e
[ "MIT" ]
29
2016-11-03T18:39:21.000Z
2022-02-27T17:42:37.000Z
tilequeue/queue/file.py
ducdk90/tilequeue
c664b5c89a9f0e6743405ab266aa9ca80b57806e
[ "MIT" ]
146
2016-07-07T16:41:07.000Z
2021-12-11T00:27:20.000Z
tilequeue/queue/file.py
ducdk90/tilequeue
c664b5c89a9f0e6743405ab266aa9ca80b57806e
[ "MIT" ]
28
2016-08-19T16:08:52.000Z
2021-07-26T10:16:29.000Z
from tilequeue.queue import MessageHandle import threading class OutputFileQueue(object): ''' A local, file-based queue for storing the coordinates of tiles to render. Can be used as a drop-in replacement for `tilequeue.queue.sqs.SqsQueue`. Note that it doesn't support reading/writing from multiple `t...
28.389831
79
0.590448
1,613
0.962985
0
0
0
0
0
0
520
0.310448
ae858354ab4f1914f4dfc11dd1d64a5507769f1b
563
py
Python
app/gui/repeater.py
TomVollerthun1337/logsmith
f2ecab4dea295d5493a9a3e77a2837b13fa139e5
[ "Apache-2.0" ]
19
2020-01-18T00:25:43.000Z
2022-03-14T07:39:08.000Z
app/gui/repeater.py
TomVollerthun1337/logsmith
f2ecab4dea295d5493a9a3e77a2837b13fa139e5
[ "Apache-2.0" ]
85
2020-01-21T12:13:56.000Z
2022-03-31T04:01:03.000Z
app/gui/repeater.py
TomVollerthun1337/logsmith
f2ecab4dea295d5493a9a3e77a2837b13fa139e5
[ "Apache-2.0" ]
2
2020-06-25T06:15:19.000Z
2021-02-15T18:17:38.000Z
import logging from PyQt5.QtCore import QTimer logger = logging.getLogger('logsmith') class Repeater: def __init__(self): self._current_task = None def start(self, task, delay_seconds): delay_millies = delay_seconds * 1000 self.stop() logger.info('start timer') time...
21.653846
44
0.635879
472
0.838366
0
0
0
0
0
0
23
0.040853
ae867f0e402cb89db3cccc626cd6f645b33f32f2
40
py
Python
condensate/core/__init__.py
Zwierlein/condensate
34908b7e99785e9a4a9c5c743fe1a8e6f4cbf4ad
[ "MIT" ]
4
2021-07-24T10:57:06.000Z
2021-12-11T01:24:54.000Z
condensate/core/__init__.py
Zwierlein/condensate
34908b7e99785e9a4a9c5c743fe1a8e6f4cbf4ad
[ "MIT" ]
9
2021-07-15T04:13:23.000Z
2021-08-02T21:57:00.000Z
condensate/core/__init__.py
Zwierlein/condensate
34908b7e99785e9a4a9c5c743fe1a8e6f4cbf4ad
[ "MIT" ]
2
2021-07-21T10:39:30.000Z
2021-08-01T03:05:14.000Z
from condensate.core.build import gpcore
40
40
0.875
0
0
0
0
0
0
0
0
0
0
ae874a5f5cca2dcc55151c5b0e06fba1846032d7
250
py
Python
urdubiometer/scanner/__init__.py
urdubiometer/urdubiometer
034c1efc0403352caa9c5c944cf9450b8833bb24
[ "BSD-3-Clause" ]
null
null
null
urdubiometer/scanner/__init__.py
urdubiometer/urdubiometer
034c1efc0403352caa9c5c944cf9450b8833bb24
[ "BSD-3-Clause" ]
220
2019-07-30T19:20:59.000Z
2022-03-28T10:33:19.000Z
urdubiometer/scanner/__init__.py
urdubiometer/urdubiometer
034c1efc0403352caa9c5c944cf9450b8833bb24
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Sub-level package for Scanner, a metrical scanner in Urdu BioMeter.""" __author__ = """A. Sean Pue""" __email__ = "[email protected]" from .scanner import * # noqa from .ghazal import * # noqa from .types import * # noqa
22.727273
73
0.652
0
0
0
0
0
0
0
0
146
0.584
ae87c58fe103e3173ad0eb9f9da060726e492203
346
py
Python
search01.py
kekelele/canlib-for-kvaser
5f7f55319a33956de0bb9a1376ee7fbf897b8c4b
[ "Apache-2.0" ]
null
null
null
search01.py
kekelele/canlib-for-kvaser
5f7f55319a33956de0bb9a1376ee7fbf897b8c4b
[ "Apache-2.0" ]
null
null
null
search01.py
kekelele/canlib-for-kvaser
5f7f55319a33956de0bb9a1376ee7fbf897b8c4b
[ "Apache-2.0" ]
1
2019-08-16T04:25:44.000Z
2019-08-16T04:25:44.000Z
from canlib import canlib num_channels = canlib.getNumberOfChannels() print("Found %d channels" % num_channels) for ch in range(0, num_channels): chdata = canlib.ChannelData(ch) print("%d. %s (%s / %s)" % (ch, chdata.device_name, chdata.card_upc_no, ...
38.444444
55
0.592486
0
0
0
0
0
0
0
0
37
0.106936
ae882f531080b30ee1443e5c07ad6e5e57ec1e85
2,208
py
Python
src/assisted_test_infra/test_infra/helper_classes/config/base_config.py
nirarg/assisted-test-infra
e07c43501c1d9bfaa1aee3aea49f1ef359faee07
[ "Apache-2.0" ]
null
null
null
src/assisted_test_infra/test_infra/helper_classes/config/base_config.py
nirarg/assisted-test-infra
e07c43501c1d9bfaa1aee3aea49f1ef359faee07
[ "Apache-2.0" ]
null
null
null
src/assisted_test_infra/test_infra/helper_classes/config/base_config.py
nirarg/assisted-test-infra
e07c43501c1d9bfaa1aee3aea49f1ef359faee07
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from dataclasses import asdict, dataclass from typing import Any from triggers.env_trigger import DataPool, Triggerable @dataclass class BaseConfig(Triggerable, ABC): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def __post_init__(self): ...
30.666667
89
0.613225
2,037
0.922554
0
0
2,048
0.927536
0
0
402
0.182065
ae8a201243a94cc44dd5cdf663f89bc62c36cf5a
917
py
Python
licensecheck/types.py
matthewdeanmartin/LicenseCheck
54063d10d2033adc77fe12ddac6c0ced1a5e6502
[ "MIT" ]
null
null
null
licensecheck/types.py
matthewdeanmartin/LicenseCheck
54063d10d2033adc77fe12ddac6c0ced1a5e6502
[ "MIT" ]
null
null
null
licensecheck/types.py
matthewdeanmartin/LicenseCheck
54063d10d2033adc77fe12ddac6c0ced1a5e6502
[ "MIT" ]
null
null
null
"""PackageCompat type. """ from __future__ import annotations import typing from enum import Enum class PackageInfo(typing.TypedDict): """PackageInfo type.""" name: str version: str namever: str size: int home_page: str author: str license: str class PackageCompat(PackageInfo): """PackageCompat type.""" ...
14.107692
56
0.687023
809
0.882225
0
0
0
0
0
0
247
0.269357