hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
28b2d9d3a5f3a83df3cb0a1a520dbfa3d172678d
67
py
Python
data.py
anthonyozerov/market-des
178f89cfa9d83407c7622ce3cc7a74c467916362
[ "MIT" ]
null
null
null
data.py
anthonyozerov/market-des
178f89cfa9d83407c7622ce3cc7a74c467916362
[ "MIT" ]
null
null
null
data.py
anthonyozerov/market-des
178f89cfa9d83407c7622ce3cc7a74c467916362
[ "MIT" ]
null
null
null
times = [] time = 0 agents = [] assets = [] m = 3 verbose = False
8.375
15
0.537313
734fef9c809044f69253af5d9b2c9d3332bcf7ef
1,664
py
Python
divider/cli.py
brathis/divider
20c210b7b32d63ed20be6fc066443dbc56860d70
[ "MIT" ]
null
null
null
divider/cli.py
brathis/divider
20c210b7b32d63ed20be6fc066443dbc56860d70
[ "MIT" ]
1
2018-01-08T03:15:56.000Z
2018-01-08T14:19:02.000Z
divider/cli.py
brathis/divider
20c210b7b32d63ed20be6fc066443dbc56860d70
[ "MIT" ]
null
null
null
""" Handles user interaction """ import argparse from .divider import Run, SERIES, RatioType SCHEMATIC = """ R1 R2 --[======]-----[======]-- | | | V_in V_out GND """ PARSER = argparse.ArgumentParser() PARSER.add_argument('--v_in', type=float) PARSER.add_a...
26.412698
72
0.652043
ddbdc60dbb2e728be8716950b046dcf5344a34e8
23,314
py
Python
discord/activity.py
archiif/discord.py
3b2e0bafdd83d44996ede665fa5d1f098fa6bdfe
[ "MIT" ]
null
null
null
discord/activity.py
archiif/discord.py
3b2e0bafdd83d44996ede665fa5d1f098fa6bdfe
[ "MIT" ]
null
null
null
discord/activity.py
archiif/discord.py
3b2e0bafdd83d44996ede665fa5d1f098fa6bdfe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2020 Rapptz 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 u...
30.396349
118
0.604358
28ad6ec6957fa4c2e0142264d103aaa787674161
1,451
py
Python
setup.py
sixfeetup/bobtemplates.sixfeetup
62bca308876a6cbd8c6c51b5487af0ef661cb02d
[ "BSD-3-Clause" ]
1
2017-07-07T21:03:34.000Z
2017-07-07T21:03:34.000Z
setup.py
sixfeetup/bobtemplates.sixfeetup
62bca308876a6cbd8c6c51b5487af0ef661cb02d
[ "BSD-3-Clause" ]
14
2017-07-06T15:57:17.000Z
2022-01-07T14:45:43.000Z
setup.py
sixfeetup/bobtemplates.sixfeetup
62bca308876a6cbd8c6c51b5487af0ef661cb02d
[ "BSD-3-Clause" ]
2
2017-07-06T15:57:22.000Z
2019-03-06T21:51:30.000Z
# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup version = '2.0' long_description = '\n\n'.join([ open('README.rst').read(), open('CONTRIBUTORS.rst').read(), open('CHANGES.rst').read(), ]) setup( name='bobtemplates.sixfeetup', version=version, descr...
25.910714
64
0.594073
9077548015dcf64ca2adfda3b219ffca9fbabcf8
208
py
Python
01_Language/01_Functions/python/intdiv.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
3
2020-06-28T07:42:51.000Z
2021-01-15T10:32:11.000Z
01_Language/01_Functions/python/intdiv.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
9
2021-03-10T22:45:40.000Z
2022-02-27T06:53:20.000Z
01_Language/01_Functions/python/intdiv.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
1
2021-01-15T10:51:24.000Z
2021-01-15T10:51:24.000Z
# coding: utf-8 def intdiv(dividend, divisor): return dividend // divisor if __name__ == '__main__': print(intdiv(3, 2)) print(intdiv(-3, 2)) print(intdiv(3, -2)) print(intdiv(-3, -2))
17.333333
30
0.600962
4bbe7d71605c64f0d5c9b3c03aa0c55d7f92f103
401
py
Python
hospitalmgmt/hospitalmgmt/asgi.py
bengkel-linux/django-stuff
508071ae03b51189cb44c289bed0c7c753bed75e
[ "MIT" ]
null
null
null
hospitalmgmt/hospitalmgmt/asgi.py
bengkel-linux/django-stuff
508071ae03b51189cb44c289bed0c7c753bed75e
[ "MIT" ]
null
null
null
hospitalmgmt/hospitalmgmt/asgi.py
bengkel-linux/django-stuff
508071ae03b51189cb44c289bed0c7c753bed75e
[ "MIT" ]
null
null
null
""" ASGI config for hospitalmgmt 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.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
23.588235
78
0.790524
d7cf1b35f81e56060a6eb542d79f18049de3afdc
8,075
py
Python
bin/ADFRsuite/CCSBpckgs/mglutil/web/services/AppService_client.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/mglutil/web/services/AppService_client.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/mglutil/web/services/AppService_client.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
################################################################################ ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your op...
45.365169
116
0.688669
a4ae76086aaafdfef1bd81f6d29472c1c4964ce6
2,024
py
Python
lib/spack/spack/test/buildrequest.py
FJ-NaokiMatsumura/spack
7cfe626e21795f0a4bfe61f36ca1b48ffd2fc961
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
lib/spack/spack/test/buildrequest.py
FJ-NaokiMatsumura/spack
7cfe626e21795f0a4bfe61f36ca1b48ffd2fc961
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
lib/spack/spack/test/buildrequest.py
FJ-NaokiMatsumura/spack
7cfe626e21795f0a4bfe61f36ca1b48ffd2fc961
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import sys import pytest import spack.installer as inst import spack.repo import spack.spec # Spack functionality teste...
31.138462
73
0.726285
72d296c789fd334e6011de4d7b99069068ff813e
4,297
py
Python
eval2.py
xukai98/cnn-news-classification-tf
98292c786e87b9d536829aa6f05ef68428eee992
[ "Apache-2.0" ]
4
2019-03-21T08:44:43.000Z
2020-04-17T01:16:38.000Z
eval2.py
xukai98/cnn-news-classification-tf
98292c786e87b9d536829aa6f05ef68428eee992
[ "Apache-2.0" ]
null
null
null
eval2.py
xukai98/cnn-news-classification-tf
98292c786e87b9d536829aa6f05ef68428eee992
[ "Apache-2.0" ]
2
2020-11-26T08:50:12.000Z
2021-09-27T08:58:17.000Z
#! /usr/bin/env python import tensorflow as tf import numpy as np import os import time import datetime import data_helpers from text_cnn import TextCNN from tensorflow.contrib import learn import csv import sys # Parameters # ================================================== # Data Parameters tf.flags.DEFINE_strin...
36.726496
124
0.709565
656fd8e7a7cb7514c43bf0915d186b07428be998
17,486
py
Python
harness/determined/keras/_tf_keras_context.py
shiyuann/determined
856123ae112759de7bded9bc7bd0e07055f2174b
[ "Apache-2.0" ]
1,729
2020-04-27T17:36:40.000Z
2022-03-31T05:48:39.000Z
harness/determined/keras/_tf_keras_context.py
ChrisW09/determined
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
[ "Apache-2.0" ]
1,940
2020-04-27T17:34:14.000Z
2022-03-31T23:02:28.000Z
harness/determined/keras/_tf_keras_context.py
ChrisW09/determined
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
[ "Apache-2.0" ]
214
2020-04-27T19:57:28.000Z
2022-03-29T08:17:16.000Z
import inspect import logging from typing import Any, Callable, Dict, List, NamedTuple, Optional, Union import tensorflow as tf import determined as det from determined import _data_layer, errors, horovod, keras from determined.common import check from determined.horovod import hvd class TFKerasTrainConfig(NamedTup...
42.64878
100
0.620039
1248a2ed90ca9274ffeca10c63330834bbeb8cfd
1,245
py
Python
Django/DjangoT1.11_LTS/33_Layouting form di templates/contact/forms.py
Akhadafi/WEB-Framework
4547a682ac1f007aa6f97512baf76b92ef1c9b9a
[ "MIT" ]
null
null
null
Django/DjangoT1.11_LTS/33_Layouting form di templates/contact/forms.py
Akhadafi/WEB-Framework
4547a682ac1f007aa6f97512baf76b92ef1c9b9a
[ "MIT" ]
null
null
null
Django/DjangoT1.11_LTS/33_Layouting form di templates/contact/forms.py
Akhadafi/WEB-Framework
4547a682ac1f007aa6f97512baf76b92ef1c9b9a
[ "MIT" ]
null
null
null
# button # text field # text area # password # hidden field # checkbox # radio button # radio group # select from django import forms class ContactForm(forms.Form): nama_lengkap = forms.CharField( label='Nama Lengkap', max_length=100, widget=forms.TextInput( attrs={ 'class':'f...
23.055556
89
0.545382
612f7763008f57e564d9e8f0dee5a111170cd5e1
1,293
py
Python
stubs/micropython-v1_10-pyboard/framebuf.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_10-pyboard/framebuf.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_10-pyboard/framebuf.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'framebuf' on micropython-v1.10-pyboard """ # MCU: {'ver': 'v1.10', 'build': '', 'platform': 'pyboard', 'port': 'pyboard', 'machine': 'PYBv1.1 with STM32F405RG', 'release': '1.10.0', 'nodename': 'pyboard', 'name': 'micropython', 'family': 'micropython', 'sysname': 'pyboard', 'version': '1.10.0'} # Stubber: ...
21.915254
252
0.512761
db3cd26a4805c0056f2591b98c848e98050edcbd
6,878
py
Python
tests/unit/contexts/sahara/test_sahara_input_data_sources.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
tests/unit/contexts/sahara/test_sahara_input_data_sources.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
tests/unit/contexts/sahara/test_sahara_input_data_sources.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
1
2018-12-10T12:31:27.000Z
2018-12-10T12:31:27.000Z
# 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 applicable law or agreed to in writing, software #...
39.528736
78
0.574004
cce8039707381089927ebc3b3400bb299b4ffbe9
16,280
py
Python
sdk/python/pulumi_cloudflare/page_rule.py
pulumi/pulumi-cloudflare
d444af2fab6101b388a15cf2e3933e45e9935cc6
[ "ECL-2.0", "Apache-2.0" ]
35
2019-03-14T21:29:29.000Z
2022-03-30T00:00:59.000Z
sdk/python/pulumi_cloudflare/page_rule.py
pulumi/pulumi-cloudflare
d444af2fab6101b388a15cf2e3933e45e9935cc6
[ "ECL-2.0", "Apache-2.0" ]
128
2019-03-08T23:45:58.000Z
2022-03-31T21:05:22.000Z
sdk/python/pulumi_cloudflare/page_rule.py
pulumi/pulumi-cloudflare
d444af2fab6101b388a15cf2e3933e45e9935cc6
[ "ECL-2.0", "Apache-2.0" ]
6
2019-05-10T12:52:56.000Z
2020-03-24T15:02:14.000Z
# 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 ...
40.598504
244
0.622297
075d1087814458437a67f1cb68aefc69789bb594
2,061
py
Python
src/oscar_wagtail/views.py
fourdigits/django-oscar-wagtail
818c8ac93a7854c7837043d145e36d8177f29a70
[ "MIT" ]
null
null
null
src/oscar_wagtail/views.py
fourdigits/django-oscar-wagtail
818c8ac93a7854c7837043d145e36d8177f29a70
[ "MIT" ]
null
null
null
src/oscar_wagtail/views.py
fourdigits/django-oscar-wagtail
818c8ac93a7854c7837043d145e36d8177f29a70
[ "MIT" ]
null
null
null
import json from six import text_type from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from django.urls import reverse from django.db.models import Q from django.shortcuts import get_object_or_404 from oscar.core.loading import get_model from wagtail.admin.forms.search import SearchForm from wa...
26.766234
72
0.635129
48d1afdf71e6efa6875344a57f067bcf029c0477
227
py
Python
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/simple-client-server/client.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/simple-client-server/client.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
160
2021-04-26T19:04:15.000Z
2022-03-26T20:18:37.000Z
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/simple-client-server/client.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
# client.py import socket HOST, PORT = "127.0.0.1", 1400 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((HOST, PORT)) s.send(b"Hello World") data = s.recv(1024) s.close() print(repr(data.decode("ascii")))
15.133333
53
0.687225
f5219fa85c3336fb6712ed6b419f1f893a18d5b1
6,961
py
Python
src/genie/libs/parser/iosxe/tests/ShowLispServiceServerSummary/cli/equal/golden_output3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowLispServiceServerSummary/cli/equal/golden_output3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowLispServiceServerSummary/cli/equal/golden_output3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "lisp_router_instances": { 2: { "lisp_router_instance_id": 2, "service": { "ethernet": { "instance_id": { "101": { "map_server": { "summary": { ...
47.353741
79
0.226404
5af4158f4475d885613f4938c40781873a42b852
2,776
py
Python
python_modules/dagster/dagster/core/storage/schedules/schema.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/storage/schedules/schema.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/storage/schedules/schema.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
import sqlalchemy as db from ..sql import MySQLCompatabilityTypes, get_current_timestamp ScheduleStorageSqlMetadata = db.MetaData() JobTable = db.Table( "jobs", ScheduleStorageSqlMetadata, db.Column("id", db.Integer, primary_key=True, autoincrement=True), db.Column("job_origin_id", db.String(255), un...
41.432836
93
0.735591
5e04b2279d9a6b8acfe365031d1cc00b596e7e3d
1,575
py
Python
ch04/q4-01.py
iamnicoj/ctci
f71f995cb3d3257d3d58f1f167fcab8eaf84d457
[ "MIT" ]
null
null
null
ch04/q4-01.py
iamnicoj/ctci
f71f995cb3d3257d3d58f1f167fcab8eaf84d457
[ "MIT" ]
3
2021-03-19T14:35:27.000Z
2021-03-20T16:12:34.000Z
ch04/q4-01.py
iamnicoj/ctci
f71f995cb3d3257d3d58f1f167fcab8eaf84d457
[ "MIT" ]
null
null
null
from dgraph import basic_graph, graph_node # O(E*V) # Implemented using a BFS iterative approach def are_nodes_connected(graph, point_a, point_b): visited = [] queue = [] node_a = graph.search(point_a) node_b = graph.search(point_b) if node_a is None or node_b is None: return False queue.ins...
28.125
65
0.68381
1ef6f239b93b6adee516a07276e9f08b7a2e5d3f
4,133
py
Python
experiments/ashvin/multiobj/pusher_state_1obj_bounds_mocap_debug.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/multiobj/pusher_state_1obj_bounds_mocap_debug.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/multiobj/pusher_state_1obj_bounds_mocap_debug.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from rlkit.launchers.experiments.murtaza.multiworld import her_td3_experiment import rlkit.misc.hyperparameter as hyp from multiworld.envs.mujoco.cameras import sawyer_pusher_camera_upright_v2 from multiworld.envs.mujoco.sawyer_xyz.sawyer_push_and_reach_env import ( SawyerPushAndReachXYEnv ) from multiworld.envs.mu...
32.543307
84
0.577547
c2b86487af12e93306ec761587626e9d62fdf4b8
34,161
py
Python
all code (python source) p3/Database load 64 at a time for brain seg mgz and full control actual for top view border.py
tianqitheodorejiang/MRImageGBM
8b7931c76ac655652ccc4210992cde78da46f3a8
[ "Apache-2.0" ]
null
null
null
all code (python source) p3/Database load 64 at a time for brain seg mgz and full control actual for top view border.py
tianqitheodorejiang/MRImageGBM
8b7931c76ac655652ccc4210992cde78da46f3a8
[ "Apache-2.0" ]
null
null
null
all code (python source) p3/Database load 64 at a time for brain seg mgz and full control actual for top view border.py
tianqitheodorejiang/MRImageGBM
8b7931c76ac655652ccc4210992cde78da46f3a8
[ "Apache-2.0" ]
null
null
null
import os import numpy as np from nibabel.testing import data_path import nibabel as nb import time import pandas import h5py import skimage.transform import pydicom as dicom import scipy import cv2 import random from PIL import Image, ImageEnhance from skimage.measure import marching_cubes_lewiner as marc...
29.576623
197
0.583063
e6292eb597083b66fe557e810a4a010e236fdc5a
910
py
Python
beanie/odm/utils/find.py
mikeckennedy/beanie
3a3b52f7c4fcb07d51f5afb6b88f56161526c963
[ "Apache-2.0" ]
1
2021-08-11T01:30:15.000Z
2021-08-11T01:30:15.000Z
beanie/odm/utils/find.py
grimmer0125/beanie
ea75e6908e82822174c4bed010e612b4bf8391dc
[ "Apache-2.0" ]
null
null
null
beanie/odm/utils/find.py
grimmer0125/beanie
ea75e6908e82822174c4bed010e612b4bf8391dc
[ "Apache-2.0" ]
null
null
null
from beanie.odm.fields import LinkTypes from typing import TYPE_CHECKING, List, Dict, Any, Type if TYPE_CHECKING: from beanie import Document def construct_lookup_queries(cls: Type["Document"]) -> List[Dict[str, Any]]: queries = [] link_fields = cls.get_link_fields() if link_fields is not None: ...
35
98
0.537363
cbdcad547becaca0796da73d5eb05dd009ce211a
2,817
py
Python
test/lint/check-doc.py
OmniLayer/omnicore
1c0ae8ae01ed79ae3715a16124e8acb98cb67800
[ "MIT" ]
762
2015-03-24T21:36:51.000Z
2022-03-13T03:00:42.000Z
test/lint/check-doc.py
PineappleClout/omnicore
9b4fd956468120a3c66230a41456aacb97571bb8
[ "MIT" ]
1,039
2015-03-25T23:58:32.000Z
2022-03-30T00:41:16.000Z
test/lint/check-doc.py
PineappleClout/omnicore
9b4fd956468120a3c66230a41456aacb97571bb8
[ "MIT" ]
255
2015-09-01T01:45:32.000Z
2022-03-02T15:18:22.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Author:...
42.044776
130
0.72311
c3c446515151adff7beb142c175df0f4229f92dd
6,985
py
Python
log_caspase/model_142.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_caspase/model_142.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_caspase/model_142.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('C6A', ['C8pro']) Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C3ub') Monomer('C3A', ['Xiap', 'ParpU', 'C6pro']) Mo...
69.85
296
0.818039
189fb569e046eba9d40748da8155349477f51b24
5,496
py
Python
py/uncertainty/ArtificialVecField.py
Jwely/thesis-pivpr
f07a95610cec2a275f9edb2c15cf0f2dfb99a967
[ "MIT" ]
null
null
null
py/uncertainty/ArtificialVecField.py
Jwely/thesis-pivpr
f07a95610cec2a275f9edb2c15cf0f2dfb99a967
[ "MIT" ]
null
null
null
py/uncertainty/ArtificialVecField.py
Jwely/thesis-pivpr
f07a95610cec2a275f9edb2c15cf0f2dfb99a967
[ "MIT" ]
null
null
null
__author__ = 'Jwely' import json import numpy as np from matplotlib import pyplot as plt from py.piv import VecFieldCartesian class ArtificialVecField(VecFieldCartesian): """ Class for evaluating performance of PIV to resolve images synthesized by the ArtificialPIV class with precisely known particle mo...
38.704225
103
0.60353
46449c681d098581446afea3d8cf352977b0d135
2,315
py
Python
ames.py
fitzdoingprojects/ames_room
9a25e1e9b546b51e5efb38c90884d0c1edc91cd4
[ "MIT" ]
null
null
null
ames.py
fitzdoingprojects/ames_room
9a25e1e9b546b51e5efb38c90884d0c1edc91cd4
[ "MIT" ]
null
null
null
ames.py
fitzdoingprojects/ames_room
9a25e1e9b546b51e5efb38c90884d0c1edc91cd4
[ "MIT" ]
null
null
null
from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np from itertools import product, combinations import cameratransform as ct import collections from solid import * from solid.utils import * import math scale_factor = 1.0 Point = collections.namedtuple("Point", ["x", "y", "z"])...
21.839623
73
0.574514
2f73588c1aac7281324168aaecfdfefbf52c8ea8
753
py
Python
evalscript.py
JiangZehua/control-pcgrl
e4fd1bf9670e5855f04941ebca34170517c451b4
[ "MIT" ]
15
2021-08-01T02:40:20.000Z
2022-02-09T04:09:41.000Z
evalscript.py
JiangZehua/control-pcgrl
e4fd1bf9670e5855f04941ebca34170517c451b4
[ "MIT" ]
2
2021-08-25T16:16:59.000Z
2022-03-29T05:12:03.000Z
evalscript.py
JiangZehua/control-pcgrl
e4fd1bf9670e5855f04941ebca34170517c451b4
[ "MIT" ]
6
2021-09-21T15:24:14.000Z
2022-02-28T15:19:03.000Z
import os def eval(dir): for filename in os.listdir(dir): argslist = [] if filename.endswith("log"): argslist.append(filename.split("_")[:-1]) for arg in argslist: conditionals = arg[4:-1] command = (f"python evaluate_ctrl.py -p {arg[0]}_{arg[1]} -r...
30.12
92
0.484728
c8b2b7c0fbfff17e34503d018b0e19efa7ac688b
328
py
Python
backend/dive/migrations/0002_auto_20200909_1417.py
waterunder/dashboard
3790537ce29f83d631e0c14c12fff77515759e5b
[ "MIT" ]
null
null
null
backend/dive/migrations/0002_auto_20200909_1417.py
waterunder/dashboard
3790537ce29f83d631e0c14c12fff77515759e5b
[ "MIT" ]
75
2020-08-17T15:22:42.000Z
2021-12-09T09:11:37.000Z
backend/dive/migrations/0002_auto_20200909_1417.py
waterunder/dashboard
3790537ce29f83d631e0c14c12fff77515759e5b
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-09-09 14:17 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dive', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='dive', options={'ordering': ['-date']}, )...
18.222222
45
0.567073
0df599d173c5b901cfd9aac6ff1894cb28b94dce
10,785
py
Python
FasterRcnn_pytorch/data/util.py
agnes-yang/PytorchNetHub
1a399dd477b0c08eef2a62f1b5c54ddf4d8ae25b
[ "MIT" ]
274
2020-05-12T11:49:42.000Z
2022-03-29T11:07:58.000Z
FasterRcnn_pytorch/data/util.py
wuxiaolianggit/PytorchNetHub
e6bcb57b8ffb61b53ebdb9a09f6b25e516b4efc7
[ "MIT" ]
11
2018-09-06T05:04:40.000Z
2020-05-08T03:07:29.000Z
FasterRcnn_pytorch/data/util.py
wuxiaolianggit/PytorchNetHub
e6bcb57b8ffb61b53ebdb9a09f6b25e516b4efc7
[ "MIT" ]
79
2020-05-12T10:03:12.000Z
2022-03-28T06:20:57.000Z
import numpy as np from PIL import Image import random def read_image(path, dtype=np.float32, color=True): """Read an image from a file. 从文件中读取图像 This function reads an image from given file. The image is CHW format and the range of its value is :math:`[0, 255]`. If :obj:`color = True`, the or...
33.493789
78
0.614928
85313d8cf1be24253b534ce3832fb2a487bdf483
7,244
py
Python
mediapipe/python/solutions/holistic.py
nyankichi820/mediapipe
137e1cc7630524ea1c3a9b120985285fe43c8a3f
[ "Apache-2.0" ]
55
2020-08-06T05:57:42.000Z
2022-03-16T08:37:22.000Z
mediapipe/python/solutions/holistic.py
nyankichi820/mediapipe
137e1cc7630524ea1c3a9b120985285fe43c8a3f
[ "Apache-2.0" ]
3
2021-02-18T07:07:47.000Z
2021-09-19T18:33:32.000Z
mediapipe/python/solutions/holistic.py
nyankichi820/mediapipe
137e1cc7630524ea1c3a9b120985285fe43c8a3f
[ "Apache-2.0" ]
14
2020-08-28T01:26:37.000Z
2022-02-13T04:10:44.000Z
# Copyright 2020-2021 The MediaPipe 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 applicable law or agree...
46.735484
150
0.767394
c8f127ca3bf974e9e933bda9e2adf28f8e57e042
13,747
py
Python
src/pyrepo/commands/release.py
jwodder/pyrepo
684d94ef2f1053aa9f7cbc785263630744d90daf
[ "MIT" ]
3
2019-05-01T03:33:41.000Z
2019-05-04T01:23:51.000Z
src/pyrepo/commands/release.py
jwodder/pyrepo
684d94ef2f1053aa9f7cbc785263630744d90daf
[ "MIT" ]
1
2022-02-23T02:00:05.000Z
2022-02-23T02:00:05.000Z
src/pyrepo/commands/release.py
jwodder/pyrepo
684d94ef2f1053aa9f7cbc785263630744d90daf
[ "MIT" ]
1
2019-06-26T17:38:28.000Z
2019-06-26T17:38:28.000Z
# TODO: # - Try to give this some level of idempotence # - Add options/individual commands for doing each release step separately # External dependencies: # - git (including push access to repository) # - gpg (including a key usable for signing) # - PyPI credentials for twine # - GitHub OAuth token in config # Notabl...
34.281796
87
0.575835
35a000a64a24f6a161f2f8d1520d407e37664f74
1,744
py
Python
sqlnmap.py
Ruhinaze/SQLNMAP
65f4afcaca284297716efc51ebd8590471a35fa3
[ "Unlicense" ]
1
2020-07-18T14:44:12.000Z
2020-07-18T14:44:12.000Z
sqlnmap.py
Ruhinaze/SQLNMAP
65f4afcaca284297716efc51ebd8590471a35fa3
[ "Unlicense" ]
null
null
null
sqlnmap.py
Ruhinaze/SQLNMAP
65f4afcaca284297716efc51ebd8590471a35fa3
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os os.system("pkg install git -y") os.system("pkg install figlet -y") os.system("pkg install nmap -y") os.system("clear") os.system("figlet SQL INJECTION") print(""" Bu Araç SQL Injection güvenlik açığı tespiti ve istismarı için, nmap ve sqlmap araçlar...
22.358974
135
0.568234
cd4265d0e387eb1cb1c2386ce3db58d3a2f8d201
5,018
py
Python
fmcapi/api_objects/device_ha_pair_services/failoverinterfacemacaddressconfigs.py
aegiacometti/fmcapi
1cce480bed69ec199180f3fe3981570570fd107d
[ "BSD-3-Clause" ]
2
2019-07-22T15:15:38.000Z
2021-02-22T14:44:41.000Z
fmcapi/api_objects/device_ha_pair_services/failoverinterfacemacaddressconfigs.py
aegiacometti/fmcapi
1cce480bed69ec199180f3fe3981570570fd107d
[ "BSD-3-Clause" ]
1
2020-06-14T17:50:41.000Z
2020-06-14T17:50:41.000Z
fmcapi/api_objects/device_ha_pair_services/failoverinterfacemacaddressconfigs.py
aegiacometti/fmcapi
1cce480bed69ec199180f3fe3981570570fd107d
[ "BSD-3-Clause" ]
null
null
null
"""FailoverInterfaceMACAddressConfigs class.""" from fmcapi.api_objects.apiclasstemplate import APIClassTemplate from .ftddevicehapairs import FTDDeviceHAPairs from fmcapi.api_objects.device_services.physicalinterfaces import PhysicalInterfaces import logging import warnings class FailoverInterfaceMACAddressConfigs(...
35.338028
109
0.609605
1470dd4505d971165c794b5c0921580a0cbc487b
567
py
Python
setup.py
TIJANI0826/frappeOrg
32af8dab8dd9bdb31eae2fae853d72fa4742a382
[ "MIT" ]
null
null
null
setup.py
TIJANI0826/frappeOrg
32af8dab8dd9bdb31eae2fae853d72fa4742a382
[ "MIT" ]
null
null
null
setup.py
TIJANI0826/frappeOrg
32af8dab8dd9bdb31eae2fae853d72fa4742a382
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in organization_app/__init__.py from organization_app import __version__ as version setup( name='organization_app', versio...
27
74
0.776014
e4d16e17077c41b599a1abbd30048469fd79d6ec
1,230
py
Python
services/servingservice/app/serving_service.py
nishathussain/katana-skipper
9a263597926ab99c1be0916c59f80a8e96be514d
[ "Apache-2.0" ]
null
null
null
services/servingservice/app/serving_service.py
nishathussain/katana-skipper
9a263597926ab99c1be0916c59f80a8e96be514d
[ "Apache-2.0" ]
null
null
null
services/servingservice/app/serving_service.py
nishathussain/katana-skipper
9a263597926ab99c1be0916c59f80a8e96be514d
[ "Apache-2.0" ]
null
null
null
import os import json import tensorflow as tf import pandas as pd import numpy as np class ServingService(object): def __init__(self): pass def call(self, data): data_json = json.loads(data) payload = pd.DataFrame(data_json['data'], index=[0, ]) payload.columns = [x.upper() fo...
31.538462
108
0.625203
834d960e46a6ab8af00060d90fc30450ac43b6f6
484
py
Python
examples/storage/storage/root.py
Cykooz/restfw
d94db685aa0dcda2eaf3eba24c4a29d5c3eb84e4
[ "MIT" ]
null
null
null
examples/storage/storage/root.py
Cykooz/restfw
d94db685aa0dcda2eaf3eba24c4a29d5c3eb84e4
[ "MIT" ]
null
null
null
examples/storage/storage/root.py
Cykooz/restfw
d94db685aa0dcda2eaf3eba24c4a29d5c3eb84e4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ :Authors: cykooz :Date: 05.03.2020 """ from pyramid.authorization import ALL_PERMISSIONS, Allow, DENY_ALL, Everyone from restfw.interfaces import MethodOptions from restfw.root import Root class StorageRoot(Root): __acl__ = [ (Allow, Everyone, 'root.get'), (Allow, 'ad...
22
76
0.673554
cf52cd2e2e4572ce925cf5046a4a59ba345d5609
250
py
Python
encrypto.py
shaileshkumar2604/Crypto
60f46bf685e709c42c74edb609ce0175bd1320c1
[ "MIT" ]
null
null
null
encrypto.py
shaileshkumar2604/Crypto
60f46bf685e709c42c74edb609ce0175bd1320c1
[ "MIT" ]
null
null
null
encrypto.py
shaileshkumar2604/Crypto
60f46bf685e709c42c74edb609ce0175bd1320c1
[ "MIT" ]
null
null
null
import sys dir1 = sys.argv[1] key = sys.argv[2] def encrypto(): f1 = open(dir1,'rb') f2 = open(dir1 + '.encrypto','w') data = f1.read() f1.close() i = 0 for x in data: f2.write(chr(x + ord(key[i%len(key)]))) i += 1 f2.close() encrypto()
14.705882
41
0.576
cff769e1830fa327b83db719bf5f03f25cdd10c3
174
py
Python
wpt/websockets/websock_handlers/timeout_wsh.py
gsnedders/presto-testo
a0acfbef13a3f8cae67cc7145216d31b67aa8eb4
[ "BSD-3-Clause" ]
null
null
null
wpt/websockets/websock_handlers/timeout_wsh.py
gsnedders/presto-testo
a0acfbef13a3f8cae67cc7145216d31b67aa8eb4
[ "BSD-3-Clause" ]
null
null
null
wpt/websockets/websock_handlers/timeout_wsh.py
gsnedders/presto-testo
a0acfbef13a3f8cae67cc7145216d31b67aa8eb4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python from mod_pywebsocket import msgutil import time def web_socket_do_extra_handshake(request): time.sleep(22) def web_socket_transfer_data(request): pass
15.818182
43
0.816092
637ee8e55c9b1ebedd52441970c4c7eab005bfa2
3,699
py
Python
test/test_wordle_core.py
tanayseven/wordle-solver-bot
fa2e652c09979a6982884d81276c0767eca30913
[ "MIT" ]
1
2022-02-22T03:16:29.000Z
2022-02-22T03:16:29.000Z
test/test_wordle_core.py
tanayseven/wordle-solver-bot
fa2e652c09979a6982884d81276c0767eca30913
[ "MIT" ]
null
null
null
test/test_wordle_core.py
tanayseven/wordle-solver-bot
fa2e652c09979a6982884d81276c0767eca30913
[ "MIT" ]
null
null
null
import pytest from core import WordsRepository @pytest.mark.parametrize( "input_words,forget_letters,remaining_words", [ ("urger,ribat,anorn,stram,sofar", "ugo", "ribat,stram") ] ) def test_forget_letters(input_words, forget_letters, remaining_words): input_words = tuple(input_words.split(','...
35.567308
96
0.718843
72d74e2369275f08fbff6b4e9be4b7a9cef87a8a
2,227
py
Python
17_mad_libs/mad.py
M-110/tiny_python_projects
c8b83828c6c54d42486ed520c77572019c75191a
[ "MIT" ]
null
null
null
17_mad_libs/mad.py
M-110/tiny_python_projects
c8b83828c6c54d42486ed520c77572019c75191a
[ "MIT" ]
null
null
null
17_mad_libs/mad.py
M-110/tiny_python_projects
c8b83828c6c54d42486ed520c77572019c75191a
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Purpose: An interactive game of mad libs. """ import argparse import re import sys from typing import List def get_args(): """Get arguments from the command line.""" parser = argparse.ArgumentParser( description='A game of mad libs', formatter_class=argparse.ArgumentD...
29.302632
69
0.612483
07abcf0ae5bed9f542ac9c19c8486b9b9ea4f976
1,230
py
Python
pyclesperanto_prototype/_tier1/_detect_label_edges.py
DrLachie/pyclesperanto_prototype
56843fac2543265c40f108fd40eac3ecf85c8458
[ "BSD-3-Clause" ]
null
null
null
pyclesperanto_prototype/_tier1/_detect_label_edges.py
DrLachie/pyclesperanto_prototype
56843fac2543265c40f108fd40eac3ecf85c8458
[ "BSD-3-Clause" ]
null
null
null
pyclesperanto_prototype/_tier1/_detect_label_edges.py
DrLachie/pyclesperanto_prototype
56843fac2543265c40f108fd40eac3ecf85c8458
[ "BSD-3-Clause" ]
null
null
null
from .._tier0 import execute, create_binary_like from .._tier0 import plugin_function from .._tier0 import Image @plugin_function(categories=['binarize', 'label processing', 'in assistant'], output_creator=create_binary_like) def detect_label_edges(label_source :Image, binary_destination :Image = None) -> Image: "...
33.243243
235
0.697561
095486908d3c0c7784a7d2736d7993562c5c47ed
1,709
py
Python
celescope/tools/sample_info.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
celescope/tools/sample_info.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
celescope/tools/sample_info.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
#!/bin/env python # coding=utf8 import os import pandas as pd import sys import logging from celescope.__init__ import __VERSION__, ASSAY_DICT from celescope.tools.utils import log from celescope.tools.report import reporter from celescope.tools.__init__ import __PATTERN_DICT__ from .Chemistry import Chemistry @log ...
27.564516
113
0.650088
546771ca1f20993ac64f1fb313d40022e1856a4e
94
py
Python
src/example_package/example.py
adiprasad/packaging_tutorial
dae026c27ae5fbe52ac9e0ce7428fcd79ebbc890
[ "MIT" ]
null
null
null
src/example_package/example.py
adiprasad/packaging_tutorial
dae026c27ae5fbe52ac9e0ce7428fcd79ebbc890
[ "MIT" ]
null
null
null
src/example_package/example.py
adiprasad/packaging_tutorial
dae026c27ae5fbe52ac9e0ce7428fcd79ebbc890
[ "MIT" ]
null
null
null
def add_one(number): return number + 1 def add_one_hundred(number): return number + 100
15.666667
28
0.723404
7db0fd548663a8ae16fd7bd96d36dc6fc156909e
5,823
py
Python
clrnet/engine/runner.py
Turoad/CLRNet
51e082db12973943bddefd76fd0d431fcb3350ff
[ "Apache-2.0" ]
18
2022-03-16T07:29:19.000Z
2022-03-31T07:05:37.000Z
clrnet/engine/runner.py
Turoad/CLRNet
51e082db12973943bddefd76fd0d431fcb3350ff
[ "Apache-2.0" ]
1
2022-03-16T11:47:13.000Z
2022-03-17T10:15:25.000Z
clrnet/engine/runner.py
Turoad/CLRNet
51e082db12973943bddefd76fd0d431fcb3350ff
[ "Apache-2.0" ]
1
2022-03-25T14:49:58.000Z
2022-03-25T14:49:58.000Z
import time import cv2 import torch from tqdm import tqdm import pytorch_warmup as warmup import numpy as np import random import os from clrnet.models.registry import build_net from .registry import build_trainer, build_evaluator from .optimizer import build_optimizer from .scheduler import build_scheduler from clrne...
39.080537
117
0.557788
f39c08ee5b8ad9431f771df3b8d22e4b5b6fce09
606
py
Python
all_questions.py
irpagnossin/collex
4cbaae6d268c40fc100d0aa9579c5946535c4c60
[ "CC0-1.0" ]
null
null
null
all_questions.py
irpagnossin/collex
4cbaae6d268c40fc100d0aa9579c5946535c4c60
[ "CC0-1.0" ]
null
null
null
all_questions.py
irpagnossin/collex
4cbaae6d268c40fc100d0aa9579c5946535c4c60
[ "CC0-1.0" ]
null
null
null
import jinja2 import os from glob import glob from jinja2 import Template latex_jinja_env = jinja2.Environment( block_start_string = '\BLOCK{', block_end_string = '}', variable_start_string = '\VAR{', variable_end_string = '}', comment_start_string = '\#{', comment_end_string = '}', line_statement_prefix = '%%',...
27.545455
66
0.731023
3c4a1893cb6633bfee5f86862beeb146baf4fe53
884
py
Python
cms/categories/migrations/0013_auto_20201130_1230.py
rkhleics/nhs-ei.website
9968916a5c442a2b33003f8a48b238df53ebded0
[ "MIT" ]
1
2021-02-04T13:20:31.000Z
2021-02-04T13:20:31.000Z
cms/categories/migrations/0013_auto_20201130_1230.py
rkhleics/nhs-ei.website
9968916a5c442a2b33003f8a48b238df53ebded0
[ "MIT" ]
77
2020-11-29T23:10:16.000Z
2022-03-23T11:47:51.000Z
cms/categories/migrations/0013_auto_20201130_1230.py
rkhleics/nhs-ei.website
9968916a5c442a2b33003f8a48b238df53ebded0
[ "MIT" ]
3
2021-03-19T09:23:59.000Z
2021-08-31T21:49:36.000Z
# Generated by Django 3.1.3 on 2020-11-30 12:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('categories', '0012_auto_20201130_1227'), ] operations = [ migrations.AlterField( model_name='category', name='wp_id'...
26
57
0.570136
451c6c2ad13f8299b8556cab7bbd4662405d56b8
36,188
py
Python
addressbook/main.py
yorkadam/addressweb
cc6a4802e2e9e026da49ffff51495889bd98e59b
[ "MIT" ]
null
null
null
addressbook/main.py
yorkadam/addressweb
cc6a4802e2e9e026da49ffff51495889bd98e59b
[ "MIT" ]
18
2017-01-07T13:31:32.000Z
2017-11-18T15:56:57.000Z
addressbook/main.py
yorkadam/addressweb
cc6a4802e2e9e026da49ffff51495889bd98e59b
[ "MIT" ]
null
null
null
import os import cherrypy import datetime from addressbook.data.identifiers import random_char from addressbook.data.read import is_person_identifier_used from addressbook.data.create import create_person, create_address, create_phone_contact, create_email_contact,\ create_identification, create_relation, create_c...
49.101764
120
0.609014
4ee6e395da27827e28de798c3e2edd4134b3d14f
1,029
py
Python
to_opcodes.py
ono7/security_and_bug_hunting
972c79fbae00f1490a9e7fc597ddb8b1f624ecd4
[ "Unlicense" ]
null
null
null
to_opcodes.py
ono7/security_and_bug_hunting
972c79fbae00f1490a9e7fc597ddb8b1f624ecd4
[ "Unlicense" ]
null
null
null
to_opcodes.py
ono7/security_and_bug_hunting
972c79fbae00f1490a9e7fc597ddb8b1f624ecd4
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python """get assembly opcodes for x86 Sat Sep 21 1:43:39 PM 2019 objdump needs to support the parameters used here ono7 """ import sys, os, subprocess help = """ converts binary x86 CPU op codes to assembly 50535c 0: 50 push eax 1: 53 push e...
20.58
109
0.59378
3def3f5bbbd0482866d39fe1d10cfbfd628dfaf5
1,339
py
Python
config.py
yunuszend/Telegram_Vc_Bot
64a86f5e6c055ef77d70e919caa1664da61d39b5
[ "Apache-2.0" ]
null
null
null
config.py
yunuszend/Telegram_Vc_Bot
64a86f5e6c055ef77d70e919caa1664da61d39b5
[ "Apache-2.0" ]
null
null
null
config.py
yunuszend/Telegram_Vc_Bot
64a86f5e6c055ef77d70e919caa1664da61d39b5
[ "Apache-2.0" ]
1
2021-05-30T20:57:20.000Z
2021-05-30T20:57:20.000Z
# Calls Music 1 - Telegram bot for streaming audio in group calls # Copyright (C) 2021 Roj Serbest # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or ...
33.475
74
0.737117
15cfac815db07d80dd02bd84091bf3020925e058
3,242
py
Python
keystone/tests/unit/test_config.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/test_config.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/test_config.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
1
2020-07-02T09:12:28.000Z
2020-07-02T09:12:28.000Z
# Copyright 2013 OpenStack Foundation # # 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 ...
38.141176
78
0.685688
9cd43c0c9b490ef65d1bd21df881c1656b440e0d
3,851
py
Python
discovery-infra/test_infra/virsh_cleanup.py
machacekondra/assisted-test-infra
53e33f2eaf2c6a652bed77ef8149b68e3de2ade1
[ "Apache-2.0" ]
null
null
null
discovery-infra/test_infra/virsh_cleanup.py
machacekondra/assisted-test-infra
53e33f2eaf2c6a652bed77ef8149b68e3de2ade1
[ "Apache-2.0" ]
142
2020-11-01T10:54:05.000Z
2022-03-28T05:03:43.000Z
discovery-infra/test_infra/virsh_cleanup.py
machacekondra/assisted-test-infra
53e33f2eaf2c6a652bed77ef8149b68e3de2ade1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import argparse import subprocess from logger import log from test_infra import utils DEFAULT_SKIP_LIST = ["default"] def run_command(command, check=False, resource_filter=None): if resource_filter: command += '| grep -E "%s"' % "|".join(resource_filter) p...
31.056452
88
0.629187
79fb4874c735a59e33424cdf677cf5390ff7c4bc
5,974
py
Python
asposewordscloud/models/requests/remove_range_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/requests/remove_range_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/requests/remove_range_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="remove_range_online_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a ...
47.792
170
0.669066
7fc2bc6f241d9ea9ee19a565004b5d9170f06856
48,839
py
Python
python/ccxt/bigone.py
testtas9812/ccxt
61bc084a913cc066dc34bdfd8e44f896dd04b337
[ "MIT" ]
null
null
null
python/ccxt/bigone.py
testtas9812/ccxt
61bc084a913cc066dc34bdfd8e44f896dd04b337
[ "MIT" ]
null
null
null
python/ccxt/bigone.py
testtas9812/ccxt
61bc084a913cc066dc34bdfd8e44f896dd04b337
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationError from cc...
40.130649
214
0.460513
4ca401409b4e6155fdd2ea52f63cef563207494a
116
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/resource/models/__init__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/resource/models/__init__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/resource/models/__init__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import resource
23.2
74
0.715517
97fc0aeb83507a14f26328c3986d1a6c04db4cc6
14,587
py
Python
qiskit/quantum_info/operators/operator.py
uguraba/qiskit-terra
56ee4ca815dd0165dd62684abd364ae706b4fe10
[ "Apache-2.0" ]
null
null
null
qiskit/quantum_info/operators/operator.py
uguraba/qiskit-terra
56ee4ca815dd0165dd62684abd364ae706b4fe10
[ "Apache-2.0" ]
null
null
null
qiskit/quantum_info/operators/operator.py
uguraba/qiskit-terra
56ee4ca815dd0165dd62684abd364ae706b4fe10
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """ Matrix Operator class. """ from numbers import Number import numpy as np from qiskit.qiskiterror import QiskitError fro...
37.888312
95
0.595599
a4790755edcf3e0b8ff98375121411d3438a788f
4,158
py
Python
models/wonky_world/scripts/parseResults.py
thegricean/sinking-marbles
ccfb17f097b444306e3b559e40ab9d59da84387a
[ "MIT" ]
null
null
null
models/wonky_world/scripts/parseResults.py
thegricean/sinking-marbles
ccfb17f097b444306e3b559e40ab9d59da84387a
[ "MIT" ]
null
null
null
models/wonky_world/scripts/parseResults.py
thegricean/sinking-marbles
ccfb17f097b444306e3b559e40ab9d59da84387a
[ "MIT" ]
null
null
null
import csv import itertools import random import ast import sys #usage # python parseResults.py results.txt fname = '../results/model_results/'+sys.argv[1] file_names = [fname] itemfile = open("items.txt") items = [" ".join(l.rstrip().split()) for l in itemfile.readlines()] itemfile.close() print items lines = []...
33
457
0.653439
a496224892853e2130f48d6302124ee387de1785
457
py
Python
app/models.py
karabays/mx2rss
4124bb5309d3de259145e84a7039c92584989457
[ "MIT" ]
null
null
null
app/models.py
karabays/mx2rss
4124bb5309d3de259145e84a7039c92584989457
[ "MIT" ]
null
null
null
app/models.py
karabays/mx2rss
4124bb5309d3de259145e84a7039c92584989457
[ "MIT" ]
null
null
null
from pydantic import BaseModel from datetime import date, datetime, time, timedelta class FeedBase(BaseModel): email: str class Feed(FeedBase): id: int email_id: str domain: str url: str class Config: orm_mode = True class FeedItemBase(BaseModel): pass class FeedItem(FeedItemB...
15.758621
52
0.66302
056320709e57f500314ab2b998fe4eaa43606a0d
1,698
py
Python
tests/test_angle_angle_torsion_1_parameters.py
molssi-seamm/forcefield
de05660954ab50ac563159a4a6cc10e918c7ef97
[ "BSD-3-Clause" ]
null
null
null
tests/test_angle_angle_torsion_1_parameters.py
molssi-seamm/forcefield
de05660954ab50ac563159a4a6cc10e918c7ef97
[ "BSD-3-Clause" ]
46
2019-07-24T19:45:03.000Z
2022-02-03T10:39:32.000Z
tests/test_angle_angle_torsion_1_parameters.py
molssi-seamm/forcefield
de05660954ab50ac563159a4a6cc10e918c7ef97
[ "BSD-3-Clause" ]
1
2022-02-09T18:24:53.000Z
2022-02-09T18:24:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `seamm_ff_util` package.""" import seamm_ff_util # noqa: F401 def test_angle_angle_torsion_1_explicit(pcff): """Test of angle_angle_torsion_1 parameters, which should find explicit ones""" expected = { "K": "-14.3155", "referen...
24.970588
84
0.57126
ec77713a174c845dc752a1822f8a413c6c860c5e
231
py
Python
bnbapp/bionetbook/_old/verbs/forms/open.py
Bionetbook/bionetbook
c92d5bbdc5c121631c2230cf93aa63977d381f30
[ "MIT" ]
null
null
null
bnbapp/bionetbook/_old/verbs/forms/open.py
Bionetbook/bionetbook
c92d5bbdc5c121631c2230cf93aa63977d381f30
[ "MIT" ]
null
null
null
bnbapp/bionetbook/_old/verbs/forms/open.py
Bionetbook/bionetbook
c92d5bbdc5c121631c2230cf93aa63977d381f30
[ "MIT" ]
null
null
null
from verbs.baseforms import forms class OpenForm(forms.VerbForm): name = "Open" slug = "open" edit_what_remark = forms.CharField() duration_min_time = forms.IntegerField() describe_where = forms.CharField()
19.25
44
0.705628
245a1a146598ded0251a1a94ce227f966b8bf43c
956
py
Python
packages/mpi/Cartesian.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
packages/mpi/Cartesian.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
packages/mpi/Cartesian.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2022 all rights reserved # # superclasses from .Communicator import Communicator # declaration class Cartesian(Communicator): """ An encapsulation of Cartesian communicators """ # per-instance public data axes = None ...
20.782609
89
0.641213
40ecae450082fa9e95d2f038bcbf789bd0dee0a1
4,538
py
Python
similar_text_search_ja/train_sent_transformers.py
chopstickexe/similar-text-search-ja
c3619afbd27df414b7bcdab425f87fe17d8f1ac5
[ "Apache-2.0" ]
null
null
null
similar_text_search_ja/train_sent_transformers.py
chopstickexe/similar-text-search-ja
c3619afbd27df414b7bcdab425f87fe17d8f1ac5
[ "Apache-2.0" ]
2
2021-06-07T05:31:26.000Z
2021-06-07T05:53:41.000Z
similar_text_search_ja/train_sent_transformers.py
chopstickexe/similar-text-search-ja
c3619afbd27df414b7bcdab425f87fe17d8f1ac5
[ "Apache-2.0" ]
null
null
null
import csv import logging import sys from dataclasses import dataclass from pathlib import Path from sentence_transformers import SentenceTransformer, models from sentence_transformers.datasets import SentencesDataset from sentence_transformers.evaluation import TripletEvaluator from sentence_transformers.losses impor...
32.414286
116
0.734024
d84fc826101f17a9d5a5ccbd64aa6fb2e073fdb2
14,390
py
Python
spatial_lda/admm.py
MagdalenaMat/spatial_lda
f40c0c8c3478b4325830109ec971709a7b395ef8
[ "MIT" ]
null
null
null
spatial_lda/admm.py
MagdalenaMat/spatial_lda
f40c0c8c3478b4325830109ec971709a7b395ef8
[ "MIT" ]
null
null
null
spatial_lda/admm.py
MagdalenaMat/spatial_lda
f40c0c8c3478b4325830109ec971709a7b395ef8
[ "MIT" ]
null
null
null
import logging import pickle import time import numpy as np from scipy.special import gammaln, digamma, polygamma import scipy.sparse import scipy.sparse.linalg ALPHA = 0.1 BETA = 0.5 MAXLSITER = 60 MAXITER = 100 TOL = 1e-3 ADMM_RESIDUAL_RATIO_BOUND = 4.0 ADMM_RHO_SCALE = 2.0 def split_gamma(gamma, n, k, l): xi...
34.343675
117
0.572133
5c236867b9e16c2ed9c1ef1f4b9b32c2a3007941
14,021
py
Python
sdk/python/pulumi_azure_native/network/v20180801/ddos_protection_plan.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20180801/ddos_protection_plan.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20180801/ddos_protection_plan.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...
54.984314
3,782
0.693959
181b59b413366bcb275a95bbf28e8a55d675f8a6
2,700
py
Python
E02a-Control-Structures-master/main10.py
sheayork/02A-Control-Structures
bcbb310119c8d63559c05e8f50f55f4fc2d4f17b
[ "MIT" ]
null
null
null
E02a-Control-Structures-master/main10.py
sheayork/02A-Control-Structures
bcbb310119c8d63559c05e8f50f55f4fc2d4f17b
[ "MIT" ]
null
null
null
E02a-Control-Structures-master/main10.py
sheayork/02A-Control-Structures
bcbb310119c8d63559c05e8f50f55f4fc2d4f17b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys, random assert sys.version_info >= (3,7), "This script requires at least Python 3.7" print('Greetings!') #Greets the user colors = ['red','orange','yellow','green','blue','violet','purple'] #List of colors program needs play_again = '' #just blank space best_count = sys.maxsize ...
62.790698
140
0.693333
1fec08b57edfe4ff7bfe54118f2c2e10b2a426b7
13,342
py
Python
train.py
eringrant/Relation-Network-1
994ad3c3608f2061274296b509b23d9c228b6f9d
[ "MIT" ]
1
2018-12-25T00:17:50.000Z
2018-12-25T00:17:50.000Z
train.py
eringrant/Relation-Network-1
994ad3c3608f2061274296b509b23d9c228b6f9d
[ "MIT" ]
null
null
null
train.py
eringrant/Relation-Network-1
994ad3c3608f2061274296b509b23d9c228b6f9d
[ "MIT" ]
1
2019-12-31T18:58:04.000Z
2019-12-31T18:58:04.000Z
import argparse from datetime import datetime import errno from glob import glob import numpy as np import os import pickle from time import time import tensorflow as tf from model import Model def mkdir_p(path): try: os.makedirs(path) except OSError as exc: # Python >2.5 ...
43.744262
97
0.515515
38ffb6811c46474d4e1ece4b0f75ff344d483b96
2,165
py
Python
riptide/tests/integration/config_test.py
theCapypara/riptide-lib
560106d4196cdc5a5b84235f32ac44c80bc3994e
[ "MIT" ]
4
2019-04-23T17:14:00.000Z
2019-12-22T11:55:31.000Z
riptide/tests/integration/config_test.py
theCapypara/riptide-lib
560106d4196cdc5a5b84235f32ac44c80bc3994e
[ "MIT" ]
15
2021-09-22T09:40:42.000Z
2022-03-07T05:01:07.000Z
riptide/tests/integration/config_test.py
theCapypara/riptide-lib
560106d4196cdc5a5b84235f32ac44c80bc3994e
[ "MIT" ]
1
2019-11-24T18:08:14.000Z
2019-11-24T18:08:14.000Z
import os import unittest from riptide.config.document.service import Service from riptide.tests.helpers import get_fixture_path from riptide.tests.integration.project_loader import load class ConfigTest(unittest.TestCase): def test_load(self): """ Tests that the loading process finishes ...
42.45098
116
0.612933
030f1fa43f49d7992d04554c08dab6bd670acee1
2,261
py
Python
dfvfs/vfs/zip_directory.py
jaegeral/dfvfs
606d09bf4de0b5dcf20d1dddff879dfed5c93640
[ "Apache-2.0" ]
null
null
null
dfvfs/vfs/zip_directory.py
jaegeral/dfvfs
606d09bf4de0b5dcf20d1dddff879dfed5c93640
[ "Apache-2.0" ]
null
null
null
dfvfs/vfs/zip_directory.py
jaegeral/dfvfs
606d09bf4de0b5dcf20d1dddff879dfed5c93640
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """The ZIP directory implementation.""" from dfvfs.path import zip_path_spec from dfvfs.vfs import directory class ZIPDirectory(directory.Directory): """File system directory that uses zipfile.""" def _EntriesGenerator(self): """Retrieves directory entries. Since a directory can...
32.3
74
0.656347
46c7f4c198fd5538b2bc12548d8dd1a721c7e4a6
956
py
Python
Tkinter Library/bank.py
ssergiuk/codes
ea1dea9cf3985228dacb02d31de01bc929fda939
[ "MIT" ]
null
null
null
Tkinter Library/bank.py
ssergiuk/codes
ea1dea9cf3985228dacb02d31de01bc929fda939
[ "MIT" ]
null
null
null
Tkinter Library/bank.py
ssergiuk/codes
ea1dea9cf3985228dacb02d31de01bc929fda939
[ "MIT" ]
null
null
null
class Account: def __init__(self, filepath): self.filepath = filepath with open(filepath, "r") as file: self.balance = int(file.read()) def withdraw(self, amount): self.balance = self.balance - amount def deposit(self, amount): self.balance = self.ba...
20.340426
56
0.600418
70297360c8f0326b3b97499ecec802219f16c60d
5,878
py
Python
src/bno055_ros.py
BytesRobotics/bno055
ac79e82cf762bd85990f796ee596550d2399f944
[ "MIT" ]
4
2020-04-01T10:27:21.000Z
2021-07-03T05:29:42.000Z
src/bno055_ros.py
BytesRobotics/bno055
ac79e82cf762bd85990f796ee596550d2399f944
[ "MIT" ]
null
null
null
src/bno055_ros.py
BytesRobotics/bno055
ac79e82cf762bd85990f796ee596550d2399f944
[ "MIT" ]
3
2020-08-02T03:56:10.000Z
2021-09-27T13:28:32.000Z
#!/usr/bin/env python import math import numpy as np import BNO055 import rospy from std_msgs.msg import Header, Float64 from sensor_msgs.msg import Imu from geometry_msgs.msg import Quaternion from geometry_msgs.msg import Vector3 from bno055.msg import bno055_info from std_srvs.srv import Trigger, TriggerResponse ...
29.686869
121
0.720994
b975cea2b417aff60917ef482d3d77ff3b6ab96e
1,597
py
Python
api/tests/test_models.py
TariqueNasrullah/LibraryManagementSystem
4b3da701de3b13b61f40284bc3d832578b438532
[ "MIT" ]
null
null
null
api/tests/test_models.py
TariqueNasrullah/LibraryManagementSystem
4b3da701de3b13b61f40284bc3d832578b438532
[ "MIT" ]
null
null
null
api/tests/test_models.py
TariqueNasrullah/LibraryManagementSystem
4b3da701de3b13b61f40284bc3d832578b438532
[ "MIT" ]
1
2021-04-20T12:38:39.000Z
2021-04-20T12:38:39.000Z
from django.test import TestCase, Client from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient from api.models import Author, Book from api.serializers import BookSerializer from users.models import CustomUser client = APIClient() class AuthenticationTest(TestC...
37.139535
100
0.648716
0ee4109ee15832393035c67819a725b82e4528c3
1,142
py
Python
nicovideo/setup.py
Tommy1969/sphinx-contrib
d479ece0fe6c2f33bbebcc52677035d5003b7b35
[ "BSD-2-Clause" ]
14
2016-02-22T12:06:54.000Z
2021-01-05T07:01:43.000Z
nicovideo/setup.py
SuperKogito/sphinx-contrib
3b643bffb90a27ae378717ae6335873a0e73cf9d
[ "BSD-2-Clause" ]
8
2015-03-06T13:46:49.000Z
2019-10-09T08:53:14.000Z
nicovideo/setup.py
SuperKogito/sphinx-contrib
3b643bffb90a27ae378717ae6335873a0e73cf9d
[ "BSD-2-Clause" ]
16
2015-05-25T02:51:05.000Z
2020-01-17T05:49:47.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages long_desc = ''' This package contains the nicovideo Sphinx extension. .. add description here .. ''' requires = ['Sphinx>=0.6', 'setuptools'] setup( name='sphinxcontrib-nicovideo', version='0.1.0', url='http://bitbucket.org/birkenfeld/...
27.853659
71
0.649737
961eeb7f0b20632ac064f5dc205ce556a4730d8d
45,169
py
Python
recipes/recipe_modules/bot_update/resources/bot_update.py
NicolJiang/depot_tools
2c984a03caff0f1c0f92d6b5ddbc3226393db5eb
[ "BSD-3-Clause" ]
1
2018-07-25T11:21:36.000Z
2018-07-25T11:21:36.000Z
recipes/recipe_modules/bot_update/resources/bot_update.py
NicolJiang/depot_tools
2c984a03caff0f1c0f92d6b5ddbc3226393db5eb
[ "BSD-3-Clause" ]
1
2018-07-25T11:21:24.000Z
2018-07-25T11:21:24.000Z
recipes/recipe_modules/bot_update/resources/bot_update.py
NicolJiang/depot_tools
2c984a03caff0f1c0f92d6b5ddbc3226393db5eb
[ "BSD-3-Clause" ]
1
2018-07-25T11:21:39.000Z
2018-07-25T11:21:39.000Z
#!/usr/bin/env python # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # TODO(hinoka): Use logging. import cStringIO import codecs from contextlib import contextmanager import copy import ctypes import jso...
35.51022
102
0.665124
f378b046cc6dff10400ab0dfea726ea80eda93e8
19,717
py
Python
tensorflow_probability/python/mcmc/simple_step_size_adaptation.py
mayou36/probability
f185c852146894af6dc02223020413bf26ecdd5c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/mcmc/simple_step_size_adaptation.py
mayou36/probability
f185c852146894af6dc02223020413bf26ecdd5c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/mcmc/simple_step_size_adaptation.py
mayou36/probability
f185c852146894af6dc02223020413bf26ecdd5c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 applicable law o...
44.91344
97
0.712177
46279012d696e5093486dce0a40fa5934d809d08
38,249
py
Python
pyqtgraph/graphicsItems/ScatterPlotItem.py
rwarren/pyqtgraph
e5d28ad79d0fe1c335e7f98a5d9e7ac0b22f0a2b
[ "MIT" ]
null
null
null
pyqtgraph/graphicsItems/ScatterPlotItem.py
rwarren/pyqtgraph
e5d28ad79d0fe1c335e7f98a5d9e7ac0b22f0a2b
[ "MIT" ]
null
null
null
pyqtgraph/graphicsItems/ScatterPlotItem.py
rwarren/pyqtgraph
e5d28ad79d0fe1c335e7f98a5d9e7ac0b22f0a2b
[ "MIT" ]
null
null
null
from ..Qt import QtGui, QtCore from .. import Qt from ..Point import Point from .. import functions as fn from .GraphicsItem import GraphicsItem from .GraphicsObject import GraphicsObject from itertools import starmap, repeat try: from itertools import imap except ImportError: imap = map import numpy as np impo...
39.109407
242
0.526602
fd74bfe657541656533247fa46719fd197e3c29e
32
py
Python
main.py
bbjygm/shl-update-manager
d17f5ad6aa02f5f5fb24c98b2f030a3e4553ceeb
[ "MIT" ]
null
null
null
main.py
bbjygm/shl-update-manager
d17f5ad6aa02f5f5fb24c98b2f030a3e4553ceeb
[ "MIT" ]
null
null
null
main.py
bbjygm/shl-update-manager
d17f5ad6aa02f5f5fb24c98b2f030a3e4553ceeb
[ "MIT" ]
null
null
null
import website website.start()
8
15
0.78125
a05d4af1f0fdbba3c40df6737e55997b171d2f34
1,490
py
Python
BeyondNet.JsPlatform/js/algorithms/divide-and-conquer/median-of-medians/python/MedianOfMedians.py
beyondnetPeru/BeyondNet.Sample.Js
41126537519bf423063633a204e03aa71ae89d4b
[ "Apache-2.0" ]
null
null
null
BeyondNet.JsPlatform/js/algorithms/divide-and-conquer/median-of-medians/python/MedianOfMedians.py
beyondnetPeru/BeyondNet.Sample.Js
41126537519bf423063633a204e03aa71ae89d4b
[ "Apache-2.0" ]
null
null
null
BeyondNet.JsPlatform/js/algorithms/divide-and-conquer/median-of-medians/python/MedianOfMedians.py
beyondnetPeru/BeyondNet.Sample.Js
41126537519bf423063633a204e03aa71ae89d4b
[ "Apache-2.0" ]
null
null
null
from math import ceil def find_median(arr): n = len(arr) median = find_median_util(arr, n/2+1, 0, n-1) print(median) def find_median_util(arr, k, low, high): m = partition(arr, low, high) length = m - low + 1 if length == k: return arr[m] if length > k: return find_medi...
20.410959
92
0.506711
4d6f8115461d068a3f22117b7787b677d04028ff
4,337
py
Python
test/acceptance/tools/http.py
jframos/fiware-sdc
a07791e2c07a46d2b9c00f6133a8a55dbcd5ef87
[ "Apache-2.0" ]
null
null
null
test/acceptance/tools/http.py
jframos/fiware-sdc
a07791e2c07a46d2b9c00f6133a8a55dbcd5ef87
[ "Apache-2.0" ]
null
null
null
test/acceptance/tools/http.py
jframos/fiware-sdc
a07791e2c07a46d2b9c00f6133a8a55dbcd5ef87
[ "Apache-2.0" ]
null
null
null
import urllib import time __author__ = 'henar' import httplib from xml.dom.minidom import parseString from urlparse import urlparse import sys import json import mimetypes status_codes = {"OK": 200, "No Content": 204, "Bad Request": 400, "unauthorized": 401, ...
28.346405
113
0.605027
be0b5b585058ca798b90ec7ed2cded6fa741d7f6
3,608
py
Python
pedailyspider/pedailyspider/settings.py
wolfhong/finespider
4f2ae5ab7e78e5dddb9201f2d70db6babe05d772
[ "MIT" ]
null
null
null
pedailyspider/pedailyspider/settings.py
wolfhong/finespider
4f2ae5ab7e78e5dddb9201f2d70db6babe05d772
[ "MIT" ]
null
null
null
pedailyspider/pedailyspider/settings.py
wolfhong/finespider
4f2ae5ab7e78e5dddb9201f2d70db6babe05d772
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for pedailyspider project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest...
34.037736
123
0.75388
9cd1b52d17188dda778e3c3ae9af46d7efd6509c
487
py
Python
indra/tests/test_mechlinker.py
jmuhlich/indra
feab2c08541ea73f328579faa6a21b08082cb026
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_mechlinker.py
jmuhlich/indra
feab2c08541ea73f328579faa6a21b08082cb026
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_mechlinker.py
jmuhlich/indra
feab2c08541ea73f328579faa6a21b08082cb026
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str from indra.statements import * from indra.mechlinker import MechLinker def test_act_phos_to_af(): act_st = Activation(Agent('A', activity=ActivityCondition('kinase', True)), Agent('B')) ...
37.461538
79
0.708419
af29d1f1fbc825e98e8eab38b1221915ad87c744
122
py
Python
src/py3mproc/__init__.py
gr82morozr/py3mproc
ae6689afe9eaeba851c2664adb8b9a90adda8d8f
[ "MIT" ]
1
2019-02-10T13:39:04.000Z
2019-02-10T13:39:04.000Z
src/py3mproc/__init__.py
gr82morozr/py3mproc
ae6689afe9eaeba851c2664adb8b9a90adda8d8f
[ "MIT" ]
null
null
null
src/py3mproc/__init__.py
gr82morozr/py3mproc
ae6689afe9eaeba851c2664adb8b9a90adda8d8f
[ "MIT" ]
null
null
null
__author__ = "Great Tomorrow(gr82morozr@gmail.com)" __license__ = "MIT" __version__ = "0.1.14" from .mproc import *
24.4
52
0.696721
7b69a04d77422d428c33278da52e8ae10d34a8ca
8,105
py
Python
deploy/python/build_gallery.py
zhusonghe/PaddleClas-1
e2e492f9c78ed5084cc50d7c45eef4cc41e1eeaf
[ "Apache-2.0" ]
3,763
2020-04-10T04:48:11.000Z
2022-03-31T13:24:37.000Z
deploy/python/build_gallery.py
zhusonghe/PaddleClas-1
e2e492f9c78ed5084cc50d7c45eef4cc41e1eeaf
[ "Apache-2.0" ]
633
2020-04-08T18:27:31.000Z
2022-03-31T01:09:43.000Z
deploy/python/build_gallery.py
zhusonghe/PaddleClas-1
e2e492f9c78ed5084cc50d7c45eef4cc41e1eeaf
[ "Apache-2.0" ]
846
2020-04-08T08:13:18.000Z
2022-03-31T12:28:37.000Z
# Copyright (c) 2021 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...
37.697674
112
0.578902
f6e1a480c3b9ec24a3de2af2610efb94c02223dc
16,267
py
Python
qiskit/aqua/algorithms/single_sample/amplitude_estimation/ae.py
chunfuchen/aqua
fde435203a2799433a4e50897554fa226c8ff1dc
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/algorithms/single_sample/amplitude_estimation/ae.py
chunfuchen/aqua
fde435203a2799433a4e50897554fa226c8ff1dc
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/algorithms/single_sample/amplitude_estimation/ae.py
chunfuchen/aqua
fde435203a2799433a4e50897554fa226c8ff1dc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
38.007009
100
0.589414
2ba007eba67750bc380ee41f5ff28a6ee9add977
28
py
Python
server/src/weblab/core/webclient/web/__init__.py
zstars/weblabdeusto
09bd9d93d483671bca67ee5c70a9c412eb5d352f
[ "BSD-2-Clause" ]
null
null
null
server/src/weblab/core/webclient/web/__init__.py
zstars/weblabdeusto
09bd9d93d483671bca67ee5c70a9c412eb5d352f
[ "BSD-2-Clause" ]
2
2016-08-15T14:54:42.000Z
2017-04-13T05:50:04.000Z
sjtuface/core/__init__.py
vinx13/sjtuface-web
ea50591fa4dd15d27eef0a8e3e5c10c045d42707
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint
14
27
0.857143
4562df44a60289265e81f3e94f69bb4f02943c14
60,130
py
Python
test/orm/test_session.py
thereisnosun/sqlalchemy
94aed8b17d21da9a20be4b092f6a60b12f60b761
[ "MIT" ]
null
null
null
test/orm/test_session.py
thereisnosun/sqlalchemy
94aed8b17d21da9a20be4b092f6a60b12f60b761
[ "MIT" ]
null
null
null
test/orm/test_session.py
thereisnosun/sqlalchemy
94aed8b17d21da9a20be4b092f6a60b12f60b761
[ "MIT" ]
1
2021-10-06T07:03:07.000Z
2021-10-06T07:03:07.000Z
import inspect as _py_inspect import sqlalchemy as sa from sqlalchemy import event from sqlalchemy import ForeignKey from sqlalchemy import inspect from sqlalchemy import Integer from sqlalchemy import select from sqlalchemy import Sequence from sqlalchemy import String from sqlalchemy import testing from sqlalchemy.o...
28.150749
79
0.575669
74bcd14b0a127f8598f7b09513865c7dc4fd2db8
3,866
py
Python
tests/is_element_visible.py
alialdakheel/splinter
b4c48dc0af9ef98d7d9268f42f4d31a51e65fd68
[ "BSD-3-Clause" ]
null
null
null
tests/is_element_visible.py
alialdakheel/splinter
b4c48dc0af9ef98d7d9268f42f4d31a51e65fd68
[ "BSD-3-Clause" ]
null
null
null
tests/is_element_visible.py
alialdakheel/splinter
b4c48dc0af9ef98d7d9268f42f4d31a51e65fd68
[ "BSD-3-Clause" ]
1
2022-03-10T15:23:53.000Z
2022-03-10T15:23:53.000Z
# -*- coding: utf-8 -*- # Copyright 2014 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. class IsElementVisibleTest: def test_is_element_visible_by_css(self): "should is element visible by css verify if element i...
47.146341
106
0.713399
b78f51737cf817a4b992513bc86ce85902e6e523
1,031
py
Python
gdsfactory/read/from_dphox.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
null
null
null
gdsfactory/read/from_dphox.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
null
null
null
gdsfactory/read/from_dphox.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
null
null
null
import gdsfactory as gf def from_dphox(device: "dp.Device", foundry: "dp.foundry.Foundry") -> gf.Component: """Converts a Dphox Device into a gdsfactory Component. Note that you need to install dphox `pip install dphox` https://dphox.readthedocs.io/en/latest/index.html Args: device: ...
25.775
83
0.643065
3961257e533f8360e244e58a4a922b9bb515e57b
2,027
py
Python
posthog/models/filters/path_filter.py
brave-care/posthog
8edd14a16ad936fb241dcf856925e9f2ea87cba4
[ "MIT" ]
1
2021-07-28T19:44:48.000Z
2021-07-28T19:44:48.000Z
posthog/models/filters/path_filter.py
brave-care/posthog
8edd14a16ad936fb241dcf856925e9f2ea87cba4
[ "MIT" ]
null
null
null
posthog/models/filters/path_filter.py
brave-care/posthog
8edd14a16ad936fb241dcf856925e9f2ea87cba4
[ "MIT" ]
null
null
null
from typing import Any, Dict, Optional from rest_framework.request import Request from posthog.constants import INSIGHT_PATHS from posthog.models.filters.base_filter import BaseFilter from posthog.models.filters.mixins.common import ( BreakdownMixin, BreakdownTypeMixin, DateMixin, EntitiesMixin, F...
27.767123
115
0.743957
8f2873b6631ddc2e82441a824022878aeb437830
238
py
Python
examples/delivery/market/book_ticker.py
AlfonsoAgAr/binance-futures-connector-python
f0bd2c7b0576503bf526ce6be329ca2dae90fefe
[ "MIT" ]
58
2021-11-22T11:46:27.000Z
2022-03-30T06:58:53.000Z
examples/delivery/market/book_ticker.py
sanjeevan121/binance-futures-connector-python
d820b73a15e9f64c80891a13694ca0c5d1693b90
[ "MIT" ]
15
2021-12-15T22:40:52.000Z
2022-03-29T22:08:31.000Z
examples/delivery/market/book_ticker.py
sanjeevan121/binance-futures-connector-python
d820b73a15e9f64c80891a13694ca0c5d1693b90
[ "MIT" ]
28
2021-12-10T03:56:13.000Z
2022-03-25T22:23:44.000Z
#!/usr/bin/env python import logging from binance.delivery import Delivery as Client from binance.lib.utils import config_logging config_logging(logging, logging.DEBUG) client = Client() logging.info(client.book_ticker("BTCUSD_PERP"))
21.636364
47
0.806723
ff765b1e7840d8524504c8025ad4967312fbe3fd
2,269
py
Python
dags/rockflow/operators/elasticsearch.py
day253/airflow-dags
a98d47396f2c6e0185d528e94d02fa8a8daaef7a
[ "Unlicense" ]
2
2022-01-08T17:19:01.000Z
2022-02-10T06:41:28.000Z
dags/rockflow/operators/elasticsearch.py
RockFlow-AI/airflow-dags
8172ed9041231264d491120d0c1f5c973fbed92a
[ "Unlicense" ]
null
null
null
dags/rockflow/operators/elasticsearch.py
RockFlow-AI/airflow-dags
8172ed9041231264d491120d0c1f5c973fbed92a
[ "Unlicense" ]
1
2021-12-15T09:57:55.000Z
2021-12-15T09:57:55.000Z
import json from typing import Dict from airflow.providers.elasticsearch.hooks.elasticsearch import ElasticsearchHook from rockflow.operators.oss import OSSOperator class ElasticsearchOperator(OSSOperator): def __init__( self, elasticsearch_index_name: str, elasticsearch_inde...
36.015873
118
0.702071
7fc9018a6930616a3cbb4313e495df06a5e82251
1,501
py
Python
upvote/gae/datastore/models/note.py
iwikmai/upvote
77bb200d0e35a28cc5aed98ceee8e234998814b6
[ "Apache-2.0" ]
453
2017-10-24T15:29:44.000Z
2021-09-27T23:21:20.000Z
upvote/gae/datastore/models/note.py
iwikmai/upvote
77bb200d0e35a28cc5aed98ceee8e234998814b6
[ "Apache-2.0" ]
58
2018-03-23T21:19:16.000Z
2021-05-23T20:06:05.000Z
upvote/gae/datastore/models/note.py
iwikmai/upvote
77bb200d0e35a28cc5aed98ceee8e234998814b6
[ "Apache-2.0" ]
36
2018-03-23T21:25:54.000Z
2021-09-27T23:21:24.000Z
# Copyright 2017 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 required by applicable law or a...
34.113636
74
0.753498
71dc75edaca0509ad1f72ca0b876bd39c2027379
5,265
py
Python
tests/test_quest.py
abhimarshal1/qds-sdk-py
844acfa5526bdfff3463f8c74fe7a474fe178179
[ "Apache-2.0" ]
42
2015-01-21T17:34:58.000Z
2021-12-13T15:08:42.000Z
tests/test_quest.py
abhimarshal1/qds-sdk-py
844acfa5526bdfff3463f8c74fe7a474fe178179
[ "Apache-2.0" ]
157
2015-01-18T00:14:38.000Z
2021-07-16T08:20:51.000Z
tests/test_quest.py
abhimarshal1/qds-sdk-py
844acfa5526bdfff3463f8c74fe7a474fe178179
[ "Apache-2.0" ]
123
2015-01-14T10:38:11.000Z
2021-06-23T20:16:21.000Z
from __future__ import print_function from test_base import QdsCliTestCase from test_base import print_command from qds_sdk.pipelines import PipelinesCode from qds_sdk.connection import Connection import qds from mock import * import sys import os if sys.version_info > (2, 7, 0): import unittest else: import u...
52.128713
314
0.573789
77f0bdc658b9f33772b9773793087efc3f5c7845
108
py
Python
library/test/test_compiler/testcorpus/74_class_kwargs_2.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
278
2021-08-31T00:46:51.000Z
2022-02-13T19:43:28.000Z
library/test/test_compiler/testcorpus/74_class_kwargs_2.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
9
2021-11-05T22:28:43.000Z
2021-11-23T08:39:04.000Z
library/test/test_compiler/testcorpus/74_class_kwargs_2.py
tekknolagi/skybison
bea8fc2af0a70e7203b4c19f36c14a745512a335
[ "CNRI-Python-GPL-Compatible" ]
12
2021-08-31T07:49:54.000Z
2021-10-08T01:09:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) class Foo(int, x=42): pass
27
76
0.675926
864f49b29cdc0f4957b35c2f367b9dcd8fb54a18
4,005
py
Python
plivo/resources/phlos.py
burhanahmed-plivo/plivo-python
61f86f20efb2bdd30a9ae40ed837c20af42f20b9
[ "MIT" ]
42
2015-01-16T07:56:16.000Z
2021-08-20T04:45:39.000Z
plivo/resources/phlos.py
burhanahmed-plivo/plivo-python
61f86f20efb2bdd30a9ae40ed837c20af42f20b9
[ "MIT" ]
70
2015-01-30T04:11:04.000Z
2022-03-29T21:04:55.000Z
plivo/resources/phlos.py
HintonB2807/plivo-python
f09a1fc63e378bf17269011a071e093aa83930d0
[ "MIT" ]
65
2015-04-10T22:17:57.000Z
2021-06-06T13:09:31.000Z
# -*- coding: utf-8 -*- """ Phlo class """ from plivo.base import PlivoResource, PlivoResourceInterface from plivo.resources.nodes import Node, MultiPartyCall, Member from plivo.utils import to_param_dict from plivo.utils.validators import * class Phlo(PlivoResource): _name = 'Phlo' _identifier_string = 'phlo...
31.046512
106
0.565543
5baa690dc44ecc0f1e255614432d58ef1aa10eef
1,399
py
Python
JumpScale9AYS/clients/sync_client/BlueprintListing.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
4
2017-06-07T08:10:06.000Z
2017-11-10T02:20:38.000Z
JumpScale9AYS/clients/sync_client/BlueprintListing.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
242
2017-05-18T10:51:48.000Z
2019-09-18T15:09:47.000Z
JumpScale9AYS/clients/sync_client/BlueprintListing.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
5
2017-06-16T15:43:25.000Z
2017-09-29T12:48:06.000Z
""" Auto-generated class for BlueprintListing """ from . import client_support class BlueprintListing(object): """ auto-generated. don't touch. """ @staticmethod def create(name): """ :type name: str :rtype: BlueprintListing """ return BlueprintListing( ...
26.396226
107
0.602573
a06ecc60dedfc03b2149badcff5e3b878b459560
54,260
py
Python
ironic/drivers/modules/drac/raid.py
DhuldevValekar3/ironic
f565e11c74471eed13fcfd0023db9f60e92275f9
[ "Apache-2.0" ]
null
null
null
ironic/drivers/modules/drac/raid.py
DhuldevValekar3/ironic
f565e11c74471eed13fcfd0023db9f60e92275f9
[ "Apache-2.0" ]
null
null
null
ironic/drivers/modules/drac/raid.py
DhuldevValekar3/ironic
f565e11c74471eed13fcfd0023db9f60e92275f9
[ "Apache-2.0" ]
null
null
null
# # 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...
41.074943
79
0.632676
93d91c7cc02eab254d0685440750e62363581e97
4,686
py
Python
netkan/tests/repos.py
techman83/NetKAN-Infra
40f11371fd52254fd5bd34c9bc0b0b9273152f2b
[ "MIT" ]
1
2021-02-06T11:25:20.000Z
2021-02-06T11:25:20.000Z
netkan/tests/repos.py
techman83/NetKAN-Infra
40f11371fd52254fd5bd34c9bc0b0b9273152f2b
[ "MIT" ]
6
2019-07-13T02:14:57.000Z
2019-07-13T03:17:30.000Z
netkan/tests/repos.py
techman83/NetKAN-Infra
40f11371fd52254fd5bd34c9bc0b0b9273152f2b
[ "MIT" ]
1
2019-07-08T20:28:16.000Z
2019-07-08T20:28:16.000Z
# pylint: disable-all # flake8: noqa import shutil import tempfile import unittest from pathlib import Path, PurePath from git import Repo from gitdb.exc import BadName from netkan.repos import NetkanRepo, CkanMetaRepo class TestRepo(unittest.TestCase): @classmethod def setUpClass(cls): super(TestR...
37.190476
113
0.684166
a487f729c74f03b6c817acc283704a6f9ada911e
3,377
py
Python
python3/flux_function.py
tkent198/hydraulic_wetro
780ae12ab87e88c44ac54f62ec468d3976d0a4b0
[ "MIT" ]
null
null
null
python3/flux_function.py
tkent198/hydraulic_wetro
780ae12ab87e88c44ac54f62ec468d3976d0a4b0
[ "MIT" ]
null
null
null
python3/flux_function.py
tkent198/hydraulic_wetro
780ae12ab87e88c44ac54f62ec468d3976d0a4b0
[ "MIT" ]
null
null
null
import numpy as np from cross_sections_local import xsec_hAs, xsec_Ahs def NCPflux_Au(UL,UR,s,config): ''' ###----- Numerical NCP flux function -----### # # after Rhebergen et al. (2008) # # Function gives the intercell NCP flux value for use in FV Godunov numerical # scheme for the Wetro...
28.863248
107
0.532129
2766e640990fac018b4350a61073fd2591a5fc61
1,791
py
Python
cride/circles/migrations/0003_invitation.py
jpcano1/cride-platzi
6548b5a4c42c2acc9c888f93d5479be9c8b7e6d7
[ "MIT" ]
null
null
null
cride/circles/migrations/0003_invitation.py
jpcano1/cride-platzi
6548b5a4c42c2acc9c888f93d5479be9c8b7e6d7
[ "MIT" ]
null
null
null
cride/circles/migrations/0003_invitation.py
jpcano1/cride-platzi
6548b5a4c42c2acc9c888f93d5479be9c8b7e6d7
[ "MIT" ]
null
null
null
# Generated by Django 2.0.10 on 2019-07-13 03:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('circles', '0002_auto_20...
49.75
209
0.639866
066285e69069d95e599527410edb20bd971ea9b1
3,885
py
Python
FlashArray_2X/basic_storage_workflow.py
PureStorage-OpenConnect/PythonSampleScripts
ae4b7ac54113d1a5a79226531423c0b0b285fcad
[ "Apache-2.0" ]
12
2017-01-30T16:12:07.000Z
2021-07-06T22:06:36.000Z
FlashArray_2X/basic_storage_workflow.py
PureStorage-OpenConnect/PythonSampleScripts
ae4b7ac54113d1a5a79226531423c0b0b285fcad
[ "Apache-2.0" ]
2
2018-09-28T12:20:53.000Z
2019-09-10T00:18:03.000Z
FlashArray_2X/basic_storage_workflow.py
PureStorage-OpenConnect/PythonSampleScripts
ae4b7ac54113d1a5a79226531423c0b0b285fcad
[ "Apache-2.0" ]
9
2017-02-03T19:23:48.000Z
2020-11-11T18:18:29.000Z
""" Download latest pypureclient release from: https://pypi.org/project/py-pure-client Example usage: $ python basic_storage_workflow.py --target pure001 --id-token eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImRjMTIzY2EwLTllNDktNDhiZS1iNWQwLTViMGVjMTUxODIwYiJ9.eyJhdWQiOiJmMDI5MGUzNS1hODFlLTQyNzQtODIyYy1...
44.655172
706
0.756499
6c59850ff5f8b7cfc5f24ce8cf29e8fc39dbb27a
2,019
py
Python
utils.py
INK-USC/hypter
732551e1e717b66ad26ba538593ed184957ecdea
[ "MIT" ]
11
2021-07-16T15:49:39.000Z
2021-12-17T14:46:25.000Z
utils.py
INK-USC/hypter
732551e1e717b66ad26ba538593ed184957ecdea
[ "MIT" ]
null
null
null
utils.py
INK-USC/hypter
732551e1e717b66ad26ba538593ed184957ecdea
[ "MIT" ]
1
2021-08-04T07:21:02.000Z
2021-08-04T07:21:02.000Z
import torch.nn as nn def label_smoothed_nll_loss(lprobs, target, epsilon=0.1, ignore_index=-100): """From fairseq""" if target.dim() == lprobs.dim() - 1: target = target.unsqueeze(-1) nll_loss = -lprobs.gather(dim=-1, index=target) smooth_loss = -lprobs.sum(dim=-1, keepdim=True) if ignore_...
35.421053
99
0.667162