hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
cb35a1cba287ae52c6dc23ab1d656bee043fa23c
1,928
py
Python
selfdrive/hardware/pc/hardware.py
moreno7798/openpilot-1
1a41ce3db293729a0491f757092f0c02ded66ff5
[ "MIT" ]
45
2020-09-10T02:43:34.000Z
2022-03-23T12:12:48.000Z
selfdrive/hardware/pc/hardware.py
moreno7798/openpilot-1
1a41ce3db293729a0491f757092f0c02ded66ff5
[ "MIT" ]
4
2021-07-17T19:33:13.000Z
2021-12-26T02:51:07.000Z
selfdrive/hardware/pc/hardware.py
moreno7798/openpilot-1
1a41ce3db293729a0491f757092f0c02ded66ff5
[ "MIT" ]
130
2020-08-19T04:20:02.000Z
2022-03-24T23:05:22.000Z
import random from cereal import log from selfdrive.hardware.base import HardwareBase, ThermalConfig NetworkType = log.DeviceState.NetworkType NetworkStrength = log.DeviceState.NetworkStrength class Pc(HardwareBase): def get_os_version(self): return None def get_device_type(self): return "pc" def ge...
18.718447
109
0.686722
8e206d574e858802cfcb0dc0e2d5028962331cd6
5,072
py
Python
test/functional/preciousblock.py
arcana-coin/arcana-core
b5d6d71968d1f19c42dc3f351aff17800da5af36
[ "MIT" ]
null
null
null
test/functional/preciousblock.py
arcana-coin/arcana-core
b5d6d71968d1f19c42dc3f351aff17800da5af36
[ "MIT" ]
null
null
null
test/functional/preciousblock.py
arcana-coin/arcana-core
b5d6d71968d1f19c42dc3f351aff17800da5af36
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bytcoyn Core Developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the preciousblock RPC.""" from test_framework.test_framework import BitcoinTestFramework from tes...
44.104348
127
0.668967
048f9d46df40e9266ff8fb6b4192b5114c34c3e0
2,715
py
Python
sources/app/capture_range_profile.py
Steve1an/pymmw
2bd3bc98c92abedc72922d3fad11e38b569f8418
[ "MIT" ]
2
2020-06-19T20:40:30.000Z
2021-02-06T04:58:51.000Z
sources/app/capture_range_profile.py
Steve1an/pymmw
2bd3bc98c92abedc72922d3fad11e38b569f8418
[ "MIT" ]
null
null
null
sources/app/capture_range_profile.py
Steve1an/pymmw
2bd3bc98c92abedc72922d3fad11e38b569f8418
[ "MIT" ]
2
2020-06-20T17:25:43.000Z
2021-02-06T04:59:15.000Z
# # Copyright (c) 2019, Manfred Constapel # This file is licensed under the terms of the MIT license. # # # range and noise profile - capture # import os, sys, time try: __base__ = os.path.dirname(os.path.abspath(__file__)) while 'lib' not in [d for d in os.listdir(__base__) if os.path.isdir(os.path.join(__...
27.704082
141
0.471455
503869233fbb6f547b87e33ca89401d958ae49f4
381
py
Python
zinnia_threaded_comments/migrations/0004_auto_20180903_2330.py
dantezhu/zinnia-threaded-comments
fce5e76f5785bcca368fd80f8b24379e1b2420ee
[ "BSD-3-Clause" ]
null
null
null
zinnia_threaded_comments/migrations/0004_auto_20180903_2330.py
dantezhu/zinnia-threaded-comments
fce5e76f5785bcca368fd80f8b24379e1b2420ee
[ "BSD-3-Clause" ]
null
null
null
zinnia_threaded_comments/migrations/0004_auto_20180903_2330.py
dantezhu/zinnia-threaded-comments
fce5e76f5785bcca368fd80f8b24379e1b2420ee
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.7 on 2018-09-03 23:30 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('zinnia-threaded-comments', '0003_auto_20180903_0240'), ] operations = [ migrations.AlterModelOptions( name='threadedcomment', ...
21.166667
64
0.611549
027b73892db963b796d0ed09de3056e363460eb5
37,688
py
Python
testtools/testcase.py
jml/testtools
cd286b23f23c2d79b60e1bb3686d7a17507595b8
[ "MIT" ]
null
null
null
testtools/testcase.py
jml/testtools
cd286b23f23c2d79b60e1bb3686d7a17507595b8
[ "MIT" ]
null
null
null
testtools/testcase.py
jml/testtools
cd286b23f23c2d79b60e1bb3686d7a17507595b8
[ "MIT" ]
null
null
null
# Copyright (c) 2008-2011 testtools developers. See LICENSE for details. """Test case related stuff.""" __metaclass__ = type __all__ = [ 'attr', 'clone_test_with_new_id', 'ExpectedException', 'gather_details', 'run_test_with', 'skip', 'skipIf', 'skipUnless', 'TestCase', ] impo...
36.030593
85
0.639195
679a860befd09ad3df4385eb8f082e5c6560686d
4,499
py
Python
detectron/lib/python3.6/site-packages/torch/distributed/rpc/backend_registry.py
JustinBear99/Mask_RCNN
d43eaf7c6ebf29d4d6da796a0f7ff5561e21acff
[ "Apache-2.0" ]
null
null
null
detectron/lib/python3.6/site-packages/torch/distributed/rpc/backend_registry.py
JustinBear99/Mask_RCNN
d43eaf7c6ebf29d4d6da796a0f7ff5561e21acff
[ "Apache-2.0" ]
null
null
null
detectron/lib/python3.6/site-packages/torch/distributed/rpc/backend_registry.py
JustinBear99/Mask_RCNN
d43eaf7c6ebf29d4d6da796a0f7ff5561e21acff
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import collections import datetime import enum import torch.distributed as dist import torch.distributed.distributed_c10d as dc10d from . import constants as rpc_constants BackendValue = collections.namedtuple( "BackendValue", [...
31.027586
92
0.696377
8edaf8d948f9d6ce5ca8745fd0bc7d37137ae1c3
1,406
py
Python
src/demo_predictor.py
bagustris/nkululeko
87a4918b37e2a8599b81c4752c6750fc8adaa079
[ "MIT" ]
null
null
null
src/demo_predictor.py
bagustris/nkululeko
87a4918b37e2a8599b81c4752c6750fc8adaa079
[ "MIT" ]
null
null
null
src/demo_predictor.py
bagustris/nkululeko
87a4918b37e2a8599b81c4752c6750fc8adaa079
[ "MIT" ]
null
null
null
import glob_conf from util import Util import numpy as np class Demo_predictor(): def __init__(self, model, feature_extractor, label_encoder): """Constructor setting up name and configuration""" self.model = model self.feature_extractor = feature_extractor self.label_encoder = lab...
32.697674
77
0.581081
a0748ccfc2f7977bfe24c9a51cc5e11e72b0d502
752
py
Python
adv/veronica.py.3.py
betairylia/dl
4eb06837b13decc569066a43b58e205f3b716ff8
[ "Apache-2.0" ]
null
null
null
adv/veronica.py.3.py
betairylia/dl
4eb06837b13decc569066a43b58e205f3b716ff8
[ "Apache-2.0" ]
null
null
null
adv/veronica.py.3.py
betairylia/dl
4eb06837b13decc569066a43b58e205f3b716ff8
[ "Apache-2.0" ]
null
null
null
import adv_test import adv from slot.d import * def module(): return Veronica class Veronica(adv.Adv): comment = '' a3 = ('prep','100%') conf = {} def pre(this): if this.condition('hp=80%'): this.s1boost = 1.25*0.2*0.2 else: this.s1boost = 1.25*0.3*0.3 ...
19.282051
60
0.521277
697d506be361f29069421f53651fd36550d5c9f0
2,123
py
Python
app/database/__init__.py
nyxgear/PSD-e-service-pronto-soccorso
92eb0586c2cfb12a844a106b71911c80e8e3e57b
[ "MIT" ]
null
null
null
app/database/__init__.py
nyxgear/PSD-e-service-pronto-soccorso
92eb0586c2cfb12a844a106b71911c80e8e3e57b
[ "MIT" ]
null
null
null
app/database/__init__.py
nyxgear/PSD-e-service-pronto-soccorso
92eb0586c2cfb12a844a106b71911c80e8e3e57b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .user import User from .pronto_soccorso import ProntoSoccorso from .pratica_assistenza import PraticaAssistenza from .richiesta_soccorso import RichiestaSoccorso def get(entity_class, attribute_name, attribute_value): """ Retrieve an instantiated entity from the databas...
30.328571
83
0.623175
9fb9db1cc35075c4ca7ca9851af7d272409b822f
3,595
py
Python
imposm/writer.py
olt/imposm
796cc9e5aad6b61b0837a71875c8a2be84f1f92e
[ "Apache-2.0" ]
36
2015-02-04T14:40:40.000Z
2018-04-13T16:08:42.000Z
imposm/writer.py
Outdooractive/imposm
adb07dbea332307c5900fa355482df1e3073da62
[ "Apache-2.0" ]
10
2015-01-05T08:30:03.000Z
2017-03-06T07:37:42.000Z
imposm/writer.py
Outdooractive/imposm
adb07dbea332307c5900fa355482df1e3073da62
[ "Apache-2.0" ]
7
2015-03-16T07:55:27.000Z
2017-08-24T14:02:01.000Z
# Copyright 2011 Omniscale (http://omniscale.com) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
32.681818
98
0.64395
258b60379aaa1cbd111d718299e84818d63411ec
1,148
py
Python
sa/profiles/Vitesse/VSC/get_ipv6_neighbor.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
sa/profiles/Vitesse/VSC/get_ipv6_neighbor.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
sa/profiles/Vitesse/VSC/get_ipv6_neighbor.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Vitesse.VSC.get_ipv6_neighbor # --------------------------------------------------------------------- # Copyright (C) 2007-2018 The NOC Project # See LICENSE for details # --------------------------------------------------...
28
99
0.476481
ce9d88a4d547cc370ba3e96e37562a3a983972d5
2,880
py
Python
server/website/website/set_default_knobs.py
mjain2/ottertune
011e896bf89df831fb1189b1ab4c9a7d7dca420a
[ "Apache-2.0" ]
1
2019-08-16T19:35:35.000Z
2019-08-16T19:35:35.000Z
server/website/website/set_default_knobs.py
mjain2/ottertune
011e896bf89df831fb1189b1ab4c9a7d7dca420a
[ "Apache-2.0" ]
null
null
null
server/website/website/set_default_knobs.py
mjain2/ottertune
011e896bf89df831fb1189b1ab4c9a7d7dca420a
[ "Apache-2.0" ]
null
null
null
# # OtterTune - set_default_knobs.py # # Copyright (c) 2017-18, Carnegie Mellon University Database Group # from .models import KnobCatalog, SessionKnob from .types import DBMSType def turn_knobs_off(session, knob_names): for knob_name in knob_names: knob = KnobCatalog.objects.filter(dbms=session.dbms, na...
54.339623
97
0.615972
0561b55e5c88d4ebd9b051ea7299144967a11df6
2,814
py
Python
tests/conftest.py
chusloj/taxdata
52c02c5f457145413983762280f8c1552b5ac740
[ "CC0-1.0" ]
null
null
null
tests/conftest.py
chusloj/taxdata
52c02c5f457145413983762280f8c1552b5ac740
[ "CC0-1.0" ]
null
null
null
tests/conftest.py
chusloj/taxdata
52c02c5f457145413983762280f8c1552b5ac740
[ "CC0-1.0" ]
null
null
null
import os import json import pytest import pandas as pd from pathlib import Path # TODO: revise the following constants when using new or revised CPS/PUF data CPS_START_YEAR = 2014 PUF_START_YEAR = 2011 PUF_COUNT = 248591 LAST_YEAR = 2029 @pytest.fixture(scope="session") def test_path(): return Path(__file__).r...
23.847458
77
0.697939
24cc6bbe9c2ba4244015f3a01d338c4f2ba0c2dd
663
py
Python
manage.py
sd2001/FuzzyUrls
eb07258ab0fd3be2675521513c00e787f85f3729
[ "MIT" ]
6
2021-03-01T13:44:01.000Z
2021-06-13T18:00:52.000Z
manage.py
sd2001/FuzzyUrls
eb07258ab0fd3be2675521513c00e787f85f3729
[ "MIT" ]
null
null
null
manage.py
sd2001/FuzzyUrls
eb07258ab0fd3be2675521513c00e787f85f3729
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Urlshort.settings') try: from django.core.management import execute_from_command_line except Imp...
30.136364
73
0.680241
06545d644ce38ea78f7648f63247f1fd330fd953
2,771
py
Python
koans/about_string_manipulation.py
gtl-keyur-lakhlani/koans-playground
210b6cb7b34bea0669f4109664dbcbe935f63d74
[ "MIT" ]
null
null
null
koans/about_string_manipulation.py
gtl-keyur-lakhlani/koans-playground
210b6cb7b34bea0669f4109664dbcbe935f63d74
[ "MIT" ]
null
null
null
koans/about_string_manipulation.py
gtl-keyur-lakhlani/koans-playground
210b6cb7b34bea0669f4109664dbcbe935f63d74
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutStringManipulation(Koan): def test_use_format_to_interpolate_variables(self): value1 = 'one' value2 = 2 string = "The values are {0} and {1}".format(value1, value2) self.assertEqual("The values are ...
36.946667
81
0.648502
46e04ef9dc3d1268d1b46b11984d60998ed7d10a
47
py
Python
pytype/__version__.py
softagram/pytype
9e720fbb08f517e27c6902e278b32af00e84d80e
[ "Apache-2.0" ]
null
null
null
pytype/__version__.py
softagram/pytype
9e720fbb08f517e27c6902e278b32af00e84d80e
[ "Apache-2.0" ]
null
null
null
pytype/__version__.py
softagram/pytype
9e720fbb08f517e27c6902e278b32af00e84d80e
[ "Apache-2.0" ]
null
null
null
# pylint: skip-file __version__ = '2018.11.06'
15.666667
26
0.702128
c486cfb4bfbcd572d5370fff2b9c0dbd2c0c657e
5,561
py
Python
construct/debug.py
nrrpinto/construct
cfc980c6edfbe33c56015b736f59fb3155b51317
[ "MIT" ]
629
2015-01-06T03:01:56.000Z
2022-03-23T13:13:26.000Z
construct/debug.py
nrrpinto/construct
cfc980c6edfbe33c56015b736f59fb3155b51317
[ "MIT" ]
897
2015-02-28T15:46:06.000Z
2022-03-30T08:19:13.000Z
construct/debug.py
nrrpinto/construct
cfc980c6edfbe33c56015b736f59fb3155b51317
[ "MIT" ]
151
2015-01-08T16:36:24.000Z
2022-03-10T16:59:49.000Z
from construct import * from construct.lib import * import sys, traceback, pdb, inspect class Probe(Construct): r""" Probe that dumps the context, and some stream content (peeks into it) to the screen to aid the debugging process. It can optionally limit itself to a single context entry, instead of printing e...
34.540373
211
0.5107
df80aa54001c7d0bee7ee535d71832d8ed9ec2dd
3,167
py
Python
userbot/modules/spam.py
Adityar267/Man-Userbot
b3b99312f7f399044815aac1a96c81dd20ced335
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/spam.py
Adityar267/Man-Userbot
b3b99312f7f399044815aac1a96c81dd20ced335
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/spam.py
Adityar267/Man-Userbot
b3b99312f7f399044815aac1a96c81dd20ced335
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# 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. import asyncio from asyncio import sleep from userbot import BOTLOG_CHATID from userbot import CMD_HANDLER as cmd from ...
32.316327
79
0.614462
38aa894c10cda1feb523eafe29ecf625bac81a73
25,240
py
Python
tests/unit/sagemaker/model/test_model.py
guoqiaoli1992/sagemaker-python-sdk
24bdec115a364f39b1ba405e3047c5dda600db66
[ "Apache-2.0" ]
null
null
null
tests/unit/sagemaker/model/test_model.py
guoqiaoli1992/sagemaker-python-sdk
24bdec115a364f39b1ba405e3047c5dda600db66
[ "Apache-2.0" ]
null
null
null
tests/unit/sagemaker/model/test_model.py
guoqiaoli1992/sagemaker-python-sdk
24bdec115a364f39b1ba405e3047c5dda600db66
[ "Apache-2.0" ]
null
null
null
# Copyright 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 accompan...
36.57971
99
0.738788
8fa7aa269e589e207b6bbfe3db619156f4a6be6f
4,394
py
Python
src/clld/db/models/_mixins.py
blurks/clld
d9900f88af726eb6a4d2668f517d5af23bcc6f9d
[ "MIT" ]
32
2015-02-22T02:09:29.000Z
2022-02-18T14:40:16.000Z
src/clld/db/models/_mixins.py
blurks/clld
d9900f88af726eb6a4d2668f517d5af23bcc6f9d
[ "MIT" ]
199
2015-01-05T11:58:38.000Z
2022-02-22T14:34:52.000Z
src/clld/db/models/_mixins.py
blurks/clld
d9900f88af726eb6a4d2668f517d5af23bcc6f9d
[ "MIT" ]
18
2015-01-23T13:00:47.000Z
2022-02-21T16:32:36.000Z
import pathlib from sqlalchemy import Column, Integer, String, Unicode, ForeignKey from sqlalchemy.orm import relationship from sqlalchemy.ext.declarative import declared_attr __all__ = ( 'IdNameDescriptionMixin', 'FilesMixin', 'HasFilesMixin', 'DataMixin', 'HasDataMixin', ) class IdNameDescriptionMixin...
31.385714
92
0.63564
e392de1862b8fd5995c2ce469b8b8e5d7a00657b
52
py
Python
gen_doc/repos/__init__.py
Shchusia/gen_doc
216b561fc973c5565a78348c5b0b3db58f84442f
[ "Unlicense" ]
null
null
null
gen_doc/repos/__init__.py
Shchusia/gen_doc
216b561fc973c5565a78348c5b0b3db58f84442f
[ "Unlicense" ]
null
null
null
gen_doc/repos/__init__.py
Shchusia/gen_doc
216b561fc973c5565a78348c5b0b3db58f84442f
[ "Unlicense" ]
null
null
null
""" importing """ from .repos import Repository
10.4
30
0.653846
781e16b3bc2d3eb92b5e885a87846f826e443d63
2,332
py
Python
src/core/models/backbones/simplecnn.py
lucasdavid/tf-experiment
0c6e6b52c91f498dd0cb5a13beafadfeab627429
[ "Apache-2.0" ]
null
null
null
src/core/models/backbones/simplecnn.py
lucasdavid/tf-experiment
0c6e6b52c91f498dd0cb5a13beafadfeab627429
[ "Apache-2.0" ]
null
null
null
src/core/models/backbones/simplecnn.py
lucasdavid/tf-experiment
0c6e6b52c91f498dd0cb5a13beafadfeab627429
[ "Apache-2.0" ]
null
null
null
from typing import Optional import tensorflow as tf from tensorflow.keras import layers def conv_block( x: tf.Tensor, filters: int, kernel_size=(3, 3), strides=(1, 1), batch_norm: bool = True, activation='relu', dropout: float = 0, padding: str = 'valid', name: s...
30.285714
100
0.655232
83ab6188ff9cf51338e8421e67d9e8a4b94463a4
1,857
py
Python
cpp_ann/script_generator_example.py
marsgr6/ann
64c051263fd1f80d8f596b217fe733e0e1b4c2fa
[ "MIT" ]
1
2021-05-25T23:43:44.000Z
2021-05-25T23:43:44.000Z
cpp_ann/script_generator_example.py
marsgr6/ann
64c051263fd1f80d8f596b217fe733e0e1b4c2fa
[ "MIT" ]
null
null
null
cpp_ann/script_generator_example.py
marsgr6/ann
64c051263fd1f80d8f596b217fe733e0e1b4c2fa
[ "MIT" ]
null
null
null
""" This code generates a unix bash script for running the C++ generated program with the selected set of parameters for p: patterns (integer) K: connectivity (integer) nns: number of modules (list of integers) topos: topologies (list from ['r', 'c', 'x']) r: Ring, c: Cross, 'x': X topologies ws...
32.017241
73
0.572429
fca6296e9edec56f94da241eee42ef36a3eff803
32
py
Python
slackbot_settings.py
KagenoMoheji/MySlackbot
bac61d29b773ea75b152f96b605114bf8073d498
[ "MIT" ]
null
null
null
slackbot_settings.py
KagenoMoheji/MySlackbot
bac61d29b773ea75b152f96b605114bf8073d498
[ "MIT" ]
null
null
null
slackbot_settings.py
KagenoMoheji/MySlackbot
bac61d29b773ea75b152f96b605114bf8073d498
[ "MIT" ]
null
null
null
PLUGINS = [ "plugins", ]
8
15
0.4375
a61f101d79d323a4bb77b06e995be138a3574b9f
7,748
py
Python
ppdet/modeling/losses/iou_loss.py
sjtubinlong/PaddleDetection
2bd069f4efd57861ef0004b212525fdafa4f0178
[ "Apache-2.0" ]
null
null
null
ppdet/modeling/losses/iou_loss.py
sjtubinlong/PaddleDetection
2bd069f4efd57861ef0004b212525fdafa4f0178
[ "Apache-2.0" ]
null
null
null
ppdet/modeling/losses/iou_loss.py
sjtubinlong/PaddleDetection
2bd069f4efd57861ef0004b212525fdafa4f0178
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle 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 # # Unless required by appli...
38.934673
83
0.596799
efbb887ed97cc4ab02303d3fbae515780448b1de
533
py
Python
seq2seq/generate_data.py
NikIshmametev/tf_examples
1596c6c6b2596665f112ee454cff57ab8d610b48
[ "Apache-2.0" ]
159
2015-11-26T20:09:17.000Z
2021-11-12T11:36:56.000Z
seq2seq/generate_data.py
NikIshmametev/tf_examples
1596c6c6b2596665f112ee454cff57ab8d610b48
[ "Apache-2.0" ]
8
2016-04-29T09:11:57.000Z
2018-08-30T14:00:17.000Z
seq2seq/generate_data.py
NikIshmametev/tf_examples
1596c6c6b2596665f112ee454cff57ab8d610b48
[ "Apache-2.0" ]
108
2015-11-26T01:32:16.000Z
2020-04-06T22:46:07.000Z
import random examples = 10000 symbols = 100 length = 10 with open('vocab', 'w') as f: f.write("<S>\n</S>\n<UNK>\n") for i in range(100): f.write("%d\n" % i) with open('input', 'w') as fin: with open('output', 'w') as fout: for i in range(examples): inp = [random.randint(0, s...
25.380952
73
0.50469
6428aadd0b2c745b05fcc3885bcc9839d7edb008
4,771
py
Python
opensfm/synthetic_data/synthetic_scene.py
juhan/OpenSfM
8dd4fe3bf303f974a56857b973feaef7e7c2662f
[ "BSD-2-Clause" ]
null
null
null
opensfm/synthetic_data/synthetic_scene.py
juhan/OpenSfM
8dd4fe3bf303f974a56857b973feaef7e7c2662f
[ "BSD-2-Clause" ]
3
2021-09-08T01:41:55.000Z
2022-03-12T00:16:29.000Z
opensfm/synthetic_data/synthetic_scene.py
juhan/OpenSfM
8dd4fe3bf303f974a56857b973feaef7e7c2662f
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import functools from opensfm import types import opensfm.synthetic_data.synthetic_metrics as sm import opensfm.synthetic_data.synthetic_generator as...
35.340741
74
0.63362
f483b42d00c30155b78cc64b68fb2fe1218853b3
120
py
Python
create_pyproj/__main__.py
byung-u/create_pyproj
10e3046cdff7bcab45ef8779cb70d149a16e4cf6
[ "MIT" ]
null
null
null
create_pyproj/__main__.py
byung-u/create_pyproj
10e3046cdff7bcab45ef8779cb70d149a16e4cf6
[ "MIT" ]
null
null
null
create_pyproj/__main__.py
byung-u/create_pyproj
10e3046cdff7bcab45ef8779cb70d149a16e4cf6
[ "MIT" ]
null
null
null
""" create_pyproj create python project template command line tool.""" from create_pyproj.main import main main(None)
20
70
0.783333
196f6c09954f5a741185ecd5c83aa2aa092fb064
8,104
py
Python
xldlib/xlpy/tools/frozen.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
xldlib/xlpy/tools/frozen.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
xldlib/xlpy/tools/frozen.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
''' Xlpy/Tools/frozen _________________ Tools for freezing common data structures to give them a hash function. :copyright: (c) 2015 The Regents of the University of California. :license: GNU GPL, see licenses/GNU GPLv3.txt for more details. ''' # load modules from collections import Counter,...
29.904059
79
0.649062
142da1072f362e416f051960b46ded374cc692a4
4,027
py
Python
pdft/tests/formic/formic.py
ymshi449/pdft
5839229a4389da95319ceb05269abc635a466878
[ "BSD-3-Clause" ]
null
null
null
pdft/tests/formic/formic.py
ymshi449/pdft
5839229a4389da95319ceb05269abc635a466878
[ "BSD-3-Clause" ]
null
null
null
pdft/tests/formic/formic.py
ymshi449/pdft
5839229a4389da95319ceb05269abc635a466878
[ "BSD-3-Clause" ]
2
2020-03-24T21:06:36.000Z
2021-04-22T19:34:39.000Z
import numpy as np import psi4 import pdft import matplotlib.pyplot as plt import libcubeprop psi4.core.set_output_file("formic.psi4") functional = 'svwn' basis = 'cc-pvdz' svdc = -4 reguc = -4 title = "formic Newton svdc%i reguc %i" %(svdc, reguc) + basis + functional print(title) Full_Molec = psi4.geometry(""" noco...
32.216
106
0.667991
8c996e2fdc60b4f02c62bbbe1327c4969b4500a9
10,554
py
Python
odoo-13.0/addons/crm_iap_lead/models/crm_iap_lead_mining_request.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/crm_iap_lead/models/crm_iap_lead_mining_request.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/crm_iap_lead/models/crm_iap_lead_mining_request.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from odoo import api, fields, models, _ from odoo.exceptions import ValidationError from odoo.addons.iap import jsonrpc, InsufficientCreditError _logger = logging.getLogger(__name__) DEFAULT_ENDPOINT = ...
46.289474
188
0.659939
d0b44e2536a7f99c4b95113bf18c83b3224f156e
21,761
py
Python
lib/googlecloudsdk/third_party/apis/clouduseraccounts/beta/clouduseraccounts_beta_client.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/clouduseraccounts/beta/clouduseraccounts_beta_client.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/clouduseraccounts/beta/clouduseraccounts_beta_client.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
1
2020-07-25T12:23:41.000Z
2020-07-25T12:23:41.000Z
"""Generated client library for clouduseraccounts version beta.""" # NOTE: This file is autogenerated and should not be edited by hand. from googlecloudsdk.third_party.apitools.base.py import base_api from googlecloudsdk.third_party.apis.clouduseraccounts.beta import clouduseraccounts_beta_messages as messages class ...
42.090909
243
0.649373
dd994ec9abab8f6574e4b170199b4aded8d88246
120
py
Python
src/alexa_event_handler/__init__.py
parveenchahal/AlexaSkill_PCSongs
2368ff6b15fe76996a2943d11a9275573c6daa7f
[ "MIT" ]
null
null
null
src/alexa_event_handler/__init__.py
parveenchahal/AlexaSkill_PCSongs
2368ff6b15fe76996a2943d11a9275573c6daa7f
[ "MIT" ]
null
null
null
src/alexa_event_handler/__init__.py
parveenchahal/AlexaSkill_PCSongs
2368ff6b15fe76996a2943d11a9275573c6daa7f
[ "MIT" ]
null
null
null
from ._alexa_abstract_event_handler import AbstractAlexaEventHandler from ._alexa_event_handler import AlexaEventHandler
60
68
0.925
e87eebb94a91ea2f2aff57d0161bccf2ff992694
58,692
py
Python
koku/api/report/test/gcp/test_gcp_query_handler.py
bsquizz/koku
386dd6ca4a4fd1b50790a929acc81d2dc245a91c
[ "Apache-2.0" ]
157
2018-04-30T16:27:53.000Z
2022-03-31T08:17:21.000Z
koku/api/report/test/gcp/test_gcp_query_handler.py
bsquizz/koku
386dd6ca4a4fd1b50790a929acc81d2dc245a91c
[ "Apache-2.0" ]
3,250
2018-04-26T14:14:25.000Z
2022-03-31T23:49:15.000Z
koku/api/report/test/gcp/test_gcp_query_handler.py
bsquizz/koku
386dd6ca4a4fd1b50790a929acc81d2dc245a91c
[ "Apache-2.0" ]
65
2018-05-10T14:11:50.000Z
2022-03-18T19:22:58.000Z
# # Copyright 2021 Red Hat Inc. # SPDX-License-Identifier: Apache-2.0 # """Test GCP Report Queries.""" import logging from datetime import timedelta from decimal import Decimal from decimal import ROUND_HALF_UP from unittest.mock import patch from unittest.mock import PropertyMock from dateutil.relativedelta import re...
51.893899
169
0.65031
995fd22d1fe22d7cacb697cde3fd21a9cc87111a
201
py
Python
demo/session_test/urls.py
physili/django_test
09aa61f36e5d32f98af11057ea206dde8d082ac7
[ "MIT" ]
1
2020-04-25T04:50:30.000Z
2020-04-25T04:50:30.000Z
demo/session_test/urls.py
physili/django_test
09aa61f36e5d32f98af11057ea206dde8d082ac7
[ "MIT" ]
null
null
null
demo/session_test/urls.py
physili/django_test
09aa61f36e5d32f98af11057ea206dde8d082ac7
[ "MIT" ]
null
null
null
from django.conf.urls import re_path from . import views app_name = 'session' urlpatterns = [ re_path(r'^set_session/$', views.set_session), re_path(r'^get_session/$', views.get_session), ]
18.272727
50
0.706468
61476d3675c6bbc745d2c03cd4c182992a3dc41f
3,395
py
Python
debian/update-control.py
balabit-deps/balabit-os-6-boost1.58
88692145c0b665bb4998f81b99c7dbfec442fac8
[ "BSL-1.0" ]
null
null
null
debian/update-control.py
balabit-deps/balabit-os-6-boost1.58
88692145c0b665bb4998f81b99c7dbfec442fac8
[ "BSL-1.0" ]
null
null
null
debian/update-control.py
balabit-deps/balabit-os-6-boost1.58
88692145c0b665bb4998f81b99c7dbfec442fac8
[ "BSL-1.0" ]
null
null
null
#! /usr/bin/env python # from deb822 import Deb822 import re gOldVersion = None gNewVersion = None class BoostVersion: def __init__(self, version): (self.Major,self.Minor,self.Revision) = version.split('.') self.PackageVersion = self.Major + '.' + self.Minor self.SharedObjectVersion = ve...
36.902174
125
0.695729
9c0be583ec64e8c2385fbb18087790c809a22410
2,951
py
Python
tensorflow_datasets/testing/mocking_test.py
robbjr/datasets
fbb2af9d0e88f8e2ae884e9764fbeff2ee487813
[ "Apache-2.0" ]
1
2019-09-20T22:08:24.000Z
2019-09-20T22:08:24.000Z
tensorflow_datasets/testing/mocking_test.py
robbjr/datasets
fbb2af9d0e88f8e2ae884e9764fbeff2ee487813
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/testing/mocking_test.py
robbjr/datasets
fbb2af9d0e88f8e2ae884e9764fbeff2ee487813
[ "Apache-2.0" ]
1
2019-12-14T00:32:08.000Z
2019-12-14T00:32:08.000Z
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets 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 appl...
37.35443
98
0.723822
ab659ceeac00b8ebb1ed546b8e54e81a981c04c6
9,192
py
Python
visualDet3D/networks/backbones/resnet.py
jovialio/visualDet3D
5a54e4547576e4eb23d768746b2bdb2b4f25753f
[ "Apache-2.0" ]
250
2021-02-02T02:23:18.000Z
2022-03-31T11:00:10.000Z
visualDet3D/networks/backbones/resnet.py
jovialio/visualDet3D
5a54e4547576e4eb23d768746b2bdb2b4f25753f
[ "Apache-2.0" ]
56
2021-02-03T08:32:11.000Z
2022-03-30T01:41:46.000Z
visualDet3D/networks/backbones/resnet.py
jovialio/visualDet3D
5a54e4547576e4eb23d768746b2bdb2b4f25753f
[ "Apache-2.0" ]
45
2021-02-25T02:01:15.000Z
2022-03-03T10:32:58.000Z
from typing import Tuple, List, Union import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import math import torch.utils.model_zoo as model_zoo from visualDet3D.networks.utils.registry import BACKBONE_DICT def conv3x3(in_planes, out_planes, stride=1, dilation=1): """3x3 co...
33.064748
144
0.592472
660c6971533c6de48ad255a7091b1bb30a429edf
1,446
py
Python
examples/tornadio2go_sample/wsgi.py
rudeb0t/tornadio2go
ad618717c6b185fee533928d378c086e273685a9
[ "BSD-3-Clause" ]
1
2015-02-13T06:36:03.000Z
2015-02-13T06:36:03.000Z
examples/tornadio2go_sample/wsgi.py
rudeb0t/tornadio2go
ad618717c6b185fee533928d378c086e273685a9
[ "BSD-3-Clause" ]
1
2016-03-24T16:00:38.000Z
2016-03-24T16:00:38.000Z
examples/tornadio2go_sample/wsgi.py
rudeb0t/tornadio2go
ad618717c6b185fee533928d378c086e273685a9
[ "BSD-3-Clause" ]
null
null
null
""" WSGI config for tornadio_stress project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLIC...
43.818182
79
0.806362
0dd13eec4e1896568680bfa9338440b3177c16ac
2,451
py
Python
presto-docs/src/main/sphinx/conf.py
zx-hub/prestoSQL
5c0e8d4db716d2906e9b81c7e4a5c14c37fd420c
[ "Apache-2.0" ]
null
null
null
presto-docs/src/main/sphinx/conf.py
zx-hub/prestoSQL
5c0e8d4db716d2906e9b81c7e4a5c14c37fd420c
[ "Apache-2.0" ]
3
2021-08-09T21:00:30.000Z
2022-02-16T01:13:19.000Z
presto-docs/src/main/sphinx/conf.py
zx-hub/prestoSQL
5c0e8d4db716d2906e9b81c7e4a5c14c37fd420c
[ "Apache-2.0" ]
1
2020-09-02T14:08:01.000Z
2020-09-02T14:08:01.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under ...
22.694444
81
0.667891
e906ffbd7bf7fea0a5f38aa62a19208b5d424b09
1,004
py
Python
kubernetes/test/test_v1_subject_access_review.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_subject_access_review.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_subject_access_review.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
1
2019-01-10T11:13:52.000Z
2019-01-10T11:13:52.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
22.311111
105
0.721116
127bcd3beba33382bfaa229b716dc82354d24294
37,532
py
Python
posthog/api/test/test_action_people.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
posthog/api/test/test_action_people.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
posthog/api/test/test_action_people.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
import json from uuid import uuid4 from freezegun import freeze_time from ee.clickhouse.models.event import create_event from ee.clickhouse.models.session_recording_event import create_session_recording_event from ee.clickhouse.util import ClickhouseTestMixin, snapshot_clickhouse_queries from posthog.constants import...
39.055151
119
0.542231
38ab25f92b278ea145b9034301542ba5f96df441
11,288
py
Python
venv/Lib/site-packages/gensim/models/wrappers/wordrank.py
ishatserka/MachineLearningAndDataAnalysisCoursera
e82e772df2f4aec162cb34ac6127df10d14a625a
[ "MIT" ]
1
2019-01-22T04:59:02.000Z
2019-01-22T04:59:02.000Z
venv/Lib/site-packages/gensim/models/wrappers/wordrank.py
ishatserka/MachineLearningAndDataAnalysisCoursera
e82e772df2f4aec162cb34ac6127df10d14a625a
[ "MIT" ]
null
null
null
venv/Lib/site-packages/gensim/models/wrappers/wordrank.py
ishatserka/MachineLearningAndDataAnalysisCoursera
e82e772df2f4aec162cb34ac6127df10d14a625a
[ "MIT" ]
null
null
null
# Copyright (C) 2017 Parul Sethi <parul1sethi@gmail.com> # Copyright (C) 2017 Radim Rehurek <me@radimrehurek.com> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Python wrapper around word representation learning from Wordrank. The wrapped model can NOT be updated with new documents for ...
49.726872
190
0.664334
830e02a26921c74bd1fd54e1b25f109dbfde723a
932
py
Python
a10_neutron_lbaas/db/models/__init__.py
hthompson6/a10-neutron-lbaas
f1639758cd3abcc6c86c8e6b64dcb0397c359621
[ "Apache-2.0" ]
10
2015-09-15T05:16:15.000Z
2020-03-18T02:34:39.000Z
a10_neutron_lbaas/db/models/__init__.py
hthompson6/a10-neutron-lbaas
f1639758cd3abcc6c86c8e6b64dcb0397c359621
[ "Apache-2.0" ]
334
2015-02-11T23:45:00.000Z
2020-02-28T08:58:51.000Z
a10_neutron_lbaas/db/models/__init__.py
hthompson6/a10-neutron-lbaas
f1639758cd3abcc6c86c8e6b64dcb0397c359621
[ "Apache-2.0" ]
24
2015-01-13T21:14:45.000Z
2021-06-02T17:22:14.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
46.6
78
0.770386
e4d9f9670262f38bee01c15c3109b78ba2aaf305
907
py
Python
14-Introduction to Data Visualization with Seaborn/Chapter_2/07-Plotting subgroups in line plots.py
Pegasus-01/Data-manipulation-and-merging-with-pandas
5346678d25820d9fe352bd70294484ecd96fccf7
[ "Apache-2.0" ]
1
2020-10-18T16:42:28.000Z
2020-10-18T16:42:28.000Z
14-Introduction to Data Visualization with Seaborn/Chapter_2/07-Plotting subgroups in line plots.py
Pegasus-01/Data-manipulation-and-merging-with-pandas
5346678d25820d9fe352bd70294484ecd96fccf7
[ "Apache-2.0" ]
null
null
null
14-Introduction to Data Visualization with Seaborn/Chapter_2/07-Plotting subgroups in line plots.py
Pegasus-01/Data-manipulation-and-merging-with-pandas
5346678d25820d9fe352bd70294484ecd96fccf7
[ "Apache-2.0" ]
null
null
null
#part1 # Import Matplotlib and Seaborn import matplotlib.pyplot as plt import seaborn as sns # Create line plot of model year vs. horsepower sns.relplot(x="model_year",y="horsepower",data=mpg,kind="line",ci=None) # Show plot plt.show() #part2 # Import Matplotlib and Seaborn import matplotlib.pyplot as plt...
25.914286
72
0.675854
e50213f14e1aa53d50332091a4af223cc285ad5c
14,942
py
Python
quarkchain/p2p/p2p_manager.py
tim-yoshi/pyquarkchain
1847542c166a180b5ffc3c6e917751be85fa15a6
[ "MIT" ]
3
2019-03-14T17:08:07.000Z
2019-10-02T11:13:53.000Z
quarkchain/p2p/p2p_manager.py
tim-yoshi/pyquarkchain
1847542c166a180b5ffc3c6e917751be85fa15a6
[ "MIT" ]
null
null
null
quarkchain/p2p/p2p_manager.py
tim-yoshi/pyquarkchain
1847542c166a180b5ffc3c6e917751be85fa15a6
[ "MIT" ]
1
2019-05-04T22:57:29.000Z
2019-05-04T22:57:29.000Z
import ipaddress import socket from cryptography.hazmat.primitives.constant_time import bytes_eq from eth_keys import keys from typing import Tuple, Dict from quarkchain.utils import Logger from quarkchain.cluster.simple_network import Peer, AbstractNetwork from quarkchain.protocol import AbstractConnection, Connectio...
35.918269
92
0.667514
54b63940d99fc706d0566199aae2bff199f32c4e
709
py
Python
anonymizePhone.py
sen-den/DataAnonymiser
1cda7f40d1300ebe4ca1acc83761bdb3a94be1f3
[ "MIT" ]
null
null
null
anonymizePhone.py
sen-den/DataAnonymiser
1cda7f40d1300ebe4ca1acc83761bdb3a94be1f3
[ "MIT" ]
null
null
null
anonymizePhone.py
sen-den/DataAnonymiser
1cda7f40d1300ebe4ca1acc83761bdb3a94be1f3
[ "MIT" ]
null
null
null
import re from config import * def anonymizePhone(text): subsLength = cfg["Phone"]["DigitsToHide"] subsSign = cfg["Phone"]["MaskingSign"] # could be underfull: 0 chars before most left space firstGroupLength = subsLength % 3 subsFullGroupsCount = subsLength // 3 # each 3-chars group adds one space char sub...
26.259259
76
0.712271
b9c43eb21e2ac6c21c9b051f252e39ef13f0b53a
2,945
py
Python
official/vision/beta/projects/yolo/train.py
e10101/models
5c3e08b7697f0035b8731607277dc4e47e18317c
[ "Apache-2.0" ]
2
2017-10-26T06:23:51.000Z
2020-09-11T21:09:41.000Z
official/vision/beta/projects/yolo/train.py
e10101/models
5c3e08b7697f0035b8731607277dc4e47e18317c
[ "Apache-2.0" ]
2
2018-06-18T17:08:12.000Z
2021-04-12T05:39:04.000Z
official/vision/beta/projects/yolo/train.py
e10101/models
5c3e08b7697f0035b8731607277dc4e47e18317c
[ "Apache-2.0" ]
2
2020-04-11T19:31:17.000Z
2021-04-07T12:53:28.000Z
# Copyright 2021 The TensorFlow 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 # # Unless required by applica...
38.75
223
0.763328
fd4d1c822245146f3c6fe0495e82a148ab0e8009
8,875
py
Python
blackmamba/lib/rope/base/pyobjects.py
oz90210/blackmamba
65c82c8e99028d6fbb57098ce82d0a394df215a0
[ "MIT" ]
239
2018-04-20T06:58:32.000Z
2022-03-22T18:06:08.000Z
blackmamba/lib/rope/base/pyobjects.py
oz90210/blackmamba
65c82c8e99028d6fbb57098ce82d0a394df215a0
[ "MIT" ]
39
2017-08-20T15:10:36.000Z
2020-03-31T18:45:57.000Z
blackmamba/lib/rope/base/pyobjects.py
oz90210/blackmamba
65c82c8e99028d6fbb57098ce82d0a394df215a0
[ "MIT" ]
99
2018-07-20T09:16:13.000Z
2022-03-20T11:58:56.000Z
from rope.base.fscommands import _decode_data from rope.base import ast, exceptions, utils class PyObject(object): def __init__(self, type_): if type_ is None: type_ = self self.type = type_ def get_attributes(self): if self.type is self: return {} ret...
28.445513
78
0.637972
fd0811117d45f558cab9ad336b7f2c495aafcff5
2,100
py
Python
datasette/publish/now.py
kevboh/datasette
b7257a21bf3dfa7353980f343c83a616da44daa7
[ "Apache-2.0" ]
1
2018-06-01T22:15:11.000Z
2018-06-01T22:15:11.000Z
datasette/publish/now.py
kevboh/datasette
b7257a21bf3dfa7353980f343c83a616da44daa7
[ "Apache-2.0" ]
null
null
null
datasette/publish/now.py
kevboh/datasette
b7257a21bf3dfa7353980f343c83a616da44daa7
[ "Apache-2.0" ]
null
null
null
from datasette import hookimpl import click from subprocess import call from .common import ( add_common_publish_arguments_and_options, fail_if_publish_binary_not_installed, ) from ..utils import temporary_docker_directory @hookimpl def publish_subcommand(publish): @publish.command() @add_common_publ...
25.925926
86
0.522381
578a503ae922d16e9270578ce922f601de5f3ee5
4,937
py
Python
palm/aggregated_kinetic_model.py
milapour/palm
53cfce67f6621795ca419a79bd91c9ecf02cc93f
[ "BSD-2-Clause" ]
2
2015-03-25T13:02:32.000Z
2016-12-12T21:00:27.000Z
palm/aggregated_kinetic_model.py
milapour/palm
53cfce67f6621795ca419a79bd91c9ecf02cc93f
[ "BSD-2-Clause" ]
null
null
null
palm/aggregated_kinetic_model.py
milapour/palm
53cfce67f6621795ca419a79bd91c9ecf02cc93f
[ "BSD-2-Clause" ]
null
null
null
import numpy from collections import defaultdict from palm.base.model import Model from palm.state_collection import StateIDCollection from palm.route_collection import RouteIDCollection from palm.rate_fcn import rate_from_rate_id from palm.rate_matrix import make_rate_matrix_from_state_ids from palm.probability_vector...
38.874016
80
0.664979
07a61896f34f32e04636b2ea74b08c9d3ea9abaf
2,901
py
Python
erpx_namlifa/hooks.py
nick9822/erpx_namlifa
e092073c3348bccec4c76f367dba6086f27ca447
[ "MIT" ]
null
null
null
erpx_namlifa/hooks.py
nick9822/erpx_namlifa
e092073c3348bccec4c76f367dba6086f27ca447
[ "MIT" ]
3
2020-04-06T21:10:18.000Z
2022-03-25T23:46:57.000Z
erpx_namlifa/hooks.py
nick9822/erpx_namlifa
e092073c3348bccec4c76f367dba6086f27ca447
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "erpx_namlifa" app_title = "ERPX for Namlifa" app_publisher = "ERPX" app_description = "Human Resource Module for Namlifa powered by ERPX" app_icon = "octicon octicon-file-directory" app_color = "grey" a...
23.585366
80
0.677008
4bb7d28492434b9b6cf0e6cfe1a106cc5913463c
27
py
Python
theme-2/3456.py
sviridovcomp/python-course
030a0adc1b30e95d9335ab0bb1213dccda335b77
[ "MIT" ]
1
2021-06-03T13:08:10.000Z
2021-06-03T13:08:10.000Z
theme-2/3456.py
sviridovcomp/python-course
030a0adc1b30e95d9335ab0bb1213dccda335b77
[ "MIT" ]
null
null
null
theme-2/3456.py
sviridovcomp/python-course
030a0adc1b30e95d9335ab0bb1213dccda335b77
[ "MIT" ]
null
null
null
print(f"Hello, {input()}!")
27
27
0.592593
57a7bfd3700125ba478166813dc4cd9b6a748f76
4,253
py
Python
api/tacticalrmm/agents/permissions.py
jpjllorente/tacticalrmm
506055a8159a22e0d439a00e49a8dbe59e020474
[ "MIT" ]
null
null
null
api/tacticalrmm/agents/permissions.py
jpjllorente/tacticalrmm
506055a8159a22e0d439a00e49a8dbe59e020474
[ "MIT" ]
null
null
null
api/tacticalrmm/agents/permissions.py
jpjllorente/tacticalrmm
506055a8159a22e0d439a00e49a8dbe59e020474
[ "MIT" ]
null
null
null
from rest_framework import permissions from tacticalrmm.permissions import _has_perm, _has_perm_on_agent class AgentPerms(permissions.BasePermission): def has_permission(self, r, view) -> bool: if r.method == "GET": if "agent_id" in view.kwargs.keys(): return _has_perm(r, "can...
33.488189
81
0.631084
c1cec07e5f980c72f5f78a3e26bf8e8d3ffdaf5a
99
py
Python
cogs/owner/__init__.py
vbe0201/code-inspector
da3db9cdaad17614006adf85fb688931d41fc9f5
[ "MIT" ]
3
2019-03-22T07:57:41.000Z
2019-10-08T08:40:04.000Z
cogs/owner/__init__.py
itsVale/code-inspector
da3db9cdaad17614006adf85fb688931d41fc9f5
[ "MIT" ]
107
2019-02-10T14:03:16.000Z
2019-06-16T14:11:13.000Z
cogs/owner/__init__.py
vbe0201/code-inspector
da3db9cdaad17614006adf85fb688931d41fc9f5
[ "MIT" ]
4
2019-06-14T18:15:03.000Z
2021-05-23T13:53:21.000Z
# -*- coding: utf-8 -*- """ Commands from this category are restricted to the bot owner only. """
16.5
65
0.646465
a7d82dd6ddfee965e54149253e0c217f7c7b9ec0
390
py
Python
performance/profile/montecarlo_profile.py
ThiagoVieira/playsomeeuchre
6ffbc5096f889efa9bcb575ec4ec73b3a6973b6c
[ "MIT" ]
null
null
null
performance/profile/montecarlo_profile.py
ThiagoVieira/playsomeeuchre
6ffbc5096f889efa9bcb575ec4ec73b3a6973b6c
[ "MIT" ]
null
null
null
performance/profile/montecarlo_profile.py
ThiagoVieira/playsomeeuchre
6ffbc5096f889efa9bcb575ec4ec73b3a6973b6c
[ "MIT" ]
null
null
null
import cProfile from euchre.data_model import CardDeck, PlayerCards, Suite from euchre.game_simulations import GameTreeSimulation # Profile MonteCarlo Call, takes about 70 seconds on a full min max cards = CardDeck().deal_cards() players = [PlayerCards(i, i, cards[i]) for i in range(4)] mc_sim = GameTreeSimulation(pl...
26
67
0.774359
3d43eac4e947acf4ed6651bbf82dbbaf0db5ca90
2,412
py
Python
server/routes/static.py
shifucun/website
e2997109facc105935e34f55288d3b4f1205dedc
[ "Apache-2.0" ]
11
2020-07-18T17:04:26.000Z
2022-03-23T08:44:09.000Z
server/routes/static.py
shifucun/website
e2997109facc105935e34f55288d3b4f1205dedc
[ "Apache-2.0" ]
747
2020-06-22T16:56:45.000Z
2022-03-31T19:04:55.000Z
server/routes/static.py
shifucun/website
e2997109facc105935e34f55288d3b4f1205dedc
[ "Apache-2.0" ]
33
2019-09-25T21:26:12.000Z
2022-03-23T08:27:33.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
30.531646
74
0.69859
cdacb3d6183239049b50f74a8f6926c03411cf7e
3,466
py
Python
mwparserfromhell/definitions.py
wikimedia/operations-debs-python-mwparserfromhell
8039469b268372a63389e2b43825fa3b3463608a
[ "MIT" ]
null
null
null
mwparserfromhell/definitions.py
wikimedia/operations-debs-python-mwparserfromhell
8039469b268372a63389e2b43825fa3b3463608a
[ "MIT" ]
null
null
null
mwparserfromhell/definitions.py
wikimedia/operations-debs-python-mwparserfromhell
8039469b268372a63389e2b43825fa3b3463608a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2015 Ben Kurtovic <ben.kurtovic@gmail.com> # # 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 ...
38.511111
79
0.684939
98b0ac1ec6b6774e959913d0361ccce7ccf7672d
44,152
py
Python
impacket/dcerpc/v5/scmr.py
stobor28/impacket
e7461f6dbf448084b00230cc6fcd192f9c2baa08
[ "Apache-1.1" ]
7
2020-07-10T22:52:54.000Z
2021-11-09T16:05:07.000Z
impacket/dcerpc/v5/scmr.py
stobor28/impacket
e7461f6dbf448084b00230cc6fcd192f9c2baa08
[ "Apache-1.1" ]
5
2019-10-21T19:59:01.000Z
2020-05-27T21:42:04.000Z
impacket/dcerpc/v5/scmr.py
stobor28/impacket
e7461f6dbf448084b00230cc6fcd192f9c2baa08
[ "Apache-1.1" ]
2
2018-07-10T15:38:01.000Z
2018-08-11T02:57:48.000Z
# SECUREAUTH LABS. Copyright 2018 SecureAuth Corporation. All rights reserved. # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Author: Alberto Solino (@agsolino) # # Description: # [MS-SCMR] Interface...
31.8557
367
0.673265
b06c38ede59ccbd400075b5fca547eb666c5f310
3,705
py
Python
game/Window.py
alkief/PurpleRain
c197f4f8d7654f667f715f667df870d97b50a8f7
[ "MIT" ]
null
null
null
game/Window.py
alkief/PurpleRain
c197f4f8d7654f667f715f667df870d97b50a8f7
[ "MIT" ]
null
null
null
game/Window.py
alkief/PurpleRain
c197f4f8d7654f667f715f667df870d97b50a8f7
[ "MIT" ]
null
null
null
from tkinter import Canvas, Frame, Button, Label, BOTH import tkinter as tk import threading from . import Const class Window(tk.Frame): def __init__(self): self.master = tk.Tk() self.master.protocol('WM_DELETE_WINDOW', self.quit) self.root = tk.Frame.__init__(self, self.master, width=300,...
39
106
0.551687
589f47f2afc52626a2d1fe24c1add261f8fd10c1
1,102
py
Python
venv/lib/python3.8/site-packages/azureml/_restclient/models/metric_definition_dto.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/_restclient/models/metric_definition_dto.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/_restclient/models/metric_definition_dto.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.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 2.3.3...
33.393939
77
0.573503
2f542bfa2cbf7a7544c460c16831a0e1d3dce9c7
6,416
py
Python
micro_dl/networks/unet_stack_stack.py
leanhphuong201/microDL
6ba9ec242d38a0ec32183cb4a9974b27a8722e30
[ "MIT" ]
21
2018-11-07T15:34:37.000Z
2022-03-18T14:51:05.000Z
micro_dl/networks/unet_stack_stack.py
leanhphuong201/microDL
6ba9ec242d38a0ec32183cb4a9974b27a8722e30
[ "MIT" ]
72
2018-10-01T21:58:47.000Z
2022-03-28T20:26:38.000Z
micro_dl/networks/unet_stack_stack.py
leanhphuong201/microDL
6ba9ec242d38a0ec32183cb4a9974b27a8722e30
[ "MIT" ]
7
2018-11-20T19:30:12.000Z
2022-02-23T06:56:14.000Z
"""Unet for 3D volumes with anisotropic shape""" import numpy as np import tensorflow as tf from keras.layers import Activation, Conv3D, Input from micro_dl.networks.base_unet import BaseUNet from micro_dl.networks.conv_blocks import conv_block, residual_conv_block from micro_dl.utils.network_utils import get_keras_la...
39.361963
79
0.564059
b5c9671c587f6fb61fc54607f19c442f4a3ddb70
1,412
py
Python
test/compute/test_rackspace.py
ggreer/libcloud
a391ccdc0d068d37cb906a703f1494af50d83c8f
[ "Apache-2.0" ]
1
2021-06-14T11:11:39.000Z
2021-06-14T11:11:39.000Z
test/compute/test_rackspace.py
ggreer/libcloud
a391ccdc0d068d37cb906a703f1494af50d83c8f
[ "Apache-2.0" ]
null
null
null
test/compute/test_rackspace.py
ggreer/libcloud
a391ccdc0d068d37cb906a703f1494af50d83c8f
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
35.3
74
0.768414
4ca20a76e904aef7a4bb902af8fb391676d71a67
502
py
Python
weborchestra/wsgi.py
loictessier/weborchestra
80a7d8e3d94b84df65e8ecc52ea8b5cd200204e0
[ "MIT" ]
null
null
null
weborchestra/wsgi.py
loictessier/weborchestra
80a7d8e3d94b84df65e8ecc52ea8b5cd200204e0
[ "MIT" ]
4
2020-12-15T11:13:59.000Z
2021-06-10T20:28:54.000Z
weborchestra/wsgi.py
loictessier/weborchestra
80a7d8e3d94b84df65e8ecc52ea8b5cd200204e0
[ "MIT" ]
null
null
null
""" WSGI config for weborchestra project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application import dotenv dotenv.read_dot...
23.904762
84
0.782869
a41bf867f8b992a7ab000c496cf606f8b947de2a
4,278
py
Python
src/constraint.py
phyzhangyang/EasyScan_Hep
7076a200fb5011ca2f9909ed7a688c2f2512f272
[ "Apache-2.0" ]
6
2017-04-12T06:22:01.000Z
2021-10-18T00:22:39.000Z
src/constraint.py
phyzhangyang/EasyScan_Hep
7076a200fb5011ca2f9909ed7a688c2f2512f272
[ "Apache-2.0" ]
40
2017-12-27T02:39:54.000Z
2019-05-07T08:23:26.000Z
src/constraint.py
phyzhangyang/EasyScan_Hep
7076a200fb5011ca2f9909ed7a688c2f2512f272
[ "Apache-2.0" ]
2
2018-05-09T00:41:01.000Z
2019-12-01T14:19:51.000Z
#################################################################### # Class CONSTRAINT: contral CONSTRAINT # #################################################################### # Internal modules import auxfun as af class CONSTRAINT: def __init__(self): self._Gaussian=[] ...
35.65
151
0.443198
c37da10c99475e5b471e4aec7210998f8392226b
1,971
py
Python
ambari-server/src/main/resources/stacks/ADH/1.0/services/HBASE/package/scripts/hbase_thrift.py
Arenadata/ambari
4628267441121779113d98936dcdf5d9be60553c
[ "Apache-2.0" ]
5
2017-07-20T11:15:10.000Z
2020-04-16T15:42:55.000Z
ambari-server/src/main/resources/stacks/ADH/1.0/services/HBASE/package/scripts/hbase_thrift.py
Arenadata/ambari
4628267441121779113d98936dcdf5d9be60553c
[ "Apache-2.0" ]
3
2017-08-04T14:02:17.000Z
2018-06-06T14:47:25.000Z
ambari-server/src/main/resources/stacks/ADH/1.0/services/HBASE/package/scripts/hbase_thrift.py
Arenadata/ambari
4628267441121779113d98936dcdf5d9be60553c
[ "Apache-2.0" ]
12
2017-05-17T09:48:01.000Z
2021-08-05T19:01:25.000Z
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
41.0625
99
0.682395
ff9f336ddc3b15b6d887e572fc3fa9e6c77483ba
1,576
py
Python
24. Exam Prep/exam_02apr/tests/test_trap_card.py
elenaborisova/Python-OOP
584882c08f84045b12322917f0716c7c7bd9befc
[ "MIT" ]
1
2021-03-27T16:56:30.000Z
2021-03-27T16:56:30.000Z
24. Exam Prep/exam_02apr/tests/test_trap_card.py
elenaborisova/Python-OOP
584882c08f84045b12322917f0716c7c7bd9befc
[ "MIT" ]
null
null
null
24. Exam Prep/exam_02apr/tests/test_trap_card.py
elenaborisova/Python-OOP
584882c08f84045b12322917f0716c7c7bd9befc
[ "MIT" ]
1
2021-03-15T14:50:39.000Z
2021-03-15T14:50:39.000Z
import unittest from exam_02apr.project.card.trap_card import TrapCard class TrapCardTests(unittest.TestCase): def test_trapCardInit_whenValidName_shouldSetIt(self): name = 'test' trap_card = TrapCard(name) self.assertEqual('test', trap_card.name) def test_trapCardInit_whenEmptyStrin...
33.531915
98
0.70368
5405c93721473b6002eeb80501680be7da3f30c0
1,089
py
Python
manage.py
RodrigoSantosRodrigues/Biology
8032238957f23ad50e9150f991c13dfdc77f11f1
[ "MIT" ]
null
null
null
manage.py
RodrigoSantosRodrigues/Biology
8032238957f23ad50e9150f991c13dfdc77f11f1
[ "MIT" ]
null
null
null
manage.py
RodrigoSantosRodrigues/Biology
8032238957f23ad50e9150f991c13dfdc77f11f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # /manage.py """ ...Web Flask com autorização JWT (Jason web token authorization) ------------------------------------------------------------------------ Migrations ------------------------------------------------------------------------ URLs: https:...
32.029412
127
0.614325
45603213e9d3073fbeb0f3e3b8bc1f3bff3daedb
615
py
Python
tests/run_tests.py
fluxility/drf-haystack
6ff951b9d3fcba0704f891c964bf09374438d530
[ "MIT" ]
201
2015-02-14T08:17:35.000Z
2019-07-10T04:19:04.000Z
tests/run_tests.py
fluxility/drf-haystack
6ff951b9d3fcba0704f891c964bf09374438d530
[ "MIT" ]
138
2015-02-17T09:28:33.000Z
2019-07-30T10:29:52.000Z
tests/run_tests.py
fluxility/drf-haystack
6ff951b9d3fcba0704f891c964bf09374438d530
[ "MIT" ]
60
2015-04-01T14:51:18.000Z
2019-05-12T15:31:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import os import sys import nose def start(argv=None): sys.exitfunc = lambda: sys.stderr.write("Shutting down...\n") if argv is None: argv = [ "nosetests", ...
20.5
84
0.590244
6b4d00c3a0ec24dd9556ec5259e6af324ddb60f3
4,636
py
Python
SC101_Projects/SC101_Assignment4/babynames.py
TobyCCC/MystanCodeProJects
fac747e681875777b5d40bac3bcfebe204ca44f8
[ "MIT" ]
null
null
null
SC101_Projects/SC101_Assignment4/babynames.py
TobyCCC/MystanCodeProJects
fac747e681875777b5d40bac3bcfebe204ca44f8
[ "MIT" ]
null
null
null
SC101_Projects/SC101_Assignment4/babynames.py
TobyCCC/MystanCodeProJects
fac747e681875777b5d40bac3bcfebe204ca44f8
[ "MIT" ]
null
null
null
""" SC101 Baby Names Project Adapted from Nick Parlante's Baby Names assignment by Jerry Liao. YOUR DESCRIPTION HERE """ import sys def add_data_for_name(name_data, year, rank, name): """ Adds the given year and rank to the associated name in the name_data dict. Input: name_data (dict): dict ho...
30.5
99
0.632657
d23be00962272ac0d53e31a5518cc388f3aafeed
292
py
Python
pdf_download/pdf_download/items.py
concongo/simple-scrapy-pdf-scrapper
541559d89bdc849dd048bfae6d5a3b972e0d8edc
[ "Apache-2.0" ]
null
null
null
pdf_download/pdf_download/items.py
concongo/simple-scrapy-pdf-scrapper
541559d89bdc849dd048bfae6d5a3b972e0d8edc
[ "Apache-2.0" ]
null
null
null
pdf_download/pdf_download/items.py
concongo/simple-scrapy-pdf-scrapper
541559d89bdc849dd048bfae6d5a3b972e0d8edc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class PdfDownloadItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
19.466667
53
0.691781
99c90248366af6ae7aefe9cdd1eaa09156268b46
8,299
py
Python
src/design.py
KimNikita/satellite_images_processing
4b79eddbee3977fa6c227392e42745f50355ae90
[ "Apache-2.0" ]
1
2021-10-05T14:53:49.000Z
2021-10-05T14:53:49.000Z
src/design.py
KimNikita/satellite_images_processing
4b79eddbee3977fa6c227392e42745f50355ae90
[ "Apache-2.0" ]
5
2021-11-06T17:47:53.000Z
2021-12-26T21:16:02.000Z
src/design.py
KimNikita/satellite_images_processing
4b79eddbee3977fa6c227392e42745f50355ae90
[ "Apache-2.0" ]
3
2021-10-05T13:56:09.000Z
2021-11-05T16:10:02.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:/Users/Никита/Desktop/GUI/satellite.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self,...
60.137681
108
0.742861
66053d252bc808a98c5b9285e0d01e880c2124dc
3,260
py
Python
backend/backend/settings.py
ExZos/Mound
5d1e9ab1149ce7892f0f2d303f22db7d4af0b46e
[ "MIT" ]
null
null
null
backend/backend/settings.py
ExZos/Mound
5d1e9ab1149ce7892f0f2d303f22db7d4af0b46e
[ "MIT" ]
3
2021-06-09T18:09:07.000Z
2021-09-30T14:34:52.000Z
backend/backend/settings.py
ExZos/Mound
5d1e9ab1149ce7892f0f2d303f22db7d4af0b46e
[ "MIT" ]
null
null
null
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 3.0.6. 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 #...
25.271318
91
0.694479
7b50fac51b476d2a1399d8a93d6fa5be00c47dc1
12,795
py
Python
pirates/chat/PiratesTalkGlobals.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/chat/PiratesTalkGlobals.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/chat/PiratesTalkGlobals.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.chat.PiratesTalkGlobals from direct.gui.DirectGui import * from pandac.PandaModules import * from otp.chat.TalkGlobals import * ...
52.871901
130
0.796561
dadec9b1738073061f4e16ab94b9eec838066008
683
py
Python
practice/2008/qualification/A-Saving_the_universe/a.py
victorWeiFreelancer/CodeJam
edb8f921860a35985823cb3dbd3ebec8a8f3c12f
[ "MIT" ]
null
null
null
practice/2008/qualification/A-Saving_the_universe/a.py
victorWeiFreelancer/CodeJam
edb8f921860a35985823cb3dbd3ebec8a8f3c12f
[ "MIT" ]
null
null
null
practice/2008/qualification/A-Saving_the_universe/a.py
victorWeiFreelancer/CodeJam
edb8f921860a35985823cb3dbd3ebec8a8f3c12f
[ "MIT" ]
null
null
null
""" run by python3 a.py < test.in > test.out """ import sys sys.dont_write_bytecode = True from TestCase import TestCase def main(): numTestCases = int(input()) testCaseList = [] for i in range(numTestCases): nEngine = int(input()) engineDict = {} queryList = [] for j in...
24.392857
84
0.594436
e57db0a805442e31a60b40de81cf9a122dd34b45
1,832
py
Python
ProVulnScan.py
Sarthak044/ProVulnScanner
d0bfd54376e23650e8262cdd1157bcb10825966c
[ "Apache-2.0" ]
null
null
null
ProVulnScan.py
Sarthak044/ProVulnScanner
d0bfd54376e23650e8262cdd1157bcb10825966c
[ "Apache-2.0" ]
null
null
null
ProVulnScan.py
Sarthak044/ProVulnScanner
d0bfd54376e23650e8262cdd1157bcb10825966c
[ "Apache-2.0" ]
null
null
null
import urllib.parse as urlparse from bs4 import BeautifulSoup import scannerclass #Banner print(''' *@@@***@@m *@@@@* *@@@* *@@@ m@***@m@ ...
55.515152
123
0.181223
ea1ffc56124bba60b454596be9e7148d2f3b5f25
2,481
py
Python
safefileshare/file/forms.py
pdyba/safefileshare
db693bf623ad61495575501790795ac63037514b
[ "MIT" ]
null
null
null
safefileshare/file/forms.py
pdyba/safefileshare
db693bf623ad61495575501790795ac63037514b
[ "MIT" ]
null
null
null
safefileshare/file/forms.py
pdyba/safefileshare
db693bf623ad61495575501790795ac63037514b
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.contrib.auth.hashers import make_password from django.utils.translation import gettext_lazy as _ from safefileshare.file.models import SafeSecret class UploadFileForm(forms.Form): secret_link = forms.URLField(req...
32.220779
86
0.664248
3314d7882038eeeae615d37a84d1baa386521fa5
2,182
py
Python
src/clinic/parser.py
kvoss/optiwait
a941d4508209cac686a4d13348de378e0a582951
[ "BSD-3-Clause" ]
1
2019-02-14T19:23:26.000Z
2019-02-14T19:23:26.000Z
src/clinic/parser.py
kvoss/optiwait
a941d4508209cac686a4d13348de378e0a582951
[ "BSD-3-Clause" ]
null
null
null
src/clinic/parser.py
kvoss/optiwait
a941d4508209cac686a4d13348de378e0a582951
[ "BSD-3-Clause" ]
null
null
null
import re import unittest # from dateutil.parser import parse import logging logger = logging.getLogger(__name__) __all__ = ['Parser'] PATTERN = re.compile(r'(\d+)\s*min') PATTERNH = re.compile(r'(\d+)\s*(hour|hr)') PATTERN1H = re.compile(r'\b(one|an)\s+(hour|hr)\b') class Parser(object): def __init__(self,...
24.244444
65
0.589368
685069d90b62cb4efd4f02ec6001f64805fd682c
24,427
py
Python
lyrebird/mock/dm.py
echoyang7/lyrebird
903fef4bd51ee6430447374b6d432a4b339f7392
[ "MIT" ]
null
null
null
lyrebird/mock/dm.py
echoyang7/lyrebird
903fef4bd51ee6430447374b6d432a4b339f7392
[ "MIT" ]
null
null
null
lyrebird/mock/dm.py
echoyang7/lyrebird
903fef4bd51ee6430447374b6d432a4b339f7392
[ "MIT" ]
null
null
null
import os import re import uuid import json import codecs import shutil from pathlib import Path from urllib.parse import urlparse from lyrebird.log import get_logger from jinja2 import Template from lyrebird.application import config from lyrebird.mock.handlers import snapshot_helper PROP_FILE_NAME = '.lyrebird_prop...
32.569333
108
0.570598
ffd799753017a7a5791d769d9be74a366e8b94bb
7,526
py
Python
old/Main.py
gumbald/photobooth
930527e3f9232a7bbf637d445f4e5ce77d5cb0ec
[ "MIT" ]
null
null
null
old/Main.py
gumbald/photobooth
930527e3f9232a7bbf637d445f4e5ce77d5cb0ec
[ "MIT" ]
null
null
null
old/Main.py
gumbald/photobooth
930527e3f9232a7bbf637d445f4e5ce77d5cb0ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #import RPi.GPIO as GPIO #from PIL import Image import subprocess from time import gmtime, strftime, sleep import logging import RPi.GPIO as GPIO #from ImageManipulation import convert_photo_to_monochrome, crop_image_to_centre, create_image_montage, rotate_image import I...
33.300885
146
0.694659
9a0e04291dde8a4e9501704f77104a659166687b
2,232
py
Python
vyper/ast/utils.py
upgradvisor/vyper
642884ea938a25793c1b2fac866e8458e63a7b49
[ "Apache-2.0" ]
1,471
2017-12-25T05:47:57.000Z
2019-11-19T07:47:53.000Z
vyper/ast/utils.py
upgradvisor/vyper
642884ea938a25793c1b2fac866e8458e63a7b49
[ "Apache-2.0" ]
915
2019-11-21T05:48:16.000Z
2022-03-31T23:51:03.000Z
vyper/ast/utils.py
upgradvisor/vyper
642884ea938a25793c1b2fac866e8458e63a7b49
[ "Apache-2.0" ]
321
2017-12-25T16:37:21.000Z
2019-11-15T17:44:06.000Z
import ast as python_ast from typing import Dict, List, Optional, Union from vyper.ast import nodes as vy_ast from vyper.ast.annotation import annotate_python_ast from vyper.ast.pre_parser import pre_parse from vyper.exceptions import CompilerPanic, ParserException, SyntaxException def parse_to_ast( source_code:...
34.875
86
0.694892
3ce4ae8f34146986c57b87f3419f5cc5089fb81e
1,788
py
Python
synth/common/utils.py
DevicePilot/synth
c2b2345322e86c8dfac101ff375421e7dcd5f1b2
[ "MIT" ]
2
2021-03-15T18:02:46.000Z
2021-12-09T20:54:25.000Z
synth/common/utils.py
DevicePilot/synth
c2b2345322e86c8dfac101ff375421e7dcd5f1b2
[ "MIT" ]
2
2017-04-18T08:41:49.000Z
2017-10-04T15:13:06.000Z
synth/common/utils.py
DevicePilot/synth
c2b2345322e86c8dfac101ff375421e7dcd5f1b2
[ "MIT" ]
3
2018-02-06T17:07:06.000Z
2020-01-27T17:05:11.000Z
#!/usr/bin/env python # # UTILS # # Copyright (c) 2017 DevicePilot Ltd. # # 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...
39.733333
125
0.696868
c3c3cfdf9a94ed3aac92f6ea1d8329e0a0079e74
487
py
Python
tests/test_high_vre_capacity_expansion.py
sriharisundar/high_vre_capacity_expansion
8dd9beaee72a82c6057a6191694c70837f66e905
[ "MIT" ]
null
null
null
tests/test_high_vre_capacity_expansion.py
sriharisundar/high_vre_capacity_expansion
8dd9beaee72a82c6057a6191694c70837f66e905
[ "MIT" ]
null
null
null
tests/test_high_vre_capacity_expansion.py
sriharisundar/high_vre_capacity_expansion
8dd9beaee72a82c6057a6191694c70837f66e905
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Tests for `high_vre_capacity_expansion` package.""" import unittest from high_vre_capacity_expansion import high_vre_capacity_expansion class TestHigh_vre_capacity_expansion(unittest.TestCase): """Tests for `high_vre_capacity_expansion` package.""" def setUp(self): """Set...
22.136364
67
0.700205
34cc25f88fc084beae51b60bdb968df9497521c6
14,918
py
Python
gscreen.py
pjamessteven/timetables
9fe4ef53c6aef404e25abba766bec1380efe2818
[ "MIT" ]
null
null
null
gscreen.py
pjamessteven/timetables
9fe4ef53c6aef404e25abba766bec1380efe2818
[ "MIT" ]
null
null
null
gscreen.py
pjamessteven/timetables
9fe4ef53c6aef404e25abba766bec1380efe2818
[ "MIT" ]
null
null
null
import os import numpy as np from PIL import Image, ImageQt, ImageDraw, ImageFont import time import datetime import logging logger = logging.Logger(name="main") logger.setLevel(logging.DEBUG) import achievements class Score: """ The game is scored using passenger kilometres. 1 passenger kilometres means 1 passen...
44.267062
137
0.588149
6dc6a5a0af6cf1f8d6b412a4fdc8c696842fead4
18,886
py
Python
tools/bdconfig/lib/google_hadoop/bdconfig_lib/config_commands_test.py
zulily/bigdata-interop
69906bbe2e5fcde9583f63a8f2c93bde3edfd512
[ "Apache-2.0" ]
null
null
null
tools/bdconfig/lib/google_hadoop/bdconfig_lib/config_commands_test.py
zulily/bigdata-interop
69906bbe2e5fcde9583f63a8f2c93bde3edfd512
[ "Apache-2.0" ]
null
null
null
tools/bdconfig/lib/google_hadoop/bdconfig_lib/config_commands_test.py
zulily/bigdata-interop
69906bbe2e5fcde9583f63a8f2c93bde3edfd512
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
37.472222
80
0.73017
8adf7b655be894325d02eba779c4d1cf2445d08d
5,686
py
Python
tests/regressiontests/model_fields/models.py
yarko/django
90b6240c8753ece3e52cafc37e1088b0646b843f
[ "BSD-3-Clause" ]
1
2015-05-14T11:23:36.000Z
2015-05-14T11:23:36.000Z
tests/regressiontests/model_fields/models.py
yarko/django
90b6240c8753ece3e52cafc37e1088b0646b843f
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/model_fields/models.py
yarko/django
90b6240c8753ece3e52cafc37e1088b0646b843f
[ "BSD-3-Clause" ]
null
null
null
import os import tempfile # Try to import PIL in either of the two ways it can end up installed. # Checking for the existence of Image is enough for CPython, but for PyPy, # you need to check for the underlying modules. try: from PIL import Image, _imaging except ImportError: try: import Image, _imagi...
34.670732
79
0.607281
9cfb46ed6b05cd0d4c7a16a81985cf1b4466d0db
7,079
py
Python
apps/combine-api/tests/run/test_run_get_simulators.py
freiburgermsu/biosimulations
1c4f604f67c0924b58e1a3a45378c86bab7ace5b
[ "MIT" ]
20
2021-09-05T02:47:07.000Z
2022-01-25T10:46:47.000Z
apps/combine-api/tests/run/test_run_get_simulators.py
freiburgermsu/biosimulations
1c4f604f67c0924b58e1a3a45378c86bab7ace5b
[ "MIT" ]
1,884
2020-08-23T17:40:26.000Z
2021-09-01T16:29:20.000Z
apps/combine-api/tests/run/test_run_get_simulators.py
freiburgermsu/biosimulations
1c4f604f67c0924b58e1a3a45378c86bab7ace5b
[ "MIT" ]
2
2019-11-04T15:08:05.000Z
2020-01-02T21:17:51.000Z
from biosimulators_utils.config import get_config from src import app from src.handlers.run.utils import get_simulator_api, get_simulators, exec_in_subprocess from unittest import mock import os import parameterized import pytest import requests import shutil import tempfile import unittest class GetSimulatorsTestCas...
42.136905
137
0.621133
905bbf464035ca2e0857a5ab915be30ce2047757
2,660
py
Python
src/scratch/test/spritesheetloader.py
vidalmatheus/MK-Project
6646020c59367ba0424d73a5861e13bbc0daac1f
[ "MIT" ]
1
2019-12-25T10:25:30.000Z
2019-12-25T10:25:30.000Z
src/scratch/test/spritesheetloader.py
vidalmatheus/MK-Project
6646020c59367ba0424d73a5861e13bbc0daac1f
[ "MIT" ]
1
2019-12-25T10:27:15.000Z
2019-12-25T10:27:15.000Z
src/scratch/test/spritesheetloader.py
vidalmatheus/MK-Project
6646020c59367ba0424d73a5861e13bbc0daac1f
[ "MIT" ]
1
2019-12-25T10:50:05.000Z
2019-12-25T10:50:05.000Z
import pygame,os from pygame.locals import * class SpritesheetLoader: def __init__(self,file,sprite_width,sprite_height, fullsheet=False): self.sheet = pygame.image.load(os.path.join(file)) self.sprite_width = sprite_width self.sprite_height = sprite_height self.sprite_list=sel...
35.945946
92
0.540226
272ee7da3a265e0326543a51e68c450bffc1682c
164,980
py
Python
modin/pandas/test/test_series.py
modin-project/modin
f1f3aabd0ecd75086dfe7fb70be6a040958e0045
[ "ECL-2.0", "Apache-2.0" ]
7,258
2018-06-21T21:39:15.000Z
2022-03-31T23:09:20.000Z
modin/pandas/test/test_series.py
modin-project/modin
f1f3aabd0ecd75086dfe7fb70be6a040958e0045
[ "ECL-2.0", "Apache-2.0" ]
4,125
2018-06-22T18:04:48.000Z
2022-03-31T17:13:19.000Z
modin/pandas/test/test_series.py
modin-project/modin
f1f3aabd0ecd75086dfe7fb70be6a040958e0045
[ "ECL-2.0", "Apache-2.0" ]
547
2018-06-21T23:23:00.000Z
2022-03-27T09:04:56.000Z
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
36.1957
104
0.707468
6fdf50bee87ab7e57d204714584e585e1f803c6a
1,448
py
Python
setup/azure_resources/setup_key_vault_secrets.py
areed1192/trading-system
6c0c1444b9d249c548c7989db2a83cf2f848ef6a
[ "MIT" ]
10
2021-08-01T09:18:31.000Z
2022-01-25T18:55:39.000Z
setup/azure_resources/setup_key_vault_secrets.py
areed1192/trading-system
6c0c1444b9d249c548c7989db2a83cf2f848ef6a
[ "MIT" ]
null
null
null
setup/azure_resources/setup_key_vault_secrets.py
areed1192/trading-system
6c0c1444b9d249c548c7989db2a83cf2f848ef6a
[ "MIT" ]
null
null
null
from configparser import ConfigParser from tradesys.client import TradingSystem from azure.keyvault.secrets import SecretClient # Initialize the Parser. config = ConfigParser() # Read the file. config.read('config/config.ini') # Grab the Azure Credentials needed. iex_api_key = config.get('iex', 'api-key') sql_connec...
26.814815
73
0.776934
7cf79c01fb9c5e4df53d0efe240c1a95cfde8722
3,235
py
Python
tensorflow_datasets/audio/gtzan/gtzan.py
shashwat9kumar/datasets
99b055408025f8e934fcbb0fc054488aa087ebfb
[ "Apache-2.0" ]
1
2019-07-19T15:01:45.000Z
2019-07-19T15:01:45.000Z
tensorflow_datasets/audio/gtzan/gtzan.py
shashwat9kumar/datasets
99b055408025f8e934fcbb0fc054488aa087ebfb
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/audio/gtzan/gtzan.py
shashwat9kumar/datasets
99b055408025f8e934fcbb0fc054488aa087ebfb
[ "Apache-2.0" ]
1
2021-08-02T22:12:40.000Z
2021-08-02T22:12:40.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets 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 appl...
28.883929
79
0.664606
235beefe6f5b4ef5410d20d9e06b194b484ed548
24,140
py
Python
sdk/python/pulumi_azure_native/operationalinsights/v20210601/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/operationalinsights/v20210601/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/operationalinsights/v20210601/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
35.395894
371
0.637283
3a05d0cd8143986a1a7dcdd723e4f5b4a11bacfa
1,675
py
Python
accesslink-API/accesslink/accesslink.py
mendelson/polar-data-analysis
04c7b8615d88e3966e8a71c4353ad23c61ff022d
[ "MIT" ]
115
2017-10-26T16:59:51.000Z
2022-03-29T13:56:48.000Z
accesslink-API/accesslink/accesslink.py
mendelson/polar-data-analysis
04c7b8615d88e3966e8a71c4353ad23c61ff022d
[ "MIT" ]
14
2018-01-08T10:02:05.000Z
2022-02-17T16:05:01.000Z
accesslink-API/accesslink/accesslink.py
mendelson/polar-data-analysis
04c7b8615d88e3966e8a71c4353ad23c61ff022d
[ "MIT" ]
61
2017-10-27T10:38:17.000Z
2022-03-11T20:03:52.000Z
#!/usr/bin/env python from . import endpoints from .oauth2 import OAuth2Client AUTHORIZATION_URL = "https://flow.polar.com/oauth2/authorization" ACCESS_TOKEN_URL = "https://polarremote.com/v2/oauth2/token" ACCESSLINK_URL = "https://www.polaraccesslink.com/v3" class AccessLink(object): """Wrapper class for Polar...
39.880952
91
0.666269
3eaa203339032dee365a3b5148cdda06bcfee180
5,573
py
Python
tempest/common/ssh.py
citrix-openstack-build/tempest
385f0b116e8f02d24338e0f11f4ae3ccf2edd661
[ "Apache-2.0" ]
null
null
null
tempest/common/ssh.py
citrix-openstack-build/tempest
385f0b116e8f02d24338e0f11f4ae3ccf2edd661
[ "Apache-2.0" ]
null
null
null
tempest/common/ssh.py
citrix-openstack-build/tempest
385f0b116e8f02d24338e0f11f4ae3ccf2edd661
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apach...
36.188312
78
0.59555
5350093435bb8a564661e6265d08f22407c86841
1,296
py
Python
src/gen_per_key.py
jasonhavenD/triplesKB
e591adcb60d2611eef361f8ec412ace817c683eb
[ "Apache-2.0" ]
14
2019-05-13T09:43:56.000Z
2022-01-23T02:18:28.000Z
src/gen_per_key.py
jasonhavenD/triplesKB
e591adcb60d2611eef361f8ec412ace817c683eb
[ "Apache-2.0" ]
1
2020-10-26T03:34:09.000Z
2020-10-26T06:17:10.000Z
src/gen_per_key.py
jasonhavenD/triplesKB
e591adcb60d2611eef361f8ec412ace817c683eb
[ "Apache-2.0" ]
7
2019-05-27T01:51:24.000Z
2021-07-12T02:42:12.000Z
# encoding = utf-8 import re import loguru import json from collections import defaultdict def main(per_dict, field_dict, des): # keys = ['aff', 'name', 'avatar','indices', 'tags', 'pos', 'contact', 'attr'] pers = json.load(open(per_dict, 'r')) fields = json.load(open(field_dict, 'r')) fields_table = ...
28.173913
82
0.534722
a9fa2626f69f55b4bd173da0b7d528a5a7ee1293
2,340
py
Python
shb-sanet/exp/11-30_16-21_SHHB_SANet_0.0001_[flip+crop]/code/config.py
mar-edw-kon/CCAugmentation-Experiments-Env
ea86a775a3088b851feb42e0fdd8bd6c4f07d4c7
[ "MIT" ]
1
2020-11-25T01:23:00.000Z
2020-11-25T01:23:00.000Z
shb-sanet/exp/11-30_16-21_SHHB_SANet_0.0001_[flip+crop]/code/config.py
mar-edw-kon/CCAugmentation-Experiments-Env
ea86a775a3088b851feb42e0fdd8bd6c4f07d4c7
[ "MIT" ]
null
null
null
shb-sanet/exp/11-30_16-21_SHHB_SANet_0.0001_[flip+crop]/code/config.py
mar-edw-kon/CCAugmentation-Experiments-Env
ea86a775a3088b851feb42e0fdd8bd6c4f07d4c7
[ "MIT" ]
null
null
null
import os from easydict import EasyDict as edict import time import torch # init __C = edict() cfg = __C #------------------------------TRAIN------------------------ __C.SEED = 3035 # random seed, for reporduction __C.DATASET = 'SHHB' # dataset selection: GCC, SHHA, SHHB, UCF50, QNRF, WE if __C.DATASET...
31.2
113
0.551709
b6e0e44507ace462620a359b07cd5033fd53ecb0
391
py
Python
chatBot/asgi.py
Anik-Bardhan/ChatBot
e503a795d695512cee59b62fa535a19501ae220c
[ "MIT" ]
null
null
null
chatBot/asgi.py
Anik-Bardhan/ChatBot
e503a795d695512cee59b62fa535a19501ae220c
[ "MIT" ]
null
null
null
chatBot/asgi.py
Anik-Bardhan/ChatBot
e503a795d695512cee59b62fa535a19501ae220c
[ "MIT" ]
null
null
null
""" ASGI config for chatBot project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
29ffb852e04c37a2b16286cd30719037b0ff39f4
4,853
py
Python
tests/algorithms/test_objective_functions.py
mihailescum/poisson_learning
d282e527ea001f3762db0c795f3bca9c9a0807f4
[ "MIT" ]
1
2022-01-13T12:31:39.000Z
2022-01-13T12:31:39.000Z
tests/algorithms/test_objective_functions.py
mihailescum/poisson_learning
d282e527ea001f3762db0c795f3bca9c9a0807f4
[ "MIT" ]
null
null
null
tests/algorithms/test_objective_functions.py
mihailescum/poisson_learning
d282e527ea001f3762db0c795f3bca9c9a0807f4
[ "MIT" ]
null
null
null
import numpy as np import scipy.sparse as spsparse import pytest import numpy.testing as npt from poissonlearning.objective_functions import ( objective_p_laplace, objective_p_laplace_gradient, objective_weighted_mean, objective_weighted_mean_gradient, ) @pytest.mark.parametrize( "u, W, b, p", ...
27.418079
83
0.34659
1e6fbbc019923e967992e7632ff90d4d14be4ee8
4,491
py
Python
examples/cluster/plot_kmeans_digits.py
NickVeld/scikit-learn-proj
9694a5641a7abbec96c93817aed88ce827dbacd3
[ "BSD-3-Clause" ]
1
2021-11-26T12:22:13.000Z
2021-11-26T12:22:13.000Z
examples/cluster/plot_kmeans_digits.py
NickVeld/scikit-learn-proj
9694a5641a7abbec96c93817aed88ce827dbacd3
[ "BSD-3-Clause" ]
null
null
null
examples/cluster/plot_kmeans_digits.py
NickVeld/scikit-learn-proj
9694a5641a7abbec96c93817aed88ce827dbacd3
[ "BSD-3-Clause" ]
null
null
null
""" =========================================================== A demo of K-Means clustering on the handwritten digits data =========================================================== In this example we compare the various initialization strategies for K-means in terms of runtime and quality of the results. As the gr...
35.362205
79
0.623914
cf6a97ece9025fe2a0f92440e48b582c8e44eaaf
152
py
Python
x86/Chapter1/Chapter1-printf.py
dunker4o/gray-hat-code
309a2a746acdf79832c792b3c0b8d9d3f59b9cf0
[ "Unlicense" ]
null
null
null
x86/Chapter1/Chapter1-printf.py
dunker4o/gray-hat-code
309a2a746acdf79832c792b3c0b8d9d3f59b9cf0
[ "Unlicense" ]
null
null
null
x86/Chapter1/Chapter1-printf.py
dunker4o/gray-hat-code
309a2a746acdf79832c792b3c0b8d9d3f59b9cf0
[ "Unlicense" ]
null
null
null
from ctypes import * msvcrt = cdll.msvcrt message_string = "Hello, Gray Hat Python!\n" msvcrt.printf("A message has been received: %s", message_string)
30.4
64
0.756579