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
385f371ceb5509451926af50b85caa241478e630
53
py
Python
tdict/__init__.py
royf/tdict
a54a33859587ff3324c8e306608d6c4306c569bc
[ "MIT" ]
null
null
null
tdict/__init__.py
royf/tdict
a54a33859587ff3324c8e306608d6c4306c569bc
[ "MIT" ]
null
null
null
tdict/__init__.py
royf/tdict
a54a33859587ff3324c8e306608d6c4306c569bc
[ "MIT" ]
null
null
null
from .tdict import Tdict from .tdict import tdictify
17.666667
27
0.811321
e8e163663b10ed8283b9a925abb00911a6b5967c
1,644
py
Python
xlsxwriter/test/comparison/test_chart_format30.py
eddiechapman/XlsxWriter
c636117ab30e64e4b7b824c9105595c42887c2c9
[ "BSD-2-Clause-FreeBSD" ]
2,766
2015-01-02T17:36:42.000Z
2022-03-31T09:23:30.000Z
xlsxwriter/test/comparison/test_chart_format30.py
xiaolanmeng86/XlsxWriter
6c3ea23a410e8216eab8f5751e5544ffb444b3da
[ "BSD-2-Clause-FreeBSD" ]
683
2015-01-03T09:55:02.000Z
2022-03-31T07:18:15.000Z
xlsxwriter/test/comparison/test_chart_format30.py
xiaolanmeng86/XlsxWriter
6c3ea23a410e8216eab8f5751e5544ffb444b3da
[ "BSD-2-Clause-FreeBSD" ]
636
2015-01-05T01:57:08.000Z
2022-03-25T18:42:41.000Z
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
25.6875
79
0.51764
8ba5888ddaf4ee0cbeba11010b9be7fe40a520ae
1,770
py
Python
app/user/serializers.py
paulovitorweb/recipe-app-api
3477c32c445afbb66fce566b9ae66918b21c28df
[ "MIT" ]
null
null
null
app/user/serializers.py
paulovitorweb/recipe-app-api
3477c32c445afbb66fce566b9ae66918b21c28df
[ "MIT" ]
null
null
null
app/user/serializers.py
paulovitorweb/recipe-app-api
3477c32c445afbb66fce566b9ae66918b21c28df
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model, authenticate from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from core.models import User class UserSerializer(serializers.ModelSerializer): """Serializer for the users object""" class Meta: model = get_u...
31.052632
74
0.649153
947787263acb375d700d754eb7f81e28087f789b
775
py
Python
opencvPYTesting/denseFlow.py
Dwight-Englewood/0207-Rover-Ruckus
bf97c86644af33d601857142c59df4b714c625cd
[ "MIT" ]
2
2018-12-15T04:20:04.000Z
2018-12-15T04:20:09.000Z
opencvPYTesting/denseFlow.py
Dwight-Englewood-Robotics/0207-Rover-Ruckus
bf97c86644af33d601857142c59df4b714c625cd
[ "MIT" ]
10
2018-10-29T17:12:17.000Z
2018-11-08T12:45:13.000Z
opencvPYTesting/denseFlow.py
Dwight-Englewood-Robotics/0207-Rover-Ruckus
bf97c86644af33d601857142c59df4b714c625cd
[ "MIT" ]
1
2018-10-05T20:14:36.000Z
2018-10-05T20:14:36.000Z
import cv2 as cv import numpy as np cap = cv.VideoCapture("wood.mp4") ret, frame1 = cap.read() prvs = cv.cvtColor(frame1,cv.COLOR_BGR2GRAY) hsv = np.zeros_like(frame1) hsv[...,1] = 255 while(1): ret, frame2 = cap.read() next = cv.cvtColor(frame2,cv.COLOR_BGR2GRAY) flow = cv.calcOpticalFlowFarneback(prvs,nex...
31
81
0.616774
4aa72a0be43791b8ef2c9dfd3d02a6f543da3a7f
5,581
py
Python
src/textpruner/pruners/vocabulary_pruner.py
zchu-hit-scir/TextPruner
77871ce2bc525630d69c5bb4db48e68a2e532757
[ "Apache-2.0" ]
null
null
null
src/textpruner/pruners/vocabulary_pruner.py
zchu-hit-scir/TextPruner
77871ce2bc525630d69c5bb4db48e68a2e532757
[ "Apache-2.0" ]
null
null
null
src/textpruner/pruners/vocabulary_pruner.py
zchu-hit-scir/TextPruner
77871ce2bc525630d69c5bb4db48e68a2e532757
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn import os from ..model_map import MODEL_MAP from ..configurations import VocabularyPruningConfig, GeneralConfig from .utils import infer_model_type import logging from tqdm import tqdm from collections import abc from typing import Optional logger = logging.getLogger(__name__) class V...
47.700855
166
0.658126
9a3d9e76acb80d35e7bb5844800ddaf71b2b712a
3,769
py
Python
data/states/audio.py
harryninja/Ping-Pong-Doen-a
eabc052872544f1acf53be67415d5fd2e233bc5d
[ "Unlicense" ]
null
null
null
data/states/audio.py
harryninja/Ping-Pong-Doen-a
eabc052872544f1acf53be67415d5fd2e233bc5d
[ "Unlicense" ]
null
null
null
data/states/audio.py
harryninja/Ping-Pong-Doen-a
eabc052872544f1acf53be67415d5fd2e233bc5d
[ "Unlicense" ]
null
null
null
import pygame as pg from .. import tools '''isso aqui importa o audio do codigo Tools em que direciona pra os resources''' class Audio(tools.States): def __init__(self, screen_rect): tools.States.__init__(self) self.screen_rect = screen_rect self.listings = [ 'Background Music',...
38.85567
110
0.580525
c38190d5b840b28dfcd9600dd7b4e93618f960b4
10,268
bzl
Python
debian_versions.bzl
ursinnDev/GoogleContainerTools_distroless
10aa518a3b9aabcf4a6401e226eff81c9602e654
[ "Apache-2.0" ]
null
null
null
debian_versions.bzl
ursinnDev/GoogleContainerTools_distroless
10aa518a3b9aabcf4a6401e226eff81c9602e654
[ "Apache-2.0" ]
null
null
null
debian_versions.bzl
ursinnDev/GoogleContainerTools_distroless
10aa518a3b9aabcf4a6401e226eff81c9602e654
[ "Apache-2.0" ]
null
null
null
# AUTO GENERATED DEBIAN_PACKAGE_VERSIONS = { "amd64": { "debian10": { "base-files": "10.3+deb10u12", "ca-certificates": "20200601~deb10u2", "libbz2-1.0": "1.0.6-9.2~deb10u1", "libc-bin": "2.28-10+deb10u1", "libc6": "2.28-10+deb10u1", "l...
38.313433
62
0.425691
d30a4a6656bb369dd93770d9789449b5296645b2
673
py
Python
src/uefi/BaseTools/Source/Python/AutoGen/__init__.py
kkennett/oscore.dev
59e786f12f9af969211c95a9d2863b1767528341
[ "BSD-3-Clause" ]
521
2019-03-29T15:44:08.000Z
2022-03-22T09:46:19.000Z
src/uefi/BaseTools/Source/Python/AutoGen/__init__.py
kkennett/oscore.dev
59e786f12f9af969211c95a9d2863b1767528341
[ "BSD-3-Clause" ]
30
2019-06-04T17:00:49.000Z
2021-09-08T20:44:19.000Z
src/uefi/BaseTools/Source/Python/AutoGen/__init__.py
kkennett/oscore.dev
59e786f12f9af969211c95a9d2863b1767528341
[ "BSD-3-Clause" ]
99
2019-03-29T16:04:13.000Z
2022-03-28T16:59:34.000Z
## @file # Python 'AutoGen' package initialization file. # # This file is required to make Python interpreter treat the directory # as containing package. # # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the ...
37.388889
84
0.766716
812fb96b13d6ef94c9caf60f90b02c84fd6b3a31
2,084
py
Python
selenium_tests/test_A010_edit_password.py
garazoli/conduit
a261f4a6c539e5294889bfecf2be01eba72203dc
[ "MIT" ]
null
null
null
selenium_tests/test_A010_edit_password.py
garazoli/conduit
a261f4a6c539e5294889bfecf2be01eba72203dc
[ "MIT" ]
null
null
null
selenium_tests/test_A010_edit_password.py
garazoli/conduit
a261f4a6c539e5294889bfecf2be01eba72203dc
[ "MIT" ]
null
null
null
# TC_020 teszteset from selenium import webdriver from selenium.webdriver.chrome.options import Options from webdriver_manager.chrome import ChromeDriverManager import time import locators # Headless mode opt = Options() opt.headless = True driver = webdriver.Chrome(executable_path=ChromeDriverManager().install(), o...
29.352113
95
0.754319
f9aff026c0bc3e9a8bb82011beb4da6859b8efc8
492
py
Python
RecoMET/METFilters/python/badGlobalMuonTaggersMiniAOD_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoMET/METFilters/python/badGlobalMuonTaggersMiniAOD_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoMET/METFilters/python/badGlobalMuonTaggersMiniAOD_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms badGlobalMuonTaggerMAOD = cms.EDFilter("BadGlobalMuonTagger", muons = cms.InputTag("slimmedMuons"), vtx = cms.InputTag("offlineSlimmedPrimaryVertices"), muonPtCut = cms.double(20), selectClones = cms.bool(False), taggingMode = cms.bool(False), ) cloneGloba...
30.75
90
0.760163
d67bad03c4372e1679128c5595a0c2419571273a
31
py
Python
software_testing/__init__.py
rafaelleinio/software-testing
0cb9e95b65675121360a0e47ad127666c6c5ae7d
[ "MIT" ]
1
2021-02-28T02:12:35.000Z
2021-02-28T02:12:35.000Z
software_testing/__init__.py
rafaelleinio/software-testing
0cb9e95b65675121360a0e47ad127666c6c5ae7d
[ "MIT" ]
null
null
null
software_testing/__init__.py
rafaelleinio/software-testing
0cb9e95b65675121360a0e47ad127666c6c5ae7d
[ "MIT" ]
null
null
null
"""Software testing module."""
15.5
30
0.677419
702be65056d84d2408e87fbd324aca6a4b6d0b07
3,144
py
Python
configs/fcos/fcos_r50_caffe_fpn_gn-head_4x4_1x_coco_custom.py
Alphafrey946/Colocalization-of-fluorescent_signals-using-deep-learning-with-Manders-overlapping-coefficient
cc8386b6cc6cbe823983647119511aa87e121f23
[ "Apache-2.0" ]
2
2021-02-23T04:42:07.000Z
2021-02-23T07:22:42.000Z
configs/fcos/fcos_r50_caffe_fpn_gn-head_4x4_1x_coco_custom.py
Alphafrey946/Colocalization-of-fluorescent_signals-using-deep-learning-with-Manders-overlapping-coefficient
cc8386b6cc6cbe823983647119511aa87e121f23
[ "Apache-2.0" ]
null
null
null
configs/fcos/fcos_r50_caffe_fpn_gn-head_4x4_1x_coco_custom.py
Alphafrey946/Colocalization-of-fluorescent_signals-using-deep-learning-with-Manders-overlapping-coefficient
cc8386b6cc6cbe823983647119511aa87e121f23
[ "Apache-2.0" ]
1
2021-02-23T04:42:08.000Z
2021-02-23T04:42:08.000Z
_base_ = [ '../_base_/datasets/my_custom_detection.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] # model settings model = dict( type='FCOS', pretrained='open-mmlab://detectron/resnet50_caffe', backbone=dict( type='ResNet', depth=50, num_stages=4,...
29.660377
75
0.606234
c052152f413e626eb8e3705cc403596f06d5dd12
4,011
py
Python
app/tests/v1/test_redflags.py
timmwrite/ireporter
bc5a64740cf920010d8353985ece04a96ecdfafd
[ "MIT" ]
2
2019-01-21T10:47:40.000Z
2019-01-28T11:18:53.000Z
app/tests/v1/test_redflags.py
timmwrite/ireporter
bc5a64740cf920010d8353985ece04a96ecdfafd
[ "MIT" ]
6
2018-11-22T10:15:09.000Z
2021-04-20T17:55:41.000Z
app/tests/v1/test_redflags.py
timmwrite/ireporter
bc5a64740cf920010d8353985ece04a96ecdfafd
[ "MIT" ]
3
2018-12-03T08:16:45.000Z
2019-09-20T17:04:55.000Z
"""Tests for redflags run with pytest""" import json import unittest from ... import create_app class RedFlagTestCase(unittest.TestCase): """ This class represents the redflag test cases """ def setUp(self): APP = create_app("testing") self.app = APP.test_client() self.redfl...
42.221053
116
0.598853
6268f8cc116bed3a67002ab4b72b36478f37a962
210
py
Python
docker/dockerTrader/gateway/ibGateway/__init__.py
OceanMT/vnpy_py3
0901e9381c54e615247eb753bac476a911c9ae5d
[ "MIT" ]
null
null
null
docker/dockerTrader/gateway/ibGateway/__init__.py
OceanMT/vnpy_py3
0901e9381c54e615247eb753bac476a911c9ae5d
[ "MIT" ]
null
null
null
docker/dockerTrader/gateway/ibGateway/__init__.py
OceanMT/vnpy_py3
0901e9381c54e615247eb753bac476a911c9ae5d
[ "MIT" ]
null
null
null
# encoding: UTF-8 import vtConstant from .ibGateway import IbGateway as gateway gatewayName = 'IB' gatewayDisplayName = gatewayName gatewayType = vtConstant.GATEWAYTYPE_INTERNATIONAL gatewayQryEnabled = False
23.333333
50
0.833333
fea4b5739933bd2964ac4b4e107c1a3808c56801
5,188
py
Python
aea/identity/base.py
bryanchriswhite/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
aea/identity/base.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
aea/identity/base.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
35.054054
125
0.593678
f7bd493a4a6b9c29c45be6e230287ac9d5505f79
5,661
py
Python
links/tests.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
links/tests.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
1
2022-02-17T20:28:19.000Z
2022-02-17T20:28:19.000Z
links/tests.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
from django.contrib.admin.sites import AdminSite from django.contrib.auth.models import User from django.contrib.messages.storage.fallback import FallbackStorage from django.http import HttpResponse, HttpResponseRedirect from django.test import TestCase, RequestFactory, override_settings, SimpleTestCase from django.url...
39.587413
111
0.671613
511843f2dcfdb8b7b3bd6a16b30b5f5e3871f92c
1,411
py
Python
samples/openapi3/client/petstore/python-legacy/test/test_class_model.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
11,868
2018-05-12T02:58:07.000Z
2022-03-31T21:19:39.000Z
samples/openapi3/client/petstore/python-legacy/test/test_class_model.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
9,672
2018-05-12T14:25:43.000Z
2022-03-31T23:59:30.000Z
samples/openapi3/client/petstore/python-legacy/test/test_class_model.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
4,776
2018-05-12T12:06:08.000Z
2022-03-31T19:52:51.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
27.134615
174
0.666194
95c4be79e7b6e8cbffed4d2d0d16dbb8ad7d80c4
1,199
py
Python
tools/metrics/histograms/update_net_trust_anchors.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/metrics/histograms/update_net_trust_anchors.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/metrics/histograms/update_net_trust_anchors.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # Copyright 2017 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. """Updates NetTrustAnchors enum in histograms.xml file with values read from net/data/ssl/root_stores/root_stores.json. If the file w...
27.883721
74
0.740617
8073802c60fe9f9b41fad29ad7abe384a7d8473e
3,829
py
Python
platform/handlers/user.py
THU-KEG/ECTE
db657c347b64ead086ccc79c2837df1235088b5d
[ "MIT" ]
null
null
null
platform/handlers/user.py
THU-KEG/ECTE
db657c347b64ead086ccc79c2837df1235088b5d
[ "MIT" ]
null
null
null
platform/handlers/user.py
THU-KEG/ECTE
db657c347b64ead086ccc79c2837df1235088b5d
[ "MIT" ]
1
2021-08-31T03:23:37.000Z
2021-08-31T03:23:37.000Z
import logging import time import tqdm class User: def __init__(self, user_id, recommender=None): assert type(user_id) is int self.user_id = user_id self.answered_questions = [] self.answer_count = 0 self.diamond_count = 0 if recommender: self.recommende...
47.8625
128
0.625751
936f5a5b622520c1b6863cc326e6d0cefd00b4d8
22,183
py
Python
cinderclient/tests/unit/v1/test_shell.py
scottdangelo/cinderclient-api-microversions
a0df4c76f2959ffed08cf65fd53de03484b1c0bc
[ "CNRI-Python", "Apache-1.1" ]
null
null
null
cinderclient/tests/unit/v1/test_shell.py
scottdangelo/cinderclient-api-microversions
a0df4c76f2959ffed08cf65fd53de03484b1c0bc
[ "CNRI-Python", "Apache-1.1" ]
null
null
null
cinderclient/tests/unit/v1/test_shell.py
scottdangelo/cinderclient-api-microversions
a0df4c76f2959ffed08cf65fd53de03484b1c0bc
[ "CNRI-Python", "Apache-1.1" ]
null
null
null
# Copyright 2010 Jacob Kaplan-Moss # Copyright (c) 2011 OpenStack Foundation # 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...
44.366
78
0.598882
527f4b849972092777545c6dac8e2efb9efd4eb5
1,100
py
Python
src/stage_00_template.py
sarikamohan08/transfer-learning-ANN
d41d1f8a9a8d8e22016b1fb5116cfe1a36943d38
[ "MIT" ]
1
2021-11-24T03:46:22.000Z
2021-11-24T03:46:22.000Z
src/stage_00_template.py
sarikamohan08/transfer-learning-ANN
d41d1f8a9a8d8e22016b1fb5116cfe1a36943d38
[ "MIT" ]
null
null
null
src/stage_00_template.py
sarikamohan08/transfer-learning-ANN
d41d1f8a9a8d8e22016b1fb5116cfe1a36943d38
[ "MIT" ]
null
null
null
import argparse import os import shutil from tqdm import tqdm import logging from src.utils.common import read_yaml, create_directories import random STAGE = "STAGE_NAME" ## <<< change stage name logging.basicConfig( filename=os.path.join("logs", 'running_logs.log'), level=logging.INFO, format="[%(asc...
27.5
76
0.645455
52dc173b4bfd70fde11d49a7817ff0a7a5eed14f
2,582
py
Python
cli/aws_orbit/remote_files/cdk/lambda_sources/eks_service_handler/index.py
srinivasreddych/aws-orbit-workbench
2d154addff58d26f5459a73c06148aaf5e9fad46
[ "Apache-2.0" ]
94
2021-03-19T19:55:11.000Z
2022-03-31T19:50:01.000Z
cli/aws_orbit/remote_files/cdk/lambda_sources/eks_service_handler/index.py
srinivasreddych/aws-orbit-workbench
2d154addff58d26f5459a73c06148aaf5e9fad46
[ "Apache-2.0" ]
410
2021-03-19T18:04:48.000Z
2022-03-22T13:56:53.000Z
cli/aws_orbit/remote_files/cdk/lambda_sources/eks_service_handler/index.py
srinivasreddych/aws-orbit-workbench
2d154addff58d26f5459a73c06148aaf5e9fad46
[ "Apache-2.0" ]
24
2021-03-19T23:16:23.000Z
2022-03-04T01:05:18.000Z
# Copyright 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. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
41.645161
117
0.659566
d5a74da4c429e3b6ed11953d4f05038d4e99b050
2,659
py
Python
src/functions.py
waldoeGeek/ulauncher-reddit-search
54a67b1137c412350e6d447c15c88c0526d1e4f1
[ "MIT" ]
null
null
null
src/functions.py
waldoeGeek/ulauncher-reddit-search
54a67b1137c412350e6d447c15c88c0526d1e4f1
[ "MIT" ]
null
null
null
src/functions.py
waldoeGeek/ulauncher-reddit-search
54a67b1137c412350e6d447c15c88c0526d1e4f1
[ "MIT" ]
null
null
null
import os from urllib.parse import urlparse import urllib.request as req import requests base_url = 'https://reddit.com/search.json?q=' class Searches: def save_thumbnail(thumb_url): # get thumbnail file = urlparse(thumb_url) # get thumbnail filename file_path = os.path.basename...
27.412371
102
0.540429
3a5c8d5a35a6dc325b97521a19c27dfc920d5407
331
py
Python
LeetCodePython/hammingDistanceSln.py
YouenZeng/LeetCode
626da7e4fa8d84cd833355ad14ea5ea39fe0c3b9
[ "MIT" ]
1
2019-06-04T21:40:46.000Z
2019-06-04T21:40:46.000Z
LeetCodePython/hammingDistanceSln.py
YouenZeng/LeetCode
626da7e4fa8d84cd833355ad14ea5ea39fe0c3b9
[ "MIT" ]
1
2018-06-04T01:55:25.000Z
2018-06-04T01:55:25.000Z
LeetCodePython/hammingDistanceSln.py
YouenZeng/LeetCode
626da7e4fa8d84cd833355ad14ea5ea39fe0c3b9
[ "MIT" ]
null
null
null
class Solution: def hammingDistance(self, x, y): """ :type x: int :type y: int :rtype: int """ count = 0 while(x != 0 or y != 0): if x % 2 != y % 2: count = count + 1 x = int(x / 2) y = int(y / 2) re...
20.6875
36
0.356495
2a828ca43e892bfa54ae5e6675d4d7fb82861721
4,154
py
Python
vel_cont.py
npav5057/NSEpython
cec7f0af83e8414a0b18829c7bd923a71bea5ff3
[ "MIT" ]
1
2021-06-29T16:30:57.000Z
2021-06-29T16:30:57.000Z
vel_cont.py
npav5057/NSEpython
cec7f0af83e8414a0b18829c7bd923a71bea5ff3
[ "MIT" ]
null
null
null
vel_cont.py
npav5057/NSEpython
cec7f0af83e8414a0b18829c7bd923a71bea5ff3
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.animation as anim from mpl_toolkits.axes_grid1 import make_axes_locatable from matplotlib.colors import BoundaryNorm import numpy as np import matplotlib as mpl from numpy.core.fromnumeric import ptp from skimage.transform import resize import os import sys from glob i...
23.077778
90
0.598219
80ab8e607bff611220e77f963b4097de724fa914
426
py
Python
sdk/python/pulumi_gcp/binaryauthorization/__init__.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/binaryauthorization/__init__.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/binaryauthorization/__init__.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .attestor import * from .attestor_iam_binding import * from .attestor_iam_member impor...
32.769231
87
0.744131
b7155dc47e930c073b375140b1ca64d1d204b98c
2,402
py
Python
app/language_interface.py
Albert5544/frontend
dab95f2a6ba95e8521c0e439da0081d2edf69cf9
[ "MIT" ]
null
null
null
app/language_interface.py
Albert5544/frontend
dab95f2a6ba95e8521c0e439da0081d2edf69cf9
[ "MIT" ]
2
2021-02-02T22:48:24.000Z
2021-06-02T02:04:53.000Z
app/language_interface.py
Albert5544/frontend
dab95f2a6ba95e8521c0e439da0081d2edf69cf9
[ "MIT" ]
null
null
null
import sys from abc import abstractmethod, ABCMeta import docker import os from app import db, celery from app.models import User, Dataset class language_interface(object): __metaclass__ = ABCMeta # 指定这是一个抽象类 @abstractmethod def preprocessing(self, preprocess, dataverse_key='', doi='', zip_file='', ...
36.393939
106
0.579101
a528b1e82fd5fd1dff27ada8a7d49492e1d385ab
1,531
py
Python
utils/constants.py
Saizuo/Photon-V1
bf63ac4c4982c7139ea5d010884756b7c8951108
[ "BSD-3-Clause" ]
9
2021-09-01T13:43:21.000Z
2022-02-23T02:46:11.000Z
utils/constants.py
ShackerFox/EpicBot
c911cd052b0d3c2b5d8de52b2bd704021e8f0d4d
[ "BSD-3-Clause" ]
null
null
null
utils/constants.py
ShackerFox/EpicBot
c911cd052b0d3c2b5d8de52b2bd704021e8f0d4d
[ "BSD-3-Clause" ]
null
null
null
brain_images = { "no_brain": [ "https://i1.sndcdn.com/artworks-000583301069-jy5ib2-t500x500.jpg", "https://i.pinimg.com/originals/6a/1c/84/6a1c843de4d7a5b5843ef63e6ba47e8b.jpg", "https://cdn.discordapp.com/attachments/859335247547990026/880461702355902544/Z.png" ], "small": [ ...
61.24
239
0.717178
1f1935ac0f60cbab385d17a6cb557af116fc1132
17,619
py
Python
src/wstool/config_yaml.py
asaba96/wstool
9c44843e3fc1904ef1af94fde0fe519dc410abc8
[ "BSD-3-Clause" ]
null
null
null
src/wstool/config_yaml.py
asaba96/wstool
9c44843e3fc1904ef1af94fde0fe519dc410abc8
[ "BSD-3-Clause" ]
null
null
null
src/wstool/config_yaml.py
asaba96/wstool
9c44843e3fc1904ef1af94fde0fe519dc410abc8
[ "BSD-3-Clause" ]
null
null
null
# Software License Agreement (BSD License) # # Copyright (c) 2009, Willow Garage, Inc. # 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 must retain the above...
38.053996
103
0.627958
ee65970340db3d1f2e7d5e9dd2e03535bd108580
583
py
Python
meals/urls.py
faix/registration
11b6f5f419bd39132e9a40f3366b27451a436778
[ "MIT" ]
1
2019-12-03T05:21:56.000Z
2019-12-03T05:21:56.000Z
meals/urls.py
oriolclosa/registration
91d85d7fbbf25339aa37ed9b46c49b696a5fc6d1
[ "MIT" ]
2
2020-10-12T15:38:57.000Z
2022-02-24T19:02:46.000Z
meals/urls.py
oriolclosa/registration
91d85d7fbbf25339aa37ed9b46c49b696a5fc6d1
[ "MIT" ]
4
2020-10-12T15:30:46.000Z
2022-03-13T13:27:58.000Z
from django.conf.urls import url from meals import views urlpatterns = [ url(r'^list/$', views.MealsList.as_view(), name='meals_list'), url(r'^add/$', views.MealAdd.as_view(), name='meal_add'), url(r'^users/$', views.MealsUsers.as_view(), name='meals_users'), url(r'^(?P<id>[\w-]+)$', views.MealDetail....
41.642857
85
0.64837
6f9f142fb83cd79890a4a9c5e1cd19229d3b2f3a
46
py
Python
src/adafruit_blinka/microcontroller/starfive/JH71x0/__init__.py
twa127/Adafruit_Blinka
560ab1fcabf64b9941ed57a3cfed996b836178fa
[ "MIT" ]
294
2018-06-30T19:08:27.000Z
2022-03-26T21:08:47.000Z
src/adafruit_blinka/microcontroller/starfive/JH71x0/__init__.py
twa127/Adafruit_Blinka
560ab1fcabf64b9941ed57a3cfed996b836178fa
[ "MIT" ]
421
2018-06-30T20:54:46.000Z
2022-03-31T15:08:37.000Z
src/adafruit_blinka/microcontroller/starfive/JH71x0/__init__.py
twa127/Adafruit_Blinka
560ab1fcabf64b9941ed57a3cfed996b836178fa
[ "MIT" ]
234
2018-07-23T18:49:16.000Z
2022-03-28T16:59:48.000Z
"""Definition for the StarFive JH71x0 chip"""
23
45
0.73913
af23f15ed8f231b38680858b9de009a07c4dc42f
1,039
py
Python
Examples/Modules/nci_corrector/analysis_ncicorr.py
mrowan137/amrex
cafcb6bd5902fc72a4d6fa51b99fe837f5eb5381
[ "BSD-3-Clause-LBNL" ]
131
2018-09-29T08:11:40.000Z
2022-03-28T23:24:22.000Z
Examples/Modules/nci_corrector/analysis_ncicorr.py
mrowan137/amrex
cafcb6bd5902fc72a4d6fa51b99fe837f5eb5381
[ "BSD-3-Clause-LBNL" ]
1,656
2018-10-02T01:49:24.000Z
2022-03-31T21:27:31.000Z
Examples/Modules/nci_corrector/analysis_ncicorr.py
mrowan137/amrex
cafcb6bd5902fc72a4d6fa51b99fe837f5eb5381
[ "BSD-3-Clause-LBNL" ]
100
2018-10-01T20:41:14.000Z
2022-03-10T10:30:42.000Z
#! /usr/bin/env python # Copyright 2019 Jean-Luc Vay, Maxence Thevenet, Remi Lehe # Weiqun Zhang # # This file is part of WarpX. # # License: BSD-3-Clause-LBNL import sys import yt import re import numpy as np import scipy.constants as scc yt.funcs.mylog.setLevel(0) fn = sys.argv[1] use_MR = re.search( 'nci_correct...
23.613636
88
0.706449
79d08b53f3f546a5fe2bffb5cbe2f56f66859a05
3,702
py
Python
utils.py
pavitra14/Text2Handwriting
c66fda8e1ba024102aee3e0cf3159ba461d41468
[ "MIT" ]
null
null
null
utils.py
pavitra14/Text2Handwriting
c66fda8e1ba024102aee3e0cf3159ba461d41468
[ "MIT" ]
1
2021-06-08T21:44:41.000Z
2021-06-08T21:44:41.000Z
utils.py
pavitra14/Text2Handwriting
c66fda8e1ba024102aee3e0cf3159ba461d41468
[ "MIT" ]
1
2020-10-23T03:10:08.000Z
2020-10-23T03:10:08.000Z
import pytesseract import cv2 import matplotlib.pyplot as plt from PIL import Image from flask import request from pytesseract import Output from werkzeug.utils import secure_filename import base64 import os import json import pickle # from BackgroundRemoval import processImage import shutil from TokenManagement import...
29.616
97
0.594273
71e5bd291f2315b2bee17d963c5f1e2d97f3371a
99,677
py
Python
src/transformers/utils/dummy_pt_objects.py
Ravoxsg/transformers
3212a1d4a6fbded40daad7153f222c91acabe82d
[ "Apache-2.0" ]
3
2022-02-22T07:06:32.000Z
2022-03-16T05:30:19.000Z
src/transformers/utils/dummy_pt_objects.py
Ravoxsg/transformers
3212a1d4a6fbded40daad7153f222c91acabe82d
[ "Apache-2.0" ]
null
null
null
src/transformers/utils/dummy_pt_objects.py
Ravoxsg/transformers
3212a1d4a6fbded40daad7153f222c91acabe82d
[ "Apache-2.0" ]
null
null
null
# This file is autogenerated by the command `make fix-copies`, do not edit. # flake8: noqa from ..file_utils import DummyObject, requires_backends class PyTorchBenchmark(metaclass=DummyObject): _backends = ["torch"] def __init__(self, *args, **kwargs): requires_backends(self, ["torch"]) class PyTor...
23.34356
84
0.68745
587aee2a1f2d8cd34ee03c481a71ad57af15ae7f
2,829
py
Python
alipay/aop/api/response/AlipayTradeCustomsDeclareResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayTradeCustomsDeclareResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayTradeCustomsDeclareResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "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.response.AlipayResponse import AlipayResponse class AlipayTradeCustomsDeclareResponse(AlipayResponse): def __init__(self): super(AlipayTradeCustomsDeclareResponse, self).__init__() self._alipay_declare_no = None ...
29.46875
106
0.663132
9d420fa6a6fa1baeda66992d3ce18a3d9c5a6464
7,949
py
Python
sdk/python/pulumi_azure_native/netapp/v20200801/backup.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/netapp/v20200801/backup.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/netapp/v20200801/backup.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "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 from ... import _utilities, _tables __a...
41.186528
935
0.630771
0c14456feea8602ddf535eb26e0fdfbcc2feb5c0
699
py
Python
swift/context.py
PdrLins/swift-morm
36f38cfd8d431d4530ead35ef2bf87eb46ee76ba
[ "MIT" ]
2
2018-08-21T07:49:37.000Z
2019-01-18T20:58:57.000Z
swift/context.py
PdrLins/swift-morm
36f38cfd8d431d4530ead35ef2bf87eb46ee76ba
[ "MIT" ]
1
2021-04-30T20:42:36.000Z
2021-04-30T20:42:36.000Z
swift/context.py
PdrLins/swift-morm
36f38cfd8d431d4530ead35ef2bf87eb46ee76ba
[ "MIT" ]
null
null
null
from flask import current_app from .sql_mapper import * class Context(SwiftSqlMapper): __providers_keys = [] def __init__(self, providers: []): self.setProviders(providers) @staticmethod def get_context(): post_connString = current_app.config.get('POSTGRESQL_DATABASE_URI') # need to...
36.789474
118
0.736767
6a39fcc2ea37df572c7a571ac385cfe66f708a88
347
py
Python
passGen.py
diegofer11/RandomPassGenerator
ea6bba5b1b723d19675e61f22fe7ba353afa33d7
[ "MIT" ]
null
null
null
passGen.py
diegofer11/RandomPassGenerator
ea6bba5b1b723d19675e61f22fe7ba353afa33d7
[ "MIT" ]
null
null
null
passGen.py
diegofer11/RandomPassGenerator
ea6bba5b1b723d19675e61f22fe7ba353afa33d7
[ "MIT" ]
null
null
null
from random import choice, choices from string import ascii_letters, digits def new_pass(paswlength): """Function that generates random password based on user given length.""" special = '#$%&()*+<=>?@_' lists = [ascii_letters, digits, special] pasw = ''.join(choice(choices(lists)[0]) for i in range(pa...
31.545455
77
0.688761
4ea236c83e32e645d4f2e1d0d2ec2108126bb35b
2,481
py
Python
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_delete_security_group_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_delete_security_group_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_delete_security_group_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class NeutronDeleteSecurityGroupResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
28.848837
85
0.559452
49cc12ac429c8bf2fa88482731a36912580b6c2b
2,111
py
Python
python/tests/test_circumradius.py
jorgensd/asimov-contact
08704ade6343c346bc54dfd38186983cc7ab4485
[ "MIT" ]
null
null
null
python/tests/test_circumradius.py
jorgensd/asimov-contact
08704ade6343c346bc54dfd38186983cc7ab4485
[ "MIT" ]
null
null
null
python/tests/test_circumradius.py
jorgensd/asimov-contact
08704ade6343c346bc54dfd38186983cc7ab4485
[ "MIT" ]
null
null
null
# Copyright (C) 2021 Sarah Roggendorf and Jørgen S. Dokken # # SPDX-License-Identifier: MIT import numpy as np import pytest import ufl from dolfinx.fem import Function, FunctionSpace, IntegralType from dolfinx.fem.petsc import LinearProblem from dolfinx.mesh import create_unit_cube, create_unit_square, locate_entit...
34.048387
113
0.657982
ac7967ab20a5c8843c54d560b1e54124771a2e02
2,768
py
Python
lab/tests/test_templatetags.py
lajarre/euphrosyne
14050097774b088e7345f9488ce74b205f7bd338
[ "MIT" ]
1
2022-03-09T19:47:29.000Z
2022-03-09T19:47:29.000Z
lab/tests/test_templatetags.py
lajarre/euphrosyne
14050097774b088e7345f9488ce74b205f7bd338
[ "MIT" ]
null
null
null
lab/tests/test_templatetags.py
lajarre/euphrosyne
14050097774b088e7345f9488ce74b205f7bd338
[ "MIT" ]
null
null
null
# pylint: disable=redefined-outer-name # pylint: disable=invalid-name from unittest.mock import patch import pytest from django.contrib.admin.helpers import AdminForm from django.contrib.admin.sites import AdminSite from django.contrib.admin.utils import flatten_fieldsets from django.contrib.auth.models import Anonymo...
30.755556
116
0.739162
7a28b56325a0a9c07824e427a4fac0c1cf48e5c7
1,783
py
Python
python2/tests/SMBConnectionTests/test_SMBHandler.py
Awingu/pysmb
93f442a0e4d92d0a9047184cc3e048d5b428f228
[ "Zlib" ]
280
2015-01-21T14:34:41.000Z
2022-03-02T03:36:05.000Z
python2/tests/SMBConnectionTests/test_SMBHandler.py
Awingu/pysmb
93f442a0e4d92d0a9047184cc3e048d5b428f228
[ "Zlib" ]
160
2015-01-09T22:05:44.000Z
2022-03-29T11:34:44.000Z
python2/tests/SMBConnectionTests/test_SMBHandler.py
Awingu/pysmb
93f442a0e4d92d0a9047184cc3e048d5b428f228
[ "Zlib" ]
101
2015-01-17T21:12:22.000Z
2022-01-26T11:12:16.000Z
# -*- coding: utf-8 -*- import os, urllib, urllib2, time, random from StringIO import StringIO from smb.SMBHandler import SMBHandler import util try: import hashlib def MD5(): return hashlib.md5() except ImportError: import md5 def MD5(): return md5.new() def test_basic(): # Basic test for smb...
26.61194
136
0.667414
98bd8ef69536460803d892ac98811299af3d30f3
931
py
Python
troposphereWinds/Zonal/250v850.py
Mihir-DG/Tropospheric-Temperature-and-Zonal-Wind-Profiles
13e0c706faed446f10758341807c066670260e0b
[ "MIT" ]
null
null
null
troposphereWinds/Zonal/250v850.py
Mihir-DG/Tropospheric-Temperature-and-Zonal-Wind-Profiles
13e0c706faed446f10758341807c066670260e0b
[ "MIT" ]
null
null
null
troposphereWinds/Zonal/250v850.py
Mihir-DG/Tropospheric-Temperature-and-Zonal-Wind-Profiles
13e0c706faed446f10758341807c066670260e0b
[ "MIT" ]
null
null
null
from netCDF4 import Dataset as dst from matplotlib import pyplot as plt nc = dst('../uwnd.mon.mean.nc', mode='r') iterator = -120 while iterator < 0: profile850 = [] for latitude in list(nc.variables['uwnd'])[iterator][2]: item = [] for longitude in latitude: item.append(longitude) iterator += 1 average =...
28.212121
76
0.684211
dbee3b4e48e997eb8cb4e5b5c1c1e4f19a96d714
511
py
Python
news/migrations/0005_auto_20180824_0009.py
Akshita-Rastogi/Summarizer
b8ad34720428c906ee9b6ce8c1a3b8ec01787cd5
[ "MIT" ]
9
2020-06-08T20:03:42.000Z
2021-06-24T10:52:02.000Z
news/migrations/0005_auto_20180824_0009.py
Akshita-Rastogi/Summarizer
b8ad34720428c906ee9b6ce8c1a3b8ec01787cd5
[ "MIT" ]
7
2020-06-06T01:26:08.000Z
2022-02-10T11:26:58.000Z
news/migrations/0005_auto_20180824_0009.py
shubham1507/sumup
053766da121ae22b3d04c87592ffab5e9e274ea8
[ "MIT" ]
7
2018-11-25T08:54:56.000Z
2021-12-21T21:12:19.000Z
# Generated by Django 2.0.5 on 2018-08-23 18:24 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0004_auto_20180824_0001'), ] operations = [ migrations.AlterField( model_name='document', ...
25.55
143
0.661448
f8318b4fe7374e790ed739188a05afaa66e0eff7
4,038
py
Python
custom_components/samsungtv_smart/api/upnp.py
hwikene/ha-samsungtv-smart
47a44da6a15af8084e56223e94c41e0f206327d5
[ "Apache-2.0" ]
null
null
null
custom_components/samsungtv_smart/api/upnp.py
hwikene/ha-samsungtv-smart
47a44da6a15af8084e56223e94c41e0f206327d5
[ "Apache-2.0" ]
null
null
null
custom_components/samsungtv_smart/api/upnp.py
hwikene/ha-samsungtv-smart
47a44da6a15af8084e56223e94c41e0f206327d5
[ "Apache-2.0" ]
null
null
null
# Smartthings TV integration# # import requests import xml.etree.ElementTree as ET from aiohttp import ClientSession from async_timeout import timeout from typing import Optional DEFAULT_TIMEOUT = 0.2 class upnp: def __init__(self, host, session: Optional[ClientSession] = None): self._host = host ...
33.65
140
0.540367
37d641b4258b341cbae037d1f4e0e4b957f6e889
3,722
py
Python
functions/ginput.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
functions/ginput.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
functions/ginput.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012, Almar Klein # # Visvis is distributed under the terms of the (new) BSD License. # The full license can be found in 'license.txt'. import visvis as vv from visvis.pypoints import Pointset import time class GinputHelper(object): """ GinputHelper() Helper class ...
25.847222
76
0.551316
58b93c6b7dea7de41e3b25ea8d52565a07f2e200
3,635
py
Python
indico/modules/events/registration/models/invitations.py
uxmaster/indico
ecd19f17ef6fdc9f5584f59c87ec647319ce5d31
[ "MIT" ]
1
2019-11-03T11:34:16.000Z
2019-11-03T11:34:16.000Z
indico/modules/events/registration/models/invitations.py
NP-compete/indico
80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549
[ "MIT" ]
null
null
null
indico/modules/events/registration/models/invitations.py
NP-compete/indico
80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2019 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from uuid import uuid4 from sqlalchemy.dialects.postgresql impor...
28.178295
109
0.634388
8cc8517af231199933b870acd3c0d7b4bd57072a
1,803
py
Python
cubic/audio_io.py
cobaltspeech/examples-python
74a8ad1c48c46cb029ede389baedbd44fccf9dd0
[ "Apache-2.0" ]
null
null
null
cubic/audio_io.py
cobaltspeech/examples-python
74a8ad1c48c46cb029ede389baedbd44fccf9dd0
[ "Apache-2.0" ]
2
2021-07-22T15:57:53.000Z
2021-08-03T22:29:36.000Z
cubic/audio_io.py
cobaltspeech/examples-python
74a8ad1c48c46cb029ede389baedbd44fccf9dd0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright(2021) Cobalt Speech and Language Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required...
30.559322
78
0.652246
61b081e2c76072d99ea2283632a4f35d260cc21a
2,478
py
Python
examples/python/mesapy_echo.py
yc-huang/incubator-teaclave
f7614d12b98984febd26c327f544c04cc2b94f98
[ "Apache-2.0" ]
null
null
null
examples/python/mesapy_echo.py
yc-huang/incubator-teaclave
f7614d12b98984febd26c327f544c04cc2b94f98
[ "Apache-2.0" ]
null
null
null
examples/python/mesapy_echo.py
yc-huang/incubator-teaclave
f7614d12b98984febd26c327f544c04cc2b94f98
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys from teaclave import (AuthenticationService, FrontendService, AuthenticationClient, FrontendClient) from utils import (AUTHENTICATION_SERVICE_ADDRESS, FRONTEND_SERVICE_ADDRESS, AS_ROOT_CA_CERT_PATH, ENCLAVE_INFO_PATH, USER_ID, ...
31.367089
77
0.592817
32beb35ad6e2c510eceef4909c0999c7bd172187
22,172
py
Python
grammar_induction/earley_parser/nltk/parse/featurechart.py
tdonca/OpenBottle
f03d80e7b3645232fb97f91cf7fc2dc02f101ac2
[ "MIT" ]
6
2017-01-22T03:15:01.000Z
2019-12-01T16:19:36.000Z
grammar_induction/earley_parser/nltk/parse/featurechart.py
tdonca/OpenBottle
f03d80e7b3645232fb97f91cf7fc2dc02f101ac2
[ "MIT" ]
3
2017-01-15T01:32:04.000Z
2017-01-16T00:25:46.000Z
grammar_induction/earley_parser/nltk/parse/featurechart.py
tdonca/OpenBottle
f03d80e7b3645232fb97f91cf7fc2dc02f101ac2
[ "MIT" ]
6
2017-01-19T21:49:55.000Z
2021-04-14T09:57:17.000Z
# -*- coding: utf-8 -*- # Natural Language Toolkit: Chart Parser for Feature-Based Grammars # # Copyright (C) 2001-2017 NLTK Project # Author: Rob Speer <rspeer@mit.edu> # Peter Ljunglöf <peter.ljunglof@heatherleaf.se> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT """ Extension of chart ...
38.29361
89
0.583619
ef797e8b7060ed81343a048dd7a40516ba42a305
4,915
py
Python
research/skip_thoughts/skip_thoughts/ops/gru_cell.py
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
[ "Apache-2.0" ]
1
2019-09-11T09:41:11.000Z
2019-09-11T09:41:11.000Z
research/skip_thoughts/skip_thoughts/ops/gru_cell.py
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
[ "Apache-2.0" ]
null
null
null
research/skip_thoughts/skip_thoughts/ops/gru_cell.py
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
36.407407
81
0.652492
5732e5b11700273781b162c6f1181ff05ff3e977
2,630
py
Python
src/convert_sparse_to_patoh.py
mywoodstock/HAMPtOn
43565122a0009e6b33c7131072281df312cb488b
[ "MIT" ]
null
null
null
src/convert_sparse_to_patoh.py
mywoodstock/HAMPtOn
43565122a0009e6b33c7131072281df312cb488b
[ "MIT" ]
null
null
null
src/convert_sparse_to_patoh.py
mywoodstock/HAMPtOn
43565122a0009e6b33c7131072281df312cb488b
[ "MIT" ]
null
null
null
## # Project: # # File: convert_sparse_to_patoh.py # Created: Mar 12, 2014 # # Author: Abhinav Sarje <asarje@lbl.gov> # # Description: Convert sparse graph representation (row, col, val) into hypergraph representation # for input to PATOH. ## import sys, getopt def parse_arguments(argv): try: opt...
24.12844
98
0.658555
2efef8ac56adcfa21664afd54711c87b6f2142c3
7,996
py
Python
detect.py
2aliveDeepfake/face_5landmark
2db0edce855deea145f4ac80b6166faa0df04d2e
[ "MIT" ]
null
null
null
detect.py
2aliveDeepfake/face_5landmark
2db0edce855deea145f4ac80b6166faa0df04d2e
[ "MIT" ]
null
null
null
detect.py
2aliveDeepfake/face_5landmark
2db0edce855deea145f4ac80b6166faa0df04d2e
[ "MIT" ]
null
null
null
from __future__ import print_function import os import argparse import torch import torch.backends.cudnn as cudnn import numpy as np import time from data import cfg_mnet, cfg_slim, cfg_rfb from layers.functions.prior_box import PriorBox from utils.nms.py_cpu_nms import py_cpu_nms import cv2 from models.retinaface impo...
39.98
133
0.626188
55dd2677a81c9d281b79f1d5bdd38cd4fbfbb22c
301
py
Python
338.counting-bits.py
W-KE/Leetcode-Solutions
b6f40e45ddfa1a61a05f832b79581a34dab832cd
[ "MIT" ]
null
null
null
338.counting-bits.py
W-KE/Leetcode-Solutions
b6f40e45ddfa1a61a05f832b79581a34dab832cd
[ "MIT" ]
null
null
null
338.counting-bits.py
W-KE/Leetcode-Solutions
b6f40e45ddfa1a61a05f832b79581a34dab832cd
[ "MIT" ]
null
null
null
class Solution: def countBits(self, num: int) -> List[int]: result = [0] index = 0 for i in range(1, num + 1): if i != 0 and (i & (i - 1)) == 0: index = 0 result.append(1 + result[index]) index += 1 return result
27.363636
47
0.431894
8c5774e573f2ea46603649c12902671dc02cd451
10,875
py
Python
source/features/successor.py
mike-gimelfarb/deep-successor-features-for-transfer
42a547fdc6c9e34e2e92735d615cdb9db0059aee
[ "MIT" ]
13
2021-04-24T23:21:09.000Z
2022-03-23T06:23:51.000Z
source/features/successor.py
mike-gimelfarb/successor-features-for-transfer
42a547fdc6c9e34e2e92735d615cdb9db0059aee
[ "MIT" ]
null
null
null
source/features/successor.py
mike-gimelfarb/successor-features-for-transfer
42a547fdc6c9e34e2e92735d615cdb9db0059aee
[ "MIT" ]
3
2021-02-20T09:21:21.000Z
2021-03-29T05:38:54.000Z
# -*- coding: UTF-8 -*- import numpy as np class SF: def __init__(self, learning_rate_w, *args, use_true_reward=False, **kwargs): """ Creates a new abstract successor feature representation. Parameters ---------- learning_rate_w : float the learnin...
38.024476
109
0.587402
4fc8f391ff73f05a9e559fdf9f32a3eeb842955c
22,977
py
Python
google/cloud/recommender_v1beta1/services/recommender/transports/grpc_asyncio.py
googleapis/python-recommender
fc710260170dd6ec0b0547f5e2827e12b5b624a9
[ "Apache-2.0" ]
10
2020-09-19T18:33:54.000Z
2022-03-31T04:20:57.000Z
google/cloud/recommender_v1beta1/services/recommender/transports/grpc_asyncio.py
googleapis/python-recommender
fc710260170dd6ec0b0547f5e2827e12b5b624a9
[ "Apache-2.0" ]
50
2020-02-05T13:32:44.000Z
2022-03-07T16:59:56.000Z
google/cloud/recommender_v1beta1/services/recommender/transports/grpc_asyncio.py
googleapis/python-recommender
fc710260170dd6ec0b0547f5e2827e12b5b624a9
[ "Apache-2.0" ]
9
2020-02-08T13:52:09.000Z
2022-01-29T08:13:17.000Z
# -*- 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 or...
44.789474
100
0.654742
2522f3fb226e4b3936f90fd9fb681acc7a6de362
1,462
py
Python
cvat/apps/dataset_manager/formats/camvid.py
gitibharatibiswal/cvat-adas-team
a33c1ae38d79ed6e35a61a97b74cd2978853e4c2
[ "Intel", "MIT" ]
2
2022-03-13T03:45:15.000Z
2022-03-13T03:46:19.000Z
cvat/apps/dataset_manager/formats/camvid.py
gitibharatibiswal/cvat-adas-team
a33c1ae38d79ed6e35a61a97b74cd2978853e4c2
[ "Intel", "MIT" ]
3
2021-03-02T17:07:15.000Z
2021-04-14T13:33:20.000Z
cvat/apps/dataset_manager/formats/camvid.py
gitibharatibiswal/cvat-adas-team
a33c1ae38d79ed6e35a61a97b74cd2978853e4c2
[ "Intel", "MIT" ]
41
2020-12-16T05:52:41.000Z
2021-09-23T08:45:16.000Z
# Copyright (C) 2020 Intel Corporation # # SPDX-License-Identifier: MIT from tempfile import TemporaryDirectory from datumaro.components.dataset import Dataset from pyunpack import Archive from cvat.apps.dataset_manager.bindings import (GetCVATDataExtractor, import_dm_annotations) from cvat.apps.dataset_manager....
35.658537
74
0.75513
d75e9993aa570368d03533d540203ecee156ca81
895
py
Python
constant_listener/constant_listener.py
MattWis/constant_listener
0c0b32101041c4263114cd9e3306a62d20eedecb
[ "MIT" ]
1
2015-05-07T08:24:03.000Z
2015-05-07T08:24:03.000Z
constant_listener/constant_listener.py
MattWis/constant_listener
0c0b32101041c4263114cd9e3306a62d20eedecb
[ "MIT" ]
null
null
null
constant_listener/constant_listener.py
MattWis/constant_listener
0c0b32101041c4263114cd9e3306a62d20eedecb
[ "MIT" ]
null
null
null
from thread import start_new_thread from pyaudio import PyAudio from pyspeech import best_speech_result, put_audio_data_in_queue from time import sleep import Queue def background_stt(queue, profile, stt_type = 'google'): start_new_thread(_spawn_listeners, (queue, profile, stt_type,)) def _spawn_listeners(queue, pr...
28.870968
73
0.747486
9f74533db45138669c45af097b2b25e26d5fa0a0
2,689
py
Python
tests/test_class_oelint_vars_pnbpnusage.py
skycaptain/oelint-adv
ff67d3149cf8b1de2b0b2d158a68f4e2cf5e9e46
[ "BSD-2-Clause" ]
null
null
null
tests/test_class_oelint_vars_pnbpnusage.py
skycaptain/oelint-adv
ff67d3149cf8b1de2b0b2d158a68f4e2cf5e9e46
[ "BSD-2-Clause" ]
null
null
null
tests/test_class_oelint_vars_pnbpnusage.py
skycaptain/oelint-adv
ff67d3149cf8b1de2b0b2d158a68f4e2cf5e9e46
[ "BSD-2-Clause" ]
null
null
null
import pytest from .base import TestBaseClass class TestClassOelintVarsPNBPNUsage(TestBaseClass): @pytest.mark.parametrize('id', ['oelint.vars.pnbpnusage']) @pytest.mark.parametrize('occurrence', [1]) @pytest.mark.parametrize('input', [ { ...
44.081967
93
0.29788
364ecfe168695d0b4e872c8185c35200e3e99f54
4,988
py
Python
stubs.min/Autodesk/Revit/DB/__init___parts/ReferencePoint.py
denfromufa/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2017-07-07T11:15:45.000Z
2017-07-07T11:15:45.000Z
stubs.min/Autodesk/Revit/DB/__init___parts/ReferencePoint.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Autodesk/Revit/DB/__init___parts/ReferencePoint.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class ReferencePoint(Element,IDisposable): """ A reference point in an Autodesk Revit family. """ def Dispose(self): """ Dispose(self: Element,A_0: bool) """ pass def getBoundingBox(self,*args): """ getBoundingBox(self: Element,view: View) -> BoundingBoxXYZ """ pass def GetCoordinatePlaneReferenceXY...
30.601227
215
0.708901
ea03620c8e0b9b184e04b87fbe38324d87649c06
1,360
py
Python
applications/FluidDynamicsApplication/python_scripts/apply_embedded_nodes_initialization_process.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/FluidDynamicsApplication/python_scripts/apply_embedded_nodes_initialization_process.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/FluidDynamicsApplication/python_scripts/apply_embedded_nodes_initialization_process.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
import KratosMultiphysics import KratosMultiphysics.FluidDynamicsApplication as KratosFluid def Factory(settings, Model): if(type(settings) != KratosMultiphysics.Parameters): raise Exception("expected input shall be a Parameters object, encapsulating a json string") return ApplyEmbeddedNodesInitializat...
41.212121
119
0.671324
41f58e8339ae3026d9471e8bfd3a068315cbadee
1,913
py
Python
examples/16_device_queue_event.py
cedorman/depthai-python
e6783a2b8c880db59fa866facf4448bfc0b5270c
[ "MIT" ]
null
null
null
examples/16_device_queue_event.py
cedorman/depthai-python
e6783a2b8c880db59fa866facf4448bfc0b5270c
[ "MIT" ]
null
null
null
examples/16_device_queue_event.py
cedorman/depthai-python
e6783a2b8c880db59fa866facf4448bfc0b5270c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # This example demonstrates use of queue events to block a thread until a message # arrives to any (of the specified) queue import cv2 import depthai as dai import numpy as np # Start defining a pipeline pipeline = dai.Pipeline() # Create Color and Mono cameras cam_rgb = pipeline.createColorC...
31.883333
100
0.701516
0e2cbac2a840bf09877d6bac12a26daa1baf3610
883
py
Python
pytorch_ssd/args.py
piotlinski/ssd
169e14fb949f476626617364e5a540249addf75a
[ "MIT" ]
null
null
null
pytorch_ssd/args.py
piotlinski/ssd
169e14fb949f476626617364e5a540249addf75a
[ "MIT" ]
null
null
null
pytorch_ssd/args.py
piotlinski/ssd
169e14fb949f476626617364e5a540249addf75a
[ "MIT" ]
null
null
null
"""Argument parsing utils.""" from argparse import ArgumentTypeError from ast import literal_eval from typing import Any, Tuple, Union def str2bool(value: Union[str, bool]) -> bool: """Convert input string to boolean.""" if isinstance(value, bool): return value if value.lower() in ("yes", "true", ...
30.448276
58
0.631937
80671298e4ce38ef89be4ded0a458e72828bb239
7,964
py
Python
bin/icell8_stats.py
fls-bioinformatics-core/auto_process_ngs
1f07a08e14f118e6a61d3f37130515efc6049dd7
[ "AFL-3.0" ]
5
2017-01-31T21:37:09.000Z
2022-03-17T19:26:29.000Z
bin/icell8_stats.py
fls-bioinformatics-core/auto_process_ngs
1f07a08e14f118e6a61d3f37130515efc6049dd7
[ "AFL-3.0" ]
294
2015-08-14T09:00:30.000Z
2022-03-18T10:17:05.000Z
bin/icell8_stats.py
fls-bioinformatics-core/auto_process_ngs
1f07a08e14f118e6a61d3f37130515efc6049dd7
[ "AFL-3.0" ]
7
2017-11-23T07:52:21.000Z
2020-07-15T10:12:05.000Z
#!/usr/bin/env python # # icell8_stats.py: collects stats from fastqs from Wafergen iCell8 # Copyright (C) University of Manchester 2017 Peter Briggs # """ icell8_stats.py Utility to collect statistics across one or more FASTQ pairs from Wafergen iCell8. """ ###################################################...
38.105263
77
0.541185
c4f7c6cde4a2a5d414e5cd122caf8834480db4ca
6,089
py
Python
todo/commands/emojis.py
TwinDragon/JojoCogs
db94fba5656291250abd914e4f731e4ca284aca5
[ "MIT" ]
null
null
null
todo/commands/emojis.py
TwinDragon/JojoCogs
db94fba5656291250abd914e4f731e4ca284aca5
[ "MIT" ]
null
null
null
todo/commands/emojis.py
TwinDragon/JojoCogs
db94fba5656291250abd914e4f731e4ca284aca5
[ "MIT" ]
null
null
null
# Copyright (c) 2021 - Jojo#7791 # Licensed under MIT import asyncio from typing import Optional, Union import discord from emoji.unicode_codes import UNICODE_EMOJI_ENGLISH from redbot.core import commands from redbot.core.utils.predicates import ReactionPredicate from ..abc import TodoMixin __all__ = ["Emojis"] ...
42.284722
155
0.662999
49150ab19ead0f1ec196397ce3c831b16f67afbd
6,470
py
Python
ibis/backends/postgres/tests/test_udf.py
rtpsw/ibis
d7318fdf87121cd8fadbcf0369a2b217aab3053a
[ "Apache-2.0" ]
1
2022-03-22T10:39:37.000Z
2022-03-22T10:39:37.000Z
ibis/backends/postgres/tests/test_udf.py
marlenezw/ibis
14b9baf3e1021e8698e7f0ae3c0ae5747543431c
[ "Apache-2.0" ]
null
null
null
ibis/backends/postgres/tests/test_udf.py
marlenezw/ibis
14b9baf3e1021e8698e7f0ae3c0ae5747543431c
[ "Apache-2.0" ]
null
null
null
"""Test support for already-defined UDFs in Postgres""" import functools import pytest import ibis import ibis.expr.datatypes as dt pytest.importorskip("psycopg2") pytest.importorskip("sqlalchemy") from ibis.backends.postgres.udf import ( # noqa: E402 PostgresUDFError, existing_udf, udf, ) @pytest.f...
26.408163
79
0.661669
0ad80b1b28c0385451d527ef4826a77675f5f474
1,686
py
Python
mmdet/ops/sigmoid_focal_loss/sigmoid_focal_loss.py
peisuke/mmdetection
342bcf97b7a56a079832e15dbc468289c9cb3f4b
[ "Apache-2.0" ]
null
null
null
mmdet/ops/sigmoid_focal_loss/sigmoid_focal_loss.py
peisuke/mmdetection
342bcf97b7a56a079832e15dbc468289c9cb3f4b
[ "Apache-2.0" ]
null
null
null
mmdet/ops/sigmoid_focal_loss/sigmoid_focal_loss.py
peisuke/mmdetection
342bcf97b7a56a079832e15dbc468289c9cb3f4b
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn from torch.autograd import Function from torch.autograd.function import once_differentiable import mmdet if not mmdet.version.CPU_ONLY: from . import sigmoid_focal_loss_cuda class SigmoidFocalLossFunction(Function): @staticmethod def forward(ctx, input, target, gamma=2.0, alpha=0....
29.068966
77
0.636418
898fbc92cbd215e476f58d12430de2ce061f8bc3
15,599
py
Python
pytorch_lightning/trainer/data_loading.py
GimmickNG/pytorch-lightning
b36c5e86d014671b0fa922d750b27420bc73b6f9
[ "Apache-2.0" ]
1
2021-03-10T20:13:50.000Z
2021-03-10T20:13:50.000Z
pytorch_lightning/trainer/data_loading.py
GimmickNG/pytorch-lightning
b36c5e86d014671b0fa922d750b27420bc73b6f9
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/trainer/data_loading.py
GimmickNG/pytorch-lightning
b36c5e86d014671b0fa922d750b27420bc73b6f9
[ "Apache-2.0" ]
1
2020-09-11T22:53:18.000Z
2020-09-11T22:53:18.000Z
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
43.940845
116
0.646516
aa4021376d75be1ba1c77b36b6b1a1e0db651219
12,187
py
Python
holoviews/tests/plotting/bokeh/testbarplot.py
cocoaaa/holoviews
bb3dc4975c2604f38d141ccad1c931ed5d9b1322
[ "BSD-3-Clause" ]
null
null
null
holoviews/tests/plotting/bokeh/testbarplot.py
cocoaaa/holoviews
bb3dc4975c2604f38d141ccad1c931ed5d9b1322
[ "BSD-3-Clause" ]
null
null
null
holoviews/tests/plotting/bokeh/testbarplot.py
cocoaaa/holoviews
bb3dc4975c2604f38d141ccad1c931ed5d9b1322
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from holoviews.core.overlay import NdOverlay from holoviews.element import Bars from bokeh.models import CategoricalColorMapper, LinearColorMapper from ..utils import ParamLogStream from .testplot import TestBokehPlot, bokeh_renderer class TestBarPlot(TestBokehPlot): def test_bars_hover_ens...
47.054054
137
0.575531
08c453399ac8ae12f9ff2867b84b624f818d12a8
1,583
py
Python
db.py
tarnowski-git/hardware_parts_manager
e8dbfec0dfbf643f4ba97db88c53ee61b9b7b53b
[ "MIT" ]
1
2022-03-14T21:14:04.000Z
2022-03-14T21:14:04.000Z
db.py
tarnowski-git/hardware_parts_manager
e8dbfec0dfbf643f4ba97db88c53ee61b9b7b53b
[ "MIT" ]
null
null
null
db.py
tarnowski-git/hardware_parts_manager
e8dbfec0dfbf643f4ba97db88c53ee61b9b7b53b
[ "MIT" ]
null
null
null
import sqlite3 class Database: def __init__(self, db): self.conn = sqlite3.connect(db) self.cur = self.conn.cursor() self.cur.execute( "CREATE TABLE IF NOT EXISTS parts (id INTEGER PRIMARY KEY, part text, customer text, retailer text, price text)") self.conn.commit() ...
36.813953
125
0.595073
8ed93fdfe17e4094620897285f1f6df4d1e77fa6
4,293
py
Python
misc/src/guid_c/system.py
hivesolutions/colony_plugins
cfd8fb2ac58037e01002966704b8a642feb37895
[ "Apache-1.1" ]
1
2016-10-30T09:51:06.000Z
2016-10-30T09:51:06.000Z
misc/src/guid_c/system.py
hivesolutions/colony_plugins
cfd8fb2ac58037e01002966704b8a642feb37895
[ "Apache-1.1" ]
1
2015-12-29T18:51:07.000Z
2015-12-29T18:51:07.000Z
misc/src/guid_c/system.py
hivesolutions/colony_plugins
cfd8fb2ac58037e01002966704b8a642feb37895
[ "Apache-1.1" ]
1
2018-01-26T12:54:13.000Z
2018-01-26T12:54:13.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Colony Framework # Copyright (c) 2008-2020 Hive Solutions Lda. # # This file is part of Hive Colony Framework. # # Hive Colony Framework is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apach...
33.539063
106
0.607501
a102f247b4dd87832de9e512a65f627b183492a3
3,110
py
Python
website/website/settings.py
chrazbee/DataMole
cae54785c58409f8bc2c9df236bd51239504f0c2
[ "BSD-2-Clause" ]
null
null
null
website/website/settings.py
chrazbee/DataMole
cae54785c58409f8bc2c9df236bd51239504f0c2
[ "BSD-2-Clause" ]
null
null
null
website/website/settings.py
chrazbee/DataMole
cae54785c58409f8bc2c9df236bd51239504f0c2
[ "BSD-2-Clause" ]
1
2018-03-16T14:46:57.000Z
2018-03-16T14:46:57.000Z
""" Django settings for website project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
25.491803
91
0.69582
ac69fe90296b56a4571e02cfe9e4a45d22d3f520
353
py
Python
X on graph paper.py
yoursamlan/FunWithTurtle
b4376c45e04bb3af9eaf50fa1bcda5baacd3d00f
[ "MIT" ]
1
2019-07-08T11:47:57.000Z
2019-07-08T11:47:57.000Z
X on graph paper.py
yoursamlan/FunWithTurtle
b4376c45e04bb3af9eaf50fa1bcda5baacd3d00f
[ "MIT" ]
null
null
null
X on graph paper.py
yoursamlan/FunWithTurtle
b4376c45e04bb3af9eaf50fa1bcda5baacd3d00f
[ "MIT" ]
1
2020-03-31T06:40:42.000Z
2020-03-31T06:40:42.000Z
#It's the funniest way to draw X on a graph paper import turtle from turtle import * for i in range (20,500,10): turtle.forward(int(i)) turtle.right(90) for j in range (20,100,10): turtle.forward(int(i-j)) turtle.right(90) for k in range (20,50,50): turtle.forward(int(i+...
25.214286
49
0.594901
93f07762bf16411b9b54a5f8b9aeb5d06883fde3
110
py
Python
test_suite/suite/test09/test.py
joncatanio/cannoli
410f6bea362bf9e33eecc0e01fb080dadd14ef23
[ "MIT" ]
755
2017-12-09T05:34:43.000Z
2022-03-26T09:15:56.000Z
test_suite/suite/test09/test.py
joncatanio/cannoli
410f6bea362bf9e33eecc0e01fb080dadd14ef23
[ "MIT" ]
8
2017-12-12T01:03:18.000Z
2020-06-29T01:41:03.000Z
test_suite/suite/test09/test.py
joncatanio/cannoli
410f6bea362bf9e33eecc0e01fb080dadd14ef23
[ "MIT" ]
23
2018-05-17T17:48:23.000Z
2022-03-26T09:15:57.000Z
import some_mod, other_mod some_mod.func() other_mod.functione(5) a = some_mod.some_class() a.print_self()
12.222222
26
0.763636
56eebe15f4e5e0bca5c782cafc43c500663d8afa
16,706
py
Python
mne/utils/_logging.py
0reza/mne-python
da02a256423404a81929d6de278bc63d3192a280
[ "BSD-3-Clause" ]
null
null
null
mne/utils/_logging.py
0reza/mne-python
da02a256423404a81929d6de278bc63d3192a280
[ "BSD-3-Clause" ]
null
null
null
mne/utils/_logging.py
0reza/mne-python
da02a256423404a81929d6de278bc63d3192a280
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Some utility functions.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # # License: BSD-3-Clause import contextlib from decorator import FunctionMaker import importlib import inspect from io import StringIO import re import sys import logging import os.path as op import warni...
34.233607
86
0.626302
33e9d81423e8b3488419c35984c414eb5317c46a
5,042
py
Python
beans/beans_bill/apps/expense/views.py
tjhlp/beans_code
d9b5eceddfd2c0028875001d7d53fd3fd222edf9
[ "MIT" ]
null
null
null
beans/beans_bill/apps/expense/views.py
tjhlp/beans_code
d9b5eceddfd2c0028875001d7d53fd3fd222edf9
[ "MIT" ]
4
2021-06-08T22:00:26.000Z
2022-03-12T00:40:05.000Z
beans/beans_bill/apps/expense/views.py
tjhlp/beans_code
d9b5eceddfd2c0028875001d7d53fd3fd222edf9
[ "MIT" ]
null
null
null
from django.views import View import datetime from expense.models import * from bill.models import BillInfo from beans_bill.utils.response_code import * from beans_bill.utils.comm_utils import * class ExpenseListView(View): """ 显示账户下所有消费记录""" def post(self, request): params = {'user_id': (1, str), 'b...
34.772414
117
0.608092
e50dda574001aa520706ebc14135a8092b12f5b2
903
py
Python
src/deploy/osp_deployer/dateloghandler.py
kamlesh6808/JetPack
54871b307cc7385939dd89f9bb5e9ed9bb3036fe
[ "Apache-2.0" ]
31
2017-11-14T02:21:18.000Z
2022-02-16T07:28:54.000Z
src/deploy/osp_deployer/dateloghandler.py
kamlesh6808/JetPack
54871b307cc7385939dd89f9bb5e9ed9bb3036fe
[ "Apache-2.0" ]
324
2018-01-10T16:52:25.000Z
2021-09-23T19:02:50.000Z
src/deploy/osp_deployer/dateloghandler.py
kamlesh6808/JetPack
54871b307cc7385939dd89f9bb5e9ed9bb3036fe
[ "Apache-2.0" ]
215
2017-11-01T15:50:16.000Z
2022-02-16T07:28:56.000Z
# Copyright (c) 2015-2021 Dell Inc. or its subsidiaries. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
34.730769
75
0.728682
63d412a3830715cd308ecb531bfdd9066e79132d
544
py
Python
heltour/tournament/migrations/0149_auto_20170307_1700.py
zbidwell/heltour
3895142695096a81cc65c3fefb7d4501ed796f46
[ "MIT" ]
41
2016-08-17T19:58:42.000Z
2021-11-08T10:52:07.000Z
heltour/tournament/migrations/0149_auto_20170307_1700.py
zbidwell/heltour
3895142695096a81cc65c3fefb7d4501ed796f46
[ "MIT" ]
257
2016-08-17T22:29:05.000Z
2022-01-13T00:42:05.000Z
heltour/tournament/migrations/0149_auto_20170307_1700.py
zbidwell/heltour
3895142695096a81cc65c3fefb7d4501ed796f46
[ "MIT" ]
31
2016-09-23T23:36:14.000Z
2022-01-14T17:05:08.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-03-07 17:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tournament', '0148_player_timezone_offset'), ] operations = [ migrations.AlterField( model_name='player...
25.904762
168
0.599265
16572a15be349542b56030cf6704034960edb6c1
927
py
Python
models.py
realityone/ApnManger
696d1eb945a29c5f8cd70004fc55e5ca37e1165a
[ "MIT" ]
3
2015-07-29T12:05:49.000Z
2015-10-09T07:35:23.000Z
models.py
realityone/ApnManger
696d1eb945a29c5f8cd70004fc55e5ca37e1165a
[ "MIT" ]
null
null
null
models.py
realityone/ApnManger
696d1eb945a29c5f8cd70004fc55e5ca37e1165a
[ "MIT" ]
null
null
null
from uuid import uuid4 from base64 import b64encode class ApnProxyConfig(object): description = 'Custom Apn Proxy Profile' organization = 'Realityone' def __init__(self, proxy_ip, port, name='Apn Proxy Config', username=None, password=None): self.name = name self.proxy_ip = proxy_ip ...
23.769231
94
0.640777
b1853774f8a6d9f149843126199dd2b1612e53b0
1,154
py
Python
src/CryptoPlus/Hash/python_SHA512.py
voytecPL/pycryptoplus
86905bbb8661e00cfb2afdc4461d4a79b6429d8a
[ "MIT" ]
1
2022-02-27T17:46:18.000Z
2022-02-27T17:46:18.000Z
src/CryptoPlus/Hash/python_SHA512.py
voytecPL/pycryptoplus
86905bbb8661e00cfb2afdc4461d4a79b6429d8a
[ "MIT" ]
null
null
null
src/CryptoPlus/Hash/python_SHA512.py
voytecPL/pycryptoplus
86905bbb8661e00cfb2afdc4461d4a79b6429d8a
[ "MIT" ]
null
null
null
from .pysha512 import sha512 __all__ = ['new','digest_size'] def new(data=None): """Create a new pure python SHA-512 hash object data = initial input (raw string) to the hashing object if present, the method call update(arg) is made EXAMPLE: FIPS 180-2 ...
37.225806
138
0.667244
9365c2f3f881a98000b9f5ce774491ebb8be1336
4,953
py
Python
huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v1/model/image_detection_result_body.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v1/model/image_detection_result_body.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v1/model/image_detection_result_body.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class ImageDetectionResultBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the...
30.386503
212
0.617605
5a659059a6176edea06696098e694f4b071736eb
520
py
Python
dataloader_test.py
DocyNoah/Visualizing-CNNs-for-monocular-depth-estimation
38f10bee89c31379c399834e89905b5d39c31764
[ "MIT" ]
null
null
null
dataloader_test.py
DocyNoah/Visualizing-CNNs-for-monocular-depth-estimation
38f10bee89c31379c399834e89905b5d39c31764
[ "MIT" ]
null
null
null
dataloader_test.py
DocyNoah/Visualizing-CNNs-for-monocular-depth-estimation
38f10bee89c31379c399834e89905b5d39c31764
[ "MIT" ]
null
null
null
import loaddata import torch from PIL import Image import numpy as np def main(): batch_size = 8 train_loader = loaddata.getTrainingData(batch_size) for i, sample_batched in enumerate(train_loader): image, depth_ = sample_batched['image'], sample_batched['depth'] for j in range(batch_siz...
22.608696
72
0.646154
76e9d0e82dabebbba90d8afb2b24b7fb2d8e4a06
668
py
Python
exercicios-turtle/.history/firstinterface_20210627212745.py
Aleff13/poo-ufsc
bc1574df26f840a3c0fd5b1e0c72e5d69f61493d
[ "MIT" ]
1
2021-11-28T18:49:21.000Z
2021-11-28T18:49:21.000Z
exercicios-turtle/.history/firstinterface_20210627212745.py
Aleff13/poo-ufsc
bc1574df26f840a3c0fd5b1e0c72e5d69f61493d
[ "MIT" ]
null
null
null
exercicios-turtle/.history/firstinterface_20210627212745.py
Aleff13/poo-ufsc
bc1574df26f840a3c0fd5b1e0c72e5d69f61493d
[ "MIT" ]
null
null
null
import tkinter #main frame root = tkinter.Tk() root.geometry('400x400+3200+100') root.wm_title('Anotações') #list box #frame commentsFrame = tkinter.LabelFrame(root, text='Anotações') commentsFrame.place(relwidth=1, relheight=0.5) commentsList = tkinter.Listbox(commentsFrame) commentsList.place(relwidth=1, relheigh...
23.857143
74
0.788922
e0ca91e280cd0e65f3c64296acbc0d32bc2389be
3,675
py
Python
kunquat/tracker/ui/model/column.py
cyberixae/kunquat
06ae72b2c1519686cc510ce887d9d45a5c3fa3a3
[ "CC0-1.0" ]
null
null
null
kunquat/tracker/ui/model/column.py
cyberixae/kunquat
06ae72b2c1519686cc510ce887d9d45a5c3fa3a3
[ "CC0-1.0" ]
null
null
null
kunquat/tracker/ui/model/column.py
cyberixae/kunquat
06ae72b2c1519686cc510ce887d9d45a5c3fa3a3
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Author: Tomi Jylhä-Ollila, Finland 2014 # # This file is part of Kunquat. # # CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/ # # To the extent possible under law, Kunquat Affirmers have waived all # copyright and related or neighboring rights to Kunquat. # from trigge...
30.122951
77
0.633197
5048a0b75136e08b8f643b8f9017972c139a9b08
28,491
py
Python
owslib/util.py
mtauban/OWSLib
0b64e7a8f7eb9e1fca369716f9803821066bf0f3
[ "BSD-3-Clause" ]
null
null
null
owslib/util.py
mtauban/OWSLib
0b64e7a8f7eb9e1fca369716f9803821066bf0f3
[ "BSD-3-Clause" ]
null
null
null
owslib/util.py
mtauban/OWSLib
0b64e7a8f7eb9e1fca369716f9803821066bf0f3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: ISO-8859-15 -*- # ============================================================================= # Copyright (c) 2008 Tom Kralidis # # Authors : Tom Kralidis <tomkralidis@gmail.com> # # Contact email: tomkralidis@gmail.com # ============================================================================= imp...
29.493789
141
0.609034
4e0a39dc1ec7bc3a6ba8d908a09df47af61c9fe8
19,925
py
Python
tests/test_completion_engine.py
zzl0/litecli
cd5d4e0cf9164a147c0c59f6f559347c851db5d6
[ "BSD-3-Clause" ]
null
null
null
tests/test_completion_engine.py
zzl0/litecli
cd5d4e0cf9164a147c0c59f6f559347c851db5d6
[ "BSD-3-Clause" ]
null
null
null
tests/test_completion_engine.py
zzl0/litecli
cd5d4e0cf9164a147c0c59f6f559347c851db5d6
[ "BSD-3-Clause" ]
null
null
null
from litecli.packages.completion_engine import suggest_type import pytest def sorted_dicts(dicts): """input is a list of dicts.""" return sorted(tuple(x.items()) for x in dicts) def test_select_suggests_cols_with_visible_table_scope(): suggestions = suggest_type("SELECT FROM tabl", "SELECT ") asser...
30.795981
86
0.558745
777f29dc80ea5426553dbbbc35d4f566e2034938
666
py
Python
FamilyFood/manage.py
ZST-Devs/HomeFood
337edef7d6d567b1c0c6e4699d7b8c8ee4d91397
[ "MIT" ]
2
2022-01-15T16:58:40.000Z
2022-03-11T09:42:59.000Z
FamilyFood/manage.py
ZST-Devs/HomeFood
337edef7d6d567b1c0c6e4699d7b8c8ee4d91397
[ "MIT" ]
null
null
null
FamilyFood/manage.py
ZST-Devs/HomeFood
337edef7d6d567b1c0c6e4699d7b8c8ee4d91397
[ "MIT" ]
1
2022-01-08T17:06:37.000Z
2022-01-08T17:06:37.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'FamilyFood.settings') try: from django.core.management import execute_from_command_line except I...
28.956522
74
0.68018
2b2b73abde818c180d4d00fdce84088a3a251c19
1,626
py
Python
book_figures/chapter3/fig_prob_sum.py
StKyr/astroML_figures
45e9748335e0cd854d09319dff0e43ecd70e7b61
[ "BSD-2-Clause" ]
6
2019-08-31T16:43:43.000Z
2021-07-10T06:06:20.000Z
book_figures/chapter3/fig_prob_sum.py
StKyr/astroML_figures
45e9748335e0cd854d09319dff0e43ecd70e7b61
[ "BSD-2-Clause" ]
34
2018-09-10T22:35:07.000Z
2022-02-08T21:17:39.000Z
book_figures/chapter3/fig_prob_sum.py
StKyr/astroML_figures
45e9748335e0cd854d09319dff0e43ecd70e7b61
[ "BSD-2-Clause" ]
10
2017-06-22T09:21:19.000Z
2020-01-26T03:54:26.000Z
""" Sum of Probabilities -------------------- Figure 3.1. A representation of the sum of probabilities shown in eq.3.1. """ # Author: Jake VanderPlas # License: BSD # The figure produced by this code is published in the textbook # "Statistics, Data Mining, and Machine Learning in Astronomy" (2013) # For more inf...
36.133333
79
0.646986
c269af34f1630bf1627c9328617254269bbda3ae
2,804
py
Python
day21/day21.py
r0mi/aoc2018
6a0db3b4fc6f5417a9e86fd7fe0d6aa5348a1dd5
[ "MIT" ]
null
null
null
day21/day21.py
r0mi/aoc2018
6a0db3b4fc6f5417a9e86fd7fe0d6aa5348a1dd5
[ "MIT" ]
null
null
null
day21/day21.py
r0mi/aoc2018
6a0db3b4fc6f5417a9e86fd7fe0d6aa5348a1dd5
[ "MIT" ]
null
null
null
# Let the 6 register be called A B ip C D E # 0 seti 123 0 3 # C = 123 # 1 bani 3 456 3 # C &= 456 | C = 72 # 2 eqri 3 72 3 # C = (C == 72) | C = 1 # 3 addr 3 2 2 # ip += C | ip = 4 | GOTO 5 # 4 seti 0 0 2 # ip = 0 | GOTO 1 # 5 seti 0 6 3 ...
26.205607
111
0.455777
94949c429c34c6c519881a3fb8f8800aa2845337
1,405
py
Python
handbrakecloud/tests/base.py
mtreinish/handbrakecloud
3a3319db57ab78db81051cc75eb59ec65c6bb130
[ "Apache-2.0" ]
null
null
null
handbrakecloud/tests/base.py
mtreinish/handbrakecloud
3a3319db57ab78db81051cc75eb59ec65c6bb130
[ "Apache-2.0" ]
null
null
null
handbrakecloud/tests/base.py
mtreinish/handbrakecloud
3a3319db57ab78db81051cc75eb59ec65c6bb130
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
39.027778
76
0.668327
9fa697eb048cee032422896ac5fe2fce245a2699
31,721
py
Python
src/C_WGAN_ResBlock/result_collect.py
chychen/nba_scrip_generation
942df59cc0426aa30b54a0e09c0f646aa8fd4f18
[ "MIT" ]
1
2020-07-09T09:00:09.000Z
2020-07-09T09:00:09.000Z
src/C_WGAN_ResBlock/result_collect.py
chychen/bball_defensive_strategies_generation
942df59cc0426aa30b54a0e09c0f646aa8fd4f18
[ "MIT" ]
null
null
null
src/C_WGAN_ResBlock/result_collect.py
chychen/bball_defensive_strategies_generation
942df59cc0426aa30b54a0e09c0f646aa8fd4f18
[ "MIT" ]
null
null
null
""" data url: http://140.113.210.14:6006/NBA/data/F2.npy data description: event by envet, with 300 sequence for each. (about 75 seconds) """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time import shutil import json import numpy as ...
40.667949
165
0.635699
afe878b466efbc34e82fa3d3e7cf5198e2100044
582
py
Python
webarm/widgets/migrations/0001_initial.py
AlexGolovaschenko/WebArm
1019b73b1ad5560a626261bbce05137c01edcee5
[ "MIT" ]
null
null
null
webarm/widgets/migrations/0001_initial.py
AlexGolovaschenko/WebArm
1019b73b1ad5560a626261bbce05137c01edcee5
[ "MIT" ]
null
null
null
webarm/widgets/migrations/0001_initial.py
AlexGolovaschenko/WebArm
1019b73b1ad5560a626261bbce05137c01edcee5
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2021-01-15 15:13 from django.db import migrations, models import widgets.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='WidgetsTemplate', fields=[ ...
25.304348
124
0.62543
d162a9563fa66f037abe34273116821a38b834e6
8,725
py
Python
test/python/pulse/test_commands.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
3
2019-05-19T17:39:38.000Z
2020-01-28T19:59:18.000Z
test/python/pulse/test_commands.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
4
2019-05-13T15:28:46.000Z
2019-12-19T20:47:02.000Z
test/python/pulse/test_commands.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
1
2021-07-07T16:55:41.000Z
2021-07-07T16:55:41.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
35.040161
95
0.660401
f27edec3d9c03ba9762557f1c859baf59238f330
883
py
Python
idem_lxd/exec/lxd/snapshots.py
UtahDave/idem-lxd
8a0bbe3b3800b8fd1b616be47eb421676af366ec
[ "Apache-2.0" ]
null
null
null
idem_lxd/exec/lxd/snapshots.py
UtahDave/idem-lxd
8a0bbe3b3800b8fd1b616be47eb421676af366ec
[ "Apache-2.0" ]
null
null
null
idem_lxd/exec/lxd/snapshots.py
UtahDave/idem-lxd
8a0bbe3b3800b8fd1b616be47eb421676af366ec
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Manage LXD container snapshots """ __func_alias__ = {"list_": "list"} async def list_(hub, ctx, name: str): """ List all snapshots for a container CLI Example: .. code-block:: bash idem exec lxd.snapshots.list container01 """ ret = [] container = awai...
22.641026
83
0.616082
4f2ba8c7909893332c88d54e37f48148d37bd04f
5,156
py
Python
pyclue/features/cohort.py
linewalks/py-clue
ecea2a37d88387d909fc283fdbc145bc5a1187a8
[ "MIT" ]
null
null
null
pyclue/features/cohort.py
linewalks/py-clue
ecea2a37d88387d909fc283fdbc145bc5a1187a8
[ "MIT" ]
11
2022-01-13T09:30:03.000Z
2022-03-14T01:10:08.000Z
pyclue/features/cohort.py
linewalks/py-clue
ecea2a37d88387d909fc283fdbc145bc5a1187a8
[ "MIT" ]
null
null
null
from typing import List, Dict from clue_pb2 import ( RequestCohortList, RequestCohortStream ) from pyclue.converter import convert from pyclue.stream import Stream class CohortFeatures: @convert() def get_cohort_list( self, page: int = 1, length: int = 0, term: str = "" ) -> Lis...
22.814159
76
0.647789
27e617adde694585cdf9e2a4f6939a26e034c716
6,990
py
Python
experiments/ashvin/corl2019/pcvae/pointmass/dynamics_cvae.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/ashvin/corl2019/pcvae/pointmass/dynamics_cvae.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/ashvin/corl2019/pcvae/pointmass/dynamics_cvae.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
import railrl.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in from railrl.launchers.launcher_util import run_experiment from railrl.torch.grill.launche...
37.379679
122
0.587268
a191ad89da95b1d5bbd52e22f90c33686df631ef
20,444
py
Python
airflow/providers/google/cloud/example_dags/example_vision.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
airflow/providers/google/cloud/example_dags/example_vision.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
airflow/providers/google/cloud/example_dags/example_vision.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.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...
40.96994
110
0.756457
39fa1aa74d1bd6c6989479ff347d8b5feb3b5d75
4,025
py
Python
social_core/backends/github.py
kim-sojeong/social-core
0ce1fa4fbb4bbda4af30482c9484450103aa3922
[ "BSD-3-Clause" ]
3
2020-10-03T14:37:40.000Z
2021-03-28T17:21:44.000Z
social_core/backends/github.py
kim-sojeong/social-core
0ce1fa4fbb4bbda4af30482c9484450103aa3922
[ "BSD-3-Clause" ]
13
2020-03-24T17:53:51.000Z
2022-02-10T20:01:14.000Z
social_core/backends/github.py
kim-sojeong/social-core
0ce1fa4fbb4bbda4af30482c9484450103aa3922
[ "BSD-3-Clause" ]
2
2019-09-17T12:47:49.000Z
2019-09-17T12:47:56.000Z
""" Github OAuth2 backend, docs at: https://python-social-auth.readthedocs.io/en/latest/backends/github.html """ from requests import HTTPError from six.moves.urllib.parse import urljoin from .oauth import BaseOAuth2 from ..exceptions import AuthFailed class GithubOAuth2(BaseOAuth2): """Github OAuth authent...
32.723577
76
0.580124
9629c8a3eb13dfef193097a562b2305f5033f825
518
py
Python
00_Original/35_Debugging_und_Qualitaetssicherung/Analyse_des_Laufzeitverhaltens/beispiel_Tracing.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
00_Original/35_Debugging_und_Qualitaetssicherung/Analyse_des_Laufzeitverhaltens/beispiel_Tracing.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
00_Original/35_Debugging_und_Qualitaetssicherung/Analyse_des_Laufzeitverhaltens/beispiel_Tracing.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import math import trace import sys def programm(): for i in range(100): i**2 for j in range(100): math.sqrt(j) for k in range(100): math.log(k+1) tracer = trace.Trace(ignoredirs = [sys.prefix, sys.exec_prefix],...
23.545455
75
0.642857
fc8e742db99aff6d2def1d3be59cf89186f7d0ba
2,763
py
Python
mail_pusher/utils.py
qq20004604/Mail-Report-System
59d2390431251d8ffd0435cab510a37900f2dc17
[ "Apache-2.0" ]
1
2020-07-29T08:54:46.000Z
2020-07-29T08:54:46.000Z
mail_pusher/utils.py
qq20004604/Mail-Report-System
59d2390431251d8ffd0435cab510a37900f2dc17
[ "Apache-2.0" ]
6
2021-03-19T10:24:43.000Z
2021-09-22T19:30:43.000Z
mail_pusher/utils.py
qq20004604/Mail-Report-System
59d2390431251d8ffd0435cab510a37900f2dc17
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from django.utils import timezone from .models import RegVerifyMailModel, REG_EXPIRE_TIME from package import mail_client # 检查该用户当前是否可以推送验证码邮件 def can_send_regcode_email(email, ip): # 验证规则: # 1. 3 分钟内 1 封; # 2. 1 小时内 5 封; # 3. 24 小时 10 封; # 邮箱地址 和 ip ...
34.974684
98
0.5827