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
8933611dccd35f84e21b95c6ea6cb9c0aef59e5b
633
py
Python
Codefights/arcade/intro/level-6/25.Array-Replace/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codefights/arcade/intro/level-6/25.Array-Replace/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codefights/arcade/intro/level-6/25.Array-Replace/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python3 from solution1 import arrayReplace as f qa = [ ([1, 2, 1], 1, 3, [3, 2, 3]), ([1, 2, 3, 4, 5], 3, 0, [1, 2, 0, 4, 5]), ([1, 1, 1], 1, 10, [10, 10, 10]), ([1, 2, 1, 2, 1], 2, 1, [1, 1, 1, 1, 1]), ([1, 2, 1, 2, 1], 2, 2, [1, 2, 1, 2, 1]), ([3, 1], 3, 9, [9...
19.78125
47
0.366509
0
0
0
0
0
0
0
0
85
0.134281
8934d1367807f17b7ccddc78c329f89fdb3334b2
8,563
py
Python
tests/inception/test_inception_hardware_perf.py
ispras/avatar2
5bab7239c368cc69d4f63d5fbb724808a6aa87b6
[ "Apache-2.0" ]
415
2017-06-14T07:49:50.000Z
2022-03-31T12:32:58.000Z
tests/inception/test_inception_hardware_perf.py
HexHive/avatar2
b406c3512f6bcf6f7635c6bd70a5951bde9ae0a2
[ "Apache-2.0" ]
58
2017-06-16T14:51:12.000Z
2022-03-25T14:13:32.000Z
tests/inception/test_inception_hardware_perf.py
HexHive/avatar2
b406c3512f6bcf6f7635c6bd70a5951bde9ae0a2
[ "Apache-2.0" ]
101
2017-06-16T09:05:12.000Z
2022-03-23T12:23:19.000Z
from avatar2 import * import sys import os import logging import serial import time import argparse import pyudev import struct import ctypes from random import randint # For profiling import pstats logging.basicConfig(filename='/tmp/inception-tests.log', level=logging.INFO) # ************************************...
33.84585
172
0.552727
0
0
0
0
0
0
0
0
2,333
0.272451
893500b28f3f57e96f65fa9b86818c48a291c5c0
1,164
py
Python
tianshou/env/worker/dummy.py
Leeqh666/tianshou
f71db624bee67b6170caaa06b0d3f68901b87985
[ "MIT" ]
null
null
null
tianshou/env/worker/dummy.py
Leeqh666/tianshou
f71db624bee67b6170caaa06b0d3f68901b87985
[ "MIT" ]
null
null
null
tianshou/env/worker/dummy.py
Leeqh666/tianshou
f71db624bee67b6170caaa06b0d3f68901b87985
[ "MIT" ]
null
null
null
import gym import numpy as np from typing import List, Callable, Optional, Any from tianshou.env.worker import EnvWorker class DummyEnvWorker(EnvWorker): """Dummy worker used in sequential vector environments.""" def __init__(self, env_fn: Callable[[], gym.Env]) -> None: super().__init__(env_fn) ...
29.1
73
0.631443
1,039
0.892612
0
0
238
0.204467
0
0
150
0.128866
89352fbdd1b631cd689cfa66c662c5a6306871c6
6,687
py
Python
beartype/_decor/conf.py
posita/beartype
e56399686e1f2ffd5128a4030b19314504e32450
[ "MIT" ]
null
null
null
beartype/_decor/conf.py
posita/beartype
e56399686e1f2ffd5128a4030b19314504e32450
[ "MIT" ]
null
null
null
beartype/_decor/conf.py
posita/beartype
e56399686e1f2ffd5128a4030b19314504e32450
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # --------------------( LICENSE )-------------------- # Copyright (c) 2014-2021 Beartype authors. # See "LICENSE" for further details. ''' **Beartype decorator configuration API** (i.e., enumerations, classes, singletons, and other attributes enabling external callers t...
46.117241
79
0.686257
4,133
0.61788
0
0
3,199
0.478248
0
0
5,810
0.86859
89386b743e51694854f66d61583124c986f918df
349
py
Python
001-099/38/38.py
lunixbochs/project-euler
aa974c5ae68547309f33adbb4e633fe040964855
[ "MIT" ]
6
2015-07-21T20:45:08.000Z
2021-03-13T14:07:48.000Z
001-099/38/38.py
lunixbochs/project-euler
aa974c5ae68547309f33adbb4e633fe040964855
[ "MIT" ]
null
null
null
001-099/38/38.py
lunixbochs/project-euler
aa974c5ae68547309f33adbb4e633fe040964855
[ "MIT" ]
2
2017-10-28T09:52:08.000Z
2019-04-11T00:55:36.000Z
ref = set('123456789') def pans(n): r = str(n) i = 1 while True: i += 1 r += str(i * n) if len(r) > 9: break if len(r) == 9 and set(r) == ref: yield i, r m = 0 for i in xrange(2, 1000000000): for z, n in pans(i): if n > m: m =...
17.45
41
0.383954
0
0
198
0.567335
0
0
0
0
11
0.031519
89390457453d455098d6d865b97a3debbac7c065
43
py
Python
sugaroid/version.py
blackxspade/sugaroid
64e2031c1b432e6647b15f59120879c7e1b9f8f8
[ "MIT" ]
null
null
null
sugaroid/version.py
blackxspade/sugaroid
64e2031c1b432e6647b15f59120879c7e1b9f8f8
[ "MIT" ]
null
null
null
sugaroid/version.py
blackxspade/sugaroid
64e2031c1b432e6647b15f59120879c7e1b9f8f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 VERSION = "v0.22.0"
14.333333
22
0.651163
0
0
0
0
0
0
0
0
31
0.72093
893a18910761a8b9355e949965665e778b901cd2
187
py
Python
nixnet/_session/__init__.py
ni-ldp/nixnet-python
83f30c5b44098de0dc4828838e263b7be0866228
[ "MIT" ]
16
2017-06-14T19:44:45.000Z
2022-02-06T15:14:52.000Z
nixnet/_session/__init__.py
ni-ldp/nixnet-python
83f30c5b44098de0dc4828838e263b7be0866228
[ "MIT" ]
216
2017-06-15T16:41:10.000Z
2021-09-23T23:00:50.000Z
nixnet/_session/__init__.py
ni-ldp/nixnet-python
83f30c5b44098de0dc4828838e263b7be0866228
[ "MIT" ]
23
2017-06-14T22:51:08.000Z
2022-03-03T03:04:40.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import typing # NOQA: F401 __all__ = [] # type: typing.List[typing.Text]
23.375
46
0.791444
0
0
0
0
0
0
0
0
44
0.232804
893b8dc20ad6ef7ad20e4051cafdb423c6e82129
11,196
py
Python
hedweb/services.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
null
null
null
hedweb/services.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
null
null
null
hedweb/services.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
2
2022-02-04T19:55:40.000Z
2022-02-04T21:36:04.000Z
import os import io import json from flask import current_app from hed import models from hed.errors import HedFileError from hed import schema as hedschema from hedweb.constants import base_constants from hedweb import events, spreadsheet, sidecar, strings app_config = current_app.config def get_inpu...
41.620818
115
0.681761
0
0
0
0
0
0
0
0
3,610
0.322437
893d5a4482f292937557682d8715ef74cab055df
563
py
Python
Python/easy/e395.py
tlgs/dailyprogrammer
6e7d3352616fa54a8e9caf8564a9cfb951eb0af9
[ "Unlicense" ]
4
2017-10-18T02:17:02.000Z
2022-02-02T01:19:02.000Z
Python/easy/e395.py
tlseabra/dailyprogrammer
6e7d3352616fa54a8e9caf8564a9cfb951eb0af9
[ "Unlicense" ]
4
2016-01-24T20:30:02.000Z
2017-01-18T16:01:23.000Z
Python/easy/e395.py
tlgs/dailyprogrammer
6e7d3352616fa54a8e9caf8564a9cfb951eb0af9
[ "Unlicense" ]
null
null
null
# 22/06/2021 import itertools def nonogramrow(seq): return [sum(g) for k, g in itertools.groupby(seq) if k] assert nonogramrow([]) == [] assert nonogramrow([0, 0, 0, 0, 0]) == [] assert nonogramrow([1, 1, 1, 1, 1]) == [5] assert nonogramrow([0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1]) == [5, 4] assert nonogramrow([1, 1, ...
22.52
72
0.488455
0
0
0
0
0
0
0
0
12
0.021314
893f8bb01e7634c61b028bca09870c81605af91c
2,191
py
Python
paura_lite.py
777AVY777/Clone_paura
415bb323e31040154d331ba582617841ef909f64
[ "MIT" ]
191
2016-09-04T23:27:58.000Z
2022-03-01T07:08:02.000Z
paura_lite.py
777AVY777/Clone_paura
415bb323e31040154d331ba582617841ef909f64
[ "MIT" ]
9
2017-07-06T14:13:55.000Z
2021-06-06T12:55:07.000Z
paura_lite.py
777AVY777/Clone_paura
415bb323e31040154d331ba582617841ef909f64
[ "MIT" ]
42
2016-11-15T06:16:13.000Z
2021-08-11T03:46:45.000Z
# paura_lite: # An ultra-simple command-line audio recorder with real-time # spectrogram visualization import numpy as np import pyaudio import struct import scipy.fftpack as scp import termplotlib as tpl import os # get window's dimensions rows, columns = os.popen('stty size', 'r').read().split() buff_size = 0.2 ...
37.135593
73
0.671839
0
0
0
0
0
0
0
0
857
0.391146
8940f390419a60889fc99a07fdf4b127ea3f0da6
3,398
py
Python
dataviva/apps/map/views.py
joelvisroman/dataviva-site
b4219558457746fd5c6b8f4b65b04c738c656fbd
[ "MIT" ]
126
2015-03-24T12:30:43.000Z
2022-01-06T03:29:54.000Z
dataviva/apps/map/views.py
joelvisroman/dataviva-site
b4219558457746fd5c6b8f4b65b04c738c656fbd
[ "MIT" ]
694
2015-01-14T11:55:28.000Z
2021-02-08T20:23:11.000Z
dataviva/apps/map/views.py
joelvisroman/dataviva-site
b4219558457746fd5c6b8f4b65b04c738c656fbd
[ "MIT" ]
52
2015-06-19T01:54:56.000Z
2019-09-23T13:10:46.000Z
# -*- coding: utf-8 -*- from flask import Blueprint, render_template, g, request, make_response from dataviva.apps.general.views import get_locale from dataviva.translations.dictionary import dictionary from dataviva import datavivadir from config import GZIP_DATA from dataviva.utils.cached_query import cached_qu...
31.174312
72
0.58093
0
0
0
0
2,686
0.790465
0
0
447
0.131548
89414998e5a7ff84331d610b6b9cc51dadd75709
6,364
py
Python
TransfertFichier.py
Fabien034/TimeLaps
a9fcbdfd6551cf8c12961adeef15dfdfaad8fb3c
[ "CC0-1.0" ]
null
null
null
TransfertFichier.py
Fabien034/TimeLaps
a9fcbdfd6551cf8c12961adeef15dfdfaad8fb3c
[ "CC0-1.0" ]
null
null
null
TransfertFichier.py
Fabien034/TimeLaps
a9fcbdfd6551cf8c12961adeef15dfdfaad8fb3c
[ "CC0-1.0" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- # Copyright: Fabien Rosso # Version 0.1.1 - 19 Avril 2016 # Version 0.1.2 - 29 Avril 2016 ## Debug VisualStudio # import ptvsd # ptvsd.enable_attach(None) from __future__ import unicode_literals from __future__ import print_function import os import s...
36.574713
138
0.61675
677
0.105914
0
0
0
0
0
0
2,357
0.368742
89418edd3c2fb8634084937401da418c6baab778
388
py
Python
posts/urls.py
xXcoronaXx/Dblog
56ee1b8f6f74fabbe0e081921e6cff092661e8df
[ "MIT" ]
null
null
null
posts/urls.py
xXcoronaXx/Dblog
56ee1b8f6f74fabbe0e081921e6cff092661e8df
[ "MIT" ]
null
null
null
posts/urls.py
xXcoronaXx/Dblog
56ee1b8f6f74fabbe0e081921e6cff092661e8df
[ "MIT" ]
null
null
null
from django.conf.urls import include, url urlpatterns = [ url(r'^admin/(?P<slug>[\w\-]+)/', 'posts.views.post_preview', name='post_preview'), url(r'^tag/(?P<slug>[\w\-]+)/', 'posts.views.posts_view_tag', name='posts_tag'), url(r'^popular/', 'posts.views.posts_view_popular', name='posts_popular'), url(r...
48.5
87
0.634021
0
0
0
0
0
0
0
0
248
0.639175
8941caffd99fa97347e96be2cc0144b6388f9d9c
14,320
py
Python
Basic_if_then/movement.py
BH4/Halite3-bots
97eb4dcab6bccbfd1649bbac74ef06f0e22035de
[ "MIT" ]
null
null
null
Basic_if_then/movement.py
BH4/Halite3-bots
97eb4dcab6bccbfd1649bbac74ef06f0e22035de
[ "MIT" ]
null
null
null
Basic_if_then/movement.py
BH4/Halite3-bots
97eb4dcab6bccbfd1649bbac74ef06f0e22035de
[ "MIT" ]
null
null
null
from hlt.positionals import Position, Direction from hlt import constants import random import logging # Import my stuff import helpers def navigate_old(ship, destination, game_map): curr_pos = ship.position move_cost = game_map[curr_pos].halite_amount/constants.MOVE_COST_RATIO if ship.halite_amount >=...
37.098446
134
0.615573
0
0
0
0
0
0
0
0
3,485
0.243366
8942b3f4142fb4752d39c8c79839362babc520e3
2,569
py
Python
Bert/regressor.py
RohithYogi/Funniness-in-News-Headlines
db6755b4fa66f3aa827b235751cd49f707c321bc
[ "MIT" ]
null
null
null
Bert/regressor.py
RohithYogi/Funniness-in-News-Headlines
db6755b4fa66f3aa827b235751cd49f707c321bc
[ "MIT" ]
null
null
null
Bert/regressor.py
RohithYogi/Funniness-in-News-Headlines
db6755b4fa66f3aa827b235751cd49f707c321bc
[ "MIT" ]
null
null
null
from sklearn.ensemble import RandomForestRegressor, GradientBoostingRegressor from sklearn.svm import SVR from sklearn.metrics import mean_squared_error from sklearn.linear_model import HuberRegressor import numpy as np import pickle from dataloader import HeadlineDataset from csv import writer import os, subprocess im...
26.760417
100
0.673803
0
0
0
0
0
0
0
0
325
0.126508
8942f14789d57a93ee819d488c307294d017124c
108
py
Python
examples/blogprj/urls.py
pimentech/django-mongoforms
6220e91e05d73a26e495460f98667e23dc16c5f6
[ "BSD-3-Clause" ]
1
2017-07-27T05:44:47.000Z
2017-07-27T05:44:47.000Z
examples/blogprj/urls.py
pimentech/django-mongoforms
6220e91e05d73a26e495460f98667e23dc16c5f6
[ "BSD-3-Clause" ]
null
null
null
examples/blogprj/urls.py
pimentech/django-mongoforms
6220e91e05d73a26e495460f98667e23dc16c5f6
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^', include('apps.blog.urls')), )
21.6
39
0.657407
0
0
0
0
0
0
0
0
22
0.203704
894431402e6b83e572b12cd14d0e6138af1aab09
2,285
py
Python
recursive_categories.py
singulart/wikiwalks
674f4f8ada699619ed52a95eb0a8bd8b8eb093c7
[ "MIT" ]
null
null
null
recursive_categories.py
singulart/wikiwalks
674f4f8ada699619ed52a95eb0a8bd8b8eb093c7
[ "MIT" ]
null
null
null
recursive_categories.py
singulart/wikiwalks
674f4f8ada699619ed52a95eb0a8bd8b8eb093c7
[ "MIT" ]
null
null
null
import wikipediaapi import os import json import progressbar CATEGORY = 'Category:Feminist artists' #CATEGORY = 'Category:Contemporary artists' def traverse_categories_tree(categorymembers, level=0, max_level=100): for c in categorymembers.values(): #print("%s: %s (ns: %d)" % ("*" * (level + 1), c.title,...
33.115942
149
0.653392
0
0
0
0
0
0
0
0
446
0.195186
894560d68f6fed0a38a05e50cb3d569b69bc6ff3
730
py
Python
tests/test_handlers/test_yamlHandler/test_yamlHandler.py
UCHIC/ODMStreamingDataLoader
711886167a068754efff6dfbd604e3e19e545253
[ "BSD-3-Clause" ]
null
null
null
tests/test_handlers/test_yamlHandler/test_yamlHandler.py
UCHIC/ODMStreamingDataLoader
711886167a068754efff6dfbd604e3e19e545253
[ "BSD-3-Clause" ]
null
null
null
tests/test_handlers/test_yamlHandler/test_yamlHandler.py
UCHIC/ODMStreamingDataLoader
711886167a068754efff6dfbd604e3e19e545253
[ "BSD-3-Clause" ]
null
null
null
from os import getcwd from os.path import join from src.handlers.yamlHandler import YAMLHandler from tests.test_utils import returnFiles __author__ = 'jmeline' class TestYAMLHandler: def setup(self): self.path = join(getcwd(), 'test_handlers', 'test_yamlHandler', 'yamlFiles') assert self.path ...
25.172414
84
0.663014
565
0.773973
0
0
0
0
0
0
64
0.087671
89497af5999c47772bcb8017e9ebdd35c45a92b6
1,031
py
Python
samples/donut.py
stoneskin/python-minecraft
29051b8626620245ff54fc4d8ab1278d60d3a1ca
[ "MIT" ]
7
2020-05-26T04:20:15.000Z
2022-03-09T06:33:20.000Z
samples/donut.py
stoneskin/python-minecraft
29051b8626620245ff54fc4d8ab1278d60d3a1ca
[ "MIT" ]
1
2020-05-17T18:15:59.000Z
2020-05-17T21:22:03.000Z
samples/donut.py
stoneskin/python-minecraft
29051b8626620245ff54fc4d8ab1278d60d3a1ca
[ "MIT" ]
1
2021-12-14T00:14:11.000Z
2021-12-14T00:14:11.000Z
from mcpi_e.minecraft import Minecraft from mcpi_e import block from time import sleep from random import * from math import * def draw_donut(mcx,mcy,mcz,R,r,mcblock): for x in range(-R-r,R+r): for y in range(-R-r,R+r): xy_dist = sqrt(x**2 + y**2) if (xy_dist > 0): ringx = x / xy_dist...
34.366667
84
0.642095
0
0
0
0
0
0
0
0
117
0.113482
894a5fed9ddf654ea364f9de215cbb93bd3168ae
582
py
Python
britecoreproject/orm.py
alis0nc/britecore-project
aa31eb1f87c1c250f8bca9d9aa109eeae1232b9b
[ "MIT" ]
null
null
null
britecoreproject/orm.py
alis0nc/britecore-project
aa31eb1f87c1c250f8bca9d9aa109eeae1232b9b
[ "MIT" ]
1
2018-02-13T00:34:22.000Z
2018-02-13T00:34:22.000Z
britecoreproject/orm.py
alis0nc/britecore-project
aa31eb1f87c1c250f8bca9d9aa109eeae1232b9b
[ "MIT" ]
null
null
null
""" Define ORM classes. """ from sqlobject import * class RiskType(SQLObject): """Define RiskType ORM class.""" riskTypeName = StringCol() fields = RelatedJoin('Field') class Field(SQLObject): """Define Field ORM class.""" fieldName = StringCol() fieldType = ForeignKey('FieldType') risks =...
22.384615
39
0.671821
386
0.66323
0
0
0
0
0
0
181
0.310997
894b00993b1f21de2137b7f78408f37441e40edc
16,178
py
Python
plumbum.py
maxnasonov/cloudwatch-to-graphite
c7eecda02cb3476616b397e4d1699de39e2728dd
[ "Apache-2.0" ]
null
null
null
plumbum.py
maxnasonov/cloudwatch-to-graphite
c7eecda02cb3476616b397e4d1699de39e2728dd
[ "Apache-2.0" ]
null
null
null
plumbum.py
maxnasonov/cloudwatch-to-graphite
c7eecda02cb3476616b397e4d1699de39e2728dd
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- """ Usage: plumbum <template> <namespace> [region] [options]... Options: template path to the jinja2 template namespace AWS namespace. Currently supports: elasticache, elb, ec2, rds, asg, sqs region AWS region [default: us-east-1] options key value combinations, they can be ...
36.111607
135
0.701261
43
0.002658
0
0
0
0
0
0
4,115
0.254358
894dd8d8e0b0dd429807b917fe2e70454c198af1
10,440
py
Python
fixtures/aerl/fabfile.py
bbengfort/honu
3bfbf6a1959ec60a1e120a287f84996fa333757c
[ "MIT" ]
2
2018-05-28T18:27:35.000Z
2020-10-07T10:12:38.000Z
fixtures/aerl/fabfile.py
bbengfort/honu
3bfbf6a1959ec60a1e120a287f84996fa333757c
[ "MIT" ]
3
2021-10-05T00:37:26.000Z
2021-10-05T01:53:00.000Z
fixtures/aerl/fabfile.py
bbengfort/honu
3bfbf6a1959ec60a1e120a287f84996fa333757c
[ "MIT" ]
null
null
null
# fabfile # Fabric command definitions for running anti-entropy reinforcement learning. # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Tue Jun 13 22:26:00 2017 -0400 # # Copyright (C) 2017 Bengfort.com # For license information, see LICENSE.txt # # ID: fabfile.py [] benjamin@bengfort.com $ """ Fab...
26.034913
81
0.561782
0
0
0
0
5,562
0.532759
0
0
3,600
0.344828
894e84bd7eebee8f3642ef1949280cffa18756ab
2,275
py
Python
python/657.robot-return-to-origin.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
10
2019-09-15T00:23:57.000Z
2022-01-05T12:53:42.000Z
python/657.robot-return-to-origin.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
3
2021-06-30T00:39:26.000Z
2021-08-01T07:13:59.000Z
python/657.robot-return-to-origin.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
6
2020-02-08T02:55:22.000Z
2022-01-02T22:48:18.000Z
# # @lc app=leetcode id=657 lang=python3 # # [657] Robot Return to Origin # # https://leetcode.com/problems/robot-return-to-origin/description/ # # algorithms # Easy (73.67%) # Likes: 1228 # Dislikes: 692 # Total Accepted: 274.1K # Total Submissions: 371K # Testcase Example: '"UD"' # # There is a robot starting ...
24.202128
79
0.607033
513
0.225495
0
0
0
0
0
0
1,692
0.743736
894f30ac75460bc645b7f7aa2b1775bd8ac09220
2,171
py
Python
src/python/pants/backend/swift/goals/tailor.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/swift/goals/tailor.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/swift/goals/tailor.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from dataclasses import dataclass from typing import Iterable from pants.backend.swift.target_types import SWIFT_FILE_EXTENSIONS, SwiftSourcesGenerator...
33.921875
95
0.748042
67
0.030861
0
0
1,000
0.460617
829
0.381852
264
0.121603
894fdf877d94231d589d47daadc64f279fa8f303
1,059
py
Python
WP5/KU/SharedResources/get_incrementer.py
MONICA-Project/sfn
40509e520e83441068b5a2d151864fe3a5814d5e
[ "Apache-2.0" ]
1
2021-10-05T08:00:42.000Z
2021-10-05T08:00:42.000Z
WP5/KU/SharedResources/get_incrementer.py
MONICA-Project/sfn
40509e520e83441068b5a2d151864fe3a5814d5e
[ "Apache-2.0" ]
10
2020-03-31T07:49:14.000Z
2022-03-12T00:17:51.000Z
WP5/KU/SharedResources/get_incrementer.py
MONICA-Project/sfn
40509e520e83441068b5a2d151864fe3a5814d5e
[ "Apache-2.0" ]
1
2021-10-05T07:59:18.000Z
2021-10-05T07:59:18.000Z
# get_incrementer.py """Helper function to create counter strings with a set length throughout.""" __version__ = '0.2' __author__ = 'Rob Dupre (KU)' def get_incrementer(num, num_digits): if num >= 10**num_digits: print('NUMBER IS LARGER THAN THE MAX POSSIBLE BASED ON num_digits') return -1 els...
24.627907
77
0.558074
0
0
0
0
0
0
0
0
238
0.22474
89506cba8d48107a96bebd4fb53108e48e413e52
179
py
Python
Curso_Coursera/Ex1_ParImpar.py
shirleyguimaraes/Linguagem_Python
cb8b871ee4fe85f803c35bfe55ce533cab8150fb
[ "MIT" ]
null
null
null
Curso_Coursera/Ex1_ParImpar.py
shirleyguimaraes/Linguagem_Python
cb8b871ee4fe85f803c35bfe55ce533cab8150fb
[ "MIT" ]
null
null
null
Curso_Coursera/Ex1_ParImpar.py
shirleyguimaraes/Linguagem_Python
cb8b871ee4fe85f803c35bfe55ce533cab8150fb
[ "MIT" ]
null
null
null
def main(): n = int(input("Digite um número inteiro: ")) resto = n % 2 if resto == 0: print("Par") else: print("Impar") main()
11.933333
49
0.435754
0
0
0
0
0
0
0
0
41
0.227778
89528b5ef79fc793c901837f37deed12889d7c14
536
py
Python
pyro/contrib/oed/__init__.py
cweniger/pyro
ba104f07ca17865d2600e8765d920d549fcb3fbc
[ "MIT" ]
10
2020-03-18T14:41:25.000Z
2021-07-04T08:49:57.000Z
pyro/contrib/oed/__init__.py
cweniger/pyro
ba104f07ca17865d2600e8765d920d549fcb3fbc
[ "MIT" ]
19
2018-10-30T13:45:31.000Z
2019-09-27T14:16:57.000Z
pyro/contrib/oed/__init__.py
cweniger/pyro
ba104f07ca17865d2600e8765d920d549fcb3fbc
[ "MIT" ]
5
2020-06-21T23:40:35.000Z
2021-11-09T16:18:42.000Z
""" The :mod:`pyro.contrib.oed` module provides tools to create optimal experiment designs for pyro models. In particular, it provides estimators for the expected information gain (EIG) criterion. To estimate the EIG for a particular design, use:: def model(design): ... # Select an appropriate EIG es...
23.304348
78
0.701493
0
0
0
0
0
0
0
0
467
0.871269
8953849e85ab59dfe4d9f0bc0daf7168cfaa9806
311
py
Python
tests/serve/test_metadata.py
outerbounds/tempo
0878ae32ed6163a1c5115f20167d991a28535364
[ "Apache-2.0" ]
75
2021-02-15T09:49:02.000Z
2022-03-31T02:06:38.000Z
tests/serve/test_metadata.py
outerbounds/tempo
0878ae32ed6163a1c5115f20167d991a28535364
[ "Apache-2.0" ]
106
2021-02-13T09:25:19.000Z
2022-03-25T16:18:00.000Z
tests/serve/test_metadata.py
outerbounds/tempo
0878ae32ed6163a1c5115f20167d991a28535364
[ "Apache-2.0" ]
21
2021-02-12T17:12:50.000Z
2022-03-04T02:09:26.000Z
import pytest from tempo.serve.metadata import KubernetesRuntimeOptions @pytest.mark.parametrize( "runtime, replicas", [ ({"replicas": 2}, 2), ({}, 1), ], ) def test_runtime_options(runtime, replicas): r = KubernetesRuntimeOptions(**runtime) assert r.replicas == replicas
19.4375
57
0.655949
0
0
0
0
235
0.755627
0
0
29
0.093248
895431e6e79bcf654061cac0d31efed8ab34ab25
323
py
Python
referral/faker_factories.py
exolever/django-earlyparrot
031b7f2d67e1e78d525f85ae10e82d4cc0c198f3
[ "MIT" ]
null
null
null
referral/faker_factories.py
exolever/django-earlyparrot
031b7f2d67e1e78d525f85ae10e82d4cc0c198f3
[ "MIT" ]
7
2019-09-04T10:59:39.000Z
2019-12-12T22:16:25.000Z
referral/faker_factories.py
exolever/django-earlyparrot
031b7f2d67e1e78d525f85ae10e82d4cc0c198f3
[ "MIT" ]
null
null
null
import factory from faker import Faker from referral.models import Campaign faker = Faker() class FakeCampaignFactory(factory.django.DjangoModelFactory): class Meta: model = Campaign campaign_id = factory.LazyAttribute(lambda x: faker.sha1()) name = factory.LazyAttribute(lambda x: faker.word(...
19
63
0.739938
225
0.696594
0
0
0
0
0
0
0
0
89543e9c996717e15aa0e3c4f48041c92613b895
3,703
py
Python
main.py
djlafferty7/itlookslikedanlaffertyoutside
fc98a4c42911d364c72317abdb9fc96abd70b8b2
[ "Apache-2.0" ]
null
null
null
main.py
djlafferty7/itlookslikedanlaffertyoutside
fc98a4c42911d364c72317abdb9fc96abd70b8b2
[ "Apache-2.0" ]
null
null
null
main.py
djlafferty7/itlookslikedanlaffertyoutside
fc98a4c42911d364c72317abdb9fc96abd70b8b2
[ "Apache-2.0" ]
null
null
null
import json import requests import time from flask import Flask, render_template, request app = Flask(__name__) API_KEY='<insert_api_key_here>' @app.route('/') def index(): background, style, message = setParams() return render_template('index.html', background=background, style=style, message=message) #fun...
35.266667
96
0.676479
0
0
0
0
167
0.045099
0
0
1,524
0.411558
8955852e7532c9fcb8b74321bae9283af152725a
2,587
py
Python
meta/dice.py
dkkim93/meta-mapg
98d4d1be3f5fd628b42e451bed99004f02f553d0
[ "MIT" ]
15
2021-06-09T09:56:37.000Z
2022-02-27T18:56:33.000Z
meta/dice.py
dkkim93/meta-mapg
98d4d1be3f5fd628b42e451bed99004f02f553d0
[ "MIT" ]
1
2021-11-17T07:38:30.000Z
2021-11-29T15:27:46.000Z
meta/dice.py
dkkim93/meta-mapg
98d4d1be3f5fd628b42e451bed99004f02f553d0
[ "MIT" ]
2
2021-09-14T07:26:25.000Z
2021-10-03T04:09:24.000Z
import torch def magic_box(x): """DiCE operation that saves computation graph inside tensor See ``Implementation of DiCE'' section in the DiCE Paper for details Args: x (tensor): Input tensor Returns: 1 (tensor): Tensor that has computation graph saved References: https://g...
41.063492
106
0.688829
0
0
0
0
0
0
0
0
1,426
0.551218
8956a32ea669342323a0da4e15ade20f0c7f1b66
91
py
Python
src/coreapis/apps.py
salemzii/ChopFast
95ea88387ecfdb56bd643970b69425b1a1c6f388
[ "MIT" ]
null
null
null
src/coreapis/apps.py
salemzii/ChopFast
95ea88387ecfdb56bd643970b69425b1a1c6f388
[ "MIT" ]
null
null
null
src/coreapis/apps.py
salemzii/ChopFast
95ea88387ecfdb56bd643970b69425b1a1c6f388
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CoreapisConfig(AppConfig): name = 'coreapis'
15.166667
33
0.758242
54
0.593407
0
0
0
0
0
0
10
0.10989
895976c032c7db9f729336aff5e0279c9a266299
274
py
Python
project/opendata/parse.py
FelippeJC/besa
083e62457c9c9beccc869beb89675720be0d248a
[ "MIT" ]
null
null
null
project/opendata/parse.py
FelippeJC/besa
083e62457c9c9beccc869beb89675720be0d248a
[ "MIT" ]
2
2021-05-10T16:40:12.000Z
2021-09-05T09:26:07.000Z
project/opendata/parse.py
FelippeJC/besa
083e62457c9c9beccc869beb89675720be0d248a
[ "MIT" ]
null
null
null
from .request import datastore_search def get_data_from_datastore(expression): """Returns a list of records found in a datastore search""" response = datastore_search(expression) result = response.get("result", dict()) return result.get("records", dict())
30.444444
63
0.729927
0
0
0
0
0
0
0
0
76
0.277372
8959f2b49b675b763760dbc29357913d9e63369d
1,486
py
Python
dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/Station.py
mjames-upc/python-awips
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
[ "BSD-3-Clause" ]
null
null
null
dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/Station.py
mjames-upc/python-awips
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
[ "BSD-3-Clause" ]
null
null
null
dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/Station.py
mjames-upc/python-awips
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
[ "BSD-3-Clause" ]
null
null
null
# File auto-generated against equivalent DynamicSerialize Java class # # SOFTWARE HISTORY # # Date Ticket# Engineer Description # ------------ ---------- ----------- -------------------------- # Sep 16, 2016 pmoyer Generated import numpy class...
22.861538
77
0.588156
1,169
0.786676
0
0
0
0
0
0
292
0.196501
895aafff76fa0567fe017a820fa38e5c27392a87
4,051
py
Python
gghc/dbcluster.py
opengauss-mirror/openGauss-housekeeper
6f741efe182ebd5da792faac16534823beb45d20
[ "MulanPSL-1.0" ]
null
null
null
gghc/dbcluster.py
opengauss-mirror/openGauss-housekeeper
6f741efe182ebd5da792faac16534823beb45d20
[ "MulanPSL-1.0" ]
null
null
null
gghc/dbcluster.py
opengauss-mirror/openGauss-housekeeper
6f741efe182ebd5da792faac16534823beb45d20
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # dbcluster.py # GGHC cluster class # Copyright (c) 2021 Chinasoft International Co., Ltd. # # gghc is licensed under Mulan PSL v2. # You can use this software according to the terms # and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # ...
28.328671
96
0.534189
3,330
0.803765
0
0
0
0
0
0
1,176
0.283852
895af3a6b4f4978f67e07a5374ce2c7a074ba071
36,892
py
Python
ProjectFiles/bin/Release/2.80/scripts/addons_contrib/io_directx_bel/import_x.py
BlazesRus/Bforartists
126bdd9e47cc984fd97ba5299bfb92ec5278e754
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2019-07-08T15:51:14.000Z
2019-07-08T15:51:14.000Z
ProjectFiles/bin/Release/2.80/scripts/addons_contrib/io_directx_bel/import_x.py
BlazesRus/Bforartists
126bdd9e47cc984fd97ba5299bfb92ec5278e754
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
ProjectFiles/bin/Release/2.80/scripts/addons_contrib/io_directx_bel/import_x.py
BlazesRus/Bforartists
126bdd9e47cc984fd97ba5299bfb92ec5278e754
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Blender directX importer # version baby # litterature explaining the parser directions : # I don't want to load the whole file as it can be huge : go chunks # also I want random access to 3d datas to import pieces, not always everything # so step1 is a whole file fast parsing, retrieving tokens name and building en...
37.993821
150
0.497235
0
0
0
0
0
0
0
0
11,730
0.317955
895c1ad530c40f1c5d1fb2b8ed674dd74150a4b7
49
py
Python
urduhack/utils/tests/test_text.py
fahdrazavi/urduhack
a2370b0d8c1ee3f260ff90ca5056f45ed9b73ee8
[ "MIT" ]
null
null
null
urduhack/utils/tests/test_text.py
fahdrazavi/urduhack
a2370b0d8c1ee3f260ff90ca5056f45ed9b73ee8
[ "MIT" ]
null
null
null
urduhack/utils/tests/test_text.py
fahdrazavi/urduhack
a2370b0d8c1ee3f260ff90ca5056f45ed9b73ee8
[ "MIT" ]
null
null
null
# coding: utf8 """Test cases for text.py file"""
16.333333
33
0.653061
0
0
0
0
0
0
0
0
47
0.959184
895c60b9edfa055022804d7ee382f90d6f53e6ab
1,987
py
Python
tag_generation/preprocesing.py
krispingal/improved-happiness
1113e19065fee08a2530bf1fb1d4b2f888155f77
[ "BSD-3-Clause" ]
null
null
null
tag_generation/preprocesing.py
krispingal/improved-happiness
1113e19065fee08a2530bf1fb1d4b2f888155f77
[ "BSD-3-Clause" ]
null
null
null
tag_generation/preprocesing.py
krispingal/improved-happiness
1113e19065fee08a2530bf1fb1d4b2f888155f77
[ "BSD-3-Clause" ]
null
null
null
"""Preprocessing for tag generation""" from tag_generation.util import utils import jsonlines import csv # For test FILE_LOC = '/home/krispin/data/improved-happiness/' # For dev #FILE_LOC = '/home/krispin/data/improved-happiness/proto/' skipped, wrote = 0, 0 def get_recipe_tags(file_name: str, c...
34.859649
99
0.613488
0
0
863
0.434323
0
0
0
0
439
0.220936
895c87f9120184e4c7af4de57a702b500aeade12
8,263
py
Python
CDS_GRF/env/wrapper_grf_3vs3.py
ltzheng/CDS
397282147498647a9f26577adfa451e8478de76d
[ "Apache-2.0" ]
1
2021-06-19T23:57:55.000Z
2021-06-19T23:57:55.000Z
CDS_GRF/env/wrapper_grf_3vs3.py
ltzheng/CDS
397282147498647a9f26577adfa451e8478de76d
[ "Apache-2.0" ]
null
null
null
CDS_GRF/env/wrapper_grf_3vs3.py
ltzheng/CDS
397282147498647a9f26577adfa451e8478de76d
[ "Apache-2.0" ]
null
null
null
import gfootball.env as football_env from gfootball.env import observation_preprocessing import gym import numpy as np import matplotlib.pyplot as plt class GoogleFootballMultiAgentEnv(object): """An wrapper for GFootball to make it compatible with our codebase.""" def __init__(self, dense_reward, dump_freq,...
37.38914
135
0.61491
7,397
0.895195
0
0
0
0
0
0
2,819
0.341159
895ceb1226f1223073e975c0eb48dfda8072b8fb
2,136
py
Python
performance_test/testcase.py
DeqingQu/CacheControlHelper
d9425ff08253f10ef1028b724418c705f8d58bf5
[ "MIT" ]
null
null
null
performance_test/testcase.py
DeqingQu/CacheControlHelper
d9425ff08253f10ef1028b724418c705f8d58bf5
[ "MIT" ]
null
null
null
performance_test/testcase.py
DeqingQu/CacheControlHelper
d9425ff08253f10ef1028b724418c705f8d58bf5
[ "MIT" ]
null
null
null
from cache_control_helper import CacheControlHelper import time import sys import requests import requests_cache requests_cache.install_cache('performance_test') def get_request(url): requests = CacheControlHelper() try: res = requests.get(url, timeout=120) except requests.exceptions.Timeout: ...
28.48
86
0.598315
0
0
0
0
0
0
0
0
490
0.229401
895d00024c1c457aa98a15e9b661a4e74c3e68a2
1,731
py
Python
main.py
nimom38/Bangla-letter-frequency-statistics
7121f7fe36f9e8f5c310d4cc3b49083977dc8ce6
[ "MIT" ]
null
null
null
main.py
nimom38/Bangla-letter-frequency-statistics
7121f7fe36f9e8f5c310d4cc3b49083977dc8ce6
[ "MIT" ]
null
null
null
main.py
nimom38/Bangla-letter-frequency-statistics
7121f7fe36f9e8f5c310d4cc3b49083977dc8ce6
[ "MIT" ]
null
null
null
import matplotlib.font_manager as fm import matplotlib.pyplot as plt import matplotlib.font_manager as fm import numpy as np freq = {} def read_file(filename='corpora.txt'): f = open(filename, "r", encoding="utf-8") for character in f.read(): if (character in freq): freq[character] += 1 ...
27.47619
103
0.658579
0
0
0
0
0
0
0
0
423
0.22488
895d842bfc897627a79eb5fa98161a381e6ef77f
3,925
py
Python
venv/Lib/site-packages/caffe2/python/serialized_test/coverage.py
Westlanderz/AI-Plat1
1187c22819e5135e8e8189c99b86a93a0d66b8d8
[ "MIT" ]
1
2022-01-08T12:30:44.000Z
2022-01-08T12:30:44.000Z
venv/Lib/site-packages/caffe2/python/serialized_test/coverage.py
Westlanderz/AI-Plat1
1187c22819e5135e8e8189c99b86a93a0d66b8d8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/caffe2/python/serialized_test/coverage.py
Westlanderz/AI-Plat1
1187c22819e5135e8e8189c99b86a93a0d66b8d8
[ "MIT" ]
null
null
null
from caffe2.proto import caffe2_pb2 from caffe2.python import core, workspace import os import tempfile from zipfile import ZipFile ''' Generates a document in markdown format summrizing the coverage of serialized testing. The document lives in `caffe2/python/serialized_test/SerializedTestCoverage.m...
33.547009
81
0.581401
0
0
0
0
0
0
0
0
945
0.240764
895d85c3848fdf650e4c05e01cd969f8ec991a9c
3,081
py
Python
phylib/electrode/tests/test_mea.py
kushbanga/phylib
a4c7262b4ebcd6edb29409e2c08c5870fc9444eb
[ "BSD-3-Clause" ]
6
2019-05-06T19:05:59.000Z
2020-11-20T03:21:01.000Z
phylib/electrode/tests/test_mea.py
kushbanga/phylib
a4c7262b4ebcd6edb29409e2c08c5870fc9444eb
[ "BSD-3-Clause" ]
31
2019-05-13T14:14:57.000Z
2021-08-08T15:52:55.000Z
phylib/electrode/tests/test_mea.py
kushbanga/phylib
a4c7262b4ebcd6edb29409e2c08c5870fc9444eb
[ "BSD-3-Clause" ]
14
2019-05-09T12:09:37.000Z
2021-06-17T12:42:47.000Z
# -*- coding: utf-8 -*- """Test MEA.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ from pathlib import Path from pytest import raises import numpy as np from numpy.testing import assert_arr...
28.527778
79
0.506654
0
0
0
0
0
0
0
0
473
0.153522
895e4c63f5ae467a6f1d90d9268cfad2b249e278
4,233
py
Python
brownies/legacy/endl/endlmath.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
14
2019-08-29T23:46:24.000Z
2022-03-21T10:16:25.000Z
brownies/legacy/endl/endlmath.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
1
2020-08-04T16:14:45.000Z
2021-12-01T01:54:34.000Z
brownies/legacy/endl/endlmath.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
2
2022-03-03T22:41:41.000Z
2022-03-03T22:54:43.000Z
# <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> """ This module contains useful fudge math routines that do not fit into any other module. """ from pqu import PQU from fudg...
32.068182
115
0.584692
1,696
0.400661
0
0
0
0
0
0
1,710
0.403969
896328ad1b36a8f2472f83b37ee24bfcae36a1c4
14
py
Python
object-oriented-design/python/jigsaw.py
DatGreekChick/ctci
b165bd529fe3ca32cc5c95ea274080bd5689501d
[ "MIT" ]
null
null
null
object-oriented-design/python/jigsaw.py
DatGreekChick/ctci
b165bd529fe3ca32cc5c95ea274080bd5689501d
[ "MIT" ]
null
null
null
object-oriented-design/python/jigsaw.py
DatGreekChick/ctci
b165bd529fe3ca32cc5c95ea274080bd5689501d
[ "MIT" ]
null
null
null
# 7.6: Jigsaw
7
13
0.571429
0
0
0
0
0
0
0
0
13
0.928571
89633e1d922672b9a497cfb56951f732f39ebba2
9,502
py
Python
kyk/kyk.py
atrautsch/kyk
9f843bf9503a3da3669fa5d18e43cfdf5c4207ba
[ "MIT" ]
null
null
null
kyk/kyk.py
atrautsch/kyk
9f843bf9503a3da3669fa5d18e43cfdf5c4207ba
[ "MIT" ]
1
2021-03-25T22:02:54.000Z
2021-03-25T22:02:54.000Z
kyk/kyk.py
atrautsch/kyk
9f843bf9503a3da3669fa5d18e43cfdf5c4207ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import time import shutil import signal import yaml import sass import pyinotify from colorama import init, Fore, Style from jsmin import jsmin from csscompressor import compress VERSION = '1.4.7' class Kyk(object): """Kyk Build JS - if min: minify in place, append _m...
37.262745
162
0.537676
9,265
0.975058
0
0
0
0
0
0
1,898
0.199747
8963fdbff15b6cc0ff84b30bac45aa1b2f8b6b3e
1,311
py
Python
Ejercicios Entrada y Salida de Datos/Ejercicio 03.py
jaramosperez/Pythonizando
3571a6451b383ed5fea35f84e3444fd946c6560d
[ "MIT" ]
1
2020-07-13T04:34:34.000Z
2020-07-13T04:34:34.000Z
Ejercicios Entrada y Salida de Datos/Ejercicio 03.py
jaramosperez/Pythonizando
3571a6451b383ed5fea35f84e3444fd946c6560d
[ "MIT" ]
null
null
null
Ejercicios Entrada y Salida de Datos/Ejercicio 03.py
jaramosperez/Pythonizando
3571a6451b383ed5fea35f84e3444fd946c6560d
[ "MIT" ]
null
null
null
# Ejercicio 3 # Crea un script llamado descomposicion.py que realice las siguientes tareas: # # Debe tomar 1 argumento que será un número entero positivo. # En caso de no recibir un argumento, debe mostrar información acerca de cómo utilizar el script. # El objetivo del script es descomponer el número en unidades, dece...
31.97561
117
0.701754
0
0
0
0
0
0
0
0
960
0.722892
89643825185d3b753c782bbf4419c3b345d1d58b
2,616
py
Python
ansiscaf/ansiscaf.py
terryshi96/ansi
6292277c54057bef13c56184467c1de2e8a69136
[ "MIT" ]
3
2017-02-10T07:40:16.000Z
2017-12-08T01:56:25.000Z
ansiscaf/ansiscaf.py
terryshi96/ansiscaf
6292277c54057bef13c56184467c1de2e8a69136
[ "MIT" ]
null
null
null
ansiscaf/ansiscaf.py
terryshi96/ansiscaf
6292277c54057bef13c56184467c1de2e8a69136
[ "MIT" ]
null
null
null
import os import sys import argparse _version_ = '0.0.1' class scaffold(): result = [] def new_project(self): if os.path.exists(self.result.project): print("project has been existed") exit(1) os.mkdir(self.result.project) os.chdir(self.result.project) ...
29.393258
102
0.546254
2,480
0.948012
0
0
0
0
0
0
594
0.227064
896451db24951d71242afacbaa48addf165d4f98
7,131
py
Python
server.py
alexa-griffin/shared-folders
78224b4bc74be55ce58ed2f448e6c1cbcd69752e
[ "CC0-1.0" ]
null
null
null
server.py
alexa-griffin/shared-folders
78224b4bc74be55ce58ed2f448e6c1cbcd69752e
[ "CC0-1.0" ]
null
null
null
server.py
alexa-griffin/shared-folders
78224b4bc74be55ce58ed2f448e6c1cbcd69752e
[ "CC0-1.0" ]
null
null
null
import os import socket import threading import json import sys import math IP = socket.gethostbyname_ex(socket.gethostname())[-1][-1] PORT = 4450 ADDR = (IP, PORT) SIZE = 2**10 FORMAT = "utf-8" SERVER_PATH = "server" LOGIN = "admin" PASS = "admin" def handle_client(conn, addr): print(f"[NEW CONNECTION] {addr}...
33.957143
170
0.51816
0
0
0
0
0
0
0
0
1,723
0.241621
8965115c33b6d2c569416895234b50bcedd7ba26
1,160
py
Python
test/time_model_fitting.py
gaybro8777/pyPhenology
2a58654126170eb304c71c5d453745c66058bd83
[ "MIT" ]
15
2018-11-22T16:36:27.000Z
2022-02-14T10:58:40.000Z
test/time_model_fitting.py
gaybro8777/pyPhenology
2a58654126170eb304c71c5d453745c66058bd83
[ "MIT" ]
52
2017-12-12T17:23:59.000Z
2021-09-08T01:20:28.000Z
test/time_model_fitting.py
sdtaylor/phenology
72d1d07dfc1a628a29de77447066ead23ee8b1ec
[ "MIT" ]
8
2018-02-15T12:54:10.000Z
2021-03-01T22:23:52.000Z
from pyPhenology import utils observations, temp = utils.load_test_data(name='vaccinium') import pandas as pd import time models_to_use = ['ThermalTime','Alternating','Uniforc','MSB','Unichill'] methods_to_use = ['DE','BF'] sensible_defaults = ['testing','practical','intensive'] timings=[] for m in models_to_use: ...
36.25
94
0.576724
0
0
0
0
0
0
0
0
203
0.175
896518b91cc64ccabd9d1d0b09a31f091b4c06f2
9,394
py
Python
BioExp/RCT/rct.py
parthnatekar/BioExp
4d426b8f4d38be1d673e4371e5a5b34c7cabf770
[ "MIT" ]
9
2019-11-16T04:02:53.000Z
2022-02-10T13:23:52.000Z
BioExp/RCT/rct.py
parthnatekar/BioExp
4d426b8f4d38be1d673e4371e5a5b34c7cabf770
[ "MIT" ]
5
2020-01-28T22:17:05.000Z
2022-02-09T23:40:53.000Z
BioExp/RCT/rct.py
parthnatekar/BioExp
4d426b8f4d38be1d673e4371e5a5b34c7cabf770
[ "MIT" ]
6
2019-11-17T01:31:51.000Z
2020-12-03T21:15:48.000Z
import keras import random import numpy as np from glob import glob from keras.models import Model from keras.utils import np_utils from keras.models import load_model import matplotlib.pyplot as plt import os import keras.backend as K import tensorflow as tf from keras.utils import to_categorical from tqdm import tqdm...
34.284672
143
0.678838
7,745
0.824462
0
0
0
0
0
0
1,579
0.168086
896699d0cdac3f9975a021f32ab3c6fa4c1799b6
758
py
Python
convolut/metric/loss.py
convolut/convolut
e7168ace62f70f9df084a652a2b8fa70a6902e55
[ "Apache-2.0" ]
9
2020-01-07T06:05:58.000Z
2020-07-03T12:24:31.000Z
convolut/metric/loss.py
convolut/convolut
e7168ace62f70f9df084a652a2b8fa70a6902e55
[ "Apache-2.0" ]
null
null
null
convolut/metric/loss.py
convolut/convolut
e7168ace62f70f9df084a652a2b8fa70a6902e55
[ "Apache-2.0" ]
null
null
null
from decouple import Module from .events import MetricEvent from ..model import ModelLossEndEvent class LossMetric(Module): def __init__(self): super().__init__() self.sub(ModelLossEndEvent, self.loss) def loss(self, event: ModelLossEndEvent): metric_value = event.loss.item() ...
31.583333
66
0.51715
656
0.865435
0
0
0
0
0
0
57
0.075198
896a754ac448192eaca4541a428db50fe08184cd
303
py
Python
inputs/json_file.py
Eugene-Kuzmenko/render_html_from_json
c3c3152b3c9969f4f54874d361a81d5e5b7f33a0
[ "MIT" ]
null
null
null
inputs/json_file.py
Eugene-Kuzmenko/render_html_from_json
c3c3152b3c9969f4f54874d361a81d5e5b7f33a0
[ "MIT" ]
null
null
null
inputs/json_file.py
Eugene-Kuzmenko/render_html_from_json
c3c3152b3c9969f4f54874d361a81d5e5b7f33a0
[ "MIT" ]
null
null
null
import json from collections import OrderedDict def json_file(filename, converter): with open(filename, 'r') as file: raw = json.load( file, object_pairs_hook=OrderedDict # to insure that order of items in json won't be broken ) return converter(raw)
23.307692
98
0.650165
0
0
0
0
0
0
0
0
58
0.191419
896aca4891e1316e8534c9060978e02eed953f41
1,963
py
Python
board.py
screw-pack/MacGyver
04ae8ac78168393c6c607ca792026dc71a5c2905
[ "MIT" ]
null
null
null
board.py
screw-pack/MacGyver
04ae8ac78168393c6c607ca792026dc71a5c2905
[ "MIT" ]
null
null
null
board.py
screw-pack/MacGyver
04ae8ac78168393c6c607ca792026dc71a5c2905
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # board.py # Author: Germain GAILLARD <gaillard.germain@gmail.com> # Version: 0.1 # License: MIT """Import modules""" from random import sample class Board: """board object which regroup the coordinates of the game's elements (walls, start, end, guard, compo...
33.271186
79
0.529292
1,767
0.900153
0
0
218
0.111055
0
0
566
0.288334
896dffe0883e57092304362b802eda6ae2176fcc
9,362
py
Python
services/core/DNP3Agent/tests/unit_test_point_definitions.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
406
2015-01-20T03:08:53.000Z
2022-03-31T20:59:07.000Z
services/core/DNP3Agent/tests/unit_test_point_definitions.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
2,031
2015-01-05T21:35:45.000Z
2022-03-29T21:44:36.000Z
services/core/DNP3Agent/tests/unit_test_point_definitions.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
219
2015-01-20T14:53:57.000Z
2022-03-06T00:37:41.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2018, 8minutenergy / Kisensum. # # 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.apa...
43.953052
120
0.638112
0
0
0
0
0
0
0
0
3,923
0.419034
89730fea2cfd2a597b98eac7b0559f46c95c3edb
381
py
Python
Opencart/tests.py
BahrmaLe/otus_python_homework
510a4f1971b35048d760fcc45098e511b81bea31
[ "MIT" ]
1
2021-02-25T15:37:21.000Z
2021-02-25T15:37:21.000Z
Opencart/tests.py
BahrmaLe/otus_python_homework
510a4f1971b35048d760fcc45098e511b81bea31
[ "MIT" ]
null
null
null
Opencart/tests.py
BahrmaLe/otus_python_homework
510a4f1971b35048d760fcc45098e511b81bea31
[ "MIT" ]
null
null
null
def test_open_home_page(driver, request): url = 'opencart/' return driver.get("".join([request.config.getoption("--address"), url])) element = driver.find_elements_by_xpath("//base[contains(@href, 'http://192.168.56.103/opencart/]") assert element == 'http://192.168.56.103/opencart/' assert driver.f...
42.333333
103
0.692913
0
0
0
0
0
0
0
0
137
0.35958
89738170301569f699c91bba33c6010b3ec65d70
430
py
Python
misago/misago/core/tests/test_frontendcontext_middleware.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
2
2021-03-06T21:06:13.000Z
2021-03-09T15:05:12.000Z
misago/misago/core/tests/test_frontendcontext_middleware.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
misago/misago/core/tests/test_frontendcontext_middleware.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
from django.test import TestCase from ..middleware import FrontendContextMiddleware class MockRequest: pass class FrontendContextMiddlewareTests(TestCase): def test_middleware_frontend_context_dict(self): """Middleware sets frontend_context dict on request""" request = MockRequest() ...
25.294118
62
0.75814
339
0.788372
0
0
0
0
0
0
54
0.125581
8974ae2b1100d7ceb895be22b8023f6f5d9849a1
11,589
py
Python
tests/test_schema.py
repole/drowsy
1360068c52d4ef4fbb7bcb2db2e4a5ce9c3c7294
[ "MIT" ]
4
2016-06-16T20:16:38.000Z
2020-08-18T19:51:40.000Z
tests/test_schema.py
repole/drowsy
1360068c52d4ef4fbb7bcb2db2e4a5ce9c3c7294
[ "MIT" ]
2
2017-10-05T11:14:39.000Z
2018-04-15T00:54:35.000Z
tests/test_schema.py
repole/drowsy
1360068c52d4ef4fbb7bcb2db2e4a5ce9c3c7294
[ "MIT" ]
null
null
null
""" tests.test_parser ~~~~~~~~~~~~~~~~~ Parser tests for Drowsy. """ # :copyright: (c) 2016-2020 by Nicholas Repole and contributors. # See AUTHORS for more details. # :license: MIT - See LICENSE for more details. from marshmallow import fields from marshmallow.exceptions import ValidationErro...
32.923295
74
0.592199
9,179
0.792044
0
0
8,337
0.719389
0
0
2,725
0.235137
8975af95154909e66feae919c1c23a3719a39dc8
66,893
py
Python
Assignment2_lastrun.py
iamnavya-agg/Emotion-Categorization-experiemnt
c7cc1a17cbdb414a07cecddb88b4299a1ba51629
[ "MIT" ]
null
null
null
Assignment2_lastrun.py
iamnavya-agg/Emotion-Categorization-experiemnt
c7cc1a17cbdb414a07cecddb88b4299a1ba51629
[ "MIT" ]
4
2020-03-12T19:22:46.000Z
2022-03-12T00:09:38.000Z
Assignment2_lastrun.py
iamnavya-agg/Emotion-Categorization-experiemnt
c7cc1a17cbdb414a07cecddb88b4299a1ba51629
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v3.2.3), on Sun Oct 13 21:34:23 2019 If you publish work using this script the most relevant publication is: Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Lindeløv ...
44.358753
375
0.663956
0
0
0
0
0
0
0
0
24,479
0.365921
8976ac3ed7f5bc537c2e56c41551cfde83e492fd
1,996
py
Python
two-phase-v2/OPE-master/run_ope.py
zizuzi/DeepEmbedding
d8762a94863fadced35b1dcc59996dcd02b1acaf
[ "MIT" ]
1
2019-07-10T05:59:26.000Z
2019-07-10T05:59:26.000Z
two-phase-v2/OPE-master/run_ope.py
zizuzi/DeepEmbedding
d8762a94863fadced35b1dcc59996dcd02b1acaf
[ "MIT" ]
7
2019-03-20T00:28:15.000Z
2021-09-07T23:48:46.000Z
two-phase-v2/OPE-master/run_ope.py
thaihungle/DeepTopicEmbedding
d8762a94863fadced35b1dcc59996dcd02b1acaf
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, './') sys.path.insert(0, './common') sys.path.insert(0, './ML-FW') sys.path.insert(0, './ML-OPE') sys.path.insert(0, './Online-FW') sys.path.insert(0, './Online-OPE') sys.path.insert(0, './Streaming-FW') sys.path.insert(0, './Streaming-OPE') import time import shutil import utilities as ut...
30.707692
70
0.726954
0
0
0
0
0
0
0
0
365
0.182866
8976b5f8cdf877569418f78ed284774690ac4102
1,006
py
Python
tests/test_helper.py
swills/pykwalify
f96b76efb810d7d559254d0ec58de628e09f525a
[ "MIT" ]
275
2015-01-03T18:22:05.000Z
2022-03-29T13:18:28.000Z
tests/test_helper.py
swills/pykwalify
f96b76efb810d7d559254d0ec58de628e09f525a
[ "MIT" ]
172
2015-01-15T11:17:23.000Z
2022-03-25T13:49:06.000Z
tests/test_helper.py
swills/pykwalify
f96b76efb810d7d559254d0ec58de628e09f525a
[ "MIT" ]
90
2015-01-15T09:00:15.000Z
2021-07-17T00:23:00.000Z
# -*- coding: utf-8 -*- # python std lib import logging import logging.config log = logging.getLogger() # Set the root logger to be silent so all code that uses the python logger # will not print anything unless we want it to, then it should be specified # in each test and reseted after that test def _set_log_lv(le...
29.588235
84
0.66998
0
0
0
0
0
0
0
0
488
0.485089
8977bd7b64038385d9857845a7707789f51dd14d
216
py
Python
setup.py
mechyai/RL-EmsPy
01984a9bc37f35991073e17cf715687896d6ea8d
[ "Apache-2.0" ]
8
2022-03-15T13:22:22.000Z
2022-03-30T09:58:04.000Z
setup.py
mechyai/RL-EmsPy
01984a9bc37f35991073e17cf715687896d6ea8d
[ "Apache-2.0" ]
null
null
null
setup.py
mechyai/RL-EmsPy
01984a9bc37f35991073e17cf715687896d6ea8d
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup( name='RL-EmsPy', version='0.0.1', packages=['emspy'], url='https://github.com/mechyai/RL-EmsPy', license='Apache License 2.0', author='Chris Eubel', )
19.636364
46
0.62963
0
0
0
0
0
0
0
0
94
0.435185
897a56ea0416972cc519745819a41aaa3ab7c3b3
2,017
py
Python
src/hyperloop/geometry/inlet.py
uwhl/Hyperloop
b00a1a6570e1c3d94b3e0ce95bad75892eb6caec
[ "Apache-2.0" ]
1
2016-09-03T09:46:04.000Z
2016-09-03T09:46:04.000Z
src/hyperloop/geometry/inlet.py
uwhl/Hyperloop
b00a1a6570e1c3d94b3e0ce95bad75892eb6caec
[ "Apache-2.0" ]
null
null
null
src/hyperloop/geometry/inlet.py
uwhl/Hyperloop
b00a1a6570e1c3d94b3e0ce95bad75892eb6caec
[ "Apache-2.0" ]
null
null
null
from math import pi, sqrt from openmdao.core.component import Component class InletGeom(Component): '''Calculates the dimensions for the inlet and compressor entrance''' def __init__(self): super(InletGeom, self).__init__() self.add_param('wall_thickness', 0.05, desc='thickness of inlet wall',...
53.078947
125
0.655429
1,526
0.756569
0
0
0
0
0
0
874
0.433317
897b0d5575db6738618190b9753ec16b27afe1e4
2,988
py
Python
gza/gzatcp.py
ynadji/drop
848107d4869963170a0c5e8c70ad3f53792d5e6f
[ "Unlicense" ]
6
2015-04-13T16:51:13.000Z
2019-04-21T12:10:55.000Z
gza/gzatcp.py
ynadji/drop
848107d4869963170a0c5e8c70ad3f53792d5e6f
[ "Unlicense" ]
null
null
null
gza/gzatcp.py
ynadji/drop
848107d4869963170a0c5e8c70ad3f53792d5e6f
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # # DNS gameplay from scapy.all import * import sys,os,time import nfqueue import socket from gzacommon import GZA # time.windows, damballa, damballa, local WHITELIST_IPS = ["207.46.232.", "172.22.0.", "172.22.10.", "192.168.", "0.0.0.0", "255.255.255.255"] seen_ips = [] class TCPGZA(GZA): ...
31.125
100
0.553548
2,690
0.900268
0
0
0
0
0
0
766
0.256359
897b4e6d0cd4fcb2d42922fef3503586389e4297
170
py
Python
static/images/uploads/convert-to-web.py
KrishSkywalker/krishgoel.com-v2
a27f6bd9541f354a6ded37e6dcd9ca930c2264ff
[ "MIT" ]
null
null
null
static/images/uploads/convert-to-web.py
KrishSkywalker/krishgoel.com-v2
a27f6bd9541f354a6ded37e6dcd9ca930c2264ff
[ "MIT" ]
2
2021-10-09T06:50:53.000Z
2021-10-09T06:56:21.000Z
static/images/uploads/convert-to-web.py
KrishSkywalker/krishgoel.com-v2
a27f6bd9541f354a6ded37e6dcd9ca930c2264ff
[ "MIT" ]
null
null
null
import os from cv2 import cv2 for d in os.listdir(): if not d.endswith(".png"): continue img = cv2.imread(d) cv2.imwrite(d.replace(".png",".webp"), img) os.remove(d)
21.25
44
0.670588
0
0
0
0
0
0
0
0
19
0.111765
897b64057889d6f4e8ff4affe28b5a7f47a4113d
16,328
bzl
Python
test/internal/opts/process_compiler_opts_tests.bzl
buildbuddy-io/rules_xcodeproj
79a54779d530d3907a69a7910c71c06fec4aefeb
[ "MIT" ]
30
2022-02-11T16:36:24.000Z
2022-03-31T18:18:06.000Z
test/internal/opts/process_compiler_opts_tests.bzl
buildbuddy-io/rules_xcodeproj
79a54779d530d3907a69a7910c71c06fec4aefeb
[ "MIT" ]
93
2022-02-10T23:46:22.000Z
2022-03-30T14:57:40.000Z
test/internal/opts/process_compiler_opts_tests.bzl
buildbuddy-io/rules_xcodeproj
79a54779d530d3907a69a7910c71c06fec4aefeb
[ "MIT" ]
3
2022-03-09T00:14:47.000Z
2022-03-31T11:16:16.000Z
"""Tests for compiler options processing functions.""" load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") load("//test:utils.bzl", "stringify_dict") # buildifier: disable=bzl-visibility load("//xcodeproj/internal:opts.bzl", "testable") process_compiler_opts = testable.process_compiler_opts def _process_...
28.545455
171
0.524008
0
0
0
0
0
0
0
0
6,945
0.425343
897d57f6cf656888dc6cf65082c8947d3a604a80
58,821
py
Python
nltk-drt/src/presuppdrt.py
napsternxg/nltk-drt
71a1218847b5bcc623f72151d36cad8528ee2b19
[ "Apache-2.0" ]
1
2017-06-22T17:11:23.000Z
2017-06-22T17:11:23.000Z
nltk-drt/src/presuppdrt.py
napsternxg/nltk-drt
71a1218847b5bcc623f72151d36cad8528ee2b19
[ "Apache-2.0" ]
null
null
null
nltk-drt/src/presuppdrt.py
napsternxg/nltk-drt
71a1218847b5bcc623f72151d36cad8528ee2b19
[ "Apache-2.0" ]
3
2021-11-20T09:52:59.000Z
2022-03-31T13:09:48.000Z
""" NLTK DRT module extended with presuppositions """ __author__ = "Alex Kislev, Emma Li, Peter Makarov" __version__ = "1.0" __date__ = "Tue, 24 Aug 2010" import re import operator from nltk.sem.logic import Variable from nltk.sem.logic import EqualityExpression, ApplicationExpression, ExistsExpression, AndExpress...
44.527631
197
0.629639
54,612
0.928444
219
0.003723
0
0
0
0
11,649
0.198042
897de8f5d65cb6ce9cd237f74627ca6c99222851
1,669
py
Python
deploy_python/openem/Detect/__init__.py
bryan-flywire/openem
1510ecbbb6b4a43b9f1f9503c87ec66216200677
[ "MIT" ]
10
2019-01-23T23:58:01.000Z
2021-08-30T19:42:35.000Z
deploy_python/openem/Detect/__init__.py
bryan-flywire/openem
1510ecbbb6b4a43b9f1f9503c87ec66216200677
[ "MIT" ]
3
2020-03-20T15:21:41.000Z
2020-09-18T18:49:38.000Z
deploy_python/openem/Detect/__init__.py
bryan-flywire/openem
1510ecbbb6b4a43b9f1f9503c87ec66216200677
[ "MIT" ]
2
2020-05-08T17:39:12.000Z
2020-10-09T01:27:17.000Z
from openem.models import ImageModel from openem.models import Preprocessor import cv2 import numpy as np import tensorflow as tf from collections import namedtuple import csv Detection=namedtuple('Detection', ['location', 'confidence', 'species',...
34.061224
78
0.460755
1,173
0.702816
0
0
0
0
0
0
182
0.109047
898103c6939f84b86c66b0636276a738603f0eb9
515
py
Python
convert.py
FrilledShark/pi_graph
e5bb85d6f507f252ddad3375b7d24270cd4dcbb4
[ "MIT" ]
null
null
null
convert.py
FrilledShark/pi_graph
e5bb85d6f507f252ddad3375b7d24270cd4dcbb4
[ "MIT" ]
null
null
null
convert.py
FrilledShark/pi_graph
e5bb85d6f507f252ddad3375b7d24270cd4dcbb4
[ "MIT" ]
null
null
null
import os import re filenames = sorted([frame for frame in os.listdir("frames")], key=lambda x: int(re.search(r'\d+', os.path.splitext(x)[0]).group())) print("creating gif") import imageio with imageio.get_writer('storage/pi.gif', mode='I') as writer: for filename in filenames: image = imageio.imread(os.p...
32.1875
131
0.712621
0
0
0
0
0
0
0
0
101
0.196117
89814cfc0355efd923e5153ed731438042bdc436
2,283
py
Python
module2-sql-for-analysis/insert_titanic.py
nsriniva/DS-Unit-3-Sprint-2-SQL-and-Databases
e5a2b5acb6a6b962a7206334f3efb79c1c65f6ed
[ "MIT" ]
null
null
null
module2-sql-for-analysis/insert_titanic.py
nsriniva/DS-Unit-3-Sprint-2-SQL-and-Databases
e5a2b5acb6a6b962a7206334f3efb79c1c65f6ed
[ "MIT" ]
null
null
null
module2-sql-for-analysis/insert_titanic.py
nsriniva/DS-Unit-3-Sprint-2-SQL-and-Databases
e5a2b5acb6a6b962a7206334f3efb79c1c65f6ed
[ "MIT" ]
null
null
null
import os import psycopg2 from psycopg2 import extras import json import pandas as pd from dotenv import load_dotenv def execute_values(conn, df, table): """ Using psycopg2.extras.execute_values() to insert the dataframe """ # Create a list of tupples from the dataframe values tuples = [tuple(x) ...
24.031579
132
0.676741
0
0
0
0
0
0
0
0
1,002
0.438896
8981fdc323f9b82729d0de70d9c1a8da39c46c47
118,682
py
Python
modules/bot.py
RkyFissy/Fortnite-LobbyBot-v2
ea37b1b193cd80bbf6499cca51764dd642670d85
[ "MIT" ]
1
2022-03-15T00:48:50.000Z
2022-03-15T00:48:50.000Z
modules/bot.py
namakemono-san/Fortnite-LobbyBot-v2
ea37b1b193cd80bbf6499cca51764dd642670d85
[ "MIT" ]
null
null
null
modules/bot.py
namakemono-san/Fortnite-LobbyBot-v2
ea37b1b193cd80bbf6499cca51764dd642670d85
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import asyncio import datetime import importlib import io import json import logging import os import platform import re import subprocess import sys import textwrap import traceback from contextlib import redirect_stderr, redirect_stdout from functools import partial from glob i...
42.568867
218
0.469296
117,815
0.985224
0
0
255
0.002132
34,156
0.285628
28,771
0.240596
8981fe86ea2397da714b6b0b5707eb9553a6410d
1,573
py
Python
metagraph/tests/translators/test_matrix.py
paul-tqh-nguyen/metagraph
362f97059f8344042d376edc5b470e27bd69b46e
[ "Apache-2.0" ]
18
2020-08-07T19:15:46.000Z
2022-01-25T09:24:18.000Z
metagraph/tests/translators/test_matrix.py
paul-tqh-nguyen/metagraph
362f97059f8344042d376edc5b470e27bd69b46e
[ "Apache-2.0" ]
49
2020-08-07T20:05:11.000Z
2022-03-24T20:46:31.000Z
metagraph/tests/translators/test_matrix.py
paul-tqh-nguyen/metagraph
362f97059f8344042d376edc5b470e27bd69b46e
[ "Apache-2.0" ]
9
2020-08-07T19:15:56.000Z
2022-01-19T01:45:05.000Z
import pytest grblas = pytest.importorskip("grblas") from metagraph.tests.util import default_plugin_resolver from . import RoundTripper from metagraph.plugins.numpy.types import NumpyMatrixType from metagraph.plugins.graphblas.types import GrblasMatrixType import numpy as np def test_matrix_roundtrip_dense_square(...
32.770833
78
0.649078
0
0
0
0
0
0
0
0
72
0.045772
89828c0654558e8c377c4fd94ac3978afd1581ea
1,259
py
Python
src/by_hand_code/acm.py
vishalbelsare/parametric_modeling
9bfe5df35671930043215c8f6c855af8f49e28bf
[ "BSD-3-Clause" ]
37
2015-02-01T12:03:48.000Z
2021-12-23T14:38:38.000Z
src/by_hand_code/acm.py
vishalbelsare/parametric_modeling
9bfe5df35671930043215c8f6c855af8f49e28bf
[ "BSD-3-Clause" ]
2
2015-07-27T11:34:24.000Z
2019-12-11T13:39:18.000Z
src/by_hand_code/acm.py
vishalbelsare/parametric_modeling
9bfe5df35671930043215c8f6c855af8f49e28bf
[ "BSD-3-Clause" ]
19
2016-09-06T20:23:19.000Z
2021-11-07T16:07:40.000Z
#!/usr/bin/env python """ This file is a Python translation of the MATLAB file acm.m Python version by RDL 29 Mar 2012 Copyright notice from acm.m: copyright 1996, by M.H. Hayes. For use with the book "Statistical Digital Signal Processing and Modeling" (John Wiley & Sons, 1996). """ from __future__ import prin...
28.613636
63
0.629071
0
0
0
0
0
0
0
0
800
0.635425
898370d5e67056fc24a2ff2429d8f2a713ae1d63
9,153
py
Python
crds/tests/test_checksum.py
sean-lockwood/crds
f071f59deca98aac4bee04d688805a127761f3d2
[ "BSD-3-Clause" ]
null
null
null
crds/tests/test_checksum.py
sean-lockwood/crds
f071f59deca98aac4bee04d688805a127761f3d2
[ "BSD-3-Clause" ]
1
2019-04-11T18:19:16.000Z
2019-04-11T18:19:16.000Z
crds/tests/test_checksum.py
sean-lockwood/crds
f071f59deca98aac4bee04d688805a127761f3d2
[ "BSD-3-Clause" ]
null
null
null
import os import shutil import doctest from crds.core import log, utils from crds import tests, data_file from crds.tests import test_config from crds.refactoring import checksum from crds.refactoring.checksum import ChecksumScript def dt_checksum_script_fits_add(): """ >>> old_state = test_config.setup() ...
39.623377
131
0.662843
0
0
0
0
0
0
0
0
8,197
0.895553
8984014330a4fe7c818a1839453bfab2acca57d7
2,955
py
Python
fspipe/pipe.py
adamvinueza/fspipe
9df2d42c6907e851a39d4823b98aa26086ec4c96
[ "MIT" ]
null
null
null
fspipe/pipe.py
adamvinueza/fspipe
9df2d42c6907e851a39d4823b98aa26086ec4c96
[ "MIT" ]
null
null
null
fspipe/pipe.py
adamvinueza/fspipe
9df2d42c6907e851a39d4823b98aa26086ec4c96
[ "MIT" ]
null
null
null
from fsspec import AbstractFileSystem # type: ignore from fsspec.implementations.local import LocalFileSystem # type: ignore from typing import Callable, Optional class Pipe(object): """A container for piping data through transformations. Args: src_fs (AbstractFileSystem): The source file system. ...
40.479452
79
0.611168
2,787
0.943147
0
0
582
0.196954
0
0
908
0.307276
8985b0fa229c59111784df2a65cc9891d6eea937
2,677
py
Python
gitsy.py
GINMOT/GITSY
8ef7fcbbcdd33ee6afd0692ab53e092ade7a5c6c
[ "MIT" ]
1
2021-05-30T16:09:42.000Z
2021-05-30T16:09:42.000Z
gitsy.py
GINMOT/GITSY
8ef7fcbbcdd33ee6afd0692ab53e092ade7a5c6c
[ "MIT" ]
null
null
null
gitsy.py
GINMOT/GITSY
8ef7fcbbcdd33ee6afd0692ab53e092ade7a5c6c
[ "MIT" ]
null
null
null
import os from time import sleep import sys from sys import platform import subprocess import platform #Main Service Initalizations #def upcred(): #def multirep(): def clonehistory(): print(">>>>>>>> History >>>>>>>>") print(" repositories cloned") print(">>>>>>>>> ----- >>>>>>>>") ...
20.914063
53
0.415017
0
0
0
0
0
0
0
0
1,005
0.37542
8986e74c9d5d0f3e83c77fa1bbe488f8b8c7d861
1,163
py
Python
convert.py
9Knight9n/crawler-legislation-uk
6f91ccf8323933a1926245a6dd0de747658ec6dd
[ "MIT" ]
null
null
null
convert.py
9Knight9n/crawler-legislation-uk
6f91ccf8323933a1926245a6dd0de747658ec6dd
[ "MIT" ]
null
null
null
convert.py
9Knight9n/crawler-legislation-uk
6f91ccf8323933a1926245a6dd0de747658ec6dd
[ "MIT" ]
null
null
null
# from os import listdir # from os.path import isfile, join # # from save import xht_files_dir, txt_files_dir_converted # from utils import convert_xht_to_txt,convert_xht_to_txt_2 # only_files = [f for f in listdir(xht_files_dir) if isfile(join(xht_files_dir, f))] # for index,file_ in enumerate(only_files): # pri...
30.605263
145
0.656062
0
0
0
0
0
0
0
0
1,132
0.965047
898730ea9a49096e8b6161edc2af4f23006465d6
2,757
py
Python
tests/regressiontests/custom_managers_regress/models.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
tests/regressiontests/custom_managers_regress/models.py
joetyson/django
c3699190186561d5c216b2a77ecbfc487d42a734
[ "BSD-3-Clause" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
tests/regressiontests/custom_managers_regress/models.py
joetyson/django
c3699190186561d5c216b2a77ecbfc487d42a734
[ "BSD-3-Clause" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
""" Regression tests for custom manager classes. """ from django.db import models class RestrictedManager(models.Manager): """ A manager that filters out non-public instances. """ def get_query_set(self): return super(RestrictedManager, self).get_query_set().filter(is_public=True) class Relat...
33.216867
88
0.730141
965
0.350018
0
0
0
0
0
0
1,799
0.652521
8987a8a45d351bbfef65dc5938b0c5ab50967bd0
1,685
py
Python
test_code/python-plotter-serial-beta/plotter_freq_checker.py
ithallojunior/data_transmission
eaf1ef81c018dc5a42f1756b39e19bfaa7f34ed5
[ "MIT" ]
null
null
null
test_code/python-plotter-serial-beta/plotter_freq_checker.py
ithallojunior/data_transmission
eaf1ef81c018dc5a42f1756b39e19bfaa7f34ed5
[ "MIT" ]
null
null
null
test_code/python-plotter-serial-beta/plotter_freq_checker.py
ithallojunior/data_transmission
eaf1ef81c018dc5a42f1756b39e19bfaa7f34ed5
[ "MIT" ]
null
null
null
import serial import matplotlib.pyplot as plt import numpy as np import time pd = "/dev/tty.wchusbserial1410" #pd = "/dev/tty.usbmodem1421" p = serial.Serial(port=pd, baudrate=115200, bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE) p.flush() time.sleep(0.5) #plt.axis([0, 10, 0, 1]) plt.ion() s...
26.328125
71
0.516914
0
0
0
0
0
0
0
0
375
0.222552
89881e729e1c5b8ecc3806d72f395c7bedce5068
2,203
py
Python
leetcode/207_course_schedule.py
coocos/leetcode
007bbeb46fa4b32e1c92fc894edeb2100eb6ba21
[ "MIT" ]
null
null
null
leetcode/207_course_schedule.py
coocos/leetcode
007bbeb46fa4b32e1c92fc894edeb2100eb6ba21
[ "MIT" ]
null
null
null
leetcode/207_course_schedule.py
coocos/leetcode
007bbeb46fa4b32e1c92fc894edeb2100eb6ba21
[ "MIT" ]
null
null
null
import unittest import collections from typing import List class Solution: """ This solution performs a topological sort using Kahn's algorithm. First a graph is constructed in the form of a dictionary which contains the courses, their requirements and the courses that they themselves enable. Then ...
36.716667
86
0.66364
2,138
0.970495
0
0
0
0
0
0
893
0.405356
8988728d0b2235f53cc08dcd048278808b2a69e7
425
py
Python
investment_report/migrations/0026_remove_howwecanhelp_sector.py
uktrade/pir-api
79747ceab042c42c287e2b7471f6dade70f68693
[ "MIT" ]
1
2021-02-02T19:08:55.000Z
2021-02-02T19:08:55.000Z
investment_report/migrations/0026_remove_howwecanhelp_sector.py
uktrade/invest-pir-api
be56efddf9dfdf81c8557441a9a54d9a4dd4bab1
[ "MIT" ]
21
2018-07-10T10:20:47.000Z
2022-03-24T09:36:29.000Z
investment_report/migrations/0026_remove_howwecanhelp_sector.py
uktrade/pir-api
79747ceab042c42c287e2b7471f6dade70f68693
[ "MIT" ]
1
2021-02-04T11:28:37.000Z
2021-02-04T11:28:37.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-09-01 14:28 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('investment_report', '0025_howwecanhelp_smartworkforcesector'), ] operations = [ mi...
21.25
72
0.642353
274
0.644706
0
0
0
0
0
0
153
0.36
898a1ef53ea78c92b3aad4b4f4f400878c4c775b
3,740
py
Python
src/models/transformer_encoder.py
sanket-pixel/attentive-mot
d9cdfadd6471524c835cb95f5789414afb6649d7
[ "MIT" ]
1
2021-08-14T20:09:55.000Z
2021-08-14T20:09:55.000Z
src/models/transformer_encoder.py
sanket-pixel/attentive-mot
d9cdfadd6471524c835cb95f5789414afb6649d7
[ "MIT" ]
null
null
null
src/models/transformer_encoder.py
sanket-pixel/attentive-mot
d9cdfadd6471524c835cb95f5789414afb6649d7
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as f from torch import nn from einops import rearrange def scaled_dot_product_attention(query, key, value): attention = torch.einsum('bdtc,beuc->bdteu',[query,key]) mask = torch.zeros_like(attention) for frame in torch.arange(mask.size(-2)): mask[:, frame, :...
30.16129
86
0.619786
2,551
0.682086
0
0
0
0
0
0
463
0.123797
898a5306afa3764a7edd628eb316f44d5054d18e
628
py
Python
src/default_parameters.py
Vivswan/ECE-2162-Tomasulo
85a12be0d49a1229da062caa076321a6d2d5204c
[ "MIT" ]
null
null
null
src/default_parameters.py
Vivswan/ECE-2162-Tomasulo
85a12be0d49a1229da062caa076321a6d2d5204c
[ "MIT" ]
null
null
null
src/default_parameters.py
Vivswan/ECE-2162-Tomasulo
85a12be0d49a1229da062caa076321a6d2d5204c
[ "MIT" ]
null
null
null
TOMASULO_DEFAULT_PARAMETERS = { "num_register": 32, "num_rob": 128, "num_cdb": 1, "cdb_buffer_size": 0, "nop_latency": 1, "nop_unit_pipelined": 1, "integer_adder_latency": 1, "integer_adder_rs": 5, "integer_adder_pipelined": 0, "float_adder_latency": 3, "float_adder_rs": 3...
22.428571
36
0.66242
0
0
0
0
0
0
0
0
402
0.640127
898a5a3fc36cd33bb17ecf41c7c2ed55175536af
639
py
Python
hanlp/utils/__init__.py
antfootAlex/HanLP
e8044b27ae1de54b9070db08549853d3ca8271e2
[ "Apache-2.0" ]
27,208
2015-03-27T10:25:45.000Z
2022-03-31T13:26:32.000Z
hanlp/utils/__init__.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
1,674
2015-03-30T06:36:44.000Z
2022-03-16T01:52:56.000Z
hanlp/utils/__init__.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
7,710
2015-03-27T08:07:57.000Z
2022-03-31T14:57:23.000Z
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-08-24 22:12 from . import rules def ls_resource_in_module(root) -> dict: res = dict() for k, v in root.__dict__.items(): if k.startswith('_') or v == root: continue if isinstance(v, str): if v.startswith('http') and n...
31.95
110
0.577465
0
0
0
0
0
0
0
0
103
0.161189
898a6e4ec452715bf2182d06be96a7c637b49645
1,174
py
Python
microbots/signup/crud.py
Varun11940/voice-enabled-chatbot
0f6ed534adfd95139f817a033fcbf3f749738339
[ "MIT" ]
36
2019-05-07T16:26:35.000Z
2022-02-08T06:02:45.000Z
microbots/signup/crud.py
Varun11940/voice-enabled-chatbot
0f6ed534adfd95139f817a033fcbf3f749738339
[ "MIT" ]
53
2019-06-01T15:55:17.000Z
2020-10-01T15:35:48.000Z
microbots/signup/crud.py
Varun11940/voice-enabled-chatbot
0f6ed534adfd95139f817a033fcbf3f749738339
[ "MIT" ]
73
2019-05-08T03:16:04.000Z
2022-01-17T05:56:59.000Z
import config import models from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine, inspect engine = create_engine(config.DATABASE_URI) Session = sessionmaker(bind=engine) class crudOps: def createTable(self): models.Base.metadata.create_all(engine) def recreate_database(self):...
23.019608
47
0.640545
707
0.602215
0
0
0
0
0
0
43
0.036627
898a7838615f25b4e91899e45ef134b30353cc97
14,270
py
Python
capsNet.py
zhaoaite/ASTCapsNet
b9a13df952af65f13d3006df923d0ed5646915d4
[ "MIT" ]
null
null
null
capsNet.py
zhaoaite/ASTCapsNet
b9a13df952af65f13d3006df923d0ed5646915d4
[ "MIT" ]
null
null
null
capsNet.py
zhaoaite/ASTCapsNet
b9a13df952af65f13d3006df923d0ed5646915d4
[ "MIT" ]
null
null
null
""" License: Apache-2.0 Author: Aite Zhao E-mail: aitezhao@qq.com """ import tensorflow as tf import rnn_cell_GRU as rnn_cell import rnn import numpy as np from config import cfg from utils import get_batch_data from capsLayer import CapsLayer from sklearn import metrics import pickle from sklearn.cross_validation i...
49.206897
212
0.632586
13,446
0.941729
0
0
0
0
0
0
6,083
0.42604
898b4036b6c035a6ca0b7f4734119239d1a58055
1,001
py
Python
settings.py
jjeejj/alien_invasion
446bb46f67cefd02660a44bdeff6e78ee697e828
[ "MIT" ]
1
2019-06-23T13:42:06.000Z
2019-06-23T13:42:06.000Z
settings.py
jjeejj/alien_invasion
446bb46f67cefd02660a44bdeff6e78ee697e828
[ "MIT" ]
null
null
null
settings.py
jjeejj/alien_invasion
446bb46f67cefd02660a44bdeff6e78ee697e828
[ "MIT" ]
null
null
null
# 设置类 class Settings(): '''保存设置信息''' def __init__(self): '''初始化游戏的静态设置''' self.screen_width = 850 self.screen_heght = 600 self.bg_color = (230, 230, 230) # 玩家飞船数量设置 self.ship_limit = 3 # 子弹设置 self.bullet_width = 3 self.bullet_...
27.805556
54
0.58042
1,118
0.988506
0
0
0
0
0
0
238
0.210433
898b41882896a96530a97d73e69f44d73c15b034
11,564
py
Python
stream.py
MusikPolice/picamera-web-interface
c10f50fb394fd1089c69ef0faaa523c8ec98604d
[ "Apache-2.0" ]
null
null
null
stream.py
MusikPolice/picamera-web-interface
c10f50fb394fd1089c69ef0faaa523c8ec98604d
[ "Apache-2.0" ]
null
null
null
stream.py
MusikPolice/picamera-web-interface
c10f50fb394fd1089c69ef0faaa523c8ec98604d
[ "Apache-2.0" ]
null
null
null
# Based on code shamelessly stolen from https://picamera.readthedocs.io/en/latest/recipes2.html#web-streaming import io import picamera import logging import socketserver import configparser import json from threading import Condition from http import server from string import Template from gpiozero import LED PAGE="...
29.804124
120
0.579557
4,578
0.395884
0
0
0
0
0
0
7,117
0.615444
898c77e492dd4a9d199a1a4723672c492bb1ddb8
3,811
py
Python
downloader.py
mathieuhendey/lastfm_downloader
616ed6edad171e6eda05fd48b07a237d7c788fd5
[ "MIT" ]
3
2019-06-06T08:59:18.000Z
2021-07-16T06:43:24.000Z
downloader.py
mathieuhendey/lastfm_downloader
616ed6edad171e6eda05fd48b07a237d7c788fd5
[ "MIT" ]
1
2021-08-23T14:33:09.000Z
2021-08-23T14:33:09.000Z
downloader.py
mathieuhendey/lastfm_downloader
616ed6edad171e6eda05fd48b07a237d7c788fd5
[ "MIT" ]
1
2020-10-15T08:40:55.000Z
2020-10-15T08:40:55.000Z
import sys import pandas as pd import requests import pprint from requests_toolbelt.threaded import pool # Generate your own at https://www.last.fm/api/account/create LASTFM_API_KEY = None LASTFM_USER_NAME = None TEXT = "#text" ESTIMATED_TIME_FOR_PROCESSING_PAGE = 352 ESTIMATED_TIME_FOR_PROCESSING_DATAFRAME_PER_PAGE_...
32.02521
92
0.649173
0
0
0
0
0
0
0
0
1,247
0.327211
898eb33546671a512a010d7eaa79d1cab11f0acf
1,652
py
Python
src/trainer/fasttexttrainer.py
liuweiping2020/pyml
0b9a7a307b93f9313d7e1bb92b33ae330d681c73
[ "Apache-2.0" ]
null
null
null
src/trainer/fasttexttrainer.py
liuweiping2020/pyml
0b9a7a307b93f9313d7e1bb92b33ae330d681c73
[ "Apache-2.0" ]
null
null
null
src/trainer/fasttexttrainer.py
liuweiping2020/pyml
0b9a7a307b93f9313d7e1bb92b33ae330d681c73
[ "Apache-2.0" ]
null
null
null
import numpy as np from modeler.fasttextmodel import FastTextModel from trainer.tftrainer import TFTrainer class FastTextTrainer(TFTrainer): def __init__(self): self.num_classes = 19 self.learning_rate = 0.01 self.batch_size = 8 self.decay_steps = 1000 self.decay_rate = 0....
34.416667
111
0.631961
1,436
0.869249
0
0
0
0
0
0
44
0.026634
898f280dfba7fad802966aff1e0af5464f293a16
13,358
py
Python
release/stubs.min/Autodesk/Revit/DB/Structure/__init__.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/Structure/__init__.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/Structure/__init__.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
# encoding: utf-8 # module Autodesk.Revit.DB.Structure calls itself Structure # from RevitAPI,Version=17.0.0.0,Culture=neutral,PublicKeyToken=null # by generator 1.145 # no doc # no imports # no functions # classes from __init___parts.AnalyticalAlignmentMethod import AnalyticalAlignmentMethod from __init___p...
57.577586
89
0.897365
0
0
0
0
0
0
0
0
215
0.016095
898fd3519ea3c73d1cfaf184b707740b9eadcd70
1,700
py
Python
katana/pedals/booster.py
leon3110l/katana_tsl_patch
a88cb35f524ba1941ccb4f94e0dcaa02df11fd18
[ "MIT" ]
null
null
null
katana/pedals/booster.py
leon3110l/katana_tsl_patch
a88cb35f524ba1941ccb4f94e0dcaa02df11fd18
[ "MIT" ]
null
null
null
katana/pedals/booster.py
leon3110l/katana_tsl_patch
a88cb35f524ba1941ccb4f94e0dcaa02df11fd18
[ "MIT" ]
null
null
null
from .pedal import BasePedal from enum import IntEnum class BoosterType(IntEnum): DEFAULT = 10 MID_BOOST = 0 CLEAN_BOOST = 1 TREBLE_BOOST = 2 CRUNCH = 3 NATURAL_OD = 4 WARM_OD = 5 FAT_DS = 6 LEAD_DS = 7 METAL_DS = 8 OCT_FUZZ = 9 BLUES_OD = 10 OD_1 = 11 TUBESCREAM...
26.153846
57
0.531765
1,643
0.966471
0
0
0
0
0
0
7
0.004118
899136c30078eb7beeeeeeb4e5ad870501ebb8f3
867
py
Python
OpenCV/task5.py
Vishwajeetiitb/Autumn-of-Automation
bd8c78662734f867b6aa6fd9179a12913387a01c
[ "MIT" ]
null
null
null
OpenCV/task5.py
Vishwajeetiitb/Autumn-of-Automation
bd8c78662734f867b6aa6fd9179a12913387a01c
[ "MIT" ]
null
null
null
OpenCV/task5.py
Vishwajeetiitb/Autumn-of-Automation
bd8c78662734f867b6aa6fd9179a12913387a01c
[ "MIT" ]
null
null
null
import numpy as np import cv2 img = cv2.imread("test_image.jpg") gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml') faces = face_cascade.detectMultiScale(gray, 1.3, 5) camera = cv2.VideoCaptu...
32.111111
75
0.701269
0
0
0
0
0
0
0
0
98
0.113033
8992dfa1462e52b04396648a85e1fba269dd606d
9,159
py
Python
src/models/ns.py
mhw32/meta-inference-public
3cad0b84acd407f3d790f3d75d3045f62bdbf250
[ "MIT" ]
11
2019-11-16T02:01:38.000Z
2022-03-19T08:19:21.000Z
src/models/ns.py
mhw32/meta-inference-public
3cad0b84acd407f3d790f3d75d3045f62bdbf250
[ "MIT" ]
null
null
null
src/models/ns.py
mhw32/meta-inference-public
3cad0b84acd407f3d790f3d75d3045f62bdbf250
[ "MIT" ]
1
2020-05-01T12:44:40.000Z
2020-05-01T12:44:40.000Z
import os import sys import torch from torch import nn from torch.nn import functional as F, init from src.utils import bernoulli_log_pdf from src.objectives.elbo import \ log_bernoulli_marginal_estimate_sets class Statistician(nn.Module): def __init__(self, c_dim, z_dim, hidden_dim_statistic=3, hidden_dim=40...
33.064982
99
0.611639
8,925
0.974451
0
0
444
0.048477
0
0
690
0.075336
8992e36f7d78153b1e0074a9172a102ef80e8d67
3,795
py
Python
posts/views.py
Agiruskiy/yatube
57e3e7deaf87f8fc2fdb4b53e4daa632f1dc43f5
[ "BSD-3-Clause" ]
null
null
null
posts/views.py
Agiruskiy/yatube
57e3e7deaf87f8fc2fdb4b53e4daa632f1dc43f5
[ "BSD-3-Clause" ]
null
null
null
posts/views.py
Agiruskiy/yatube
57e3e7deaf87f8fc2fdb4b53e4daa632f1dc43f5
[ "BSD-3-Clause" ]
null
null
null
from django.core.paginator import Paginator from django.shortcuts import render, get_object_or_404, redirect from .models import Post, Groups from django.contrib.auth import get_user_model, get_user from .forms import NewPost from django.contrib.auth.decorators import login_required # Create your views here. def fi...
32.435897
92
0.674835
0
0
0
0
939
0.21621
0
0
1,648
0.379461
89933c1df7105a66426ac059f6d21de37d3ae93b
291,404
py
Python
tests/examples/minlplib/robot200.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
2
2021-07-03T13:19:10.000Z
2022-02-06T10:48:13.000Z
tests/examples/minlplib/robot200.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
1
2021-07-04T14:52:14.000Z
2021-07-15T10:17:11.000Z
tests/examples/minlplib/robot200.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
null
null
null
# NLP written by GAMS Convert at 04/21/18 13:54:04 # # Equation counts # Total E G L N X C B # 1603 1603 0 0 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
53.537387
102
0.688542
0
0
0
0
0
0
0
0
697
0.002392
8994560794eac403f32c84dae0fea83d1c5d480e
3,379
py
Python
nonconformist/base.py
smazzanti/nonconformist
5ed072c82ae6d923eb6063a6a5c8fa664fbf729c
[ "MIT" ]
301
2015-03-18T01:47:37.000Z
2022-03-11T14:50:55.000Z
nonconformist/base.py
smazzanti/nonconformist
5ed072c82ae6d923eb6063a6a5c8fa664fbf729c
[ "MIT" ]
25
2016-07-25T21:36:26.000Z
2022-02-23T00:39:07.000Z
nonconformist/base.py
smazzanti/nonconformist
5ed072c82ae6d923eb6063a6a5c8fa664fbf729c
[ "MIT" ]
91
2015-03-19T08:25:16.000Z
2022-03-08T08:31:38.000Z
#!/usr/bin/env python """ docstring """ # Authors: Henrik Linusson import abc import numpy as np from sklearn.base import BaseEstimator class RegressorMixin(object): def __init__(self): super(RegressorMixin, self).__init__() @classmethod def get_problem_type(cls): return 'regression' class ClassifierMix...
21.522293
63
0.718556
3,215
0.951465
0
0
457
0.135247
0
0
939
0.277893
8995599b49ae65bec50e95a8d6ce10788f734c9e
1,890
py
Python
corehq/apps/receiverwrapper/rate_limiter.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/receiverwrapper/rate_limiter.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/receiverwrapper/rate_limiter.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
from corehq.project_limits.rate_limiter import RateDefinition, RateLimiter, \ PerUserRateDefinition from corehq.util.datadog.gauges import datadog_counter from corehq.util.datadog.utils import bucket_value from corehq.util.decorators import silence_and_report_error, enterprise_skip from corehq.util.timer import Ti...
33.75
86
0.74127
0
0
0
0
783
0.414286
0
0
389
0.20582
89970080ba2f0570c2f1e353abfb492b88c1cf1e
2,263
py
Python
ShareSpace/views.py
BNordstrom16/ShareSpaceWeb
676ddbc52f745d4b8a17f18f26a15329ad91ebfa
[ "MIT" ]
null
null
null
ShareSpace/views.py
BNordstrom16/ShareSpaceWeb
676ddbc52f745d4b8a17f18f26a15329ad91ebfa
[ "MIT" ]
null
null
null
ShareSpace/views.py
BNordstrom16/ShareSpaceWeb
676ddbc52f745d4b8a17f18f26a15329ad91ebfa
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.views.generic import UpdateView, DeleteView from .models import Storage from django_tables2 import RequestConfig from .tables import StorageTable from django.contrib.auth.decorators import login_required from .forms import StorageForm, QuestionForm def index(r...
28.2875
86
0.696421
304
0.134335
0
0
495
0.218736
0
0
412
0.182059
899a40a76b3d46b1165d8bfc6e8d1efe16d93e6b
1,282
py
Python
rest_framework_security/deny_repeat_password/signals.py
RubenEu/django-rest-framework-security
638cf271c51a5bafd434a6b6a9c25a7c4849b485
[ "MIT" ]
7
2020-09-01T09:55:25.000Z
2021-11-04T06:59:04.000Z
rest_framework_security/deny_repeat_password/signals.py
RubenEu/django-rest-framework-security
638cf271c51a5bafd434a6b6a9c25a7c4849b485
[ "MIT" ]
32
2020-10-28T17:09:18.000Z
2022-03-12T00:55:09.000Z
rest_framework_security/deny_repeat_password/signals.py
RubenEu/django-rest-framework-security
638cf271c51a5bafd434a6b6a9c25a7c4849b485
[ "MIT" ]
2
2020-12-18T01:26:53.000Z
2021-11-04T06:59:07.000Z
from django.apps import apps from django.contrib.auth import get_user_model from django.db.models.signals import post_save from django.dispatch import receiver, Signal from rest_framework_security.deny_repeat_password import config from rest_framework_security.deny_repeat_password.emails import ChangedPasswordEmail fr...
34.648649
84
0.789392
0
0
0
0
828
0.645866
0
0
46
0.035881