hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
1c389742a4897a973a09502694d1595d5bc5011e
1,727
py
Python
pyobjc_framework_Quartz-3.3a0-py3.6-macosx-10.13-x86_64.egg/Quartz/__init__.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
4
2019-03-11T18:05:49.000Z
2021-05-22T21:09:09.000Z
pyobjc_framework_Quartz-3.3a0-py3.6-macosx-10.13-x86_64.egg/Quartz/__init__.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
pyobjc_framework_Quartz-3.3a0-py3.6-macosx-10.13-x86_64.egg/Quartz/__init__.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2019-03-18T18:53:36.000Z
2019-03-18T18:53:36.000Z
""" Helper module that makes it easier to import all of Quartz """ import sys import objc import Foundation import AppKit def _load(): submods = [] sys.modules['Quartz'] = mod = objc.ObjCLazyModule('Quartz', None, None, {}, None, { '__doc__': __doc__, 'objc': objc, ...
20.559524
64
0.557035
import sys import objc import Foundation import AppKit def _load(): submods = [] sys.modules['Quartz'] = mod = objc.ObjCLazyModule('Quartz', None, None, {}, None, { '__doc__': __doc__, 'objc': objc, '__path__': __path__, '__loader__': ...
true
true
1c38977b569e372892bc6e1bb21a826b7739d05d
2,373
py
Python
example/custom_log_format.py
hoangvx/json-logging-python
6c43871fce2659de88827a1f8b690be80e55c328
[ "Apache-2.0" ]
null
null
null
example/custom_log_format.py
hoangvx/json-logging-python
6c43871fce2659de88827a1f8b690be80e55c328
[ "Apache-2.0" ]
null
null
null
example/custom_log_format.py
hoangvx/json-logging-python
6c43871fce2659de88827a1f8b690be80e55c328
[ "Apache-2.0" ]
null
null
null
# This example shows how the logger can be set up to use a custom JSON format. import logging import json import traceback from datetime import datetime import copy import json_logging import sys json_logging.ENABLE_JSON_LOGGING = True def extra(**kw): '''Add the required nested props layer''' return {'extra...
31.64
87
0.653182
import logging import json import traceback from datetime import datetime import copy import json_logging import sys json_logging.ENABLE_JSON_LOGGING = True def extra(**kw): return {'extra': {'props': kw}} class CustomJSONLog(logging.Formatter): python_log_prefix = 'python.' def get_exc_fields(self, r...
true
true
1c389798083410ad4a61a2080241e05412c16cb9
6,038
py
Python
hubspot/crm/quotes/api/search_api.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
117
2020-04-06T08:22:53.000Z
2022-03-18T03:41:29.000Z
hubspot/crm/quotes/api/search_api.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
62
2020-04-06T16:21:06.000Z
2022-03-17T16:50:44.000Z
hubspot/crm/quotes/api/search_api.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
45
2020-04-06T16:13:52.000Z
2022-03-30T21:33:17.000Z
# coding: utf-8 """ Quotes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F40...
43.753623
199
0.649884
from __future__ import absolute_import import re import six from hubspot.crm.quotes.api_client import ApiClient from hubspot.crm.quotes.exceptions import ApiTypeError, ApiValueError class SearchApi(object): def __init__(self, api_client=None): if api_client is None: api_client = A...
true
true
1c3897f1c9439d5c963e8334e6f36bff19799a70
2,234
py
Python
alpafa/cli.py
timothybazalgette/alpafa
b11486719ff9b411ca4a405685302ab3f1155702
[ "MIT" ]
3
2017-07-14T15:10:34.000Z
2018-10-01T03:28:15.000Z
alpafa/cli.py
timothybazalgette/alpafa
b11486719ff9b411ca4a405685302ab3f1155702
[ "MIT" ]
null
null
null
alpafa/cli.py
timothybazalgette/alpafa
b11486719ff9b411ca4a405685302ab3f1155702
[ "MIT" ]
null
null
null
'''Defines the command line interface for ALPALFA.''' import argparse from .alpafa import Lexicon from .parse import parse_file, ParserError def set_args(): '''Sets command line parameters, and runs ALPAFA.''' parser = argparse.ArgumentParser(prog='alpafa', description='A...
40.618182
100
0.628021
import argparse from .alpafa import Lexicon from .parse import parse_file, ParserError def set_args(): parser = argparse.ArgumentParser(prog='alpafa', description='Applies the algorithm from AAFP to a correctly \ formatted input file.') ...
true
true
1c38982d038dc6812349ad9b132b32e7a77b8f6d
216
py
Python
backend/utils/basefilters.py
zerlee/open-cmdb
e05eeab70bf2c2e14603597bf99c45b6c3330d1e
[ "BSD-3-Clause" ]
126
2019-09-17T17:49:35.000Z
2022-03-31T13:34:35.000Z
backend/utils/basefilters.py
tom2jack/open-cmdb
68bc028d5d6162dbfa724d7bbf17363f65e44557
[ "BSD-3-Clause" ]
5
2020-01-19T08:43:38.000Z
2021-06-10T21:58:30.000Z
backend/utils/basefilters.py
tom2jack/open-cmdb
68bc028d5d6162dbfa724d7bbf17363f65e44557
[ "BSD-3-Clause" ]
52
2019-09-20T06:10:32.000Z
2022-03-31T13:34:28.000Z
# -*- coding: utf-8 -*- import django_filters class BaseFilter(django_filters.FilterSet): sort = django_filters.OrderingFilter(fields=('create_time',)) class Meta: model = None fields = {}
19.636364
65
0.652778
import django_filters class BaseFilter(django_filters.FilterSet): sort = django_filters.OrderingFilter(fields=('create_time',)) class Meta: model = None fields = {}
true
true
1c389af6bf03ce9aac0253b5095c78e8a33575ef
1,676
py
Python
out/pulp/pulp_python/.github_workflows_scripts_stage-changelog-for-master.py
heyjoakim/munaiah-analyser
d76056cecd3b7f4a6cd72d7fd526cea18aa671d6
[ "MIT" ]
1
2022-01-03T17:47:20.000Z
2022-01-03T17:47:20.000Z
out/pulp/pulp_python/.github_workflows_scripts_stage-changelog-for-master.py
heyjoakim/munaiah-analyser
d76056cecd3b7f4a6cd72d7fd526cea18aa671d6
[ "MIT" ]
null
null
null
out/pulp/pulp_python/.github_workflows_scripts_stage-changelog-for-master.py
heyjoakim/munaiah-analyser
d76056cecd3b7f4a6cd72d7fd526cea18aa671d6
[ "MIT" ]
1
2021-12-22T13:59:34.000Z
2021-12-22T13:59:34.000Z
# WARNING: DO NOT EDIT! # # This file was generated by plugin_template, and is managed by it. Please use # './plugin-template --github pulp_python' to update this file. # # For more info visit https://github.com/pulp/plugin_template import argparse import os import textwrap from git import Repo from git.exc import Gi...
25.784615
99
0.727924
import argparse import os import textwrap from git import Repo from git.exc import GitCommandError helper = textwrap.dedent( """\ Stage the changelog for a release on master branch. Example: $ python .github/workflows/scripts/stage-changelog-for-master.py 3.4.0 """ ) par...
true
true
1c389b5482796705317428a5d0aa5e4bd8337454
5,522
py
Python
tests/ui/__init__.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
5
2016-05-12T08:48:41.000Z
2018-07-17T00:48:32.000Z
tests/ui/__init__.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
1
2022-01-16T12:18:50.000Z
2022-01-16T12:18:50.000Z
tests/ui/__init__.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
31.022472
92
0.693589
import unittest import threading import Queue import ui import time import gc import traceback from util.logging import * from util.message_loop import * UI_THREAD_TIMEOUT = 10 class UIThreadException(Exception): def __init__(self,exc,msg): self._inner_exception = exc self._message = msg ...
false
true
1c389b6847ff9e816da0201b051797f00f747eee
3,547
py
Python
config.py
0xN1nja/Instagram-DM-Bot
70ec33c3e64635bc5f9c20b841a6c6fe8bdb66b3
[ "MIT" ]
1
2022-02-12T12:00:41.000Z
2022-02-12T12:00:41.000Z
config.py
N1nja0p/Instagram-DM-Bot
70ec33c3e64635bc5f9c20b841a6c6fe8bdb66b3
[ "MIT" ]
null
null
null
config.py
N1nja0p/Instagram-DM-Bot
70ec33c3e64635bc5f9c20b841a6c6fe8bdb66b3
[ "MIT" ]
null
null
null
# Run This Script Before Running bot.py import getpass import re import os # Constants WELCOME_MESSAGE = ''' ### # # # #### ##### ## #### ##### ## # # # ## # # # # # # # # # # # ## ## # # # # #### # # # # # # # ...
28.837398
118
0.540175
import getpass import re import os WELCOME_MESSAGE = ''' ### # # # #### ##### ## #### ##### ## # # # ## # # # # # # # # # # # ## ## # # # # #### # # # # # # # # # ## # # # # # # # #####...
true
true
1c389b74884a98f17aa63cfe4af08f81c6037768
11,506
py
Python
pysteps/utils/transformation.py
tjniemi/pysteps
76324d8f315f63c6723887f4c99d155749a31e83
[ "BSD-3-Clause" ]
285
2018-07-11T10:42:43.000Z
2022-03-23T13:44:54.000Z
pysteps/utils/transformation.py
tjniemi/pysteps
76324d8f315f63c6723887f4c99d155749a31e83
[ "BSD-3-Clause" ]
246
2018-07-16T06:17:12.000Z
2022-03-22T15:45:08.000Z
pysteps/utils/transformation.py
tjniemi/pysteps
76324d8f315f63c6723887f4c99d155749a31e83
[ "BSD-3-Clause" ]
97
2018-07-12T12:05:45.000Z
2022-03-31T14:56:31.000Z
# -*- coding: utf-8 -*- """ pysteps.utils.transformation ============================ Methods for transforming data values. .. autosummary:: :toctree: ../generated/ boxcox_transform dB_transform NQ_transform sqrt_transform """ import numpy as np import scipy.stats as scipy_stats...
30.120419
89
0.578046
import numpy as np import scipy.stats as scipy_stats import warnings from scipy.interpolate import interp1d warnings.filterwarnings( "ignore", category=RuntimeWarning ) def boxcox_transform( R, metadata=None, Lambda=None, threshold=None, zerovalue=None, inverse=False ): R = R.copy() ...
true
true
1c389cdc023786c1791a1386642881a485285220
4,197
py
Python
SegNet_Mobile/train.py
Ice833/Semantic-Segmentation
23d23f6da3b34884c044a2253d65a1e4097adb2d
[ "MIT" ]
1
2020-12-16T08:29:13.000Z
2020-12-16T08:29:13.000Z
SegNet_Mobile/train.py
Ice833/Semantic-Segmentation
23d23f6da3b34884c044a2253d65a1e4097adb2d
[ "MIT" ]
null
null
null
SegNet_Mobile/train.py
Ice833/Semantic-Segmentation
23d23f6da3b34884c044a2253d65a1e4097adb2d
[ "MIT" ]
null
null
null
from nets.segnet import mobilenet_segnet from keras.optimizers import Adam from keras.callbacks import TensorBoard, ModelCheckpoint, ReduceLROnPlateau, EarlyStopping from PIL import Image import keras from keras import backend as K import numpy as np NCLASSES = 2 HEIGHT = 416 WIDTH = 416 def generate_arra...
35.268908
112
0.533715
from nets.segnet import mobilenet_segnet from keras.optimizers import Adam from keras.callbacks import TensorBoard, ModelCheckpoint, ReduceLROnPlateau, EarlyStopping from PIL import Image import keras from keras import backend as K import numpy as np NCLASSES = 2 HEIGHT = 416 WIDTH = 416 def generate_arra...
true
true
1c389df546c6534fdb305322dbcd914463587192
772
py
Python
Module01/String/StringOp.py
fenglihanxiao/Python
872baf3a3a5ee42740161152605ca2b1ddf4cd30
[ "MIT" ]
null
null
null
Module01/String/StringOp.py
fenglihanxiao/Python
872baf3a3a5ee42740161152605ca2b1ddf4cd30
[ "MIT" ]
null
null
null
Module01/String/StringOp.py
fenglihanxiao/Python
872baf3a3a5ee42740161152605ca2b1ddf4cd30
[ "MIT" ]
null
null
null
""" 1. String basic operations 2. Reference StringAPI.png """ str1 = "i have a family where have three amy people." print(len(str1)) print(str1[5]) print(max(str1)) print(str1.index("amy")) print("have" in str1) print("feng" not in str1) print(str1.islower()) """ 1. String operation isXXX method 2. Re...
19.3
53
0.648964
str1 = "i have a family where have three amy people." print(len(str1)) print(str1[5]) print(max(str1)) print(str1.index("amy")) print("have" in str1) print("feng" not in str1) print(str1.islower()) str2 = "aaa" print(str2.islower()) str3 = "Feng" print(str3.startswith("Fe")) files = [] filename = "test.jpg" filenam...
true
true
1c389dfcf00846c922740280931a38638ee8ddc2
67,237
py
Python
stm32ral.py
adamgreig/stm32ral
d316aaad753fd427b1d9fe641ca9611f5f20053c
[ "Apache-2.0", "MIT" ]
24
2019-02-20T19:01:43.000Z
2021-09-30T13:45:01.000Z
stm32ral.py
adamgreig/stm32ral
d316aaad753fd427b1d9fe641ca9611f5f20053c
[ "Apache-2.0", "MIT" ]
10
2019-02-27T22:41:42.000Z
2021-02-27T11:38:20.000Z
stm32ral.py
adamgreig/stm32ral
d316aaad753fd427b1d9fe641ca9611f5f20053c
[ "Apache-2.0", "MIT" ]
4
2019-04-20T08:36:46.000Z
2020-03-23T12:56:39.000Z
#!/usr/bin/env python3 """ stm32ral.py Copyright 2018 Adam Greig Licensed under MIT and Apache 2.0, see LICENSE_MIT and LICENSE_APACHE. """ import os import copy import argparse import itertools import subprocess import multiprocessing import xml.etree.ElementTree as ET from fnmatch import fnmatch CRATE_LIB_PREAMBLE...
35.5
93
0.560435
import os import copy import argparse import itertools import subprocess import multiprocessing import xml.etree.ElementTree as ET from fnmatch import fnmatch CRATE_LIB_PREAMBLE = """\ // Copyright 2018 Adam Greig // See LICENSE-APACHE and LICENSE-MIT for license details. //! This project provides a register acces...
true
true
1c389e6e09a465c0e3c1d8b9b5019040cd95e042
2,539
py
Python
setup.py
cryptbytestech/pypassvault
fd9ab73b5bd9bfcb7f3941fa3b82dc3000b40d68
[ "MIT" ]
1
2018-09-22T22:13:01.000Z
2018-09-22T22:13:01.000Z
setup.py
cryptbytestech/pypassvault
fd9ab73b5bd9bfcb7f3941fa3b82dc3000b40d68
[ "MIT" ]
null
null
null
setup.py
cryptbytestech/pypassvault
fd9ab73b5bd9bfcb7f3941fa3b82dc3000b40d68
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Setup for pypassvault project from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE.txt') as f: license = f.read() setup( name='pypassvault', version='0.1.4', description='A simple commandline password vault writ...
31.345679
79
0.639622
from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE.txt') as f: license = f.read() setup( name='pypassvault', version='0.1.4', description='A simple commandline password vault written in python.', long_description=readme, long...
true
true
1c38a0219266bb2a7ae22ff441e9711b2c97abde
6,087
py
Python
homework/hw03/construct_check.py
QinJiaHao1994/cs61a-sp20-solutions
71a481bef5ce73a4c6ff746455ccc51dc65453ea
[ "MIT" ]
8
2020-07-28T11:10:49.000Z
2021-05-29T15:27:17.000Z
homework/hw02/construct_check.py
QinJiaHao1994/cs61a-sp20-solutions
71a481bef5ce73a4c6ff746455ccc51dc65453ea
[ "MIT" ]
null
null
null
homework/hw02/construct_check.py
QinJiaHao1994/cs61a-sp20-solutions
71a481bef5ce73a4c6ff746455ccc51dc65453ea
[ "MIT" ]
1
2020-10-23T08:15:08.000Z
2020-10-23T08:15:08.000Z
from ast import parse, NodeVisitor, Name _NAMES = { 'Add': '+', 'And': 'and', 'Assert': 'assert', 'Assign': '=', 'AugAssign': 'op=', 'BitAnd': '&', 'BitOr': '|', 'BitXor': '^', 'Break': 'break', 'Recursion': 'recursive call', 'ClassDef': 'class', 'Continue': 'continue', ...
34.196629
79
0.580746
from ast import parse, NodeVisitor, Name _NAMES = { 'Add': '+', 'And': 'and', 'Assert': 'assert', 'Assign': '=', 'AugAssign': 'op=', 'BitAnd': '&', 'BitOr': '|', 'BitXor': '^', 'Break': 'break', 'Recursion': 'recursive call', 'ClassDef': 'class', 'Continue': 'continue', ...
true
true
1c38a07f1d438c871dd93a7df76d133bbf3990f8
72
py
Python
plugins/jira/komand_jira/actions/assign_issue/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/jira/komand_jira/actions/assign_issue/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/jira/komand_jira/actions/assign_issue/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .action import AssignIssue
24
39
0.777778
from .action import AssignIssue
true
true
1c38a1c55c3ead54b40a989169a6a4eabd456b52
806
py
Python
nnuncert/app/uci/_naming.py
pjoachims/nnuncert
45dede54fdb714926926d719be2c9b9b542b2601
[ "MIT" ]
2
2021-12-30T06:25:43.000Z
2022-01-25T00:41:22.000Z
nnuncert/app/uci/_naming.py
pjoachims/nnuncert
45dede54fdb714926926d719be2c9b9b542b2601
[ "MIT" ]
1
2022-01-25T00:35:28.000Z
2022-03-28T15:23:16.000Z
nnuncert/app/uci/_naming.py
pjoachims/nnuncert
45dede54fdb714926926d719be2c9b9b542b2601
[ "MIT" ]
null
null
null
def type2name(model) -> str: """Get name of model.""" if isinstance(model, DNNCModel): modelstr = "DNNC" if hasattr(model, "dnnc"): suffix = {"ridge": "-R", "horseshoe": "-HS",}[model.dnnc.dnnc_type] modelstr = modelstr + suffix return models...
31
64
0.573201
def type2name(model) -> str: if isinstance(model, DNNCModel): modelstr = "DNNC" if hasattr(model, "dnnc"): suffix = {"ridge": "-R", "horseshoe": "-HS",}[model.dnnc.dnnc_type] modelstr = modelstr + suffix return modelstr elif isinstance(model,...
true
true
1c38a25e8b17d5f873d08cc1d1a8173064984d5e
456
py
Python
provisioner/migrations/0003_subscription_in_process.py
uw-it-aca/msca-provisioner
6edc5468da21bad0172787ca8fdab1d93d9d0127
[ "Apache-2.0" ]
1
2018-09-07T14:43:40.000Z
2018-09-07T14:43:40.000Z
provisioner/migrations/0003_subscription_in_process.py
uw-it-aca/msca-provisioner
6edc5468da21bad0172787ca8fdab1d93d9d0127
[ "Apache-2.0" ]
null
null
null
provisioner/migrations/0003_subscription_in_process.py
uw-it-aca/msca-provisioner
6edc5468da21bad0172787ca8fdab1d93d9d0127
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-05-13 21:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('provisioner', '0002_auto_20160504_2102'), ] operations = [ migrations.AddFie...
21.714286
51
0.622807
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('provisioner', '0002_auto_20160504_2102'), ] operations = [ migrations.AddField( model_name='subscription', name='in_proces...
true
true
1c38a2f6663c6d6e6a23b12415a725623b04db53
6,720
py
Python
pangtreebuild/tests/tests_affinity_tree/tests_affinity.py
meoke/PangTreeBuild
7cafb76df32c559a76ed1d269699dc0e52313312
[ "MIT" ]
2
2019-09-04T20:01:28.000Z
2019-12-23T22:41:57.000Z
pangtreebuild/tests/tests_affinity_tree/tests_affinity.py
meoke/PangTreeBuild
7cafb76df32c559a76ed1d269699dc0e52313312
[ "MIT" ]
2
2019-08-10T16:18:01.000Z
2019-10-28T21:40:23.000Z
pangtreebuild/tests/tests_affinity_tree/tests_affinity.py
meoke/PangTreeBuild
7cafb76df32c559a76ed1d269699dc0e52313312
[ "MIT" ]
2
2020-04-23T23:57:52.000Z
2020-07-12T17:09:02.000Z
import unittest from typing import List from ddt import unpack, data, ddt from pangtreebuild.affinity_tree import builders as at_builders from pangtreebuild.affinity_tree import parameters as at_params from pangtreebuild.pangenome import graph from pangtreebuild.pangenome.parameters import msa def sid(x): return m...
45.405405
103
0.529464
import unittest from typing import List from ddt import unpack, data, ddt from pangtreebuild.affinity_tree import builders as at_builders from pangtreebuild.affinity_tree import parameters as at_params from pangtreebuild.pangenome import graph from pangtreebuild.pangenome.parameters import msa def sid(x): return m...
true
true
1c38a55c25a9e9c64f3f209e10c39739dc9d7a92
1,784
py
Python
tests/test_roles.py
kugiyasan/discordBot
647fbcaa8686e99774eddeb57359730196a4f65f
[ "MIT" ]
3
2020-07-05T21:37:07.000Z
2021-09-21T11:11:45.000Z
tests/test_roles.py
kugiyasan/discordBot
647fbcaa8686e99774eddeb57359730196a4f65f
[ "MIT" ]
null
null
null
tests/test_roles.py
kugiyasan/discordBot
647fbcaa8686e99774eddeb57359730196a4f65f
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import discord.ext.test as dpytest import pytest from typing import List # TODO addrole, delrole, manageaddrole, managedelrole # addrole: # when len(roles) == 0 # when len(roles) == 1 # when len(roles) > 10 class State: http = None async def create_random_r...
27.030303
80
0.662556
import discord from discord.ext import commands import discord.ext.test as dpytest import pytest from typing import List class State: http = None async def create_random_roles(guild: discord.Guild) -> List[discord.Role]: names = ( "Red", "Green", "Blue", "Orange", ...
true
true
1c38a57d15a68d2a9775967e932551dadd920d4f
3,389
py
Python
interlayer.py
AlExKrYt/Polyglot
509a53ade5da7af07b1c33514cbd219c0b672fd5
[ "MIT" ]
null
null
null
interlayer.py
AlExKrYt/Polyglot
509a53ade5da7af07b1c33514cbd219c0b672fd5
[ "MIT" ]
null
null
null
interlayer.py
AlExKrYt/Polyglot
509a53ade5da7af07b1c33514cbd219c0b672fd5
[ "MIT" ]
null
null
null
import json import os import sys import traceback from google.cloud import translate import logger json_key = "" project_name = "" translator: translate.TranslationServiceClient lang_list = {} class BadTrgLangException(Exception): pass class TooManyRequestException(Exception): pass class EqualLangsExce...
28.965812
116
0.663913
import json import os import sys import traceback from google.cloud import translate import logger json_key = "" project_name = "" translator: translate.TranslationServiceClient lang_list = {} class BadTrgLangException(Exception): pass class TooManyRequestException(Exception): pass class EqualLangsExce...
true
true
1c38a5a2d01b93136809060cd6c7c78965f8875f
427
py
Python
vertica_python/vertica/messages/backend_messages/ready_for_query.py
jbfavre/vertica-python
c53ffc49a971e9a806679f95e8680847120f49e4
[ "MIT" ]
1
2016-10-01T20:28:31.000Z
2016-10-01T20:28:31.000Z
vertica_python/vertica/messages/backend_messages/ready_for_query.py
jbfavre/vertica-python
c53ffc49a971e9a806679f95e8680847120f49e4
[ "MIT" ]
null
null
null
vertica_python/vertica/messages/backend_messages/ready_for_query.py
jbfavre/vertica-python
c53ffc49a971e9a806679f95e8680847120f49e4
[ "MIT" ]
null
null
null
from __future__ import absolute_import from struct import unpack from vertica_python.vertica.messages.message import BackendMessage class ReadyForQuery(BackendMessage): STATUSES = { 'I': 'no_transaction', 'T': 'in_transaction', 'E': 'failed_transaction' } def __init__(self, dat...
20.333333
69
0.693208
from __future__ import absolute_import from struct import unpack from vertica_python.vertica.messages.message import BackendMessage class ReadyForQuery(BackendMessage): STATUSES = { 'I': 'no_transaction', 'T': 'in_transaction', 'E': 'failed_transaction' } def __init__(self, dat...
true
true
1c38a5f6bb31cfbfd3f0862ca82857e16497d1f9
795
py
Python
app/core/admin.py
abidahmadq/recipe-app-api
29bd29ade5bea6107745a8d620db6ce7a76bfc65
[ "MIT" ]
null
null
null
app/core/admin.py
abidahmadq/recipe-app-api
29bd29ade5bea6107745a8d620db6ce7a76bfc65
[ "MIT" ]
null
null
null
app/core/admin.py
abidahmadq/recipe-app-api
29bd29ade5bea6107745a8d620db6ce7a76bfc65
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from core import models from django.utils.translation import gettext as _ # Register your models here. class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email', 'name'] fieldsets = ( (...
29.444444
65
0.568553
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from core import models from django.utils.translation import gettext as _ class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email', 'name'] fieldsets = ( (None, {'fields': ('email', '...
true
true
1c38a62327d092257b5b73779470db8cb6eb1c2f
18,266
py
Python
desktop/core/ext-py/python-openid-2.2.5/examples/consumer.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/python-openid-2.2.5/examples/consumer.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/python-openid-2.2.5/examples/consumer.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
#!/usr/bin/env python """ Simple example for an OpenID consumer. Once you understand this example you'll know the basics of OpenID and using the Python OpenID library. You can then move on to more robust examples, and integrating OpenID into your application. """ __copyright__ = 'Copyright 2005-2008, Janrain, Inc.' f...
35.956693
138
0.585624
""" Simple example for an OpenID consumer. Once you understand this example you'll know the basics of OpenID and using the Python OpenID library. You can then move on to more robust examples, and integrating OpenID into your application. """ __copyright__ = 'Copyright 2005-2008, Janrain, Inc.' from Cookie import Sim...
false
true
1c38a65740967a1e49c94a99e84549d3470de0b7
493
py
Python
TwoPointers/Leetcode11.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
TwoPointers/Leetcode11.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
TwoPointers/Leetcode11.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
class Solution: def maxArea(self, height) -> int: left=0 right=len(height)-1 res=min(height[left],height[right])*(right-left) while right>left: res=max(res,(right-left)*min(height[right],height[left])) if height[left]<height[right]: left+=1 ...
25.947368
69
0.543611
class Solution: def maxArea(self, height) -> int: left=0 right=len(height)-1 res=min(height[left],height[right])*(right-left) while right>left: res=max(res,(right-left)*min(height[right],height[left])) if height[left]<height[right]: left+=1 ...
true
true
1c38a73b8b293aebd84332a4186df1a089905b21
10,956
py
Python
old_py2/controllers/ajax_controller.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
old_py2/controllers/ajax_controller.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
old_py2/controllers/ajax_controller.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
import logging import os import json import time import datetime from base_controller import CacheableHandler, LoggedInHandler from consts.client_type import ClientType from consts.playoff_type import PlayoffType from google.appengine.api import memcache from google.appengine.api import urlfetch from google.appengine...
33.710769
124
0.643574
import logging import os import json import time import datetime from base_controller import CacheableHandler, LoggedInHandler from consts.client_type import ClientType from consts.playoff_type import PlayoffType from google.appengine.api import memcache from google.appengine.api import urlfetch from google.appengine...
true
true
1c38a7ddaaefad4ecbb5c078dc05360fb3aca639
3,004
py
Python
protoc_oneof_listing_plugin.py
sunaga-lab/protobuf-oneof-listing-plugin
ccb926c39130435182e6f0593d7fe26edd28bbb1
[ "MIT" ]
null
null
null
protoc_oneof_listing_plugin.py
sunaga-lab/protobuf-oneof-listing-plugin
ccb926c39130435182e6f0593d7fe26edd28bbb1
[ "MIT" ]
null
null
null
protoc_oneof_listing_plugin.py
sunaga-lab/protobuf-oneof-listing-plugin
ccb926c39130435182e6f0593d7fe26edd28bbb1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys, os, os.path from google.protobuf.compiler import plugin_pb2 as plugin import itertools from jinja2 import Environment, FileSystemLoader import inflection import glob TEMPLATE_DIR_PARAM_KEY = "templates" DEFAULT_TEMPLATES_PATH = "templates/*" class OneofCase: def __init__(self, p...
32.652174
117
0.675433
import sys, os, os.path from google.protobuf.compiler import plugin_pb2 as plugin import itertools from jinja2 import Environment, FileSystemLoader import inflection import glob TEMPLATE_DIR_PARAM_KEY = "templates" DEFAULT_TEMPLATES_PATH = "templates/*" class OneofCase: def __init__(self, package, type_name, va...
true
true
1c38aa00eda65281d3fb5a0dc4a4a97245553c9a
11,436
py
Python
src/openapi_client/model/id16_nullable.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
6
2022-01-03T07:07:18.000Z
2022-03-21T08:13:49.000Z
src/openapi_client/model/id16_nullable.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-02T13:01:05.000Z
2022-02-10T12:01:17.000Z
src/openapi_client/model/id16_nullable.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-10T11:53:55.000Z
2022-02-10T11:53:55.000Z
""" Nozbe Teams API Nozbe Teams API specification # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@nozbe.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from openapi_client.model_utils import ( # noqa: F401 ApiT...
39.84669
110
0.551591
import re import sys from openapi_client.model_utils import ( ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, validate_get_composed_info, O...
true
true
1c38ac794000eeef8a8357e0403beb588408b24b
2,842
py
Python
services/main/src/devices.py
Para-chute/getaware
469ccebca023d244152740e1d502ceb9db123194
[ "MIT" ]
1
2019-09-06T23:17:44.000Z
2019-09-06T23:17:44.000Z
services/main/src/devices.py
Para-chute/getaware
469ccebca023d244152740e1d502ceb9db123194
[ "MIT" ]
7
2020-09-07T04:37:32.000Z
2022-02-26T17:28:15.000Z
services/main/src/devices.py
Para-chute/getaware
469ccebca023d244152740e1d502ceb9db123194
[ "MIT" ]
1
2019-09-06T16:28:02.000Z
2019-09-06T16:28:02.000Z
import cherrypy import os import json import datetime import influxdb import src.schemas as schema class Devices(object): def __init__(self): pass exposed = True @cherrypy.tools.json_out() def GET(self, eventalias, intid, uuid): try: event = schema.Event.objects.get(alias...
29.298969
82
0.508445
import cherrypy import os import json import datetime import influxdb import src.schemas as schema class Devices(object): def __init__(self): pass exposed = True @cherrypy.tools.json_out() def GET(self, eventalias, intid, uuid): try: event = schema.Event.objects.get(alias...
true
true
1c38adb5b1c1296aac582774750f99d40b779ab0
741
py
Python
ssddj/ssdfrontend/views.py
sachinkagarwal/saturnring
8fc6d9e0525ea72536102a17b0b5febed63e22ae
[ "BSD-3-Clause" ]
3
2016-01-24T14:44:06.000Z
2017-10-10T15:26:15.000Z
ssddj/ssdfrontend/views.py
Acidburn0zzz/saturnring
5dfb62480e6e8bbae1714274a58b07ac4303138f
[ "BSD-3-Clause" ]
1
2015-04-16T17:27:24.000Z
2015-04-16T17:27:24.000Z
ssddj/ssdfrontend/views.py
Acidburn0zzz/saturnring
5dfb62480e6e8bbae1714274a58b07ac4303138f
[ "BSD-3-Clause" ]
6
2015-04-17T19:06:15.000Z
2019-02-15T19:08:34.000Z
#Copyright 2014 Blackberry 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 License at # # http://www.apache.org/licenses/LICENSE-2.0 # #Unless required by applicable law or agreed to in writing,...
35.285714
73
0.782726
from django.shortcuts import render from django.views.generic import ListView from ssdfrontend.models import Target class TargetList(ListView): model = Target
true
true
1c38ae29e28c04149ad2eb99228cb304e4228d61
12,547
py
Python
sdk/python/pulumi_aws/cognito/identity_pool.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/cognito/identity_pool.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/cognito/identity_pool.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
51.633745
209
0.679047
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from . import outputs from ._inputs import * __all__ = ['IdentityPool'] class IdentityPool(pulumi.CustomResource): def __init__(__self__, resource...
true
true
1c38ae3a2b9ed3a97e68b3292d750d92637ef04c
13,191
py
Python
test/unit/models/test_proposals.py
swatchie-1/sentinel
954f76e93ed1422d885a4cb5e46fb8aa3e525899
[ "MIT" ]
null
null
null
test/unit/models/test_proposals.py
swatchie-1/sentinel
954f76e93ed1422d885a4cb5e46fb8aa3e525899
[ "MIT" ]
null
null
null
test/unit/models/test_proposals.py
swatchie-1/sentinel
954f76e93ed1422d885a4cb5e46fb8aa3e525899
[ "MIT" ]
2
2019-05-20T16:37:32.000Z
2021-12-04T15:44:47.000Z
import pytest import sys import os import time os.environ['SENTINEL_ENV'] = 'test' os.environ['SENTINEL_CONFIG'] = os.path.normpath(os.path.join(os.path.dirname(__file__), '../../test_sentinel.conf')) sys.path.append(os.path.normpath(os.path.join(os.path.dirname(__file__), '../../../lib'))) import misc import config fr...
52.764
3,629
0.779547
import pytest import sys import os import time os.environ['SENTINEL_ENV'] = 'test' os.environ['SENTINEL_CONFIG'] = os.path.normpath(os.path.join(os.path.dirname(__file__), '../../test_sentinel.conf')) sys.path.append(os.path.normpath(os.path.join(os.path.dirname(__file__), '../../../lib'))) import misc import config fr...
true
true
1c38ae6d57c9f55f638d14d8f5d57647b4c2ce3d
9,786
py
Python
example/ssd/symbol/inceptionv3.py
axbaretto/mxnet
5f593885356ff6d14f5519fa18e79b944beb51cd
[ "Apache-2.0" ]
866
2016-10-07T16:05:13.000Z
2022-01-19T08:30:31.000Z
smd_hpi/examples/binary-imagenet1k/symbols/inception-v3.py
yanghaojin/BMXNet
102f8d0ed59529bbd162c37bf07ae58ad6c4caa1
[ "Apache-2.0" ]
237
2016-10-06T21:19:45.000Z
2021-07-20T03:52:45.000Z
smd_hpi/examples/binary-imagenet1k/symbols/inception-v3.py
yanghaojin/BMXNet
102f8d0ed59529bbd162c37bf07ae58ad6c4caa1
[ "Apache-2.0" ]
431
2016-10-19T10:08:07.000Z
2021-10-03T00:43:33.000Z
""" Inception V3, suitable for images with around 299 x 299 Reference: Szegedy, Christian, et al. "Rethinking the Inception Architecture for Computer Vision." arXiv preprint arXiv:1512.00567 (2015). """ import mxnet as mx def Conv(data, num_filter, kernel=(1, 1), stride=(1, 1), pad=(0, 0), name=None, suffix=''): ...
57.905325
152
0.589822
import mxnet as mx def Conv(data, num_filter, kernel=(1, 1), stride=(1, 1), pad=(0, 0), name=None, suffix=''): conv = mx.sym.Convolution(data=data, num_filter=num_filter, kernel=kernel, stride=stride, pad=pad, no_bias=True, name='%s%s_conv2d' %(name, suffix)) bn = mx.sym.BatchNorm(data=conv, name='%s%s_batchno...
true
true
1c38aeb04961d38883d8073939b42f294f7e24a7
5,685
py
Python
dev/Tools/build/waf-1.7.13/lmbrwaflib/bootstrap.py
horvay/lumberyardtutor
63b0681a7ed2a98d651b699984de92951721353e
[ "AML" ]
5
2018-08-17T21:05:55.000Z
2021-04-17T10:48:26.000Z
dev/Tools/build/waf-1.7.13/lmbrwaflib/bootstrap.py
horvay/lumberyardtutor
63b0681a7ed2a98d651b699984de92951721353e
[ "AML" ]
null
null
null
dev/Tools/build/waf-1.7.13/lmbrwaflib/bootstrap.py
horvay/lumberyardtutor
63b0681a7ed2a98d651b699984de92951721353e
[ "AML" ]
5
2017-12-05T16:36:00.000Z
2021-04-27T06:33:54.000Z
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or th...
36.915584
159
0.662269
from waflib import Context, Utils, Logs from waflib.Configure import conf import sys import os LMBR_SETUP_REL_PATH = os.path.join('Tools', 'LmbrSetup') LY_LAUNCHER_CODE_REL_PATH = os.path.join('Code', 'Tools', 'AZInstaller') DEFAULT_LY_LAUNCHER_PARAMS = ['--none', '--enableca...
false
true
1c38aeb55160851cc8b3ddc7ceec5cf13ea97b20
4,113
py
Python
wagtail/contrib/settings/models.py
sonnybaker/wagtail
5522992c2923276fca40417401e8fb2c536b4b4f
[ "BSD-3-Clause" ]
8,851
2016-12-09T19:01:45.000Z
2022-03-31T04:45:06.000Z
wagtail/contrib/settings/models.py
sonnybaker/wagtail
5522992c2923276fca40417401e8fb2c536b4b4f
[ "BSD-3-Clause" ]
5,197
2016-12-09T19:24:37.000Z
2022-03-31T22:17:55.000Z
wagtail/contrib/settings/models.py
sonnybaker/wagtail
5522992c2923276fca40417401e8fb2c536b4b4f
[ "BSD-3-Clause" ]
2,548
2016-12-09T18:16:55.000Z
2022-03-31T21:34:38.000Z
from django.db import models from wagtail.core.models import Site from wagtail.core.utils import InvokeViaAttributeShortcut from .registry import register_setting __all__ = ['BaseSetting', 'register_setting'] class BaseSetting(models.Model): """ The abstract base model for settings. Subclasses must be reg...
33.439024
83
0.641867
from django.db import models from wagtail.core.models import Site from wagtail.core.utils import InvokeViaAttributeShortcut from .registry import register_setting __all__ = ['BaseSetting', 'register_setting'] class BaseSetting(models.Model): select_related = None site = models.OneToOneField( ...
true
true
1c38aebe7d9526fdb385a5791f5598f850053201
10,223
py
Python
pytext/data/sources/data_source.py
abhinavarora/pytext
d72f977d34c741712d20bd74418feb1e0b7a13f1
[ "BSD-3-Clause" ]
null
null
null
pytext/data/sources/data_source.py
abhinavarora/pytext
d72f977d34c741712d20bd74418feb1e0b7a13f1
[ "BSD-3-Clause" ]
null
null
null
pytext/data/sources/data_source.py
abhinavarora/pytext
d72f977d34c741712d20bd74418feb1e0b7a13f1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import logging from typing import Dict from pytext.config.component import Component, ComponentType class RawExample(dict): """A wrapper class for a single example row with a dict interface. This is here for any lo...
41.556911
88
0.706055
import logging from typing import Dict from pytext.config.component import Component, ComponentType class RawExample(dict): DATA_SOURCE_TYPES = {} class SafeFileWrapper: def __init__(self, *args, **kwargs): self._file = open(*args, **kwargs) def __del__(self): self._file.close() ...
true
true
1c38afc6f50dc3226ca40bcc448b91df40033700
648
py
Python
news/migrations/0007_auto_20191002_1638.py
josylad/Moringa-Tribune
003895fb557b7454b4e3555df407aaf2f0ca58f8
[ "MIT" ]
null
null
null
news/migrations/0007_auto_20191002_1638.py
josylad/Moringa-Tribune
003895fb557b7454b4e3555df407aaf2f0ca58f8
[ "MIT" ]
2
2021-06-08T20:26:03.000Z
2021-09-08T01:21:23.000Z
news/migrations/0007_auto_20191002_1638.py
josylad/Moringa-Tribune
003895fb557b7454b4e3555df407aaf2f0ca58f8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-10-02 13:38 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0006_auto_20191002_1637'), ] operations = [ migrations.AlterField( ...
24.923077
90
0.603395
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0006_auto_20191002_1637'), ] operations = [ migrations.AlterField( model_name='article', name='article_image', ...
true
true
1c38b0b32e7b6af2e0e0a0a43aac9c00f48ba75c
97
py
Python
PythonExercicios/ex024-primeiras-letras-do-texto.py
ArthurAlbuquerquee/exercicios-python-cev
ba64d3a025731aae5e238c7cb469917420b7901e
[ "MIT" ]
null
null
null
PythonExercicios/ex024-primeiras-letras-do-texto.py
ArthurAlbuquerquee/exercicios-python-cev
ba64d3a025731aae5e238c7cb469917420b7901e
[ "MIT" ]
null
null
null
PythonExercicios/ex024-primeiras-letras-do-texto.py
ArthurAlbuquerquee/exercicios-python-cev
ba64d3a025731aae5e238c7cb469917420b7901e
[ "MIT" ]
null
null
null
cidade = str(input('Digite o nome de uma cidade: ')).strip() print(cidade[:5].upper() == 'SANTO')
48.5
60
0.649485
cidade = str(input('Digite o nome de uma cidade: ')).strip() print(cidade[:5].upper() == 'SANTO')
true
true
1c38b0c4ef7bf695efea339bdab4d6094cc2c8b8
2,092
py
Python
huji_lab/Display.py
stormage2/huji_lab
07734f1891d05177dd1395a4a3e4694e258ca0f8
[ "MIT" ]
null
null
null
huji_lab/Display.py
stormage2/huji_lab
07734f1891d05177dd1395a4a3e4694e258ca0f8
[ "MIT" ]
7
2018-10-16T17:02:15.000Z
2018-10-31T13:39:30.000Z
build/lib/huji_lab/Display.py
stormage2/huji_lab
07734f1891d05177dd1395a4a3e4694e258ca0f8
[ "MIT" ]
1
2018-10-21T11:43:55.000Z
2018-10-21T11:43:55.000Z
import matplotlib.pyplot as _plt from IPython.display import Image as _Image from IPython.display import display as _display from IPython.display import Markdown as _Markdown from IPython.display import Latex as _Latex """ # A dangerous override function, currently unimplemented. from uncertainties.core import Variabl...
28.27027
107
0.628107
import matplotlib.pyplot as _plt from IPython.display import Image as _Image from IPython.display import display as _display from IPython.display import Markdown as _Markdown from IPython.display import Latex as _Latex def print_color_bold(string, color='black'): text_line = _Markdown("<span style=\"color: " + c...
true
true
1c38b24548b3a8a34d4aa01e684231ba2be1e09f
26,473
py
Python
xrviz/dashboard.py
jhamman/xrviz
7b933f29330fed8c9ee6c11822058478f58d51a1
[ "BSD-3-Clause" ]
null
null
null
xrviz/dashboard.py
jhamman/xrviz
7b933f29330fed8c9ee6c11822058478f58d51a1
[ "BSD-3-Clause" ]
null
null
null
xrviz/dashboard.py
jhamman/xrviz
7b933f29330fed8c9ee6c11822058478f58d51a1
[ "BSD-3-Clause" ]
1
2021-01-06T17:07:43.000Z
2021-01-06T17:07:43.000Z
import ast import dask import panel as pn import pandas as pd import numpy as np import xarray as xr import hvplot.xarray import hvplot.pandas import holoviews as hv from holoviews import streams from bokeh.models import HoverTool import warnings from itertools import cycle import numpy from .sigslot import SigSlot fro...
43.82947
126
0.55736
import ast import dask import panel as pn import pandas as pd import numpy as np import xarray as xr import hvplot.xarray import hvplot.pandas import holoviews as hv from holoviews import streams from bokeh.models import HoverTool import warnings from itertools import cycle import numpy from .sigslot import SigSlot fro...
true
true
1c38b3278269bec67cf467d295393f336f4b67c6
923
py
Python
topics/urls.py
techstoreclub/codebook
b9b471403984189c890202bc8d7f735129115609
[ "MIT" ]
1
2020-06-09T06:04:16.000Z
2020-06-09T06:04:16.000Z
topics/urls.py
techstoreclub/codebook
b9b471403984189c890202bc8d7f735129115609
[ "MIT" ]
14
2020-03-30T20:08:30.000Z
2021-12-22T09:06:58.000Z
topics/urls.py
andychase/codebook
b9b471403984189c890202bc8d7f735129115609
[ "MIT" ]
1
2016-01-03T18:40:34.000Z
2016-01-03T18:40:34.000Z
from django.urls import re_path from django.contrib.auth import views as auth_views from topics.views import sso from .views import users from .views import topics app_name = 'topics' urlpatterns = [ # User authentication re_path(r'^_login/$', users.login_view, name='login'), re_path(r'^_login/sso$', sso...
38.458333
101
0.697725
from django.urls import re_path from django.contrib.auth import views as auth_views from topics.views import sso from .views import users from .views import topics app_name = 'topics' urlpatterns = [ re_path(r'^_login/$', users.login_view, name='login'), re_path(r'^_login/sso$', sso.sso), re_path(r'...
true
true
1c38b37aeb114f496749e633a91ea5c09f773f91
373
py
Python
src/interpreter.py
SatishS11/Qrangen
917b6b9b09669b58251bbdc15427ea0105dbc521
[ "Apache-2.0" ]
2
2019-09-08T00:05:06.000Z
2020-07-22T18:39:41.000Z
src/interpreter.py
SatishS11/Qrangen
917b6b9b09669b58251bbdc15427ea0105dbc521
[ "Apache-2.0" ]
9
2020-03-24T17:07:02.000Z
2022-03-11T23:48:38.000Z
src/interpreter.py
SatishS11/Qrangen
917b6b9b09669b58251bbdc15427ea0105dbc521
[ "Apache-2.0" ]
4
2019-05-28T19:32:10.000Z
2021-03-04T09:50:04.000Z
class Interpreter: def __init__(self, n=1, mode='decimal'): self.mode = mode self.n = n def extract_random_number(self, result): numbers = result.get_memory() if self.mode == 'binary': return numbers else: return [int(number, 2) for number in num...
23.3125
57
0.58445
class Interpreter: def __init__(self, n=1, mode='decimal'): self.mode = mode self.n = n def extract_random_number(self, result): numbers = result.get_memory() if self.mode == 'binary': return numbers else: return [int(number, 2) for number in num...
true
true
1c38b4e2c6d0bbdea0a300cfd8975351afde846c
580
py
Python
backend/server/restapi/views.py
luismsanchez/RestaurantApp
3793be5ec814463a37dd8da7d1b2343a1d69e28b
[ "MIT" ]
null
null
null
backend/server/restapi/views.py
luismsanchez/RestaurantApp
3793be5ec814463a37dd8da7d1b2343a1d69e28b
[ "MIT" ]
null
null
null
backend/server/restapi/views.py
luismsanchez/RestaurantApp
3793be5ec814463a37dd8da7d1b2343a1d69e28b
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import viewsets from .models import Cliente, Producto, Pedido from .serializer import ClienteSerializer, ProductoSerializer, PedidoSerializer class ClienteViewSet(viewsets.ModelViewSet): queryset = Cliente.objects.all() serializer_class = Clien...
34.117647
82
0.796552
from django.shortcuts import render from rest_framework import viewsets from .models import Cliente, Producto, Pedido from .serializer import ClienteSerializer, ProductoSerializer, PedidoSerializer class ClienteViewSet(viewsets.ModelViewSet): queryset = Cliente.objects.all() serializer_class = Clien...
true
true
1c38b5053ed48e42abbabd6171297061ed1cb8f3
1,521
py
Python
real_model.py
bryanlincoln/curiosity-driven-exploration
2c099eb851a9319845f06ca030fee1bf4d587de2
[ "MIT" ]
null
null
null
real_model.py
bryanlincoln/curiosity-driven-exploration
2c099eb851a9319845f06ca030fee1bf4d587de2
[ "MIT" ]
null
null
null
real_model.py
bryanlincoln/curiosity-driven-exploration
2c099eb851a9319845f06ca030fee1bf4d587de2
[ "MIT" ]
null
null
null
from chainer import Link, Chain, ChainList import chainer.links as L import chainer.functions as F import chainerrl class RealPPOModel(Chain): def __init__(self, n_actions): super(RealPPOModel, self).__init__() with self.init_scope(): self.conv1 = L.Convolution2D(None, 32, 8, stride=4)...
34.568182
96
0.566075
from chainer import Link, Chain, ChainList import chainer.links as L import chainer.functions as F import chainerrl class RealPPOModel(Chain): def __init__(self, n_actions): super(RealPPOModel, self).__init__() with self.init_scope(): self.conv1 = L.Convolution2D(None, 32, 8, stride=4)...
true
true
1c38b519a8a78124e3beaaa80e76163684eca1a6
813
py
Python
tf_encrypted/keras/layers/__init__.py
redshiftzero/tf-encrypted
d48de7ab37e270fac2a0ae1fc6de87cb6bd9ce6c
[ "Apache-2.0" ]
3
2018-10-18T19:36:02.000Z
2020-07-05T19:46:23.000Z
tf_encrypted/keras/layers/__init__.py
redshiftzero/tf-encrypted
d48de7ab37e270fac2a0ae1fc6de87cb6bd9ce6c
[ "Apache-2.0" ]
null
null
null
tf_encrypted/keras/layers/__init__.py
redshiftzero/tf-encrypted
d48de7ab37e270fac2a0ae1fc6de87cb6bd9ce6c
[ "Apache-2.0" ]
null
null
null
"""Higher-level layer abstractions built on TF Encrypted.""" from __future__ import absolute_import from tf_encrypted.keras.engine.input_layer import Input from tf_encrypted.keras.layers.activation import Activation from tf_encrypted.keras.layers.convolutional import Conv2D from tf_encrypted.keras.layers.dense import ...
30.111111
76
0.785978
from __future__ import absolute_import from tf_encrypted.keras.engine.input_layer import Input from tf_encrypted.keras.layers.activation import Activation from tf_encrypted.keras.layers.convolutional import Conv2D from tf_encrypted.keras.layers.dense import Dense from tf_encrypted.keras.layers.flatten import Flatten f...
true
true
1c38b64d2e426a225f775a07e698d2709589746f
1,362
py
Python
componere/area.py
abramsimon/componere
910f714eb049efd8b358dd96772bc5f6187af627
[ "Apache-2.0" ]
null
null
null
componere/area.py
abramsimon/componere
910f714eb049efd8b358dd96772bc5f6187af627
[ "Apache-2.0" ]
null
null
null
componere/area.py
abramsimon/componere
910f714eb049efd8b358dd96772bc5f6187af627
[ "Apache-2.0" ]
null
null
null
# Copyright 2o18 Premise Data # # 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, ...
31.674419
74
0.762849
class Area: identifier = None name = None parent_identifier = None def __init__(self, identifier, name=None, parent_identifier=None): self.identifier = identifier self.name = name self.parent_identifier = parent_identifier @classmethod def from_values_dict(cls, identifier, values_dict): if ...
true
true
1c38b6a146e1e25917896bb3994602aa15970f79
3,401
py
Python
scenario2.py
lvreynoso/Call-Routing-Project
8aeafe6c26d92ed93f32a0fc830bb53e339cb83a
[ "MIT" ]
null
null
null
scenario2.py
lvreynoso/Call-Routing-Project
8aeafe6c26d92ed93f32a0fc830bb53e339cb83a
[ "MIT" ]
null
null
null
scenario2.py
lvreynoso/Call-Routing-Project
8aeafe6c26d92ed93f32a0fc830bb53e339cb83a
[ "MIT" ]
null
null
null
import time import resource import platform # check if prefix is a valid prefix for phoneNumber def isPrefix(phoneNumber, prefix): if len(prefix) > len(phoneNumber): return False for i in range(len(prefix)): if (phoneNumber[i] != prefix[i]): return False return True #...
30.918182
97
0.6207
import time import resource import platform def isPrefix(phoneNumber, prefix): if len(prefix) > len(phoneNumber): return False for i in range(len(prefix)): if (phoneNumber[i] != prefix[i]): return False return True def findBestSolution(solutions): longestString...
true
true
1c38b6ae57e0008c1f492bc4516b097b764c9bc0
5,829
py
Python
awx/main/dispatch/worker/callback.py
Sicaine/awx
a1fe60da78445c7970eaa823e88ce21860053785
[ "Apache-2.0" ]
1
2019-03-07T11:54:50.000Z
2019-03-07T11:54:50.000Z
awx/main/dispatch/worker/callback.py
Sicaine/awx
a1fe60da78445c7970eaa823e88ce21860053785
[ "Apache-2.0" ]
1
2020-06-18T14:53:26.000Z
2020-06-18T14:53:26.000Z
awx/main/dispatch/worker/callback.py
Sicaine/awx
a1fe60da78445c7970eaa823e88ce21860053785
[ "Apache-2.0" ]
null
null
null
import logging import time import os import signal import traceback from django.conf import settings from django.db import DatabaseError, OperationalError, connection as django_connection from django.db.utils import InterfaceError, InternalError from awx.main.consumers import emit_channel_notification from awx.main.m...
44.496183
152
0.532853
import logging import time import os import signal import traceback from django.conf import settings from django.db import DatabaseError, OperationalError, connection as django_connection from django.db.utils import InterfaceError, InternalError from awx.main.consumers import emit_channel_notification from awx.main.m...
true
true
1c38b6e00ca40fee87d35cf4853cec01dcdb1aec
44,135
py
Python
xrft/xrft.py
RichardScottOZ/xrft
5b18b88957661b8f5e1967ec28e81c552c63834f
[ "MIT" ]
null
null
null
xrft/xrft.py
RichardScottOZ/xrft
5b18b88957661b8f5e1967ec28e81c552c63834f
[ "MIT" ]
null
null
null
xrft/xrft.py
RichardScottOZ/xrft
5b18b88957661b8f5e1967ec28e81c552c63834f
[ "MIT" ]
null
null
null
import warnings import operator import sys import functools as ft from functools import reduce import numpy as np import xarray as xr import pandas as pd import dask.array as dsar from dask import delayed import scipy.signal as sps import scipy.linalg as spl from .detrend import detrend as _detrend __all__ = [ ...
34.453552
542
0.620347
import warnings import operator import sys import functools as ft from functools import reduce import numpy as np import xarray as xr import pandas as pd import dask.array as dsar from dask import delayed import scipy.signal as sps import scipy.linalg as spl from .detrend import detrend as _detrend __all__ = [ ...
true
true
1c38b757134a77c1004ddbc6823505175387eb23
4,674
py
Python
tests/unit/models/test_job.py
amolkahat/cibyl
586c3c0a6b21a8f1b71db0c5b29e7d60f9cf0def
[ "Apache-2.0" ]
null
null
null
tests/unit/models/test_job.py
amolkahat/cibyl
586c3c0a6b21a8f1b71db0c5b29e7d60f9cf0def
[ "Apache-2.0" ]
null
null
null
tests/unit/models/test_job.py
amolkahat/cibyl
586c3c0a6b21a8f1b71db0c5b29e7d60f9cf0def
[ "Apache-2.0" ]
null
null
null
""" # Copyright 2022 Red Hat # # 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...
34.880597
78
0.629226
import unittest from cibyl.models.ci.build import Build from cibyl.models.ci.job import Job class TestJob(unittest.TestCase): def setUp(self): self.job_name = 'test-job' self.job_status = 'FAILURE' self.job_url = 'http://ci_system/test-job' self.builds = [Build("1")] sel...
true
true
1c38b83aead408389e0116016b8e5521e4063ab7
88
py
Python
output/models/ms_data/regex/re_l21_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/regex/re_l21_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/regex/re_l21_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.regex.re_l21_xsd.re_l21 import Doc __all__ = [ "Doc", ]
14.666667
61
0.715909
from output.models.ms_data.regex.re_l21_xsd.re_l21 import Doc __all__ = [ "Doc", ]
true
true
1c38b861973e77d69b84bb9a7ed9781a38aa4742
1,441
py
Python
src/gui/MainLayout.py
tinfins/CMSC495-Group-3
0b7ea3c885322631d6dd3ef7ee96b6a98ba2392e
[ "MIT" ]
1
2021-02-11T01:18:08.000Z
2021-02-11T01:18:08.000Z
src/gui/MainLayout.py
tinfins/CMSC495-Group-3
0b7ea3c885322631d6dd3ef7ee96b6a98ba2392e
[ "MIT" ]
1
2021-01-28T00:03:15.000Z
2021-01-28T00:03:15.000Z
src/gui/MainLayout.py
tinfins/CMSC495-Group-3
0b7ea3c885322631d6dd3ef7ee96b6a98ba2392e
[ "MIT" ]
3
2021-02-13T22:45:14.000Z
2021-02-16T02:57:11.000Z
# Standard imports import logging.config import tkinter as tk from tkinter import ttk # Big Teacher module imports: import src.gui.MenuStatus as MenuStatus class MainLayout(tk.Frame): ''' Main GUI layout of application. Contains Menu Bar and Status Bar ''' def __init__(self, master, controller): ...
30.659574
70
0.644691
import logging.config import tkinter as tk from tkinter import ttk import src.gui.MenuStatus as MenuStatus class MainLayout(tk.Frame): def __init__(self, master, controller): ttk.Frame.__init__(self, master) self.logger = logging.getLogger(__name__) self.master = master self.cont...
true
true
1c38b86b63961d39979e82afb0da3ab99a95bef1
2,782
py
Python
examples/daal4py/decision_tree_classification_batch.py
owerbat/scikit-learn-intelex
986637668853a00f0047b7a8854ddb9fb3620549
[ "Apache-2.0" ]
336
2021-04-07T04:25:28.000Z
2022-03-29T09:18:44.000Z
examples/daal4py/decision_tree_classification_batch.py
owerbat/scikit-learn-intelex
986637668853a00f0047b7a8854ddb9fb3620549
[ "Apache-2.0" ]
213
2021-03-25T20:51:24.000Z
2022-03-31T09:04:13.000Z
examples/daal4py/decision_tree_classification_batch.py
owerbat/scikit-learn-intelex
986637668853a00f0047b7a8854ddb9fb3620549
[ "Apache-2.0" ]
43
2021-05-23T14:29:23.000Z
2022-03-04T08:12:53.000Z
#=============================================================================== # Copyright 2014-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.apa...
38.638889
90
0.673976
import daal4py as d4p import numpy as np try: import pandas def read_csv(f, c, t=np.float64): return pandas.read_csv(f, usecols=c, delimiter=',', header=None, dtype=np.float32) except ImportError: def read_csv(f, c, t=np.float64): return np.loadtxt(f, usecols=c, del...
true
true
1c38b92a88dfa784bd477749efea057612c467d7
7,390
py
Python
rpython/jit/backend/llsupport/codemap.py
pypyjs/pypy
2c2c5c73d780ff71f03adc2f1bf2c1c4bb7cc031
[ "Apache-2.0", "OpenSSL" ]
34
2015-07-09T04:53:27.000Z
2021-07-19T05:22:27.000Z
idea2/pypyjs-3/deps/pypy/rpython/jit/backend/llsupport/codemap.py
igormcoelho/neo-boa
c141b503183cab287744cd19be5dfd86d9bc8daf
[ "MIT" ]
6
2015-05-30T17:20:45.000Z
2017-06-12T14:29:23.000Z
idea2/pypyjs-3/deps/pypy/rpython/jit/backend/llsupport/codemap.py
igormcoelho/neo-boa
c141b503183cab287744cd19be5dfd86d9bc8daf
[ "MIT" ]
11
2015-09-07T14:26:08.000Z
2020-04-10T07:20:41.000Z
""" Bytecode for storage in asmmemmgr.jit_codemap. Format is as follows: list of tuples of shape (addr, machine code size, bytecode info) where bytecode info is a string made up of: 8 bytes unique_id, 4 bytes start_addr (relative), 4 bytes size (relative), 2 bytes how many items to skip to go to the next on...
39.518717
96
0.610284
""" Bytecode for storage in asmmemmgr.jit_codemap. Format is as follows: list of tuples of shape (addr, machine code size, bytecode info) where bytecode info is a string made up of: 8 bytes unique_id, 4 bytes start_addr (relative), 4 bytes size (relative), 2 bytes how many items to skip to go to the next on...
false
true
1c38b9842852205b95892006d267eb3f51cd2da7
6,384
py
Python
mkt/commonplace/views.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
mkt/commonplace/views.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
mkt/commonplace/views.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
import datetime import importlib import json import os from urlparse import urlparse from django.conf import settings from django.core.files.storage import default_storage as storage from django.core.urlresolvers import resolve from django.http import HttpResponse, Http404 from django.shortcuts import render from djan...
31.761194
79
0.636122
import datetime import importlib import json import os from urlparse import urlparse from django.conf import settings from django.core.files.storage import default_storage as storage from django.core.urlresolvers import resolve from django.http import HttpResponse, Http404 from django.shortcuts import render from djan...
true
true
1c38b99bfb1848d9aba4d4d4a92c531feb23e7ae
2,226
py
Python
src/movieMain.py
o-x-y-g-e-n/Web-Scraping-With-Sentiment-Analysis
4f0faaefdbdc515165a58fd53942c2902c3e7372
[ "MIT" ]
3
2020-12-23T14:57:59.000Z
2021-06-14T07:30:25.000Z
src/movieMain.py
o-x-y-g-e-n/Web-Scraping-With-Sentiment-Analysis
4f0faaefdbdc515165a58fd53942c2902c3e7372
[ "MIT" ]
2
2021-04-06T18:21:56.000Z
2021-06-02T03:36:15.000Z
src/movieMain.py
o-x-y-g-e-n/Web-Scraping-With-Sentiment-Analysis
4f0faaefdbdc515165a58fd53942c2902c3e7372
[ "MIT" ]
1
2021-06-14T07:30:40.000Z
2021-06-14T07:30:40.000Z
import nltk,re,time,sys ,codecs,os,requests import xml.etree.ElementTree as ET from lxml import etree from nltk.corpus import stopwords from textblob import TextBlob from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.common.keys...
32.735294
81
0.752022
import nltk,re,time,sys ,codecs,os,requests import xml.etree.ElementTree as ET from lxml import etree from nltk.corpus import stopwords from textblob import TextBlob from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.common.keys...
true
true
1c38ba494a7048305333a4416b8225cce6de2a25
3,027
py
Python
vega/core/pipeline/multi_task_pipe_step.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/core/pipeline/multi_task_pipe_step.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/core/pipeline/multi_task_pipe_step.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
40.36
101
0.718203
import logging from vega.common.general import General from vega.common.class_factory import ClassFactory, ClassType from vega.report import ReportServer, ReportRecord, ReportClient from vega.common import Status from vega.core.scheduler import create_master from vega.core.pipeline.conf import PipeStep...
true
true
1c38bbb507524c08538e3489e0f8293d4dab2320
3,169
py
Python
user/views.py
myl7/conus
6eb2c9ee55c45d8b9c7f9de0e5998f94954b1a4e
[ "MIT" ]
null
null
null
user/views.py
myl7/conus
6eb2c9ee55c45d8b9c7f9de0e5998f94954b1a4e
[ "MIT" ]
null
null
null
user/views.py
myl7/conus
6eb2c9ee55c45d8b9c7f9de0e5998f94954b1a4e
[ "MIT" ]
null
null
null
import uuid import re from urllib.parse import urlencode from xml.etree import ElementTree import json from django.shortcuts import redirect, reverse from django.conf import settings from django.http.response import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import login, logout ...
32.010101
96
0.71095
import uuid import re from urllib.parse import urlencode from xml.etree import ElementTree import json from django.shortcuts import redirect, reverse from django.conf import settings from django.http.response import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import login, logout ...
true
true
1c38bc5683d427dfa31b3e03713eb31a5e6faef6
1,987
py
Python
test/test_new_password.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2021-03-05T06:41:26.000Z
2021-03-05T06:41:26.000Z
test/test_new_password.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2021-09-07T08:56:58.000Z
2021-09-07T08:56:58.000Z
test/test_new_password.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2019-05-21T10:27:54.000Z
2019-05-21T10:27:54.000Z
# coding: utf-8 """ Talon.One API The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. #...
35.482143
647
0.67841
from __future__ import absolute_import import unittest import datetime import talon_one from talon_one.models.new_password import NewPassword from talon_one.rest import ApiException class TestNewPassword(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def make_...
true
true
1c38bcecf5d2b10709950ef3d19204f26c5d8e6f
607
py
Python
var/spack/repos/builtin.mock/packages/indirect-mpich/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin.mock/packages/indirect-mpich/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin.mock/packages/indirect-mpich/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class IndirectMpich(Package): """Test case for a package that depends on MPI and one of ...
28.904762
73
0.710049
from spack.package import * class IndirectMpich(Package): homepage = "http://www.example.com" url = "http://www.example.com/indirect_mpich-1.0.tar.gz" version(1.0, '0123456789abcdef0123456789abcdef') depends_on('mpi') depends_on('direct-mpich')
true
true
1c38be7b5959d2a3c502984d191233707a0c0b2a
624
py
Python
setup.py
k4m454k/VerbariusRus
54bb20570d3013a93340df3be5592a20c5576322
[ "MIT" ]
2
2020-11-15T19:41:20.000Z
2020-11-15T21:22:05.000Z
setup.py
k4m454k/VerbariusRus
54bb20570d3013a93340df3be5592a20c5576322
[ "MIT" ]
null
null
null
setup.py
k4m454k/VerbariusRus
54bb20570d3013a93340df3be5592a20c5576322
[ "MIT" ]
1
2020-12-20T13:35:19.000Z
2020-12-20T13:35:19.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="verbarius", version="0.7", author="Vadim Apenko", author_email="k4m454k@gmail.com", description="VerbariusRus", long_description=long_description, long_description_content_type="te...
27.130435
50
0.658654
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="verbarius", version="0.7", author="Vadim Apenko", author_email="k4m454k@gmail.com", description="VerbariusRus", long_description=long_description, long_description_content_type="te...
true
true
1c38c04a0ea5aaf4c7610e0a4db970bfce3dc8d0
3,895
py
Python
tests/test_utils.py
Algebra8/pyopenapi3
ebfb2b99e185277845ac9fc53aafaa1505339c11
[ "MIT" ]
null
null
null
tests/test_utils.py
Algebra8/pyopenapi3
ebfb2b99e185277845ac9fc53aafaa1505339c11
[ "MIT" ]
21
2021-03-27T22:32:51.000Z
2021-04-13T05:37:17.000Z
tests/test_utils.py
Algebra8/pyopenapi3
ebfb2b99e185277845ac9fc53aafaa1505339c11
[ "MIT" ]
null
null
null
from unittest import mock from pyopenapi3.objects import ( TextPlainMediaType, JSONMediaType, ) from pyopenapi3.data_types import ( Email, Int64, String, Component, Array ) from pyopenapi3.schemas import ( MediaTypeObject, Int64DTSchema, ReferenceObject, ArrayDTSchema, A...
26.14094
72
0.674711
from unittest import mock from pyopenapi3.objects import ( TextPlainMediaType, JSONMediaType, ) from pyopenapi3.data_types import ( Email, Int64, String, Component, Array ) from pyopenapi3.schemas import ( MediaTypeObject, Int64DTSchema, ReferenceObject, ArrayDTSchema, A...
true
true
1c38c159ae02da710e19c4593c15a0eaa92ab01e
3,528
py
Python
python-midonetclient/src/midonetclient/neutron/chain_rule.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
python-midonetclient/src/midonetclient/neutron/chain_rule.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
python-midonetclient/src/midonetclient/neutron/chain_rule.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
1
2018-10-25T05:52:05.000Z
2018-10-25T05:52:05.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2014 Midokura Europe SARL, All Rights Reserved. # 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://w...
34.252427
76
0.673186
import logging from midonetclient import url_provider from midonetclient import util from midonetclient import vendor_media_type as mt LOG = logging.getLogger(__name__) class ChainRuleUrlProviderMixin(url_provider.UrlProviderMixin): def chain_url(self, chain_id): return self.template_u...
true
true
1c38c2d8958f5e1c652a51619a36b079c004fd36
37,135
py
Python
cinder/volume/drivers/pure.py
tlakshman26/cinder-https-changes
c688a0af521e8679ac8f68d3dd035fe998e736d3
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/pure.py
tlakshman26/cinder-https-changes
c688a0af521e8679ac8f68d3dd035fe998e736d3
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/pure.py
tlakshman26/cinder-https-changes
c688a0af521e8679ac8f68d3dd035fe998e736d3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Pure Storage, 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 re...
39.547391
79
0.604632
import math import re import uuid from oslo_config import cfg from oslo_log import log as logging from oslo_utils import excutils from oslo_utils import units from cinder import exception from cinder.i18n import _, _LE, _LI, _LW from cinder import objects from cinder import utils from cinder.volume imp...
true
true
1c38c2dcd187ff71b618077eaaff3992fe8344e0
7,427
py
Python
tests/micro/qemu/test_zephyr.py
zhenlohuang/tvm
fd2e6d17120a79533852c6bb705429d9c7bc286b
[ "Apache-2.0" ]
1
2021-06-08T11:55:55.000Z
2021-06-08T11:55:55.000Z
tests/micro/qemu/test_zephyr.py
zhenlohuang/tvm
fd2e6d17120a79533852c6bb705429d9c7bc286b
[ "Apache-2.0" ]
null
null
null
tests/micro/qemu/test_zephyr.py
zhenlohuang/tvm
fd2e6d17120a79533852c6bb705429d9c7bc286b
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.586207
99
0.667834
import contextlib import copy import datetime import glob import os import subprocess import sys import pytest import numpy as np import tvm import tvm.rpc import tvm.micro import tvm.relay as relay from tvm.micro.contrib import zephyr from tvm.contrib import utils BUILD = True DEBUG = False TARG...
true
true
1c38c3384d90c21d61e7e321827695822dca8ba3
1,590
py
Python
tests/performance_boundaries.py
noah-ziethen/py-pde
b88e86439290c31284a4ac665a8e9ff34d08b494
[ "MIT" ]
null
null
null
tests/performance_boundaries.py
noah-ziethen/py-pde
b88e86439290c31284a4ac665a8e9ff34d08b494
[ "MIT" ]
null
null
null
tests/performance_boundaries.py
noah-ziethen/py-pde
b88e86439290c31284a4ac665a8e9ff34d08b494
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from pathlib import Path PACKAGE_PATH = Path(__file__).resolve().parents[1] sys.path.append(str(PACKAGE_PATH)) import numpy as np from pde import UnitGrid, ScalarField from pde.grids.boundaries.axes import Boundaries from pde.tools.misc import estimate_computation_speed def main...
30.576923
77
0.591824
import sys from pathlib import Path PACKAGE_PATH = Path(__file__).resolve().parents[1] sys.path.append(str(PACKAGE_PATH)) import numpy as np from pde import UnitGrid, ScalarField from pde.grids.boundaries.axes import Boundaries from pde.tools.misc import estimate_computation_speed def main(): print('Reports...
true
true
1c38c3c9be5af7fa0cb76dea02e8fa8c675d90e3
1,466
py
Python
lsml/util/test/test_distance_transform.py
sandeepdas05/lsm-crack-width
38460e514d48f3424bb8d3bd58cb3eb330153e64
[ "BSD-3-Clause" ]
24
2020-01-30T15:53:33.000Z
2022-01-15T09:46:24.000Z
lsml/util/test/test_distance_transform.py
sandeepdas05/lsm-crack-width
38460e514d48f3424bb8d3bd58cb3eb330153e64
[ "BSD-3-Clause" ]
null
null
null
lsml/util/test/test_distance_transform.py
sandeepdas05/lsm-crack-width
38460e514d48f3424bb8d3bd58cb3eb330153e64
[ "BSD-3-Clause" ]
13
2019-12-05T08:32:11.000Z
2022-03-20T03:12:03.000Z
import unittest import numpy as np from lsml.util.distance_transform import ( distance_transform) class TestDistanceTransform(unittest.TestCase): def test_distance_transform(self): arr = np.r_[-1, -1, 1, -1, -1.] dist, mask = distance_transform(arr, band=1, dx=[1.]) true_dist = np...
27.148148
76
0.579127
import unittest import numpy as np from lsml.util.distance_transform import ( distance_transform) class TestDistanceTransform(unittest.TestCase): def test_distance_transform(self): arr = np.r_[-1, -1, 1, -1, -1.] dist, mask = distance_transform(arr, band=1, dx=[1.]) true_dist = np...
true
true
1c38c4f6facdf89d6944b5e36cd8a47770f49d78
1,735
py
Python
yzrpc/schema.py
ml444/yz-rpc
f3b6cb76dab72e1763d759080854c11aa6ade872
[ "Apache-2.0" ]
5
2021-04-28T09:12:04.000Z
2021-11-25T13:50:32.000Z
yzrpc/schema.py
ml444/yz-rpc
f3b6cb76dab72e1763d759080854c11aa6ade872
[ "Apache-2.0" ]
null
null
null
yzrpc/schema.py
ml444/yz-rpc
f3b6cb76dab72e1763d759080854c11aa6ade872
[ "Apache-2.0" ]
2
2021-07-27T04:11:51.000Z
2022-01-06T09:36:06.000Z
#!/usr/bin/python3.7+ # -*- coding:utf-8 -*- from typing import Tuple from pydantic.main import BaseModel from yzrpc.proto import __proto_meta__, Protobuf class SchemaMeta(type): def __new__(cls, cls_name: str, bases: Tuple, cls_dict: dict): if not bases or object in bases: return super().__n...
30.438596
83
0.618444
from typing import Tuple from pydantic.main import BaseModel from yzrpc.proto import __proto_meta__, Protobuf class SchemaMeta(type): def __new__(cls, cls_name: str, bases: Tuple, cls_dict: dict): if not bases or object in bases: return super().__new__(cls, cls_name, bases, cls_dict) ...
true
true
1c38c50dc1a147195769659ce2b2a6375f5fd9a1
101,789
py
Python
tests/unit/conftest.py
biorack/metatlas
ce3f03817a0a7c5500452689ad587ce94af26a1a
[ "BSD-3-Clause" ]
8
2016-08-10T22:29:39.000Z
2021-04-06T22:49:46.000Z
tests/unit/conftest.py
biorack/metatlas
ce3f03817a0a7c5500452689ad587ce94af26a1a
[ "BSD-3-Clause" ]
111
2016-04-27T23:18:12.000Z
2022-03-15T23:55:52.000Z
tests/unit/conftest.py
biorack/metatlas
ce3f03817a0a7c5500452689ad587ce94af26a1a
[ "BSD-3-Clause" ]
9
2016-08-21T16:23:02.000Z
2021-04-06T22:49:50.000Z
""" per-directory pytest configuration fixtures used across multiple files should go in here """ # pylint: disable=missing-function-docstring,unused-argument,line-too-long,too-many-lines,too-many-arguments import getpass import logging import os import sqlite3 import threading from datetime import datetime import py...
45.645291
1,115
0.518199
import getpass import logging import os import sqlite3 import threading from datetime import datetime import pytest import numpy as np import pandas as pd from metatlas.datastructures import metatlas_dataset as mads from metatlas.datastructures import metatlas_objects as metob from metatlas.datastructures import o...
true
true
1c38c6e2555cdc9fef807ccf4fe2adf10311bc9a
13,688
py
Python
tensorflow_text/python/ops/bert_tokenizer_test.py
hashim361/text
141ed3ae72078a5da431831ce718c8d09fbf4f92
[ "Apache-2.0" ]
1
2020-10-10T14:10:07.000Z
2020-10-10T14:10:07.000Z
tensorflow_text/python/ops/bert_tokenizer_test.py
pranayjoshi/text
5a12211ac370f989ca359d232d3081a889e859dd
[ "Apache-2.0" ]
null
null
null
tensorflow_text/python/ops/bert_tokenizer_test.py
pranayjoshi/text
5a12211ac370f989ca359d232d3081a889e859dd
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 TF.Text Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
31.179954
80
0.512566
from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl.testing import parameterized from tensorflow.python.framework import constant_op from tensorflow.python.framework import dtypes from tensorflow.python.framework import test_util from...
true
true
1c38c88dcbb721938ada5fea44e2f9d10ead5848
1,957
py
Python
src/remake/operators/condition.py
MVilstrup/remake
ddeacae55ef3c329a7780c9ad4e508833cd9112e
[ "MIT" ]
null
null
null
src/remake/operators/condition.py
MVilstrup/remake
ddeacae55ef3c329a7780c9ad4e508833cd9112e
[ "MIT" ]
null
null
null
src/remake/operators/condition.py
MVilstrup/remake
ddeacae55ef3c329a7780c9ad4e508833cd9112e
[ "MIT" ]
null
null
null
import sys from functools import partial, lru_cache from remake.errors import ConditionRuntimeError, ConditionTooBroadError, InvalidConditionLocationError from remake.operators.base import BaseOperator from remake.utils import get_info class ConditionOperator(BaseOperator): START = "inputs" GROUPS = "groups"...
36.924528
105
0.701073
import sys from functools import partial, lru_cache from remake.errors import ConditionRuntimeError, ConditionTooBroadError, InvalidConditionLocationError from remake.operators.base import BaseOperator from remake.utils import get_info class ConditionOperator(BaseOperator): START = "inputs" GROUPS = "groups"...
true
true
1c38c8be779aad6c2630ee32ebf7313bb888d8e3
869
py
Python
drfexample/bookmarks/migrations/0002_auto_20190306_1630.py
craigderington/django-drf-examples
24e3abbdfcd5e5d3fbea9df54f80e41157194339
[ "Apache-2.0" ]
null
null
null
drfexample/bookmarks/migrations/0002_auto_20190306_1630.py
craigderington/django-drf-examples
24e3abbdfcd5e5d3fbea9df54f80e41157194339
[ "Apache-2.0" ]
4
2019-09-17T05:45:01.000Z
2021-06-10T21:15:07.000Z
drfexample/bookmarks/migrations/0002_auto_20190306_1630.py
craigderington/django-drf-examples
24e3abbdfcd5e5d3fbea9df54f80e41157194339
[ "Apache-2.0" ]
1
2020-04-25T06:48:34.000Z
2020-04-25T06:48:34.000Z
# Generated by Django 2.1.7 on 2019-03-06 16:30 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('bookmarks', '0001_initial'), ] operations = [ migrations.AlterField( ...
28.032258
136
0.61565
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('bookmarks', '0001_initial'), ] operations = [ migrations.AlterField( model_name='bookmark', name=...
true
true
1c38c8e85d5428ec424cf33acc88a75d728a55d7
1,180
py
Python
chapter5/demo/code/5-3_neural_network.py
hitaitengteng/python
4e07fe6755ef1e0e0c1193249446e5246c89236e
[ "MIT" ]
null
null
null
chapter5/demo/code/5-3_neural_network.py
hitaitengteng/python
4e07fe6755ef1e0e0c1193249446e5246c89236e
[ "MIT" ]
null
null
null
chapter5/demo/code/5-3_neural_network.py
hitaitengteng/python
4e07fe6755ef1e0e0c1193249446e5246c89236e
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- # 使用神经网络算法预测销量高低 import pandas as pd # 参数初始化 inputfile = '../data/sales_data.xls' data = pd.read_excel(inputfile, index_col=u'序号') # 导入数据 # 数据是类别标签,要将它转换为数据 # 用1来表示“好”、“是”、“高”这三个属性,用0来表示“坏”、“否”、“低” data[data == u'好'] = 1 data[data == u'是'] = 1 data[data == u'高'] = 1 data[data != 1] = 0 x = da...
30.25641
66
0.717797
import pandas as pd inputfile = '../data/sales_data.xls' data = pd.read_excel(inputfile, index_col=u'序号') data[data == u'好'] = 1 data[data == u'是'] = 1 data[data == u'高'] = 1 data[data != 1] = 0 x = data.iloc[:, :3].as_matrix().astype(int) y = data.iloc[:, 3].as_matrix().astype(int) from keras.models import ...
true
true
1c38c9ad283531a271d1e7b3025f31ceae3f7b89
3,629
py
Python
playbooks/enumerate/interesting_files.py
Pheelbert/phcat
5a97b2033a733f9be217863f33bc442aee8a419b
[ "MIT" ]
null
null
null
playbooks/enumerate/interesting_files.py
Pheelbert/phcat
5a97b2033a733f9be217863f33bc442aee8a419b
[ "MIT" ]
null
null
null
playbooks/enumerate/interesting_files.py
Pheelbert/phcat
5a97b2033a733f9be217863f33bc442aee8a419b
[ "MIT" ]
null
null
null
from typing import List, Tuple from pheelshell import Pheelshell from playbooks.playbook import Playbook class EnumerateInterestingFiles(Playbook): @staticmethod def description(): return 'Finds interesting files that your user has some access to.' def __init__(self): super().__init__() ...
43.202381
162
0.622761
from typing import List, Tuple from pheelshell import Pheelshell from playbooks.playbook import Playbook class EnumerateInterestingFiles(Playbook): @staticmethod def description(): return 'Finds interesting files that your user has some access to.' def __init__(self): super().__init__() ...
true
true
1c38c9cd1a04d923a16609354e9b9b3da40f76c4
602
py
Python
var/spack/repos/builtin/packages/ngmlr/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/ngmlr/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin/packages/ngmlr/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Ngmlr(CMakePackage): """Ngmlr is a long-read mapper designed to align PacBilo or Oxford ...
33.444444
73
0.722591
from spack import * class Ngmlr(CMakePackage): homepage = "https://github.com/philres/ngmlr" url = "https://github.com/philres/ngmlr/archive/v0.2.5.tar.gz" version('0.2.5', '1b2b1aaeb6a3accc8b9f3e5c29e77037')
true
true
1c38ca4dc80aa711ec0a11c3a3887d15fac2da33
195
py
Python
micasa/admin.py
kode-ai/JIRANI
cc31397fa9834da17d8fbba210fd6e29b904b118
[ "MIT" ]
null
null
null
micasa/admin.py
kode-ai/JIRANI
cc31397fa9834da17d8fbba210fd6e29b904b118
[ "MIT" ]
2
2021-06-10T22:20:59.000Z
2021-09-08T01:28:01.000Z
micasa/admin.py
kode-ai/JIRANI
cc31397fa9834da17d8fbba210fd6e29b904b118
[ "MIT" ]
1
2020-02-27T07:05:21.000Z
2020-02-27T07:05:21.000Z
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Hood) admin.site.register(Profile) admin.site.register(Business) admin.site.register(Post)
24.375
32
0.805128
from django.contrib import admin from .models import * admin.site.register(Hood) admin.site.register(Profile) admin.site.register(Business) admin.site.register(Post)
true
true
1c38ca4f0b0b985f7ba75056ec5c7c6e2582f6e6
1,120
py
Python
tests/funding_sources/test_funding_sources_program_gateway_create.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
tests/funding_sources/test_funding_sources_program_gateway_create.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
tests/funding_sources/test_funding_sources_program_gateway_create.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
import unittest from tests.lib.client import get_client from tests.lib.funding_sources import FundingSources from tests.lib.funding_source_verifications import verify_gateway_program_funding_source_response from marqeta.errors import MarqetaError class TestFundingSourceProgramGatewayCreate(unittest.TestCase): ""...
32.941176
97
0.748214
import unittest from tests.lib.client import get_client from tests.lib.funding_sources import FundingSources from tests.lib.funding_source_verifications import verify_gateway_program_funding_source_response from marqeta.errors import MarqetaError class TestFundingSourceProgramGatewayCreate(unittest.TestCase): @...
true
true
1c38ca8010cf51027ddcb508bb923252c7aac578
2,771
py
Python
scripts/run_frontend_tests.py
carolinajimenez26/oppia
8a8f07e37e11beb441a53635530e1d3cebe6beef
[ "Apache-2.0" ]
1
2019-11-05T09:32:39.000Z
2019-11-05T09:32:39.000Z
scripts/run_frontend_tests.py
TakorLucila/oppia
393a81474ddc02b7141eed80f33c720cde447517
[ "Apache-2.0" ]
13
2019-03-04T18:29:27.000Z
2019-08-24T23:27:36.000Z
scripts/run_frontend_tests.py
TakorLucila/oppia
393a81474ddc02b7141eed80f33c720cde447517
[ "Apache-2.0" ]
1
2020-10-04T06:54:41.000Z
2020-10-04T06:54:41.000Z
# Copyright 2019 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
31.850575
78
0.708409
from __future__ import absolute_import from __future__ import unicode_literals import argparse import os import subprocess import python_utils from . import build from . import common from . import install_third_party_libs from . import setup from . import setup_gae _PARSER = argparse.ArgumentPars...
true
true
1c38cac45be561ac81e1260eb4cda1d43f3cefaa
5,525
py
Python
xero_python/payrolluk/models/earnings_order.py
sromero84/xero-python
89558c0baa8080c3f522701eb1b94f909248dbd7
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/earnings_order.py
sromero84/xero-python
89558c0baa8080c3f522701eb1b94f909248dbd7
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/earnings_order.py
sromero84/xero-python
89558c0baa8080c3f522701eb1b94f909248dbd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Xero Payroll UK This is the Xero Payroll API for orgs in the UK region. # noqa: E501 OpenAPI spec version: 2.3.4 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel class EarningsOrder(Ba...
28.776042
114
0.628959
import re from xero_python.models import BaseModel class EarningsOrder(BaseModel): openapi_types = { "id": "str", "name": "str", "statutory_deduction_category": "StatutoryDeductionCategory", "liability_account_id": "str", "current_record": "bool", } attribu...
true
true
1c38cb38e1d009b37783b5306145cc7c6a958358
3,311
py
Python
pyteiser/wrappers/preprocess_custom_expression_profile.py
goodarzilab/pyteiser
3ac78604c768957022cc7751ccdd337960a816f2
[ "MIT" ]
6
2020-12-01T08:10:07.000Z
2022-01-17T02:09:13.000Z
pyteiser/wrappers/preprocess_custom_expression_profile.py
goodarzilab/pyteiser
3ac78604c768957022cc7751ccdd337960a816f2
[ "MIT" ]
4
2021-05-19T06:24:30.000Z
2022-01-27T20:18:44.000Z
pyteiser/wrappers/preprocess_custom_expression_profile.py
goodarzilab/pyteiser
3ac78604c768957022cc7751ccdd337960a816f2
[ "MIT" ]
5
2020-07-04T02:05:30.000Z
2021-06-26T10:24:16.000Z
import numpy as np import pandas as pd import argparse from .. import IO def handler(raw_args = None): parser = argparse.ArgumentParser() parser.add_argument("--rna_bin_file", help="binarized sequence file", type=str) parser.add_argument("--exp_values_file", help="expression values in a csv format", typ...
39.891566
159
0.740562
import numpy as np import pandas as pd import argparse from .. import IO def handler(raw_args = None): parser = argparse.ArgumentParser() parser.add_argument("--rna_bin_file", help="binarized sequence file", type=str) parser.add_argument("--exp_values_file", help="expression values in a csv format", typ...
true
true
1c38cc555b631ea1f4f20f9527e9744aeeb5bda1
2,928
py
Python
font.py
SnorlaxH/neodgm
72844d6a32a6ba6c4064b03bc19ebe21d92037ed
[ "WTFPL" ]
null
null
null
font.py
SnorlaxH/neodgm
72844d6a32a6ba6c4064b03bc19ebe21d92037ed
[ "WTFPL" ]
null
null
null
font.py
SnorlaxH/neodgm
72844d6a32a6ba6c4064b03bc19ebe21d92037ed
[ "WTFPL" ]
null
null
null
import os import sys import glob import fontforge if len(sys.argv) < 2: print('Expected a version string as the first argument.') sys.exit(1) # # These tables are used to combine hangul syllable characters. # cho_tbl = [ [0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 3, 3, 1, 2, 4, 4, 4, 2, 1, 3, 0], [5, 5, 5, 5, 5,...
25.911504
78
0.612363
import os import sys import glob import fontforge if len(sys.argv) < 2: print('Expected a version string as the first argument.') sys.exit(1) cho_tbl = [ [0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 3, 3, 1, 2, 4, 4, 4, 2, 1, 3, 0], [5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 6, 6, 7, 7, 7, 6, 6, 7, 5] ] jung_tbl = [0...
true
true
1c38cc6e68364eecde6dbfe7df3828874708e5bf
1,335
py
Python
setup.py
KingNonso/django-paystack
15cfccd54cf4d6aa45d52c492394280339aca3ca
[ "MIT" ]
null
null
null
setup.py
KingNonso/django-paystack
15cfccd54cf4d6aa45d52c492394280339aca3ca
[ "MIT" ]
null
null
null
setup.py
KingNonso/django-paystack
15cfccd54cf4d6aa45d52c492394280339aca3ca
[ "MIT" ]
null
null
null
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-paystack', ve...
35.131579
78
0.6397
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-paystack', version='0.2', packages=find_packages(...
true
true
1c38cf6402df531be865106d96fa9846fd8c5086
1,622
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/wsgi.py
huogerac/cookiecutter-django-simplesite
1b332aa1668b85b34dd486c451d1489abc8a719e
[ "BSD-3-Clause" ]
1
2016-10-22T22:42:24.000Z
2016-10-22T22:42:24.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/wsgi.py
huogerac/cookiecutter-django-simplesite
1b332aa1668b85b34dd486c451d1489abc8a719e
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/wsgi.py
huogerac/cookiecutter-django-simplesite
1b332aa1668b85b34dd486c451d1489abc8a719e
[ "BSD-3-Clause" ]
null
null
null
""" WSGI config for {{ cookiecutter.project_slug }} project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via t...
41.589744
102
0.800863
import os from os.path import abspath, dirname from sys import path SITE_ROOT = dirname(dirname(abspath(__file__))) path.append(SITE_ROOT) from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ cookiecutter.project_slug }}.settings.production") # setting points ...
true
true
1c38d23c0dff02c34905f15172951975a609a35b
4,537
py
Python
eval_segmentation.py
CheesyB/cpointnet
bcb3eaa44e50fc643e2b226457f4f583989664a9
[ "MIT" ]
null
null
null
eval_segmentation.py
CheesyB/cpointnet
bcb3eaa44e50fc643e2b226457f4f583989664a9
[ "MIT" ]
null
null
null
eval_segmentation.py
CheesyB/cpointnet
bcb3eaa44e50fc643e2b226457f4f583989664a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import glob import os import numpy as np import random import time import datetime import torch import torch.optim as optim from torch.autograd import Variable from pathlib import Path from torch.autograd import Variable from dataset.scenedataset import Sce...
34.633588
100
0.642495
import logging import glob import os import numpy as np import random import time import datetime import torch import torch.optim as optim from torch.autograd import Variable from pathlib import Path from torch.autograd import Variable from dataset.scenedataset import SceneDataset from pointnet import PointNetDens...
true
true
1c38d3247046cb64c3723310257d23830803db72
7,216
py
Python
src/resources/crawlerResource.py
juliangruendner/ketos_preprocessing
b56f2fd6efe3e9156959b9bafe9b5550214ea65a
[ "MIT" ]
2
2018-07-05T15:37:47.000Z
2018-09-24T18:11:20.000Z
src/resources/crawlerResource.py
juliangruendner/ketos_preprocessing
b56f2fd6efe3e9156959b9bafe9b5550214ea65a
[ "MIT" ]
null
null
null
src/resources/crawlerResource.py
juliangruendner/ketos_preprocessing
b56f2fd6efe3e9156959b9bafe9b5550214ea65a
[ "MIT" ]
null
null
null
from flask_restful import reqparse, abort from flask_restful_swagger_2 import swagger, Resource from resources import aggregationResource import configuration from flask import request from lib import mongodbConnection, crawler from bson.objectid import ObjectId from bson import json_util from datetime import datetime ...
34.859903
166
0.575388
from flask_restful import reqparse, abort from flask_restful_swagger_2 import swagger, Resource from resources import aggregationResource import configuration from flask import request from lib import mongodbConnection, crawler from bson.objectid import ObjectId from bson import json_util from datetime import datetime ...
true
true
1c38d5197986669398b23b7516d88f9ff6dafa61
18,451
py
Python
python/paddle/__init__.py
heliqi/Paddle
feb0ed1b912b66de55c30d8af1ccc61cc1fdf59b
[ "Apache-2.0" ]
null
null
null
python/paddle/__init__.py
heliqi/Paddle
feb0ed1b912b66de55c30d8af1ccc61cc1fdf59b
[ "Apache-2.0" ]
9
2021-08-03T11:39:03.000Z
2021-09-16T08:03:58.000Z
python/paddle/__init__.py
heliqi/Paddle
feb0ed1b912b66de55c30d8af1ccc61cc1fdf59b
[ "Apache-2.0" ]
1
2021-07-15T09:23:23.000Z
2021-07-15T09:23:23.000Z
# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
35.346743
90
0.643813
try: from paddle.version import full_version as __version__ from paddle.version import commit as __git_commit__ except ImportError: import sys sys.stderr.write('''Warning with import paddle: you should not import paddle from the source directory; please install paddlepaddle*.whl first...
true
true
1c38d75d08ff1af24cc784a0ef6f11ff30d07729
273
py
Python
python/design_patterns/env/lib/python3.7/site-packages/sphinxcontrib/htmlhelp/version.py
lmregus/Portfolio
9a751443edbfe5ff2b47cdeacca86761ed03e81f
[ "MIT" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
venv/lib/python3.6/site-packages/sphinxcontrib/htmlhelp/version.py
metu-sparg/higrid
ebee0f35ea1712a01f3fdbaae132127ce4833baf
[ "BSD-3-Clause" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
python/design_patterns/env/lib/python3.7/site-packages/sphinxcontrib/htmlhelp/version.py
lmregus/Portfolio
9a751443edbfe5ff2b47cdeacca86761ed03e81f
[ "MIT" ]
5
2019-04-27T01:19:47.000Z
2020-09-20T15:15:19.000Z
""" sphinxcontrib.htmlhelp.version ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2007-2019 by the Sphinx team, see README. :license: BSD, see LICENSE for details. """ __version__ = '1.0.1' __version_info__ = tuple(map(int, __version__.split('.')))
24.818182
67
0.604396
__version__ = '1.0.1' __version_info__ = tuple(map(int, __version__.split('.')))
true
true
1c38d7a1a902eec01def757b468cfc26b6556730
8,788
py
Python
plugins/callbacks.py
midhunsaji/emmawatsonfilter1bot
947c1649653f8421adb6ce4c1cfd64624ce43835
[ "MIT" ]
null
null
null
plugins/callbacks.py
midhunsaji/emmawatsonfilter1bot
947c1649653f8421adb6ce4c1cfd64624ce43835
[ "MIT" ]
null
null
null
plugins/callbacks.py
midhunsaji/emmawatsonfilter1bot
947c1649653f8421adb6ce4c1cfd64624ce43835
[ "MIT" ]
1
2021-12-31T02:30:44.000Z
2021-12-31T02:30:44.000Z
import os import ast from pyrogram import Client as trojanz from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton if bool(os.environ.get("WEBHOOK", False)): from sample_config import Config else: from config import Config from script import Script from database.filters_mdb import del_all, fin...
30.943662
104
0.517865
import os import ast from pyrogram import Client as trojanz from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton if bool(os.environ.get("WEBHOOK", False)): from sample_config import Config else: from config import Config from script import Script from database.filters_mdb import del_all, fin...
true
true
1c38d890af8cbf094361f06350486336a75eaec7
899
py
Python
accounts/models.py
DevangS/CoralNet
7c56d4ec95a771718175bd94c3ef51c4095082e3
[ "BSD-2-Clause" ]
4
2015-12-23T05:14:35.000Z
2019-07-09T03:27:10.000Z
accounts/models.py
DevangS/CoralNet
7c56d4ec95a771718175bd94c3ef51c4095082e3
[ "BSD-2-Clause" ]
3
2015-04-07T02:45:15.000Z
2015-07-01T19:25:10.000Z
accounts/models.py
DevangS/CoralNet
7c56d4ec95a771718175bd94c3ef51c4095082e3
[ "BSD-2-Clause" ]
2
2016-01-21T17:25:48.000Z
2019-08-29T18:42:14.000Z
from django.db import models from django.utils.translation import ugettext_lazy as _ from userena.models import UserenaLanguageBaseProfile from userena.models import User class Profile(UserenaLanguageBaseProfile): user = models.OneToOneField(User, unique = True, verbose_name = _('user'),related_name = 'my_profile'...
49.944444
116
0.756396
from django.db import models from django.utils.translation import ugettext_lazy as _ from userena.models import UserenaLanguageBaseProfile from userena.models import User class Profile(UserenaLanguageBaseProfile): user = models.OneToOneField(User, unique = True, verbose_name = _('user'),related_name = 'my_profile'...
true
true
1c38d961b79a4b3c0fee5af2ed73a4459bd5b507
2,988
py
Python
pyvisdk/client.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/client.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/client.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
''' Created on Mar 6, 2011 @author: eplaster ''' from suds import MethodNotFound import logging import os.path import suds import urllib log = logging.getLogger(__name__) log.setLevel(logging.INFO) WSDL_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'wsdl') class SudsClientFactory(object): _clie...
32.129032
124
0.60241
from suds import MethodNotFound import logging import os.path import suds import urllib log = logging.getLogger(__name__) log.setLevel(logging.INFO) WSDL_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'wsdl') class SudsClientFactory(object): _client = None _sms_client = None @classmethod ...
true
true
1c38db8cad4fa2f949d9f9b56d2d2eded4eb5d08
1,240
py
Python
code_samples/main_plotly_widget.py
lcopey/node_editor
04d56ae4c7f2149e46903d5dd2e46f3906ef69e6
[ "MIT" ]
1
2021-04-30T11:28:42.000Z
2021-04-30T11:28:42.000Z
code_samples/main_plotly_widget.py
lcopey/node_editor
04d56ae4c7f2149e46903d5dd2e46f3906ef69e6
[ "MIT" ]
null
null
null
code_samples/main_plotly_widget.py
lcopey/node_editor
04d56ae4c7f2149e46903d5dd2e46f3906ef69e6
[ "MIT" ]
null
null
null
from PyQt5 import QtCore, QtWidgets, QtWebEngineWidgets from PyQt5.QtWebEngineWidgets import QWebEngineView import plotly.express as px #pip : # pyqt5 5.15.2 # plotly 4.14.3 # pyqtwebengine 5.15.2 # pip # pyqt5 : 5.15.2 # plotly : 4.14.3 # pyqtwebengine : 5.15.2 cl...
28.837209
95
0.641129
from PyQt5 import QtCore, QtWidgets, QtWebEngineWidgets from PyQt5.QtWebEngineWidgets import QWebEngineView import plotly.express as px class Widget(QtWidgets.QWidget): def __init__(self, parent=None): super().__init__(parent) self.button = QtWidgets.QPushButton('Plot', self) sel...
true
true
1c38dccf149299beb8f21628c857cbba419d3635
1,839
py
Python
mkt/purchase/webpay_tasks.py
chrisdavidmills/zamboni
09e05bad2570663d25408793289c81324d3e952e
[ "BSD-3-Clause" ]
null
null
null
mkt/purchase/webpay_tasks.py
chrisdavidmills/zamboni
09e05bad2570663d25408793289c81324d3e952e
[ "BSD-3-Clause" ]
null
null
null
mkt/purchase/webpay_tasks.py
chrisdavidmills/zamboni
09e05bad2570663d25408793289c81324d3e952e
[ "BSD-3-Clause" ]
1
2021-03-13T00:33:12.000Z
2021-03-13T00:33:12.000Z
import logging from celeryutils import task from jingo.helpers import datetime from tower import ugettext as _ import amo from amo.decorators import write from amo.helpers import absolutify from amo.urlresolvers import reverse from amo.utils import get_locale_from_lang, send_html_mail_jinja from stats.models import C...
36.058824
73
0.656879
import logging from celeryutils import task from jingo.helpers import datetime from tower import ugettext as _ import amo from amo.decorators import write from amo.helpers import absolutify from amo.urlresolvers import reverse from amo.utils import get_locale_from_lang, send_html_mail_jinja from stats.models import C...
true
true
1c38ddf16aa8af9fd8d109632806264210930a3c
8,795
py
Python
readers/caption_graph_reader.py
yekeren/WSSGG
4d20dadffe7584ac2c7f26419960512380b8d06e
[ "Apache-2.0" ]
33
2021-04-14T01:27:34.000Z
2022-03-30T03:32:00.000Z
readers/caption_graph_reader.py
yekeren/WSSGG
4d20dadffe7584ac2c7f26419960512380b8d06e
[ "Apache-2.0" ]
null
null
null
readers/caption_graph_reader.py
yekeren/WSSGG
4d20dadffe7584ac2c7f26419960512380b8d06e
[ "Apache-2.0" ]
6
2021-04-14T14:43:19.000Z
2022-01-01T14:36:11.000Z
# Copyright 2020 Keren Ye, University of Pittsburgh # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
35.18
80
0.66606
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from protos import reader_pb2 from tf_slim import tfexample_decoder from graph_nets import utils_tf from graph_nets.graphs import GraphsTuple def _parse_single_example(...
true
true
1c38de4ecdbdf4b3e8c0e08cbd427c35f5aa2c18
208
py
Python
directory_app/config.py
mdprewitt/sigmund_droid
aa33df7285f2ab468016c08c98505bc2f8436734
[ "MIT" ]
null
null
null
directory_app/config.py
mdprewitt/sigmund_droid
aa33df7285f2ab468016c08c98505bc2f8436734
[ "MIT" ]
null
null
null
directory_app/config.py
mdprewitt/sigmund_droid
aa33df7285f2ab468016c08c98505bc2f8436734
[ "MIT" ]
1
2017-05-31T16:34:36.000Z
2017-05-31T16:34:36.000Z
import os basedir = os.path.abspath(os.path.dirname(__file__)) SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'directory.db') SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
34.666667
78
0.764423
import os basedir = os.path.abspath(os.path.dirname(__file__)) SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'directory.db') SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
true
true
1c38df0326d8b746f40fd4e79b8d48711c60488c
15,455
py
Python
oscar/lib/python2.7/site-packages/dns/rdata.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/rdata.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/rdata.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2001-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PRO...
33.671024
79
0.604465
from io import BytesIO import base64 import binascii import dns.exception import dns.name import dns.rdataclass import dns.rdatatype import dns.tokenizer import dns.wiredata from ._compat import xrange, string_types, text_type _hex_chunksize = 32 def _hexify(data, chunksize=_hex_chu...
true
true
1c38df18a2327e94efde55196d9aed1303aa21ac
51
py
Python
src/medias/__init__.py
jhernandez18p/backend-lmp
853e274f37fe8b3c6f811a4ccd8f33bf020015d2
[ "MIT" ]
14
2019-10-03T19:37:30.000Z
2019-10-16T02:12:32.000Z
src/medias/__init__.py
jhernandez18p/backend-lmp
853e274f37fe8b3c6f811a4ccd8f33bf020015d2
[ "MIT" ]
6
2020-02-11T23:20:46.000Z
2022-03-11T23:32:23.000Z
src/medias/__init__.py
jhernandez18p/backend-lmp
853e274f37fe8b3c6f811a4ccd8f33bf020015d2
[ "MIT" ]
null
null
null
default_app_config = 'src.medias.apps.MediasConfig'
51
51
0.843137
default_app_config = 'src.medias.apps.MediasConfig'
true
true
1c38dfcb0c4a00f686e8e705afe804167a437737
7,944
py
Python
jarvis.py
vineelsai26/J.A.R.V.I.S
5866f73c0186687c1f0ca17b6e0fdd04d627265f
[ "MIT" ]
37
2020-10-04T13:34:16.000Z
2021-12-15T10:44:15.000Z
jarvis.py
vineelsai26/J.A.R.V.I.S
5866f73c0186687c1f0ca17b6e0fdd04d627265f
[ "MIT" ]
13
2020-10-04T12:22:48.000Z
2020-11-01T14:03:26.000Z
jarvis.py
vineelsai26/J.A.R.V.I.S
5866f73c0186687c1f0ca17b6e0fdd04d627265f
[ "MIT" ]
29
2020-10-04T14:02:14.000Z
2021-10-09T08:02:07.000Z
import pyttsx3 import wikipedia import speech_recognition as sr import webbrowser import datetime import os import sys import smtplib import psutil import pyjokes import pyautogui from news import speak_news, getNewsUrl from diction import translate from loc import weather from youtube import youtube from quote import ...
28.6787
94
0.563444
import pyttsx3 import wikipedia import speech_recognition as sr import webbrowser import datetime import os import sys import smtplib import psutil import pyjokes import pyautogui from news import speak_news, getNewsUrl from diction import translate from loc import weather from youtube import youtube from quote import ...
true
true
1c38dfd1af8fff86c7708e78abee25fcf5601814
1,431
py
Python
blog/tests.py
Psemp/artsetforme_public
240bb8ef22c0589f168b24c0ee5ed8e9030fe94a
[ "MIT" ]
null
null
null
blog/tests.py
Psemp/artsetforme_public
240bb8ef22c0589f168b24c0ee5ed8e9030fe94a
[ "MIT" ]
1
2021-10-08T22:20:09.000Z
2021-10-08T22:20:09.000Z
blog/tests.py
Psemp/artsetforme_public
240bb8ef22c0589f168b24c0ee5ed8e9030fe94a
[ "MIT" ]
null
null
null
from django.test import TestCase from backoffice.models import Topic from django.utils import timezone from django.urls import reverse from .models import Blogpost class BlogTest(TestCase): def setUp(self): self.category_1_info = { 'name': 'topic1', } Topic.objects.create...
30.446809
89
0.596785
from django.test import TestCase from backoffice.models import Topic from django.utils import timezone from django.urls import reverse from .models import Blogpost class BlogTest(TestCase): def setUp(self): self.category_1_info = { 'name': 'topic1', } Topic.objects.create...
true
true
1c38e17812cf212a45e39667811982b47fb89a65
1,473
py
Python
corehq/apps/commtrack/management/commands/check_multiple_parentage.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/commtrack/management/commands/check_multiple_parentage.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/commtrack/management/commands/check_multiple_parentage.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand from corehq.apps.domain.models import Domain from corehq.apps.locations.models import Location import csv class Command(BaseCommand): def handle(self, *args, **options): with open('parentage_results.csv', 'wb+') as csvfile: csv_writer = csv.w...
32.733333
72
0.401901
from django.core.management.base import BaseCommand from corehq.apps.domain.models import Domain from corehq.apps.locations.models import Location import csv class Command(BaseCommand): def handle(self, *args, **options): with open('parentage_results.csv', 'wb+') as csvfile: csv_writer = csv.w...
true
true
1c38e19e93cf4d8e629f1a1cad228bd6e23f1bd9
11,832
py
Python
051_East_Text_Detection/text_detection_video_openvino.py
IgiArdiyanto/PINTO_model_zoo
9247b56a7dff37f28a8a7822a7ef4dd9adf7234d
[ "MIT" ]
1,529
2019-12-11T13:36:23.000Z
2022-03-31T18:38:27.000Z
051_East_Text_Detection/text_detection_video_openvino.py
IgiArdiyanto/PINTO_model_zoo
9247b56a7dff37f28a8a7822a7ef4dd9adf7234d
[ "MIT" ]
200
2020-01-06T09:24:42.000Z
2022-03-31T17:29:08.000Z
051_East_Text_Detection/text_detection_video_openvino.py
IgiArdiyanto/PINTO_model_zoo
9247b56a7dff37f28a8a7822a7ef4dd9adf7234d
[ "MIT" ]
288
2020-02-21T14:56:02.000Z
2022-03-30T03:00:35.000Z
from imutils.video import VideoStream from imutils.video import FPS import numpy as np import argparse import imutils import time import cv2 import os try: from armv7l.openvino.inference_engine import IENetwork, IECore except: from openvino.inference_engine import IENetwork, IECore fpsstr = "" framecount = 0 t...
38.045016
149
0.634466
from imutils.video import VideoStream from imutils.video import FPS import numpy as np import argparse import imutils import time import cv2 import os try: from armv7l.openvino.inference_engine import IENetwork, IECore except: from openvino.inference_engine import IENetwork, IECore fpsstr = "" framecount = 0 t...
true
true
1c38e2c7aefebec42c213ec73e22b0e2e0d49554
1,135
py
Python
python-stdlib/ssl/setup.py
mkomon/micropython-lib
25ebe4a261e7b1c7c8471bceef2fd0e12837cdd2
[ "PSF-2.0" ]
1,556
2015-01-18T01:10:21.000Z
2022-03-31T23:27:33.000Z
python-stdlib/ssl/setup.py
Li-Lian1069/micropython-lib
1dfca5ad343b2841965df6c4e59f92d6d94a24bd
[ "PSF-2.0" ]
414
2015-01-01T09:01:22.000Z
2022-03-31T15:08:24.000Z
python-stdlib/ssl/setup.py
Li-Lian1069/micropython-lib
1dfca5ad343b2841965df6c4e59f92d6d94a24bd
[ "PSF-2.0" ]
859
2015-02-05T13:23:00.000Z
2022-03-28T02:28:16.000Z
import sys # Remove current dir from sys.path, otherwise setuptools will peek up our # module instead of system's. sys.path.pop(0) from setuptools import setup sys.path.append("..") import sdist_upip setup( name="micropython-ssl", version="0.1", description="Dummy ssl module for MicroPython", long_de...
45.4
490
0.757709
import sys sys.path.pop(0) from setuptools import setup sys.path.append("..") import sdist_upip setup( name="micropython-ssl", version="0.1", description="Dummy ssl module for MicroPython", long_description="This is a dummy implementation of a module for MicroPython standard library.\nIt contains z...
true
true