hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79617b8d9c5767823afe92665e25ffe68a36f5a7
401
py
Python
backend/core/MlDiagnosis/django_api/diabetesEnv/diabetes_api/wsgi.py
arc-arnob/Reddit-Clone
607918160596a10b0aff85bc7f472c8b76ace7c5
[ "Apache-2.0" ]
null
null
null
backend/core/MlDiagnosis/django_api/diabetesEnv/diabetes_api/wsgi.py
arc-arnob/Reddit-Clone
607918160596a10b0aff85bc7f472c8b76ace7c5
[ "Apache-2.0" ]
null
null
null
backend/core/MlDiagnosis/django_api/diabetesEnv/diabetes_api/wsgi.py
arc-arnob/Reddit-Clone
607918160596a10b0aff85bc7f472c8b76ace7c5
[ "Apache-2.0" ]
null
null
null
""" WSGI config for diabetes_api project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
23.588235
78
0.790524
79617d381dd784fefea766e6a266d7ad5dc348bb
567
py
Python
lint/run_linter.py
smartlab-br/smartlab-initiative-viewconf
f92c4481e8e696977c9e5a235ea550fc093f49c4
[ "MIT" ]
2
2019-07-25T21:14:52.000Z
2019-07-30T22:07:22.000Z
lint/run_linter.py
smartlab-br/smartlab-initiative-viewconf
f92c4481e8e696977c9e5a235ea550fc093f49c4
[ "MIT" ]
235
2019-07-29T13:04:05.000Z
2021-11-19T17:26:32.000Z
lint/run_linter.py
smartlab-br/smartlab-initiative-viewconf
f92c4481e8e696977c9e5a235ea550fc093f49c4
[ "MIT" ]
2
2019-07-30T22:07:29.000Z
2021-05-11T07:20:11.000Z
import os from yamllint.config import YamlLintConfig from yamllint import linter rootdir = '.' conf = YamlLintConfig('extends: default') rep = open('./lint/report.txt', "a+") for subdir, dirs, files in os.walk(rootdir): for file in files: if '.yaml' in file: rel_path = os.path.join(...
31.5
111
0.585538
79617d3f6689a8b11b8265e24c0112078576ab87
6,736
py
Python
source/Tools Integration/CE-Integration/CE-automation-scripts/4-Shutdown-all-servers.py
shyam-amazon/aws-cloudendure-migration-factory-solution
5d2aa971137346d2d9126b07776f2adc302410e0
[ "MIT-0" ]
24
2020-06-03T22:59:18.000Z
2022-02-07T19:25:32.000Z
source/Tools Integration/CE-Integration/CE-automation-scripts/4-Shutdown-all-servers.py
russomi-labs/aws-cloudendure-migration-factory-solution
2e7386ff3d5fca7847730aef0b6b05794d5579c6
[ "MIT-0" ]
4
2021-05-06T01:45:15.000Z
2021-10-16T23:32:34.000Z
source/Tools Integration/CE-Integration/CE-automation-scripts/4-Shutdown-all-servers.py
russomi-labs/aws-cloudendure-migration-factory-solution
2e7386ff3d5fca7847730aef0b6b05794d5579c6
[ "MIT-0" ]
21
2020-06-03T23:23:04.000Z
2022-03-25T16:11:33.000Z
######################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # SPDX-License-Identifier: MIT-0 # # ...
45.513514
201
0.557452
79617d5d93cdbd3294b52cd788db595e779babc4
3,938
py
Python
bokeh/util/tests/test_deprecation.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
12
2020-07-20T14:58:31.000Z
2021-09-04T22:15:14.000Z
bokeh/util/tests/test_deprecation.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
4
2021-03-18T22:30:03.000Z
2022-02-12T06:12:28.000Z
bokeh/util/tests/test_deprecation.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
3
2019-03-27T23:27:05.000Z
2020-08-05T19:03:19.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
37.150943
145
0.459116
79617dd8f634cdf43cf50e803892a4ac3f67a8b3
1,542
py
Python
modules/frame_utils.py
uzborg950/SARAS-ESAD-Baseline
5282a416840af100d0dfe31845031ea60cdcdfdc
[ "MIT" ]
1
2021-06-18T19:57:08.000Z
2021-06-18T19:57:08.000Z
modules/frame_utils.py
uzborg950/Surgical-Action-Detection-Using-Deep-Learning-Impl
5282a416840af100d0dfe31845031ea60cdcdfdc
[ "MIT" ]
null
null
null
modules/frame_utils.py
uzborg950/Surgical-Action-Detection-Using-Deep-Learning-Impl
5282a416840af100d0dfe31845031ea60cdcdfdc
[ "MIT" ]
null
null
null
import torch import numpy as np import os import cv2 import matplotlib.pyplot as plt import matplotlib.patches as patches def save_image(image_tensor,ax,filename): image = image_tensor.detach().cpu().numpy() if ax is None: figure, ax = plt.subplots(1) ax.imshow(image) plt.savefig(filename) ...
31.469388
155
0.63035
79617ed2e0e865eb3d073f24070d111f79507af8
72,013
py
Python
venv/lib/python3.6/site-packages/tensorboard/compat/proto/config_pb2.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
2
2020-09-30T00:11:09.000Z
2021-10-04T13:00:38.000Z
venv/lib/python3.6/site-packages/tensorboard/compat/proto/config_pb2.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/tensorboard/compat/proto/config_pb2.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorboard/compat/proto/config.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message ...
48.169231
7,829
0.764806
79617ff9bf18ed13a653b47682c9abe39e24c700
9,915
py
Python
owllook/views/admin_blueprint.py
putengfi/owllook
98f5ff95586d073c94623f7024caf1773a4a5e56
[ "Apache-2.0" ]
null
null
null
owllook/views/admin_blueprint.py
putengfi/owllook
98f5ff95586d073c94623f7024caf1773a4a5e56
[ "Apache-2.0" ]
null
null
null
owllook/views/admin_blueprint.py
putengfi/owllook
98f5ff95586d073c94623f7024caf1773a4a5e56
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from urllib.parse import urlparse, parse_qs from jinja2 import Environment, PackageLoader, select_autoescape from sanic import Blueprint from sanic.response import html, redirect from owllook.database.mongodb import MotorBase from owllook.fetcher.cache import get_the_latest_chapter from owllook....
45.691244
119
0.50237
796180eff4d8ed9d45cb9011697a5fd3ad61cf64
1,871
py
Python
python/phonenumbers/data/region_EE.py
nickhargreaves/python-phonenumbers
df203baa68fc307e5c833c015bee2e15386a8dbe
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/data/region_EE.py
nickhargreaves/python-phonenumbers
df203baa68fc307e5c833c015bee2e15386a8dbe
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/data/region_EE.py
nickhargreaves/python-phonenumbers
df203baa68fc307e5c833c015bee2e15386a8dbe
[ "Apache-2.0" ]
null
null
null
"""Auto-generated file, do not edit by hand. EE metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_EE = PhoneMetadata(id='EE', country_code=372, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d\\d|900)...
110.058824
235
0.64992
79618251e7a31d0121c0198051d9066bd80ba559
1,898
py
Python
src/solr_grid_tuning/grid_search.py
o19s/solr-grid-tuning
cf14a6b5e0b9cdf4fb83ffc9689b4296ff9cac01
[ "Apache-2.0" ]
null
null
null
src/solr_grid_tuning/grid_search.py
o19s/solr-grid-tuning
cf14a6b5e0b9cdf4fb83ffc9689b4296ff9cac01
[ "Apache-2.0" ]
null
null
null
src/solr_grid_tuning/grid_search.py
o19s/solr-grid-tuning
cf14a6b5e0b9cdf4fb83ffc9689b4296ff9cac01
[ "Apache-2.0" ]
null
null
null
from itertools import chain, combinations, product from sklearn.model_selection import ParameterGrid from collections.abc import Iterable from solr_grid_tuning.solr_query import SolrQuery param_grid = { 'qf': ['title', 'content', 'brandModelTokenized'], 'pf': ['title', 'content', 'brandModelTokenized'], 'f...
30.612903
111
0.624868
796182e2b7354f7a628e45cf79b4e0d6794b76c5
48,710
py
Python
tests/python/unittest/test_gluon.py
paroda/incubator-mxnet
9f14a68045a07d95cb8c86c3c614c84261507755
[ "Apache-2.0" ]
2
2018-09-20T10:10:18.000Z
2020-03-28T16:47:38.000Z
tests/python/unittest/test_gluon.py
paroda/incubator-mxnet
9f14a68045a07d95cb8c86c3c614c84261507755
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_gluon.py
paroda/incubator-mxnet
9f14a68045a07d95cb8c86c3c614c84261507755
[ "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...
32.473333
106
0.625703
7961831282665537e5141d9634e755c454359dec
1,651
py
Python
Microservices/Events/Events/events_app/events.py
satyap54/Microservices-Architecture
be397b351a61eb21229fad021590fcb0b07b8089
[ "MIT" ]
null
null
null
Microservices/Events/Events/events_app/events.py
satyap54/Microservices-Architecture
be397b351a61eb21229fad021590fcb0b07b8089
[ "MIT" ]
null
null
null
Microservices/Events/Events/events_app/events.py
satyap54/Microservices-Architecture
be397b351a61eb21229fad021590fcb0b07b8089
[ "MIT" ]
null
null
null
import requests from fastapi import APIRouter, Depends, HTTPException, status from models import Event, EventUser from typing import List from . schemas import EventPydantic from dependencies import oauth2_scheme, SECRET_KEY, ALGORITHM from producer import publish import jwt router = APIRouter(tags=["events"]) @rou...
29.482143
87
0.666263
796183429886a8e4a5c80e7513c3cf61506b6a74
2,032
py
Python
examples/adspygoogle/dfa/v1_20/get_activity_groups.py
cherry-wb/googleads-python-lib
24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04
[ "Apache-2.0" ]
null
null
null
examples/adspygoogle/dfa/v1_20/get_activity_groups.py
cherry-wb/googleads-python-lib
24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04
[ "Apache-2.0" ]
null
null
null
examples/adspygoogle/dfa/v1_20/get_activity_groups.py
cherry-wb/googleads-python-lib
24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04
[ "Apache-2.0" ]
2
2020-04-02T19:00:31.000Z
2020-08-06T03:28:38.000Z
#!/usr/bin/python # # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
31.75
80
0.728839
7961838e36f96e54575ffd9e80e313bea877c796
1,573
py
Python
solutions/question_answering_system/quick_deploy/server/src/operations/load.py
want-fly/bootcamp
e8b2d50413a1e530375372b402044175b69d8ec5
[ "Apache-2.0" ]
6
2021-05-24T10:51:48.000Z
2021-09-16T01:57:12.000Z
solutions/question_answering_system/quick_deploy/server/src/operations/load.py
want-fly/bootcamp
e8b2d50413a1e530375372b402044175b69d8ec5
[ "Apache-2.0" ]
null
null
null
solutions/question_answering_system/quick_deploy/server/src/operations/load.py
want-fly/bootcamp
e8b2d50413a1e530375372b402044175b69d8ec5
[ "Apache-2.0" ]
1
2021-10-09T06:35:42.000Z
2021-10-09T06:35:42.000Z
import sys import os import pandas as pd from sklearn.preprocessing import normalize sys.path.append("..") from config import DEFAULT_TABLE from logs import LOGGER # Get the vector of question def extract_features(file_dir, model): try: data = pd.read_csv(file_dir) question_data = data['question'...
34.955556
90
0.72918
79618390b0e7fa44ec575c4659e354795b43ca4b
2,434
py
Python
asdfghjkl/operations/conv.py
rioyokotalab/asdfghjkl
f435c1e2527162fb07512b4ce5058460aab238b9
[ "MIT" ]
null
null
null
asdfghjkl/operations/conv.py
rioyokotalab/asdfghjkl
f435c1e2527162fb07512b4ce5058460aab238b9
[ "MIT" ]
null
null
null
asdfghjkl/operations/conv.py
rioyokotalab/asdfghjkl
f435c1e2527162fb07512b4ce5058460aab238b9
[ "MIT" ]
null
null
null
import torch from torch import nn from .operation import Operation class Conv2d(Operation): """ module.weight: c_out x c_in x k_h x k_w module.bias: c_out x 1 Argument shapes in_data: n x (c_in)(kernel_size) x out_size out_grads: n x c_out x out_size kernel_size = (k_h)(k_w) out_siz...
31.61039
78
0.608463
796184158beafd6e3eedef25fe96372c8e7122e8
2,349
py
Python
src/blueberrypy/session.py
wyuenho/blueberrypy
c954cdbe9064853c96e61c0ae9c76a95b95c0c79
[ "BSD-3-Clause" ]
1
2016-09-05T18:45:41.000Z
2016-09-05T18:45:41.000Z
src/blueberrypy/session.py
wyuenho/blueberrypy
c954cdbe9064853c96e61c0ae9c76a95b95c0c79
[ "BSD-3-Clause" ]
null
null
null
src/blueberrypy/session.py
wyuenho/blueberrypy
c954cdbe9064853c96e61c0ae9c76a95b95c0c79
[ "BSD-3-Clause" ]
4
2016-09-05T18:47:00.000Z
2020-01-20T00:59:28.000Z
try: import cPickle as pickle except ImportError: import pickle import logging import math import threading from datetime import datetime from pprint import pformat from cherrypy.lib.sessions import Session from redis import StrictRedis as _RedisClient __all__ = ["RedisSession"] logger = logging.getLogge...
25.532609
84
0.619838
7961848509fde104001f4f9177a4e8db5155879c
4,356
py
Python
.history/run_update_20220328125616.py
miguel-fresh/geoip-translation
ccf9dbc0330e597704e57d8b2967fc9be16017ed
[ "Info-ZIP" ]
null
null
null
.history/run_update_20220328125616.py
miguel-fresh/geoip-translation
ccf9dbc0330e597704e57d8b2967fc9be16017ed
[ "Info-ZIP" ]
null
null
null
.history/run_update_20220328125616.py
miguel-fresh/geoip-translation
ccf9dbc0330e597704e57d8b2967fc9be16017ed
[ "Info-ZIP" ]
null
null
null
from asyncio.subprocess import STDOUT from fileinput import filename from genericpath import exists import subprocess from pathlib import Path from os import remove, rename, path import yaml def removeFileIfExists(file_path): if path.exists(file_path): remove(file_path) def checkExistence(path_to_check)...
28.847682
96
0.641414
796184cdb10ef991b2c9f093701d9dbd17e0ccff
2,376
py
Python
uvloop/examples/bench/rlserver.py
hand-code/readlab
a816f5af2d1894ee079b6f5deaabc841833e84d7
[ "MIT" ]
null
null
null
uvloop/examples/bench/rlserver.py
hand-code/readlab
a816f5af2d1894ee079b6f5deaabc841833e84d7
[ "MIT" ]
null
null
null
uvloop/examples/bench/rlserver.py
hand-code/readlab
a816f5af2d1894ee079b6f5deaabc841833e84d7
[ "MIT" ]
null
null
null
import argparse import asyncio import gc import uvloop import os.path import socket as socket_module from socket import * PRINT = 0 async def echo_client_streams(reader, writer): sock = writer.get_extra_info('socket') try: sock.setsockopt(IPPROTO_TCP, TCP_NODELAY, 1) except (OSError, NameError)...
25.010526
71
0.595118
7961851d61ce1c0add9b09a0926da31f60066d2e
1,129
py
Python
app/test/test_healthcheck.py
harshitsoni97/alegre
b19a4f283e7eb2c69a9f70d87c59f808ab3035fc
[ "MIT" ]
11
2018-02-07T00:16:54.000Z
2021-05-13T22:47:07.000Z
app/test/test_healthcheck.py
harshitsoni97/alegre
b19a4f283e7eb2c69a9f70d87c59f808ab3035fc
[ "MIT" ]
47
2018-11-26T23:17:37.000Z
2022-03-25T16:12:05.000Z
app/test/test_healthcheck.py
harshitsoni97/alegre
b19a4f283e7eb2c69a9f70d87c59f808ab3035fc
[ "MIT" ]
9
2019-05-23T22:06:03.000Z
2020-10-27T20:45:04.000Z
import unittest import json from flask import current_app as app from unittest.mock import patch from app.test.base import BaseTestCase class TestHealthcheckBlueprint(BaseTestCase): def test_healthcheck_api_with_good_config(self): response = self.client.get('/healthcheck/') result = json.loads(response.data...
28.948718
63
0.729849
796185911b60ade4991c7bd39e51dfbfea375c91
1,834
py
Python
emission/net/usercache/formatters/android/motion_activity.py
alvinalexander/e-mission-server
a9104fb0d448c64ad95f44738a5f75b45a77c0ab
[ "BSD-3-Clause" ]
null
null
null
emission/net/usercache/formatters/android/motion_activity.py
alvinalexander/e-mission-server
a9104fb0d448c64ad95f44738a5f75b45a77c0ab
[ "BSD-3-Clause" ]
null
null
null
emission/net/usercache/formatters/android/motion_activity.py
alvinalexander/e-mission-server
a9104fb0d448c64ad95f44738a5f75b45a77c0ab
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import from future import standard_library standard_library.install_aliases() from builtins import * import logging import emission.core.wrapper.motionactivity as ecwa import em...
32.175439
68
0.716467
796186198692099e5b933f59200f5a48d42c8745
791
py
Python
utils/json_utils.py
dujiajun/Blockchain
5d8c246f51338f213d032e2effd77473ac41f101
[ "Unlicense" ]
1
2022-02-16T07:07:13.000Z
2022-02-16T07:07:13.000Z
utils/json_utils.py
dujiajun/Blockchain
5d8c246f51338f213d032e2effd77473ac41f101
[ "Unlicense" ]
null
null
null
utils/json_utils.py
dujiajun/Blockchain
5d8c246f51338f213d032e2effd77473ac41f101
[ "Unlicense" ]
null
null
null
import ecdsa from flask.json import JSONEncoder from blockchain.block import Block from blockchain.transaction import Tx from utils.printable import Printable class MyJSONEncoder(JSONEncoder): def default(self, obj): if isinstance(obj, bytes): return obj.hex() if isinstance(obj, ecdsa...
31.64
57
0.611884
7961868d858a4c5b5fab5cfa18f2ee5811ea1fdf
18,949
py
Python
ms_deisotope/data_source/metadata/data_transformation.py
mstim/ms_deisotope
29f4f466e92e66b65a2d21eca714aa627caa21db
[ "Apache-2.0" ]
null
null
null
ms_deisotope/data_source/metadata/data_transformation.py
mstim/ms_deisotope
29f4f466e92e66b65a2d21eca714aa627caa21db
[ "Apache-2.0" ]
null
null
null
ms_deisotope/data_source/metadata/data_transformation.py
mstim/ms_deisotope
29f4f466e92e66b65a2d21eca714aa627caa21db
[ "Apache-2.0" ]
null
null
null
"""Defines types for describing mass spectrometry data transformations, data processing sequences, and a database of controlled vocabulary terms for them. .. note:: The entities in this module are only for *naming* these transformations and how they were combined to process mass spectra. For implementations, ...
51.075472
111
0.57945
796186ef88b7e7d09360f3d9e87be93de43b5cb6
8,242
py
Python
model/wordsequence.py
LooperXX/NCRFpp
49d799064eec36921d2d5854053af9766e6e9922
[ "Apache-2.0" ]
null
null
null
model/wordsequence.py
LooperXX/NCRFpp
49d799064eec36921d2d5854053af9766e6e9922
[ "Apache-2.0" ]
null
null
null
model/wordsequence.py
LooperXX/NCRFpp
49d799064eec36921d2d5854053af9766e6e9922
[ "Apache-2.0" ]
1
2020-10-21T16:40:53.000Z
2020-10-21T16:40:53.000Z
# -*- coding: utf-8 -*- # @Author: Jie Yang # @Date: 2017-10-17 16:47:32 # @Last Modified by: Jie Yang, Contact: jieynlp@gmail.com # @Last Modified time: 2019-02-01 15:59:26 from __future__ import print_function from __future__ import absolute_import import torch import torch.nn as nn import torch.nn.functional...
50.876543
118
0.6223
796188152602830635a9ccb98a23d403d3a9da1e
1,612
py
Python
PyNite/Node3D.py
Aciarbonetti/Pynite_mirar
38844a4cbdd06d5cfb28ecdcf9334623aab8ccdb
[ "MIT" ]
1
2019-12-26T16:18:11.000Z
2019-12-26T16:18:11.000Z
PyNite/Node3D.py
Aciarbonetti/Pynite_mirar
38844a4cbdd06d5cfb28ecdcf9334623aab8ccdb
[ "MIT" ]
null
null
null
PyNite/Node3D.py
Aciarbonetti/Pynite_mirar
38844a4cbdd06d5cfb28ecdcf9334623aab8ccdb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Nov 2 18:04:56 2017 @author: D. Craig Brinck, SE """ # %% class Node3D(): """ A class representing a node in a 3D finite element model. """ def __init__(self, Name, X, Y, Z): """ Initializes a new node. """ ...
32.897959
102
0.560174
796188500af069af5115b283cd56630510e344bb
3,442
py
Python
predict_barking.py
PierrickRauby/Anti-Barkinator
bd1cae5ca929ae1313d083166f9f8891214da543
[ "MIT" ]
4
2020-12-22T22:35:45.000Z
2022-02-16T20:12:52.000Z
Anti-Barkinator/predict_barking.py
PierrickRauby/Anti-Barkinator
bd1cae5ca929ae1313d083166f9f8891214da543
[ "MIT" ]
null
null
null
Anti-Barkinator/predict_barking.py
PierrickRauby/Anti-Barkinator
bd1cae5ca929ae1313d083166f9f8891214da543
[ "MIT" ]
null
null
null
# Imports for the script import numpy as np import os import errno import librosa #from keras.models import model_from_json import tensorflow as tf import pyaudio # from gpiozero import LED import wave # from time import sleep # fifo to triger python execution form javascript FIFO='PIPE' # Audio file configuration ...
30.192982
100
0.663277
796188bd2a416ed9303cc297f99e58b74c278406
23,085
py
Python
synful/evaluate_annotations.py
funkelab/synful
cde0287470d33bdb0951b9e47b8c4fa076eec511
[ "MIT" ]
2
2020-03-09T23:54:38.000Z
2021-03-24T01:26:22.000Z
synful/evaluate_annotations.py
funkelab/synful
cde0287470d33bdb0951b9e47b8c4fa076eec511
[ "MIT" ]
1
2021-02-06T05:25:36.000Z
2021-02-11T16:33:57.000Z
synful/evaluate_annotations.py
funkelab/synful
cde0287470d33bdb0951b9e47b8c4fa076eec511
[ "MIT" ]
1
2022-01-12T21:40:19.000Z
2022-01-12T21:40:19.000Z
import csv import json import logging import multiprocessing as mp import os import sys import scipy import pandas as pd import daisy import numpy as np from lsd import local_segmentation from pymongo import MongoClient from scipy.spatial import KDTree import pymaid from . import database, synapse, evaluation logger...
47.894191
165
0.559368
7961892723140086cc0a0b8bcf3a9eacc7d52c7d
6,097
py
Python
src/utils/ec2_utils.py
rluiseugenio/dpa_rita
4da52a103b455c97d7f3bc6253f1c455c340dfc4
[ "MIT" ]
null
null
null
src/utils/ec2_utils.py
rluiseugenio/dpa_rita
4da52a103b455c97d7f3bc6253f1c455c340dfc4
[ "MIT" ]
10
2020-05-06T14:30:44.000Z
2022-03-12T00:33:00.000Z
src/utils/ec2_utils.py
rluiseugenio/dpa_rita
4da52a103b455c97d7f3bc6253f1c455c340dfc4
[ "MIT" ]
6
2020-04-15T04:30:36.000Z
2020-10-23T16:02:24.000Z
#===================================== # Resources: #https://blog.ipswitch.com/how-to-create-and-configure-an-aws-vpc-with-python #https://blog.ipswitch.com/how-to-create-an-ec2-instance-with-python #https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#vpc #===============================...
32.77957
98
0.622437
79618aca84efd612f8329cd694e5fdb1c6895410
2,757
py
Python
integration/combination/test_custom_rest_api_domains.py
BearerPipelineTest/serverless-application-model
2be47dfdf1140b1e84a24bab392cfd634dfe9d1f
[ "Apache-2.0", "MIT" ]
null
null
null
integration/combination/test_custom_rest_api_domains.py
BearerPipelineTest/serverless-application-model
2be47dfdf1140b1e84a24bab392cfd634dfe9d1f
[ "Apache-2.0", "MIT" ]
null
null
null
integration/combination/test_custom_rest_api_domains.py
BearerPipelineTest/serverless-application-model
2be47dfdf1140b1e84a24bab392cfd634dfe9d1f
[ "Apache-2.0", "MIT" ]
null
null
null
from unittest.case import skipIf from integration.config.service_names import CUSTOM_DOMAIN from integration.helpers.base_internal_test import BaseInternalTest from integration.helpers.file_resources import FILE_TO_S3_URI_MAP from integration.helpers.resource import current_region_not_included @skipIf( current_r...
45.95
107
0.768952
79618dcdd699773decb807af85fae872d3de7368
19,540
py
Python
marketing/forms.py
alexander-dev-hub/Django-CRM
7e78fae91b47d1e51a575d324d82eb6d6ddc2b57
[ "MIT" ]
2
2019-10-03T09:54:34.000Z
2021-09-30T14:40:15.000Z
marketing/forms.py
alexander-dev-hub/Django-CRM
7e78fae91b47d1e51a575d324d82eb6d6ddc2b57
[ "MIT" ]
null
null
null
marketing/forms.py
alexander-dev-hub/Django-CRM
7e78fae91b47d1e51a575d324d82eb6d6ddc2b57
[ "MIT" ]
null
null
null
import csv import datetime import json import re import openpyxl import xlrd from django import forms from common.models import User from marketing.models import Campaign, Contact, ContactList, EmailTemplate, Tag, ContactEmailCampaign email_regex = '^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(...
41.223629
114
0.587001
79618e43a74a2d428c638307062a34a347bce04e
4,959
py
Python
sympy/concrete/gosper.py
Timeroot/sympy
f95bf4bbc548d326f4643d22faec32aca7880187
[ "BSD-3-Clause" ]
2
2015-11-13T16:40:57.000Z
2017-09-15T15:37:19.000Z
sympy_old/concrete/gosper.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
1
2016-06-13T01:29:51.000Z
2016-06-14T00:38:27.000Z
sympy_old/concrete/gosper.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
1
2022-03-21T09:07:27.000Z
2022-03-21T09:07:27.000Z
"""Gosper's algorithm for hypergeometric summation. """ from sympy.core import S, Dummy, symbols from sympy.core.compatibility import is_sequence from sympy.polys import Poly, parallel_poly_from_expr, factor from sympy.solvers import solve from sympy.simplify import hypersimp def gosper_normal(f, g, n, polys=True): ...
24.671642
80
0.551926
79618eb2cc3c512414a7a5e989e9a560c3fc6a4d
291
py
Python
ferris/routes.py
palladius/gae-ferris-ricc
e6d9d8d4aadeae10eb258b94b6fe5912c8630b36
[ "MIT" ]
2
2015-03-04T07:05:57.000Z
2015-03-04T07:06:00.000Z
ferris/routes.py
palladius/gae-ferris-ricc
e6d9d8d4aadeae10eb258b94b6fe5912c8630b36
[ "MIT" ]
null
null
null
ferris/routes.py
palladius/gae-ferris-ricc
e6d9d8d4aadeae10eb258b94b6fe5912c8630b36
[ "MIT" ]
null
null
null
from ferris.core import routing from ferris.controllers.root import Root from ferris.controllers.oauth import Oauth routing.add(routing.Route('/admin', Root, handler_method='admin')) routing.add(routing.Route('/error/<code>', Root, handler_method='error')) routing.route_controller(Oauth)
32.333333
73
0.793814
796191cb3a0ba7b46fbf03a25861318bbc16558b
1,661
py
Python
VoiceAssistant/wakeword/scripts/split_commonvoice.py
pbazard/Voice-Assistant
c9ccdd311fa689cfd8bb43d5e4e3cb94cb690a29
[ "MIT" ]
null
null
null
VoiceAssistant/wakeword/scripts/split_commonvoice.py
pbazard/Voice-Assistant
c9ccdd311fa689cfd8bb43d5e4e3cb94cb690a29
[ "MIT" ]
null
null
null
VoiceAssistant/wakeword/scripts/split_commonvoice.py
pbazard/Voice-Assistant
c9ccdd311fa689cfd8bb43d5e4e3cb94cb690a29
[ "MIT" ]
null
null
null
import os import pandas as pd import argparse from pydub import AudioSegment from pydub.utils import make_chunks # from pandarallel import pandarallel # pandarallel.initialize(progress_bar=True) def main(args): df = pd.read_csv(args.file_name, sep='\t') print(df.head()) print('total data size:', len(df))...
36.108696
97
0.632751
7961923e8b8676bdafb89cae034399d34b5b0402
80,364
py
Python
sdk/python/pulumi_aws/s3/bucket_object.py
aamir-locus/pulumi-aws
3e234b050129bde35d8e072a88bd608562f02142
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/s3/bucket_object.py
aamir-locus/pulumi-aws
3e234b050129bde35d8e072a88bd608562f02142
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/s3/bucket_object.py
aamir-locus/pulumi-aws
3e234b050129bde35d8e072a88bd608562f02142
[ "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, overload from .. import...
58.066474
378
0.6758
7961927bca008c76fc629cd65e2f6e454b235c00
868
py
Python
colungaHUB_app/models.py
alegrimminck/ProyectoMDD
40c929de6ecfd85af5e878b218f4d0db664851ae
[ "MIT" ]
null
null
null
colungaHUB_app/models.py
alegrimminck/ProyectoMDD
40c929de6ecfd85af5e878b218f4d0db664851ae
[ "MIT" ]
null
null
null
colungaHUB_app/models.py
alegrimminck/ProyectoMDD
40c929de6ecfd85af5e878b218f4d0db664851ae
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Organizacion(models.Model): name = models.CharField(max_length=255) description = models.CharField(max_length=255) fono = models.CharField(max_length=255) webpage_url = models.CharField(max_length=255, blank=True, null=True) facebook_url = models....
45.684211
73
0.771889
796196de2fe5d85ba34ca5d36ff3328c4683fc03
452
py
Python
innopoints/models/activity_competence.py
Innopoints/backend
723565ba3f63914a7dab03346696d89e28060d64
[ "MIT" ]
1
2020-11-30T17:41:36.000Z
2020-11-30T17:41:36.000Z
innopoints/models/activity_competence.py
Innopoints/backend
723565ba3f63914a7dab03346696d89e28060d64
[ "MIT" ]
34
2020-04-18T19:31:27.000Z
2021-03-19T13:56:56.000Z
innopoints/models/activity_competence.py
Innopoints/backend
723565ba3f63914a7dab03346696d89e28060d64
[ "MIT" ]
null
null
null
"""The many-to-many relationship between Activity and Competence.""" from innopoints.extensions import db activity_competence = db.Table( 'activity_competence', db.Column('activity_id', db.Integer, db.ForeignKey('activities.id', ondelete='CASCADE'), primary_key=True), db.Colum...
30.133333
68
0.65708
79619770a103e7e213f499791c00b71863a56da2
2,181
py
Python
ImgExplorer/picture_operate.py
fordreaming/deep_learning
04290447609618af743b3b888c33bbadd11b995a
[ "Apache-2.0" ]
null
null
null
ImgExplorer/picture_operate.py
fordreaming/deep_learning
04290447609618af743b3b888c33bbadd11b995a
[ "Apache-2.0" ]
null
null
null
ImgExplorer/picture_operate.py
fordreaming/deep_learning
04290447609618af743b3b888c33bbadd11b995a
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import QMainWindow, QApplication, QGraphicsScene, QGraphicsPixmapItem from PyQt5.QtGui import QImage, QPixmap from Ui_picshow import Ui_MainWindow from lr_utils import load_dataset import cv2 class picturezoom(QMainWindow, Ui_MainWindow): def __init__(self, pa...
34.619048
102
0.616231
796198725b5c8663b10865b8e0b13be7f80c103d
756
py
Python
project/properties/resources/translation_properties.py
vinibiavatti1/PythonFlaskCms
e43a4db84d1f77a5f66b1f8fcb9dc96e05e6c023
[ "MIT" ]
null
null
null
project/properties/resources/translation_properties.py
vinibiavatti1/PythonFlaskCms
e43a4db84d1f77a5f66b1f8fcb9dc96e05e6c023
[ "MIT" ]
null
null
null
project/properties/resources/translation_properties.py
vinibiavatti1/PythonFlaskCms
e43a4db84d1f77a5f66b1f8fcb9dc96e05e6c023
[ "MIT" ]
null
null
null
""" Translation properties configuration. """ from project.models.property_model import PropertyModel from project.models.header_model import HeaderModel from project.enums import property_types_enum as prop_type from typing import Union from project.properties.bases.resource_properties import resource_properties # P...
27
76
0.746032
7961987ecedc9a3f6eea328ea089341c623f5d27
2,427
py
Python
test/swig/Exp.py
risharma-csus/dnnCompiler
528950ee72d3dce7707aa58e86cb68cbb08637c9
[ "Apache-2.0" ]
2
2019-10-15T16:00:10.000Z
2019-12-05T17:30:21.000Z
test/swig/Exp.py
risharma-csus/dnnCompiler
528950ee72d3dce7707aa58e86cb68cbb08637c9
[ "Apache-2.0" ]
null
null
null
test/swig/Exp.py
risharma-csus/dnnCompiler
528950ee72d3dce7707aa58e86cb68cbb08637c9
[ "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 us...
34.671429
90
0.649361
796198854e6964cab7a3c7e2bd5b3b042803d15f
1,477
py
Python
mask_generator.py
will-r-wang/NTP-Remote-Sensing
4178d3c138480f7af200ce3ec0ad0c4684652230
[ "MIT" ]
null
null
null
mask_generator.py
will-r-wang/NTP-Remote-Sensing
4178d3c138480f7af200ce3ec0ad0c4684652230
[ "MIT" ]
6
2021-06-15T01:47:49.000Z
2021-09-19T16:07:12.000Z
mask_generator.py
will-r-wang/NTP-Remote-Sensing
4178d3c138480f7af200ce3ec0ad0c4684652230
[ "MIT" ]
null
null
null
""" Purpose ------- Takes in an input VGG json annotated file and generates the corresponding masks and final masked output image Inputs ------- - Input json file name to which objects are read from - Output folder path to which masks are written to - Image dimensions """ import json import argparse import cv2 impor...
31.425532
130
0.668246
796198e837903576a13383028f154519a0192280
9,993
py
Python
opentamp/policy_hooks/namo/hyperparams_v88.py
Algorithmic-Alignment-Lab/openTAMP
f0642028d551d0436b3a3dbc3bfb2f23a00adc14
[ "MIT" ]
4
2022-02-13T15:52:18.000Z
2022-03-26T17:33:13.000Z
opentamp/policy_hooks/namo/hyperparams_v88.py
Algorithmic-Alignment-Lab/openTAMP
f0642028d551d0436b3a3dbc3bfb2f23a00adc14
[ "MIT" ]
1
2022-02-13T22:48:09.000Z
2022-02-13T22:48:09.000Z
opentamp/policy_hooks/namo/hyperparams_v88.py
Algorithmic-Alignment-Lab/openTAMP
f0642028d551d0436b3a3dbc3bfb2f23a00adc14
[ "MIT" ]
null
null
null
NUM_OBJS = 1 NUM_TARGS = 1 from datetime import datetime import os import os.path import numpy as np from gps.algorithm.policy.lin_gauss_init import init_lqr, init_pd from opentamp.policy_hooks.algorithm_impgps import AlgorithmIMPGPS from opentamp.policy_hooks.multi_head_policy_opt_tf import MultiHeadPolicyOptTf ...
30.93808
98
0.608426
796199bcb3ed06c3fb7eb9cdb515a2b37ac6dc01
13,711
py
Python
sdk/python/pulumi_azure_native/resources/v20210501/template_spec.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/resources/v20210501/template_spec.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/resources/v20210501/template_spec.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
42.580745
548
0.644665
79619a013b812b68e12296c315c214f66516d84a
2,966
py
Python
generate_training_frequency.py
ridayc/ProteinSequence
cb1aa5736c7544f8e76c3e42011f572396d403a8
[ "MIT" ]
null
null
null
generate_training_frequency.py
ridayc/ProteinSequence
cb1aa5736c7544f8e76c3e42011f572396d403a8
[ "MIT" ]
null
null
null
generate_training_frequency.py
ridayc/ProteinSequence
cb1aa5736c7544f8e76c3e42011f572396d403a8
[ "MIT" ]
null
null
null
import os import random import csv sym = "-ABCDEFGHIKLMNPQRSTUVWXYZ" amino = {} counter = 0 for i in range(len(sym)): amino[sym[i]] = counter counter+=1 ''' Create a training set for protein secondary structures. dir: the directory containing the secondary structure files ntrain: number of ss files to take trainin...
30.265306
150
0.665543
79619a27fec98d47be6d00d7e788a5213a1a56ea
238
py
Python
Python/ControlStatements/prime_number.py
SahaanaIyer/SEM4-folders
32721985cd40a18594313b04ade62dc5e486e3e5
[ "MIT" ]
null
null
null
Python/ControlStatements/prime_number.py
SahaanaIyer/SEM4-folders
32721985cd40a18594313b04ade62dc5e486e3e5
[ "MIT" ]
null
null
null
Python/ControlStatements/prime_number.py
SahaanaIyer/SEM4-folders
32721985cd40a18594313b04ade62dc5e486e3e5
[ "MIT" ]
null
null
null
#Check prime number print("Enter a number - ") a = int(input()) flag = 0 for i in range(2, a): if (a % i == 0): flag = 1 break if (flag == 0): print(a, "is a prime no.") else: print(a, "is not a prime no.")
14.875
34
0.508403
79619a5ea248481daa897fd3c32393c90ba3c6df
122
py
Python
limix/_example/__init__.py
huangyh09/limix
bed5b8e0aaa9b11f19bdd13b76d21510e56064be
[ "Apache-2.0" ]
93
2017-05-25T21:54:45.000Z
2022-03-30T14:51:01.000Z
limix/_example/__init__.py
huangyh09/limix
bed5b8e0aaa9b11f19bdd13b76d21510e56064be
[ "Apache-2.0" ]
90
2017-04-20T16:59:41.000Z
2022-02-02T17:40:58.000Z
limix/_example/__init__.py
huangyh09/limix
bed5b8e0aaa9b11f19bdd13b76d21510e56064be
[ "Apache-2.0" ]
28
2017-05-31T21:59:19.000Z
2022-02-09T18:12:51.000Z
""" _example package ================ File examples. """ from ._example import file_example __all__ = ["file_example"]
11.090909
34
0.622951
79619a61b9fe0475f353c56610d11e7c74b0cac0
723
py
Python
pocket/manager/migrations/0005_auto_20220323_0813.py
henrid3v/pocket-man
d0e7f44674db877b3e658ee7fc8b0fddf79bfcc8
[ "MIT" ]
null
null
null
pocket/manager/migrations/0005_auto_20220323_0813.py
henrid3v/pocket-man
d0e7f44674db877b3e658ee7fc8b0fddf79bfcc8
[ "MIT" ]
1
2020-11-28T21:27:01.000Z
2020-11-28T21:29:32.000Z
pocket/manager/migrations/0005_auto_20220323_0813.py
shadowcompiler/pocket-man
d0e7f44674db877b3e658ee7fc8b0fddf79bfcc8
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2022-03-23 08:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('manager', '0004_alter_activity_id'), ] operations = [ migrations.CreateModel( name='Prevision', fields=[ ...
27.807692
114
0.583679
79619ad0d65ab382e17deee291cd39693d1c6e15
8,201
py
Python
venv/Lib/site-packages/huggingface_hub/commands/lfs.py
GuilhermeJC13/storIA
eeecbe9030426f70c6aa73ca0ce8382860c8495c
[ "MIT" ]
4
2021-07-27T23:39:02.000Z
2021-09-23T04:17:08.000Z
venv/Lib/site-packages/huggingface_hub/commands/lfs.py
GuilhermeJC13/storIA
eeecbe9030426f70c6aa73ca0ce8382860c8495c
[ "MIT" ]
2
2022-03-14T17:02:28.000Z
2022-03-23T10:49:49.000Z
venv/Lib/site-packages/huggingface_hub/commands/lfs.py
GuilhermeJC13/storIA
eeecbe9030426f70c6aa73ca0ce8382860c8495c
[ "MIT" ]
3
2021-07-27T17:33:58.000Z
2021-07-29T12:46:59.000Z
""" Implementation of a custom transfer agent for the transfer type "multipart" for git-lfs. Inspired by: github.com/cbartz/git-lfs-swift-transfer-agent/blob/master/git_lfs_swift_transfer.py Spec is: github.com/git-lfs/git-lfs/blob/master/docs/custom-transfers.md To launch debugger while developing: ``` [lfs "cust...
34.313808
122
0.593708
79619b541cc213f58baf6e0125693a8c3868aa99
13,540
py
Python
models/modules_sngan.py
luigifvr/normalized-autoencoders
77423a1d2bacadce76571af85a60b75f882c42c0
[ "MIT" ]
null
null
null
models/modules_sngan.py
luigifvr/normalized-autoencoders
77423a1d2bacadce76571af85a60b75f882c42c0
[ "MIT" ]
null
null
null
models/modules_sngan.py
luigifvr/normalized-autoencoders
77423a1d2bacadce76571af85a60b75f882c42c0
[ "MIT" ]
null
null
null
""" ResNet architectures from SNGAN(Miyato et al., 2018) Brought this code from: https://github.com/christiancosgrove/pytorch-spectral-normalization-gan """ # ResNet generator and discriminator from torch import nn from torch import Tensor from torch.nn import Parameter import torch.nn.functional as F import numpy...
35.35248
116
0.6113
79619bcf63c7a0a2fffd5dc969c63b7b1a31d690
1,398
py
Python
tempest/api/compute/certificates/test_certificates.py
BeenzSyed/tempest
7a64ee1216d844f6b99928b53f5c665b84cb8719
[ "Apache-2.0" ]
null
null
null
tempest/api/compute/certificates/test_certificates.py
BeenzSyed/tempest
7a64ee1216d844f6b99928b53f5c665b84cb8719
[ "Apache-2.0" ]
null
null
null
tempest/api/compute/certificates/test_certificates.py
BeenzSyed/tempest
7a64ee1216d844f6b99928b53f5c665b84cb8719
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
35.846154
78
0.716738
79619bf09cee913476d3f21085ea942f242f0689
552
py
Python
timeline/migrations/0002_auto_20180303_0907.py
lukmarcus/hiveprojects.io
3595c0099893fefbfaa07bddc472abd111666178
[ "MIT" ]
20
2017-09-05T17:19:19.000Z
2018-06-26T01:46:21.000Z
timeline/migrations/0002_auto_20180303_0907.py
lukmarcus/hiveprojects.io
3595c0099893fefbfaa07bddc472abd111666178
[ "MIT" ]
117
2017-08-18T13:24:44.000Z
2018-08-17T18:37:45.000Z
timeline/migrations/0002_auto_20180303_0907.py
djonie08/Github
51ee7af6313d32aad4dde7ccb97e48cc347681c3
[ "MIT" ]
9
2017-10-01T18:15:11.000Z
2018-04-24T15:15:36.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-03 09:07 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('timeline', '0001_initial_squashed_0011_auto_20180227_0349'), ] operat...
25.090909
93
0.67029
79619c2bde89d53ef713548cc0363dce7fdf33f7
335
py
Python
examples/bcrypt_example.py
movermeyer/flask-password
1c7d4ef2dad5f03f710b6a4680265afee9fc024c
[ "Apache-2.0" ]
1
2021-09-05T14:17:31.000Z
2021-09-05T14:17:31.000Z
examples/bcrypt_example.py
movermeyer/flask-password
1c7d4ef2dad5f03f710b6a4680265afee9fc024c
[ "Apache-2.0" ]
null
null
null
examples/bcrypt_example.py
movermeyer/flask-password
1c7d4ef2dad5f03f710b6a4680265afee9fc024c
[ "Apache-2.0" ]
1
2018-03-03T16:09:23.000Z
2018-03-03T16:09:23.000Z
from flask import Flask from flask_password import PasswordHasher class Config(object): PASSWORD_ALGORITHM = 'bcrypt' BCRYPT_ROUNDS = 14 app = Flask(__name__) app.debug = True app.config.from_object(Config()) pw = PasswordHasher() pw.init_app(app) hashed_password = pw.hash_password('my password') print(ha...
17.631579
49
0.767164
79619c8c9075a074d8e43077fa122dd9a75ffea8
7,279
py
Python
mapswipe_workers/mapswipe_workers/generate_stats/project_stats_by_date.py
jhollowe-forks/python-mapswipe-workers
22d77d0af613c59d3527fd3ff5c3a05d98d6e34a
[ "Apache-2.0" ]
16
2018-03-05T13:18:35.000Z
2022-02-16T17:19:00.000Z
mapswipe_workers/mapswipe_workers/generate_stats/project_stats_by_date.py
jhollowe-forks/python-mapswipe-workers
22d77d0af613c59d3527fd3ff5c3a05d98d6e34a
[ "Apache-2.0" ]
367
2018-02-14T22:54:39.000Z
2022-03-29T14:23:26.000Z
mapswipe_workers/mapswipe_workers/generate_stats/project_stats_by_date.py
jhollowe-forks/python-mapswipe-workers
22d77d0af613c59d3527fd3ff5c3a05d98d6e34a
[ "Apache-2.0" ]
8
2018-05-12T16:16:32.000Z
2022-02-16T17:14:54.000Z
import datetime import pandas as pd from mapswipe_workers.definitions import logger def calc_results_progress( number_of_users: int, number_of_users_required: int, cum_number_of_users: int, number_of_tasks: int, number_of_results: int, ) -> int: """ for each project the progress is calcu...
33.543779
88
0.687594
79619ce4b368fdc58376da53c1951825512a5a0e
2,740
py
Python
utils/pc.py
axydor/PriceGetter
015afdaf50a0ad02ba193448495d68bdc97ec0fd
[ "MIT" ]
12
2020-03-22T20:31:37.000Z
2022-02-11T16:57:44.000Z
utils/pc.py
axydor/PriceGetter
015afdaf50a0ad02ba193448495d68bdc97ec0fd
[ "MIT" ]
1
2021-03-05T11:59:40.000Z
2021-03-05T11:59:40.000Z
utils/pc.py
axydor/PriceGetter
015afdaf50a0ad02ba193448495d68bdc97ec0fd
[ "MIT" ]
2
2020-03-22T19:00:23.000Z
2021-11-11T02:02:57.000Z
import sys sys.path.append("../") from item import * import json class Pc: def __init__(self): self.mb = [] # motherboards self.cpu = [] self.gpu = [] self.ssd = [] self.psu = [] # power supply self.case = [] def insert(self, url, attr): item = Item(url)...
27.959184
78
0.472993
79619d4251b5bd3f45743c10f6b8749cec10342a
3,181
py
Python
google/cloud/appengine_admin_v1/types/operation.py
parthea/python-appengine-admin
b23b075ae60fb5b7452e9c996b0febdeea81c50e
[ "Apache-2.0" ]
null
null
null
google/cloud/appengine_admin_v1/types/operation.py
parthea/python-appengine-admin
b23b075ae60fb5b7452e9c996b0febdeea81c50e
[ "Apache-2.0" ]
null
null
null
google/cloud/appengine_admin_v1/types/operation.py
parthea/python-appengine-admin
b23b075ae60fb5b7452e9c996b0febdeea81c50e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
31.186275
96
0.684062
79619de5f5ace6e2e5a5dc926a2132cdc9dbb596
33,768
py
Python
ropper/ropchain/arch/ropchainx86_64.py
cbayet/Ropper
66adeb0a1d4322ced69643c3be2552c057d116d2
[ "BSD-3-Clause" ]
1,502
2015-01-07T09:11:08.000Z
2022-03-29T10:08:26.000Z
ropper/ropchain/arch/ropchainx86_64.py
cbayet/Ropper
66adeb0a1d4322ced69643c3be2552c057d116d2
[ "BSD-3-Clause" ]
126
2015-03-10T15:32:26.000Z
2022-03-03T08:30:10.000Z
ropper/ropchain/arch/ropchainx86_64.py
cbayet/Ropper
66adeb0a1d4322ced69643c3be2552c057d116d2
[ "BSD-3-Clause" ]
214
2015-03-10T00:17:16.000Z
2022-03-19T07:04:08.000Z
# coding=utf-8 # Copyright 2018 Sascha Schirra # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the following di...
40.247914
166
0.578654
79619e0d743b051420ba96b963f1ad0b9ef61dbc
1,509
py
Python
trade_remedies_caseworker/trade_remedies_caseworker/context_processors.py
uktrade/trade-remedies-caseworker
fece9fde3cb241d96cbc1aaf7188d976f8621600
[ "MIT" ]
1
2020-08-27T09:53:00.000Z
2020-08-27T09:53:00.000Z
trade_remedies_caseworker/trade_remedies_caseworker/context_processors.py
uktrade/trade-remedies-caseworker
fece9fde3cb241d96cbc1aaf7188d976f8621600
[ "MIT" ]
7
2020-10-14T16:23:42.000Z
2021-09-24T14:18:47.000Z
trade_remedies_caseworker/trade_remedies_caseworker/context_processors.py
uktrade/trade-remedies-caseworker
fece9fde3cb241d96cbc1aaf7188d976f8621600
[ "MIT" ]
null
null
null
""" user_context context processor providing a global user context to templates which contains the current user's token and basic info """ from trade_remedies_caseworker.version import __version__ from trade_remedies_client.client import Client from django.conf import settings def motd_context(request): return {"...
30.795918
90
0.657389
79619e786cc36015048b5d532f4f3eff8f45ddc5
3,146
py
Python
server/djangoapp/views.py
Schmek704/agfzb-CloudAppDevelopment_Capstone
217e8361ab4617abc96dbe332b5763de040737a1
[ "Apache-2.0" ]
null
null
null
server/djangoapp/views.py
Schmek704/agfzb-CloudAppDevelopment_Capstone
217e8361ab4617abc96dbe332b5763de040737a1
[ "Apache-2.0" ]
null
null
null
server/djangoapp/views.py
Schmek704/agfzb-CloudAppDevelopment_Capstone
217e8361ab4617abc96dbe332b5763de040737a1
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponseRedirect, HttpResponse from django.contrib.auth.models import User from django.shortcuts import get_object_or_404, render, redirect # from .models import related models # from .restapis import related methods from django.contrib.auth import login, ...
34.571429
125
0.682136
79619ecd9700bd6716b56117f90e3777ef24b795
4,305
py
Python
nativecompile/reloc_buffer.py
Rouslan/nativecompile
982a7080870ecbb4f13a04c0be06f533c413c3b4
[ "Apache-2.0" ]
2
2015-10-16T19:38:23.000Z
2019-05-05T05:13:28.000Z
nativecompile/reloc_buffer.py
Rouslan/nativecompile
982a7080870ecbb4f13a04c0be06f533c413c3b4
[ "Apache-2.0" ]
1
2016-02-08T19:39:22.000Z
2016-02-14T03:55:31.000Z
nativecompile/reloc_buffer.py
Rouslan/nativecompile
982a7080870ecbb4f13a04c0be06f533c413c3b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Rouslan Korneychuk # # 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...
28.892617
105
0.622067
79619ef03e8e5b704e9329bcd7f22c1c4aa14346
13,748
py
Python
tests/integration/baseTestAPI.py
chambers-brian/SIG_Digital-Strategy_SI_ODP_Backend
3de8cedf69d5a0c9fad8239734bd6291cf583936
[ "CC0-1.0" ]
null
null
null
tests/integration/baseTestAPI.py
chambers-brian/SIG_Digital-Strategy_SI_ODP_Backend
3de8cedf69d5a0c9fad8239734bd6291cf583936
[ "CC0-1.0" ]
null
null
null
tests/integration/baseTestAPI.py
chambers-brian/SIG_Digital-Strategy_SI_ODP_Backend
3de8cedf69d5a0c9fad8239734bd6291cf583936
[ "CC0-1.0" ]
null
null
null
import unittest import time from collections import namedtuple from datetime import timedelta from dateutil.parser import parse from random import randint from flask_bcrypt import Bcrypt from webtest import TestApp from dataactbroker.app import createApp as createBrokerApp from dataactcore.interfaces.db import Global...
46.761905
120
0.647803
79619feb385e96a4fa1e34a941453ff1454e9cae
156
py
Python
Array/Easy/217. Contains Duplicate/solution.py
tintindas/leetcode-solutions
eb97254dafddffccbce048ef04aea1e934277282
[ "MIT" ]
1
2021-03-10T02:48:39.000Z
2021-03-10T02:48:39.000Z
Array/Easy/217. Contains Duplicate/solution.py
tintindas/leetcode-solutions
eb97254dafddffccbce048ef04aea1e934277282
[ "MIT" ]
null
null
null
Array/Easy/217. Contains Duplicate/solution.py
tintindas/leetcode-solutions
eb97254dafddffccbce048ef04aea1e934277282
[ "MIT" ]
1
2021-03-18T08:22:29.000Z
2021-03-18T08:22:29.000Z
from typing import List class Solution: def containsDuplicate(self, nums: List[int]) -> bool: s = set(nums) return len(s) < len(nums)
19.5
57
0.621795
7961a0d4b142d52a63892945e8fc3a41d7386a1a
4,976
py
Python
tests/test_hgvs_grammar_full.py
naomifox/hgvs
5007142191cac8dba2272bad5b945a27c0a5cf87
[ "Apache-2.0" ]
null
null
null
tests/test_hgvs_grammar_full.py
naomifox/hgvs
5007142191cac8dba2272bad5b945a27c0a5cf87
[ "Apache-2.0" ]
null
null
null
tests/test_hgvs_grammar_full.py
naomifox/hgvs
5007142191cac8dba2272bad5b945a27c0a5cf87
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals # # Tests of the grammar # # Code takes a tab-delimited text file of the form: # # Func Test Valid InType Expected # pm -+ True string # pm * False one # num 1|+1 ...
37.69697
116
0.613746
7961a200f75c8e93b7af4bd3781ca2bbd3d6c8a6
2,461
py
Python
sdk/python/pulumi_aws/get_canonical_user_id.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/get_canonical_user_id.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/get_canonical_user_id.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "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 json import warnings import pulumi import pulumi.runtime from typing import Union from . import utilities, tables class GetCano...
36.731343
419
0.684681
7961a2e2f7c9e6a1a8c1771c0f6c73bbd290220c
825
py
Python
var/spack/repos/builtin/packages/py-unittest2/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/py-unittest2/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/py-unittest2/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 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 PyUnittest2(PythonPackage): """unittest2 is a backport of the new features added to the un...
37.5
95
0.712727
7961a33541a2257d5289e4a9f37751196f1770ed
1,639
py
Python
studies/curso_em_video/ex013-reajuste-salarial.py
alexander-colaneri/Python
fbc84a2818d8324b712014e1a5abfc01474e49ea
[ "MIT" ]
null
null
null
studies/curso_em_video/ex013-reajuste-salarial.py
alexander-colaneri/Python
fbc84a2818d8324b712014e1a5abfc01474e49ea
[ "MIT" ]
null
null
null
studies/curso_em_video/ex013-reajuste-salarial.py
alexander-colaneri/Python
fbc84a2818d8324b712014e1a5abfc01474e49ea
[ "MIT" ]
null
null
null
# Exercício 13: Reajuste Salarial # Descrição: Faça um programa que leia o salário de um funcionário e mostre seu # novo salário, com 15% de aumento. class ReajustadorDeSalario(): porcentagem_de_reajuste = 0.15 def __init(self): self.salario_atual = 0 self.aumento = 0 self.novo_salario...
33.44898
100
0.629652
7961a3b6fd2a2fa8725981f422bf47f52c0cabf1
8,552
py
Python
src/flake518/adapter.py
astariul/flake518
1437f6dc76623af34afd690990c111a656080e71
[ "MIT" ]
null
null
null
src/flake518/adapter.py
astariul/flake518
1437f6dc76623af34afd690990c111a656080e71
[ "MIT" ]
null
null
null
src/flake518/adapter.py
astariul/flake518
1437f6dc76623af34afd690990c111a656080e71
[ "MIT" ]
null
null
null
# adapter.py # # Part of Flake518 # # Copyright (c) 2021 Carsten Igel # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software") # to deal in the Software without restriction, including without limitation # the rights to use, c...
32.150376
96
0.652245
7961a3f30214a29d1c3bdbc81f7fb64a136896d2
1,986
py
Python
config/settings/test.py
sterenczak-marek/django-web-parser
6e4b5bd34a9fe0c6908edf701a3c254cafd275bf
[ "MIT" ]
null
null
null
config/settings/test.py
sterenczak-marek/django-web-parser
6e4b5bd34a9fe0c6908edf701a3c254cafd275bf
[ "MIT" ]
null
null
null
config/settings/test.py
sterenczak-marek/django-web-parser
6e4b5bd34a9fe0c6908edf701a3c254cafd275bf
[ "MIT" ]
null
null
null
""" Test settings for Http Keywords project. - Used to run tests fast on the continuous integration server and locally """ from .base import * # noqa # DEBUG # ------------------------------------------------------------------------------ # Turn debug off so tests run faster DEBUG = False TEMPLATES[0]['OPTIONS']['...
32.032258
99
0.523162
7961a4ca25d8df6289155d11b4781e860e8102ea
2,260
py
Python
neutronclient/neutron/client.py
lmaycotte/python-neutronclient
5da767d36e8b2343fabab674dbacb75181efb774
[ "Apache-2.0" ]
null
null
null
neutronclient/neutron/client.py
lmaycotte/python-neutronclient
5da767d36e8b2343fabab674dbacb75181efb774
[ "Apache-2.0" ]
2
2018-11-01T21:50:21.000Z
2018-11-13T21:40:09.000Z
neutronclient/neutron/client.py
lmaycotte/python-neutronclient
5da767d36e8b2343fabab674dbacb75181efb774
[ "Apache-2.0" ]
3
2018-11-01T17:55:23.000Z
2018-11-23T19:16:06.000Z
# Copyright 2012 OpenStack Foundation. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
34.242424
78
0.602212
7961a51319bab53b32099bf0b44a6700e12d4deb
669
py
Python
positive-definite-equation-plot/create_gif.py
thepushkarp/enigma
250353b1b36611b8fa1f7312326329f46a63d34a
[ "MIT" ]
6
2019-12-17T18:49:23.000Z
2020-06-07T09:34:28.000Z
positive-definite-equation-plot/create_gif.py
thepushkarp/enigma
250353b1b36611b8fa1f7312326329f46a63d34a
[ "MIT" ]
18
2020-09-25T03:31:29.000Z
2022-03-01T03:00:51.000Z
positive-definite-equation-plot/create_gif.py
thepushkarp/enigma
250353b1b36611b8fa1f7312326329f46a63d34a
[ "MIT" ]
1
2020-06-06T17:21:44.000Z
2020-06-06T17:21:44.000Z
""" Takes in all the 21 plots and creates a looping gif to see how the function changes with changing w """ import os from PIL import Image def create_gif(): # Create the frames FRAMES = [] for i in range(20 + 1): img = os.path.join('csvs', 'csv{:0>2d}'.format(i), 'plot{:0>2d}.png'.format(i)) ...
25.730769
87
0.588939
7961a55ffdaccf951d70f7a62f2c2d8b1089090c
5,109
py
Python
examples/text-classification/create_dataset.py
PhysicsTeacher13/Digits-NVIDIA
80c08ed2b84d5d4eb4f1721ab30f3db2ce67690a
[ "BSD-3-Clause" ]
111
2017-04-21T06:03:04.000Z
2021-04-26T06:36:54.000Z
examples/text-classification/create_dataset.py
PhysicsTeacher13/Digits-NVIDIA
80c08ed2b84d5d4eb4f1721ab30f3db2ce67690a
[ "BSD-3-Clause" ]
6
2017-05-15T22:02:49.000Z
2018-03-16T10:25:26.000Z
examples/text-classification/create_dataset.py
PhysicsTeacher13/Digits-NVIDIA
80c08ed2b84d5d4eb4f1721ab30f3db2ce67690a
[ "BSD-3-Clause" ]
40
2017-04-21T07:04:16.000Z
2019-11-14T14:20:32.000Z
#!/usr/bin/env python2 # Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. """ Functions for creating a text classification dataset out of .csv files The expected CSV structure is: <Class>,<Text Field 1>, ..., <Text Field N> """ import argparse import caffe import csv import lmdb import numpy as np import ...
31.343558
103
0.59405
7961a60f41625e5f8200ae16b790f233232ff091
6,130
py
Python
dash_docs/tools.py
YaCpotato/dash-docs
3b56d18454923f753283ac7c836f71ba23cb3bed
[ "MIT" ]
null
null
null
dash_docs/tools.py
YaCpotato/dash-docs
3b56d18454923f753283ac7c836f71ba23cb3bed
[ "MIT" ]
null
null
null
dash_docs/tools.py
YaCpotato/dash-docs
3b56d18454923f753283ac7c836f71ba23cb3bed
[ "MIT" ]
null
null
null
import os import re if os.environ.get('DASH_APP_LOCATION', '') != 'ABSOLUTE': from .server import app else: from server import app def relpath(path): if path.startswith('/') and 'DASH_DOCS_URL_PREFIX' in os.environ and not path.startswith('/{}'.format(os.environ['DASH_DOCS_URL_PREFIX'].strip('/'))): ...
36.706587
170
0.610114
7961a7861c292fa262341b056359d45a950321af
2,694
py
Python
sagemaker-pipeline-compare-model-versions/evaluate.py
pollyrolly/amazon-sagemaker-examples
b1a56b4dc96201b769f7bbc1e207649423874586
[ "Apache-2.0" ]
2,610
2020-10-01T14:14:53.000Z
2022-03-31T18:02:31.000Z
sagemaker-pipeline-compare-model-versions/evaluate.py
pollyrolly/amazon-sagemaker-examples
b1a56b4dc96201b769f7bbc1e207649423874586
[ "Apache-2.0" ]
1,959
2020-09-30T20:22:42.000Z
2022-03-31T23:58:37.000Z
sagemaker-pipeline-compare-model-versions/evaluate.py
pollyrolly/amazon-sagemaker-examples
b1a56b4dc96201b769f7bbc1e207649423874586
[ "Apache-2.0" ]
2,052
2020-09-30T22:11:46.000Z
2022-03-31T23:02:51.000Z
"""Evaluation script for measuring model accuracy.""" import json import logging import pathlib import pickle import tarfile import numpy as np import pandas as pd import xgboost from sklearn.metrics import ( accuracy_score, precision_score, recall_score, confusion_matrix, roc_curve, ) logger = lo...
34.101266
129
0.662955
7961a860719f0ea4696b83a9a053ca4b2ad4614c
1,084
py
Python
embedding/embedding.py
zhongkeli/query2vec
af5ae79c0444a040809f5404ce08341662fecd16
[ "Apache-2.0" ]
6
2019-04-09T19:59:32.000Z
2021-07-20T03:24:52.000Z
embedding/embedding.py
afcarl/query2vec-zhongkeli
af5ae79c0444a040809f5404ce08341662fecd16
[ "Apache-2.0" ]
null
null
null
embedding/embedding.py
afcarl/query2vec-zhongkeli
af5ae79c0444a040809f5404ce08341662fecd16
[ "Apache-2.0" ]
4
2018-06-26T02:45:09.000Z
2021-01-25T23:43:06.000Z
import tensorflow as tf from model.query2vec import Query2vec from helper import model_helper from config.config import FLAGS from utils import data_utils import os.path class Embedding: def __init__(self): pass @staticmethod def query_embedding(): q2v = Query2vec() # Create model and load paramete...
33.875
81
0.673432
7961a9b73fae23f851d5bc4f9b917d24ddb39ab2
5,906
py
Python
impedance/tests/test_circuits.py
brightyu/impedance.py
76fd9c7b6c2b3ad87ce2ea8450cade402e9b3709
[ "MIT" ]
1
2022-01-15T13:24:46.000Z
2022-01-15T13:24:46.000Z
impedance/tests/test_circuits.py
brightyu/impedance.py
76fd9c7b6c2b3ad87ce2ea8450cade402e9b3709
[ "MIT" ]
null
null
null
impedance/tests/test_circuits.py
brightyu/impedance.py
76fd9c7b6c2b3ad87ce2ea8450cade402e9b3709
[ "MIT" ]
null
null
null
from impedance.circuits import Randles import numpy as np # store some global test data frequencies = np.array([0.0031623, 0.0039811, 0.0050119, 0.0063096, 0.0079433, 0.01, 0.012589, 0.015849, 0.019953, 0.025119, 0.031623, 0.039811, 0.050119, 0.063096, ...
50.478632
79
0.663393
7961a9f9fdcdae0ce37690d20ed583ede785c5ac
197
py
Python
DeepCF/__init__.py
CindyChen1995/MKR
f9ae37903dcf43b6d101dfc08644ce4a29ecbf9d
[ "MIT" ]
null
null
null
DeepCF/__init__.py
CindyChen1995/MKR
f9ae37903dcf43b6d101dfc08644ce4a29ecbf9d
[ "MIT" ]
null
null
null
DeepCF/__init__.py
CindyChen1995/MKR
f9ae37903dcf43b6d101dfc08644ce4a29ecbf9d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ------------------------------------------------- Description : Author : cmy date: 2020/1/8 ------------------------------------------------- """
24.625
49
0.203046
7961acd6db776ac3fc5c94ebd13b1f39aa6e1a7a
9,777
py
Python
pycity_base/functions/slp_thermal.py
RWTH-EBC/pyCity
88c832aa647ceb8889abd8f851b7349c3366e30a
[ "MIT" ]
11
2019-08-13T15:18:04.000Z
2022-01-19T08:03:02.000Z
pycity_base/functions/slp_thermal.py
RWTH-EBC/pyCity
88c832aa647ceb8889abd8f851b7349c3366e30a
[ "MIT" ]
29
2019-06-15T20:51:16.000Z
2020-08-27T16:04:30.000Z
pycity_base/functions/slp_thermal.py
RWTH-EBC/pyCity
88c832aa647ceb8889abd8f851b7349c3366e30a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Fri Jul 10 16:44:44 2015 @author: tsz """ from __future__ import division import os import numpy as np import math import xlrd from pycity_base.functions import change_resolution as chres # Sources: # [1] BDEW/VKU/GEODE-Leitfaden. Abwicklung von Standard...
32.698997
125
0.628311
7961ae6e81b3680d8cb0ed4ab65993f29f389edd
15,764
py
Python
kinexns/parse_chemkin.py
cmashraf/kmpy
7fdd55c7e620b7c014fdc3788d93b1bf2f6de214
[ "MIT" ]
null
null
null
kinexns/parse_chemkin.py
cmashraf/kmpy
7fdd55c7e620b7c014fdc3788d93b1bf2f6de214
[ "MIT" ]
null
null
null
kinexns/parse_chemkin.py
cmashraf/kmpy
7fdd55c7e620b7c014fdc3788d93b1bf2f6de214
[ "MIT" ]
1
2021-10-05T00:44:44.000Z
2021-10-05T00:44:44.000Z
import numpy as np from .constants import GAS_CONST, PR_ATM from .constants import KCAL_JL, HT_JL, CAL_JL import math import pandas as pd import re from itertools import islice def set_paths_chemkin_files(my_path): """ Set the absolute path to required files on the current machine. *** only required if us...
37.091765
86
0.539647
7961af257df9cb48b71bfebd09ddbe50fe8181fa
282
py
Python
yunionclient/api/infrasquotas.py
yunionyun/python_yunionsdk
40a567b80f6fb3ebc72d8cc6313b334a201b2f00
[ "Apache-2.0" ]
3
2021-09-22T11:34:08.000Z
2022-03-13T04:55:17.000Z
yunionclient/api/infrasquotas.py
yunionyun/python_yunionsdk
40a567b80f6fb3ebc72d8cc6313b334a201b2f00
[ "Apache-2.0" ]
13
2019-06-06T08:25:41.000Z
2021-07-16T07:26:10.000Z
yunionclient/api/infrasquotas.py
yunionyun/python_yunionsdk
40a567b80f6fb3ebc72d8cc6313b334a201b2f00
[ "Apache-2.0" ]
7
2019-03-31T05:43:36.000Z
2021-03-04T09:59:05.000Z
from yunionclient.common import base class InfrasQuota(base.ResourceBase): pass class InfrasQuotaManager(base.StandaloneManager): resource_class = InfrasQuota keyword = 'infras_quota' keyword_plural = 'infras_quotas' _columns = ["Id", "Name", "Description"]
21.692308
49
0.737589
7961af44346e9ca295f8031e4975440fb9416fc2
828
py
Python
benches/test_ops_pr.py
senk8/crypto-math
91c7b02a28e91190089b0213065498ce3c6b2e18
[ "MIT" ]
1
2022-01-01T07:48:29.000Z
2022-01-01T07:48:29.000Z
benches/test_ops_pr.py
senk8/crypto-math
91c7b02a28e91190089b0213065498ce3c6b2e18
[ "MIT" ]
null
null
null
benches/test_ops_pr.py
senk8/crypto-math
91c7b02a28e91190089b0213065498ce3c6b2e18
[ "MIT" ]
null
null
null
from crypto_math import GF from crypto_math import poly_ring import pytest @pytest.fixture def setup(): F7 = GF(7) R7 = poly_ring(F7) return R7 def test_add(setup,benchmark): R7 = setup x = R7([1,1,1,1]) y = R7([2,3,1]) benchmark(lambda a,b:a+b,x,y) def test_sub(setup,benchmark): R7...
16.56
37
0.578502
7961af9f5cffb83d41e102273e39d82d49d02148
8,378
py
Python
lib/data/datasets/vcoco_meta.py
Alex1114/Zero-Shot-HOI
09384260fc3d3df47bbd3ae0e2132e329f9186d4
[ "MIT" ]
37
2020-05-17T06:41:58.000Z
2022-02-24T22:08:39.000Z
lib/data/datasets/vcoco_meta.py
Alex1114/Zero-Shot-HOI
09384260fc3d3df47bbd3ae0e2132e329f9186d4
[ "MIT" ]
12
2020-06-29T08:12:31.000Z
2022-01-02T07:02:33.000Z
lib/data/datasets/vcoco_meta.py
Alex1114/Zero-Shot-HOI
09384260fc3d3df47bbd3ae0e2132e329f9186d4
[ "MIT" ]
9
2020-07-03T05:44:17.000Z
2021-12-01T08:24:51.000Z
# -*- coding: utf-8 -*- """ This file hard-codes metadata for VCOCO dataset. This will includes: 1. All object categories and our known/novel splits 2. All actions and their prior distributions which are used for computing positive weights at training 3. All human-object interactions. The metadata ca...
67.024
94
0.498568
7961afc14d225536ae68852f3efc394a0af07d09
8,267
py
Python
src/bets/ui/stats_tab/stats_tab_frame.py
nachereshata/bets-cli
ac728c666e2af06ac7545016ade82cf2c0a86bd6
[ "MIT" ]
null
null
null
src/bets/ui/stats_tab/stats_tab_frame.py
nachereshata/bets-cli
ac728c666e2af06ac7545016ade82cf2c0a86bd6
[ "MIT" ]
null
null
null
src/bets/ui/stats_tab/stats_tab_frame.py
nachereshata/bets-cli
ac728c666e2af06ac7545016ade82cf2c0a86bd6
[ "MIT" ]
1
2021-05-12T11:39:38.000Z
2021-05-12T11:39:38.000Z
from tkinter import Frame, Label from tkinter import EW, W, E, RAISED from tkinter.filedialog import askopenfilename, asksaveasfilename from tkinter.ttk import Button, Combobox, Entry, LabelFrame from pathlib import Path from typing import Dict from bets.model.stats import reports from bets.model.stats.stats_collect...
37.071749
110
0.65707
7961b120511564a19c03e348df75c148d42427ba
5,912
py
Python
c2cgeoportal/tests/test_init.py
craxxkid/c2cgeoportal
60ca7d5d014d69b0a938f858271c911a30da77c3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cgeoportal/tests/test_init.py
craxxkid/c2cgeoportal
60ca7d5d014d69b0a938f858271c911a30da77c3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cgeoportal/tests/test_init.py
craxxkid/c2cgeoportal
60ca7d5d014d69b0a938f858271c911a30da77c3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2012-2016, Camptocamp SA # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this #...
37.18239
87
0.648681
7961b1b8272a832dfc8ed650ad3f0a1de41f826d
1,740
py
Python
alipay/aop/api/response/AlipayOpenPublicGisQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayOpenPublicGisQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayOpenPublicGisQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenPublicGisQueryResponse(AlipayResponse): def __init__(self): super(AlipayOpenPublicGisQueryResponse, self).__init__() self._accuracy = None self._cit...
26.363636
105
0.636782
7961b286c29d88904d9fd571b4596747e685c0da
25,824
py
Python
src/sage/combinat/free_prelie_algebra.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
3
2018-09-11T11:16:26.000Z
2019-09-10T15:26:37.000Z
src/sage/combinat/free_prelie_algebra.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
2
2018-10-30T13:40:20.000Z
2020-07-23T12:13:30.000Z
src/sage/combinat/free_prelie_algebra.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
3
2020-03-29T17:13:36.000Z
2021-05-03T18:11:28.000Z
# -*- coding: utf-8 -*- r""" Free Pre-Lie Algebras AUTHORS: - Florent Hivert, Frédéric Chapoton (2011) """ #***************************************************************************** # Copyright (C) 2010-2015 Florent Hivert <Florent.Hivert@lri.fr>, # # Distributed under the terms of the GNU General Public ...
31.724816
124
0.511075
7961b2ff46e2a61bd95fc75d62a96104599c2140
3,359
py
Python
Capstone/Week1/trie_matching_extended V4.py
lovroselic/Coursera
1598b4fe02eb3addbc847f4f3ec21fb5b6e0be08
[ "MIT" ]
null
null
null
Capstone/Week1/trie_matching_extended V4.py
lovroselic/Coursera
1598b4fe02eb3addbc847f4f3ec21fb5b6e0be08
[ "MIT" ]
null
null
null
Capstone/Week1/trie_matching_extended V4.py
lovroselic/Coursera
1598b4fe02eb3addbc847f4f3ec21fb5b6e0be08
[ "MIT" ]
null
null
null
NA = -1 DEBUG = True class Node: def __init__ (self): self.next = [NA] * 4 self.patternEnd = [False] * 4 def isLeaf(self): return self.next[0] == -1 and self.next[1] == -1 and self.next[2] == -1 and self.next[3] == -1 def letterToIndex(char): if char == "A": retur...
27.760331
102
0.362013
7961b388bfb93813bb935d773450488177523a6f
381
py
Python
utils/config.py
CommonCrisis/wetterochs-telegram-bot
8a7825a551addbae339e7eeaf3588f3717938861
[ "Apache-2.0" ]
null
null
null
utils/config.py
CommonCrisis/wetterochs-telegram-bot
8a7825a551addbae339e7eeaf3588f3717938861
[ "Apache-2.0" ]
null
null
null
utils/config.py
CommonCrisis/wetterochs-telegram-bot
8a7825a551addbae339e7eeaf3588f3717938861
[ "Apache-2.0" ]
null
null
null
DB_NAME = 'telegram_bots.db.sqlite' DB_BU_NAME = 'telegram_bots_bkp.db.sqlite' REBUILD_TABLES = False WELCOME_MESSAGE = """ Willkommen zum inoffiziellen Wetterochs-Mail-Bot auf Telegram! Um die letzte Wettermail zu erhalten tippe: /update Um den Bot zu deaktivieren tippe: /stop Um den Spendenlink für den Wetterochs zu ...
34.636364
64
0.795276
7961b40409221c5f916d42ad6eec2171e2c817a8
4,732
py
Python
karbor-1.3.0/karbor/services/operationengine/engine/triggers/trigger_manager.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
1
2021-05-23T01:48:25.000Z
2021-05-23T01:48:25.000Z
karbor-1.3.0/karbor/services/operationengine/engine/triggers/trigger_manager.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
karbor-1.3.0/karbor/services/operationengine/engine/triggers/trigger_manager.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
35.578947
78
0.669696
7961b4bfe75b8dd74e54b6dcf078fabb03af9a59
26,681
py
Python
apitools/base/py/transfer_test.py
rrauber/apitools
f11e0980af89428d3330bbe88702e011c505471c
[ "Apache-2.0" ]
143
2015-02-24T17:40:06.000Z
2022-03-31T15:02:41.000Z
src/sat_mapping/Lib/gsutil/third_party/apitools/apitools/base/py/transfer_test.py
cyborg-ai-ch/sat_mapping
49705d02b8eff624f08f537451ee5ec572e958d0
[ "MIT" ]
275
2015-02-26T19:10:31.000Z
2021-08-20T18:03:31.000Z
src/sat_mapping/Lib/gsutil/third_party/apitools/apitools/base/py/transfer_test.py
cyborg-ai-ch/sat_mapping
49705d02b8eff624f08f537451ee5ec572e958d0
[ "MIT" ]
143
2015-03-02T21:36:35.000Z
2021-11-05T17:04:39.000Z
# -*- coding: utf-8 -*- # # Copyright 2015 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...
43.811166
79
0.59102
7961b924eef3d283fddad451a162d6c3a46b820a
5,303
py
Python
doc/examples/segmentation/plot_segmentations.py
arnabmaji1981/scikit-image
aff33569589fcc972084c0c930d85d8471a70bea
[ "BSD-3-Clause" ]
2
2020-02-24T02:24:43.000Z
2021-12-19T11:44:34.000Z
doc/examples/segmentation/plot_segmentations.py
arnabmaji1981/scikit-image
aff33569589fcc972084c0c930d85d8471a70bea
[ "BSD-3-Clause" ]
null
null
null
doc/examples/segmentation/plot_segmentations.py
arnabmaji1981/scikit-image
aff33569589fcc972084c0c930d85d8471a70bea
[ "BSD-3-Clause" ]
2
2019-06-16T06:38:28.000Z
2021-12-19T11:44:48.000Z
""" ==================================================== Comparison of segmentation and superpixel algorithms ==================================================== This example compares four popular low-level image segmentation methods. As it is difficult to obtain good segmentations, and the definition of "good" ofte...
42.424
81
0.741656
7961b954d3a2ac4cee72dd518beea659373a0d29
87,437
py
Python
pandas/core/window/rolling.py
EkaterinaKuzkina/pandas
d0cf9b5f419d4a3f0dc92a3af3a592f8bbf0bd15
[ "BSD-3-Clause" ]
1
2022-03-05T02:14:02.000Z
2022-03-05T02:14:02.000Z
pandas/core/window/rolling.py
EkaterinaKuzkina/pandas
d0cf9b5f419d4a3f0dc92a3af3a592f8bbf0bd15
[ "BSD-3-Clause" ]
1
2022-03-08T02:15:07.000Z
2022-03-08T02:15:07.000Z
pandas/core/window/rolling.py
LiBrian415/pandas
87803d0c3abfbbac5261a2b1a94e6a76a934b1bf
[ "BSD-3-Clause" ]
1
2022-03-22T11:50:25.000Z
2022-03-22T11:50:25.000Z
""" Provide a generic structure to support window functions, similar to how we have a Groupby object. """ from __future__ import annotations import copy from datetime import timedelta from functools import partial import inspect from textwrap import dedent from typing import ( TYPE_CHECKING, Any, Callable,...
32.589266
104
0.555017
7961b96d88189b35c094d69293d72021c0f250e5
11,448
py
Python
verticapy/tests/vModel/test_pipeline.py
afard/VerticaPy
ecbee0027a208ba53b31438e5b2f4577af95a07e
[ "Apache-2.0" ]
52
2020-06-29T12:31:14.000Z
2022-03-31T20:24:23.000Z
verticapy/tests/vModel/test_pipeline.py
afard/VerticaPy
ecbee0027a208ba53b31438e5b2f4577af95a07e
[ "Apache-2.0" ]
175
2020-07-13T18:16:28.000Z
2022-03-31T14:01:45.000Z
verticapy/tests/vModel/test_pipeline.py
afard/VerticaPy
ecbee0027a208ba53b31438e5b2f4577af95a07e
[ "Apache-2.0" ]
21
2020-07-07T22:53:10.000Z
2022-03-04T11:30:48.000Z
# (c) Copyright [2018-2021] Micro Focus or one of its affiliates. # 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 applicabl...
39.205479
113
0.588487
7961b9b92452dd4b00f6abf2f621d5c0b3e18f78
228
py
Python
Problems/Fish in the water/task.py
Answerman/Coffee-Machine
035df5a89c681eb5a6e4100a71f5b0e7da7bf9b9
[ "MIT" ]
null
null
null
Problems/Fish in the water/task.py
Answerman/Coffee-Machine
035df5a89c681eb5a6e4100a71f5b0e7da7bf9b9
[ "MIT" ]
null
null
null
Problems/Fish in the water/task.py
Answerman/Coffee-Machine
035df5a89c681eb5a6e4100a71f5b0e7da7bf9b9
[ "MIT" ]
null
null
null
class Fish: place = "aquarium" n_fish = 0 # number of fish in the aquarium def __init__(self, name, kind): self.name = name self.kind = kind Fish.n_fish += 1 greg = Fish("Greg", "guppy")
17.538462
48
0.565789
7961b9bce31285b970c4735d696a3d3d4329c077
8,087
py
Python
qitime.py
StarlightHunter/qitime
34055c31d69a27c9d609ab277550494b0c806d72
[ "MIT" ]
null
null
null
qitime.py
StarlightHunter/qitime
34055c31d69a27c9d609ab277550494b0c806d72
[ "MIT" ]
null
null
null
qitime.py
StarlightHunter/qitime
34055c31d69a27c9d609ab277550494b0c806d72
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ## ## qitime - Quality Imaging Time ## (C) 2020 Victor R. Ruiz <rvr@linotipo.es> ## ## Calculates the Quality Imaging Time (dark hours) for a given date. ## Based on a concept developed by Charles Bracken: ## https://digitalstars.wordpress.com/ ## import argparse import datetime import ephem def ge...
31.964427
97
0.528874
7961b9e0adba6949f43bb8a721f06c8428453649
1,416
py
Python
m/commands/async_command.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
1
2015-04-18T16:48:48.000Z
2015-04-18T16:48:48.000Z
m/commands/async_command.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
null
null
null
m/commands/async_command.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
null
null
null
import miner_globals from base import * def p_async_command(p): """command : ASYNC integer""" p[0] = AsyncCommand(p[2]) class AsyncCommand(CommandBase): NAME = "ASYNC" SHORT_HELP = "ASYNC <max-buffered-records> - runs previous commands in chain in different thread" LONG_HELP = """ASYNC <max-buffer...
30.12766
101
0.674435
7961b9fd5a20f24481f69c108b25bbcdc22f6a36
381
py
Python
ex7.py
YunMeMeThaw/python_exercises
151d5d3695d578059611ac09c94b3677442197d7
[ "MIT" ]
null
null
null
ex7.py
YunMeMeThaw/python_exercises
151d5d3695d578059611ac09c94b3677442197d7
[ "MIT" ]
null
null
null
ex7.py
YunMeMeThaw/python_exercises
151d5d3695d578059611ac09c94b3677442197d7
[ "MIT" ]
null
null
null
print("Mary had a little lamb.") print("Its fleece was white as {}.".format('snow')) print("And everywher that Marry went.") print("." * 10) end1 = "C" end2 = "h" end3 = "e" end4 = "e" end5 = "s" end6 = "e" end7 = "B" end8 = "u" end9 = "r" end10 = "g" end11 = "e" end12 = "r" print(end1 + end2 + end3 + end4 + end5 + end...
20.052632
55
0.580052
7961ba7cd0cacbee2c6080c1df4926144b424a68
6,291
py
Python
ga/generate.py
pfrag/vassign
7882d4a491a8e7550de30f67430e970d59339260
[ "Apache-2.0" ]
null
null
null
ga/generate.py
pfrag/vassign
7882d4a491a8e7550de30f67430e970d59339260
[ "Apache-2.0" ]
null
null
null
ga/generate.py
pfrag/vassign
7882d4a491a8e7550de30f67430e970d59339260
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright 2020 Pantelis Frangoudis 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 ...
25.573171
147
0.649022
7961baff3bde5d38b02187093e6138e257e91b35
387
py
Python
parser/team20/execution/AST/sentence.py
susanliss/tytus
a613a2352cf4a1d0e90ce27bb346ab60ed8039cc
[ "MIT" ]
null
null
null
parser/team20/execution/AST/sentence.py
susanliss/tytus
a613a2352cf4a1d0e90ce27bb346ab60ed8039cc
[ "MIT" ]
null
null
null
parser/team20/execution/AST/sentence.py
susanliss/tytus
a613a2352cf4a1d0e90ce27bb346ab60ed8039cc
[ "MIT" ]
null
null
null
class Sentencia: ''' ''' class CreateDatabase(Sentencia): def __init__(self, name, ifexistsNotFlag): self.name = name self.ifexistsNotFlag = ifexistsNotFlag # class Select(Sentencia): # def __init__(self, id): # self.id = id # aqui se agregan los valores necesarios para un ...
32.25
124
0.674419
7961bb363d5c13b6025642cc3f3c467f3e916bef
9,788
py
Python
lib/python3.6/site-packages/django_mysql/forms.py
tkong233/Django-practice
a17fc06b4faee20f5e823c1799e803159116667c
[ "MIT" ]
1
2020-05-24T19:54:01.000Z
2020-05-24T19:54:01.000Z
lib/python3.6/site-packages/django_mysql/forms.py
tkong233/Django-practice
a17fc06b4faee20f5e823c1799e803159116667c
[ "MIT" ]
1
2022-03-02T07:06:34.000Z
2022-03-02T07:06:34.000Z
lib/python3.6/site-packages/django_mysql/forms.py
tkong233/Django-practice
a17fc06b4faee20f5e823c1799e803159116667c
[ "MIT" ]
1
2020-06-14T01:01:51.000Z
2020-06-14T01:01:51.000Z
import json from django import forms from django.core import validators from django.core.exceptions import ValidationError from django.utils.text import format_lazy from django.utils.translation import ugettext_lazy as _ from django_mysql.validators import ( ListMaxLengthValidator, ListMinLengthValidator, ...
34.10453
88
0.476093
7961bc7517dbaddd3d7a5669913ca8c31c767ba0
1,850
py
Python
btcgreen/types/unfinished_block.py
grayfallstown/btcgreen-blockchain
9a1b8ed604ee7b3b01dff08076ec03f1e22924d5
[ "Apache-2.0" ]
19
2021-08-09T21:21:09.000Z
2022-03-18T02:27:13.000Z
btcgreen/types/unfinished_block.py
grayfallstown/btcgreen-blockchain
9a1b8ed604ee7b3b01dff08076ec03f1e22924d5
[ "Apache-2.0" ]
29
2021-08-13T12:05:09.000Z
2022-03-20T19:30:36.000Z
btcgreen/types/unfinished_block.py
grayfallstown/btcgreen-blockchain
9a1b8ed604ee7b3b01dff08076ec03f1e22924d5
[ "Apache-2.0" ]
4
2021-08-18T16:42:30.000Z
2022-03-15T08:24:58.000Z
from dataclasses import dataclass from typing import List, Optional from btcgreen.types.blockchain_format.foliage import Foliage, FoliageTransactionBlock, TransactionsInfo from btcgreen.types.blockchain_format.program import SerializedProgram from btcgreen.types.blockchain_format.reward_chain_block import RewardChainB...
43.023256
104
0.794595
7961bcdc12a085bedeb1807d1f347ac40c37c926
1,150
py
Python
HeapGenerator.py
schop-rob/algorithmen1KITUebungen
1185e3bbd9f1e40cc34fe66d04e4891c77603705
[ "Apache-2.0" ]
null
null
null
HeapGenerator.py
schop-rob/algorithmen1KITUebungen
1185e3bbd9f1e40cc34fe66d04e4891c77603705
[ "Apache-2.0" ]
null
null
null
HeapGenerator.py
schop-rob/algorithmen1KITUebungen
1185e3bbd9f1e40cc34fe66d04e4891c77603705
[ "Apache-2.0" ]
null
null
null
#author Robin Schöppner #version 2 import argparse import random parser = argparse.ArgumentParser(description="Manipulieren von Anzahl der Aufgaben") parser.add_argument("--tasks", default = 6, help = "Anzahl Aufgaben, die generiert werden sollen, zum Beispiel:\n--tasks=4") args = parser.parse_args() val = int(input("W...
30.263158
124
0.668696
7961bf09241ee8dc1b992a450ec409f93aea1f50
6,590
py
Python
testscripts/RDKB/component/WIFIHAL/TS_WIFIHAL_2.4GHzGetRadioBeaconPeriod.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WIFIHAL/TS_WIFIHAL_2.4GHzGetRadioBeaconPeriod.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WIFIHAL/TS_WIFIHAL_2.4GHzGetRadioBeaconPeriod.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2017 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
51.484375
236
0.744613
7961bf42c4810e84ef6e7bd0daa716e8950cc4df
2,142
py
Python
pymake_module_dependencies.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
pymake_module_dependencies.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
pymake_module_dependencies.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.7 # kernelspec: # display_name: Python [conda env:bandit_38] # language: python # name: conda-env-bandi...
31.043478
288
0.748833
7961bf7053f64d91b066d26580f580b80fcf80f2
7,798
py
Python
src/third_party/wiredtiger/dist/stat.py
LightBitsLabs/mongo
9480ef00a8df2464457ab0f31c7a336f882e8ec1
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/dist/stat.py
LightBitsLabs/mongo
9480ef00a8df2464457ab0f31c7a336f882e8ec1
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/dist/stat.py
LightBitsLabs/mongo
9480ef00a8df2464457ab0f31c7a336f882e8ec1
[ "Apache-2.0" ]
null
null
null
# Read the source files and output the statistics #defines plus the # initialize and refresh code. import re, string, sys, textwrap from dist import compare_srcfile # Read the source files. from stat_data import groups, dsrc_stats, connection_stats, join_stats def print_struct(title, name, base, stats): '''Print...
30.342412
80
0.569377