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
a7bbd5a285c6bb9093667ccc2d4fc99f883f732d
1,573
py
Python
tests/fixtures.py
vfxetc/sgcache
670bfac2904373e19c2dac7504d2d7f87018833d
[ "BSD-3-Clause" ]
13
2017-09-06T21:48:57.000Z
2022-02-08T20:50:52.000Z
tests/fixtures.py
vfxetc/sgcache
670bfac2904373e19c2dac7504d2d7f87018833d
[ "BSD-3-Clause" ]
1
2021-04-04T18:07:04.000Z
2021-04-04T18:07:04.000Z
tests/fixtures.py
vfxetc/sgcache
670bfac2904373e19c2dac7504d2d7f87018833d
[ "BSD-3-Clause" ]
1
2019-07-19T01:23:19.000Z
2019-07-19T01:23:19.000Z
from . import uuid def task_crud(self, shotgun, trigger_poll=lambda: None): shot_name = uuid(8) shot = shotgun.create('Shot', {'code': shot_name}) name = uuid(8) task = shotgun.create('Task', {'content': name, 'entity': shot}) trigger_poll() x = self.cached.find_one('Task', [('id', 'is', ta...
34.195652
96
0.590591
0
0
0
0
0
0
0
0
431
0.273999
a7bbfcd8b016b1703e3c92ed7c1cef2bc74d76e6
3,098
py
Python
config.py
ricsonc/aptools
c6ff775a7ae5a7ea7b27235748fd45769d037ae8
[ "MIT" ]
1
2020-11-09T18:02:36.000Z
2020-11-09T18:02:36.000Z
config.py
ricsonc/aptools
c6ff775a7ae5a7ea7b27235748fd45769d037ae8
[ "MIT" ]
null
null
null
config.py
ricsonc/aptools
c6ff775a7ae5a7ea7b27235748fd45769d037ae8
[ "MIT" ]
null
null
null
from munch import Munch as M cores = 20 demosaic_params = M( # at most one of use_flat or use_lens_profile should be True # strongly recommended to have at least 1 be True use_flat = False, use_lens_profile = True, alg = 'DCB', #alternatively, use LMMSE camera = 'auto', # alternatively, speci...
34.422222
92
0.679471
0
0
0
0
0
0
0
0
1,902
0.613944
a7bc5dad7ba38fc7552e7848f03173e599033cdb
10,809
py
Python
src/cogs/ide/dialogs/navigated_saved.py
boopdev/Jarvide
10920d53e4193c7e5526012b572c00f26536cd6c
[ "MIT" ]
null
null
null
src/cogs/ide/dialogs/navigated_saved.py
boopdev/Jarvide
10920d53e4193c7e5526012b572c00f26536cd6c
[ "MIT" ]
null
null
null
src/cogs/ide/dialogs/navigated_saved.py
boopdev/Jarvide
10920d53e4193c7e5526012b572c00f26536cd6c
[ "MIT" ]
null
null
null
import disnake import time from disnake.ext import commands from typing import Optional from odmantic import Model from src.utils import ExitButton, EmbedFactory, File, get_info class FileModel(Model): # noqa user_id: int name: str file_url: Optional[str] = None folder: Optional[str] = None cre...
33.258462
195
0.569248
10,617
0.982237
0
0
8,867
0.820335
8,879
0.821445
1,454
0.134518
a7be5a9cf5c8b15026fbcff5a02db179d5654ed0
6,098
py
Python
BiBloSA/exp_SICK/src/evaluator.py
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
[ "BSD-3-Clause" ]
116
2018-02-01T08:33:35.000Z
2021-08-04T05:28:04.000Z
BiBloSA/exp_SICK/src/evaluator.py
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
[ "BSD-3-Clause" ]
2
2019-02-23T18:54:22.000Z
2019-11-09T01:30:32.000Z
BiBloSA/exp_SICK/src/evaluator.py
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
[ "BSD-3-Clause" ]
35
2019-02-08T02:00:31.000Z
2022-03-01T23:17:00.000Z
from configs import cfg from src.utils.record_log import _logger import numpy as np import tensorflow as tf import scipy.stats as stats class Evaluator(object): def __init__(self, model): self.model = model self.global_step = model.global_step ## ---- summary---- self.build_summar...
51.677966
120
0.642178
5,955
0.97655
0
0
0
0
0
0
1,114
0.182683
a7c14fda1fe9509c8caa57724445fdcaee4171b6
3,696
py
Python
pytorch_translate/tasks/translation_from_pretrained_xlm.py
dzhulgakov/translate
018d3eed8d93ff32e86c912e68045c7a3f4ed0b7
[ "BSD-3-Clause" ]
748
2018-05-02T17:12:53.000Z
2022-03-26T04:44:44.000Z
pytorch_translate/tasks/translation_from_pretrained_xlm.py
dzhulgakov/translate
018d3eed8d93ff32e86c912e68045c7a3f4ed0b7
[ "BSD-3-Clause" ]
352
2018-05-02T19:05:59.000Z
2022-02-25T16:54:27.000Z
pytorch_translate/tasks/translation_from_pretrained_xlm.py
dzhulgakov/translate
018d3eed8d93ff32e86c912e68045c7a3f4ed0b7
[ "BSD-3-Clause" ]
193
2018-05-02T17:14:56.000Z
2022-02-24T21:10:56.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. from fairse...
39.319149
85
0.688582
3,042
0.823052
0
0
3,110
0.84145
0
0
1,740
0.470779
a7c26519485c15577e8b274b47dd3a678ef542d3
5,084
py
Python
drugresnet/seya/layers/memnn2.py
Naghipourfar/CCLE
cd557928a003200c683861b29c607942029bffb1
[ "MIT" ]
429
2015-08-11T09:48:34.000Z
2021-07-31T15:13:23.000Z
drugresnet/seya/layers/memnn2.py
Naghipourfar/CCLE
cd557928a003200c683861b29c607942029bffb1
[ "MIT" ]
55
2015-09-10T11:57:58.000Z
2021-04-24T14:13:31.000Z
drugresnet/seya/layers/memnn2.py
Naghipourfar/CCLE
cd557928a003200c683861b29c607942029bffb1
[ "MIT" ]
135
2015-08-31T17:52:26.000Z
2022-02-07T05:31:12.000Z
import theano.tensor as T import keras.backend as K from keras.layers.core import LambdaMerge from keras import initializations class MemN2N(LambdaMerge): def __init__(self, layers, output_dim, input_dim, input_length, memory_length, hops=3, bow_mode="bow", mode="adjacent", emb_i...
39.71875
78
0.54288
4,953
0.974233
0
0
0
0
0
0
1,542
0.303304
a7c2682f5396348598753e892a05447ab558cc24
419
py
Python
nyan/utils/io.py
TWRogers/nyan
c224279467475c9ce81e4709dd357897e0e5c963
[ "Apache-2.0" ]
2
2019-10-11T16:41:16.000Z
2019-10-11T16:42:08.000Z
nyan/utils/io.py
TWRogers/nyan
c224279467475c9ce81e4709dd357897e0e5c963
[ "Apache-2.0" ]
null
null
null
nyan/utils/io.py
TWRogers/nyan
c224279467475c9ce81e4709dd357897e0e5c963
[ "Apache-2.0" ]
null
null
null
import cv2 from PIL import Image import os import numpy as np IMAGE_BE = os.environ.get('NYAN_IMAGE_BE', 'PIL') if IMAGE_BE == 'PIL': def IMREAD_FN(x): return np.array(Image.open(x).convert('RGB')).astype(np.uint8) elif IMAGE_BE == 'cv2': def IMREAD_FN(x): return cv2.imread(x).astype(np.uint...
23.277778
77
0.668258
0
0
0
0
0
0
0
0
64
0.152745
a7c28ef23aa63e38de4b879a5620a01103796308
164
py
Python
src/server.py
sqweelygig/a-pi-api
7c83bf5d1a00e01a45edc7fda9b4887bf02b064a
[ "Apache-2.0" ]
null
null
null
src/server.py
sqweelygig/a-pi-api
7c83bf5d1a00e01a45edc7fda9b4887bf02b064a
[ "Apache-2.0" ]
null
null
null
src/server.py
sqweelygig/a-pi-api
7c83bf5d1a00e01a45edc7fda9b4887bf02b064a
[ "Apache-2.0" ]
null
null
null
import RPi.GPIO as GPIO import connexion if __name__ == '__main__': app = connexion.App('a-pi-api') app.add_api('v0/spec.yml') app.run(host='0.0.0.0', port=80)
20.5
33
0.682927
0
0
0
0
0
0
0
0
42
0.256098
a7c34c83fcf273716cc8990f3dfde892e307229c
661
py
Python
detect_fraud_email_enron/tools/k_best_selector.py
gotamist/other_machine_learning
70c7f5367ed5cf9b6fd4818cda16add24a2b468d
[ "MIT" ]
null
null
null
detect_fraud_email_enron/tools/k_best_selector.py
gotamist/other_machine_learning
70c7f5367ed5cf9b6fd4818cda16add24a2b468d
[ "MIT" ]
null
null
null
detect_fraud_email_enron/tools/k_best_selector.py
gotamist/other_machine_learning
70c7f5367ed5cf9b6fd4818cda16add24a2b468d
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Sep 25 18:26:45 2018 @author: gotamist """ import sys sys.path.append("../tools/") from feature_format import featureFormat, targetFeatureSplit from sklearn.feature_selection import SelectKBest def KBestSelector(data_dict, features_list, k): ...
28.73913
69
0.721634
0
0
0
0
0
0
0
0
118
0.178517
a7c3a82db91bce9cfb29cde148a1916bca6eaffc
697
py
Python
Python/179.py
jaimeliew1/Project_Euler_Solutions
963c9c6d6571cade8f87341f97a6a2cd1af202bb
[ "MIT" ]
null
null
null
Python/179.py
jaimeliew1/Project_Euler_Solutions
963c9c6d6571cade8f87341f97a6a2cd1af202bb
[ "MIT" ]
1
2018-04-16T21:01:50.000Z
2018-04-16T21:01:50.000Z
Python/179.py
jaimeliew1/Project_Euler_Solutions
963c9c6d6571cade8f87341f97a6a2cd1af202bb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Solution to Project Euler problem 179 - Consecutive positive divisors Author: Jaime Liew https://github.com/jaimeliew1/Project_Euler_Solutions """ def run(): N = int(1e7) n_factors = [1 for _ in range(N + 1)] # can start at 2 because 1 is a divisor for all numbers and wont c...
19.914286
79
0.573888
0
0
0
0
0
0
0
0
328
0.470588
a7c3c43019bf1d3df920d62ddaf471e6b921d131
7,417
py
Python
tweetx/environment.py
Druid-of-Luhn/TweetX
15a2dc0ad619f846b40880ad5fc3ab690d835e0d
[ "MIT" ]
null
null
null
tweetx/environment.py
Druid-of-Luhn/TweetX
15a2dc0ad619f846b40880ad5fc3ab690d835e0d
[ "MIT" ]
null
null
null
tweetx/environment.py
Druid-of-Luhn/TweetX
15a2dc0ad619f846b40880ad5fc3ab690d835e0d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import asyncio, entity, io, json, logging, queue, random, threading, time, websockets, whale from bot import bot from random import randrange logging.basicConfig() log = logging.getLogger('tweetx') log.setLevel(logging.DEBUG) class Event: def __init__(self): self.callbacks = [] ...
32.674009
145
0.556829
6,966
0.939194
0
0
0
0
960
0.129432
425
0.057301
a7c3c5875178bbdc7bd8d2fd3aaff1ff122b86d9
682
py
Python
retired/example_process_discharge_simulation.py
changliao1025/pyswat
cdcda1375be8c0f71459a78438b1e9f8a22a77bc
[ "MIT" ]
2
2021-12-11T01:39:00.000Z
2022-02-15T17:57:45.000Z
retired/example_process_discharge_simulation.py
changliao1025/pyswat
cdcda1375be8c0f71459a78438b1e9f8a22a77bc
[ "MIT" ]
5
2022-03-10T16:38:30.000Z
2022-03-28T17:31:20.000Z
retired/example_process_discharge_simulation.py
changliao1025/pyswat
cdcda1375be8c0f71459a78438b1e9f8a22a77bc
[ "MIT" ]
null
null
null
from swaty.simulation.swat_main import swat_main from swaty.swaty_read_model_configuration_file import swat_read_model_configuration_file from swaty.classes.pycase import swaty from swaty.postprocess.extract.swat_extract_stream_discharge import swat_extract_stream_discharge sFilename_configuration_in = '/global/homes/...
52.461538
110
0.879765
0
0
0
0
0
0
0
0
197
0.288856
a7c4df68721fac6742030901c0c135b22a7c5979
861
py
Python
ThinkPython/chap9/ex9.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
ThinkPython/chap9/ex9.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
ThinkPython/chap9/ex9.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
def is_reverse(i, j): """ Convert 2-digit numbers to strings and check if they are palindromic. If one of the numbers has less then 2 digits, fill with zeros. """ str_i = str(i) str_j = str(j) if len(str_i) < 2: str_i = str_i.zfill(2) if len(str_j) < 2: str_j = str_j.zfil...
26.90625
123
0.551684
0
0
0
0
0
0
0
0
263
0.305459
a7c5b09df90f26ab3c6cd5143e35bfba31e9f2b0
10,237
py
Python
Segnet/训练.py
1044197988/-
5c3ee7c9431ae85c68f418901378326b91c6f00d
[ "Apache-2.0" ]
186
2019-03-20T08:54:08.000Z
2022-03-30T04:34:37.000Z
Segnet/训练.py
sunkaiyue0/Semantic-segmentation-of-remote-sensing-images
5c3ee7c9431ae85c68f418901378326b91c6f00d
[ "Apache-2.0" ]
6
2019-08-29T08:18:13.000Z
2021-10-09T10:29:58.000Z
Segnet/训练.py
sunkaiyue0/Semantic-segmentation-of-remote-sensing-images
5c3ee7c9431ae85c68f418901378326b91c6f00d
[ "Apache-2.0" ]
60
2019-10-23T03:50:36.000Z
2022-03-25T03:16:25.000Z
#coding=utf-8 import matplotlib matplotlib.use("Agg") import tensorflow as tf import argparse import numpy as np from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Conv2D,MaxPooling2D,UpSampling2D,BatchNormalization,Reshape,Permute,Activation from tensorflow.keras.utils imp...
40.623016
143
0.602911
0
0
2,195
0.210794
0
0
0
0
1,469
0.141074
a7ca81e026978ae19cb5d85995f5f61a2647b878
1,465
py
Python
Python/295. FindMedianFromDataStream.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
263
2020-10-05T18:47:29.000Z
2022-03-31T19:44:46.000Z
Python/295. FindMedianFromDataStream.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
1,264
2020-10-05T18:13:05.000Z
2022-03-31T23:16:35.000Z
Python/295. FindMedianFromDataStream.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
760
2020-10-05T18:22:51.000Z
2022-03-29T06:06:20.000Z
""" Problem: -------- Design a data structure that supports the following two operations: - `void addNum(int num)`: Add a integer number from the data stream to the data structure. - `double findMedian()`: Return the median of all elements so far. """ class MedianFinder: def __init__(self): """ ...
29.897959
90
0.595222
1,068
0.72901
0
0
0
0
0
0
832
0.567918
a7cab894219f6b6cb8d8b7237bfbc980ae9c6023
1,089
py
Python
openproblems/data/human_blood_nestorowa2016.py
bendemeo/SingleCellOpenProblems
e4c009f8c232bdae4c9e20b8e435d0fe474b3daf
[ "MIT" ]
134
2020-08-19T07:35:56.000Z
2021-05-19T11:37:50.000Z
openproblems/data/human_blood_nestorowa2016.py
bendemeo/SingleCellOpenProblems
e4c009f8c232bdae4c9e20b8e435d0fe474b3daf
[ "MIT" ]
175
2020-08-17T15:26:06.000Z
2021-05-14T11:03:46.000Z
openproblems/data/human_blood_nestorowa2016.py
LuckyMD/SingleCellOpenProblems
0ae39db494557e1dd9f28e59dda765527191eee1
[ "MIT" ]
46
2020-10-08T21:11:37.000Z
2021-04-25T07:05:28.000Z
from . import utils import os import scanpy as sc import scprep import tempfile URL = "https://ndownloader.figshare.com/files/25555751" @utils.loader def load_human_blood_nestorowa2016(test=False): """Download Nesterova data from Figshare.""" if test: # load full data first, cached if available ...
27.225
78
0.663912
0
0
0
0
948
0.870523
0
0
348
0.319559
a7cb29cc32a2319fccf961ffb48796199a5ff0d3
1,110
py
Python
jskparser/ast/stmt/ifstmt.py
natebragg/java-sketch
f5ac26f2cc46ae4556f9a61c55afd37f55c961ff
[ "MIT" ]
15
2015-12-15T18:33:50.000Z
2021-09-29T11:48:54.000Z
jskparser/ast/stmt/ifstmt.py
natebragg/java-sketch
f5ac26f2cc46ae4556f9a61c55afd37f55c961ff
[ "MIT" ]
11
2015-11-16T22:14:58.000Z
2021-09-23T05:28:40.000Z
jskparser/ast/stmt/ifstmt.py
natebragg/java-sketch
f5ac26f2cc46ae4556f9a61c55afd37f55c961ff
[ "MIT" ]
8
2015-11-16T21:50:08.000Z
2021-03-23T15:15:34.000Z
#!/usr/bin/env python from .statement import Statement from . import _import class IfStmt(Statement): def __init__(self, kwargs={}): super(IfStmt, self).__init__(kwargs) locs = _import() # Expression condition; con = kwargs.get(u'condition', {}) self._condition = locs...
27.75
74
0.621622
1,029
0.927027
0
0
356
0.320721
0
0
135
0.121622
a7cb442e6c3a091d70b52f85f03d36c21282e2fd
8,501
py
Python
stdpages/profiling.py
nhartland/dashengine
7e9f68f0fb1c447fa438eb18b2430cd9095ab17a
[ "MIT" ]
12
2020-02-06T02:55:32.000Z
2021-11-08T13:50:42.000Z
stdpages/profiling.py
nhartland/dashengine
7e9f68f0fb1c447fa438eb18b2430cd9095ab17a
[ "MIT" ]
1
2020-01-31T10:20:51.000Z
2020-01-31T10:20:51.000Z
stdpages/profiling.py
nhartland/dashengine
7e9f68f0fb1c447fa438eb18b2430cd9095ab17a
[ "MIT" ]
2
2020-06-19T01:35:11.000Z
2021-06-07T09:01:18.000Z
""" Page for the monitoring of query performance characteristics. """ import json # Plotly import plotly.graph_objs as go # Dash import dash_table as dt import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output # DashEngine from dashengine.dashapp import dasha...
33.337255
95
0.606399
0
0
0
0
3,631
0.427126
0
0
3,432
0.403717
a7cd3abce5d928c3da35821e7b78b76d44e1ec29
2,465
py
Python
trial_inputs_pb2.py
adeandrade/bayesian-optimizer
30427943d69130179f7ccb32f63a08a1c57462f8
[ "Apache-2.0" ]
null
null
null
trial_inputs_pb2.py
adeandrade/bayesian-optimizer
30427943d69130179f7ccb32f63a08a1c57462f8
[ "Apache-2.0" ]
null
null
null
trial_inputs_pb2.py
adeandrade/bayesian-optimizer
30427943d69130179f7ccb32f63a08a1c57462f8
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: trial_inputs.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _...
32.012987
196
0.76146
0
0
0
0
0
0
0
0
725
0.294118
a7cdd2df8475207fb1659d9d8f61d9efb7105a47
22,348
py
Python
neutron_plugin_contrail/plugins/opencontrail/vnc_client/router_res_handler.py
alexelshamouty/tf-neutron-plugin
3effc5e80f3fa0d8d0252d5f994a36386b987f7f
[ "Apache-2.0" ]
3
2021-09-07T05:02:24.000Z
2022-02-11T04:25:43.000Z
neutron_plugin_contrail/plugins/opencontrail/vnc_client/router_res_handler.py
alexelshamouty/tf-neutron-plugin
3effc5e80f3fa0d8d0252d5f994a36386b987f7f
[ "Apache-2.0" ]
1
2021-09-27T08:05:08.000Z
2021-09-27T08:05:08.000Z
neutron_plugin_contrail/plugins/opencontrail/vnc_client/router_res_handler.py
alexelshamouty/tf-neutron-plugin
3effc5e80f3fa0d8d0252d5f994a36386b987f7f
[ "Apache-2.0" ]
5
2020-07-14T07:52:05.000Z
2022-03-24T15:08:02.000Z
# Copyright 2015. 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...
43.05973
113
0.593297
21,253
0.951002
0
0
169
0.007562
0
0
2,692
0.120458
a7ce8d54807f93e96a382235bdf7d3f14bebe67b
467
py
Python
src/screenlogger.py
swbooking/RobotMaria
2553358629a870b10458564524315ff4cfda0bd1
[ "MIT" ]
null
null
null
src/screenlogger.py
swbooking/RobotMaria
2553358629a870b10458564524315ff4cfda0bd1
[ "MIT" ]
null
null
null
src/screenlogger.py
swbooking/RobotMaria
2553358629a870b10458564524315ff4cfda0bd1
[ "MIT" ]
null
null
null
class ScreenLogger: def __init__(self, loghandler=None, verbose = True): self.LogMessage = None self.LogHandler = loghandler self.Verbose = verbose return def Log(self, message): if self.LogMessage != message: self.LogMessage = message if self.LogH...
31.133333
56
0.578158
466
0.997859
0
0
0
0
0
0
0
0
a7d11260063260bb345e5b5925deed0ee559e5c2
725
py
Python
ffmpeg-3.2.5/tools/zmqshell.py
huyu0415/FFmpeg
7a3f75791cb3255805bf17126d4074a328f46c8c
[ "Apache-2.0" ]
3,645
2016-08-25T09:31:17.000Z
2022-03-25T06:28:34.000Z
ffmpeg-3.2.5/tools/zmqshell.py
huyu0415/FFmpeg
7a3f75791cb3255805bf17126d4074a328f46c8c
[ "Apache-2.0" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
ffmpeg-3.2.5/tools/zmqshell.py
huyu0415/FFmpeg
7a3f75791cb3255805bf17126d4074a328f46c8c
[ "Apache-2.0" ]
764
2016-08-26T09:19:00.000Z
2022-03-22T12:07:16.000Z
#!/usr/bin/env python2 import sys, zmq, cmd class LavfiCmd(cmd.Cmd): prompt = 'lavfi> ' def __init__(self, bind_address): context = zmq.Context() self.requester = context.socket(zmq.REQ) self.requester.connect(bind_address) cmd.Cmd.__init__(self) def onecmd(self, cmd): ...
26.851852
79
0.627586
482
0.664828
0
0
0
0
0
0
139
0.191724
a7d18ac67c2f08b3162719b80096d5cd8f93412f
984
py
Python
minidoc/minidoc.py
ihgazni2/minidoc
b2859069bad5e718692b57d5498389473c66bd2e
[ "MIT" ]
null
null
null
minidoc/minidoc.py
ihgazni2/minidoc
b2859069bad5e718692b57d5498389473c66bd2e
[ "MIT" ]
null
null
null
minidoc/minidoc.py
ihgazni2/minidoc
b2859069bad5e718692b57d5498389473c66bd2e
[ "MIT" ]
null
null
null
from minidoc import svg from minidoc import tst from efdir import fs import shutil import os def creat_one_svg(k,v,i=None,**kwargs): if("dst_dir" in kwargs): dst_dir = kwargs['dst_dir'] else: dst_dir = "./images" screen_size = svg.get_screen_size(v,**kwargs) kwargs['screen_size'] = scre...
20.081633
55
0.602642
0
0
0
0
0
0
0
0
163
0.16565
a7d2785f99402cef40bc5312be1781d2a6eaf683
3,843
py
Python
qinhaifang/src/evalTools/script/convert_label_map_to_geojson.py
SpaceNetChallenge/BuildingFootprintDetectors
3def3c44b5847c744cd2f3356182892d92496579
[ "Apache-2.0" ]
161
2017-02-03T05:33:01.000Z
2022-03-31T02:11:21.000Z
qinhaifang/src/evalTools/script/convert_label_map_to_geojson.py
SpaceNetChallenge/BuildingFootprintDetectors
3def3c44b5847c744cd2f3356182892d92496579
[ "Apache-2.0" ]
5
2017-02-03T05:51:38.000Z
2019-06-18T18:54:00.000Z
qinhaifang/src/evalTools/script/convert_label_map_to_geojson.py
SpaceNetChallenge/BuildingFootprintDetectors
3def3c44b5847c744cd2f3356182892d92496579
[ "Apache-2.0" ]
76
2017-03-23T23:15:46.000Z
2022-02-10T21:58:18.000Z
#!/usr/bin/env python # encoding=gbk """ Convert mask to geojson format """ import os import os.path import re import logging import logging.config from multiprocessing import Pool import skimage.io as sk import numpy as np import scipy.io as sio import setting from spaceNet import geoTools as gT import spaceNet.ima...
40.03125
118
0.674993
0
0
0
0
0
0
0
0
568
0.147801
a7d285c6e1ae9ac1ca025fdba430e5dba345f5fd
412
py
Python
core/migrations/0008_touristspot_photo.py
isnardsilva/django-attractions-api
feade087d840b72b603d2a4bf538b8c362aa91bd
[ "MIT" ]
1
2021-12-31T12:59:49.000Z
2021-12-31T12:59:49.000Z
core/migrations/0008_touristspot_photo.py
isnardsilva/django-attractions-api
feade087d840b72b603d2a4bf538b8c362aa91bd
[ "MIT" ]
null
null
null
core/migrations/0008_touristspot_photo.py
isnardsilva/django-attractions-api
feade087d840b72b603d2a4bf538b8c362aa91bd
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-19 03:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0007_auto_20200614_0254'), ] operations = [ migrations.AddField( model_name='touristspot', name='photo', ...
21.684211
77
0.604369
319
0.774272
0
0
0
0
0
0
104
0.252427
a7d331c87b462d04d58d991edd7603c1f1659a3c
712
py
Python
tests/integration/test_user_invite.py
donovan-PNW/dwellinglybackend
448df61f6ea81f00dde7dab751f8b2106f0eb7b1
[ "MIT" ]
15
2020-07-09T20:51:09.000Z
2021-11-28T21:59:02.000Z
tests/integration/test_user_invite.py
donovan-PNW/dwellinglybackend
448df61f6ea81f00dde7dab751f8b2106f0eb7b1
[ "MIT" ]
148
2020-03-28T22:10:30.000Z
2021-12-19T09:22:59.000Z
tests/integration/test_user_invite.py
donovan-PNW/dwellinglybackend
448df61f6ea81f00dde7dab751f8b2106f0eb7b1
[ "MIT" ]
30
2020-03-12T02:31:27.000Z
2021-07-29T02:40:36.000Z
import pytest from models.user import RoleEnum from unittest.mock import patch from resources.email import Email @pytest.mark.usefixtures("client_class", "empty_test_db") class TestUserInvite: def setup(self): self.endpoint = "/api/user/invite" @patch.object(Email, "send_user_invite_msg") def tes...
30.956522
84
0.695225
538
0.755618
0
0
596
0.837079
0
0
92
0.129213
a7d350ee5dfc4cbea31fc30d8d13f43745b214cc
778
py
Python
setup.py
Louis-Navarro/decorators
6339a32aae66608cbf7fd8a1221b47ae88992d53
[ "MIT" ]
null
null
null
setup.py
Louis-Navarro/decorators
6339a32aae66608cbf7fd8a1221b47ae88992d53
[ "MIT" ]
null
null
null
setup.py
Louis-Navarro/decorators
6339a32aae66608cbf7fd8a1221b47ae88992d53
[ "MIT" ]
null
null
null
import setuptools from decorators.__init__ import __version__ as v with open('README.md') as fp: long_description = fp.read() setuptools.setup( name='decorators-LOUIS-NAVARRO', version=v, author='Louis Navarro', description='Function decorators I made', long_description=long_description, l...
29.923077
54
0.669666
0
0
0
0
0
0
0
0
347
0.446015
a7d4fbe6bb2f93758e5bbd91a20e5e655a876720
7,386
py
Python
test_undirect_graf.py
rodrigondec/Grafos
dd3bb7ffd56909395cc211c6d68f9e3eaa5fa9ba
[ "Unlicense" ]
null
null
null
test_undirect_graf.py
rodrigondec/Grafos
dd3bb7ffd56909395cc211c6d68f9e3eaa5fa9ba
[ "Unlicense" ]
null
null
null
test_undirect_graf.py
rodrigondec/Grafos
dd3bb7ffd56909395cc211c6d68f9e3eaa5fa9ba
[ "Unlicense" ]
null
null
null
from grafo import Grafo, DiGrafo from no import No from aresta import Aresta import unittest class TestStringMethods(unittest.TestCase): def setUp(self): self.grafo = Grafo() def test_atingivel(self): self.grafo.insertNo(No(1)) self.grafo.insertNo(No(2)) self.grafo.insertNo(No(3)) self.grafo.insertNo(No(4...
29.544
58
0.716084
7,247
0.981181
0
0
0
0
0
0
10
0.001354
a7d69ea8dc41116a3648dee50adba54f390698c0
2,476
py
Python
fancy/config/option.py
susautw/fancy-config
25a3bd51a40df071d00327640caa05b6288bd970
[ "MIT" ]
1
2022-03-17T04:47:52.000Z
2022-03-17T04:47:52.000Z
fancy/config/option.py
susautw/fancy-config
25a3bd51a40df071d00327640caa05b6288bd970
[ "MIT" ]
9
2021-12-01T08:01:52.000Z
2022-03-16T13:05:07.000Z
fancy/config/option.py
susautw/fancy-config
25a3bd51a40df071d00327640caa05b6288bd970
[ "MIT" ]
1
2022-03-07T09:29:06.000Z
2022-03-07T09:29:06.000Z
import warnings from typing import Any, Callable, TYPE_CHECKING from . import ConfigStructure from .process import auto_process_typ from ..config import identical if TYPE_CHECKING: from ..config import BaseConfig class Option: _type: Callable[[Any], Any] _required: bool _nullable: bool _default:...
26.913043
96
0.631664
2,254
0.910339
0
0
216
0.087237
0
0
162
0.065428
a7d7e86babb70ea3a37edccf05c803e8419f09d7
7,128
py
Python
data_loader_manual.py
Chen-Yifan/DEM_building_segmentation
1e9a41e87ec0ab1777a65146c5b31d88938480b7
[ "MIT" ]
null
null
null
data_loader_manual.py
Chen-Yifan/DEM_building_segmentation
1e9a41e87ec0ab1777a65146c5b31d88938480b7
[ "MIT" ]
null
null
null
data_loader_manual.py
Chen-Yifan/DEM_building_segmentation
1e9a41e87ec0ab1777a65146c5b31d88938480b7
[ "MIT" ]
null
null
null
from PIL import Image import numpy as np import os import re import scipy.misc import random import sys import csv def is_feature_present(input_array): return (np.sum(input_array!=0)>10) # select the image with more than 50 pixel label def load_feature_data(dataroot, frame_dir, mask_dir, feature_type...
40.271186
157
0.571409
0
0
0
0
0
0
0
0
1,801
0.252666
a7d7fa784412398969563696b9937bee43c267bd
5,010
py
Python
autotest/osr/osr_micoordsys.py
robe2/gdal
78573efe69f1506c112209501068c0b043438295
[ "MIT" ]
null
null
null
autotest/osr/osr_micoordsys.py
robe2/gdal
78573efe69f1506c112209501068c0b043438295
[ "MIT" ]
null
null
null
autotest/osr/osr_micoordsys.py
robe2/gdal
78573efe69f1506c112209501068c0b043438295
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test some MITAB specific translation issues. # Author: Even Rouault, <even dot rouault at mines dash paris dot org> # #############################################...
36.838235
138
0.644311
0
0
0
0
0
0
0
0
3,245
0.647705
a7d8ff63a50736d94af9bb52ce5984969f4467d7
2,194
py
Python
maintain.py
keioni/ink_01
5c87dcf16924dfa7bf9d0e3a7250ec1542045e72
[ "MIT" ]
null
null
null
maintain.py
keioni/ink_01
5c87dcf16924dfa7bf9d0e3a7250ec1542045e72
[ "MIT" ]
null
null
null
maintain.py
keioni/ink_01
5c87dcf16924dfa7bf9d0e3a7250ec1542045e72
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import json from ink.maintainer import make_pickle, DatabaseMaintainer from ink.sys.config import CONF from ink.sys.database.connector.mysql import MySQLConnector from ink.sys.database.connector.null import NullConnector def _get_db_connector(dry_run: bool = ...
23.094737
70
0.635369
0
0
0
0
0
0
0
0
235
0.10711
a7da1b3b72d6032aefdb12dd63739b250c1938d8
5,261
py
Python
serpentmonkee/UtilsMonkee.py
anthromorphic-ai/serpentmonkee
505bbe03fd8a77bc7737e46b8e27e0d91b87835b
[ "MIT" ]
null
null
null
serpentmonkee/UtilsMonkee.py
anthromorphic-ai/serpentmonkee
505bbe03fd8a77bc7737e46b8e27e0d91b87835b
[ "MIT" ]
null
null
null
serpentmonkee/UtilsMonkee.py
anthromorphic-ai/serpentmonkee
505bbe03fd8a77bc7737e46b8e27e0d91b87835b
[ "MIT" ]
null
null
null
import requests from dateutil import parser import json from datetime import datetime, timezone import time import sys import random import uuid import copy # -------------------------------------------------------------------- class RoundTripEncoder(json.JSONEncoder): DATE_FORMAT = "%Y-%m-%d" TIME_FORMAT ...
27.984043
104
0.553317
2,761
0.524805
0
0
0
0
0
0
1,053
0.200152
a7dac603aaf8f14d5ec261bf9ee335b205d9767b
201
py
Python
backend/app/bucket.py
thanet-s/subme-selected-topics-project
fac1630839c580bbd66b93f2dc9004c8637a7b15
[ "MIT" ]
null
null
null
backend/app/bucket.py
thanet-s/subme-selected-topics-project
fac1630839c580bbd66b93f2dc9004c8637a7b15
[ "MIT" ]
null
null
null
backend/app/bucket.py
thanet-s/subme-selected-topics-project
fac1630839c580bbd66b93f2dc9004c8637a7b15
[ "MIT" ]
null
null
null
from minio import Minio import os minio_client = Minio( os.environ['MINIO_HOST'], access_key=os.environ['MINIO_ROOT_USER'], secret_key=os.environ['MINIO_ROOT_PASSWORD'], secure=False )
22.333333
49
0.731343
0
0
0
0
0
0
0
0
50
0.248756
a7db0d9490bcb10d7f38e66a3fcc8a697cd073d0
2,642
py
Python
publications/PrADA/experiments/income_census/train_config.py
UMDataScienceLab/research
279ee21444817903cb9ef9dc9d9583a502865336
[ "Apache-2.0" ]
49
2020-11-04T03:15:59.000Z
2022-03-23T12:21:15.000Z
publications/PrADA/experiments/income_census/train_config.py
UMDataScienceLab/research
279ee21444817903cb9ef9dc9d9583a502865336
[ "Apache-2.0" ]
2
2021-09-12T02:36:42.000Z
2021-11-25T13:19:58.000Z
publications/PrADA/experiments/income_census/train_config.py
UMDataScienceLab/research
279ee21444817903cb9ef9dc9d9583a502865336
[ "Apache-2.0" ]
11
2020-11-11T12:14:49.000Z
2022-03-08T16:17:05.000Z
from data_process.census_process.census_data_creation_config import census_data_creation fg_feature_extractor_architecture_list = [[28, 56, 28, 14], [25, 50, 25, 12], [56, 86, 56, 18], [27, 54,...
38.289855
92
0.608251
0
0
0
0
0
0
0
0
1,202
0.454958
a7dbae6b6e0c89662cba5d9864585c9b7e89ef3a
444
py
Python
tools/create_transmit_grouped_command_cron.py
Vayel/GUCEM-BVC
e5645dec332756d3c9db083abf2c8f3625a10d4d
[ "WTFPL" ]
2
2016-09-23T18:02:40.000Z
2017-04-28T18:35:59.000Z
tools/create_transmit_grouped_command_cron.py
Vayel/GUCEM-BVC
e5645dec332756d3c9db083abf2c8f3625a10d4d
[ "WTFPL" ]
82
2016-09-26T14:38:31.000Z
2018-02-12T18:47:12.000Z
tools/create_transmit_grouped_command_cron.py
Vayel/GUCEM-BVC
e5645dec332756d3c9db083abf2c8f3625a10d4d
[ "WTFPL" ]
null
null
null
import os from cron_helper import create JOB_COMMENT = 'BVC transmit grouped command reminder' HERE = os.path.dirname(os.path.abspath(__file__)) def create_job(cron): job = cron.new( command=os.path.join(HERE, 'manage.sh transmit_grouped_command_reminder'), comment=JOB_COMMENT, ) job.day...
21.142857
82
0.684685
0
0
0
0
0
0
0
0
94
0.211712
a7ddce06c356fe1ffbf7a25faa291f2561e6dd85
2,157
py
Python
network/plot_along_subunits.py
AspirinCode/MD-analysis-tools-scripts
dfc0d282c9a844f5b8b1935a3ae74b1aff577ff9
[ "MIT" ]
5
2020-01-29T01:01:54.000Z
2022-02-11T09:19:20.000Z
network/plot_along_subunits.py
AspirinCode/MD-analysis-tools-scripts
dfc0d282c9a844f5b8b1935a3ae74b1aff577ff9
[ "MIT" ]
null
null
null
network/plot_along_subunits.py
AspirinCode/MD-analysis-tools-scripts
dfc0d282c9a844f5b8b1935a3ae74b1aff577ff9
[ "MIT" ]
null
null
null
import pickle import numpy as np import matplotlib.pyplot as plt i = 1 fig = plt.figure(figsize=(30,30)) for pickle_file in pickle_list: c_B = pickle.load(open(pickle_file, "rb")) #plot_c_B(c_B, f"bet_centrality_with_{pickle_file[19:-4]}.png") ax = fig.add_subplot(5,1,i) #label = figname[-6:-4].upper...
31.26087
88
0.51414
0
0
0
0
0
0
0
0
587
0.272137
38eb4d628bf96b1cec0ba5a9060d8732e87f164b
276
py
Python
runme.py
AndreWohnsland/Cocktailmaker_AW
30efdcb85d7fb58ac2980c873c611d7b9c2b37b1
[ "MIT" ]
37
2019-07-06T11:54:08.000Z
2022-01-21T12:26:16.000Z
runme.py
AndreWohnsland/Cocktailmaker_AW
30efdcb85d7fb58ac2980c873c611d7b9c2b37b1
[ "MIT" ]
5
2019-12-09T07:44:08.000Z
2022-02-01T12:00:24.000Z
runme.py
AndreWohnsland/Cocktailmaker_AW
30efdcb85d7fb58ac2980c873c611d7b9c2b37b1
[ "MIT" ]
4
2019-07-06T12:45:01.000Z
2021-12-29T17:09:44.000Z
import sys from PyQt5.QtWidgets import QApplication import src_ui.setup_mainwindow as setupui if __name__ == "__main__": app = QApplication(sys.argv) w = setupui.MainScreen() w.showFullScreen() w.setFixedSize(800, 480) sys.exit(app.exec_())
21.230769
42
0.684783
0
0
0
0
0
0
0
0
10
0.036232
38ec2565ef6e55d70bfb76a776cd7b6192708820
8,271
py
Python
src/ellalgo/ell_stable.py
luk036/ellalgo
8e83587b271f35c906c0d0aa4175dac153e5e29b
[ "MIT" ]
null
null
null
src/ellalgo/ell_stable.py
luk036/ellalgo
8e83587b271f35c906c0d0aa4175dac153e5e29b
[ "MIT" ]
null
null
null
src/ellalgo/ell_stable.py
luk036/ellalgo
8e83587b271f35c906c0d0aa4175dac153e5e29b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import math from typing import Tuple, Union import numpy as np from .cutting_plane import CUTStatus Arr = Union[np.ndarray] class ell_stable: """Ellipsoid Search Space ell_stable = {x | (x − xc)' Q^−1 (x − xc) ​≤ κ} Returns: [type] -- [description] """ ...
28.42268
82
0.489784
8,172
0.981504
0
0
310
0.037233
0
0
2,908
0.349267
38ec28f788cf955ae54138334251cf48eba69a0b
855
py
Python
app/auth/forms.py
PhysicsUofRAUI/lifeLongLearning
36e098d4319d3500509861454fa3e27a67416802
[ "MIT" ]
null
null
null
app/auth/forms.py
PhysicsUofRAUI/lifeLongLearning
36e098d4319d3500509861454fa3e27a67416802
[ "MIT" ]
38
2020-06-09T00:07:09.000Z
2021-02-06T17:18:20.000Z
app/auth/forms.py
PhysicsUofRAUI/lifeLongLearning
36e098d4319d3500509861454fa3e27a67416802
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import PasswordField, StringField, SubmitField from wtforms.validators import DataRequired # # Purpose: This from will be used to collect the information for the user logging # and logging out. # # Fields: # Password: The password to validate the user # Username...
32.884615
85
0.71462
243
0.284211
0
0
0
0
0
0
526
0.615205
38ec8de985f6a5e8fed887f162aa2455ff186416
1,365
py
Python
netmiko/f5/f5_tmsh_ssh.py
josephwhite13/netmiko
c08c5ebb3484383f034e22b9576f88be07525f72
[ "MIT" ]
1
2021-04-13T19:18:57.000Z
2021-04-13T19:18:57.000Z
netmiko/f5/f5_tmsh_ssh.py
josephwhite13/netmiko
c08c5ebb3484383f034e22b9576f88be07525f72
[ "MIT" ]
null
null
null
netmiko/f5/f5_tmsh_ssh.py
josephwhite13/netmiko
c08c5ebb3484383f034e22b9576f88be07525f72
[ "MIT" ]
null
null
null
import time from netmiko.base_connection import BaseConnection class F5TmshSSH(BaseConnection): def session_preparation(self): """Prepare the session after the connection has been established.""" self._test_channel_read() self.set_base_prompt() self.tmsh_mode() self.set_bas...
33.292683
78
0.641026
1,299
0.951648
0
0
0
0
0
0
399
0.292308
38eda790aa9bd3615e42c068cced417ca94aa56a
2,099
py
Python
tools/database_tool.py
noahzhy/qumaishou
f776e5c750b350ca3b741fccf3e5dfd199c1296b
[ "Apache-2.0" ]
null
null
null
tools/database_tool.py
noahzhy/qumaishou
f776e5c750b350ca3b741fccf3e5dfd199c1296b
[ "Apache-2.0" ]
null
null
null
tools/database_tool.py
noahzhy/qumaishou
f776e5c750b350ca3b741fccf3e5dfd199c1296b
[ "Apache-2.0" ]
null
null
null
import os import pandas as pd import sys import glob # 导入同级目录下其他文件夹下的文件 sys.path.append("./") db_dir_path = 'database' def db_save(db_name, df): # index 表示是否显示行名,default=True df = remove_repetition(df) if df.to_csv(os.path.join(db_dir_path, '{}.csv'.format(db_name)), index=False, sep=','): retur...
23.852273
92
0.666508
0
0
0
0
0
0
0
0
744
0.338644
38ef272433c8c121f27894e2882710bf38e90294
1,331
py
Python
flika/tests/test_settings.py
flika-org/flika
68b87e8f75f77f4b59344e418c7783b24184adaa
[ "MIT" ]
19
2016-08-11T21:17:17.000Z
2021-04-30T19:21:03.000Z
flika/tests/test_settings.py
flika-org/flika
68b87e8f75f77f4b59344e418c7783b24184adaa
[ "MIT" ]
28
2017-03-15T18:40:33.000Z
2021-06-01T20:35:50.000Z
flika/tests/test_settings.py
flika-org/flika
68b87e8f75f77f4b59344e418c7783b24184adaa
[ "MIT" ]
2
2019-03-08T18:51:12.000Z
2019-05-05T16:31:15.000Z
from .. import global_vars as g from ..window import Window import numpy as np from ..roi import makeROI class TestSettings(): def test_random_roi_color(self): initial = g.settings['roi_color'] g.settings['roi_color'] = 'random' w1 = Window(np.random.random([10, 10, 10])) roi1 = makeROI('rectangle', [[1, 1],...
34.128205
139
0.661908
1,224
0.919609
0
0
0
0
0
0
396
0.297521
38f003c85d91841bc389c08c6a91fa5429cad832
40,888
py
Python
tests/test_runner.py
varunvarma/panoptes
733e1b17e01d47fe0a399e2fe635f614cc5a0b88
[ "Apache-2.0" ]
null
null
null
tests/test_runner.py
varunvarma/panoptes
733e1b17e01d47fe0a399e2fe635f614cc5a0b88
[ "Apache-2.0" ]
null
null
null
tests/test_runner.py
varunvarma/panoptes
733e1b17e01d47fe0a399e2fe635f614cc5a0b88
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018, Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE file in project root for terms. """ import re import unittest from mock import patch, MagicMock, Mock, PropertyMock from testfixtures import LogCapture from yahoo_panoptes.framework.plugins.panoptes_base_plugin import Panopt...
60.574815
123
0.531183
39,358
0.962581
0
0
11,389
0.278541
0
0
14,233
0.348097
38f0f18dc070774e4c59dd082f508779d0e46e34
940
py
Python
root/tpd_near_trainstops_per_line.py
transitanalystisarel/TransitAnalystIsrael
341de9272b352c18333ff136a00de0b97cd82216
[ "MIT" ]
null
null
null
root/tpd_near_trainstops_per_line.py
transitanalystisarel/TransitAnalystIsrael
341de9272b352c18333ff136a00de0b97cd82216
[ "MIT" ]
null
null
null
root/tpd_near_trainstops_per_line.py
transitanalystisarel/TransitAnalystIsrael
341de9272b352c18333ff136a00de0b97cd82216
[ "MIT" ]
3
2019-05-08T04:36:03.000Z
2020-11-23T19:46:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # collect a set of trip_id s at all stops in a GTFS file over the selected week of the service period starting at serviceweekstartdate # filter stops near trainstations based on input txt file - stopsneartrainstop_post_edit # merge sets of trips at stops near each trainst...
40.869565
134
0.811702
0
0
0
0
0
0
0
0
404
0.429787
38f18e910ceb0b6a8c30ade6eeea28431583e6f1
5,252
py
Python
merlin/modules/normalization.py
ethereon/merlin
0babfed51e65197086d74479a1ca9150259b4f7f
[ "BSD-3-Clause" ]
1
2019-08-15T16:22:20.000Z
2019-08-15T16:22:20.000Z
merlin/modules/normalization.py
ethereon/merlin
0babfed51e65197086d74479a1ca9150259b4f7f
[ "BSD-3-Clause" ]
null
null
null
merlin/modules/normalization.py
ethereon/merlin
0babfed51e65197086d74479a1ca9150259b4f7f
[ "BSD-3-Clause" ]
null
null
null
from typing import Callable, Optional, Union import tensorflow as tf from merlin.initializers import Init from merlin.modules.keras import KerasAdapter from merlin.shape import Axis from merlin.spec import DynamicSpec, Spec class BatchNormalization(KerasAdapter, tf.keras.layers.BatchNormalization): class Confi...
41.354331
83
0.653465
5,020
0.955826
0
0
361
0.068736
0
0
3,032
0.577304
38f2cb2b1272511384ed4a1d9e959be7afec0fff
3,095
py
Python
Plots/Bar/NCL_bar_2.py
learn2free/GeoCAT-examples
3ac152a767e78a362a8ebb6f677005f3de320ca6
[ "Apache-2.0" ]
1
2021-05-09T02:54:10.000Z
2021-05-09T02:54:10.000Z
Plots/Bar/NCL_bar_2.py
learn2free/GeoCAT-examples
3ac152a767e78a362a8ebb6f677005f3de320ca6
[ "Apache-2.0" ]
null
null
null
Plots/Bar/NCL_bar_2.py
learn2free/GeoCAT-examples
3ac152a767e78a362a8ebb6f677005f3de320ca6
[ "Apache-2.0" ]
null
null
null
""" NCL_bar_2.py =============== This script illustrates the following concepts: - Drawing bars instead of curves in an XY plot - Changing the aspect ratio of a bar plot - Drawing filled bars up or down based on a Y reference value - Setting the minimum/maximum value of the Y axis in a bar plot - Using n...
37.289157
84
0.577383
0
0
0
0
0
0
0
0
1,652
0.533764
38f35744d4413bb5e881ac526e9d7f661c57bec0
5,248
py
Python
gabbi/tests/test_driver.py
scottwallacesh/gabbi
5e76332ac06cd075c11477b384ad5da1d2eaa9d5
[ "Apache-2.0" ]
145
2015-01-16T23:19:35.000Z
2022-03-15T00:21:54.000Z
gabbi/tests/test_driver.py
scottwallacesh/gabbi
5e76332ac06cd075c11477b384ad5da1d2eaa9d5
[ "Apache-2.0" ]
250
2015-01-02T11:20:06.000Z
2022-03-22T19:55:18.000Z
gabbi/tests/test_driver.py
scottwallacesh/gabbi
5e76332ac06cd075c11477b384ad5da1d2eaa9d5
[ "Apache-2.0" ]
49
2015-01-14T16:14:52.000Z
2022-03-21T11:37:26.000Z
# # 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, software # distributed under...
44.10084
75
0.598895
4,560
0.868902
0
0
0
0
0
0
1,254
0.238948
38f399316a049f820f54f6ac2696a2ab3406ec0f
4,779
py
Python
mindspore/ops/operations/_inner_ops.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
null
null
null
mindspore/ops/operations/_inner_ops.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
null
null
null
mindspore/ops/operations/_inner_ops.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
48.272727
120
0.623352
3,932
0.822766
0
0
1,255
0.262607
0
0
2,643
0.553045
38f39bc63224a405d7dddb6afc4bd67e4b1fcae8
434
py
Python
migrations/versions/7f447c94347a_.py
tipabu/jazzband-website
30102e87348924eb56b610e74609a3475d3a14de
[ "MIT" ]
null
null
null
migrations/versions/7f447c94347a_.py
tipabu/jazzband-website
30102e87348924eb56b610e74609a3475d3a14de
[ "MIT" ]
null
null
null
migrations/versions/7f447c94347a_.py
tipabu/jazzband-website
30102e87348924eb56b610e74609a3475d3a14de
[ "MIT" ]
null
null
null
""" Revision ID: 7f447c94347a Revises: a78f4b5d7dee Create Date: 2017-11-17 14:59:36.177805 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "7f447c94347a" down_revision = "a78f4b5d7dee" def upgrade(): op.add_column( "projects", sa.Column("uploads_c...
18.083333
80
0.714286
0
0
0
0
0
0
0
0
214
0.493088
38f4002d6f513a5cbe6493011e435271c5396522
5,308
py
Python
abcvoting/preferences.py
pbatko/abcvoting
55a8e7e23e35a3620921e3f5426a09925e83640e
[ "MIT" ]
null
null
null
abcvoting/preferences.py
pbatko/abcvoting
55a8e7e23e35a3620921e3f5426a09925e83640e
[ "MIT" ]
null
null
null
abcvoting/preferences.py
pbatko/abcvoting
55a8e7e23e35a3620921e3f5426a09925e83640e
[ "MIT" ]
null
null
null
""" Dichotomous (approval) preferences and preference profiles Voters are indexed by 0, ..., len(profile) Candidates are indexed by 0, ..., profile.num_cand """ from abcvoting.misc import str_candset from collections import OrderedDict class Profile(object): """ Preference profiles """ def __init__(...
35.152318
75
0.527882
5,064
0.954032
0
0
0
0
0
0
888
0.167295
38f53f3c9f560f0765e57f3e8c5f7abb2dffb240
1,035
py
Python
java/create_solution.py
hermantai/kata
1b1d7af2f46bca994bede3f8a937dff96015e415
[ "Apache-2.0" ]
null
null
null
java/create_solution.py
hermantai/kata
1b1d7af2f46bca994bede3f8a937dff96015e415
[ "Apache-2.0" ]
null
null
null
java/create_solution.py
hermantai/kata
1b1d7af2f46bca994bede3f8a937dff96015e415
[ "Apache-2.0" ]
null
null
null
import os import sys templ = """package kata; import static kata.Printer.*; import java.util.*; /** * Cracking the coding interview 6th ed. p.XX(TODO) */ public class %(classname)s { static int %(methodname)s(String str) { return 0; } public static void main(String args[]) { runSample("abcabcdd"); ...
19.903846
76
0.575845
0
0
0
0
0
0
0
0
541
0.522705
38f5e5531d57aca7c42b9394241ccc224319e068
310
py
Python
tests/unit/helpers_test/test_password.py
alefeans/flask-base
e3daa4ce1020ba3711908c3ba5ef88b0cc599dfe
[ "MIT" ]
11
2019-10-03T18:47:49.000Z
2022-02-01T10:42:02.000Z
tests/unit/helpers_test/test_password.py
alefeans/flask-base
e3daa4ce1020ba3711908c3ba5ef88b0cc599dfe
[ "MIT" ]
null
null
null
tests/unit/helpers_test/test_password.py
alefeans/flask-base
e3daa4ce1020ba3711908c3ba5ef88b0cc599dfe
[ "MIT" ]
8
2019-10-03T18:47:53.000Z
2021-06-07T14:47:51.000Z
import pytest from app.helpers import check_password, encrypt_password @pytest.mark.parametrize('sent', [ ('test'), ('changeme'), ('1234123'), ]) def test_if_check_password_and_encrypt_password_works_properly(sent): expected = encrypt_password(sent) assert check_password(sent, expected)
23.846154
69
0.745161
0
0
0
0
236
0.76129
0
0
31
0.1
38f71f66b4d3452d83d78d02e5968d474fc84f07
1,717
py
Python
tests/output/test_pdf_to_png.py
ynikitenko/lena
d0fbae47f21007685edbd4e77bc91413421bebd1
[ "Apache-2.0" ]
4
2020-03-01T14:01:48.000Z
2021-02-23T19:33:36.000Z
tests/output/test_pdf_to_png.py
ynikitenko/lena
d0fbae47f21007685edbd4e77bc91413421bebd1
[ "Apache-2.0" ]
1
2021-05-09T15:47:17.000Z
2021-05-09T16:12:03.000Z
tests/output/test_pdf_to_png.py
ynikitenko/lena
d0fbae47f21007685edbd4e77bc91413421bebd1
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import pytest import subprocess import sys import lena.core from lena.output import PDFToPNG def test_pdf_to_png(mocker): mocker.patch("subprocess.Popen.communicate", return_value=("stdout", "stderr")) mocker.patch("subprocess.Popen.returncode", return_value=T...
35.040816
86
0.608037
0
0
0
0
0
0
0
0
672
0.39138
38f9a10a36632913442b3f03652d751ae087dae5
4,162
py
Python
third_party/maya/lib/usdMaya/testenv/testUsdExportSkeleton.py
navefx/YuksUSD
56c2e1def36ee07121f4ecb349c1626472b3c338
[ "AML" ]
6
2018-08-26T13:27:22.000Z
2021-08-14T23:57:38.000Z
third_party/maya/lib/usdMaya/testenv/testUsdExportSkeleton.py
navefx/YuksUSD
56c2e1def36ee07121f4ecb349c1626472b3c338
[ "AML" ]
1
2021-08-14T23:57:51.000Z
2021-08-14T23:57:51.000Z
third_party/maya/lib/usdMaya/testenv/testUsdExportSkeleton.py
navefx/YuksUSD
56c2e1def36ee07121f4ecb349c1626472b3c338
[ "AML" ]
4
2018-06-14T18:14:59.000Z
2021-09-13T22:20:50.000Z
#!/pxrpythonsubst # # Copyright 2018 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
34.683333
77
0.645603
2,870
0.689572
0
0
290
0.069678
0
0
1,778
0.427198
38fa54c4a5025900fd457356bdca81cf5e7db815
92
py
Python
datamux/src/datamux/simulate_mode.py
nirdslab/streaminghub
a0d9f5f8be0ee6f090bd2b48b9f596695497c2bf
[ "MIT" ]
null
null
null
datamux/src/datamux/simulate_mode.py
nirdslab/streaminghub
a0d9f5f8be0ee6f090bd2b48b9f596695497c2bf
[ "MIT" ]
null
null
null
datamux/src/datamux/simulate_mode.py
nirdslab/streaminghub
a0d9f5f8be0ee6f090bd2b48b9f596695497c2bf
[ "MIT" ]
1
2020-01-22T15:35:29.000Z
2020-01-22T15:35:29.000Z
class SimulateMode: @staticmethod def start_simulation(device, guide=None): return
15.333333
43
0.75
91
0.98913
0
0
68
0.73913
0
0
0
0
38fb3ca62ed5924a18e726aa270114cbccbf7a59
10,062
py
Python
tests/integration/test_k8s.py
lslebodn/conu
dee6fd958471f77d1c0511b031ea136dfaf8a77a
[ "MIT" ]
95
2018-05-19T14:35:08.000Z
2022-01-08T23:31:40.000Z
tests/integration/test_k8s.py
lslebodn/conu
dee6fd958471f77d1c0511b031ea136dfaf8a77a
[ "MIT" ]
179
2017-09-12T11:14:30.000Z
2018-04-26T05:36:13.000Z
tests/integration/test_k8s.py
lslebodn/conu
dee6fd958471f77d1c0511b031ea136dfaf8a77a
[ "MIT" ]
16
2018-05-09T14:15:32.000Z
2021-08-02T21:11:33.000Z
# -*- coding: utf-8 -*- # # Copyright Contributors to the Conu project. # SPDX-License-Identifier: MIT # """ Tests for Kubernetes backend """ import urllib3 import pytest from conu import DockerBackend, \ K8sBackend, K8sCleanupPolicy from conu.backend.k8s.pod import Pod, PodPhase from conu.backend.k...
35.305263
100
0.550487
9,286
0.922878
0
0
9,462
0.94037
0
0
1,680
0.166965
38fbd974e03682bea68c5248fd58ad877e5fa2e2
747
py
Python
fanyi.py
smithgoo/python3Learn
d0c066c10887db3942ca285b86ce464463998aad
[ "MIT" ]
1
2019-05-30T08:08:34.000Z
2019-05-30T08:08:34.000Z
fanyi.py
smithgoo/python3Learn
d0c066c10887db3942ca285b86ce464463998aad
[ "MIT" ]
null
null
null
fanyi.py
smithgoo/python3Learn
d0c066c10887db3942ca285b86ce464463998aad
[ "MIT" ]
null
null
null
#!/usr/bin/python #coding:utf-8 import requests import json headers ={"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1","Referer": "http://fanyi.baidu.com/translate?aldtype=16047&query=&keyfrom=baidu&smartresult=dic...
20.75
273
0.716198
0
0
0
0
0
0
0
0
399
0.52988
38fbddf88e24f691af151a049dc107ebe16a7e13
13,228
py
Python
frads/radmtx.py
LBNL-ETA/frads
dbd9980c7cfebd363089180d8fb1b7107e73ec92
[ "BSD-3-Clause-LBNL" ]
8
2019-11-13T22:26:45.000Z
2022-03-23T15:30:37.000Z
frads/radmtx.py
LBNL-ETA/frads
dbd9980c7cfebd363089180d8fb1b7107e73ec92
[ "BSD-3-Clause-LBNL" ]
null
null
null
frads/radmtx.py
LBNL-ETA/frads
dbd9980c7cfebd363089180d8fb1b7107e73ec92
[ "BSD-3-Clause-LBNL" ]
2
2021-08-10T18:22:04.000Z
2021-08-30T23:16:27.000Z
""" Support matrices generation. radmtx module contains two class objects: sender and receiver, representing the ray sender and receiver in the rfluxmtx operation. sender object is can be instantiated as a surface, a list of points, or a view, and these are typical forms of a sender. Similarly, a receiver object can b...
36.043597
93
0.584971
7,237
0.547097
0
0
5,618
0.424705
0
0
5,663
0.428107
38ffdd9e33324c5571bb8c9331725ff628bfcf97
7,354
py
Python
QGrain/ui/NNResolverSettingWidget.py
yuriok/QGrain
39a136d4e89716a26a88d68ffa00d36ef6036279
[ "MIT" ]
4
2021-09-04T11:00:07.000Z
2022-01-06T12:50:09.000Z
QGrain/ui/NNResolverSettingWidget.py
yuriok/QGrain
39a136d4e89716a26a88d68ffa00d36ef6036279
[ "MIT" ]
null
null
null
QGrain/ui/NNResolverSettingWidget.py
yuriok/QGrain
39a136d4e89716a26a88d68ffa00d36ef6036279
[ "MIT" ]
2
2021-08-23T02:39:07.000Z
2021-12-30T03:04:07.000Z
__all__ = ["NNResolverSettingWidget"] import pickle import numpy as np import torch from PySide2.QtCore import QSettings, Qt from PySide2.QtWidgets import (QCheckBox, QComboBox, QDialog, QDoubleSpinBox, QGridLayout, QLabel, QSpinBox) from QGrain.models.NNResolverSetting import (NNResol...
43.77381
147
0.663992
6,562
0.892061
0
0
1,436
0.195215
0
0
1,073
0.145867
ac012aecb07834c5fb29cd6c1e9f0c6f5ac9d379
284
py
Python
week3_greedy_algorithms/6_maximum_number_of_prizes/different_summands.py
thegautamkumarjaiswal/Algorithm-s_ToolBox_Solutions
bb265647ed183f44e0d56f14a4b8b966af73dfd2
[ "Apache-2.0" ]
null
null
null
week3_greedy_algorithms/6_maximum_number_of_prizes/different_summands.py
thegautamkumarjaiswal/Algorithm-s_ToolBox_Solutions
bb265647ed183f44e0d56f14a4b8b966af73dfd2
[ "Apache-2.0" ]
null
null
null
week3_greedy_algorithms/6_maximum_number_of_prizes/different_summands.py
thegautamkumarjaiswal/Algorithm-s_ToolBox_Solutions
bb265647ed183f44e0d56f14a4b8b966af73dfd2
[ "Apache-2.0" ]
null
null
null
# Uses python3 n = int(input()) if n == 1: print(1) print(1) quit() W = n prizes = [] for i in range(1, n): if W>2*i: prizes.append(i) W -= i else: prizes.append(W) break print(len(prizes)) print(' '.join([str(i) for i in prizes]))
15.777778
41
0.5
0
0
0
0
0
0
0
0
17
0.059859
ac015c8aae392f0c5e8f71cda13e428662656402
1,158
py
Python
town/migrations/0002_shop.py
Snowman88/DODOTOWN
a817d645b3002d75a25dc543e8f253648f007ca7
[ "Apache-2.0" ]
1
2015-01-07T14:54:19.000Z
2015-01-07T14:54:19.000Z
town/migrations/0002_shop.py
Snowman88/DODOTOWN
a817d645b3002d75a25dc543e8f253648f007ca7
[ "Apache-2.0" ]
2
2015-01-12T13:48:52.000Z
2015-01-12T13:49:45.000Z
town/migrations/0002_shop.py
Snowman88/DODOTOWN
a817d645b3002d75a25dc543e8f253648f007ca7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('town', '0001...
35.090909
114
0.603627
997
0.853596
0
0
0
0
0
0
129
0.110445
ac01a8777ade5c22566c19425f199dbb6101a624
8,700
py
Python
testing/scipy_distutils-0.3.3_34.586/command/build_clib.py
fireballpoint1/fortranTOpy
55843a62c6f0a2f8e2a777ef70193940d3d2d141
[ "Apache-2.0" ]
1
2018-08-26T05:10:56.000Z
2018-08-26T05:10:56.000Z
testing/scipy_distutils-0.3.3_34.586/command/build_clib.py
fireballpoint1/fortranTOpy
55843a62c6f0a2f8e2a777ef70193940d3d2d141
[ "Apache-2.0" ]
null
null
null
testing/scipy_distutils-0.3.3_34.586/command/build_clib.py
fireballpoint1/fortranTOpy
55843a62c6f0a2f8e2a777ef70193940d3d2d141
[ "Apache-2.0" ]
1
2018-06-26T18:06:44.000Z
2018-06-26T18:06:44.000Z
""" Modified version of build_clib that handles fortran source files. """ import os import string import sys import re from glob import glob from types import * from distutils.command.build_clib import build_clib as old_build_clib from distutils.command.build_clib import show_compilers from scipy_distutils import log...
38.666667
83
0.545057
7,715
0.886782
0
0
0
0
0
0
1,113
0.127931
ac024dc71c56bdd789c2d35559cf132d917d749c
1,405
py
Python
mayan/apps/web_links/migrations/0004_make_labes_unique.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/web_links/migrations/0004_make_labes_unique.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/web_links/migrations/0004_make_labes_unique.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
257
2019-05-14T10:26:37.000Z
2022-03-30T03:37:36.000Z
from django.db import migrations def operation_make_labels_unique(apps, schema_editor): WebLink = apps.get_model(app_label='web_links', model_name='WebLink') for web_link in WebLink.objects.using(schema_editor.connection.alias).all(): # Look for instances with the same label duplicate_queryse...
34.268293
80
0.661922
291
0.207117
0
0
0
0
0
0
210
0.149466
ac0252914b7769682c26f81c801eeba081b42d28
6,251
py
Python
ansible-devel/test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/module_args.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/module_args.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/module_args.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2016 Matt Martz <[email protected]> # Copyright (C) 2016 Rackspace US, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of ...
36.555556
117
0.699408
479
0.076628
982
0.157095
998
0.159654
0
0
2,098
0.335626
ac0406d097b2c425817270a16cec9aaa0dab57d1
425
py
Python
events/migrations/0003_invitation_detail.py
ebar0n/mishteh
dd025add9b80dff2253c1ee976fc656dff3abc03
[ "MIT" ]
null
null
null
events/migrations/0003_invitation_detail.py
ebar0n/mishteh
dd025add9b80dff2253c1ee976fc656dff3abc03
[ "MIT" ]
null
null
null
events/migrations/0003_invitation_detail.py
ebar0n/mishteh
dd025add9b80dff2253c1ee976fc656dff3abc03
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-10-13 19:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("events", "0002_auto_20191013_1712")] operations = [ migrations.AddField( model_name="invitation", name="detail", field=...
23.611111
70
0.623529
334
0.785882
0
0
0
0
0
0
108
0.254118
ac045942a364b8e9223f019c563338e05ffde92d
1,954
py
Python
pygitscrum/print.py
thib1984/pygitscrum
4f5f726e5b3c95f93da33c21da51953657bd0349
[ "MIT" ]
2
2021-04-23T11:10:32.000Z
2021-04-23T11:10:41.000Z
pygitscrum/print.py
thib1984/pygitscrum
4f5f726e5b3c95f93da33c21da51953657bd0349
[ "MIT" ]
2
2021-11-23T09:26:50.000Z
2021-11-23T09:27:02.000Z
pygitscrum/print.py
thib1984/pygitscrum
4f5f726e5b3c95f93da33c21da51953657bd0349
[ "MIT" ]
null
null
null
""" print scripts """ from termcolor import colored from pygitscrum.args import compute_args import colorama def print_resume_list(list_to_print, message): """ print list summary """ if len(list_to_print) > 0: print("") print( my_colored( message + " : ", ...
20.14433
53
0.449335
0
0
0
0
0
0
0
0
377
0.192938
ac062225c63cd5c3323bbc8f4dcab95e8e43641a
261
py
Python
test/_test_compute_m.py
yiruiliu110/eegnn
253773c301681bb00b4789c34f48c82468ad16da
[ "MIT" ]
null
null
null
test/_test_compute_m.py
yiruiliu110/eegnn
253773c301681bb00b4789c34f48c82468ad16da
[ "MIT" ]
null
null
null
test/_test_compute_m.py
yiruiliu110/eegnn
253773c301681bb00b4789c34f48c82468ad16da
[ "MIT" ]
null
null
null
import torch from estimation import compute_m i = [[0, 1, 1, 2], [2, 0, 2, 1]] v_z = [3, 4, 5, 2] v_c = [0, 1, 1, 0] z = torch.sparse_coo_tensor(i, v_z, (3, 3)) c = torch.sparse_coo_tensor(i, v_c, (3, 3)) max_K = 10 m = compute_m(z, c, max_K) print(m)
15.352941
43
0.578544
0
0
0
0
0
0
0
0
0
0
ac07185d13ca3e632e2ca4e17fcc91869d099238
3,677
py
Python
test/SMSGateway_test.py
S2Innovation/ds-s2i-smsgateway
eed5ce3d630c26b0fd73117d79c84606a12bc783
[ "MIT" ]
null
null
null
test/SMSGateway_test.py
S2Innovation/ds-s2i-smsgateway
eed5ce3d630c26b0fd73117d79c84606a12bc783
[ "MIT" ]
null
null
null
test/SMSGateway_test.py
S2Innovation/ds-s2i-smsgateway
eed5ce3d630c26b0fd73117d79c84606a12bc783
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This file is part of the SMSGateway project # # # # Distributed under the terms of the MIT license. # See LICENSE.txt for more info. """Contain the tests for the SMSGateway for PANIC.""" # Path import sys import os path = os.path.join(os.path.dirname(__file__), os.pard...
32.830357
77
0.661409
2,650
0.720696
0
0
292
0.079413
0
0
2,344
0.637476
ac07adb5420f61816fe1726ed429cadf16e37902
505
py
Python
simfile/_private/serializable.py
garcia/simfile
4e15660c964d8d3c0e6d1f69431138e7eb4db288
[ "MIT" ]
22
2017-04-24T05:37:13.000Z
2022-03-08T00:41:37.000Z
simfile/_private/serializable.py
garcia/simfile
4e15660c964d8d3c0e6d1f69431138e7eb4db288
[ "MIT" ]
10
2021-05-31T01:21:56.000Z
2022-03-17T04:26:54.000Z
simfile/_private/serializable.py
garcia/simfile
4e15660c964d8d3c0e6d1f69431138e7eb4db288
[ "MIT" ]
3
2019-06-05T15:23:53.000Z
2021-09-11T02:39:36.000Z
from abc import ABCMeta, abstractmethod from io import StringIO from typing import TextIO class Serializable(metaclass=ABCMeta): @abstractmethod def serialize(self, file: TextIO) -> None: """ Write the object to provided text file object as MSD. """ pass def __str__(s...
24.047619
61
0.615842
413
0.817822
0
0
161
0.318812
0
0
137
0.271287
ac07f9a51ba5bae2e9b9b9afd0ca35481fa33be3
214
py
Python
Flask/Lezione4/webapp/project/serate/templates/serate/forms.py
nick87ds/MaterialeSerate
51627e47ff1d3c3ecfc9ce6741c04b91b3295359
[ "MIT" ]
12
2021-12-12T22:19:52.000Z
2022-03-18T11:45:17.000Z
Flask/Lezione4/webapp/project/serate/templates/serate/forms.py
nick87ds/MaterialeSerate
51627e47ff1d3c3ecfc9ce6741c04b91b3295359
[ "MIT" ]
1
2022-03-23T13:58:33.000Z
2022-03-23T14:05:08.000Z
Flask/Lezione4/webapp/project/serate/templates/serate/forms.py
nick87ds/MaterialeSerate
51627e47ff1d3c3ecfc9ce6741c04b91b3295359
[ "MIT" ]
7
2021-02-01T22:09:14.000Z
2021-06-22T08:30:16.000Z
from time import strftime from flask_wtf import FlaskForm from wtforms import ( Form, validators, StringField, IntegerField, SubmitField, BooleanField, SelectField, TextAreaField, )
16.461538
31
0.705607
0
0
0
0
0
0
0
0
0
0
ac0aebc29b01daccd8a1302b366f51ee3eb40958
190
py
Python
intered/bin/django-admin.py
allenallen/interedregistration
d6b93bfc33d7bb9bfbabdcdb27b685f3a6be3ea9
[ "MIT" ]
null
null
null
intered/bin/django-admin.py
allenallen/interedregistration
d6b93bfc33d7bb9bfbabdcdb27b685f3a6be3ea9
[ "MIT" ]
6
2020-02-11T23:05:13.000Z
2021-06-10T20:43:51.000Z
intered/bin/django-admin.py
allenallen/interedregistration
d6b93bfc33d7bb9bfbabdcdb27b685f3a6be3ea9
[ "MIT" ]
null
null
null
#!/home/allen/Documents/TamarawTechProjects/interedregistration/intered/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
31.666667
83
0.821053
0
0
0
0
0
0
0
0
93
0.489474
ac0b33a69404bee3fc2c70f72e63ffeda7d74b5d
746
py
Python
generate_hamming_command.py
zoeleeee/mnist_challenge
8a98f7dde35ee1d7a1fb77e85ca931000fb71631
[ "MIT" ]
null
null
null
generate_hamming_command.py
zoeleeee/mnist_challenge
8a98f7dde35ee1d7a1fb77e85ca931000fb71631
[ "MIT" ]
null
null
null
generate_hamming_command.py
zoeleeee/mnist_challenge
8a98f7dde35ee1d7a1fb77e85ca931000fb71631
[ "MIT" ]
null
null
null
import numpy as np import os path = 'preds' files = os.listdir(path) lst = [] for f in files: if f.find('_0_HASH') == -1: continue if f.find('CW') == -1: continue if f.find('low')==-1 and f.find('high')==-1 and f.find('mix')==-1: continue if f.endswith('show.npy'): lst.a...
25.724138
82
0.567024
0
0
0
0
0
0
0
0
110
0.147453
ac0bb6d2bc717836589dada86f31d1c73d9161be
3,416
py
Python
benchmarks/benchmarks/reflect.py
dcortie/refnx
037434fa0a64755f72c540d75063986bd517ab10
[ "BSD-3-Clause" ]
32
2016-04-18T15:29:59.000Z
2022-03-27T08:35:29.000Z
benchmarks/benchmarks/reflect.py
dcortie/refnx
037434fa0a64755f72c540d75063986bd517ab10
[ "BSD-3-Clause" ]
116
2015-10-27T04:33:09.000Z
2022-02-22T02:02:47.000Z
benchmarks/benchmarks/reflect.py
dcortie/refnx
037434fa0a64755f72c540d75063986bd517ab10
[ "BSD-3-Clause" ]
22
2015-09-29T23:21:15.000Z
2022-02-27T18:12:18.000Z
import os.path import numpy as np import pickle from .common import Benchmark from refnx.analysis import CurveFitter, Objective, Parameter import refnx.reflect from refnx.reflect._creflect import abeles as c_abeles from refnx.reflect._reflect import abeles from refnx.reflect import SLD, Slab, Structure, ReflectModel,...
30.774775
77
0.603923
3,029
0.88671
0
0
0
0
0
0
371
0.108607
ac0d30f40fdb142e0b5b6ff9a6caa98ff58e125e
1,257
py
Python
app/__init__.py
annerachael/fifth_year_project
3843b4e6315e9a5374f80a2aabc0bcb8423fd0d9
[ "Apache-2.0" ]
null
null
null
app/__init__.py
annerachael/fifth_year_project
3843b4e6315e9a5374f80a2aabc0bcb8423fd0d9
[ "Apache-2.0" ]
null
null
null
app/__init__.py
annerachael/fifth_year_project
3843b4e6315e9a5374f80a2aabc0bcb8423fd0d9
[ "Apache-2.0" ]
null
null
null
# app/__init__.py from flask import Flask from redis import Redis from rq_scheduler import Scheduler from flask_migrate import Migrate from flask_login import LoginManager from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy """ This file shall contain configurations for the web app """ # cr...
25.14
69
0.731106
0
0
0
0
0
0
0
0
397
0.315831
ac0e680fa5ad08e1900fc7ebe2eb246aebdc7e1d
148
py
Python
automation/openwebsites.py
abrahammachuki/dnav3-code
d278bf4facbc0702342f9c86a3845f0fb1c247bf
[ "MIT" ]
null
null
null
automation/openwebsites.py
abrahammachuki/dnav3-code
d278bf4facbc0702342f9c86a3845f0fb1c247bf
[ "MIT" ]
null
null
null
automation/openwebsites.py
abrahammachuki/dnav3-code
d278bf4facbc0702342f9c86a3845f0fb1c247bf
[ "MIT" ]
null
null
null
import webbrowser website = ['site1', 'site2', 'site3', 'site4'] for i in range(len(website)): site = 'http://' + website[i] webbrowser.open(site)
29.6
46
0.662162
0
0
0
0
0
0
0
0
37
0.25
ac105d162c447186bd1f92785b821628a3aa1ff5
1,865
py
Python
hedger/tournament.py
dmalison/hedger
8db634a484769fb4f3feb945c1847ef50803fafe
[ "MIT" ]
null
null
null
hedger/tournament.py
dmalison/hedger
8db634a484769fb4f3feb945c1847ef50803fafe
[ "MIT" ]
null
null
null
hedger/tournament.py
dmalison/hedger
8db634a484769fb4f3feb945c1847ef50803fafe
[ "MIT" ]
null
null
null
import hedger from hedger import Result class Tournament: def __init__(self, entries): self._entries = entries self._brackets = self._get_brackets() self._brackets_info = self._get_brackets_info() @property def entries(self): return self._entries @property def bra...
27.835821
65
0.641287
1,822
0.976944
0
0
197
0.10563
0
0
14
0.007507
ac110f6329cbb307af9cb472a6aa5c74e249a2ef
5,294
py
Python
src/tentaclio/clients/sqla_client.py
datavaluepeople/tentaclio
eb6920a0e115c6c08043063a8c1013d812ec34c8
[ "MIT" ]
12
2019-04-30T16:07:42.000Z
2021-12-08T08:02:09.000Z
src/tentaclio/clients/sqla_client.py
octoenergy/tentaclio
eb6920a0e115c6c08043063a8c1013d812ec34c8
[ "MIT" ]
74
2019-04-25T11:18:22.000Z
2022-01-18T11:31:14.000Z
src/tentaclio/clients/sqla_client.py
datavaluepeople/tentaclio
eb6920a0e115c6c08043063a8c1013d812ec34c8
[ "MIT" ]
4
2019-05-05T13:13:21.000Z
2022-01-14T00:33:07.000Z
"""Provide sql connection using sqlalchemy. This client is used for convinience when using different sql providers and unifying the client creation. We do not intent to rewriter sqlalchemy. """ import contextlib from typing import Container, Generator, Optional, Union import pandas as pd from sqlalchemy.engine import...
29.909605
98
0.657537
3,903
0.73725
607
0.114658
1,517
0.286551
0
0
1,508
0.284851
ac119758f2d8245405f37028d9f047dacd5dfbff
1,678
py
Python
polls/views.py
agustinsuana/mysite
03e196470520d5b93f60d6be40358332490f349e
[ "MIT" ]
null
null
null
polls/views.py
agustinsuana/mysite
03e196470520d5b93f60d6be40358332490f349e
[ "MIT" ]
null
null
null
polls/views.py
agustinsuana/mysite
03e196470520d5b93f60d6be40358332490f349e
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse from django.template import loader from .models import Question from django.http import Http404 def index(request): #last_questions_list = Question.objects.order_by('-pub_date')[:5] #template = loader.get_template("poll...
34.958333
73
0.722288
0
0
0
0
0
0
0
0
879
0.523838
ac12e55df64cb0e22fe581ffef24c9ea5ad38135
2,343
py
Python
cctk/file.py
ekwan/cctk
85cb8d0b714a80e8e353987dc24006695f1d0532
[ "Apache-2.0" ]
10
2020-01-16T15:26:57.000Z
2022-01-15T23:12:00.000Z
cctk/file.py
ekwan/cctk
85cb8d0b714a80e8e353987dc24006695f1d0532
[ "Apache-2.0" ]
2
2020-05-27T21:04:36.000Z
2020-09-26T20:49:53.000Z
cctk/file.py
ekwan/cctk
85cb8d0b714a80e8e353987dc24006695f1d0532
[ "Apache-2.0" ]
2
2020-09-24T18:44:18.000Z
2021-08-05T20:35:51.000Z
import os from abc import ABC, abstractmethod class File(ABC): """ Abstract class representing text files. """ @abstractmethod def __init__(self): pass @staticmethod def write_file(filename, text, overwrite_existing=True): """ Writes output text to a file. ...
28.573171
94
0.545881
2,293
0.97866
0
0
2,193
0.93598
0
0
1,078
0.460094
ac14c5baab8284824cd35d4e64729e5b1523569f
582
py
Python
elif_bayindir/phase_1/python_basic_1/day_4/q8.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
elif_bayindir/phase_1/python_basic_1/day_4/q8.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
elif_bayindir/phase_1/python_basic_1/day_4/q8.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
# Question 8 # Print even numbers in a list, stop printing when the number is 237 numbers = [ 386, 462, 47, 418, 907, 344, 236, 375, 823, 566, 597, 978, 328, 615, 953, 345, 399, 162, 758, 219, 918, 237, 412, 566, 826, 248, 866, 950, 626, 949, 687, 217, 815, 67, 104, 58, 512, 24, 892, 894, 767, 553, 8...
22.384615
85
0.573883
0
0
0
0
0
0
0
0
170
0.292096
ac1751b7ad47eb3e921543a2e5f6b1310543b55f
1,377
py
Python
encode_morse.py
cmanagoli/github-upload
9759b8ee905e1fd37b169231d2150de31e143191
[ "MIT" ]
null
null
null
encode_morse.py
cmanagoli/github-upload
9759b8ee905e1fd37b169231d2150de31e143191
[ "MIT" ]
4
2020-10-14T21:30:35.000Z
2020-10-14T21:43:06.000Z
encode_morse.py
cmanagoli/github-upload
9759b8ee905e1fd37b169231d2150de31e143191
[ "MIT" ]
null
null
null
# Author: Chinmai Managoli import sys as sys # Morse code dictionary char_to_dots = { 'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.', 'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..', 'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '.-.', 'S': '...
34.425
96
0.336964
0
0
0
0
0
0
0
0
760
0.551924
ac18c099c076caa8b9713e7d997b71df79627791
22,442
py
Python
self_implement_learning_to_adapt/maml_rl.py
chi6/Model-based-meta-learning-rl
fda134dcbd87ef3e91f339ea2f836f28ec5f7784
[ "MIT" ]
2
2019-09-10T10:13:20.000Z
2020-07-17T01:37:27.000Z
self_implement_learning_to_adapt/maml_rl.py
chi6/Model-based-meta-learning-rl
fda134dcbd87ef3e91f339ea2f836f28ec5f7784
[ "MIT" ]
null
null
null
self_implement_learning_to_adapt/maml_rl.py
chi6/Model-based-meta-learning-rl
fda134dcbd87ef3e91f339ea2f836f28ec5f7784
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from self_implement_learning_to_adapt.model import construct_fc_weights,construct_inputs,construct_loss,forward_fc from self_implement_learning_to_adapt.batch_sampler import ParrallelSampler from self_implement_learning_to_adapt.vectorized_sampler import VectorizedSampler from...
43.832031
142
0.549238
21,975
0.979191
0
0
0
0
0
0
3,097
0.138
ac1910c0faa98f5af77a97256be74c749f17725a
279
py
Python
DeepRTS/__init__.py
cair/deep-rts
7aa5dde0c5df10ae3a3d057e7b89641aec58e115
[ "MIT" ]
144
2018-07-13T07:47:50.000Z
2022-03-31T06:29:50.000Z
DeepRTS/__init__.py
cair/DeepRTS
2ea4de0993ea0ca2677fdb36a172779db4ce7868
[ "MIT" ]
18
2019-03-29T10:37:01.000Z
2022-03-02T12:47:34.000Z
DeepRTS/__init__.py
cair/DeepRTS
2ea4de0993ea0ca2677fdb36a172779db4ce7868
[ "MIT" ]
23
2018-11-02T18:12:51.000Z
2022-02-15T20:32:18.000Z
try: from DeepRTS import Engine except ImportError: import Engine try: from DeepRTS.Engine import Map, UnitManager, Constants, Player from DeepRTS.Engine import Constants except ImportError: from Engine import Map, UnitManager, Constants, Player, Constants
23.25
69
0.763441
0
0
0
0
0
0
0
0
0
0
ac19348529e2bf02c00c7ac8ed17b55456b351e7
4,196
py
Python
openprocurement/auctions/swiftsure/utils.py
bdmbdsm/openprocurement.auctions.swiftsure
f5b93555eb12212c69c8168f861376eae85f4648
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/swiftsure/utils.py
bdmbdsm/openprocurement.auctions.swiftsure
f5b93555eb12212c69c8168f861376eae85f4648
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/swiftsure/utils.py
bdmbdsm/openprocurement.auctions.swiftsure
f5b93555eb12212c69c8168f861376eae85f4648
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from logging import getLogger from pkg_resources import get_distribution from openprocurement.auctions.core.plugins.contracting.base.utils import ( check_auction_status ) from openprocurement.auctions.core.utils import ( cleanup_bids_for_cancelled_lots, check_complaint_status, remov...
42.383838
147
0.651335
0
0
0
0
0
0
0
0
550
0.131077
ac1a66d846bb2dcb096e3c89c166dcb12db849c3
12,989
py
Python
src/plugins/bilibili/__init__.py
shinnenijou/JiBot
c468a67e301597ca702170aded96c5145d864115
[ "MIT" ]
null
null
null
src/plugins/bilibili/__init__.py
shinnenijou/JiBot
c468a67e301597ca702170aded96c5145d864115
[ "MIT" ]
null
null
null
src/plugins/bilibili/__init__.py
shinnenijou/JiBot
c468a67e301597ca702170aded96c5145d864115
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Python STL from time import time, sleep import asyncio from collections import deque # Third-party from bilibili_api import Credential, comment import nonebot from nonebot.log import logger from nonebot import on_command, require from nonebot.permission import SUPERUSER, USER from nonebot.adap...
37.111429
96
0.614212
0
0
0
0
10,919
0.755379
10,465
0.723971
3,892
0.269249
ac1aafb69f1a23988f2e6e269f2b272b5e40a652
6,593
py
Python
rlzoo/common/build_rlbench_env.py
tensorlayer/RLzoo
9a587b97f706b2a59ac98555945822bf3987b1d1
[ "Apache-2.0" ]
750
2019-07-26T10:56:28.000Z
2022-03-25T08:36:38.000Z
rlzoo/common/build_rlbench_env.py
tensorlayer/RLzoo
9a587b97f706b2a59ac98555945822bf3987b1d1
[ "Apache-2.0" ]
29
2019-10-25T02:46:19.000Z
2022-02-09T23:41:24.000Z
rlzoo/common/build_rlbench_env.py
tensorlayer/RLzoo
9a587b97f706b2a59ac98555945822bf3987b1d1
[ "Apache-2.0" ]
101
2019-08-04T12:21:25.000Z
2022-03-18T18:06:50.000Z
import sys from collections import OrderedDict import numpy as np from gym import spaces from pyrep.const import RenderMode from pyrep.objects.dummy import Dummy from pyrep.objects.vision_sensor import VisionSensor from rlbench.environment import Environment from rlbench.action_modes import ArmActionMode, A...
40.447853
108
0.574245
5,405
0.819809
0
0
0
0
0
0
1,786
0.270893
ac1ab705364244ba4229d2c3d2d14676f947e30d
4,117
py
Python
scripts/generate/xgboost_.py
thomas-young-2013/automl_space
f6267dac27ae6b17123ec17c4a6c843a40e4e963
[ "MIT" ]
2
2021-04-23T10:31:47.000Z
2021-11-25T07:59:05.000Z
scripts/generate/xgboost_.py
thomas-young-2013/automl_space
f6267dac27ae6b17123ec17c4a6c843a40e4e963
[ "MIT" ]
null
null
null
scripts/generate/xgboost_.py
thomas-young-2013/automl_space
f6267dac27ae6b17123ec17c4a6c843a40e4e963
[ "MIT" ]
1
2021-08-11T15:03:13.000Z
2021-08-11T15:03:13.000Z
import numpy as np from ConfigSpace import ConfigurationSpace from ConfigSpace.hyperparameters import UniformFloatHyperparameter, \ UniformIntegerHyperparameter, UnParametrizedHyperparameter import argparse import pickle as pkl import os import sys sys.path.insert(0, '.') from scripts.utils import check_none, chec...
37.770642
107
0.683022
2,911
0.707068
0
0
1,333
0.323779
0
0
467
0.113432
ac1adabe581fd30a1766857374cb20cf0b69b1b2
2,362
py
Python
OnStage/player_chair.py
IanDCarroll/xox
38feac84e81e8c00a397f7f976efee15756cd3ac
[ "MIT" ]
null
null
null
OnStage/player_chair.py
IanDCarroll/xox
38feac84e81e8c00a397f7f976efee15756cd3ac
[ "MIT" ]
30
2016-11-25T05:34:34.000Z
2017-02-11T00:10:17.000Z
OnStage/player_chair.py
IanDCarroll/tik-tak-toe
38feac84e81e8c00a397f7f976efee15756cd3ac
[ "MIT" ]
1
2016-11-26T01:41:37.000Z
2016-11-26T01:41:37.000Z
import sys from Training.observer_abilities import * from Training.cortex_3x3_caddy import * class Player(Observer): def __init__(self, marker_code): self.ui = None self.marker_code = marker_code def get_enemy_code(self): if self.marker_code == 10: return 1 return ...
27.149425
58
0.595682
2,263
0.958086
0
0
0
0
0
0
68
0.028789
ac1b3ebd8ffb64179ceb128585149b4d27bf039c
575
py
Python
content_f_conditions/ex45_multiple_conditions.py
Alyssonmach/learning-python-with-codes
e5ef70f3b56712e98449b3053eb34416b8025cb1
[ "MIT" ]
3
2020-11-28T08:26:54.000Z
2020-12-23T18:37:37.000Z
content_f_conditions/ex45_multiple_conditions.py
Alyssonmach/learning-python-with-codes
e5ef70f3b56712e98449b3053eb34416b8025cb1
[ "MIT" ]
1
2021-02-12T12:17:49.000Z
2021-02-12T12:17:49.000Z
content_f_conditions/ex45_multiple_conditions.py
Alyssonmach/learning-python-with-codes
e5ef70f3b56712e98449b3053eb34416b8025cb1
[ "MIT" ]
null
null
null
requested_toppings = ['mushrooms', 'extra cheese'] if 'mushrooms' in requested_toppings: print("Adding mushrooms.") if 'pepperoni' in requested_toppings: print("Adding pepperoni.") if 'extra cheese' in requested_toppings: print("Adding extra cheese.") print("\nFinished making your first pizza!") if 'mush...
30.263158
50
0.73913
0
0
0
0
0
0
0
0
292
0.507826
ac1cc4d7aa81ff92764789ce626b2f4acf382ec9
4,000
py
Python
blog/models.py
njuaplusplus/j0shua
d14c657c72df157aaf2e471010b06bd85f415296
[ "Apache-2.0" ]
null
null
null
blog/models.py
njuaplusplus/j0shua
d14c657c72df157aaf2e471010b06bd85f415296
[ "Apache-2.0" ]
null
null
null
blog/models.py
njuaplusplus/j0shua
d14c657c72df157aaf2e471010b06bd85f415296
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python # coding=utf-8 from django.db import models from django.utils.translation import ugettext as _ from markdown import markdown from django.contrib.auth.models import User from uuslug import uuslug from django import forms from pagedown.widgets import PagedownWidget # from bootstrap3_datetime.widg...
31.007752
131
0.58325
3,687
0.901467
0
0
0
0
0
0
873
0.213447
ac1cf53bf0793269cb8c9b3fe1ee4967ef2b9385
4,788
py
Python
sw_edit.py
nellore/deidentify
e82befbf9d45e70df739ab2aaafaa1a5513e4aeb
[ "MIT" ]
null
null
null
sw_edit.py
nellore/deidentify
e82befbf9d45e70df739ab2aaafaa1a5513e4aeb
[ "MIT" ]
null
null
null
sw_edit.py
nellore/deidentify
e82befbf9d45e70df739ab2aaafaa1a5513e4aeb
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ sw_edit.py Deidentifies SW_SUMMARY.csv and SW_MINUTE.csv in LABS 2 data; these files cannot be deidentified properly by date_eliminator.py. This script replaces dates with days since first day. This software is licensed under the MIT License. Copyright (c) 2016 Abhinav Nellore Permission...
41.634783
78
0.581662
0
0
0
0
0
0
0
0
1,962
0.409774
ac1d0576b9d96127b532e1ac5e9548932d7f9611
39
py
Python
pwas/__init__.py
cgreencode/pwas
e65901e115491ad9661832c7b622b01b1e81c934
[ "MIT" ]
19
2020-06-22T02:39:25.000Z
2022-02-21T14:37:33.000Z
pwas/__init__.py
cgreencode/pwas
e65901e115491ad9661832c7b622b01b1e81c934
[ "MIT" ]
5
2020-09-28T11:26:01.000Z
2021-05-06T15:34:16.000Z
pwas/__init__.py
cgreencode/pwas
e65901e115491ad9661832c7b622b01b1e81c934
[ "MIT" ]
4
2020-06-25T18:19:58.000Z
2022-01-29T04:02:20.000Z
from .genotype import GenotypingManager
39
39
0.897436
0
0
0
0
0
0
0
0
0
0
ac1ea04b12bfdc49c4c9cf7624e0e9869351d1bb
6,191
py
Python
CNN_freq.py
vishnubk/ml_tutorial_pulsars
1a1b1eabbce43c39222b32974e29dfff5a722601
[ "MIT" ]
null
null
null
CNN_freq.py
vishnubk/ml_tutorial_pulsars
1a1b1eabbce43c39222b32974e29dfff5a722601
[ "MIT" ]
null
null
null
CNN_freq.py
vishnubk/ml_tutorial_pulsars
1a1b1eabbce43c39222b32974e29dfff5a722601
[ "MIT" ]
null
null
null
from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential from keras.layers import Conv2D, MaxPooling2D from keras.layers import Activation, Dropout, Flatten, Dense from sklearn.metrics import confusion_matrix, f1_score, precision_score, recall_score from keras import backend as K fro...
43.598592
186
0.800517
0
0
296
0.047811
0
0
0
0
1,379
0.222743
ac1eac77532b97e37684d7282cd7c2a9da13f188
1,332
py
Python
src/config/contents.py
miloszowi/everyone-mention-telegram-bot
a6b441b197b743f57e089dbe32d262b87a155140
[ "MIT" ]
13
2021-09-20T17:04:28.000Z
2022-03-15T09:27:25.000Z
src/config/contents.py
miloszowi/everyone-mention-telegram-bot
a6b441b197b743f57e089dbe32d262b87a155140
[ "MIT" ]
null
null
null
src/config/contents.py
miloszowi/everyone-mention-telegram-bot
a6b441b197b743f57e089dbe32d262b87a155140
[ "MIT" ]
null
null
null
# markdownv2 python-telegram-bot specific joined = '{} joined group `{}`' not_joined = '{} is already in group `{}`' left = '{} left group `{}`' not_left = '{} did not join group `{}` before' mention_failed = 'There are no users to mention' no_groups = 'There are no groups for this chat' # html python-telegram-bot spe...
30.976744
128
0.701201
0
0
0
0
0
0
0
0
1,240
0.930931
ac202e2b18e2572dfa3962aaeb16577bcf9a3ce4
3,298
py
Python
portal/libs/utils.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/libs/utils.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/libs/utils.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
# -*- coding: utf-8 -*- from hashlib import md5 import re import smtplib from django.conf import settings from django.http import HttpResponseBadRequest def remove_spaces(s): inline_tags = 'a|b|i|u|em|span|strong|sup|sub|tt|font|small|big' inlines_with_spaces = r'</(%s)>[\s\n\t]+<(%s)\b' % ( inline_t...
28.678261
119
0.632201
0
0
0
0
0
0
0
0
978
0.296543
ac20aa316bc8bb6155930c3ea46cc8a431427a33
382
py
Python
Python_OO/DelegarAcessoAtributos.py
Madara701/Python_OO
8d67569a8c4771dd82f5259c2ed5e782cd4e4036
[ "Apache-2.0" ]
null
null
null
Python_OO/DelegarAcessoAtributos.py
Madara701/Python_OO
8d67569a8c4771dd82f5259c2ed5e782cd4e4036
[ "Apache-2.0" ]
null
null
null
Python_OO/DelegarAcessoAtributos.py
Madara701/Python_OO
8d67569a8c4771dd82f5259c2ed5e782cd4e4036
[ "Apache-2.0" ]
null
null
null
class A: def fazer_algo(self): print("Palmeiras") def outro(self): print("campeão") class B: def __init__(self): self.a = A() def fazer_algo(self): #delega para self.a return self.a.fazer_algo() def outro(self): #delegando novamente return sel...
17.363636
34
0.565445
330
0.861619
0
0
0
0
0
0
60
0.156658
ac20ce5e35b873341e2f84f5642a7ee91537325e
777
py
Python
app/main.py
sebastian-hatala-leanix/chain-reaction-event
15e34ce450b2c267eb9dd2ec5981fbfc51caac23
[ "Apache-2.0" ]
null
null
null
app/main.py
sebastian-hatala-leanix/chain-reaction-event
15e34ce450b2c267eb9dd2ec5981fbfc51caac23
[ "Apache-2.0" ]
null
null
null
app/main.py
sebastian-hatala-leanix/chain-reaction-event
15e34ce450b2c267eb9dd2ec5981fbfc51caac23
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np from numpy.linalg import norm import requests def _get_image_frame(camera) -> np.ndarray: _, frame = camera.read() return frame def _convert_frame_to_hsv(frame: np.ndarray) -> np.ndarray: return cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) def _post_to_michi() -> None: try: ...
22.852941
77
0.655084
0
0
0
0
0
0
0
0
74
0.095238
ac2256d9966602bb7091a7d1aec1644daf7e0196
8,134
py
Python
habitat_baselines/utils/gym_adapter.py
srama2512/habitat-api
bc85d0961cef3b4a08bc9263869606109fb6ff0a
[ "MIT" ]
355
2020-08-18T03:48:26.000Z
2022-03-30T00:22:50.000Z
habitat_baselines/utils/gym_adapter.py
srama2512/habitat-api
bc85d0961cef3b4a08bc9263869606109fb6ff0a
[ "MIT" ]
328
2020-08-12T21:25:09.000Z
2022-03-31T10:39:21.000Z
habitat_baselines/utils/gym_adapter.py
srama2512/habitat-api
bc85d0961cef3b4a08bc9263869606109fb6ff0a
[ "MIT" ]
159
2020-08-12T22:23:36.000Z
2022-03-30T22:56:52.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Dict, Optional, Union import gym import numpy as np from gym import spaces from habitat.core.s...
36.475336
99
0.630194
6,679
0.821121
0
0
0
0
0
0
2,532
0.311286
ac25119082b547f7c1b12e27563aa843d253ac6b
1,279
py
Python
TopicExtractor/src/SampleFlaskApp/app.py
npnkbabu/mymlproject
9b9aaeef4a5dac2d967262166ca8cdf4fa09cd5d
[ "Apache-2.0" ]
null
null
null
TopicExtractor/src/SampleFlaskApp/app.py
npnkbabu/mymlproject
9b9aaeef4a5dac2d967262166ca8cdf4fa09cd5d
[ "Apache-2.0" ]
null
null
null
TopicExtractor/src/SampleFlaskApp/app.py
npnkbabu/mymlproject
9b9aaeef4a5dac2d967262166ca8cdf4fa09cd5d
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, Response from topicsconsumer import TopicsConsumer import math import time import queue import threading import json app = Flask(__name__) @app.route('/', methods=['GET', 'POST']) def searchTopic(): return render_template('base.html') @app.route('/topics', methods=['GET'...
31.975
249
0.532447
0
0
771
0.602815
1,029
0.804535
0
0
313
0.244722