hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
cb4f24c5328a1a2bade8a19d198131fa85784909
10,902
py
Python
kodrive/cli.py
Jvlythical/KodeBox
325fe5e5870b7d4eb121dcc7e93be64aa16e7988
[ "MIT" ]
1
2021-09-02T02:53:05.000Z
2021-09-02T02:53:05.000Z
kodrive/cli.py
Jvlythical/KodeBox
325fe5e5870b7d4eb121dcc7e93be64aa16e7988
[ "MIT" ]
null
null
null
kodrive/cli.py
Jvlythical/KodeBox
325fe5e5870b7d4eb121dcc7e93be64aa16e7988
[ "MIT" ]
1
2018-09-01T08:41:01.000Z
2018-09-01T08:41:01.000Z
import click import os, time, math, pdb from . import cli_syncthing_adapter CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) @click.version_option() @click.group( epilog="Run 'kodrive COMMAND --help' for more information on a command.", context_settings=CONTEXT_SETTINGS ) @click.pass_context def main(c...
25.177829
106
0.642726
8c6a67fef9579516b8ab93015b14053c54a78701
701
py
Python
endpoints/warp.py
Lifeismana/imgen
05f703a93eb0dd4625cb3316dc1a9f88a0259f08
[ "MIT" ]
null
null
null
endpoints/warp.py
Lifeismana/imgen
05f703a93eb0dd4625cb3316dc1a9f88a0259f08
[ "MIT" ]
null
null
null
endpoints/warp.py
Lifeismana/imgen
05f703a93eb0dd4625cb3316dc1a9f88a0259f08
[ "MIT" ]
null
null
null
from io import BytesIO from random import choice, randint from flask import send_file from utils import gm from utils.endpoint import Endpoint, setup @setup class Warp(Endpoint): params = ["avatar0"] def generate(self, avatars, text, usernames, kwargs): implode = "-{}".format(str(rand...
28.04
71
0.586305
efd5290220f1b3380b3dba6ae3ca99b83521f5a2
3,489
py
Python
src/nutrients_parser/parsers/parse_combinedata.py
TurtleToast/food-nutrient-parser-python
d9a7b6eb9a497b6fbe634e812115102f44f1114d
[ "MIT" ]
null
null
null
src/nutrients_parser/parsers/parse_combinedata.py
TurtleToast/food-nutrient-parser-python
d9a7b6eb9a497b6fbe634e812115102f44f1114d
[ "MIT" ]
null
null
null
src/nutrients_parser/parsers/parse_combinedata.py
TurtleToast/food-nutrient-parser-python
d9a7b6eb9a497b6fbe634e812115102f44f1114d
[ "MIT" ]
null
null
null
from pprint import pprint """ Getting [ [ ['energie'], ['kJ 577 / kcal 137', 'kJ 2596 / kcal 617'] ], [ ['vetten'], ['4.4 g', '19.8 g'] ] ] Wanting [ {'per': { 'name': '100 Gram', 'orginalText': 'per 100 g:', 'unit': 'g', ...
24.744681
93
0.300946
45de8d168dfaa3cb3da3acff5a6e825729f71b83
5,132
py
Python
sderl/examples/pytorch/pg_math/2_rtg_pg.py
XiaohanZhangCMU/sderl
9f8b0044b068d144400520c3b36b75403d394c7d
[ "MIT" ]
2
2020-10-29T12:29:04.000Z
2021-05-01T23:23:45.000Z
sderl/examples/pytorch/pg_math/2_rtg_pg.py
XiaohanZhangCMU/sderl
9f8b0044b068d144400520c3b36b75403d394c7d
[ "MIT" ]
null
null
null
sderl/examples/pytorch/pg_math/2_rtg_pg.py
XiaohanZhangCMU/sderl
9f8b0044b068d144400520c3b36b75403d394c7d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.distributions.categorical import Categorical from torch.optim import Adam import numpy as np import gym from gym.spaces import Discrete, Box def mlp(sizes, activation=nn.Tanh, output_activation=nn.Identity): # Build a feedforward neural network. layers = [] for...
37.735294
93
0.618472
e8be386288851b570510f3a337659570475b2f1d
43,627
py
Python
project/target/node-modules/webjars/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py
chen2007999/Dunno
c158b6d7221cb42894ab01b0b0b115ab334c83b7
[ "Apache-2.0" ]
283
2015-01-27T22:43:26.000Z
2022-02-14T11:50:18.000Z
project/target/node-modules/webjars/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py
chen2007999/Dunno
c158b6d7221cb42894ab01b0b0b115ab334c83b7
[ "Apache-2.0" ]
104
2015-02-02T22:59:58.000Z
2019-02-06T20:09:42.000Z
project/target/node-modules/webjars/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py
chen2007999/Dunno
c158b6d7221cb42894ab01b0b0b115ab334c83b7
[ "Apache-2.0" ]
48
2015-02-26T18:03:06.000Z
2022-02-25T21:42:27.000Z
# Copyright (c) 2012 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. """Code to validate and convert settings of the Microsoft build tools. This file contains code to validate and convert settings of the Microsoft build tools. The...
41.470532
80
0.682582
96ecc91cd9c34fe7a6360bb4d034ffcf45ca5573
2,898
py
Python
models/reconstruction.py
lianqing11/PyCDA
1a4c64a71f2908cb325a7c4cf65e5b169bcd5d5a
[ "MIT" ]
69
2019-09-20T01:04:18.000Z
2022-02-06T11:52:03.000Z
models/reconstruction.py
lianqing11/pycda
1a4c64a71f2908cb325a7c4cf65e5b169bcd5d5a
[ "MIT" ]
6
2019-09-21T01:43:58.000Z
2020-10-30T14:12:13.000Z
models/reconstruction.py
lianqing11/pycda
1a4c64a71f2908cb325a7c4cf65e5b169bcd5d5a
[ "MIT" ]
6
2020-02-06T04:15:16.000Z
2022-01-30T23:04:48.000Z
import torch import torch.nn as nn from lib.nn import SynchronizedBatchNorm2d import torch.nn.functional as F def gaussian_weights_init(m): classname = m.__class__.__name__ if classname.find('Conv') != -1 and classname.find('Conv') == 0: # print m.__class__.__name__ m.weight.data.normal_(0.0, ...
30.829787
145
0.649413
226351fbd175d1200a4729c8aa20ebc8fdf21c23
13,236
py
Python
src/v5.3/enrollment/swagger_client/models/student_student_education_organization_association.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
2
2021-04-27T17:18:17.000Z
2021-04-27T19:14:39.000Z
src/v5.3/enrollment/swagger_client/models/student_student_education_organization_association.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
null
null
null
src/v5.3/enrollment/swagger_client/models/student_student_education_organization_association.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
1
2022-01-06T09:43:11.000Z
2022-01-06T09:43:11.000Z
# coding: utf-8 """ Ed-Fi Operational Data Store API The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface. *** > *Note: Consumers of ODS / API information should sanitize all data for display and storage. The ODS / API provides reas...
43.396721
482
0.698247
c4af05987c899a33e3825749bbcd70ec0dad73b8
21,420
py
Python
symjax/rl.py
RandallBalestriero/TheanoXLA
d8778c2eb3254b478cef4f45d934bf921e695619
[ "Apache-2.0" ]
67
2020-02-21T21:26:46.000Z
2020-06-14T14:25:42.000Z
symjax/rl.py
RandallBalestriero/TheanoXLA
d8778c2eb3254b478cef4f45d934bf921e695619
[ "Apache-2.0" ]
8
2020-02-22T14:45:56.000Z
2020-06-07T16:56:47.000Z
symjax/rl.py
RandallBalestriero/TheanoXLA
d8778c2eb3254b478cef4f45d934bf921e695619
[ "Apache-2.0" ]
4
2020-02-21T17:34:46.000Z
2020-05-30T08:30:14.000Z
# main class import symjax import numpy as np from symjax import nn import symjax.tensor as T from symjax.probabilities import Categorical, MultivariateNormal import math import matplotlib.pyplot as plt from collections import deque import gym import random import scipy.signal # https://gist.github.com/heerad/1983d...
28.985115
87
0.58338
f3c8e2f84649be44240f2d446f9154287f09affa
224
py
Python
octopus/api/cfg.py
ZarvisD/octopus
3e238721fccfec69a69a1635b8a0dc485e525e69
[ "MIT" ]
2
2019-01-19T07:12:02.000Z
2021-08-14T13:23:37.000Z
octopus/api/cfg.py
ZarvisD/octopus
3e238721fccfec69a69a1635b8a0dc485e525e69
[ "MIT" ]
null
null
null
octopus/api/cfg.py
ZarvisD/octopus
3e238721fccfec69a69a1635b8a0dc485e525e69
[ "MIT" ]
1
2019-01-19T07:12:05.000Z
2019-01-19T07:12:05.000Z
class CFG(object): def __init__(self, bytecode=None, instructions=None, analysis=True): """ TODO """ raise NotImplementedError def show(self): """ TODO """ raise NotImplementedError
22.4
72
0.607143
6085fd702ec39c5cd8094622f622eb3dbb3e7636
1,533
py
Python
tests/server/utils.py
saurav-c/droplet
37e041816496ac95bc51226c6b3d1cbf429d0ffe
[ "Apache-2.0" ]
null
null
null
tests/server/utils.py
saurav-c/droplet
37e041816496ac95bc51226c6b3d1cbf429d0ffe
[ "Apache-2.0" ]
null
null
null
tests/server/utils.py
saurav-c/droplet
37e041816496ac95bc51226c6b3d1cbf429d0ffe
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 U.C. Berkeley RISE Lab # # 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 agree...
30.66
78
0.71559
35e93b1137e09c8732d1ff844b7cf688524401f0
10,087
py
Python
hyperspectral/terra_common.py
terraref/extractors-hyperspectral
782e3c62088257bb9c8f0f4f1d8943fa02881dc0
[ "BSD-3-Clause" ]
5
2016-10-11T19:05:23.000Z
2020-10-08T03:44:33.000Z
hyperspectral/terra_common.py
terraref/extractors-hyperspectral
782e3c62088257bb9c8f0f4f1d8943fa02881dc0
[ "BSD-3-Clause" ]
27
2017-01-17T21:30:17.000Z
2020-03-12T21:10:26.000Z
hyperspectral/terra_common.py
terraref/extractors-hyperspectral
782e3c62088257bb9c8f0f4f1d8943fa02881dc0
[ "BSD-3-Clause" ]
6
2017-01-18T18:57:00.000Z
2020-11-10T15:12:11.000Z
''' Created on Sep 6, 2016 @author: Zongyang Li ''' import json, sys, utm, re import numpy as np import pandas as pd from datetime import datetime from math import cos, pi from terrautils.betydb import get_site_boundaries from terrautils import betydb # Scanalyzer -> MAC formular @ https://terraref.gitbooks.io/terrar...
34.426621
135
0.562407
62ee9bbfb17e26ed722f105d6922f72126aab964
4,755
py
Python
policy_value_net_numpy.py
ngxson/hobby-AlphaZero-Gomoku-flask
941b1c35b7047e3c47617260de623c54a739bbae
[ "MIT" ]
null
null
null
policy_value_net_numpy.py
ngxson/hobby-AlphaZero-Gomoku-flask
941b1c35b7047e3c47617260de623c54a739bbae
[ "MIT" ]
null
null
null
policy_value_net_numpy.py
ngxson/hobby-AlphaZero-Gomoku-flask
941b1c35b7047e3c47617260de623c54a739bbae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Implement the policy value network using numpy, so that we can play with the trained AI model without installing any DL framwork @author: Junxiao Song """ from __future__ import print_function import numpy as np # some utility functions def softmax(x): probs = np.exp(x - np.max(x)) ...
35.75188
79
0.612618
777692d90c2e739a888f4ad78529e68bbc968351
51,995
py
Python
dask/array/linalg.py
mchi/dask
6a8f17b9df8ac661a72539bfa1fa7b539f1b2280
[ "BSD-3-Clause" ]
1
2019-01-31T02:44:21.000Z
2019-01-31T02:44:21.000Z
dask/array/linalg.py
tomwhite/dask
a555c76fff593f1c4437b91a28e7328ef5e50bc6
[ "BSD-3-Clause" ]
37
2020-10-20T08:30:53.000Z
2020-12-22T13:15:45.000Z
dask/array/linalg.py
tomwhite/dask
a555c76fff593f1c4437b91a28e7328ef5e50bc6
[ "BSD-3-Clause" ]
1
2019-01-31T02:44:12.000Z
2019-01-31T02:44:12.000Z
import operator from numbers import Number import numpy as np import tlz as toolz from ..base import tokenize, wait from ..delayed import delayed from ..blockwise import blockwise from ..highlevelgraph import HighLevelGraph from ..utils import derived_from, apply from .core import dotmany, Array, concatenate, from_de...
34.456594
96
0.563208
d8a895e790ffa49438b10aa6e62579ebeafa05ec
7,930
py
Python
nova/api/openstack/placement/handlers/resource_provider.py
ZhanHan/nova
4033e0166ca16ef380705cfdd928083be8bf4f68
[ "Apache-2.0" ]
1
2019-07-29T10:30:24.000Z
2019-07-29T10:30:24.000Z
nova/api/openstack/placement/handlers/resource_provider.py
ZhanHan/nova
4033e0166ca16ef380705cfdd928083be8bf4f68
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/placement/handlers/resource_provider.py
ZhanHan/nova
4033e0166ca16ef380705cfdd928083be8bf4f68
[ "Apache-2.0" ]
1
2020-07-24T00:40:05.000Z
2020-07-24T00:40:05.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 # d...
34.329004
78
0.686129
8548a160f487fd93874aa05003877074c4aa1882
505
py
Python
bookings/templatetags/bookings_filters.py
Dheavyman/airtech-flight
e6eea7a121d0b372164492532358cd566112285a
[ "MIT" ]
null
null
null
bookings/templatetags/bookings_filters.py
Dheavyman/airtech-flight
e6eea7a121d0b372164492532358cd566112285a
[ "MIT" ]
8
2020-02-11T23:48:18.000Z
2022-03-11T23:43:47.000Z
bookings/templatetags/bookings_filters.py
Dheavyman/airtech-flight
e6eea7a121d0b372164492532358cd566112285a
[ "MIT" ]
null
null
null
from datetime import datetime from django.utils.dateparse import parse_datetime from django.template import Library from django.template.defaultfilters import stringfilter register = Library() @register.filter(name='ctime') @stringfilter def custom_time(value): value = parse_datetime(value) return datetime.s...
25.25
55
0.758416
4ba0fd1b1dcde6a9d460bd58b751baee7bf02140
2,462
py
Python
fakedetection/src/main/docker/extraction/extract_faces_video.py
LafLaurine/imac2-projetTUT
9a57c1bd1ea841fecda894575a8e3a65057addef
[ "MIT" ]
3
2020-02-19T19:16:15.000Z
2021-01-24T13:46:28.000Z
fakedetection/src/main/docker/extraction/extract_faces_video.py
LafLaurine/imac2-projetTUT
9a57c1bd1ea841fecda894575a8e3a65057addef
[ "MIT" ]
5
2022-02-14T17:46:40.000Z
2022-02-27T20:21:36.000Z
fakedetection/src/main/docker/extraction/extract_faces_video.py
LafLaurine/imac2-projetTUT
9a57c1bd1ea841fecda894575a8e3a65057addef
[ "MIT" ]
null
null
null
import json import distutils.util import youtube_dl import os import redis from flask import Flask from extract.face_extraction import FaceExtractor app = Flask(__name__) cache = redis.Redis(host='redis', port=6379) # base arguments type_tracker = "CSRT" are_saved = True log_enabled = True min_confidence = 0.85 sta...
33.726027
98
0.672218
efd87d10e3bb1910d6dcd902e310e125303c8fa1
1,275
py
Python
SpringSemester2021/13_Clustering_Evaluation-AdvancedMethods/Ex13_02_Sol.py
KretschiGL/DataScienceLecture
e6bbb3efd531b08aa4757fb6e89d12e959678a44
[ "MIT" ]
1
2021-05-09T11:02:35.000Z
2021-05-09T11:02:35.000Z
SpringSemester2021/13_Clustering_Evaluation-AdvancedMethods/Ex13_02_Sol.py
KretschiGL/DataScienceLecture
e6bbb3efd531b08aa4757fb6e89d12e959678a44
[ "MIT" ]
null
null
null
SpringSemester2021/13_Clustering_Evaluation-AdvancedMethods/Ex13_02_Sol.py
KretschiGL/DataScienceLecture
e6bbb3efd531b08aa4757fb6e89d12e959678a44
[ "MIT" ]
1
2020-05-26T15:35:40.000Z
2020-05-26T15:35:40.000Z
# Init Solution import numpy as np import pandas as pd import matplotlib.pyplot as plt %matplotlib inline import seaborn as sns sns.set() from IPython.display import display, Markdown # Init Solution completed display(Markdown("##### Loading Data")) data = pd.read_csv("./Ex13_02_Data.csv") display(data.head(5)) disp...
27.717391
91
0.705882
6324d02fceb8ac5a82479f779bf5dea1537ecd56
131
py
Python
1_Kithgard_Dungeon/022-Descending_Further/descending_further.py
katitek/Code-Combat
fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef
[ "MIT" ]
null
null
null
1_Kithgard_Dungeon/022-Descending_Further/descending_further.py
katitek/Code-Combat
fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef
[ "MIT" ]
null
null
null
1_Kithgard_Dungeon/022-Descending_Further/descending_further.py
katitek/Code-Combat
fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef
[ "MIT" ]
null
null
null
# You need the Elemental codex 1+ to cast "Haste" hero.cast("haste", hero) while True: hero.moveRight(2) hero.moveDown()
16.375
49
0.671756
0b314e4a11cb3f82bdeb311d91234c19979c20b4
4,226
py
Python
python/paddle/utils/code_gen/generate_op.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
8
2016-08-15T07:02:27.000Z
2016-08-24T09:34:00.000Z
python/paddle/utils/code_gen/generate_op.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
null
null
null
python/paddle/utils/code_gen/generate_op.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle 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 ap...
37.070175
112
0.718883
432ed559a0ccdf973a8121809951d46ce9338c3a
58,537
py
Python
fasm2bels/models/verilog_modeling.py
litghost/symbiflow-xc-fasm2bels
9ed2a4d9033fb9bf80060114b6b122a2b7c296d7
[ "0BSD" ]
null
null
null
fasm2bels/models/verilog_modeling.py
litghost/symbiflow-xc-fasm2bels
9ed2a4d9033fb9bf80060114b6b122a2b7c296d7
[ "0BSD" ]
null
null
null
fasm2bels/models/verilog_modeling.py
litghost/symbiflow-xc-fasm2bels
9ed2a4d9033fb9bf80060114b6b122a2b7c296d7
[ "0BSD" ]
null
null
null
""" Core classes for modelling a bitstream back into verilog and routes. There are 3 modelling elements: - Bel: A synthesizable element. - Site: A collection of Bel's, routing sinks and routing sources. - Module: The root container for all Sites The modelling approach works as so: BELs represent a particular tec...
32.665737
89
0.575158
07af0f6ad1b5f5b814370764ddd8020b4ae72c83
9,282
py
Python
tensorflow_model_analysis/extractors/predict_extractor_v2.py
Bobgy/model-analysis
a964d2e8430b447c898d271fb6e6d8f5b99adf4b
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/extractors/predict_extractor_v2.py
Bobgy/model-analysis
a964d2e8430b447c898d271fb6e6d8f5b99adf4b
[ "Apache-2.0" ]
1
2020-03-03T03:34:37.000Z
2020-03-03T03:34:37.000Z
tensorflow_model_analysis/extractors/predict_extractor_v2.py
Bobgy/model-analysis
a964d2e8430b447c898d271fb6e6d8f5b99adf4b
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
44.411483
80
0.721935
e0b401fdbdc4badab53f36d8a3ec8c715c080548
9,783
py
Python
lehrer_funktionen.py
astroPythoner/Lehrer_vs_Zombies
4f9f933f502da803db5936a32c15df26f67a198a
[ "MIT" ]
1
2020-02-02T21:03:49.000Z
2020-02-02T21:03:49.000Z
lehrer_funktionen.py
astroPythoner/Lehrer_vs_Zombies
4f9f933f502da803db5936a32c15df26f67a198a
[ "MIT" ]
null
null
null
lehrer_funktionen.py
astroPythoner/Lehrer_vs_Zombies
4f9f933f502da803db5936a32c15df26f67a198a
[ "MIT" ]
null
null
null
# Diese Funktioen werden aufgerufen, wenn das entsprechende Eregniss im Spiel passiert. # Sollte beim hinzufuegen eines neuen Lehrers vergessen werden die Funktionen in dieser Datei hinzuzufuegen werden sie in constants.py automatisch erstellt from constants import * from sprites import * def is_zombie_close_to_playe...
37.918605
187
0.696003
c9287284285ad2e8f6d354b41fdd4159cda2c11e
18,390
py
Python
Scripts/SongRequest/Library/song_request_parent_wrapper.py
Vasar007/Streamlabs-Chatbot-Scripts
5f3dacf249100ef5054a17f0eb15bb0c39e60a4d
[ "Apache-2.0" ]
1
2021-04-15T14:48:09.000Z
2021-04-15T14:48:09.000Z
Scripts/SongRequest/Library/song_request_parent_wrapper.py
Vasar007/Streamlabs-Chatbot-Scripts
5f3dacf249100ef5054a17f0eb15bb0c39e60a4d
[ "Apache-2.0" ]
null
null
null
Scripts/SongRequest/Library/song_request_parent_wrapper.py
Vasar007/Streamlabs-Chatbot-Scripts
5f3dacf249100ef5054a17f0eb15bb0c39e60a4d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- class SongRequestParentWrapper(object): r""" "Parent" object wrapper. """ def __init__(self, Parent): self._Parent = Parent # Messages And Events. def send_stream_message(self, message): r""" Sends message to the stream chat. void Sen...
30.599002
139
0.621697
61fb23d382d3a04d0d0084e8049e86b46a75782f
792
py
Python
workers/pull_request_worker/runtime.py
theamankumarsingh/augur
3ae0c4d6e4fb9b6dfddff02a92a170763e9bf8bd
[ "MIT" ]
443
2018-09-19T00:30:36.000Z
2022-03-31T11:39:13.000Z
workers/pull_request_worker/runtime.py
theamankumarsingh/augur
3ae0c4d6e4fb9b6dfddff02a92a170763e9bf8bd
[ "MIT" ]
613
2018-09-19T18:31:13.000Z
2022-03-31T05:41:16.000Z
workers/pull_request_worker/runtime.py
theamankumarsingh/augur
3ae0c4d6e4fb9b6dfddff02a92a170763e9bf8bd
[ "MIT" ]
764
2018-10-17T01:08:10.000Z
2022-03-31T05:25:01.000Z
#SPDX-License-Identifier: MIT from flask import Flask, jsonify, request, Response import click, os, json, requests, logging from workers.pull_request_worker.pull_request_worker import GitHubPullRequestWorker from workers.util import create_server, WorkerGunicornApplication def main(): """ Declares singular worker ...
33
125
0.719697
57e642eb953450edcd41673ee1af07397ce6ad1a
580
py
Python
src/openprocurement/tender/simpledefense/views/tender_document.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
10
2020-02-18T01:56:21.000Z
2022-03-28T00:32:57.000Z
src/openprocurement/tender/simpledefense/views/tender_document.py
quintagroup/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
26
2018-07-16T09:30:44.000Z
2021-02-02T17:51:30.000Z
src/openprocurement/tender/simpledefense/views/tender_document.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
15
2019-08-08T10:50:47.000Z
2022-02-05T14:13:36.000Z
# -*- coding: utf-8 -*- from openprocurement.tender.core.utils import optendersresource from openprocurement.tender.openuadefense.views.tender_document import TenderUaDocumentResource as TenderDocumentResource @optendersresource( name="simple.defense:Tender Documents", collection_path="/tenders/{tender_id}/do...
38.666667
121
0.791379
89c2cb7c19793c0ac66a07b900c79de6f9ad02b6
40,425
py
Python
sdks/python/apache_beam/runners/common.py
azurezyq/beam
6518abfb3ea47a4802d76ca3c405c3f66e48eaa2
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sdks/python/apache_beam/runners/common.py
azurezyq/beam
6518abfb3ea47a4802d76ca3c405c3f66e48eaa2
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sdks/python/apache_beam/runners/common.py
azurezyq/beam
6518abfb3ea47a4802d76ca3c405c3f66e48eaa2
[ "Apache-2.0", "BSD-3-Clause" ]
1
2019-10-26T12:26:16.000Z
2019-10-26T12:26:16.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...
38.426806
80
0.706568
efae19e100c6f4590c8de08748d90a1723da7d21
3,194
py
Python
bbp/comps/lf_seismograms.py
ZhangHCFJEA/bbp
33bd999cf8d719c49f9a904872c62f02eb5850d1
[ "BSD-3-Clause" ]
28
2017-10-31T09:16:30.000Z
2022-02-28T23:44:29.000Z
bbp/comps/lf_seismograms.py
ZhangHCFJEA/bbp
33bd999cf8d719c49f9a904872c62f02eb5850d1
[ "BSD-3-Clause" ]
37
2017-05-23T15:15:35.000Z
2022-02-05T09:13:18.000Z
bbp/comps/lf_seismograms.py
ZhangHCFJEA/bbp
33bd999cf8d719c49f9a904872c62f02eb5850d1
[ "BSD-3-Clause" ]
26
2017-09-21T17:43:33.000Z
2021-11-29T06:34:30.000Z
#!/usr/bin/env python """ Copyright 2010-2017 University Of Southern California Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
37.139535
79
0.550094
170889e931ecb837b8df989651cccbb37d626ca4
516
py
Python
src/bot.py
Tomodachi94/DiscordBotTemplate.py
9f4c79a7ec46049bfe4331ca63e044936e004f05
[ "MIT" ]
null
null
null
src/bot.py
Tomodachi94/DiscordBotTemplate.py
9f4c79a7ec46049bfe4331ca63e044936e004f05
[ "MIT" ]
null
null
null
src/bot.py
Tomodachi94/DiscordBotTemplate.py
9f4c79a7ec46049bfe4331ca63e044936e004f05
[ "MIT" ]
null
null
null
from discord.ext import commands # This imports the Discord package for use in the bot. import os from python_dotenv import load_dotenv # You'll need this package to load your token from .env. # It is an encouraged practice to keep tokens etc out of source. bot = commands.Bot(command_prefix="!") for filename in os.l...
28.666667
64
0.71124
1a188fded8aecf9c12638e060a1e147df4d185bd
500
py
Python
plyer/facades/keystore.py
EdwardCoventry/plyer
4002b21fe1a664e80b422547b8ae04d2a2d3037d
[ "MIT" ]
1,184
2015-01-02T23:24:46.000Z
2022-03-27T16:28:16.000Z
plyer/facades/keystore.py
EdwardCoventry/plyer
4002b21fe1a664e80b422547b8ae04d2a2d3037d
[ "MIT" ]
469
2015-01-02T09:23:15.000Z
2022-03-17T10:35:58.000Z
plyer/facades/keystore.py
EdwardCoventry/plyer
4002b21fe1a664e80b422547b8ae04d2a2d3037d
[ "MIT" ]
431
2015-01-05T23:00:43.000Z
2022-03-15T04:20:03.000Z
class Keystore: ''' Keyring facade .. versionadded:: x.x.x ''' def set_key(self, servicename, key, value, **kwargs): self._set_key(servicename, key, value, **kwargs) def _set_key(self, servicename, key, value, **kwargs): raise NotImplementedError() def get_...
25
59
0.612
4049136315cd5585c903354251f145117ceaf780
2,525
py
Python
imu.py
robotika/husky
bbe57fc80a9d2e99c027a57390af07df064e826e
[ "MIT" ]
3
2016-02-16T02:02:25.000Z
2021-08-06T20:39:11.000Z
imu.py
robotika/husky
bbe57fc80a9d2e99c027a57390af07df064e826e
[ "MIT" ]
null
null
null
imu.py
robotika/husky
bbe57fc80a9d2e99c027a57390af07df064e826e
[ "MIT" ]
1
2018-03-15T03:37:06.000Z
2018-03-15T03:37:06.000Z
#!/usr/bin/python """ Light weight wrapper for Chrobotics UM6 IMU usage: ./imu.py <task> [<replay log file> [F|FF]] """ # https://www.chrobotics.com/docs/UM6_datasheet.pdf # http://wiki.ros.org/um6 import sys import serial import struct from logit import * # page 42 UM6_GYRO_RAW_XY = 0x56 UM6_GYRO_PROC_XY = ...
26.578947
96
0.547327
e7c5af77cef865b29569ca4159590da6cc270520
5,281
py
Python
gui.py
mayurrkukreja/image-captioning
a2b185dac18f807d7efa8677c8899a8744b580d8
[ "MIT" ]
3
2021-11-05T20:23:18.000Z
2021-11-15T11:10:07.000Z
gui.py
mayurrkukreja/image-captioning
a2b185dac18f807d7efa8677c8899a8744b580d8
[ "MIT" ]
null
null
null
gui.py
mayurrkukreja/image-captioning
a2b185dac18f807d7efa8677c8899a8744b580d8
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import filedialog from tkinter import * from PIL import ImageTk, Image import numpy as np import cv2 #load the trained model to classify sign from keras.models import load_model from keras.preprocessing.sequence import pad_sequences from keras.models import Model from keras.applicatio...
33.213836
93
0.655747
9b6ffb197fcf72baa34dfbd2d05d560b70d0e21c
10,926
py
Python
y2018/control_loops/python/intake_simple.py
Ewpratten/frc_971_mirror
3a8a0c4359f284d29547962c2b4c43d290d8065c
[ "BSD-2-Clause" ]
39
2021-06-18T03:22:30.000Z
2022-03-21T15:23:43.000Z
y2018/control_loops/python/intake_simple.py
Ewpratten/frc_971_mirror
3a8a0c4359f284d29547962c2b4c43d290d8065c
[ "BSD-2-Clause" ]
10
2021-06-18T03:22:19.000Z
2022-03-18T22:14:15.000Z
y2018/control_loops/python/intake_simple.py
Ewpratten/frc_971_mirror
3a8a0c4359f284d29547962c2b4c43d290d8065c
[ "BSD-2-Clause" ]
4
2021-08-19T19:20:04.000Z
2022-03-08T07:33:18.000Z
#!/usr/bin/python3 # This code was used to select the gear ratio for the intake. # Run it from the command line and it displays the time required # to rotate the intake 180 degrees. # # Michael Schuh # January 20, 2018 import math import numpy import scipy.integrate pi = math.pi pi2 = 2.0 * pi rad_to_deg = 180.0 / p...
39.875912
96
0.663372
da6d1735a3913e4b7dc03fd05c7f34bea012ae7d
3,215
py
Python
h/util/redirects.py
tgiardina/rpp-h
fece590f901b052a59c19a24acfeba52cee33c84
[ "BSD-2-Clause" ]
null
null
null
h/util/redirects.py
tgiardina/rpp-h
fece590f901b052a59c19a24acfeba52cee33c84
[ "BSD-2-Clause" ]
null
null
null
h/util/redirects.py
tgiardina/rpp-h
fece590f901b052a59c19a24acfeba52cee33c84
[ "BSD-2-Clause" ]
null
null
null
""" Utilities for processing a set of redirect specifications from a text file. Redirects can be specified in a simple text-based format, in which each line consists of three whitespace-delimited fields: <source path> <redirect type> <destination> The redirect type can be one of the following: exact ...
33.14433
81
0.621773
fe8af25575e0b7e3d2eba74246f100488e972c93
1,252
py
Python
sorts/bead_sort.py
sourcery-ai-bot/Python
f1444aca73068e0c55f60ec63b12c53b402e54dd
[ "MIT" ]
1
2020-08-28T18:25:45.000Z
2020-08-28T18:25:45.000Z
sorts/bead_sort.py
sourcery-ai-bot/Python
f1444aca73068e0c55f60ec63b12c53b402e54dd
[ "MIT" ]
1
2020-08-28T18:24:31.000Z
2020-08-28T19:35:47.000Z
sorts/bead_sort.py
MKiperszmid/Python
6b368e6ab2fa1a839b029fd45e127521bbe76005
[ "MIT" ]
null
null
null
""" Bead sort only works for sequences of nonegative integers. https://en.wikipedia.org/wiki/Bead_sort """ def bead_sort(sequence: list) -> list: """ >>> bead_sort([6, 11, 12, 4, 1, 5]) [1, 4, 5, 6, 11, 12] >>> bead_sort([9, 8, 7, 6, 5, 4 ,3, 2, 1]) [1, 2, 3, 4, 5, 6, 7, 8, 9] >>> bead_sort(...
28.454545
80
0.557508
cca6169f382994f4fe7a3e6f0a3a84d6c2f802b4
6,017
py
Python
software_keyboard/low_level_serial_to_keyboard.py
TolgaReis/simulator-console
35837d886c1e34208d9b89343591db2cdedf5d65
[ "Apache-2.0" ]
null
null
null
software_keyboard/low_level_serial_to_keyboard.py
TolgaReis/simulator-console
35837d886c1e34208d9b89343591db2cdedf5d65
[ "Apache-2.0" ]
null
null
null
software_keyboard/low_level_serial_to_keyboard.py
TolgaReis/simulator-console
35837d886c1e34208d9b89343591db2cdedf5d65
[ "Apache-2.0" ]
null
null
null
import ctypes from ctypes import wintypes import time import serial import time import serial.tools.list_ports from flag import Flag from config import Config user32 = ctypes.WinDLL('user32', use_last_error=True) INPUT_KEYBOARD = 1 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVENTF_KEYUP = 0x0002 KEYEVENTF_UNICODE = 0...
34.382857
78
0.491441
4bee0e302a3a2f11e6f48d80f0ee40de4a4232aa
1,134
py
Python
queue_and_stack/get_closing_paren.py
Oyekunle-Mark/eat-that-cake
85b46ae5e7aad38d0827ac68ae7492a95ced74a3
[ "MIT" ]
1
2021-10-31T14:39:33.000Z
2021-10-31T14:39:33.000Z
queue_and_stack/get_closing_paren.py
Oyekunle-Mark/eat-that-cake
85b46ae5e7aad38d0827ac68ae7492a95ced74a3
[ "MIT" ]
null
null
null
queue_and_stack/get_closing_paren.py
Oyekunle-Mark/eat-that-cake
85b46ae5e7aad38d0827ac68ae7492a95ced74a3
[ "MIT" ]
1
2021-10-31T14:39:34.000Z
2021-10-31T14:39:34.000Z
def get_closing_paren(sentence, opening_paren_index): # check if the starting parenthesis is a closing one if sentence[opening_paren_index] != '(': # raise an exception raise IndexError("Starting position must be an opening parenthesis") # instantiate paren_count to zero paren_count = 0...
36.580645
76
0.659612
e41a69996d940a164ebe0a3444d20fdeda21b770
324
py
Python
provdbconnector/tests/__init__.py
Ama-Gi/prov-neo4j-covid19-track
67a79694ad3b48c34dd263f1508c0bdfbc6702fb
[ "Apache-2.0" ]
15
2016-09-21T22:27:45.000Z
2022-01-17T15:44:42.000Z
provdbconnector/tests/__init__.py
Ama-Gi/prov-neo4j-covid19-track
67a79694ad3b48c34dd263f1508c0bdfbc6702fb
[ "Apache-2.0" ]
87
2016-09-19T13:26:05.000Z
2022-03-16T04:16:47.000Z
provdbconnector/tests/__init__.py
Ama-Gi/prov-neo4j-covid19-track
67a79694ad3b48c34dd263f1508c0bdfbc6702fb
[ "Apache-2.0" ]
3
2016-10-17T19:25:10.000Z
2020-06-26T12:38:34.000Z
from provdbconnector.tests.db_adapters.test_baseadapter import AdapterTestTemplate from provdbconnector.tests.test_prov_db import ProvDbTestTemplate import unittest def additional_tests(): from examples.tests.test_examples import ExamplesTest return unittest.defaultTestLoader.loadTestsFromTestCase(ExamplesTes...
32.4
82
0.867284
66d25f1e356e572a5ecc20ea7a53e523f8a19b54
1,271
py
Python
custom_components/fpl/sensor_AverageDailySensor.py
Dominic7/hass-fpl
fa5ba8a1b6f2e0b0c812edfe5568074c7c42a764
[ "MIT" ]
12
2020-10-16T15:13:03.000Z
2022-03-23T15:16:00.000Z
custom_components/fpl/sensor_AverageDailySensor.py
Dominic7/hass-fpl
fa5ba8a1b6f2e0b0c812edfe5568074c7c42a764
[ "MIT" ]
27
2020-01-18T19:30:32.000Z
2022-03-28T22:27:33.000Z
custom_components/fpl/sensor_AverageDailySensor.py
Dominic7/hass-fpl
fa5ba8a1b6f2e0b0c812edfe5568074c7c42a764
[ "MIT" ]
16
2020-06-16T16:45:37.000Z
2022-03-24T03:26:03.000Z
from .fplEntity import FplEntity class FplAverageDailySensor(FplEntity): def __init__(self, coordinator, config, account): super().__init__(coordinator, config, account, "Daily Average") @property def state(self): budget = self.getData("budget_bill") budget_billing_projected_bill ...
27.042553
80
0.685287
12e522a10c2acffbcb6d2bbcfafd0d7d0e46274d
4,439
py
Python
st2reactor/tests/unit/test_hash_partitioner.py
momokuri-3/st2
0a7038723d701b433d7079b843cc76d4bf1ae8c9
[ "Apache-2.0" ]
4,920
2015-01-01T15:12:17.000Z
2022-03-31T19:31:15.000Z
st2reactor/tests/unit/test_hash_partitioner.py
momokuri-3/st2
0a7038723d701b433d7079b843cc76d4bf1ae8c9
[ "Apache-2.0" ]
3,563
2015-01-05T19:02:19.000Z
2022-03-31T19:23:09.000Z
st2reactor/tests/unit/test_hash_partitioner.py
momokuri-3/st2
0a7038723d701b433d7079b843cc76d4bf1ae8c9
[ "Apache-2.0" ]
774
2015-01-01T20:41:24.000Z
2022-03-31T13:25:29.000Z
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
36.089431
106
0.642712
42a0df208dc7e36c3faeec0f02fb36a96a1f1dcf
73
py
Python
pdfplumber/_version.py
OisinMoran/pdfplumber
eb8aef5eb1591561a9b3e80a507f9bf66abea4fd
[ "MIT" ]
1
2019-06-14T12:24:43.000Z
2019-06-14T12:24:43.000Z
pdfplumber/_version.py
yooongchun/pdfplumber
eb8aef5eb1591561a9b3e80a507f9bf66abea4fd
[ "MIT" ]
null
null
null
pdfplumber/_version.py
yooongchun/pdfplumber
eb8aef5eb1591561a9b3e80a507f9bf66abea4fd
[ "MIT" ]
null
null
null
version_info = (0, 5, 10) __version__ = '.'.join(map(str, version_info))
24.333333
46
0.671233
19970dae577f3811fd081fbc166f2a66e2a0beca
1,710
py
Python
epuck-nav/controllers/robot_controller/robot_controller.py
lucas-emery/webots-rl-options
67cf4442ab74cc4734e00d4854014f4fc7b144d8
[ "MIT" ]
2
2020-07-11T16:32:17.000Z
2021-02-01T13:00:11.000Z
epuck-nav/controllers/robot_controller/robot_controller.py
lucas-emery/webots-rl-options
67cf4442ab74cc4734e00d4854014f4fc7b144d8
[ "MIT" ]
null
null
null
epuck-nav/controllers/robot_controller/robot_controller.py
lucas-emery/webots-rl-options
67cf4442ab74cc4734e00d4854014f4fc7b144d8
[ "MIT" ]
null
null
null
from deepbots.robots.controllers.robot_emitter_receiver_csv import RobotEmitterReceiverCSV class EpuckRobot(RobotEmitterReceiverCSV): def __init__(self): super().__init__(emitter_name='EPUCK_EMMITER', receiver_name='EPUCK_RECEIVER', timestep=32) s...
34.897959
90
0.627485
ab94603d03f67adccd7238aa9e21f58c8750152d
2,671
py
Python
dbt/clients/git.py
managedbyq/q-dbt
01f1918fe5cbf3036b7197b8e3211960403718f3
[ "Apache-2.0" ]
1
2018-06-20T17:51:20.000Z
2018-06-20T17:51:20.000Z
dbt/clients/git.py
managedbyq/q-dbt
01f1918fe5cbf3036b7197b8e3211960403718f3
[ "Apache-2.0" ]
null
null
null
dbt/clients/git.py
managedbyq/q-dbt
01f1918fe5cbf3036b7197b8e3211960403718f3
[ "Apache-2.0" ]
null
null
null
import re import os.path from dbt.clients.system import run_cmd, rmdir from dbt.logger import GLOBAL_LOGGER as logger import dbt.exceptions def clone(repo, cwd, dirname=None, remove_git_dir=False): clone_cmd = ['git', 'clone', '--depth', '1', repo] if dirname is not None: clone_cmd.append(dirname) ...
29.032609
78
0.608012
ba83cb473275e491ac7ba59dccb3d1c99750212e
530
py
Python
cap11/ex1/consulta3.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap11/ex1/consulta3.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap11/ex1/consulta3.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
import sqlite3 from contextlib import closing nome = input('Produto a pesquisar: ') with sqlite3.connect('precos.db') as con: with closing(con.cursor()) as cursor: cursor.execute('select * from precos where nome = ?', (nome,)) x = 0 while True: res = cursor.fetchone() ...
31.176471
70
0.496226
027ac8a1452dee7af67efb71ccb13ac752bb0767
4,062
py
Python
tools/make_ctocpp_header.py
chromium-googlesource-mirror/chromiumembedded
f659ddbeb58e957a3c57a309cdcfc52c999fe719
[ "BSD-3-Clause" ]
97
2015-05-03T20:16:08.000Z
2021-11-16T13:16:25.000Z
tools/make_ctocpp_header.py
chromium-googlesource-mirror/chromiumembedded
f659ddbeb58e957a3c57a309cdcfc52c999fe719
[ "BSD-3-Clause" ]
3
2020-10-16T03:15:20.000Z
2020-10-26T15:31:01.000Z
tools/make_ctocpp_header.py
chromium-googlesource-mirror/chromiumembedded
f659ddbeb58e957a3c57a309cdcfc52c999fe719
[ "BSD-3-Clause" ]
29
2015-03-28T02:20:33.000Z
2021-10-29T20:58:28.000Z
# Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights # reserved. Use of this source code is governed by a BSD-style license that # can be found in the LICENSE file. from cef_parser import * def make_ctocpp_header(header, clsname): cls = header.get_class(clsname) if cls is None: rai...
33.02439
94
0.604874
d80be2db3bc02b155576c5853c3c286177fedb1d
9,665
py
Python
contrib/bitrpc/bitrpc.py
RocketFund/RocketFundCoin
8acb4bdbc113c2aa5df46da6af576822bc48857e
[ "MIT" ]
4
2019-11-27T22:24:55.000Z
2020-11-18T18:24:54.000Z
contrib/bitrpc/bitrpc.py
RocketFund/RocketFundCoin
8acb4bdbc113c2aa5df46da6af576822bc48857e
[ "MIT" ]
null
null
null
contrib/bitrpc/bitrpc.py
RocketFund/RocketFundCoin
8acb4bdbc113c2aa5df46da6af576822bc48857e
[ "MIT" ]
1
2020-03-28T11:39:27.000Z
2020-03-28T11:39:27.000Z
from jsonrpc import ServiceProxy import sys import string import getpass # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:36144") ...
28.594675
101
0.573513
771afc4aa6bbda45e23efa16fea5cfc800f7ea5d
6,190
py
Python
stethoscope/plugins/sources/jamf/base.py
pjmorr/stethoscope
2d054b90d06dd54d2241c7d646b276d112e223df
[ "Apache-2.0" ]
null
null
null
stethoscope/plugins/sources/jamf/base.py
pjmorr/stethoscope
2d054b90d06dd54d2241c7d646b276d112e223df
[ "Apache-2.0" ]
2
2021-04-30T21:38:37.000Z
2022-02-11T03:48:36.000Z
stethoscope/plugins/sources/jamf/base.py
pjmorr/stethoscope
2d054b90d06dd54d2241c7d646b276d112e223df
[ "Apache-2.0" ]
null
null
null
# vim: set fileencoding=utf-8 : from __future__ import absolute_import, print_function, unicode_literals import arrow import logbook import stethoscope.plugins.sources.jamf.utils as jutils import stethoscope.validation import stethoscope.configurator import stethoscope.utils logger = logbook.Logger(__name__) def...
33.825137
100
0.649758
09485c75a6ac4c1f3f56fa564f2eeb302da206d0
1,191
py
Python
food_premises_registration/factory.py
openregister/food-premises-registration
352176ecddfa91e2469f3e7f30323bcc5a8caf39
[ "MIT" ]
null
null
null
food_premises_registration/factory.py
openregister/food-premises-registration
352176ecddfa91e2469f3e7f30323bcc5a8caf39
[ "MIT" ]
null
null
null
food_premises_registration/factory.py
openregister/food-premises-registration
352176ecddfa91e2469f3e7f30323bcc5a8caf39
[ "MIT" ]
1
2021-04-11T08:30:54.000Z
2021-04-11T08:30:54.000Z
# -*- coding: utf-8 -*- '''The app module, containing the app factory function.''' from flask import Flask, render_template # from fsa_approved_premises.extensions import ( # #add as needed # ) def asset_path_context_processor(): return {'asset_path': '/static/'} def create_app(config_filename): ''' An ...
29.775
73
0.718724
3272ef05af39b19d111ef81e4abdd1f0c740cb61
171
py
Python
Python_Challenge_115/2/2.py
LIkelion-at-KOREATECH/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
28
2019-10-15T13:15:26.000Z
2021-11-08T08:23:45.000Z
Python_Challenge_115/2/2.py
jhleed/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
null
null
null
Python_Challenge_115/2/2.py
jhleed/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
17
2019-09-09T00:15:36.000Z
2021-01-28T13:08:51.000Z
''' Statement Given a two-digit integer, swap its digits and print the result. Example input 79 Example output 97 ''' a = int(input()) print(str(a % 10) + str(a // 10))
13.153846
64
0.672515
167e2afa0accaf9cfc98f6a1fda5758d225a8776
276
py
Python
python/myAutoSsh/myAutoSsh.py
william-shang/myShowcase
5c7adf2f6ddbab7282591b0df5cca7dc6a1b479e
[ "MIT" ]
1
2019-07-14T07:40:04.000Z
2019-07-14T07:40:04.000Z
python/myAutoSsh/myAutoSsh.py
william-shang/myShowcase
5c7adf2f6ddbab7282591b0df5cca7dc6a1b479e
[ "MIT" ]
4
2020-02-26T20:22:13.000Z
2021-09-23T23:24:12.000Z
python/myAutoSsh/myAutoSsh.py
william-shang/myShowcase
5c7adf2f6ddbab7282591b0df5cca7dc6a1b479e
[ "MIT" ]
null
null
null
import paramiko from myVarConf import mySshVars if __name__ == "__main__": s = paramiko.SSHClient() s.load_system_host_keys() s.connect(hostname, port, username, password) stdin, stdout, stderr = s.exec_command('uptime') print stdout.read() s.close()
25.090909
52
0.699275
d03b65bdc21d9d33d270d4e393acbf7cbf8839cc
19,909
py
Python
psyneulink/library/models/Cohen_Huston1994_horse_race.py
SamKG/PsyNeuLink
70558bcd870868e1688cb7a7c424d29ca336f2df
[ "Apache-2.0" ]
null
null
null
psyneulink/library/models/Cohen_Huston1994_horse_race.py
SamKG/PsyNeuLink
70558bcd870868e1688cb7a7c424d29ca336f2df
[ "Apache-2.0" ]
77
2020-10-01T06:27:19.000Z
2022-03-31T02:03:33.000Z
psyneulink/library/models/Cohen_Huston1994_horse_race.py
SamKG/PsyNeuLink
70558bcd870868e1688cb7a7c424d29ca336f2df
[ "Apache-2.0" ]
null
null
null
import argparse import numpy as np import psyneulink as pnl parser = argparse.ArgumentParser() parser.add_argument('--no-plot', action='store_false', help='Disable plotting', dest='enable_plot') parser.add_argument('--threshold', type=float, help='Termination threshold for response output (default: %(default)f)', def...
53.808108
217
0.556683
534595e76603b68cf90098d0a128cc87ff0a2f23
1,086
py
Python
backend/app/models/event.py
gustavoCorreiaGonzalez/hackathon_ccr
42e1fac0499bcec44b0730ca54e4effcc1014923
[ "MIT" ]
null
null
null
backend/app/models/event.py
gustavoCorreiaGonzalez/hackathon_ccr
42e1fac0499bcec44b0730ca54e4effcc1014923
[ "MIT" ]
1
2020-06-15T01:49:14.000Z
2020-06-15T01:49:14.000Z
backend/app/models/event.py
gustavoCorreiaGonzalez/hackathon_ccr
42e1fac0499bcec44b0730ca54e4effcc1014923
[ "MIT" ]
null
null
null
from app import db, ma class Event(db.Model): __tablename__ = 'events' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(255), unique=True, nullable=False) descripton = db.Column(db.String(255), nullable=False) date = db.Column(db.Date(), nullable=False) # "bem estar...
32.909091
92
0.657459
c03ea544cd2cd3429c3c028698afe0cb76d32f41
10,663
py
Python
tests/ut/python/dataset/test_datasets_voc.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
4
2021-01-26T09:14:01.000Z
2021-01-26T09:17:24.000Z
tests/ut/python/dataset/test_datasets_voc.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset/test_datasets_voc.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
36.642612
115
0.644284
4af9af5c40fa40446f105bfaa6d68591776e8020
5,004
py
Python
DigitRecognizer/cnn_solution.py
zhong110020/Kaggle
981dfd7a8f3fbb2b6545cafec6877b39aed3d16d
[ "MIT" ]
12
2017-01-02T03:29:35.000Z
2019-07-08T11:20:32.000Z
DigitRecognizer/cnn_solution.py
zhong110020/Kaggle
981dfd7a8f3fbb2b6545cafec6877b39aed3d16d
[ "MIT" ]
null
null
null
DigitRecognizer/cnn_solution.py
zhong110020/Kaggle
981dfd7a8f3fbb2b6545cafec6877b39aed3d16d
[ "MIT" ]
14
2017-11-25T16:09:09.000Z
2019-04-07T04:54:15.000Z
import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data import pandas as pd '''加载数据''' mnist = pd.read_csv(r'data/train.csv') train_labels = mnist['label'] train_images = mnist.iloc[:,1:] train_images.astype(np.float) train_images = np.multiply(train_images, 1.0/255.0) t...
35.239437
136
0.676859
26abe8af77cb73bdf9bbee348e473c10463db026
36,046
py
Python
desktop/libs/notebook/src/notebook/api.py
sungpeo/hue
3be162ce57af272cb117fadacd7f6a790667fb9f
[ "Apache-2.0" ]
null
null
null
desktop/libs/notebook/src/notebook/api.py
sungpeo/hue
3be162ce57af272cb117fadacd7f6a790667fb9f
[ "Apache-2.0" ]
null
null
null
desktop/libs/notebook/src/notebook/api.py
sungpeo/hue
3be162ce57af272cb117fadacd7f6a790667fb9f
[ "Apache-2.0" ]
1
2021-07-30T09:50:35.000Z
2021-07-30T09:50:35.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
35.166829
170
0.700466
a126c0b0ac01a98766c9969f91f94228a342b6c4
349
py
Python
IPython/kernel/__init__.py
dchichkov/ipython
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
[ "BSD-3-Clause-Clear" ]
1
2018-09-24T13:45:40.000Z
2018-09-24T13:45:40.000Z
IPython/kernel/__init__.py
dchichkov/ipython
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
[ "BSD-3-Clause-Clear" ]
3
2015-04-01T13:14:57.000Z
2015-05-26T16:01:37.000Z
IPython/kernel/__init__.py
dchichkov/ipython
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
[ "BSD-3-Clause-Clear" ]
1
2015-05-17T14:14:26.000Z
2015-05-17T14:14:26.000Z
"""IPython.kernel has been replaced by IPython.parallel. The previous version of IPython's parallel library was located at this location (IPython.kernel). It has been moved to the IPython.parallel subpackage and has been refactored to use zeromq/pyzmq instead of twisted. Please see INSERT URL for further details. """...
31.727273
74
0.799427
119e4ae0aca4c8cfd392f2d5fc310aa1caeb25ef
5,567
py
Python
myneighborhood/settings.py
nimowairimu/My-neighborhood
23e66f221a0bc864dcc12309d02079dbfce6123c
[ "MIT" ]
null
null
null
myneighborhood/settings.py
nimowairimu/My-neighborhood
23e66f221a0bc864dcc12309d02079dbfce6123c
[ "MIT" ]
null
null
null
myneighborhood/settings.py
nimowairimu/My-neighborhood
23e66f221a0bc864dcc12309d02079dbfce6123c
[ "MIT" ]
null
null
null
""" Django settings for myneighborhood project. Generated by 'django-admin startproject' using Django 3.2. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pa...
25.420091
91
0.694629
b893ff291c15e86162b5a330575e4a2abddbc2f2
809
py
Python
Final-Term/2-A/fitbit_max5.py
ISKU/DataScience
a94aeb9316765db47a3ee2ae383f9073a73de2a2
[ "Apache-2.0" ]
1
2017-06-27T12:14:14.000Z
2017-06-27T12:14:14.000Z
Final-Term/2-A/fitbit_max5.py
ISKU/DataScience
a94aeb9316765db47a3ee2ae383f9073a73de2a2
[ "Apache-2.0" ]
null
null
null
Final-Term/2-A/fitbit_max5.py
ISKU/DataScience
a94aeb9316765db47a3ee2ae383f9073a73de2a2
[ "Apache-2.0" ]
null
null
null
import csv import json import operator from pathlib import Path fitbit_file = open('fitbit.csv', 'r') fitbit = csv.DictReader(fitbit_file) fitbitmax = [] for info in fitbit : fitbitmax.append(info) for i, line in fitbitmax: fitbitmax[i]['step'] = int(fitbitmax[i]['step']) print('step') fitbitmax.sort(key =...
24.515152
68
0.629172
fb70546f846db2b6b28b62d4c007d1cecf167025
5,016
py
Python
lib/recipetool/shift_oelint_adv/rule_base/rule_var_src_uri.py
shift-left-test/meta-shift
effce9bea894f990703cc047157e3f30d53d9365
[ "MIT" ]
2
2022-01-19T02:39:43.000Z
2022-02-07T01:58:17.000Z
lib/recipetool/shift_oelint_adv/rule_base/rule_var_src_uri.py
shift-left-test/meta-shift
effce9bea894f990703cc047157e3f30d53d9365
[ "MIT" ]
null
null
null
lib/recipetool/shift_oelint_adv/rule_base/rule_var_src_uri.py
shift-left-test/meta-shift
effce9bea894f990703cc047157e3f30d53d9365
[ "MIT" ]
null
null
null
from shift_oelint_adv.cls_rule import Rule from shift_oelint_parser.cls_item import Variable from shift_oelint_parser.helper_files import get_scr_components from shift_oelint_parser.parser import INLINE_BLOCK class VarSRCUriOptions(Rule): def __init__(self): super(VarSRCUriOptions, self).__init__(id='oeli...
30.585366
124
0.381579
5d17bf7a3ca27ded44e36e809fd44bde4ca81c6a
8,809
py
Python
evaluation/evaluation.py
karamsa/GreatSQL
7d9cd7eadbffbaef2dbf47a823a5818482bdf623
[ "BSD-3-Clause" ]
4
2021-02-04T14:01:05.000Z
2022-03-23T12:47:20.000Z
evaluation/evaluation.py
karamsa/GreatSQL
7d9cd7eadbffbaef2dbf47a823a5818482bdf623
[ "BSD-3-Clause" ]
null
null
null
evaluation/evaluation.py
karamsa/GreatSQL
7d9cd7eadbffbaef2dbf47a823a5818482bdf623
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import json from argparse import ArgumentParser from tqdm import tqdm from collections import OrderedDict def load_normal_file(path): array = [] with open(path, 'r', encoding='utf-8') as fp: for cnt, line in enumerate(fp): array.append(line.strip()) return ...
36.251029
165
0.632875
af1b2ca02ee9d112a1853e19dc7df6fc8cea7d7b
779
py
Python
K-Nearest Neighbor/BreastCancer/breast_cancer.py
paramkpr/MessingWithML
aa5a811cb8171cc3798f3fe8b26ae16e8ea8a8b4
[ "MIT" ]
2
2020-08-08T11:46:42.000Z
2020-08-08T11:53:49.000Z
K-Nearest Neighbor/BreastCancer/breast_cancer.py
psrth/MessingWithML
92ad9efd18decd020cfcffb56bc84de16f9aaf02
[ "MIT" ]
null
null
null
K-Nearest Neighbor/BreastCancer/breast_cancer.py
psrth/MessingWithML
92ad9efd18decd020cfcffb56bc84de16f9aaf02
[ "MIT" ]
2
2018-04-30T07:01:49.000Z
2020-06-26T11:03:08.000Z
import numpy as np from sklearn import preprocessing, model_selection, neighbors import pandas as pd df = (pd.read_csv('breast-cancer-wisconsin.data.txt')) df.replace('?', -99999, inplace=True) df.drop(['id'], 1, inplace=True) X = np.array(df.drop(['class'], 1)) y = np.array(df['class']) X = preprocessing.scale(X) ...
27.821429
88
0.735558
cbbd94471220853e4d088b3cde67e8c73860723c
25,330
py
Python
git/test/test_docs.py
csantizo/GitPython
cf8dc259fcc9c1397ea67cec3a6a4cb5816e3e68
[ "BSD-3-Clause" ]
1
2019-11-01T11:45:22.000Z
2019-11-01T11:45:22.000Z
git/test/test_docs.py
99/GitPython
32da7feb496ef31c48b5cbe4e37a4c68ed1b7dd5
[ "BSD-3-Clause" ]
3
2020-02-11T23:03:45.000Z
2021-06-10T18:05:11.000Z
git/test/test_docs.py
99/GitPython
32da7feb496ef31c48b5cbe4e37a4c68ed1b7dd5
[ "BSD-3-Clause" ]
1
2019-11-01T11:38:54.000Z
2019-11-01T11:38:54.000Z
# -*- coding: utf-8 -*- # test_git.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import os from git.test.lib import TestBase from git.test.lib.helper import...
51.171717
196
0.630043
f9b796dd0b8d7aefde42bfd75cf52ba80886f3d2
1,596
py
Python
test.py
megvii-research/NBNet
73112b185e022d0920f2f45c34c5bcf7c581d983
[ "Apache-2.0" ]
91
2021-04-17T12:17:47.000Z
2022-03-31T12:51:22.000Z
test.py
megvii-research/NBNet
73112b185e022d0920f2f45c34c5bcf7c581d983
[ "Apache-2.0" ]
10
2021-05-24T06:09:44.000Z
2022-03-22T09:07:07.000Z
test.py
megvii-research/NBNet
73112b185e022d0920f2f45c34c5bcf7c581d983
[ "Apache-2.0" ]
13
2021-04-19T02:48:06.000Z
2022-03-31T12:51:21.000Z
#!/usr/bin/env python3 from dataset import SIDDValData from model import UNetD import megengine.data as data from utils import batch_PSNR from tqdm import tqdm import argparse import pickle import megengine def test(args): valid_dataset = SIDDValData(args.data) valid_sampler = data.SequentialSampler( ...
28
109
0.648496
d9b612a09c9c66500daad47b91251690b701947d
13,293
py
Python
src/main.py
zzangjinsun/NLSPN_ECCV20
ba33fa5d9ea62ca970026a145ab18fab76d79d4a
[ "MIT" ]
181
2020-07-10T12:45:59.000Z
2022-03-16T14:51:35.000Z
src/main.py
BinuxLiu/NLSPN_ECCV20
46dfa4c42fc380a1261b4f7175753b897ec9bfb0
[ "MIT" ]
40
2020-08-21T02:47:51.000Z
2022-01-17T14:02:55.000Z
src/main.py
BinuxLiu/NLSPN_ECCV20
46dfa4c42fc380a1261b4f7175753b897ec9bfb0
[ "MIT" ]
42
2020-09-14T12:53:48.000Z
2022-03-27T16:57:58.000Z
""" Non-Local Spatial Propagation Network for Depth Completion Jinsun Park, Kyungdon Joo, Zhe Hu, Chi-Kuei Liu and In So Kweon European Conference on Computer Vision (ECCV), Aug 2020 Project Page : https://github.com/zzangjinsun/NLSPN_ECCV20 Author : Jinsun Park (zzangjinsun@kaist.ac.kr) ====...
30.006772
80
0.564959
067ad4885ca3826e320529e901808f0330119bf1
6,136
py
Python
python/test/reader_test.py
christosbampis/vmaf
33e8dc675ace44dd1412b318c31eb3378612744c
[ "Apache-2.0" ]
null
null
null
python/test/reader_test.py
christosbampis/vmaf
33e8dc675ace44dd1412b318c31eb3378612744c
[ "Apache-2.0" ]
1
2018-09-05T16:33:08.000Z
2018-09-05T16:33:08.000Z
python/test/reader_test.py
christosbampis/vmaf
33e8dc675ace44dd1412b318c31eb3378612744c
[ "Apache-2.0" ]
2
2018-09-05T03:59:46.000Z
2018-09-18T03:57:52.000Z
__copyright__ = "Copyright 2016-2017, Netflix, Inc." __license__ = "Apache, Version 2.0" import unittest import numpy as np from vmaf.config import VmafConfig from vmaf.tools.reader import YuvReader class YuvReaderTest(unittest.TestCase): def test_yuv_reader(self): yuv_reader = YuvReader( f...
35.674419
101
0.597132
592f231f643578055d1b79bc1f07512b3b58be04
4,637
py
Python
kube-hunter.py
ccojocar/kube-hunter
d050f18cd43ff583a7f95275dc20caeba87f10d3
[ "Apache-2.0" ]
null
null
null
kube-hunter.py
ccojocar/kube-hunter
d050f18cd43ff583a7f95275dc20caeba87f10d3
[ "Apache-2.0" ]
null
null
null
kube-hunter.py
ccojocar/kube-hunter
d050f18cd43ff583a7f95275dc20caeba87f10d3
[ "Apache-2.0" ]
null
null
null
#!/bin/env python from __future__ import print_function import argparse import logging try: raw_input # Python 2 except NameError: raw_input = input # Python 3 parser = argparse.ArgumentParser(description='Kube-Hunter - hunts for security weaknesses in Kubernetes clusters') parser.add_argument('--l...
36.226563
134
0.650421
215930627df591578a414fbeebe0f22a875c5297
9,307
py
Python
qmeq_elph/approach/redfield.py
gedaskir/qmeq_elph
8330d8df32b92f928b33c8cfaa3a309655b34f02
[ "BSD-2-Clause" ]
1
2020-01-10T17:46:35.000Z
2020-01-10T17:46:35.000Z
qmeq_elph/approach/redfield.py
gedaskir/qmeq_elph
8330d8df32b92f928b33c8cfaa3a309655b34f02
[ "BSD-2-Clause" ]
null
null
null
qmeq_elph/approach/redfield.py
gedaskir/qmeq_elph
8330d8df32b92f928b33c8cfaa3a309655b34f02
[ "BSD-2-Clause" ]
null
null
null
"""Module containing python functions, which generate first order Redfield kernel.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import itertools from .neumann1 import generate_w1fct_elph from ..aprclass import Approach_elph from qm...
61.635762
128
0.46191
2328649003e3e8e6de63a5369ae34269d0346723
9,968
py
Python
midca/modules/_plan/pyhop.py
COLAB2/midca
18d6b13e3d6b0d980cd3453196e82fad7302e79b
[ "MIT" ]
12
2018-01-23T01:31:33.000Z
2022-02-03T04:47:10.000Z
midca/modules/_plan/pyhop.py
COLAB2/midca
18d6b13e3d6b0d980cd3453196e82fad7302e79b
[ "MIT" ]
32
2017-11-02T20:58:03.000Z
2021-04-15T18:59:27.000Z
midca/modules/_plan/pyhop.py
COLAB2/midca
18d6b13e3d6b0d980cd3453196e82fad7302e79b
[ "MIT" ]
5
2017-12-01T17:28:01.000Z
2020-03-18T14:43:32.000Z
""" Pyhop, version 1.2.1 -- a simple SHOP-like planner written in Python. Author: Dana S. Nau, 15 February 2013 Copyright 2013 Dana S. Nau - http://www.cs.umd.edu/~nau Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obta...
39.555556
95
0.649177
20597fa839fe7595f351861bd1c4c5b3911e0a45
905
py
Python
examples/undocumented/python_modular/kernel_io_modular.py
srgnuclear/shogun
33c04f77a642416376521b0cd1eed29b3256ac13
[ "Ruby", "MIT" ]
1
2015-11-05T18:31:14.000Z
2015-11-05T18:31:14.000Z
examples/undocumented/python_modular/kernel_io_modular.py
waderly/shogun
9288b6fa38e001d63c32188f7f847dadea66e2ae
[ "Ruby", "MIT" ]
null
null
null
examples/undocumented/python_modular/kernel_io_modular.py
waderly/shogun
9288b6fa38e001d63c32188f7f847dadea66e2ae
[ "Ruby", "MIT" ]
null
null
null
#!/usr/bin/env python traindat = '../data/fm_train_real.dat' testdat = '../data/fm_test_real.dat' parameter_list=[[traindat,testdat,1.9],[traindat,testdat,1.7]] def kernel_io_modular (train_fname=traindat,test_fname=testdat,width=1.9): from modshogun import RealFeatures, GaussianKernel, CSVFile feats_train=RealFea...
25.857143
74
0.771271
338169593570d20540774cf7c0085e37dd33ec7d
2,784
py
Python
storage/models.py
SashaPoraiko/academy-storage
387f236971085fde605c2a12b53b1734a925759a
[ "Unlicense", "MIT" ]
null
null
null
storage/models.py
SashaPoraiko/academy-storage
387f236971085fde605c2a12b53b1734a925759a
[ "Unlicense", "MIT" ]
7
2020-06-05T23:54:27.000Z
2022-02-10T10:36:29.000Z
storage/models.py
SashaPoraiko/academy-storage
387f236971085fde605c2a12b53b1734a925759a
[ "Unlicense", "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.core.validators import MaxValueValidator, MinValueValidator class PhoneModel(models.Model): brand_choices = [ ('APPLE', 'Apple'), ('SAMSUNG', 'Samsung'), ('XIAOMI', 'Xiaomi'), ] name = models.CharField(max_...
36.631579
104
0.696839
936340413b0ae4c82a1cd1232b928aa9abdff579
802
py
Python
mywebapp/mywebapp/urls.py
diegodiego9/py-django-webapp
e4bd267032a31b8e4116311f047905a2535a2f38
[ "MIT" ]
null
null
null
mywebapp/mywebapp/urls.py
diegodiego9/py-django-webapp
e4bd267032a31b8e4116311f047905a2535a2f38
[ "MIT" ]
null
null
null
mywebapp/mywebapp/urls.py
diegodiego9/py-django-webapp
e4bd267032a31b8e4116311f047905a2535a2f38
[ "MIT" ]
null
null
null
"""mywebapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
34.869565
77
0.703242
6a10766782ceaa82c8b0a978836e8d296ab6c1c2
653
py
Python
manage.py
recommend-games/recommend-games-server
700e4039d8f72e77ac988b02476f84d701fd5225
[ "MIT" ]
1
2021-01-28T18:16:11.000Z
2021-01-28T18:16:11.000Z
manage.py
MarkusShepherd/ludoj-server
6cfb218029e6e1cf520eed1ccab2576c990cd287
[ "MIT" ]
6
2019-12-10T14:03:23.000Z
2021-08-22T13:23:36.000Z
manage.py
MarkusShepherd/ludoj-server
6cfb218029e6e1cf520eed1ccab2576c990cd287
[ "MIT" ]
2
2019-10-11T11:52:06.000Z
2022-01-18T21:56:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ command line script """ import os import sys from dotenv import load_dotenv if __name__ == "__main__": load_dotenv(verbose=True) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rg.settings") try: from django.core.management import execute_from...
25.115385
73
0.675345
c302dcda1cdabdd30bccc5df1dd00c5325cf2c7a
22,783
py
Python
interferogram/sentinel/standard_product_packaging.py
earthobservatory/ariamh-pub
f33731e127f38ff33b02e02c07b16793c07651a6
[ "Apache-2.0" ]
4
2019-11-19T03:35:35.000Z
2020-12-07T18:43:11.000Z
interferogram/sentinel/standard_product_packaging.py
earthobservatory/ariamh-pub
f33731e127f38ff33b02e02c07b16793c07651a6
[ "Apache-2.0" ]
3
2019-06-05T03:35:55.000Z
2020-04-09T14:16:08.000Z
interferogram/sentinel/standard_product_packaging.py
earthobservatory/ariamh-pub
f33731e127f38ff33b02e02c07b16793c07651a6
[ "Apache-2.0" ]
6
2019-08-23T22:53:11.000Z
2021-11-06T15:15:30.000Z
#!/usr/bin/env python3 # By David Bekaert - Jet Propulsion Laboratory from builtins import map from builtins import str from builtins import range from builtins import object import sys import json import logging import traceback from collections import OrderedDict import os from netCDF4 import Dataset import numpy as...
36.925446
191
0.646535
67639e6977583656f7d2ba729059d929c3c5c9d1
122
py
Python
QAQ/webansi/views.py
Brave01/ang
767d964505297d41edb464020781ed312ffbd862
[ "MIT" ]
null
null
null
QAQ/webansi/views.py
Brave01/ang
767d964505297d41edb464020781ed312ffbd862
[ "MIT" ]
null
null
null
QAQ/webansi/views.py
Brave01/ang
767d964505297d41edb464020781ed312ffbd862
[ "MIT" ]
null
null
null
from django.shortcuts import render def home(request): return render(request,'home.html') # Create your views here.
17.428571
38
0.745902
c874fe0ad354c2cefbd73604b0b167cbd1ba9ef9
1,120
py
Python
head_first_design_patterns/factory/factory_method/main.py
incolumepy-cursos/poop
e4ac26b8d2a8c263a93fd9642fab52aafda53d80
[ "MIT" ]
null
null
null
head_first_design_patterns/factory/factory_method/main.py
incolumepy-cursos/poop
e4ac26b8d2a8c263a93fd9642fab52aafda53d80
[ "MIT" ]
null
null
null
head_first_design_patterns/factory/factory_method/main.py
incolumepy-cursos/poop
e4ac26b8d2a8c263a93fd9642fab52aafda53d80
[ "MIT" ]
null
null
null
""" Notes: - The method is defined in an abstract way, so it can be specialized with what varies (object creation) - Store classes inherit from abstract classes - pass the flavour (str) to a fabric and wait for a pizza """ from pizza import Pizza from pizza_store import ChicagoPizzaStore, NYPizzaStore ...
30.27027
77
0.744643
bf4c7a8b33dc1fb82c643e4398195568ab2e1881
2,135
py
Python
services/web/manage.py
nicehorse06/flask-movie-list-on-docker
b7c549ff086cc67ef2eb05472cc5307a773050f5
[ "MIT" ]
1
2022-03-12T17:22:42.000Z
2022-03-12T17:22:42.000Z
services/web/manage.py
nicehorse06/flask-movie-list-on-docker
b7c549ff086cc67ef2eb05472cc5307a773050f5
[ "MIT" ]
null
null
null
services/web/manage.py
nicehorse06/flask-movie-list-on-docker
b7c549ff086cc67ef2eb05472cc5307a773050f5
[ "MIT" ]
null
null
null
import click from flask.cli import FlaskGroup from project import app, db, User, Movie cli = FlaskGroup(app) @cli.command("forge") def forge(): """Generate fake data.""" db.create_all() # 全局的兩個變量移動到這個函數內 name = 'Jimmy Ma' movies = [ {'title': 'My Neighbor Totoro', 'year': '1988'}, ...
25.722892
119
0.592974
327d93b421461b94a256e7f38a743b7c4c9c6a46
9,954
py
Python
django/views/i18n.py
egenerat/gae-django
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
[ "MIT" ]
3
2016-07-08T23:49:32.000Z
2018-04-15T22:55:01.000Z
django/views/i18n.py
egenerat/gae-django
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
[ "MIT" ]
27
2017-02-05T15:57:04.000Z
2018-04-15T22:57:26.000Z
django/views/i18n.py
egenerat/gae-django
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
[ "MIT" ]
null
null
null
import os import gettext as gettext_module from django import http from django.conf import settings from django.utils import importlib from django.utils.translation import check_for_language, activate, to_locale, get_language from django.utils.text import javascript_quote from django.utils.encoding import smar...
35.173145
125
0.599156
df491f0326ac5912e43e5da517ef7f8aca7a47cd
835
py
Python
stock/stockApi/utils/parsers/common.py
minplemon/stockApi
a9fd5310796b5efa15aaf66357eb778c97ab553a
[ "MIT" ]
null
null
null
stock/stockApi/utils/parsers/common.py
minplemon/stockApi
a9fd5310796b5efa15aaf66357eb778c97ab553a
[ "MIT" ]
2
2019-06-28T10:03:10.000Z
2019-06-28T10:03:12.000Z
stock/stockApi/utils/parsers/common.py
minplemon/stockApi
a9fd5310796b5efa15aaf66357eb778c97ab553a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-05-18 10:08 # @Author : minp # @contact : king101125s@gmail.com # @Site : # @File : common.py # @Software: PyCharm from flask_restful import reqparse #0-----通用请求参数----------# request_common = reqparse.RequestParser() request_common.add_argument( ...
21.973684
44
0.653892
16413b915335ee395041354c308266248261e913
427
py
Python
pretrain.py
openpipes/PolicyReader
168c09a638c2fe81b2daf0c36c3e4afb37975358
[ "Apache-2.0" ]
2
2019-12-06T05:27:51.000Z
2019-12-16T09:28:41.000Z
pretrain.py
openpipes/policy-reader
168c09a638c2fe81b2daf0c36c3e4afb37975358
[ "Apache-2.0" ]
null
null
null
pretrain.py
openpipes/policy-reader
168c09a638c2fe81b2daf0c36c3e4afb37975358
[ "Apache-2.0" ]
2
2019-08-21T07:42:59.000Z
2019-08-21T07:55:32.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @theme: pretrained proceeding @author: mario """ """ Pretrain Run this script based on the materials from ./src/ , and generate pre-trained models and indexings. Structure Create Document -> Update Document -> Index Document & Vocabulary ...
19.409091
79
0.63466
defbbcd0e4ba45994c78a063342a326fe1177343
1,153
py
Python
gui/company_list.py
keremkoseoglu/Kifu
bed7a15f71e2345c654b1adab07a5edecdbae342
[ "MIT" ]
null
null
null
gui/company_list.py
keremkoseoglu/Kifu
bed7a15f71e2345c654b1adab07a5edecdbae342
[ "MIT" ]
82
2020-06-25T09:45:01.000Z
2022-03-31T09:35:31.000Z
gui/company_list.py
keremkoseoglu/Kifu
bed7a15f71e2345c654b1adab07a5edecdbae342
[ "MIT" ]
null
null
null
""" Company list window """ import tkinter import tkinter.ttk from typing import List from gui.company_listbox import CompanyListbox from model.company import Company class CompanyList(tkinter.Toplevel): """ Company list window """ _WINDOW_WIDTH = 200 _WINDOW_HEIGHT = 250 def __init__(self, close_ha...
30.342105
90
0.680833
5a40b93bbe0cdd8d53adb114ee718d57a43ee370
2,647
py
Python
logger.py
Chenxuey20/Char2Prosody
e91206337b60b9ca43cd61723bdcbe580682df33
[ "BSD-3-Clause" ]
1
2021-12-28T12:12:05.000Z
2021-12-28T12:12:05.000Z
logger.py
Chenxuey20/Char2Prosody
e91206337b60b9ca43cd61723bdcbe580682df33
[ "BSD-3-Clause" ]
null
null
null
logger.py
Chenxuey20/Char2Prosody
e91206337b60b9ca43cd61723bdcbe580682df33
[ "BSD-3-Clause" ]
1
2022-02-16T02:29:25.000Z
2022-02-16T02:29:25.000Z
import random import torch from torch.utils.tensorboard import SummaryWriter from plotting_utils import plot_alignment_to_numpy, plot_spectrogram_to_numpy from plotting_utils import plot_gate_outputs_to_numpy class Tacotron2Logger(SummaryWriter): def __init__(self, logdir): super(Tacotron2Logger, self).__...
48.127273
134
0.673593
b4d32e48a756ba0f4c4deae6aa0a023766f338b7
2,441
py
Python
scripts/mysql_util.py
wilson-lauw/azkaban
3de6d2879638b678c5621e0fb640f9c0ba73de97
[ "Apache-2.0" ]
3
2019-12-19T00:04:36.000Z
2020-05-07T02:54:56.000Z
scripts/mysql_util.py
wilson-lauw/azkaban
3de6d2879638b678c5621e0fb640f9c0ba73de97
[ "Apache-2.0" ]
null
null
null
scripts/mysql_util.py
wilson-lauw/azkaban
3de6d2879638b678c5621e0fb640f9c0ba73de97
[ "Apache-2.0" ]
3
2018-03-15T04:54:50.000Z
2019-07-15T06:33:58.000Z
#!/usr/bin/python3 import MySQLdb import time import traceback max_retries = 3 retries_interval = 10 def get_db_cur(host, user, passwd, db, dictCursor=False): db = MySQLdb.connect( host=host, user=user, passwd=passwd, db=db, charset='utf8' ) if dictCursor: ...
29.409639
72
0.528472
1c6cf252c9fd82c508b7e98eff5308b32a2af2c6
663
py
Python
setup.py
rjauquet/django-searchable
dc3708e9ee3e35ebbf35798eaabd61aef2069155
[ "MIT" ]
18
2018-10-29T06:42:42.000Z
2021-08-31T10:41:31.000Z
setup.py
rjauquet/django-search
dc3708e9ee3e35ebbf35798eaabd61aef2069155
[ "MIT" ]
5
2020-02-11T22:35:34.000Z
2020-07-17T18:54:05.000Z
setup.py
rjauquet/django-searchable
dc3708e9ee3e35ebbf35798eaabd61aef2069155
[ "MIT" ]
null
null
null
import setuptools with open("README.rst", "r") as fh: long_description = fh.read() setuptools.setup( name='django_searchable', packages=setuptools.find_packages(), install_requires=[ 'Django>=2.x', 'psycopg2-binary>=2.7.4', ], long_description=long_description, version='0.1...
28.826087
86
0.669683
46a70abb6d242ef75244c8dcb7b10e140cc383ab
1,154
py
Python
py/pypomcpp/example.py
tomatenbrei/pomcpp
55522748369bc167420f3ca5b0ecde314ca2fee3
[ "MIT" ]
null
null
null
py/pypomcpp/example.py
tomatenbrei/pomcpp
55522748369bc167420f3ca5b0ecde314ca2fee3
[ "MIT" ]
2
2020-06-30T12:01:51.000Z
2021-05-14T13:57:48.000Z
py/pypomcpp/example.py
tomatenbrei/pomcpp
55522748369bc167420f3ca5b0ecde314ca2fee3
[ "MIT" ]
2
2020-06-30T10:23:43.000Z
2021-08-01T17:24:08.000Z
import pommerman import pommerman.agents as agents from pommerman.agents.simple_agent import SimpleAgent from pypomcpp.cppagent import CppAgent from util import ffa_evaluate from shutil import copyfile lib_path = "./Release/libpomcpp.so" def create_lib_copy(): if hasattr(create_lib_copy, "calls"): create_...
28.146341
74
0.72617
afada1f076aac26513f28cf7550ab63362e93394
392
py
Python
ros/build/twist_controller/catkin_generated/pkg.installspace.context.pc.py
ranamanish/Capstone
44fd6f1fb28d7c88829c52713684b87830a8f138
[ "MIT" ]
null
null
null
ros/build/twist_controller/catkin_generated/pkg.installspace.context.pc.py
ranamanish/Capstone
44fd6f1fb28d7c88829c52713684b87830a8f138
[ "MIT" ]
null
null
null
ros/build/twist_controller/catkin_generated/pkg.installspace.context.pc.py
ranamanish/Capstone
44fd6f1fb28d7c88829c52713684b87830a8f138
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "twist_controller" PROJECT_SPACE_DIR =...
43.555556
68
0.711735
93c0dcfc0c928361d3d9a9ebc0c5b2fc403ce00e
116
py
Python
rand_param_envs/gym/envs/board_game/__init__.py
erinaldi/MetaRL
6dfb8d2e63a1802ca7ef9c28f6ab1a758d07f871
[ "MIT" ]
24
2021-03-24T07:14:52.000Z
2022-03-17T08:15:44.000Z
rand_param_envs/gym/envs/board_game/__init__.py
erinaldi/MetaRL
6dfb8d2e63a1802ca7ef9c28f6ab1a758d07f871
[ "MIT" ]
12
2021-02-02T22:53:59.000Z
2022-03-12T00:41:30.000Z
rand_param_envs/gym/envs/board_game/__init__.py
erinaldi/MetaRL
6dfb8d2e63a1802ca7ef9c28f6ab1a758d07f871
[ "MIT" ]
6
2021-04-12T18:49:47.000Z
2021-09-07T05:33:22.000Z
from rand_param_envs.gym.envs.board_game.go import GoEnv from rand_param_envs.gym.envs.board_game.hex import HexEnv
38.666667
58
0.862069
8885a4601aa5cd3b0aa25be1e361e19bb31136f6
27,391
py
Python
sompy.py
Mind-The-Data/SOMPY
0f03eacd451266f6c776882fbef0034c7d0d34d6
[ "Apache-2.0" ]
null
null
null
sompy.py
Mind-The-Data/SOMPY
0f03eacd451266f6c776882fbef0034c7d0d34d6
[ "Apache-2.0" ]
null
null
null
sompy.py
Mind-The-Data/SOMPY
0f03eacd451266f6c776882fbef0034c7d0d34d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Author: Vahid Moosavi (sevamoo@gmail.com) # Chair For Computer Aided Architectural Design, ETH Zurich # Future Cities Lab # www.vahidmoosavi.com # Contributor: Sebastian Packmann (sebastian.packmann@gmail.com) import tempfile import os import itertools import loggi...
38.043056
171
0.598992
f4e8ecfcc562dc6cf9b5e71dd4aab11db10bc559
1,519
py
Python
fhirclient/r4models/range.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/range.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/range.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/Range) on 2019-05-07. # 2019, SMART Health IT. from . import element class Range(element.Element): """ Set of values bounded by low and high. A set of ordered Qua...
30.38
103
0.589203
d9cb0b04c815221e50ab523b6a76df4b994d1d19
1,491
py
Python
Web Scrapping/api_blogger.py
100rabmittal/python-Automations
f57bac14478a82fa4014fa795aeb622c0f59d30d
[ "MIT" ]
null
null
null
Web Scrapping/api_blogger.py
100rabmittal/python-Automations
f57bac14478a82fa4014fa795aeb622c0f59d30d
[ "MIT" ]
null
null
null
Web Scrapping/api_blogger.py
100rabmittal/python-Automations
f57bac14478a82fa4014fa795aeb622c0f59d30d
[ "MIT" ]
null
null
null
from __future__ import print_function __author__ = 'sourabh.mittal50@google.com (Sourabh Mittal)' import sys from oauth2client import client from googleapiclient import sample_tools import requests import json class blog: def svc(): # Authenticate and construct service. service, flags = sample_tools.ini...
28.132075
106
0.637156
0861c2ca5912cf26aba21547f30db98ae27ceeef
15,285
py
Python
tests/test_check_stake.py
luk-kop/verus-stake-notification
b93f06f7f30b26bce48cdf87464419a9cbe3d10f
[ "MIT" ]
null
null
null
tests/test_check_stake.py
luk-kop/verus-stake-notification
b93f06f7f30b26bce48cdf87464419a9cbe3d10f
[ "MIT" ]
null
null
null
tests/test_check_stake.py
luk-kop/verus-stake-notification
b93f06f7f30b26bce48cdf87464419a9cbe3d10f
[ "MIT" ]
null
null
null
import os from pathlib import Path from unittest import mock from new_stake_script.check_new_stake import StakeTransaction, StakeTransactions, VerusStakeChecker, \ ApiGatewayCognito def test_process_exist(dummy_process): """ GIVEN VerusProcess object WHEN created VerusProcess object with 'name' attri...
40.223684
120
0.764868
9a96c602ff4be77b7b3bcf4d3b6461a17ba245d4
2,598
py
Python
pymcuprog/deviceinfo/devices/attiny1614.py
KrystianD-contribution/pymcuprog
a9411a8e4a5db8b54517c51da0bae96bf8385a65
[ "MIT" ]
28
2021-05-08T19:28:33.000Z
2022-03-23T06:23:13.000Z
pymcuprog/deviceinfo/devices/attiny1614.py
KrystianD-contribution/pymcuprog
a9411a8e4a5db8b54517c51da0bae96bf8385a65
[ "MIT" ]
20
2021-05-24T19:20:39.000Z
2022-03-12T20:10:30.000Z
pymcuprog/deviceinfo/devices/attiny1614.py
KrystianD-contribution/pymcuprog
a9411a8e4a5db8b54517c51da0bae96bf8385a65
[ "MIT" ]
11
2021-06-24T20:59:16.000Z
2022-03-23T23:59:38.000Z
""" Required device info for the attiny1614 devices The following data was collected from device pack Microchip.ATtiny_DFP 2.7.128 """ from pymcuprog.deviceinfo.eraseflags import ChiperaseEffect DEVICE_INFO = { 'interface': 'UPDI', 'name': 'attiny1614', 'architecture': 'avr8x', # eeprom 'eeprom_...
30.209302
78
0.727098
4f7e3f458d1922b5200284393803e812252b1bf0
1,853
py
Python
torchclas/utils/io_func.py
hua1024/OpenClas
446b3f6f8cf5cc390c86d6e2674e525aeaa3a552
[ "Apache-2.0" ]
null
null
null
torchclas/utils/io_func.py
hua1024/OpenClas
446b3f6f8cf5cc390c86d6e2674e525aeaa3a552
[ "Apache-2.0" ]
1
2021-05-23T13:47:51.000Z
2021-05-24T11:39:32.000Z
torchclas/utils/io_func.py
hua1024/OpenClas
446b3f6f8cf5cc390c86d6e2674e525aeaa3a552
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # @Time : 2020/10/28 9:34 # @Auto : zzf-jeff from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import re import shutil import torch import yaml import time from pathlib import Path from tensorboardX import Summa...
30.883333
93
0.678359
85302807d4afec7bd899b98ff8c7d2ebe5d2cf71
12,629
py
Python
tools/test.py
Ultimaker/mbed-os
2d0fe8429d9c2d483946ee41b59b869b8e493b2c
[ "Apache-2.0", "BSD-3-Clause" ]
2
2020-12-07T03:48:15.000Z
2021-12-22T10:53:11.000Z
tools/test.py
Ultimaker/mbed-os
2d0fe8429d9c2d483946ee41b59b869b8e493b2c
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tools/test.py
Ultimaker/mbed-os
2d0fe8429d9c2d483946ee41b59b869b8e493b2c
[ "Apache-2.0", "BSD-3-Clause" ]
1
2018-05-17T06:16:33.000Z
2018-05-17T06:16:33.000Z
#! /usr/bin/env python2 """ mbed SDK Copyright (c) 2011-2013 ARM Limited 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 applicabl...
42.955782
158
0.58334
65b757b7a24e0b8392709b0277a146d06828936e
744
py
Python
examples/sample-ui-dialog_activity-button.py
tqchagas/AndroidViewClient
f1e11c587717b061c4d4434a21c2eb464b464ae0
[ "Apache-2.0" ]
1,155
2015-01-07T06:41:35.000Z
2022-03-31T07:06:05.000Z
examples/sample-ui-dialog_activity-button.py
tqchagas/AndroidViewClient
f1e11c587717b061c4d4434a21c2eb464b464ae0
[ "Apache-2.0" ]
154
2015-01-11T03:33:19.000Z
2022-03-03T04:35:06.000Z
examples/sample-ui-dialog_activity-button.py
tqchagas/AndroidViewClient
f1e11c587717b061c4d4434a21c2eb464b464ae0
[ "Apache-2.0" ]
307
2015-01-14T15:52:59.000Z
2022-01-30T02:33:56.000Z
#! /usr/bin/env python ''' Copyright (C) 2012 Diego Torres Milano Created on Aug 31, 2012 @author: diego ''' import re import sys import os # This must be imported before MonkeyRunner and MonkeyDevice, # otherwise the import fails. # PyDev sets PYTHONPATH, use it try: for p in os.environ['PYTHONPATH'].split(':...
20.666667
80
0.711022
d5064b5d98ac9b966ba126f5600151006c7a57bd
13,138
py
Python
src/prediction_ann_13.py
acmlia/ann_training
8cb39123203445cf79c4bd65350fa4063705a518
[ "MIT" ]
null
null
null
src/prediction_ann_13.py
acmlia/ann_training
8cb39123203445cf79c4bd65350fa4063705a518
[ "MIT" ]
null
null
null
src/prediction_ann_13.py
acmlia/ann_training
8cb39123203445cf79c4bd65350fa4063705a518
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Apr 1 23:04:36 2019 @author: rainfall """ from __future__ import absolute_import, division, print_function import os import time import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from sklearn.externals impor...
40.928349
151
0.485919
d088d694ffddcae1a8f475b0b6c1062b7744d7cf
946
py
Python
demo/vgg16_lstm_train.py
chen0040/keras-image-captioning
cfe4ba019dfa5dfd1d0c0e7b5812dbb2d4aa5bd4
[ "MIT" ]
2
2018-03-01T10:03:08.000Z
2018-10-27T01:46:06.000Z
demo/vgg16_lstm_train.py
chen0040/keras-image-captioning
cfe4ba019dfa5dfd1d0c0e7b5812dbb2d4aa5bd4
[ "MIT" ]
null
null
null
demo/vgg16_lstm_train.py
chen0040/keras-image-captioning
cfe4ba019dfa5dfd1d0c0e7b5812dbb2d4aa5bd4
[ "MIT" ]
3
2018-03-01T10:03:09.000Z
2021-04-10T21:28:14.000Z
from keras_image_captioning.library.img_cap_loader import load_img_cap from keras_image_captioning.library.text_fit import fit_text from keras_image_captioning.library.vgg16_lstm import Vgg16LstmImgCap import numpy as np from sklearn.model_selection import train_test_split def main(): seed = 42 max_vocab_size...
31.533333
101
0.766385
6471a4b583b6e4148c44fe1c646001f699d2876d
471
py
Python
assets/Poser/Reality/Runtime/Libraries/light/Reality/SingleIBLs/Circle/Large/Circle_Large_50.py
Red54/reality
510d4f5fde2f4c5535482f1ea199f914102b8a2a
[ "BSD-3-Clause" ]
null
null
null
assets/Poser/Reality/Runtime/Libraries/light/Reality/SingleIBLs/Circle/Large/Circle_Large_50.py
Red54/reality
510d4f5fde2f4c5535482f1ea199f914102b8a2a
[ "BSD-3-Clause" ]
null
null
null
assets/Poser/Reality/Runtime/Libraries/light/Reality/SingleIBLs/Circle/Large/Circle_Large_50.py
Red54/reality
510d4f5fde2f4c5535482f1ea199f914102b8a2a
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) Pret-a-3D/Paolo Ciccone. All rights reserved. # Modified by Fuzzy70/Lee Furssedonn with kind permission from Paolo Ciccone # from Reality_services import * from Reality import * # To customize this script all you need to do is to # change the following variable Re_sIBL_Map = ":Runtime:Text...
31.4
80
0.762208
0490f90a6f8df2d75ef6757ad1aef5b078e6c396
3,067
py
Python
lang/py/avro/errors.py
sunjstack/avro
5bd7cfe0bf742d0482bf6f54b4541b4d22cc87d9
[ "Apache-2.0" ]
1
2021-05-12T01:49:16.000Z
2021-05-12T01:49:16.000Z
lang/py/avro/errors.py
sunjstack/avro
5bd7cfe0bf742d0482bf6f54b4541b4d22cc87d9
[ "Apache-2.0" ]
159
2020-12-02T07:01:07.000Z
2022-03-27T05:01:56.000Z
lang/py/avro/errors.py
sunjstack/avro
5bd7cfe0bf742d0482bf6f54b4541b4d22cc87d9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- mode: python -*- # -*- coding: utf-8 -*- ## # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to ...
34.077778
99
0.735246
a887b6d048599564d64582727c35a911b6b92e36
5,678
py
Python
bfillings/fasttree_v1.py
gregcaporaso/burrito-fillings
a7b3b4db0d20b4baa064d447033782969f491622
[ "BSD-3-Clause" ]
null
null
null
bfillings/fasttree_v1.py
gregcaporaso/burrito-fillings
a7b3b4db0d20b4baa064d447033782969f491622
[ "BSD-3-Clause" ]
null
null
null
bfillings/fasttree_v1.py
gregcaporaso/burrito-fillings
a7b3b4db0d20b4baa064d447033782969f491622
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #----------------------------------------------------------------------------- # Copyright (c) 2013--, biocore development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------...
38.890411
78
0.590173
e94010fb212141a6830254adbc47c260b98c6b87
815
py
Python
args_predict.py
meirof/aipnd-project
2922e0b2644e11e8dc363e9321ab2bf9ff805ad8
[ "MIT" ]
null
null
null
args_predict.py
meirof/aipnd-project
2922e0b2644e11e8dc363e9321ab2bf9ff805ad8
[ "MIT" ]
null
null
null
args_predict.py
meirof/aipnd-project
2922e0b2644e11e8dc363e9321ab2bf9ff805ad8
[ "MIT" ]
null
null
null
import argparse def set_args(): """ Validate the train.py argument running from command line """ parser = argparse.ArgumentParser() parser.add_argument('--img_file', required = True,type = str, help = ' <Fulle path image file name >') parser.add_argument('--cpt', required = True,type...
40.75
109
0.620859
0d902c69812b64755651027f631b21a5ec654c99
4,264
py
Python
starthinker/task/email/run.py
viohman/starthinker
20bd2d7fd1e541eb8a2c9b7159941f667e22e38e
[ "Apache-2.0" ]
null
null
null
starthinker/task/email/run.py
viohman/starthinker
20bd2d7fd1e541eb8a2c9b7159941f667e22e38e
[ "Apache-2.0" ]
6
2021-03-19T12:00:18.000Z
2022-02-10T09:43:42.000Z
starthinker/task/email/run.py
viohman/starthinker
20bd2d7fd1e541eb8a2c9b7159941f667e22e38e
[ "Apache-2.0" ]
null
null
null
########################################################################### # # 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 # # https://www.apache.org/l...
34.387097
136
0.659709