hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
f335a88172969ef4b07ebc46cdb0148f28a15f96
8,820
py
Python
mixtas/mixtas/pedidos/views.py
stad-team/stad-mixtas
68513f247eeedd7f731d18339891146634619af1
[ "MIT" ]
null
null
null
mixtas/mixtas/pedidos/views.py
stad-team/stad-mixtas
68513f247eeedd7f731d18339891146634619af1
[ "MIT" ]
null
null
null
mixtas/mixtas/pedidos/views.py
stad-team/stad-mixtas
68513f247eeedd7f731d18339891146634619af1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ STAD TEAM ~~~~~~~~~~ """ from __future__ import absolute_import, unicode_literals, print_function import win32print import win32ui from escpos import printer from datetime import datetime from .models import Mesas, DetalleOrden, Simbolos, Menu, Folio from rest_framework.viewsets import M...
30.413793
125
0.566667
7,791
0.883233
0
0
0
0
0
0
2,000
0.226732
f335ec77eb35c369571cab5128f06c7e945d0e70
4,856
py
Python
thumbor_riak/storage.py
dhardy92/thumbor_riak
d3ae5d1ac832dd8a1a0681b3b0c85384868dfe6f
[ "MIT" ]
null
null
null
thumbor_riak/storage.py
dhardy92/thumbor_riak
d3ae5d1ac832dd8a1a0681b3b0c85384868dfe6f
[ "MIT" ]
1
2017-02-28T16:08:07.000Z
2017-03-02T13:44:07.000Z
thumbor_riak/storage.py
dhardy92/thumbor_riak
d3ae5d1ac832dd8a1a0681b3b0c85384868dfe6f
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/dhardy92/thumbor_riak/ # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2012 dhard92@github.com from json import loads, dumps from datetime import datetime, timedelta from thumbo...
33.489655
108
0.576606
4,421
0.91042
0
0
0
0
0
0
677
0.139415
f336821713a91066ae6212929dccb33669ef98c9
60
py
Python
app/settings.py
tomcrane/wikipedia-to-iiif
69f2fc2239622c9e9e267ff8283baf79fa613eed
[ "MIT" ]
7
2017-12-11T14:10:45.000Z
2019-05-30T08:41:13.000Z
app/settings.py
tomcrane/wikipedia-to-iiif
69f2fc2239622c9e9e267ff8283baf79fa613eed
[ "MIT" ]
null
null
null
app/settings.py
tomcrane/wikipedia-to-iiif
69f2fc2239622c9e9e267ff8283baf79fa613eed
[ "MIT" ]
null
null
null
import os EXAMPLE_VARIABLE = os.getenv("EXAMPLE_VARIABLE")
15
48
0.8
0
0
0
0
0
0
0
0
18
0.3
f337866812b474c09e2202fff6887c80f6dcd01a
31,982
py
Python
sdk/python/pulumi_databricks/mws_customer_managed_keys.py
pulumi/pulumi-databricks
43580d4adbd04b72558f368ff0eef3d03432ebc1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_databricks/mws_customer_managed_keys.py
pulumi/pulumi-databricks
43580d4adbd04b72558f368ff0eef3d03432ebc1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_databricks/mws_customer_managed_keys.py
pulumi/pulumi-databricks
43580d4adbd04b72558f368ff0eef3d03432ebc1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
49.738725
272
0.616253
31,491
0.984648
0
0
28,944
0.905009
0
0
22,843
0.714246
f337e2d1736dd597f92bbbb31718a4f5323d8684
2,656
py
Python
setup.py
batterseapower/hdf5storage
9ccec8818e11c2a66a0e834bd2be2e3d3a6761b7
[ "BSD-2-Clause" ]
null
null
null
setup.py
batterseapower/hdf5storage
9ccec8818e11c2a66a0e834bd2be2e3d3a6761b7
[ "BSD-2-Clause" ]
null
null
null
setup.py
batterseapower/hdf5storage
9ccec8818e11c2a66a0e834bd2be2e3d3a6761b7
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2013-2020, Freja Nordsiek # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions ...
42.15873
110
0.707078
0
0
0
0
0
0
0
0
2,024
0.762048
f3389d6e189436dc0b18edac8152f2bc9327e39e
1,040
py
Python
mminterconcept/construction/molecule.py
Lnaden/mminterconcept
83c5bc75f93113443d2126551e4df3940637536d
[ "MIT" ]
null
null
null
mminterconcept/construction/molecule.py
Lnaden/mminterconcept
83c5bc75f93113443d2126551e4df3940637536d
[ "MIT" ]
null
null
null
mminterconcept/construction/molecule.py
Lnaden/mminterconcept
83c5bc75f93113443d2126551e4df3940637536d
[ "MIT" ]
null
null
null
''' Author: Andrew-AbiMansour DOC: Oct 21, 2019 This module defines a molecule for MD simulation/analysis ''' from qcelemental.models import molecule as qc_molecule from pydantic import Schema from typing import Optional, Tuple, List class Molecule(qc_molecule.Molecule): angles: Optional[List[Tuple[int, int, int]]...
40
118
0.707692
799
0.768269
0
0
0
0
0
0
657
0.631731
f338e98f4e08bde2d9d5d0b8509480a59736e419
3,192
py
Python
polaris_health/util/log.py
pjns-lb/polaris-gslb
d5c4f1865ceb4311a6c36c7c6d23462565864e98
[ "BSD-3-Clause" ]
225
2015-09-02T16:53:34.000Z
2022-03-19T16:52:32.000Z
polaris_health/util/log.py
pjns-lb/polaris-gslb
d5c4f1865ceb4311a6c36c7c6d23462565864e98
[ "BSD-3-Clause" ]
60
2015-09-08T09:39:00.000Z
2022-02-01T10:42:34.000Z
polaris_health/util/log.py
pjns-lb/polaris-gslb
d5c4f1865ceb4311a6c36c7c6d23462565864e98
[ "BSD-3-Clause" ]
77
2015-09-08T16:23:21.000Z
2022-03-19T15:57:23.000Z
# -*- coding: utf-8 -*- import logging import logging.config from polaris_health import Error, config __all__ = [ 'setup', 'setup_debug' ] LOG = logging.getLogger(__name__) LOG.addHandler(logging.NullHandler()) FORMAT = '%(asctime)s [%(levelname)s] %(name)s: %(message)s' class DatagramText(logging.handlers.Data...
23.470588
68
0.518797
516
0.161654
0
0
0
0
0
0
1,191
0.37312
f3393e3733e864fdd4beef58afdb68b438e60fb1
722
py
Python
chia/outbound_message.py
ssysm/ChiaNodeSync
bb574e7b20c79074ef8c2f56e5a177d169d1b843
[ "Apache-2.0" ]
2
2021-05-20T19:33:26.000Z
2021-10-13T03:23:29.000Z
chia/outbound_message.py
ssysm/ChiaNodeSync
bb574e7b20c79074ef8c2f56e5a177d169d1b843
[ "Apache-2.0" ]
null
null
null
chia/outbound_message.py
ssysm/ChiaNodeSync
bb574e7b20c79074ef8c2f56e5a177d169d1b843
[ "Apache-2.0" ]
1
2021-07-11T13:14:50.000Z
2021-07-11T13:14:50.000Z
from dataclasses import dataclass from enum import IntEnum from typing import Any, Optional from chia.protocols.protocol_message_types import ProtocolMessageTypes from chia.util.ints import uint8, uint16 from chia.util.streamable import Streamable, streamable class NodeType(IntEnum): FULL_NODE = 1 HARVESTER =...
24.896552
70
0.742382
290
0.401662
0
0
200
0.277008
0
0
69
0.095568
f3395aa0c5cc601517f789fbb804e0b43eadb2eb
4,147
py
Python
osbrain/tests/test_agent_sync_publications_handlers.py
RezaBehzadpour/osbrain
1b7061bfa6bcfa2176685081fd39c5c971107d51
[ "Apache-2.0" ]
176
2016-07-12T20:05:32.000Z
2022-01-18T10:12:07.000Z
osbrain/tests/test_agent_sync_publications_handlers.py
RezaBehzadpour/osbrain
1b7061bfa6bcfa2176685081fd39c5c971107d51
[ "Apache-2.0" ]
358
2016-08-04T09:21:35.000Z
2021-10-15T07:20:07.000Z
osbrain/tests/test_agent_sync_publications_handlers.py
RezaBehzadpour/osbrain
1b7061bfa6bcfa2176685081fd39c5c971107d51
[ "Apache-2.0" ]
50
2016-07-17T11:52:36.000Z
2021-05-10T14:48:45.000Z
""" Test file for synchronized publications handlers. """ import pytest from osbrain import Agent from osbrain import run_agent from osbrain.helper import wait_agent_attr from .common import append_received class ServerSyncPub(Agent): def on_init(self): self.received = [] self.bind('SYNC_PUB', a...
30.718519
79
0.67591
600
0.144683
0
0
2,909
0.701471
0
0
1,439
0.346998
f33ba675e1eea0466ae4a3b552dee73fb4344ba0
598
py
Python
events/migrations/0004_auto_20180425_1508.py
Akash1S/meethub
3517ec7b4e03ca1fe50e7053fd46349f0b31740c
[ "MIT" ]
428
2018-05-11T16:36:33.000Z
2022-02-05T15:29:23.000Z
events/migrations/0004_auto_20180425_1508.py
dmkibuka/meethub
296a1494ab6f2828b61f0b8e4ad80308306fc23a
[ "MIT" ]
15
2018-05-14T16:33:29.000Z
2021-06-09T17:28:14.000Z
events/migrations/0004_auto_20180425_1508.py
dmkibuka/meethub
296a1494ab6f2828b61f0b8e4ad80308306fc23a
[ "MIT" ]
53
2018-05-12T10:41:24.000Z
2022-02-23T12:15:33.000Z
# Generated by Django 2.0.4 on 2018-04-25 15:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0003_auto_20180424_1611'), ] operations = [ migrations.AlterModelOptions( name='event', options={'ordering...
26
109
0.595318
505
0.844482
0
0
0
0
0
0
184
0.307692
f33c856e8fe096a3d7793a81f6b7f5325ea10432
1,543
py
Python
tirma/__main__.py
franpoz/tirma
40905210cbfe6ab2dc40d3f5707850e390ccabb5
[ "MIT" ]
null
null
null
tirma/__main__.py
franpoz/tirma
40905210cbfe6ab2dc40d3f5707850e390ccabb5
[ "MIT" ]
null
null
null
tirma/__main__.py
franpoz/tirma
40905210cbfe6ab2dc40d3f5707850e390ccabb5
[ "MIT" ]
null
null
null
import os import yaml from argparse import ArgumentParser from os import path from tirma.tirma import TIRMA if __name__ == '__main__': current_path = os.path.dirname(os.path.realpath(__file__)) ap = ArgumentParser(description='Sherlock Inject&Recovery tool') ap.add_argument('--dir', default="./", help="W...
51.433333
112
0.714841
0
0
0
0
0
0
0
0
340
0.22035
f3407e32f5f6523d6af3047286ae165f92497d48
1,988
py
Python
webserver.py
ChaunceyXCX/e_gate
1df172c1293b54ec9d47410b90bf5bd00c43e96b
[ "MIT" ]
null
null
null
webserver.py
ChaunceyXCX/e_gate
1df172c1293b54ec9d47410b90bf5bd00c43e96b
[ "MIT" ]
null
null
null
webserver.py
ChaunceyXCX/e_gate
1df172c1293b54ec9d47410b90bf5bd00c43e96b
[ "MIT" ]
null
null
null
import picoweb import gpio import network import ujson import wlanauto app = picoweb.WebApp("SafeGate") @app.route("/") def index(req, resp): yield from picoweb.start_response(resp) htmFile = open('./static/gate.html','r') for line in htmFile: yield from resp.awrite(b""+line) # yield from resp....
28
78
0.678068
0
0
1,491
0.75
1,650
0.82998
0
0
266
0.133803
f3416451d8e96fafe38d11507d5a845e008e0c70
9,046
py
Python
dnn_reco/export_model.py
mxmeier/dnn_reco
c26ca45c7e0f9b160a99598d25e29779a674707f
[ "MIT" ]
null
null
null
dnn_reco/export_model.py
mxmeier/dnn_reco
c26ca45c7e0f9b160a99598d25e29779a674707f
[ "MIT" ]
null
null
null
dnn_reco/export_model.py
mxmeier/dnn_reco
c26ca45c7e0f9b160a99598d25e29779a674707f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function import os import shutil import glob import click import ruamel.yaml as yaml import tensorflow as tf from dnn_reco import misc from dnn_reco.setup_manager import SetupManager from dnn_reco.data_handler import DataHandler from ...
40.565022
79
0.612425
0
0
0
0
6,731
0.744086
0
0
3,404
0.376299
f341934b753020a83775024239d87aaaed4b7ee7
11,379
py
Python
neuralparticles/scripts/run_punet.py
senliontec/NeuralParticles
8ede22bfb43e60be175b9cef19045c1c7b1ffb73
[ "MIT" ]
null
null
null
neuralparticles/scripts/run_punet.py
senliontec/NeuralParticles
8ede22bfb43e60be175b9cef19045c1c7b1ffb73
[ "MIT" ]
null
null
null
neuralparticles/scripts/run_punet.py
senliontec/NeuralParticles
8ede22bfb43e60be175b9cef19045c1c7b1ffb73
[ "MIT" ]
null
null
null
import numpy as np import h5py import keras import keras.backend as K from glob import glob import json import math, scipy from scipy.optimize import linear_sum_assignment import time from collections import OrderedDict import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import keras from neura...
37.065147
330
0.61508
0
0
0
0
0
0
0
0
2,209
0.19413
f3425b5ebea9c1fe60e371d5dba169b6aa7ee4c8
23,965
py
Python
deepreg/model/layer_util.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
deepreg/model/layer_util.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
deepreg/model/layer_util.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
""" Module containing utilities for layer inputs """ import itertools import numpy as np import tensorflow as tf def get_reference_grid(grid_size: (tuple, list)) -> tf.Tensor: """ Generate a 3D grid with given size. Reference: - volshape_to_meshgrid of neuron https://github.com/adalca/neurite...
33.423989
88
0.571917
0
0
0
0
0
0
0
0
14,980
0.623258
f3437fdf05ac2adaef08bbdcb3bffd59e965cdee
1,120
py
Python
client/src/service/send_cheat_state.py
y-yu/qrand
b041c3c9cccaf20ee24a0ad90c81b89d3dc753bf
[ "MIT" ]
3
2020-02-02T09:04:21.000Z
2020-02-09T07:25:59.000Z
client/src/service/send_cheat_state.py
y-yu/qrand
b041c3c9cccaf20ee24a0ad90c81b89d3dc753bf
[ "MIT" ]
null
null
null
client/src/service/send_cheat_state.py
y-yu/qrand
b041c3c9cccaf20ee24a0ad90c81b89d3dc753bf
[ "MIT" ]
null
null
null
from ..repository import quantum, qrand_api_caller from random import Random from qulacs import QuantumState from qulacs.gate import H # クライアントがチートをするためのサービス。 class PostCheatStateService: def __init__( self, random_impl: Random, send_qubit_impl: qrand_api_caller.QRandApiRepository, ): ...
27.317073
72
0.63125
1,090
0.842349
0
0
0
0
0
0
342
0.264297
f347cd2141e29b71f96f81b6d7df95e5fa292a36
1,655
py
Python
ecc_attack_code/ecc_attack.py
gbanegas/SDCECC
987017be79448b2a0d786b9fe9f5f1b99aa14e1f
[ "Apache-2.0" ]
null
null
null
ecc_attack_code/ecc_attack.py
gbanegas/SDCECC
987017be79448b2a0d786b9fe9f5f1b99aa14e1f
[ "Apache-2.0" ]
null
null
null
ecc_attack_code/ecc_attack.py
gbanegas/SDCECC
987017be79448b2a0d786b9fe9f5f1b99aa14e1f
[ "Apache-2.0" ]
null
null
null
import random import math from itertools import product from ecc_types import * def bitfield(n): return [int(digit) for digit in bin(n)[2:]] class AttackECC(): def __init__(self, ecc, gen_ed25519): self.ecc = ecc self.gen_data = gen_ed25519 self.to_divide = float(2**self.ecc.get_k())...
27.583333
104
0.524471
1,506
0.90997
0
0
0
0
0
0
93
0.056193
f348e79c0bd30dcf3780b2f6b359aaf0f0bfa665
2,456
py
Python
export/usb.py
oudeismetis/missed-moment
9294340bd4d5fbc5801cc967db70f8c82ea94ef3
[ "MIT" ]
5
2016-09-06T19:54:38.000Z
2021-11-04T19:04:08.000Z
export/usb.py
oudeismetis/missed-moment
9294340bd4d5fbc5801cc967db70f8c82ea94ef3
[ "MIT" ]
1
2021-11-17T21:08:17.000Z
2021-11-17T21:08:17.000Z
export/usb.py
oudeismetis/missed-moment
9294340bd4d5fbc5801cc967db70f8c82ea94ef3
[ "MIT" ]
1
2016-10-28T15:15:48.000Z
2016-10-28T15:15:48.000Z
from os import listdir from os.path import exists, expanduser, isfile import re from subprocess import CalledProcessError, check_call import logging from pyudev import Context, Monitor video_pattern = re.compile('missed-moment.*merged.*mp4') MEDIA_DIR = '/missed_moment_media' USB_MOUNT_DIR = '/missed_moment_usb' USB_...
34.111111
77
0.644544
0
0
0
0
0
0
0
0
764
0.311075
f349cfad9cec3cea9ca00cc8741bef50c2e3e69b
1,359
py
Python
compiled/python/js_signed_right_shift.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
4
2017-04-08T12:55:11.000Z
2020-12-05T21:09:31.000Z
compiled/python/js_signed_right_shift.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
7
2018-04-23T01:30:33.000Z
2020-10-30T23:56:14.000Z
compiled/python/js_signed_right_shift.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
6
2017-04-08T11:41:14.000Z
2020-10-30T22:47:31.000Z
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild from pkg_resources import parse_version import kaitaistruct from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO if parse_version(kaitaistruct.__version__) < parse_version('0.9'): raise Exception("Incompati...
35.763158
132
0.718911
932
0.685798
0
0
670
0.49301
0
0
317
0.23326
f349db6f7d61685b49d49c7f0b47f4281e88cd8e
2,913
py
Python
tests/utilities.py
Terrencebosco/lambdata-dspt7-tb
9a5be4e6e0fea1801393253221fcca0511ded83c
[ "MIT" ]
null
null
null
tests/utilities.py
Terrencebosco/lambdata-dspt7-tb
9a5be4e6e0fea1801393253221fcca0511ded83c
[ "MIT" ]
null
null
null
tests/utilities.py
Terrencebosco/lambdata-dspt7-tb
9a5be4e6e0fea1801393253221fcca0511ded83c
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split # helper function for dropping columns with nan values. def drop_high_nan(df, num_nans): ''' drop columns with preselected number of nans df = selected dataframe num_nans = the number of nans as a threshold t...
31.663043
79
0.645726
0
0
0
0
0
0
0
0
1,371
0.470649
f34a82741807c790a71d945cf37f449008072a15
4,963
py
Python
main.py
Nircek/telnet-communicator-server
24abe728879225e4a1fa75ef17056f9de38088fb
[ "MIT" ]
null
null
null
main.py
Nircek/telnet-communicator-server
24abe728879225e4a1fa75ef17056f9de38088fb
[ "MIT" ]
6
2019-04-22T14:08:04.000Z
2019-06-28T09:10:44.000Z
main.py
Nircek/telnet-communicator-server
24abe728879225e4a1fa75ef17056f9de38088fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # Copyright (c) 2019 Nircek # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy...
32.437908
85
0.574048
3,275
0.659883
0
0
0
0
0
0
1,250
0.251864
f34b3398d34130125064588eeea3a67c4b10f9ab
1,082
py
Python
apps/accounts/events.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
206
2015-10-15T07:05:08.000Z
2021-02-19T11:48:36.000Z
apps/accounts/events.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
8
2017-10-16T10:18:31.000Z
2022-03-09T14:24:27.000Z
apps/accounts/events.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
61
2015-10-15T08:12:44.000Z
2022-03-10T12:25:06.000Z
# Python Standard Library Imports # Third Party (PyPI) Imports import rollbar # HTK Imports from htk.utils import htk_setting from htk.utils.notifications import slack_notify def failed_recaptcha_on_login(user, request=None): extra_data = { 'user' : { 'id': user.id, 'username': u...
24.590909
75
0.651571
0
0
0
0
0
0
0
0
310
0.286506
f34bbec477f64d7fdcbedf6ba00cc7919b8e38eb
2,348
py
Python
test/test_buttons.py
vallemrv/kivy-component
e6db451c329f8b17a7fee8dee42e2968df116ce5
[ "Apache-2.0" ]
2
2017-07-15T18:43:05.000Z
2019-07-02T07:33:24.000Z
test/test_buttons.py
vallemrv/kivy-component
e6db451c329f8b17a7fee8dee42e2968df116ce5
[ "Apache-2.0" ]
null
null
null
test/test_buttons.py
vallemrv/kivy-component
e6db451c329f8b17a7fee8dee42e2968df116ce5
[ "Apache-2.0" ]
null
null
null
# @Author: Manuel Rodriguez <valle> # @Date: 2019-05-05T20:01:27+02:00 # @Email: valle.mrv@gmail.com # @Last modified by: valle # @Last modified time: 2019-05-09T01:17:25+02:00 # @License: Apache License v2.0 import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) fr...
24.458333
79
0.589438
220
0.093697
0
0
0
0
0
0
1,738
0.740204
f34bef219deb20fe6f67ee4c3842b697e7cda3a6
501
py
Python
Exercícios/ex042.py
JefterV/Cursoemvideo.py
e65ac53a4e38793be3039d360e7127e1c5d51030
[ "MIT" ]
3
2020-11-24T17:20:34.000Z
2020-12-03T01:19:31.000Z
Exercícios/ex042.py
JefterV/Cursoemvideo.py
e65ac53a4e38793be3039d360e7127e1c5d51030
[ "MIT" ]
null
null
null
Exercícios/ex042.py
JefterV/Cursoemvideo.py
e65ac53a4e38793be3039d360e7127e1c5d51030
[ "MIT" ]
1
2021-01-03T00:48:48.000Z
2021-01-03T00:48:48.000Z
import playsound r1 = int(input('Segmento um: ')) r2 = int(input('Segmento dois: ')) r3 = int(input('Segmento três: ')) if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2: print('Os segmentos acima, PODEM formar um triangulo', end=' ') if r1 == r2 and r2 == r3: playsound.playsound('rllx.mp3', tr) ...
33.4
67
0.59481
0
0
0
0
0
0
0
0
195
0.386139
f34c12ad843b85b4615c748246bcb5d45ef5266f
9,584
py
Python
data_extraction/updatedb.py
amajee11us/driving-data-collection-reference-kit
92eb839e55c0f0c65992b62aa71c3f63ecad4925
[ "BSD-3-Clause" ]
10
2019-12-04T06:30:03.000Z
2022-01-04T23:09:14.000Z
data_extraction/updatedb.py
amajee11us/driving-data-collection-reference-kit
92eb839e55c0f0c65992b62aa71c3f63ecad4925
[ "BSD-3-Clause" ]
6
2019-01-24T05:39:52.000Z
2021-03-16T05:25:00.000Z
data_extraction/updatedb.py
amajee11us/driving-data-collection-reference-kit
92eb839e55c0f0c65992b62aa71c3f63ecad4925
[ "BSD-3-Clause" ]
8
2019-02-11T03:11:56.000Z
2021-08-18T08:00:51.000Z
#!/usr/bin/env python ''' Updates db will all info.json files found in the provided dir path. This is gnerally used to update db periodically from all info.json files available in dataset Params: dataset_path - dir containing rosbag file to search for corresponding info.json files Copyright (C) 2019 Intel Corpor...
36.030075
135
0.632095
0
0
0
0
0
0
0
0
3,737
0.389921
f34e8ae9da4353d89753677155c3922a13e63d3a
336
py
Python
TPs/TP7/compute_pi.py
Aympab/BigDataHadoopSparkDaskCourse
42f9e0475cbd7c5db240ccc6dc00c19b9006012a
[ "Apache-2.0" ]
null
null
null
TPs/TP7/compute_pi.py
Aympab/BigDataHadoopSparkDaskCourse
42f9e0475cbd7c5db240ccc6dc00c19b9006012a
[ "Apache-2.0" ]
null
null
null
TPs/TP7/compute_pi.py
Aympab/BigDataHadoopSparkDaskCourse
42f9e0475cbd7c5db240ccc6dc00c19b9006012a
[ "Apache-2.0" ]
1
2022-01-31T17:14:27.000Z
2022-01-31T17:14:27.000Z
import findspark findspark.init() import pyspark import random sc = pyspark.SparkContext(appName="Pi") num_samples = 100000000 def inside(p): x, y = random.random(), random.random() return x*x + y*y < 1 count = sc.parallelize(range(0, num_samples)).filter(inside).count() pi = 4 * count / num_samples print...
16.8
68
0.696429
0
0
0
0
0
0
0
0
4
0.011905
f34f25a84c269a3d04e4b16d8fc56c5a7bc7f675
4,296
py
Python
utils.py
bmack/example-repository-offline
2cf9c2c26ef35b60d669d863b8346b8b6213f584
[ "MIT" ]
null
null
null
utils.py
bmack/example-repository-offline
2cf9c2c26ef35b60d669d863b8346b8b6213f584
[ "MIT" ]
null
null
null
utils.py
bmack/example-repository-offline
2cf9c2c26ef35b60d669d863b8346b8b6213f584
[ "MIT" ]
null
null
null
# common utilities for other scripts from tuf import repository_tool as rt import os import shutil # shorthand to create keypairs def write_and_import_keypair(keystorefolder, filename): pathpriv = keystorefolder + '/{}_key'.format(filename) pathpub = '{}.pub'.format(pathpriv) rt.generate_and_write_ed2551...
47.208791
107
0.79027
0
0
0
0
0
0
0
0
947
0.220438
f34f27483532b5547cd067bf3e35e862903166e7
10,223
py
Python
Python/met_brewer/palettes.py
dataspider/MetBrewer
723d2ed43d0be7f1fde39527be300cc50865020e
[ "CC0-1.0" ]
null
null
null
Python/met_brewer/palettes.py
dataspider/MetBrewer
723d2ed43d0be7f1fde39527be300cc50865020e
[ "CC0-1.0" ]
null
null
null
Python/met_brewer/palettes.py
dataspider/MetBrewer
723d2ed43d0be7f1fde39527be300cc50865020e
[ "CC0-1.0" ]
null
null
null
from colour import Color from matplotlib.colors import LinearSegmentedColormap, to_hex MET_PALETTES = dict( Austria=dict(colors=("#a40000", "#16317d", "#007e2f", "#ffcd12", "#b86092", "#721b3e", "#00b7a7"), order=(1, 2, 3, 4, 6, 5, 7), colorblind=False), Cassatt1=dict(colors=("#b1615c", "#d88782", "#e3aba7", "...
76.291045
252
0.577913
0
0
0
0
0
0
0
0
3,872
0.378754
f34f5a1bf3d1e8af420a24b49d952e59caad3230
1,186
py
Python
utils/util.py
xzhang2016/tfagent
433df751f0c5cbe3d730d8e912a05a2430dd165b
[ "BSD-2-Clause" ]
null
null
null
utils/util.py
xzhang2016/tfagent
433df751f0c5cbe3d730d8e912a05a2430dd165b
[ "BSD-2-Clause" ]
1
2020-06-11T17:03:22.000Z
2020-06-11T17:03:22.000Z
utils/util.py
xzhang2016/tfagent
433df751f0c5cbe3d730d8e912a05a2430dd165b
[ "BSD-2-Clause" ]
3
2017-04-19T15:38:31.000Z
2019-05-07T21:18:52.000Z
import urllib.request import os def merge_dict_sum(dict1, dict2): """ Merge two dictionaries and add values of common keys. Values of the input dicts can be any addable objects, like numeric, str, list. """ dict3 = {**dict1, **dict2} for key, value in dict3.items(): if key in dict1 and ...
26.355556
82
0.598651
0
0
0
0
0
0
0
0
330
0.278246
f350076941ab65f9dd7c2c16db5664edfd92e574
1,096
py
Python
qnn/input/havlicek_data_handler.py
bjader/quantum-neural-network
3f23e14fac8700d3f48593f0727c6da59af5f77f
[ "MIT" ]
9
2021-06-08T14:02:38.000Z
2022-03-08T10:14:22.000Z
qnn/input/havlicek_data_handler.py
bjader/quantum-neural-network
3f23e14fac8700d3f48593f0727c6da59af5f77f
[ "MIT" ]
null
null
null
qnn/input/havlicek_data_handler.py
bjader/quantum-neural-network
3f23e14fac8700d3f48593f0727c6da59af5f77f
[ "MIT" ]
1
2021-06-12T16:28:53.000Z
2021-06-12T16:28:53.000Z
import numpy as np from qiskit import QuantumRegister, QuantumCircuit from qiskit.circuit import Parameter from input.data_handler import DataHandler class HavlicekDataHandler(DataHandler): """ Data encoding based on Havlicek et al. Nature 567, pp209–212 (2019). For quantum circuit diagram see Fig. 4 in ...
29.621622
114
0.611314
944
0.859745
0
0
0
0
0
0
159
0.144809
f350d58a0b541e697505f5ba96c2ceb95944d171
1,951
py
Python
prep_cars_data.py
ppik/loxodon
c9d3148ec70f281ba28b3b39e1d843db2fd9a3ac
[ "MIT" ]
null
null
null
prep_cars_data.py
ppik/loxodon
c9d3148ec70f281ba28b3b39e1d843db2fd9a3ac
[ "MIT" ]
1
2018-01-18T09:04:47.000Z
2018-01-18T14:29:13.000Z
prep_cars_data.py
ppik/loxodon
c9d3148ec70f281ba28b3b39e1d843db2fd9a3ac
[ "MIT" ]
1
2018-01-17T14:14:52.000Z
2018-01-17T14:14:52.000Z
#!/usr/bin/env python import os from os.path import basename, dirname, exists from glob import glob from random import seed, sample from math import ceil import shutil from scipy.io import loadmat DATA_PATH = 'data/' VALID_RATIO = 0.2 seed(20171111) info = loadmat(DATA_PATH + 'cars_annos.mat') class_names = [] fo...
24.08642
129
0.650436
0
0
0
0
0
0
0
0
467
0.239242
f3510b1c13e2b0996f72d7df7b7e4d5ce6187252
4,318
py
Python
LAB04/02-CloudAlbum-Chalice/cloudalbum/tests/test_photos.py
liks79/moving-to-serverless-renew
2f173071ab387654d4cc851a0b39130613906378
[ "MIT" ]
6
2019-08-21T04:13:34.000Z
2019-10-29T07:15:39.000Z
LAB04/02-CloudAlbum-Chalice/cloudalbum/tests/test_photos.py
liks79/moving-to-serverless-renew
2f173071ab387654d4cc851a0b39130613906378
[ "MIT" ]
89
2019-07-31T02:29:54.000Z
2022-03-12T01:03:22.000Z
LAB04/02-CloudAlbum-Chalice/cloudalbum/tests/test_photos.py
michaelrishiforrester/moving-to-serverless-renew
27cbcbde9db3d2bc66212fe4f768563d25f64c19
[ "MIT" ]
4
2019-08-02T03:00:35.000Z
2020-02-26T18:44:03.000Z
""" cloudalbum/tests/test_photos.py ~~~~~~~~~~~~~~~~~~~~~~~ Test cases for photos REST API :description: CloudAlbum is a fully featured sample application for 'Moving to AWS serverless' training course :copyright: © 2019 written by Dayoungle Jun, Sungshik Jou. :license: MIT, see LICENSE for mor...
37.224138
114
0.630153
3,153
0.73003
0
0
1,294
0.299606
0
0
1,255
0.290577
f352ff7f4b31c7040c5ea7317ed22c6aa5e813c5
932
py
Python
wav_to_mp3_to_wav/post_mp3_information_retrieval.py
LiquidFun/stegowav
89ef0b40c52c834febffeeefba30eccbb0862e29
[ "Apache-2.0" ]
null
null
null
wav_to_mp3_to_wav/post_mp3_information_retrieval.py
LiquidFun/stegowav
89ef0b40c52c834febffeeefba30eccbb0862e29
[ "Apache-2.0" ]
null
null
null
wav_to_mp3_to_wav/post_mp3_information_retrieval.py
LiquidFun/stegowav
89ef0b40c52c834febffeeefba30eccbb0862e29
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from tempfile import TemporaryDirectory from wav_steganography.wav_file import WAVFile from wav_to_mp3_to_wav.analyze_flipped_bits import find_matching_audio_file, convert_to_file_format_and_back def compare_headers(file_path): with TemporaryDirectory() as tmp_dir: wav_file = WAV...
33.285714
108
0.748927
0
0
0
0
0
0
0
0
143
0.153433
f353b7a18dac9fe20b5fa12a9cc76abc354a1603
4,896
py
Python
Tp2/ej3/FBorrosificador.py
luisemacsel/IA2
b99e19df3cd689d1c6cb42cd83cd71d6302e89eb
[ "MIT" ]
null
null
null
Tp2/ej3/FBorrosificador.py
luisemacsel/IA2
b99e19df3cd689d1c6cb42cd83cd71d6302e89eb
[ "MIT" ]
null
null
null
Tp2/ej3/FBorrosificador.py
luisemacsel/IA2
b99e19df3cd689d1c6cb42cd83cd71d6302e89eb
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np """ La funcion se encarga de buscar el valor de fuerza que le corresponde para ese valor f en el rango elegido Buscavalor(max,rango,funcion): max:valor obtenido de la funcion figual rango: rango de la funcion de f de la FAM funcion: es la funcion da...
26.181818
110
0.612337
0
0
0
0
0
0
0
0
1,813
0.370302
f353cc9934915d2b7584b135ed41a08d4e931189
2,883
py
Python
impl/dlsgs/transformer/derived.py
ju-kreber/Transformers-and-GANs-for-LTL-sat
45fe14815562dd3e0d3705573ce9358bfbdc22b3
[ "MIT" ]
null
null
null
impl/dlsgs/transformer/derived.py
ju-kreber/Transformers-and-GANs-for-LTL-sat
45fe14815562dd3e0d3705573ce9358bfbdc22b3
[ "MIT" ]
null
null
null
impl/dlsgs/transformer/derived.py
ju-kreber/Transformers-and-GANs-for-LTL-sat
45fe14815562dd3e0d3705573ce9358bfbdc22b3
[ "MIT" ]
null
null
null
# implementation based on DeepLTL https://github.com/reactive-systems/deepltl import tensorflow as tf import dlsgs.transformer.positional_encoding as pe from dlsgs.transformer.base import Transformer, TransformerEncoder from dlsgs.transformer.common import create_padding_mask class EncoderOnlyTransformer(Transform...
44.353846
140
0.680194
2,600
0.901838
0
0
0
0
0
0
712
0.246965
f353dbb565c4d499694168557296ed62d9913084
1,687
py
Python
artifact/gpufwd_image/to_copy/empirical_testing/src/configuration.py
tyler-utah/AlloyForwardProgress
d9c779129f5ff9f678b31d9b7ccb29c184ddb097
[ "BSD-2-Clause" ]
null
null
null
artifact/gpufwd_image/to_copy/empirical_testing/src/configuration.py
tyler-utah/AlloyForwardProgress
d9c779129f5ff9f678b31d9b7ccb29c184ddb097
[ "BSD-2-Clause" ]
null
null
null
artifact/gpufwd_image/to_copy/empirical_testing/src/configuration.py
tyler-utah/AlloyForwardProgress
d9c779129f5ff9f678b31d9b7ccb29c184ddb097
[ "BSD-2-Clause" ]
2
2020-05-02T00:28:27.000Z
2020-05-12T20:36:49.000Z
# ----------------------------------------------------------------------- # configuration.py # Author: Hari Raval # ----------------------------------------------------------------------- # a Configuration object represents the parameters and settings used to generate an Amber test class Configuration(object): #...
41.146341
116
0.662715
1,401
0.830468
0
0
0
0
0
0
913
0.541197
f3547c44193674d72118e17e37edb9312430ced7
305
py
Python
UE4Parse/IoObjects/FNameEntryId.py
zbx911/pyUE4Parse
eb30d27a4341ad68a7104458a0fdfae6a360d153
[ "MIT" ]
13
2021-06-09T09:21:00.000Z
2022-03-30T22:13:24.000Z
UE4Parse/IoObjects/FNameEntryId.py
zbx911/pyUE4Parse
eb30d27a4341ad68a7104458a0fdfae6a360d153
[ "MIT" ]
3
2021-09-04T22:23:02.000Z
2022-03-04T09:45:45.000Z
UE4Parse/IoObjects/FNameEntryId.py
zbx911/pyUE4Parse
eb30d27a4341ad68a7104458a0fdfae6a360d153
[ "MIT" ]
6
2021-09-02T10:28:21.000Z
2022-03-30T22:13:37.000Z
from typing import Union from UE4Parse.BinaryReader import BinaryStream class FNameEntryId: Value: int def __init__(self, reader: Union[BinaryStream, int]): if isinstance(reader, BinaryStream): self.Value = reader.readUInt32() else: self.Value = reader
21.785714
57
0.665574
229
0.75082
0
0
0
0
0
0
0
0
f354fb51e5ec1448b0f4a58e8768e000570fc5fa
696
py
Python
setup.py
Niger-Volta-LTI/iranlowo
0046b61105ffadfff21dd8b37754b9d95177fbf8
[ "MIT" ]
17
2019-07-05T20:30:35.000Z
2022-02-28T10:00:24.000Z
setup.py
Olamyy/iranlowo
1feb123988a8afac3ac53c7acfb72df862c4bc18
[ "MIT" ]
17
2019-07-06T09:10:10.000Z
2020-11-13T08:30:37.000Z
setup.py
ruohoruotsi/iranlowo
0046b61105ffadfff21dd8b37754b9d95177fbf8
[ "MIT" ]
7
2019-07-01T01:59:07.000Z
2020-11-27T17:12:46.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ url: https://github.com/Niger-Volta-LTI download_url: archive/v{version}.tar.gz package_data={'iranlowo': ['models/yo_adr_bahdanau_lstm_128_1_1_step_100000_release.pt']} versioning="distance", # we start from 0.0.0 using v{major}.{minor}.0 """ from setuptools impo...
24.857143
89
0.704023
0
0
0
0
0
0
0
0
443
0.63467
f357486dc273f59930f7e3c9ba8e47b6209add12
1,574
py
Python
pyDipole/particles.py
rakab/pyDipole
2793db6db951e9e5e79e064430a0faf6636d3a2a
[ "BSD-3-Clause" ]
null
null
null
pyDipole/particles.py
rakab/pyDipole
2793db6db951e9e5e79e064430a0faf6636d3a2a
[ "BSD-3-Clause" ]
null
null
null
pyDipole/particles.py
rakab/pyDipole
2793db6db951e9e5e79e064430a0faf6636d3a2a
[ "BSD-3-Clause" ]
null
null
null
__all__ = [ 'Particle', 'particles', ] """ Style: name: [mass(string),isQCD(bool)] """ particle_table = { 'u' : ['0' , True], 'ubar' : ['0' , True], 't' : ['mt', True], 'tbar' : ['mt', True], 'e' : ['0' , False], 'ebar' : ['0' , False], ...
24.984127
85
0.527954
864
0.54892
0
0
241
0.153113
0
0
256
0.162643
f357722e828fbb3e6184da8f11524b64bb6365ce
578
py
Python
rastervision/data/label_store/label_store.py
aaron8tang/raster-vision
a1af78bafb8f19ccc40c476adb551bdc23a33611
[ "Apache-2.0" ]
2
2019-04-17T13:04:23.000Z
2020-10-04T10:28:27.000Z
rastervision/data/label_store/label_store.py
aaron8tang/raster-vision
a1af78bafb8f19ccc40c476adb551bdc23a33611
[ "Apache-2.0" ]
null
null
null
rastervision/data/label_store/label_store.py
aaron8tang/raster-vision
a1af78bafb8f19ccc40c476adb551bdc23a33611
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod class LabelStore(ABC): """This defines how to store prediction labels are stored for a scene. """ @abstractmethod def save(self, labels): """Save. Args: labels - Labels to be saved, the type of which will be dependant on the type ...
21.407407
87
0.576125
539
0.932526
0
0
416
0.719723
0
0
301
0.520761
f359c6c0485b2afb42cd60a1563a6e6b2a3277bc
677
py
Python
shadow.py
luctalatinian/pygame_stealth
9d7db47ed23621aa038f7c5e06dcab0c6b33de66
[ "MIT" ]
null
null
null
shadow.py
luctalatinian/pygame_stealth
9d7db47ed23621aa038f7c5e06dcab0c6b33de66
[ "MIT" ]
null
null
null
shadow.py
luctalatinian/pygame_stealth
9d7db47ed23621aa038f7c5e06dcab0c6b33de66
[ "MIT" ]
1
2018-07-09T20:56:10.000Z
2018-07-09T20:56:10.000Z
import pygame class Shadow: # shadow color COLOR = (32, 32, 32, 192) # unit size in pixels of a shadow # length/width multiples are passed to the constructor # to determine individual shadow size U = 32 def __init__(self, posX, posY, width, length): self.posX = pos...
28.208333
63
0.5613
658
0.971935
0
0
0
0
0
0
142
0.209749
f35ad558fbc65dfdc480de2f3a5e28959ccae809
533
py
Python
backend/src/util/daos.py
JulianFrattini/todo-list-python
819e8856b2a8af28b8ffaeb20c024e9704fc635f
[ "Apache-2.0" ]
null
null
null
backend/src/util/daos.py
JulianFrattini/todo-list-python
819e8856b2a8af28b8ffaeb20c024e9704fc635f
[ "Apache-2.0" ]
null
null
null
backend/src/util/daos.py
JulianFrattini/todo-list-python
819e8856b2a8af28b8ffaeb20c024e9704fc635f
[ "Apache-2.0" ]
null
null
null
from src.util.dao import DAO daos = {} def getDao(collection_name: str): """Obtain a data access object of a collection. The purpose of the realization using the singleton pattern is to avoid multiple data access objects for the same collection parameters: collection_name -- the name of the collec...
33.3125
113
0.718574
0
0
0
0
0
0
0
0
317
0.594747
f35b316b80ee742d895d827ad178ce7c0ac0048e
2,125
py
Python
tinkertest/utils.py
bnmnetp/tinkerer
46e805e20090a166f5ef83e287dc88561c9c41dc
[ "BSD-2-Clause" ]
1
2020-09-15T14:51:59.000Z
2020-09-15T14:51:59.000Z
tinkertest/utils.py
mkouhei/tinkerer
71190b83233342c0a9831b0e4e7547ea3eace03a
[ "BSD-2-Clause" ]
null
null
null
tinkertest/utils.py
mkouhei/tinkerer
71190b83233342c0a9831b0e4e7547ea3eace03a
[ "BSD-2-Clause" ]
null
null
null
''' Test utilities ~~~~~~~~~~~~~~ Base test case class inherited by all test cases. Utility functions. :copyright: Copyright 2011-2018 by Vlad Riscutia and contributors (see CONTRIBUTORS file) :license: FreeBSD, see LICENSE file ''' import os import shutil import sys from sphinx.cmd.build impo...
23.876404
76
0.689412
431
0.202824
0
0
0
0
0
0
852
0.400941
f35e15c3e1fa141fb8e013a3abdcb344ad2f4a23
4,122
py
Python
server/views_profile.py
sampsontan/virtual-clinic
5d8cbb199fb7ff1658c8d1245d8756da7d4e2d34
[ "MIT" ]
50
2019-02-04T12:33:49.000Z
2022-03-14T04:56:20.000Z
server/views_profile.py
sampsontan/virtual-clinic
5d8cbb199fb7ff1658c8d1245d8756da7d4e2d34
[ "MIT" ]
7
2020-12-01T03:07:37.000Z
2021-02-24T07:56:17.000Z
server/views_profile.py
sampsontan/virtual-clinic
5d8cbb199fb7ff1658c8d1245d8756da7d4e2d34
[ "MIT" ]
27
2018-04-04T03:16:00.000Z
2022-03-30T11:08:35.000Z
from django.shortcuts import render from django.contrib.auth import authenticate from server.forms import PasswordForm, ProfileForm from server.models import Action, Account, Message from server import appointment from server import views from server import logger from server import message def profile_view(request)...
49.071429
121
0.715429
0
0
0
0
0
0
0
0
955
0.231684
f35e505927276af6aead2233d5ffc470b867a7a9
9,500
py
Python
ixia_orch/setup/__main__.py
QualiSystemsLab/TechRepo
5abb0769ad0299ed6bad5d40b0b98c8179eaa030
[ "Apache-2.0" ]
null
null
null
ixia_orch/setup/__main__.py
QualiSystemsLab/TechRepo
5abb0769ad0299ed6bad5d40b0b98c8179eaa030
[ "Apache-2.0" ]
null
null
null
ixia_orch/setup/__main__.py
QualiSystemsLab/TechRepo
5abb0769ad0299ed6bad5d40b0b98c8179eaa030
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import cloudshell.helpers.scripts.cloudshell_dev_helpers as dev_helpers from cloudshell.api.cloudshell_api import InputNameValue from cloudshell.workflow.orchestration.sandbox import Sandbox from cloudshell.workflow.orchestration.setup.default_setup_orchestrator import...
51.075269
187
0.669368
0
0
0
0
0
0
0
0
3,662
0.385474
f35f42825e9ec49afa9f00f36718a54a1f778562
2,470
py
Python
src/sparkmon/mlflow_utils.py
stephanecollot/sparkmon
ca7aee915e0f1db2fb82d41e08a0a2d782236e23
[ "MIT" ]
11
2021-07-05T12:57:54.000Z
2022-01-30T05:25:27.000Z
src/sparkmon/mlflow_utils.py
stephanecollot/sparkmon
ca7aee915e0f1db2fb82d41e08a0a2d782236e23
[ "MIT" ]
83
2021-07-12T22:14:16.000Z
2022-03-28T22:33:13.000Z
src/sparkmon/mlflow_utils.py
stephanecollot/sparkmon
ca7aee915e0f1db2fb82d41e08a0a2d782236e23
[ "MIT" ]
2
2021-07-13T09:44:39.000Z
2021-12-01T11:12:37.000Z
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, mo...
38.59375
101
0.748583
0
0
994
0.402429
1,010
0.408907
0
0
1,566
0.634008
f35faf6124800bbcd57e33c69660b190bc9d8905
1,854
py
Python
service/microservice.py
SFDigitalServices/bluebeam-microservice
bb529f291b3399e29b71dd754e77c73f759c7762
[ "MIT" ]
1
2020-05-28T17:38:12.000Z
2020-05-28T17:38:12.000Z
service/microservice.py
SFDigitalServices/bluebeam-microservice
bb529f291b3399e29b71dd754e77c73f759c7762
[ "MIT" ]
3
2021-02-10T02:34:39.000Z
2022-01-07T23:28:51.000Z
service/microservice.py
SFDigitalServices/bluebeam-microservice
bb529f291b3399e29b71dd754e77c73f759c7762
[ "MIT" ]
null
null
null
"""Main application module""" import os import json import jsend import sentry_sdk import falcon from .resources.db import create_session from .resources.welcome import Welcome from .resources.submission import Submission from .resources.export import Export, ExportStatus from .resources.login import Login def start_s...
33.107143
77
0.69849
669
0.360841
0
0
0
0
0
0
603
0.325243
f35fc9e10ba11e3ac0a41499770d8ee424ef0361
1,458
py
Python
apps/accounts/serializers/user_serializer.py
vicobits/django-wise
3fdc01eabdff459b31e016f9f6d1cafc19c5a292
[ "MIT" ]
5
2020-04-11T20:11:48.000Z
2021-03-16T23:58:01.000Z
apps/accounts/serializers/user_serializer.py
victoraguilarc/django-wise
3fdc01eabdff459b31e016f9f6d1cafc19c5a292
[ "MIT" ]
5
2020-04-11T20:17:56.000Z
2021-06-16T19:18:29.000Z
apps/accounts/serializers/user_serializer.py
victoraguilarc/django-wise
3fdc01eabdff459b31e016f9f6d1cafc19c5a292
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from rest_framework import serializers from apps.accounts.models import User from apps.accounts.api.error_codes import AccountsErrorCodes from apps.contrib.api.exceptions.base import SerializerFieldExceptionMixin PASSWORD_MAX_LENGTH = User._meta.get_field('password').max_length # noqa: WPS43...
26.509091
87
0.650892
866
0.593964
0
0
0
0
0
0
328
0.224966
f361061823963f88458df17e30230bb3e0fa2a85
3,013
py
Python
biodata/api/views/other.py
znatty22/biodataservice
a3eeb137d2e727a0fc58437b185f2637bc4665ed
[ "Apache-2.0" ]
null
null
null
biodata/api/views/other.py
znatty22/biodataservice
a3eeb137d2e727a0fc58437b185f2637bc4665ed
[ "Apache-2.0" ]
null
null
null
biodata/api/views/other.py
znatty22/biodataservice
a3eeb137d2e727a0fc58437b185f2637bc4665ed
[ "Apache-2.0" ]
null
null
null
""" Views for endpoints that are not part of the biodata CRUD API """ from rest_framework import status from rest_framework.decorators import api_view from rest_framework.response import Response from django.conf import settings from django.db import models import django_rq from rq.job import Job, NoSuchJobError, JobSt...
26.901786
76
0.593097
0
0
0
0
1,608
0.533687
0
0
835
0.277132
f36270ffc910141d9277e13fd2f64f8e20587210
1,100
py
Python
test_clock.py
keldwud/ball-clock
1f360328fbd5fb10e902fbe7d5cc9739e0f48f83
[ "MIT" ]
1
2018-12-12T16:49:42.000Z
2018-12-12T16:49:42.000Z
test_clock.py
keldwud/ball-clock
1f360328fbd5fb10e902fbe7d5cc9739e0f48f83
[ "MIT" ]
null
null
null
test_clock.py
keldwud/ball-clock
1f360328fbd5fb10e902fbe7d5cc9739e0f48f83
[ "MIT" ]
1
2021-05-28T21:59:42.000Z
2021-05-28T21:59:42.000Z
#!/usr/bin/env python import unittest from clock import how_many_balls from clock import minute_balls from clock import five_minute_balls from clock import hour_balls from clock import run_ball_queue class BallsTestCase(unittest.TestCase): """Tests for `ball-clock.py`.""" def test_how_many_balls_min_balls(self):...
24.444444
79
0.722727
851
0.773636
0
0
0
0
0
0
343
0.311818
f3632472aa4ff867ac9b5926766ce574661402f2
220
py
Python
RoboChrome.roboFontExt/lib/_doc.py
roboDocs/RoboChrome
8891f7115e16c54cdb2b1452f02731b294b47ff2
[ "MIT" ]
12
2018-04-26T03:58:35.000Z
2021-07-05T17:13:55.000Z
RoboChrome.roboFontExt/lib/_doc.py
roboDocs/RoboChrome
8891f7115e16c54cdb2b1452f02731b294b47ff2
[ "MIT" ]
4
2019-08-21T14:35:36.000Z
2020-04-14T19:25:08.000Z
RoboChrome.roboFontExt/lib/_doc.py
roboDocs/RoboChrome
8891f7115e16c54cdb2b1452f02731b294b47ff2
[ "MIT" ]
3
2019-08-21T14:38:53.000Z
2021-03-30T19:54:25.000Z
from colorfont import ColorFont import pydoc from mojo.UI import HelpWindow doc = pydoc.HTMLDoc() html = doc.document(ColorFont) HelpWindow(htmlString=html) html = doc.document(ColorGlyph) HelpWindow(htmlString=html)
18.333333
31
0.804545
0
0
0
0
0
0
0
0
0
0
f36495e33d596f7361caa6c8ba8d2e5cf0761c52
25,617
py
Python
devops/ops/api/assets_api.py
jinjin123/devops2.0
8241aff0c6677cef55c9e13b7d182fb75a814bbe
[ "MIT" ]
null
null
null
devops/ops/api/assets_api.py
jinjin123/devops2.0
8241aff0c6677cef55c9e13b7d182fb75a814bbe
[ "MIT" ]
null
null
null
devops/ops/api/assets_api.py
jinjin123/devops2.0
8241aff0c6677cef55c9e13b7d182fb75a814bbe
[ "MIT" ]
null
null
null
# !/usr/bin/env python # _*_ coding:utf-8 _*_ from rest_framework import viewsets, permissions from ops.serializers import * from ops.models import * from rest_framework import status from django.http import Http404 from rest_framework.views import APIView from rest_framework.response import Response from rest_framewor...
43.640545
124
0.615099
0
0
0
0
25,644
0.980313
0
0
3,802
0.145342
f3666df8e2a3d53709ecdedaf5a73aa5a39694e9
2,016
py
Python
tests/test_event_hooks.py
eruvanos/dynafile
207425b073a963b01c677b697e74842b429c004a
[ "MIT" ]
null
null
null
tests/test_event_hooks.py
eruvanos/dynafile
207425b073a963b01c677b697e74842b429c004a
[ "MIT" ]
null
null
null
tests/test_event_hooks.py
eruvanos/dynafile
207425b073a963b01c677b697e74842b429c004a
[ "MIT" ]
null
null
null
from dynafile import Dynafile, Event class Observer: def __init__(self): self.calls = [] def __call__(self, *args, **kwargs): self.calls.append((args, kwargs)) @property def latest(self): return self.calls[-1] if self.calls else None def test_put_item_schedules_event(tmp_pa...
29.647059
83
0.579861
238
0.118056
0
0
85
0.042163
0
0
262
0.12996
f36671695f4f2c5246e5dd397946e01a018bb4fe
251
py
Python
chat/urls.py
talhaibnmahmud/System-Development-Project
221ab5856dfcb00aff0fe8838bb9f40c725dbbf6
[ "MIT" ]
null
null
null
chat/urls.py
talhaibnmahmud/System-Development-Project
221ab5856dfcb00aff0fe8838bb9f40c725dbbf6
[ "MIT" ]
null
null
null
chat/urls.py
talhaibnmahmud/System-Development-Project
221ab5856dfcb00aff0fe8838bb9f40c725dbbf6
[ "MIT" ]
null
null
null
from django.urls.conf import path from chat.views import MessageListView, MessageView app_name = 'chat' urlpatterns = [ path('', MessageListView.as_view(), name='message-home'), path('<slug:pk>/', MessageView.as_view(), name='message'), ]
20.916667
62
0.701195
0
0
0
0
0
0
0
0
43
0.171315
f367913e08216490dbf81b44ad9a97732b5bc0a3
5,099
py
Python
tests/test_data_handling.py
LLR-ILD/alldecays
08e51e99385ae7ca96edefddafd715e1d8cac3d3
[ "Apache-2.0" ]
null
null
null
tests/test_data_handling.py
LLR-ILD/alldecays
08e51e99385ae7ca96edefddafd715e1d8cac3d3
[ "Apache-2.0" ]
null
null
null
tests/test_data_handling.py
LLR-ILD/alldecays
08e51e99385ae7ca96edefddafd715e1d8cac3d3
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest from conftest import channel1_path, channel_polarized_path, decay_names import alldecays @pytest.mark.parametrize("data_type", ["polarized", "unpolarized"]) def test_name_changes_work(data_type, channel1, channel_polarized): channel = dict(polarized=channel_polarized, unpolarized...
35.409722
80
0.740341
0
0
0
0
1,553
0.30457
0
0
263
0.051579
f36b2d045e4b5fb8f6739e6b9464ce4f48c00174
1,614
py
Python
elections/forms.py
zinaukarenku/zkr-platform
8daf7d1206c482f1f8e0bcd54d4fde783e568774
[ "Apache-2.0" ]
2
2018-11-16T21:45:17.000Z
2019-02-03T19:55:46.000Z
elections/forms.py
zinaukarenku/zkr-platform
8daf7d1206c482f1f8e0bcd54d4fde783e568774
[ "Apache-2.0" ]
13
2018-08-17T19:12:11.000Z
2022-03-11T23:27:41.000Z
elections/forms.py
zinaukarenku/zkr-platform
8daf7d1206c482f1f8e0bcd54d4fde783e568774
[ "Apache-2.0" ]
null
null
null
from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Div, Submit from django import forms from django.forms.utils import ErrorList from web.models import Municipality from django.utils.translation import gettext_lazy as _ class MayorCandidatesFiltersForm(forms.Form): municipality = ...
35.866667
120
0.672243
1,360
0.841584
0
0
0
0
0
0
134
0.082921
f36bb2734cf8a06f514d97eb5b2c6edbcf20fc1d
988
py
Python
DataBatcher.py
malfusion/furnace
2d2a31212f0d67a99743a125eee1825da2af2182
[ "MIT" ]
null
null
null
DataBatcher.py
malfusion/furnace
2d2a31212f0d67a99743a125eee1825da2af2182
[ "MIT" ]
1
2021-01-28T20:27:14.000Z
2021-01-28T20:27:14.000Z
DataBatcher.py
malfusion/furnace
2d2a31212f0d67a99743a125eee1825da2af2182
[ "MIT" ]
null
null
null
from collections import deque class DataBatcher: def __init__(self, keyFunc, valFunc=None): self.keyFunc = keyFunc self.valFunc = valFunc self.prevKey = None self.batches = deque() self.batch = None def addData(self, data): key = self.keyFunc(data) ...
24.7
71
0.563765
934
0.945344
91
0.092105
0
0
0
0
29
0.029352
f36c3c469c723fce76cb22904c9662d3e5c20302
253
py
Python
Databases/kw_args.py
BrandonP321/Python-masterclass
fac81fe4f8acfa37076820405d96132f9f23b311
[ "MIT" ]
null
null
null
Databases/kw_args.py
BrandonP321/Python-masterclass
fac81fe4f8acfa37076820405d96132f9f23b311
[ "MIT" ]
null
null
null
Databases/kw_args.py
BrandonP321/Python-masterclass
fac81fe4f8acfa37076820405d96132f9f23b311
[ "MIT" ]
null
null
null
def print_backwards(*args, **kwargs): print(kwargs) for word in args[::-1]: print(word[::-1], end=' ', **kwargs) with open("backwards.txt", 'w') as backwards: print_backwards("hellow", "all", "of", "my", "friends", file=backwards)
28.111111
75
0.600791
0
0
0
0
0
0
0
0
51
0.201581
f36c464ee68faaf7ed9c2d48de3665e5eff18856
1,309
py
Python
Dynamic Programming/chess.py
roycek7/operation_research
37f01b7fcd93494a7de38459c324132516724b99
[ "MIT" ]
1
2021-04-17T17:33:30.000Z
2021-04-17T17:33:30.000Z
Dynamic Programming/chess.py
roycek7/operation_research
37f01b7fcd93494a7de38459c324132516724b99
[ "MIT" ]
null
null
null
Dynamic Programming/chess.py
roycek7/operation_research
37f01b7fcd93494a7de38459c324132516724b99
[ "MIT" ]
null
null
null
""" Chess Strategy Vladimir is playing Keith in a two-game chess match. Winning a game scores one match point and drawing a game scores a half match point. After the two games are played, the player with more match points is declared the champion. If the two players are tied after two games, they continue playing until...
42.225806
118
0.657754
0
0
0
0
0
0
0
0
905
0.691367
f36c635d3951bb07b4912eb1c952f427fda6d438
1,329
py
Python
py.area1.py
pedrorsvalle/python
88f51ff3135447b3529298e060dd57b15a206130
[ "MIT" ]
null
null
null
py.area1.py
pedrorsvalle/python
88f51ff3135447b3529298e060dd57b15a206130
[ "MIT" ]
null
null
null
py.area1.py
pedrorsvalle/python
88f51ff3135447b3529298e060dd57b15a206130
[ "MIT" ]
null
null
null
def retangulo(lado_a,lado_b): """calcula a area de um retangulo""" area= lado_a*lado_b return area def triangulo(base,altura): """calcula a area de um triangulo""" area=(base*altura)/2 return area def circulo(raio): """calcula a area de um circulo""" area=3.14*(raio**2) ...
20.765625
69
0.543266
0
0
0
0
0
0
0
0
471
0.354135
f36d640e79dacaedb0c4acb228f021e81749af5f
4,261
py
Python
tests/unit/test_book_reads.py
josealobato/go-over
ebc012a4d74a81fc729419f4ea670b9d6b4271bb
[ "MIT" ]
null
null
null
tests/unit/test_book_reads.py
josealobato/go-over
ebc012a4d74a81fc729419f4ea670b9d6b4271bb
[ "MIT" ]
7
2022-02-13T09:21:55.000Z
2022-03-02T07:56:31.000Z
tests/unit/test_book_reads.py
josealobato/go-over
ebc012a4d74a81fc729419f4ea670b9d6b4271bb
[ "MIT" ]
null
null
null
# More info at: https://vald-phoenix.github.io/pylint-errors/ # pylint: disable=C0114 # pylint: disable=C0116 from datetime import datetime import pytest from go_over.goodreads import Book, BookRead, Bookshelf # pylint: disable=C0301 # Line too long BOOKS = [ {"Book Id": "00", "Title": "Book 0", "Author": "Cervan...
32.526718
139
0.663459
0
0
0
0
0
0
0
0
1,439
0.337714
f3718eeff96e99b364364254176ffbb225e3ed47
993
py
Python
gym_collision_avoidance/experiments/src/test_pytorch.py
meghdeepj/Social-Navigation-Simulator
806d304081bf5ff4fc7a0a58defb050627375865
[ "MIT" ]
null
null
null
gym_collision_avoidance/experiments/src/test_pytorch.py
meghdeepj/Social-Navigation-Simulator
806d304081bf5ff4fc7a0a58defb050627375865
[ "MIT" ]
null
null
null
gym_collision_avoidance/experiments/src/test_pytorch.py
meghdeepj/Social-Navigation-Simulator
806d304081bf5ff4fc7a0a58defb050627375865
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F print(torch.cuda.is_available()) device=torch.device("cpu") # device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") print(device) class PatNet(nn.Module): ## HYPERPARAMTERS def __init__(self, nA, ...
26.837838
73
0.635448
685
0.689829
0
0
0
0
0
0
227
0.2286
f37405eeefd850d1e3f3acef5be96b619c25c9aa
11,125
py
Python
templates/illumraw2call.py
lvclark/h3agwas
5e42e60123b819d3c331a91b25ee50846e55af3b
[ "MIT" ]
62
2016-08-29T11:27:35.000Z
2022-03-10T17:16:14.000Z
templates/illumraw2call.py
lvclark/h3agwas
5e42e60123b819d3c331a91b25ee50846e55af3b
[ "MIT" ]
33
2016-12-26T13:48:19.000Z
2021-12-05T13:34:06.000Z
templates/illumraw2call.py
lvclark/h3agwas
5e42e60123b819d3c331a91b25ee50846e55af3b
[ "MIT" ]
50
2017-04-15T04:17:43.000Z
2022-03-30T07:26:01.000Z
#! /usr/bin/env python from __future__ import print_function import argparse import os import sys import struct from numpy import empty, uint32,fromfile,uint16 # we avoid the use of backslashes to assist in templatising the code for Nextflow TAB=unichr(9) EOL=unichr(10) FID_nSNPsRead = 1000 FID_IlluminaID ...
35.657051
152
0.598382
805
0.07236
0
0
0
0
0
0
2,536
0.227955
f3756e26ce73e2ba77e2e0abfa79281d0a6b2617
18,090
py
Python
spacy/lang/ru/tokenizer_exceptions.py
snosrap/spaCy
3f68bbcfec44ef55d101e6db742d353b72652129
[ "MIT" ]
1
2019-11-27T13:14:04.000Z
2019-11-27T13:14:04.000Z
spacy/lang/ru/tokenizer_exceptions.py
snosrap/spaCy
3f68bbcfec44ef55d101e6db742d353b72652129
[ "MIT" ]
2
2022-02-21T05:50:08.000Z
2022-03-15T03:19:49.000Z
spacy/lang/ru/tokenizer_exceptions.py
snosrap/spaCy
3f68bbcfec44ef55d101e6db742d353b72652129
[ "MIT" ]
null
null
null
from ..tokenizer_exceptions import BASE_EXCEPTIONS from ...symbols import ORTH, NORM from ...util import update_exc _exc = {} _abbrev_exc = [ # Weekdays abbreviations {ORTH: "пн", NORM: "понедельник"}, {ORTH: "вт", NORM: "вторник"}, {ORTH: "ср", NORM: "среда"}, {ORTH: "чт", NORM: "четверг"}, {...
45
88
0.58513
0
0
0
0
0
0
0
0
16,993
0.674647
f3769ab6fea4c9708d44e62ffb54dbaaf6ae6c86
141
py
Python
danspeech/audio/__init__.py
la3lma/danspeech
acd9dd1e2b9750292bd27c97ee25cf65edc196f2
[ "Apache-2.0" ]
21
2019-08-29T07:02:02.000Z
2022-03-15T08:58:46.000Z
danspeech/audio/__init__.py
la3lma/danspeech
acd9dd1e2b9750292bd27c97ee25cf65edc196f2
[ "Apache-2.0" ]
11
2019-08-29T06:56:49.000Z
2022-02-16T15:22:17.000Z
danspeech/audio/__init__.py
la3lma/danspeech
acd9dd1e2b9750292bd27c97ee25cf65edc196f2
[ "Apache-2.0" ]
3
2020-04-21T13:04:32.000Z
2021-04-27T10:04:51.000Z
from .resources import load_audio, load_audio_wavPCM, Microphone from .parsers import SpectrogramAudioParser, InferenceSpectrogramAudioParser
70.5
76
0.893617
0
0
0
0
0
0
0
0
0
0
f377176313884cffb6df2a6b11f5b8d6f43556f5
638
py
Python
newcomer/MachineLearning/2-3a.py
yutake27/newcomer-exercise
e4466edd03e5f1803bbc0c1b0be39a475297392a
[ "CC0-1.0" ]
null
null
null
newcomer/MachineLearning/2-3a.py
yutake27/newcomer-exercise
e4466edd03e5f1803bbc0c1b0be39a475297392a
[ "CC0-1.0" ]
null
null
null
newcomer/MachineLearning/2-3a.py
yutake27/newcomer-exercise
e4466edd03e5f1803bbc0c1b0be39a475297392a
[ "CC0-1.0" ]
null
null
null
from sklearn.datasets import load_svmlight_file from sklearn.svm import SVC from sklearn.model_selection import train_test_split, GridSearchCV from sklearn import metrics param_grid = {'C':[0.001,0.01,0.1,1,10,100]} X,y = load_svmlight_file('MachineLearning/disorder.libsvm.dat') X_train, X_test, y_train, y_test = tra...
45.571429
98
0.791536
0
0
0
0
0
0
0
0
71
0.111285
f37864f533d84e03e2042457fe7404558577ab87
13,326
py
Python
param-net-mst.py
markusMM/Network-Expectation-Truncation
6b87ed1c5d3da8a6a28f3675390de58061b673d5
[ "AFL-3.0" ]
null
null
null
param-net-mst.py
markusMM/Network-Expectation-Truncation
6b87ed1c5d3da8a6a28f3675390de58061b673d5
[ "AFL-3.0" ]
1
2019-01-26T10:39:35.000Z
2019-01-26T10:39:35.000Z
param-net-mst.py
markusMM/Network-Expectation-Truncation
6b87ed1c5d3da8a6a28f3675390de58061b673d5
[ "AFL-3.0" ]
null
null
null
import numpy as np import sys import os os.stat('pylib') sys.path.append("pylib") sys.path.append("pylib/utils") import argparse import tables from pulp.utils.parallel import pprint from pulp.utils.barstest import generate_bars_dict from sklearn.neural_network.multilayer_perceptron import MLPClassifier #%% -- General ...
26.812877
121
0.562885
0
0
0
0
0
0
0
0
3,617
0.271424
f3794b8036c6961209cfd4976b19858f3b884290
120
py
Python
abc/abc076/abc076b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc076/abc076b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc076/abc076b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
N = int(input()) K = int(input()) result = 1 for _ in range(N): result = min(result * 2, result + K) print(result)
15
40
0.591667
0
0
0
0
0
0
0
0
0
0
f3798844d976d0deb0b955c5afd70a09e308f441
5,869
py
Python
devops/lib/python3.6/site-packages/django_jenkins/management/commands/jenkins.py
AishwaryaANair/DevOpsCI
f08e5e33f598b7ebd56ed88b53cb39dab9d88d6d
[ "MIT" ]
null
null
null
devops/lib/python3.6/site-packages/django_jenkins/management/commands/jenkins.py
AishwaryaANair/DevOpsCI
f08e5e33f598b7ebd56ed88b53cb39dab9d88d6d
[ "MIT" ]
null
null
null
devops/lib/python3.6/site-packages/django_jenkins/management/commands/jenkins.py
AishwaryaANair/DevOpsCI
f08e5e33f598b7ebd56ed88b53cb39dab9d88d6d
[ "MIT" ]
null
null
null
import os import sys import warnings from importlib import import_module from django.apps import apps from django.conf import settings from django.core.management.commands.test import Command as TestCommand from django_jenkins.runner import CITestSuiteRunner def get_runner(settings, test_runner_class=None): if ...
39.126667
103
0.601125
5,012
0.853979
0
0
0
0
0
0
1,353
0.230533
f37a64e512fe5cd0afd1ee31d20ccc49f55d4c8d
2,303
py
Python
src/gabby/udp_receiver.py
luanguimaraesla/gabby
93212a83bcde9599a1a42d35d0d9263bf766ff54
[ "MIT" ]
null
null
null
src/gabby/udp_receiver.py
luanguimaraesla/gabby
93212a83bcde9599a1a42d35d0d9263bf766ff54
[ "MIT" ]
null
null
null
src/gabby/udp_receiver.py
luanguimaraesla/gabby
93212a83bcde9599a1a42d35d0d9263bf766ff54
[ "MIT" ]
null
null
null
""" Tools to encapsulate generic receive connectors """ import logging import time import mqttsn.client as mqttsn from collections import namedtuple from .settings import UDP_URL, UDP_PORT from .decorators import ensure_udp_connection log = logging.getLogger('udpreceiver') UDPMessage = namedtuple('UDPMessage', ['pay...
26.77907
74
0.617455
1,956
0.849327
0
0
744
0.323057
0
0
857
0.372123
f37b8f5c7b578b839ecbd2fcf931a116c7e5396d
4,860
py
Python
misc/marker/map.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
70
2015-11-16T18:04:01.000Z
2022-03-05T09:04:02.000Z
misc/marker/map.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
1
2016-08-03T05:13:19.000Z
2016-08-03T06:19:39.000Z
misc/marker/map.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
34
2015-12-15T17:29:23.000Z
2021-11-18T14:15:12.000Z
#!/usr/bin/env python2 import os, sys, argparse, pylab, json path = os.path.dirname(os.path.realpath(sys.argv[0])) parser = argparse.ArgumentParser(description = 'Graphical view of marked locations') parser.add_argument('--filename', type = str, help = 'File from which to read marks (defaults to marks.json)', default...
36
134
0.648148
0
0
0
0
0
0
0
0
988
0.203292
f37bd2d3826f6978ed09b73ecee68d64081a0fa6
1,028
py
Python
src/tox_travis/hacks.py
disconnect3d/tox-travis
58b594b1b0347e558d660c3089d0ae335c0fcc0c
[ "MIT" ]
null
null
null
src/tox_travis/hacks.py
disconnect3d/tox-travis
58b594b1b0347e558d660c3089d0ae335c0fcc0c
[ "MIT" ]
null
null
null
src/tox_travis/hacks.py
disconnect3d/tox-travis
58b594b1b0347e558d660c3089d0ae335c0fcc0c
[ "MIT" ]
null
null
null
import os try: from tox.config import default_factors except ImportError: default_factors = None def pypy_version_monkeypatch(): """Patch Tox to work with non-default PyPy 3 versions.""" # Travis virtualenv do not provide `pypy3`, which tox tries to execute. # This doesnt affect Travis python ver...
32.125
75
0.716926
0
0
0
0
0
0
0
0
420
0.40856
f37e25fcba871387dd039c2c129311d5edc97e58
8,072
py
Python
my_sound.py
comp-physics/bubble-dynamics-with-multiscale-resnets
409c6b676f5c9b9219c9c6228e3c012382ae3389
[ "MIT" ]
1
2022-03-15T12:16:01.000Z
2022-03-15T12:16:01.000Z
my_sound.py
comp-physics/bubble_dynamics_with_multiscale_resnets
409c6b676f5c9b9219c9c6228e3c012382ae3389
[ "MIT" ]
null
null
null
my_sound.py
comp-physics/bubble_dynamics_with_multiscale_resnets
409c6b676f5c9b9219c9c6228e3c012382ae3389
[ "MIT" ]
1
2022-03-15T12:16:06.000Z
2022-03-15T12:16:06.000Z
import numpy as np # #========================================================= # # Input Arguments # #========================================================= # with open("parameters.yml", 'r') as stream: # D = yaml.safe_load(stream) # # for key in D: # globals() [str(key)] = D[key] # print('{}: {}'.for...
43.869565
124
0.436447
7,264
0.899901
0
0
2,574
0.31888
0
0
4,160
0.515362
f37ed4232986be023beaaf668d06b5e77ac074e6
851
py
Python
ucscentralsdk/methodmeta/LoggingSyncOcnsMeta.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/methodmeta/LoggingSyncOcnsMeta.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/methodmeta/LoggingSyncOcnsMeta.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
"""This module contains the meta information of LoggingSyncOcns ExternalMethod.""" from ..ucscentralcoremeta import MethodMeta, MethodPropertyMeta method_meta = MethodMeta("LoggingSyncOcns", "loggingSyncOcns", "Version142b") prop_meta = { "cookie": MethodPropertyMeta("Cookie", "cookie", "Xs:string", "Version142b...
40.52381
124
0.720329
0
0
0
0
0
0
0
0
516
0.606345
f37ee31cfb8b47e410af4a949e4a6b40e2743fdd
6,351
py
Python
karaoke-maker/backend/search/file_search.py
MorsCerta-crypto/KaraokeMaker
9784daa5595ba675ead83caf3bc94d2d14421495
[ "MIT" ]
null
null
null
karaoke-maker/backend/search/file_search.py
MorsCerta-crypto/KaraokeMaker
9784daa5595ba675ead83caf3bc94d2d14421495
[ "MIT" ]
null
null
null
karaoke-maker/backend/search/file_search.py
MorsCerta-crypto/KaraokeMaker
9784daa5595ba675ead83caf3bc94d2d14421495
[ "MIT" ]
null
null
null
""" find song if already downloaded in filesystem """ from dataclasses import dataclass import os from pathlib import Path from typing import Optional, Union import pickle from utils import Song @dataclass class DownloadedSongs: def __init__(self, songs_path: str = "karaoke-maker/data/downloads/"): if so...
37.803571
110
0.571249
6,123
0.9641
0
0
6,134
0.965832
0
0
1,595
0.251142
f37f063ffa0cd66c554790bd5c044be104ee8f35
190
py
Python
Windows/WaitingRoom/waiting_room.py
SuperSecretPryncyMafia/PKN
3de43c3cd2f63d29098adb92b563bbc4bd79bbf8
[ "MIT" ]
null
null
null
Windows/WaitingRoom/waiting_room.py
SuperSecretPryncyMafia/PKN
3de43c3cd2f63d29098adb92b563bbc4bd79bbf8
[ "MIT" ]
null
null
null
Windows/WaitingRoom/waiting_room.py
SuperSecretPryncyMafia/PKN
3de43c3cd2f63d29098adb92b563bbc4bd79bbf8
[ "MIT" ]
null
null
null
from abc import ABC from .view import View from .model import Model from .controller import Controller class WaitingRoom(ABC): Model = Model View = View Controller = Controller
19
34
0.742105
85
0.447368
0
0
0
0
0
0
0
0
f37f5b44b527c47327e13e3adfceadc8d8345966
20,795
py
Python
lambda/lambda_function.py
ulyssesBML/Viva-a-Revolu-o-AlexaGame
f11414cd6a2c8c214f6ded3d44779f6a396a8a54
[ "MIT" ]
null
null
null
lambda/lambda_function.py
ulyssesBML/Viva-a-Revolu-o-AlexaGame
f11414cd6a2c8c214f6ded3d44779f6a396a8a54
[ "MIT" ]
1
2020-02-17T21:56:55.000Z
2020-02-18T17:07:43.000Z
lambda/lambda_function.py
ulyssesBML/Viva-a-Revolu-o-AlexaGame
f11414cd6a2c8c214f6ded3d44779f6a396a8a54
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This sample demonstrates handling intents from an Alexa skill using the Alexa Skills Kit SDK for Python. # Please visit https://alexa.design/cookbook for additional examples on implementing slots, dialog management, # session persistence, api calls, and more. # This sample is built using the ...
44.72043
350
0.660688
17,862
0.856403
0
0
0
0
0
0
7,306
0.35029
f381bd0ed659abf2b17d985bc390fcf1f738ae82
134
py
Python
comment/urls.py
shunpochang/connect_love_demo
2d556399b50eae3d991b1ed8ea58f48396aec4db
[ "BSD-3-Clause" ]
8
2016-07-03T01:18:46.000Z
2019-12-14T21:02:41.000Z
comment/urls.py
shunpochang/connect_love_demo
2d556399b50eae3d991b1ed8ea58f48396aec4db
[ "BSD-3-Clause" ]
null
null
null
comment/urls.py
shunpochang/connect_love_demo
2d556399b50eae3d991b1ed8ea58f48396aec4db
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^list/$', views.comment_list, name='comment_list'), ]
19.142857
61
0.701493
0
0
0
0
0
0
0
0
24
0.179104
f38641f22cf2208a475873a6c210809242c7f833
7,960
py
Python
notebooks/construct-network/construct_network.py
YuzhongHuangCS/journal-citation-cartels
7b82d9e081555f5b40eb6cc6f44f65ce1c3c1a0f
[ "BSD-2-Clause" ]
2
2020-09-22T09:59:56.000Z
2022-01-31T20:00:49.000Z
notebooks/construct-network/construct_network.py
YuzhongHuangCS/journal-citation-cartels
7b82d9e081555f5b40eb6cc6f44f65ce1c3c1a0f
[ "BSD-2-Clause" ]
1
2021-07-20T20:01:46.000Z
2021-07-20T21:21:03.000Z
notebooks/construct-network/construct_network.py
YuzhongHuangCS/journal-citation-cartels
7b82d9e081555f5b40eb6cc6f44f65ce1c3c1a0f
[ "BSD-2-Clause" ]
3
2021-03-09T04:38:56.000Z
2021-07-13T04:49:15.000Z
import numpy as np import pandas as pd import py2neo import pickle import os,sys from scipy import sparse def edges2adj(edges, raw_edges, year, pcount): # Uniqify edges def uniqify_edges(edges, pcount): ccount = edges.groupby(["target"])["s_target"].nunique() nodes = pd.DataFrame({"ccount": cc...
34.912281
121
0.56495
0
0
0
0
0
0
0
0
2,142
0.269095
f3879f7e2508d44d6784798a2cca8db2145fd810
2,830
py
Python
tests/proxy/test_traversable.py
fjarri/pykka
d1b33b32ba60c6a3e83576ea746b780775e8ff3e
[ "Apache-2.0" ]
null
null
null
tests/proxy/test_traversable.py
fjarri/pykka
d1b33b32ba60c6a3e83576ea746b780775e8ff3e
[ "Apache-2.0" ]
null
null
null
tests/proxy/test_traversable.py
fjarri/pykka
d1b33b32ba60c6a3e83576ea746b780775e8ff3e
[ "Apache-2.0" ]
null
null
null
import pytest import pykka class NestedWithNoMarker: inner = "nested_with_no_marker.inner" class NestedWithNoMarkerAndSlots: __slots__ = ["inner"] def __init__(self): self.inner = "nested_with_no_marker_and_slots.inner" @pykka.traversable class NestedWithDecoratorMarker: inner = "nested_...
28.3
80
0.731449
1,155
0.408127
96
0.033922
1,353
0.478092
0
0
817
0.288693
f388486ab8a72d376eb7fb102005c629b0cdd106
822
py
Python
app/test/task/task_manager_test.py
SummaLabs/DLS
2adba47430b456ad0f324e4c8883a896a23b3fbf
[ "MIT" ]
32
2017-09-04T17:40:39.000Z
2021-02-16T23:08:34.000Z
app/test/task/task_manager_test.py
AymanNabih/DLS
2adba47430b456ad0f324e4c8883a896a23b3fbf
[ "MIT" ]
3
2017-10-09T12:52:54.000Z
2020-06-29T02:48:38.000Z
app/test/task/task_manager_test.py
AymanNabih/DLS
2adba47430b456ad0f324e4c8883a896a23b3fbf
[ "MIT" ]
20
2017-10-07T17:29:50.000Z
2021-01-23T22:01:54.000Z
import pytest from app.backend.task.task_manager import TaskManager from app.backend.task.default_task import Task, DefaultTask @pytest.fixture def task_manager(): return TaskManager() def test_start_task(task_manager): task_manager.start_task(DefaultTask()) task_manager.start_task(DefaultTask()) pr...
21.631579
59
0.738443
0
0
0
0
60
0.072993
0
0
25
0.030414
f38a78cfd7991b1a1d0b33a7701551b5ead6e428
8,007
py
Python
tests/test_compiler/test_analyzer.py
gmantelet/python-lyth
80d467066c578308ecb5c3f274ae0da63e09693c
[ "BSD-2-Clause" ]
null
null
null
tests/test_compiler/test_analyzer.py
gmantelet/python-lyth
80d467066c578308ecb5c3f274ae0da63e09693c
[ "BSD-2-Clause" ]
null
null
null
tests/test_compiler/test_analyzer.py
gmantelet/python-lyth
80d467066c578308ecb5c3f274ae0da63e09693c
[ "BSD-2-Clause" ]
null
null
null
import pytest from lyth.compiler.analyzer import Analyzer from lyth.compiler.error import LythError from lyth.compiler.error import LythSyntaxError from lyth.compiler.lexer import Lexer from lyth.compiler.parser import Parser from lyth.compiler.scanner import Scanner from lyth.compiler.symbol import Field from lyth.co...
35.118421
87
0.665043
42
0.005245
0
0
148
0.018484
0
0
2,131
0.266142
f38eac733fcd5d71a21affa2365e744b5adc7633
1,418
py
Python
src/user_management/user_login/app.py
patrickceg/rhok-bad-date-serverless
8b6d23da9c9c10a1bef41193cb4f9ee0535506a1
[ "MIT" ]
1
2018-04-14T15:37:02.000Z
2018-04-14T15:37:02.000Z
src/user_management/user_login/app.py
patrickceg/rhok-bad-date-serverless
8b6d23da9c9c10a1bef41193cb4f9ee0535506a1
[ "MIT" ]
7
2018-04-15T14:47:57.000Z
2018-04-29T03:55:28.000Z
src/user_management/user_login/app.py
patrickceg/rhok-bad-date-serverless
8b6d23da9c9c10a1bef41193cb4f9ee0535506a1
[ "MIT" ]
5
2018-04-14T16:04:28.000Z
2018-04-14T21:57:38.000Z
import boto3 import os import hashlib import uuid import calendar import time from decimal import Decimal from boto3.dynamodb.conditions import Key def lambda_handler(event, context): debug = os.getenv('DEBUG') is '1' hashed_passwd = hash_password(event['password']) dynamodb = boto3.resource('dynamodb', region_n...
27.269231
95
0.641749
0
0
0
0
0
0
0
0
254
0.179126
f38eb28dc30d81aaf90ad337ef669d71ae24e45a
307
py
Python
twrap/__init__.py
itsnarsi/twrap
cc3128428e37fe0a363e5b18fd7fa0039a963365
[ "MIT" ]
null
null
null
twrap/__init__.py
itsnarsi/twrap
cc3128428e37fe0a363e5b18fd7fa0039a963365
[ "MIT" ]
null
null
null
twrap/__init__.py
itsnarsi/twrap
cc3128428e37fe0a363e5b18fd7fa0039a963365
[ "MIT" ]
null
null
null
# @Author: Narsi Reddy <cibitaw1> # @Date: 2018-09-19T11:53:44-05:00 # @Email: sainarsireddy@outlook.com # @Last modified by: narsi # @Last modified time: 2019-01-03T21:57:01-06:00 # import torch # if '0.4.' not in torch.__version__: # raise Exception('Only works currently with PyTorch ver0.4.x')
34.111111
67
0.697068
0
0
0
0
0
0
0
0
299
0.973941
f38f101b5462e5a48038cb051787c9579a047624
432
py
Python
setup.py
Observatory-Sciences/dls-pmac-lib
e6cde02d6ecef57963ae128f8967413b2752c024
[ "Apache-2.0" ]
1
2021-12-01T23:35:21.000Z
2021-12-01T23:35:21.000Z
setup.py
Observatory-Sciences/dls-pmac-lib
e6cde02d6ecef57963ae128f8967413b2752c024
[ "Apache-2.0" ]
null
null
null
setup.py
Observatory-Sciences/dls-pmac-lib
e6cde02d6ecef57963ae128f8967413b2752c024
[ "Apache-2.0" ]
1
2021-05-26T11:27:21.000Z
2021-05-26T11:27:21.000Z
from setuptools import setup # these lines allow the version to be specified in Makefile.private import os version = os.environ.get("MODULEVER", "0.0") setup( name = 'dls_pmaclib', version = version, description = 'Module', author = 'fgz73762', author_email = 'fgz73762@rl.ac.uk', ...
25.411765
67
0.618056
0
0
0
0
0
0
0
0
161
0.372685
f390722a9b7bcdeb7da50b02a843069961e64cc1
188
py
Python
First_Week/Sum/SumPow.py
IngeniariusSoftware/Itmo-course-apsd
34de904fd85a6fe4b32e422524d6d7993891bb7d
[ "MIT" ]
null
null
null
First_Week/Sum/SumPow.py
IngeniariusSoftware/Itmo-course-apsd
34de904fd85a6fe4b32e422524d6d7993891bb7d
[ "MIT" ]
null
null
null
First_Week/Sum/SumPow.py
IngeniariusSoftware/Itmo-course-apsd
34de904fd85a6fe4b32e422524d6d7993891bb7d
[ "MIT" ]
null
null
null
input = open('input.txt'); output = open('output.txt' , 'w'); tokens = input.readline().split(' '); input.close(); output.write(str(int(tokens[0]) + int(tokens[1]) ** 2)); output.close();
26.857143
56
0.62234
0
0
0
0
0
0
0
0
29
0.154255
f3908d26c53625ed2af166f41829d096ab0818d7
776
py
Python
molecule/default/tests/test_default.py
Turgon37/ansible-sssd
f9b653495ed9a908de660dab5f311782633a5e02
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
Turgon37/ansible-sssd
f9b653495ed9a908de660dab5f311782633a5e02
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
Turgon37/ansible-sssd
f9b653495ed9a908de660dab5f311782633a5e02
[ "MIT" ]
2
2019-10-17T17:17:23.000Z
2020-03-31T13:13:29.000Z
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_sssd_conf(host): conf = host.file('/etc/sssd/sssd.conf') assert conf.exists assert conf.user == 'root' assert conf.gro...
24.25
63
0.649485
0
0
0
0
0
0
0
0
260
0.335052
f3916073cb9f5943d221666b69347f763fcb2bb3
2,029
py
Python
libros/migrations/0002_auto_20191026_1023.py
dkwelffer/rocbook
87c92f26e8bd2139cc57d11f65c3fb82ebbc5223
[ "Apache-2.0" ]
null
null
null
libros/migrations/0002_auto_20191026_1023.py
dkwelffer/rocbook
87c92f26e8bd2139cc57d11f65c3fb82ebbc5223
[ "Apache-2.0" ]
null
null
null
libros/migrations/0002_auto_20191026_1023.py
dkwelffer/rocbook
87c92f26e8bd2139cc57d11f65c3fb82ebbc5223
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-26 14:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('libros', '0001_initial'), ] operations = [ migrations.CreateModel( name='Pagina', f...
30.742424
114
0.538196
1,903
0.9379
0
0
0
0
0
0
268
0.132085
f39250c381454b0933a185c13c313dd67e368700
24,886
py
Python
plugins/Operations/Parsing/parsing_ops.py
nmantani/FileInsight-plugins
a6b036672e4c72ed06678729a86293212b7213db
[ "BSD-2-Clause", "CC0-1.0", "MIT" ]
120
2015-02-28T14:49:12.000Z
2022-03-27T07:13:24.000Z
plugins/Operations/Parsing/parsing_ops.py
nmantani/FileInsight-plugins
a6b036672e4c72ed06678729a86293212b7213db
[ "BSD-2-Clause", "CC0-1.0", "MIT" ]
null
null
null
plugins/Operations/Parsing/parsing_ops.py
nmantani/FileInsight-plugins
a6b036672e4c72ed06678729a86293212b7213db
[ "BSD-2-Clause", "CC0-1.0", "MIT" ]
17
2016-04-04T15:53:03.000Z
2021-12-10T18:07:59.000Z
# # Parsing operations - Operations such as file type detection and embedded file # detection # # Copyright (c) 2019, Nobutaka Mantani # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # #...
36.119013
213
0.577031
165
0.00663
0
0
0
0
0
0
7,596
0.305232
f3925a2de46ce94e111a0a40f4a796420e5a3f57
5,582
py
Python
argo/networks/pbtxt.py
rist-ro/argo
a10c33346803239db8a64c104db7f22ec4e05bef
[ "MIT" ]
4
2020-12-07T19:13:13.000Z
2022-01-30T18:52:18.000Z
argo/networks/pbtxt.py
rist-ro/argo
a10c33346803239db8a64c104db7f22ec4e05bef
[ "MIT" ]
12
2020-09-25T22:41:28.000Z
2022-02-09T23:46:34.000Z
argo/networks/pbtxt.py
rist-ro/argo
a10c33346803239db8a64c104db7f22ec4e05bef
[ "MIT" ]
2
2021-03-02T18:31:04.000Z
2021-03-02T21:56:43.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import tensorflow as tf import imagenet from tensorflow.python.platform import gfile from inception_v4 import inception_v4 from inception_v4 import inception_v4_arg_scope from inception_v4 import ince...
39.034965
93
0.692404
0
0
0
0
263
0.047116
0
0
3,255
0.583124
f393988e6740fc6e08ace33d77422c2bdfde8d04
2,037
py
Python
hw3/3.py
joebobs0n/EE631
9b88e2ad255098afbc45cb7eda6018cb24c10fc3
[ "MIT" ]
null
null
null
hw3/3.py
joebobs0n/EE631
9b88e2ad255098afbc45cb7eda6018cb24c10fc3
[ "MIT" ]
null
null
null
hw3/3.py
joebobs0n/EE631
9b88e2ad255098afbc45cb7eda6018cb24c10fc3
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np chessboard = [10, 7] stereo_params = np.load('stereo_params.npz') F = stereo_params['F'] left_params = np.load('left_params.npz') left_intr = left_params['intr'] left_dist = left_params['dist'] right_params = np.load('right_params.npz') right_intr = right_params['intr'] right_dis...
29.955882
104
0.670594
0
0
0
0
0
0
0
0
163
0.08002
f3947f91f3507fcdc9f9745149284d48e0294133
2,775
py
Python
test/geocoders/arcgis.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
1
2019-07-17T14:38:52.000Z
2019-07-17T14:38:52.000Z
test/geocoders/arcgis.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
null
null
null
test/geocoders/arcgis.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
1
2019-03-28T10:26:41.000Z
2019-03-28T10:26:41.000Z
import unittest from geopy import exc from geopy.compat import u from geopy.point import Point from geopy.geocoders import ArcGIS from test.geocoders.util import GeocoderTestBase, env class ArcGISTestCaseUnitTest(GeocoderTestBase): def test_user_agent_custom(self): geocoder = ArcGIS( user_ag...
27.475248
78
0.594234
2,174
0.783423
0
0
2,337
0.842162
0
0
894
0.322162
f3966a99b7bc35ad766f8817a1afff4948982ad6
26
py
Python
app/views/tracks/__init__.py
DaniFriasSolsona/DigitalMediaStore-RESTful
30388680eb9c10b4c609ca9a273ba69c09e61dbd
[ "MIT" ]
null
null
null
app/views/tracks/__init__.py
DaniFriasSolsona/DigitalMediaStore-RESTful
30388680eb9c10b4c609ca9a273ba69c09e61dbd
[ "MIT" ]
null
null
null
app/views/tracks/__init__.py
DaniFriasSolsona/DigitalMediaStore-RESTful
30388680eb9c10b4c609ca9a273ba69c09e61dbd
[ "MIT" ]
null
null
null
from .resources import blp
26
26
0.846154
0
0
0
0
0
0
0
0
0
0
f397433f97deecbcce038323eff26064f64a88ad
466
py
Python
Python/leetcode_challenges/leetcode_median-of-two-sorted-arrays.py
liv335/public
04e1940060e2ec88a1d0d1c91603afff8ecdaea2
[ "Apache-2.0" ]
null
null
null
Python/leetcode_challenges/leetcode_median-of-two-sorted-arrays.py
liv335/public
04e1940060e2ec88a1d0d1c91603afff8ecdaea2
[ "Apache-2.0" ]
null
null
null
Python/leetcode_challenges/leetcode_median-of-two-sorted-arrays.py
liv335/public
04e1940060e2ec88a1d0d1c91603afff8ecdaea2
[ "Apache-2.0" ]
null
null
null
class Solution: def findMedianSortedArrays(self, nums1, nums2): concant = sorted(nums1 + nums2) pos = int((len(concant) + 1)/2) -1 if (len(concant) % 2) == 0: median = (concant[pos] + concant[pos+1])/2 else: median = concant[pos] return float(median) ...
31.066667
54
0.56867
318
0.682403
0
0
0
0
0
0
10
0.021459
f397645eaf119065b33f1012173ea4db786f6334
370
py
Python
sourced/ml/tests/source/example.py
chubbymaggie/ast2vec
b9058681fdd30ad0a7f4fa90a24594b615340a90
[ "Apache-2.0" ]
null
null
null
sourced/ml/tests/source/example.py
chubbymaggie/ast2vec
b9058681fdd30ad0a7f4fa90a24594b615340a90
[ "Apache-2.0" ]
null
null
null
sourced/ml/tests/source/example.py
chubbymaggie/ast2vec
b9058681fdd30ad0a7f4fa90a24594b615340a90
[ "Apache-2.0" ]
null
null
null
import sys from modelforge.logs import setup_logging utmain = sys.modules['__main__'] if utmain.__package__ == "unittest" and utmain.__spec__ is None: from collections import namedtuple ModuleSpec = namedtuple("ModuleSpec", ["name"]) utmain.__spec__ = ModuleSpec("unittest.__main__") del ModuleSpec de...
21.764706
64
0.735135
0
0
0
0
0
0
0
0
63
0.17027
f39aec0bebcbd7d89dc7e0ce8356f06dc7c60a5a
6,735
py
Python
train_parking.py
bayesianGirl/Parking-Spot-Detection-by-Opencv
b1ceb01a5eea1cba228c88113f6dcfb62c13618e
[ "MIT" ]
3
2020-12-07T21:13:44.000Z
2021-11-27T05:12:05.000Z
train_parking.py
bayesianGirl/Parking-Spot-Detection-by-Opencv
b1ceb01a5eea1cba228c88113f6dcfb62c13618e
[ "MIT" ]
null
null
null
train_parking.py
bayesianGirl/Parking-Spot-Detection-by-Opencv
b1ceb01a5eea1cba228c88113f6dcfb62c13618e
[ "MIT" ]
6
2018-07-09T18:23:18.000Z
2019-05-21T13:49:59.000Z
import tensorflow as tf import cv2 import numpy as np import os import tensorflow.contrib.slim as slim # TensorFlow-Slim # Number of classes=3(right, left,up) # Defining training examples and labels empty=[] occupied=[] examples=[] error= 'error.txt' error_file= open(error, 'w') #Reading images os.chdir('/home/ruchik...
39.156977
110
0.705122
0
0
0
0
0
0
0
0
1,437
0.213363
f39c0547113dfeeb7a9ee6287a14d65c76ea8bf5
7,308
py
Python
matchengine/plugins/DFCIQueryNodeTransformer.py
AveraSD/matchengine-V2
d6039dc5d6737f90f53d6decc3b60e062e65b165
[ "Apache-2.0" ]
18
2019-09-21T20:08:19.000Z
2021-07-06T03:23:11.000Z
matchengine/plugins/DFCIQueryNodeTransformer.py
AveraSD/matchengine-V2
d6039dc5d6737f90f53d6decc3b60e062e65b165
[ "Apache-2.0" ]
1
2020-04-06T17:13:17.000Z
2020-09-10T13:41:45.000Z
matchengine/plugins/DFCIQueryNodeTransformer.py
AveraSD/matchengine-V2
d6039dc5d6737f90f53d6decc3b60e062e65b165
[ "Apache-2.0" ]
12
2019-09-16T14:22:19.000Z
2022-01-13T20:32:52.000Z
from __future__ import annotations import datetime import re from typing import TYPE_CHECKING, Tuple, List, Union, Dict from matchengine.internals.plugin_helpers.plugin_stub import ( QueryNodeTransformer, QueryNodeClinicalIDsSubsetter ) from matchengine.internals.typing.matchengine_types import ( QueryPar...
44.560976
119
0.604543
5,385
0.736864
0
0
0
0
0
0
1,638
0.224138
f39c50849b8851bc8f0536a6aa119129e72c9a55
241
py
Python
classes/Result.py
matteocarde/asp2logic
ceaa3cffd1ccdf9a838d30652670235ea960a537
[ "MIT" ]
null
null
null
classes/Result.py
matteocarde/asp2logic
ceaa3cffd1ccdf9a838d30652670235ea960a537
[ "MIT" ]
null
null
null
classes/Result.py
matteocarde/asp2logic
ceaa3cffd1ccdf9a838d30652670235ea960a537
[ "MIT" ]
null
null
null
class Result: name: str optimum: int status: str time: float def __init__(self, name, optimum, status, time): self.name = name self.optimum = optimum self.status = status self.time = time
20.083333
52
0.580913
240
0.995851
0
0
0
0
0
0
0
0
f39e1c520696b1bcc8ef32a0537c82d74974fb1c
6,028
py
Python
ssbj_idf_mda.py
OneraHub/SSBJ-OpenMDAO-Example
5d10e9f8483f5e7ce803f0bc36ff78d3323227d9
[ "Apache-2.0" ]
7
2019-02-07T17:05:50.000Z
2022-01-20T16:29:31.000Z
ssbj_idf_mda.py
OneraHub/SSBJ-OpenMDAO-Example
5d10e9f8483f5e7ce803f0bc36ff78d3323227d9
[ "Apache-2.0" ]
3
2018-06-19T12:41:48.000Z
2019-01-16T17:13:24.000Z
ssbj_idf_mda.py
OneraHub/SSBJ-OpenMDAO-Example
5d10e9f8483f5e7ce803f0bc36ff78d3323227d9
[ "Apache-2.0" ]
2
2018-06-04T13:53:15.000Z
2018-11-29T18:46:14.000Z
""" SSBJ test case - http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19980234657.pdf Python implementation and OpenMDAO integration developed by Sylvain Dubreuil and Remi Lafage of ONERA, the French Aerospace Lab. """ import numpy as np from openmdao.api import Group, ExecComp, IndepVarComp from ssbj_disciplines....
43.366906
100
0.607001
5,495
0.911579
0
0
0
0
0
0
2,307
0.382714
f39f9dafd3986b4592613b9a6d345bb5a1bd8d41
3,098
py
Python
tag2env/cli.py
ravenac95/tag2env
5651e93d57898d6edd73a1a7b01032989acb8e4b
[ "MIT" ]
1
2018-11-23T04:31:28.000Z
2018-11-23T04:31:28.000Z
tag2env/cli.py
ravenac95/tag2env
5651e93d57898d6edd73a1a7b01032989acb8e4b
[ "MIT" ]
null
null
null
tag2env/cli.py
ravenac95/tag2env
5651e93d57898d6edd73a1a7b01032989acb8e4b
[ "MIT" ]
null
null
null
import os import re import requests import boto3 import click AWS_INSTANCE_DOC_URL = 'http://169.254.169.254/latest/dynamic/instance-identity/document' class TagLoader(object): def __init__(self, override_instance_doc=None, override_instance_id=None, region=None): self._override_instanc...
29.226415
89
0.617172
2,004
0.646869
700
0.225952
1,021
0.329567
0
0
389
0.125565