hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
3bd9caeeddf847dd9546e4e833234ce3cce7f394
28
py
Python
patton_server/service/__init__.py
directionless/patton-server
da39cb8b09029dbcf4edd5c78abb150dc53e8ebe
[ "Apache-2.0" ]
null
null
null
patton_server/service/__init__.py
directionless/patton-server
da39cb8b09029dbcf4edd5c78abb150dc53e8ebe
[ "Apache-2.0" ]
null
null
null
patton_server/service/__init__.py
directionless/patton-server
da39cb8b09029dbcf4edd5c78abb150dc53e8ebe
[ "Apache-2.0" ]
null
null
null
from .make_web_app import *
14
27
0.785714
3bdb6220329725e793142bac8d5000ba99303cc3
989
py
Python
common/permissions.py
pedro-hs/financial-account
7e8e4d0f3ac888fa36a091d0e733a8e1926180d2
[ "MIT" ]
null
null
null
common/permissions.py
pedro-hs/financial-account
7e8e4d0f3ac888fa36a091d0e733a8e1926180d2
[ "MIT" ]
null
null
null
common/permissions.py
pedro-hs/financial-account
7e8e4d0f3ac888fa36a091d0e733a8e1926180d2
[ "MIT" ]
null
null
null
from rest_framework.permissions import BasePermission, IsAuthenticated
34.103448
107
0.706775
3bdba7505ba48dff77d09ed882c1ad53fae133f6
956
py
Python
mcp_generation/mcqa_formatter.py
yuchenlin/XCSR
ace4336de98a8567fcad43498907e0efefe70de4
[ "MIT" ]
16
2021-06-14T00:54:28.000Z
2022-03-06T08:52:21.000Z
mcp_generation/mcqa_formatter.py
yuchenlin/XCSR
ace4336de98a8567fcad43498907e0efefe70de4
[ "MIT" ]
null
null
null
mcp_generation/mcqa_formatter.py
yuchenlin/XCSR
ace4336de98a8567fcad43498907e0efefe70de4
[ "MIT" ]
2
2021-08-02T18:54:33.000Z
2021-09-20T05:37:02.000Z
import json probes = [] with open("./multilingual_probes.jsonl",'r') as f: for line in f: probes.append(json.loads(line.rstrip('\n|\r'))) results = [] for probe in probes: new_items = {} answer_labels = ["A", "B", "C", "D", "E","F","G","H"] print(probe["truth_id"]) answerKey = answer_label...
29.875
111
0.599372
3bdc4d0f00442b263a279d7821b9572ea9833620
2,016
py
Python
tests/test_behavior.py
beskyfil/labels
0a1e4831621ce2027ebc9af3e4161f03ff946a6d
[ "MIT" ]
null
null
null
tests/test_behavior.py
beskyfil/labels
0a1e4831621ce2027ebc9af3e4161f03ff946a6d
[ "MIT" ]
null
null
null
tests/test_behavior.py
beskyfil/labels
0a1e4831621ce2027ebc9af3e4161f03ff946a6d
[ "MIT" ]
null
null
null
import pytest from labelsync.github import Github from labelsync.helpers import HTTPError from tests.helpers import fl, FIXTURES_PATH, create_cfg_env, get_labels c = create_cfg_env('good.cfg') github = Github(c, name='github', api_url='https://api.github.com/repos') label = { 'name':'blabla', 'color':...
28.8
73
0.695933
3bdfbd90f140aef1f2b7005698a05751030fadf0
4,249
py
Python
authentication/cryptosign/function/authenticator.py
oberstet/crossbar-examples
852680eee646cf5479bff18ec727a8026d9bdcda
[ "Apache-2.0" ]
null
null
null
authentication/cryptosign/function/authenticator.py
oberstet/crossbar-examples
852680eee646cf5479bff18ec727a8026d9bdcda
[ "Apache-2.0" ]
null
null
null
authentication/cryptosign/function/authenticator.py
oberstet/crossbar-examples
852680eee646cf5479bff18ec727a8026d9bdcda
[ "Apache-2.0" ]
null
null
null
import copy import random from pprint import pformat from txaio import make_logger from autobahn.wamp.exception import ApplicationError from autobahn.util import hl, hltype, hlid, hlval # a simple principals database. in real world use, this likey would be # replaced by some persistent database used to store principal...
33.195313
138
0.589786
3bdfdc921f29e9f07e8dacf34bfc075882611de3
1,368
py
Python
syd/syd_stitch_image.py
OpenSyd/syd
0f7478c7dedb623ab955e906c103cb64a7abb4b3
[ "Apache-2.0" ]
4
2015-07-29T19:10:35.000Z
2020-11-17T07:48:41.000Z
syd/syd_stitch_image.py
OpenSyd/syd
0f7478c7dedb623ab955e906c103cb64a7abb4b3
[ "Apache-2.0" ]
9
2015-05-14T09:07:37.000Z
2022-03-15T10:13:59.000Z
syd/syd_stitch_image.py
OpenSyd/syd
0f7478c7dedb623ab955e906c103cb64a7abb4b3
[ "Apache-2.0" ]
3
2016-09-07T06:26:52.000Z
2016-10-04T12:29:03.000Z
#!/usr/bin/env python3 import itk import syd # ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
23.186441
79
0.557749
3be0272cc4ef59d691881a66ca66a56c66ec41a0
2,617
py
Python
pylinear/h5table/ddt.py
npirzkal/pyLINEAR
00419dcbd91ea7b64386e6fe4f3164cd141333f2
[ "MIT" ]
null
null
null
pylinear/h5table/ddt.py
npirzkal/pyLINEAR
00419dcbd91ea7b64386e6fe4f3164cd141333f2
[ "MIT" ]
null
null
null
pylinear/h5table/ddt.py
npirzkal/pyLINEAR
00419dcbd91ea7b64386e6fe4f3164cd141333f2
[ "MIT" ]
null
null
null
import numpy as np import pdb from . import columns from . import h5utils from .base import Base
24.231481
75
0.534964
3be1c731ef6e27de1ae8fcab0e00a570b8b671ef
851
py
Python
tools/auto_freeze.py
airacid/pruned-face-detector
ef587e274ccf87633af653694890eb6712d6b3eb
[ "MIT" ]
1
2021-11-01T02:39:36.000Z
2021-11-01T02:39:36.000Z
tools/auto_freeze.py
airacid/pruned-face-detector
ef587e274ccf87633af653694890eb6712d6b3eb
[ "MIT" ]
null
null
null
tools/auto_freeze.py
airacid/pruned-face-detector
ef587e274ccf87633af653694890eb6712d6b3eb
[ "MIT" ]
1
2021-11-01T02:39:37.000Z
2021-11-01T02:39:37.000Z
import os import tensorflow as tf import argparse parser = argparse.ArgumentParser() parser.add_argument('--ckpt_path', type=str) parser.add_argument('--output_path', type=str) args = parser.parse_args() os.environ["CUDA_VISIBLE_DEVICES"] = "-1" checkpoint = args.ckpt_path ##input_checkpoint input_che...
29.344828
119
0.774383
3be1c8da8fb0704e33d69f4791863e002d5b116a
2,045
py
Python
examples/nowcoder/SQL3/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/nowcoder/SQL3/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/nowcoder/SQL3/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.db import models # 1. Django(Composite Primary Key). # 2. Django(Disable Primary Key), # Primary Key , # Djangoid, primary keyid. # # # , InnoDB, Primary Key, # Unique Key , InnoDBUnique Key. # Unique Key, InnoDBPrimaryKey(). # # # , , Model. # CREATE TABLE `salaries` ( # `emp_no` int(11) NOT NUL...
33.52459
109
0.684597
3be3d29eecfe1ea6c347859c1388d314f37ccbc5
1,247
py
Python
concat_csv.py
jweckman/vim
c225f36ab05c2bdcedfc9866c367c1ddc4cd3646
[ "MIT" ]
null
null
null
concat_csv.py
jweckman/vim
c225f36ab05c2bdcedfc9866c367c1ddc4cd3646
[ "MIT" ]
null
null
null
concat_csv.py
jweckman/vim
c225f36ab05c2bdcedfc9866c367c1ddc4cd3646
[ "MIT" ]
null
null
null
import pandas as pd from pathlib import Path import sys ''' Concatenates all csv files in the folder passed to stdin ''' path = Path(sys.argv[1]) if __name__ == '__main__': csv_files = get_csv_paths(path) encoding, delimiter = ask_details() try: frames = get_frames(csv_files, encoding...
30.414634
94
0.653569
3be3ffc19dbd5fc20c5420fc3ab9c6320aeeee0a
2,589
py
Python
catkin_ws/src/rostest_example/tests/duckiecall_tester_node.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
12
2016-04-14T12:21:46.000Z
2021-06-18T07:51:40.000Z
catkin_ws/src/rostest_example/tests/duckiecall_tester_node.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
14
2017-03-03T23:33:05.000Z
2018-04-03T18:07:53.000Z
catkin_ws/src/rostest_example/tests/duckiecall_tester_node.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
113
2016-05-03T06:11:42.000Z
2019-06-01T14:37:38.000Z
#!/usr/bin/env python import rospy import unittest, rostest from rostest_example.Quacker import * from std_msgs.msg import String, Int32 if __name__ == '__main__': rospy.init_node('duckiecall_tester_node', anonymous=False) rostest.rosrun('rostest_example', 'duckiecall_tester_node', DuckiecallTesterNode)
43.15
127
0.696794
3be4dea35fbe812684c863cfb56967cde0971e92
1,679
py
Python
buildroot/support/testing/tests/init/test_busybox.py
rbrenton/hassos
fa6f7ac74ddba50e76f5779c613c56d937684844
[ "Apache-2.0" ]
617
2015-01-04T14:33:56.000Z
2022-03-24T22:42:25.000Z
buildroot/support/testing/tests/init/test_busybox.py
rbrenton/hassos
fa6f7ac74ddba50e76f5779c613c56d937684844
[ "Apache-2.0" ]
631
2015-01-01T22:53:25.000Z
2022-03-17T18:41:00.000Z
buildroot/support/testing/tests/init/test_busybox.py
rbrenton/hassos
fa6f7ac74ddba50e76f5779c613c56d937684844
[ "Apache-2.0" ]
133
2015-03-03T18:40:05.000Z
2022-03-18T13:34:26.000Z
import infra.basetest from tests.init.base import InitSystemBase as InitSystemBase
25.830769
69
0.659321
3be559b23f04ad4fbb4310964aaa62522258d721
8,529
py
Python
mayan/apps/linking/api_views.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
null
null
null
mayan/apps/linking/api_views.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
5
2021-03-19T22:59:52.000Z
2022-03-12T00:13:16.000Z
mayan/apps/linking/api_views.py
Sumit-Kumar-Jha/mayan
5b7ddeccf080b9e41cc1074c70e27dfe447be19f
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import absolute_import, unicode_literals from django.shortcuts import get_object_or_404 from mayan.apps.acls.models import AccessControlList from mayan.apps.documents.models import Document from mayan.apps.documents.permissions import permission_document_view from mayan.apps.rest_api import generics ...
30.569892
85
0.653183
3be6d032aab66cc3f999f8f1017e760af49f209f
4,013
py
Python
download_stats.py
zhengsipeng/kinetics-downloader
c85c6946a4408d1f9219441ae3f7aed679b10458
[ "MIT" ]
263
2018-03-10T15:44:35.000Z
2022-03-16T10:57:30.000Z
download_stats.py
zhengsipeng/kinetics-downloader
c85c6946a4408d1f9219441ae3f7aed679b10458
[ "MIT" ]
17
2018-09-13T00:30:22.000Z
2021-07-26T17:42:33.000Z
download_stats.py
zhengsipeng/kinetics-downloader
c85c6946a4408d1f9219441ae3f7aed679b10458
[ "MIT" ]
85
2018-07-12T03:45:38.000Z
2022-03-21T23:11:36.000Z
import argparse, os import lib.config as config import lib.utils as utils def count_present_and_missing(cls, directory, metadata): """ Count present and missing videos for a class based on metadata. :param cls: The class. If None, count all videos (used for testing videos - no classes). :param direc...
31.108527
120
0.697982
3beac65b5cb6099092c07d4a94aab675261b906d
3,885
py
Python
e2e/test_accessbot_show_resources.py
arthurSena0704/accessbot
5097453c45c5193e6516bc1f9441e90e49b3d324
[ "Apache-2.0" ]
null
null
null
e2e/test_accessbot_show_resources.py
arthurSena0704/accessbot
5097453c45c5193e6516bc1f9441e90e49b3d324
[ "Apache-2.0" ]
null
null
null
e2e/test_accessbot_show_resources.py
arthurSena0704/accessbot
5097453c45c5193e6516bc1f9441e90e49b3d324
[ "Apache-2.0" ]
3
2021-08-16T22:34:05.000Z
2021-09-22T02:51:13.000Z
# pylint: disable=invalid-name import pytest import sys from unittest.mock import MagicMock from test_common import create_config, DummyResource sys.path.append('plugins/sdm') from lib import ShowResourcesHelper pytest_plugins = ["errbot.backends.test"] extra_plugin_dir = 'plugins/sdm' def test_show_resources_wh...
45.174419
111
0.7426
3beb73cbef34b508a909878716873d4472cedd74
64
py
Python
tftf/layers/activations/tanh.py
yusugomori/tftf
e98b9ddffdbaa1fe04320437a47f12f3182ab6f3
[ "Apache-2.0" ]
35
2018-08-11T05:01:41.000Z
2021-01-29T02:28:47.000Z
tftf/layers/activations/tanh.py
yusugomori/tftf
e98b9ddffdbaa1fe04320437a47f12f3182ab6f3
[ "Apache-2.0" ]
null
null
null
tftf/layers/activations/tanh.py
yusugomori/tftf
e98b9ddffdbaa1fe04320437a47f12f3182ab6f3
[ "Apache-2.0" ]
4
2018-10-19T14:12:04.000Z
2021-01-29T02:28:49.000Z
import tensorflow as tf
10.666667
24
0.671875
3becb3cb8a9347c5c892e9c12331df179e27be0f
406
py
Python
game/migrations/0011_onlinegame_playersready.py
dimamelnik22/drawfulru
da2d21ef4c0b6776fc7c1059dbdf617f591c4ef8
[ "Apache-2.0" ]
null
null
null
game/migrations/0011_onlinegame_playersready.py
dimamelnik22/drawfulru
da2d21ef4c0b6776fc7c1059dbdf617f591c4ef8
[ "Apache-2.0" ]
7
2020-06-05T20:14:47.000Z
2021-09-22T18:18:06.000Z
game/migrations/0011_onlinegame_playersready.py
dimamelnik22/drawfulru
da2d21ef4c0b6776fc7c1059dbdf617f591c4ef8
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0 on 2019-12-23 06:19 from django.db import migrations, models
21.368421
50
0.576355
3bed882365f0c947238e86347d95e522a56968a9
2,380
py
Python
deprecated.py
tungr/CoeusBot
90bdc869a1f8c077a1f88dcf1335d20a19d49fee
[ "MIT" ]
null
null
null
deprecated.py
tungr/CoeusBot
90bdc869a1f8c077a1f88dcf1335d20a19d49fee
[ "MIT" ]
null
null
null
deprecated.py
tungr/CoeusBot
90bdc869a1f8c077a1f88dcf1335d20a19d49fee
[ "MIT" ]
null
null
null
#### Transfer data from JSON file to MongoDB #### # @client.command() # async def qupload(self, ctx): # mclient = MongoClient(host="localhost", port=27017) # db = mclient.coeusbot # quotesdb = db.quotes # with open('quotes.json', 'r') as f: # quotes = json.load(f) # for quotenum in ra...
32.162162
93
0.561765
3bedf4765622764f7282bd201ee9a488ae9fdbd2
370
py
Python
packaging/scripts/collect_matlab.py
robotraconteur/robotraconteur
ff997351761a687be364234684202e3348c4083c
[ "Apache-2.0" ]
37
2019-01-31T06:05:17.000Z
2022-03-21T06:56:18.000Z
packaging/scripts/collect_matlab.py
robotraconteur/robotraconteur
ff997351761a687be364234684202e3348c4083c
[ "Apache-2.0" ]
14
2019-07-18T04:09:45.000Z
2021-08-31T02:04:22.000Z
packaging/scripts/collect_matlab.py
robotraconteur/robotraconteur
ff997351761a687be364234684202e3348c4083c
[ "Apache-2.0" ]
3
2018-11-23T22:03:22.000Z
2021-11-02T10:03:39.000Z
import shutil import pathlib asset_dirs = ["artifacts/main", "artifacts/build_python_version"] pathlib.Path("distfiles").mkdir(exist_ok=True) for asset_dir in asset_dirs: for fname in list(pathlib.Path(asset_dir).glob('**/RobotRaconteur-*-MATLAB*')): print(fname) dest = pathlib.Path(fname) ...
30.833333
83
0.705405
3bee8a2e3ce8d0e0dbf5627d1dd4f2bc366b92ab
821
py
Python
setup.py
bryan-he/closek
b0367e09d7fa1a096580d762db6fd948e04c1d9e
[ "MIT" ]
null
null
null
setup.py
bryan-he/closek
b0367e09d7fa1a096580d762db6fd948e04c1d9e
[ "MIT" ]
null
null
null
setup.py
bryan-he/closek
b0367e09d7fa1a096580d762db6fd948e04c1d9e
[ "MIT" ]
null
null
null
"""Metadata for package to allow installation with pip.""" import setuptools exec(open("closek/version.py").read()) with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="closek", description="Scikit-learn-style implementation of the close-k classifier.", long_descri...
24.878788
79
0.6419
3beed423b84aed994aacbe9098f28892995cd210
491
py
Python
ramda/memoize_with_test.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
56
2018-08-06T08:44:58.000Z
2022-03-17T09:49:03.000Z
ramda/memoize_with_test.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
28
2019-06-17T11:09:52.000Z
2022-02-18T16:59:21.000Z
ramda/memoize_with_test.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
5
2019-09-18T09:24:38.000Z
2021-07-21T08:40:23.000Z
from ramda.memoize_with import memoize_with from ramda.product import product from ramda.private.asserts import assert_equal as e count = 0
20.458333
51
0.631365
3beefe8b0cd9218be467b3453fa033b4d6ace79a
18,821
py
Python
cdlib/evaluation/comparison.py
xing-lab-pitt/cdlib
590e145429cda1db4d3671c994c502bedd77f108
[ "BSD-2-Clause" ]
248
2019-02-17T05:31:22.000Z
2022-03-30T04:57:20.000Z
cdlib/evaluation/comparison.py
xing-lab-pitt/cdlib
590e145429cda1db4d3671c994c502bedd77f108
[ "BSD-2-Clause" ]
130
2019-02-10T19:35:55.000Z
2022-03-31T10:58:39.000Z
cdlib/evaluation/comparison.py
xing-lab-pitt/cdlib
590e145429cda1db4d3671c994c502bedd77f108
[ "BSD-2-Clause" ]
70
2019-02-15T19:04:29.000Z
2022-03-27T12:58:50.000Z
import numpy as np from cdlib.evaluation.internal import onmi from cdlib.evaluation.internal.omega import Omega from nf1 import NF1 from collections import namedtuple, defaultdict __all__ = [ "MatchingResult", "normalized_mutual_information", "overlapping_normalized_mutual_information_LFK", "overlappin...
36.263969
391
0.692684
3bef530282cd351acc8d5d5fce296f7123e0bfe8
56
py
Python
node/views/__init__.py
mohamedmansor/path-detector
14954795ea47109d404b54f74575337f86d6134f
[ "MIT" ]
null
null
null
node/views/__init__.py
mohamedmansor/path-detector
14954795ea47109d404b54f74575337f86d6134f
[ "MIT" ]
null
null
null
node/views/__init__.py
mohamedmansor/path-detector
14954795ea47109d404b54f74575337f86d6134f
[ "MIT" ]
null
null
null
from .node_view import ConnectNodesViewSet, PathViewSet
28
55
0.875
3bf1bbdf44b6a8b3ce4f31f26290f905b3426047
1,193
py
Python
tests/modules/extra/fastapi/controller/integration/test_fastapi_app_with_controller.py
alice-biometrics/petisco
b96e697cc875f67a28e60b4fc0d9ed9fc646cd86
[ "MIT" ]
19
2019-11-01T09:27:17.000Z
2021-12-15T10:52:31.000Z
tests/modules/extra/fastapi/controller/integration/test_fastapi_app_with_controller.py
alice-biometrics/petisco
b96e697cc875f67a28e60b4fc0d9ed9fc646cd86
[ "MIT" ]
68
2020-01-15T06:55:00.000Z
2022-02-22T15:57:24.000Z
tests/modules/extra/fastapi/controller/integration/test_fastapi_app_with_controller.py
alice-biometrics/petisco
b96e697cc875f67a28e60b4fc0d9ed9fc646cd86
[ "MIT" ]
2
2019-11-19T10:40:25.000Z
2019-11-28T07:12:07.000Z
from typing import Optional import pytest from fastapi import FastAPI, Header from fastapi.testclient import TestClient from meiga import BoolResult, Failure, isFailure, isSuccess from petisco import NotFound, assert_http from petisco.extra.fastapi import FastAPIController app = FastAPI(title="test-app") result_fro...
29.097561
78
0.75943
3bf3ea019e2b8d99252bef80157556503f118e91
438
py
Python
component/reminder/tasks.py
pablo0723/just-a-test
31e8157a5d1f50b30d83d945b77caaa2b7b717ba
[ "MIT" ]
null
null
null
component/reminder/tasks.py
pablo0723/just-a-test
31e8157a5d1f50b30d83d945b77caaa2b7b717ba
[ "MIT" ]
null
null
null
component/reminder/tasks.py
pablo0723/just-a-test
31e8157a5d1f50b30d83d945b77caaa2b7b717ba
[ "MIT" ]
null
null
null
from django.core.mail import send_mail from component.reminder.models import Reminder from server.celery import app
27.375
53
0.636986
3bf45f24ab2dd0e2ee1d2a8a4c89e7d8442c50d9
1,203
py
Python
skmine/tests/test_base.py
remiadon/scikit-mine
769d7d5ea0dda5d4adea33236733f4ce1ea0c815
[ "BSD-3-Clause" ]
null
null
null
skmine/tests/test_base.py
remiadon/scikit-mine
769d7d5ea0dda5d4adea33236733f4ce1ea0c815
[ "BSD-3-Clause" ]
null
null
null
skmine/tests/test_base.py
remiadon/scikit-mine
769d7d5ea0dda5d4adea33236733f4ce1ea0c815
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import pytest from ..base import BaseMiner, MDLOptimizer
20.741379
70
0.591022
3bf5e5434eef73539dca4c83819a0c06da30de79
893
py
Python
src/season/data/websrc/modules/intro/controller/index.py
season-framework/season-flask-wiz
95d75758a6036d387c1b803bd6a68f238ec430e0
[ "MIT" ]
6
2021-12-09T05:06:49.000Z
2022-01-18T02:38:03.000Z
src/season/data/websrc/modules/intro/controller/index.py
season-framework/season-flask-wiz
95d75758a6036d387c1b803bd6a68f238ec430e0
[ "MIT" ]
2
2022-02-18T02:00:36.000Z
2022-03-22T05:18:30.000Z
src/season/data/websrc/modules/intro/controller/index.py
season-framework/season-flask-wiz
95d75758a6036d387c1b803bd6a68f238ec430e0
[ "MIT" ]
2
2022-01-07T00:26:00.000Z
2022-03-07T06:24:27.000Z
import season import random
33.074074
80
0.571109
3bf63b37e1c270fbc81e663a1141ad00744d52eb
11,770
py
Python
crypten/nn/onnx_converter.py
chenfar/CrypTen
9a11b79f1fa9d707eb38abf7d812911980520559
[ "MIT" ]
null
null
null
crypten/nn/onnx_converter.py
chenfar/CrypTen
9a11b79f1fa9d707eb38abf7d812911980520559
[ "MIT" ]
null
null
null
crypten/nn/onnx_converter.py
chenfar/CrypTen
9a11b79f1fa9d707eb38abf7d812911980520559
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy import io import onnx import torch import torch.onnx.symbolic_helper as sym_help import torch.onnx.symbo...
34.925816
87
0.693203
3bf70a1a9f2bab5e2d13cf95f5bb6e7cbc23fec9
3,582
py
Python
examples/pipeline.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
null
null
null
examples/pipeline.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
null
null
null
examples/pipeline.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
null
null
null
from arekit.common.data.input.providers.label.multiple import MultipleLabelProvider from arekit.common.data.row_ids.multiple import MultipleIDProvider from arekit.common.data.storages.base import BaseRowsStorage from arekit.common.data.views.samples import BaseSampleStorageView from arekit.common.experiment.data_type i...
40.704545
105
0.769961
3bf77e53ccae2099f5deb07947c3ee02b77cf7b8
9,038
py
Python
python/lapack_like/reflect.py
justusc/Elemental
145ccb28411f3f0c65ca30ecea776df33297e4ff
[ "BSD-3-Clause" ]
null
null
null
python/lapack_like/reflect.py
justusc/Elemental
145ccb28411f3f0c65ca30ecea776df33297e4ff
[ "BSD-3-Clause" ]
null
null
null
python/lapack_like/reflect.py
justusc/Elemental
145ccb28411f3f0c65ca30ecea776df33297e4ff
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2009-2015, Jack Poulson # All rights reserved. # # This file is part of Elemental and is under the BSD 2-Clause License, # which can be found in the LICENSE file in the root directory, or at # http://opensource.org/licenses/BSD-2-Clause # from ..core import * import ctypes # Apply packed refle...
42.834123
78
0.731356
3bf87ad7597d41df2c5bff20fab72d6e34dbefa1
2,443
py
Python
src/PointClasses/Bisector.py
Lovely-XPP/tkzgeom
bf68e139dc05f759542d6611f4dc07f4f2727b92
[ "MIT" ]
41
2021-11-24T05:54:08.000Z
2022-03-26T10:19:30.000Z
src/PointClasses/Bisector.py
Lovely-XPP/tkzgeom
bf68e139dc05f759542d6611f4dc07f4f2727b92
[ "MIT" ]
1
2022-02-28T04:34:51.000Z
2022-03-07T10:49:27.000Z
src/PointClasses/Bisector.py
Lovely-XPP/tkzgeom
bf68e139dc05f759542d6611f4dc07f4f2727b92
[ "MIT" ]
10
2021-11-24T07:35:17.000Z
2022-03-25T18:42:14.000Z
from Point import Point import Constant as c from GeometryMath import bisector_point
40.04918
119
0.56447
3bf883b35e2fe868219f30a0db3d466b114010f3
354
py
Python
custom_components/fitx/const.py
Raukze/home-assistant-fitx
2808200e0e87a0559b927dc013765bf1cd20030e
[ "MIT" ]
3
2022-03-02T07:49:47.000Z
2022-03-18T08:59:05.000Z
custom_components/fitx/const.py
Raukze/home-assistant-fitx
2808200e0e87a0559b927dc013765bf1cd20030e
[ "MIT" ]
null
null
null
custom_components/fitx/const.py
Raukze/home-assistant-fitx
2808200e0e87a0559b927dc013765bf1cd20030e
[ "MIT" ]
null
null
null
DOMAIN = "fitx" ICON = "mdi:weight-lifter" CONF_LOCATIONS = 'locations' CONF_ID = 'id' ATTR_ADDRESS = "address" ATTR_STUDIO_NAME = "studioName" ATTR_ID = CONF_ID ATTR_URL = "url" DEFAULT_ENDPOINT = "https://www.fitx.de/fitnessstudios/{id}" REQUEST_METHOD = "GET" REQUEST_AUTH = None REQUEST_HEADERS = None REQUEST_PAYLOA...
25.285714
60
0.762712
3bf93c870b2bc30c3baf9567a64d06171558f06b
1,894
py
Python
youtube_dl/extractor/scivee.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
5
2016-04-25T16:26:07.000Z
2021-04-28T16:10:29.000Z
youtube_dl/extractor/scivee.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
5
2016-04-22T01:33:31.000Z
2016-08-04T15:33:19.000Z
youtube_dl/extractor/scivee.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
5
2020-10-25T09:18:58.000Z
2021-05-23T22:57:55.000Z
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import int_or_none
33.22807
116
0.541711
3bfa7757212343833fdcee31409e1364ca82a73d
11,790
py
Python
examples/plot_tuh_eeg_corpus.py
SciMK/braindecode
65b8de3e8a542e299996c0917ea3383aea5a9a69
[ "BSD-3-Clause" ]
null
null
null
examples/plot_tuh_eeg_corpus.py
SciMK/braindecode
65b8de3e8a542e299996c0917ea3383aea5a9a69
[ "BSD-3-Clause" ]
null
null
null
examples/plot_tuh_eeg_corpus.py
SciMK/braindecode
65b8de3e8a542e299996c0917ea3383aea5a9a69
[ "BSD-3-Clause" ]
null
null
null
"""Process a big data EEG resource (TUH EEG Corpus) =================================================== In this example, we showcase usage of the Temple University Hospital EEG Corpus (https://www.isip.piconepress.com/projects/tuh_eeg/html/downloads.shtml#c_tueg) including simple preprocessing steps as well as cutting...
39.966102
195
0.653605
3bfae0d38025f9ed469b1477352c2cbb4d204cae
9,752
py
Python
tests/metrics/test_metrics.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
tests/metrics/test_metrics.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
tests/metrics/test_metrics.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
import logging import numpy as np from emmental.metrics.accuracy import accuracy_scorer from emmental.metrics.accuracy_f1 import accuracy_f1_scorer from emmental.metrics.fbeta import f1_scorer, fbeta_scorer from emmental.metrics.matthews_correlation import ( matthews_correlation_coefficient_scorer, ) from emmenta...
31.869281
85
0.658839
3bfbc45da374cdb7d8360321c18d5a979fdef4e1
3,986
py
Python
vesper/command/job_logging_manager.py
HaroldMills/NFC
356b2234dc3c7d180282a597fa1e039ae79e03c6
[ "MIT" ]
null
null
null
vesper/command/job_logging_manager.py
HaroldMills/NFC
356b2234dc3c7d180282a597fa1e039ae79e03c6
[ "MIT" ]
1
2015-01-12T12:41:29.000Z
2015-01-12T12:41:29.000Z
vesper/command/job_logging_manager.py
HaroldMills/NFC
356b2234dc3c7d180282a597fa1e039ae79e03c6
[ "MIT" ]
null
null
null
"""Module containing class `JobLoggingManager`.""" from collections import defaultdict from logging import FileHandler, Handler from logging.handlers import QueueHandler, QueueListener from multiprocessing import Queue import logging import vesper.util.logging_utils as logging_utils import vesper.util.os_utils as os...
34.068376
76
0.659809
3bfc3d39f5d7c8e9a54f0fc8a5c3d30aa858a4b2
4,837
py
Python
evaluation/metrics.py
victorperezpiqueras/MONRP
f20bbde8895867d37b735dec7a5fd95ee90fadf6
[ "MIT" ]
null
null
null
evaluation/metrics.py
victorperezpiqueras/MONRP
f20bbde8895867d37b735dec7a5fd95ee90fadf6
[ "MIT" ]
2
2021-05-05T14:41:24.000Z
2022-01-18T09:08:06.000Z
evaluation/metrics.py
victorperezpiqueras/MONRP
f20bbde8895867d37b735dec7a5fd95ee90fadf6
[ "MIT" ]
null
null
null
import math from typing import List import numpy as np from datasets.Dataset import Dataset from models.Solution import Solution
30.23125
92
0.64999
3bfc6525bf99e8218a93653bc016cb8baae15ea1
3,803
py
Python
networkx/classes/tests/test_digraph_historical.py
KyleBenson/networkx
26ccb4a380ba0e5304d7bbff53eb9859c6e4c93a
[ "BSD-3-Clause" ]
null
null
null
networkx/classes/tests/test_digraph_historical.py
KyleBenson/networkx
26ccb4a380ba0e5304d7bbff53eb9859c6e4c93a
[ "BSD-3-Clause" ]
null
null
null
networkx/classes/tests/test_digraph_historical.py
KyleBenson/networkx
26ccb4a380ba0e5304d7bbff53eb9859c6e4c93a
[ "BSD-3-Clause" ]
1
2019-01-30T17:57:36.000Z
2019-01-30T17:57:36.000Z
#!/usr/bin/env python """Original NetworkX graph tests""" from nose.tools import * import networkx import networkx as nx from networkx.testing.utils import * from historical_tests import HistoricalTests
34.889908
79
0.519853
3bfc66ab6394f443698742193984f19425d0486f
6,325
py
Python
older/fn_res_to_icd/fn_res_to_icd/components/res_to_icd_function.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
older/fn_res_to_icd/fn_res_to_icd/components/res_to_icd_function.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
older/fn_res_to_icd/fn_res_to_icd/components/res_to_icd_function.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
# -*- coding: utf-8 -*- # (c) Copyright IBM Corp. 2019. All Rights Reserved. # pragma pylint: disable=unused-argument, no-self-use import logging import re import sys import requests from bs4 import BeautifulSoup as bsoup from resilient_circuits import ResilientComponent, function, handler from resilient_circuits impo...
49.031008
191
0.591146
ce017638896c04f18c2cb7532f41f9850780cdae
28,484
py
Python
nimbleclient/v1/api/groups.py
prachiruparelia-hpe/nimble-python-sdk
a3e99d89e647291caf7936300ae853d21d94d6e5
[ "Apache-2.0" ]
1
2020-05-28T19:48:59.000Z
2020-05-28T19:48:59.000Z
nimbleclient/v1/api/groups.py
prachiruparelia-hpe/nimble-python-sdk
a3e99d89e647291caf7936300ae853d21d94d6e5
[ "Apache-2.0" ]
null
null
null
nimbleclient/v1/api/groups.py
prachiruparelia-hpe/nimble-python-sdk
a3e99d89e647291caf7936300ae853d21d94d6e5
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020 Hewlett Packard Enterprise Development LP # # This file was auto-generated by the Python SDK generator; DO NOT EDIT. # from ...resource import Resource, Collection from ...exceptions import NimOSAPIOperationUnsupported
44.5759
179
0.584082
ce02069f82a4f0531c7597c44775348bc1d10f18
309
py
Python
sdk_client/scripts/cards2json.py
victorlacorte/MTG-SDK-Client
33fdbfbf545e9f3961369b123a2f7fe783ce8f12
[ "DOC" ]
null
null
null
sdk_client/scripts/cards2json.py
victorlacorte/MTG-SDK-Client
33fdbfbf545e9f3961369b123a2f7fe783ce8f12
[ "DOC" ]
null
null
null
sdk_client/scripts/cards2json.py
victorlacorte/MTG-SDK-Client
33fdbfbf545e9f3961369b123a2f7fe783ce8f12
[ "DOC" ]
null
null
null
import json import mtgsdk as mtg magic_sets = ('grn',) if __name__ == '__main__': main()
19.3125
62
0.585761
ce027805c06db61c04f315262615e01faa30ae5a
18,148
py
Python
metview/param.py
ecmwf/metview-python
641e57716ac1bb105394dd3a871ccd1e5ed60b26
[ "Apache-2.0" ]
88
2018-06-08T14:21:18.000Z
2022-03-31T12:25:59.000Z
metview/param.py
ecmwf/metview-python
641e57716ac1bb105394dd3a871ccd1e5ed60b26
[ "Apache-2.0" ]
37
2018-11-01T09:50:07.000Z
2022-02-24T12:20:16.000Z
metview/param.py
ecmwf/metview-python
641e57716ac1bb105394dd3a871ccd1e5ed60b26
[ "Apache-2.0" ]
26
2018-06-08T14:21:28.000Z
2022-01-28T12:55:16.000Z
# (C) Copyright 2017- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernme...
32.407143
113
0.454761
ce03e73e55d15e74f86d8e0bd047fcc03b6a00ce
316
py
Python
flask_edu_1/file1.py
fulkgl/Flask_edu_1
cccb70742949577fce5ed279a9d70e6348465643
[ "MIT" ]
1
2019-12-16T21:55:53.000Z
2019-12-16T21:55:53.000Z
flask_edu_1/file1.py
fulkgl/Flask_edu_1
cccb70742949577fce5ed279a9d70e6348465643
[ "MIT" ]
null
null
null
flask_edu_1/file1.py
fulkgl/Flask_edu_1
cccb70742949577fce5ed279a9d70e6348465643
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: UTF-8 '''! module description @author <A href="email:fulkgl@gmail.com">George L Fulk</A> ''' __version__ = 0.01 def main(): '''! main description ''' print("Hello world") return 0 if __name__ == "__main__": # command line entry point main() # END #
13.166667
58
0.598101
ce07948f6f31a33c9447bac9ba7da84e0cc0cfdb
25
py
Python
write_grok/__init__.py
namedyangfan/Python_practice
7f7394d82bb5afc13b039eec286b9485a775ae39
[ "MIT" ]
null
null
null
write_grok/__init__.py
namedyangfan/Python_practice
7f7394d82bb5afc13b039eec286b9485a775ae39
[ "MIT" ]
null
null
null
write_grok/__init__.py
namedyangfan/Python_practice
7f7394d82bb5afc13b039eec286b9485a775ae39
[ "MIT" ]
null
null
null
from .write_grok import *
25
25
0.8
ce079ba915fb3b960bd7c0c9b579e190a8341d22
1,883
py
Python
backend/usuarios/views.py
alfmorais/pi-univesp
45a149e9a404f7b0238b84eb335db7111cd15ebb
[ "MIT" ]
1
2021-12-24T20:32:51.000Z
2021-12-24T20:32:51.000Z
backend/usuarios/views.py
alfmorais/pi-univesp
45a149e9a404f7b0238b84eb335db7111cd15ebb
[ "MIT" ]
null
null
null
backend/usuarios/views.py
alfmorais/pi-univesp
45a149e9a404f7b0238b84eb335db7111cd15ebb
[ "MIT" ]
null
null
null
from hashlib import sha256 from django.http import HttpResponse from django.shortcuts import redirect, render from .models import Usuarios
25.445946
70
0.627722
ce07ca9cf794023383e230a89ff64c045e2a41a9
2,737
py
Python
textclf/tester/dl_tester.py
lswjkllc/textclf
e4e7504989dd5d39c9376eafda1abc580c053913
[ "MIT" ]
146
2020-02-20T02:29:55.000Z
2022-01-21T09:49:40.000Z
textclf/tester/dl_tester.py
lswjkllc/textclf
e4e7504989dd5d39c9376eafda1abc580c053913
[ "MIT" ]
4
2020-03-08T03:24:16.000Z
2021-03-26T05:34:09.000Z
textclf/tester/dl_tester.py
lswjkllc/textclf
e4e7504989dd5d39c9376eafda1abc580c053913
[ "MIT" ]
16
2020-02-26T04:45:40.000Z
2021-05-08T03:52:38.000Z
import torch from transformers import BertTokenizer from .base_tester import Tester from textclf.utils.raw_data import create_tokenizer from textclf.utils.create import create_instance from textclf.config import DLTesterConfig from textclf.data.dictionary import Dictionary
38.549296
85
0.652905
ce0890d24a487d376e2478b4bdab9793e27e76ac
3,303
py
Python
scripts/pughpore/randomwalk/get_D_old.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
8
2016-09-07T01:59:31.000Z
2021-03-06T12:14:31.000Z
scripts/pughpore/randomwalk/get_D_old.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
scripts/pughpore/randomwalk/get_D_old.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
4
2017-12-06T17:43:01.000Z
2020-05-01T05:41:14.000Z
import matplotlib matplotlib.use("Agg") from matplotlib import pyplot as plt import numpy as np import os from nanopores.tools import fields from scipy.interpolate import interp1d HOME = os.path.expanduser("~") DATADIR = os.path.join(HOME, "Dropbox", "nanopores", "fields") fields.set_dir(DATADIR) data = fields.get_fi...
28.230769
81
0.599758
ce08db747b526cc7a8cef1e5d71b70335cd56cae
7,885
py
Python
scripts/unseen_pairs_prepare.py
dhh1995/SCL
6b481709c11acc10909fed2105a7b485dab0887c
[ "MIT" ]
32
2020-07-10T04:50:03.000Z
2021-11-26T16:57:01.000Z
scripts/unseen_pairs_prepare.py
dhh1995/SCL
6b481709c11acc10909fed2105a7b485dab0887c
[ "MIT" ]
5
2020-07-10T07:55:34.000Z
2021-11-24T02:45:32.000Z
scripts/unseen_pairs_prepare.py
dhh1995/SCL
6b481709c11acc10909fed2105a7b485dab0887c
[ "MIT" ]
3
2020-08-20T15:10:35.000Z
2022-02-20T16:31:01.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : unseen_pairs_prepare.py # Author : Honghua Dong # Email : dhh19951@gmail.com # Date : 02/04/2019 # # Distributed under terms of the MIT license. ''' To split dataset into {train/val/test}_split_{rel}_{attr}_{args}.pkl It will produce a set of indexes stored...
36.50463
103
0.625491
ce0afbb54da9c5cda767047eb0fb4add36a18205
1,533
py
Python
apis/common/models/movie.py
sunil28rana/flask-imdb-sample-project
df28655327a42c0ec28e485d64ebbc5d525275e7
[ "MIT" ]
null
null
null
apis/common/models/movie.py
sunil28rana/flask-imdb-sample-project
df28655327a42c0ec28e485d64ebbc5d525275e7
[ "MIT" ]
null
null
null
apis/common/models/movie.py
sunil28rana/flask-imdb-sample-project
df28655327a42c0ec28e485d64ebbc5d525275e7
[ "MIT" ]
1
2020-10-22T10:31:00.000Z
2020-10-22T10:31:00.000Z
from datetime import datetime from sqlalchemy import UniqueConstraint from apis.initialization import db
35.651163
92
0.703849
ce0ca8f2fe98f3ab332870eee82d60c59dac39aa
719
py
Python
setup.py
DewMaple/toolkit
a1f04d1b53420c64e15f684c83acb54276031346
[ "BSD-3-Clause" ]
null
null
null
setup.py
DewMaple/toolkit
a1f04d1b53420c64e15f684c83acb54276031346
[ "BSD-3-Clause" ]
null
null
null
setup.py
DewMaple/toolkit
a1f04d1b53420c64e15f684c83acb54276031346
[ "BSD-3-Clause" ]
null
null
null
# from distutils.core import setup from setuptools import setup, find_packages setup( name='py-toolkit', version='0.0.3', packages=find_packages(exclude=("tests",)), url='https://github.com/DewMaple/toolkit', description='python toolkit for common usage', author='DewMaple', author_email='de...
28.76
68
0.631433
ce0da279383850a16ffabcd3fe15ce7341142e46
3,934
py
Python
ui.py
xKynn/zerox-assistant
292525bf55cd08f930338310869dba1c25a00cf4
[ "MIT" ]
1
2021-11-07T14:49:13.000Z
2021-11-07T14:49:13.000Z
ui.py
xKynn/pyTunes
292525bf55cd08f930338310869dba1c25a00cf4
[ "MIT" ]
null
null
null
ui.py
xKynn/pyTunes
292525bf55cd08f930338310869dba1c25a00cf4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'hnc.ui' # # Created by: PyQt5 UI code generator 5.15.6 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, Q...
42.76087
87
0.543976
ce0dbcf0753017f4de48e972ead2feb9166619cc
6,373
py
Python
text_clf/data_load.py
kejunxiao/TextClf
aa1c195cb5908c32a3e6ed6891142603cb198d87
[ "BSD-3-Clause" ]
2
2018-05-13T13:00:10.000Z
2018-05-13T13:00:12.000Z
text_clf/data_load.py
kejunxiao/TextClf
aa1c195cb5908c32a3e6ed6891142603cb198d87
[ "BSD-3-Clause" ]
null
null
null
text_clf/data_load.py
kejunxiao/TextClf
aa1c195cb5908c32a3e6ed6891142603cb198d87
[ "BSD-3-Clause" ]
null
null
null
""" data preprocessing and get batch """ import os import re import logging import itertools from collections import Counter import numpy as np import pandas as pd if __name__ == '__main__': params = { 'data_path': '../dataset/San_Francisco_Crime/train.csv.zip', 'batch_size': 32, 'num_epo...
35.209945
100
0.557822
ce0e92d74f72ee04e6c2fbb871130425f6c911e3
11,629
py
Python
pydsm/audio_weightings.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
pydsm/audio_weightings.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
pydsm/audio_weightings.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2013, Sergio Callegari # All rights reserved. # This file is part of PyDSM. # PyDSM is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
33.707246
78
0.600224
ce0ea9cd4625661b89c457658572716294eaef3b
1,258
py
Python
data_custom/data_load.py
icon-lab/provoGAN
e4abee668ca5a5733a04c0e27e379a0434b0270f
[ "BSD-3-Clause" ]
1
2022-03-27T09:16:22.000Z
2022-03-27T09:16:22.000Z
data_custom/data_load.py
icon-lab/provoGAN
e4abee668ca5a5733a04c0e27e379a0434b0270f
[ "BSD-3-Clause" ]
null
null
null
data_custom/data_load.py
icon-lab/provoGAN
e4abee668ca5a5733a04c0e27e379a0434b0270f
[ "BSD-3-Clause" ]
null
null
null
import os import nibabel import numpy as np import random from scipy import ndimage import SimpleITK as sitk def load_nifty_volume_as_array(filename, with_header = False): """ load nifty image into numpy array, and transpose it based on the [z,y,x] axis order The output array shape is like [Depth, Height,...
29.952381
92
0.678855
ce0ffdd605799570a773639f27bdbc3a5cc51708
8,802
py
Python
project/server/user/views.py
kangusrm/XML-parser
adb2a7049b5946fb6293f58e20c860fbb07a6806
[ "MIT" ]
1
2016-09-20T09:07:34.000Z
2016-09-20T09:07:34.000Z
project/server/user/views.py
kangusrm/XML-parser
adb2a7049b5946fb6293f58e20c860fbb07a6806
[ "MIT" ]
null
null
null
project/server/user/views.py
kangusrm/XML-parser
adb2a7049b5946fb6293f58e20c860fbb07a6806
[ "MIT" ]
1
2016-09-20T09:07:37.000Z
2016-09-20T09:07:37.000Z
# project/server/user/views.py ################# #### imports #### ################# from flask import render_template, Blueprint, url_for, \ redirect, flash, request, session from flask_login import login_user, logout_user, login_required from project.server import bcrypt, db from project.server.models import ...
32.360294
123
0.538287
ce10a73d0706d4c9c4b471fbf0c74937c35cf813
5,477
py
Python
active_feature_extractor/experiments/linear_q_learner.py
benblack769/atari_q_learner
adae53e91ec6013ffaeefc9a058c7ab933593cea
[ "MIT" ]
null
null
null
active_feature_extractor/experiments/linear_q_learner.py
benblack769/atari_q_learner
adae53e91ec6013ffaeefc9a058c7ab933593cea
[ "MIT" ]
null
null
null
active_feature_extractor/experiments/linear_q_learner.py
benblack769/atari_q_learner
adae53e91ec6013ffaeefc9a058c7ab933593cea
[ "MIT" ]
null
null
null
import torch import numpy as np from torch import nn # class DefaultModel(nn.Model): # def __init__(self) #
40.57037
125
0.651999
ce1252998459ede1ce9e5326a029f03393ec65ef
660
py
Python
Qualification/lazyLoader.py
monisjaved/Facebook-Hacker-Cup
569052ecf1c94162cfbbef2533519b46d73d9328
[ "MIT" ]
null
null
null
Qualification/lazyLoader.py
monisjaved/Facebook-Hacker-Cup
569052ecf1c94162cfbbef2533519b46d73d9328
[ "MIT" ]
null
null
null
Qualification/lazyLoader.py
monisjaved/Facebook-Hacker-Cup
569052ecf1c94162cfbbef2533519b46d73d9328
[ "MIT" ]
null
null
null
# https://www.facebook.com/hackercup/problem/169401886867367/ __author__ = "Moonis Javed" __email__ = "monis.javed@gmail.com" if __name__ == "__main__": f = open("input2.txt").read().split("\n") writeF = open("output2.txt","w") n = int(f[0]) del f[0] for i in range(1,n+1): t = int(f[0]) del f[0] arr =[None]...
18.333333
61
0.568182
ce14ba7248ea553bc8bf340da9e895166445335c
47
py
Python
libs/messaging_service/__init__.py
wip-abramson/aries-jupyter-playground
872f1a319f9072d7160298fcce82fb64c93d7397
[ "Apache-2.0" ]
6
2021-05-27T12:51:32.000Z
2022-01-11T05:49:12.000Z
libs/messaging_service/__init__.py
SoftwareImpacts/SIMPAC-2021-64
4089946109e05516bbea70359d3bf1d02b245f4a
[ "Apache-2.0" ]
2
2021-10-05T07:38:05.000Z
2022-02-10T11:38:18.000Z
libs/messaging_service/__init__.py
SoftwareImpacts/SIMPAC-2021-64
4089946109e05516bbea70359d3bf1d02b245f4a
[ "Apache-2.0" ]
7
2021-04-22T14:18:06.000Z
2022-02-14T10:30:52.000Z
from .messaging_service import MessagingService
47
47
0.914894
ce1563691214ec353e2ec66f0c158ddd18f4c456
556
py
Python
Ex087.py
andrade-lcs/ex_curso_em_video_python
f2d029efe7a20cdf0fcb5b602f9992e27d37c263
[ "MIT" ]
null
null
null
Ex087.py
andrade-lcs/ex_curso_em_video_python
f2d029efe7a20cdf0fcb5b602f9992e27d37c263
[ "MIT" ]
null
null
null
Ex087.py
andrade-lcs/ex_curso_em_video_python
f2d029efe7a20cdf0fcb5b602f9992e27d37c263
[ "MIT" ]
null
null
null
from random import randint s = t = ma = 0 m = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] for l in range(0, 3): for c in range(0, 3): m[l][c] = randint(0, 100) print('-='*15) for l in range(0, 3): t += m[l][2] for c in range(0, 3): print(f'[{m[l][c]:^5}]', end='') if m[l][c] % 2 == 0: ...
27.8
53
0.47482
ce1579bf8768e7cef70aebd7b3896b98ea1a0187
54
py
Python
networkx-d3-v2/networkx/tests/__init__.py
suraj-testing2/Clock_Websites
0e65331da40cfd3766f1bde17f0a9c7ff6666dea
[ "Apache-2.0" ]
null
null
null
networkx-d3-v2/networkx/tests/__init__.py
suraj-testing2/Clock_Websites
0e65331da40cfd3766f1bde17f0a9c7ff6666dea
[ "Apache-2.0" ]
null
null
null
networkx-d3-v2/networkx/tests/__init__.py
suraj-testing2/Clock_Websites
0e65331da40cfd3766f1bde17f0a9c7ff6666dea
[ "Apache-2.0" ]
null
null
null
from .utils_tests import * from .views_tests import *
18
26
0.777778
ce1581e90ef98f01e93c9852612c4c137d683a10
7,851
py
Python
ros/src/waypoint_updater/waypoint_updater.py
dan-fern/CarND-Capstone-P9
004853c7a14dfd5e99563c4082e7609885b4f6b2
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
dan-fern/CarND-Capstone-P9
004853c7a14dfd5e99563c4082e7609885b4f6b2
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
dan-fern/CarND-Capstone-P9
004853c7a14dfd5e99563c4082e7609885b4f6b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy as rp import numpy as np import math as math from geometry_msgs.msg import PoseStamped, TwistStamped from styx_msgs.msg import Lane, Waypoint from scipy.spatial import KDTree from std_msgs.msg import Int32 ''' This node will publish waypoints from the car's current position to some...
31.154762
98
0.610495
ce1627eb06d19834ba84ea0cd7b1055080fe6187
595
py
Python
oandapy/exceptions.py
extreme4all/oandapy
48dcfbe154316a83ca6e62e6b939062165cabc3e
[ "MIT" ]
null
null
null
oandapy/exceptions.py
extreme4all/oandapy
48dcfbe154316a83ca6e62e6b939062165cabc3e
[ "MIT" ]
null
null
null
oandapy/exceptions.py
extreme4all/oandapy
48dcfbe154316a83ca6e62e6b939062165cabc3e
[ "MIT" ]
null
null
null
"""Exceptions."""
29.75
103
0.67563
ce1666960c0a0228d2a06407d11294362e8b8691
4,444
py
Python
synthesis/reverse_map/reverse_map_ast.py
jajajaqlt/nsg
1873f2b5e10441110c3c69940ceb4650f9684ac0
[ "Apache-2.0" ]
10
2021-11-02T18:30:38.000Z
2022-03-21T06:31:33.000Z
synthesis/reverse_map/reverse_map_ast.py
rohanmukh/nag
f2c4b8e60a97c58a6a1c549cc8b4753ebfe8a5e3
[ "Apache-2.0" ]
2
2021-11-05T18:40:42.000Z
2022-03-30T04:33:08.000Z
synthesis/reverse_map/reverse_map_ast.py
rohanmukh/nag
f2c4b8e60a97c58a6a1c549cc8b4753ebfe8a5e3
[ "Apache-2.0" ]
2
2021-11-03T19:14:06.000Z
2021-11-03T23:47:09.000Z
# Copyright 2017 Rice University # # 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 writin...
36.727273
120
0.599685
ce17307a9a0665319fcd15ea71bb54693784de3c
135
py
Python
ch10/myproject_virtualenv/src/django-myproject/myproject/settings/production.py
PacktPublishing/Django-3-Web-Development-Cookbook
6ffe6e0add93a43a9abaff62e0147dc1f4f5351a
[ "MIT" ]
159
2019-11-13T14:11:39.000Z
2022-03-24T05:47:10.000Z
ch10/myproject_virtualenv/src/django-myproject/myproject/settings/production.py
PacktPublishing/Django-3-Web-Development-Cookbook
6ffe6e0add93a43a9abaff62e0147dc1f4f5351a
[ "MIT" ]
34
2019-11-06T08:32:48.000Z
2022-01-14T11:31:29.000Z
ch10/myproject_virtualenv/src/django-myproject/myproject/settings/production.py
PacktPublishing/Django-3-Web-Development-Cookbook
6ffe6e0add93a43a9abaff62e0147dc1f4f5351a
[ "MIT" ]
103
2019-08-15T21:35:26.000Z
2022-03-20T05:29:11.000Z
from ._base import * DEBUG = False WEBSITE_URL = "https://example.com" # without trailing slash MEDIA_URL = f"{WEBSITE_URL}/media/"
19.285714
61
0.718519
ce1739ffa8890ca468f44112dbe677b551c2a05c
1,657
py
Python
v2/gui.py
appills/pyascii
525411327ecb8835e14f8f84b3ac19f059dbd0bc
[ "MIT" ]
null
null
null
v2/gui.py
appills/pyascii
525411327ecb8835e14f8f84b3ac19f059dbd0bc
[ "MIT" ]
null
null
null
v2/gui.py
appills/pyascii
525411327ecb8835e14f8f84b3ac19f059dbd0bc
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import filedialog from pyascii import main root=Tk() root.wm_title("Pyascii") app = App(root) root.mainloop()
30.127273
108
0.677127
ce1986e97c39f7b0d9070c20a8cf44a57d43a5a3
13,093
py
Python
tests/integration_tests/test_solution/test_solution_interior.py
cwentland0/perform
e08771cb776a7e6518c43350746e2ca72f79b153
[ "MIT" ]
6
2021-03-24T21:42:06.000Z
2022-01-28T20:00:13.000Z
tests/integration_tests/test_solution/test_solution_interior.py
cwentland0/perform
e08771cb776a7e6518c43350746e2ca72f79b153
[ "MIT" ]
38
2021-04-15T15:30:21.000Z
2022-01-29T01:23:57.000Z
tests/integration_tests/test_solution/test_solution_interior.py
cwentland0/perform
e08771cb776a7e6518c43350746e2ca72f79b153
[ "MIT" ]
1
2021-07-03T03:13:36.000Z
2021-07-03T03:13:36.000Z
import unittest import os import numpy as np from constants import ( del_test_dir, gen_test_dir, get_output_mode, solution_domain_setup, CHEM_DICT_REACT, SOL_PRIM_IN_REACT, TEST_DIR, ) from perform.constants import REAL_TYPE from perform.system_solver import SystemSolver from perform.input...
39.796353
120
0.612465
ce1a18c48b194d0b3451c941f83d9e8945a1714d
4,139
py
Python
tests/system/post_cars_positive_test.py
ikostan/REST_API_AUTOMATION
cdb4d30fbc7457b2a403b4dad6fe1efa2e754681
[ "Unlicense" ]
8
2020-03-17T09:15:28.000Z
2022-01-29T19:50:45.000Z
tests/system/post_cars_positive_test.py
ikostan/REST_API_AUTOMATION
cdb4d30fbc7457b2a403b4dad6fe1efa2e754681
[ "Unlicense" ]
1
2021-06-02T00:26:58.000Z
2021-06-02T00:26:58.000Z
tests/system/post_cars_positive_test.py
ikostan/REST_API_AUTOMATION
cdb4d30fbc7457b2a403b4dad6fe1efa2e754681
[ "Unlicense" ]
1
2021-11-22T16:10:27.000Z
2021-11-22T16:10:27.000Z
#!/path/to/interpreter """ Flask App REST API testing: POST """ # Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ import allure import requests from tests.system.base_test import BaseTestCase from api.cars_app import USER_LIST
31.59542
64
0.490457
ce1a3fb80b6bbd849c64cd660cd72979f447cba6
1,165
py
Python
bin/h5zero.py
ickc/dautil-py
9cdd87080ec85774d7386e3cd2f55c2bc6b6aadd
[ "BSD-3-Clause" ]
null
null
null
bin/h5zero.py
ickc/dautil-py
9cdd87080ec85774d7386e3cd2f55c2bc6b6aadd
[ "BSD-3-Clause" ]
null
null
null
bin/h5zero.py
ickc/dautil-py
9cdd87080ec85774d7386e3cd2f55c2bc6b6aadd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python '''Assert HDF5 input is non-zero. Print to stderr if not. For example, find . -iname '*.hdf5' -exec h5zero.py {} + ''' from __future__ import print_function import argparse import sys import h5py from dautil.IO.h5 import h5assert_nonzero __version__ = '0.1' if __name__ == "__main__": ...
23.3
82
0.612017
ce1a78c4b8b64234867f3d62b124351c7a4de964
195
py
Python
cla_backend/apps/core/validators.py
uk-gov-mirror/ministryofjustice.cla_backend
4d524c10e7bd31f085d9c5f7bf6e08a6bb39c0a6
[ "MIT" ]
3
2019-10-02T15:31:03.000Z
2022-01-13T10:15:53.000Z
cla_backend/apps/core/validators.py
uk-gov-mirror/ministryofjustice.cla_backend
4d524c10e7bd31f085d9c5f7bf6e08a6bb39c0a6
[ "MIT" ]
206
2015-01-02T16:50:11.000Z
2022-02-16T20:16:05.000Z
cla_backend/apps/core/validators.py
uk-gov-mirror/ministryofjustice.cla_backend
4d524c10e7bd31f085d9c5f7bf6e08a6bb39c0a6
[ "MIT" ]
6
2015-03-23T23:08:42.000Z
2022-02-15T17:04:44.000Z
from django.core.exceptions import ValidationError
27.857143
82
0.733333
ce1ae0dcedfa059f4a8bffab465b0fca2f146769
51
py
Python
app/_version.py
sunhailin-Leo/myMacAssistant
30ba955a4f91a800197cbfdc2ab5d3a5cd993eef
[ "MIT" ]
63
2020-11-02T00:58:49.000Z
2022-03-20T21:39:02.000Z
fastapi_profiler/_version.py
sunhailin-Leo/fastapi_profiler
b414af6f0b2d92e7b509b6b3e54cde13ec5795e2
[ "MIT" ]
10
2021-02-23T11:00:39.000Z
2022-02-07T02:44:05.000Z
app/_version.py
sunhailin-Leo/myMacAssistant
30ba955a4f91a800197cbfdc2ab5d3a5cd993eef
[ "MIT" ]
7
2020-11-24T08:34:46.000Z
2022-01-10T12:58:51.000Z
__version__ = "1.0.0" __author__ = "sunhailin-Leo"
17
28
0.705882
ce1e707dde07e49cd3190510d21820c11fc3a580
1,525
py
Python
Week6/GFG(Day8-14)/Day14/Day14 - Solution.py
ShreyaPanale/100DaysOfCode
de7832d97fca36f783812868b867676b6f77c7b3
[ "MIT" ]
22
2021-05-25T16:01:31.000Z
2021-06-07T06:32:27.000Z
Week6/GFG(Day8-14)/Day14/Day14 - Solution.py
shreya-panale/100DaysOfCode
de7832d97fca36f783812868b867676b6f77c7b3
[ "MIT" ]
null
null
null
Week6/GFG(Day8-14)/Day14/Day14 - Solution.py
shreya-panale/100DaysOfCode
de7832d97fca36f783812868b867676b6f77c7b3
[ "MIT" ]
null
null
null
#User function Template for python3 #{ # Driver Code Starts #Initial Template for Python 3 import atexit import io import sys _INPUT_LINES = sys.stdin.read().splitlines() input = iter(_INPUT_LINES).__next__ _OUTPUT_BUFFER = io.StringIO() sys.stdout = _OUTPUT_BUFFER if __name__ == '__main__': test_cases = int(in...
28.773585
117
0.593443
ce1e9aca26ecdef56f6ff4c3c6d9a23230b8bd4f
2,768
py
Python
test/tests.py
jasedit/papers_base
af8aa6e9a164861ad7b44471ce543002fa7129d9
[ "MIT" ]
8
2016-08-17T14:40:49.000Z
2020-03-05T00:08:07.000Z
test/tests.py
jasedit/scriptorium
af8aa6e9a164861ad7b44471ce543002fa7129d9
[ "MIT" ]
35
2016-08-07T19:58:02.000Z
2021-05-09T10:08:06.000Z
test/tests.py
jasedit/scriptorium
af8aa6e9a164861ad7b44471ce543002fa7129d9
[ "MIT" ]
2
2017-09-21T17:57:46.000Z
2019-06-30T13:06:21.000Z
#!python # -*- coding: utf-8 -*- """Unit testing for scriptorium""" import os import tempfile import shutil import textwrap import unittest import scriptorium def testCreation(self): """Test simple paper creation.""" example_config = { 'author': 'John Doe', 'title': 'Example Report' ...
31.816092
101
0.688223
ce1f98db217162180757b8a6044a17804f866924
4,794
py
Python
imblearn/combine/tests/test_smote_enn.py
themrzmaster/imbalanced-learn
e1be8695b22ca58aa5443057b9ae3f2885a45d60
[ "MIT" ]
2
2019-09-14T23:23:35.000Z
2019-09-16T18:17:19.000Z
imblearn/combine/tests/test_smote_enn.py
themrzmaster/imbalanced-learn
e1be8695b22ca58aa5443057b9ae3f2885a45d60
[ "MIT" ]
null
null
null
imblearn/combine/tests/test_smote_enn.py
themrzmaster/imbalanced-learn
e1be8695b22ca58aa5443057b9ae3f2885a45d60
[ "MIT" ]
1
2021-04-23T04:46:10.000Z
2021-04-23T04:46:10.000Z
"""Test the module SMOTE ENN.""" # Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com> # Christos Aridas # License: MIT import pytest import numpy as np from sklearn.utils.testing import assert_allclose, assert_array_equal from imblearn.combine import SMOTEENN from imblearn.under_sampling import EditedNear...
38.047619
79
0.635378
ce21a48448d28f3cf598b5cbc7c2ecedcc9ebfb2
46,925
py
Python
tests/unittests/test_mock_network_plugin_public_nat.py
cloudify-cosmo/tosca-vcloud-plugin
c5196abd066ba5315b66911e5390b0ed6c15988f
[ "Apache-2.0" ]
4
2015-02-25T12:39:01.000Z
2018-02-14T15:14:16.000Z
tests/unittests/test_mock_network_plugin_public_nat.py
cloudify-cosmo/tosca-vcloud-plugin
c5196abd066ba5315b66911e5390b0ed6c15988f
[ "Apache-2.0" ]
45
2015-01-13T13:55:10.000Z
2020-02-04T15:06:15.000Z
tests/unittests/test_mock_network_plugin_public_nat.py
cloudify-cosmo/tosca-vcloud-plugin
c5196abd066ba5315b66911e5390b0ed6c15988f
[ "Apache-2.0" ]
21
2015-01-21T17:17:18.000Z
2021-05-05T14:08:25.000Z
# Copyright (c) 2014-2020 Cloudify Platform Ltd. 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 b...
36.919748
79
0.542248
ce21d57f1cc21cb2e5990bffc69d3403f42d2835
519
py
Python
Taller_estruturas_de_control_secuenciales/Python_yere/Ejercicio_17.py
Matieljimenez/Algoritmos_y_programacion
cdc381478581e6842c6672d4840dd948833c4ec7
[ "MIT" ]
null
null
null
Taller_estruturas_de_control_secuenciales/Python_yere/Ejercicio_17.py
Matieljimenez/Algoritmos_y_programacion
cdc381478581e6842c6672d4840dd948833c4ec7
[ "MIT" ]
null
null
null
Taller_estruturas_de_control_secuenciales/Python_yere/Ejercicio_17.py
Matieljimenez/Algoritmos_y_programacion
cdc381478581e6842c6672d4840dd948833c4ec7
[ "MIT" ]
null
null
null
""" Entradas monto de dinero presupuestal-->float-->a Salidas dinero correspondiente para ginecologia-->float-->b dinero correspondiente para traumatologia-->float-->c dinero correspondiente para pediatria-->float-->d """ a=float(input("Presupuesto anual al Hospital rural ")) b=a*0.40 c=a*0.30 d=a*0.30 print("El presup...
34.6
73
0.759152
ce2288a47d9c672cc8785e5719f15a00192e23e2
5,926
py
Python
tools/generate_things/generate_navigation.py
akalenuk/wordsandbuttons
c8ad9e8668fc49f4c39ae3b510e36a5a52ec3c91
[ "Unlicense" ]
367
2018-01-29T17:45:00.000Z
2022-03-08T03:50:52.000Z
tools/generate_things/generate_navigation.py
akalenuk/wordsandbuttons
c8ad9e8668fc49f4c39ae3b510e36a5a52ec3c91
[ "Unlicense" ]
9
2017-12-21T16:48:08.000Z
2021-01-23T17:20:20.000Z
tools/generate_things/generate_navigation.py
akalenuk/wordsandbuttons
c8ad9e8668fc49f4c39ae3b510e36a5a52ec3c91
[ "Unlicense" ]
20
2018-02-18T11:52:36.000Z
2021-11-22T09:46:53.000Z
import os import subprocess PAGES_DIR = "../../pages" keyword_note = { 'tutorials': '', 'demos': '', 'quizzes': '', 'mathematics': '', 'algorithms': '', 'programming': 'By the way, if you prefer books to blogs, <a href="https://wordsandbuttons.online/SYTYKC.pdf">there is a free book</a> that was originally made from ...
35.48503
179
0.602599
ce25004f312bc46b4d6a3d278373562bc87e4202
316
py
Python
apps/listings/migrations/0002_remove_post_author.py
favours-io/favours
6f26a207d2684e752857aa21e5fafa607a4707e6
[ "MIT" ]
11
2020-07-23T19:07:32.000Z
2021-11-18T17:16:29.000Z
apps/listings/migrations/0002_remove_post_author.py
favours-io/favours
6f26a207d2684e752857aa21e5fafa607a4707e6
[ "MIT" ]
16
2020-08-29T01:57:05.000Z
2022-01-13T03:16:41.000Z
apps/listings/migrations/0002_remove_post_author.py
favours-io/favours
6f26a207d2684e752857aa21e5fafa607a4707e6
[ "MIT" ]
4
2020-09-18T18:40:12.000Z
2021-11-09T06:36:36.000Z
# Generated by Django 3.0.7 on 2020-09-22 05:14 from django.db import migrations
17.555556
47
0.575949
ce2713a447d11afd7d04a70a5793ef6b8c8b2009
303
py
Python
venv/Lib/site-packages/bootstrap4/widgets.py
HRangelov/gallery
3ccf712ef2e1765a6dfd6567d58e6678e0b2ff6f
[ "MIT" ]
3
2021-02-02T11:13:15.000Z
2021-02-10T07:26:10.000Z
venv/Lib/site-packages/bootstrap4/widgets.py
HRangelov/gallery
3ccf712ef2e1765a6dfd6567d58e6678e0b2ff6f
[ "MIT" ]
3
2021-03-30T14:15:20.000Z
2021-09-22T19:31:57.000Z
cypher_venv/Lib/site-packages/bootstrap4/widgets.py
FrancisLangit/cypher
4921e2f53ef8154ad63ff4de7f8068b27f29f485
[ "MIT" ]
null
null
null
from django.forms import RadioSelect
25.25
99
0.762376
ce2810e264659103f1cf2c4c793eb498a673a023
2,990
py
Python
workflower/services/workflow/loader.py
dmenezesgabriel/workflower
db2358abdd2d133b85baea726e013e71171e5cf3
[ "MIT" ]
null
null
null
workflower/services/workflow/loader.py
dmenezesgabriel/workflower
db2358abdd2d133b85baea726e013e71171e5cf3
[ "MIT" ]
null
null
null
workflower/services/workflow/loader.py
dmenezesgabriel/workflower
db2358abdd2d133b85baea726e013e71171e5cf3
[ "MIT" ]
null
null
null
import logging import os import traceback from typing import List from workflower.adapters.sqlalchemy.setup import Session from workflower.adapters.sqlalchemy.unit_of_work import SqlAlchemyUnitOfWork from workflower.application.event.commands import CreateEventCommand from workflower.application.workflow.commands impo...
32.5
79
0.596321
ce281d8807b114456a5700d5486fb898099afb81
2,492
py
Python
setup.py
neuroticnerd/dragoncon-bot
44c4d96743cf11ea0e8eaa567100e42afa4de565
[ "Apache-2.0" ]
2
2015-12-18T05:28:02.000Z
2018-05-24T04:18:26.000Z
setup.py
neuroticnerd/dragoncon-bot
44c4d96743cf11ea0e8eaa567100e42afa4de565
[ "Apache-2.0" ]
11
2016-08-27T22:05:18.000Z
2021-12-13T19:41:44.000Z
setup.py
neuroticnerd/dragoncon-bot
44c4d96743cf11ea0e8eaa567100e42afa4de565
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import absolute_import, unicode_literals import io import os import re from setuptools import find_packages, setup here = os.path.abspath(os.path.dirname(__file__)) PROJECT_MODULE = 'dragonite' PROJECT = 'dragonite' AUTHOR = 'Bryce Eggleton' EMAIL = '...
28
75
0.617978
ce282a6ed0fc710a4b6a368e5d2307c23cfaf901
3,427
py
Python
backend/api.py
RuiL1904/Hackathon
94eed04b2fa3fb48b3479045a0b279b0217744fb
[ "MIT" ]
5
2022-02-20T12:59:19.000Z
2022-02-20T17:30:49.000Z
backend/api.py
RuiL1904/Hackathon
94eed04b2fa3fb48b3479045a0b279b0217744fb
[ "MIT" ]
null
null
null
backend/api.py
RuiL1904/Hackathon
94eed04b2fa3fb48b3479045a0b279b0217744fb
[ "MIT" ]
1
2022-03-08T20:21:03.000Z
2022-03-08T20:21:03.000Z
import random import database from fastapi import FastAPI, Request from fastapi.middleware.cors import CORSMiddleware import uvicorn # Instantiate FastAPI app = FastAPI() # Whitelist origins app.add_middleware( CORSMiddleware, allow_origins = ["*"], allow_credentials = True, allow_methods = ["*"], ...
26.160305
121
0.569594
ce282fdf98dc253cf62921347890761e924022a6
1,211
py
Python
lfs/portlet/models/pages.py
zhammami/django-lfs
b921295e71fe827377a67b5e7ae1a8bf7f72a1e6
[ "BSD-3-Clause" ]
null
null
null
lfs/portlet/models/pages.py
zhammami/django-lfs
b921295e71fe827377a67b5e7ae1a8bf7f72a1e6
[ "BSD-3-Clause" ]
null
null
null
lfs/portlet/models/pages.py
zhammami/django-lfs
b921295e71fe827377a67b5e7ae1a8bf7f72a1e6
[ "BSD-3-Clause" ]
null
null
null
# django imports from django import forms from django.conf import settings from django.core.cache import cache from django.template.loader import render_to_string # portlets imports from portlets.models import Portlet # lfs imports from lfs.page.models import Page
24.714286
85
0.641618
ce2b25ff23e864e881234a2380df580d2b3d114d
829
py
Python
feed/models.py
kassupto007/photo-sharing-app
97ed237815134fd3d53431be348a050c505db499
[ "Apache-2.0" ]
null
null
null
feed/models.py
kassupto007/photo-sharing-app
97ed237815134fd3d53431be348a050c505db499
[ "Apache-2.0" ]
null
null
null
feed/models.py
kassupto007/photo-sharing-app
97ed237815134fd3d53431be348a050c505db499
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.db import models from django.utils import timezone from users.models import Profile
37.681818
106
0.77684
ce2ba9ff2aa3d5ef4daa942e79661e4a012dddf3
2,168
py
Python
zampol/osoba/admin.py
VadymRud/zampolit
80bbd5dc197041c3595831a8d0ddae130e10418c
[ "Apache-2.0" ]
null
null
null
zampol/osoba/admin.py
VadymRud/zampolit
80bbd5dc197041c3595831a8d0ddae130e10418c
[ "Apache-2.0" ]
null
null
null
zampol/osoba/admin.py
VadymRud/zampolit
80bbd5dc197041c3595831a8d0ddae130e10418c
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from django.db import models from django.utils.translation import gettext as _ from .models import (MilitaryRank, Platoon, ServiseID, Unit, OfficialPosition, Company, Education, Creed, Nationality, Command) from osoba.widgets import CustomDatePickerInput admin.si...
31.882353
95
0.571494
ce2c3b1def15247a90a747a7d6db93245d2f364a
725
py
Python
python/src/problem/leetcode/easy/leetcode_189.py
yipwinghong/Algorithm
e594df043c9d965dbfbd958554e88c533c844a45
[ "MIT" ]
9
2019-10-31T16:58:31.000Z
2022-02-08T08:42:30.000Z
python/src/problem/leetcode/easy/leetcode_189.py
yipwinghong/Algorithm
e594df043c9d965dbfbd958554e88c533c844a45
[ "MIT" ]
null
null
null
python/src/problem/leetcode/easy/leetcode_189.py
yipwinghong/Algorithm
e594df043c9d965dbfbd958554e88c533c844a45
[ "MIT" ]
null
null
null
# coding=utf-8 from typing import List
18.589744
63
0.411034
ce2e1eeb2d14e83f19c6e30702d48f326de87b43
931
py
Python
brainmix_register/display/display.py
ThunderShiviah/brainmix-register
fd42445ed2649ae8bdbb3c3e653adc4465190052
[ "MIT", "Unlicense" ]
4
2015-07-10T01:13:43.000Z
2018-07-08T09:05:05.000Z
brainmix_register/display/display.py
ThunderShiviah/brainmix-register
fd42445ed2649ae8bdbb3c3e653adc4465190052
[ "MIT", "Unlicense" ]
3
2015-04-08T17:51:36.000Z
2015-06-01T04:19:33.000Z
brainmix_register/display/display.py
ThunderShiviah/brainmix_register
fd42445ed2649ae8bdbb3c3e653adc4465190052
[ "MIT", "Unlicense" ]
null
null
null
import sys, os, glob from skimage import io from skimage import viewer import registration as reg from skimage import data if __name__ == "__main__": # ------------------Create input ndarray------------------------ inputDir = '../data/test/' imageFiles = glob.glob(os.path.join(inputDir, '*.jpg')) imag...
25.861111
76
0.61869
ce30447567aca3b3740596e2dcf70ae66968d0b3
1,605
py
Python
lib/datasets/LFW2G.py
blacknwhite5/facial-anonymizer
48878f0b704cc9203b6e13b962f0b53cecae78c6
[ "MIT" ]
10
2019-04-18T03:30:55.000Z
2021-04-03T22:51:50.000Z
lib/datasets/LFW2G.py
blacknwhite5/facial-anonymizer
48878f0b704cc9203b6e13b962f0b53cecae78c6
[ "MIT" ]
3
2020-05-28T15:04:05.000Z
2020-12-16T10:31:42.000Z
lib/datasets/LFW2G.py
blacknwhite5/facial-anonymizer
48878f0b704cc9203b6e13b962f0b53cecae78c6
[ "MIT" ]
6
2019-04-15T11:16:02.000Z
2021-09-08T03:16:49.000Z
import numpy as np import torch import torch.utils.data as data from PIL import Image, ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True import os, random, glob, cv2 if __name__ == "__main__": main()
32.1
91
0.63053
ce307dac43c76b9afca0ff0e962a64169f480199
4,536
py
Python
questions.py
lasyasreepada/iplaw-for-digital-teens
a1ac53f7b3438876db644450413f78ec8d612bac
[ "MIT" ]
null
null
null
questions.py
lasyasreepada/iplaw-for-digital-teens
a1ac53f7b3438876db644450413f78ec8d612bac
[ "MIT" ]
null
null
null
questions.py
lasyasreepada/iplaw-for-digital-teens
a1ac53f7b3438876db644450413f78ec8d612bac
[ "MIT" ]
null
null
null
"""Set of questions for the IP Law quiz questions.py Lasya Sreepada Yale College '19 May 6, 2017 """ from random import shuffle import time quiz()
49.846154
334
0.665785
ce313caa11cce1219bbc0ca784238958335d4a0b
529
py
Python
Python/leetcode/Triangle.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
2
2015-12-02T06:44:01.000Z
2016-05-04T21:40:54.000Z
Python/leetcode/Triangle.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
Python/leetcode/Triangle.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
''' Created on 1.12.2016 @author: Darren '''''' Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2], [3,4], [6,5,7], [4,1,8,3] ] The minimum path...
18.892857
126
0.587902
ce31a76d07584d9441c2b8024946e9ee56bc2a7f
8,286
py
Python
regulations/tests/layers_toc_applier_tests.py
contolini/regulations-site
c31a9ce3097910877657f61b4c19a4ccbd0f967f
[ "CC0-1.0" ]
18
2015-01-14T15:58:45.000Z
2019-08-17T06:15:59.000Z
regulations/tests/layers_toc_applier_tests.py
contolini/regulations-site
c31a9ce3097910877657f61b4c19a4ccbd0f967f
[ "CC0-1.0" ]
142
2015-01-08T15:28:50.000Z
2018-07-16T16:48:07.000Z
regulations/tests/layers_toc_applier_tests.py
contolini/regulations-site
c31a9ce3097910877657f61b4c19a4ccbd0f967f
[ "CC0-1.0" ]
45
2015-01-26T16:24:46.000Z
2021-02-20T10:50:59.000Z
from unittest import TestCase from regulations.generator.layers.toc_applier import *
40.223301
79
0.506758
ce33d42b39da049e5244eeed1b27927c33f5fb8c
1,929
py
Python
array_range.py
fasiha/array-range-slices-py
940bfd1879a7e041b59349f6d9cbc2d79dacb891
[ "Unlicense" ]
1
2021-02-03T14:01:56.000Z
2021-02-03T14:01:56.000Z
array_range.py
fasiha/array-range-slices-py
940bfd1879a7e041b59349f6d9cbc2d79dacb891
[ "Unlicense" ]
null
null
null
array_range.py
fasiha/array-range-slices-py
940bfd1879a7e041b59349f6d9cbc2d79dacb891
[ "Unlicense" ]
null
null
null
""" Numpy's `split` can split a multidimensional array into non-overlapping sub-arrays. However, this is not a memory-efficient way of dealing with non-overlapping partitions of an array because it effectively doubles memory usage. This module provides an iterable generator that produces tuples of slices, each of whic...
41.042553
87
0.729912
ce34ebaf15612703873e6a27020070246ab042d8
7,197
py
Python
test-framework/test-suites/integration/tests/add/test_add_host_bonded.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
123
2015-05-12T23:36:45.000Z
2017-07-05T23:26:57.000Z
test-framework/test-suites/integration/tests/add/test_add_host_bonded.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
177
2015-06-05T19:17:47.000Z
2017-07-07T17:57:24.000Z
test-framework/test-suites/integration/tests/add/test_add_host_bonded.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
32
2015-06-07T02:25:03.000Z
2017-06-23T07:35:35.000Z
import json from textwrap import dedent import pytest
28.559524
106
0.632208
ce3501af1f45e1223934bba47fc0e9a49f9b32bd
1,669
py
Python
BITs/2014/Kozlov_A_D/task_8_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Kozlov_A_D/task_8_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Kozlov_A_D/task_8_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# 8. 11. #1-50. "" (. . Python. .4) , . , . , , , , . # .. #04.04.2016 import random words = ("","","","","","") word=random.choice(words) correct=word score=10; i=0 jumble="" while word: position=random.randrange(len(word)) jumble+=word[position] word=wor...
37.088889
362
0.656681
ce358cccd6bb9246d24f50b9e468818c256a0701
1,254
py
Python
master/teachkids-master/teachkids-master/ch09/Challenge2_ColorPaint.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/teachkids-master/teachkids-master/ch09/Challenge2_ColorPaint.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/teachkids-master/teachkids-master/ch09/Challenge2_ColorPaint.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
# ColorPaint.py import pygame # setup import random pygame.init() screen = pygame.display.set_mode([800, 600]) pygame.display.set_caption('Click and drag to draw, using up to 3 mouse buttons') keepGoing = True ORANGE = (255,255,0) # RGB color triplets for 3 mousebutton colors GREEN = (0,25...
36.882353
81
0.587719
ce35c483fa1d1e28e070fa3ddb8145549538c79c
14,508
py
Python
eventmanager/events/tests.py
karinakozarova/EventManager
b09fa7a788b4aa11761fc34096cc711304c288c7
[ "MIT" ]
4
2019-01-06T16:58:20.000Z
2019-04-08T10:20:46.000Z
eventmanager/events/tests.py
EventManagerTeam/EventManager
b09fa7a788b4aa11761fc34096cc711304c288c7
[ "MIT" ]
297
2018-11-14T13:59:19.000Z
2022-03-11T23:33:28.000Z
eventmanager/events/tests.py
karinakozarova/EventManager
b09fa7a788b4aa11761fc34096cc711304c288c7
[ "MIT" ]
1
2019-04-22T15:17:32.000Z
2019-04-22T15:17:32.000Z
import datetime import unittest from accounts.models import AccountDetails from categories.models import Category from django.contrib.auth.models import User from django.test import Client from django.test import TestCase from django.urls import reverse from events.models import Comment from events.models import E...
30.543158
79
0.565826
ce35f5d501c181ecbb1339e8615379517cb18794
159
py
Python
billing/tests/views.py
hkhanna/django-stripe-billing
75a53c183ff86b1c7edf741683ffe3330e733d87
[ "MIT" ]
1
2022-03-29T20:16:34.000Z
2022-03-29T20:16:34.000Z
billing/tests/views.py
hkhanna/django-stripe-billing
75a53c183ff86b1c7edf741683ffe3330e733d87
[ "MIT" ]
2
2022-02-21T17:38:22.000Z
2022-02-22T20:56:39.000Z
billing/tests/views.py
hkhanna/django-stripe-billing
75a53c183ff86b1c7edf741683ffe3330e733d87
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView from .. import mixins
22.714286
53
0.792453
ce36dcd7976f6556078f7dfa2fbd33e0565d593e
4,225
py
Python
core/model/meta/mtl.py
Aamer98/LibFewShot_NoAffine
1203d2a9f5cb4705038748dbda03a4b7c37bf647
[ "MIT" ]
1
2021-11-07T03:34:41.000Z
2021-11-07T03:34:41.000Z
core/model/meta/mtl.py
taylor1355/LibFewShot
c53b4ee3772c5c8033fd54aa73586091eee2d0b0
[ "MIT" ]
null
null
null
core/model/meta/mtl.py
taylor1355/LibFewShot
c53b4ee3772c5c8033fd54aa73586091eee2d0b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @inproceedings{DBLP:conf/cvpr/SunLCS19, author = {Qianru Sun and Yaoyao Liu and Tat{-}Seng Chua and Bernt Schiele}, title = {Meta-Transfer Learning for Few-Shot Learning}, booktitle = {{IEEE} Conference on Computer Vision and Pattern ...
32.751938
101
0.64568
ce378179f8b40837991f7c71e128ec7eb52c6132
1,023
py
Python
game.py
gustavonaldoni/command-line-hangman
a740a446ce1dfad2100ab7e6ea1db817c6a57a47
[ "MIT" ]
null
null
null
game.py
gustavonaldoni/command-line-hangman
a740a446ce1dfad2100ab7e6ea1db817c6a57a47
[ "MIT" ]
null
null
null
game.py
gustavonaldoni/command-line-hangman
a740a446ce1dfad2100ab7e6ea1db817c6a57a47
[ "MIT" ]
null
null
null
from capture_words import capture_words_from_file import random
21.765957
72
0.691105
ce37b76dcc82f7204803dfa179451058b3f38a92
4,895
py
Python
src/OTLMOW/OTLModel/Classes/DwarseMarkeringVerschuind.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OTLModel/Classes/DwarseMarkeringVerschuind.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OTLModel/Classes/DwarseMarkeringVerschuind.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.DwarseMarkeringToegang import DwarseMarkeringToegang from OTLMOW.OTLModel.Datatypes.KlDwarseMarkeringVerschuindCode import KlDwarseMarkeringVerschuindCode from OTLMOW.OTLModel.Datatypes.KlDwarseMarkeringVerschu...
49.444444
158
0.608784
ce37e19c6bb3e23ffae3d35e78de1e2b5a16ea5f
549
py
Python
backend/reviews/forms.py
ranwise/djangochannel
9c719d292b5c1d0fd008a16a64509a309bdd642e
[ "BSD-3-Clause" ]
45
2019-10-04T10:12:54.000Z
2022-03-29T18:12:34.000Z
backend/reviews/forms.py
ranwise/djangochannel
9c719d292b5c1d0fd008a16a64509a309bdd642e
[ "BSD-3-Clause" ]
6
2019-10-09T07:37:14.000Z
2022-01-27T16:41:16.000Z
backend/reviews/forms.py
ranwise/djangochannel
9c719d292b5c1d0fd008a16a64509a309bdd642e
[ "BSD-3-Clause" ]
35
2019-10-04T10:18:48.000Z
2022-01-14T22:40:38.000Z
from django import forms from .models import Review
26.142857
74
0.495446