hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
6e2838b7143da4e35710c9f9719c3e36ad5f0449
1,299
py
Python
chainer_wing/gui_main/main.py
fukatani/ChainerWing
37a1435635cbc610dc86d15c8baca67622355757
[ "MIT", "BSD-3-Clause" ]
26
2017-07-03T13:50:28.000Z
2021-02-06T08:43:42.000Z
chainer_wing/gui_main/main.py
fukatani/CW_gui
37a1435635cbc610dc86d15c8baca67622355757
[ "MIT", "BSD-3-Clause" ]
10
2017-07-03T14:30:00.000Z
2017-12-21T13:26:43.000Z
chainer_wing/gui_main/main.py
fukatani/CW_gui
37a1435635cbc610dc86d15c8baca67622355757
[ "MIT", "BSD-3-Clause" ]
6
2017-03-15T13:48:09.000Z
2019-04-15T19:28:02.000Z
import argparse import logging import os import sys from PyQt5 import QtWidgets from chainer_wing.gui_main.graph import Graph from chainer_wing.gui_main.painter import Painter2D, MainWindow logger = logging.getLogger('Chainer-Wing') logger.setLevel(logging.DEBUG) if os.path.isfile('cw_debug.log'): os.remove('cw_...
26.510204
85
0.727483
07b4ee43dae15e9e2f6e154b4a2d99c6afc1e4c6
599
py
Python
python/hetu/gpu_ops/Scatter.py
codecaution/Hetu
e278732c2fe3554c8d576585f5bcbf79ade31b68
[ "Apache-2.0" ]
null
null
null
python/hetu/gpu_ops/Scatter.py
codecaution/Hetu
e278732c2fe3554c8d576585f5bcbf79ade31b68
[ "Apache-2.0" ]
null
null
null
python/hetu/gpu_ops/Scatter.py
codecaution/Hetu
e278732c2fe3554c8d576585f5bcbf79ade31b68
[ "Apache-2.0" ]
3
2021-11-29T13:47:48.000Z
2022-03-03T02:00:43.000Z
from __future__ import absolute_import from .Node import Op from .. import ndarray from ..gpu_links import scatter class ScatterOp(Op): def __init__(self, node_target, node_index, node_src, ctx=None): super().__init__(ScatterOp, [node_target, node_index, node_src], ctx) def compute(self, target, dim, ...
28.52381
77
0.704508
d9d77eff8c636ae550cc825ee5cff054aee1ff67
706
py
Python
tests/models/util.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
tests/models/util.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
tests/models/util.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# ---------------------------------------------------------------------- # Various utilities # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # NOC module...
29.416667
72
0.466006
1c3828893b4eae531bd9c2811241ec3653b28a34
4,349
tac
Python
mailmynet/Maildir/proxy_postfix/Twisted-11.0.0/doc/core/howto/tutorial/listings/finger/finger18.tac
SPIN-UMass/SWEET
1b0f39222e7064f70812e3293ca023619295741d
[ "MIT" ]
3
2020-04-02T06:23:44.000Z
2020-08-13T20:32:31.000Z
mailmynet/Maildir/proxy_postfix/Twisted-11.0.0/doc/core/howto/tutorial/listings/finger/finger18.tac
SPIN-UMass/SWEET
1b0f39222e7064f70812e3293ca023619295741d
[ "MIT" ]
null
null
null
mailmynet/Maildir/proxy_postfix/Twisted-11.0.0/doc/core/howto/tutorial/listings/finger/finger18.tac
SPIN-UMass/SWEET
1b0f39222e7064f70812e3293ca023619295741d
[ "MIT" ]
1
2020-04-02T06:26:10.000Z
2020-04-02T06:26:10.000Z
# Do everything properly from twisted.application import internet, service from twisted.internet import protocol, reactor, defer from twisted.words.protocols import irc from twisted.protocols import basic from twisted.web import resource, server, static, xmlrpc import cgi def catchError(err): return "Internal erro...
29.585034
69
0.627271
85ecf4afc7bbf9612fe3d68efa7a8e58acfb9bd8
395
py
Python
algoritmo-Fabiano/17-05-exe1.py
Chris-gde/exercicios
a448ce837c99fb8043b9060ac1fe14f9b00033a5
[ "Apache-2.0" ]
null
null
null
algoritmo-Fabiano/17-05-exe1.py
Chris-gde/exercicios
a448ce837c99fb8043b9060ac1fe14f9b00033a5
[ "Apache-2.0" ]
null
null
null
algoritmo-Fabiano/17-05-exe1.py
Chris-gde/exercicios
a448ce837c99fb8043b9060ac1fe14f9b00033a5
[ "Apache-2.0" ]
null
null
null
''' 1) Faça um algoritmo para ler a idade de 5 pessoas e informar qual foi a maior idade informada. ''' m=0 i1=int(input("Informe a idade ")) if(i1>m): m=i1 i2=int(input("Informe a idade ")) if(i2>m): m=i2 i3=int(input("Informe a idade ")) if(i3>m): m=i3 i4=int(input("Informe a idade ")) if(i4>m): ...
18.809524
96
0.602532
27385b79600f0fb722efaf970b57fd324774ff82
605
py
Python
Python/gradecurving.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
Python/gradecurving.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
Python/gradecurving.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
# https://open.kattis.com/problems/gradecurving import math def curve_func(x): return 10 * math.sqrt(x) x, ylow, yhigh = map(int, input().split()) ylowi, yhighi = -1, -1 i = 0 while i <= 100000: if math.ceil(x) <= yhigh: yhighi = i if math.ceil(x) >= ylow and ylowi == -1: y...
15.512821
48
0.533884
976a037b28ab892c7642ad838881f31864cd0f41
178
py
Python
lib/EGG_research/egg/nest/__init__.py
Slowika/GameBias-EmeCom2020
5b94c47559f8202bca99c26fc1bcb078dd0509a6
[ "MIT" ]
15
2020-09-23T08:24:33.000Z
2022-02-09T14:32:49.000Z
lib/EGG_research/egg/nest/__init__.py
Slowika/GameBias-EmeCom2020
5b94c47559f8202bca99c26fc1bcb078dd0509a6
[ "MIT" ]
null
null
null
lib/EGG_research/egg/nest/__init__.py
Slowika/GameBias-EmeCom2020
5b94c47559f8202bca99c26fc1bcb078dd0509a6
[ "MIT" ]
5
2021-03-05T16:54:45.000Z
2022-03-31T13:33:58.000Z
# 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.
25.428571
65
0.752809
a8de0b9ee5bfb9fd04d2508c09c73e52ebd9cc50
2,298
py
Python
localflavor/ru/forms.py
infoxchange/django-localflavor
d3bc070319519b6572e2b6d3d54a4e96bee1ff78
[ "BSD-3-Clause" ]
null
null
null
localflavor/ru/forms.py
infoxchange/django-localflavor
d3bc070319519b6572e2b6d3d54a4e96bee1ff78
[ "BSD-3-Clause" ]
null
null
null
localflavor/ru/forms.py
infoxchange/django-localflavor
d3bc070319519b6572e2b6d3d54a4e96bee1ff78
[ "BSD-3-Clause" ]
null
null
null
""" Russian-specific forms helpers """ from __future__ import unicode_literals import re from django.forms.fields import RegexField, Select from django.utils.translation import ugettext_lazy as _ from .ru_regions import RU_COUNTY_CHOICES, RU_REGIONS_CHOICES phone_digits_re = re.compile(r'^(?:[78]-?)?(\d{3})[-\.]?(\...
31.916667
97
0.633159
6ebe97836ce8da758909601b639bd2ba30cb478e
4,798
py
Python
zentral/contrib/inventory/urls.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
634
2015-10-30T00:55:40.000Z
2022-03-31T02:59:00.000Z
zentral/contrib/inventory/urls.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
145
2015-11-06T00:17:33.000Z
2022-03-16T13:30:31.000Z
zentral/contrib/inventory/urls.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
103
2015-11-07T07:08:49.000Z
2022-03-18T17:34:36.000Z
from django.conf.urls import url from . import views app_name = "inventory" urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^groups/$', views.GroupsView.as_view(), name='groups'), url(r'^groups/(?P<group_id>\d+)/machines/$', views.GroupMachinesView.as_view(), name='group_machine...
55.790698
115
0.666736
141886650083c4cd29be0c488a4877051b190a0c
5,956
py
Python
ChernMachine/kernel/VJob.py
hepChern/ChernMachine
174f0d6958427bb8ba9c0538f0cf3597702cfe16
[ "MIT" ]
null
null
null
ChernMachine/kernel/VJob.py
hepChern/ChernMachine
174f0d6958427bb8ba9c0538f0cf3597702cfe16
[ "MIT" ]
null
null
null
ChernMachine/kernel/VJob.py
hepChern/ChernMachine
174f0d6958427bb8ba9c0538f0cf3597702cfe16
[ "MIT" ]
null
null
null
import os from Chern.utils import utils from Chern.utils import csys from Chern.utils import metadata class VJob(object): """ Virtual class of the objects, including VVolume, VImage, VContainer """ def __init__(self, path): """ Initialize the project the only **information** of a object instance ...
35.242604
102
0.626931
6fcddedbe44529064dd6a729977a896dfe3f1093
1,283
py
Python
topi/python/topi/tensor.py
titikid/tvm
0cf3765b28d457d2503ec20b551e9a8eadb1491d
[ "Apache-2.0" ]
6
2019-08-29T19:00:57.000Z
2020-06-15T14:55:16.000Z
topi/python/topi/tensor.py
clhne/tvm
d59320c764bd09474775e1b292f3c05c27743d24
[ "Apache-2.0" ]
2
2018-06-19T10:11:42.000Z
2018-06-21T08:49:05.000Z
topi/python/topi/tensor.py
clhne/tvm
d59320c764bd09474775e1b292f3c05c27743d24
[ "Apache-2.0" ]
3
2018-05-29T05:54:15.000Z
2018-06-11T09:51:51.000Z
# pylint: disable=invalid-name,consider-using-enumerate,unused-argument,len-as-condition """Elementwise operators""" from __future__ import absolute_import as _abs import tvm from . import cpp from . import tag @tvm.tag_scope(tag=tag.ELEMWISE) def elemwise_sum(xs): """Perform element-wise sum on inputs Parame...
20.046875
88
0.613406
e6cc651e0b3c89b99fd7cad95bd041e47975b9fb
1,140
py
Python
output/models/ms_data/datatypes/date_xsd/date.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/datatypes/date_xsd/date.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/datatypes/date_xsd/date.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional from xsdata.models.datatype import XmlDate @dataclass class ComplexfooType: class Meta: name = "complexfooType" comp_foo: Optional[XmlDate] = field( default=None, metadata={ "type": "Element", ...
18.688525
48
0.535965
f9a6012d6cd0429c0dfd5422623a9e32d43ef0bf
11,812
py
Python
resotocore/core/query/query_parser.py
someengineering/cloudkeeper
b5fcb30bf4e727eabe93e536d925d0f76926630d
[ "Apache-2.0" ]
316
2021-07-08T12:54:19.000Z
2022-01-12T18:50:17.000Z
resotocore/core/query/query_parser.py
someengineering/cloudkeeper
b5fcb30bf4e727eabe93e536d925d0f76926630d
[ "Apache-2.0" ]
80
2021-07-30T23:55:50.000Z
2022-01-12T15:39:31.000Z
resotocore/core/query/query_parser.py
someengineering/cloudkeeper
b5fcb30bf4e727eabe93e536d925d0f76926630d
[ "Apache-2.0" ]
14
2021-08-23T08:29:29.000Z
2022-01-08T04:42:28.000Z
from dataclasses import replace from functools import reduce import parsy from parsy import string, Parser, regex from core.error import ParseError from core.model.graph_access import EdgeType, Direction from core.parse_util import ( lparen_p, lexeme, rparen_p, l_bracket_p, r_bracket_p, colon_...
29.828283
119
0.703353
a55e062f02fed89f050da05ba6f1f9b5d63cc685
172
py
Python
lab4/src/combinatoric/modules/recurrent_variant5.py
Pavel-Innokentevich-Galanin/5-sem_DM
d2c2d4bcd89fbd4cbf8b8518173f5661924be1d5
[ "Unlicense" ]
null
null
null
lab4/src/combinatoric/modules/recurrent_variant5.py
Pavel-Innokentevich-Galanin/5-sem_DM
d2c2d4bcd89fbd4cbf8b8518173f5661924be1d5
[ "Unlicense" ]
null
null
null
lab4/src/combinatoric/modules/recurrent_variant5.py
Pavel-Innokentevich-Galanin/5-sem_DM
d2c2d4bcd89fbd4cbf8b8518173f5661924be1d5
[ "Unlicense" ]
null
null
null
def recurrent_variant5(n): if n == 0: return 2 elif n == 1: return 6 else: return -2 * recurrent_variant5(n-1) - recurrent_variant5(n-2)
24.571429
69
0.563953
84ac0abc76ebea1d957a07605101c64c9319b93a
4,645
py
Python
nikola/plugins/task_create_bundles.py
servalproject/nikola
4d78504d93597894f3da4a434dfafdec907601a7
[ "MIT" ]
1
2015-12-14T21:38:33.000Z
2015-12-14T21:38:33.000Z
nikola/plugins/task_create_bundles.py
servalproject/nikola
4d78504d93597894f3da4a434dfafdec907601a7
[ "MIT" ]
null
null
null
nikola/plugins/task_create_bundles.py
servalproject/nikola
4d78504d93597894f3da4a434dfafdec907601a7
[ "MIT" ]
null
null
null
# Copyright (c) 2012 Roberto Alsina y otros. # 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 the # Software without restriction, including without limitation # the rights to use, copy, modify, merge, pub...
38.38843
79
0.587944
1983ce97c3e6559de18de68790299c3039146c23
6,296
py
Python
test/test_auth_api.py
lanxinplus/lanxinplus-python-sdk
39ea9cb66a087df06e61ed4a2b473fb170a47f99
[ "MIT" ]
null
null
null
test/test_auth_api.py
lanxinplus/lanxinplus-python-sdk
39ea9cb66a087df06e61ed4a2b473fb170a47f99
[ "MIT" ]
null
null
null
test/test_auth_api.py
lanxinplus/lanxinplus-python-sdk
39ea9cb66a087df06e61ed4a2b473fb170a47f99
[ "MIT" ]
null
null
null
""" LanXin+ OpenAPI LanXin+ OpenAPI Platform # noqa: E501 Generated by: https://openapi.lanxin.cn """ import unittest from pprint import pprint try: import lanxinplus_openapi except ImportError: import sys sys.path.append(sys.argv[0].replace("\\test\\test_auth_api.py", "\\")) # noqa: E501 ...
35.772727
105
0.648189
09322a123cb65562bdadaebcc0f728a3ba47cb8a
3,668
py
Python
intersight/models/iam_end_point_user_policy_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_end_point_user_policy_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_end_point_user_policy_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IamEndPointUserPolicyRef(object): """ NOTE: T...
24.453333
77
0.5488
776cc1c84f6fe027cef9b10a88ee2ec48221b64e
2,812
py
Python
pull_new_data.py
raphaelflash/covid19
afa7fe3efc9e836dab52171e30eb3fcdf20f4b30
[ "MIT" ]
24
2020-03-18T10:37:08.000Z
2020-05-05T01:12:18.000Z
pull_new_data.py
raphaelflash/covid19
afa7fe3efc9e836dab52171e30eb3fcdf20f4b30
[ "MIT" ]
18
2020-03-14T04:25:32.000Z
2020-07-05T20:47:58.000Z
pull_new_data.py
raphaelflash/covid19
afa7fe3efc9e836dab52171e30eb3fcdf20f4b30
[ "MIT" ]
9
2020-03-18T12:13:20.000Z
2021-05-17T14:04:57.000Z
from collections import defaultdict import datetime from pprint import pprint import json import csv from io import StringIO import requests from algoliasearch.search_client import SearchClient client = SearchClient.create('ZOOMT5L4JY', '7157187130f0c6d53989725670982875') index = client.init_index('covid') total_dea...
29.6
107
0.676031
2f2d2a5fd9d64db114fd0dc686c97ad38b8ad9b3
43,356
py
Python
capa/ida/plugin/view.py
evandowning/capa
03b15ce28977ffcc617d3c67c9dff20de7ee6196
[ "Apache-2.0" ]
1
2020-07-16T20:04:55.000Z
2020-07-16T20:04:55.000Z
capa/ida/plugin/view.py
evandowning/capa
03b15ce28977ffcc617d3c67c9dff20de7ee6196
[ "Apache-2.0" ]
47
2021-03-17T10:41:44.000Z
2022-03-28T04:03:01.000Z
capa/ida/plugin/view.py
CrackerCat/capa
b84cc3128d2d54a4b5550bfc3fd05c09e338c2b1
[ "Apache-2.0" ]
3
2021-05-19T20:18:35.000Z
2021-05-19T21:02:18.000Z
# Copyright (C) 2020 FireEye, 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: [package root]/LICENSE.txt # Unless required by applicable law or agreed to in writing,...
35.566858
120
0.596688
ff71b7c5d9327ff29b90fa58d83ad8add73693d9
20,306
py
Python
venv/Lib/site-packages/scipy/sparse/linalg/tests/test_matfuncs.py
mokshagna517/recommendation_sys
bc8ced225dff3c93d619ff5da363f42d0aa0676c
[ "MIT" ]
366
2019-04-07T20:34:48.000Z
2022-03-29T07:35:38.000Z
venv/Lib/site-packages/scipy/sparse/linalg/tests/test_matfuncs.py
mokshagna517/recommendation_sys
bc8ced225dff3c93d619ff5da363f42d0aa0676c
[ "MIT" ]
26
2020-03-24T18:07:06.000Z
2022-03-12T00:12:27.000Z
venv/Lib/site-packages/scipy/sparse/linalg/tests/test_matfuncs.py
mokshagna517/recommendation_sys
bc8ced225dff3c93d619ff5da363f42d0aa0676c
[ "MIT" ]
61
2019-04-08T00:58:14.000Z
2022-03-20T23:04:28.000Z
# # Created by: Pearu Peterson, March 2002 # """ Test functions for scipy.linalg.matfuncs module """ from __future__ import division, print_function, absolute_import import math import numpy as np from numpy import array, eye, exp, random from numpy.linalg import matrix_power from numpy.testing import ( asse...
36.390681
91
0.53792
3cf632a1343ff2abd90523065a8afd423d2c463d
14,114
py
Python
built-in/TensorFlow/Official/nlp/Textcnn_ID0123_For_Tensorflow/run_cnn.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/TensorFlow/Official/nlp/Textcnn_ID0123_For_Tensorflow/run_cnn.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/TensorFlow/Official/nlp/Textcnn_ID0123_For_Tensorflow/run_cnn.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
47.046667
148
0.669335
3f5fed290bca2ecf56896248ebe20b810ccd9aa9
5,983
py
Python
test/integration/test_waf_rules_api_v1.py
KumarGanesanIBM/networking-python-sdk
c00801b8cb908496bb1b8635ee0a53513af57639
[ "Apache-2.0" ]
null
null
null
test/integration/test_waf_rules_api_v1.py
KumarGanesanIBM/networking-python-sdk
c00801b8cb908496bb1b8635ee0a53513af57639
[ "Apache-2.0" ]
null
null
null
test/integration/test_waf_rules_api_v1.py
KumarGanesanIBM/networking-python-sdk
c00801b8cb908496bb1b8635ee0a53513af57639
[ "Apache-2.0" ]
1
2020-07-30T10:39:28.000Z
2020-07-30T10:39:28.000Z
# -*- coding: utf-8 -*- # (C) Copyright IBM Corp. 2020. """ Integration test code to execute waf rules api functions """ import os import unittest from ibm_cloud_networking_services.waf_rules_api_v1 import WafRulesApiV1 from ibm_cloud_networking_services.waf_rule_packages_api_v1 import WafRulePackagesApiV1 class Test...
42.133803
183
0.614575
ffdd01c1f9190954f5f7560fd730a1205892407b
4,460
py
Python
Share/models.py
PPPokerFace/PokerFace
4d28a3bb093200669f2f7b337a907f035b650032
[ "MIT" ]
1
2019-01-06T08:33:24.000Z
2019-01-06T08:33:24.000Z
Share/models.py
PPPokerFace/PokerFace
4d28a3bb093200669f2f7b337a907f035b650032
[ "MIT" ]
null
null
null
Share/models.py
PPPokerFace/PokerFace
4d28a3bb093200669f2f7b337a907f035b650032
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Test(models.Model): """测试类""" class Meta: verbose_name_plural = '测试' name = models.CharField(max_length=16) age = models.IntegerField() class Student(models.Model): """学生类""" class Meta: verbos...
28.407643
131
0.646413
a10648b3cfb9609f773302d36e8f5fe6ab423b61
436
py
Python
HER2/Practice Testing/Epoch Experiment/Run_10_4.py
raktim-mondol/DeepLearningCamelyon
443fc5d17f577b99fc3b17cc1adc7000ccab642e
[ "CC0-1.0" ]
70
2018-12-14T07:16:41.000Z
2022-02-03T07:40:23.000Z
HER2/Practice Testing/Epoch Experiment/Run_10_4.py
raktim-mondol/DeepLearningCamelyon
443fc5d17f577b99fc3b17cc1adc7000ccab642e
[ "CC0-1.0" ]
null
null
null
HER2/Practice Testing/Epoch Experiment/Run_10_4.py
raktim-mondol/DeepLearningCamelyon
443fc5d17f577b99fc3b17cc1adc7000ccab642e
[ "CC0-1.0" ]
24
2019-02-18T16:21:25.000Z
2022-03-06T15:39:45.000Z
execfile('1_import_pkgs.py') execfile('2_epochs_10.py') execfile('3_get_model.py') execfile('4_get_data.py') execfile('5_divide_data.py') execfile('6_fit_model.py') execfile('7_learning_curve.py') execfile('8_accuracy_10_4.py') execfile('9_confusion_matrix_10_4.py') #execfile('10_images_misclassified.py') #execfile('11...
25.647059
39
0.791284
9d4f204354c9c89689a04ba927381246e4f76728
265
py
Python
2923.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
1
2022-01-14T08:45:32.000Z
2022-01-14T08:45:32.000Z
2923.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
2923.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
while True: try: t, a, w, c = map(int, input().split()) if (a*100)/t >= c: print("critical") elif (a*100)/t >= w: print("warning") else: print("OK") except EOFError: break
24.090909
47
0.396226
57871e72ca122d2fb64b261ae1008c66f96d8c27
1,087
py
Python
scout/build/hpo.py
mhkc/scout
a7162f28c0f3490c3f3376268118fa8e6072a9db
[ "BSD-3-Clause" ]
111
2015-01-15T11:53:20.000Z
2022-03-26T19:55:24.000Z
scout/build/hpo.py
mhkc/scout
a7162f28c0f3490c3f3376268118fa8e6072a9db
[ "BSD-3-Clause" ]
2,995
2015-01-15T16:14:20.000Z
2022-03-31T13:36:32.000Z
scout/build/hpo.py
mhkc/scout
a7162f28c0f3490c3f3376268118fa8e6072a9db
[ "BSD-3-Clause" ]
55
2015-05-31T19:09:49.000Z
2021-11-01T10:50:31.000Z
import logging from scout.models.phenotype_term import HpoTerm LOG = logging.getLogger(__name__) def build_hpo_term(hpo_info): """Build a hpo_term object Check that the information is correct and add the correct hgnc ids to the array of genes. Args: hpo_info(dict) Returns:...
24.155556
77
0.639374
486ffd9d69e25c95f4f39c30a8fc771ecddaa615
13,308
py
Python
market/backtest.py
adammorley/ib
a4c985d5a57628c253e4d8a422d03b110ebc23ec
[ "Apache-2.0" ]
1
2020-10-03T15:03:57.000Z
2020-10-03T15:03:57.000Z
market/backtest.py
adammorley/ib
a4c985d5a57628c253e4d8a422d03b110ebc23ec
[ "Apache-2.0" ]
null
null
null
market/backtest.py
adammorley/ib
a4c985d5a57628c253e4d8a422d03b110ebc23ec
[ "Apache-2.0" ]
1
2020-06-10T02:51:07.000Z
2020-06-10T02:51:07.000Z
import logging import re from market import bars from market import order def anotateBars(histBars): newBars = [] for i in range(0, len(histBars)): newBars.append(makeBar(histBars[i])) newBars[i].anotate() logging.info('got %d bars', len(newBars)) return newBars def makeBar(histBar): ...
39.963964
175
0.586865
5ba78c115ad3e810bbe1374a224fe105cf01ca7d
1,308
py
Python
setup.py
tupian-language-resources/pytular
5eaedcd824af06b32d6bb2b8fdebffda7180bc1e
[ "Apache-2.0" ]
null
null
null
setup.py
tupian-language-resources/pytular
5eaedcd824af06b32d6bb2b8fdebffda7180bc1e
[ "Apache-2.0" ]
1
2021-03-23T13:02:43.000Z
2021-03-25T13:32:53.000Z
setup.py
tupian-language-resources/pytular
5eaedcd824af06b32d6bb2b8fdebffda7180bc1e
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup( name='pytular', version='0.1.1.dev0', license='Apache 2.0', description='TuLaR curation library', long_description=open('README.md').read(), long_description_content_type='text/markdown', classifiers=[ "Programming Language :: Pyth...
25.153846
50
0.541284
66faa747e967ad20958b2f608c76eeb8f9c225f2
392
py
Python
cajas/investments/admin.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
cajas/investments/admin.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
cajas/investments/admin.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
from django.contrib import admin from .models.investment import Investment from .models.investment_pay import InvestmentPay class InvestmentPayStacked(admin.StackedInline): model = InvestmentPay extra = 0 @admin.register(Investment) class InvestmentAdmin(admin.ModelAdmin): list_display = ('partner',...
20.631579
64
0.765306
4c9ea2da23d032469327a9f39b809d37f2a71b58
11,491
py
Python
forecast/migrations/0002_data_20200522.py
uktrade/fadmin2
0f774400fb816c9ca30e30b25ae542135966e185
[ "MIT" ]
3
2020-01-05T16:46:42.000Z
2021-08-02T08:08:39.000Z
forecast/migrations/0002_data_20200522.py
uktrade/fadmin2
0f774400fb816c9ca30e30b25ae542135966e185
[ "MIT" ]
30
2019-11-28T15:16:35.000Z
2021-08-16T14:49:58.000Z
forecast/migrations/0002_data_20200522.py
uktrade/fadmin2
0f774400fb816c9ca30e30b25ae542135966e185
[ "MIT" ]
null
null
null
from django.db import migrations fields = [ "financial_period_code", "period_long_name", "period_short_name", "period_calendar_code", ] periods = [ [1, "April", "Apr", 4], [2, "May", "May", 5], [3, "June", "Jun", 6], [4, "July", "Jul", 7], [5, "August", "Aug", 8], [6, "Septembe...
48.281513
131
0.593334
bcdc2311f31ad93c801c92cea9f7ed8a0d42e7a3
753
py
Python
duckdown/tool/secure.py
blueshed/duckdown
e6d0e62d378bd2d9ed0cd5ce4bc7ab3476b86020
[ "MIT" ]
null
null
null
duckdown/tool/secure.py
blueshed/duckdown
e6d0e62d378bd2d9ed0cd5ce4bc7ab3476b86020
[ "MIT" ]
null
null
null
duckdown/tool/secure.py
blueshed/duckdown
e6d0e62d378bd2d9ed0cd5ce4bc7ab3476b86020
[ "MIT" ]
null
null
null
""" secure a users file """ from invoke import task from dotenv import load_dotenv from cryptography.fernet import Fernet from duckdown.utils.encrypt import encrypt, decrypt from duckdown.utils import json_utils @task def secure(_, path): """ encrypt the passwords in a users.json file """ load_dotenv(verbose=...
21.514286
60
0.690571
223781115de394c66850498ffc12d01bb9f1ef7d
728
py
Python
django_project/urls.py
sankaet/IOT-DB
a554f49b9c25ae1a9a91b6a2564489b999da03bd
[ "MIT" ]
1
2016-10-26T23:10:57.000Z
2016-10-26T23:10:57.000Z
django_project/urls.py
sankaet/IOT-DB
a554f49b9c25ae1a9a91b6a2564489b999da03bd
[ "MIT" ]
null
null
null
django_project/urls.py
sankaet/IOT-DB
a554f49b9c25ae1a9a91b6a2564489b999da03bd
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from iot import v1_views from django.views.generic import TemplateView # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'django_project.views.home', name='home'), # url(r'^blog/', include('blog...
38.315789
112
0.656593
3a4649dd21dcbd5f9e9a9821c3e9b2096f16a7a2
38,075
py
Python
rplugin/python3/denite/ui/default.py
mkinoshi/new-denite
5889dc4acfd11c881a3d54bea4023df09561aff5
[ "MIT" ]
null
null
null
rplugin/python3/denite/ui/default.py
mkinoshi/new-denite
5889dc4acfd11c881a3d54bea4023df09561aff5
[ "MIT" ]
null
null
null
rplugin/python3/denite/ui/default.py
mkinoshi/new-denite
5889dc4acfd11c881a3d54bea4023df09561aff5
[ "MIT" ]
null
null
null
# ============================================================================ # FILE: default.py # AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com> # License: MIT license # ============================================================================ import copy import re import weakref from itertools import grou...
36.365807
79
0.560762
6bd719864180b59c3d21d158c7f7b73ceb5e6694
1,040
py
Python
tests/unit/chroma_core/lib/storage_plugin/subscription_plugin.py
beevans/integrated-manager-for-lustre
6b7e49b8a58058e6139ad815a4388f21a581dfa0
[ "MIT" ]
52
2018-09-13T03:26:23.000Z
2022-03-25T16:51:37.000Z
tests/unit/chroma_core/lib/storage_plugin/subscription_plugin.py
beevans/integrated-manager-for-lustre
6b7e49b8a58058e6139ad815a4388f21a581dfa0
[ "MIT" ]
1,264
2018-06-15T19:50:57.000Z
2022-03-28T08:19:04.000Z
tests/unit/chroma_core/lib/storage_plugin/subscription_plugin.py
beevans/integrated-manager-for-lustre
6b7e49b8a58058e6139ad815a4388f21a581dfa0
[ "MIT" ]
27
2018-06-18T08:51:59.000Z
2022-03-16T15:35:34.000Z
from chroma_core.lib.storage_plugin.api import attributes from chroma_core.lib.storage_plugin.api.identifiers import GlobalId, ScopedId from chroma_core.lib.storage_plugin.api.plugin import Plugin from chroma_core.lib.storage_plugin.api import resources from chroma_core.lib.storage_plugin.api import relations version ...
26.666667
95
0.722115
b922aa64f421a6b224dbf8ab570f0bec98346ef3
1,527
py
Python
lib/spack/spack/build_systems/octave.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
lib/spack/spack/build_systems/octave.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
lib/spack/spack/build_systems/octave.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import inspect from spack.directives import extends from spack.package import PackageBase, run_after class OctavePackag...
29.941176
88
0.664047
be035b6bb59219f1135476c3b79cd3e2653d2c4b
3,776
py
Python
tests/gui/run_analysis_test.py
sumau/PredictCode
e2a2d5a8fa5d83f011c33e18d4ce6ac7e1429aa8
[ "Artistic-2.0" ]
18
2017-04-19T09:17:19.000Z
2021-05-24T08:53:28.000Z
tests/gui/run_analysis_test.py
sumau/PredictCode
e2a2d5a8fa5d83f011c33e18d4ce6ac7e1429aa8
[ "Artistic-2.0" ]
8
2017-06-11T17:46:35.000Z
2021-06-07T10:49:10.000Z
tests/gui/run_analysis_test.py
sumau/PredictCode
e2a2d5a8fa5d83f011c33e18d4ce6ac7e1429aa8
[ "Artistic-2.0" ]
10
2017-07-19T18:29:37.000Z
2020-11-12T22:06:45.000Z
import pytest import unittest.mock as mock import open_cp.gui.run_analysis as run_analysis import open_cp.gui.predictors as predictors from open_cp.gui.common import CoordType import open_cp.gui.analysis as analysis import open_cp.predictors import datetime @pytest.fixture def log_queue(): import queue return...
37.386139
240
0.724576
cf5a1a86e8f8a65b87b8f5ec5394f6261c05b150
1,820
py
Python
vendor/munin/gearman.py
Paul3MK/NewsBlur
f912d100c2867e5366fca92abadc50d4253a41d8
[ "MIT" ]
3,073
2015-01-01T07:20:18.000Z
2022-03-31T20:33:41.000Z
vendor/munin/gearman.py
Paul3MK/NewsBlur
f912d100c2867e5366fca92abadc50d4253a41d8
[ "MIT" ]
1,054
2015-01-02T13:32:35.000Z
2022-03-30T04:21:21.000Z
vendor/munin/gearman.py
Paul3MK/NewsBlur
f912d100c2867e5366fca92abadc50d4253a41d8
[ "MIT" ]
676
2015-01-03T16:40:29.000Z
2022-03-30T14:00:40.000Z
#!/usr/bin/env python import os import re import socket from vendor.munin import MuninPlugin worker_re = re.compile(r'^(?P<fd>\d+) (?P<ip>[\d\.]+) (?P<client_id>[^\s]+) :\s?(?P<abilities>.*)$') class MuninGearmanPlugin(MuninPlugin): category = "Gearman" def __init__(self): super(MuninGearmanPlugin, ...
27.164179
100
0.487912
4da35b601a682f0b7a6379fe5e1963ca0fe22dd4
8,133
py
Python
views.py
WPRDC/property-api
980f541b07bef3c8842994cfb903b42cc2c25064
[ "MIT" ]
1
2021-10-01T18:35:46.000Z
2021-10-01T18:35:46.000Z
views.py
WPRDC/property-api
980f541b07bef3c8842994cfb903b42cc2c25064
[ "MIT" ]
null
null
null
views.py
WPRDC/property-api
980f541b07bef3c8842994cfb903b42cc2c25064
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt import time import json import csv from collections import OrderedDict as OD, defaultdict from .models import CKANResource from .utils import get_data, get_batch_data, ...
31.041985
117
0.567441
7c75a03a1d2f6777905ce47f27715bd3855a8d75
18,758
py
Python
scipy/interpolate/tests/test_polyint.py
frewsxcv/scipy
b8b612c54c60e22e2a186dde6264de046ab1fe2b
[ "BSD-3-Clause" ]
1
2019-04-27T16:04:14.000Z
2019-04-27T16:04:14.000Z
scipy/interpolate/tests/test_polyint.py
joferkington/scipy
6a7327e8bb8248b2ea165180bc602edf1ab33dda
[ "BSD-3-Clause" ]
5
2021-03-19T08:36:48.000Z
2022-01-13T01:52:34.000Z
scipy/interpolate/tests/test_polyint.py
joferkington/scipy
6a7327e8bb8248b2ea165180bc602edf1ab33dda
[ "BSD-3-Clause" ]
1
2019-08-13T21:23:57.000Z
2019-08-13T21:23:57.000Z
from __future__ import division, print_function, absolute_import import warnings from numpy.testing import (assert_almost_equal, assert_array_equal, TestCase, run_module_suite, assert_allclose, assert_equal, assert_) from scipy.interpolate import (KroghInterpolator, krogh_interpolate, BarycentricInter...
38.997921
116
0.590521
4bed5f6a1adaacbf3883edf68cc1d1aede9766b7
5,713
py
Python
blesuite/replay/btsnoop/btsnoop/btsnoop.py
dbisu/BLESuite
37dccb23e14661bef148790a4e7c44e664fc528f
[ "MIT" ]
null
null
null
blesuite/replay/btsnoop/btsnoop/btsnoop.py
dbisu/BLESuite
37dccb23e14661bef148790a4e7c44e664fc528f
[ "MIT" ]
null
null
null
blesuite/replay/btsnoop/btsnoop/btsnoop.py
dbisu/BLESuite
37dccb23e14661bef148790a4e7c44e664fc528f
[ "MIT" ]
null
null
null
""" Parse btsnoop_hci.log binary data (similar to wireshark) usage: ./parse.py <filename> """ import datetime import sys import struct """ Record flags conform to: - bit 0 0 = sent, 1 = received - bit 1 0 = data, 1 = command/event - bit 2-31 reserved Direction is relative to...
27.466346
124
0.519692
7e2b189c5a5c71e6b671e735ed4c65b38bebd870
2,034
py
Python
alf/examples/ddpg_pendulum_conf.py
breakds/alf
b3d60048daee2c9625ba44f778e49570d0d029a7
[ "Apache-2.0" ]
1
2021-11-17T17:08:04.000Z
2021-11-17T17:08:04.000Z
alf/examples/ddpg_pendulum_conf.py
ipsec/alf
15fd71896eac5ad0987dbe14a9f630b32e0e131f
[ "Apache-2.0" ]
null
null
null
alf/examples/ddpg_pendulum_conf.py
ipsec/alf
15fd71896eac5ad0987dbe14a9f630b32e0e131f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 Horizon Robotics and ALF Contributors. 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...
30.818182
80
0.786136
4af750c9deaf440e8d6cc03561588f2a23891e59
826
py
Python
tests/test_epithet.py
phildini/epithet
82bb3f1e1d81329ac9e35b4c4efc38947340ea19
[ "MIT" ]
6
2017-05-25T18:30:44.000Z
2019-08-13T20:39:34.000Z
tests/test_epithet.py
phildini/epithet
82bb3f1e1d81329ac9e35b4c4efc38947340ea19
[ "MIT" ]
2
2021-03-25T21:39:52.000Z
2021-11-15T17:46:46.000Z
tests/test_epithet.py
phildini/epithet
82bb3f1e1d81329ac9e35b4c4efc38947340ea19
[ "MIT" ]
1
2019-08-13T20:39:39.000Z
2019-08-13T20:39:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_epithet ---------------------------------- Tests for `epithet` module. """ import sys import unittest from contextlib import contextmanager from click.testing import CliRunner from epithet import epithet from epithet import cli class TestEpithet(unittest.Te...
20.65
74
0.639225
4e0cf37083c4473f77542d37b92d7f36b6faa8d2
20,240
py
Python
python/ccxt/async_support/coinone.py
pkaske/ccxt
19821cfe0b6899d42b714757137dce9f00c406a0
[ "MIT" ]
3
2020-06-02T10:48:48.000Z
2022-03-12T20:46:01.000Z
python/ccxt/async_support/coinone.py
pkaske/ccxt
19821cfe0b6899d42b714757137dce9f00c406a0
[ "MIT" ]
3
2020-09-08T00:13:39.000Z
2021-05-08T20:05:48.000Z
python/ccxt/async_support/coinone.py
pkaske/ccxt
19821cfe0b6899d42b714757137dce9f00c406a0
[ "MIT" ]
1
2020-03-16T03:22:17.000Z
2020-03-16T03:22:17.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import base64 import hashlib from ccxt.base.errors import ExchangeError from ccxt.bas...
42.972399
369
0.495059
977f9fb0a9f09b38acb87a7cae1d7be8d27c5ba2
2,666
py
Python
test/integration/ggrc/services/test_assessments.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/services/test_assessments.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/services/test_assessments.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Tests for assessment service handle.""" import random from ddt import data, ddt from ggrc.models import all_models from integration.ggrc import TestCase from integration.ggrc.query_helper import WithQu...
35.546667
78
0.721305
8591dbe0080d4af0c0401f868169f9966e6d2c80
10,169
py
Python
src/python/openbarcode/linear.py
Floms/Open-Barcode
f721bfeecd682a683e80d7b9c6987ffda3dc9213
[ "Apache-2.0" ]
9
2015-09-23T18:38:58.000Z
2018-10-16T06:33:17.000Z
src/python/openbarcode/linear.py
Floms/Open-Barcode
f721bfeecd682a683e80d7b9c6987ffda3dc9213
[ "Apache-2.0" ]
null
null
null
src/python/openbarcode/linear.py
Floms/Open-Barcode
f721bfeecd682a683e80d7b9c6987ffda3dc9213
[ "Apache-2.0" ]
11
2015-05-05T10:26:46.000Z
2017-12-07T15:02:57.000Z
# # Copyright 2013 Floms, LLC (Yoel Nunez <y.nunez@developers.floms.com>) # # 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...
31.482972
95
0.392566
f177b2515d6a1013c043cf6f6e4a2f7db8bac784
1,823
py
Python
machineLearning/206/extract-colors.py
WebClub-NITK/Hacktoberfest-2k19
69fafb354f0da58220a7ba68696b4d7fde0a3d5c
[ "MIT" ]
28
2019-10-01T09:13:50.000Z
2021-04-18T18:15:34.000Z
machineLearning/206/extract-colors.py
arpita221b/Hacktoberfest-2k19-1
6f682ea2226a8ce6f5a913da9ecdafff7a9fa5bd
[ "MIT" ]
236
2019-09-30T16:06:09.000Z
2022-02-26T18:37:03.000Z
machineLearning/206/extract-colors.py
arpita221b/Hacktoberfest-2k19-1
6f682ea2226a8ce6f5a913da9ecdafff7a9fa5bd
[ "MIT" ]
184
2019-09-30T16:08:04.000Z
2022-03-09T05:00:29.000Z
import numpy as np import cv2 import argparse parser =argparse.ArgumentParser() parser.add_argument("--color",type=str,default='R',help="insert uppercase first letter in color you want to see its output") parser.add_argument("--image",type=str,default="colors.png",help="Specify the image location") arg = parser.parse_...
25.319444
124
0.687877
fbada46f71a0743bfd2e8e71cf918e8535daf59c
216
wsgi
Python
flaskapp.wsgi
pedroalvesfilho/catalog_bikes
dacabec1c0f4efea3a14d4fc9086ff1a8550396b
[ "MIT" ]
null
null
null
flaskapp.wsgi
pedroalvesfilho/catalog_bikes
dacabec1c0f4efea3a14d4fc9086ff1a8550396b
[ "MIT" ]
null
null
null
flaskapp.wsgi
pedroalvesfilho/catalog_bikes
dacabec1c0f4efea3a14d4fc9086ff1a8550396b
[ "MIT" ]
null
null
null
#!/usr/bin/python</h1> import sys import logging logging.basicConfig(stream=sys.stderr) sys.path.insert(0,"/var/www/FlaskApp") from FlaskApp import app as application application.secret_key = 'Add your secret key'
21.6
46
0.777778
61ffc43c4662e1ac3e1e206a7a5120adad3bda35
6,844
py
Python
datasets/preprocess/SyRIP.py
ostadabbas/HW-HuP
0a7b4263f72e7ff7f9bc4c81366569822c3ee248
[ "MIT" ]
null
null
null
datasets/preprocess/SyRIP.py
ostadabbas/HW-HuP
0a7b4263f72e7ff7f9bc4c81366569822c3ee248
[ "MIT" ]
null
null
null
datasets/preprocess/SyRIP.py
ostadabbas/HW-HuP
0a7b4263f72e7ff7f9bc4c81366569822c3ee248
[ "MIT" ]
null
null
null
import os from os.path import join import sys import json import numpy as np from tqdm import tqdm # from .read_openpose import read_openpose def coco_extract(dataset_path, out_path): ''' no open pose data, SyRIP version :param dataset_path: :param out_path: :return: ''' # convert joints to...
37.604396
126
0.561222
2b6e4baaba8ee6948dedbf331378aa600cd96fa7
10,604
py
Python
tensorflow_probability/python/sts/fitting_test.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/sts/fitting_test.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/sts/fitting_test.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
39.274074
115
0.694738
22fc4a0f6aa9341cbd2260d964f0896bef96f783
823
py
Python
bin/dump_all_tables.py
johned0/EdwardsLab
ae0d8b51a579cd009b414d11224b4110ba13af66
[ "MIT" ]
30
2015-01-25T16:22:51.000Z
2022-01-20T15:56:47.000Z
bin/dump_all_tables.py
johned0/EdwardsLab
ae0d8b51a579cd009b414d11224b4110ba13af66
[ "MIT" ]
2
2020-04-13T15:00:37.000Z
2020-09-23T12:35:59.000Z
bin/dump_all_tables.py
johned0/EdwardsLab
ae0d8b51a579cd009b414d11224b4110ba13af66
[ "MIT" ]
24
2015-04-17T00:52:05.000Z
2021-11-26T17:50:01.000Z
import argparse import sqlite3 import pandas as pd def to_csv(filename): db = sqlite3.connect(filename) cursor = db.cursor() cursor.execute("SELECT name FROM sqlite_master WHERE type='table';") tables = cursor.fetchall() for table_name in tables: table_name = table_name[0] table = ...
37.409091
212
0.705954
68a1a8915af6634664f6c1d0c315180aa253a17a
229
py
Python
examples/test/__main__.py
Cjreynol/pygame-boilerplate
a43ac4fa2eec6ba5fde422a57dd4f4e0aa1f23ff
[ "MIT" ]
null
null
null
examples/test/__main__.py
Cjreynol/pygame-boilerplate
a43ac4fa2eec6ba5fde422a57dd4f4e0aa1f23ff
[ "MIT" ]
null
null
null
examples/test/__main__.py
Cjreynol/pygame-boilerplate
a43ac4fa2eec6ba5fde422a57dd4f4e0aa1f23ff
[ "MIT" ]
null
null
null
from boilerplate.game import Game from examples.test.game_state import GameState def main(): game = Game("Example") state = GameState() game.dirty_rect_run(state) if __name__ == "__main__": main()
17.615385
48
0.659389
b39698c66f68dd4618a58dc6ece6f420e4e5b8f7
53
py
Python
components/__init__.py
YetAnotherTimeTracker/yatt
5cd75da60aecd51ee6dc67bb8dc3662b50a3b4a3
[ "MIT" ]
1
2017-12-04T22:45:54.000Z
2017-12-04T22:45:54.000Z
components/__init__.py
avbelyaev/yatt
5cd75da60aecd51ee6dc67bb8dc3662b50a3b4a3
[ "MIT" ]
17
2017-10-15T01:38:39.000Z
2017-12-18T22:00:32.000Z
components/__init__.py
avbelyaev/yatt
5cd75da60aecd51ee6dc67bb8dc3662b50a3b4a3
[ "MIT" ]
12
2017-11-02T19:51:54.000Z
2020-11-29T17:35:53.000Z
""" Created by anthony on 21.11.2017 __init__.py """
10.6
32
0.679245
4dfddf8506ed5480e100f275770b354b1e5327cf
746
py
Python
backend/webserver/sockets/projects.py
jsbroks/lista
4bf06f3a243c7c59632ce2348d1a9f6917878906
[ "MIT" ]
null
null
null
backend/webserver/sockets/projects.py
jsbroks/lista
4bf06f3a243c7c59632ce2348d1a9f6917878906
[ "MIT" ]
null
null
null
backend/webserver/sockets/projects.py
jsbroks/lista
4bf06f3a243c7c59632ce2348d1a9f6917878906
[ "MIT" ]
null
null
null
from webserver.extensions import db, socketio from flask_login import current_user from flask_socketio import emit from webserver.config import logger from .utils import authenticated_only, commit_or_null @socketio.on('join project') @authenticated_only def join_project(id): """ Join a project (if user has ...
23.3125
85
0.717158
936ffa01dc67032419dae484f9ac633b8a37c20e
12,001
py
Python
bungieapi/generated/components/schemas/destiny/components/profiles.py
itemmanager/bungieapi
0c4326f88ea0f28a1dcab683dc08c8d21c940fc1
[ "MIT" ]
5
2022-01-06T21:05:53.000Z
2022-02-12T19:58:11.000Z
bungieapi/generated/components/schemas/destiny/components/profiles.py
itemmanager/bungieapi
0c4326f88ea0f28a1dcab683dc08c8d21c940fc1
[ "MIT" ]
8
2021-12-25T02:40:56.000Z
2022-03-28T03:31:41.000Z
bungieapi/generated/components/schemas/destiny/components/profiles.py
itemmanager/bungieapi
0c4326f88ea0f28a1dcab683dc08c8d21c940fc1
[ "MIT" ]
1
2022-01-30T23:53:25.000Z
2022-01-30T23:53:25.000Z
# generated by update to not change manually import dataclasses as dt import typing as t from bungieapi.json import to_json from bungieapi.types import ManifestReference @dt.dataclass(frozen=True) class DestinyProfileProgressionComponent: """The set of progression-related information that applies at a Profile- ...
41.382759
376
0.679193
c289ae806ce6d05882b663db1d969ae8579a3d89
455
py
Python
week07/lecture/examples/src7/favorites/favorites2.py
uldash/CS50x
c3ee0f42ad514b57a13c3ffbb96238b3ca3730e1
[ "MIT" ]
null
null
null
week07/lecture/examples/src7/favorites/favorites2.py
uldash/CS50x
c3ee0f42ad514b57a13c3ffbb96238b3ca3730e1
[ "MIT" ]
null
null
null
week07/lecture/examples/src7/favorites/favorites2.py
uldash/CS50x
c3ee0f42ad514b57a13c3ffbb96238b3ca3730e1
[ "MIT" ]
null
null
null
# Prints unique titles in CSV, case sensitively import csv # For accumulating (and later sorting) titles titles = set() # Open CSV file with open("Favorite TV Shows - Form Responses 1.csv", "r") as file: # Create DictReader reader = csv.DictReader(file) # Iterate over CSV file, adding each title to set...
21.666667
67
0.69011
91696720a13382b530938fbb55848318bdb4006d
448
py
Python
023_lambda.py
MikePolyakov/python_book
497681e8a167918a19ae737960c9c86ebffa9e91
[ "MIT" ]
null
null
null
023_lambda.py
MikePolyakov/python_book
497681e8a167918a19ae737960c9c86ebffa9e91
[ "MIT" ]
null
null
null
023_lambda.py
MikePolyakov/python_book
497681e8a167918a19ae737960c9c86ebffa9e91
[ "MIT" ]
null
null
null
lambda x: x**2 def sqr(x): return x**2 print(' '.join(map(lambda x: str(x**2), range(1, 101)))) n = int(input()) points = [] for i in range(n): point = tuple(map(int, input().split())) points.append(point) points.sort(key=lambda point: point[0]**2 + point[1]**2) for point in points: print(' '.join(ma...
20.363636
56
0.625
e4102bfc2adbe15366829d477debcbad01e76f75
39,011
py
Python
unittests/test_peer_channels.py
electrumsv/electrumsv-reference-server
b8fb0773f304e7930f0be867ef7b4bf9e5b95cab
[ "OML" ]
null
null
null
unittests/test_peer_channels.py
electrumsv/electrumsv-reference-server
b8fb0773f304e7930f0be867ef7b4bf9e5b95cab
[ "OML" ]
2
2021-11-24T01:22:55.000Z
2021-12-02T13:47:12.000Z
unittests/test_peer_channels.py
electrumsv/electrumsv-reference-server
b8fb0773f304e7930f0be867ef7b4bf9e5b95cab
[ "OML" ]
1
2021-11-23T01:00:38.000Z
2021-11-23T01:00:38.000Z
from __future__ import annotations import asyncio import base64 import datetime from http import HTTPStatus import json import logging import os from pathlib import Path try: # Linux expects the latest package version of 3.35.4 (as of pysqlite-binary 0.4.6) import pysqlite3 as sqlite3 except ModuleNotFoundError...
43.783389
100
0.64833
b6148920c6c6c91fa5a789653480d5bb1c97be4b
524
py
Python
setup.py
Zedd1558/keras
01db9f0d7270735f7951602dac2b89e08b7785bf
[ "MIT" ]
33
2015-11-25T23:11:02.000Z
2022-03-10T10:36:37.000Z
setup.py
RamsteinWR/keras-1
a37fb96cea857c0a2d4032cc40c01cfccd40e8b8
[ "MIT" ]
null
null
null
setup.py
RamsteinWR/keras-1
a37fb96cea857c0a2d4032cc40c01cfccd40e8b8
[ "MIT" ]
31
2016-01-26T16:08:28.000Z
2021-11-29T00:24:10.000Z
from setuptools import setup from setuptools import find_packages setup(name='Keras', version='0.2.0', description='Theano-based Deep Learning library', author='Francois Chollet', author_email='francois.chollet@gmail.com', url='https://github.com/fchollet/keras', download_url='http...
29.111111
69
0.646947
187fd5db85d576dba297b31e02a1cd950a4decdd
40,078
py
Python
assets/source/zhihu.py
liticer/liticer.github.io
0e76a570e0ee8aa560b8719f5b564a116bcc5593
[ "MIT" ]
null
null
null
assets/source/zhihu.py
liticer/liticer.github.io
0e76a570e0ee8aa560b8719f5b564a116bcc5593
[ "MIT" ]
null
null
null
assets/source/zhihu.py
liticer/liticer.github.io
0e76a570e0ee8aa560b8719f5b564a116bcc5593
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' ;$$; ############# ##########...
39.138672
100
0.464744
ff260f9fab80ac0549f254ecd752c0af3de2073d
17,275
py
Python
ingestion/src/metadata/ingestion/sink/elasticsearch.py
avignd/OpenMetadata
f81fb3d5e8ec391928afba57868cf0f9d7dc0f74
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/sink/elasticsearch.py
avignd/OpenMetadata
f81fb3d5e8ec391928afba57868cf0f9d7dc0f74
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/sink/elasticsearch.py
avignd/OpenMetadata
f81fb3d5e8ec391928afba57868cf0f9d7dc0f74
[ "Apache-2.0" ]
null
null
null
# 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 ...
39.712644
89
0.634732
ec4d101da11a11151e7178d45cd0d6faae08184e
1,496
py
Python
app/modules/products/schemas.py
ezequiaspedro/SBF-Api
547322505ed4f50bdf7dc86a341eee0a667f0a4c
[ "MIT" ]
null
null
null
app/modules/products/schemas.py
ezequiaspedro/SBF-Api
547322505ed4f50bdf7dc86a341eee0a667f0a4c
[ "MIT" ]
null
null
null
app/modules/products/schemas.py
ezequiaspedro/SBF-Api
547322505ed4f50bdf7dc86a341eee0a667f0a4c
[ "MIT" ]
1
2021-06-12T01:36:17.000Z
2021-06-12T01:36:17.000Z
from typing import List, Optional from ...utils.helpers import BaseSchema, MetaDatetimeSchema from ...utils.pagination import PaginationMetadataSchema class ProductCreate(BaseSchema): name: str size: str inventory: int weight: float class Config: schema_extra = { "example": { ...
24.52459
63
0.504679
9a4e41fd2908c9013dea3076dbc1a090ef5bc1f8
3,883
py
Python
cirq-google/cirq_google/engine/engine_result.py
alexandrebouayad/Cirq
4ba730b17b6af6265ee6458eb40172b847bd5684
[ "Apache-2.0" ]
1
2022-02-05T22:17:39.000Z
2022-02-05T22:17:39.000Z
cirq-google/cirq_google/engine/engine_result.py
pavoljuhas/Cirq
b6d6577be61d216ce2f29f8c64ae5879cf3087d5
[ "Apache-2.0" ]
4
2022-01-16T14:12:15.000Z
2022-02-24T03:58:46.000Z
cirq-google/cirq_google/engine/engine_result.py
Nexuscompute/Cirq
640ef8f82d6a56ec95361388ce7976e096cca906
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Cirq Developers # # 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 agreed to in ...
34.061404
95
0.635076
04beea8218df6237c4582186ac25337e9a55d6bb
3,095
py
Python
app/app/settings.py
leeway00/recipie-app-api
d1c5c0855986254fa94dcd3ad836c89d83060722
[ "MIT" ]
null
null
null
app/app/settings.py
leeway00/recipie-app-api
d1c5c0855986254fa94dcd3ad836c89d83060722
[ "MIT" ]
null
null
null
app/app/settings.py
leeway00/recipie-app-api
d1c5c0855986254fa94dcd3ad836c89d83060722
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.1.5. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib imp...
25.162602
91
0.694992
69743e103cfab7bb79236becc0bdfee8a2f7f29c
959
py
Python
data/dbase/check_tables_complete.py
FedeClaudi/LocomotionControl
1281f7894825096ad212407351463a2105c5152a
[ "MIT" ]
null
null
null
data/dbase/check_tables_complete.py
FedeClaudi/LocomotionControl
1281f7894825096ad212407351463a2105c5152a
[ "MIT" ]
2
2020-11-23T16:32:11.000Z
2020-11-23T16:32:11.000Z
data/dbase/check_tables_complete.py
FedeClaudi/LocomotionControl
1281f7894825096ad212407351463a2105c5152a
[ "MIT" ]
null
null
null
from loguru import logger import sys from tpd import recorder sys.path.append("./") from data import dbase def get_sessions_to_track(recordings_only: bool = True): """ It gets a list of sessions left to track """ logger.info("Getting sessions that need to be tracked with DLC still") sessions...
25.918919
101
0.67049
5b54ad71f0baf104129882681e6304fc8fbdeb45
448
py
Python
misc/setup.py
PoRiLo/arcgis-python-api
af89fd64db4ae57d100f3216a0a4f731c8bd0e68
[ "Apache-2.0" ]
1,299
2016-06-12T15:58:47.000Z
2022-03-29T08:09:49.000Z
misc/setup.py
PoRiLo/arcgis-python-api
af89fd64db4ae57d100f3216a0a4f731c8bd0e68
[ "Apache-2.0" ]
999
2016-08-10T13:46:15.000Z
2022-03-31T23:29:53.000Z
misc/setup.py
PoRiLo/arcgis-python-api
af89fd64db4ae57d100f3216a0a4f731c8bd0e68
[ "Apache-2.0" ]
967
2016-06-12T06:03:41.000Z
2022-03-29T12:50:48.000Z
from _common import * print("-*-*-*-*-*-*-*-*-*-*-*Setup begins*-*-*-*-*-*-*-*-*-*-*-*-*-") clean_up_location_tracking(gis_playground) delete_for_users(gis_online, ignore_accounts_online, target_accounts_online) delete_for_users(gis_playground, ignore_accounts_playground, target_accounts_playground) setup_tracker_use...
37.333333
88
0.676339
a225e2ea78c7b29e00376d661d289030ff053762
6,530
py
Python
rvranking/sampling/tests.py
hodeld/rbs-ranking
3c102e4442eb51dd33d8c06a303032ff18426ad4
[ "MIT" ]
null
null
null
rvranking/sampling/tests.py
hodeld/rbs-ranking
3c102e4442eb51dd33d8c06a303032ff18426ad4
[ "MIT" ]
2
2021-08-25T16:16:03.000Z
2022-02-10T04:57:01.000Z
rvranking/sampling/tests.py
hodeld/rbs-ranking
3c102e4442eb51dd33d8c06a303032ff18426ad4
[ "MIT" ]
null
null
null
import random import unittest import numpy as np from rvranking.rankingComponents import input_fn from rvranking.sampling.elwcWrite import write_elwc from rvranking.sampling.main import prep_samples_list from rvranking.sampling.samplingClasses import Sample, RVList, RV from rvranking.globalVars import _TRAIN_DATA_PATH...
42.679739
119
0.565697
ef680b68a29e2fb55cc7fb5d45ed5cbda69d286f
44,201
py
Python
torch/nn/modules/activation.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
1
2022-03-29T19:42:16.000Z
2022-03-29T19:42:16.000Z
torch/nn/modules/activation.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
torch/nn/modules/activation.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
null
null
null
import warnings from typing import Optional, Tuple import torch from torch import Tensor from .linear import NonDynamicallyQuantizableLinear from torch.nn.init import constant_, xavier_normal_, xavier_uniform_ from torch.nn.parameter import Parameter from .module import Module from .. import functional as F class Th...
33.134183
129
0.600778
e7d1952af5e3755f91ab6bfcd478698966766722
724
py
Python
text/symbols.py
MikhailSukhovei/tacotron2_original
39fd0b825b27d54a75770b004ee2801a8364ec73
[ "BSD-3-Clause" ]
null
null
null
text/symbols.py
MikhailSukhovei/tacotron2_original
39fd0b825b27d54a75770b004ee2801a8364ec73
[ "BSD-3-Clause" ]
null
null
null
text/symbols.py
MikhailSukhovei/tacotron2_original
39fd0b825b27d54a75770b004ee2801a8364ec73
[ "BSD-3-Clause" ]
null
null
null
""" from https://github.com/keithito/tacotron """ ''' Defines the set of symbols used in text input to the model. The default is a set of ASCII characters that works well for English or text that has been run through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details. ''' from tex...
38.105263
195
0.743094
9b50d1bb9c21ff46a006fb14f7157f5053bdc0c7
5,237
py
Python
mindware/components/models/regression/liblinear_svr.py
aman-gupta-1995/Machine-Learning-Mindware
8b3050720711730520683c89949e3dbdfb168961
[ "MIT" ]
27
2021-07-19T09:03:34.000Z
2022-03-31T06:19:23.000Z
mindware/components/models/regression/liblinear_svr.py
aman-gupta-1995/Machine-Learning-Mindware
8b3050720711730520683c89949e3dbdfb168961
[ "MIT" ]
4
2021-07-15T12:17:10.000Z
2022-01-26T17:16:58.000Z
mindware/components/models/regression/liblinear_svr.py
aman-gupta-1995/Machine-Learning-Mindware
8b3050720711730520683c89949e3dbdfb168961
[ "MIT" ]
17
2020-05-12T20:24:50.000Z
2021-07-11T03:31:38.000Z
from ConfigSpace.configuration_space import ConfigurationSpace from ConfigSpace.hyperparameters import UniformFloatHyperparameter, \ CategoricalHyperparameter, Constant from ConfigSpace.forbidden import ForbiddenEqualsClause, \ ForbiddenAndConjunction import numpy as np from mindware.components.utils.constants...
44.381356
116
0.554898
b1f689a2ad2c7d4ca28c6d1e837457c3c824cc82
1,095
py
Python
common/migrations/0037_inkinddonation.py
baylee-d/cos.io
3f88acb0feb7a167bf9e81c42e28f9d2d38bbd43
[ "Apache-2.0" ]
null
null
null
common/migrations/0037_inkinddonation.py
baylee-d/cos.io
3f88acb0feb7a167bf9e81c42e28f9d2d38bbd43
[ "Apache-2.0" ]
null
null
null
common/migrations/0037_inkinddonation.py
baylee-d/cos.io
3f88acb0feb7a167bf9e81c42e28f9d2d38bbd43
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-02 13:44 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import modelcluster.fields import wagtail.wagtailsearch.index class Migration(migrations.Migration): dependencies = [ ...
34.21875
222
0.629224
b51245d6fcd79004212670109d8ce6400a10d406
495
py
Python
53/53.py
bobismijnnaam/bobe-euler
111abdf37256d19c4a8c4e1a071db52929acf9d9
[ "MIT" ]
null
null
null
53/53.py
bobismijnnaam/bobe-euler
111abdf37256d19c4a8c4e1a071db52929acf9d9
[ "MIT" ]
null
null
null
53/53.py
bobismijnnaam/bobe-euler
111abdf37256d19c4a8c4e1a071db52929acf9d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from Utils import * def factorial(n): if n == 0: return 1 return n * factorial(n - 1) def nCr(n, r): assert(r <= n) return factorial(n) / (factorial(r) * factorial(n - r)) if __name__ == "__main__": # Your code here! count = 0 for n in range(1, 100 + 1): pr...
21.521739
59
0.523232
e7af09a76cbca0325b408647b37f4dad45789e2b
519
py
Python
backend/run.py
Fungramming/fonters
7d2f024dbb8c996e529b9189afd542780d3d0b67
[ "MIT" ]
2
2019-07-10T00:36:54.000Z
2019-07-10T00:36:57.000Z
backend/run.py
Fungramming/fonters
7d2f024dbb8c996e529b9189afd542780d3d0b67
[ "MIT" ]
null
null
null
backend/run.py
Fungramming/fonters
7d2f024dbb8c996e529b9189afd542780d3d0b67
[ "MIT" ]
1
2019-07-10T00:37:03.000Z
2019-07-10T00:37:03.000Z
from flask import Flask, request, jsonify from flask_cors import CORS from tinydb import TinyDB, Query application = Flask(__name__) app = application cors = CORS(app, resources={"*": {"origins":"*"}}) @app.route('/', methods=['PUT']) def save_email(): try: name, email = request.get_json().get('name'), request....
28.833333
81
0.655106
11af4932e9d2acbc94ed2be7ddcbe8b75256a292
695
py
Python
cinder/image/__init__.py
alexpilotti/cinder
df2f070604dad61738ccd3113016f76f2af20cae
[ "Apache-2.0" ]
null
null
null
cinder/image/__init__.py
alexpilotti/cinder
df2f070604dad61738ccd3113016f76f2af20cae
[ "Apache-2.0" ]
null
null
null
cinder/image/__init__.py
alexpilotti/cinder
df2f070604dad61738ccd3113016f76f2af20cae
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2012 OpenStack, LLC. # 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://w...
40.882353
79
0.709353
a59f3b12efee1adf5dd3e0f25beab6410ae72e91
31,373
py
Python
stix_shifter_modules/guardium/stix_translation/query_constructor.py
nkhetia31/stix-shifter
ace07581cb227fd35e450b2f8871475227a041d0
[ "Apache-2.0" ]
null
null
null
stix_shifter_modules/guardium/stix_translation/query_constructor.py
nkhetia31/stix-shifter
ace07581cb227fd35e450b2f8871475227a041d0
[ "Apache-2.0" ]
42
2022-01-28T04:35:38.000Z
2022-03-31T04:31:04.000Z
stix_shifter_modules/guardium/stix_translation/query_constructor.py
subbyte/stix-shifter
36d71c172a5fc5b97d872e623753b0dd1bf4fe6c
[ "Apache-2.0" ]
null
null
null
import re import json import datetime import copy from stix_shifter_utils.stix_translation.src.patterns.pattern_objects import ObservationExpression, ComparisonExpression, \ ComparisonExpressionOperators, ComparisonComparators, Pattern, \ CombinedComparisonExpression, CombinedObservationExpression, ObservationO...
48.943838
171
0.629076
5b76d9b962462d851e44afa840cefa5e34788c7e
2,595
py
Python
redleader/managers/codedeploy.py
mmcdermo/RedLeader
13c5261e839fc3373a8de00d49187220778091a4
[ "Apache-2.0" ]
null
null
null
redleader/managers/codedeploy.py
mmcdermo/RedLeader
13c5261e839fc3373a8de00d49187220778091a4
[ "Apache-2.0" ]
null
null
null
redleader/managers/codedeploy.py
mmcdermo/RedLeader
13c5261e839fc3373a8de00d49187220778091a4
[ "Apache-2.0" ]
null
null
null
import os.path import os import time import tarfile import random import redleader.util as util class CodeDeployManager(object): def __init__(self, context): self._context = context def create_code_deploy_package(self, path): n = "code_deploy_package%s.tgz" % random.randrange(0, 10000000) ...
38.731343
121
0.603468
4a472726180cd7f56cfc984d3ea57f4391b97996
2,923
py
Python
helpme.py
buckbaskin/paPYrus
815858715beb74814699277ae0377894d4f54f5b
[ "MIT" ]
null
null
null
helpme.py
buckbaskin/paPYrus
815858715beb74814699277ae0377894d4f54f5b
[ "MIT" ]
null
null
null
helpme.py
buckbaskin/paPYrus
815858715beb74814699277ae0377894d4f54f5b
[ "MIT" ]
null
null
null
from pylatex import Document, Section, Subsection, Subsubsection, Command, UnsafeCommand from pylatex.utils import italic, NoEscape default_package_list = [ 'parskip', # \usepackage[utf8]{inputenc} # \usepackage[english]{babel} 'listings', 'color', 'verbatim', 'soul', # \usepackage[marg...
34.797619
122
0.67807
f512272a00402a48af85bb7c1c37824364385541
1,387
py
Python
xawscf/commands/invoke.py
DmitryBogomolov/aws-cloudformation-sample
f0454b203973e07027a4cdf5f36468d137d310fd
[ "MIT" ]
null
null
null
xawscf/commands/invoke.py
DmitryBogomolov/aws-cloudformation-sample
f0454b203973e07027a4cdf5f36468d137d310fd
[ "MIT" ]
36
2018-04-20T06:11:41.000Z
2018-07-07T21:55:55.000Z
xawscf/commands/invoke.py
DmitryBogomolov/aws-cloudformation-sample
f0454b203973e07027a4cdf5f36468d137d310fd
[ "MIT" ]
null
null
null
''' Invokes lambda function. ''' from logging import getLogger import json from ..utils.client import get_client logger = getLogger(__name__) def run(pattern, name, payload=None): lambda_client = get_client(pattern, 'lambda') function = pattern.get_function(name) if not function: logger.info('Fun...
34.675
92
0.638068
055954a1aaa853cd9b659db8af90d7191a3b212e
3,728
py
Python
scripts/run_ycsb.py
byrantwithyou/YCSB
622bdd11a4c46fbd85600d27b2b1358d74939549
[ "Apache-2.0" ]
null
null
null
scripts/run_ycsb.py
byrantwithyou/YCSB
622bdd11a4c46fbd85600d27b2b1358d74939549
[ "Apache-2.0" ]
null
null
null
scripts/run_ycsb.py
byrantwithyou/YCSB
622bdd11a4c46fbd85600d27b2b1358d74939549
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import signal import argparse import subprocess def exec_cmd(cmd, out=None, cwd=None): p = subprocess.Popen(cmd, shell=True, stdout=out, stderr=out, cwd=cwd) p.wait() if p.returncode != 0: print("command %s is not successful!" % cmd) exit(1) return p ...
35.846154
194
0.624732
dc895ee15d93c64bbf3f5a26b820a0ef7a04ba3c
28,664
py
Python
lib/sqlalchemy/engine/create.py
eddebc/sqlalchemy
180ae7c1a53385f72b0047496ac001ec5099cc3e
[ "MIT" ]
null
null
null
lib/sqlalchemy/engine/create.py
eddebc/sqlalchemy
180ae7c1a53385f72b0047496ac001ec5099cc3e
[ "MIT" ]
null
null
null
lib/sqlalchemy/engine/create.py
eddebc/sqlalchemy
180ae7c1a53385f72b0047496ac001ec5099cc3e
[ "MIT" ]
null
null
null
# engine/create.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from . import base from . import url as _url from .mock import create_mock_engine ...
40.600567
102
0.662329
ab86cf81844cc8647f9e5c5f4d60b1e4358eda0e
2,391
py
Python
examples/nanosleep_watcher.py
facebookresearch/py2bpf
e1721ef129cf2ac838db00f2c1be0bcd19b30665
[ "BSD-3-Clause" ]
171
2018-01-03T20:16:46.000Z
2022-03-28T10:34:22.000Z
examples/nanosleep_watcher.py
facebookresearch/py2bpf
e1721ef129cf2ac838db00f2c1be0bcd19b30665
[ "BSD-3-Clause" ]
2
2018-07-02T22:09:22.000Z
2019-07-22T13:33:01.000Z
examples/nanosleep_watcher.py
facebookresearch/py2bpf
e1721ef129cf2ac838db00f2c1be0bcd19b30665
[ "BSD-3-Clause" ]
25
2018-01-09T10:39:08.000Z
2021-11-06T16:29:30.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import ctypes import py2bpf.datastructures import py2bpf.funcs import py2bpf.kprobe import py2...
29.518519
74
0.642409
e98e75020a931aa10e309dd306fe0558492d3f57
3,265
py
Python
PaddleCV/yolov3/infer.py
XiaoguangHu01/models
a95d49323ed504e5a9164586f171f408954fd43a
[ "Apache-2.0" ]
4
2020-01-04T13:15:02.000Z
2021-07-21T07:50:02.000Z
PaddleCV/yolov3/infer.py
XiaoguangHu01/models
a95d49323ed504e5a9164586f171f408954fd43a
[ "Apache-2.0" ]
null
null
null
PaddleCV/yolov3/infer.py
XiaoguangHu01/models
a95d49323ed504e5a9164586f171f408954fd43a
[ "Apache-2.0" ]
3
2019-10-31T07:18:49.000Z
2020-01-13T03:18:39.000Z
# Copyright (c) 2019 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 applic...
35.48913
79
0.635222
33ab2c1e646e05ea207357e9d80ca43fa67bf1b5
8,100
py
Python
test/MongoUtil_test.py
Tianhao-Gu/handle_service2
6cb9b4f43925f64aed96779ce408d56bfe7ec185
[ "MIT" ]
null
null
null
test/MongoUtil_test.py
Tianhao-Gu/handle_service2
6cb9b4f43925f64aed96779ce408d56bfe7ec185
[ "MIT" ]
15
2019-05-22T05:26:46.000Z
2021-07-12T02:09:55.000Z
test/MongoUtil_test.py
Tianhao-Gu/handle_service2
6cb9b4f43925f64aed96779ce408d56bfe7ec185
[ "MIT" ]
6
2019-03-11T20:20:37.000Z
2021-01-08T21:41:36.000Z
# -*- coding: utf-8 -*- import os import unittest from configparser import ConfigParser import inspect import copy import threading import queue from random import randrange from mongo_util import MongoHelper from AbstractHandle.Utils.MongoUtil import MongoUtil class MongoUtilTest(unittest.TestCase): @classmeth...
35.526316
101
0.637407
6e0cd9dfee0e93820dc1270f387ff8de023c2de2
9,079
py
Python
WassersteinGAN/src/model/models_WGAN.py
voletiv/DeepLearningImplementations
22ec85cdc7daa308ff2bec81962ca77e5959a70b
[ "MIT" ]
null
null
null
WassersteinGAN/src/model/models_WGAN.py
voletiv/DeepLearningImplementations
22ec85cdc7daa308ff2bec81962ca77e5959a70b
[ "MIT" ]
null
null
null
WassersteinGAN/src/model/models_WGAN.py
voletiv/DeepLearningImplementations
22ec85cdc7daa308ff2bec81962ca77e5959a70b
[ "MIT" ]
1
2018-03-23T15:52:11.000Z
2018-03-23T15:52:11.000Z
import numpy as np import keras.backend as K from keras.models import Model from keras.layers import Input from keras.initializers import RandomNormal from keras.layers.advanced_activations import LeakyReLU from keras.layers.normalization import BatchNormalization from keras.layers.core import Dense, Activation, Reshap...
30.466443
103
0.630906
ffa60d3358afb8eed5d37cb348ec4f1a68e6d5d2
2,715
py
Python
data/cirq_new/cirq_program/startCirq_pragma307.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/cirq_new/cirq_program/startCirq_pragma307.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/cirq_new/cirq_program/startCirq_pragma307.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=16 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np class Opty(cirq.PointOptimizer): def optimization_at( ...
33.109756
92
0.648619
7eca569d6a711c315551ea89258f34213fa431d1
893
py
Python
src/gocept/autocomplete/tests/test_selenium.py
gocept/gocept.autocomplete
0a48cdfe5af2a913e36f1a4734319e145001694b
[ "ZPL-2.1" ]
null
null
null
src/gocept/autocomplete/tests/test_selenium.py
gocept/gocept.autocomplete
0a48cdfe5af2a913e36f1a4734319e145001694b
[ "ZPL-2.1" ]
null
null
null
src/gocept/autocomplete/tests/test_selenium.py
gocept/gocept.autocomplete
0a48cdfe5af2a913e36f1a4734319e145001694b
[ "ZPL-2.1" ]
1
2021-03-01T03:24:42.000Z
2021-03-01T03:24:42.000Z
# Copyright (c) 2010 gocept gmbh & co. kg # See also LICENSE.txt import gocept.autocomplete.testing import unittest @unittest.skip('foo') class AutocompleteTest(gocept.autocomplete.testing.SeleniumTestCase): def test_autocomplete(self): s = self.selenium # XXX: logging in this way on /demo dire...
34.346154
78
0.645017
6076939dbcf4291c3b38cc823363c7a06980bc16
55
py
Python
accencis/settings/__init__.py
majestylink/majestyAccencis
41bdde6f9982980609f93a8b44bcaf06cc5f6ea6
[ "MIT" ]
null
null
null
accencis/settings/__init__.py
majestylink/majestyAccencis
41bdde6f9982980609f93a8b44bcaf06cc5f6ea6
[ "MIT" ]
null
null
null
accencis/settings/__init__.py
majestylink/majestyAccencis
41bdde6f9982980609f93a8b44bcaf06cc5f6ea6
[ "MIT" ]
null
null
null
#from .development import * # from .production import *
27.5
27
0.745455
0d3014eba7c49d344407cd11b757aa956e72b76e
1,409
py
Python
cursoPython1/s10l23.py
sistemasmarcelocastro/pruebas-python
d5fa7e67fa49c0ab120ab26abf0a41baad4ce5bb
[ "MIT" ]
null
null
null
cursoPython1/s10l23.py
sistemasmarcelocastro/pruebas-python
d5fa7e67fa49c0ab120ab26abf0a41baad4ce5bb
[ "MIT" ]
null
null
null
cursoPython1/s10l23.py
sistemasmarcelocastro/pruebas-python
d5fa7e67fa49c0ab120ab26abf0a41baad4ce5bb
[ "MIT" ]
null
null
null
#Encontrar patrones en un texto #sin RegEx: """ Sin RegEx def estel(entrada): if len(entrada) != 12: return False # longitud incorrecta for i in range(0, 3): if not entrada[i].isdecimal(): return False # no hay prefijo if entrada[3] != '-': return False # no tiene guió...
29.354167
102
0.61462
0e8e0bc459d47923c37fdaeea7d28b7998f1afe6
4,507
py
Python
pylib/Tools/Fetch/FetchRPM.py
naughtont3/mtt
508761ca498dfd9902e508f87568d98eb0177903
[ "BSD-3-Clause-Open-MPI" ]
58
2015-04-07T01:46:21.000Z
2022-01-29T02:56:32.000Z
pylib/Tools/Fetch/FetchRPM.py
naughtont3/mtt
508761ca498dfd9902e508f87568d98eb0177903
[ "BSD-3-Clause-Open-MPI" ]
347
2015-01-06T12:53:27.000Z
2022-01-31T20:40:44.000Z
pylib/Tools/Fetch/FetchRPM.py
naughtont3/mtt
508761ca498dfd9902e508f87568d98eb0177903
[ "BSD-3-Clause-Open-MPI" ]
46
2015-03-04T20:56:20.000Z
2022-03-18T18:28:47.000Z
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: f; python-indent: 4 -*- # # Copyright (c) 2015-2019 Intel, Inc. All rights reserved. # Copyright (c) 2017-2018 Los Alamos National Security, LLC. All rights # reserved. # $COPYRIGHT$ # # Additional copyrights may follow # # $HEADER$ # impor...
32.89781
95
0.578877
29b57839cb0b1273cca31450ecc2823ab3916327
1,098
py
Python
setup.py
softfire-eu/physical-device-manager
737e857e1b47b46f35bf1c47117e1251341619d8
[ "Apache-2.0" ]
null
null
null
setup.py
softfire-eu/physical-device-manager
737e857e1b47b46f35bf1c47117e1251341619d8
[ "Apache-2.0" ]
1
2018-01-17T10:37:20.000Z
2018-01-17T10:37:20.000Z
setup.py
softfire-eu/physical-device-manager
737e857e1b47b46f35bf1c47117e1251341619d8
[ "Apache-2.0" ]
null
null
null
import os from setuptools import setup, find_packages def read(fname): readme_file_path = os.path.join(os.path.dirname(__file__), fname) if os.path.exists(readme_file_path) and os.path.isfile(readme_file_path): readme_file = open(readme_file_path) return readme_file.read() else: ...
28.153846
106
0.663934
ae74f8a8fff1160482aa5d20216355a9ab8b5003
14,092
py
Python
testscripts/RDKB/component/WIFIAgent/TS_WIFIAGENT_ForceDisable_SetWiFiSSIDParams.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WIFIAgent/TS_WIFIAGENT_ForceDisable_SetWiFiSSIDParams.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WIFIAgent/TS_WIFIAGENT_ForceDisable_SetWiFiSSIDParams.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2020 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
52.192593
201
0.650653
8535ec085c4d4f7ac531c84a3ed1a2d750de8cb2
844
py
Python
sphinxcontrib_django_urls/__init__.py
mkalioby/sphinxcontrib-django-urls
89cd2ec41b7e685fbb810f43740e55c7212d4c0b
[ "MIT" ]
null
null
null
sphinxcontrib_django_urls/__init__.py
mkalioby/sphinxcontrib-django-urls
89cd2ec41b7e685fbb810f43740e55c7212d4c0b
[ "MIT" ]
null
null
null
sphinxcontrib_django_urls/__init__.py
mkalioby/sphinxcontrib-django-urls
89cd2ec41b7e685fbb810f43740e55c7212d4c0b
[ "MIT" ]
null
null
null
try: from django.urls import get_resolver except: try: from django.core.urlresolvers import get_resolver except: raise Exception("Can't find Django") __version__ = "0.1" def setup(app): app.connect('autodoc-process-docstring', add_django_url) def add_django_url(app, what, name, obj, ...
28.133333
60
0.550948
f3e8568e248bac08e9664765966779b1bbcaeeb9
5,292
py
Python
people_counter.py
Walabot-Projects/PeopleCounter
5674a0ee979eb069032a17c645c4da29d9a53412
[ "MIT" ]
15
2016-08-03T15:10:54.000Z
2022-03-30T21:22:06.000Z
people_counter.py
Walabot-Projects/PeopleCounter
5674a0ee979eb069032a17c645c4da29d9a53412
[ "MIT" ]
null
null
null
people_counter.py
Walabot-Projects/PeopleCounter
5674a0ee979eb069032a17c645c4da29d9a53412
[ "MIT" ]
2
2017-01-11T04:08:03.000Z
2021-11-16T03:54:08.000Z
from __future__ import print_function # WalabotAPI works on both Python 2 an 3. from sys import platform from os import system from imp import load_source from enum import Enum import WalabotAPI as walabotAPI walabotAPI.Init() def PrintTrackerTargets(targets): system('cls' if platform == 'win32' else 'clear') ...
34.141935
79
0.590703
8e439b42dd91ef8113e0e7ced9212d5eb94f1d1b
30,433
py
Python
evennia/server/sessionhandler.py
zeitkunst/evennia
1f254b2542fbefe400c114b3d7029522cdcb37b7
[ "BSD-3-Clause" ]
3
2019-08-08T16:58:25.000Z
2019-10-12T07:31:36.000Z
evennia/server/sessionhandler.py
zeitkunst/evennia
1f254b2542fbefe400c114b3d7029522cdcb37b7
[ "BSD-3-Clause" ]
9
2019-09-06T18:21:59.000Z
2022-01-13T03:04:11.000Z
evennia/server/sessionhandler.py
zeitkunst/evennia
1f254b2542fbefe400c114b3d7029522cdcb37b7
[ "BSD-3-Clause" ]
2
2019-09-02T08:39:24.000Z
2019-09-02T18:39:32.000Z
""" This module defines handlers for storing sessions when handles sessions of users connecting to the server. There are two similar but separate stores of sessions: - ServerSessionHandler - this stores generic game sessions for the game. These sessions has no knowledge about how they are connecte...
36.888485
117
0.583183
dbc145cf8d94f0762e4ac540b0c2ee96816aaac4
3,946
py
Python
apps/Graph4Rec/env_run/src/datasets/node.py
zbmain/PGL
dbded6a1543248b0a33c05eb476ddc513401a774
[ "Apache-2.0" ]
1
2022-03-25T12:04:51.000Z
2022-03-25T12:04:51.000Z
apps/Graph4Rec/env_run/src/datasets/node.py
zbmain/PGL
dbded6a1543248b0a33c05eb476ddc513401a774
[ "Apache-2.0" ]
null
null
null
apps/Graph4Rec/env_run/src/datasets/node.py
zbmain/PGL
dbded6a1543248b0a33c05eb476ddc513401a774
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 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 appli...
34.614035
96
0.575013
a5e08450a3f10d84440b33b93134d43f65902dbd
1,312
py
Python
neo-collector/delete/deleteTxUpdateSQL.py
i25959341/Happynodes
ef6825d17b181c451476d4ef722f2bcfa52e0161
[ "MIT" ]
null
null
null
neo-collector/delete/deleteTxUpdateSQL.py
i25959341/Happynodes
ef6825d17b181c451476d4ef722f2bcfa52e0161
[ "MIT" ]
null
null
null
neo-collector/delete/deleteTxUpdateSQL.py
i25959341/Happynodes
ef6825d17b181c451476d4ef722f2bcfa52e0161
[ "MIT" ]
null
null
null
import psycopg2 import time import os PGHOST = str(os.environ['PGHOST']) PGDATABASE = str(os.environ['PGDATABASE']) PGUSER = str(os.environ['PGUSER']) PGPASSWORD = str(os.environ['PGPASSWORD']) CONNECTION_STR = "dbname='{}' user='{}' host='{}' password='{}'".format(PGDATABASE, PGUSER, PGHOST, PGPASSWORD) DELETE_SCR...
26.77551
111
0.624238
c860efe1a3155bbb8553cd22208e8ac22d4beb94
1,738
py
Python
tools/nonhinting/setprep-fontforge.py
graffitiMSX/msxpower-googlefontdirectory
1e201a68c8181698c143279734c4677f194855d8
[ "Apache-2.0" ]
1
2016-06-05T07:51:16.000Z
2016-06-05T07:51:16.000Z
tools/nonhinting/setprep-fontforge.py
graffitiMSX/msxpower-googlefontdirectory
1e201a68c8181698c143279734c4677f194855d8
[ "Apache-2.0" ]
null
null
null
tools/nonhinting/setprep-fontforge.py
graffitiMSX/msxpower-googlefontdirectory
1e201a68c8181698c143279734c4677f194855d8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # setprep-fontforge.py # # Copyright (c) 2011 Dave Crossland <dave@understandinglimited.com> # # This program takes a TTF font with no hinting and sets # its PREP hinting table with magic values that turn on # 'drop out control' - the magic comes from Raph Levien # <firstname.lastname@gmail.co...
25.188406
80
0.694476
b3dae082194c9b0acea148e3bd7d54549ace5b22
649
py
Python
tests/unit/test_common_util.py
LeonDLotter/findpapers
8346c14eb2eceb4e8216d768bb65bb9b025dea45
[ "MIT" ]
56
2020-12-18T19:38:29.000Z
2022-03-13T20:48:01.000Z
tests/unit/test_common_util.py
LeonDLotter/findpapers
8346c14eb2eceb4e8216d768bb65bb9b025dea45
[ "MIT" ]
19
2021-08-19T13:47:33.000Z
2021-12-13T11:49:10.000Z
tests/unit/test_common_util.py
LeonDLotter/findpapers
8346c14eb2eceb4e8216d768bb65bb9b025dea45
[ "MIT" ]
11
2020-12-28T10:22:26.000Z
2022-03-27T16:26:30.000Z
import pytest from typing import Callable, Any import findpapers.utils.common_util as util @pytest.mark.parametrize('string_format, numeric_format', [ ('december', '12'), ('jan', '01'), ('February', '02'), ]) def test_get_numeric_month_by_string(string_format: str, numeric_format: str): assert util.g...
27.041667
78
0.697997
48553176437d8d202c9e4fde4c89cfe7235cd554
420
py
Python
core/lib/middleware.py
jiangxuewen16/hq-crawler
f03ec1e454513307e335943f224f4d927eaf2bbf
[ "MIT" ]
1
2021-02-25T08:33:40.000Z
2021-02-25T08:33:40.000Z
core/lib/middleware.py
jiangxuewen16/hq-crawler
f03ec1e454513307e335943f224f4d927eaf2bbf
[ "MIT" ]
null
null
null
core/lib/middleware.py
jiangxuewen16/hq-crawler
f03ec1e454513307e335943f224f4d927eaf2bbf
[ "MIT" ]
2
2021-03-08T07:25:16.000Z
2021-12-07T15:28:02.000Z
from django.utils.deprecation import MiddlewareMixin from core.lib.view import BaseView class MiddleSetMethod(MiddlewareMixin): def process_request(self, request): BaseView.method = request.method def process_response(self, request, response): return response # 执行完了这个中间件一定要 传递给下一个中间件 ...
26.25
52
0.757143
bae423031203ee5bac47917da82f87f8611acd98
1,544
py
Python
var/spack/repos/builtin/packages/libcumlprims/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/libcumlprims/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/libcumlprims/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class Libcumlprims(Package): """libcuMLPrims library""" homepage = "https://rapids....
42.888889
130
0.713083
76bc0a93e139075ac0059a7845cf1c2d41c3f741
6,705
py
Python
news_crawler/spiders/cicero.py
andreeaiana/renewrs_corpus_extraction
b077f94ea80eb2c3aa25477f2ef48f2d6e8825e7
[ "MIT" ]
2
2020-11-19T19:14:57.000Z
2020-11-24T23:33:08.000Z
news_crawler/spiders/cicero.py
andreeaiana/renewrs_corpus_extraction
b077f94ea80eb2c3aa25477f2ef48f2d6e8825e7
[ "MIT" ]
null
null
null
news_crawler/spiders/cicero.py
andreeaiana/renewrs_corpus_extraction
b077f94ea80eb2c3aa25477f2ef48f2d6e8825e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import dateparser from news_crawler.spiders import BaseSpider from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor from datetime import datetime sys.path.insert(0, os.path.join(os.getcwd(), "..",)) from news_crawler.items import NewsCrawlerItem ...
41.388889
180
0.564504