hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
d03c86f155c8fc0c5d3590fb223cc462c303de1d
6,353
py
Python
models/BFE.py
anonymous1computervision/REID
6364d7d0e75ebb81fafc765be41b9b3fd434eeae
[ "MIT" ]
null
null
null
models/BFE.py
anonymous1computervision/REID
6364d7d0e75ebb81fafc765be41b9b3fd434eeae
[ "MIT" ]
null
null
null
models/BFE.py
anonymous1computervision/REID
6364d7d0e75ebb81fafc765be41b9b3fd434eeae
[ "MIT" ]
1
2019-09-30T12:21:21.000Z
2019-09-30T12:21:21.000Z
# encoding: utf-8 import copy import itertools import numpy as np import torch import torch.nn.functional as F import torch.utils.model_zoo as model_zoo import random from scipy.spatial.distance import cdist from sklearn.preprocessing import normalize from torch import nn, optim from torch.utils.data import dataloader...
32.248731
79
0.58618
7a264377a00b48cff5b6946876437e3585cb8961
1,579
py
Python
perses/tests/test_lambda_protocol.py
ajsilveira/perses
adff6cecb8c710dabac1dcddf0d05306409b2362
[ "MIT" ]
null
null
null
perses/tests/test_lambda_protocol.py
ajsilveira/perses
adff6cecb8c710dabac1dcddf0d05306409b2362
[ "MIT" ]
null
null
null
perses/tests/test_lambda_protocol.py
ajsilveira/perses
adff6cecb8c710dabac1dcddf0d05306409b2362
[ "MIT" ]
null
null
null
########################################### # IMPORTS ########################################### from perses.annihilation.lambda_protocol import * from unittest import skipIf from nose.tools import raises import os running_on_github_actions = os.environ.get('GITHUB_ACTIONS', None) == 'true' #########################...
35.886364
128
0.630146
19f9a68dbdb43073836a0b25a4048e26aced4f9e
1,445
py
Python
tests/test_converter.py
JuliaSprenger/nwb-conversion-tools
f6519c88a563fba991e9e8583ed9c4b53a3e48e5
[ "BSD-3-Clause" ]
null
null
null
tests/test_converter.py
JuliaSprenger/nwb-conversion-tools
f6519c88a563fba991e9e8583ed9c4b53a3e48e5
[ "BSD-3-Clause" ]
null
null
null
tests/test_converter.py
JuliaSprenger/nwb-conversion-tools
f6519c88a563fba991e9e8583ed9c4b53a3e48e5
[ "BSD-3-Clause" ]
null
null
null
from tempfile import mkdtemp from shutil import rmtree from pathlib import Path from pynwb import NWBFile try: from ndx_events import LabeledEvents HAVE_NDX_EVENTS = True except ImportError: HAVE_NDX_EVENTS = False from nwb_conversion_tools.basedatainterface import BaseDataInterface from nwb_conversion_t...
35.243902
114
0.651903
bccfb127a3f850cce51cb0c63ba00d6cc02e5cb2
1,071
py
Python
body/test/test_dxl_comms.py
AarjuGoyal/stretch_body
6a13fb978bd505f9b3db596a09926943ba1fc72b
[ "RSA-MD" ]
null
null
null
body/test/test_dxl_comms.py
AarjuGoyal/stretch_body
6a13fb978bd505f9b3db596a09926943ba1fc72b
[ "RSA-MD" ]
null
null
null
body/test/test_dxl_comms.py
AarjuGoyal/stretch_body
6a13fb978bd505f9b3db596a09926943ba1fc72b
[ "RSA-MD" ]
null
null
null
# Logging level must be set before importing any stretch_body class import stretch_body.robot_params #stretch_body.robot_params.RobotParams.set_logging_level("DEBUG") import unittest import stretch_body.device import stretch_body.robot as robot import numpy as np class TestTimingStats(unittest.TestCase): def test...
39.666667
81
0.693744
ffe35c19a370382fed199d33329e0694b82f9ad3
37,888
py
Python
test_haystack/test_query.py
nakarinh14/django-haystack
b6dd72e6b5c97b782f5436b7bb4e8227ba6e3b06
[ "BSD-3-Clause" ]
2,021
2015-02-06T07:45:08.000Z
2022-03-30T12:26:39.000Z
test_haystack/test_query.py
nakarinh14/django-haystack
b6dd72e6b5c97b782f5436b7bb4e8227ba6e3b06
[ "BSD-3-Clause" ]
787
2015-02-03T20:06:04.000Z
2022-03-30T09:00:38.000Z
test_haystack/test_query.py
nakarinh14/django-haystack
b6dd72e6b5c97b782f5436b7bb4e8227ba6e3b06
[ "BSD-3-Clause" ]
878
2015-02-04T15:29:50.000Z
2022-03-28T16:51:44.000Z
import datetime import pickle from django.test import TestCase from django.test.utils import override_settings from haystack import connections, indexes, reset_search_queries from haystack.backends import SQ, BaseSearchQuery from haystack.exceptions import FacetingError from haystack.models import SearchResult from h...
35.113994
171
0.613096
243b665234a2cae2535cf295fd5d8825846f47f5
888
py
Python
deteccion de objetos/capturaObjetos.py
WilsonOviedo/AI-practica
316daa55f817f3780d00f6b163b0caac9c961d43
[ "MIT" ]
null
null
null
deteccion de objetos/capturaObjetos.py
WilsonOviedo/AI-practica
316daa55f817f3780d00f6b163b0caac9c961d43
[ "MIT" ]
null
null
null
deteccion de objetos/capturaObjetos.py
WilsonOviedo/AI-practica
316daa55f817f3780d00f6b163b0caac9c961d43
[ "MIT" ]
null
null
null
#Fuente https://www.youtube.com/watch?v=v_cwOq06g9E&list=RDCMUCCDvMED1sysAbF5qOfmEw3A&index=3 import cv2 import numpy as np import imutils import os Datos = 'deteccion de objetos\p' if not os.path.exists(Datos): print('Carpeta creada: ', Datos) os.makedirs(Datos) cap = cv2.VideoCapture(0,cv2.CAP_DSHOW) x1, y1 ...
19.733333
93
0.685811
67bba1d865301d3711bdbb3fa4a9dc53c0db0bc9
26,929
py
Python
spade/model/model.py
ndgnuh/spade
ed577a1ff80c3bc77540bc6096213ce919858b02
[ "Apache-2.0" ]
null
null
null
spade/model/model.py
ndgnuh/spade
ed577a1ff80c3bc77540bc6096213ce919858b02
[ "Apache-2.0" ]
null
null
null
spade/model/model.py
ndgnuh/spade
ed577a1ff80c3bc77540bc6096213ce919858b02
[ "Apache-2.0" ]
null
null
null
# SPADE # Copyright (c) 2021-present NAVER Corp. # Apache License v2.0 import os import time from copy import deepcopy from itertools import zip_longest from pathlib import Path from pprint import pprint from typing import Any, List import pytorch_lightning as pl import torch from pytorch_lightning.utilities import r...
33.830402
102
0.559397
414df8272aa0e971411fcd39d6d671ed37a1c249
1,081
py
Python
timeeval_experiments/algorithms/copod.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
2
2022-01-29T03:46:31.000Z
2022-02-14T14:06:35.000Z
timeeval_experiments/algorithms/copod.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
null
null
null
timeeval_experiments/algorithms/copod.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
null
null
null
from durations import Duration from typing import Any, Dict, Optional from timeeval import Algorithm, TrainingType, InputDimensionality from timeeval.adapters import DockerAdapter from timeeval.params import ParameterConfig _copod_parameters: Dict[str, Dict[str, Any]] = { "random_state": { "defaultValue": 42, "...
30.027778
116
0.687327
95342621a4967fee382fc6b28b1f42371faebe5a
71
py
Python
0-buggy.py
kmirik999/Kryvoruchko-Myroslav
9f4a7fbe333e1ca3750e89e1f206aa9d9ca12145
[ "MIT" ]
null
null
null
0-buggy.py
kmirik999/Kryvoruchko-Myroslav
9f4a7fbe333e1ca3750e89e1f206aa9d9ca12145
[ "MIT" ]
null
null
null
0-buggy.py
kmirik999/Kryvoruchko-Myroslav
9f4a7fbe333e1ca3750e89e1f206aa9d9ca12145
[ "MIT" ]
null
null
null
first_num = 2 second_num = 3 sum = first_num + second_num print(sum)
10.142857
28
0.71831
7a722b4aa70feab0406b8983660da8c287d0a869
87
py
Python
plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_vulnerability_solution/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_vulnerability_solution/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_vulnerability_solution/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .action import AssetVulnerabilitySolution
29
46
0.816092
08d7eaa378008e9dd07269e8c249116bcf4b20dc
5,961
py
Python
pandaharvester/harvesterpreparator/gridftp_preparator.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
7
2019-08-30T07:35:48.000Z
2022-02-13T14:46:53.000Z
pandaharvester/harvesterpreparator/gridftp_preparator.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
29
2019-09-20T14:04:37.000Z
2021-09-13T12:53:05.000Z
pandaharvester/harvesterpreparator/gridftp_preparator.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
15
2019-07-30T11:48:29.000Z
2022-03-29T21:49:05.000Z
import os import tempfile try: import subprocess32 as subprocess except Exception: import subprocess from pandaharvester.harvestercore.plugin_base import PluginBase from pandaharvester.harvestercore import core_utils from pandaharvester.harvestermover import mover_utils # logger baseLogger = core_utils.setup_...
41.978873
111
0.579433
137812f465aa6e828ae8094a850f4128269a000c
2,595
py
Python
Scripts/Cogs/time_commands.py
Mahas1/BotMan.py-rewritten
77583eba29e3144798f98886b7fd3f1ad30b27c1
[ "MIT" ]
null
null
null
Scripts/Cogs/time_commands.py
Mahas1/BotMan.py-rewritten
77583eba29e3144798f98886b7fd3f1ad30b27c1
[ "MIT" ]
null
null
null
Scripts/Cogs/time_commands.py
Mahas1/BotMan.py-rewritten
77583eba29e3144798f98886b7fd3f1ad30b27c1
[ "MIT" ]
null
null
null
import re import discord from discord.ext import commands import os import json from assets import time_custom class Time(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(name='time', description='Gets the time of the user. if user does not have a time...
36.041667
113
0.565703
813cecd92cd7f6b512d5791f5423a5829db2b697
15,296
py
Python
pytorch_lightning/callbacks/progress/tqdm_progress.py
FeryET/pytorch-lightning
b1f8b111b5085373599758a4e155a482259cdbf0
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/callbacks/progress/tqdm_progress.py
FeryET/pytorch-lightning
b1f8b111b5085373599758a4e155a482259cdbf0
[ "Apache-2.0" ]
1
2022-03-18T21:56:53.000Z
2022-03-18T21:56:53.000Z
pytorch_lightning/callbacks/progress/tqdm_progress.py
FeryET/pytorch-lightning
b1f8b111b5085373599758a4e155a482259cdbf0
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
40.680851
119
0.663899
9e9b63d345e85d99d6fdf0d277eed09225a85993
28,944
py
Python
u.py
mit-han-lab/neurips-micronet
a85bd0ed719b5d6f45642d71f5b83a8eed916025
[ "MIT" ]
37
2019-11-08T02:11:47.000Z
2022-02-11T00:55:15.000Z
u.py
mit-han-lab/neurips-micronet
a85bd0ed719b5d6f45642d71f5b83a8eed916025
[ "MIT" ]
3
2020-02-15T10:56:24.000Z
2021-03-31T03:40:36.000Z
u.py
mit-han-lab/neurips-micronet
a85bd0ed719b5d6f45642d71f5b83a8eed916025
[ "MIT" ]
7
2020-01-13T06:20:43.000Z
2022-02-11T00:55:18.000Z
### Common global imports ### from __future__ import absolute_import, print_function import subprocess, sys, os, re, tempfile, zipfile, gzip, io, shutil, string, random, itertools, pickle, json, yaml, gc from datetime import datetime from time import time from fnmatch import fnmatch from glob import glob from tqdm imp...
30.661017
165
0.579878
7cf24248d26ab3dd670c2a949c5aad3bc3397782
1,927
py
Python
HDF4_H5_NETCDF/source2.7/pyhdf/HC.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
HDF4_H5_NETCDF/source2.7/pyhdf/HC.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
HDF4_H5_NETCDF/source2.7/pyhdf/HC.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
# $Id: HC.py,v 1.2 2005-07-14 01:36:41 gosselin_a Exp $ # $Log: not supported by cvs2svn $ # Revision 1.1 2004/08/02 15:36:04 gosselin # Initial revision # from . import hdfext as _C class HC(object): """The HC class holds contants defining opening modes and data types. File opening modes (flags ORed together)...
26.763889
73
0.582771
a6c747d6e67eb75ec6145962ef028a77a3a608b2
159
py
Python
utils/config.py
aguirrejuan/hipposeg
1059feb677a8fa6f9903d18df1753eaf3be68d7c
[ "MIT" ]
null
null
null
utils/config.py
aguirrejuan/hipposeg
1059feb677a8fa6f9903d18df1753eaf3be68d7c
[ "MIT" ]
null
null
null
utils/config.py
aguirrejuan/hipposeg
1059feb677a8fa6f9903d18df1753eaf3be68d7c
[ "MIT" ]
null
null
null
from easydict import EasyDict as edict __C = edict() # from config import cfg cfg = __C __C.CROP = 160
19.875
39
0.477987
198bd56f96a9d7633bdd5f88ba8276c4b4c9dafc
3,497
py
Python
code_utils.py
martmists/mixin
bf1bbd71ddfa189f6ea552a0f07d7caa723a219d
[ "MIT" ]
1
2020-08-04T12:26:33.000Z
2020-08-04T12:26:33.000Z
code_utils.py
martmists/mixin
bf1bbd71ddfa189f6ea552a0f07d7caa723a219d
[ "MIT" ]
null
null
null
code_utils.py
martmists/mixin
bf1bbd71ddfa189f6ea552a0f07d7caa723a219d
[ "MIT" ]
null
null
null
import dis import struct from types import CodeType from typing import Tuple def new_code(fc, *, argcount=None, posonlyargcount=None, kwonlyargcount=None, nlocals=None, stacksize=None, flags=None, code_=None, consts=None, names=None, varnames=None, filename=None, name=None, firstlineno=None, ...
44.833333
145
0.665713
b1122022dbc3f2e09b0549845101c4fe00068afb
408
py
Python
tog_project_log/tog_project_log/wsgi.py
Tog-Hackerspace/Project-Log
7bf89e3ee437fa5021287a8f08471bf27ed6ad4f
[ "MIT" ]
null
null
null
tog_project_log/tog_project_log/wsgi.py
Tog-Hackerspace/Project-Log
7bf89e3ee437fa5021287a8f08471bf27ed6ad4f
[ "MIT" ]
9
2016-09-27T10:24:29.000Z
2016-10-04T16:23:56.000Z
tog_project_log/tog_project_log/wsgi.py
Tog-Hackerspace/Project-Log
7bf89e3ee437fa5021287a8f08471bf27ed6ad4f
[ "MIT" ]
null
null
null
""" WSGI config for tog_project_log 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/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJA...
24
78
0.794118
e866245794f4b93fca9a017ac268c489f0dade71
1,194
py
Python
var/spack/repos/builtin/packages/py-testinfra/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/py-testinfra/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin/packages/py-testinfra/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyTestinfra(PythonPackage): """With Testinfra you can write unit tests in Python to test a...
38.516129
92
0.693467
82b4ced807fd9ed4300cc5587015641557a9cce9
3,537
py
Python
lookbook/lookbook/settings.py
bdizon/instagram-lookbook
659e378c513dfc070085c7543532f345076097d0
[ "MIT" ]
null
null
null
lookbook/lookbook/settings.py
bdizon/instagram-lookbook
659e378c513dfc070085c7543532f345076097d0
[ "MIT" ]
null
null
null
lookbook/lookbook/settings.py
bdizon/instagram-lookbook
659e378c513dfc070085c7543532f345076097d0
[ "MIT" ]
null
null
null
""" Django settings for lookbook project. Generated by 'django-admin startproject' using Django 3.1.5. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ ...
25.264286
92
0.651117
f64469fca59af06270ec5adb7a0c9f8f0f54df6e
15,743
py
Python
tmp_pcp_Generator.py
saeedashraf/snow-ski-resort-finance
0ee1d0336b417e9c26b2166de198e8452ee02c71
[ "MIT" ]
null
null
null
tmp_pcp_Generator.py
saeedashraf/snow-ski-resort-finance
0ee1d0336b417e9c26b2166de198e8452ee02c71
[ "MIT" ]
11
2021-02-09T11:30:32.000Z
2022-03-12T00:46:35.000Z
tmp_pcp_Generator.py
saeedashraf/Snow-Ski-Resort-DMDU
0ee1d0336b417e9c26b2166de198e8452ee02c71
[ "MIT" ]
1
2020-05-26T09:02:08.000Z
2020-05-26T09:02:08.000Z
import os import os.path import random from operator import add from datetime import datetime, date, timedelta import numpy as np import pandas as pd from matplotlib import pyplot as plt import seaborn as sns import shutil # Step 1: Setting Up Climate Scenarios (CH2018, and Random Scenarios) def is_leap(year): ""...
34.6
115
0.58426
632e9146655ceead20c4319ea2840b8bd286e48d
66
py
Python
bminf/models/__init__.py
AdamBear/BMInf
8e650dc30e3ed9d7d628153b0a4dbd76d97ea948
[ "Apache-2.0" ]
206
2021-09-23T08:55:29.000Z
2022-03-26T13:15:41.000Z
bminf/models/__init__.py
AdamBear/BMInf
8e650dc30e3ed9d7d628153b0a4dbd76d97ea948
[ "Apache-2.0" ]
24
2021-09-24T05:54:39.000Z
2022-03-25T01:44:49.000Z
bminf/models/__init__.py
AdamBear/BMInf
8e650dc30e3ed9d7d628153b0a4dbd76d97ea948
[ "Apache-2.0" ]
34
2021-09-26T02:17:29.000Z
2022-03-28T07:01:54.000Z
from .cpm1 import CPM1 from .cpm2 import CPM2 from .eva import EVA
22
22
0.787879
feb5f5d3c1df79f2c4a7eeb584993486f2c849fa
10,891
py
Python
objectModel/Python/tests/cdm/relationship/test_calculate_relationship.py
Venkata1920/CDM
680c798f2787fb064410f4a0a5dcb225049e79f6
[ "CC-BY-4.0", "MIT" ]
null
null
null
objectModel/Python/tests/cdm/relationship/test_calculate_relationship.py
Venkata1920/CDM
680c798f2787fb064410f4a0a5dcb225049e79f6
[ "CC-BY-4.0", "MIT" ]
null
null
null
objectModel/Python/tests/cdm/relationship/test_calculate_relationship.py
Venkata1920/CDM
680c798f2787fb064410f4a0a5dcb225049e79f6
[ "CC-BY-4.0", "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. import os import unittest from cdm.objectmodel import CdmEntityDefinition, CdmCorpusDefinition, CdmE2ERelationship, CdmCollection from tests.cdm.projection.attribu...
48.620536
148
0.696263
2820fdc8a72435d8f3016077ab2199900e4b371e
3,534
py
Python
cvpods/evaluation/build.py
hanqiu-hq/cvpods
597fa669151fdad87c250fa118a9e3a555f4fb5e
[ "Apache-2.0" ]
null
null
null
cvpods/evaluation/build.py
hanqiu-hq/cvpods
597fa669151fdad87c250fa118a9e3a555f4fb5e
[ "Apache-2.0" ]
null
null
null
cvpods/evaluation/build.py
hanqiu-hq/cvpods
597fa669151fdad87c250fa118a9e3a555f4fb5e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Copyright (C) 2019-2021 Megvii Inc. All rights reserved. import os import torch from cvpods.utils import comm from .evaluator import DatasetEvaluators from .registry import EVALUATOR def build_evaluator(cfg, dataset_name, dataset, output_folder=None, dump=False): "...
38.413043
97
0.65648
9ee73932d2e25761ba1385f35540410cf312bc41
929
py
Python
co/edu/unbosque/model/AG_Radix.py
cdsanchezm/Algoritmos-de-ordenamiento
0790487931778888975d89d30127e6cf2ec9d3c0
[ "MIT" ]
null
null
null
co/edu/unbosque/model/AG_Radix.py
cdsanchezm/Algoritmos-de-ordenamiento
0790487931778888975d89d30127e6cf2ec9d3c0
[ "MIT" ]
null
null
null
co/edu/unbosque/model/AG_Radix.py
cdsanchezm/Algoritmos-de-ordenamiento
0790487931778888975d89d30127e6cf2ec9d3c0
[ "MIT" ]
null
null
null
import random def radix(totalNumbers, numbers): maxLen = False tmp = -1 location = 1 while not maxLen: maxLen = True baskets = [list() for _ in range(totalNumbers)] for i in numbers: tmp = int(i / location) baskets[int(tmp % totalNumbers)].append(i) ...
23.820513
55
0.514532
00442b80500b8be20dded0c0dbc3f3321d7eacbe
1,508
py
Python
minio-python-sdk/webhook-server.py
minio/training
60c2a4fc57b7bad116f8d6037482050ef138bee1
[ "CC-BY-4.0" ]
null
null
null
minio-python-sdk/webhook-server.py
minio/training
60c2a4fc57b7bad116f8d6037482050ef138bee1
[ "CC-BY-4.0" ]
null
null
null
minio-python-sdk/webhook-server.py
minio/training
60c2a4fc57b7bad116f8d6037482050ef138bee1
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 """ Very simple HTTP server in python for logging requests Usage:: ./server.py [<port>] """ from http.server import BaseHTTPRequestHandler, HTTPServer import json import logging class WebHookServer(BaseHTTPRequestHandler): def _set_response(self): self.send_response(200) self...
32.782609
110
0.664456
ab75ed5e056631a86413bf4cfdd92060463f816c
11,776
py
Python
Solarwinds/Dameware/dwrcs_dwDrvInst_rce.py
iamarkaj/poc
983dcf94577b1a041f304c8e0537b670c0c18655
[ "BSD-3-Clause" ]
1,007
2018-09-17T16:13:26.000Z
2022-03-29T00:19:42.000Z
Solarwinds/Dameware/dwrcs_dwDrvInst_rce.py
demirelcan/poc
201ea88410c7a9e684f6cb66118c46b3ee02bd5b
[ "BSD-3-Clause" ]
5
2018-11-11T09:54:27.000Z
2020-06-24T22:59:49.000Z
Solarwinds/Dameware/dwrcs_dwDrvInst_rce.py
demirelcan/poc
201ea88410c7a9e684f6cb66118c46b3ee02bd5b
[ "BSD-3-Clause" ]
325
2018-09-18T04:44:53.000Z
2022-03-30T18:08:13.000Z
import sys, socket, os,string, binascii, argparse from struct import * from Crypto.Cipher import AES from Crypto.Hash import HMAC,SHA512 from Crypto.Protocol import KDF from Crypto.Signature import PKCS1_v1_5 from Crypto.PublicKey import RSA # Got it from the Internet def hexdump(src, length=16): DISPLAY = string....
32.351648
92
0.701681
5c92783e89b405a5833edfdba92d81a88bb57113
546
py
Python
config.py
davidlares/davidTasks
da9ea03b6697e48a463c8e8145927f5afc519dbd
[ "MIT" ]
null
null
null
config.py
davidlares/davidTasks
da9ea03b6697e48a463c8e8145927f5afc519dbd
[ "MIT" ]
null
null
null
config.py
davidlares/davidTasks
da9ea03b6697e48a463c8e8145927f5afc519dbd
[ "MIT" ]
null
null
null
# global config class Config: SECRET_KEY = 'mysecretkey' # this is for CSRF # dev env config class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATABASE_URI = 'mysql://root:@localhost/flask_tasks' SQLALCHEMY_TRACK_MODIFICATIONS = False MAIL_SERVER = 'smtp.googlemail.com' MAIL_PORT = 587 ...
27.3
67
0.71978
3963fe07ba384b0e929e643640b9e8bb1848c7df
78
py
Python
mypytorch.py
congnb/mypython
893b3390b8d6cf803b8ae15bf5331e74e6faf04a
[ "MIT" ]
1
2020-08-08T05:06:25.000Z
2020-08-08T05:06:25.000Z
mypytorch.py
congnb/mypython
893b3390b8d6cf803b8ae15bf5331e74e6faf04a
[ "MIT" ]
null
null
null
mypytorch.py
congnb/mypython
893b3390b8d6cf803b8ae15bf5331e74e6faf04a
[ "MIT" ]
1
2020-08-08T08:20:38.000Z
2020-08-08T08:20:38.000Z
import torch print (torch.cuda.is_available()) x = torch.rand(5, 3) print(x)
13
33
0.705128
6e04dc4fe7132fc97add149f5c947853f3363ddc
2,098
py
Python
Chatops/user/migrations/0003_auto_20200129_1940.py
kkirsche/mattermost-chatops
800f4483245e29790ae5578bc5fad2f9aad6667a
[ "Apache-2.0" ]
4
2020-04-25T01:44:17.000Z
2022-01-23T15:03:42.000Z
Chatops/user/migrations/0003_auto_20200129_1940.py
kkirsche/mattermost-chatops
800f4483245e29790ae5578bc5fad2f9aad6667a
[ "Apache-2.0" ]
6
2021-03-30T14:33:01.000Z
2021-09-22T19:49:36.000Z
Chatops/user/migrations/0003_auto_20200129_1940.py
kkirsche/mattermost-chatops
800f4483245e29790ae5578bc5fad2f9aad6667a
[ "Apache-2.0" ]
1
2020-03-23T12:34:47.000Z
2020-03-23T12:34:47.000Z
# Generated by Django 3.0.2 on 2020-01-29 19:40 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('user', '0002_auto_20200127_1704'), ] operations = [ migrations.CreateModel( nam...
38.145455
115
0.580076
83f29f62e27fa10253511af38a1ebf18e8bacb7a
1,963
py
Python
dpkt/rip.py
lkash/test
5631eeaaa7e1bd5f6ce7b3c08f1c9b6b7fc2ec1c
[ "BSD-3-Clause" ]
null
null
null
dpkt/rip.py
lkash/test
5631eeaaa7e1bd5f6ce7b3c08f1c9b6b7fc2ec1c
[ "BSD-3-Clause" ]
null
null
null
dpkt/rip.py
lkash/test
5631eeaaa7e1bd5f6ce7b3c08f1c9b6b7fc2ec1c
[ "BSD-3-Clause" ]
null
null
null
# $Id: rip.py 23 2006-11-08 15:45:33Z dugsong $ # -*- coding: utf-8 -*- """Routing Information Protocol.""" import dpkt # RIP v2 - RFC 2453 # http://tools.ietf.org/html/rfc2453 REQUEST = 1 RESPONSE = 2 class RIP(dpkt.Packet): __hdr__ = ( ('cmd', 'B', REQUEST), ('v', 'B', 2), ('rsvd', 'H...
22.05618
184
0.507387
440da8c529cc6ca50808106bbae128c51dd699fb
1,365
py
Python
azure-iot-hub/azure/iot/hub/protocol/models/registry_statistics.py
danewalton/azure-iot-sdk-python
addc82a8c28478738602bd698acdaf1a16dc39b4
[ "MIT" ]
366
2016-12-02T20:38:05.000Z
2022-03-29T10:08:14.000Z
azure-iot-hub/azure/iot/hub/protocol/models/registry_statistics.py
danewalton/azure-iot-sdk-python
addc82a8c28478738602bd698acdaf1a16dc39b4
[ "MIT" ]
640
2016-12-16T21:59:48.000Z
2022-03-30T20:17:52.000Z
azure-iot-hub/azure/iot/hub/protocol/models/registry_statistics.py
danewalton/azure-iot-sdk-python
addc82a8c28478738602bd698acdaf1a16dc39b4
[ "MIT" ]
371
2016-11-16T16:06:04.000Z
2022-03-31T10:10:57.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
40.147059
80
0.632967
75f6a38d3c07c3bc1d8ac2a08e89de2316eb496b
2,220
py
Python
tests/test_as_discrete.py
finalelement/MONAI
8e8e1b391fa649d1227087164dba208008d00bc4
[ "Apache-2.0" ]
null
null
null
tests/test_as_discrete.py
finalelement/MONAI
8e8e1b391fa649d1227087164dba208008d00bc4
[ "Apache-2.0" ]
null
null
null
tests/test_as_discrete.py
finalelement/MONAI
8e8e1b391fa649d1227087164dba208008d00bc4
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
34.153846
120
0.593243
32a86f5761ccff29b88325b331bccc7231cb531e
14,047
py
Python
conans/test/unittests/model/ref_test.py
Wonders11/conan
28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8
[ "MIT" ]
1
2019-11-04T17:23:09.000Z
2019-11-04T17:23:09.000Z
conans/test/unittests/model/ref_test.py
Wonders11/conan
28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8
[ "MIT" ]
1
2020-11-05T16:16:49.000Z
2020-11-05T16:16:49.000Z
conans/test/unittests/model/ref_test.py
Mattlk13/conan
005fc53485557b0a570bb71670f2ca9c66082165
[ "MIT" ]
null
null
null
import unittest import six from conans.errors import ConanException from conans.model.ref import ConanFileReference, ConanName, InvalidNameException, PackageReference, \ check_valid_ref, get_reference_fields class RefTest(unittest.TestCase): def test_basic(self): ref = ConanFileReference.loads("open...
47.94198
101
0.663202
faf68bce84dcda80469d955f8ac519566876f05c
28,403
py
Python
bokeh/embed.py
chinasaur/bokeh
d3662a871679adf2cc8f95b80a51120db4dcccd4
[ "BSD-3-Clause" ]
null
null
null
bokeh/embed.py
chinasaur/bokeh
d3662a871679adf2cc8f95b80a51120db4dcccd4
[ "BSD-3-Clause" ]
null
null
null
bokeh/embed.py
chinasaur/bokeh
d3662a871679adf2cc8f95b80a51120db4dcccd4
[ "BSD-3-Clause" ]
null
null
null
''' Provide functions to embed Bokeh models (e.g., plots, widget, layouts) in various different ways. There are a number of different combinations of options when embedding Bokeh plots. The data for the plot can be contained in the document, or on a Bokeh server, or in a sidecar JavaScript file. Likewise, BokehJS may ...
35.152228
140
0.651903
53e36e4915954eeb17840b010d2f344e584923d3
720
py
Python
E5-D/generator.py
Matrix53/algo
7a176dac9ed9c6ad65d1514afb6388f7ee6b912a
[ "MIT" ]
1
2021-12-14T08:54:11.000Z
2021-12-14T08:54:11.000Z
E5-D/generator.py
Matrix53/algo
7a176dac9ed9c6ad65d1514afb6388f7ee6b912a
[ "MIT" ]
null
null
null
E5-D/generator.py
Matrix53/algo
7a176dac9ed9c6ad65d1514afb6388f7ee6b912a
[ "MIT" ]
1
2021-12-13T09:31:40.000Z
2021-12-13T09:31:40.000Z
from cyaron import * code_path = 'D:/Workspace/algo/E5-B/' # big data io = IO('1.in', '1.out') io.input_writeln(500, 1000, 250000) graph = Graph.graph(500, 1000, directed=True, weight_limit=(0, 10000000)) io.input_writeln(graph.to_str(shuffle=True)) for u in range(1, 501): for v in range(1, 501): io.input...
27.692308
75
0.686111
4c170c1c02b9668700198082b53626d504ad085e
8,016
py
Python
arelle/ModelRssItem.py
hamscher/Arelle
64c1beddcc7163e571011faf07a03d8ffe18bb78
[ "Apache-2.0" ]
292
2015-01-27T03:31:51.000Z
2022-03-26T07:00:05.000Z
arelle/ModelRssItem.py
hamscher/Arelle
64c1beddcc7163e571011faf07a03d8ffe18bb78
[ "Apache-2.0" ]
94
2015-04-18T23:03:00.000Z
2022-03-28T17:24:55.000Z
arelle/ModelRssItem.py
hamscher/Arelle
64c1beddcc7163e571011faf07a03d8ffe18bb78
[ "Apache-2.0" ]
200
2015-01-13T03:55:47.000Z
2022-03-29T12:38:56.000Z
''' Created on Nov 11, 2010 @author: Mark V Systems Limited (c) Copyright 2010 Mark V Systems Limited, All rights reserved. ''' import os from arelle import XmlUtil from arelle.ModelObject import ModelObject newRssWatchOptions = { "feedSource": "", "feedSourceUri": None, "matchTextExpr": "", "formulaF...
36.271493
162
0.58508
e0ce55a54be57bb281a21e6d9008a577d9153b7a
1,216
py
Python
nlp_primitives/tests/test_upper_case_count.py
mikewcasale/nlp_primitives
e42ff518f78fe2398c156e559b6d0fe222fd5cdd
[ "BSD-3-Clause" ]
2
2021-04-05T03:56:21.000Z
2022-03-09T09:05:55.000Z
nlp_primitives/tests/test_upper_case_count.py
mikewcasale/nlp_primitives
e42ff518f78fe2398c156e559b6d0fe222fd5cdd
[ "BSD-3-Clause" ]
null
null
null
nlp_primitives/tests/test_upper_case_count.py
mikewcasale/nlp_primitives
e42ff518f78fe2398c156e559b6d0fe222fd5cdd
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd from ..upper_case_count import UpperCaseCount from ..utils import PrimitiveT, find_applicable_primitives, valid_dfs class TestUpperCaseCount(PrimitiveT): primitive = UpperCaseCount def test_strings(self): x = pd.Series(['This IS a STRING.', ...
36.848485
85
0.630757
7a9b98618b92d87198df75daa8c6d19fb3676236
28,208
py
Python
behavenet/fitting/training.py
cxrodgers/behavenet
061b0b30f5d03b9d5be0dd965d81dc37b7409070
[ "MIT" ]
null
null
null
behavenet/fitting/training.py
cxrodgers/behavenet
061b0b30f5d03b9d5be0dd965d81dc37b7409070
[ "MIT" ]
null
null
null
behavenet/fitting/training.py
cxrodgers/behavenet
061b0b30f5d03b9d5be0dd965d81dc37b7409070
[ "MIT" ]
null
null
null
"""Functions and classes for fitting PyTorch models with stochastic gradient descent.""" import copy import os import numpy as np from tqdm import tqdm import torch from torch import nn from sklearn.metrics import r2_score, accuracy_score from behavenet.fitting.eval import export_latents from behavenet.fitting.eval im...
38.641096
99
0.571185
5f347a2f6bcf51d12bb68330a9cb5638158188ce
1,988
py
Python
events/urls.py
jdevera/pythoncanarias_web
465e8b0a054726e29b1029f1dffe11f913e40bcc
[ "MIT" ]
null
null
null
events/urls.py
jdevera/pythoncanarias_web
465e8b0a054726e29b1029f1dffe11f913e40bcc
[ "MIT" ]
null
null
null
events/urls.py
jdevera/pythoncanarias_web
465e8b0a054726e29b1029f1dffe11f913e40bcc
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'events' urlpatterns = [ path('', views.index, name='index'), path('archive/', views.past_events, name='past_events'), path('<slug:slug>/', views.detail_event, name='detail_event'), path( '<slug:slug>/waiting-list/', views.wa...
27.232877
67
0.577968
0c15e1fec2ec062eb7cfbbc333f94cae23814e44
1,974
py
Python
setup.py
csinva/interpretability-implementations-demos
0223114225d0e077007b1ad49f63b64f3ff5ee15
[ "MIT" ]
102
2019-07-16T13:45:35.000Z
2020-09-14T19:12:49.000Z
setup.py
csinva/interpretability-implementations-demos
0223114225d0e077007b1ad49f63b64f3ff5ee15
[ "MIT" ]
2
2020-01-03T20:47:14.000Z
2020-01-03T21:17:39.000Z
setup.py
csinva/interpretability-implementations-demos
0223114225d0e077007b1ad49f63b64f3ff5ee15
[ "MIT" ]
8
2019-08-09T08:40:34.000Z
2020-09-06T17:51:10.000Z
from os import path import setuptools path_to_repo = path.abspath(path.dirname(__file__)) with open(path.join(path_to_repo, 'readme.md'), encoding='utf-8') as f: long_description = f.read() required_pypi = [ 'matplotlib', 'mlxtend>=0.18.0', # some lower version are missing fpgrowth 'numpy', 'pan...
29.909091
78
0.600811
0807fc13281b87d5c31d3f421ab66143a267bffa
1,165
py
Python
app/views.py
LogicPi-cn/django-dashboard-material
7be3abef34e809ee12ed14d4a65df2e12008d485
[ "MIT" ]
null
null
null
app/views.py
LogicPi-cn/django-dashboard-material
7be3abef34e809ee12ed14d4a65df2e12008d485
[ "MIT" ]
null
null
null
app/views.py
LogicPi-cn/django-dashboard-material
7be3abef34e809ee12ed14d4a65df2e12008d485
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from django.contrib.auth.decorators import login_required from django.shortcuts import render, get_object_or_404, redirect from django.template import loader from django.http import HttpResponse from django import template...
31.486486
72
0.684979
3d42cf5e5530798f060c4d9a4855cb05c43d9438
3,251
py
Python
_unittest/test_09_Primitives2D.py
pyansys/pyaedt
c7b045fede6bc707fb20a8db7d5680c66d8263f6
[ "MIT" ]
38
2021-10-01T23:15:26.000Z
2022-03-30T18:14:41.000Z
_unittest/test_09_Primitives2D.py
pyansys/pyaedt
c7b045fede6bc707fb20a8db7d5680c66d8263f6
[ "MIT" ]
362
2021-09-30T17:11:55.000Z
2022-03-31T13:36:20.000Z
_unittest/test_09_Primitives2D.py
pyansys/pyaedt
c7b045fede6bc707fb20a8db7d5680c66d8263f6
[ "MIT" ]
15
2021-09-30T20:21:02.000Z
2022-02-21T20:22:03.000Z
#!/ekm/software/anaconda3/bin/python # Import required modules from _unittest.conftest import BasisTest from pyaedt import Maxwell2d from pyaedt.modeler.Primitives import Polyline # Setup paths for module imports try: import pytest # noqa: F401 except ImportError: import _unittest_ironpython.conf_unittest as...
38.247059
99
0.676715
cf42f7d201fac765dcba0fccb1122c5047e16af0
974
py
Python
nodes/new_nodes/ObjectDisplay.py
kant/RenderStackNode
19876fc75a03edf36ae27837d193509907adbd4a
[ "Apache-2.0" ]
null
null
null
nodes/new_nodes/ObjectDisplay.py
kant/RenderStackNode
19876fc75a03edf36ae27837d193509907adbd4a
[ "Apache-2.0" ]
null
null
null
nodes/new_nodes/ObjectDisplay.py
kant/RenderStackNode
19876fc75a03edf36ae27837d193509907adbd4a
[ "Apache-2.0" ]
null
null
null
import bpy from bpy.props import * from ...nodes.BASE.node_tree import RenderStackNode class RenderNodeObjectDisplay(RenderStackNode): bl_idname = 'RenderNodeObjectDisplay' bl_label = 'Object Display +' def init(self, context): self.create_prop('RenderNodeSocketObject', 'object', 'Object') ...
28.647059
82
0.694045
d4071f8109a219f65689e15a1bccaeb93eaa3aff
4,668
py
Python
build/dynamixel_sdk/catkin_generated/installspace/group_sync_read.py
sej0015/holonomic_turtle_bot
4cc80bb27dfce0aa6f2bd975d79f6348acf40401
[ "Apache-2.0" ]
null
null
null
build/dynamixel_sdk/catkin_generated/installspace/group_sync_read.py
sej0015/holonomic_turtle_bot
4cc80bb27dfce0aa6f2bd975d79f6348acf40401
[ "Apache-2.0" ]
null
null
null
build/dynamixel_sdk/catkin_generated/installspace/group_sync_read.py
sej0015/holonomic_turtle_bot
4cc80bb27dfce0aa6f2bd975d79f6348acf40401
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################################################ # Copyright 2017 ROBOTIS CO., LTD. # # 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 co...
31.972603
109
0.582905
502cdaeb8e282b1a66d3c63cf4ad3d14b7a247a3
992
py
Python
src/match_downloader.py
mnuyens/forseti2
3c6d76ffac2b64d51f03d3922e3b388a4e35f1a8
[ "Apache-2.0" ]
1
2015-03-07T04:48:53.000Z
2015-03-07T04:48:53.000Z
src/match_downloader.py
mnuyens/forseti2
3c6d76ffac2b64d51f03d3922e3b388a4e35f1a8
[ "Apache-2.0" ]
null
null
null
src/match_downloader.py
mnuyens/forseti2
3c6d76ffac2b64d51f03d3922e3b388a4e35f1a8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2.7 from __future__ import print_function import urllib import argparse import json import os.path match_dir = '../matches' def main(): parser = argparse.ArgumentParser() parser.add_argument('--start', type=int, action='store') args = parser.parse_args() match_exists = True i...
27.555556
87
0.584677
706ea20e12f4787d581136e57f4c5e1bb6be267d
12,102
py
Python
models/yolo.py
bhecquet/image-fields-detector
bdb290df43dd4401ab501c3e87eddf6e69a201cc
[ "Apache-2.0" ]
null
null
null
models/yolo.py
bhecquet/image-fields-detector
bdb290df43dd4401ab501c3e87eddf6e69a201cc
[ "Apache-2.0" ]
null
null
null
models/yolo.py
bhecquet/image-fields-detector
bdb290df43dd4401ab501c3e87eddf6e69a201cc
[ "Apache-2.0" ]
1
2021-12-27T15:03:37.000Z
2021-12-27T15:03:37.000Z
# YOLOv3 YOLO-specific modules import argparse import logging import sys from copy import deepcopy sys.path.append('./') # to run '$ python *.py' files in subdirectories logger = logging.getLogger(__name__) from models.common import * from models.experimental import * from utils.autoanchor import check_anchor_order...
43.532374
119
0.541977
f1a4679219df22cbbd18651f28bec702894cf767
6,363
py
Python
tableschema/field.py
theotheo/tableschema-py
f308b48ce7d185d82a4a958830db190701abb7d0
[ "MIT" ]
null
null
null
tableschema/field.py
theotheo/tableschema-py
f308b48ce7d185d82a4a958830db190701abb7d0
[ "MIT" ]
null
null
null
tableschema/field.py
theotheo/tableschema-py
f308b48ce7d185d82a4a958830db190701abb7d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals from functools import partial from .profile import Profile from . import constraints from . import exceptions from . import helpers from . import ...
28.791855
91
0.583687
f6d93bd85c04ce266158b03facdb42e14b1490c5
1,531
py
Python
indicators.py
guibuenorodrigues/robot-trader
2fdf59870a1f3435a7697b521701df70f3aaebb2
[ "MIT" ]
null
null
null
indicators.py
guibuenorodrigues/robot-trader
2fdf59870a1f3435a7697b521701df70f3aaebb2
[ "MIT" ]
null
null
null
indicators.py
guibuenorodrigues/robot-trader
2fdf59870a1f3435a7697b521701df70f3aaebb2
[ "MIT" ]
1
2021-12-08T03:43:28.000Z
2021-12-08T03:43:28.000Z
import logging from typing import Tuple from numpy.lib.function_base import average import pandas as pd import math from ticker import Ticker class Indicators: def __init__(self) -> None: self.logger = logging.getLogger(__name__) self.averages_low = [] self.averages_high = [] sel...
27.836364
93
0.646636
f5f50f34c77949680bf36dff3e1d919a9d8f995b
30,855
py
Python
openstack_ansible/openstack_ansible.py
jfrancoa/os-migrate
3c48ef8f5a42edf5d0afd20b8fea969b287f8b46
[ "Apache-2.0" ]
null
null
null
openstack_ansible/openstack_ansible.py
jfrancoa/os-migrate
3c48ef8f5a42edf5d0afd20b8fea969b287f8b46
[ "Apache-2.0" ]
null
null
null
openstack_ansible/openstack_ansible.py
jfrancoa/os-migrate
3c48ef8f5a42edf5d0afd20b8fea969b287f8b46
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import os import openstack from plugins.os_ansible import config as conf from plugins.os_ansible import const from plugins.os_ansible.common import value, optimize, write_yaml class OpenstackAnsible: def __init__(self, cloud_name, debug=False): self.debug = debug self.data = ...
44.078571
84
0.500826
058c059f761eda96c89499a971e05f607a042f58
8,572
py
Python
pgmpy/estimators/ExhaustiveSearch.py
SkySlime/pgmpy
f379c8c3ca58651f4309b20289a09e7636fc0157
[ "MIT" ]
null
null
null
pgmpy/estimators/ExhaustiveSearch.py
SkySlime/pgmpy
f379c8c3ca58651f4309b20289a09e7636fc0157
[ "MIT" ]
null
null
null
pgmpy/estimators/ExhaustiveSearch.py
SkySlime/pgmpy
f379c8c3ca58651f4309b20289a09e7636fc0157
[ "MIT" ]
1
2021-11-05T03:27:56.000Z
2021-11-05T03:27:56.000Z
#!/usr/bin/env python from warnings import warn from itertools import combinations import networkx as nx from pgmpy.estimators import StructureEstimator, ScoreCache from pgmpy.estimators import K2Score from pgmpy.utils.mathext import powerset from pgmpy.base import DAG class ExhaustiveSearch(StructureEstimator): ...
42.86
103
0.558213
64300882d550f521f9d8325c9a17ca3378315613
782
py
Python
test_my_crypto.py
nkaviani/demo-crypto-bot
59d61cdec675a038d7c0c46f71893a145df59b97
[ "Apache-2.0" ]
2
2017-12-20T17:13:09.000Z
2018-01-11T12:38:11.000Z
test_my_crypto.py
nimakaviani/demo-crypto-bot
59d61cdec675a038d7c0c46f71893a145df59b97
[ "Apache-2.0" ]
null
null
null
test_my_crypto.py
nimakaviani/demo-crypto-bot
59d61cdec675a038d7c0c46f71893a145df59b97
[ "Apache-2.0" ]
null
null
null
import pytest import os # integration tests @pytest.fixture def my_crypto_no_watson(capsys, monkeypatch): from helpers.notifier import Notifier from my_crypto import MyCrypto def patched_report(self, recipient_id, wallet, time): assert recipient_id == "sender-id" def patched_quick_reply(self,...
30.076923
69
0.735294
caa433a70652038e6cadb2dae271e10758c7e155
1,179
py
Python
fix_xlsx.py
hasadna/israel_tree_removal_permit_scraper
808817463cdfefc17ce1d16bb95632414a1d4d4a
[ "MIT" ]
1
2021-02-08T14:27:25.000Z
2021-02-08T14:27:25.000Z
fix_xlsx.py
hasadna/israel_tree_removal_permit_scraper
808817463cdfefc17ce1d16bb95632414a1d4d4a
[ "MIT" ]
null
null
null
fix_xlsx.py
hasadna/israel_tree_removal_permit_scraper
808817463cdfefc17ce1d16bb95632414a1d4d4a
[ "MIT" ]
null
null
null
import logging from io import BytesIO from pathlib import Path from openpyxl import load_workbook logger = logging.getLogger(__name__) def fix_excel_file(p): wb = load_workbook(p) ws = wb.active empty = [] for i, row in enumerate(ws.rows, 1): if not any(c.value for c in row): emp...
24.061224
82
0.597116
df13087384d076ca81957412378ba83cb3f7c8d2
8,993
py
Python
test/unit/test_sequencer.py
claymation/pyOCD
7f1db3b64c16e54a791421cdf4946418f13848ff
[ "Apache-2.0" ]
276
2020-09-30T16:43:24.000Z
2022-03-27T09:52:01.000Z
test/unit/test_sequencer.py
claymation/pyOCD
7f1db3b64c16e54a791421cdf4946418f13848ff
[ "Apache-2.0" ]
282
2020-10-02T17:45:29.000Z
2022-03-31T10:37:30.000Z
test/unit/test_sequencer.py
claymation/pyOCD
7f1db3b64c16e54a791421cdf4946418f13848ff
[ "Apache-2.0" ]
106
2020-10-01T10:06:44.000Z
2022-03-29T10:06:06.000Z
# pyOCD debugger # Copyright (c) 2018-2019 Arm Limited # Copyright (c) 2021 Chris Reed # SPDX-License-Identifier: Apache-2.0 # # 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...
31.010345
74
0.469476
38099fba8fe0d65ec2eec45fe43d6dea1dbf6b92
423
py
Python
misc_scripts/file_to_bytes.py
jtara1/misc_scripts
83ba473fefbc05ce8e0743e7e618e871dfe94be1
[ "Apache-2.0" ]
4
2018-11-05T10:47:02.000Z
2022-02-05T08:17:56.000Z
misc_scripts/file_to_bytes.py
jtara1/MiscScripts
83ba473fefbc05ce8e0743e7e618e871dfe94be1
[ "Apache-2.0" ]
4
2017-12-30T20:46:10.000Z
2018-02-04T00:03:25.000Z
misc_scripts/file_to_bytes.py
jtara1/MiscScripts
83ba473fefbc05ce8e0743e7e618e871dfe94be1
[ "Apache-2.0" ]
null
null
null
import click @click.command() @click.argument('file_name', type=click.Path()) @click.argument('output_file_name', default='file_bytes.txt', type=click.Path()) def file_to_bytes(file_name, output_file_name): # save bytes with open(file_name, 'rb') as infile: with open(output_file_name, 'w') as outfile:...
26.4375
80
0.690307
61c1d48647e9167255a265fd044fa3243a1c8970
761
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/raw/WGL/NV/render_texture_rectangle.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/raw/WGL/NV/render_texture_rectangle.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/raw/WGL/NV/render_texture_rectangle.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.WGL import _types as _cs # End users want this... from OpenGL.raw.WGL._types import * from OpenGL.raw.WGL import _errors from OpenGL.constant import Constant as _C import ctype...
42.277778
126
0.837057
1a074e7c1d1073022cd675818d539842a5c881e8
958
py
Python
wiki_insight/url_builder.py
kvin007/wiki_insight
6036e4394e60968dd2be2d261e3e87e56cf38726
[ "MIT" ]
null
null
null
wiki_insight/url_builder.py
kvin007/wiki_insight
6036e4394e60968dd2be2d261e3e87e56cf38726
[ "MIT" ]
null
null
null
wiki_insight/url_builder.py
kvin007/wiki_insight
6036e4394e60968dd2be2d261e3e87e56cf38726
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from docs import conf class UrlBuilder: """Class that helps build the urls needed to download the files from wikimedia""" def __init__(self, hours_backwards): self._base_link = conf.base_link self._hours_backwards = hours_backwards def _get_base_ur...
38.32
94
0.624217
280176591eba40e1ba13623ac64e1e3628eb5bb7
4,142
py
Python
tests/test_accept_batch.py
Submissions/shepherd
f4bc2b76226ffae8fad8bef95a636ae0881d0ffb
[ "MIT" ]
null
null
null
tests/test_accept_batch.py
Submissions/shepherd
f4bc2b76226ffae8fad8bef95a636ae0881d0ffb
[ "MIT" ]
8
2018-02-05T21:36:53.000Z
2019-06-21T15:05:41.000Z
tests/test_accept_batch.py
Submissions/shepherd
f4bc2b76226ffae8fad8bef95a636ae0881d0ffb
[ "MIT" ]
4
2017-12-06T19:06:01.000Z
2018-01-11T15:54:58.000Z
from filecmp import cmp from os import path from subprocess import run, DEVNULL, PIPE from sys import executable, stdout, stderr from py.path import local from pytest import fixture, mark import yaml def test_fixture(accept_batch_fixture): for k in sorted(vars(accept_batch_fixture)): print(k, getattr(acc...
36.017391
79
0.728392
60d250032d65ec25a4b2e1b44d38cab280cc43c4
36
py
Python
backend/backend/accounts/signals/__init__.py
LloydTao/django-nuxt-auth
b17aa1b6c8e4991e572e19dcd3f656721b8d1501
[ "MIT" ]
null
null
null
backend/backend/accounts/signals/__init__.py
LloydTao/django-nuxt-auth
b17aa1b6c8e4991e572e19dcd3f656721b8d1501
[ "MIT" ]
null
null
null
backend/backend/accounts/signals/__init__.py
LloydTao/django-nuxt-auth
b17aa1b6c8e4991e572e19dcd3f656721b8d1501
[ "MIT" ]
null
null
null
from .profile import create_profile
18
35
0.861111
f1a69811f8f09b15d9d05866143c88455f7fe76e
1,502
py
Python
packages/python-packages/tox-monorepo/setup.py
scbedd/azure-sdk-tools
dcbe480642d53ea524438da39a3af758646b5bd3
[ "MIT" ]
84
2015-01-01T23:40:15.000Z
2022-03-10T20:20:40.000Z
packages/python-packages/tox-monorepo/setup.py
scbedd/azure-sdk-tools
dcbe480642d53ea524438da39a3af758646b5bd3
[ "MIT" ]
2,219
2015-01-06T20:35:05.000Z
2022-03-31T23:36:52.000Z
packages/python-packages/tox-monorepo/setup.py
scbedd/azure-sdk-tools
dcbe480642d53ea524438da39a3af758646b5bd3
[ "MIT" ]
127
2015-01-02T01:43:51.000Z
2022-03-24T20:02:13.000Z
from setuptools import setup, find_packages import os, re PACKAGE_NAME = "tox-monorepo" DESCRIPTION = "A tox plugin built to allow sharing of a common tox.ini file across repositories with high package counts." with open(os.path.join("tox_monorepo", "version.py"), "r") as fd: version = re.search( r'^VERS...
33.377778
122
0.64514
6e2f1cd2c982ceb6ff324d7ea93570a8b6ea90a3
2,338
py
Python
map_pua_emoji.py
Skrity/blobmoji
137924759529d6d4032df7381e72cdb5a70329a3
[ "Apache-2.0" ]
1
2021-07-22T20:56:28.000Z
2021-07-22T20:56:28.000Z
map_pua_emoji.py
Skrity/blobmoji
137924759529d6d4032df7381e72cdb5a70329a3
[ "Apache-2.0" ]
null
null
null
map_pua_emoji.py
Skrity/blobmoji
137924759529d6d4032df7381e72cdb5a70329a3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2014 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 # # Unl...
31.173333
81
0.664671
f3221bc0635e17ee25d87083f92efa7cf9d2f545
1,064
py
Python
m4c_captioner.py
TownWilliam/mma_sr
b7d4704c47ccd6ac36a748e8af709184b65f9d38
[ "MIT" ]
2
2021-12-30T01:49:14.000Z
2022-03-31T09:09:18.000Z
m4c_captioner.py
TownWilliam/mma_sr
b7d4704c47ccd6ac36a748e8af709184b65f9d38
[ "MIT" ]
null
null
null
m4c_captioner.py
TownWilliam/mma_sr
b7d4704c47ccd6ac36a748e8af709184b65f9d38
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # Put this file in the location mmf/models/ from mmf.common.registry import registry from mmf.models.mma_sr import M4C @registry.register_model("m4c_captioner") class M4CCaptioner(M4C): def __init__(self, config): super().__init__(config) print(M4...
35.466667
90
0.660714
6b2ca3e0a5b5395ef4267e5404a0a4908202cd85
15,789
py
Python
tests/settings_tests/tests.py
xavfernandez/django
daaeb8415823444a9020460cf825efc3fae866a2
[ "BSD-3-Clause" ]
2
2016-07-23T18:08:37.000Z
2016-07-24T09:54:34.000Z
tests/settings_tests/tests.py
xavfernandez/django
daaeb8415823444a9020460cf825efc3fae866a2
[ "BSD-3-Clause" ]
null
null
null
tests/settings_tests/tests.py
xavfernandez/django
daaeb8415823444a9020460cf825efc3fae866a2
[ "BSD-3-Clause" ]
null
null
null
import os import sys from types import ModuleType import unittest import warnings from django.conf import LazySettings, Settings, settings from django.core.exceptions import ImproperlyConfigured from django.http import HttpRequest from django.test import (SimpleTestCase, TransactionTestCase, TestCase, modify_setti...
35.965831
93
0.661473
e8afd8060469457f8ee21f258f41574a80143df4
882
py
Python
Server/app/models/user.py
JoMingyu/BookCheck-Backend
fbe71a39e385a3c739e7e40ab1153efbe7835576
[ "MIT" ]
1
2018-04-12T10:51:49.000Z
2018-04-12T10:51:49.000Z
Server/app/models/user.py
JoMingyu/BookCheck-Backend
fbe71a39e385a3c739e7e40ab1153efbe7835576
[ "MIT" ]
null
null
null
Server/app/models/user.py
JoMingyu/BookCheck-Backend
fbe71a39e385a3c739e7e40ab1153efbe7835576
[ "MIT" ]
null
null
null
from datetime import datetime from app.models import * from app.models.library import LibraryModel class UserBase(Document): """ User Base Collection """ signup_time = DateTimeField(required=True, default=datetime.now()) id = StringField(primary_key=True) pw = StringField(required=True) ...
21
80
0.693878
846e3fc3528b348df206e8876c674361614747cb
14,716
py
Python
stubs.min/System/Windows/Automation/Peers_parts/CalendarAutomationPeer.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/System/Windows/Automation/Peers_parts/CalendarAutomationPeer.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/Windows/Automation/Peers_parts/CalendarAutomationPeer.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class CalendarAutomationPeer(FrameworkElementAutomationPeer,IGridProvider,IMultipleViewProvider,ISelectionProvider,ITableProvider,IItemContainerProvider): """ Exposes System.Windows.Controls.Calendar types to UI Automation. CalendarAutomationPeer(owner: Calendar) """ def GetAcceleratorKeyCore(self,*args)...
42.287356
215
0.743205
cfda2e68734390c50ae3ba18e63b86fbfdfb6d28
2,864
py
Python
src/vmware/azext_vmware/tests/latest/test_addon_scenario.py
santosh02iiit/azure-cli-extensions
24247cfa19e2a5894937f19e17fbdc8308b28ef6
[ "MIT" ]
1
2021-12-17T01:27:06.000Z
2021-12-17T01:27:06.000Z
src/vmware/azext_vmware/tests/latest/test_addon_scenario.py
santosh02iiit/azure-cli-extensions
24247cfa19e2a5894937f19e17fbdc8308b28ef6
[ "MIT" ]
5
2022-03-08T17:46:24.000Z
2022-03-23T18:27:45.000Z
src/vmware/azext_vmware/tests/latest/test_addon_scenario.py
santosh02iiit/azure-cli-extensions
24247cfa19e2a5894937f19e17fbdc8308b28ef6
[ "MIT" ]
2
2021-09-22T08:25:32.000Z
2021-09-24T06:55:31.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
43.393939
164
0.606844
f97d700e522dc495c36024ea6faca696c7b936e1
16,553
py
Python
python/Adafruit_Thermal.py
8power8/yvetteomatic
cc323317c3fd5c160fe432c46cce629a3e648a5b
[ "WTFPL" ]
null
null
null
python/Adafruit_Thermal.py
8power8/yvetteomatic
cc323317c3fd5c160fe432c46cce629a3e648a5b
[ "WTFPL" ]
null
null
null
python/Adafruit_Thermal.py
8power8/yvetteomatic
cc323317c3fd5c160fe432c46cce629a3e648a5b
[ "WTFPL" ]
null
null
null
#************************************************************************* # This is a Python library for the Adafruit Thermal Printer. # Pick one up at --> http://www.adafruit.com/products/597 # These printers use TTL serial to communicate, 2 pins are required. # IMPORTANT: On 3.3V systems (e.g. Raspberry Pi), use a 1...
28.837979
74
0.674561
e8d84fcbe39acbf49977343dcb5defcc2b626c85
1,109
py
Python
Day2.py
carolinamassae/advent-of-code-2021
e8911bda88431160b53ba82ca6baa05ee869fe26
[ "MIT" ]
null
null
null
Day2.py
carolinamassae/advent-of-code-2021
e8911bda88431160b53ba82ca6baa05ee869fe26
[ "MIT" ]
null
null
null
Day2.py
carolinamassae/advent-of-code-2021
e8911bda88431160b53ba82ca6baa05ee869fe26
[ "MIT" ]
null
null
null
from itertools import islice, tee def main(): with open('Input/day2.txt') as f: lines = [l.strip('\n') for l in f.readlines()] print('Part One') diving_submarine(lines) print('Part Two') diving_submarine_2(lines) def diving_submarine(lines): x = depth = 0 for line in lines: ...
23.104167
54
0.487827
f94c983fde9a212a264eff0d48528315c667b3f1
4,059
py
Python
tdameritrade/auth/__init__.py
t-triobox/tdameritrade
9a6a4162ca336cc7e28bc6ac2d2d718fb3e9f069
[ "Apache-2.0" ]
528
2018-08-19T17:06:29.000Z
2022-03-28T03:39:22.000Z
tdameritrade/auth/__init__.py
t-triobox/tdameritrade
9a6a4162ca336cc7e28bc6ac2d2d718fb3e9f069
[ "Apache-2.0" ]
122
2018-10-23T00:06:22.000Z
2022-03-27T15:17:24.000Z
tdameritrade/auth/__init__.py
t-triobox/tdameritrade
9a6a4162ca336cc7e28bc6ac2d2d718fb3e9f069
[ "Apache-2.0" ]
232
2018-09-07T19:13:00.000Z
2022-01-28T17:32:17.000Z
import os import os.path import sys import time import urllib.parse as up from shutil import which import requests def authentication(client_id, redirect_uri, tdauser=None, tdapass=None): from selenium import webdriver client_id = client_id + "@AMER.OAUTHAP" url = ( "https://auth.tdameritrade.co...
32.472
111
0.605075
75772d21417baa16fc4160c5477d2c2d553a4730
21,276
py
Python
ferminet/train.py
rickyHong/ferminet
39c638f60349fa25da073780e3fa9052433e215e
[ "Apache-2.0" ]
1
2020-10-20T06:53:51.000Z
2020-10-20T06:53:51.000Z
ferminet/train.py
13571815901/ferminet
27f90beb57de62333989a5a64f47d1759b33804e
[ "Apache-2.0" ]
null
null
null
ferminet/train.py
13571815901/ferminet
27f90beb57de62333989a5a64f47d1759b33804e
[ "Apache-2.0" ]
1
2021-04-25T10:05:15.000Z
2021-04-25T10:05:15.000Z
# Lint as: python3 # Copyright 2018 DeepMind Technologies Limited. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # #...
39.18232
120
0.707605
0a5089d018fb9bab6a938b1368743d0c5db5d615
2,360
py
Python
tests/admin/forgot_password_test.py
stevej2608/dash-spa
aaf79e1df1af4f3afc2efcdc2b92a7dcaf74f673
[ "MIT" ]
27
2019-09-24T18:31:14.000Z
2022-03-01T16:44:21.000Z
tests/admin/forgot_password_test.py
stevej2608/dash-spa
aaf79e1df1af4f3afc2efcdc2b92a7dcaf74f673
[ "MIT" ]
1
2021-12-31T08:29:08.000Z
2022-02-18T06:49:51.000Z
tests/admin/forgot_password_test.py
stevej2608/dash-spa
aaf79e1df1af4f3afc2efcdc2b92a7dcaf74f673
[ "MIT" ]
4
2019-09-26T19:21:39.000Z
2022-02-12T18:51:20.000Z
from tests.admin import USER_EMAIL NEW_PASSWORD = 'bigjoe66' mail_args = {} def test_admin_forgot(mocker, duo): # Mock the template emailer def mock_send(self, sender, receiver, subject, test_mode): mail_args.update(self.args) mail_args['sender'] = sender mail_args['receiver'] = re...
29.873418
104
0.715678
b8d83157a837cd367665ae212ae0e7561f374985
12,549
py
Python
tests/unit/requests/test_upload.py
plamut/google-resumable-media-python
fcc24fcabd75424bb289c26aeda9bfbccd084d1e
[ "Apache-2.0" ]
null
null
null
tests/unit/requests/test_upload.py
plamut/google-resumable-media-python
fcc24fcabd75424bb289c26aeda9bfbccd084d1e
[ "Apache-2.0" ]
null
null
null
tests/unit/requests/test_upload.py
plamut/google-resumable-media-python
fcc24fcabd75424bb289c26aeda9bfbccd084d1e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.268786
88
0.61981
c885b530bddab76e560318fe6b252dcb82221293
547
py
Python
release/python/setup.py
pbianchi/l2tester
94e541fc08387555d2b81bd8dc447446c265afbb
[ "MIT" ]
8
2018-04-05T12:05:42.000Z
2021-07-01T10:44:29.000Z
release/python/setup.py
pbianchi/l2tester
94e541fc08387555d2b81bd8dc447446c265afbb
[ "MIT" ]
6
2018-04-05T10:36:31.000Z
2021-08-08T08:06:13.000Z
release/python/setup.py
pbianchi/l2tester
94e541fc08387555d2b81bd8dc447446c265afbb
[ "MIT" ]
9
2018-04-04T19:15:49.000Z
2021-08-07T10:17:10.000Z
#!/usr/bin/env python from distutils.core import setup setup(name='l2tester', version='1.0', author='Datacom', url='https://github.com/datacom-teracom/l2tester', description='l2tester is a set of tools projected to network traffic tests using the PC interfaces.', scripts=['bin/shark', 'b...
32.176471
107
0.650823
19e3deb62f92a6a6654d5f839c9e29648e127c60
1,060
py
Python
python/dicebeard/skb_roll/beardeddie.py
DavidAmison/dicebeard
f864a54044dbe81ea5865c264b58a63888c08ac2
[ "Unlicense" ]
null
null
null
python/dicebeard/skb_roll/beardeddie.py
DavidAmison/dicebeard
f864a54044dbe81ea5865c264b58a63888c08ac2
[ "Unlicense" ]
4
2017-03-03T14:57:01.000Z
2017-06-19T14:06:43.000Z
python/dicebeard/skb_roll/beardeddie.py
DavidAmison/dicebeard
f864a54044dbe81ea5865c264b58a63888c08ac2
[ "Unlicense" ]
3
2017-02-04T18:37:06.000Z
2019-06-20T09:24:02.000Z
import os from pathlib import Path from PIL import Image import pyconfig import pydice class ImageNotSupported(Exception): pass class BeardedDie: def __init__(self, die): self.die = die # Time to strap our to_image to pydice's Die if pyconfig.get('dicebeard.images_path'): ...
27.179487
71
0.580189
b96984e406bc6b26636241986fca1efb9d38135f
1,581
py
Python
samples/generated_samples/dialogflow_generated_dialogflow_v2_answer_records_list_answer_records_sync.py
rkdfc93/python-dialogflow
a59cff0298ef18674c0b4133ef0a6ab82e288920
[ "Apache-2.0" ]
171
2018-09-19T21:16:18.000Z
2020-12-07T17:41:10.000Z
samples/generated_samples/dialogflow_generated_dialogflow_v2_answer_records_list_answer_records_sync.py
rkdfc93/python-dialogflow
a59cff0298ef18674c0b4133ef0a6ab82e288920
[ "Apache-2.0" ]
150
2018-09-25T14:04:28.000Z
2020-12-09T21:45:43.000Z
samples/generated_samples/dialogflow_generated_dialogflow_v2_answer_records_list_answer_records_sync.py
rkdfc93/python-dialogflow
a59cff0298ef18674c0b4133ef0a6ab82e288920
[ "Apache-2.0" ]
75
2018-09-22T14:12:18.000Z
2020-12-08T07:12:12.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
32.9375
85
0.762808
14179422041539eb35d5679af5880f0cbb9689ea
5,187
py
Python
test/functional/p2p_feefilter.py
danecoin/Danecoin
73d21d335c11a8966c995b7e8c520c2b55695c04
[ "MIT" ]
3
2021-05-14T20:46:07.000Z
2022-03-07T13:06:28.000Z
test/functional/p2p_feefilter.py
danecoin/Danecoin
73d21d335c11a8966c995b7e8c520c2b55695c04
[ "MIT" ]
null
null
null
test/functional/p2p_feefilter.py
danecoin/Danecoin
73d21d335c11a8966c995b7e8c520c2b55695c04
[ "MIT" ]
1
2021-11-18T23:16:38.000Z
2021-11-18T23:16:38.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test processing of feefilter messages.""" from decimal import Decimal from test_framework.messages im...
41.496
123
0.687295
71167b3e74b07cf3aef35dfacf0d4e4cfb581a57
1,464
py
Python
tests/conftest.py
lizardschool/wordbook
843df3941c15ae88870874bdbf18cbf677b67e7f
[ "MIT" ]
null
null
null
tests/conftest.py
lizardschool/wordbook
843df3941c15ae88870874bdbf18cbf677b67e7f
[ "MIT" ]
null
null
null
tests/conftest.py
lizardschool/wordbook
843df3941c15ae88870874bdbf18cbf677b67e7f
[ "MIT" ]
null
null
null
"""Tests configuration module.""" import sys import os import pytest from alembic.command import upgrade, downgrade from alembic.config import Config # TODO: It shouldn't be there. sys.path.insert(0, os.path.abspath('.')) TESTDB = 'test_wordbook.db' TESTDB_PATH = "{}".format(TESTDB) @pytest.fixture() def app(): ...
25.241379
94
0.698087
1ce633ae70c7fc0f66934bb0ddd1d6ca8eb9d6b0
897
py
Python
src/mathematics/combination/hkr_bonetrousle.py
joeyworld/algo
03e733f8f0dafe8b5cfe85eb9f7d72f370a67c61
[ "MIT" ]
1
2019-02-11T09:18:14.000Z
2019-02-11T09:18:14.000Z
src/mathematics/combination/hkr_bonetrousle.py
gyukebox/algo
03e733f8f0dafe8b5cfe85eb9f7d72f370a67c61
[ "MIT" ]
null
null
null
src/mathematics/combination/hkr_bonetrousle.py
gyukebox/algo
03e733f8f0dafe8b5cfe85eb9f7d72f370a67c61
[ "MIT" ]
null
null
null
import os import sys def bonetrousle(n, k, b): initial_list = [i + 1 for i in range(b)] min_sum = sum(initial_list) max_sum = sum([k - i for i in range(b)]) if not min_sum <= n <= max_sum: return [-1] diff = n - min_sum if not diff: return initial_list else: for ...
21.878049
46
0.478261
2fc5d707208a7996e4fad44e7e72cfcf5f361442
2,178
py
Python
setup.py
6un9-h0-Dan/cti-python-stix2
5a34d529a8f29e8a1bce510ebc99aa7e3d74e2ef
[ "BSD-3-Clause" ]
null
null
null
setup.py
6un9-h0-Dan/cti-python-stix2
5a34d529a8f29e8a1bce510ebc99aa7e3d74e2ef
[ "BSD-3-Clause" ]
null
null
null
setup.py
6un9-h0-Dan/cti-python-stix2
5a34d529a8f29e8a1bce510ebc99aa7e3d74e2ef
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from codecs import open import os.path from setuptools import find_packages, setup BASE_DIR = os.path.dirname(os.path.abspath(__file__)) VERSION_FILE = os.path.join(BASE_DIR, 'stix2', 'version.py') def get_version(): with open(VERSION_FILE) as f: for line in f.readlines(): ...
32.507463
80
0.623049
2e4397f955366349c9bc4d8a2d7aa50a6202d117
3,175
py
Python
chb/mips/opcodes/MIPSInsertBitField.py
orinatic/CodeHawk-Binary
8b4fd728213e629736d5ece840ea3b43cea53f30
[ "MIT" ]
null
null
null
chb/mips/opcodes/MIPSInsertBitField.py
orinatic/CodeHawk-Binary
8b4fd728213e629736d5ece840ea3b43cea53f30
[ "MIT" ]
null
null
null
chb/mips/opcodes/MIPSInsertBitField.py
orinatic/CodeHawk-Binary
8b4fd728213e629736d5ece840ea3b43cea53f30
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # CodeHawk Binary Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2020 Kestrel Technology LLC # Copyright (c) 2020-2021 Henny Si...
34.89011
80
0.639055
51b83b9655dc2bace81532c3eeba48f09a9fc553
176,311
py
Python
src/awkward/operations/structure.py
bmwiedemann/awkward-1.0
c41ca0ad3542afbb37f98b77200da6e1bd9abaa1
[ "BSD-3-Clause" ]
null
null
null
src/awkward/operations/structure.py
bmwiedemann/awkward-1.0
c41ca0ad3542afbb37f98b77200da6e1bd9abaa1
[ "BSD-3-Clause" ]
null
null
null
src/awkward/operations/structure.py
bmwiedemann/awkward-1.0
c41ca0ad3542afbb37f98b77200da6e1bd9abaa1
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE from __future__ import absolute_import import numbers import json try: from collections.abc import Iterable except ImportError: from collections import Iterable import awkward as ak np = ak.nplike.NumpyMetadata.instance...
37.965332
171
0.563147
177b945f6c31a58db26b518fb5c945f6ea0e37c1
91
py
Python
tests/__init__.py
alan-augustine/python_singly_linkedlist
f227a4154b22de8a273d319ecdd6329035d5d258
[ "MIT" ]
null
null
null
tests/__init__.py
alan-augustine/python_singly_linkedlist
f227a4154b22de8a273d319ecdd6329035d5d258
[ "MIT" ]
null
null
null
tests/__init__.py
alan-augustine/python_singly_linkedlist
f227a4154b22de8a273d319ecdd6329035d5d258
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'src'))
22.75
69
0.703297
55e4f3d091ceb77435c5de14d61f03695962eedb
398
py
Python
geoserver/zip_files.py
rileyhales/dataTools
86b32ecb47388a7c9fda8b45972fadaac132dffb
[ "BSD-3-Clause" ]
2
2019-12-29T19:58:38.000Z
2021-12-17T09:16:24.000Z
geoserver/zip_files.py
rileyhales/dataTools
86b32ecb47388a7c9fda8b45972fadaac132dffb
[ "BSD-3-Clause" ]
null
null
null
geoserver/zip_files.py
rileyhales/dataTools
86b32ecb47388a7c9fda8b45972fadaac132dffb
[ "BSD-3-Clause" ]
1
2021-12-17T06:36:12.000Z
2021-12-17T06:36:12.000Z
import zipfile, os path = '/Users/rileyhales/tethys/apps/gldas/tethysapp/gldas/workspaces/user_workspaces/admin' files = os.listdir('/Users/rileyhales/tethys/apps/gldas/tethysapp/gldas/workspaces/user_workspaces/admin') archive = zipfile.ZipFile('/Users/rileyhales/hydroinformatics/admin.zip', mode='w') for file in fil...
44.222222
106
0.786432
5a244d0ac92cb8613f26722ad8d231dfa6688b4c
1,908
py
Python
src/sentry/templatetags/sentry_activity.py
dolfly/sentry
67ca39d5a639b70e54e8519f08533ab51431406a
[ "BSD-3-Clause" ]
null
null
null
src/sentry/templatetags/sentry_activity.py
dolfly/sentry
67ca39d5a639b70e54e8519f08533ab51431406a
[ "BSD-3-Clause" ]
null
null
null
src/sentry/templatetags/sentry_activity.py
dolfly/sentry
67ca39d5a639b70e54e8519f08533ab51431406a
[ "BSD-3-Clause" ]
null
null
null
""" sentry.templatetags.sentry_activity ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from django import template from django.utils.html import escape, linebreaks from django.utils.safestring import mark_...
32.338983
108
0.675052
746ff7a531d3796325de0983381e8018d0a26abb
711
py
Python
examples/cross_process_server.py
thedrow/eliot
7a5815c54e4b89fb0cb3feeefecdc2482e953fd9
[ "Apache-2.0" ]
598
2018-09-27T12:34:08.000Z
2022-03-17T04:15:15.000Z
examples/cross_process_server.py
thedrow/eliot
7a5815c54e4b89fb0cb3feeefecdc2482e953fd9
[ "Apache-2.0" ]
136
2018-10-03T16:53:29.000Z
2022-01-11T09:32:58.000Z
examples/cross_process_server.py
thedrow/eliot
7a5815c54e4b89fb0cb3feeefecdc2482e953fd9
[ "Apache-2.0" ]
39
2018-10-09T02:20:27.000Z
2022-03-30T09:22:16.000Z
""" Cross-process log tracing: HTTP server. """ from __future__ import unicode_literals import sys from flask import Flask, request from eliot import to_file, Action, start_action, add_global_fields add_global_fields(process="server") to_file(sys.stdout) app = Flask("server") def divide(x, y): with start_acti...
20.911765
74
0.670886
789d384696f5e732ba82bcd5d7147de7be535031
814
py
Python
setup.py
CI1100/HW_10
9aaa65ff54b7daadbef3cf1420ca0815435f706f
[ "MIT" ]
null
null
null
setup.py
CI1100/HW_10
9aaa65ff54b7daadbef3cf1420ca0815435f706f
[ "MIT" ]
null
null
null
setup.py
CI1100/HW_10
9aaa65ff54b7daadbef3cf1420ca0815435f706f
[ "MIT" ]
null
null
null
from distutils.core import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name="HW_10", # Replace with your own username version="0.1.0", author="Olga", author_email="Olga@example.com", description="Creation of packages for projects HW8 and HW9", lo...
32.56
73
0.641278
423422d7703d8da2cb87c837c08a4c6d60bcb680
2,165
py
Python
hyperadmin/hyperobjects.py
zbyte64/django-hyperadmin
9ac2ae284b76efb3c50a1c2899f383a27154cb54
[ "BSD-3-Clause" ]
25
2015-01-26T11:37:22.000Z
2021-04-05T17:21:05.000Z
hyperadmin/hyperobjects.py
zbyte64/django-hyperadmin
9ac2ae284b76efb3c50a1c2899f383a27154cb54
[ "BSD-3-Clause" ]
1
2015-04-13T04:19:49.000Z
2015-04-13T04:19:49.000Z
hyperadmin/hyperobjects.py
zbyte64/django-hyperadmin
9ac2ae284b76efb3c50a1c2899f383a27154cb54
[ "BSD-3-Clause" ]
2
2017-05-24T13:33:17.000Z
2019-11-14T06:24:48.000Z
''' These are objects generated by the resource and are serialized by a media type. ''' from hyperadmin.links import LinkCollectorMixin, ItemLinkCollectionProvider, LinkNotAvailable class Item(LinkCollectorMixin): ''' Represents an instance that is bound to an endpoint ''' form_class = None link_c...
28.486842
93
0.626328
b80b18c4fcb6fc7a2080cbd4eaf0f8b982cedea3
2,642
py
Python
setup.py
sammchardy/python-idex
24cee970172491a7f7d5f52558727a77384cce26
[ "MIT" ]
86
2017-11-15T18:49:50.000Z
2022-02-01T19:37:29.000Z
setup.py
sammchardy/python-idex
24cee970172491a7f7d5f52558727a77384cce26
[ "MIT" ]
42
2018-01-05T02:35:08.000Z
2020-04-16T13:56:45.000Z
setup.py
sammchardy/python-idex
24cee970172491a7f7d5f52558727a77384cce26
[ "MIT" ]
59
2017-12-10T17:22:48.000Z
2022-02-01T19:37:31.000Z
#!/usr/bin/env python import codecs import os import re import sys from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) def find_packages(): """adapted from IPython's setupbase.find_packages()""" packages = [] for dir, subdirs, files in os.walk('idex'): package = dir.rep...
33.025
104
0.608251
5c4eaadc947b65e4a311d1a59df67482db0242b6
5,564
py
Python
ganslate/utils/summary.py
ibro45/a
a90d92eaf041331cd3397f788cb60884cb0e176b
[ "BSD-3-Clause" ]
17
2021-09-07T15:23:04.000Z
2022-01-28T15:46:54.000Z
ganslate/utils/summary.py
ibro45/a
a90d92eaf041331cd3397f788cb60884cb0e176b
[ "BSD-3-Clause" ]
18
2021-09-08T12:31:39.000Z
2021-12-13T15:26:01.000Z
ganslate/utils/summary.py
ibro45/a
a90d92eaf041331cd3397f788cb60884cb0e176b
[ "BSD-3-Clause" ]
2
2021-11-10T11:23:00.000Z
2022-02-10T07:57:20.000Z
# Taken from https://github.com/sksq96/pytorch-summary/blob/master/torchsummary/torchsummary.py # Edited: # - returns string and doesn't print anything anymore, so that it can be used with `logging` module # - summary_string() -> summary(), removed old summary() # - gan_summary function that outputs summaries of ...
42.473282
103
0.571891
d15cfb55908ce1b4e97403d6d1c56f3db60a2da3
194
py
Python
trufimonitor/dbtemplate/stock.py
trufi-association/trufi-monitor-backend
8974a061debe3582605a6e6ec63e4116fe7ef60b
[ "MIT" ]
null
null
null
trufimonitor/dbtemplate/stock.py
trufi-association/trufi-monitor-backend
8974a061debe3582605a6e6ec63e4116fe7ef60b
[ "MIT" ]
null
null
null
trufimonitor/dbtemplate/stock.py
trufi-association/trufi-monitor-backend
8974a061debe3582605a6e6ec63e4116fe7ef60b
[ "MIT" ]
null
null
null
from ..DatabaseTemplate import strategy table = { "label": ["varchar(50)", ""], "amount": ["int", 0], "value": ["int", 0], "state": ["varchar(50)", ""] } strategy = Strategy.REPLACEORADD
17.636364
39
0.587629
2e283064706e79125f729291246f978923eb27a2
598
py
Python
vst/chinese_ocr.py
ShikamaAppliances501c3/video-subtitle-translator
fc5cf0fb9d6c9a65fd819dbcccd7c9a8a5d9ca0d
[ "MIT" ]
null
null
null
vst/chinese_ocr.py
ShikamaAppliances501c3/video-subtitle-translator
fc5cf0fb9d6c9a65fd819dbcccd7c9a8a5d9ca0d
[ "MIT" ]
null
null
null
vst/chinese_ocr.py
ShikamaAppliances501c3/video-subtitle-translator
fc5cf0fb9d6c9a65fd819dbcccd7c9a8a5d9ca0d
[ "MIT" ]
null
null
null
try: from PIL import Image except ImportError: import Image import pytesseract import cv2 import numpy as np class ChineseOCR: @staticmethod def ocr(path) -> str: image = cv2.imread(path) image = ChineseOCR.netflix_manipulations(image) # cv2.imwrite("ocr_result.png", image) ...
26
65
0.665552
5f65ba4ac5bc35961d2c0bf238f9a2b1de75e9ad
1,163
py
Python
tests/CH4/get_rdf.py
pyflosic/pyeff
4b76fcc4a0bfb25f9f4106567d01b5ea02db6737
[ "Apache-2.0" ]
3
2019-06-24T08:04:25.000Z
2020-05-26T03:45:45.000Z
tests/CH4/get_rdf.py
pyflosic/pyeff
4b76fcc4a0bfb25f9f4106567d01b5ea02db6737
[ "Apache-2.0" ]
null
null
null
tests/CH4/get_rdf.py
pyflosic/pyeff
4b76fcc4a0bfb25f9f4106567d01b5ea02db6737
[ "Apache-2.0" ]
null
null
null
from ase.io import read from ase.ga.utilities import get_rdf,get_nnmat from matplotlib.pyplot import * from ase.atoms import Atoms import numpy as np import glob l = 5.0 nmax = 100 atoms = read(glob.glob('final.xyz')[0]) atoms.set_cell(np.eye(3)*l) print atoms up = Atoms() up.set_cell(atoms.get_cell()) up_target = 'X...
26.431818
73
0.671539
bb19aaa2119f881cde19b98a5630bcdd678d7b87
3,737
py
Python
libs/configs/cfgs_DOTA_v3.py
khanfarhan10/R2CNN_Faster-RCNN_Tensorflow
0bcc4209defefebd7b3644c6f4a0dcaaa6170c3f
[ "MIT" ]
629
2018-05-29T06:33:47.000Z
2022-03-28T09:43:35.000Z
libs/configs/cfgs_DOTA_v3.py
khanfarhan10/R2CNN_Faster-RCNN_Tensorflow
0bcc4209defefebd7b3644c6f4a0dcaaa6170c3f
[ "MIT" ]
118
2018-06-08T02:28:50.000Z
2021-08-23T07:42:01.000Z
libs/configs/cfgs_DOTA_v3.py
khanfarhan10/R2CNN_Faster-RCNN_Tensorflow
0bcc4209defefebd7b3644c6f4a0dcaaa6170c3f
[ "MIT" ]
211
2018-05-31T02:44:34.000Z
2022-03-03T10:48:01.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import os import tensorflow as tf # ------------------------------------------------ VERSION = 'FasterRCNN_20180515_DOTA_v3' NET_NAME = 'resnet_v1_101' ADD_BOX_IN_TENSORBOARD = True # ---------------------------------------- Syst...
31.141667
100
0.678619
3132c5f2785de9dc4a67f2d9a1c808c7850ddc43
537
py
Python
learning_strategies/evolution/abstracts.py
jinPrelude/simple-es
759f3f70e641463a785a7275ba16c9db72fb29bf
[ "Apache-2.0" ]
10
2020-08-16T11:43:23.000Z
2022-01-21T23:21:52.000Z
learning_strategies/evolution/abstracts.py
jinPrelude/simple-es
759f3f70e641463a785a7275ba16c9db72fb29bf
[ "Apache-2.0" ]
2
2021-03-25T09:22:21.000Z
2021-06-24T09:55:28.000Z
learning_strategies/evolution/abstracts.py
jinPrelude/give-life-to-agents
ebf7d89a05a8e820759a0cf80adcc9499c8425d8
[ "Apache-2.0" ]
2
2021-08-10T14:26:55.000Z
2021-09-27T20:57:48.000Z
import os from abc import * class BaseESLoop(metaclass=ABCMeta): @abstractmethod def __init__(self): pass @abstractmethod def run(self): pass class BaseOffspringStrategy(metaclass=ABCMeta): @abstractmethod def __init__(selfm): pass @abstractmethod def _gen_o...
15.342857
47
0.635009
87679e0d442327fe273cfdea93af1b3ef866ba7b
349
py
Python
backend/apps/modellog/urls.py
Huoran559/vue-element-frontend-backend
2ab21792c314692fb9b11c6e5f1e890ffaf5cf3c
[ "MIT" ]
15
2021-01-31T01:45:46.000Z
2022-03-27T00:23:21.000Z
backend/apps/modellog/urls.py
zouv/vue-admin-django
40e91e2ff0781dad89a3f5325514a04816406cfb
[ "MIT" ]
10
2020-06-06T00:18:48.000Z
2022-01-13T01:47:39.000Z
backend/apps/modellog/urls.py
zouv/vue-admin-django
40e91e2ff0781dad89a3f5325514a04816406cfb
[ "MIT" ]
4
2021-07-09T09:45:44.000Z
2022-03-28T06:47:31.000Z
# -*- coding: utf-8 -*- #author:laoseng(QQ:1572665580),feilong(hhr66@qq.com) #create:2018-09 from rest_framework import routers from .views import * router = routers.DefaultRouter() router.register(r'logsentrys', LogsEntryViewSet, base_name='logsentry') router.register(r'models', ContentTypeViewSet, base_name='model'...
26.846154
71
0.770774
5e5abbdcf1d3307a4af5029663fe058a8d3e743a
10,277
py
Python
main.py
zhen8838/ai-matting-tool
8cb08205558ff94c3f78fa115e42b5fe2d02c0a8
[ "MIT" ]
null
null
null
main.py
zhen8838/ai-matting-tool
8cb08205558ff94c3f78fa115e42b5fe2d02c0a8
[ "MIT" ]
null
null
null
main.py
zhen8838/ai-matting-tool
8cb08205558ff94c3f78fa115e42b5fe2d02c0a8
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QApplication, QMainWindow, QFileDialog, QMessageBox from PyQt5.QtGui import QPixmap, QImage from PyQt5.QtCore import Qt, QCoreApplication, QThread, pyqtSignal, QDir from waiting import WaitingDialog from inputcolor import InputColor import sys import os sys.path.insert(0, os.getcwd()) import...
33.045016
104
0.648146
751ede222c60781749575a9ac9a7f01eb036bd34
47,299
py
Python
examples/flax/question-answering/run_qa.py
Ravoxsg/transformers
3212a1d4a6fbded40daad7153f222c91acabe82d
[ "Apache-2.0" ]
31
2022-02-02T13:13:41.000Z
2022-03-29T08:37:20.000Z
examples/flax/question-answering/run_qa.py
Ravoxsg/transformers
3212a1d4a6fbded40daad7153f222c91acabe82d
[ "Apache-2.0" ]
1
2022-02-17T12:40:59.000Z
2022-02-17T12:40:59.000Z
examples/flax/question-answering/run_qa.py
Ravoxsg/transformers
3212a1d4a6fbded40daad7153f222c91acabe82d
[ "Apache-2.0" ]
2
2022-02-07T10:53:33.000Z
2022-02-17T10:03:01.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Team 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-...
45.132634
151
0.661029
02eb8dbd01a211cdc4a7ca0c1b0e62fcd129657f
231
py
Python
validation_tests/analytical_exact/mac_donald_short_channel/produce_results.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
136
2015-05-07T05:47:43.000Z
2022-02-16T03:07:40.000Z
validation_tests/analytical_exact/mac_donald_short_channel/produce_results.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
184
2015-05-03T09:27:54.000Z
2021-12-20T04:22:48.000Z
validation_tests/analytical_exact/mac_donald_short_channel/produce_results.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
70
2015-03-18T07:35:22.000Z
2021-11-01T07:07:29.000Z
#-------------------------------- # import modules #-------------------------------- import anuga from anuga.validation_utilities import produce_report args = anuga.get_args() produce_report('numerical_MacDonald.py', args=args)
21
53
0.575758
c4c45985d6a4e4aa9d0f0cb13d69fde0187b424d
71,767
py
Python
SoftLayer/fixtures/SoftLayer_Product_Package.py
dvzrv/softlayer-python
9a5f6c6981bcc370084537b4d1769383499ce90d
[ "MIT" ]
null
null
null
SoftLayer/fixtures/SoftLayer_Product_Package.py
dvzrv/softlayer-python
9a5f6c6981bcc370084537b4d1769383499ce90d
[ "MIT" ]
null
null
null
SoftLayer/fixtures/SoftLayer_Product_Package.py
dvzrv/softlayer-python
9a5f6c6981bcc370084537b4d1769383499ce90d
[ "MIT" ]
null
null
null
# pylint: skip-file HARDWARE_ITEMS = [ {'attributes': [], 'capacity': '999', 'description': 'Unknown', 'itemCategory': {'categoryCode': 'unknown', 'id': 325}, 'keyName': 'UNKNOWN', 'prices': [{'accountRestrictions': [], 'currentPriceFlag': '', 'hourlyRecurr...
33.0115
106
0.376496
70925828c12988cf7da84052c16ee31871c4d5d7
1,497
py
Python
src/vector/compute/planar/deltaphi.py
ianna/vector
c00b258049c0ea1de46f90311849923b96068a02
[ "BSD-3-Clause" ]
null
null
null
src/vector/compute/planar/deltaphi.py
ianna/vector
c00b258049c0ea1de46f90311849923b96068a02
[ "BSD-3-Clause" ]
null
null
null
src/vector/compute/planar/deltaphi.py
ianna/vector
c00b258049c0ea1de46f90311849923b96068a02
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019-2021, Jonas Eschle, Jim Pivarski, Eduardo Rodrigues, and Henry Schreiner. # # Distributed under the 3-clause BSD license, see accompanying file LICENSE # or https://github.com/scikit-hep/vector for details. import numpy from vector.compute.planar import phi from vector.methods import ( Azimut...
24.540984
94
0.639279