hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
2d0f60b4837efa48b11d063df69b7b66b20f6ba2
3,308
py
Python
meshlab_pickedpoints/test_core.py
lace/meshlab-pickedpoints
c420e43999ccad8a6d438ffa7971dd115d7513c3
[ "BSD-2-Clause" ]
2
2021-02-17T13:49:25.000Z
2021-07-19T11:05:15.000Z
meshlab_pickedpoints/test_core.py
lace/meshlab-pickedpoints
c420e43999ccad8a6d438ffa7971dd115d7513c3
[ "BSD-2-Clause" ]
25
2020-10-01T07:43:52.000Z
2022-03-01T02:03:29.000Z
meshlab_pickedpoints/test_core.py
lace/meshlab-pickedpoints
c420e43999ccad8a6d438ffa7971dd115d7513c3
[ "BSD-2-Clause" ]
1
2021-12-17T14:47:37.000Z
2021-12-17T14:47:37.000Z
# Adapted from # https://github.com/lace/lace/blob/d3c191dffaeedc14aafa4af031d74743de9e632d/lace/serialization/meshlab_pickedpoints.py # https://github.com/lace/lace/blob/d3c191dffaeedc14aafa4af031d74743de9e632d/lace/test_meshlab_pickedpoints.py from lxml import etree, objectify import numpy as np import pytest from ....
29.801802
119
0.683495
a75782feb2bf6be8377f8110e5ee78f38fb60788
5,675
py
Python
tests/test_client.py
jcarswell/tftpy
9c171c7e969b80f2c00728df21d5534b3191620a
[ "MIT" ]
null
null
null
tests/test_client.py
jcarswell/tftpy
9c171c7e969b80f2c00728df21d5534b3191620a
[ "MIT" ]
null
null
null
tests/test_client.py
jcarswell/tftpy
9c171c7e969b80f2c00728df21d5534b3191620a
[ "MIT" ]
null
null
null
import unittest import os import time import logging from multiprocessing import Queue from tempfile import TemporaryFile,TemporaryDirectory import tftpy from tftpy import shared log = logging.getLogger('tftpy') log.setLevel(logging.INFO) # console handler handler = logging.StreamHandler() handler.s...
32.614943
94
0.596476
df6cf4708d43dbd9efe75d7f555c11d27f536fcc
5,577
py
Python
Source Code/randomsearch.py
nowtryz/SubUnet
881fdcf1a3e95378cd3ecd2f64aef41258fb62d2
[ "MIT" ]
null
null
null
Source Code/randomsearch.py
nowtryz/SubUnet
881fdcf1a3e95378cd3ecd2f64aef41258fb62d2
[ "MIT" ]
null
null
null
Source Code/randomsearch.py
nowtryz/SubUnet
881fdcf1a3e95378cd3ecd2f64aef41258fb62d2
[ "MIT" ]
null
null
null
import argparse import itertools import json import math from datetime import datetime from pathlib import Path from random import random from torch.optim import Adam from focal import FocalLoss from loss import * from main import run_training, basic_validation, basic_training from skynet import skynet_training, skyn...
35.297468
117
0.629012
d3fdd86777a21ed4a460b926ea2f332e93839814
11,319
py
Python
layers/kerasGroupNorm.py
DawyD/illumination-preserving-rotations
4fb69dc2526579a7677c27e75eae3a0b0000b5de
[ "MIT" ]
null
null
null
layers/kerasGroupNorm.py
DawyD/illumination-preserving-rotations
4fb69dc2526579a7677c27e75eae3a0b0000b5de
[ "MIT" ]
null
null
null
layers/kerasGroupNorm.py
DawyD/illumination-preserving-rotations
4fb69dc2526579a7677c27e75eae3a0b0000b5de
[ "MIT" ]
null
null
null
import logging import tensorflow as tf from tensorflow_addons.utils import keras_utils @tf.keras.utils.register_keras_serializable(package='Commmon') class GroupNormalization(tf.keras.layers.Layer): """Group normalization layer. Group Normalization divides the channels into groups and computes within each ...
39.996466
79
0.638749
f2e45f75a560ac8cce8e5b5b81e3782df3b8d237
1,423
py
Python
data_processing/generate_cc_index_list.py
ffaltings/WikiCommentEdit
28a31fe5bd25c6cc988cdd7408064990a46ff797
[ "MIT" ]
null
null
null
data_processing/generate_cc_index_list.py
ffaltings/WikiCommentEdit
28a31fe5bd25c6cc988cdd7408064990a46ff797
[ "MIT" ]
null
null
null
data_processing/generate_cc_index_list.py
ffaltings/WikiCommentEdit
28a31fe5bd25c6cc988cdd7408064990a46ff797
[ "MIT" ]
null
null
null
import os, io, argparse, logging, json, gzip import urllib.request import ssl ssl._create_default_https_context = ssl._create_unverified_context CollectionInfo = "https://index.commoncrawl.org/collinfo.json" PathPattern = "https://commoncrawl.s3.amazonaws.com/crawl-data/{}/cc-index.paths.gz" IndexPattern = "https://co...
41.852941
134
0.692902
5d35952e5f0badbe5a125e1afc4b4f1c37f50c0d
3,351
py
Python
pypureclient/flasharray/FA_2_10/models/fixed_reference.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_10/models/fixed_reference.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_10/models/fixed_reference.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.10 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
28.398305
105
0.53775
0245d3847652f5fd850dbf63ba417a8d1787930c
2,005
py
Python
bootstrap/utils.py
lagner/academ-weather
333ec431e6d99d4d403c61ecf057212037e88f50
[ "MIT" ]
null
null
null
bootstrap/utils.py
lagner/academ-weather
333ec431e6d99d4d403c61ecf057212037e88f50
[ "MIT" ]
null
null
null
bootstrap/utils.py
lagner/academ-weather
333ec431e6d99d4d403c61ecf057212037e88f50
[ "MIT" ]
null
null
null
import os import subprocess import logging as log from shutil import copy2 from contextlib import contextmanager @contextmanager def pushd(newDir): previousDir = os.getcwd() os.chdir(newDir) yield os.chdir(previousDir) def static_vars(**kwargs): def decorate(func): for k in kwargs: ...
23.869048
77
0.609476
34bbd7f8cefe4621f50cbd4a8cdbd44a76a9d2c1
21,642
py
Python
hydrus/client/ClientManagers.py
rachmadaniHaryono/hydrus
c85507a2eefbd87a7700fb8c78fa365a92a83d7b
[ "WTFPL" ]
1
2021-05-16T16:06:48.000Z
2021-05-16T16:06:48.000Z
hydrus/client/ClientManagers.py
rachmadaniHaryono/hydrus
c85507a2eefbd87a7700fb8c78fa365a92a83d7b
[ "WTFPL" ]
5
2021-03-31T05:48:17.000Z
2021-04-30T05:51:34.000Z
hydrus/client/ClientManagers.py
rachmadaniHaryono/hydrus
c85507a2eefbd87a7700fb8c78fa365a92a83d7b
[ "WTFPL" ]
2
2021-03-28T23:17:50.000Z
2021-05-16T15:46:52.000Z
import collections import threading import typing from qtpy import QtGui as QG from hydrus.core import HydrusConstants as HC from hydrus.core import HydrusData from hydrus.core import HydrusGlobals as HG from hydrus.client import ClientConstants as CC from hydrus.client import ClientData # now let's fill out grandp...
34.850242
262
0.553415
fe9c77f5d070ba98e5c109d6e4984bbb5de73a4a
1,217
py
Python
src/zabbix_enums/specific/z54/item.py
szuro/zabbix-enums
f2ef3b9ea630f678c336d4fc58b5401771a0e4d1
[ "MIT" ]
1
2022-02-07T01:21:34.000Z
2022-02-07T01:21:34.000Z
src/zabbix_enums/specific/z54/item.py
szuro/zabbix-enums
f2ef3b9ea630f678c336d4fc58b5401771a0e4d1
[ "MIT" ]
null
null
null
src/zabbix_enums/specific/z54/item.py
szuro/zabbix-enums
f2ef3b9ea630f678c336d4fc58b5401771a0e4d1
[ "MIT" ]
null
null
null
from zabbix_enums.common import _ZabbixEnum class ItemType(_ZabbixEnum): ZABBIX_AGENT = 0 ZABBIX_TRAPPER = 2 SIMPLE_CHECK = 3 ZABBIX_INTERNAL = 5 ZABBIX_AGENT_ACTIVE = 7 WEB_ITEM = 9 EXTERNAL_CHECK = 10 DATABASE_MONITOR = 11 IPMI_AGENT = 12 SSH_AGENT = 13 TELNET_AGENT = 14 ...
22.962264
49
0.688578
627fa913407d67aaea82970dce152726aefa9c7c
3,556
py
Python
src/atom/url.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
src/atom/url.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
src/atom/url.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright (C) 2008 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 ...
29.882353
135
0.66676
08391b145ff084e8cf3cd3afea88e878b033be13
10,607
py
Python
src/cgan/train.py
ricbl/gradient-direction-of-robust-models
bfdafc1940450b8e68fe25e54484b7f341105363
[ "MIT" ]
null
null
null
src/cgan/train.py
ricbl/gradient-direction-of-robust-models
bfdafc1940450b8e68fe25e54484b7f341105363
[ "MIT" ]
null
null
null
src/cgan/train.py
ricbl/gradient-direction-of-robust-models
bfdafc1940450b8e68fe25e54484b7f341105363
[ "MIT" ]
null
null
null
""" BigGAN: The Authorized Unofficial PyTorch release Code by A. Brock and A. Andonian This code is an unofficial reimplementation of "Large-Scale GAN Training for High Fidelity Natural Image Synthesis," by A. Brock, J. Donahue, and K. Simonyan (arXiv 1809.11096). Let's go. """ import os import fu...
40.026415
126
0.625436
4bbb6fd480dc94e18dd0f2759fd8a12179fbbeed
7,382
py
Python
glance/api/v2/image_data.py
cloudbau/glance
616b097c052f5bf59b05326ed1d2d1ae1c703dc9
[ "Apache-2.0" ]
null
null
null
glance/api/v2/image_data.py
cloudbau/glance
616b097c052f5bf59b05326ed1d2d1ae1c703dc9
[ "Apache-2.0" ]
null
null
null
glance/api/v2/image_data.py
cloudbau/glance
616b097c052f5bf59b05326ed1d2d1ae1c703dc9
[ "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 req...
39.902703
79
0.595232
7000d6845e2af73beb5f04eabb71e3bfa6a8246b
1,155
py
Python
archive/Model/sequence/time_series/ARIMA.py
KrisCheng/Hitchhiker-Guide-to-Machine-Learning
676edabc8690727b22189536b28de3e2dad0f08c
[ "MIT" ]
4
2018-01-05T02:54:18.000Z
2018-09-02T10:05:54.000Z
archive/Model/sequence/time_series/ARIMA.py
KrisCheng/Hitchhiker-Guide-to-Machine-Learning
676edabc8690727b22189536b28de3e2dad0f08c
[ "MIT" ]
null
null
null
archive/Model/sequence/time_series/ARIMA.py
KrisCheng/Hitchhiker-Guide-to-Machine-Learning
676edabc8690727b22189536b28de3e2dad0f08c
[ "MIT" ]
2
2017-10-02T11:43:54.000Z
2017-10-07T10:52:22.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # load and plot dataset from pandas import read_csv from pandas import datetime from pandas import DataFrame from statsmodels.tsa.arima_model import ARIMA from sklearn.metrics import mean_squared_error from math import sqrt from matplotlib import pyplot # load dataset def pars...
29.615385
83
0.712554
b98bc725962c551d113b9fc74b8e580b1dcd5206
1,124
py
Python
Python/leetcode/UniquePathsIi.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
2
2015-12-02T06:44:01.000Z
2016-05-04T21:40:54.000Z
Python/leetcode/UniquePathsIi.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
Python/leetcode/UniquePathsIi.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
''' Created on 1.12.2016 @author: Darren '''''' Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respectively in the grid. For example, There is one obstacle in the middle of...
22.938776
94
0.538256
4ab642145e9451d9ba86af5ddaa3dc298d00ae65
884
py
Python
backend/app/settings/sections/templates.py
mnieber/django-graphql-registration
20dc61e207f92dcbc88fb83707315e5b304238cd
[ "MIT" ]
null
null
null
backend/app/settings/sections/templates.py
mnieber/django-graphql-registration
20dc61e207f92dcbc88fb83707315e5b304238cd
[ "MIT" ]
null
null
null
backend/app/settings/sections/templates.py
mnieber/django-graphql-registration
20dc61e207f92dcbc88fb83707315e5b304238cd
[ "MIT" ]
null
null
null
import os from .paths import PROJECT_DIR TEMPLATES = [ { "BACKEND": "django.template.backends.django.DjangoTemplates", "DIRS": [ os.path.join(PROJECT_DIR, "templates"), ], "APP_DIRS": True, "OPTIONS": { "context_processors": [ "django...
32.740741
70
0.573529
46c444253cedaf65cc7c270da5823ef115ef6ad2
843
py
Python
reporter/uhl_reports/civicrm/__init__.py
LCBRU/reporter
8cb0ae403346e375a5e99d1d4df375cf2d5f3b81
[ "MIT" ]
null
null
null
reporter/uhl_reports/civicrm/__init__.py
LCBRU/reporter
8cb0ae403346e375a5e99d1d4df375cf2d5f3b81
[ "MIT" ]
null
null
null
reporter/uhl_reports/civicrm/__init__.py
LCBRU/reporter
8cb0ae403346e375a5e99d1d4df375cf2d5f3b81
[ "MIT" ]
null
null
null
def get_case_link(link_text, case_id, contact_id): CIVICRM_CASE_URL = ('[{}](' 'http://lcbru.xuhl-tr.nhs.uk/civicrm/contact/view/case' '?id={}&cid={}&action=view)') return (CIVICRM_CASE_URL.format( link_text, case_id, contact_id)) ...
27.193548
80
0.565836
5781053347a8209ad2c0e85e8022458f49c32732
26,622
py
Python
bioblend/galaxy/libraries/__init__.py
bgruening/bioblend
d3686a7eccbbc5d0c6cdb88e0f4eb170e0e77acd
[ "MIT" ]
null
null
null
bioblend/galaxy/libraries/__init__.py
bgruening/bioblend
d3686a7eccbbc5d0c6cdb88e0f4eb170e0e77acd
[ "MIT" ]
null
null
null
bioblend/galaxy/libraries/__init__.py
bgruening/bioblend
d3686a7eccbbc5d0c6cdb88e0f4eb170e0e77acd
[ "MIT" ]
null
null
null
""" Contains possible interactions with the Galaxy Data Libraries """ import logging import time from bioblend.galaxy.client import Client from bioblend.galaxy.datasets import ( DatasetTimeoutException, TERMINAL_STATES, ) from bioblend.util import attach_file log = logging.getLogger(__name__) class LibraryC...
36.975
146
0.607918
784287490e10c39d8fdbe8b9f89d4be6cdfdb11d
1,303
py
Python
test/frame/noise/test_generator.py
lethaiq/machin
7873cada457328952310394afeedcad4bb6a7c4a
[ "MIT" ]
null
null
null
test/frame/noise/test_generator.py
lethaiq/machin
7873cada457328952310394afeedcad4bb6a7c4a
[ "MIT" ]
null
null
null
test/frame/noise/test_generator.py
lethaiq/machin
7873cada457328952310394afeedcad4bb6a7c4a
[ "MIT" ]
null
null
null
from machin.frame.noise.generator import ( NormalNoiseGen, UniformNoiseGen, ClippedNormalNoiseGen, OrnsteinUhlenbeckNoiseGen ) import torch as t class TestAllNoiseGen(object): ######################################################################## # Test for all noise generators ################...
33.410256
76
0.597084
fa1d9790639eb6546449d34758869ce7d6672be6
7,838
py
Python
contrib/bitrpc/bitrpc.py
JayFwj/soomcoin
3f91a0134c8f6633dd14f88397de74d9292ca853
[ "MIT" ]
null
null
null
contrib/bitrpc/bitrpc.py
JayFwj/soomcoin
3f91a0134c8f6633dd14f88397de74d9292ca853
[ "MIT" ]
null
null
null
contrib/bitrpc/bitrpc.py
JayFwj/soomcoin
3f91a0134c8f6633dd14f88397de74d9292ca853
[ "MIT" ]
null
null
null
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:9332") else: access = Ser...
24.116923
79
0.668283
3010321bb4bcade124245810b8558aae63a8a032
2,602
py
Python
setup.py
Jiadalee/swmmtoolbox
9d151659ad75b2055b88f0357636ba8f8fb2e0f0
[ "BSD-3-Clause" ]
1
2021-09-19T05:43:58.000Z
2021-09-19T05:43:58.000Z
setup.py
Jiadalee/swmmtoolbox
9d151659ad75b2055b88f0357636ba8f8fb2e0f0
[ "BSD-3-Clause" ]
null
null
null
setup.py
Jiadalee/swmmtoolbox
9d151659ad75b2055b88f0357636ba8f8fb2e0f0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys from setuptools import find_packages, setup # temporarily redirect config directory to prevent matplotlib importing # testing that for writeable directory which results in sandbox error in # certain easy_install versions os.environ["MPLCONFIGDIR"] = "." pkg_name = "swmmt...
29.908046
108
0.63259
16fb8b013631500bdad3218e2b2534ce774174b7
273
py
Python
csf_tz/workshop/doctype/workshop_services_table/workshop_services_table.py
Craftint/CSF_TZ
b5cb2d59d8f4e958ad7d4cb89421cfbec992abc5
[ "MIT" ]
null
null
null
csf_tz/workshop/doctype/workshop_services_table/workshop_services_table.py
Craftint/CSF_TZ
b5cb2d59d8f4e958ad7d4cb89421cfbec992abc5
[ "MIT" ]
null
null
null
csf_tz/workshop/doctype/workshop_services_table/workshop_services_table.py
Craftint/CSF_TZ
b5cb2d59d8f4e958ad7d4cb89421cfbec992abc5
[ "MIT" ]
1
2022-03-17T22:49:40.000Z
2022-03-17T22:49:40.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Bravo Logistics and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class WorkshopServicesTable(Document): pass
24.818182
54
0.791209
491c5843c6db1a7ddfb929f213aa9ff3d00b1b2a
437
py
Python
PrivateMonitorServer/src/Handler/StatusHandler.py
ajax-2/PrivateMonitor
9ab79ad08ba820bdb4c292676299bdeb2af7f725
[ "Apache-2.0" ]
null
null
null
PrivateMonitorServer/src/Handler/StatusHandler.py
ajax-2/PrivateMonitor
9ab79ad08ba820bdb4c292676299bdeb2af7f725
[ "Apache-2.0" ]
null
null
null
PrivateMonitorServer/src/Handler/StatusHandler.py
ajax-2/PrivateMonitor
9ab79ad08ba820bdb4c292676299bdeb2af7f725
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from src.Interface.StatusInterface import StatusInterface class StatusHandler(object): @staticmethod def get_status(cluster, data): try: if not data: raise Exception(u"请传入json格式的参数") return StatusInterface.get_status(cluster, data) exce...
25.705882
96
0.652174
57fd2bfb6ab514e0e43b26c23d2c6fd137e4d0e5
3,223
py
Python
kickoff/kmeans.py
mpds-io/mpds-api
6a5197b5a42b78731490bd03bb89621eb31c98d5
[ "CC-BY-4.0", "MIT" ]
11
2017-11-30T15:00:42.000Z
2022-01-07T05:12:39.000Z
kickoff/kmeans.py
mpds-io/mpds-api
6a5197b5a42b78731490bd03bb89621eb31c98d5
[ "CC-BY-4.0", "MIT" ]
21
2017-11-06T14:46:52.000Z
2022-02-07T20:05:16.000Z
kickoff/kmeans.py
mpds-io/API
6a5197b5a42b78731490bd03bb89621eb31c98d5
[ "CC-BY-4.0", "MIT" ]
1
2017-08-01T15:56:39.000Z
2017-08-01T15:56:39.000Z
""" Pure-Python 100 lines multidimensional K-Means """ import math import random class Point(object): def __init__(self, coords, reference=None): self.coords = coords self.n = len(coords) self.reference = reference def __repr__(self): return ", ".join(map(str, self.coords)) c...
32.887755
103
0.610301
466a8269775df60cf80920230c95c8e3a32ee9a9
1,521
py
Python
python/test_server.py
Basic-Components/msgpack-rpc
7983ace5d5cfd7214df6803f9b1de458df5fe3b1
[ "MIT" ]
1
2018-03-30T17:26:21.000Z
2018-03-30T17:26:21.000Z
python/test_server.py
Basic-Components/msgpack-rpc-protocol
7983ace5d5cfd7214df6803f9b1de458df5fe3b1
[ "MIT" ]
null
null
null
python/test_server.py
Basic-Components/msgpack-rpc-protocol
7983ace5d5cfd7214df6803f9b1de458df5fe3b1
[ "MIT" ]
null
null
null
import platform from pymprpc.server import SimpleMprpcServer if platform.system() == "Windows": try: import aio_windows_patch as asyncio except: import warnings warnings.warn( "you should install aio_windows_patch to support windows", RuntimeWarning, s...
22.043478
70
0.590401
96f9ce4dc737f8c9aa5de49475b8c9159da08cff
4,810
py
Python
samples/python/_protobuf/person_pb2.py
FlorianReimold/ecal
e21e52c14f58e1cae38e3867940bf0292f5ccb9a
[ "Apache-2.0" ]
null
null
null
samples/python/_protobuf/person_pb2.py
FlorianReimold/ecal
e21e52c14f58e1cae38e3867940bf0292f5ccb9a
[ "Apache-2.0" ]
null
null
null
samples/python/_protobuf/person_pb2.py
FlorianReimold/ecal
e21e52c14f58e1cae38e3867940bf0292f5ccb9a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: person.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_da...
35.895522
485
0.737422
4517a109da7b4723dbf02aca845144daeb777d15
4,105
py
Python
src/core/conf/API/apis/APICoreConfig.py
xxdunedainxx/Z-Py
52d88e978300e371b484fe628bbc7d40fdd5beba
[ "Apache-2.0" ]
null
null
null
src/core/conf/API/apis/APICoreConfig.py
xxdunedainxx/Z-Py
52d88e978300e371b484fe628bbc7d40fdd5beba
[ "Apache-2.0" ]
null
null
null
src/core/conf/API/apis/APICoreConfig.py
xxdunedainxx/Z-Py
52d88e978300e371b484fe628bbc7d40fdd5beba
[ "Apache-2.0" ]
null
null
null
from ...ServiceConfig import ServiceConfig from ....conf.API.routes.RouteConfig import RouteConfig from ...Configuration import InMemConfig, DefaultServiceConfigurations class APICoreConfig(ServiceConfig): def __init__(self, file, routerConfig: RouteConfig, requir...
35.08547
86
0.599269
d366c40379e4e0135c79607619948a25c950c3eb
2,426
py
Python
suite/regress/test_arm64_ldr_registers.py
lyctw/capstone
88ba719e0d413e39e776138ad21f178aab025c5d
[ "BSD-3-Clause" ]
null
null
null
suite/regress/test_arm64_ldr_registers.py
lyctw/capstone
88ba719e0d413e39e776138ad21f178aab025c5d
[ "BSD-3-Clause" ]
null
null
null
suite/regress/test_arm64_ldr_registers.py
lyctw/capstone
88ba719e0d413e39e776138ad21f178aab025c5d
[ "BSD-3-Clause" ]
null
null
null
import unittest from capstone import * from capstone.arm64 import * class SubRegTest(unittest.TestCase): PATTERNS = [ ("41 00 40 F9", "ldr x1, [x2]"), ("41 00 40 39", "ldrb w1, [x2]"), ("41 00 C0 39", "ldrsb w1, [x2]"), ("41 00 40 79", "ldrh w1, [x2]"), ("88 c2 bf f8", "lda...
41.827586
144
0.602226
59e8d07ca88c5ef104deded8a8ec814815f77a33
3,432
py
Python
utils/hyper_param.py
JZX555/FineGrainedDomainAdaption
3873a7af9475d4fd3c1cc3c676ad3153fc3ce698
[ "Apache-2.0" ]
null
null
null
utils/hyper_param.py
JZX555/FineGrainedDomainAdaption
3873a7af9475d4fd3c1cc3c676ad3153fc3ce698
[ "Apache-2.0" ]
2
2021-11-12T08:01:06.000Z
2021-11-13T08:18:18.000Z
utils/hyper_param.py
JZX555/FineGrainedDomainAdaption
3873a7af9475d4fd3c1cc3c676ad3153fc3ce698
[ "Apache-2.0" ]
null
null
null
# encoding=utf-8 import os cwd = os.getcwd() class HyperParam: def __init__(self, mode, gpu=0, vocab=25000): self.gpu = gpu self.vocabulary_type = 'word' self.vocabulary_size = vocab self.general_path = None self.zhuxian_train = '/data_path/train.zhuxian.wordpos' ...
33
136
0.5912
1f301262db8390fe3900e440a5879e46db6cb50d
3,859
py
Python
Lib/tempfile.py
1byte2bytes/cpython
7fbaeb819ca7b20dca048217ff585ec195e999ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
1
2019-10-25T21:41:07.000Z
2019-10-25T21:41:07.000Z
Lib/tempfile.py
1byte2bytes/cpython
7fbaeb819ca7b20dca048217ff585ec195e999ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
Lib/tempfile.py
1byte2bytes/cpython
7fbaeb819ca7b20dca048217ff585ec195e999ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
# Temporary file name allocation # # XXX This tries to be not UNIX specific, but I don't know beans about # how to choose a temp directory or filename on MS-DOS or other # systems so it may have to be changed... import os # Parameters that the caller may set to override the defaults tempdir = None template = None ...
27.176056
79
0.575279
8dab8aefea7a43b6e63a25f7ddbdc9e1a865135c
4,975
py
Python
src/player.py
jaiwargacki/Snake
17104e324ecc9338a5fee2975c8ca7e4f2749f71
[ "MIT" ]
null
null
null
src/player.py
jaiwargacki/Snake
17104e324ecc9338a5fee2975c8ca7e4f2749f71
[ "MIT" ]
null
null
null
src/player.py
jaiwargacki/Snake
17104e324ecc9338a5fee2975c8ca7e4f2749f71
[ "MIT" ]
null
null
null
import random from constants import * """ Class used to represent the players snake. """ __author__ = "Jai Wargacki" class Snake: __slots__ = 'snake', 'length', 'facing', 'x_bound', 'y_bound' def __init__(self): self.x_bound, self.y_bound = WINDOW_DIMENSIONS self.snake = SnakeChain() ...
27.038043
95
0.548543
6ed0737f5762c1f67026195f3c9a24d705fd6843
14,408
py
Python
lib/rucio/tests/test_account.py
brianv0/rucio
127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0
[ "Apache-2.0" ]
null
null
null
lib/rucio/tests/test_account.py
brianv0/rucio
127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0
[ "Apache-2.0" ]
null
null
null
lib/rucio/tests/test_account.py
brianv0/rucio
127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0
[ "Apache-2.0" ]
null
null
null
# Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: # - Thomas Beermann, <t...
46.627832
143
0.6554
65c0bc2206cf734767da3d27a341d181558c8d91
2,238
py
Python
ciphers/vigenere.py
yabirgb/cryptography
235dbca1b30a07d694c50d6dbdd713de93d13d34
[ "MIT" ]
null
null
null
ciphers/vigenere.py
yabirgb/cryptography
235dbca1b30a07d694c50d6dbdd713de93d13d34
[ "MIT" ]
null
null
null
ciphers/vigenere.py
yabirgb/cryptography
235dbca1b30a07d694c50d6dbdd713de93d13d34
[ "MIT" ]
null
null
null
import string class KeyNotProvided(Exception): pass def encode(m:str ) -> str: mm = m.lower() mm = mm.replace(" ", "") return mm class Alphabet: pass class LatinAlphabet(Alphabet): def __init__(self): self.alph = string.ascii_lowercase def ord(self, char:str)->int: retu...
25.431818
121
0.55496
5faaa5e6516a3e895333ecaacc349a42ac520783
8,136
py
Python
symphony/bdk/gen/pod_model/file_extension.py
symphony-elias/symphony-bdk-python
0d1cd94a9982e3687ea52c49acdb5f942ecd9bec
[ "Apache-2.0" ]
17
2018-09-06T09:58:18.000Z
2021-07-13T12:54:20.000Z
symphony/bdk/gen/pod_model/file_extension.py
symphony-elias/symphony-bdk-python
0d1cd94a9982e3687ea52c49acdb5f942ecd9bec
[ "Apache-2.0" ]
59
2018-11-21T15:17:57.000Z
2021-08-03T10:00:43.000Z
symphony/bdk/gen/pod_model/file_extension.py
symphony-elias/symphony-bdk-python
0d1cd94a9982e3687ea52c49acdb5f942ecd9bec
[ "Apache-2.0" ]
37
2018-09-01T03:07:48.000Z
2021-07-06T10:21:50.000Z
""" Pod API This document refers to Symphony API calls that do not need encryption or decryption of content. - sessionToken can be obtained by calling the authenticationAPI on the symphony back end and the key manager respectively. Refer to the methods described in authenticatorAPI.yaml. - Actions are defined...
43.741935
637
0.602016
11926365a845d512fd31b1ff51bd33e24a33ca4d
518
py
Python
fdutils/db/sabase.py
filintod/pyremotelogin
e2a4df7fd69d21eccdf1aec55c33a839de9157f1
[ "MIT" ]
1
2018-11-20T17:45:20.000Z
2018-11-20T17:45:20.000Z
fdutils/db/sabase.py
filintod/pyremotelogin
e2a4df7fd69d21eccdf1aec55c33a839de9157f1
[ "MIT" ]
3
2018-10-16T18:07:50.000Z
2018-10-16T18:10:06.000Z
fdutils/db/sabase.py
filintod/pyremotelogin
e2a4df7fd69d21eccdf1aec55c33a839de9157f1
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base, declared_attr from .samixin import SessionMixin _Base = declarative_base() class DeclarativeBase(_Base, SessionMixin): __abstract__ = True class _DeclarativeBaseWithTableName: @declared_attr def __tablename__(cls): return cls.__name__.low...
23.545455
83
0.812741
e9f8d8dc81a044da5ddca54695492a2eeb7a82ac
3,475
py
Python
archiveis/api.py
pastpages/archiveis
cea3b8bdc2f471347ae18dbe238ed42e4d2ca99d
[ "MIT" ]
145
2017-04-01T03:11:24.000Z
2021-08-31T16:16:05.000Z
archiveis/api.py
pastpages/archiveis
cea3b8bdc2f471347ae18dbe238ed42e4d2ca99d
[ "MIT" ]
28
2016-10-22T18:51:21.000Z
2021-09-27T16:11:04.000Z
archiveis/api.py
pastpages/archiveis
cea3b8bdc2f471347ae18dbe238ed42e4d2ca99d
[ "MIT" ]
20
2016-10-22T22:33:28.000Z
2021-02-19T11:23:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import click import logging import requests logger = logging.getLogger(__name__) def capture( target_url, user_agent="archiveis (https://github.com/pastpages/archiveis)", proxies={} ): """ Archives the provided URL using archive.is Returns the URL...
31.026786
108
0.639712
814fcc45fe8027d2f15b7525f7eee02f9723b077
1,265
py
Python
r-notebook/tests/test_notebook.py
guidov/nbi-jupyter-docker-stacks
ca349fb79c17f99b00e94f137ca45d8e5ea03123
[ "MIT" ]
null
null
null
r-notebook/tests/test_notebook.py
guidov/nbi-jupyter-docker-stacks
ca349fb79c17f99b00e94f137ca45d8e5ea03123
[ "MIT" ]
null
null
null
r-notebook/tests/test_notebook.py
guidov/nbi-jupyter-docker-stacks
ca349fb79c17f99b00e94f137ca45d8e5ea03123
[ "MIT" ]
null
null
null
import os import subprocess import tempfile import nbformat cur_path = os.path.abspath(".") notebooks_path = os.path.join(cur_path, 'notebooks') kernels = ['ir'] def _notebook_run(path, kernel='python3'): """Execute a notebook via nbconvert and collect output. :returns (parsed nb object, execution errors)...
31.625
78
0.607905
9fa07965e01e7f0d249b5f808e5eac8161938f82
995
py
Python
vsts/vsts/task/v4_1/models/mask_hint.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/task/v4_1/models/mask_hint.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/task/v4_1/models/mask_hint.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
33.166667
94
0.457286
0c47c23931d231be1f9c73892893d891c18687b8
1,033
py
Python
tests/__init__.py
llbxg/NIST-SP-800-22
7e82243643b62fdc07cbe5f40d540b0a16a4372a
[ "MIT" ]
null
null
null
tests/__init__.py
llbxg/NIST-SP-800-22
7e82243643b62fdc07cbe5f40d540b0a16a4372a
[ "MIT" ]
null
null
null
tests/__init__.py
llbxg/NIST-SP-800-22
7e82243643b62fdc07cbe5f40d540b0a16a4372a
[ "MIT" ]
null
null
null
from tests.t_01_monobit_test import monobit_test from tests.t_02_frequncy_test_within_a_block import frequency_test_with_block from tests.t_03_run_test import run_test from tests.t_04_test_for_the_longest_run_of_ones_in_a_block import test_for_the_longest_run_of_ones_in_a_block from tests.t_05_binary_matrix_rank_test i...
73.785714
110
0.933204
d7551bf3e8cd750b1a1baa90639d33676d16a23e
617
py
Python
code/medida-tendencia-central/ejemplo-2-5/ejemplo_2_5.py
optimum-academy/estadistica-matematica
737a5359dae6db10cf21471dcb7613f75c48ff62
[ "CC-BY-4.0" ]
1
2021-07-26T19:56:13.000Z
2021-07-26T19:56:13.000Z
code/medida-tendencia-central/ejemplo-2-5/ejemplo_2_5.py
stempunk-xyz/estadistica-matematica
737a5359dae6db10cf21471dcb7613f75c48ff62
[ "CC-BY-4.0" ]
null
null
null
code/medida-tendencia-central/ejemplo-2-5/ejemplo_2_5.py
stempunk-xyz/estadistica-matematica
737a5359dae6db10cf21471dcb7613f75c48ff62
[ "CC-BY-4.0" ]
1
2021-11-24T02:51:26.000Z
2021-11-24T02:51:26.000Z
""" La mediana de la lista de n'umeros 5, 4, 3, 8, 6, 2, 5, 2 es.. """ data = [5, 4, 3, 8, 6, 2, 5, 2] #ordenamos los datos data = sorted(data) print(data) # [2, 2, 3, 4, 4, 5, 6, 8] n = len(data) pos_mediana = (n-1)/2 print(pos_mediana) # 3.5 m = (n-1)//2 # 3 mediana = (data[m]+data[m+1])/2 print(mediana) # 4.5 """ ...
22.851852
65
0.555916
4de66736ef7da53896ae347701eec7783b4076ee
3,736
py
Python
gogreen/settings.py
andruoctavian/hackitall
af6f0b1ed7396e932927786940124145f9a20e61
[ "MIT" ]
null
null
null
gogreen/settings.py
andruoctavian/hackitall
af6f0b1ed7396e932927786940124145f9a20e61
[ "MIT" ]
null
null
null
gogreen/settings.py
andruoctavian/hackitall
af6f0b1ed7396e932927786940124145f9a20e61
[ "MIT" ]
null
null
null
""" Django settings for gogreen project. Generated by 'django-admin startproject' using Django 1.11.7. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
26.125874
91
0.70637
6048b41150d2e86ff7f8c587f8de03184f84a699
7,831
py
Python
etc/update-goose.py
mit-pdos/armada
5cc0e55a2cdd477f6b72b24f09b54a29f4223899
[ "MIT" ]
12
2019-03-02T18:01:19.000Z
2019-08-22T01:37:18.000Z
etc/update-goose.py
mit-pdos/armada
5cc0e55a2cdd477f6b72b24f09b54a29f4223899
[ "MIT" ]
1
2019-03-14T04:22:05.000Z
2019-03-31T02:44:09.000Z
etc/update-goose.py
mit-pdos/armada
5cc0e55a2cdd477f6b72b24f09b54a29f4223899
[ "MIT" ]
1
2019-03-13T14:20:19.000Z
2019-03-13T14:20:19.000Z
#!/usr/bin/env python3 import os from os import path import subprocess def run_command(args, dry_run=False, verbose=False): if dry_run or verbose: print(" ".join(args)) if not dry_run: subprocess.run(args, check=True) def main(): import argparse parser = argparse.ArgumentParser( ...
29.329588
86
0.558166
d4cadf711325f949925363920cc07dfd41514c03
23,153
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/operations/_firewall_policy_rule_collection_groups_operations.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/operations/_firewall_policy_rule_collection_groups_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/operations/_firewall_policy_rule_collection_groups_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
52.382353
247
0.683065
e75e84da13730bd72ff6f8704dc6f7b4cb9dc0e5
13,044
py
Python
selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
nabeelr/openpilot
a66b4a6b68d7bce4264177b2dffa8aabd7ede4cb
[ "MIT" ]
55
2019-02-18T18:55:11.000Z
2022-03-31T02:06:59.000Z
selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
nabeelr/openpilot
a66b4a6b68d7bce4264177b2dffa8aabd7ede4cb
[ "MIT" ]
52
2019-04-02T07:05:08.000Z
2022-03-02T15:39:51.000Z
selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
nabeelr/openpilot
a66b4a6b68d7bce4264177b2dffa8aabd7ede4cb
[ "MIT" ]
123
2019-04-07T17:08:24.000Z
2022-03-13T03:27:31.000Z
#!/usr/bin/env python3 import os import numpy as np from common.realtime import sec_since_boot from common.numpy_fast import clip, interp from selfdrive.swaglog import cloudlog from selfdrive.modeld.constants import index_function from selfdrive.controls.lib.radar_helpers import _LEAD_ACCEL_TAU if __name__ == '__main...
33.618557
167
0.675023
9e4c5cab403c26ac4ab88ee13b54a064f5bda22b
14,698
py
Python
pymongo/pyopenssl_context.py
Namyalg/mongo-python-driver
fc85a24888e3c1fe556eb8f755aeecb053b5815e
[ "Apache-2.0" ]
null
null
null
pymongo/pyopenssl_context.py
Namyalg/mongo-python-driver
fc85a24888e3c1fe556eb8f755aeecb053b5815e
[ "Apache-2.0" ]
null
null
null
pymongo/pyopenssl_context.py
Namyalg/mongo-python-driver
fc85a24888e3c1fe556eb8f755aeecb053b5815e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-present MongoDB, 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 wr...
39.299465
103
0.664444
7ceaa6750bbb57326272dcc64ba3c19416887f0f
23,993
py
Python
controllers/appadmin.py
brianjimenez/academic_auth
8878f2e5a287eca8dd3ef191656de2b593069e97
[ "MIT" ]
null
null
null
controllers/appadmin.py
brianjimenez/academic_auth
8878f2e5a287eca8dd3ef191656de2b593069e97
[ "MIT" ]
null
null
null
controllers/appadmin.py
brianjimenez/academic_auth
8878f2e5a287eca8dd3ef191656de2b593069e97
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- if 0: from __init__ import * # ########################################################## # ## make sure administrator is on localhost # ########################################################### import socket import datetime import copy import gluon.fileutils try: import pygraphviz...
35.440177
101
0.527362
5470f86ede6484ceeef55d3b0b4b832a4444f0b6
996
py
Python
examples/congratulations_app/src/congratulations_app/congratulations_services/english.py
maximsakhno/galo-ioc
d300cc0e63e6ad375b7d2e75ac2b2e2fda30da4f
[ "MIT" ]
9
2022-01-16T11:45:00.000Z
2022-03-23T07:42:24.000Z
examples/congratulations_app/src/congratulations_app/congratulations_services/english.py
maximsakhno/galo-ioc
d300cc0e63e6ad375b7d2e75ac2b2e2fda30da4f
[ "MIT" ]
2
2022-01-16T12:03:14.000Z
2022-01-16T12:11:27.000Z
examples/congratulations_app/src/congratulations_app/congratulations_services/english.py
maximsakhno/galo-ioc
d300cc0e63e6ad375b7d2e75ac2b2e2fda30da4f
[ "MIT" ]
null
null
null
from congratulations_app.congratulations_services import ( CongratulationsService, CongratulationsServiceFactory, ) from congratulations_app.messengers import Messenger, MessengerFactory from galo_ioc import add_factory, get_factory __all__ = [ "EnglishCongratulationsService", "load", ] class English...
32.129032
86
0.771084
0a52edfccae393963af6c35fea389de0c1490b5f
13,950
py
Python
web/server/codechecker_server/database/run_db_model.py
gocarlos/codechecker
17678b103375a9dbff6e69328d0996d54de78ef3
[ "Apache-2.0" ]
null
null
null
web/server/codechecker_server/database/run_db_model.py
gocarlos/codechecker
17678b103375a9dbff6e69328d0996d54de78ef3
[ "Apache-2.0" ]
null
null
null
web/server/codechecker_server/database/run_db_model.py
gocarlos/codechecker
17678b103375a9dbff6e69328d0996d54de78ef3
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------------- # # Part of the CodeChecker project, under the Apache License v2.0 with # LLVM Exceptions. See LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # ---------------------------------------------------...
34.529703
79
0.59871
56e9e19b91380df7edef54f4ff9639856a4b035b
196
py
Python
utils.py
MARVEL-PROJECTS/FORTNITE-GAME
606cd55924dcbdcd35b441f8c483aeeb91ce548b
[ "MIT" ]
2
2020-09-13T00:29:42.000Z
2020-09-15T02:56:50.000Z
utils.py
MARVEL-PROJECTS/FORTNITE-GAME
606cd55924dcbdcd35b441f8c483aeeb91ce548b
[ "MIT" ]
null
null
null
utils.py
MARVEL-PROJECTS/FORTNITE-GAME
606cd55924dcbdcd35b441f8c483aeeb91ce548b
[ "MIT" ]
null
null
null
from datetime import datetime def convert_iso_time(isotime): """Will convert an isotime (string) to datetime.datetime""" return datetime.strptime(isotime, '%Y-%m-%dT%H:%M:%S.%fZ')
28
64
0.683673
6bb30495148a58ce4e0fa7f2a74fae886c8dc925
321
py
Python
datasets/tests/test_utils.py
talebzeghmi/datasets
db04bdcdbc7b782eae54991571181badea5e4c7a
[ "Apache-2.0" ]
null
null
null
datasets/tests/test_utils.py
talebzeghmi/datasets
db04bdcdbc7b782eae54991571181badea5e4c7a
[ "Apache-2.0" ]
null
null
null
datasets/tests/test_utils.py
talebzeghmi/datasets
db04bdcdbc7b782eae54991571181badea5e4c7a
[ "Apache-2.0" ]
null
null
null
from datasets.utils import _is_upper_pascal_case def test_is_valid_dataset_name(): for name in ["Ds", "Ds1", "DsName", "DsName2"]: assert _is_upper_pascal_case(name) for name in ["dS", "data_name", "data_Name", "_Ds", "Ds_", "2Ds", "for", "is", "Data%"]: assert not _is_upper_pascal_case(name)...
32.1
92
0.660436
4ebb444a9fdb1584caab32b69cf5411405e24f01
12,782
py
Python
app/questionnaire/router.py
pricem14pc/eq-questionnaire-runner
54cc2947ba181a2673ea1fb7cf6b4acdd609e06b
[ "MIT" ]
null
null
null
app/questionnaire/router.py
pricem14pc/eq-questionnaire-runner
54cc2947ba181a2673ea1fb7cf6b4acdd609e06b
[ "MIT" ]
null
null
null
app/questionnaire/router.py
pricem14pc/eq-questionnaire-runner
54cc2947ba181a2673ea1fb7cf6b4acdd609e06b
[ "MIT" ]
null
null
null
from typing import Generator, Mapping, Optional, Union from flask import url_for from app.data_models import AnswerStore, ListStore, ProgressStore from app.questionnaire import QuestionnaireSchema from app.questionnaire.location import Location from app.questionnaire.path_finder import PathFinder from app.questionnai...
37.156977
101
0.646143
a79c3e5aac0af9f9844c878ebf2b4a7c972a5352
435
py
Python
videoanalyst/data/target/target_impl/identity_target.py
983632847/video_analyst
01b7ad278b828a3f7ff7a0488c5ca8f055240192
[ "MIT" ]
2
2020-07-30T08:26:08.000Z
2020-11-24T07:40:46.000Z
videoanalyst/data/target/target_impl/identity_target.py
983632847/video_analyst
01b7ad278b828a3f7ff7a0488c5ca8f055240192
[ "MIT" ]
null
null
null
videoanalyst/data/target/target_impl/identity_target.py
983632847/video_analyst
01b7ad278b828a3f7ff7a0488c5ca8f055240192
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import cv2 import numpy as np from yacs.config import CfgNode from ..target_base import TRACK_TARGETS, TargetBase from .utils import make_densebox_target @TRACK_TARGETS.register class IdentityTarget(TargetBase): r""" Identity target just pass through the data without any modifica...
19.772727
55
0.703448
7dddd44d6f0b94914ac18fa395f098cfcf47ff72
1,252
py
Python
galleria/views.py
shizukane/Gallery
126e17f1f1a6d9e5f6eae1897ce9770e10717fcd
[ "MIT" ]
1
2020-09-22T04:29:18.000Z
2020-09-22T04:29:18.000Z
galleria/views.py
shizukane/Gallery
126e17f1f1a6d9e5f6eae1897ce9770e10717fcd
[ "MIT" ]
5
2021-03-30T13:50:39.000Z
2022-01-13T02:56:11.000Z
galleria/views.py
shizukane/Gallery
126e17f1f1a6d9e5f6eae1897ce9770e10717fcd
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from .models import Location, Image, Category from django.http import Http404 def index(request): ''' view function to display landing page ''' images = Image.objects.all() return render(request, 'index.html', {'images': images}) def search_page(reque...
27.822222
84
0.666933
f1cdd32ffe1090f6d632db66337f96eaedb6ee39
1,078
py
Python
setup.py
eman/tempodb-archive
a46399a92108251f8e5d8a1bd03a63b19b7f9e2d
[ "BSD-2-Clause" ]
null
null
null
setup.py
eman/tempodb-archive
a46399a92108251f8e5d8a1bd03a63b19b7f9e2d
[ "BSD-2-Clause" ]
null
null
null
setup.py
eman/tempodb-archive
a46399a92108251f8e5d8a1bd03a63b19b7f9e2d
[ "BSD-2-Clause" ]
null
null
null
import os from setuptools import setup project_dir = os.path.abspath(os.path.dirname(__file__)) long_descriptions = [] for rst in ('README.rst', 'LICENSE.rst'): with open(os.path.join(project_dir, rst), 'r') as f: long_descriptions.append(f.read()) setup(name='tempodb-archive', version='1.0.0', ...
32.666667
70
0.624304
17e8dfdb4b6d2c7d81dcde90af6fb2be8f965e18
57,490
py
Python
scripts/metadata_table.py
MicroTed/ccpp-framework
a55457fe3ef66e1651c94f99e72aba3362b105a2
[ "Apache-2.0" ]
null
null
null
scripts/metadata_table.py
MicroTed/ccpp-framework
a55457fe3ef66e1651c94f99e72aba3362b105a2
[ "Apache-2.0" ]
null
null
null
scripts/metadata_table.py
MicroTed/ccpp-framework
a55457fe3ef66e1651c94f99e72aba3362b105a2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ There are four types of CCPP metadata tables, scheme, module, ddt, and host. A metadata file contains one or more metadata tables. A metadata file SHOULD NOT mix metadata table types. The exception is a metadata file which contains one or more ddt tables followed by a module or host table...
44.843994
200
0.534336
68b776ffa362f46a00eff47e23c52c60e0eae730
3,997
py
Python
app/helper/text_proposal_graph_builder.py
suinaowawa/chinese-ocr-flask-deploy
250c2650c5fb3ed09b29a50b5399fe86508d1775
[ "MIT" ]
11
2020-02-25T02:50:53.000Z
2021-11-05T15:02:37.000Z
backend/api/handwrite/helper/text_proposal_graph_builder.py
ettingshausen/nhyai
33be2078cf2835d85fedc901d343568e79a5941f
[ "Apache-2.0" ]
2
2021-10-12T23:02:58.000Z
2022-02-12T01:31:06.000Z
backend/api/handwrite/helper/text_proposal_graph_builder.py
ettingshausen/nhyai
33be2078cf2835d85fedc901d343568e79a5941f
[ "Apache-2.0" ]
5
2020-08-18T01:45:15.000Z
2022-01-17T06:21:32.000Z
import numpy as np class Graph: def __init__(self, graph): self.graph=graph def sub_graphs_connected(self): sub_graphs=[] for index in range(self.graph.shape[0]): if not self.graph[:, index].any() and self.graph[index, :].any(): v=index sub_gr...
38.066667
107
0.595196
3f94c7001f26ba429224cd8111698e7a3eb58c66
1,785
py
Python
python/raw_aq.py
granadomoreno/oracle-db-examples
feac5d72f4a8534c9b3e848bdfc501c5b4c69268
[ "Apache-2.0" ]
1,071
2017-04-06T16:59:55.000Z
2022-03-25T21:10:58.000Z
python/raw_aq.py
abhishektripathi27/oracle-db-examples
0812a65c7c974718ec5a04454b8a42f7c25bf2a8
[ "Apache-2.0" ]
71
2017-04-12T14:55:52.000Z
2022-02-22T17:08:18.000Z
python/raw_aq.py
abhishektripathi27/oracle-db-examples
0812a65c7c974718ec5a04454b8a42f7c25bf2a8
[ "Apache-2.0" ]
749
2017-04-09T06:48:58.000Z
2022-03-23T00:28:26.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved. # # Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved. # # Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta, # Canada...
30.254237
79
0.611765
c15796d96be8e6eefc1fb4940c820390c16721c7
2,255
py
Python
tests/testapp/settings.py
mjl/feincms
fe147ec0fcf779f812e35a31f30ee29ccd7088fd
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/settings.py
mjl/feincms
fe147ec0fcf779f812e35a31f30ee29ccd7088fd
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/settings.py
mjl/feincms
fe147ec0fcf779f812e35a31f30ee29ccd7088fd
[ "BSD-3-Clause" ]
null
null
null
import os SITE_ID = 1 DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}} DEFAULT_AUTO_FIELD = "django.db.models.AutoField" INSTALLED_APPS = [ "django.contrib.auth", "django.contrib.admin", "django.contrib.contenttypes", "django.contrib.messages", "django.contri...
29.671053
85
0.675831
7ab098cb201796a2a4f6d2841679a8a740f7a308
6,138
py
Python
hanlp/utils/component_util.py
GYPgalaxy/HanLP
0b3f58e410f911edb3a7d6915bb5c1d231a065e2
[ "Apache-2.0" ]
1
2021-05-24T12:53:04.000Z
2021-05-24T12:53:04.000Z
hanlp/utils/component_util.py
leiguodong/HanLP
0b3f58e410f911edb3a7d6915bb5c1d231a065e2
[ "Apache-2.0" ]
null
null
null
hanlp/utils/component_util.py
leiguodong/HanLP
0b3f58e410f911edb3a7d6915bb5c1d231a065e2
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-12-31 19:24 import os import traceback from sys import exit from hanlp_common.constant import HANLP_VERBOSE from hanlp import pretrained from hanlp.common.component import Component from hanlp.utils.io_util import get_resource, get_latest_info_from_pypi from hanlp_...
46.854962
172
0.659335
358f219c3c8fc9d51b00091089bbd3c8e816313a
646
py
Python
apps/users/migrations/0003_auto_20150214_1956.py
ojengwa/reportr
ca66184e2b7f28cb3818bb5d3a931232566bff99
[ "MIT" ]
2
2015-01-26T14:43:20.000Z
2015-02-13T10:18:44.000Z
apps/users/migrations/0003_auto_20150214_1956.py
ojengwa/reportr
ca66184e2b7f28cb3818bb5d3a931232566bff99
[ "MIT" ]
null
null
null
apps/users/migrations/0003_auto_20150214_1956.py
ojengwa/reportr
ca66184e2b7f28cb3818bb5d3a931232566bff99
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('users', '0002_auto_20150214_1950'), ] operations = [ migrations.AlterField( model_name='staff', name...
23.925926
63
0.582043
69c3c76fbee595ead946a5eaaf5a8dc3ef883136
703
py
Python
tests/test_fixtures.py
TaiSakuma/acondbs
990ab44ce4081cc0e04148a8375f7ce7081c2dee
[ "MIT" ]
null
null
null
tests/test_fixtures.py
TaiSakuma/acondbs
990ab44ce4081cc0e04148a8375f7ce7081c2dee
[ "MIT" ]
null
null
null
tests/test_fixtures.py
TaiSakuma/acondbs
990ab44ce4081cc0e04148a8375f7ce7081c2dee
[ "MIT" ]
null
null
null
"""test global fixtures The global fixtures are defined in `conftest.py` """ ##__________________________________________________________________|| def test_app(app): """test the fixture app """ from flask import Flask assert isinstance(app, Flask) assert app.testing ##___________________________...
25.107143
70
0.761024
4c958f159b5685c97b99e2660eddc5e45c2c6801
471
py
Python
past_questions/migrations/0018_alter_past_question_file.py
curlyzik/varsity-pq
b3060b6e84947d877d84f6c42f53ab807e8c8ff4
[ "MIT" ]
2
2022-03-07T01:24:22.000Z
2022-03-19T15:54:11.000Z
past_questions/migrations/0018_alter_past_question_file.py
curlyzik/varsity-pq
b3060b6e84947d877d84f6c42f53ab807e8c8ff4
[ "MIT" ]
null
null
null
past_questions/migrations/0018_alter_past_question_file.py
curlyzik/varsity-pq
b3060b6e84947d877d84f6c42f53ab807e8c8ff4
[ "MIT" ]
1
2022-03-19T15:54:14.000Z
2022-03-19T15:54:14.000Z
# Generated by Django 4.0 on 2021-12-21 00:59 from django.db import migrations, models import past_questions.models class Migration(migrations.Migration): dependencies = [ ("past_questions", "0017_alter_past_question_course"), ] operations = [ migrations.AlterField( model_na...
23.55
88
0.66242
46baaa9a00525aef087d7e12bfd93598ecb7ae53
1,955
py
Python
networkapi/equipamento/urls.py
vinicius-marinho/GloboNetworkAPI
94651d3b4dd180769bc40ec966814f3427ccfb5b
[ "Apache-2.0" ]
73
2015-04-13T17:56:11.000Z
2022-03-24T06:13:07.000Z
networkapi/equipamento/urls.py
leopoldomauricio/GloboNetworkAPI
3b5b2e336d9eb53b2c113977bfe466b23a50aa29
[ "Apache-2.0" ]
99
2015-04-03T01:04:46.000Z
2021-10-03T23:24:48.000Z
networkapi/equipamento/urls.py
shildenbrand/GloboNetworkAPI
515d5e961456cee657c08c275faa1b69b7452719
[ "Apache-2.0" ]
64
2015-08-05T21:26:29.000Z
2022-03-22T01:06:28.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from django.conf.urls import include from django.conf.urls import patterns from django.conf.urls import url from networkapi.equipamento.resource.EquipamentoEditResource import EquipamentoEditResource from networkapi.equipamento.resource.EquipamentoResourc...
47.682927
98
0.754476
0a19c794a749c3532320e0e0088ee2f38b5501c0
13,577
py
Python
pgpy2/constants.py
dkg/PGPy2
98534b7573e53bfaf2eec6848d932ae921fe7be4
[ "BSD-3-Clause" ]
2
2020-07-10T09:17:51.000Z
2020-09-25T02:42:19.000Z
pgpy2/constants.py
dkg/PGPy2
98534b7573e53bfaf2eec6848d932ae921fe7be4
[ "BSD-3-Clause" ]
2
2020-07-09T22:14:29.000Z
2020-07-09T23:37:23.000Z
pgpy2/constants.py
dkg/PGPy2
98534b7573e53bfaf2eec6848d932ae921fe7be4
[ "BSD-3-Clause" ]
null
null
null
""" constants.py """ import bz2 import hashlib import imghdr import os import time import zlib from collections import namedtuple from enum import Enum from enum import IntEnum from pyasn1.type.univ import ObjectIdentifier import six from cryptography.hazmat.backends import openssl from cryptography.hazmat.primitive...
28.583158
133
0.647934
ac0d0c8b44d08b56d06a962c0fa35951454cb7be
252
py
Python
nginx/datadog_checks/nginx/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
4
2021-06-21T19:21:49.000Z
2021-06-23T21:21:55.000Z
nginx/datadog_checks/nginx/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
nginx/datadog_checks/nginx/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2021-06-21T19:21:51.000Z
2021-06-21T19:21:51.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from .__about__ import __version__ from .nginx import Nginx, VTS_METRIC_MAP __all__ = [ '__version__', 'Nginx', 'VTS_METRIC_MAP', ]
21
59
0.710317
83caf982901d3200ae8f3c9d9bd5abf0a9e3dbb9
1,638
py
Python
store/migrations/0004_auto_20211012_1517.py
diegojespana/Dino-s-Pizza
aa3726709ac8b431ff24b3853cce6efbf1929f65
[ "MIT" ]
null
null
null
store/migrations/0004_auto_20211012_1517.py
diegojespana/Dino-s-Pizza
aa3726709ac8b431ff24b3853cce6efbf1929f65
[ "MIT" ]
null
null
null
store/migrations/0004_auto_20211012_1517.py
diegojespana/Dino-s-Pizza
aa3726709ac8b431ff24b3853cce6efbf1929f65
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-10-12 21:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('store', '0003_alter_productimage_image'), ] operations = [ migrations.AlterModelOptions( name='productimage', ...
36.4
204
0.589744
ce10cf9ab96238eb9b58d39be367e02420d1d127
3,332
py
Python
Project-2/Vishal Agrawal/indeed_scraper.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
1
2021-06-03T16:08:33.000Z
2021-06-03T16:08:33.000Z
Project-2/Vishal Agrawal/indeed_scraper.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
16
2021-04-27T12:58:03.000Z
2021-05-28T14:02:14.000Z
Project-2/Vishal Agrawal/indeed_scraper.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
70
2021-04-26T13:48:35.000Z
2021-05-28T21:04:34.000Z
import webbrowser import mechanicalsoup def indeed_scraper(): # job_type = input("What type of job are your seeking: ") # job_location = input("Where do you want to work: ") job_type = "Financial Analyst" # "Financial Analyst" job_location = "India" base_url = "https://in.indeed.com/" br...
32.990099
110
0.616447
408350a5108f8d19db0757880b2bef7f02672649
2,050
py
Python
textbox/data/dataloader/kg_sent_dataloader.py
StevenTang1998/TextBox
acd8298c7e6618384d585146f799d02cc475520c
[ "MIT" ]
347
2021-01-09T07:55:55.000Z
2022-03-27T00:46:36.000Z
textbox/data/dataloader/kg_sent_dataloader.py
StevenTang1998/TextBox
acd8298c7e6618384d585146f799d02cc475520c
[ "MIT" ]
18
2021-01-12T07:37:06.000Z
2022-01-11T02:26:49.000Z
textbox/data/dataloader/kg_sent_dataloader.py
StevenTang1998/TextBox
acd8298c7e6618384d585146f799d02cc475520c
[ "MIT" ]
67
2021-01-09T07:23:52.000Z
2022-03-27T12:02:12.000Z
# @Time : 2021/10/12 # @Author : Tianyi Tang # @Email : steven_tang@ruc.edu.cn """ textbox.data.dataloader.kg_sent_dataloader ################################################ """ from textbox.data.dataloader import AbstractDataLoader from textbox.data.utils import pad_sequence class KGSentenceDataLoader(Abstract...
41.836735
112
0.665854
508ec2ea32cf5696985a56e84aad058ef606562e
2,180
py
Python
python/ts_price_anomaly_detection/dataset.py
JBris/time_series_anomaly_detection_examples
c0bb36be4d20128c3aca911dcce156f7e36ae6da
[ "MIT" ]
11
2020-03-20T07:42:23.000Z
2022-03-27T11:52:42.000Z
python/ts_price_anomaly_detection/dataset.py
JBris/time_series_anomaly_detection_examples
c0bb36be4d20128c3aca911dcce156f7e36ae6da
[ "MIT" ]
2
2021-04-30T21:06:31.000Z
2022-02-10T01:27:07.000Z
python/ts_price_anomaly_detection/dataset.py
JBris/time_series_anomaly_detection_examples
c0bb36be4d20128c3aca911dcce156f7e36ae6da
[ "MIT" ]
1
2020-07-15T03:29:21.000Z
2020-07-15T03:29:21.000Z
#!/usr/bin/env python import json import os import pandas as pd import pickle from cache import get, set from sklearn.decomposition import PCA from sklearn.preprocessing import StandardScaler def load_data(): dirname = os.path.dirname(os.path.realpath(__file__)) expedia_str = get('expedia_df') if expedia_...
37.586207
180
0.547706
5bdd7d5ce9232d26b93658f9f8098a769e4e9fb2
1,992
py
Python
sculptor/specfitcanvas.py
jtschindler/sculptor
67b7ebfb05ee8ec9d00399c6d80c238d2104eebc
[ "BSD-3-Clause" ]
7
2021-01-25T16:45:57.000Z
2022-03-31T11:53:23.000Z
sculptor/specfitcanvas.py
jtschindler/sculptor
67b7ebfb05ee8ec9d00399c6d80c238d2104eebc
[ "BSD-3-Clause" ]
1
2022-03-31T15:41:33.000Z
2022-03-31T15:41:33.000Z
sculptor/specfitcanvas.py
jtschindler/sculptor
67b7ebfb05ee8ec9d00399c6d80c238d2104eebc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas class SpecFitCanvas(FigureCanvas): """A FigureCanvas for plotting an astronomical spectrum from a SpecFit object. This class pro...
28.056338
80
0.637048
5870d2731762c08ee5a26f12697629c2d4678acb
63,812
py
Python
code/ARAX/test/test_ARAX_resultify.py
RTXteam/RTX
eabc4f4445d69c71d428acc8e9fa9865a85fb593
[ "MIT" ]
31
2018-03-05T20:01:10.000Z
2022-02-01T03:31:22.000Z
code/ARAX/test/test_ARAX_resultify.py
RTXteam/RTX
eabc4f4445d69c71d428acc8e9fa9865a85fb593
[ "MIT" ]
1,774
2018-03-06T01:55:03.000Z
2022-03-31T03:09:04.000Z
code/ARAX/test/test_ARAX_resultify.py
RTXteam/RTX
eabc4f4445d69c71d428acc8e9fa9865a85fb593
[ "MIT" ]
19
2018-05-10T00:43:19.000Z
2022-03-08T19:26:16.000Z
#!/usr/bin/env python3 # Usage: python3 ARAX_resultify_testcases.py # python3 ARAX_resultify_testcases.py test_issue692 import os import sys import pytest sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/../ARAXQuery") from ARAX_response import ARAXResponse from ARAX_messenger import ARAXMessenge...
45.064972
203
0.576412
2daed58b19fbb9cf5f934d00b57ac48054284520
8,879
py
Python
infer_objectdet.py
sanchit2843/Indian_LPR
b817fe56ce325c5bd464904f8695b78a14487386
[ "Unlicense" ]
18
2021-11-12T07:36:17.000Z
2022-03-21T08:06:59.000Z
infer_objectdet.py
sanchit2843/Indian_LPR
b817fe56ce325c5bd464904f8695b78a14487386
[ "Unlicense" ]
3
2021-12-03T06:39:07.000Z
2022-02-07T14:37:02.000Z
infer_objectdet.py
sanchit2843/Indian_LPR
b817fe56ce325c5bd464904f8695b78a14487386
[ "Unlicense" ]
7
2021-12-07T08:40:25.000Z
2022-03-20T17:33:15.000Z
import os from src.object_detection.model.fcos import FCOSDetector from src.object_detection.model.config import DefaultConfig from src.object_detection.utils.utils import preprocess_image from torch import nn as nn import argparse import cv2 import torch from src.License_Plate_Recognition.model.LPRNet import build_...
31.154386
119
0.544881
3f21f45cb75177136b1874ca7af5495368a4e01f
2,335
py
Python
dataintegration/models.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
dataintegration/models.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
dataintegration/models.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
from django.db import models import jsonfield from coreapp.choices import INTEGRATION_CHOICES,DATA_UPLOAD_RANGE_CHOICES from coreapp.models import ProjectType,Project from login.models import Profile,Customer from django.contrib.auth.models import User from django.contrib.auth.models import Group from django_cryptograp...
44.903846
110
0.71863
c47fa992d71c36b568be82d523360569539d3762
6,775
py
Python
src/commander.py
devlpr/mpptCommander
174793c34068a3ff6200d206df6116c2e2624993
[ "MIT" ]
7
2018-12-20T20:19:47.000Z
2021-06-24T19:46:07.000Z
src/commander.py
devlpr/mpptCommander
174793c34068a3ff6200d206df6116c2e2624993
[ "MIT" ]
null
null
null
src/commander.py
devlpr/mpptCommander
174793c34068a3ff6200d206df6116c2e2624993
[ "MIT" ]
3
2020-04-13T14:44:16.000Z
2021-02-20T16:50:50.000Z
#!/usr/bin/env python # # Author: Darin Velarde # # Commander interface for Renogy 20A charge controller. # # The first question you might ask is why I wrote this. The answer is that I # hadn't found the one here https://github.com/kasbert/epsolar-tracer yet. The # other half of the answer is that I probably would ha...
34.390863
86
0.624354
436dd5d62bed22691d1768e0ad56979a4ab89fe7
3,837
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/general/plugins/modules/remote_management/oneview/oneview_logical_interconnect_group_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/general/plugins/modules/remote_management/oneview/oneview_logical_interconnect_group_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/general/plugins/modules/remote_management/oneview/oneview_logical_interconnect_group_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016-2017, Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' --- ...
31.195122
123
0.73938
f3027d44ad3614827993cb85baeaf864ac8bc7a7
777
py
Python
src/tests/test_human_readable_time.py
shaantalk/YoutubeAPI
5ab9caea2541ba1511346e6a31d60c5d77a0b21c
[ "MIT" ]
null
null
null
src/tests/test_human_readable_time.py
shaantalk/YoutubeAPI
5ab9caea2541ba1511346e6a31d60c5d77a0b21c
[ "MIT" ]
null
null
null
src/tests/test_human_readable_time.py
shaantalk/YoutubeAPI
5ab9caea2541ba1511346e6a31d60c5d77a0b21c
[ "MIT" ]
null
null
null
import unittest from youtubeTask import * class TestHumanReadableTime(unittest.TestCase): # Test human_readable_time function for only seconds def test_human_readable_time_only_seconds(self): expression = human_readable_time(50) expectedValue = '50 secs' failMessage = 'Test Failed : hu...
37
83
0.745174
f8837d590065bc15b3d41f98fb154266b21ff516
1,332
py
Python
src/app_display_image.py
upadhyatejas/Image_Super_Resolution_Engine_with_UI
fc4680d9674edc913f869df0d0b5748b515be330
[ "MIT" ]
null
null
null
src/app_display_image.py
upadhyatejas/Image_Super_Resolution_Engine_with_UI
fc4680d9674edc913f869df0d0b5748b515be330
[ "MIT" ]
null
null
null
src/app_display_image.py
upadhyatejas/Image_Super_Resolution_Engine_with_UI
fc4680d9674edc913f869df0d0b5748b515be330
[ "MIT" ]
null
null
null
import os from uuid import uuid4 from flask import Flask, request, render_template, send_from_directory __author__ = 'ibininja' app = Flask(__name__) # app = Flask(__name__, static_folder="images") APP_ROOT = os.path.dirname(os.path.abspath(__file__)) @app.route("/") def index(): return render_template("uplo...
26.64
72
0.674925
0a790288907ac0d071c5a513e36a479f7e54b04d
10,689
py
Python
shellquery.py
jingw/shellquery
480f801697f038f0adfa3693ee7f8b6db6f294fe
[ "MIT" ]
8
2015-01-12T14:32:11.000Z
2021-04-24T11:40:19.000Z
shellquery.py
jingw/shellquery
480f801697f038f0adfa3693ee7f8b6db6f294fe
[ "MIT" ]
2
2015-09-19T08:08:54.000Z
2020-11-08T02:26:00.000Z
shellquery.py
jingw/shellquery
480f801697f038f0adfa3693ee7f8b6db6f294fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from __future__ import annotations import argparse import errno import logging import os.path import re import sqlite3 import sys import tempfile from typing import IO from typing import Iterable from typing import Iterator from typing import Sequence __version__ = "0.1.4" _logger = logging.get...
32.588415
110
0.596314
49c8f4879e4dacfe7f2382965311129bec8c2c7d
7,674
py
Python
src/grammar_learner/pqa05.py
akolonin/language-learning
022c34a3066aa97ea0d007419e026247a4f78dd5
[ "MIT" ]
null
null
null
src/grammar_learner/pqa05.py
akolonin/language-learning
022c34a3066aa97ea0d007419e026247a4f78dd5
[ "MIT" ]
null
null
null
src/grammar_learner/pqa05.py
akolonin/language-learning
022c34a3066aa97ea0d007419e026247a4f78dd5
[ "MIT" ]
null
null
null
#Legacy Grammar Learner testL fill in ULL Project Plan Parses spreadshit #language-learning/src/grammar_learner/pqa_table.py 80725, renamed pqa05 #80802 import os import sys import time from ..common.cliutils import handle_path_string from ..grammar_tester.grammartester import test_grammar from ..grammar_tester.optcons...
39.353846
200
0.54222
7f8d49da72d758c7bc3fd5c33d6259fe9ac9eeec
57
py
Python
2. Recognising Faces/Source/aws_rekognition/__init__.py
PacktPublishing/Learning-Python-Artificial-Intelligence-by-Example
77300e5b7b1ba36c31fc8c03d1962689513f04a1
[ "MIT" ]
25
2018-11-23T11:05:24.000Z
2022-02-06T20:09:04.000Z
2. Recognising Faces/Source/aws_rekognition/__init__.py
PacktPublishing/Learning-Python-Artificial-Intelligence-by-Example
77300e5b7b1ba36c31fc8c03d1962689513f04a1
[ "MIT" ]
2
2018-12-07T22:36:13.000Z
2019-07-08T10:12:04.000Z
2. Recognising Faces/Source/aws_rekognition/__init__.py
PacktPublishing/Learning-Python-Artificial-Intelligence-by-Example
77300e5b7b1ba36c31fc8c03d1962689513f04a1
[ "MIT" ]
17
2018-12-03T13:37:49.000Z
2021-08-10T14:33:33.000Z
from aws_rekognition.aws_rekognition import train, test
19
55
0.859649
a2c94ec929b21a8628752a1132791c5344b18361
1,182
py
Python
adctest1x15.py
kflmiami420/enviroplus-python
0d1894fbf26465c13503c79b8d4a87044be2f90a
[ "MIT" ]
2
2020-02-29T09:17:49.000Z
2020-04-08T16:44:21.000Z
adctest1x15.py
kflmiami420/enviroplus-python
0d1894fbf26465c13503c79b8d4a87044be2f90a
[ "MIT" ]
null
null
null
adctest1x15.py
kflmiami420/enviroplus-python
0d1894fbf26465c13503c79b8d4a87044be2f90a
[ "MIT" ]
null
null
null
# Simple demo of reading each analog input from the ADS1x15 and printing it to # the screen. # Author: Tony DiCola # License: Public Domain import time import math # Import the ADS1x15 module. import Adafruit_ADS1x15 # Create an ADS1115 ADC (16-bit) instance. adc = Adafruit_ADS1x15.ADS1115() # Or create an ADS1...
27.488372
78
0.670051
b48550d9a9df3dbc0b413f198b8d6d3f7c26fbfa
26,773
py
Python
evidence_inference/experiments/model_0_paper_experiment.py
bwallace/evidence-inference-1
d997c38551b920d0494b787b7c7ddd60311ca288
[ "MIT" ]
null
null
null
evidence_inference/experiments/model_0_paper_experiment.py
bwallace/evidence-inference-1
d997c38551b920d0494b787b7c7ddd60311ca288
[ "MIT" ]
null
null
null
evidence_inference/experiments/model_0_paper_experiment.py
bwallace/evidence-inference-1
d997c38551b920d0494b787b7c7ddd60311ca288
[ "MIT" ]
null
null
null
import argparse import copy import os import random import sys from collections import namedtuple, defaultdict import torch from torch import nn import numpy as np import pandas as pd from scipy import stats import dill from os.path import abspath, dirname, join # this monstrosity produces the module directory in ...
57.329764
505
0.699025
3af5701eacd4890223e184684265118ecd4ac313
499
py
Python
data/scripts/templates/object/tangible/component/armor/shared_heavy_armor_layer_kinetic.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/component/armor/shared_heavy_armor_layer_kinetic.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/component/armor/shared_heavy_armor_layer_kinetic.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/component/armor/shared_heavy_armor_layer_kinetic.iff" result.attrib...
29.352941
89
0.753507
985473ea995a3199101598725099c85ac3fa053f
10,684
py
Python
angrmanagement/logic/disassembly/info_dock.py
DennyDai/angr-management
8a4ba5dafbf2f4d2ba558528a0d1ae099a199a04
[ "BSD-2-Clause" ]
474
2015-08-10T17:47:15.000Z
2022-03-31T21:10:55.000Z
angrmanagement/logic/disassembly/info_dock.py
DennyDai/angr-management
8a4ba5dafbf2f4d2ba558528a0d1ae099a199a04
[ "BSD-2-Clause" ]
355
2015-08-17T09:35:53.000Z
2022-03-31T21:29:52.000Z
angrmanagement/logic/disassembly/info_dock.py
DennyDai/angr-management
8a4ba5dafbf2f4d2ba558528a0d1ae099a199a04
[ "BSD-2-Clause" ]
95
2015-08-11T14:36:12.000Z
2022-03-31T23:01:01.000Z
from PySide2.QtCore import QObject, Signal from ...data.object_container import ObjectContainer class OperandHighlightMode: SAME_IDENT = 0 SAME_TEXT = 1 class OperandDescriptor: __slots__ = ('text', 'num_value', 'func_addr', 'variable_ident', ) def __init__(self, text, num_value, func_addr=None, ...
37.226481
119
0.663609
6bce42f8774e46518c0c1883e44c61bba1bdb7fc
187
py
Python
Beginner/1099.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Beginner/1099.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Beginner/1099.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
for k in range(int(input())): X,Y = map(int,input().split()) if Y < X: a = X X = Y Y = a if X%2 != 0: X+=1 print(sum([k for k in range(X+1,Y,2)]))
20.777778
43
0.417112
f54b42c4b44ae4250ae0c8e58a00dd70e7026828
692
py
Python
manage.py
Annaliskirwa/_Blogs_Corner
aaa21388f67f154be932dc778541edf90ea196c4
[ "MIT" ]
1
2021-11-17T06:39:00.000Z
2021-11-17T06:39:00.000Z
manage.py
Annaliskirwa/_Blogs_Corner
aaa21388f67f154be932dc778541edf90ea196c4
[ "MIT" ]
null
null
null
manage.py
Annaliskirwa/_Blogs_Corner
aaa21388f67f154be932dc778541edf90ea196c4
[ "MIT" ]
null
null
null
from flask_script import Manager,Server from app.models import User from flask_migrate import Migrate, MigrateCommand from app import create_app,db #app=create_app('test') #app=create_app('development') app = create_app('production') manager = Manager(app) migrate = Migrate(app,db) manager.add_command('db',MigrateCo...
23.862069
51
0.731214
1b5a11e17742e0dbdc801bdedca98408ea0bdbed
1,437
py
Python
pcat2py/class/20cafd96-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/20cafd96-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/20cafd96-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
#!/usr/bin/python ################################################################################ # 20cafd96-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
37.815789
155
0.601949
925208189a25cc1548707790a6de9c0cce909299
3,535
py
Python
overrides/rules/char_class/class038_stormlord.py
Sagenlicht/ToEE_Classes
dc1cd7cd1fef181d40490459142ccb973ab1aa99
[ "MIT" ]
null
null
null
overrides/rules/char_class/class038_stormlord.py
Sagenlicht/ToEE_Classes
dc1cd7cd1fef181d40490459142ccb973ab1aa99
[ "MIT" ]
null
null
null
overrides/rules/char_class/class038_stormlord.py
Sagenlicht/ToEE_Classes
dc1cd7cd1fef181d40490459142ccb973ab1aa99
[ "MIT" ]
null
null
null
from toee import * import char_class_utils import char_editor ################################################### def GetConditionName(): return "Stormlord" def GetSpellCasterConditionName(): return "Stormlord Spellcasting" def GetCategory(): return "Complete Divine Prestige Classes" def GetClassDefinit...
26.984733
181
0.725318
e014f08d8509e16e77d45e3afdb8ea61e8f38cdd
2,788
py
Python
lldb/test/API/commands/expression/import-std-module/deque-dbg-info-content/TestDbgInfoContentDequeFromStdModule.py
hanzhan1/llvm
efe40bb5c797b102088e3cd2579a0f57ccf93310
[ "Apache-2.0" ]
null
null
null
lldb/test/API/commands/expression/import-std-module/deque-dbg-info-content/TestDbgInfoContentDequeFromStdModule.py
hanzhan1/llvm
efe40bb5c797b102088e3cd2579a0f57ccf93310
[ "Apache-2.0" ]
null
null
null
lldb/test/API/commands/expression/import-std-module/deque-dbg-info-content/TestDbgInfoContentDequeFromStdModule.py
hanzhan1/llvm
efe40bb5c797b102088e3cd2579a0f57ccf93310
[ "Apache-2.0" ]
null
null
null
""" Test std::deque functionality with a decl from dbg info as content. """ from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestDbgInfoContentDeque(TestBase): mydir = TestBase.compute_mydir(__file__) @add_test_categories(["libc++"]) ...
39.267606
79
0.557747
20e6179857d0ef1d59aaf0db0114d62aa766dbc8
2,541
py
Python
civis/base.py
stephen-hoover/civis-python
fefebefe548af50b731f610ce8fd1859a27aa11e
[ "BSD-3-Clause" ]
null
null
null
civis/base.py
stephen-hoover/civis-python
fefebefe548af50b731f610ce8fd1859a27aa11e
[ "BSD-3-Clause" ]
null
null
null
civis/base.py
stephen-hoover/civis-python
fefebefe548af50b731f610ce8fd1859a27aa11e
[ "BSD-3-Clause" ]
null
null
null
from posixpath import join import threading from civis.response import PaginatedResponse, convert_response_data_type def tostr_urljoin(*x): return join(*map(str, x)) class CivisJobFailure(Exception): def __init__(self, err_msg, response=None): self.error_message = err_msg self.response = re...
28.233333
77
0.619835
125fdb7dd8c07107a78635d663bdfb02fba0df6c
9,076
py
Python
Src/StdLib/Lib/ctypes/test/test_callbacks.py
caoyongxu/ironpython3
a3e245dd4803b82ffcf6836de522a8ab4ed8e5d5
[ "Apache-2.0" ]
1,872
2015-01-02T18:56:47.000Z
2022-03-31T07:34:39.000Z
Src/StdLib/Lib/ctypes/test/test_callbacks.py
caoyongxu/ironpython3
a3e245dd4803b82ffcf6836de522a8ab4ed8e5d5
[ "Apache-2.0" ]
675
2015-02-27T09:01:01.000Z
2022-03-31T14:03:25.000Z
Src/StdLib/Lib/ctypes/test/test_callbacks.py
caoyongxu/ironpython3
a3e245dd4803b82ffcf6836de522a8ab4ed8e5d5
[ "Apache-2.0" ]
278
2015-01-02T03:48:20.000Z
2022-03-29T20:40:44.000Z
import functools import unittest from test import support from ctypes import * from ctypes.test import need_symbol import _ctypes_test class Callbacks(unittest.TestCase): functype = CFUNCTYPE ## def tearDown(self): ## import gc ## gc.collect() def callback(self, *args): self.got_args...
31.734266
79
0.593213
8a679a3190e555ba61d89d2bd7d5cafd9ce95faa
9,014
py
Python
lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_vpn_l2tp.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_vpn_l2tp.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_vpn_l2tp.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of th...
30.659864
137
0.624584
7fda20b33493df7ac196114066e7ac15c724acb3
4,639
py
Python
ncm2-plugin/match_highlight.py
roxma/ncm2-highlight-double-stuck
94c70b4a5606679ff6f1b695145ee300ca67e968
[ "MIT" ]
6
2018-07-03T19:13:46.000Z
2021-08-29T17:55:34.000Z
ncm2-plugin/match_highlight.py
ncm2/ncm2-highlight-double-stuck
94c70b4a5606679ff6f1b695145ee300ca67e968
[ "MIT" ]
1
2018-07-14T12:33:08.000Z
2018-07-25T15:06:41.000Z
ncm2-plugin/match_highlight.py
ncm2/ncm2-highlight-double-stuck
94c70b4a5606679ff6f1b695145ee300ca67e968
[ "MIT" ]
1
2021-02-16T22:49:59.000Z
2021-02-16T22:49:59.000Z
# -*- coding: utf-8 -*- def wrap(): from ncm2_core import ncm2_core from ncm2 import getLogger import vim index_map = { 'bold': 1, 'sans-serif': 2, 'sans-serif-bold': 3, 'mono-space': 4, 'double-struck': 5 } replace_map = [('...
40.692982
154
0.248114
4e5025c86cb263c9dc5309097613b13cf02976c5
1,353
py
Python
02 Hardwaredesign/Grundschaltungen/src/led_pwm_fade.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
02 Hardwaredesign/Grundschaltungen/src/led_pwm_fade.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
02 Hardwaredesign/Grundschaltungen/src/led_pwm_fade.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
1
2020-10-10T20:24:05.000Z
2020-10-10T20:24:05.000Z
#! ./env/bin/python3 #encoding=utf-8 # Copyright (C) 2019 Dennis Schulmeister-Zimolong # # E-Mail: dhbw@windows3.de # Webseite: https://www.wpvs.de # # Dieser Quellcode ist lizenziert unter einer # Creative Commons Namensnennung 4.0 International Lizenz """ Minimalbeispiel einer helligkeitsgesteuerten LED. Die LED wi...
22.932203
73
0.609017
b1ccf41bfca15963f76c0e627e514858bd6f922b
3,871
py
Python
events/decorators.py
mansonul/events
4f6ca37bc600dcba3f74400d299826882d53b7d2
[ "MIT" ]
null
null
null
events/decorators.py
mansonul/events
4f6ca37bc600dcba3f74400d299826882d53b7d2
[ "MIT" ]
null
null
null
events/decorators.py
mansonul/events
4f6ca37bc600dcba3f74400d299826882d53b7d2
[ "MIT" ]
null
null
null
from django.core.exceptions import PermissionDenied from django.contrib.auth.decorators import user_passes_test SATISFY_ANY = 'any' SATISFY_ALL = 'all' DEFAULT_SATISFY = SATISFY_ALL __title__ = 'fobi.decorators' __author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>' __copyright__ = '2014-2017 Artur Barseghyan'...
33.08547
76
0.617928
256f177ccfb7179645bf7af21712cc49c4d38e7c
2,541
py
Python
ussy.py
Dogey11/ussybot
a42f2a81a243ebcb0539f5235597f0859147f311
[ "BSL-1.0" ]
null
null
null
ussy.py
Dogey11/ussybot
a42f2a81a243ebcb0539f5235597f0859147f311
[ "BSL-1.0" ]
null
null
null
ussy.py
Dogey11/ussybot
a42f2a81a243ebcb0539f5235597f0859147f311
[ "BSL-1.0" ]
null
null
null
import praw from dotenv import load_dotenv from os import getenv as env from time import sleep load_dotenv() reddit = praw.Reddit( user_agent=env("USSY_UA"), client_id=env("USSY_ID"), client_secret=env("USSY_SECRET"), username=env("USSY_USER"), password=env("USSY_PWD") ) class string_manipulation...
28.875
106
0.430539
3e7c53744103f219f16c0d1d3ecea8df57214680
2,251
py
Python
examples/example-5.py
twitwi/vuejs-python
18ae4a8583748cbaf39e63aa5e7d97c9904257d5
[ "MIT" ]
18
2019-02-14T16:17:38.000Z
2022-03-07T21:02:53.000Z
examples/example-5.py
louispuyo/vuejs-python
193672ef38dc243a8f755b123e1af0e087ae8af4
[ "MIT" ]
null
null
null
examples/example-5.py
louispuyo/vuejs-python
193672ef38dc243a8f755b123e1af0e087ae8af4
[ "MIT" ]
4
2019-12-16T11:12:29.000Z
2022-01-19T10:55:57.000Z
import asyncio from vuejspython import model, start import numpy as np import matplotlib.pyplot as plt import io import base64 @model class Comp: # define properties to forward to vue (or not) gamma = 1.0 svg = "" png = "" use_svg = True use_png = True show_points = True show_nn = Tru...
30.835616
119
0.523767
73f0eedcfb0715feaf88c34f5c71e353944a1b8c
2,315
py
Python
public/parser/parser.py
wonderpops/fab
059c588db6c7dd3dc0bfadd62d054be221b8ab08
[ "MIT" ]
null
null
null
public/parser/parser.py
wonderpops/fab
059c588db6c7dd3dc0bfadd62d054be221b8ab08
[ "MIT" ]
null
null
null
public/parser/parser.py
wonderpops/fab
059c588db6c7dd3dc0bfadd62d054be221b8ab08
[ "MIT" ]
null
null
null
import scrapy import json from scrapy import FormRequest from scrapy.shell import inspect_response import urllib.parse class QuotesSpider(scrapy.Spider): page = 2 count = 0 name = 'quotes' start_urls = [ 'https://www.farpost.ru/vladivostok/', ] def parse(self, response): ...
38.583333
121
0.566739
e2befc1853f21cdc4dec565964ae0690c3f7bc62
1,683
py
Python
apps/level3/domain.py
VictorOliveiraPy/desingn-de-api
81e810f237f79c9e068e21bd1d8a2b2c933017b6
[ "MIT" ]
null
null
null
apps/level3/domain.py
VictorOliveiraPy/desingn-de-api
81e810f237f79c9e068e21bd1d8a2b2c933017b6
[ "MIT" ]
null
null
null
apps/level3/domain.py
VictorOliveiraPy/desingn-de-api
81e810f237f79c9e068e21bd1d8a2b2c933017b6
[ "MIT" ]
null
null
null
from enum import Enum, auto from django.utils.datetime_safe import datetime def now(): return datetime.now() class Status(Enum): Placed = auto() Paid = auto() Served = auto() Collected = auto() Cancelled = auto() class Order: def __init__(self, coffee='', size='', milk='', location=''...
22.144737
103
0.571004
cc0bf7fd34f3ab6cfe824d32b63e97d66bedffa6
997
py
Python
pyslet/qtiv1/objectbank.py
UKTradeInvestment/pyslet
70f9731df4d874379649eeacb79d8a6583b3dcaa
[ "BSD-3-Clause" ]
2
2016-09-16T11:17:43.000Z
2016-10-19T11:15:53.000Z
pyslet/qtiv1/objectbank.py
UKTradeInvestment/pyslet
70f9731df4d874379649eeacb79d8a6583b3dcaa
[ "BSD-3-Clause" ]
2
2018-06-29T10:53:50.000Z
2021-04-06T07:55:54.000Z
pyslet/qtiv1/objectbank.py
UKTradeInvestment/pyslet
70f9731df4d874379649eeacb79d8a6583b3dcaa
[ "BSD-3-Clause" ]
2
2016-10-13T15:12:50.000Z
2021-01-13T11:58:18.000Z
#! /usr/bin/env python import pyslet.xml.structures as xml import pyslet.xml.xsdatatypes as xsi import pyslet.imsqtiv2p1 as qtiv2 import core import common import string class ObjectBank(common.MetadataContainerMixin, common.QTICommentContainer): """This is the container for the Section(s) and/or Item(s) that...
29.323529
77
0.705115
003771bcf44a1402e360f1c156cd6e56bc6a0db7
1,231
py
Python
Procedural Paradigm/practicum/lab-6-sorting-and-file-processing/ratasaham.py
morenzoe/IF1210_Dasar_Pemrograman
6bfd5300c18bfb9c6ba80f6108e2206aa9cbf015
[ "BSD-3-Clause" ]
null
null
null
Procedural Paradigm/practicum/lab-6-sorting-and-file-processing/ratasaham.py
morenzoe/IF1210_Dasar_Pemrograman
6bfd5300c18bfb9c6ba80f6108e2206aa9cbf015
[ "BSD-3-Clause" ]
null
null
null
Procedural Paradigm/practicum/lab-6-sorting-and-file-processing/ratasaham.py
morenzoe/IF1210_Dasar_Pemrograman
6bfd5300c18bfb9c6ba80f6108e2206aa9cbf015
[ "BSD-3-Clause" ]
1
2022-02-21T05:03:26.000Z
2022-02-21T05:03:26.000Z
# Program RataSaham # Membaca data pada file sejumlah tipe data dataSaham # Menghitung rata-rata tiap pemilik # Menampilkan data import tulisdata # KAMUS # Module untuk menulis data file keperluan praktikum # type dataSaham : <IdPemilik : string, IdPT : string, Nilai : integer> mark = '99999999' # constant mark : ...
19.539683
73
0.645004