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
0b729c6af7d440093ab2706bff962e7602e418a9
1,327
py
Python
integration/phore/tests/shardsynctest.py
phoreproject/synapse
77d10ca2eb7828ca9f7c8e29b72a73cf2c07f954
[ "MIT" ]
9
2018-09-30T18:56:26.000Z
2019-10-30T23:09:07.000Z
integration/phore/tests/shardsynctest.py
phoreproject/synapse
77d10ca2eb7828ca9f7c8e29b72a73cf2c07f954
[ "MIT" ]
102
2018-11-09T16:17:59.000Z
2020-11-04T19:06:01.000Z
integration/phore/tests/shardsynctest.py
phoreproject/graphene
77d10ca2eb7828ca9f7c8e29b72a73cf2c07f954
[ "MIT" ]
5
2018-11-05T14:29:24.000Z
2020-06-08T19:26:05.000Z
import logging from phore.framework import tester, validatornode, shardnode from phore.pb import common_pb2 class ShardSyncTest(tester.Tester): def __init__(self): logging.info(logging.INFO) super().__init__() def _do_run(self): beacon_nodes = [self.create_beacon_node() for _ in ran...
26.54
105
0.667671
1,182
0.890731
0
0
0
0
0
0
10
0.007536
0b72b6b59c7098297806590340d0f99c8c866547
426
py
Python
chartconvert/mpp.py
e-sailing/avnav
b3e8df4d6fa122b05309eee09197c716e29b64ec
[ "MIT" ]
null
null
null
chartconvert/mpp.py
e-sailing/avnav
b3e8df4d6fa122b05309eee09197c716e29b64ec
[ "MIT" ]
null
null
null
chartconvert/mpp.py
e-sailing/avnav
b3e8df4d6fa122b05309eee09197c716e29b64ec
[ "MIT" ]
null
null
null
#! /usr/bin/env python # # vim: ts=2 sw=2 et # import sys #from wx.py.crust import Display inchpm=39.3700 dpi=100 if len(sys.argv) >1: dpi=int(sys.argv[1]) displaympp=1/(float(dpi)*inchpm) print "display mpp=%f"%(displaympp) mpp= 20037508.342789244 * 2 / 256 print "Level : mpp \t\t: scale" for i in ra...
16.384615
54
0.638498
0
0
0
0
0
0
0
0
157
0.368545
0b7345be2719bd8b7fdccdbf2d4ec3d3cec346b7
314
py
Python
Lower_Upper_Counter/Lower_Upper_Counter.py
GracjanBuczek/Python
655801ae58ed7ef21f7da2f69f649c556b20aaee
[ "MIT" ]
null
null
null
Lower_Upper_Counter/Lower_Upper_Counter.py
GracjanBuczek/Python
655801ae58ed7ef21f7da2f69f649c556b20aaee
[ "MIT" ]
null
null
null
Lower_Upper_Counter/Lower_Upper_Counter.py
GracjanBuczek/Python
655801ae58ed7ef21f7da2f69f649c556b20aaee
[ "MIT" ]
null
null
null
x = input("Enter sentence: ") count={"Uppercase":0, "Lowercase":0} for i in x: if i.isupper(): count["Uppercase"]+=1 elif i.islower(): count["Lowercase"]+=1 else: pass print ("There is:", count["Uppercase"], "uppercases.") print ("There is:", count["Lowercase"], "lowercases.")
26.166667
54
0.582803
0
0
0
0
0
0
0
0
132
0.420382
0b740ea892a08bb96379c733e82f7e4324d439a4
684
py
Python
examples/driving_in_traffic/scenarios/loop/scenario.py
zbzhu99/SMARTS
652aa23e71bd4e2732e2742140cfcd0ec082a7da
[ "MIT" ]
2
2021-12-13T12:41:54.000Z
2021-12-16T03:10:24.000Z
examples/driving_in_traffic/scenarios/loop/scenario.py
zbzhu99/SMARTS
652aa23e71bd4e2732e2742140cfcd0ec082a7da
[ "MIT" ]
null
null
null
examples/driving_in_traffic/scenarios/loop/scenario.py
zbzhu99/SMARTS
652aa23e71bd4e2732e2742140cfcd0ec082a7da
[ "MIT" ]
null
null
null
from pathlib import Path from smarts.sstudio import gen_scenario from smarts.sstudio import types as t traffic = t.Traffic( flows=[ t.Flow( route=t.RandomRoute(), rate=60 * 60, actors={t.TrafficActor(name="car", vehicle_type=vehicle_type): 1}, ) for vehi...
20.117647
78
0.483918
0
0
0
0
0
0
0
0
90
0.131579
0b74a2d6dbfc76ec355ef8ff8e62599cfa40e389
13,196
py
Python
asyncorm/models/models.py
kejkz/asyncorm
6342e2d5fbaa22fb368aead772ac4f255df7562a
[ "Apache-2.0" ]
1
2017-02-27T05:37:39.000Z
2017-02-27T05:37:39.000Z
asyncorm/models/models.py
kejkz/asyncorm
6342e2d5fbaa22fb368aead772ac4f255df7562a
[ "Apache-2.0" ]
null
null
null
asyncorm/models/models.py
kejkz/asyncorm
6342e2d5fbaa22fb368aead772ac4f255df7562a
[ "Apache-2.0" ]
null
null
null
import inspect import os from collections import Callable from asyncorm.application.configure import get_model from asyncorm.exceptions import AsyncOrmFieldError, AsyncOrmModelDoesNotExist, AsyncOrmModelError from asyncorm.manager import ModelManager from asyncorm.models.fields import AutoField, Field, ForeignKey, Man...
35.761518
118
0.572674
12,728
0.964242
0
0
5,609
0.424924
411
0.031136
1,213
0.091894
0b7531882bc3693d78e18104d816fb7003ff5f35
74,222
py
Python
pyseq/main.py
nygctech/PySeq2500
6969f178a5f5837ce2f41887d59624bf4cc39433
[ "MIT" ]
9
2019-09-25T16:41:42.000Z
2021-11-15T08:49:48.000Z
pyseq/main.py
nygctech/PySeq2500
6969f178a5f5837ce2f41887d59624bf4cc39433
[ "MIT" ]
8
2020-07-18T09:50:33.000Z
2022-03-12T01:01:21.000Z
pyseq/main.py
nygctech/PySeq2500
6969f178a5f5837ce2f41887d59624bf4cc39433
[ "MIT" ]
5
2020-08-02T09:51:12.000Z
2022-01-04T15:54:32.000Z
""" TODO: """ import time import logging import os from os.path import join import sys import configparser import threading import argparse from . import methods from . import args from . import focus # Global int to track # of errors d...
38.437079
159
0.52832
8,205
0.110527
0
0
0
0
0
0
25,511
0.343652
0b77f76b149075d4d3817aa9211f7115e499a12a
273
py
Python
tests/parser/rewriting.projection.4.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/rewriting.projection.4.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/rewriting.projection.4.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
input = """ f(X,1) :- a(X,Y), g(A,X),g(B,X), not f(1,X). a(X,Y) :- g(X,0),g(Y,0). g(x1,0). g(x2,0). """ output = """ f(X,1) :- a(X,Y), g(A,X),g(B,X), not f(1,X). a(X,Y) :- g(X,0),g(Y,0). g(x1,0). g(x2,0). """
11.869565
25
0.296703
0
0
0
0
0
0
0
0
254
0.930403
0b78677adaa1ddcbacf884f29508f3b4ea829e33
5,100
py
Python
focus/receiver.py
frederikhermans/focus
6228ba5fc8b41c74f2e22d5c2de20040b206d70a
[ "BSD-3-Clause" ]
6
2016-04-18T09:40:16.000Z
2021-01-05T22:03:54.000Z
focus/receiver.py
horizon00/focus
6228ba5fc8b41c74f2e22d5c2de20040b206d70a
[ "BSD-3-Clause" ]
1
2017-12-10T14:13:50.000Z
2017-12-10T14:13:50.000Z
focus/receiver.py
horizon00/focus
6228ba5fc8b41c74f2e22d5c2de20040b206d70a
[ "BSD-3-Clause" ]
5
2018-01-04T14:59:50.000Z
2018-10-20T14:40:21.000Z
# Copyright (c) 2016, Frederik Hermans, Liam McNamara # # This file is part of FOCUS and is licensed under the 3-clause BSD license. # The full license can be found in the file COPYING. import cPickle as pickle import sys import click import imageframer import numpy as np import rscode import focus def _grayscale(...
36.428571
81
0.610196
3,263
0.639804
0
0
849
0.166471
0
0
827
0.162157
0b7aa19dc4e53889b36908ba53b351bf9cbef5d2
6,444
py
Python
calc/bond.py
RaphaelOneRepublic/financial-calculator
2451b35a4cb52a6c254ae9fdae462dfebdc51e65
[ "MIT" ]
2
2020-12-10T13:00:43.000Z
2020-12-19T16:59:48.000Z
calc/bond.py
RaphaelOneRepublic/financial-calculator
2451b35a4cb52a6c254ae9fdae462dfebdc51e65
[ "MIT" ]
null
null
null
calc/bond.py
RaphaelOneRepublic/financial-calculator
2451b35a4cb52a6c254ae9fdae462dfebdc51e65
[ "MIT" ]
null
null
null
import logging from typing import Sequence import numpy as np from calc.optimize import root class Bond(object): """ Represents a coupon paying bond. Upon creation, the time to maturity, coupon periods per year, coupon rate must be provided. If yield to maturity is provided, bond value would be igno...
24.689655
113
0.542675
4,874
0.756363
0
0
2,768
0.429547
0
0
2,361
0.366387
0b7ab6dccc22b64a51e866ea9c844d792babb7c7
9,074
py
Python
jasy/build/Script.py
sebastian-software/jasy
9740ed33f0836ab2dd3e00ab4fae4049f9908072
[ "MIT" ]
2
2015-05-27T19:30:49.000Z
2015-12-10T16:55:14.000Z
jasy/build/Script.py
sebastian-software/jasy
9740ed33f0836ab2dd3e00ab4fae4049f9908072
[ "MIT" ]
2
2015-03-16T09:15:58.000Z
2015-04-07T19:05:47.000Z
jasy/build/Script.py
sebastian-software/jasy
9740ed33f0836ab2dd3e00ab4fae4049f9908072
[ "MIT" ]
2
2017-07-18T20:08:05.000Z
2021-01-04T10:46:14.000Z
# # Jasy - Web Tooling Framework # Copyright 2010-2012 Zynga Inc. # Copyright 2013-2014 Sebastian Werner # import os import jasy import jasy.core.Console as Console from jasy.item.Script import ScriptError from jasy.item.Script import ScriptItem import jasy.script.Resolver as ScriptResolver from jasy.script.Resolve...
33.116788
168
0.601278
8,614
0.949306
0
0
0
0
0
0
1,897
0.209059
0b7b1e425f8017f791073b532d42d48a2786d924
171
py
Python
13.py
kwoshvick/project-euler
d27370b0f22b51ad9ccb15afa912983d8fd8be5c
[ "MIT" ]
null
null
null
13.py
kwoshvick/project-euler
d27370b0f22b51ad9ccb15afa912983d8fd8be5c
[ "MIT" ]
null
null
null
13.py
kwoshvick/project-euler
d27370b0f22b51ad9ccb15afa912983d8fd8be5c
[ "MIT" ]
null
null
null
file = open("13") sum = 0 for numbers in file: #print(numbers.rstrip()) numbers = int(numbers) sum += numbers; print(sum) sum = str(sum) print(sum[:10])
10.6875
28
0.596491
0
0
0
0
0
0
0
0
28
0.163743
0b7d1c464ba5f7b2f25f469546bc0725ef4ae2f0
25,033
py
Python
snlds/model_cavi_snlds.py
egonrian/google-research
8177adbe9ca0d7e5a9463b54581fe6dd27be0974
[ "Apache-2.0" ]
3
2021-01-18T04:46:49.000Z
2021-03-05T09:21:40.000Z
snlds/model_cavi_snlds.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
25
2020-07-25T08:53:09.000Z
2022-03-12T00:43:02.000Z
snlds/model_cavi_snlds.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
4
2021-02-08T10:25:45.000Z
2021-04-17T14:46:26.000Z
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
40.770358
80
0.667878
15,104
0.603364
0
0
211
0.008429
0
0
11,161
0.445851
0b7d1f1e2fd547f10391c4be9766498485799dc7
1,581
py
Python
grid_search/mlp_gridsearch.py
RiboswitchClassifier/RiboswitchClassification
4a4ab0590aa50aa765638b2bd8aa0cfd84054ac7
[ "MIT" ]
2
2019-12-16T13:08:28.000Z
2021-02-23T03:03:18.000Z
grid_search/mlp_gridsearch.py
RiboswitchClassifier/RiboswitchClassification
4a4ab0590aa50aa765638b2bd8aa0cfd84054ac7
[ "MIT" ]
null
null
null
grid_search/mlp_gridsearch.py
RiboswitchClassifier/RiboswitchClassification
4a4ab0590aa50aa765638b2bd8aa0cfd84054ac7
[ "MIT" ]
3
2019-01-01T06:00:20.000Z
2020-01-28T13:57:49.000Z
from sklearn.model_selection import cross_val_score, GridSearchCV, cross_validate, train_test_split from sklearn.metrics import accuracy_score, classification_report from sklearn.neural_network import MLPClassifier import pandas as pd import csv from sklearn.preprocessing import label_binarize from sklearn.preprocessi...
27.258621
116
0.759646
0
0
0
0
0
0
0
0
275
0.173941
0b7e90a5769d5e45dae418f0e034fd90269bdc99
711
py
Python
bermuda/demos/shape_options.py
glue-viz/bermuda
0bc26bac376d4f08a4964481d1f737f6deb86270
[ "BSD-3-Clause" ]
1
2018-07-20T21:09:46.000Z
2018-07-20T21:09:46.000Z
bermuda/demos/shape_options.py
glue-viz/bermuda
0bc26bac376d4f08a4964481d1f737f6deb86270
[ "BSD-3-Clause" ]
null
null
null
bermuda/demos/shape_options.py
glue-viz/bermuda
0bc26bac376d4f08a4964481d1f737f6deb86270
[ "BSD-3-Clause" ]
1
2018-07-20T21:15:41.000Z
2018-07-20T21:15:41.000Z
import matplotlib.pyplt as plt from bermuda import ellipse, polygon, rectangle plt.plot([1,2,3], [2,3,4]) ax = plg.gca() # default choices for everything e = ellipse(ax) # custom position, genric interface for all shapes e = ellipse(ax, bbox = (x, y, w, h, theta)) e = ellipse(ax, cen=(x, y), width=w, height=h, the...
24.517241
59
0.707454
0
0
0
0
0
0
0
0
183
0.257384
0b7fbd1451d21df02b8ac7806cf7eef5c4dcbb14
5,605
py
Python
porthole/contact_management.py
speedyturkey/porthole
5d47bb00d33d5aa93c3d2e84af993b5387b66be6
[ "MIT" ]
3
2017-06-22T01:52:10.000Z
2019-09-25T22:52:56.000Z
porthole/contact_management.py
speedyturkey/porthole
5d47bb00d33d5aa93c3d2e84af993b5387b66be6
[ "MIT" ]
48
2017-06-22T23:36:03.000Z
2019-11-26T02:51:54.000Z
porthole/contact_management.py
speedyturkey/porthole
5d47bb00d33d5aa93c3d2e84af993b5387b66be6
[ "MIT" ]
1
2019-02-27T13:59:07.000Z
2019-02-27T13:59:07.000Z
from sqlalchemy.orm.exc import NoResultFound from porthole.app import Session from .logger import PortholeLogger from porthole.models import AutomatedReport, AutomatedReportContact, AutomatedReportRecipient class AutomatedReportContactManager(object): def __init__(self, session=None): self.session = sessi...
49.60177
118
0.702587
5,395
0.962533
0
0
0
0
0
0
996
0.177698
0b8210f4f1d6486c1ca027ea81ba3795882b8a8f
3,433
py
Python
tests/python/benchmarks/two_neighborhood_bench.py
sid17/weaver
f9074397ca854a777a873eaf409621de679f9749
[ "BSD-3-Clause" ]
163
2015-01-02T03:51:38.000Z
2022-03-21T23:06:39.000Z
tests/python/benchmarks/two_neighborhood_bench.py
sid17/weaver
f9074397ca854a777a873eaf409621de679f9749
[ "BSD-3-Clause" ]
1
2015-04-08T23:17:06.000Z
2015-04-24T15:25:26.000Z
tests/python/benchmarks/two_neighborhood_bench.py
sid17/weaver
f9074397ca854a777a873eaf409621de679f9749
[ "BSD-3-Clause" ]
20
2015-02-17T19:24:05.000Z
2020-10-29T01:59:18.000Z
#! /usr/bin/env python # # =============================================================== # Description: Two neighborhood benchmark # # Created: 2014-03-21 13:39:06 # # Author: Ayush Dubey, [email protected] # # Copyright (C) 2013-2014, Cornell University, see the LICENSE # ...
26.206107
106
0.633265
0
0
0
0
0
0
0
0
665
0.193708
0b829ab3570dda786322f71fd0c867093ba7b3dc
1,705
py
Python
composer/datasets/brats_hparams.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
composer/datasets/brats_hparams.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
composer/datasets/brats_hparams.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """BraTS (Brain Tumor Segmentation) dataset hyperparameters.""" from dataclasses import dataclass import torch import yahp as hp from composer.datasets.brats import PytTrain, PytVal, get_data_split from composer.datasets.dataset_hparam...
32.788462
101
0.71261
1,061
0.622287
0
0
1,072
0.628739
0
0
419
0.245748
0b83bfc7e85aab893f830a54d4b1eb6b31224483
43
py
Python
examples/getchar.py
scalabli/quo
70b6d4129ee705930f1f8a792fc4c9247d973f9d
[ "MIT" ]
3
2022-03-13T13:22:35.000Z
2022-03-18T08:22:51.000Z
examples/getchar.py
scalabli/quo
70b6d4129ee705930f1f8a792fc4c9247d973f9d
[ "MIT" ]
1
2022-03-21T16:29:54.000Z
2022-03-21T16:29:54.000Z
examples/getchar.py
scalabli/quo
70b6d4129ee705930f1f8a792fc4c9247d973f9d
[ "MIT" ]
null
null
null
from quo.getchar import getchar getchar()
10.75
31
0.790698
0
0
0
0
0
0
0
0
0
0
0b83f0ab273b13a1a169d3aa5355aab90ac31ca1
313
py
Python
setup.py
cfbolz/syntaxerrors
1c7ecc8fd0d05253d5c55dee39802cfb86fb69f7
[ "Apache-2.0", "OpenSSL" ]
5
2018-04-11T15:19:53.000Z
2020-10-27T15:23:18.000Z
setup.py
cfbolz/syntaxerrors
1c7ecc8fd0d05253d5c55dee39802cfb86fb69f7
[ "Apache-2.0", "OpenSSL" ]
null
null
null
setup.py
cfbolz/syntaxerrors
1c7ecc8fd0d05253d5c55dee39802cfb86fb69f7
[ "Apache-2.0", "OpenSSL" ]
null
null
null
from setuptools import setup, find_packages setup( name='syntaxerrors', version='0.0.1', description='Report better SyntaxErrors', author='Carl Friedrich Bolz-Tereick', author_email='[email protected]', packages=['syntaxerrors'], package_dir={'': 'src'}, include_package_data=True, )
24.076923
45
0.686901
0
0
0
0
0
0
0
0
114
0.364217
0b843ec57c40e34a7b0ee2c71349c26723ef8771
1,492
py
Python
unit/either_spec.py
tek/amino
51b314933e047a45587a24ecff02c836706d27ff
[ "MIT" ]
33
2016-12-21T07:05:46.000Z
2020-04-29T04:26:46.000Z
unit/either_spec.py
tek/amino
51b314933e047a45587a24ecff02c836706d27ff
[ "MIT" ]
1
2019-04-19T17:15:52.000Z
2019-04-20T18:28:23.000Z
unit/either_spec.py
tek/amino
51b314933e047a45587a24ecff02c836706d27ff
[ "MIT" ]
4
2017-09-04T18:46:23.000Z
2021-11-02T04:18:13.000Z
import operator from amino.either import Left, Right from amino import Empty, Just, Maybe, List, Either, _ from amino.test.spec_spec import Spec from amino.list import Lists class EitherSpec(Spec): def map(self) -> None: a = 'a' b = 'b' Right(a).map(_ + b).value.should.equal(a + b) ...
31.744681
73
0.586461
1,287
0.862601
0
0
0
0
0
0
44
0.029491
0b84b4636dfd6d734d772cca8a444833fce6d004
221
py
Python
Modulo_1/semana2/variables_contantes/sentencia-global.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
null
null
null
Modulo_1/semana2/variables_contantes/sentencia-global.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
null
null
null
Modulo_1/semana2/variables_contantes/sentencia-global.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
1
2022-03-04T00:57:18.000Z
2022-03-04T00:57:18.000Z
variable1 = "variable original" def variable_global(): global variable1 variable1 = "variable global modificada" print(variable1) #variable original variable_global() print(variable1) #variable global modificada
20.090909
44
0.78733
0
0
0
0
0
0
0
0
92
0.41629
0b84d29786d1202df0158d5a5b88910f8c8196a5
1,314
py
Python
weather_alarm/main.py
Cs4r/weather_alarm
b78b6f11f91e3b81aa43a1bfaa55074a0626a036
[ "MIT" ]
null
null
null
weather_alarm/main.py
Cs4r/weather_alarm
b78b6f11f91e3b81aa43a1bfaa55074a0626a036
[ "MIT" ]
null
null
null
weather_alarm/main.py
Cs4r/weather_alarm
b78b6f11f91e3b81aa43a1bfaa55074a0626a036
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import datetime import os from apscheduler.schedulers.blocking import BlockingScheduler from weather_alarm.constants import * from weather_alarm.forecaster import Forecaster from weather_alarm.sender import NotificationSender sender = NotificationSender(BOT_TOKEN, TELEG...
32.04878
120
0.780822
0
0
0
0
0
0
0
0
103
0.078387
0b88cc0b918db3b0b9bc55668bf46c025033b785
2,237
py
Python
authlib/oauth2/rfc6749/__init__.py
geoffwhittington/authlib
096f2a41f4fb18f9850427f07d556d4b9ab97383
[ "BSD-3-Clause" ]
null
null
null
authlib/oauth2/rfc6749/__init__.py
geoffwhittington/authlib
096f2a41f4fb18f9850427f07d556d4b9ab97383
[ "BSD-3-Clause" ]
null
null
null
authlib/oauth2/rfc6749/__init__.py
geoffwhittington/authlib
096f2a41f4fb18f9850427f07d556d4b9ab97383
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ authlib.oauth2.rfc6749 ~~~~~~~~~~~~~~~~~~~~~~ This module represents a direct implementation of The OAuth 2.0 Authorization Framework. https://tools.ietf.org/html/rfc6749 """ from .wrappers import OAuth2Request, OAuth2Token, HttpRequest from .errors import ( OAuth2...
27.617284
67
0.743406
0
0
0
0
0
0
0
0
980
0.438087
0b88fa702aed7c893ac61d3d5a2bd66384c1a59d
1,613
py
Python
scripts/serial_command.py
philip-long/singletact-python-wrapper
659796f614116db77f31d6b0cc1e0c963104948e
[ "MIT" ]
null
null
null
scripts/serial_command.py
philip-long/singletact-python-wrapper
659796f614116db77f31d6b0cc1e0c963104948e
[ "MIT" ]
null
null
null
scripts/serial_command.py
philip-long/singletact-python-wrapper
659796f614116db77f31d6b0cc1e0c963104948e
[ "MIT" ]
null
null
null
TIMEOUT=100 def GenerateWriteCommand(i2cAddress, ID, writeLocation, data): i = 0 TIMEOUT = 100 command = bytearray(len(data)+15) while (i < 4): command[i] = 255 i += 1 command[4] = i2cAddress command[5] = TIMEOUT command[6] = ID command[7] = 2 command[...
23.042857
66
0.49349
0
0
0
0
0
0
0
0
0
0
0b89d5110511e9a326a0adf1605527ae76c9199c
1,220
py
Python
1SiteRanking/create_kernel_density_map_arcpy.py
HCH2CHO/EmotionMap
bc572b4182637dcdd65e9a13c92f2fa0d9a3d680
[ "MIT" ]
3
2021-07-15T15:58:52.000Z
2021-07-16T13:22:47.000Z
1SiteRanking/create_kernel_density_map_arcpy.py
HCH2CHO/EmotionMap
bc572b4182637dcdd65e9a13c92f2fa0d9a3d680
[ "MIT" ]
null
null
null
1SiteRanking/create_kernel_density_map_arcpy.py
HCH2CHO/EmotionMap
bc572b4182637dcdd65e9a13c92f2fa0d9a3d680
[ "MIT" ]
4
2017-08-04T12:41:06.000Z
2019-01-31T14:55:10.000Z
# coding:utf-8 # version:python2.7.3 # author:kyh # import x,y data from txt and create kernel density map import arcpy from arcpy.sa import * from arcpy import env def read_point_data(filepath,i): # Read data file and create shp file with open(filepath, 'r') as pt_file: pt=arcpy.Point() ptGeo...
33.888889
127
0.645902
0
0
0
0
0
0
0
0
478
0.391803
0b8ab81b9a756ab917e11852711a0c75ca7514c2
6,676
py
Python
src/explore.py
dngo13/enpm808x_inspection_robot
41f598d97d6526d4e85d1b738cd0bf1bce781b08
[ "MIT" ]
null
null
null
src/explore.py
dngo13/enpm808x_inspection_robot
41f598d97d6526d4e85d1b738cd0bf1bce781b08
[ "MIT" ]
null
null
null
src/explore.py
dngo13/enpm808x_inspection_robot
41f598d97d6526d4e85d1b738cd0bf1bce781b08
[ "MIT" ]
2
2021-12-05T23:39:56.000Z
2021-12-06T17:54:54.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """******************************************************************************* * MIT License * Copyright (c) Charu Sharma 2021 * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
34.061224
100
0.673457
0
0
0
0
0
0
0
0
3,062
0.458658
0b8b1ecbeb3c81d6b86bae93b7d7c89aca388a29
893
py
Python
mapclientplugins/loadcsvstep/utils/processCSV.py
mahyar-osn/mapclientplugins.loadcsvstep
2d483d4054f4c30247303e8d4eba706b70364158
[ "Apache-2.0" ]
null
null
null
mapclientplugins/loadcsvstep/utils/processCSV.py
mahyar-osn/mapclientplugins.loadcsvstep
2d483d4054f4c30247303e8d4eba706b70364158
[ "Apache-2.0" ]
null
null
null
mapclientplugins/loadcsvstep/utils/processCSV.py
mahyar-osn/mapclientplugins.loadcsvstep
2d483d4054f4c30247303e8d4eba706b70364158
[ "Apache-2.0" ]
null
null
null
import pandas as pd class ProcessCSV: """ A general class to read in and process a csv format file using pandas. """ def __init__(self, filename, delim=',', header=None, usecols=None, dtype=None, ignore=False, *args): self._filename = filename self._args = args self._df = self....
28.806452
106
0.631579
866
0.969765
0
0
0
0
0
0
131
0.146697
0b8bbb57f61438a9cdd497a599dabe456d4ca928
2,521
py
Python
src/api/handlers/projects/tokens.py
sap-steffen/InfraBox
36c8b626b517415e4363c99037c5d2c118966e56
[ "Apache-2.0" ]
50
2017-09-03T15:54:08.000Z
2019-03-13T16:53:15.000Z
src/api/handlers/projects/tokens.py
sap-steffen/InfraBox
36c8b626b517415e4363c99037c5d2c118966e56
[ "Apache-2.0" ]
241
2017-09-03T14:40:08.000Z
2022-03-02T02:32:26.000Z
src/api/handlers/projects/tokens.py
sap-steffen/InfraBox
36c8b626b517415e4363c99037c5d2c118966e56
[ "Apache-2.0" ]
17
2017-09-03T11:28:01.000Z
2018-04-30T15:58:18.000Z
from flask import request, g, abort from flask_restplus import Resource, fields from pyinfrabox.utils import validate_uuid4 from pyinfraboxutils.ibflask import auth_required, OK from pyinfraboxutils.ibrestplus import api from pyinfraboxutils.token import encode_project_token from api.namespaces import project as ns p...
31.911392
84
0.624752
1,879
0.745339
0
0
1,958
0.776676
0
0
964
0.382388
0b8c281f2be1b5f006c8dd22b32012df4fb6d732
2,716
py
Python
tigergraph/benchmark.py
yczhang1017/ldbc_snb_bi
5b97da8b2596e88bc460d5568fc7b31587695b62
[ "Apache-2.0" ]
null
null
null
tigergraph/benchmark.py
yczhang1017/ldbc_snb_bi
5b97da8b2596e88bc460d5568fc7b31587695b62
[ "Apache-2.0" ]
null
null
null
tigergraph/benchmark.py
yczhang1017/ldbc_snb_bi
5b97da8b2596e88bc460d5568fc7b31587695b62
[ "Apache-2.0" ]
null
null
null
import argparse from pathlib import Path from datetime import datetime, date, timedelta from queries import run_queries, precompute, cleanup from batches import run_batch_update import os import time import re if __name__ == '__main__': parser = argparse.ArgumentParser(description='LDBC TigerGraph BI workload Benc...
48.5
186
0.654639
0
0
0
0
0
0
0
0
838
0.308542
0b8cb9211db86e8a3c8e8b138c17ac41f7b2fae4
3,001
py
Python
wgan/updater.py
Aixile/chainer-gan-experiments
4371e8369d2805e8ace6d7aacc397aa6e62680a6
[ "MIT" ]
70
2017-06-24T10:55:57.000Z
2021-11-23T22:52:37.000Z
wgan/updater.py
Aixile/chainer-gan-experiments
4371e8369d2805e8ace6d7aacc397aa6e62680a6
[ "MIT" ]
1
2017-08-21T06:19:31.000Z
2017-08-21T07:54:28.000Z
wgan/updater.py
Aixile/chainer-gan-experiments
4371e8369d2805e8ace6d7aacc397aa6e62680a6
[ "MIT" ]
16
2017-08-22T07:00:16.000Z
2018-11-18T16:15:21.000Z
import numpy as np import chainer import chainer.functions as F import chainer.links as L from chainer import cuda, optimizers, serializers, Variable import sys sys.path.insert(0, '../') from common.loss_functions import * class Updater(chainer.training.StandardUpdater): def __init__(self, *args, **kwargs): ...
31.589474
104
0.587471
2,776
0.925025
0
0
0
0
0
0
148
0.049317
0b8d785a697c0b3da778b64fbf2cc6f8d4ea2d37
19,032
py
Python
tools/ig/definitions.py
grahamegrieve/vocab-poc
9f8b6c29b32f15c9513f16f148fdf2a441ba3897
[ "BSD-3-Clause" ]
2
2017-06-25T22:15:18.000Z
2017-09-15T05:12:50.000Z
tools/ig/definitions.py
grahamegrieve/vocab-poc
9f8b6c29b32f15c9513f16f148fdf2a441ba3897
[ "BSD-3-Clause" ]
null
null
null
tools/ig/definitions.py
grahamegrieve/vocab-poc
9f8b6c29b32f15c9513f16f148fdf2a441ba3897
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python3. # create ig definition file with all value sets in the /resources directory import json, os, sys, logging, re, csv from lxml import etree #logging.disable(logging.CRITICAL) logging.basicConfig(level=logging.DEBUG, format=' %(asctime)s - %(levelname)s- %(message)s') logging.info('Start of progr...
49.5625
457
0.620954
0
0
0
0
0
0
0
0
10,782
0.56652
0b8f097eaf823137c79c39a4fcd3c6e49316ae19
8,456
py
Python
src/sadie/renumbering/clients/g3.py
jwillis0720/pybody
2d7c68650ac1ef5f3003ccb67171898eac1f63eb
[ "MIT" ]
null
null
null
src/sadie/renumbering/clients/g3.py
jwillis0720/pybody
2d7c68650ac1ef5f3003ccb67171898eac1f63eb
[ "MIT" ]
null
null
null
src/sadie/renumbering/clients/g3.py
jwillis0720/pybody
2d7c68650ac1ef5f3003ccb67171898eac1f63eb
[ "MIT" ]
null
null
null
from functools import lru_cache from itertools import product from pathlib import Path from typing import Optional, List, Tuple from pydantic import validate_arguments import pyhmmer import requests as r from yarl import URL from sadie.typing import Species, Chain, Source class G3: """API Wrapper with OpenAPI f...
33.555556
119
0.561968
8,178
0.967124
0
0
4,525
0.535123
0
0
2,472
0.292337
0b904a57fdd0e7c89f250e4ba02b11a25b8c89d4
1,683
py
Python
projects/shadow/kmap-builder-jython27/MapReduce/mappers/__init__.py
zaqwes8811/smart-vocabulary-cards
abeab5c86b1c6f68d8796475cba80c4f2c6055ff
[ "Apache-2.0" ]
null
null
null
projects/shadow/kmap-builder-jython27/MapReduce/mappers/__init__.py
zaqwes8811/smart-vocabulary-cards
abeab5c86b1c6f68d8796475cba80c4f2c6055ff
[ "Apache-2.0" ]
11
2015-01-25T14:22:52.000Z
2015-09-08T09:59:38.000Z
projects/shadow/kmap-builder-jython27/MapReduce/mappers/__init__.py
zaqwes8811/vocabulary-cards
abeab5c86b1c6f68d8796475cba80c4f2c6055ff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from nlp_components.content_items_processors import process_list_content_sentences from nlp_components.content_items_processors import process_list_content_sentences_real import dals.os_io.io_wrapper as dal import json # NO DRY!! def read_utf_txt_file(fname): sets = dal.get_utf8_template() se...
24.75
87
0.673203
0
0
0
0
0
0
0
0
340
0.191874
0b9068ae3299f03b04a8be28a4b732a299e46459
1,132
py
Python
config.py
xXAligatorXx/repostAlert
74f450b577fa0971632a57c7d1f599eea4808427
[ "MIT" ]
25
2018-10-18T15:16:39.000Z
2019-06-06T04:33:20.000Z
config.py
xXAligatorXx/repostAlert
74f450b577fa0971632a57c7d1f599eea4808427
[ "MIT" ]
6
2018-10-17T01:34:13.000Z
2019-06-08T18:31:41.000Z
config.py
xXAligatorXx/repostAlert
74f450b577fa0971632a57c7d1f599eea4808427
[ "MIT" ]
2
2018-10-25T19:42:45.000Z
2018-12-05T23:09:06.000Z
import os client_id = os.environ['BOT_CLIENT_ID'] client_secret = os.environ['BOT_CLIENT_SECRET'] user_agent = os.environ['BOT_USER_AGENT'] username = os.environ['BOT_USERNAME'] password = os.environ['BOT_PASSWORD'] num_subs = int(os.environ['BOT_SUB_COUNT']) sub_settings = [[ os.environ['BOT_SUBREDDIT' + i], ...
56.6
102
0.682862
0
0
0
0
0
0
0
0
368
0.325088
0b906bf27fc67aeba61a035efc941b80ca56e405
4,305
py
Python
lib/aquilon/worker/formats/list.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
7
2015-07-31T05:57:30.000Z
2021-09-07T15:18:56.000Z
lib/aquilon/worker/formats/list.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
115
2015-03-03T13:11:46.000Z
2021-09-20T12:42:24.000Z
lib/aquilon/worker/formats/list.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
13
2015-03-03T11:17:59.000Z
2021-09-09T09:16:41.000Z
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2008,2009,2010,2011,2012,2013,2014,2015,2017 Contributor # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ma...
38.783784
83
0.673635
2,899
0.673403
0
0
0
0
0
0
1,220
0.283391
0b9113a200832679e9fc55536bc662bb2d860b4c
228
py
Python
satyrus/sat/types/string.py
lucasvg/Satyrus3-FinalProject-EspTopsOTM
024785752abdc46e3463d8c94df7c3da873c354d
[ "MIT" ]
null
null
null
satyrus/sat/types/string.py
lucasvg/Satyrus3-FinalProject-EspTopsOTM
024785752abdc46e3463d8c94df7c3da873c354d
[ "MIT" ]
null
null
null
satyrus/sat/types/string.py
lucasvg/Satyrus3-FinalProject-EspTopsOTM
024785752abdc46e3463d8c94df7c3da873c354d
[ "MIT" ]
null
null
null
from .main import SatType class String(SatType, str): def __new__(cls, *args, **kwargs): return str.__new__(cls, *args, **kwargs) def __init__(self, *args, **kwargs): SatType.__init__(self)
25.333333
49
0.605263
199
0.872807
0
0
0
0
0
0
0
0
0b944182e57c98d2c412133b9ff0a2ad81333fdb
737
py
Python
setup.py
ZeroCater/zerocaterpy
824af8613db0c5f203c0b2f7cebd830ee80eea5d
[ "MIT" ]
null
null
null
setup.py
ZeroCater/zerocaterpy
824af8613db0c5f203c0b2f7cebd830ee80eea5d
[ "MIT" ]
null
null
null
setup.py
ZeroCater/zerocaterpy
824af8613db0c5f203c0b2f7cebd830ee80eea5d
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='zerocater', version='0.0.1', description="Python interface to ZeroCater", long_description='', keywords='zerocater food delivery meal planning catering lunch', author='ZeroCater', author_email='[email protected]', url='https://github.c...
35.095238
76
0.63365
0
0
0
0
0
0
0
0
431
0.584803
0b95ab4e62401288fe9f479867e2cab6f6c5d09c
373
py
Python
tests/conftest.py
scottmanderson/minerva
fe6a6857d892d9c7d881701c91990d9697bde00e
[ "MIT" ]
null
null
null
tests/conftest.py
scottmanderson/minerva
fe6a6857d892d9c7d881701c91990d9697bde00e
[ "MIT" ]
null
null
null
tests/conftest.py
scottmanderson/minerva
fe6a6857d892d9c7d881701c91990d9697bde00e
[ "MIT" ]
null
null
null
import pytest from app import create_app, db from config import TestConfig @pytest.fixture def test_client(): flask_app = create_app(TestConfig) with flask_app.test_client() as testing_client: with flask_app.app_context(): yield testing_client @pytest.fixture def init_database(test_clie...
18.65
51
0.72118
0
0
259
0.69437
291
0.780161
0
0
0
0
0b96aaa21f422ac0c7d22576279c69b61dd42c95
154
py
Python
Test/two/payments/momo/urls.py
titan256/Python-Django-Assignment
9f56f69ea7182456729116e27435231925d24d11
[ "MIT" ]
null
null
null
Test/two/payments/momo/urls.py
titan256/Python-Django-Assignment
9f56f69ea7182456729116e27435231925d24d11
[ "MIT" ]
9
2020-06-05T23:53:04.000Z
2022-02-10T08:33:32.000Z
Test/two/payments/momo/urls.py
titan256/Python-Django-Assignment
9f56f69ea7182456729116e27435231925d24d11
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path , include from . import views urlpatterns = [ path('',views.index,name='index') ]
19.25
38
0.701299
0
0
0
0
0
0
0
0
9
0.058442
0b975c6ddf1a134fa942ba06d2fe6a39b749365f
6,435
py
Python
pdsensorvis/sensors/models.py
mickeykkim/masters-project-sphere
6dbe0be877058e647f5e3822932e5a70f181bb53
[ "MIT" ]
2
2019-10-05T20:59:41.000Z
2019-11-01T20:25:39.000Z
pdsensorvis/sensors/models.py
mickeykkim/masters-project-sphere
6dbe0be877058e647f5e3822932e5a70f181bb53
[ "MIT" ]
6
2019-10-24T12:28:02.000Z
2021-08-09T09:56:26.000Z
pdsensorvis/sensors/models.py
mickeykkim/masters-project-sphere
6dbe0be877058e647f5e3822932e5a70f181bb53
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse from django.contrib.auth.models import User from django.utils import timezone import uuid ANNOTATION = ( ('asm', 'Asymmetry'), ('dst', 'Dystonia'), ('dsk', 'Dyskensia'), ('ebt', 'En Bloc Turning'), ('str', 'Short Stride Length'), ('mo...
37.631579
116
0.685004
5,796
0.900699
0
0
0
0
0
0
1,887
0.29324
0b9809b2c18e28f3af61ecc6021ff494abd1e0f4
533
py
Python
setup.py
soumyarani/mopac
72f10fdd3ea3c9c61b6c808ca07ee9031b7d4aa8
[ "MIT" ]
20
2021-03-16T08:18:01.000Z
2022-03-12T13:46:43.000Z
setup.py
soumyarani/mopac
72f10fdd3ea3c9c61b6c808ca07ee9031b7d4aa8
[ "MIT" ]
1
2021-05-13T14:49:25.000Z
2021-05-13T19:45:26.000Z
setup.py
soumyarani/mopac
72f10fdd3ea3c9c61b6c808ca07ee9031b7d4aa8
[ "MIT" ]
5
2020-11-01T15:46:39.000Z
2021-07-30T13:12:06.000Z
from distutils.core import setup from setuptools import find_packages setup( name='mopac', packages=find_packages(), version='0.1', description='Model-based policy optimization', long_description=open('./README.md').read(), author='', author_email='', url='', entry_points={ ...
23.173913
62
0.626642
0
0
0
0
0
0
0
0
178
0.333959
0b9851847b18a4b7b38e82d6bd87af07dc1c57a9
1,531
py
Python
examples/imu.py
dan-stone/canal
8a6b03a46102f7e5ca457538eb03ab9526eec095
[ "MIT" ]
2
2017-02-08T20:27:39.000Z
2019-07-15T00:34:05.000Z
examples/imu.py
dan-stone/canal
8a6b03a46102f7e5ca457538eb03ab9526eec095
[ "MIT" ]
null
null
null
examples/imu.py
dan-stone/canal
8a6b03a46102f7e5ca457538eb03ab9526eec095
[ "MIT" ]
1
2018-05-31T14:09:19.000Z
2018-05-31T14:09:19.000Z
import datetime import canal from influxdb import InfluxDBClient class IMU(canal.Measurement): accelerometer_x = canal.IntegerField() accelerometer_y = canal.IntegerField() accelerometer_z = canal.IntegerField() gyroscope_x = canal.IntegerField() gyroscope_y = canal.IntegerField() gyroscope_z...
27.836364
65
0.640758
301
0.196604
0
0
0
0
0
0
111
0.072502
0b98688189c3ac958636f3a3393afa2872fb1f5c
2,820
py
Python
lib/ravstack/runtime.py
geertj/raviron
7920c6b71757eddcca16b60051c1cf08706ae11b
[ "MIT" ]
1
2015-05-11T21:39:35.000Z
2015-05-11T21:39:35.000Z
lib/ravstack/runtime.py
geertj/raviron
7920c6b71757eddcca16b60051c1cf08706ae11b
[ "MIT" ]
null
null
null
lib/ravstack/runtime.py
geertj/raviron
7920c6b71757eddcca16b60051c1cf08706ae11b
[ "MIT" ]
null
null
null
# # This file is part of ravstack. Ravstack is free software available under # the terms of the MIT license. See the file "LICENSE" that was provided # together with this source file for the licensing terms. # # Copyright (c) 2015 the ravstack authors. See the file "AUTHORS" for a # complete list. from __future__ impo...
30.989011
89
0.693617
0
0
0
0
0
0
0
0
906
0.321277
0b9897a43237e684b6c66f4d6a3b18dc5aaad9da
1,217
py
Python
onetouch.py
kakoni/insulaudit
18fe0802bafe5764882ac4e65e472fdc840baa45
[ "MIT" ]
1
2020-11-28T13:23:58.000Z
2020-11-28T13:23:58.000Z
onetouch.py
kakoni/insulaudit
18fe0802bafe5764882ac4e65e472fdc840baa45
[ "MIT" ]
null
null
null
onetouch.py
kakoni/insulaudit
18fe0802bafe5764882ac4e65e472fdc840baa45
[ "MIT" ]
null
null
null
#!/usr/bin/python import user import serial from pprint import pprint, pformat import insulaudit from insulaudit.data import glucose from insulaudit.log import io from insulaudit.devices import onetouch2 import sys PORT = '/dev/ttyUSB0' def get_serial( port, timeout=2 ): return serial.Serial( port, timeout=timeou...
22.537037
89
0.67461
0
0
0
0
0
0
0
0
229
0.188168
0b9a8528a7dd0b2f831662e5079ebdffe6991f3a
3,743
py
Python
src/graphdb_builder/databases/parsers/smpdbParser.py
hhefzi/CKG
e117502a05f870174372da275e22ac3f8735d65a
[ "MIT" ]
null
null
null
src/graphdb_builder/databases/parsers/smpdbParser.py
hhefzi/CKG
e117502a05f870174372da275e22ac3f8735d65a
[ "MIT" ]
1
2020-06-11T11:59:42.000Z
2020-07-01T11:13:51.000Z
src/graphdb_builder/databases/parsers/smpdbParser.py
vemonet/CKG
c9e15c4c8ec8d81ca05c67e9a6f346ca385d8fbe
[ "MIT" ]
1
2022-02-02T10:56:32.000Z
2022-02-02T10:56:32.000Z
import os.path import zipfile import pandas as pd from collections import defaultdict from graphdb_builder import builder_utils ######################### # SMPDB database # ######################### def parser(databases_directory, download=True): config = builder_utils.get_config(config_name="smpdbConfig.ym...
39.819149
165
0.608068
0
0
0
0
0
0
0
0
478
0.127705
0b9b80c225b518a078b36396f1fbccc56916e124
738
py
Python
server/waitFramerate.py
mboerwinkle/RingGame
5a9b6a6ea394c1e88689fa062d4d348383ab406a
[ "MIT" ]
null
null
null
server/waitFramerate.py
mboerwinkle/RingGame
5a9b6a6ea394c1e88689fa062d4d348383ab406a
[ "MIT" ]
null
null
null
server/waitFramerate.py
mboerwinkle/RingGame
5a9b6a6ea394c1e88689fa062d4d348383ab406a
[ "MIT" ]
null
null
null
import time #Timing stuff lastTime = None prevFrameTime = 0; def waitFramerate(T): #TODO if we have enough time, call the garbage collector global lastTime, prevFrameTime ctime = time.monotonic() if lastTime: frameTime = ctime-lastTime #how long the last frame took sleepTime = T-frameTime #how much time is rem...
32.086957
114
0.720867
0
0
0
0
0
0
0
0
247
0.334688
0b9de1232f56d34e55746d5d53165b3e1ae67c6c
9,988
py
Python
shellbot/spaces/local.py
bernard357/shellbot
daf64fbab4085d1591bf9a1aecd06b4fc615d132
[ "Apache-2.0" ]
11
2017-04-30T18:10:27.000Z
2021-11-07T16:59:29.000Z
shellbot/spaces/local.py
DataCraft-AI/shellbot
daf64fbab4085d1591bf9a1aecd06b4fc615d132
[ "Apache-2.0" ]
38
2017-04-20T17:33:05.000Z
2017-11-10T20:19:07.000Z
shellbot/spaces/local.py
DataCraft-AI/shellbot
daf64fbab4085d1591bf9a1aecd06b4fc615d132
[ "Apache-2.0" ]
3
2017-04-21T21:14:53.000Z
2021-07-27T22:01:21.000Z
# -*- coding: utf-8 -*- # 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 "Li...
26.634667
80
0.580396
8,932
0.894273
1,264
0.126552
0
0
0
0
6,015
0.602223
0b9e17c3c6711c5899263cca3e86df88aba125ad
13,497
py
Python
src/warp/yul/AstTools.py
sambarnes/warp
f841afa22e665d5554587eaa866c4790698bfc22
[ "Apache-2.0" ]
414
2021-07-17T13:06:55.000Z
2022-03-31T14:57:10.000Z
src/warp/yul/AstTools.py
sambarnes/warp
f841afa22e665d5554587eaa866c4790698bfc22
[ "Apache-2.0" ]
78
2021-07-19T12:33:56.000Z
2022-03-29T17:16:27.000Z
src/warp/yul/AstTools.py
sambarnes/warp
f841afa22e665d5554587eaa866c4790698bfc22
[ "Apache-2.0" ]
19
2021-08-18T03:55:54.000Z
2022-03-29T15:29:48.000Z
from __future__ import annotations import re from typing import Union import warp.yul.ast as ast from warp.yul.AstVisitor import AstVisitor from warp.yul.WarpException import WarpException class AstParser: def __init__(self, text: str): self.lines = text.splitlines() if len(self.lines) == 0: ...
32.601449
88
0.572127
13,300
0.985404
0
0
0
0
0
0
1,934
0.143291
0b9fa6b8eac70139650145aa00e7cb7eb8455c1b
5,911
py
Python
srfnef/tools/doc_gen/doc_generator.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/tools/doc_gen/doc_generator.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/tools/doc_gen/doc_generator.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ''' @author: Minghao Guo @contact: [email protected] @software: basenef @file: doc_generator.py @date: 4/13/2019 @desc: ''' import os import sys import time from getpass import getuser import matplotlib import numpy as np import json from srfnef import Image, MlemFull matplotlib.use('Agg') autho...
31.110526
99
0.607511
0
0
0
0
0
0
0
0
1,102
0.186432
0b9ff21662fde4d991d952e6a81287147181af9f
760
py
Python
prep_scripts/0_join_data.py
linas-p/EVDPEP
2062e20ef784a76eebaf71ebbe4f9006cde5bbd5
[ "CC0-1.0" ]
5
2021-10-05T14:02:52.000Z
2021-11-23T07:59:06.000Z
prep_scripts/0_join_data.py
patrickiswwgp/EVDPEP
2062e20ef784a76eebaf71ebbe4f9006cde5bbd5
[ "CC0-1.0" ]
1
2021-10-31T14:41:48.000Z
2021-10-31T16:23:45.000Z
prep_scripts/0_join_data.py
patrickiswwgp/EVDPEP
2062e20ef784a76eebaf71ebbe4f9006cde5bbd5
[ "CC0-1.0" ]
3
2021-11-23T07:59:17.000Z
2022-03-31T09:09:03.000Z
import pandas as pd import numpy as np DATA_PATH = "./data/EVconsumption/" weather = pd.read_csv(DATA_PATH + "dimweathermeasure.csv", sep = "|") osm = pd.read_csv(DATA_PATH + "osm_dk_20140101.csv", sep = "|") data0 = pd.read_csv(DATA_PATH + "2020_11_25_aal_viterbi.csv", sep = ",") data1 = pd.read_csv(DATA_PATH + "202...
38
81
0.711842
0
0
0
0
0
0
0
0
266
0.35
0ba17e31d084e4b9249ccb1a58a413d758400527
964
py
Python
csuibot/utils/kbbi.py
chadmadna/CSUIBot
a6f54639c256a3c86a9aa7c3fc094e69ce96a1b8
[ "Apache-2.0" ]
null
null
null
csuibot/utils/kbbi.py
chadmadna/CSUIBot
a6f54639c256a3c86a9aa7c3fc094e69ce96a1b8
[ "Apache-2.0" ]
null
null
null
csuibot/utils/kbbi.py
chadmadna/CSUIBot
a6f54639c256a3c86a9aa7c3fc094e69ce96a1b8
[ "Apache-2.0" ]
null
null
null
import requests import json class WordDefinition: def __init__(self, word): self.word = word self.definisi = None self.json_data = None def url_data(self): api_url = 'http://kateglo.com/api.php' r = requests.get(api_url, params={ 'format': 'json', 'phrase'...
28.352941
89
0.580913
933
0.967842
0
0
165
0.171162
0
0
142
0.147303
0ba1dc47fec515daa7ce78ab6cbd344fd812af6f
113,179
py
Python
networking_vsphere/tests/unit/agent/test_ovsvapp_agent.py
Mirantis/vmware-dvs
37b874f9bf40b47d0de231c640367275fb3afb9b
[ "Apache-2.0" ]
8
2015-04-23T15:36:56.000Z
2019-03-06T13:23:28.000Z
networking_vsphere/tests/unit/agent/test_ovsvapp_agent.py
Mirantis/vmware-dvs
37b874f9bf40b47d0de231c640367275fb3afb9b
[ "Apache-2.0" ]
1
2016-10-04T13:24:50.000Z
2016-10-04T13:24:50.000Z
networking_vsphere/tests/unit/agent/test_ovsvapp_agent.py
Mirantis/vmware-dvs
37b874f9bf40b47d0de231c640367275fb3afb9b
[ "Apache-2.0" ]
19
2015-09-15T13:25:01.000Z
2019-09-03T08:23:21.000Z
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # # All Rights Reserved. # # 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/LIC...
52.54364
96
0.594227
108,876
0.961981
0
0
10,667
0.094249
0
0
12,212
0.1079
0ba2dfd95ee79027d8c63a0c75d4bd279b8d3f02
30
py
Python
yolov3/utils/__init__.py
hysts/pytorch_yolov3
6d4c7a1e42d366894effac8ca52f7116f891b5ab
[ "MIT" ]
13
2019-03-22T15:22:22.000Z
2021-09-30T21:15:37.000Z
yolov3/utils/__init__.py
hysts/pytorch_yolov3
6d4c7a1e42d366894effac8ca52f7116f891b5ab
[ "MIT" ]
null
null
null
yolov3/utils/__init__.py
hysts/pytorch_yolov3
6d4c7a1e42d366894effac8ca52f7116f891b5ab
[ "MIT" ]
null
null
null
from yolov3.utils import data
15
29
0.833333
0
0
0
0
0
0
0
0
0
0
0ba3c4d7d4d48cd32673696a0d4ce0dedcefcaca
21,354
py
Python
pootlestuff/watchables.py
pootle/pootles_utils
bb47103e71ccc4fa01269259b73ca1932184af84
[ "UPL-1.0" ]
null
null
null
pootlestuff/watchables.py
pootle/pootles_utils
bb47103e71ccc4fa01269259b73ca1932184af84
[ "UPL-1.0" ]
null
null
null
pootlestuff/watchables.py
pootle/pootles_utils
bb47103e71ccc4fa01269259b73ca1932184af84
[ "UPL-1.0" ]
null
null
null
""" This module provides classes that support observers, smart value handling and debug functions All changes to values nominate an agent, and observers nominate the agent making changes they are interested in. It supercedes the pvars module """ import logging, sys, threading, pathlib, math, json from enum import Enu...
38.475676
177
0.594924
20,093
0.940948
0
0
0
0
0
0
8,184
0.383254
0ba40eb83c69821a416e50be4bddb8886aa2cb30
578
py
Python
tests/test_codecs.py
reece/et
41977444a95ac8b8af7a73706f1e18634914d37f
[ "MIT" ]
null
null
null
tests/test_codecs.py
reece/et
41977444a95ac8b8af7a73706f1e18634914d37f
[ "MIT" ]
null
null
null
tests/test_codecs.py
reece/et
41977444a95ac8b8af7a73706f1e18634914d37f
[ "MIT" ]
null
null
null
import et.codecs tests = [ { "data": 0, "e_data": { 1: b'\x00\x010', 2: b'\x00\x02x\x9c3\x00\x00\x001\x001' } }, { "data": {}, "e_data": { 1: b'\x00\x01{}', 2: b'\x00\x02x\x9c\xab\xae\x05\x00\x01u\x00\xf9' } ...
19.931034
79
0.448097
0
0
0
0
0
0
0
0
169
0.292388
0ba563c5f1a8e8092fcd4bece03a89610c759cd4
2,801
py
Python
tests/test_sa.py
mariushelf/sa2django
936b0a70b0ccc8faf3ca26ff241b0b6dac13f204
[ "MIT" ]
null
null
null
tests/test_sa.py
mariushelf/sa2django
936b0a70b0ccc8faf3ca26ff241b0b6dac13f204
[ "MIT" ]
null
null
null
tests/test_sa.py
mariushelf/sa2django
936b0a70b0ccc8faf3ca26ff241b0b6dac13f204
[ "MIT" ]
null
null
null
import sqlite3 import pytest from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import tests.testsite.testapp.models as dm from tests.sa_models import Base, Car, Child, Dog, Parent @pytest.fixture(scope="session") def engine(): print("NEW ENGINE") engine = create_engine( "s...
27.194175
71
0.687612
0
0
409
0.146019
2,248
0.802571
0
0
253
0.090325
0ba58112cd9b83adb66bbb157c35557326dccf99
10,409
py
Python
src/github4/session.py
staticdev/github3.py
b9af598dcf1771c083dcc512a2aa8e5008bf4ea8
[ "MIT" ]
null
null
null
src/github4/session.py
staticdev/github3.py
b9af598dcf1771c083dcc512a2aa8e5008bf4ea8
[ "MIT" ]
32
2021-02-17T19:46:21.000Z
2021-05-12T05:56:03.000Z
src/github4/session.py
staticdev/github3.py
b9af598dcf1771c083dcc512a2aa8e5008bf4ea8
[ "MIT" ]
null
null
null
"""Module containing session and auth logic.""" import collections.abc as abc_collections import datetime from contextlib import contextmanager from logging import getLogger import dateutil.parser import requests from . import __version__ from . import exceptions as exc __url_cache__ = {} __logs__ = getLogger(__pac...
33.149682
87
0.639639
9,695
0.931406
712
0.068402
1,226
0.117783
0
0
4,006
0.384859
0ba6ccc9869c36c54441983043be28e4255463c3
3,046
py
Python
models/ffn_ace.py
MilesQLi/Theano-Lights
59864f4a1b089c04ff0403a6036ee052078fcd7d
[ "MIT" ]
313
2015-03-23T15:19:58.000Z
2021-05-17T15:40:09.000Z
models/ffn_ace.py
MilesQLi/Theano-Lights
59864f4a1b089c04ff0403a6036ee052078fcd7d
[ "MIT" ]
2
2015-08-31T06:35:31.000Z
2016-04-04T11:55:43.000Z
models/ffn_ace.py
Ivaylo-Popov/Theano-Lights
3c9de807e42e3875b1e3f4c1e8d02ad1242ddc94
[ "MIT" ]
68
2015-05-16T03:26:17.000Z
2018-08-19T08:40:18.000Z
import theano import theano.tensor as T from theano.sandbox.rng_mrg import MRG_RandomStreams from theano.tensor.nnet.conv import conv2d from theano.tensor.signal.downsample import max_pool_2d from theano.tensor.shared_randomstreams import RandomStreams import numpy as np from toolbox import * from modelbase import * ...
34.613636
97
0.591924
2,705
0.88805
0
0
0
0
0
0
190
0.062377
0ba8551d5076fefbf31d48a58d0338bdc2763c0b
181
py
Python
src/misc/helpers.py
dnmarkon/kaggle_elo_merchant
92ac552d72234455455c95f53e6091017f048504
[ "MIT" ]
null
null
null
src/misc/helpers.py
dnmarkon/kaggle_elo_merchant
92ac552d72234455455c95f53e6091017f048504
[ "MIT" ]
null
null
null
src/misc/helpers.py
dnmarkon/kaggle_elo_merchant
92ac552d72234455455c95f53e6091017f048504
[ "MIT" ]
null
null
null
import pandas as pd def one_hot(df, column): df = pd.concat([df, pd.get_dummies(df[column], prefix=column)], axis=1) df.drop([column], axis=1, inplace=True) return df
22.625
75
0.662983
0
0
0
0
0
0
0
0
0
0
0ba8bac551a05bebe5ab8cdbe7162fe74234100b
1,019
py
Python
1306_Jump_Game_III.py
imguozr/LC-Solutions
5e5e7098d2310c972314c9c9895aafd048047fe6
[ "WTFPL" ]
null
null
null
1306_Jump_Game_III.py
imguozr/LC-Solutions
5e5e7098d2310c972314c9c9895aafd048047fe6
[ "WTFPL" ]
null
null
null
1306_Jump_Game_III.py
imguozr/LC-Solutions
5e5e7098d2310c972314c9c9895aafd048047fe6
[ "WTFPL" ]
null
null
null
from typing import List class Solution: """ BFS """ def canReach_1(self, arr: List[int], start: int) -> bool: """ Recursively. """ seen = set() def helper(pos): if not 0 <= pos < len(arr) or pos in seen: return False ...
24.261905
67
0.459274
992
0.973503
0
0
0
0
0
0
102
0.100098
0baa80eb9ba40c6d66b4f05785427f91545460d9
81
py
Python
Extensions/BabaGUI/config.py
siva-msft/baba-is-auto
3237b5b70167130558827979bde7dcee14ef39f3
[ "MIT" ]
108
2019-09-11T06:31:35.000Z
2022-03-28T13:02:56.000Z
Extensions/BabaGUI/config.py
siva-msft/baba-is-auto
3237b5b70167130558827979bde7dcee14ef39f3
[ "MIT" ]
29
2019-09-12T00:28:04.000Z
2022-02-20T14:56:27.000Z
Extensions/BabaGUI/config.py
utilForever/baba-is-auto
11937742e25b37b1e27de87fe74d10f09062d6ce
[ "MIT" ]
14
2020-02-24T05:41:43.000Z
2022-03-28T12:43:34.000Z
import pygame FPS = 60 BLOCK_SIZE = 48 COLOR_BACKGROUND = pygame.Color(0, 0, 0)
13.5
40
0.728395
0
0
0
0
0
0
0
0
0
0
0bab9c96a95c9a1b5bf24f9a433d56e2555e1a77
392
py
Python
simulation/strategies/bucketing.py
kantai/hyperbolic-caching
884c466c311bb5b9fbdd09791d829b04032f3947
[ "MIT" ]
15
2017-07-13T17:30:01.000Z
2021-05-18T11:51:13.000Z
simulation/strategies/bucketing.py
kantai/hyperbolic-caching
884c466c311bb5b9fbdd09791d829b04032f3947
[ "MIT" ]
null
null
null
simulation/strategies/bucketing.py
kantai/hyperbolic-caching
884c466c311bb5b9fbdd09791d829b04032f3947
[ "MIT" ]
6
2017-07-13T21:09:04.000Z
2021-04-12T15:22:57.000Z
class AveragingBucketUpkeep: def __init__(self): self.numer = 0.0 self.denom = 0 def add_cost(self, cost): self.numer += cost self.denom += 1 return self.numer / self.denom def rem_cost(self, cost): self.numer -= cost self.denom -= 1 if self....
23.058824
38
0.543367
391
0.997449
0
0
0
0
0
0
0
0
0bae78fa6080de85a0feb221980172f577f30cf7
42,674
py
Python
packstack/plugins/neutron_350.py
melroyr/havana-packstack
72cdb0e5e29df4cccb81844ec8b365dfededf4f7
[ "Apache-2.0" ]
null
null
null
packstack/plugins/neutron_350.py
melroyr/havana-packstack
72cdb0e5e29df4cccb81844ec8b365dfededf4f7
[ "Apache-2.0" ]
null
null
null
packstack/plugins/neutron_350.py
melroyr/havana-packstack
72cdb0e5e29df4cccb81844ec8b365dfededf4f7
[ "Apache-2.0" ]
null
null
null
""" Installs and configures neutron """ import logging import os import re import uuid from packstack.installer import utils from packstack.installer import validators from packstack.installer.utils import split_hosts from packstack.modules.ospluginutils import getManifestTemplate, appendManifestFile # Controller o...
49.334104
200
0.552819
0
0
0
0
0
0
0
0
19,763
0.463116
0baeb09b96866048e3277bdd11b177c6f437a60e
1,217
py
Python
01-Exercicios/Aula001/Ex2.py
AmandaRH07/Python_Entra21
4084962508f1597c0498d8b329e0f45e2ac55302
[ "MIT" ]
null
null
null
01-Exercicios/Aula001/Ex2.py
AmandaRH07/Python_Entra21
4084962508f1597c0498d8b329e0f45e2ac55302
[ "MIT" ]
null
null
null
01-Exercicios/Aula001/Ex2.py
AmandaRH07/Python_Entra21
4084962508f1597c0498d8b329e0f45e2ac55302
[ "MIT" ]
null
null
null
#--- Exercício 2 - Variáveis #--- Crie um menu para um sistema de cadastro de funcionários #--- O menu deve ser impresso com a função format() #--- As opções devem ser variáveis do tipo inteiro #--- As descrições das opções serão: #--- Cadastrar funcionário #--- Listar funcionários #--- Editar funcionário #--...
32.891892
92
0.676253
0
0
0
0
0
0
0
0
1,052
0.831621
0baf09cfe2bff0d7d8fbadcb0dcd9e76b3f75e76
284
py
Python
venv/lib/python3.8/site-packages/crispy_forms/templates/uni_form/uni_form.html.py
Solurix/Flashcards-Django
03c863f6722936093927785a2b20b6b668bb743d
[ "MIT" ]
1
2021-05-16T03:20:23.000Z
2021-05-16T03:20:23.000Z
venv/lib/python3.8/site-packages/crispy_forms/templates/uni_form/uni_form.html.py
Solurix/Flashcards-Django
03c863f6722936093927785a2b20b6b668bb743d
[ "MIT" ]
4
2021-03-30T14:06:09.000Z
2021-09-22T19:26:31.000Z
venv/lib/python3.8/site-packages/crispy_forms/templates/uni_form/uni_form.html.py
Solurix/Flashcards-Django
03c863f6722936093927785a2b20b6b668bb743d
[ "MIT" ]
null
null
null
BB BBBBBBBBBBBBBBBBBB BB BBBBBBBBBBBBBBBB BBBBBBB BBBBBBBBBBBBBBBBBBBBBB BBBBB BB BBBBBBBBBB BB BB BB BBBBBBBBBB XXXXXXXXX XXXXXXXXX XXXXXXXXXXXXXXXXX BBBBB BBB BBBBB BB BBBB BBBBBBB BBBBBBBBBBBBBB BBBBBB BB BBBBBBBBBB BB BB BB BBBBBBBBBB XXXXXXXXXXX BBBBB
15.777778
34
0.792254
0
0
0
0
0
0
0
0
0
0
0bb224e01ebd658b05fd1ae3164a24c7e6a95713
1,137
py
Python
baybars/timber.py
dkanarek12/baybars
72f4cff706c11d25ce537cf0fed61bc3ef89da30
[ "Apache-2.0" ]
9
2018-10-16T19:20:35.000Z
2020-06-02T13:27:29.000Z
baybars/timber.py
dkanarek12/baybars
72f4cff706c11d25ce537cf0fed61bc3ef89da30
[ "Apache-2.0" ]
10
2018-07-29T08:56:18.000Z
2019-03-21T18:31:15.000Z
baybars/timber.py
dkanarek12/baybars
72f4cff706c11d25ce537cf0fed61bc3ef89da30
[ "Apache-2.0" ]
9
2018-07-29T08:59:53.000Z
2019-12-31T07:50:57.000Z
# Copyright 2018 Jet.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
33.441176
94
0.769569
0
0
0
0
0
0
0
0
620
0.545295
0bb4673a2136b7bf006e51e515e0e3d35ea020dd
417
py
Python
nlu_hyperopt/space.py
JulianGerhard21/nlu-hyperopt
3d16fda97fa7cf1337b19395a57780e6e2dc9bd3
[ "Apache-2.0" ]
null
null
null
nlu_hyperopt/space.py
JulianGerhard21/nlu-hyperopt
3d16fda97fa7cf1337b19395a57780e6e2dc9bd3
[ "Apache-2.0" ]
null
null
null
nlu_hyperopt/space.py
JulianGerhard21/nlu-hyperopt
3d16fda97fa7cf1337b19395a57780e6e2dc9bd3
[ "Apache-2.0" ]
1
2021-07-08T11:40:27.000Z
2021-07-08T11:40:27.000Z
from hyperopt import hp # Define the search space here, e.g. # from hyperopt.pyll.base import scope # search_space = { # 'epochs': hp.qloguniform('epochs', 0, 4, 2), # 'max_df': hp.uniform('max_df', 1, 2), # 'max_ngrams': scope.int(hp.quniform('max_ngram', 3, 9, 1)) # } # Default search space: Try di...
29.785714
65
0.654676
0
0
0
0
0
0
0
0
337
0.808153
0bb51dc78ddd2967ca706bd880e3869f1feac056
4,633
py
Python
lib/taurus/qt/qtgui/panel/report/basicreport.py
MikeFalowski/taurus
ef041bf35dd847caf08a7efbe072f4020d35522e
[ "CC-BY-3.0" ]
1
2016-10-19T13:54:08.000Z
2016-10-19T13:54:08.000Z
lib/taurus/qt/qtgui/panel/report/basicreport.py
MikeFalowski/taurus
ef041bf35dd847caf08a7efbe072f4020d35522e
[ "CC-BY-3.0" ]
27
2016-05-25T08:56:58.000Z
2019-01-21T09:18:08.000Z
lib/taurus/qt/qtgui/panel/report/basicreport.py
MikeFalowski/taurus
ef041bf35dd847caf08a7efbe072f4020d35522e
[ "CC-BY-3.0" ]
8
2015-07-24T09:16:50.000Z
2018-06-12T12:33:59.000Z
#!/usr/bin/env python ############################################################################# ## # This file is part of Taurus ## # http://taurus-scada.org ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Taurus is free software: you can redistribute it and/or modify # it under the terms of t...
29.890323
77
0.618821
3,223
0.695662
0
0
1,074
0.231815
0
0
1,398
0.301748
0bb56b74527c4ab3380dff7d3851c648cd78de0c
347
py
Python
src/workflows/__init__.py
stufisher/python-workflows
f1f67bb56a0f8a6820762f68e2e59ade2da60a95
[ "BSD-3-Clause" ]
null
null
null
src/workflows/__init__.py
stufisher/python-workflows
f1f67bb56a0f8a6820762f68e2e59ade2da60a95
[ "BSD-3-Clause" ]
null
null
null
src/workflows/__init__.py
stufisher/python-workflows
f1f67bb56a0f8a6820762f68e2e59ade2da60a95
[ "BSD-3-Clause" ]
null
null
null
__version__ = "2.18" def version(): """Returns the version number of the installed workflows package.""" return __version__ class Error(Exception): """Common class for exceptions deliberately raised by workflows package.""" class Disconnected(Error): """Indicates the connection could not be establ...
23.133333
79
0.723343
207
0.596542
0
0
0
0
0
0
222
0.639769
0bb5af4cb0e1469e03fc6ee0d14c4d8bfb035eff
18,592
py
Python
autoarray/structures/grids/grid_decorators.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
autoarray/structures/grids/grid_decorators.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
autoarray/structures/grids/grid_decorators.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
import numpy as np from functools import wraps from autoconf import conf from autoarray.structures.grids.one_d import abstract_grid_1d from autoarray.structures.grids.two_d import grid_2d from autoarray.structures.grids.two_d import grid_2d_interpolate from autoarray.structures.grids.two_d import grid_2d_iterat...
42.254545
122
0.64119
0
0
0
0
14,670
0.789049
0
0
11,199
0.602356
0bb89e9bc4b11618566c516b525db418c9d0a1b7
742
py
Python
079_039_189/ngram_2/get_10_summary.py
Aditya-AS/Question-Answering-System
22c3fe549c03a3b5ba1f86befef3c9f91278d3fc
[ "MIT" ]
null
null
null
079_039_189/ngram_2/get_10_summary.py
Aditya-AS/Question-Answering-System
22c3fe549c03a3b5ba1f86befef3c9f91278d3fc
[ "MIT" ]
null
null
null
079_039_189/ngram_2/get_10_summary.py
Aditya-AS/Question-Answering-System
22c3fe549c03a3b5ba1f86befef3c9f91278d3fc
[ "MIT" ]
null
null
null
""" Sanjay Reddy S-2013A7PS189P Aditya Sarma -2013A7PS079P Vamsi T -2013A7PS039P Artificial Intelligence Term Project """ import pickle import BeautifulSoup import re import boto from boto.s3.connection import S3Connection from boto.s3.key import Key from google import search def get_10_summary(query, sourc...
25.586207
144
0.669811
0
0
0
0
0
0
0
0
484
0.652291
0bb8e30ded6e839a96a8ac9f64f609621cb56e4a
2,055
py
Python
S4/S4 Library/simulation/careers/pick_career_by_agent_interaction.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/careers/pick_career_by_agent_interaction.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/careers/pick_career_by_agent_interaction.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from event_testing.resolver import SingleSimResolver from sims4.resources import Types from sims4.tuning.tunable import TunableList, TunableReference from sims4.tuning.tunable_base import GroupNames from traits.trait_tracker import TraitPickerSuperInteraction import services class PickCareerByAgentInteraction(TraitPic...
60.441176
583
0.734793
1,777
0.86472
627
0.305109
661
0.321655
0
0
376
0.182968
0bb9728183f6cd95e86f2c16d976742c14283f39
149
py
Python
api/urls.py
kirklennon/Clickbait
9ce97d38b3dce78ce151b285a0cc55ddbb7b58be
[ "MIT" ]
1
2020-08-29T09:31:22.000Z
2020-08-29T09:31:22.000Z
api/urls.py
kirklennon/Clickbait
9ce97d38b3dce78ce151b285a0cc55ddbb7b58be
[ "MIT" ]
null
null
null
api/urls.py
kirklennon/Clickbait
9ce97d38b3dce78ce151b285a0cc55ddbb7b58be
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('json', views.api, name='api'), ]
21.285714
40
0.644295
0
0
0
0
0
0
0
0
20
0.134228
0bba1e28f68dedeccae5371afea0ac4ab68e2473
68,549
py
Python
tests/examples/minlplib/waterno2_03.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
2
2021-07-03T13:19:10.000Z
2022-02-06T10:48:13.000Z
tests/examples/minlplib/waterno2_03.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
1
2021-07-04T14:52:14.000Z
2021-07-15T10:17:11.000Z
tests/examples/minlplib/waterno2_03.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
null
null
null
# MINLP written by GAMS Convert at 04/21/18 13:55:18 # # Equation counts # Total E G L N X C B # 617 367 103 147 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
38.381299
117
0.65222
0
0
0
0
0
0
0
0
699
0.010197
0bbab57a58980cab77be4152c0853746383805da
3,265
py
Python
examples/pincell_depletion/restart_depletion.py
norberto-schmidt/openmc
ff4844303154a68027b9c746300f5704f73e0875
[ "MIT" ]
262
2018-08-09T21:27:03.000Z
2022-03-24T05:02:10.000Z
examples/pincell_depletion/restart_depletion.py
norberto-schmidt/openmc
ff4844303154a68027b9c746300f5704f73e0875
[ "MIT" ]
753
2018-08-03T15:26:57.000Z
2022-03-29T23:54:48.000Z
examples/pincell_depletion/restart_depletion.py
norberto-schmidt/openmc
ff4844303154a68027b9c746300f5704f73e0875
[ "MIT" ]
196
2018-08-06T13:41:14.000Z
2022-03-29T20:47:12.000Z
import openmc import openmc.deplete import matplotlib.pyplot as plt ############################################################################### # Load previous simulation results ############################################################################### # Load geometry from statepoint st...
35.879121
90
0.543951
0
0
0
0
0
0
0
0
1,769
0.541807
0bbb896c1f766d40e02d03530e5012bd42f6b56e
660
py
Python
app/schemas/treatment_type.py
DzhonPetrus/Treatment-Management
6b08c59d2d4e79181bbae4e951b7a5fd2e3162f1
[ "MIT" ]
null
null
null
app/schemas/treatment_type.py
DzhonPetrus/Treatment-Management
6b08c59d2d4e79181bbae4e951b7a5fd2e3162f1
[ "MIT" ]
null
null
null
app/schemas/treatment_type.py
DzhonPetrus/Treatment-Management
6b08c59d2d4e79181bbae4e951b7a5fd2e3162f1
[ "MIT" ]
null
null
null
from datetime import datetime as dt from typing import Optional, List from pydantic import BaseModel from ..utils.schemaHelper import Base, as_form class TreatmentTypeBase(Base): name: str room: str description: str fee: float is_active: Optional[str] = None @as_form class CreateTreatmentTy...
19.411765
46
0.721212
487
0.737879
0
0
63
0.095455
0
0
0
0
0bbbc45ba4c350c8c90d7bb728eaa10783237f8b
2,211
py
Python
app/daemon.py
mika-koivusaari/mqtt_db_gateway
c2e6a0f97d340f5a9d8a2f530f3ae0145064fd2b
[ "MIT" ]
1
2017-12-02T17:38:23.000Z
2017-12-02T17:38:23.000Z
app/daemon.py
mika-koivusaari/mqtt_db_gateway
c2e6a0f97d340f5a9d8a2f530f3ae0145064fd2b
[ "MIT" ]
null
null
null
app/daemon.py
mika-koivusaari/mqtt_db_gateway
c2e6a0f97d340f5a9d8a2f530f3ae0145064fd2b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pep3143daemon import DaemonContext, PidFile import signal import os import sys import time class Daemon: def stop(self, pidfile): try: pid = open(pidfile).readline() except IOError: print("Daemon already gone, or pidfile was deleted manually") ...
35.66129
99
0.502035
2,089
0.944821
0
0
0
0
0
0
452
0.204432
0bc0a0c5b56516ed3c7366dbc0aa3ccecc32fda3
623
py
Python
src/posts/forms.py
trivvet/djangoAdvance
28891893869c1c0c3cf67d7f496dda96322de18c
[ "MIT" ]
null
null
null
src/posts/forms.py
trivvet/djangoAdvance
28891893869c1c0c3cf67d7f496dda96322de18c
[ "MIT" ]
null
null
null
src/posts/forms.py
trivvet/djangoAdvance
28891893869c1c0c3cf67d7f496dda96322de18c
[ "MIT" ]
null
null
null
from django import forms from crispy_forms.helper import FormHelper from pagedown.widgets import PagedownWidget from .models import Post class PostForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(PostForm, self).__init__(*args, **kwargs) self.helper = FormHelper(self) cont...
23.961538
72
0.622793
482
0.773676
0
0
0
0
0
0
39
0.0626
0bc0b1a713ee07a7da22300f41d7eef91e9cf3f3
1,621
py
Python
games/migrations/0004_auto_20150726_1430.py
rnelson/library
5f327c188f2847151dcfc92de0dc4f43f24096bf
[ "MIT" ]
null
null
null
games/migrations/0004_auto_20150726_1430.py
rnelson/library
5f327c188f2847151dcfc92de0dc4f43f24096bf
[ "MIT" ]
null
null
null
games/migrations/0004_auto_20150726_1430.py
rnelson/library
5f327c188f2847151dcfc92de0dc4f43f24096bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('games', '0003_auto_20150725_1737'), ] operations = [ migrations.AlterField( model_name='game', name=...
27.016667
60
0.52992
1,512
0.932758
0
0
0
0
0
0
203
0.125231
0bc0f8ad9a5e857c61031c1ca0a45f2bb10b8808
783
py
Python
Exareme-Docker/src/mip-algorithms/HEALTH_CHECK/global.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
Exareme-Docker/src/mip-algorithms/HEALTH_CHECK/global.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
Exareme-Docker/src/mip-algorithms/HEALTH_CHECK/global.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
import sys import json from os import path from argparse import ArgumentParser sys.path.append(path.dirname(path.dirname(path.abspath(__file__))) + '/utils/') from algorithm_utils import set_algorithms_output_data from health_check_lib import HealthCheckLocalDT def main(): # Parse arguments parse...
27.964286
84
0.715198
0
0
0
0
0
0
0
0
119
0.15198
0bc10ee1d8cb8fa794fa00533f0e4782089ee855
107
py
Python
app/search/urlmap.py
Hanaasagi/Ushio
007f8e50e68bf71a1822b09291b1236a1a37c515
[ "MIT" ]
5
2016-10-24T14:01:48.000Z
2017-09-26T07:33:20.000Z
app/search/urlmap.py
Hanaasagi/Ushio
007f8e50e68bf71a1822b09291b1236a1a37c515
[ "MIT" ]
null
null
null
app/search/urlmap.py
Hanaasagi/Ushio
007f8e50e68bf71a1822b09291b1236a1a37c515
[ "MIT" ]
null
null
null
# -*-coding:UTF-8-*- from handler import SearchHandler urlpattern = ( (r'/search', SearchHandler), )
13.375
33
0.654206
0
0
0
0
0
0
0
0
30
0.280374
0bc1b5133ac6d7c68f1be37cb9acd664f71acc62
1,601
py
Python
collect_data/utils/immerseuk/gtr/gtr_extrainfo_awsreduce.py
jaklinger/nesta_dataflow
5d5647dd8d900a40b460bae0841f7d917e53ae08
[ "MIT" ]
null
null
null
collect_data/utils/immerseuk/gtr/gtr_extrainfo_awsreduce.py
jaklinger/nesta_dataflow
5d5647dd8d900a40b460bae0841f7d917e53ae08
[ "MIT" ]
null
null
null
collect_data/utils/immerseuk/gtr/gtr_extrainfo_awsreduce.py
jaklinger/nesta_dataflow
5d5647dd8d900a40b460bae0841f7d917e53ae08
[ "MIT" ]
null
null
null
import logging from utils.common.datapipeline import DataPipeline import boto3 import json from copy import deepcopy s3 = boto3.resource('s3') bucket = s3.Bucket('tier-0') def run(config=None): orgs = [] for obj in bucket.objects.all(): key = str(obj.key) if len(key.split("_")) != 3: ...
25.822581
56
0.519675
0
0
0
0
0
0
0
0
548
0.342286
0bc1b87155af7211f7ef4f7bb261c76723b7c1da
3,595
py
Python
src/features/helpers/processing_v4.py
askoki/nfl_dpi_prediction
dc3256f24ddc0b6725eace2081d1fb1a7e5ce805
[ "MIT" ]
null
null
null
src/features/helpers/processing_v4.py
askoki/nfl_dpi_prediction
dc3256f24ddc0b6725eace2081d1fb1a7e5ce805
[ "MIT" ]
null
null
null
src/features/helpers/processing_v4.py
askoki/nfl_dpi_prediction
dc3256f24ddc0b6725eace2081d1fb1a7e5ce805
[ "MIT" ]
null
null
null
import math import numpy as np from matplotlib.patches import FancyArrowPatch def home_has_possession(row): if row.possessionTeam == row.homeTeamAbbr: return True return False def calculate_team_sitation(row): ball_string = 'football' if row.team == ball_string: return ball_string ...
27.868217
94
0.569958
0
0
0
0
0
0
0
0
779
0.21669
0bc25237116d36d1b3724261d878f108f7fb3326
1,103
py
Python
abc199/d/main.py
KeiNishikawa218/atcoder
0af5e091f8b1fd64d5ca7b46b06b9356eacfe601
[ "MIT" ]
null
null
null
abc199/d/main.py
KeiNishikawa218/atcoder
0af5e091f8b1fd64d5ca7b46b06b9356eacfe601
[ "MIT" ]
null
null
null
abc199/d/main.py
KeiNishikawa218/atcoder
0af5e091f8b1fd64d5ca7b46b06b9356eacfe601
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 class UnionFind(): def __init__(self, n): self.parent = [-1 for _ in range(n)] # 正==子: 根の頂点番号 / 負==根: 連結頂点数 def find(self, x): if self.parent[x] < 0: return x else: self.parent[x] = self.find(self.parent[x]) return self....
23.978261
54
0.481414
824
0.727273
0
0
0
0
0
0
80
0.070609
0bc25628bdeee646aae0cedd3efc79f8829fa812
4,963
py
Python
scripts/corpinfo.py
HiroshiOhta/GetCorporationInfo
3c64ba44a15d481c652da70d62f7127372ac6d1e
[ "Apache-2.0" ]
1
2020-05-24T02:41:24.000Z
2020-05-24T02:41:24.000Z
scripts/corpinfo.py
HiroshiOhta/GetCorporationInfo
3c64ba44a15d481c652da70d62f7127372ac6d1e
[ "Apache-2.0" ]
null
null
null
scripts/corpinfo.py
HiroshiOhta/GetCorporationInfo
3c64ba44a15d481c652da70d62f7127372ac6d1e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # 標準ライブラリ from pathlib import Path from re import search, sub from sys import exit, argv from xml.etree import ElementTree as ET import csv # サードパーティライブラリ from requests import get from requests.exceptions import Timeout, RequestException # ローカルなライブラリ from constants import ENC_API_KEY, NTA_API_...
25.715026
84
0.518638
0
0
0
0
0
0
0
0
2,624
0.437479
e7e46d31c42a93c03c2df71128dd11ecc6e4322c
3,289
py
Python
lib/misc.py
cripplet/langmuir-hash
5b4aa8e705b237704dbb99fbaa89af8cc2e7a8b5
[ "MIT" ]
null
null
null
lib/misc.py
cripplet/langmuir-hash
5b4aa8e705b237704dbb99fbaa89af8cc2e7a8b5
[ "MIT" ]
null
null
null
lib/misc.py
cripplet/langmuir-hash
5b4aa8e705b237704dbb99fbaa89af8cc2e7a8b5
[ "MIT" ]
null
null
null
# custom libs from lib.args import getConf # Python libs from re import sub from os import mkdir from os.path import exists from getpass import getuser from socket import gethostname def genFrame(file): from classes.frame import Frame from lib.array import getGrid grid = getGrid(file) return(Frame(len(grid[0]), l...
28.353448
112
0.617817
0
0
0
0
0
0
0
0
1,325
0.402858
e7e6f4d9ac01c5dc81ed803d1582d06a2e43feb7
5,538
py
Python
actions/geoip.py
cognifloyd/stackstorm-networking_utils
56bbb6fc55f7662c2e7e7cccd79f1ebbfcb1df38
[ "Apache-2.0" ]
null
null
null
actions/geoip.py
cognifloyd/stackstorm-networking_utils
56bbb6fc55f7662c2e7e7cccd79f1ebbfcb1df38
[ "Apache-2.0" ]
null
null
null
actions/geoip.py
cognifloyd/stackstorm-networking_utils
56bbb6fc55f7662c2e7e7cccd79f1ebbfcb1df38
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') 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 th...
36.434211
109
0.501083
4,654
0.840376
0
0
0
0
0
0
1,882
0.339834
e7e747c17639e0dcf83dd1ce0bf4d49fb48d32c9
6,372
py
Python
backend/src/dealer/helpers/result.py
codepals-org/poker
8b58df2ff4d3d9799c42652a9d6942d8ec6b3707
[ "MIT" ]
2
2020-11-07T16:37:14.000Z
2020-11-07T17:11:24.000Z
backend/src/dealer/helpers/result.py
codepals-org/poker
8b58df2ff4d3d9799c42652a9d6942d8ec6b3707
[ "MIT" ]
7
2020-11-07T14:04:06.000Z
2020-11-11T11:49:13.000Z
backend/src/dealer/helpers/result.py
codepals-org/poker
8b58df2ff4d3d9799c42652a9d6942d8ec6b3707
[ "MIT" ]
1
2020-11-08T13:00:27.000Z
2020-11-08T13:00:27.000Z
""" This module comes with functions to decide which poker player out of all players has the best cards. """ import itertools # full_list in [('A','A'),('B','B')...,('F','F')] def results(full_list, public_card): """ The results function takes a list of player cards and the community cards (in the middle of...
38.155689
91
0.44005
0
0
0
0
0
0
0
0
719
0.112837
e7e78d1aba44146a11b4493e469f13a8468f2449
420
py
Python
nimble-newts/askgrieves/chatbot/models.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
40
2020-08-02T07:38:22.000Z
2021-07-26T01:46:50.000Z
nimble-newts/askgrieves/chatbot/models.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
134
2020-07-31T12:15:45.000Z
2020-12-13T04:42:19.000Z
nimble-newts/askgrieves/chatbot/models.py
AvianAnalyst/summer-code-jam-2020
c5e2aeb4ce399c438a1b8aad393d9c2e9ef98a75
[ "MIT" ]
101
2020-07-31T12:00:47.000Z
2021-11-01T09:06:58.000Z
from django.db import models class Chatbot(models.Model): name = models.CharField(max_length=500) def __str__(self): return f"name={self.name}" class WikiArticle(models.Model): name = models.CharField(max_length=500) summary = models.TextField(max_length=100) full_page = models.TextFiel...
23.333333
57
0.7
385
0.916667
0
0
0
0
0
0
61
0.145238
e7e9d221f1fcec4aa818bff540aa8cfe75c86d5f
1,026
py
Python
examples/example_wait_for.py
plun1331/discord.py-components-1
a31b1a0cfbd31b98d01e910ed905c9c70afe0c3e
[ "MIT" ]
1
2021-08-07T18:40:36.000Z
2021-08-07T18:40:36.000Z
examples/example_wait_for.py
plun1331/discord.py-components-1
a31b1a0cfbd31b98d01e910ed905c9c70afe0c3e
[ "MIT" ]
null
null
null
examples/example_wait_for.py
plun1331/discord.py-components-1
a31b1a0cfbd31b98d01e910ed905c9c70afe0c3e
[ "MIT" ]
null
null
null
from discord.ext.commands import Bot from discord_components import DiscordComponents, Button, ButtonStyle, InteractionType from asyncio import TimeoutError bot = Bot("!") @bot.event async def on_ready(): DiscordComponents(bot) print(f"Logged in as {bot.user}!") @bot.command() async def waitforclick(ctx): ...
24.428571
99
0.621832
0
0
0
0
828
0.807018
802
0.781676
154
0.150097
e7ea14302b331a9466a14df8ced10e7042b53923
7,081
py
Python
core/data/dataloader/upb_kitti.py
nemodrive/awesome-semantic-segmentation-pytorch
fa0e4174004822ace0560cc046c2fbdb81f1e1b9
[ "Apache-2.0" ]
null
null
null
core/data/dataloader/upb_kitti.py
nemodrive/awesome-semantic-segmentation-pytorch
fa0e4174004822ace0560cc046c2fbdb81f1e1b9
[ "Apache-2.0" ]
null
null
null
core/data/dataloader/upb_kitti.py
nemodrive/awesome-semantic-segmentation-pytorch
fa0e4174004822ace0560cc046c2fbdb81f1e1b9
[ "Apache-2.0" ]
null
null
null
"""Pascal VOC Semantic Segmentation Dataset.""" import os import torch import numpy as np from PIL import Image from .segbase import SegmentationDataset class VOCSegmentation(SegmentationDataset): """Pascal VOC Semantic Segmentation Dataset. Parameters ---------- root : string Path to VOCdev...
36.880208
141
0.591018
6,858
0.968507
0
0
94
0.013275
0
0
1,975
0.278915
e7ea5fbf2a5ea893fa5d02bc075a60e6e8983358
4,580
py
Python
app/request.py
angelakarenzi5/News-Highlight
3eae6f743f9e5d9eb4ea80b29ae0e2c57dd0aa62
[ "Unlicense" ]
null
null
null
app/request.py
angelakarenzi5/News-Highlight
3eae6f743f9e5d9eb4ea80b29ae0e2c57dd0aa62
[ "Unlicense" ]
null
null
null
app/request.py
angelakarenzi5/News-Highlight
3eae6f743f9e5d9eb4ea80b29ae0e2c57dd0aa62
[ "Unlicense" ]
null
null
null
from app import app import urllib.request,json from .models import source from .models import article Source = source.Source Article = article.Article # Getting api key api_key = app.config['NEWS_API_KEY'] # Getting the source base url base_url = app.config["SOURCE_API_BASE_URL"] article_url = app.config["ARTICLE_A...
31.156463
98
0.691921
0
0
0
0
0
0
0
0
1,050
0.229258
e7ea9b418ef09dc2361de5d9ada98bfd38198af3
19
py
Python
login.py
XM001-creater/test_one
1cf96a45c8dfbf988125e3d250d86fb06fe65c34
[ "MIT" ]
null
null
null
login.py
XM001-creater/test_one
1cf96a45c8dfbf988125e3d250d86fb06fe65c34
[ "MIT" ]
null
null
null
login.py
XM001-creater/test_one
1cf96a45c8dfbf988125e3d250d86fb06fe65c34
[ "MIT" ]
null
null
null
num1 =1 num2 = 222
6.333333
10
0.631579
0
0
0
0
0
0
0
0
0
0
e7ecc557e33faf2b68bd5445272a43c0e0419ea1
445
py
Python
change_file_name.py
Guzhongren/picuture2thumbnail
15d58c2e53652e5c5af9ff1bf89883b9038bfa03
[ "MIT" ]
1
2019-07-07T17:51:37.000Z
2019-07-07T17:51:37.000Z
change_file_name.py
Guzhongren/picuture2thumbnail
15d58c2e53652e5c5af9ff1bf89883b9038bfa03
[ "MIT" ]
null
null
null
change_file_name.py
Guzhongren/picuture2thumbnail
15d58c2e53652e5c5af9ff1bf89883b9038bfa03
[ "MIT" ]
1
2020-01-19T08:27:10.000Z
2020-01-19T08:27:10.000Z
# -*- coding: utf-8 -*- # Author:Guzhongren # created: 2017-05-08 import os path = 'C:\\geoconFailed\\willfix\\' for file in os.listdir(path): if os.path.isfile(os.path.join(path,file))==True: _file= file.split(".") _file_name=_file[0] _file_type=_file[1] new_file_name=_file_name[:-...
27.8125
77
0.624719
0
0
0
0
0
0
0
0
113
0.249448
e7ed80b597ccfb79e5e0d84b01e14970f4384658
434
py
Python
day22/day22.py
norbert-e-horn/adventofcode-2017
81a6a8eb6f23f2191786d1ea8b2aad1f54d9c12a
[ "Apache-2.0" ]
null
null
null
day22/day22.py
norbert-e-horn/adventofcode-2017
81a6a8eb6f23f2191786d1ea8b2aad1f54d9c12a
[ "Apache-2.0" ]
null
null
null
day22/day22.py
norbert-e-horn/adventofcode-2017
81a6a8eb6f23f2191786d1ea8b2aad1f54d9c12a
[ "Apache-2.0" ]
null
null
null
import sys c=[[2if a=="#"else 0for a in i]for i in sys.argv[1].split("\n")] n=len(c) def m(x): d[0]=(d[0]+a[d[1]]+3)%4 a[d[1]]=(x+a[d[1]])%4 if a[d[1]]==2:d[2]+=1 d[1]+=(s+(1-s)*(d[0]&1))*(-1+2*(d[0]&1^(d[0]&2)>>1)) s=1001 a=[] k=(s-n)//2 for i in range(s):a+=[0]*k+c[i-k]+k*[0]if k<=i<(s+n)/2else[0]*s b=list(a) d=[...
20.666667
64
0.495392
0
0
0
0
0
0
0
0
7
0.016129
e7edbdfed8164b295e564361932bcbdae312f33f
10,178
py
Python
armory/scenarios/audio_asr.py
GuillaumeLeclerc/armory
c24928701b4ff6fc37cdb994ea784f9733a8e8da
[ "MIT" ]
1
2021-06-17T23:05:58.000Z
2021-06-17T23:05:58.000Z
armory/scenarios/audio_asr.py
GuillaumeLeclerc/armory
c24928701b4ff6fc37cdb994ea784f9733a8e8da
[ "MIT" ]
null
null
null
armory/scenarios/audio_asr.py
GuillaumeLeclerc/armory
c24928701b4ff6fc37cdb994ea784f9733a8e8da
[ "MIT" ]
null
null
null
""" Automatic speech recognition scenario """ import logging from typing import Optional from tqdm import tqdm import numpy as np from art.preprocessing.audio import LFilter, LFilterPyTorch from armory.utils.config_loading import ( load_dataset, load_model, load_attack, load_adversarial_dataset, ...
39.449612
91
0.599921
8,071
0.792985
0
0
0
0
0
0
2,428
0.238554
e7ee6d842483ab8133f076264eb1658607e7ec98
5,558
py
Python
FMWKubernetesMAA/OracleEnterpriseDeploymentAutomation/OracleWebCenterSites/charts/wc-sites/unicast.py
rishiagarwal-oracle/fmw-kubernetes
cf53d0aac782cacaa26cb1f8f1cdb7130f69d64f
[ "UPL-1.0", "MIT" ]
null
null
null
FMWKubernetesMAA/OracleEnterpriseDeploymentAutomation/OracleWebCenterSites/charts/wc-sites/unicast.py
rishiagarwal-oracle/fmw-kubernetes
cf53d0aac782cacaa26cb1f8f1cdb7130f69d64f
[ "UPL-1.0", "MIT" ]
null
null
null
FMWKubernetesMAA/OracleEnterpriseDeploymentAutomation/OracleWebCenterSites/charts/wc-sites/unicast.py
rishiagarwal-oracle/fmw-kubernetes
cf53d0aac782cacaa26cb1f8f1cdb7130f69d64f
[ "UPL-1.0", "MIT" ]
null
null
null
# Copyright (c) 2022, Oracle and/or its affiliates. # # Licensed under the Universal Permissive License v 1.0 as shown at # https://oss.oracle.com/licenses/upl import xml.dom.minidom import re import sys def getManagedServerCount(domainHome): # use the parse() function to load and parse an XML file doc = xml.dom....
45.933884
161
0.737496
0
0
0
0
0
0
0
0
2,033
0.365779
e7ee8f88cffe1a482d5fa7391195738c0119a53d
2,228
py
Python
SQLFileGenerator/sqlqueries.py
DataMadeEasy/PySQLFileGenerator
3efc54fa7b8741f48d00dc199675081b0fc4e04d
[ "BSD-2-Clause" ]
null
null
null
SQLFileGenerator/sqlqueries.py
DataMadeEasy/PySQLFileGenerator
3efc54fa7b8741f48d00dc199675081b0fc4e04d
[ "BSD-2-Clause" ]
null
null
null
SQLFileGenerator/sqlqueries.py
DataMadeEasy/PySQLFileGenerator
3efc54fa7b8741f48d00dc199675081b0fc4e04d
[ "BSD-2-Clause" ]
null
null
null
sqlqueries = { 'WeatherForecast':"select concat ('FY', to_char(f.forecasted_timestamp, 'YY')) Fiscal_yr, to_char(f.forecasted_timestamp, 'MON') Fiscal_mth, concat ('Day_', to_char(f.forecasted_timestamp, 'DD')) Fiscal_day, f.zipcode zip, min(f.temp_avg) low, max(f.temp_avg) high, max(f.wind_speed) wind, max(f.humid...
371.333333
604
0.763465
0
0
0
0
0
0
0
0
2,185
0.9807
e7f06cecae55d479e6604b53a295b76a9bdf0276
5,005
py
Python
backend/tests/unit/protocols/application/test_lists.py
pez-globo/pufferfish-software
b42fecd652731dd80fbe366e95983503fced37a4
[ "Apache-2.0" ]
1
2020-10-20T23:47:23.000Z
2020-10-20T23:47:23.000Z
backend/tests/unit/protocols/application/test_lists.py
pez-globo/pufferfish-software
b42fecd652731dd80fbe366e95983503fced37a4
[ "Apache-2.0" ]
242
2020-10-23T06:44:01.000Z
2022-01-28T05:50:45.000Z
backend/tests/unit/protocols/application/test_lists.py
pez-globo/pufferfish-vent-software
f1e5e47acf1941e7c729adb750b85bf26c38b274
[ "Apache-2.0" ]
1
2021-04-12T02:10:18.000Z
2021-04-12T02:10:18.000Z
"""Test the functionality of protocols.application.states classes.""" from ventserver.protocols.application import lists from ventserver.protocols.protobuf import mcu_pb as pb def test_send_new_elements() -> None: """Test adding new elements to a list for sending.""" example_sequence = [ lists.Update...
36.532847
77
0.675524
0
0
0
0
0
0
0
0
449
0.08971
e7f2a75349f080e6ef9556951fc033879ae1e187
1,969
py
Python
application/api.py
DonBlaine/OpenDoorData
74740c6ff6dca893f0389963f2ef12de42a36829
[ "MIT" ]
null
null
null
application/api.py
DonBlaine/OpenDoorData
74740c6ff6dca893f0389963f2ef12de42a36829
[ "MIT" ]
null
null
null
application/api.py
DonBlaine/OpenDoorData
74740c6ff6dca893f0389963f2ef12de42a36829
[ "MIT" ]
null
null
null
# file that contains db models to be exposed via a REST API from models import room, survey, wifi_log, timetable, module # import db models from app import app # import Flask app from auth import auth # import Auth app to provide user authentificaiton from flask import request # import request object to parse json req...
39.38
145
0.739462
805
0.408837
0
0
0
0
0
0
840
0.426612