hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
fad85e15e07512f12e7b222a127aaf3fb9ecb328
670
py
Python
occuspytial/tests/test_chain.py
zoj613/OccuSpytial
e599d515b5377cb8f7a16af828f39b115a04bc66
[ "BSD-3-Clause" ]
5
2018-11-27T13:41:51.000Z
2021-08-28T23:50:13.000Z
occuspytial/tests/test_chain.py
zoj613/OccuSpytial
e599d515b5377cb8f7a16af828f39b115a04bc66
[ "BSD-3-Clause" ]
4
2020-08-20T16:58:11.000Z
2021-03-22T20:27:55.000Z
occuspytial/tests/test_chain.py
zoj613/OccuSpytial
e599d515b5377cb8f7a16af828f39b115a04bc66
[ "BSD-3-Clause" ]
1
2021-02-01T16:17:46.000Z
2021-02-01T16:17:46.000Z
import numpy as np import pytest from occuspytial.chain import Chain def test_chain(): params = {'p1': 2, 'p2': 1} c = Chain(params, 1) # test the number of columns of the full array of parameters assert c.full.shape[1] == 3 assert len(c) == 0 c.append({'p1': [1, 2], 'p2': 3}) assert le...
22.333333
64
0.541791
f0cfbed17130ebdf6170fb8d9a526b6861e684ca
520
py
Python
FileProcessSet/move_files_to_root.py
stwrd/ImageProcessTool
311e997a5beaf31f90fe734aacf2944084e8dd1d
[ "MIT" ]
null
null
null
FileProcessSet/move_files_to_root.py
stwrd/ImageProcessTool
311e997a5beaf31f90fe734aacf2944084e8dd1d
[ "MIT" ]
null
null
null
FileProcessSet/move_files_to_root.py
stwrd/ImageProcessTool
311e997a5beaf31f90fe734aacf2944084e8dd1d
[ "MIT" ]
null
null
null
#移动目标文件夹下的所有文件至根目录 import shutil import os from pathlib import Path pattern_str = '*.jpg' target_path = '/media/hzh/docker_disk/dataset/traffic/交通违法第一次通用标注/src' dst_folder = '/media/hzh/docker_disk/dataset/traffic/交通违法第一次通用标注/Annotations' filenames = Path(target_path).rglob(pattern_str) for filename in filenames: ...
32.5
77
0.765385
f3bfbf04f4165da3020cbdec3df696dc7a1aa1c7
10,764
py
Python
tests/unit/cache/test_localfs.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:21.000Z
2020-01-02T09:03:21.000Z
tests/unit/cache/test_localfs.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
null
null
null
tests/unit/cache/test_localfs.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:24.000Z
2020-01-02T09:03:24.000Z
# -*- coding: utf-8 -*- ''' unit tests for the localfs cache ''' # Import Python libs from __future__ import absolute_import import shutil import tempfile # Import Salt Testing libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.paths import TMP from tests.support.unit import skipIf, TestCa...
40.618868
112
0.648551
3b2934b5d6aebc395e0d591922aa4525238be625
9,403
py
Python
python_modules/dagster/dagster/core/execution/plan/objects.py
stevencasey/dagster
1881f67f55725c40432dbc1ed99b8cfbd9629600
[ "Apache-2.0" ]
1
2019-07-15T17:34:04.000Z
2019-07-15T17:34:04.000Z
python_modules/dagster/dagster/core/execution/plan/objects.py
stevencasey/dagster
1881f67f55725c40432dbc1ed99b8cfbd9629600
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/plan/objects.py
stevencasey/dagster
1881f67f55725c40432dbc1ed99b8cfbd9629600
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple from enum import Enum from dagster import check from dagster.core.definitions import SolidHandle, Materialization from dagster.core.types.runtime import RuntimeType from dagster.utils import merge_dicts from dagster.utils.error import SerializableErrorInfo from dagster.core.definiti...
37.313492
100
0.672126
83bf5aa75b028c5f3330b6c6dc192cb8f63b49bc
1,639
py
Python
PythonScript/bigDataFinal.py
ElvaHuang/MeetupNetworkVisualAnalytics
cfcab5fc4bac8f560961e79b8215b2e9d8f8d32a
[ "Apache-2.0" ]
null
null
null
PythonScript/bigDataFinal.py
ElvaHuang/MeetupNetworkVisualAnalytics
cfcab5fc4bac8f560961e79b8215b2e9d8f8d32a
[ "Apache-2.0" ]
null
null
null
PythonScript/bigDataFinal.py
ElvaHuang/MeetupNetworkVisualAnalytics
cfcab5fc4bac8f560961e79b8215b2e9d8f8d32a
[ "Apache-2.0" ]
null
null
null
# filename: big_data_final.py import networkx as nx import csv G1 = nx.Graph(name = 'online') G2 = nx.Graph(name = 'offline') Group = {} reader = csv.reader(file('user_group.csv','rb')) for line in reader: if line[1] in Group: Group[line[1]].append(line[0]) else: Group[line[1]] = [line[0]] S...
26.868852
113
0.563758
1a7fec1a6ce90326b708360d29a869afc172f3c6
2,603
py
Python
v1/Utilities/mnistexample.py
denfed/ACDriver
b70a0d3677df2a797a1dd377af4aca6b1837a114
[ "MIT" ]
11
2018-12-15T00:18:17.000Z
2021-11-12T18:44:23.000Z
v1/Utilities/mnistexample.py
denfed/ACDriver
b70a0d3677df2a797a1dd377af4aca6b1837a114
[ "MIT" ]
null
null
null
v1/Utilities/mnistexample.py
denfed/ACDriver
b70a0d3677df2a797a1dd377af4aca6b1837a114
[ "MIT" ]
1
2019-12-31T05:09:16.000Z
2019-12-31T05:09:16.000Z
'''Trains a simple convnet on the MNIST dataset. Gets to 99.25% test accuracy after 12 epochs (there is still a lot of margin for parameter tuning). 16 seconds per epoch on a GRID K520 GPU. ''' from __future__ import print_function import keras from keras.datasets import mnist from keras.models import Sequential from ...
28.922222
70
0.695736
5abfa124026842a6bd7790ca100638a86a189c55
4,120
py
Python
imageutil.py
jordan112/ComicTools
1ec3403b17b46181fa70fe96ae006c9ae9789938
[ "MIT" ]
null
null
null
imageutil.py
jordan112/ComicTools
1ec3403b17b46181fa70fe96ae006c9ae9789938
[ "MIT" ]
null
null
null
imageutil.py
jordan112/ComicTools
1ec3403b17b46181fa70fe96ae006c9ae9789938
[ "MIT" ]
null
null
null
from PIL import Image,ImageChops, ImageStat import imagehash import requests from io import BytesIO import base64 import os def is_image(file): try: Image.open(file) except IOError: return False return True def getImageFromUrl(url): image = requests.get(url,stream=True) return Imag...
32.698413
134
0.613107
57bf0640c47eb4553376e69460c55744d88e4c1e
3,684
py
Python
services/github-bots/PredictLabels/application.py
mseth10/incubator-mxnet-ci
36a5050b9c7bd720a4aa87d225738400083d611d
[ "Apache-2.0" ]
1
2021-01-02T03:34:00.000Z
2021-01-02T03:34:00.000Z
services/github-bots/PredictLabels/application.py
mseth10/incubator-mxnet-ci
36a5050b9c7bd720a4aa87d225738400083d611d
[ "Apache-2.0" ]
null
null
null
services/github-bots/PredictLabels/application.py
mseth10/incubator-mxnet-ci
36a5050b9c7bd720a4aa87d225738400083d611d
[ "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...
30.446281
111
0.712541
b6da1ba9df5108a18b181ad9e9f8faf5e483e12b
28,705
py
Python
python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_config_types.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_config_types.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_config_types.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
import json from dagster_graphql.test.utils import execute_dagster_graphql, infer_pipeline_selector import dagster._check as check from dagster.config.config_type import ALL_CONFIG_BUILTINS from dagster.utils import file_relative_path from .graphql_context_test_suite import NonLaunchableGraphQLContextTestMatrix from...
36.754161
100
0.598223
42938f064692148be833d1d275e2e8dcd4d6c0e6
1,383
py
Python
scripts/retired/plot_bpmg_corner.py
tcrundall/chronostar
bdb5cd965e862ba5cc21bee75d5c8620e106c0cc
[ "MIT" ]
null
null
null
scripts/retired/plot_bpmg_corner.py
tcrundall/chronostar
bdb5cd965e862ba5cc21bee75d5c8620e106c0cc
[ "MIT" ]
null
null
null
scripts/retired/plot_bpmg_corner.py
tcrundall/chronostar
bdb5cd965e862ba5cc21bee75d5c8620e106c0cc
[ "MIT" ]
null
null
null
from __future__ import print_function, division """ Teensy script to plot corner plots for BPMG fits """ import numpy as np import matplotlib.pyplot as plt import corner chainfiles = [ # '../results/em_fit/beta_Pic_solo_results/final_chain.npy', # '../results/em_fit/beta_Pic_results/group0/final_chain.npy', ...
22.672131
69
0.583514
82e55f71d8cc31e9e1dab05115e986d3cbfa0a1e
247
py
Python
examples/context.py
satr-cowi/DynSys
a41dcf056f3104007cce87eb6eb09c7272db10f7
[ "MIT" ]
null
null
null
examples/context.py
satr-cowi/DynSys
a41dcf056f3104007cce87eb6eb09c7272db10f7
[ "MIT" ]
1
2019-11-08T13:15:51.000Z
2019-11-08T13:15:51.000Z
examples/context.py
dancergraham/DynSys
c7368ced667adb02506a8dc8ca7335a86ab7d5b2
[ "MIT" ]
1
2022-01-27T07:48:24.000Z
2022-01-27T07:48:24.000Z
# -*- coding: utf-8 -*- """ Gives `examples` context to modules in this package """ import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from dynsys import dynsys from dynsys import modalsys
16.466667
82
0.700405
c44e775570a41662471d4e34d3991071cd8088ab
22,127
py
Python
backtrader/backtrader/stores/oandastore.py
harshabakku/live-back-testing-trader
1fd69c7598dc15bea740f160eed886f396bcba2c
[ "MIT" ]
1
2021-07-14T22:04:08.000Z
2021-07-14T22:04:08.000Z
backtrader/backtrader/stores/oandastore.py
ajmal017/LiveBackTestingTrader
8b4f5804c0aa6046128f6706582f9cde78a0519a
[ "MIT" ]
null
null
null
backtrader/backtrader/stores/oandastore.py
ajmal017/LiveBackTestingTrader
8b4f5804c0aa6046128f6706582f9cde78a0519a
[ "MIT" ]
3
2021-03-07T16:29:40.000Z
2022-03-17T21:42:38.000Z
#!/usr/bin/env python # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # # Copyright (C) 2015, 2016, 2017 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Li...
33.525758
79
0.568853
7a539c7fd7cc2300cec9aa3b5c0541583e786722
1,143
py
Python
teamcat_service/doraemon/doraemon/api/project/serializer/project_issue_statistics_serializer.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
6
2018-11-26T08:42:52.000Z
2020-06-01T08:33:48.000Z
teamcat_service/doraemon/doraemon/api/project/serializer/project_issue_statistics_serializer.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
null
null
null
teamcat_service/doraemon/doraemon/api/project/serializer/project_issue_statistics_serializer.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
1
2019-01-22T06:45:36.000Z
2019-01-22T06:45:36.000Z
#coding=utf-8 ''' Created on 2016-10-12 @author: Administrator ''' from rest_framework import serializers from doraemon.project.models import ProjectIssueDailyStatistics,ProjectIssueVersionStatistics class IssueTrendStatisticsSerializer(serializers.Serializer): chart_id=serializers.IntegerField() project_i...
27.878049
93
0.733158
1e4588816496ab14b7efe2b8cbadfa390897add2
2,486
py
Python
interactive_predict.py
AmmarHarrat/Test_code2vec
fc09b7c1db950bfe3a8f7991460d515a8c24005f
[ "MIT" ]
2
2021-02-03T08:50:00.000Z
2021-04-05T18:36:43.000Z
interactive_predict.py
AmmarHarrat/Test_code2vec
fc09b7c1db950bfe3a8f7991460d515a8c24005f
[ "MIT" ]
2
2020-12-03T13:15:55.000Z
2022-02-10T02:06:22.000Z
interactive_predict.py
AmmarHarrat/Test_code2vec
fc09b7c1db950bfe3a8f7991460d515a8c24005f
[ "MIT" ]
2
2021-04-08T14:51:01.000Z
2021-09-22T07:57:37.000Z
import traceback from keras.models import Model from common import common from extractor import Extractor SHOW_TOP_CONTEXTS = 10 MAX_PATH_LENGTH = 8 MAX_PATH_WIDTH = 1 JAR_PATH = 'cd2vec/cli.jar' class InteractivePredictor: exit_keywords = ['exit', 'quit', 'q'] def __init__(self, config, model): # ...
42.135593
120
0.597345
388e82aead6c1929c82cd66074f113f438892e8d
2,705
py
Python
kde/pim/kalarm/kalarm.py
KDE/craft-blueprints-kde
14932d4b95ce0070ab8ae5669411c62ffa304c9b
[ "BSD-2-Clause" ]
14
2017-09-04T09:01:03.000Z
2022-01-04T20:09:00.000Z
kde/pim/kalarm/kalarm.py
KDE/craft-blueprints-kde
14932d4b95ce0070ab8ae5669411c62ffa304c9b
[ "BSD-2-Clause" ]
14
2017-12-15T08:11:22.000Z
2020-12-29T19:11:13.000Z
kde/pim/kalarm/kalarm.py
KDE/craft-blueprints-kde
14932d4b95ce0070ab8ae5669411c62ffa304c9b
[ "BSD-2-Clause" ]
19
2017-09-05T19:16:21.000Z
2020-10-18T12:46:06.000Z
import info class subinfo(info.infoclass): def setTargets(self): self.versionInfo.setDefaultValues() self.description = "KAlarm" def setDependencies(self): self.runtimeDependencies["virtual/base"] = None self.buildDependencies["kde/frameworks/extra-cmake-modules"] = None ...
49.181818
79
0.716081
038b4b77acdef4a63765718ed80fb7086f733922
512
py
Python
ecommercejockey/premier/migrations/0005_premierproduct_primary_image.py
anniethiessen/dieselr-ecommerce
9268b72553845a4650cdfe7c88b398db3cf92258
[ "MIT" ]
null
null
null
ecommercejockey/premier/migrations/0005_premierproduct_primary_image.py
anniethiessen/dieselr-ecommerce
9268b72553845a4650cdfe7c88b398db3cf92258
[ "MIT" ]
11
2020-06-06T00:04:26.000Z
2022-03-12T00:57:41.000Z
ecommercejockey/premier/migrations/0005_premierproduct_primary_image.py
anniethiessen/ecommerce-jockey
9268b72553845a4650cdfe7c88b398db3cf92258
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-24 23:05 from django.db import migrations, models import premier.utils class Migration(migrations.Migration): dependencies = [ ('premier', '0004_premiermanufacturer_is_relevant'), ] operations = [ migrations.AlterField( model_name='prem...
25.6
127
0.669922
8718703dd695350a4a3687075701a28bab73dddd
3,439
py
Python
examples/quiz/schema.py
toluaina/essync
4a0119d99760eaa193f4ae60abd2b5f38482b280
[ "BSD-3-Clause" ]
1
2019-09-26T21:05:37.000Z
2019-09-26T21:05:37.000Z
examples/quiz/schema.py
toluaina/essync
4a0119d99760eaa193f4ae60abd2b5f38482b280
[ "BSD-3-Clause" ]
null
null
null
examples/quiz/schema.py
toluaina/essync
4a0119d99760eaa193f4ae60abd2b5f38482b280
[ "BSD-3-Clause" ]
1
2019-08-27T16:19:09.000Z
2019-08-27T16:19:09.000Z
import json import click import sqlalchemy as sa from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.schema import ForeignKeyConstraint, UniqueConstraint from pgsync.base import create_database, pg_engine from pgsync.helper import teardown from pgsync.utils import get_config Base = declarative_ba...
26.05303
76
0.62082
17ebbe2de10bed978371557c00d94e2fc880d271
61,391
py
Python
brutus/plotting.py
catherinezucker/brutus
28d0a953e5f05b3295aab23cebc974ece7a1e300
[ "MIT" ]
null
null
null
brutus/plotting.py
catherinezucker/brutus
28d0a953e5f05b3295aab23cebc974ece7a1e300
[ "MIT" ]
null
null
null
brutus/plotting.py
catherinezucker/brutus
28d0a953e5f05b3295aab23cebc974ece7a1e300
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Plotting utilities. """ from __future__ import (print_function, division) from six.moves import range import warnings import logging import numpy as np from matplotlib import pyplot as plt from matplotlib.ticker import MaxNLocator, NullLocator from matplotlib.colors...
38.369375
79
0.590738
cccad837e6301b13b0d507c5f85f3147c5bf118d
2,220
py
Python
deployment/cfn/utils/cfn.py
project-icp/bee-pollinator-app
9357755e6d78e1bf8594de1b777d02318bb3e54f
[ "Apache-2.0" ]
6
2016-10-14T18:54:39.000Z
2021-06-03T21:04:27.000Z
deployment/cfn/utils/cfn.py
project-icp/bee-pollinator-app
9357755e6d78e1bf8594de1b777d02318bb3e54f
[ "Apache-2.0" ]
528
2016-10-14T17:38:54.000Z
2022-02-26T10:53:21.000Z
deployment/cfn/utils/cfn.py
project-icp/bee-pollinator-app
9357755e6d78e1bf8594de1b777d02318bb3e54f
[ "Apache-2.0" ]
2
2016-10-17T18:06:38.000Z
2020-10-23T09:48:24.000Z
import boto from boto.ec2 import get_region class AvailabilityZone(object): """Helper class that represents an availability zone We often only want 2 things from an AZ - a slug and name. This class keeps those in one location. """ def __init__(self, availability_zone): """Creates an Ava...
30.410959
78
0.648649
a3db005ac749123a16c6303cd46c532acd7b5ccd
3,148
py
Python
examples/tempy_examples.py
Jai2305/TemPy
f64cd91d5c83724d37e92f4ab60103244922cccc
[ "Apache-2.0" ]
154
2017-06-14T09:44:01.000Z
2021-11-17T01:13:25.000Z
examples/tempy_examples.py
Jai2305/TemPy
f64cd91d5c83724d37e92f4ab60103244922cccc
[ "Apache-2.0" ]
95
2017-08-12T12:03:40.000Z
2022-03-31T09:02:14.000Z
examples/tempy_examples.py
Jai2305/TemPy
f64cd91d5c83724d37e92f4ab60103244922cccc
[ "Apache-2.0" ]
88
2017-08-12T16:13:30.000Z
2022-03-30T04:11:32.000Z
# -*- coding: utf-8 -*- import json import os from flask import Flask, request, redirect, url_for, session app = Flask(__name__) # In an actual project, this secret key would be hidden. # It is mostly used so we can create an example login session. app.secret_key = '&Gp07(pz#oIA]jQ' super_secret_token = 'admin_token'...
24.984127
112
0.681703
fa131f3e1106dc243fa62890d761bed4782906bc
2,924
py
Python
tests/src/tm_json/gen.py
to-miz/tm
c97a3c14aa769b5a8f94b394b4535cd42eeb31d2
[ "MIT" ]
51
2016-09-02T16:21:24.000Z
2021-08-12T01:30:45.000Z
tests/src/tm_json/gen.py
to-miz/tm
c97a3c14aa769b5a8f94b394b4535cd42eeb31d2
[ "MIT" ]
3
2018-12-29T15:10:41.000Z
2019-10-29T23:21:57.000Z
tests/src/tm_json/gen.py
to-miz/tm
c97a3c14aa769b5a8f94b394b4535cd42eeb31d2
[ "MIT" ]
5
2016-11-21T08:48:41.000Z
2021-06-24T20:21:10.000Z
import os def process_file(filename, tests): with open(filename, 'rb') as opened_file: data = opened_file.read() data_str = "" for byte in data: if byte < 127: c = chr(byte); if c == '"': data_str += "\\\"" elif...
50.413793
121
0.562244
34da0190c8d70102dc6da9c7d6c88149e624daff
64,522
py
Python
tests/test_connector.py
luizalabs/aiohttp
e57ef8cdbf16f029310ccc3ff93f8e5eff64c2f6
[ "Apache-2.0" ]
1
2019-06-05T16:56:59.000Z
2019-06-05T16:56:59.000Z
tests/test_connector.py
luizalabs/aiohttp
e57ef8cdbf16f029310ccc3ff93f8e5eff64c2f6
[ "Apache-2.0" ]
null
null
null
tests/test_connector.py
luizalabs/aiohttp
e57ef8cdbf16f029310ccc3ff93f8e5eff64c2f6
[ "Apache-2.0" ]
null
null
null
"""Tests of http client with custom Connector""" import asyncio import gc import hashlib import os.path import platform import socket import ssl import uuid from collections import deque from unittest import mock import pytest from yarl import URL import aiohttp from aiohttp import client, web from aiohttp.client im...
29.502515
79
0.6601
f5bd37e3c3c9b584a909ec826e92c40c88c00db9
119
py
Python
certbot/__init__.py
pub-repository/letsencrypt
c4684f187a4ce4ef13425cfba607dec9d8bfa963
[ "Apache-2.0" ]
1
2019-12-29T16:34:18.000Z
2019-12-29T16:34:18.000Z
certbot/__init__.py
pub-repository/letsencrypt
c4684f187a4ce4ef13425cfba607dec9d8bfa963
[ "Apache-2.0" ]
null
null
null
certbot/__init__.py
pub-repository/letsencrypt
c4684f187a4ce4ef13425cfba607dec9d8bfa963
[ "Apache-2.0" ]
1
2019-12-29T16:34:20.000Z
2019-12-29T16:34:20.000Z
"""Certbot client.""" # version number like 1.2.3a0, must have at least 2 parts, like 1.2 __version__ = '0.37.0.dev0'
23.8
67
0.680672
cc5db4ad771c81470dd2885f31a55898112e33ec
2,507
py
Python
scripts/dmriqc_frf.py
arnaudbore/dmriqcpy
be3efa95753324809940614b3499a5004757ec33
[ "MIT" ]
null
null
null
scripts/dmriqc_frf.py
arnaudbore/dmriqcpy
be3efa95753324809940614b3499a5004757ec33
[ "MIT" ]
12
2021-05-09T12:29:26.000Z
2022-03-22T13:00:52.000Z
scripts/dmriqc_frf.py
arnaudbore/dmriqcpy
be3efa95753324809940614b3499a5004757ec33
[ "MIT" ]
3
2021-04-09T18:22:41.000Z
2021-06-03T22:22:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import os import shutil import numpy as np from dmriqcpy.analysis.stats import stats_frf from dmriqcpy.io.report import Report from dmriqcpy.io.utils import (add_online_arg, add_overwrite_arg, assert_inputs_exist, assert_ou...
29.494118
91
0.670921
b9b3b41c32426522c90f5063d41c0d80abb867bc
2,138
py
Python
sdks/python/apache_beam/io/gcp/bigquery_io_read_it_test.py
rodrigob/beam
e2ce4037f85619f946b3d6a3a90955cdf1c19b4a
[ "Apache-2.0", "BSD-3-Clause" ]
2
2020-08-30T14:49:58.000Z
2020-08-30T15:02:38.000Z
sdks/python/apache_beam/io/gcp/bigquery_io_read_it_test.py
rodrigob/beam
e2ce4037f85619f946b3d6a3a90955cdf1c19b4a
[ "Apache-2.0", "BSD-3-Clause" ]
11
2018-05-22T06:08:39.000Z
2018-10-05T15:02:21.000Z
sdks/python/apache_beam/io/gcp/bigquery_io_read_it_test.py
rodrigob/beam
e2ce4037f85619f946b3d6a3a90955cdf1c19b4a
[ "Apache-2.0", "BSD-3-Clause" ]
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 us...
35.04918
74
0.755379
3ad4799a60594e7ed0e74b28e4806078b269fb31
1,608
py
Python
linked_list/singly_linked_list/linked_queue.py
zhaijingrong/PythonAlgorithm
7596194ca0f94cfdb302fc9d826b0b02329824c6
[ "MIT" ]
null
null
null
linked_list/singly_linked_list/linked_queue.py
zhaijingrong/PythonAlgorithm
7596194ca0f94cfdb302fc9d826b0b02329824c6
[ "MIT" ]
null
null
null
linked_list/singly_linked_list/linked_queue.py
zhaijingrong/PythonAlgorithm
7596194ca0f94cfdb302fc9d826b0b02329824c6
[ "MIT" ]
null
null
null
class Empty(Exception): pass class LinkedQueue: """ FIFO queue implementation using a singly linked list for storage. """ class _Node: """ Lightweight, nonpublic class for storing a singly linked node. """ __slots__ = '_element', '_next' def __init__(self, e, next): s...
28.210526
78
0.558458
0377b485df1aa9d9eaf668b5645760688ded7212
364
py
Python
keyscraper/pipelines.py
YuChenHeMTL/KeyScraper
9e40ac99499c8b149a060b7089ad16e47813cd87
[ "MIT" ]
null
null
null
keyscraper/pipelines.py
YuChenHeMTL/KeyScraper
9e40ac99499c8b149a060b7089ad16e47813cd87
[ "MIT" ]
null
null
null
keyscraper/pipelines.py
YuChenHeMTL/KeyScraper
9e40ac99499c8b149a060b7089ad16e47813cd87
[ "MIT" ]
null
null
null
# Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter class KeyscraperPipeline: def process_it...
26
66
0.769231
2050f2c5d8c7489cd012ce58200e36ac720bf41d
39,813
py
Python
src/oic/oic/message.py
alanbuxey/pyoidc
5f2d9ac468aaad599260f70481062c9d31273da2
[ "Apache-2.0" ]
null
null
null
src/oic/oic/message.py
alanbuxey/pyoidc
5f2d9ac468aaad599260f70481062c9d31273da2
[ "Apache-2.0" ]
null
null
null
src/oic/oic/message.py
alanbuxey/pyoidc
5f2d9ac468aaad599260f70481062c9d31273da2
[ "Apache-2.0" ]
null
null
null
import inspect import json import logging import sys import time import warnings from typing import Dict # noqa from typing import List # noqa from urllib.parse import urlencode from urllib.parse import urlparse from jwkest import jws from jwkest.jwe import JWEException from jwkest.jwe import factory as JWE_factory ...
33.288462
101
0.643232
f2df0ae091b8fb226a01c5e5267ee34e6849f2c1
9,971
py
Python
tools/visual_utils/visualize_utils.py
skyhehe123/VoxSeT
7c8fe7eecddcb9ee073ea0ceb5be85767af03b4d
[ "MIT" ]
39
2022-03-22T03:09:38.000Z
2022-03-30T15:40:02.000Z
tools/visual_utils/visualize_utils.py
skyhehe123/VoxSeT
7c8fe7eecddcb9ee073ea0ceb5be85767af03b4d
[ "MIT" ]
3
2022-03-22T13:40:54.000Z
2022-03-26T11:20:20.000Z
tools/visual_utils/visualize_utils.py
skyhehe123/VoxSeT
7c8fe7eecddcb9ee073ea0ceb5be85767af03b4d
[ "MIT" ]
2
2022-03-27T13:49:37.000Z
2022-03-30T08:34:07.000Z
import mayavi.mlab as mlab import numpy as np import torch box_colormap = [ [1, 1, 1], [0, 1, 0], [0, 1, 1], [1, 1, 0], ] def check_numpy_to_torch(x): if isinstance(x, np.ndarray): return torch.from_numpy(x).float(), True return x, False def rotate_points_along_z(points, angle): ...
39.411067
121
0.568449
71443192f9c3ef1fe897c86cdc04b9f28d8f099f
4,991
py
Python
docs/conf.py
sschwindt/tke-calculator
4d28ae27a7a26842dd5df306bff56daafc100164
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
sschwindt/tke-calculator
4d28ae27a7a26842dd5df306bff56daafc100164
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
sschwindt/tke-calculator
4d28ae27a7a26842dd5df306bff56daafc100164
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from sphinx.locale import _ import sphinx_rtd_theme import sys import os import re import datetime # If we are building locally, or the build on Read the Docs looks like a PR # build, prefer to use the version of the theme in this repo, not the installed # version of the theme. def is_develo...
25.994792
95
0.660789
bb66f86087ad4d9095df3c299aaebedbaf4c56ae
7,860
py
Python
tests/test_cdutil_VariableMatcher.py
CDAT/cdutil
314c565bc2e0d2c15d233320dc4c5496a602479a
[ "BSD-3-Clause" ]
null
null
null
tests/test_cdutil_VariableMatcher.py
CDAT/cdutil
314c565bc2e0d2c15d233320dc4c5496a602479a
[ "BSD-3-Clause" ]
14
2018-04-09T13:10:12.000Z
2020-09-27T08:02:05.000Z
tests/test_cdutil_VariableMatcher.py
CDAT/cdutil
314c565bc2e0d2c15d233320dc4c5496a602479a
[ "BSD-3-Clause" ]
1
2021-02-08T22:23:15.000Z
2021-02-08T22:23:15.000Z
#!/usr/bin/env python import cdutil,os,numpy,cdat_info import unittest import MV2 class CDUTIL(unittest.TestCase): def testVariableMatcher1(self): ref = os.path.join(cdat_info.get_sampledata_path(),'tas_dnm-95a.xml') # Reference Ref=cdutil.VariableConditioner(ref) Ref.variable='tas...
43.910615
176
0.643384
1d44b20e47585593a4fc649de84d11ad1b7424de
926
py
Python
.ipynb_checkpoints/app-checkpoint.py
skohtz1/web-scrapingHW
11cf4686286a4fa51ef23a9e0afc5adca21f40c1
[ "MIT" ]
null
null
null
.ipynb_checkpoints/app-checkpoint.py
skohtz1/web-scrapingHW
11cf4686286a4fa51ef23a9e0afc5adca21f40c1
[ "MIT" ]
null
null
null
.ipynb_checkpoints/app-checkpoint.py
skohtz1/web-scrapingHW
11cf4686286a4fa51ef23a9e0afc5adca21f40c1
[ "MIT" ]
null
null
null
from flask import Flask, render_template, jsonify, redirect from flask_pymongo import PyMongo import scrape_mars app = Flask(__name__) mongo = PyMongo(app) @app.route("/") def index(): listings = mongo.db.listings_mars.find() return render_template("index.html", listings=listings) @app.route("/clear") def...
26.457143
191
0.717063
a62770f40bc2ce595851d29271fdcc5c57e3ea48
480
py
Python
aulaszeus/extensions.py
zerossB/aulas_zeus
002fc29578aed3aa36a9b400882e638b68c123ea
[ "BSD-3-Clause" ]
null
null
null
aulaszeus/extensions.py
zerossB/aulas_zeus
002fc29578aed3aa36a9b400882e638b68c123ea
[ "BSD-3-Clause" ]
null
null
null
aulaszeus/extensions.py
zerossB/aulas_zeus
002fc29578aed3aa36a9b400882e638b68c123ea
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ aulaszeus.extensions ~~~~~~~~~~~~~~~~~~~~~~~~~~ AulasZeus extensions module :copyright: (c) 2016 by Haynesss. :license: BSD, see LICENSE for more details. """ from flask_mongoengine import MongoEngine from flask_mail import Mail from flask_assets import Environment from...
22.857143
48
0.69375
2c48a8999b0bde009c672cd810a3dde1559c613d
1,595
py
Python
classicEvoAlg.py
kondiiq/FIR-filters-with-evolutionally-algorithms
28605f3eb0e061e834b944b9bfbaf6cded9347d0
[ "MIT" ]
null
null
null
classicEvoAlg.py
kondiiq/FIR-filters-with-evolutionally-algorithms
28605f3eb0e061e834b944b9bfbaf6cded9347d0
[ "MIT" ]
null
null
null
classicEvoAlg.py
kondiiq/FIR-filters-with-evolutionally-algorithms
28605f3eb0e061e834b944b9bfbaf6cded9347d0
[ "MIT" ]
null
null
null
import random import pandas import matplotlib from scipy import signal import numpy as np def create_sample(): """ Funkcja generująca pojedynczą próbkę Function which generating single sample :param ":return float sample """ sample = np.random.random_sample() return sample def creat...
24.166667
111
0.707837
68a0ac28609e8506a310943c91f07a9939bd8cae
4,049
py
Python
peeringdb_server/migrations/0025_E164_phonenumbers.py
egfrank/peeringdb
5ccb44c2955e29e9d9217f1a984dcb90a661ec62
[ "BSD-2-Clause" ]
1
2021-01-29T04:08:52.000Z
2021-01-29T04:08:52.000Z
peeringdb_server/migrations/0025_E164_phonenumbers.py
egfrank/peeringdb
5ccb44c2955e29e9d9217f1a984dcb90a661ec62
[ "BSD-2-Clause" ]
7
2021-04-06T18:42:16.000Z
2021-09-08T03:01:50.000Z
peeringdb_server/migrations/0025_E164_phonenumbers.py
invictus80/peeringdb
dddbb4e34af444b8403fa9ccf9b72279bd7719eb
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 1.11.23 on 2019-12-12 08:46 import csv import phonenumbers from django.db import migrations from django.conf import settings def _edit_url(tag, instance): if tag == "poc": return f"{settings.BASE_URL}/net/{instance.network_id}/" else: return f"{settings.BASE_URL}/ix/{in...
28.514085
88
0.583601
fd43f52b80543b98e410bda62579f5a759874f4d
1,453
py
Python
config.py
Andrew342/flask_study
a6b5140782cb50e8ce5c9a486d5f4326ad880241
[ "MIT" ]
null
null
null
config.py
Andrew342/flask_study
a6b5140782cb50e8ce5c9a486d5f4326ad880241
[ "MIT" ]
7
2021-02-08T20:19:36.000Z
2022-03-11T23:17:07.000Z
config.py
Andrew342/flask_study
a6b5140782cb50e8ce5c9a486d5f4326ad880241
[ "MIT" ]
null
null
null
import os # basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string' MAIL_SERVER = os.environ.get('MAIL_SERVER', 'smtp.qq.com') # MAIL_SERVER="smtp.qq.com" MAIL_PORT = int(os.environ.get('MAIL_PORT', '465')) # MAIL_PORT=...
27.942308
86
0.706813
240755fa9c6876cbc6007319eec4903032615eaa
2,650
py
Python
tutorials/pp-series/HRNet-Keypoint/lib/utils/stats.py
Intsigstephon/models
b96158ab16a252e9566ca03faa9d1ef0696798db
[ "Apache-2.0" ]
1
2022-01-21T02:28:25.000Z
2022-01-21T02:28:25.000Z
tutorials/pp-series/HRNet-Keypoint/lib/utils/stats.py
Intsigstephon/models
b96158ab16a252e9566ca03faa9d1ef0696798db
[ "Apache-2.0" ]
1
2022-03-08T06:59:20.000Z
2022-03-08T06:59:42.000Z
tutorials/pp-series/HRNet-Keypoint/lib/utils/stats.py
Intsigstephon/models
b96158ab16a252e9566ca03faa9d1ef0696798db
[ "Apache-2.0" ]
2
2022-03-05T05:25:47.000Z
2022-03-06T07:22:00.000Z
# Copyright (c) 2021 PaddlePaddle 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...
27.894737
77
0.609057
9be98e0387c8d680738bb62716e7890cd5254387
10,610
py
Python
silence/server/endpoint_creator.py
DEAL-US/Silence
dd8b7fb229214edeb173bc417a6aeb6083072149
[ "MIT" ]
2
2022-03-21T23:40:21.000Z
2022-03-21T23:40:22.000Z
silence/server/endpoint_creator.py
DEAL-US/Silence
dd8b7fb229214edeb173bc417a6aeb6083072149
[ "MIT" ]
null
null
null
silence/server/endpoint_creator.py
DEAL-US/Silence
dd8b7fb229214edeb173bc417a6aeb6083072149
[ "MIT" ]
null
null
null
import json from os import listdir, getcwd, path, mkdir, makedirs from silence.sql.tables import get_tables, get_views, get_primary_key, is_auto_increment from silence.logging.default_logger import logger from shutil import rmtree # SILENCE CREATEAPI OPERATIONS # Entry point for CLI command def create_api(): exis...
35.13245
154
0.608483
f74105373cdd2d7cc2a1c4cfafa7abdd7842398a
4,119
py
Python
sunpy/tests/setup_command.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/tests/setup_command.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/tests/setup_command.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ This file is designed to be imported and ran only via setup.py, hence it's dependency on astropy_helpers which will be available in that context. """ import os import copy from astropy_helpers.commands.test import AstropyTest class SunPyTest(AstropyTest): description = 'Run the tests ...
38.858491
96
0.53144
16ca8a95583e04689085a4bb821332b7662252e1
15,436
py
Python
ndg_tools/language/processors/tokens.py
ndgigliotti/data-science-toolkit
a8683273d2b503cd772ad597b790965a65b4cccc
[ "MIT" ]
null
null
null
ndg_tools/language/processors/tokens.py
ndgigliotti/data-science-toolkit
a8683273d2b503cd772ad597b790965a65b4cccc
[ "MIT" ]
1
2021-12-12T08:04:30.000Z
2021-12-12T08:08:42.000Z
ndg_tools/language/processors/tokens.py
ndgigliotti/data-science-toolkit
a8683273d2b503cd772ad597b790965a65b4cccc
[ "MIT" ]
null
null
null
import re import string from collections import Counter, defaultdict from functools import lru_cache, singledispatch from types import MappingProxyType from typing import Iterable, Set, Union import nltk import numpy as np from nltk.corpus.reader import wordnet from nltk.sentiment.util import mark_negation as nltk_mar...
29.627639
88
0.627818
16937bf465aaca3f8a0c3e5895950877056d4b8f
578
py
Python
example.py
vlukiyanov/id3-python-example
4db88ad1ccdd335c7d26dd6ae645e3b55eac338f
[ "MIT" ]
null
null
null
example.py
vlukiyanov/id3-python-example
4db88ad1ccdd335c7d26dd6ae645e3b55eac338f
[ "MIT" ]
null
null
null
example.py
vlukiyanov/id3-python-example
4db88ad1ccdd335c7d26dd6ae645e3b55eac338f
[ "MIT" ]
null
null
null
import numpy as np from id3 import id3 test_playtennis = np.array( [ [0, 2, 1, 0, 0], [0, 2, 1, 1, 0], [1, 2, 1, 0, 1], [2, 1, 1, 0, 1], [2, 0, 0, 0, 1], [2, 0, 0, 1, 0], [1, 0, 0, 1, 1], [0, 1, 1, 0, 0], [0, 0, 0, 0, 1], [2, 1, 0, 0,...
19.266667
39
0.382353
66d1d5a140416db88ae505a3744363cdac3bcfbe
1,065
py
Python
rename_file.py
hhaAndroid/u2net
fff1db4edb3c9675b82926980ce1d5dfa98c0a1e
[ "Apache-2.0" ]
1
2021-01-09T07:40:08.000Z
2021-01-09T07:40:08.000Z
rename_file.py
hhaAndroid/u2net
fff1db4edb3c9675b82926980ce1d5dfa98c0a1e
[ "Apache-2.0" ]
null
null
null
rename_file.py
hhaAndroid/u2net
fff1db4edb3c9675b82926980ce1d5dfa98c0a1e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ====================================================== # @Time : 21-1-9 下午7:41 # @Author : huang ha # @Email : huang_ha@rr.com # @File : rename_file.py # @Comment: # ====================================================== import os import cv2 if __name__ == '__main__': image_dir...
30.428571
67
0.522066
2862ea19de1a279124782988f3d92792e8c54c92
13,226
py
Python
ProgsByDataset/ArxivMAG/nomulti_prepare_arxiv_hd2v_file.py
ashwath92/MastersThesis
f74755dc0c32f316da3c860dd5dbfa4c9cad97b3
[ "MIT" ]
5
2020-11-05T07:11:54.000Z
2021-08-04T21:37:28.000Z
ProgsByDataset/ArxivMAG/nomulti_prepare_arxiv_hd2v_file.py
ashwath92/MastersThesis
f74755dc0c32f316da3c860dd5dbfa4c9cad97b3
[ "MIT" ]
null
null
null
ProgsByDataset/ArxivMAG/nomulti_prepare_arxiv_hd2v_file.py
ashwath92/MastersThesis
f74755dc0c32f316da3c860dd5dbfa4c9cad97b3
[ "MIT" ]
4
2020-11-05T06:04:38.000Z
2021-08-02T16:25:42.000Z
""" This prepares a file for hyperdoc2vec from the arxiv full text (only papers mapped to mag ids). """ import os import re import csv import pickle import sqlite3 import psycopg2 import psycopg2.extras from gensim.parsing import preprocessing from gensim.utils import to_unicode import pandas as pd from tqdm import tqd...
46.083624
114
0.647739
f29f8c2dfbd155d19c32f977f576e25d84202b32
3,236
py
Python
BPt/pipeline/tests/helpers.py
sahahn/ABCD_ML
a8b1c48c33f3fdc046c8922964f1c456273238da
[ "MIT" ]
1
2019-09-25T23:23:49.000Z
2019-09-25T23:23:49.000Z
BPt/pipeline/tests/helpers.py
sahahn/ABCD_ML
a8b1c48c33f3fdc046c8922964f1c456273238da
[ "MIT" ]
1
2020-04-20T20:53:27.000Z
2020-04-20T20:53:27.000Z
BPt/pipeline/tests/helpers.py
sahahn/ABCD_ML
a8b1c48c33f3fdc046c8922964f1c456273238da
[ "MIT" ]
1
2019-06-21T14:44:40.000Z
2019-06-21T14:44:40.000Z
import os import tempfile import numpy as np from ...dataset.data_file import DataFile from ...main.input import ProblemSpec from sklearn.base import BaseEstimator, TransformerMixin from sklearn.feature_selection._base import SelectorMixin from ...main.input import ParamSearch from ...main.CV import BPtCV, CVStrategy f...
23.280576
79
0.572002
a810f8fc77fe86b99b85db17ab68ecd3fc8b96be
2,515
py
Python
tests/yhoo/test_yhoo_ticker_bundle.py
hootnot/virtual-yahoofinance-REST-API
3246d3f4c14821e4ef0f9de57dd759cf03f42681
[ "Apache-2.0" ]
1
2022-03-18T08:27:34.000Z
2022-03-18T08:27:34.000Z
tests/yhoo/test_yhoo_ticker_bundle.py
hootnot/virtual-yahoofinance-REST-API
3246d3f4c14821e4ef0f9de57dd759cf03f42681
[ "Apache-2.0" ]
null
null
null
tests/yhoo/test_yhoo_ticker_bundle.py
hootnot/virtual-yahoofinance-REST-API
3246d3f4c14821e4ef0f9de57dd759cf03f42681
[ "Apache-2.0" ]
1
2021-06-18T02:14:03.000Z
2021-06-18T02:14:03.000Z
# -*- coding: utf-8 -*- import pytest # from .unittestsetup import environment as environment from ..unittestsetup import fetchTestData, fetchRawData, fetchFullResponse from ..unittestsetup import API_URL, client import requests_mock from virtual_finance_api.client import Client from virtual_finance_api.exceptions i...
32.24359
79
0.689463
588d1ec4526f81cb441ef065b1ec8e8a7a8ccaad
177
py
Python
tests/helpers.py
Sceptre/sceptre-core
83818e69d4e3c35c2a048240f7bc35f66d989db5
[ "Apache-2.0" ]
null
null
null
tests/helpers.py
Sceptre/sceptre-core
83818e69d4e3c35c2a048240f7bc35f66d989db5
[ "Apache-2.0" ]
1
2019-10-22T08:52:23.000Z
2019-10-22T08:52:23.000Z
tests/helpers.py
Sceptre/sceptre-core
83818e69d4e3c35c2a048240f7bc35f66d989db5
[ "Apache-2.0" ]
null
null
null
from sceptre.provider.stack import Stack class StackImp(Stack): def __eq__(self): pass def __repr__(self): pass def template(self): pass
13.615385
40
0.610169
00a2f82e3cbfb9a734fdd5d6a1af71d8ed79ffbb
1,167
py
Python
examples/Imagine/utils.py
smbct/LOLH
a9b608b500c83731db2c7dcb70e08cf9a2a94fe0
[ "MIT" ]
2
2022-01-13T18:53:03.000Z
2022-01-13T18:53:42.000Z
examples/Imagine/utils.py
smbct/LOLH
a9b608b500c83731db2c7dcb70e08cf9a2a94fe0
[ "MIT" ]
null
null
null
examples/Imagine/utils.py
smbct/LOLH
a9b608b500c83731db2c7dcb70e08cf9a2a94fe0
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import numpy as np import pandas as pd #------------------------------------------------------------------------------- def print_lines(df): for index in df.index: # print(df.loc[index]) line = index + ' & ' ind = 0 for val in df.loc[index]: line ...
22.018868
82
0.495287
7a9c541af7df3a408e57f25cdb914838d1ac7072
13,639
py
Python
sockeye/lr_scheduler.py
msobrevillac/sockeye
6ed5e2dbe003673d03272987b79f73bdee86283d
[ "Apache-2.0" ]
null
null
null
sockeye/lr_scheduler.py
msobrevillac/sockeye
6ed5e2dbe003673d03272987b79f73bdee86283d
[ "Apache-2.0" ]
null
null
null
sockeye/lr_scheduler.py
msobrevillac/sockeye
6ed5e2dbe003673d03272987b79f73bdee86283d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License # is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
46.077703
125
0.669844
db567bae1b48f5aba8649d6d11e52a7cf4d36de9
2,204
py
Python
get-DynamoDB-value.py
dongwon18/AWS_IoT_SensorMonitoring
e19b76fd1ff7c6108e77c6d759390d3559481de0
[ "MIT" ]
null
null
null
get-DynamoDB-value.py
dongwon18/AWS_IoT_SensorMonitoring
e19b76fd1ff7c6108e77c6d759390d3559481de0
[ "MIT" ]
null
null
null
get-DynamoDB-value.py
dongwon18/AWS_IoT_SensorMonitoring
e19b76fd1ff7c6108e77c6d759390d3559481de0
[ "MIT" ]
null
null
null
# import the json utility package since we will be working with a JSON object import json # import the AWS SDK (for Python the package name is boto3) import boto3 from boto3.dynamodb.conditions import Key # import two packages to help us with dates and date formatting from datetime import datetime, timedelta, timezone ...
36.733333
147
0.647913
bdf24a2bdd6735c76e4b683ed636e027ffd4708d
196
py
Python
learning_logs/admin.py
Favorsiki/LearningLog
a71b2c006ea0888c884d0e3b534726dd66ab5720
[ "MIT" ]
null
null
null
learning_logs/admin.py
Favorsiki/LearningLog
a71b2c006ea0888c884d0e3b534726dd66ab5720
[ "MIT" ]
null
null
null
learning_logs/admin.py
Favorsiki/LearningLog
a71b2c006ea0888c884d0e3b534726dd66ab5720
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from learning_logs.models import Topic from learning_logs.models import Entry admin.site.register(Topic) admin.site.register(Entry)
21.777778
38
0.826531
3d3646316636cb207d3955ff39740e8f23089f33
124,146
py
Python
twisted/test/test_ftp.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
null
null
null
twisted/test/test_ftp.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
null
null
null
twisted/test/test_ftp.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
null
null
null
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ FTP tests. """ import os import errno from StringIO import StringIO import getpass from zope.interface import implements from zope.interface.verify import verifyClass from twisted.trial import unittest from twisted.python.randbytes import i...
35.099237
94
0.60097
8fb8ab840a4186e2ba4157a1882c005d8182839b
530
py
Python
doc/src/tools/lib/sql_role.py
mrmilosz/psycopg2
34d3ac428c81b2dce93d3202af978e977de4b099
[ "OpenSSL" ]
6
2015-09-11T05:24:55.000Z
2021-12-18T04:24:57.000Z
doc/src/tools/lib/sql_role.py
mrmilosz/psycopg2
34d3ac428c81b2dce93d3202af978e977de4b099
[ "OpenSSL" ]
1
2015-01-22T22:50:42.000Z
2015-01-22T22:50:42.000Z
doc/src/tools/lib/sql_role.py
beyang/psycopg2
62dfd8e9841616b4b7eea12fc923b3ee57fc5cc4
[ "OpenSSL" ]
4
2016-02-15T19:11:47.000Z
2022-03-16T18:41:25.000Z
# -*- coding: utf-8 -*- """ sql role ~~~~~~~~ An interpreted text role to style SQL syntax in Psycopg documentation. :copyright: Copyright 2010 by Daniele Varrazzo. """ from docutils import nodes, utils from docutils.parsers.rst import roles def sql_role(name, rawtext, text, lineno, inliner, options...
24.090909
75
0.658491
9c58438e2c1f2392fd04f5a33ae27c61ccaf45c2
2,831
py
Python
Sketches/MPS/Old/Sugar/silly.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/Old/Sugar/silly.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/Old/Sugar/silly.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Inspired by Damian Conway's syntax for encoding # Flying Spaghetti Monsters in C++ # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - p...
29.185567
92
0.674673
d164a9074b4f6193d859d49a16daf38de09854ef
995
py
Python
i2a/latent_space/latent_space_imagination_core.py
FlorianKlemt/pytorch-latent-i2a
36809bf3adda1fcffaccd27e352b7ad2338060a7
[ "MIT" ]
3
2019-02-24T07:37:36.000Z
2020-03-17T16:00:38.000Z
i2a/latent_space/latent_space_imagination_core.py
FlorianKlemt/pytorch-latent-i2a
36809bf3adda1fcffaccd27e352b7ad2338060a7
[ "MIT" ]
null
null
null
i2a/latent_space/latent_space_imagination_core.py
FlorianKlemt/pytorch-latent-i2a
36809bf3adda1fcffaccd27e352b7ad2338060a7
[ "MIT" ]
null
null
null
from torch import nn class LatentSpaceImaginationCore(nn.Module): def __init__(self, env_model=None, rollout_policy=None): super(LatentSpaceImaginationCore, self).__init__() self.env_model = env_model self.rollout_policy = rollout_policy def forward(self, latent_state, action): ...
36.851852
91
0.730653
affba4e354ce25e2efdfa2faa3b7b5a0b9da6808
6,651
py
Python
main.py
James822/JBhangman
da74e4ebc046404bd7141149f911fc4c10dd24c9
[ "MIT" ]
null
null
null
main.py
James822/JBhangman
da74e4ebc046404bd7141149f911fc4c10dd24c9
[ "MIT" ]
null
null
null
main.py
James822/JBhangman
da74e4ebc046404bd7141149f911fc4c10dd24c9
[ "MIT" ]
null
null
null
MAX_WORD_LENGTH = 11 MIN_WORD_LENGTH = 5 def gui(word, found_list, guesss_list, hang_state): if hang_state == 0: print("\t\t______________") print("\t\t| |") print("\t\t| |") print("\t\t |") print("\t\t |") print("\t\...
36.543956
88
0.375733
8df692a1acdb118d56b869846827ee01a4bee330
3,012
py
Python
tests/contract/KT1EXWcSD1W3CqHCyU3m8xXDcctYrdkRJ5yA/test_exwcsd.py
bantalon/pytezos
e538fb47a0879e70af3c0c074348a5edc3a94372
[ "MIT" ]
null
null
null
tests/contract/KT1EXWcSD1W3CqHCyU3m8xXDcctYrdkRJ5yA/test_exwcsd.py
bantalon/pytezos
e538fb47a0879e70af3c0c074348a5edc3a94372
[ "MIT" ]
null
null
null
tests/contract/KT1EXWcSD1W3CqHCyU3m8xXDcctYrdkRJ5yA/test_exwcsd.py
bantalon/pytezos
e538fb47a0879e70af3c0c074348a5edc3a94372
[ "MIT" ]
null
null
null
from unittest import TestCase from os.path import dirname, join import json from pytezos.michelson.micheline import get_script_section from pytezos.michelson.types.base import MichelsonType from pytezos.michelson.program import MichelsonProgram from pytezos.michelson.format import micheline_to_michelson from pytezos.m...
40.702703
106
0.699867
446648b845a6d28907040ea99c17b913a69ce990
6,420
py
Python
imagenet-pretrain/lednet_imagenet.py
barnjamin/LEDNet
073fcd0b2f83a5b7ff7706e0295a7ff5727b4ab1
[ "MIT" ]
null
null
null
imagenet-pretrain/lednet_imagenet.py
barnjamin/LEDNet
073fcd0b2f83a5b7ff7706e0295a7ff5727b4ab1
[ "MIT" ]
null
null
null
imagenet-pretrain/lednet_imagenet.py
barnjamin/LEDNet
073fcd0b2f83a5b7ff7706e0295a7ff5727b4ab1
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.init as init import torch.nn.functional as F def channel_shuffle(x,groups): batchsize, num_channels, height, width = x.data.size() channels_per_group = num_channels // groups #reshape x = x.view(batchsize,groups, channels_per_group,he...
31.165049
129
0.610436
e110a53253eedceb1cc620998e719e1b2944dcf5
14,976
py
Python
ruth_demo.py
RuthAngus/celerotation
6959d3f9e09ef206491253ac49df9dc3987c2bd9
[ "MIT" ]
null
null
null
ruth_demo.py
RuthAngus/celerotation
6959d3f9e09ef206491253ac49df9dc3987c2bd9
[ "MIT" ]
null
null
null
ruth_demo.py
RuthAngus/celerotation
6959d3f9e09ef206491253ac49df9dc3987c2bd9
[ "MIT" ]
null
null
null
# coding: utf-8 # Code for measuring rotation periods using celerite. from matplotlib import rcParams rcParams["savefig.dpi"] = 150 rcParams["figure.dpi"] = 150 import corner import emcee3 import numpy as np import matplotlib.pyplot as plt from scipy.optimize import minimize from astropy.stats import LombScargle imp...
31.86383
100
0.655716
8e6d45df1019d4a13ff808aec0ccad9e03717d91
1,419
py
Python
tests/nn/test_clipped_nn.py
ssameerr/pyro
c04fc931631ec9e8694def207b5ca0e432d5e501
[ "MIT" ]
null
null
null
tests/nn/test_clipped_nn.py
ssameerr/pyro
c04fc931631ec9e8694def207b5ca0e432d5e501
[ "MIT" ]
null
null
null
tests/nn/test_clipped_nn.py
ssameerr/pyro
c04fc931631ec9e8694def207b5ca0e432d5e501
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import pytest import torch from torch.autograd import Variable from pyro.nn.clipped_nn import ClippedSigmoid, ClippedSoftmax from tests.common import assert_equal @pytest.mark.parametrize('Tensor', [torch.FloatTensor, torch.DoubleTensor]) def test_cli...
33.785714
75
0.701198
7067946c73d92d979e71a00d33397b02ad174949
13,061
py
Python
swarmdjango/core/logParsers/parsers.py
YCP-Swarm-Robotics-Capstone-2020-2021/swarm-website-backend
081d1930cc9283ee299d373f91f7c127f466c104
[ "MIT" ]
null
null
null
swarmdjango/core/logParsers/parsers.py
YCP-Swarm-Robotics-Capstone-2020-2021/swarm-website-backend
081d1930cc9283ee299d373f91f7c127f466c104
[ "MIT" ]
51
2020-08-31T16:50:09.000Z
2021-05-10T03:04:18.000Z
swarmdjango/core/logParsers/parsers.py
YCP-Swarm-Robotics-Capstone-2020-2021/swarm-website-backend
081d1930cc9283ee299d373f91f7c127f466c104
[ "MIT" ]
null
null
null
import itertools import re import json import sys # Log parser for the web application # Parameter is the file path of the log def web_parser(file_path): # Open the log file in read mode file = open(file_path, 'r') # Check to see what type of log file this is, and set log_type and robot_id appropriately...
38.756677
124
0.57844
be8aff5fb2c2bb3f68288962aca38f1fa7a406ce
263
py
Python
contests/atcoder/abc179/abc179_a/main.py
conao3/coder
2cdb610fec013da88a3470d460108e8a9b462445
[ "CC0-1.0" ]
null
null
null
contests/atcoder/abc179/abc179_a/main.py
conao3/coder
2cdb610fec013da88a3470d460108e8a9b462445
[ "CC0-1.0" ]
null
null
null
contests/atcoder/abc179/abc179_a/main.py
conao3/coder
2cdb610fec013da88a3470d460108e8a9b462445
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 from typing import * # def solve(S: str) -> str: def solve(S): if S[-1:] == 's': return S+'es' else: return S+'s' def main(): S = input() a = solve(S) print(a) if __name__ == '__main__': main()
12.52381
27
0.494297
e6d2225911f97b40c047ac68c2448642f975b33a
10,251
py
Python
contrib/spendfrom/spendfrom.py
tocacyy/GoldCoin
049f6bef41ff57eaa1b6a156a2b7e86ccef200eb
[ "MIT" ]
1
2021-05-12T19:29:36.000Z
2021-05-12T19:29:36.000Z
contrib/spendfrom/spendfrom.py
tocacyy/GoldCoin
049f6bef41ff57eaa1b6a156a2b7e86ccef200eb
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
tocacyy/GoldCoin
049f6bef41ff57eaa1b6a156a2b7e86ccef200eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2013 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Use the raw transactions API to spend bitcoins received on particular addresses, # and send any change back ...
37.826568
111
0.635548
e18590f43bac1317d1bf8e398d61303c00a54cdb
223
py
Python
main/PluginDemos/connectivity_elongation_fast/Simulation/ConnectivityElongation.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/PluginDemos/connectivity_elongation_fast/Simulation/ConnectivityElongation.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/PluginDemos/connectivity_elongation_fast/Simulation/ConnectivityElongation.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
1
2021-02-26T21:50:29.000Z
2021-02-26T21:50:29.000Z
from cc3d import CompuCellSetup from .ConnectivityElongationSteppable import ConnectivityElongationSteppable CompuCellSetup.register_steppable(steppable=ConnectivityElongationSteppable(frequency=50)) CompuCellSetup.run()
31.857143
90
0.896861
fc1d7930bd452a2890aa83cc035e35c7f07b72ed
3,806
py
Python
tests/test_api.py
Guilherme-Macena/tutorial-pybr
faf38ecda69130fc3971299d736fe11bd12c0eeb
[ "MIT" ]
null
null
null
tests/test_api.py
Guilherme-Macena/tutorial-pybr
faf38ecda69130fc3971299d736fe11bd12c0eeb
[ "MIT" ]
null
null
null
tests/test_api.py
Guilherme-Macena/tutorial-pybr
faf38ecda69130fc3971299d736fe11bd12c0eeb
[ "MIT" ]
null
null
null
from http import HTTPStatus from typing import List from uuid import UUID import pytest from fastapi.testclient import TestClient from api_pedidos.api import app, recuperar_itens_por_pedido from api_pedidos.esquema import Item from api_pedidos.excecao import ( FalhaDeComunicacaoError, PedidoNaoEnco...
33.681416
78
0.651077
0489d858fbe1e108951d8f92430369d40d0db2db
5,182
py
Python
src/data_utils/data_writer.py
knmac/LCDC_release
f977ca1cda972983cac7e33b324f07f2e1463a19
[ "MIT" ]
24
2019-09-18T09:22:08.000Z
2022-03-08T06:47:33.000Z
src/data_utils/data_writer.py
knmac/LCDC_release
f977ca1cda972983cac7e33b324f07f2e1463a19
[ "MIT" ]
6
2019-09-18T09:21:02.000Z
2022-02-09T23:31:48.000Z
src/data_utils/data_writer.py
knmac/LCDC_release
f977ca1cda972983cac7e33b324f07f2e1463a19
[ "MIT" ]
4
2020-08-06T02:05:36.000Z
2021-12-12T07:19:17.000Z
import tensorflow as tf from random import shuffle import numpy as np import os from skimage import io from skimage.transform import resize from progressbar import ProgressBar import abc import six @six.add_metaclass(abc.ABCMeta) class DataWriter(object): def __init__(self): pass # Abstract methods--...
33.432258
79
0.549209
67a5c44baf11c759c0903a6bd79cd2971e2ee889
129
py
Python
th2c/response.py
vladmunteanu/th2c
97defe9cd531010970aeba68a59be921ea3ed81a
[ "MIT" ]
82
2017-11-15T09:11:48.000Z
2022-02-20T08:45:23.000Z
th2c/response.py
vladmunteanu/th2c
97defe9cd531010970aeba68a59be921ea3ed81a
[ "MIT" ]
8
2017-12-11T09:24:44.000Z
2020-02-03T13:58:03.000Z
th2c/response.py
vladmunteanu/th2c
97defe9cd531010970aeba68a59be921ea3ed81a
[ "MIT" ]
10
2017-12-24T11:20:21.000Z
2019-09-11T10:14:39.000Z
from __future__ import absolute_import from tornado.httpclient import HTTPResponse class HTTP2Response(HTTPResponse): pass
18.428571
43
0.837209
69f8d6ff24cdcf820238452d3f085779a48d0d19
1,193
py
Python
setup.py
Tedyst/blockify
bb9e4ba498589d0e44b5dc5c9212d01897ca2b5d
[ "MIT" ]
235
2016-07-13T19:14:33.000Z
2022-03-26T21:27:10.000Z
setup.py
Tedyst/blockify
bb9e4ba498589d0e44b5dc5c9212d01897ca2b5d
[ "MIT" ]
71
2015-01-10T13:58:17.000Z
2016-07-05T14:51:48.000Z
setup.py
Tedyst/blockify
bb9e4ba498589d0e44b5dc5c9212d01897ca2b5d
[ "MIT" ]
32
2016-09-27T05:20:42.000Z
2021-05-13T21:11:35.000Z
from os.path import dirname, join from blockify.util import VERSION from setuptools import setup, find_packages def read(filename): text = "" try: with open(join(dirname(__file__), filename)) as f: text = f.read() except Exception as e: text = "{0}: {1}".format(e, filename) ...
25.934783
91
0.615256
ae1141f202facbd7535660a934cd9d92259eaf58
752
py
Python
tests/test_cli.py
melund/conda
2348aa1863c2bd0c536f29c510a97fbc85a2ad89
[ "BSD-3-Clause" ]
null
null
null
tests/test_cli.py
melund/conda
2348aa1863c2bd0c536f29c510a97fbc85a2ad89
[ "BSD-3-Clause" ]
null
null
null
tests/test_cli.py
melund/conda
2348aa1863c2bd0c536f29c510a97fbc85a2ad89
[ "BSD-3-Clause" ]
null
null
null
import unittest from conda.cli.common import arg2spec class TestArg2Spec(unittest.TestCase): def test_simple(self): self.assertEqual(arg2spec('python'), 'python') self.assertEqual(arg2spec('python=2.6'), 'python 2.6*') self.assertEqual(arg2spec('ipython=0.13.2'), 'ipython 0.13.2*') ...
30.08
76
0.658245
293f393512a9d4b35aeab847bb8d5200c16e0e57
1,808
py
Python
rx/core/operators/publish.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
4,342
2015-01-06T09:00:23.000Z
2022-03-28T15:05:50.000Z
rx/core/operators/publish.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
613
2015-01-07T20:44:56.000Z
2022-03-20T06:14:20.000Z
rx/core/operators/publish.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
420
2015-01-07T14:30:30.000Z
2022-03-11T22:47:46.000Z
from typing import Callable, Optional from rx import operators as ops from rx.core import Observable, ConnectableObservable, pipe from rx.core.typing import Mapper from rx.subject import Subject def _publish(mapper: Optional[Mapper] = None) -> Callable[[Observable], ConnectableObservable]: """Returns an observab...
36.897959
95
0.72677
a32ce9af95b407693f16a1eb5d5adbb4af3b6227
867
py
Python
goodreads_api_client/tests/test_client.py
fossabot/goodreads-api-client-python
d58424aea92e808e8e9c6bbf6ecc42f084a6c642
[ "MIT" ]
63
2017-12-03T02:54:05.000Z
2022-02-01T23:28:32.000Z
goodreads_api_client/tests/test_client.py
fossabot/goodreads-api-client-python
d58424aea92e808e8e9c6bbf6ecc42f084a6c642
[ "MIT" ]
13
2017-08-13T17:28:06.000Z
2019-06-08T05:49:11.000Z
goodreads_api_client/tests/test_client.py
fossabot/goodreads-api-client-python
d58424aea92e808e8e9c6bbf6ecc42f084a6c642
[ "MIT" ]
15
2017-12-09T00:56:05.000Z
2021-01-26T22:42:09.000Z
import unittest from goodreads_api_client.client import Client from goodreads_api_client.tests.conftest import ( developer_key, developer_secret, vcr) class TestClient(unittest.TestCase): def setUp(self): self._client = Client(developer_key=developer_key, developer_secre...
30.964286
64
0.694348
7c59986e641f07530dde637e11b0a6aa65d35c00
528
py
Python
usaspending_api/references/migrations/0026_auto_20161021_1237.py
toolness/usaspending-api
ed9a396e20a52749f01f43494763903cc371f9c2
[ "CC0-1.0" ]
1
2021-06-17T05:09:00.000Z
2021-06-17T05:09:00.000Z
usaspending_api/references/migrations/0026_auto_20161021_1237.py
toolness/usaspending-api
ed9a396e20a52749f01f43494763903cc371f9c2
[ "CC0-1.0" ]
null
null
null
usaspending_api/references/migrations/0026_auto_20161021_1237.py
toolness/usaspending-api
ed9a396e20a52749f01f43494763903cc371f9c2
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-10-21 16:37 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('references', '0025_auto_20161021_0948'), ] operations = [ migrations.RenameModel( ...
22
50
0.606061
e2509f20d2c32865b060349790ef66e7e21e9eba
1,369
py
Python
src/mojang.py
talwat/SkinModPy
d2d1891243087d7a812d4f58bb46ddcd611e1e5f
[ "MIT" ]
1
2021-12-05T07:19:47.000Z
2021-12-05T07:19:47.000Z
src/mojang.py
talwat/SkinModPy
d2d1891243087d7a812d4f58bb46ddcd611e1e5f
[ "MIT" ]
null
null
null
src/mojang.py
talwat/SkinModPy
d2d1891243087d7a812d4f58bb46ddcd611e1e5f
[ "MIT" ]
null
null
null
from json import loads import methods def getSkin(name, outputPath): uuid = "" try: methods.log("Getting name profile info...") rawNameData = methods.getFromInternet("https://api.mojang.com/users/profiles/minecraft/{}".format(name)) except Exception as e: methods.log("An error occur...
41.484848
119
0.674945
5c7117f0dfa9e0f5c3321e0af2b3d3df0e22ed6c
2,301
py
Python
switchboard/models.py
gutma-org/droneregistry-broker
c53910e0819d75d1bbbe6427e1a178ff8cde7a02
[ "Apache-2.0" ]
2
2019-07-03T14:52:34.000Z
2021-04-26T21:36:05.000Z
switchboard/models.py
gutma-org/droneregistry-broker
c53910e0819d75d1bbbe6427e1a178ff8cde7a02
[ "Apache-2.0" ]
2
2018-11-16T13:29:07.000Z
2018-12-31T11:32:06.000Z
switchboard/models.py
gutma-org/droneregistry-broker
c53910e0819d75d1bbbe6427e1a178ff8cde7a02
[ "Apache-2.0" ]
2
2019-07-08T12:40:10.000Z
2020-12-13T10:14:14.000Z
from django.db import models import uuid # Create your models here. from datetime import date from datetime import datetime from datetime import timezone from dateutil.relativedelta import relativedelta from django.utils.translation import ugettext_lazy as _ import string, random from django.core.validators i...
40.368421
130
0.683181
5cf40d106132d7658942cb90600e90a6134e6db5
1,592
py
Python
pypdevs/src/pypdevs/message.py
martinvy/sin-model-elevators
ebf6511d61326972b2e366c8975f76a944196a6f
[ "MIT" ]
1
2018-09-19T14:42:28.000Z
2018-09-19T14:42:28.000Z
pypdevs/src/pypdevs/message.py
martinvy/sin-model-elevators
ebf6511d61326972b2e366c8975f76a944196a6f
[ "MIT" ]
null
null
null
pypdevs/src/pypdevs/message.py
martinvy/sin-model-elevators
ebf6511d61326972b2e366c8975f76a944196a6f
[ "MIT" ]
2
2020-05-29T10:12:37.000Z
2021-05-19T21:32:35.000Z
# Copyright 2014 Modelling, Simulation and Design Lab (MSDL) at # McGill University and the University of Antwerp (http://msdl.cs.mcgill.ca/) # # 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...
35.377778
77
0.692211
aa350a56ebedd8c9b04f7dd47adf397f2e14976d
678
py
Python
core/layers/uigen/python/bin/rstpep2html.py
nerdguru/sls-pypi
b31c7738ac3bada5ecf3eaae8dcbc2d2a30b7dcf
[ "MIT" ]
null
null
null
core/layers/uigen/python/bin/rstpep2html.py
nerdguru/sls-pypi
b31c7738ac3bada5ecf3eaae8dcbc2d2a30b7dcf
[ "MIT" ]
18
2019-10-10T00:08:35.000Z
2019-10-23T15:34:42.000Z
core/layers/uigen/python/bin/rstpep2html.py
nerdguru/sls-pypi
b31c7738ac3bada5ecf3eaae8dcbc2d2a30b7dcf
[ "MIT" ]
null
null
null
#!/var/lang//bin/python3.6 # $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML from PEP (Python Enhancement Proposal) documents. """ try:...
26.076923
76
0.722714
4b607a9c11a230ed48ff8cd09ff3f2a3536f8214
171
py
Python
apps/news/forms.py
shiqianlong/xfz
3474794e9585eae42362cbcdc67836498f452571
[ "BSL-1.0" ]
null
null
null
apps/news/forms.py
shiqianlong/xfz
3474794e9585eae42362cbcdc67836498f452571
[ "BSL-1.0" ]
null
null
null
apps/news/forms.py
shiqianlong/xfz
3474794e9585eae42362cbcdc67836498f452571
[ "BSL-1.0" ]
null
null
null
from django import forms from apps.forms import FormMixin class NewsCommentForm(forms.Form,FormMixin): content = forms.CharField() news_id = forms.IntegerField()
24.428571
44
0.77193
f01fb962b7e02029cd3b5996fc25300610e6984b
119
py
Python
app/Python/testbiaoge1.py
biaogeniubi666/zhy_business_data_platform
6cf45208421e1989fe961b0a4b6dff32735650a6
[ "MIT" ]
null
null
null
app/Python/testbiaoge1.py
biaogeniubi666/zhy_business_data_platform
6cf45208421e1989fe961b0a4b6dff32735650a6
[ "MIT" ]
6
2019-08-13T01:47:20.000Z
2022-02-18T06:22:35.000Z
app/Python/testbiaoge1.py
biaogeniubi666/zhy_business_data_platform
6cf45208421e1989fe961b0a4b6dff32735650a6
[ "MIT" ]
null
null
null
import random def go(min = 0,max = 1): randomfloat = random.uniform(min, max) return randomfloat
13.222222
42
0.605042
e248279b0ae79771a8635ff4b9d32a3eb817c96e
3,986
py
Python
alipay/aop/api/request/AlipayOpenContentIotCouponQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayOpenContentIotCouponQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayOpenContentIotCouponQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOpenContentIotCouponQueryModel import AlipayOpenContentIotCouponQueryModel class AlipayOpenContentIotCouponQueryRequest(object...
27.489655
148
0.64576
373a8fa78d9e97d043ab8bfeb79a7b0054698457
7,145
py
Python
dev/Tools/build/waf-1.7.13/lmbrwaflib/compile_rules_win_x64_win_x64_clang.py
CJoriginal/cjlumberyard
2e3184a7d8e59ba05e5707371b8cb6fe40b0ca60
[ "AML" ]
2
2020-08-20T03:40:24.000Z
2021-02-07T20:31:43.000Z
dev/Tools/build/waf-1.7.13/lmbrwaflib/compile_rules_win_x64_win_x64_clang.py
CJoriginal/cjlumberyard
2e3184a7d8e59ba05e5707371b8cb6fe40b0ca60
[ "AML" ]
null
null
null
dev/Tools/build/waf-1.7.13/lmbrwaflib/compile_rules_win_x64_win_x64_clang.py
CJoriginal/cjlumberyard
2e3184a7d8e59ba05e5707371b8cb6fe40b0ca60
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or t...
31.200873
128
0.661582
4bdc7347a66977b582b322c8d455a3927a3ff99b
16,349
bzl
Python
pkg/pkg.bzl
mmikitka/rules_pkg
b28e8c827dcdb4b16aa9aa81c6d59b17ea6a4497
[ "Apache-2.0" ]
null
null
null
pkg/pkg.bzl
mmikitka/rules_pkg
b28e8c827dcdb4b16aa9aa81c6d59b17ea6a4497
[ "Apache-2.0" ]
null
null
null
pkg/pkg.bzl
mmikitka/rules_pkg
b28e8c827dcdb4b16aa9aa81c6d59b17ea6a4497
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The Bazel 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 la...
37.072562
105
0.593553
f1bef384cdc1fab118ad54040362f8f405f34bc5
1,852
py
Python
src/pretix/multidomain/models.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-25T00:11:00.000Z
2020-04-25T00:11:00.000Z
src/pretix/multidomain/models.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/multidomain/models.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from django.core.cache import cache from django.db import models from django.utils.translation import gettext_lazy as _ from django_scopes import scopes_disabled from pretix.base.models import Event, Organizer class KnownDomain(models.Model): domainname = models.CharField(max_length=255, primary_key=True) or...
40.26087
117
0.678186
aaa2f0e1b1aaa3e9ba399a50611a62a5138e0060
1,674
py
Python
physicalrobots/player/client_libs/libplayerc/bindings/python/test/test_position2d.py
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
physicalrobots/player/client_libs/libplayerc/bindings/python/test/test_position2d.py
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
physicalrobots/player/client_libs/libplayerc/bindings/python/test/test_position2d.py
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
#/* # * Player - One Hell of a Robot Server # * Copyright (C) 2004 # * Andrew Howard # * # * # * This library is free software; you can redistribute it and/or # * modify it under the terms of the GNU Lesser General Public # * License as published by the Free Software Foundation; either # ...
32.823529
83
0.655317
4ee064fab2560824001d4c1b3913d5e5c099482d
8,257
py
Python
sdk/python/feast/infra/local.py
jongillham/feast
786dde7c50318b3a2387e16fe7365599bdcebf58
[ "Apache-2.0" ]
3
2021-05-07T06:03:44.000Z
2022-02-20T10:43:59.000Z
sdk/python/feast/infra/local.py
jongillham/feast
786dde7c50318b3a2387e16fe7365599bdcebf58
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/infra/local.py
jongillham/feast
786dde7c50318b3a2387e16fe7365599bdcebf58
[ "Apache-2.0" ]
2
2021-05-07T06:03:40.000Z
2021-07-17T08:32:02.000Z
import os import sqlite3 from datetime import datetime from pathlib import Path from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import pandas as pd import pytz from feast import FeatureTable, utils from feast.entity import Entity from feast.feature_view import FeatureView from feast.inf...
34.987288
204
0.595374
077a0adb87e7a11767dd69ca38c9a40673d9d479
5,531
py
Python
6_preview_outliers.py
jphdotam/T1T2
b5003f5cf3aaddc4f43a7b7b4a77f52cef956c27
[ "MIT" ]
null
null
null
6_preview_outliers.py
jphdotam/T1T2
b5003f5cf3aaddc4f43a7b7b4a77f52cef956c27
[ "MIT" ]
null
null
null
6_preview_outliers.py
jphdotam/T1T2
b5003f5cf3aaddc4f43a7b7b4a77f52cef956c27
[ "MIT" ]
null
null
null
import os import numpy as np import skimage.io import matplotlib.pyplot as plt from glob import glob import torch from lib.cfg import load_config from lib.hrnet import get_hrnet_model, get_hrnet_cfg from lib.landmarks import load_landmark_model, perform_cmr_landmark_detection, extend_landmarks from lib.tracing import...
46.091667
122
0.722654
4720c4367c3db96a85b8241012dd65354d807e6f
2,017
py
Python
third_party/webrtc/src/chromium/src/tools/perf/benchmarks/text_selection.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
8
2016-02-08T11:59:31.000Z
2020-05-31T15:19:54.000Z
third_party/webrtc/src/chromium/src/tools/perf/benchmarks/text_selection.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
1
2021-05-05T11:11:31.000Z
2021-05-05T11:11:31.000Z
third_party/webrtc/src/chromium/src/tools/perf/benchmarks/text_selection.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
7
2016-02-09T09:28:14.000Z
2020-07-25T19:03:36.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from core import perf_benchmark from telemetry import benchmark from telemetry.timeline import tracing_category_filter from telemetry.web_perf import timeli...
31.030769
80
0.790283
adcd5c9ada1beb5129d33d1662b9122df2b7d4e3
2,926
py
Python
pandapower/pf/dSbus_dV_numba.py
suzannejanssen/pandapower
8d0d422c28924c85e774e0e357e4abff86ff3c55
[ "BSD-3-Clause" ]
1
2020-10-19T06:39:15.000Z
2020-10-19T06:39:15.000Z
pandapower/pf/dSbus_dV_numba.py
miek770/pandapower
de004efc1b7432a633792af4f551f7635a02db47
[ "BSD-3-Clause" ]
null
null
null
pandapower/pf/dSbus_dV_numba.py
miek770/pandapower
de004efc1b7432a633792af4f551f7635a02db47
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2016-2018 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. All rights reserved. from numba import jit from numpy import conj, zeros, complex128 from scipy.sparse import issparse, csr_matrix as sparse from panda...
35.253012
103
0.595352
941f19ce2a9a332e5f6e1b69f49df4bb98e9a4c5
7,335
py
Python
proxy_checker.py
AlanBaumgartner/proxy_checker
d7c357d173241f3383c4295fd3b90ce977a05908
[ "MIT" ]
1
2017-04-24T20:45:32.000Z
2017-04-24T20:45:32.000Z
proxy_checker.py
AlanBaumgartner/proxy_checker
d7c357d173241f3383c4295fd3b90ce977a05908
[ "MIT" ]
1
2017-04-10T18:43:47.000Z
2017-04-14T21:33:46.000Z
proxy_checker.py
AlanBaumgartner/proxy_checker
d7c357d173241f3383c4295fd3b90ce977a05908
[ "MIT" ]
null
null
null
import sys, aiohttp, asyncio from PyQt5.QtWidgets import * from PyQt5.QtCore import * __author__ = 'Alan Baumgartner' class ImportDialog(QDialog): def __init__(self): super().__init__() self.setWindowFlags(self.windowFlags() ^ Qt.WindowContextHelpButtonHint) self.setWindowModality(Qt.Appli...
29.817073
104
0.597819
e43960744ac21d0b5a7f88e2704f498273981e38
580
py
Python
src/Sprites/Groups/nests.py
IUS-CS/project-scrumger-games
d8c6bad99ccaf10d3cca05b6fc44799e2f46ad2a
[ "MIT" ]
3
2021-02-02T18:11:34.000Z
2021-04-16T20:47:40.000Z
src/Sprites/Groups/nests.py
IUS-CS/project-scrumger-games
d8c6bad99ccaf10d3cca05b6fc44799e2f46ad2a
[ "MIT" ]
3
2021-03-10T14:34:05.000Z
2021-04-14T03:11:56.000Z
src/Sprites/Groups/nests.py
IUS-CS/project-scrumger-games
d8c6bad99ccaf10d3cca05b6fc44799e2f46ad2a
[ "MIT" ]
5
2021-02-02T19:01:01.000Z
2021-12-14T22:19:54.000Z
import pygame.sprite class DisabledNests(pygame.sprite.Group): """ Contains a static method used to check if all the nests have been reached, and activate the win condition. """ @staticmethod def check_for_win(player): """ Returns true if the player has reached all 5 nests. ...
25.217391
110
0.591379
d24f2160a6df7475ec3c76bd9ffe0e27487dd5b3
4,025
py
Python
source/pythonds3/basic/linked_list.py
umknow/python
6fc4ad43bf0886c49b807c203ca485a15056c97c
[ "BSD-2-Clause" ]
null
null
null
source/pythonds3/basic/linked_list.py
umknow/python
6fc4ad43bf0886c49b807c203ca485a15056c97c
[ "BSD-2-Clause" ]
null
null
null
source/pythonds3/basic/linked_list.py
umknow/python
6fc4ad43bf0886c49b807c203ca485a15056c97c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Bradley N. Miller, David L. Ranum Problem Solving with Algorithms and Data Structures using Python Copyright 2005 Updated by Roman Yasinovskyy, 2017 """ from abc import ABC, abstractmethod class LinkedListNode: """A node of a linked list""" def __init__(self, node_data): s...
23.816568
64
0.553789
639dfa4bc3d148e274257ac46be6a79da9c0ab73
8,754
py
Python
my_happy_pandas/core/window/common.py
ggservice007/my-happy-pandas
63145d54e452177f7d5b2fc8fdbc1fdf37dd5b16
[ "Apache-2.0" ]
null
null
null
my_happy_pandas/core/window/common.py
ggservice007/my-happy-pandas
63145d54e452177f7d5b2fc8fdbc1fdf37dd5b16
[ "Apache-2.0" ]
null
null
null
my_happy_pandas/core/window/common.py
ggservice007/my-happy-pandas
63145d54e452177f7d5b2fc8fdbc1fdf37dd5b16
[ "Apache-2.0" ]
null
null
null
"""Common utility functions for rolling operations""" from collections import defaultdict from typing import Callable, Optional import warnings import numpy as np from my_happy_pandas.core.dtypes.generic import ABCDataFrame, ABCSeries from my_happy_pandas.core.generic import _shared_docs from my_happy_pandas.core.gr...
34.738095
86
0.514736
2f77b55d6f7dc601167b68b4a56d717186145e2b
374
py
Python
siteconfig/commands/eval.py
mikeboers/siteconfig
7124e941cf5068a70f07d0011902af797b74657e
[ "BSD-3-Clause" ]
null
null
null
siteconfig/commands/eval.py
mikeboers/siteconfig
7124e941cf5068a70f07d0011902af797b74657e
[ "BSD-3-Clause" ]
null
null
null
siteconfig/commands/eval.py
mikeboers/siteconfig
7124e941cf5068a70f07d0011902af797b74657e
[ "BSD-3-Clause" ]
null
null
null
import sys from .main import command, argument @command( argument('expr', nargs='+'), name='eval', help='lookup a single key', ) def eval_(args, config): globals_ = dict(config) locals_ = {'config': config} value = eval(' '.join(args.expr), globals_, locals_) if value is None: r...
17.809524
56
0.617647
07f7fa818aa0e2b943b87414b4af607d67f6a475
8,784
py
Python
python/paddle/fluid/tests/unittests/test_dynrnn_static_input.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/tests/unittests/test_dynrnn_static_input.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_dynrnn_static_input.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-12-09T08:59:17.000Z
2021-12-09T08:59:17.000Z
# Copyright (c) 2018 PaddlePaddle 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 app...
40.666667
80
0.619536
8bd6c65962d800081a042034bbddab478e8c9844
826
py
Python
dynamic_programming/howSum.py
Yasir323/Data-Structures-and-Algorithms-in-Python
b721d0ca0218b9665d4f6ca0bbfd4417244bcdf0
[ "MIT" ]
null
null
null
dynamic_programming/howSum.py
Yasir323/Data-Structures-and-Algorithms-in-Python
b721d0ca0218b9665d4f6ca0bbfd4417244bcdf0
[ "MIT" ]
null
null
null
dynamic_programming/howSum.py
Yasir323/Data-Structures-and-Algorithms-in-Python
b721d0ca0218b9665d4f6ca0bbfd4417244bcdf0
[ "MIT" ]
null
null
null
# Program to return any combination that # adds up to a number, 'targetSum' """ m = target, determines the height of the tree n = array length, determines complexity This has a O(n^m * m) time complexity and O(m) space complexity when solving without memoization. Memoized Solution: Time = O(m*n*m) Space = O(m*m) """ ...
22.324324
54
0.642857
8774c15028247ce0cb6e72c42c6ea7bd0f9d4e07
7,231
py
Python
sdk/tables/azure-data-tables/azure/data/tables/aio/_base_client_async.py
pelanzag/azure-sdk-for-python
d97bd98f09d2d8b7517d84a97c363241bf56afd0
[ "MIT" ]
null
null
null
sdk/tables/azure-data-tables/azure/data/tables/aio/_base_client_async.py
pelanzag/azure-sdk-for-python
d97bd98f09d2d8b7517d84a97c363241bf56afd0
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/tables/azure-data-tables/azure/data/tables/aio/_base_client_async.py
pelanzag/azure-sdk-for-python
d97bd98f09d2d8b7517d84a97c363241bf56afd0
[ "MIT" ]
1
2019-04-05T18:17:43.000Z
2019-04-05T18:17:43.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from typi...
35.975124
128
0.619555
df0ac10ed8311fa2b85843d5365bc686690ed491
22,591
py
Python
msticpy/sectools/iocextract.py
Noezor/msticpy
f0d6d0d0bbaeba1ca060787b9929350804fa6dc5
[ "MIT" ]
4
2021-02-02T19:49:54.000Z
2021-12-09T04:04:13.000Z
msticpy/sectools/iocextract.py
Noezor/msticpy
f0d6d0d0bbaeba1ca060787b9929350804fa6dc5
[ "MIT" ]
null
null
null
msticpy/sectools/iocextract.py
Noezor/msticpy
f0d6d0d0bbaeba1ca060787b9929350804fa6dc5
[ "MIT" ]
2
2021-12-06T21:43:14.000Z
2022-03-11T21:45:03.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """ Module...
35.024806
86
0.583507
e79051e6470f5f25afc6348c56f1f8aa978d9552
401
py
Python
nirvaas_main/asgi.py
Ishikashah2510/nirvaas_main
5eaf92756d06261a7f555b10aad864a34c9e761b
[ "MIT" ]
null
null
null
nirvaas_main/asgi.py
Ishikashah2510/nirvaas_main
5eaf92756d06261a7f555b10aad864a34c9e761b
[ "MIT" ]
null
null
null
nirvaas_main/asgi.py
Ishikashah2510/nirvaas_main
5eaf92756d06261a7f555b10aad864a34c9e761b
[ "MIT" ]
3
2020-12-30T11:35:22.000Z
2021-01-07T13:10:26.000Z
""" ASGI config for nirvaas_main project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
23.588235
78
0.790524
079a02b6832a0ee0d45b040c7a939873dca7eb05
405
py
Python
website/migrations/0005_alter_contact_subject.py
ghassemiali/ghassemi7
2ee577a57fdd40df4e14214c16da266351cd7272
[ "MIT" ]
null
null
null
website/migrations/0005_alter_contact_subject.py
ghassemiali/ghassemi7
2ee577a57fdd40df4e14214c16da266351cd7272
[ "MIT" ]
null
null
null
website/migrations/0005_alter_contact_subject.py
ghassemiali/ghassemi7
2ee577a57fdd40df4e14214c16da266351cd7272
[ "MIT" ]
null
null
null
# Generated by Django 3.2.10 on 2022-01-18 16:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('website', '0004_alter_contact_subject'), ] operations = [ migrations.AlterField( model_name='contact', name='subjec...
21.315789
63
0.609877
fb2be243bc7e08c47d100b417c21a1d719a160be
5,700
py
Python
scipy/linalg/_matfuncs_sqrtm.py
isjoung/scipy
876a966a2b2016df9f7343f562ec70efa04a37f1
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/_matfuncs_sqrtm.py
isjoung/scipy
876a966a2b2016df9f7343f562ec70efa04a37f1
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/_matfuncs_sqrtm.py
isjoung/scipy
876a966a2b2016df9f7343f562ec70efa04a37f1
[ "BSD-3-Clause" ]
1
2017-03-02T23:53:50.000Z
2017-03-02T23:53:50.000Z
""" Matrix square root for general matrices and for upper triangular matrices. This module exists to avoid cyclic imports. """ from __future__ import division, print_function, absolute_import __all__ = ['sqrtm'] import numpy as np # Local imports from .misc import norm from .lapack import ztrsyl, dtrsyl from .dec...
29.533679
77
0.566667
41b6d95b2a825a9987fdb8d300b37aa8aa653b28
1,121
py
Python
units/file.py
huangjunxiong11/detailMatting
d6364f056ccd0511c527794758e5baf73f4fd176
[ "MIT" ]
1
2020-11-04T02:32:55.000Z
2020-11-04T02:32:55.000Z
units/file.py
huangjunxiong11/detailMatting
d6364f056ccd0511c527794758e5baf73f4fd176
[ "MIT" ]
1
2020-04-26T16:47:28.000Z
2020-04-29T09:28:36.000Z
units/file.py
huangjunxiong11/detailMatting
d6364f056ccd0511c527794758e5baf73f4fd176
[ "MIT" ]
null
null
null
import glob import os import time def read_file(path): """ 返回类别与对应视频字典 :param path: 路径,例如‘../data/invideo’ :return: 字典 """ today = time.strftime('%Y-%m-%d', time.localtime(time.time())) dirtoday = os.path.join(path, today) classdir = os.listdir(dirtoday) csv = {} for i, dir in ...
26.069767
66
0.582516
a0f461e931caae98b10433e248b5cb040a7072fe
7,354
py
Python
deepobs/tensorflow/datasets/fmnist.py
abahde/DeepOBS
7ba549fe2ed77d6458a20ae9e8971df95830d821
[ "MIT" ]
7
2019-09-06T04:51:14.000Z
2020-05-12T09:05:47.000Z
deepobs/tensorflow/datasets/fmnist.py
abahde/DeepOBS
7ba549fe2ed77d6458a20ae9e8971df95830d821
[ "MIT" ]
16
2019-09-06T10:58:31.000Z
2020-07-08T09:22:06.000Z
deepobs/tensorflow/datasets/fmnist.py
abahde/DeepOBS
7ba549fe2ed77d6458a20ae9e8971df95830d821
[ "MIT" ]
5
2019-07-24T14:20:15.000Z
2020-10-14T13:14:08.000Z
# -*- coding: utf-8 -*- """Fashion-MNIST DeepOBS dataset.""" from __future__ import print_function import os import gzip import numpy as np import tensorflow as tf from . import dataset from deepobs import config class fmnist(dataset.DataSet): """DeepOBS data set class for the `Fashion-MNIST (FMNIST)\ <http...
40.855556
86
0.606881