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
43a6e8546c1ccf316cb1ccb92419533264b9ad60
1,597
py
Python
tests/template_tests/syntax_tests/test_verbatim.py
DasAllFolks/django
9f427617e4559012e1c2fd8fce46cbe225d8515d
[ "BSD-3-Clause" ]
1
2015-11-08T16:39:07.000Z
2015-11-08T16:39:07.000Z
tests/template_tests/syntax_tests/test_verbatim.py
DasAllFolks/django
9f427617e4559012e1c2fd8fce46cbe225d8515d
[ "BSD-3-Clause" ]
null
null
null
tests/template_tests/syntax_tests/test_verbatim.py
DasAllFolks/django
9f427617e4559012e1c2fd8fce46cbe225d8515d
[ "BSD-3-Clause" ]
null
null
null
from django.template.base import TemplateSyntaxError from django.template.loader import get_template from django.test import SimpleTestCase from ..utils import render, setup class VerbatimTagTests(SimpleTestCase): @setup({'verbatim-tag01': '{% verbatim %}{{bare }}{% endverbatim %}'}) def test_verbatim_tag...
39.925
96
0.628679
1fee12c35edf0dc84c7b48041037716618219dce
30,671
py
Python
src/test-apps/happy/tests/service/wdmNext/test_weave_wdm_next_service_update_faults.py
robszewczyk/openweave-core
f452cc55859daea83b3ce7af158c8e78b05cc3bc
[ "Apache-2.0" ]
249
2017-09-18T17:48:34.000Z
2022-02-02T06:46:21.000Z
src/test-apps/happy/tests/service/wdmNext/test_weave_wdm_next_service_update_faults.py
robszewczyk/openweave-core
f452cc55859daea83b3ce7af158c8e78b05cc3bc
[ "Apache-2.0" ]
501
2017-11-10T11:25:32.000Z
2022-02-01T10:43:13.000Z
src/test-apps/happy/tests/service/wdmNext/test_weave_wdm_next_service_update_faults.py
robszewczyk/openweave-core
f452cc55859daea83b3ce7af158c8e78b05cc3bc
[ "Apache-2.0" ]
116
2017-09-20T07:06:55.000Z
2022-01-08T13:41:15.000Z
#!/usr/bin/env python3 # # Copyright (c) 2016-2017 Nest Labs, 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/lic...
51.547899
150
0.598644
11c9f6a6f4f94b79ad84578861256d22ee15c58a
624
py
Python
solutions/solution844.py
Satily/leetcode_python_solution
3f05fff7758d650469862bc28df9e4aa7b1d3203
[ "MIT" ]
3
2018-11-22T10:31:09.000Z
2019-05-05T15:53:48.000Z
solutions/solution844.py
Satily/leetcode_python_solution
3f05fff7758d650469862bc28df9e4aa7b1d3203
[ "MIT" ]
null
null
null
solutions/solution844.py
Satily/leetcode_python_solution
3f05fff7758d650469862bc28df9e4aa7b1d3203
[ "MIT" ]
null
null
null
class Solution: def backspaceCompare(self, S: str, T: str) -> bool: def sync(s): result = [] for ch in s: if ch == "#": if len(result) > 0: result.pop() else: result.append(ch) ...
29.714286
55
0.474359
6fd8e7b1aa8aa87ef5d39c6fef90c013a0ed6776
445
py
Python
frontends/pytorch/test/acap_regression/test_jit_linear.py
marbre/mlir-npcomp
30adf9e6b0c1e94db38050a9e143f20a5a461d17
[ "Apache-2.0" ]
null
null
null
frontends/pytorch/test/acap_regression/test_jit_linear.py
marbre/mlir-npcomp
30adf9e6b0c1e94db38050a9e143f20a5a461d17
[ "Apache-2.0" ]
null
null
null
frontends/pytorch/test/acap_regression/test_jit_linear.py
marbre/mlir-npcomp
30adf9e6b0c1e94db38050a9e143f20a5a461d17
[ "Apache-2.0" ]
null
null
null
# -*- Python -*- # This file is licensed under a pytorch-style license # See frontends/pytorch/LICENSE for license information. import torch import npcomp.frontends.pytorch as torch_mlir import npcomp.frontends.pytorch.test as test # RUN: %PYTHON %s | FileCheck %s dev = torch_mlir.mlir_device() model = torch.nn.Lin...
24.722222
56
0.748315
f02fc6bcb65df60c971b82c0c527915ed52942d0
739
py
Python
graphene_django/filter/__init__.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
4,038
2016-09-18T01:45:22.000Z
2022-03-31T01:06:57.000Z
graphene_django/filter/__init__.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
1,104
2016-09-19T20:10:22.000Z
2022-03-30T17:37:46.000Z
graphene_django/filter/__init__.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
791
2016-09-18T13:48:11.000Z
2022-03-29T08:32:06.000Z
import warnings from ..utils import DJANGO_FILTER_INSTALLED if not DJANGO_FILTER_INSTALLED: warnings.warn( "Use of django filtering requires the django-filter package " "be installed. You can do so using `pip install django-filter`", ImportWarning, ) else: from .fields import Django...
24.633333
72
0.637348
982830470c07dab91f0ede8eebaa12134ad27b97
829
py
Python
05_algoritmos-y-poo-python/modulo_III/clase04-ordenamiento-por-inserccion.py
Aibique-Forks/articicial-inteligence-and-data-science
fbdc866e4e46060cbde5b887806bdfeac645838e
[ "MIT" ]
30
2020-06-19T16:21:04.000Z
2022-02-19T01:48:39.000Z
05_algoritmos-y-poo-python/modulo_III/clase04-ordenamiento-por-inserccion.py
Aibique-Forks/articicial-inteligence-and-data-science
fbdc866e4e46060cbde5b887806bdfeac645838e
[ "MIT" ]
87
2021-02-12T04:42:13.000Z
2021-09-20T04:25:29.000Z
05_algoritmos-y-poo-python/modulo_III/clase04-ordenamiento-por-inserccion.py
Aibique-Forks/articicial-inteligence-and-data-science
fbdc866e4e46060cbde5b887806bdfeac645838e
[ "MIT" ]
11
2020-08-13T04:04:01.000Z
2022-01-20T20:10:43.000Z
""" Tema: Algoritmos de busqueda y ordenamiento - Ordenamiento por Inserccion. Curso: Pensamiento Computacional, 2da entrega. Plataforma: Platzi. Profesor: David Aroesti. Alumno: @edinsonrequena. """ import random def ordenamiento_por_insercion(lista): for indice in range(1, len(lista)): valor_actual = l...
22.405405
80
0.685163
604246c176c17b3082f57145a003426b9ba7e6b4
2,214
py
Python
src/selfcoin/node/ui/post.py
wangyubin112/selfcoin
f53528645f7d500108c7a258f07a2551f933ce7b
[ "MIT" ]
null
null
null
src/selfcoin/node/ui/post.py
wangyubin112/selfcoin
f53528645f7d500108c7a258f07a2551f933ce7b
[ "MIT" ]
null
null
null
src/selfcoin/node/ui/post.py
wangyubin112/selfcoin
f53528645f7d500108c7a258f07a2551f933ce7b
[ "MIT" ]
null
null
null
from tkinter import * section = 2 x = 0.05 y = 0.15/6*section x_col = 5 font_size = ('Arial') def post(ui): ui.post_frame = Frame(ui.tab_post) ui.post_demand_frame = Frame(ui.tab_post) ui.post_frame.place(relx = 0, rely = 0, relwidth=1.0, relheight=1.0/section) ui.post_demand_frame.place(relx ...
41
99
0.700542
feb760ca55f37dd70559d3182169831817ff9bc0
4,492
py
Python
old_lambda/tests/lambda_function/test_helpers.py
jdkandersson/cloudformation-kubernetes
8bd14379540bd2d122283c74166883e375cb348e
[ "Apache-2.0" ]
null
null
null
old_lambda/tests/lambda_function/test_helpers.py
jdkandersson/cloudformation-kubernetes
8bd14379540bd2d122283c74166883e375cb348e
[ "Apache-2.0" ]
null
null
null
old_lambda/tests/lambda_function/test_helpers.py
jdkandersson/cloudformation-kubernetes
8bd14379540bd2d122283c74166883e375cb348e
[ "Apache-2.0" ]
null
null
null
"""Tests for helpers.""" import pytest from kubernetes import client from lambda_function import exceptions from lambda_function import helpers from . import fixtures @pytest.mark.parametrize("group_version", fixtures.GROUP_VERSIONS) @pytest.mark.helper def test_calculate_client(group_version): """ GIVEN c...
29.168831
81
0.686331
d7cbf93c1c5c5b023096e02fed20251efec3fbe4
1,891
py
Python
tab2img/converter.py
sarah127/tab2img
b1b81d18a64d396164691c8e0feee050db718ef5
[ "MIT" ]
null
null
null
tab2img/converter.py
sarah127/tab2img
b1b81d18a64d396164691c8e0feee050db718ef5
[ "MIT" ]
null
null
null
tab2img/converter.py
sarah127/tab2img
b1b81d18a64d396164691c8e0feee050db718ef5
[ "MIT" ]
1
2021-06-16T19:40:55.000Z
2021-06-16T19:40:55.000Z
import numpy as np from math import ceil, sqrt class Tab2Img: def __init__(self, save_path=None, allow_pickle=False): self.save_path = save_path self.allow_pickle = allow_pickle def fit_transform(self, X, Y): n_sample, n_attrs = X.shape size = ceil(sqrt(n_attrs)) # Del...
36.365385
76
0.562665
e7ff5dbf8936d2838fc9a39226f03779da17c507
3,545
py
Python
optical_evaluate.py
HarmoniaLeo/prophesee-automotive-dataset-toolbox
81679d466a35d5b584df0ffe696e7db3a9d59f62
[ "Apache-2.0" ]
null
null
null
optical_evaluate.py
HarmoniaLeo/prophesee-automotive-dataset-toolbox
81679d466a35d5b584df0ffe696e7db3a9d59f62
[ "Apache-2.0" ]
null
null
null
optical_evaluate.py
HarmoniaLeo/prophesee-automotive-dataset-toolbox
81679d466a35d5b584df0ffe696e7db3a9d59f62
[ "Apache-2.0" ]
null
null
null
from cgitb import small from fileinput import filename import numpy as np from src.io import npy_events_tools from src.io import psee_loader import tqdm import os from numpy.lib import recfunctions as rfn import argparse from src.io.box_filtering import filter_boxes_gen1, filter_boxes_large from src.metrics.coco_eval i...
43.765432
421
0.660085
cf880da9a36fc229fc5c92834e750793da036847
2,855
py
Python
Images for architecture_signal_detection_SR/sub_threshold_signal_detection_plot.py
HarikrishnanNB/stochastic_resonance_and_nl
6c395a8dfe713e09fdc74c50ea8181eba43eb61f
[ "Apache-2.0" ]
1
2021-11-16T07:50:43.000Z
2021-11-16T07:50:43.000Z
Images for architecture_signal_detection_SR/sub_threshold_signal_detection_plot.py
HarikrishnanNB/stochastic_resonance_and_nl
6c395a8dfe713e09fdc74c50ea8181eba43eb61f
[ "Apache-2.0" ]
null
null
null
Images for architecture_signal_detection_SR/sub_threshold_signal_detection_plot.py
HarikrishnanNB/stochastic_resonance_and_nl
6c395a8dfe713e09fdc74c50ea8181eba43eb61f
[ "Apache-2.0" ]
2
2021-02-14T05:59:44.000Z
2021-07-31T12:40:23.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jan 20 10:49:13 2021 @author: harik """ import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import KFold from sklearn.metrics import confusion_matrix as cm import os from sklearn.metrics import (precision_score, recall_score,f1_score, ac...
35.246914
146
0.677758
89b9abd2fc86c87bb33f1bf177a07ccaba83e731
1,862
py
Python
workbench/notes/models.py
yoshson/workbench
701558cac3357cd82e4dc99f0fefed12ee81ddc5
[ "MIT" ]
15
2020-09-02T22:17:34.000Z
2022-02-01T20:09:10.000Z
workbench/notes/models.py
yoshson/workbench
701558cac3357cd82e4dc99f0fefed12ee81ddc5
[ "MIT" ]
18
2020-01-08T15:28:26.000Z
2022-02-28T02:46:41.000Z
workbench/notes/models.py
yoshson/workbench
701558cac3357cd82e4dc99f0fefed12ee81ddc5
[ "MIT" ]
8
2020-09-29T08:00:24.000Z
2022-01-16T11:58:19.000Z
from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.db import models from django.urls import reverse from django.utils import timezone from django.utils.translation import gettext_lazy as _ from workbench.accounts.models import User fr...
32.103448
77
0.690118
ef94e59431428fa8975c37328555c49a2e862c22
10,130
py
Python
generate_family_file.py
Partlo/RoboCade
89c49b3f793b96aeb9e75672fd150872eb52aa11
[ "MIT" ]
1
2021-07-28T11:48:03.000Z
2021-07-28T11:48:03.000Z
generate_family_file.py
Partlo/RoboCade
89c49b3f793b96aeb9e75672fd150872eb52aa11
[ "MIT" ]
null
null
null
generate_family_file.py
Partlo/RoboCade
89c49b3f793b96aeb9e75672fd150872eb52aa11
[ "MIT" ]
null
null
null
#!/usr/bin/python """This script generates a family file from a given URL. Usage:: generate_family_file.py [<url>] [<name>] [<dointerwiki>] [<verify>] Parameters are optional. They must be given consecutively but may be omitted if there is no successor parameter. The parameters are:: <url>: an url f...
33.543046
78
0.546397
72f99c59cd84685c715d97047dc7a2fb5071eda8
1,356
py
Python
web_dynamic/4-hbnb.py
dalexach/AirBnB_clone_v4
04e1db0691cbe5cefb6a5f42f7e008e8ba24d5d6
[ "MIT" ]
null
null
null
web_dynamic/4-hbnb.py
dalexach/AirBnB_clone_v4
04e1db0691cbe5cefb6a5f42f7e008e8ba24d5d6
[ "MIT" ]
2
2020-02-17T16:03:59.000Z
2020-02-17T20:55:58.000Z
web_dynamic/4-hbnb.py
dalexach/AirBnB_clone_v4
04e1db0691cbe5cefb6a5f42f7e008e8ba24d5d6
[ "MIT" ]
2
2020-02-25T23:39:11.000Z
2021-06-24T17:11:31.000Z
#!/usr/bin/python3 """ Flask App that integrates with AirBnB static HTML Template """ from flask import Flask, render_template, url_for from models import storage from uuid import uuid4 # flask setup app = Flask(__name__) app.url_map.strict_slashes = False port = 5000 host = '0.0.0.0' # begin flask page rendering @a...
27.673469
75
0.609882
508981df6de54cdccf6e07039ca57f3326677868
472
py
Python
detect_fire/Project/play_alarm.py
leeeju/R.O.S-
66910c0ec7265bbfe147aad9f1cc87cd2515eabf
[ "Python-2.0", "OLDAP-2.7" ]
2
2021-07-25T23:12:45.000Z
2021-07-25T23:12:46.000Z
detect_fire/Project/play_alarm.py
leeeju/R.O.S-
66910c0ec7265bbfe147aad9f1cc87cd2515eabf
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
detect_fire/Project/play_alarm.py
leeeju/R.O.S-
66910c0ec7265bbfe147aad9f1cc87cd2515eabf
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
#!/usr/bin/env python import rospy from playsound import playsound if __name__ == '__main__': rospy.init_node('play_alarm', anonymous=False) try: while not rospy.is_shutdown(): while rospy.get_param("/fire_detector/fire_detection_state") is True: print "al...
26.222222
85
0.631356
9c85763e23042a4fdbc0df5c14e3dd0c2ffb63c6
1,751
py
Python
src/ezdxf/entities/appid.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
515
2017-01-25T05:46:52.000Z
2022-03-29T09:52:27.000Z
src/ezdxf/entities/appid.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
417
2017-01-25T10:01:17.000Z
2022-03-29T09:22:04.000Z
src/ezdxf/entities/appid.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
149
2017-02-01T15:52:02.000Z
2022-03-17T10:33:38.000Z
# Copyright (c) 2019-2020, Manfred Moitzi # License: MIT License from typing import TYPE_CHECKING import logging from ezdxf.lldxf.attributes import ( DXFAttr, DXFAttributes, DefSubclass, group_code_mapping, ) from ezdxf.lldxf.const import DXF12, SUBCLASS_MARKER from ezdxf.entities.dxfentity import base_class, Subcl...
33.673077
80
0.727013
9fbb5329f4c37edbda8cfb83c8fa067ee4054198
11,493
py
Python
src/pip/_internal/wheel_builder.py
ronaldoussoren/pip
bbf8466088655d22cd46b286c8f0b8150754c1d9
[ "MIT" ]
null
null
null
src/pip/_internal/wheel_builder.py
ronaldoussoren/pip
bbf8466088655d22cd46b286c8f0b8150754c1d9
[ "MIT" ]
null
null
null
src/pip/_internal/wheel_builder.py
ronaldoussoren/pip
bbf8466088655d22cd46b286c8f0b8150754c1d9
[ "MIT" ]
null
null
null
"""Orchestrator for building wheels from InstallRequirements. """ import logging import os.path import re import shutil from pip._vendor.packaging.utils import canonicalize_name, canonicalize_version from pip._vendor.packaging.version import InvalidVersion, Version from pip._internal.exceptions import InvalidWheelFi...
32.283708
79
0.638737
72f60c7a771c733bd6e4f01c29f33540bd2ee01e
4,581
py
Python
ml_to_wstp.py
chris-lep/ml-to-wstp
00f08a105cbfe181c9d810a50a2c16607f3180dd
[ "MIT" ]
null
null
null
ml_to_wstp.py
chris-lep/ml-to-wstp
00f08a105cbfe181c9d810a50a2c16607f3180dd
[ "MIT" ]
null
null
null
ml_to_wstp.py
chris-lep/ml-to-wstp
00f08a105cbfe181c9d810a50a2c16607f3180dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 '''A simple script to transform a MathLink C or C++ file to a WSTP one. Usage: ./ml_to_wstp.py source_file target_file source_file: Path of the C or C++ file using MathLink. target_file: Path of the to-be-generated C or C++ file using WSTP. ''' #####################################...
32.956835
72
0.589828
be4b957ab32eea85c99ac3b4476920e4892b122d
36,025
py
Python
devices/debian.py
premandfriends/boardfarm
f2865e15fdeefee06a7f4701b3a47451dc03c8b9
[ "BSD-3-Clause-Clear" ]
null
null
null
devices/debian.py
premandfriends/boardfarm
f2865e15fdeefee06a7f4701b3a47451dc03c8b9
[ "BSD-3-Clause-Clear" ]
null
null
null
devices/debian.py
premandfriends/boardfarm
f2865e15fdeefee06a7f4701b3a47451dc03c8b9
[ "BSD-3-Clause-Clear" ]
null
null
null
# Copyright (c) 2015 # # All rights reserved. # # This file is distributed under the Clear BSD license. # The full text can be found in LICENSE in the root directory. import sys import time import pexpect import base import atexit import ipaddress import os import binascii import glob from termcolor import colored, c...
41.313073
155
0.59381
9b62ae491c074788b329d0790e8610a6845ae99f
15,556
py
Python
methods/density/train_fn.py
ciampluca/counting_perineuronal_nets
29463a4810b74943ee5234673e9e0816716b7fee
[ "Apache-2.0" ]
6
2021-12-16T13:47:56.000Z
2022-02-05T09:49:37.000Z
methods/density/train_fn.py
ciampluca/counting_perineuronal_nets
29463a4810b74943ee5234673e9e0816716b7fee
[ "Apache-2.0" ]
1
2021-06-28T17:09:48.000Z
2021-06-28T18:58:04.000Z
methods/density/train_fn.py
ciampluca/counting_perineuronal_nets
29463a4810b74943ee5234673e9e0816716b7fee
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import hydra import numpy as np import pandas as pd from PIL import Image, ImageDraw, ImageFont from skimage import io import torch import torchvision.transforms.functional as F from tqdm import tqdm from ..points.match import match from ..points.utils import draw_groundtruth_and_predictions ...
39.683673
128
0.667588
5b1aedcb9b352974d006cb2e8b945d0b7d75ca6e
59,439
py
Python
Gds/src/fprime_gds/common/testing_fw/api.py
razr/fprime
48c3188e9f8a2076919f79b2728bdde31f577866
[ "Apache-2.0" ]
1
2021-03-01T06:59:05.000Z
2021-03-01T06:59:05.000Z
Gds/src/fprime_gds/common/testing_fw/api.py
razr/fprime
48c3188e9f8a2076919f79b2728bdde31f577866
[ "Apache-2.0" ]
null
null
null
Gds/src/fprime_gds/common/testing_fw/api.py
razr/fprime
48c3188e9f8a2076919f79b2728bdde31f577866
[ "Apache-2.0" ]
null
null
null
""" gds_test_api.py: This file contains basic asserts that can support integration tests on an FPrime deployment. This API uses the standard pipeline to get access to commands, events, telemetry and dictionaries. :author: koran """ import signal import time from fprime.common.models.serialize.time_type import TimeTy...
45.442661
146
0.611921
0ef0a5f58a00e9ac1185b0b1672705ec67640e27
413
py
Python
examples/user/user_top_artists_or_tracks.py
owlwang/spotify.py
9a534605e84a252d443ea6a9daa241763bbdc77a
[ "MIT" ]
157
2018-04-22T06:07:04.000Z
2022-01-09T17:08:54.000Z
examples/user/user_top_artists_or_tracks.py
owlwang/spotify.py
9a534605e84a252d443ea6a9daa241763bbdc77a
[ "MIT" ]
58
2019-01-12T19:45:48.000Z
2021-04-09T21:12:23.000Z
examples/user/user_top_artists_or_tracks.py
owlwang/spotify.py
9a534605e84a252d443ea6a9daa241763bbdc77a
[ "MIT" ]
62
2018-04-22T10:37:04.000Z
2022-03-20T20:10:32.000Z
import asyncio import spotify client = spotify.Client('someid', 'somesecret') async def main(): user = await client.user_from_token('sometoken') # returns a list of spotify.Artist objects top_artists = await user.top_artists() # returns a list of spotif.Track objects top_tracks = await user.top_...
24.294118
55
0.723971
962c2b4c9f827f3e7ca0be2dc3acdf2591dac577
4,066
py
Python
ltrc/registro/models.py
iscenigmax/ltrc-registry
86c4e52e0d76e686c39a357957af35846a8fc391
[ "Unlicense" ]
null
null
null
ltrc/registro/models.py
iscenigmax/ltrc-registry
86c4e52e0d76e686c39a357957af35846a8fc391
[ "Unlicense" ]
null
null
null
ltrc/registro/models.py
iscenigmax/ltrc-registry
86c4e52e0d76e686c39a357957af35846a8fc391
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core.exceptions import ValidationError from django.db import models from django.db.models import Q from django.utils.translation import ugettext_lazy as _ from ltrc.classes.manage_choices import year_choices from ltrc.classes.manage_date impo...
34.168067
121
0.628382
acf752d2f10b9559e3d0f26ad74f3854a2a35c2a
11,605
py
Python
IRIS_data_download/IRIS_download_support/obspy/clients/iris/tests/test_client.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/clients/iris/tests/test_client.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/clients/iris/tests/test_client.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
# -*- coding: utf-8 -*- """ The obspy.clients.iris.client test suite. """ from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * # NOQA @UnusedWildImport import os import unittest import numpy as np from obspy.core.utcdatetime impor...
42.981481
79
0.553468
519fcf7a5121f0529a7aab2dfebbbf6827491a7e
265
py
Python
waffle/application.py
wangyifan1985/waffle
b9f75ef6bb1e2d023e9a9b82c1f76e28b6d254d7
[ "MIT" ]
1
2018-03-03T17:06:54.000Z
2018-03-03T17:06:54.000Z
waffle/application.py
wangyifan1985/waffle
b9f75ef6bb1e2d023e9a9b82c1f76e28b6d254d7
[ "MIT" ]
null
null
null
waffle/application.py
wangyifan1985/waffle
b9f75ef6bb1e2d023e9a9b82c1f76e28b6d254d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from flask import Flask from flask import Response flask_app = Flask('flaskapp') @flask_app.route('/hello') def hello_world(): return Response('Hello world from Flask!\n',mimetype='text/plain') app = flask_app.wsgi_app
18.928571
70
0.732075
e5ac5bc5318c05e3ba5ac8be8fe9383602b47c1f
1,365
py
Python
SecurityController/show-firewall.py
YunSukYeo/securator
fa3264499e1c1405f6da8447e0481b19f1b1d7dd
[ "MIT" ]
null
null
null
SecurityController/show-firewall.py
YunSukYeo/securator
fa3264499e1c1405f6da8447e0481b19f1b1d7dd
[ "MIT" ]
null
null
null
SecurityController/show-firewall.py
YunSukYeo/securator
fa3264499e1c1405f6da8447e0481b19f1b1d7dd
[ "MIT" ]
null
null
null
# !/usr/bin/env python import MySQLdb import os import socket import ipaddress str_exe_position = "select * from firewall_rule;" db = MySQLdb.connect(host="localhost", user="root", passwd="secu", db="hackathon") cur = db.cursor() cur.execute(str_exe_position) print "" print " Firewall Table" print "" print "%10s %...
35.921053
128
0.665934
550e1d534cf6b93f7f67ef8933694e5bd5feda33
4,872
py
Python
pframe/container/plist.py
Eastwu5788/PFrame
a5ab115f41835826b6ca44813e614971986d0ca8
[ "Apache-2.0" ]
1
2020-03-09T08:52:20.000Z
2020-03-09T08:52:20.000Z
pframe/container/plist.py
Eastwu5788/PFrame
a5ab115f41835826b6ca44813e614971986d0ca8
[ "Apache-2.0" ]
null
null
null
pframe/container/plist.py
Eastwu5788/PFrame
a5ab115f41835826b6ca44813e614971986d0ca8
[ "Apache-2.0" ]
null
null
null
# !/usr/local/python/bin/python # -*- coding: utf-8 -*- # (C) Wu Dong, 2019 # All rights reserved # @Author: 'Wu Dong <wudong@eastwu.cn>' # @Time: '2020-03-09 13:13' # sys import math # project from pframe.util.exception import PFExtractionError from .pobject import p_get def p_chunks(array, size): """ 将数组按切分成固定...
26.769231
88
0.59647
06f6322df40a070dadf5efbcb564382ca174b993
15,149
py
Python
cogent/src/generators/tc_helper.py
Lcrypto/CGO2019-AE
cba7598b42f10eab655a8907a6db71094c1f558d
[ "BSD-4-Clause" ]
4
2019-12-03T16:08:14.000Z
2020-08-26T16:38:54.000Z
cogent/src/generators/tc_helper.py
Lcrypto/CGO2019-AE
cba7598b42f10eab655a8907a6db71094c1f558d
[ "BSD-4-Clause" ]
null
null
null
cogent/src/generators/tc_helper.py
Lcrypto/CGO2019-AE
cba7598b42f10eab655a8907a6db71094c1f558d
[ "BSD-4-Clause" ]
1
2020-03-03T20:31:37.000Z
2020-03-03T20:31:37.000Z
# to add tab(s) def tc_gen_helper_tabs(f, num_tabs): for each_tab in range(num_tabs): f.write("\t") # to write a line--- code def tc_gen_helper_code_a_line(f, num_tabs, str_code, opt_linebreak): # for each_tab in range(num_tabs): f.write("\t") # f.write(str_code) # if opt_li...
35.898104
173
0.542346
b5e5d3a4c5491fb5b43ccad4638c00e3ed975238
905
py
Python
hannakageul/convert/jis.py
noxowl/hannakageul
1aaec1a527698f853660ce0ad936c00f1b683d5a
[ "MIT" ]
null
null
null
hannakageul/convert/jis.py
noxowl/hannakageul
1aaec1a527698f853660ce0ad936c00f1b683d5a
[ "MIT" ]
null
null
null
hannakageul/convert/jis.py
noxowl/hannakageul
1aaec1a527698f853660ce0ad936c00f1b683d5a
[ "MIT" ]
null
null
null
"""mod: 'hannakageul.converter.eucjp' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jis based function """ from hannakageul import decoder from hannakageul import encoder __all__ = ('euccn', 'eucjp', 'euckr', 'sjis', 'utf8') def euccn(source): """Convert jis(iso-2022-jp) string to euc-cn""" result = decoder.euccn(encoder...
21.547619
54
0.654144
3a43ed46620c4959a0d8e9e459bf371f4549fffb
1,869
py
Python
warehouse/migrations/versions/0864352e2168_drop_duplicate_indexes.py
leoz0610/warehouse
58d569b864d0a9b0627d21a15f4ffe92540752f5
[ "Apache-2.0" ]
2
2015-04-08T20:48:40.000Z
2016-04-23T00:14:49.000Z
warehouse/migrations/versions/0864352e2168_drop_duplicate_indexes.py
leoz0610/warehouse
58d569b864d0a9b0627d21a15f4ffe92540752f5
[ "Apache-2.0" ]
14
2018-10-11T01:00:52.000Z
2018-10-16T23:01:23.000Z
warehouse/migrations/versions/0864352e2168_drop_duplicate_indexes.py
leoz0610/warehouse
58d569b864d0a9b0627d21a15f4ffe92540752f5
[ "Apache-2.0" ]
1
2015-04-08T20:48:41.000Z
2015-04-08T20:48:41.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 the Li...
36.647059
88
0.745318
754c1c8ec5edf8c08b1cf3cd466e07f423c5135c
5,494
py
Python
ai_util.py
neerbek/taboo-core
205146a6d7531cb10907953d1b732ac80b12e062
[ "MIT" ]
1
2020-08-05T03:46:52.000Z
2020-08-05T03:46:52.000Z
ai_util.py
neerbek/taboo-core
205146a6d7531cb10907953d1b732ac80b12e062
[ "MIT" ]
2
2020-11-27T00:01:08.000Z
2021-02-02T22:45:04.000Z
ai_util.py
neerbek/taboo-core
205146a6d7531cb10907953d1b732ac80b12e062
[ "MIT" ]
1
2019-02-12T16:03:01.000Z
2019-02-12T16:03:01.000Z
# -*- coding: utf-8 -*- """ Created on Sat Jan 7 08:16:27 2017 @author: neerbek """ import os import time import ast import operator as op import zipfile from numpy.random import RandomState # type: ignore from typing import List class Timer: def __init__(self, name="Timer"): self.elapsed = 0 s...
28.915789
94
0.570258
56e5eb27e55f44b566909ea2344648829d212260
986
py
Python
src/cli/commands/save.py
SummerRayMorrow/carme
e2ee76005a27c2a64639b2bbfe820a89ca81cd75
[ "MIT" ]
null
null
null
src/cli/commands/save.py
SummerRayMorrow/carme
e2ee76005a27c2a64639b2bbfe820a89ca81cd75
[ "MIT" ]
null
null
null
src/cli/commands/save.py
SummerRayMorrow/carme
e2ee76005a27c2a64639b2bbfe820a89ca81cd75
[ "MIT" ]
null
null
null
''' Saves the project ''' import click from .git import _git_save, _git from ...modules.base import * SAVE_DEFAULT= "Carme Saved Executed." SAVE_HELP = "Use message to record changes made. This will be stored in git with the commit." # Set up logger setup_logger() @click.command() @click.option('--message', default=S...
29.878788
96
0.680527
e042e5c45f1c6db703a7d5d92d24b27dcb69a709
4,498
py
Python
see/output.py
ljcooke/see
4616144b0b7d8a300e311f00712ffbe23c49bd66
[ "BSD-3-Clause" ]
42
2017-09-24T09:54:51.000Z
2022-03-20T15:51:16.000Z
see/output.py
araile/see
4616144b0b7d8a300e311f00712ffbe23c49bd66
[ "BSD-3-Clause" ]
6
2016-04-16T23:55:40.000Z
2016-04-24T13:31:31.000Z
see/output.py
araile/see
4616144b0b7d8a300e311f00712ffbe23c49bd66
[ "BSD-3-Clause" ]
4
2016-04-12T21:35:10.000Z
2017-08-05T23:46:04.000Z
""" Manipulating strings for output. """ import math import re import sys import textwrap from . import term, tools from .exceptions import SeeError from .features import PY3 REGEX_TYPE = type(re.compile('.')) MAX_INDENT = 4 class SeeResult(object): """ The output of the :func:`see` function. Acts l...
26
77
0.575145
d8c75dbffc006f8cd2b6f0b289c5d00e308a7092
6,888
py
Python
chb/cmdline/runcmds.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
chb/cmdline/runcmds.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
chb/cmdline/runcmds.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # CodeHawk Binary Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2021-2022 Aarno Labs, LLC # # Permission is hereby granted, free of...
35.875
85
0.558362
b4a4d274de5bef93dd6f606b38e12fd7d597cd7b
3,151
py
Python
Simulation/dance_moves.py
marakaspers/dancing-robot
96acd30a052a73a1b9ac1beebadfc31f22a71b17
[ "MIT" ]
null
null
null
Simulation/dance_moves.py
marakaspers/dancing-robot
96acd30a052a73a1b9ac1beebadfc31f22a71b17
[ "MIT" ]
null
null
null
Simulation/dance_moves.py
marakaspers/dancing-robot
96acd30a052a73a1b9ac1beebadfc31f22a71b17
[ "MIT" ]
null
null
null
import pybullet as p import time import pybullet_data from math import sin, cos import random physicsClient= p.connect(p.GUI)#or p.DIRECTfor non-graphical version p.setAdditionalSearchPath(pybullet_data.getDataPath()) #optionally p.setGravity(0,0,-10) planeId= p.loadURDF("plane.urdf") robotStartPos= [0,0,1] robotStar...
37.963855
123
0.690892
e4248fcd7146c60f845820e657364532b4315e13
11,343
py
Python
design_baselines/cbas/nets.py
young-geng/design-baselines-icml
ce4183babac304ed5f83151a602d75de6c4740c4
[ "MIT" ]
28
2020-06-30T00:40:33.000Z
2022-03-22T05:16:27.000Z
design_baselines/cbas/nets.py
young-geng/design-baselines-icml
ce4183babac304ed5f83151a602d75de6c4740c4
[ "MIT" ]
5
2020-09-17T07:15:52.000Z
2022-03-31T23:33:27.000Z
design_baselines/cbas/nets.py
young-geng/design-baselines-icml
ce4183babac304ed5f83151a602d75de6c4740c4
[ "MIT" ]
3
2020-09-17T06:55:53.000Z
2021-08-09T20:27:26.000Z
from tensorflow_probability import distributions as tfpd import tensorflow.keras.layers as tfkl import tensorflow as tf import numpy as np class ForwardModel(tf.keras.Sequential): """A Fully Connected Network with 2 trainable layers""" distribution = tfpd.Normal def __init__(self, task, embedding_size=5...
35.226708
80
0.630609
e594be6a32c59430d61b0c415c0045e837a05d79
133
py
Python
python/problem1.py
mo/project-euler
7d6e59c0d82216b9a1d59e4f2472e53b8f330574
[ "MIT" ]
null
null
null
python/problem1.py
mo/project-euler
7d6e59c0d82216b9a1d59e4f2472e53b8f330574
[ "MIT" ]
null
null
null
python/problem1.py
mo/project-euler
7d6e59c0d82216b9a1d59e4f2472e53b8f330574
[ "MIT" ]
null
null
null
print "Hello world" sum = 0 for x in range(1000): if x % 3 == 0 or x % 5 == 0: sum += x; print "sum ==", sum
13.3
33
0.443609
4180d776aeb14bc5062d43ab827a5bed0679518e
805
py
Python
test/libs/Hybrid.py
kavyapnaik/PythonRemoteServer
2a8ad401bf84ee39fd79bea9cc9e8fd13fcda9c7
[ "ECL-2.0", "Apache-2.0" ]
118
2015-01-15T08:01:17.000Z
2022-03-17T03:49:01.000Z
test/libs/Hybrid.py
kavyapnaik/PythonRemoteServer
2a8ad401bf84ee39fd79bea9cc9e8fd13fcda9c7
[ "ECL-2.0", "Apache-2.0" ]
50
2015-02-14T10:27:31.000Z
2022-03-28T13:44:21.000Z
test/libs/Hybrid.py
kavyapnaik/PythonRemoteServer
2a8ad401bf84ee39fd79bea9cc9e8fd13fcda9c7
[ "ECL-2.0", "Apache-2.0" ]
79
2015-01-25T07:00:14.000Z
2022-03-15T12:28:34.000Z
class Hybrid(object): def get_keyword_names(self): return ['passing', 'failing', 'logging', 'returning', 'kwargs'] def __getattr__(self, name): try: return globals()[name] except KeyError: raise AttributeError(name) def passing(arg=None): assert not arg or...
20.125
71
0.617391
84be0b6f231ae8985ad2c9573913fb9386bfee11
1,839
py
Python
scripts/cityscapes/filter_pl.py
zhenyuw16/noisyboundaries
0c83823fe3634edb1274f4b20829822e49a25d65
[ "Apache-2.0" ]
3
2022-03-30T07:45:25.000Z
2022-03-30T12:29:30.000Z
scripts/cityscapes/filter_pl.py
zhenyuw16/noisyboundaries
0c83823fe3634edb1274f4b20829822e49a25d65
[ "Apache-2.0" ]
1
2022-03-28T13:42:24.000Z
2022-03-28T13:42:24.000Z
scripts/cityscapes/filter_pl.py
zhenyuw16/noisyboundaries
0c83823fe3634edb1274f4b20829822e49a25d65
[ "Apache-2.0" ]
1
2022-03-30T11:36:48.000Z
2022-03-30T11:36:48.000Z
import numpy as np import json import pickle import argparse import mmcv def parse_args(): parser = argparse.ArgumentParser( description='filtering results') parser.add_argument('rname') args = parser.parse_args() return args if __name__ == '__main__': args = parse_args()...
28.292308
106
0.55193
8366180951f31d7acbc51f97c6e2c1591178062f
293
py
Python
protocol_crm/protocol_crm/users/migrations/0009_delete_emailaddress.py
radugaf/Protocol_Agency_v1.1
2473ee85adbf82cd7c97618423536c4795ce67d6
[ "MIT" ]
null
null
null
protocol_crm/protocol_crm/users/migrations/0009_delete_emailaddress.py
radugaf/Protocol_Agency_v1.1
2473ee85adbf82cd7c97618423536c4795ce67d6
[ "MIT" ]
null
null
null
protocol_crm/protocol_crm/users/migrations/0009_delete_emailaddress.py
radugaf/Protocol_Agency_v1.1
2473ee85adbf82cd7c97618423536c4795ce67d6
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-30 12:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0008_emailaddress'), ] operations = [ migrations.DeleteModel( name='EmailAddress', ), ]
17.235294
47
0.600683
0fe2b928e541bcd736b127312bf762b75f3ac14f
384
py
Python
blog/forms.py
dnaranjo89/djangae-test
d52ebc135978b43b1c8c0aeddbd0dd2802c81376
[ "Apache-2.0" ]
null
null
null
blog/forms.py
dnaranjo89/djangae-test
d52ebc135978b43b1c8c0aeddbd0dd2802c81376
[ "Apache-2.0" ]
null
null
null
blog/forms.py
dnaranjo89/djangae-test
d52ebc135978b43b1c8c0aeddbd0dd2802c81376
[ "Apache-2.0" ]
null
null
null
from wtforms import fields from wtforms.ext.appengine.db import model_form from wtforms.ext.appengine.fields import ReferencePropertyField from blog.models import Article, Comment ArticleFormBase = model_form(Article) class ArticleForm(ArticleFormBase): views = fields.IntegerField(default=0) CommentFormBase = mo...
25.6
63
0.822917
fb6d66021a26cc3504bdf76e58eece2a8e7b3ebd
16,124
py
Python
openstack_dashboard/dashboards/project/overview/tests.py
dani4571/horizon
da9aa35ac4c4ba2c42a92817564362bae8509075
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/overview/tests.py
dani4571/horizon
da9aa35ac4c4ba2c42a92817564362bae8509075
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/overview/tests.py
dani4571/horizon
da9aa35ac4c4ba2c42a92817564362bae8509075
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
43.112299
79
0.657219
9bf69ab0ac82ee4928bc86dbd0ace15e408ac254
12,779
py
Python
pycue/tests/wrappers/show_test.py
srbhss/OpenCue
c0b8aeab0ea324c3c46541d98b4a968230c668eb
[ "Apache-2.0" ]
null
null
null
pycue/tests/wrappers/show_test.py
srbhss/OpenCue
c0b8aeab0ea324c3c46541d98b4a968230c668eb
[ "Apache-2.0" ]
2
2019-10-02T23:58:20.000Z
2020-03-30T19:18:48.000Z
pycue/tests/wrappers/show_test.py
srbhss/OpenCue
c0b8aeab0ea324c3c46541d98b4a968230c668eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2018 Sony Pictures Imageworks 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 req...
42.596667
107
0.70835
23d8c7d3270d8df18a07a56e4c4586172abe3bd3
3,014
bzl
Python
pkg-externals.bzl
tungyingwaltz/components
db126b579760263ea8de30689c54c4d32fa2137a
[ "MIT" ]
19,494
2016-01-04T18:52:26.000Z
2019-04-25T17:20:25.000Z
pkg-externals.bzl
tungyingwaltz/components
db126b579760263ea8de30689c54c4d32fa2137a
[ "MIT" ]
24,061
2019-04-25T19:39:27.000Z
2022-03-31T17:22:43.000Z
pkg-externals.bzl
tungyingwaltz/components
db126b579760263ea8de30689c54c4d32fa2137a
[ "MIT" ]
6,150
2016-01-04T19:01:46.000Z
2019-04-25T16:03:42.000Z
load("//src/cdk:config.bzl", "CDK_ENTRYPOINTS") load("//src/cdk-experimental:config.bzl", "CDK_EXPERIMENTAL_ENTRYPOINTS") load("//src/material:config.bzl", "MATERIAL_ENTRYPOINTS", "MATERIAL_TESTING_ENTRYPOINTS") load( "//src/material-experimental:config.bzl", "MATERIAL_EXPERIMENTAL_ENTRYPOINTS", "MATERIAL_E...
35.046512
97
0.748839
0149d73ff9c3e6780805b086fbbc1504653d4a0f
542
py
Python
c1_2_processes/s15_divisor.py
zhou-zhenyi/sicp
ee6475d79a486a3bdc458378c55d0721195ea7d6
[ "MIT" ]
null
null
null
c1_2_processes/s15_divisor.py
zhou-zhenyi/sicp
ee6475d79a486a3bdc458378c55d0721195ea7d6
[ "MIT" ]
null
null
null
c1_2_processes/s15_divisor.py
zhou-zhenyi/sicp
ee6475d79a486a3bdc458378c55d0721195ea7d6
[ "MIT" ]
null
null
null
from util import logl from util import newl from util import square def smallest_divisor(n): return find_divisor(n, 2) def find_divisor(n, test_divisor): logl("(" + str(n) + ", " + str(test_divisor) + ")") if square(test_divisor) > n: return n elif divides(test_divisor, n): return tes...
18.689655
55
0.642066
4e9cb9109c64e0b7da92cf73c6545921b0b29310
4,762
py
Python
docs/conf.py
lukka5/ledger
d3381049504578b3a89771d828e6383d08403625
[ "MIT" ]
null
null
null
docs/conf.py
lukka5/ledger
d3381049504578b3a89771d828e6383d08403625
[ "MIT" ]
null
null
null
docs/conf.py
lukka5/ledger
d3381049504578b3a89771d828e6383d08403625
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # ledger documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All ...
29.214724
77
0.682906
ccbadd05f7e7ed2faee1123fae047e79e5fe4daf
2,513
py
Python
tools/conll2eval.py
ragerri/ixa-pipe-convert
4e6cabb440951118ed213edabf2991a64607a5fc
[ "Apache-2.0" ]
2
2017-04-01T10:16:09.000Z
2020-07-23T09:07:02.000Z
tools/conll2eval.py
ragerri/ixa-pipe-convert
4e6cabb440951118ed213edabf2991a64607a5fc
[ "Apache-2.0" ]
3
2017-04-15T06:03:46.000Z
2019-03-20T10:16:31.000Z
tools/conll2eval.py
ragerri/ixa-pipe-convert
4e6cabb440951118ed213edabf2991a64607a5fc
[ "Apache-2.0" ]
5
2015-07-07T14:48:55.000Z
2017-09-28T06:07:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This script takes as input two datasets in CoNLL format and creates a new dataset which can be used to evaluate results using conlleval.txt script for the chunking and NER CoNLL shared evaluation tasks. Example Usage: python conll-2-eval.py -test file.txt -ref esp....
35.394366
102
0.659371
842f126a947b1bf1bab4ebbe83383819b9f48abd
17,522
py
Python
TensorflowFL/NoiseY_OR.py
syl18via/FL_intensive
bfc12da88f8f9ae04f1a1bb6da2a8835d70c66de
[ "MIT" ]
2
2021-11-02T12:54:40.000Z
2021-11-21T14:54:02.000Z
TensorflowFL/NoiseY_OR.py
syl18via/FL_intensive
bfc12da88f8f9ae04f1a1bb6da2a8835d70c66de
[ "MIT" ]
null
null
null
TensorflowFL/NoiseY_OR.py
syl18via/FL_intensive
bfc12da88f8f9ae04f1a1bb6da2a8835d70c66de
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import tensorflow_federated as tff import tensorflow.compat.v1 as tf import numpy as np import time import random from scipy.special import comb, perm import os ### Self-defined module import policy # tf.compat.v1.enable_v2_behavior() #...
38.765487
122
0.601929
7578267ea64ed6f1f5c51c9f163088ec3680a8cf
1,543
py
Python
test/test_shell_script.py
openvax/openvax-integration-tests
0195129ffe342b687cc13da4eb48501f1c5afb70
[ "Apache-2.0" ]
null
null
null
test/test_shell_script.py
openvax/openvax-integration-tests
0195129ffe342b687cc13da4eb48501f1c5afb70
[ "Apache-2.0" ]
null
null
null
test/test_shell_script.py
openvax/openvax-integration-tests
0195129ffe342b687cc13da4eb48501f1c5afb70
[ "Apache-2.0" ]
null
null
null
from tempfile import NamedTemporaryFile from vaxrank.cli import main as run_shell_script from .testing_helpers import data_path cli_args_for_b16_seqdata = [ "--vcf", data_path("b16.f10/b16.vcf"), "--bam", data_path("b16.f10/b16.combined.bam"), "--vaccine-peptide-length", "25", "--mhc-predictor", "ran...
33.543478
81
0.65068
e17013caa4be1345ba03f8d38421d9e4deba0377
8,345
py
Python
misc/logging_handlers.py
establishment/django-establishment
ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6
[ "CC0-1.0" ]
1
2017-04-27T19:35:42.000Z
2017-04-27T19:35:42.000Z
misc/logging_handlers.py
establishment/django-establishment
ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6
[ "CC0-1.0" ]
null
null
null
misc/logging_handlers.py
establishment/django-establishment
ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6
[ "CC0-1.0" ]
null
null
null
""" This library is provided to allow standard python logging to output log data as JSON formatted strings """ import inspect import logging import json from logging.handlers import RotatingFileHandler from queue import Queue import re import datetime import traceback import time from inspect import istraceback from c...
36.762115
124
0.644218
4dd28fb34d5ba5ef9660d2cb2aec824b1a390fe1
3,707
py
Python
lightdlf_old/cpu/layers.py
sgaseretto/lightdlf
3c05127976da87477c0984766d56649965b912ba
[ "Apache-2.0" ]
1
2019-12-10T17:23:40.000Z
2019-12-10T17:23:40.000Z
lightdlf_old/cpu/layers.py
sgaseretto/lightdlf
3c05127976da87477c0984766d56649965b912ba
[ "Apache-2.0" ]
2
2021-05-20T11:53:03.000Z
2021-09-27T23:59:55.000Z
lightdlf_old/cpu/layers.py
sgaseretto/lightdlf
3c05127976da87477c0984766d56649965b912ba
[ "Apache-2.0" ]
null
null
null
import numpy as np from lightdlf_old.cpu.core import Tensor class Layer(object): def __init__(self): self.parameters = list() def get_parameters(self): return self.parameters class Linear(Layer): def __init__(self, n_inputs, n_outputs): super().__init__() W = np.random...
26.478571
85
0.631508
de86d0be667640a33ffd25b69cdd3b2dcb0a907c
8,638
py
Python
nuitka/nodes/BuiltinRefNodes.py
timgates42/Nuitka
536f39e37d8657ec750304bb1a93ccb19d1942af
[ "Apache-2.0" ]
1
2020-12-20T19:01:50.000Z
2020-12-20T19:01:50.000Z
nuitka/nodes/BuiltinRefNodes.py
timgates42/Nuitka
536f39e37d8657ec750304bb1a93ccb19d1942af
[ "Apache-2.0" ]
1
2021-01-05T09:01:31.000Z
2021-01-05T09:01:31.000Z
nuitka/nodes/BuiltinRefNodes.py
timgates42/Nuitka
536f39e37d8657ec750304bb1a93ccb19d1942af
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
31.874539
87
0.697847
9fba57373e9d183f176896b6832f10470dca4dbd
86
py
Python
pkg/entity/InputData.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/entity/InputData.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/entity/InputData.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass @dataclass class InputData: function_path: str
14.333333
33
0.802326
f4703c8feac80396bfbc8e53671168b49672fd8c
720
py
Python
LC/199.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/199.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/199.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def rightSideView(self, root): """ :type root: TreeNode :rtype: List[int] """ res...
25.714286
44
0.502778
aabe7a4104a8adf25e53e4ef681ac9441f66c8d9
4,626
py
Python
3_Attribute_Normalisation_and_Dimension_Reduction/code.py
ANIMO-07/General-DataScience
41ec4d0d0a6c73b2564b713d733bd2e98daa14ee
[ "MIT" ]
1
2021-09-06T10:13:39.000Z
2021-09-06T10:13:39.000Z
3_Attribute_Normalisation_and_Dimension_Reduction/code.py
dheeraj-mlv/General-DataScience
2d99ab6debca1d68906f1de4f3d786550cdb402e
[ "MIT" ]
null
null
null
3_Attribute_Normalisation_and_Dimension_Reduction/code.py
dheeraj-mlv/General-DataScience
2d99ab6debca1d68906f1de4f3d786550cdb402e
[ "MIT" ]
3
2021-09-06T09:09:21.000Z
2021-11-04T15:27:12.000Z
import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn import decomposition df = pd.read_csv("landslide_data3.csv") #Reading the file #Question 1 df = df.drop(columns=['dates', 'stationid']) for key in df.keys(): vals = [] _, box = df.boxplot(column=[key], return_type='...
26.135593
119
0.635754
a39e6db3fbddf953996e559195f4c9f05da612ef
1,011
py
Python
tests/module_tests/baseModules.py
kumaresanhm/Ansible-roleSDK
4fe1d53a3738a9ac0644ff57e5f5182eb1d5a319
[ "Apache-2.0" ]
null
null
null
tests/module_tests/baseModules.py
kumaresanhm/Ansible-roleSDK
4fe1d53a3738a9ac0644ff57e5f5182eb1d5a319
[ "Apache-2.0" ]
null
null
null
tests/module_tests/baseModules.py
kumaresanhm/Ansible-roleSDK
4fe1d53a3738a9ac0644ff57e5f5182eb1d5a319
[ "Apache-2.0" ]
null
null
null
class AnsibleExitJson(Exception): """Exception class to be raised by module.exit_json and caught by the test case""" pass class AnsibleFailJson(Exception): """Exception class to be raised by module.fail_json and caught by the test case""" pass class AnsibleModules: def exit_json(*args, **kwarg...
29.735294
86
0.636004
da08d43c5dcd0a772385bda1c08a9760ee07f6ef
424
py
Python
src/inventory/entities/factories.py
eshatro/warehouse
52585c9699063a5ebb94eedd5511f6300331b764
[ "BSD-3-Clause" ]
null
null
null
src/inventory/entities/factories.py
eshatro/warehouse
52585c9699063a5ebb94eedd5511f6300331b764
[ "BSD-3-Clause" ]
null
null
null
src/inventory/entities/factories.py
eshatro/warehouse
52585c9699063a5ebb94eedd5511f6300331b764
[ "BSD-3-Clause" ]
null
null
null
from typing import Dict, List from .article import Article from .product import Product def inventory_factory(articles: List[Dict]): for article in articles: yield Article(**article) def products_factory(products: List[Dict]): for product in products: product["articles"] = [ Art...
23.555556
75
0.676887
06e70e8f9bc024120805ec0088e548fcf5cee38c
3,374
py
Python
ddtrace/profiling/profiler.py
tredzko/dd-trace-py
aa3214671d7843447aa11ba1aea1202eae4aff5a
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ddtrace/profiling/profiler.py
tredzko/dd-trace-py
aa3214671d7843447aa11ba1aea1202eae4aff5a
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ddtrace/profiling/profiler.py
tredzko/dd-trace-py
aa3214671d7843447aa11ba1aea1202eae4aff5a
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- import logging import os from ddtrace.profiling import recorder from ddtrace.profiling import scheduler from ddtrace.vendor import attr from ddtrace.profiling.collector import exceptions from ddtrace.profiling.collector import memory from ddtrace.profiling.collector import stack from ddtrace....
28.116667
113
0.676941
8763fdde4b497e1257ecf7097eeef095b2617719
16,169
py
Python
lib/galaxy/datatypes/text.py
mysticmirages/GalaxyProject
6a47d2d3a7f27b659e5de5fb1b37c7c1f9d04302
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/datatypes/text.py
mysticmirages/GalaxyProject
6a47d2d3a7f27b659e5de5fb1b37c7c1f9d04302
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/datatypes/text.py
mysticmirages/GalaxyProject
6a47d2d3a7f27b659e5de5fb1b37c7c1f9d04302
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Clearing house for generic text datatypes that are not XML or tabular. """ import gzip import json import logging import os import re import subprocess import tempfile from galaxy.datatypes.data import get_file_peek, Text from galaxy.datatypes.metadata import MetadataElement from galaxy.ut...
42.43832
154
0.549632
25821df9b28d5abb10cb8bfca11b2d28e44ad0c1
1,377
py
Python
colcon_alias/verb/alias.py
colcon/colcon-alias
6cd8e007444237b3e95a15a4227fab255f3192d1
[ "Apache-2.0" ]
null
null
null
colcon_alias/verb/alias.py
colcon/colcon-alias
6cd8e007444237b3e95a15a4227fab255f3192d1
[ "Apache-2.0" ]
null
null
null
colcon_alias/verb/alias.py
colcon/colcon-alias
6cd8e007444237b3e95a15a4227fab255f3192d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Scott K Logan # Licensed under the Apache License, Version 2.0 from colcon_alias.config import update_config from colcon_core.plugin_system import satisfies_version from colcon_core.verb import VerbExtensionPoint class AliasVerb(VerbExtensionPoint): """Create and modify command aliases.""" ...
37.216216
77
0.618736
59b570e887619acc5bc67f54db4f10cb53e7d1ad
5,035
py
Python
lib/matplotlib/units.py
stefanv/matplotlib
2c6c3695ef989ec86b7c43740462ef992685022f
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
1
2017-01-25T00:38:48.000Z
2017-01-25T00:38:48.000Z
lib/python2.7/matplotlib/units.py
ashley8jain/IITD-complaint-system-web
21a94601cba710f558d1689b87cfc391a1541c9f
[ "BSD-3-Clause" ]
null
null
null
lib/python2.7/matplotlib/units.py
ashley8jain/IITD-complaint-system-web
21a94601cba710f558d1689b87cfc391a1541c9f
[ "BSD-3-Clause" ]
null
null
null
""" The classes here provide support for using custom classes with matplotlib, eg those that do not expose the array interface but know how to converter themselves to arrays. It also supoprts classes with units and units conversion. Use cases include converters for custom objects, eg a list of datetime objects, as we...
34.724138
88
0.642502
e487538e85ed75cb29bd2862ed0a6a62a4b239ef
2,700
py
Python
player/judge/case.py
yangzecai/2021-Huawei-Embedded-Competition
f548b472b013ec6ba5ab66433558c962c0fc8d21
[ "MIT" ]
null
null
null
player/judge/case.py
yangzecai/2021-Huawei-Embedded-Competition
f548b472b013ec6ba5ab66433558c962c0fc8d21
[ "MIT" ]
null
null
null
player/judge/case.py
yangzecai/2021-Huawei-Embedded-Competition
f548b472b013ec6ba5ab66433558c962c0fc8d21
[ "MIT" ]
null
null
null
import copy from path import PathMgr from res import ResMgr from reader import IntReader from config import Config class Case: def GetNodePair(send, recv): if send < recv: return send * Config.NODE_MAX_ID + recv else: return recv * Config.NODE_MAX_ID + send ...
29.67033
68
0.574074
6e4d8e61fe1a63a161256886c3a19a8327c14847
17,290
py
Python
astrodatapy/number_density.py
qyx268/AstroDataPy
80094b6d5b0b2509ef4cee91d7e67560fee48de2
[ "BSD-3-Clause" ]
6
2018-05-07T14:06:50.000Z
2021-11-03T12:50:38.000Z
astrodatapy/number_density.py
qyx268/AstroDataPy
80094b6d5b0b2509ef4cee91d7e67560fee48de2
[ "BSD-3-Clause" ]
7
2018-05-03T00:31:16.000Z
2021-10-05T01:51:51.000Z
astrodatapy/number_density.py
qyx268/AstroDataPy
80094b6d5b0b2509ef4cee91d7e67560fee48de2
[ "BSD-3-Clause" ]
2
2018-10-18T03:35:29.000Z
2021-07-13T10:20:14.000Z
from __future__ import print_function import os import glob import pandas as pd import numpy as np from .misc_tools import * fileDir = os.path.dirname(os.path.abspath(__file__)) # For IMF convertion Cha2Sal = np.log10(1.8) Kro2Sal = np.log10(1.5) DietSal2Sal = -np.log10(0.7) list_IMF = ['Salpeter', 'DietSa...
46.856369
154
0.535454
50b344fc269089505a609c86233e73b60ee9a0ce
4,700
py
Python
Analysis_Param_Call.py
yangshouguo/Graph-based_Bug_Search
41f1e14f49e9f107508eb98c89d2333fb14630e4
[ "MIT" ]
9
2017-09-12T09:16:50.000Z
2021-11-10T14:46:08.000Z
Analysis_Param_Call.py
yangshouguo/Graph-based_Bug_Search
41f1e14f49e9f107508eb98c89d2333fb14630e4
[ "MIT" ]
null
null
null
Analysis_Param_Call.py
yangshouguo/Graph-based_Bug_Search
41f1e14f49e9f107508eb98c89d2333fb14630e4
[ "MIT" ]
8
2017-08-21T15:46:30.000Z
2020-02-23T03:20:25.000Z
#!/usr/bin/env python # coding=utf-8 from idc import * from idaapi import * import idautils class AnayBinFil(object): def __init__(self): list = [] # 得到某一条汇编指令所指向的内存的内容 def GetXref_String(self,ea,n): if (GetOpType(ea,n) == 2): ea = GetOperandValue(ea,n) if (not SegName(...
30.921053
88
0.525106
432b1873e9eee016a23b4bd491f3de7971729b74
14,158
py
Python
lemur/sources/cli.py
sebasamd/lemur
cfe30d437830556d9ef57e9aa0dbe9849b02f74c
[ "Apache-2.0" ]
null
null
null
lemur/sources/cli.py
sebasamd/lemur
cfe30d437830556d9ef57e9aa0dbe9849b02f74c
[ "Apache-2.0" ]
76
2021-12-01T17:24:02.000Z
2022-03-28T15:32:28.000Z
lemur/sources/cli.py
ardichoke/lemur
27a56756c6a0a8f79c0fa4077c7bbbcfc240b8bd
[ "Apache-2.0" ]
null
null
null
""" .. module: lemur.sources.cli :platform: Unix :copyright: (c) 2018 by Netflix Inc., see AUTHORS for more :license: Apache, see LICENSE for more details. .. moduleauthor:: Kevin Glisson <kglisson@netflix.com> """ from copy import deepcopy import sys import time from tabulate import tabulate from flask_sc...
34.280872
140
0.627772
c85b22a57a9616b620961987b4dabbd880f3d7da
981
py
Python
Chapter2/ex_2_4.py
zxjzxj9/PyTorchIntroduction
9435542b17840272f1787119a00fc3daf8815455
[ "BSD-3-Clause" ]
205
2020-05-27T12:57:42.000Z
2022-03-29T03:32:09.000Z
Chapter2/ex_2_4.py
sophiewu1204/PyTorchIntroduction
ef9e01d815696cfc9ba882c303116140f8163141
[ "BSD-3-Clause" ]
9
2020-06-12T01:17:54.000Z
2021-01-06T12:45:11.000Z
Chapter2/ex_2_4.py
sophiewu1204/PyTorchIntroduction
ef9e01d815696cfc9ba882c303116140f8163141
[ "BSD-3-Clause" ]
63
2020-06-27T02:46:22.000Z
2022-03-22T02:21:49.000Z
""" 为了能够现实下列代码的执行效果,请在安装PyTorch之后,在Python交互命令行界面, 即在系统命令行下输入python这个命令回车后,在>>>提示符后执行下列代码 (#号及其后面内容为注释,可以忽略) """ import numpy as np # 导入numpy包 import torch # 导入torch包 torch.tensor([1,2,3,4]) # 转换Python列表为PyTorch张量 torch.tensor([1,2,3,4]).dtype # 查看张量数据类型 torch.tensor([1,2,3,4], dtype=torch.float32) # 指定数据类型为32位...
42.652174
85
0.70948
6500fe9d12b03b43daff324725486eb22150a2f6
2,518
py
Python
MyInputReader.py
mijeongl/goldfish
544cb664046c42682f4fe2b026442011d51f617a
[ "MIT" ]
null
null
null
MyInputReader.py
mijeongl/goldfish
544cb664046c42682f4fe2b026442011d51f617a
[ "MIT" ]
null
null
null
MyInputReader.py
mijeongl/goldfish
544cb664046c42682f4fe2b026442011d51f617a
[ "MIT" ]
null
null
null
''' Created on 2017. 10. 16. @author: MiJeong Lee(01413522) ''' def MyInputReader(dataset): fileLocations = { 'small_b': ['inputs/trainBalanced.pos','inputs/trainBalanced.neg','inputs/validBalanced.pos','inputs/validBalanced.neg'], 'small_i': ['inputs/trainImbalanced.pos','inputs/trainImbalanced.neg...
36.492754
139
0.495234
6dce1bee15f82ff02c398cbc584eb84c0c034437
2,981
py
Python
nova/api/openstack/compute/contrib/flavor_rxtx.py
dreamhost/nova
066a3d4c410056689b5843d9520f43b2b6e7d127
[ "Apache-2.0" ]
1
2019-11-06T12:21:59.000Z
2019-11-06T12:21:59.000Z
nova/api/openstack/compute/contrib/flavor_rxtx.py
dreamhost/nova
066a3d4c410056689b5843d9520f43b2b6e7d127
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/contrib/flavor_rxtx.py
dreamhost/nova
066a3d4c410056689b5843d9520f43b2b6e7d127
[ "Apache-2.0" ]
2
2019-07-08T22:12:35.000Z
2020-07-24T08:27:24.000Z
# Copyright 2012 Nebula, 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...
33.875
79
0.68467
cb87f1c4e949c3ef8e6acc952e1cd57bcf7533ec
3,271
py
Python
otp/level/Entity.py
AnonymousDeveloper65535/open-toontown
3d05c22a7d960ad843dde231140447c46973dba5
[ "BSD-3-Clause" ]
8
2017-10-10T11:41:01.000Z
2021-02-23T12:55:47.000Z
otp/level/Entity.py
AnonymousDeveloper65535/open-toontown
3d05c22a7d960ad843dde231140447c46973dba5
[ "BSD-3-Clause" ]
1
2021-06-08T17:16:48.000Z
2021-06-08T17:16:48.000Z
otp/level/Entity.py
AnonymousDeveloper65535/open-toontown
3d05c22a7d960ad843dde231140447c46973dba5
[ "BSD-3-Clause" ]
3
2021-06-03T05:36:36.000Z
2021-06-22T15:07:31.000Z
from direct.showbase.DirectObject import DirectObject from direct.showbase.PythonUtil import lineInfo import string from direct.directnotify import DirectNotifyGlobal class Entity(DirectObject): notify = DirectNotifyGlobal.directNotify.newCategory('Entity') def __init__(self, level = None, entId = None): ...
32.068627
87
0.603485
2d5070e08f73eda15b28209995bc0c9a690e8032
5,517
py
Python
examples/pwr_run/checkpointing/jobs_max_pwr/job26.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/jobs_max_pwr/job26.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/jobs_max_pwr/job26.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
30.821229
118
0.704368
a40466a34505460e04f557cbc5904dbfcf220123
87,034
py
Python
web/app/tools/androscan/libs/AndroBugs/tools/modified/androguard/core/resources/public.py
jhedden/jackhammer
8742a35341681d330ca9f12d7c05b75b67cb60cc
[ "Apache-2.0" ]
22
2019-11-10T06:03:07.000Z
2022-02-28T07:37:07.000Z
web/app/tools/androscan/libs/AndroBugs/tools/modified/androguard/core/resources/public.py
jhedden/jackhammer
8742a35341681d330ca9f12d7c05b75b67cb60cc
[ "Apache-2.0" ]
2
2018-11-22T05:31:02.000Z
2019-05-12T01:50:42.000Z
web/app/tools/androscan/libs/AndroBugs/tools/modified/androguard/core/resources/public.py
jhedden/jackhammer
8742a35341681d330ca9f12d7c05b75b67cb60cc
[ "Apache-2.0" ]
10
2018-10-16T08:18:50.000Z
2022-03-15T08:23:17.000Z
resources = { 'style': { 'Animation' : 16973824, 'Animation.Activity' : 16973825, 'Animation.Dialog' : 16973826, 'Animation.InputMethod' : 16973910, 'Animation.Toast' : 16973828, 'Animation.Translucent' : 16973827, 'DeviceDefault.ButtonBar' : 16974287, ...
44.955579
85
0.644116
d44da7cdb98c6533a203ce0ba5ee95d16ad79803
2,658
py
Python
datasets.py
SeungyounShin/c3-gan
1fae645674c896b4bcb93e910034519f470a6a96
[ "BSD-2-Clause" ]
105
2022-01-04T12:05:35.000Z
2022-03-21T10:22:53.000Z
datasets.py
SeungyounShin/c3-gan
1fae645674c896b4bcb93e910034519f470a6a96
[ "BSD-2-Clause" ]
null
null
null
datasets.py
SeungyounShin/c3-gan
1fae645674c896b4bcb93e910034519f470a6a96
[ "BSD-2-Clause" ]
7
2022-01-05T02:04:28.000Z
2022-03-14T12:33:22.000Z
import os from PIL import Image import torch.utils.data as data import torchvision.transforms as transforms class Dataset(data.Dataset): def __init__(self, data_dir, mode='train'): self.transform = transforms.Compose([transforms.Resize(128), transforms.Rando...
42.870968
125
0.527088
365636eff3fdc23d9596998f60d55398775dd54a
8,299
py
Python
app.py
cfpb/grasshopper-parser
a5cb86302faf19cad99f8d36921ab514e24b0ad3
[ "CC0-1.0" ]
9
2015-06-02T04:41:43.000Z
2019-02-06T20:06:21.000Z
app.py
cfpb/grasshopper-parser
a5cb86302faf19cad99f8d36921ab514e24b0ad3
[ "CC0-1.0" ]
39
2015-05-04T20:18:23.000Z
2016-11-21T19:28:54.000Z
app.py
cfpb/grasshopper-parser
a5cb86302faf19cad99f8d36921ab514e24b0ad3
[ "CC0-1.0" ]
7
2015-05-04T20:15:58.000Z
2021-02-21T10:16:47.000Z
""" Flask-based REST API for parsing address string into its component parts """ from datetime import datetime from flask import Flask, jsonify, request import platform import pytz import usaddress import yaml class AddressParserError(Exception): """ Exception for any failures that occur during address parsin...
30.288321
121
0.650078
32b47bb44a3ae77d6ce905cb571f0c4e79d2b2b2
2,807
py
Python
nodes/pymon.py
cedricpradalier/ros_invariants
34af0f40bb2cfd26fca8cdba0fa1aa07e8e36d65
[ "BSD-2-Clause" ]
null
null
null
nodes/pymon.py
cedricpradalier/ros_invariants
34af0f40bb2cfd26fca8cdba0fa1aa07e8e36d65
[ "BSD-2-Clause" ]
null
null
null
nodes/pymon.py
cedricpradalier/ros_invariants
34af0f40bb2cfd26fca8cdba0fa1aa07e8e36d65
[ "BSD-2-Clause" ]
1
2020-02-24T05:09:56.000Z
2020-02-24T05:09:56.000Z
#!/usr/bin/python #import roslib; # roslib.load_manifest('ros_invariants') import rospy import sys import re import time import getopt from math import * from ros_invariants.Monitor import * ###### Option parsing ################### def printhelp(): print "Usage: %s [-h] [-p] [-g] <condition file>" % sys.argv[...
25.518182
91
0.565729
7b2d3fe9bc316682e784a98013458b2bcf1aea02
4,058
py
Python
homeassistant/requirements.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
homeassistant/requirements.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
9
2022-01-27T06:32:10.000Z
2022-03-31T07:07:51.000Z
homeassistant/requirements.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""Module to handle installing requirements.""" import asyncio import logging import os from pathlib import Path from typing import Any, Dict, Iterable, List, Optional, Set from homeassistant.core import HomeAssistant from homeassistant.exceptions import HomeAssistantError from homeassistant.loader import Integration,...
31.215385
86
0.680384
9c59d11e6ebff2490cba710d35dd4671a0c0ffee
35,138
py
Python
discord/ext/commands/bot.py
Kenvyra/discord.py
fe5e595239833c306e667916b47f88c6f15c309d
[ "MIT" ]
null
null
null
discord/ext/commands/bot.py
Kenvyra/discord.py
fe5e595239833c306e667916b47f88c6f15c309d
[ "MIT" ]
null
null
null
discord/ext/commands/bot.py
Kenvyra/discord.py
fe5e595239833c306e667916b47f88c6f15c309d
[ "MIT" ]
1
2020-10-01T15:44:02.000Z
2020-10-01T15:44:02.000Z
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2020 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
33.274621
118
0.596648
aa87e2637c161c1774024857fbd362775a2ddc8c
1,744
py
Python
nipype/interfaces/mrtrix/tests/test_auto_MRConvert.py
grlee77/nipype
73f3a733ac1b7d9b09ec32a387905a9302423b87
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/mrtrix/tests/test_auto_MRConvert.py
grlee77/nipype
73f3a733ac1b7d9b09ec32a387905a9302423b87
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/mrtrix/tests/test_auto_MRConvert.py
grlee77/nipype
73f3a733ac1b7d9b09ec32a387905a9302423b87
[ "BSD-3-Clause" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from nipype.testing import assert_equal from nipype.interfaces.mrtrix.preprocess import MRConvert def test_MRConvert_inputs(): input_map = dict(args=dict(argstr='%s', ), environ=dict(nohash=True, usedefault=True, ), extension=dict(position=2...
23.567568
78
0.618693
7664ecfeeb61a59096881325efe74f88f19ea23d
1,381
py
Python
SCTF/2017 Finals/iem/exp.py
PurpEth/solved-hacking-problem
6f289d1647eb9c091caa580c7aae673e3ba02952
[ "Unlicense" ]
1
2021-08-24T22:16:41.000Z
2021-08-24T22:16:41.000Z
SCTF/2017 Finals/iem/exp.py
PurpEth/solved-hacking-problem
6f289d1647eb9c091caa580c7aae673e3ba02952
[ "Unlicense" ]
null
null
null
SCTF/2017 Finals/iem/exp.py
PurpEth/solved-hacking-problem
6f289d1647eb9c091caa580c7aae673e3ba02952
[ "Unlicense" ]
null
null
null
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler from SocketServer import ThreadingMixIn import random import sys import os class IteratedEvenMansour(): def __init__(self, keys): self.keys = keys self.rndMap = self.genRndMap('I love Crypto. How about you?') def permutation(self, ...
25.109091
69
0.565532
70f7902c3b3344ea9969171a17d750faac58d4de
415
py
Python
tourer/app/compose_message/__init__.py
anpylar/anpylar-tutorial
070bab3ff0ed4f34449d75d01b5b851cf878da40
[ "MIT" ]
1
2018-01-18T17:34:18.000Z
2018-01-18T17:34:18.000Z
tourer/app/compose_message/__init__.py
anpylar/anpylar-tutorial
070bab3ff0ed4f34449d75d01b5b851cf878da40
[ "MIT" ]
null
null
null
tourer/app/compose_message/__init__.py
anpylar/anpylar-tutorial
070bab3ff0ed4f34449d75d01b5b851cf878da40
[ "MIT" ]
null
null
null
############################################################################### # Copyright 2018 The AnPyLar Team. All Rights Reserved. # Use of this source code is governed by an MIT-style license that # can be found in the LICENSE file at http://anpylar.com/mit-license ################################################...
59.285714
79
0.496386
c3f99821fa93879c2e497b68fdb8730cc7306b4a
2,669
py
Python
samples/cli/accelbyte_py_sdk_cli/legal/_change_preference_consent.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
samples/cli/accelbyte_py_sdk_cli/legal/_change_preference_consent.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
samples/cli/accelbyte_py_sdk_cli/legal/_change_preference_consent.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # justice-legal-service (1.22.2) # pylint: disable=duplicate-code ...
32.950617
102
0.722368
b43952e6330c3a096f7a6fc7bb86d3ce33d41e67
2,455
py
Python
homeassistant/components/sensor/wink.py
bytebility/home-assistant
6015274ee2486f797fd6ee8f5f2074a601953e03
[ "MIT" ]
1
2017-01-25T15:31:20.000Z
2017-01-25T15:31:20.000Z
homeassistant/components/sensor/wink.py
bytebility/home-assistant
6015274ee2486f797fd6ee8f5f2074a601953e03
[ "MIT" ]
null
null
null
homeassistant/components/sensor/wink.py
bytebility/home-assistant
6015274ee2486f797fd6ee8f5f2074a601953e03
[ "MIT" ]
null
null
null
""" Support for Wink sensors. For more details about this platform, please refer to the documentation at at https://home-assistant.io/components/sensor.wink/ """ import logging from homeassistant.const import TEMP_CELSIUS from homeassistant.helpers.entity import Entity from homeassistant.components.wink import WinkDe...
32.733333
74
0.634216
ad93fdc86363f9fca23314309761d821724b7dbe
1,287
py
Python
pwnlib/useragents.py
DrKeineLust/pwntools
415f11bba7096b7d68fe144f5b3432b9c12a4f0a
[ "MIT" ]
8,966
2015-01-02T11:58:14.000Z
2022-03-31T21:19:56.000Z
pwnlib/useragents.py
DrKeineLust/pwntools
415f11bba7096b7d68fe144f5b3432b9c12a4f0a
[ "MIT" ]
1,401
2015-01-01T00:56:22.000Z
2022-03-31T16:19:53.000Z
pwnlib/useragents.py
DrKeineLust/pwntools
415f11bba7096b7d68fe144f5b3432b9c12a4f0a
[ "MIT" ]
1,844
2015-01-07T04:38:06.000Z
2022-03-30T03:54:46.000Z
""" Database of >22,000 user agent strings """ from __future__ import division __all__ = ['getall', 'random'] import os import random as randommod _cache = None def _load(): global _cache if _cache is None: _cache = set() with open(os.path.join(os.path.dirname(__file__), ...
21.098361
109
0.555556
017c6a20524fe83acaea1e2422f2093136c61a40
2,086
py
Python
Aelius/ConstroiBRUBT.py
LFG-PTBR/aelius
04f659016aca4d4ff3de703350c3ecada0f85b8d
[ "Apache-2.0" ]
3
2018-12-10T13:51:30.000Z
2021-01-27T23:27:25.000Z
Aelius/ConstroiBRUBT.py
LFG-PTBR/aelius
04f659016aca4d4ff3de703350c3ecada0f85b8d
[ "Apache-2.0" ]
1
2018-04-05T19:15:46.000Z
2018-04-05T19:15:46.000Z
Aelius/ConstroiBRUBT.py
LFG-PTBR/aelius
04f659016aca4d4ff3de703350c3ecada0f85b8d
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # Aelius Brazilian Portuguese POS-Tagger and Corpus Annotation Tool # # Copyright (C) 2010-2012 Leonel F. de Alencar # Author: Leonel F. de Alencar <leonel.de.alencar@ufc.br> # # URL: <http://sourceforge.net/projects/aelius/> # For license information, see LICEN...
38.62963
81
0.713806
923ac92873ae0b99d79727ff8741d22b42e66691
1,971
py
Python
conjur/logic/hostfactory_logic.py
mbjahnoon/conjur-api-python3
ec1f62bb1baf2bdcd34d2fb92c97db724f761020
[ "Apache-2.0" ]
16
2019-05-17T15:34:59.000Z
2021-11-08T10:30:21.000Z
conjur/logic/hostfactory_logic.py
mbjahnoon/conjur-api-python3
ec1f62bb1baf2bdcd34d2fb92c97db724f761020
[ "Apache-2.0" ]
301
2019-05-07T18:27:10.000Z
2022-01-26T13:03:49.000Z
conjur/logic/hostfactory_logic.py
mbjahnoon/conjur-api-python3
ec1f62bb1baf2bdcd34d2fb92c97db724f761020
[ "Apache-2.0" ]
10
2019-07-30T17:00:13.000Z
2022-01-20T17:00:34.000Z
# -*- coding: utf-8 -*- """ HostFactoryLogic This module holds the business logic for executing and manipulating returned data """ # Builtins import json # Internals from conjur.data_object.create_token_data import CreateTokenData from conjur.data_object.create_host_data import CreateHostData from conjur.errors impo...
31.285714
94
0.709285
5ac0d5c106dcd0a142aa47162334f0df77a1afec
18,978
py
Python
OP-GAN/box_generation/seq2seq/models/DecoderRNN.py
gokuldharan/cs224u-project
2a02aebadf9f662b44a4ae2a3568c04e5395e3e8
[ "MIT" ]
1
2021-08-25T02:36:02.000Z
2021-08-25T02:36:02.000Z
OP-GAN/box_generation/seq2seq/models/DecoderRNN.py
gokuldharan/cs224u-project
2a02aebadf9f662b44a4ae2a3568c04e5395e3e8
[ "MIT" ]
null
null
null
OP-GAN/box_generation/seq2seq/models/DecoderRNN.py
gokuldharan/cs224u-project
2a02aebadf9f662b44a4ae2a3568c04e5395e3e8
[ "MIT" ]
null
null
null
import random import sys import numpy as np from random import randint import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F import torch.distributions as distributions from .attention import Attention from .baseRNN import BaseRNN if torch.cuda.is_available(): imp...
46.287805
104
0.643218
cac8d04cc5952cb980579345514d71e1f9bed332
12,923
py
Python
java/__init__.py
alexb5dh/hazelcast-client-protocol
e3bb7920cb62707d701b382ac3859c2cb7d8ef21
[ "Apache-2.0" ]
null
null
null
java/__init__.py
alexb5dh/hazelcast-client-protocol
e3bb7920cb62707d701b382ac3859c2cb7d8ef21
[ "Apache-2.0" ]
null
null
null
java/__init__.py
alexb5dh/hazelcast-client-protocol
e3bb7920cb62707d701b382ac3859c2cb7d8ef21
[ "Apache-2.0" ]
null
null
null
def java_types_encode(key): try: return _java_types_encode[key] except KeyError: return _java_types_common[key] def java_types_decode(key): try: return _java_types_decode[key] except KeyError: return _java_types_common[key] _java_types_common = { "boolean": "boole...
73.011299
184
0.768862
d968ebf4a2f207d48f7434e6592b975a7381f86a
1,483
py
Python
code/database.py
nielsole/ycombinator_newsletter
27108da2c89b245de5f284b74ad67982ac0810a0
[ "MIT" ]
1
2015-10-20T12:16:20.000Z
2015-10-20T12:16:20.000Z
code/database.py
nielsole/ycombinator_newsletter
27108da2c89b245de5f284b74ad67982ac0810a0
[ "MIT" ]
1
2017-03-03T08:43:40.000Z
2017-03-03T19:44:18.000Z
code/database.py
nielsole/ycombinator_newsletter
27108da2c89b245de5f284b74ad67982ac0810a0
[ "MIT" ]
null
null
null
__author__ = 'flshrmb' import sqlite3 as lite def is_in_db(number, cur): cur.execute("SELECT * FROM Stories WHERE Id = ?;", (str(number),)) rows = cur.fetchone() if rows is not None: return True return False def insert(json_data, cur): try: url = json_data['url'] except KeyEr...
30.265306
145
0.628456
662e5984c97258fdc9e12da8b5e7e528a92e6de6
218
py
Python
veterinary_application/veterinary_application/doctype/subcounty/test_subcounty.py
howdini/veterinary_application
c90ac92e4c388abba284025509985a11efe2edef
[ "MIT" ]
null
null
null
veterinary_application/veterinary_application/doctype/subcounty/test_subcounty.py
howdini/veterinary_application
c90ac92e4c388abba284025509985a11efe2edef
[ "MIT" ]
null
null
null
veterinary_application/veterinary_application/doctype/subcounty/test_subcounty.py
howdini/veterinary_application
c90ac92e4c388abba284025509985a11efe2edef
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, Borealis Systems and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestSubcounty(unittest.TestCase): pass
19.818182
55
0.766055
bc74d6d7f724c27cbd373da0a2ed02595b640629
602
py
Python
cloudmersive_voicerecognition_api_client/models/__init__.py
Cloudmersive/Cloudmersive.APIClient.Python.VoiceRecognition
ab03179bd3449dc54d33ebbeabe00fcc45960335
[ "Apache-2.0" ]
null
null
null
cloudmersive_voicerecognition_api_client/models/__init__.py
Cloudmersive/Cloudmersive.APIClient.Python.VoiceRecognition
ab03179bd3449dc54d33ebbeabe00fcc45960335
[ "Apache-2.0" ]
null
null
null
cloudmersive_voicerecognition_api_client/models/__init__.py
Cloudmersive/Cloudmersive.APIClient.Python.VoiceRecognition
ab03179bd3449dc54d33ebbeabe00fcc45960335
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # flake8: noqa """ speechapi Speech APIs enable you to recognize speech and convert it to text using advanced machine learning, and also to convert text to speech. # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from _...
30.1
152
0.802326
416c0c3b865d1d6b94c24f83bf45d7b9e91a11bd
8,714
py
Python
logdevice/ops/ldops/cluster.py
YangKian/LogDevice
e5c2168c11e9de867a1bcf519f95016e1c879b5c
[ "BSD-3-Clause" ]
1,831
2018-09-12T15:41:52.000Z
2022-01-05T02:38:03.000Z
logdevice/ops/ldops/cluster.py
YangKian/LogDevice
e5c2168c11e9de867a1bcf519f95016e1c879b5c
[ "BSD-3-Clause" ]
183
2018-09-12T16:14:59.000Z
2021-12-07T15:49:43.000Z
logdevice/ops/ldops/cluster.py
YangKian/LogDevice
e5c2168c11e9de867a1bcf519f95016e1c879b5c
[ "BSD-3-Clause" ]
228
2018-09-12T15:41:51.000Z
2022-01-05T08:12:09.000Z
#!/usr/bin/env python3 # pyre-strict # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. """ ldops.cluster ~~~~~~~~~~~ Implements cluster-specific operations. """ ...
33.515385
100
0.685908
734cc161aa4f4beaf60ab0586e89385e2f170209
7,460
py
Python
talib/__init__.py
wouldayajustlookatit/ta-lib
d884fc4b86ea1be96c6bc0c9a48f350f2cc43472
[ "BSD-2-Clause" ]
1
2020-07-18T18:30:32.000Z
2020-07-18T18:30:32.000Z
talib/__init__.py
wansiedler/ta-lib
d71bf6e120b83f8b35bd8186ab9086b66f5779b2
[ "BSD-2-Clause" ]
null
null
null
talib/__init__.py
wansiedler/ta-lib
d71bf6e120b83f8b35bd8186ab9086b66f5779b2
[ "BSD-2-Clause" ]
null
null
null
import atexit from itertools import chain from functools import wraps # If pandas is available, wrap talib functions so that they support # pandas.Series input try: from pandas import Series as _pd_Series except ImportError: # pandas not available, nothing to wrap _pandas_wrapper = lambda x: x else: d...
26.267606
84
0.546113
02c9ac0896ea4a7eba774bae63342d7589676d87
6,264
py
Python
supriya/patterns/RealtimeEventPlayer.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/patterns/RealtimeEventPlayer.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/patterns/RealtimeEventPlayer.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import itertools import time from queue import PriorityQueue from uqbar.objects import new import supriya.commands import supriya.realtime import supriya.system from supriya.patterns.EventPlayer import EventPlayer class RealtimeEventPlayer(EventPlayer): ### CLASS VARIABLES ### __slots__ = ("_clock", "_ite...
36.418605
88
0.592593
1c41e8791b5c99f8614c868a92b2094f833ec4b4
28,004
py
Python
salt/cloud/clouds/joyent.py
kev009/salt
aecd53203eca51e150128ae7c9ad2a979d004127
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/joyent.py
kev009/salt
aecd53203eca51e150128ae7c9ad2a979d004127
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/joyent.py
kev009/salt
aecd53203eca51e150128ae7c9ad2a979d004127
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Joyent Cloud Module =================== The Joyent Cloud module is used to interact with the Joyent cloud system. Set up the cloud configuration at ``/etc/salt/cloud.providers`` or ``/etc/salt/cloud.providers.d/joyent.conf``: .. code-block:: yaml my-joyent-config: provider: joy...
25.953661
103
0.595094
c743eb35dc1cae256bb90fb3e7627fee1e43bd8e
8,318
py
Python
examples/compress/test-compress.py
schwehr/pyhdf
8e61283c6023e8c9ad443b71aa5ea7884933025f
[ "MIT" ]
null
null
null
examples/compress/test-compress.py
schwehr/pyhdf
8e61283c6023e8c9ad443b71aa5ea7884933025f
[ "MIT" ]
null
null
null
examples/compress/test-compress.py
schwehr/pyhdf
8e61283c6023e8c9ad443b71aa5ea7884933025f
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function # Generate test HDF files using different compression configurations, # and validate each resulting file to make sure its contents is OK. # Adapted from example: # "https://support.hdfgroup.org/doc_resource/SZIP/h4_examples/szip32.c". # A bigger dataset is d...
35.699571
79
0.615533
304c28a698cc9218c474a0c27b7dd827c52da135
8,409
py
Python
pyshtrih/misc.py
alex-eri/pyshtrih
c8905ae5d61f446a7d4635c3983dd66d1faa0fd5
[ "MIT" ]
null
null
null
pyshtrih/misc.py
alex-eri/pyshtrih
c8905ae5d61f446a7d4635c3983dd66d1faa0fd5
[ "MIT" ]
null
null
null
pyshtrih/misc.py
alex-eri/pyshtrih
c8905ae5d61f446a7d4635c3983dd66d1faa0fd5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import struct import operator import functools import collections from .compat import reduce, xrange NULL = bytearray((0x00, )) DEFAULT_MIN_LENGTH = 40 T_TAPES = collections.namedtuple('Tapes', ['control', 'cash', 'skid']) BAUDRATE_DIRECT = { 2400: 0, 4800: 1, 9600: 2, 192...
22.128947
102
0.589606
5916b16847c756a1b033e5fdb715c8d351b2d373
6,491
py
Python
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
49.930769
405
0.677862
da9794fc6cb80f90222c786b1f7c5167b3104c7f
1,227
py
Python
scripts/benchmark_1_rdomset.py
rhysnewell/spacegraphcats
e4d8b29171af0d1c8507066021be3b6a50c7802b
[ "BSD-3-Clause" ]
96
2016-05-13T12:13:07.000Z
2021-12-17T21:01:17.000Z
scripts/benchmark_1_rdomset.py
rhysnewell/spacegraphcats
e4d8b29171af0d1c8507066021be3b6a50c7802b
[ "BSD-3-Clause" ]
421
2016-05-17T20:47:16.000Z
2022-03-08T00:35:32.000Z
scripts/benchmark_1_rdomset.py
rhysnewell/spacegraphcats
e4d8b29171af0d1c8507066021be3b6a50c7802b
[ "BSD-3-Clause" ]
17
2016-10-13T17:13:17.000Z
2021-06-02T18:19:34.000Z
#! /usr/bin/env python """ Benchmark the rdomset (catlas level 1) algorithm, without I/O considerations. """ import sys import os # add spacegraphcats package to import path: sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) import spacegraphcats from spacegraphcats.catlas import catlas import argpars...
25.040816
77
0.667482
a822bc916e921dece02df770a07241b343807db7
1,362
py
Python
csw/changed_files/outputschema__init__.py
Open-EO/openeo-openshift-driver
822dbd3ccee25180cc48efd2f891504b6b5edc14
[ "Apache-2.0" ]
6
2018-10-02T15:04:11.000Z
2019-12-13T11:36:49.000Z
csw/changed_files/outputschema__init__.py
Open-EO/openeo-openshift-driver
822dbd3ccee25180cc48efd2f891504b6b5edc14
[ "Apache-2.0" ]
54
2019-01-09T17:14:29.000Z
2020-10-02T11:39:38.000Z
csw/changed_files/outputschema__init__.py
Open-EO/openeo-openshift-driver
822dbd3ccee25180cc48efd2f891504b6b5edc14
[ "Apache-2.0" ]
6
2018-07-03T15:58:05.000Z
2019-07-03T07:20:46.000Z
# -*- coding: utf-8 -*- # ================================================================= # # Authors: Tom Kralidis <tomkralidis@gmail.com> # # Copyright (c) 2015 Tom Kralidis # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the ...
42.5625
67
0.678414
5f14fed750b233ae60733684b29c75bc0f1011af
740
py
Python
python/strings/merge_the_tools.py
scouvreur/hackerrank
93a52ed6a744ce41fd215d8007435a682228fa01
[ "MIT" ]
1
2021-01-28T14:23:24.000Z
2021-01-28T14:23:24.000Z
python/strings/merge_the_tools.py
scouvreur/hackerrank
93a52ed6a744ce41fd215d8007435a682228fa01
[ "MIT" ]
null
null
null
python/strings/merge_the_tools.py
scouvreur/hackerrank
93a52ed6a744ce41fd215d8007435a682228fa01
[ "MIT" ]
null
null
null
def merge_the_tools(string, k): """ Takes in a string of length n and an integer k always multiple of n, and returns k subsets with unique characters. Parameters ---------- string : string Input string. k : int Factor of len(string) to cut into subsets. Returns ...
21.142857
61
0.558108
f483b002b52e44082337a64ba00d5780ccd5f0f2
5,230
py
Python
built-in/PyTorch/Official/cv/image_classification/Gluon_ResNet50_v1d_for_PyTorch/timm/data/dataset.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/PyTorch/Official/cv/image_classification/Gluon_ResNet50_v1d_for_PyTorch/timm/data/dataset.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/PyTorch/Official/cv/image_classification/Gluon_ResNet50_v1d_for_PyTorch/timm/data/dataset.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright [yyyy] [name of copyright owner] # Copyright 2021 Huawei Technologies Co., Ltd # # 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.or...
32.08589
112
0.626769