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
22e9a9f563dd19050f2b5c338c0fc75d7af0c466
3,452
py
Python
upcloud_api/cloud_manager/base.py
akx/upcloud-python-api
c18226ab5f991a495d3461f2cb534da30d147a2d
[ "MIT" ]
null
null
null
upcloud_api/cloud_manager/base.py
akx/upcloud-python-api
c18226ab5f991a495d3461f2cb534da30d147a2d
[ "MIT" ]
null
null
null
upcloud_api/cloud_manager/base.py
akx/upcloud-python-api
c18226ab5f991a495d3461f2cb534da30d147a2d
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import json import requests from upcloud_api import UpCloudAPIError, __version__ class BaseAPI(object): """ CloudManager base that handles basic HTTP communication with API. """ api = 'api.upcloud.com' api_v = '1.3' def __init__(self, token, timeout=...
34.178218
111
0.607184
de0c315a09299e386335a9dbaa3cb7a35680d8f6
3,495
py
Python
src/azure-cli-core/azure/cli/core/file_util.py
cliffwoodave14/azure-cli
a413f216c0a7e792b4e5c78d0a1acb65753b5d29
[ "MIT" ]
null
null
null
src/azure-cli-core/azure/cli/core/file_util.py
cliffwoodave14/azure-cli
a413f216c0a7e792b4e5c78d0a1acb65753b5d29
[ "MIT" ]
null
null
null
src/azure-cli-core/azure/cli/core/file_util.py
cliffwoodave14/azure-cli
a413f216c0a7e792b4e5c78d0a1acb65753b5d29
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.621951
109
0.68412
c023b07a74ce23ff5f802df1c30d4b622ee4e78a
2,139
py
Python
app/core/profiles.py
9b/split-key-roast
2becb2589bc7031f6fcc5e3527ffc56107c5be08
[ "MIT" ]
3
2017-11-30T06:26:13.000Z
2020-08-06T21:06:42.000Z
app/core/profiles.py
9b/split-key-roast
2becb2589bc7031f6fcc5e3527ffc56107c5be08
[ "MIT" ]
8
2017-11-27T00:49:42.000Z
2022-03-12T00:46:44.000Z
app/core/profiles.py
9b/split-key-roast
2becb2589bc7031f6fcc5e3527ffc56107c5be08
[ "MIT" ]
2
2020-05-03T14:10:56.000Z
2020-08-06T21:06:37.000Z
"""Calls related to roast profiles.""" from . import core from .. import mongo from ..libs.utils import paranoid_clean from .forms import ProfileForm from bson.objectid import ObjectId from flask import ( render_template, redirect, url_for, jsonify, request ) from flask import current_app as app from flask_login im...
35.65
75
0.640954
2bca33cdbc6eb32e4015628d8fd825b2fdcae13a
3,587
py
Python
cities_light/contrib/restframework3.py
st4lk/django-cities-light
ad303f500f506d44d287ec3d531ff9fd8bc33e34
[ "MIT" ]
1
2021-02-17T13:11:35.000Z
2021-02-17T13:11:35.000Z
cities_light/contrib/restframework3.py
st4lk/django-cities-light
ad303f500f506d44d287ec3d531ff9fd8bc33e34
[ "MIT" ]
null
null
null
cities_light/contrib/restframework3.py
st4lk/django-cities-light
ad303f500f506d44d287ec3d531ff9fd8bc33e34
[ "MIT" ]
null
null
null
""" Couple djangorestframework and cities_light. It defines a urlpatterns variables, with the following urls: - cities-light-api-city-list - cities-light-api-city-detail - cities-light-api-region-list - cities-light-api-region-detail - cities-light-api-country-list - cities-light-api-country-detail If rest_framework...
28.244094
79
0.708113
078748f7515aaa7ebb738471f523ec2987b26d76
5,540
py
Python
bundle/sagemaker_rl_agent/lib/python3.5/site-packages/markov/agent_ctrl/constants.py
Asdafers/deepracer-simapp
539ee72942c18c453c65fb7300beb586dd440690
[ "MIT" ]
null
null
null
bundle/sagemaker_rl_agent/lib/python3.5/site-packages/markov/agent_ctrl/constants.py
Asdafers/deepracer-simapp
539ee72942c18c453c65fb7300beb586dd440690
[ "MIT" ]
null
null
null
bundle/sagemaker_rl_agent/lib/python3.5/site-packages/markov/agent_ctrl/constants.py
Asdafers/deepracer-simapp
539ee72942c18c453c65fb7300beb586dd440690
[ "MIT" ]
null
null
null
'''This module houses the constants for the agent ctlr package''' from enum import Enum # Default max number of steps to allow per episode MAX_STEPS = 10000 # Local offset of the front of the car RELATIVE_POSITION_OF_FRONT_OF_CAR = [0.14, 0, 0] # Normalized track distance to move with each reset # now config ROUND_R...
48.596491
160
0.611913
f389a5c60527c83e20cc357286b37fc44a02d662
4,385
py
Python
main.py
kmhmubin/Flash-Card
3ab4f179d775949f65190e5ac8c11b4d84d0c6a8
[ "MIT" ]
null
null
null
main.py
kmhmubin/Flash-Card
3ab4f179d775949f65190e5ac8c11b4d84d0c6a8
[ "MIT" ]
null
null
null
main.py
kmhmubin/Flash-Card
3ab4f179d775949f65190e5ac8c11b4d84d0c6a8
[ "MIT" ]
null
null
null
import random import pandas from tkinter import * # ------------------------- CONSTANT ---------------------------------- # BLACK = "#2C333D" YELLOW = "#FCD836" WHITE = "#FFFFFF" GRAY_WHITE = "#F4F4F4" BAHNSCHRIFT = "Bahnschrift" CALIBRI = "Calibri" # -------------------------- WORD DICT -----------------------------...
29.42953
94
0.680274
77cbfac7e852bc334c2209e8c4ddfb7bf76e840b
2,269
py
Python
src/database.py
vtainio/Nordea-to-YNAB
f8b336f08fbcbab518d58a07b3590fac883ec4b6
[ "MIT" ]
5
2018-10-21T15:17:39.000Z
2020-04-25T15:32:39.000Z
src/database.py
vtainio/Nordea-to-YNAB
f8b336f08fbcbab518d58a07b3590fac883ec4b6
[ "MIT" ]
6
2017-06-05T19:44:45.000Z
2017-07-11T07:39:32.000Z
src/database.py
vtainio/Nordea-to-YNAB
f8b336f08fbcbab518d58a07b3590fac883ec4b6
[ "MIT" ]
1
2017-06-29T20:51:17.000Z
2017-06-29T20:51:17.000Z
from __future__ import print_function import sqlite3 from tabulate import tabulate DATABASE_NAME = 'nordea_to_ynab.db' def prepare_tables(cursor): cursor.execute('CREATE TABLE IF NOT EXISTS category (category_id text primary key not null, name text)') cursor.execute('CREATE TABLE IF NOT EXISTS payment (name ...
29.855263
166
0.70119
94afc5e553115de04643f3387991b359a9ec4cfa
471
py
Python
Pygame/Pygame18.py
liyuanyuan11/Python
d94cc7ab39e56c6e24bfc741a30da77590d1d220
[ "MIT" ]
null
null
null
Pygame/Pygame18.py
liyuanyuan11/Python
d94cc7ab39e56c6e24bfc741a30da77590d1d220
[ "MIT" ]
null
null
null
Pygame/Pygame18.py
liyuanyuan11/Python
d94cc7ab39e56c6e24bfc741a30da77590d1d220
[ "MIT" ]
null
null
null
import pygame pygame.init() windowSurface = pygame.display.set_mode([500,400]) music = pygame.mixer.Sound("/Users/chenchaoyang/Desktop/python/Python/Music/Music2.wav") music.play() Running = True while Running: for event in pygame.event.get(): if event.type == pygame.QUIT: Running = False ...
31.4
88
0.653928
7872dadb269a553e1f6d144943d1572209d7ef65
648
py
Python
algorithms/QuickSort.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
algorithms/QuickSort.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
algorithms/QuickSort.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- def partition(arr, left, right): low = left high = right key = arr[low] while low < high: while low < high and arr[high] >= key: high -= 1 arr[low] = arr[high] while low < high and arr[low] <= key: low += 1 arr[high] = arr...
21.6
46
0.515432
c29f595de702c2143dad579ff5bd308fad528c4f
16,342
py
Python
sdk/python/pulumi_azure_native/datashare/v20200901/share_subscription.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datashare/v20200901/share_subscription.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datashare/v20200901/share_subscription.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
41.163728
881
0.651817
9ea2cffda4c7fc49158cc6da3f2e0056635f1192
2,109
py
Python
neural_compressor/data/dataloaders/dataloader.py
intel/neural-compressor
16a4a12045fcb468da4d33769aff2c1a5e2ba6ba
[ "Apache-2.0" ]
172
2021-09-14T18:34:17.000Z
2022-03-30T06:49:53.000Z
neural_compressor/data/dataloaders/dataloader.py
intel/neural-compressor
16a4a12045fcb468da4d33769aff2c1a5e2ba6ba
[ "Apache-2.0" ]
40
2021-09-14T02:26:12.000Z
2022-03-29T08:34:04.000Z
neural_compressor/data/dataloaders/dataloader.py
intel/neural-compressor
16a4a12045fcb468da4d33769aff2c1a5e2ba6ba
[ "Apache-2.0" ]
33
2021-09-15T07:27:25.000Z
2022-03-25T08:30:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
46.866667
94
0.598862
6b04f08f5cb5b74b115b84fe92c354a9bea448ee
608
py
Python
lib/webui/tool.py
pcn/resgate
3aa6cda0f31d2b1bc5a74dbac3fa22a5fb3043ed
[ "Apache-2.0" ]
1
2021-03-22T13:40:15.000Z
2021-03-22T13:40:15.000Z
lib/webui/tool.py
pcn/resgate
3aa6cda0f31d2b1bc5a74dbac3fa22a5fb3043ed
[ "Apache-2.0" ]
null
null
null
lib/webui/tool.py
pcn/resgate
3aa6cda0f31d2b1bc5a74dbac3fa22a5fb3043ed
[ "Apache-2.0" ]
null
null
null
import json.decoder import logging import json import pprint from aiohttp import web from pywebio.platform.aiohttp import webio_handler from jmespath import exceptions as jmesex import webui.ui_webhook as webhook import webui.ui_rules as webrules import extractions import rules routes = web.RouteTableDef() app =...
17.882353
57
0.615132
0db8647925b61fff94e12a33af34dd3c5c5ca390
800
py
Python
tests/conftest.py
santegoeds/bfair
36c80fe60a570b6aa4ac030fc202648acb8d08c9
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
santegoeds/bfair
36c80fe60a570b6aa4ac030fc202648acb8d08c9
[ "Apache-2.0" ]
36
2015-07-06T15:10:33.000Z
2015-07-06T15:10:39.000Z
tests/conftest.py
santegoeds/bfair
36c80fe60a570b6aa4ac030fc202648acb8d08c9
[ "Apache-2.0" ]
null
null
null
import pytest from bfair.session import Session def pytest_addoption(parser): parser.addoption("--user", action="store") parser.addoption("--password", action="store") def setup_session(request): if not request.config.option.user or not request.config.option.password: pytest.skip("needs --user ...
25.806452
76
0.65
bbe2858b8159a919f47241a208480827f11d4ca5
7,270
py
Python
grr/server/grr_response_server/hunts/process_results.py
ahmednofal/grr
08a57f6873ee13f425d0106e4143663bc6dbdd60
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/hunts/process_results.py
ahmednofal/grr
08a57f6873ee13f425d0106e4143663bc6dbdd60
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/hunts/process_results.py
ahmednofal/grr
08a57f6873ee13f425d0106e4143663bc6dbdd60
[ "Apache-2.0" ]
2
2020-08-24T00:22:03.000Z
2020-11-14T08:34:43.000Z
#!/usr/bin/env python """Cron job to process hunt results. """ from __future__ import absolute_import from __future__ import unicode_literals import logging from future.utils import iteritems from future.utils import itervalues from grr_response_core.lib import rdfvalue from grr_response_core.lib import utils from ...
37.282051
80
0.705365
a562f6d8ca95b18ef2b75191aad086604d769616
5,524
py
Python
venv/Lib/site-packages/sklearn/feature_extraction/tests/test_feature_hasher.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/sklearn/feature_extraction/tests/test_feature_hasher.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/sklearn/feature_extraction/tests/test_feature_hasher.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
import numpy as np from numpy.testing import assert_array_equal import pytest from sklearn.feature_extraction import FeatureHasher from sklearn.utils._testing import ignore_warnings, fails_if_pypy pytestmark = fails_if_pypy def test_feature_hasher_dicts(): h = FeatureHasher(n_features=16) assert...
31.747126
89
0.612238
d99ffa7a76dbc0efee5284edd8b729835de299f7
5,197
py
Python
src/oci/core/models/update_vcn_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/update_vcn_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/update_vcn_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
33.529032
245
0.653069
f1e67489bbc1cf9c0aa668e037509418887d6c49
2,329
py
Python
authapi/tests/test_pagination.py
praekeltfoundation/seed-auth-api
2238f7ecde2f75143bea0ac36f875793a19dde9b
[ "BSD-3-Clause" ]
null
null
null
authapi/tests/test_pagination.py
praekeltfoundation/seed-auth-api
2238f7ecde2f75143bea0ac36f875793a19dde9b
[ "BSD-3-Clause" ]
2
2019-08-06T08:30:42.000Z
2020-02-12T06:32:54.000Z
authapi/tests/test_pagination.py
praekeltfoundation/seed-auth-api
2238f7ecde2f75143bea0ac36f875793a19dde9b
[ "BSD-3-Clause" ]
null
null
null
from rest_framework.generics import ListAPIView from rest_framework.test import APITestCase from rest_framework.test import APIRequestFactory from authapi.serializers import OrganizationSummarySerializer from authapi.models import SeedOrganization from authapi.pagination import LinkHeaderPagination class DummyView(L...
32.347222
79
0.644912
71fb3f01c863748cab11ec79b0488c344479af57
269
py
Python
scripts/valid_features.py
SaraLatif99/udacity-mlnd-deeplearning-capstone
b781a98bad40032803a4270457e5b27e2b4e4ed7
[ "MIT" ]
27
2017-03-01T11:06:40.000Z
2021-02-01T07:32:39.000Z
scripts/valid_features.py
SaraLatif99/udacity-mlnd-deeplearning-capstone
b781a98bad40032803a4270457e5b27e2b4e4ed7
[ "MIT" ]
null
null
null
scripts/valid_features.py
SaraLatif99/udacity-mlnd-deeplearning-capstone
b781a98bad40032803a4270457e5b27e2b4e4ed7
[ "MIT" ]
24
2017-05-20T19:49:29.000Z
2021-06-11T00:25:06.000Z
import numpy as np from keras.applications import VGG16 model = VGG16(weights="imagenet",include_top=False) valid_images = np.load('validation_images.npy') valid_features = model.predict(valid_images,batch_size=1,verbose=1) np.save("valid_features.npy",valid_features)
38.428571
67
0.817844
dde10098eb08fc43c5cda5d430d6f7d5f5dd14ac
586
py
Python
face_detection.py
VinayDagar/movement-detection
1c3ce2874f4903c167f065e928d4b77d6edcf05a
[ "MIT" ]
null
null
null
face_detection.py
VinayDagar/movement-detection
1c3ce2874f4903c167f065e928d4b77d6edcf05a
[ "MIT" ]
null
null
null
face_detection.py
VinayDagar/movement-detection
1c3ce2874f4903c167f065e928d4b77d6edcf05a
[ "MIT" ]
null
null
null
import cv2 # using haar cascader classifier for face detection face_classifier = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') cap = cv2.VideoCapture(0) while cap.isOpened(): ret, frame = cap.read() gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) faces = face_classifier.detectMult...
24.416667
79
0.636519
08d36a940b0b267910cc2f29bc0846b645210cea
639
py
Python
djgumroad/products/migrations/0002_product_user.py
Maharshi-Pathak/gumroad-clone
97ab1bd71585ee7a4279ad0189980e1b69c31948
[ "MIT" ]
11
2021-04-22T06:26:42.000Z
2022-03-27T21:19:57.000Z
djgumroad/products/migrations/0002_product_user.py
Maharshi-Pathak/gumroad-clone
97ab1bd71585ee7a4279ad0189980e1b69c31948
[ "MIT" ]
null
null
null
djgumroad/products/migrations/0002_product_user.py
Maharshi-Pathak/gumroad-clone
97ab1bd71585ee7a4279ad0189980e1b69c31948
[ "MIT" ]
6
2021-02-10T18:12:27.000Z
2022-03-14T02:17:38.000Z
# Generated by Django 3.0.11 on 2021-01-29 12:55 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('products', '0001_initia...
27.782609
146
0.671362
79c5c30a8f8726e97c45f0d8cd8ce92450bddabc
1,483
py
Python
tests/counterfit/core/test_state.py
Mandroide/counterfit
3252588d45514192edd4444b3bff0bf006f92bf0
[ "MIT" ]
null
null
null
tests/counterfit/core/test_state.py
Mandroide/counterfit
3252588d45514192edd4444b3bff0bf006f92bf0
[ "MIT" ]
null
null
null
tests/counterfit/core/test_state.py
Mandroide/counterfit
3252588d45514192edd4444b3bff0bf006f92bf0
[ "MIT" ]
null
null
null
from collections import defaultdict from unittest.mock import Mock import pytest from counterfit.core.state import CFState class TestCFState: @pytest.fixture(scope='function') def target_singleton_handler(self): target_singleton_obj = CFState.get_instance() return target_singleton_obj ...
40.081081
101
0.751854
c30c7aa9e8c8e507f6e64b82e05f179c20efd08f
138,828
py
Python
lib/galaxy/model/mapping.py
ClayBirkett/galaxy
b5afa3c1a90d269f1d438ffde481ff2e4178a72b
[ "CC-BY-3.0" ]
1
2019-11-15T01:50:38.000Z
2019-11-15T01:50:38.000Z
lib/galaxy/model/mapping.py
userssss/galaxy
9662164ad68b39adf5a5606a7aa8e388f6a79f1e
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/mapping.py
userssss/galaxy
9662164ad68b39adf5a5606a7aa8e388f6a79f1e
[ "CC-BY-3.0" ]
null
null
null
""" Details of how the data model objects are mapped onto the relational database are encapsulated here. """ import logging from sqlalchemy import ( and_, asc, Boolean, Column, DateTime, desc, false, ForeignKey, func, Index, Integer, MetaData, not_, Numeric, ...
48.473464
188
0.732136
2692985671d579b373859ef43680428b22258561
4,764
py
Python
migrations/versions/264fa39c91e2_breaking_column_size_increase.py
LambArchie/Competition-Manager
7da4c8625f0bd0c1b002b4f2aef72529e1ede4c6
[ "MIT" ]
null
null
null
migrations/versions/264fa39c91e2_breaking_column_size_increase.py
LambArchie/Competition-Manager
7da4c8625f0bd0c1b002b4f2aef72529e1ede4c6
[ "MIT" ]
1
2021-06-14T14:48:06.000Z
2021-06-14T15:42:40.000Z
migrations/versions/264fa39c91e2_breaking_column_size_increase.py
LambArchie/Competition-Manager
7da4c8625f0bd0c1b002b4f2aef72529e1ede4c6
[ "MIT" ]
null
null
null
"""breaking - column size increase Revision ID: 264fa39c91e2 Revises: Create Date: 2020-01-27 18:15:23.530134 """ from alembic import op import sqlalchemy as sa #manually added below from app.database.uuid import GUID sa.GUID = GUID # revision identifiers, used by Alembic. revision = '264fa39c91e2' down_revision = ...
42.535714
95
0.674013
63dd643fab0d8ceee80796f662e1e8b04089aadc
24,715
py
Python
ambari-server/src/test/python/TestMpacks.py
hortonworks/ambari-perf
71305effa9ac00e2e9adb36e6a66a13c9105a811
[ "Apache-2.0", "MIT" ]
1
2021-05-06T06:24:04.000Z
2021-05-06T06:24:04.000Z
ambari-server/src/test/python/TestMpacks.py
gcxtx/ambari
133d9c4661b21182482c25f96c3f0bf0a9740a9f
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/TestMpacks.py
gcxtx/ambari
133d9c4661b21182482c25f96c3f0bf0a9740a9f
[ "Apache-2.0" ]
3
2017-10-31T11:42:31.000Z
2021-04-26T07:17:53.000Z
''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
50.438776
143
0.677564
415595ea9d2e259a932ac79ada97a99dcff2b755
11,011
py
Python
rally/plugins/openstack/context/keystone/users.py
mail2nsrajesh/rally
d8995226fe75c573d6d64c7ade8a4ceca0758366
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/context/keystone/users.py
mail2nsrajesh/rally
d8995226fe75c573d6d64c7ade8a4ceca0758366
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/context/keystone/users.py
mail2nsrajesh/rally
d8995226fe75c573d6d64c7ade8a4ceca0758366
[ "Apache-2.0" ]
null
null
null
# Copyright 2014: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
39.894928
79
0.602398
08efa4d3894d298a4647e9c159af690241f59809
4,436
py
Python
predict.py
madtomy/udacity_image_classifier
e5f6fa54ebe8f405b99905a12c29588e9aaf4d1d
[ "MIT" ]
null
null
null
predict.py
madtomy/udacity_image_classifier
e5f6fa54ebe8f405b99905a12c29588e9aaf4d1d
[ "MIT" ]
null
null
null
predict.py
madtomy/udacity_image_classifier
e5f6fa54ebe8f405b99905a12c29588e9aaf4d1d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' usage: python predict.py /path/to/image checkpoint Options: - Return most likely classes: python predict.py input checkpoint --top_k 3 - Use a mapping of categories to names: python predict.py input checkpoint --category_names cat_to_name.json - Use GPU for inference: python predict.py input...
34.123077
113
0.626465
fd3afbdc6f2c5b3ea514b48e0cda0e1b0c831abc
4,716
py
Python
recipes/Python/577840_Josephus_problem/recipe-577840.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/577840_Josephus_problem/recipe-577840.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/577840_Josephus_problem/recipe-577840.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
#!/usr/bin/env python #let's speak about cladiators and the survivor (Josephus) import sys from math import log CLDTRS_NUMBER = 0 last2first = lambda L : L[-1::] + L[0:len(L) -1] def wholives(n): ## ---We search Within lowest-highest power of 2 that n Gladiators resides--- ## wholives Function assumes that we hav...
34.933333
131
0.635708
77c59fcc078ed2cfe6b19594c4cd25ee46ba3d04
8,701
py
Python
vizexec.py
sunaga-lab/vizexec
28a42e4e994c57db7fbc458af2b260899cdf7cdc
[ "MIT" ]
null
null
null
vizexec.py
sunaga-lab/vizexec
28a42e4e994c57db7fbc458af2b260899cdf7cdc
[ "MIT" ]
null
null
null
vizexec.py
sunaga-lab/vizexec
28a42e4e994c57db7fbc458af2b260899cdf7cdc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys sys.path.append("./lib") try: import pygtk pygtk.require("2.8") except: pass try: import gtk import gtk.glade import cairo import pango import time except: sys.exit(1) import threading import gobject from seqdata import Seq...
30.423077
107
0.614642
d7ef796154d28cb9ddc57192a47b804055bdc0d8
2,524
py
Python
modules/ckanext-ytp_request/ckanext/ytp_request/plugin.py
vrk-kpa/opendata-ckan
8936e2d9e700b9e5534fe2a51eedc2d1ede8c10b
[ "MIT" ]
null
null
null
modules/ckanext-ytp_request/ckanext/ytp_request/plugin.py
vrk-kpa/opendata-ckan
8936e2d9e700b9e5534fe2a51eedc2d1ede8c10b
[ "MIT" ]
10
2021-12-02T10:33:42.000Z
2022-03-31T11:00:54.000Z
modules/ckanext-ytp_request/ckanext/ytp_request/plugin.py
vrk-kpa/opendata-ckan
8936e2d9e700b9e5534fe2a51eedc2d1ede8c10b
[ "MIT" ]
null
null
null
import ckan.plugins as plugins from ckan.plugins import implements, toolkit from ckan.lib.plugins import DefaultTranslation import logging from .cli import get_commands from . import views log = logging.getLogger(__name__) class YtpRequestPlugin(plugins.SingletonPlugin, DefaultTranslation): implements(plugins.IC...
39.4375
94
0.723455
559f37de5d1fde48d6145be440ad39dda379cbe2
1,912
py
Python
lib/surface/dataproc/jobs/__init__.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/dataproc/jobs/__init__.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/dataproc/jobs/__init__.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
27.710145
79
0.722803
3b298de25be6cd3c6824911febc5bdfce7404105
15,543
py
Python
montreal_forced_aligner/trainers/sat.py
potipot/Montreal-Forced-Aligner
6d665e9c63a4e3c795d27ec3bb8d9d1a5604bb91
[ "MIT" ]
2
2021-06-10T10:18:44.000Z
2022-01-26T07:08:54.000Z
montreal_forced_aligner/trainers/sat.py
potipot/Montreal-Forced-Aligner
6d665e9c63a4e3c795d27ec3bb8d9d1a5604bb91
[ "MIT" ]
null
null
null
montreal_forced_aligner/trainers/sat.py
potipot/Montreal-Forced-Aligner
6d665e9c63a4e3c795d27ec3bb8d9d1a5604bb91
[ "MIT" ]
null
null
null
import os from tqdm import tqdm import subprocess import shutil import time from ..multiprocessing import (align, compile_train_graphs, acc_stats, tree_stats, convert_alignments, calc_fmllr, compute_alignment_improvement) from ..helper import thirdparty_bin...
53.782007
129
0.576594
a5839b33a7578761cb685995cf7d55209ca5e925
2,038
py
Python
backend/app/app/api/v1/endpoints/upload.py
benlau6/fastapi-fullstack
68a46d576310a1c846315228c1251f36ea23f056
[ "MIT" ]
1
2022-01-29T07:53:35.000Z
2022-01-29T07:53:35.000Z
backend/app/app/api/v1/endpoints/upload.py
benlau6/fastapi-fullstack
68a46d576310a1c846315228c1251f36ea23f056
[ "MIT" ]
null
null
null
backend/app/app/api/v1/endpoints/upload.py
benlau6/fastapi-fullstack
68a46d576310a1c846315228c1251f36ea23f056
[ "MIT" ]
null
null
null
from typing import List import os import shutil import asyncio from fastapi import APIRouter, Depends, File, UploadFile, BackgroundTasks from app import schemas from app.core import config from app.api import deps from app.api.deps import Permission router = APIRouter() def write_file_to_local( ...
32.870968
160
0.699706
dca201fbda1ac1f5b0f6a7510a6fd8d49e0dc5fd
6,171
py
Python
torchvision/prototype/models/segmentation/deeplabv3.py
husthyc/vision
e95e54386a603c8e9d3142b7f0c0dd43d86db479
[ "BSD-3-Clause" ]
2
2021-04-01T17:19:21.000Z
2021-04-01T18:04:08.000Z
torchvision/prototype/models/segmentation/deeplabv3.py
husthyc/vision
e95e54386a603c8e9d3142b7f0c0dd43d86db479
[ "BSD-3-Clause" ]
null
null
null
torchvision/prototype/models/segmentation/deeplabv3.py
husthyc/vision
e95e54386a603c8e9d3142b7f0c0dd43d86db479
[ "BSD-3-Clause" ]
null
null
null
import warnings from functools import partial from typing import Any, Optional from torchvision.prototype.transforms import VocEval from torchvision.transforms.functional import InterpolationMode from ....models.segmentation.deeplabv3 import DeepLabV3, _deeplabv3_mobilenetv3, _deeplabv3_resnet from .._api import Weig...
37.174699
121
0.725004
d9528f691c0ee177631b72c4f703b761cc7ca7ca
291
py
Python
Neighbours/forms.py
YVONNEANYANGO/Neighbour_Hood
ccda87b188f5921748b4719369409a769defd8e7
[ "MIT" ]
null
null
null
Neighbours/forms.py
YVONNEANYANGO/Neighbour_Hood
ccda87b188f5921748b4719369409a769defd8e7
[ "MIT" ]
null
null
null
Neighbours/forms.py
YVONNEANYANGO/Neighbour_Hood
ccda87b188f5921748b4719369409a769defd8e7
[ "MIT" ]
null
null
null
from django import forms from .models import Neighbourhood, Profile ,Business class ProfileForm(forms.ModelForm): class Meta: model= Profile exclude = ['user'] class NewHoodForm(forms.ModelForm): class Meta: model = Neighbourhood exclude = ['user']
22.384615
52
0.670103
d45239f1f64511639ef7bd52a6ff72bde26d1267
13,385
py
Python
routing/routing_algorithm.py
graham-riches/multi-agent-pathing
f862da8eb9b4f6dec706bd28af5e6f39eaf3835d
[ "MIT" ]
null
null
null
routing/routing_algorithm.py
graham-riches/multi-agent-pathing
f862da8eb9b4f6dec706bd28af5e6f39eaf3835d
[ "MIT" ]
null
null
null
routing/routing_algorithm.py
graham-riches/multi-agent-pathing
f862da8eb9b4f6dec706bd28af5e6f39eaf3835d
[ "MIT" ]
2
2020-09-11T23:33:58.000Z
2022-01-14T08:09:21.000Z
""" @file routing_algorithm.py @brief abstract base class for various routing algorithms @author Graham Riches @details Abstract base class for a routing algorithm. This lets the routing manager accept any time of routing algorithm as long as it supplies specific methods. """ from abc import AB...
39.718101
118
0.61681
168692b371ed0e65f80c7d49e394bcb0f4a7ccbf
3,639
py
Python
recipe_scrapers/__init__.py
timandrews335/recipe-scrapers
6e2af0838596bc51a9c2f041f6b7acc113ecdeff
[ "MIT" ]
null
null
null
recipe_scrapers/__init__.py
timandrews335/recipe-scrapers
6e2af0838596bc51a9c2f041f6b7acc113ecdeff
[ "MIT" ]
null
null
null
recipe_scrapers/__init__.py
timandrews335/recipe-scrapers
6e2af0838596bc51a9c2f041f6b7acc113ecdeff
[ "MIT" ]
null
null
null
import re from .allrecipes import AllRecipes from .allrecipesbr import AllRecipesBr from .bbcfood import BBCFood from .bbcgoodfood import BBCGoodFood from .bonappetit import BonAppetit from .closetcooking import ClosetCooking from .cookstr import Cookstr from .epicurious import Epicurious from .finedininglovers import...
33.385321
76
0.725474
451cbc2b843b0a407900e916df4a331663d72e99
1,149
py
Python
spinup/examples/pytorch/sac_goal.py
jesbu1/spinningup
fd54d9e06febc7ff5696a63d1e84e2c16d38e486
[ "MIT" ]
null
null
null
spinup/examples/pytorch/sac_goal.py
jesbu1/spinningup
fd54d9e06febc7ff5696a63d1e84e2c16d38e486
[ "MIT" ]
null
null
null
spinup/examples/pytorch/sac_goal.py
jesbu1/spinningup
fd54d9e06febc7ff5696a63d1e84e2c16d38e486
[ "MIT" ]
null
null
null
from spinup.utils.run_utils import ExperimentGrid from spinup import sac_pytorch import torch import gym if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('--cpu', type=int, default=4) parser.add_argument('--num_runs', type=int, default=1) args = pars...
35.90625
143
0.697998
7f2eb85a4cd114343cbb29c7ac440fdd16451e3d
319
py
Python
ex050 # soma de inteiros pares for range .py
jbmarcos/Python-Curso-em-video-Mundo-1-2-3-
a5bd705b2437c281f8f7ac02dc7ff54a09a37046
[ "MIT" ]
null
null
null
ex050 # soma de inteiros pares for range .py
jbmarcos/Python-Curso-em-video-Mundo-1-2-3-
a5bd705b2437c281f8f7ac02dc7ff54a09a37046
[ "MIT" ]
null
null
null
ex050 # soma de inteiros pares for range .py
jbmarcos/Python-Curso-em-video-Mundo-1-2-3-
a5bd705b2437c281f8f7ac02dc7ff54a09a37046
[ "MIT" ]
null
null
null
#soma de inteiros pares for range soma = 0 cont = 0 print(' ') for c in range(1, 7): num = int(input('Digite o {} valor. '.format(c))) if num % 2 == 0: soma = soma + num #soma +=1 cont = cont + 1 #cont += 1 print(' ') print('Você infotmou {} números PARES e a SOMA foi {}'.format(cont, soma))
26.583333
74
0.561129
c76c93bf2fb3a866c0727dbd5f19d444277f25d8
60,816
py
Python
semi_final/pytorch_toy/nezha_pytorch/helper/modeling.py
YihaoChan/2021-Tianchi-GAIIC-Track1-Rank-3
a79a8ae4bc0f8b2662f71df4caaa7fa382735f9f
[ "Apache-2.0" ]
22
2021-06-04T13:01:08.000Z
2022-02-18T13:19:46.000Z
semi_final/pytorch_toy/nezha_pytorch/helper/modeling.py
YihaoChan/2021-Tianchi-GAIIC-Track1-Rank-3
a79a8ae4bc0f8b2662f71df4caaa7fa382735f9f
[ "Apache-2.0" ]
null
null
null
semi_final/pytorch_toy/nezha_pytorch/helper/modeling.py
YihaoChan/2021-Tianchi-GAIIC-Track1-Rank-3
a79a8ae4bc0f8b2662f71df4caaa7fa382735f9f
[ "Apache-2.0" ]
2
2021-06-06T09:41:08.000Z
2021-06-09T01:05:10.000Z
import math import os import logging import torch from torch import nn from torch.nn import CrossEntropyLoss, MSELoss from helper.configuration import NeZhaConfig from transformers.file_utils import add_start_docstrings, add_start_docstrings_to_model_forward from transformers.modeling_utils import PreTrainedMod...
51.714286
150
0.650503
41927d1f834b9286e58b80acaf8a1e35e98071db
7,788
py
Python
radiopadre/settings_manager.py
ratt-ru/radiopadre
3bf934eba69144d9707777a57da0e827625517a3
[ "MIT" ]
9
2019-08-08T12:32:20.000Z
2021-07-06T17:50:35.000Z
radiopadre/settings_manager.py
ratt-ru/radiopadre
3bf934eba69144d9707777a57da0e827625517a3
[ "MIT" ]
70
2019-03-26T12:42:23.000Z
2022-02-14T13:45:03.000Z
radiopadre/settings_manager.py
ratt-ru/radiopadre
3bf934eba69144d9707777a57da0e827625517a3
[ "MIT" ]
null
null
null
from collections import OrderedDict from contextlib import contextmanager _BASE = OrderedDict class DocString(str): """Class used to identify documentation strings""" pass class Section(_BASE): def __init__(self, name, doc=""): super(Section, self).__init__() self._name = name sel...
42.097297
151
0.61492
f8b1ae5d016446b762be2b796ba761a2f148edbb
2,331
py
Python
tvm/dmlc-core/tracker/dmlc_tracker/local.py
hj424/heterocl
e51b8f7f65ae6ad55c0c2426ab7192c3d8f6702b
[ "Apache-2.0" ]
236
2019-05-19T01:48:11.000Z
2022-03-31T09:03:54.000Z
tvm/dmlc-core/tracker/dmlc_tracker/local.py
hj424/heterocl
e51b8f7f65ae6ad55c0c2426ab7192c3d8f6702b
[ "Apache-2.0" ]
248
2019-05-17T19:18:36.000Z
2022-03-30T21:25:47.000Z
tvm/dmlc-core/tracker/dmlc_tracker/local.py
hj424/heterocl
e51b8f7f65ae6ad55c0c2426ab7192c3d8f6702b
[ "Apache-2.0" ]
85
2019-05-17T20:09:27.000Z
2022-02-28T20:19:00.000Z
"""Submission job for local jobs.""" # pylint: disable=invalid-name from __future__ import absolute_import import sys import os import subprocess import logging from threading import Thread from . import tracker def exec_cmd(cmd, role, taskid, pass_env): """Execute the command line command.""" if cmd[0].find(...
31.931507
94
0.577006
886e586deb4f9465644a1f94cad3bc984aecab2e
468
py
Python
patient/forms.py
ShawonBarman/Blood-and-Platelet-Management-System
0a1d4be41d42eca69dd8f8f3ed6ba7b15bcf5fc1
[ "MIT" ]
null
null
null
patient/forms.py
ShawonBarman/Blood-and-Platelet-Management-System
0a1d4be41d42eca69dd8f8f3ed6ba7b15bcf5fc1
[ "MIT" ]
null
null
null
patient/forms.py
ShawonBarman/Blood-and-Platelet-Management-System
0a1d4be41d42eca69dd8f8f3ed6ba7b15bcf5fc1
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from . import models class PatientUserForm(forms.ModelForm): class Meta: model=User fields=['first_name','last_name','username','password'] widgets = { 'password': forms.PasswordInput() } class PatientForm...
26
78
0.655983
3746b9498a2c270a0261af3d9a717c6c4bc38b9c
4,371
py
Python
RefNAAP.py
jiangweiyao/RefNAAP
b3ad097443233e191d6a211bdbd851583f1ba6ae
[ "Apache-1.1" ]
2
2021-01-07T23:25:48.000Z
2021-04-27T23:05:49.000Z
RefNAAP.py
jiangweiyao/RefNAAP
b3ad097443233e191d6a211bdbd851583f1ba6ae
[ "Apache-1.1" ]
null
null
null
RefNAAP.py
jiangweiyao/RefNAAP
b3ad097443233e191d6a211bdbd851583f1ba6ae
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/env python import sys import os import glob import re from datetime import date from gooey import Gooey, GooeyParser import subprocess from pathlib import Path @Gooey(program_name='RefNAAP', default_size=(720, 900), progress_regex=r"^progress: (?P<current>\d+)/(?P<total>\d+)$", pro...
52.662651
251
0.692061
6d7c609c93822756c1a17a4bbdd10ea89ed97943
2,191
py
Python
vkwave/bots/core/dispatching/filters/base.py
tdakkota/vkwave
8d8f55a541f51ee76be398e0a646131697d3ba17
[ "MIT" ]
null
null
null
vkwave/bots/core/dispatching/filters/base.py
tdakkota/vkwave
8d8f55a541f51ee76be398e0a646131697d3ba17
[ "MIT" ]
null
null
null
vkwave/bots/core/dispatching/filters/base.py
tdakkota/vkwave
8d8f55a541f51ee76be398e0a646131697d3ba17
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Awaitable, Callable, NewType from vkwave.bots.core.dispatching.events.base import BaseEvent FilterResult = NewType("FilterResult", bool) class BaseFilter(ABC): @abstractmethod async def check(self, event: BaseEvent) -> FilterResult: ... def...
26.39759
69
0.639434
3b5a7096d7c86eb935e426d817f69396afa11d31
24,346
py
Python
atomixtest/entropy.py
atomix/atomix-test
519b70846c806b6b3e25151f0268fa1f1e53f8d8
[ "Apache-2.0" ]
6
2018-02-24T00:04:30.000Z
2020-07-02T07:27:08.000Z
atomixtest/entropy.py
atomix/atomix-test
519b70846c806b6b3e25151f0268fa1f1e53f8d8
[ "Apache-2.0" ]
2
2020-02-07T22:12:43.000Z
2020-02-09T11:12:17.000Z
atomixtest/entropy.py
atomix/atomix-test
519b70846c806b6b3e25151f0268fa1f1e53f8d8
[ "Apache-2.0" ]
null
null
null
import json import random import sys import time import uuid from abc import ABCMeta, abstractmethod from atomix import AtomixClient from collections import OrderedDict from threading import Thread, Lock from cluster import Cluster from logging import logger def _generate_test_name(): """Generates a unique test ...
33.673582
139
0.599811
0b55efb902cabb2d9bd31ce6e1b66f8f63ffbd8b
7,390
py
Python
pychron/envisage/tasks/advanced_editor_area_pane.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/envisage/tasks/advanced_editor_area_pane.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/envisage/tasks/advanced_editor_area_pane.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2014 Jake Ross # # 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...
35.873786
81
0.591204
12c6320e6a8d6e9e7eea116936a0c7daad92468e
5,067
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/aws/plugins/modules/ec2_customer_gateway_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/aws/plugins/modules/ec2_customer_gateway_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/aws/plugins/modules/ec2_customer_gateway_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: ec2_customer_gateway_info version_added: 1.0.0 short_descr...
36.192857
125
0.663114
e8e9fc41d74a6a42ee7952716b1b064100009433
1,017
py
Python
django_react_paypal/contrib/sites/migrations/0003_set_site_domain_and_name.py
justdjango/django_react_paypal
d3aa6a16ff0bf08d30ce79204a37d8bb7b806bd5
[ "MIT" ]
11
2021-08-15T17:56:16.000Z
2022-02-08T19:48:58.000Z
django_react_paypal/contrib/sites/migrations/0003_set_site_domain_and_name.py
justdjango/django_react_paypal
d3aa6a16ff0bf08d30ce79204a37d8bb7b806bd5
[ "MIT" ]
null
null
null
django_react_paypal/contrib/sites/migrations/0003_set_site_domain_and_name.py
justdjango/django_react_paypal
d3aa6a16ff0bf08d30ce79204a37d8bb7b806bd5
[ "MIT" ]
1
2022-01-26T13:35:33.000Z
2022-01-26T13:35:33.000Z
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
29.057143
129
0.687316
164f09a787532e70f38fa12435ae6cfa7df204dd
803
py
Python
ballast/compat.py
justincsmith/ballast
083b2fa649321f85ab6d5ff686c2d61917a91b7e
[ "Apache-2.0" ]
1
2017-08-18T19:46:23.000Z
2017-08-18T19:46:23.000Z
ballast/compat.py
justincsmith/ballast
083b2fa649321f85ab6d5ff686c2d61917a91b7e
[ "Apache-2.0" ]
2
2017-08-18T20:00:36.000Z
2017-08-18T20:49:19.000Z
ballast/compat.py
justincsmith/ballast
083b2fa649321f85ab6d5ff686c2d61917a91b7e
[ "Apache-2.0" ]
3
2017-08-18T19:48:50.000Z
2021-03-22T07:20:08.000Z
import sys PY3 = sys.version_info[0] == 3 PY2 = sys.version_info[0] == 2 PY26 = sys.version_info[0:2] == (2, 6) PY27 = sys.version_info[0:2] == (2, 7) PYPY = hasattr(sys, 'pypy_translation_info') if PY3: from queue import Queue def cmp(x, y): """ cmp(x, y) -> integer Return negativ...
18.25
62
0.585305
3d913d2bf152c97cb39720448ba90cde2acebb7f
1,063
py
Python
questions/maximum-depth-of-n-ary-tree/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
141
2017-12-12T21:45:53.000Z
2022-03-25T07:03:39.000Z
questions/maximum-depth-of-n-ary-tree/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
32
2015-10-05T14:09:52.000Z
2021-05-30T10:28:41.000Z
questions/maximum-depth-of-n-ary-tree/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
56
2015-09-30T05:23:28.000Z
2022-03-08T07:57:11.000Z
""" Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. Nary-Tree input serialization is represented in their level order traversal, each group of children is separated by the null value (See examples).   Example...
22.617021
146
0.636877
5abe0102e6c9712dde8e93d2d93b39493e3d84ae
1,365
py
Python
uninas/training/devices/cpu.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
18
2020-11-22T16:03:08.000Z
2022-03-15T12:11:46.000Z
uninas/training/devices/cpu.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
2
2022-01-04T08:10:17.000Z
2022-01-05T08:13:14.000Z
uninas/training/devices/cpu.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
6
2021-03-08T07:08:52.000Z
2022-02-24T12:00:43.000Z
import torch.nn as nn from uninas.training.devices.abstract import AbstractDevicesManager, AbstractDeviceMover, TensorOrList from uninas.register import Register class CpuDeviceMover(AbstractDeviceMover): """ handle data flow to cpu (mostly do nothing) """ @property def name(self) -> str: ...
27.857143
102
0.648352
3089ea75c2433a9ae83245a9365a2c03cb7966f0
16,501
py
Python
molsysmt/item/mdanalysis_Universe/get.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/mdanalysis_Universe/get.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/mdanalysis_Universe/get.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
####################################################################################### ########### THE FOLLOWING LINES NEED TO BE CUSTOMIZED FOR EVERY CLASS ################ ####################################################################################### from molsysmt._private.execfile import execfile from mo...
26.06793
96
0.71729
a0998dc5f7a91135ec1ae8a72eabdc04d57ba796
1,247
py
Python
test/functional_requirements/array/MOUNT_ARRAY_CHECKING_UNIQUE_ID.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
1
2022-02-07T23:30:50.000Z
2022-02-07T23:30:50.000Z
test/functional_requirements/array/MOUNT_ARRAY_CHECKING_UNIQUE_ID.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
null
null
null
test/functional_requirements/array/MOUNT_ARRAY_CHECKING_UNIQUE_ID.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import subprocess import os import sys sys.path.append("../") sys.path.append("../../system/lib/") import json_parser import pos import cli import api import json import CREATE_ARRAY_BASIC import SCAN_DEV_BASIC SPARE = CREATE_ARRAY_BASIC.SPARE ANY_DATA = CREATE_ARRAY_BASIC.ANY_DATA ANY_OTHER_DA...
25.44898
86
0.708901
ddd15cc21e0ceaefe571a53807967826258b044f
1,194
py
Python
Osori_rpg/models.py
bees1114/Osori_level_meter
6af9b06e91fc4935be75e8293879e2bf881beefe
[ "MIT" ]
1
2017-11-04T21:27:59.000Z
2017-11-04T21:27:59.000Z
Osori_rpg/models.py
bees1114/Osori_level_meter
6af9b06e91fc4935be75e8293879e2bf881beefe
[ "MIT" ]
null
null
null
Osori_rpg/models.py
bees1114/Osori_level_meter
6af9b06e91fc4935be75e8293879e2bf881beefe
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.dispatch import receiver from django.db.models.signals import post_save class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) git_commit = models.IntegerField(default=0) room_visit = mod...
32.27027
66
0.731993
f27981341390e2b00603b256ee86b2292c27c961
3,825
py
Python
script/inception_score.py
gargrohin/optimistic_GAN_training
b9215e052e830941ec023cb37d44424680eb9570
[ "MIT" ]
null
null
null
script/inception_score.py
gargrohin/optimistic_GAN_training
b9215e052e830941ec023cb37d44424680eb9570
[ "MIT" ]
null
null
null
script/inception_score.py
gargrohin/optimistic_GAN_training
b9215e052e830941ec023cb37d44424680eb9570
[ "MIT" ]
null
null
null
# From https://github.com/openai/improved-gan/blob/master/inception_score/model.py # Code derived from tensorflow/tensorflow/models/image/imagenet/classify_image.py from __future__ import absolute_import from __future__ import division from __future__ import print_function import os.path import sys import tarfile imp...
36.084906
90
0.659869
d9cea492e6176c150dbd15acd7f1f960319d35a5
776
py
Python
web/twitch_webhook/views.py
samuelfirst/nemoobot
b74ad66d4f2052eaba14e4b79e20c3da274b5909
[ "MIT" ]
1
2021-01-30T09:19:37.000Z
2021-01-30T09:19:37.000Z
web/twitch_webhook/views.py
samuelfirst/nemoobot
b74ad66d4f2052eaba14e4b79e20c3da274b5909
[ "MIT" ]
2
2020-12-21T20:57:19.000Z
2021-01-26T08:08:09.000Z
web/twitch_webhook/views.py
samuelfirst/nemoobot
b74ad66d4f2052eaba14e4b79e20c3da274b5909
[ "MIT" ]
1
2020-12-22T07:42:42.000Z
2020-12-22T07:42:42.000Z
import json from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from .tasks import save_subscription_model from .utils import is_request_verified, process_event @csrf_exempt def follows_webhook(request, twitch_user_id): if is_request_verified(request): data = json.l...
33.73913
84
0.721649
b07d6663202d8525e3de395ea68e8d3a567cdf29
5,323
py
Python
lib/gen_charts.py
mehmetcanbudak/StrategyCheck
40b6ace71e0f8b428cd5db5c7516569f255484fa
[ "MIT" ]
1
2021-05-09T21:48:04.000Z
2021-05-09T21:48:04.000Z
lib/gen_charts.py
mehmetcanbudak/StrategyCheck
40b6ace71e0f8b428cd5db5c7516569f255484fa
[ "MIT" ]
null
null
null
lib/gen_charts.py
mehmetcanbudak/StrategyCheck
40b6ace71e0f8b428cd5db5c7516569f255484fa
[ "MIT" ]
1
2021-05-09T21:48:37.000Z
2021-05-09T21:48:37.000Z
from plotly.subplots import make_subplots import plotly.graph_objs as go import pandas as pd import lib.strategy as strategy import lib.indicators as indicators import os import json from peakdetect import peakdetect with open("lib/settings.json", "r") as settings_json: settings = json.load(settings_json) exc...
36.458904
154
0.566222
ce97290d6724fdec009c06dd44fdc7747857c2ad
301
py
Python
seiketsu/users/serializers.py
tychota/seiketsu
2b5280365b9de44cd84ac65ed74981b30be5cc76
[ "MIT" ]
null
null
null
seiketsu/users/serializers.py
tychota/seiketsu
2b5280365b9de44cd84ac65ed74981b30be5cc76
[ "MIT" ]
null
null
null
seiketsu/users/serializers.py
tychota/seiketsu
2b5280365b9de44cd84ac65ed74981b30be5cc76
[ "MIT" ]
null
null
null
from .models import User from rest_framework.serializers import ModelSerializer class UserSerializer(ModelSerializer): class Meta: model = User fields = [ 'id', 'first_name', 'last_name', 'username', 'email', ]
20.066667
54
0.538206
b6c4617732b5b52793c26a91c723b32c8d552f42
6,262
py
Python
cogs/general.py
clugraphy/Python-Discord-Bot-Template
948bbdc3a7488a0257d5ec7f61f43cc8a70db6d8
[ "Apache-2.0" ]
null
null
null
cogs/general.py
clugraphy/Python-Discord-Bot-Template
948bbdc3a7488a0257d5ec7f61f43cc8a70db6d8
[ "Apache-2.0" ]
null
null
null
cogs/general.py
clugraphy/Python-Discord-Bot-Template
948bbdc3a7488a0257d5ec7f61f43cc8a70db6d8
[ "Apache-2.0" ]
null
null
null
import os, sys, discord, platform, random, aiohttp, json from discord.ext import commands if not os.path.isfile("config.py"): sys.exit("'config.py' not found! Please add it and try again.") else: import config class general(commands.Cog, name="general"): def __init__(self, bot): self.bot = bot ...
32.957895
164
0.548706
c645911992ee0e35007cb42706109c7232dfc912
3,173
py
Python
tests/test_filter.py
jina-ai/pqlite
2ce1ec2283b381f5153ea60141a6bb474bbf0f0c
[ "Apache-2.0" ]
45
2021-12-10T07:39:39.000Z
2022-02-20T22:58:28.000Z
tests/test_filter.py
jina-ai/pqlite
2ce1ec2283b381f5153ea60141a6bb474bbf0f0c
[ "Apache-2.0" ]
30
2021-12-10T07:46:28.000Z
2022-02-18T09:27:48.000Z
tests/test_filter.py
jina-ai/annlite
e4e706e313ba5cbfb7083a5dea9e75b8d2813394
[ "Apache-2.0" ]
null
null
null
import pytest from annlite.filter import Filter def test_empty_filter(): f = Filter() where_clause, parameters = f.parse_where_clause() assert where_clause == '' assert parameters == () def test_simple_filter(): f = Filter({'brand': {'$lt': 1}}) where_clause, parameters = f.parse_where_clau...
31.107843
93
0.512764
862d42a5ef8fe116180e4850d683ce06075f924e
3,410
gyp
Python
cloud9_root/src/build/stp.gyp
DanielGuoVT/symsc
95b705bd1f4d2863d79866c84fc7ee90aba743cb
[ "Apache-2.0" ]
3
2019-02-12T04:14:39.000Z
2020-11-05T08:46:20.000Z
cloud9_root/src/build/stp.gyp
DanielGuoVT/symsc
95b705bd1f4d2863d79866c84fc7ee90aba743cb
[ "Apache-2.0" ]
null
null
null
cloud9_root/src/build/stp.gyp
DanielGuoVT/symsc
95b705bd1f4d2863d79866c84fc7ee90aba743cb
[ "Apache-2.0" ]
null
null
null
# # Cloud9 Parallel Symbolic Execution Engine # # Copyright (c) 2012, Dependable Systems Laboratory, EPFL # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code mu...
35.520833
92
0.642229
0c4b1d23814d78f66c5f5ba696c9114399d1d94d
1,336
py
Python
system/rules.py
aaaimx/COVID19-Detection
7fd3864a4ed258c8232d5e0edf5db9fe1fadd674
[ "MIT" ]
2
2020-03-24T07:53:55.000Z
2020-03-24T14:41:17.000Z
system/rules.py
aaaimx/COVID19-Detection
7fd3864a4ed258c8232d5e0edf5db9fe1fadd674
[ "MIT" ]
18
2020-03-24T04:36:17.000Z
2021-08-23T20:40:32.000Z
system/rules.py
aaaimx/COVID19-Detection
7fd3864a4ed258c8232d5e0edf5db9fe1fadd674
[ "MIT" ]
2
2020-03-24T07:54:00.000Z
2020-10-27T09:14:01.000Z
import numpy as np import skfuzzy as fuzz from skfuzzy import control as ctrl from antecedents import Fi, DC, Mi, Fa, CN, Es, DG, DR, Ri from consequents import Co, Al, Re, In # ------------------------------------- # Inference rules # ------------------------------------- rule1 = ctrl.Rule(antecedent=(Fi['No'] & DG['...
70.315789
143
0.541168
4c221c72d1813b56ba362c840df7348fce4e4dcc
10,937
py
Python
macbethLookTransfer.py
hellothisistim/macbethLookTransfer
bcf4e25cd1a7586ebd3641a452135e8b2872de3a
[ "Unlicense" ]
null
null
null
macbethLookTransfer.py
hellothisistim/macbethLookTransfer
bcf4e25cd1a7586ebd3641a452135e8b2872de3a
[ "Unlicense" ]
null
null
null
macbethLookTransfer.py
hellothisistim/macbethLookTransfer
bcf4e25cd1a7586ebd3641a452135e8b2872de3a
[ "Unlicense" ]
null
null
null
import numpy as np from scipy.misc import imread, imsave import matplotlib.pyplot as plt from colormath.color_conversions import convert_color from colormath.color_objects import sRGBColor, XYZColor from pprint import pprint import math from copy import deepcopy macbeth_patch_names = ["Dark skin", "Light skin", "Blue ...
35.054487
170
0.715918
ee5e567eaedebe80df7df39e83d8e795870f83b1
955
py
Python
robotathome/log.py
goyoambrosio/RobotAtHome_API
91864b4cf06202656def6b66ac348708337a9d52
[ "MIT" ]
1
2021-02-21T09:31:25.000Z
2021-02-21T09:31:25.000Z
robotathome/log.py
goyoambrosio/RobotAtHome_API
91864b4cf06202656def6b66ac348708337a9d52
[ "MIT" ]
null
null
null
robotathome/log.py
goyoambrosio/RobotAtHome_API
91864b4cf06202656def6b66ac348708337a9d52
[ "MIT" ]
null
null
null
""" Logger related functions for robotathome package This script requires that `loguru` be installed within the Python environment you are running this script in. Install with: conda install -c conda-forge loguru pip install loguru """ import sys # import loguru from loguru import logger logger.disable("ro...
24.487179
76
0.657592
b77daf21ef08950ba54f46383457d6fa71ae0a44
1,050
py
Python
aalh_iit_buildings_008/cleanup-description-pipes.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_buildings_008/cleanup-description-pipes.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_buildings_008/cleanup-description-pipes.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
from openpyxl import load_workbook filename = 'aalh_iit_buildings_008.xlsx' wb = load_workbook(filename) ws = wb['Metadata Template'] minimumcol = 8 maximumcol = 8 minimumrow = 7 maximumrow = 517 iterationrow = 7 targetcol = 13 titlecol = 2 desccol = 8 for row in ws.iter_rows(min_row=minimumrow, min...
31.818182
105
0.631429
58803a32e192a4a0aa973566899362e5752ea404
779
py
Python
av-s14/empresa_4/q2/Mapper.py
felipelssilva/fudamento-de-big-data
74ab67c29a28367f78b44da537ba6020381766b2
[ "MIT" ]
null
null
null
av-s14/empresa_4/q2/Mapper.py
felipelssilva/fudamento-de-big-data
74ab67c29a28367f78b44da537ba6020381766b2
[ "MIT" ]
null
null
null
av-s14/empresa_4/q2/Mapper.py
felipelssilva/fudamento-de-big-data
74ab67c29a28367f78b44da537ba6020381766b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import re COMPANY = "@Empresa4" BADWORDS = ['worst', 'bad', 'never', 'horrible', 'terrible'] def findbadwords(tweet): for bad in BADWORDS: if len(re.findall(bad, tweet)) > 0: return True else: return False def isquestion(tweet): if twee...
20.5
83
0.590501
0841b65f699e6d7524db465f7d9cca8746ca43f5
14,258
py
Python
shapefit/deform/src/deformation/preproc.py
alexeybokhovkin/CAD-Deform
462fc6c97d91cc579f9e5551ed983cc10ecb9976
[ "MIT" ]
78
2020-03-12T12:09:44.000Z
2022-02-28T12:19:47.000Z
shapefit/deform/src/deformation/preproc.py
alexeybokhovkin/CAD-Deform
462fc6c97d91cc579f9e5551ed983cc10ecb9976
[ "MIT" ]
3
2021-01-19T14:40:38.000Z
2021-09-28T12:56:23.000Z
shapefit/deform/src/deformation/preproc.py
alexeybokhovkin/CAD-Deform
462fc6c97d91cc579f9e5551ed983cc10ecb9976
[ "MIT" ]
8
2021-01-20T06:16:28.000Z
2022-01-14T05:27:14.000Z
import numpy as np import trimesh from trimesh.grouping import clusters from .utils import filter_edges_by_parts def compute_bitriangles(mesh_unique_faces, mesh_unique_edges): bitriangles = {} for face in mesh_unique_faces: edge_1 = tuple(sorted([face[0], face[1]])) if edge_1 not in bitriangl...
47.211921
117
0.580797
1e9a61587116f4d44f94c6f0093fe33e3b533c3a
9,367
py
Python
SALib/util/__init__.py
LRY0111/SensitivityAnalysis-python
b48607fafb818f6d90490cd71dfc6f9f39f65d95
[ "Apache-2.0" ]
null
null
null
SALib/util/__init__.py
LRY0111/SensitivityAnalysis-python
b48607fafb818f6d90490cd71dfc6f9f39f65d95
[ "Apache-2.0" ]
null
null
null
SALib/util/__init__.py
LRY0111/SensitivityAnalysis-python
b48607fafb818f6d90490cd71dfc6f9f39f65d95
[ "Apache-2.0" ]
2
2019-09-22T05:30:21.000Z
2021-12-02T03:15:31.000Z
"""A set of utility functions """ from collections import OrderedDict import csv from warnings import warn import numpy as np import scipy as sp __all__ = ["scale_samples", "read_param_file"] def scale_samples(params, bounds): '''Rescale samples in 0-to-1 range to arbitrary bounds Arguments --------- ...
33.09894
79
0.590584
841e5179b17e52301d46950c988598e67b7b7deb
230
py
Python
src/learners/__init__.py
TonghanWang/NDQ
575f2e243bac1a567c072dbea8e093aaa4959511
[ "Apache-2.0" ]
63
2020-02-23T09:37:15.000Z
2022-01-17T01:30:50.000Z
src/learners/__init__.py
fringsoo/NDQ
e243ba917e331065e82c6634cb1d756873747be5
[ "Apache-2.0" ]
14
2020-04-20T02:20:11.000Z
2022-03-12T00:16:33.000Z
src/learners/__init__.py
mig-zh/NDQ
5720e3e8b529724e8d96a9a24c73bca24a11e7f9
[ "Apache-2.0" ]
16
2020-03-12T02:57:52.000Z
2021-11-27T13:07:08.000Z
from .q_learner import QLearner from .coma_learner import COMALearner from .categorical_q_learner import CateQLearner REGISTRY = { "q_learner": QLearner, "coma_learner": COMALearner, "cate_q_learner": CateQLearner }
20.909091
47
0.769565
81fe9d3f36c58da40b1047d9eca64f0414d1dd62
1,117
py
Python
gitir_downloader/main.py
yankeexe/git.ir_downloader
7607ac2a92656625e94f754707e2b7a86fc40c75
[ "MIT" ]
4
2020-04-14T11:22:33.000Z
2020-09-17T07:20:15.000Z
gitir_downloader/main.py
yankeexe/git.ir_downloader
7607ac2a92656625e94f754707e2b7a86fc40c75
[ "MIT" ]
1
2020-04-14T16:22:34.000Z
2020-04-14T16:22:34.000Z
gitir_downloader/main.py
yankeexe/git.ir_downloader
7607ac2a92656625e94f754707e2b7a86fc40c75
[ "MIT" ]
1
2020-04-14T14:35:33.000Z
2020-04-14T14:35:33.000Z
import os import sys import argparse from gitir_downloader.parser import parse_url from gitir_downloader.downloader import download_files ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) def init_argparse(): """ Initialize argparse module for commandline argument parsing. """ parser = argparse....
23.765957
72
0.638317
8c9469b0558c593650fe0192ebd23e40e6bcf455
584
py
Python
setup.py
AustinRochford/webmc3
d0ba393a2c3c158d66984c895c99584f44ff1f33
[ "Apache-2.0" ]
46
2017-12-26T20:11:30.000Z
2021-09-10T11:03:20.000Z
setup.py
AustinRochford/webmc3
d0ba393a2c3c158d66984c895c99584f44ff1f33
[ "Apache-2.0" ]
5
2017-12-29T13:28:44.000Z
2018-01-07T00:51:32.000Z
setup.py
AustinRochford/webmc3
d0ba393a2c3c158d66984c895c99584f44ff1f33
[ "Apache-2.0" ]
8
2018-01-05T17:27:44.000Z
2021-07-27T10:08:04.000Z
#!/usr/bin/env python from os.path import realpath, dirname, join from setuptools import setup, find_packages import versioneer DISTNAME = 'webmc3' AUTHOR = 'Austin Rochford' AUTHOR_EMAIL = 'austin.rochford@gmail.com' VERSION = '0.1' PROJECT_ROOT = dirname(realpath(__file__)) REQUIREMENTS_FILE = join(PROJECT_ROOT, 'r...
26.545455
58
0.734589
e037925961f2bfc8b8906fa81c2d7908ea590a62
64,561
py
Python
tensorflow/python/client/session.py
elielhojman/tensorflow
163aae337c875efce2518c3cd0fecb61968fe408
[ "Apache-2.0" ]
5
2017-08-28T11:27:19.000Z
2021-08-03T17:40:00.000Z
tensorflow/python/client/session.py
elielhojman/tensorflow
163aae337c875efce2518c3cd0fecb61968fe408
[ "Apache-2.0" ]
1
2020-11-25T21:29:56.000Z
2021-06-11T05:31:49.000Z
tensorflow/python/client/session.py
elielhojman/tensorflow
163aae337c875efce2518c3cd0fecb61968fe408
[ "Apache-2.0" ]
4
2019-11-11T13:46:27.000Z
2020-03-14T05:36:53.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.452055
94
0.677762
212dc8fe31941309235b2ba969471e708c6aa345
2,904
py
Python
pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage_pb2.py
Jacobs4/pyatv
52956adf3b79198be52cc03649f3ddeee19f9e6c
[ "MIT" ]
532
2017-02-01T19:23:28.000Z
2022-03-29T09:57:39.000Z
pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage_pb2.py
Jacobs4/pyatv
52956adf3b79198be52cc03649f3ddeee19f9e6c
[ "MIT" ]
1,639
2017-02-01T19:22:04.000Z
2022-03-31T17:26:40.000Z
pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage_pb2.py
bdraco/pyatv
9541d21e6101c60866d832626be97bf962774cd5
[ "MIT" ]
102
2017-02-02T01:42:13.000Z
2022-02-26T08:49:34.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf impor...
38.210526
250
0.82438
41305db6f9b7bf26ab3766202f793b59557aeeaf
2,703
py
Python
app/model/types.py
don4apaev/anfisa
2e4bdd83c584c0000f037413ccc1f9067c07fa70
[ "Apache-2.0" ]
null
null
null
app/model/types.py
don4apaev/anfisa
2e4bdd83c584c0000f037413ccc1f9067c07fa70
[ "Apache-2.0" ]
null
null
null
app/model/types.py
don4apaev/anfisa
2e4bdd83c584c0000f037413ccc1f9067c07fa70
[ "Apache-2.0" ]
null
null
null
import numbers #=============================================== class Types: sTypes = [None, "null", "list", "dict", "empty", "link", "string", "int", "numeric"] # and "undef", "json" @staticmethod def _detectValTypes(value): if value is None: return [1] elif isinst...
28.755319
75
0.519793
4d90cc8399899e4c777a067a101953b4f5ed5875
38,739
py
Python
stars/ProjectMaker.py
lhcramer-GISforks/stars
3c7532a6ea9cd0af7c21f009d603d80cbd69278a
[ "BSD-2-Clause" ]
9
2015-06-15T14:25:08.000Z
2021-04-01T22:57:48.000Z
stars/ProjectMaker.py
lhcramer-GISforks/stars
3c7532a6ea9cd0af7c21f009d603d80cbd69278a
[ "BSD-2-Clause" ]
8
2015-08-12T23:59:53.000Z
2021-06-13T00:33:37.000Z
stars/ProjectMaker.py
lhcramer-GISforks/stars
3c7532a6ea9cd0af7c21f009d603d80cbd69278a
[ "BSD-2-Clause" ]
15
2016-02-08T05:03:44.000Z
2021-05-17T21:07:00.000Z
""" Standalone Utility for conversion of ArcView files to STARS project. ---------------------------------------------------------------------- AUTHOR(S): Mark V. Janikas janikas@users.sourceforge.net Sergio J. Rey sjrey@users.sourceforge.net ----------------------------------------------------------------...
41.744612
130
0.54178
1e00b81a482e34ade0a2cad9f58f6970179e850d
2,131
py
Python
examples/chart_gauge.py
eddiechapman/XlsxWriter
c636117ab30e64e4b7b824c9105595c42887c2c9
[ "BSD-2-Clause-FreeBSD" ]
2,766
2015-01-02T17:36:42.000Z
2022-03-31T09:23:30.000Z
examples/chart_gauge.py
xiaolanmeng86/XlsxWriter
6c3ea23a410e8216eab8f5751e5544ffb444b3da
[ "BSD-2-Clause-FreeBSD" ]
683
2015-01-03T09:55:02.000Z
2022-03-31T07:18:15.000Z
examples/chart_gauge.py
xiaolanmeng86/XlsxWriter
6c3ea23a410e8216eab8f5751e5544ffb444b3da
[ "BSD-2-Clause-FreeBSD" ]
636
2015-01-05T01:57:08.000Z
2022-03-25T18:42:41.000Z
####################################################################### # # An example of creating a Gauge Chart in Excel with Python and XlsxWriter. # # A Gauge Chart isn't a native chart type in Excel. It is constructed by # combining a doughnut chart and a pie chart and by using some non-filled # elements. This exam...
31.338235
78
0.650868
3e1d2e84764fbe87cd8611b72b83c7b1f71eef6f
1,523
py
Python
voc_annotation.py
Mr-Yao-Pupil/efficientdet-pytorch
f04189b5baf50b98a124dd76dee55a840cf17719
[ "MIT" ]
null
null
null
voc_annotation.py
Mr-Yao-Pupil/efficientdet-pytorch
f04189b5baf50b98a124dd76dee55a840cf17719
[ "MIT" ]
null
null
null
voc_annotation.py
Mr-Yao-Pupil/efficientdet-pytorch
f04189b5baf50b98a124dd76dee55a840cf17719
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET from os import getcwd sets = [('2007', 'train'), ('2007', 'val'), ('2007', 'test')] classes = ["aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", "motorbike", "person", "pottedplant", "sheep", "sofa", "tra...
38.075
119
0.594879
8952b8f73e36cef3d831e414d33299a4fc8f8289
90
py
Python
help_api/apps.py
Pravesh-Jamgade/projectSOS
e9d1021c1a4a38e5750242b329b6bc725a446299
[ "MIT" ]
null
null
null
help_api/apps.py
Pravesh-Jamgade/projectSOS
e9d1021c1a4a38e5750242b329b6bc725a446299
[ "MIT" ]
null
null
null
help_api/apps.py
Pravesh-Jamgade/projectSOS
e9d1021c1a4a38e5750242b329b6bc725a446299
[ "MIT" ]
null
null
null
from django.apps import AppConfig class HelpApiConfig(AppConfig): name = 'help_api'
15
33
0.755556
0a3a1eefd0bda0121ff45a42e939ba540316035c
2,201
py
Python
menu_structure.py
adwuard/OP1_File_Organizer
0da6d297734a0f7905fc23ea424256456b2b2b45
[ "MIT" ]
27
2019-03-30T22:21:50.000Z
2019-08-22T04:51:13.000Z
menu_structure.py
adwuard/OP_Manager
0da6d297734a0f7905fc23ea424256456b2b2b45
[ "MIT" ]
4
2019-10-29T22:55:53.000Z
2022-03-11T23:44:48.000Z
menu_structure.py
adwuard/OP_Manager
0da6d297734a0f7905fc23ea424256456b2b2b45
[ "MIT" ]
8
2019-04-14T05:35:30.000Z
2019-07-17T16:10:09.000Z
WifiTransfer = [ ["Wifi Transfer", -1], ["SSH Transfer", "Check_IP"], ["Wifi Server", "Server IP"] # "Connect", -1 ] MIDI = [ ["MIDI", -1], ["USB MIDI IN Test", "MIDI_In_Test"], ["USB MIDI OUT Test", "MIDI_Out_Test"] ] op1fun = [ ["OP1.FUN", -1], ["Packs", "OP1FUN_BrowsePacks"], ...
23.168421
60
0.582917
7737fba2d658ddeb81fa82d499103d2c03050b85
112
py
Python
code/src/nuvla/api/__init__.py
nuvla/python-api
7b530aa049eee8c8cd654c27d749d46bf0d19e87
[ "Apache-2.0" ]
4
2019-04-27T10:35:44.000Z
2019-05-05T13:04:28.000Z
code/src/nuvla/api/__init__.py
nuvla/python-library
421abe6f583e1ce6a48670131faefe16b7e0bc12
[ "Apache-2.0" ]
21
2019-02-22T07:30:41.000Z
2022-03-30T13:27:55.000Z
code/src/nuvla/api/__init__.py
nuvla/python-library
421abe6f583e1ce6a48670131faefe16b7e0bc12
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from .api import Api, NuvlaError, ConnectionError, NuvlaResourceOperationNotAvailable
22.4
85
0.758929
859d71041dd2e21f82f014c80bdf37d0de20106a
702
py
Python
String/Leetcode 5. Longest Palindromic Substring.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
31
2020-06-23T00:40:04.000Z
2022-01-08T11:06:24.000Z
String/Leetcode 5. Longest Palindromic Substring.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
null
null
null
String/Leetcode 5. Longest Palindromic Substring.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
7
2020-04-30T08:46:03.000Z
2021-08-28T16:25:54.000Z
class Solution: def longestPalindrome(self, s: str) -> str: n = len(s) dp = [[0]* n for _ in range(n)] max_len = 0 res = '' for i in range(len(s)): dp[i][i] = 1 max_len = 1 res = s[i] for i in range(len(s)-1): if s[i] ==...
30.521739
49
0.339031
37d05277c3ba2f39c7d599d40c96b956808e7675
102
py
Python
Codeforces/270/gen.py
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
2
2018-12-11T14:37:24.000Z
2022-01-23T18:11:54.000Z
Codeforces/270/gen.py
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
null
null
null
Codeforces/270/gen.py
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
null
null
null
from random import * print 5 for i in range(5): for j in range(5): print randint(1,1000), print ""
20.4
43
0.666667
976ca63872052807fa892bcc3cc0c4ff9f61c3af
88
py
Python
examples/django/1_drf_base_managed_postges/example_app/urls.py
e-kor/yappa
1ea3c4e6a5ffb7a3fbd02d810a62f73a13b9d649
[ "MIT" ]
41
2021-07-15T14:54:16.000Z
2022-03-26T10:59:40.000Z
examples/django/1_drf_base_managed_postges/example_app/urls.py
e-kor/yappa
1ea3c4e6a5ffb7a3fbd02d810a62f73a13b9d649
[ "MIT" ]
29
2021-08-04T08:04:26.000Z
2021-08-19T09:50:30.000Z
examples/django/1_drf_base_managed_postges/example_app/urls.py
e-kor/yappa
1ea3c4e6a5ffb7a3fbd02d810a62f73a13b9d649
[ "MIT" ]
3
2021-07-23T14:56:40.000Z
2022-03-24T16:09:55.000Z
from django.urls import path from .views import root urlpatterns = [path("", root), ]
14.666667
32
0.704545
eb65dda0a839148b12883c22d5bf4946eef87495
2,042
py
Python
@test/bench.py
tenko/kdtree
c3bcb9be24615d39b9216ddd85381e981e9f2946
[ "BSD-2-Clause" ]
5
2016-01-19T03:49:16.000Z
2022-01-07T05:33:12.000Z
@test/bench.py
tenko/kdtree
c3bcb9be24615d39b9216ddd85381e981e9f2946
[ "BSD-2-Clause" ]
null
null
null
@test/bench.py
tenko/kdtree
c3bcb9be24615d39b9216ddd85381e981e9f2946
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from random import randint, seed from timeit import Timer import numpy as np def asciitable(rows): # From : https://gist.github.com/lonetwin/4721748 # - figure out column widths widths = [len(max(columns, key=len)) for columns in zip(*rows)] def separator(): print(...
26.519481
108
0.573457
6eb601973fc5bc3cbd97fba937f845de8e87ee43
118
py
Python
.history/config_20210927032431.py
GraceOswal/pitch-perfect
d781c6e0f55c11f2a5e5dceb952f6b2de3c47c3b
[ "MIT" ]
null
null
null
.history/config_20210927032431.py
GraceOswal/pitch-perfect
d781c6e0f55c11f2a5e5dceb952f6b2de3c47c3b
[ "MIT" ]
null
null
null
.history/config_20210927032431.py
GraceOswal/pitch-perfect
d781c6e0f55c11f2a5e5dceb952f6b2de3c47c3b
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv as ld ld() class Config: debug = True SECRET_KEY = OS.ENVIRON.GET
11.8
36
0.70339
7a72aa69f9b6acd63a91dc48c0e22425a5a7aaf6
494
py
Python
scripts/ui-banner.py
subutai-io/launcher
d8397995e18200b12d60781ed485af04f70bff03
[ "Apache-2.0" ]
1
2017-10-31T18:55:36.000Z
2017-10-31T18:55:36.000Z
scripts/ui-banner.py
subutai-attic/launcher
d8397995e18200b12d60781ed485af04f70bff03
[ "Apache-2.0" ]
199
2016-07-28T07:30:48.000Z
2017-10-14T06:15:40.000Z
scripts/ui-banner.py
subutai-io/launcher
d8397995e18200b12d60781ed485af04f70bff03
[ "Apache-2.0" ]
1
2021-03-27T10:08:26.000Z
2021-03-27T10:08:26.000Z
import subutai from time import sleep def subutaistart(): subutai.download("launcher-ad-1.png") while !subutai.isDownloadComplete() == 1: sleep(0.05) subutai.download("launcher-ad-2.png") while !subutai.isDownloadComplete() == 1: sleep(0.05) subutai.download("launcher-ad-3.png") ...
24.7
45
0.645749
c897804072b7b02dc3f109f6073e83d325985bc7
31,267
py
Python
root/trip_ids_at_stops_merge_in_muni_perday_v3.py
transitanalystisarel/TransitAnalystIsrael
341de9272b352c18333ff136a00de0b97cd82216
[ "MIT" ]
null
null
null
root/trip_ids_at_stops_merge_in_muni_perday_v3.py
transitanalystisarel/TransitAnalystIsrael
341de9272b352c18333ff136a00de0b97cd82216
[ "MIT" ]
null
null
null
root/trip_ids_at_stops_merge_in_muni_perday_v3.py
transitanalystisarel/TransitAnalystIsrael
341de9272b352c18333ff136a00de0b97cd82216
[ "MIT" ]
3
2019-05-08T04:36:03.000Z
2020-11-23T19:46:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # collect a set of trip_id s at all stops in a GTFS file over the selected week of the service period starting at serviceweekstartdate # filter stops in munis based on input txt file - stopsinmuni_post_edit # merge sets of trips at stops in each muni to count trips per hour...
42.772914
199
0.753254
b73d18886ad1da6bc89a367ca3040dc45d70275f
5,647
py
Python
django_jobvite/tests/test_syncing.py
Mozilla-GitHub-Standards/217dddf3a535a0407c3079dc3f9b7598fe49ea00dd496c094fc0fcc3fd99900d
4d3ca66b8de2e4a43e4dc4d88376f73d7768dc15
[ "BSD-3-Clause" ]
4
2015-06-18T10:20:32.000Z
2018-01-31T01:23:51.000Z
django_jobvite/tests/test_syncing.py
Mozilla-GitHub-Standards/217dddf3a535a0407c3079dc3f9b7598fe49ea00dd496c094fc0fcc3fd99900d
4d3ca66b8de2e4a43e4dc4d88376f73d7768dc15
[ "BSD-3-Clause" ]
6
2015-05-13T11:02:47.000Z
2019-03-28T03:43:23.000Z
django_jobvite/tests/test_syncing.py
Mozilla-GitHub-Standards/217dddf3a535a0407c3079dc3f9b7598fe49ea00dd496c094fc0fcc3fd99900d
4d3ca66b8de2e4a43e4dc4d88376f73d7768dc15
[ "BSD-3-Clause" ]
6
2015-02-24T19:35:54.000Z
2019-03-28T03:43:23.000Z
from mock import Mock import test_utils from django_jobvite.management.commands import syncjobvite from django_jobvite.models import Category, Position one_position = """<result> <job> <id>oWqcfdsa</id> <title>Software Engineer</title> <requisitionid>1229</requisitionid> <category>Engineering</category> <jo...
33.023392
90
0.687268
7d5b7aae3d49a35db3b973b20ee9142a560ec483
1,561
py
Python
google/ads/googleads/v6/errors/types/campaign_draft_error.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v6/errors/types/campaign_draft_error.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v6/errors/types/campaign_draft_error.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
32.520833
74
0.72902
1199dabc789c231a2f9aee8a6d12074851ca047d
1,835
py
Python
judge/decorators.py
shan18/Online-Judge
b03e1df9eaa91957b635b6527f4abf5509495b56
[ "MIT" ]
1
2020-07-26T20:54:53.000Z
2020-07-26T20:54:53.000Z
judge/decorators.py
shan18/Online-Judge
b03e1df9eaa91957b635b6527f4abf5509495b56
[ "MIT" ]
null
null
null
judge/decorators.py
shan18/Online-Judge
b03e1df9eaa91957b635b6527f4abf5509495b56
[ "MIT" ]
null
null
null
try: from functools import wraps except ImportError: from django.utils.functional import wraps # Python 2.4 fallback. from django.utils.decorators import available_attrs from django.contrib import messages from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.auth.decorators import login_requ...
35.288462
138
0.73297
950f3e194fadae8a27d7553a4bbbdca1e818a930
5,400
py
Python
Project2Final/FaceRecognition/preprocess.py
201019-UiPath/Jewlz-TheBoyz-PlaylistAutomation-P2
72a866ef671740786d68ddb658fe19b9a553b0c9
[ "MIT" ]
null
null
null
Project2Final/FaceRecognition/preprocess.py
201019-UiPath/Jewlz-TheBoyz-PlaylistAutomation-P2
72a866ef671740786d68ddb658fe19b9a553b0c9
[ "MIT" ]
null
null
null
Project2Final/FaceRecognition/preprocess.py
201019-UiPath/Jewlz-TheBoyz-PlaylistAutomation-P2
72a866ef671740786d68ddb658fe19b9a553b0c9
[ "MIT" ]
2
2020-11-22T22:34:28.000Z
2020-11-22T22:51:51.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from scipy import misc import os import tensorflow as tf import numpy as np import facenet import detect_face class preprocesses: def __init__(self, input_datadir, output_datadir): self.input_datadi...
51.923077
124
0.485741
b2b48a9046ac10edc4829deb0bd683ee02c539a3
3,300
py
Python
src/robot/parsing/lexer/tokens.py
JasperCraeghs/robotframework
856afa6ed2a16e39194b14bce138aa2044e0b0b6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/parsing/lexer/tokens.py
JasperCraeghs/robotframework
856afa6ed2a16e39194b14bce138aa2044e0b0b6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/parsing/lexer/tokens.py
JasperCraeghs/robotframework
856afa6ed2a16e39194b14bce138aa2044e0b0b6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
25.384615
75
0.615152
2673f6fbaac2197895b7dd049352bf7fe6deb04d
990
py
Python
src/logger.py
jruberg/Pyty
db7da06a696e170e2e6b7f4b16f59715154bd628
[ "MIT" ]
2
2017-07-18T22:20:17.000Z
2022-02-17T14:07:05.000Z
src/logger.py
jruberg/Pyty
db7da06a696e170e2e6b7f4b16f59715154bd628
[ "MIT" ]
null
null
null
src/logger.py
jruberg/Pyty
db7da06a696e170e2e6b7f4b16f59715154bd628
[ "MIT" ]
null
null
null
import math import logging from settings import LOG_LEVEL, LOG_DIR, LOGFILE, FILE_DEBUG logging.basicConfig(level=LOG_LEVEL, filename=LOG_DIR+LOGFILE, format='%(asctime)s: %(message)s', datefmt='%a, %d %b %Y %H:%M:%S') _MARGIN = len('%s, %s %s %s %s:%s:%s: ' % ('...
29.117647
81
0.586869
55a6ccd0c518982201f57d17dec48cd90ac29c19
5,322
py
Python
datageneration/generate_config.py
atoaiari/surreal
3f8d0d2a837e07511add210c7f62d1f8ee7f0f0d
[ "MIT-CMU", "OLDAP-2.2.1" ]
null
null
null
datageneration/generate_config.py
atoaiari/surreal
3f8d0d2a837e07511add210c7f62d1f8ee7f0f0d
[ "MIT-CMU", "OLDAP-2.2.1" ]
null
null
null
datageneration/generate_config.py
atoaiari/surreal
3f8d0d2a837e07511add210c7f62d1f8ee7f0f0d
[ "MIT-CMU", "OLDAP-2.2.1" ]
null
null
null
import json import argparse import sys import configs.config as config import os import numpy as np import random from datetime import datetime from utils.utils import * def main(): parser = argparse.ArgumentParser(description="Generate synth dataset images for disentanglement.") parser.add_argument("--frames"...
46.278261
184
0.623826
4cb85dad7a525d60e695768345c733a9df4ccf69
460
py
Python
pjsip/tests/pjsua/scripts-pesq/200_codec_g722.py
tomorrow-rain/pjsip
776e032c4ee2672cd42b8c665021b1310181d126
[ "MIT" ]
null
null
null
pjsip/tests/pjsua/scripts-pesq/200_codec_g722.py
tomorrow-rain/pjsip
776e032c4ee2672cd42b8c665021b1310181d126
[ "MIT" ]
null
null
null
pjsip/tests/pjsua/scripts-pesq/200_codec_g722.py
tomorrow-rain/pjsip
776e032c4ee2672cd42b8c665021b1310181d126
[ "MIT" ]
null
null
null
# $Id$ # from inc_cfg import * ADD_PARAM = "" if (HAS_SND_DEV == 0): ADD_PARAM += "--null-audio" # Call with G722 codec test_param = TestParam( "PESQ codec G722", [ InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec g722 --clock-rate 16000 --play-file wavs/input.16.wav"), InstanceParam("UA2", "-...
23
135
0.65
20abfa850822153e9cfa769054ad5205f89010c6
7,111
py
Python
test/unit/test_gcs_util.py
csdev/snowflake-connector-python
db054fd4490ac006ef633ed12d852bb09941068e
[ "Apache-2.0" ]
null
null
null
test/unit/test_gcs_util.py
csdev/snowflake-connector-python
db054fd4490ac006ef633ed12d852bb09941068e
[ "Apache-2.0" ]
14
2021-01-26T06:53:10.000Z
2022-03-14T11:16:54.000Z
test/unit/test_gcs_util.py
csdev/snowflake-connector-python
db054fd4490ac006ef633ed12d852bb09941068e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved. # import logging import mock import pytest from snowflake.connector.constants import ResultStatus from ..randomize import random_string pytestmark = pytest.mark.gcp try: from snowflake.connec...
46.477124
119
0.714105
2ee21f996d50186850b416c595518a39f7ecd18b
1,455
py
Python
widgets/SingleChoiceDialog.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
3
2018-03-19T07:57:10.000Z
2021-07-05T08:55:14.000Z
widgets/SingleChoiceDialog.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
6
2020-03-24T15:40:18.000Z
2021-12-13T19:46:09.000Z
widgets/SingleChoiceDialog.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
4
2018-03-29T21:59:55.000Z
2019-12-16T14:56:38.000Z
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a SingleChoiceDialog", (50,...
25.526316
89
0.512027
2b102dd13ee5bdf15f767521be3108d70fc60464
1,200
py
Python
spider1/migrations/0001_initial.py
EricMbuthia/SeleniumDjangoWebscraping
27954bcf02b895b3c1001f5924433d6aaf3f195e
[ "MIT" ]
null
null
null
spider1/migrations/0001_initial.py
EricMbuthia/SeleniumDjangoWebscraping
27954bcf02b895b3c1001f5924433d6aaf3f195e
[ "MIT" ]
null
null
null
spider1/migrations/0001_initial.py
EricMbuthia/SeleniumDjangoWebscraping
27954bcf02b895b3c1001f5924433d6aaf3f195e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-10-30 06:13 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ScrapeRecordsInventory', f...
35.294118
132
0.608333
d07436e1d8b047ce720afac7dec09d9b23a6d0ab
19,747
py
Python
ravendb/documents/operations/batch.py
ravendb/RavenDB-Python-Client
6286b459b501e755fe8e8591a48acf8616605ccd
[ "MIT" ]
8
2016-10-08T17:45:44.000Z
2018-05-29T12:16:43.000Z
ravendb/documents/operations/batch.py
ravendb/RavenDB-Python-Client
6286b459b501e755fe8e8591a48acf8616605ccd
[ "MIT" ]
5
2017-02-12T15:50:53.000Z
2017-09-18T12:25:01.000Z
ravendb/documents/operations/batch.py
ravendb/RavenDB-Python-Client
6286b459b501e755fe8e8591a48acf8616605ccd
[ "MIT" ]
8
2016-07-03T07:59:12.000Z
2017-09-18T11:22:23.000Z
from copy import deepcopy from typing import Union, List, Dict, TYPE_CHECKING, Optional from ravendb import constants from ravendb.documents.commands.batches import SingleNodeBatchCommand, ClusterWideBatchCommand, CommandType from ravendb.documents.operations.patch import PatchStatus from ravendb.documents.session.eve...
43.688053
120
0.690788
da8efb39c36d1f13e3d2c6888f891bab0a5f34c2
337
py
Python
crownstone_uart/topics/UartTopics.py
RicArch97/crownstone-lib-python-uart
c0aaf1415936e5e622aa6395fdac4f88ebcf82bf
[ "MIT" ]
null
null
null
crownstone_uart/topics/UartTopics.py
RicArch97/crownstone-lib-python-uart
c0aaf1415936e5e622aa6395fdac4f88ebcf82bf
[ "MIT" ]
null
null
null
crownstone_uart/topics/UartTopics.py
RicArch97/crownstone-lib-python-uart
c0aaf1415936e5e622aa6395fdac4f88ebcf82bf
[ "MIT" ]
null
null
null
class UartTopics: newDataAvailable = "UART_newDataAvailable" uartMessage = "UART_Message" # data is dictionary: {"string": str, "data": [uint8, uint8, ...] } hello = "UART_hello" # Data is: UartCrownstoneHelloPacket log = "UART_log" # Data is UartLogPacket logArray = "UART_logArray" # Data is U...
30.636364
100
0.697329