hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
136d5996f3e902f896a0d95201a3a98051d0cce2
1,553
py
Python
apart/search.py
ruslan-ok/ServerApps
541aa12f1933054a12f590ce78544178be374669
[ "MIT" ]
1
2021-06-07T02:14:13.000Z
2021-06-07T02:14:13.000Z
apart/search.py
ruslan-ok/ServerApps
541aa12f1933054a12f590ce78544178be374669
[ "MIT" ]
9
2021-08-14T07:53:47.000Z
2022-03-18T19:07:22.000Z
apart/search.py
ruslan-ok/ServerApps
541aa12f1933054a12f590ce78544178be374669
[ "MIT" ]
null
null
null
from django.db.models import Q from hier.search import SearchResult from .models import app_name, Apart, Meter, Bill, Service, Price def search(user, query): result = SearchResult(query) lookups = Q(name__icontains=query) | Q(addr__icontains=query) items = Apart.objects.filter(user = user.id).filter(l...
45.676471
146
0.696072
0
0
0
0
0
0
0
0
50
0.032196
136df33d64bf85a2b5e33607c10d78558114c0b0
5,884
py
Python
pyrevolve/experiment_management.py
MRebolle/Battery-Robot
1b97e8c77cf7eff7d5cc7e417b4e5ec97e4011e7
[ "Apache-1.1" ]
null
null
null
pyrevolve/experiment_management.py
MRebolle/Battery-Robot
1b97e8c77cf7eff7d5cc7e417b4e5ec97e4011e7
[ "Apache-1.1" ]
null
null
null
pyrevolve/experiment_management.py
MRebolle/Battery-Robot
1b97e8c77cf7eff7d5cc7e417b4e5ec97e4011e7
[ "Apache-1.1" ]
null
null
null
import os import shutil import numpy as np from pyrevolve.custom_logging.logger import logger import sys class ExperimentManagement: # ids of robots in the name of all types of files are always phenotype ids, and the standard for id is 'robot_ID' def __init__(self, settings): self.settings = settings...
41.730496
181
0.653977
5,776
0.981645
0
0
150
0.025493
0
0
991
0.168423
136e61a21e482a156b8b710f63c002d29a6f7812
2,136
py
Python
books/model/Instrumentation.py
nudglabs/books-python-wrappers
8844eca8fe681542644a70749b72a6dc4e48c171
[ "MIT" ]
9
2015-04-01T08:59:49.000Z
2022-01-27T01:27:45.000Z
books/model/Instrumentation.py
nudglabs/books-python-wrappers
8844eca8fe681542644a70749b72a6dc4e48c171
[ "MIT" ]
3
2020-05-14T04:22:22.000Z
2021-08-06T11:19:03.000Z
books/model/Instrumentation.py
nudglabs/books-python-wrappers
8844eca8fe681542644a70749b72a6dc4e48c171
[ "MIT" ]
11
2016-04-14T10:59:36.000Z
2020-08-19T13:26:05.000Z
#$Id$ class Instrumentation: """This class is used tocreate object for instrumentation.""" def __init__(self): """Initialize parameters for Instrumentation object.""" self.query_execution_time = '' self.request_handling_time = '' self.response_write_time = '' self.page_c...
25.428571
67
0.627341
2,127
0.995787
0
0
0
0
0
0
1,019
0.47706
136f314f36b3d7d707a24bb2dc1a76fc985f86a7
1,079
py
Python
DPR/setup.py
sophiaalthammer/parm
ecf2dce5ee225b18e1ed3736a86696cc81e0797c
[ "MIT" ]
18
2022-01-06T13:03:40.000Z
2022-03-29T14:24:23.000Z
DPR/setup.py
k-for-code/parm
ecf2dce5ee225b18e1ed3736a86696cc81e0797c
[ "MIT" ]
1
2022-01-20T08:45:19.000Z
2022-01-24T05:18:40.000Z
DPR/setup.py
k-for-code/parm
ecf2dce5ee225b18e1ed3736a86696cc81e0797c
[ "MIT" ]
4
2021-05-27T08:33:18.000Z
2022-02-20T17:45:40.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from setuptools import setup with open("README.md") as f: readme = f.read() setup( name="dpr", version="...
25.690476
69
0.594995
0
0
0
0
0
0
0
0
641
0.594069
136f33f06908f09a707c44642cdf5eac1e23e341
2,817
py
Python
leetcode/hard/smallest_range/srcs/a_with_ordered_dict.py
BillionsRichard/pycharmWorkspace
709e2681fc6d85ff52fb25717215a365f51073aa
[ "Apache-2.0" ]
null
null
null
leetcode/hard/smallest_range/srcs/a_with_ordered_dict.py
BillionsRichard/pycharmWorkspace
709e2681fc6d85ff52fb25717215a365f51073aa
[ "Apache-2.0" ]
null
null
null
leetcode/hard/smallest_range/srcs/a_with_ordered_dict.py
BillionsRichard/pycharmWorkspace
709e2681fc6d85ff52fb25717215a365f51073aa
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ @version: v1.0 @author: Richard @license: Apache Licence @contact: [email protected] @site: @software: PyCharm @time: 2019/9/12 20:37 """ from pprint import pprint as pp from operator import itemgetter import time from collections import OrderedDict from hard.smallest_range.srcs....
31.651685
311
0.547746
1,619
0.573097
0
0
0
0
0
0
1,055
0.373451
136ff9b25221822f1896aad526fbb94d03b405cd
4,887
py
Python
pcf/particle/gcp/storage/storage.py
davidyum/Particle-Cloud-Framework
f6325a60a3838f86bd73bf4071438e12f9c68f8d
[ "Apache-2.0" ]
null
null
null
pcf/particle/gcp/storage/storage.py
davidyum/Particle-Cloud-Framework
f6325a60a3838f86bd73bf4071438e12f9c68f8d
[ "Apache-2.0" ]
null
null
null
pcf/particle/gcp/storage/storage.py
davidyum/Particle-Cloud-Framework
f6325a60a3838f86bd73bf4071438e12f9c68f8d
[ "Apache-2.0" ]
null
null
null
from pcf.core.gcp_resource import GCPResource from pcf.core import State import logging from google.cloud import storage from google.cloud import exceptions logger = logging.getLogger(__name__) class Storage(GCPResource): """ This is the implementation of Google's storage service. """ flavor = "stor...
28.91716
104
0.602415
4,688
0.95928
0
0
0
0
0
0
2,192
0.448537
13700654033637b55b5386791b563e0e83f1b925
498
py
Python
cimcb/utils/smooth.py
CIMCB/cimcb
5d30f80423ed94e1068871b30e465b38d451581a
[ "MIT" ]
5
2020-05-26T23:45:40.000Z
2022-01-13T00:40:14.000Z
cimcb/utils/smooth.py
CIMCB/cimcb
5d30f80423ed94e1068871b30e465b38d451581a
[ "MIT" ]
3
2020-10-20T09:03:18.000Z
2021-11-01T14:22:05.000Z
cimcb/utils/smooth.py
KevinMMendez/cimcb
fe831253b122ed0ff9e33cbd160ef721abee1e38
[ "MIT" ]
4
2020-10-12T07:17:43.000Z
2022-03-28T06:28:44.000Z
import numpy as np def smooth(a, WSZ): # a: NumPy 1-D array containing the data to be smoothed # WSZ: smoothing window size needs, which must be odd number, # as in the original MATLAB implementation if WSZ % 2 == 0: WSZ = WSZ - 1 out0 = np.convolve(a, np.ones(WSZ, dtype=int), 'valid') / W...
33.2
65
0.588353
0
0
0
0
0
0
0
0
165
0.331325
13710731fb3b914385bee296e01c654e62f3641b
11,810
py
Python
ezeeai/core/extensions/best_exporter.py
jmarine/ezeeai
091b4ce3bc5794c534084bff3301b15ba8a9be1a
[ "Apache-2.0" ]
19
2019-06-12T03:14:59.000Z
2021-05-31T16:02:53.000Z
ezeeai/core/extensions/best_exporter.py
jmarine/ezeeai
091b4ce3bc5794c534084bff3301b15ba8a9be1a
[ "Apache-2.0" ]
29
2019-06-27T10:15:38.000Z
2022-03-11T23:46:36.000Z
ezeeai/core/extensions/best_exporter.py
jmarine/ezeeai
091b4ce3bc5794c534084bff3301b15ba8a9be1a
[ "Apache-2.0" ]
10
2019-05-14T17:45:44.000Z
2020-08-26T13:25:04.000Z
from __future__ import absolute_import import abc import os import json import glob import shutil from tensorflow.python.estimator import gc from tensorflow.python.estimator import util from tensorflow.python.estimator.canned import metric_keys from tensorflow.python.framework import errors_impl from tensorflow.pytho...
44.398496
98
0.637934
9,592
0.812193
0
0
76
0.006435
0
0
5,646
0.478069
13716a3c1d81e757e4d87853e2f35128b1e83ff1
5,329
py
Python
src/pkgcore/restrictions/restriction.py
mgorny/pkgcore
ab4a718aa1626f4edeb385383f5595a1e262b0dc
[ "BSD-3-Clause" ]
null
null
null
src/pkgcore/restrictions/restriction.py
mgorny/pkgcore
ab4a718aa1626f4edeb385383f5595a1e262b0dc
[ "BSD-3-Clause" ]
null
null
null
src/pkgcore/restrictions/restriction.py
mgorny/pkgcore
ab4a718aa1626f4edeb385383f5595a1e262b0dc
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2005-2012 Brian Harring <[email protected] # Copyright: 2006 Marien Zwart <[email protected]> # License: BSD/GPL2 """ base restriction class """ from functools import partial from snakeoil import caching, klass from snakeoil.currying import pretty_docs class base(object, metaclass=caching.WeakInstMe...
27.611399
78
0.627698
4,065
0.762807
0
0
0
0
0
0
2,141
0.401764
1372983b8db0190678e8ab88123c2241d2b934f3
797
py
Python
keylime/migrations/versions/8da20383f6e1_extend_ip_field.py
kkaarreell/keylime
e12658bb6dc945b694e298b8ac337a204ab86ed2
[ "Apache-2.0" ]
18
2016-10-19T13:57:32.000Z
2019-01-12T21:35:43.000Z
keylime/migrations/versions/8da20383f6e1_extend_ip_field.py
kkaarreell/keylime
e12658bb6dc945b694e298b8ac337a204ab86ed2
[ "Apache-2.0" ]
72
2019-01-24T10:12:59.000Z
2019-04-17T11:07:16.000Z
keylime/migrations/versions/8da20383f6e1_extend_ip_field.py
kkaarreell/keylime
e12658bb6dc945b694e298b8ac337a204ab86ed2
[ "Apache-2.0" ]
10
2017-03-27T20:58:08.000Z
2018-07-30T12:59:27.000Z
"""extend_ip_field Revision ID: 8da20383f6e1 Revises: eeb702f77d7d Create Date: 2021-01-14 10:50:56.275257 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "8da20383f6e1" down_revision = "eeb702f77d7d" branch_labels = None depends_on = None def upgrade(engine_n...
18.534884
105
0.72522
0
0
0
0
0
0
0
0
248
0.311167
1372bb8d33de36c039935d2eac285248cdacdfb7
301
py
Python
token_train/quickdemo(1)(1).py
Tatsuya26/processamento_de_linguagens
e89ab8461bcf3264a79f10b7ebc2208eff271c6c
[ "MIT" ]
null
null
null
token_train/quickdemo(1)(1).py
Tatsuya26/processamento_de_linguagens
e89ab8461bcf3264a79f10b7ebc2208eff271c6c
[ "MIT" ]
null
null
null
token_train/quickdemo(1)(1).py
Tatsuya26/processamento_de_linguagens
e89ab8461bcf3264a79f10b7ebc2208eff271c6c
[ "MIT" ]
null
null
null
import ply.lex as lex tokens =["NUM","OPERADORES"] t_NUM = '\d+' t_OPERADORES = '[+|*|-]' t_ignore='\n\t ' def t_error(t): print("Erro") print(t) lexer = lex.lex() # 1+2 1-2 1*2 # ola mundo import sys for line in sys.stdin: lexer.input(line) for tok in lexer: print(tok)
13.086957
28
0.584718
0
0
0
0
0
0
0
0
68
0.225914
1373c11e16cd5b0b44349e8fb881270741a3ce25
1,657
py
Python
ucsrb/migrations/0013_auto_20180710_2040.py
Ecotrust/ucsrb
29d97cf1f21537aaf24f38e7dedc7c8cfccf1f12
[ "MIT" ]
1
2018-07-31T00:58:30.000Z
2018-07-31T00:58:30.000Z
ucsrb/migrations/0013_auto_20180710_2040.py
Ecotrust/ucsrb
29d97cf1f21537aaf24f38e7dedc7c8cfccf1f12
[ "MIT" ]
264
2017-10-24T23:54:52.000Z
2021-10-16T15:40:47.000Z
ucsrb/migrations/0013_auto_20180710_2040.py
Ecotrust/ucsrb
29d97cf1f21537aaf24f38e7dedc7c8cfccf1f12
[ "MIT" ]
1
2019-07-16T06:37:45.000Z
2019-07-16T06:37:45.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-07-10 20:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ucsrb', '0012_auto_20180710_1249'), ] operations = [ migrations.AddField( ...
32.490196
72
0.620398
1,499
0.904647
0
0
0
0
0
0
484
0.292094
137402a725b61eaf0c95cb37df89ef2b691ce663
2,015
py
Python
src/ctc/protocols/fei_utils/analytics/payload_crud.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
94
2022-02-15T19:34:49.000Z
2022-03-26T19:26:22.000Z
src/ctc/protocols/fei_utils/analytics/payload_crud.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-03-03T02:58:47.000Z
2022-03-11T18:41:05.000Z
src/ctc/protocols/fei_utils/analytics/payload_crud.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-02-15T17:53:07.000Z
2022-03-17T19:14:17.000Z
from __future__ import annotations import typing from ctc import spec from . import timestamp_crud from . import metric_crud from . import analytics_spec async def async_create_payload( *, blocks: typing.Sequence[spec.BlockNumberReference] | None = None, timestamps: typing.Sequence[int] | None = None, ...
27.22973
69
0.658065
0
0
0
0
0
0
1,298
0.644169
823
0.408437
1374addc1e8f402af9273db13845fe70ea5229f1
18,118
py
Python
research/video_prediction/prediction_model.py
mbz/models
98dcd8dbcb1027e4b22f79113018df30da4b8590
[ "Apache-2.0" ]
1
2021-10-05T13:34:44.000Z
2021-10-05T13:34:44.000Z
research/video_prediction/prediction_model.py
mbz/models
98dcd8dbcb1027e4b22f79113018df30da4b8590
[ "Apache-2.0" ]
null
null
null
research/video_prediction/prediction_model.py
mbz/models
98dcd8dbcb1027e4b22f79113018df30da4b8590
[ "Apache-2.0" ]
1
2020-11-14T04:15:00.000Z
2020-11-14T04:15:00.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 applicab...
37.903766
95
0.669886
0
0
0
0
0
0
0
0
6,502
0.35887
137575ac656962b0f9d67245530a471421c965ac
1,657
bzl
Python
junit5/rules.bzl
prashantsharma04/bazel_java_rules
4f80fbe70e1778aa8e3e0ee8aa2f1efc3e44a462
[ "Apache-2.0" ]
1
2020-10-22T06:44:10.000Z
2020-10-22T06:44:10.000Z
junit5/rules.bzl
prashantsharma04/bazel_java_rules
4f80fbe70e1778aa8e3e0ee8aa2f1efc3e44a462
[ "Apache-2.0" ]
5
2020-06-01T22:33:59.000Z
2020-11-01T17:03:06.000Z
junit5/rules.bzl
prashantsharma04/bazel_java_rules
4f80fbe70e1778aa8e3e0ee8aa2f1efc3e44a462
[ "Apache-2.0" ]
1
2020-08-17T07:42:21.000Z
2020-08-17T07:42:21.000Z
load("@rules_jvm_external//:defs.bzl", "artifact") # For more information see # - https://github.com/bmuschko/bazel-examples/blob/master/java/junit5-test/BUILD # - https://github.com/salesforce/bazel-maven-proxy/tree/master/tools/junit5 # - https://github.com/junit-team/junit5-samples/tree/master/junit5-jupiter-starte...
35.255319
98
0.616174
0
0
0
0
0
0
0
0
755
0.455643
1376113ee039ab051c772dba764cfe52a310f45d
625
py
Python
tests/mocked_carla.py
fangedward/pylot
a742b3789ee8e7fa2d692ae22bda1e2960ed9345
[ "Apache-2.0" ]
null
null
null
tests/mocked_carla.py
fangedward/pylot
a742b3789ee8e7fa2d692ae22bda1e2960ed9345
[ "Apache-2.0" ]
null
null
null
tests/mocked_carla.py
fangedward/pylot
a742b3789ee8e7fa2d692ae22bda1e2960ed9345
[ "Apache-2.0" ]
null
null
null
# This module provides mocked versions of classes and functions provided # by Carla in our runtime environment. class Location(object): """ A mock class for carla.Location. """ def __init__(self, x, y, z): self.x = x self.y = y self.z = z class Rotation(object): """ A mock class...
20.833333
72
0.5776
504
0.8064
0
0
0
0
0
0
230
0.368
1377e6c9502e17891e25610fab3c369d6bcdf674
404
py
Python
rgb_to_cmyk.py
Zweizack/fuzzy-rainbow
f69f7eb59971d28a9093a03c1911b41e23cddf2a
[ "MIT" ]
null
null
null
rgb_to_cmyk.py
Zweizack/fuzzy-rainbow
f69f7eb59971d28a9093a03c1911b41e23cddf2a
[ "MIT" ]
null
null
null
rgb_to_cmyk.py
Zweizack/fuzzy-rainbow
f69f7eb59971d28a9093a03c1911b41e23cddf2a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ee = '\033[1m' green = '\033[32m' yellow = '\033[33m' cyan = '\033[36m' line = cyan+'-' * 0x2D print(ee+line) R,G,B = [float(X) / 0xFF for X in input(f'{yellow}RGB: {green}').split()] K = 1-max(R,G,B) C,M,Y = [round(float((1-X-K)/(1-K) * 0x64),1) for X in [R,G,B]] K = r...
21.263158
73
0.542079
0
0
0
0
0
0
0
0
156
0.386139
1377f0cfac03b437ee48b39fc8008df7e5dd358b
4,720
py
Python
docs/updatedoc.py
JukeboxPipeline/jukedj
d4159961c819c26792a278981ee68106ee15f3f3
[ "BSD-3-Clause" ]
2
2015-01-22T17:39:05.000Z
2015-02-09T16:47:15.000Z
docs/updatedoc.py
JukeboxPipeline/jukedj
d4159961c819c26792a278981ee68106ee15f3f3
[ "BSD-3-Clause" ]
3
2020-02-12T00:24:58.000Z
2021-06-10T20:05:03.000Z
docs/updatedoc.py
JukeboxPipeline/jukeboxmaya
c8d6318d53cdb5493453c4a6b65ef75bdb2d5f2c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Builds the documentaion. First it runs gendoc to create rst files for the source code. Then it runs sphinx make. .. Warning:: This will delete the content of the output directory first! So you might loose data. You can use updatedoc.py -nod. Usage, just call:: updatedoc.py -h "...
35.488722
115
0.613559
0
0
0
0
0
0
0
0
2,741
0.58072
13783bd8e2a248d44492c03b9013e0d6c16cfd22
478
py
Python
sort/selectionsort.py
vitormrts/sorting-algorithms
5571ce522a7fd33f976fa05b264ed2c253c221b3
[ "MIT" ]
null
null
null
sort/selectionsort.py
vitormrts/sorting-algorithms
5571ce522a7fd33f976fa05b264ed2c253c221b3
[ "MIT" ]
null
null
null
sort/selectionsort.py
vitormrts/sorting-algorithms
5571ce522a7fd33f976fa05b264ed2c253c221b3
[ "MIT" ]
null
null
null
def selection_sort(A): # O(n^2) n = len(A) for i in range(n-1): # percorre a lista min = i for j in range(i+1, n): # encontra o menor elemento da lista a partir de i + 1 if A[j] < A[min]: min = j A[i], A[min] = A[min], A[i] # insere o elemento na posicao corre...
36.769231
86
0.464435
0
0
0
0
0
0
0
0
257
0.537657
1379138cdd6c153ab5075c9fd6e443c52181da72
4,618
py
Python
BridgeOptimizer/scriptBuilder/ScriptBuilderBoundaryConditions.py
manuel1618/bridgeOptimizer
273bbf27b2c6273e4aaca55debbd9a10bebf7042
[ "MIT" ]
1
2022-01-20T16:30:04.000Z
2022-01-20T16:30:04.000Z
BridgeOptimizer/scriptBuilder/ScriptBuilderBoundaryConditions.py
manuel1618/bridgeOptimizer
273bbf27b2c6273e4aaca55debbd9a10bebf7042
[ "MIT" ]
13
2022-01-07T14:07:15.000Z
2022-01-29T19:42:48.000Z
BridgeOptimizer/scriptBuilder/ScriptBuilderBoundaryConditions.py
manuel1618/bridgeOptimizer
273bbf27b2c6273e4aaca55debbd9a10bebf7042
[ "MIT" ]
null
null
null
import os from typing import List, Tuple from BridgeOptimizer.datastructure.hypermesh.LoadCollector import LoadCollector from BridgeOptimizer.datastructure.hypermesh.LoadStep import LoadStep from BridgeOptimizer.datastructure.hypermesh.Force import Force from BridgeOptimizer.datastructure.hypermesh.SPC import SPC cla...
47.122449
159
0.622347
4,300
0.931139
0
0
0
0
0
0
1,979
0.42854
137960c813f4163613ba4247cf3f11614175c045
320
py
Python
Lekcija08/script01.py
islamspahic/python-uup
ea7c9c655ad8e678bca5ee52138836732266799f
[ "Apache-2.0" ]
null
null
null
Lekcija08/script01.py
islamspahic/python-uup
ea7c9c655ad8e678bca5ee52138836732266799f
[ "Apache-2.0" ]
null
null
null
Lekcija08/script01.py
islamspahic/python-uup
ea7c9c655ad8e678bca5ee52138836732266799f
[ "Apache-2.0" ]
null
null
null
tajniBroj = 51 broj = 2 while tajniBroj != broj: broj = int(input("Pogodite tajni broj: ")) if tajniBroj == broj: print("Pogodak!") elif tajniBroj < broj: print("Tajni broj je manji od tog broja.") else: print("Tajni broj je veci od tog broja.") print("Kraj programa")
21.333333
50
0.590625
0
0
0
0
0
0
0
0
117
0.365625
1379b64de3a90f72d35d03219b56d72544b5e73a
2,806
py
Python
tests/algorithms/memory/test_cmac.py
FrostByte266/neupy
4b7127e5e4178b0cce023ba36542f5ad3f1d798c
[ "MIT" ]
801
2015-09-23T09:24:47.000Z
2022-03-29T19:19:03.000Z
tests/algorithms/memory/test_cmac.py
FrostByte266/neupy
4b7127e5e4178b0cce023ba36542f5ad3f1d798c
[ "MIT" ]
277
2015-09-22T19:48:50.000Z
2022-03-11T23:25:32.000Z
tests/algorithms/memory/test_cmac.py
FrostByte266/neupy
4b7127e5e4178b0cce023ba36542f5ad3f1d798c
[ "MIT" ]
194
2015-09-23T15:03:57.000Z
2022-03-31T13:54:46.000Z
import numpy as np from sklearn import metrics from neupy import algorithms from base import BaseTestCase class CMACTestCase(BaseTestCase): def test_cmac(self): X_train = np.reshape(np.linspace(0, 2 * np.pi, 100), (100, 1)) X_train_before = X_train.copy() X_test = np.reshape(np.linspace(...
30.172043
73
0.599786
2,696
0.960798
0
0
0
0
0
0
48
0.017106
137a3688b49f0ea26253687c4f9e076efa9114c9
3,075
py
Python
src/ggrc_workflows/models/task_group_object.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
null
null
null
src/ggrc_workflows/models/task_group_object.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
12
2015-01-08T14:50:19.000Z
2017-11-29T19:37:53.000Z
src/ggrc_workflows/models/task_group_object.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
1
2015-01-08T13:25:09.000Z
2015-01-08T13:25:09.000Z
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: [email protected] # Maintained By: [email protected] from sqlalchemy.ext.associationproxy import association_proxy from ggrc import db...
29.285714
78
0.690407
2,621
0.852358
0
0
1,789
0.581789
0
0
667
0.216911
137bf77da0a4c318b41b184deddd1c0849f9d010
11,196
py
Python
verification/tb_template.py
ahmednofal/DFFRAM
7d7ebc28befe12ec3f232c0d2f5b8ea786227d45
[ "Apache-2.0" ]
null
null
null
verification/tb_template.py
ahmednofal/DFFRAM
7d7ebc28befe12ec3f232c0d2f5b8ea786227d45
[ "Apache-2.0" ]
null
null
null
verification/tb_template.py
ahmednofal/DFFRAM
7d7ebc28befe12ec3f232c0d2f5b8ea786227d45
[ "Apache-2.0" ]
null
null
null
# Copyright ©2020-2021 The American University in Cairo and the Cloud V Project. # # This file is part of the DFFRAM Memory Compiler. # See https://github.com/Cloud-V/DFFRAM for further info. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Li...
27.108959
91
0.530368
0
0
0
0
0
0
0
0
10,900
0.973475
137c65c98b497accc914aadf90c4a0607e671a25
426
py
Python
services/stocks-api/app/api/clients/coinbase/CoinbaseResponse.py
krystianbajno/stocks
0a1a9283cb6debe36cfe01308eb4bc0b85217a02
[ "MIT" ]
3
2020-08-09T14:43:45.000Z
2020-08-11T23:22:15.000Z
services/stocks-api/app/api/clients/coinbase/CoinbaseResponse.py
krystianbajno/stocks
0a1a9283cb6debe36cfe01308eb4bc0b85217a02
[ "MIT" ]
null
null
null
services/stocks-api/app/api/clients/coinbase/CoinbaseResponse.py
krystianbajno/stocks
0a1a9283cb6debe36cfe01308eb4bc0b85217a02
[ "MIT" ]
1
2020-11-11T00:58:42.000Z
2020-11-11T00:58:42.000Z
class CoinbaseResponse: bid = 0 ask = 0 product_id = None def set_bid(self, bid): self.bid = float(bid) def get_bid(self): return self.bid def set_ask(self, ask): self.ask = float(ask) def get_ask(self): return self.ask def get_product_id(self): ...
18.521739
41
0.603286
425
0.997653
0
0
0
0
0
0
0
0
137dda311b44a103b066cfeaf00c02a9bb814cbf
19,777
py
Python
xclim/indices/_anuclim.py
bzah/xclim
18ceee3f1db2d39355913c1c60ec32ddca6baccc
[ "Apache-2.0" ]
1
2022-02-03T13:46:58.000Z
2022-02-03T13:46:58.000Z
xclim/indices/_anuclim.py
raquel-ucl/xclim
6102e542e6e08072a60879d6200f9340207cd50e
[ "Apache-2.0" ]
2
2021-06-23T09:26:54.000Z
2021-07-26T19:28:41.000Z
xclim/indices/_anuclim.py
raquel-ucl/xclim
6102e542e6e08072a60879d6200f9340207cd50e
[ "Apache-2.0" ]
1
2021-03-02T20:12:28.000Z
2021-03-02T20:12:28.000Z
# noqa: D100 from typing import Optional import numpy as np import xarray from xclim.core.units import ( convert_units_to, declare_units, pint_multiply, rate2amount, units, units2pint, ) from xclim.core.utils import ensure_chunk_size from ._multivariate import ( daily_temperature_range, ...
35.190391
128
0.674369
0
0
0
0
15,568
0.787177
0
0
13,900
0.702837
137eb4fb88a280d57e223383a1252ee199ec52e5
14,714
py
Python
bvs/background_verification/report/checks_status_report/checks_status_report.py
vhrspvl/vhrs-bvs
56667039d9cc09ad0b092e5e6c5dd6598ff41e7b
[ "MIT" ]
1
2021-08-19T11:16:47.000Z
2021-08-19T11:16:47.000Z
bvs/background_verification/report/checks_status_report/checks_status_report.py
vhrspvl/vhrs-bvs
56667039d9cc09ad0b092e5e6c5dd6598ff41e7b
[ "MIT" ]
null
null
null
bvs/background_verification/report/checks_status_report/checks_status_report.py
vhrspvl/vhrs-bvs
56667039d9cc09ad0b092e5e6c5dd6598ff41e7b
[ "MIT" ]
4
2018-03-21T05:57:54.000Z
2020-11-26T00:37:29.000Z
# Copyright (c) 2013, VHRS and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _, msgprint from frappe.utils import (cint, cstr, date_diff, flt, getdate, money_in_words, nowdate, rounded, today) from datet...
41.68272
130
0.436387
0
0
0
0
0
0
0
0
3,600
0.244665
137f6361d1e175bc555153af22f77e79ad507096
369
py
Python
dataset/dataset.py
TeamOfProfGuo/few_shot_baseline
f9ac87b9d309fc417589350d3ce61d3612e2be91
[ "MIT" ]
null
null
null
dataset/dataset.py
TeamOfProfGuo/few_shot_baseline
f9ac87b9d309fc417589350d3ce61d3612e2be91
[ "MIT" ]
null
null
null
dataset/dataset.py
TeamOfProfGuo/few_shot_baseline
f9ac87b9d309fc417589350d3ce61d3612e2be91
[ "MIT" ]
null
null
null
import os DEFAULT_ROOT = './materials' datasets_dt = {} def register(name): def decorator(cls): datasets_dt[name] = cls return cls return decorator def make(name, **kwargs): if kwargs.get('root_path') is None: kwargs['root_path'] = os.path.join(DEFAULT_ROOT, name) dataset =...
17.571429
62
0.642276
0
0
0
0
0
0
0
0
35
0.094851
137fdb8af310be2f7cdaeb72968e537c0108415a
888
py
Python
src/proto_formatter/syntax_parser.py
YiXiaoCuoHuaiFenZi/proto-formatter
ac8c913a8c3854e840aa4f015c026e58ee023b0b
[ "MIT" ]
null
null
null
src/proto_formatter/syntax_parser.py
YiXiaoCuoHuaiFenZi/proto-formatter
ac8c913a8c3854e840aa4f015c026e58ee023b0b
[ "MIT" ]
null
null
null
src/proto_formatter/syntax_parser.py
YiXiaoCuoHuaiFenZi/proto-formatter
ac8c913a8c3854e840aa4f015c026e58ee023b0b
[ "MIT" ]
null
null
null
from .comment import CommentParser from .protobuf import Protobuf from .proto_structures import Syntax class SyntaxParser(): @classmethod def parse_and_add(cls, proto_obj: Protobuf, line, top_comment_list): if proto_obj.syntax is not None: raise 'multiple syntax detected!' proto_...
29.6
77
0.657658
782
0.880631
0
0
743
0.836712
0
0
54
0.060811
138136650386e60020d1b6906281d81dfdc20779
443
py
Python
IPL/app/core/views.py
mgp-git/Flask
f56be0192a3aac550a1dae46394352a68bd53d3d
[ "Apache-2.0" ]
null
null
null
IPL/app/core/views.py
mgp-git/Flask
f56be0192a3aac550a1dae46394352a68bd53d3d
[ "Apache-2.0" ]
null
null
null
IPL/app/core/views.py
mgp-git/Flask
f56be0192a3aac550a1dae46394352a68bd53d3d
[ "Apache-2.0" ]
null
null
null
from flask import render_template, request, Blueprint core = Blueprint('core', __name__) @core.route("/", methods=['GET', 'POST']) def home(): return render_template('home.html') @core.route("/about") def about(): return render_template('about.html') @core.route('/search', methods=['GET', 'POST']) def se...
22.15
64
0.693002
0
0
0
0
344
0.776524
0
0
98
0.221219
13829c0823e4f1af5270d26df1460fb75ccc8a6b
47,884
py
Python
tests/test_s3.py
tdilauro/circulation-core
8086ca8cbedd5f4b2a0c44df97889d078ff79aac
[ "Apache-2.0" ]
1
2021-11-16T00:58:43.000Z
2021-11-16T00:58:43.000Z
tests/test_s3.py
tdilauro/circulation-core
8086ca8cbedd5f4b2a0c44df97889d078ff79aac
[ "Apache-2.0" ]
16
2021-05-17T19:24:47.000Z
2021-12-15T13:57:34.000Z
tests/test_s3.py
tdilauro/circulation-core
8086ca8cbedd5f4b2a0c44df97889d078ff79aac
[ "Apache-2.0" ]
1
2021-05-12T19:11:52.000Z
2021-05-12T19:11:52.000Z
# encoding: utf-8 import functools import os from urllib.parse import urlsplit import boto3 import botocore import pytest from botocore.exceptions import BotoCoreError, ClientError from mock import MagicMock from parameterized import parameterized from ..mirror import MirrorUploader from ..model import ( DataSour...
35.105572
145
0.56497
47,165
0.984923
0
0
28,706
0.599453
0
0
14,195
0.296427
1382e742de1eb49e756dcd17000e8fccc4bc6d6c
1,114
py
Python
lbry/scripts/set_build.py
vanshdevgan/lbry-sdk
3624a3b450945235edcf76971e18c898fba67455
[ "MIT" ]
null
null
null
lbry/scripts/set_build.py
vanshdevgan/lbry-sdk
3624a3b450945235edcf76971e18c898fba67455
[ "MIT" ]
null
null
null
lbry/scripts/set_build.py
vanshdevgan/lbry-sdk
3624a3b450945235edcf76971e18c898fba67455
[ "MIT" ]
null
null
null
"""Set the build version to be 'qa', 'rc', 'release'""" import sys import os import re import logging log = logging.getLogger() log.addHandler(logging.StreamHandler()) log.setLevel(logging.DEBUG) def get_build_type(travis_tag=None): if not travis_tag: return "qa" log.debug("getting build type for ta...
30.108108
82
0.658887
0
0
0
0
0
0
0
0
352
0.315978
13836c2a14bcd63d7cbfba39a7fecc1ae843d691
7,087
py
Python
backend/jenkins/pipelines/ansible/utils/testplan_gen.py
gbl1124/hfrd
327d7c1e18704d2e31a2649b40ae1d90353ebe24
[ "Apache-2.0" ]
5
2019-08-02T20:53:57.000Z
2021-06-25T05:16:46.000Z
backend/jenkins/pipelines/ansible/utils/testplan_gen.py
anandbanik/hfrd
7bc1f13bfc9c7d902aec0363d27b089ef68c7eec
[ "Apache-2.0" ]
null
null
null
backend/jenkins/pipelines/ansible/utils/testplan_gen.py
anandbanik/hfrd
7bc1f13bfc9c7d902aec0363d27b089ef68c7eec
[ "Apache-2.0" ]
14
2019-07-01T01:40:50.000Z
2020-03-24T06:14:32.000Z
#!/usr/bin/python import yaml import os import ast import sys from collections import OrderedDict curr_dir = os.getcwd() work_dir = sys.argv[1] network_type = sys.argv[2] testplan_dict = {} testplan_dict["name"] = "System performance test" testplan_dict["description"] = "This test is to create as much chaincode com...
39.372222
102
0.719769
0
0
0
0
0
0
0
0
2,285
0.322421
1383ec6b114d686bf9cab5e588bcd0ec41143a37
1,033
py
Python
dblib/test_lib.py
cyber-fighters/dblib
9743122a55bc265f7551dd9283f381678b2703e4
[ "MIT" ]
null
null
null
dblib/test_lib.py
cyber-fighters/dblib
9743122a55bc265f7551dd9283f381678b2703e4
[ "MIT" ]
1
2019-02-25T09:52:31.000Z
2019-02-25T09:52:31.000Z
dblib/test_lib.py
cyber-fighters/dblib
9743122a55bc265f7551dd9283f381678b2703e4
[ "MIT" ]
null
null
null
"""Collection of tests.""" import pytest import dblib.lib f0 = dblib.lib.Finding('CD spook', 'my_PC', 'The CD drive is missing.') f1 = dblib.lib.Finding('Unplugged', 'my_PC', 'The power cord is unplugged.') f2 = dblib.lib.Finding('Monitor switched off', 'my_PC', 'The monitor is switched off.') def test_add_remove(...
23.477273
87
0.629235
0
0
0
0
0
0
0
0
248
0.240077
1383ee1f9bdf4c8acf135f0e8788f23793efa056
1,627
py
Python
src/azure-cli/azure/cli/command_modules/policyinsights/_completers.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
3,287
2016-07-26T17:34:33.000Z
2022-03-31T09:52:13.000Z
src/azure-cli/azure/cli/command_modules/policyinsights/_completers.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
19,206
2016-07-26T07:04:42.000Z
2022-03-31T23:57:09.000Z
src/azure-cli/azure/cli/command_modules/policyinsights/_completers.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
2,575
2016-07-26T06:44:40.000Z
2022-03-31T22:56:06.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
45.194444
112
0.696374
0
0
0
0
1,107
0.680393
0
0
451
0.277197
13842b8b9629fa8e84e1baad24f225b91291bacf
6,553
py
Python
hordak/migrations/0011_auto_20170225_2222.py
CodeBrew-LTD/django-hordak
efdfe503bf38b0a283790c5b4d27bd6bb28155e4
[ "MIT" ]
187
2016-12-12T10:58:11.000Z
2022-03-27T08:14:19.000Z
hordak/migrations/0011_auto_20170225_2222.py
CodeBrew-LTD/django-hordak
efdfe503bf38b0a283790c5b4d27bd6bb28155e4
[ "MIT" ]
62
2016-12-10T00:12:47.000Z
2022-03-16T09:23:05.000Z
hordak/migrations/0011_auto_20170225_2222.py
CodeBrew-LTD/django-hordak
efdfe503bf38b0a283790c5b4d27bd6bb28155e4
[ "MIT" ]
47
2016-12-12T11:07:31.000Z
2022-03-15T20:30:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-02-25 22:22 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import django_smalluuid.models class Migration(migrations.Migration): dependencies = [("hordak",...
40.202454
100
0.327789
6,302
0.961697
0
0
0
0
0
0
1,603
0.244621
13844a293f37e75b2bbbb1208093a4013b133018
646
py
Python
Bot Telegram.py
devilnotcry77/devil_not_cry
a9d342d053c788ec6db2d1c5967ed55104b40045
[ "Apache-2.0" ]
null
null
null
Bot Telegram.py
devilnotcry77/devil_not_cry
a9d342d053c788ec6db2d1c5967ed55104b40045
[ "Apache-2.0" ]
null
null
null
Bot Telegram.py
devilnotcry77/devil_not_cry
a9d342d053c788ec6db2d1c5967ed55104b40045
[ "Apache-2.0" ]
null
null
null
from aiogram import Bot, types from aiogram.dispatcher import Dispatcher from aiogram.utils import executor TOKEN = "Token for you bot" bot = Bot(token=TOKEN) dp = Dispatcher(bot) @dp.message_handler(command=['start', 'help']) async def send_welcome(msg: types.Message): await msg.reply_to_message(f'Добро ...
32.3
79
0.704334
0
0
0
0
429
0.628111
336
0.491947
162
0.237189
13847a22eab74e6541bf593e5d68249f802e533f
1,398
py
Python
redactor/utils.py
danlgz/django-wysiwyg-redactor
755927ea2cb9db203c4a002b4da7ebfbf989dd64
[ "BSD-3-Clause" ]
null
null
null
redactor/utils.py
danlgz/django-wysiwyg-redactor
755927ea2cb9db203c4a002b4da7ebfbf989dd64
[ "BSD-3-Clause" ]
null
null
null
redactor/utils.py
danlgz/django-wysiwyg-redactor
755927ea2cb9db203c4a002b4da7ebfbf989dd64
[ "BSD-3-Clause" ]
2
2021-01-27T21:51:38.000Z
2021-03-10T22:31:19.000Z
from django.core.exceptions import ImproperlyConfigured from importlib import import_module try: from django.utils.encoding import force_text except ImportError: from django.utils.encoding import force_unicode as force_text from django.utils.functional import Promise import json def import_class(path): ...
24.964286
71
0.670243
189
0.135193
0
0
0
0
0
0
89
0.063662
1385311ad77efabb909223d3edfa32108eab2458
4,984
py
Python
timedpid.py
DrGFreeman/PyTools
795e06b5a07f49a990df3c545d2d103b16dd8b4d
[ "MIT" ]
1
2020-04-20T04:45:47.000Z
2020-04-20T04:45:47.000Z
timedpid.py
DrGFreeman/PyTools
795e06b5a07f49a990df3c545d2d103b16dd8b4d
[ "MIT" ]
null
null
null
timedpid.py
DrGFreeman/PyTools
795e06b5a07f49a990df3c545d2d103b16dd8b4d
[ "MIT" ]
1
2020-04-20T04:45:51.000Z
2020-04-20T04:45:51.000Z
# timedpid.py # Source: https://github.com/DrGFreeman/PyTools # # MIT License # # Copyright (c) 2017 Julien de la Bruere-Terreault <[email protected]> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in th...
36.647059
80
0.664125
3,441
0.690409
0
0
0
0
0
0
2,831
0.568018
13863d63148372da4df5a7856bdd98b8b8e90e54
3,051
py
Python
pmon/zmq_responder.py
bernd-clemenz/pmon
8b61de4864ffed2d7ee224c283090ed1948533ae
[ "MIT" ]
1
2020-06-01T19:20:09.000Z
2020-06-01T19:20:09.000Z
pmon/zmq_responder.py
bernd-clemenz/pmon
8b61de4864ffed2d7ee224c283090ed1948533ae
[ "MIT" ]
null
null
null
pmon/zmq_responder.py
bernd-clemenz/pmon
8b61de4864ffed2d7ee224c283090ed1948533ae
[ "MIT" ]
null
null
null
# # -*- coding: utf-8-*- # receives messages via zmq and executes some simple # operations. # # (c) ISC Clemenz & Weinbrecht GmbH 2018 # import json import requests import zmq import pmon class ZmqResponder(object): context = None socket = None def __init__(self): """ Constructor. ...
29.336538
86
0.561455
2,857
0.936414
0
0
501
0.164208
0
0
716
0.234677
138645ddd1d47197cec66a63b6f187e4f2176f57
423
py
Python
test/test_substitute.py
sanskrit/padmini
8e7e8946a7d2df9c941f689ea4bc7b6ebb7ca1d0
[ "MIT" ]
1
2022-03-01T05:05:04.000Z
2022-03-01T05:05:04.000Z
test/test_substitute.py
sanskrit/padmini
8e7e8946a7d2df9c941f689ea4bc7b6ebb7ca1d0
[ "MIT" ]
null
null
null
test/test_substitute.py
sanskrit/padmini
8e7e8946a7d2df9c941f689ea4bc7b6ebb7ca1d0
[ "MIT" ]
null
null
null
from padmini import operations as op def test_yatha(): before = ("tAs", "Tas", "Ta", "mip") after = ("tAm", "tam", "ta", "am") for i, b in enumerate(before): assert op.yatha(b, before, after) == after[i] """ def test_ti(): assert S.ti("ta", "e") == "te" assert S.ti("AtAm", "e") == "Ate"...
19.227273
53
0.51773
0
0
0
0
0
0
0
0
230
0.543735
1388c9a700adcd34c480eb91c770af0acaf65dde
2,186
py
Python
TVSaffiliations/extractemails_nogui.py
kmhambleton/LSST-TVSSC.github.io
2391fcdeddf83321825532aa7d7682b5dcf567f0
[ "CC-BY-3.0" ]
null
null
null
TVSaffiliations/extractemails_nogui.py
kmhambleton/LSST-TVSSC.github.io
2391fcdeddf83321825532aa7d7682b5dcf567f0
[ "CC-BY-3.0" ]
3
2018-06-15T10:12:39.000Z
2022-03-23T23:43:27.000Z
TVSaffiliations/extractemails_nogui.py
kmhambleton/LSST-TVSSC.github.io
2391fcdeddf83321825532aa7d7682b5dcf567f0
[ "CC-BY-3.0" ]
5
2018-03-27T12:53:55.000Z
2019-07-17T15:54:09.000Z
# coding: utf-8 #just prints the emails of members of a group to stdout, #both primary and secondary members # run as # $python extractemails_nogui.py "Tidal Disruption Events" from __future__ import print_function '__author__' == 'Federica Bianco, NYU - GitHub: fedhere' import sys import pandas as pd from argparse im...
35.836066
162
0.627173
0
0
0
0
0
0
0
0
894
0.408966
1388cb066414d3af45386f8ba3a988639cd4786c
20,373
py
Python
cogs/owner.py
Obsidian-Development/JDBot
315b0782126ac36fe934ac3ba2d7132710d58651
[ "MIT" ]
null
null
null
cogs/owner.py
Obsidian-Development/JDBot
315b0782126ac36fe934ac3ba2d7132710d58651
[ "MIT" ]
1
2021-11-09T14:30:49.000Z
2021-11-09T14:31:19.000Z
cogs/owner.py
Obsidian-Development/JDBot
315b0782126ac36fe934ac3ba2d7132710d58651
[ "MIT" ]
null
null
null
from discord.ext import commands, menus import utils import random , discord, os, importlib, mystbin, typing, aioimgur, functools, tweepy import traceback, textwrap from discord.ext.menus.views import ViewMenuPages class Owner(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(brief="a c...
38.223265
333
0.676827
20,110
0.987091
0
0
18,323
0.899377
17,058
0.837285
5,111
0.250871
138922f3a893ab484911754fbdc916b94b521606
1,341
py
Python
tests/input_files/full_sm_UFO/function_library.py
valassi/mg5amc_test
2e04f23353051f64e1604b23105fe3faabd32869
[ "NCSA" ]
1
2016-07-09T00:05:56.000Z
2016-07-09T00:05:56.000Z
tests/input_files/full_sm_UFO/function_library.py
valassi/mg5amc_test
2e04f23353051f64e1604b23105fe3faabd32869
[ "NCSA" ]
4
2022-03-10T09:13:31.000Z
2022-03-30T16:15:01.000Z
tests/input_files/full_sm_UFO/function_library.py
valassi/mg5amc_test
2e04f23353051f64e1604b23105fe3faabd32869
[ "NCSA" ]
1
2016-07-09T00:06:15.000Z
2016-07-09T00:06:15.000Z
# This file is part of the UFO. # # This file contains definitions for functions that # are extensions of the cmath library, and correspond # either to functions that are in cmath, but inconvenient # to access from there (e.g. z.conjugate()), # or functions that are simply not defined. # # from __future__ import absol...
23.946429
57
0.57047
0
0
0
0
0
0
0
0
561
0.418345
1389758aa9eb7eb25584e0a02ef64f27158cea18
2,395
py
Python
cli/polyaxon/managers/cli.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
cli/polyaxon/managers/cli.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
cli/polyaxon/managers/cli.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2019 Polyaxon, 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 o...
32.808219
86
0.703967
1,508
0.629645
0
0
1,272
0.531106
0
0
699
0.291858
13897ff894a1bd33edc2b806b99ab65957690746
413
py
Python
duckql/properties/tests/test_null.py
fossabot/duckql-python
b4aead825ee456d9758db89830c7bca9d5d5106e
[ "MIT" ]
4
2020-04-15T09:35:15.000Z
2021-11-11T13:03:46.000Z
duckql/properties/tests/test_null.py
fossabot/duckql-python
b4aead825ee456d9758db89830c7bca9d5d5106e
[ "MIT" ]
2
2020-04-08T12:10:56.000Z
2020-04-15T09:14:44.000Z
duckql/properties/tests/test_null.py
fossabot/duckql-python
b4aead825ee456d9758db89830c7bca9d5d5106e
[ "MIT" ]
1
2020-04-15T09:11:39.000Z
2020-04-15T09:11:39.000Z
import pytest from duckql.properties import Null @pytest.fixture(scope="module") def valid_instance() -> Null: return Null() def test_string(valid_instance: Null): assert str(valid_instance) == 'NULL' def test_obj(valid_instance: Null): assert valid_instance.obj == 'properties.Null' def test_json_p...
19.666667
64
0.723971
0
0
0
0
79
0.191283
0
0
59
0.142857
138acf726b02bf36085bf40542bda0ebebd538c5
6,190
py
Python
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/lib/gobject-introspection/giscanner/codegen.py
sotaoverride/backup
ca53a10b72295387ef4948a9289cb78ab70bc449
[ "Apache-2.0" ]
null
null
null
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/lib/gobject-introspection/giscanner/codegen.py
sotaoverride/backup
ca53a10b72295387ef4948a9289cb78ab70bc449
[ "Apache-2.0" ]
null
null
null
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/lib/gobject-introspection/giscanner/codegen.py
sotaoverride/backup
ca53a10b72295387ef4948a9289cb78ab70bc449
[ "Apache-2.0" ]
null
null
null
# -*- Mode: Python -*- # GObject-Introspection - a framework for introspecting GObject libraries # Copyright (C) 2010 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; eith...
34.775281
85
0.593538
5,258
0.849435
221
0.035703
241
0.038934
0
0
1,322
0.21357
138ad53bc75698fb0a04af0266ae508da388a981
6,057
py
Python
nevergrad/parametrization/utils.py
mehrdad-shokri/nevergrad
7b68b00c158bf60544bc45997560edf733fb5812
[ "MIT" ]
2
2021-04-13T12:14:46.000Z
2021-07-07T14:37:50.000Z
nevergrad/parametrization/utils.py
OregonWebSells/nevergrad
c2b2a0efdca29830ccc9182d8a7ba4d8695f698d
[ "MIT" ]
1
2020-09-25T10:45:06.000Z
2020-09-25T11:51:13.000Z
nevergrad/parametrization/utils.py
OregonWebSells/nevergrad
c2b2a0efdca29830ccc9182d8a7ba4d8695f698d
[ "MIT" ]
1
2021-04-07T10:34:20.000Z
2021-04-07T10:34:20.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import sys import shutil import tempfile import subprocess import typing as tp from pathlib import Path from ne...
38.826923
133
0.639591
5,683
0.938253
0
0
381
0.062902
0
0
2,286
0.377415
138b01aa9774bbead45a8dac1264c5149cf9f912
568
py
Python
Section 20/2.Document-transfer_files.py
airbornum/-Complete-Python-Scripting-for-Automation
bc053444f8786259086269ca1713bdb10144dd74
[ "MIT" ]
18
2020-04-13T03:14:06.000Z
2022-03-09T18:54:41.000Z
Section 20/2.Document-transfer_files.py
airbornum/-Complete-Python-Scripting-for-Automation
bc053444f8786259086269ca1713bdb10144dd74
[ "MIT" ]
null
null
null
Section 20/2.Document-transfer_files.py
airbornum/-Complete-Python-Scripting-for-Automation
bc053444f8786259086269ca1713bdb10144dd74
[ "MIT" ]
22
2020-04-29T21:12:42.000Z
2022-03-17T18:19:54.000Z
import paramiko ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(hostname='54.165.97.91',username='ec2-user',password='paramiko123',port=22) sftp_client=ssh.open_sftp() #sftp_client.get('/home/ec2-user/paramiko_download.txt','paramiko_downloaded_file.txt') #sftp_c...
43.692308
88
0.769366
0
0
0
0
0
0
0
0
325
0.572183
138ba740eae4da2fa0a99d533446f723a2531106
1,522
py
Python
nimlime_core/utils/internal_tools.py
gmpreussner/Varriount.NimLime
33da0424248bf9360c2a7cbca4a22da7a8020785
[ "MIT" ]
null
null
null
nimlime_core/utils/internal_tools.py
gmpreussner/Varriount.NimLime
33da0424248bf9360c2a7cbca4a22da7a8020785
[ "MIT" ]
null
null
null
nimlime_core/utils/internal_tools.py
gmpreussner/Varriount.NimLime
33da0424248bf9360c2a7cbca4a22da7a8020785
[ "MIT" ]
null
null
null
# coding=utf-8 """ Internal tools for NimLime development & testing. """ from pprint import pprint import sublime try: from cProfile import Profile except ImportError: from profile import Profile from functools import wraps from pstats import Stats try: from StringIO import StringIO except ImportError: ...
20.849315
60
0.653088
0
0
0
0
349
0.229304
0
0
441
0.28975
138c6bcf0225f274dd1eb1c256462cdafdb949eb
2,524
py
Python
test/unit/test_monitor.py
dmvieira/driftage
830188aa341029cc2a643b2b3b50e625953a35eb
[ "Apache-2.0" ]
4
2020-09-24T23:59:54.000Z
2020-09-27T16:43:37.000Z
test/unit/test_monitor.py
dmvieira/driftage
830188aa341029cc2a643b2b3b50e625953a35eb
[ "Apache-2.0" ]
2
2021-03-06T19:55:34.000Z
2021-03-06T20:06:42.000Z
test/unit/test_monitor.py
dmvieira/driftage
830188aa341029cc2a643b2b3b50e625953a35eb
[ "Apache-2.0" ]
null
null
null
import orjson from asynctest import TestCase, Mock, patch from freezegun import freeze_time from driftage.monitor import Monitor class TestMonitor(TestCase): def setUp(self): self.monitor = Monitor( "user_test@local", "pass_test", "identif" ) def tearDown(self): self.mon...
31.160494
75
0.587163
2,392
0.947702
0
0
1,803
0.714342
249
0.098653
428
0.169572
138d56c884e89de3d6a25a794b256d4f746b9c4d
354
py
Python
examples/todo_advanced/main.py
travisluong/fastarg
b21d5307ce6b296aa16f30bf220ca2ead8e9d4d3
[ "MIT" ]
1
2022-03-27T20:30:45.000Z
2022-03-27T20:30:45.000Z
examples/todo_advanced/main.py
travisluong/fastarg
b21d5307ce6b296aa16f30bf220ca2ead8e9d4d3
[ "MIT" ]
null
null
null
examples/todo_advanced/main.py
travisluong/fastarg
b21d5307ce6b296aa16f30bf220ca2ead8e9d4d3
[ "MIT" ]
null
null
null
import fastarg import commands.todo as todo import commands.user as user app = fastarg.Fastarg(description="productivity app", prog="todo") @app.command() def hello_world(name: str): """hello world""" print("hello " + name) app.add_fastarg(todo.app, name="todo") app.add_fastarg(user.app, name="user") if __n...
22.125
66
0.70339
0
0
0
0
91
0.257062
0
0
71
0.200565
138da1de200b7ec195fd8cfe7cb64a50fd1f3486
7,177
py
Python
tests/test_channel.py
rwilhelm/aiormq
9aa278e61d16ba18748f5f5a3fc76d0a273fd14a
[ "Apache-2.0" ]
176
2019-01-13T13:41:43.000Z
2022-03-26T04:01:03.000Z
tests/test_channel.py
rwilhelm/aiormq
9aa278e61d16ba18748f5f5a3fc76d0a273fd14a
[ "Apache-2.0" ]
79
2019-02-18T17:41:25.000Z
2022-02-25T11:09:33.000Z
tests/test_channel.py
rwilhelm/aiormq
9aa278e61d16ba18748f5f5a3fc76d0a273fd14a
[ "Apache-2.0" ]
54
2019-02-19T09:53:12.000Z
2022-03-28T13:33:29.000Z
import asyncio import uuid import pytest from aiomisc_pytest.pytest_plugin import TCPProxy import aiormq async def test_simple(amqp_channel: aiormq.Channel): await amqp_channel.basic_qos(prefetch_count=1) assert amqp_channel.number queue = asyncio.Queue() deaclare_ok = await amqp_channel.queue_dec...
34.671498
80
0.722029
0
0
0
0
1,050
0.146301
7,005
0.976035
818
0.113975
138dbf1fa3b2ac4c4311547dd1bdd7a67de14e0b
39
py
Python
nitro-python/nssrc/com/citrix/netscaler/nitro/resource/stat/mediaclassification/__init__.py
culbertm/NSttyPython
ff9f6aedae3fb8495342cd0fc4247c819cf47397
[ "Apache-2.0" ]
2
2020-08-24T18:04:22.000Z
2020-08-24T18:04:47.000Z
nitro/resource/stat/mediaclassification/__init__.py
HanseMerkur/nitro-python
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
[ "Apache-2.0" ]
null
null
null
nitro/resource/stat/mediaclassification/__init__.py
HanseMerkur/nitro-python
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
[ "Apache-2.0" ]
null
null
null
__all__ = ['mediaclassification_stats']
39
39
0.820513
0
0
0
0
0
0
0
0
27
0.692308
138e485745a6d26b22140e7cd765e64928978552
455
py
Python
balanced_parens.py
joeghodsi/interview-questions
3e4eb76891245ce978cb9171e87d60e3b292b0a8
[ "Unlicense" ]
1
2018-06-11T18:18:39.000Z
2018-06-11T18:18:39.000Z
balanced_parens.py
joeghodsi/interview-questions
3e4eb76891245ce978cb9171e87d60e3b292b0a8
[ "Unlicense" ]
null
null
null
balanced_parens.py
joeghodsi/interview-questions
3e4eb76891245ce978cb9171e87d60e3b292b0a8
[ "Unlicense" ]
null
null
null
''' Problem description: Given a string, determine whether or not the parentheses are balanced ''' def balanced_parens(str): ''' runtime: O(n) space : O(1) ''' if str is None: return True open_count = 0 for char in str: if char == '(': open_count += 1 ...
17.5
69
0.514286
0
0
0
0
0
0
0
0
151
0.331868
138f08438e2c276d1577956212792c686c9d877c
6,333
py
Python
plaso/parsers/winreg_plugins/ccleaner.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
1,253
2015-01-02T13:58:02.000Z
2022-03-31T08:43:39.000Z
plaso/parsers/winreg_plugins/ccleaner.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
3,388
2015-01-02T11:17:58.000Z
2022-03-30T10:21:45.000Z
plaso/parsers/winreg_plugins/ccleaner.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
376
2015-01-20T07:04:54.000Z
2022-03-04T23:53:00.000Z
# -*- coding: utf-8 -*- """Parser for the CCleaner Registry key.""" import re from dfdatetime import time_elements as dfdatetime_time_elements from plaso.containers import events from plaso.containers import time_events from plaso.lib import definitions from plaso.parsers import winreg_parser from plaso.parsers.winr...
33.331579
92
0.707879
5,911
0.933365
0
0
0
0
0
0
2,651
0.418601
139025981058af435a2b6721ba93a59e2cb0b119
1,296
py
Python
pushpluck/base.py
ejconlon/pushpluck
4e5b8bcff6fe3955e8f25638268569f901815b5a
[ "MIT" ]
null
null
null
pushpluck/base.py
ejconlon/pushpluck
4e5b8bcff6fe3955e8f25638268569f901815b5a
[ "MIT" ]
2
2021-04-02T03:54:12.000Z
2021-04-23T18:23:03.000Z
pushpluck/base.py
ejconlon/pushpluck
4e5b8bcff6fe3955e8f25638268569f901815b5a
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from dataclasses import dataclass from typing import Any, TypeVar X = TypeVar('X') class Closeable(metaclass=ABCMeta): @abstractmethod def close(self) -> None: """ Close this to free resources and deny further use. """ raise NotImplementedError() cla...
24.923077
90
0.657407
1,105
0.852623
0
0
482
0.371914
0
0
518
0.399691
139141d96476a62cf2a8695abfe754ae15ba668e
2,057
py
Python
test/cuberead/highres/test_default_high_res.py
CAB-LAB/cube-performance-test
0ca7dbb56b2937004fb63f8aafdff21fb76263d4
[ "MIT" ]
null
null
null
test/cuberead/highres/test_default_high_res.py
CAB-LAB/cube-performance-test
0ca7dbb56b2937004fb63f8aafdff21fb76263d4
[ "MIT" ]
null
null
null
test/cuberead/highres/test_default_high_res.py
CAB-LAB/cube-performance-test
0ca7dbb56b2937004fb63f8aafdff21fb76263d4
[ "MIT" ]
null
null
null
import time import pytest from test import config from test.cube_utils import CubeUtils ITERATIONS_NUM = getattr(config, 'iterations_num', 1) ROUNDS_NUM = getattr(config, 'rounds_num', 10) class TestDefaultHighRes: @pytest.fixture(scope="class", autouse=True) def cube_default(self): cube_utils = Cu...
33.177419
114
0.684492
1,862
0.905202
150
0.072922
1,675
0.814293
0
0
368
0.178901
139180db13c406acb2f2910c85de0dfd5a8d2472
5,545
py
Python
tests/components/test_dialogue_flow.py
dyoshiha/mindmeld
95f0e8482594f00040766a2ee687e9c9338f5a74
[ "Apache-2.0" ]
1
2019-12-12T12:44:33.000Z
2019-12-12T12:44:33.000Z
tests/components/test_dialogue_flow.py
AravindR7/mindmeld
470bba73ac56b6388146212ddaf697097e81cec3
[ "Apache-2.0" ]
null
null
null
tests/components/test_dialogue_flow.py
AravindR7/mindmeld
470bba73ac56b6388146212ddaf697097e81cec3
[ "Apache-2.0" ]
null
null
null
import pytest from mindmeld.components import Conversation def assert_reply(directives, templates, *, start_index=0, slots=None): """Asserts that the provided directives contain the specified reply Args: directives (list[dict[str, dict]]): list of directives returned by application templates ...
39.326241
99
0.741389
0
0
0
0
3,337
0.601803
180
0.032462
1,587
0.286204
1395c34c642a4ba06cd80eeb8c512c19499d8a1b
1,707
py
Python
mine/src/main/python/SVM.py
nextzlog/mine
49ef0bea4796920d8696dc5f076f86c0ab17be80
[ "BSD-3-Clause" ]
3
2020-06-04T15:25:37.000Z
2020-06-06T05:09:07.000Z
mine/src/main/python/SVM.py
nextzlog/mine
49ef0bea4796920d8696dc5f076f86c0ab17be80
[ "BSD-3-Clause" ]
null
null
null
mine/src/main/python/SVM.py
nextzlog/mine
49ef0bea4796920d8696dc5f076f86c0ab17be80
[ "BSD-3-Clause" ]
null
null
null
import os,sys import webbrowser import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.cm as cm import matplotlib.pylab as plt from matplotlib import ticker plt.rcParams['font.family'] = 'monospace' fig = plt.figure() rect = fig.add_subplot(111, aspect='equal') data0 = np.loadtxt('data0.dat', del...
38.795455
140
0.671353
0
0
0
0
0
0
0
0
246
0.144112
1395df5d636c77222d35d82dfd590f6aefe93e2b
455
py
Python
sarna/report_generator/scores.py
rsrdesarrollo/sarna
0c1f44e06a932520b70e505585a5469b77f6302e
[ "MIT" ]
25
2019-03-11T22:42:52.000Z
2022-03-15T09:49:15.000Z
sarna/report_generator/scores.py
hackingmess/sarna
0c1f44e06a932520b70e505585a5469b77f6302e
[ "MIT" ]
14
2019-01-08T08:35:51.000Z
2022-03-11T23:30:28.000Z
sarna/report_generator/scores.py
hackingmess/sarna
0c1f44e06a932520b70e505585a5469b77f6302e
[ "MIT" ]
12
2019-07-26T05:38:32.000Z
2022-03-29T09:54:49.000Z
from sarna.model.enums import Score, Language from sarna.report_generator import make_run from sarna.report_generator.locale_choice import locale_choice from sarna.report_generator.style import RenderStyle def score_to_docx(score: Score, style: RenderStyle, lang: Language): ret = make_run(getattr(style, score.nam...
32.5
82
0.764835
0
0
0
0
0
0
0
0
17
0.037363
139756e066bb02143bb1f17cfc6e0e0c48ac0c56
20,000
py
Python
tests/hwsim/test_ap_open.py
waittrue/wireless
3c64f015dc62aec4da0b696f45cc4bcf41594c5d
[ "Unlicense" ]
1
2016-04-22T19:32:57.000Z
2016-04-22T19:32:57.000Z
tests/hwsim/test_ap_open.py
Acidburn0zzz/third_party-hostap
0542463c4de76fde6e8164f75b3a52ce0ddd8087
[ "Unlicense" ]
null
null
null
tests/hwsim/test_ap_open.py
Acidburn0zzz/third_party-hostap
0542463c4de76fde6e8164f75b3a52ce0ddd8087
[ "Unlicense" ]
null
null
null
# Open mode AP tests # Copyright (c) 2014, Qualcomm Atheros, Inc. # # This software may be distributed under the terms of the BSD license. # See README for more details. import logging logger = logging.getLogger() import struct import subprocess import time import os import hostapd import hwsim_utils from tshark impo...
41.237113
124
0.6295
0
0
0
0
0
0
0
0
6,852
0.3426
13980d70f605aa90e6f0d5a0697ef90a4b646aec
4,708
py
Python
task_templates/pipelines/python3_pytorch_regression/model_utils.py
andreakropp/datarobot-user-models
423ab8c703a545491ad6013a0b7efa3119e2c0fc
[ "Apache-2.0" ]
null
null
null
task_templates/pipelines/python3_pytorch_regression/model_utils.py
andreakropp/datarobot-user-models
423ab8c703a545491ad6013a0b7efa3119e2c0fc
[ "Apache-2.0" ]
9
2021-11-10T20:16:41.000Z
2022-03-12T00:59:05.000Z
task_templates/pipelines/python3_pytorch_regression/model_utils.py
andreakropp/datarobot-user-models
423ab8c703a545491ad6013a0b7efa3119e2c0fc
[ "Apache-2.0" ]
1
2021-06-17T22:05:33.000Z
2021-06-17T22:05:33.000Z
#!/usr/bin/env python # coding: utf-8 # pylint: disable-all from __future__ import absolute_import from sklearn.preprocessing import LabelEncoder from pathlib import Path import torch from torch.autograd import Variable import torch.nn as nn import torch.optim as optim class BinModel(nn.Module): expected_target...
31.810811
112
0.656542
1,687
0.358326
0
0
0
0
0
0
573
0.121708
13984baeb601966ec125e0ffbdce4b6e8815be83
9,894
py
Python
py/surveysim/weather.py
mlandriau/surveysim
e7a323d6c4031b1b8df25e776dbe81188fbe8860
[ "BSD-3-Clause" ]
null
null
null
py/surveysim/weather.py
mlandriau/surveysim
e7a323d6c4031b1b8df25e776dbe81188fbe8860
[ "BSD-3-Clause" ]
55
2016-11-14T21:58:11.000Z
2021-03-16T01:07:31.000Z
py/surveysim/weather.py
mlandriau/surveysim
e7a323d6c4031b1b8df25e776dbe81188fbe8860
[ "BSD-3-Clause" ]
4
2016-11-19T00:17:02.000Z
2021-02-24T14:38:46.000Z
"""Simulate stochastic observing weather conditions. The simulated conditions include seeing, transparency and the dome-open fraction. """ from __future__ import print_function, division, absolute_import from datetime import datetime import numpy as np import astropy.time import astropy.table import astropy.units a...
43.973333
92
0.63392
9,446
0.95472
0
0
0
0
0
0
4,616
0.466545
1398a0a81ef6551f1edec803a59f1dbf8ef55e95
8,075
py
Python
lib/csv_writer.py
takeratta/ga-dev-tools
19dcf7c750af8214e5a306fc0f8e2b28bef7bb40
[ "Apache-2.0" ]
2
2020-07-02T14:29:44.000Z
2021-12-02T09:31:36.000Z
lib/csv_writer.py
jeffreychung/ga-dev-tools
19dcf7c750af8214e5a306fc0f8e2b28bef7bb40
[ "Apache-2.0" ]
3
2022-02-19T14:08:17.000Z
2022-03-03T22:32:16.000Z
lib/csv_writer.py
colorstheforce/ga-dev-tools
46dd9652f9a7d9f8255b6d401985fdcfb8b61b25
[ "Apache-2.0" ]
1
2021-01-02T17:04:16.000Z
2021-01-02T17:04:16.000Z
# coding=utf-8 # Copyright 2015 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
30.130597
78
0.687059
5,567
0.689412
0
0
0
0
0
0
4,482
0.555046
13991543937ea97e225d2fffa3ed5c4c26a13a38
2,924
py
Python
resdata/TensorFlow/RNN_Prediction/stockPrediction202005201318.py
yuwenxianglong/zhxsh.github.io
427d14b787e55df26e03a069288815b14ab6b534
[ "MIT" ]
null
null
null
resdata/TensorFlow/RNN_Prediction/stockPrediction202005201318.py
yuwenxianglong/zhxsh.github.io
427d14b787e55df26e03a069288815b14ab6b534
[ "MIT" ]
1
2021-03-30T04:35:57.000Z
2021-03-30T04:35:57.000Z
resdata/TensorFlow/RNN_Prediction/stockPrediction202005201318.py
yuwenxianglong/yuwenxianglong.github.io
196e32d2775ef3a3863603cb5c30023450a1944c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Project : RNN_Prediction @Author : Xu-Shan Zhao @Filename: stockPrediction202005201318.py @IDE : PyCharm @Time1 : 2020-05-20 13:18:46 @Time2 : 2020/5/20 13:18 @Month1 : 5月 @Month2 : 五月 """ import tushare as ts import tensorflow as tf import pandas as pd from sklearn.model_select...
28.666667
102
0.713748
0
0
0
0
0
0
0
0
546
0.186348
13996a1a6227b5d37ae0ca02175dbff81af29e2d
29,063
py
Python
src/mushme.py
MuShMe/MuShMe
dbc9b940c827039016d7917d535882b47d7d8e5b
[ "Unlicense", "MIT" ]
1
2015-07-10T06:14:29.000Z
2015-07-10T06:14:29.000Z
src/mushme.py
MuShMe/MuShMe
dbc9b940c827039016d7917d535882b47d7d8e5b
[ "Unlicense", "MIT" ]
2
2016-01-10T04:27:12.000Z
2016-01-10T10:47:57.000Z
src/mushme.py
MuShMe/MuShMe
dbc9b940c827039016d7917d535882b47d7d8e5b
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from src import app import os import shutil from flask import Flask, render_template, session, request, flash, url_for, redirect from Forms import ContactForm, LoginForm, editForm, ReportForm, CommentForm, searchForm, AddPlaylist from flask.ext.mail import Message, Mail fro...
42.181422
251
0.600282
0
0
0
0
14,945
0.514228
0
0
9,236
0.317792
13998d176731562bde5bd78d5d04ea6a48f3fc9c
19,221
py
Python
language/labs/drkit/evaluate.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
1,199
2018-10-16T01:30:18.000Z
2022-03-31T21:05:24.000Z
language/labs/drkit/evaluate.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
116
2018-10-18T03:31:46.000Z
2022-03-24T13:40:50.000Z
language/labs/drkit/evaluate.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
303
2018-10-22T12:35:12.000Z
2022-03-27T17:38:17.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
33.196891
80
0.643827
523
0.02721
0
0
0
0
0
0
5,015
0.260913
139af14f3890b6a5fdebd9bc833f815258ac26c3
1,433
py
Python
tests/adv/test_pop_sfrd.py
jlashner/ares
6df2b676ded6bd59082a531641cb1dadd475c8a8
[ "MIT" ]
10
2020-03-26T01:08:10.000Z
2021-12-04T13:02:10.000Z
tests/adv/test_pop_sfrd.py
jlashner/ares
6df2b676ded6bd59082a531641cb1dadd475c8a8
[ "MIT" ]
25
2020-06-08T14:52:28.000Z
2022-03-08T02:30:54.000Z
tests/adv/test_pop_sfrd.py
jlashner/ares
6df2b676ded6bd59082a531641cb1dadd475c8a8
[ "MIT" ]
8
2020-03-24T14:11:25.000Z
2021-11-06T06:32:59.000Z
""" test_pop_models.py Author: Jordan Mirocha Affiliation: UCLA Created on: Fri Jul 15 15:23:11 PDT 2016 Description: """ import ares import matplotlib.pyplot as pl PB = ares.util.ParameterBundle def test(): # Create a simple population pars_1 = PB('pop:fcoll') + PB('sed:bpass') pop_fcoll = ares.po...
25.589286
75
0.669923
0
0
0
0
0
0
0
0
812
0.566643
139b3faa5c126c4a50efcad5c0824965049d5697
258
py
Python
venv/lib/python3.7/site-packages/leancloud/engine/utils.py
corgiclub/CorgiBot_telegram
a63d91a74ee497b9a405e93bd3b303367ef95268
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/leancloud/engine/utils.py
corgiclub/CorgiBot_telegram
a63d91a74ee497b9a405e93bd3b303367ef95268
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/leancloud/engine/utils.py
corgiclub/CorgiBot_telegram
a63d91a74ee497b9a405e93bd3b303367ef95268
[ "MIT" ]
null
null
null
# coding: utf-8 import time import hashlib import leancloud from leancloud._compat import to_bytes __author__ = 'asaka <[email protected]>' def sign_by_key(timestamp, key): return hashlib.md5(to_bytes('{0}{1}'.format(timestamp, key))).hexdigest()
18.428571
77
0.748062
0
0
0
0
0
0
0
0
52
0.20155
139b6ad51a7b83cb108f4b1bb43a2ce22b27cc6e
2,377
py
Python
AirplaneLQR/chap4LQR/mavsim_chap4.py
eyler94/ee674AirplaneSim
3ba2c6e685c2688a7f372475a7cd1f55f583d10e
[ "MIT" ]
1
2020-06-07T00:14:42.000Z
2020-06-07T00:14:42.000Z
AirplaneLQR/chap4LQR/mavsim_chap4.py
eyler94/ee674AirplaneSim
3ba2c6e685c2688a7f372475a7cd1f55f583d10e
[ "MIT" ]
null
null
null
AirplaneLQR/chap4LQR/mavsim_chap4.py
eyler94/ee674AirplaneSim
3ba2c6e685c2688a7f372475a7cd1f55f583d10e
[ "MIT" ]
1
2019-06-24T22:10:48.000Z
2019-06-24T22:10:48.000Z
""" mavsimPy - Chapter 4 assignment for Beard & McLain, PUP, 2012 - Update history: 12/27/2018 - RWB 1/17/2019 - RWB """ import sys sys.path.append('..') import numpy as np import parameters.simulation_parameters as SIM from chap2.mav_viewer import mav_viewer # from chap2.video_writer import ...
30.87013
106
0.63862
0
0
0
0
0
0
0
0
890
0.374422
139b92054f917712ecbfacdc663b9fc7eea6103f
6,010
py
Python
core/self6dpp/tools/ycbv/ycbv_pbr_so_mlBCE_Double_3_merge_train_real_uw_init_results_with_refined_poses_to_json.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
33
2021-12-15T07:11:47.000Z
2022-03-29T08:58:32.000Z
core/self6dpp/tools/ycbv/ycbv_pbr_so_mlBCE_Double_3_merge_train_real_uw_init_results_with_refined_poses_to_json.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
3
2021-12-15T11:39:54.000Z
2022-03-29T07:24:23.000Z
core/self6dpp/tools/ycbv/ycbv_pbr_so_mlBCE_Double_3_merge_train_real_uw_init_results_with_refined_poses_to_json.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
null
null
null
import os.path as osp import sys import numpy as np import mmcv from tqdm import tqdm from functools import cmp_to_key cur_dir = osp.dirname(osp.abspath(__file__)) PROJ_ROOT = osp.normpath(osp.join(cur_dir, "../../../../")) sys.path.insert(0, PROJ_ROOT) from lib.pysixd import inout, misc from lib.utils.bbox_utils impo...
52.719298
146
0.708985
0
0
0
0
0
0
0
0
3,655
0.608153
139bcb633d3c2b224334dad0ddfc97013f3a8ff8
918
py
Python
tests/test_app/rest_app/rest_app/services/account_service.py
jadbin/guniflask
36253a962c056abf34884263c6919b02b921ad9c
[ "MIT" ]
12
2018-09-06T06:14:59.000Z
2021-04-18T06:30:44.000Z
tests/test_app/rest_app/rest_app/services/account_service.py
jadbin/guniflask
36253a962c056abf34884263c6919b02b921ad9c
[ "MIT" ]
null
null
null
tests/test_app/rest_app/rest_app/services/account_service.py
jadbin/guniflask
36253a962c056abf34884263c6919b02b921ad9c
[ "MIT" ]
2
2019-09-08T22:01:26.000Z
2020-08-03T07:23:29.000Z
from flask import abort from guniflask.context import service from ..config.jwt_config import jwt_manager @service class AccountService: accounts = { 'root': { 'authorities': ['role_admin'], 'password': '123456', } } def login(self, username: str, password: str): ...
27.818182
102
0.59695
799
0.87037
0
0
808
0.880174
0
0
132
0.143791
139ca9c9fd0f3cc444f7df8ee3874d848532508e
616
py
Python
test/library/draft/DataFrames/psahabu/AddSeries.py
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
1,602
2015-01-06T11:26:31.000Z
2022-03-30T06:17:21.000Z
test/library/draft/DataFrames/psahabu/AddSeries.py
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
11,789
2015-01-05T04:50:15.000Z
2022-03-31T23:39:19.000Z
test/library/draft/DataFrames/psahabu/AddSeries.py
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
498
2015-01-08T18:58:18.000Z
2022-03-20T15:37:45.000Z
import pandas as pd I = ["A", "B", "C", "D", "E"] oneDigit = pd.Series([1, 2, 3, 4, 5], pd.Index(I)) twoDigit = pd.Series([10, 20, 30, 40, 50], pd.Index(I)) print "addends:" print oneDigit print twoDigit print print "sum:" print oneDigit + twoDigit print I2 = ["A", "B", "C"] I3 = ["B", "C", "D", "E"] X = pd.Series(...
16.210526
55
0.576299
0
0
0
0
0
0
0
0
127
0.206169
139ccafc558ec94667dba3f86f2f3f760f5cf3e5
11,176
py
Python
nelly/parser.py
shawcx/nelly
8075b92e20064a117f9ab5a6d8ad261d21234111
[ "MIT" ]
null
null
null
nelly/parser.py
shawcx/nelly
8075b92e20064a117f9ab5a6d8ad261d21234111
[ "MIT" ]
null
null
null
nelly/parser.py
shawcx/nelly
8075b92e20064a117f9ab5a6d8ad261d21234111
[ "MIT" ]
null
null
null
# # (c) 2008-2020 Matthew Shaw # import sys import os import re import logging import nelly from .scanner import Scanner from .program import Program from .types import * class Parser(object): def __init__(self, include_dirs=[]): self.include_dirs = include_dirs + [ os.path.join(nelly.root, 'grammars...
34.708075
99
0.54796
10,997
0.983984
0
0
0
0
0
0
2,436
0.217967
139d2344b35cd1e7a61819201ca64cbfee2afef8
2,363
py
Python
qcodes/utils/installation_info.py
zhinst/Qcodes
d95798bd08d57bb8cddd460fdb4a5ff25f19215c
[ "MIT" ]
1
2020-10-19T08:09:04.000Z
2020-10-19T08:09:04.000Z
qcodes/utils/installation_info.py
M1racleShih/Qcodes
c03029a6968e16379155aadc8b083a02e01876a6
[ "MIT" ]
230
2020-08-17T06:08:33.000Z
2022-03-29T12:06:58.000Z
qcodes/utils/installation_info.py
nikhartman/Qcodes
042c5e25ab9e40b20c316b4055c4842844834d1e
[ "MIT" ]
4
2017-12-11T12:13:41.000Z
2018-08-01T13:13:04.000Z
""" This module contains helper functions that provide information about how QCoDeS is installed and about what other packages are installed along with QCoDeS """ import sys from typing import Dict, List, Optional import subprocess import json import logging import requirements if sys.version_info >= (3, 8): from ...
28.130952
84
0.656792
0
0
0
0
0
0
0
0
896
0.379179
139d2693f9221f951071ee2118de0f027b954129
1,177
py
Python
documents/views.py
brandonrobertz/foia-pdf-processing-system
025516b5e2234df16741237c4208cd484f577370
[ "MIT" ]
null
null
null
documents/views.py
brandonrobertz/foia-pdf-processing-system
025516b5e2234df16741237c4208cd484f577370
[ "MIT" ]
null
null
null
documents/views.py
brandonrobertz/foia-pdf-processing-system
025516b5e2234df16741237c4208cd484f577370
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import JsonResponse from .models import FieldCategory def fieldname_values(request): if request.method == "GET": fieldname = request.GET['fieldname'] query = request.GET.get('q') q_kwargs= dict( fieldname=fieldname, ...
28.02381
58
0.614274
0
0
0
0
0
0
0
0
169
0.143585
139d4a4bd97d70f26bdab675ca59d3c9590754fc
746
py
Python
tests/test_provider_Mongey_kafka_connect.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
tests/test_provider_Mongey_kafka_connect.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
tests/test_provider_Mongey_kafka_connect.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# tests/test_provider_Mongey_kafka-connect.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:20:11 UTC) def test_provider_import(): import terrascript.provider.Mongey.kafka_connect def test_resource_import(): from terrascript.resource.Mongey.kafka_connect import kafka_connect_connector # T...
29.84
81
0.758713
0
0
0
0
0
0
0
0
535
0.717158
139ed09f5c5b42cbc50f76d8cc6ce28401b30b04
12,850
py
Python
application.py
nicholsont/catalog_app
011e4c35401aa1128a4cf1ca99dd808da7a759e6
[ "Unlicense" ]
null
null
null
application.py
nicholsont/catalog_app
011e4c35401aa1128a4cf1ca99dd808da7a759e6
[ "Unlicense" ]
null
null
null
application.py
nicholsont/catalog_app
011e4c35401aa1128a4cf1ca99dd808da7a759e6
[ "Unlicense" ]
null
null
null
from flask import Flask, render_template, request, redirect, jsonify, g from flask import url_for, flash, make_response from flask import session as login_session from sqlalchemy import create_engine, asc from sqlalchemy.orm import sessionmaker from models import Base, Category, Item, User from oauth2client.client impo...
39.296636
79
0.63323
0
0
0
0
10,961
0.852996
0
0
3,211
0.249883
139ed5391c8324e35fd54e409887ff876db4d1d0
239
py
Python
noo/impl/utils/__init__.py
nooproject/noo
238711c55faeb1226a4e5339cd587a312c4babac
[ "MIT" ]
2
2022-02-03T07:35:46.000Z
2022-02-03T16:12:25.000Z
noo/impl/utils/__init__.py
nooproject/noo
238711c55faeb1226a4e5339cd587a312c4babac
[ "MIT" ]
2
2022-03-05T02:31:38.000Z
2022-03-05T21:26:42.000Z
noo/impl/utils/__init__.py
nooproject/noo
238711c55faeb1226a4e5339cd587a312c4babac
[ "MIT" ]
1
2022-03-05T01:40:29.000Z
2022-03-05T01:40:29.000Z
from .echo import echo, set_quiet from .errors import NooException, cancel from .store import STORE, FileStore, Store __all__ = ( "FileStore", "NooException", "Store", "STORE", "cancel", "echo", "set_quiet", )
17.071429
42
0.635983
0
0
0
0
0
0
0
0
64
0.267782
139f6d8d256ac39b6d5d2e96db49c8e71d3fc905
20,472
py
Python
ai2thor/server.py
aliang8/ai2thor
3ef92cf5437e2d60127c77bd59d5b7394eebb36c
[ "Apache-2.0" ]
1
2019-04-11T14:51:04.000Z
2019-04-11T14:51:04.000Z
ai2thor/server.py
aliang8/ai2thor
3ef92cf5437e2d60127c77bd59d5b7394eebb36c
[ "Apache-2.0" ]
null
null
null
ai2thor/server.py
aliang8/ai2thor
3ef92cf5437e2d60127c77bd59d5b7394eebb36c
[ "Apache-2.0" ]
null
null
null
# Copyright Allen Institute for Artificial Intelligence 2017 """ ai2thor.server Handles all communication with Unity through a Flask service. Messages are sent to the controller using a pair of request/response queues. """ import json import logging import sys import os import os.path try: from queue import Em...
37.289617
148
0.621483
18,422
0.899863
0
0
5,549
0.271053
0
0
2,025
0.098916
139f98ba0220830de5e89cabcde17bead64e5fb5
625
py
Python
setup.py
ooreilly/mydocstring
077cebfb86575914d343bd3291b9e6c5e8beef94
[ "MIT" ]
13
2018-12-11T00:34:09.000Z
2022-03-22T20:41:04.000Z
setup.py
ooreilly/mydocstring
077cebfb86575914d343bd3291b9e6c5e8beef94
[ "MIT" ]
13
2018-06-15T19:42:06.000Z
2020-12-18T22:20:02.000Z
setup.py
ooreilly/mydocstring
077cebfb86575914d343bd3291b9e6c5e8beef94
[ "MIT" ]
5
2018-06-16T07:45:49.000Z
2020-12-12T07:12:00.000Z
from setuptools import setup setup(name='mydocstring', version='0.2.7', description="""A tool for extracting and converting Google-style docstrings to plain-text, markdown, and JSON.""", url='http://github.com/ooreilly/mydocstring', author="Ossian O'Reilly", license='MIT', pa...
32.894737
84
0.6048
0
0
0
0
0
0
0
0
317
0.5072
13a03223c85f270b2a1843680f883661d539e4c0
903
py
Python
anyser/impls/bson.py
Cologler/anyser-python
52afa0a62003adcfe269f47d81863e00381d8ff9
[ "MIT" ]
null
null
null
anyser/impls/bson.py
Cologler/anyser-python
52afa0a62003adcfe269f47d81863e00381d8ff9
[ "MIT" ]
null
null
null
anyser/impls/bson.py
Cologler/anyser-python
52afa0a62003adcfe269f47d81863e00381d8ff9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2020~2999 - Cologler <[email protected]> # ---------- # # ---------- import bson import struct from ..err import SerializeError from ..abc import * from ..core import register_format @register_format('bson', '.bson') class BsonSerializer(ISerializer): format_name = 'bson...
25.083333
57
0.605759
640
0.708749
0
0
674
0.746401
0
0
124
0.13732
13a130fcf753fdc5859f92859bfe939d85633259
69,875
py
Python
tests/test_config_parser.py
KevinMFong/pyhocon
091830001f2d44f91f0f8281fb119c87fd1f6660
[ "Apache-2.0" ]
424
2015-01-03T02:48:46.000Z
2022-03-22T02:47:43.000Z
tests/test_config_parser.py
KevinMFong/pyhocon
091830001f2d44f91f0f8281fb119c87fd1f6660
[ "Apache-2.0" ]
251
2015-02-03T20:47:53.000Z
2022-03-19T16:45:15.000Z
tests/test_config_parser.py
KevinMFong/pyhocon
091830001f2d44f91f0f8281fb119c87fd1f6660
[ "Apache-2.0" ]
127
2015-01-09T14:31:49.000Z
2022-03-19T15:47:30.000Z
# -*- encoding: utf-8 -*- import json import os import shutil import tempfile from collections import OrderedDict from datetime import timedelta from pyparsing import ParseBaseException, ParseException, ParseSyntaxException import mock import pytest from pyhocon import (ConfigFactory, ConfigParser, ConfigSubstitution...
28.381397
120
0.44385
68,469
0.979766
0
0
5,593
0.080034
0
0
29,458
0.421533
13a1474b58c5efbf18c61bee86e2d5e292bdda41
7,416
py
Python
scenario_runner/srunner/scenariomanager/scenario_manager.py
cgeller/WorldOnRails
d8aa9f7ae67a6b7b71a2fc5ba86bb2a44f221bef
[ "MIT" ]
447
2021-03-26T09:29:17.000Z
2022-03-30T03:03:35.000Z
scenario_runner/srunner/scenariomanager/scenario_manager.py
cgeller/WorldOnRails
d8aa9f7ae67a6b7b71a2fc5ba86bb2a44f221bef
[ "MIT" ]
56
2021-04-21T03:12:50.000Z
2022-03-30T13:34:16.000Z
scenario_runner/srunner/scenariomanager/scenario_manager.py
cgeller/WorldOnRails
d8aa9f7ae67a6b7b71a2fc5ba86bb2a44f221bef
[ "MIT" ]
82
2021-04-14T04:34:04.000Z
2022-03-29T07:35:15.000Z
#!/usr/bin/env python # Copyright (c) 2018-2020 Intel Corporation # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ This module provides the ScenarioManager implementation. It must not be modified and is for reference only! """ from __future__ ...
31.965517
95
0.631338
6,722
0.906419
0
0
0
0
0
0
2,188
0.295038
13a20e94df54130a998b207ca8a8c8a5a8437f0f
43,104
py
Python
edb/schema/referencing.py
disfated/edgedb
8d78f4a2a578f80780be160ba5f107f5bdc79063
[ "Apache-2.0" ]
null
null
null
edb/schema/referencing.py
disfated/edgedb
8d78f4a2a578f80780be160ba5f107f5bdc79063
[ "Apache-2.0" ]
null
null
null
edb/schema/referencing.py
disfated/edgedb
8d78f4a2a578f80780be160ba5f107f5bdc79063
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
35.015435
79
0.588994
41,851
0.970931
0
0
6,569
0.152399
0
0
3,046
0.070666
13a2d4c2633ce0ba08875637d40181583a434b5a
1,740
py
Python
tools.py
Jakuko99/effectb
ab6688ce3679cdd2cf43038f7bfef67dabf97c1b
[ "MIT" ]
1
2021-05-31T09:21:19.000Z
2021-05-31T09:21:19.000Z
tools.py
Jakuko99/effectb
ab6688ce3679cdd2cf43038f7bfef67dabf97c1b
[ "MIT" ]
null
null
null
tools.py
Jakuko99/effectb
ab6688ce3679cdd2cf43038f7bfef67dabf97c1b
[ "MIT" ]
null
null
null
from calendar import month_name class Tools: def __init__(self): self.output = "" def formatDate(self, date): elements = date.split("-") return f"{elements[2]}. {month_name[int(elements[1])]} {elements[0]}" def shortenText(self, string, n): #return first n sentences from strin...
29
77
0.468391
1,707
0.981034
0
0
0
0
0
0
320
0.183908
13a338753672931f84d30f4a3787e44f246ba8c1
583
py
Python
Bugscan_exploits-master/exp_list/exp-2307.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
11
2020-05-30T13:53:49.000Z
2021-03-17T03:20:59.000Z
Bugscan_exploits-master/exp_list/exp-2307.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-13T03:25:18.000Z
2020-07-21T06:24:16.000Z
Bugscan_exploits-master/exp_list/exp-2307.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-30T13:53:51.000Z
2020-12-01T21:44:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- #__Author__ = 烽火戏诸侯 #_PlugName_ = Shop7z /admin/lipinadd.asp越权访问 import re def assign(service, arg): if service == "shop7z": return True, arg def audit(arg): payload = 'admin/lipinadd.asp' target = arg + payload code, head,res, errcode...
27.761905
80
0.603774
0
0
0
0
0
0
0
0
235
0.391015
13a3a70ae5392650e62af677f5914bc6b6d670e2
18,444
py
Python
homeassistant/components/hue/light.py
dlangerm/core
643acbf9484fd05161d7e9f2228c9c92a5ce7d0b
[ "Apache-2.0" ]
5
2017-01-26T16:33:09.000Z
2018-07-20T13:50:47.000Z
homeassistant/components/hue/light.py
dlangerm/core
643acbf9484fd05161d7e9f2228c9c92a5ce7d0b
[ "Apache-2.0" ]
68
2018-10-04T16:01:20.000Z
2022-03-31T06:21:46.000Z
homeassistant/components/hue/light.py
dlangerm/core
643acbf9484fd05161d7e9f2228c9c92a5ce7d0b
[ "Apache-2.0" ]
7
2018-10-04T10:12:45.000Z
2021-12-29T20:55:40.000Z
"""Support for the Philips Hue lights.""" from __future__ import annotations from datetime import timedelta from functools import partial import logging import random import aiohue import async_timeout from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_EFFECT, ATTR_FL...
32.702128
88
0.635437
9,843
0.533669
0
0
6,282
0.340599
8,264
0.448059
3,153
0.17095
13a4eaea9e2402891521cc56201ae27b7976fb0d
4,794
py
Python
src/ezdxf/math/bulge.py
dmtvanzanten/ezdxf
6fe9d0aa961e011c87768aa6511256de21a662dd
[ "MIT" ]
null
null
null
src/ezdxf/math/bulge.py
dmtvanzanten/ezdxf
6fe9d0aa961e011c87768aa6511256de21a662dd
[ "MIT" ]
null
null
null
src/ezdxf/math/bulge.py
dmtvanzanten/ezdxf
6fe9d0aa961e011c87768aa6511256de21a662dd
[ "MIT" ]
null
null
null
# Copyright (c) 2018-2021 Manfred Moitzi # License: MIT License # source: http://www.lee-mac.com/bulgeconversion.html # source: http://www.afralisp.net/archive/lisp/Bulges1.htm from typing import Any, TYPE_CHECKING, Tuple import math from ezdxf.math import Vec2 if TYPE_CHECKING: from ezdxf.eztypes import Vertex _...
32.391892
79
0.629954
0
0
0
0
0
0
0
0
2,555
0.532958
13a51bb2dfcddb562cef50eb73654bc85d1b9f01
666
py
Python
Plugins/Aspose.Email Java for Python/tests/ProgrammingEmail/ManageAttachments/ManageAttachments.py
aspose-email/Aspose.Email-for-Java
cf4567e54f7979e7296c99bcae2c6477385d7735
[ "MIT" ]
24
2016-07-29T03:57:35.000Z
2022-01-18T23:42:08.000Z
Plugins/Aspose.Email Java for Python/tests/ProgrammingEmail/ManageAttachments/ManageAttachments.py
asposeemail/Aspose_Email_Java
cf4567e54f7979e7296c99bcae2c6477385d7735
[ "MIT" ]
6
2017-07-24T13:08:43.000Z
2022-01-01T21:51:25.000Z
Plugins/Aspose.Email Java for Python/tests/ProgrammingEmail/ManageAttachments/ManageAttachments.py
aspose-email/Aspose.Email-for-Java
cf4567e54f7979e7296c99bcae2c6477385d7735
[ "MIT" ]
25
2016-04-09T07:24:12.000Z
2021-12-19T13:54:21.000Z
# To change this license header, choose License Headers in Project Properties. # To change this template file, choose Tools | Templates # and open the template in the editor. #if __name__ == "__main__": # print "Hello World" from ProgrammingEmail import ManageAttachments import jpype import os.path asposeapispath...
31.714286
94
0.735736
0
0
0
0
0
0
0
0
360
0.540541
13a54ea2fa4b8b8724c32c2f486041ebcedd4707
33,005
py
Python
mypython/keys.py
asmeurer/mypython
ae984926739cc2bb3abe70566762d7b4052ed0ae
[ "MIT" ]
27
2017-02-09T06:18:30.000Z
2022-02-16T08:32:42.000Z
mypython/keys.py
asmeurer/mypython
ae984926739cc2bb3abe70566762d7b4052ed0ae
[ "MIT" ]
1
2022-01-20T20:23:41.000Z
2022-01-20T20:23:41.000Z
mypython/keys.py
asmeurer/mypython
ae984926739cc2bb3abe70566762d7b4052ed0ae
[ "MIT" ]
2
2019-12-14T06:45:04.000Z
2021-10-04T00:28:48.000Z
from prompt_toolkit.key_binding.bindings.named_commands import (accept_line, self_insert, backward_delete_char, beginning_of_line) from prompt_toolkit.key_binding.bindings.basic import if_no_repeat from prompt_toolkit.key_binding.bindings.basic import load_basic_bindings from prompt_toolkit.key_binding.bindings.ema...
34.344433
117
0.676988
0
0
0
0
22,142
0.670827
0
0
7,105
0.215257
13a5765c2edbddbec6f546bc1dadb0d5693914fe
10,909
py
Python
demand/preday_model_estimation/isg.py
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
50
2018-12-21T08:21:38.000Z
2022-01-24T09:47:59.000Z
demand/preday_model_estimation/isg.py
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
2
2018-12-19T13:42:47.000Z
2019-05-13T04:11:45.000Z
demand/preday_model_estimation/isg.py
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
27
2018-11-28T07:30:34.000Z
2022-02-05T02:22:26.000Z
from biogeme import * from headers import * from loglikelihood import * from statistics import * from nested import * #import random cons_work= Beta('cons for work', 0,-10,10,0) cons_edu = Beta('cons for education',0,-50,10,0) cons_shopping = Beta('cons for shopping',0,-10,10,0) cons_...
26.098086
94
0.735356
0
0
0
0
0
0
0
0
2,872
0.263269
13a612e58dbc2d528c1a7b3b41902e48fed28775
739
py
Python
HRMS/app/__init__.py
freestyletime/HumanResourceManagement
4ec7f453fdae28d1a412d740849c9ee186757df8
[ "MIT" ]
1
2021-12-24T18:47:20.000Z
2021-12-24T18:47:20.000Z
HRMS/app/__init__.py
freestyletime/HumanResourceManagement
4ec7f453fdae28d1a412d740849c9ee186757df8
[ "MIT" ]
null
null
null
HRMS/app/__init__.py
freestyletime/HumanResourceManagement
4ec7f453fdae28d1a412d740849c9ee186757df8
[ "MIT" ]
null
null
null
# 初始化模块 from config import Config from flask import Flask from flask_sqlalchemy import SQLAlchemy # 数据库操作对象 db = SQLAlchemy() # 创建app def create_app(): # flask操作对象 app = Flask(__name__) # 通过配置文件读取并应用配置 app.config.from_object(Config) # 初始化数据库 db.init_app(app) # 员工管理子系统 from app.view i...
19.972973
39
0.705007
0
0
0
0
0
0
0
0
272
0.302558
13a7639121bf30f43e2268fe97c114969714293e
1,225
py
Python
listener/src/ethereum_connection.py
NicolasMenendez/oracles-dashboard
789e4a771c9f7064a19a85ef1b4f44bcbbac1a10
[ "MIT" ]
null
null
null
listener/src/ethereum_connection.py
NicolasMenendez/oracles-dashboard
789e4a771c9f7064a19a85ef1b4f44bcbbac1a10
[ "MIT" ]
null
null
null
listener/src/ethereum_connection.py
NicolasMenendez/oracles-dashboard
789e4a771c9f7064a19a85ef1b4f44bcbbac1a10
[ "MIT" ]
1
2020-01-17T12:38:39.000Z
2020-01-17T12:38:39.000Z
import json import web3 class EthereumConnection(): def __init__(self, url_node): self._url_node = url_node self._node_provider = web3.HTTPProvider(self._url_node) self._w3 = web3.Web3(self._node_provider) @property def w3(self): return self._w3 @property def url_...
22.685185
86
0.646531
1,195
0.97551
0
0
433
0.353469
0
0
3
0.002449
13a86b3246874d1785eb144fa791b1d302c19c30
60,991
py
Python
ross/stochastic/st_results.py
JuliaMota/ross
88c2fa69d9a583dcdc33eab8deb35c797ebf4ef8
[ "MIT" ]
null
null
null
ross/stochastic/st_results.py
JuliaMota/ross
88c2fa69d9a583dcdc33eab8deb35c797ebf4ef8
[ "MIT" ]
null
null
null
ross/stochastic/st_results.py
JuliaMota/ross
88c2fa69d9a583dcdc33eab8deb35c797ebf4ef8
[ "MIT" ]
null
null
null
"""STOCHASTIC ROSS plotting module. This module returns graphs for each type of analyses in st_rotor_assembly.py. """ import numpy as np from plotly import express as px from plotly import graph_objects as go from plotly import io as pio from plotly.subplots import make_subplots from ross.plotly_theme import tableau_...
36.763713
92
0.480202
60,510
0.992049
0
0
0
0
0
0
21,663
0.35516
13a8c046daa5c36fb60a09676a0be10c4e57fb9f
4,227
py
Python
code/prisonersDilemma.py
ben9583/PrisonersDilemmaTournament
8227c05f835c93a0b30feb4207a7d7c631e670a0
[ "MIT" ]
1
2021-09-16T03:38:21.000Z
2021-09-16T03:38:21.000Z
code/prisonersDilemma.py
ben9583/PrisonersDilemmaTournament
8227c05f835c93a0b30feb4207a7d7c631e670a0
[ "MIT" ]
null
null
null
code/prisonersDilemma.py
ben9583/PrisonersDilemmaTournament
8227c05f835c93a0b30feb4207a7d7c631e670a0
[ "MIT" ]
null
null
null
import os import itertools import importlib import numpy as np import random STRATEGY_FOLDER = "exampleStrats" RESULTS_FILE = "results.txt" pointsArray = [[1,5],[0,3]] # The i-j-th element of this array is how many points you receive if you do play i, and your opponent does play j. moveLabels = ["D","C"] #...
37.078947
210
0.62503
0
0
0
0
0
0
0
0
1,068
0.252661
13a92427a8cdec440aec42402a7483f2303b73a6
10,075
py
Python
json_to_relation/mysqldb.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
4
2015-10-10T19:09:49.000Z
2021-09-02T00:58:06.000Z
json_to_relation/mysqldb.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
null
null
null
json_to_relation/mysqldb.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
8
2015-05-16T14:33:33.000Z
2019-10-24T08:56:25.000Z
# Copyright (c) 2014, Stanford University # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
40.461847
757
0.60794
8,359
0.829677
557
0.055285
0
0
0
0
6,309
0.626203
13a95b957fe3881893fa91e63fed84b8224215f9
611
py
Python
tools/xkeydump.py
treys/crypto-key-derivation
789900bd73160db9a0d406c7c7f00f5f299aff73
[ "MIT" ]
29
2017-11-12T08:54:03.000Z
2022-03-04T21:12:00.000Z
tools/xkeydump.py
treys/crypto-key-derivation
789900bd73160db9a0d406c7c7f00f5f299aff73
[ "MIT" ]
2
2019-03-01T05:56:52.000Z
2021-05-17T00:18:01.000Z
tools/xkeydump.py
treys/crypto-key-derivation
789900bd73160db9a0d406c7c7f00f5f299aff73
[ "MIT" ]
9
2018-04-10T08:40:25.000Z
2021-12-29T16:04:48.000Z
#!./venv/bin/python from lib.mbp32 import XKey from lib.utils import one_line_from_stdin xkey = XKey.from_xkey(one_line_from_stdin()) print(xkey) print("Version:", xkey.version) print("Depth:", xkey.depth) print("Parent FP:", xkey.parent_fp.hex()) print("Child number:", xkey.child_number_with_tick()) print("Chain cod...
32.157895
63
0.721768
0
0
0
0
0
0
0
0
137
0.224223
13aa5a46812a4881dac4a4f78ba8019d3b73841d
616
py
Python
examples/compute_angular_resolution.py
meder411/Tangent-Images
6def4d7b8797110e54f7faa2435973771d9e9722
[ "BSD-3-Clause" ]
57
2019-12-20T09:28:29.000Z
2022-03-28T02:38:48.000Z
examples/compute_angular_resolution.py
meder411/Tangent-Images
6def4d7b8797110e54f7faa2435973771d9e9722
[ "BSD-3-Clause" ]
6
2020-06-06T16:39:35.000Z
2021-01-21T01:19:52.000Z
examples/compute_angular_resolution.py
meder411/Tangent-Images
6def4d7b8797110e54f7faa2435973771d9e9722
[ "BSD-3-Clause" ]
16
2019-12-21T08:19:33.000Z
2022-03-28T02:38:49.000Z
from spherical_distortion.util import * sample_order = 9 # Input resolution to examine def ang_fov(s): print('Spherical Resolution:', s) for b in range(s): dim = tangent_image_dim(b, s) # Pixel dimension of tangent image corners = tangent_image_corners(b, s) # Corners of each tangent image ...
36.235294
77
0.625
0
0
0
0
0
0
0
0
202
0.327922