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
394202985194efb35f69326f903d6cf5527c9f48
268
py
Python
jalba_custom/__init__.py
josephalbaph/jalba_custom
932b195a85055aafc7c9b8380796eb9873012dad
[ "MIT" ]
null
null
null
jalba_custom/__init__.py
josephalbaph/jalba_custom
932b195a85055aafc7c9b8380796eb9873012dad
[ "MIT" ]
null
null
null
jalba_custom/__init__.py
josephalbaph/jalba_custom
932b195a85055aafc7c9b8380796eb9873012dad
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from erpnext.accounts.doctype.journal_entry.journal_entry import JournalEntry __version__ = '0.0.1' def set_against_account_mp(self): pass JournalEntry.set_against_account = set_against_account_mp
24.363636
77
0.80597
24bc55859262bec081bf51f3b631b91a30330041
961
py
Python
backend/manage.py
themightymuppet/django_happyfuntime
e9ac551f50f6e5c5de37e4a91241387111778955
[ "MIT" ]
null
null
null
backend/manage.py
themightymuppet/django_happyfuntime
e9ac551f50f6e5c5de37e4a91241387111778955
[ "MIT" ]
3
2021-03-10T18:47:12.000Z
2022-02-19T02:16:53.000Z
backend/manage.py
themightymuppet/django_happyfuntime
e9ac551f50f6e5c5de37e4a91241387111778955
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from decouple import config if __name__ == "__main__": settings_module = config("DJANGO_SETTINGS_MODULE", default=None) if sys.argv[1] == "test": if settings_module: print( "Ignoring config('DJANGO_SETTINGS_MODULE') because it's...
30.03125
85
0.628512
aaef5039772685f432e1ae0647d50ab7fb381e5e
5,267
py
Python
models/progressive_gan.py
mnwauche/fall-2019-research
e251253d640474b4d7c45fd1bfdf076a1d5862c1
[ "BSD-3-Clause" ]
1
2021-06-09T09:25:16.000Z
2021-06-09T09:25:16.000Z
models/progressive_gan.py
mnwauche/fall-2019-research
e251253d640474b4d7c45fd1bfdf076a1d5862c1
[ "BSD-3-Clause" ]
null
null
null
models/progressive_gan.py
mnwauche/fall-2019-research
e251253d640474b4d7c45fd1bfdf076a1d5862c1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import torch.optim as optim from .base_GAN import BaseGAN from .utils.config import BaseConfig from .networks.progressive_conv_net import GNet, DNet class ProgressiveGAN(BaseGAN): r""" Implementation of NVIDIA's progressive GAN. """ ...
36.075342
84
0.587811
c116010779573492cc58c98a46cafca2a301aa81
2,109
py
Python
api/service.py
gmos2104/poke-query
7c44805cdcffc75d4e075c61ece07b92028a1a3f
[ "MIT" ]
null
null
null
api/service.py
gmos2104/poke-query
7c44805cdcffc75d4e075c61ece07b92028a1a3f
[ "MIT" ]
null
null
null
api/service.py
gmos2104/poke-query
7c44805cdcffc75d4e075c61ece07b92028a1a3f
[ "MIT" ]
null
null
null
import json import os import redis import requests from api.constants import POKEAPI_BASE_URL def get_pokemons() -> dict: """Get all pokémon names from PokéAPI service. Will attempt to retrieve from cache first""" cache = redis.Redis(host=os.environ.get("REDIS_HOST", "localhost"), port=6379) if cached_d...
37.660714
97
0.597914
e50451dd0214b871a4e78f75ccc3ed5bf0c25b34
628
py
Python
regtests/asm/asm_hello.py
ahakingdom/Rusthon
5b6b78111b62281cd1381e53362c5d4b520ade30
[ "BSD-3-Clause" ]
622
2015-01-01T14:53:51.000Z
2022-03-27T14:52:25.000Z
regtests/asm/asm_hello.py
ahakingdom/Rusthon
5b6b78111b62281cd1381e53362c5d4b520ade30
[ "BSD-3-Clause" ]
74
2015-01-05T01:24:09.000Z
2021-04-26T00:06:38.000Z
regtests/asm/asm_hello.py
ahakingdom/Rusthon
5b6b78111b62281cd1381e53362c5d4b520ade30
[ "BSD-3-Clause" ]
67
2015-01-18T22:54:54.000Z
2022-03-01T12:54:23.000Z
''' gcc inline assembly ''' #with asm( volatile=True, inputs=(a,b), outputs=(c,d), clobber=("cc", "memory") ): def test_single_input( a : int ) -> int: b = 0 with asm( outputs=b, inputs=a, volatile=True, clobber='%ebx', alignstack=True ): movl %1, %%ebx; movl %%ebx, %0; return b def test_multi_input( a : int, ...
23.259259
82
0.617834
1c8b3acd98ad7122d3e0f77e78686686b420211b
442
py
Python
pyeccodes/defs/grib2/tables/14/4_242_table.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/grib2/tables/14/4_242_table.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/grib2/tables/14/4_242_table.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
def load(h): return ({'abbr': 0, 'code': 0, 'title': 'Reserved'}, {'abbr': 1, 'code': 1, 'title': 'Land use classes according to ESA-GLOBCOVER GCV2009'}, {'abbr': 2, 'code': 2, 'title': 'Land use classes according to European Commission - G...
40.181818
88
0.475113
19a6cc3c645260a7f5b444dfb0e53aac9a234f90
1,130
py
Python
Desenvolvimento Python para Redes e Sistemas Operacionais/Assessment/Q8-4Threads.py
LC-ardovino/INFNET
3c485f122820f549f6a3c315fe09a537411bea7c
[ "MIT" ]
null
null
null
Desenvolvimento Python para Redes e Sistemas Operacionais/Assessment/Q8-4Threads.py
LC-ardovino/INFNET
3c485f122820f549f6a3c315fe09a537411bea7c
[ "MIT" ]
null
null
null
Desenvolvimento Python para Redes e Sistemas Operacionais/Assessment/Q8-4Threads.py
LC-ardovino/INFNET
3c485f122820f549f6a3c315fe09a537411bea7c
[ "MIT" ]
1
2022-03-31T11:47:02.000Z
2022-03-31T11:47:02.000Z
#usando o módulo threading com 4 threads; import queue,threading,random def fatorial(n): fat = n for i in range(n - 1, 1, -1): fat = fat * i return (fat) def fatorialProcesso(vetor,q,start,end): for item in vetor[start:end]: factorial = fatorial(item) q.put(factorial) return def comProcesso...
17.936508
75
0.649558
9fcd021d807c679e4072453287ce3336b3aaeb21
467
py
Python
SATC_exercicios/ex013.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
2
2021-11-13T13:52:56.000Z
2022-03-29T18:10:27.000Z
SATC_exercicios/ex013.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
null
null
null
SATC_exercicios/ex013.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
null
null
null
vetcustos = [] vetprecos = [] for i in range(3): vetcustos.append(float(input('Informe o custo de um produto: '))) vetprecos.append(float(input('Informe o preço da vendo do produto: '))) if vetcustos[i] == vetprecos[i]: print('Não houve lucro e nem prejuiso') elif vetcustos[i] < vetprecos[i]: ...
25.944444
75
0.633833
cb1c7a410abc54cddbcc39987895fbfe9d436d98
1,103
py
Python
Scripts/SaneDocReport/SaneDocReport.py
mincrodo/content
bba0202dac8ff9ef89a3d77b86e8d6d1e9e27ae5
[ "MIT" ]
null
null
null
Scripts/SaneDocReport/SaneDocReport.py
mincrodo/content
bba0202dac8ff9ef89a3d77b86e8d6d1e9e27ae5
[ "MIT" ]
null
null
null
Scripts/SaneDocReport/SaneDocReport.py
mincrodo/content
bba0202dac8ff9ef89a3d77b86e8d6d1e9e27ae5
[ "MIT" ]
null
null
null
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import os import base64 from sane_doc_reports.main import run OUTPUT_FILE_PATH = 'out.docx' try: sane_json_b64 = demisto.args().get('sane_docx_report_base64', '').encode( 'utf-8') orientation = demisto....
32.441176
77
0.662738
959047841487384490cd349f65214c6a0fe92aba
8,714
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/_compute_management_client_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/_compute_management_client_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/_compute_management_client_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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 ...
62.690647
172
0.789419
95cddb46eb3b4c84594887fe96511dcf9c8fd91f
8,319
py
Python
realtime_hand_3d/segmentation/models/dfanet.py
NeelayS/realtime_hand
219c772b9b7df60c390edac7da23f9cdddebca4d
[ "MIT" ]
null
null
null
realtime_hand_3d/segmentation/models/dfanet.py
NeelayS/realtime_hand
219c772b9b7df60c390edac7da23f9cdddebca4d
[ "MIT" ]
null
null
null
realtime_hand_3d/segmentation/models/dfanet.py
NeelayS/realtime_hand
219c772b9b7df60c390edac7da23f9cdddebca4d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from .blocks import ConvBnRelu, SeparableConv2d, dsn from .retrieve import SEG_MODELS_REGISTRY class BlockA(nn.Module): def __init__( self, in_channels, out_channels, stride=1, dilation=1, norm_laye...
31.751908
86
0.567376
b3bafd119f7a48f7a433b77d610dc46d42da371a
38,571
py
Python
jet/compressor.py
wolfv/pyjet
a922d8702496494c118d2c5239401d8170d10cd6
[ "MIT" ]
70
2016-11-06T15:17:22.000Z
2022-03-01T14:50:59.000Z
jet/compressor.py
orestis-z/pyjet
a922d8702496494c118d2c5239401d8170d10cd6
[ "MIT" ]
4
2017-01-27T12:33:14.000Z
2018-04-19T08:50:40.000Z
jet/compressor.py
orestis-z/pyjet
a922d8702496494c118d2c5239401d8170d10cd6
[ "MIT" ]
8
2016-11-08T15:32:54.000Z
2019-08-08T11:54:03.000Z
# This layer translates the OP graph to C++11 import numpy as np import networkx as nx from jet.utils import get_unique_name, beauty, sanitize_name from jet import expander from jet import config from jet import exhaust class_template = """ #define DEBUG {debug} #include <cmath> #include <tuple> #include <vector> #...
36.491012
110
0.525006
69f2548b46ac472d2f8513945f819e413c74197f
1,381
py
Python
riverrun/__main__.py
arthurdarcet/riverrun
0d6ee0b1addc0b37c56c074816944655f949bd7f
[ "MIT" ]
3
2015-01-14T22:16:18.000Z
2022-01-26T02:18:35.000Z
riverrun/__main__.py
arthurdarcet/riverrun
0d6ee0b1addc0b37c56c074816944655f949bd7f
[ "MIT" ]
null
null
null
riverrun/__main__.py
arthurdarcet/riverrun
0d6ee0b1addc0b37c56c074816944655f949bd7f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import sys parser = argparse.ArgumentParser(fromfile_prefix_chars='@', description='Default command: http and watch') parser.add_argument('-c', '--config', action='store', type=argparse.FileType('r'), help="Use this config file on top of the base config", default=None) parser.add...
35.410256
151
0.734251
cdf1f8c8b4f130fa945337c83548d85a7ea37049
1,001
py
Python
bin/final.py
mdubinko/humID
e2acbfa8cc86276cb7672e9a2c16993c6f28c2cf
[ "MIT" ]
1
2020-10-26T23:33:35.000Z
2020-10-26T23:33:35.000Z
bin/final.py
mdubinko/humID
e2acbfa8cc86276cb7672e9a2c16993c6f28c2cf
[ "MIT" ]
null
null
null
bin/final.py
mdubinko/humID
e2acbfa8cc86276cb7672e9a2c16993c6f28c2cf
[ "MIT" ]
null
null
null
import sys from types import SimpleNamespace argc = len(sys.argv) files = [sys.stdin] if argc < 2 else sys.argv[1:] for f in files: # stats accumulation s = SimpleNamespace() s.bestwords = ["" for x in range(2**24)] s.id_min = 9999999999 s.id_max = -1 with open(f) as fp: for line in fp...
30.333333
83
0.538462
9ad22a9a5d442c96395f53917d228487ae0f7327
6,866
py
Python
src/cleanup/chrono_trigger.py
timmahrt/gameDialogCleaner
514e9c6f2e47334a224f8a64bbadd2ed7649be3a
[ "MIT" ]
null
null
null
src/cleanup/chrono_trigger.py
timmahrt/gameDialogCleaner
514e9c6f2e47334a224f8a64bbadd2ed7649be3a
[ "MIT" ]
null
null
null
src/cleanup/chrono_trigger.py
timmahrt/gameDialogCleaner
514e9c6f2e47334a224f8a64bbadd2ed7649be3a
[ "MIT" ]
null
null
null
import io import os from os.path import join import re import utils yearRe = re.compile("[0-9]{3,}") def clean(rootFileName, outputPath): """ Chrono triggers data is split by each location so it is processed a little different. Each section is processed. To avoid too much file fragmentation, ...
27.910569
92
0.563064
bba721daa19d79685ec303f705cd977639625ee0
11,463
py
Python
bot.py
lusifernoob/Google-Translater-
ad50d630c057bab05e3d65a55e0a94bc3a5cce2a
[ "MIT" ]
null
null
null
bot.py
lusifernoob/Google-Translater-
ad50d630c057bab05e3d65a55e0a94bc3a5cce2a
[ "MIT" ]
null
null
null
bot.py
lusifernoob/Google-Translater-
ad50d630c057bab05e3d65a55e0a94bc3a5cce2a
[ "MIT" ]
null
null
null
import os from pyrogram import Client, filters from pyrogram.types import ( InlineKeyboardButton, InlineKeyboardMarkup ) from google_trans_new import google_translator TOKEN = os.environ.get("TOKEN", "") APP_ID = int(os.environ.get("APP_ID", "")) API_HASH = os.environ.get("API_HASH", "") app = Client( ...
41.532609
460
0.63151
64aeb3af5c39ad29af2b38857c8930375ffcbb0c
3,651
py
Python
mmdet/models/roi_heads/mask_heads/coarse_mask_head.py
mrzhuzhe/mmdetection
c04ca2c2a65500bc248a5d2ab6ace5b15f00064d
[ "Apache-2.0" ]
null
null
null
mmdet/models/roi_heads/mask_heads/coarse_mask_head.py
mrzhuzhe/mmdetection
c04ca2c2a65500bc248a5d2ab6ace5b15f00064d
[ "Apache-2.0" ]
null
null
null
mmdet/models/roi_heads/mask_heads/coarse_mask_head.py
mrzhuzhe/mmdetection
c04ca2c2a65500bc248a5d2ab6ace5b15f00064d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.cnn import ConvModule, Linear from mmcv.runner import ModuleList, auto_fp16 from mmdet.models.builder import HEADS from .fcn_mask_head import FCNMaskHead @HEADS.register_module() class CoarseMaskHead(FCNMaskHead): """Coarse mask head used in Poi...
36.148515
80
0.568611
29f04e9506beb22c46d859291188e3568d7a699c
3,511
py
Python
rt-thread/tools/ua.py
POMIN-163/desktop_spirit
c0b9da09942eb5b84ffd7f5ecc10b76af23607d3
[ "MIT" ]
null
null
null
rt-thread/tools/ua.py
POMIN-163/desktop_spirit
c0b9da09942eb5b84ffd7f5ecc10b76af23607d3
[ "MIT" ]
null
null
null
rt-thread/tools/ua.py
POMIN-163/desktop_spirit
c0b9da09942eb5b84ffd7f5ecc10b76af23607d3
[ "MIT" ]
null
null
null
# # File : ua.py # This file is part of RT-Thread RTOS # COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team # # 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 2 o...
34.421569
110
0.546283
b46cbecc163b35ce47e2b8a7ebe7931dbb5c2ab6
875
py
Python
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Perfect_Array/Perfect_Array.py
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Perfect_Array/Perfect_Array.py
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Perfect_Array/Perfect_Array.py
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
''' PERFECT ARRAY An array which is strictly increasing and then constant, and then strictly decreasing is called a perfect array. There should be no variations in between. ''' def perfect(a, num): count = 1 while (count < num and a[count] > a[count - 1]): count = count + 1 while...
23.026316
79
0.572571
76d3b0086d110ae16e92988857e27b4079684f8e
17,508
py
Python
eva_cttv_pipeline/evidence_string_generation/evidence_strings.py
sundarvenkata-EBI/eva-cttv-pipeline
0bcb416919ee29fa40a65426545073900811d4ee
[ "Apache-2.0" ]
null
null
null
eva_cttv_pipeline/evidence_string_generation/evidence_strings.py
sundarvenkata-EBI/eva-cttv-pipeline
0bcb416919ee29fa40a65426545073900811d4ee
[ "Apache-2.0" ]
null
null
null
eva_cttv_pipeline/evidence_string_generation/evidence_strings.py
sundarvenkata-EBI/eva-cttv-pipeline
0bcb416919ee29fa40a65426545073900811d4ee
[ "Apache-2.0" ]
null
null
null
import copy import json import jsonschema from eva_cttv_pipeline.evidence_string_generation import config from eva_cttv_pipeline.evidence_string_generation import utilities CLIN_SIG_TO_ACTIVITY = {'other': 'http://identifiers.org/cttv.activity/unknown', 'unknown': 'http://identifiers.org/ctt...
41.586698
113
0.648161
52ebb51d5c0d7abc2762691b192870aff7662c9b
2,349
py
Python
cmr/theme.py
cloudblue/connect-markdown-renderer
b100493a858b9411b2b0db777d8903edc79f7943
[ "Apache-2.0" ]
3
2021-03-31T13:45:39.000Z
2021-06-14T17:27:59.000Z
cmr/theme.py
cloudblue/connect-markdown-renderer
b100493a858b9411b2b0db777d8903edc79f7943
[ "Apache-2.0" ]
2
2020-11-03T08:40:22.000Z
2020-11-03T11:54:29.000Z
cmr/theme.py
cloudblue/connect-markdown-renderer
b100493a858b9411b2b0db777d8903edc79f7943
[ "Apache-2.0" ]
null
null
null
DEFAULT_THEME = { 'headings': { 1: { 'fg': 'aquamarine', }, 2: { 'fg': 'turquoise', }, 3: { 'fg': 'mediumturquoise', }, 4: { 'fg': 'darkturquoise', }, 5: { 'fg': 'lightseagreen', ...
20.25
37
0.329502
d12dc6f7bc491a5c9b508bf7e497967ae8794bd2
3,270
py
Python
a3c/models.py
albararamli/indigo
9597701c76bab87ba26eae9e5e7775f87c968637
[ "Apache-2.0" ]
1
2019-10-18T22:56:01.000Z
2019-10-18T22:56:01.000Z
a3c/models.py
albararamli/indigo
9597701c76bab87ba26eae9e5e7775f87c968637
[ "Apache-2.0" ]
null
null
null
a3c/models.py
albararamli/indigo
9597701c76bab87ba26eae9e5e7775f87c968637
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow.contrib import layers, rnn class ActorCriticNetwork(object): def __init__(self, state_dim, action_cnt): self.states = tf.placeholder(tf.float32, [None, state_dim]) actor_h1 = layers.relu(self.states, 8) actor_h2 = layers.relu(acto...
38.928571
79
0.643425
90c5c0dd832358f374154c4aed2803a60ecddf37
4,078
py
Python
pi/settings.py
brunocorbetta/projeto_integrador_back-end
55e6d607eb3ae4dbddea6a178f3cd3a7601ac4f7
[ "MIT" ]
null
null
null
pi/settings.py
brunocorbetta/projeto_integrador_back-end
55e6d607eb3ae4dbddea6a178f3cd3a7601ac4f7
[ "MIT" ]
null
null
null
pi/settings.py
brunocorbetta/projeto_integrador_back-end
55e6d607eb3ae4dbddea6a178f3cd3a7601ac4f7
[ "MIT" ]
null
null
null
""" Django settings for pi project. Generated by 'django-admin startproject' using Django 3.0.8. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Bui...
25.974522
91
0.682933
2586b7ffeca3a94a155e34d58068ec4824a48622
1,441
py
Python
app.py
sksum/mossCheck
13f1d1bd0c30a50fc940f7b44b7581595bb5de6c
[ "Apache-2.0" ]
null
null
null
app.py
sksum/mossCheck
13f1d1bd0c30a50fc940f7b44b7581595bb5de6c
[ "Apache-2.0" ]
3
2020-10-07T11:38:06.000Z
2020-10-08T20:15:25.000Z
app.py
sksum/mossCheck
13f1d1bd0c30a50fc940f7b44b7581595bb5de6c
[ "Apache-2.0" ]
1
2020-10-08T19:46:52.000Z
2020-10-08T19:46:52.000Z
from flask import Flask, send_from_directory, request,make_response, jsonify import random import mosspy import os import json app = Flask(__name__) # Path for our main Svelte page @app.route("/") def base(): return send_from_directory('./client/public', 'index.html') # Path for all the static files (compiled JS...
25.732143
76
0.594726
1bd0868692a5fd8ca525cc27fa532d991b131e9d
11,665
py
Python
kaffe/graph.py
tramper2/SIGGRAPH18SSS
9bf22fa242044edfcf11cc4a58b93c63fcc71ff0
[ "MIT" ]
390
2018-07-30T08:41:49.000Z
2022-03-29T15:44:13.000Z
kaffe/graph.py
tramper2/SIGGRAPH18SSS
9bf22fa242044edfcf11cc4a58b93c63fcc71ff0
[ "MIT" ]
20
2018-08-15T14:51:29.000Z
2020-04-21T09:49:49.000Z
kaffe/graph.py
tramper2/SIGGRAPH18SSS
9bf22fa242044edfcf11cc4a58b93c63fcc71ff0
[ "MIT" ]
109
2018-08-04T05:58:23.000Z
2021-10-17T12:02:29.000Z
from google.protobuf import text_format from .caffe import get_caffe_resolver from .errors import KaffeError, print_stderr from .layers import LayerAdapter, LayerType, NodeKind, NodeDispatch from .shapes import TensorShape class Node(object): def __init__(self, name, kind, layer=None): self.name = name ...
38.49835
99
0.589713
5ceb7ee17d30a5662229e4a27402c38d5aaec25f
24,001
py
Python
murano-7.0.0/murano/tests/unit/api/v1/cloudfoundry/test_cfapi.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
murano-7.0.0/murano/tests/unit/api/v1/cloudfoundry/test_cfapi.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
murano-7.0.0/murano/tests/unit/api/v1/cloudfoundry/test_cfapi.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright (c) 2015 Mirantis, Inc. # Copyright 2017 AT&T Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
43.957875
79
0.622141
555683bc0b6413f1b70e368b8b774fde6727aef6
8,355
py
Python
pandaserver/dataservice/Setupper.py
rybkine/panda-server
30fdeaa658a38fe2049849446c300c1e1f5b5231
[ "Apache-2.0" ]
1
2019-08-30T13:47:51.000Z
2019-08-30T13:47:51.000Z
pandaserver/dataservice/Setupper.py
mkycanopus/panda-server
0f7c36800c033fada8bbde53dceaab98770b6df2
[ "Apache-2.0" ]
null
null
null
pandaserver/dataservice/Setupper.py
mkycanopus/panda-server
0f7c36800c033fada8bbde53dceaab98770b6df2
[ "Apache-2.0" ]
null
null
null
''' setup dataset ''' import re import sys import datetime import commands import threading from config import panda_config from pandalogger.PandaLogger import PandaLogger from pandalogger.LogWrapper import LogWrapper from taskbuffer import EventServiceUtils # logger _logger = PandaLogger().getLogger('Setupper') p...
42.19697
121
0.527229
d15bdcb81c63add06dffb241a2b47184dc8b56aa
9,897
py
Python
dvrl/dvrl_metrics.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
dvrl/dvrl_metrics.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
dvrl/dvrl_metrics.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
32.133117
79
0.661413
575fb7dca28129b6bb31cc51f33e135f164259dd
43,556
py
Python
addons/SWFUpload.py
certik/pyjamas
5bb72e63e50f09743ac986f4c9690ba50c499ba9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-09-19T09:14:16.000Z
2018-09-19T09:14:16.000Z
addons/SWFUpload.py
emk/pyjamas
d7633919d1ec9cd4a36675e356c7e5de71ac2a67
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
addons/SWFUpload.py
emk/pyjamas
d7633919d1ec9cd4a36675e356c7e5de71ac2a67
[ "ECL-2.0", "Apache-2.0" ]
1
2019-08-13T20:32:25.000Z
2019-08-13T20:32:25.000Z
""" API for SWFUpload http://swfupload.org @license: Apache License Version 2.0 @copyright: 2009 Tobias Weber @author: Tobias Weber @contact: tobi-weber@gmx.de """ from pyjamas.ui.FlashPanel import FlashPanel import DeferredHandler from pyjamas.Timer import Timer from pyjamas import DOM from urllib import quote impo...
36.266445
137
0.61732
5c9e8b76a27bad348fc05fd57f16be62ccd93df0
1,535
py
Python
douyinspider/person/favorite.py
MisterZhouZhou/pythonThreeSpider
0e120350402f690158c89b7431f243cb462ae12f
[ "Apache-2.0" ]
3
2019-11-05T01:00:05.000Z
2021-03-16T03:56:46.000Z
douyinspider/person/favorite.py
bingwin/pythonThreeSpider
0e120350402f690158c89b7431f243cb462ae12f
[ "Apache-2.0" ]
null
null
null
douyinspider/person/favorite.py
bingwin/pythonThreeSpider
0e120350402f690158c89b7431f243cb462ae12f
[ "Apache-2.0" ]
1
2020-05-16T12:45:36.000Z
2020-05-16T12:45:36.000Z
from douyinspider.utils import fetch from douyinspider.url.urls import URL from douyinspider.config import common_headers from douyinspider.utils.tranform import data_to_video import requests import re # 获取dytk及参数 def getParams(user_id): url="https://www.iesdouyin.com/share/user/{}".format(user_id) # 获得dytk ...
30.098039
95
0.642997
aa19767c1d676decca1daf34f5e73a1c39bb22e0
147
py
Python
reddit2telegram/channels/r_comedyheaven/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
187
2016-09-20T09:15:54.000Z
2022-03-29T12:22:33.000Z
reddit2telegram/channels/r_comedyheaven/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
84
2016-09-22T14:25:07.000Z
2022-03-19T01:26:17.000Z
reddit2telegram/channels/r_comedyheaven/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
172
2016-09-21T15:39:39.000Z
2022-03-16T15:15:58.000Z
#encoding:utf-8 subreddit = 'comedyheaven' t_channel = '@r_comedyheaven' def send_post(submission, r2t): return r2t.send_simple(submission)
16.333333
38
0.755102
b8fc8233bb0a07bca7d50d49cd74ea61c2d48606
5,930
py
Python
docs/source/conf.py
sergivalverde/torchio
45452fece3921a1e3643353f0bdeaa6637ed3707
[ "MIT" ]
null
null
null
docs/source/conf.py
sergivalverde/torchio
45452fece3921a1e3643353f0bdeaa6637ed3707
[ "MIT" ]
null
null
null
docs/source/conf.py
sergivalverde/torchio
45452fece3921a1e3643353f0bdeaa6637ed3707
[ "MIT" ]
1
2020-10-16T02:35:05.000Z
2020-10-16T02:35:05.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
30.101523
158
0.652951
b49aaa3a61f3d119a02b00cedc1747c42f5db322
2,233
py
Python
lte/gateway/python/integ_tests/s1aptests/test_sctp_abort_after_auth_req.py
saurabhsoni88/magma
4236c9d8edb7bd203707ff7e861b1f7c12fb84c7
[ "BSD-3-Clause" ]
2
2020-12-09T11:42:30.000Z
2021-09-26T03:28:33.000Z
lte/gateway/python/integ_tests/s1aptests/test_sctp_abort_after_auth_req.py
saurabhsoni88/magma
4236c9d8edb7bd203707ff7e861b1f7c12fb84c7
[ "BSD-3-Clause" ]
151
2020-09-03T20:44:13.000Z
2022-03-31T20:28:52.000Z
lte/gateway/python/integ_tests/s1aptests/test_sctp_abort_after_auth_req.py
kkahrs/magma
73e666627dc28e0c492feab7321bb7d6dd433b09
[ "BSD-3-Clause" ]
2
2021-05-27T18:15:16.000Z
2021-05-27T18:41:39.000Z
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
31.9
77
0.684729
d5b9b2b266ea1ab9134d8ef4baac539dbfb373c0
430
py
Python
plotly/validators/scattermapbox/_connectgaps.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/scattermapbox/_connectgaps.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/scattermapbox/_connectgaps.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name='connectgaps', parent_name='scattermapbox', **kwargs ): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, p...
26.875
78
0.64186
2bb0e280ec76855c1f31ea8435f7a89931c064f6
17,319
py
Python
src/testers/unittests/test_ast_simplification.py
XVilka/Triton
a6645a1d0e08b27b6698be7c2c0896d3367fd0b4
[ "Apache-2.0" ]
2
2021-01-29T09:26:22.000Z
2021-04-23T16:28:44.000Z
src/testers/unittests/test_ast_simplification.py
XVilka/Triton
a6645a1d0e08b27b6698be7c2c0896d3367fd0b4
[ "Apache-2.0" ]
null
null
null
src/testers/unittests/test_ast_simplification.py
XVilka/Triton
a6645a1d0e08b27b6698be7c2c0896d3367fd0b4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 """Testing AST simplification.""" import unittest from triton import * class TestAstSimplification1(unittest.TestCase): """Testing AST simplification.""" def setUp(self): self.ctx = TritonContext() self.ctx.setArchitecture(ARCH.X86_64) self.ctx...
32.863378
94
0.56054
39780bbfd5e4050314206349971dfa1523177e62
5,158
py
Python
norvig.py
imsahil007/SudokuSolver
4da6a5b96a2f161cbd38219a1b7e8b35314a2fa5
[ "MIT" ]
null
null
null
norvig.py
imsahil007/SudokuSolver
4da6a5b96a2f161cbd38219a1b7e8b35314a2fa5
[ "MIT" ]
null
null
null
norvig.py
imsahil007/SudokuSolver
4da6a5b96a2f161cbd38219a1b7e8b35314a2fa5
[ "MIT" ]
null
null
null
# SUDOKU SOLVING ALGORITHM BY PETER NORVIG import numpy as np from tensorflow.keras.models import load_model model = load_model('/home/sahil/SudokuSolver/model/best_accuracy_model') def cross(A, B): "Cross product of elements in A and elements in B." return [a+b for a in A for b in B] digits = '12345678...
38.492537
233
0.563784
679d3753e234abdd98518ea54e648a996f412bcb
2,275
py
Python
extra/xros_over/xros_over/xros_over_log.py
hankei6km/xrosfs
17d9db92345d53198eb6a50d8a826557e41f293f
[ "MIT" ]
1
2021-07-09T16:56:52.000Z
2021-07-09T16:56:52.000Z
extra/xros_over/xros_over/xros_over_log.py
hankei6km/xrosfs
17d9db92345d53198eb6a50d8a826557e41f293f
[ "MIT" ]
null
null
null
extra/xros_over/xros_over/xros_over_log.py
hankei6km/xrosfs
17d9db92345d53198eb6a50d8a826557e41f293f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2018 hankei6km # Licensed under the MIT License. See LICENSE.txt in the project root. import sys import argparse def init_tail_loggers(processnames): from logging import getLogger, StreamHandler, Formatter, INFO ret = {} ch = StreamHandler() ch.setLevel(INFO...
27.409639
75
0.617143
0f8691885ae3be1c6074aa537dd7cb620f003543
7,191
py
Python
tayph/plotting.py
bmorris3/tayph
4a3c512ce3c46c958dd1d0e1f9ee869fc124b543
[ "BSD-3-Clause" ]
1
2020-12-30T08:46:49.000Z
2020-12-30T08:46:49.000Z
tayph/plotting.py
bmorris3/tayph
4a3c512ce3c46c958dd1d0e1f9ee869fc124b543
[ "BSD-3-Clause" ]
null
null
null
tayph/plotting.py
bmorris3/tayph
4a3c512ce3c46c958dd1d0e1f9ee869fc124b543
[ "BSD-3-Clause" ]
null
null
null
__all__ = [ "plotting_scales_2D", "zoom_factory", "adjust_title", "interactive_legend" ] def plotting_scales_2D(rv,y,ccf,xrange,yrange,Nxticks=10.0,Nyticks=10.0,nsigma=3.0): """ This is a primer for plot_ccf, which defines the plotting ranges and colour scale of a 2D CCF. It can probabl...
35.955
152
0.631345
6d994c0f9bb600ec71b27b3ffc1f8ec502c8f379
1,385
py
Python
examples/pyplot/whiskers.py
hadivafaii/vedo
15f9adbd36d25c0212cbd4eb0c15af54c19f3819
[ "CC0-1.0" ]
836
2020-06-14T02:38:12.000Z
2022-03-31T15:39:50.000Z
examples/pyplot/whiskers.py
hadivafaii/vedo
15f9adbd36d25c0212cbd4eb0c15af54c19f3819
[ "CC0-1.0" ]
418
2020-06-14T10:51:32.000Z
2022-03-31T23:23:14.000Z
examples/pyplot/whiskers.py
hadivafaii/vedo
15f9adbd36d25c0212cbd4eb0c15af54c19f3819
[ "CC0-1.0" ]
136
2020-06-14T02:26:41.000Z
2022-03-31T12:47:18.000Z
"""Whisker plot with quantiles indication (horizontal line shows the mean value)""" from vedo import Axes, Brace, Line, Ribbon, show from vedo.pyplot import whisker import numpy as np # create 5 whisker bars with some random data ws = [] for i in range(5): xval = i*2 # position along x axis data = xval/4 + np....
32.209302
65
0.563899
414fcc53341ef3bb41447bf6f747db58f3b5caa6
9,260
py
Python
src/route/indonesia.py
danztensai/covid-19-api
411bf2fd8f71cb60627bc8f9f370ecfc195b75b8
[ "MIT" ]
null
null
null
src/route/indonesia.py
danztensai/covid-19-api
411bf2fd8f71cb60627bc8f9f370ecfc195b75b8
[ "MIT" ]
null
null
null
src/route/indonesia.py
danztensai/covid-19-api
411bf2fd8f71cb60627bc8f9f370ecfc195b75b8
[ "MIT" ]
null
null
null
import requests from flask import Blueprint, jsonify from datetime import datetime, timedelta from dateutil import parser from src.cache import cache from src.db import session from src.limit import limiter from src.models import Status from src.helper import ( is_empty, is_bot, is_not_bot, TODAY_STR, TODAY, Y...
33.189964
105
0.564687
70a32baf0f02a92988bd1540b4f41c1feadf0948
1,141
py
Python
chapter_14/cifar10_cnn_animal_vehicles_real_labels.py
haloway13/PracticalDeepLearningPython
c3760b17945c9389421c2970a3d16c6528fb7af6
[ "MIT" ]
44
2021-02-25T00:52:04.000Z
2022-03-16T02:04:50.000Z
chapter_14/cifar10_cnn_animal_vehicles_real_labels.py
rkneusel9/PracticalDeepLearningWithPython
561004e76b3e0828a59952874443384c31b6d84e
[ "MIT" ]
null
null
null
chapter_14/cifar10_cnn_animal_vehicles_real_labels.py
rkneusel9/PracticalDeepLearningWithPython
561004e76b3e0828a59952874443384c31b6d84e
[ "MIT" ]
18
2021-03-18T11:22:18.000Z
2022-03-08T21:10:42.000Z
# # file: cifar10_cnn_animal_vehicles_real_labels.py # # Report on animal vs vehicles predictions and actual # label of errors. # # RTK, 05-Nov-2019 # Last update: 05-Nov-2019 # ################################################################ import numpy as np from keras.models import load_model x_test = np.l...
29.25641
67
0.621385
87bb83d0daf873008030672c11b84980a807a93d
586
py
Python
ga_sim/__init__.py
linea-it/ga_sim
769adab09217e05215c081ec254cd46ee53021fa
[ "MIT" ]
null
null
null
ga_sim/__init__.py
linea-it/ga_sim
769adab09217e05215c081ec254cd46ee53021fa
[ "MIT" ]
2
2022-01-26T13:45:15.000Z
2022-02-08T20:11:09.000Z
ga_sim/__init__.py
linea-it/gawa_simulations
769adab09217e05215c081ec254cd46ee53021fa
[ "MIT" ]
null
null
null
from ga_sim.ga_sim import ( dist_ang, get_av, make_footprint, d_star_real_cat, IMF_, apply_err, faker_bin, unc, faker, join_cat, snr_estimate, write_sim_clus_features, SplitFtpHPX, radec2GCdist, remove_close_stars, download_iso, read_cat, gen_clus_...
16.742857
28
0.667235
b2b5e3139f706bb3da5159c95b55fe4f48614835
90,691
py
Python
src/reservations/azext_reservations/vendored_sdks/quota/models/_models.py
rahuls-microsoft/azure-cli-extensions
815a8bcf3d025af1c191498ad29456006fc30e14
[ "MIT" ]
null
null
null
src/reservations/azext_reservations/vendored_sdks/quota/models/_models.py
rahuls-microsoft/azure-cli-extensions
815a8bcf3d025af1c191498ad29456006fc30e14
[ "MIT" ]
null
null
null
src/reservations/azext_reservations/vendored_sdks/quota/models/_models.py
rahuls-microsoft/azure-cli-extensions
815a8bcf3d025af1c191498ad29456006fc30e14
[ "MIT" ]
null
null
null
# 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 ...
37.756453
159
0.664542
db71f6b76258b6a62717d1959ef43397eeb056d8
2,238
py
Python
tests/functional/test_ec2.py
vemel/boto3
170ecc64997b1fe28fefd54010d9439dc620fbd4
[ "Apache-2.0" ]
1
2021-02-16T10:01:25.000Z
2021-02-16T10:01:25.000Z
tests/functional/test_ec2.py
vemel/boto3
170ecc64997b1fe28fefd54010d9439dc620fbd4
[ "Apache-2.0" ]
null
null
null
tests/functional/test_ec2.py
vemel/boto3
170ecc64997b1fe28fefd54010d9439dc620fbd4
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
37.932203
98
0.686774
872cf9be8d692fbddcca1e76e68f8800472a26ee
7,946
py
Python
gitman/git.py
mrpossoms/gitman
f23a0e51631963f7dc5d51d8e9df790a84626803
[ "MIT" ]
null
null
null
gitman/git.py
mrpossoms/gitman
f23a0e51631963f7dc5d51d8e9df790a84626803
[ "MIT" ]
null
null
null
gitman/git.py
mrpossoms/gitman
f23a0e51631963f7dc5d51d8e9df790a84626803
[ "MIT" ]
null
null
null
"""Utilities to call Git commands.""" import os import re import shutil from contextlib import suppress import log from . import common, settings from .exceptions import ShellError from .shell import call, pwd def git(*args, **kwargs): return call('git', *args, **kwargs) def gitsvn(*args, **kwargs): retu...
28.480287
84
0.593129
ff55863f8b17503ac03a73c3499c95f3694ce7a3
15,033
py
Python
mslib/mscolab/_tests/test_file_manager.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
33
2020-12-04T04:29:28.000Z
2022-03-05T17:11:49.000Z
mslib/mscolab/_tests/test_file_manager.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
614
2020-12-06T16:54:44.000Z
2022-03-31T07:41:02.000Z
mslib/mscolab/_tests/test_file_manager.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
51
2020-12-04T15:10:46.000Z
2022-03-20T02:02:11.000Z
# -*- coding: utf-8 -*- """ mslib.mscolab._tests.test_file_manager ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tests for file_manager functionalities This file is part of mss. :copyright: Copyright 2020 Reimar Bauer :copyright: Copyright 2020-2021 by the mss team, see AUTHORS. :license: APACHE-...
49.778146
117
0.64538
7f655c7538b97dc6156b9b32962cd567e7de6223
2,465
py
Python
kitti_eval/pose_evaluation_utils.py
tonglizi/SfmLearner-Pytorch-master_new
b4315b75d47f0bb3662adf50c8db12a82f082675
[ "MIT" ]
null
null
null
kitti_eval/pose_evaluation_utils.py
tonglizi/SfmLearner-Pytorch-master_new
b4315b75d47f0bb3662adf50c8db12a82f082675
[ "MIT" ]
null
null
null
kitti_eval/pose_evaluation_utils.py
tonglizi/SfmLearner-Pytorch-master_new
b4315b75d47f0bb3662adf50c8db12a82f082675
[ "MIT" ]
1
2021-03-29T07:51:03.000Z
2021-03-29T07:51:03.000Z
# Mostly based on the code written by Clement Godard: # https://github.com/mrharicot/monodepth/blob/master/utils/evaluation_utils.py import numpy as np # import pandas as pd from path import Path from PIL import Image from tqdm import tqdm class test_framework_KITTI(object): def __init__(self, root, seq...
41.083333
117
0.634483
99abe7216dfaaf8bad10db7f5677ed9d884fbe89
10,449
py
Python
utils.py
bilibilibohe/ku
c7c6c8e85fddf5d0c9856edb3519374643772bbc
[ "MIT" ]
2
2019-11-18T07:54:17.000Z
2020-04-15T03:24:52.000Z
utils.py
zhaoqq4/bilibili-live-tools
b61c3ccf20c7bf5cae9e705258651e78ed4886d0
[ "MIT" ]
null
null
null
utils.py
zhaoqq4/bilibili-live-tools
b61c3ccf20c7bf5cae9e705258651e78ed4886d0
[ "MIT" ]
1
2019-04-24T14:33:49.000Z
2019-04-24T14:33:49.000Z
from bilibili import bilibili from printer import Printer from connect import connect import time import random import re import datetime def adjust_for_chinese(str): SPACE = '\N{IDEOGRAPHIC SPACE}' EXCLA = '\N{FULLWIDTH EXCLAMATION MARK}' TILDE = '\N{FULLWIDTH TILDE}' # strings of ASCII and full-wid...
38.843866
119
0.564934
c7ba60190b4d2d678af6a697158b742b030ae94c
2,987
py
Python
src/api/pdi/application/connection/services/ConnectionDatabaseService.py
ahmetcagriakca/pythondataintegrator
079b968d6c893008f02c88dbe34909a228ac1c7b
[ "MIT" ]
1
2020-12-18T21:37:28.000Z
2020-12-18T21:37:28.000Z
src/api/pdi/application/connection/services/ConnectionDatabaseService.py
ahmetcagriakca/pythondataintegrator
079b968d6c893008f02c88dbe34909a228ac1c7b
[ "MIT" ]
null
null
null
src/api/pdi/application/connection/services/ConnectionDatabaseService.py
ahmetcagriakca/pythondataintegrator
079b968d6c893008f02c88dbe34909a228ac1c7b
[ "MIT" ]
1
2020-12-18T21:37:31.000Z
2020-12-18T21:37:31.000Z
from injector import inject from pdip.data import RepositoryProvider from pdip.dependency import IScoped from pdip.exceptions import OperationalException from pdi.application.connection.services.ConnectorTypeService import ConnectorTypeService from pdi.domain.connection.Connection import Connection from pdi.domain.con...
45.257576
115
0.692333
83e659141f96c4c8ef85cd5074fb39d1789a5c70
2,756
py
Python
practice/chess-board-modeling.py
valeriybercha/automate-the-boring-stuff
dbd66f9640596d975be4bd808dc6fa22e47ec407
[ "MIT" ]
1
2022-02-20T14:02:37.000Z
2022-02-20T14:02:37.000Z
practice/chess-board-modeling.py
valeriybercha/automate-the-boring-stuff
dbd66f9640596d975be4bd808dc6fa22e47ec407
[ "MIT" ]
null
null
null
practice/chess-board-modeling.py
valeriybercha/automate-the-boring-stuff
dbd66f9640596d975be4bd808dc6fa22e47ec407
[ "MIT" ]
null
null
null
# Modeling a chess game board import pprint def chess_board_modeling(): # White player board board_white = { "wrook_one": "a8", "wknight_one": "b8", "wbishop_one": "c8", "wqueen": "d8", "wking": "e8", "wbishop_two": "f8", "wknight_2": "g8", ...
29.319149
83
0.476778
86e8bf2dbbae050b91891412426db3e0048cb44f
850
py
Python
_1327/documents/migrations/0009_auto_20150509_1711.py
Nef10/1327
71fb83a3c12ba24a7638acebeeffed80825e0101
[ "MIT" ]
null
null
null
_1327/documents/migrations/0009_auto_20150509_1711.py
Nef10/1327
71fb83a3c12ba24a7638acebeeffed80825e0101
[ "MIT" ]
null
null
null
_1327/documents/migrations/0009_auto_20150509_1711.py
Nef10/1327
71fb83a3c12ba24a7638acebeeffed80825e0101
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.utils.timezone import utc import datetime class Migration(migrations.Migration): dependencies = [ ('documents', '0008_merge'), ] operations = [ migrations.AddField( ...
29.310345
146
0.636471
f68f0f1383f53dce8732f26ddd027c3648a4dec5
3,350
py
Python
dashboard/views.py
arjenpoppe/istimewa-bvp
d925bd475967e60fc7e80de8f2225c5ed85726fb
[ "MIT" ]
null
null
null
dashboard/views.py
arjenpoppe/istimewa-bvp
d925bd475967e60fc7e80de8f2225c5ed85726fb
[ "MIT" ]
null
null
null
dashboard/views.py
arjenpoppe/istimewa-bvp
d925bd475967e60fc7e80de8f2225c5ed85726fb
[ "MIT" ]
null
null
null
from django.contrib.admin.utils import unquote from django.contrib.auth.decorators import permission_required, login_required from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse from data.helpers.excel import prestatiemeting_report from data.models.prestatiemeting import Prestat...
38.068182
110
0.693731
18805d6898025f6a7c086311913a4ff2aa968761
119
py
Python
form15_fileupload_secondmethod/blog/admin.py
ysh329/django-test
8b2c75b5a02257d464de2b6cd6cdb8f12dcda630
[ "Apache-2.0" ]
null
null
null
form15_fileupload_secondmethod/blog/admin.py
ysh329/django-test
8b2c75b5a02257d464de2b6cd6cdb8f12dcda630
[ "Apache-2.0" ]
null
null
null
form15_fileupload_secondmethod/blog/admin.py
ysh329/django-test
8b2c75b5a02257d464de2b6cd6cdb8f12dcda630
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from blog.models import User # Register your models here. admin.site.register(User)
17
32
0.798319
6c5e95ce112c9e410c87f46a84a2a735c4502e85
1,159
py
Python
diofant/matrices/__init__.py
mmsbrggr/diofant
a072375094707710d5f91238180920a85e49772c
[ "BSD-3-Clause" ]
null
null
null
diofant/matrices/__init__.py
mmsbrggr/diofant
a072375094707710d5f91238180920a85e49772c
[ "BSD-3-Clause" ]
null
null
null
diofant/matrices/__init__.py
mmsbrggr/diofant
a072375094707710d5f91238180920a85e49772c
[ "BSD-3-Clause" ]
null
null
null
"""A module that handles matrices. Includes functions for fast creating matrices like zero, one/eye, random matrix, etc. """ from .dense import (GramSchmidt, MutableDenseMatrix, MutableMatrix, casoratian, diag, eye, hessian, jordan_cell, list2numpy, matrix2numpy, matrix_multiply...
48.291667
79
0.658326
7384314da34e493de74ceaf527077d090fad5313
6,298
py
Python
src/seedsigner/views/old/io_test_view.py
Bucherbp/seedsigner-0.5.0-pre2
7a8ae75d95e807ea707d9090156e0bede8cf86ca
[ "MIT" ]
null
null
null
src/seedsigner/views/old/io_test_view.py
Bucherbp/seedsigner-0.5.0-pre2
7a8ae75d95e807ea707d9090156e0bede8cf86ca
[ "MIT" ]
null
null
null
src/seedsigner/views/old/io_test_view.py
Bucherbp/seedsigner-0.5.0-pre2
7a8ae75d95e807ea707d9090156e0bede8cf86ca
[ "MIT" ]
null
null
null
# External Dependencies from threading import Thread from pyzbar import pyzbar from pyzbar.pyzbar import ZBarSymbol import time # Internal file class dependencies from . import View from seedsigner.helpers import B class IOTestView(View): def __init__(self) -> None: View.__init__(self) self.redra...
41.708609
134
0.586694
de8e45a55b0dc3fdb4afb21a066ad54cd5fb11f4
1,184
py
Python
models/eval_metrics.py
Jerrypiglet/Total3DUnderstanding
655d00a988c839af3b73f8ab890c3f70c1500147
[ "MIT" ]
288
2020-06-27T16:13:35.000Z
2022-03-31T12:47:42.000Z
models/eval_metrics.py
Jerrypiglet/Total3DUnderstanding
655d00a988c839af3b73f8ab890c3f70c1500147
[ "MIT" ]
38
2020-07-03T09:19:24.000Z
2022-03-17T12:32:56.000Z
models/eval_metrics.py
Jerrypiglet/Total3DUnderstanding
655d00a988c839af3b73f8ab890c3f70c1500147
[ "MIT" ]
40
2020-06-28T03:21:01.000Z
2022-03-29T10:17:20.000Z
# Evaluation metrics # author: ynie # date: May, 2020 from shapely.geometry.polygon import Polygon def get_iou_cuboid(cu1, cu2): """ Calculate the Intersection over Union (IoU) of two 3D cuboid. Parameters ---------- cu1 : numpy array, 8x3 cu2 : numpy array, 8x3 R...
29.6
105
0.559966
a4bcc9164e6d3ba4743f75d21350815d0a3eabc0
27,144
py
Python
osf_tests/test_registrations.py
yuanyuan-deng/RDM-osf.io
e1c54e97c898d26406d71129db7e4baf82802224
[ "Apache-2.0" ]
null
null
null
osf_tests/test_registrations.py
yuanyuan-deng/RDM-osf.io
e1c54e97c898d26406d71129db7e4baf82802224
[ "Apache-2.0" ]
2
2018-06-05T07:51:29.000Z
2019-01-21T06:14:52.000Z
osf_tests/test_registrations.py
yuanyuan-deng/RDM-osf.io
e1c54e97c898d26406d71129db7e4baf82802224
[ "Apache-2.0" ]
null
null
null
import mock import pytest import datetime from addons.wiki.models import WikiVersion from django.core.exceptions import ValidationError from django.utils import timezone from framework.auth.core import Auth from framework.exceptions import PermissionsError from osf.models import Node, Registration, Sanction, Registrat...
40.272997
175
0.691571
954166108b53723e051551fd55b95853cecfe4df
300
py
Python
tests/test_split_every.py
yuyu2172/seqtk
e77dfd3f033e97189701e6a5378c0c3e6505ac88
[ "MIT" ]
2
2021-11-25T01:46:31.000Z
2021-12-07T00:59:45.000Z
tests/test_split_every.py
yuyu2172/seqtk
e77dfd3f033e97189701e6a5378c0c3e6505ac88
[ "MIT" ]
4
2021-04-30T04:28:04.000Z
2021-11-29T04:09:30.000Z
tests/test_split_every.py
yuyu2172/seqtk
e77dfd3f033e97189701e6a5378c0c3e6505ac88
[ "MIT" ]
null
null
null
import seqtk from .common import CustomSequence def test_split_every() -> None: seq = CustomSequence() assert len(seq) == 5 new_seq = seqtk.split_every(2, seq) assert len(new_seq) == 3 assert len(new_seq[0]) == 2 assert len(new_seq[1]) == 2 assert len(new_seq[2]) == 1
21.428571
39
0.64
044f8ddd750645444cb3d2aa5d9edd2a9eb168ca
5,228
py
Python
django_spanner/base.py
MShaffar19/python-spanner-django
62c22b113b470776cddacbab92c4428c6581c551
[ "BSD-3-Clause" ]
1
2020-12-01T14:30:04.000Z
2020-12-01T14:30:04.000Z
django_spanner/base.py
prakhargurunani/python-spanner-django
818324708e9ca46fbd80c47745bdf38e8a1a069c
[ "BSD-3-Clause" ]
1
2021-02-23T12:32:32.000Z
2021-02-23T12:32:32.000Z
django_spanner/base.py
prakhargurunani/python-spanner-django
818324708e9ca46fbd80c47745bdf38e8a1a069c
[ "BSD-3-Clause" ]
1
2020-10-04T10:04:55.000Z
2020-10-04T10:04:55.000Z
# Copyright 2020 Google LLC # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd from django.db.backends.base.base import BaseDatabaseWrapper from google.cloud import spanner_dbapi as Database, spanner_v1 a...
35.808219
90
0.623183
aba2d2dfce36ea8fdc8db953f427982c521d514f
4,211
py
Python
dashboard/dashboard/api/api_request_handler.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
1
2019-11-01T23:31:22.000Z
2019-11-01T23:31:22.000Z
dashboard/dashboard/api/api_request_handler.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
6
2020-07-19T21:51:44.000Z
2022-02-13T08:22:58.000Z
dashboard/dashboard/api/api_request_handler.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
1
2020-07-24T18:22:03.000Z
2020-07-24T18:22:03.000Z
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import print_function from __future__ import division from __future__ import absolute_import import json import logging import re import tra...
29.447552
80
0.710045
74ab900c1c2fd9e04fbb2b8b535b6b58a88bab9b
47,666
py
Python
pyTweet/pyTweet/depth_first_sampling.py
mitll/TweetE
24af5c881f908d1bb87ea8bc1e879dbddad1fa2e
[ "Apache-2.0" ]
12
2015-09-06T08:05:14.000Z
2020-08-30T00:55:02.000Z
pyTweet/pyTweet/depth_first_sampling.py
mitll/TweetE
24af5c881f908d1bb87ea8bc1e879dbddad1fa2e
[ "Apache-2.0" ]
null
null
null
pyTweet/pyTweet/depth_first_sampling.py
mitll/TweetE
24af5c881f908d1bb87ea8bc1e879dbddad1fa2e
[ "Apache-2.0" ]
9
2015-09-10T17:31:57.000Z
2020-12-25T16:48:25.000Z
#!/usr/bin/env python # # Copyright 2016 MIT Lincoln Laboratory, Massachusetts Institute of Technology # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with # the License. # # You may obtain a copy of the License at # # http://www.apache.org/lice...
60.032746
392
0.64868
311e51f658bc7454cc234bebd3a70845368c3ef4
788
py
Python
nova/db/mysqldb/instance_system_metadata.py
bopopescu/nova-39
36c7a819582b838b7bbab11d55ca3d991a587405
[ "Apache-2.0" ]
null
null
null
nova/db/mysqldb/instance_system_metadata.py
bopopescu/nova-39
36c7a819582b838b7bbab11d55ca3d991a587405
[ "Apache-2.0" ]
null
null
null
nova/db/mysqldb/instance_system_metadata.py
bopopescu/nova-39
36c7a819582b838b7bbab11d55ca3d991a587405
[ "Apache-2.0" ]
1
2020-07-24T09:39:47.000Z
2020-07-24T09:39:47.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2013 Rackspace Hosting # 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.apac...
35.818182
78
0.738579
1d7e1df703189e7090b48a62c2d6a0aa13323166
6,312
py
Python
src/m2r_using_rosegraphics_objects.py
mwinslo/03-AccumulatorsAndFunctionsWithParameters-201930
570bac78a9568cd3fe6136b04f01940db691cc64
[ "MIT" ]
null
null
null
src/m2r_using_rosegraphics_objects.py
mwinslo/03-AccumulatorsAndFunctionsWithParameters-201930
570bac78a9568cd3fe6136b04f01940db691cc64
[ "MIT" ]
null
null
null
src/m2r_using_rosegraphics_objects.py
mwinslo/03-AccumulatorsAndFunctionsWithParameters-201930
570bac78a9568cd3fe6136b04f01940db691cc64
[ "MIT" ]
null
null
null
""" This module uses ROSEGRAPHICS to demonstrate: -- CONSTRUCTING objects, -- applying METHODS to them, and -- accessing their DATA via INSTANCE VARIABLES. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Aaron Wilkin, their colleagues, and Montgomery WInslow. """ # DONE: 1...
37.571429
79
0.468156
30a85982613662d2459762c40b527cd8b19bd4c8
11,073
py
Python
lib/zope/interface/tests/test_adapter.py
Kagami/kisa
2597f67e519b8d66fec2684ff5a7726436bb029b
[ "CC0-1.0" ]
7
2015-04-28T13:26:11.000Z
2020-02-09T17:01:04.000Z
lib/zope/interface/tests/test_adapter.py
Kagami/kisa
2597f67e519b8d66fec2684ff5a7726436bb029b
[ "CC0-1.0" ]
null
null
null
lib/zope/interface/tests/test_adapter.py
Kagami/kisa
2597f67e519b8d66fec2684ff5a7726436bb029b
[ "CC0-1.0" ]
3
2015-03-10T20:56:17.000Z
2021-08-21T02:44:24.000Z
############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
26.811138
78
0.564346
759d2e67a288f2bc424606824ddbc438668aa041
2,267
py
Python
spar_python/report_generation/ta1/ta1_test_database_test.py
nathanawmk/SPARTA
6eeb28b2dd147088b6e851876b36eeba3e700f16
[ "BSD-2-Clause" ]
37
2017-06-09T13:55:23.000Z
2022-01-28T12:51:17.000Z
spar_python/report_generation/ta1/ta1_test_database_test.py
nathanawmk/SPARTA
6eeb28b2dd147088b6e851876b36eeba3e700f16
[ "BSD-2-Clause" ]
null
null
null
spar_python/report_generation/ta1/ta1_test_database_test.py
nathanawmk/SPARTA
6eeb28b2dd147088b6e851876b36eeba3e700f16
[ "BSD-2-Clause" ]
5
2017-06-09T13:55:26.000Z
2021-11-11T03:51:56.000Z
# ***************************************************************** # Copyright 2013 MIT Lincoln Laboratory # Project: SPAR # Authors: SY # Description: Tests ta1_main_methods. # # # Modifications: # Date Name Modification # ---- -...
40.482143
79
0.598147
558a9981171775921308b7b04abb31eeed73f3c8
4,175
py
Python
homeassistant/components/unifi_direct/device_tracker.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
homeassistant/components/unifi_direct/device_tracker.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
9
2022-01-27T06:32:10.000Z
2022-03-31T07:07:51.000Z
homeassistant/components/unifi_direct/device_tracker.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""Support for Unifi AP direct access.""" import json import logging from pexpect import exceptions, pxssh import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN, PLATFORM_SCHEMA, DeviceScanner, ) from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_PORT, CONF_USER...
30.253623
82
0.60982
7b3cf92b964c966a58d980da32e631207d28aed7
4,163
py
Python
app/views/payment/payment_routes.py
tjdaley/payment_redirect
56378f5eb133790e4937116556a31b0578b84549
[ "BSD-3-Clause" ]
null
null
null
app/views/payment/payment_routes.py
tjdaley/payment_redirect
56378f5eb133790e4937116556a31b0578b84549
[ "BSD-3-Clause" ]
38
2020-06-28T20:28:18.000Z
2021-03-29T16:43:29.000Z
app/views/payment/payment_routes.py
tjdaley/payment_redirect
56378f5eb133790e4937116556a31b0578b84549
[ "BSD-3-Clause" ]
null
null
null
""" payment_routes.py - Direct a client to the payment page Copyright (c) 2020 by Thomas J. Daley. All Rights Reserved. """ import datetime as dt import os from flask import Blueprint, flash, redirect, render_template, request, url_for import random import settings # NOQA import urllib.parse # pylint: disable=no-nam...
32.523438
88
0.652654
bebdbdc7a04731ef09bf13f2f1539dcefc99a73b
1,447
py
Python
cma_es/cma_es_interface.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
cma_es/cma_es_interface.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
cma_es/cma_es_interface.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from scitbx.array_family import flex from cma_es import cma_es class cma_es_driver(object): """ This object provides one with a easy interface to cma_es optimisation. For now, no options can be set, this will be added in the future. """ def __init__(self, N, mean, sigma, evalu...
26.796296
79
0.599171
ed511c3b8ca8f3d79d255d8adc79b8d7677cf8de
50,005
py
Python
python/ccxt/async_support/hitbtc.py
daydreamfarm/ccxt
1e37628ddb3e17f0e4c92968872515325779ec8e
[ "MIT" ]
null
null
null
python/ccxt/async_support/hitbtc.py
daydreamfarm/ccxt
1e37628ddb3e17f0e4c92968872515325779ec8e
[ "MIT" ]
null
null
null
python/ccxt/async_support/hitbtc.py
daydreamfarm/ccxt
1e37628ddb3e17f0e4c92968872515325779ec8e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import A...
41.880235
189
0.507249
f777ef065fc7bc68ffa3b969f760d8e3f99aa14e
1,354
py
Python
test/bindings/python/utrecht-test.py
mesozoic-drones/valhalla
cafc34e63f3189d017348391a18847e8250d2b30
[ "MIT" ]
1,947
2016-02-25T20:54:40.000Z
2022-03-30T11:13:21.000Z
test/bindings/python/utrecht-test.py
mesozoic-drones/valhalla
cafc34e63f3189d017348391a18847e8250d2b30
[ "MIT" ]
2,635
2016-02-23T15:36:46.000Z
2022-03-30T09:51:41.000Z
test/bindings/python/utrecht-test.py
mesozoic-drones/valhalla
cafc34e63f3189d017348391a18847e8250d2b30
[ "MIT" ]
472
2016-03-11T09:38:02.000Z
2022-03-29T14:01:48.000Z
# -*- coding: utf-8 -*- import sys import os import valhalla import json import re def has_cyrillic(text): """ This is ensuring that the given text contains cyrllic characters :param text: The text to validate :return: Returns true if there are cyrillic characters """ # Note: The character r...
41.030303
149
0.669129
28ba11d854233a4b7057bb1c8d36c4b178cb4313
1,837
bzl
Python
drivacy/valgrind.bzl
multiparty/DP-PIR
f35f7bc762986c01404ec8e54c3d51a098380421
[ "MIT" ]
null
null
null
drivacy/valgrind.bzl
multiparty/DP-PIR
f35f7bc762986c01404ec8e54c3d51a098380421
[ "MIT" ]
null
null
null
drivacy/valgrind.bzl
multiparty/DP-PIR
f35f7bc762986c01404ec8e54c3d51a098380421
[ "MIT" ]
null
null
null
# Copyright 2020 multiparty.org # A rule for running c++ test files with valgrind attached. def _valgrind_test_impl(ctx): ctx.actions.write( is_executable = True, output = ctx.outputs.executable, content = """ valgrind ./{binary} {cmdargs} &> {name}.tmp status=0 ...
29.629032
82
0.490474
c01cca7447ea45b0746638f128c78ad08c786243
464
py
Python
price_comparison_gp2/urls.py
ccollado12/Price-Comparison-Group2-BE
c3f686cd59b74660c0fbbd60303b2b8e54655eaa
[ "MIT" ]
null
null
null
price_comparison_gp2/urls.py
ccollado12/Price-Comparison-Group2-BE
c3f686cd59b74660c0fbbd60303b2b8e54655eaa
[ "MIT" ]
null
null
null
price_comparison_gp2/urls.py
ccollado12/Price-Comparison-Group2-BE
c3f686cd59b74660c0fbbd60303b2b8e54655eaa
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib import admin from django.urls import path, include from django.conf.urls.static import static from django.conf import settings from products.views import home urlpatterns = [ path('admin/', admin.site.urls), path('', home, name="home"), path('accounts/',...
33.142857
67
0.743534
617dc637d53a91fc4016fde38c0a65524ace00cf
886
py
Python
latticenet_py/misc/check_minkowksi_pred.py
peerschuett/lattice_net
bedee4c7e4adf5ae191a408597c058f2638c96cc
[ "MIT" ]
36
2020-05-26T13:14:54.000Z
2022-03-25T16:39:43.000Z
latticenet_py/misc/check_minkowksi_pred.py
peerschuett/lattice_net
bedee4c7e4adf5ae191a408597c058f2638c96cc
[ "MIT" ]
3
2020-07-28T05:05:40.000Z
2022-03-29T04:08:23.000Z
latticenet_py/misc/check_minkowksi_pred.py
peerschuett/lattice_net
bedee4c7e4adf5ae191a408597c058f2638c96cc
[ "MIT" ]
3
2021-07-12T14:27:47.000Z
2022-02-22T03:06:27.000Z
#!/usr/bin/env python3.6 import os import numpy as np import sys try: import torch except ImportError: pass from easypbr import * from dataloaders import * config_file="lnn_compare_semantic_kitti.cfg" config_path=os.path.join( os.path.dirname( os.path.realpath(__file__) ) , '../../config', config_file) view=...
21.095238
102
0.713318
52ce538462a77d0a2ac991597f6db8a7d2697705
1,471
py
Python
test/functional/reindex.py
wolfoxonly/dake
81b684a132561b838a37489d025e82b6408ced18
[ "MIT" ]
1
2019-09-03T07:02:30.000Z
2019-09-03T07:02:30.000Z
test/functional/reindex.py
wolfoxonly/dake
81b684a132561b838a37489d025e82b6408ced18
[ "MIT" ]
1
2018-06-12T05:18:32.000Z
2018-06-12T05:18:32.000Z
test/functional/reindex.py
wolfoxonly/dake
81b684a132561b838a37489d025e82b6408ced18
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The DakeCoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test running DakeCoind with -reindex and -reindex-chainstate options. - Start a single node and gener...
35.878049
106
0.706322
aaaa18f9198f11cb4b5c130e5140a00b84f4c0ec
1,221
py
Python
examples/merge_rich_string.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/merge_rich_string.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/merge_rich_string.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################## # # An example of merging cells which contain a rich string using the # XlsxWriter Python module. # # Copyright 2013-2016, John McNamara, jmcnamara@cpan.org # import xlsxwriter # Create an new Excel file and add a worksheet. workbook = xl...
34.885714
78
0.560197
94afecf87b940cc4b5233b56b2f3e5bef51a0adb
45
py
Python
tests/__init__.py
Apkawa/django-app-template
933b031ea818696ea6672375c1376c02bf7921ca
[ "MIT" ]
null
null
null
tests/__init__.py
Apkawa/django-app-template
933b031ea818696ea6672375c1376c02bf7921ca
[ "MIT" ]
null
null
null
tests/__init__.py
Apkawa/django-app-template
933b031ea818696ea6672375c1376c02bf7921ca
[ "MIT" ]
null
null
null
default_app_config = 'tests.apps.TestConfig'
22.5
44
0.822222
d1897833202e8e115a4e4353b2c6803e23ccf8ed
2,660
py
Python
python/pynessie/commands/merge.py
maddisondavid/nessie
75788f7b943dc1f381a9036132bdaab6f7c8bf0f
[ "Apache-2.0" ]
1
2022-02-11T16:49:09.000Z
2022-02-11T16:49:09.000Z
python/pynessie/commands/merge.py
maddisondavid/nessie
75788f7b943dc1f381a9036132bdaab6f7c8bf0f
[ "Apache-2.0" ]
682
2021-05-31T14:52:08.000Z
2022-03-31T18:11:44.000Z
python/pynessie/commands/merge.py
maddisondavid/nessie
75788f7b943dc1f381a9036132bdaab6f7c8bf0f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 Dremio # # 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 a...
35.466667
123
0.714662
ce4adc1e7fb4786b5c44911580430a6522cb04fb
3,743
py
Python
ImmoCenter/settings.py
sdaouda/immoniger
85b4f23fed6e73d8df8700103723725f267e31d8
[ "Apache-2.0" ]
null
null
null
ImmoCenter/settings.py
sdaouda/immoniger
85b4f23fed6e73d8df8700103723725f267e31d8
[ "Apache-2.0" ]
6
2021-03-19T00:41:08.000Z
2022-03-11T23:46:42.000Z
ImmoCenter/settings.py
sdaouda/immoniger
85b4f23fed6e73d8df8700103723725f267e31d8
[ "Apache-2.0" ]
null
null
null
""" Django settings for myshop project. Generated by 'django-admin startproject' using Django 1.8.6. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ import os # ...
27.932836
102
0.715202
b5a9d815ab893feccf285611f421be1e5c4ed700
437
py
Python
Pascals_Triangle_II.py
Nadim-Dipu/LeetCode-Nadim
5ecc7bc392c13450907d724f98ec509db58a8fa3
[ "MIT" ]
null
null
null
Pascals_Triangle_II.py
Nadim-Dipu/LeetCode-Nadim
5ecc7bc392c13450907d724f98ec509db58a8fa3
[ "MIT" ]
null
null
null
Pascals_Triangle_II.py
Nadim-Dipu/LeetCode-Nadim
5ecc7bc392c13450907d724f98ec509db58a8fa3
[ "MIT" ]
null
null
null
class Solution: def getRow(self, rowIndex: int) -> List[int]: pascal = [] for i in range(rowIndex + 2): array = [] for j in range(i): if i >= 2 and (j != 0 and j != i-1): array.append(pascal[i-1][j-1] + pascal[i-1][j]) else...
27.3125
67
0.425629
c4306e9ef5912158c1efbd853cc58b9e3ccfe507
8,959
py
Python
code/src/plan2scene/common/residence.py
madhawav/plan2scene
cc3481f503fc096d1a50ea4fbcc668b2a3b75fb5
[ "MIT" ]
305
2021-06-09T23:30:34.000Z
2022-03-30T02:49:45.000Z
code/src/plan2scene/common/residence.py
madhawav/plan2scene
cc3481f503fc096d1a50ea4fbcc668b2a3b75fb5
[ "MIT" ]
8
2021-06-11T01:59:26.000Z
2022-03-24T21:32:21.000Z
code/src/plan2scene/common/residence.py
madhawav/plan2scene
cc3481f503fc096d1a50ea4fbcc668b2a3b75fb5
[ "MIT" ]
32
2021-06-09T23:19:23.000Z
2022-03-05T14:03:15.000Z
import arch_parser.models.house import arch_parser.models.room from arch_parser.preferred_format import PreferredFormat from arch_parser.serializer import serialize_arch_json, serialize_scene_json from PIL import Image class Room(object): """ Abstraction of room used by Plan2Scene """ def __init__(se...
35.133333
180
0.637794
2f7b3aec10f1a88a4c76dfd26a5da19e4431356a
9,846
py
Python
main_gridEvaluation.py
gauchm/ealstm_regional_modeling
29ab19ddd95911cbd0cf9383c45e82c2eed113e6
[ "Apache-2.0" ]
2
2021-01-28T09:17:41.000Z
2021-01-28T15:02:40.000Z
main_gridEvaluation.py
gauchm/ealstm_regional_modeling
29ab19ddd95911cbd0cf9383c45e82c2eed113e6
[ "Apache-2.0" ]
null
null
null
main_gridEvaluation.py
gauchm/ealstm_regional_modeling
29ab19ddd95911cbd0cf9383c45e82c2eed113e6
[ "Apache-2.0" ]
6
2020-06-18T08:51:49.000Z
2021-04-08T05:00:53.000Z
""" Code to create SLURM job files to compare XGBoost and LSTM models on different amounts of training data. """ import argparse import json import pickle import random import sys from collections import defaultdict from datetime import datetime from pathlib import Path, PosixPath from typing import Dict, List, Tuple ...
44.754545
240
0.627666
fd292b6e801e43c3c75e2fead62414852b62a87b
23,339
py
Python
Acquire/Client/_wallet.py
openghg/acquire
8af8701b092f7304c02fea1ee6360e53502dfd64
[ "Apache-2.0" ]
1
2021-10-18T17:11:47.000Z
2021-10-18T17:11:47.000Z
Acquire/Client/_wallet.py
openghg/acquire
8af8701b092f7304c02fea1ee6360e53502dfd64
[ "Apache-2.0" ]
null
null
null
Acquire/Client/_wallet.py
openghg/acquire
8af8701b092f7304c02fea1ee6360e53502dfd64
[ "Apache-2.0" ]
null
null
null
# use a variable so we can monkey-patch while testing _input = input __all__ = ["Wallet"] def _get_wallet_dir(): """Function that can be mocked in testing to ensure we don't mess with the user's main wallet """ import os as _os home = _os.path.expanduser("~") return "%s/.acquire_wallet" % ho...
31.243641
108
0.593256
6d1873730c909baa1f98f72ee33b781ba3ef37d1
4,707
py
Python
image_classification.py
Prime2000-D/Detection-of-Alzheimer-Disease
414c9c9d12a7e276b382847ac0941b26d27f433f
[ "MIT" ]
1
2021-11-02T02:21:59.000Z
2021-11-02T02:21:59.000Z
image_classification.py
Prime2000-D/Detection-of-Alzheimer-Disease
414c9c9d12a7e276b382847ac0941b26d27f433f
[ "MIT" ]
null
null
null
image_classification.py
Prime2000-D/Detection-of-Alzheimer-Disease
414c9c9d12a7e276b382847ac0941b26d27f433f
[ "MIT" ]
null
null
null
import cv2 import skimage.feature as sk import numpy as np import openpyxl as ox import xlrd import ast from skimage.io import imread_collection #im= cv2.imread('IM-0115-0001.jpeg')#bring image into python im_col= imread_collection('C:\\Users\\Prime\\Desktop\\Detection of Alzhemier Disease project\\dataset_fi...
31.590604
197
0.498407
24ce5f9fcb194a70d3a391932da2b7673b304ad3
3,969
py
Python
2_vae_denoiser_data_gen.py
Ladvien/denoising_vae
c61433a41ba69ca305ab1a7b526f8560a70bad4e
[ "MIT" ]
null
null
null
2_vae_denoiser_data_gen.py
Ladvien/denoising_vae
c61433a41ba69ca305ab1a7b526f8560a70bad4e
[ "MIT" ]
null
null
null
2_vae_denoiser_data_gen.py
Ladvien/denoising_vae
c61433a41ba69ca305ab1a7b526f8560a70bad4e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 11 17:27:59 2020 @author: ladvien """ import sys import os import cv2 import numpy as np from random import randint import matplotlib.pyplot as plt image_tools_path = "/home/ladvien/deep_arcane/" sys.path.append(image_tools_path) from image_ut...
26.111842
106
0.581759
9e532e83cffee3aecd623b0dbf86ecf05ca35c36
4,860
py
Python
day11/day11.py
mcmathmo/Advent-of-Code-2020
06cb761d666946edd1bd06c594a64a64a40a7b2d
[ "MIT" ]
null
null
null
day11/day11.py
mcmathmo/Advent-of-Code-2020
06cb761d666946edd1bd06c594a64a64a40a7b2d
[ "MIT" ]
null
null
null
day11/day11.py
mcmathmo/Advent-of-Code-2020
06cb761d666946edd1bd06c594a64a64a40a7b2d
[ "MIT" ]
null
null
null
from time import perf_counter def adjacents(seats, x, y, n, m): checkseats = ((x-1, y-1), (x-1, y), (x-1, y+1), (x, y-1), (x, y+1), (x+1, y-1), (x+1, y), (x+1, y+1)) # Count adjacent occupied seats seen_occupied = 0 for i, j in checkseats: if 0 <...
33.517241
72
0.503704
dc21f74f139204cad207bedb3092ca42324a57ab
1,871
py
Python
test.py
arshad2101/adas-tensorflow
27320a7313e9c4c791f4d60534fbf39819025f60
[ "MIT" ]
178
2018-02-14T02:23:52.000Z
2022-03-26T03:44:32.000Z
test.py
arshad2101/adas-tensorflow
27320a7313e9c4c791f4d60534fbf39819025f60
[ "MIT" ]
5
2018-03-27T17:42:49.000Z
2021-01-25T01:39:54.000Z
test.py
arshad2101/adas-tensorflow
27320a7313e9c4c791f4d60534fbf39819025f60
[ "MIT" ]
68
2018-03-08T15:12:28.000Z
2022-03-22T04:20:41.000Z
from __future__ import print_function import argparse import cv2 import numpy as np from model.unet import unet from model.fcn import fcn_8s from model.pspnet import pspnet50 def result_map_to_img(res_map): img = np.zeros((256, 512, 3), dtype=np.uint8) res_map = np.squeeze(res_map) argmax_idx = np.argm...
27.925373
101
0.674506
aac38555b95f3bd4c4dafbd9d6cad4281cbed282
606
py
Python
EMS/utils/database_utils/make_change.py
jlbbj111/2019-Software-Engineering-Curriculum-Design
a55deabaf00220c5ffb531c6e40ed9edb8063062
[ "MIT" ]
45
2019-03-22T23:01:45.000Z
2021-11-09T01:32:12.000Z
EMS/utils/database_utils/make_change.py
Carlyx/2019-Software-Engineering-Curriculum-Design
213336540c58f4b1dbcc3656c7178e9b37e6cff4
[ "MIT" ]
9
2019-03-25T03:27:57.000Z
2021-06-10T21:27:21.000Z
EMS/utils/database_utils/make_change.py
Carlyx/2019-Software-Engineering-Curriculum-Design
213336540c58f4b1dbcc3656c7178e9b37e6cff4
[ "MIT" ]
13
2019-03-28T13:44:05.000Z
2021-05-23T06:45:03.000Z
import os import re import pandas as pd from random import choice, randint, choices from backstage.models import College, Major, AdmClass, Student, \ Teacher, ClassRoom, MajorPlan, User from scoreManagement.models import Course, Teaching, MajorCourses, CourseScore from django.db.utils import IntegrityError def ch...
33.666667
91
0.773927
014be420ccd385b86b295fdedc1bfd00fa0579ff
9,007
py
Python
IG02_Scripts/neglect_mvpa/nperlabel_equal/submit_MVPA_weights_all2b.py
DVS-Lab/duke-archive
8d127f18d5930803410e716a4b62aac7d4aa4beb
[ "MIT" ]
null
null
null
IG02_Scripts/neglect_mvpa/nperlabel_equal/submit_MVPA_weights_all2b.py
DVS-Lab/duke-archive
8d127f18d5930803410e716a4b62aac7d4aa4beb
[ "MIT" ]
null
null
null
IG02_Scripts/neglect_mvpa/nperlabel_equal/submit_MVPA_weights_all2b.py
DVS-Lab/duke-archive
8d127f18d5930803410e716a4b62aac7d4aa4beb
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys,os,time,re,datetime,smtplib #########user section######################### #user specific constants username = "smith" #your cluster login name (use what shows up in qstatall) useremail = "smith@biac.duke.edu" #email to send job notices to template_f = file("MVPA_equa...
36.613821
504
0.681359
262fff5b2e323478784a59b6ce594f8708916ce5
4,024
py
Python
datasets/celeba.py
kiralpoon/TwinGAN
af067039d4706312c67a9a38ed7f59a3e53831ae
[ "Apache-2.0" ]
736
2018-04-18T05:43:46.000Z
2022-03-24T12:43:29.000Z
datasets/celeba.py
JustinLion83/TwinGAN
4e5593445778dfb77af9f815b3f4fcafc35758dc
[ "Apache-2.0" ]
43
2018-07-25T03:07:28.000Z
2022-03-11T23:26:33.000Z
datasets/celeba.py
JustinLion83/TwinGAN
4e5593445778dfb77af9f815b3f4fcafc35758dc
[ "Apache-2.0" ]
104
2018-04-18T08:06:15.000Z
2022-02-17T05:51:49.000Z
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.991304
80
0.72341
dc55b28b2b63bc94acdcb3e24c14a63202c981ce
1,893
py
Python
Attic/osg_build_lib/platform-post.py
bbockelm/osg-build
1f3cd44409aa0bf53a89eaa13d4d565f5446285b
[ "Apache-2.0" ]
null
null
null
Attic/osg_build_lib/platform-post.py
bbockelm/osg-build
1f3cd44409aa0bf53a89eaa13d4d565f5446285b
[ "Apache-2.0" ]
null
null
null
Attic/osg_build_lib/platform-post.py
bbockelm/osg-build
1f3cd44409aa0bf53a89eaa13d4d565f5446285b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from glob import glob import re from optparse import OptionParser import os import subprocess import sys import time from osg_build_lib.utils import * RUNAUTH = "/s/std/bin/runauth" # Turn off buffering for stdout/stderr sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) sys.stderr = os.fdop...
30.532258
80
0.645008
48d56816a1c7752af2e53ea855668d1abae68f4b
5,145
bzl
Python
tools/cpp/osx_cc_configure.bzl
dilbrent/bazel-0.14.1
b1283ad2762f2d2adbe8598082ef78028f242a41
[ "Apache-2.0" ]
1
2018-05-24T03:27:15.000Z
2018-05-24T03:27:15.000Z
tools/cpp/osx_cc_configure.bzl
dilbrent/bazel-0.14.1
b1283ad2762f2d2adbe8598082ef78028f242a41
[ "Apache-2.0" ]
null
null
null
tools/cpp/osx_cc_configure.bzl
dilbrent/bazel-0.14.1
b1283ad2762f2d2adbe8598082ef78028f242a41
[ "Apache-2.0" ]
null
null
null
# pylint: disable=g-bad-file-header # Copyright 2016 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
42.172131
104
0.699125
27781a2d91b336de08a18d2d16afc8851848c741
103,647
py
Python
mac/v3.6.4/lib/python3.6/test/test_asyncio/test_events.py
evanmoran/python3-bazel
e6c5238e7c2bf290ae469ee1287de7af1dc4509a
[ "MIT" ]
7
2018-09-10T05:42:46.000Z
2021-05-01T12:48:30.000Z
mac/v3.6.4/lib/python3.6/test/test_asyncio/test_events.py
evanmoran/python3-bazel
e6c5238e7c2bf290ae469ee1287de7af1dc4509a
[ "MIT" ]
null
null
null
mac/v3.6.4/lib/python3.6/test/test_asyncio/test_events.py
evanmoran/python3-bazel
e6c5238e7c2bf290ae469ee1287de7af1dc4509a
[ "MIT" ]
1
2021-06-09T16:44:57.000Z
2021-06-09T16:44:57.000Z
"""Tests for events.py.""" import collections.abc import concurrent.futures import functools import gc import io import os import platform import re import signal import socket try: import ssl except ImportError: ssl = None import subprocess import sys import threading import time import errno import unittest ...
37.122851
81
0.615252
b50a6825652fd606c305cd01e1605958be6874fd
1,748
py
Python
polling_stations/apps/data_importers/management/commands/import_copeland.py
danielgriffin48/UK-Polling-Stations
0e5273357a4fdc00c2af794c71558b6f8f2a0a49
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_importers/management/commands/import_copeland.py
danielgriffin48/UK-Polling-Stations
0e5273357a4fdc00c2af794c71558b6f8f2a0a49
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_importers/management/commands/import_copeland.py
danielgriffin48/UK-Polling-Stations
0e5273357a4fdc00c2af794c71558b6f8f2a0a49
[ "BSD-3-Clause" ]
null
null
null
from data_importers.management.commands import BaseHalaroseCsvImporter class Command(BaseHalaroseCsvImporter): council_id = "E07000029" addresses_name = ( "parl.2019-12-12/Version 1/polling_station_export-2019-11-14cope.csv" ) stations_name = ( "parl.2019-12-12/Version 1/polling_statio...
38.844444
112
0.618421
011a96010317495b0f034ca3a433682f5c980d50
31,104
py
Python
tests/api_test.py
carantunes/newdle
3c7e78148b898a8196c7998b348395e9d249a4a1
[ "MIT" ]
null
null
null
tests/api_test.py
carantunes/newdle
3c7e78148b898a8196c7998b348395e9d249a4a1
[ "MIT" ]
null
null
null
tests/api_test.py
carantunes/newdle
3c7e78148b898a8196c7998b348395e9d249a4a1
[ "MIT" ]
null
null
null
from datetime import date, datetime, timedelta from operator import attrgetter, itemgetter from unittest.mock import Mock import pytest from flask import url_for from werkzeug.exceptions import Forbidden from newdle import api from newdle.core.auth import app_token_from_multipass from newdle.models import Newdle, Par...
32.099071
88
0.582465
6484568a1b92db2cf897734d9e6e2b099bb3c653
804
py
Python
astroML/time_series/tests/test_generate.py
arjunsavel/astroML
361cadc56360ca35c760405a341e35ecab6dd585
[ "BSD-2-Clause" ]
735
2015-01-07T23:55:25.000Z
2022-03-31T15:20:25.000Z
astroML/time_series/tests/test_generate.py
awesomemachinelearning/astroML
d378ca41565d1aa39997191d13d46d09d104ff1d
[ "BSD-2-Clause" ]
168
2015-01-06T21:02:41.000Z
2022-03-29T03:15:29.000Z
astroML/time_series/tests/test_generate.py
DinoBektesevic/astroML
b4e699bf45a65e233b40d60323c05eafa1d4955e
[ "BSD-2-Clause" ]
278
2015-01-26T00:29:38.000Z
2022-02-25T21:17:50.000Z
import pytest import numpy as np from numpy.testing import assert_, assert_almost_equal from astroML.time_series import generate_power_law, generate_damped_RW @pytest.mark.parametrize("N", [10, 11]) @pytest.mark.parametrize("generate_complex", [True, False]) def test_generate_args(N, generate_complex): dt = 0.1 ...
27.724138
74
0.692786
04ad8a8df09860bd4720d62ffe6dab55849ba20b
12,706
py
Python
dorthy/security/access.py
MobileDynasty/dorthy
3721bb7a944386eecfb938514fbcf55992e90425
[ "MIT" ]
3
2015-01-06T00:07:58.000Z
2015-06-11T21:51:47.000Z
dorthy/security/access.py
MobileDynasty/dorthy
3721bb7a944386eecfb938514fbcf55992e90425
[ "MIT" ]
4
2015-09-30T00:25:32.000Z
2021-03-25T21:46:11.000Z
dorthy/security/access.py
MobileDynasty/dorthy
3721bb7a944386eecfb938514fbcf55992e90425
[ "MIT" ]
4
2015-09-25T21:46:50.000Z
2017-08-28T17:48:19.000Z
import json from collections import Iterable from dorthy.json import jsonify from dorthy.enum import DeclarativeEnum from dorthy.utils import create_frozenset, native_str class AccessVotes(DeclarativeEnum): Abstain = 1, Denied = 2, Granted = 3, class AccessDeniedError(Exception): pass class Aut...
32.413265
106
0.665119
b5d901746ca33af442629ad4df39548f51464169
6,856
py
Python
userbot/modules/evaluators.py
toxiclord501/UserButt
449c57f9668d5ee4d9f24d27dd7fbb6a90e8333b
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-01-03T05:10:23.000Z
2022-01-03T05:10:23.000Z
userbot/modules/evaluators.py
toxiclord501/UserButt
449c57f9668d5ee4d9f24d27dd7fbb6a90e8333b
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2020-07-18T08:46:35.000Z
2020-08-07T08:27:01.000Z
userbot/modules/evaluators.py
toxiclord501/UserButt
449c57f9668d5ee4d9f24d27dd7fbb6a90e8333b
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2021-05-22T19:24:51.000Z
2021-05-23T04:41:40.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # """Userbot module for executing code and terminal commands from Telegram.""" import asyncio import io import sys impor...
35.158974
89
0.554551
c274e46f5a5bb8526f94625a521877685ed9bcc3
1,951
py
Python
cape_frontend/webapp/errors/errors_core.py
edwardmjackson/cape-frontend
4204f50304ee5cf8808a564b6f8bf969a5bf4043
[ "Apache-2.0" ]
5
2018-08-01T16:44:23.000Z
2018-08-15T14:19:58.000Z
cape_frontend/webapp/errors/errors_core.py
edwardmjackson/cape-frontend
4204f50304ee5cf8808a564b6f8bf969a5bf4043
[ "Apache-2.0" ]
null
null
null
cape_frontend/webapp/errors/errors_core.py
edwardmjackson/cape-frontend
4204f50304ee5cf8808a564b6f8bf969a5bf4043
[ "Apache-2.0" ]
7
2018-09-27T14:02:30.000Z
2020-06-29T03:45:16.000Z
# Copyright 2018 BLEMUNDSBURY AI LIMITED # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
33.637931
86
0.761148
6b64348930c0bd0d925e59a1dd9e315363492cb9
650
py
Python
meetings/admin.py
nicomin/hcmfront_test
5e643c6c8fa1def8f9bb37161bcaf6f2f5a81b50
[ "MIT" ]
null
null
null
meetings/admin.py
nicomin/hcmfront_test
5e643c6c8fa1def8f9bb37161bcaf6f2f5a81b50
[ "MIT" ]
null
null
null
meetings/admin.py
nicomin/hcmfront_test
5e643c6c8fa1def8f9bb37161bcaf6f2f5a81b50
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import ( MeetingRoom, Reservation, ReservationRequest, Supply, SupplyDetail ) # Register your models here. class SupplyDetailInline(admin.TabularInline): ''' Display this intermediate model in the admin''' model = SupplyDetail extra = 1 class SupplyAdmin(ad...
22.413793
52
0.789231
1057be90758a1ac79955250fb69cab6a0ce4493d
217
py
Python
script/feature/incomingPacketSize.py
hjw95/website-fingerprinting
6b141c2cc7821417bab8367d9c0bcda5f5a1badd
[ "MIT" ]
null
null
null
script/feature/incomingPacketSize.py
hjw95/website-fingerprinting
6b141c2cc7821417bab8367d9c0bcda5f5a1badd
[ "MIT" ]
null
null
null
script/feature/incomingPacketSize.py
hjw95/website-fingerprinting
6b141c2cc7821417bab8367d9c0bcda5f5a1badd
[ "MIT" ]
null
null
null
def generateFeature(data): feature = [] size = 0 for packet in data['packets']: if(packet['direction'] == "response"): size += packet['size'] feature.append(size) return feature
27.125
46
0.576037