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
03e692c0758d2ec584c8e3e6cdbb92f988b76488
2,639
py
Python
python-scrambler.py
x44203/python-scrambler
d6a6be90591c693c7fff2c159bac0d29adac7b65
[ "MIT" ]
null
null
null
python-scrambler.py
x44203/python-scrambler
d6a6be90591c693c7fff2c159bac0d29adac7b65
[ "MIT" ]
null
null
null
python-scrambler.py
x44203/python-scrambler
d6a6be90591c693c7fff2c159bac0d29adac7b65
[ "MIT" ]
null
null
null
import sys from pathlib import Path import random import keyword import re if len(sys.argv) < 2: print("Usage: python python-scrambler.py input-file.py [output-file.py]") print("If no output file is given it will append _scrambled") exit() input_text = Path(sys.argv[1]).read_text() def getRandom(): r...
31.795181
99
0.732095
e339cfa0a6154f87bb05c27e1ec81fee9a8b1bc3
36,340
py
Python
python/ccxt/coss.py
rebekos/ccxt
5872dd4f1a578de468ff4dbd6d79685e4fe7f536
[ "MIT" ]
1
2019-06-24T07:20:05.000Z
2019-06-24T07:20:05.000Z
python/ccxt/coss.py
rebekos/ccxt
5872dd4f1a578de468ff4dbd6d79685e4fe7f536
[ "MIT" ]
2
2020-09-05T02:03:10.000Z
2021-05-09T08:22:40.000Z
python/ccxt/coss.py
rebekos/ccxt
5872dd4f1a578de468ff4dbd6d79685e4fe7f536
[ "MIT" ]
1
2019-06-24T07:31:27.000Z
2019-06-24T07:31:27.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import math from ccxt.base.errors import ArgumentsRequired class coss (Exchange): def descri...
41.295455
126
0.425619
19362202d5b6c9f4b7f1f2e81f030d1f0d5b5320
3,822
py
Python
pulsar/managers/util/cli/job/torque.py
nuwang/pulsar
ccebb1563c8f8eaca0505ed168920d8121bd8a1e
[ "Apache-2.0" ]
null
null
null
pulsar/managers/util/cli/job/torque.py
nuwang/pulsar
ccebb1563c8f8eaca0505ed168920d8121bd8a1e
[ "Apache-2.0" ]
null
null
null
pulsar/managers/util/cli/job/torque.py
nuwang/pulsar
ccebb1563c8f8eaca0505ed168920d8121bd8a1e
[ "Apache-2.0" ]
null
null
null
from logging import getLogger try: import xml.etree.cElementTree as et except ImportError: import xml.etree.ElementTree as et try: from galaxy.model import Job job_states = Job.states except ImportError: # Not in Galaxy, map Galaxy job states to Pulsar ones. from pulsar.util import enum job...
30.576
100
0.521978
831dc0291ffb233c56cc609a5e63675f8d878b01
6,568
py
Python
lib/services/autoscaling/ncloud_autoscaling/model/get_auto_scaling_policy_list_response.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
lib/services/autoscaling/ncloud_autoscaling/model/get_auto_scaling_policy_list_response.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
lib/services/autoscaling/ncloud_autoscaling/model/get_auto_scaling_policy_list_response.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
# coding: utf-8 """ autoscaling OpenAPI spec version: 2018-06-21T02:22:22Z Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from ncloud_autoscaling.model.scaling_policy import ScalingPolicy # noqa: F401,E501 class GetAutoScal...
30.267281
136
0.630329
cc20575da1aee34cde4932933dfe8e6c31e84801
5,076
py
Python
src/classification_dispatcher.py
pandastrike/bayzee
76548b7cd7848bb2b9ca63daebf03057d672fa34
[ "MIT" ]
141
2015-01-13T05:26:28.000Z
2021-12-08T00:10:40.000Z
src/classification_dispatcher.py
pandastrike/bayzee
76548b7cd7848bb2b9ca63daebf03057d672fa34
[ "MIT" ]
4
2015-05-11T18:01:42.000Z
2020-06-20T12:37:26.000Z
src/classification_dispatcher.py
pandastrike/bayzee
76548b7cd7848bb2b9ca63daebf03057d672fa34
[ "MIT" ]
25
2015-01-13T05:26:34.000Z
2019-10-02T07:24:43.000Z
import csv import os import os.path import json import re from elasticsearch import Elasticsearch from muppet import DurableChannel, RemoteChannel __name__ = "classification_dispatcher" class ClassificationDispatcher: def __init__(self, config, processingStartIndex, processingEndIndex): self.config = config ...
48.342857
244
0.704886
4b27f21898a92793f6a21eeb1043d25f5ec05be2
833
py
Python
migrations/versions/b7f4b0cb7dea_.py
ice-phoenix/grading
38a11a279ad328257da7a53e7d75d78afbb6df6f
[ "MIT" ]
null
null
null
migrations/versions/b7f4b0cb7dea_.py
ice-phoenix/grading
38a11a279ad328257da7a53e7d75d78afbb6df6f
[ "MIT" ]
null
null
null
migrations/versions/b7f4b0cb7dea_.py
ice-phoenix/grading
38a11a279ad328257da7a53e7d75d78afbb6df6f
[ "MIT" ]
1
2019-09-09T13:53:08.000Z
2019-09-09T13:53:08.000Z
"""empty message Revision ID: b7f4b0cb7dea Revises: 3b4e164c0601 Create Date: 2019-05-11 15:02:32.246892 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b7f4b0cb7dea' down_revision = '3b4e164c0601' branch_labels = None depends_on = None def upgrade(): # ...
26.870968
85
0.705882
6f5d4854d03814f35bebc3c1c22000db1a06a9ad
92
py
Python
mystic/spylister.py
euphoriabbs/moddingtemplates
882a1fda140344ea998f39e07b4fc0c8a1ee18b1
[ "MIT" ]
1
2017-12-28T19:54:54.000Z
2017-12-28T19:54:54.000Z
mystic/spylister.py
euphoriabbs/moddingtemplates
882a1fda140344ea998f39e07b4fc0c8a1ee18b1
[ "MIT" ]
null
null
null
mystic/spylister.py
euphoriabbs/moddingtemplates
882a1fda140344ea998f39e07b4fc0c8a1ee18b1
[ "MIT" ]
null
null
null
#/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import mystic_bbs as bbs
13.142857
24
0.684783
40f34be7ad67c33a2c7cd2735526b9622402dd2e
2,061
py
Python
StockBot/StockScrapeFrameWork.py
Gam8itG4mes/Python
89136bd746b494ba611eec1afb5ab32a040a1e53
[ "Apache-2.0" ]
null
null
null
StockBot/StockScrapeFrameWork.py
Gam8itG4mes/Python
89136bd746b494ba611eec1afb5ab32a040a1e53
[ "Apache-2.0" ]
null
null
null
StockBot/StockScrapeFrameWork.py
Gam8itG4mes/Python
89136bd746b494ba611eec1afb5ab32a040a1e53
[ "Apache-2.0" ]
null
null
null
# import libs import urllib.request from bs4 import BeautifulSoup import csv from datetime import datetime #ask for the stock symbol symbol = input("Enter a stock symbol > ") #symbol = symbol.capitalize() if symbol == "djia" or symbol == "DJIA": quote_page_dji = ('https://www.reuters.com/finance/marke...
33.786885
81
0.65017
83d78c8bb14b091b741be556fbb8a0c91c8dbd88
543
py
Python
url_shortener/config.py
rwgeaston/url-shortener-flask
c6d642c446fc6ba6c36e7fb914c688dedae1c37e
[ "MIT" ]
null
null
null
url_shortener/config.py
rwgeaston/url-shortener-flask
c6d642c446fc6ba6c36e7fb914c688dedae1c37e
[ "MIT" ]
null
null
null
url_shortener/config.py
rwgeaston/url-shortener-flask
c6d642c446fc6ba6c36e7fb914c688dedae1c37e
[ "MIT" ]
null
null
null
import os class BaseConfig: """Base configuration""" TESTING = False SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') class DevelopmentConfig(BaseConfig): """Development configuration""" pass class TestingConfig(BaseConfig): """Testing con...
20.884615
65
0.731123
fbe07c5ec23858478f5fe0e89b4b62431e8dc268
101,427
py
Python
mne/preprocessing/maxwell.py
cjayb/mne-python
48823ad1dd1138b8a07e0770ef64368ae24de64e
[ "BSD-3-Clause" ]
null
null
null
mne/preprocessing/maxwell.py
cjayb/mne-python
48823ad1dd1138b8a07e0770ef64368ae24de64e
[ "BSD-3-Clause" ]
1
2015-10-07T14:19:29.000Z
2015-10-07T14:19:29.000Z
mne/preprocessing/maxwell.py
cjayb/mne-python
48823ad1dd1138b8a07e0770ef64368ae24de64e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Authors: Mark Wronkiewicz <wronk.mark@gmail.com> # Eric Larson <larson.eric.d@gmail.com> # Jussi Nurminen <jnu@iki.fi> # License: BSD (3-clause) from collections import Counter, OrderedDict from functools import partial from math import factorial from os import path as op ...
44.583297
104
0.583217
5d4e2d525f3a71195dc31027739494afa901c981
7,729
py
Python
Acquire/Service/_get_service_account_bucket.py
gareth-j/acquire
1359e598c43e52f905ee1ef50e5000781ba857c8
[ "Apache-2.0" ]
21
2019-01-29T17:18:45.000Z
2021-11-07T19:29:31.000Z
Acquire/Service/_get_service_account_bucket.py
gareth-j/acquire
1359e598c43e52f905ee1ef50e5000781ba857c8
[ "Apache-2.0" ]
8
2019-02-22T16:53:39.000Z
2022-01-13T01:29:54.000Z
Acquire/Service/_get_service_account_bucket.py
chryswoods/acquire
bf8a0465a531f3b485cb2a14c69dc9aea79451fd
[ "Apache-2.0" ]
4
2019-06-20T07:49:05.000Z
2020-03-31T18:11:56.000Z
import os as _os import json as _json from cachetools import cached as _cached from cachetools import LRUCache as _LRUCache # The cache can hold a maximum of 50 objects, and will remove the # least recently used items from the cache _login_cache = _LRUCache(maxsize=50) __all__ = ["get_service_account_bucket", ...
36.457547
79
0.673438
d8a241c6a59a2697d2d929df97d3735fc27eaf00
16,270
py
Python
examples/lm_finetuning/pregenerate_training_data.py
AnnDing/pytorch-pretrained-BERT
9e394070d9878da578a933959417c9f71722756d
[ "Apache-2.0" ]
161
2019-07-07T07:13:54.000Z
2022-03-02T11:15:31.000Z
examples/lm_finetuning/pregenerate_training_data.py
AnnDing/pytorch-pretrained-BERT
9e394070d9878da578a933959417c9f71722756d
[ "Apache-2.0" ]
10
2019-07-29T15:58:34.000Z
2020-07-28T14:52:36.000Z
examples/lm_finetuning/pregenerate_training_data.py
AnnDing/pytorch-pretrained-BERT
9e394070d9878da578a933959417c9f71722756d
[ "Apache-2.0" ]
25
2019-07-07T14:34:00.000Z
2021-02-18T03:39:31.000Z
from argparse import ArgumentParser from pathlib import Path from tqdm import tqdm, trange from tempfile import TemporaryDirectory import shelve from multiprocessing import Pool from random import random, randrange, randint, shuffle, choice from pytorch_pretrained_bert.tokenization import BertTokenizer import numpy as...
45.830986
120
0.625507
b702bbeee01f6d03102bbab43a41a87baf4ad569
4,591
py
Python
userbot/plugins/unzipfile.py
UserBotsMaker/indiauserbot
479549266a79f79a77f1ad7f90567a6757c34044
[ "MIT" ]
59
2020-04-02T07:16:01.000Z
2021-10-10T04:42:37.000Z
userbot/plugins/unzipfile.py
UserBotsMaker/indiauserbot
479549266a79f79a77f1ad7f90567a6757c34044
[ "MIT" ]
20
2020-03-23T15:39:42.000Z
2020-12-08T17:57:47.000Z
userbot/plugins/unzipfile.py
UserBotsMaker/indiauserbot
479549266a79f79a77f1ad7f90567a6757c34044
[ "MIT" ]
323
2020-03-28T13:11:38.000Z
2022-03-12T14:06:37.000Z
""" command: .unzip coded by @By_Azade code rewritten my SnapDragon7410 """ import os import time import zipfile from datetime import datetime from hachoir.metadata import extractMetadata from hachoir.parser import createParser from telethon.tl.types import DocumentAttributeVideo from userbot.utils import admin_cmd ...
39.239316
94
0.537791
6b3217637123b742ffa4e12e5c8ae23723a994c1
4,733
py
Python
tools/base.py
zhen8838/AnimeGAN
1c050777e2f361e98cd53cd4a6373e89a86ffd35
[ "MIT" ]
10
2020-04-27T06:45:40.000Z
2021-08-25T05:30:07.000Z
tools/base.py
zhen8838/AnimeGAN
1c050777e2f361e98cd53cd4a6373e89a86ffd35
[ "MIT" ]
null
null
null
tools/base.py
zhen8838/AnimeGAN
1c050777e2f361e98cd53cd4a6373e89a86ffd35
[ "MIT" ]
2
2020-05-23T05:34:54.000Z
2020-07-23T09:05:53.000Z
import tensorflow as tf import numpy as np import abc from termcolor import colored np.set_printoptions(suppress=True) INFO = colored('[ INFO ]', 'blue') # type:str ERROR = colored('[ ERROR ]', 'red') # type:str NOTE = colored('[ NOTE ]', 'green') # type:str class BaseHelper(object): def __init__(self, image...
36.129771
80
0.613776
caf5e751eaef6f346a50fdc4798d1db96357268b
4,921
py
Python
release/stubs.min/System/Windows/Media/Animation_parts/Clock.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/System/Windows/Media/Animation_parts/Clock.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/System/Windows/Media/Animation_parts/Clock.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class Clock(DispatcherObject): """ Maintains run-time timing state for a System.Windows.Media.Animation.Timeline. """ def DiscontinuousTimeMovement(self,*args): """ DiscontinuousTimeMovement(self: Clock) When implemented in a derived class,will be invoked whenever a clock repeats,skips,or seeks. """ ...
24.979695
212
0.715302
27ec54da834fac5ff27bf7ea34d0b346035ca656
2,989
py
Python
media_tree/forms.py
erlenddalen/django-media-tree
528763d6ac8de7d6b3ccf5544d3cd070a270a422
[ "BSD-3-Clause" ]
null
null
null
media_tree/forms.py
erlenddalen/django-media-tree
528763d6ac8de7d6b3ccf5544d3cd070a270a422
[ "BSD-3-Clause" ]
null
null
null
media_tree/forms.py
erlenddalen/django-media-tree
528763d6ac8de7d6b3ccf5544d3cd070a270a422
[ "BSD-3-Clause" ]
null
null
null
from media_tree.models import FileNode from media_tree import settings as app_settings from django import forms from django.utils.translation import ugettext_lazy as _ from django.template.defaultfilters import filesizeformat import os class FolderForm(forms.ModelForm): parent_folder = None class Meta: ...
35.583333
190
0.583807
c69ab7f35b2b59b65eb51d04601d974d071b5edc
1,058
py
Python
examples/RemoteControlTest.py
Schrotty/MonsterBorgRemote
d0c278fe10373632d773cc4917f67aa8ffd03621
[ "MIT" ]
1
2019-05-11T15:37:29.000Z
2019-05-11T15:37:29.000Z
examples/RemoteControlTest.py
Schrotty/thunder-remote
d0c278fe10373632d773cc4917f67aa8ffd03621
[ "MIT" ]
null
null
null
examples/RemoteControlTest.py
Schrotty/thunder-remote
d0c278fe10373632d773cc4917f67aa8ffd03621
[ "MIT" ]
null
null
null
from __future__ import print_function class RemoteControlTest: def __init__(self, remote_control): """ :param remote_control: """ self.manualControl = True self.rc = remote_control def wake_up(self): """ """ print("> WAKE UP") self....
16.793651
49
0.521739
bf531edea406e1e7dbdc10052ee5f35a03bce597
479
py
Python
plot.py
uanand/ball-trajectory
47f830204f434c2e346d89b95f17ae056ca1993b
[ "MIT" ]
null
null
null
plot.py
uanand/ball-trajectory
47f830204f434c2e346d89b95f17ae056ca1993b
[ "MIT" ]
null
null
null
plot.py
uanand/ball-trajectory
47f830204f434c2e346d89b95f17ae056ca1993b
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt plt.style.use('uanand') def plotTrajectory(t,x,y,z): fig = plt.figure(figsize=(8,3)) ax1 = fig.add_subplot(131) ax2 = fig.add_subplot(132) ax3 = fig.add_subplot(133) ax1.plot(t,x) ax1.set_xlabel('t (s)') ax1.set_ylabel('x (m)') ax2.plot(t,...
18.423077
35
0.563674
c70c7c9d9acfd128d5f6f11f457c871afa9bd712
6,284
py
Python
Chapter15/final/bookr/reviews/views.py
PacktPublishing/Web-Development-Projects-with-Django
531bc4d58d614888cc81b7fd6f8ec859f5a65217
[ "MIT" ]
97
2021-03-01T12:54:30.000Z
2022-03-28T02:57:26.000Z
Chapter15/final/bookr/reviews/views.py
PacktPublishing/Web-Development-Projects-with-Django
531bc4d58d614888cc81b7fd6f8ec859f5a65217
[ "MIT" ]
81
2020-08-27T04:56:04.000Z
2022-03-12T00:53:40.000Z
Chapter15/final/bookr/reviews/views.py
PacktPublishing/Web-Development-Projects-with-Django
531bc4d58d614888cc81b7fd6f8ec859f5a65217
[ "MIT" ]
163
2020-12-25T14:38:38.000Z
2022-03-30T10:31:40.000Z
from io import BytesIO from PIL import Image from django.contrib import messages from django.contrib.auth.decorators import login_required, user_passes_test from django.core.exceptions import PermissionDenied from django.core.files.images import ImageFile from django.shortcuts import render, get_object_or_404, redirec...
34.152174
117
0.623647
d2635bcc12c490cf82056d46919ad8ccb113a9ee
26,711
py
Python
test/functional/p2p_sendheaders.py
vivuscoin/vivuscoin
ba0db89712234bf68b2d6b63ef2c420d65c7c25d
[ "MIT" ]
null
null
null
test/functional/p2p_sendheaders.py
vivuscoin/vivuscoin
ba0db89712234bf68b2d6b63ef2c420d65c7c25d
[ "MIT" ]
null
null
null
test/functional/p2p_sendheaders.py
vivuscoin/vivuscoin
ba0db89712234bf68b2d6b63ef2c420d65c7c25d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Copyright (c) 2021 The Vivuscoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test behavior of headers messages to announce blocks...
43.860427
154
0.640523
7aca36db24259a5ca67e3cec3a522ff8739d61e2
395
py
Python
Challenges/Twitter/problem_1.py
JeremySomsouk/DailyCodingProblem
ca4e19571b175d92a913b5b373a6f17fccd87731
[ "Unlicense" ]
54
2019-03-14T21:27:13.000Z
2021-12-08T12:58:08.000Z
Challenges/Twitter/problem_1.py
JeremySomsouk/DailyCodingProblem
ca4e19571b175d92a913b5b373a6f17fccd87731
[ "Unlicense" ]
null
null
null
Challenges/Twitter/problem_1.py
JeremySomsouk/DailyCodingProblem
ca4e19571b175d92a913b5b373a6f17fccd87731
[ "Unlicense" ]
8
2020-02-06T23:28:01.000Z
2021-08-05T20:33:16.000Z
""" Asked by: Twitter Implement an autocomplete system. That is, given a query string s and a set of all possible query strings, return all strings in the set that have s as a prefix. For example, given the query string de and the set of strings [dog, deer, deal], return [deer, deal]. Hint: Try preprocessing the ...
49.375
107
0.746835
ca367ce2b0907e77ecd7193f93e5c4b03d3c35ac
17,573
py
Python
lbry/tests/integration/test_resolve_command.py
vanshdevgan/lbry-sdk
3624a3b450945235edcf76971e18c898fba67455
[ "MIT" ]
null
null
null
lbry/tests/integration/test_resolve_command.py
vanshdevgan/lbry-sdk
3624a3b450945235edcf76971e18c898fba67455
[ "MIT" ]
null
null
null
lbry/tests/integration/test_resolve_command.py
vanshdevgan/lbry-sdk
3624a3b450945235edcf76971e18c898fba67455
[ "MIT" ]
null
null
null
import asyncio import json import hashlib from unittest import skip from binascii import hexlify, unhexlify from lbry.testcase import CommandTestCase from lbry.wallet.transaction import Transaction, Output from lbry.schema.compat import OldClaimMessage from torba.client.hash import sha256, Base58 class BaseResolveTes...
50.642651
123
0.69254
feeb2e57e51ddbd8253052cf0b35a9903e950749
2,023
py
Python
autharch_sharc/editor/migrations/0010_ead_group_data.py
kingsdigitallab/autharch_sharc
92de5fbec8cc72ce48a9e25eb634d40ac2cc83ca
[ "MIT" ]
null
null
null
autharch_sharc/editor/migrations/0010_ead_group_data.py
kingsdigitallab/autharch_sharc
92de5fbec8cc72ce48a9e25eb634d40ac2cc83ca
[ "MIT" ]
null
null
null
autharch_sharc/editor/migrations/0010_ead_group_data.py
kingsdigitallab/autharch_sharc
92de5fbec8cc72ce48a9e25eb634d40ac2cc83ca
[ "MIT" ]
null
null
null
# Generated by Django 3.0.10 on 2021-01-19 11:54 from django.db import migrations def add_ead_objectgroups(apps, schema_editor): """ Default Themes from partner spreadsheet """ EADObjectGroup = apps.get_model('editor', 'EADObjectGroup') EADObject = apps.get_model('editor', 'EADObject') shakespeare, c...
25.2875
65
0.625803
b81d6dca275dd4ddeac6917acb4f53d5d359877a
258
py
Python
tests/test_cases/test_exit_error/test_exit.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
350
2015-01-09T12:50:13.000Z
2019-07-12T09:08:17.000Z
tests/test_cases/test_exit_error/test_exit.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
710
2015-01-05T16:42:29.000Z
2019-07-16T13:40:00.000Z
tests/test_cases/test_exit_error/test_exit.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
182
2015-01-08T09:35:20.000Z
2019-07-12T18:41:37.000Z
import cocotb from cocotb.triggers import Timer @cocotb.test() async def test_name_error(_): # this syntax error makes the whole file unimportable, so the file contents # don't really matter. await Timer(100, "ns") NameErrorLol # noqa: F821
19.846154
79
0.724806
9bc2bd5174c7a939931c844ef0edf552aa6e1d2f
227
py
Python
canary/tasks/taskflow/__init__.py
rackerlabs/canary
22ea0380d2c69ab587f21099320ae62fa3281349
[ "Apache-2.0" ]
5
2016-07-14T02:11:46.000Z
2017-09-15T21:50:57.000Z
canary/tasks/taskflow/__init__.py
rackerlabs/canary
22ea0380d2c69ab587f21099320ae62fa3281349
[ "Apache-2.0" ]
5
2015-05-29T18:15:24.000Z
2016-02-16T15:31:04.000Z
canary/tasks/taskflow/__init__.py
rackerlabs/canary
22ea0380d2c69ab587f21099320ae62fa3281349
[ "Apache-2.0" ]
10
2015-05-28T13:56:01.000Z
2020-10-25T02:17:14.000Z
from canary.tasks.taskflow import driver from canary.tasks.taskflow import services # Hoist classes into package namespace Driver = driver.TaskFlowDistributedTaskDriver ServicesDriver = services.TaskflowDistributedTaskServices
37.833333
57
0.872247
aae65e6c29a0031428f484a320abff969b81dfcd
238
py
Python
Python Fundamentals/Dictionary/Lab/Task06_2.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
null
null
null
Python Fundamentals/Dictionary/Lab/Task06_2.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
null
null
null
Python Fundamentals/Dictionary/Lab/Task06_2.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
1
2021-12-04T12:30:57.000Z
2021-12-04T12:30:57.000Z
words = [i.lower() for i in input().split(" ")] dictionary = {} for current_word in words: dictionary[current_word] = words.count(current_word) for key, value in dictionary.items(): if value % 2 != 0: print(key, end=" ")
26.444444
56
0.634454
d9bdf38b8225d5bcf36515d8ff0fd7d07cd4ddee
2,900
py
Python
ontobio/io/entitywriter.py
alliance-genome/ontobio
0ec3aa6fea9d4492a9873a4b9b394c4866f741b6
[ "BSD-3-Clause" ]
null
null
null
ontobio/io/entitywriter.py
alliance-genome/ontobio
0ec3aa6fea9d4492a9873a4b9b394c4866f741b6
[ "BSD-3-Clause" ]
null
null
null
ontobio/io/entitywriter.py
alliance-genome/ontobio
0ec3aa6fea9d4492a9873a4b9b394c4866f741b6
[ "BSD-3-Clause" ]
null
null
null
""" Classes for exporting entities. So far only one implementation """ import re def stringify(s): if s is None: return "" elif isinstance(s,list): return "|".join(s) else: return s external_taxon = re.compile("taxon:([0-9]+)") internal_taxon = re.compile("NCBITaxon:([0-9]+)") de...
24.576271
80
0.556897
882b3b2ae59989a65418d5d32259ad2ba7872845
1,680
py
Python
wolf_chat_proj/accounts/validations.py
dharanish-v/wolf-chat
f3ef1a020e27ea8cf18b142bcb3f7b1c6121144d
[ "MIT" ]
null
null
null
wolf_chat_proj/accounts/validations.py
dharanish-v/wolf-chat
f3ef1a020e27ea8cf18b142bcb3f7b1c6121144d
[ "MIT" ]
null
null
null
wolf_chat_proj/accounts/validations.py
dharanish-v/wolf-chat
f3ef1a020e27ea8cf18b142bcb3f7b1c6121144d
[ "MIT" ]
null
null
null
from django.forms import Form from django.contrib.auth.forms import AuthenticationForm, UserCreationForm from django.forms import ModelForm, widgets from .models import Movie, User from django.contrib.auth.hashers import make_password import json class RegisterValidation(): def __init__(self, *args): self...
30
99
0.595238
28692913a01db3bb9259a667feba6ba1402b300e
1,491
py
Python
Day9_Building_and_Deploying_DL_using_Tensorflow/03/load_data.py
activatedbonkers/100-Days-of-Code-Challenge
a1a376e5373d8fc5fda5df4004115760aa92bfda
[ "MIT" ]
8
2020-07-12T22:45:30.000Z
2021-06-01T10:44:28.000Z
Day9_Building_and_Deploying_DL_using_Tensorflow/03/load_data.py
activatedbonkers/100-Days-of-Code-Challenge
a1a376e5373d8fc5fda5df4004115760aa92bfda
[ "MIT" ]
null
null
null
Day9_Building_and_Deploying_DL_using_Tensorflow/03/load_data.py
activatedbonkers/100-Days-of-Code-Challenge
a1a376e5373d8fc5fda5df4004115760aa92bfda
[ "MIT" ]
6
2020-06-29T18:36:27.000Z
2022-01-16T21:18:03.000Z
import tensorflow as tf import pandas as pd from sklearn.preprocessing import MinMaxScaler # Load training data set from CSV file training_data_df = pd.read_csv('sales_data_training.csv', dtype = float) # Pull out columns for X (data to train with) and Y (value to predict) X_training = training_data_df.drop('total_ea...
41.416667
124
0.778672
c761f5b9222786fb4f05daa14f816c53474f9557
10,545
py
Python
var/spack/repos/builtin/packages/strumpack/package.py
troyredfearn/spack
fdc9cb0adb8cd8046188cf602d8d5fa0eb06f782
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/strumpack/package.py
troyredfearn/spack
fdc9cb0adb8cd8046188cf602d8d5fa0eb06f782
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
18
2021-03-12T16:22:58.000Z
2022-03-02T17:07:08.000Z
var/spack/repos/builtin/packages/strumpack/package.py
hainest/spack
c592e17d49118f253b552ef6165745ded8ac0ea5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 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 * from spack.util.environment import set_env from spack.util.executable import which class Strumpack(C...
45.847826
95
0.630725
e90a8f5c581f04022f4a81e7442ebd50cb5a6be7
16,923
py
Python
python/orca/src/bigdl/orca/learn/pytorch/torch_runner.py
Laniakea94/BigDL
4d01734086dda893a7f08ba53251dc3c5c8ecfd1
[ "Apache-2.0" ]
3
2021-07-14T01:28:47.000Z
2022-03-02T01:16:32.000Z
python/orca/src/bigdl/orca/learn/pytorch/torch_runner.py
Laniakea94/BigDL
4d01734086dda893a7f08ba53251dc3c5c8ecfd1
[ "Apache-2.0" ]
null
null
null
python/orca/src/bigdl/orca/learn/pytorch/torch_runner.py
Laniakea94/BigDL
4d01734086dda893a7f08ba53251dc3c5c8ecfd1
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.78913
93
0.60663
2270fea473508f6fe434e577b58079711369f17a
1,039
py
Python
projects/learning-journal/brain-bit-ingestor/spikes/spike-send-tweet.py
DEV3L/archive
652e37bf949cfcb2174b97ed5b7dbb6285a8dbe8
[ "Beerware" ]
null
null
null
projects/learning-journal/brain-bit-ingestor/spikes/spike-send-tweet.py
DEV3L/archive
652e37bf949cfcb2174b97ed5b7dbb6285a8dbe8
[ "Beerware" ]
null
null
null
projects/learning-journal/brain-bit-ingestor/spikes/spike-send-tweet.py
DEV3L/archive
652e37bf949cfcb2174b97ed5b7dbb6285a8dbe8
[ "Beerware" ]
null
null
null
from ingestor.readers.read_tweet_json import read_tweet_json from ingestor.senders.send_event_hub_message import send_event_hub_message, stop_client from ingestor.utils.env import env from ingestor.utils.logging_service import LoggingService logger = LoggingService('Send tweet.json').logger PROFILE = env('PROFILE_NAM...
27.342105
87
0.687199
ecb01d80309229b64b7915815a9597dc29328f7e
23,523
py
Python
tests_python/tests_013/test_rpc.py
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
tests_python/tests_013/test_rpc.py
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
tests_python/tests_013/test_rpc.py
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
import os import time import pytest from tools import utils, constants from launchers.sandbox import Sandbox from . import protocol from . import contract_paths CHAIN_ID = "main" BLOCK_ID = "head" PKH = "edpkuBknW28nW72KG6RoHtYW7p12T6GKc7nAbwYX5m8Wd9sDVC9yav" PROTOCOL_HASH = protocol.HASH BLOCK_LEVEL = "3" LIST_OFFSET...
36.469767
80
0.618203
687845f1e030909ebba3acc62db769b160e3f4ae
3,286
py
Python
bayesian/withCSV/bayesianWithCSV.py
raushanraja/pythonML
980e04eb41de6a27a0ee2b44fe86ee0b08e4a575
[ "MIT" ]
null
null
null
bayesian/withCSV/bayesianWithCSV.py
raushanraja/pythonML
980e04eb41de6a27a0ee2b44fe86ee0b08e4a575
[ "MIT" ]
null
null
null
bayesian/withCSV/bayesianWithCSV.py
raushanraja/pythonML
980e04eb41de6a27a0ee2b44fe86ee0b08e4a575
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[4]: import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import matplotlib.pyplot as plt import os print(os.listdir(".")) # In[6]: direc="data.csv" # reading data from csv table=pd.read_csv(direc) # seperating each...
22.662069
89
0.719111
d28ffb184f2b7fe85e528e37e1565693800c8b3b
2,101
py
Python
setup.py
ZLLentz/recordits
f865eaaffbd86921a544b74570b42897a137b0c1
[ "BSD-3-Clause-LBNL" ]
null
null
null
setup.py
ZLLentz/recordits
f865eaaffbd86921a544b74570b42897a137b0c1
[ "BSD-3-Clause-LBNL" ]
5
2020-05-18T19:13:01.000Z
2021-04-15T16:14:56.000Z
setup.py
ZLLentz/recordits
f865eaaffbd86921a544b74570b42897a137b0c1
[ "BSD-3-Clause-LBNL" ]
2
2020-01-22T21:43:27.000Z
2021-04-15T18:25:22.000Z
import sys from os import path from setuptools import find_packages, setup import versioneer min_version = (3, 6) if sys.version_info < min_version: error = """ recordits does not support Python {0}.{1}. Python {2}.{3} and above is required. Check your Python version like so: python3 --version This may be due...
28.391892
77
0.655402
bfd7dcc7635dc5c652ef85e5792193e81d4065b5
611
py
Python
cryptools/xor.py
adbforlife/cryptools
6d70c9e1565a8265aa1ca74bd9bdea0dfc950979
[ "MIT" ]
1
2019-08-26T04:01:06.000Z
2019-08-26T04:01:06.000Z
cryptools/xor.py
adbforlife/cryptools
6d70c9e1565a8265aa1ca74bd9bdea0dfc950979
[ "MIT" ]
null
null
null
cryptools/xor.py
adbforlife/cryptools
6d70c9e1565a8265aa1ca74bd9bdea0dfc950979
[ "MIT" ]
null
null
null
# Xor the message with a key stream. The message and the key need to be of # equal length. (This is one time pad, a perfectly correct crypto scheme) # # Parameters: # m - message in bytes; if expressed in string, we convert it to bytes # k - keystream in bytes; if expressed in string, we convert it to bytes...
35.941176
78
0.635025
61bf7aa070e1f94d1468e38dbc7b06b58e02e3e7
8,474
py
Python
vb_suite/groupby.py
thouis/pandas
f014b01af7bd2d03266697e672c2d41daded3fca
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
vb_suite/groupby.py
thouis/pandas
f014b01af7bd2d03266697e672c2d41daded3fca
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
vb_suite/groupby.py
thouis/pandas
f014b01af7bd2d03266697e672c2d41daded3fca
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2020-06-24T06:38:04.000Z
2020-06-24T06:38:04.000Z
from vbench.api import Benchmark from datetime import datetime common_setup = """from pandas_vb_common import * """ setup = common_setup + """ N = 100000 ngroups = 100 def get_test_data(ngroups=100, n=N): unique_groups = range(ngroups) arr = np.asarray(np.tile(unique_groups, n / ngroups), dtype=object) ...
33.101563
80
0.519353
2220577695012ab183f1d5c74155129493124b08
4,235
py
Python
libnamebench/geoip.py
catap/namebench2
9913a7a1a7955a3759eb18cbe73b421441a7a00f
[ "Apache-2.0" ]
195
2015-02-04T05:50:03.000Z
2022-02-20T08:37:08.000Z
libnamebench/geoip.py
catap/namebench2
9913a7a1a7955a3759eb18cbe73b421441a7a00f
[ "Apache-2.0" ]
13
2015-03-02T19:34:31.000Z
2021-03-14T10:39:42.000Z
libnamebench/geoip.py
catap/namebench2
9913a7a1a7955a3759eb18cbe73b421441a7a00f
[ "Apache-2.0" ]
35
2015-09-20T03:24:28.000Z
2022-03-21T21:07:09.000Z
# Copyright 2010 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 ...
35
109
0.656434
507b15a54900178ceaf9eed98b49fb08f15c993a
2,943
py
Python
tests/canonical_test_matching.py
giantoak/dedupe
9ab392510ee36dc2275fb59bde22a591c38bb83b
[ "MIT" ]
null
null
null
tests/canonical_test_matching.py
giantoak/dedupe
9ab392510ee36dc2275fb59bde22a591c38bb83b
[ "MIT" ]
null
null
null
tests/canonical_test_matching.py
giantoak/dedupe
9ab392510ee36dc2275fb59bde22a591c38bb83b
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import itertools import csv import exampleIO import dedupe import os import time import random import optparse import logging from collections import defaultdict optp = optparse.OptionParser() optp.add_option('-v', '--verbose', dest='verbose', action='count', h...
28.298077
75
0.673802
93701eb32be07d25aab93120070d62fdda7017bc
2,761
py
Python
S18/week8/therm1.py
stanleylio/OCN318
98f0329ea38ddd4ed2966f8f845a0bb29e71b923
[ "MIT" ]
1
2018-03-05T23:33:59.000Z
2018-03-05T23:33:59.000Z
S18/week8/therm1.py
stanleylio/OCN318
98f0329ea38ddd4ed2966f8f845a0bb29e71b923
[ "MIT" ]
null
null
null
S18/week8/therm1.py
stanleylio/OCN318
98f0329ea38ddd4ed2966f8f845a0bb29e71b923
[ "MIT" ]
null
null
null
# playing with thermistors # # From the datasheet we get the table of temperature-resistance pairs: # https://www.murata.com/~/media/webrenewal/support/library/catalog/products/thermistor/ntc/r44e.ashx # # Given how we wired the sensor (voltage divider with thermistor on top going into ADC), we seek the function # te...
18.655405
110
0.674756
8261fa52372fcdc512ce8d79beebe748a80a144d
648
py
Python
hooks/pre_gen_project.py
Maximilien-R/cookiecutter-tartiflette-aiohttp
66e7e0897b315df6a1908c6c31ec58b74e0b3a6f
[ "MIT" ]
3
2020-06-01T14:16:19.000Z
2021-11-07T19:54:08.000Z
hooks/pre_gen_project.py
Maximilien-R/cookiecutter-tartiflette-aiohttp
66e7e0897b315df6a1908c6c31ec58b74e0b3a6f
[ "MIT" ]
88
2019-11-15T17:35:54.000Z
2021-08-02T04:50:51.000Z
hooks/pre_gen_project.py
Maximilien-R/cookiecutter-tartiflette-aiohttp
66e7e0897b315df6a1908c6c31ec58b74e0b3a6f
[ "MIT" ]
2
2020-05-04T08:35:34.000Z
2020-10-22T17:47:26.000Z
#!/usr/bin/env python _PROJECT_SLUG = "{{ cookiecutter.project_slug }}" _AUTHOR_NAME = "{{ cookiecutter.author_name }}" def main(): if not _PROJECT_SLUG.isidentifier(): raise ValueError( f"Project slug < {_PROJECT_SLUG} > is not a valid Python " f"identifier." ) if _PR...
24.923077
75
0.594136
fbc00592c50ce28233c0cb5e7c1d87005c2f6ff3
8,970
py
Python
loaddata.py
syangliu/Newton-MR-grad
bf17cac404f0d0c92d5852e265162cc82fe3fefd
[ "Apache-2.0" ]
1
2022-03-31T05:15:31.000Z
2022-03-31T05:15:31.000Z
loaddata.py
syangliu/Newton-MR
bf17cac404f0d0c92d5852e265162cc82fe3fefd
[ "Apache-2.0" ]
null
null
null
loaddata.py
syangliu/Newton-MR
bf17cac404f0d0c92d5852e265162cc82fe3fefd
[ "Apache-2.0" ]
1
2022-03-20T00:11:03.000Z
2022-03-20T00:11:03.000Z
import pickle import os import struct import numpy as np from numpy.random import randint import math def loaddata(data_dir, data): """ Load RAW DATA from DATA file INPUT: data_dir: directory of data file data: name of the dataset OUTPUT: train_X, train_Y, test_X, test_Y ...
35.314961
88
0.664437
6512d072f2ae0c4d096752f927ef9174ec017acc
3,320
py
Python
aalh_iit_buildings_011/populate-decades-column.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_buildings_011/populate-decades-column.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_buildings_011/populate-decades-column.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
from openpyxl import load_workbook filename = 'aalh_iit_buildings_011.xlsx' wb = load_workbook(filename) ws = wb['Metadata Template'] minimumcol = 15 maximumcol = 15 minimumrow = 7 maximumrow = 1357 iterationrow = 7 targetcol = 15 decadescol = 14 for row in ws.iter_rows(min_row=minimumrow, min_col=minimumcol, max_r...
48.115942
104
0.615361
0802615a08c3abee58a1bfb76026f653763b2272
5,249
py
Python
examples/supervised_sentiment/example_ensemble.py
maheshwarigagan/nlp-architect
f6466edfd3ec6fe7d3682ec54306a1c65980d288
[ "Apache-2.0" ]
null
null
null
examples/supervised_sentiment/example_ensemble.py
maheshwarigagan/nlp-architect
f6466edfd3ec6fe7d3682ec54306a1c65980d288
[ "Apache-2.0" ]
null
null
null
examples/supervised_sentiment/example_ensemble.py
maheshwarigagan/nlp-architect
f6466edfd3ec6fe7d3682ec54306a1c65980d288
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
41.007813
99
0.694608
2126d99a362ca0be730f72925b9637c7c6ba5c22
2,079
py
Python
bench/test_rational.py
pearu/sympycore
9591ca73119f731e5b26b1aa034602b15e9297e5
[ "BSD-3-Clause" ]
9
2016-01-05T20:46:53.000Z
2022-01-01T12:13:59.000Z
bench/test_rational.py
pearu/sympycore
9591ca73119f731e5b26b1aa034602b15e9297e5
[ "BSD-3-Clause" ]
null
null
null
bench/test_rational.py
pearu/sympycore
9591ca73119f731e5b26b1aa034602b15e9297e5
[ "BSD-3-Clause" ]
2
2018-08-11T14:43:28.000Z
2022-02-18T08:39:58.000Z
START_REVISION=418 from sympycore import Number, Symbol a = Number(1,2) b = Number(-1,2) c = Number(3,4) d = Number(-7,6) e = Number(0,1) f = Number(1,1) g = Number(-5,1) h = Number(36,1) numbers = [a,b,c,d,e,f,g,h] x = Symbol('x') def test_compare(): """comparison of small fractions and inte...
24.458824
74
0.509861
74af9ef502d4f3ec8fdda7c913f1d8e9a397d317
4,316
py
Python
packages/Python/lldbsuite/test/functionalities/exec/TestExec.py
xiaobai/swift-lldb
9238527ce430e6837108a16d2a91b147551fb83c
[ "Apache-2.0" ]
765
2015-12-03T16:44:59.000Z
2022-03-07T12:41:10.000Z
packages/Python/lldbsuite/test/functionalities/exec/TestExec.py
xiaobai/swift-lldb
9238527ce430e6837108a16d2a91b147551fb83c
[ "Apache-2.0" ]
1,815
2015-12-11T23:56:05.000Z
2020-01-10T19:28:43.000Z
packages/Python/lldbsuite/test/functionalities/exec/TestExec.py
xiaobai/swift-lldb
9238527ce430e6837108a16d2a91b147551fb83c
[ "Apache-2.0" ]
284
2015-12-03T16:47:25.000Z
2022-03-12T05:39:48.000Z
""" Test some lldb command abbreviations. """ from __future__ import print_function import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class ExecTestCase(TestBase): NO_DEBUG_INFO_TESTCASE = True mydir = TestBase.compute_mydir(__fil...
37.859649
152
0.634152
eeca8a059074667c227dad0a1e39ef2797f4cde6
19,276
py
Python
bookmarks/tests/test_queries.py
zoredache/linkding
2fb0bb122443eb1b6cfe07e80d166df40a43b151
[ "MIT" ]
1
2021-06-04T23:28:07.000Z
2021-06-04T23:28:07.000Z
bookmarks/tests/test_queries.py
hollispotter/linkding
6ac7d46e5112055357a3116409d1ad9767424dbf
[ "MIT" ]
null
null
null
bookmarks/tests/test_queries.py
hollispotter/linkding
6ac7d46e5112055357a3116409d1ad9767424dbf
[ "MIT" ]
null
null
null
import operator from django.contrib.auth import get_user_model from django.db.models import QuerySet from django.test import TestCase from bookmarks import queries from bookmarks.models import Bookmark from bookmarks.tests.helpers import BookmarkFactoryMixin, random_sentence from bookmarks.utils import unique User =...
44.10984
118
0.681884
acf693e0f26d3441c42022027128db013ad118af
3,494
py
Python
tfx/components/experimental/data_view/provider_component.py
TimoKerr/tfx
10d13d57eeac21514fed73118cb43464dada67f1
[ "Apache-2.0" ]
1
2021-05-10T10:41:06.000Z
2021-05-10T10:41:06.000Z
tfx/components/experimental/data_view/provider_component.py
TimoKerr/tfx
10d13d57eeac21514fed73118cb43464dada67f1
[ "Apache-2.0" ]
null
null
null
tfx/components/experimental/data_view/provider_component.py
TimoKerr/tfx
10d13d57eeac21514fed73118cb43464dada67f1
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC. 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...
39.258427
80
0.740985
7678381cdc7d23a0957881f74558c7328de59658
673
py
Python
vcis/pages/__init__.py
ongzhixian/Pycro
89f4a4902b401a0ceb7dd6c905ec1da87982befd
[ "MIT" ]
null
null
null
vcis/pages/__init__.py
ongzhixian/Pycro
89f4a4902b401a0ceb7dd6c905ec1da87982befd
[ "MIT" ]
9
2020-08-29T00:17:12.000Z
2020-10-07T00:12:30.000Z
vcis/pages/__init__.py
ongzhixian/Pycro
89f4a4902b401a0ceb7dd6c905ec1da87982befd
[ "MIT" ]
null
null
null
################################################################################ # Import modules ################################################################################ import os from os.path import splitext, dirname ################################################################################ # Define p...
32.047619
80
0.332838
3cd623c1e8308608c2db5a4a51ff2f0a786e2a10
10,617
py
Python
monitoring/prober/scd/test_operation_simple.py
hennadii-usatenko/dss
a08d7d9af03b3436d5ba497fa982a5c08c5f964d
[ "Apache-2.0" ]
null
null
null
monitoring/prober/scd/test_operation_simple.py
hennadii-usatenko/dss
a08d7d9af03b3436d5ba497fa982a5c08c5f964d
[ "Apache-2.0" ]
null
null
null
monitoring/prober/scd/test_operation_simple.py
hennadii-usatenko/dss
a08d7d9af03b3436d5ba497fa982a5c08c5f964d
[ "Apache-2.0" ]
null
null
null
"""Basic Operation tests: - make sure the Operation doesn't exist with get or query - create the Operation with a 60 minute length - get by ID - search with earliest_time and latest_time - mutate - delete """ import datetime from monitoring.monitorlib.infrastructure import default_scope from monitoring.m...
36.359589
99
0.740981
f3c219a196313b4ba952272712fa9c189d2a0b69
2,292
py
Python
circles/tests/test_commands.py
CoronaCircles/coronacircles
1d86a659def276fcc0ebd7a723a48f729d6e21a1
[ "MIT" ]
1
2020-04-30T16:19:33.000Z
2020-04-30T16:19:33.000Z
circles/tests/test_commands.py
CoronaCircles/coronacircles
1d86a659def276fcc0ebd7a723a48f729d6e21a1
[ "MIT" ]
43
2020-05-01T23:48:01.000Z
2022-03-12T00:35:32.000Z
circles/tests/test_commands.py
CoronaCircles/coronacircles
1d86a659def276fcc0ebd7a723a48f729d6e21a1
[ "MIT" ]
1
2020-05-04T20:07:16.000Z
2020-05-04T20:07:16.000Z
import datetime import pytz from django.test import TestCase from django.core import mail from django.core.management import call_command from django.contrib.auth import get_user_model from django.utils import timezone from circles.models import Event, MailTemplate User = get_user_model() class CheckSeminarsTestCa...
29.766234
88
0.632199
7de5d9fe2542ed82451670401a103b2a83671987
5,327
py
Python
desktop/libs/hadoop/src/hadoop/core_site.py
simonvanderveldt/hue
f4c92b601b42fba96256adca2dad8c0deff51061
[ "Apache-2.0" ]
1
2021-01-27T07:22:54.000Z
2021-01-27T07:22:54.000Z
desktop/libs/hadoop/src/hadoop/core_site.py
simonvanderveldt/hue
f4c92b601b42fba96256adca2dad8c0deff51061
[ "Apache-2.0" ]
null
null
null
desktop/libs/hadoop/src/hadoop/core_site.py
simonvanderveldt/hue
f4c92b601b42fba96256adca2dad8c0deff51061
[ "Apache-2.0" ]
3
2021-07-12T02:46:25.000Z
2022-02-25T01:11:41.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
27.890052
86
0.739253
4776f9f557d9ff9335ea77ae48552ec546b1d6b1
2,970
py
Python
aliyun-python-sdk-mse/aliyunsdkmse/request/v20190531/CreateNacosConfigRequest.py
jorsonzen/aliyun-openapi-python-sdk
0afbfa8e5f9e19455695aa799f7dcc1cd853d827
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-mse/aliyunsdkmse/request/v20190531/CreateNacosConfigRequest.py
jorsonzen/aliyun-openapi-python-sdk
0afbfa8e5f9e19455695aa799f7dcc1cd853d827
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-mse/aliyunsdkmse/request/v20190531/CreateNacosConfigRequest.py
jorsonzen/aliyun-openapi-python-sdk
0afbfa8e5f9e19455695aa799f7dcc1cd853d827
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.357143
74
0.736364
753ccce2246c6a29380477e734bfe80aac94b7b6
1,259
py
Python
osgtest/tests/special_certs.py
efajardo/osg-test
79d919d37b623eab20c2c56e29407fb7548fb10b
[ "Apache-2.0" ]
1
2016-03-09T20:24:07.000Z
2016-03-09T20:24:07.000Z
osgtest/tests/special_certs.py
efajardo/osg-test
79d919d37b623eab20c2c56e29407fb7548fb10b
[ "Apache-2.0" ]
122
2016-03-23T16:59:07.000Z
2022-02-23T18:25:34.000Z
osgtest/tests/special_certs.py
efajardo/osg-test
79d919d37b623eab20c2c56e29407fb7548fb10b
[ "Apache-2.0" ]
14
2016-03-09T17:54:20.000Z
2021-07-02T15:51:23.000Z
import os import osgtest.library.core as core from cagen import CA import osgtest.library.osgunittest as osgunittest class TestCert(osgunittest.OSGTestCase): def test_01_install_ca(self): core.state['certs.ca_created'] = False core.config['certs.test-ca'] = '/etc/grid-security/certificates/OSG-Tes...
43.413793
105
0.675933
b482b15217762c844b33f51ccf3530174d055442
44,158
py
Python
jax/random.py
ziyadedher/jax
14618d1af49a53e6eaecf2207effb36646a21e4a
[ "ECL-2.0", "Apache-2.0" ]
2
2021-03-27T03:01:52.000Z
2021-04-24T20:24:12.000Z
jax/random.py
ziyadedher/jax
14618d1af49a53e6eaecf2207effb36646a21e4a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/random.py
ziyadedher/jax
14618d1af49a53e6eaecf2207effb36646a21e4a
[ "ECL-2.0", "Apache-2.0" ]
1
2020-11-22T17:50:23.000Z
2020-11-22T17:50:23.000Z
# 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 agreed to in writing, ...
38.100086
104
0.673174
32d2ff8770c62efc3e7162d02e1cb9f5b9bddad8
3,584
py
Python
django_test/users/tests/test1.py
othreecodes/django_test
7543f07af75ffdb4b8fdb59e7da059e10cd7c4f7
[ "MIT" ]
1
2018-07-23T19:15:41.000Z
2018-07-23T19:15:41.000Z
django_test/users/tests/test1.py
othreecodes/django_test
7543f07af75ffdb4b8fdb59e7da059e10cd7c4f7
[ "MIT" ]
null
null
null
django_test/users/tests/test1.py
othreecodes/django_test
7543f07af75ffdb4b8fdb59e7da059e10cd7c4f7
[ "MIT" ]
null
null
null
import os from test_plus.test import TestCase from unittest.mock import patch from django.conf import settings class TestUser(TestCase): def setUp(self): self.user = self.make_user() apps_dir = settings.APPS_DIR self.FILE = os.path.join( str(apps_dir), 'users', 'tests', 'test_...
49.09589
108
0.645647
4be57a29323d798ad7eb7c2e9153697d1505d4a4
471
py
Python
nodes/0.9.x/python/Document.ProjectPosition.py
jdehotin/Clockworkfordynamo
59226ea8292c57acfa1aa476efd40f0e78c9b965
[ "MIT" ]
147
2016-02-24T16:37:03.000Z
2022-02-18T12:10:34.000Z
nodes/0.9.x/python/Document.ProjectPosition.py
jdehotin/Clockworkfordynamo
59226ea8292c57acfa1aa476efd40f0e78c9b965
[ "MIT" ]
269
2016-02-25T14:04:14.000Z
2022-03-26T07:30:53.000Z
nodes/0.9.x/python/Document.ProjectPosition.py
jdehotin/Clockworkfordynamo
59226ea8292c57acfa1aa476efd40f0e78c9b965
[ "MIT" ]
89
2016-03-16T18:21:56.000Z
2022-02-03T14:34:30.000Z
import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import * import Autodesk clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager doc = DocumentManager.Instance.CurrentDBDocument projloc = doc.ActiveProjectLocation position_data = projloc.ProjectPosi...
31.4
99
0.853503
5f0492b5d133692b796ed67f28aa47ae640cf3e2
25,563
py
Python
webrecorder/webrecorder/models/collection.py
leeomara/webrecorder
d480862defb2d3fd47fdf22ee3b2bd443e6b0ed0
[ "Apache-2.0" ]
null
null
null
webrecorder/webrecorder/models/collection.py
leeomara/webrecorder
d480862defb2d3fd47fdf22ee3b2bd443e6b0ed0
[ "Apache-2.0" ]
null
null
null
webrecorder/webrecorder/models/collection.py
leeomara/webrecorder
d480862defb2d3fd47fdf22ee3b2bd443e6b0ed0
[ "Apache-2.0" ]
null
null
null
import gevent import logging import json import hashlib import os import traceback from datetime import date from pywb.utils.loaders import load from warcio.timeutils import timestamp20_now, timestamp_now from pywb.warcserver.index.cdxobject import CDXObject from webrecorder.utils import sanitize_title, get_new_id ...
30.577751
109
0.591402
b7958243c8d25527b9614228b43eda0f97c2de3d
2,776
py
Python
neutron/db/l3_fip_qos.py
dangervon/neutron
06ce0c2c94d2256a8f6804a1eacb0733747dcf46
[ "Apache-2.0" ]
1,080
2015-01-04T08:35:00.000Z
2022-03-27T09:15:52.000Z
neutron/db/l3_fip_qos.py
dangervon/neutron
06ce0c2c94d2256a8f6804a1eacb0733747dcf46
[ "Apache-2.0" ]
24
2015-02-21T01:48:28.000Z
2021-11-26T02:38:56.000Z
neutron/db/l3_fip_qos.py
dangervon/neutron
06ce0c2c94d2256a8f6804a1eacb0733747dcf46
[ "Apache-2.0" ]
1,241
2015-01-02T10:47:10.000Z
2022-03-27T09:42:23.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under...
39.657143
75
0.706052
270064a8bb416781575eff976a229fda0d3c858a
859
py
Python
__init__.py
netanelf/home_bus_alerter
cb545e6ece3e5d0c8b439b1063583c264ffa6677
[ "MIT" ]
null
null
null
__init__.py
netanelf/home_bus_alerter
cb545e6ece3e5d0c8b439b1063583c264ffa6677
[ "MIT" ]
null
null
null
__init__.py
netanelf/home_bus_alerter
cb545e6ece3e5d0c8b439b1063583c264ffa6677
[ "MIT" ]
null
null
null
import logging from datetime import datetime import time import threading import os import tkinter as tk import tkinter.ttk as ttk from selenium import webdriver from selenium.webdriver.firefox.options import Options from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import Web...
27.709677
65
0.85099
a4b28326b40d2b51798c1ad349ad93d289a8e771
90,016
py
Python
src/deploy/osp_deployer/director.py
digambar15/JetPack
808d4a84076a3700b0ba9f07c512e99e81c5c9eb
[ "Apache-2.0" ]
1
2020-07-16T10:03:56.000Z
2020-07-16T10:03:56.000Z
src/deploy/osp_deployer/director.py
MuhammadAsif1/JetPack
a8fc31c4f6a921958c81e9c2e2b17b146b34e35c
[ "Apache-2.0" ]
4
2018-08-23T15:02:59.000Z
2018-10-11T07:58:33.000Z
src/deploy/osp_deployer/director.py
digambar15/JetPack
808d4a84076a3700b0ba9f07c512e99e81c5c9eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015-2020 Dell Inc. or its subsidiaries. # # 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 r...
45.973442
113
0.531017
b79ec1742de5c8a2cdacc92588a7d9a5afe393de
3,274
py
Python
jmapp/routes/login.py
genwch/jmapp
760fef05286a31b1f8216b4f5af9ed6941a35106
[ "MIT" ]
null
null
null
jmapp/routes/login.py
genwch/jmapp
760fef05286a31b1f8216b4f5af9ed6941a35106
[ "MIT" ]
null
null
null
jmapp/routes/login.py
genwch/jmapp
760fef05286a31b1f8216b4f5af9ed6941a35106
[ "MIT" ]
null
null
null
import os from flask import Blueprint from model import login_mod, register_mod fname = os.path.basename(__file__).split(".")[0] login = Blueprint(fname, __name__) login_m = login_mod() # login_m.add([{"usr_cde": "test", "password": "test"}]) reg_m = register_mod() # def api_filter(data: list, filt: dict): # imp...
33.408163
129
0.612401
d5266eb934a816b4ae84d5e1b2b5b8ed0b2d841d
12,553
py
Python
devel/lib/python2.7/dist-packages/kinova_msgs/msg/_ArmPoseActionGoal.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
devel/lib/python2.7/dist-packages/kinova_msgs/msg/_ArmPoseActionGoal.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
devel/lib/python2.7/dist-packages/kinova_msgs/msg/_ArmPoseActionGoal.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from kinova_msgs/ArmPoseActionGoal.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import geometry_msgs.msg import kinova_msgs.msg import genpy import actionlib_msgs.msg i...
37.029499
271
0.631005
0e5735e52cc04fa6f9c96f7bba664aac206ad940
963
py
Python
contacts/migrations/0001_initial.py
bornamir/BT-Real-State---Django
e31b8fa6a85d9f2983a6c0c0bea3df123000db05
[ "MIT" ]
null
null
null
contacts/migrations/0001_initial.py
bornamir/BT-Real-State---Django
e31b8fa6a85d9f2983a6c0c0bea3df123000db05
[ "MIT" ]
null
null
null
contacts/migrations/0001_initial.py
bornamir/BT-Real-State---Django
e31b8fa6a85d9f2983a6c0c0bea3df123000db05
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-09-13 08:53 import datetime from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contact', fields=[ ('id', m...
32.1
114
0.575286
cb6363963b490f6443bfbf681a8ced168dd750f1
2,145
py
Python
iotapy/network/transaction_requester.py
csfl/iota-python
f100369c6dd4cf8bf6edf1a3244e9769ff841feb
[ "MIT" ]
34
2017-10-24T15:04:02.000Z
2021-09-05T17:46:43.000Z
iotapy/network/transaction_requester.py
csfl/iota-python
f100369c6dd4cf8bf6edf1a3244e9769ff841feb
[ "MIT" ]
8
2017-12-18T21:53:08.000Z
2021-06-01T21:24:31.000Z
iotapy/network/transaction_requester.py
mlouielu/iota-python
f100369c6dd4cf8bf6edf1a3244e9769ff841feb
[ "MIT" ]
11
2017-12-18T22:02:29.000Z
2020-11-10T17:58:22.000Z
# -*- coding: utf-8 -*- import iota import iotapy from typing import List EMPTY_HASH = iota.Hash('9' * 81) class TransactionRequester: def __init__(self, tangle): self.tangle = tangle self.transactions_to_request = set() self.milestone_transactions_to_request = set() def get_reques...
33
96
0.652214
d2ea9993ca673762354a4da7c810257dc1fe51b7
634
py
Python
testapp/processo/urls.py
luzfcb/versionamento_testes
b9982663a1e11b320d6565c4ffeb6acdd870f77e
[ "MIT" ]
null
null
null
testapp/processo/urls.py
luzfcb/versionamento_testes
b9982663a1e11b320d6565c4ffeb6acdd870f77e
[ "MIT" ]
null
null
null
testapp/processo/urls.py
luzfcb/versionamento_testes
b9982663a1e11b320d6565c4ffeb6acdd870f77e
[ "MIT" ]
null
null
null
from django.conf.urls import url from .views import LivroCreateView, LivroUpdateView, LivroListView, PizzaCreateView, PizzaListView, PizzaUpdateView urlpatterns = [ url(r'^livro/$', LivroListView.as_view(), name='livro_list'), url(r'^livro/create/$', LivroCreateView.as_view(), name='livro_create'), url(r'...
45.285714
115
0.701893
b4906eb3d0e8abc5c6462383fc8d5cf219d04ff1
3,752
py
Python
cadishi/io/pickel.py
bio-phys/cadishi
b44351fcb77737c6a6da5249a0c24ee8e34f72d2
[ "MIT" ]
14
2017-08-22T13:00:42.000Z
2021-11-19T14:07:55.000Z
cadishi/io/pickel.py
bio-phys/cadishi
b44351fcb77737c6a6da5249a0c24ee8e34f72d2
[ "MIT" ]
1
2021-11-19T14:07:38.000Z
2021-11-19T14:07:38.000Z
cadishi/io/pickel.py
bio-phys/cadishi
b44351fcb77737c6a6da5249a0c24ee8e34f72d2
[ "MIT" ]
null
null
null
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # Cadishi --- CAlculation of DIStance HIstograms # # Copyright (c) Klaus Reuter, Juergen Koefinger # See the file AUTHORS.rst for the full list of contributors. # # Releas...
30.016
74
0.596748
a4df642e9188c5255221c641c8cab721f982f04f
132
py
Python
src/example_package/example.py
muyinliu/PyPiDemoProject
914668ff6f6b3eff04bc9482cd8887e053350d95
[ "MIT" ]
null
null
null
src/example_package/example.py
muyinliu/PyPiDemoProject
914668ff6f6b3eff04bc9482cd8887e053350d95
[ "MIT" ]
null
null
null
src/example_package/example.py
muyinliu/PyPiDemoProject
914668ff6f6b3eff04bc9482cd8887e053350d95
[ "MIT" ]
null
null
null
from example_package.utils.str_utils import * def example_function_concat(param1, param2) -> str: return concat(param1, param2)
33
51
0.787879
a3a40af603cbdac4bc25b814f6a75fb5bdd0be29
1,831
py
Python
federation/protocols/matrix/protocol.py
weex/federation
01357aacb04b076442ce5f803a0fc65df5a74d09
[ "BSD-3-Clause" ]
93
2016-11-26T10:52:13.000Z
2022-01-15T20:07:35.000Z
federation/protocols/matrix/protocol.py
weex/federation
01357aacb04b076442ce5f803a0fc65df5a74d09
[ "BSD-3-Clause" ]
75
2016-10-18T10:15:44.000Z
2019-10-05T22:16:32.000Z
federation/protocols/matrix/protocol.py
weex/federation
01357aacb04b076442ce5f803a0fc65df5a74d09
[ "BSD-3-Clause" ]
9
2017-04-08T08:03:45.000Z
2021-09-13T22:00:48.000Z
import json import logging import re from typing import Callable, Tuple, List, Dict from federation.entities.matrix.entities import MatrixEntityMixin from federation.types import UserType, RequestType from federation.utils.text import decode_if_bytes logger = logging.getLogger('federation') PROTOCOL_NAME = "activity...
25.082192
81
0.637357
6025343caa3011279c7f42a6949de34c49ea839a
5,843
py
Python
perfkitbenchmarker/windows_benchmarks/fio_benchmark.py
zmgit/PerfKitBenchmarker
5d496db22c41f6b345ab28375aae4b5f39415ba7
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/windows_benchmarks/fio_benchmark.py
zmgit/PerfKitBenchmarker
5d496db22c41f6b345ab28375aae4b5f39415ba7
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/windows_benchmarks/fio_benchmark.py
zmgit/PerfKitBenchmarker
5d496db22c41f6b345ab28375aae4b5f39415ba7
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 PerfKitBenchmarker 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 appli...
30.752632
80
0.712648
6aafff3aba263d0c95c9a487ff66f9b947b72ef0
4,978
py
Python
rantlib/core_application/ui/window/theme_tool.py
AlgoRythm-Dylan/qtpy-rant
2b41503fb5f8d182e89a27d4727e50bb57912b1a
[ "MIT" ]
1
2020-10-19T17:07:58.000Z
2020-10-19T17:07:58.000Z
rantlib/core_application/ui/window/theme_tool.py
AlgoRythm-Dylan/qtpy-rant
2b41503fb5f8d182e89a27d4727e50bb57912b1a
[ "MIT" ]
null
null
null
rantlib/core_application/ui/window/theme_tool.py
AlgoRythm-Dylan/qtpy-rant
2b41503fb5f8d182e89a27d4727e50bb57912b1a
[ "MIT" ]
null
null
null
from rantlib.core_application.ui.window.window import Window from rantlib.core_application.ui.theme import * from rantlib.core_application.ui.runnables.load_themes import LoadThemesRunnable from rantlib.core_application.ui.parts.pg_theme_sample import ThemeSamplePage from PyQt5.QtWidgets import QWidget, QHBoxLayout, QV...
40.471545
116
0.72278
04d579ad87f92bd9ca7abedc78431b672991fda5
42,543
py
Python
wangle/french/conjugation.py
benjaminharpin/wangle
5e6db98e7f7927d612da8410204021e689815cf6
[ "MIT" ]
null
null
null
wangle/french/conjugation.py
benjaminharpin/wangle
5e6db98e7f7927d612da8410204021e689815cf6
[ "MIT" ]
null
null
null
wangle/french/conjugation.py
benjaminharpin/wangle
5e6db98e7f7927d612da8410204021e689815cf6
[ "MIT" ]
null
null
null
import re class Conjugator: def calculate_lemma_model(self, lemma): if lemma == 'รชtre': return 'รชtre' elif lemma == 'avoir': return 'avoir' elif lemma == 'aller': return 'aller' elif lemma.endswith('er'): appeler_exceptions = ['agneler...
37.482819
372
0.47157
9de58e79e412299b18d81cca99a64e5cf6c503e0
642
py
Python
tests/test_clock.py
Dev3XOR/pomodoro
d4dc48b6ebb86ebcccf0897faac7bba36d0319aa
[ "MIT" ]
null
null
null
tests/test_clock.py
Dev3XOR/pomodoro
d4dc48b6ebb86ebcccf0897faac7bba36d0319aa
[ "MIT" ]
1
2021-12-17T22:24:00.000Z
2021-12-17T22:24:00.000Z
tests/test_clock.py
Dev3XOR/pomodoro
d4dc48b6ebb86ebcccf0897faac7bba36d0319aa
[ "MIT" ]
null
null
null
import unittest import time from pomodoro import Clock class ClockTestCase(unittest.TestCase): def test_clock_is_running(self): c = Clock() # Check if this will not throw any errors c.stop() self.assertFalse(c.running) c.start() self.assertTrue(c.running) c....
23.777778
49
0.609034
47bcdbfd225e850fbbcd6548086c467efd67c279
3,527
py
Python
bindings/python/ensmallen/datasets/string/allomycesmacrogynusatcc38327.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/allomycesmacrogynusatcc38327.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/allomycesmacrogynusatcc38327.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 Allomyces macrogynus ATCC 38327. 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: protein...
33.590476
223
0.681032
d5ab13501f74e7656f26d014ea0e4ac8f3abb455
23,174
py
Python
acme_lib.py
felixfontein/acme-compact
922df35fc70e6f157a51d572a02c12fa34caaa35
[ "MIT" ]
5
2015-12-19T20:09:53.000Z
2017-02-06T08:13:27.000Z
acme_lib.py
felixfontein/acme-compact
922df35fc70e6f157a51d572a02c12fa34caaa35
[ "MIT" ]
null
null
null
acme_lib.py
felixfontein/acme-compact
922df35fc70e6f157a51d572a02c12fa34caaa35
[ "MIT" ]
null
null
null
""" Compact ACME library. Based on the py3 branch of https://github.com/collinanderson/acme-tiny, which is based on https://github.com/diafygi/acme-tiny. This code is licensed under the MIT license; see LICENSE for details. The original acme-tiny code is Copyright (c) 2015 Daniel Roesler """ import base64 import bi...
39.955172
244
0.648356
2d636d5456b690dda4f8e69d622eff16f6e5d11d
2,330
py
Python
Python/al.11.Cores no Terminal/colors.py
pedroivoal/CursoEmVideo
fe63097037d26258feff4d1626cfa3ac9ae6540a
[ "MIT" ]
null
null
null
Python/al.11.Cores no Terminal/colors.py
pedroivoal/CursoEmVideo
fe63097037d26258feff4d1626cfa3ac9ae6540a
[ "MIT" ]
null
null
null
Python/al.11.Cores no Terminal/colors.py
pedroivoal/CursoEmVideo
fe63097037d26258feff4d1626cfa3ac9ae6540a
[ "MIT" ]
null
null
null
# title = color_underline_bold['cyan'] # typed_col = color['green'] # important = color_underline['white'] # answer_col = color['blue'] # defeat_col = color['red'] # error_col = color_underline['red'] # end_col = color['purple'] # clean = color['clean'] color = { 'clean': '\033[m', 'black': '\033[30m', 're...
26.179775
38
0.501288
fd8535167b1169b8cccff3c8c9fb279fe53c500f
28,397
py
Python
pyocd/coresight/rom_table.py
timgates42/pyOCD
59ac81cad06183d5f9ecf480e84e2535140d528f
[ "Apache-2.0" ]
276
2020-09-30T16:43:24.000Z
2022-03-27T09:52:01.000Z
pyocd/coresight/rom_table.py
timgates42/pyOCD
59ac81cad06183d5f9ecf480e84e2535140d528f
[ "Apache-2.0" ]
282
2020-10-02T17:45:29.000Z
2022-03-31T10:37:30.000Z
pyocd/coresight/rom_table.py
timgates42/pyOCD
59ac81cad06183d5f9ecf480e84e2535140d528f
[ "Apache-2.0" ]
106
2020-10-01T10:06:44.000Z
2022-03-29T10:06:06.000Z
# pyOCD debugger # Copyright (c) 2015-2020 Arm Limited # Copyright (c) 2021 Chris Reed # SPDX-License-Identifier: Apache-2.0 # # 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...
41.516082
113
0.639046
528b4ecec5a0871a90281463c8a52e436ff003e6
1,654
py
Python
test/01.FirstIRTests/04.SimplePrograms/simpleRunnner.py
Merulo/Compiler
6065dfee1f7f74976d963511c8e5766d2164292e
[ "MIT" ]
4
2019-02-13T18:27:48.000Z
2019-02-24T21:18:29.000Z
test/01.FirstIRTests/04.SimplePrograms/simpleRunnner.py
Merulo/CompilerJFTT
6065dfee1f7f74976d963511c8e5766d2164292e
[ "MIT" ]
null
null
null
test/01.FirstIRTests/04.SimplePrograms/simpleRunnner.py
Merulo/CompilerJFTT
6065dfee1f7f74976d963511c8e5766d2164292e
[ "MIT" ]
null
null
null
import re import subprocess import filecmp import os import sys class COLORS: HEADER = '\033[95m' OK_BLUE = '\033[94m' OK_GREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' END = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' # list all files in . directory onlyfiles = [f for ...
26.677419
94
0.66445
231bebded3ff4019e65e25d4a80ae7eb3ab7599f
1,556
py
Python
tests/conftest.py
datacraft-dsc/starfish-py
95ff24410f056e8e2d313c3af97439fe003e294a
[ "Apache-2.0" ]
4
2019-02-08T03:47:36.000Z
2019-10-17T21:45:23.000Z
tests/conftest.py
datacraft-dsc/starfish-py
95ff24410f056e8e2d313c3af97439fe003e294a
[ "Apache-2.0" ]
81
2019-02-09T01:01:51.000Z
2020-07-01T08:35:07.000Z
tests/conftest.py
oceanprotocol/ocean-py
318ad0de2519e61d0a301c040a48d1839cd82425
[ "Apache-2.0" ]
1
2021-01-28T12:14:03.000Z
2021-01-28T12:14:03.000Z
import pytest import pathlib import os import json import datetime import logging import yaml from unittest.mock import Mock RESOURCES_PATH = pathlib.Path.cwd() / 'tests' / 'resources' METADATA_SAMPLE_FILE = RESOURCES_PATH / 'metadata' / 'sample_metadata1.json' TEST_ASSET_FILE = RESOURCES_PATH / 'test_asset_file.txt' ...
26.827586
91
0.699229
831ad57d06fb13e04bc32c9908b2b08dbc9a7a12
5,924
py
Python
src/gamesbyexample/pegsolitaire.py
spp2/PythonStdioGames
7edc6a07ef816a44579800e773f30217541971fa
[ "MIT" ]
null
null
null
src/gamesbyexample/pegsolitaire.py
spp2/PythonStdioGames
7edc6a07ef816a44579800e773f30217541971fa
[ "MIT" ]
null
null
null
src/gamesbyexample/pegsolitaire.py
spp2/PythonStdioGames
7edc6a07ef816a44579800e773f30217541971fa
[ "MIT" ]
null
null
null
"""Peg Solitaire, by Al Sweigart al@inventwithpython.com A single-player, peg-jumping game to eliminate all the pegs. More info at https://en.wikipedia.org/wiki/Peg_solitaire This and other games are available at https://nostarch.com/XX Tags: large, game, board game""" __version__ = 0 import sys # Set up the constants...
32.021622
121
0.610736
9bd2387c1dd4defa402587d1ade27ac1b5de8c85
9,758
py
Python
raiden/tests/integration/test_recovery.py
offerm/raiden
7a79026af70830bbbed44d73035f9a274e41c6a3
[ "MIT" ]
null
null
null
raiden/tests/integration/test_recovery.py
offerm/raiden
7a79026af70830bbbed44d73035f9a274e41c6a3
[ "MIT" ]
1
2018-06-18T13:06:00.000Z
2018-06-18T13:06:00.000Z
raiden/tests/integration/test_recovery.py
offerm/raiden
7a79026af70830bbbed44d73035f9a274e41c6a3
[ "MIT" ]
1
2017-06-09T19:27:11.000Z
2017-06-09T19:27:11.000Z
import gevent import pytest from gevent import server from raiden import waiting from raiden.api.python import RaidenAPI from raiden.app import App from raiden.message_handler import MessageHandler from raiden.network.transport import UDPTransport from raiden.raiden_event_handler import RaidenEventHandler from raiden....
29.840979
93
0.688256
9c1100e0706bb14b0d77ab6d0c6edfe86d9e4553
2,592
py
Python
test/functional/invalidtxrequest.py
badrkarni/saudicoin
18c221ef1eb576d52bec53dcd449d2c6766684a2
[ "MIT" ]
43
2018-06-27T22:35:17.000Z
2021-01-21T01:18:15.000Z
test/functional/invalidtxrequest.py
badrkarni/saudicoin
18c221ef1eb576d52bec53dcd449d2c6766684a2
[ "MIT" ]
32
2018-06-27T12:43:36.000Z
2020-12-04T22:23:36.000Z
test/functional/invalidtxrequest.py
badrkarni/saudicoin
18c221ef1eb576d52bec53dcd449d2c6766684a2
[ "MIT" ]
27
2018-06-27T16:07:19.000Z
2021-02-21T21:10:38.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2017 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 node responses to invalid transactions. In this test we connect to one node over p2p, and test tx...
35.027027
98
0.654321
8e2a6a3bc0d00396bff8b82b0c4afc5d7284e36d
4,703
py
Python
ProcessMaker_PMIO/models/input_output.py
ProcessMaker/pmio-sdk-python
49ddf9e6444c77a35ce51aa052059b254e0f5299
[ "Apache-2.0" ]
2
2017-11-10T05:10:44.000Z
2020-05-14T14:20:01.000Z
ProcessMaker_PMIO/models/input_output.py
ProcessMaker/pmio-sdk-python
49ddf9e6444c77a35ce51aa052059b254e0f5299
[ "Apache-2.0" ]
null
null
null
ProcessMaker_PMIO/models/input_output.py
ProcessMaker/pmio-sdk-python
49ddf9e6444c77a35ce51aa052059b254e0f5299
[ "Apache-2.0" ]
4
2017-07-01T22:04:18.000Z
2020-05-14T14:33:41.000Z
# coding: utf-8 """ ProcessMaker API This ProcessMaker I/O API provides access to a BPMN 2.0 compliant workflow engine api that is designed to be used as a microservice to support enterprise cloud applications.โ€‚โ€‚The current Alpha 1.0 version supports most of the descriptive class of the BPMN 2.0 specification...
26.273743
278
0.564959
93682639aa3be3b8f59a369dedb6ee773c468130
11,706
py
Python
tensorflow/contrib/distributions/python/ops/bijectors/reshape_impl.py
ryorda/tensorflow-viennacl
054b515feec0a3fca4cfb1f29adbf423c9027c3a
[ "Apache-2.0" ]
3
2018-05-29T18:49:31.000Z
2022-02-18T02:01:56.000Z
tensorflow/contrib/distributions/python/ops/bijectors/reshape_impl.py
ryorda/tensorflow-viennacl
054b515feec0a3fca4cfb1f29adbf423c9027c3a
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distributions/python/ops/bijectors/reshape_impl.py
ryorda/tensorflow-viennacl
054b515feec0a3fca4cfb1f29adbf423c9027c3a
[ "Apache-2.0" ]
3
2019-03-31T07:08:04.000Z
2021-07-01T07:44:57.000Z
# 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...
39.281879
105
0.678541
42c993072fb8d0eb9864ea14df59775595d1da22
4,457
py
Python
huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/list_restore_times_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/list_restore_times_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/list_restore_times_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListRestoreTimesRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): Th...
26.688623
79
0.571461
750dd4cb60378058887b57e07514b5714bee0ea0
1,338
py
Python
remote-adb-control/control-client/remote_adb_api.py
nladuo/AndroidControl
8b053e216bf8996206279d27044887363e5cbc66
[ "MIT" ]
61
2018-11-02T02:33:20.000Z
2022-02-27T15:26:38.000Z
remote-adb-control/control-client/remote_adb_api.py
nladuo/AndroidControl
8b053e216bf8996206279d27044887363e5cbc66
[ "MIT" ]
2
2019-11-18T08:48:55.000Z
2020-05-14T21:16:30.000Z
remote-adb-control/control-client/remote_adb_api.py
nladuo/AndroidControl
8b053e216bf8996206279d27044887363e5cbc66
[ "MIT" ]
14
2019-02-13T02:07:42.000Z
2021-09-17T06:23:56.000Z
import requests import json import time SERVER_PASSWORD = "py_remote_adb" SERVER_URL = "http://127.0.0.1:6777" last_screenshot_time = 0 def get_devices(): url = f"{SERVER_URL}/remote_adb/get_devices?password={SERVER_PASSWORD}" resp = requests.get(url) content = resp.content.decode("utf-8") data = json.loads(con...
29.086957
117
0.754111
83037d7ea4f51a75cccd1218eba8e9d37fa9c23b
4,616
py
Python
nipyapi/nifi/models/variable_registry_dto.py
jyoti-arora1991/nipyapi
ad0b2bdfd0e65049df7cb45042402201ec924e1e
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/variable_registry_dto.py
jyoti-arora1991/nipyapi
ad0b2bdfd0e65049df7cb45042402201ec924e1e
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/variable_registry_dto.py
jyoti-arora1991/nipyapi
ad0b2bdfd0e65049df7cb45042402201ec924e1e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
29.974026
479
0.582756
166511638388ccf1365c1a9e0e9284fc1dc5b2cd
164
py
Python
python/reverse-string/are_you_a_pal.py
Coding-Koans/Exercisms
5edddebdb3086800c020717d0c2b0b17bc63f62f
[ "MIT" ]
null
null
null
python/reverse-string/are_you_a_pal.py
Coding-Koans/Exercisms
5edddebdb3086800c020717d0c2b0b17bc63f62f
[ "MIT" ]
null
null
null
python/reverse-string/are_you_a_pal.py
Coding-Koans/Exercisms
5edddebdb3086800c020717d0c2b0b17bc63f62f
[ "MIT" ]
null
null
null
from reverse_string import reverse def panda_pal(tanya): chill_tanya = tanya.lower() anti_tanya = reverse(chill_tanya) return chill_tanya == anti_tanya
27.333333
37
0.756098
2e30389e4282b69df35264dcc020d99be0ce392a
6,552
py
Python
functions/HeatIndex.py
mmfink/raster-functions
55a33bdd2ac4f3333eca6ccd49de6f3d5d21f7ba
[ "Apache-2.0" ]
173
2015-01-21T03:10:13.000Z
2022-02-16T17:16:45.000Z
functions/HeatIndex.py
mmfink/raster-functions
55a33bdd2ac4f3333eca6ccd49de6f3d5d21f7ba
[ "Apache-2.0" ]
34
2015-02-18T10:58:31.000Z
2021-09-20T17:24:34.000Z
functions/HeatIndex.py
mmfink/raster-functions
55a33bdd2ac4f3333eca6ccd49de6f3d5d21f7ba
[ "Apache-2.0" ]
78
2015-01-30T16:26:31.000Z
2022-03-22T10:59:13.000Z
import numpy as np class HeatIndex(): def __init__(self): self.name = "Heat Index Function" self.description = ("This function combines ambient air temperature and relative humidity " "to return apparent temperature.") self.tempUnits = 'f' self....
43.105263
155
0.508547
2dc1ac2db3e352e5891a9f168490caffb5b2fb36
1,114
py
Python
logs.py
MohanSha/Python
54afb96fd90f43df01ee7561cb591ab49ad5e39f
[ "MIT" ]
1
2021-06-12T11:42:17.000Z
2021-06-12T11:42:17.000Z
logs.py
MohanSha/Python
54afb96fd90f43df01ee7561cb591ab49ad5e39f
[ "MIT" ]
null
null
null
logs.py
MohanSha/Python
54afb96fd90f43df01ee7561cb591ab49ad5e39f
[ "MIT" ]
1
2021-06-12T11:42:20.000Z
2021-06-12T11:42:20.000Z
# Description : This script will search for all *.log files in the given directory, zip them using the program you specify and then date stamp them import os # Load the Library Module from time import strftime # Load just the strftime Module from Time logsdir = "c:\puttylogs" # Set the Var...
69.625
180
0.600539
8b546dd6687bf7bb556857cbf20b02eaa87c5de6
3,055
py
Python
utils/utils.py
ishine/bert_dependencyparsing_taco2
7516b618186c93c99bd81209be7f813233fa49dd
[ "MIT" ]
null
null
null
utils/utils.py
ishine/bert_dependencyparsing_taco2
7516b618186c93c99bd81209be7f813233fa49dd
[ "MIT" ]
null
null
null
utils/utils.py
ishine/bert_dependencyparsing_taco2
7516b618186c93c99bd81209be7f813233fa49dd
[ "MIT" ]
1
2022-02-16T11:37:27.000Z
2022-02-16T11:37:27.000Z
import torch import dgl def get_mask_from_lengths(lengths, total_length): # use total_length of a batch for data parallelism device = lengths.device ids = torch.arange(0, total_length, out=torch.cuda.LongTensor(total_length)).to(device) mask = (ids < lengths.unsqueeze(1)).bool().to(device) return ...
32.849462
118
0.674632
4fc19f96eadf97a394a8a6394f9f6bd1104e211a
2,377
py
Python
pyymatcher/matcher.py
abdulniyaspm/pyymatcher
840453082a69cbc2c993598c18d2591773976363
[ "MIT" ]
6
2019-07-13T11:56:14.000Z
2021-12-27T07:09:10.000Z
pyymatcher/matcher.py
abdulniyaspm/pyymatcher
840453082a69cbc2c993598c18d2591773976363
[ "MIT" ]
null
null
null
pyymatcher/matcher.py
abdulniyaspm/pyymatcher
840453082a69cbc2c993598c18d2591773976363
[ "MIT" ]
null
null
null
from heapq import nlargest from collections import deque try: from accel import longest_common_substring except ImportError: raise RuntimeError("Unable to import the extension") class PyyMatcher(object): """ Class for calculating the similarity of two string objects. Usage: >>> obj = PyyMat...
28.987805
82
0.586454
0adc60a63013c761ab670711893a05e58e84b081
3,941
py
Python
app.py
sushainegoyal/sqlalchemy-challenge
45db6b8dc1f9594cf71dfad22a267d92a3066f43
[ "ADSL" ]
null
null
null
app.py
sushainegoyal/sqlalchemy-challenge
45db6b8dc1f9594cf71dfad22a267d92a3066f43
[ "ADSL" ]
null
null
null
app.py
sushainegoyal/sqlalchemy-challenge
45db6b8dc1f9594cf71dfad22a267d92a3066f43
[ "ADSL" ]
null
null
null
import numpy as np import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func from flask import Flask, jsonify import datetime as dt ################################################# # Database Setup ##############################...
26.628378
113
0.606953
5a5e08ec9c61d00072bccb7569a735e7601cea72
4,711
py
Python
pyEPR/toolbox/plotting.py
nikosavola/pyEPR
fb9eac3eae5522da80d9ea112bc39ae025000afb
[ "BSD-3-Clause" ]
1
2020-03-02T22:09:44.000Z
2020-03-02T22:09:44.000Z
pyEPR/toolbox/plotting.py
nikosavola/pyEPR
fb9eac3eae5522da80d9ea112bc39ae025000afb
[ "BSD-3-Clause" ]
null
null
null
pyEPR/toolbox/plotting.py
nikosavola/pyEPR
fb9eac3eae5522da80d9ea112bc39ae025000afb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 25 19:30:12 2017 Plotting snippets and useful functions @author: Zlatko K. Minev """ from __future__ import absolute_import, division, print_function import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np from matplotlib.axes import Axes from matpl...
27.711765
117
0.597113
3d208535cb768dc07c11ee143293facc58a5845f
1,442
py
Python
oneflow/python/test/ops/test_watch.py
weibao918/oneflow
320038ff5efd948516f7259442190f9b31f75027
[ "Apache-2.0" ]
1
2020-08-01T07:40:19.000Z
2020-08-01T07:40:19.000Z
oneflow/python/test/ops/test_watch.py
weibao918/oneflow
320038ff5efd948516f7259442190f9b31f75027
[ "Apache-2.0" ]
null
null
null
oneflow/python/test/ops/test_watch.py
weibao918/oneflow
320038ff5efd948516f7259442190f9b31f75027
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
28.27451
72
0.71706
b45f0950973d8973685e231bea51a1e3f7423843
49
py
Python
py12/01/led1.py
hiro345g/raspi_magazine_201612_toku1
5947a1c864f9844bb8da955e1b8331553546bba6
[ "MIT" ]
null
null
null
py12/01/led1.py
hiro345g/raspi_magazine_201612_toku1
5947a1c864f9844bb8da955e1b8331553546bba6
[ "MIT" ]
null
null
null
py12/01/led1.py
hiro345g/raspi_magazine_201612_toku1
5947a1c864f9844bb8da955e1b8331553546bba6
[ "MIT" ]
null
null
null
import gpiozero led = gpiozero.LED(4) led.on()
8.166667
21
0.693878
d2ac08576550006d36554de116f3572d0f78c9be
2,589
py
Python
tests/conftest.py
pyscaffold/pyscaffoldext-cookiecutter
05b31aef762a363da1ecad23e7cbb067a8678172
[ "MIT" ]
1
2021-03-17T15:47:23.000Z
2021-03-17T15:47:23.000Z
tests/conftest.py
pyscaffold/pyscaffoldext-cookiecutter
05b31aef762a363da1ecad23e7cbb067a8678172
[ "MIT" ]
1
2022-03-12T19:29:45.000Z
2022-03-14T11:52:46.000Z
tests/conftest.py
pyscaffold/pyscaffoldext-cookiecutter
05b31aef762a363da1ecad23e7cbb067a8678172
[ "MIT" ]
null
null
null
"""Place for fixtures and configuration that will be used in most of the tests. A nice option is to put your ``autouse`` fixtures here. Functions that can be imported and re-used are more suitable for the ``helpers`` file. """ import logging import os from pathlib import Path from tempfile import mkdtemp from textwrap ...
30.821429
86
0.703747
f51f3570112ba4aad2836d77b24ae46550ee4d34
1,872
py
Python
tests/contract_tests/KT1FMTXT5fi3viTNCnouNX8czeUdpEDH2MBY/test_fmtxt5_default.py
konchunas/pytezos
65576d18bdf1956fae8ea21241b6c43a38921b83
[ "MIT" ]
98
2019-02-07T16:33:38.000Z
2022-03-31T15:53:41.000Z
tests/contract_tests/KT1FMTXT5fi3viTNCnouNX8czeUdpEDH2MBY/test_fmtxt5_default.py
konchunas/pytezos
65576d18bdf1956fae8ea21241b6c43a38921b83
[ "MIT" ]
152
2019-05-20T16:38:56.000Z
2022-03-30T14:24:38.000Z
tests/contract_tests/KT1FMTXT5fi3viTNCnouNX8czeUdpEDH2MBY/test_fmtxt5_default.py
konchunas/pytezos
65576d18bdf1956fae8ea21241b6c43a38921b83
[ "MIT" ]
34
2019-07-25T12:03:51.000Z
2021-11-11T22:23:38.000Z
from unittest import TestCase from os.path import dirname, join import json from pytezos.michelson.program import MichelsonProgram from pytezos.michelson.types.big_map import big_map_diff_to_lazy_diff from pytezos.michelson.forge import forge_micheline, unforge_micheline folder = 'dexter_usdtz_xtz' entrypoint = 'remo...
39
112
0.721688
b3c3db9b93c7ff452105fdd7ac32d5e8e49aaed7
9,713
py
Python
lib/spack/spack/util/module_cmd.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
lib/spack/spack/util/module_cmd.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
lib/spack/spack/util/module_cmd.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 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) """ This module contains routines related to the module command for accessing and parsing environment modules. """ import ...
39.008032
80
0.634202
f2c247be2646ec6a7cb567b1651928ddc8ceb091
394
py
Python
pywinrt/winsdk/windows/security/cryptography/dataprotection/__init__.py
pywinrt/python-winsdk
1e2958a712949579f5e84d38220062b2cec12511
[ "MIT" ]
3
2022-02-14T14:53:08.000Z
2022-03-29T20:48:54.000Z
pywinrt/winsdk/windows/security/cryptography/dataprotection/__init__.py
pywinrt/python-winsdk
1e2958a712949579f5e84d38220062b2cec12511
[ "MIT" ]
4
2022-01-28T02:53:52.000Z
2022-02-26T18:10:05.000Z
pywinrt/winsdk/windows/security/cryptography/dataprotection/__init__.py
pywinrt/python-winsdk
1e2958a712949579f5e84d38220062b2cec12511
[ "MIT" ]
null
null
null
# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4 import winsdk _ns_module = winsdk._import_ns_module("Windows.Security.Cryptography.DataProtection") try: import winsdk.windows.foundation except Exception: pass try: import winsdk.windows.storage.streams except Except...
21.888889
86
0.78934