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
c7e0f661a2de4d17041fc94e7085f32cacb276c1
579
py
Python
daisychain/channel_facebook/tests/test_model.py
daisychainme/daisychain
245d0041f1efd2d6cc110f60aebf2e2dee98bcdb
[ "MIT" ]
5
2016-09-27T10:44:59.000Z
2022-03-29T08:16:44.000Z
daisychain/channel_facebook/tests/test_model.py
daisychainme/daisychain
245d0041f1efd2d6cc110f60aebf2e2dee98bcdb
[ "MIT" ]
null
null
null
daisychain/channel_facebook/tests/test_model.py
daisychainme/daisychain
245d0041f1efd2d6cc110f60aebf2e2dee98bcdb
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.test import TestCase from channel_facebook.models import FacebookAccount class ModelTest(TestCase): fixtures = ['initial_data.json'] def test__str__(self): user = User.objects.create_user("daisychain") facebook_user = FacebookAccount( ...
25.173913
56
0.62867
c2251c9366d4cb29db1040d2ed231c13e2e9aea1
8,235
py
Python
skhep/utils/provenance.py
AdvaitDhingra/scikit-hep
1e08901447c3e42e4c4b703ea6c09e3bd0db25af
[ "BSD-3-Clause" ]
null
null
null
skhep/utils/provenance.py
AdvaitDhingra/scikit-hep
1e08901447c3e42e4c4b703ea6c09e3bd0db25af
[ "BSD-3-Clause" ]
null
null
null
skhep/utils/provenance.py
AdvaitDhingra/scikit-hep
1e08901447c3e42e4c4b703ea6c09e3bd0db25af
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license, see LICENSE. """ Submodule for helpers to the Dataset-like classes ================================================= User-facing classes that structure the provenance information, i.e. the history of operations performed on the dataset. **Availabl...
29.410714
119
0.534183
0114e5435239c0cad623a431f491efe1169f85dd
2,147
py
Python
cursoemvideoPy/Mundo2/ex045.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
cursoemvideoPy/Mundo2/ex045.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
cursoemvideoPy/Mundo2/ex045.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
from random import choice from time import sleep print('-=' * 20) print(' ' * 11, 'GAME JOKENPÔ') print('-=' * 20) estilo = '/' * 50 cor = {'limpar': '\033[m', 'red': '\033[31m', 'green': '\033[32m', 'yellow': '\033[33m', 'white': '\033[7:40m'} print('{}{}{}'.format(cor['white'], estilo, c...
35.196721
100
0.59851
c0f4d7adcc1b2afab58318ce7315602788fa45b5
8,165
py
Python
isi_sdk_8_2_0/isi_sdk_8_2_0/models/upgrade_cluster_cluster_overview.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_0/isi_sdk_8_2_0/models/upgrade_cluster_cluster_overview.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_0/isi_sdk_8_2_0/models/upgrade_cluster_cluster_overview.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 7 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class UpgradeClusterClusterOverv...
37.976744
132
0.642621
70e7c11daa5bcbc590b63ac9961fc9c638984a0a
216
py
Python
Term2/Session 11/3-os-list.py
theseana/apondaone
7cbf3572a86c73220329804fee1f3d03842ae902
[ "MIT" ]
null
null
null
Term2/Session 11/3-os-list.py
theseana/apondaone
7cbf3572a86c73220329804fee1f3d03842ae902
[ "MIT" ]
null
null
null
Term2/Session 11/3-os-list.py
theseana/apondaone
7cbf3572a86c73220329804fee1f3d03842ae902
[ "MIT" ]
null
null
null
import os BASE = os.getcwd() files_directories_names_list = os.listdir(BASE) for name in files_directories_names_list: if name.endswith(".txt"): address = BASE + "/" + name os.remove(address)
18
47
0.671296
ebd626ade31609aa68dbcf356660ab8f35eb2e1f
352
py
Python
spider/concurrent/threads_inst/__init__.py
YunofHD/PSpider
c1c9e1e7c61365e140a55541cc558d7c1b9e50f2
[ "BSD-2-Clause" ]
1
2021-07-05T07:10:04.000Z
2021-07-05T07:10:04.000Z
spider/concurrent/threads_inst/__init__.py
YunofHD/PSpider
c1c9e1e7c61365e140a55541cc558d7c1b9e50f2
[ "BSD-2-Clause" ]
null
null
null
spider/concurrent/threads_inst/__init__.py
YunofHD/PSpider
c1c9e1e7c61365e140a55541cc558d7c1b9e50f2
[ "BSD-2-Clause" ]
null
null
null
# _*_ coding: utf-8 _*_ """ define thread_instances of url_fetch, htm_parse, item_save and proxies for thread_pool """ from .threads_inst_base import TPEnum, MonitorThread from .threads_inst_fetch import FetchThread from .threads_inst_parse import ParseThread from .threads_inst_save import SaveThread from .threads_in...
29.333333
86
0.832386
969a1887d830317635f12fc590003b0b8d6bda85
2,699
py
Python
dms/utils/database_config.py
zhmsg/dms
3ac2b71c4a83ac721987c6f5a2f81bc0618ceca2
[ "MIT" ]
null
null
null
dms/utils/database_config.py
zhmsg/dms
3ac2b71c4a83ac721987c6f5a2f81bc0618ceca2
[ "MIT" ]
12
2015-09-18T01:19:28.000Z
2021-12-13T19:51:10.000Z
dms/utils/database_config.py
zhmsg/dms
3ac2b71c4a83ac721987c6f5a2f81bc0618ceca2
[ "MIT" ]
1
2017-06-30T08:11:10.000Z
2017-06-30T08:11:10.000Z
#! /usr/bin/env python # coding: utf-8 from six.moves import configparser from dms.utils.config_dir import ConfigDir from dms.utils.singleton import Singleton class MysqlConfig(Singleton): config_filename = ["mysql.conf", "mysql_app.conf"] def __init__(self): conf_d = ConfigDir() config_pat...
34.602564
78
0.595406
8df64e20c3aeb2eef73a68daed9c48b1bcb7f762
1,327
py
Python
aiida/cmdline/commands/cmd_data/cmd_array.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
1
2016-09-12T10:51:00.000Z
2016-09-12T10:51:00.000Z
aiida/cmdline/commands/cmd_data/cmd_array.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
17
2020-03-11T17:04:05.000Z
2020-05-01T09:34:45.000Z
aiida/cmdline/commands/cmd_data/cmd_array.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
40.212121
76
0.547099
a07e70d5836885ff80be58fbfa7c680bd166535f
27,277
py
Python
bot/exts/backend/branding/_cog.py
MrGrote/bot
acaae30d1c6d401d383e3c1cc55dd1c19ced32c3
[ "MIT" ]
1
2022-03-08T07:10:30.000Z
2022-03-08T07:10:30.000Z
bot/exts/backend/branding/_cog.py
MrGrote/bot
acaae30d1c6d401d383e3c1cc55dd1c19ced32c3
[ "MIT" ]
null
null
null
bot/exts/backend/branding/_cog.py
MrGrote/bot
acaae30d1c6d401d383e3c1cc55dd1c19ced32c3
[ "MIT" ]
null
null
null
import asyncio import contextlib import random import typing as t from datetime import timedelta from enum import Enum from operator import attrgetter import async_timeout import disnake from arrow import Arrow from async_rediscache import RedisCache from disnake.ext import commands, tasks from bot.bot import Bot fro...
41.644275
120
0.676101
e42b6eb71f6b12edbaef993591658fdb98ec6e08
21,126
py
Python
bin/Lib/pkgutil.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
1
2020-05-25T22:18:25.000Z
2020-05-25T22:18:25.000Z
bin/Lib/pkgutil.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
null
null
null
bin/Lib/pkgutil.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
null
null
null
"""Utilities to support packages.""" from functools import singledispatch as simplegeneric import importlib import importlib.util import importlib.machinery import os import os.path import sys from types import ModuleType import warnings __all__ = [ 'get_importer', 'iter_importers', 'get_loader', 'find_loader', ...
33.640127
79
0.608208
2e3cad6bdd117deecec9eb6e56516672f8d7ac9c
1,976
py
Python
fbm/common/email_sender.py
damklis/fb_group_manager
3ebbc5efceab1a2698faa57e9e6329cb8f0561cc
[ "BSD-2-Clause" ]
1
2020-05-06T01:54:27.000Z
2020-05-06T01:54:27.000Z
fbm/common/email_sender.py
damklis/fb_group_manager
3ebbc5efceab1a2698faa57e9e6329cb8f0561cc
[ "BSD-2-Clause" ]
1
2021-06-02T00:36:13.000Z
2021-06-02T00:36:13.000Z
fbm/common/email_sender.py
damklis/fb_group_manager
3ebbc5efceab1a2698faa57e9e6329cb8f0561cc
[ "BSD-2-Clause" ]
null
null
null
import smtplib, ssl from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText class GmailEmailSender(object): def __init__(self, email_owner, password, subject): self.email_owner = email_owner self.__password = password self.subject = subject self.context...
29.939394
71
0.590587
8696d851d3c95ef2fbc8762f829a699cbb1fad40
626
py
Python
Animals/Fishwatch_API/unit_tests.py
Jay4C/API
64b691bcf929ceb142145c6bbe27a049a76d7649
[ "MIT" ]
1
2022-02-28T05:05:35.000Z
2022-02-28T05:05:35.000Z
Animals/Fishwatch_API/unit_tests.py
Jay4C/API
64b691bcf929ceb142145c6bbe27a049a76d7649
[ "MIT" ]
null
null
null
Animals/Fishwatch_API/unit_tests.py
Jay4C/API
64b691bcf929ceb142145c6bbe27a049a76d7649
[ "MIT" ]
null
null
null
import unittest from requests_tor import RequestsTor # https://www.fishwatch.gov/resources class UnitTestsFishbaseAPI(unittest.TestCase): def test_Single_species_example(self): print('test_Single_species_example') rt = RequestsTor() response = rt.get("https://www.fishwatch.gov/api/specie...
22.357143
78
0.688498
aa119f7d895dd47585b7f13583a0594666d8bd08
78
py
Python
src/mus.py
erfannariman/MUS
68282ffd3995d55e1e8a5a2bf77c7d44c8fe3796
[ "Apache-2.0" ]
null
null
null
src/mus.py
erfannariman/MUS
68282ffd3995d55e1e8a5a2bf77c7d44c8fe3796
[ "Apache-2.0" ]
null
null
null
src/mus.py
erfannariman/MUS
68282ffd3995d55e1e8a5a2bf77c7d44c8fe3796
[ "Apache-2.0" ]
null
null
null
from example_test import create_example_df x = create_example_df() print(x)
13
42
0.807692
9550a0e5be396bd12e1a058812d4664e693c1c2a
1,880
py
Python
src/whcollect/requests.py
trk9001/whcollect
13b218274354210ae0e8a5b970379889dceb30ee
[ "MIT" ]
null
null
null
src/whcollect/requests.py
trk9001/whcollect
13b218274354210ae0e8a5b970379889dceb30ee
[ "MIT" ]
null
null
null
src/whcollect/requests.py
trk9001/whcollect
13b218274354210ae0e8a5b970379889dceb30ee
[ "MIT" ]
null
null
null
import asyncio import logging from collections.abc import Iterable from typing import Literal from aiohttp import ClientResponse, ClientResponseError, ClientSession from yarl import URL from .exceptions import BadResponse logger = logging.getLogger(__name__) # Literal type for supported HTTP methods. HTTP_METHOD = ...
29.84127
83
0.665957
be194ed39da097060c49faed4ab89bddacc1f726
7,362
py
Python
config_sample/settings.py
e-babani/geocontrib
dca40cf81f64daad85a5dbac4ab3fbf80d6bbdf6
[ "Apache-2.0" ]
null
null
null
config_sample/settings.py
e-babani/geocontrib
dca40cf81f64daad85a5dbac4ab3fbf80d6bbdf6
[ "Apache-2.0" ]
null
null
null
config_sample/settings.py
e-babani/geocontrib
dca40cf81f64daad85a5dbac4ab3fbf80d6bbdf6
[ "Apache-2.0" ]
null
null
null
""" Django settings for config project. Generated by 'django-admin startproject' using Django 2.2. 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/ """ import os from ...
32.72
117
0.680793
d0dfba9466c279579d3e1f1fda9c5ae85ec9bc4d
412
py
Python
mult999/second/nn1/task.py
tiptop-labs/math-ai
3de1de63f6532a8b8cd3915bb3fefbbd18f14a56
[ "MIT" ]
null
null
null
mult999/second/nn1/task.py
tiptop-labs/math-ai
3de1de63f6532a8b8cd3915bb3fefbbd18f14a56
[ "MIT" ]
null
null
null
mult999/second/nn1/task.py
tiptop-labs/math-ai
3de1de63f6532a8b8cd3915bb3fefbbd18f14a56
[ "MIT" ]
null
null
null
import mult999.second.nn1.model as model import mult999.trainer_utils import tensorflow as tf BATCH_SIZE = 200 BUFFER_SIZE = 200 MODEL_ID = "mult999_second_nn1" REPEAT = 10 def gather_second(in_chars, out_chars): return (in_chars, tf.gather(out_chars, [1], axis = 1)) if __name__ == "__main__": mult999.traine...
25.75
58
0.754854
1abc17c8c7f36eda8fc7206802e1ead2b7bf55cf
2,413
py
Python
examples/adspygoogle/dfp/v201308/report_service/run_inventory_report.py
cherry-wb/googleads-python-lib
24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04
[ "Apache-2.0" ]
null
null
null
examples/adspygoogle/dfp/v201308/report_service/run_inventory_report.py
cherry-wb/googleads-python-lib
24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04
[ "Apache-2.0" ]
null
null
null
examples/adspygoogle/dfp/v201308/report_service/run_inventory_report.py
cherry-wb/googleads-python-lib
24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04
[ "Apache-2.0" ]
2
2020-04-02T19:00:31.000Z
2020-08-06T03:28:38.000Z
#!/usr/bin/python # # Copyright 2013 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 b...
34.971014
80
0.690427
efae21c3f1d450315191573d66565a78b955b527
20,969
py
Python
code_registration.py.py
Tesfa-eth/Tesfatsion-Shiferaw
e7bf3be62cff3da916cf63648e5e96069d803d91
[ "MIT" ]
null
null
null
code_registration.py.py
Tesfa-eth/Tesfatsion-Shiferaw
e7bf3be62cff3da916cf63648e5e96069d803d91
[ "MIT" ]
null
null
null
code_registration.py.py
Tesfa-eth/Tesfatsion-Shiferaw
e7bf3be62cff3da916cf63648e5e96069d803d91
[ "MIT" ]
null
null
null
from graphics import * import csv def main(): skill = [] courses_suggestion = [] skills = 0 print("Welcome to Easybusycozy! Easybusycosy will help you choose your classes for the next school term. \nIt will " "also show the course schedule grid and help you catch classes which clash!!...
36.852373
121
0.494778
369d9374a33baf401fe15fa1d8d619a273dd1652
1,836
py
Python
NumpyNeuralNetwork/nnn/optimizers.py
jiunbae/ITE4053
873d53493b7588f67406e0e6ed0e74e5e3f957bc
[ "MIT" ]
5
2019-06-20T09:54:04.000Z
2021-06-15T04:22:49.000Z
NumpyNeuralNetwork/nnn/optimizers.py
jiunbae/ITE4053
873d53493b7588f67406e0e6ed0e74e5e3f957bc
[ "MIT" ]
null
null
null
NumpyNeuralNetwork/nnn/optimizers.py
jiunbae/ITE4053
873d53493b7588f67406e0e6ed0e74e5e3f957bc
[ "MIT" ]
1
2019-04-19T04:52:34.000Z
2019-04-19T04:52:34.000Z
from typing import List import numpy as np class Optimizer(object): def __init__(self, *args, **kwargs): self.iteration = 0 def __iter__(self): return self def __next__(self): self.iteration += 1 def get_update(self, params: np.ndarray, grads: np.ndarray): pass c...
30.6
115
0.573529
dec60b11f150dd37f5404f0a750520aedb9935d1
1,693
py
Python
nautobot/tenancy/api/views.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
384
2021-02-24T01:40:40.000Z
2022-03-30T10:30:59.000Z
nautobot/tenancy/api/views.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
1,067
2021-02-24T00:58:08.000Z
2022-03-31T23:38:23.000Z
nautobot/tenancy/api/views.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
128
2021-02-24T02:45:16.000Z
2022-03-20T18:48:36.000Z
from rest_framework.routers import APIRootView from nautobot.circuits.models import Circuit from nautobot.dcim.models import Device, Rack, Site from nautobot.extras.api.views import CustomFieldModelViewSet from nautobot.ipam.models import IPAddress, Prefix, VLAN, VRF from nautobot.tenancy import filters from nautobot....
30.781818
83
0.754873
b2c59e115add15b2e03d16c64cd546d607dbe710
305
py
Python
iwn/extensions.py
bear/IndieWebNews
0072f6e19e7c74a479d6a7ddbf2f096a87e17243
[ "CC0-1.0" ]
1
2016-03-03T10:44:31.000Z
2016-03-03T10:44:31.000Z
iwn/extensions.py
bear/IndieWebNews
0072f6e19e7c74a479d6a7ddbf2f096a87e17243
[ "CC0-1.0" ]
1
2016-03-03T10:29:47.000Z
2016-03-03T10:35:04.000Z
iwn/extensions.py
bear/indiewebnews
0072f6e19e7c74a479d6a7ddbf2f096a87e17243
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ :copyright: (c) 2016 by Mike Taylor :license: CC0 1.0 Universal, see LICENSE for more details. """ from flask.ext.cache import Cache from flask.ext.debugtoolbar import DebugToolbarExtension # Setup flask cache cache = Cache() debug_toolbar = DebugToolbarExtension()
21.785714
58
0.718033
3e8d73fd678dcb823d7caaf7a42a5eb2de621c27
1,199
py
Python
examples/three_layer_nn.py
bobbyscharmann/flypy
39dce7decd9633e7d90bb4c77472c8c40aeda61c
[ "MIT" ]
null
null
null
examples/three_layer_nn.py
bobbyscharmann/flypy
39dce7decd9633e7d90bb4c77472c8c40aeda61c
[ "MIT" ]
null
null
null
examples/three_layer_nn.py
bobbyscharmann/flypy
39dce7decd9633e7d90bb4c77472c8c40aeda61c
[ "MIT" ]
null
null
null
import numpy as np def nonlin(x,deriv=False): if(deriv==True): return x*(1-x) return 1/(1+np.exp(-x)) X = np.array([[0,0,1], [0,1,1], [1,0,1], [1,1,1]]) y = np.array([[0], [1], [1], [0]]) np.random.seed(1) # randomly initialize our weights wi...
23.509804
87
0.572977
06c8da98f60167e7c4f7769c7b2224092c04902e
30,095
py
Python
tests/integration/modules/state.py
pille/salt
47322575309faac8c4755287d930469caffc1c65
[ "Apache-2.0" ]
1
2019-04-16T11:09:50.000Z
2019-04-16T11:09:50.000Z
tests/integration/modules/state.py
pille/salt
47322575309faac8c4755287d930469caffc1c65
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/state.py
pille/salt
47322575309faac8c4755287d930469caffc1c65
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import python libs import os import shutil # Import Salt Testing libs from salttesting import skipIf from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration import salt.utils from salt.modules.virtualenv_mod import KNOWN_BINARY_NAM...
37.01722
112
0.527862
b8e4dca49e856a15b42d287c271833239ab2f4e3
1,340
py
Python
test/python/test_sqlitefs.py
cugu-stars/pyforensicstore
4d61465dfefbbc0c4e2daf590d5a52e4fbf12009
[ "MIT" ]
2
2020-04-15T10:05:55.000Z
2020-04-15T17:48:29.000Z
test/python/test_sqlitefs.py
cugu-stars/pyforensicstore
4d61465dfefbbc0c4e2daf590d5a52e4fbf12009
[ "MIT" ]
34
2020-04-23T17:40:19.000Z
2021-10-18T22:39:42.000Z
test/python/test_sqlitefs.py
cugu-stars/pyforensicstore
4d61465dfefbbc0c4e2daf590d5a52e4fbf12009
[ "MIT" ]
2
2020-05-04T13:38:05.000Z
2020-09-26T14:27:17.000Z
# Copyright (c) 2020 Siemens AG # # 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, distribu...
39.411765
82
0.76791
2eea4eb56a77a15a75c7f8409cd67942d9707ca6
7,992
py
Python
pypipeline/cell/compositecell/scalablecell/strategy/cloningstrategy/clonecell/aclonecell.py
JohannesVerherstraeten/pypipeline
1ccb2a2567dc3159123f6cacf6b25b6c6b1fbff2
[ "Apache-2.0" ]
3
2022-02-20T18:45:11.000Z
2022-02-20T19:09:40.000Z
pypipeline/cell/compositecell/scalablecell/strategy/cloningstrategy/clonecell/aclonecell.py
JohannesVerherstraeten/pypipeline
1ccb2a2567dc3159123f6cacf6b25b6c6b1fbff2
[ "Apache-2.0" ]
null
null
null
pypipeline/cell/compositecell/scalablecell/strategy/cloningstrategy/clonecell/aclonecell.py
JohannesVerherstraeten/pypipeline
1ccb2a2567dc3159123f6cacf6b25b6c6b1fbff2
[ "Apache-2.0" ]
1
2022-03-07T17:06:00.000Z
2022-03-07T17:06:00.000Z
# Copyright 2021 Johannes Verherstraeten # # 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 ...
41.195876
113
0.701201
1dc5a4c5aeb4c98a4125990f43a8a42a52192f3f
428
py
Python
env/script/django_console.py
ZhuoZhuoCrayon/AcousticKeyBoard-Web
0a0ead78aec7ed03898fd51e076aa57df966508c
[ "MIT" ]
null
null
null
env/script/django_console.py
ZhuoZhuoCrayon/AcousticKeyBoard-Web
0a0ead78aec7ed03898fd51e076aa57df966508c
[ "MIT" ]
null
null
null
env/script/django_console.py
ZhuoZhuoCrayon/AcousticKeyBoard-Web
0a0ead78aec7ed03898fd51e076aa57df966508c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import django import dotenv # 打印系统信息 print("Python %s on %s" % (sys.version, sys.platform)) print("Django %s" % django.get_version()) # 载入项目路径 sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS]) # 导入环境变量 dotenv.load_dotenv(dotenv_path=PROJECT_ROOT + "/env/dc_dev.env") # 启动Django if "s...
18.608696
64
0.735981
cee6517e57de93c83386b13267e9caec1b32016f
4,379
py
Python
tests/envs/test_wrapper.py
ktk1012/reinforceflow
88d426a5ce0480a8a0bf8f28f573582e950ebe15
[ "MIT" ]
12
2017-07-16T12:13:25.000Z
2022-03-08T04:45:16.000Z
tests/envs/test_wrapper.py
ktk1012/reinforceflow
88d426a5ce0480a8a0bf8f28f573582e950ebe15
[ "MIT" ]
null
null
null
tests/envs/test_wrapper.py
ktk1012/reinforceflow
88d426a5ce0480a8a0bf8f28f573582e950ebe15
[ "MIT" ]
4
2017-07-25T13:28:56.000Z
2018-12-01T11:05:09.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import unittest from collections import deque import numpy as np import numpy.testing as npt from gym import spaces from reinforceflow.envs import ObservationStackWrap from reinforceflow.envs import Vectorize...
36.798319
98
0.684403
235d7f35dce7150e1604174321284724f6a9be46
7,749
py
Python
AlmaApi.py
louxfaure/synchro_sudoc_controle_anomalies
e63335ad2e53c65cc6151871d20c9f216d72f9a6
[ "MIT" ]
null
null
null
AlmaApi.py
louxfaure/synchro_sudoc_controle_anomalies
e63335ad2e53c65cc6151871d20c9f216d72f9a6
[ "MIT" ]
null
null
null
AlmaApi.py
louxfaure/synchro_sudoc_controle_anomalies
e63335ad2e53c65cc6151871d20c9f216d72f9a6
[ "MIT" ]
null
null
null
import json import os import logging import xml.etree.ElementTree as ET import time import sys from math import * import requests from urllib3.util import Retry from requests.adapters import HTTPAdapter from datetime import date __version__ = '0.1.0' __api_version__ = 'v1' __apikey__ = os.getenv('ALMA_API_KEY') __regi...
38.552239
191
0.551684
19b90d2968f54b4b3fbc6ebdf38329c26909d521
608
py
Python
Practice/CrackingTheCodingInterview6Edition/Chapter2/task_2_6.py
K9173A/PracticeTasks
a5bf40385d079eb8457ae9b0ccdf779f8eb74371
[ "MIT" ]
null
null
null
Practice/CrackingTheCodingInterview6Edition/Chapter2/task_2_6.py
K9173A/PracticeTasks
a5bf40385d079eb8457ae9b0ccdf779f8eb74371
[ "MIT" ]
null
null
null
Practice/CrackingTheCodingInterview6Edition/Chapter2/task_2_6.py
K9173A/PracticeTasks
a5bf40385d079eb8457ae9b0ccdf779f8eb74371
[ "MIT" ]
null
null
null
""" Для кольцевого связного списка реализуйте алгоритм, возвращающий начальный узел петли. """ def get_list_circle_root(linked_list): """ Ищет и возвращает начальный узел петли из связного списка. :param linked_list: связный список. :return: нод, который является корнем пелти в связном списке. """...
27.636364
74
0.672697
12b1c7d25fee657cb167b6abdfeab8b718b5a107
468
py
Python
src/GPIOLibrary/mocks/RPi/__init__.py
ycbayrak/robotframework-gpio
1707ea739c7ea8251bfa6c904f69f527d7273f78
[ "Apache-2.0" ]
7
2021-10-01T11:28:47.000Z
2022-01-17T00:51:25.000Z
src/GPIOLibrary/mocks/RPi/__init__.py
ycbayrak/robotframework-gpio
1707ea739c7ea8251bfa6c904f69f527d7273f78
[ "Apache-2.0" ]
2
2021-10-05T07:55:15.000Z
2021-12-17T09:04:24.000Z
src/GPIOLibrary/mocks/RPi/__init__.py
ycbayrak/robotframework-gpio
1707ea739c7ea8251bfa6c904f69f527d7273f78
[ "Apache-2.0" ]
2
2021-07-09T16:15:00.000Z
2021-10-05T08:57:07.000Z
""" Mock module for RPi. Makes it easy to development on non ARM architectures. """ BCM = 11 BOARD = 10 BOTH = 33 FALLING = 32 HARD_PWM = 43 HIGH = 1 I2C = 42 IN = 1 LOW = 0 OUT = 0 PUD_DOWN = 21 PUD_OFF = 20 PUD_UP = 22 RISING = 31 RPI_INFO = { "MANUFACTURER": "Sony", "P1_REVISION": 3, "PROCESSOR": "BCM28...
14.181818
54
0.602564
a4da2f345d9855485c9bc9cbf1dda9bf6afd7cb5
656
py
Python
ailab/file_storage/views.py
virtan/FAI-PEP
8641a54b2328c343ab0470f195a42da1021d1392
[ "Apache-2.0" ]
1
2022-03-21T06:39:38.000Z
2022-03-21T06:39:38.000Z
ailab/file_storage/views.py
virtan/FAI-PEP
8641a54b2328c343ab0470f195a42da1021d1392
[ "Apache-2.0" ]
1
2021-04-19T09:50:14.000Z
2021-04-19T09:50:14.000Z
ailab/file_storage/views.py
isabella232/FAI-PEP
a4089c79ab765e7f05080348c2978a07c3487d4c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from .models import ModelFile from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt @csrf_exempt def upload(request): # Handle file upload if request.method == 'POST' and 'file' in request.FILES: fi...
22.62069
60
0.629573
18707c24f95f0fac3c79724c7e3bca3fef8dbd0c
12,613
py
Python
homeassistant/components/synology_dsm/const.py
jvaartjes/core
f5e51ad5f6e53c840323b2a81098d9425cb197c2
[ "Apache-2.0" ]
null
null
null
homeassistant/components/synology_dsm/const.py
jvaartjes/core
f5e51ad5f6e53c840323b2a81098d9425cb197c2
[ "Apache-2.0" ]
null
null
null
homeassistant/components/synology_dsm/const.py
jvaartjes/core
f5e51ad5f6e53c840323b2a81098d9425cb197c2
[ "Apache-2.0" ]
null
null
null
"""Constants for Synology DSM.""" from __future__ import annotations from dataclasses import dataclass from synology_dsm.api.core.security import SynoCoreSecurity from synology_dsm.api.core.upgrade import SynoCoreUpgrade from synology_dsm.api.core.utilization import SynoCoreUtilization from synology_dsm.api.dsm.infor...
33.018325
87
0.722112
cf4534df4fd00d29b8ebb55289cbf4123f229e92
23,529
py
Python
ironic/common/utils.py
hpproliant/ironic
4f62cd97196b2a0068700ffb17456912147778d0
[ "Apache-2.0" ]
null
null
null
ironic/common/utils.py
hpproliant/ironic
4f62cd97196b2a0068700ffb17456912147778d0
[ "Apache-2.0" ]
null
null
null
ironic/common/utils.py
hpproliant/ironic
4f62cd97196b2a0068700ffb17456912147778d0
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # Copyright (c) 2012 NTT DOCOMO, INC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not...
33
79
0.644354
677f6a44897cb135924967ad70cbb5539ab8c7ef
363
py
Python
src/persis/__init__.py
marskar/persis
290a6e11eba93c7a62752a8deae28cb97ab0c99c
[ "MIT" ]
null
null
null
src/persis/__init__.py
marskar/persis
290a6e11eba93c7a62752a8deae28cb97ab0c99c
[ "MIT" ]
null
null
null
src/persis/__init__.py
marskar/persis
290a6e11eba93c7a62752a8deae28cb97ab0c99c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pkg_resources import get_distribution, DistributionNotFound try: # Change here if project is renamed and does not equal the package name dist_name = "Persis" __version__ = get_distribution(dist_name).version except DistributionNotFound: __version__ = 'unknown' finally: ...
30.25
75
0.763085
e7486ff79b94bcd563dd22c30af0d32514529797
1,678
py
Python
airflow/contrib/operators/sql_to_gcs.py
dorranh/airflow
1a9a2cadcf8606cfcb729d1323dd33dfacc64633
[ "Apache-2.0" ]
null
null
null
airflow/contrib/operators/sql_to_gcs.py
dorranh/airflow
1a9a2cadcf8606cfcb729d1323dd33dfacc64633
[ "Apache-2.0" ]
1
2019-05-14T14:32:40.000Z
2019-05-14T14:32:40.000Z
airflow/contrib/operators/sql_to_gcs.py
dorranh/airflow
1a9a2cadcf8606cfcb729d1323dd33dfacc64633
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
38.136364
102
0.740763
4c0e135eb67693b219552c118bc037ca316276ba
1,795
py
Python
codewars/WeIrDStRiNgCaSe.py
1067511899/tornado-learn
497cc8f7816f15e2eab834a758f192d50704fe05
[ "Apache-2.0" ]
1
2017-12-27T09:05:23.000Z
2017-12-27T09:05:23.000Z
codewars/WeIrDStRiNgCaSe.py
1067511899/tornado-learn
497cc8f7816f15e2eab834a758f192d50704fe05
[ "Apache-2.0" ]
null
null
null
codewars/WeIrDStRiNgCaSe.py
1067511899/tornado-learn
497cc8f7816f15e2eab834a758f192d50704fe05
[ "Apache-2.0" ]
null
null
null
''' Write a function toWeirdCase (weirdcase in Ruby) that accepts a string, and returns the same string with all even indexed characters in each word upper cased, and all odd indexed characters in each word lower cased. The indexing just explained is zero based, so the zero-ith index is even, therefore that character s...
38.191489
337
0.662953
f0ce13b269c59ae2163971a523ae04ba9088b355
13,369
py
Python
src/etc/gdb_providers.py
ncave/rust
89ebad52a8b5a6d89d66a158d377cd7505ec4b48
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
16
2021-07-07T12:49:39.000Z
2022-01-26T01:18:04.000Z
src/etc/gdb_providers.py
ncave/rust
89ebad52a8b5a6d89d66a158d377cd7505ec4b48
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
195
2018-06-27T12:40:56.000Z
2021-05-14T15:18:51.000Z
src/etc/gdb_providers.py
ncave/rust
89ebad52a8b5a6d89d66a158d377cd7505ec4b48
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2018-12-02T21:21:04.000Z
2020-12-30T18:16:59.000Z
from sys import version_info import gdb if version_info[0] >= 3: xrange = range ZERO_FIELD = "__0" FIRST_FIELD = "__1" def unwrap_unique_or_non_null(unique_or_nonnull): # BACKCOMPAT: rust 1.32 # https://github.com/rust-lang/rust/commit/7a0911528058e87d22ea305695f4047572c5e067 ptr = unique_or_nonnul...
32.847666
98
0.594584
3280b71fd0d841dca6959cbf66403ca5cd10316a
961
py
Python
instagram/images/urls.py
Sangkwun/instagram
2c47111491b250fa75835667b99f3d7462dcc6aa
[ "MIT" ]
null
null
null
instagram/images/urls.py
Sangkwun/instagram
2c47111491b250fa75835667b99f3d7462dcc6aa
[ "MIT" ]
null
null
null
instagram/images/urls.py
Sangkwun/instagram
2c47111491b250fa75835667b99f3d7462dcc6aa
[ "MIT" ]
2
2018-01-28T06:17:03.000Z
2019-11-15T00:15:37.000Z
from django.conf.urls import url from . import views urlpatterns = [ url( regex=r'^$', view=views.Images.as_view(), name='feed' ), url( regex=r'^(?P<image_id>[0-9]+)/$', view=views.ImageDetail.as_view(), name='like_image' ), url( regex=r'^(?P<...
23.439024
73
0.513007
c60448b38a5c5d135ad8c005962dd7d42d95e791
7,913
py
Python
VAE/model_maker.py
PL187/idlm_Ben
5ba93da0d9b5d9313a9ce968e3593fefd0a05fc9
[ "MIT" ]
1
2020-07-25T10:26:53.000Z
2020-07-25T10:26:53.000Z
VAE/model_maker.py
PL187/idlm_Ben
5ba93da0d9b5d9313a9ce968e3593fefd0a05fc9
[ "MIT" ]
null
null
null
VAE/model_maker.py
PL187/idlm_Ben
5ba93da0d9b5d9313a9ce968e3593fefd0a05fc9
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from tensorflow.keras import backend as K from tensorflow.keras.layers import Lambda, Input, Dense, concatenate """conv1d_tranpose function""" def conv1d_transpose_wrap(value, filter, output_shape, ...
51.718954
140
0.675723
2be9c37c06faaec120e5789334ede64651c0ae60
1,838
py
Python
eca_a9_description/test/test_urdf_files.py
Screw888/eca_a9
5c7e357253c0873d1441ae10910949871cfb944a
[ "Apache-2.0" ]
11
2018-03-03T06:26:04.000Z
2022-03-18T10:24:39.000Z
eca_a9_description/test/test_urdf_files.py
Screw888/eca_a9
5c7e357253c0873d1441ae10910949871cfb944a
[ "Apache-2.0" ]
9
2018-03-09T10:50:33.000Z
2022-03-28T06:44:14.000Z
eca_a9_description/test/test_urdf_files.py
Screw888/eca_a9
5c7e357253c0873d1441ae10910949871cfb944a
[ "Apache-2.0" ]
17
2017-10-27T21:14:20.000Z
2021-09-03T10:13:31.000Z
#!/usr/bin/env python # Copyright (c) 2016 The UUV Simulator 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...
31.152542
74
0.67247
dabac613f805605bd5066b89a2da50b874bc1cdb
56,358
py
Python
emilia/modules/welcome.py
masterisira/ELIZA_OF-master
02a7dbf48e4a3d4ee0981e6a074529ab1497aafe
[ "Unlicense" ]
null
null
null
emilia/modules/welcome.py
masterisira/ELIZA_OF-master
02a7dbf48e4a3d4ee0981e6a074529ab1497aafe
[ "Unlicense" ]
null
null
null
emilia/modules/welcome.py
masterisira/ELIZA_OF-master
02a7dbf48e4a3d4ee0981e6a074529ab1497aafe
[ "Unlicense" ]
null
null
null
import html, time import re import threading import requests from typing import Optional, List from telegram import Message, Chat, Update, Bot, User, CallbackQuery from telegram import ParseMode, InlineKeyboardMarkup, InlineKeyboardButton, ChatPermissions from telegram.error import BadRequest from telegram.ext import ...
46.347039
356
0.727315
f52f834b65865328b2326b33ea2f682253e49f16
94
py
Python
web/app/config.py
costigator/cryptostats
e24b37bcedb1886facf7e69d539ad68b8a0f47fb
[ "MIT" ]
2
2020-12-13T10:49:41.000Z
2021-01-31T22:53:33.000Z
web/app/config.py
costigator/cryptostats
e24b37bcedb1886facf7e69d539ad68b8a0f47fb
[ "MIT" ]
1
2020-12-12T15:45:37.000Z
2020-12-12T16:07:53.000Z
web/app/config.py
costigator/cryptostats
e24b37bcedb1886facf7e69d539ad68b8a0f47fb
[ "MIT" ]
null
null
null
from os import getenv DB_URI = getenv('DB_URI', 'mongodb://crypto:Cr7ptopa55@localhost:27017')
47
72
0.776596
f4d4f4d673628bb3d74cf38d08d469aeeb09a2e6
1,847
py
Python
modulos/modulo_conclu.py
Bersip/Aventura_adivina_el_lugar
1b8ababb434827336e9b7f7605233aa6d7151925
[ "CC0-1.0" ]
null
null
null
modulos/modulo_conclu.py
Bersip/Aventura_adivina_el_lugar
1b8ababb434827336e9b7f7605233aa6d7151925
[ "CC0-1.0" ]
null
null
null
modulos/modulo_conclu.py
Bersip/Aventura_adivina_el_lugar
1b8ababb434827336e9b7f7605233aa6d7151925
[ "CC0-1.0" ]
null
null
null
def final(): while (True): print("_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _") print(" lugar país") print(" (2 palabras)") respuesta_final = input ("¿En dónde estás?: ") if(respuesta_final =="salir"): pasalir=True return pasalir ...
41.977273
279
0.448836
f7e842f4b303a3baa1919c5e6957f5c0b8a448cb
2,981
py
Python
examples/src/main/python/ml/gradient_boosted_tree_classifier_example.py
guancan2014021510/spark
a9b8b655b25f4ed519037faaf7601a3d9842547f
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "BSD-3-Clause" ]
4
2016-05-06T00:02:46.000Z
2017-01-25T02:55:39.000Z
examples/src/main/python/ml/gradient_boosted_tree_classifier_example.py
guancan2014021510/spark
a9b8b655b25f4ed519037faaf7601a3d9842547f
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
examples/src/main/python/ml/gradient_boosted_tree_classifier_example.py
guancan2014021510/spark
a9b8b655b25f4ed519037faaf7601a3d9842547f
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "BSD-3-Clause" ]
3
2016-05-22T00:30:48.000Z
2021-12-02T07:04:03.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
39.223684
98
0.742704
fe9dbb26507226bff264bdc077c7296c6ea9aaa9
3,896
py
Python
PyInstaller/_shared_with_waf.py
logicplace/pyinstaller
5f88dc7f7899896f910ef199dd035e27de5169b1
[ "Apache-2.0" ]
1
2022-02-19T08:37:31.000Z
2022-02-19T08:37:31.000Z
PyInstaller/_shared_with_waf.py
logicplace/pyinstaller
5f88dc7f7899896f910ef199dd035e27de5169b1
[ "Apache-2.0" ]
null
null
null
PyInstaller/_shared_with_waf.py
logicplace/pyinstaller
5f88dc7f7899896f910ef199dd035e27de5169b1
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2005-2021, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
48.098765
119
0.668378
ff1ace9885fe7094a62a135edd62def015d2c276
2,664
py
Python
lightautoml/pipelines/selection/importance_based.py
kobylkinks/LightAutoML
4d62d2f52192aa3fb2d7841481339e35ef7f7f09
[ "Apache-2.0" ]
766
2020-12-03T08:57:21.000Z
2022-03-31T14:06:53.000Z
lightautoml/pipelines/selection/importance_based.py
kobylkinks/LightAutoML
4d62d2f52192aa3fb2d7841481339e35ef7f7f09
[ "Apache-2.0" ]
71
2020-12-07T09:53:59.000Z
2022-03-31T09:31:26.000Z
lightautoml/pipelines/selection/importance_based.py
kobylkinks/LightAutoML
4d62d2f52192aa3fb2d7841481339e35ef7f7f09
[ "Apache-2.0" ]
98
2020-12-04T22:00:28.000Z
2022-03-23T15:52:07.000Z
"""Importance based selectors.""" from typing import Optional from typing import TypeVar from lightautoml.validation.base import TrainValidIterator from ...dataset.base import LAMLDataset from ...ml_algo.base import MLAlgo from ..features.base import FeaturesPipeline from .base import ImportanceEstimator from .base ...
32.096386
101
0.679429
c7a2d44a06d36c774558a9a1ed037414693952d7
1,639
py
Python
networks/layers/pool.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
networks/layers/pool.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
networks/layers/pool.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np class LosslessPool(tf.keras.layers.Layer): """Reduce the feature map dimensions by putting spatial neighbors into depth channel. """ def __init__(self, kernel_size): super(LosslessPool, self).__init__() self._ks = kernel_size def call(se...
29.267857
69
0.566809
8c41a20c733b7a21eda20a442c6206db9a13b8bf
1,096
py
Python
data/p2DJ/New/R2/benchmark/startPyquil45.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/R2/benchmark/startPyquil45.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/R2/benchmark/startPyquil45.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=9 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pr...
21.92
64
0.609489
eaed9eaab1caf653217045d956f8a5f76813d481
913
py
Python
tests/test_tmpfile.py
devincornell/sqlitedocuments
16923bb3b91af5104140e49045efdc612afbc310
[ "MIT" ]
1
2019-06-19T20:27:55.000Z
2019-06-19T20:27:55.000Z
tests/test_tmpfile.py
devincornell/sqlitedocuments
16923bb3b91af5104140e49045efdc612afbc310
[ "MIT" ]
21
2019-04-12T01:08:20.000Z
2020-11-09T18:28:41.000Z
tests/test_tmpfile.py
devincornell/sqlitedocuments
16923bb3b91af5104140e49045efdc612afbc310
[ "MIT" ]
null
null
null
from typing import List from dataclasses import dataclass, field import pytest import os import glob import itertools import copy import sys sys.path.append('..') import doctable import pathlib import shutil def test_tempfolder(): folder = 'tmp' p = pathlib.Path(folder) if os.path.exists(p): s...
19.847826
50
0.664841
c6fe8912d98fa87abebd241438a523526a220de9
2,634
py
Python
example/recommenders/movielens_data.py
t-triobox/incubator-mxnet
93aa9e33fcb2f216179c691ed9461bc96e37ae70
[ "Apache-2.0" ]
1
2021-11-09T01:40:17.000Z
2021-11-09T01:40:17.000Z
example/recommenders/movielens_data.py
t-triobox/incubator-mxnet
93aa9e33fcb2f216179c691ed9461bc96e37ae70
[ "Apache-2.0" ]
4
2021-03-30T13:16:50.000Z
2021-10-04T08:49:33.000Z
example/recommenders/movielens_data.py
t-triobox/incubator-mxnet
93aa9e33fcb2f216179c691ed9461bc96e37ae70
[ "Apache-2.0" ]
1
2018-07-19T00:43:30.000Z
2018-07-19T00:43:30.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.082192
114
0.657935
a039af0b70fa0d445029503d79aff37f28f4b76f
28,296
py
Python
scipy/linalg/_solvers.py
smola/scipy
ff8b9d9e87a585a820846d7f459d6156ba621c4d
[ "BSD-3-Clause" ]
2
2020-06-20T14:11:14.000Z
2020-10-12T07:11:36.000Z
scipy/linalg/_solvers.py
smola/scipy
ff8b9d9e87a585a820846d7f459d6156ba621c4d
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/_solvers.py
smola/scipy
ff8b9d9e87a585a820846d7f459d6156ba621c4d
[ "BSD-3-Clause" ]
null
null
null
"""Matrix equation solver routines""" # Author: Jeffrey Armstrong <jeff@approximatrix.com> # February 24, 2012 # Modified: Chad Fulton <ChadFulton@gmail.com> # June 19, 2014 # Modified: Ilhan Polat <ilhanpolat@gmail.com> # September 13, 2016 from __future__ import division, print_function, absolute_import import wa...
33.486391
80
0.581178
ff677a9979916e3b4327c2780d923ab9ad1f5c3c
2,285
py
Python
MicroPython_BUILD/components/micropython/esp32/modules/xfpga.py
PYNQ-X1024/MicroPython_ESP32_psRAM_LoBo
7290e750324becbe197ac909589ce0a923894bb3
[ "Apache-2.0" ]
null
null
null
MicroPython_BUILD/components/micropython/esp32/modules/xfpga.py
PYNQ-X1024/MicroPython_ESP32_psRAM_LoBo
7290e750324becbe197ac909589ce0a923894bb3
[ "Apache-2.0" ]
null
null
null
MicroPython_BUILD/components/micropython/esp32/modules/xfpga.py
PYNQ-X1024/MicroPython_ESP32_psRAM_LoBo
7290e750324becbe197ac909589ce0a923894bb3
[ "Apache-2.0" ]
3
2019-02-16T07:00:07.000Z
2019-07-07T05:46:07.000Z
#__auther__ = 'CCHs,SWJTU' import os import time import xlibs from micropython import const from machine import Pin XFPGA_MODEL = '7s15ftgb196' _XFPGA_CCLK_PIN = const(17) _XFPGA_DIN_PIN = const(27) _XFPGA_PROGRAM_PIN = const(25) _XFPGA_INTB_PIN = const(26) _XFPGA_DONE_PIN = const(34) def bitstream_check(file_name...
25.965909
98
0.656455
c2a8b4c52c787e32347f2bf33f7db390234bda7b
208
py
Python
cylinderize/__main__.py
donno2048/cylinderize
b76751f7db86d48b5dd6411ebc3af3073e213bef
[ "MIT" ]
null
null
null
cylinderize/__main__.py
donno2048/cylinderize
b76751f7db86d48b5dd6411ebc3af3073e213bef
[ "MIT" ]
null
null
null
cylinderize/__main__.py
donno2048/cylinderize
b76751f7db86d48b5dd6411ebc3af3073e213bef
[ "MIT" ]
null
null
null
from questionary import path from . import cylinderize from sys import argv def main(): cylinderize(open(argv[1] if len(argv) > 1 else path('Path to file').ask()).read()) if __name__ == "__main__": main()
41.6
95
0.706731
2a54889a5c8b4d25746f2b42b81e05c92e8b204c
361
py
Python
edgelm/examples/MMPT/mmpt/losses/__init__.py
guotao0628/DeepNet
1ae74d8b44d715bf67c7d64a8efafff4b7c7937a
[ "MIT" ]
1
2021-11-07T00:30:05.000Z
2021-11-07T00:30:05.000Z
edgelm/examples/MMPT/mmpt/losses/__init__.py
guotao0628/DeepNet
1ae74d8b44d715bf67c7d64a8efafff4b7c7937a
[ "MIT" ]
null
null
null
edgelm/examples/MMPT/mmpt/losses/__init__.py
guotao0628/DeepNet
1ae74d8b44d715bf67c7d64a8efafff4b7c7937a
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from .loss import * from .nce import * try: from .fairseqmmloss import * except ImportError: pass try: from .expnce ...
21.235294
66
0.686981
92e7d50dc5a9737256850dc3a226de97176a92b1
1,335
py
Python
test/test_v1_scale_status.py
pearsontechnology/k8sv1
f9df106a4f2492d35af63b6bb2b1da4ed2b84579
[ "Apache-2.0" ]
1
2016-08-10T15:06:53.000Z
2016-08-10T15:06:53.000Z
test/test_v1_scale_status.py
pearsontechnology/k8sv1
f9df106a4f2492d35af63b6bb2b1da4ed2b84579
[ "Apache-2.0" ]
null
null
null
test/test_v1_scale_status.py
pearsontechnology/k8sv1
f9df106a4f2492d35af63b6bb2b1da4ed2b84579
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use ...
25.188679
104
0.713109
55e5fb9ab479016cb4dcfdfbb856e6dc9cc306f2
1,496
py
Python
docx/api.py
alanxwill/python-docx
a1b7a416166f3eef02a9f6a46f390e3d4e80a05f
[ "MIT" ]
1
2021-04-16T03:46:08.000Z
2021-04-16T03:46:08.000Z
docx/api.py
alanxwill/python-docx-docm
a1b7a416166f3eef02a9f6a46f390e3d4e80a05f
[ "MIT" ]
null
null
null
docx/api.py
alanxwill/python-docx-docm
a1b7a416166f3eef02a9f6a46f390e3d4e80a05f
[ "MIT" ]
null
null
null
# encoding: utf-8 """ Directly exposed API functions and classes, :func:`Document` for now. Provides a syntactically more convenient API for interacting with the OpcPackage graph. """ from __future__ import absolute_import, division, print_function import os from docx.opc.constants import CONTENT_TYPE as CT from do...
33.244444
75
0.700535
b63d461611621797c68354e88bf9803f2f1436cf
14,702
py
Python
spillover.py
hobinkwak/Volatility-Spillover
a8c8143f611936b06042c6796cd640c64ae0719a
[ "MIT" ]
1
2022-03-25T17:53:59.000Z
2022-03-25T17:53:59.000Z
spillover.py
hobinkwak/Volatility-Spillover
a8c8143f611936b06042c6796cd640c64ae0719a
[ "MIT" ]
null
null
null
spillover.py
hobinkwak/Volatility-Spillover
a8c8143f611936b06042c6796cd640c64ae0719a
[ "MIT" ]
null
null
null
import os import random import datetime as dt import pickle as pkl from itertools import product import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from arch import arch_model from scipy import stats import statsmodels import statsmodels.api as sm class Spill...
46.821656
131
0.599578
3b5dff9a6f8a56a62e3b94acd549275eaab3e4e8
52,060
py
Python
tensorflow/python/distribute/cross_device_ops.py
rrkarim/tensorflow
6e6003f04018e22c67f74be996fd3e02d3f95943
[ "Apache-2.0" ]
1
2019-12-17T09:55:47.000Z
2019-12-17T09:55:47.000Z
tensorflow/python/distribute/cross_device_ops.py
rrkarim/tensorflow
6e6003f04018e22c67f74be996fd3e02d3f95943
[ "Apache-2.0" ]
null
null
null
tensorflow/python/distribute/cross_device_ops.py
rrkarim/tensorflow
6e6003f04018e22c67f74be996fd3e02d3f95943
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.895522
102
0.704091
826197c7fddc2c923f7ae5f9be28a71b5406f49e
13,247
py
Python
Bio/Blast/NCBIWWW.py
lukasz-kozlowski/biopython
6b601cf09234e1e82cfc94ad5030389036cb6343
[ "BSD-3-Clause" ]
2,856
2015-01-01T07:10:06.000Z
2022-03-31T18:17:25.000Z
Bio/Blast/NCBIWWW.py
lukasz-kozlowski/biopython
6b601cf09234e1e82cfc94ad5030389036cb6343
[ "BSD-3-Clause" ]
3,429
2015-01-05T11:11:42.000Z
2022-03-31T13:08:10.000Z
Bio/Blast/NCBIWWW.py
lukasz-kozlowski/biopython
6b601cf09234e1e82cfc94ad5030389036cb6343
[ "BSD-3-Clause" ]
1,619
2015-01-05T13:07:11.000Z
2022-03-31T19:19:52.000Z
# Copyright 1999 by Jeffrey Chang. All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been included as part of this # package. # # Patched by Brad Chapm...
38.066092
105
0.620744
aa451e55408189a14f8265125cb5f444adbc5b69
2,720
py
Python
lib/xos-api/xosapi/chameleon_client/protos/annotations_pb2.py
mary-grace/xos
3e269834d29f936757f5091183c9b5188ed5cb9e
[ "Apache-2.0" ]
null
null
null
lib/xos-api/xosapi/chameleon_client/protos/annotations_pb2.py
mary-grace/xos
3e269834d29f936757f5091183c9b5188ed5cb9e
[ "Apache-2.0" ]
null
null
null
lib/xos-api/xosapi/chameleon_client/protos/annotations_pb2.py
mary-grace/xos
3e269834d29f936757f5091183c9b5188ed5cb9e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 the original author or 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...
41.846154
369
0.807721
eed77488ccdab95bf86e338d34e3ec4b4655f685
13,136
py
Python
build/util/android_chrome_version_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
build/util/android_chrome_version_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
250
2018-02-02T23:16:57.000Z
2022-03-21T06:09:53.000Z
build/util/android_chrome_version_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# Copyright 2019 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. import unittest from android_chrome_version import GenerateVersionCodes class _VersionTest(unittest.TestCase): """Unittests for the android_chrome_versi...
42.511327
80
0.781593
3df2b92d3b672ba796ebc059e12af10326bf77b0
14,283
py
Python
etc/hybrid_cloud/scripts/patches/patches_tool/dispatch.py
Hybrid-Cloud/cloud_manager
5f4087ef8753dcb4f542e930b5d8642fe5591c1a
[ "Apache-2.0" ]
null
null
null
etc/hybrid_cloud/scripts/patches/patches_tool/dispatch.py
Hybrid-Cloud/cloud_manager
5f4087ef8753dcb4f542e930b5d8642fe5591c1a
[ "Apache-2.0" ]
3
2016-03-16T03:26:44.000Z
2016-03-16T03:46:22.000Z
etc/hybrid_cloud/scripts/patches/patches_tool/dispatch.py
Hybrid-Cloud/orchard
5f4087ef8753dcb4f542e930b5d8642fe5591c1a
[ "Apache-2.0" ]
null
null
null
__author__ = 'nash.xiejun' import log import os import traceback import sshutils import utils from constants import SysUserInfo, SysPath, ScriptFilePath from services import CPSServiceBusiness class DispatchPatchTool(object): def __init__(self, proxy_match_region): # self.filter_for_dispatch = ['.py', '...
52.704797
129
0.691941
3815790cb2112689117115a6207b235520571fe9
2,012
py
Python
lib/python/treadmill_aws/sproc/autoscale.py
Morgan-Stanley/treadmill-aws
4c3d25c477422d83f0cd8dc6851fd02ffa48dcbb
[ "Apache-2.0" ]
6
2018-05-24T17:17:51.000Z
2020-06-06T02:21:59.000Z
lib/python/treadmill_aws/sproc/autoscale.py
Morgan-Stanley/treadmill-aws
4c3d25c477422d83f0cd8dc6851fd02ffa48dcbb
[ "Apache-2.0" ]
93
2018-04-16T16:14:40.000Z
2019-09-17T22:10:28.000Z
lib/python/treadmill_aws/sproc/autoscale.py
Morgan-Stanley/treadmill-aws
4c3d25c477422d83f0cd8dc6851fd02ffa48dcbb
[ "Apache-2.0" ]
17
2017-09-29T10:30:47.000Z
2019-01-28T21:52:03.000Z
"""Autoscale Treadmill cell based on scheduler queue.""" import logging import multiprocessing import time import collections import click from treadmill import context from treadmill import zkutils from treadmill_aws import cli as aws_cli from treadmill_aws import autoscale _LOGGER = logging.getLogger(__name__) ...
27.561644
77
0.667495
b26d7c4f823b236a6fb29ec2c475d12b6fdbf037
38,781
py
Python
src/clahard.py
HuyTu7/DebtFree
8c272189772ac261f8d0cdd6a44cb5296ea8e610
[ "MIT" ]
null
null
null
src/clahard.py
HuyTu7/DebtFree
8c272189772ac261f8d0cdd6a44cb5296ea8e610
[ "MIT" ]
null
null
null
src/clahard.py
HuyTu7/DebtFree
8c272189772ac261f8d0cdd6a44cb5296ea8e610
[ "MIT" ]
null
null
null
from __future__ import print_function, division import matplotlib.pyplot as plt import time import re import pandas as pd import pdb import copy from clami import * class CLAHard(object): def __init__(self,data,target,cla=False,thres=90,CLAfilter=False,CLAlabel=True,hybrid=True,toggle=False,early_stop=False): ...
39.693961
149
0.545061
34fbf884d8c6b7dc90947d33f86b0c6fc9b71bde
84
py
Python
python/1095.py
josevictorp81/Uri-questions-solutions
99e9bacb088ce59f58fb05531bb02f2fcffe26eb
[ "MIT" ]
1
2019-11-08T12:56:06.000Z
2019-11-08T12:56:06.000Z
python/1095.py
josevictorp81/Uri-questions-solutions
99e9bacb088ce59f58fb05531bb02f2fcffe26eb
[ "MIT" ]
null
null
null
python/1095.py
josevictorp81/Uri-questions-solutions
99e9bacb088ce59f58fb05531bb02f2fcffe26eb
[ "MIT" ]
null
null
null
i = 1 j = 60 while j >= 0: print('I={} J={}'.format(i, j)) j -= 5 i += 3
14
35
0.369048
83648233f4b894df6e08c1796f090d7a269a4896
1,458
py
Python
scripts/addRealCoordinatesAndFilter.py
phspo/snakemake-ngs-spa-typing
de710308c1ad26303539d2998573d682caba3e25
[ "MIT" ]
null
null
null
scripts/addRealCoordinatesAndFilter.py
phspo/snakemake-ngs-spa-typing
de710308c1ad26303539d2998573d682caba3e25
[ "MIT" ]
null
null
null
scripts/addRealCoordinatesAndFilter.py
phspo/snakemake-ngs-spa-typing
de710308c1ad26303539d2998573d682caba3e25
[ "MIT" ]
null
null
null
import sys def filterAddRealCoords( repeatMatchFilePath, contigMatchFilePath, protAMetaData, outFilePath ): #Create Dictionary of Contigs and Coordinates contigs = {} with open(contigMatchFilePath,'r') as infile: contigHits = infile.read().splitlines()[2:] #First two lines contain metadata for hit in conti...
27
105
0.674211
4d72c03d06cc107e9b3b71d875d66e2ee3003b1c
1,943
py
Python
operators/hooks/aws/aws_base_hook.py
OrcaWorkflows/orca
77e849812a439cdfd1755c95915a9de2af12095f
[ "Apache-2.0" ]
null
null
null
operators/hooks/aws/aws_base_hook.py
OrcaWorkflows/orca
77e849812a439cdfd1755c95915a9de2af12095f
[ "Apache-2.0" ]
null
null
null
operators/hooks/aws/aws_base_hook.py
OrcaWorkflows/orca
77e849812a439cdfd1755c95915a9de2af12095f
[ "Apache-2.0" ]
null
null
null
import boto3 from logger.log import Logger from configs.constants import Constants class AWSConfig: aws_access_key_id = "" aws_secret_access_key = "" region_name = "" def __init__(self, aws_property): self.aws_access_key_id = aws_property[Constants.aws_access_key_id] self.aws_secret_a...
36.660377
94
0.65929
79a3d297f295b397145d777292ec081eaf52653a
419
py
Python
dqc/model/analysis/factor_summary.py
Indexical-Metrics-Measure-Advisory/watchmen-dqc
91196d8da29415f33b35d800c424534880162a12
[ "MIT" ]
1
2021-07-29T10:44:50.000Z
2021-07-29T10:44:50.000Z
dqc/model/analysis/factor_summary.py
Indexical-Metrics-Measure-Advisory/watchmen-dqc
91196d8da29415f33b35d800c424534880162a12
[ "MIT" ]
null
null
null
dqc/model/analysis/factor_summary.py
Indexical-Metrics-Measure-Advisory/watchmen-dqc
91196d8da29415f33b35d800c424534880162a12
[ "MIT" ]
null
null
null
from datetime import datetime from dqc.model.summary_model import SummaryModel class FactorSummary(SummaryModel): factorId: str = None factorName: str = None distinctValueNumber: int = None valueMinimum: int = None valueMaximum: int = None valueTypeMissing: bool = False nullPercent: float...
24.647059
48
0.718377
ae90faad4388a3def1d99891f3b46377f8eb65c4
4,495
py
Python
cell_track/tools/box.py
nimne/acit
1a62cc479a64a25da2be6c288a3bfee771fb4967
[ "Apache-2.0" ]
null
null
null
cell_track/tools/box.py
nimne/acit
1a62cc479a64a25da2be6c288a3bfee771fb4967
[ "Apache-2.0" ]
null
null
null
cell_track/tools/box.py
nimne/acit
1a62cc479a64a25da2be6c288a3bfee771fb4967
[ "Apache-2.0" ]
null
null
null
def extract_xyrange(box): """ Gets range for a side of a box. Returns range(x), range(y) Args: box (tuple): Coordinates of the box in (x1, x2, y1, y2) Returns: Two values (int): x_range (int), y_range (int) """ x_range = range(int(round(box[0])), int(round(box[2]))) y_rang...
35.393701
99
0.598665
cfa33b6b820427fcf69278170578373685b4dc03
18,469
py
Python
code/kmergrammar/kgmodel/kgdeep/architectures.py
mariakmejiaguerra/genomic_regulatory_kmers
ea3472307cadc85e81d23d289975e11024d14997
[ "MIT" ]
null
null
null
code/kmergrammar/kgmodel/kgdeep/architectures.py
mariakmejiaguerra/genomic_regulatory_kmers
ea3472307cadc85e81d23d289975e11024d14997
[ "MIT" ]
null
null
null
code/kmergrammar/kgmodel/kgdeep/architectures.py
mariakmejiaguerra/genomic_regulatory_kmers
ea3472307cadc85e81d23d289975e11024d14997
[ "MIT" ]
null
null
null
# ' % kmergrammar # ' % Maria Katherine Mejia Guerra mm2842 # ' % 15th May 2017 # ' # Introduction # ' Some of the code below is still under active development # ' ## Required libraries # + name = 'import_libraries', echo=False import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import tensorflow as tf from tensorflow...
47.114796
127
0.491851
d2201a3d49712a1892de59bc9ee10dd88bc8ca0c
217
py
Python
atf_eregs/urls.py
arbowman/atf-eregs
f036eb11cdff42b645d1c82355e96454fb602772
[ "CC0-1.0" ]
12
2015-11-30T15:36:14.000Z
2022-02-19T08:09:07.000Z
atf_eregs/urls.py
arbowman/atf-eregs
f036eb11cdff42b645d1c82355e96454fb602772
[ "CC0-1.0" ]
488
2015-09-08T22:29:13.000Z
2018-02-02T19:44:35.000Z
atf_eregs/urls.py
arbowman/atf-eregs
f036eb11cdff42b645d1c82355e96454fb602772
[ "CC0-1.0" ]
22
2015-09-03T17:02:52.000Z
2021-02-14T09:44:46.000Z
from django.conf.urls import include, url from regcore import urls as regcore_urls from regulations import urls as regsite_urls urlpatterns = [ url(r'^api/', include(regcore_urls)) ] + regsite_urls.urlpatterns
21.7
44
0.774194
560a78b8a1f11d6355e490c6c6f073eeef319ab4
1,647
py
Python
Variables and Errors.py
hallel21-meet/meet2019y1lab2
0fe903d63b717c089ab22e33e6c4ef2d3629d1d4
[ "MIT" ]
null
null
null
Variables and Errors.py
hallel21-meet/meet2019y1lab2
0fe903d63b717c089ab22e33e6c4ef2d3629d1d4
[ "MIT" ]
null
null
null
Variables and Errors.py
hallel21-meet/meet2019y1lab2
0fe903d63b717c089ab22e33e6c4ef2d3629d1d4
[ "MIT" ]
null
null
null
Python 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux Type "help", "copyright", "credits" or "license()" for more information. >>> a = 5 >>> b = 10 >>> a = b >>> b = a >>> a 10 >>> b 10 >>> a = 5 >>> b = 10 >>> a = b >>> a 10 >>> b 10 >>> a = 5 >>> c = a >>>...
18.3
72
0.601093
1c1b0831207c9aa5779c53af92469e11e2730962
5,296
py
Python
python/demo_bottom_up.py
simsong/dp-demo
c7ae7b96a1d957413b4ede3ce3a0e39803d07f3b
[ "Unlicense" ]
null
null
null
python/demo_bottom_up.py
simsong/dp-demo
c7ae7b96a1d957413b4ede3ce3a0e39803d07f3b
[ "Unlicense" ]
1
2020-01-24T21:02:49.000Z
2020-01-24T21:02:49.000Z
python/demo_bottom_up.py
simsong/dp-demo
c7ae7b96a1d957413b4ede3ce3a0e39803d07f3b
[ "Unlicense" ]
2
2020-04-11T06:02:33.000Z
2020-10-26T04:53:44.000Z
#!/usr/bin/env python3 # # Demonstrate the bottom-up mechanism import math import random import numpy import sys import copy import statistics if sys.version < '3': raise RuntimeError("Requires Python 3") # # misc support functions def l1_error(acounts,bcounts): error = 0 for key in set(list(acounts.ke...
32.89441
101
0.613671
a5f828f824b3145a62e1bdba418c9f45435dfbfa
495
py
Python
util/getqueriespertype/txt.py
neetu6860/plagiarism-detection-software
7f05210aafdccf33a2bc732a40348eff43f46fba
[ "MIT" ]
19
2018-09-03T09:10:20.000Z
2021-12-24T13:52:18.000Z
util/getqueriespertype/txt.py
neetu6860/plagiarism-detection-software
7f05210aafdccf33a2bc732a40348eff43f46fba
[ "MIT" ]
3
2019-10-31T18:42:38.000Z
2021-06-10T21:37:23.000Z
util/getqueriespertype/txt.py
neetu6860/plagiarism-detection-software
7f05210aafdccf33a2bc732a40348eff43f46fba
[ "MIT" ]
16
2018-06-06T15:04:59.000Z
2022-03-29T04:53:07.000Z
from util.textcleanup import split_into_chunks, calculate_unique_score_for_chunk, remove_special_characters from util.handlequeries import build_query_result def get_queries(source, num_queries=3): scored_chunks = [] for chunk in split_into_chunks(source, filter_poor_quality=True): score = calculate_...
41.25
107
0.810101
b339aedd3ba70a6e3dacede13d2e9d518d758289
5,527
py
Python
pyro/distributions/lowrank_mvn.py
mashrikt/pyro
144771db63d5f72e2fec6f5a6d866f1f153e7b80
[ "MIT" ]
null
null
null
pyro/distributions/lowrank_mvn.py
mashrikt/pyro
144771db63d5f72e2fec6f5a6d866f1f153e7b80
[ "MIT" ]
null
null
null
pyro/distributions/lowrank_mvn.py
mashrikt/pyro
144771db63d5f72e2fec6f5a6d866f1f153e7b80
[ "MIT" ]
1
2018-10-02T18:50:33.000Z
2018-10-02T18:50:33.000Z
from __future__ import absolute_import, division, print_function import math import torch from torch.distributions import constraints from torch.distributions.utils import lazy_property from pyro.distributions.torch_distribution import TorchDistribution def _matrix_triangular_solve_compat(b, A, upper=True): ""...
40.940741
103
0.63036
90c08179781cbdfd75ac0dc8abee3a9203b262fe
12,945
py
Python
code/python/StocksAPIforDigitalPortals/v3/fds/sdk/StocksAPIforDigitalPortals/model/inline_response20012_data_simple_moving_average_days50.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/StocksAPIforDigitalPortals/v3/fds/sdk/StocksAPIforDigitalPortals/model/inline_response20012_data_simple_moving_average_days50.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/StocksAPIforDigitalPortals/v3/fds/sdk/StocksAPIforDigitalPortals/model/inline_response20012_data_simple_moving_average_days50.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Stocks API For Digital Portals The stocks API features a screener to search for equity instruments based on stock-specific parameters. Parameters for up to three fiscal years might now be used in one request; data is available for the ten most recent completed fiscal years. Estimates are available for the...
49.788462
1,585
0.603553
91e1557d6a6265554653fa12c77f15010922ac32
70,160
py
Python
openmdao/core/component.py
relf/OpenMDAO
e96aa063d04330ed0aedece365b7f0b8717aad3b
[ "Apache-2.0" ]
null
null
null
openmdao/core/component.py
relf/OpenMDAO
e96aa063d04330ed0aedece365b7f0b8717aad3b
[ "Apache-2.0" ]
null
null
null
openmdao/core/component.py
relf/OpenMDAO
e96aa063d04330ed0aedece365b7f0b8717aad3b
[ "Apache-2.0" ]
null
null
null
"""Define the Component class.""" from collections import OrderedDict, Counter, defaultdict from collections.abc import Iterable from itertools import product import numpy as np from numpy import ndarray, isscalar, atleast_1d, atleast_2d, promote_types from scipy.sparse import issparse from openmdao.core.system impo...
44.71638
100
0.564381
0c6ae1ed1071ef0a13eea7e42e752270d3041a6f
393
py
Python
1.sequencing_data_processing/CAGE/adjust_bed.py
danrlu/Fuller_RNAseq
ee3893cc90105840864b950508d7bb1590bc7bd4
[ "MIT" ]
1
2020-12-23T13:51:22.000Z
2020-12-23T13:51:22.000Z
1.sequencing_data_processing/CAGE/adjust_bed.py
danrlu/Fuller_RNAseq
ee3893cc90105840864b950508d7bb1590bc7bd4
[ "MIT" ]
1
2020-02-27T20:43:10.000Z
2020-02-27T20:46:55.000Z
1.sequencing_data_processing/CAGE/adjust_bed.py
danrlu/Fuller_RNAseq
ee3893cc90105840864b950508d7bb1590bc7bd4
[ "MIT" ]
null
null
null
import pandas as pd import sys bed_file = sys.argv[1] df = pd.read_table(bed_file, sep='\t', names=('chrm','start','end','QNAME','score','strand')) # print bed_file df.loc[df['strand'] == '-', 'start'] = df['end'] - 1 df.loc[df['strand'] == '+', 'end'] = df['start'] + 1 output_name = bed_file[:-4] + '.adj.bed' df.to...
23.117647
93
0.628499
8123e13a50a7c7bce6c5b556a71ad0bbbca5933b
1,310
py
Python
mtp_api/apps/transaction/migrations/0034_transaction_to_credit_conversion.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
5
2016-01-05T12:21:35.000Z
2020-10-28T17:06:02.000Z
mtp_api/apps/transaction/migrations/0034_transaction_to_credit_conversion.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
209
2015-06-12T09:39:41.000Z
2022-03-21T16:01:19.000Z
mtp_api/apps/transaction/migrations/0034_transaction_to_credit_conversion.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
1
2021-04-11T06:19:23.000Z
2021-04-11T06:19:23.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-05-03 10:19 from __future__ import unicode_literals from django.db import migrations def convert_to_credits(apps, schema_editor): Transaction = apps.get_model('transaction', 'Transaction') Credit = apps.get_model('credit', 'Credit') for transact...
29.772727
93
0.646565
cf9cffe8c5bb61f396af6dd856950508c8ecf179
76,025
py
Python
selfdrive/car/hyundai/values.py
samin891/openpilot_085
c55e6f7f22eebcf7b48c452f97c29f1bf1f7b1c5
[ "MIT" ]
null
null
null
selfdrive/car/hyundai/values.py
samin891/openpilot_085
c55e6f7f22eebcf7b48c452f97c29f1bf1f7b1c5
[ "MIT" ]
null
null
null
selfdrive/car/hyundai/values.py
samin891/openpilot_085
c55e6f7f22eebcf7b48c452f97c29f1bf1f7b1c5
[ "MIT" ]
null
null
null
# flake8: noqa from cereal import car from selfdrive.car import dbc_dict from common.params import Params Ecu = car.CarParams.Ecu # Steer torque limits class CarControllerParams: params = Params() STEER_MAX = int(params.get("SteerMaxAdj", encoding="utf8")) # default 384 STEER_DELTA_UP = int(params.get("SteerD...
129.294218
1,164
0.559119
27e7be82e2821d495757b6b67113d3efc01d9921
2,457
py
Python
test/functional/wallet_orphanedreward.py
Techcoingithub/techcoin
6914faea0496d16d85f4f11fc1ae2ba05e9143b8
[ "MIT" ]
null
null
null
test/functional/wallet_orphanedreward.py
Techcoingithub/techcoin
6914faea0496d16d85f4f11fc1ae2ba05e9143b8
[ "MIT" ]
1
2021-11-30T18:41:44.000Z
2022-01-17T17:55:26.000Z
test/functional/wallet_orphanedreward.py
Techcoingithub/techcoin
6914faea0496d16d85f4f11fc1ae2ba05e9143b8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test orphaned block rewards in the wallet.""" from test_framework.test_framework import TechcoinTestFr...
39
80
0.657306
db092278815fdc8691fffaf581fbcb40d1ca1725
429
py
Python
wsgi/wsgi.py
uevol/devops
515573d9e73fa7f0800a89ae982642e0fe4176d9
[ "MIT" ]
2
2018-01-15T05:41:02.000Z
2021-07-27T12:09:25.000Z
wsgi/wsgi.py
uevol/devops
515573d9e73fa7f0800a89ae982642e0fe4176d9
[ "MIT" ]
3
2020-06-05T17:15:52.000Z
2022-03-08T21:09:04.000Z
wsgi/wsgi.py
uevol/devops
515573d9e73fa7f0800a89ae982642e0fe4176d9
[ "MIT" ]
1
2018-01-15T05:42:03.000Z
2018-01-15T05:42:03.000Z
import os import sys import django.core.handlers.wsgi from django.conf import settings from django.core.wsgi import get_wsgi_application # Add this file path to sys.path in order to import settings sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '..')) os.environ.setdefault("DJANGO_SETTIN...
25.235294
83
0.785548
be56442b5160ea96232e64673fb5f1bc4dcacd90
14,476
py
Python
tests/test_nc.py
perrette/dimarray
b506a8cd05182f6af5578c4c0677b1accf2f2d07
[ "BSD-3-Clause" ]
11
2015-02-12T14:16:36.000Z
2019-04-09T18:03:22.000Z
tests/test_nc.py
perrette/dimarray
b506a8cd05182f6af5578c4c0677b1accf2f2d07
[ "BSD-3-Clause" ]
7
2015-05-04T22:30:11.000Z
2021-09-28T12:12:10.000Z
tests/test_nc.py
perrette/dimarray
b506a8cd05182f6af5578c4c0677b1accf2f2d07
[ "BSD-3-Clause" ]
null
null
null
""" Test module for nc """ from __future__ import print_function import future import os from warnings import warn import pytest import numpy as np from numpy.testing import assert_equal, assert_almost_equal try: import netCDF4 except: pytestmark = pytest.mark.skipif(True, reason="netCDF4 is not installed") ...
35.655172
125
0.601893
60d99d46caf8669982bd5f5402a95d3ef9b478a4
10,256
py
Python
common/autocompile.py
a4/a4
e1de89260cb3894908f1d01dfacea125abc79da9
[ "BSL-1.0" ]
4
2015-04-07T20:25:16.000Z
2019-04-27T15:04:02.000Z
common/autocompile.py
a4/a4
e1de89260cb3894908f1d01dfacea125abc79da9
[ "BSL-1.0" ]
null
null
null
common/autocompile.py
a4/a4
e1de89260cb3894908f1d01dfacea125abc79da9
[ "BSL-1.0" ]
1
2021-06-02T17:22:35.000Z
2021-06-02T17:22:35.000Z
#!/usr/bin/env python from sys import path, stderr path.append("common") import pyinotify import pycsp import subprocess from pycsp import process, ChannelPoisonException, InputGuard, TimeoutGuard, Spawn, Channel, poison, retire, AltSelect from time import sleep import logging from logging import getLogger, basicC...
30.433234
118
0.556065
c246b7aa36c80e537d60e3f4b863d72f5200c9b1
1,059
py
Python
world_export/selection.py
drewp/megasecond
13cd93e356b426e093135bf8402efec513e2fa46
[ "CC-BY-4.0" ]
2
2021-01-02T19:38:05.000Z
2021-04-06T07:51:27.000Z
world_export/selection.py
jeremy-coleman/megasecond
0ba6b453c1b35fcd7b33256ccd07ca7d0615dc39
[ "CC-BY-4.0" ]
null
null
null
world_export/selection.py
jeremy-coleman/megasecond
0ba6b453c1b35fcd7b33256ccd07ca7d0615dc39
[ "CC-BY-4.0" ]
1
2021-04-06T07:51:35.000Z
2021-04-06T07:51:35.000Z
import bpy import bpy_types import contextlib def select_object(name): bpy.ops.object.select_all(action='DESELECT') obj = bpy.data.objects[name] obj.select_set(True) bpy.context.view_layer.objects.active = obj return obj def all_mesh_objects(root=None): # Need linked dups that share a mesh t...
23.533333
66
0.654391
20c3468bd8b11dbe32bafef2d5c0b416e9d19b8e
42,329
py
Python
sdk/eventhub/azure-eventhub/azure/eventhub/aio/_consumer_client_async.py
jalauzon-msft/azure-sdk-for-python
15967f5c6d3376f2334a382486ba86339786e028
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/eventhub/azure-eventhub/azure/eventhub/aio/_consumer_client_async.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/eventhub/azure-eventhub/azure/eventhub/aio/_consumer_client_async.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "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. # --------------------------------------------------------------------...
58.304408
120
0.69378
55a4ce2587810e02aee24583b8c553d22c20c558
1,286
py
Python
caffe-onnx/onnx_caffe/mystery_layers.py
jwj04ok/ONNX_Convertor
067a17e16dfc8aa80e36f44c4523959daf7359f5
[ "MIT" ]
33
2020-06-09T21:05:35.000Z
2022-02-24T01:48:45.000Z
caffe-onnx/onnx_caffe/mystery_layers.py
jwj04ok/ONNX_Convertor
067a17e16dfc8aa80e36f44c4523959daf7359f5
[ "MIT" ]
17
2020-07-14T19:44:09.000Z
2022-02-10T10:03:01.000Z
caffe-onnx/onnx_caffe/mystery_layers.py
jwj04ok/ONNX_Convertor
067a17e16dfc8aa80e36f44c4523959daf7359f5
[ "MIT" ]
16
2020-06-17T22:56:11.000Z
2021-12-21T05:44:32.000Z
"""Converters for unknown layers and layers without Onnx support in Caffe. """ import onnx as O import numpy as np from .base_layer import Layer from .exceptions import FeatureNotImplemented, OnnxNotSupport from . import helper class Mystery(Layer): def __init__(self, inputs, outname, layer, proto, blob): Layer...
33.842105
130
0.699067
419adbabe3c0deefaa050744371817369d3dbc79
5,971
py
Python
ncem/models/model_ed.py
theislab/ncem
cd0ea2e9de8e1815e1f1f4139c62b4f33979f9ca
[ "BSD-3-Clause" ]
37
2021-07-02T11:40:26.000Z
2022-03-25T20:17:03.000Z
ncem/models/model_ed.py
theislab/ncem
cd0ea2e9de8e1815e1f1f4139c62b4f33979f9ca
[ "BSD-3-Clause" ]
61
2021-07-06T08:30:59.000Z
2022-03-31T05:16:41.000Z
ncem/models/model_ed.py
theislab/ncem
cd0ea2e9de8e1815e1f1f4139c62b4f33979f9ca
[ "BSD-3-Clause" ]
1
2022-01-28T13:36:54.000Z
2022-01-28T13:36:54.000Z
import tensorflow as tf from ncem.models.layers import (Decoder, Encoder, get_out) class ModelED: """Model class for non-spatial encoder-decoder.""" def __init__( self, input_shapes, latent_dim: int = 10, dropout_rate: float = 0.1, l2_coef: float = 0.0, l1_coe...
37.791139
118
0.612293
1408d17918ba22b2b2faa8f2494490e862e338b3
3,314
py
Python
AR1/drive_antennas/AP_encoder_measurement_test.py
ska-sa/katsdpscripts
f9eaa867aad8b94c715f7286953124df00b5781c
[ "BSD-3-Clause" ]
null
null
null
AR1/drive_antennas/AP_encoder_measurement_test.py
ska-sa/katsdpscripts
f9eaa867aad8b94c715f7286953124df00b5781c
[ "BSD-3-Clause" ]
21
2019-09-16T15:26:53.000Z
2022-01-11T09:14:39.000Z
AR1/drive_antennas/AP_encoder_measurement_test.py
ska-sa/katsdpscripts
f9eaa867aad8b94c715f7286953124df00b5781c
[ "BSD-3-Clause" ]
1
2019-11-11T11:47:54.000Z
2019-11-11T11:47:54.000Z
#!/usr/bin/env python #Drive antenna in test pattern during encoder measurements import time from katcorelib import (standard_script_options, verify_and_connect, user_logger) def move_to(ants, az, el): user_logger.info("Slewing to Az: '%s' El: '%s'", az, el) #...
31.561905
129
0.636391
8d30c44b5854960c8b3c6dcdd71f0af6f484e6bd
3,018
py
Python
recipes/aws-c-http/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
null
null
null
recipes/aws-c-http/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
3
2020-05-05T11:27:44.000Z
2022-02-28T20:19:50.000Z
recipes/aws-c-http/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1
2020-10-12T10:45:13.000Z
2020-10-12T10:45:13.000Z
import os from conans import ConanFile, CMake, tools required_conan_version = ">=1.43.0" class AwsCHttp(ConanFile): name = "aws-c-http" description = "C99 implementation of the HTTP/1.1 and HTTP/2 specifications" topics = ("aws", "amazon", "cloud", "http", "http2", ) url = "https://github.com/conan-io...
35.093023
103
0.627568
c7721c4b0d215e0ffe270a52815489e4ed5a47a7
4,905
py
Python
model_dropout_comp.py
soufiomario/keras-cnn
6ba72bf89dfc746d8a30634219160843b16c5fb8
[ "CC0-1.0" ]
5
2020-03-18T09:33:17.000Z
2022-03-20T15:19:18.000Z
model_dropout_comp.py
soufiomario/keras-cnn
6ba72bf89dfc746d8a30634219160843b16c5fb8
[ "CC0-1.0" ]
1
2021-09-07T14:47:07.000Z
2021-09-07T14:47:44.000Z
model_dropout_comp.py
soufiomario/keras-cnn
6ba72bf89dfc746d8a30634219160843b16c5fb8
[ "CC0-1.0" ]
11
2020-02-14T04:15:51.000Z
2021-12-11T12:31:38.000Z
import keras from keras.datasets import cifar10 from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from keras import backend as K from keras.callbacks import TensorBoard from keras.constraints import max_norm import matplotlib.pyplot as plt...
40.53719
162
0.742712
7aaa01a6a967d7971f27c9574606897cbfb8f922
6,771
py
Python
pypureclient/flasharray/FA_2_5/models/software.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/flasharray/FA_2_5/models/software.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/flasharray/FA_2_5/models/software.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 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
42.31875
1,403
0.61025
31f840a6a1ff5267405dc5b665a6d26b63df0b31
2,375
py
Python
sklearn/metrics/_plot/tests/test_plot_det_curve.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
50,961
2015-01-01T06:06:31.000Z
2022-03-31T23:40:12.000Z
sklearn/metrics/_plot/tests/test_plot_det_curve.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
17,065
2015-01-01T02:01:58.000Z
2022-03-31T23:48:34.000Z
sklearn/metrics/_plot/tests/test_plot_det_curve.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
26,886
2015-01-01T00:59:27.000Z
2022-03-31T18:03:23.000Z
# TODO: remove this file when plot_det_curve will be deprecated in 1.2 import pytest import numpy as np from numpy.testing import assert_allclose from sklearn.datasets import load_iris from sklearn.linear_model import LogisticRegression from sklearn.metrics import det_curve from sklearn.metrics import plot_det_curve ...
27.941176
83
0.689684
85290bcecc946c068760ac76edb83c09c417050a
932
py
Python
venv/Lib/site-packages/pyo/examples/synthesis/03_cos_waveshaping.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/pyo/examples/synthesis/03_cos_waveshaping.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/pyo/examples/synthesis/03_cos_waveshaping.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
""" Cos waveshaping synthesis. """ from pyo import * import math s = Server(sr=44100, nchnls=2, duplex=0).boot() ### Controls ### drv = Sig(0) drv.ctrl(title="Drive") phi = Sig(0, mul=math.pi / 2) phi.ctrl(title="Odd harmonics <----> Even harmonics") frs = Sig([40.04, 39.41, 41.09, 38.7]) frs.ctrl([SLMap(10.0, 1000....
26.628571
112
0.603004
a7ede96ce11894bafc46e9d617c4923f3048546f
2,545
py
Python
qiskit/providers/ibmq/credentials/qconfig.py
Sahar2/qiskit-ibmq-provider
a7fa886f5b34123bf7bb903840e32b1bf4cc30b5
[ "Apache-2.0" ]
null
null
null
qiskit/providers/ibmq/credentials/qconfig.py
Sahar2/qiskit-ibmq-provider
a7fa886f5b34123bf7bb903840e32b1bf4cc30b5
[ "Apache-2.0" ]
null
null
null
qiskit/providers/ibmq/credentials/qconfig.py
Sahar2/qiskit-ibmq-provider
a7fa886f5b34123bf7bb903840e32b1bf4cc30b5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
36.357143
84
0.695088
7786f9698e93757f707dbbe0934d2512ed0aa5ad
685
py
Python
examples/deleted.py
HCord-py/HCord
bacd34de3d19ae7b08fcc3f7eae0cd39bfe0ad97
[ "MIT" ]
1
2021-12-19T14:23:04.000Z
2021-12-19T14:23:04.000Z
examples/deleted.py
HCord-py/HCord
bacd34de3d19ae7b08fcc3f7eae0cd39bfe0ad97
[ "MIT" ]
null
null
null
examples/deleted.py
HCord-py/HCord
bacd34de3d19ae7b08fcc3f7eae0cd39bfe0ad97
[ "MIT" ]
null
null
null
import hcord class MyClient(hcord.Client): async def on_ready(self): print(f'Logged in as {self.user} (ID: {self.user.id})') print('------') async def on_message(self, message): if message.content.startswith('!deleteme'): msg = await message.channel.send('I will delete myse...
31.136364
83
0.623358
c02e6e098654323a12707d7fdd0d44c4e8eafc6c
388
py
Python
dlex/utils/debug.py
dvtrung/dl-torch
b49e57d10d32bb223e2d7643f2579ccc32c63a9a
[ "MIT" ]
null
null
null
dlex/utils/debug.py
dvtrung/dl-torch
b49e57d10d32bb223e2d7643f2579ccc32c63a9a
[ "MIT" ]
null
null
null
dlex/utils/debug.py
dvtrung/dl-torch
b49e57d10d32bb223e2d7643f2579ccc32c63a9a
[ "MIT" ]
null
null
null
import torch.nn as nn from .logging import logger class PrintLayer(nn.Module): def __init__(self, name=None): super(PrintLayer, self).__init__() self._name = name def forward(self, x, print_value=False): logger.debug("Tensor %s: Shape: %s", self._name, str(x.shape)) i...
27.714286
71
0.603093
965bba3a686dcc37a0d6677655849b0be7370c95
12,076
py
Python
hystorian/processing/ndim.py
Coilm/hystorian
1aa3aa6c76fa62e72bd1e936772eef738b85b602
[ "CC-BY-4.0" ]
null
null
null
hystorian/processing/ndim.py
Coilm/hystorian
1aa3aa6c76fa62e72bd1e936772eef738b85b602
[ "CC-BY-4.0" ]
null
null
null
hystorian/processing/ndim.py
Coilm/hystorian
1aa3aa6c76fa62e72bd1e936772eef738b85b602
[ "CC-BY-4.0" ]
null
null
null
from . import core import numpy as np import h5py import matplotlib.pyplot as plt def extract_hist(*input_data, bias): """ Split the SSPFM curve into on and off signal. Function was rewritten to work with m_apply, and to take account a bug into Cypher machine, leading to pulse not all being the same s...
34.112994
115
0.593243
bec2dec3bf82ba53d20a281e7b85111031aac54c
940
py
Python
raspberryProves/Blink/main.py
Enrikerf/pfm
bcefbc6a015289184559caccb8053b0b23efe671
[ "Apache-2.0" ]
null
null
null
raspberryProves/Blink/main.py
Enrikerf/pfm
bcefbc6a015289184559caccb8053b0b23efe671
[ "Apache-2.0" ]
43
2021-11-27T09:23:47.000Z
2022-03-09T09:22:53.000Z
raspberryProves/Blink/main.py
Enrikerf/pfm
bcefbc6a015289184559caccb8053b0b23efe671
[ "Apache-2.0" ]
null
null
null
import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library from time import sleep # Import the sleep function from the time module GPIO.setwarnings(False) # Ignore warning for now GPIO.setmode(GPIO.BOARD) # Use physical pin numbering GPIO.setup(12, GPIO.OUT, initial=GPIO.LOW) GPIO.setup(22, GPIO.OUT, init...
39.166667
75
0.710638
aa2a8acc6ff990feedd5e415a9065fe6c450e54f
15,778
py
Python
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/ARB/framebuffer_object.py
temelkirci/Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/ARB/framebuffer_object.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/ARB/framebuffer_object.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
'''OpenGL extension ARB.framebuffer_object This module customises the behaviour of the OpenGL.raw.GL.ARB.framebuffer_object to provide a more Python-friendly API Overview (from the spec) ARB_framebuffer_object is an extension intended to address the following goals: - Reflect FBO-related functionality found ...
50.248408
106
0.799404