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
3a2b8a858ee6da50e87c4cd8bfce4156f67a9cc7
844
py
Python
lgtv.py
aakropotkin/PyWebOSTV
4c060541b397dc20f79049fa9390c1b6b1a7050b
[ "MIT" ]
null
null
null
lgtv.py
aakropotkin/PyWebOSTV
4c060541b397dc20f79049fa9390c1b6b1a7050b
[ "MIT" ]
null
null
null
lgtv.py
aakropotkin/PyWebOSTV
4c060541b397dc20f79049fa9390c1b6b1a7050b
[ "MIT" ]
null
null
null
#! /usr/bin/env nix-shell #! nix-shell -i python3 -p "[python3] ++ (with pkgs.python37Packages; [ requests future ws4py pytest pylint coveralls twine wheel ])" # <<END Extended Shebang>> import json from pywebostv.discovery import * from pywebostv.connection import * from pywebostv.controls import * with open('/home/...
28.133333
133
0.728673
0
0
0
0
0
0
0
0
310
0.367299
3a2e8191805b6dc90c6ff13576324c98a0708604
2,102
py
Python
lutin_lua.py
generic-library/lua
1dddc5e025d94bd62ae6ca9e9e3f2cd11ed23a35
[ "MIT" ]
null
null
null
lutin_lua.py
generic-library/lua
1dddc5e025d94bd62ae6ca9e9e3f2cd11ed23a35
[ "MIT" ]
null
null
null
lutin_lua.py
generic-library/lua
1dddc5e025d94bd62ae6ca9e9e3f2cd11ed23a35
[ "MIT" ]
null
null
null
#!/usr/bin/python import realog.debug as debug import lutin.tools as tools def get_type(): return "LIBRARY" def get_desc(): return "Lua interpretic script module" def get_licence(): return "MIT" def get_compagny_type(): return "org" def get_compagny_name(): return "lua" def get_maintainer(): return "author...
18.438596
58
0.569458
0
0
0
0
0
0
0
0
1,105
0.52569
3a328bda03f529d92fa1c790651cd4083a64c3f3
2,657
py
Python
tests/lib/io/test_marshall.py
yukgu/covid-model-seiir-pipeline
3433034d3f089938e7993b6321d570365bdf62db
[ "BSD-3-Clause" ]
23
2020-05-25T00:20:32.000Z
2022-01-18T10:32:09.000Z
tests/lib/io/test_marshall.py
yukgu/covid-model-seiir-pipeline
3433034d3f089938e7993b6321d570365bdf62db
[ "BSD-3-Clause" ]
15
2020-06-15T16:34:22.000Z
2021-08-15T22:11:37.000Z
tests/lib/io/test_marshall.py
yukgu/covid-model-seiir-pipeline
3433034d3f089938e7993b6321d570365bdf62db
[ "BSD-3-Clause" ]
11
2020-05-24T21:57:29.000Z
2021-09-07T18:21:15.000Z
import pandas import pytest from covid_model_seiir_pipeline.lib.io import RegressionRoot from covid_model_seiir_pipeline.lib.io.marshall import ( CSVMarshall, ParquetMarshall, ) class MarshallInterfaceTests: """ Mixin class for testing the marshall interface. """ def test_parameters_marshall...
37.422535
105
0.694016
2,461
0.926233
0
0
320
0.120437
0
0
279
0.105006
3a3466847842fadedb0751fe60c731009684a618
727
py
Python
bot/commands/settings.py
mercdev-corp/repsoter
5ab98e84556143d4688ae5497443916fa63431b0
[ "MIT" ]
2
2020-10-26T09:26:13.000Z
2022-03-22T18:10:01.000Z
bot/commands/settings.py
mercdev-corp/repsoter
5ab98e84556143d4688ae5497443916fa63431b0
[ "MIT" ]
null
null
null
bot/commands/settings.py
mercdev-corp/repsoter
5ab98e84556143d4688ae5497443916fa63431b0
[ "MIT" ]
2
2020-02-11T08:11:19.000Z
2022-03-20T18:16:41.000Z
from telegram import Update from telegram.ext import CallbackContext, CommandHandler from bot.settings import settings from bot.utils import get_log from ._utils import require_owner log = get_log(__name__) @require_owner def command(update: Update, context: CallbackContext): log.debug('Taken command `setting...
30.291667
80
0.621733
0
0
0
0
465
0.639615
0
0
214
0.29436
3a34c3856763aba4f082175e4e23858129d09e5b
3,595
py
Python
civbot/commands/cmd_add_game.py
thyjukki/Civi-Botti-2.0
7b9ff6bf3e97b90f61286e7688db731f91365e88
[ "MIT" ]
null
null
null
civbot/commands/cmd_add_game.py
thyjukki/Civi-Botti-2.0
7b9ff6bf3e97b90f61286e7688db731f91365e88
[ "MIT" ]
3
2020-04-28T09:19:11.000Z
2021-06-01T23:21:32.000Z
civbot/commands/cmd_add_game.py
thyjukki/Civi-Botti-2.0
7b9ff6bf3e97b90f61286e7688db731f91365e88
[ "MIT" ]
null
null
null
import telegram from telegram.ext import CommandHandler, ConversationHandler, MessageHandler, \ Filters from civbot.commands.cmd_cancel import cancel_all from civbot.models import User, Subscription SELECT = 1 def add_game(bot, update): user = User.get_or_none(User.id == update.message.from_user.id) if...
28.307087
79
0.628929
0
0
0
0
0
0
0
0
487
0.135466
3a351e34d111e613d1ab5005378d1998b8366f78
982
bzl
Python
internal/run.bzl
kennethzfeng/rules_nomad
b5c000b3c860157917f2af0eebc689ea8c2f796d
[ "MIT" ]
null
null
null
internal/run.bzl
kennethzfeng/rules_nomad
b5c000b3c860157917f2af0eebc689ea8c2f796d
[ "MIT" ]
null
null
null
internal/run.bzl
kennethzfeng/rules_nomad
b5c000b3c860157917f2af0eebc689ea8c2f796d
[ "MIT" ]
null
null
null
# Rule nomad_run generates a runner script to execute nomad run with the given # job file. # # NOTE(kfeng): This rule currently assumes that the nomad executable is # installed on the host machine, and is in one of the directories listed in # the PATH environment variable. In the future, this project may fetch # the n...
28.057143
78
0.657841
0
0
0
0
0
0
0
0
423
0.430754
3a354a29d377cbf952a940a0b75110dea65c2d7e
1,355
py
Python
tutorials/W1D4_Optimization/solutions/W1D4_Tutorial1_Solution_9732cf5a.py
carsen-stringer/course-content-dl
27749aec56a3d2a43b3890483675ad0338a2680f
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
tutorials/W1D4_Optimization/solutions/W1D4_Tutorial1_Solution_9732cf5a.py
carsen-stringer/course-content-dl
27749aec56a3d2a43b3890483675ad0338a2680f
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
tutorials/W1D4_Optimization/solutions/W1D4_Tutorial1_Solution_9732cf5a.py
carsen-stringer/course-content-dl
27749aec56a3d2a43b3890483675ad0338a2680f
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
def rmsprop_update(loss, params, grad_sq, lr=1e-1, alpha=0.8): """Perform an RMSprop update on a collection of parameters Args: loss (tensor): A scalar tensor containing the loss whose gradient will be computed params (iterable): Collection of parameters with respect to which we compute gradients grad_...
39.852941
90
0.724723
0
0
0
0
0
0
0
0
770
0.568266
3a35de756e73312c8d8aa96bb05d403a7ba20ad8
4,289
py
Python
tridentstream/inputs/rfs/handler.py
tridentstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
6
2020-01-03T14:50:09.000Z
2021-09-13T01:44:31.000Z
tridentstream/inputs/rfs/handler.py
tidalstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
null
null
null
tridentstream/inputs/rfs/handler.py
tidalstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
null
null
null
import logging from urllib.parse import urljoin import requests from thomas import Item, StreamerBase, router from unplugged import Schema, fields from twisted.internet import threads from ...exceptions import NotModifiedException, PathNotFoundException from ...plugins import InputPlugin from ...stream import Stream...
30.41844
96
0.609466
3,921
0.914199
0
0
0
0
0
0
611
0.142457
3a35e243be4e6577ec779fc127c120ca3ef47d2e
741
py
Python
twitter/test_api.py
jsnowacki/aws-cdk-twitter-sentiment
364291cf5976cf13eb277cd2945a324b048b1df9
[ "MIT" ]
null
null
null
twitter/test_api.py
jsnowacki/aws-cdk-twitter-sentiment
364291cf5976cf13eb277cd2945a324b048b1df9
[ "MIT" ]
null
null
null
twitter/test_api.py
jsnowacki/aws-cdk-twitter-sentiment
364291cf5976cf13eb277cd2945a324b048b1df9
[ "MIT" ]
null
null
null
from api import get_secret, get_tweepy_api, TwitterApiSecret import json SECRET_NAME = "TwitterAPIKeys" def test_get_secret(): secret = get_secret(SECRET_NAME) assert secret is not None assert type(secret) is TwitterApiSecret assert len(secret.access_token) > 0 assert len(secret.access_token_secre...
30.875
60
0.727395
0
0
0
0
0
0
0
0
26
0.035088
3a3672cb76e143ae0a5005d6285eaadd341c12b6
34,698
py
Python
SAI/bm/sai_adapter/test/ptf_tests/tests/sail2_new.py
bocon13/stratum-sonic
9be75505869ee81d30ef9b65276f7d55f495658f
[ "Apache-2.0" ]
null
null
null
SAI/bm/sai_adapter/test/ptf_tests/tests/sail2_new.py
bocon13/stratum-sonic
9be75505869ee81d30ef9b65276f7d55f495658f
[ "Apache-2.0" ]
null
null
null
SAI/bm/sai_adapter/test/ptf_tests/tests/sail2_new.py
bocon13/stratum-sonic
9be75505869ee81d30ef9b65276f7d55f495658f
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-present Barefoot Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
49.357041
136
0.645426
33,809
0.974379
0
0
33,914
0.977405
0
0
3,343
0.096346
3a37961a35f717a520a82adff518def2441c92f7
2,024
py
Python
app/main/service/exp_service.py
ayoyin/REST-API
965cda0f87ba8055ee78e9300ca80d5ed79a41c8
[ "MIT" ]
1
2021-06-01T14:35:11.000Z
2021-06-01T14:35:11.000Z
app/main/service/exp_service.py
ayoyin/REST-API
965cda0f87ba8055ee78e9300ca80d5ed79a41c8
[ "MIT" ]
10
2021-05-26T22:27:59.000Z
2021-06-03T21:04:43.000Z
app/main/service/exp_service.py
ayoyin/REST-API
965cda0f87ba8055ee78e9300ca80d5ed79a41c8
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify from flask_sqlalchemy import SQLAlchemy from model.exp_model import Experience, ExperienceSchema class ExperienceService(object): def __init__(self, app:Flask, db:SQLAlchemy) -> None: self.app = app self.db = db self.exp_schema = ExperienceSchema() ...
31.625
83
0.682312
1,884
0.93083
0
0
0
0
0
0
235
0.116107
3a387d0d5be89499283e51eedf3d994a0ac9cdc2
4,850
py
Python
SearchService/query_converter.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
SearchService/query_converter.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
SearchService/query_converter.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
""" Code for turning a GAE Search query into a SOLR query. """ import logging import sys from constants import INDEX_NAME_FIELD, INDEX_LOCALE_FIELD from appscale.common.unpackaged import APPSCALE_PYTHON_APPSERVER sys.path.append(APPSCALE_PYTHON_APPSERVER) from google.appengine.api.search import query_parser from goo...
33.680556
80
0.703711
38
0.007835
0
0
0
0
0
0
1,883
0.388247
3a393e7c4f3f1d263e29f99079506e54bfc2ef8b
367
py
Python
scripts/hackathon/create_evaluable_CAG.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
25
2018-03-03T11:57:57.000Z
2022-01-16T21:19:54.000Z
scripts/hackathon/create_evaluable_CAG.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
385
2018-02-21T16:52:06.000Z
2022-02-17T07:44:56.000Z
scripts/hackathon/create_evaluable_CAG.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
19
2018-03-20T01:08:11.000Z
2021-09-29T01:04:49.000Z
import sys import pickle def create_evaluable_CAG(input, output): with open(input, "rb") as f: G = pickle.load(f) G.res = 200 G.assemble_transition_model_from_gradable_adjectives() G.sample_from_prior() with open(output, "wb") as f: pickle.dump(G, f) if __name__ == "__main__": ...
24.466667
58
0.6703
0
0
0
0
0
0
0
0
18
0.049046
3a3c0a988b2a4e559c53ae9edf07f389f8af9b71
774
py
Python
texture_dat_vulnerability/texture_gen.py
krystalgamer/spidey-tools
59648b5305e829718c22ec8fd91c795f7551d89d
[ "MIT" ]
15
2017-07-04T20:27:43.000Z
2022-03-21T21:30:55.000Z
texture_dat_vulnerability/texture_gen.py
krystalgamer/spidey-tools
59648b5305e829718c22ec8fd91c795f7551d89d
[ "MIT" ]
7
2017-12-04T11:13:07.000Z
2020-07-27T18:42:23.000Z
texture_dat_vulnerability/texture_gen.py
krystalgamer/spidey-tools
59648b5305e829718c22ec8fd91c795f7551d89d
[ "MIT" ]
5
2018-08-21T17:02:22.000Z
2022-03-21T21:18:46.000Z
byt = open("xor_key.bin", "rb").read() final = "\x00\x00\x00\x00\x6A\x00\x6A\x00\x68".encode() final = [e for e in final] final.append(0x26) final.append(0xFC) final.append(0x19) final.append(0x00) final.append(0x6A) final.append(0x00) final = [e for e in final] final.append(0xB8) final.append(0xC8) final.append(0x59) ...
20.368421
55
0.706718
0
0
0
0
0
0
0
0
96
0.124031
3a3c22b7737a192dfe1f9e9024ae59ca8fe3e8e0
3,721
py
Python
inclearn/convnet/my_resnet.py
romilbhardwaj/incremental_learning.pytorch
77097ef4dd4fc6b6c35d13ef66856d6f8a15598d
[ "MIT" ]
3
2019-07-01T14:43:05.000Z
2019-12-27T13:26:52.000Z
inclearn/convnet/my_resnet.py
rahulvigneswaran/incremental_learning.pytorch
786ecda7dbce5977894737d61cd5e3a30f61aac6
[ "MIT" ]
null
null
null
inclearn/convnet/my_resnet.py
rahulvigneswaran/incremental_learning.pytorch
786ecda7dbce5977894737d61cd5e3a30f61aac6
[ "MIT" ]
null
null
null
''' Incremental-Classifier Learning Authors : Khurram Javed, Muhammad Talha Paracha Maintainer : Khurram Javed Lab : TUKL-SEECS R&D Lab Email : [email protected] ''' import math import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import init class DownsampleStride(nn.Module)...
27.562963
108
0.58452
3,372
0.906208
0
0
0
0
0
0
454
0.12201
3a3d256dc2972ac84c9fb003786b75e70d7fb65f
406
py
Python
IO/__init__.py
killian-mahe/the_eternal_kingdom
82798246e4c5608b508487407c9d4154fd59f615
[ "MIT" ]
2
2020-03-27T15:01:22.000Z
2020-04-30T20:09:00.000Z
IO/__init__.py
killian-mahe/the_eternal_kingdom
82798246e4c5608b508487407c9d4154fd59f615
[ "MIT" ]
null
null
null
IO/__init__.py
killian-mahe/the_eternal_kingdom
82798246e4c5608b508487407c9d4154fd59f615
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ IO ~~~~~~~~~~~~~~~~~~~ A Python module for Input and Ouput interactions :copyright: (c) 2020 Killian Mahé :license: MIT, see LICENSE for more details. """ __title__ = 'io' __author__ = 'Killian Mahé' __license__ = 'MIT' __copyright__ = 'Copyright 2020 Killian Mahé' __version__ = '0.0.1'...
18.454545
48
0.687192
0
0
0
0
0
0
0
0
246
0.601467
3a3ec3da72c85292efaee127eb5ad56d111e5946
2,095
py
Python
src/nlplib/general/thread.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
1
2015-11-18T12:59:52.000Z
2015-11-18T12:59:52.000Z
src/nlplib/general/thread.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
null
null
null
src/nlplib/general/thread.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
null
null
null
''' Tools for dealing with multithreaded programs. ''' from concurrent.futures import ThreadPoolExecutor, as_completed from nlplib.general.iterate import chunked __all__ = ['simultaneously'] def simultaneously (function, iterable, max_workers=4) : ''' This runs the given function over the iterable concurrently...
32.734375
119
0.673031
55
0.026253
841
0.401432
0
0
0
0
638
0.304535
3a3fde2cf2ecbd1e9eca3699e4a52186eb8eddb3
781
py
Python
gazepattern/eyedetector/migrations/0005_experiment.py
AriRodriguezCruz/mcfgpr
c6f83f8e68bbab0054a7ea337feab276fc0790fc
[ "MIT" ]
null
null
null
gazepattern/eyedetector/migrations/0005_experiment.py
AriRodriguezCruz/mcfgpr
c6f83f8e68bbab0054a7ea337feab276fc0790fc
[ "MIT" ]
12
2020-06-05T22:56:39.000Z
2022-02-10T10:35:13.000Z
gazepattern/eyedetector/migrations/0005_experiment.py
AriRodriguezCruz/mcfgpr
c6f83f8e68bbab0054a7ea337feab276fc0790fc
[ "MIT" ]
1
2019-10-06T23:40:45.000Z
2019-10-06T23:40:45.000Z
# Generated by Django 2.2.5 on 2019-09-28 19:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('eyedetector', '0004_xypupilframe'), ] operations = [ migrations.CreateModel( name='Experiment',...
32.541667
142
0.618438
655
0.838668
0
0
0
0
0
0
157
0.201024
3a40757daf1bd20cc9fcc10f04000eea8ce07c26
108
py
Python
reversestring.py
fairoz-ahmed/Python_Practice
e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89
[ "MIT" ]
null
null
null
reversestring.py
fairoz-ahmed/Python_Practice
e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89
[ "MIT" ]
null
null
null
reversestring.py
fairoz-ahmed/Python_Practice
e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89
[ "MIT" ]
null
null
null
inp=input("Enter a string: ") rev=0 while (inp>0): dig=inp%10 rev=rev*10+dig inp=inp//10 print(rev)
15.428571
30
0.62963
0
0
0
0
0
0
0
0
18
0.166667
3a43287b070e57b4e1131e9830fa7848ee4816f3
1,424
py
Python
appdaemon/apps/exhaust/exhaust.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
3
2019-10-27T06:10:26.000Z
2020-07-21T01:27:11.000Z
appdaemon/apps/exhaust/exhaust.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
null
null
null
appdaemon/apps/exhaust/exhaust.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
null
null
null
import globals class Exhaust(globals.Hass): async def initialize(self): config = self.args["config"] self._input = config["input"] self._temperature = config["temperature"] self._min_temperature = float(config["min_temperature"]) self._max_temperature = float(config["max_te...
40.685714
85
0.614466
1,406
0.98736
0
0
0
0
1,361
0.955758
291
0.204354
3a434ceb156d2330f24628b42fbe27c084ea9e69
474
py
Python
meregistro/apps/registro/models/AnexoBaja.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/registro/models/AnexoBaja.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/registro/models/AnexoBaja.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from apps.registro.models.Anexo import Anexo from django.core.exceptions import ValidationError import datetime class AnexoBaja(models.Model): anexo = models.ForeignKey(Anexo) observaciones = models.CharField(max_length = 255) fecha_baja = models.DateFi...
24.947368
54
0.71519
306
0.64557
0
0
0
0
0
0
54
0.113924
3a4437265de98cfb27b3d5feaa4dc75634628d02
2,159
py
Python
test/test.py
fmaida/rosie
3906d11231aadaf9095f00fde8a73bc186403660
[ "MIT" ]
null
null
null
test/test.py
fmaida/rosie
3906d11231aadaf9095f00fde8a73bc186403660
[ "MIT" ]
null
null
null
test/test.py
fmaida/rosie
3906d11231aadaf9095f00fde8a73bc186403660
[ "MIT" ]
null
null
null
import os import unittest from rosie import Rosie from rosie import DocumentNotFound # from test import create # create(100) class RosieTest(unittest.TestCase): def setUp(self): basedir = os.path.join(os.path.expanduser("~"), "Documents", "Progetti", "HTML-CSS", "rosie-ou...
35.393443
89
0.593793
2,030
0.94025
0
0
0
0
0
0
728
0.337193
3a4470dbdf1585da275d005ec538924932b37f02
2,726
py
Python
server/tests/test_api.py
lachierussell/FadZmaq
deb89c35df05603552ce95627ac8400c6788fbcb
[ "BSD-2-Clause" ]
2
2019-09-02T06:56:46.000Z
2019-09-15T08:43:54.000Z
server/tests/test_api.py
lachierussell/FadZmaq
deb89c35df05603552ce95627ac8400c6788fbcb
[ "BSD-2-Clause" ]
11
2019-08-27T19:08:24.000Z
2019-10-18T01:45:54.000Z
server/tests/test_api.py
lachierussell/FadZmaq
deb89c35df05603552ce95627ac8400c6788fbcb
[ "BSD-2-Clause" ]
1
2019-10-25T05:42:48.000Z
2019-10-25T05:42:48.000Z
# @file # # FadZmaq Project # Professional Computing. Semester 2 2019 # # Copyright FadZmaq © 2019 All rights reserved. # @author Lachlan Russell [email protected] # @author Jordan Russell [email protected] import json # Tests that the server is up at all. def test_index(client): ...
29.311828
106
0.739178
0
0
0
0
0
0
0
0
1,120
0.410708
3a44e47df6767fcc400ca98f82e16bb29f7143a3
7,728
py
Python
HeifImagePlugin.py
uploadcare/heif-image-plugin
164230d08472403b709e2d0c78e8de0207e9312a
[ "MIT" ]
6
2021-12-09T16:57:55.000Z
2022-03-22T13:34:53.000Z
HeifImagePlugin.py
uploadcare/heif-image-plugin
164230d08472403b709e2d0c78e8de0207e9312a
[ "MIT" ]
5
2021-11-24T15:59:35.000Z
2022-03-11T16:29:53.000Z
HeifImagePlugin.py
uploadcare/heif-image-plugin
164230d08472403b709e2d0c78e8de0207e9312a
[ "MIT" ]
1
2022-02-07T11:59:30.000Z
2022-02-07T11:59:30.000Z
import inspect import subprocess import tempfile from copy import copy from weakref import WeakKeyDictionary import piexif import pyheif from cffi import FFI from PIL import Image, ImageFile from pyheif.error import HeifError ffi = FFI() _keep_refs = WeakKeyDictionary() pyheif_supports_transformations = ( 'trans...
34.044053
84
0.62073
2,208
0.285493
0
0
0
0
0
0
2,142
0.276959
3a459c0bdc8968f8dba096a55ee2a81baf847594
1,510
py
Python
examples/example.py
TannerBurns/cloc
67753bc6148779db7a2bfb07e4410f12fa3de593
[ "MIT" ]
2
2020-03-04T14:15:07.000Z
2020-03-06T19:32:42.000Z
examples/example.py
TannerBurns/cloc
67753bc6148779db7a2bfb07e4410f12fa3de593
[ "MIT" ]
null
null
null
examples/example.py
TannerBurns/cloc
67753bc6148779db7a2bfb07e4410f12fa3de593
[ "MIT" ]
null
null
null
from cloc import grp, cmd, opt, arg, mixins from cloc.types import Choices """Test Code ->""" @grp('cli') def cli(): """cli docstring""" pass @grp('nested') def group2(): """group 2""" pass @grp('permissions') def permission_group(): pass @cmd('test') @arg('arg1', type=int, help='positional ar...
22.878788
93
0.63245
597
0.395364
0
0
598
0.396026
0
0
418
0.276821
3a48d584ca2b00f4953c04fc6e6edaf62e4524b4
111
py
Python
lab001/load.py
DavidJRichards/fpga_101
9aa3e85211e47c63c29af36960fd767fe88f4d82
[ "BSD-2-Clause" ]
2
2021-08-15T20:19:11.000Z
2021-08-16T07:28:36.000Z
lab001/load.py
DavidJRichards/fpga_101
9aa3e85211e47c63c29af36960fd767fe88f4d82
[ "BSD-2-Clause" ]
null
null
null
lab001/load.py
DavidJRichards/fpga_101
9aa3e85211e47c63c29af36960fd767fe88f4d82
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import os os.system("openocd -f wukong.cfg -c 'init; pld load 0 build/top.bit; exit' ")
27.75
77
0.693694
0
0
0
0
0
0
0
0
88
0.792793
3a490f04946e54025d2f9929396fe594e1a1e7a5
3,916
py
Python
utils/comm_mqtt.py
peacemaker07/iot_making_for_raspberry_pi
d37d1256ea99794ff1dde4de0cadcbee1e5d6679
[ "MIT" ]
null
null
null
utils/comm_mqtt.py
peacemaker07/iot_making_for_raspberry_pi
d37d1256ea99794ff1dde4de0cadcbee1e5d6679
[ "MIT" ]
null
null
null
utils/comm_mqtt.py
peacemaker07/iot_making_for_raspberry_pi
d37d1256ea99794ff1dde4de0cadcbee1e5d6679
[ "MIT" ]
null
null
null
import json import time from utils.helper import RedisClient from paho.mqtt.client import MQTT_ERR_SUCCESS import paho.mqtt.client as mqtt from utils.date_time import TimeMeasure import tasks as tasks_mqtt from utils.message import MsgShadowGet, MsgShadowUpdate import logging logger = logging.getLogger() logger.setL...
24.628931
113
0.59142
4,009
0.920763
0
0
0
0
0
0
1,026
0.235645
3a4b65fb4152f97b12ef78ecb2e26b90659acced
255
py
Python
servo-test.py
dthompson-personal/pi-robot-shop
19ed4bc2727bc1681b7aed906fd95f58cc2f9fbe
[ "MIT" ]
1
2019-01-08T00:12:38.000Z
2019-01-08T00:12:38.000Z
servo-test.py
dthompson-personal/pi-robot-shop
19ed4bc2727bc1681b7aed906fd95f58cc2f9fbe
[ "MIT" ]
null
null
null
servo-test.py
dthompson-personal/pi-robot-shop
19ed4bc2727bc1681b7aed906fd95f58cc2f9fbe
[ "MIT" ]
null
null
null
# simple servo test for PCA9685 with HS422 from servo.servo import * from time import sleep pca = PCA9685() pca.setZero(0) sleep(2) for a in xrange(-67,67,1): pca.setAngle(0,a) sleep(0.05) for a in xrange(67,0,-1): pca.setAngle(0,a) sleep(0.05)
18.214286
42
0.686275
0
0
0
0
0
0
0
0
42
0.164706
3a4cbefcb62071a2d988ae8d1ba6c3ebd094217e
1,386
py
Python
lists_dictionary/Hello France.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
lists_dictionary/Hello France.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
lists_dictionary/Hello France.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
items = input().split("|") # items to buy budged = int(input()) profit = 0 profit_price_list = [] profit_list = [] profit_price = 0 for index in items: profit = 0 profit_price = 0 separator = index.split("->") if separator[0] == "Clothes": if not 0 < float(separator[1]) <= 50: co...
34.65
143
0.622655
0
0
0
0
0
0
0
0
332
0.239538
3a4f446c605bd2f4c43cf5fa28a98484cf88ee19
1,209
py
Python
lims/addressbook/views.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
12
2017-03-01T10:39:36.000Z
2022-01-04T06:17:19.000Z
lims/addressbook/views.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
29
2017-04-25T14:05:08.000Z
2021-06-21T14:41:53.000Z
lims/addressbook/views.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
4
2017-10-11T16:22:53.000Z
2021-02-23T15:45:21.000Z
from rest_framework import viewsets from rest_framework.serializers import ValidationError from .models import Address from .serializers import AddressSerializer from lims.permissions.permissions import IsAddressOwner, IsAddressOwnerFilter from lims.shared.mixins import AuditTrailViewMixin class AddressViewSet(Audi...
35.558824
82
0.718776
913
0.75517
0
0
0
0
0
0
341
0.282051
3a4f4e40f01a34131b926552b927be814c889324
7,875
py
Python
vision/crop_image_on_faces.py
timmahrt/toybox
1c063428ba85d26c8d9229b020503f6f57df2219
[ "MIT" ]
null
null
null
vision/crop_image_on_faces.py
timmahrt/toybox
1c063428ba85d26c8d9229b020503f6f57df2219
[ "MIT" ]
null
null
null
vision/crop_image_on_faces.py
timmahrt/toybox
1c063428ba85d26c8d9229b020503f6f57df2219
[ "MIT" ]
null
null
null
''' Created on Sep 8, 2018 Use autocropFaces() to crop out the material around faces in an image, where the faces are automatically detected. See the bottom for an example use script. Used this as a starting reference point: https://docs.opencv.org/3.3.0/d7/d8b/tutorial_py_face_detection.html @author: tmahrt ''' i...
30.761719
133
0.610159
781
0.099175
0
0
0
0
0
0
2,107
0.267556
3a5276bb48c6b9ee88490cc0b0a29ff3c27d3bba
2,920
py
Python
aiida_lsmo/workchains/multistage_ddec.py
ltalirz/aiida-lsmo
38a839af63686320ab070fada89241860e095b9e
[ "MIT" ]
null
null
null
aiida_lsmo/workchains/multistage_ddec.py
ltalirz/aiida-lsmo
38a839af63686320ab070fada89241860e095b9e
[ "MIT" ]
null
null
null
aiida_lsmo/workchains/multistage_ddec.py
ltalirz/aiida-lsmo
38a839af63686320ab070fada89241860e095b9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """MultistageDdecWorkChain workchain""" from __future__ import absolute_import from aiida.plugins import CalculationFactory, DataFactory, WorkflowFactory from aiida.common import AttributeDict from aiida.engine import WorkChain, ToContext # import sub-workchains Cp2kMultistageWorkChain = Work...
45.625
106
0.743151
2,266
0.776027
0
0
566
0.193836
0
0
999
0.342123
3a5286d6d3711424348d457dbffee994d0ef9214
2,997
py
Python
ambari-server/src/test/python/TestServerUtils.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
16
2018-05-24T10:28:24.000Z
2021-08-05T03:13:26.000Z
ambari-server/src/test/python/TestServerUtils.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
8
2020-06-18T17:31:19.000Z
2022-03-02T08:32:03.000Z
ambari-server/src/test/python/TestServerUtils.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
17
2018-07-06T08:57:00.000Z
2021-11-04T11:00:36.000Z
''' 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 not use this ...
38.922078
140
0.746079
1,078
0.359693
0
0
1,018
0.339673
0
0
1,301
0.434101
3a533adcbaa3e599ac553a4a4afcfe1138f8018d
828
py
Python
docs/md2ipynb.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
7
2021-07-20T21:46:28.000Z
2022-01-12T04:18:14.000Z
docs/md2ipynb.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
null
null
null
docs/md2ipynb.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
3
2021-08-28T06:01:27.000Z
2022-01-12T04:18:13.000Z
import sys import time from itertools import chain from pathlib import Path import nbformat import notedown def convert(path, timeout=40 * 60): with path.open() as in_file: notebook = notedown.MarkdownReader().read(in_file) start = time.time() notedown.run(notebook, timeout) print(f"=== {pa...
23.657143
78
0.669082
0
0
0
0
0
0
0
0
183
0.221014
3a54d0fda33a47ced2ba7f11cd011f05493c2833
40
py
Python
datasets/__init__.py
ML-Cai/LaneDetector
4e56faf45cf592812284b0bfee149bba4658fac9
[ "MIT" ]
null
null
null
datasets/__init__.py
ML-Cai/LaneDetector
4e56faf45cf592812284b0bfee149bba4658fac9
[ "MIT" ]
null
null
null
datasets/__init__.py
ML-Cai/LaneDetector
4e56faf45cf592812284b0bfee149bba4658fac9
[ "MIT" ]
null
null
null
from .tu_simple_lane import TusimpleLane
40
40
0.9
0
0
0
0
0
0
0
0
0
0
3a54d4dcf4ae3d1438f9199425e3106b7a85632f
147
py
Python
src/Python/Turtle/06B-circle.py
programmer1017/MathTech
5d7a9692d77a4a379824f691ae1cba3b0d2d4d59
[ "MIT" ]
null
null
null
src/Python/Turtle/06B-circle.py
programmer1017/MathTech
5d7a9692d77a4a379824f691ae1cba3b0d2d4d59
[ "MIT" ]
null
null
null
src/Python/Turtle/06B-circle.py
programmer1017/MathTech
5d7a9692d77a4a379824f691ae1cba3b0d2d4d59
[ "MIT" ]
null
null
null
import turtle as t n = 50 t. bgcolor("black") t. color("green") t. speed(0) for x in range(n): t. circle(80) t. lt(360/n)
12.25
24
0.52381
0
0
0
0
0
0
0
0
14
0.095238
3a5562123f0c3dc18461e7e454e66d71a8d213a8
29
py
Python
dashboard/dashboardmenu/__init__.py
PyFlux/PyFlux
8abae10261e276bf4942aed8d54ef3b5498754ca
[ "Apache-2.0" ]
null
null
null
dashboard/dashboardmenu/__init__.py
PyFlux/PyFlux
8abae10261e276bf4942aed8d54ef3b5498754ca
[ "Apache-2.0" ]
10
2020-03-24T17:09:56.000Z
2021-12-13T20:00:15.000Z
dashboard/dashboardmenu/__init__.py
PyFlux/PyFlux-Django-Html
8abae10261e276bf4942aed8d54ef3b5498754ca
[ "Apache-2.0" ]
null
null
null
from .dashboard_menu import *
29
29
0.827586
0
0
0
0
0
0
0
0
0
0
3a5679211ddca25bc7c34ee2ad4a2a92de9f338e
25,389
py
Python
kessk_web/device/views.py
yungs2017/kessk-switch
a56c73c756bb88e8ee38b7aa196fd58a4a802341
[ "BSD-3-Clause" ]
9
2019-09-30T04:24:39.000Z
2021-07-15T06:08:20.000Z
kessk_web/device/views.py
yungs2017/kessk-switch
a56c73c756bb88e8ee38b7aa196fd58a4a802341
[ "BSD-3-Clause" ]
6
2020-05-14T03:13:32.000Z
2022-02-10T10:23:46.000Z
kessk_web/device/views.py
yungs2017/kessk-switch
a56c73c756bb88e8ee38b7aa196fd58a4a802341
[ "BSD-3-Clause" ]
2
2020-12-19T07:12:01.000Z
2021-05-24T02:21:15.000Z
# The 3-Clause BSD License # Copyright (C) 2019, KessK, all rights reserved. # Copyright (C) 2019, Kison.Y, all rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met:Redistribution and use in source and binary ...
46.245902
194
0.65363
18,528
0.72965
0
0
4,159
0.163785
0
0
6,564
0.258496
3a577d7833ca35f6144ef72f7e8088a435f411df
691,455
py
Python
graph.py
Himan13799/Summer-Project
e4b15552b913db6787e0f4a9eda081f6d679fa53
[ "MIT" ]
null
null
null
graph.py
Himan13799/Summer-Project
e4b15552b913db6787e0f4a9eda081f6d679fa53
[ "MIT" ]
null
null
null
graph.py
Himan13799/Summer-Project
e4b15552b913db6787e0f4a9eda081f6d679fa53
[ "MIT" ]
null
null
null
from matplotlib import pyplot iters = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72...
24,694.821429
222,209
0.840666
0
0
0
0
0
0
0
0
176
0.000255
3a57cee2694fd1a4cdb5bf89b458ec74fa621810
403
py
Python
01Numpy/np_project.py
HuangCongQing/python-libraries
73f48e39d8d485ffdaee30443357a3fccce65d11
[ "MIT" ]
null
null
null
01Numpy/np_project.py
HuangCongQing/python-libraries
73f48e39d8d485ffdaee30443357a3fccce65d11
[ "MIT" ]
1
2019-03-09T12:28:09.000Z
2019-03-09T12:42:35.000Z
01Numpy/np_project.py
HuangCongQing/python-libraries
73f48e39d8d485ffdaee30443357a3fccce65d11
[ "MIT" ]
2
2020-01-23T17:47:45.000Z
2021-09-27T01:24:42.000Z
''' Description: numpy项目相关 Author: HCQ Company(School): UCAS Email: [email protected] Date: 2021-04-25 19:49:38 LastEditTime: 2021-04-25 19:57:55 FilePath: /python-libraries/01Numpy/np_project.py ''' import numpy as np # 通过下标列表获取np数据 # A = [[ 3 4 5 6] # [ 7 8 9 10] # [11 12 13 14]] A = np.arange(3,15).reshape((...
20.15
49
0.645161
0
0
0
0
0
0
0
0
316
0.733179
3a58934b09a58180726934bc6855a80413fbeb35
242
py
Python
DQM/SiStripMonitorPedestals/python/SiStripMonitorQuality_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQM/SiStripMonitorPedestals/python/SiStripMonitorQuality_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQM/SiStripMonitorPedestals/python/SiStripMonitorQuality_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms QualityMon = cms.EDAnalyzer("SiStripMonitorQuality", StripQualityLabel = cms.string('test1'), OutputMEsInRootFile = cms.bool(False), OutputFileName = cms.string('SiStripQuality.root') )
24.2
54
0.752066
0
0
0
0
0
0
0
0
51
0.210744
3a59369a6dfe1771e7fc9c73078364e7bf16ad20
1,036
py
Python
study_roadmaps/python_sample_examples/gluon/4_resume_training/train.py
Shreyashwaghe/monk_v1
4ee4d9483e8ffac9b73a41f3c378e5abf5fc799b
[ "Apache-2.0" ]
7
2020-07-26T08:37:29.000Z
2020-10-30T10:23:11.000Z
study_roadmaps/python_sample_examples/gluon/4_resume_training/train.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
9
2020-01-28T21:40:39.000Z
2022-02-10T01:24:06.000Z
study_roadmaps/python_sample_examples/gluon/4_resume_training/train.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
1
2020-10-07T12:57:44.000Z
2020-10-07T12:57:44.000Z
import os import sys sys.path.append("../../../monk/"); import psutil from gluon_prototype import prototype ########################################################################################################################## gtf = prototype(verbose=1); gtf.Prototype("sample-project-1", "sample-experiment-1");...
33.419355
122
0.397683
0
0
0
0
0
0
0
0
698
0.673745
3a5bc5539f00418441249df40d6f8b47af45d0da
1,087
py
Python
examples/boilerplate/render/main.py
Sakuk3/DefCurse
22c7de689c2d4ec859ca70ecbe0d014034adfadc
[ "MIT" ]
null
null
null
examples/boilerplate/render/main.py
Sakuk3/DefCurse
22c7de689c2d4ec859ca70ecbe0d014034adfadc
[ "MIT" ]
null
null
null
examples/boilerplate/render/main.py
Sakuk3/DefCurse
22c7de689c2d4ec859ca70ecbe0d014034adfadc
[ "MIT" ]
null
null
null
import models from DefCurse import widgets from DefCurse import style from DefCurse import area def render(model: models.Model, rows: int, cols: int): areas = [ area.Area( int(rows/2), int(cols/2), ), area.Area( int(rows/2), int(cols/2), ...
19.070175
54
0.420423
0
0
0
0
0
0
0
0
61
0.056118
3a5bd10b62878bb2d6b8444b0e27578b7d011c76
579
py
Python
api/urls.py
cooleo/py_feeds_services
1d6ccb3695e091d001714aef8af210d6509f03b6
[ "Apache-2.0" ]
null
null
null
api/urls.py
cooleo/py_feeds_services
1d6ccb3695e091d001714aef8af210d6509f03b6
[ "Apache-2.0" ]
null
null
null
api/urls.py
cooleo/py_feeds_services
1d6ccb3695e091d001714aef8af210d6509f03b6
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url, include from rest_framework import routers from api.views import UserViewSet, GroupViewSet,FeedViewSet router = routers.DefaultRouter() router.register(r'users', UserViewSet) router.register(r'groups', GroupViewSet) router.register(r'feeds', FeedViewSet) router.register(r'category', ...
34.058824
82
0.772021
0
0
0
0
0
0
0
0
196
0.338515
28a42a406aff16efea2049670fcc9c1d85827d10
1,512
py
Python
3rdparty/cb58ref/setup.py
jgeofil/avax-python
b09e78e3d7e1c35db5ae42e3918e960e775f2d45
[ "MIT" ]
25
2021-05-16T23:43:47.000Z
2022-03-29T03:08:30.000Z
setup.py
moreati/cb58ref
c9827f2cdd2eb55c52bc5de91ade573eab9de827
[ "MIT" ]
2
2021-04-26T11:43:22.000Z
2021-06-04T07:55:22.000Z
3rdparty/cb58ref/setup.py
jgeofil/avax-python
b09e78e3d7e1c35db5ae42e3918e960e775f2d45
[ "MIT" ]
4
2021-08-06T10:55:58.000Z
2022-03-29T08:03:05.000Z
#!/usr/bin/env python3 from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ ] setup_requirements = [ 'pytest-runner', ] test_requirements = [ 'pytest>...
26.526316
72
0.630291
0
0
0
0
0
0
0
0
711
0.470238
28a484d541dac8a37bc08470e582fe2e7c7e91cc
1,009
py
Python
prepare_ce_data.py
akio-kobayashi/lc_lstm
c5367518ebf56d13a29794d90061fdfb06677e3e
[ "Apache-2.0" ]
null
null
null
prepare_ce_data.py
akio-kobayashi/lc_lstm
c5367518ebf56d13a29794d90061fdfb06677e3e
[ "Apache-2.0" ]
null
null
null
prepare_ce_data.py
akio-kobayashi/lc_lstm
c5367518ebf56d13a29794d90061fdfb06677e3e
[ "Apache-2.0" ]
null
null
null
import argparse import os import sys import subprocess import time import numpy as np import random import h5py def main(): parser = argparse.ArgumentParser() parser.add_argument('--data', type=str, required=True, help='training data') parser.add_argument('--align', type=str, required=True, help='alignmen...
30.575758
82
0.581764
0
0
0
0
0
0
0
0
120
0.11893
28a4cf21a3fc1317aad1717922e9f9686f1d9232
409
py
Python
Dataset/Leetcode/train/14/127.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/14/127.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/14/127.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, strs: List[str]) -> str: if not strs: return '' s_min, s_max = min(strs), max(strs) for i, c in enumerate(s_min): if c != s_max[i]: return s_min[:i] return s_min undefined for (i = 0; i < document.getElementsByTagName("code"...
31.461538
139
0.574572
255
0.623472
0
0
0
0
0
0
14
0.03423
28a65fd5ccf17c9151ab25e19828fabbbeef343e
627
py
Python
day04/aoc04_1.py
Dbof/adventofcode17
68a390a8601c3421340fa2a59b0497aa76e5f580
[ "MIT" ]
null
null
null
day04/aoc04_1.py
Dbof/adventofcode17
68a390a8601c3421340fa2a59b0497aa76e5f580
[ "MIT" ]
null
null
null
day04/aoc04_1.py
Dbof/adventofcode17
68a390a8601c3421340fa2a59b0497aa76e5f580
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys def has_duplicate(phrase): seen = set() words = phrase.split(' ') for w in words: if w in seen: return True seen.add(w) return False def check(text): count = 0 phrases = text.split('\n') for p in phr...
17.416667
47
0.524721
0
0
0
0
0
0
0
0
88
0.140351
28a7314d913c35ef3d7bae8ca492ed8ba470e621
4,707
py
Python
setup.py
danmills0/pytket
4ac62896aa61c11ae1077246ab1931d0a8f9a9ac
[ "Apache-2.0" ]
null
null
null
setup.py
danmills0/pytket
4ac62896aa61c11ae1077246ab1931d0a8f9a9ac
[ "Apache-2.0" ]
null
null
null
setup.py
danmills0/pytket
4ac62896aa61c11ae1077246ab1931d0a8f9a9ac
[ "Apache-2.0" ]
null
null
null
import setuptools from setuptools import setup, Extension, find_packages from setuptools.command.build_ext import build_ext import sys import setuptools import os import re import platform import subprocess # from pathlib import Path from os.path import expanduser, join from distutils.version import LooseVersion impor...
34.866667
98
0.607818
2,133
0.453155
0
0
0
0
0
0
1,628
0.345868
28a787c32c92bd4df60cb4b529054c0e8dbc1dcb
4,156
py
Python
Competitive Programming/Design Patterns/Behavioural/Command.py
shreejitverma/GeeksforGeeks
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-18T05:14:28.000Z
2022-03-08T07:00:08.000Z
Competitive Programming/Design Patterns/Behavioural/Command.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
6
2022-01-13T04:31:04.000Z
2022-03-12T01:06:16.000Z
Competitive Programming/Design Patterns/Behavioural/Command.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-14T19:53:53.000Z
2022-02-18T05:14:30.000Z
''' https://www.geeksforgeeks.org/command-method-python-design-patterns/ Command Method is Behavioral Design Pattern that encapsulates a request as an object, thereby allowing for the parameterization of clients with different requests and the queuing or logging of requests. Parameterizing other objects with different ...
39.580952
569
0.762512
699
0.166587
0
0
0
0
0
0
3,454
0.823165
28a8e0d56673ed011c58970fc2cc9375a3c70f66
18,099
py
Python
u24_lymphocyte/third_party/treeano/sandbox/nodes/resnet.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/resnet.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/resnet.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import functools import numpy as np import theano import theano.tensor as T import treeano import treeano.nodes as tn import canopy from treeano.sandbox.nodes import batch_normalization as bn fX = theano.config.floatX @treeano.register_node("strided_downsample") class StridedDownsampleNode(treeano.NodeImpl): hy...
37.70625
82
0.477485
4,656
0.257252
0
0
4,854
0.268192
0
0
2,184
0.12067
28a941e336c661de4e3bc64a26dac8f5e03e398f
58
py
Python
Python/Tests/TestData/AddImport/ImportFunctionFromExistingFromImportAsName.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
404
2019-05-07T02:21:57.000Z
2022-03-31T17:03:04.000Z
Python/Tests/TestData/AddImport/ImportFunctionFromExistingFromImportAsName.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
1,672
2019-05-06T21:09:38.000Z
2022-03-31T23:16:04.000Z
Python/Tests/TestData/AddImport/ImportFunctionFromExistingFromImportAsName.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
186
2019-05-13T03:17:37.000Z
2022-03-31T16:24:05.000Z
from test_module import module_func_2 as oar module_func()
29
44
0.862069
0
0
0
0
0
0
0
0
0
0
28acfde090e21839e1960e00b53a1c31a3399db4
6,857
py
Python
autogalaxy/mock/mock.py
caoxiaoyue/PyAutoGalaxy
ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05
[ "MIT" ]
null
null
null
autogalaxy/mock/mock.py
caoxiaoyue/PyAutoGalaxy
ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05
[ "MIT" ]
null
null
null
autogalaxy/mock/mock.py
caoxiaoyue/PyAutoGalaxy
ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05
[ "MIT" ]
null
null
null
from astropy import constants import math import autofit as af import autoarray as aa import autogalaxy as ag from autoarray.mock.mock import * from autofit.mock.mock import * from autofit.mock import mock as af_m # MockProfiles # class MockLightProfile(ag.lp.LightProfile): def __init__( ...
27.210317
120
0.613825
6,498
0.947645
0
0
811
0.118273
0
0
602
0.087793
28aedc5062be8fe00618f3317176a7524c4110f1
9,441
py
Python
classification/active_learning_scatterplots_annotated_tresh.py
gbosetti/ca
3f37edc4b8f69f61d02b881242522f6fa15e2695
[ "MIT" ]
null
null
null
classification/active_learning_scatterplots_annotated_tresh.py
gbosetti/ca
3f37edc4b8f69f61d02b881242522f6fa15e2695
[ "MIT" ]
4
2021-06-08T22:30:03.000Z
2022-03-12T00:48:52.000Z
classification/active_learning_scatterplots_annotated_tresh.py
gbosetti/cati
3f37edc4b8f69f61d02b881242522f6fa15e2695
[ "MIT" ]
null
null
null
import json import ast import plotly.plotly as py import plotly.graph_objs as go import plotly.io as pio import os import numpy as np import plotly plotly.io.orca.config.executable = '/home/gabi/dev/miniconda3/bin/orca' #May be useful in Ubuntu #PARAMS logs_path = "C:\\Users\\gbosetti\\Desktop\\test\\logs" output_pat...
37.169291
247
0.565724
0
0
0
0
0
0
0
0
2,185
0.231437
28af15da48e1b6752e688cda3c6f51c968c30322
285
py
Python
routes/routes.py
GDGVIT/MyFFCS2.0
685bb7b61c3435dfc1e76ee34d3c234d8973b31a
[ "Apache-2.0" ]
6
2016-07-01T15:23:48.000Z
2017-04-29T10:44:01.000Z
routes/routes.py
GDGVIT/MyFFCS2.0
685bb7b61c3435dfc1e76ee34d3c234d8973b31a
[ "Apache-2.0" ]
null
null
null
routes/routes.py
GDGVIT/MyFFCS2.0
685bb7b61c3435dfc1e76ee34d3c234d8973b31a
[ "Apache-2.0" ]
3
2016-07-03T02:47:12.000Z
2020-06-30T12:40:47.000Z
from controllers import * route = [ ( r"/", home.homeHandler ), ( r"/auth/register", auth.registerHandler ), ( r"/logout", logout.logoutHandler ), ( r"/home", timetable.timeTableHandler ), ( r"/auth/login", auth.loginHandler ) ]
11.4
29
0.547368
0
0
0
0
0
0
0
0
53
0.185965
28af329ba68cee9eb582dc06cead32af4b80ed8d
1,935
py
Python
tests/tests.py
csirac2/keepass_guesser
922c6972a6577140cd327a15543fe49dd70611cb
[ "BSD-2-Clause" ]
null
null
null
tests/tests.py
csirac2/keepass_guesser
922c6972a6577140cd327a15543fe49dd70611cb
[ "BSD-2-Clause" ]
null
null
null
tests/tests.py
csirac2/keepass_guesser
922c6972a6577140cd327a15543fe49dd70611cb
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import libkeepass import keepass_guesser # file : attempts from file expected before success or failure guess_files = {'tests/data/guesslist0': {'attempts': 3, 'guessphrase': None}, 'tests/data/guesslist1': {'attempts': 1, 'guessphrase': 'test'}, 't...
41.170213
79
0.612403
1,292
0.6677
0
0
0
0
0
0
592
0.305943
28b0de3981830a9c1ce4101e37d4ea75cec7989b
1,173
py
Python
dataloader.py
AmanPriyanshu/Federated-Neural-Collaborative-Filtering
44dd31cec644859faa44adf54ace3981d8be5bda
[ "MIT" ]
null
null
null
dataloader.py
AmanPriyanshu/Federated-Neural-Collaborative-Filtering
44dd31cec644859faa44adf54ace3981d8be5bda
[ "MIT" ]
null
null
null
dataloader.py
AmanPriyanshu/Federated-Neural-Collaborative-Filtering
44dd31cec644859faa44adf54ace3981d8be5bda
[ "MIT" ]
1
2022-03-08T14:28:00.000Z
2022-03-08T14:28:00.000Z
import numpy as np import os class MovielensDatasetLoader: def __init__(self, filename='./ml-1m/ratings.dat', npy_file='./ml-1m/ratings.npy', num_movies=None, num_users=None): self.filename = filename self.npy_file = npy_file self.rating_tuples = self.read_ratings() if num_users is None: self.num_users = n...
30.868421
117
0.719523
1,049
0.894288
0
0
0
0
0
0
59
0.050298
28b1ad0e46f2ba4d47dfc0ef0bd3f82478359754
1,785
py
Python
tests/test_command.py
roskakori/sanpo
909ea663a9a4f12495decb828e2256e45a9cee73
[ "BSD-3-Clause" ]
null
null
null
tests/test_command.py
roskakori/sanpo
909ea663a9a4f12495decb828e2256e45a9cee73
[ "BSD-3-Clause" ]
2
2021-09-07T17:32:24.000Z
2022-01-13T20:44:41.000Z
tests/test_command.py
roskakori/sanpo
909ea663a9a4f12495decb828e2256e45a9cee73
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021, Thomas Aglassinger # All rights reserved. Distributed under the BSD 3-Clause License. from sanpo.command import main_without_logging_setup from ._common import PoFileTest class CommandTest(PoFileTest): def test_can_show_help(self): with self.assertRaises(SystemExit): mai...
42.5
89
0.733894
1,588
0.889636
0
0
0
0
0
0
202
0.113165
28b25075889c486e4fe8f7d95019574b35bd45f1
3,371
py
Python
tests/test/test_sign_msgpack_keyreg.py
salvatorecorvaglia/ledger-app-algorand
549b863af169b3ce5c7721f2e6a7fca5b4bd05fb
[ "MIT" ]
16
2019-06-12T11:46:12.000Z
2022-01-30T16:28:42.000Z
tests/test/test_sign_msgpack_keyreg.py
salvatorecorvaglia/ledger-app-algorand
549b863af169b3ce5c7721f2e6a7fca5b4bd05fb
[ "MIT" ]
42
2019-07-26T13:31:03.000Z
2022-03-18T15:18:52.000Z
tests/test/test_sign_msgpack_keyreg.py
salvatorecorvaglia/ledger-app-algorand
549b863af169b3ce5c7721f2e6a7fca5b4bd05fb
[ "MIT" ]
38
2019-04-08T14:16:22.000Z
2022-03-18T06:42:29.000Z
import pytest import logging import struct import base64 import msgpack import nacl.signing import algosdk from . import txn_utils from . import ui_interaction from . import speculos @pytest.fixture def keyreg_txn(): b64votekey = "eXq34wzh2UIxCZaI1leALKyAvSz/+XOe0wqdHagM+bw=" votekey_addr = algosdk.encodi...
33.04902
103
0.660931
0
0
0
0
764
0.226639
0
0
680
0.201721
28b391732090366f571ee26a22266dbf07b53e53
613
py
Python
VideoSearchEngine/page_rank.py
AkshatSh/VideoSearchEngine
57f64b241b8a7bbc377ce7826e1206f679f41def
[ "MIT" ]
49
2018-05-22T09:06:18.000Z
2022-02-26T10:03:43.000Z
VideoSearchEngine/page_rank.py
AkshatSh/VideoSearchEngine
57f64b241b8a7bbc377ce7826e1206f679f41def
[ "MIT" ]
17
2018-05-18T21:14:36.000Z
2019-06-06T09:17:18.000Z
VideoSearchEngine/page_rank.py
AkshatSh/VideoSearchEngine
57f64b241b8a7bbc377ce7826e1206f679f41def
[ "MIT" ]
18
2018-06-06T22:14:26.000Z
2021-11-23T08:59:31.000Z
from sklearn.feature_extraction.text import TfidfVectorizer from database_utils import get_all_data, remove_summary from collections import OrderedDict import operator def rank_pages(summaries, query): vect = TfidfVectorizer() result = {} for video in summaries: tfidf = vect.fit_transform([video...
26.652174
88
0.681892
0
0
0
0
0
0
0
0
44
0.071778
28b3adff40823a3f0d9ff8ca30f874e0ce8a4a4f
3,112
py
Python
generated-libraries/python/netapp/net/ifgrp_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/net/ifgrp_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/net/ifgrp_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.netapp_object import NetAppObject class IfgrpInfo(NetAppObject): """ ifgrp name, type, and components. """ _interface_name = None @property def interface_name(self): """ The interface name. """ return self._interface_name @interface_name.sett...
27.539823
96
0.547237
3,064
0.984576
0
0
2,114
0.679306
0
0
977
0.313946
28b3ccf3dc2b42165b93b678794b29f7f7e89aa1
545
py
Python
calchas_datamodel/idExpression.py
s-i-newton/calchas-datamodel
eda5e2de37849d6d4766cd680bc75fec8e923f85
[ "Apache-2.0" ]
null
null
null
calchas_datamodel/idExpression.py
s-i-newton/calchas-datamodel
eda5e2de37849d6d4766cd680bc75fec8e923f85
[ "Apache-2.0" ]
2
2017-06-01T14:14:09.000Z
2017-06-20T10:01:13.000Z
calchas_datamodel/idExpression.py
s-i-newton/calchas
13472f837605eff26010a28af9981ba8750e9af9
[ "Apache-2.0" ]
null
null
null
from .abstractExpression import AbstractExpression from typing import TypeVar T = TypeVar('T') class IdExpression(AbstractExpression): def __init__(self, id_: T): self.id = id_ def __repr__(self) -> str: return str(self.id) def __eq__(self, other) -> bool: if self is other: ...
20.961538
50
0.60367
446
0.818349
0
0
0
0
0
0
3
0.005505
28b3f20587976d38da80b634aca51223e642e85b
4,679
py
Python
nrpcalc/base/utils.py
TimothyStiles/nrpcalc
42ab25e929d472c2e808dd3bec6430bc80b42a06
[ "MIT" ]
6
2020-07-27T17:59:19.000Z
2022-03-18T03:33:17.000Z
nrpcalc/base/utils.py
TimothyStiles/nrpcalc
42ab25e929d472c2e808dd3bec6430bc80b42a06
[ "MIT" ]
3
2020-07-17T23:10:36.000Z
2021-09-10T05:19:47.000Z
nrpcalc/base/utils.py
TimothyStiles/nrpcalc
42ab25e929d472c2e808dd3bec6430bc80b42a06
[ "MIT" ]
3
2020-07-27T17:59:22.000Z
2021-02-08T15:47:28.000Z
import os import sys from typing import Tuple import pkg_resources from Bio import SeqIO import RNA import numpy as np complement_table = str.maketrans('ATGCU', 'TACGA') def stream_fasta_seq_list(fasta_filename): with open(fasta_filename, "rU") as handle: for record in SeqIO.parse(handle, "fasta"): ...
29.613924
97
0.596281
3,308
0.706989
423
0.090404
0
0
0
0
834
0.178243
28b511c9bffc7778b947732b16ddfa8179fa7a1e
2,288
py
Python
src/tab_list_analyse.py
GwenIves/Scripts
d2ec5ae0df25f16d5c1fb766767ec358de7d2f97
[ "MIT" ]
null
null
null
src/tab_list_analyse.py
GwenIves/Scripts
d2ec5ae0df25f16d5c1fb766767ec358de7d2f97
[ "MIT" ]
null
null
null
src/tab_list_analyse.py
GwenIves/Scripts
d2ec5ae0df25f16d5c1fb766767ec358de7d2f97
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Analyses a hierarchical tab-indented list file # and prints out subsection sizes on a requested nesting level # Subsections with the same name in different subtrees # are treated as continutaions of a single section # The script accepts two command line parameters: # file name # indent...
25.142857
79
0.488636
0
0
0
0
0
0
0
0
490
0.214161
28b9d3223ab59c39762f3f62adf5a1151d5a2567
1,357
py
Python
main.py
cortial-manon/vrep-robot-helper
8bae73c78d537c6fda383261f25d52a4df4d1787
[ "MIT" ]
null
null
null
main.py
cortial-manon/vrep-robot-helper
8bae73c78d537c6fda383261f25d52a4df4d1787
[ "MIT" ]
null
null
null
main.py
cortial-manon/vrep-robot-helper
8bae73c78d537c6fda383261f25d52a4df4d1787
[ "MIT" ]
null
null
null
#based on the code from https://github.com/studywolf/blog/blob/master/VREP/two_link_arm/vrep_twolink_controller.py #explained at https://studywolf.wordpress.com/2016/04/18/using-vrep-for-simulation-of-force-controlled-models/ import numpy as np from VrepWorld import VrepWorld #create the world object world = Vrep...
23.807018
114
0.719971
0
0
0
0
0
0
0
0
678
0.499632
28babc6c1eea36a0a66fd271330d1972461ccef9
15,902
py
Python
ROAR/control_module/mpc_full_controller.py
cmcniel79/ROAR
cd94ec637e6e5df0eaac3d30ece00a2de74730ee
[ "Apache-2.0" ]
null
null
null
ROAR/control_module/mpc_full_controller.py
cmcniel79/ROAR
cd94ec637e6e5df0eaac3d30ece00a2de74730ee
[ "Apache-2.0" ]
null
null
null
ROAR/control_module/mpc_full_controller.py
cmcniel79/ROAR
cd94ec637e6e5df0eaac3d30ece00a2de74730ee
[ "Apache-2.0" ]
null
null
null
from ROAR.control_module.controller import Controller from ROAR.utilities_module.vehicle_models import VehicleControl, Vehicle from ROAR.utilities_module.data_structures_models import Transform, Location import numpy as np import logging from ROAR.agent_module.agent import Agent from typing import Tuple import json fro...
43.807163
149
0.616338
15,481
0.973525
0
0
0
0
0
0
6,469
0.406804
28bb50413a26c30eabe9689d01ddc125b69d1e97
2,268
py
Python
eahub/tests/test_localgroups_models.py
LisaJD/eahub.org
1fd69f9dea5178c4da8923c3497e6326f359d0b5
[ "MIT" ]
null
null
null
eahub/tests/test_localgroups_models.py
LisaJD/eahub.org
1fd69f9dea5178c4da8923c3497e6326f359d0b5
[ "MIT" ]
null
null
null
eahub/tests/test_localgroups_models.py
LisaJD/eahub.org
1fd69f9dea5178c4da8923c3497e6326f359d0b5
[ "MIT" ]
null
null
null
from django.test import TestCase from eahub.base.models import User from eahub.localgroups.models import LocalGroup, Organisership from eahub.profiles.models import Profile class LocalGroupTestCase(TestCase): def test_organisers_names(self): local_group = LocalGroup() local_group.save() ...
26.682353
77
0.581129
2,091
0.921958
0
0
0
0
0
0
354
0.156085
28bc71174a0ebb7a7a5aaf7b6164a30526e4ee50
2,204
py
Python
delLotsOfObjects.py
microtodd/setAllS3ACLs
5ddbde173a84d5fcc6d9a6146e9acbc5af057c1f
[ "MIT" ]
null
null
null
delLotsOfObjects.py
microtodd/setAllS3ACLs
5ddbde173a84d5fcc6d9a6146e9acbc5af057c1f
[ "MIT" ]
null
null
null
delLotsOfObjects.py
microtodd/setAllS3ACLs
5ddbde173a84d5fcc6d9a6146e9acbc5af057c1f
[ "MIT" ]
null
null
null
import boto3 import sys import getopt import datetime import pytz # Globals BucketName = '' FolderName = '' HowManyDays = None ProfileName = 'default' Env = 'us-east-1' Delete = False # Parse CL opts opts, args = getopt.getopt(sys.argv[1:],'he:b:p:f:k:d') for opt, arg in opts: if opt == '-h': print '-b bu...
28.623377
138
0.624773
0
0
0
0
0
0
0
0
474
0.215064
28bd72b293eddba770453dd33bd72e6fed937e89
5,769
py
Python
cloudmosh/components/depth.py
rmmilewi/cloudmosh
a6387296ad5591f35a5bbfe0d20c5865eb98d07c
[ "MIT" ]
null
null
null
cloudmosh/components/depth.py
rmmilewi/cloudmosh
a6387296ad5591f35a5bbfe0d20c5865eb98d07c
[ "MIT" ]
null
null
null
cloudmosh/components/depth.py
rmmilewi/cloudmosh
a6387296ad5591f35a5bbfe0d20c5865eb98d07c
[ "MIT" ]
null
null
null
from cloudmosh.components.base import CloudMoshComponent import os import numpy as np # Keras / TensorFlow os.environ['TF_CPP_MIN_LOG_LEVEL'] = '5' from keras.models import load_model import skimage.io from skimage.transform import resize from keras.engine.topology import Layer, InputSpec import keras.utils.conv_utils ...
38.97973
121
0.691454
5,316
0.921477
1,397
0.242156
0
0
0
0
1,605
0.278211
28bea69d4e6a6b28445e83be9513a3aebdc5d979
9,316
py
Python
diagnostics/model_test/verify_model.py
ami-GS/ngraph-tf
b5ac340f43bf70879ef6c180f69aac8241152c1e
[ "Apache-2.0" ]
null
null
null
diagnostics/model_test/verify_model.py
ami-GS/ngraph-tf
b5ac340f43bf70879ef6c180f69aac8241152c1e
[ "Apache-2.0" ]
null
null
null
diagnostics/model_test/verify_model.py
ami-GS/ngraph-tf
b5ac340f43bf70879ef6c180f69aac8241152c1e
[ "Apache-2.0" ]
null
null
null
# ============================================================================== # Copyright 2018 Intel Corporation # # 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...
36.677165
130
0.659833
0
0
0
0
0
0
0
0
3,469
0.37237
28c1381713a165eb6c2b66d9b1f077cea5ce1674
5,038
py
Python
ppf/core/swap_rate.py
iamaris/ppf
60f798eaea69e7dec2b8c422ceb684219b1645d0
[ "MIT" ]
2
2019-10-26T17:18:41.000Z
2020-06-05T11:26:10.000Z
ppf/core/swap_rate.py
iamaris/ppf
60f798eaea69e7dec2b8c422ceb684219b1645d0
[ "MIT" ]
null
null
null
ppf/core/swap_rate.py
iamaris/ppf
60f798eaea69e7dec2b8c422ceb684219b1645d0
[ "MIT" ]
5
2019-01-24T16:44:07.000Z
2020-09-14T06:56:55.000Z
from fixing import * from observable import * from generate_flows import * from generate_observables import * class swap_rate(observable): def __init__(self , attributes , flow_id , reset_id , reset_date , reset_ccy , proj_start_date ...
38.458015
76
0.604803
4,835
0.959706
0
0
0
0
0
0
326
0.064708
28c180845ca339e6f881e886240beaf93a1ed892
10,953
py
Python
main.py
Tominous/Mario-1
28709143019d40cfeaa53737a01270ce14f99858
[ "Unlicense" ]
1
2020-06-09T10:43:08.000Z
2020-06-09T10:43:08.000Z
main.py
Tominous/Mario-1
28709143019d40cfeaa53737a01270ce14f99858
[ "Unlicense" ]
null
null
null
main.py
Tominous/Mario-1
28709143019d40cfeaa53737a01270ce14f99858
[ "Unlicense" ]
null
null
null
import discord from discord.ext import commands import os import random from server import run_server #token token = os.environ.get("token") #prefisso bot = commands.Bot(command_prefix="m!", description="Nada.") bot.remove_command('help') #status @bot.event async def on_ready(): print("Sono online come", bot.use...
37.382253
279
0.601936
0
0
0
0
10,623
0.968987
10,079
0.919365
3,794
0.346073
28c25c0dfe99e2a00d332afa08326f2e3d25b1e8
19,506
py
Python
helpers.py
agartland/HLAPredCache
ebacc706df581a71ba3812282013263939cfbb61
[ "MIT" ]
null
null
null
helpers.py
agartland/HLAPredCache
ebacc706df581a71ba3812282013263939cfbb61
[ "MIT" ]
null
null
null
helpers.py
agartland/HLAPredCache
ebacc706df581a71ba3812282013263939cfbb61
[ "MIT" ]
null
null
null
import numpy as np import string import re __all__ = ['BADAA', 'AALPHABET', 'convertHLAAsterisk', 'isvalidmer', 'isvalidHLA', 'rankEpitopes', 'rankKmers', 'rankMers', 'getIC50', 'getMers', 'getMerInd...
32.838384
110
0.584589
0
0
1,285
0.065877
0
0
0
0
11,475
0.588281
28c5429706a9cf44dbc351c293ef49e987982fbe
5,697
py
Python
simfempy/examples/incompflow.py
anairabeze/simfempy
144362956263cb9b81f4bade15664d9cc640f93a
[ "MIT" ]
null
null
null
simfempy/examples/incompflow.py
anairabeze/simfempy
144362956263cb9b81f4bade15664d9cc640f93a
[ "MIT" ]
null
null
null
simfempy/examples/incompflow.py
anairabeze/simfempy
144362956263cb9b81f4bade15664d9cc640f93a
[ "MIT" ]
null
null
null
assert __name__ == '__main__' # in shell import os, sys simfempypath = os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir, os.path.pardir, os.path.pardir,'simfempy')) sys.path.insert(0,simfempypath) import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import pygm...
44.507813
129
0.584694
0
0
0
0
0
0
0
0
1,976
0.346849
28c6551ca38cd065b2ced67935d3a361ea90ce26
11,816
py
Python
polecat/db/sql/expression/where.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
4
2019-08-10T12:56:12.000Z
2020-01-21T09:51:20.000Z
polecat/db/sql/expression/where.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
71
2019-04-09T05:39:21.000Z
2020-05-16T23:09:24.000Z
polecat/db/sql/expression/where.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
null
null
null
import re import ujson from psycopg2.sql import SQL, Composable, Identifier from polecat.utils import to_bool, to_tuple from ...schema.column import ReverseColumn from .expression import Expression class DiscardValue: pass class Where: FILTER_PROG = re.compile(r'^([a-zA-Z][a-zA-Z0-9_]+(?:__[a-zA-Z][a-zA-Z...
30.142857
110
0.565166
10,967
0.928148
0
0
0
0
0
0
1,768
0.149628
28c7010fc293f500f9e2e5f809119706506c2ca1
1,479
py
Python
autobahn/protocols/ws_client_protocol.py
olegpshenichniy/uvloop-dyno-track
b90e369a12077d390bd74aab833c2c562c5a2567
[ "MIT" ]
2
2017-09-12T10:32:48.000Z
2017-09-27T14:47:37.000Z
autobahn/protocols/ws_client_protocol.py
olegpshenichniy/uvloop-dyno-track
b90e369a12077d390bd74aab833c2c562c5a2567
[ "MIT" ]
null
null
null
autobahn/protocols/ws_client_protocol.py
olegpshenichniy/uvloop-dyno-track
b90e369a12077d390bd74aab833c2c562c5a2567
[ "MIT" ]
null
null
null
import json from autobahn.asyncio.websocket import WebSocketClientProtocol from config import DEBUG, CLIENTS_MSGS_COUNT, CLIENTS_COUNT class WSClientProtocol(WebSocketClientProtocol): """ Websocket client protocol. """ def __init__(self): super(WSClientProtocol, self).__init__() sel...
30.183673
101
0.628803
1,339
0.905341
0
0
0
0
0
0
267
0.180527
28c80161e65709f4218b6dce11334fbf557a4f57
13,174
py
Python
tests/www/services/synapse_space/daa/test_grant_daa_access_service.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
tests/www/services/synapse_space/daa/test_grant_daa_access_service.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
tests/www/services/synapse_space/daa/test_grant_daa_access_service.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
import pytest import time import json from datetime import date, timedelta from www.core import Synapse, Env from www.services.synapse_space.daa import GrantDaaAccessService import synapseclient as syn @pytest.fixture def mk_service(syn_test_helper, syn_client, mk_uniq_real_email, blank_daa_config, set_daa_config): ...
41.297806
115
0.617656
0
0
2,878
0.218461
2,926
0.222104
0
0
1,602
0.121603
28c8168a9876befd17a03652dfc26fe8e8b8d160
6,048
py
Python
scripts/verify/test_sampling/species_generator_funcs.py
nadiahpk/niche-neutral-riau-birds
83eeba57973d6912ad354592c84a03b5c24b3363
[ "Unlicense" ]
null
null
null
scripts/verify/test_sampling/species_generator_funcs.py
nadiahpk/niche-neutral-riau-birds
83eeba57973d6912ad354592c84a03b5c24b3363
[ "Unlicense" ]
null
null
null
scripts/verify/test_sampling/species_generator_funcs.py
nadiahpk/niche-neutral-riau-birds
83eeba57973d6912ad354592c84a03b5c24b3363
[ "Unlicense" ]
null
null
null
import numpy as np # create J[k,h], the number of individuals in niche k on island h def draw_J(K, JV): # secondary parameters H = len(JV) # number of islands J = list() for k in range(K): J.append([]) for h in range(H): Jkh_float = JV[h] / K # number of indivi...
32.691892
106
0.475694
0
0
0
0
0
0
0
0
1,884
0.311508
28cb2fe8595e1829af00fa8ae1db21b69746fd37
767
py
Python
protonfixes/gamefixes/243470.py
Citiroller/protonfixes
6e0116bd1cd2172b6f0ff9905667bbc59595cdb7
[ "BSD-2-Clause" ]
213
2018-10-06T01:40:26.000Z
2022-03-16T16:17:37.000Z
protonfixes/gamefixes/243470.py
Citiroller/protonfixes
6e0116bd1cd2172b6f0ff9905667bbc59595cdb7
[ "BSD-2-Clause" ]
88
2018-10-06T17:38:56.000Z
2022-02-19T13:27:26.000Z
protonfixes/gamefixes/243470.py
Citiroller/protonfixes
6e0116bd1cd2172b6f0ff9905667bbc59595cdb7
[ "BSD-2-Clause" ]
67
2018-10-09T16:57:16.000Z
2022-03-14T13:06:25.000Z
""" Game fix for Watch_Dogs """ # pylint: disable=C0103 import subprocess from protonfixes import util from protonfixes import splash def main(): """ Fix the in-game sound """ util.protontricks('xact') util.protontricks('winxp') info_popup() @util.once def info_popup(): """ Show info popup...
22.558824
165
0.640156
0
0
0
0
498
0.649283
0
0
349
0.45502
28cbc58a1aa42e45e73582d7c19d2ec790080407
3,928
py
Python
brigadier/tree/__init__.py
Boundarybreaker/BrigadierPy
4c8ded97dd2974fa168c805fc746807407fa1c38
[ "MIT" ]
null
null
null
brigadier/tree/__init__.py
Boundarybreaker/BrigadierPy
4c8ded97dd2974fa168c805fc746807407fa1c38
[ "MIT" ]
null
null
null
brigadier/tree/__init__.py
Boundarybreaker/BrigadierPy
4c8ded97dd2974fa168c805fc746807407fa1c38
[ "MIT" ]
null
null
null
import collections from abc import ABC, abstractmethod from typing import TypeVar, Generic, Callable, OrderedDict, Collection, Any from brigadier import Command, RedirectModifier S = TypeVar('S') # the class ouroboros keeps growing class CommandNode(ABC, Generic[S]): @abstractmethod def is_valid_input(self,...
29.757576
113
0.648676
3,678
0.936354
0
0
1,461
0.371945
251
0.0639
302
0.076884
28cfe2649130d1fc2ca1713a506f572c7ef8b0ef
3,564
py
Python
test.py
ughiriccardo/retinaface-tf2
4791819fc7e47a63ffe695f0a3adccd6cfa5bb5e
[ "MIT" ]
null
null
null
test.py
ughiriccardo/retinaface-tf2
4791819fc7e47a63ffe695f0a3adccd6cfa5bb5e
[ "MIT" ]
null
null
null
test.py
ughiriccardo/retinaface-tf2
4791819fc7e47a63ffe695f0a3adccd6cfa5bb5e
[ "MIT" ]
null
null
null
from absl import app, flags, logging from absl.flags import FLAGS import cv2 import os import numpy as np import tensorflow as tf import time from PIL import Image from modules.models import RetinaFaceModel from modules.utils import (set_memory_growth, load_yaml, draw_bbox_landm, pad_input_...
33.622642
125
0.664703
0
0
0
0
0
0
0
0
766
0.214927
28d2513f8b811b8fd50ff29cd0b2450c9b6fa225
803
py
Python
library/source2/resource_types/__init__.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
199
2019-04-02T02:30:58.000Z
2022-03-30T21:29:49.000Z
library/source2/resource_types/__init__.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
113
2019-03-03T19:36:25.000Z
2022-03-31T19:44:05.000Z
library/source2/resource_types/__init__.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
38
2019-05-15T16:49:30.000Z
2022-03-22T03:40:43.000Z
from .resource import ValveCompiledResource from .vphys import ValveCompiledPhysics from .vmat import ValveCompiledMaterial from .vtex import ValveCompiledTexture from .vmdl import ValveCompiledModel from .vwrld import ValveCompiledWorld from .vmorf import ValveCompiledMorph from .vrman import ValveCompiledResourceMani...
30.884615
48
0.739726
0
0
0
0
0
0
0
0
57
0.070984
28d25877c35fef93c85d8174a9ad1da326ca5bf4
351
py
Python
b2ac/compat.py
hbldh/ellipse-fitting
77a13ab29ae44b32238e754bff1d2cc6e20883dd
[ "MIT" ]
16
2016-02-16T18:55:18.000Z
2021-12-15T20:07:45.000Z
b2ac/compat.py
hbldh/ellipse-fitting
77a13ab29ae44b32238e754bff1d2cc6e20883dd
[ "MIT" ]
6
2015-10-18T22:28:20.000Z
2016-05-17T22:07:38.000Z
b2ac/compat.py
hbldh/ellipse-fitting
77a13ab29ae44b32238e754bff1d2cc6e20883dd
[ "MIT" ]
7
2016-05-15T16:21:19.000Z
2021-09-09T11:12:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ b2ac.compat ~~~~~~~~~~~ B2AC compatiblity module. """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import import sys is_py3 = (sys.version_info[0] > 2) # Py3 mappings ...
14.625
39
0.717949
0
0
0
0
0
0
0
0
117
0.333333
28d3228ab5984fc81c4a723afce6ac8224b5d570
214
py
Python
Contest/ABC182/d/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC182/d/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC182/d/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 n, *a = map(int, open(0).read().split()) from itertools import* *S, = accumulate(a) *M, = accumulate(S, max) Z = ans = 0 for s, m in zip(S, M): ans = max(ans, Z + m) Z += s print(ans)
21.4
40
0.570093
0
0
0
0
0
0
0
0
22
0.102804
28d45ba4d24a1ed53683bb58cb50eef96ffa6861
209
py
Python
winaudio/exceptions.py
Pixelsuft/winaudio
b66109771811548339905208f9034cb492768337
[ "MIT" ]
1
2021-12-15T10:17:27.000Z
2021-12-15T10:17:27.000Z
winaudio/exceptions.py
Pixelsuft/winaudio
b66109771811548339905208f9034cb492768337
[ "MIT" ]
1
2022-03-17T14:27:18.000Z
2022-03-17T14:27:29.000Z
winaudio/exceptions.py
Pixelsuft/winaudio
b66109771811548339905208f9034cb492768337
[ "MIT" ]
null
null
null
class SoundError(Exception): pass class WavePlayError(Exception): pass class ArgumentError(Exception): pass class PlayerError(Exception): pass class PlayerMciError(Exception): pass
11
32
0.722488
196
0.937799
0
0
0
0
0
0
0
0
28d465fa30e0433de2c84494a0e0f5ac46a9f8f7
1,978
py
Python
src/adage/decorators.py
lukasheinrich/dagger
353c15cd97ff5150eff128f34cf1666c78826524
[ "MIT" ]
31
2018-07-12T10:33:39.000Z
2021-12-01T22:49:42.000Z
src/adage/decorators.py
lukasheinrich/dagger
353c15cd97ff5150eff128f34cf1666c78826524
[ "MIT" ]
10
2021-02-15T20:13:43.000Z
2022-02-03T00:48:34.000Z
src/adage/decorators.py
lukasheinrich/dagger
353c15cd97ff5150eff128f34cf1666c78826524
[ "MIT" ]
3
2019-05-31T18:04:15.000Z
2021-08-23T12:00:18.000Z
import functools def adageop(func): """ Decorator that adds a 's' attribute to a function The attribute can be used to partially define the function call, except for the 'adageobj' keyword argument, the return value is a single-argument ('adageobj') function """ def partial(*args,**kwar...
30.90625
92
0.664307
271
0.137007
0
0
0
0
0
0
828
0.418605
28d612bac84eab26893b70db1398bf2faa634b82
300
py
Python
keepassxc_pwned/__main__.py
opensource-assist/keepassxc-pwned
8e1ca6d04530d1e87afc0b8aea557d07884b1ad1
[ "MIT" ]
null
null
null
keepassxc_pwned/__main__.py
opensource-assist/keepassxc-pwned
8e1ca6d04530d1e87afc0b8aea557d07884b1ad1
[ "MIT" ]
null
null
null
keepassxc_pwned/__main__.py
opensource-assist/keepassxc-pwned
8e1ca6d04530d1e87afc0b8aea557d07884b1ad1
[ "MIT" ]
null
null
null
import sys import getpass from keepassxc_pwned import check_password pw = getpass.getpass("Password to check: ") count = check_password(pw) if count > 0: print("Found password {} times!".format(count)) sys.exit(1) else: print("Could not find that password in the dataset.") sys.exit(0)
21.428571
57
0.72
0
0
0
0
0
0
0
0
93
0.31
28d8e96dd3ba837f361c08332c0bfcd7c2fa4933
9,318
py
Python
scale/job/test/configuration/results/test_results_manifest.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
121
2015-11-18T18:15:33.000Z
2022-03-10T01:55:00.000Z
scale/job/test/configuration/results/test_results_manifest.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
1,415
2015-12-23T23:36:04.000Z
2022-01-07T14:10:09.000Z
scale/job/test/configuration/results/test_results_manifest.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
66
2015-12-03T20:38:56.000Z
2020-07-27T15:28:11.000Z
from __future__ import unicode_literals import django from django.test import TestCase from job.configuration.results.results_manifest.results_manifest import ResultsManifest from job.configuration.results.exceptions import InvalidResultsManifest, \ MissingRequiredOutput class TestResultsManifestConstructor...
33.76087
131
0.434643
9,026
0.968663
0
0
0
0
0
0
2,614
0.280532
28d92445b0cef22e1b65fac68f9bba5d2c945b7b
30,543
py
Python
keepercommander/commands/connect.py
Keeper-Security/commander
93fee5d2ba56f2288e00ab33003597d00a302b5c
[ "MIT" ]
null
null
null
keepercommander/commands/connect.py
Keeper-Security/commander
93fee5d2ba56f2288e00ab33003597d00a302b5c
[ "MIT" ]
null
null
null
keepercommander/commands/connect.py
Keeper-Security/commander
93fee5d2ba56f2288e00ab33003597d00a302b5c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # _ __ # | |/ /___ ___ _ __ ___ _ _ ® # | ' </ -_) -_) '_ \/ -_) '_| # |_|\_\___\___| .__/\___|_| # |_| # # Keeper Commander # Copyright 2022 Keeper Security Inc. # Contact: [email protected] # from typing import Optional, Callable, Iterator, List, Iterable, Tuple import a...
41.668486
160
0.572013
24,297
0.795475
2,242
0.073402
10,068
0.329623
0
0
6,482
0.212218
28da8ef8af9fbbd020d4fff7f7abff3149cb8fd6
855
py
Python
mpcorbget/__main__.py
davenporta/mpcorbget
0ccd3cdeb07ed2b7a4256ed643afff2b3756391c
[ "MIT" ]
4
2017-06-14T18:33:16.000Z
2021-01-15T06:07:19.000Z
build/lib/mpcorbget/__main__.py
davenporta/mpcorbget
0ccd3cdeb07ed2b7a4256ed643afff2b3756391c
[ "MIT" ]
null
null
null
build/lib/mpcorbget/__main__.py
davenporta/mpcorbget
0ccd3cdeb07ed2b7a4256ed643afff2b3756391c
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import with_statement from builtins import input import mpcorbget as mpc def main(): """Handy dandy quick ephemeris tool""" print("QuickEphem v1.1...
32.884615
101
0.643275
0
0
0
0
0
0
0
0
259
0.302924
28dbb5cd57af3255c8b54220ea75b7137d701b5b
5,338
py
Python
game/game_code/tests/test_level_1.py
RDGT/adventure-poc
e211491e5958d12a3347b3e279006d915d691d20
[ "MIT" ]
2
2018-04-23T15:03:41.000Z
2018-07-18T06:36:51.000Z
game/game_code/tests/test_level_1.py
RDGT/adventure-poc
e211491e5958d12a3347b3e279006d915d691d20
[ "MIT" ]
6
2018-03-25T12:04:27.000Z
2018-09-14T09:08:34.000Z
game/game_code/tests/test_level_1.py
RDGT/adventure-poc
e211491e5958d12a3347b3e279006d915d691d20
[ "MIT" ]
1
2018-07-22T09:46:55.000Z
2018-07-22T09:46:55.000Z
import unittest import logging import game_code log = logging.getLogger('test.level_1') class TestAdventureLevelOne(unittest.TestCase): @classmethod def setUpClass(cls): cls.game = game_code.main.start_game(interface='python') def test_outside_slowly(self): outside = self.game.interfac...
40.439394
104
0.680592
5,245
0.982578
0
0
102
0.019108
0
0
635
0.118958
28dcbab6ce14a5c552df454e459ab5d17982bfb0
1,627
py
Python
new_skeleton1/tests/test_player_repository.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
new_skeleton1/tests/test_player_repository.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
new_skeleton1/tests/test_player_repository.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
import unittest from project.player.beginner import Beginner from project.player.player_repository import PlayerRepository class TestPlayerRepo(unittest.TestCase): def setUp(self): self.repo = PlayerRepository() def test_set_up(self): self.assertEqual(self.repo.count, 0) self.assertL...
31.288462
80
0.657652
1,451
0.891825
0
0
0
0
0
0
133
0.081746
28def3f05e8e5eae41643f72829ac55886b52a21
1,663
py
Python
libs/template.py
TheCherry/hsdetect
ed19570e706a8bcdf5b23d7cdefd6b746de3dc3b
[ "MIT" ]
2
2017-10-10T22:11:28.000Z
2018-01-02T06:03:21.000Z
libs/template.py
TheCherry/hsdetect
ed19570e706a8bcdf5b23d7cdefd6b746de3dc3b
[ "MIT" ]
null
null
null
libs/template.py
TheCherry/hsdetect
ed19570e706a8bcdf5b23d7cdefd6b746de3dc3b
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET class Template: def __init__(self, image, default_xml): self.tree = ET.parse(default_xml) self.root = self.tree.getroot() self.image = image def add_template_objects(self, xml, **kargs): tree = ET.parse(xml) root = tree.getroot() ...
36.955556
115
0.660854
863
0.518942
0
0
0
0
0
0
334
0.200842
28df1e4de356cb1489acc045615f0942034640d3
61
py
Python
up/tasks/det/data/__init__.py
ModelTC/EOD
164bff80486e9ae6a095a97667b365c46ceabd86
[ "Apache-2.0" ]
196
2021-10-30T05:15:36.000Z
2022-03-30T18:43:40.000Z
eod/tasks/det/data/__init__.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
12
2021-10-30T11:33:28.000Z
2022-03-31T14:22:58.000Z
eod/tasks/det/data/__init__.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
23
2021-11-01T07:26:17.000Z
2022-03-27T05:55:37.000Z
from .datasets import * # noqa from .metrics import * # noqa
20.333333
30
0.704918
0
0
0
0
0
0
0
0
12
0.196721
28dfb8dee6d42e22033971ee588b9325fc390cc8
640
py
Python
montype.py
xenolithcluster/mon
b3ecb7810857ae6890ec57cd862f79d8422ee99d
[ "Unlicense" ]
null
null
null
montype.py
xenolithcluster/mon
b3ecb7810857ae6890ec57cd862f79d8422ee99d
[ "Unlicense" ]
null
null
null
montype.py
xenolithcluster/mon
b3ecb7810857ae6890ec57cd862f79d8422ee99d
[ "Unlicense" ]
null
null
null
from monstage import * class MonType(): def __init__(self,sprites=None,stage=egg,becomes=None): self.stage = stage self.becomes = becomes self._sprites = sprites def setSprites(self,sprites): if type(sprites) not in [list,tuple] or sprites == None: ...
22.857143
74
0.614063
463
0.723438
0
0
0
0
0
0
57
0.089063
28e285aab7ef8a74b888a3ac19489992fbb16f62
619
py
Python
bgp/migrations/0004_auto_20190409_0403.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
5
2016-10-31T17:46:17.000Z
2022-02-02T00:40:49.000Z
bgp/migrations/0004_auto_20190409_0403.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
33
2018-05-09T06:07:50.000Z
2021-09-22T17:39:56.000Z
bgp/migrations/0004_auto_20190409_0403.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
1
2020-05-14T21:44:25.000Z
2020-05-14T21:44:25.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2019-04-09 04:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('netdevice', '0006_auto_20190409_0325'), ('bgp', '0003_auto_20190328_0332'), ] ...
23.807692
50
0.58643
460
0.743134
0
0
0
0
0
0
171
0.276252
28e59b00785686bf73bdc0a0356ac252f3fe15d2
2,195
py
Python
install.py
Schroedingberg/Schroedingberg.github.io
807990ee1605c4d6c4ca1610d60085bdd48849b5
[ "MIT" ]
null
null
null
install.py
Schroedingberg/Schroedingberg.github.io
807990ee1605c4d6c4ca1610d60085bdd48849b5
[ "MIT" ]
null
null
null
install.py
Schroedingberg/Schroedingberg.github.io
807990ee1605c4d6c4ca1610d60085bdd48849b5
[ "MIT" ]
null
null
null
import sys import os import subprocess as proc import distutils.spawn as which version = sys.version[:3] activate_env_path = os.path.join("env", "bin", "activate_this.py") activate_env = activate_env_path opts = {} def has_colours(stream): if not hasattr(stream, "isatty"): return False if not stream.isatty():...
25.823529
71
0.638269
0
0
0
0
0
0
0
0
676
0.307973
28e617d3fa4c248d444bbe5bd303b5bff8eeccf3
2,031
py
Python
urpc/storage/oldxi/doxygen.py
EPC-MSU/uRPC
cd3c386a8320542052834ca28791a3ea2b57c54f
[ "CC0-1.0" ]
1
2022-03-11T04:29:53.000Z
2022-03-11T04:29:53.000Z
urpc/storage/oldxi/doxygen.py
EPC-MSU/uRPC
cd3c386a8320542052834ca28791a3ea2b57c54f
[ "CC0-1.0" ]
null
null
null
urpc/storage/oldxi/doxygen.py
EPC-MSU/uRPC
cd3c386a8320542052834ca28791a3ea2b57c54f
[ "CC0-1.0" ]
1
2021-06-15T21:56:26.000Z
2021-06-15T21:56:26.000Z
# from functools import lru_cache as memoize from collections import namedtuple from pyparsing import Regex, SkipTo, ParseException, OneOrMore, Optional, Suppress, Empty Language = namedtuple("Language", ["code", "text"]) # directives # _dsee = Suppress("@see")+SkipTo(LineEnd()) # _dparam = Suppress("@param")+SkipT...
31.246154
104
0.642541
0
0
0
0
0
0
0
0
545
0.268341
28e6b72106e1dae4d2af234b07a4d026ca6bfe01
1,314
py
Python
app/modules/model/base/abstract_model.py
petrLorenc/Labelling-Tool
aaa97fa9d2db8b43100f068f359df1d8cb709571
[ "MIT" ]
null
null
null
app/modules/model/base/abstract_model.py
petrLorenc/Labelling-Tool
aaa97fa9d2db8b43100f068f359df1d8cb709571
[ "MIT" ]
1
2018-07-14T12:32:46.000Z
2018-07-14T12:32:46.000Z
app/modules/model/base/abstract_model.py
petrLorenc/Labelling-Tool
aaa97fa9d2db8b43100f068f359df1d8cb709571
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class AbstractModel(ABC): def __init__(self): self.model = None self.word2idx = None self.idx2word = None self.tag2idx = None self.idx2tag = None self.max_len = None self.vocabulary = None self.categories = None...
24.792453
127
0.611111
1,275
0.97032
0
0
324
0.246575
0
0
10
0.00761
28e78c6007647b288497c3988604a790b661d369
7,327
py
Python
examples/prefilter_test.py
abiedermann/worms
026c45a88d5c71b0e035ac83de6f4dc107316ed8
[ "Apache-2.0" ]
4
2018-01-30T23:13:43.000Z
2021-02-12T22:36:54.000Z
examples/prefilter_test.py
abiedermann/worms
026c45a88d5c71b0e035ac83de6f4dc107316ed8
[ "Apache-2.0" ]
9
2018-02-23T00:52:25.000Z
2022-01-26T00:02:32.000Z
examples/prefilter_test.py
abiedermann/worms
026c45a88d5c71b0e035ac83de6f4dc107316ed8
[ "Apache-2.0" ]
4
2018-06-28T21:30:14.000Z
2022-03-30T17:50:42.000Z
import logging import sys import concurrent.futures as cf from time import clock, time import numpy as np import pytest from worms import simple_search_dag, Cyclic, grow_linear, NullCriteria from worms.util import InProcessExecutor from worms.database import CachingBBlockDB, CachingSpliceDB from worms.ssdag_pose impo...
32.856502
115
0.661253
0
0
0
0
0
0
0
0
2,971
0.405487