hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
8629e850aa29dbc785c3e938d9fefd5a63612b20
514
py
Python
koku/api/common/permissions/resource_type_access.py
rubik-ai/koku
3255d1c217b7b6685cb2e130bf4e025946e76fac
[ "Apache-2.0" ]
157
2018-04-30T16:27:53.000Z
2022-03-31T08:17:21.000Z
koku/api/common/permissions/resource_type_access.py
rubik-ai/koku
3255d1c217b7b6685cb2e130bf4e025946e76fac
[ "Apache-2.0" ]
3,250
2018-04-26T14:14:25.000Z
2022-03-31T23:49:15.000Z
koku/api/common/permissions/resource_type_access.py
rubik-ai/koku
3255d1c217b7b6685cb2e130bf4e025946e76fac
[ "Apache-2.0" ]
65
2018-05-10T14:11:50.000Z
2022-03-18T19:22:58.000Z
# # Copyright 2021 Red Hat Inc. # SPDX-License-Identifier: Apache-2.0 # """Defines the Resource Type Access Permissions class.""" from rest_framework import permissions class ResourceTypeAccessPermission(permissions.BasePermission): """Determines if a user can view resource-type data.""" resource_type = "res...
25.7
63
0.70428
e16a3d4c25f0625f4876fd96fbf6ed5114da8961
798
py
Python
pykit/adt/tests/test_linkedlist.py
ContinuumIO/pyk
1730d7b831e0cf12a641ac23b5cf03e17e0dc550
[ "BSD-3-Clause" ]
9
2015-06-23T00:13:49.000Z
2022-02-23T02:46:43.000Z
pykit/adt/tests/test_linkedlist.py
flypy/pykit
3bd3d03a9f45ed84366f0dec2f51c25dd9358655
[ "BSD-3-Clause" ]
1
2017-08-30T08:13:12.000Z
2017-08-31T06:36:32.000Z
pykit/adt/tests/test_linkedlist.py
ContinuumIO/pyk
1730d7b831e0cf12a641ac23b5cf03e17e0dc550
[ "BSD-3-Clause" ]
7
2015-05-08T10:17:47.000Z
2021-04-01T15:00:57.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import import unittest from pykit.adt import LinkableItem, LinkedList class TestADT(unittest.TestCase): def test_linkedlist(self): items = [LinkableItem(i) for i in range(5)] l = LinkedList(items) foo, bar, h...
33.25
80
0.610276
c73bde28d05f3bc1cadcf5d0d2467da3af0dbf57
2,719
py
Python
applications/tensorflow/cnns/training/LR_Schedules/polynomial_decay_lr.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
260
2019-11-18T01:50:00.000Z
2022-03-28T23:08:53.000Z
applications/tensorflow/cnns/training/LR_Schedules/polynomial_decay_lr.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
27
2020-01-28T23:07:50.000Z
2022-02-14T15:37:06.000Z
applications/tensorflow/cnns/training/LR_Schedules/polynomial_decay_lr.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
56
2019-11-18T02:13:12.000Z
2022-02-28T14:36:09.000Z
# Copyright (c) 2019 Graphcore Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
48.553571
140
0.698051
f9a475f525bdfdd2b10693414d6aca5666794be7
10,028
py
Python
mapproxy/source/wms.py
unibasil/mapproxy
f507c629cf0813fe7b44b0b261117e69a2821562
[ "ECL-2.0", "Apache-2.0" ]
1
2021-04-13T11:46:30.000Z
2021-04-13T11:46:30.000Z
mapproxy/source/wms.py
sdhiscocks/mapproxy
bc9e7dbcf3900e29066c927c04273da14e584fcc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/source/wms.py
sdhiscocks/mapproxy
bc9e7dbcf3900e29066c927c04273da14e584fcc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# This file is part of the MapProxy project. # Copyright (C) 2010 Omniscale <http://omniscale.de> # # 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...
38.868217
108
0.639011
b16836f31712cd02d1f9354cc2b7e2163a20db10
5,698
py
Python
benchmark/__manual_preprocessing/StrSTUN/check_manual.py
HALOCORE/SynGuar
8f7f9ba52e83091ad3def501169fd60d20b28321
[ "MIT" ]
1
2021-06-23T05:10:36.000Z
2021-06-23T05:10:36.000Z
benchmark/__manual_preprocessing/StrSTUN/check_manual.py
HALOCORE/SynGuar
8f7f9ba52e83091ad3def501169fd60d20b28321
[ "MIT" ]
null
null
null
benchmark/__manual_preprocessing/StrSTUN/check_manual.py
HALOCORE/SynGuar
8f7f9ba52e83091ad3def501169fd60d20b28321
[ "MIT" ]
null
null
null
import os import time import json from subprocess import Popen, PIPE PROCESSED_FOLDER = "path/to/targets" BENCH_IDS = ["euphony"] missing_ids = [] code_count = 0 total_count = 0 def get_prog_ids(filenames): fileids1 = set() fileids2 = set() for fname in filenames: if fname.endswith(".eg.txt"): ...
33.321637
107
0.553703
18a80f7423bc5faa788bdb69f38dd1fe5aaf637f
2,146
py
Python
config_example.py
dasTholo/pysmartnode
90b0ae05e307433c4a904017902ffadd13835cef
[ "MIT" ]
null
null
null
config_example.py
dasTholo/pysmartnode
90b0ae05e307433c4a904017902ffadd13835cef
[ "MIT" ]
null
null
null
config_example.py
dasTholo/pysmartnode
90b0ae05e307433c4a904017902ffadd13835cef
[ "MIT" ]
null
null
null
from sys import platform ### # Uncomment optional configurations to change their default value. # See pysmartnode/config_base.py for more configuration options. ### # Required custom configuration WIFI_SSID = "SSID" # optional on esp8266 if it has been connected once WIFI_PASSPHRASE = "PASSPHRASE" # optional on es...
38.321429
120
0.758155
c65f0c11cfb6dce60aeeefce07da9272a6356b39
4,195
py
Python
wsgidav/default_conf.py
sinshutu/wsgidav
ee199dc62659b6dfa62fcf7e2c51bd57acb5fb8a
[ "MIT" ]
547
2015-01-17T20:08:53.000Z
2022-03-22T12:45:27.000Z
wsgidav/default_conf.py
sinshutu/wsgidav
ee199dc62659b6dfa62fcf7e2c51bd57acb5fb8a
[ "MIT" ]
212
2015-03-10T09:41:08.000Z
2022-03-24T01:22:16.000Z
wsgidav/default_conf.py
mikespub-org/mar10-wsgidav
2d467eaa50edd084df2de8470b5203887b79fe3e
[ "MIT" ]
130
2015-03-18T12:56:46.000Z
2022-03-17T10:28:22.000Z
# -*- coding: utf-8 -*- # (c) 2009-2021 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav # Original PyFileServer (c) 2005 Ho Chun Wei. # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license.php r""" :: _ __ _ ___ ___ _ __ | | /| / /__ ___ ...
41.95
96
0.654112
975b3537975c564a88f65ffa60ae878965b24d1c
3,093
py
Python
skfem/assembly/__init__.py
gatling-nrl/scikit-fem
04730d80d612470b7e802eed4c21dd96b89cef61
[ "BSD-3-Clause" ]
null
null
null
skfem/assembly/__init__.py
gatling-nrl/scikit-fem
04730d80d612470b7e802eed4c21dd96b89cef61
[ "BSD-3-Clause" ]
3
2022-01-07T00:56:47.000Z
2022-01-12T20:06:34.000Z
skfem/assembly/__init__.py
gatling-nrl/scikit-fem
04730d80d612470b7e802eed4c21dd96b89cef61
[ "BSD-3-Clause" ]
null
null
null
r"""This module performs the finite element assembly. The basic workflow is the following: 1. Initialize :class:`~skfem.mesh.Mesh` and :class:`~skfem.element.Element`. >>> import skfem as fem >>> m = fem.MeshTri() >>> e = fem.ElementTriP1() >>> m <skfem MeshTri1 object> Number of elements: 2 Number of vertices: 4...
28.376147
79
0.634982
577816b3d23e10017ab932ef455a825a61ed617c
455
py
Python
leetcode/code/reverse.py
exchris/Pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
null
null
null
leetcode/code/reverse.py
exchris/Pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
1
2018-11-27T09:58:54.000Z
2018-11-27T09:58:54.000Z
leetcode/code/reverse.py
exchris/pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- # 整数反转 class Solution: def reverse(self, x): if x >= 0: num = int(str(x)[::-1]) else: num = int('-' + str(-x)[::-1]) if num >= (-2 ** 31) and num <= 2 ** 31 - 1: return num else: return 0 s =...
15.166667
52
0.461538
cb8c45f107cdee70a2761d68829d81865b75b09b
20,623
py
Python
tests/utils/test_task_group.py
rootcss/airflow
12c1fe2aefc6fc4ce938a20db4b65b6590004d20
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
tests/utils/test_task_group.py
rootcss/airflow
12c1fe2aefc6fc4ce938a20db4b65b6590004d20
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
14
2019-11-22T09:24:20.000Z
2021-07-09T06:06:59.000Z
tests/utils/test_task_group.py
rootcss/airflow
12c1fe2aefc6fc4ce938a20db4b65b6590004d20
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
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...
35.618307
100
0.520632
31b629cb8f9f4e1c96639a4ac53923f52f9d1918
345
py
Python
python_beamscanner/__init__.py
PaulKGrimes/python-beamscanner
6009f8173ddeb0537bd750a90b673e0960ba74bf
[ "MIT" ]
null
null
null
python_beamscanner/__init__.py
PaulKGrimes/python-beamscanner
6009f8173ddeb0537bd750a90b673e0960ba74bf
[ "MIT" ]
5
2021-12-20T00:22:02.000Z
2021-12-20T14:30:15.000Z
python_beamscanner/__init__.py
PaulKGrimes/python_beamscanner
6009f8173ddeb0537bd750a90b673e0960ba74bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for Python Beamscanner.""" __author__ = "Paul Grimes" __email__ = "pgrimes@cfa.harvard.edu" # Do not edit this string manually, always use bumpversion # Details in CONTRIBUTING.md __version__ = "0.0.0" def get_module_version(): return __version__ from .example impo...
20.294118
58
0.718841
f157c4d63444396ecb1f109a8a9d188b21dca5d6
1,063
py
Python
ch4/monkey/test_monkey.py
Jamrozinski/PythonTestingWithPytest
0dceb58f0b17fefa776748c93f5df062395d00be
[ "MIT" ]
11
2021-05-06T12:39:39.000Z
2022-03-14T11:58:44.000Z
ch4/monkey/test_monkey.py
Jamrozinski/PythonTestingWithPytest
0dceb58f0b17fefa776748c93f5df062395d00be
[ "MIT" ]
34
2019-12-16T16:53:24.000Z
2022-01-13T02:29:30.000Z
ch4/monkey/test_monkey.py
Jamrozinski/PythonTestingWithPytest
0dceb58f0b17fefa776748c93f5df062395d00be
[ "MIT" ]
11
2021-06-10T21:19:42.000Z
2022-02-21T04:03:06.000Z
import pytest import os class Point(object): def __init__(self, x, y): self.x = x self.y = y print('Point.__init__()') def __repr__(self): return 'Point({},{})'.format(self.x, self.y) def __str__(self): return '({},{})'.format(self.x, self.y) @pytest.fixture(nam...
22.617021
60
0.642521
6f26b216a8be0a059ebbededa849abfe53f707f5
213
py
Python
testLEDS.py
steelcowboy/pi-gpiozero
e0f93422ccf9de6791f5df5796529bcea499d381
[ "WTFPL" ]
null
null
null
testLEDS.py
steelcowboy/pi-gpiozero
e0f93422ccf9de6791f5df5796529bcea499d381
[ "WTFPL" ]
null
null
null
testLEDS.py
steelcowboy/pi-gpiozero
e0f93422ccf9de6791f5df5796529bcea499d381
[ "WTFPL" ]
null
null
null
#! /usr/bin/env python3 from gpiozero import * from time import sleep import mypins leds = [] for x in mypins.pins6: leds.append(LED(x)) for x in leds: x.on() sleep(1) for x in leds: x.off()
11.210526
23
0.624413
c2eeb59669a3c72ef740dd320b57cf3e9af4d950
565
py
Python
backend/api/migrations/0022_audit_tables.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
18
2017-05-10T21:55:11.000Z
2021-03-01T16:41:32.000Z
backend/api/migrations/0022_audit_tables.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
1,167
2017-03-04T00:18:43.000Z
2022-03-03T22:31:51.000Z
backend/api/migrations/0022_audit_tables.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
48
2017-03-09T17:19:39.000Z
2022-02-24T16:38:17.000Z
from django.db import migrations from api.migrations.operations.trigger_operation import AuditTable class Migration(migrations.Migration): dependencies = [ ('api', '0021_audit_triggers'), ] _tables = ['credit_trade', 'credit_trade_comment', 'credit_trade_history', ...
24.565217
66
0.585841
c36553db314bdd3fab371fe2f4744f3264fb8cdd
11,397
py
Python
adcp_qartod_qaqc/trdi.py
USF-COT/adcp_qartod_qaqc
7a262e9a319a5791eed0658a90112839fc32a610
[ "MIT" ]
1
2016-12-22T19:48:54.000Z
2016-12-22T19:48:54.000Z
adcp_qartod_qaqc/trdi.py
USF-COT/adcp_qartod_qaqc
7a262e9a319a5791eed0658a90112839fc32a610
[ "MIT" ]
null
null
null
adcp_qartod_qaqc/trdi.py
USF-COT/adcp_qartod_qaqc
7a262e9a319a5791eed0658a90112839fc32a610
[ "MIT" ]
null
null
null
import math from itertools import imap from operator import itemgetter from adcp_qartod_qaqc.tests import ( battery_flag_test, checksum_test, bit_test, orientation_test, sound_speed_test, noise_floor_test, signal_strength_test, signal_to_noise_test, correlation_magnitude_test, ...
33.130814
95
0.593051
ff713e11133043dbb4db4c076e70518701c6966a
2,138
py
Python
descriptor/descriptorkinds.py
ambleacme/decorators-descriptors
ff9e9b5594f2824f529aa96d5620df7840bccccd
[ "MIT" ]
78
2017-05-01T10:27:20.000Z
2022-02-05T15:22:41.000Z
descriptor/descriptorkinds.py
ambleacme/decorators-descriptors
ff9e9b5594f2824f529aa96d5620df7840bccccd
[ "MIT" ]
null
null
null
descriptor/descriptorkinds.py
ambleacme/decorators-descriptors
ff9e9b5594f2824f529aa96d5620df7840bccccd
[ "MIT" ]
36
2017-05-17T20:29:41.000Z
2020-11-22T23:52:28.000Z
""" Non-overriding descriptor (a.k.a. shadowable descriptor): >>> o = Model() >>> o.nonover # doctest: +ELLIPSIS --> NonOverriding.__get__ invoked 'value of an attribute in instance <descriptorkinds.Model object at 0x...>' >>> Model.nonover # doctest: +ELLIPSIS --> NonOverriding.__get__ inv...
27.410256
79
0.636576
cee86266f68a798d761f2af6680b05b71d79c49a
387
py
Python
CS1410/Code/fib2_perf.py
Davidjbennett/DavidBennett.github.io
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
3
2021-05-18T16:17:29.000Z
2022-01-20T15:46:59.000Z
CS1410/Code/fib2_perf.py
Davidjbennett/DavidBennett
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
null
null
null
CS1410/Code/fib2_perf.py
Davidjbennett/DavidBennett
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
null
null
null
''' fib2.py: Caches values of all calls ''' from time import perf_counter cache = {} # Save results as arg-value pairs def fib(n): if n in (0,1): result = n elif n in cache: result = cache[n] else: result = fib(n-1) + fib(n-2) cache[n] = result return result s...
19.35
51
0.576227
72c2f57bb3fe66972e06f1ba5bfd7bbf42f3e318
2,366
py
Python
api/migrations/0001_initial.py
rauanisanfelice/django-api-ecommerce
3b8c0db70841eb9bd0fb5e115b266e4c9d80751a
[ "MIT" ]
null
null
null
api/migrations/0001_initial.py
rauanisanfelice/django-api-ecommerce
3b8c0db70841eb9bd0fb5e115b266e4c9d80751a
[ "MIT" ]
null
null
null
api/migrations/0001_initial.py
rauanisanfelice/django-api-ecommerce
3b8c0db70841eb9bd0fb5e115b266e4c9d80751a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-10-05 11:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Produto', fields=[ ...
46.392157
114
0.597633
d879319b89cb71589096a6dc280dda2f0d331aac
1,396
py
Python
AutotestWebD/all_models/migrations/0002_auto_20190524_1525.py
yangjourney/sosotest
2e88099a829749910ca325253c9b1a2e368d21a0
[ "MIT" ]
422
2019-08-18T05:04:20.000Z
2022-03-31T06:49:19.000Z
AutotestWebD/all_models/migrations/0002_auto_20190524_1525.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
10
2019-10-24T09:55:38.000Z
2021-09-29T17:28:43.000Z
AutotestWebD/all_models/migrations/0002_auto_20190524_1525.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
202
2019-08-18T05:04:27.000Z
2022-03-30T05:57:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2019-05-24 15:25 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('all_models', '0001_initial'), ] operations = [ migrations.AddField( ...
34.04878
110
0.618195
d7182ddec19d9d1606516b076db87d61b36890d9
7,814
py
Python
kubernetes_asyncio/client/models/v1beta1_self_subject_access_review.py
jnschaeffer/kubernetes_asyncio
05f42510e7acb8d229bf7c2d4e2455e6328486a6
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1beta1_self_subject_access_review.py
jnschaeffer/kubernetes_asyncio
05f42510e7acb8d229bf7c2d4e2455e6328486a6
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1beta1_self_subject_access_review.py
jnschaeffer/kubernetes_asyncio
05f42510e7acb8d229bf7c2d4e2455e6328486a6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.15.11 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six f...
33.973913
295
0.639365
3a3f109e4512ab237693657405bfdfc71ec4ff03
934
py
Python
src/flask/errors_blueprint.py
computer-geek64/firestorm
9e69587430bc05bf56ba4bef3b88de3e4325587b
[ "MIT" ]
2
2020-07-12T18:06:04.000Z
2020-07-12T18:06:13.000Z
src/flask/errors_blueprint.py
computer-geek64/firestorm
9e69587430bc05bf56ba4bef3b88de3e4325587b
[ "MIT" ]
null
null
null
src/flask/errors_blueprint.py
computer-geek64/firestorm
9e69587430bc05bf56ba4bef3b88de3e4325587b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # errors_blueprint.py import os from flask import Blueprint, render_template errors_blueprint = Blueprint('errors_blueprint', __name__, template_folder=os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'templates'), static_folder=os.path.join(os.path.dirname(os.path.dirname...
26.685714
261
0.775161
c2680453aed67a7da9dcbe422c83ce43a5a36d6b
3,077
py
Python
zdict.py
simonerestelli/pystruct
f615e8aa90422acf8d18c186792c3316990a4fdf
[ "Apache-2.0" ]
null
null
null
zdict.py
simonerestelli/pystruct
f615e8aa90422acf8d18c186792c3316990a4fdf
[ "Apache-2.0" ]
null
null
null
zdict.py
simonerestelli/pystruct
f615e8aa90422acf8d18c186792c3316990a4fdf
[ "Apache-2.0" ]
null
null
null
########################################################################### # Copyright 2014-2015 Simone Restelli # # 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/...
25.221311
91
0.672408
3ee559e66e359e220b89a983676d8133125e9cc0
7,330
py
Python
tinygrad/ops.py
Salazar-99/tinygrad
1657c9844561bfc122f8f8eabf531a0f2ae67543
[ "MIT" ]
1
2020-11-01T02:16:57.000Z
2020-11-01T02:16:57.000Z
tinygrad/ops.py
Salazar-99/tinygrad
1657c9844561bfc122f8f8eabf531a0f2ae67543
[ "MIT" ]
null
null
null
tinygrad/ops.py
Salazar-99/tinygrad
1657c9844561bfc122f8f8eabf531a0f2ae67543
[ "MIT" ]
null
null
null
import numpy as np from .tensor import Function, Registered # ************* basic ops ************* class Add(Function, metaclass=Registered): @staticmethod def forward(ctx, x, y): return x+y @staticmethod def backward(ctx, grad_output): return grad_output, grad_output class Sub(Function, metaclass=...
28.410853
96
0.625648
cf82d5082581791262127540cf226aad271c3ba4
2,655
py
Python
openGaussBase/testcase/KEYWORDS/simple/Opengauss_Function_Keyword_Simple_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/simple/Opengauss_Function_Keyword_Simple_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/simple/Opengauss_Function_Keyword_Simple_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
35.878378
122
0.662147
3c6182b723af13a7764e504f4dc288f404d9024c
2,886
py
Python
env/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/local.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
1
2019-04-21T18:57:57.000Z
2019-04-21T18:57:57.000Z
env/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/local.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
null
null
null
env/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/local.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import (absolute_import, division, print_function, unicode_literals) from contextlib import contextmanager from piptools.utils import as_tuple, key_from_req, make_install_requirement from .base import BaseRepository from pip9.utils.hashes import FAVORITE_HASH ...
34.357143
79
0.688843
45426157574fb1cea44b355527f20cff4fa34d78
3,473
py
Python
src/foremast/utils/pipelines.py
JessicaAlan/foremast
86c2141b88707b5826d6225d64fb31a7bf3867fc
[ "Apache-2.0" ]
null
null
null
src/foremast/utils/pipelines.py
JessicaAlan/foremast
86c2141b88707b5826d6225d64fb31a7bf3867fc
[ "Apache-2.0" ]
null
null
null
src/foremast/utils/pipelines.py
JessicaAlan/foremast
86c2141b88707b5826d6225d64fb31a7bf3867fc
[ "Apache-2.0" ]
null
null
null
# Foremast - Pipeline Tooling # # Copyright 2018 Gogo, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
29.683761
83
0.664843
abd0635dd700fdb50e2dfeeaf201614b5959f92d
1,270
py
Python
morph_seg/seq2seq/train_many.py
e9t/morph-segmentation
c6f398166a3edc57302f0bbef897608a4c5b974d
[ "MIT" ]
null
null
null
morph_seg/seq2seq/train_many.py
e9t/morph-segmentation
c6f398166a3edc57302f0bbef897608a4c5b974d
[ "MIT" ]
null
null
null
morph_seg/seq2seq/train_many.py
e9t/morph-segmentation
c6f398166a3edc57302f0bbef897608a4c5b974d
[ "MIT" ]
1
2021-02-19T07:56:11.000Z
2021-02-19T07:56:11.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2017 Judit Acs <judit@sch.bme.hu> # # Distributed under terms of the MIT license. from __future__ import unicode_literals from argparse import ArgumentParser from sys import stdin from experiment import Seq2seqExperiment from data import ...
28.863636
79
0.66063
d8ce438d3962ff3a30650d23417195c08797524c
765
py
Python
network_insight_sdk_generic_datasources/parsers/common/text_parser.py
lukaswinn/network-insight-sdk-generic-datasources
094479acdc19cf83ab613556746cd980c1741347
[ "BSD-2-Clause" ]
11
2019-08-02T12:10:34.000Z
2022-01-17T17:25:19.000Z
network_insight_sdk_generic_datasources/parsers/common/text_parser.py
lukaswinn/network-insight-sdk-generic-datasources
094479acdc19cf83ab613556746cd980c1741347
[ "BSD-2-Clause" ]
35
2019-07-19T07:28:58.000Z
2022-03-21T06:07:20.000Z
network_insight_sdk_generic_datasources/parsers/common/text_parser.py
lukaswinn/network-insight-sdk-generic-datasources
094479acdc19cf83ab613556746cd980c1741347
[ "BSD-2-Clause" ]
9
2019-08-09T07:28:04.000Z
2022-03-21T20:24:00.000Z
# Copyright 2019 VMware, Inc. # SPDX-License-Identifier: BSD-2-Clause from network_insight_sdk_generic_datasources.parsers.text.text_processor import TextProcessor from network_insight_sdk_generic_datasources.parsers.text.text_processor import Rule from network_insight_sdk_generic_datasources.parsers.text.text_process...
31.875
99
0.690196
e96414630f4cfaf4d6c3f5cba89cc79b012fc1fa
514
py
Python
shop/tests/views/add_view/test_add_multiple_items.py
cuescience/cuescience-shop
bf5ea159f9277d1d6ab7acfcad3f2517723a225c
[ "MIT" ]
null
null
null
shop/tests/views/add_view/test_add_multiple_items.py
cuescience/cuescience-shop
bf5ea159f9277d1d6ab7acfcad3f2517723a225c
[ "MIT" ]
null
null
null
shop/tests/views/add_view/test_add_multiple_items.py
cuescience/cuescience-shop
bf5ea159f9277d1d6ab7acfcad3f2517723a225c
[ "MIT" ]
null
null
null
""" @Imports """ from django.test.testcases import TestCase from cuescience_cart.tests.support.support import TestSupport class TestAddMultipleItems(TestCase): def setUp(self): self.test_support = TestSupport(self) def test(self): """ The code in this method is generated from: /cue...
30.235294
126
0.70428
24acbea0f0df0daa80adf05d99459582eb494da4
709
py
Python
src/main/python/depysible/domain/theme.py
stefano-bragaglia/DePYsible
6b53ede459a10f5e24da89d3ebaa05f08ec7af12
[ "BSD-2-Clause" ]
4
2018-09-24T23:51:05.000Z
2021-01-06T09:13:52.000Z
src/main/python/depysible/domain/theme.py
stefano-bragaglia/DefeasiblePython
6b53ede459a10f5e24da89d3ebaa05f08ec7af12
[ "BSD-2-Clause" ]
1
2020-05-26T01:14:44.000Z
2020-05-27T07:54:15.000Z
src/main/python/depysible/domain/theme.py
stefano-bragaglia/DePYsible
6b53ede459a10f5e24da89d3ebaa05f08ec7af12
[ "BSD-2-Clause" ]
null
null
null
from colorama import Fore from colorama import Style COMMENT = '%s%s' % (Style.DIM, Fore.LIGHTBLACK_EX) NEGATION = '%s%s' % (Style.NORMAL, Fore.CYAN) FUNCTOR = '%s%s' % (Style.NORMAL, Fore.BLUE) VARIABLE = '%s%s' % (Style.NORMAL, Fore.RED) MUTE_VARIABLE = '%s%s' % (Style.DIM, Fore.RED) STRING = '%s%s' % (Style.NORMAL,...
32.227273
50
0.64598
5213565da676353cd8887a7bcab568c2ee9a612e
3,475
py
Python
src/nn.py
RaphaelScho/N-Puzzle
d8d7250a12ad078f615700e4e5397037de69deae
[ "MIT" ]
null
null
null
src/nn.py
RaphaelScho/N-Puzzle
d8d7250a12ad078f615700e4e5397037de69deae
[ "MIT" ]
null
null
null
src/nn.py
RaphaelScho/N-Puzzle
d8d7250a12ad078f615700e4e5397037de69deae
[ "MIT" ]
null
null
null
import tensorflow as tf class nn: def __init__(self, puzzleSize, alpha): self.alpha = alpha self.puzzleSize = puzzleSize self.actionsSize = puzzleSize ** 2 self.inputSize = self.actionsSize ** 2 self.hiddenLayerSize = None self.hiddenLayerSize2 = None if p...
38.611111
118
0.606906
6d678cc0443533b5774ccb629e42ccde4738953f
771
py
Python
robustness/run_solver_population.py
anze-gn/CBLBs
5a62236e4db3f08e4058da76621a185c64fd24ba
[ "MIT" ]
null
null
null
robustness/run_solver_population.py
anze-gn/CBLBs
5a62236e4db3f08e4058da76621a185c64fd24ba
[ "MIT" ]
2
2021-01-04T22:00:57.000Z
2021-01-04T22:11:06.000Z
robustness/run_solver_population.py
anze-gn/CBLBs
5a62236e4db3f08e4058da76621a185c64fd24ba
[ "MIT" ]
null
null
null
from solver_population import Solver from model_clb_population import model_clb_population, param_references import os import numpy as np if __name__ == "__main__": filename = os.path.join("results_optimization_population", "cblb_pop_frac") #model = BioProc(np.array(["protein_production", "protein_produc...
59.307692
358
0.710765
d26112bf8477a30be628ae3bf85f8896bf7ee17e
787
py
Python
wheat/wallet/puzzles/p2_puzzle_hash.py
grayfallstown/wheat-blockchain
f391cdd30a0cbcdb2adf4439a25581fd28b42c1f
[ "Apache-2.0" ]
15
2021-07-12T14:27:42.000Z
2022-02-09T04:32:44.000Z
wheat/wallet/puzzles/p2_puzzle_hash.py
grayfallstown/wheat-blockchain
f391cdd30a0cbcdb2adf4439a25581fd28b42c1f
[ "Apache-2.0" ]
21
2021-07-12T23:25:36.000Z
2021-10-29T23:19:55.000Z
wheat/wallet/puzzles/p2_puzzle_hash.py
grayfallstown/wheat-blockchain
f391cdd30a0cbcdb2adf4439a25581fd28b42c1f
[ "Apache-2.0" ]
8
2021-07-12T13:15:19.000Z
2022-03-15T08:41:18.000Z
""" Pay to puzzle hash In this puzzle program, the solution must be a reveal of the puzzle with the given hash along with its solution. """ from wheat.types.blockchain_format.program import Program from wheat.types.blockchain_format.sized_bytes import bytes32 from .load_clvm import load_clvm MOD = load_clvm("p2_puz...
29.148148
115
0.808132
f20ff56f303ed42a1879231949a60eeeeaab8949
2,289
py
Python
finicityapi/models/payroll_provider_refresh_data.py
monarchmoney/finicity-python
b2ab1ded435db75c78d42261f5e4acd2a3061487
[ "MIT" ]
null
null
null
finicityapi/models/payroll_provider_refresh_data.py
monarchmoney/finicity-python
b2ab1ded435db75c78d42261f5e4acd2a3061487
[ "MIT" ]
null
null
null
finicityapi/models/payroll_provider_refresh_data.py
monarchmoney/finicity-python
b2ab1ded435db75c78d42261f5e4acd2a3061487
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class PayrollProviderRefreshData(object): """Implementation of the 'Payroll Provider Refresh Data' model. TODO: type model description here. Attributes: ssn (string): The full SSN without hyphens that matches the consumer’s SSN. date_of_bi...
29.727273
82
0.573176
77317e2814d6fd7c1175a0d297346d62bd009435
5,840
py
Python
test/e2e/predictor/test_sklearn.py
xfu83/kserve
172933a487b5a7ee521c79f9ce6440476d0b4dcf
[ "Apache-2.0" ]
358
2021-07-28T05:15:39.000Z
2022-03-31T16:41:38.000Z
test/e2e/predictor/test_sklearn.py
xfu83/kserve
172933a487b5a7ee521c79f9ce6440476d0b4dcf
[ "Apache-2.0" ]
399
2021-07-27T12:17:24.000Z
2022-03-31T16:57:15.000Z
test/e2e/predictor/test_sklearn.py
xfu83/kserve
172933a487b5a7ee521c79f9ce6440476d0b4dcf
[ "Apache-2.0" ]
121
2021-07-28T05:15:49.000Z
2022-03-31T13:56:56.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
35.180723
92
0.669863
ccffbc6bae20410a15c5b7917ad5c30889035889
3,580
py
Python
libfuturize/fixes/fix_future_standard_library.py
megies/python-future
eb070aa1bc89688fecd99249679c7c9ddc706715
[ "MIT" ]
null
null
null
libfuturize/fixes/fix_future_standard_library.py
megies/python-future
eb070aa1bc89688fecd99249679c7c9ddc706715
[ "MIT" ]
null
null
null
libfuturize/fixes/fix_future_standard_library.py
megies/python-future
eb070aa1bc89688fecd99249679c7c9ddc706715
[ "MIT" ]
null
null
null
""" For the ``future`` package. Changes any imports needed to reflect the standard library reorganization. Also Also adds these import lines: from future import standard_library standard_library.install_hooks() after any __future__ imports but before any other imports. """ from __future__ import absolute_imp...
37.291667
81
0.618156
b18bfa44422e6a352a4e4e84e31fd03e2177da42
4,042
py
Python
locallibrary/settings.py
tetsunosuke/locallibrary
7299853fbec03996d2534844fff7ca4161f9c482
[ "BSD-2-Clause" ]
1
2021-11-01T09:30:37.000Z
2021-11-01T09:30:37.000Z
locallibrary/settings.py
tetsunosuke/locallibrary
7299853fbec03996d2534844fff7ca4161f9c482
[ "BSD-2-Clause" ]
null
null
null
locallibrary/settings.py
tetsunosuke/locallibrary
7299853fbec03996d2534844fff7ca4161f9c482
[ "BSD-2-Clause" ]
null
null
null
""" Django settings for locallibrary project. Generated by 'django-admin startproject' using Django 3.2.7. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathl...
27.496599
102
0.718456
7d904453f1641d88405014f2834c27afbec058d6
2,360
py
Python
127-Word-Ladder/solution01.py
Eroica-cpp/LeetCode
07276bd11558f3d0e32bec768b09e886de145f9e
[ "CC-BY-3.0", "MIT" ]
7
2015-05-05T22:21:30.000Z
2021-03-13T04:04:15.000Z
127-Word-Ladder/solution01.py
Eroica-cpp/LeetCode
07276bd11558f3d0e32bec768b09e886de145f9e
[ "CC-BY-3.0", "MIT" ]
null
null
null
127-Word-Ladder/solution01.py
Eroica-cpp/LeetCode
07276bd11558f3d0e32bec768b09e886de145f9e
[ "CC-BY-3.0", "MIT" ]
2
2018-12-26T08:13:25.000Z
2020-07-18T20:18:24.000Z
#!/usr/bin/python """ ==================================================================================== Author: Tao Li (taoli@ucsd.edu) Date: Jun 23, 2015 Question: 127-Word-Ladder Link: https://leetcode.com/problems/word-ladder/ =============================================================================...
34.202899
105
0.536017
aa185cfbc8bb7bfe9e5d240d0cf00d411b01d470
13,531
py
Python
selfdrive/car/fw_versions.py
doudoune144/openpilot-1
61b8df815ff47c9cf013b0a40fd86357629595d9
[ "MIT" ]
53
2018-07-31T04:26:48.000Z
2022-03-29T08:50:06.000Z
selfdrive/car/fw_versions.py
doudoune144/openpilot-1
61b8df815ff47c9cf013b0a40fd86357629595d9
[ "MIT" ]
47
2018-07-21T15:31:51.000Z
2022-03-25T10:21:24.000Z
selfdrive/car/fw_versions.py
doudoune144/openpilot-1
61b8df815ff47c9cf013b0a40fd86357629595d9
[ "MIT" ]
124
2018-09-05T18:32:30.000Z
2022-03-13T16:30:50.000Z
#!/usr/bin/env python3 import struct import traceback from typing import Any from collections import defaultdict from tqdm import tqdm import panda.python.uds as uds from cereal import car from selfdrive.car.fingerprints import FW_VERSIONS, get_attr_from_cars from selfdrive.car.isotp_parallel_query import IsoTpParall...
33.492574
153
0.723376
b86ad15e2c18860cc33ab7dc5531739fcc6fb7ee
962
py
Python
Neural-Style-Transfer/utils.py
mrdragonbear/Neural-Networks
e52b02c9b8dee4c7533b2da0124533e3ed19f291
[ "MIT" ]
70
2019-06-18T07:32:23.000Z
2022-01-18T07:53:08.000Z
Neural-Style-Transfer/utils.py
thinkwayne/Neural-Networks
e52b02c9b8dee4c7533b2da0124533e3ed19f291
[ "MIT" ]
null
null
null
Neural-Style-Transfer/utils.py
thinkwayne/Neural-Networks
e52b02c9b8dee4c7533b2da0124533e3ed19f291
[ "MIT" ]
38
2019-06-18T13:33:44.000Z
2022-03-15T13:16:10.000Z
import numpy as np from keras import backend as K from keras.applications import vgg16 from keras.preprocessing.image import load_img, img_to_array def time_function(f, *args): """ Call a function f with args and return the time (in seconds) that it took to execute. """ tic = time.time() f(*args) toc = time.tim...
27.485714
76
0.700624
c1e477c1040e6c214b6d2252f7cc55acc3d6959d
28,794
py
Python
tools_webrtc/mb/mb_unittest.py
ztchu/2020_04_05_webrtc
2e3e36312b10b8711c467e7bdc4582c01914e4d0
[ "BSD-3-Clause" ]
45
2020-11-25T06:17:12.000Z
2022-03-26T03:49:51.000Z
tools_webrtc/mb/mb_unittest.py
ztchu/2020_04_05_webrtc
2e3e36312b10b8711c467e7bdc4582c01914e4d0
[ "BSD-3-Clause" ]
31
2020-11-17T05:30:13.000Z
2021-12-14T02:19:00.000Z
tools_webrtc/mb/mb_unittest.py
ztchu/2020_04_05_webrtc
2e3e36312b10b8711c467e7bdc4582c01914e4d0
[ "BSD-3-Clause" ]
20
2020-11-17T06:24:14.000Z
2022-03-10T07:08:53.000Z
#!/usr/bin/python # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contr...
34.52518
80
0.561367
8a68d75b96ec1a5137eb05e4fad257c33d4b9e31
736
py
Python
kerastuner/applications/__init__.py
Gonaz/keras-tuner
f8264811d4744abb4f0fdab480e8a4e6ddf91c4e
[ "Apache-2.0" ]
1
2020-08-18T08:53:46.000Z
2020-08-18T08:53:46.000Z
kerastuner/applications/__init__.py
Gonaz/keras-tuner
f8264811d4744abb4f0fdab480e8a4e6ddf91c4e
[ "Apache-2.0" ]
null
null
null
kerastuner/applications/__init__.py
Gonaz/keras-tuner
f8264811d4744abb4f0fdab480e8a4e6ddf91c4e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Keras Tuner 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.8
74
0.783967
2e3c85ecee8c4137d6db092c6403dbb6d7c609a7
775
py
Python
scripts/memeval.py
ga67vib/Algorithms-For-Stochastic-Games
c27f0ab7d57f4500d47d87ee0b5d19551cb2ba45
[ "MIT" ]
1
2021-09-08T08:42:42.000Z
2021-09-08T08:42:42.000Z
scripts/memeval.py
ga67vib/Algorithms-For-Stochastic-Games
c27f0ab7d57f4500d47d87ee0b5d19551cb2ba45
[ "MIT" ]
null
null
null
scripts/memeval.py
ga67vib/Algorithms-For-Stochastic-Games
c27f0ab7d57f4500d47d87ee0b5d19551cb2ba45
[ "MIT" ]
null
null
null
import csv def min_max_diff(row): min = 10000000 max = 0 for entry in row: if entry == "X": continue entry = int(entry) if entry < min: min = entry if entry > max: max = entry diff = max/min return (min,max,diff) with open("mem1/mem.csv", "r") as memfile: with open("mem1/mem-relative.csv", "w"...
18.452381
52
0.592258
d72c2119677db4ab1166d4a5ad5bfc2174051455
4,689
py
Python
Track_subtraction.py
sutormin94/TopoI_Topo-Seq_1
78f03bc3a6e2249b6f47fe838c2ba7d8d761b596
[ "MIT" ]
null
null
null
Track_subtraction.py
sutormin94/TopoI_Topo-Seq_1
78f03bc3a6e2249b6f47fe838c2ba7d8d761b596
[ "MIT" ]
null
null
null
Track_subtraction.py
sutormin94/TopoI_Topo-Seq_1
78f03bc3a6e2249b6f47fe838c2ba7d8d761b596
[ "MIT" ]
null
null
null
############################################### ##Dmitry Sutormin, 2021## ##TopoI Topo-Seq analysis## #### #To subtract any scaled tracks if signal is sparce and fold enrichment calculation is not applicable (near-zero values). #### ############################################### import numpy as np #Path to the wor...
45.970588
180
0.68714
685ade2d886a9f3951210b0bc876d0ec9a608eb7
156
py
Python
tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_PolyTrend_Seasonal_Minute_LSTM.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_PolyTrend_Seasonal_Minute_LSTM.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_PolyTrend_Seasonal_Minute_LSTM.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['BoxCox'] , ['PolyTrend'] , ['Seasonal_Minute'] , ['LSTM'] );
39
83
0.75
b60a26a70a0076dab0ed55c7247a5622e21b4b84
3,756
py
Python
tkFontBox.py
Manav1918/tkFontBox
b3292cd3d52517d06bc9ab94afd45dd0178fcf8b
[ "MIT" ]
1
2022-02-08T16:44:01.000Z
2022-02-08T16:44:01.000Z
tkFontBox.py
Manav1918/tkFontBox
b3292cd3d52517d06bc9ab94afd45dd0178fcf8b
[ "MIT" ]
null
null
null
tkFontBox.py
Manav1918/tkFontBox
b3292cd3d52517d06bc9ab94afd45dd0178fcf8b
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import ttk from tkinter import font class FontChooser(Toplevel): def __init__(self,parent,winname='Font Chooser'): Toplevel.__init__(self,parent) self.parent = parent self.winname = winname self.allfontSizes = [i for i in range(8,73,2)] ...
39.125
102
0.619808
45c002ecac3aa175cc2c7ba466e4ba595a798dfb
24,434
py
Python
joj/horse/tests/apis/test_domains.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
6
2020-12-28T07:05:52.000Z
2022-01-16T04:44:02.000Z
joj/horse/tests/apis/test_domains.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
56
2021-02-02T02:21:52.000Z
2022-03-13T02:39:05.000Z
joj/horse/tests/apis/test_domains.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
3
2021-01-28T17:52:58.000Z
2021-12-17T17:42:42.000Z
from typing import Any, Dict, Tuple from uuid import uuid4 import pytest from httpx import AsyncClient, Response from pytest_lazyfixture import lazy_fixture from joj.horse import apis, models from joj.horse.app import app from joj.horse.models.permission import DefaultRole from joj.horse.tests.utils.utils import ( ...
34.173427
88
0.632275
396e0f754a691993da83481403f292f904d2a101
31,358
py
Python
scripts/install_backend_python_libs.py
TheoLipeles/oppia
cd0bb873e08fa716014f3d1480fbbfee95b89121
[ "Apache-2.0" ]
2
2021-03-07T18:39:15.000Z
2021-03-29T20:09:11.000Z
scripts/install_backend_python_libs.py
TheoLipeles/oppia
cd0bb873e08fa716014f3d1480fbbfee95b89121
[ "Apache-2.0" ]
null
null
null
scripts/install_backend_python_libs.py
TheoLipeles/oppia
cd0bb873e08fa716014f3d1480fbbfee95b89121
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Oppia 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 applicable ...
44.925501
80
0.694878
1989cdd30df9d7de15f9c735d5a7186f1708607e
674
py
Python
example/config/celery.py
hkhanna/billing
95eb94040ed19291489993359da1ee278777f2be
[ "MIT" ]
null
null
null
example/config/celery.py
hkhanna/billing
95eb94040ed19291489993359da1ee278777f2be
[ "MIT" ]
3
2021-08-09T22:33:12.000Z
2021-10-15T05:10:07.000Z
example/config/celery.py
hkhanna/billing
95eb94040ed19291489993359da1ee278777f2be
[ "MIT" ]
null
null
null
import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.config.settings.local") app = Celery("example") # Using a string here means the worker doesn't have to serialize # the configuration object to child process...
29.304348
80
0.767062
e59bd34a447358155a7c2d168e3a1055c62fde39
1,680
py
Python
bnpy/deletemove/DLogger.py
jun2tong/bnp-anomaly
c7fa106b5bb29ed6688a3d91e3f302a0a130b896
[ "BSD-3-Clause" ]
null
null
null
bnpy/deletemove/DLogger.py
jun2tong/bnp-anomaly
c7fa106b5bb29ed6688a3d91e3f302a0a130b896
[ "BSD-3-Clause" ]
null
null
null
bnpy/deletemove/DLogger.py
jun2tong/bnp-anomaly
c7fa106b5bb29ed6688a3d91e3f302a0a130b896
[ "BSD-3-Clause" ]
null
null
null
from builtins import * import logging import os import sys # Configure Logger Log = None def pprint(msg, level=logging.DEBUG): global Log if Log is None: return if isinstance(level, str): if level.count('info'): level = logging.INFO elif level.count('debug'): ...
29.473684
73
0.630952
7761dca0568f10c6bbc239f9892d7e7362b6e0bf
1,274
py
Python
sevdesk/client/models/document_model_datev_connect_online.py
HpLightcorner/SevDesk-Python-Client
303ca8dddd78da4291e7d23692ccfb147c7ba31a
[ "MIT" ]
null
null
null
sevdesk/client/models/document_model_datev_connect_online.py
HpLightcorner/SevDesk-Python-Client
303ca8dddd78da4291e7d23692ccfb147c7ba31a
[ "MIT" ]
null
null
null
sevdesk/client/models/document_model_datev_connect_online.py
HpLightcorner/SevDesk-Python-Client
303ca8dddd78da4291e7d23692ccfb147c7ba31a
[ "MIT" ]
null
null
null
from typing import Any, Dict, List, Type, TypeVar import attr T = TypeVar("T", bound="DocumentModelDatevConnectOnline") @attr.s(auto_attribs=True) class DocumentModelDatevConnectOnline: """Internal attribute""" additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) def to_dict(self)...
28.311111
77
0.682889
c7be1b35f36070c149c4787744006fd6b284837f
2,005
py
Python
pyoutline/outline/exception.py
splhack/OpenCue
068d0e304fd3d3c5b3f1da9d2588da20c6fdf330
[ "Apache-2.0" ]
null
null
null
pyoutline/outline/exception.py
splhack/OpenCue
068d0e304fd3d3c5b3f1da9d2588da20c6fdf330
[ "Apache-2.0" ]
1
2020-09-09T20:39:24.000Z
2020-09-09T20:39:24.000Z
pyoutline/outline/exception.py
splhack/OpenCue
068d0e304fd3d3c5b3f1da9d2588da20c6fdf330
[ "Apache-2.0" ]
null
null
null
# Copyright Contributors to the OpenCue Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
25.0625
75
0.708229
c1180eb094aad26ed42b4cff99c8e84b4f5eae0d
244
py
Python
Python/for3.py
yutakakn/MyScript
cb40e0077fdce1d64f658227952ae1654e7510ae
[ "BSD-3-Clause" ]
null
null
null
Python/for3.py
yutakakn/MyScript
cb40e0077fdce1d64f658227952ae1654e7510ae
[ "BSD-3-Clause" ]
null
null
null
Python/for3.py
yutakakn/MyScript
cb40e0077fdce1d64f658227952ae1654e7510ae
[ "BSD-3-Clause" ]
2
2017-07-19T15:26:19.000Z
2017-07-19T15:50:59.000Z
# coding: UTF-8 # 九九を求める def kuku(MaxValue): max = MaxValue + 1 val = 0 for i in range(1, max): for j in range(1, max): val = i * j print('%3d') % (val), print('') print('九九を求める -日本式-') kuku(9) print('九九を求める -インド式-') kuku(20)
12.2
25
0.561475
4d30499daa228825ba43bfcf6a18e91eb4799985
4,436
py
Python
sigse2015winter/lifetime_and_commit_frequency/tc_lifetime_frequency_getter.py
hideshis/scripts_for_research
f633bdef0f9b959d7b18c8b95f169306eb8bb50d
[ "MIT" ]
null
null
null
sigse2015winter/lifetime_and_commit_frequency/tc_lifetime_frequency_getter.py
hideshis/scripts_for_research
f633bdef0f9b959d7b18c8b95f169306eb8bb50d
[ "MIT" ]
null
null
null
sigse2015winter/lifetime_and_commit_frequency/tc_lifetime_frequency_getter.py
hideshis/scripts_for_research
f633bdef0f9b959d7b18c8b95f169306eb8bb50d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re import sys import csv import os.path import os import datetime import subprocess import numpy """ # average def commit_frequency_getter(tc, num_of_times_of_commit, commit_date_list): flag = 0 lifetime_sum = 0 for commit_date in commit_date_list: if flag == 0: ...
36.065041
108
0.685528
a8f27fcc5085ff62b105b1c1fba9aa987624efff
29,779
gyp
Python
chromium/chromeos/chromeos.gyp
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
null
null
null
chromium/chromeos/chromeos.gyp
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
null
null
null
chromium/chromeos/chromeos.gyp
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, # These files lists are shared with the GN build. 'chromeos_sources': [ 'accelerometer/accelerom...
39.131406
94
0.671379
5f70b0fc3dd16d5d7b1c23e818e3a0f79dba14a6
557
py
Python
catkin_ws/build/aruco_ros/aruco_msgs/catkin_generated/pkg.develspace.context.pc.py
filesmuggler/ur3e-ird435-rg2
93d5bd72aa35ae5fd104c9e6021d7537e1739772
[ "MIT" ]
1
2021-04-01T09:54:30.000Z
2021-04-01T09:54:30.000Z
catkin_ws/build/aruco_ros/aruco_msgs/catkin_generated/pkg.develspace.context.pc.py
filesmuggler/ur3e-ird435-rg2
93d5bd72aa35ae5fd104c9e6021d7537e1739772
[ "MIT" ]
1
2020-09-30T03:58:47.000Z
2020-09-30T03:58:47.000Z
catkin_ws/build/aruco_ros/aruco_msgs/catkin_generated/pkg.develspace.context.pc.py
filesmuggler/ur3e-ird435-rg2
93d5bd72aa35ae5fd104c9e6021d7537e1739772
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/krzysztof/Repos/ur3e-ird435-rg2/catkin_ws/devel/include".split(';') if "/home/krzysztof/Repos/ur3e-ird435-rg2/catkin_ws/devel/include" != "" else [] PROJECT_CATKIN_DEPENDS = "message_runtime;geom...
61.888889
189
0.759425
c5042ebf9b88433f4d3f5a2e4381c0caf3fd4122
6,052
py
Python
examples/Scenario_2.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
examples/Scenario_2.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
examples/Scenario_2.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
# This scenario uses the presented template to realize a realistic set of actions, including different benign and # malicious users import time import logging import hashlib import subprocess import random import os from datetime import date try: from fortrace.core.vmm import Vmm from fortrace.utility.logger...
33.071038
121
0.625578
437575c7b5f72de5ca371dc84af18cad0f4fa9e9
4,164
py
Python
coursebuilder/modules/programming_assignments/test_run.py
nptel-ac-in/seek
2bca9d64499e160b2da9bed6e97fcda712feec72
[ "Apache-2.0" ]
null
null
null
coursebuilder/modules/programming_assignments/test_run.py
nptel-ac-in/seek
2bca9d64499e160b2da9bed6e97fcda712feec72
[ "Apache-2.0" ]
null
null
null
coursebuilder/modules/programming_assignments/test_run.py
nptel-ac-in/seek
2bca9d64499e160b2da9bed6e97fcda712feec72
[ "Apache-2.0" ]
2
2020-09-29T17:04:18.000Z
2021-05-13T07:07:04.000Z
# 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 applicable law or ...
41.64
76
0.618156
ddc4eee86c8786f3d08bd1207ab3e605cdd0cc6c
849
py
Python
wxpython/dingtalker-gui/dingtalkapp/app.py
kancyframework/python-plugins
430d0f781b5669d8e6ad83f7af0782b672c43db5
[ "MIT" ]
1
2021-12-11T12:44:12.000Z
2021-12-11T12:44:12.000Z
wxpython/dingtalker-gui/dingtalkapp/app.py
kancyframework/python-plugins
430d0f781b5669d8e6ad83f7af0782b672c43db5
[ "MIT" ]
null
null
null
wxpython/dingtalker-gui/dingtalkapp/app.py
kancyframework/python-plugins
430d0f781b5669d8e6ad83f7af0782b672c43db5
[ "MIT" ]
null
null
null
import wx, gui import wxpythoner import dingtalker class AppFrame(gui.BaseMainFrame): def __init__(self, parent): super().__init__(parent) self.dingTalkClients.Set(dingtalker.getClientNames()) self.dingTalkClients.SetSelection(0) def sendDingMessage(self, event): clientName ...
29.275862
82
0.680801
b419ff4ac26dfd4e3a4e1f29baaf9b301174b2cd
7,233
py
Python
Z - Tool Box/x2john/dns/set.py
dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1
1dcf54522e9d20711ff1114550dc2893ed3e9ed0
[ "MIT" ]
1,290
2020-05-28T21:24:43.000Z
2022-03-31T16:38:43.000Z
Z - Tool Box/x2john/dns/set.py
asim06/Active-Directory-Exploitation-Cheat-Sheet
708f57c83aa99d80df22f4e50f21479a709fb359
[ "MIT" ]
1
2020-07-03T21:14:52.000Z
2020-07-03T21:14:52.000Z
Z - Tool Box/x2john/dns/set.py
asim06/Active-Directory-Exploitation-Cheat-Sheet
708f57c83aa99d80df22f4e50f21479a709fb359
[ "MIT" ]
280
2020-05-29T17:28:38.000Z
2022-03-31T13:54:15.000Z
# Copyright (C) 2003-2017 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND ...
27.819231
76
0.58952
e9b0bde55f548417acd788f5512a7a7b7b9d66df
6,470
py
Python
devp2p/tests/test_peer.py
anshulkusa/pyquarkchain
af80b6fdd331c69ce1bc801caf7c2cdd1e82a435
[ "MIT" ]
2
2018-11-03T11:34:07.000Z
2019-12-22T17:00:10.000Z
devp2p/tests/test_peer.py
anshulkusa/pyquarkchain
af80b6fdd331c69ce1bc801caf7c2cdd1e82a435
[ "MIT" ]
null
null
null
devp2p/tests/test_peer.py
anshulkusa/pyquarkchain
af80b6fdd331c69ce1bc801caf7c2cdd1e82a435
[ "MIT" ]
2
2018-10-25T04:46:09.000Z
2020-06-08T21:24:42.000Z
import platform import pytest from devp2p import peermanager, peer from devp2p import crypto from devp2p.app import BaseApp import devp2p.muxsession import rlp import devp2p.p2p_protocol import time import gevent import copy from quarkchain.rlp.utils import encode_hex, decode_hex, str_to_bytes def get_connected_app...
29.276018
155
0.647604
58bb77c0ed53c2a7446127fb2855630ae169c29b
2,012
py
Python
Bert/BIOtoJSON.py
Archaeoraptor/tools
36d09a66b552454a9bdfdb8aea32cd2b3822a899
[ "BSD-3-Clause" ]
1
2021-06-09T08:03:55.000Z
2021-06-09T08:03:55.000Z
Bert/BIOtoJSON.py
Archaeoraptor/tools
36d09a66b552454a9bdfdb8aea32cd2b3822a899
[ "BSD-3-Clause" ]
null
null
null
Bert/BIOtoJSON.py
Archaeoraptor/tools
36d09a66b552454a9bdfdb8aea32cd2b3822a899
[ "BSD-3-Clause" ]
1
2021-07-01T07:51:30.000Z
2021-07-01T07:51:30.000Z
import json def list_of_groups(init_list, children_list_len): """把一个列表按指定数目分成多个列表,children_list_len是你指定的子列表的长度""" list_of_groups = zip(*(iter(init_list),) * children_list_len) end_list = [list(i) for i in list_of_groups] count = len(init_list) % children_list_len end_list.append(init_list[-count:]...
30.484848
76
0.50994
dbac0eb9d1b1d0c9945b04419e69296669ddb6b9
4,666
py
Python
downstream/speech_commands/expert.py
amberww/s3prl
d74784f80da2b5a84e64ff445e583163d215a3f9
[ "MIT" ]
null
null
null
downstream/speech_commands/expert.py
amberww/s3prl
d74784f80da2b5a84e64ff445e583163d215a3f9
[ "MIT" ]
null
null
null
downstream/speech_commands/expert.py
amberww/s3prl
d74784f80da2b5a84e64ff445e583163d215a3f9
[ "MIT" ]
null
null
null
"""Downstream expert for Spoken Term Detection on Speech Commands.""" import re import os import hashlib from pathlib import Path from typing import List, Tuple, Union import torch import torch.nn as nn from torch.utils.data import DataLoader, WeightedRandomSampler from torch.nn.utils.rnn import pad_sequence from .m...
34.562963
90
0.647664
ffb72e8a955b8cc9c6505efebcc5d567207f3a51
7,435
py
Python
accelbyte_py_sdk/api/lobby/operations/notification/create_template.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/lobby/operations/notification/create_template.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/lobby/operations/notification/create_template.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
# Auto-generated at 2021-09-27T17:01:26.702000+08:00 # from: Justice Lobby Service (1.33.0) # Copyright (c) 2018 - 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # pylint: disable=duplicate-code # pylin...
29.387352
148
0.635642
5494ee2cd57f4a47858daf2a75a88126b5739d3c
6,311
py
Python
scripts/Qubit/TimeDomain/awg.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
scripts/Qubit/TimeDomain/awg.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
scripts/Qubit/TimeDomain/awg.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
class AwgProgram(object): sigma = 16 periods = 3 def __init__(self): self.final_string = ''' while (true) { playWave(p1, p2); waitWave(); wait(12); // Unit CLK CYCLES; Added to have gap between control and measure pulses setTrigger(0b0010); wait(measure_pulse_...
33.748663
123
0.573285
f911afc83677802ae43c8da6839f61053c212b09
2,477
py
Python
package_control/commands/remove_package_command.py
FichteForks/package_control
c9034102844456c9c69ef13ac159d59d0de29833
[ "Unlicense", "MIT" ]
null
null
null
package_control/commands/remove_package_command.py
FichteForks/package_control
c9034102844456c9c69ef13ac159d59d0de29833
[ "Unlicense", "MIT" ]
null
null
null
package_control/commands/remove_package_command.py
FichteForks/package_control
c9034102844456c9c69ef13ac159d59d0de29833
[ "Unlicense", "MIT" ]
null
null
null
import threading import time import sublime import sublime_plugin from ..show_error import show_error from .existing_packages_command import ExistingPackagesCommand from ..thread_progress import ThreadProgress from ..package_disabler import PackageDisabler from ..package_manager import PackageManager class RemovePa...
29.843373
78
0.661688
e5dba78510cd12984ae4a076c8903a84a00505e6
3,140
py
Python
core/models/modules/idwt.py
AK391/MobileStyleGAN.pytorch
42ceb7aa68d20de8e167d359332ddee0e1eee9b0
[ "Apache-2.0" ]
3
2021-05-07T18:11:37.000Z
2022-02-01T17:52:55.000Z
core/models/modules/idwt.py
AK391/MobileStyleGAN.pytorch
42ceb7aa68d20de8e167d359332ddee0e1eee9b0
[ "Apache-2.0" ]
null
null
null
core/models/modules/idwt.py
AK391/MobileStyleGAN.pytorch
42ceb7aa68d20de8e167d359332ddee0e1eee9b0
[ "Apache-2.0" ]
1
2021-08-04T16:35:14.000Z
2021-08-04T16:35:14.000Z
import torch import torch.nn as nn from pytorch_wavelets.dwt.lowlevel import * def _SFB2D(low, highs, g0_row, g1_row, g0_col, g1_col, mode): mode = int_to_mode(mode) lh, hl, hh = torch.unbind(highs, dim=2) lo = sfb1d(low, lh, g0_col, g1_col, mode=mode, dim=2) hi = sfb1d(hl, hh, g0_col, g1_col, mode=m...
36.091954
97
0.543949
540748b988f2fb4441115fc614c48fc6a20c2317
1,542
py
Python
snakemake/configs/mm10_SRP073116.py
saketkc/re-ribo-smk
c9326cbafdfa060e22e9af692d9146c37f5035ba
[ "BSD-2-Clause" ]
1
2019-09-11T17:09:48.000Z
2019-09-11T17:09:48.000Z
snakemake/configs/mm10_SRP073116.py
saketkc/re-ribo-smk
c9326cbafdfa060e22e9af692d9146c37f5035ba
[ "BSD-2-Clause" ]
null
null
null
snakemake/configs/mm10_SRP073116.py
saketkc/re-ribo-smk
c9326cbafdfa060e22e9af692d9146c37f5035ba
[ "BSD-2-Clause" ]
null
null
null
RAWDATA_DIR = '/staging/as/skchoudh/re-ribo-datasets/mm10/SRP073116' OUT_DIR = '/staging/as/skchoudh/re-ribo-analysis/mm10/SRP073116' GENOME_FASTA = '/home/cmb-06/as/skchoudh/genomes/mm10/fasta/Mus_musculus.GRCm38.dna.primary_assembly.fa' CHROM_SIZES = '/home/cmb-06/as/skchoudh/genomes/mm10/fasta/Mus_musculus.GRCm38.dn...
81.157895
120
0.808042
688bda16e2d6e2bb2b94597b7ebec84b92b00cf1
2,378
py
Python
instagrabber/admin.py
atiberghien/instagrabber
785b96beec62602bd5000d0a6b8edbaaf66551b6
[ "MIT" ]
null
null
null
instagrabber/admin.py
atiberghien/instagrabber
785b96beec62602bd5000d0a6b8edbaaf66551b6
[ "MIT" ]
null
null
null
instagrabber/admin.py
atiberghien/instagrabber
785b96beec62602bd5000d0a6b8edbaaf66551b6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from django import forms from django.utils.safestring import mark_safe from .models import InstaUser, InstaPicture, InstaConfig class SingletonModelAdmin(admin.ModelAdmin): actions = None def has_delete_permissi...
30.487179
142
0.626577
3070f038990acc95c13ac48a83d6ca5a650b39fb
2,081
py
Python
schemes/admin.py
slunzok/papersoccer
4549877de3b65bea5777e33654b2b5b3a50a37d8
[ "MIT" ]
1
2018-05-05T19:08:16.000Z
2018-05-05T19:08:16.000Z
schemes/admin.py
slunzok/papersoccer
4549877de3b65bea5777e33654b2b5b3a50a37d8
[ "MIT" ]
null
null
null
schemes/admin.py
slunzok/papersoccer
4549877de3b65bea5777e33654b2b5b3a50a37d8
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import KurnikReplay, UserReplay, SchemeDirectory, Scheme, ReplayDirectory, Replay, \ Profile, Entry, Comment, Notification, KurnikRanking class KurnikReplayAdmin(admin.ModelAdmin): list_display = ('name', 'player1', 'player2') class UserReplayAdmin(admin.ModelAdm...
40.803922
118
0.750601
fdccfb1920b4d1ddebbdb81b10312dbd395ee188
4,678
py
Python
kiva_org/loans_bigquery.py
katekimani/serverless_pipelines
3c6ca5dac7aa7479074a9850cb64516a5c64ae3d
[ "Apache-2.0" ]
null
null
null
kiva_org/loans_bigquery.py
katekimani/serverless_pipelines
3c6ca5dac7aa7479074a9850cb64516a5c64ae3d
[ "Apache-2.0" ]
3
2021-02-08T20:28:12.000Z
2021-06-01T23:21:56.000Z
kiva_org/loans_bigquery.py
katekimani/serverless_pipelines
3c6ca5dac7aa7479074a9850cb64516a5c64ae3d
[ "Apache-2.0" ]
1
2019-02-16T08:43:12.000Z
2019-02-16T08:43:12.000Z
from __future__ import absolute_import import argparse import csv import logging import apache_beam as beam from apache_beam.metrics.metric import Metrics from apache_beam.options.pipeline_options import PipelineOptions from apache_beam.options.pipeline_options import SetupOptions from apache_beam.options.pipeline_op...
36.263566
141
0.603035
e308a1e98ee9236c853a407bbec98ef10cae8e98
157
py
Python
zpylib/stats.py
zkurtz/kaggle_malware_2019
72465b2f5d5f49d1acefa9b4f6b06df2aa53e4a8
[ "MIT" ]
null
null
null
zpylib/stats.py
zkurtz/kaggle_malware_2019
72465b2f5d5f49d1acefa9b4f6b06df2aa53e4a8
[ "MIT" ]
null
null
null
zpylib/stats.py
zkurtz/kaggle_malware_2019
72465b2f5d5f49d1acefa9b4f6b06df2aa53e4a8
[ "MIT" ]
null
null
null
from sklearn import metrics def auc(df): fpr, tpr, _ = metrics.roc_curve(df.truth.values, df.pred.values, pos_label=1) return metrics.auc(fpr, tpr)
26.166667
81
0.713376
a0101f14b2df63c14af7119b436e5b3f4ad7d94c
6,025
py
Python
src/BaseSpacePy/api/AuthenticationAPI.py
ktmeaton/basespace-python3-sdk
7209517f213e626bf9b227a781de1bf8eee9f88e
[ "Apache-2.0" ]
null
null
null
src/BaseSpacePy/api/AuthenticationAPI.py
ktmeaton/basespace-python3-sdk
7209517f213e626bf9b227a781de1bf8eee9f88e
[ "Apache-2.0" ]
null
null
null
src/BaseSpacePy/api/AuthenticationAPI.py
ktmeaton/basespace-python3-sdk
7209517f213e626bf9b227a781de1bf8eee9f88e
[ "Apache-2.0" ]
null
null
null
import sys import time import getpass import os import requests # this tries to clean up the output at the expense of letting the user know they're in an insecure context... try: requests.packages.urllib3.disable_warnings() except: pass import logging import six from six.moves import input from six.moves im...
35.441176
116
0.638174
22a81dc9be2bf096974c06240c45520e3c23ddc5
556
py
Python
molecule/default/tests/test_default.py
dubzland/ansible-role-minio
5e99964fa5af5fd6254880ae516749d0db30095a
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
dubzland/ansible-role-minio
5e99964fa5af5fd6254880ae516749d0db30095a
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
dubzland/ansible-role-minio
5e99964fa5af5fd6254880ae516749d0db30095a
[ "MIT" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE'] ).get_hosts('all') def test_minio_user(host): u = host.user('minio') assert u.name == 'minio' assert u.group == 'minio' def test_minio_data_director...
20.592593
63
0.696043
2513ef4077e6588be6dfb466cb9c0ac47de2fa53
5,382
py
Python
models/gcn/encoder.py
kangkang59812/GCNCaption
25314dbf17e67fe0b39acae554f99817e8f02be1
[ "BSD-3-Clause" ]
null
null
null
models/gcn/encoder.py
kangkang59812/GCNCaption
25314dbf17e67fe0b39acae554f99817e8f02be1
[ "BSD-3-Clause" ]
null
null
null
models/gcn/encoder.py
kangkang59812/GCNCaption
25314dbf17e67fe0b39acae554f99817e8f02be1
[ "BSD-3-Clause" ]
null
null
null
from torch.nn import functional as F import torch from torch import nn from torch_geometric.nn import GraphConv as GCNConv from .relation import Relationshipness class RelationEncoder(nn.Module): def __init__(self, padding_idx=0, d_in=2048, d_model=512, box_dim=8, dropout=0.1, rela_threshold=0.6, use_relaAtt=True...
38.170213
138
0.542549
3c3253220454beb38e305b08f9b3577ee8f4dfed
2,053
py
Python
docker/hyperzoo/image_classification_and_object_detection_quick_start.py
limn2o4/analytics-zoo
78d6ce10976a7e1320ff5ebdf431db93a439ec56
[ "Apache-2.0" ]
2,970
2017-06-08T00:24:43.000Z
2022-03-30T12:14:55.000Z
docker/hyperzoo/image_classification_and_object_detection_quick_start.py
limn2o4/analytics-zoo
78d6ce10976a7e1320ff5ebdf431db93a439ec56
[ "Apache-2.0" ]
3,530
2017-05-09T08:29:10.000Z
2022-03-21T02:11:45.000Z
docker/hyperzoo/image_classification_and_object_detection_quick_start.py
limn2o4/analytics-zoo
78d6ce10976a7e1320ff5ebdf431db93a439ec56
[ "Apache-2.0" ]
972
2017-05-09T07:03:50.000Z
2022-03-23T07:48:48.000Z
# # Copyright 2018 Analytics Zoo 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 or agreed to...
31.584615
78
0.651729
c24928d6c7753b8ed6d23502e731a3bf05ee3e2a
187
bzl
Python
example_git_repository_locked/LOCKFILE.bzl
fenollp/bazel_lock
bc5f8edeb5523502552c2f11221e2b8b38e92c1a
[ "Apache-2.0" ]
null
null
null
example_git_repository_locked/LOCKFILE.bzl
fenollp/bazel_lock
bc5f8edeb5523502552c2f11221e2b8b38e92c1a
[ "Apache-2.0" ]
null
null
null
example_git_repository_locked/LOCKFILE.bzl
fenollp/bazel_lock
bc5f8edeb5523502552c2f11221e2b8b38e92c1a
[ "Apache-2.0" ]
null
null
null
locked = {} locked["git_repository> 0.8.0 https://github.com/bazelbuild/bazel-skylib.git "] = {"commit": "3721d32c14d3639ff94320c780a60a6e658fb033", "shallow_since": "1553102012 +0100"}
62.333333
174
0.748663
2f325e81496b5ea464d52826b97526e6e4850568
1,482
py
Python
ultron8/api/api_v1/endpoints/token.py
bossjones/ultron8
45db73d32542a844570d44bc83defa935e15803f
[ "Apache-2.0", "MIT" ]
null
null
null
ultron8/api/api_v1/endpoints/token.py
bossjones/ultron8
45db73d32542a844570d44bc83defa935e15803f
[ "Apache-2.0", "MIT" ]
43
2019-06-01T23:08:32.000Z
2022-02-07T22:24:53.000Z
ultron8/api/api_v1/endpoints/token.py
bossjones/ultron8
45db73d32542a844570d44bc83defa935e15803f
[ "Apache-2.0", "MIT" ]
null
null
null
from datetime import timedelta from fastapi import APIRouter, Depends, HTTPException from fastapi.security import OAuth2PasswordRequestForm from sqlalchemy.orm import Session from ultron8.api import crud, settings from ultron8.api.core.jwt import create_access_token from ultron8.api.core.security import get_password_...
32.217391
83
0.751012
d8a49ecd1ef174096bbcd57001eb95d2260aecbf
237
py
Python
src/pyqt4/formextractor/formextractor.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
1
2020-02-17T08:18:29.000Z
2020-02-17T08:18:29.000Z
src/pyqt4/formextractor/formextractor.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/pyqt4/formextractor/formextractor.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui_formextractor.ui' # # Created: Mon Oct 17 01:15:50 2011 # by: PyQt4 UI code generator 4.8.5 # # WARNING! All changes made in this file will be lost!
23.7
74
0.687764
442ac5d29c264fb891c478edfb93d27faeb2e32b
134,096
py
Python
edb/pgsql/delta.py
tailhook/edgedb
655230a20a6b728fe18bfe36876bb4fb918bb4d8
[ "Apache-2.0" ]
null
null
null
edb/pgsql/delta.py
tailhook/edgedb
655230a20a6b728fe18bfe36876bb4fb918bb4d8
[ "Apache-2.0" ]
null
null
null
edb/pgsql/delta.py
tailhook/edgedb
655230a20a6b728fe18bfe36876bb4fb918bb4d8
[ "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...
36.008593
79
0.579413
1d3b75adebb6a8c94d9721352e7bb40e38b15e81
1,244
py
Python
k3rn3l-ctf-2021/poly-proof/get_data.py
AZ-0/Writeups
1420a51cbf55dae9ffd6d458aac6dec03aad6f1c
[ "MIT" ]
null
null
null
k3rn3l-ctf-2021/poly-proof/get_data.py
AZ-0/Writeups
1420a51cbf55dae9ffd6d458aac6dec03aad6f1c
[ "MIT" ]
null
null
null
k3rn3l-ctf-2021/poly-proof/get_data.py
AZ-0/Writeups
1420a51cbf55dae9ffd6d458aac6dec03aad6f1c
[ "MIT" ]
null
null
null
from pwn import remote from math import gcd from tqdm import tqdm def to_base(n, b): repr = [] while n: repr.append(n % b) n //= b return repr base = (b'\1' + b'\0'*20).decode() print(f'{base = }') with open('save.txt', 'r') as file: commits = eval(file.read()) ...
20.733333
92
0.504823
39721c4db58bd6c153bc4d23f9e7d58a8f59adb3
52
py
Python
src/titiler/core/titiler/core/version.py
i4works/titiler
2335048a407f17127099cbbc6c14e1328852d619
[ "MIT" ]
288
2019-12-05T18:19:51.000Z
2022-03-31T16:43:18.000Z
src/titiler/core/titiler/core/version.py
i4works/titiler
2335048a407f17127099cbbc6c14e1328852d619
[ "MIT" ]
228
2020-03-26T13:48:05.000Z
2022-03-31T20:16:55.000Z
src/titiler/core/titiler/core/version.py
i4works/titiler
2335048a407f17127099cbbc6c14e1328852d619
[ "MIT" ]
73
2020-04-29T13:49:35.000Z
2022-03-25T13:09:16.000Z
"""titiler.core version.""" __version__ = "0.3.12"
13
27
0.634615
4584e7ed0b1cd87a754cbc97eb42b386faeaa810
3,241
py
Python
bin/resize.py
Sinan81/blessed
8db97e93e95f0e97085051c37a756a1a60cd375e
[ "MIT" ]
null
null
null
bin/resize.py
Sinan81/blessed
8db97e93e95f0e97085051c37a756a1a60cd375e
[ "MIT" ]
null
null
null
bin/resize.py
Sinan81/blessed
8db97e93e95f0e97085051c37a756a1a60cd375e
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Determines and prints COLUMNS and LINES of the attached window width. A strange problem: programs that perform screen addressing incorrectly determine the screen margins. Calls to reset(1) do not resolve the issue. This may often happen because the transport is incapable of communicating th...
37.686047
78
0.710275
d5eb239f6fdf43387ff7709e734e252717b2a0f8
11,835
py
Python
4gram.py
mcvenkat/Python-Programs
2ff66bbd5b07c8e093b11360e1dcac06740a5024
[ "CC0-1.0", "MIT" ]
1
2015-11-08T05:19:43.000Z
2015-11-08T05:19:43.000Z
microsoft malware/code/4gram.py
bikash/kaggleCompetition
c168f5a713305f6cf6ef41db60d8b1f4cdceb2b1
[ "Apache-2.0" ]
5
2020-05-22T14:10:02.000Z
2022-03-25T19:13:05.000Z
4gram.py
mcvenkat/Python-Programs
2ff66bbd5b07c8e093b11360e1dcac06740a5024
[ "CC0-1.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 18 01:55:47 2015 @author: marios michailidis """ # licence: FreeBSD """ Copyright (c) 2015, Marios Michailidis All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditi...
34.008621
171
0.585636
861ebfb5367ac7d4e1ac191a19e05f361588e3c0
6,928
py
Python
twitch-tweaks.py
psukys/twitch-tweaks
ea4cc911b7faaac837c3cd4d2d47a02e49598f98
[ "MIT" ]
null
null
null
twitch-tweaks.py
psukys/twitch-tweaks
ea4cc911b7faaac837c3cd4d2d47a02e49598f98
[ "MIT" ]
null
null
null
twitch-tweaks.py
psukys/twitch-tweaks
ea4cc911b7faaac837c3cd4d2d47a02e49598f98
[ "MIT" ]
null
null
null
"""The MIT License (MIT). Copyright (c) 2013 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, publish, dis...
33.468599
156
0.693851
525e30fd196e96b047820029165262018576f867
2,182
py
Python
tests/models/test_weights.py
bonlime/pytorch-tools
46fceaba823a613171efdb91436a8357b492af5e
[ "MIT" ]
155
2019-11-06T14:05:32.000Z
2022-03-24T11:12:19.000Z
tests/models/test_weights.py
bonlime/pytorch-tools
46fceaba823a613171efdb91436a8357b492af5e
[ "MIT" ]
41
2019-11-01T21:41:51.000Z
2021-07-19T12:53:39.000Z
tests/models/test_weights.py
bonlime/pytorch-tools
46fceaba823a613171efdb91436a8357b492af5e
[ "MIT" ]
15
2019-12-07T19:09:18.000Z
2021-09-27T19:17:55.000Z
## test that imagenet pretrained weights are valid and able to classify correctly the cat and dog import torch import pytest import numpy as np from PIL import Image from pytorch_tools.utils.preprocessing import get_preprocessing_fn from pytorch_tools.utils.visualization import tensor_from_rgb_image import pytorch_to...
27.620253
120
0.692026
d9822e184b454b18dadf7ce3a490dffa274df565
60,560
py
Python
allennlp_semparse/domain_languages/domain_language.py
nitishgupta/allennlp-semparse
0315b59df482c27ad36808cf7a992f01e07e36b1
[ "Apache-2.0" ]
105
2019-08-28T14:16:31.000Z
2022-03-26T20:51:22.000Z
allennlp_semparse/domain_languages/domain_language.py
nitishgupta/allennlp-semparse
0315b59df482c27ad36808cf7a992f01e07e36b1
[ "Apache-2.0" ]
44
2019-09-09T20:52:40.000Z
2022-03-28T03:04:38.000Z
allennlp_semparse/domain_languages/domain_language.py
nitishgupta/allennlp-semparse
0315b59df482c27ad36808cf7a992f01e07e36b1
[ "Apache-2.0" ]
19
2019-09-09T17:34:27.000Z
2021-09-08T08:22:08.000Z
from collections import defaultdict from typing import Any, Callable, Dict, List, Optional, Sequence, Set, Tuple, Type, Union import inspect import logging import sys import traceback import types from nltk import Tree from allennlp.common.util import START_SYMBOL from allennlp_semparse.common import util, ParsingEr...
53.926981
113
0.641083
bf4f569d5d6819e853578c2bb8ee0f6e7bdcdb10
709
py
Python
contrib/seeds/makeseeds.py
henrbren/BIC
0421b51b431ee4d45a30ab0f1ec951a3329b6172
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
henrbren/BIC
0421b51b431ee4d45a30ab0f1ec951a3329b6172
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
henrbren/BIC
0421b51b431ee4d45a30ab0f1ec951a3329b6172
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Generate pnSeed[] from Pieter's DNS seeder # NSEEDS=600 import re import sys from subprocess import check_output def main(): lines = sys.stdin.readlines() ips = [] pattern = re.compile(r"^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3}):32223") for line in lines: m = patt...
21.484848
78
0.509168
4a2d6c1b3e1f33b9964819cad20d060e203a11c9
782
py
Python
features/steps/test_starter/{{ cookiecutter.repo_name }}/src/{{ cookiecutter.python_package }}/pipelines/data_science/pipeline.py
aagaard/kedro
90aae2b9c6f788ff298458b258e7673f1b2d5107
[ "Apache-2.0" ]
1
2021-11-25T12:33:13.000Z
2021-11-25T12:33:13.000Z
features/steps/test_starter/{{ cookiecutter.repo_name }}/src/{{ cookiecutter.python_package }}/pipelines/data_science/pipeline.py
simonpicard/kedro
94521748c1b06ab925caa432c7ccb2c454665915
[ "Apache-2.0" ]
null
null
null
features/steps/test_starter/{{ cookiecutter.repo_name }}/src/{{ cookiecutter.python_package }}/pipelines/data_science/pipeline.py
simonpicard/kedro
94521748c1b06ab925caa432c7ccb2c454665915
[ "Apache-2.0" ]
null
null
null
"""Example code for the nodes in the example pipeline. This code is meant just for illustrating basic Kedro features. Delete this when you start working on your own Kedro project. """ from kedro.pipeline import Pipeline, node from .nodes import predict, report_accuracy, train_model def create_pipeline(**kwargs): ...
27.928571
83
0.589514
b8000e4813ebfdc13b22336afe3156357c0a8b96
1,911
py
Python
sentry_cardinal/interfaces.py
causes/sentry_cardinal
69e1135b4e09bc542f1438759d5dbb505c79ea14
[ "MIT" ]
3
2015-09-24T19:50:37.000Z
2018-01-18T11:05:01.000Z
sentry_cardinal/interfaces.py
causes/sentry_cardinal
69e1135b4e09bc542f1438759d5dbb505c79ea14
[ "MIT" ]
null
null
null
sentry_cardinal/interfaces.py
causes/sentry_cardinal
69e1135b4e09bc542f1438759d5dbb505c79ea14
[ "MIT" ]
null
null
null
import sentry.interfaces from sentry.web.helpers import render_to_string class Stacktrace(sentry.interfaces.Stacktrace): score = 1000 def get_hash(self): output = [] for frame in self.frames: if frame.get('module'): output.append(frame['module']) ...
34.745455
148
0.505495
7c512b05f063c9b0ae4fda240ec4fc236315ca27
1,674
py
Python
Build a Discord Bot using Replit/main.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-05T14:30:34.000Z
2021-07-05T14:30:34.000Z
Build a Discord Bot using Replit/main.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-02T15:36:02.000Z
2021-07-02T15:37:25.000Z
Build a Discord Bot using Replit/main.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-02T15:15:17.000Z
2021-07-02T15:15:17.000Z
import discord import os from keep_alive import keep_alive from discord.ext import commands client = discord.Client() @client.event async def on_ready(): print('We have logged in as {0.user}'.format(client)) @client.event async def on_message(message): if message.author == client.user: return if...
31.584906
142
0.681601
4b05b6be8e466b09b64687dd3040121e2057efe0
39
py
Python
$pyhton.py
kural82/mastering-git-august
1ecae994a9013bb99c6f4aa9b7f5b6ea04d44e9d
[ "Apache-2.0" ]
null
null
null
$pyhton.py
kural82/mastering-git-august
1ecae994a9013bb99c6f4aa9b7f5b6ea04d44e9d
[ "Apache-2.0" ]
null
null
null
$pyhton.py
kural82/mastering-git-august
1ecae994a9013bb99c6f4aa9b7f5b6ea04d44e9d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/phython print("Hello World")
19.5
20
0.717949
28b643129823a15d41e07d3815dbb7f005ee37cb
4,694
py
Python
Trabalhos-IA/T2-Othello/exercicios_de_aula_minimax/ex_alphabeta_pruning_limited_exercise.py
lucsmelo/INF01048-IA
25901f206b20d8916f9170b703e533d40685ca0f
[ "MIT" ]
null
null
null
Trabalhos-IA/T2-Othello/exercicios_de_aula_minimax/ex_alphabeta_pruning_limited_exercise.py
lucsmelo/INF01048-IA
25901f206b20d8916f9170b703e533d40685ca0f
[ "MIT" ]
null
null
null
Trabalhos-IA/T2-Othello/exercicios_de_aula_minimax/ex_alphabeta_pruning_limited_exercise.py
lucsmelo/INF01048-IA
25901f206b20d8916f9170b703e533d40685ca0f
[ "MIT" ]
1
2021-12-14T22:22:57.000Z
2021-12-14T22:22:57.000Z
from minimax_alphabeta_pruning_limited import decisao, _MAX_DEPTH # Quiz da semana 3: # https://moodle.inf.ufrgs.br/mod/quiz/view.php?id=100630 A = { 'label': 'A', 'visited': False, 'is_terminal': False, 'heuristic': 8, # Perfect heuristic, using the value that would be chosen considering children }...
22.246445
117
0.575415
798bece116dad4053d09d54feeb22853399c7e8f
607
py
Python
vulcanmodeling/webgme/base/model.py
vulcan-collaboration/vulcanmodeling
b70c93368f52c5e439a17e1315b7014ed9765484
[ "MIT" ]
null
null
null
vulcanmodeling/webgme/base/model.py
vulcan-collaboration/vulcanmodeling
b70c93368f52c5e439a17e1315b7014ed9765484
[ "MIT" ]
null
null
null
vulcanmodeling/webgme/base/model.py
vulcan-collaboration/vulcanmodeling
b70c93368f52c5e439a17e1315b7014ed9765484
[ "MIT" ]
null
null
null
from pymongo.errors import DuplicateKeyError from ming.odm import FieldProperty from vulcanforge.artifact.model import Artifact class VulcanGMEProject(Artifact): class __mongometa__: name = "gme_project" unique_indexes = ['name', 'app'] name = FieldProperty(str) app = FieldProperty(str) ...
26.391304
59
0.668863
b50cc7108aa81fc5bbc1efb1a56010e93217736a
85
py
Python
src/config/definitions.py
jonas-mika/ml-project
c052c33010033cd9fd596eb5ac4d270d1bf98ee3
[ "MIT" ]
null
null
null
src/config/definitions.py
jonas-mika/ml-project
c052c33010033cd9fd596eb5ac4d270d1bf98ee3
[ "MIT" ]
null
null
null
src/config/definitions.py
jonas-mika/ml-project
c052c33010033cd9fd596eb5ac4d270d1bf98ee3
[ "MIT" ]
1
2022-01-29T17:23:15.000Z
2022-01-29T17:23:15.000Z
import os ROOT_DIR = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))
28.333333
74
0.717647
15f63bb989ab29ff10465fbd4d273dead4bba8e7
1,048
py
Python
website/rentals/models/issuance_loan.py
JobDoesburg/landolfio
4cbf31c2e6f93745f5aa0d20893bf20f3acecc6e
[ "MIT" ]
1
2021-02-24T14:33:09.000Z
2021-02-24T14:33:09.000Z
website/rentals/models/issuance_loan.py
JobDoesburg/landolfio
4cbf31c2e6f93745f5aa0d20893bf20f3acecc6e
[ "MIT" ]
2
2022-01-13T04:03:38.000Z
2022-03-12T01:03:10.000Z
website/rentals/models/issuance_loan.py
JobDoesburg/landolfio
4cbf31c2e6f93745f5aa0d20893bf20f3acecc6e
[ "MIT" ]
null
null
null
from django.db import models from django.db.models import PROTECT from asset_events.models import StatusChangingEvent, MultiAssetEvent from assets.models import Asset from moneybird_accounting.models import Contact class SingleAssetLoan(StatusChangingEvent): class Meta: verbose_name = "asset loan" ...
28.324324
85
0.725191
9a7e66d54c1ea5d025763d6098f87c5932b56a93
5,125
py
Python
media_linker.py
jonmon6691/media_index_tools
d6a4a8bfe0f3915b6fb76969f612cfbd11801221
[ "MIT" ]
null
null
null
media_linker.py
jonmon6691/media_index_tools
d6a4a8bfe0f3915b6fb76969f612cfbd11801221
[ "MIT" ]
null
null
null
media_linker.py
jonmon6691/media_index_tools
d6a4a8bfe0f3915b6fb76969f612cfbd11801221
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ WARNING: This is a pile of shit """ # I made this to do a bulk job ONCE. no attempt at usability or generality # "Your AI is just a bunch of if statements" -Anonymous __usage__ = """ cat tags.csv | ./media_linker.py > links.sh """ import sys import csv import os import re from colle...
31.060606
109
0.547512
4dc0b71678c80230ba1d8e9ae8c8f4db4712f46a
1,996
py
Python
Lib/site-packages/django/contrib/gis/gdal/error.py
ashutoshsuman99/Web-Blog-D19
a01a0ccc40e8823110c01ebe4f43d9351df57295
[ "bzip2-1.0.6" ]
123
2015-01-15T06:56:45.000Z
2022-03-19T22:18:55.000Z
Lib/site-packages/django/contrib/gis/gdal/error.py
ashutoshsuman99/Web-Blog-D19
a01a0ccc40e8823110c01ebe4f43d9351df57295
[ "bzip2-1.0.6" ]
68
2016-12-12T20:38:47.000Z
2020-07-26T18:28:49.000Z
Lib/site-packages/django/contrib/gis/gdal/error.py
ashutoshsuman99/Web-Blog-D19
a01a0ccc40e8823110c01ebe4f43d9351df57295
[ "bzip2-1.0.6" ]
120
2016-08-18T14:53:03.000Z
2020-06-16T13:27:20.000Z
""" This module houses the GDAL & SRS Exception objects, and the check_err() routine which checks the status code returned by GDAL/OGR methods. """ # #### GDAL & SRS Exceptions #### class GDALException(Exception): pass # Legacy name OGRException = GDALException class SRSException(Exception): pass cla...
26.613333
75
0.667836
c62a02c6f458888dac2187cd6bd70111f3e84411
3,341
py
Python
jiant/tasks/lib/rte.py
dumpmemory/jiant
f9e0e7c9ecf88da0c26559c5f903aef0338c7bd9
[ "MIT" ]
1,108
2019-04-22T09:19:19.000Z
2022-03-31T13:23:51.000Z
jiant/tasks/lib/rte.py
dumpmemory/jiant
f9e0e7c9ecf88da0c26559c5f903aef0338c7bd9
[ "MIT" ]
737
2019-04-22T14:30:36.000Z
2022-03-31T22:22:17.000Z
jiant/tasks/lib/rte.py
dumpmemory/jiant
f9e0e7c9ecf88da0c26559c5f903aef0338c7bd9
[ "MIT" ]
273
2019-04-23T01:42:11.000Z
2022-03-25T15:59:38.000Z
import numpy as np import torch from dataclasses import dataclass from typing import List from jiant.tasks.core import ( BaseExample, BaseTokenizedExample, BaseDataRow, BatchMixin, GlueMixin, SuperGlueMixin, Task, TaskTypes, ) from jiant.tasks.lib.templates.shared import double_sentence...
28.07563
95
0.654594
c8a530e59071b3d73f05dd36c8fc9289a4644eec
37,705
py
Python
tests/unit/modules/test_zfs.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_zfs.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_zfs.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tests for salt.modules.zfs :codeauthor: Nitin Madhok <nmadhok@clemson.edu>, Jorge Schrauwen <sjorge@blackdot.be> :maintainer: Jorge Schrauwen <sjorge@blackdot.be> :maturity: new :depends: salt.utils.zfs :platform: illumos,freebsd,linux """ # Import Python libs from __...
34.402372
264
0.503647