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
4506aa49b0d0ef8fc0b5286ac4ac7e1abf6f84cf
23,526
py
Python
CIG96-HI-cal/cal.cig96_28jul13b.py
AMIGA-IAA/deep-obs
1526647f9949fbdfd437e68d037c8ea0ce5053fe
[ "MIT" ]
null
null
null
CIG96-HI-cal/cal.cig96_28jul13b.py
AMIGA-IAA/deep-obs
1526647f9949fbdfd437e68d037c8ea0ce5053fe
[ "MIT" ]
null
null
null
CIG96-HI-cal/cal.cig96_28jul13b.py
AMIGA-IAA/deep-obs
1526647f9949fbdfd437e68d037c8ea0ce5053fe
[ "MIT" ]
null
null
null
# -*- coding: iso-8859-1 -*- ### EVLA DATA REDUCTION ### Project: 13A-341 ### Dataset date: 28jul13b ### Original dataset name: 13A-341.sb24028522.eb24167262.56501.354832060184.ms ### Renamed as: cig96_11.ms ### ### Configuration: C (6/10) # =============================================================================...
47.240964
379
0.622163
1ef4d50732db33b1f5c73636d5c289fd3df7916f
8,862
py
Python
rally_openstack/task/contexts/glance/images.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
rally_openstack/task/contexts/glance/images.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
rally_openstack/task/contexts/glance/images.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
1
2021-08-10T03:11:51.000Z
2021-08-10T03:11:51.000Z
# 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 agreed to in writing, software #...
42.605769
79
0.534191
3dd2704de60d4e904792ef52785256ef5ef713b7
1,898
py
Python
setup.py
zen-juen/AutoCalendar
05cf9cec07dd0bceb2965970d9513faf8fec461c
[ "MIT" ]
3
2020-10-18T05:14:12.000Z
2021-12-05T10:22:53.000Z
setup.py
zen-juen/AutoCalendar
05cf9cec07dd0bceb2965970d9513faf8fec461c
[ "MIT" ]
null
null
null
setup.py
zen-juen/AutoCalendar
05cf9cec07dd0bceb2965970d9513faf8fec461c
[ "MIT" ]
1
2021-12-28T19:02:45.000Z
2021-12-28T19:02:45.000Z
# -*- coding: utf-8 -*- import re from setuptools import find_packages, setup # Utilities with open("README.md") as readme_file: readme = readme_file.read() # #with open("NEWS.rst") as history_file: # history = history_file.read() #history = history.replace("\n-------------------", "\n^^^^^^^^^^^^^^^^^^^").repl...
30.612903
118
0.645416
3b3c3438ec7dcfdd2ede19e28b63ec2eec93dc55
1,811
py
Python
tests/integration/questionnaire/test_questionnaire_question_definition.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/integration/questionnaire/test_questionnaire_question_definition.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/integration/questionnaire/test_questionnaire_question_definition.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
from tests.integration.integration_test_case import IntegrationTestCase class TestQuestionnaireQuestionDefinition(IntegrationTestCase): def test_question_definition(self): # Given I launch a questionnaire with definitions self.launchSurvey("test_question_definition") # When I start the su...
44.170732
125
0.680839
25c012809813698c5d9942d60d4996edc71a5e93
17,086
py
Python
imagegen/gan.py
kostaleonard/mlops-image-generation-example
c5360be4361a9843466469a74b94dba997dbe778
[ "MIT" ]
1
2021-12-20T22:03:56.000Z
2021-12-20T22:03:56.000Z
imagegen/gan.py
kostaleonard/mlops-image-generation-example
c5360be4361a9843466469a74b94dba997dbe778
[ "MIT" ]
14
2021-12-22T15:52:39.000Z
2022-01-27T12:58:56.000Z
imagegen/gan.py
kostaleonard/mlops-image-generation-example
c5360be4361a9843466469a74b94dba997dbe778
[ "MIT" ]
null
null
null
"""Demonstrates a generative adversarial network architecture on the pokemon dataset. The model will generate images of never-before-seen pokemon. The positive class is used to denote real images. This model syncs with WandB. """ # pylint: disable=no-name-in-module from typing import Optional import time from tqdm im...
48.817143
80
0.62876
220f6d4221eef59174bf21ed23735ecd99898c56
2,390
py
Python
swcms_social/blog/migrations/0001_initial.py
ivanff/swcms
20d121003243abcc26e41409bc44f1c0ef3c6c2a
[ "MIT" ]
null
null
null
swcms_social/blog/migrations/0001_initial.py
ivanff/swcms
20d121003243abcc26e41409bc44f1c0ef3c6c2a
[ "MIT" ]
1
2019-06-25T11:17:35.000Z
2019-06-25T11:17:54.000Z
swcms_social/blog/migrations/0001_initial.py
ivanff/swcms-social
20d121003243abcc26e41409bc44f1c0ef3c6c2a
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-02-14 14:01 import ckeditor_uploader.fields from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Posts', fields=[ ...
43.454545
116
0.562762
470664548485c444218b1d12222c6b393eec2dab
350
py
Python
tests/admin_scripts/management/commands/app_command.py
trught007/django
d55d21dbb8b307941c2d26b95be46bf83015d868
[ "BSD-3-Clause" ]
1
2021-11-11T04:13:11.000Z
2021-11-11T04:13:11.000Z
tests/admin_scripts/management/commands/app_command.py
trught007/django
d55d21dbb8b307941c2d26b95be46bf83015d868
[ "BSD-3-Clause" ]
null
null
null
tests/admin_scripts/management/commands/app_command.py
trught007/django
d55d21dbb8b307941c2d26b95be46bf83015d868
[ "BSD-3-Clause" ]
1
2020-10-01T08:23:34.000Z
2020-10-01T08:23:34.000Z
from django.core.management.base import AppCommand class Command(AppCommand): help = 'Test Application-based commands' requires_model_validation = False args = '[app_label ...]' def handle_app_config(self, app_config, **options): print('EXECUTE:AppCommand name=%s, options=%s' % (app_config.na...
31.818182
100
0.711429
be66a5815fdd5f8f3e26277a239935c81b8efddc
3,959
py
Python
setup.py
jspenc72/hummingbot
8e9129a77b157eea4cee2c7e497b93a2704f1197
[ "Apache-2.0" ]
null
null
null
setup.py
jspenc72/hummingbot
8e9129a77b157eea4cee2c7e497b93a2704f1197
[ "Apache-2.0" ]
null
null
null
setup.py
jspenc72/hummingbot
8e9129a77b157eea4cee2c7e497b93a2704f1197
[ "Apache-2.0" ]
null
null
null
import numpy as np import os import subprocess import sys from setuptools import find_packages, setup from setuptools.command.build_ext import build_ext from Cython.Build import cythonize is_posix = (os.name == "posix") if is_posix: os_name = subprocess.check_output("uname").decode("utf8") if "Darwin" in os...
25.541935
106
0.543824
cb1b58205f666d779ab940ea5df54d58886f49c2
6,792
py
Python
PyDAQmx/Task.py
MMathisLab/PyDAQmx
0b6e3dbdac15882c8cc46575ce4e33bf1f090747
[ "BSD-3-Clause" ]
1
2017-12-28T19:17:40.000Z
2017-12-28T19:17:40.000Z
PyDAQmx/Task.py
automaticjack1/PyDAQmx
0b6e3dbdac15882c8cc46575ce4e33bf1f090747
[ "BSD-3-Clause" ]
null
null
null
PyDAQmx/Task.py
automaticjack1/PyDAQmx
0b6e3dbdac15882c8cc46575ce4e33bf1f090747
[ "BSD-3-Clause" ]
1
2020-01-30T20:59:48.000Z
2020-01-30T20:59:48.000Z
from DAQmxTypes import TaskHandle import DAQmxFunctions from DAQmxFunctions import * import ctypes # Create a list of the name of the function that uses TastHandle as the first argument # All the function of this list will be converted to method of the task object # The name of the method will be the same name as the...
44.392157
114
0.650766
9b4f15fa9df3a6c66d3fa58d980980ed7bce896e
18,579
py
Python
tests/unit/states/iptables_test.py
vamshi98/salt-formulas
30edeadafd5d173efe4e1f767a8d562547ad128a
[ "Apache-2.0" ]
1
2020-09-16T21:31:02.000Z
2020-09-16T21:31:02.000Z
tests/unit/states/iptables_test.py
vamshi98/salt-formulas
30edeadafd5d173efe4e1f767a8d562547ad128a
[ "Apache-2.0" ]
null
null
null
tests/unit/states/iptables_test.py
vamshi98/salt-formulas
30edeadafd5d173efe4e1f767a8d562547ad128a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Rahul Handay <rahulha@saltstack.com>` ''' # Import Python Libs from __future__ import absolute_import # Import Salt Testing Libs from salttesting import TestCase, skipIf from salttesting.helpers import ensure_in_syspath from salttesting.mock import ( MagicMock,...
48.382813
79
0.385166
0f04261294a82edc634740208a6a5daaee673f82
1,911
py
Python
pynonymizer/strategy/database.py
DocLM/pynonymizer
1ab2b6323a2b7324fef3a4224231329936a2356f
[ "MIT" ]
40
2020-10-19T14:08:05.000Z
2021-11-19T10:44:52.000Z
pynonymizer/strategy/database.py
DocLM/pynonymizer
1ab2b6323a2b7324fef3a4224231329936a2356f
[ "MIT" ]
51
2020-09-21T19:59:03.000Z
2021-11-12T09:19:00.000Z
pynonymizer/strategy/database.py
DocLM/pynonymizer
1ab2b6323a2b7324fef3a4224231329936a2356f
[ "MIT" ]
19
2020-10-20T13:18:41.000Z
2021-11-11T13:22:00.000Z
from pynonymizer.strategy.table import TableStrategyTypes from pynonymizer.strategy.update_column import UpdateColumnStrategyTypes class DatabaseStrategy: def __init__(self, table_strategies=None, before_scripts=None, after_scripts=None): self.table_strategies = [] self.before_scripts = [] ...
33.526316
87
0.649398
b05b1e97c84a5dcf934f3f1cd7019f221df8a019
5,067
py
Python
Examples/es_helpers.py
julian-risch/CHIIR2021-Resource
99d626a4aa7ef8ed1476dc5c0ee087ed1857bafc
[ "MIT" ]
11
2021-01-04T19:52:13.000Z
2022-03-22T17:34:54.000Z
Examples/es_helpers.py
julian-risch/CHIIR2021-Resource
99d626a4aa7ef8ed1476dc5c0ee087ed1857bafc
[ "MIT" ]
3
2021-07-02T18:38:34.000Z
2021-08-09T20:46:33.000Z
Examples/es_helpers.py
julian-risch/PatentMatch
99d626a4aa7ef8ed1476dc5c0ee087ed1857bafc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Aug 28 13:45:09 2017 @author: Samuele Garda """ import json import glob import logging import argparse import requests import elasticsearch from elasticsearch import Elasticsearch,helpers from datetime import datetime logger = logging.getLogger(__name...
34.944828
153
0.674561
e1da1fd179eaf67063dd723d4f9a795ee13bffd8
551
py
Python
appengine/flexible/hello_world/responses.py
pgiteam/pythonteaching
04102879a05f5d98f4238525d4f2e224b40ce581
[ "Apache-2.0" ]
null
null
null
appengine/flexible/hello_world/responses.py
pgiteam/pythonteaching
04102879a05f5d98f4238525d4f2e224b40ce581
[ "Apache-2.0" ]
null
null
null
appengine/flexible/hello_world/responses.py
pgiteam/pythonteaching
04102879a05f5d98f4238525d4f2e224b40ce581
[ "Apache-2.0" ]
null
null
null
from pywebio import * from pywebio.output import * from pywebio.input import * def main(): ''' An interactive web app that takes user's name and output hello <username> on the webpage ''' name = input("Hello! We look forward to working with you. What’s your name?") print("Nice to meet you " + ...
36.733333
105
0.664247
5125f8685f077910c0ce563c8327692cb35387d4
4,980
py
Python
main.py
Heath123/switch-joycon-animation-linux
8dbc7240b9dd55b4a7c7796a2a919546f3a9f44b
[ "MIT" ]
1
2021-02-21T03:30:03.000Z
2021-02-21T03:30:03.000Z
main.py
Heath123/switch-joycon-animation-linux
8dbc7240b9dd55b4a7c7796a2a919546f3a9f44b
[ "MIT" ]
null
null
null
main.py
Heath123/switch-joycon-animation-linux
8dbc7240b9dd55b4a7c7796a2a919546f3a9f44b
[ "MIT" ]
null
null
null
import sys from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import QMainWindow, QApplication import simpleaudio as sa # https://stackoverflow.com/questions/25950049/creating-a-transparent-overlay-with-qt class MainWindow(QMainWindow): def __init__(self): QMainWindow.__init__(self) # htt...
40.16129
116
0.647791
7b409e1067ad8ca8aaf15e78341c7deedcb2e33b
1,818
py
Python
backend/app/api/endpoints/results.py
cloud-bulldozer/ocp_perf_dashboard
d050538e9431b724a1963d73ba63aa78e2428942
[ "Apache-2.0" ]
null
null
null
backend/app/api/endpoints/results.py
cloud-bulldozer/ocp_perf_dashboard
d050538e9431b724a1963d73ba63aa78e2428942
[ "Apache-2.0" ]
5
2020-12-14T14:42:41.000Z
2021-06-08T19:38:23.000Z
backend/app/api/endpoints/results.py
mfleader/ocp_perf_dashboard
d050538e9431b724a1963d73ba63aa78e2428942
[ "Apache-2.0" ]
3
2020-12-13T18:24:25.000Z
2020-12-15T15:52:30.000Z
import asyncio from typing import Dict, Iterable import httpx from fastapi import APIRouter, Request from app.services.airflow import AirflowService from app.services.search import ElasticService router = APIRouter() airflow_service = AirflowService() @router.get("/") def root(request: Request): return { ...
25.971429
71
0.617162
8fcd2a1a4917ba534e5030c545a33a2b9097eb67
4,190
py
Python
indico/modules/rb/operations/admin.py
tobiashuste/indico
c1e6ec0c8c84745988e38c9b1768142a6feb9e0e
[ "MIT" ]
null
null
null
indico/modules/rb/operations/admin.py
tobiashuste/indico
c1e6ec0c8c84745988e38c9b1768142a6feb9e0e
[ "MIT" ]
null
null
null
indico/modules/rb/operations/admin.py
tobiashuste/indico
c1e6ec0c8c84745988e38c9b1768142a6feb9e0e
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from datetime import datetime, time from indico.core.db import d...
39.528302
114
0.730072
634e877667dde0868ce41a1bd212037392438cb1
1,552
py
Python
src/forest/git_tools/__init__.py
ADVRHumanoids/forest
22995b7bebf9809d49b0887dcb4a35c907fb3e13
[ "MIT" ]
null
null
null
src/forest/git_tools/__init__.py
ADVRHumanoids/forest
22995b7bebf9809d49b0887dcb4a35c907fb3e13
[ "MIT" ]
6
2022-02-24T14:00:39.000Z
2022-03-31T14:35:18.000Z
src/forest/git_tools/__init__.py
ADVRHumanoids/forest
22995b7bebf9809d49b0887dcb4a35c907fb3e13
[ "MIT" ]
null
null
null
import typing from forest.common import proc_utils import shutil class GitTools: def __init__(self, srcdir) -> None: self.srcdir = srcdir def clone(self, server: str, repository: str, tag: str, proto='ssh', recursive=False, ...
25.442623
81
0.528351
a1287b29f9b150a1a62cc043358f54b1a48871a8
3,595
py
Python
qsdsan/__init__.py
philthestone/QSDsan
50a9f7ba5f24aca653c999fe0a8c52f940287fa7
[ "Unlicense" ]
null
null
null
qsdsan/__init__.py
philthestone/QSDsan
50a9f7ba5f24aca653c999fe0a8c52f940287fa7
[ "Unlicense" ]
null
null
null
qsdsan/__init__.py
philthestone/QSDsan
50a9f7ba5f24aca653c999fe0a8c52f940287fa7
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' QSDsan: Quantitative Sustainable Design for sanitation and resource recovery systems This module is developed by: Yalin Li <zoe.yalin.li@gmail.com> Joy Zhang <joycheung1994@gmail.com> This module is under the University of Illinois/NCSA Open Source License. ...
27.030075
95
0.719054
5bc168093bf440319c99ed135a699dd0608e8df4
1,758
py
Python
Tarea 9/src/rosembrock.py
EsauPR/CIMAT-Numerical-Optimization
d7e932d4f1a6fe275492c4bc28044ef101ee69cf
[ "MIT" ]
null
null
null
Tarea 9/src/rosembrock.py
EsauPR/CIMAT-Numerical-Optimization
d7e932d4f1a6fe275492c4bc28044ef101ee69cf
[ "MIT" ]
null
null
null
Tarea 9/src/rosembrock.py
EsauPR/CIMAT-Numerical-Optimization
d7e932d4f1a6fe275492c4bc28044ef101ee69cf
[ "MIT" ]
null
null
null
""" Rosembrock function """ import numpy as np def function(x: np.array, n: int = 100) -> float: """ Compute the evaluation for Extended Rosembrock function with n=100 Args: x: Array of length=n with x's parameters n: Rosembrock, n = 100 Returns: Evaluation of f(X) ...
29.3
91
0.517065
6d0bd05733ba5a87d322a1b123a37510b959f406
158
py
Python
contrib/wallettools/walletunlock.py
BowscoinBSC/Bowscoin
f7e1dc4f99ca996a8fbda596fe19fdb07ae7f1fa
[ "MIT" ]
1
2019-04-30T19:42:42.000Z
2019-04-30T19:42:42.000Z
contrib/wallettools/walletunlock.py
BowscoinBSC/Bowscoin
f7e1dc4f99ca996a8fbda596fe19fdb07ae7f1fa
[ "MIT" ]
null
null
null
contrib/wallettools/walletunlock.py
BowscoinBSC/Bowscoin
f7e1dc4f99ca996a8fbda596fe19fdb07ae7f1fa
[ "MIT" ]
1
2018-07-02T12:18:45.000Z
2018-07-02T12:18:45.000Z
from jsonrpc import ServiceProxy access = ServiceProxy("http://127.0.0.1:8145") pwd = raw_input("Enter wallet passphrase: ") access.walletpassphrase(pwd, 60)
31.6
46
0.765823
e02b47a25c0d3e9918af721f047ccbff830126d5
5,985
py
Python
tools/db/replicateDbs.py
zachschultz/openwhisk
e9d5c505a391fe47585d706521ad991a9b65465d
[ "Apache-2.0" ]
null
null
null
tools/db/replicateDbs.py
zachschultz/openwhisk
e9d5c505a391fe47585d706521ad991a9b65465d
[ "Apache-2.0" ]
null
null
null
tools/db/replicateDbs.py
zachschultz/openwhisk
e9d5c505a391fe47585d706521ad991a9b65465d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Python script to replicate and replay databases. /* * 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 fil...
43.686131
164
0.700418
fd53ee81d5f0b1413d6666c6257d229c273d286f
4,611
py
Python
single_email_confirmation/models.py
ozldmezot/django-single-email-confirmation
2b9c771c6399350de7593283bb97004841133bee
[ "Unlicense" ]
null
null
null
single_email_confirmation/models.py
ozldmezot/django-single-email-confirmation
2b9c771c6399350de7593283bb97004841133bee
[ "Unlicense" ]
null
null
null
single_email_confirmation/models.py
ozldmezot/django-single-email-confirmation
2b9c771c6399350de7593283bb97004841133bee
[ "Unlicense" ]
null
null
null
from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from .signals import ( email_confirmed, confirmed_email_change_requested, unconfirmed_email_change_requested, ) from time import time from .exceptions import ConfirmationTokenDoesNotExi...
29.941558
102
0.66298
7a39f19b4060c906607dc30d4414bf469cf5b226
2,032
py
Python
galaxy_utils/sequence/scripts/fastq_paired_end_interlacer.py
galaxyproject/sequence_utils
f7e8cd163d27cb6c16a86ae63e5912ffe32e92ba
[ "CC-BY-3.0" ]
5
2015-10-31T11:28:50.000Z
2020-09-08T20:13:48.000Z
galaxy_utils/sequence/scripts/fastq_paired_end_interlacer.py
galaxyproject/sequence_utils
f7e8cd163d27cb6c16a86ae63e5912ffe32e92ba
[ "CC-BY-3.0" ]
22
2015-12-09T00:13:48.000Z
2020-02-18T12:25:38.000Z
galaxy_utils/sequence/scripts/fastq_paired_end_interlacer.py
galaxyproject/sequence_utils
f7e8cd163d27cb6c16a86ae63e5912ffe32e92ba
[ "CC-BY-3.0" ]
8
2015-10-21T13:22:18.000Z
2020-02-07T09:54:00.000Z
# Florent Angly import sys from galaxy_utils.sequence.fastq import ( fastqJoiner, fastqNamedReader, fastqReader, fastqWriter, ) def main(): mate1_filename = sys.argv[1] mate1_type = sys.argv[2] or 'sanger' mate2_filename = sys.argv[3] mate2_type = sys.argv[4] or 'sanger' outfile_...
29.882353
115
0.639764
392982a8b99e3c2d5397722e788f2413752e5a3c
2,644
py
Python
observations/r/o_brien_kaiser.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/o_brien_kaiser.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/o_brien_kaiser.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def o_brien_kaiser(path): """O'Brien and Kaiser's Repeated-Measures Data ...
23.81982
74
0.660741
4a63ac2f38cd14fdf0c9d66fba05c871e12d325c
972
py
Python
mtaani/urls.py
TonyKioko/NeighbourHood
617af13967f5dfbff70073475d69d9e7b82479ba
[ "MIT" ]
null
null
null
mtaani/urls.py
TonyKioko/NeighbourHood
617af13967f5dfbff70073475d69d9e7b82479ba
[ "MIT" ]
null
null
null
mtaani/urls.py
TonyKioko/NeighbourHood
617af13967f5dfbff70073475d69d9e7b82479ba
[ "MIT" ]
null
null
null
"""mtaani URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
36
79
0.692387
58e860899faff9f2918db19780a91d56203275cd
1,273
py
Python
tests/normalization_layers_test.py
dynastes-team/dynastes
931b6d9ac83862eb39c2f5144c95b952e9efcd8e
[ "MIT" ]
7
2020-01-18T14:28:04.000Z
2021-11-10T16:46:34.000Z
tests/normalization_layers_test.py
veqtor/dynastes
931b6d9ac83862eb39c2f5144c95b952e9efcd8e
[ "MIT" ]
null
null
null
tests/normalization_layers_test.py
veqtor/dynastes
931b6d9ac83862eb39c2f5144c95b952e9efcd8e
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow.python.framework import test_util from tensorflow_addons.layers.normalizations import GroupNormalization from dynastes.layers.normalization_layers import AdaptiveMultiNormalization, PoolNormalization2D def _test_grads(testCase: tf.test.TestCase, func, input)...
36.371429
96
0.701493
c8171b689ba40cd2d7c00610372ddc8a19475c60
23,603
py
Python
tensorflow/python/kernel_tests/relu_op_test.py
jnorwood/tensorflow
67ab6c9cebc4cbb2103246a1523d04261bef22d2
[ "Apache-2.0" ]
2
2020-03-15T12:18:42.000Z
2020-03-16T05:28:45.000Z
tensorflow/python/kernel_tests/relu_op_test.py
jnorwood/tensorflow
67ab6c9cebc4cbb2103246a1523d04261bef22d2
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/relu_op_test.py
jnorwood/tensorflow
67ab6c9cebc4cbb2103246a1523d04261bef22d2
[ "Apache-2.0" ]
1
2020-01-09T19:28:49.000Z
2020-01-09T19:28:49.000Z
# Copyright 2015 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...
36.20092
80
0.600983
6b14a64c77e2bed8d04d68d8c414d6a5d7a5ffd9
1,830
py
Python
shop/admin/defaults/customer.py
taime/django-shop
19e2ebd5f7da584fbf2e8bab8984b41e11979fc2
[ "BSD-3-Clause" ]
39
2015-02-21T00:45:02.000Z
2020-05-18T14:46:09.000Z
shop/admin/defaults/customer.py
taime/django-shop
19e2ebd5f7da584fbf2e8bab8984b41e11979fc2
[ "BSD-3-Clause" ]
46
2015-02-03T19:51:37.000Z
2017-03-24T23:40:14.000Z
shop/admin/defaults/customer.py
taime/django-shop
19e2ebd5f7da584fbf2e8bab8984b41e11979fc2
[ "BSD-3-Clause" ]
23
2015-04-12T09:03:41.000Z
2020-04-14T16:38:35.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from django.utils.html import format_html_join from django.utils.translation import ugettext_lazy as _ from shop.admin.customer import CustomerProxy, CustomerInlineAdminBase, CustomerAdminBase class CustomerInlineAdmin(...
38.125
89
0.716393
0b4b4aeed0f5c123f17f68bbfedda6fa9e10b19a
4,228
py
Python
lambda/subscriber.py
yuya-mizuki771/bootcamp-2021-sample
70d8953723fda494ac309c347d3b05ae13b4164a
[ "Apache-2.0" ]
null
null
null
lambda/subscriber.py
yuya-mizuki771/bootcamp-2021-sample
70d8953723fda494ac309c347d3b05ae13b4164a
[ "Apache-2.0" ]
null
null
null
lambda/subscriber.py
yuya-mizuki771/bootcamp-2021-sample
70d8953723fda494ac309c347d3b05ae13b4164a
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Union import uuid import boto3 import os import json DENIAL_MESSAGE_UPPER = """ご連絡ありがとうございます。 申し訳ないのですが、ご連絡頂いた商品({})の価格({}円)では、 当方の予算({}円)を超過しております。 できれば今後は当方の要件にあった情報をお渡しいただきたく思います。 """ DENIAL_MESSAGE_LOWER = """ご連絡ありがとうございます。 ご連絡頂いた商品({})の価格({}円)では、 当方の希望する価格({}円以上)よりも安価に過ぎます。 もっと付加価値の伴ったも...
46.461538
1,161
0.700095
93ac61e5eb75eed7a76eac6b48274011d13a502f
1,928
py
Python
mpikat/effelsberg/edd/pipeline/test/testHDFpipeline.py
TobiasWinchen/mpikat
46ea86d6861bcfd924daad7058de8a898ee6c6a1
[ "MIT" ]
null
null
null
mpikat/effelsberg/edd/pipeline/test/testHDFpipeline.py
TobiasWinchen/mpikat
46ea86d6861bcfd924daad7058de8a898ee6c6a1
[ "MIT" ]
null
null
null
mpikat/effelsberg/edd/pipeline/test/testHDFpipeline.py
TobiasWinchen/mpikat
46ea86d6861bcfd924daad7058de8a898ee6c6a1
[ "MIT" ]
null
null
null
from __future__ import print_function, division, unicode_literals from mpikat.effelsberg.edd.pipeline.edd_hdf_pipeline import EDDHDF5WriterPipeline from katcp import FailReply import unittest import tornado.testing import tornado.gen import tempfile import shutil import logging # #class TestHDFPipeline(tornado.testing...
29.661538
82
0.653008
6b042c3228cb2d5350cc5e32d4f2f3e348f381f0
1,204
py
Python
comp0037_planner_controller/scripts/map_getter.py
tharmee99/COMP0037_CW1_Path-Planning-in-a-known-world
6c7e56b865743f3250cddf9a7e1f19f9fdcb98e1
[ "BSD-3-Clause" ]
null
null
null
comp0037_planner_controller/scripts/map_getter.py
tharmee99/COMP0037_CW1_Path-Planning-in-a-known-world
6c7e56b865743f3250cddf9a7e1f19f9fdcb98e1
[ "BSD-3-Clause" ]
null
null
null
comp0037_planner_controller/scripts/map_getter.py
tharmee99/COMP0037_CW1_Path-Planning-in-a-known-world
6c7e56b865743f3250cddf9a7e1f19f9fdcb98e1
[ "BSD-3-Clause" ]
1
2020-02-16T22:56:25.000Z
2020-02-16T22:56:25.000Z
#!/usr/bin/env python import sys import rospy from nav_msgs.srv import GetMap from comp0037_planner_controller.occupancy_grid import OccupancyGrid from comp0037_planner_controller.search_grid import SearchGrid # This class pings the map server and gets the map. class MapGetter(object): def __init__(self): ...
30.871795
106
0.696013
8c3da3520adac1967cecb90c8de0fe72d4635869
8,064
py
Python
libqtile/ipc.py
armoutihansen/qtile
5bcb2afcd1f5b98b10987a796c4c7d7f36d97340
[ "MIT" ]
null
null
null
libqtile/ipc.py
armoutihansen/qtile
5bcb2afcd1f5b98b10987a796c4c7d7f36d97340
[ "MIT" ]
null
null
null
libqtile/ipc.py
armoutihansen/qtile
5bcb2afcd1f5b98b10987a796c4c7d7f36d97340
[ "MIT" ]
null
null
null
# Copyright (c) 2008, Aldo Cortesi. All rights reserved. # # 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,...
34.025316
83
0.633929
b7e2847ccbd8bde6ee1e6ba9914e22184f735392
14,994
py
Python
test/test_basic.py
lutraconsulting/mergin-work-packages
87850b9ca5069fbaf973a9341dca6aee72912528
[ "MIT" ]
4
2021-03-03T09:39:00.000Z
2021-08-01T00:00:37.000Z
test/test_basic.py
lutraconsulting/mergin-workpackages
87850b9ca5069fbaf973a9341dca6aee72912528
[ "MIT" ]
33
2021-03-03T12:21:51.000Z
2022-02-17T10:24:20.000Z
test/test_basic.py
lutraconsulting/mergin-workpackages
87850b9ca5069fbaf973a9341dca6aee72912528
[ "MIT" ]
1
2021-04-16T18:28:34.000Z
2021-04-16T18:28:34.000Z
import glob import os import shutil from tempfile import TemporaryDirectory import sqlite3 from .init_test_data import ( create_farm_dataset, open_layer_and_create_feature, open_layer_and_update_feature, open_layer_and_delete_feature, ) from wp import load_config_from_yaml, make_work_packages from wp_u...
46.565217
120
0.73276
fca51bdc337eaab666c14f5beb312f00161152cc
31,246
py
Python
src/ircmsgs.py
atr000/Limnoria
1f60a9487ca4114f040135fb14cabc155a041918
[ "BSD-3-Clause" ]
null
null
null
src/ircmsgs.py
atr000/Limnoria
1f60a9487ca4114f040135fb14cabc155a041918
[ "BSD-3-Clause" ]
null
null
null
src/ircmsgs.py
atr000/Limnoria
1f60a9487ca4114f040135fb14cabc155a041918
[ "BSD-3-Clause" ]
1
2021-01-23T21:20:57.000Z
2021-01-23T21:20:57.000Z
### # Copyright (c) 2002-2005, Jeremiah Fincher # Copyright (c) 2010, James Vega # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyri...
39.106383
80
0.587659
84ef45d9593589dd69b869cebcf4ccca82eaf42c
2,239
py
Python
tensorflow/python/data/experimental/kernel_tests/optimization/noop_elimination_test.py
leike666666/tensorflow
a3fd0ddfcb716be124e95b51e96e6c1e4507ef64
[ "Apache-2.0" ]
56
2018-06-21T13:47:23.000Z
2020-05-13T09:31:47.000Z
tensorflow/python/data/experimental/kernel_tests/optimization/noop_elimination_test.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
58
2021-11-22T05:41:28.000Z
2022-01-19T01:33:40.000Z
tensorflow/python/data/experimental/kernel_tests/optimization/noop_elimination_test.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
15
2018-09-06T14:18:32.000Z
2020-05-14T06:35:30.000Z
# 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.709091
80
0.750335
9455e0e44cb5fce8f17cde02b11a0b46b3bdfdc1
8,921
py
Python
tensorflow_serving/apis/session_service_pb2.py
alexeygrigorev/tensorflow-protobuf
9863a9281eb6caa9be73128c03906d990639208c
[ "Apache-2.0" ]
7
2020-12-28T02:53:05.000Z
2022-03-23T05:45:03.000Z
tensorflow_serving/apis/session_service_pb2.py
alexeygrigorev/tensorflow-protobuf
9863a9281eb6caa9be73128c03906d990639208c
[ "Apache-2.0" ]
1
2021-01-27T16:06:16.000Z
2021-01-27T19:43:38.000Z
tensorflow_serving/apis/session_service_pb2.py
alexeygrigorev/tensorflow-protobuf
9863a9281eb6caa9be73128c03906d990639208c
[ "Apache-2.0" ]
1
2021-02-11T11:46:01.000Z
2021-02-11T11:46:01.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow_serving/apis/session_service.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as...
46.952632
963
0.794754
936620f7a6e11dc66e8cf1ba017c7193aa9ebe15
916
py
Python
pykgr/environment.py
DylanEHolland/pykgr
e66442790a29b0fa0d1e4586abf442cd927c8015
[ "BSD-3-Clause" ]
null
null
null
pykgr/environment.py
DylanEHolland/pykgr
e66442790a29b0fa0d1e4586abf442cd927c8015
[ "BSD-3-Clause" ]
null
null
null
pykgr/environment.py
DylanEHolland/pykgr
e66442790a29b0fa0d1e4586abf442cd927c8015
[ "BSD-3-Clause" ]
null
null
null
import os from pykgr import config from pykgr.builder import Builder class Environment(object): builder = None variables = None def __init__(self): self.variables = dict(os.environ) self.builder = Builder( directory=config.builder_directory ) def build_builder...
21.302326
49
0.635371
fcc793fb7ae9e5682a1bdd01da453cea065eb2cd
7,221
py
Python
generate_vectors.py
Huge/python-shamir-mnemonic
f736c38078207b0729994730621bba95e8b79ebd
[ "MIT" ]
122
2018-10-23T13:02:49.000Z
2022-03-24T08:39:06.000Z
generate_vectors.py
precyx/python-shamir-mnemonic
be319758cf6bdb60b2dc3a3470d041f1ada25750
[ "MIT" ]
40
2019-03-07T03:18:07.000Z
2021-12-07T11:11:16.000Z
generate_vectors.py
precyx/python-shamir-mnemonic
be319758cf6bdb60b2dc3a3470d041f1ada25750
[ "MIT" ]
34
2018-11-07T13:59:36.000Z
2022-03-19T18:32:19.000Z
#!/usr/bin/env python3 import json import random import attr from shamir_mnemonic import constants, rs1024, shamir, wordlist from shamir_mnemonic.share import Share def random_bytes(n): return bytes(random.randrange(256) for _ in range(n)) def output(description, mnemonics, secret): output.i += 1 outp...
39.675824
109
0.61515
541d80816b80f4bda9f934a2a4b19c2820d0e022
1,285
py
Python
python/graphscope/framework/vineyard_object.py
wenyuanyu/GraphScope
a40ccaf70557e608d8b091eb25ab04477f99ce21
[ "Apache-2.0" ]
2
2020-12-15T08:42:10.000Z
2022-01-14T09:13:16.000Z
python/graphscope/framework/vineyard_object.py
wenyuanyu/GraphScope
a40ccaf70557e608d8b091eb25ab04477f99ce21
[ "Apache-2.0" ]
1
2020-12-22T13:15:40.000Z
2020-12-22T13:15:40.000Z
python/graphscope/framework/vineyard_object.py
wenyuanyu/GraphScope
a40ccaf70557e608d8b091eb25ab04477f99ce21
[ "Apache-2.0" ]
1
2021-11-23T03:40:43.000Z
2021-11-23T03:40:43.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. 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...
27.340426
74
0.700389
0c3f386612692b6ca0f74398b5d72bc4eb6481d8
1,237
tac
Python
docs/mail/tutorial/smtpserver/smtpserver-5.tac
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
1
2017-04-26T10:24:21.000Z
2017-04-26T10:24:21.000Z
docs/mail/tutorial/smtpserver/smtpserver-5.tac
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
5
2020-06-05T18:16:39.000Z
2022-01-13T00:45:49.000Z
docs/mail/tutorial/smtpserver/smtpserver-5.tac
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
1
2019-10-02T18:36:25.000Z
2019-10-02T18:36:25.000Z
import os from zope.interface import implementer from twisted.application import service application = service.Application("SMTP Server Tutorial") from twisted.application import internet from twisted.internet import protocol, defer smtpServerFactory = protocol.ServerFactory() from twisted.mail import smtp @imple...
24.74
63
0.717057
34d11e8ac422ba06d98f7d0105bdbf384f80f996
2,209
py
Python
tutorials/SAC/network/CriticNetwork.py
namjiwon1023/Code_With_RL
37beec975b1685e9f6cf991abed491b854b78173
[ "MIT" ]
3
2021-08-12T15:11:28.000Z
2021-09-27T16:04:16.000Z
tutorials/SAC/network/CriticNetwork.py
namjiwon1023/Code_With_RL
37beec975b1685e9f6cf991abed491b854b78173
[ "MIT" ]
null
null
null
tutorials/SAC/network/CriticNetwork.py
namjiwon1023/Code_With_RL
37beec975b1685e9f6cf991abed491b854b78173
[ "MIT" ]
1
2021-08-05T07:20:57.000Z
2021-08-05T07:20:57.000Z
# Copyright (c) 2021: Zhiyuan Nan (namjw@hanyang.ac.kr). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. import torch as T import torch.nn as nn import torch.optim as optim import os import random import torch.nn.functional as F import torch.optim ...
35.063492
93
0.56632
3b6f90a42fa02099f7c2d769d97ec359bd82733d
9,326
py
Python
timm/models/ghostnet.py
Robert-JunWang/pytorch-image-models
7c67d6aca992f039eece0af5f7c29a43d48c00e4
[ "Apache-2.0" ]
17,769
2019-05-02T08:08:25.000Z
2022-03-31T22:14:44.000Z
timm/models/ghostnet.py
Robert-JunWang/pytorch-image-models
7c67d6aca992f039eece0af5f7c29a43d48c00e4
[ "Apache-2.0" ]
556
2019-05-26T16:31:37.000Z
2022-03-30T04:21:07.000Z
timm/models/ghostnet.py
Robert-JunWang/pytorch-image-models
7c67d6aca992f039eece0af5f7c29a43d48c00e4
[ "Apache-2.0" ]
3,029
2019-05-14T01:18:28.000Z
2022-03-31T20:09:50.000Z
""" An implementation of GhostNet Model as defined in: GhostNet: More Features from Cheap Operations. https://arxiv.org/abs/1911.11907 The train script of the model is similar to that of MobileNetV3 Original model: https://github.com/huawei-noah/CV-backbones/tree/master/ghostnet_pytorch """ import math from functools i...
33.66787
120
0.599936
57cea09ee014705aaf1659c5cf32edc7339cbccd
181,101
py
Python
python/ccxt/async_support/zb.py
DoctorSlimm/ccxt
8f19512dfc5dac159eaeb465c98226c00252a9b6
[ "MIT" ]
1
2021-11-16T15:45:34.000Z
2021-11-16T15:45:34.000Z
python/ccxt/async_support/zb.py
DoctorSlimm/ccxt
8f19512dfc5dac159eaeb465c98226c00252a9b6
[ "MIT" ]
null
null
null
python/ccxt/async_support/zb.py
DoctorSlimm/ccxt
8f19512dfc5dac159eaeb465c98226c00252a9b6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors impor...
44.376623
205
0.456546
065d5e8e6ae7539700198f02bf477b5a375ded17
976
py
Python
timi_robot/logger.py
lxl0928/wechat_work_logger_robot
a8e3e968e31c94a5ae8dee573a1bc4f7dccd7d95
[ "Apache-2.0" ]
1
2019-12-16T18:20:42.000Z
2019-12-16T18:20:42.000Z
timi_robot/logger.py
lxl0928/wechat_work_logger_robot
a8e3e968e31c94a5ae8dee573a1bc4f7dccd7d95
[ "Apache-2.0" ]
null
null
null
timi_robot/logger.py
lxl0928/wechat_work_logger_robot
a8e3e968e31c94a5ae8dee573a1bc4f7dccd7d95
[ "Apache-2.0" ]
1
2021-04-11T04:36:50.000Z
2021-04-11T04:36:50.000Z
# coding: utf-8 import traceback from timi_robot.hub import init_sdk, capture_message, async_capture_message class SensoroLogger(object): def __init__(self, url, phones): self.url = url self.phones = phones def log(self, err=None, common_msg=None): msg = f"{traceback.format_exc()}" ...
36.148148
113
0.67418
3656a80e3bba340e525f387e325a9d0d9dfb1121
2,949
py
Python
shenjieting/Study/Study_collections.py
qsyPython/Python_play_now
278b6d5d30082f8f93b26902c854737c4919405a
[ "MIT" ]
2
2018-03-29T08:26:17.000Z
2019-06-17T10:56:19.000Z
shenjieting/Study/Study_collections.py
qsyPython/Python_play_now
278b6d5d30082f8f93b26902c854737c4919405a
[ "MIT" ]
1
2022-03-22T20:26:08.000Z
2022-03-22T20:26:08.000Z
shenjieting/Study/Study_collections.py
qsyPython/Python_play_now
278b6d5d30082f8f93b26902c854737c4919405a
[ "MIT" ]
1
2019-02-18T10:44:20.000Z
2019-02-18T10:44:20.000Z
#collections是Python内建的一个集合模块,提供了许多有用的集合类。 from collections import namedtuple from collections import deque from collections import defaultdict from collections import OrderedDict from collections import Counter #⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐ ''' namedtuple 是一个函数,它用来创建一个自定义的tuple对象,并且规定了tuple元素的个数,并可以用属性而不是索引来引用tuple的某个元...
24.991525
110
0.675822
eac71c73e577c7d3ef78ff01c8d3ab07a351cebd
31,244
py
Python
alex/applications/Switchboard/sw_hub.py
beka-evature/alex
e8fdc6f2d908d7a1911b18f29c218ae58d19ed6f
[ "Apache-2.0" ]
1
2015-10-19T17:36:27.000Z
2015-10-19T17:36:27.000Z
alex/applications/Switchboard/sw_hub.py
beka-evature/alex
e8fdc6f2d908d7a1911b18f29c218ae58d19ed6f
[ "Apache-2.0" ]
null
null
null
alex/applications/Switchboard/sw_hub.py
beka-evature/alex
e8fdc6f2d908d7a1911b18f29c218ae58d19ed6f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import multiprocessing import time import cPickle as pickle import argparse import re from alex.components.hub.vio import VoipIO from alex.components.hub.vad import VAD from alex.components.hub.tts import TTS from alex.components.h...
46.150665
183
0.530982
de14ce710cb616961d4631d8dea7e6152d2ef73d
7,431
py
Python
libqtile/widget/systray.py
himaaaatti/qtile
9a8326d751042c0b59cbc0aee4a5e20e8ff03a4d
[ "MIT" ]
null
null
null
libqtile/widget/systray.py
himaaaatti/qtile
9a8326d751042c0b59cbc0aee4a5e20e8ff03a4d
[ "MIT" ]
null
null
null
libqtile/widget/systray.py
himaaaatti/qtile
9a8326d751042c0b59cbc0aee4a5e20e8ff03a4d
[ "MIT" ]
null
null
null
# Copyright (c) 2010 Aldo Cortesi # Copyright (c) 2010-2011 dequis # Copyright (c) 2010, 2012 roger # Copyright (c) 2011 Mounier Florian # Copyright (c) 2011-2012, 2014 Tycho Andersen # Copyright (c) 2012 dmpayton # Copyright (c) 2012-2013 Craig Barnes # Copyright (c) 2013 hbc # Copyright (c) 2013 Tao Sauvage # Copyrig...
32.880531
79
0.60113
f50776277715fec1de62a22333aa3ad5bbc11e08
3,581
py
Python
egs/aspire/s5/local/multi_condition/create_uniform_segments.py
oplatek/idlak
02b24dc6f79b84779e423bfbb17bdf8e70c95aec
[ "Apache-2.0" ]
null
null
null
egs/aspire/s5/local/multi_condition/create_uniform_segments.py
oplatek/idlak
02b24dc6f79b84779e423bfbb17bdf8e70c95aec
[ "Apache-2.0" ]
null
null
null
egs/aspire/s5/local/multi_condition/create_uniform_segments.py
oplatek/idlak
02b24dc6f79b84779e423bfbb17bdf8e70c95aec
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Johns Hopkins University (Authors: Daniel Povey, Vijayaditya Peddinti). Apache 2.0. # creates a segments file in the provided data directory # into uniform segments with specified window and overlap import imp, sys, argparse, os, math, subprocess corruptor = imp.load_source('', 'local/multi_condi...
44.7625
140
0.717118
a22b35cfbb6504b84c6d622913070b37994b51b7
236
py
Python
dogProject/dogs/admin.py
cs-fullstack-2019-spring/django-models-cw-bettyjware11
1cdd033b598a640a932db5aece91e3f8d2770d85
[ "Apache-2.0" ]
null
null
null
dogProject/dogs/admin.py
cs-fullstack-2019-spring/django-models-cw-bettyjware11
1cdd033b598a640a932db5aece91e3f8d2770d85
[ "Apache-2.0" ]
null
null
null
dogProject/dogs/admin.py
cs-fullstack-2019-spring/django-models-cw-bettyjware11
1cdd033b598a640a932db5aece91e3f8d2770d85
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin # Register your models here. # setting up admin so that I can add information and make changes from.models import Dog admin.site.register(Dog) from.models import Account admin.site.register(Account)
19.666667
65
0.79661
085a21bf18d650b5a4415c27e1f5d6bdc3daea62
199
py
Python
kirigami/__init__.py
marc-harary/kirigami
059256f7ebb083e6b21d633d8928f4144c2f02fb
[ "MIT" ]
null
null
null
kirigami/__init__.py
marc-harary/kirigami
059256f7ebb083e6b21d633d8928f4144c2f02fb
[ "MIT" ]
2
2021-01-18T03:53:35.000Z
2021-04-01T02:35:02.000Z
kirigami/__init__.py
marc-harary/kirigami
059256f7ebb083e6b21d633d8928f4144c2f02fb
[ "MIT" ]
null
null
null
import warnings warnings.filterwarnings("ignore") from kirigami import nn from kirigami import utils from kirigami._cpp_utils import * from kirigami.distance import * from kirigami.contact import *
22.111111
33
0.824121
f4f646fe5613b7ca826cceef106e05a862face1e
11,886
py
Python
test/integration/ggrc_workflows/converters/test_export_cycle_tasks.py
sfarbotka/ggrc-core
ef7aae6bc09ad2f53a2414f643572e07d689784a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc_workflows/converters/test_export_cycle_tasks.py
sfarbotka/ggrc-core
ef7aae6bc09ad2f53a2414f643572e07d689784a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc_workflows/converters/test_export_cycle_tasks.py
sfarbotka/ggrc-core
ef7aae6bc09ad2f53a2414f643572e07d689784a
[ "ECL-2.0", "Apache-2.0" ]
1
2020-02-13T12:32:45.000Z
2020-02-13T12:32:45.000Z
# Copyright (C) 2019 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Tests for task group task specific export.""" from collections import defaultdict import ddt from ggrc.models import all_models from integration import ggrc from integration.ggrc.models import factori...
41.852113
78
0.695777
a936df93abe12becab9ed304a472c6008539bfe4
1,057
py
Python
h/services/groupfinder.py
rickyhan/h
d13cbc3ec5cf92fbfb40ad360c7a5e0d937fbd14
[ "MIT" ]
2
2021-11-07T23:14:54.000Z
2021-11-17T10:11:55.000Z
h/services/groupfinder.py
0b01/h
d13cbc3ec5cf92fbfb40ad360c7a5e0d937fbd14
[ "MIT" ]
null
null
null
h/services/groupfinder.py
0b01/h
d13cbc3ec5cf92fbfb40ad360c7a5e0d937fbd14
[ "MIT" ]
1
2017-03-12T00:18:33.000Z
2017-03-12T00:18:33.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from zope.interface import implementer from h import models from h.interfaces import IGroupService from h.util.db import lru_cache_in_transaction from h.groups.util import WorldGroup # Ideally this would be called the GroupService to match nomenclatur...
28.567568
79
0.711447
160e669e725837bf4951e54f2bed350f66a11d68
30,316
py
Python
tests/tracking/test_tracking.py
tsterbak/mlflow
77bfd3eb6e130d6583ee6e91b3d88298bb6951c7
[ "Apache-2.0" ]
null
null
null
tests/tracking/test_tracking.py
tsterbak/mlflow
77bfd3eb6e130d6583ee6e91b3d88298bb6951c7
[ "Apache-2.0" ]
null
null
null
tests/tracking/test_tracking.py
tsterbak/mlflow
77bfd3eb6e130d6583ee6e91b3d88298bb6951c7
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple import filecmp import json import os import posixpath import random import tempfile import time import yaml import pytest from unittest import mock import mlflow from mlflow import tracking from mlflow.entities import RunStatus, LifecycleStage, Metric, Param, RunTag, ViewType from m...
41.585734
111
0.686271
b04e93595e8335001b59e2ad8890c85d239ddfb3
2,265
py
Python
plugin.video.hellokoko/tests/kokolib_test.py
jabiel/kodi
f1fc8b74e4313705c2b928914ca6a6bcd56df0a3
[ "MIT" ]
null
null
null
plugin.video.hellokoko/tests/kokolib_test.py
jabiel/kodi
f1fc8b74e4313705c2b928914ca6a6bcd56df0a3
[ "MIT" ]
null
null
null
plugin.video.hellokoko/tests/kokolib_test.py
jabiel/kodi
f1fc8b74e4313705c2b928914ca6a6bcd56df0a3
[ "MIT" ]
null
null
null
import unittest from resources.lib import kokolib class Test_kokolib_test(unittest.TestCase): def test_decryptDefalc13(self): zz = kokolib.decryptDefalc13('Vidto^$2^$0^$%@%ivqgb.zr/rzorq-r4ldnpru45d9-640k360.ugzy^%^Vidto^$2^$1^$%@%ivqgb.zr/rzorq-u65w347cbm3k-640k360.ugzy^%^Vidto^$0^$0^$%@%ivqgb.zr/rzorq-oq...
161.785714
1,946
0.688742
a3fd58cca965e84de1056d11dd9e05676711d3cc
161
py
Python
send.py
dyike/CTEmail
d94416401198393df01f143047acb1fb7c227492
[ "MIT" ]
47
2017-10-15T08:23:55.000Z
2021-03-21T04:05:25.000Z
send.py
bobo18801737494/CTEmail
d94416401198393df01f143047acb1fb7c227492
[ "MIT" ]
null
null
null
send.py
bobo18801737494/CTEmail
d94416401198393df01f143047acb1fb7c227492
[ "MIT" ]
7
2017-10-16T02:23:12.000Z
2020-07-08T13:32:28.000Z
from ctemail import CTEmail e = CTEmail('Your email acount', 'Your password') # " ./content/ 邮件文件的路径 " e.send_email('Test Email', './content/', ['i@ityike.com'])
40.25
58
0.68323
d78a6d74af88e0eea959ab35722d7c8d807c00a2
3,091
py
Python
nosferatu/views.py
DanCardin/nosferatu
7a81cfb0871e5a50649cde1a9585140e8b88d442
[ "Apache-2.0" ]
null
null
null
nosferatu/views.py
DanCardin/nosferatu
7a81cfb0871e5a50649cde1a9585140e8b88d442
[ "Apache-2.0" ]
null
null
null
nosferatu/views.py
DanCardin/nosferatu
7a81cfb0871e5a50649cde1a9585140e8b88d442
[ "Apache-2.0" ]
null
null
null
import logging from flask import render_template, jsonify, request from flask_user import login_required, current_user from flask_user.signals import user_sent_invitation, user_registered from . import app, cache, db from .models import Node from .tasks import * log = logging.getLogger('debug') @user_registered.co...
26.878261
81
0.697185
16ef6e44413a8ecbaac274b3ca1579e4f4b528ac
1,491
py
Python
setup.py
jugmac00/flask-wtf
c25fdf0efabbf367a67b60706ef254e5c5dbd5b7
[ "BSD-3-Clause" ]
1
2015-02-28T18:48:37.000Z
2015-02-28T18:48:37.000Z
setup.py
jugmac00/flask-wtf
c25fdf0efabbf367a67b60706ef254e5c5dbd5b7
[ "BSD-3-Clause" ]
null
null
null
setup.py
jugmac00/flask-wtf
c25fdf0efabbf367a67b60706ef254e5c5dbd5b7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import find_packages, setup with open('README.rst') as f: readme = f.read() setup( name='Flask-WTF', version='0.14.3', url='https://github.com/lepture/flask-wtf', license='BSD', author='Dan Jacob', author_email='danjac354@gmail.com', maintainer='Hs...
33.133333
70
0.612341
4ead118d321e2b6eddc74f2f91f7cadde9ba6699
785
py
Python
hhlevents/apps/hhlregistrations/migrations/0008_auto_20150412_2257.py
HelsinkiHacklab/hhlevents
94e7092963670d7689bb975e238a0ed2b35a4692
[ "BSD-3-Clause" ]
1
2021-02-14T13:16:36.000Z
2021-02-14T13:16:36.000Z
hhlevents/apps/hhlregistrations/migrations/0008_auto_20150412_2257.py
HelsinkiHacklab/hhlevents
94e7092963670d7689bb975e238a0ed2b35a4692
[ "BSD-3-Clause" ]
7
2015-12-02T11:43:49.000Z
2019-01-05T20:41:35.000Z
hhlevents/apps/hhlregistrations/migrations/0008_auto_20150412_2257.py
hacklab-fi/hhlevents
94e7092963670d7689bb975e238a0ed2b35a4692
[ "BSD-3-Clause" ]
2
2015-11-27T20:20:46.000Z
2015-11-28T16:34:42.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import uuid class Migration(migrations.Migration): dependencies = [ ('hhlregistrations', '0007_auto_20150412_2220'), ] operations = [ migrations.AddField( model_name='eve...
25.322581
71
0.588535
86604625f2bc1a227b767f781365c0e542589abc
2,519
py
Python
imagededup/utils/image_utils.py
backwardn/imagededup
81d383ec0774d62439eb34ca1fab21b23d83bacd
[ "Apache-2.0" ]
2
2020-06-12T11:20:46.000Z
2020-06-18T15:54:28.000Z
imagededup/utils/image_utils.py
ndcuong91/imagededup
b6c62eb0f7b49c4f484963efb54c0a118288dc44
[ "Apache-2.0" ]
null
null
null
imagededup/utils/image_utils.py
ndcuong91/imagededup
b6c62eb0f7b49c4f484963efb54c0a118288dc44
[ "Apache-2.0" ]
1
2020-10-07T12:33:16.000Z
2020-10-07T12:33:16.000Z
from pathlib import PurePath from typing import List, Union, Tuple import numpy as np from PIL import Image from imagededup.utils.logger import return_logger IMG_FORMATS = ['JPEG', 'PNG', 'BMP', 'MPO', 'PPM', 'TIFF', 'GIF'] logger = return_logger(__name__) def preprocess_image( image, target_size: Tuple[int, ...
29.988095
117
0.649861
b8f1c83e4340e4fde78398ec4382df8029a880db
1,048
py
Python
script/run_CSO.py
cyy111/metaheuristics
9d885e4c9e9f39ad22baa9ea5d263d5daa276f88
[ "Apache-2.0" ]
104
2020-09-07T01:24:19.000Z
2022-03-30T13:11:21.000Z
script/run_CSO.py
luanedge/metaheuristics
9d885e4c9e9f39ad22baa9ea5d263d5daa276f88
[ "Apache-2.0" ]
3
2020-05-12T03:54:16.000Z
2020-06-06T01:12:31.000Z
script/run_CSO.py
luanedge/metaheuristics
9d885e4c9e9f39ad22baa9ea5d263d5daa276f88
[ "Apache-2.0" ]
40
2020-08-30T14:29:37.000Z
2022-03-30T17:33:26.000Z
from models.multiple_solution.swarm_based.CSO import BaseCSO from utils.FunctionUtil import square_function ## Setting parameters root_paras = { "problem_size": 30, "domain_range": [-1, 1], "print_train": True, "objective_func": square_function } cso_paras = { "epoch": 100, "pop_size": 250, ...
34.933333
114
0.611641
d6d744ebe1b2efbf7246b78c9f99375198d6201b
171
py
Python
src/secml/testing/__init__.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
63
2020-04-20T16:31:16.000Z
2022-03-29T01:05:35.000Z
src/secml/testing/__init__.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
5
2020-04-21T11:31:39.000Z
2022-03-24T13:42:56.000Z
src/secml/testing/__init__.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
8
2020-04-21T09:16:42.000Z
2022-02-23T16:28:43.000Z
try: import pytest except ImportError: raise ImportError( "Install extra component `unittests` to use `secml.testing`") from .c_unittest import CUnitTest
21.375
69
0.725146
3345a94c4dce308e390100fadbb1befb55a71f0e
4,824
py
Python
utils/center.py
qychen13/ClusterAlignReID
9dca1a39b7f1035c9579d80bbb73aa45480a616c
[ "MIT" ]
15
2020-08-24T22:47:39.000Z
2021-04-19T07:51:32.000Z
utils/center.py
qychen13/ClusterAlignReID
9dca1a39b7f1035c9579d80bbb73aa45480a616c
[ "MIT" ]
1
2021-10-14T03:07:12.000Z
2021-11-05T13:59:55.000Z
utils/center.py
qychen13/ClusterAlignReID
9dca1a39b7f1035c9579d80bbb73aa45480a616c
[ "MIT" ]
1
2020-08-26T02:48:40.000Z
2020-08-26T02:48:40.000Z
import torch import torch.nn as nn import torch.nn.functional as F from collections import defaultdict from tqdm import tqdm from .evaluation import fliplr def calculate_id_features(feature_extractor, training_iterator, gpu_ids, method='avg', flips=True): print('==> extracting training features...') with torch...
39.219512
130
0.560945
e0fa8df2847b2754005b438eb96965db9cc8aa1f
12,088
py
Python
cpas_toolbox/asmnet/asm_pcd/asm.py
roym899/pose_and_shape_evaluation
a55c9452b54b64715f817d9dd80d098472ab56bf
[ "MIT" ]
5
2022-02-22T09:48:01.000Z
2022-03-28T12:41:44.000Z
cpas_toolbox/asmnet/asm_pcd/asm.py
roym899/pose_and_shape_evaluation
a55c9452b54b64715f817d9dd80d098472ab56bf
[ "MIT" ]
2
2022-02-23T07:31:00.000Z
2022-03-10T09:11:54.000Z
cpas_toolbox/asmnet/asm_pcd/asm.py
roym899/pose_and_shape_evaluation
a55c9452b54b64715f817d9dd80d098472ab56bf
[ "MIT" ]
1
2021-11-29T03:45:31.000Z
2021-11-29T03:45:31.000Z
""" Active Shape Model for point cloud deformation Shuichi Akizuki, Chukyo Univ. Email: s-akizuki@sist.chukyo-u.ac.jp """ import numpy as np from sklearn.decomposition import PCA import copy import os.path as osp from math import * import open3d as o3 import cv2 class ActiveShapeModel(): """ Required p...
26.743363
105
0.54004
88b8b957f94666a3db0bc12595f38e14fed83bbc
7,578
py
Python
bot.py
0xCN/MailBot
a6f9b94d6aca158f583369f55561806c50236c1c
[ "MIT" ]
1
2022-02-07T20:05:34.000Z
2022-02-07T20:05:34.000Z
bot.py
0xCN/MailBot
a6f9b94d6aca158f583369f55561806c50236c1c
[ "MIT" ]
null
null
null
bot.py
0xCN/MailBot
a6f9b94d6aca158f583369f55561806c50236c1c
[ "MIT" ]
1
2022-01-12T04:49:50.000Z
2022-01-12T04:49:50.000Z
import os import email import discord import asyncio import aiosmtplib from aioimaplib import aioimaplib from selectolax.parser import HTMLParser from config import ( imap_host, smtp_host, user, passwd, mail_channel_id, send_channel_id, from_mail, token, pre ) client = discord.Client() imap_host = imap_host.sp...
34.445455
78
0.510161
6252eeaabe90d4aeb7929c26927226d14187bb70
115,278
py
Python
saleor/graphql/product/tests/test_variant.py
sjkim-com/saleor
097592305f9340e1e72d4987b355932d335436ef
[ "CC-BY-4.0" ]
1
2021-01-13T15:55:33.000Z
2021-01-13T15:55:33.000Z
saleor/graphql/product/tests/test_variant.py
Chemax911/saleor
4e060c03bb2457f3cd36beaffefcad0188abb2ab
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/product/tests/test_variant.py
Chemax911/saleor
4e060c03bb2457f3cd36beaffefcad0188abb2ab
[ "CC-BY-4.0" ]
null
null
null
from unittest.mock import ANY, patch from uuid import uuid4 import graphene import pytest from django.utils.text import slugify from measurement.measures import Weight from prices import Money, TaxedMoney from ....attribute import AttributeInputType from ....attribute.utils import associate_attribute_values_to_instan...
33.697165
88
0.636609
8ca24806898a75ed633e54bd29a7c6011d3d66ee
6,745
py
Python
django_pypayzen/tests/data.py
SamambaMan/django-payzen
88b2df368bb7afe32a33ae398a8c858531647068
[ "MIT" ]
null
null
null
django_pypayzen/tests/data.py
SamambaMan/django-payzen
88b2df368bb7afe32a33ae398a8c858531647068
[ "MIT" ]
null
null
null
django_pypayzen/tests/data.py
SamambaMan/django-payzen
88b2df368bb7afe32a33ae398a8c858531647068
[ "MIT" ]
null
null
null
import collections url_exemple = "http://www.google.com/" cards = [ { 'type': 'CB', 'card_number': '4970100000000000', 'behaviour': '3D-Secure', 'result': 'accepted' }, { 'type': 'MasterCard', 'card_number': '5970100300000000', 'behaviour': '3D-Secur...
28.340336
66
0.564566
49636c152799df9bc543f985a35be57a327cd8d8
3,062
py
Python
atomate/vasp/builders/file_materials.py
Zhuoying/atomate
067023f0f740d3abac47b7ae7743c1c31eff8a06
[ "BSD-3-Clause-LBNL" ]
null
null
null
atomate/vasp/builders/file_materials.py
Zhuoying/atomate
067023f0f740d3abac47b7ae7743c1c31eff8a06
[ "BSD-3-Clause-LBNL" ]
null
null
null
atomate/vasp/builders/file_materials.py
Zhuoying/atomate
067023f0f740d3abac47b7ae7743c1c31eff8a06
[ "BSD-3-Clause-LBNL" ]
null
null
null
from pymatgen.core import Composition from tqdm import tqdm from atomate.utils.utils import get_database, get_logger from atomate.vasp.builders.base import AbstractBuilder logger = get_logger(__name__) __author__ = "Anubhav Jain <ajain@lbl.gov>" class FileMaterialsBuilder(AbstractBuilder): def __init__(self, m...
36.452381
83
0.536577
14c018900b7ce5ce1932e16127e786f2e297b8fc
13,975
py
Python
napari/utils/events/evented_model.py
chili-chiu/napari
eb6e672975ce105ac0125f71da3d0970d17cefb9
[ "BSD-3-Clause" ]
7
2018-07-03T17:35:46.000Z
2018-11-07T15:48:58.000Z
napari/utils/events/evented_model.py
chili-chiu/napari
eb6e672975ce105ac0125f71da3d0970d17cefb9
[ "BSD-3-Clause" ]
120
2018-09-04T22:05:13.000Z
2019-03-02T01:13:57.000Z
napari/utils/events/evented_model.py
chili-chiu/napari
eb6e672975ce105ac0125f71da3d0970d17cefb9
[ "BSD-3-Clause" ]
8
2018-09-04T21:48:26.000Z
2019-01-29T04:48:30.000Z
import operator import sys import warnings from contextlib import contextmanager from typing import Any, Callable, ClassVar, Dict, Set, Union import numpy as np from pydantic import BaseModel, PrivateAttr, main, utils from ...utils.misc import pick_equality_operator from ..translations import trans from .event import...
39.701705
84
0.632558
c4640e711161c9c853adfba25701bfdeffebbf13
170
py
Python
docs/api-examples-source/widget.selectbox.py
Camilo-Mendoza/streamlit-ML
be8aafdf9f334b92a6e056e6c4f994da82587f80
[ "Apache-2.0" ]
null
null
null
docs/api-examples-source/widget.selectbox.py
Camilo-Mendoza/streamlit-ML
be8aafdf9f334b92a6e056e6c4f994da82587f80
[ "Apache-2.0" ]
9
2021-03-01T20:47:52.000Z
2022-02-12T20:49:50.000Z
docs/api-examples-source/widget.selectbox.py
Camilo-Mendoza/streamlit-ML
be8aafdf9f334b92a6e056e6c4f994da82587f80
[ "Apache-2.0" ]
null
null
null
import streamlit as st option = st.selectbox( 'How would you like to be contacted?', ('Email', 'Home phone', 'Mobile phone')) st.write('You selected:', option)
21.25
44
0.664706
313c5625129b7c2fa4bf487115157cc796a548bd
2,401
py
Python
ensemble.py
JobQiu/kaggle_bowl18
cc62b5d406b0accbdbcf2357b70ee377e0344b3b
[ "MIT" ]
null
null
null
ensemble.py
JobQiu/kaggle_bowl18
cc62b5d406b0accbdbcf2357b70ee377e0344b3b
[ "MIT" ]
null
null
null
ensemble.py
JobQiu/kaggle_bowl18
cc62b5d406b0accbdbcf2357b70ee377e0344b3b
[ "MIT" ]
null
null
null
import model as modellib import pandas as pd import cv2 import os import numpy as np from tqdm import tqdm from inference_config import inference_config,inference_config101 from bowl_dataset import BowlDataset from utils import rle_encode, rle_decode, rle_to_string import functions as f from u_net import * ROOT_DIR = ...
30.392405
99
0.723032
38ccbf34a904a78b83d817bedc56491d3114b009
1,467
py
Python
neurolang/probabilistic/cplogic/tests/test_problog.py
hndgzkn/NeuroLang
a3178d47f80bc0941440d9bb09e06c2f217b9566
[ "BSD-3-Clause" ]
1
2021-01-07T02:00:22.000Z
2021-01-07T02:00:22.000Z
neurolang/probabilistic/cplogic/tests/test_problog.py
hndgzkn/NeuroLang
a3178d47f80bc0941440d9bb09e06c2f217b9566
[ "BSD-3-Clause" ]
207
2020-11-04T12:51:10.000Z
2022-03-30T13:42:26.000Z
neurolang/probabilistic/cplogic/tests/test_problog.py
hndgzkn/NeuroLang
a3178d47f80bc0941440d9bb09e06c2f217b9566
[ "BSD-3-Clause" ]
6
2020-11-04T13:59:35.000Z
2021-03-19T05:28:10.000Z
import problog.core import problog.logic import problog.sdd_formula from ....datalog.expressions import Fact from ....expressions import Constant, Symbol from ....logic import Implication from ..problog_solver import cplogic_to_problog from ..program import CPLogicProgram P = Symbol("P") a = Constant("a") def test_...
31.891304
78
0.68848
517fbbef43f7d5a5f1a855971dfa18ed564385d7
3,771
py
Python
fastparquet/test/test_pd_optional_types.py
lithomas1/fastparquet
089a592ebf9eca72b7ef16134d89749ff5454936
[ "Apache-2.0" ]
null
null
null
fastparquet/test/test_pd_optional_types.py
lithomas1/fastparquet
089a592ebf9eca72b7ef16134d89749ff5454936
[ "Apache-2.0" ]
null
null
null
fastparquet/test/test_pd_optional_types.py
lithomas1/fastparquet
089a592ebf9eca72b7ef16134d89749ff5454936
[ "Apache-2.0" ]
null
null
null
import os import pytest import numpy as np import pandas as pd from pandas.testing import assert_frame_equal import fastparquet as fp from fastparquet.test.util import tempdir from fastparquet import write, parquet_thrift from fastparquet.parquet_thrift.parquet import ttypes as tt import numpy.random as random EXPECT...
38.876289
118
0.72315
5396740e2baba123b54f1cec8f2f28868c4fcffb
5,042
py
Python
utility/db.py
Andinoriel/diploma
a17060b1f0d54e03ba915e8c483bdb3df9e8787d
[ "MIT" ]
3
2021-05-01T10:57:01.000Z
2021-05-06T16:36:35.000Z
utility/db.py
andinoriel/diploma
a17060b1f0d54e03ba915e8c483bdb3df9e8787d
[ "MIT" ]
null
null
null
utility/db.py
andinoriel/diploma
a17060b1f0d54e03ba915e8c483bdb3df9e8787d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # ================================================================= # # MODULE: utility:db # LOCAL ENTRY POINT: . # # utility # |-- common.sh # |-- db.py *CURRENT* # |-- utility.sh # # COMMENT: python DB log accessor # # =============================================================...
26.536842
78
0.493257
59e89aba12dc2fbd739e7aa010d5d86c99a4f976
8,649
py
Python
tests/test_graph.py
altdeep/y0
3e9e8d47b08b51f64216000db31d8f4c0fd388a3
[ "BSD-3-Clause" ]
1
2021-09-14T01:36:50.000Z
2021-09-14T01:36:50.000Z
tests/test_graph.py
altdeep/y0
3e9e8d47b08b51f64216000db31d8f4c0fd388a3
[ "BSD-3-Clause" ]
null
null
null
tests/test_graph.py
altdeep/y0
3e9e8d47b08b51f64216000db31d8f4c0fd388a3
[ "BSD-3-Clause" ]
1
2021-09-14T01:36:57.000Z
2021-09-14T01:36:57.000Z
# -*- coding: utf-8 -*- """Test graph construction and conversion.""" import unittest from textwrap import dedent from typing import Set, Tuple import networkx as nx from ananke.graphs import ADMG from y0.examples import verma_1 from y0.graph import DEFAULT_TAG, DEFULT_PREFIX, NxMixedGraph from y0.resources import ...
41.782609
110
0.594866
a598cd637c458da80382d89e9c24d4c6b567dd29
22,391
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_08_01/aio/operations/_load_balancers_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_08_01/aio/operations/_load_balancers_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_08_01/aio/operations/_load_balancers_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "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 ...
48.049356
195
0.662811
30cacbdd070dfc6921a7d853332f74425cca7c62
1,470
py
Python
aliyun-python-sdk-cr/aliyunsdkcr/request/v20160607/GetRepoListRequest.py
LittleJober/aliyun-openapi-python-sdk
f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cr/aliyunsdkcr/request/v20160607/GetRepoListRequest.py
LittleJober/aliyun-openapi-python-sdk
f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-cr/aliyunsdkcr/request/v20160607/GetRepoListRequest.py
LittleJober/aliyun-openapi-python-sdk
f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76
[ "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 u...
32.666667
69
0.748299
b681fd955cb1f63d675b56b1590efb544ca05038
28,205
py
Python
Providers/Scripts/3.x/Scripts/nxFirewall.py
amitsara/PowerShell-DSC-for-Linux
22694d09f1fe61228210aae9bdd53b6f3da4c2d1
[ "MIT" ]
2
2020-05-19T20:07:32.000Z
2020-08-08T00:58:15.000Z
Providers/Scripts/3.x/Scripts/nxFirewall.py
amitsara/PowerShell-DSC-for-Linux
22694d09f1fe61228210aae9bdd53b6f3da4c2d1
[ "MIT" ]
null
null
null
Providers/Scripts/3.x/Scripts/nxFirewall.py
amitsara/PowerShell-DSC-for-Linux
22694d09f1fe61228210aae9bdd53b6f3da4c2d1
[ "MIT" ]
4
2019-10-31T19:10:42.000Z
2022-03-15T07:42:03.000Z
#!/bin/env python # ======================= # Copyright (c) Microsoft Corporation. # All rights reserved. # See license.txt for license information. # ======================= import subprocess import imp import os import sys import socket import re from functools import reduce protocol = imp.load_source('protocol', '....
40.350501
290
0.583159
b26e115ce9f2358cca2523a9f605cb5aa50a072e
2,272
py
Python
tools/fuchsia/gather_flutter_runner_artifacts.py
adazh/engine
1f3013163d48f46cc967b31aac193691ef28f7d9
[ "BSD-3-Clause" ]
null
null
null
tools/fuchsia/gather_flutter_runner_artifacts.py
adazh/engine
1f3013163d48f46cc967b31aac193691ef28f7d9
[ "BSD-3-Clause" ]
null
null
null
tools/fuchsia/gather_flutter_runner_artifacts.py
adazh/engine
1f3013163d48f46cc967b31aac193691ef28f7d9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Gather all the fuchsia artifacts to a destination directory. """ import argparse import errno import json import os import platfor...
24.430108
79
0.707306
562c69f25298f5645b5b0fb7f451780b59ae5b3e
8,103
py
Python
binance-spot/impl/websocketconnection.py
AbdeenM/binance-spot
f48ab28dd837dd66bb8373e5e4b1bf24379e46ad
[ "MIT" ]
2
2021-05-05T00:25:11.000Z
2021-08-07T23:26:55.000Z
binance-spot/impl/websocketconnection.py
AbdeenM/binance-spot
f48ab28dd837dd66bb8373e5e4b1bf24379e46ad
[ "MIT" ]
null
null
null
binance-spot/impl/websocketconnection.py
AbdeenM/binance-spot
f48ab28dd837dd66bb8373e5e4b1bf24379e46ad
[ "MIT" ]
null
null
null
import threading import websocket import gzip import ssl import logging from urllib import parse import urllib.parse from common.scripts.binance_spot.impl.utils.timeservice import get_current_timestamp from common.scripts.binance_spot.impl.utils.urlparamsbuilder import UrlParamsBuilder from common.scripts.bi...
37.864486
93
0.622362
bdf2811a1e637f7c7453e0a14fee15df3d055d03
7,392
py
Python
google/ads/google_ads/v3/proto/resources/group_placement_view_pb2.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v3/proto/resources/group_placement_view_pb2.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v3/proto/resources/group_placement_view_pb2.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
1
2020-03-13T00:14:31.000Z
2020-03-13T00:14:31.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v3/proto/resources/group_placement_view.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobu...
56
1,159
0.789502
68e865b3e056ad03b6f05bf5cc0a7de987f6cfd7
34,915
py
Python
pype/plugins/maya/publish/collect_render.py
tokejepsen/pype
8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3
[ "MIT" ]
null
null
null
pype/plugins/maya/publish/collect_render.py
tokejepsen/pype
8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3
[ "MIT" ]
null
null
null
pype/plugins/maya/publish/collect_render.py
tokejepsen/pype
8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3
[ "MIT" ]
null
null
null
""" This collector will go through render layers in maya and prepare all data needed to create instances and their representations for submition and publishing on farm. Requires: instance -> families instance -> setMembers context -> currentFile context -> workspaceDir context ->...
36.331946
101
0.574882
5c7acf00d4b56f7d990ed6160e824fbd92f1a51e
2,202
py
Python
src/camera/test_run.py
jphacks/TK_1804
b71e5ee95ea60476758979845f3ebfd5a4355d41
[ "MIT" ]
1
2018-11-19T14:46:38.000Z
2018-11-19T14:46:38.000Z
src/camera/test_run.py
jphacks/TK_1804
b71e5ee95ea60476758979845f3ebfd5a4355d41
[ "MIT" ]
11
2018-10-27T09:31:41.000Z
2018-11-13T07:05:11.000Z
src/camera/test_run.py
jphacks/TK_1804
b71e5ee95ea60476758979845f3ebfd5a4355d41
[ "MIT" ]
1
2021-08-10T04:41:55.000Z
2021-08-10T04:41:55.000Z
import numpy as np from head_vector import HeadVector from select_speakers import SelectSpeakers if __name__ == '__main__': face_landmark_path = './src/camera/shape_predictor_68_face_landmarks.dat' K = [6.523417721418979909e+02, 0.0, 3.240992613348381610e+02, 0.0, 6.314784883620466189e+02, 2.369864861...
44.04
136
0.470027
8e01f22d15dc38990736170d05f1bb4cb40ac4fe
3,432
py
Python
venv/lib/python3.8/site-packages/cairosvg/shapes.py
sakthipriya-07/BuildingConstructionMaterialsSupply
e4b32d97eb6e574e78b955a03a0717bc7b5d13d4
[ "MIT" ]
1
2021-06-22T18:52:15.000Z
2021-06-22T18:52:15.000Z
venv/lib/python3.8/site-packages/cairosvg/shapes.py
sakthipriya-07/BuildingConstructionMaterialsSupply
e4b32d97eb6e574e78b955a03a0717bc7b5d13d4
[ "MIT" ]
7
2021-03-05T23:08:02.000Z
2022-03-12T00:47:19.000Z
venv/lib/python3.8/site-packages/cairosvg/shapes.py
sakthipriya-07/BuildingConstructionMaterialsSupply
e4b32d97eb6e574e78b955a03a0717bc7b5d13d4
[ "MIT" ]
null
null
null
""" Shapes drawers. """ from math import pi from .helpers import normalize, point, point_angle, size def circle(surface, node): """Draw a circle ``node`` on ``surface``.""" r = size(surface, node.get('r')) if not r: return cx = size(surface, node.get('cx'), 'x') cy = size(surface, node....
30.642857
79
0.56148
4bd75cd3193f2dbc5fe51cf26004e965daf3b368
10,893
py
Python
lib-python/2.7/ctypes/test/test_byteswap.py
jeff5/jython-whinchat
65d8e5268189f8197295ff2d91be3decb1ee0081
[ "CNRI-Jython" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
BitmessageKit/Vendor/static-python/Lib/ctypes/test/test_byteswap.py
VoluntaryLabs/BitmessageKit
dd634977a629ab4dec184e12bb6324cc01149ba3
[ "MIT" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
BitmessageKit/Vendor/static-python/Lib/ctypes/test/test_byteswap.py
VoluntaryLabs/BitmessageKit
dd634977a629ab4dec184e12bb6324cc01149ba3
[ "MIT" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
import sys, unittest, struct, math, ctypes from binascii import hexlify from ctypes import * def bin(s): return hexlify(memoryview(s)).upper() # Each *simple* type that supports different byte orders has an # __ctype_be__ attribute that specifies the same type in BIG ENDIAN # byte order, and a __ctype_le__ attri...
36.925424
88
0.570366
0ed9dd4406bfd784de808ec47d03d5c38021601b
1,249
py
Python
experiment_scripts/2-2-mujoco/2-2b.py
alexlioralexli/pytorch-a2c-ppo-acktr-gail
99ec24575ccfc53cd2f1942cf798ca0322a83539
[ "MIT" ]
null
null
null
experiment_scripts/2-2-mujoco/2-2b.py
alexlioralexli/pytorch-a2c-ppo-acktr-gail
99ec24575ccfc53cd2f1942cf798ca0322a83539
[ "MIT" ]
null
null
null
experiment_scripts/2-2-mujoco/2-2b.py
alexlioralexli/pytorch-a2c-ppo-acktr-gail
99ec24575ccfc53cd2f1942cf798ca0322a83539
[ "MIT" ]
null
null
null
total = 0 envs = ['Ant-v2', 'Humanoid-v2', 'HalfCheetah-v2', 'Hopper-v2', 'Walker2d-v2'] for env in envs: commands = [] base_command = f'python main.py --env-name {env} --algo ppo --use-gae --log-interval 1 --num-steps 2048 --num-processes 1 --lr 3e-4 --entropy-coef 0 --value-loss-coef 0.5 --ppo-epoch 10 --num-...
54.304348
329
0.588471
8c6db0af4734fde9b38ff154757b37beafa7543c
17,013
py
Python
asreview/data/base.py
asrodwin/asreview
28f2a4f93eed5b5ab1759a461650032c9dd471c9
[ "Apache-2.0" ]
null
null
null
asreview/data/base.py
asrodwin/asreview
28f2a4f93eed5b5ab1759a461650032c9dd471c9
[ "Apache-2.0" ]
null
null
null
asreview/data/base.py
asrodwin/asreview
28f2a4f93eed5b5ab1759a461650032c9dd471c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 The ASReview 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 appl...
32.654511
79
0.582848
bb23e05aa56d7be2a1adc8b9eb12bf9c07bf8c32
1,955
py
Python
addons14/hr_timesheet_task_stage/tests/test_hr_timesheet_task_stage.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-06-10T14:59:13.000Z
2021-06-10T14:59:13.000Z
addons14/hr_timesheet_task_stage/tests/test_hr_timesheet_task_stage.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
null
null
null
addons14/hr_timesheet_task_stage/tests/test_hr_timesheet_task_stage.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-04-09T09:44:44.000Z
2021-04-09T09:44:44.000Z
# Copyright 2016-2018 Tecnativa - Pedro M. Baeza # Copyright 2019 Brainbean Apps (https://brainbeanapps.com) # Copyright 2020 Tecnativa - Manuel Calero # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.tests import common class TestHrTimesheetTaskStage(common.TransactionCase): def s...
36.203704
83
0.600512
7337d11312aef143f6f5d3c769898325e79c56cd
166
py
Python
app/urls.py
abdukhashimov/great-rest-api
a57455d22b7ba7d06945889aed5dd89550292dae
[ "MIT" ]
null
null
null
app/urls.py
abdukhashimov/great-rest-api
a57455d22b7ba7d06945889aed5dd89550292dae
[ "MIT" ]
null
null
null
app/urls.py
abdukhashimov/great-rest-api
a57455d22b7ba7d06945889aed5dd89550292dae
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('api/', include('info.urls')) ]
20.75
38
0.686747
980a17b5c06197a22cdc362296da136e65394aa3
833
py
Python
ws2122-lspm/Lib/site-packages/pm4py/objects/conversion/process_tree/variants/__init__.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/objects/conversion/process_tree/variants/__init__.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/objects/conversion/process_tree/variants/__init__.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
46.277778
114
0.751501
d5929a22a0c7002168aeaa195878ebf4570e53be
663
py
Python
rstream/amqp.py
qweeze/rstream
5ae747af11275285fde1aa48e8823890fae4dd1b
[ "MIT" ]
16
2021-08-16T10:42:53.000Z
2022-03-30T18:35:41.000Z
rstream/amqp.py
qweeze/rstream
5ae747af11275285fde1aa48e8823890fae4dd1b
[ "MIT" ]
20
2021-09-22T08:12:52.000Z
2022-03-28T07:11:37.000Z
rstream/amqp.py
qweeze/rstream
5ae747af11275285fde1aa48e8823890fae4dd1b
[ "MIT" ]
4
2021-08-16T07:34:05.000Z
2022-03-21T13:42:24.000Z
from __future__ import annotations from typing import Any, Optional, Protocol, cast import proton class _MessageProtocol(Protocol): publishing_id: Optional[int] = None def __bytes__(self) -> bytes: ... class AMQPMessage(proton.Message, _MessageProtocol): # type:ignore def __init__(self, *arg...
23.678571
87
0.687783
1a75449b1d2ad8496090fb3edd69a0b238a235c3
6,503
py
Python
recon.py
wate123/face-recognition
22c2ac6074f459d9448d0c08ea59171cb5487325
[ "Apache-2.0" ]
null
null
null
recon.py
wate123/face-recognition
22c2ac6074f459d9448d0c08ea59171cb5487325
[ "Apache-2.0" ]
null
null
null
recon.py
wate123/face-recognition
22c2ac6074f459d9448d0c08ea59171cb5487325
[ "Apache-2.0" ]
null
null
null
import os from keras import backend as K from keras.models import Model from keras.layers import Input, Layer from model import create_model, TripletLossLayer import numpy as np import os.path import matplotlib.pyplot as plt import matplotlib.patches as patches from align import AlignDlib from train import train_mode...
28.52193
111
0.743657
00d5cd58f57e0cc22d7a4aa97cdf5d655386a6dc
629
py
Python
foody/__init__.py
AdrienW97/foody
1393f79ef06ee8c50470adb8aa2ab9fe49be4399
[ "WTFPL" ]
null
null
null
foody/__init__.py
AdrienW97/foody
1393f79ef06ee8c50470adb8aa2ab9fe49be4399
[ "WTFPL" ]
null
null
null
foody/__init__.py
AdrienW97/foody
1393f79ef06ee8c50470adb8aa2ab9fe49be4399
[ "WTFPL" ]
null
null
null
import os from flask import Flask from flask_bcrypt import Bcrypt from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager, UserMixin, login_user, current_user from flask_login import logout_user, login_required app = Flask(__name__) app.config['SECRET_KEY'] = "hard-to-guess-string" app.config['SQL...
29.952381
73
0.807631
c9a41777bdabb747c89d1960c7a992f934c9a46c
69,507
py
Python
qiskit/dagcircuit/dagcircuit.py
TakahitoMotoki/qiskit-terra
531e62f3a3c218fee6db116f54ed41ce4e88d9a9
[ "Apache-2.0" ]
null
null
null
qiskit/dagcircuit/dagcircuit.py
TakahitoMotoki/qiskit-terra
531e62f3a3c218fee6db116f54ed41ce4e88d9a9
[ "Apache-2.0" ]
null
null
null
qiskit/dagcircuit/dagcircuit.py
TakahitoMotoki/qiskit-terra
531e62f3a3c218fee6db116f54ed41ce4e88d9a9
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # 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 modifications or derivat...
39.225169
103
0.603148
b89481cb119288cb905b90d466236208f60eb5c4
1,421
py
Python
pipoh/concrete_factories/bayesian_folder/bayesian_strategies/EW.py
faprieto96/pyInvestment
a5c1bdb7823df0df215c3ac55dc8427fd18b2e15
[ "MIT" ]
null
null
null
pipoh/concrete_factories/bayesian_folder/bayesian_strategies/EW.py
faprieto96/pyInvestment
a5c1bdb7823df0df215c3ac55dc8427fd18b2e15
[ "MIT" ]
1
2022-02-19T20:06:17.000Z
2022-02-19T20:06:25.000Z
pipoh/concrete_factories/bayesian_folder/bayesian_strategies/EW.py
faprieto96/pyInvestment
a5c1bdb7823df0df215c3ac55dc8427fd18b2e15
[ "MIT" ]
null
null
null
from numpy import array, dot from qpsolvers import solve_qp import bayes_opt from bayes_opt import BayesianOptimization #from Strategy import errorLoss, rollingWindowsValidation #Funcion para Trasposición conjugada compleja en Python from numpy import ndarray class myarray(ndarray): @property def H(self): ...
25.375
92
0.711471
a287956988381b496c7b4b58d316c8bda96772ee
2,405
py
Python
qiskit_ibm_runtime/runtime_options.py
rathishcholarajan/qiskit-ibm-runtime
315a088a844dc8aa4452bde6136b53694dfb3220
[ "Apache-2.0" ]
20
2021-11-24T07:38:45.000Z
2022-03-27T06:54:30.000Z
qiskit_ibm_runtime/runtime_options.py
rathishcholarajan/qiskit-ibm-runtime
315a088a844dc8aa4452bde6136b53694dfb3220
[ "Apache-2.0" ]
188
2021-11-18T18:59:38.000Z
2022-03-31T23:35:29.000Z
qiskit_ibm_runtime/runtime_options.py
rathishcholarajan/qiskit-ibm-runtime
315a088a844dc8aa4452bde6136b53694dfb3220
[ "Apache-2.0" ]
20
2021-11-18T21:28:59.000Z
2022-03-24T13:46:06.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2022. # # 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 modifications or derivative wo...
35.367647
97
0.63368
e21a5c78b56de3fbd70750eea0156339c01e2e2f
2,524
py
Python
neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_ryuapp.py
banhr/neutron
4b3e73648327ce9f4d3437986a8663372f577f1b
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_ryuapp.py
weiqiLee/neutron
ddc72ebd41a0e7804b33a21583d3add008191229
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_ryuapp.py
weiqiLee/neutron
ddc72ebd41a0e7804b33a21583d3add008191229
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright (C) 2015 VA Linux Systems Japan K.K. # Copyright (C) 2015 YAMAMOTO Takashi <yamamoto at valinux co jp> # 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...
36.57971
78
0.723851
4239fc575824d838c1f9e2e35b23420292b23ae8
11,017
py
Python
pyro/infer/util.py
jrmcornish/pyro
38914d5eb596dc140e226031534ff4ea7903dc35
[ "MIT" ]
2
2020-04-11T04:30:55.000Z
2021-07-29T18:45:08.000Z
pyro/infer/util.py
jrmcornish/pyro
38914d5eb596dc140e226031534ff4ea7903dc35
[ "MIT" ]
null
null
null
pyro/infer/util.py
jrmcornish/pyro
38914d5eb596dc140e226031534ff4ea7903dc35
[ "MIT" ]
null
null
null
import math import numbers from collections import Counter, defaultdict import torch from opt_einsum import shared_intermediates from opt_einsum.sharing import count_cached_ops from pyro.distributions.util import is_identically_zero from pyro.ops import packed from pyro.ops.einsum.adjoint import require_backward from...
39.916667
99
0.613869
059a89e17dd615424b3e6e68756a004de575873a
1,845
py
Python
pipeline/utf8_utils.py
riyachanduka/termite
62cfb58d29354915db2c3f9c726e2ef2a976d4c0
[ "BSD-3-Clause" ]
73
2015-01-31T22:03:20.000Z
2022-03-15T11:39:00.000Z
pipeline/utf8_utils.py
riyachanduka/termite
62cfb58d29354915db2c3f9c726e2ef2a976d4c0
[ "BSD-3-Clause" ]
3
2016-04-24T20:01:14.000Z
2017-05-18T15:55:28.000Z
pipeline/utf8_utils.py
riyachanduka/termite
62cfb58d29354915db2c3f9c726e2ef2a976d4c0
[ "BSD-3-Clause" ]
27
2015-01-13T06:31:04.000Z
2020-05-14T09:27:00.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Modified from 'The Python Standard Library' 13.1. csv — CSV File Reading and Writing http://docs.python.org/2/library/csv.html """ import csv, codecs, cStringIO class UTF8Recoder: """ Iterator that reads an encoded stream and reencodes the input to UTF-8 """ def ...
26.73913
84
0.690515
b0c7176c5633a42f5f35b7a81ead126d6a27df61
12,537
py
Python
tensorflow_probability/python/distributions/kumaraswamy_test.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
1
2020-07-12T22:40:42.000Z
2020-07-12T22:40:42.000Z
tensorflow_probability/python/distributions/kumaraswamy_test.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
2
2019-08-01T18:31:41.000Z
2019-08-01T19:42:15.000Z
tensorflow_probability/python/distributions/kumaraswamy_test.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
1
2020-04-17T18:01:47.000Z
2020-04-17T18:01:47.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.067935
115
0.640504
270abc42818e6a01798930069bec359aed4785f5
1,345
py
Python
tviserrys/urls.py
DeWaster/Tviserrys
c177387ad145b649fed3365d139bf6274ce89db1
[ "MIT" ]
null
null
null
tviserrys/urls.py
DeWaster/Tviserrys
c177387ad145b649fed3365d139bf6274ce89db1
[ "MIT" ]
null
null
null
tviserrys/urls.py
DeWaster/Tviserrys
c177387ad145b649fed3365d139bf6274ce89db1
[ "MIT" ]
null
null
null
from django.contrib.auth import views as auth_views from django.conf.urls import patterns, include, url from django.conf.urls import url from django.contrib import admin from . import views from tviserrys.settings import MEDIA_ROOT urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^reg...
44.833333
131
0.683271