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
ffde90a5d50130a41d1a595028693dbb1f0d9990
2,077
py
Python
evaluation/test_polygon_iou.py
karstenBehrendt/boxy
2695dbd632a416bbb543d90f9e303f6cb3987cf2
[ "MIT" ]
50
2019-05-27T08:48:12.000Z
2021-12-17T12:39:13.000Z
evaluation/test_polygon_iou.py
karstenBehrendt/boxy
2695dbd632a416bbb543d90f9e303f6cb3987cf2
[ "MIT" ]
10
2019-08-23T06:41:37.000Z
2022-01-31T18:43:22.000Z
evaluation/test_polygon_iou.py
karstenBehrendt/boxy
2695dbd632a416bbb543d90f9e303f6cb3987cf2
[ "MIT" ]
10
2019-11-29T09:49:41.000Z
2021-12-19T09:34:14.000Z
#!/usr/bin/env python3 """ Test polygon intersections Covers a very limited sample set to check if the iou functions are working as intended. The tests are too limited to assume correctness. The tests also only cover quadrilaterals. """ # NOTE Ignoring incorrect inputs for first (and likely last) version of tests # N...
31.469697
77
0.647569
9bac08031e5a5b915e87471a59a3ad45c53e6e68
8,804
py
Python
emtask/ced/test/test_cedobject_factory.py
vecin2/python-emtask
b7334cadb7012c17b49bbb470e345cc84b25c5cf
[ "MIT" ]
null
null
null
emtask/ced/test/test_cedobject_factory.py
vecin2/python-emtask
b7334cadb7012c17b49bbb470e345cc84b25c5cf
[ "MIT" ]
null
null
null
emtask/ced/test/test_cedobject_factory.py
vecin2/python-emtask
b7334cadb7012c17b49bbb470e345cc84b25c5cf
[ "MIT" ]
null
null
null
import lxml.etree as ET from emtask.ced import cedobject_factory as of class ProcessAssertor(object): def __init__(self, process): self.process = process self.rootelem = process.rootnode def assert_params(self, expected_fields): assert_equal_elems(expected_fields, self.process.get_pa...
39.128889
87
0.71706
1c367edc638ba223845ce4f661ce8bfd0b5db630
76
wsgi
Python
1/index.wsgi
catsky/rebang
7053de769a3a7093f84cb6117a361ed394472ef0
[ "MIT" ]
29
2015-01-04T09:34:43.000Z
2019-02-20T20:16:03.000Z
1/index.wsgi
catsky/rebang
7053de769a3a7093f84cb6117a361ed394472ef0
[ "MIT" ]
1
2015-01-19T07:05:54.000Z
2015-06-02T05:01:38.000Z
1/index.wsgi
catsky/rebang
7053de769a3a7093f84cb6117a361ed394472ef0
[ "MIT" ]
17
2015-01-11T06:31:52.000Z
2018-09-03T05:55:23.000Z
import sae from chartnet import app application = sae.create_wsgi_app(app)
15.2
38
0.815789
fe9c5677d4c3baa644b2b00423a5999db8916542
780
py
Python
sensor/consumers.py
saurbkumar/dataDisplay
f76b68bb554901e494eb5c39cec54dc9c95bd6ac
[ "Apache-2.0" ]
null
null
null
sensor/consumers.py
saurbkumar/dataDisplay
f76b68bb554901e494eb5c39cec54dc9c95bd6ac
[ "Apache-2.0" ]
null
null
null
sensor/consumers.py
saurbkumar/dataDisplay
f76b68bb554901e494eb5c39cec54dc9c95bd6ac
[ "Apache-2.0" ]
null
null
null
# In consumers.py # consumer function is mapped from url file , in routing from channels import Group # Connected to websocket.connect def ws_connect(message): # Accept the connection message.reply_channel.send({"accept": True}) Group('sensor').add(message.reply_channel) message.reply_channel.send({ ...
35.454545
106
0.674359
af37ddd55b26c0cfbf19acdeb23332eff6448733
3,200
py
Python
packages/fetchai/skills/erc1155_client/behaviours.py
bryanchriswhite/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
packages/fetchai/skills/erc1155_client/behaviours.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
packages/fetchai/skills/erc1155_client/behaviours.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2020 Fetch.AI Limited # # 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 ...
38.554217
84
0.667188
d6be6a9f3c730183d1031becfda3cffc131086f8
2,070
py
Python
setup.py
swcho/dbt-spark
e58ed5bbf00bd467be6892ce4921d7d5b1e11043
[ "Apache-2.0" ]
null
null
null
setup.py
swcho/dbt-spark
e58ed5bbf00bd467be6892ce4921d7d5b1e11043
[ "Apache-2.0" ]
null
null
null
setup.py
swcho/dbt-spark
e58ed5bbf00bd467be6892ce4921d7d5b1e11043
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import find_namespace_packages, setup import os import re this_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(this_directory, 'README.md')) as f: long_description = f.read() package_name = "dbt-spark" # get this from a separate file def _dbt...
27.972973
79
0.633816
760818987ea0fa9668a98c8482d3c44727811859
6,104
py
Python
runners/image_editing.py
donglinwu6066/SDEdit
a97f0e8f76bb7905858db18c464bdd77d1fcc3d0
[ "MIT" ]
330
2021-05-13T09:17:13.000Z
2022-03-28T06:48:50.000Z
runners/image_editing.py
donglinwu6066/SDEdit
a97f0e8f76bb7905858db18c464bdd77d1fcc3d0
[ "MIT" ]
9
2021-05-26T09:18:14.000Z
2022-03-14T17:33:40.000Z
runners/image_editing.py
donglinwu6066/SDEdit
a97f0e8f76bb7905858db18c464bdd77d1fcc3d0
[ "MIT" ]
33
2021-08-03T09:15:48.000Z
2022-03-18T09:04:49.000Z
import os import numpy as np from tqdm import tqdm import torch import torchvision.utils as tvu from models.diffusion import Model from functions.process_data import * def get_beta_schedule(*, beta_start, beta_end, num_diffusion_timesteps): betas = np.linspace(beta_start, beta_end, num_d...
42.096552
115
0.546199
e197cf33de116a4d47523b594e5058b73d221fab
1,808
py
Python
utils/misc/distribution_utils_test.py
CQUlearningsystemgroup/BitwiseBottlneck
db2b3a19d56740a8e933c609fed45eb667378c37
[ "MIT" ]
3
2021-09-02T16:38:36.000Z
2022-03-19T14:00:13.000Z
utils/misc/distribution_utils_test.py
CQUlearningsystemgroup/BitwiseBottlneck
db2b3a19d56740a8e933c609fed45eb667378c37
[ "MIT" ]
null
null
null
utils/misc/distribution_utils_test.py
CQUlearningsystemgroup/BitwiseBottlneck
db2b3a19d56740a8e933c609fed45eb667378c37
[ "MIT" ]
null
null
null
""" Tests for distribution util functions.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf # pylint: disable=g-bad-import-order from utils.misc import distribution_utils class GetDistributionStrategyTest(tf.test.TestCase): ...
34.113208
72
0.770465
79297f7f2ad8bebcec03c0f656404689a7e5d6b0
1,201
py
Python
irmacl/tests/functionals/test_zipBomb.py
quarkslab/irmacl
4eaa662957c29ada25c72018197897dd39e9c481
[ "Apache-2.0" ]
7
2015-11-06T10:36:08.000Z
2018-06-06T05:26:57.000Z
irmacl/tests/functionals/test_zipBomb.py
quarkslab/irma-cli
4eaa662957c29ada25c72018197897dd39e9c481
[ "Apache-2.0" ]
3
2016-09-22T10:31:47.000Z
2018-03-23T17:21:07.000Z
irmacl/tests/functionals/test_zipBomb.py
quarkslab/irma-cli
4eaa662957c29ada25c72018197897dd39e9c481
[ "Apache-2.0" ]
4
2016-01-29T04:15:08.000Z
2018-03-23T16:19:03.000Z
# -*- coding: utf-8 -*- import unittest import os import requests from irmacl.helpers import scan_files, \ scan_proberesults, probe_list cwd = os.path.dirname(__file__) SAMPLES_DIR = os.path.join(cwd, "samples") ZIP_SAMPLE = "zipbomb.zip" SESSION = requests.Session() class TestZipBomb(unittest.TestCase): de...
32.459459
78
0.673605
610214877a4501f5dbc103d058719b51d3620f21
665
py
Python
load_users.py
EleutherAI/poll_website_demo
166ae474a9f06cdacf0e368ae9d76244e4babdaa
[ "MIT" ]
null
null
null
load_users.py
EleutherAI/poll_website_demo
166ae474a9f06cdacf0e368ae9d76244e4babdaa
[ "MIT" ]
null
null
null
load_users.py
EleutherAI/poll_website_demo
166ae474a9f06cdacf0e368ae9d76244e4babdaa
[ "MIT" ]
null
null
null
import csv from models import User from app import db from generate_password import randomStringwithDigitsAndSymbols users = User.query.all() for u in users: db.session.delete(u) with open('users.csv') as f: reader = csv.reader(f) for row in reader: newUser = User(email=row[0], name=row[1], ...
25.576923
84
0.681203
c1cc5381431e0422710ffb97571d2bd2055881e1
11,723
py
Python
src/ocspdash/models.py
scolby33/OCSPdash
3eac8841e93ee50f3199ed685fd54eef372e21a3
[ "MIT" ]
null
null
null
src/ocspdash/models.py
scolby33/OCSPdash
3eac8841e93ee50f3199ed685fd54eef372e21a3
[ "MIT" ]
44
2017-08-16T10:28:51.000Z
2021-04-30T20:46:12.000Z
src/ocspdash/models.py
scolby33/OCSPdash
3eac8841e93ee50f3199ed685fd54eef372e21a3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """SQLAlchemy models for OCSPdash.""" import operator import uuid from base64 import urlsafe_b64decode as b64decode, urlsafe_b64encode as b64encode from datetime import datetime, timedelta, timezone from enum import Enum from typing import Mapping, Optional # noqa: F401 imported for PyCharm t...
32.383978
109
0.635588
10d1ecf12d59123ea0c69281f0d7dc52d1607e16
555
py
Python
Data Science is Software/src/features/test_features.py
atalebizadeh/DS-Career-Track
8bf78ef11041aef94810a392022cd51b94462d9c
[ "MIT" ]
316
2016-07-11T18:19:20.000Z
2022-03-09T23:23:34.000Z
src/features/test_features.py
waigwamacha/data-science-is-software
2ade61a883098b3e4f231eced751c974f2759fb4
[ "MIT" ]
3
2016-07-25T04:52:18.000Z
2021-04-23T17:48:05.000Z
src/features/test_features.py
waigwamacha/data-science-is-software
2ade61a883098b3e4f231eced751c974f2759fb4
[ "MIT" ]
126
2016-07-21T03:06:31.000Z
2022-02-27T19:22:15.000Z
import os import pandas as pd from .build_features import remove_invalid_data PROJ_ROOT = os.path.join(__file__, os.pardir, os.pardir, os.pardir) PROJ_ROOT = os.path.abspath(PROJ_ROOT) def test_remove_invalid_data(): data_path = os.pat...
23.125
51
0.524324
ccd343ce2c53be499037207a52c623dacd71561b
2,215
py
Python
siamreppoints/models/model_builder.py
gyzcode/RPT
ea924100ff12aded15cdc9233c1a430e74052ab2
[ "MIT" ]
null
null
null
siamreppoints/models/model_builder.py
gyzcode/RPT
ea924100ff12aded15cdc9233c1a430e74052ab2
[ "MIT" ]
null
null
null
siamreppoints/models/model_builder.py
gyzcode/RPT
ea924100ff12aded15cdc9233c1a430e74052ab2
[ "MIT" ]
null
null
null
# Copyright (c) SenseTime. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import torch import torch.nn as nn from siamreppoints.core.config import cfg from siamreppoints.models.backbone import g...
29.144737
89
0.576524
527af642ae0ce12ed4cc88a260fc5f16cbafd1e5
12,383
py
Python
src/unity/python/turicreate/toolkits/graph_analytics/shortest_path.py
shantanuchhabra/turicreate-c-api
360f7e4d3622a2766472dfce7d36d2ceadc52788
[ "BSD-3-Clause" ]
null
null
null
src/unity/python/turicreate/toolkits/graph_analytics/shortest_path.py
shantanuchhabra/turicreate-c-api
360f7e4d3622a2766472dfce7d36d2ceadc52788
[ "BSD-3-Clause" ]
null
null
null
src/unity/python/turicreate/toolkits/graph_analytics/shortest_path.py
shantanuchhabra/turicreate-c-api
360f7e4d3622a2766472dfce7d36d2ceadc52788
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2017 Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause from __future__ import print_function as _ from __future__ import division as _ from...
37.07485
103
0.604135
054a32949db6f6618d19e65c08f52f4096da56a5
502
py
Python
lcb/cases.py
arydevy/LABO
90882436dade8cf6b07a44600f725f7ee7d72c31
[ "MIT" ]
1
2020-06-04T13:28:32.000Z
2020-06-04T13:28:32.000Z
lcb/cases.py
arydevy/LABO
90882436dade8cf6b07a44600f725f7ee7d72c31
[ "MIT" ]
null
null
null
lcb/cases.py
arydevy/LABO
90882436dade8cf6b07a44600f725f7ee7d72c31
[ "MIT" ]
null
null
null
import random,datetime from adons import * from stats import * from sys import exit input_output = {"hi": greeting, 'hello': greeting, "what is your name": myname, "my name": user, "about": about, "where are you from": home, ...
22.818182
53
0.464143
1f771aee720cf5f5a4b467302669bb0e4a4c85a1
28,972
py
Python
tasks/__init__.py
brianjgeiger/osf.io
aef962685056ac4f721cf9680fca5ec2dbfed675
[ "Apache-2.0" ]
null
null
null
tasks/__init__.py
brianjgeiger/osf.io
aef962685056ac4f721cf9680fca5ec2dbfed675
[ "Apache-2.0" ]
80
2015-02-25T15:12:15.000Z
2015-06-11T18:44:55.000Z
tasks/__init__.py
brianjgeiger/osf.io
aef962685056ac4f721cf9680fca5ec2dbfed675
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Invoke tasks. To run a task, run ``$ invoke <COMMAND>``. To see a list of commands, run ``$ invoke --list``. """ import os import sys import json import platform import subprocess import logging import sqlite3 import invoke from invoke import Collection from website im...
32.262806
183
0.660224
35e1ba6164187e38c5cd0fe22c4900338e2b5897
6,098
py
Python
tests/unit/test_exceptions.py
nickatnight/praw
6ba5c92e5d5210338c0a2a2755a5e5e226a002fa
[ "BSD-2-Clause" ]
1
2020-11-29T23:47:28.000Z
2020-11-29T23:47:28.000Z
tests/unit/test_exceptions.py
nickatnight/praw
6ba5c92e5d5210338c0a2a2755a5e5e226a002fa
[ "BSD-2-Clause" ]
null
null
null
tests/unit/test_exceptions.py
nickatnight/praw
6ba5c92e5d5210338c0a2a2755a5e5e226a002fa
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 import pytest from praw.exceptions import ( APIException, ClientException, DuplicateReplaceException, InvalidFlairTemplateID, InvalidImplicitAuth, InvalidURL, MediaPostFailed, MissingRequiredAttributeException, PRAWException, RedditAPIException, RedditErrorIt...
31.595855
87
0.649557
7343486db45fc5d96cb203ba1b739d532dcc2f7e
401
py
Python
manage.py
andela-oadeniran/bucket_list_app
a4eaf5a706c74cfee919e8a466681db14cbb71c8
[ "MIT" ]
null
null
null
manage.py
andela-oadeniran/bucket_list_app
a4eaf5a706c74cfee919e8a466681db14cbb71c8
[ "MIT" ]
null
null
null
manage.py
andela-oadeniran/bucket_list_app
a4eaf5a706c74cfee919e8a466681db14cbb71c8
[ "MIT" ]
null
null
null
from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from bucketlist_api import db from bucketlist_api.app import app app.config.from_object('config.DevelopmentConfig') app.config.from_envvar('BUCKETLIST_SETTINGS', silent=True) migrate = Migrate(app, db) manager = Manager(app) manager....
22.277778
58
0.795511
176e3ae6afcc7280127f36eb09acf6f2813046bd
234
py
Python
magy.py
abcsds/Logo
1a9d69adc48e21df9fbf9f2a3d223cd223c8e9be
[ "MIT" ]
null
null
null
magy.py
abcsds/Logo
1a9d69adc48e21df9fbf9f2a3d223cd223c8e9be
[ "MIT" ]
null
null
null
magy.py
abcsds/Logo
1a9d69adc48e21df9fbf9f2a3d223cd223c8e9be
[ "MIT" ]
null
null
null
from turtle import * def tree(size): if size >= 20: fd(size) lt(137.5/2) tree(size/1.618) rt(137.5/2) tree(size/1.618) rt(137.5/2) tree(size/1.618) lt(137.5/2) bk(size) lt(90) bk(300) tree(300)
13
20
0.542735
0e8d69635454c7094857a8424d68f2bc5da7379b
968
py
Python
SearchEngine/SearchEngine/urls.py
wangzihan424/SearchEngine
7f6968369089f78f24f5df0bad5d3e81bcec94e6
[ "MIT" ]
1
2017-12-28T01:40:58.000Z
2017-12-28T01:40:58.000Z
SearchEngine/SearchEngine/urls.py
wangzihan424/SearchEngine
7f6968369089f78f24f5df0bad5d3e81bcec94e6
[ "MIT" ]
null
null
null
SearchEngine/SearchEngine/urls.py
wangzihan424/SearchEngine
7f6968369089f78f24f5df0bad5d3e81bcec94e6
[ "MIT" ]
null
null
null
"""SearchEngine 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') Cla...
35.851852
79
0.700413
a618fdfe7990dbdbbe169c1bd74ba16a35d66443
3,520
py
Python
scripts/polspice_obsolete/parsl_config.py
tilmantroester/KiDS-1000xtSZ
190f193d5d2fc514bcbe96ea15d882ea59c7a1cc
[ "MIT" ]
1
2021-09-24T16:02:32.000Z
2021-09-24T16:02:32.000Z
scripts/polspice_obsolete/parsl_config.py
tilmantroester/KiDS-1000xtSZ
190f193d5d2fc514bcbe96ea15d882ea59c7a1cc
[ "MIT" ]
null
null
null
scripts/polspice_obsolete/parsl_config.py
tilmantroester/KiDS-1000xtSZ
190f193d5d2fc514bcbe96ea15d882ea59c7a1cc
[ "MIT" ]
null
null
null
import os import logging import parsl from parsl.config import Config from parsl.executors.ipp import IPyParallelExecutor from libsubmit.providers import LocalProvider from libsubmit.providers import SlurmProvider from libsubmit.launchers import SrunLauncher from libsubmit.channels import LocalChannel def setup_parsl...
47.567568
119
0.436648
55fa09c25cf95180f4705c0695e33bfdc15139c1
602
py
Python
budgetApp/migrations/0001_initial.py
PresterJuan/budget-tool
9965e15fc3a0199c6f4f568360887b47ec4716bb
[ "MIT" ]
null
null
null
budgetApp/migrations/0001_initial.py
PresterJuan/budget-tool
9965e15fc3a0199c6f4f568360887b47ec4716bb
[ "MIT" ]
null
null
null
budgetApp/migrations/0001_initial.py
PresterJuan/budget-tool
9965e15fc3a0199c6f4f568360887b47ec4716bb
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-04-23 02:44 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Stuff', fields=[ ('id', models.AutoField(au...
25.083333
114
0.561462
2f64bbedf64d40b4146e853d9a01673baf0d8716
613
py
Python
test/fun_test.py
afcarl/toolbox
c6c9263bab58981bbd7211a0c760d4d9d75e098f
[ "MIT" ]
1
2019-04-22T16:55:09.000Z
2019-04-22T16:55:09.000Z
test/fun_test.py
afcarl/toolbox
c6c9263bab58981bbd7211a0c760d4d9d75e098f
[ "MIT" ]
null
null
null
test/fun_test.py
afcarl/toolbox
c6c9263bab58981bbd7211a0c760d4d9d75e098f
[ "MIT" ]
null
null
null
import toolbox.fun as fun def fun_coverage(): """Execute all the function of the fun module""" fun.flatten([range(10), range(5)]) fun.flattenLists([range(10), range(5)]) fun.clip(1.5, 0.0, 1.0) fun.norm((0.0, 0.0), (1.0, 1.0)) fun.norm_sq((0.0, 0.0), (2.0, -1.0)) fun.gaussian_kernel(1.0, 2...
27.863636
61
0.5677
4b06e2494dfdae2fe6827d70615386aaf53805ac
6,854
py
Python
psq/queue_test.py
Tomesco/bookshelf-demo-project
9d422f3aa04edbb3312d3e177caf699653ed6a73
[ "Apache-2.0" ]
210
2015-07-29T16:50:01.000Z
2022-03-02T15:24:52.000Z
psq/queue_test.py
Tomesco/bookshelf-demo-project
9d422f3aa04edbb3312d3e177caf699653ed6a73
[ "Apache-2.0" ]
60
2015-12-03T23:15:57.000Z
2021-01-21T09:25:42.000Z
psq/queue_test.py
Tomesco/bookshelf-demo-project
9d422f3aa04edbb3312d3e177caf699653ed6a73
[ "Apache-2.0" ]
47
2015-12-21T06:09:36.000Z
2021-09-04T13:20:21.000Z
# Copyright 2015 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
27.748988
79
0.730376
6423fea75204277b89d991fdf5d8fcecd31f17ed
7,149
py
Python
models/model_builder.py
Yuxin33/unmask-1
1c51c9c47f0d9e778d779df48364a46ef8921f77
[ "MIT" ]
7
2021-02-22T11:16:28.000Z
2021-11-12T01:33:08.000Z
models/model_builder.py
Yuxin33/unmask-1
1c51c9c47f0d9e778d779df48364a46ef8921f77
[ "MIT" ]
null
null
null
models/model_builder.py
Yuxin33/unmask-1
1c51c9c47f0d9e778d779df48364a46ef8921f77
[ "MIT" ]
3
2020-11-16T05:10:11.000Z
2021-12-07T03:35:10.000Z
from __future__ import print_function import torch import torch.utils.data as data import torchvision from torchvision import transforms import numpy as np import torch.nn as nn # from models.vgg import vgg16, vgg19 # from models.resnet import resnet50 from torchvision.models import resnet50, vgg16, densen...
39.938547
137
0.643307
cde7af01bb1e5cae439adac06a0a91081f1704a5
1,141
py
Python
Python Codes/CombineCSV.py
wcmears/python-codes
22a787a3fd29ddea0d02dc86e150f8316cc8db9d
[ "Apache-2.0" ]
null
null
null
Python Codes/CombineCSV.py
wcmears/python-codes
22a787a3fd29ddea0d02dc86e150f8316cc8db9d
[ "Apache-2.0" ]
null
null
null
Python Codes/CombineCSV.py
wcmears/python-codes
22a787a3fd29ddea0d02dc86e150f8316cc8db9d
[ "Apache-2.0" ]
null
null
null
import csv import os import glob import pandas as pd import numpy as np print("\CSV Combine and Remove Duplicate Headers, Written by W. Mears.\n") directory = input(r"Enter the directory name (Relative or full pathnames accepted. Ex: C:\Users\yourname\path): ") os.chdir(directory) #change directory so csv gets s...
60.052632
115
0.750219
34a8a09664e4d1572215d28155f11c5447679d97
3,786
py
Python
karma.py
dashezup/Telegram_Karma_Bot
5b8a4035167aac8a5ceca539664d407bd49ce8d9
[ "MIT" ]
null
null
null
karma.py
dashezup/Telegram_Karma_Bot
5b8a4035167aac8a5ceca539664d407bd49ce8d9
[ "MIT" ]
null
null
null
karma.py
dashezup/Telegram_Karma_Bot
5b8a4035167aac8a5ceca539664d407bd49ce8d9
[ "MIT" ]
1
2022-02-17T14:47:25.000Z
2022-02-17T14:47:25.000Z
import json import glob from os import path from pyrogram import Client, filters from config import bot_token, owner_id app = Client( ":memory:", bot_token=bot_token, api_id=6, api_hash="eb06d4abfb49dc3eeb1aeb98ae0f581e", ) regex_upvote = r"^((?i)\+|\+\+|\+1|thx|tnx|ty|thank you|thanx|thanks|pro|cool|...
30.288
109
0.634443
d9658def53a7dbfe8aee5cc0746d4728dc586dde
14,273
py
Python
Datasets/svg.py
Dianezzy/YOLaT-VectorGraphicsRecognition
ae21ad5850a49048f639d9b283ded927c3b367f7
[ "MIT" ]
44
2021-12-24T02:49:10.000Z
2022-03-30T06:50:26.000Z
Datasets/svg.py
Dianezzy/YOLaT-VectorGraphicsRecognition
ae21ad5850a49048f639d9b283ded927c3b367f7
[ "MIT" ]
2
2021-12-30T07:25:37.000Z
2022-03-22T11:29:48.000Z
Datasets/svg.py
Dianezzy/YOLaT-VectorGraphicsRecognition
ae21ad5850a49048f639d9b283ded927c3b367f7
[ "MIT" ]
7
2021-12-24T02:30:16.000Z
2022-03-22T10:59:29.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import torch import os import numpy as np from xml.dom.minidom import parse, Node, parseString from torch_geometric.data import Data from Datasets.svg_parser import SVGParser, SVGGraphBuilderBezier from sklearn.metrics.pairwise import euclidean...
37.072727
156
0.533875
97e52610c70782f28a7590ddff308374178f4f4a
1,076
py
Python
src/contextual_bandits/Bibtex/parse_data.py
renan-cunha/Multi-Armed-Bandits
054fc26627cb136a94b5394a5aab7ab3b2509704
[ "MIT" ]
null
null
null
src/contextual_bandits/Bibtex/parse_data.py
renan-cunha/Multi-Armed-Bandits
054fc26627cb136a94b5394a5aab7ab3b2509704
[ "MIT" ]
1
2020-05-05T20:26:49.000Z
2020-05-08T14:27:40.000Z
src/contextual_bandits/Bibtex/parse_data.py
renan-cunha/Bandits
054fc26627cb136a94b5394a5aab7ab3b2509704
[ "MIT" ]
null
null
null
"""I took this script from David Cortes tutorial https://nbviewer.jupyter.org/github/david-cortes/contextualbandits/blob/master/example/online_contextual_bandits.ipynb""" import pandas as pd, numpy as np, re from sklearn.preprocessing import MultiLabelBinarizer def parse_data(file_name): features = list() labe...
35.866667
121
0.575279
815920af4f74da63d13a42c7074b6bab1b57ab94
1,033
py
Python
main.py
calacuda/network-notifier
546c86775dfa61700f8035e24157d2e7ca729c0a
[ "MIT" ]
null
null
null
main.py
calacuda/network-notifier
546c86775dfa61700f8035e24157d2e7ca729c0a
[ "MIT" ]
null
null
null
main.py
calacuda/network-notifier
546c86775dfa61700f8035e24157d2e7ca729c0a
[ "MIT" ]
null
null
null
""" main.py for running a periodic scan to see if any new devices have connected to the network. By: Calacuda | MIT Licence """ import scan import notify import time import json def get_database(): with open("database.json", "r") as database: return json.loads(database.read()) def periodic_scan(wait...
22.456522
85
0.644724
6b79353404348e9bd91c66a825e2cd80b7690969
13,000
py
Python
tests/test_composition_integration.py
c4dt/zksk
647a0d969634098ba56f944c0d057263f3780a98
[ "MIT" ]
null
null
null
tests/test_composition_integration.py
c4dt/zksk
647a0d969634098ba56f944c0d057263f3780a98
[ "MIT" ]
null
null
null
tests/test_composition_integration.py
c4dt/zksk
647a0d969634098ba56f944c0d057263f3780a98
[ "MIT" ]
null
null
null
import random import pytest from petlib.bn import Bn from petlib.ec import EcGroup from zksk import DLRep, Secret from zksk.exceptions import ( InvalidExpression, InvalidSecretsError, ValidationError, GroupMismatchError, ) from zksk.composition import AndProofStmt, OrProofStmt from zksk.expr import w...
27.659574
94
0.648615
8cb3639391511b6dc23918f04ec8af21bd304d29
66
py
Python
testAppium/unit/testcase/start_activity/__init__.py
moulage/appium-android
082e4018673fecd260552d758f8a8ba154838b9a
[ "Apache-2.0" ]
null
null
null
testAppium/unit/testcase/start_activity/__init__.py
moulage/appium-android
082e4018673fecd260552d758f8a8ba154838b9a
[ "Apache-2.0" ]
null
null
null
testAppium/unit/testcase/start_activity/__init__.py
moulage/appium-android
082e4018673fecd260552d758f8a8ba154838b9a
[ "Apache-2.0" ]
null
null
null
# coding = utf-8 from .start_activity import AA_StartAPPActivity
16.5
47
0.80303
99bc473da557c565cdcc65a41ef42202b797597b
11,907
py
Python
gem_metrics/config.py
ndaheim/GEM-metrics
cfa7a3223d94a7f7ef5fda1d2928e2510b0cbede
[ "MIT" ]
30
2021-02-06T04:58:14.000Z
2022-03-04T11:26:14.000Z
gem_metrics/config.py
ndaheim/GEM-metrics
cfa7a3223d94a7f7ef5fda1d2928e2510b0cbede
[ "MIT" ]
70
2021-01-12T17:55:15.000Z
2022-03-30T17:37:02.000Z
gem_metrics/config.py
ndaheim/GEM-metrics
cfa7a3223d94a7f7ef5fda1d2928e2510b0cbede
[ "MIT" ]
14
2021-01-30T20:55:17.000Z
2022-03-24T02:31:21.000Z
''' This is the main list of splits that are supported. The naming schema follows {DATASET_NAME}_{SPLIT_NAME}. For validation sets, both `val` and `validation` are allowed, but the corresponding filename should use `validation` - this was introduced to maintain backwards compability. Should the dataset not be fou...
55.125
122
0.727975
34cf365564519d1fc7e885887eed7aba4e7edf1e
3,319
py
Python
guardian/managers.py
peopledoc/django-guardian
459827c2329975113cbf0d11f4fd476b5689a055
[ "BSD-2-Clause" ]
5
2015-12-05T15:39:51.000Z
2020-09-16T20:14:29.000Z
guardian/managers.py
peopledoc/django-guardian
459827c2329975113cbf0d11f4fd476b5689a055
[ "BSD-2-Clause" ]
null
null
null
guardian/managers.py
peopledoc/django-guardian
459827c2329975113cbf0d11f4fd476b5689a055
[ "BSD-2-Clause" ]
2
2019-11-23T17:47:46.000Z
2022-01-14T11:05:21.000Z
from django.db import models from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType from guardian.exceptions import ObjectNotPersisted class UserObjectPermissionManager(models.Manager): def assign(self, perm, user, obj): """ Assigns permission...
33.525253
80
0.576981
8e2ba1065983562cecb919962b9da5665ebecb98
4,546
py
Python
src/m9b_summing_again.py
DonkeyK1ng/03-AccumulatorsAndFunctionsWithParameters
e9a0dfb431e8bb8a408fee0732a124b24efa44a6
[ "MIT" ]
null
null
null
src/m9b_summing_again.py
DonkeyK1ng/03-AccumulatorsAndFunctionsWithParameters
e9a0dfb431e8bb8a408fee0732a124b24efa44a6
[ "MIT" ]
null
null
null
src/m9b_summing_again.py
DonkeyK1ng/03-AccumulatorsAndFunctionsWithParameters
e9a0dfb431e8bb8a408fee0732a124b24efa44a6
[ "MIT" ]
null
null
null
""" This module lets you practice the ACCUMULATOR pattern in its simplest classic forms: SUMMING: total = total + number Authors: David Mutchler, Dave Fisher, Vibha Alangar, Mark Hays, Amanda Stouder, their colleagues and Yuanning Zuo. """ # Done: 1. PUT YOUR NAME IN THE ABOVE LINE. def main(): ...
36.368
79
0.50088
a2fe2c49e0bb2d2596a15fcf559eb112de2b2e49
6,056
py
Python
troposphere/opensearchservice.py
filipepmo/troposphere
b1590f58ed8cc86ba18a19ed93fc9380d6f7306b
[ "BSD-2-Clause" ]
null
null
null
troposphere/opensearchservice.py
filipepmo/troposphere
b1590f58ed8cc86ba18a19ed93fc9380d6f7306b
[ "BSD-2-Clause" ]
null
null
null
troposphere/opensearchservice.py
filipepmo/troposphere
b1590f58ed8cc86ba18a19ed93fc9380d6f7306b
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012-2022, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. # # *** Do not modify - this file is autogenerated *** # Resource specification version: 51.0.0 from . import AWSObject, AWSProperty, PropsDictType, Tags from .validators import boolean, integer from .va...
32.735135
174
0.683124
8ce7419d84586d71646164441a214fd7d9640e07
467
py
Python
main/apache/wsgi.py
nmota/public-contracts
b809df82147e5e4fa746416c0f9d51db2c6db05a
[ "BSD-3-Clause" ]
25
2015-03-05T00:15:11.000Z
2021-04-04T18:50:43.000Z
main/apache/wsgi.py
nmota/public-contracts
b809df82147e5e4fa746416c0f9d51db2c6db05a
[ "BSD-3-Clause" ]
36
2015-03-21T17:04:54.000Z
2017-07-06T10:35:51.000Z
main/apache/wsgi.py
nmota/public-contracts
b809df82147e5e4fa746416c0f9d51db2c6db05a
[ "BSD-3-Clause" ]
7
2015-03-24T16:18:02.000Z
2019-05-29T11:51:01.000Z
import os import sys #path to directory of the .wgsi file ('[directory]/') wsgi_dir = os.path.abspath(os.path.dirname(__file__)) # path to project root directory (osqa '/') project_dir = os.path.dirname(wsgi_dir) # add project directory to system's Path sys.path.append(project_dir) sys.path.append(project_dir+"/mai...
27.470588
54
0.770878
4a938cd2dc9aaf6a4dfffb39767d72a869ef2441
14,918
py
Python
SimulationCode/ErgodicHarvestingLib/ergodic.py
MacIver-Lab/Ergodic-Information-Harvesting
6b06033852d511c682f1a38d84d6c3e0d735659b
[ "MIT" ]
4
2018-06-29T18:41:14.000Z
2021-03-16T06:08:46.000Z
SimulationCode/ErgodicHarvestingLib/ergodic.py
MacIver-Lab/Ergodic-Information-Harvesting
6b06033852d511c682f1a38d84d6c3e0d735659b
[ "MIT" ]
10
2018-05-10T21:42:20.000Z
2019-03-10T20:48:46.000Z
SimulationCode/ErgodicHarvestingLib/ergodic.py
MacIver-Lab/Ergodic-Information-Harvesting
6b06033852d511c682f1a38d84d6c3e0d735659b
[ "MIT" ]
3
2019-02-18T02:32:06.000Z
2021-04-07T02:55:06.000Z
# -*- coding: utf-8 -*- import numpy as np from scipy.integrate import trapz, quad, solve_ivp from scipy.interpolate import interp1d from ErgodicHarvestingLib.utils import matmult class ProjectionBasedOpt(object): def __init__(self, nx, nu, R, time, Quinit): """ Class to represent an optimization...
33.004425
89
0.538946
846018c5cfa73ee055f5d358666e2cc3b1c9ef14
89,646
py
Python
sympy/core/tests/test_wester.py
lelegan/sympy
ce020cf4ae1e741a99da74172c930de5affe583f
[ "BSD-3-Clause" ]
1
2020-05-20T08:20:50.000Z
2020-05-20T08:20:50.000Z
sympy/core/tests/test_wester.py
lelegan/sympy
ce020cf4ae1e741a99da74172c930de5affe583f
[ "BSD-3-Clause" ]
null
null
null
sympy/core/tests/test_wester.py
lelegan/sympy
ce020cf4ae1e741a99da74172c930de5affe583f
[ "BSD-3-Clause" ]
null
null
null
""" Tests from Michael Wester's 1999 paper "Review of CAS mathematical capabilities". http://www.math.unm.edu/~wester/cas/book/Wester.pdf See also http://math.unm.edu/~wester/cas_review.html for detailed output of each tested system. """ from sympy import (Rational, symbols, factorial, sqrt, log, exp, oo, zoo, pr...
30.224545
285
0.485008
74bace823b9ce189ed4b74d75c92b13308e32dd9
3,511
py
Python
GetStarted/07_image_statistics.py
pberezina/earthengine-py-notebooks
4cbe3c52bcc9ed3f1337bf097aa5799442991a5e
[ "MIT" ]
1
2020-03-20T19:39:34.000Z
2020-03-20T19:39:34.000Z
GetStarted/07_image_statistics.py
pberezina/earthengine-py-notebooks
4cbe3c52bcc9ed3f1337bf097aa5799442991a5e
[ "MIT" ]
null
null
null
GetStarted/07_image_statistics.py
pberezina/earthengine-py-notebooks
4cbe3c52bcc9ed3f1337bf097aa5799442991a5e
[ "MIT" ]
null
null
null
''' <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/GetStarted/07_image_statistics.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a target="_b...
36.572917
422
0.72458
b29a22b0604a2cd8de1df862748ea730f5b9e8c6
12,593
py
Python
{{cookiecutter.project_slug}}/config/settings/production.py
gogobody/cookiecutter-django
9cd0ee0272f99e2e2619d98c1cb975a74a557400
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/config/settings/production.py
gogobody/cookiecutter-django
9cd0ee0272f99e2e2619d98c1cb975a74a557400
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/config/settings/production.py
gogobody/cookiecutter-django
9cd0ee0272f99e2e2619d98c1cb975a74a557400
[ "BSD-3-Clause" ]
null
null
null
import logging from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env('DJANGO_SECRET_KEY') # https://docs.djangoproject.com/en/dev/ref/settings/#allow...
40.622581
106
0.605813
050db85bab7a58f60a65d97afcab0b790e19b6df
2,345
py
Python
nbviewer/tests/test_format_slides.py
SylvainCorlay/nbviewer
3e187a7531060c924991f05555026142a5e53996
[ "BSD-3-Clause-Clear" ]
1
2020-04-01T07:17:27.000Z
2020-04-01T07:17:27.000Z
nbviewer/tests/test_format_slides.py
SylvainCorlay/nbviewer
3e187a7531060c924991f05555026142a5e53996
[ "BSD-3-Clause-Clear" ]
null
null
null
nbviewer/tests/test_format_slides.py
SylvainCorlay/nbviewer
3e187a7531060c924991f05555026142a5e53996
[ "BSD-3-Clause-Clear" ]
2
2017-04-09T08:18:58.000Z
2019-10-13T13:01:26.000Z
#----------------------------------------------------------------------------- # Copyright (C) 2013 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #-----------------------------------------------------...
36.076923
85
0.620469
85909567e8818eab96dbc4e5e63d79959e7db37b
23,749
py
Python
yt/frontends/art/io.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/frontends/art/io.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/frontends/art/io.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
import os import os.path from collections import defaultdict from functools import partial import numpy as np from yt.frontends.art.definitions import ( hydro_struct, particle_fields, particle_star_fields, star_struct, ) from yt.units.yt_array import YTArray, YTQuantity from yt.utilities.fortran_utils...
36.037936
88
0.551392
ae64bc40689576263cfc1c320a3e757c7e1cf74c
133
py
Python
modules/2.79/bpy/types/CompositorNodeDistanceMatte.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/CompositorNodeDistanceMatte.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/CompositorNodeDistanceMatte.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
class CompositorNodeDistanceMatte: channel = None falloff = None tolerance = None def update(self): pass
12.090909
34
0.631579
f5d7b57fc9682071de6f7d8163fadda5bef0d911
1,927
py
Python
Base/Recommender_utils_Test.py
marcomussi/RecommenderSystemPolimi
ce45b1eee2231abe1a844697648e94b98dadabea
[ "MIT" ]
null
null
null
Base/Recommender_utils_Test.py
marcomussi/RecommenderSystemPolimi
ce45b1eee2231abe1a844697648e94b98dadabea
[ "MIT" ]
null
null
null
Base/Recommender_utils_Test.py
marcomussi/RecommenderSystemPolimi
ce45b1eee2231abe1a844697648e94b98dadabea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on 30/09/17 @author: Maurizio Ferrari Dacrema """ from Base.Recommender_utils import similarityMatrixTopK import numpy as np import scipy.sparse as sps import unittest class MyTestCase(unittest.TestCase): def test_similarityMatrixTopK_denseToDense(sel...
27.140845
107
0.714063
f6f5e693b2fb5437959fb9c05bbfde8d850a9767
587
py
Python
Backend/autonomus/utils/events_export.py
IrinaMBejan/Autonom
4a97da1b26ed22e3ec8bb939359148765392b692
[ "MIT" ]
2
2019-03-08T10:04:35.000Z
2020-03-14T15:24:56.000Z
Backend/autonomus/utils/events_export.py
IrinaMBejan/Autonom
4a97da1b26ed22e3ec8bb939359148765392b692
[ "MIT" ]
null
null
null
Backend/autonomus/utils/events_export.py
IrinaMBejan/Autonom
4a97da1b26ed22e3ec8bb939359148765392b692
[ "MIT" ]
2
2019-03-16T14:47:36.000Z
2020-04-28T14:09:45.000Z
from ics import Calendar, Event from autonomus.controllers import get_user_events import csv def export_events_ical(events): calendar = Calendar() for event_key in events: event = event_key.get() if event is None: continue e = Event() e.name = event.title ...
20.241379
49
0.640545
ccc4ac19293339584901e5cb928a0df85bd1389c
1,656
py
Python
validation_functions.py
MrHellYea/Art-Gallery-SQL
6e56ee18eb5dc0d2f4efa2fbaf01d887ed808dbf
[ "MIT" ]
null
null
null
validation_functions.py
MrHellYea/Art-Gallery-SQL
6e56ee18eb5dc0d2f4efa2fbaf01d887ed808dbf
[ "MIT" ]
null
null
null
validation_functions.py
MrHellYea/Art-Gallery-SQL
6e56ee18eb5dc0d2f4efa2fbaf01d887ed808dbf
[ "MIT" ]
null
null
null
from typing import Callable, Optional from generic_functions import * def is_num(num: str) -> bool: try: float(num) except ValueError: return False return True def is_not_empty(text: str) -> bool: if text == "": return False return True def validate_input(...
23.657143
93
0.544686
3453a405a99dce380533e6518a8d6cedd73c1b6f
3,690
py
Python
src/manager/om/script/gspylib/os/gssysctl.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
1
2020-06-30T15:00:50.000Z
2020-06-30T15:00:50.000Z
src/manager/om/script/gspylib/os/gssysctl.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
src/manager/om/script/gspylib/os/gssysctl.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms # and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE...
35.825243
78
0.507317
1dc9153648e8a531e2499fe2504a9dafee77369f
1,112
py
Python
setup.py
mverleg/fenpei
2142e4fe4a1e2897d8d8185ef4b86adc7323e1eb
[ "BSD-3-Clause" ]
null
null
null
setup.py
mverleg/fenpei
2142e4fe4a1e2897d8d8185ef4b86adc7323e1eb
[ "BSD-3-Clause" ]
2
2016-11-17T12:10:36.000Z
2017-02-08T09:06:37.000Z
setup.py
mverleg/fenpei
2142e4fe4a1e2897d8d8185ef4b86adc7323e1eb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup with open('README.rst', 'r') as fh: readme = fh.read() setup( name='fenpei', description='Distribution of tasks.', long_description=readme, url='https://github.com/mverleg/fenpei', author='Mark V', maintainer='(the author)', author_email='mdilligaf@gmail....
25.272727
65
0.668165
083d4666dc4b562ab9bb9b17850d35c230094b58
166
py
Python
daemon/config.py
T1duS/ccextractor-web
73e704640d13c9b5d84ae2e8bc5bdcf352caaa75
[ "MIT" ]
19
2018-05-18T13:55:54.000Z
2019-10-26T10:08:45.000Z
daemon/config.py
T1duS/ccextractor-web
73e704640d13c9b5d84ae2e8bc5bdcf352caaa75
[ "MIT" ]
23
2018-06-04T07:10:15.000Z
2019-10-27T18:45:21.000Z
daemon/config.py
T1duS/ccextractor-web
73e704640d13c9b5d84ae2e8bc5bdcf352caaa75
[ "MIT" ]
21
2018-07-07T07:54:12.000Z
2020-11-24T14:35:27.000Z
LOG_FILE_EXTENSION = '.log' RETRY_TIME = 5 """ LOG_LEVEL possible values : CRITICAL ERROR WARNING INFO DEBUG NOTSET """ LOG_LEVEL = "DEBUG" LOG_FILE_DIR = "logs/"
9.764706
27
0.722892
fd867da2e476053154b67356cb5fccffafc472eb
117
py
Python
python/__init__.py
Red-Eyed/sky_watcher_focuser_control
5d54aa79f6da7569e1200803d623f850097228d8
[ "MIT" ]
null
null
null
python/__init__.py
Red-Eyed/sky_watcher_focuser_control
5d54aa79f6da7569e1200803d623f850097228d8
[ "MIT" ]
null
null
null
python/__init__.py
Red-Eyed/sky_watcher_focuser_control
5d54aa79f6da7569e1200803d623f850097228d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Vadym Stupakov" __email__ = "vadim.stupakov@gmail.com"
19.5
38
0.675214
ca3e713122a8b0abce41685029c84f73e2dc3ea0
1,108
py
Python
970.py
OmangRawat/Leetcode
6fa696367ef9c5e6b08940b11e2202382d1afc07
[ "MIT" ]
null
null
null
970.py
OmangRawat/Leetcode
6fa696367ef9c5e6b08940b11e2202382d1afc07
[ "MIT" ]
null
null
null
970.py
OmangRawat/Leetcode
6fa696367ef9c5e6b08940b11e2202382d1afc07
[ "MIT" ]
null
null
null
""" ---> Powerful Integers ---> Medium """ class Solution: def powerful_integers(self, x, y, bound): a, b, i, ans = 0, 0, 0, set() x_pow, y_pow = [], [] if x == 1: if bound != 0: x_pow.append(1) a = 1 if y == 1: if bound != 0: ...
19.438596
106
0.393502
0506ea92800610828bdd5183498361f755185bf4
5,456
py
Python
doc/moveit_cpp/launch/moveit_cpp_tutorial.launch.py
TiejunMS/moveit2_tutorials
01a8041342e9a47a27b540f12f8bbf315e31a2c2
[ "BSD-3-Clause" ]
22
2021-03-05T08:31:35.000Z
2022-03-27T11:31:36.000Z
doc/moveit_cpp/launch/moveit_cpp_tutorial.launch.py
vatanaksoytezer/moveit2_tutorials
01a8041342e9a47a27b540f12f8bbf315e31a2c2
[ "BSD-3-Clause" ]
207
2021-02-04T19:42:04.000Z
2022-03-29T14:58:10.000Z
doc/moveit_cpp/launch/moveit_cpp_tutorial.launch.py
vatanaksoytezer/moveit2_tutorials
01a8041342e9a47a27b540f12f8bbf315e31a2c2
[ "BSD-3-Clause" ]
62
2021-02-07T14:12:19.000Z
2022-03-27T07:51:16.000Z
import os import yaml from launch import LaunchDescription from launch_ros.actions import Node from launch.actions import ExecuteProcess from ament_index_python.packages import get_package_share_directory import xacro def load_file(package_name, file_path): package_path = get_package_share_directory(package_name)...
32.47619
325
0.670455
470fad1b2f830d6bab07a4d02eb76e4cb45bae64
5,623
py
Python
test/integration/ggrc_workflows/converters/test_export_cycle_task_group_object_tasks.py
HLD/ggrc-core
9bdc0fc6ca9e252f4919db682d80e360d5581eb4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc_workflows/converters/test_export_cycle_task_group_object_tasks.py
HLD/ggrc-core
9bdc0fc6ca9e252f4919db682d80e360d5581eb4
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
test/integration/ggrc_workflows/converters/test_export_cycle_task_group_object_tasks.py
HLD/ggrc-core
9bdc0fc6ca9e252f4919db682d80e360d5581eb4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 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 from ddt import data, ddt, unpack from integration.ggrc_workflows.models import factories from integration.ggrc.models...
35.588608
78
0.67793
5ef4d9e1348f49542ba726f0ce0ba57a36151949
173
py
Python
app/__init__.py
abcnever/tensorflow_som_colours
d487bd7f8570c2962ef1003b610731d5cef64124
[ "MIT" ]
null
null
null
app/__init__.py
abcnever/tensorflow_som_colours
d487bd7f8570c2962ef1003b610731d5cef64124
[ "MIT" ]
null
null
null
app/__init__.py
abcnever/tensorflow_som_colours
d487bd7f8570c2962ef1003b610731d5cef64124
[ "MIT" ]
null
null
null
from flask import Flask from flask_cors import CORS app = Flask(__name__) CORS(app) # needed for cross-domain requests, allow everything by default from app import routes
21.625
73
0.797688
40f628a6ef911305a058230682dc3c57fa567893
5,053
py
Python
migrations/0001_initial.py
catalpainternational/riotjs-gettext
2f9ac7682a0af4f22b339d8af20a3dbd6e76eb27
[ "BSD-3-Clause" ]
null
null
null
migrations/0001_initial.py
catalpainternational/riotjs-gettext
2f9ac7682a0af4f22b339d8af20a3dbd6e76eb27
[ "BSD-3-Clause" ]
null
null
null
migrations/0001_initial.py
catalpainternational/riotjs-gettext
2f9ac7682a0af4f22b339d8af20a3dbd6e76eb27
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-02 04:43 import django.contrib.postgres.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="Trans...
33.686667
88
0.348506
1a19ca0c3b8eef89d3290fa4bbf0cba32651942e
12,600
py
Python
examples/pwr_run/checkpointing/jobs_max_pwr/main.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/jobs_max_pwr/main.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/jobs_max_pwr/main.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
import pdb import time import os import subprocess import re import random import json import numpy as np import glob from tensorboard.backend.event_processing.event_accumulator import EventAccumulator queue = [49, 15, 50, 39, 14, 40, 13, 37, 32, 44, 1, 25, 6, 12, 43, 35, 29, 7, 46, 23, 47, 34, 21, 33, 36, 24, 28, 48,...
37.5
199
0.585317
3e4ecbf52ac23d8cce5e68a342d97d8af521c887
560
py
Python
threshold_value/migrations/0003_auto_20141030_1047.py
sigurdsa/angelika-api
df594ecf34c29ab94d424a0697d77157a50c3500
[ "MIT" ]
2
2015-01-30T09:38:45.000Z
2018-02-12T09:38:11.000Z
threshold_value/migrations/0003_auto_20141030_1047.py
sigurdsa/angelika-api
df594ecf34c29ab94d424a0697d77157a50c3500
[ "MIT" ]
null
null
null
threshold_value/migrations/0003_auto_20141030_1047.py
sigurdsa/angelika-api
df594ecf34c29ab94d424a0697d77157a50c3500
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('threshold_value', '0002_auto_20141030_1044'), ] operations = [ migrations.AlterField( model_name='thresholdvalue...
26.666667
145
0.651786
63afcff33e5a63208fa5cd00a3fffb8225c4b4a8
5,754
py
Python
subtract.negatives.count.table.py
tbj128/mothur-microbiome-scripts
1a75b309ca2e22152c7cbf0fb6c0ad5beb340ad6
[ "MIT" ]
null
null
null
subtract.negatives.count.table.py
tbj128/mothur-microbiome-scripts
1a75b309ca2e22152c7cbf0fb6c0ad5beb340ad6
[ "MIT" ]
null
null
null
subtract.negatives.count.table.py
tbj128/mothur-microbiome-scripts
1a75b309ca2e22152c7cbf0fb6c0ad5beb340ad6
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import csv import sys import os import processing as ps COUNT_TABLE_SEQUENCE_COL = 0 COUNT_TABLE_SAMPLE_START_COL = 2 sampleIDCol = 0 diseaseCol = 1 batchCol = 2 if len(sys.argv) != 5: print(("Usage: python " + sys.argv[0] + " [.count_tabl...
27.014085
130
0.665798
912a8b0e2ca6ebfee10024254fbdb67fad11443a
637
py
Python
sdk/python/pulumi_aws_native/redshift/__init__.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/redshift/__init__.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/redshift/__init__.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from .. import _utilities import typing # Export this package's modules as members: from ._enums import * from .cluster import * from .cluster_paramete...
31.85
80
0.77551
28f6acc0d24d16e625f14f538a4fa2bc214bda6b
2,395
py
Python
applications/experimental/pipelines/pipelines/nodes/other/docs2answers.py
SunYanCN/PaddleNLP
31deea6c989f399b4552ee711d9f7d62768d645f
[ "Apache-2.0" ]
null
null
null
applications/experimental/pipelines/pipelines/nodes/other/docs2answers.py
SunYanCN/PaddleNLP
31deea6c989f399b4552ee711d9f7d62768d645f
[ "Apache-2.0" ]
null
null
null
applications/experimental/pipelines/pipelines/nodes/other/docs2answers.py
SunYanCN/PaddleNLP
31deea6c989f399b4552ee711d9f7d62768d645f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # Copyright 2021 deepset GmbH. 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.o...
35.746269
93
0.582463
d5b490b242457540e49c41ea2a789a039cf53e6b
2,402
py
Python
cirq-core/cirq/testing/consistent_pauli_expansion_test.py
BearerPipelineTest/Cirq
e00767a2ef1233e82e9089cf3801a77e4cc3aea3
[ "Apache-2.0" ]
1
2022-02-05T22:17:39.000Z
2022-02-05T22:17:39.000Z
cirq-core/cirq/testing/consistent_pauli_expansion_test.py
BearerPipelineTest/Cirq
e00767a2ef1233e82e9089cf3801a77e4cc3aea3
[ "Apache-2.0" ]
4
2022-01-16T14:12:15.000Z
2022-02-24T03:58:46.000Z
cirq-core/cirq/testing/consistent_pauli_expansion_test.py
Nexuscompute/Cirq
640ef8f82d6a56ec95361388ce7976e096cca906
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
35.850746
100
0.715654
9536957ecc1f0990019f1aed83fad074631c2dd5
26,218
py
Python
Tests/ML/visualizers/test_plot_cross_validation.py
albernsurya/InnerEye-DeepLearning
62ed6aace84c451a20c4e546f88987454c1bf4bd
[ "MIT" ]
1
2021-07-03T14:05:17.000Z
2021-07-03T14:05:17.000Z
Tests/ML/visualizers/test_plot_cross_validation.py
albernsrya/InnerEye-DeepLearning
420fb1d452d7834d2c0a79c7bdc711ec16509680
[ "MIT" ]
null
null
null
Tests/ML/visualizers/test_plot_cross_validation.py
albernsrya/InnerEye-DeepLearning
420fb1d452d7834d2c0a79c7bdc711ec16509680
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
52.858871
135
0.723511
91935c47b776cba919f1fba89a36002aef21670e
33,346
py
Python
tests/pyfilter/operations/test_ipoverrides.py
Hengle/Houdini-Toolbox
a1fd7d3dd73d3fc4cea78e29aeff1d190c41bae3
[ "MIT" ]
136
2015-01-03T04:03:23.000Z
2022-02-07T11:08:57.000Z
tests/pyfilter/operations/test_ipoverrides.py
Hengle/Houdini-Toolbox
a1fd7d3dd73d3fc4cea78e29aeff1d190c41bae3
[ "MIT" ]
11
2017-02-09T20:05:04.000Z
2021-01-24T22:25:59.000Z
tests/pyfilter/operations/test_ipoverrides.py
Hengle/Houdini-Toolbox
a1fd7d3dd73d3fc4cea78e29aeff1d190c41bae3
[ "MIT" ]
26
2015-08-18T12:11:02.000Z
2020-12-19T01:53:31.000Z
"""Test the ht.pyfilter.operations.ipoverrides module.""" # ============================================================================= # IMPORTS # ============================================================================= # Standard Library import argparse import copy # Third Party import pytest # Houdini Too...
33.1801
166
0.640137
7552489daa3307779c988a1f9c7667facf284ff0
1,661
py
Python
docs/source/examples/3/sample.py
kumar-pratik/hi-ml
a108cf4ea244a76127adedc0ca60f0a5afdfb3e8
[ "MIT" ]
34
2021-08-18T13:27:36.000Z
2022-03-26T01:25:36.000Z
docs/source/examples/3/sample.py
kumar-pratik/hi-ml
a108cf4ea244a76127adedc0ca60f0a5afdfb3e8
[ "MIT" ]
111
2021-08-18T13:19:46.000Z
2022-03-30T05:57:01.000Z
docs/source/examples/3/sample.py
kumar-pratik/hi-ml
a108cf4ea244a76127adedc0ca60f0a5afdfb3e8
[ "MIT" ]
6
2021-09-13T12:07:58.000Z
2022-03-24T16:31:06.000Z
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
33.897959
116
0.585792
237cfacb65fb9d85dc75dc9c975c8a47b0e11161
14,190
py
Python
mpf/core/device_manager.py
Briedis1975/mpf
99a2d72f84537cb5dae8ef9a783bd885b25a5adb
[ "MIT" ]
null
null
null
mpf/core/device_manager.py
Briedis1975/mpf
99a2d72f84537cb5dae8ef9a783bd885b25a5adb
[ "MIT" ]
null
null
null
mpf/core/device_manager.py
Briedis1975/mpf
99a2d72f84537cb5dae8ef9a783bd885b25a5adb
[ "MIT" ]
null
null
null
"""Contains the DeviceManager base class.""" import asyncio from collections import OrderedDict from typing import Callable, Tuple, List, Generator from mpf.core.utility_functions import Util from mpf.core.mpf_controller import MpfController MYPY = False if MYPY: # pragma: no cover from mpf.core.device import ...
38.876712
119
0.586963
c52eb626ce771b2d17ac43b40851f6c3f02ed8c9
204
py
Python
utils.py
sourcery-ai-bot/quinread
7d90fd8e2ba8eec53654b3fa57c230657683f044
[ "MIT" ]
6
2021-10-09T07:19:41.000Z
2021-12-05T05:16:25.000Z
utils.py
sourcery-ai-bot/quinread
7d90fd8e2ba8eec53654b3fa57c230657683f044
[ "MIT" ]
5
2021-11-13T15:34:53.000Z
2021-11-28T18:07:10.000Z
utils.py
TheQuinbox/quinread
b1c5c0cbfdf866df51a04942d7f7f2dc36f4cc9a
[ "MIT" ]
null
null
null
def plural(number, singular, multiple): return singular if number in [1, -1] else multiple def count_words(content): word_list = content.split(" ") count = len(word_list) del word_list return count
22.666667
51
0.740196
c84e356c90df591b59aaf5570aa77ba2a50f5af8
2,063
py
Python
py12306/log/order_log.py
chenfengfeng/py12306
532e1656883362fdaa21fd443c906cf84f4a4ae2
[ "Apache-2.0" ]
2
2019-01-18T02:04:19.000Z
2019-01-18T02:04:22.000Z
py12306/log/order_log.py
robram9572/py12306
9b7f16d60a8ddf28803cfb40ff4ef93d7a35517f
[ "Apache-2.0" ]
null
null
null
py12306/log/order_log.py
robram9572/py12306
9b7f16d60a8ddf28803cfb40ff4ef93d7a35517f
[ "Apache-2.0" ]
1
2019-01-22T01:59:11.000Z
2019-01-22T01:59:11.000Z
from py12306.log.base import BaseLog from py12306.helpers.func import * @singleton class OrderLog(BaseLog): # 这里如果不声明,会出现重复打印,目前不知道什么原因 logs = [] thread_logs = {} quick_log = [] MESSAGE_REQUEST_INIT_DC_PAGE_FAIL = '请求初始化订单页面失败' MESSAGE_SUBMIT_ORDER_REQUEST_FAIL = '提交订单失败,错误原因 {} \n' MESS...
36.839286
109
0.712555
fc1f7f2d13ce9d7cdaf3bf5458e7dd73baff0b3e
445
py
Python
super_detector/migrations/0002_auto_20170611_0628.py
nagendraksrivastava/fake-product-detector-backend
e851481480368ecf9f7907700d6e03a0dc40c43e
[ "Unlicense", "MIT" ]
1
2020-10-21T08:58:06.000Z
2020-10-21T08:58:06.000Z
super_detector/migrations/0002_auto_20170611_0628.py
nagendraksrivastava/fake-product-detector-backend
e851481480368ecf9f7907700d6e03a0dc40c43e
[ "Unlicense", "MIT" ]
null
null
null
super_detector/migrations/0002_auto_20170611_0628.py
nagendraksrivastava/fake-product-detector-backend
e851481480368ecf9f7907700d6e03a0dc40c43e
[ "Unlicense", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-06-11 06:28 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('super_detector', '0001_initial'), ] operations = [ migrations.AlterField( ...
21.190476
49
0.613483
deeda51f96dddb7deef0d64045789c65127882f3
3,105
py
Python
lanenet/model/model.py
thanit456/pytorch-lanenet
4c5b2747e2b608ebfc5f0edff3601e34610e0029
[ "MIT" ]
null
null
null
lanenet/model/model.py
thanit456/pytorch-lanenet
4c5b2747e2b608ebfc5f0edff3601e34610e0029
[ "MIT" ]
null
null
null
lanenet/model/model.py
thanit456/pytorch-lanenet
4c5b2747e2b608ebfc5f0edff3601e34610e0029
[ "MIT" ]
null
null
null
# coding: utf-8 """ LaneNet model https://arxiv.org/pdf/1807.01726.pdf """ import torch import torch.nn as nn import torch.nn.functional as F from .loss import DiscriminativeLoss from .encoders import VGGEncoder from .decoders import FCNDecoder DEVICE = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu') ...
34.120879
117
0.654428
0f99b82fcbf25b718ef2beb1399a2e64565a54d9
2,263
py
Python
rino/utils.py
rinocloud/rino
34d4d6eb697f501c6ab8aa5d41a9435529342da6
[ "MIT" ]
null
null
null
rino/utils.py
rinocloud/rino
34d4d6eb697f501c6ab8aa5d41a9435529342da6
[ "MIT" ]
null
null
null
rino/utils.py
rinocloud/rino
34d4d6eb697f501c6ab8aa5d41a9435529342da6
[ "MIT" ]
null
null
null
from git import Repo from git.exc import InvalidGitRepositoryError import os import json import click import requests def get_rino_folder(rinocloud, path): headers = { 'Authorization': 'Token %s' % rinocloud.api_key, 'X-Requested-With': 'XMLHttpRequest' } try: return requests.post(...
26.623529
116
0.626602
1612882091e906b5d29715bd2dd0747546746ae0
1,686
py
Python
cirq/testing/deprecation.py
nlbao/Cirq
142507d08f0548f460616af1d0b76a35f0f1b07e
[ "Apache-2.0" ]
null
null
null
cirq/testing/deprecation.py
nlbao/Cirq
142507d08f0548f460616af1d0b76a35f0f1b07e
[ "Apache-2.0" ]
null
null
null
cirq/testing/deprecation.py
nlbao/Cirq
142507d08f0548f460616af1d0b76a35f0f1b07e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
38.318182
99
0.729537
7480f20e0bba775ab02a9b178bb4e49f993c62a3
1,106
py
Python
mylights.py
brettonw/mywizlight
d619bf3398c1f3dc3c3e0cef7be9aeea0ac197ca
[ "MIT" ]
null
null
null
mylights.py
brettonw/mywizlight
d619bf3398c1f3dc3c3e0cef7be9aeea0ac197ca
[ "MIT" ]
null
null
null
mylights.py
brettonw/mywizlight
d619bf3398c1f3dc3c3e0cef7be9aeea0ac197ca
[ "MIT" ]
null
null
null
import sys; from pywizlight.bulb import PilotBuilder, PilotParser, wizlight lightIpsByName = { "office": "192.168.1.217", "nook": "192.168.1.230", "nook": "192.168.1.230", "nook": "192.168.1.230", "nook": "192.168.1.230", "nook": "192.168.1.230", "nook": "192.168.1.230", "no...
29.105263
63
0.563291
063d34250c2508fff47d0257c9d5c6c6b9bb3f42
3,478
py
Python
tests/redical-tests.py
atatsu/redical
2c8128e58214ae3ab717addfb358b2c6e9ed2297
[ "BSD-3-Clause" ]
null
null
null
tests/redical-tests.py
atatsu/redical
2c8128e58214ae3ab717addfb358b2c6e9ed2297
[ "BSD-3-Clause" ]
null
null
null
tests/redical-tests.py
atatsu/redical
2c8128e58214ae3ab717addfb358b2c6e9ed2297
[ "BSD-3-Clause" ]
null
null
null
import asyncio import pytest from redical import create_redical, PipelineError, TransactionError, WatchError pytestmark = [pytest.mark.asyncio] # There will probably be a lot of duplicated tests here (specifically # test cases pulled straight from the connection-specific and pool-specific # tests) to ensure the "hi...
27.385827
87
0.691777
0305a6233e566c66adf8a317bf8cfd5a08ef71ac
1,147
py
Python
pdm/cli/commands/sync.py
frafra/pdm
12c5c4f91bbb7260be7d93f3e3914ba708309032
[ "MIT" ]
1
2021-12-16T07:22:47.000Z
2021-12-16T07:22:47.000Z
pdm/cli/commands/sync.py
frafra/pdm
12c5c4f91bbb7260be7d93f3e3914ba708309032
[ "MIT" ]
2
2021-05-01T11:43:58.000Z
2021-05-03T17:52:57.000Z
pdm/cli/commands/sync.py
frafra/pdm
12c5c4f91bbb7260be7d93f3e3914ba708309032
[ "MIT" ]
null
null
null
import argparse from pdm.cli import actions from pdm.cli.commands.base import BaseCommand from pdm.cli.options import clean_group, dry_run_option, groups_group, install_group from pdm.project import Project class Command(BaseCommand): """Synchronize the current working set with lock file""" def add_argument...
31.861111
84
0.648649
fd8187243c017abf478dc25fdce5b549c92430d1
12,875
py
Python
src/transformers/training_args_tf.py
johntiger1/transformers
38fadb6faf30c103531fa5fcd52b3f110e7582d0
[ "Apache-2.0" ]
6
2021-08-20T03:14:08.000Z
2021-11-14T18:31:51.000Z
src/transformers/training_args_tf.py
johntiger1/transformers
38fadb6faf30c103531fa5fcd52b3f110e7582d0
[ "Apache-2.0" ]
2
2022-01-13T04:20:10.000Z
2022-03-12T01:04:07.000Z
src/transformers/training_args_tf.py
johntiger1/transformers
38fadb6faf30c103531fa5fcd52b3f110e7582d0
[ "Apache-2.0" ]
3
2021-09-19T08:20:42.000Z
2022-02-19T16:32:40.000Z
# Copyright 2020 The HuggingFace Team. 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 applicabl...
49.903101
137
0.647223
4cb72af6e34f22a26c5db62d4670fb0ee28bdf2d
302
py
Python
tests/test_core.py
wolfinger/pysurfline
f0c98ea06ce9f26f5ba9e3b94ac98963150f7ddc
[ "MIT" ]
null
null
null
tests/test_core.py
wolfinger/pysurfline
f0c98ea06ce9f26f5ba9e3b94ac98963150f7ddc
[ "MIT" ]
null
null
null
tests/test_core.py
wolfinger/pysurfline
f0c98ea06ce9f26f5ba9e3b94ac98963150f7ddc
[ "MIT" ]
1
2022-03-05T20:12:10.000Z
2022-03-05T20:12:10.000Z
""" test core classes. """ import pytest from pysurfline import URLBuilder def test_URLBuilder(): params={"spotId":"5842041f4e65fad6a7708890"} u=URLBuilder(type="wave",params=params) assert u.url == "https://services.surfline.com/kbyg/spots/forecasts/wave?spotId=5842041f4e65fad6a7708890"
27.454545
109
0.754967
35f90c3c6d648a57e5ed332bfc6270f26172d995
380
py
Python
notifications_plus/serializers.py
DjangoStudyTeam/django-notifications-plus
2c2516d9f99ec5210e45f09c79accaacbdd290fb
[ "MIT" ]
null
null
null
notifications_plus/serializers.py
DjangoStudyTeam/django-notifications-plus
2c2516d9f99ec5210e45f09c79accaacbdd290fb
[ "MIT" ]
null
null
null
notifications_plus/serializers.py
DjangoStudyTeam/django-notifications-plus
2c2516d9f99ec5210e45f09c79accaacbdd290fb
[ "MIT" ]
null
null
null
from rest_framework import serializers from notifications_plus import get_notification_model NotificationModel = get_notification_model() class NotificationListSerializer(serializers.ModelSerializer): class Meta: model = NotificationModel fields = [ "content", "unread", ...
22.352941
62
0.657895
dbba14ab37e13046716b902eac3d5451751e98f5
2,508
py
Python
guessingGameApp/views.py
marjohnson/w11D1-Django
630786c9f84f2c32a3d889cd965d3f5455d3f363
[ "MIT" ]
null
null
null
guessingGameApp/views.py
marjohnson/w11D1-Django
630786c9f84f2c32a3d889cd965d3f5455d3f363
[ "MIT" ]
null
null
null
guessingGameApp/views.py
marjohnson/w11D1-Django
630786c9f84f2c32a3d889cd965d3f5455d3f363
[ "MIT" ]
8
2021-04-12T23:45:38.000Z
2021-06-12T20:33:48.000Z
from django.shortcuts import render, redirect count = 1 FOOTER = { 'Created by Amazon Career Choice Houston Class', '© 2021' } def gameHome(request): context = { 'footer': FOOTER } return render(request, 'game.html', context) count = 1 request.session.flush() def clearGame(reques...
26.125
63
0.640351
1a6ab3c5b3915563f75ec67a8945e4ab095a3136
2,698
py
Python
mccole/check.py
gvwilson/mccole-old
5d724a64e7e91d39d72947798f5ee38bfdf96a23
[ "MIT" ]
1
2022-01-08T04:10:46.000Z
2022-01-08T04:10:46.000Z
mccole/check.py
gvwilson/mccole
5d724a64e7e91d39d72947798f5ee38bfdf96a23
[ "MIT" ]
43
2022-01-21T11:04:39.000Z
2022-02-11T21:11:54.000Z
mccole/check.py
gvwilson/mccole-old
5d724a64e7e91d39d72947798f5ee38bfdf96a23
[ "MIT" ]
1
2022-01-23T18:52:23.000Z
2022-01-23T18:52:23.000Z
"""Check consistency of project.""" import re MAX_CODE_LINES = 120 MAX_LINE_LENGTH = 120 def check(options, config, xref, seen): """Check various aspects of project.""" if "bib" in options.check: _check_bib(config, seen) if "code" in options.check: _check_code(config) if "gloss" in...
29.977778
111
0.547072
903ebffccda979ed92f3e639f32c5d904c45f3fd
399
py
Python
projawwards/wsgi.py
Kipkorir2017/Proj_Awwards
3b5f898b725e14f28448019f85306845ecefe3a2
[ "MIT" ]
null
null
null
projawwards/wsgi.py
Kipkorir2017/Proj_Awwards
3b5f898b725e14f28448019f85306845ecefe3a2
[ "MIT" ]
null
null
null
projawwards/wsgi.py
Kipkorir2017/Proj_Awwards
3b5f898b725e14f28448019f85306845ecefe3a2
[ "MIT" ]
null
null
null
""" WSGI config for projawwards project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
d04b7b3221080e4571c498d0128f2b158f5a0c0f
2,478
py
Python
get_strat_names.py
UW-Macrostrat/Global-Geologic-Units
a79c837a30d377b7e91805517f41f61902b9ef7a
[ "CC-BY-4.0" ]
2
2018-08-22T20:52:56.000Z
2021-01-28T04:40:18.000Z
get_strat_names.py
UW-Macrostrat/Global-Geologic-Units
a79c837a30d377b7e91805517f41f61902b9ef7a
[ "CC-BY-4.0" ]
null
null
null
get_strat_names.py
UW-Macrostrat/Global-Geologic-Units
a79c837a30d377b7e91805517f41f61902b9ef7a
[ "CC-BY-4.0" ]
2
2018-08-22T15:26:08.000Z
2018-09-19T16:27:18.000Z
# ===================================== # # get_strat_names.py # # JULIA WILCOTS # 08/21/18 # # assemble a list of geologic unit flag words ('Formation', 'Limestone') from Macrostrat. # Will use this list as flags in future global-geologic-units app. # ====================================== import urllib2, csv, sys...
30.219512
119
0.686441
551a3542462eb8238206bb2a2f94c2e79a4da211
1,893
py
Python
tests/test_hello.py
steingabelgaard/reportlab
b9a537e8386fb4b4b80e9ec89e0cdf392dbd6f61
[ "BSD-3-Clause" ]
55
2019-09-21T02:45:18.000Z
2021-12-10T13:38:51.000Z
tests/test_hello.py
cnauroth/reportlab
377d4ff58491dc6de48551e730c3d7f72db783e5
[ "BSD-3-Clause" ]
4
2019-09-26T03:16:50.000Z
2021-12-10T13:40:49.000Z
tests/test_hello.py
cnauroth/reportlab
377d4ff58491dc6de48551e730c3d7f72db783e5
[ "BSD-3-Clause" ]
26
2019-09-25T03:54:30.000Z
2022-03-21T14:03:12.000Z
#!/bin/env python #Copyright ReportLab Europe Ltd. 2000-2017 #see license.txt for license details __version__='3.3.0' __doc__="""most basic test possible that makes a PDF. Useful if you want to test that a really minimal PDF is healthy, since the output is about the smallest thing we can make.""" from reportlab.lib.te...
35.055556
145
0.684099
f8a5675594562c37abe362534dce20d4c8c301e2
1,942
py
Python
test/test4.py
Dolgalad/xsd2tkform
27f0d5bd1d9b6816982c18c45323ff7d1191efca
[ "MIT" ]
null
null
null
test/test4.py
Dolgalad/xsd2tkform
27f0d5bd1d9b6816982c18c45323ff7d1191efca
[ "MIT" ]
null
null
null
test/test4.py
Dolgalad/xsd2tkform
27f0d5bd1d9b6816982c18c45323ff7d1191efca
[ "MIT" ]
null
null
null
from xsd_complextype import XSDComplexTypeFrame from scrollframe import ScrollFrame from lxml import etree import tkinter as tk if __name__=="__main__": print("Testing complex types") # load the XSD schema xsd_schema = etree.parse("spase-2.3.1.xsd") # store all simple type definitions simple_t...
33.482759
121
0.660659
4eedbadf3d91cee9eca5013dbc56bc32b49d29a5
9,853
py
Python
Software/Python/grove_mini_motor_driver/grove_mini_motor_driver.py
rovercode/GrovePi
9fccb3cc339de073652a95caba33210aac1d70ec
[ "MIT" ]
null
null
null
Software/Python/grove_mini_motor_driver/grove_mini_motor_driver.py
rovercode/GrovePi
9fccb3cc339de073652a95caba33210aac1d70ec
[ "MIT" ]
null
null
null
Software/Python/grove_mini_motor_driver/grove_mini_motor_driver.py
rovercode/GrovePi
9fccb3cc339de073652a95caba33210aac1d70ec
[ "MIT" ]
null
null
null
from sys import platform import datetime # Library written for Python 3! left_channel = 0x60 right_channel = 0x62 # function for returning a SMBus object # checks the Rpi version before it selects the bus def getNewSMBus(): bus = None if platform == 'uwp': import winrt_smbus as smbus bus = s...
37.181132
105
0.653507
b4afe832b517c3067323a5b59a29cb1694ee27b7
6,904
py
Python
initial_report/report.py
maxhully/initial-report
6f38104639434f04b279baa231b31bb82cf4daf6
[ "MIT" ]
null
null
null
initial_report/report.py
maxhully/initial-report
6f38104639434f04b279baa231b31bb82cf4daf6
[ "MIT" ]
null
null
null
initial_report/report.py
maxhully/initial-report
6f38104639434f04b279baa231b31bb82cf4daf6
[ "MIT" ]
null
null
null
import itertools import math from collections import namedtuple import geopandas import pandas from networkx import connected_components import maup from gerrychain import Graph from maup.repair import holes_of_union from .plot import bar_chart, choropleth, graph_plot, histogram, overlap_plot class Report: def...
29.887446
94
0.539977
c326ff407e6a843a2e4c3484afcb6fecfd55391f
531
py
Python
src/pybind/feat/wave_reader_pybind_test.py
aadps/kaldi
cd351bb31c98f9d540c409478cbf2c5fef1853ca
[ "Apache-2.0" ]
null
null
null
src/pybind/feat/wave_reader_pybind_test.py
aadps/kaldi
cd351bb31c98f9d540c409478cbf2c5fef1853ca
[ "Apache-2.0" ]
null
null
null
src/pybind/feat/wave_reader_pybind_test.py
aadps/kaldi
cd351bb31c98f9d540c409478cbf2c5fef1853ca
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2019 Microsoft Corporation (author: Xingyu Na) # Apache 2.0 import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir)) import unittest import numpy as np import kaldi class TestWaveData(unittest.TestCase): def test_duration(self): ...
19.666667
71
0.713748
3a599dbb4f843064f5d58cee674f677fc56d771a
912
py
Python
src/pew/cache.py
dylanmccall/pyeverywhere
2b23b4a70d5b7b958716596688d9989afa024e8d
[ "Apache-2.0" ]
7
2016-06-08T22:18:44.000Z
2022-01-16T16:53:33.000Z
src/pew/cache.py
dylanmccall/pyeverywhere
2b23b4a70d5b7b958716596688d9989afa024e8d
[ "Apache-2.0" ]
21
2015-09-02T19:20:16.000Z
2021-10-24T00:44:29.000Z
src/pew/cache.py
dylanmccall/pyeverywhere
2b23b4a70d5b7b958716596688d9989afa024e8d
[ "Apache-2.0" ]
12
2018-04-24T02:54:33.000Z
2021-09-13T09:35:22.000Z
import logging import os import pickle import sys cache_filename = "app_data" if "--test" in sys.argv or ("PEW_RUN_TESTS" in os.environ and os.environ["PEW_RUN_TESTS"] == "1"): cache_filename += "_test" def set_cache_dir(cache_dir): global cache_filename cache_filename = os.path.join(cache_dir, os.path....
27.636364
108
0.664474
7151a415eef98c7eea726a4ee0eae6a387095d13
4,448
py
Python
examples/tensorflow/real_time.py
IanTBlack/picamera2
4d31a56cdb0d8360e71927e754fc6bef50bec360
[ "BSD-2-Clause" ]
71
2022-02-15T14:24:34.000Z
2022-03-29T16:36:46.000Z
examples/tensorflow/real_time.py
IanTBlack/picamera2
4d31a56cdb0d8360e71927e754fc6bef50bec360
[ "BSD-2-Clause" ]
37
2022-02-16T12:35:45.000Z
2022-03-31T13:18:42.000Z
examples/tensorflow/real_time.py
IanTBlack/picamera2
4d31a56cdb0d8360e71927e754fc6bef50bec360
[ "BSD-2-Clause" ]
15
2022-02-16T12:12:57.000Z
2022-03-31T15:17:58.000Z
#!/usr/bin/python3 # Copyright (c) 2022 Raspberry Pi Ltd # Author: Alasdair Allan <alasdair@raspberrypi.com> # SPDX-License-Identifier: BSD-3-Clause # A TensorFlow Lite example for Picamera2 on Raspberry Pi OS Bullseye # # Install necessary dependences before starting, # # $ sudo apt update # $ sudo apt install build...
29.263158
89
0.649955
eaab114f53cf572c31b92d9e0c2d5c3e04f1e052
2,275
py
Python
verbcalc/core/translator/numbers.py
LucaMellini/VerbCalc
fc87ae5d9dbc420fe644703febdbcb15a2da6e03
[ "BSD-3-Clause" ]
null
null
null
verbcalc/core/translator/numbers.py
LucaMellini/VerbCalc
fc87ae5d9dbc420fe644703febdbcb15a2da6e03
[ "BSD-3-Clause" ]
9
2021-12-06T10:28:59.000Z
2022-03-31T10:30:38.000Z
verbcalc/core/translator/numbers.py
LucaMellini/VerbCalc
fc87ae5d9dbc420fe644703febdbcb15a2da6e03
[ "BSD-3-Clause" ]
null
null
null
""" Handles literal numbers. """ class Numbers: """ This class will help translating any written number into its actual integer. Attributes: word_int_map: map the values in "units", "tens" and "scales" with their integer translation """ def __init__(self): self._units = ["zero", ...
28.08642
214
0.547692
e7d4fff9879266464cfbd4a34715de8e41e4daad
8,505
py
Python
src/iterative_training/utils/data_generators/base.py
Janowie/iterative_training
eb89c4e64a08b388f871cc975bc952fb8d26f58d
[ "MIT" ]
null
null
null
src/iterative_training/utils/data_generators/base.py
Janowie/iterative_training
eb89c4e64a08b388f871cc975bc952fb8d26f58d
[ "MIT" ]
null
null
null
src/iterative_training/utils/data_generators/base.py
Janowie/iterative_training
eb89c4e64a08b388f871cc975bc952fb8d26f58d
[ "MIT" ]
null
null
null
import typing import tensorflow as tf import numpy as np import pandas as pd import math from random import randint, sample class BaseDataGenerator(tf.keras.utils.Sequence): """ This class feeds training data to keras model. It does not generate new samples - this functionality is provided by other class...
36.818182
117
0.583186
e708e6f57ef4ef88525347d73d57db3e2e29314e
16,450
py
Python
setup.py
msbaines/apex
5633f6dbf7952026264e3aba42413f06752b0515
[ "BSD-3-Clause" ]
1
2022-01-02T19:36:53.000Z
2022-01-02T19:36:53.000Z
setup.py
msbaines/apex
5633f6dbf7952026264e3aba42413f06752b0515
[ "BSD-3-Clause" ]
null
null
null
setup.py
msbaines/apex
5633f6dbf7952026264e3aba42413f06752b0515
[ "BSD-3-Clause" ]
null
null
null
import torch from setuptools import setup, find_packages import subprocess import sys import warnings import os # ninja build does not work unless include_dirs are abs path this_dir = os.path.dirname(os.path.abspath(__file__)) if not torch.cuda.is_available(): # https://github.com/NVIDIA/apex/issues/486 # Ex...
58.333333
290
0.544802
e9858a6fe81738095c44a3b2cf122eabd21a8fc8
7,300
py
Python
packages/winpanda/extra/src/winpanda/core/package/manifest.py
sergiimatus/dcos
801b28dbeee83d615dbad08eed2ee1b80ef3b6e8
[ "Apache-2.0" ]
null
null
null
packages/winpanda/extra/src/winpanda/core/package/manifest.py
sergiimatus/dcos
801b28dbeee83d615dbad08eed2ee1b80ef3b6e8
[ "Apache-2.0" ]
null
null
null
packages/winpanda/extra/src/winpanda/core/package/manifest.py
sergiimatus/dcos
801b28dbeee83d615dbad08eed2ee1b80ef3b6e8
[ "Apache-2.0" ]
null
null
null
"""Panda package management for Windows. DC/OS package manifest type definition. """ import json from pathlib import Path from .id import PackageId from common import logger from common.storage import ISTOR_NODE, IStorNodes from core import exceptions as cr_exc from core.rc_ctx import ResourceContext from core import...
33.181818
79
0.583151
a8992d1fe53d14202610e6910fd801e8f9508ac8
123
py
Python
nullcompressor.py
greenteadigital/pycrypto
e6aa3bfbcf22e95fd15b710311b05e82bae8bdec
[ "MIT" ]
1
2015-10-26T16:25:55.000Z
2015-10-26T16:25:55.000Z
nullcompressor.py
greenteadigital/pycrypto
e6aa3bfbcf22e95fd15b710311b05e82bae8bdec
[ "MIT" ]
null
null
null
nullcompressor.py
greenteadigital/pycrypto
e6aa3bfbcf22e95fd15b710311b05e82bae8bdec
[ "MIT" ]
null
null
null
class NullCompressor(object): def __init__(self): self.__name__ = 'none' def compress(self, _input): return _input
15.375
29
0.723577
90fb6d550103fb886ef8fcb04d8a2de4b431ee49
21,654
py
Python
brewtils/test/fixtures.py
Jake-Ross/brewtils
bed6ab82dc354ea825a64e9e48a01a6479bf5060
[ "MIT" ]
null
null
null
brewtils/test/fixtures.py
Jake-Ross/brewtils
bed6ab82dc354ea825a64e9e48a01a6479bf5060
[ "MIT" ]
null
null
null
brewtils/test/fixtures.py
Jake-Ross/brewtils
bed6ab82dc354ea825a64e9e48a01a6479bf5060
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import copy from datetime import datetime import pytest import pytz from brewtils.models import ( Choices, Command, CronTrigger, DateTrigger, Event, Garden, Instance, IntervalTrigger, Job, LoggingConfig, Operation, Parameter, PatchOperation, ...
26.057762
88
0.622195
9a0906b745ab31c4fa50f9d5b804101e1d4b5c65
1,157
py
Python
centreonapi/centreon.py
jeromemartin/centreon-sdk-python
4ac5e1c4af71cc52f5edc13318a1aa96ebe5e9bb
[ "Apache-2.0" ]
1
2022-01-07T09:37:55.000Z
2022-01-07T09:37:55.000Z
centreonapi/centreon.py
jeromemartin/centreon-sdk-python
4ac5e1c4af71cc52f5edc13318a1aa96ebe5e9bb
[ "Apache-2.0" ]
null
null
null
centreonapi/centreon.py
jeromemartin/centreon-sdk-python
4ac5e1c4af71cc52f5edc13318a1aa96ebe5e9bb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from centreonapi.webservice.configuration.host import Hosts from centreonapi.webservice.configuration.host import HostTemplates from centreonapi.webservice.configuration.service import Services from centreonapi.webservice.configuration.service import ServiceTemplates from centreonapi.webservice...
36.15625
79
0.73898
48fde4671089c32269180a49d9c041c2db42ecc4
2,418
py
Python
share/qt/extract_strings_qt.py
trungnq1510/bitcoin
4702a08358f9996f2a40cb5cba03c9177d4d991f
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
trungnq1510/bitcoin
4702a08358f9996f2a40cb5cba03c9177d4d991f
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
trungnq1510/bitcoin
4702a08358f9996f2a40cb5cba03c9177d4d991f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2012-2019 The Bitnamicoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Extract _("...") strings for translation and convert to Qt stringdefs so that they can be picked u...
28.116279
105
0.631514
e61fba84208671c1dc139750e4ada7d2bd1fbe7a
1,039
py
Python
misc.py
AJAYK-01/Telegram_VC_Bot
970dc601fb636d76347eb8d17b12e198c91a5721
[ "MIT" ]
null
null
null
misc.py
AJAYK-01/Telegram_VC_Bot
970dc601fb636d76347eb8d17b12e198c91a5721
[ "MIT" ]
null
null
null
misc.py
AJAYK-01/Telegram_VC_Bot
970dc601fb636d76347eb8d17b12e198c91a5721
[ "MIT" ]
null
null
null
HELP_TEXT = """__**I Can Play Music In The Voice Chat**__ **/skip** __Skip The Current Playing Music.__ **/play** __Service_Or_Default (Services: youtube/saavn/deezer, Default: youtube) Song_Name | Reply_To_Audio__ **/joinvc** __Join Voice Chat.__ **/leavevc** __Leave Voice Chat.__ **/listvc** __List Joined Voice Chats...
45.173913
144
0.733397
e1c6131d5a6bb381386e87fb3da02d737fe1ca26
14,248
py
Python
timemory/profiler/profiler.py
mhaseeb123/timemory
815bb68edf8a36f309d43a911ef7e39da08ce5ae
[ "MIT" ]
null
null
null
timemory/profiler/profiler.py
mhaseeb123/timemory
815bb68edf8a36f309d43a911ef7e39da08ce5ae
[ "MIT" ]
null
null
null
timemory/profiler/profiler.py
mhaseeb123/timemory
815bb68edf8a36f309d43a911ef7e39da08ce5ae
[ "MIT" ]
null
null
null
#!@PYTHON_EXECUTABLE@ # # MIT License # # Copyright (c) 2018, The Regents of the University of California, # through Lawrence Berkeley National Laboratory (subject to receipt of any # required approvals from the U.S. Dept. of Energy). All rights reserved. # # Permission is hereby granted, free of charge, to any person...
31.87472
90
0.522108
d798939067d9834c6c6206a077b96cf5e7bbe11e
20,034
py
Python
VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/vtk/numpy_interface/internal_algorithms.py
jiaguobing/FastCAE
2348ab87e83fe5c704e4c998cf391229c25ac5d5
[ "BSD-3-Clause" ]
4
2016-03-30T14:31:52.000Z
2019-02-02T05:01:32.000Z
VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/vtk/numpy_interface/internal_algorithms.py
Sunqia/FastCAE
cbc023fe07b6e306ceefae8b8bd7c12bc1562acb
[ "BSD-3-Clause" ]
1
2020-03-06T04:49:42.000Z
2020-03-06T04:49:42.000Z
VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/vtk/numpy_interface/internal_algorithms.py
Sunqia/FastCAE
cbc023fe07b6e306ceefae8b8bd7c12bc1562acb
[ "BSD-3-Clause" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
from __future__ import absolute_import from . import dataset_adapter as dsa import numpy from vtk.util import numpy_support import vtk def _cell_derivatives (narray, dataset, attribute_type, filter): if not dataset : raise RuntimeError('Need a dataset to compute _cell_derivatives.') # Reshape...
37.1
103
0.659828