hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79447be28526dcdd7e5a596d76eb4b32887b0abb
423
py
Python
tools/make_list_unique.py
JakubOnderka/misp-warninglists
78590f35269658cceb009d0fe282d5274e74ba89
[ "CC0-1.0" ]
18
2020-10-05T11:15:37.000Z
2022-01-06T08:01:59.000Z
tools/make_list_unique.py
JakubOnderka/misp-warninglists
78590f35269658cceb009d0fe282d5274e74ba89
[ "CC0-1.0" ]
1
2021-05-04T12:40:30.000Z
2021-05-04T12:40:30.000Z
tools/make_list_unique.py
JakubOnderka/misp-warninglists
78590f35269658cceb009d0fe282d5274e74ba89
[ "CC0-1.0" ]
8
2020-09-08T12:04:12.000Z
2022-01-29T12:18:54.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from pathlib import Path import json for p in Path('../lists/').glob('*/*.json'): with p.open() as _f: warninglist = json.load(_f, encoding="utf-8") warninglist['list'] = sorted(list(set(warninglist['list']))) with p.open('w') as _f: warning...
26.4375
94
0.614657
79447d4baf44e046698b3dc13e6c4f32a604d924
9,722
py
Python
graphtheory/structures/tests/test_graphs.py
mashal02/graphs-dict
39917d8a7f3bdcd5d95f3549ca054d16ba535e90
[ "BSD-3-Clause" ]
36
2015-09-20T20:55:39.000Z
2021-09-20T05:49:03.000Z
graphtheory/structures/tests/test_graphs.py
mashal02/graphs-dict
39917d8a7f3bdcd5d95f3549ca054d16ba535e90
[ "BSD-3-Clause" ]
6
2016-03-25T21:41:46.000Z
2020-02-12T03:18:59.000Z
graphtheory/structures/tests/test_graphs.py
mashal02/graphs-dict
39917d8a7f3bdcd5d95f3549ca054d16ba535e90
[ "BSD-3-Clause" ]
9
2016-09-12T07:57:27.000Z
2022-03-21T16:15:39.000Z
#!/usr/bin/python import unittest from graphtheory.structures.edges import Edge from graphtheory.structures.graphs import Graph # A --o B # o / o # | / | # | o | # C --o D class TestGraphDirected(unittest.TestCase): def setUp(self): self.N = 4 # number of nodes self.G = Graph(sel...
33.993007
73
0.55215
79447d975c6669f51bb15d7a9140a2045ccd9224
36,756
py
Python
recipe_engine/recipe_api.py
Acidburn0zzz/luci
d8993f4684839b58f5f966dd6273d1d8fd001eae
[ "Apache-2.0" ]
1
2021-04-24T04:03:01.000Z
2021-04-24T04:03:01.000Z
recipe_engine/recipe_api.py
Acidburn0zzz/luci
d8993f4684839b58f5f966dd6273d1d8fd001eae
[ "Apache-2.0" ]
null
null
null
recipe_engine/recipe_api.py
Acidburn0zzz/luci
d8993f4684839b58f5f966dd6273d1d8fd001eae
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. from __future__ import absolute_import import bisect import contextlib import copy import hashlib import inspect import json import keyword import...
32.672
80
0.69605
79447e67bdc5b9ee90f3d51f7c9e1acdd1cc4600
1,264
py
Python
SentinelUtilities/setup.py
itzdan/Azure-Sentinel-Notebooks
8798b27d8c721ad51cd48e376a24d43e59564ee9
[ "MIT" ]
null
null
null
SentinelUtilities/setup.py
itzdan/Azure-Sentinel-Notebooks
8798b27d8c721ad51cd48e376a24d43e59564ee9
[ "MIT" ]
null
null
null
SentinelUtilities/setup.py
itzdan/Azure-Sentinel-Notebooks
8798b27d8c721ad51cd48e376a24d43e59564ee9
[ "MIT" ]
null
null
null
""" Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. """ import setuptools INSTALL_REQUIRES = ['azure>=4.0.0'] #with open("README.rst", "r") as f: # long_description_text = f.read() with open("LICENSE.txt", "r...
31.6
72
0.684335
79447fcdb8f1064021152620bb180e2fb9552ea6
108
py
Python
Darlington/phase1/python Basic 1/day 6 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Darlington/phase1/python Basic 1/day 6 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Darlington/phase1/python Basic 1/day 6 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
#program to check whether a file exists import os.path open('abc.txt', 'w') print(os.path.isfile('abc.txt'))
27
39
0.722222
79447ffd5c267fa7508114fbb2d220cbda740c45
75,856
py
Python
pytition/petition/views.py
toshihidetagami/Pytition
3eedc40160d483b1d64a2a0afdbe3a0f6f7784c5
[ "BSD-3-Clause" ]
null
null
null
pytition/petition/views.py
toshihidetagami/Pytition
3eedc40160d483b1d64a2a0afdbe3a0f6f7784c5
[ "BSD-3-Clause" ]
null
null
null
pytition/petition/views.py
toshihidetagami/Pytition
3eedc40160d483b1d64a2a0afdbe3a0f6f7784c5
[ "BSD-3-Clause" ]
null
null
null
import csv from datetime import timedelta import os import urllib.parse import random from time import time from django.shortcuts import render, redirect from django.http import Http404, HttpResponse, HttpResponseForbidden, JsonResponse from django.conf import settings from django.core.exceptions import ValidationErro...
43.075525
157
0.651089
794481568f104cc993a427f27bcfc80e6aa2a559
3,546
py
Python
lektor/pagination.py
khashashin/StaticWebSieteLesson
5cc29b547b3db98dbcb4d0bd9a2aec0b7532774e
[ "BSD-3-Clause" ]
null
null
null
lektor/pagination.py
khashashin/StaticWebSieteLesson
5cc29b547b3db98dbcb4d0bd9a2aec0b7532774e
[ "BSD-3-Clause" ]
null
null
null
lektor/pagination.py
khashashin/StaticWebSieteLesson
5cc29b547b3db98dbcb4d0bd9a2aec0b7532774e
[ "BSD-3-Clause" ]
1
2020-09-22T04:18:18.000Z
2020-09-22T04:18:18.000Z
from math import ceil from lektor._compat import range_type class Pagination(object): def __init__(self, record, pagination_config): #: the pagination config self.config = pagination_config #: the current page's record self.current = record #: the current page number (1 i...
32.833333
79
0.532149
79448288ea4c621de509a0cce604a36b0c68804d
6,111
py
Python
docs/source/conf.py
dgc-network/dgc-sabre
f4a2530f50adfe75c32a318ff86042bc3d4ad044
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
dgc-network/dgc-sabre
f4a2530f50adfe75c32a318ff86042bc3d4ad044
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
dgc-network/dgc-sabre
f4a2530f50adfe75c32a318ff86042bc3d4ad044
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
29.955882
79
0.675503
794483c2550759c61a5785fe64f231e3cc87f874
10,652
py
Python
tests/parallel_tests/test_madweight.py
mfasDa/MadGraph5
9b90feda56d6209b81f74e61dc353a729886a4a5
[ "NCSA" ]
null
null
null
tests/parallel_tests/test_madweight.py
mfasDa/MadGraph5
9b90feda56d6209b81f74e61dc353a729886a4a5
[ "NCSA" ]
null
null
null
tests/parallel_tests/test_madweight.py
mfasDa/MadGraph5
9b90feda56d6209b81f74e61dc353a729886a4a5
[ "NCSA" ]
1
2021-07-06T08:19:27.000Z
2021-07-06T08:19:27.000Z
################################################################################ # # Copyright (c) 2009 The MadGraph Development team and Contributors # # This file is a part of the MadGraph 5 project, an application which # automatically generates Feynman diagrams and matrix elements for arbitrary # high-energy proce...
38.594203
165
0.573038
794483e9219878561871eeb85efab9de2d8655bf
4,701
py
Python
userbot/plugins/_inlinebot.py
SHER321/Us3rBot
252ba145dc04a04f27f866d1f7be5165dacc8e32
[ "MIT" ]
null
null
null
userbot/plugins/_inlinebot.py
SHER321/Us3rBot
252ba145dc04a04f27f866d1f7be5165dacc8e32
[ "MIT" ]
null
null
null
userbot/plugins/_inlinebot.py
SHER321/Us3rBot
252ba145dc04a04f27f866d1f7be5165dacc8e32
[ "MIT" ]
1
2022-03-30T22:01:02.000Z
2022-03-30T22:01:02.000Z
from math import ceil import asyncio import json import random import re from telethon import events, errors, custom from userbot import CMD_LIST import io if Var.TG_BOT_USER_NAME_BF_HER is not None and tgbot is not None: @tgbot.on(events.InlineQuery) # pylint:disable=E0602 async def inline_handler(event): ...
40.525862
124
0.598171
794483f05366960a0699274a35e54ba27117c49d
1,397
py
Python
setup.py
ensoft/enbackup
56d1ed48692269ecfa5799656f90f70663645e5f
[ "MIT" ]
null
null
null
setup.py
ensoft/enbackup
56d1ed48692269ecfa5799656f90f70663645e5f
[ "MIT" ]
null
null
null
setup.py
ensoft/enbackup
56d1ed48692269ecfa5799656f90f70663645e5f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # EnBackup setup file # from distutils.core import setup setup(name='enbackup', version="1.4.18", description='EnBackup: backup tools based on rdiff-backup', packages=['enbackup', 'enbackup.cmd'], package_dir={'': 'src'}, scripts=['bin/enbackup', 'b...
35.820513
65
0.486042
7944844931e0482a699d8ca6349a457538abaaa3
2,032
py
Python
scripts/ssm_get_default_params.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
scripts/ssm_get_default_params.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
1
2022-02-19T02:10:45.000Z
2022-02-19T02:15:52.000Z
scripts/ssm_get_default_params.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
import boto3 import json import os import subprocess import sure # noqa # pylint: disable=unused-import import time from moto.ssm.utils import convert_to_tree def retrieve_by_path(client, path): print(f"Retrieving all parameters from {path}. " f"AWS has around 14000 parameters, and we can only retriev...
32.774194
117
0.635827
79448468b24ccbb421050b5195e1e710cf3347e4
343
py
Python
src/common/decorators/http.py
yrrodriguezb/djangp_apps
7a0f85f65558e02d0707525b5d7f5bfa6caacb2d
[ "MIT" ]
null
null
null
src/common/decorators/http.py
yrrodriguezb/djangp_apps
7a0f85f65558e02d0707525b5d7f5bfa6caacb2d
[ "MIT" ]
null
null
null
src/common/decorators/http.py
yrrodriguezb/djangp_apps
7a0f85f65558e02d0707525b5d7f5bfa6caacb2d
[ "MIT" ]
null
null
null
from django.http import HttpResponseBadRequest def ajax_required(func): def wrap(request, *args, **kwargs): if not request.is_ajax(): return HttpResponseBadRequest('Request ajax required') return func(request, *args, **kwargs) wrap.__doc__ = func.__doc__ wrap.__name__ = func.__...
28.583333
66
0.685131
79448479d98fb3ef577de3f8384661a4091524e4
6,237
py
Python
run_model.py
stephenwithav/DexiNed
3bd8a79c6a6673d2c4e2d0f69b84b7796c924e3b
[ "MIT" ]
1
2020-08-07T12:07:33.000Z
2020-08-07T12:07:33.000Z
run_model.py
stephenwithav/DexiNed
3bd8a79c6a6673d2c4e2d0f69b84b7796c924e3b
[ "MIT" ]
null
null
null
run_model.py
stephenwithav/DexiNed
3bd8a79c6a6673d2c4e2d0f69b84b7796c924e3b
[ "MIT" ]
null
null
null
""" DexiNed main script This code is based on DexiNed (Dense Extreme Inception Network for Edge Detection), Please pay attention in the function config_model() to set any parameter before training or testing the model. """ __author__ = "Xavier Soria Poma, CVC-UAB" __email__ = "xsoria@cvc.uab.es / xavysp@gmail.com" __h...
47.25
142
0.700337
794485914143dac5eef9059c6bcb6f4c7f01e62e
12,080
py
Python
kettle/stream.py
qinqon/test-infra
d9fbec8e187788b04bf03d86939087cb11d801f8
[ "Apache-2.0" ]
null
null
null
kettle/stream.py
qinqon/test-infra
d9fbec8e187788b04bf03d86939087cb11d801f8
[ "Apache-2.0" ]
null
null
null
kettle/stream.py
qinqon/test-infra
d9fbec8e187788b04bf03d86939087cb11d801f8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2017 The Kubernetes 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 appli...
34.220963
97
0.629884
79448735a3813ebf4e6a793a4b9015ba8fb24018
4,698
py
Python
cmocl.py
psekan/cmocl
9d1ff3caa13a5079ba45e44daec0a2d2081057bd
[ "Apache-2.0" ]
2
2019-07-18T08:48:40.000Z
2020-07-26T20:39:34.000Z
cmocl.py
psekan/cmocl
9d1ff3caa13a5079ba45e44daec0a2d2081057bd
[ "Apache-2.0" ]
null
null
null
cmocl.py
psekan/cmocl
9d1ff3caa13a5079ba45e44daec0a2d2081057bd
[ "Apache-2.0" ]
null
null
null
import json import logging import requests class CMoCLError(Exception): """An error occurs""" pass class CMoCL: """Class for communication with CMoCL API""" PERIOD_DAY = "day" PERIOD_WEEK = "week" PERIOD_MONTH = "month" PERIOD_OCCASIONAL = "occasional" def __init__(self, url, api_k...
33.319149
113
0.52086
794487a36d67d7149e3deba16893716561440c8e
192
py
Python
djwebhooks/utils.py
joaoautodev/dj-webhooks
1dcbfe6c90c5f56567d338a9edcd52926da47d27
[ "BSD-3-Clause" ]
52
2015-01-08T15:46:57.000Z
2022-03-31T23:12:29.000Z
djwebhooks/utils.py
joaoautodev/dj-webhooks
1dcbfe6c90c5f56567d338a9edcd52926da47d27
[ "BSD-3-Clause" ]
1
2016-05-28T13:01:21.000Z
2016-05-28T19:13:39.000Z
djwebhooks/utils.py
joaoautodev/dj-webhooks
1dcbfe6c90c5f56567d338a9edcd52926da47d27
[ "BSD-3-Clause" ]
22
2015-03-11T20:19:55.000Z
2022-03-24T15:29:30.000Z
import sys def always_string(value): """Regardless of the Python version, this always returns a string """ if sys.version > '3': return value.decode('utf-8') return value
24
73
0.661458
794487c81af77df1d8c01ed955dfc16d3eaa9f18
497
py
Python
apps/sushi/migrations/0018_sushifetchattempt_in_progress.py
techlib/celus
f32a7a22be5f4613dcac10b8e02c5c5a9bc297cb
[ "MIT" ]
7
2020-02-20T13:24:40.000Z
2022-01-28T19:36:04.000Z
apps/sushi/migrations/0018_sushifetchattempt_in_progress.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
15
2020-04-28T13:09:02.000Z
2021-11-03T15:21:24.000Z
apps/sushi/migrations/0018_sushifetchattempt_in_progress.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
4
2020-02-20T13:48:30.000Z
2021-03-19T00:33:34.000Z
# Generated by Django 2.2.5 on 2019-09-16 08:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sushi', '0017_sushifetchattempt_processing_info'), ] operations = [ migrations.AddField( model_name='sushifetchattempt', ...
23.666667
80
0.605634
794488de3dc7ad4d908ec34bd81586e1971fab6c
6,759
py
Python
test/test/test_topologies/test_simplemodels.py
brucespang/fnss
8e1d95744347afa77383092e6f144980d84e222d
[ "BSD-2-Clause" ]
114
2015-01-19T14:15:07.000Z
2022-02-22T01:47:19.000Z
test/test/test_topologies/test_simplemodels.py
brucespang/fnss
8e1d95744347afa77383092e6f144980d84e222d
[ "BSD-2-Clause" ]
15
2016-02-11T09:09:02.000Z
2021-04-05T12:57:09.000Z
test/test/test_topologies/test_simplemodels.py
brucespang/fnss
8e1d95744347afa77383092e6f144980d84e222d
[ "BSD-2-Clause" ]
36
2015-02-08T12:28:04.000Z
2021-11-19T06:08:17.000Z
import unittest import fnss class Test(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_line_topology(self): def test_line_connectivity(n): G = fnss.line_topology(n) self.assertEqual(n, G.number_of_nodes()) self.ass...
43.88961
75
0.579672
7944890d147c11271d3229f97e9b675eeb91fd8c
8,777
py
Python
sdk2-src/src/azure-ml/azure/ml/_schema/_endpoint/online/online_endpoint_deployment.py
DamovisaOrg/azureml-v2-preview
9c5ed1003c19f4d5b19dbea4a7c507e101149139
[ "MIT" ]
1
2021-09-27T07:54:40.000Z
2021-09-27T07:54:40.000Z
sdk2-src/src/azure-ml/azure/ml/_schema/_endpoint/online/online_endpoint_deployment.py
DamovisaOrg/azureml-v2-preview
9c5ed1003c19f4d5b19dbea4a7c507e101149139
[ "MIT" ]
null
null
null
sdk2-src/src/azure-ml/azure/ml/_schema/_endpoint/online/online_endpoint_deployment.py
DamovisaOrg/azureml-v2-preview
9c5ed1003c19f4d5b19dbea4a7c507e101149139
[ "MIT" ]
null
null
null
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from typing import Any, Union, Optional, Dict from marshmallow import fields, post_load from azure.ml._schema.schema import PatchedNested f...
48.225275
117
0.717215
794489356cbff867b103201aefd9d27b477b3575
852
py
Python
theory/oop_1.py
librity/nc_pyjobs
f57c04f7f406e1385a81ae62c786ff88db262d8c
[ "MIT" ]
null
null
null
theory/oop_1.py
librity/nc_pyjobs
f57c04f7f406e1385a81ae62c786ff88db262d8c
[ "MIT" ]
null
null
null
theory/oop_1.py
librity/nc_pyjobs
f57c04f7f406e1385a81ae62c786ff88db262d8c
[ "MIT" ]
null
null
null
# python3 theory/oop_1.py # from pprint import pprint class Car(): brand = None model = None color = None wheels = 4 doors = 4 windows = 4 seats = 4 def inspect(car): print("== Car ==") print("brand:", car.brand) print("model:", car.model) print("color:", car.color) print("wheel...
16.705882
34
0.638498
79448a037559335dadfe3a74c8b372244da4c8b5
59,764
py
Python
rapidtide/dlfilter.py
bbfrederick/rapidtide
ddd1899a93fafd550feb134debdd028bbba8c853
[ "Apache-2.0" ]
44
2017-01-19T10:12:39.000Z
2022-02-08T05:43:58.000Z
rapidtide/dlfilter.py
bbfrederick/delaytools
190d79ae4c19317dfce38a528e43fd05459f29a5
[ "Apache-2.0" ]
70
2018-05-02T14:35:45.000Z
2022-03-18T17:43:33.000Z
rapidtide/dlfilter.py
bbfrederick/delaytools
190d79ae4c19317dfce38a528e43fd05459f29a5
[ "Apache-2.0" ]
12
2019-02-12T20:40:27.000Z
2021-06-16T13:28:21.000Z
#!/usr/bin/env python # -*- coding: latin-1 -*- # # Copyright 2016-2021 Blaise Frederick # # 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/LICEN...
35.658711
119
0.554263
79448a3d5d9f296c6f4f6654ef45dc3b080ced3c
861
py
Python
quadratic.py
musicmonkey1223/pythonphilosophy
c859bd0a6c0380d6d7a28c4d3b87c47c2368277d
[ "Apache-2.0" ]
1
2021-02-14T02:33:28.000Z
2021-02-14T02:33:28.000Z
quadratic.py
musicmonkey1223/pythonphilosophy
c859bd0a6c0380d6d7a28c4d3b87c47c2368277d
[ "Apache-2.0" ]
null
null
null
quadratic.py
musicmonkey1223/pythonphilosophy
c859bd0a6c0380d6d7a28c4d3b87c47c2368277d
[ "Apache-2.0" ]
null
null
null
import cmath def quadratic(a,b,c): print("The quadratic equation is: ",a,"x^2 +",b,"x +",c) # printing the quadratic equation from a,b,c equation = (cmath.sqrt(b*b - 4*a*c))/(2*a) # formula of finding x values in quadratic equation x1 = -b +...
61.5
124
0.45993
79448a4e335b956a3d68ac267f6c3eb702567d6c
1,956
py
Python
test/send_to_driver/test_listener.py
sapcc/f5-openstack-agent
61e19c85dcca202db8c594aaa09dee1c1389fc79
[ "Apache-2.0" ]
null
null
null
test/send_to_driver/test_listener.py
sapcc/f5-openstack-agent
61e19c85dcca202db8c594aaa09dee1c1389fc79
[ "Apache-2.0" ]
null
null
null
test/send_to_driver/test_listener.py
sapcc/f5-openstack-agent
61e19c85dcca202db8c594aaa09dee1c1389fc79
[ "Apache-2.0" ]
2
2018-02-27T08:42:30.000Z
2018-03-09T16:34:46.000Z
# -*- coding: utf-8 -*- ''' test_requirements = {'devices': [VE], 'openstack_infra': []} ''' # Copyright 2015-2106 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy...
31.548387
75
0.669734
79448afb23900353fcbf29a20ada2dfa9e0222a1
28,261
py
Python
gluon/tests/test_is_url.py
pav0n/web2py_ohka
2d8302e4d1bffc8c845f9e37638a86bb691a8107
[ "BSD-3-Clause" ]
2
2017-02-02T00:31:48.000Z
2017-08-08T22:36:25.000Z
gluon/tests/test_is_url.py
sloe/sloe_web2py
a1524d4da46ff851429a1de2022d852f8f2c8e53
[ "BSD-3-Clause" ]
null
null
null
gluon/tests/test_is_url.py
sloe/sloe_web2py
a1524d4da46ff851429a1de2022d852f8f2c8e53
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Unit tests for IS_URL() """ import unittest from fix_path import fix_sys_path fix_sys_path(__file__) from validators import IS_URL, IS_HTTP_URL, IS_GENERIC_URL from validators import unicode_to_ascii_authority class TestIsUrl(unittest.TestCase): def testModeH...
41.930267
202
0.531474
79448ba4edecb211ee8a70053446074ece407749
2,302
py
Python
src/atcoder/arc002/c/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
1
2021-07-11T03:20:10.000Z
2021-07-11T03:20:10.000Z
src/atcoder/arc002/c/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
39
2021-07-10T05:21:09.000Z
2021-12-15T06:10:12.000Z
src/atcoder/arc002/c/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
null
null
null
import typing class ReadStdin: def __call__( self, ) -> bytes: return next(self.__chunks) def __init__( self, ) -> typing.NoReturn: import sys self.__buf = ( sys.stdin.buffer ) self.__chunks = ( self.__read_chunks() ) def int( self, ) -> int: re...
13.229885
31
0.500434
79448c30a3e0d52c5327c130d0386d20d02e7c16
1,679
py
Python
tests/tools/test_translate.py
stranac/voice-skill-sdk
8bfbbedf36ed4e4b2ff865deffe4dee804d57031
[ "MIT" ]
18
2020-11-25T12:58:36.000Z
2022-01-06T21:13:52.000Z
tests/tools/test_translate.py
stranac/voice-skill-sdk
8bfbbedf36ed4e4b2ff865deffe4dee804d57031
[ "MIT" ]
28
2020-11-27T08:45:57.000Z
2022-03-31T09:01:48.000Z
tests/tools/test_translate.py
stranac/voice-skill-sdk
8bfbbedf36ed4e4b2ff865deffe4dee804d57031
[ "MIT" ]
15
2020-11-30T08:19:44.000Z
2022-03-10T13:07:05.000Z
# # voice-skill-sdk # # (C) 2021, Deutsche Telekom AG # # This file is distributed under the terms of the MIT license. # For details see the file LICENSE in the top directory. # # import pathlib import tempfile from unittest.mock import patch import respx from httpx import Response from skill_sdk.tools.translate imp...
26.650794
83
0.586659
79448d53eb6aeb08e3dc9998b6efe5b2fda40d38
5,350
py
Python
FileDumpParser.py
B-Rad80/code-components
f0aa4479b2329570ad56af31903467e0e166952f
[ "BSD-3-Clause" ]
null
null
null
FileDumpParser.py
B-Rad80/code-components
f0aa4479b2329570ad56af31903467e0e166952f
[ "BSD-3-Clause" ]
8
2020-02-11T23:32:59.000Z
2022-03-11T23:36:51.000Z
FileDumpParser.py
B-Rad80/code-components
f0aa4479b2329570ad56af31903467e0e166952f
[ "BSD-3-Clause" ]
null
null
null
# FileDumpParser import csv import os import zipfile import sys import io import glob import pyap import docx import codecs class FileDumpParser: def __init__(self): self.og = os.getcwd() self.debug = False def __init__(self, d): self.og = os.getcwd() self.debug = d def u...
27.720207
76
0.504486
79448d571d2ff58ca90620043ea066847c719dd1
4,697
py
Python
changes.py
hugovk/smtpapi-python
21239b1c652b149c21bbd05c7fae0ef343ba2095
[ "MIT" ]
30
2015-01-13T17:13:55.000Z
2022-03-11T23:22:17.000Z
changes.py
hugovk/smtpapi-python
21239b1c652b149c21bbd05c7fae0ef343ba2095
[ "MIT" ]
97
2015-01-23T16:17:50.000Z
2021-03-11T03:14:24.000Z
changes.py
hugovk/smtpapi-python
21239b1c652b149c21bbd05c7fae0ef343ba2095
[ "MIT" ]
65
2015-07-14T16:19:52.000Z
2022-02-03T17:09:14.000Z
#!/usr/bin/python """ Small python script that, when run, will update the CHANGELOG with information about all merged pull requests since the previous release. This script must be run after tagging the latest version It checks the log of commits since the previous tag and parses it """ import re import subprocess impo...
30.5
79
0.622099
79448d71b6e9c87943ab8a65b3075d42d6ff57de
593
py
Python
src/ana3/__init__.py
balazsfazekas/Assignment-3-ANA
d23f968d9a98405f2cfa850895b7235155d98937
[ "MIT" ]
null
null
null
src/ana3/__init__.py
balazsfazekas/Assignment-3-ANA
d23f968d9a98405f2cfa850895b7235155d98937
[ "MIT" ]
3
2021-11-11T07:32:01.000Z
2021-11-23T15:42:26.000Z
src/ana3/__init__.py
balazsfazekas/Assignment-3-ANA
d23f968d9a98405f2cfa850895b7235155d98937
[ "MIT" ]
null
null
null
import sys if sys.version_info[:2] >= (3, 8): # TODO: Import directly (no need for conditional) when `python_requires = >= 3.8` from importlib.metadata import PackageNotFoundError, version # pragma: no cover else: from importlib_metadata import PackageNotFoundError, version # pragma: no cover tr...
34.882353
86
0.716695
7944917e83c4a68ab37cf8d609354f2a737f3318
477
py
Python
todos/migrations/0004_alter_todo_author.py
bemot/react_todo_mac
64bd6de5da675cb5227e20f7ba871a26fb2e6510
[ "MIT" ]
null
null
null
todos/migrations/0004_alter_todo_author.py
bemot/react_todo_mac
64bd6de5da675cb5227e20f7ba871a26fb2e6510
[ "MIT" ]
null
null
null
todos/migrations/0004_alter_todo_author.py
bemot/react_todo_mac
64bd6de5da675cb5227e20f7ba871a26fb2e6510
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-31 11:03 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('todos', '0003_todo_author'), ] operations = [ migrations.AlterField( model_name='todo', ...
23.85
119
0.633124
7944919fd3dc83bc982abfa77e1dd65fcb598a45
3,676
py
Python
nbaspa/model/tasks/metrics.py
ak-gupta/nbaspa
db961717bb23854e0373b7732638021a18d909f5
[ "MIT" ]
1
2021-02-21T00:44:06.000Z
2021-02-21T00:44:06.000Z
nbaspa/model/tasks/metrics.py
ak-gupta/nbaspa
db961717bb23854e0373b7732638021a18d909f5
[ "MIT" ]
22
2021-02-21T16:41:39.000Z
2021-11-27T16:12:33.000Z
nbaspa/model/tasks/metrics.py
ak-gupta/nbaspa
db961717bb23854e0373b7732638021a18d909f5
[ "MIT" ]
null
null
null
"""Define some metrics for evaluating the model.""" from typing import Callable, List, Optional, Union import numpy as np import pandas as pd from prefect import Task from sklearn.metrics import roc_auc_score from .meta import META class AUROC(Task): """Calculate the AUROC score.""" def run(self, data: pd...
28.944882
97
0.571545
7944922918bae832081fb3179c692f0ff01a89d2
2,614
py
Python
configs/configs_mnist_auto/mnist_auto_dfc_ssa.py
meulemansalex/deep_feedback_control
0a592c595334ce81d0c753f65f1cde7c02c8222b
[ "Apache-2.0" ]
4
2021-06-15T06:28:29.000Z
2021-11-27T17:59:05.000Z
configs/configs_mnist_auto/mnist_auto_dfc_ssa.py
meulemansalex/deep_feedback_control
0a592c595334ce81d0c753f65f1cde7c02c8222b
[ "Apache-2.0" ]
null
null
null
configs/configs_mnist_auto/mnist_auto_dfc_ssa.py
meulemansalex/deep_feedback_control
0a592c595334ce81d0c753f65f1cde7c02c8222b
[ "Apache-2.0" ]
null
null
null
config = { 'lr': 0.0001867134052079835, 'alpha_di': 0.036883035536535616, 'k_p_fb': 0.006322358048692642, 'alpha_fb': 0.7332531549909285, 'feedback_wd': 0.1, 'time_constant_ratio_fb': 0.006487346213972566, 'dt_di_fb': 0.0032644966090448454, 'apical_time_constant_fb': 0.2725371146036905, 'proactive_controller': True, 'l...
25.881188
48
0.743305
7944923ff200da0c0f765f222bcdae2abf9df6bb
1,214
py
Python
rapid7_insightvm/komand_rapid7_insightvm/actions/download_report/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
rapid7_insightvm/komand_rapid7_insightvm/actions/download_report/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
rapid7_insightvm/komand_rapid7_insightvm/actions/download_report/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Input: ID = "id" INSTANCE = "instance" class Output: REPORT = "report" class DownloadReportInput(komand.Input): schema = json.loads(""" { "type": "object", "title": "Variables", "properties": { "id": { ...
18.676923
86
0.5486
794493cd7e018d18326fccf054c516997bb69ed8
2,908
py
Python
pypureclient/flashblade/FB_2_3/models/group_quota_patch.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flashblade/FB_2_3/models/group_quota_patch.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flashblade/FB_2_3/models/group_quota_patch.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.3, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typ...
27.433962
116
0.541609
794495fe14116d489887f5b7c960d85f850b65c7
411
py
Python
Challenge005.py
lilimonroy/TheBasics001-011Challenges
9c45dbd6bb0ab922e81409b5bf289fb908d51bb3
[ "MIT" ]
null
null
null
Challenge005.py
lilimonroy/TheBasics001-011Challenges
9c45dbd6bb0ab922e81409b5bf289fb908d51bb3
[ "MIT" ]
null
null
null
Challenge005.py
lilimonroy/TheBasics001-011Challenges
9c45dbd6bb0ab922e81409b5bf289fb908d51bb3
[ "MIT" ]
null
null
null
#----------* CHALLENGE 5 *---------- #Ask the user to enter three numbers. Add together the first two numbers and then multiply this total by the third. # Display the answer as The answer is [answer]. num1 = int(input("Enter the first number: ")) num2 = int(input("Enter the second number: ")) num3 = int(input("...
37.363636
117
0.654501
794497064ec6cb826dee5d4a196a5ee9e9fe8cdc
6,224
py
Python
dateparser/date_parser.py
ASOdesk/dateparser
d8050511772c30199d14cd8506d46f9c587c61a8
[ "BSD-3-Clause" ]
null
null
null
dateparser/date_parser.py
ASOdesk/dateparser
d8050511772c30199d14cd8506d46f9c587c61a8
[ "BSD-3-Clause" ]
null
null
null
dateparser/date_parser.py
ASOdesk/dateparser
d8050511772c30199d14cd8506d46f9c587c61a8
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import calendar import regex as re import sys from datetime import datetime from collections import OrderedDict import six from dateutil import parser from dateutil.relativedelta import relativedelta from .timezone_parser import pop_tz_offset_from_string from ....
31.276382
101
0.609576
794497c73fafca7aec82c66ce88e3aa0c1a23e11
3,079
py
Python
nibe_modbus_mqtt/mqtt.py
vinklat/nibe-modbus-mqtt
36cc25961de39c2880df9ee422390d85d881b92f
[ "MIT" ]
null
null
null
nibe_modbus_mqtt/mqtt.py
vinklat/nibe-modbus-mqtt
36cc25961de39c2880df9ee422390d85d881b92f
[ "MIT" ]
null
null
null
nibe_modbus_mqtt/mqtt.py
vinklat/nibe-modbus-mqtt
36cc25961de39c2880df9ee422390d85d881b92f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Connect to a MQTT broker ''' import logging import time from socket import gaierror import paho.mqtt.client as mqtt from .version import app_instance # create logger logger = logging.getLogger(__name__) class MqttException(Exception): def __init__(self, message): Exception.__...
32.072917
80
0.625853
7944981477e6b39555201a056b49f109aa5eaa89
3,619
py
Python
scripts/run_presubmit_checks.py
yash10019coder/oppia
8c349c61ac723a2fd507046b20957934cba70e3a
[ "Apache-2.0" ]
5,422
2015-08-14T01:56:44.000Z
2022-03-31T23:31:56.000Z
scripts/run_presubmit_checks.py
yash10019coder/oppia
8c349c61ac723a2fd507046b20957934cba70e3a
[ "Apache-2.0" ]
14,178
2015-08-14T05:21:45.000Z
2022-03-31T23:54:10.000Z
scripts/run_presubmit_checks.py
yash10019coder/oppia
8c349c61ac723a2fd507046b20957934cba70e3a
[ "Apache-2.0" ]
3,574
2015-08-14T04:20:06.000Z
2022-03-29T01:52:37.000Z
# Copyright 2019 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 ...
34.141509
79
0.713733
79449844a230624a118be7b6a6dfa5451a758466
20,337
py
Python
pettingzoo/butterfly/pistonball/pistonball.py
jjshoots/PettingZoo
398209c22bb43dd165932310c91e41c38ddcf49c
[ "Apache-2.0" ]
null
null
null
pettingzoo/butterfly/pistonball/pistonball.py
jjshoots/PettingZoo
398209c22bb43dd165932310c91e41c38ddcf49c
[ "Apache-2.0" ]
null
null
null
pettingzoo/butterfly/pistonball/pistonball.py
jjshoots/PettingZoo
398209c22bb43dd165932310c91e41c38ddcf49c
[ "Apache-2.0" ]
null
null
null
import math import os import gym import numpy as np import pygame import pymunk import pymunk.pygame_util from gym.utils import EzPickle, seeding from pettingzoo import AECEnv from pettingzoo.utils import agent_selector, wrappers from pettingzoo.utils.conversions import parallel_wrapper_fn from .manual_policy import...
34.883362
122
0.576978
794498e3fcf4c60cc90d013ce5f97fc1e4cc7ce4
764
py
Python
tests/test_s_scheduler.py
zoulida/sdufeQuant
dc3715a62f620c0a437daacfe9a113d5a6ecb62d
[ "Apache-2.0" ]
1
2019-04-22T14:29:24.000Z
2019-04-22T14:29:24.000Z
tests/test_s_scheduler.py
zoulida/sdufealpha
754e7df303ff94251846863d5cd326b9d121a810
[ "Apache-2.0" ]
null
null
null
tests/test_s_scheduler.py
zoulida/sdufealpha
754e7df303ff94251846863d5cd326b9d121a810
[ "Apache-2.0" ]
1
2019-04-28T01:24:16.000Z
2019-04-28T01:24:16.000Z
from rqalpha66666.api import * def init(context): scheduler.run_weekly(rebalance, 1, time_rule=market_open(0, 0)) def rebalance(context, bar_dict): stock = "000001.XSHE" if context.portfolio.positions[stock].quantity == 0: order_target_percent(stock, 1) else: order_target_percent(sto...
20.648649
67
0.527487
794499d35184125364638bc09385256ab6b16be6
1,484
py
Python
tests/test_visitors/test_ast/test_compares/test_in_with_single_item_container.py
n1kolasM/wemake-python-styleguide
f39e87897de89bea1c49d410beb5b1cbaf930807
[ "MIT" ]
1
2020-02-08T12:04:39.000Z
2020-02-08T12:04:39.000Z
tests/test_visitors/test_ast/test_compares/test_in_with_single_item_container.py
n1kolasM/wemake-python-styleguide
f39e87897de89bea1c49d410beb5b1cbaf930807
[ "MIT" ]
15
2020-02-22T11:09:46.000Z
2020-02-27T16:36:54.000Z
tests/test_visitors/test_ast/test_compares/test_in_with_single_item_container.py
n1kolasM/wemake-python-styleguide
f39e87897de89bea1c49d410beb5b1cbaf930807
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( InCompareWithSingleItemContainerViolation, WrongInCompareTypeViolation, ) from wemake_python_styleguide.visitors.ast.compares import ( InCompareSanityVisitor, ) @pytest.mark.parametrize('code', [ 'if ...
22.484848
64
0.615903
794499db71ae179642d93455cfd9fbc52881201f
3,210
py
Python
facebook_scraper/utils.py
davidchoo12/facebook-scraper
f0300c8c0b4b22a807946faae98593c081e6fc04
[ "MIT" ]
2
2021-11-12T23:00:21.000Z
2021-11-12T23:00:41.000Z
facebook_scraper/utils.py
davidchoo12/facebook-scraper
f0300c8c0b4b22a807946faae98593c081e6fc04
[ "MIT" ]
null
null
null
facebook_scraper/utils.py
davidchoo12/facebook-scraper
f0300c8c0b4b22a807946faae98593c081e6fc04
[ "MIT" ]
null
null
null
import codecs import re from datetime import datetime from typing import Optional from urllib.parse import parse_qsl, unquote, urlencode, urljoin, urlparse, urlunparse import dateparser import lxml.html from bs4 import BeautifulSoup from requests_html import DEFAULT_URL, Element, PyQuery def find_and_search(node, se...
29.722222
86
0.657321
794499fa5c6e93cf26f162e85d96ea2a5a2031d9
3,741
py
Python
python/oneflow/test/modules/test_randn.py
grybd/oneflow
82237ad096a10527591660c09b61444c42917e69
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/test/modules/test_randn.py
grybd/oneflow
82237ad096a10527591660c09b61444c42917e69
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/test/modules/test_randn.py
grybd/oneflow
82237ad096a10527591660c09b61444c42917e69
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow 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 law or agr...
32.815789
87
0.671746
794499fe75ba7d2b6a62ed6cc53c6e84cc3f3a60
650
py
Python
Important/ImplementReverseStack.py
adityaarakeri/Interview-solved
e924011d101621c7121f4f86d82bee089f4c1e25
[ "MIT" ]
46
2019-10-14T01:21:35.000Z
2022-01-08T23:55:15.000Z
Important/ImplementReverseStack.py
Siddhant-K-code/Interview-solved
e924011d101621c7121f4f86d82bee089f4c1e25
[ "MIT" ]
53
2019-10-03T17:16:43.000Z
2020-12-08T12:48:19.000Z
Important/ImplementReverseStack.py
Siddhant-K-code/Interview-solved
e924011d101621c7121f4f86d82bee089f4c1e25
[ "MIT" ]
96
2019-10-03T18:12:10.000Z
2021-03-14T19:41:06.000Z
# Implement a Reverse Stack in python class ReverseStack(): def __init__(self): self.items = list() def push(self, *args): for val in args: self.items.insert(0, val) def peek(self): return self.items[0] def pop(self): return self.items.pop(0) def isE...
15.47619
37
0.563077
79449a3080bd8f2415e7f7d91f1b33a9e5d37403
3,701
py
Python
shell/command.py
wenbobuaa/pykit
43e38fe40297a1e7a9329bcf3db3554c7ca48ead
[ "MIT" ]
null
null
null
shell/command.py
wenbobuaa/pykit
43e38fe40297a1e7a9329bcf3db3554c7ca48ead
[ "MIT" ]
null
null
null
shell/command.py
wenbobuaa/pykit
43e38fe40297a1e7a9329bcf3db3554c7ca48ead
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # coding: utf-8 import argparse import copy import sys import logging import os from pykit import dictutil logger = logging.getLogger(__name__) def command(**kwargs): root, parser = add_command_help(kwargs) inputs = sys.argv[1:] try: cmds = [] while len(inputs)...
23.13125
114
0.590921
79449a75f1e341c54210d6b171159396f5be56f1
537
py
Python
dedomeno/houses/migrations/0046_auto_20161226_1416.py
ginopalazzo/dedomeno
e43df365849102016c8819b2082d2cde9109360f
[ "MIT" ]
38
2018-03-19T12:52:17.000Z
2022-02-17T14:45:57.000Z
dedomeno/houses/migrations/0046_auto_20161226_1416.py
ginopalazzo/dedomeno
e43df365849102016c8819b2082d2cde9109360f
[ "MIT" ]
7
2020-02-11T23:01:40.000Z
2020-08-06T13:30:58.000Z
dedomeno/houses/migrations/0046_auto_20161226_1416.py
ginopalazzo/dedomeno
e43df365849102016c8819b2082d2cde9109360f
[ "MIT" ]
12
2019-02-23T22:10:34.000Z
2022-03-24T12:01:38.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-26 13:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('houses', '0045_auto_20161226_1411'), ] operations = [ migrations.AlterField...
25.571429
138
0.638734
79449a9b4a0ba771f424f795bc74cdd22a32a8ef
14,729
py
Python
vyper/compile_lll.py
mpcnat/vyper
731263c9bea826a167639989350688833f68c182
[ "MIT" ]
null
null
null
vyper/compile_lll.py
mpcnat/vyper
731263c9bea826a167639989350688833f68c182
[ "MIT" ]
null
null
null
vyper/compile_lll.py
mpcnat/vyper
731263c9bea826a167639989350688833f68c182
[ "MIT" ]
null
null
null
from vyper.parser.parser import LLLnode from .opcodes import opcodes from vyper.utils import MemoryPositions def num_to_bytearray(x): o = [] while x > 0: o.insert(0, x % 256) x //= 256 return o PUSH_OFFSET = 0x5f DUP_OFFSET = 0x7f SWAP_OFFSET = 0x8f next_symbol = [0] def mksymbol(): ...
42.082857
169
0.578179
79449aadfa4f3a71ce048634bcb5dbdc0a0cc222
3,340
py
Python
location_finder/location_finder/settings.py
abhisinha4395/propamc_assignment
0b30a45ad06ac87b5e5c6f411581d76a1f745b66
[ "MIT" ]
null
null
null
location_finder/location_finder/settings.py
abhisinha4395/propamc_assignment
0b30a45ad06ac87b5e5c6f411581d76a1f745b66
[ "MIT" ]
null
null
null
location_finder/location_finder/settings.py
abhisinha4395/propamc_assignment
0b30a45ad06ac87b5e5c6f411581d76a1f745b66
[ "MIT" ]
null
null
null
""" Django settings for location_finder project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impo...
25.891473
91
0.700599
79449b415d4fd3d38e99bd915d84cc9156fc8122
14,230
py
Python
train_ssd.py
shpach/ssd_keras
08aca69e8cc1b1917aaec78d4c34a5cde22f404a
[ "Apache-2.0" ]
1
2018-11-11T05:52:29.000Z
2018-11-11T05:52:29.000Z
train_ssd.py
shpach/ssd_keras
08aca69e8cc1b1917aaec78d4c34a5cde22f404a
[ "Apache-2.0" ]
null
null
null
train_ssd.py
shpach/ssd_keras
08aca69e8cc1b1917aaec78d4c34a5cde22f404a
[ "Apache-2.0" ]
null
null
null
from tensorflow.python.lib.io import file_io from keras.optimizers import Adam, SGD from keras.callbacks import ModelCheckpoint, LearningRateScheduler, TerminateOnNaN, CSVLogger from keras import backend as K import tensorflow as tf from keras.models import load_model from keras.utils import plot_model from math import...
51.003584
192
0.595643
79449b8597ab9e3ad9b68cdc2f3e1361a27d828f
6,564
py
Python
webcrawler/crawlers.py
mrafayaleem/simple-crawler
673dc41915bb70b22b1a50d5256c45efd361c2d5
[ "MIT" ]
27
2016-03-08T11:43:24.000Z
2021-03-10T11:51:58.000Z
webcrawler/crawlers.py
mrafayaleem/simple-crawler
673dc41915bb70b22b1a50d5256c45efd361c2d5
[ "MIT" ]
null
null
null
webcrawler/crawlers.py
mrafayaleem/simple-crawler
673dc41915bb70b22b1a50d5256c45efd361c2d5
[ "MIT" ]
1
2022-02-11T05:55:13.000Z
2022-02-11T05:55:13.000Z
import workerpool import logging import threading from urllib2 import urlopen from urlparse import urljoin from Queue import Queue from lxml import etree from utils.xpath import build_abs_url_xpath from utils.xpath import build_relative_url_xpath from utils.url import is_url_in_domain from utils.url import is_absolu...
33.835052
81
0.584247
79449bb6d4b783cd527d7f6b0f7c4d33938b970e
21,034
py
Python
onmt/inference/fast_translator.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
1
2019-09-11T10:09:37.000Z
2019-09-11T10:09:37.000Z
onmt/inference/fast_translator.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
null
null
null
onmt/inference/fast_translator.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
1
2019-09-15T17:22:58.000Z
2019-09-15T17:22:58.000Z
import onmt import onmt.modules import torch.nn as nn import torch import math from torch.autograd import Variable from onmt.model_factory import build_model import torch.nn.functional as F from onmt.inference.search import BeamSearch, DiverseBeamSearch from onmt.inference.translator import Translator model_list = ['t...
41.817097
119
0.563374
79449d482bb83376f5de1a58785817a127cf428a
1,799
py
Python
knowledge_distillation/text_utils.py
pongnguy/knowledge_distillation
8378714e07af5a12eb8bf98d60035e0b88b126f0
[ "MIT" ]
37
2019-12-05T15:24:09.000Z
2022-01-02T07:42:40.000Z
knowledge_distillation/text_utils.py
pongnguy/knowledge_distillation
8378714e07af5a12eb8bf98d60035e0b88b126f0
[ "MIT" ]
1
2020-05-18T09:39:16.000Z
2020-12-06T02:52:00.000Z
knowledge_distillation/text_utils.py
pongnguy/knowledge_distillation
8378714e07af5a12eb8bf98d60035e0b88b126f0
[ "MIT" ]
11
2020-01-20T09:06:22.000Z
2022-03-27T20:06:05.000Z
# coding: utf-8 from __future__ import unicode_literals, print_function import re import inflect from nltk.corpus import stopwords from nltk.stem import LancasterStemmer, WordNetLemmatizer, SnowballStemmer def remove_punctuation(words): """Remove punctuation from list of tokenized words""" new_words = [] ...
25.338028
97
0.658699
79449e7c21add45309112648bfb8de3f2b32d5f6
1,077
py
Python
test/ml/classification/test_classification.py
xenron/coco
e318d534127b769612716c05d40e3d5b090eb5a3
[ "MIT" ]
null
null
null
test/ml/classification/test_classification.py
xenron/coco
e318d534127b769612716c05d40e3d5b090eb5a3
[ "MIT" ]
null
null
null
test/ml/classification/test_classification.py
xenron/coco
e318d534127b769612716c05d40e3d5b090eb5a3
[ "MIT" ]
null
null
null
import unittest as ut import sys sys.path.append("../../../package") import ml.classification class TestClassification(ut.TestCase): def setUp(self): super(TestClassification, self).setUp() def test_knn(self): model = ml.classification.getClassifierByName("KNN") data = dict() ...
25.642857
62
0.551532
79449fcd47263c36628330d0a0f9d159cc4c8651
3,148
py
Python
src/modules/tic_tac_toe/actions.py
moraisaugusto/tic-tac-toe-challenge
ffac7572cf6e39bdcae0b6c9f9a57d33698d46b7
[ "BSD-3-Clause" ]
null
null
null
src/modules/tic_tac_toe/actions.py
moraisaugusto/tic-tac-toe-challenge
ffac7572cf6e39bdcae0b6c9f9a57d33698d46b7
[ "BSD-3-Clause" ]
null
null
null
src/modules/tic_tac_toe/actions.py
moraisaugusto/tic-tac-toe-challenge
ffac7572cf6e39bdcae0b6c9f9a57d33698d46b7
[ "BSD-3-Clause" ]
null
null
null
import pickle from werkzeug.exceptions import NotFound, BadRequest from db_models import Game from src.lib.db_helper import DatabaseBase from src.modules.tic_tac_toe.helper import Helper from src.modules.tic_tac_toe.db_helper import Database from src.modules.tic_tac_toe import tic_tac_toe def update_game(user_reques...
28.107143
77
0.674396
7944a0b247702254da4e3d2f2b219e6fdf9d75c6
6,790
py
Python
src/graph_transpiler/webdnn/optimizer/sub_rules/elementwise_kernel_fusion.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/optimizer/sub_rules/elementwise_kernel_fusion.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/optimizer/sub_rules/elementwise_kernel_fusion.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from typing import Tuple, List from webdnn.graph import traverse from webdnn.graph.graph import Graph from webdnn.graph.operators.elementwise import Elementwise from webdnn.graph.operators.fused_elementwise import FusedElementwise from webdnn.graph.optimize_rule import OptimizeRule from webdnn.util import flags def ...
39.022989
135
0.493225
7944a0cc13d1d5e54414d1d673b19e9be8af7ab2
179,184
py
Python
seahub/api2/views.py
saukrIppl/newsea
0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603
[ "Apache-2.0" ]
2
2017-06-21T09:46:55.000Z
2018-05-30T10:07:32.000Z
seahub/api2/views.py
saukrIppl/newsea
0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603
[ "Apache-2.0" ]
null
null
null
seahub/api2/views.py
saukrIppl/newsea
0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603
[ "Apache-2.0" ]
1
2020-10-01T04:11:41.000Z
2020-10-01T04:11:41.000Z
# encoding: utf-8 import logging import os import stat import json import datetime import posixpath import re from dateutil.relativedelta import relativedelta from urllib2 import unquote, quote from rest_framework import parsers from rest_framework import status from rest_framework import renderers from rest_framework...
39.660027
135
0.597648
7944a0ea67a5ff3e960696326d454aea24ac2ced
6,257
py
Python
pandas/tests/io/formats/test_to_string.py
botplex/pandas
be569627346bce10ffec205ffff26c5628a5bb9b
[ "BSD-3-Clause" ]
1
2020-10-29T17:32:26.000Z
2020-10-29T17:32:26.000Z
pandas/tests/io/formats/test_to_string.py
botplex/pandas
be569627346bce10ffec205ffff26c5628a5bb9b
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/io/formats/test_to_string.py
botplex/pandas
be569627346bce10ffec205ffff26c5628a5bb9b
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime from io import StringIO import numpy as np import pytest from pandas import DataFrame, Series, option_context, to_datetime def test_repr_embedded_ndarray(): arr = np.empty(10, dtype=[("err", object)]) for i in range(len(arr)): arr["err"][i] = np.random.randn(i) df ...
28.058296
84
0.512066
7944a2545997dcaac50bb61b9d61fc7cedf44022
129
py
Python
slack_entities/exceptions/exceptions.py
chimplie/slack-entities
9d0b57550a91de920ff254a108497db5e4209295
[ "MIT" ]
3
2018-08-18T06:10:36.000Z
2018-10-29T14:40:08.000Z
slack_entities/exceptions/exceptions.py
chimplie/slack-entities
9d0b57550a91de920ff254a108497db5e4209295
[ "MIT" ]
2
2018-08-29T09:48:56.000Z
2020-05-25T13:12:02.000Z
slack_entities/exceptions/exceptions.py
chimplie/slack-entities
9d0b57550a91de920ff254a108497db5e4209295
[ "MIT" ]
null
null
null
class PluralMethodError(Exception): """ Raised when there is no plural form for particular Slack entity """ pass
21.5
67
0.682171
7944a33e0a5273bc6be8bd0ab73306831ca33734
987
py
Python
home/migrations/0008_auto_20170130_1106.py
cristovao-alves/Wagtail-Multilingual
14033e373533108bac77142e7b8dc809ad83097d
[ "MIT" ]
7
2017-01-31T13:07:49.000Z
2020-10-06T02:06:22.000Z
home/migrations/0008_auto_20170130_1106.py
cristovao-alves/Wagtail-Multilingual
14033e373533108bac77142e7b8dc809ad83097d
[ "MIT" ]
1
2018-07-05T11:40:40.000Z
2018-07-05T11:40:40.000Z
home/migrations/0008_auto_20170130_1106.py
cristovao-alves/Wagtail-Multilingual
14033e373533108bac77142e7b8dc809ad83097d
[ "MIT" ]
5
2018-01-29T13:21:23.000Z
2019-07-01T17:05:11.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-30 11:06 from __future__ import unicode_literals from django.db import migrations import wagtail.wagtailcore.blocks import wagtail.wagtailcore.fields class Migration(migrations.Migration): dependencies = [ ('home', '0007_auto_20170130_1100'...
35.25
210
0.663627
7944a348ad9d2c450839ca111577697ef7e70bcc
3,907
py
Python
pytorch_toolkit/face_recognition/model/backbones/se_resnext.py
AnastasiaaSenina/openvino_training_extensions
267425d64372dff5b9083dc0ca6abfc305a71449
[ "Apache-2.0" ]
1
2020-02-09T15:50:49.000Z
2020-02-09T15:50:49.000Z
pytorch_toolkit/face_recognition/model/backbones/se_resnext.py
akshayjaryal603/openvino_training_extensions
7d606a22143db0af97087709d63a2ec2aa02036c
[ "Apache-2.0" ]
28
2020-09-25T22:40:36.000Z
2022-03-12T00:37:36.000Z
pytorch_toolkit/face_recognition/model/backbones/se_resnext.py
akshayjaryal603/openvino_training_extensions
7d606a22143db0af97087709d63a2ec2aa02036c
[ "Apache-2.0" ]
1
2021-04-02T07:51:01.000Z
2021-04-02T07:51:01.000Z
""" Copyright (c) 2018 Intel Corporation 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 writin...
36.858491
112
0.622472
7944a68d469d87956e00502dff9e4940e47289c9
2,131
py
Python
pyNastran/op2/op2_interface/function_codes.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
293
2015-03-22T20:22:01.000Z
2022-03-14T20:28:24.000Z
pyNastran/op2/op2_interface/function_codes.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
512
2015-03-14T18:39:27.000Z
2022-03-31T16:15:43.000Z
pyNastran/op2/op2_interface/function_codes.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
136
2015-03-19T03:26:06.000Z
2022-03-25T22:14:54.000Z
""" Note: In some OFP table descriptions (OEE, OEF, OES for example), you will see formats such as ACODE,4=05, or TCODE,1=02 (versus ACODE=05 or TCODE=02). The integer values 4 and 1 in these examples are function codes. Function codes specify operations to perform on the value in the data block. The operation result w...
26.308642
71
0.613796
7944a77149a9bae0439d9302aa90a5a14ddaf457
2,359
py
Python
skywalking/client/grpc.py
championquizzer/skywalking-python
a9cf38a5a867a47e7f1ba3025846fb81b9e2dbf7
[ "Apache-2.0" ]
null
null
null
skywalking/client/grpc.py
championquizzer/skywalking-python
a9cf38a5a867a47e7f1ba3025846fb81b9e2dbf7
[ "Apache-2.0" ]
null
null
null
skywalking/client/grpc.py
championquizzer/skywalking-python
a9cf38a5a867a47e7f1ba3025846fb81b9e2dbf7
[ "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 us...
38.672131
93
0.758796
7944a7c366bacaaae705d6d65ea721ec1f3cf666
314
py
Python
code/others/test2.py
marusqq/Heari
994798c69932a5c6ed7bd6898dbda30dd170451b
[ "MIT" ]
1
2020-10-06T11:12:09.000Z
2020-10-06T11:12:09.000Z
code/others/test2.py
marusqq/Heari
994798c69932a5c6ed7bd6898dbda30dd170451b
[ "MIT" ]
null
null
null
code/others/test2.py
marusqq/Heari
994798c69932a5c6ed7bd6898dbda30dd170451b
[ "MIT" ]
1
2020-10-05T18:05:47.000Z
2020-10-05T18:05:47.000Z
def split_time(time_with_date, newspaper): if newspaper == 'delfi': s_time = time_with_date.split('T') date = s_time[0] s_time = s_time[1].split('+') time = s_time[0] return date, time date,time = split_time("2020-09-23T18:59:24+0300", 'delfi') print(date) print(time)
26.166667
59
0.611465
7944a847ddb8dc593688fb6a7d11a8cf90c4fc64
2,823
py
Python
chaingreen/consensus/pot_iterations.py
WaitWha/chaingreen-blockchain
959443f03420b80f66028c2183525712aa933465
[ "Apache-2.0" ]
103
2021-05-30T02:09:28.000Z
2022-03-17T20:45:49.000Z
chaingreen/consensus/pot_iterations.py
WaitWha/chaingreen-blockchain
959443f03420b80f66028c2183525712aa933465
[ "Apache-2.0" ]
107
2021-05-23T02:20:26.000Z
2022-03-29T17:07:43.000Z
chaingreen/consensus/pot_iterations.py
WaitWha/chaingreen-blockchain
959443f03420b80f66028c2183525712aa933465
[ "Apache-2.0" ]
50
2021-05-23T02:19:06.000Z
2022-01-24T07:32:50.000Z
from chaingreen.consensus.constants import ConsensusConstants from chaingreen.consensus.pos_quality import _expected_plot_size from chaingreen.types.blockchain_format.sized_bytes import bytes32 from chaingreen.util.hash import std_hash from chaingreen.util.ints import uint8, uint64, uint128 def is_overflow_block(cons...
42.772727
118
0.755225
7944a8a91c26cdf4febb99117a4703be096ebced
2,774
py
Python
libs/labelDialog.py
khanh-moriaty/labelImg
941d3c8486f947d26e8257fae2bf841b656ce69d
[ "MIT" ]
null
null
null
libs/labelDialog.py
khanh-moriaty/labelImg
941d3c8486f947d26e8257fae2bf841b656ce69d
[ "MIT" ]
null
null
null
libs/labelDialog.py
khanh-moriaty/labelImg
941d3c8486f947d26e8257fae2bf841b656ce69d
[ "MIT" ]
null
null
null
try: from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * except ImportError: from PyQt4.QtGui import * from PyQt4.QtCore import * from libs.utils import newIcon, labelValidator BB = QDialogButtonBox class LabelDialog(QDialog): def __init__(self, text="Enter ob...
32.255814
79
0.628695
7944a8b0aca81e67692a1b8a5221c6037408265e
12,762
py
Python
anfis/anfis.py
darkrider85/anfis
77c0f206bb0d2e55990e006e98886cb91cda55fe
[ "MIT" ]
null
null
null
anfis/anfis.py
darkrider85/anfis
77c0f206bb0d2e55990e006e98886cb91cda55fe
[ "MIT" ]
null
null
null
anfis/anfis.py
darkrider85/anfis
77c0f206bb0d2e55990e006e98886cb91cda55fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 03 07:30:34 2014 @author: tim.meggs """ import itertools import numpy as np from membership import mfDerivs import copy class ANFIS: """Class to implement an Adaptive Network Fuzzy Inference System: ANFIS" Attributes: X Y XLen me...
40.514286
217
0.570835
7944a9f4c980596575a38a3f3964ceaba1266ab7
12,154
py
Python
hard-gists/2032428/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/2032428/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/2032428/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import sublime, sublime_plugin import re py_compl = [ # standard Python functions ("abs()\tabs fn", "abs(${1:number})$0"), ("all()\tall fn", "all(${1:iterable})$0"), ("any()\tany fn", "any(${1:iterable})$0"), ("bin()\tbin fn", "bin(${1:integer})$0"), ("bool()\tbool fn", "bool(${1:[value]})$0"), ("bytearray()\t...
53.074236
102
0.587625
7944ac200c7af2c0e6d0996314a97619379a5a15
15,143
py
Python
ryu/services/protocols/bgp/net_ctrl.py
jasuade/ryu
6bc47b7a19dc64c32fda29bae259807365c0478c
[ "Apache-2.0" ]
9
2018-04-11T12:53:08.000Z
2021-12-14T01:41:22.000Z
ryu/services/protocols/bgp/net_ctrl.py
jasuade/ryu
6bc47b7a19dc64c32fda29bae259807365c0478c
[ "Apache-2.0" ]
1
2019-05-20T13:23:28.000Z
2020-12-20T09:06:52.000Z
ryu/services/protocols/bgp/net_ctrl.py
jasuade/ryu
6bc47b7a19dc64c32fda29bae259807365c0478c
[ "Apache-2.0" ]
2
2020-10-20T13:52:45.000Z
2021-06-26T02:21:58.000Z
# Copyright (C) 2014 Nippon Telegraph and Telephone Corporation. # # 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...
36.489157
79
0.656343
7944ace462645f1c48599d79cbcaf116e40b402d
7,886
py
Python
Exponential_LSTM/lstm_smooth_2hyp.py
PranavEranki/Time-Series-Experiments
3c90443fb3070ebe9c2b20c34d5c9a5de52ef374
[ "MIT" ]
null
null
null
Exponential_LSTM/lstm_smooth_2hyp.py
PranavEranki/Time-Series-Experiments
3c90443fb3070ebe9c2b20c34d5c9a5de52ef374
[ "MIT" ]
null
null
null
Exponential_LSTM/lstm_smooth_2hyp.py
PranavEranki/Time-Series-Experiments
3c90443fb3070ebe9c2b20c34d5c9a5de52ef374
[ "MIT" ]
null
null
null
import random import numpy as np import math import numpy.polynomial.polynomial as poly import matplotlib import matplotlib.pyplot as plt import operator import matplotlib.backends.backend_pdf from scipy.stats import * import csv ############# Generating Utilities according to Boulware ######### def boulwareUtilities ...
26.823129
120
0.631752
7944adb1943ab4c9a794191f507252c2625a24e9
950
py
Python
ex6/code/create_data.py
MockyJoke/numbers
53b0a8e5c5f0edbf01b86fe5968ef02d8d938438
[ "MIT" ]
1
2018-07-06T18:41:28.000Z
2018-07-06T18:41:28.000Z
ex6/code/create_data.py
MockyJoke/numbers
53b0a8e5c5f0edbf01b86fe5968ef02d8d938438
[ "MIT" ]
null
null
null
ex6/code/create_data.py
MockyJoke/numbers
53b0a8e5c5f0edbf01b86fe5968ef02d8d938438
[ "MIT" ]
1
2018-07-11T01:30:54.000Z
2018-07-11T01:30:54.000Z
# coding: utf-8 # In[1]: import sys import pandas as pd import numpy as np import difflib import gzip from scipy import stats import time from implementations import all_implementations from random import randint # In[ ]: def main(): ARR_SIZE = 18000 SORT_TRIALS = 50 random_arrays = [] for i in ra...
24.358974
126
0.650526
7944ae17a8554b3c3774fa71268779cad66ba66c
4,871
py
Python
src/bindings/python/src/openvino/runtime/utils/input_validation.py
pfinashx/openvino
1d417e888b508415510fb0a92e4a9264cf8bdef7
[ "Apache-2.0" ]
1
2022-02-26T17:33:44.000Z
2022-02-26T17:33:44.000Z
src/bindings/python/src/openvino/runtime/utils/input_validation.py
pfinashx/openvino
1d417e888b508415510fb0a92e4a9264cf8bdef7
[ "Apache-2.0" ]
18
2022-01-21T08:42:58.000Z
2022-03-28T13:21:31.000Z
src/bindings/python/src/openvino/runtime/utils/input_validation.py
AlexRogalskiy/openvino
ac2e639ff8f9a607c3c682a4c4e165c238eb817f
[ "Apache-2.0" ]
1
2020-12-13T22:16:54.000Z
2020-12-13T22:16:54.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """Helper functions for validating user input.""" import logging from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type import numpy as np from openvino.runtime.exceptions import UserInputError log = logging.ge...
35.554745
100
0.642579
7944aed8277163000fc8cd2b1268bf854def5780
43,216
py
Python
zerver/tests/test_home.py
isakhagg/zulip
d1732fb9da4f9e4aa49bc74bc1ca1ef112f064cc
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_home.py
isakhagg/zulip
d1732fb9da4f9e4aa49bc74bc1ca1ef112f064cc
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_home.py
isakhagg/zulip
d1732fb9da4f9e4aa49bc74bc1ca1ef112f064cc
[ "Apache-2.0" ]
1
2022-01-07T14:15:00.000Z
2022-01-07T14:15:00.000Z
import calendar import datetime import urllib from datetime import timedelta from typing import Any from unittest.mock import patch import orjson import pytz from django.conf import settings from django.http import HttpResponse from django.test import override_settings from django.utils.timezone import now as timezone...
40.089054
109
0.638837
7944af59630238971bbe0542e6869389bb488c26
245
py
Python
python-Learning/JCP001.py
JamesKing9/CS-tips
2ec34d43cf6808cf1ab647eefb67a55dcf0086a4
[ "MIT" ]
null
null
null
python-Learning/JCP001.py
JamesKing9/CS-tips
2ec34d43cf6808cf1ab647eefb67a55dcf0086a4
[ "MIT" ]
null
null
null
python-Learning/JCP001.py
JamesKing9/CS-tips
2ec34d43cf6808cf1ab647eefb67a55dcf0086a4
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*-coding: UTF-8 -*- ''' 需求:有数字 1、2、3、4,能组成多少个互不相同且无重复数字的三位数? ''' for i in range(1, 5): for j in range(1, 5): for k in range(1, 5): if(i != k) and (i != j) and (j != k): print i, j, k
20.416667
49
0.457143
7944af5f268ce96101bb356f5ac11ad5a23684d8
17,846
py
Python
angr/procedures/definitions/__init__.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
1
2021-07-07T11:18:34.000Z
2021-07-07T11:18:34.000Z
angr/procedures/definitions/__init__.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/__init__.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
1
2022-02-10T02:29:38.000Z
2022-02-10T02:29:38.000Z
import copy import os import archinfo from collections import defaultdict import logging from ...calling_conventions import DEFAULT_CC from ...misc import autoimport from ...sim_type import parse_file from ..stubs.ReturnUnconstrained import ReturnUnconstrained from ..stubs.syscall_stub import syscall as stub_syscall ...
42.899038
119
0.652639
7944af7a04558435d25f966ae9fef8534737ef47
2,530
py
Python
_07_WEB_BROWSER/main.py
khanhtranngoccva/100ProjectsOfCode
ca06ce324c35d150b48a7d8fe5aaba8c06264065
[ "MIT" ]
1
2021-12-25T13:10:58.000Z
2021-12-25T13:10:58.000Z
_07_WEB_BROWSER/main.py
khanhtranngoccva/100ProjectsOfCode
ca06ce324c35d150b48a7d8fe5aaba8c06264065
[ "MIT" ]
null
null
null
_07_WEB_BROWSER/main.py
khanhtranngoccva/100ProjectsOfCode
ca06ce324c35d150b48a7d8fe5aaba8c06264065
[ "MIT" ]
null
null
null
from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtWebEngineWidgets import * from PyQt5.QtPrintSupport import * import os import sys homepage = QUrl("https://google.com") class BrowserWindow(QMainWindow): def __init__(self, *args, **kwargs): super().__init__()...
31.625
75
0.670751
7944b0b73266b3ed34ea4152422a8ae1cc8e2c41
5,789
py
Python
asapy/out_builder/html_builder.py
mlindauer/asapy
ec1f202b5f612a366f1e4aee7badc55798bdc67d
[ "MIT" ]
5
2017-05-17T15:51:29.000Z
2021-03-26T18:17:00.000Z
asapy/out_builder/html_builder.py
mlindauer/asapy
ec1f202b5f612a366f1e4aee7badc55798bdc67d
[ "MIT" ]
5
2016-10-11T09:40:32.000Z
2018-04-16T13:55:43.000Z
asapy/out_builder/html_builder.py
mlindauer/asapy
ec1f202b5f612a366f1e4aee7badc55798bdc67d
[ "MIT" ]
2
2019-11-24T02:41:55.000Z
2020-12-18T06:02:26.000Z
import argparse import logging import sys import os import shutil import inspect from traceback import print_exc from collections import namedtuple import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt __author__ = "Marius Lindauer" __copyright__ = "Copyright 2016, ML4AAD" __li...
34.254438
191
0.536708
7944b2bff17a0e37670baa6328342abd0e8cc23f
3,231
py
Python
src/scs_core/data/lin_regress.py
south-coast-science/scs_core
81ad4010abb37ca935f3a31ac805639ef53b1bcf
[ "MIT" ]
3
2019-03-12T01:59:58.000Z
2020-09-12T07:27:42.000Z
src/scs_core/data/lin_regress.py
south-coast-science/scs_core
81ad4010abb37ca935f3a31ac805639ef53b1bcf
[ "MIT" ]
1
2018-04-20T07:58:38.000Z
2021-03-27T08:52:45.000Z
src/scs_core/data/lin_regress.py
south-coast-science/scs_core
81ad4010abb37ca935f3a31ac805639ef53b1bcf
[ "MIT" ]
4
2017-09-29T13:08:43.000Z
2019-10-09T09:13:58.000Z
""" Created on 18 Sep 2021 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) A high-performance linear regression utility requiring scipy https://www.w3schools.com/python/python_ml_linear_regression.asp """ from collections import OrderedDict from scipy import stats from scs_core.data.json import JSONable...
27.151261
118
0.42216
7944b303dce10ba162b7f0db76d88511c9a45cec
7,833
py
Python
xclim/sdba/detrending.py
ClimateImpactLab/xclim
b4877050223c58afc1089961a2a516bda26d3917
[ "Apache-2.0" ]
null
null
null
xclim/sdba/detrending.py
ClimateImpactLab/xclim
b4877050223c58afc1089961a2a516bda26d3917
[ "Apache-2.0" ]
1
2021-03-29T18:39:50.000Z
2021-04-05T19:16:05.000Z
xclim/sdba/detrending.py
ClimateImpactLab/xclim
b4877050223c58afc1089961a2a516bda26d3917
[ "Apache-2.0" ]
1
2021-03-02T20:12:28.000Z
2021-03-02T20:12:28.000Z
"""Detrending objects.""" from typing import Union import xarray as xr from .base import Grouper, ParametrizableWithDataset, parse_group from .loess import loess_smoothing from .utils import ADDITIVE, apply_correction, invert class BaseDetrend(ParametrizableWithDataset): """Base class for detrending objects. ...
34.506608
103
0.632069
7944b30e6aa8ed9876f67b5e8a4694b7c0c82c29
1,132
py
Python
ssh-for-lab/labssh/myssh.py
LogicJake/tools
9630dcdbeec92ccc1548bb527fc5268039bb79b8
[ "MIT" ]
null
null
null
ssh-for-lab/labssh/myssh.py
LogicJake/tools
9630dcdbeec92ccc1548bb527fc5268039bb79b8
[ "MIT" ]
null
null
null
ssh-for-lab/labssh/myssh.py
LogicJake/tools
9630dcdbeec92ccc1548bb527fc5268039bb79b8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: LogicJake # @Date: 2018-12-30 14:18:43 # @Last Modified time: 2018-12-30 18:42:59 from __future__ import print_function import os import requests import re class NoIPFoundException(Exception): def __init__(self, err='fail to find IP from the website'): Exception.__ini...
22.196078
63
0.613958
7944b3e0d7cd2285d0d18145e9b9b39d4f66b0a3
1,895
py
Python
data.py
ConorFoy/neural-processes
b40219ab26c209f5675d77549e372aa6ac0a6bb4
[ "Apache-2.0" ]
null
null
null
data.py
ConorFoy/neural-processes
b40219ab26c209f5675d77549e372aa6ac0a6bb4
[ "Apache-2.0" ]
null
null
null
data.py
ConorFoy/neural-processes
b40219ab26c209f5675d77549e372aa6ac0a6bb4
[ "Apache-2.0" ]
2
2020-03-06T10:28:39.000Z
2020-04-05T12:06:59.000Z
import itertools from midi_to_statematrix import upperBound, lowerBound def startSentinel(): def noteSentinel(note): position = note part_position = [position] pitchclass = (note + lowerBound) % 12 part_pitchclass = [int(i == pitchclass) for i in range(12)] ...
35.092593
122
0.670185
7944b42873efc1a15be3dec22cff14e0b6e4e09b
18,360
py
Python
src/talon/post/create_abundance_file_from_database.py
vinay-swamy/TALON
ce6f403035a9697334518c39bfe56a4550884699
[ "MIT" ]
47
2020-03-31T19:56:11.000Z
2022-03-31T18:00:21.000Z
src/talon/post/create_abundance_file_from_database.py
vinay-swamy/TALON
ce6f403035a9697334518c39bfe56a4550884699
[ "MIT" ]
44
2020-03-23T02:15:08.000Z
2022-03-30T17:27:26.000Z
src/talon/post/create_abundance_file_from_database.py
vinay-swamy/TALON
ce6f403035a9697334518c39bfe56a4550884699
[ "MIT" ]
11
2020-05-13T18:41:23.000Z
2021-12-28T07:48:58.000Z
# TALON: Techonology-Agnostic Long Read Analysis Pipeline # Author: Dana Wyman # ----------------------------------------------------------------------------- # create_abundance_file_from_database.py is a utility that outputs the abundance # for each transcript in the TALON database across datasets. Modified by # fil...
38.816068
117
0.646351
7944b47613209347459c86431a4df3fd9e69a972
8,024
py
Python
src/run.py
hex-plex/GNN-MARL
ebe964a4eb749fd8d2780af18aead85e342d2988
[ "Apache-2.0" ]
1
2022-03-22T14:59:05.000Z
2022-03-22T14:59:05.000Z
src/run.py
hex-plex/GNN-MARL
ebe964a4eb749fd8d2780af18aead85e342d2988
[ "Apache-2.0" ]
null
null
null
src/run.py
hex-plex/GNN-MARL
ebe964a4eb749fd8d2780af18aead85e342d2988
[ "Apache-2.0" ]
null
null
null
import datetime import os import pprint import time import threading import torch as th from types import SimpleNamespace as SN from utils.logging import Logger from utils.timehelper import time_left, time_str from os.path import dirname, abspath from learners import REGISTRY as le_REGISTRY from runners import REGISTR...
34.735931
116
0.64332
7944b557bbf1ee69d4b4e2050cce201e85ec49c3
3,014
py
Python
brca_exchange_cooccurrence_analysis/extract_roh_region_distributions.plot.py
glennhickey/CharlieSandbox
2949f8357433a6219abf192f899ab50e2c8edaba
[ "MIT" ]
null
null
null
brca_exchange_cooccurrence_analysis/extract_roh_region_distributions.plot.py
glennhickey/CharlieSandbox
2949f8357433a6219abf192f899ab50e2c8edaba
[ "MIT" ]
null
null
null
brca_exchange_cooccurrence_analysis/extract_roh_region_distributions.plot.py
glennhickey/CharlieSandbox
2949f8357433a6219abf192f899ab50e2c8edaba
[ "MIT" ]
1
2021-08-03T17:23:47.000Z
2021-08-03T17:23:47.000Z
import matplotlib matplotlib.use('Agg') import vcf, argparse, sys import numpy as np import pandas as pd import math from scipy.stats import chisquare from collections import defaultdict import matplotlib matplotlib.use('Agg') import vcf, argparse, sys import numpy as np import pandas as pd import math import seaborn a...
39.657895
161
0.663238
7944b578ca9977be238c38b2e4d747986313a187
2,753
py
Python
calm/dsl/cli/click_options.py
tuxtof/calm-dsl
5af67435d8304b97e170a690068f2d5975e9bfe6
[ "Apache-2.0" ]
37
2019-12-23T15:23:20.000Z
2022-03-15T11:12:11.000Z
calm/dsl/cli/click_options.py
gabybeitler/calm-dsl
bac453413cfcf800eef95d89d5a7323c83654a93
[ "Apache-2.0" ]
144
2020-03-09T11:22:09.000Z
2022-03-28T21:34:09.000Z
calm/dsl/cli/click_options.py
gabybeitler/calm-dsl
bac453413cfcf800eef95d89d5a7323c83654a93
[ "Apache-2.0" ]
46
2020-01-23T14:28:04.000Z
2022-03-09T04:17:10.000Z
import click from calm.dsl.config import get_context from calm.dsl.log import CustomLogging def simple_verbosity_option(logging_mod=None, *names, **kwargs): """A decorator that adds a `--verbose, -v` option to the decorated command. Name can be configured through ``*names``. Keyword arguments are passed ...
33.168675
86
0.660371
7944b63be30eba9086c9010aa5c653c16c12e8a4
5,563
py
Python
ekgen/mpasocn.py
grnydawn/ekgen
9a199104b27cef7fb7a647957167df3ca8dfa7c1
[ "MIT" ]
null
null
null
ekgen/mpasocn.py
grnydawn/ekgen
9a199104b27cef7fb7a647957167df3ca8dfa7c1
[ "MIT" ]
null
null
null
ekgen/mpasocn.py
grnydawn/ekgen
9a199104b27cef7fb7a647957167df3ca8dfa7c1
[ "MIT" ]
null
null
null
import os, subprocess, json, shutil from microapp import App, appdict from ekgen.utils import xmlquery here = os.path.dirname(os.path.abspath(__file__)) class MPASOcnKernel(App): _name_ = "mpasocn" _version_ = "0.1.0" def __init__(self, mgr): self.add_argument("casedir", metavar="casedir", help=...
42.143939
139
0.577746
7944b65e8c798034580c0ec3ca7bc8a93c4c0e16
854
py
Python
userAuth/signUp/admin.py
amandeep4272/online-classroom
afedb3ccfea2cbb53b97c9f507a4fb2caf28c081
[ "MIT" ]
null
null
null
userAuth/signUp/admin.py
amandeep4272/online-classroom
afedb3ccfea2cbb53b97c9f507a4fb2caf28c081
[ "MIT" ]
null
null
null
userAuth/signUp/admin.py
amandeep4272/online-classroom
afedb3ccfea2cbb53b97c9f507a4fb2caf28c081
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import User,Subject,Question,Quiz,Answer,Student,TakenQuiz,StudentAnswer from .models import Room,Message class RoomAdmin(admin.ModelAdmin): list_display=['id','name'] class MessageAdmin(admin.ModelAdmin): list_display=['id','value','date','user','room'] admin.si...
25.117647
85
0.790398
7944b70cf7040569285f0553f08512b1df00c2df
6,095
py
Python
tensorflow_probability/python/distributions/gamma_gamma_test.py
souravsingh/probability
0519b63094fdaa4e326357a0cdff056d5ef76cd8
[ "Apache-2.0" ]
1
2019-10-13T19:52:59.000Z
2019-10-13T19:52:59.000Z
tensorflow_probability/python/distributions/gamma_gamma_test.py
souravsingh/probability
0519b63094fdaa4e326357a0cdff056d5ef76cd8
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/gamma_gamma_test.py
souravsingh/probability
0519b63094fdaa4e326357a0cdff056d5ef76cd8
[ "Apache-2.0" ]
1
2019-10-13T19:52:57.000Z
2019-10-13T19:52:57.000Z
# 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...
34.241573
78
0.637244
7944b858fab0f247ad90ebea472cc36f96ba5322
2,433
py
Python
algolib/disjoint_set/disjoint_set.py
niemmi/algolib
81a013af5ae1ca1e8cf8d3f2e2f1b4a9bce6ead8
[ "BSD-3-Clause" ]
null
null
null
algolib/disjoint_set/disjoint_set.py
niemmi/algolib
81a013af5ae1ca1e8cf8d3f2e2f1b4a9bce6ead8
[ "BSD-3-Clause" ]
null
null
null
algolib/disjoint_set/disjoint_set.py
niemmi/algolib
81a013af5ae1ca1e8cf8d3f2e2f1b4a9bce6ead8
[ "BSD-3-Clause" ]
null
null
null
"""Disjoint-set data structure that allows efficient way of finding which set item belongs to and merging two different sets. Time complexity of the operations: - Find which set item belongs to: O(log n) - Merging two sets: O(log n) - Checking if two items belong to same set: O(log n) For more information see Wikiped...
30.037037
80
0.592684
7944b86daa75967f5fe50b9d565e099a8c60f0ae
682
py
Python
stream_alert/rule_processor/__init__.py
tuapuikia/streamalert
b1f733259aa051f8d533e7881018280fe77d7bda
[ "Apache-2.0" ]
1
2018-11-18T12:13:44.000Z
2018-11-18T12:13:44.000Z
stream_alert/rule_processor/__init__.py
tuapuikia/streamalert
b1f733259aa051f8d533e7881018280fe77d7bda
[ "Apache-2.0" ]
110
2019-02-13T05:32:07.000Z
2021-07-29T05:42:01.000Z
stream_alert/rule_processor/__init__.py
tuapuikia/streamalert
b1f733259aa051f8d533e7881018280fe77d7bda
[ "Apache-2.0" ]
1
2019-11-01T01:03:47.000Z
2019-11-01T01:03:47.000Z
"""Initialize logging for the rule processor.""" import logging import os from stream_alert.shared import RULE_PROCESSOR_NAME as FUNCTION_NAME # Create a package level logger to import LEVEL = os.environ.get('LOGGER_LEVEL', 'INFO').upper() # Cast integer levels to avoid a ValueError if LEVEL.isdigit(): LEVEL = i...
28.416667
93
0.741935
7944b8eb91b723752af2a0c88d1fe94b9bb1231e
14,830
py
Python
middleware/job_information_manager.py
alan-turing-institute/gateway-middleware-old
f09f6099f33f66ec95c4b24c0ae41eebfb68875c
[ "MIT" ]
3
2017-08-03T07:40:08.000Z
2019-07-29T11:39:52.000Z
middleware/job_information_manager.py
alan-turing-institute/gateway-middleware-old
f09f6099f33f66ec95c4b24c0ae41eebfb68875c
[ "MIT" ]
58
2017-06-22T15:02:53.000Z
2018-01-08T16:06:01.000Z
middleware/job_information_manager.py
alan-turing-institute/gateway-middleware-old
f09f6099f33f66ec95c4b24c0ae41eebfb68875c
[ "MIT" ]
null
null
null
import os import posixpath from mako.template import Template as MakoTemplate from middleware.job.schema import Template from middleware.ssh import ssh import re import json from instance.config import * from werkzeug.exceptions import ServiceUnavailable # precedence for secrets variables is: # 1. Via environment vara...
36.170732
79
0.621173
7944ba2d1962e57676bc5867d046434adc4000ad
470
py
Python
pip_services_logging/logic/__init__.py
pip-services-infrastructure/pip-services-logging-python
5b1f6eb4e0204004fb7b4affa527d9d3325bb3c7
[ "MIT" ]
null
null
null
pip_services_logging/logic/__init__.py
pip-services-infrastructure/pip-services-logging-python
5b1f6eb4e0204004fb7b4affa527d9d3325bb3c7
[ "MIT" ]
null
null
null
pip_services_logging/logic/__init__.py
pip-services-infrastructure/pip-services-logging-python
5b1f6eb4e0204004fb7b4affa527d9d3325bb3c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ pip_services_logging.logic.__init__ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Logic module initialization :copyright: Conceptual Vision Consulting LLC 2015-2016, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ __all__ = [ 'IL...
27.647059
89
0.665957
7944bc0c1e652fd5af2155d7ecb44ee0e5d2ff6b
88
py
Python
plugins/splunk/komand_splunk/actions/modify_saved_search_properties/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/splunk/komand_splunk/actions/modify_saved_search_properties/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/splunk/komand_splunk/actions/modify_saved_search_properties/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .action import ModifySavedSearchProperties
29.333333
47
0.818182
7944be2fdbfb92c177326b7bacb81ab6a621e09d
2,962
py
Python
test/python/transpiler/test_remove_reset_in_zero_state.py
dmquinones/qiskit-terra
f8fdfc514b051b4a37f7ac738b9716aecba8fc37
[ "Apache-2.0" ]
null
null
null
test/python/transpiler/test_remove_reset_in_zero_state.py
dmquinones/qiskit-terra
f8fdfc514b051b4a37f7ac738b9716aecba8fc37
[ "Apache-2.0" ]
null
null
null
test/python/transpiler/test_remove_reset_in_zero_state.py
dmquinones/qiskit-terra
f8fdfc514b051b4a37f7ac738b9716aecba8fc37
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """Test RemoveResetInZeroState pass""" import unittest from qiskit import QuantumRegister, QuantumCircuit from qiskit.trans...
29.326733
78
0.619176
7944be85b9cf10e60d2283f0bf5f17c1fcce88ba
54,358
py
Python
datumaro/components/operations.py
shivam124081/datumaro
3aa8842a3649ec8e05c0bfe042794823375b812b
[ "MIT" ]
null
null
null
datumaro/components/operations.py
shivam124081/datumaro
3aa8842a3649ec8e05c0bfe042794823375b812b
[ "MIT" ]
null
null
null
datumaro/components/operations.py
shivam124081/datumaro
3aa8842a3649ec8e05c0bfe042794823375b812b
[ "MIT" ]
null
null
null
# Copyright (C) 2020 Intel Corporation # # SPDX-License-Identifier: MIT from collections import OrderedDict from copy import deepcopy import hashlib import logging as log import attr import cv2 import numpy as np from attr import attrib, attrs from unittest import TestCase from datumaro.components.cli_plugin import ...
32.627851
90
0.556735
7944bed12193530c79179bad0d0c8a42c5887c38
5,882
py
Python
samuilivanov23-chitanka/import_into_database.py
samuilivanov23/training-projects
9791f359da9589524231c9c9d4d97f2bfbde71f3
[ "Apache-2.0" ]
null
null
null
samuilivanov23-chitanka/import_into_database.py
samuilivanov23/training-projects
9791f359da9589524231c9c9d4d97f2bfbde71f3
[ "Apache-2.0" ]
null
null
null
samuilivanov23-chitanka/import_into_database.py
samuilivanov23/training-projects
9791f359da9589524231c9c9d4d97f2bfbde71f3
[ "Apache-2.0" ]
null
null
null
import psycopg2, multiprocessing from dbconfig import chitanka_dbname, chitanka_dbuser, chitanka_dbpassword import os import re, nltk from pathlib import Path import requests, os,re import glob def importData(start, end): my_dirs = glob.glob("../books/*") my_dirs.sort() try: connection = psycopg2....
41.422535
109
0.4983
7944bf6749ac082f1129a802be88b51c42e638f3
601
py
Python
demo/estimate_poses.py
ngerstle/soccerontable
25426ff0f8fe0ce008b99c5c0fdbb35091d8d92c
[ "BSD-2-Clause" ]
null
null
null
demo/estimate_poses.py
ngerstle/soccerontable
25426ff0f8fe0ce008b99c5c0fdbb35091d8d92c
[ "BSD-2-Clause" ]
null
null
null
demo/estimate_poses.py
ngerstle/soccerontable
25426ff0f8fe0ce008b99c5c0fdbb35091d8d92c
[ "BSD-2-Clause" ]
null
null
null
import os, sys import argparse import soccer3d parser = argparse.ArgumentParser(description='Calibrate a soccer video') parser.add_argument('--path_to_data', default='/opt/datadir', help='path') parser.add_argument('--openpose_dir', default='/opt/openpose', help='path') opt, _ = parser.parse_known_args() db = socce...
26.130435
75
0.787022
7944bf6816e6492445a83e6b108066643571cee6
588
py
Python
ddtrace/contrib/mako/__init__.py
mbmblbelt/dd-trace-py
906fb7fa91d0ed59d263df74e14aacc8b2d70251
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/mako/__init__.py
mbmblbelt/dd-trace-py
906fb7fa91d0ed59d263df74e14aacc8b2d70251
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/mako/__init__.py
mbmblbelt/dd-trace-py
906fb7fa91d0ed59d263df74e14aacc8b2d70251
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
""" The ``mako`` integration traces templates rendering. Auto instrumentation is available using the ``patch``. The following is an example:: from ddtrace import patch from mako.template import Template patch(mako=True) t = Template(filename="index.html") """ from ...utils.importlib import require_m...
21.777778
84
0.664966
7944bf955a923a8082b2634833dd588c9b8a8073
864
py
Python
mnist/arg_parser.py
mokpro/tensorflow_examples
c1d600a92a1ede3a187b7839f0842ff188373fdf
[ "MIT" ]
10
2017-04-20T02:53:47.000Z
2018-04-19T03:52:49.000Z
mnist/arg_parser.py
mokpro/tensorflow_examples
c1d600a92a1ede3a187b7839f0842ff188373fdf
[ "MIT" ]
null
null
null
mnist/arg_parser.py
mokpro/tensorflow_examples
c1d600a92a1ede3a187b7839f0842ff188373fdf
[ "MIT" ]
13
2016-12-23T03:21:02.000Z
2020-04-11T19:59:37.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import sys import random ALL_OPTIMIZERS = [ 'GradientDescent', 'Adagrad', 'Adadelta', 'ProximalAdagrad', 'ProximalGradientDescent', 'Adam' ] def arg_parser(): pars...
22.153846
46
0.672454
7944bfaddedc54f861b5239d9632859126c2e27b
6,791
py
Python
msgraph/cli/command_modules/identitysignins/azext_identitysignins/vendored_sdks/identitysignins/aio/operations/_informationprotectioninformationprotection_operations.py
microsoftgraph/msgraph-cli-archived
489f70bf4ede1ce67b84bfb31e66da3e4db76062
[ "MIT" ]
null
null
null
msgraph/cli/command_modules/identitysignins/azext_identitysignins/vendored_sdks/identitysignins/aio/operations/_informationprotectioninformationprotection_operations.py
microsoftgraph/msgraph-cli-archived
489f70bf4ede1ce67b84bfb31e66da3e4db76062
[ "MIT" ]
22
2022-03-29T22:54:37.000Z
2022-03-29T22:55:27.000Z
msgraph/cli/command_modules/identitysignins/azext_identitysignins/vendored_sdks/identitysignins/aio/operations/_informationprotectioninformationprotection_operations.py
microsoftgraph/msgraph-cli-archived
489f70bf4ede1ce67b84bfb31e66da3e4db76062
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.273333
133
0.679281