hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
0436fea7f81cc4d5d655faee7aa3d8203c7fdef9
3,539
py
Python
bindings/python/ensmallen/datasets/string/nectriahaematococcampvi77134.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/nectriahaematococcampvi77134.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/nectriahaematococcampvi77134.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph [Nectria] haematococca mpVI 77-13-4. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: pro...
33.704762
223
0.678723
a0c504c32e1f5cd7367f5a72e1cadb80e6ec596d
4,287
py
Python
src/dtw/model1.py
amunoz1/mines
106f852fe4e64ee132d74290c1a57ea716312376
[ "MIT" ]
1
2016-07-19T08:50:54.000Z
2016-07-19T08:50:54.000Z
src/dtw/model1.py
amunoz1/mines
106f852fe4e64ee132d74290c1a57ea716312376
[ "MIT" ]
null
null
null
src/dtw/model1.py
amunoz1/mines
106f852fe4e64ee132d74290c1a57ea716312376
[ "MIT" ]
null
null
null
############################################################################# # Synthetic seismograms for vertically propagating plane in 1D model import sys from java.awt import * from java.awt.image import * from java.io import * from java.lang import * from java.util import * from java.nio import * from javax.swing...
25.517857
77
0.623513
ae18cac6cacab81b5bc3c0fcad6afd38514cc308
1,457
py
Python
mypoll_site/polls/views.py
theekeen/pollsite_project
82a058202372c56cbef780a94954ef5f87695378
[ "MIT" ]
null
null
null
mypoll_site/polls/views.py
theekeen/pollsite_project
82a058202372c56cbef780a94954ef5f87695378
[ "MIT" ]
null
null
null
mypoll_site/polls/views.py
theekeen/pollsite_project
82a058202372c56cbef780a94954ef5f87695378
[ "MIT" ]
null
null
null
from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import get_object_or_404, render from django.urls import reverse from django.views import generic from .models import Choice, Question class IndexView(generic.ListView): template_name = 'polls/index.html' context_object_name = 'l...
36.425
82
0.705559
8099a60d70a0d5e19c0f67e508ba87d1721d340e
8,171
py
Python
kubernetes/client/models/apiextensions_v1beta1_webhook_client_config.py
fsduser/python
2b20069ebc05283352fbdc95bbdca2b6133a4175
[ "Apache-2.0" ]
1
2021-10-15T13:05:45.000Z
2021-10-15T13:05:45.000Z
kubernetes/client/models/apiextensions_v1beta1_webhook_client_config.py
belajarqywok/python
b15bea16a87ad03136a4627941ac437582ea4657
[ "Apache-2.0" ]
10
2020-10-01T03:15:01.000Z
2022-03-01T03:06:31.000Z
kubernetes/client/models/apiextensions_v1beta1_webhook_client_config.py
belajarqywok/python
b15bea16a87ad03136a4627941ac437582ea4657
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.19 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
45.394444
1,148
0.649247
8de2837e9a8d0966daaf447508eb2507514c3fbe
176,535
py
Python
scipy/sparse/tests/test_base.py
Corallus-Caninus/scipy
c734dacd61c5962a86ab3cc4bf2891fc94b720a6
[ "BSD-3-Clause" ]
1
2021-06-30T14:42:40.000Z
2021-06-30T14:42:40.000Z
scipy/sparse/tests/test_base.py
Corallus-Caninus/scipy
c734dacd61c5962a86ab3cc4bf2891fc94b720a6
[ "BSD-3-Clause" ]
5
2020-09-01T01:19:07.000Z
2021-10-11T01:06:05.000Z
scipy/sparse/tests/test_base.py
Corallus-Caninus/scipy
c734dacd61c5962a86ab3cc4bf2891fc94b720a6
[ "BSD-3-Clause" ]
1
2018-04-21T11:45:55.000Z
2018-04-21T11:45:55.000Z
# # Authors: Travis Oliphant, Ed Schofield, Robert Cimrman, Nathan Bell, and others """ Test functions for sparse matrices. Each class in the "Matrix class based tests" section become subclasses of the classes in the "Generic tests" section. This is done by the functions in the "Tailored base class for generic tests" ...
36.770464
122
0.533736
89f0bbf4d12b8152c8e54f67d0d4e59db10f9a20
419
py
Python
blog/migrations/0008_auto_20180126_0622.py
mhn-mnsr/Portfolio
3414eff08d7974965717b95537d5972312003030
[ "MIT" ]
6
2018-02-01T16:57:29.000Z
2022-02-08T08:30:35.000Z
blog/migrations/0008_auto_20180126_0622.py
mhn-mnsr/Portfolio
3414eff08d7974965717b95537d5972312003030
[ "MIT" ]
2
2018-01-28T10:32:09.000Z
2018-04-17T13:41:11.000Z
blog/migrations/0008_auto_20180126_0622.py
mhn-mnsr/Portfolio
3414eff08d7974965717b95537d5972312003030
[ "MIT" ]
4
2019-08-08T20:15:33.000Z
2020-10-01T04:18:32.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import ckeditor.fields class Migration(migrations.Migration): dependencies = [ ('blog', '0007_auto_20170909_2231'), ] operations = [ migrations.AlterField( model_name='po...
19.952381
50
0.613365
ad39b261a53c5c576b73c539e74ecf69df5a33df
754
py
Python
sensors/watchExtensionsV1beta1ThirdPartyResourceList.py
blinkops/stackstorm-kubernetes
3b4a15d42f603f3e700efaf534169e2ec361f5d2
[ "Apache-2.0" ]
20
2016-12-24T01:35:41.000Z
2022-03-06T08:32:16.000Z
sensors/watchExtensionsV1beta1ThirdPartyResourceList.py
blinkops/stackstorm-kubernetes
3b4a15d42f603f3e700efaf534169e2ec361f5d2
[ "Apache-2.0" ]
16
2017-05-02T19:38:57.000Z
2021-06-17T08:31:17.000Z
sensors/watchExtensionsV1beta1ThirdPartyResourceList.py
blinkops/stackstorm-kubernetes
3b4a15d42f603f3e700efaf534169e2ec361f5d2
[ "Apache-2.0" ]
18
2017-06-20T00:44:12.000Z
2022-03-30T08:41:42.000Z
from os import sys, path if __name__ == '__main__' and __package__ is None: sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) from sensor_base import SensorBase class watchExtensionsV1beta1ThirdPartyResourceList(SensorBase): def __init__( self, sensor_service, ...
32.782609
75
0.655172
525e71a538957de71ea2c61d1d1a109f05483620
3,460
py
Python
catalyst/rl/scripts/run_trainer.py
cgarciae/catalyst
391ff89ab0d9a1961b88719e894f917ac0fb7fc3
[ "Apache-2.0" ]
1
2019-11-26T06:41:33.000Z
2019-11-26T06:41:33.000Z
catalyst/rl/scripts/run_trainer.py
cgarciae/catalyst
391ff89ab0d9a1961b88719e894f917ac0fb7fc3
[ "Apache-2.0" ]
null
null
null
catalyst/rl/scripts/run_trainer.py
cgarciae/catalyst
391ff89ab0d9a1961b88719e894f917ac0fb7fc3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import argparse import os from catalyst import utils from catalyst.rl.offpolicy.trainer import OffpolicyTrainer as OffpolicyTrainer from catalyst.rl.onpolicy.trainer import OnpolicyTrainer as OnpolicyTrainer from catalyst.rl.registry import ( DATABASES, ENVIRONMENTS, OFFPOLICY_ALGORITHMS, ON...
29.07563
79
0.684682
9e84562d8dec433e7968f7c8ca0be6a2cd5112d8
706
py
Python
data/scripts/templates/object/tangible/deed/pet_deed/shared_deed_r4_advanced_basic.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/deed/pet_deed/shared_deed_r4_advanced_basic.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/deed/pet_deed/shared_deed_r4_advanced_basic.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/deed/pet_deed/shared_deed_r4_advanced_basic.iff" result.attribute_t...
35.3
85
0.767705
b9e342097d1286f0596a88ba5c65f3a8fe890b94
1,102
py
Python
graduated_site/migrations/0036_company.py
vbacaksiz/KTU-MEBSIS
e1afaa07a16e00ff9be3f39b728603b64f08590e
[ "MIT" ]
null
null
null
graduated_site/migrations/0036_company.py
vbacaksiz/KTU-MEBSIS
e1afaa07a16e00ff9be3f39b728603b64f08590e
[ "MIT" ]
null
null
null
graduated_site/migrations/0036_company.py
vbacaksiz/KTU-MEBSIS
e1afaa07a16e00ff9be3f39b728603b64f08590e
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2019-12-20 13:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('graduated_site', '0035_auto_20191219_1039'), ] operations = [ migrations.CreateModel( name='company', fields=[ ...
44.08
224
0.646098
75dbc94023a9adae4aa9b135304f47a0dca191d4
1,280
py
Python
examples/color_wheel.py
falkaer/tplink-lb130-api
9ba3617679f7b7ec1614d0dda16bfe1c2ef2dce5
[ "Unlicense" ]
4
2019-03-10T00:50:04.000Z
2020-12-19T01:22:25.000Z
examples/color_wheel.py
falkaer/tplink-lb130-api
9ba3617679f7b7ec1614d0dda16bfe1c2ef2dce5
[ "Unlicense" ]
null
null
null
examples/color_wheel.py
falkaer/tplink-lb130-api
9ba3617679f7b7ec1614d0dda16bfe1c2ef2dce5
[ "Unlicense" ]
null
null
null
# transitions between red -> green -> blue -> red... # every 5 seconds, for a total of 15 seconds in a roundtrip known_bulbs = 4 import socket import time from multiprocessing.pool import ThreadPool bulbs = set() from lb130 import discover_local def cb(bulb, _): print('Discovered bulb at', bulb.protocol.ip) ...
23.272727
100
0.553125
7685f57dfdbb2a0e8bb323883784782ef0f7c6c2
5,176
py
Python
python_modules/dagster/dagster/core/host_representation/selector.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/host_representation/selector.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
1
2021-06-21T18:30:02.000Z
2021-06-25T21:18:39.000Z
python_modules/dagster/dagster/core/host_representation/selector.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple from dagster import check class PipelineSelector( namedtuple("_PipelineSelector", "location_name repository_name pipeline_name solid_selection") ): """ The information needed to resolve a pipeline within a host process. """ def __new__( cls, loc...
35.696552
99
0.663253
da577c7c53fd289384d44d3f6cfacfe6f26d2a55
1,942
py
Python
trainer/tests/stop.py
bromjiri/Presto
e5790f60d0935bb1182f676db414b0724ba35c1b
[ "MIT" ]
null
null
null
trainer/tests/stop.py
bromjiri/Presto
e5790f60d0935bb1182f676db414b0724ba35c1b
[ "MIT" ]
null
null
null
trainer/tests/stop.py
bromjiri/Presto
e5790f60d0935bb1182f676db414b0724ba35c1b
[ "MIT" ]
null
null
null
import datetime import trainer.corpora as crp import trainer.features as ftr import trainer.classifier_test as cls import os # vars type = "stop-pos" nltk_run = True sklearn_run = False COUNT = 5000 cut = int((COUNT / 2) * 3 / 4) array = [True] def run(dataset): nlt = dict() skl = dict() dir = "output/...
27.742857
112
0.568486
99f03a6551ab1b20f110b2945fa8870d60c2e7e9
5,154
py
Python
utilities/autoware_launcher/src/autoware_launcher/tool/editor.py
alanjclark/autoware.ai
ba97edbbffb6f22e78912bf96400a59ef6a13daf
[ "Apache-2.0" ]
20
2019-05-21T06:14:17.000Z
2021-11-03T04:36:09.000Z
ros/src/util/packages/autoware_launcher/src/autoware_launcher/tool/editor.py
anhnv3991/autoware
d5b2ed9dc309193c8a2a7c77a2b6c88104c28328
[ "Apache-2.0" ]
40
2019-06-24T16:56:15.000Z
2022-02-28T13:41:58.000Z
ros/src/util/packages/autoware_launcher/src/autoware_launcher/tool/editor.py
anhnv3991/autoware
d5b2ed9dc309193c8a2a7c77a2b6c88104c28328
[ "Apache-2.0" ]
31
2020-05-29T07:51:58.000Z
2022-03-26T05:46:33.000Z
from autoware_launcher.core import plugin from autoware_launcher.core import myutils from python_qt_binding import QtCore from python_qt_binding import QtWidgets import argparse import collections import re import rospkg import yaml import xml.etree.ElementTree as xtree def represent_ordered_dict(dumper, instance): ...
32.828025
86
0.633683
a1f4677223e0ae57c25e5aa43301a3720dc0888e
1,762
py
Python
nowallet/exchange_rate.py
zularizal/nowallet
ca8d87a222a0ed2ccd12319a648d981a5b93a414
[ "MIT" ]
null
null
null
nowallet/exchange_rate.py
zularizal/nowallet
ca8d87a222a0ed2ccd12319a648d981a5b93a414
[ "MIT" ]
null
null
null
nowallet/exchange_rate.py
zularizal/nowallet
ca8d87a222a0ed2ccd12319a648d981a5b93a414
[ "MIT" ]
null
null
null
import logging import asyncio import json from typing import Dict, List, Any from .socks_http import urlopen CURRENCIES = ["USD", "EUR", "GBP", "AUD", "CAD", "JPY", "CNY"] # type: List[str] async def fetch_from_api(base_url: str, chain_1209k: str, loop=...
35.24
70
0.6084
fa2c6922b126ea54064cc4111412112bcd9d53ea
2,101
py
Python
tests/test_graphics_images.py
sbluen/reportlab
98758940eeae30db80bbc9c555e42b8c89b86be8
[ "BSD-3-Clause" ]
9
2016-12-21T02:19:24.000Z
2021-08-07T11:39:47.000Z
tests/test_graphics_images.py
sbluen/reportlab
98758940eeae30db80bbc9c555e42b8c89b86be8
[ "BSD-3-Clause" ]
2
2015-03-16T18:32:58.000Z
2019-03-20T07:17:04.000Z
tests/test_graphics_images.py
sbluen/reportlab
98758940eeae30db80bbc9c555e42b8c89b86be8
[ "BSD-3-Clause" ]
26
2015-03-16T18:27:04.000Z
2022-03-25T10:08:33.000Z
#Copyright ReportLab Europe Ltd. 2000-2012 #see license.txt for license details """ Tests for RLG Image shapes. """ from reportlab.lib.testutils import setOutDir,makeSuiteForClasses, outputfile, printLocation setOutDir(__name__) import os import unittest from reportlab.graphics.shapes import Image, Drawing from reportl...
23.344444
92
0.609234
0a4f14cd5de66e2091039038c10df7443c362bcb
376
py
Python
MachSuite/bfs/bulk/matspy.py
Sacusa/ALADDIN
45ff9ab7edf84dfa964bc870f0c3634d1a4c55fb
[ "BSD-3-Clause" ]
82
2015-04-12T17:29:48.000Z
2020-06-19T00:33:51.000Z
MachSuite/bfs/bulk/matspy.py
Sacusa/ALADDIN
45ff9ab7edf84dfa964bc870f0c3634d1a4c55fb
[ "BSD-3-Clause" ]
31
2015-05-13T09:43:00.000Z
2020-06-20T16:26:06.000Z
MachSuite/bfs/bulk/matspy.py
Sacusa/ALADDIN
45ff9ab7edf84dfa964bc870f0c3634d1a4c55fb
[ "BSD-3-Clause" ]
47
2015-02-10T02:37:11.000Z
2020-06-04T01:24:01.000Z
#!/usr/bin/env python import matplotlib.pyplot as plt import numpy as np from mat import mat, mat2 #(fig,ax)=plt.subplots() plt.imshow(mat); plt.savefig('mat.png') plt.imshow(mat2); plt.savefig('mat2.png') print sum(map(sum,mat)) print sum(map(sum,mat2)) #d=dict(zip(list('ABCD'),[0,0,0,0])) #for c in mat: # d[c] +...
17.090909
36
0.656915
108c4f94456e4fea0a1cc1e780a0e187c41ea94f
1,567
py
Python
src/configs/approach_crnn_plus_new.py
dbis-uibk/MediaEval2019
d6e21a298e0c65966262f26036fdccda3722743a
[ "BSD-2-Clause" ]
6
2019-09-27T02:14:23.000Z
2022-03-31T07:37:38.000Z
src/configs/approach_crnn_plus_new.py
dbis-uibk/MediaEval2019
d6e21a298e0c65966262f26036fdccda3722743a
[ "BSD-2-Clause" ]
1
2020-08-08T03:12:33.000Z
2020-08-08T03:12:33.000Z
src/configs/approach_crnn_plus_new.py
dbis-uibk/MediaEval2019
d6e21a298e0c65966262f26036fdccda3722743a
[ "BSD-2-Clause" ]
null
null
null
import common from dbispipeline.evaluators import FixedSplitGridEvaluator import dbispipeline.result_handlers as result_handlers from dbispipeline.utils import prefix_path from loaders.combined import CombinedLoader from models.crnn import CRNNPlusModel from sklearn.pipeline import Pipeline dataloader = CombinedLoader...
35.613636
73
0.686662
3ec3a5facf36cf502136956861ec2dc0dc393530
2,309
py
Python
example/channel/server.py
so1n/rap
e4e3f4fab9df6190793ec97008bccb669546f207
[ "Apache-2.0" ]
3
2020-12-24T14:42:49.000Z
2022-03-23T07:28:58.000Z
example/channel/server.py
so1n/rap
e4e3f4fab9df6190793ec97008bccb669546f207
[ "Apache-2.0" ]
1
2021-01-20T10:24:49.000Z
2021-01-30T07:52:47.000Z
example/channel/server.py
so1n/rap
e4e3f4fab9df6190793ec97008bccb669546f207
[ "Apache-2.0" ]
null
null
null
import asyncio from typing import Any from aredis import StrictRedis # type: ignore from rap.server import Server, UserChannel from rap.server.plugin.processor import CryptoProcessor async def async_channel(channel: UserChannel) -> None: while await channel.loop(): body: Any = await channel.read_body()...
31.202703
115
0.659593
e160067ade820c54a465cf05ce0848473be79b50
3,463
py
Python
scripts/epi.py
reckbo/ppl
916d96188a43bbc5915020edfa12f14895b5f66c
[ "BSD-3-Clause" ]
null
null
null
scripts/epi.py
reckbo/ppl
916d96188a43bbc5915020edfa12f14895b5f66c
[ "BSD-3-Clause" ]
null
null
null
scripts/epi.py
reckbo/ppl
916d96188a43bbc5915020edfa12f14895b5f66c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from os.path import basename, splitext, abspath, exists, dirname, join from os import getpid from util import logfmt, TemporaryDirectory, getext from util.scripts import bse_py, antsApplyTransformsDWI_sh from util.ants import antsRegistrationSyN_sh, antsApply...
41.722892
113
0.509962
63ca731e5fec3f476c10f6064ac724cc3f695a62
1,100
py
Python
airflow/contrib/sensors/file_sensor.py
khilawar4/airflow
5f3f65b82517f615f31f0c8a7f8ac0facb325235
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2021-01-29T20:33:56.000Z
2021-08-06T17:35:16.000Z
airflow/contrib/sensors/file_sensor.py
khilawar4/airflow
5f3f65b82517f615f31f0c8a7f8ac0facb325235
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
210
2021-07-17T00:25:52.000Z
2021-12-29T00:44:48.000Z
airflow/contrib/sensors/file_sensor.py
khilawar4/airflow
5f3f65b82517f615f31f0c8a7f8ac0facb325235
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-04-14T11:15:17.000Z
2021-12-15T16:58:24.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...
39.285714
107
0.770909
4c87d7707a26c6da2cf631fb573a03b674ed4608
298
py
Python
tests/test_mpv.py
ktaranov/HPI
3aa21107465b19b8b09884fbda8326617d3324ae
[ "MIT" ]
1
2021-08-04T18:54:53.000Z
2021-08-04T18:54:53.000Z
tests/test_mpv.py
ktaranov/HPI
3aa21107465b19b8b09884fbda8326617d3324ae
[ "MIT" ]
null
null
null
tests/test_mpv.py
ktaranov/HPI
3aa21107465b19b8b09884fbda8326617d3324ae
[ "MIT" ]
null
null
null
from my.mpv import history, all_history, Media def test_mpv(): hist = list(history()) all_hist = list(all_history()) assert len(hist) > 1 play = hist[0] assert isinstance(play, Media) # just test an attr assert len(play.path) > 0 assert len(all_hist) > len(hist)
21.285714
46
0.64094
291b0dfa1bcbb9a8b9e92597bc9d161d824c1f2e
1,210
py
Python
pp_api/tests/test_gs.py
alexisdimi/pp_api
0f1a64e2b45e0aac33ccebba77b5e6812967cb96
[ "MIT" ]
3
2017-12-01T16:22:44.000Z
2018-03-01T10:00:32.000Z
pp_api/tests/test_gs.py
alexisdimi/pp_api
0f1a64e2b45e0aac33ccebba77b5e6812967cb96
[ "MIT" ]
3
2017-07-27T08:36:22.000Z
2018-09-25T12:20:12.000Z
pp_api/tests/test_gs.py
alexisdimi/pp_api
0f1a64e2b45e0aac33ccebba77b5e6812967cb96
[ "MIT" ]
5
2017-05-04T13:50:00.000Z
2018-08-28T15:14:31.000Z
import logging import unittest from decouple import config from pp_api import GraphSearch log = logging.getLogger(__name__) server = config('PP_SERVER') auth_data = (config('GRAPHSEARCH_USER'), config('GRAPHSEARCH_PASS')) search_space_id = config('GRAPHSEARCH_SEARCH_SPACE_ID') graph_search = GraphSearch(server=ser...
32.702703
101
0.780992
9029f2d7921ed14be27fe8b3751c41c7bbfcbc54
824
py
Python
Python-Programs/Dynamic Programming/LongestIncreasingSubsequence.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
71
2021-09-30T11:25:12.000Z
2021-10-03T11:33:22.000Z
Python-Programs/Dynamic Programming/LongestIncreasingSubsequence.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
186
2021-09-30T12:25:16.000Z
2021-10-03T13:45:04.000Z
Python-Programs/Dynamic Programming/LongestIncreasingSubsequence.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
385
2021-09-30T11:34:23.000Z
2021-10-03T13:41:00.000Z
# Dynamic programming Python implementation # of LIS problem # lis returns length of the longest # increasing subsequence in arr of size n def lis(arr): n = len(arr) # Declare the list (array) for LIS and # initialize LIS values for all indexes lis = [1] * n # Compute optimized LIS values in bott...
22.888889
55
0.609223
c2c1b6e37beab82cdc7f906fd940525d074d88b6
5,642
py
Python
examples/causality/do_granger_causality.py
fboers/jumeg
e04896989faf72f4dbe7adf136e4d158d212f24a
[ "BSD-3-Clause" ]
6
2015-04-10T07:13:07.000Z
2021-12-12T04:04:37.000Z
examples/causality/do_granger_causality.py
fboers/jumeg
e04896989faf72f4dbe7adf136e4d158d212f24a
[ "BSD-3-Clause" ]
112
2015-01-07T10:19:24.000Z
2022-02-01T15:48:16.000Z
examples/causality/do_granger_causality.py
fboers/jumeg
e04896989faf72f4dbe7adf136e4d158d212f24a
[ "BSD-3-Clause" ]
22
2015-03-11T12:19:50.000Z
2021-11-20T04:24:42.000Z
#!/usr/bin/env python3 ''' Perform Granger based causality analysis using Generalized Parital Directed Coherence on example dataset. Uses the data and example from mne-python combined with the Scot package to perform the Granger Causality analysis. Author: Praveen Sripad <pravsripad@gmail.com> ''' import numpy as n...
37.118421
80
0.685395
d2cf929aa266f82a0b9618b68aa528a92a7de65c
48,743
py
Python
src/bootstrap/bootstrap.py
bdalrhm/rust
cfc856acf3112d241bd4de55ec91df5aef66c352
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
392
2019-03-08T14:23:03.000Z
2021-07-19T16:23:23.000Z
src/bootstrap/bootstrap.py
bdalrhm/rust
cfc856acf3112d241bd4de55ec91df5aef66c352
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
39
2019-06-25T11:28:23.000Z
2021-07-17T07:49:02.000Z
src/bootstrap/bootstrap.py
bdalrhm/rust
cfc856acf3112d241bd4de55ec91df5aef66c352
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
30
2019-03-22T15:47:24.000Z
2021-07-02T08:41:43.000Z
from __future__ import absolute_import, division, print_function import argparse import contextlib import datetime import distutils.version import hashlib import os import re import shutil import subprocess import sys import tarfile import tempfile from time import time def support_xz(): try: with tempfil...
39.725346
100
0.58431
8a9d2c307302a06e803687d4036a23c66346ed11
2,336
py
Python
scripts/tcpperf_plot.py
ptallada/pysparkling
f0e8e8d039f3313c2693b7c7576cb1b7ba5a6d78
[ "Apache-2.0" ]
260
2015-05-11T18:08:44.000Z
2022-01-15T13:19:43.000Z
scripts/tcpperf_plot.py
ptallada/pysparkling
f0e8e8d039f3313c2693b7c7576cb1b7ba5a6d78
[ "Apache-2.0" ]
79
2015-06-02T09:53:25.000Z
2021-09-26T11:18:18.000Z
scripts/tcpperf_plot.py
ptallada/pysparkling
f0e8e8d039f3313c2693b7c7576cb1b7ba5a6d78
[ "Apache-2.0" ]
50
2015-06-06T17:00:58.000Z
2022-01-15T13:19:18.000Z
from collections import namedtuple import csv import matplotlib import matplotlib.pyplot as plt matplotlib.use('Agg') class Plot: def __init__(self, filename, x_label=None, y_label=None): self.filename = filename self.x_label = x_label or 'connections per second' self.y_label = y_label o...
27.482353
76
0.540668
8173170d87eff572399a72044753d173ac3e84af
884
py
Python
workbook_logging.py
intrepiduiuc/cs-205
abe87c37b5cc2d061640f90916511d477426bc9e
[ "MIT" ]
null
null
null
workbook_logging.py
intrepiduiuc/cs-205
abe87c37b5cc2d061640f90916511d477426bc9e
[ "MIT" ]
null
null
null
workbook_logging.py
intrepiduiuc/cs-205
abe87c37b5cc2d061640f90916511d477426bc9e
[ "MIT" ]
null
null
null
# Based off of code from: # http://stackoverflow.com/questions/384076/how-can-i-color-python-logging-output import logging logging.basicConfig(level=logging.INFO) def add_coloring_to_emit_ansi(fn): # add methods we need to the class def new(*args): levelno = args[1].levelno if(levelno>=50): ...
30.482759
83
0.578054
e98958b6b760439f9afafbb3f6090de58c8f0ecb
4,664
py
Python
src/dispatch/individual/service.py
stefanm8/dispatch
a7fe52f870a5deec8a161ca7395ca869aaf8f2c9
[ "Apache-2.0" ]
2
2020-03-24T13:37:41.000Z
2020-04-11T04:00:43.000Z
src/dispatch/individual/service.py
stefanm8/dispatch
a7fe52f870a5deec8a161ca7395ca869aaf8f2c9
[ "Apache-2.0" ]
null
null
null
src/dispatch/individual/service.py
stefanm8/dispatch
a7fe52f870a5deec8a161ca7395ca869aaf8f2c9
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional from dispatch.database.core import SessionLocal from dispatch.incident.models import Incident from dispatch.plugin import service as plugin_service from dispatch.project import service as project_service from dispatch.search_filter import service as search_filter_service from .models...
34.548148
98
0.718696
418cd899c580de46cd0b942bd12040f51612b662
7,757
py
Python
parsing.py
iGiant/koncertsamara
876267b7efc0ada608315367689cb8f60052b5ad
[ "Apache-2.0" ]
null
null
null
parsing.py
iGiant/koncertsamara
876267b7efc0ada608315367689cb8f60052b5ad
[ "Apache-2.0" ]
null
null
null
parsing.py
iGiant/koncertsamara
876267b7efc0ada608315367689cb8f60052b5ad
[ "Apache-2.0" ]
null
null
null
import logging import urllib.parse import requests from lxml import html from tqdm import trange from sqlalchemy import create_engine, Column, Integer, String from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from mysclient import send_message_to_slack engine = create_engi...
46.449102
119
0.562975
d20a7f10d0806bf0d831b02666b7debec4c5a71b
2,472
py
Python
scripts/powerup.py
saidwho12/JulyGame
064654aaaf516931a074ce4d5021f2ecdbe621e0
[ "MIT" ]
null
null
null
scripts/powerup.py
saidwho12/JulyGame
064654aaaf516931a074ce4d5021f2ecdbe621e0
[ "MIT" ]
null
null
null
scripts/powerup.py
saidwho12/JulyGame
064654aaaf516931a074ce4d5021f2ecdbe621e0
[ "MIT" ]
null
null
null
import glm IDLE, DIE = range(2) class Powerup: state = -1 timer = 1 mesh_name = 'models/items/powerup' tex_name = 'apple' def __init__(self, engine, item_id, pos): self.engine = engine self.item_id = item_id self.texture = self.engine.graphics.get_texture(self.tex_name)...
23.769231
74
0.596278
1420ccfaf2da4823929ebc9365ca821c7d1882d8
10,806
py
Python
sunpy/image/tests/test_transform.py
RhnSharma/sunpy
03700193d287156ca1922eb27c4c2ad50040e53f
[ "BSD-2-Clause" ]
628
2015-01-14T17:34:10.000Z
2022-03-29T06:07:50.000Z
sunpy/image/tests/test_transform.py
RhnSharma/sunpy
03700193d287156ca1922eb27c4c2ad50040e53f
[ "BSD-2-Clause" ]
3,983
2015-01-03T11:16:21.000Z
2022-03-31T16:55:38.000Z
sunpy/image/tests/test_transform.py
RhnSharma/sunpy
03700193d287156ca1922eb27c4c2ad50040e53f
[ "BSD-2-Clause" ]
582
2015-01-14T10:09:24.000Z
2022-03-29T06:07:12.000Z
import numpy as np import pytest import skimage.data as images from skimage import transform as tf from sunpy.image.transform import affine_transform from sunpy.util import SunpyUserWarning # Tolerance for tests RTOL = 1.0e-10 @pytest.fixture def original(): # Test image return images.camera().astype('float...
40.777358
107
0.650565
d8aff38dc2b867868dc4ea513cbbc79dc1ff26e8
7,722
py
Python
Lib/site-packages/isapi/threaded_extension.py
Srinath-tr/Goferbot
0f734d01c6504c6c97dbdf45f5adf8b25c0f9fd9
[ "Apache-2.0", "bzip2-1.0.6" ]
1
2019-04-23T21:50:08.000Z
2019-04-23T21:50:08.000Z
deps/salt/python/App/Lib/site-packages/isapi/threaded_extension.py
vmware-archive/salt-windows-install
e7407e33419ef6f882b86ec9ce3522c5a884ee16
[ "BSD-2-Clause" ]
null
null
null
deps/salt/python/App/Lib/site-packages/isapi/threaded_extension.py
vmware-archive/salt-windows-install
e7407e33419ef6f882b86ec9ce3522c5a884ee16
[ "BSD-2-Clause" ]
2
2019-02-14T08:13:33.000Z
2019-04-23T21:47:48.000Z
"""An ISAPI extension base class implemented using a thread-pool.""" # $Id: threaded_extension.py,v 1.6 2009/03/02 04:41:10 mhammond Exp $ import sys import time from isapi import isapicon, ExtensionError import isapi.simple from win32file import GetQueuedCompletionStatus, CreateIoCompletionPort, \ ...
42.662983
85
0.64245
3762a2560fc7ae2e0d4f9a8d8890581aab911f55
2,216
py
Python
src/kalibr_to_camera_poses.py
Shuhei-YOSHIDA/tagslam
1fa3bef064696b289fece0c98b92001b3fb84fae
[ "Apache-2.0" ]
210
2018-04-04T12:34:02.000Z
2022-03-24T03:49:46.000Z
src/kalibr_to_camera_poses.py
Shuhei-YOSHIDA/tagslam
1fa3bef064696b289fece0c98b92001b3fb84fae
[ "Apache-2.0" ]
27
2018-11-05T22:05:29.000Z
2021-12-01T02:30:57.000Z
src/kalibr_to_camera_poses.py
Shuhei-YOSHIDA/tagslam
1fa3bef064696b289fece0c98b92001b3fb84fae
[ "Apache-2.0" ]
58
2018-04-30T02:43:33.000Z
2022-01-28T16:48:55.000Z
#!/usr/bin/env python #------------------------------------------------------------------------------ # convert kalibr format to camera_poses.yaml format # # 2019 Bernd Pfrommer import rospy import argparse import copy import yaml import re import numpy as np import geometry_msgs import sensor_msgs import tf2_msgs imp...
28.779221
79
0.544224
96764b1029a1c1ac3297084416174cde98442f25
4,407
py
Python
etl/parsers/etw/Microsoft_Windows_Proximity_Common.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_Proximity_Common.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_Proximity_Common.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-Proximity-Common GUID : 28058203-d394-4afc-b2a6-2f9155a3bb95 """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid fro...
28.432258
123
0.705469
fa59d93a447b77800c140f07404e324ae460de52
5,648
py
Python
src/circles.py
simra/CartridgeOCR
445eb51b93c9297dedee076be8b197e6d7697b5d
[ "MIT" ]
null
null
null
src/circles.py
simra/CartridgeOCR
445eb51b93c9297dedee076be8b197e6d7697b5d
[ "MIT" ]
null
null
null
src/circles.py
simra/CartridgeOCR
445eb51b93c9297dedee076be8b197e6d7697b5d
[ "MIT" ]
null
null
null
import cv2 import numpy as np import sys import os import json import logging import argparse from math import sqrt logging.basicConfig(level=logging.INFO) parser = argparse.ArgumentParser('Detect cartridge locations') parser.add_argument('input', type=str, help='text file containing of files to process') # todo: col...
45.184
293
0.666608
4d1e6811e2f5337b914abd46cd83fd8c161c0095
1,228
py
Python
src/process_data.py
matthewmacleod/poem_jinn
0599b77f36bf5f1be35cd35e0d894e458251ea8c
[ "MIT" ]
null
null
null
src/process_data.py
matthewmacleod/poem_jinn
0599b77f36bf5f1be35cd35e0d894e458251ea8c
[ "MIT" ]
null
null
null
src/process_data.py
matthewmacleod/poem_jinn
0599b77f36bf5f1be35cd35e0d894e458251ea8c
[ "MIT" ]
null
null
null
""" code to clean gutenburg text, run: python src/process_data.py data/shelley.txt """ import sys, os import re def single_space(s): while ' ' in s: s = s.replace(' ', ' ') return s def poetry_clean(text): # clean numbers text = re.sub(r'\_?[0-9]+\.?', '', text) text = text.replace...
22.327273
60
0.527687
24b447e114b105eae146f37bf1258de2ed93ad86
34,740
py
Python
work2.py
Esherymack/color-analyzer
072d1f42d989abeed565b302418bd69d6d489661
[ "Unlicense" ]
null
null
null
work2.py
Esherymack/color-analyzer
072d1f42d989abeed565b302418bd69d6d489661
[ "Unlicense" ]
null
null
null
work2.py
Esherymack/color-analyzer
072d1f42d989abeed565b302418bd69d6d489661
[ "Unlicense" ]
null
null
null
from sklearn.cluster import KMeans import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator import numpy as np import cv2 from collections import Counter from skimage.color import rgb2lab, deltaE_cie76, rgb2hsv import os import colorsys import operator import csv image_data_directory = "./data" # Co...
90.704961
679
0.649108
3bb6adc6277385da20ad1271935be06ff445012a
7,812
py
Python
samples/vsphere/contentlibrary/vmtemplate/check_out_vm_template_workflow.py
JKraftman/vsphere-automation-sdk-python
ccc83aa7124fd9aed26ee88ccc16d01adc8af7db
[ "MIT" ]
589
2017-03-09T19:01:22.000Z
2022-03-23T08:18:32.000Z
samples/vsphere/contentlibrary/vmtemplate/check_out_vm_template_workflow.py
JKraftman/vsphere-automation-sdk-python
ccc83aa7124fd9aed26ee88ccc16d01adc8af7db
[ "MIT" ]
244
2017-03-09T19:37:36.000Z
2022-03-29T07:14:21.000Z
samples/vsphere/contentlibrary/vmtemplate/check_out_vm_template_workflow.py
JKraftman/vsphere-automation-sdk-python
ccc83aa7124fd9aed26ee88ccc16d01adc8af7db
[ "MIT" ]
304
2017-03-09T19:15:01.000Z
2022-03-31T04:26:59.000Z
#!/usr/bin/env python """ * ******************************************************* * Copyright VMware, Inc. 2019. All Rights Reserved. * SPDX-License-Identifier: MIT * ******************************************************* * * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT * WARRANTIES OR CONDITIONS OF ...
42.923077
79
0.619304
39d1a3d06e6db8addb879c1388a78f5668398466
12,219
py
Python
test/functional/mining_basic.py
Cminor-pools/bitcoinvg
d47a3cf13e06f4fe03d965826f5309e6d5706470
[ "MIT" ]
null
null
null
test/functional/mining_basic.py
Cminor-pools/bitcoinvg
d47a3cf13e06f4fe03d965826f5309e6d5706470
[ "MIT" ]
null
null
null
test/functional/mining_basic.py
Cminor-pools/bitcoinvg
d47a3cf13e06f4fe03d965826f5309e6d5706470
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2020 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 mining RPCs - getmininginfo - getblocktemplate proposal mode - submitblock""" import copy from d...
46.109434
158
0.684753
cb7caa9e7e2ad75ce243a7ba2bf1c3ce3a32bd91
13,361
py
Python
tools/gnc_visualizer/scripts/communications/configuration_support.py
nathantsoi/astrobee
bb0fc3e4110a14929bd4cf35c12b3c169bc6c756
[ "Apache-2.0" ]
1
2021-11-11T17:13:32.000Z
2021-11-11T17:13:32.000Z
tools/gnc_visualizer/scripts/communications/configuration_support.py
nathantsoi/astrobee
bb0fc3e4110a14929bd4cf35c12b3c169bc6c756
[ "Apache-2.0" ]
4
2021-08-01T17:13:15.000Z
2022-03-31T14:23:03.000Z
tools/gnc_visualizer/scripts/communications/configuration_support.py
nathantsoi/astrobee
bb0fc3e4110a14929bd4cf35c12b3c169bc6c756
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import xml.dom.minidom as minidom import socket import string import datetime import ConfigParser from os import path as osPath from os import remove from collections import OrderedDict filepath = osPath.dirname(osPath.realpath(__file__)) BASE_DDS_PROFILE_FILE=filepath + "/dds_types/BaseDDSProf...
37.42577
98
0.591049
405a44e50fc5592ee2096d03f0f43533598a8767
72,431
py
Python
pirates/leveleditor/worldData/Rambleshack.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/leveleditor/worldData/Rambleshack.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/leveleditor/worldData/Rambleshack.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.leveleditor.worldData.Rambleshack from pandac.PandaModules import Point3, VBase3, Vec4, Vec3 objectStruct = {'Locator Links': []...
10,347.285714
72,021
0.675871
9c79c896e8dbcb605956fd91fba71201a76633db
1,207
py
Python
dreamer/envs/one_hot.py
rainwangphy/dreamer-pytorch
0adc589a10dab1ff414c42865018443561978c4d
[ "MIT" ]
null
null
null
dreamer/envs/one_hot.py
rainwangphy/dreamer-pytorch
0adc589a10dab1ff414c42865018443561978c4d
[ "MIT" ]
null
null
null
dreamer/envs/one_hot.py
rainwangphy/dreamer-pytorch
0adc589a10dab1ff414c42865018443561978c4d
[ "MIT" ]
null
null
null
import gym import numpy as np from rlpyt.spaces.float_box import FloatBox from rlpyt.spaces.int_box import IntBox from dreamer.envs.wrapper import EnvWrapper class OneHotAction(EnvWrapper): def __init__(self, env): assert isinstance(env.action_space, gym.spaces.Discrete) or isinstance(env.action_space, ...
30.175
104
0.661972
4a2b2c183a702c69692ddb9e1292d23f983879e8
3,590
py
Python
reinforcement_learning.py
AshitakaLax/CS5890-smart-thermostat
33c5e3e0a6fc012f03bd49a1a2639cf28bd55166
[ "MIT" ]
4
2019-02-01T12:43:16.000Z
2020-06-18T12:37:26.000Z
reinforcement_learning.py
AshitakaLax/CS5890-smart-thermostat
33c5e3e0a6fc012f03bd49a1a2639cf28bd55166
[ "MIT" ]
null
null
null
reinforcement_learning.py
AshitakaLax/CS5890-smart-thermostat
33c5e3e0a6fc012f03bd49a1a2639cf28bd55166
[ "MIT" ]
2
2019-10-02T16:48:41.000Z
2021-07-05T18:06:43.000Z
from models import HVAC from models import HvacBuilding from environments import HvacBuildingEnvironment from util import HvacBuildingTracker import numpy as np from tensorforce.agents import PPOAgent from tensorforce.execution import Runner from tensorforce.contrib.openai_gym import OpenAIGym # Create an instance of...
34.854369
171
0.739554
723b95800dd491bd4eb1a288b635e6becc898e15
9,847
py
Python
docs/conf.py
wildlifeai/wai_data_tools
1e448361dadec769ad4cfedcd556b81f0eceb768
[ "MIT" ]
null
null
null
docs/conf.py
wildlifeai/wai_data_tools
1e448361dadec769ad4cfedcd556b81f0eceb768
[ "MIT" ]
1
2022-03-14T20:25:57.000Z
2022-03-14T20:25:57.000Z
docs/conf.py
wildlifeai/wai_data_tools
1e448361dadec769ad4cfedcd556b81f0eceb768
[ "MIT" ]
null
null
null
# This file is execfile()d with the current directory set to its containing dir. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # # All configuration values have a default; values that are comme...
33.838488
85
0.696354
7e2a006f8a48c7ec0b86a23e51af12a2eb348bdb
4,004
py
Python
examples/basic_operations/add_expanded_text_ads.py
ale180192/google-ads-python
d20b5882ae97e9951b24979ac312219eaea58d58
[ "Apache-2.0" ]
null
null
null
examples/basic_operations/add_expanded_text_ads.py
ale180192/google-ads-python
d20b5882ae97e9951b24979ac312219eaea58d58
[ "Apache-2.0" ]
null
null
null
examples/basic_operations/add_expanded_text_ads.py
ale180192/google-ads-python
d20b5882ae97e9951b24979ac312219eaea58d58
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
42.147368
83
0.680569
870b8949db2e0065da208da74ded1d90c6d97e7e
381
py
Python
src/random_book_names/__main__.py
vgoehler/python-random-book-names
b802e4e15ce59c692698a0437deb2f72989fd8b1
[ "BSD-3-Clause" ]
null
null
null
src/random_book_names/__main__.py
vgoehler/python-random-book-names
b802e4e15ce59c692698a0437deb2f72989fd8b1
[ "BSD-3-Clause" ]
1
2020-03-02T10:13:52.000Z
2020-03-02T10:13:52.000Z
src/random_book_names/__main__.py
vgoehler/python-random-book-names
b802e4e15ce59c692698a0437deb2f72989fd8b1
[ "BSD-3-Clause" ]
null
null
null
""" Entrypoint module, in case you use `python -mrandom_book_names`. Why does this file exist, and why __main__? For more info, read: - https://www.python.org/dev/peps/pep-0338/ - https://docs.python.org/2/using/cmdline.html#cmdoption-m - https://docs.python.org/3/using/cmdline.html#cmdoption-m """ from random_book_...
25.4
64
0.729659
94269a460bb2c615cbcf9d8b3fac000425fc99b8
5,760
py
Python
tests/unit/test_galera.py
ovaistariq/proxysql-tools
f775fe5de908756da8522092450aec7171fbdbb3
[ "Apache-2.0" ]
null
null
null
tests/unit/test_galera.py
ovaistariq/proxysql-tools
f775fe5de908756da8522092450aec7171fbdbb3
[ "Apache-2.0" ]
null
null
null
tests/unit/test_galera.py
ovaistariq/proxysql-tools
f775fe5de908756da8522092450aec7171fbdbb3
[ "Apache-2.0" ]
1
2021-11-20T08:37:48.000Z
2021-11-20T08:37:48.000Z
import pytest from doubles import allow, expect from proxysql_tools.entities.galera import ( GaleraConfig, GaleraNode, LOCAL_STATE_SYNCED, LOCAL_STATE_DONOR_DESYNCED ) from proxysql_tools.entities.proxysql import ( ProxySQLMySQLBackend, BACKEND_STATUS_ONLINE, BACKEND_STATUS_OFFLINE_SOFT ) ...
30.638298
98
0.650521
f24cd86844b8308919c86938d6a5de9fdf0a021f
1,103
py
Python
var/spack/repos/builtin/packages/libtiff/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/libtiff/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/libtiff/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Libtiff(AutotoolsPackage): """LibTIFF - Tag Image File Format (TIFF) Library and Utilities...
44.12
96
0.768812
8757db846c4a13fae2c42d7417c1d2862f7fba5c
6,869
py
Python
conda_build_prepare/prepare.py
hdl/conda-build-prepare
d0902ec36c147b23e660f1cddb2c06047c47476b
[ "Apache-2.0" ]
3
2021-01-16T23:28:31.000Z
2022-03-25T13:48:51.000Z
conda_build_prepare/prepare.py
hdl/conda-build-prepare
d0902ec36c147b23e660f1cddb2c06047c47476b
[ "Apache-2.0" ]
5
2021-02-05T15:56:07.000Z
2022-03-25T09:39:38.000Z
conda_build_prepare/prepare.py
hdl/conda-build-prepare
d0902ec36c147b23e660f1cddb2c06047c47476b
[ "Apache-2.0" ]
1
2022-03-23T08:14:04.000Z
2022-03-23T08:14:04.000Z
#!/usr/bin/env python3 import json import os import re import shutil import subprocess import sys from collections import OrderedDict from datetime import datetime, timezone # Conda's `pip` doesn't install `ruamel.yaml` because it finds it is already # installed but the one from Conda has to be imported with `ruamel_...
35.045918
85
0.643907
69413e9e7bdd7da56a66da6494670de39136b740
828
py
Python
app/core/admin.py
JoaoAPS/BugTracker
5bb2db85227201c18e50e0fa07822b0623289ec4
[ "MIT" ]
null
null
null
app/core/admin.py
JoaoAPS/BugTracker
5bb2db85227201c18e50e0fa07822b0623289ec4
[ "MIT" ]
null
null
null
app/core/admin.py
JoaoAPS/BugTracker
5bb2db85227201c18e50e0fa07822b0623289ec4
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from members.models import Member from projects.models import Project from bugs.models import Bug class UserAdmin(BaseUserAdmin): list_display = ('name', 'email', 'is_superuser') list_filter = ('is_superuser',) ...
27.6
66
0.618357
e1a602b68187bf4e5e00d11130517f3c3744d57e
9,443
py
Python
simplemaps/BasemapUtils.py
calebrob6/simple-maps
2e84fe8d2297eb054855bdd5d6760f4ae1a3711a
[ "MIT" ]
4
2017-02-24T01:31:28.000Z
2019-06-02T04:59:16.000Z
simplemaps/BasemapUtils.py
calebrob6/simple-maps
2e84fe8d2297eb054855bdd5d6760f4ae1a3711a
[ "MIT" ]
null
null
null
simplemaps/BasemapUtils.py
calebrob6/simple-maps
2e84fe8d2297eb054855bdd5d6760f4ae1a3711a
[ "MIT" ]
1
2021-06-14T08:45:08.000Z
2021-06-14T08:45:08.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2017 Caleb Robinson <calebrob6@gmail.com> # # Distributed under terms of the MIT license. import os import pickle import hashlib from mpl_toolkits.basemap import Basemap import time import numpy as np import matplotlib import fiona impor...
33.725
149
0.635603
064a847b180b69a93788007e037ffbe50b21a55c
1,542
py
Python
app.py
jesseinit/flask_libreoffice_api
cc3b2cda12e18a43498b4bf9990e5fd867f5bab1
[ "MIT" ]
null
null
null
app.py
jesseinit/flask_libreoffice_api
cc3b2cda12e18a43498b4bf9990e5fd867f5bab1
[ "MIT" ]
null
null
null
app.py
jesseinit/flask_libreoffice_api
cc3b2cda12e18a43498b4bf9990e5fd867f5bab1
[ "MIT" ]
null
null
null
import subprocess import os from pathlib import Path from uuid import uuid4 from flask import Flask, request, send_from_directory, g UPLOAD_DIRECTORY = str(Path.home()) MAX_FILE_SIZE = int(os.getenv('MAX_FILE_SIZE', 30)) #In Megabyte app = Flask(__name__) app.config['UPLOAD_FOLDER'] = UPLOAD_DIRECTORY app.config['M...
28.555556
116
0.67834
7aa03c9f3efc616efdc1e75366fc8c8bd99756d7
250
py
Python
remove-element/remove-element.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
1
2021-10-10T20:21:18.000Z
2021-10-10T20:21:18.000Z
remove-element/remove-element.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
null
null
null
remove-element/remove-element.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
null
null
null
class Solution: def removeElement(self, nums: List[int], val: int) -> int: c = 0 l = len(nums) for i in range(l): if nums[i] == val : c += 1 else : nums[i-c] = nums[i]; return l - c
27.777778
62
0.44
89936ff44e9c897e5ba3a62ec7f079395348df6a
2,356
py
Python
ged4py/algorithm/abstract_graph_edit_dist.py
xpspectre/graph-distance
5d8dee32bebde662c0ea1de026ecc2a1dbbe21ed
[ "MIT" ]
null
null
null
ged4py/algorithm/abstract_graph_edit_dist.py
xpspectre/graph-distance
5d8dee32bebde662c0ea1de026ecc2a1dbbe21ed
[ "MIT" ]
null
null
null
ged4py/algorithm/abstract_graph_edit_dist.py
xpspectre/graph-distance
5d8dee32bebde662c0ea1de026ecc2a1dbbe21ed
[ "MIT" ]
null
null
null
from scipy.optimize import linear_sum_assignment import sys import numpy as np class AbstractGraphEditDistance(object): def __init__(self, g1, g2): self.g1 = g1 self.g2 = g2 def normalized_distance(self): """ Returns the graph edit distance between graph g1 & g2 The di...
30.597403
81
0.599321
47ed9e617cb268f922989f0e7cd707e7964b3e6e
2,570
py
Python
tensorflow/python/kernel_tests/unpack_op_test.py
miyataken999/tensorflow
a5d8217c4ed90041bea2616c14a8ddcf11ec8c03
[ "Apache-2.0" ]
1
2015-12-08T16:17:37.000Z
2015-12-08T16:17:37.000Z
tensorflow/python/kernel_tests/unpack_op_test.py
mrax714/nearme
4be56f381cd000e91f79209aaf150636db6fb840
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/unpack_op_test.py
mrax714/nearme
4be56f381cd000e91f79209aaf150636db6fb840
[ "Apache-2.0" ]
1
2019-10-15T03:55:21.000Z
2019-10-15T03:55:21.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.72973
80
0.624514
b30643d634534b48b0b226c1b4f4aaf229748214
2,173
py
Python
NALU-pytorch/models/nalu.py
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
[ "BSD-3-Clause" ]
51
2019-02-01T19:43:37.000Z
2022-03-16T09:07:03.000Z
NALU-pytorch/models/nalu.py
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
[ "BSD-3-Clause" ]
3
2021-08-04T09:54:07.000Z
2022-01-24T00:02:01.000Z
NALU-pytorch/models/nalu.py
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
[ "BSD-3-Clause" ]
35
2019-02-08T02:00:31.000Z
2022-03-01T23:17:00.000Z
import math import torch import torch.nn as nn import torch.nn.init as init import torch.nn.functional as F from .nac import NeuralAccumulatorCell from torch.nn.parameter import Parameter class NeuralArithmeticLogicUnitCell(nn.Module): """A Neural Arithmetic Logic Unit (NALU) cell [1]. Attributes: i...
27.858974
66
0.59457
2ad8cb6d1a3a74098bf692e1749eb4550b4452de
2,719
py
Python
leetcode.com/python/979_Distribute_Coins_in_Binary_Tree.py
vansh-tiwari/coding-interview-gym
68345725dee0007f52b7ea3550adda35ddcf1955
[ "MIT" ]
713
2019-11-19T16:11:25.000Z
2022-03-31T02:27:52.000Z
leetcode.com/python/979_Distribute_Coins_in_Binary_Tree.py
arunsank/coding-interview-gym
8131e3a82795707e144fe55d765b6c15bdb97306
[ "MIT" ]
7
2020-01-16T17:07:18.000Z
2021-11-15T18:24:39.000Z
leetcode.com/python/979_Distribute_Coins_in_Binary_Tree.py
arunsank/coding-interview-gym
8131e3a82795707e144fe55d765b6c15bdb97306
[ "MIT" ]
393
2019-11-18T17:55:45.000Z
2022-03-28T20:26:32.000Z
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None # Some notes: # The reason why it is post-order is, # you will never know how many coins to move to your parents until you figure out the number of your left ...
34.858974
154
0.658698
798951e4f74a0a76c1348883a1df4c0799d1b9ab
8,819
py
Python
tools/pykitti_eval/utils/buildtools/command.py
ZhuokunYao/smoke
d524fbe43b1aba6078c25d9aca7924b71a635e1d
[ "MIT" ]
5
2021-01-29T08:35:23.000Z
2022-03-07T02:05:14.000Z
tools/pykitti_eval/utils/buildtools/command.py
ZhuokunYao/smoke
d524fbe43b1aba6078c25d9aca7924b71a635e1d
[ "MIT" ]
1
2021-12-08T05:55:56.000Z
2021-12-08T05:55:56.000Z
tools/pykitti_eval/utils/buildtools/command.py
ZhuokunYao/smoke
d524fbe43b1aba6078c25d9aca7924b71a635e1d
[ "MIT" ]
1
2021-08-08T07:08:47.000Z
2021-08-08T07:08:47.000Z
import multiprocessing import os import re import subprocess from concurrent.futures import ProcessPoolExecutor from enum import Enum from functools import partial from pathlib import Path import fire from tools.pykitti_eval.utils.find import find_cuda, find_cuda_device_arch class Gpp: def __init__(self, ...
30.835664
90
0.51321
6f59efa0b0ba0dad7ececa99af1b5aeaf91fca58
12,624
py
Python
oidc_example/op2/venvOidc/Lib/site-packages/Cryptodome/Signature/pss.py
State-xyz/pyoidc
cfbe40e43b7acb0004900520d50ede60858208d4
[ "Apache-2.0" ]
null
null
null
oidc_example/op2/venvOidc/Lib/site-packages/Cryptodome/Signature/pss.py
State-xyz/pyoidc
cfbe40e43b7acb0004900520d50ede60858208d4
[ "Apache-2.0" ]
null
null
null
oidc_example/op2/venvOidc/Lib/site-packages/Cryptodome/Signature/pss.py
State-xyz/pyoidc
cfbe40e43b7acb0004900520d50ede60858208d4
[ "Apache-2.0" ]
null
null
null
# =================================================================== # # Copyright (c) 2014, Legrandin <helderijs@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributio...
34.39782
90
0.620802
239b367fdecee494ff2496cbe39a4e5e516aa27b
789
py
Python
dive_site_site/dive_sites/migrations/0001_initial.py
Scuba-Chris/django_model
56777506667995c732fd817219f2bce0d238e56b
[ "MIT" ]
null
null
null
dive_site_site/dive_sites/migrations/0001_initial.py
Scuba-Chris/django_model
56777506667995c732fd817219f2bce0d238e56b
[ "MIT" ]
5
2020-06-05T20:38:30.000Z
2021-09-22T18:34:51.000Z
dive_site_site/dive_sites/migrations/0001_initial.py
Scuba-Chris/django_model
56777506667995c732fd817219f2bce0d238e56b
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-16 01:16 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
29.222222
120
0.627376
800ca35536e3903dd6a90457b4cdcdd8937f8f05
2,443
py
Python
setup.py
cwza/deep_t2i
22877fdd28ad407984ddc3bc4d57109c54c22fc0
[ "Apache-2.0" ]
null
null
null
setup.py
cwza/deep_t2i
22877fdd28ad407984ddc3bc4d57109c54c22fc0
[ "Apache-2.0" ]
null
null
null
setup.py
cwza/deep_t2i
22877fdd28ad407984ddc3bc4d57109c54c22fc0
[ "Apache-2.0" ]
1
2020-11-30T06:11:02.000Z
2020-11-30T06:11:02.000Z
from pkg_resources import parse_version from configparser import ConfigParser import setuptools assert parse_version(setuptools.__version__)>=parse_version('36.2') # note: all settings are in settings.ini; edit there, not here config = ConfigParser(delimiters=['=']) config.read('settings.ini') cfg = config['DEFAULT'] ...
40.04918
109
0.63201
fd2b70c92de5b297a5e9ce388f635e6da52b67c6
1,078
py
Python
vial/utils.py
martastain/vial
421373e5821ff45f1e1c7313e2be28641f309955
[ "MIT" ]
null
null
null
vial/utils.py
martastain/vial
421373e5821ff45f1e1c7313e2be28641f309955
[ "MIT" ]
null
null
null
vial/utils.py
martastain/vial
421373e5821ff45f1e1c7313e2be28641f309955
[ "MIT" ]
null
null
null
from http import HTTPStatus def status_phrase(status): return HTTPStatus(status).phrase def status_description(status): return HTTPStatus(status).description def format_status(status): return f"{status} {status_phrase(status)}" class CaseInsensitiveDict(dict): """Basic case insensitive dict wit...
23.955556
64
0.638219
44930439d5f772c9610b5283adff95f366529428
23,192
bzl
Python
haskell/repl.bzl
pompon0/rules_haskell
6bff155511917a8b462132600bb2c0ebfa076a30
[ "Apache-2.0" ]
null
null
null
haskell/repl.bzl
pompon0/rules_haskell
6bff155511917a8b462132600bb2c0ebfa076a30
[ "Apache-2.0" ]
null
null
null
haskell/repl.bzl
pompon0/rules_haskell
6bff155511917a8b462132600bb2c0ebfa076a30
[ "Apache-2.0" ]
null
null
null
"""Multi target Haskell REPL.""" load("@bazel_skylib//lib:dicts.bzl", "dicts") load("@bazel_skylib//lib:paths.bzl", "paths") load("@bazel_skylib//lib:shell.bzl", "shell") load(":cc.bzl", "ghc_cc_program_args") load(":private/context.bzl", "haskell_context", "render_env") load(":private/expansions.bzl", "expand_make_va...
34.770615
173
0.656994
154ecd853fcf2f963df27d5be49b2ed224682f9f
4,903
py
Python
hnn/hnn.py
StuartSul/Homemade_Neural_Network
a52bf863275799f455cceed6920ce95aab7fa500
[ "MIT" ]
null
null
null
hnn/hnn.py
StuartSul/Homemade_Neural_Network
a52bf863275799f455cceed6920ce95aab7fa500
[ "MIT" ]
null
null
null
hnn/hnn.py
StuartSul/Homemade_Neural_Network
a52bf863275799f455cceed6920ce95aab7fa500
[ "MIT" ]
null
null
null
from hnn.network import Network from hnn.trainer import Trainer from hnn.loader import * class hnn: def __init__(self, network_id, input_count, output_count, structure, activation, features, labels, train_ratio, loss_function, regularization=None): self.network = None self.trai...
46.695238
100
0.627371
71e4ae033272689a0c5d014356404a8a5ae503e7
3,391
py
Python
droidlet/interpreter/craftassist/interpret_facing.py
ali-senguel/fairo
1ec5d8ecbdfc782de63a92aad9bf8534110ce762
[ "MIT" ]
669
2020-11-21T01:20:20.000Z
2021-09-13T13:25:16.000Z
droidlet/interpreter/craftassist/interpret_facing.py
ali-senguel/fairo
1ec5d8ecbdfc782de63a92aad9bf8534110ce762
[ "MIT" ]
324
2020-12-07T18:20:34.000Z
2021-09-14T17:17:18.000Z
droidlet/interpreter/craftassist/interpret_facing.py
ali-senguel/fairo
1ec5d8ecbdfc782de63a92aad9bf8534110ce762
[ "MIT" ]
56
2021-01-04T19:57:40.000Z
2021-09-13T21:20:08.000Z
""" Copyright (c) Facebook, Inc. and its affiliates. """ from droidlet.shared_data_structs import ErrorWithResponse from droidlet.interpreter import interpret_relative_direction from word2number.w2n import word_to_num def number_from_span(span): # this will fail in many cases.... words = span.split() deg...
39.894118
99
0.543203
f13b02e9c4e1de35efe340e6b41d28db0b676453
5,254
py
Python
venv/Lib/site-packages/pandas/tests/base/test_constructors.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/base/test_constructors.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/base/test_constructors.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
from datetime import datetime import sys import numpy as np import pytest from pandas.compat import PYPY import pandas as pd from pandas import ( DataFrame, Index, Series, ) import pandas._testing as tm from pandas.core.accessor import PandasDelegate from pandas.core.base import ( No...
29.683616
85
0.570042
21263968fe409408a234582a337b0d9c77778523
86
py
Python
models/counters/__init__.py
sailyung/crowd_counting
a19c4edab06a841bfe3b8eacdc12104dbddf4d7d
[ "MIT" ]
1
2021-02-10T16:43:34.000Z
2021-02-10T16:43:34.000Z
models/counters/__init__.py
sailyung/crowd_counting
a19c4edab06a841bfe3b8eacdc12104dbddf4d7d
[ "MIT" ]
null
null
null
models/counters/__init__.py
sailyung/crowd_counting
a19c4edab06a841bfe3b8eacdc12104dbddf4d7d
[ "MIT" ]
null
null
null
# from . import CSRNet from . import Res101_SFCN from . import LCN from . import MCNN
17.2
25
0.744186
3f8b6ad18e9698f185fb1857e9930f2f4d5ffe37
2,981
py
Python
application/flicket_admin/models/flicket_config.py
quanpower/flicket
a5019e32c5534932b7546c18c00d6327751b7192
[ "MIT" ]
1
2018-11-07T02:00:27.000Z
2018-11-07T02:00:27.000Z
application/flicket_admin/models/flicket_config.py
quanpower/flicket
a5019e32c5534932b7546c18c00d6327751b7192
[ "MIT" ]
null
null
null
application/flicket_admin/models/flicket_config.py
quanpower/flicket
a5019e32c5534932b7546c18c00d6327751b7192
[ "MIT" ]
null
null
null
#! usr/bin/python3 # -*- coding: utf8 -*- # # Flicket - copyright Paul Bourne: evereux@gmail.com from application import db from application.flicket.models import Base class FlicketConfig(Base): """ Server configuration settings editable by administrators only via the adminstration page `/flicket_admin/confi...
38.217949
120
0.712848
cbdc20894eb541af242719db73af364ed38396f7
923
py
Python
AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/demo.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/demo.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/demo.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#! /usr/bin/env python """Print names of all methods defined in module This script demonstrates use of the visitor interface of the compiler package. """ import compiler class MethodFinder: """Print the names of all the methods Each visit method takes two arguments, the node and its current ...
23.666667
70
0.603467
50e21e88bf3bd1adbf7f648f37e1627493e4e47d
183
py
Python
regtests/list/concatenate.py
bpmbank/PythonJS
591a80afd8233fb715493591db2b68f1748558d9
[ "BSD-3-Clause" ]
319
2015-01-02T11:34:16.000Z
2022-03-25T00:43:33.000Z
regtests/list/concatenate.py
idobatter/PythonJS
0161dd5aba6caeaf5b06e74cc8524efd04a36143
[ "BSD-3-Clause" ]
10
2015-02-03T02:33:09.000Z
2021-11-09T21:41:00.000Z
regtests/list/concatenate.py
idobatter/PythonJS
0161dd5aba6caeaf5b06e74cc8524efd04a36143
[ "BSD-3-Clause" ]
61
2015-01-02T12:01:56.000Z
2021-12-08T07:16:16.000Z
"""concatenate lists""" def main(): a = [1,2] b = [3,4] c = a + b TestError( len(c)==4 ) TestError( c[0]==1 ) TestError( c[1]==2 ) TestError( c[2]==3 ) TestError( c[3]==4 )
14.076923
23
0.513661
41de5030d0dce60790676f17ef4f4dc5b959b0ea
535
py
Python
stubs/micropython-v1_14-esp8266/uasyncio/funcs.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_14-esp8266/uasyncio/funcs.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_14-esp8266/uasyncio/funcs.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'uasyncio.funcs' on micropython-v1.14-esp8266 """ # MCU: {'ver': 'v1.14', 'port': 'esp8266', 'arch': 'xtensa', 'sysname': 'esp8266', 'release': '1.14', 'name': 'micropython', 'mpy': 9733, 'version': '1.14', 'machine': 'ESP module with ESP8266', 'build': '', 'nodename': 'esp8266', 'platform': 'esp8266', 'fam...
38.214286
278
0.618692
3ede11933adde13fbc0c50a2051527d3e317b461
3,077
py
Python
api/app/cached_routes.py
lightning-dabbler/github_api_client
e3822c743c581c9e24e9ae83da6f199642ef3db9
[ "MIT" ]
1
2020-06-17T12:03:55.000Z
2020-06-17T12:03:55.000Z
api/app/cached_routes.py
lightning-dabbler/github_api_client
e3822c743c581c9e24e9ae83da6f199642ef3db9
[ "MIT" ]
5
2020-07-31T19:42:18.000Z
2021-03-18T02:21:19.000Z
api/app/cached_routes.py
lightning-dabbler/github-api-client
e3822c743c581c9e24e9ae83da6f199642ef3db9
[ "MIT" ]
null
null
null
import json import logging import os from flask import Blueprint, jsonify, request from rediscluster import RedisCluster import redis from . import helpers logger = logging.getLogger(__name__) APP_ENV = os.environ.get("APP_ENV", "development") if APP_ENV == "production": logger.info("Redis Production Cluster ...
30.166667
88
0.61456
fd86b9735af71dd8f27e1797444d25ecd7d9242e
1,053
py
Python
tests/ex04_contact/models.py
RodrigoDeRosa/related
3799cde862b8c9500931706f5f1ce5576028f642
[ "MIT" ]
190
2017-05-25T11:57:15.000Z
2022-03-17T01:44:53.000Z
tests/ex04_contact/models.py
RodrigoDeRosa/related
3799cde862b8c9500931706f5f1ce5576028f642
[ "MIT" ]
42
2017-06-11T14:05:11.000Z
2021-12-14T21:12:07.000Z
tests/ex04_contact/models.py
RodrigoDeRosa/related
3799cde862b8c9500931706f5f1ce5576028f642
[ "MIT" ]
18
2018-01-05T08:47:30.000Z
2022-01-28T06:24:05.000Z
from enum import Enum, unique import related @unique class Degree(Enum): HIGH_SCHOOL = "High School" ASSOCIATES = "Associate's" BACHELORS = "Bachelor's" MASTERS = "Master's" PHD = "Ph.D" JD = "J.D." MD = "M.D." DDS = "D.D.S." PHARMD = "Pharm.D." @related.immutable class Address(o...
25.682927
76
0.701804
6d64a5e193652aceb7d8c85f3cfc8ad0400ff6a6
7,929
py
Python
backend/miss_latina_eleganc_34241/settings.py
crowdbotics-apps/miss-latina-eleganc-34241
2c097e6858484f950085306249463fe088cbac05
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/miss_latina_eleganc_34241/settings.py
crowdbotics-apps/miss-latina-eleganc-34241
2c097e6858484f950085306249463fe088cbac05
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/miss_latina_eleganc_34241/settings.py
crowdbotics-apps/miss-latina-eleganc-34241
2c097e6858484f950085306249463fe088cbac05
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for miss_latina_eleganc_34241 project. Generated by 'django-admin startproject' using Django 2.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/...
30.496154
112
0.737798
800e97a816b45d73d1715ae2363120b2dadb1346
7,903
py
Python
pieface/writeproperties.py
jcumby/PIEFACE
d7027de7b3258022622361e8deedcc827ea5b64f
[ "MIT" ]
7
2017-02-03T12:40:14.000Z
2021-09-08T17:45:31.000Z
pieface/writeproperties.py
jcumby/PIEFACE
d7027de7b3258022622361e8deedcc827ea5b64f
[ "MIT" ]
2
2018-07-05T09:30:17.000Z
2021-03-29T13:19:44.000Z
pieface/writeproperties.py
jcumby/PIEFACE
d7027de7b3258022622361e8deedcc827ea5b64f
[ "MIT" ]
4
2017-05-21T17:38:53.000Z
2020-11-02T17:38:43.000Z
""" Module to write pieface ellipsoid parameters to text file. """ from __future__ import division import os, sys import numpy as np import textwrap import logging from time import sleep # Set up logger logger = logging.getLogger(__name__) # Basic Format definitions fmt_flt = "{:11.6f}" fmt_lflt = "{:1...
40.321429
212
0.584588
456dd59d855ace162d8085e48ac59639b3185d07
406
py
Python
pendulum/locales/fo/custom.py
rileyjohngibbs/pendulum
f1df7dc3f838bd4ab1075ba25c8b6ce5d8141995
[ "MIT" ]
null
null
null
pendulum/locales/fo/custom.py
rileyjohngibbs/pendulum
f1df7dc3f838bd4ab1075ba25c8b6ce5d8141995
[ "MIT" ]
null
null
null
pendulum/locales/fo/custom.py
rileyjohngibbs/pendulum
f1df7dc3f838bd4ab1075ba25c8b6ce5d8141995
[ "MIT" ]
null
null
null
""" fo custom locale file. """ translations = { # Relative time "after": "{0} aftaná", "before": "{0} áðrenn", # Ordinals "ordinal": {"other": "."}, # Date formats "date_formats": { "LTS": "HH:mm:ss", "LT": "HH:mm", "LLLL": "dddd D. MMMM, YYYY HH:mm", "LLL": ...
19.333333
43
0.448276
99a6caf117e1cfb8d902418388d83dd9c2590ca8
1,174
py
Python
yearn/db/models.py
pmdaly/yearn-exporter
d1e7697f8bf12cdb1126ea86fa350a26aea23cf8
[ "MIT" ]
null
null
null
yearn/db/models.py
pmdaly/yearn-exporter
d1e7697f8bf12cdb1126ea86fa350a26aea23cf8
[ "MIT" ]
null
null
null
yearn/db/models.py
pmdaly/yearn-exporter
d1e7697f8bf12cdb1126ea86fa350a26aea23cf8
[ "MIT" ]
null
null
null
import os from datetime import datetime from typing import List, Optional from sqlmodel import ( Column, DateTime, Field, Relationship, Session, SQLModel, create_engine, select, ) class Block(SQLModel, table=True): id: int = Field(primary_key=True) chain_id: int height: in...
25.521739
83
0.710392
f208609731b5959930f2d50df6f240ec2da89fab
1,444
py
Python
telestream_cloud_qc_sdk/test/test_clean_aperture_test.py
pandastream/telestream-cloud-python-sdk
ce0ad503299661a0f622661359367173c06889fc
[ "MIT" ]
null
null
null
telestream_cloud_qc_sdk/test/test_clean_aperture_test.py
pandastream/telestream-cloud-python-sdk
ce0ad503299661a0f622661359367173c06889fc
[ "MIT" ]
2
2016-07-06T14:13:31.000Z
2018-03-07T12:54:58.000Z
telestream_cloud_qc_sdk/test/test_clean_aperture_test.py
Telestream/telestream-cloud-python-sdk
ce0ad503299661a0f622661359367173c06889fc
[ "MIT" ]
null
null
null
# coding: utf-8 """ Qc API Qc API # noqa: E501 The version of the OpenAPI document: 3.0.0 Contact: cloudsupport@telestream.net Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import telestream_cloud_qc from telestream_cl...
26.254545
98
0.675208
59ad6dabf85a3b6633888e0656321961461e168c
6,900
bzl
Python
deb/internal/virtual_filesystem.bzl
silvergasp/rules_deb
4fc707b1c8015d2239579ef6688fda9d95f5d573
[ "MIT" ]
4
2022-01-09T12:19:37.000Z
2022-02-03T10:34:50.000Z
deb/internal/virtual_filesystem.bzl
silvergasp/rules_deb
4fc707b1c8015d2239579ef6688fda9d95f5d573
[ "MIT" ]
3
2022-01-09T07:36:10.000Z
2022-01-09T07:43:36.000Z
deb/internal/virtual_filesystem.bzl
silvergasp/rules_deb
4fc707b1c8015d2239579ef6688fda9d95f5d573
[ "MIT" ]
null
null
null
""" When extracting debian packages, it is assumed that the it is overlayed on top of the root filesystem. However as we are extracting each package to a seperate directory we must be able to produce a mapping between the package -> Bazel targets. """ def _remove_leading_relative_paths(paths): """ Removes the le...
33.014354
87
0.677681
b8a0bff1d17a0c100c791323c2ffcbb6c95e228a
13,415
py
Python
tests/test_app/tests/test_models.py
jmrivas86/django-reversion
daacd7cf74fdefed4d1214588d96a89d6bc02182
[ "BSD-3-Clause" ]
1
2021-02-17T13:11:16.000Z
2021-02-17T13:11:16.000Z
tests/test_app/tests/test_models.py
jmrivas86/django-reversion
daacd7cf74fdefed4d1214588d96a89d6bc02182
[ "BSD-3-Clause" ]
null
null
null
tests/test_app/tests/test_models.py
jmrivas86/django-reversion
daacd7cf74fdefed4d1214588d96a89d6bc02182
[ "BSD-3-Clause" ]
1
2020-01-08T20:18:17.000Z
2020-01-08T20:18:17.000Z
from django.utils.encoding import force_text import reversion from reversion.models import Version from test_app.models import TestModel, TestModelRelated, TestModelParent from test_app.tests.base import TestBase, TestModelMixin, TestModelParentMixin class GetForModelTest(TestModelMixin, TestBase): def testGetFo...
38.659942
117
0.665524
4c5f44ad2d656cbb76e1a736e631cc73200e9b4a
17,183
py
Python
mask_cyclegan_vc/model.py
tttocklll/MaskCycleGAN-VC
10465d6ef3c194a28449a925c9de70056cfe92b2
[ "MIT" ]
63
2021-03-26T22:35:58.000Z
2022-03-20T11:15:24.000Z
mask_cyclegan_vc/model.py
tttocklll/MaskCycleGAN-VC
10465d6ef3c194a28449a925c9de70056cfe92b2
[ "MIT" ]
19
2021-03-30T07:21:37.000Z
2021-11-29T17:59:38.000Z
mask_cyclegan_vc/model.py
tttocklll/MaskCycleGAN-VC
10465d6ef3c194a28449a925c9de70056cfe92b2
[ "MIT" ]
25
2021-04-19T21:42:28.000Z
2022-03-31T11:36:09.000Z
""" MaskCycleGAN-VC models as described in https://arxiv.org/pdf/2102.12841.pdf Inspired by https://github.com/jackaduma/CycleGAN-VC2 """ import numpy as np import torch import torch.nn as nn class GLU(nn.Module): """Custom implementation of GLU since the paper assumes GLU won't reduce the dimension of tens...
46.19086
92
0.454112
ef1ef7c04666b6a58c17000203cc31836c13ad19
150
py
Python
MixNotes/123.py
nickliqian/ralph_doc_to_chinese
be120ce2bb94a8e8395630218985f5e51ae087d9
[ "MIT" ]
8
2018-05-22T01:11:33.000Z
2020-03-19T01:44:55.000Z
MixNotes/123.py
yangliangguang/keep_learning
47ab39c726cb28713ad22bf4cf39d6b146715910
[ "MIT" ]
null
null
null
MixNotes/123.py
yangliangguang/keep_learning
47ab39c726cb28713ad22bf4cf39d6b146715910
[ "MIT" ]
3
2018-07-25T09:31:53.000Z
2019-09-14T14:05:31.000Z
import getopt args = '-a -b 35 -cfoo -d bar -f a1 a2'.split() print(args) optlist, args = getopt.getopt(args, 'abc:d:f') print(optlist) print(args)
16.666667
47
0.666667
b8534579e3a8792540c016e899a3c0ece2edfaa5
3,382
py
Python
os_migrate/plugins/modules/export_security_group_rules.py
rbrady/os-migrate
fec256075307a4a11fb1b6e154737a1c3b34f0dd
[ "Apache-2.0" ]
1
2021-09-24T10:36:26.000Z
2021-09-24T10:36:26.000Z
os_migrate/plugins/modules/export_security_group_rules.py
rbrady/os-migrate
fec256075307a4a11fb1b6e154737a1c3b34f0dd
[ "Apache-2.0" ]
null
null
null
os_migrate/plugins/modules/export_security_group_rules.py
rbrady/os-migrate
fec256075307a4a11fb1b6e154737a1c3b34f0dd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) __metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: export_security_group_rules short_description: Export OpenStack ...
26.015385
94
0.707569
cc914b2114450404439133788c1400fb722425ad
549
py
Python
python_advance/requests请求重试/flask_server.py
Dustyposa/goSpider
8faf077e73bf6f0b1ffa05366876e89ddf648e9d
[ "MIT" ]
66
2019-04-10T07:34:57.000Z
2021-12-23T09:39:38.000Z
python_advance/requests请求重试/flask_server.py
Dustyposa/goSpider
8faf077e73bf6f0b1ffa05366876e89ddf648e9d
[ "MIT" ]
1
2021-12-02T07:45:33.000Z
2021-12-02T07:45:33.000Z
python_advance/requests请求重试/flask_server.py
Dustyposa/goSpider
8faf077e73bf6f0b1ffa05366876e89ddf648e9d
[ "MIT" ]
13
2019-04-14T12:45:54.000Z
2021-09-15T08:53:21.000Z
from time import sleep from flask import Flask, jsonify, Response app: Flask = Flask(__name__) retry_count: int = 0 # 用于重试请求的计数 @app.route("/api/retry", methods=["GET"]) def retry_api() -> Response: """ 延时 1s 的请求接口, 响应时间 > 1s。 :return: """ global retry_count retry_count += 1 print(f"这是...
18.3
42
0.59745
6db266baaa16c367e0795500605b5ad48662cadf
11,228
py
Python
experiment/generate_tests.py
fabiand/test-infra
cf8e12368691f996f411b5ccf508777b1c0c3fd4
[ "Apache-2.0" ]
1
2019-04-01T06:20:56.000Z
2019-04-01T06:20:56.000Z
experiment/generate_tests.py
fabiand/test-infra
cf8e12368691f996f411b5ccf508777b1c0c3fd4
[ "Apache-2.0" ]
null
null
null
experiment/generate_tests.py
fabiand/test-infra
cf8e12368691f996f411b5ccf508777b1c0c3fd4
[ "Apache-2.0" ]
1
2018-09-27T19:28:56.000Z
2018-09-27T19:28:56.000Z
#!/usr/bin/env python # Copyright 2017 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.644444
79
0.629943
0835d277097bbbd36a91a13379cfe8c97fe1b21f
5,730
py
Python
colossalai/nn/loss/loss_3d.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
colossalai/nn/loss/loss_3d.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
colossalai/nn/loss/loss_3d.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
import torch import torch.distributed as dist from colossalai.constants import INPUT_GROUP_3D, WEIGHT_GROUP_3D, OUTPUT_GROUP_3D from colossalai.core import global_context as gpc from colossalai.nn.layer.parallel_3d import reduce_by_batch_3d, split_tensor_3d from colossalai.nn.layer.parallel_3d._utils import get_paralle...
40.928571
113
0.703839
87277c44b2f18628963c86ae71890033499a287a
5,063
py
Python
OpenPoseImage.py
NusaibaNizam/Anonymous-Person-Tracking-across-Multiple-Camera-Using-Color-Histogram-and
bd65abb830e7f6a6651f2d9ddba67415880fd42a
[ "Apache-2.0" ]
null
null
null
OpenPoseImage.py
NusaibaNizam/Anonymous-Person-Tracking-across-Multiple-Camera-Using-Color-Histogram-and
bd65abb830e7f6a6651f2d9ddba67415880fd42a
[ "Apache-2.0" ]
null
null
null
OpenPoseImage.py
NusaibaNizam/Anonymous-Person-Tracking-across-Multiple-Camera-Using-Color-Histogram-and
bd65abb830e7f6a6651f2d9ddba67415880fd42a
[ "Apache-2.0" ]
null
null
null
import cv2 import time import numpy as np import math #import argparse # parser = argparse.ArgumentParser(description='Run keypoint detection') # parser.add_argument("--device", default="gpu", help="Device to inference on") # parser.add_argument("--image_file", default="single.jpeg", help="Input image") # # args = par...
37.783582
137
0.592139
bf70f499ec693f470c37f0416512db8550eaa848
5,018
py
Python
homeassistant/components/sensibo/entity.py
mcx/core
55eca2e2b4ebcf11486749035fd3c7e77ea14b8f
[ "Apache-2.0" ]
null
null
null
homeassistant/components/sensibo/entity.py
mcx/core
55eca2e2b4ebcf11486749035fd3c7e77ea14b8f
[ "Apache-2.0" ]
null
null
null
homeassistant/components/sensibo/entity.py
mcx/core
55eca2e2b4ebcf11486749035fd3c7e77ea14b8f
[ "Apache-2.0" ]
null
null
null
"""Base entity for Sensibo integration.""" from __future__ import annotations from typing import TYPE_CHECKING, Any import async_timeout from pysensibo.model import MotionSensor, SensiboDevice from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.device_registry import CONNECTION_NETWORK...
34.847222
100
0.621363
885a8fa11069f77c5ebd9ec068d6a5e287b6ab61
631
py
Python
eggs/GeneTrack-2.0.0_beta_1_dev_48da9e998f0caf01c5be731e926f4b0481f658f0-py2.7.egg/tests/testlib/pathfix.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
eggs/GeneTrack-2.0.0_beta_1_dev_48da9e998f0caf01c5be731e926f4b0481f658f0-py2.7.egg/tests/testlib/pathfix.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
eggs/GeneTrack-2.0.0_beta_1_dev_48da9e998f0caf01c5be731e926f4b0481f658f0-py2.7.egg/tests/testlib/pathfix.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
1
2020-07-25T21:10:26.000Z
2020-07-25T21:10:26.000Z
""" The sole purpose of this module is to alter the sys.path upon importing to add the current genetrack package's path first into the import path """ import sys, os def path_join(*args): return os.path.abspath(os.path.join(*args)) curr_dir = os.path.dirname( __file__ ) test_dir = path_join(curr_dir, '..') base_...
27.434783
65
0.708399
bbc5b5a86157bda52b3d36e9070356888ea0da2b
8,193
py
Python
research/object_detection/core/matcher.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
research/object_detection/core/matcher.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
research/object_detection/core/matcher.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.285047
84
0.662273
71ea503ef94780717eac66f10b2422d42d13f999
9,208
py
Python
python/cuxfilter/charts/core/aggregate/core_aggregate_line.py
sean-frye/cuxfilter
e7291b819b01907da142f585112da66f7231d888
[ "Apache-2.0" ]
null
null
null
python/cuxfilter/charts/core/aggregate/core_aggregate_line.py
sean-frye/cuxfilter
e7291b819b01907da142f585112da66f7231d888
[ "Apache-2.0" ]
null
null
null
python/cuxfilter/charts/core/aggregate/core_aggregate_line.py
sean-frye/cuxfilter
e7291b819b01907da142f585112da66f7231d888
[ "Apache-2.0" ]
null
null
null
import panel as pn import dask_cudf import numpy as np from .core_aggregate import BaseAggregateChart from ....assets.numba_kernels import calc_groupby, calc_value_counts from ....layouts import chart_view class BaseLine(BaseAggregateChart): chart_type: str = "line" reset_event = None _datatile_loaded_st...
30.591362
78
0.491203
c3640a49d0a94a0b95e25a1ae69c8e53361e93b2
4,112
py
Python
lib/python/treadmill/tests/runtime/linux/image/tar_test.py
vrautela/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
1
2019-04-14T20:17:07.000Z
2019-04-14T20:17:07.000Z
lib/python/treadmill/tests/runtime/linux/image/tar_test.py
vrautela/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
1
2017-09-18T10:36:12.000Z
2017-09-18T10:36:12.000Z
lib/python/treadmill/tests/runtime/linux/image/tar_test.py
evreng/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
null
null
null
"""Tests for treadmill.runtime.linux.image.tar. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import shutil import tempfile import unittest import io import mock import pkg_resources # Disable W0611:...
30.235294
78
0.567121
0408f4a162e4444d83d383829f3e38c6d750647d
91
py
Python
tutos/tutorias/apps.py
UVG-Teams/Tutos-System
230dd9434f745c2e6e69e10f9908e9818c559d03
[ "MIT" ]
null
null
null
tutos/tutorias/apps.py
UVG-Teams/Tutos-System
230dd9434f745c2e6e69e10f9908e9818c559d03
[ "MIT" ]
null
null
null
tutos/tutorias/apps.py
UVG-Teams/Tutos-System
230dd9434f745c2e6e69e10f9908e9818c559d03
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TutoriasConfig(AppConfig): name = 'tutorias'
15.166667
33
0.758242
096815c95bb691d81eff8dc70b3a14b7b63e0a5b
11,757
py
Python
cogs/info.py
CaseyK9/Scarecrow
c85d4f63f4c3a2fdfb0bf12d684adc4ef71508a8
[ "MIT" ]
12
2017-02-09T21:11:46.000Z
2020-02-12T18:27:36.000Z
cogs/info.py
CaseyK9/Scarecrow
c85d4f63f4c3a2fdfb0bf12d684adc4ef71508a8
[ "MIT" ]
8
2017-06-26T14:39:18.000Z
2020-04-22T23:15:40.000Z
cogs/info.py
CaseyK9/Scarecrow
c85d4f63f4c3a2fdfb0bf12d684adc4ef71508a8
[ "MIT" ]
19
2017-07-01T00:24:16.000Z
2020-11-25T15:06:07.000Z
import collections import subprocess import time import unicodedata import psutil import discord import discord.ext.commands as commands from utils import utils def setup(bot): bot.add_cog(Info(bot)) psutil.cpu_percent() # Initialise the first interval class Info(commands.Cog): """When your curiosit...
45.045977
226
0.619716
f2e77c960f69036622558b16895b08494aad4411
1,388
py
Python
search/index.py
smartdatalake/danae
d3caf14e86f416586046aa9050ca5673356dde6d
[ "Apache-2.0" ]
null
null
null
search/index.py
smartdatalake/danae
d3caf14e86f416586046aa9050ca5673356dde6d
[ "Apache-2.0" ]
null
null
null
search/index.py
smartdatalake/danae
d3caf14e86f416586046aa9050ca5673356dde6d
[ "Apache-2.0" ]
null
null
null
from rtree import index from bidict import bidict class RTree: def __init__(self, name, no, flat=False): idx_properties = index.Property() idx_properties.dimension = no idx_properties.overwrite = False self.idx = index.Index('idx/index_{}_{}'.format(name, no), properties=i...
30.173913
93
0.528818
1d24026e90d7c564f65e9ca5a5a1055d9b13c86e
4,585
py
Python
tests/py/test_multi_gpu.py
svenchilton/Torch-TensorRT
95d2b6e003a0392fe08ce49520f015c230d4c750
[ "BSD-3-Clause" ]
430
2021-11-09T08:08:01.000Z
2022-03-31T10:13:45.000Z
tests/py/test_multi_gpu.py
svenchilton/Torch-TensorRT
95d2b6e003a0392fe08ce49520f015c230d4c750
[ "BSD-3-Clause" ]
257
2021-11-09T07:17:03.000Z
2022-03-31T20:29:31.000Z
tests/py/test_multi_gpu.py
svenchilton/Torch-TensorRT
95d2b6e003a0392fe08ce49520f015c230d4c750
[ "BSD-3-Clause" ]
68
2021-11-10T05:03:22.000Z
2022-03-22T17:07:32.000Z
import unittest import torch_tensorrt as torchtrt import torch import torchvision.models as models from model_test_case import ModelTestCase class TestMultiGpuSwitching(ModelTestCase): def setUp(self): if torch.cuda.device_count() < 2: self.fail("Test is not relevant for this platform since ...
35.542636
117
0.605016
c5c59e9958ddb98960d053024a68e491b57c520e
7,480
py
Python
adafruit_veml7700.py
BrianPugh/Adafruit_CircuitPython_VEML7700
8f2f24e811c1b723e2a4a02933a36acf3bd27998
[ "Unlicense", "MIT-0", "MIT" ]
null
null
null
adafruit_veml7700.py
BrianPugh/Adafruit_CircuitPython_VEML7700
8f2f24e811c1b723e2a4a02933a36acf3bd27998
[ "Unlicense", "MIT-0", "MIT" ]
null
null
null
adafruit_veml7700.py
BrianPugh/Adafruit_CircuitPython_VEML7700
8f2f24e811c1b723e2a4a02933a36acf3bd27998
[ "Unlicense", "MIT-0", "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2019 Kattni Rembor for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_veml7700` ================================================================================ CircuitPython driver for VEML7700 high precision I2C ambient light sensor. * Author(s): Kattni Rembor Implem...
30.283401
97
0.643984
fb26138eed941201dc7fa7b2c8d77fc28c0bdefc
11,180
py
Python
tests/regressiontests/transactions_regress/tests.py
graingert/django
784d0c261c76535dc760bc8d76793d92f35c1513
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/transactions_regress/tests.py
graingert/django
784d0c261c76535dc760bc8d76793d92f35c1513
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/transactions_regress/tests.py
graingert/django
784d0c261c76535dc760bc8d76793d92f35c1513
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from django.core.exceptions import ImproperlyConfigured from django.db import connection, connections, transaction, DEFAULT_DB_ALIAS from django.db.transaction import commit_on_success, commit_manually, TransactionManagementError from django.test import TransactionTestCase, skipU...
39.5053
109
0.661807
51796b234a9b3558cc01021ae27caa40a91162bf
4,995
py
Python
ag_list_of_functions.py
arpanganguli/SACCR
0232b9b34d67e3f67fd58675730ec67acafbe355
[ "MIT" ]
null
null
null
ag_list_of_functions.py
arpanganguli/SACCR
0232b9b34d67e3f67fd58675730ec67acafbe355
[ "MIT" ]
1
2021-09-17T23:32:01.000Z
2021-09-17T23:32:01.000Z
ag_list_of_functions.py
arpanganguli/SACCR
0232b9b34d67e3f67fd58675730ec67acafbe355
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Apr 12 08:45:01 2021 @author: arpanganguli """ import pandas as pd import glob import os from math import exp, log, sqrt from scipy.stats import norm # develop functions def pick_latest_file(): """ Picks latest file from the Database directory...
26.428571
117
0.640841