hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
f740e7537bf56cb8d2a2220e6613977f052c84d4
2,187
py
Python
src/oci/logging/models/group_association_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/logging/models/group_association_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/logging/models/group_association_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
30.802817
245
0.66941
ab87a580af5bf2efc666c85d0f768dd0ece197f4
11,179
py
Python
examples/DeepQNetwork/expreplay.py
yogurfrul/tensorpack
af5864439e22bb63a55eb2349164087e89a2ae6e
[ "Apache-2.0" ]
null
null
null
examples/DeepQNetwork/expreplay.py
yogurfrul/tensorpack
af5864439e22bb63a55eb2349164087e89a2ae6e
[ "Apache-2.0" ]
null
null
null
examples/DeepQNetwork/expreplay.py
yogurfrul/tensorpack
af5864439e22bb63a55eb2349164087e89a2ae6e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # File: expreplay.py # Author: Yuxin Wu import numpy as np import copy from collections import deque, namedtuple import threading from six.moves import queue, range from tensorpack.dataflow import DataFlow from tensorpack.utils import logger from tensorpack.utils.utils import get_tqdm, get_rng...
37.766892
115
0.600501
cc1d95b06d3d67a5a337323a08a79e4f85cda60d
4,030
py
Python
trainer.py
marcostx/fraud_detection
c83da57f9b406844152b8a4fce43c68bcbda247a
[ "MIT" ]
null
null
null
trainer.py
marcostx/fraud_detection
c83da57f9b406844152b8a4fce43c68bcbda247a
[ "MIT" ]
null
null
null
trainer.py
marcostx/fraud_detection
c83da57f9b406844152b8a4fce43c68bcbda247a
[ "MIT" ]
null
null
null
# # Author : Marcos Teixeira # SkyNet is watching you # # common imports import numpy as np import pandas as pd import os from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score,precision_score,recall_score,f1_score import matplotlib.pyplot as plt import lightgbm as lgb d...
29.851852
116
0.692308
4c1b536c20e38abe2404b0b2e20ef8b399562318
13,611
py
Python
fit_plot.py
AdamPI314/sensitivity_analysis
719ef83643e39580626e69df3bfeb0f60ec882b2
[ "MIT" ]
1
2018-11-20T09:18:04.000Z
2018-11-20T09:18:04.000Z
fit_plot.py
AdamPI314/sensitivity_analysis
719ef83643e39580626e69df3bfeb0f60ec882b2
[ "MIT" ]
null
null
null
fit_plot.py
AdamPI314/sensitivity_analysis
719ef83643e39580626e69df3bfeb0f60ec882b2
[ "MIT" ]
null
null
null
""" fit regression plot """ import os import numpy as np # from mpl_toolkits.mplot3d import axes3d, Axes3D #<-- Note the capitalization! for plot 3D import mpl_toolkits.mplot3d.axes3d # register 3d projection import matplotlib matplotlib.use('Agg') from matplotlib import pylab as plt from matplotlib.ticker import Fo...
41.751534
139
0.590772
634eaba4f5313c1ce33ea16052f9db218c47de0a
13,634
py
Python
NeuralSteganography-master1/saac.py
slatdude/TextSteganography
c17e7ec76ea9bb6fe355c64d740942df616799bd
[ "MIT" ]
5
2021-03-01T12:42:26.000Z
2022-02-23T11:49:39.000Z
NeuralSteganography-master1/saac.py
slatdude/TextSteganography
c17e7ec76ea9bb6fe355c64d740942df616799bd
[ "MIT" ]
null
null
null
NeuralSteganography-master1/saac.py
slatdude/TextSteganography
c17e7ec76ea9bb6fe355c64d740942df616799bd
[ "MIT" ]
2
2021-03-01T12:22:32.000Z
2021-05-22T08:21:00.000Z
import torch import torch.nn.functional as F import numpy as np from utils import limit_past, kl, entropy, bits2int, int2bits, is_sent_finish, num_same_from_beg def encode_saac(model, enc, message, context, finish_sent=False, device='cuda', temp=1.0, precision=16, topk=50000, nucleus=0.95, verbose=False, with_case_s...
44.701639
168
0.564618
24970388fdb18d5eb50ade534b3a2c84375447d9
5,751
py
Python
scripts/python/catalyst/updatedTWC/load_iso-octane.py
coelectrolyzer/cats
21f8e6f5f176767ec403ad2738c80a5a71fba959
[ "MIT" ]
1
2022-02-17T16:37:12.000Z
2022-02-17T16:37:12.000Z
scripts/python/catalyst/updatedTWC/load_iso-octane.py
coelectrolyzer/cats
21f8e6f5f176767ec403ad2738c80a5a71fba959
[ "MIT" ]
5
2021-10-30T00:06:31.000Z
2022-03-09T13:34:07.000Z
scripts/python/catalyst/updatedTWC/load_iso-octane.py
coelectrolyzer/cats
21f8e6f5f176767ec403ad2738c80a5a71fba959
[ "MIT" ]
3
2021-05-08T02:26:08.000Z
2022-03-01T22:27:40.000Z
# This file is a demo for the 'Isothermal_Monolith_Simulator' object import sys sys.path.append('../..') from catalyst.isothermal_monolith_catalysis import * # Give x, y, z for the HC (CxHyOz) HC_name = "iso-octane" run = "02" oldrun="01" readfile = 'output/'+HC_name+'_model'+oldrun+'.json' writefile = HC_name+"_mod...
34.232143
118
0.670666
4f99da330112201a5a8e091228d1419e2fe9fab8
1,482
py
Python
tests/unittests/utils/tabular/features/generators/test_text_ngram.py
NunoEdgarGFlowHub/autogluon
714894698495ef4352706d3c4250823ad4a43ead
[ "Apache-2.0" ]
null
null
null
tests/unittests/utils/tabular/features/generators/test_text_ngram.py
NunoEdgarGFlowHub/autogluon
714894698495ef4352706d3c4250823ad4a43ead
[ "Apache-2.0" ]
null
null
null
tests/unittests/utils/tabular/features/generators/test_text_ngram.py
NunoEdgarGFlowHub/autogluon
714894698495ef4352706d3c4250823ad4a43ead
[ "Apache-2.0" ]
null
null
null
import numpy as np from sklearn.feature_extraction.text import CountVectorizer from autogluon.utils.tabular.features.generators import TextNgramFeatureGenerator def test_text_ngram_feature_generator(generator_helper, data_helper): # Given input_data = data_helper.generate_multi_feature_full() toy_vecto...
32.933333
99
0.703104
7234a37106ec1e3adbbe32fa33e16fc1c5d3aeaf
1,093
py
Python
src/python/utils/args_parsers.py
lvrcek/consensus-net
560957f315751822e1ddf8c097eb7b712ceadff3
[ "MIT" ]
null
null
null
src/python/utils/args_parsers.py
lvrcek/consensus-net
560957f315751822e1ddf8c097eb7b712ceadff3
[ "MIT" ]
null
null
null
src/python/utils/args_parsers.py
lvrcek/consensus-net
560957f315751822e1ddf8c097eb7b712ceadff3
[ "MIT" ]
1
2018-12-23T13:50:29.000Z
2018-12-23T13:50:29.000Z
import argparse def parse_train_args(args): """ Parses arguments for model training. Arguments should be passed just like 'sys.argv[1:]'. Needed arguments are X_train_path, y_train_path, X_validate_path, y_validate_path and model_save_path. :param args: list of args from sys.argv[1:] :t...
36.433333
80
0.686185
2aa05d507a13ea2276643dbf2ac90ea12fd03d10
14,748
py
Python
app/crud/test_case/TestCaseDao.py
yst8493182/pity
7b2f6092dc0be2032e70b45a68b662426928e327
[ "Apache-2.0" ]
null
null
null
app/crud/test_case/TestCaseDao.py
yst8493182/pity
7b2f6092dc0be2032e70b45a68b662426928e327
[ "Apache-2.0" ]
null
null
null
app/crud/test_case/TestCaseDao.py
yst8493182/pity
7b2f6092dc0be2032e70b45a68b662426928e327
[ "Apache-2.0" ]
null
null
null
import json from collections import defaultdict from datetime import datetime, timedelta from typing import List, Dict from sqlalchemy import desc, func, and_, asc from sqlalchemy.future import select from app.crud import Mapper from app.crud.test_case.ConstructorDao import ConstructorDao from app.crud.test_case.Test...
40.405479
119
0.558991
e0b068616ca9c184341effbd6d2b8d92adf8556c
10,687
py
Python
flax/linen/normalization.py
joelgarde/flax
7d12d20f8272ce9c639711e92db89fdaf7f1a94a
[ "Apache-2.0" ]
null
null
null
flax/linen/normalization.py
joelgarde/flax
7d12d20f8272ce9c639711e92db89fdaf7f1a94a
[ "Apache-2.0" ]
null
null
null
flax/linen/normalization.py
joelgarde/flax
7d12d20f8272ce9c639711e92db89fdaf7f1a94a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Flax 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 applicable law or agreed to in wri...
39.435424
82
0.671657
5a05a258b21d18a0d3cef79cb27d9edadd65fb42
4,334
py
Python
frappe-bench/apps/erpnext/erpnext/config/education.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/config/education.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/config/education.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "label": _("Student"), "items": [ { "type": "doctype", "name": "Student" }, { "type": "doctype", "name": "Guardian" }, { "type": "doctype", "name": "Student Log" }, ...
17.130435
52
0.461467
1a24d48adcbdb427d7f7f17b52046e706d6c7775
5,881
py
Python
swivel/glove_to_shards.py
robrkerr/tensorflow-models
3656a07e89be134c2bc333c60a6c709e475024a6
[ "Apache-2.0" ]
308
2018-09-06T18:46:57.000Z
2022-03-28T08:22:45.000Z
swivel/glove_to_shards.py
robrkerr/tensorflow-models
3656a07e89be134c2bc333c60a6c709e475024a6
[ "Apache-2.0" ]
64
2018-06-20T10:14:17.000Z
2021-09-08T05:58:25.000Z
swivel/glove_to_shards.py
robrkerr/tensorflow-models
3656a07e89be134c2bc333c60a6c709e475024a6
[ "Apache-2.0" ]
69
2018-09-18T12:06:56.000Z
2022-03-14T11:49:16.000Z
#!/usr/bin/env python # # Copyright 2016 Google Inc. 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/LICENSE-2.0 # # Unless require...
29.70202
80
0.679986
f45e80ca902986b8ba39279d9d9ce7dc67dcd93d
17,168
py
Python
daterange.py
Derek-Strasters/daterange
999450a7e3351d67d1cd3726b4d07bc097e7f0aa
[ "MIT" ]
1
2021-10-11T05:58:09.000Z
2021-10-11T05:58:09.000Z
daterange.py
Derek-Strasters/daterange
999450a7e3351d67d1cd3726b4d07bc097e7f0aa
[ "MIT" ]
null
null
null
daterange.py
Derek-Strasters/daterange
999450a7e3351d67d1cd3726b4d07bc097e7f0aa
[ "MIT" ]
null
null
null
from datetime import timedelta, date from typing import Optional, Union, List _DAY = timedelta(days=1) def type_check(func): def wrapper(*args, **kwargs): if not isinstance(args[1], DateRange): if isinstance(args[1], date): day_range = DateRange(args[1], args[1]) ...
38.666667
109
0.586789
8b7c579ff1c5c5c386752b0579ca7b9867f08206
6,464
py
Python
persian_wordcloud/wordcloud.py
mehotkhan/persian-word-cloud
d5001db7bfa33de04324831b5debde3e6548f6a5
[ "MIT" ]
63
2018-01-13T14:45:52.000Z
2022-03-25T18:18:40.000Z
persian_wordcloud/wordcloud.py
mehotkhan/persian-word-cloud
d5001db7bfa33de04324831b5debde3e6548f6a5
[ "MIT" ]
3
2018-03-24T23:53:04.000Z
2021-03-18T16:03:11.000Z
persian_wordcloud/wordcloud.py
mehotkhan/persian-word-cloud
d5001db7bfa33de04324831b5debde3e6548f6a5
[ "MIT" ]
16
2018-04-03T10:16:11.000Z
2022-01-23T19:15:28.000Z
# Author: Andreas Christian Mueller <t3kcit@gmail.com> # # (c) 2012 # Modified by: Paul Nechifor <paul@nechifor.net> # # License: MIT from __future__ import division import re import sys from arabic_reshaper import arabic_reshaper from bidi.algorithm import get_display import warnings from random import Random import ...
36.314607
91
0.587407
6e6c5e3ea9426525e986b3a1c3dc8388e9156331
812
py
Python
crayonLexer.py
bmilts/Crayon-Toy-language
9445e4c2a3623b328f398837808b9005ec0e8af5
[ "FTL", "CNRI-Python" ]
null
null
null
crayonLexer.py
bmilts/Crayon-Toy-language
9445e4c2a3623b328f398837808b9005ec0e8af5
[ "FTL", "CNRI-Python" ]
null
null
null
crayonLexer.py
bmilts/Crayon-Toy-language
9445e4c2a3623b328f398837808b9005ec0e8af5
[ "FTL", "CNRI-Python" ]
null
null
null
import sys import re # Takes chars and expression functions and compares them to python regular expressions def lex(chars, expressionToks): pos = 0 tokens = [] while pos < len(chars): match = None for expressionTok in expressionToks: pattern, marker = expressionTok ...
28
86
0.519704
a14aa1f495ca11704f87c87ac68502f66c9e2de1
454
py
Python
module_build_service/migrations/versions/edb537dd1e8c_.py
zhongtianxie/fm-orchestrator
5ab39bf1981cf4abdf7ca4c2a7d4a6120f1bea2f
[ "MIT" ]
null
null
null
module_build_service/migrations/versions/edb537dd1e8c_.py
zhongtianxie/fm-orchestrator
5ab39bf1981cf4abdf7ca4c2a7d4a6120f1bea2f
[ "MIT" ]
null
null
null
module_build_service/migrations/versions/edb537dd1e8c_.py
zhongtianxie/fm-orchestrator
5ab39bf1981cf4abdf7ca4c2a7d4a6120f1bea2f
[ "MIT" ]
null
null
null
"""Add cg_build_koji_tag Revision ID: edb537dd1e8c Revises: c11a3cfec2a9 Create Date: 2017-09-22 13:50:41.433144 """ # revision identifiers, used by Alembic. revision = 'edb537dd1e8c' down_revision = 'c11a3cfec2a9' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column('module_builds', sa...
19.73913
94
0.753304
8ca9c6b69bde877de08aae558319a926b1f309d7
63
py
Python
hypertools/external/__init__.py
jeremymanning/hypertools
1b39b41aaa634e816d73635e0b9b773f1ed6e709
[ "MIT" ]
1
2019-08-11T18:25:18.000Z
2019-08-11T18:25:18.000Z
hypertools/external/__init__.py
jeremymanning/hypertools
1b39b41aaa634e816d73635e0b9b773f1ed6e709
[ "MIT" ]
33
2020-05-12T01:21:05.000Z
2021-12-07T16:13:42.000Z
hypertools/external/__init__.py
jeremymanning/hypertools
1b39b41aaa634e816d73635e0b9b773f1ed6e709
[ "MIT" ]
null
null
null
from .brainiak import SRM, DetSRM, RSRM from .ppca import PPCA
21
39
0.777778
4710cd3784507486f0c6819572483941f49a0173
2,392
py
Python
cmsplugin_cascade/templatetags/cascade_tags.py
gitter-badger/djangocms-cascade
ac293b11d5bc1f8cb73a7c2e7697eaaa6c937e1f
[ "MIT" ]
1
2022-01-11T07:21:17.000Z
2022-01-11T07:21:17.000Z
cmsplugin_cascade/templatetags/cascade_tags.py
gitter-badger/djangocms-cascade
ac293b11d5bc1f8cb73a7c2e7697eaaa6c937e1f
[ "MIT" ]
null
null
null
cmsplugin_cascade/templatetags/cascade_tags.py
gitter-badger/djangocms-cascade
ac293b11d5bc1f8cb73a7c2e7697eaaa6c937e1f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from django import template from django.core.cache import caches from django.template.exceptions import TemplateSyntaxError from django.contrib.staticfiles import finders from classytags.arguments import Argument from classytags.core import ...
30.666667
119
0.67893
271824b3d1aa819d47caf8cdf26f4def587455ed
365
py
Python
opendc/api/v1/specifications/memories/endpoint.py
kl1de/kl1de
5dc37467b48b4f7dc74292b79fc93a41a93112d0
[ "MIT" ]
2
2017-01-24T12:28:51.000Z
2017-01-25T15:12:26.000Z
opendc/api/v1/specifications/memories/endpoint.py
kl1de/kl1de
5dc37467b48b4f7dc74292b79fc93a41a93112d0
[ "MIT" ]
7
2017-03-15T08:47:21.000Z
2018-11-28T10:36:41.000Z
opendc/api/v1/specifications/memories/endpoint.py
atlarge-research/opendc-web-server
71aa937a9b7db7289d69ac85587387070d2af851
[ "MIT" ]
1
2017-01-25T15:12:44.000Z
2017-01-25T15:12:44.000Z
from opendc.models.memory import Memory from opendc.util.rest import Response def GET(request): """Get a list of the specifications of all Memories.""" # Get the Memories memories = Memory.query() # Return the Memories return Response( 200, 'Successfully retrieved Memories.', ...
19.210526
59
0.649315
ac0b53c300da1ffd46810da150d122f23a5a6e98
10,359
py
Python
neutron/agent/l3/dvr_edge_router.py
freyes/neutron
197c222acb0390728106a083d1663f2c06427518
[ "Apache-2.0" ]
null
null
null
neutron/agent/l3/dvr_edge_router.py
freyes/neutron
197c222acb0390728106a083d1663f2c06427518
[ "Apache-2.0" ]
null
null
null
neutron/agent/l3/dvr_edge_router.py
freyes/neutron
197c222acb0390728106a083d1663f2c06427518
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 OpenStack Foundation # # 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 ...
42.805785
79
0.633555
1c34696f1cfdec0956bb16ca716e88db0d45eff0
45
py
Python
agescx/utilities/__init__.py
dderevjanik/agescx
32e1b11c7c4205a63a156b0014ec7143c0d0c13b
[ "MIT" ]
15
2016-02-08T19:35:46.000Z
2021-11-24T06:52:04.000Z
agescx/utilities/__init__.py
heinezen/agescx
32e1b11c7c4205a63a156b0014ec7143c0d0c13b
[ "MIT" ]
1
2016-01-03T02:54:46.000Z
2016-01-03T02:54:46.000Z
agescx/utilities/__init__.py
heinezen/agescx
32e1b11c7c4205a63a156b0014ec7143c0d0c13b
[ "MIT" ]
5
2016-10-05T03:55:29.000Z
2021-05-14T10:15:57.000Z
from .decoder import * from .encoder import *
22.5
22
0.755556
5f8ef0d30ea7eb454525b9370023c18314ca6299
424
py
Python
mine/models/_bases.py
jacebrowning/mine
33b21f075f2f65678ce050dc74285a0b6f55ab0c
[ "MIT" ]
18
2015-04-25T05:31:05.000Z
2020-02-28T20:58:42.000Z
mine/models/_bases.py
jacebrowning/mine
33b21f075f2f65678ce050dc74285a0b6f55ab0c
[ "MIT" ]
47
2015-01-03T00:20:29.000Z
2021-12-01T11:16:48.000Z
mine/models/_bases.py
jacebrowning/mine
33b21f075f2f65678ce050dc74285a0b6f55ab0c
[ "MIT" ]
1
2016-01-02T04:05:27.000Z
2016-01-02T04:05:27.000Z
"""Shared base classes and mixins.""" class NameMixin: """Mixin class for objects identified by their name.""" def __str__(self): return str(self.name) # type: ignore def __eq__(self, other): return str(self).lower() == str(other).lower() def __ne__(self, other): return not...
23.555556
59
0.617925
499eb942c0be3e944026fc5611c0c991a8756701
1,122
py
Python
applications/ShallowWaterApplication/python_scripts/semi_lagrangian_shallow_water_solver.py
alecontri/Kratos
9a003679c1a12a159466e6e61a371e1286f379ca
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/ShallowWaterApplication/python_scripts/semi_lagrangian_shallow_water_solver.py
alecontri/Kratos
9a003679c1a12a159466e6e61a371e1286f379ca
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/ShallowWaterApplication/python_scripts/semi_lagrangian_shallow_water_solver.py
philbucher/Kratos
1ceb900dbacfab344e27e32285250eafc52093ec
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
# importing the Kratos Library import KratosMultiphysics as KM import KratosMultiphysics.ShallowWaterApplication as SW ## Import base class file from KratosMultiphysics.ShallowWaterApplication.free_surface_shallow_water_solver import FreeSurfaceShallowWaterSolver def CreateSolver(model, custom_settings): return S...
37.4
118
0.76738
7423c07c59801b0e5e7c9bd7def69adf8c4334e2
12,526
py
Python
bot.py
mhy001/Khala_Botnet
0a8fdb2144f78ce91cdd8a354a7e54bc1e16928f
[ "MIT" ]
null
null
null
bot.py
mhy001/Khala_Botnet
0a8fdb2144f78ce91cdd8a354a7e54bc1e16928f
[ "MIT" ]
null
null
null
bot.py
mhy001/Khala_Botnet
0a8fdb2144f78ce91cdd8a354a7e54bc1e16928f
[ "MIT" ]
null
null
null
#!/usr/bin/python """bot.py External Dependencies: nmap for network mapping paramiko for ssh & sftp """ # standard lib import logging import os import random import socket import stat import struct import subprocess import sys import threading import time # third-party lib import nmap import paramiko # CONST...
30.256039
86
0.602746
f57b040b472b60ab908a5638c41b7493ef8f6be8
5,003
py
Python
jango/jango/settings.py
seemamir/django
e5eaf65de7e2603761624d48ab549de929d923cd
[ "MIT" ]
1
2019-12-16T19:56:30.000Z
2019-12-16T19:56:30.000Z
jango/jango/settings.py
seemamir/django
e5eaf65de7e2603761624d48ab549de929d923cd
[ "MIT" ]
null
null
null
jango/jango/settings.py
seemamir/django
e5eaf65de7e2603761624d48ab549de929d923cd
[ "MIT" ]
null
null
null
""" Django settings for jango project. Generated by 'django-admin startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # B...
27.489011
91
0.705577
c05ae0d418634865408acb4d9fef7ce79782af49
5,202
py
Python
resGCN/src/utils.py
CEfanmin/DataMiningProjects
b6375f542c68c0001ae2971dd7e8046a0b4afc7a
[ "MIT" ]
3
2018-04-26T06:44:27.000Z
2018-09-01T13:58:21.000Z
resGCN/src/utils.py
CEfanmin/DataMiningProjects
b6375f542c68c0001ae2971dd7e8046a0b4afc7a
[ "MIT" ]
null
null
null
resGCN/src/utils.py
CEfanmin/DataMiningProjects
b6375f542c68c0001ae2971dd7e8046a0b4afc7a
[ "MIT" ]
1
2018-09-01T13:58:27.000Z
2018-09-01T13:58:27.000Z
import networkx as nx import numpy as np import sys import pickle as pkl import scipy.sparse as sp def parse_index_file(filename): index = [] for line in open(filename): index.append(int(line.strip())) return index def sample_mask(idx, l): mask = np.zeros(l) mask[idx] = 1 return np.arr...
36.893617
115
0.680892
6f0db0e712efe580d05f6b9459eaccf9e965c7b8
1,739
py
Python
Servers/simple_multithreaded_wsgi.py
kevinlee05/python-snippets
359b127f2e55113a628503d1ff69ba1cfac1f77d
[ "MIT" ]
null
null
null
Servers/simple_multithreaded_wsgi.py
kevinlee05/python-snippets
359b127f2e55113a628503d1ff69ba1cfac1f77d
[ "MIT" ]
null
null
null
Servers/simple_multithreaded_wsgi.py
kevinlee05/python-snippets
359b127f2e55113a628503d1ff69ba1cfac1f77d
[ "MIT" ]
null
null
null
'''WSGI-compliant HTTP server. Dispatches requests to a pool of threads.''' from wsgiref.simple_server import WSGIServer, WSGIRequestHandler import multiprocessing.pool __all__ = ['ThreadPoolWSGIServer', 'make_server'] class ThreadPoolWSGIServer(WSGIServer): '''WSGI-compliant HTTP server. Dispatches requests ...
37
90
0.706728
288b35934cb015d6d863330dc5aba6502d49fd2b
6,178
py
Python
b3/core/basenode.py
collaborative-robotics/behavior3py
d65ec781a1fefde7ad8f6c4369833054da312a7e
[ "MIT" ]
2
2020-12-02T22:56:45.000Z
2021-01-14T21:22:55.000Z
b3/core/basenode.py
collaborative-robotics/behavior3py
d65ec781a1fefde7ad8f6c4369833054da312a7e
[ "MIT" ]
null
null
null
b3/core/basenode.py
collaborative-robotics/behavior3py
d65ec781a1fefde7ad8f6c4369833054da312a7e
[ "MIT" ]
1
2020-12-02T22:56:49.000Z
2020-12-02T22:56:49.000Z
import b3 import uuid __all__ = ['BaseNode'] class BaseNode(object): category = None title = None description = None def __init__(self): self.id = str(uuid.uuid1()) self.title = self.title or self.__class__.__name__ self.description = self.description or '' self.parame...
33.759563
143
0.541761
81deb293078bb71db98183e8abfa53b33dcee6b2
130
py
Python
vDjango/sobre/views.py
VinicBueno/Django
e06f8e79ec95ac7519cf8ffcf8c0e2062f03cad4
[ "MIT" ]
null
null
null
vDjango/sobre/views.py
VinicBueno/Django
e06f8e79ec95ac7519cf8ffcf8c0e2062f03cad4
[ "MIT" ]
null
null
null
vDjango/sobre/views.py
VinicBueno/Django
e06f8e79ec95ac7519cf8ffcf8c0e2062f03cad4
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. def index (request): return render(request, 'sobre/index.html')
26
46
0.753846
9e792eb43b11b95b3535b9c76a6076dfe3e459ba
3,888
py
Python
models.py
ashutoshbsathe/adversarial_reprogramming
83c59c8bd2432f307876f9a7d02031b1eceb97e5
[ "MIT" ]
null
null
null
models.py
ashutoshbsathe/adversarial_reprogramming
83c59c8bd2432f307876f9a7d02031b1eceb97e5
[ "MIT" ]
null
null
null
models.py
ashutoshbsathe/adversarial_reprogramming
83c59c8bd2432f307876f9a7d02031b1eceb97e5
[ "MIT" ]
2
2019-08-17T05:43:56.000Z
2020-05-19T07:42:38.000Z
""" ResNet in PyTorch Reference : [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun Deep Residual Learning for Image Recognition. arXiv:1512.03385 """ import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class BasicBlock(nn.Module): expansion = 1 def ...
34.714286
102
0.6268
ee1a6f7d31dddf0f1108ba777d1097927e1eb7c7
235
py
Python
src/tradingkit/strategy/none_strategy.py
logictraders/tradingk
b00a3eb82d5f1276581dd44dab1153772956ad74
[ "MIT" ]
3
2021-03-07T01:17:25.000Z
2021-10-13T10:53:11.000Z
src/tradingkit/strategy/none_strategy.py
logictraders/tradingk
b00a3eb82d5f1276581dd44dab1153772956ad74
[ "MIT" ]
14
2021-01-03T18:54:09.000Z
2022-03-16T15:42:45.000Z
src/tradingkit/strategy/none_strategy.py
logictraders/tradingk
b00a3eb82d5f1276581dd44dab1153772956ad74
[ "MIT" ]
2
2021-03-07T01:19:25.000Z
2021-07-19T21:13:33.000Z
from tradingkit.strategy.strategy import Strategy class NoneStrategy(Strategy): def get_symbol(self): return 'BTC/USD' def subscribed_events(self) -> list: return [] def finish(self): return {}
16.785714
49
0.642553
4ac6304c16507c61313443cb156aca3b298961c1
1,579
py
Python
tests/pnr/test_render_placements.py
pretl/ALIGN-public
4b03042d9e96fa669740427842b0bf268b0c9a86
[ "BSD-3-Clause" ]
119
2019-05-14T18:44:34.000Z
2022-03-17T01:01:02.000Z
tests/pnr/test_render_placements.py
pretl/ALIGN-public
4b03042d9e96fa669740427842b0bf268b0c9a86
[ "BSD-3-Clause" ]
717
2019-04-03T15:36:35.000Z
2022-03-31T21:56:47.000Z
tests/pnr/test_render_placements.py
pretl/ALIGN-public
4b03042d9e96fa669740427842b0bf268b0c9a86
[ "BSD-3-Clause" ]
34
2019-04-01T21:21:27.000Z
2022-03-21T09:46:57.000Z
from align.pnr.render_placement import gen_boxes_and_hovertext def test_gen_boxes_and_hovertext(): placement_verilog_d = { "modules": [ { "abstract_name": "top", "concrete_name": "top", "bbox": [0,0,100,100], "parameters": [], "instances":...
30.960784
78
0.40532
9ae75bc827312f5bd5be7b0e2444b851b891ab70
2,029
py
Python
src/python/pants/backend/python/tasks/python_run.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/tasks/python_run.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2019-07-29T16:58:21.000Z
2019-07-29T16:58:21.000Z
src/python/pants/backend/python/tasks/python_run.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import signal from pants.backend.python.targets.python_binary import PythonBinary from pants.backend.python.tasks.python_execution_task_base import PythonExecutionTaskBase from pants.base...
36.232143
90
0.674717
a6320fef6b2aa5da9ac5ed94c5e259b7bf79b217
17,918
py
Python
tests/ut/python/parallel/test_neighborexchange.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/ut/python/parallel/test_neighborexchange.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/ut/python/parallel/test_neighborexchange.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
35.064579
120
0.595825
5c8861562948f2b2fb3f7c50db148ae916e3354b
975
py
Python
app/__init__.py
willy-r/portfolio-feliz-backend
a95612ecf970075688171b481c10b418a8a5a7c6
[ "MIT" ]
3
2021-05-20T23:35:06.000Z
2021-11-23T15:51:36.000Z
app/__init__.py
willy-r/portfolio-feliz-backend
a95612ecf970075688171b481c10b418a8a5a7c6
[ "MIT" ]
null
null
null
app/__init__.py
willy-r/portfolio-feliz-backend
a95612ecf970075688171b481c10b418a8a5a7c6
[ "MIT" ]
null
null
null
from dotenv import load_dotenv from flask import Flask, render_template load_dotenv() def create_app(): """Create and configure the app.""" app = Flask(__name__) app.config.from_object('app.config.ProductionConfig') if app.config['ENV'] == 'development': app.config.from_object('app.confi...
21.666667
62
0.657436
e2a487f8f73cdffe496b27575ac70af2ce2adde1
2,957
py
Python
setup.py
p13i/google-api-python-client
48f503fbae07b4b80773f526c16ea30e0e65806b
[ "Apache-2.0" ]
null
null
null
setup.py
p13i/google-api-python-client
48f503fbae07b4b80773f526c16ea30e0e65806b
[ "Apache-2.0" ]
null
null
null
setup.py
p13i/google-api-python-client
48f503fbae07b4b80773f526c16ea30e0e65806b
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Google Inc. 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/LICENSE-2.0 # # Unless required by applicable law or ...
34.383721
87
0.685154
a266f2ebfc3023ac7df04468d0a9a55ab820366e
5,752
py
Python
src/lib/datasets/sample/exdet.py
seqsense/CenterNet
5cd5f3c1f42d8cfb5fc3157f8c1945b6787f11eb
[ "MIT" ]
null
null
null
src/lib/datasets/sample/exdet.py
seqsense/CenterNet
5cd5f3c1f42d8cfb5fc3157f8c1945b6787f11eb
[ "MIT" ]
null
null
null
src/lib/datasets/sample/exdet.py
seqsense/CenterNet
5cd5f3c1f42d8cfb5fc3157f8c1945b6787f11eb
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch.utils.data as data import pycocotools.coco as coco import numpy as np import torch import json import cv2 import os from centernet_utils.image import flip, color_aug from centernet_utils.image impo...
41.985401
90
0.615612
4d587eb7173c425b549b12d75c283debaf7c4062
7,672
py
Python
jdaviz/configs/imviz/tests/test_linking.py
check-spelling/jdaviz
bfd0514d13bdc6fa0b8c8536a603293409270337
[ "MIT", "BSD-3-Clause" ]
null
null
null
jdaviz/configs/imviz/tests/test_linking.py
check-spelling/jdaviz
bfd0514d13bdc6fa0b8c8536a603293409270337
[ "MIT", "BSD-3-Clause" ]
3
2021-05-06T13:03:37.000Z
2021-12-02T14:51:48.000Z
jdaviz/configs/imviz/tests/test_linking.py
rosteen/jdaviz
e02c08d68ef71c5e40600785f46e65e5ae95e236
[ "MIT", "BSD-3-Clause" ]
1
2021-12-27T04:24:34.000Z
2021-12-27T04:24:34.000Z
import pytest from astropy.table import Table from glue.core.link_helpers import LinkSame from glue.plugins.wcs_autolinking.wcs_autolinking import OffsetLink, WCSLink from numpy.testing import assert_allclose from regions import PixCoord, CirclePixelRegion from jdaviz.configs.imviz.helper import get_reference_i...
45.666667
96
0.659932
f7294b4c8ab15cf32eb5a8981f5001dc4da902e2
879
py
Python
isi_sdk_9_0_0/test/test_network_pools.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_9_0_0/test/test_network_pools.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_9_0_0/test/test_network_pools.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_9_0_0 from ...
21.439024
81
0.697383
86f7961555d78ca0ddb6cd92b59fd0248fe8bc7a
6,102
py
Python
phk_logger/phkLogger.py
proh4cktive/phk-logger
e4425124d86ff8fe74e05e2243af4f0ee366a1ca
[ "MIT" ]
null
null
null
phk_logger/phkLogger.py
proh4cktive/phk-logger
e4425124d86ff8fe74e05e2243af4f0ee366a1ca
[ "MIT" ]
null
null
null
phk_logger/phkLogger.py
proh4cktive/phk-logger
e4425124d86ff8fe74e05e2243af4f0ee366a1ca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import errno import platform import logging import logging.handlers class PHKLogger(object): """Simple Logging class Allow to log to standard syslog process or specific file if set """ def __init__(self, filename=None, level=logging.WARNING, name=None, cl...
31.78125
124
0.51393
eedeae9e19234d927155d28128243d5e05b225f5
1,139
py
Python
scripts/buzzer.py
sugarman1983/pimouse_ros
3d0351d225e69fbcde4525a941a1e303b791066c
[ "BSD-3-Clause" ]
null
null
null
scripts/buzzer.py
sugarman1983/pimouse_ros
3d0351d225e69fbcde4525a941a1e303b791066c
[ "BSD-3-Clause" ]
null
null
null
scripts/buzzer.py
sugarman1983/pimouse_ros
3d0351d225e69fbcde4525a941a1e303b791066c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import rospy, actionlib from std_msgs.msg import UInt16 from pimouse_ros.msg import MusicAction, MusicResult, MusicFeedback def write_freq(hz=0): bfile = "/dev/rtbuzzer0" try: with open(bfile, "w") as f: f.write(str(hz) + "\n") except IOError: rospy.logerr("can't write t...
25.886364
81
0.647059
2fdd75616b3fd8572572c958aa8dcfbd99a11dc2
16,854
gyp
Python
ui/gfx/gfx.gyp
iplo/Chain
8bc8943d66285d5258fffc41bed7c840516c4422
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
231
2015-01-08T09:04:44.000Z
2021-12-30T03:03:10.000Z
ui/gfx/gfx.gyp
JasonEric/chromium
c7361d39be8abd1574e6ce8957c8dbddd4c6ccf7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2017-02-14T21:55:58.000Z
2017-02-14T21:55:58.000Z
ui/gfx/gfx.gyp
JasonEric/chromium
c7361d39be8abd1574e6ce8957c8dbddd4c6ccf7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
268
2015-01-21T05:53:28.000Z
2022-03-25T22:09:01.000Z
# Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'targets': [ { 'target_name': 'gfx_geometry', 'type': '<(component)', 'dependenci...
30.868132
100
0.531209
0cd77719898d4dbea322e0f95736775a7565402f
6,433
py
Python
experiment-scripts/analyze_contours.py
rabitt/icassp-2017-world-music
8b1e17842b929bfd334f09a136fa9e297117b695
[ "MIT" ]
2
2017-04-07T19:42:27.000Z
2017-06-26T01:38:44.000Z
experiment-scripts/analyze_contours.py
rabitt/icassp-2017-world-music
8b1e17842b929bfd334f09a136fa9e297117b695
[ "MIT" ]
null
null
null
experiment-scripts/analyze_contours.py
rabitt/icassp-2017-world-music
8b1e17842b929bfd334f09a136fa9e297117b695
[ "MIT" ]
null
null
null
"""Contour dictionary learning and singing clusters""" import numpy as np import pandas as pd import pickle from sklearn.cluster import KMeans from sklearn.metrics import silhouette_score from sklearn.preprocessing import StandardScaler from sklearn.decomposition import PCA from sklearn.manifold import TSNE import sp...
31.077295
85
0.665475
8b5260d1b86474693562e2e30676b4d40c383db2
248
py
Python
tests/conftest.py
wheerd/cloudformation-to-terraform
5411b33293e1f7d7673bb5d4cb52ff0537240db3
[ "MIT" ]
null
null
null
tests/conftest.py
wheerd/cloudformation-to-terraform
5411b33293e1f7d7673bb5d4cb52ff0537240db3
[ "MIT" ]
null
null
null
tests/conftest.py
wheerd/cloudformation-to-terraform
5411b33293e1f7d7673bb5d4cb52ff0537240db3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Dummy conftest.py for cloudformation_to_terraform. If you don't know what this is for, just leave it empty. Read more about conftest.py under: https://pytest.org/latest/plugins.html """ # import pytest
22.545455
60
0.677419
94a38a5304f8f9dba1e4817302e55f9171e6ac5e
16,082
py
Python
frappe/desk/desktop.py
finaxar/frappe
6da30361813c5de267889ef4970c323c626c02a3
[ "MIT" ]
null
null
null
frappe/desk/desktop.py
finaxar/frappe
6da30361813c5de267889ef4970c323c626c02a3
[ "MIT" ]
null
null
null
frappe/desk/desktop.py
finaxar/frappe
6da30361813c5de267889ef4970c323c626c02a3
[ "MIT" ]
1
2020-09-03T18:16:50.000Z
2020-09-03T18:16:50.000Z
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt # Author - Shivam Mishra <shivam@frappe.io> from __future__ import unicode_literals import frappe from json import loads, dumps from frappe import _, DoesNotExistError, ValidationError, _dict from frappe.boot import get...
27.074074
131
0.719811
05a448d530b35f473a11bfc66ad6776b9ca3615b
121
py
Python
payloads/shortest.py
redcode-labs/poXSSon
7046fac15e54e05a73d7d46a00916161d9f36cca
[ "ISC" ]
18
2022-02-20T13:27:36.000Z
2022-03-23T21:35:13.000Z
payloads/shortest.py
redcode-labs/poXSSon
7046fac15e54e05a73d7d46a00916161d9f36cca
[ "ISC" ]
1
2022-02-20T13:37:20.000Z
2022-02-21T14:38:26.000Z
payloads/shortest.py
redcode-labs/poXSSon
7046fac15e54e05a73d7d46a00916161d9f36cca
[ "ISC" ]
2
2022-02-20T13:35:56.000Z
2022-02-21T11:59:15.000Z
#!/usr/bin/python3 name="shortest" description="The shortest payload for XSS injection" payload = "<script src=//14.rs>"
30.25
52
0.735537
89de9b64d48de702f4dc73bea63175b43791f4b7
12,702
py
Python
backend/takeout/customer/views.py
BillBillBillBill/laughing-garbanzo
27c66dcc4f0e045ae060255679a2aa68c0f744d2
[ "MIT" ]
15
2016-08-03T08:11:36.000Z
2022-03-24T03:21:06.000Z
backend/takeout/customer/views.py
BillBillBillBill/laughing-garbanzo
27c66dcc4f0e045ae060255679a2aa68c0f744d2
[ "MIT" ]
null
null
null
backend/takeout/customer/views.py
BillBillBillBill/laughing-garbanzo
27c66dcc4f0e045ae060255679a2aa68c0f744d2
[ "MIT" ]
7
2016-08-03T08:11:38.000Z
2020-12-27T08:49:10.000Z
# coding: utf-8 from rest_framework.views import APIView from models.customer import Customer, DeliveryInformation from models.order import Order, OrderFood from models.complaint import Complaint from bussiness.models.store import Store from bussiness.models.food import Food from lib.models.review import FoodReview, Or...
39.570093
131
0.589356
78848376fd6712e18d054790fa8e70f6da87ea23
1,789
py
Python
setup.py
Ann-Holmes/CellO
bc2192a2d27e0859f6df885a6fc246e26e54a7b0
[ "MIT" ]
42
2019-05-14T19:04:38.000Z
2022-03-06T12:57:00.000Z
setup.py
Ann-Holmes/CellO
bc2192a2d27e0859f6df885a6fc246e26e54a7b0
[ "MIT" ]
16
2020-08-04T12:34:08.000Z
2022-03-31T22:30:48.000Z
setup.py
Ann-Holmes/CellO
bc2192a2d27e0859f6df885a6fc246e26e54a7b0
[ "MIT" ]
6
2019-05-13T15:57:03.000Z
2022-03-18T02:17:05.000Z
import os import sys from setuptools import setup, find_packages install_requires = [ "Cython>=0.29.17", "quadprog>=0.1.6", "numpy>=1.17.1", "scikit-learn>=0.22.2.post1", "scipy>=1.3.1", "pandas>=0.23.4", "dill>=0.3.1.1", "h5py>=2.10.0", "anndata>=0.7.1", "matplotlib", "pygr...
25.557143
70
0.588038
700607a0e3bc6a40eaa5af9ff3733a5abb9bcc35
9,760
py
Python
mmdnn/conversion/caffe/mapper.py
Gwinhen/MMdnn
6d2e83002a37acd8a31b1a2d497e3554606db00c
[ "MIT" ]
null
null
null
mmdnn/conversion/caffe/mapper.py
Gwinhen/MMdnn
6d2e83002a37acd8a31b1a2d497e3554606db00c
[ "MIT" ]
null
null
null
mmdnn/conversion/caffe/mapper.py
Gwinhen/MMdnn
6d2e83002a37acd8a31b1a2d497e3554606db00c
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division import numpy as np from mmdnn.conversion.caffe.errors import ConversionError from mmdnn.conversion.caffe.common_graph import Node from mmdnn.conversion.caffe.network import DEFAULT_PADDING from mmdnn.conversion.caffe.utils import get_lower_case fro...
36.01476
147
0.616291
a7609a76137663823e045ba0784ea045c4c511e3
7,985
py
Python
p2_continuous-control/ddpg_agent.py
ReactiveXYZ-Dev/deep-reinforcement-learning
074318b2a73f61d7fee7e0374c739447ee45b6a0
[ "MIT" ]
null
null
null
p2_continuous-control/ddpg_agent.py
ReactiveXYZ-Dev/deep-reinforcement-learning
074318b2a73f61d7fee7e0374c739447ee45b6a0
[ "MIT" ]
null
null
null
p2_continuous-control/ddpg_agent.py
ReactiveXYZ-Dev/deep-reinforcement-learning
074318b2a73f61d7fee7e0374c739447ee45b6a0
[ "MIT" ]
null
null
null
import numpy as np import random import copy from collections import namedtuple, deque from model import Actor, Critic import torch import torch.nn.functional as F import torch.optim as optim BUFFER_SIZE = int(1e5) # replay buffer size BATCH_SIZE = 128 # minibatch size GAMMA = 0.99 # discount fact...
38.389423
98
0.608265
bc3446cf696d88f4cf4b566085069b49fa6168c6
2,219
py
Python
toh5.py
kkaatttiechang/MitoEM2021-Challenge
73f6d40d503d108e36a37149579e0173182e01cc
[ "MIT" ]
null
null
null
toh5.py
kkaatttiechang/MitoEM2021-Challenge
73f6d40d503d108e36a37149579e0173182e01cc
[ "MIT" ]
null
null
null
toh5.py
kkaatttiechang/MitoEM2021-Challenge
73f6d40d503d108e36a37149579e0173182e01cc
[ "MIT" ]
null
null
null
""" Code inspired by Donglaiw @ https://github.com/donglaiw/MitoEM-challenge - h5_name : path to the directory from which the images will be read - h5_name : name of the H5 file to be created (follow the instructions in https://mitoem.grand-challenge.org/Evaluation/ to name the ...
36.983333
97
0.673727
d35533c87bfb9883f03114e0bb0e8c7eaecf5296
35,248
py
Python
applitools/selenium/webdriver.py
applitools/eyes.selenium.python
3a09a3372a3a8915b3c97ee54fc223580c45c0a3
[ "Apache-2.0" ]
11
2016-04-20T21:21:37.000Z
2020-04-27T19:46:56.000Z
applitools/selenium/webdriver.py
applitools/eyes.selenium.python
3a09a3372a3a8915b3c97ee54fc223580c45c0a3
[ "Apache-2.0" ]
15
2017-01-11T04:58:31.000Z
2019-09-13T18:00:35.000Z
applitools/selenium/webdriver.py
applitools/eyes.selenium.python
3a09a3372a3a8915b3c97ee54fc223580c45c0a3
[ "Apache-2.0" ]
15
2016-03-23T22:06:39.000Z
2020-06-14T09:11:58.000Z
from __future__ import absolute_import import base64 import contextlib import time import typing as tp from PIL import Image from selenium.common.exceptions import WebDriverException from selenium.webdriver.common.by import By from selenium.webdriver.remote.switch_to import SwitchTo from selenium.webdriver.remote.web...
40.054545
116
0.63771
b30bc4235fdb74d9c9fbd729007fc4ebcc10583e
1,898
py
Python
vimfiles/bundle/vim-python/submodules/autopep8/setup.py
BHills15/vimrc
150b2e0bea7afd09226697a061206f8b812cf5cc
[ "MIT" ]
1
2022-02-09T15:48:13.000Z
2022-02-09T15:48:13.000Z
vimfiles/bundle/vim-python/submodules/autopep8/setup.py
BHills15/vimrc
150b2e0bea7afd09226697a061206f8b812cf5cc
[ "MIT" ]
null
null
null
vimfiles/bundle/vim-python/submodules/autopep8/setup.py
BHills15/vimrc
150b2e0bea7afd09226697a061206f8b812cf5cc
[ "MIT" ]
1
2022-02-09T15:49:18.000Z
2022-02-09T15:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Setup for autopep8.""" import ast import io from setuptools import setup INSTALL_REQUIRES = ( ['pycodestyle >= 2.3'] ) def version(): """Return version string.""" with io.open('autopep8.py') as input_file: for line in input_file: if...
32.169492
79
0.578504
47a98d71cd65b0005881e7b1da2b8b415c81f3b1
757
py
Python
fxwebgen/imaging.py
tiliado/fxwebgen
5d1c5120b27fc13b6b45ee4e0017771271c3c3e0
[ "BSD-2-Clause" ]
null
null
null
fxwebgen/imaging.py
tiliado/fxwebgen
5d1c5120b27fc13b6b45ee4e0017771271c3c3e0
[ "BSD-2-Clause" ]
13
2018-08-06T15:25:50.000Z
2019-04-14T14:09:22.000Z
fxwebgen/imaging.py
tiliado/fxwebgen
5d1c5120b27fc13b6b45ee4e0017771271c3c3e0
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2018 Jiří Janoušek <janousek.jiri@gmail.com> # Licensed under BSD-2-Clause license - see file LICENSE for details. from typing import Optional from PIL import Image from resizeimage import resizeimage def create_thumbnail(input_file: str, output_file: str, width: Optional[int], height: Optional[int]) ->...
34.409091
109
0.67107
386ed6587bf5fee377824cd91d9a6aa3413ccfd0
1,639
py
Python
example/example_flow.py
rdcli/rdc.etl
8aa70c1f31f4bc18b2e9e37d96db39041e4b8eb8
[ "Apache-2.0" ]
7
2015-11-10T21:28:07.000Z
2021-03-16T17:51:16.000Z
example/example_flow.py
rdcli/rdc.etl
8aa70c1f31f4bc18b2e9e37d96db39041e4b8eb8
[ "Apache-2.0" ]
4
2018-01-29T07:23:07.000Z
2018-01-29T07:23:43.000Z
example/example_flow.py
rdcli/rdc.etl
8aa70c1f31f4bc18b2e9e37d96db39041e4b8eb8
[ "Apache-2.0" ]
2
2016-11-09T05:14:05.000Z
2017-07-22T13:25:56.000Z
# -*- coding: utf-8 -*- # # Copyright 2012-2014 Romain Dorgueil # # 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 appli...
31.519231
88
0.687614
7ca09d3a18bc2078df525b6c198f3189a4c775f8
3,008
py
Python
2-Conditional Logic and more basics.py
Alirezak2n/Python-Tutorials
28c6b40c7237032f80c4f0556ad1bcaceccef088
[ "MIT" ]
null
null
null
2-Conditional Logic and more basics.py
Alirezak2n/Python-Tutorials
28c6b40c7237032f80c4f0556ad1bcaceccef088
[ "MIT" ]
null
null
null
2-Conditional Logic and more basics.py
Alirezak2n/Python-Tutorials
28c6b40c7237032f80c4f0556ad1bcaceccef088
[ "MIT" ]
null
null
null
# If Operator if "Hello" and 5 : print("Alireza Is Smart ") elif 2 == 3: print("ZOOOOOO") else: print("WOW") # Ternary Operator or Conditional expression #condition_if_true if condition else condition_if_false fact="alireza will be successfull" if 5 else "Whatever" print(fact) print("aaa") if 2...
28.923077
140
0.641955
8369da3f4270cd37e877812174d5d850763e4967
1,703
py
Python
python/pred.py
neuralsystems/PRED
b3fb5e2604b88f44173767d8cf77aaff5171a7dc
[ "CC0-1.0" ]
null
null
null
python/pred.py
neuralsystems/PRED
b3fb5e2604b88f44173767d8cf77aaff5171a7dc
[ "CC0-1.0" ]
null
null
null
python/pred.py
neuralsystems/PRED
b3fb5e2604b88f44173767d8cf77aaff5171a7dc
[ "CC0-1.0" ]
null
null
null
""" # Author: Aarush Mohit Mittal # Contact: aarush (dot) mohit (at) gmail (dot) com # Version: 0.1 """ """ Changelog: v0.1 (2021-08-12): - Initial release with class-vector numpy support """ import numpy as np from itertools import combinations def pred(data): ''' Description: This function calculat...
34.06
113
0.641221
42c1676b68d404546793b95595fa1d97cf51f506
4,301
py
Python
apps/waxs_integrate.py
alexbjorling/nanomax-analysis-utils
e208d098243e28a90004c6e1c5fb69251177d23e
[ "MIT" ]
3
2017-07-19T10:25:26.000Z
2019-12-17T13:47:06.000Z
apps/waxs_integrate.py
alexbjorling/nanomax-analysis-utils
e208d098243e28a90004c6e1c5fb69251177d23e
[ "MIT" ]
1
2021-04-07T10:00:33.000Z
2021-04-07T10:20:36.000Z
apps/waxs_integrate.py
alexbjorling/nanomax-analysis-utils
e208d098243e28a90004c6e1c5fb69251177d23e
[ "MIT" ]
1
2020-10-15T12:05:42.000Z
2020-10-15T12:05:42.000Z
""" Script which radially integrates the 2D data contained in a hdf5 file or list of files. """ import pyFAI, fabio import h5py import numpy as np import os, time, sys, argparse ### Parse input parser = argparse.ArgumentParser( description='This script integrates all detector frames in a hdf5 file or list of file...
39.1
190
0.627993
01194d8c25f7a9f93c4523b6d9b22ff1bf54455a
24,943
py
Python
sdk/python/v1beta1/kubeflow/katib/api_client.py
ChenjunZou/katib
6a07daae796c29d24f63375cce71b75c4eee8d9c
[ "Apache-2.0" ]
null
null
null
sdk/python/v1beta1/kubeflow/katib/api_client.py
ChenjunZou/katib
6a07daae796c29d24f63375cce71b75c4eee8d9c
[ "Apache-2.0" ]
null
null
null
sdk/python/v1beta1/kubeflow/katib/api_client.py
ChenjunZou/katib
6a07daae796c29d24f63375cce71b75c4eee8d9c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Katib Swagger description for Katib # noqa: E501 OpenAPI spec version: v1beta1-0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import datetime import json import mimetypes from multiprocessing.pool import Threa...
39.034429
96
0.551778
45089325f885e62408b7fc60eb7ef3b2d75bc4fe
2,175
py
Python
generated_python_code/ball_collector/teleoperated/scripts/auxiliary_functions.py
mfigat/public_rshpn_tool
3555cb8f1eb35ef12441b9aef63dae8f578c2aa7
[ "BSD-3-Clause" ]
null
null
null
generated_python_code/ball_collector/teleoperated/scripts/auxiliary_functions.py
mfigat/public_rshpn_tool
3555cb8f1eb35ef12441b9aef63dae8f578c2aa7
[ "BSD-3-Clause" ]
null
null
null
generated_python_code/ball_collector/teleoperated/scripts/auxiliary_functions.py
mfigat/public_rshpn_tool
3555cb8f1eb35ef12441b9aef63dae8f578c2aa7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' Copyright (c) 2019, Robot Control and Pattern Recognition Group, Warsaw University of Technology All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions...
41.826923
98
0.75954
1965bc554a47a5d8fc4eeb55d054a5e552ebd16b
49
py
Python
iaso/gpkg/__init__.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
29
2020-12-26T07:22:19.000Z
2022-03-07T13:40:09.000Z
iaso/gpkg/__init__.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
150
2020-11-09T15:03:27.000Z
2022-03-07T15:36:07.000Z
iaso/gpkg/__init__.py
BLSQ/iaso
95c8087c0182bdd576598eb8cd39c440e58e15d7
[ "MIT" ]
4
2020-11-09T10:38:13.000Z
2021-10-04T09:42:47.000Z
from .export_gpkg import org_units_to_gpkg_bytes
24.5
48
0.897959
281a53a8b49319de2ce7f3991f3be1aa468a3445
1,200
py
Python
ledger/payments/bpay/migrations/0008_auto_20170203_1045.py
jawaidm/ledger
7094f3320d6a409a2a0080e70fa7c2b9dba4a715
[ "Apache-2.0" ]
5
2018-02-12T03:16:36.000Z
2019-09-07T20:36:37.000Z
ledger/payments/bpay/migrations/0008_auto_20170203_1045.py
jawaidm/ledger
7094f3320d6a409a2a0080e70fa7c2b9dba4a715
[ "Apache-2.0" ]
162
2018-02-16T05:13:03.000Z
2021-05-14T02:47:37.000Z
ledger/payments/bpay/migrations/0008_auto_20170203_1045.py
jawaidm/ledger
7094f3320d6a409a2a0080e70fa7c2b9dba4a715
[ "Apache-2.0" ]
14
2018-02-15T05:22:36.000Z
2022-02-15T08:24:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-03 02:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bpay', '0007_auto_20170106_1600'), ] operations = [ migrations.AddField( ...
32.432432
118
0.616667
206a4a80dc9cbb57df5c5281e4360ff61ccc404d
12,501
py
Python
processflow/jobs/e3smdiags.py
E3SM-Project/acme_processflow
84110cab08f7897d1489a6dc925258580a5d2bff
[ "MIT" ]
3
2019-02-06T23:46:36.000Z
2022-02-28T01:39:26.000Z
processflow/jobs/e3smdiags.py
E3SM-Project/acme_processflow
84110cab08f7897d1489a6dc925258580a5d2bff
[ "MIT" ]
62
2018-04-30T16:26:48.000Z
2021-06-02T18:25:35.000Z
processflow/jobs/e3smdiags.py
E3SM-Project/acme_processflow
84110cab08f7897d1489a6dc925258580a5d2bff
[ "MIT" ]
4
2018-07-26T16:07:07.000Z
2021-06-02T12:01:48.000Z
""" A wrapper class around E3SM Diags """ from __future__ import absolute_import, division, print_function, unicode_literals import logging import os from bs4 import BeautifulSoup from processflow.jobs.diag import Diag from processflow.lib.jobstatus import JobStatus from processflow.lib.util import render, print_line...
41.257426
132
0.548036
68ff7d8a8cc7132ff605d31a28f1480ed9df87c7
6,230
py
Python
imguralbum.py
z-shell/imgur-album-downloader
107583bd8e75233bce252cb34674fd46f4aa130f
[ "MIT" ]
null
null
null
imguralbum.py
z-shell/imgur-album-downloader
107583bd8e75233bce252cb34674fd46f4aa130f
[ "MIT" ]
null
null
null
imguralbum.py
z-shell/imgur-album-downloader
107583bd8e75233bce252cb34674fd46f4aa130f
[ "MIT" ]
1
2022-01-07T01:42:43.000Z
2022-01-07T01:42:43.000Z
#!/usr/bin/env python3 # encoding: utf-8 """ imguralbum.py - Download a whole imgur album in one go. Provides both a class and a command line utility in a single script to download Imgur albums. MIT License Copyright Alex Gisby <alex@solution10.com> """ import sys import re import urllib.request, urllib.parse, url...
30.841584
116
0.583949
57bc188a7b98c6aa83af0eddab173c978f650137
1,942
py
Python
aria/modeling/__init__.py
enricorusso/incubator-ariatosca
3748b1962697712bde29c9de781d867c6c5ffad1
[ "Apache-2.0" ]
1
2018-10-13T06:32:10.000Z
2018-10-13T06:32:10.000Z
aria/modeling/__init__.py
enricorusso/incubator-ariatosca
3748b1962697712bde29c9de781d867c6c5ffad1
[ "Apache-2.0" ]
null
null
null
aria/modeling/__init__.py
enricorusso/incubator-ariatosca
3748b1962697712bde29c9de781d867c6c5ffad1
[ "Apache-2.0" ]
1
2020-06-16T15:13:06.000Z
2020-06-16T15:13:06.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 ...
35.309091
85
0.663234
1dea72fb259af792577109738a1dbc63324f43b3
13,841
py
Python
dynamic_dynamodb/config/config_file_parser.py
tellybug/dynamic-dynamodb
a681194d933cb31507ddde6a225f1a4ddac0509f
[ "Apache-2.0" ]
null
null
null
dynamic_dynamodb/config/config_file_parser.py
tellybug/dynamic-dynamodb
a681194d933cb31507ddde6a225f1a4ddac0509f
[ "Apache-2.0" ]
null
null
null
dynamic_dynamodb/config/config_file_parser.py
tellybug/dynamic-dynamodb
a681194d933cb31507ddde6a225f1a4ddac0509f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Command line configuration parser """ import sys import os.path import ConfigParser from copy import deepcopy TABLE_CONFIG_OPTIONS = [ { 'key': 'enable_reads_autoscaling', 'option': 'enable-reads-autoscaling', 'required': False, 'type': 'bool' }, ...
29.324153
77
0.486815
4d7d079e59959726ad2bb66d3a46b418c7d68bd3
3,220
py
Python
testing/tests/b64pickle_test.py
alexey74/django-concurrent-test-helper
1202915049a498d8fc31a75d83b459854f76750b
[ "Apache-2.0" ]
13
2016-03-30T10:45:10.000Z
2020-12-29T14:15:50.000Z
testing/tests/b64pickle_test.py
alexey74/django-concurrent-test-helper
1202915049a498d8fc31a75d83b459854f76750b
[ "Apache-2.0" ]
5
2017-04-05T14:56:32.000Z
2020-03-28T20:34:09.000Z
testing/tests/b64pickle_test.py
alexey74/django-concurrent-test-helper
1202915049a498d8fc31a75d83b459854f76750b
[ "Apache-2.0" ]
1
2021-01-12T16:38:49.000Z
2021-01-12T16:38:49.000Z
# -*- coding: UTF-8 -*- from __future__ import unicode_literals, print_function from base64 import b64encode from datetime import date, datetime from decimal import Decimal try: from StringIO import StringIO except ImportError: from io import StringIO import mock import pytest import pytz from django_concurre...
25.555556
74
0.694099
905ac1aeb3a2fe63b606126d66972d794eb15322
1,623
py
Python
geotrek/sensitivity/serializers.py
fossabot/Geotrek-admin
ea2c873511ad724c742c64d81cbf31f37dbe3093
[ "BSD-2-Clause" ]
null
null
null
geotrek/sensitivity/serializers.py
fossabot/Geotrek-admin
ea2c873511ad724c742c64d81cbf31f37dbe3093
[ "BSD-2-Clause" ]
null
null
null
geotrek/sensitivity/serializers.py
fossabot/Geotrek-admin
ea2c873511ad724c742c64d81cbf31f37dbe3093
[ "BSD-2-Clause" ]
null
null
null
from django.core.urlresolvers import reverse from django.utils.translation import get_language from rest_framework import serializers as rest_serializers from rest_framework_gis import serializers as geo_serializers from geotrek.common.serializers import PictogramSerializerMixin, TranslatedModelSerializer from geotrek....
38.642857
116
0.749846
8cf33e5d398b6b9cb40dc27f9ddab1dcd73e7680
1,654
py
Python
tools/perf/benchmarks/indexeddb_perf.py
SlimKatLegacy/android_external_chromium_org
ee480ef5039d7c561fc66ccf52169ead186f1bea
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-04T02:36:53.000Z
2016-06-25T11:22:17.000Z
tools/perf/benchmarks/indexeddb_perf.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/benchmarks/indexeddb_perf.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2015-02-09T08:49:30.000Z
2017-08-26T02:03:34.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs Chromium's IndexedDB performance test. These test: Databases: create/delete Keys: create/delete Indexes: create/delete Data access: Random r...
27.114754
76
0.69347
f96559c501ae5491a68e7d46164eb07f5e1d74b4
989
py
Python
django_server/api/urls.py
DigitalHealthIntegration/rdt-reader
242a4d813a6b58b3668f4d4ce35cea8f55bd651f
[ "MIT" ]
2
2021-05-12T13:38:30.000Z
2022-02-26T13:45:54.000Z
django_server/api/urls.py
DigitalHealthIntegration/rdt-reader
242a4d813a6b58b3668f4d4ce35cea8f55bd651f
[ "MIT" ]
null
null
null
django_server/api/urls.py
DigitalHealthIntegration/rdt-reader
242a4d813a6b58b3668f4d4ce35cea8f55bd651f
[ "MIT" ]
null
null
null
"""api URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
32.966667
77
0.715875
4502900de3229e5536af93887dcb375c2b370d99
1,793
py
Python
examples/tutorials/06_face_image.py
rmcolbert/vector-python-sdk
7e29e81578bd862b6462d7f7502c4aa67de29fb5
[ "Apache-2.0" ]
516
2018-12-12T06:05:03.000Z
2022-03-30T10:00:20.000Z
examples/tutorials/06_face_image.py
rmcolbert/vector-python-sdk
7e29e81578bd862b6462d7f7502c4aa67de29fb5
[ "Apache-2.0" ]
37
2018-12-12T09:41:46.000Z
2022-03-06T13:42:24.000Z
examples/tutorials/06_face_image.py
rmcolbert/vector-python-sdk
7e29e81578bd862b6462d7f7502c4aa67de29fb5
[ "Apache-2.0" ]
350
2018-12-11T23:24:01.000Z
2022-03-16T12:57:33.000Z
#!/usr/bin/env python3 # Copyright (c) 2018 Anki, 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 in the file LICENSE.txt or at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unle...
30.913793
92
0.714445
8491ed0098ecfe2f7009bc35b684154223d7863b
9,641
py
Python
tensorflow/python/keras/layers/rnn_cell_wrapper_v2_test.py
joshz123/tensorflow
7841ca029060ab78e221e757d4b1ee6e3e0ffaa4
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/keras/layers/rnn_cell_wrapper_v2_test.py
joshz123/tensorflow
7841ca029060ab78e221e757d4b1ee6e3e0ffaa4
[ "Apache-2.0" ]
203
2019-06-14T23:53:10.000Z
2022-02-10T02:27:23.000Z
tensorflow/python/keras/layers/rnn_cell_wrapper_v2_test.py
joshz123/tensorflow
7841ca029060ab78e221e757d4b1ee6e3e0ffaa4
[ "Apache-2.0" ]
28
2020-02-10T07:03:06.000Z
2022-01-12T11:19:20.000Z
# Copyright 2019 The TensorFlow Authors. 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/LICENSE-2.0 # # Unless required by applica...
41.025532
80
0.733326
6471e53a2b50a578cc0a32c5b9064b6a6b64a893
1,080
py
Python
arcade/python/arcade-theCore/10_LabOfTransformations/086_Decipher.py
netor27/codefights-arcade-solutions
69701ab06d45902c79ec9221137f90b75969d8c8
[ "MIT" ]
null
null
null
arcade/python/arcade-theCore/10_LabOfTransformations/086_Decipher.py
netor27/codefights-arcade-solutions
69701ab06d45902c79ec9221137f90b75969d8c8
[ "MIT" ]
null
null
null
arcade/python/arcade-theCore/10_LabOfTransformations/086_Decipher.py
netor27/codefights-arcade-solutions
69701ab06d45902c79ec9221137f90b75969d8c8
[ "MIT" ]
null
null
null
''' Consider the following ciphering algorithm: For each character replace it with its code. Concatenate all of the obtained numbers. Given a ciphered string, return the initial one if it is known that it consists only of lowercase letters. Note: here the character's code means its decimal ASCII code, the numerical r...
28.421053
148
0.628704
be70b1f0e1ec5cae9c1b572b3552bb694d71c95a
2,282
py
Python
sdk/python/pulumi_azure_nextgen/labservices/v20181015/get_global_user_operation_status.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/labservices/v20181015/get_global_user_operation_status.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/labservices/v20181015/get_global_user_operation_status.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
35.107692
170
0.695004
06f57cbad9d521a407114aeb45de9d0195f21523
211
py
Python
espressodb/documentation/apps.py
remram44/espressodb
5aad7222ab81c0f1694b51171e5d197dbcc8a65f
[ "BSD-3-Clause" ]
8
2019-12-10T04:30:01.000Z
2020-10-30T09:40:22.000Z
espressodb/documentation/apps.py
remram44/espressodb
5aad7222ab81c0f1694b51171e5d197dbcc8a65f
[ "BSD-3-Clause" ]
41
2019-10-23T00:26:25.000Z
2021-10-21T07:55:57.000Z
espressodb/documentation/apps.py
remram44/espressodb
5aad7222ab81c0f1694b51171e5d197dbcc8a65f
[ "BSD-3-Clause" ]
3
2020-01-09T21:29:09.000Z
2021-03-14T22:20:52.000Z
# pylint: disable=missing-docstring from django.apps import AppConfig class DocumentationConfig(AppConfig): name = "espressodb.documentation" verbose_name = "Documentation" label = "documentation"
23.444444
37
0.763033
a6cab50749025eeeca9f5abce049d5a55b7793c9
12,317
py
Python
iconservice/icon_constant.py
icon-project/icon-service
dfa61fcc42425390a0398ada42ce2121278eec08
[ "Apache-2.0" ]
52
2018-08-24T02:28:43.000Z
2021-07-06T04:44:22.000Z
iconservice/icon_constant.py
icon-project/icon-service
dfa61fcc42425390a0398ada42ce2121278eec08
[ "Apache-2.0" ]
62
2018-09-17T06:59:16.000Z
2021-12-15T06:02:51.000Z
iconservice/icon_constant.py
icon-project/icon-service
dfa61fcc42425390a0398ada42ce2121278eec08
[ "Apache-2.0" ]
35
2018-09-14T02:42:10.000Z
2022-02-05T10:34:46.000Z
# Copyright 2018 ICON Foundation # # 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 writi...
24.535857
111
0.695299
6b25f358325145e39c6f0f273bf2c88adb22d53c
397
py
Python
djangoproj/djangoproj/wsgi.py
olson996/django_heroku
0ac764a00ab7069c8f59456502e67fbe1f6d8755
[ "MIT" ]
null
null
null
djangoproj/djangoproj/wsgi.py
olson996/django_heroku
0ac764a00ab7069c8f59456502e67fbe1f6d8755
[ "MIT" ]
null
null
null
djangoproj/djangoproj/wsgi.py
olson996/django_heroku
0ac764a00ab7069c8f59456502e67fbe1f6d8755
[ "MIT" ]
null
null
null
""" WSGI config for djangoproj project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
a33bf048176dba62199cbc57a5baf585c9f0f6e1
22,050
py
Python
test/functional/test_framework/util.py
aentan/ain
1d6db33159de1c8c7930d29a0ab0902f42b728c1
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
aentan/ain
1d6db33159de1c8c7930d29a0ab0902f42b728c1
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
aentan/ain
1d6db33159de1c8c7930d29a0ab0902f42b728c1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Helpful routines for regression testing.""" from base64 import b64encode from binascii import unhexlif...
38.820423
140
0.652063
6ebefd751306fd50dad0ec67488574f2f6f6120d
4,713
py
Python
bitmovin/resources/models/encodings/muxings/muxing.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
null
null
null
bitmovin/resources/models/encodings/muxings/muxing.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
null
null
null
bitmovin/resources/models/encodings/muxings/muxing.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
null
null
null
from bitmovin.errors import InvalidTypeError from bitmovin.resources.models import AbstractModel from bitmovin.resources import AbstractNameDescriptionResource from bitmovin.resources.models.encodings.encoding_output import EncodingOutput from bitmovin.resources.models.encodings.ignored_by import IgnoredBy from bitmovi...
38.631148
109
0.669637
5559d973b142d27fd090e19f2cc183667397db31
188
py
Python
src/py/util/collatz.py
cgnik/euler
fe70459a0e0d0272980300a4782872f2e545fea5
[ "MIT" ]
null
null
null
src/py/util/collatz.py
cgnik/euler
fe70459a0e0d0272980300a4782872f2e545fea5
[ "MIT" ]
null
null
null
src/py/util/collatz.py
cgnik/euler
fe70459a0e0d0272980300a4782872f2e545fea5
[ "MIT" ]
null
null
null
def collatz(n): if n % 2 == 0: return int(n / 2) return (n * 3) + 1 def collatz_series(n): a = n while a != 1: a = collatz(a) yield a return 1
15.666667
25
0.452128
baf0aa060f2fb2c258269802458a7ebdfa2a97ea
1,542
bzl
Python
test/starlark_tests/rules/output_group_test.bzl
tnek/rules_apple
739aa74febeb95902dded57f7a49c85c1f153756
[ "Apache-2.0" ]
313
2017-03-29T21:47:08.000Z
2022-03-29T03:09:50.000Z
test/starlark_tests/rules/output_group_test.bzl
tnek/rules_apple
739aa74febeb95902dded57f7a49c85c1f153756
[ "Apache-2.0" ]
786
2017-03-30T16:15:59.000Z
2022-03-31T19:58:05.000Z
test/starlark_tests/rules/output_group_test.bzl
tnek/rules_apple
739aa74febeb95902dded57f7a49c85c1f153756
[ "Apache-2.0" ]
172
2017-04-24T01:55:24.000Z
2022-03-25T19:23:31.000Z
# Copyright 2020 The Bazel Authors. 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/LICENSE-2.0 # # Unless required by applicable la...
31.469388
84
0.683528
d419f911e78c1be8a0cde7b07b12f566eb7e9ee2
1,273
py
Python
Cap_9/ex9.8/ex9.8.py
gguilherme42/Livro-de-Python
465a509d50476fd1a87239c71ed741639d58418b
[ "MIT" ]
4
2020-04-07T00:38:46.000Z
2022-03-10T03:34:42.000Z
Cap_9/ex9.8/ex9.8.py
gguilherme42/Livro-de-Python
465a509d50476fd1a87239c71ed741639d58418b
[ "MIT" ]
null
null
null
Cap_9/ex9.8/ex9.8.py
gguilherme42/Livro-de-Python
465a509d50476fd1a87239c71ed741639d58418b
[ "MIT" ]
1
2021-04-22T02:45:38.000Z
2021-04-22T02:45:38.000Z
import sys if len(sys.argv) != 3: raise print('script.py line_lenght lines_per_page') LARGURA = int(sys.argv[1]) #Comandos do terminal são strings LINHAS = int(sys.argv[2]) NOME_DO_ARQUIVO = "StuartMill_OnLiberty.txt" def verifica_pagina(arquivo, linha, pagina): if(linha == LINHAS): rodape = f"= {NO...
25.979592
64
0.627651
dc77d36aba2e06a5068c75533c4cc434d016f077
3,133
py
Python
api/worldmap.py
TilakMaddy/OpenPoGoBot
09d11c5349599add5d26518b784d014612adc3d1
[ "MIT" ]
183
2016-07-23T22:29:18.000Z
2016-09-25T15:39:10.000Z
api/worldmap.py
OpenPoGo/OpenPoGo
02a6c955a36e25f7dd7d325f20ea9d6f5418a911
[ "MIT" ]
354
2016-07-23T21:43:27.000Z
2016-09-15T21:01:39.000Z
api/worldmap.py
OpenPoGo/OpenPoGo
02a6c955a36e25f7dd7d325f20ea9d6f5418a911
[ "MIT" ]
104
2016-07-23T22:28:58.000Z
2016-09-09T11:28:01.000Z
# pylint: disable=redefined-builtin from builtins import str import time from api.json_encodable import JSONEncodable class Fort(JSONEncodable): def __init__(self, data): self.fort_id = data.get("id", "") self.fort_name = data.get("name", "Unknown").encode('ascii', 'replace') ...
34.428571
89
0.622726
6f3ae4a21a86e819068db9106ce4b22cd7895e5d
3,122
py
Python
pyiap/make_iap_request.py
newsdev/nyt-pyiap
7b0bdcbe8d0ac4f3c63a65ea069297792c150422
[ "Apache-2.0" ]
3
2018-07-18T11:19:37.000Z
2019-02-25T19:22:30.000Z
pyiap/make_iap_request.py
newsdev/nyt-pyiap
7b0bdcbe8d0ac4f3c63a65ea069297792c150422
[ "Apache-2.0" ]
null
null
null
pyiap/make_iap_request.py
newsdev/nyt-pyiap
7b0bdcbe8d0ac4f3c63a65ea069297792c150422
[ "Apache-2.0" ]
3
2017-05-30T23:26:08.000Z
2020-04-22T15:32:40.000Z
import os import google.auth import google.auth.app_engine import google.auth.compute_engine.credentials import google.auth.iam from google.auth.transport.requests import Request import google.oauth2.credentials import google.oauth2.service_account from google.oauth2 import service_account import requests import reque...
40.025641
101
0.722293
e22f915f4ca9e7b33c267c82b93101d8a5c78309
176
py
Python
Inversor.py
fedegy/ipc1E_corto3
807807d78960a9cc1a2a1d06c5143af15bbf20f2
[ "Apache-2.0" ]
null
null
null
Inversor.py
fedegy/ipc1E_corto3
807807d78960a9cc1a2a1d06c5143af15bbf20f2
[ "Apache-2.0" ]
null
null
null
Inversor.py
fedegy/ipc1E_corto3
807807d78960a9cc1a2a1d06c5143af15bbf20f2
[ "Apache-2.0" ]
null
null
null
class Inversor: def __init__(self,resultado): self.resultado=resultado def dump(self): return{ 'resutlado' : self.resultado }
17.6
40
0.556818
87109cc1d6b8b1e135fac77709389fd427b1590d
8,301
py
Python
demisto_sdk/commands/json_to_outputs/json_to_outputs.py
sturmianseq/demisto-sdk
67ce7ee70ccd557d661e03a60469301c5cbcb9c0
[ "MIT" ]
null
null
null
demisto_sdk/commands/json_to_outputs/json_to_outputs.py
sturmianseq/demisto-sdk
67ce7ee70ccd557d661e03a60469301c5cbcb9c0
[ "MIT" ]
null
null
null
demisto_sdk/commands/json_to_outputs/json_to_outputs.py
sturmianseq/demisto-sdk
67ce7ee70ccd557d661e03a60469301c5cbcb9c0
[ "MIT" ]
null
null
null
""" This script parses a raw response from an API(JSON) into yml formatted file with the context path of each field. For example: { "id":12131, "description":"desc", "summary":"do-not-delete", "created":"2019-03-25T16:13:13.188+0200", "issuetype":{ "id":10004, "name":"Bug" }, ...
30.630996
116
0.617757
8672385d04f6b7cd04f12ee5b7a183f75c529b22
226
py
Python
slack_bot_manager/urls.py
devights/coffeebot
ade8ed3c7fc77eaaed049b7f290d8afca318593a
[ "Apache-2.0" ]
null
null
null
slack_bot_manager/urls.py
devights/coffeebot
ade8ed3c7fc77eaaed049b7f290d8afca318593a
[ "Apache-2.0" ]
null
null
null
slack_bot_manager/urls.py
devights/coffeebot
ade8ed3c7fc77eaaed049b7f290d8afca318593a
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', url(r'^$', 'bot_manager.views.home.home', name='home'), url(r'^botmgr/', include('bot_manager.urls')), )
28.25
59
0.69469
2fb6d7c687adfd33f3cc091b69cc218d8efcffdd
2,697
py
Python
backend/server/apps/ml/tests.py
pratsingh/ML_Django_Project
c39266601ae86c3c708ccb566872beea3bff37bc
[ "MIT" ]
null
null
null
backend/server/apps/ml/tests.py
pratsingh/ML_Django_Project
c39266601ae86c3c708ccb566872beea3bff37bc
[ "MIT" ]
null
null
null
backend/server/apps/ml/tests.py
pratsingh/ML_Django_Project
c39266601ae86c3c708ccb566872beea3bff37bc
[ "MIT" ]
null
null
null
import inspect from apps.ml.registry import MLRegistry from django.test import TestCase from apps.ml.income_classifier.extra_trees import ExtraTreesClassifier from apps.ml.income_classifier.random_forest import RandomForestClassifier class MLTests(TestCase): def test_rf_algorithm(self): input_data = { ...
37.458333
84
0.58769
ec267c9ac48e8262579e34b26bd200b8b5d663e9
305
py
Python
2016/01/unemployment-20160108/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2016/01/unemployment-20160108/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2016/01/unemployment-20160108/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1mCqs8ehZe64_muXgzaoRQcexPhTNkKqAL1tXsIUmjBY' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
21.785714
77
0.819672
ad2fc43105f494b003ef1317125835a98f1b89f1
81,140
py
Python
tests/test_flatland_envs_sparse_rail_generator.py
null-pi/flatland-challenge
babc6895551f96da1c1b6bea6953db498cfa8644
[ "MIT" ]
null
null
null
tests/test_flatland_envs_sparse_rail_generator.py
null-pi/flatland-challenge
babc6895551f96da1c1b6bea6953db498cfa8644
[ "MIT" ]
1
2020-09-04T13:57:01.000Z
2020-09-09T19:21:33.000Z
tests/test_flatland_envs_sparse_rail_generator.py
null-pi/flatland-challenge
babc6895551f96da1c1b6bea6953db498cfa8644
[ "MIT" ]
null
null
null
import unittest import warnings import numpy as np from flatland.core.grid.grid_utils import Vec2dOperations as Vec2d from flatland.envs.observations import GlobalObsForRailEnv from flatland.envs.rail_env import RailEnv from flatland.envs.rail_generators import sparse_rail_generator from flatland.envs.schedule_genera...
53.24147
164
0.636468
9a7082c94a928097352bd06e5f52289baf6a6e5c
1,458
py
Python
python/aixexplainer/setup.py
pvaneck/kserve
5ba63e74eadd66797b6681fcefd89d7e2462ffac
[ "Apache-2.0" ]
null
null
null
python/aixexplainer/setup.py
pvaneck/kserve
5ba63e74eadd66797b6681fcefd89d7e2462ffac
[ "Apache-2.0" ]
null
null
null
python/aixexplainer/setup.py
pvaneck/kserve
5ba63e74eadd66797b6681fcefd89d7e2462ffac
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 kubeflow.org. # # 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,...
33.136364
79
0.683128
c5b463cd8a3faed3e0f06fb7ebe1011a5bfddef0
2,417
py
Python
motors/main.py
Abhiek187/floor-printing-robot
f1e5ffcdc74b4fb66a4f3607241a162016d58f99
[ "MIT" ]
null
null
null
motors/main.py
Abhiek187/floor-printing-robot
f1e5ffcdc74b4fb66a4f3607241a162016d58f99
[ "MIT" ]
null
null
null
motors/main.py
Abhiek187/floor-printing-robot
f1e5ffcdc74b4fb66a4f3607241a162016d58f99
[ "MIT" ]
1
2020-03-08T00:28:29.000Z
2020-03-08T00:28:29.000Z
#!/usr/bin/python from PCA9685 import PCA9685 from time import sleep Dir = [ 'forward', 'backward', ] pwm = PCA9685(0x40, debug=False) pwm.setPWMFreq(50) # freq range: 40 - 1000 class MotorDriver(): def __init__(self): self.PWMA = 0 self.AIN1 = 1 self.AIN2 = 2 self.PWMB = ...
23.466019
65
0.571783
71771d941c4063480220eae681d43eecb07edf6b
1,875
py
Python
website/.meta/login.html.py
ALo0f/CSE389Project
3b26fa432433c5b69b5de236a6f49d4a007d1fcb
[ "MIT" ]
1
2020-10-21T03:18:33.000Z
2020-10-21T03:18:33.000Z
website/.meta/login.html.py
ALo0f/CSE389Project
3b26fa432433c5b69b5de236a6f49d4a007d1fcb
[ "MIT" ]
null
null
null
website/.meta/login.html.py
ALo0f/CSE389Project
3b26fa432433c5b69b5de236a6f49d4a007d1fcb
[ "MIT" ]
1
2020-11-05T02:54:25.000Z
2020-11-05T02:54:25.000Z
# script for handling login.html parameters import os import sys import argparse from email.utils import formatdate HEADER_Accepted = [ "HTTP/1.1 302 Verified\r\n", "Date: {}\r\n".format(formatdate(timeval=None, localtime=False, usegmt=True)), "Server: Pr0j3ct subprocess\r\n", "Location: /presentation...
28.846154
86
0.6256
6f755ea0c2aa86763d3f5f985c5a57e02de40cc6
850
py
Python
demos/crane/libs/baseclass/root_screen.py
Jonypr-code/KivyMD
3ac5ba86430d9002baef678b47f0d7873b66b7bd
[ "MIT" ]
1,111
2015-07-15T02:31:09.000Z
2022-03-29T17:22:02.000Z
demos/crane/libs/baseclass/root_screen.py
AllSafeCybercurity/kivyMD
85c51f3e7a26ca170d639e73899df5d465ee8941
[ "MIT" ]
706
2015-06-10T22:24:13.000Z
2022-03-31T16:22:39.000Z
demos/crane/libs/baseclass/root_screen.py
AllSafeCybercurity/kivyMD
85c51f3e7a26ca170d639e73899df5d465ee8941
[ "MIT" ]
561
2015-07-15T04:57:23.000Z
2022-03-31T17:14:31.000Z
from os import environ from kivy.clock import Clock from kivy.properties import StringProperty from kivy.uix.image import Image from kivymd.theming import ThemableBehavior from kivymd.uix.boxlayout import MDBoxLayout from kivymd.uix.screen import MDScreen class CraneRootScreen(ThemableBehavior, MDScreen): def _...
28.333333
75
0.702353
7e4bab1adaa2f31d62bd7e85ed86081913415dc6
21,858
py
Python
oscpy/oscpy/server.py
WeilerWebServices/Kivy
54e3438156eb0c853790fd3cecc593f09123f892
[ "MIT" ]
6
2021-12-25T08:57:23.000Z
2022-03-26T22:10:38.000Z
oscpy/server.py
simasimataiyo/IFJoiner
b6318dafde2c86759790f2f75675aec9e5560c70
[ "MIT" ]
null
null
null
oscpy/server.py
simasimataiyo/IFJoiner
b6318dafde2c86759790f2f75675aec9e5560c70
[ "MIT" ]
null
null
null
"""Server API. This module currently only implements `OSCThreadServer`, a thread based server. """ import logging from threading import Thread, Event import os import re import inspect from sys import platform from time import sleep, time from functools import partial from select import select import socket from osc...
34.260188
97
0.579147
fffd1cad99ea2b1172aa43af550545575025a3ab
648
py
Python
tests/unit/transports/transport_test.py
vitaly-krugl/haigha
e5320abfab91b89f4bad33644a7528e4517d96a7
[ "BSD-3-Clause" ]
null
null
null
tests/unit/transports/transport_test.py
vitaly-krugl/haigha
e5320abfab91b89f4bad33644a7528e4517d96a7
[ "BSD-3-Clause" ]
null
null
null
tests/unit/transports/transport_test.py
vitaly-krugl/haigha
e5320abfab91b89f4bad33644a7528e4517d96a7
[ "BSD-3-Clause" ]
null
null
null
''' Copyright (c) 2011-2015, Agora Games, LLC All rights reserved. https://github.com/agoragames/haigha/blob/master/LICENSE.txt ''' from chai import Chai from haigha.transports.transport import Transport class TransportTest(Chai): def test_init_and_connection_property(self): t = Transport('conn') ...
23.142857
62
0.658951
eab71e80308fefc20469c3c5c87d66c4b332fb63
69,862
py
Python
Lib/test/test_asyncio/test_streams.py
dhdavvie/cpython
c9345e382c630ddcc2b148b30954640e0e435c8a
[ "CNRI-Python-GPL-Compatible" ]
4
2019-09-12T02:35:07.000Z
2022-01-19T23:04:45.000Z
Lib/test/test_asyncio/test_streams.py
anuragkumarak95/cpython
d309352c6fd93a51f2b3011ca8c2125d3a5d394b
[ "CNRI-Python-GPL-Compatible" ]
3
2020-03-15T21:17:00.000Z
2020-03-15T22:50:40.000Z
Lib/test/test_asyncio/test_streams.py
anuragkumarak95/cpython
d309352c6fd93a51f2b3011ca8c2125d3a5d394b
[ "CNRI-Python-GPL-Compatible" ]
2
2017-11-22T23:32:25.000Z
2018-11-15T01:31:39.000Z
"""Tests for streams.py.""" import contextlib import gc import io import os import queue import pickle import socket import sys import threading import unittest from unittest import mock from test import support try: import ssl except ImportError: ssl = None import asyncio from asyncio.streams import _StreamP...
39.007259
85
0.582062
f722240a67244d196847090cdf5dd01aa951f23d
61,618
py
Python
cumulusci/robotframework/Salesforce.py
leboff/CumulusCI
81edbb1d64f2cc215a951c570052a1e423821cc1
[ "BSD-3-Clause" ]
null
null
null
cumulusci/robotframework/Salesforce.py
leboff/CumulusCI
81edbb1d64f2cc215a951c570052a1e423821cc1
[ "BSD-3-Clause" ]
null
null
null
cumulusci/robotframework/Salesforce.py
leboff/CumulusCI
81edbb1d64f2cc215a951c570052a1e423821cc1
[ "BSD-3-Clause" ]
null
null
null
import importlib import logging import re import time from datetime import datetime from dateutil.parser import parse as parse_date, ParserError from pprint import pformat from robot.libraries.BuiltIn import BuiltIn, RobotNotRunningError from robot.utils import timestr_to_secs from cumulusci.robotframework.utils impor...
40.115885
134
0.628242
eaed9abeb02fdcf770a7bebf99b9d65ae0d1d965
1,740
py
Python
util/config_util.py
Genpeng/order-sales-forecast
c89269817a0d936900e5deb9bcc2f9a0d885382d
[ "Apache-2.0" ]
3
2019-12-29T16:18:26.000Z
2020-07-05T15:39:27.000Z
util/config_util.py
Genpeng/order-sales-forecast
c89269817a0d936900e5deb9bcc2f9a0d885382d
[ "Apache-2.0" ]
null
null
null
util/config_util.py
Genpeng/order-sales-forecast
c89269817a0d936900e5deb9bcc2f9a0d885382d
[ "Apache-2.0" ]
null
null
null
# _*_ coding: utf-8 _*_ """ Some utility functions about loading configuration file. Author: Genpeng Xu """ import json import argparse from bunch import Bunch def get_config_from_json(json_file): """ Get the configuration by reading the `json_file` and return a Bunch object, which is attribute-style d...
25.588235
97
0.637931
00f054c2c63d69d6550b1df311221a60226ed63b
9,928
py
Python
sentinel_dataset/tile.py
ESA-PhiLab/NGVEO
d6346a9289f40b46f3f2c40cbb07e6afad3fbd29
[ "MIT" ]
35
2018-10-30T07:11:29.000Z
2022-03-20T10:43:40.000Z
sentinel_dataset/tile.py
ESA-PhiLab/NGVEO
d6346a9289f40b46f3f2c40cbb07e6afad3fbd29
[ "MIT" ]
5
2019-01-21T13:18:48.000Z
2022-03-11T23:32:23.000Z
sentinel_dataset/tile.py
ESA-PhiLab/NGVEO
d6346a9289f40b46f3f2c40cbb07e6afad3fbd29
[ "MIT" ]
8
2018-12-20T15:42:42.000Z
2021-05-04T20:46:09.000Z
from __future__ import print_function import json import os import numpy as np from sentinel_dataset._utils import parse_eodata_folder_name import rasterio class Tile(object): """ Utilities for reading tile objects""" data_prefix = 'data_' key_prefix_label = 'lbl_' key_meta_data = 'meta_data' # ...
38.48062
136
0.592164