hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
130
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
873681d35d9ca235739e4bd1f8f68c5f77e2d7c1
404
py
Python
framework/behaviour/DataAggregators.py
vitorascorrea/pokemon-vgc-engine
3925deb408a70d25c4c9e7b53e021ea5a25d3bda
[ "MIT" ]
1
2022-01-05T10:00:46.000Z
2022-01-05T10:00:46.000Z
framework/behaviour/DataAggregators.py
vitorascorrea/pokemon-vgc-engine
3925deb408a70d25c4c9e7b53e021ea5a25d3bda
[ "MIT" ]
null
null
null
framework/behaviour/DataAggregators.py
vitorascorrea/pokemon-vgc-engine
3925deb408a70d25c4c9e7b53e021ea5a25d3bda
[ "MIT" ]
null
null
null
from framework.DataObjects import MetaData from framework.behaviour import DataAggregator class NullDataAggregator(DataAggregator): class NullMetaData(MetaData): pass null_metadata = NullMetaData() def requires_encode(self) -> bool: return False def close(self): pass d...
20.2
47
0.710396
1d2d2d8b8ef6732eeb8c693d17dd1d56986629af
1,201
py
Python
Basics/Inherit and Polymorphism.py
ravindrajoisa/Python
fcf96fda02d0310360dac020021bb5d8f630d346
[ "Unlicense" ]
null
null
null
Basics/Inherit and Polymorphism.py
ravindrajoisa/Python
fcf96fda02d0310360dac020021bb5d8f630d346
[ "Unlicense" ]
null
null
null
Basics/Inherit and Polymorphism.py
ravindrajoisa/Python
fcf96fda02d0310360dac020021bb5d8f630d346
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[20]: class Student(): def __init__(self, firstname, lastname): self.firstname = firstname self.lastname = lastname self.term = 1 def name(self): return self.firstname + " " + self.lastname class WorkingStudent(Student): ...
24.510204
135
0.544546
0a1ee5b110ab7090ab552b50c8de4a90ffa2fe8a
1,893
py
Python
microphone.py
marclecerf/stt
3979617119fdfb7ead83f8ec8f2c3102f0f0ee68
[ "Apache-2.0" ]
null
null
null
microphone.py
marclecerf/stt
3979617119fdfb7ead83f8ec8f2c3102f0f0ee68
[ "Apache-2.0" ]
null
null
null
microphone.py
marclecerf/stt
3979617119fdfb7ead83f8ec8f2c3102f0f0ee68
[ "Apache-2.0" ]
null
null
null
import os import pyaudio import pocketsphinx as sphinx DEFAULT_MODEL_PATH = sphinx.get_model_path() DEFAULT_HMM_PATH = os.path.join(DEFAULT_MODEL_PATH, 'en-us') DEFAULT_LM_PATH = os.path.join(DEFAULT_MODEL_PATH, 'en-us.lm.bin') DEFAULT_DICT_PATH = os.path.join(DEFAULT_MODEL_PATH, 'cmudict-en-us.dict') DEFAULT_DECODER...
33.803571
74
0.635499
19f6cc0e0aca2f95b95ba37657e0a5ffd4c428e5
9,274
bzl
Python
test/packetimpact/runner/defs.bzl
Exhorder6/gvisor
add8bca5ba53b37096bc653900cb278e11681461
[ "Apache-2.0" ]
12,536
2018-05-02T09:57:54.000Z
2022-03-31T14:25:15.000Z
test/packetimpact/runner/defs.bzl
Exhorder6/gvisor
add8bca5ba53b37096bc653900cb278e11681461
[ "Apache-2.0" ]
2,478
2018-05-02T14:01:30.000Z
2022-03-31T19:57:47.000Z
test/packetimpact/runner/defs.bzl
Exhorder6/gvisor
add8bca5ba53b37096bc653900cb278e11681461
[ "Apache-2.0" ]
1,163
2018-05-02T10:03:44.000Z
2022-03-29T17:15:01.000Z
"""Defines rules for packetimpact test targets.""" load("//tools:defs.bzl", "go_test") def _packetimpact_test_impl(ctx): test_runner = ctx.executable._test_runner bench = ctx.actions.declare_file("%s-bench" % ctx.label.name) bench_content = "\n".join([ "#!/bin/bash", # This test will run p...
29.348101
119
0.616347
9aa4618e4c9c8c50b024da5aaa8bfae959b71a00
678
py
Python
portal.dsic/examples/python/load_mnist.py
jonandergomez/teaa_lab
a5acf38b683b1d6feb1ff7e12dddfbc6352baf5e
[ "MIT" ]
null
null
null
portal.dsic/examples/python/load_mnist.py
jonandergomez/teaa_lab
a5acf38b683b1d6feb1ff7e12dddfbc6352baf5e
[ "MIT" ]
null
null
null
portal.dsic/examples/python/load_mnist.py
jonandergomez/teaa_lab
a5acf38b683b1d6feb1ff7e12dddfbc6352baf5e
[ "MIT" ]
4
2021-09-22T13:35:24.000Z
2021-09-29T13:41:15.000Z
import os import sys import numpy import pickle from sklearn.datasets import fetch_openml def load_mnist(): # home = os.getenv('HOME') filename = None if home is not None: filename = home + '/scikit_learn_data/openml/openml.org/mnist_784.npz' else: filename = '/tmp/mnist_784.npz' # This...
26.076923
79
0.617994
9327fbf1840538dd959c61ad39436201596a535d
466
py
Python
Leetcode/739-Daily_Temperatures.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
1
2017-08-10T16:59:01.000Z
2017-08-10T16:59:01.000Z
Leetcode/739-Daily_Temperatures.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
Leetcode/739-Daily_Temperatures.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
class Solution(object): def dailyTemperatures(self, T): stack = [] res = [0]*len(T) for i in xrange(len(T)-1, -1, -1): while len(stack) > 0 and T[stack[-1]] <= T[i]: stack.pop() if stack: res[i] = (stack[-1] - i) stack.appen...
27.411765
58
0.474249
ca23cc6c336a31497b9fcdc5ab504fcc228eb340
501
py
Python
pyscript/fpaid.py
polossk/Project-Mizuki-and-Hagane
36f9d57f0de27bd374f07d2f9aacc022c73e8d9d
[ "MIT" ]
1
2017-07-28T06:35:09.000Z
2017-07-28T06:35:09.000Z
pyscript/fpaid.py
polossk/Project-Mizuki-and-Hagane
36f9d57f0de27bd374f07d2f9aacc022c73e8d9d
[ "MIT" ]
null
null
null
pyscript/fpaid.py
polossk/Project-Mizuki-and-Hagane
36f9d57f0de27bd374f07d2f9aacc022c73e8d9d
[ "MIT" ]
null
null
null
from __future__ import print_function from pymongo import MongoClient import sys, time def main(): if len(sys.argv) < 2: sys.exit() numbers = sys.argv[1:] c = MongoClient('mongodb://username:password@localhost:23333/test?authSource=admin') posts = c.test.users for uid in numbers: posts.update({"usershowid": u...
26.368421
85
0.686627
31e04216a8352037c58fdb99027d518aec6817f1
7,542
py
Python
onnxruntime/python/tools/transformers/io_binding_helper.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
669
2018-12-03T22:00:31.000Z
2019-05-06T19:42:49.000Z
onnxruntime/python/tools/transformers/io_binding_helper.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
440
2018-12-03T21:09:56.000Z
2019-05-06T20:47:23.000Z
onnxruntime/python/tools/transformers/io_binding_helper.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
140
2018-12-03T21:15:28.000Z
2019-05-06T18:02:36.000Z
import logging from typing import Dict, List, Union import numpy import torch from onnxruntime import InferenceSession logger = logging.getLogger(__name__) class TypeHelper: @staticmethod def get_input_type(ort_session: InferenceSession, name: str) -> str: for i, input in enumerate(ort_session.get_...
36.259615
132
0.604482
f9481ff4ac73510d5684b11258e173f8a5ce7434
1,990
py
Python
e.py
brunovam/qca_heat_dissipation
9e7c712d1a751cd4bf9e90eefadec6a7f079eb90
[ "Apache-2.0" ]
null
null
null
e.py
brunovam/qca_heat_dissipation
9e7c712d1a751cd4bf9e90eefadec6a7f079eb90
[ "Apache-2.0" ]
null
null
null
e.py
brunovam/qca_heat_dissipation
9e7c712d1a751cd4bf9e90eefadec6a7f079eb90
[ "Apache-2.0" ]
null
null
null
from enum import Enum class ElementType(Enum): Fixed = 0 Input = 1 Line = 2 PortAnd = 3 PortOr = 4 NotAnd = 5 NotOr = 6 Inverter = 7 MajorGate = 8 Output = 9 Trifurcation = 10 class Element(object): values = [] def __init__(self, type, function, clock, cell):...
32.622951
109
0.530151
e58e59048cc8f33b1c5d7a448b3199b008f35f62
2,618
py
Python
myriad/v1/bootstrap-myriad.py
russellthackston/comp-chem-util
116e01ddb0446cea29a26598465331df2f8355d8
[ "MIT" ]
null
null
null
myriad/v1/bootstrap-myriad.py
russellthackston/comp-chem-util
116e01ddb0446cea29a26598465331df2f8355d8
[ "MIT" ]
null
null
null
myriad/v1/bootstrap-myriad.py
russellthackston/comp-chem-util
116e01ddb0446cea29a26598465331df2f8355d8
[ "MIT" ]
null
null
null
import argparse import glob import importlib import libmyriad import logging import myriad import os import requests import shutil import subprocess import sys import time class Bootstrap: def __init__(self): self.server = 'https://raw.githubusercontent.com/russellthackston/comp-chem-util/master/myriad' self.ver...
35.863014
157
0.737586
27b5191123042112501577a524d67dc2e3ec8107
1,722
py
Python
examples/Python/Basic/visualization.py
martinruenz/Open3D
30983e89956dcd233531870ca20e87e6769ba903
[ "MIT" ]
3
2018-04-24T21:17:24.000Z
2018-06-02T12:44:06.000Z
examples/Python/Basic/visualization.py
martinruenz/Open3D
30983e89956dcd233531870ca20e87e6769ba903
[ "MIT" ]
null
null
null
examples/Python/Basic/visualization.py
martinruenz/Open3D
30983e89956dcd233531870ca20e87e6769ba903
[ "MIT" ]
1
2020-03-31T14:30:40.000Z
2020-03-31T14:30:40.000Z
# Open3D: www.open3d.org # The MIT License (MIT) # See license file or visit www.open3d.org for details # examples/Python/Basic/visualization.py import numpy as np from open3d import * if __name__ == "__main__": print("Load a ply point cloud, print it, and render it") pcd = read_point_cloud("../../TestData/...
38.266667
80
0.654472
f38b17b70d6fa6560b75ed3d130644df64c9a0d9
39,627
py
Python
tensorflow_probability/python/distributions/vector_diffeomixture.py
oahziur/probability
11645be43d2845da65a4fbafde4cfa95780280c0
[ "Apache-2.0" ]
1
2020-04-29T11:29:25.000Z
2020-04-29T11:29:25.000Z
tensorflow_probability/python/distributions/vector_diffeomixture.py
jinxin0924/probability
ca14fa8924749593fd21e2b6389551f964527eec
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/vector_diffeomixture.py
jinxin0924/probability
ca14fa8924749593fd21e2b6389551f964527eec
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
41.192308
109
0.65357
15c860698611ba23f1e9ea59f8e968dbd9a759da
22,831
py
Python
sdks/python/apache_beam/runners/portability/portable_runner.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
1
2020-03-24T10:56:15.000Z
2020-03-24T10:56:15.000Z
sdks/python/apache_beam/runners/portability/portable_runner.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
20
2020-01-10T15:45:16.000Z
2020-11-13T16:13:31.000Z
sdks/python/apache_beam/runners/portability/portable_runner.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
1
2020-03-24T08:34:38.000Z
2020-03-24T08:34:38.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 us...
37.799669
146
0.706101
b52e8802be88fbbb4f3c9eaa7cd611bd1a7fe0fb
4,252
py
Python
TrainFunctions.py
adity5/truecaser
8151dbb0260478e59868a0eff47a51eead72ce4e
[ "Apache-2.0" ]
153
2016-06-09T13:48:30.000Z
2022-03-22T15:35:16.000Z
TrainFunctions.py
adity5/truecaser
8151dbb0260478e59868a0eff47a51eead72ce4e
[ "Apache-2.0" ]
6
2016-12-07T09:31:51.000Z
2020-09-21T15:14:22.000Z
TrainFunctions.py
adity5/truecaser
8151dbb0260478e59868a0eff47a51eead72ce4e
[ "Apache-2.0" ]
39
2016-11-23T17:03:57.000Z
2021-10-17T03:11:30.000Z
import nltk def getCasing(word): """ Returns the casing of a word""" if len(word) == 0: return 'other' elif word.isdigit(): #Is a digit return 'numeric' elif word.islower(): #All lower case return 'allLower' elif word.isupper(): #All upper case return 'allUpper' ...
33.21875
132
0.572907
b24a5dac496e214992d44c25f5a97f2717bf7797
19,576
py
Python
google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/services/versions/transports/grpc_asyncio.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/services/versions/transports/grpc_asyncio.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/services/versions/transports/grpc_asyncio.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
44.694064
110
0.631845
15b39fb822ccb681b82457d29d3b556fd6605007
34,433
py
Python
pruning.py
teco-kit/TFL2uC
6d304e74d11f56cfec663a324702c7195797ed70
[ "Apache-2.0" ]
7
2021-08-02T08:44:14.000Z
2022-02-02T11:02:36.000Z
pruning.py
teco-kit/TFL2uC
6d304e74d11f56cfec663a324702c7195797ed70
[ "Apache-2.0" ]
2
2021-07-28T08:33:04.000Z
2021-08-10T13:53:43.000Z
pruning.py
teco-kit/TFL2uC
6d304e74d11f56cfec663a324702c7195797ed70
[ "Apache-2.0" ]
1
2021-07-28T08:32:21.000Z
2021-07-28T08:32:21.000Z
''' Copyright [2020] Hahn-Schickard-Gesellschaft für angewandte Forschung e.V., Daniel Konegen + Marcus Rueb Copyright [2021] Karlsruhe Institute of Technology, Daniel Konegen SPDX-License-Identifier: Apache-2.0 ====================================================================================================...
44.718182
223
0.659251
aa3f4c3fce134fcee931f44a2e9c8d3c2d324d5f
1,171
py
Python
examples/dagster_examples/intro_tutorial/basics/e04_quality/inputs_typed.py
naralogics/dagster
16d599daa380b800149474fcaff2311b3f8f269a
[ "Apache-2.0" ]
null
null
null
examples/dagster_examples/intro_tutorial/basics/e04_quality/inputs_typed.py
naralogics/dagster
16d599daa380b800149474fcaff2311b3f8f269a
[ "Apache-2.0" ]
null
null
null
examples/dagster_examples/intro_tutorial/basics/e04_quality/inputs_typed.py
naralogics/dagster
16d599daa380b800149474fcaff2311b3f8f269a
[ "Apache-2.0" ]
null
null
null
import csv import os from dagster import execute_pipeline, pipeline, solid @solid def read_csv(context, csv_path: str): csv_path = os.path.join(os.path.dirname(__file__), csv_path) with open(csv_path, 'r') as fd: lines = [row for row in csv.DictReader(fd)] context.log.info('Read {n_lines} lines'...
23.897959
75
0.622545
0b4b1eaef45d4b0875d816a399f01462a13dd1aa
540
py
Python
diffeqpy/tests/test_dde.py
jlapeyre/diffeqpy
29fda0fcad6d590f1ac08e4d41ca9776522e6265
[ "MIT" ]
239
2020-03-29T15:59:42.000Z
2022-03-29T22:55:20.000Z
diffeqpy/tests/test_dde.py
jlapeyre/diffeqpy
29fda0fcad6d590f1ac08e4d41ca9776522e6265
[ "MIT" ]
43
2020-03-29T07:43:59.000Z
2022-03-28T10:56:07.000Z
diffeqpy/tests/test_dde.py
jlapeyre/diffeqpy
29fda0fcad6d590f1ac08e4d41ca9776522e6265
[ "MIT" ]
19
2020-04-06T23:33:51.000Z
2022-01-18T00:28:54.000Z
from julia import Main from .. import de def test(): f = Main.eval(""" function f(du, u, h, p, t) du[1] = 1.1/(1 + sqrt(10)*(h(p, t-20)[1])^(5/4)) - 10*u[1]/(1 + 40*u[2]) du[2] = 100*u[1]/(1 + 40*u[2]) - 2.43*u[2] end""") u0 = [1.05767027/3, 1.030713491/3] h = Main.eval(""" funct...
22.5
78
0.516667
27ed7320042560d7629243175cd86ed0486a16eb
1,182
py
Python
speech_recognition_system/speech_enviroment.py
RonaldsonBellande/ML_robot_command_recognition
345ab7b07a02f09e0f2be470db18a0ff888f939b
[ "Apache-2.0" ]
null
null
null
speech_recognition_system/speech_enviroment.py
RonaldsonBellande/ML_robot_command_recognition
345ab7b07a02f09e0f2be470db18a0ff888f939b
[ "Apache-2.0" ]
null
null
null
speech_recognition_system/speech_enviroment.py
RonaldsonBellande/ML_robot_command_recognition
345ab7b07a02f09e0f2be470db18a0ff888f939b
[ "Apache-2.0" ]
null
null
null
from header_imports import * class classification_enviroment(gym.Env): def __init__(self, number_classes, data_set, image_per_episode): self.number_classes = number_classes self.images_per_episode = image_per_episode self.step_count = 0 self.X, self.Y = data_set[0], data_set[1] ...
29.55
115
0.63621
7417d92d478591ca552d129e2e2101f8ba36b842
952
py
Python
h5pxe-app/h5pxe/urls.py
vmworld-hackathon-2017/barcelona-team-3
8c29ed1d5bc4f58b166ecb5c87728ef52a14471a
[ "MIT" ]
null
null
null
h5pxe-app/h5pxe/urls.py
vmworld-hackathon-2017/barcelona-team-3
8c29ed1d5bc4f58b166ecb5c87728ef52a14471a
[ "MIT" ]
null
null
null
h5pxe-app/h5pxe/urls.py
vmworld-hackathon-2017/barcelona-team-3
8c29ed1d5bc4f58b166ecb5c87728ef52a14471a
[ "MIT" ]
null
null
null
"""h5pxe URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
38.08
92
0.697479
d6f0d05ca6b457f8a930c8895954aa861d0a9aa1
2,585
py
Python
earthstar/effects/animations/phase_spinners_4.py
hodgestar/earthstar-control-software
52c02338ad21907a78d9814063d9845b0e64b91e
[ "MIT" ]
2
2018-06-01T11:05:44.000Z
2019-07-13T14:15:33.000Z
earthstar/effects/animations/phase_spinners_4.py
hodgestar/earthstar-control-software
52c02338ad21907a78d9814063d9845b0e64b91e
[ "MIT" ]
1
2018-04-11T17:29:04.000Z
2018-04-11T17:29:04.000Z
earthstar/effects/animations/phase_spinners_4.py
hodgestar/earthstar-control-software
52c02338ad21907a78d9814063d9845b0e64b91e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ A set of points that chase a lead point in a "sinusoidal" oscillation around the ring """ import copy import numpy as np from ..engine import Animation class PhaseSpinners4(Animation): ANIMATION = __name__ ARGS = { } def ring_render(self, colour_1, colour_2): ...
34.466667
76
0.519923
bf607f478a1ad9ef9743f0ed8b75d6f7648c8751
11,247
py
Python
plugin.video.fanfilm/resources/lib/resolvers/realdebrid.py
mrknow/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
105
2015-11-28T00:03:11.000Z
2021-05-05T20:47:42.000Z
plugin.video.fanfilm/resources/lib/resolvers/realdebrid.py
rrosajp/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
918
2015-11-28T14:12:40.000Z
2022-03-23T20:24:49.000Z
plugin.video.fanfilm/resources/lib/resolvers/realdebrid.py
rrosajp/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
111
2015-12-01T14:06:10.000Z
2020-08-01T10:44:39.000Z
# -*- coding: utf-8 -*- ''' Exodus Add-on Copyright (C) 2016 lambda 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 the License, or (at your option) any l...
37.996622
269
0.605228
b33b83ce5c92b712750f8bd14374a7c01e873b42
213
py
Python
routes.py
JeremyRubin/tornado-trails
68b58e0b8dd455df016cf4b9f62d0f50b692c69c
[ "MIT" ]
1
2017-01-28T14:15:55.000Z
2017-01-28T14:15:55.000Z
routes.py
JeremyRubin/tornado-trails
68b58e0b8dd455df016cf4b9f62d0f50b692c69c
[ "MIT" ]
null
null
null
routes.py
JeremyRubin/tornado-trails
68b58e0b8dd455df016cf4b9f62d0f50b692c69c
[ "MIT" ]
null
null
null
from handlers_list import * handlers = [ #DO NOT MODIFY ANYTHING PRECEDING THIS LINE... Seriously! (r"/?", MainPage), (r"/login/?", LoginHandler), (r"/logout/?", LogoutHandler), (r"/add/user/?", AddUserHandler), ]
26.625
57
0.680751
88dc8c14000a3267582b781a4dfac0d029d5de79
2,130
py
Python
app_name/models/models.py
Mohammad-Kabajah/django_project
6598668dbc4f8d777ccf716464d259c49d881cd8
[ "Apache-2.0" ]
null
null
null
app_name/models/models.py
Mohammad-Kabajah/django_project
6598668dbc4f8d777ccf716464d259c49d881cd8
[ "Apache-2.0" ]
null
null
null
app_name/models/models.py
Mohammad-Kabajah/django_project
6598668dbc4f8d777ccf716464d259c49d881cd8
[ "Apache-2.0" ]
null
null
null
from common.libs.harri_base_model import HBaseModel from sqlalchemy import Column, String, Integer, Date, Enum, ForeignKey, Boolean, DateTime, DECIMAL, Numeric from sqlalchemy.orm import relationship class Bus(HBaseModel): __tablename__ = 'bus' category = Column(Enum('MINI', 'COACH'), default=None) ...
38.035714
123
0.719249
293da9cc8429b662051c250bd58d4ba145d739cb
2,741
py
Python
electrum_audax/gui/qt/fee_slider.py
theaudaxproject/electrum-audax
614845e536a21cb593376bdde7df6163b651ab21
[ "MIT" ]
null
null
null
electrum_audax/gui/qt/fee_slider.py
theaudaxproject/electrum-audax
614845e536a21cb593376bdde7df6163b651ab21
[ "MIT" ]
null
null
null
electrum_audax/gui/qt/fee_slider.py
theaudaxproject/electrum-audax
614845e536a21cb593376bdde7df6163b651ab21
[ "MIT" ]
2
2019-10-08T06:52:54.000Z
2019-10-24T03:33:20.000Z
import threading from PyQt5.QtGui import QCursor from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QSlider, QToolTip from electrum_audax.i18n import _ class FeeSlider(QSlider): def __init__(self, window, config, callback): QSlider.__init__(self, Qt.Horizontal) self.config = config ...
33.839506
123
0.568771
74e998dfe2e3d19eb172dfbe38173ee444a621e7
2,477
py
Python
pdm/cli/commands/init.py
frafra/pdm
12c5c4f91bbb7260be7d93f3e3914ba708309032
[ "MIT" ]
1,731
2020-01-21T10:17:37.000Z
2022-03-31T22:01:27.000Z
pdm/cli/commands/init.py
frafra/pdm
12c5c4f91bbb7260be7d93f3e3914ba708309032
[ "MIT" ]
562
2020-01-20T04:53:14.000Z
2022-03-31T23:28:41.000Z
pdm/cli/commands/init.py
frafra/pdm
12c5c4f91bbb7260be7d93f3e3914ba708309032
[ "MIT" ]
86
2020-02-06T11:20:15.000Z
2022-03-30T13:28:10.000Z
import argparse import click from pdm import termui from pdm.cli import actions from pdm.cli.commands.base import BaseCommand from pdm.project import Project from pdm.utils import get_user_email_from_git class Command(BaseCommand): """Initialize a pyproject.toml for PDM""" @staticmethod def ask(questio...
34.887324
88
0.60113
a10f56ef13c99e8c8380816f0119175cfc497f8d
2,674
py
Python
atlasnet_v2/adjustment_modules.py
RobinBaumann/TF-AtlasNetV2
32bd962407becacc9b9bee6c76c96216818e4c89
[ "MIT" ]
null
null
null
atlasnet_v2/adjustment_modules.py
RobinBaumann/TF-AtlasNetV2
32bd962407becacc9b9bee6c76c96216818e4c89
[ "MIT" ]
null
null
null
atlasnet_v2/adjustment_modules.py
RobinBaumann/TF-AtlasNetV2
32bd962407becacc9b9bee6c76c96216818e4c89
[ "MIT" ]
null
null
null
""" Created by Robin Baumann <mail@robin-baumann.com> on May 03, 20. """ import tensorflow as tf from tensorflow.keras import layers from .utils import tf_utils class LinearAdjustment(layers.Layer): """ Implementation of the linear adjustment module. """ def __init__(self, dimensions=3, n_latent=1024): ...
30.044944
75
0.568437
0d78f57f156db58f4797b1d7bc9b14e99e6c79f9
584
py
Python
project/proj3_fly/src/RobotControl.py
cyoahs/robotics_tutorial
3aed846c5e95eb32dbcdeebac0b22e54cd74ea02
[ "MIT" ]
1
2021-12-23T13:05:26.000Z
2021-12-23T13:05:26.000Z
project/proj3_fly/src/RobotControl.py
cyoahs/robotics_tutorial
3aed846c5e95eb32dbcdeebac0b22e54cd74ea02
[ "MIT" ]
null
null
null
project/proj3_fly/src/RobotControl.py
cyoahs/robotics_tutorial
3aed846c5e95eb32dbcdeebac0b22e54cd74ea02
[ "MIT" ]
null
null
null
import pybullet as p # import AnswerByTA def generateTraj(robotId): # work in this function to make a plan before actual control # the output can be in any data structure you like plan = None return plan def realTimeControl(robotId, plan): # work in this function to calculate real time control sig...
30.736842
66
0.724315
1eb7a2f85ebfaa62c905a9fe9988713ff943b854
3,404
py
Python
app/app/settings.py
nikhilbadyal/recipe-api-django
19a28437c8a80850f6a06140548636da7535f0f3
[ "MIT" ]
null
null
null
app/app/settings.py
nikhilbadyal/recipe-api-django
19a28437c8a80850f6a06140548636da7535f0f3
[ "MIT" ]
null
null
null
app/app/settings.py
nikhilbadyal/recipe-api-django
19a28437c8a80850f6a06140548636da7535f0f3
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 4.0.1. For more information on this file, see https://docs.djangoproject.com/en/4.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ import os from p...
25.787879
91
0.693302
d37129168232153423b6f3174ef24d45668bc03a
273
py
Python
config/testing.py
natnaka/pali-dict-v2
eaeaf2170663dd0db82f0331ae7aa714962f2787
[ "MIT" ]
null
null
null
config/testing.py
natnaka/pali-dict-v2
eaeaf2170663dd0db82f0331ae7aa714962f2787
[ "MIT" ]
null
null
null
config/testing.py
natnaka/pali-dict-v2
eaeaf2170663dd0db82f0331ae7aa714962f2787
[ "MIT" ]
null
null
null
# encoding: utf-8 from .default import Config class TestingConfig(Config): # App config TESTING = True # Disable csrf while testing WTF_CSRF_ENABLED = False # Db config, for in-memory db SQLALCHEMY_DATABASE_URI = "sqlite://" USE_STUB = True
18.2
41
0.677656
3adbe378b99f7623211287065955fe411f58d9a8
2,038
py
Python
setup.py
apluslms/django-lti-login
c968ea05358a0aa6e382bdffd58c42bf215fb041
[ "MIT" ]
2
2018-06-05T12:30:04.000Z
2020-09-14T12:04:18.000Z
setup.py
apluslms/django-lti-login
c968ea05358a0aa6e382bdffd58c42bf215fb041
[ "MIT" ]
null
null
null
setup.py
apluslms/django-lti-login
c968ea05358a0aa6e382bdffd58c42bf215fb041
[ "MIT" ]
2
2021-06-23T14:09:44.000Z
2021-09-09T14:30:20.000Z
#!/usr/bin/env python3 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os.path import abspath, dirname, join here = abspa...
31.84375
76
0.650638
8d953bbd9dc4db72367a9508213224e880bea0c3
5,943
py
Python
googletest/test/gtest_help_test.py
reMarkableAS/googletest
d9c309fdab807b716c2cf4d4a42989b8c34f712a
[ "BSD-3-Clause" ]
17,809
2020-05-19T15:03:46.000Z
2022-03-31T16:31:13.000Z
googletest/test/gtest_help_test.py
reMarkableAS/googletest
d9c309fdab807b716c2cf4d4a42989b8c34f712a
[ "BSD-3-Clause" ]
1,413
2020-05-19T15:26:48.000Z
2022-03-31T23:58:56.000Z
googletest/test/gtest_help_test.py
reMarkableAS/googletest
d9c309fdab807b716c2cf4d4a42989b8c34f712a
[ "BSD-3-Clause" ]
1,084
2020-05-19T15:37:58.000Z
2022-03-30T17:45:24.000Z
#!/usr/bin/env python # # Copyright 2009, Google Inc. # 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 of source code must retain the above copyright # notice, this list...
34.352601
75
0.727579
2d1d84ff10e01d3910cddc3268aa79ad2f6278e2
45
py
Python
run_dev.py
Boscillator/PyBolt-Server
f43623c60ab3f91b21e7661501556ce57995b290
[ "MIT" ]
null
null
null
run_dev.py
Boscillator/PyBolt-Server
f43623c60ab3f91b21e7661501556ce57995b290
[ "MIT" ]
2
2018-10-14T19:12:06.000Z
2018-10-14T19:15:26.000Z
run_dev.py
Boscillator/PyBolt
f43623c60ab3f91b21e7661501556ce57995b290
[ "MIT" ]
null
null
null
from PyBolt import app app.run(debug=True)
15
23
0.755556
358e15ead37fd471880471c5a84bb060029e993e
19,116
py
Python
sympy/physics/mechanics/system.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/physics/mechanics/system.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/physics/mechanics/system.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
from sympy.core.backend import eye, Matrix, zeros from sympy.physics.mechanics import dynamicsymbols from sympy.physics.mechanics.functions import find_dynamicsymbols __all__ = ['SymbolicSystem'] class SymbolicSystem: """SymbolicSystem is a class that contains all the information about a system in a...
42.860987
80
0.627066
db927b27740d8bc0caab91ae636a10deb7b64e12
3,060
py
Python
create_vocabulary.py
cayl-crypto/video-captioning
a1ec0d72e2279d4700d32ce17d8229865539c537
[ "Apache-2.0" ]
null
null
null
create_vocabulary.py
cayl-crypto/video-captioning
a1ec0d72e2279d4700d32ce17d8229865539c537
[ "Apache-2.0" ]
null
null
null
create_vocabulary.py
cayl-crypto/video-captioning
a1ec0d72e2279d4700d32ce17d8229865539c537
[ "Apache-2.0" ]
null
null
null
import unicodedata import re import os from tqdm import tqdm import numpy as np import json # Default word tokens PAD_token = 0 # Used for padding short sentences SOC_token = 1 # Start-of-sentence token EOC_token = 2 # End-of-sentence token class Voc: def __init__(self): self.trimmed = False se...
27.567568
89
0.597712
5474543bf44d11fc91371d4f3b99ab7d84abd158
2,338
py
Python
configs/_base_/datasets/youtube_vis.py
BigBen0519/mmtracking
61509b301ccbc2ab14f82a682b94c56f82ce09de
[ "Apache-2.0" ]
2,226
2021-01-04T11:13:01.000Z
2022-03-31T11:49:59.000Z
configs/_base_/datasets/youtube_vis.py
BigBen0519/mmtracking
61509b301ccbc2ab14f82a682b94c56f82ce09de
[ "Apache-2.0" ]
300
2021-01-04T11:36:59.000Z
2022-03-31T07:48:28.000Z
configs/_base_/datasets/youtube_vis.py
BigBen0519/mmtracking
61509b301ccbc2ab14f82a682b94c56f82ce09de
[ "Apache-2.0" ]
333
2021-01-04T11:35:12.000Z
2022-03-31T08:11:50.000Z
# dataset settings img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) train_pipeline = [ dict(type='LoadMultiImagesFromFile', to_float32=True), dict( type='SeqLoadAnnotations', with_bbox=True, with_mask=True, with_track=True), d...
33.4
79
0.627032
862dccec9d8c6d87d0bf759a66a1ab2359507a7f
722
py
Python
workers/data_refinery_workers/processors/management/commands/delete_local_files.py
cgreene/refinebio
fe75e42f2963d60c4307806cba11520754547190
[ "BSD-3-Clause" ]
null
null
null
workers/data_refinery_workers/processors/management/commands/delete_local_files.py
cgreene/refinebio
fe75e42f2963d60c4307806cba11520754547190
[ "BSD-3-Clause" ]
null
null
null
workers/data_refinery_workers/processors/management/commands/delete_local_files.py
cgreene/refinebio
fe75e42f2963d60c4307806cba11520754547190
[ "BSD-3-Clause" ]
null
null
null
import sys from django.core.management.base import BaseCommand from data_refinery_common.logging import get_and_configure_logger from data_refinery_common.models import ( OriginalFile ) logger = get_and_configure_logger(__name__) class Command(BaseCommand): def handle(self, *args, **options): """ ...
27.769231
126
0.642659
7d0104feb000f807cdab0cac7749a57b39f40a11
152
py
Python
python3-28/test.py
t7y/python3
ea3755cb5f41f60587bda379feea9e5f4b8c111b
[ "Apache-2.0" ]
25
2020-10-29T21:07:00.000Z
2022-03-22T08:20:34.000Z
python3-28/test.py
t7y/python3
ea3755cb5f41f60587bda379feea9e5f4b8c111b
[ "Apache-2.0" ]
null
null
null
python3-28/test.py
t7y/python3
ea3755cb5f41f60587bda379feea9e5f4b8c111b
[ "Apache-2.0" ]
14
2020-12-03T00:42:11.000Z
2022-03-21T18:03:49.000Z
import codefile as code #Determine how the script was run using "__name__" print(f'Test Name: {__name__}') print(f'Test File: {__file__}') code.test()
21.714286
50
0.736842
e9660ebe9ad7fd9a82eb56d42efa0d926e1d4c32
8,921
py
Python
scripts/deprecated/test55.double_X_SV3_T8.py
johnpzh/parallel_ANNS
36639ddfba66bb38c04a4c3bbccb05c2d30488eb
[ "MIT" ]
4
2020-06-10T02:38:23.000Z
2022-03-09T08:25:49.000Z
scripts/deprecated/test55.double_X_SV3_T8.py
johnpzh/parallel_ANNS
36639ddfba66bb38c04a4c3bbccb05c2d30488eb
[ "MIT" ]
null
null
null
scripts/deprecated/test55.double_X_SV3_T8.py
johnpzh/parallel_ANNS
36639ddfba66bb38c04a4c3bbccb05c2d30488eb
[ "MIT" ]
1
2022-03-09T08:25:52.000Z
2022-03-09T08:25:52.000Z
#! python3 import os import sys import subprocess if len(sys.argv) < 6: print(f"{sys.argv[0]} <data_dir> <tag> <L_low> <L_up> <P_target> [<P_target> ...]") # print(f"{sys.argv[0]} <data_dir> <tag>") exit() base_dir = sys.argv[1] tag = sys.argv[2] # num_t = int(sys.argv[3]) L_lower = int(sys.argv[3]) L_upp...
47.452128
135
0.657998
28309d98cae82a08968102f496b130c7d5c549fb
1,885
py
Python
src/inworldz/maestro/MaestroStore.py
IslandzVW/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
3
2016-02-20T00:47:52.000Z
2018-07-27T22:57:36.000Z
src/inworldz/maestro/MaestroStore.py
IslandzVW/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
1
2016-07-29T07:19:01.000Z
2016-07-29T07:19:01.000Z
src/inworldz/maestro/MaestroStore.py
InWorldz/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
2
2018-04-09T18:15:18.000Z
2018-05-20T16:14:28.000Z
#============================================================================ # This library is free software; you can redistribute it and/or # modify it under the terms of version 2.1 of the GNU Lesser General Public # License as published by the Free Software Foundation. # # This library is distributed in the hope th...
31.416667
77
0.6
3e180199a55d99e399f2dd91378048b1b9552007
5,794
py
Python
test/test_kernel.py
agricolab/pyArtacs
ae532575ccdb3b5816fe93449c026ba004828759
[ "X11" ]
null
null
null
test/test_kernel.py
agricolab/pyArtacs
ae532575ccdb3b5816fe93449c026ba004828759
[ "X11" ]
null
null
null
test/test_kernel.py
agricolab/pyArtacs
ae532575ccdb3b5816fe93449c026ba004828759
[ "X11" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Test module for pyArtacs """ from artacs.kernel import ( create_kernel, _estimate_prms_from_kernel, filter_1d, apply_kernel, ) from artacs.kernel import CombKernel from artacs.template import StepwiseRemover import numpy as np #%% def test_kernel(): ...
33.491329
88
0.553331
38700e90804144afde8a9d66376773f1828ca09f
10,415
py
Python
gui/kivy/uix/dialogs/settings.py
NunoEdgarGFlowHub/qtum-electrum
8e37396d77696c162015ed8c0677d533d82fbc23
[ "MIT" ]
null
null
null
gui/kivy/uix/dialogs/settings.py
NunoEdgarGFlowHub/qtum-electrum
8e37396d77696c162015ed8c0677d533d82fbc23
[ "MIT" ]
null
null
null
gui/kivy/uix/dialogs/settings.py
NunoEdgarGFlowHub/qtum-electrum
8e37396d77696c162015ed8c0677d533d82fbc23
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.factory import Factory from kivy.properties import ObjectProperty from kivy.lang import Builder from qtum_electrum.util import base_units from qtum_electrum.i18n import languages from qtum_electrum_gui.kivy.i18n import _ from qtum_electrum.plugins import run_hook from qtum_electrum i...
43.577406
157
0.569275
7d5a184fef7a36e62d5f9b27da65c350395d5156
3,466
py
Python
scripts/mht_abhay/mwis.py
VegaVK/flir_adk_multi
8055bc7e7fa78ff4d7fd0a77beba8ef7c5f3e1b4
[ "MIT" ]
2
2020-02-24T20:18:57.000Z
2020-06-07T21:16:17.000Z
scripts/mht_abhay/mwis.py
VegaVK/flir_adk_multi
8055bc7e7fa78ff4d7fd0a77beba8ef7c5f3e1b4
[ "MIT" ]
null
null
null
scripts/mht_abhay/mwis.py
VegaVK/flir_adk_multi
8055bc7e7fa78ff4d7fd0a77beba8ef7c5f3e1b4
[ "MIT" ]
null
null
null
import numpy as np import operator import random def main(): G = graph() class graph(): def __init__(self): pass def mwis(self,g): complement = g # complement = np.array([[0,0,0,0,1,1,1,1],[0,0,0,0,1,1,1,1],[0,0,0,0,0,0,1,1],[0,0,0,0,0,0,1,1],[1,1,0,0,0,0,0,1],[1,1,0,0...
27.728
178
0.479227
51566fc24844479fb315c36be37d12fa5a243eac
46,336
py
Python
modules/python/src2/gen2.py
Napalys/opencv
f612e26ffe761fe9dbc26facaef2074d56e19c54
[ "BSD-3-Clause" ]
null
null
null
modules/python/src2/gen2.py
Napalys/opencv
f612e26ffe761fe9dbc26facaef2074d56e19c54
[ "BSD-3-Clause" ]
null
null
null
modules/python/src2/gen2.py
Napalys/opencv
f612e26ffe761fe9dbc26facaef2074d56e19c54
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import hdr_parser, sys, re, os from string import Template from pprint import pprint from collections import namedtuple if sys.version_info[0] >= 3: from io import StringIO else: from cStringIO import StringIO forbidden_arg_types = ["void*"] ignor...
39.367884
159
0.558443
c278eee9c133df92c387d037d5c1f7bf9f71ae8a
32,488
py
Python
spyder/plugins/outlineexplorer/widgets.py
jhondevcode/spyder
69d53878c217b08cf148b0a1ba185bba31932ebc
[ "MIT" ]
7,956
2015-02-17T01:19:09.000Z
2022-03-31T21:52:15.000Z
spyder/plugins/outlineexplorer/widgets.py
violethaze74-jazzededtech/spyder
c2b51454e1a03031aeba34c65e4ab9ffaba7740d
[ "MIT" ]
16,326
2015-02-16T23:15:21.000Z
2022-03-31T23:34:34.000Z
spyder/plugins/outlineexplorer/widgets.py
violethaze74-jazzededtech/spyder
c2b51454e1a03031aeba34c65e4ab9ffaba7740d
[ "MIT" ]
1,918
2015-02-20T19:26:26.000Z
2022-03-31T19:03:25.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Outline explorer widgets.""" # Standard library imports import bisect import os.path as osp import uuid # Third party imports from intervaltree imp...
36.876277
83
0.580861
ea3a2ea8cec8f53c52e192b78c3ab73b0ad350dc
31,775
py
Python
src/twisted/conch/scripts/cftp.py
clokep/twisted
79a26b0aa4b1b81b46cc64d203644b35e455e46b
[ "Unlicense", "MIT" ]
null
null
null
src/twisted/conch/scripts/cftp.py
clokep/twisted
79a26b0aa4b1b81b46cc64d203644b35e455e46b
[ "Unlicense", "MIT" ]
null
null
null
src/twisted/conch/scripts/cftp.py
clokep/twisted
79a26b0aa4b1b81b46cc64d203644b35e455e46b
[ "Unlicense", "MIT" ]
1
2021-12-13T10:46:13.000Z
2021-12-13T10:46:13.000Z
# -*- test-case-name: twisted.conch.test.test_cftp -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Implementation module for the I{cftp} command. """ import fcntl import fnmatch import getpass import glob import os import pwd import stat import struct import sys import tty from twisted...
33.202717
99
0.557482
4b007c19fc7baf2554e64aa9836af345623fc7f4
6,075
py
Python
gpvdm_gui/gui/command_args.py
roderickmackenzie/gpvdm
914fd2ee93e7202339853acaec1d61d59b789987
[ "BSD-3-Clause" ]
12
2016-09-13T08:58:13.000Z
2022-01-17T07:04:52.000Z
gpvdm_gui/gui/command_args.py
roderickmackenzie/gpvdm
914fd2ee93e7202339853acaec1d61d59b789987
[ "BSD-3-Clause" ]
3
2017-11-11T12:33:02.000Z
2019-03-08T00:48:08.000Z
gpvdm_gui/gui/command_args.py
roderickmackenzie/gpvdm
914fd2ee93e7202339853acaec1d61d59b789987
[ "BSD-3-Clause" ]
6
2019-01-03T06:17:12.000Z
2022-01-01T15:59:00.000Z
# # General-purpose Photovoltaic Device Model - a drift diffusion base/Shockley-Read-Hall # model for 1st, 2nd and 3rd generation solar cells. # Copyright (C) 2008-2022 Roderick C. I. MacKenzie r.c.i.mackenzie at googlemail.com # # https://www.gpvdm.com # # This program is free software; you can redist...
39.967105
186
0.749794
96d18212cbb5a3a610236dcd2c4f6f2477947f0f
3,422
py
Python
app/recipe/views.py
Xzib/recipe-app-api
175e9de2066a19e2ce8a84ec5e718e71e65e6b6b
[ "MIT" ]
null
null
null
app/recipe/views.py
Xzib/recipe-app-api
175e9de2066a19e2ce8a84ec5e718e71e65e6b6b
[ "MIT" ]
null
null
null
app/recipe/views.py
Xzib/recipe-app-api
175e9de2066a19e2ce8a84ec5e718e71e65e6b6b
[ "MIT" ]
null
null
null
from rest_framework.decorators import action from rest_framework.response import Response from rest_framework import viewsets, mixins, status from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from core.models import Tag, Ingredients, Recipe from reci...
29.247863
74
0.666277
99b0d713d9ed24ca2156f2aaeb3ab72274c7d377
888
py
Python
w3r-basic-1-51.py
WLi-syd/python
e8bd743535a1eca3493ea7f74a7475d1fb49de98
[ "CNRI-Python" ]
null
null
null
w3r-basic-1-51.py
WLi-syd/python
e8bd743535a1eca3493ea7f74a7475d1fb49de98
[ "CNRI-Python" ]
null
null
null
w3r-basic-1-51.py
WLi-syd/python
e8bd743535a1eca3493ea7f74a7475d1fb49de98
[ "CNRI-Python" ]
null
null
null
# 51. Write a Python program to determine profiling of Python programs. # Question: # Input: # Output: # Solution: https://www.w3resource.com/python-exercises/python-basic-exercise-51.php # Ideas: """ 1. A profile is a set of statistics that describes how often and for how long various parts of the program executed...
20.181818
186
0.70045
ce6a699c83c5e92acff2a4b2f4ca3d98f17ae907
1,348
py
Python
directsync/file_comparison.py
fossabot/directsync
81237d31ff462cb5d964ec6d73d1d352f524416a
[ "MIT" ]
null
null
null
directsync/file_comparison.py
fossabot/directsync
81237d31ff462cb5d964ec6d73d1d352f524416a
[ "MIT" ]
null
null
null
directsync/file_comparison.py
fossabot/directsync
81237d31ff462cb5d964ec6d73d1d352f524416a
[ "MIT" ]
null
null
null
from binaryornot.check import is_binary def _is_file_text_test1(file_path): ''' Try to read the first few bytes in text mode. ''' try: with open(file_path, "r") as f: f.read(1024) return True except UnicodeDecodeError: return False def _is_file_text_test2(file...
24.962963
69
0.590504
a58ef523e7ea4e4011b9776f68368aff401417b5
12,925
py
Python
strawberryfields/backends/gaussianbackend/backend.py
Acidburn0zzz/strawberryfields
203a16f65f91817b91f9419a4d69f6e01daecf3c
[ "Apache-2.0" ]
1
2018-12-20T03:12:39.000Z
2018-12-20T03:12:39.000Z
strawberryfields/backends/gaussianbackend/backend.py
Acidburn0zzz/strawberryfields
203a16f65f91817b91f9419a4d69f6e01daecf3c
[ "Apache-2.0" ]
null
null
null
strawberryfields/backends/gaussianbackend/backend.py
Acidburn0zzz/strawberryfields
203a16f65f91817b91f9419a4d69f6e01daecf3c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
35.508242
124
0.604023
1d116eb0d0809ca240e2b66fb86ebb3c034362a3
5,843
py
Python
lib/info_epd/waveshare_epd/epd2in9bc.py
ibnadam/info_epd
3838cc30187dc10fd2c79fba2d51357d3dbbf47a
[ "MIT" ]
32
2020-09-26T07:54:15.000Z
2021-09-29T20:29:35.000Z
lib/info_epd/waveshare_epd/epd2in9bc.py
ibnadam/info_epd
3838cc30187dc10fd2c79fba2d51357d3dbbf47a
[ "MIT" ]
26
2020-01-07T21:50:06.000Z
2022-03-17T07:29:26.000Z
modules/waveshare_epd/epd2in9bc.py
lecodevert/air_tower
e2598c731fc498b733fdbd3da45497d722cdc711
[ "MIT" ]
14
2020-09-22T09:48:51.000Z
2021-12-16T15:35:46.000Z
# ***************************************************************************** # * | File : epd2in9bc.py # * | Author : Waveshare team # * | Function : Electronic paper driver # * | Info : # *---------------- # * | This version: V4.0 # * | Date : 2019-06-20 # # | Info : ...
37.455128
84
0.583947
9b13de7da1ccf51befd4df17a5ecf46c2ffc075c
4,039
py
Python
sharpy-sc2/sharpy/combat/protoss/micro_stalkers.py
ProfessorQu/Sharpy-Bot
a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e
[ "MIT" ]
1
2020-12-06T18:04:27.000Z
2020-12-06T18:04:27.000Z
sharpy-sc2/sharpy/combat/protoss/micro_stalkers.py
ProfessorQu/Sharpy-Bot
a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e
[ "MIT" ]
null
null
null
sharpy-sc2/sharpy/combat/protoss/micro_stalkers.py
ProfessorQu/Sharpy-Bot
a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e
[ "MIT" ]
null
null
null
from typing import Dict from sharpy.general.extended_power import siege from sharpy.combat import Action, MoveType, GenericMicro, CombatModel from sc2 import AbilityId, UnitTypeId from sc2.position import Point2 from sc2.unit import Unit high_priority: Dict[UnitTypeId, int] = { # Terran UnitTypeId.SIEGETANK: ...
35.121739
97
0.663531
4dce371f3687cb200d02976bbe1849ad5d9eed0e
12,396
py
Python
mineSweeper/mineSweeper.py
jeffyan2000/jeffsarcade
ea76ddb93b524cac964447a9b7cfa54896505fe6
[ "MIT" ]
null
null
null
mineSweeper/mineSweeper.py
jeffyan2000/jeffsarcade
ea76ddb93b524cac964447a9b7cfa54896505fe6
[ "MIT" ]
null
null
null
mineSweeper/mineSweeper.py
jeffyan2000/jeffsarcade
ea76ddb93b524cac964447a9b7cfa54896505fe6
[ "MIT" ]
null
null
null
__author__ = 'bo' import pygame from pygame.locals import * pygame.init() import sys import time import random mine_length = 20 mine_width = 20 mine_num = random.randint(0,199) if mine_num >= 400: mine_num = 400 current_stage= 0 start = time.time() mines = [[9 for x in range(mine_width)] for x in ...
36.674556
84
0.45797
517194b7d7703624c907a08e409edfcaf3658aaa
4,634
py
Python
tests/test_require_minimum_number_of_peaks.py
adelabriere/matchms
a580539e6db3f4f00e12097983b85b2d494159ba
[ "Apache-2.0" ]
64
2020-06-22T14:59:21.000Z
2022-03-30T00:50:13.000Z
tests/test_require_minimum_number_of_peaks.py
adelabriere/matchms
a580539e6db3f4f00e12097983b85b2d494159ba
[ "Apache-2.0" ]
561
2020-03-19T14:35:59.000Z
2022-03-29T10:11:12.000Z
tests/test_require_minimum_number_of_peaks.py
adelabriere/matchms
a580539e6db3f4f00e12097983b85b2d494159ba
[ "Apache-2.0" ]
32
2020-05-06T07:35:59.000Z
2022-03-10T09:03:45.000Z
import numpy from matchms import Spectrum from matchms.filtering import require_minimum_number_of_peaks def test_require_minimum_number_of_peaks_no_params(): mz = numpy.array([10, 20, 30, 40], dtype="float") intensities = numpy.array([0, 1, 10, 100], dtype="float") spectrum_in = Spectrum(mz=mz, intensiti...
41.747748
120
0.700475
8d323c430ef284f3a1c0b3c415dfc2b4477fa618
4,058
py
Python
nitro/resource/config/ntp/ntpsync.py
HanseMerkur/nitro-python
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
[ "Apache-2.0" ]
2
2020-08-24T18:04:22.000Z
2020-08-24T18:04:47.000Z
nitro/resource/config/ntp/ntpsync.py
HanseMerkur/nitro-python
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
[ "Apache-2.0" ]
null
null
null
nitro/resource/config/ntp/ntpsync.py
HanseMerkur/nitro-python
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
30.511278
118
0.590192
f9c2755a7e2c6aaab488546fea1953b81c253329
797
py
Python
alttprbot/alttprgen/smz3multi.py
DuoDeca/sahasrahbot
27058b0644487e0b22e91eccaf3c638743bdf826
[ "MIT" ]
null
null
null
alttprbot/alttprgen/smz3multi.py
DuoDeca/sahasrahbot
27058b0644487e0b22e91eccaf3c638743bdf826
[ "MIT" ]
null
null
null
alttprbot/alttprgen/smz3multi.py
DuoDeca/sahasrahbot
27058b0644487e0b22e91eccaf3c638743bdf826
[ "MIT" ]
null
null
null
import pyz3r from alttprbot.alttprgen.preset import fetch_preset from alttprbot.exceptions import SahasrahBotException class PresetNotFoundException(SahasrahBotException): pass async def generate_multiworld(preset, players, tournament=False, randomizer='smz3'): preset_dict = await fetch_preset(preset, rando...
29.518519
87
0.711418
ba9aeab21d4702935588f5aba661e53493e1ba88
9,151
py
Python
desktop/core/ext-py/PyYAML-5.4.1/lib/yaml/resolver.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/PyYAML-5.4.1/lib/yaml/resolver.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/PyYAML-5.4.1/lib/yaml/resolver.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
__all__ = ['BaseResolver', 'Resolver'] from error import * from nodes import * import re class ResolverError(YAMLError): pass class BaseResolver(object): DEFAULT_SCALAR_TAG = u'tag:yaml.org,2002:str' DEFAULT_SEQUENCE_TAG = u'tag:yaml.org,2002:seq' DEFAULT_MAPPING_TAG = u'tag:yaml.org,2002:map' ...
40.135965
82
0.554475
ec291dc97cc19b4fc98c7aea9f4cde441acb31e8
6,551
py
Python
p12-logistic-regression.py
Avanderheyde/cs451-practicals
efd2560d8d40ddb2ec97a05234e9d808731c3feb
[ "BSD-3-Clause" ]
1
2021-03-02T21:54:36.000Z
2021-03-02T21:54:36.000Z
p12-logistic-regression.py
Avanderheyde/cs451-practicals
efd2560d8d40ddb2ec97a05234e9d808731c3feb
[ "BSD-3-Clause" ]
2
2021-03-04T23:29:59.000Z
2021-03-26T14:20:18.000Z
p12-logistic-regression.py
Avanderheyde/cs451-practicals
efd2560d8d40ddb2ec97a05234e9d808731c3feb
[ "BSD-3-Clause" ]
21
2021-03-02T21:50:07.000Z
2021-03-30T22:09:13.000Z
#%% from dataclasses import dataclass, field import numpy as np from sklearn import metrics import numpy as np from tqdm import tqdm import random from typing import List, Dict from sklearn.utils import resample from scipy.special import expit from shared import bootstrap_auc from sklearn.model_selection import train_t...
33.594872
130
0.690276
681064ca25f1ff22f60fdc8ae130c5dac7dcee31
15,788
py
Python
simbatch/core/queue.py
markuswiertarkus/simbatch
c0e21abdee9f3475a01779d35cbe19e607a2c502
[ "MIT" ]
1
2017-11-28T01:10:09.000Z
2017-11-28T01:10:09.000Z
simbatch/core/queue.py
markuswiertarkus/simbatch
c0e21abdee9f3475a01779d35cbe19e607a2c502
[ "MIT" ]
null
null
null
simbatch/core/queue.py
markuswiertarkus/simbatch
c0e21abdee9f3475a01779d35cbe19e607a2c502
[ "MIT" ]
null
null
null
import os import copy # JSON Name Format, PEP8 Name Format QUEUE_ITEM_FIELDS_NAMES = [ ('id', 'id'), ('name', 'queue_item_name'), ('taskId', 'task_id'), ('user', 'user'), ('userId', 'user_id'), ('sequence', 'sequence'), ('shot', 'shot'), ('take', 'take'), ('frameFrom', 'frame_from')...
38.8867
129
0.521029
1abc73b9d5eaf88e8b3e9a38d58306cc76948789
186
py
Python
problem solving/1008.py
omar115/code_for_Kids
3f50ffb1d492c6ea5aa09688944aa01a0cadf1fd
[ "MIT" ]
null
null
null
problem solving/1008.py
omar115/code_for_Kids
3f50ffb1d492c6ea5aa09688944aa01a0cadf1fd
[ "MIT" ]
null
null
null
problem solving/1008.py
omar115/code_for_Kids
3f50ffb1d492c6ea5aa09688944aa01a0cadf1fd
[ "MIT" ]
2
2021-01-08T03:52:46.000Z
2021-04-01T19:16:12.000Z
a = int(input()) b = int(input()) c = float(input()) rst = b * c print('NUMBER = '+str(a)) print('SALARY = U$ {:.2f}'.format(rst)) print('NUMBER = %d\nSALARY = U$ %.2f' % (a, rst))
14.307692
49
0.526882
ce2e0a3aa28eb7122ffd5ba9443f723ce3b8c4c3
2,335
py
Python
modelStruct/resunetv2.py
alexander-prutko/WaveUNet
2ce90e3eda2b0c074880d2650251fcbc37f69f1f
[ "MIT" ]
50
2018-08-14T12:51:24.000Z
2021-11-24T02:57:46.000Z
modelStruct/resunetv2.py
alexander-prutko/WaveUNet
2ce90e3eda2b0c074880d2650251fcbc37f69f1f
[ "MIT" ]
1
2019-09-26T06:18:32.000Z
2019-09-26T06:18:32.000Z
modelStruct/resunetv2.py
alexander-prutko/WaveUNet
2ce90e3eda2b0c074880d2650251fcbc37f69f1f
[ "MIT" ]
9
2019-01-07T02:30:19.000Z
2020-01-20T04:55:46.000Z
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from modelStruct.utils import * class Resv2Unetv2(nn.Module): def __init__(self,nefilters=24): super(Resv2Unetv2, self).__init__() print('resv2unetv2') nlayers = 12 self.num_layers = nlayers ...
40.964912
110
0.60257
2763260f77890f9801556be394047d157239de60
14,155
py
Python
main.py
AndreasEK/allmysubs
ac8003df75f4fbb367c6258ca1c8d76d1026b1b1
[ "MIT" ]
1
2020-02-27T19:00:09.000Z
2020-02-27T19:00:09.000Z
main.py
AndreasEK/allmysubs
ac8003df75f4fbb367c6258ca1c8d76d1026b1b1
[ "MIT" ]
7
2018-04-16T15:02:03.000Z
2018-06-05T10:12:42.000Z
main.py
AndreasEK/allmysubs
ac8003df75f4fbb367c6258ca1c8d76d1026b1b1
[ "MIT" ]
null
null
null
# coding=utf-8 import logging import requests import flask import dateutil.parser import google.oauth2.credentials import google_auth_oauthlib.flow import google_auth_oauthlib.helpers import googleapiclient.discovery from datetime import datetime, timedelta from threading import Thread from google.auth.exceptions imp...
37.348285
171
0.71692
81f4bfe0b0dc8b4ea1d669b2059ed579c8b4bf4a
551
py
Python
pycls/quantization/quantizer.py
ByeonYeongsin/pycls
adfffb97f17b52ab1f4187f7cb7ae949d307ec13
[ "MIT" ]
null
null
null
pycls/quantization/quantizer.py
ByeonYeongsin/pycls
adfffb97f17b52ab1f4187f7cb7ae949d307ec13
[ "MIT" ]
null
null
null
pycls/quantization/quantizer.py
ByeonYeongsin/pycls
adfffb97f17b52ab1f4187f7cb7ae949d307ec13
[ "MIT" ]
3
2021-06-02T05:03:01.000Z
2021-07-19T03:51:32.000Z
from copy import deepcopy import torch import torch.nn as nn class QuantizedModel(nn.Module): def __init__(self, model_fp32: nn.Module): super(QuantizedModel, self).__init__() self.quant = torch.quantization.QuantStub() self.dequant = torch.quantization.DeQuantStub() self.model_fp...
25.045455
55
0.656987
2534ec5d1f5e3fad927519c6e7bbc55ca7f69679
10,917
py
Python
eoxserver/services/ows/wcst/wcst11ActionAdd.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
null
null
null
eoxserver/services/ows/wcst/wcst11ActionAdd.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
null
null
null
eoxserver/services/ows/wcst/wcst11ActionAdd.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
null
null
null
#----------------------------------------------------------------------- # # Description: # # WCS 1.1.x Transaction extension - implementation of the Add action # #------------------------------------------------------------------------------- # # Project: EOxServer <http://eoxserver.org> # Authors: Martin Paces ...
40.88764
139
0.551708
4801a67fe5fc228cd6807daf511bac84841d3009
436
py
Python
types/responses/widgets.py
StepaTa/vkbottle
3b04a5343380cbabe782151e7cb1c1645a9fa9ce
[ "MIT" ]
null
null
null
types/responses/widgets.py
StepaTa/vkbottle
3b04a5343380cbabe782151e7cb1c1645a9fa9ce
[ "MIT" ]
null
null
null
types/responses/widgets.py
StepaTa/vkbottle
3b04a5343380cbabe782151e7cb1c1645a9fa9ce
[ "MIT" ]
null
null
null
import typing from ..base import BaseModel from vkbottle.types import objects class GetPages(BaseModel): count: int = None pages: typing.List[objects.widgets.WidgetPage] = None class GetPagesModel(BaseModel): response: GetPages = None class GetComments(BaseModel): count: int = None posts: typi...
19.818182
60
0.745413
f965cb497a7c0c4c2fffb2df3ff7d057065df4d8
211
py
Python
dateSample.py
josernesto1989/dateTimeSamplePython_memoriasDev
167de1a755998ec861bc51de76f1429e09a95be6
[ "MIT" ]
null
null
null
dateSample.py
josernesto1989/dateTimeSamplePython_memoriasDev
167de1a755998ec861bc51de76f1429e09a95be6
[ "MIT" ]
null
null
null
dateSample.py
josernesto1989/dateTimeSamplePython_memoriasDev
167de1a755998ec861bc51de76f1429e09a95be6
[ "MIT" ]
null
null
null
import datetime now = datetime.datetime.now() for x in range(10): currentDate = now + datetime.timedelta(days=0+x) print(str(currentDate.year)+'-'+str(currentDate.month)+'-'+str(currentDate.day))
30.142857
84
0.687204
d6c709c9ef44082704ad5aef356d2e57e8f90b56
370
gyp
Python
test/analyzer/subdir2/subdir.gyp
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
test/analyzer/subdir2/subdir.gyp
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
1,432
2017-06-21T04:08:48.000Z
2020-08-25T16:21:15.000Z
test/analyzer/subdir2/subdir.gyp
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright (c) 2014 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'foo', 'type': 'static_library', 'sources': [ 'subdir_source.c', ], 'includes': [ ...
19.473684
72
0.548649
71411d4fb62d9b3dcccbfd99da65493341b1856a
105
py
Python
setup.py
YaroslavChyhryn/SchoolAPI
6b5eb4e1faf6b962561109fc227057ad0f8d4d92
[ "MIT" ]
null
null
null
setup.py
YaroslavChyhryn/SchoolAPI
6b5eb4e1faf6b962561109fc227057ad0f8d4d92
[ "MIT" ]
null
null
null
setup.py
YaroslavChyhryn/SchoolAPI
6b5eb4e1faf6b962561109fc227057ad0f8d4d92
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='school_api', packages=find_packages(), )
21
43
0.742857
48db1960cc952cc709a351f7bb5f311f04b7f6c7
511
py
Python
TestSerial.py
g-i-wilson/spi-tools
1c961a97572a366235f9f3b0517d8201fa8be371
[ "MIT" ]
1
2022-03-22T20:44:01.000Z
2022-03-22T20:44:01.000Z
TestSerial.py
g-i-wilson/spi-tools
1c961a97572a366235f9f3b0517d8201fa8be371
[ "MIT" ]
null
null
null
TestSerial.py
g-i-wilson/spi-tools
1c961a97572a366235f9f3b0517d8201fa8be371
[ "MIT" ]
null
null
null
import serial import sys io = serial.Serial(port=sys.argv[1], baudrate="9600") if io.is_open: io.close() io.open() #io.write([0x02, 0x01, 0xF1, 0x0A]) io.write([0x02]) io.write([0x0]) io.write([0x55]) #io.write([0x0A]) io.flush() while(not io.inWaiting()): pass print(io.read(1)) while(not io.inWaiting()):...
13.810811
53
0.643836
7208e6fc40975caff448b760ab515919f90750a6
3,174
py
Python
build_c.py
WingCorp/HighDefinitionC
a3d1536248c1619d7277e2f4ed06d0eddb4e1bef
[ "MIT" ]
1
2019-04-09T13:03:02.000Z
2019-04-09T13:03:02.000Z
build_c.py
WingCorp/HighDefinitionC
a3d1536248c1619d7277e2f4ed06d0eddb4e1bef
[ "MIT" ]
5
2018-06-17T18:53:43.000Z
2018-06-21T23:11:21.000Z
build_c.py
WingCorp/HighDefinitionC
a3d1536248c1619d7277e2f4ed06d0eddb4e1bef
[ "MIT" ]
null
null
null
import sys import os import subprocess #Why not custom build system? def determine_path_to_dependency(own_path, dep_rel_path): path = own_path if "\\" in path: path = path.replace("\\", "/") rel_dir_parts = path.split("/")[0:-1] rel_dir = "/".join(rel_dir_parts) dep_rel_source = dep_re...
36.906977
118
0.60397
127b14f49015d7e76ecaad4712e9fe6ec5723fc7
3,285
py
Python
torchbenchmark/models/fastNLP/reproduction/Summarization/Baseline/transformer/Beam.py
Chillee/benchmark
91e1b2871327e44b9b7d24d173ca93720fb6565b
[ "BSD-3-Clause" ]
2,693
2018-03-08T03:09:20.000Z
2022-03-30T07:38:42.000Z
reproduction/Summarization/Baseline/transformer/Beam.py
stratoes/fastNLP
a8a458230489710ab945b37ec22e93315230f2de
[ "Apache-2.0" ]
291
2018-07-21T07:43:17.000Z
2022-03-07T13:06:58.000Z
reproduction/Summarization/Baseline/transformer/Beam.py
stratoes/fastNLP
a8a458230489710ab945b37ec22e93315230f2de
[ "Apache-2.0" ]
514
2018-03-09T06:54:25.000Z
2022-03-26T20:11:44.000Z
""" Manage beam search info structure. Heavily borrowed from OpenNMT-py. For code in OpenNMT-py, please check the following link: https://github.com/OpenNMT/OpenNMT-py/blob/master/onmt/Beam.py """ import torch import numpy as np import transformer.Constants as Constants class Beam(): ''' Beam search ...
31.586538
92
0.61583
0f5ce5b5af5b2c63dd1820580b10a29c5dead769
2,212
py
Python
archives/old/scf_configs/config_mc_scsmart_ka200_k20.py
mukamel-lab/SingleCellFusion_EnhancerPaper
acbfa5184667ca57c333c04c310b0712a0e8e15e
[ "MIT" ]
null
null
null
archives/old/scf_configs/config_mc_scsmart_ka200_k20.py
mukamel-lab/SingleCellFusion_EnhancerPaper
acbfa5184667ca57c333c04c310b0712a0e8e15e
[ "MIT" ]
null
null
null
archives/old/scf_configs/config_mc_scsmart_ka200_k20.py
mukamel-lab/SingleCellFusion_EnhancerPaper
acbfa5184667ca57c333c04c310b0712a0e8e15e
[ "MIT" ]
1
2021-11-15T19:03:03.000Z
2021-11-15T19:03:03.000Z
#!/usr/bin/env python3 """An example configuration file """ import sys import os # Assuming the cell order in the metadata tables are the same as those in the gene level matrices # The output knn matrices follow such order as well ka_smooth = 200 k = 20 # # Configs name = 'mop_2mods_200803_ka{}_k{}'.format(ka...
26.023529
97
0.690778
b64f0177cb0f66a71f21d459b08744ef92688f7b
6,413
py
Python
rllib/agents/dqn/tests/test_dqn.py
aryavohra/ray
6d884f1442c271329829ff0bceae588f3cd49d7d
[ "Apache-2.0" ]
39
2021-02-02T23:09:31.000Z
2022-03-28T16:39:12.000Z
rllib/agents/dqn/tests/test_dqn.py
aryavohra/ray
6d884f1442c271329829ff0bceae588f3cd49d7d
[ "Apache-2.0" ]
70
2021-07-10T07:05:24.000Z
2022-03-26T07:05:20.000Z
rllib/agents/dqn/tests/test_dqn.py
aryavohra/ray
6d884f1442c271329829ff0bceae588f3cd49d7d
[ "Apache-2.0" ]
20
2021-02-05T05:51:39.000Z
2022-03-04T21:13:24.000Z
import copy import numpy as np import unittest import ray import ray.rllib.agents.dqn as dqn from ray.rllib.agents.dqn.dqn_tf_policy import _adjust_nstep from ray.rllib.utils.test_utils import check, check_compute_single_action, \ framework_iterator class TestDQN(unittest.TestCase): @classmethod def setU...
38.172619
79
0.570404
f7dbf85665a0504727c06a2017728339853bbe6c
7,458
py
Python
plugins/dm/callBack/pdfFormatter.py
KoshikKumar17/ilovepdf
c0a05787aa9573e3ead2e791b17bd3af4a386d6b
[ "Apache-2.0" ]
null
null
null
plugins/dm/callBack/pdfFormatter.py
KoshikKumar17/ilovepdf
c0a05787aa9573e3ead2e791b17bd3af4a386d6b
[ "Apache-2.0" ]
null
null
null
plugins/dm/callBack/pdfFormatter.py
KoshikKumar17/ilovepdf
c0a05787aa9573e3ead2e791b17bd3af4a386d6b
[ "Apache-2.0" ]
null
null
null
# fileName : plugins/dm/callBack/pdfFormatter.py # copyright ©️ 2021 nabilanavab import os import time import fitz import shutil from PIL import Image from time import sleep from pdf import PROCESS from pyrogram import filters from Configs.dm import Config from plugins.checkPdf import checkPdf from plugins.progress im...
42.617143
105
0.513274
fd17dd39b9d3f7afc38cf800be4c436e366eb8d4
2,845
py
Python
dataactcore/migrations/versions/7ffc95637ee4_historic_parent_duns.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2019-06-22T21:53:16.000Z
2019-06-22T21:53:16.000Z
dataactcore/migrations/versions/7ffc95637ee4_historic_parent_duns.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
3
2021-08-22T11:47:45.000Z
2022-03-29T22:06:49.000Z
dataactcore/migrations/versions/7ffc95637ee4_historic_parent_duns.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2020-07-17T23:50:56.000Z
2020-07-17T23:50:56.000Z
"""historic_parent_duns Revision ID: 7ffc95637ee4 Revises: 7d2d17f4e86a Create Date: 2018-06-15 16:15:59.249114 """ # revision identifiers, used by Alembic. revision = '7ffc95637ee4' down_revision = '7d2d17f4e86a' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(en...
43.106061
149
0.750791
d90d4fe66f83f558b4b47a26c27db1146a5962d8
2,329
py
Python
cpalgorithm/BE.py
TerryPanHub/core-periphery-detection
e055aaae0c98fc1f1d2f5929a6a8a638757ee261
[ "MIT" ]
null
null
null
cpalgorithm/BE.py
TerryPanHub/core-periphery-detection
e055aaae0c98fc1f1d2f5929a6a8a638757ee261
[ "MIT" ]
null
null
null
cpalgorithm/BE.py
TerryPanHub/core-periphery-detection
e055aaae0c98fc1f1d2f5929a6a8a638757ee261
[ "MIT" ]
1
2020-09-23T19:09:11.000Z
2020-09-23T19:09:11.000Z
import _cpalgorithm as _cp from .CPAlgorithm import * class BE(CPAlgorithm): """Borgatti Everett algorithm. An algorithm for finding single core-periphery pair in networks. Parameters ---------- num_runs : int Number of runs of the algorithm (optional, default: 10) Run the algorithm num_runs times....
26.168539
133
0.66638
ee0188103161503ee9512e24df927ce1e18c2347
715
py
Python
bluebottle/files/migrations/0004_auto_20200106_1644.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/files/migrations/0004_auto_20200106_1644.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/files/migrations/0004_auto_20200106_1644.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-11-11 12:19 from __future__ import unicode_literals from django.db import migrations from bluebottle.utils.utils import update_group_permissions def add_group_permissions(apps, schema_editor): group_perms = { 'Staff': { 'perms': ( ...
23.064516
59
0.625175
9c8c80887f97de90bab61972ab748a17230fb556
2,024
py
Python
server/app/modules/dockerize.py
ma-he-sh/VirtualNetworkRouting
51cd8c0832ad3a05e23aca4e31ae416620aee985
[ "MIT" ]
null
null
null
server/app/modules/dockerize.py
ma-he-sh/VirtualNetworkRouting
51cd8c0832ad3a05e23aca4e31ae416620aee985
[ "MIT" ]
null
null
null
server/app/modules/dockerize.py
ma-he-sh/VirtualNetworkRouting
51cd8c0832ad3a05e23aca4e31ae416620aee985
[ "MIT" ]
null
null
null
from sys import stderr, stdout import sys import yaml import io from os import path import subprocess CONTAINER_DIR="./containers/" class Dockerize: def __init__(self, sess_name, routers=[] ): self.name = "session_"+sess_name self.docker_file_name = CONTAINER_DIR + "docker-composer-" + sess_name +...
34.896552
175
0.543478
0fa400f4fe0d69892f6c2a9f32b20e4c3ba62278
1,572
py
Python
notifier/cli.py
croque-scp/notifier
2c1f913d922873873da28ca754a7c4950b82da24
[ "MIT" ]
6
2021-09-17T20:36:53.000Z
2022-02-06T05:21:40.000Z
notifier/cli.py
croque-scp/notifier
2c1f913d922873873da28ca754a7c4950b82da24
[ "MIT" ]
4
2021-08-13T06:17:48.000Z
2021-09-24T07:14:50.000Z
notifier/cli.py
croque-scp/notifier
2c1f913d922873873da28ca754a7c4950b82da24
[ "MIT" ]
3
2021-10-01T17:59:22.000Z
2021-10-16T05:48:42.000Z
import argparse import logging from notifier.config.local import read_local_auth, read_local_config from notifier.main import main from notifier.notify import notification_channels logger = logging.getLogger(__name__) def cli(): """Run main procedure as a command-line tool.""" args = read_command_line_argum...
29.111111
73
0.655216
532873862400c5bfb46f4dfd177cbd82a960756e
852
py
Python
Chapter04/c4_14_time_value_of_money.py
andrewjcoxon/Hands-On-Data-Science-with-Anaconda
82504a059ecd284b3599fa9af2b3eb6bbd6e28f3
[ "MIT" ]
25
2018-06-25T16:21:09.000Z
2022-02-08T09:28:29.000Z
Hands-On-Data-Science-with-Anaconda-master/Hands-On-Data-Science-with-Anaconda-master/Chapter04/c4_14_time_value_of_money.py
manual123/Nacho-Jupyter-Notebooks
e75523434b1a90313a6b44e32b056f63de8a7135
[ "MIT" ]
null
null
null
Hands-On-Data-Science-with-Anaconda-master/Hands-On-Data-Science-with-Anaconda-master/Chapter04/c4_14_time_value_of_money.py
manual123/Nacho-Jupyter-Notebooks
e75523434b1a90313a6b44e32b056f63de8a7135
[ "MIT" ]
17
2018-06-15T02:55:30.000Z
2022-03-09T15:24:42.000Z
" Name : c4_14_time_value_of_money.py Book : Hands-on Data Science with Anaconda ) Publisher: Packt Publishing Ltd. Author : Yuxing Yan and James Yan Date : 1/25/2018 email : yany@canisius.edu paulyxy@hotmail.com " import matplotlib.pyplot as plt # fig = plt.figure(facecolor=...
31.555556
111
0.683099
248e5089d9f712f9e5fb4eca2f2c22e0db643e72
806
py
Python
dataxHWSp2021/HW3-4_NLP/student/tests/q1_c.py
UCBerkeley-SCET/DataX-Berkeley
f912d22c838b511d3ada4ecfa3548afd80437b74
[ "Apache-2.0" ]
28
2020-06-15T23:53:36.000Z
2022-03-19T09:27:02.000Z
dataxHWSp2021/HW3-4_NLP/student/tests/q1_c.py
UCBerkeley-SCET/DataX-Berkeley
f912d22c838b511d3ada4ecfa3548afd80437b74
[ "Apache-2.0" ]
4
2020-06-24T22:20:31.000Z
2022-02-28T01:37:36.000Z
dataxHWSp2021/HW3-4_NLP/student/tests/q1_c.py
UCBerkeley-SCET/DataX-Berkeley
f912d22c838b511d3ada4ecfa3548afd80437b74
[ "Apache-2.0" ]
78
2020-06-19T09:41:01.000Z
2022-02-05T00:13:29.000Z
test = { 'name': 'q1_c', 'points': 10, 'suites': [ { 'cases': [ { 'code': '>>> type(first_5_stopwords) is ' 'list\n' 'True', 'hidden': False, ...
47.411765
80
0.217122
c03c11f0b2134fcb3004b90803d6e383fa5ce6d8
250
py
Python
setup.py
HarryR/kitsh
fc0ec68a332af34be57be71f0f37669de5f2512d
[ "BSD-2-Clause" ]
1
2019-09-08T04:16:33.000Z
2019-09-08T04:16:33.000Z
setup.py
HarryR/kitsh
fc0ec68a332af34be57be71f0f37669de5f2512d
[ "BSD-2-Clause" ]
null
null
null
setup.py
HarryR/kitsh
fc0ec68a332af34be57be71f0f37669de5f2512d
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup setup( name='kitsh', version='0.1.0', author='Harry Roberts', packages=[ 'kitsh' ], package_data={'': ['static/*', 'templates/*']}, include_package_data=True, zip_safe=False )
17.857143
51
0.576
107fc24e47423d8265eb42c3420e2983466dea96
783
py
Python
blog/migrations/0004_auto_20210629_2241.py
open-apprentice/ellieplatform-website
3018feb05a2a44b916afba3e8e2eb71c18147117
[ "MIT" ]
1
2021-06-26T22:18:31.000Z
2021-06-26T22:18:31.000Z
blog/migrations/0004_auto_20210629_2241.py
open-apprentice/ellieplatform-website
3018feb05a2a44b916afba3e8e2eb71c18147117
[ "MIT" ]
12
2021-06-26T22:38:45.000Z
2021-07-07T15:49:43.000Z
blog/migrations/0004_auto_20210629_2241.py
open-apprentice/ellieplatform-website
3018feb05a2a44b916afba3e8e2eb71c18147117
[ "MIT" ]
1
2021-07-07T15:33:43.000Z
2021-07-07T15:33:43.000Z
# Generated by Django 3.2.4 on 2021-06-29 20:41 from django.db import migrations, models import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0003_taggeditem_add_unique_index'), ('blog', '0003_alter_post_options'), ] operations = [ migration...
30.115385
188
0.62963
fd536470bb607d273a199b08d60764dd2b276031
936
py
Python
unit_02/04_object-oriented/2-Inheritance/characters.py
duliodenis/python_master_degree
3ab76838ce2fc1606f28e988a3273dd27122a621
[ "MIT" ]
19
2019-03-14T01:39:32.000Z
2022-02-03T00:36:43.000Z
unit_02/04_object-oriented/2-Inheritance/characters.py
duliodenis/python_master_degree
3ab76838ce2fc1606f28e988a3273dd27122a621
[ "MIT" ]
1
2020-04-10T01:01:16.000Z
2020-04-10T01:01:16.000Z
unit_02/04_object-oriented/2-Inheritance/characters.py
duliodenis/python_master_degree
3ab76838ce2fc1606f28e988a3273dd27122a621
[ "MIT" ]
5
2019-01-02T20:46:05.000Z
2020-07-08T22:47:48.000Z
# # Object-Oriented Python: Inheritance Characters # Python Techdegree # # Created by Dulio Denis on 12/13/18. # Copyright (c) 2018 ddApps. All rights reserved. # ------------------------------------------------ # Classes are great, but they're even better with parents. import random class Character: def __in...
27.529412
80
0.633547
46c0f5bfac56a83a2b4251d7f140ae968957e1c5
11,885
py
Python
comment/tests/base.py
learnICT/Comment
a910b0595afe8f91b2055184b064653bc6842661
[ "MIT" ]
null
null
null
comment/tests/base.py
learnICT/Comment
a910b0595afe8f91b2055184b064653bc6842661
[ "MIT" ]
null
null
null
comment/tests/base.py
learnICT/Comment
a910b0595afe8f91b2055184b064653bc6842661
[ "MIT" ]
null
null
null
from urllib.parse import quote_plus from unittest.mock import patch from django.apps import apps from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.contrib.contenttypes.models import ContentType from django.db import connection from django.db.migrations.executor imp...
35.690691
114
0.652924
691edeae5d38bed1cd9c5a411926c05432c913e7
4,012
py
Python
towel_foundation/widgets.py
matthiask/towel-foundation
4541b7b156604240d775e6a88fcfff342a39cdb0
[ "BSD-3-Clause" ]
1
2019-02-11T14:55:08.000Z
2019-02-11T14:55:08.000Z
towel_foundation/widgets.py
matthiask/towel-foundation
4541b7b156604240d775e6a88fcfff342a39cdb0
[ "BSD-3-Clause" ]
1
2019-02-11T18:39:46.000Z
2019-02-11T18:39:46.000Z
towel_foundation/widgets.py
matthiask/towel-foundation
4541b7b156604240d775e6a88fcfff342a39cdb0
[ "BSD-3-Clause" ]
2
2015-09-07T09:19:50.000Z
2019-02-11T14:54:17.000Z
from django import forms from django.db.models import ObjectDoesNotExist from django.db.models.fields import BLANK_CHOICE_DASH from django.utils.encoding import force_str from django.utils.safestring import mark_safe try: from django.urls import reverse except ImportError: from django.core.urlresolvers import...
28.453901
88
0.51321
4698a1b6e546384156f9f8f19448259fc467aae8
1,109
py
Python
core/migrations/0001_initial.py
mateuszwwwrobel/News_Scraper
38f203f3c46ad21e1c1fa53fa783a70964a76d16
[ "MIT" ]
2
2021-07-08T17:44:36.000Z
2021-08-05T01:41:54.000Z
core/migrations/0001_initial.py
mateuszwwwrobel/News_Scraper
38f203f3c46ad21e1c1fa53fa783a70964a76d16
[ "MIT" ]
5
2021-03-30T13:30:09.000Z
2021-09-22T19:01:48.000Z
core/migrations/0001_initial.py
mateuszwwwrobel/Tasty_News
38f203f3c46ad21e1c1fa53fa783a70964a76d16
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2021-03-01 19:14 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(...
42.653846
399
0.603246
f32bfc621597adbeadb44479d78943492aaec950
1,994
py
Python
tf2onnx/rewriter/thresholded_relu_rewriter.py
lucienwang1009/tensorflow-onnx
aa197443579bba6fdf8990f5005d955ab515a39a
[ "MIT" ]
1
2020-04-03T07:57:20.000Z
2020-04-03T07:57:20.000Z
tf2onnx/rewriter/thresholded_relu_rewriter.py
daquexian/tensorflow-onnx
cb016ef5b2483b78b0c0ceea23652d4a6a142cf0
[ "MIT" ]
null
null
null
tf2onnx/rewriter/thresholded_relu_rewriter.py
daquexian/tensorflow-onnx
cb016ef5b2483b78b0c0ceea23652d4a6a142cf0
[ "MIT" ]
1
2020-04-03T07:56:47.000Z
2020-04-03T07:56:47.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. """ tf2onnx.rewriter - rewrite tensorflow subgraph to onnx ThresholdedRelu op """ from tf2onnx.graph_matcher import OpTypePattern, GraphMatcher from tf2onnx.rewriter.leakyrelu_rewriter import _find_edge_name_between_nodes ...
39.88
114
0.641926
ad53b5fdb137191facf7b7d743e5f4037dbe4bb4
228
py
Python
check_perfect_number.py
jyoti140220/function_logical_quetion_python
50e3da10e0cc02cb78e5d429f2c87c0a171bd693
[ "MIT" ]
null
null
null
check_perfect_number.py
jyoti140220/function_logical_quetion_python
50e3da10e0cc02cb78e5d429f2c87c0a171bd693
[ "MIT" ]
null
null
null
check_perfect_number.py
jyoti140220/function_logical_quetion_python
50e3da10e0cc02cb78e5d429f2c87c0a171bd693
[ "MIT" ]
null
null
null
def perfect(a): i=1 sum=0 while i<a: if a%i==0: sum=sum+i i=i+1 if sum==a: print("perfect") else: print("not") num=int(input("enter the number :")) perfect(num)
17.538462
37
0.45614
1856c9b12ed350ac565d9d15da1c9f1fbe4c9a5c
1,944
py
Python
Machine Learning A-Z/keras-fire-detection/pyimagesearch/firedetectionnet.py
lifehouse11amber2/Machine-Learning-A-Z-hands-on-Python-And-R-in-data-Science
6ae9d490466546405517c07406526a4f3fcd9710
[ "MIT" ]
23
2020-05-29T08:38:03.000Z
2022-02-25T20:43:09.000Z
Machine Learning A-Z/keras-fire-detection/pyimagesearch/firedetectionnet.py
garciamilord/Machine-Learning-A-Z-hands-on-Python-And-R-in-data-Science
d804e7eeace1e5187b156b2fa3e71125b2a3448a
[ "MIT" ]
null
null
null
Machine Learning A-Z/keras-fire-detection/pyimagesearch/firedetectionnet.py
garciamilord/Machine-Learning-A-Z-hands-on-Python-And-R-in-data-Science
d804e7eeace1e5187b156b2fa3e71125b2a3448a
[ "MIT" ]
22
2020-12-05T15:14:43.000Z
2022-03-12T23:28:49.000Z
# import the necessary packages from tensorflow.keras.models import Sequential from tensorflow.keras.layers import BatchNormalization from tensorflow.keras.layers import SeparableConv2D from tensorflow.keras.layers import MaxPooling2D from tensorflow.keras.layers import Activation from tensorflow.keras.layers import Fl...
32.4
57
0.735082
479bfeefcc799537339b43720ec268eda48d7b4e
114
py
Python
modules/dials/algorithms/image/filter/__init__.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
null
null
null
modules/dials/algorithms/image/filter/__init__.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
null
null
null
modules/dials/algorithms/image/filter/__init__.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
1
2020-02-04T15:39:06.000Z
2020-02-04T15:39:06.000Z
from __future__ import absolute_import, division, print_function from dials_algorithms_image_filter_ext import *
28.5
64
0.877193
00cfeed242a224515dc25bfcd65118925fba69a5
6,307
py
Python
backend_admin/models.py
sougannkyou/AppSimulator
0803d557b0451b049f11e90c258ec11f7074a2ac
[ "MIT" ]
6
2018-10-21T03:41:03.000Z
2021-12-17T11:09:50.000Z
backend_admin/models.py
sougannkyou/AppSimulator
0803d557b0451b049f11e90c258ec11f7074a2ac
[ "MIT" ]
null
null
null
backend_admin/models.py
sougannkyou/AppSimulator
0803d557b0451b049f11e90c258ec11f7074a2ac
[ "MIT" ]
4
2020-01-30T14:46:50.000Z
2021-12-04T01:07:46.000Z
# coding:utf-8 from django.contrib.auth.models import AbstractUser, Permission from django.db import models # 部门 class Departments(models.Model): name = models.CharField(verbose_name='部门名称', max_length=50) member_num = models.IntegerField(verbose_name='部门人数', default=0) parent = models.IntegerField(verbos...
38.932099
104
0.718091
0b4ce5d2f4437d591a09d032cd5f5630b9db48f8
3,222
py
Python
deploy.py
lazycal/spatial-transformer-tensorflow
4a382c1c010eb36dcfd8e0cef3a8028e1686421d
[ "MIT" ]
4
2018-06-27T13:23:26.000Z
2020-09-02T02:46:31.000Z
deploy.py
lazycal/spatial-transformer-tensorflow
4a382c1c010eb36dcfd8e0cef3a8028e1686421d
[ "MIT" ]
null
null
null
deploy.py
lazycal/spatial-transformer-tensorflow
4a382c1c010eb36dcfd8e0cef3a8028e1686421d
[ "MIT" ]
3
2018-06-27T13:23:34.000Z
2020-05-01T16:38:22.000Z
import tensorflow as tf import numpy as np from config import * from PIL import Image import cv2 import time start_with_stable = True sess = tf.Session() model_name = 'model-43000' new_saver = tf.train.import_meta_graph('temp/models/' + model_name + '.meta') new_saver.restore(sess, 'temp/models/' + model_name) graph...
35.021739
85
0.612353
1a74ecd7d1b1dc6b53a9d0a7425c04749dcb81eb
648
py
Python
src/maltreatment_nlp/run.py
kpwhri/maltreatment_nlp
3fa7852c0b4ea56284e4e6f176cc8f341eeed106
[ "MIT" ]
null
null
null
src/maltreatment_nlp/run.py
kpwhri/maltreatment_nlp
3fa7852c0b4ea56284e4e6f176cc8f341eeed106
[ "MIT" ]
null
null
null
src/maltreatment_nlp/run.py
kpwhri/maltreatment_nlp
3fa7852c0b4ea56284e4e6f176cc8f341eeed106
[ "MIT" ]
null
null
null
from maltreatment_nlp.patterns import ALL_PATTERNS def run(text, **metadata): for name, pat in ALL_PATTERNS.items(): for m in pat.finditer(text): yield metadata | { 'pre_context': ' '.join(text[max(m.start() - 100, 0): m.start()].split()).strip(), 'post_context'...
36
98
0.555556
b8ce59f5b13574798fa747b523273d7a09a87acd
865
py
Python
manga_py/providers/mangasupa_com.py
tgaugry/manga-py
d0be627e5425020053b4fb117a9b3f0d79b20c9e
[ "MIT" ]
null
null
null
manga_py/providers/mangasupa_com.py
tgaugry/manga-py
d0be627e5425020053b4fb117a9b3f0d79b20c9e
[ "MIT" ]
null
null
null
manga_py/providers/mangasupa_com.py
tgaugry/manga-py
d0be627e5425020053b4fb117a9b3f0d79b20c9e
[ "MIT" ]
null
null
null
from manga_py.provider import Provider from .helpers.std import Std class MangaSupaCom(Provider, Std): def get_chapter_index(self) -> str: idx = self.re.search('/chapter_([^/]+)', self.chapter) return '-'.join(idx.group(1).split('.')) def get_content(self): return self._get_content('...
25.441176
62
0.62659
4011451e3d3d9b776a67b2d7c2e28279e334618f
1,620
py
Python
plugins/redshift/setup.py
NiallRees/dbt
da7afd84ab961cd1b90775e900514f7379ba2e84
[ "Apache-2.0" ]
null
null
null
plugins/redshift/setup.py
NiallRees/dbt
da7afd84ab961cd1b90775e900514f7379ba2e84
[ "Apache-2.0" ]
null
null
null
plugins/redshift/setup.py
NiallRees/dbt
da7afd84ab961cd1b90775e900514f7379ba2e84
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import find_namespace_packages from setuptools import setup import os package_name = "dbt-redshift" package_version = "0.15.0rc2" description = """The redshift adapter plugin for dbt (data build tool)""" this_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.pa...
30.566038
73
0.637037
a3ba4c6be1d8f69a955c24c166c32f59635edb1f
325
py
Python
aula_21/ex103.py
Matheus-Pontes/Curso-Python-3
a55f6730112ee58d6b23158d50b9d3051dce4448
[ "MIT" ]
null
null
null
aula_21/ex103.py
Matheus-Pontes/Curso-Python-3
a55f6730112ee58d6b23158d50b9d3051dce4448
[ "MIT" ]
null
null
null
aula_21/ex103.py
Matheus-Pontes/Curso-Python-3
a55f6730112ee58d6b23158d50b9d3051dce4448
[ "MIT" ]
null
null
null
def ficha(n, g): if g.isnumeric(): g = int(g) else: g = 0 if n.strip() == "": n = "<desconhecido>" return f"O jogador {n} fez {g} gol(s)." # Programa principal nome = str(input("Nome do jogador: ")) gols = str(input("Quantos gols marcou no campeonato? ")) print(ficha(nome, g...
21.666667
56
0.550769
363bd2453f12e959d74ac01c02cc6de26c9d6a89
3,133
py
Python
sparsenet.py
emdodds/DictLearner
a1c7d7b1d3a3ed4c6af39b7065b4ee93bc42a5e7
[ "MIT" ]
null
null
null
sparsenet.py
emdodds/DictLearner
a1c7d7b1d3a3ed4c6af39b7065b4ee93bc42a5e7
[ "MIT" ]
1
2020-11-17T06:53:23.000Z
2020-11-22T19:28:07.000Z
sparsenet.py
emdodds/DictLearner
a1c7d7b1d3a3ed4c6af39b7065b4ee93bc42a5e7
[ "MIT" ]
3
2015-10-04T20:55:13.000Z
2021-03-02T20:23:31.000Z
# -*- coding: utf-8 -*- """ Created on Tue Jul 26 15:55:22 2016 @author: Eric """ from DictLearner import DictLearner as BaseLearner import numpy as np try: import matplotlib.pyplot as plt except ImportError: print("Can't import matplotlib.") class Sparsenet(BaseLearner): """A sparse dicti...
38.679012
105
0.58219
276bb350330b83b4aea090ce1de64a6bb8b2a453
16,443
py
Python
tensorflow/contrib/learn/python/learn/models.py
cedias/tensorflow
ede4b4c111ebd2b96703dce42f0f7c5f2173f0e7
[ "Apache-2.0" ]
2
2017-06-29T11:50:27.000Z
2019-10-15T18:55:28.000Z
tensorflow/contrib/learn/python/learn/models.py
cedias/tensorflow
ede4b4c111ebd2b96703dce42f0f7c5f2173f0e7
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/learn/python/learn/models.py
cedias/tensorflow
ede4b4c111ebd2b96703dce42f0f7c5f2173f0e7
[ "Apache-2.0" ]
8
2017-04-17T23:39:12.000Z
2019-05-11T14:06:31.000Z
# Copyright 2016 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.522727
80
0.660342