hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
f745348e311db7efabcf402b1200309358b00068
1,602
py
Python
vows/max_bytes_filter_vows.py
kilinger/thumbor
d9445d896013412f2ce7993267f4974cf73d613c
[ "MIT" ]
2
2017-08-10T18:37:42.000Z
2017-12-13T20:38:11.000Z
vows/max_bytes_filter_vows.py
kilinger/thumbor
d9445d896013412f2ce7993267f4974cf73d613c
[ "MIT" ]
2
2015-07-23T07:42:30.000Z
2020-10-02T11:07:13.000Z
vows/max_bytes_filter_vows.py
kilinger/thumbor
d9445d896013412f2ce7993267f4974cf73d613c
[ "MIT" ]
1
2015-08-10T13:17:05.000Z
2015-08-10T13:17:05.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/globocom/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com timehome@corp.globo.com from os.path import abspath, join, dirname from pyvows import Vows,...
31.411765
91
0.709738
from os.path import abspath, join, dirname from pyvows import Vows, expect from tornado_pyvows.context import TornadoHTTPContext from thumbor.app import ThumborServiceApp from thumbor.context import Context, ServerParameters from thumbor.config import Config from thumbor.importer import Importer storage_p...
true
true
f74534a858022cc853b9455bbb927e6fe4142c4f
328
py
Python
02 Algorithms/Lecture 4/pay_ladder.py
ksetdekov/HSE_DS
619d5b84f9d9e97b58ca1f12c5914ec65456c2c8
[ "MIT" ]
1
2020-09-26T18:48:11.000Z
2020-09-26T18:48:11.000Z
02 Algorithms/Lecture 4/pay_ladder.py
ksetdekov/HSE_DS
619d5b84f9d9e97b58ca1f12c5914ec65456c2c8
[ "MIT" ]
null
null
null
02 Algorithms/Lecture 4/pay_ladder.py
ksetdekov/HSE_DS
619d5b84f9d9e97b58ca1f12c5914ec65456c2c8
[ "MIT" ]
null
null
null
N = int(input()) stairs = list(map(int, input().split())) def pay_stair(prices, counts): step_back = 0 two_steps_back = 0 for i in range(counts): costs = min(step_back, two_steps_back) + prices[i] two_steps_back = step_back step_back = costs return costs print(pay_stair(stai...
19.294118
58
0.634146
N = int(input()) stairs = list(map(int, input().split())) def pay_stair(prices, counts): step_back = 0 two_steps_back = 0 for i in range(counts): costs = min(step_back, two_steps_back) + prices[i] two_steps_back = step_back step_back = costs return costs print(pay_stair(stai...
true
true
f74534c0fa00872764169f572c1848ee02291c73
5,822
py
Python
oneflow/python/eager/boxing_middle.py
xxg1413/oneflow
f2e3c85a25b8aecfb6c0c0af1737833b1a77e135
[ "Apache-2.0" ]
1
2020-12-04T03:06:16.000Z
2020-12-04T03:06:16.000Z
oneflow/python/eager/boxing_middle.py
xxg1413/oneflow
f2e3c85a25b8aecfb6c0c0af1737833b1a77e135
[ "Apache-2.0" ]
null
null
null
oneflow/python/eager/boxing_middle.py
xxg1413/oneflow
f2e3c85a25b8aecfb6c0c0af1737833b1a77e135
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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 applicable law or agr...
34.862275
87
0.762453
from __future__ import absolute_import import oneflow.python.framework.op_arg_util as op_arg_util import oneflow.core.job.placement_pb2 as placement_pb import oneflow.python.eager.symbol as symbol_util import oneflow.core.job.sbp_parallel_pb2 as sbp_parallel_pb import random class BoxingToMiddle(object): def __i...
true
true
f74534c7349ecec2ec37d16107b8a892e46b7c92
1,451
py
Python
classes/hardware.py
ykiveish/nrf_smhome
892f0d1ddff023c69c67ca9350a14af4bb4ef335
[ "Apache-2.0" ]
null
null
null
classes/hardware.py
ykiveish/nrf_smhome
892f0d1ddff023c69c67ca9350a14af4bb4ef335
[ "Apache-2.0" ]
null
null
null
classes/hardware.py
ykiveish/nrf_smhome
892f0d1ddff023c69c67ca9350a14af4bb4ef335
[ "Apache-2.0" ]
null
null
null
from core import co_definitions from mks import mks_uart_connector class HardwareLayer(co_definitions.ILayer): def __init__(self): co_definitions.ILayer.__init__(self) self.HW = mks_uart_connector.Connector() self.Locker = None self.AsyncListeners = [] self.HW.AdaptorDisconnectedEvent = self.AdaptorDis...
26.87037
70
0.7643
from core import co_definitions from mks import mks_uart_connector class HardwareLayer(co_definitions.ILayer): def __init__(self): co_definitions.ILayer.__init__(self) self.HW = mks_uart_connector.Connector() self.Locker = None self.AsyncListeners = [] self.HW.AdaptorDisconnectedEvent = self.AdaptorDis...
true
true
f74535770b93da6ff8ba51fd49dd7ba68c0d8bdf
5,376
py
Python
script.module.fantastic/lib/resources/lib/sources/en/afdah.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:38:10.000Z
2019-03-05T09:38:10.000Z
script.module.fantastic/lib/resources/lib/sources/en/afdah.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
script.module.fantastic/lib/resources/lib/sources/en/afdah.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
# NEEDS FIXING # -*- coding: utf-8 -*- ''' fantastic Add-on This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versio...
35.84
137
0.469122
import re, json, urllib, urlparse, base64 from resources.lib.modules import cleantitle from resources.lib.modules import client from resources.lib.modules import directstream from resources.lib.modules import source_utils class source: def __init__(self): self.priority = 1 self.language = ['...
true
true
f74535b5015a17c01032433e3bad0116d4ec96a2
272
py
Python
lumpy-llamas/newsfeed/urls.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
40
2020-08-02T07:38:22.000Z
2021-07-26T01:46:50.000Z
lumpy-llamas/newsfeed/urls.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
134
2020-07-31T12:15:45.000Z
2020-12-13T04:42:19.000Z
lumpy-llamas/newsfeed/urls.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
101
2020-07-31T12:00:47.000Z
2021-11-01T09:06:58.000Z
from django.urls import path from . import views urlpatterns = [ path('new_news', views.get_new_newsfeed, name='get_new_newsfeed'), path('best_news', views.get_best_newsfeed, name='get_best_newsfeed'), ] # , name='get_new_newsfeed' # , name='get_best_newsfeed'
22.666667
73
0.735294
from django.urls import path from . import views urlpatterns = [ path('new_news', views.get_new_newsfeed, name='get_new_newsfeed'), path('best_news', views.get_best_newsfeed, name='get_best_newsfeed'), ]
true
true
f7453787bef757beb9380276f82f11acc1b562fe
8,702
py
Python
official/nlp/modeling/networks/albert_encoder.py
KiryanovKD/models
e17080247e3c9b3301680f61b8f4815c22509e7e
[ "Apache-2.0" ]
82,518
2016-02-05T12:07:23.000Z
2022-03-31T23:09:47.000Z
official/nlp/modeling/networks/albert_encoder.py
KiryanovKD/models
e17080247e3c9b3301680f61b8f4815c22509e7e
[ "Apache-2.0" ]
9,021
2016-03-08T01:02:05.000Z
2022-03-31T08:06:35.000Z
official/nlp/modeling/networks/albert_encoder.py
KiryanovKD/models
e17080247e3c9b3301680f61b8f4815c22509e7e
[ "Apache-2.0" ]
54,341
2016-02-06T17:19:55.000Z
2022-03-31T10:27:44.000Z
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.241706
80
0.703402
import collections import tensorflow as tf from official.modeling import activations from official.nlp.modeling import layers @tf.keras.utils.register_keras_serializable(package='Text') class AlbertEncoder(tf.keras.Model): def __init__(self, vocab_size, embedding_width...
true
true
f74537f73e4af771aabea622938f42f7ec8e0ec7
361
py
Python
robocup_ws/src/Planner/src/stay_in_place_controller.py
OmarJabri7/RoboCupChallenge
f115d4b376887726e1dac5852c818da72b6acf54
[ "MIT" ]
8
2021-02-09T23:15:28.000Z
2021-07-08T20:27:08.000Z
robocup_ws/src/Planner/src/stay_in_place_controller.py
OmarJabri7/RoboCupChallenge
f115d4b376887726e1dac5852c818da72b6acf54
[ "MIT" ]
55
2021-01-28T21:51:59.000Z
2021-04-13T08:30:20.000Z
robocup_ws/src/Planner/src/stay_in_place_controller.py
OmarJabri7/RoboCupChallenge
f115d4b376887726e1dac5852c818da72b6acf54
[ "MIT" ]
1
2021-05-25T19:07:42.000Z
2021-05-25T19:07:42.000Z
from robot_control import Robot from game_interfaces.msg import PlayerCommand class NullController(Robot): def __init__(self): pass def get_action(self, my_pos_efcs, ball_pos_efcs, team_positions_wcs=None, opponents_positions_wcs=None): l_rpm = 0 r_rpm = 0 action = 0 r...
27.769231
108
0.709141
from robot_control import Robot from game_interfaces.msg import PlayerCommand class NullController(Robot): def __init__(self): pass def get_action(self, my_pos_efcs, ball_pos_efcs, team_positions_wcs=None, opponents_positions_wcs=None): l_rpm = 0 r_rpm = 0 action = 0 r...
true
true
f7453891d5c6ee260993878c520dedc713158365
6,493
py
Python
exp/experimenter.py
dataiku-research/paper_ial_2021
f860b6eb2d8471bc23e44d282e50c4deaf0813d9
[ "Apache-2.0" ]
1
2021-09-06T11:06:07.000Z
2021-09-06T11:06:07.000Z
exp/experimenter.py
dataiku-research/paper_ial_2021
f860b6eb2d8471bc23e44d282e50c4deaf0813d9
[ "Apache-2.0" ]
null
null
null
exp/experimenter.py
dataiku-research/paper_ial_2021
f860b6eb2d8471bc23e44d282e50c4deaf0813d9
[ "Apache-2.0" ]
null
null
null
import json from importlib import import_module import pandas as pd from pandas.errors import EmptyDataError import numpy as np import pickle import shutil import time from pathlib import Path from collections import defaultdict class CsvValue: def __init__(self, path): self.path = path try: ...
36.477528
103
0.585092
import json from importlib import import_module import pandas as pd from pandas.errors import EmptyDataError import numpy as np import pickle import shutil import time from pathlib import Path from collections import defaultdict class CsvValue: def __init__(self, path): self.path = path try: ...
true
true
f7453919f18f7651baee6e96ee30c35b8f6fc359
1,638
py
Python
test/manager/test_vmss_manager.py
spaceone-dev/plugin-azure-state-inven-collector
7184ae09b85042737c9db371dacd586d23abde21
[ "Apache-2.0" ]
1
2020-12-04T01:37:15.000Z
2020-12-04T01:37:15.000Z
test/manager/test_vmss_manager.py
spaceone-dev/plugin-azure-state-inven-collector
7184ae09b85042737c9db371dacd586d23abde21
[ "Apache-2.0" ]
null
null
null
test/manager/test_vmss_manager.py
spaceone-dev/plugin-azure-state-inven-collector
7184ae09b85042737c9db371dacd586d23abde21
[ "Apache-2.0" ]
2
2020-12-04T01:37:18.000Z
2020-12-28T02:53:39.000Z
import unittest import time import os from datetime import datetime, timedelta from unittest.mock import patch from spaceone.core.unittest.result import print_data from spaceone.core.unittest.runner import RichTestRunner from spaceone.core import config from spaceone.core.transaction import Transaction from spaceone.co...
32.76
121
0.753358
import unittest import time import os from datetime import datetime, timedelta from unittest.mock import patch from spaceone.core.unittest.result import print_data from spaceone.core.unittest.runner import RichTestRunner from spaceone.core import config from spaceone.core.transaction import Transaction from spaceone.co...
true
true
f7453928cf5add4b5820525c93189ba68063a4b8
264
py
Python
tests/factories/language.py
ahwebd/wagtailtrans
00125e7f5118b9730b3d5181b58f041190dbb908
[ "BSD-3-Clause" ]
null
null
null
tests/factories/language.py
ahwebd/wagtailtrans
00125e7f5118b9730b3d5181b58f041190dbb908
[ "BSD-3-Clause" ]
1
2019-04-02T14:45:04.000Z
2019-04-02T14:45:04.000Z
tests/factories/language.py
ahwebd/wagtailtrans
00125e7f5118b9730b3d5181b58f041190dbb908
[ "BSD-3-Clause" ]
1
2019-09-10T11:33:59.000Z
2019-09-10T11:33:59.000Z
import factory from wagtailtrans import models class LanguageFactory(factory.DjangoModelFactory): code = 'en-gb' position = 0 is_default = True live = True class Meta: model = models.Language django_get_or_create = ['code']
17.6
50
0.670455
import factory from wagtailtrans import models class LanguageFactory(factory.DjangoModelFactory): code = 'en-gb' position = 0 is_default = True live = True class Meta: model = models.Language django_get_or_create = ['code']
true
true
f74539dfd14fc6c2eb832cdf8f1414f78ae66de2
1,405
py
Python
stackstate_checks_dev/tests/tooling/commands/test_create.py
CTAC-unixsupport/stackstate-agent-integrations
9ac167e182e69d035a09bedec9bbceb135e2727b
[ "BSD-3-Clause" ]
2
2020-03-10T13:21:37.000Z
2021-04-01T07:52:16.000Z
stackstate_checks_dev/tests/tooling/commands/test_create.py
DennisLoos/stackstate-agent-integrations
8a8cc1607a8f1b8560e450d15cefa0d8d1227674
[ "BSD-3-Clause" ]
33
2020-02-05T16:18:32.000Z
2022-03-21T14:08:04.000Z
stackstate_checks_dev/tests/tooling/commands/test_create.py
DennisLoos/stackstate-agent-integrations
8a8cc1607a8f1b8560e450d15cefa0d8d1227674
[ "BSD-3-Clause" ]
7
2020-03-10T13:21:39.000Z
2021-03-11T07:16:44.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os import sys from stackstate_checks.dev import EnvVars, run_command from stackstate_checks.dev.utils import chdir, remove_path from stackstate_checks.dev._env import TESTING_PLUGIN, E2E_PREFIX HERE = os....
31.931818
112
0.624199
import os import sys from stackstate_checks.dev import EnvVars, run_command from stackstate_checks.dev.utils import chdir, remove_path from stackstate_checks.dev._env import TESTING_PLUGIN, E2E_PREFIX HERE = os.path.dirname(os.path.abspath(__file__)) CORE_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.p...
true
true
f7453cf645dfd3f68690bf2bbbe49487cdaf20e8
2,247
py
Python
segmentation/eval.py
seo-dev/cvml_project
7c95ce22db6f31dc4624af9417edffde021b5351
[ "MIT" ]
1
2020-08-31T01:56:16.000Z
2020-08-31T01:56:16.000Z
segmentation/eval.py
seo-dev/cvml_project
7c95ce22db6f31dc4624af9417edffde021b5351
[ "MIT" ]
null
null
null
segmentation/eval.py
seo-dev/cvml_project
7c95ce22db6f31dc4624af9417edffde021b5351
[ "MIT" ]
null
null
null
import os from segmentation.cityscape_reader import CityscapesDemoDataset import tensorflow as tf import argparse import numpy as np import cv2 from segmentation.labels import cityscapes_mask_colors from segmentation.model import DeeplabV3 parser = argparse.ArgumentParser(description="Cityscapes") parser.add_argument...
31.208333
79
0.709835
import os from segmentation.cityscape_reader import CityscapesDemoDataset import tensorflow as tf import argparse import numpy as np import cv2 from segmentation.labels import cityscapes_mask_colors from segmentation.model import DeeplabV3 parser = argparse.ArgumentParser(description="Cityscapes") parser.add_argument...
true
true
f7453d47c28c3bc1d9a2ea556a6e1406eea493e2
18,633
py
Python
federated-0.4.0/tensorflow_federated/python/core/impl/computation_wrapper.py
abogdanova/FedMed
72f238c31b6714c664e1b0e40204f9528f764182
[ "MIT" ]
5
2019-07-23T14:49:46.000Z
2022-03-30T13:54:22.000Z
federated-0.4.0/tensorflow_federated/python/core/impl/computation_wrapper.py
abogdanova/FedMed
72f238c31b6714c664e1b0e40204f9528f764182
[ "MIT" ]
null
null
null
federated-0.4.0/tensorflow_federated/python/core/impl/computation_wrapper.py
abogdanova/FedMed
72f238c31b6714c664e1b0e40204f9528f764182
[ "MIT" ]
null
null
null
# Lint as: python3 # Copyright 2018, The TensorFlow Federated 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 ...
45.446341
80
0.714056
from __future__ import absolute_import from __future__ import division from __future__ import print_function import types from tensorflow_federated.python.common_libs import py_typecheck from tensorflow_federated.python.core.api import computation_types from tensorflow_federated.python.core.impl import...
true
true
f7453de2f0c1ccbd66aa0632447cd7bd177ebb74
1,126
py
Python
python/keras/masking.py
berquist/eg
4c368b12eaaffcf0af8032f10348cf8bc1c3957a
[ "Unlicense" ]
null
null
null
python/keras/masking.py
berquist/eg
4c368b12eaaffcf0af8032f10348cf8bc1c3957a
[ "Unlicense" ]
null
null
null
python/keras/masking.py
berquist/eg
4c368b12eaaffcf0af8032f10348cf8bc1c3957a
[ "Unlicense" ]
null
null
null
from pprint import pprint import numpy as np from keras.models import Model from keras.layers import Activation, Dense, Input, Masking, TimeDistributed if __name__ == "__main__": inp = Input(shape=(3, 6)) mask = Masking(mask_value=0.1)(inp) out = TimeDistributed(Dense(1, activation="linear"))(mask) ...
25.590909
86
0.564831
from pprint import pprint import numpy as np from keras.models import Model from keras.layers import Activation, Dense, Input, Masking, TimeDistributed if __name__ == "__main__": inp = Input(shape=(3, 6)) mask = Masking(mask_value=0.1)(inp) out = TimeDistributed(Dense(1, activation="linear"))(mask) ...
true
true
f7453deb4c64ac10675678fbdd1a060c32165dbe
2,627
py
Python
montreal_forced_aligner/command_line/create_segments.py
prosodylab/Montreal-Forced-Aligner
58e95c941924d7cb4db5672e28fb0dbbcf9c42f3
[ "MIT" ]
null
null
null
montreal_forced_aligner/command_line/create_segments.py
prosodylab/Montreal-Forced-Aligner
58e95c941924d7cb4db5672e28fb0dbbcf9c42f3
[ "MIT" ]
null
null
null
montreal_forced_aligner/command_line/create_segments.py
prosodylab/Montreal-Forced-Aligner
58e95c941924d7cb4db5672e28fb0dbbcf9c42f3
[ "MIT" ]
null
null
null
"""Command line functions for segmenting audio files""" from __future__ import annotations import os from typing import TYPE_CHECKING, List, Optional from montreal_forced_aligner.exceptions import ArgumentError from montreal_forced_aligner.segmenter import Segmenter if TYPE_CHECKING: from argparse import Namespa...
30.905882
95
0.694328
from __future__ import annotations import os from typing import TYPE_CHECKING, List, Optional from montreal_forced_aligner.exceptions import ArgumentError from montreal_forced_aligner.segmenter import Segmenter if TYPE_CHECKING: from argparse import Namespace __all__ = ["create_segments", "validate_args", "run...
true
true
f7453f48d8bb5a31feaa4e52880542ffd9ffbddc
2,304
py
Python
resolwe_bio/processes/alignment/bwa_index.py
gregorjerse/resolwe-bio
80f1e354cf0014a1eeff00acc112c622a2a044a9
[ "Apache-2.0" ]
null
null
null
resolwe_bio/processes/alignment/bwa_index.py
gregorjerse/resolwe-bio
80f1e354cf0014a1eeff00acc112c622a2a044a9
[ "Apache-2.0" ]
null
null
null
resolwe_bio/processes/alignment/bwa_index.py
gregorjerse/resolwe-bio
80f1e354cf0014a1eeff00acc112c622a2a044a9
[ "Apache-2.0" ]
null
null
null
"""Create genome index for BWA aligner.""" import shutil from pathlib import Path from plumbum import TEE from resolwe.process import Cmd, DataField, DirField, FileField, Process, StringField class BWAIndex(Process): """Create BWA genome index.""" slug = "bwa-index" process_type = "data:index:bwa" ...
30.315789
85
0.590278
import shutil from pathlib import Path from plumbum import TEE from resolwe.process import Cmd, DataField, DirField, FileField, Process, StringField class BWAIndex(Process): slug = "bwa-index" process_type = "data:index:bwa" name = "BWA genome index" requirements = { "expression-engine": "j...
true
true
f7454057bbaa92fce7a7185a8a632a7cde34faf5
2,621
py
Python
server/swagger_server/controllers/people_controller.py
fabric-testbed/core-api
b6f9df2b3cc4e9ab8782b9ef4de035f5f0644e46
[ "MIT" ]
null
null
null
server/swagger_server/controllers/people_controller.py
fabric-testbed/core-api
b6f9df2b3cc4e9ab8782b9ef4de035f5f0644e46
[ "MIT" ]
null
null
null
server/swagger_server/controllers/people_controller.py
fabric-testbed/core-api
b6f9df2b3cc4e9ab8782b9ef4de035f5f0644e46
[ "MIT" ]
null
null
null
import connexion import six from swagger_server.models.inline_response200 import InlineResponse200 # noqa: E501 from swagger_server.models.inline_response2001 import InlineResponse2001 # noqa: E501 from swagger_server.models.inline_response2002 import InlineResponse2002 # noqa: E501 from swagger_server.models.model...
34.038961
106
0.7562
import connexion import six from swagger_server.models.inline_response200 import InlineResponse200 from swagger_server.models.inline_response2001 import InlineResponse2001 from swagger_server.models.inline_response2002 import InlineResponse2002 from swagger_server.models.model400_bad_request import Model400BadRe...
true
true
f7454154bef49b76837ee9ad8bd9412524d25621
2,494
py
Python
monkq/exchange/bitmex/auth.py
zsluedem/MonkTrader
760942a59919b34c876467bc0eb4afb30689cbc1
[ "MIT" ]
2
2018-11-17T06:39:36.000Z
2019-01-18T13:14:15.000Z
monkq/exchange/bitmex/auth.py
zsluedem/MonkTrader
760942a59919b34c876467bc0eb4afb30689cbc1
[ "MIT" ]
37
2018-11-04T15:05:04.000Z
2019-03-09T09:26:30.000Z
monkq/exchange/bitmex/auth.py
zsluedem/MonkTrader
760942a59919b34c876467bc0eb4afb30689cbc1
[ "MIT" ]
null
null
null
# # MIT License # # Copyright (c) 2018 WillQ # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
36.144928
109
0.714114
import hashlib import hmac import time from urllib.parse import urlparse from monkq.utils.timefunc import local_offset_seconds _safe_nonce = 300 expire_ts = int(local_offset_seconds + _safe_nonce) def generate_expires(timestamp: float = time.time(), expire: int = expire_ts) -> int: retur...
true
true
f745421bef348d08872ef36e0c6b1ac8ee4bfedb
6,618
py
Python
tt/tagsel.py
dhh1128/tt
9493179270268ac5273c0f39560628b2f76f2220
[ "Apache-2.0" ]
null
null
null
tt/tagsel.py
dhh1128/tt
9493179270268ac5273c0f39560628b2f76f2220
[ "Apache-2.0" ]
null
null
null
tt/tagsel.py
dhh1128/tt
9493179270268ac5273c0f39560628b2f76f2220
[ "Apache-2.0" ]
2
2021-07-19T18:57:49.000Z
2021-09-08T09:51:30.000Z
import re from .tag import normalize class BadExpression(Exception): def __init__(self, txt): Exception.__init__(self, txt) def _negate(txt, negated): return "NOT " + txt if negated else txt class BinaryExpr(): def __init__(self, lhs=None, operator=None): self.negated = False ...
32.925373
113
0.584316
import re from .tag import normalize class BadExpression(Exception): def __init__(self, txt): Exception.__init__(self, txt) def _negate(txt, negated): return "NOT " + txt if negated else txt class BinaryExpr(): def __init__(self, lhs=None, operator=None): self.negated = False ...
true
true
f7454287f3c033f2dbdf45e0bd56fcde31e72517
679
py
Python
app.py
EMattfolk/mattfolk.xyz
36e6fd4e901e2388999e5bc13beb41d1d6e49e6f
[ "MIT" ]
null
null
null
app.py
EMattfolk/mattfolk.xyz
36e6fd4e901e2388999e5bc13beb41d1d6e49e6f
[ "MIT" ]
null
null
null
app.py
EMattfolk/mattfolk.xyz
36e6fd4e901e2388999e5bc13beb41d1d6e49e6f
[ "MIT" ]
null
null
null
from flask import Flask, render_template app = Flask(__name__, static_url_path="/static") navigation = [ ("Home", "/"), ("CV", "/cv"), ("Projects", "/projects"), ]; def page(name: str): with open(f"pages/{name}.html") as f: content = f.read() kwargs = { "content": conte...
16.166667
49
0.561119
from flask import Flask, render_template app = Flask(__name__, static_url_path="/static") navigation = [ ("Home", "/"), ("CV", "/cv"), ("Projects", "/projects"), ]; def page(name: str): with open(f"pages/{name}.html") as f: content = f.read() kwargs = { "content": conte...
true
true
f74542ac67f739700cee7adca357de0f5545d3d8
2,606
py
Python
docs/conf.py
clberube/BISIP2
810c70bc04cba016b6f3fbe6e2412bd689acf1a8
[ "MIT" ]
9
2017-04-21T20:17:05.000Z
2021-12-03T07:06:02.000Z
docs/conf.py
clberube/BISIP2
810c70bc04cba016b6f3fbe6e2412bd689acf1a8
[ "MIT" ]
4
2017-09-28T07:06:56.000Z
2019-08-24T18:36:25.000Z
docs/conf.py
clberube/BISIP2
810c70bc04cba016b6f3fbe6e2412bd689acf1a8
[ "MIT" ]
2
2018-03-05T14:52:32.000Z
2018-03-26T14:19:33.000Z
# @Author: charles # @Date: 2020-03-06T13:54:13-05:00 # @Last modified by: charles # @Last modified time: 2020-04-21T08:48:50-04:00 # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www...
30.658824
79
0.634689
project = 'BISIP' copyright = '2020, Charles L. Bérubé' author = 'Charles L. Bérubé' release = '0.0.1' master_doc = 'index' extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'nbsp...
true
true
f74542db2eee2e7ebc343178dd865da62ae0870c
4,641
py
Python
profiles_api/views.py
er-shrey/profiles-rest-api
2b20762a47b4f858b730fc5006f0f064e20394e6
[ "MIT" ]
null
null
null
profiles_api/views.py
er-shrey/profiles-rest-api
2b20762a47b4f858b730fc5006f0f064e20394e6
[ "MIT" ]
8
2019-12-05T00:45:25.000Z
2022-02-10T14:11:47.000Z
profiles_api/views.py
er-shrey/profiles-rest-api
2b20762a47b4f858b730fc5006f0f064e20394e6
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework import filters from rest_framework.authtoken.views import ObtainAuthToken from res...
35.427481
102
0.670545
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework import filters from rest_framework.authtoken.views import ObtainAuthToken from res...
true
true
f74542fdc20c57de41aa4c8161bbd0e10f561241
2,859
py
Python
hydromt/config.py
couasnonanais/hydromt
6ff3bb6e76cea8247be171f1fe781c0cbb7e9c9e
[ "MIT" ]
12
2021-04-18T18:20:44.000Z
2022-03-30T05:11:57.000Z
hydromt/config.py
couasnonanais/hydromt
6ff3bb6e76cea8247be171f1fe781c0cbb7e9c9e
[ "MIT" ]
94
2021-04-15T12:28:56.000Z
2022-03-24T17:09:49.000Z
hydromt/config.py
couasnonanais/hydromt
6ff3bb6e76cea8247be171f1fe781c0cbb7e9c9e
[ "MIT" ]
5
2021-05-28T07:51:10.000Z
2022-03-11T12:47:19.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ config functions """ import codecs from configparser import ConfigParser from os.path import dirname, join, abspath, exists from ast import literal_eval import numpy as np import abc from pathlib import Path def configread( config_fn, encoding="utf-8", cf...
34.445783
84
0.583771
import codecs from configparser import ConfigParser from os.path import dirname, join, abspath, exists from ast import literal_eval import numpy as np import abc from pathlib import Path def configread( config_fn, encoding="utf-8", cf=None, defaults=dict(), noheader=False, abs_path=False, )...
true
true
f7454328f1725e4c379b5907b50f5e09c11f431d
987
py
Python
face_recgonition/face_recognition_api.py
lab-03/face_recognition
2a2a5428917b5e53f92c1fd29d4960bbda7c2d5e
[ "MIT" ]
null
null
null
face_recgonition/face_recognition_api.py
lab-03/face_recognition
2a2a5428917b5e53f92c1fd29d4960bbda7c2d5e
[ "MIT" ]
null
null
null
face_recgonition/face_recognition_api.py
lab-03/face_recognition
2a2a5428917b5e53f92c1fd29d4960bbda7c2d5e
[ "MIT" ]
null
null
null
import face_recognition def compare_faces(original_face, captured_face): same_person = False original_face_encoding = get_image_encoding(original_face) captured_face_encoding = get_image_encoding(captured_face) if len(captured_face_encoding) > 0 and len(original_face_encoding) > 0: ...
37.961538
106
0.753799
import face_recognition def compare_faces(original_face, captured_face): same_person = False original_face_encoding = get_image_encoding(original_face) captured_face_encoding = get_image_encoding(captured_face) if len(captured_face_encoding) > 0 and len(original_face_encoding) > 0: ...
true
true
f745436fa3e70d1672496859ad994f43f78baa58
520
py
Python
tests/r/test_phosphor.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_phosphor.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_phosphor.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.phosphor import phosphor def test_phosphor(): """Test module phosphor.py by downloading phosphor.csv and testing shape of extracted data h...
21.666667
44
0.755769
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.phosphor import phosphor def test_phosphor(): test_path = tempfile.mkdtemp() x_train, metadata = phosphor(test_path) try: assert x_train...
true
true
f74544b88cdd46b38b4c87d7e573694d423eaf74
3,666
py
Python
tests/sdk_mcn_occi_ext_test.py
Pentadactylus/hurtle_sdk
94597ce22951d8641afa7223889195b44f9cb9ab
[ "Apache-2.0" ]
null
null
null
tests/sdk_mcn_occi_ext_test.py
Pentadactylus/hurtle_sdk
94597ce22951d8641afa7223889195b44f9cb9ab
[ "Apache-2.0" ]
null
null
null
tests/sdk_mcn_occi_ext_test.py
Pentadactylus/hurtle_sdk
94597ce22951d8641afa7223889195b44f9cb9ab
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013-2015, Intel Performance Learning Solutions Ltd, Intel Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
33.633028
89
0.587016
from sdk.mcn import occi_ext from occi import core_model import unittest class ApplicationTest(unittest.TestCase): def test_init_for_success(self): occi_ext.Application(_MyBackend()) occi_ext.Application(_MyBackend(), backends={core_model.Kind('foo', ...
true
true
f74545257d4ee21af8ad7aae2149ad290991f512
2,485
py
Python
examples/siamese_mnist.py
DmitryUlyanov/deeppy
c9644d348e22b78d32ea049fb0ac14bf3b750941
[ "MIT" ]
1
2015-09-16T08:01:21.000Z
2015-09-16T08:01:21.000Z
examples/siamese_mnist.py
rajat1994/deeppy
79cc7cb552f30bc70eeea9ee7ff4976b0899ea66
[ "MIT" ]
null
null
null
examples/siamese_mnist.py
rajat1994/deeppy
79cc7cb552f30bc70eeea9ee7ff4976b0899ea66
[ "MIT" ]
2
2020-04-05T21:41:14.000Z
2021-09-28T18:05:49.000Z
#!/usr/bin/env python """ Siamese networks ================ """ import random import numpy as np import matplotlib.pyplot as plt from matplotlib import offsetbox import deeppy as dp # Fetch MNIST data dataset = dp.dataset.MNIST() x_train, y_train, x_test, y_test = dataset.data(flat=True, dp_dtypes=True) # Normaliz...
24.60396
78
0.639437
import random import numpy as np import matplotlib.pyplot as plt from matplotlib import offsetbox import deeppy as dp dataset = dp.dataset.MNIST() x_train, y_train, x_test, y_test = dataset.data(flat=True, dp_dtypes=True) scaler = dp.StandardScaler() x_train = scaler.fit_transform(x_train) x_test = scaler.transf...
true
true
f74545bf0f79cca5987c612ccb86693b3c56b790
256
py
Python
manage.py
hackforthesea/hackforthesea.tech
33b7522c13d87b26a39e9dfbdcad4067b44cda06
[ "BSD-3-Clause" ]
1
2018-09-17T04:35:06.000Z
2018-09-17T04:35:06.000Z
manage.py
hackforthesea/hackforthesea.tech
33b7522c13d87b26a39e9dfbdcad4067b44cda06
[ "BSD-3-Clause" ]
5
2021-04-08T18:28:06.000Z
2022-02-10T08:24:03.000Z
manage.py
hackforthesea/hackforthesea.tech
33b7522c13d87b26a39e9dfbdcad4067b44cda06
[ "BSD-3-Clause" ]
1
2018-09-17T04:35:08.000Z
2018-09-17T04:35:08.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hackforthesea.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23.272727
77
0.777344
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hackforthesea.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
true
true
f74545e86fb04319a61551640d5ee1a3a75439b3
1,256
py
Python
core/controllers/oppia_root_test.py
swyuan27/oppia
da4c733659b8813eccf738ff8be19123ebcdeb15
[ "Apache-2.0" ]
5,422
2015-08-14T01:56:44.000Z
2022-03-31T23:31:56.000Z
core/controllers/oppia_root_test.py
swyuan27/oppia
da4c733659b8813eccf738ff8be19123ebcdeb15
[ "Apache-2.0" ]
14,178
2015-08-14T05:21:45.000Z
2022-03-31T23:54:10.000Z
core/controllers/oppia_root_test.py
swyuan27/oppia
da4c733659b8813eccf738ff8be19123ebcdeb15
[ "Apache-2.0" ]
3,574
2015-08-14T04:20:06.000Z
2022-03-29T01:52:37.000Z
# Copyright 2021 The Oppia 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 applicable ...
39.25
82
0.721338
from __future__ import annotations from core.constants import constants from core.tests import test_utils class OppiaRootPageTests(test_utils.GenericTestBase): def test_oppia_root_page(self) -> None: for page in constants.PAGES_REGISTERED_WITH_FRONTEND.values(): if not 'MANUAL...
true
true
f7454615e666543b6aa951bda4495bbd1d7eee02
385
py
Python
mmee/wsgi.py
kingsdigitallab/mmee-django
43a8fcf02138f4b114507fa8894717e1363df4f1
[ "MIT" ]
null
null
null
mmee/wsgi.py
kingsdigitallab/mmee-django
43a8fcf02138f4b114507fa8894717e1363df4f1
[ "MIT" ]
9
2020-02-11T23:19:52.000Z
2021-06-09T17:39:45.000Z
mmee/wsgi.py
kingsdigitallab/mmee-django
43a8fcf02138f4b114507fa8894717e1363df4f1
[ "MIT" ]
null
null
null
""" WSGI config for mmee project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS...
22.647059
78
0.781818
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mmee.settings") application = get_wsgi_application()
true
true
f74546a82c748afa1ae81fddda6b8181228d58ac
27,855
py
Python
Utilities/build-script-helper.py
porglezomp-misc/swift-driver
07a07b8b37856153fd394941fc3f49eada19af9f
[ "Apache-2.0" ]
null
null
null
Utilities/build-script-helper.py
porglezomp-misc/swift-driver
07a07b8b37856153fd394941fc3f49eada19af9f
[ "Apache-2.0" ]
null
null
null
Utilities/build-script-helper.py
porglezomp-misc/swift-driver
07a07b8b37856153fd394941fc3f49eada19af9f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import argparse from distutils import file_util import os import json import platform import shutil import subprocess import sys import errno if platform.system() == 'Darwin': shared_lib_ext = '.dylib' else: shared_lib_ext = '.so' macos_deployment_t...
44.425837
121
0.699264
from __future__ import print_function import argparse from distutils import file_util import os import json import platform import shutil import subprocess import sys import errno if platform.system() == 'Darwin': shared_lib_ext = '.dylib' else: shared_lib_ext = '.so' macos_deployment_target = '10.15' def ...
true
true
f74546c3f5a70d993244acbf1d62f9927dccb094
321
py
Python
oms/__init__.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
5
2021-08-10T23:16:44.000Z
2022-03-17T17:27:00.000Z
oms/__init__.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
330
2021-06-10T17:28:22.000Z
2022-03-31T00:55:48.000Z
oms/__init__.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
6
2021-06-10T17:20:32.000Z
2022-03-28T08:08:03.000Z
""" Import as: import oms as oms """ from oms.oms_db import * # pylint: disable=unused-import # NOQA from oms.order_processor import * # pylint: disable=unused-import # NOQA from oms.portfolio import * # pylint: disable=unused-import # NOQA from oms.portfolio_example import * # pylint: disable=unused-import # NOQ...
32.1
75
0.738318
from oms.oms_db import * oms.order_processor import * oms.portfolio import * oms.portfolio_example import *
true
true
f745478bfc077a9b8a38a3f8f5d1642d0e3e9849
2,798
py
Python
games/abstract_game.py
andrei-ars/muzero-test2
fcf6f8b7236d3b7a98ca9f6226ef48fc64ac6483
[ "MIT" ]
null
null
null
games/abstract_game.py
andrei-ars/muzero-test2
fcf6f8b7236d3b7a98ca9f6226ef48fc64ac6483
[ "MIT" ]
null
null
null
games/abstract_game.py
andrei-ars/muzero-test2
fcf6f8b7236d3b7a98ca9f6226ef48fc64ac6483
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class AbstractGame(ABC): """ Inherit this class for muzero to play """ @abstractmethod def __init__(self, seed=None): pass @abstractmethod def step(self, action): """ Apply action to the game. Args: ...
25.907407
107
0.574696
from abc import ABC, abstractmethod class AbstractGame(ABC): @abstractmethod def __init__(self, seed=None): pass @abstractmethod def step(self, action): pass def to_play(self): return 0 @abstractmethod def legal_actions(self): pass @abstractmethod ...
true
true
f74547a9ddd562afd91241f3e551251599940f2e
3,492
py
Python
clinica/pipelines/dwi_connectome/dwi_connectome_utils.py
Raelag0112/clinica
d301b1abfdf4d3b62dc4b329622340795ae51ef8
[ "MIT" ]
null
null
null
clinica/pipelines/dwi_connectome/dwi_connectome_utils.py
Raelag0112/clinica
d301b1abfdf4d3b62dc4b329622340795ae51ef8
[ "MIT" ]
null
null
null
clinica/pipelines/dwi_connectome/dwi_connectome_utils.py
Raelag0112/clinica
d301b1abfdf4d3b62dc4b329622340795ae51ef8
[ "MIT" ]
null
null
null
# coding: utf8 def get_luts(): import os from clinica.utils.exceptions import ClinicaException try: # For aparc+aseg.mgz file: default = os.path.join(os.environ['FREESURFER_HOME'], 'FreeSurferColorLUT.txt') # For aparc.a2009s+aseg.mgz file: ...
31.459459
97
0.636025
def get_luts(): import os from clinica.utils.exceptions import ClinicaException try: default = os.path.join(os.environ['FREESURFER_HOME'], 'FreeSurferColorLUT.txt') a2009s = os.path.join(os.environ['FREESURFER_HOME'], ...
true
true
f74547b577270bcc7ce8a3207f0c9e49b6c3e4f8
8,369
py
Python
server/core/clients/jenkins_client.py
FranciscoShi/jenkins-gitlab-integrator
9e9b101df2c67ff73f204828fdf702fc1e2a382d
[ "Apache-2.0" ]
2
2017-07-19T10:39:31.000Z
2018-03-21T10:24:42.000Z
server/core/clients/jenkins_client.py
FranciscoShi/jenkins-gitlab-integrator
9e9b101df2c67ff73f204828fdf702fc1e2a382d
[ "Apache-2.0" ]
1
2017-08-11T20:29:43.000Z
2017-08-14T15:06:14.000Z
server/core/clients/jenkins_client.py
FranciscoShi/jenkins-gitlab-integrator
9e9b101df2c67ff73f204828fdf702fc1e2a382d
[ "Apache-2.0" ]
1
2021-08-08T00:07:12.000Z
2021-08-08T00:07:12.000Z
import aiohttp from server.core.common import LoggingMixin _JOB_FULL_PATH = '%(job_base_path)s/job/%(job_name)s/job/%(branch)s' _JOB_INFO = '%(job_full_path)s/api/json?depth=0' # BUILD_INFO = '%(job_full_path)s/%(number)d/api/json' _LAST_SUCCESS_BUILD_INFO = '%(job_full_path)s/lastSuccessfulBuild/api/json' _BUILD_JOB ...
33.342629
106
0.595053
import aiohttp from server.core.common import LoggingMixin _JOB_FULL_PATH = '%(job_base_path)s/job/%(job_name)s/job/%(branch)s' _JOB_INFO = '%(job_full_path)s/api/json?depth=0' _LAST_SUCCESS_BUILD_INFO = '%(job_full_path)s/lastSuccessfulBuild/api/json' _BUILD_JOB = '%(job_full_path)s/build' class JenkinsBuildInfo(o...
true
true
f74547d4963862abce21c0110ea5d9d29042c3c9
3,951
py
Python
src_RealData/Data/CreateTFRecords.py
lucas-sancere/DRFNS
a35e01d516e9b491c09eaca6701e7e0fe9e56880
[ "MIT" ]
1
2020-12-10T16:52:23.000Z
2020-12-10T16:52:23.000Z
src_RealData/Data/CreateTFRecords.py
lucas-sancere/DRFNS
a35e01d516e9b491c09eaca6701e7e0fe9e56880
[ "MIT" ]
null
null
null
src_RealData/Data/CreateTFRecords.py
lucas-sancere/DRFNS
a35e01d516e9b491c09eaca6701e7e0fe9e56880
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import tensorflow as tf from DataGenRandomT import DataGenRandomT from DataGenClass import DataGen3, DataGenMulti, DataGen3reduce import numpy as np def _bytes_feature(value): return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) def _int64_feature(va...
37.273585
79
0.607694
import tensorflow as tf from DataGenRandomT import DataGenRandomT from DataGenClass import DataGen3, DataGenMulti, DataGen3reduce import numpy as np def _bytes_feature(value): return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) def _int64_feature(value): return tf.train.Feature(int64_list...
true
true
f7454828d4bda430bbe42f6ca7ad0164469df279
16,519
py
Python
src/unity/python/turicreate/test/test_graph.py
shreyasvj25/turicreate
32e84ca16aef8d04aff3d49ae9984bd49326bffd
[ "BSD-3-Clause" ]
2
2019-02-08T08:45:27.000Z
2020-09-07T05:55:18.000Z
src/unity/python/turicreate/test/test_graph.py
shreyasvj25/turicreate
32e84ca16aef8d04aff3d49ae9984bd49326bffd
[ "BSD-3-Clause" ]
2
2022-01-13T04:03:55.000Z
2022-03-12T01:02:31.000Z
src/unity/python/turicreate/test/test_graph.py
ZeroInfinite/turicreate
dd210c2563930881abd51fd69cb73007955b33fd
[ "BSD-3-Clause" ]
1
2019-06-01T18:49:28.000Z
2019-06-01T18:49:28.000Z
# -*- coding: utf-8 -*- # Copyright © 2017 Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause from __future__ import print_function as _ from __future__ import division as _ from...
48.585294
196
0.564441
from __future__ import print_function as _ from __future__ import division as _ from __future__ import absolute_import as _ from ..data_structures.sgraph import SGraph, Vertex, Edge, load_sgraph from ..data_structures.sframe import SFrame from . import util import pandas as pd from pandas.util.testing import asse...
true
true
f74548812af30d9b766d9e35d99bdb785f6a1615
289
py
Python
PythonBaseDemo/classAndObjDemo/6.2/class_space.py
CypHelp/TestNewWorldDemo
ee6f73df05756f191c1c56250fa290461fdd1b9a
[ "Apache-2.0" ]
null
null
null
PythonBaseDemo/classAndObjDemo/6.2/class_space.py
CypHelp/TestNewWorldDemo
ee6f73df05756f191c1c56250fa290461fdd1b9a
[ "Apache-2.0" ]
null
null
null
PythonBaseDemo/classAndObjDemo/6.2/class_space.py
CypHelp/TestNewWorldDemo
ee6f73df05756f191c1c56250fa290461fdd1b9a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # 定义全局空间的foo函数 def foo(): print("全局空间的foo方法") # 全局空间的bar变量 bar = 20 class Bird: # 定义Bird空间的foo函数 def foo(self): print("Bird空间的foo方法") # 定义Bird空间的bar变量 bar = 200 # 调用全局空间的函数和变量 foo() print(bar) # 调用Bird空间的函数和变量 Bird.foo() print(Bird.bar)
10.703704
29
0.636678
def foo(): print("全局空间的foo方法") bar = 20 class Bird: def foo(self): print("Bird空间的foo方法") bar = 200 foo() print(bar) Bird.foo() print(Bird.bar)
true
true
f7454ae587d6aa0c13bf14752d78285fc80a9f9f
4,667
py
Python
src/rastervision/semseg/tasks/utils.py
anuragreddygv323/raster-vision
db2bc35f21968618a333cee2f5e86f29e7d56483
[ "Apache-2.0" ]
12
2018-07-31T01:52:00.000Z
2021-04-22T12:43:28.000Z
src/rastervision/semseg/tasks/utils.py
anuragreddygv323/raster-vision
db2bc35f21968618a333cee2f5e86f29e7d56483
[ "Apache-2.0" ]
1
2020-02-03T13:46:43.000Z
2022-03-29T16:53:24.000Z
src/rastervision/semseg/tasks/utils.py
yoninachmany/raster-vision-deepglobe-semseg
14a6495f23bbef0bf7f7c47fb37b856a559b272f
[ "Apache-2.0" ]
11
2018-05-03T10:43:08.000Z
2021-08-16T05:45:29.000Z
"""Utility functions shared across tasks.""" import numpy as np import matplotlib as mpl # For headless environments mpl.use('Agg') # NOQA import matplotlib.pyplot as plt import matplotlib.patches as mpatches from rastervision.common.utils import plot_img_row def predict_x(x, model): batch_x = np.expand_dims(x, ...
33.335714
79
0.664024
import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import matplotlib.patches as mpatches from rastervision.common.utils import plot_img_row def predict_x(x, model): batch_x = np.expand_dims(x, axis=0) batch_y = model.predict(batch_x) y = np.squeeze(batch_y, axis=...
true
true
f7454b068d90f1d725f1bf35b7f9da37f6843929
3,966
py
Python
vis_tool.py
yuyunli2/faster_rcnn
c8ddaa02fdc8ca36438713f2584d83dbbfae9ed9
[ "MIT" ]
null
null
null
vis_tool.py
yuyunli2/faster_rcnn
c8ddaa02fdc8ca36438713f2584d83dbbfae9ed9
[ "MIT" ]
null
null
null
vis_tool.py
yuyunli2/faster_rcnn
c8ddaa02fdc8ca36438713f2584d83dbbfae9ed9
[ "MIT" ]
null
null
null
import time import numpy as np import matplotlib import torch as t import visdom matplotlib.use('Agg') from matplotlib import pyplot as plot VOC_BBOX_LABEL_NAMES = ( 'fly', 'bike', 'bird', 'boat', 'pin', 'bus', 'c', 'cat', 'chair', 'cow', 'table', 'dog', 'horse', ...
26.264901
135
0.563036
import time import numpy as np import matplotlib import torch as t import visdom matplotlib.use('Agg') from matplotlib import pyplot as plot VOC_BBOX_LABEL_NAMES = ( 'fly', 'bike', 'bird', 'boat', 'pin', 'bus', 'c', 'cat', 'chair', 'cow', 'table', 'dog', 'horse', ...
true
true
f7454b39802f5dabb4ff1600dce618563de7fb49
2,070
py
Python
tests/smtpmock.py
AdrianVollmer/Crack-O-Matic
0a129189dceab60e4a1ae98a3efd4009b25cab73
[ "MIT" ]
89
2021-03-22T14:26:25.000Z
2022-03-15T13:46:47.000Z
tests/smtpmock.py
AdrianVollmer/Crack-O-Matic
0a129189dceab60e4a1ae98a3efd4009b25cab73
[ "MIT" ]
4
2021-05-07T13:06:51.000Z
2021-07-15T17:47:03.000Z
tests/smtpmock.py
AdrianVollmer/Crack-O-Matic
0a129189dceab60e4a1ae98a3efd4009b25cab73
[ "MIT" ]
3
2021-08-10T07:16:30.000Z
2021-09-29T12:22:11.000Z
''' Provides a mock SMTP server implementation, MockSMTPServer. Sample usage: ---- # create the server -- will start automatically import smtpmock mock_server = smtpmock.MockSMTPServer("localhost", 25025) #send a test message import smtplib client = smtplib.SMTP("localhost", 25025) fromaddr = "test.sender@mydomain.co...
27.6
78
0.675845
import asyncore import re import smtpd import threading class MockSMTPServer(smtpd.SMTPServer, threading.Thread): def __init__(self, hostname, port, callback=None): threading.Thread.__init__(self) smtpd.SMTPServer.__init__(self, (hostname, port), None) self.daemon = True self.cal...
true
true
f7454bcab10b1207fd9424f8d8fb578976501bed
2,992
py
Python
run.py
MehdiKhiatiDS/OceanAI
b4300cf569e7731d7b93d5b762fc4ed36df7d3bb
[ "MIT" ]
1
2020-03-14T18:47:04.000Z
2020-03-14T18:47:04.000Z
run.py
MehdiKhiatiDS/OceanAI
b4300cf569e7731d7b93d5b762fc4ed36df7d3bb
[ "MIT" ]
null
null
null
run.py
MehdiKhiatiDS/OceanAI
b4300cf569e7731d7b93d5b762fc4ed36df7d3bb
[ "MIT" ]
null
null
null
# Imports from 3rd party libraries import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output # Imports from this application from app import app, server from pages import index, predictions, insights, process...
36.938272
126
0.652741
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app, server from pages import index, predictions, insights, process navbar = dbc.NavbarSimple( brand='Machine Learning for Oce...
true
true
f7454c4182041431675f9dff87ff18e7465c3db2
576
py
Python
setup.py
mdevboss/pyrestapi
4c773bc8e763e36c641d36975f838a56b9992b6f
[ "BSD-2-Clause" ]
null
null
null
setup.py
mdevboss/pyrestapi
4c773bc8e763e36c641d36975f838a56b9992b6f
[ "BSD-2-Clause" ]
null
null
null
setup.py
mdevboss/pyrestapi
4c773bc8e763e36c641d36975f838a56b9992b6f
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup setup( name = 'messagebird', packages = ['messagebird'], version = '1.2.0', description = "MessageBird's REST API", author = 'MessageBird', author_email = 'support@messagebird.com', url = 'https://gith...
36
86
0.557292
from setuptools import setup setup( name = 'messagebird', packages = ['messagebird'], version = '1.2.0', description = "MessageBird's REST API", author = 'MessageBird', author_email = 'support@messagebird.com', url = 'https://gith...
true
true
f7454c844bb8483f7dc641516de275cb2c379130
933
py
Python
CS116/a01-j4mai/a01-j4mai/a01q1.py
JohnMai1994/CS116-2018_Winter_Term
dc95e63b9b4ff853c0bb19432dbd09512d4740a1
[ "MIT" ]
null
null
null
CS116/a01-j4mai/a01-j4mai/a01q1.py
JohnMai1994/CS116-2018_Winter_Term
dc95e63b9b4ff853c0bb19432dbd09512d4740a1
[ "MIT" ]
null
null
null
CS116/a01-j4mai/a01-j4mai/a01q1.py
JohnMai1994/CS116-2018_Winter_Term
dc95e63b9b4ff853c0bb19432dbd09512d4740a1
[ "MIT" ]
null
null
null
##=============================================== ## Jiadong Mai (20557203) ## CS 116 Winter 2018 ## Assignment 01, Question 1 ##=============================================== import math import check ## QUESTION 1 ## how_many_phone(phone_length, distance) return the minimum natural number ## of cell phones ...
28.272727
79
0.6388
true
true
f7454c929e264490966c4406d1f2e050effab888
1,429
py
Python
app/api/pageos.py
zhengjiani/PageOs
842125c1171cccb753e18475671dfce2bd12f04b
[ "Apache-2.0" ]
null
null
null
app/api/pageos.py
zhengjiani/PageOs
842125c1171cccb753e18475671dfce2bd12f04b
[ "Apache-2.0" ]
3
2020-02-29T04:47:24.000Z
2021-06-02T01:06:38.000Z
app/api/pageos.py
zhengjiani/PageOs
842125c1171cccb753e18475671dfce2bd12f04b
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- """ @File : pageos.py @Time : 2020/2/28 7:49 下午 @Author : zhengjiani @Email : 936089353@qq.com @Software: PyCharm """ from flask import jsonify, Blueprint, Response, request from . import api from ..code import ResponseCode from ..response import ResMsg from ..util import route @rout...
35.725
125
0.552834
from flask import jsonify, Blueprint, Response, request from . import api from ..code import ResponseCode from ..response import ResMsg from ..util import route @route(api,'/polists',methods=['GET']) def get_po_files(): res = ResMsg() res_dict = { "totalpage": 5, "pagenum": 4, ...
true
true
f7454d6c6409256ba6d7f78830696e44ddc8bb11
499
py
Python
day-06/part-2/coco.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
12
2020-11-30T19:22:18.000Z
2021-06-21T05:55:58.000Z
day-06/part-2/coco.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
13
2020-11-30T17:27:22.000Z
2020-12-22T17:43:13.000Z
day-06/part-2/coco.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
3
2020-12-01T08:49:40.000Z
2022-03-26T21:47:38.000Z
from tool.runners.python import SubmissionPy from collections import Counter class CocoSubmission(SubmissionPy): def run(self, s): """ :param s: input in string format :return: solution flag """ # Your code goes here groups = s.split("\n\n") sum = 0 ...
26.263158
54
0.563126
from tool.runners.python import SubmissionPy from collections import Counter class CocoSubmission(SubmissionPy): def run(self, s): groups = s.split("\n\n") sum = 0 for g in groups: persons = g.split("\n") answer_sets = [set(p) for p in persons] ...
true
true
f7454d807cf9346638540e5b9826adcab1db2bb3
8,481
py
Python
neo/io/brainwaredamio.py
deeptimittal12/python-neo
7409f47b5debd4d2a75bbf0e77ac10562446c97a
[ "BSD-3-Clause" ]
1
2020-06-08T14:00:03.000Z
2020-06-08T14:00:03.000Z
neo/io/brainwaredamio.py
deeptimittal12/python-neo
7409f47b5debd4d2a75bbf0e77ac10562446c97a
[ "BSD-3-Clause" ]
null
null
null
neo/io/brainwaredamio.py
deeptimittal12/python-neo
7409f47b5debd4d2a75bbf0e77ac10562446c97a
[ "BSD-3-Clause" ]
null
null
null
''' Class for reading from Brainware DAM files DAM files are binary files for holding raw data. They are broken up into sequence of Segments, each containing a single raw trace and parameters. The DAM file does NOT contain a sampling rate, nor can it be reliably calculated from any of the parameters. You can calcul...
35.78481
79
0.607476
import os import os.path import numpy as np import quantities as pq from neo.core import (AnalogSignal, Block, ChannelIndex, Segment) from neo.io.baseio import BaseIO class BrainwareDamIO(BaseIO): is_readable = True is_writable = False supported_objects = [Blo...
true
true
f7454d9b36a86a7ab5cfa87035b84f6f96da115a
70,505
py
Python
Lib/test/test_bytes.py
msullivan/cpython
d2b4c19d53f5f021fb1c7c32d48033a92ac4fe49
[ "CNRI-Python-GPL-Compatible" ]
2
2019-06-14T19:02:40.000Z
2020-04-19T08:20:44.000Z
Lib/test/test_bytes.py
msullivan/cpython
d2b4c19d53f5f021fb1c7c32d48033a92ac4fe49
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/test/test_bytes.py
msullivan/cpython
d2b4c19d53f5f021fb1c7c32d48033a92ac4fe49
[ "CNRI-Python-GPL-Compatible" ]
1
2020-12-09T03:51:45.000Z
2020-12-09T03:51:45.000Z
"""Unit tests for the bytes and bytearray types. XXX This is a mess. Common tests should be unified with string_tests.py (and the latter should be modernized). """ import array import os import re import sys import copy import functools import pickle import tempfile import unittest import test.support import test.s...
38.172713
765
0.569009
import array import os import re import sys import copy import functools import pickle import tempfile import unittest import test.support import test.string_tests import test.list_tests from test.support import bigaddrspacetest, MAX_Py_ssize_t if sys.flags.bytes_warning: def check_bytes_warnings(func): ...
true
true
f7454dc0ae8b9d63d90f559a4ae4137dcd5c2d4b
1,402
py
Python
CollisionHandler.py
HHqZz/Bounce
7ad3299b2d3e188e4e179d7b5415af7e9a930eab
[ "Unlicense" ]
null
null
null
CollisionHandler.py
HHqZz/Bounce
7ad3299b2d3e188e4e179d7b5415af7e9a930eab
[ "Unlicense" ]
null
null
null
CollisionHandler.py
HHqZz/Bounce
7ad3299b2d3e188e4e179d7b5415af7e9a930eab
[ "Unlicense" ]
null
null
null
from miscellaneous import Misc from Vector import Vector import Constants import math # pylint: skip-file class CollisionHandler : def collisionResolution(self,V_incident, N):# Vecteur incident a lobstacle et normale de lobstacle pscal = (V_incident.dx*N.dx + V_incident.dy*N.dy) if Misc.isBetween...
31.863636
102
0.579886
from miscellaneous import Misc from Vector import Vector import Constants import math class CollisionHandler : def collisionResolution(self,V_incident, N): pscal = (V_incident.dx*N.dx + V_incident.dy*N.dy) if Misc.isBetween(self,-0.5,0.5,pscal): print("PSCAL = ", pscal) ...
true
true
f7454e75c38b9399424d4f013262b0950484b39e
8,601
py
Python
fuzzy_table_extractor/extractor.py
LeonardoSirino/FuzzyTableExtractor
114f5b2b1c65bfcaa84cb75c876b68ce1974c821
[ "MIT" ]
6
2022-01-02T12:47:25.000Z
2022-03-26T23:19:10.000Z
fuzzy_table_extractor/extractor.py
LeonardoSirino/FuzzyTableExtractor
114f5b2b1c65bfcaa84cb75c876b68ce1974c821
[ "MIT" ]
1
2022-01-17T12:35:30.000Z
2022-03-26T23:45:34.000Z
fuzzy_table_extractor/extractor.py
LeonardoSirino/FuzzyTableExtractor
114f5b2b1c65bfcaa84cb75c876b68ce1974c821
[ "MIT" ]
null
null
null
from collections import deque from dataclasses import dataclass from enum import Enum, auto from typing import Callable, Iterable, List import numpy as np import pandas as pd from .handlers.base_handler import BaseHandler, BaseNode, TreeFileHandler from .util import match_regex_list, str_comparison @dataclass class...
33.337209
239
0.61923
from collections import deque from dataclasses import dataclass from enum import Enum, auto from typing import Callable, Iterable, List import numpy as np import pandas as pd from .handlers.base_handler import BaseHandler, BaseNode, TreeFileHandler from .util import match_regex_list, str_comparison @dataclass class...
true
true
f745500bdd69ede8d74eb12eb695ca3d92602601
498
py
Python
docs/python_docs/themes/mx-theme/setup.py
liuxiaotiao/mxnet_DGT
023382a9e73047624d511605fb391eac0d7fdb8e
[ "Apache-2.0", "MIT" ]
null
null
null
docs/python_docs/themes/mx-theme/setup.py
liuxiaotiao/mxnet_DGT
023382a9e73047624d511605fb391eac0d7fdb8e
[ "Apache-2.0", "MIT" ]
null
null
null
docs/python_docs/themes/mx-theme/setup.py
liuxiaotiao/mxnet_DGT
023382a9e73047624d511605fb391eac0d7fdb8e
[ "Apache-2.0", "MIT" ]
null
null
null
from setuptools import setup from mxtheme import __version__ setup( name = 'mxtheme', version = __version__, author = 'Mu Li', author_email= '', url="https://github.com/mli/mx-theme", description='A Sphinx theme based on Material Design, adapted from sphinx_materialdesign_theme', packages =...
24.9
100
0.636546
from setuptools import setup from mxtheme import __version__ setup( name = 'mxtheme', version = __version__, author = 'Mu Li', author_email= '', url="https://github.com/mli/mx-theme", description='A Sphinx theme based on Material Design, adapted from sphinx_materialdesign_theme', packages =...
true
true
f7455229d4ecfffc403063e2b7b72e2879206994
15,283
py
Python
train_original.py
ccyjw8860/deep-text-recognition-benchmark
96f526e6d58e2d0685a5e062f472a3cb7310b8be
[ "Apache-2.0" ]
null
null
null
train_original.py
ccyjw8860/deep-text-recognition-benchmark
96f526e6d58e2d0685a5e062f472a3cb7310b8be
[ "Apache-2.0" ]
null
null
null
train_original.py
ccyjw8860/deep-text-recognition-benchmark
96f526e6d58e2d0685a5e062f472a3cb7310b8be
[ "Apache-2.0" ]
null
null
null
import os import sys import time import random import string import argparse import torch import torch.backends.cudnn as cudnn import torch.nn.init as init import torch.optim as optim import torch.utils.data import numpy as np from utils import CTCLabelConverter, CTCLabelConverterForBaiduWarpctc, AttnLabelConverter, ...
47.909091
162
0.639796
import os import sys import time import random import string import argparse import torch import torch.backends.cudnn as cudnn import torch.nn.init as init import torch.optim as optim import torch.utils.data import numpy as np from utils import CTCLabelConverter, CTCLabelConverterForBaiduWarpctc, AttnLabelConverter, ...
true
true
f74552e8ffe5d1de162e36862b6a950baef63401
20,848
py
Python
renku/core/models/provenance/datasets.py
almutlue/renku-python
84b6d0f448161f33a3caa1b9631ae47840d648c6
[ "Apache-2.0" ]
null
null
null
renku/core/models/provenance/datasets.py
almutlue/renku-python
84b6d0f448161f33a3caa1b9631ae47840d648c6
[ "Apache-2.0" ]
null
null
null
renku/core/models/provenance/datasets.py
almutlue/renku-python
84b6d0f448161f33a3caa1b9631ae47840d648c6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017-2021 - Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in c...
33.899187
118
0.639534
import datetime import json import os import pathlib import uuid from pathlib import Path from urllib.parse import quote, urljoin, urlparse from git import GitCommandError from marshmallow import EXCLUDE from renku.core import errors from renku.core.models.calamus import DateTimeList, JsonLDSchema, ...
true
true
f74555e511b79aa201865a048478bf875fbc34b5
4,678
py
Python
code/xgboost_baseline.py
Seondong/talkingdata_kaggle_201608
b9ddbb343dacbcfdaa4b2732c9ea23bf776c773b
[ "Apache-2.0" ]
null
null
null
code/xgboost_baseline.py
Seondong/talkingdata_kaggle_201608
b9ddbb343dacbcfdaa4b2732c9ea23bf776c773b
[ "Apache-2.0" ]
null
null
null
code/xgboost_baseline.py
Seondong/talkingdata_kaggle_201608
b9ddbb343dacbcfdaa4b2732c9ea23bf776c773b
[ "Apache-2.0" ]
null
null
null
__author__ = 'ZFTurbo: https://kaggle.com/zfturbo' import datetime import pandas as pd import numpy as np from sklearn.cross_validation import train_test_split import xgboost as xgb import random import zipfile import time import shutil from sklearn.metrics import log_loss random.seed(2016) def run_xgb(train, test, ...
34.910448
141
0.65605
__author__ = 'ZFTurbo: https://kaggle.com/zfturbo' import datetime import pandas as pd import numpy as np from sklearn.cross_validation import train_test_split import xgboost as xgb import random import zipfile import time import shutil from sklearn.metrics import log_loss random.seed(2016) def run_xgb(train, test, ...
true
true
f745561d87d62f97eddf5148d4191c8cb225598a
287
py
Python
app/utils.py
cfranco1015/social_media_api
e31ea5f4e1455358357cb3bb4476ce850e28c294
[ "MIT" ]
1
2022-02-10T05:54:52.000Z
2022-02-10T05:54:52.000Z
app/utils.py
cfranco1015/social_media_api
e31ea5f4e1455358357cb3bb4476ce850e28c294
[ "MIT" ]
null
null
null
app/utils.py
cfranco1015/social_media_api
e31ea5f4e1455358357cb3bb4476ce850e28c294
[ "MIT" ]
null
null
null
from passlib.context import CryptContext pwd_context = CryptContext(schemes=["bcrypt"], deprecated = "auto") def hash(password: str): return pwd_context.hash(password) def verify(plain_password, hashed_password): return pwd_context.verify(plain_password, hashed_password)
28.7
67
0.777003
from passlib.context import CryptContext pwd_context = CryptContext(schemes=["bcrypt"], deprecated = "auto") def hash(password: str): return pwd_context.hash(password) def verify(plain_password, hashed_password): return pwd_context.verify(plain_password, hashed_password)
true
true
f7455797bdcae09861fe5087ec007826faf51b60
1,560
py
Python
qlib/workflow/cli.py
GoooIce/qlib
1e2e02368c348677f5002a751e9467b707c5a263
[ "MIT" ]
2
2020-11-25T09:22:32.000Z
2021-03-05T07:42:26.000Z
qlib/workflow/cli.py
GoooIce/qlib
1e2e02368c348677f5002a751e9467b707c5a263
[ "MIT" ]
1
2020-12-28T19:55:46.000Z
2021-01-14T08:14:00.000Z
qlib/workflow/cli.py
GoooIce/qlib
1e2e02368c348677f5002a751e9467b707c5a263
[ "MIT" ]
1
2021-03-05T07:42:11.000Z
2021-03-05T07:42:11.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import sys, os from pathlib import Path import qlib import fire import pandas as pd import ruamel.yaml as yaml from qlib.config import C from qlib.model.trainer import task_train def get_path_list(path): if isinstance(path, str): ...
23.636364
90
0.669231
import sys, os from pathlib import Path import qlib import fire import pandas as pd import ruamel.yaml as yaml from qlib.config import C from qlib.model.trainer import task_train def get_path_list(path): if isinstance(path, str): return [path] else: return [p for p in path] def sys_confi...
true
true
f74558cbcbd8a137c80d00d556841ae8ae58de75
1,459
py
Python
smw/join.py
wbap/bifd
ac0338c57a960edde88eadaa20979e90b775eda6
[ "Apache-2.0" ]
null
null
null
smw/join.py
wbap/bifd
ac0338c57a960edde88eadaa20979e90b775eda6
[ "Apache-2.0" ]
3
2020-08-28T13:17:49.000Z
2020-08-30T03:24:08.000Z
smw/join.py
wbap/bifd
ac0338c57a960edde88eadaa20979e90b775eda6
[ "Apache-2.0" ]
null
null
null
# This script joins two text files. # Use: python join.py infile1 infile2 key_pos field_separator > outfile # key_pos is the key position (1 origin) in infile1. # A record of infile2 may be joined after each record of infile1, # if the first item of the record (infile2) matches the key item. # field...
29.77551
94
0.586703
import sys def main(): args = sys.argv if len(args) < 4: print(len(args)) print("Use: python join.py infile1 infile2 key_pos (field_separator)", file=sys.stderr) sys.exit(1) if len(args) == 4: field_separator = '\t' else: field_separator = args[4] key_pos...
true
true
f74559c91d9ac0c9d16b0ff5ab13cb2d65ad0767
6,636
py
Python
network_qt5.py
saikrupa82/Network_Analysis
7708f17a8117acb74fc18502cf075892ed74daa2
[ "MIT" ]
2
2019-10-25T10:51:25.000Z
2019-10-31T11:42:00.000Z
network_qt5.py
saikrupa82/Network_Analysis
7708f17a8117acb74fc18502cf075892ed74daa2
[ "MIT" ]
23
2019-10-16T18:24:41.000Z
2019-11-05T08:08:24.000Z
network_qt5.py
saikrupa82/Network_Analysis
7708f17a8117acb74fc18502cf075892ed74daa2
[ "MIT" ]
13
2019-10-21T18:40:10.000Z
2021-10-17T17:17:30.000Z
from PyQt5.QtCore import QDateTime, Qt, QTimer, pyqtSignal, QObject from PyQt5.QtWidgets import (QDialog, QApplication, QLabel, QCheckBox, QHBoxLayout, QVBoxLayout, QPushButton, QLineEdit, QSpinBox, QFormLayout, QGridLayout, QStyleFactory) import os import sys im...
39.736527
103
0.675708
from PyQt5.QtCore import QDateTime, Qt, QTimer, pyqtSignal, QObject from PyQt5.QtWidgets import (QDialog, QApplication, QLabel, QCheckBox, QHBoxLayout, QVBoxLayout, QPushButton, QLineEdit, QSpinBox, QFormLayout, QGridLayout, QStyleFactory) import os import sys im...
true
true
f7455a1c9e1b16665897b648152819f50c9c3176
687
py
Python
server/util/api.py
uin3566/Dota2Server
18abe05961b338d899be668873962fd0afc28ab9
[ "Apache-2.0" ]
55
2016-08-10T01:38:49.000Z
2021-05-28T05:53:14.000Z
server/util/api.py
uin3566/Dota2Server
18abe05961b338d899be668873962fd0afc28ab9
[ "Apache-2.0" ]
1
2016-08-10T01:42:23.000Z
2016-08-11T06:44:05.000Z
server/util/api.py
uin3566/Dota2Server
18abe05961b338d899be668873962fd0afc28ab9
[ "Apache-2.0" ]
18
2016-08-09T09:10:11.000Z
2019-04-21T06:12:05.000Z
__author__ = 'Fang.Xu' newsrefresh='/api/v1.0/news/refresh' newsloadmore='/api/v1.0/news/loadmore/<string:nid>' updatesrefresh='/api/v1.0/updates/refresh' updatesloadmore='/api/v1.0/updates/loadmore/<string:nid>' newsdetail='/api/v1.0/newsdetail/<string:date>/<string:nid>' strategyrefresh='/api/v1.0/strategy/refresh/<...
49.071429
82
0.764192
__author__ = 'Fang.Xu' newsrefresh='/api/v1.0/news/refresh' newsloadmore='/api/v1.0/news/loadmore/<string:nid>' updatesrefresh='/api/v1.0/updates/refresh' updatesloadmore='/api/v1.0/updates/loadmore/<string:nid>' newsdetail='/api/v1.0/newsdetail/<string:date>/<string:nid>' strategyrefresh='/api/v1.0/strategy/refresh/<...
true
true
f7455a5f2e5c3b4b42cc37efa2d6114d3891353a
9,198
py
Python
mnist/mnist_with_summaries_bf16.py
shengyushen/training
0db663b86001dfc359da98c1504a7a3cb8e1f617
[ "Apache-2.0" ]
null
null
null
mnist/mnist_with_summaries_bf16.py
shengyushen/training
0db663b86001dfc359da98c1504a7a3cb8e1f617
[ "Apache-2.0" ]
null
null
null
mnist/mnist_with_summaries_bf16.py
shengyushen/training
0db663b86001dfc359da98c1504a7a3cb8e1f617
[ "Apache-2.0" ]
1
2020-05-26T02:48:15.000Z
2020-05-26T02:48:15.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.342105
86
0.670146
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os import sys import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data from pgrad import * FLAGS = None def train(): mnist = input_data....
true
true
f7455b350effaabe02cfac638e6d5acae3955e2e
3,950
py
Python
docs/source/conf_doc_autogen.py
bendichter/ndx-task
920d1f515259ae2b27b8bb05ff81717b83e636d3
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf_doc_autogen.py
bendichter/ndx-task
920d1f515259ae2b27b8bb05ff81717b83e636d3
[ "BSD-3-Clause" ]
1
2020-12-22T19:11:09.000Z
2020-12-22T19:11:09.000Z
docs/source/conf_doc_autogen.py
catalystneuro/ndx-task
920d1f515259ae2b27b8bb05ff81717b83e636d3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Configuration file for generating sources for the format documentation from the YAML specification files import os # -- Input options for the specification files to be used ----------------------- # Directory where the YAML files for the namespace to be documented are located spec_input_spe...
43.406593
117
0.796203
import os spec_input_spec_dir = '../spec' spec_input_namespace_filename = 'ndx-task.namespace.yaml' spec_input_default_namespace = 'ndx-task' spec_output_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "_format_auto_docs") spec_output_master_filename = 'format_spec_main.inc' spec_outp...
true
true
f7455b4baae24becc57aa5e6faee9a8faee7c367
9,722
py
Python
replay_buffer_actor.py
laket/ape-x
8ccb4192206d9529b5105e9fffd3cff143f48864
[ "Apache-2.0" ]
null
null
null
replay_buffer_actor.py
laket/ape-x
8ccb4192206d9529b5105e9fffd3cff143f48864
[ "Apache-2.0" ]
null
null
null
replay_buffer_actor.py
laket/ape-x
8ccb4192206d9529b5105e9fffd3cff143f48864
[ "Apache-2.0" ]
null
null
null
''' Copyright (c) 2018 Uber Technologies, Inc. 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 writ...
40.340249
218
0.654701
import tensorflow as tf import numpy as np import models from ops.segment_tree import ShortTermBuffer from gym_tensorflow.wrappers.base import BaseWrapper def make_masked_frame(frames, dones, data_format): frames = list(frames[:]) mask = None not_dones = [tf.cast(tf.logical_not(d), frames[0].dtype) ...
true
true
f7455b6e9a8c634a01b5502e9358b851980563d2
7,068
py
Python
main-1.1.py
wahyutirta/CNN-numpy
d66e10a53304a0c72c40f278486866493f573d5e
[ "MIT" ]
3
2021-05-20T09:22:37.000Z
2021-07-16T07:04:43.000Z
main-1.1.py
wahyutirta/cnn-numpy
d66e10a53304a0c72c40f278486866493f573d5e
[ "MIT" ]
null
null
null
main-1.1.py
wahyutirta/cnn-numpy
d66e10a53304a0c72c40f278486866493f573d5e
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import * import sys,pickle import os from PyQt5 import uic, QtWidgets ,QtCore, QtGui from PyQt5 import QtWidgets, uic from PyQt5.QtCore import QDir, Qt, QSortFilterProxyModel from PyQt5.QtWidgets import QDialog ,QApplication, QFileDialog, QWidget, QTextEdit, QLabel from PyQt5.uic import loadUi fro...
33.183099
122
0.633418
from PyQt5.QtWidgets import * import sys,pickle import os from PyQt5 import uic, QtWidgets ,QtCore, QtGui from PyQt5 import QtWidgets, uic from PyQt5.QtCore import QDir, Qt, QSortFilterProxyModel from PyQt5.QtWidgets import QDialog ,QApplication, QFileDialog, QWidget, QTextEdit, QLabel from PyQt5.uic import loadUi fro...
true
true
f7455b979b75a6a6d5b0c7be6c729d9a4844b14c
9,316
py
Python
oguilem/ui/ga.py
dewberryants/oGUIlem
28271fdc0fb6ffba0037f30f9f9858bec32b0d13
[ "BSD-3-Clause" ]
2
2022-02-23T13:16:47.000Z
2022-03-07T09:47:29.000Z
oguilem/ui/ga.py
dewberryants/oGUIlem
28271fdc0fb6ffba0037f30f9f9858bec32b0d13
[ "BSD-3-Clause" ]
null
null
null
oguilem/ui/ga.py
dewberryants/oGUIlem
28271fdc0fb6ffba0037f30f9f9858bec32b0d13
[ "BSD-3-Clause" ]
1
2022-02-23T13:16:49.000Z
2022-02-23T13:16:49.000Z
import re import PyQt5.QtCore as qC import PyQt5.QtGui as qG import PyQt5.QtWidgets as qW from oguilem.configuration import conf from oguilem.configuration.utils import BuildingBlockHelper, ConnectedValue from oguilem.resources import globopt from oguilem.ui.widgets import InactiveDelegate, SmartLineEdit class OGUI...
43.943396
118
0.657042
import re import PyQt5.QtCore as qC import PyQt5.QtGui as qG import PyQt5.QtWidgets as qW from oguilem.configuration import conf from oguilem.configuration.utils import BuildingBlockHelper, ConnectedValue from oguilem.resources import globopt from oguilem.ui.widgets import InactiveDelegate, SmartLineEdit class OGUI...
true
true
f7455c0a0de28bf180c4585073622c96d1e93569
6,064
py
Python
python/nmf/demo_caiman_basic.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/nmf/demo_caiman_basic.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/nmf/demo_caiman_basic.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Basic stripped-down demo for running the CNMF source extraction algorithm with CaImAn and evaluation the components. The analysis can be run either in the whole FOV or in patches. For a complete pipeline (including motion correction) check demo_pipeline.py Data courtes...
36.97561
92
0.617744
import cv2 import glob import logging import numpy as np import os try: cv2.setNumThreads(0) except: pass try: if __IPYTHON__: get_ipython().magic('load_ext autoreload') get_ipython().magic('autoreload 2') except NameError: pass import caiman as cm from caiman.paths import caiman...
true
true
f7455c99e77c605cdc3b6049f33dd24ab3cb0afe
27,257
py
Python
src/genie/libs/parser/iosxe/tests/test_show_fdb.py
filippohronsky/genieparser
85e4b7a8f101e5cd44d4d7116e0e7a1af13fe9df
[ "Apache-2.0" ]
1
2020-01-07T15:34:41.000Z
2020-01-07T15:34:41.000Z
src/genie/libs/parser/iosxe/tests/test_show_fdb.py
filippohronsky/genieparser
85e4b7a8f101e5cd44d4d7116e0e7a1af13fe9df
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/test_show_fdb.py
filippohronsky/genieparser
85e4b7a8f101e5cd44d4d7116e0e7a1af13fe9df
[ "Apache-2.0" ]
null
null
null
#!/bin/env python import unittest from unittest.mock import Mock from pyats.topology import Device from genie.metaparser.util.exceptions import SchemaEmptyParserError,\ SchemaMissingKeyError from genie.libs.parser.iosxe.show_fdb import ShowMacAddressTable, \ ...
42.924409
83
0.286972
import unittest from unittest.mock import Mock from pyats.topology import Device from genie.metaparser.util.exceptions import SchemaEmptyParserError,\ SchemaMissingKeyError from genie.libs.parser.iosxe.show_fdb import ShowMacAddressTable, \ Show...
true
true
f7455caca893431c335911322deda0eadbce921b
1,580
py
Python
py/tests/tests_integ_yarn.py
My-Technical-Architect/sparkling-water
b1381891baefd63fd15f8dc2a73b049828a919bc
[ "Apache-2.0" ]
null
null
null
py/tests/tests_integ_yarn.py
My-Technical-Architect/sparkling-water
b1381891baefd63fd15f8dc2a73b049828a919bc
[ "Apache-2.0" ]
null
null
null
py/tests/tests_integ_yarn.py
My-Technical-Architect/sparkling-water
b1381891baefd63fd15f8dc2a73b049828a919bc
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
39.5
97
0.725316
from integ_test_utils import IntegTestSuite import test_utils class YarnIntegTestSuite(IntegTestSuite): def test_chicago_crime(self): self.spark_master("yarn-client") self.conf("spark.yarn.max.executor.failures", 1) self.conf("spark.executor.insta...
true
true
f7455ceee175ccee88a111cf48466546380da8d6
881
py
Python
C01-Python-Basics/12-C01P01/Solution01/solution.py
dirchev/Python-101-Forever-1
13c3bb182747aae244ae6f9fd6f79c8223f3e9a6
[ "MIT" ]
59
2021-02-05T10:40:08.000Z
2022-01-26T08:30:43.000Z
C01-Python-Basics/12-C01P01/Solution01/solution.py
dirchev/Python-101-Forever-1
13c3bb182747aae244ae6f9fd6f79c8223f3e9a6
[ "MIT" ]
null
null
null
C01-Python-Basics/12-C01P01/Solution01/solution.py
dirchev/Python-101-Forever-1
13c3bb182747aae244ae6f9fd6f79c8223f3e9a6
[ "MIT" ]
10
2021-02-13T16:50:26.000Z
2022-03-20T12:17:00.000Z
# Video - https://youtu.be/t7j64JYma6o def iban_formatter(iban): result = [] counter = 1 for character in iban: if character == ' ': continue result.append(character) if counter == 4: result.append(' ') counter = 0 counter += 1 r...
24.472222
67
0.600454
def iban_formatter(iban): result = [] counter = 1 for character in iban: if character == ' ': continue result.append(character) if counter == 4: result.append(' ') counter = 0 counter += 1 return "".join(result) tests = [ ...
true
true
f7455d4a5219042330741052d47f64fc9eb42e26
3,501
py
Python
lib/fre.py
codedge/fleshreadingease
1e2e1c937ad57084a6488178fe0ad518929dd5e9
[ "MIT" ]
null
null
null
lib/fre.py
codedge/fleshreadingease
1e2e1c937ad57084a6488178fe0ad518929dd5e9
[ "MIT" ]
null
null
null
lib/fre.py
codedge/fleshreadingease
1e2e1c937ad57084a6488178fe0ad518929dd5e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from argparse import ArgumentParser from urllib import request from bs4 import BeautifulSoup from xml.etree import ElementTree from re import search import os import humanfriendly def is_url_or_file(item): ret = "file" if search("http[s]", item): ret = "u...
29.175
109
0.598115
from argparse import ArgumentParser from urllib import request from bs4 import BeautifulSoup from xml.etree import ElementTree from re import search import os import humanfriendly def is_url_or_file(item): ret = "file" if search("http[s]", item): ret = "url" return ret def remove_html_tags(t)...
true
true
f7455d4c53298bb79a692be79d335d7c27e61519
5,540
py
Python
weavehttp/modules.py
HomeWeave/WeaveHTTP
e7b133401252fab043d02745515dd42439f581f3
[ "MIT" ]
null
null
null
weavehttp/modules.py
HomeWeave/WeaveHTTP
e7b133401252fab043d02745515dd42439f581f3
[ "MIT" ]
null
null
null
weavehttp/modules.py
HomeWeave/WeaveHTTP
e7b133401252fab043d02745515dd42439f581f3
[ "MIT" ]
null
null
null
import base64 import hashlib import json import logging import os import shutil import tempfile from collections import defaultdict from threading import Lock from uuid import uuid4 from bottle import response, static_file from weavelib.exceptions import BadArguments from weavelib.rpc import RPCClient, find_rpc from ...
31.657143
75
0.625812
import base64 import hashlib import json import logging import os import shutil import tempfile from collections import defaultdict from threading import Lock from uuid import uuid4 from bottle import response, static_file from weavelib.exceptions import BadArguments from weavelib.rpc import RPCClient, find_rpc from ...
true
true
f7455d8142a371035c0e628fd1d83aa0f6667b0d
1,481
py
Python
pushTasks/APNs2Tasks.py
szqh97/teamtalk-pushserver
35158c1122186072b08b1647f2fabbc5bccd08fb
[ "Apache-2.0" ]
null
null
null
pushTasks/APNs2Tasks.py
szqh97/teamtalk-pushserver
35158c1122186072b08b1647f2fabbc5bccd08fb
[ "Apache-2.0" ]
null
null
null
pushTasks/APNs2Tasks.py
szqh97/teamtalk-pushserver
35158c1122186072b08b1647f2fabbc5bccd08fb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from pushTasks.celery import app import logging import struct import redis import json import requests import sys sys.path.append('../') from util.common import install_logger from util import Http2APNsClient from pushserver_config ...
29.039216
118
0.713707
from __future__ import absolute_import from pushTasks.celery import app import logging import struct import redis import json import requests import sys sys.path.append('../') from util.common import install_logger from util import Http2APNsClient from pushserver_config import * logger = install_logger(__name__) ...
true
true
f7455db96ba10947778e9c034658a82635c79214
51,897
py
Python
certbot/certbot/_internal/main.py
ayust/certbot
a3abcc001a1dff41a6ecd90f779cf038e2f32cc9
[ "Apache-2.0" ]
null
null
null
certbot/certbot/_internal/main.py
ayust/certbot
a3abcc001a1dff41a6ecd90f779cf038e2f32cc9
[ "Apache-2.0" ]
null
null
null
certbot/certbot/_internal/main.py
ayust/certbot
a3abcc001a1dff41a6ecd90f779cf038e2f32cc9
[ "Apache-2.0" ]
null
null
null
"""Certbot main entry point.""" # pylint: disable=too-many-lines from __future__ import print_function import functools import logging.handlers import sys import configobj import josepy as jose import zope.component from acme import errors as acme_errors from acme.magic_typing import Union, Iterable, Optional, List,...
36.495781
101
0.683122
from __future__ import print_function import functools import logging.handlers import sys import configobj import josepy as jose import zope.component from acme import errors as acme_errors from acme.magic_typing import Union, Iterable, Optional, List, Tuple import certbot from certbot import crypto_util from cer...
true
true
f7455e660767e2c4eff42a54cfd70432bff850eb
8,965
py
Python
jarviscli/PluginManager.py
akhil-dh1/Jarvis
dc8ef7b278500575a31bad2f645bbed7cd601022
[ "MIT" ]
1
2021-08-28T17:00:56.000Z
2021-08-28T17:00:56.000Z
jarviscli/PluginManager.py
akhil-dh1/Jarvis
dc8ef7b278500575a31bad2f645bbed7cd601022
[ "MIT" ]
4
2019-09-25T14:20:32.000Z
2019-09-25T19:04:50.000Z
jarviscli/PluginManager.py
akhil-dh1/Jarvis
dc8ef7b278500575a31bad2f645bbed7cd601022
[ "MIT" ]
48
2019-09-25T09:08:38.000Z
2019-10-04T17:35:46.000Z
import sys from functools import partial import pluginmanager import six import plugin from utilities.GeneralUtilities import warning, error, executable_exists class PluginManager(object): """ Frontend for pluginmanager https://github.com/benhoff/pluginmanager Also handles plugin.PluginComposed ...
31.678445
81
0.602789
import sys from functools import partial import pluginmanager import six import plugin from utilities.GeneralUtilities import warning, error, executable_exists class PluginManager(object): def __init__(self): self._backend = pluginmanager.PluginInterface() self._plugin_dependency = PluginDepend...
true
true
f7455f548ec9bf9d57e40734c0f9f418b44cfd44
4,891
py
Python
bin/functions/execute_with_log.py
thrill/HiBench
3cf694b107924040754b87ddfb51648c97632eb7
[ "Apache-2.0" ]
4
2016-03-13T23:56:08.000Z
2017-08-28T19:49:58.000Z
bin/functions/execute_with_log.py
thrill/HiBench
3cf694b107924040754b87ddfb51648c97632eb7
[ "Apache-2.0" ]
null
null
null
bin/functions/execute_with_log.py
thrill/HiBench
3cf694b107924040754b87ddfb51648c97632eb7
[ "Apache-2.0" ]
2
2019-09-03T06:41:25.000Z
2020-07-26T00:59:55.000Z
#!/usr/bin/env python2.7 # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Li...
36.774436
170
0.612554
import sys, os, subprocess from terminalsize import get_terminal_size from time import time, sleep import re def load_colors(): color_script_fn = os.path.join(os.path.dirname(__file__), "color.enabled.sh") with open(color_script_fn) as f: return dict([(k,v.split("'")[1].replace('\e[...
true
true
f7455f96c67b4fa806b7f2d249e59c84c992f28a
24,136
py
Python
CountingByDetection_FasterRCNNs/cocoeval.py
huskermiao/MaizeLeafCounting
68d3d8e8bebf2dc74f2aa79a3fc62aca67de1dbb
[ "BSD-2-Clause" ]
5
2021-02-07T14:36:10.000Z
2022-03-29T04:14:11.000Z
CountingByDetection_FasterRCNNs/cocoeval.py
freemao/MaizeLeafCounting
68d3d8e8bebf2dc74f2aa79a3fc62aca67de1dbb
[ "BSD-2-Clause" ]
7
2021-04-06T18:26:38.000Z
2022-03-12T00:53:15.000Z
CountingByDetection_FasterRCNNs/cocoeval.py
freemao/MaizeLeafCounting
68d3d8e8bebf2dc74f2aa79a3fc62aca67de1dbb
[ "BSD-2-Clause" ]
3
2019-08-21T02:52:27.000Z
2020-05-22T07:36:24.000Z
__author__ = 'tsungyi' import numpy as np import datetime import time from collections import defaultdict import mask as maskUtils import copy class COCOeval: # Interface for evaluating detection on the Microsoft COCO dataset. # # The usage for CocoEval is as follows: # cocoGt=..., cocoDt=... ...
45.114019
131
0.51388
__author__ = 'tsungyi' import numpy as np import datetime import time from collections import defaultdict import mask as maskUtils import copy class COCOeval: def __init__(self, cocoGt=None, cocoDt=None, iouType='segm'): if not iouTy...
true
true
f7456036fe16e05952f63c682fc9af9b990e77e1
1,744
py
Python
app/auth/views.py
ChegeDaniella/Pitches
40b6bea69fe8774ca39e6199e9e80f32429503fd
[ "MIT" ]
null
null
null
app/auth/views.py
ChegeDaniella/Pitches
40b6bea69fe8774ca39e6199e9e80f32429503fd
[ "MIT" ]
null
null
null
app/auth/views.py
ChegeDaniella/Pitches
40b6bea69fe8774ca39e6199e9e80f32429503fd
[ "MIT" ]
null
null
null
from flask import render_template,redirect,url_for,flash,request from app.models import User from .forms import SignUpForm, LoginForm, validate_email from .. import db from . import auth from flask_login import login_user,logout_user,login_required from ..email import mail_message from wtforms import ValidationError ...
32.90566
106
0.675459
from flask import render_template,redirect,url_for,flash,request from app.models import User from .forms import SignUpForm, LoginForm, validate_email from .. import db from . import auth from flask_login import login_user,logout_user,login_required from ..email import mail_message from wtforms import ValidationError ...
true
true
f74561c2bd471d63f2b1093c646029902c3d6958
10,304
py
Python
5/download.py
yalov4uk/ML-labs
ca944610614c182259783449d9ec6e9135d6aaf1
[ "MIT" ]
null
null
null
5/download.py
yalov4uk/ML-labs
ca944610614c182259783449d9ec6e9135d6aaf1
[ "MIT" ]
null
null
null
5/download.py
yalov4uk/ML-labs
ca944610614c182259783449d9ec6e9135d6aaf1
[ "MIT" ]
null
null
null
import os import tarfile import email import re import nltk import urlextract import numpy as np import scipy.io as sio from sklearn.base import BaseEstimator, TransformerMixin from nltk.stem import PorterStemmer from html import unescape from email import parser from email.policy import default from six.moves import u...
30.575668
104
0.628591
import os import tarfile import email import re import nltk import urlextract import numpy as np import scipy.io as sio from sklearn.base import BaseEstimator, TransformerMixin from nltk.stem import PorterStemmer from html import unescape from email import parser from email.policy import default from six.moves import u...
true
true
f74561f3bdf18057fe696b27c85f993e9512190f
860
py
Python
adapters/gira/light_link.py
cocooma/domoticz-zigbee2mqtt-plugin
97b025beaff6b68f4f92dd434c6dda63f53efdd8
[ "MIT" ]
null
null
null
adapters/gira/light_link.py
cocooma/domoticz-zigbee2mqtt-plugin
97b025beaff6b68f4f92dd434c6dda63f53efdd8
[ "MIT" ]
null
null
null
adapters/gira/light_link.py
cocooma/domoticz-zigbee2mqtt-plugin
97b025beaff6b68f4f92dd434c6dda63f53efdd8
[ "MIT" ]
null
null
null
from adapters.base_adapter import Adapter from devices.switch.selector_switch import SelectorSwitch class GiraLightLink(Adapter): def __init__(self, devices): super().__init__(devices) self.switch = SelectorSwitch(devices, 'switch', 'action') self.switch.add_level('Off', 'off') se...
37.391304
79
0.693023
from adapters.base_adapter import Adapter from devices.switch.selector_switch import SelectorSwitch class GiraLightLink(Adapter): def __init__(self, devices): super().__init__(devices) self.switch = SelectorSwitch(devices, 'switch', 'action') self.switch.add_level('Off', 'off') se...
true
true
f74563914d59097c041780e14dbb3322cd07f17f
2,427
py
Python
azure/mgmt/compute/compute/v2017_03_30/models/additional_unattend_content.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
2
2020-07-29T14:22:17.000Z
2020-11-06T18:47:40.000Z
azure/mgmt/compute/compute/v2017_03_30/models/additional_unattend_content.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
1
2016-08-01T07:37:04.000Z
2016-08-01T07:37:04.000Z
azure/mgmt/compute/compute/v2017_03_30/models/additional_unattend_content.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
1
2020-12-12T21:04:41.000Z
2020-12-12T21:04:41.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
45.792453
93
0.672847
from msrest.serialization import Model class AdditionalUnattendContent(Model): _attribute_map = { 'pass_name': {'key': 'passName', 'type': 'PassNames'}, 'component_name': {'key': 'componentName', 'type': 'ComponentNames'}, 'setting_name': {'key': 'settingName', 'type': 'Setting...
true
true
f745640d2faf2605cbffcfc26185a67a461f493f
1,419
py
Python
src/main.py
artem-smotrakov/esp32-ldr
d8c6a02c8cee2a0eb632c62f92c4f65ca0cbc548
[ "MIT" ]
null
null
null
src/main.py
artem-smotrakov/esp32-ldr
d8c6a02c8cee2a0eb632c62f92c4f65ca0cbc548
[ "MIT" ]
null
null
null
src/main.py
artem-smotrakov/esp32-ldr
d8c6a02c8cee2a0eb632c62f92c4f65ca0cbc548
[ "MIT" ]
1
2021-01-05T09:01:23.000Z
2021-01-05T09:01:23.000Z
from machine import ADC, Pin import time class LDR: """This class read a value from a light dependent resistor (LDR)""" def __init__(self, pin, min_value=0, max_value=100): """ Initializes a new instance. :parameter pin A pin that's connected to an LDR. :parameter min_value A ...
26.773585
80
0.604651
from machine import ADC, Pin import time class LDR: def __init__(self, pin, min_value=0, max_value=100): if min_value >= max_value: raise Exception('Min value is greater or equal to max value') self.adc = ADC(Pin(pin)) self.adc.atten(ADC.ATTN_11DB) ...
true
true
f74564319f0d46d6a370c777f442b78c73e6217c
62,012
py
Python
python/ccxt/async_support/hitbtc.py
sandutsar/ccxt
f27c187fa1626a6c261c6fa5caaae89cb657461d
[ "MIT" ]
null
null
null
python/ccxt/async_support/hitbtc.py
sandutsar/ccxt
f27c187fa1626a6c261c6fa5caaae89cb657461d
[ "MIT" ]
null
null
null
python/ccxt/async_support/hitbtc.py
sandutsar/ccxt
f27c187fa1626a6c261c6fa5caaae89cb657461d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import A...
43.63969
189
0.530736
rt.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationError from ccxt.base.errors import PermissionDenied from ccxt.base.errors import BadSymbol from ccxt.base.errors import InsufficientFunds from ccxt.base.errors import InvalidOrder from c...
true
true
f7456466c21aa88e2bbb735d8c9d016e80e576bb
1,280
py
Python
makeLib/makeLib.py
brzx/pydataloader
005c347b8fd9aca0a35ecf8eccce0a35e7e6da52
[ "BSD-2-Clause" ]
null
null
null
makeLib/makeLib.py
brzx/pydataloader
005c347b8fd9aca0a35ecf8eccce0a35e7e6da52
[ "BSD-2-Clause" ]
null
null
null
makeLib/makeLib.py
brzx/pydataloader
005c347b8fd9aca0a35ecf8eccce0a35e7e6da52
[ "BSD-2-Clause" ]
null
null
null
import shutil, zipfile, os, time def delFile(path): for root, dirs, files in os.walk(path, topdown=False): for name in files: os.remove(os.path.join(root, name)) for name in dirs: os.rmdir(os.path.join(root, name)) for root, dirs, files in os.walk(path, topdown...
29.090909
64
0.586719
import shutil, zipfile, os, time def delFile(path): for root, dirs, files in os.walk(path, topdown=False): for name in files: os.remove(os.path.join(root, name)) for name in dirs: os.rmdir(os.path.join(root, name)) for root, dirs, files in os.walk(path, topdown...
true
true
f74565801fb603bf55fb4dfe9ae48bc82279a0a7
1,330
py
Python
conans/test/server/crypto/jwt_test.py
datalogics-kam/conan
7bf230cd5f8ef68eb804908777ebaad75e951b16
[ "MIT" ]
29
2016-01-27T09:43:44.000Z
2020-03-12T04:16:02.000Z
conans/test/server/crypto/jwt_test.py
datalogics-kam/conan
7bf230cd5f8ef68eb804908777ebaad75e951b16
[ "MIT" ]
20
2016-01-22T15:59:33.000Z
2016-10-28T10:22:45.000Z
conans/test/server/crypto/jwt_test.py
datalogics-kam/conan
7bf230cd5f8ef68eb804908777ebaad75e951b16
[ "MIT" ]
6
2016-02-11T14:09:04.000Z
2018-03-17T00:18:35.000Z
import unittest from conans.server.crypto.jwt.jwt_credentials_manager import JWTCredentialsManager from conans.server.crypto.jwt.jwt_manager import JWTManager from datetime import timedelta import time import jwt from jwt import DecodeError class JwtTest(unittest.TestCase): def setUp(self): unittest.Test...
34.102564
82
0.718045
import unittest from conans.server.crypto.jwt.jwt_credentials_manager import JWTCredentialsManager from conans.server.crypto.jwt.jwt_manager import JWTManager from datetime import timedelta import time import jwt from jwt import DecodeError class JwtTest(unittest.TestCase): def setUp(self): unittest.Test...
true
true
f74565a41e5333fd88905d25cd775c525fa7b7a2
14,186
py
Python
vue_backend/api/migrations/0001_initial.py
hanson190505/coteam
8bd01f4edc2a0b2a65dc18d68e36efb11cbdf576
[ "MIT" ]
1
2021-03-18T17:04:52.000Z
2021-03-18T17:04:52.000Z
vue_backend/api/migrations/0001_initial.py
hanson190505/coteam
8bd01f4edc2a0b2a65dc18d68e36efb11cbdf576
[ "MIT" ]
11
2020-04-03T04:16:24.000Z
2022-03-26T10:36:49.000Z
vue_backend/api/migrations/0001_initial.py
hanson190505/coteam
8bd01f4edc2a0b2a65dc18d68e36efb11cbdf576
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-09-24 09:38 import api.models import datetime from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('user', '0002_customer'), ] opera...
64.190045
190
0.592063
import api.models import datetime from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('user', '0002_customer'), ] operations = [ migrations.CreateModel( ...
true
true
f74565b49e62703eff840a9ccb87fc5864fe885b
8,383
py
Python
packages/python/plotly/plotly/graph_objs/layout/annotation/_font.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/annotation/_font.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/annotation/_font.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.annotation" _path_str = "layout.annotation.font" _valid_props = {"color", "family", ...
36.929515
84
0.564118
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): _parent_path_str = "layout.annotation" _path_str = "layout.annotation.font" _valid_props = {"color", "family", "size"} @property def...
true
true
f7456619d0c4a002342719eed546dbd2300bd608
2,034
py
Python
docs/source/conf.py
casparschwa/beaconrunner
d5430e08b120462beea19f65a4cf335ec9eb9134
[ "MIT" ]
11
2020-07-06T12:36:17.000Z
2021-04-22T11:00:18.000Z
docs/source/conf.py
casparschwa/beaconrunner
d5430e08b120462beea19f65a4cf335ec9eb9134
[ "MIT" ]
3
2021-09-12T07:31:21.000Z
2022-03-12T01:03:03.000Z
docs/source/conf.py
casparschwa/beaconrunner
d5430e08b120462beea19f65a4cf335ec9eb9134
[ "MIT" ]
12
2021-05-24T15:21:04.000Z
2022-03-28T17:50:37.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
33.9
79
0.664208
import os import sys print(os.path.abspath('../..')) sys.path.insert(0, os.path.abspath('../..')) sys.setrecursionlimit(1500) project = 'beaconrunner' copyright = '2020, Barnabé Monnot' author = 'Barnabé Monnot' release = '0.1.2' extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.napoleon'...
true
true
f74566e480520f4e835c07fb77bb586112be532e
3,197
py
Python
tests/ml/test_overfit.py
ZhaoJY1/nussl
57aabeabca3b2e75849e1659a522e3c2f77e9172
[ "MIT" ]
259
2016-10-04T19:21:25.000Z
2020-04-15T14:39:54.000Z
tests/ml/test_overfit.py
titocaco/nussl
af7d0c50e01d107f4ef3305b89eb130d95d0a7cd
[ "MIT" ]
115
2016-10-26T01:58:04.000Z
2020-04-15T07:53:00.000Z
tests/ml/test_overfit.py
titocaco/nussl
af7d0c50e01d107f4ef3305b89eb130d95d0a7cd
[ "MIT" ]
64
2017-04-11T04:10:35.000Z
2020-04-08T11:23:48.000Z
from nussl import ml, datasets, evaluation import tempfile from torch import optim import numpy as np import logging import os import torch from matplotlib import pyplot as plt logging.basicConfig( format='%(asctime)s,%(msecs)d %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s', datefmt='%Y-%m-%d:%H:%M:%S'...
32.958763
89
0.657491
from nussl import ml, datasets, evaluation import tempfile from torch import optim import numpy as np import logging import os import torch from matplotlib import pyplot as plt logging.basicConfig( format='%(asctime)s,%(msecs)d %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s', datefmt='%Y-%m-%d:%H:%M:%S'...
true
true
f7456a8275699b260ad5cef2486c9d9f08fcac23
1,580
py
Python
script.py
Wason1/Rows-to-columns-consolidator
21ee991ba907ba61708d24acfc6d5b3a3e754677
[ "MIT" ]
null
null
null
script.py
Wason1/Rows-to-columns-consolidator
21ee991ba907ba61708d24acfc6d5b3a3e754677
[ "MIT" ]
null
null
null
script.py
Wason1/Rows-to-columns-consolidator
21ee991ba907ba61708d24acfc6d5b3a3e754677
[ "MIT" ]
null
null
null
#Import Libs import pandas as pd # Inputs #col_name = input('What is the name of the column to convert to columns?: ') #keyz = input('what are the names of the columns that uniquely identify a row? (seperate these with pipes "|"):') #keyz.split('|') file_dir = r'data.xlsx' output_dir = r'data-out.xlsx' list_key_cols =...
27.719298
123
0.691139
import pandas as pd file_dir = r'data.xlsx' output_dir = r'data-out.xlsx' list_key_cols = ['Person - Medical Record Number', 'CE-Verified DT/TM'] split_col = 'Clinical Event' filler_col = 'Clinical Event Result' df = pd.read_excel( file_dir ) df = df.applymap(str) series_primary_key = df[list_key_c...
true
true
f7456b0f1e7e2bed054c8101b5c14f38a4ebafc5
10,374
py
Python
registration/views.py
AVS18/Hospital-Management-System
cfe31cd20eb1986ddee27a39733e28cec4a8d82d
[ "Apache-2.0" ]
null
null
null
registration/views.py
AVS18/Hospital-Management-System
cfe31cd20eb1986ddee27a39733e28cec4a8d82d
[ "Apache-2.0" ]
null
null
null
registration/views.py
AVS18/Hospital-Management-System
cfe31cd20eb1986ddee27a39733e28cec4a8d82d
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render,redirect from django.db import connection from django.core.files.storage import FileSystemStorage from django.contrib.auth import get_user_model,authenticate from django.contrib import messages,auth from django.conf import settings from .models import Profile, Appointments, Prescript...
46.72973
289
0.675535
from django.shortcuts import render,redirect from django.db import connection from django.core.files.storage import FileSystemStorage from django.contrib.auth import get_user_model,authenticate from django.contrib import messages,auth from django.conf import settings from .models import Profile, Appointments, Prescript...
true
true
f7456b631e584c09bc42847974b184ecd49a71cf
740
py
Python
setup.py
sam-james-harding/CombiParser
6abd378ecbd1e27ddc341ac6316b5f505393a7c5
[ "MIT" ]
null
null
null
setup.py
sam-james-harding/CombiParser
6abd378ecbd1e27ddc341ac6316b5f505393a7c5
[ "MIT" ]
null
null
null
setup.py
sam-james-harding/CombiParser
6abd378ecbd1e27ddc341ac6316b5f505393a7c5
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = 'CombiParser', packages = ['CombiParser'], version = '0.4', license='MIT', description = 'A simple combinator parser.', author = 'Sam Harding', author_email = 'samueljames.harding@icloud.com', url = 'https://github.com/sam-james-harding/CombiParser', dow...
33.636364
98
0.675676
from distutils.core import setup setup( name = 'CombiParser', packages = ['CombiParser'], version = '0.4', license='MIT', description = 'A simple combinator parser.', author = 'Sam Harding', author_email = 'samueljames.harding@icloud.com', url = 'https://github.com/sam-james-harding/CombiParser', dow...
true
true
f7456b74b404522474c8da8fc154f1b8bdee1947
1,044
py
Python
setup.py
kampikd/python-i18n
ac72baca8d44193aa39a062c67f583d01c3f060a
[ "MIT" ]
104
2018-09-27T07:43:38.000Z
2022-03-30T04:16:38.000Z
setup.py
kampikd/python-i18n
ac72baca8d44193aa39a062c67f583d01c3f060a
[ "MIT" ]
23
2018-10-22T11:48:08.000Z
2022-03-09T21:25:57.000Z
setup.py
kampikd/python-i18n
ac72baca8d44193aa39a062c67f583d01c3f060a
[ "MIT" ]
17
2018-10-20T17:50:34.000Z
2021-11-06T07:23:12.000Z
from setuptools import setup setup( name='python-i18n', version='0.3.9', description='Translation library for Python', long_description=open('README.md').read(), long_description_content_type='text/markdown', author='Daniel Perez', author_email='tuvistavie@gmail.com', url='https://githu...
32.625
80
0.6341
from setuptools import setup setup( name='python-i18n', version='0.3.9', description='Translation library for Python', long_description=open('README.md').read(), long_description_content_type='text/markdown', author='Daniel Perez', author_email='tuvistavie@gmail.com', url='https://githu...
true
true
f7456b7b5b9ee4011fabc497b4803cf6451dd114
15,987
py
Python
sws.py
ltqusst/lpc_vocoder
baf29d40dcf9f4b80a73146dca939c7841045441
[ "MIT" ]
6
2019-10-29T02:26:47.000Z
2021-10-06T00:57:04.000Z
sws.py
ltqusst/lpc_vocoder
baf29d40dcf9f4b80a73146dca939c7841045441
[ "MIT" ]
null
null
null
sws.py
ltqusst/lpc_vocoder
baf29d40dcf9f4b80a73146dca939c7841045441
[ "MIT" ]
2
2020-05-30T11:20:47.000Z
2022-01-07T07:46:28.000Z
## MIT License # Copyright (c) 2017 John Williamson # Copyright (c) 2008 Cournapeau David # 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 t...
32.29697
131
0.595421
import numpy as np import scipy, scipy.io, scipy.io.wavfile, scipy.signal import os from pathlib import Path import argparse def levinson_1d(r, order): r = np.atleast_1d(r) if r.ndim > 1: raise ValueError("Only rank 1 are supported for now.") n = r.size if n < 1: raise Val...
true
true
f7456bdf1f0369e0c03a142fec9ff9b301f03aac
768
py
Python
resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtXml/QXmlDTDHandler.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
1
2020-04-20T02:27:20.000Z
2020-04-20T02:27:20.000Z
resources/dot_PyCharm/system/python_stubs/cache/d1acfdaecbc43dfcba0c1287ba0e29c0ef0e2d37695269b2505d76ec531b8b76/PySide/QtXml/QXmlDTDHandler.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
resources/dot_PyCharm/system/python_stubs/cache/d1acfdaecbc43dfcba0c1287ba0e29c0ef0e2d37695269b2505d76ec531b8b76/PySide/QtXml/QXmlDTDHandler.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
# encoding: utf-8 # module PySide.QtXml # from C:\Python27\lib\site-packages\PySide\QtXml.pyd # by generator 1.147 # no doc # imports import Shiboken as __Shiboken class QXmlDTDHandler(__Shiboken.Object): # no doc def errorString(self, *args, **kwargs): # real signature unknown pass def notation...
24.774194
77
0.65625
import Shiboken as __Shiboken class QXmlDTDHandler(__Shiboken.Object): def errorString(self, *args, **kwargs): pass def notationDecl(self, *args, **kwargs): pass def unparsedEntityDecl(self, *args, **kwargs): pass def __init__(self, *args, **kwargs): ...
true
true
f7456d24ad6d378777da480450d01423058bab88
7,432
py
Python
venv/Lib/site-packages/pandas/tests/extension/test_categorical.py
mokshagna517/recommendation_sys
bc8ced225dff3c93d619ff5da363f42d0aa0676c
[ "MIT" ]
5
2019-07-26T15:22:41.000Z
2021-09-28T09:22:17.000Z
venv/Lib/site-packages/pandas/tests/extension/test_categorical.py
mokshagna517/recommendation_sys
bc8ced225dff3c93d619ff5da363f42d0aa0676c
[ "MIT" ]
16
2021-03-19T09:44:52.000Z
2022-03-12T00:22:14.000Z
venv/Lib/site-packages/pandas/tests/extension/test_categorical.py
mokshagna517/recommendation_sys
bc8ced225dff3c93d619ff5da363f42d0aa0676c
[ "MIT" ]
9
2020-02-05T10:24:12.000Z
2020-02-10T13:08:50.000Z
""" This file contains a minimal set of tests for compliance with the extension array interface test suite, and should contain no other tests. The test suite for the full functionality of the array is located in `pandas/tests/arrays/`. The tests in this file are inherited from the BaseExtensionTests, and only minimal ...
30.211382
81
0.689047
import string import numpy as np import pytest import pandas as pd from pandas import Categorical from pandas.api.types import CategoricalDtype from pandas.tests.extension import base import pandas.util.testing as tm def make_data(): while True: values = np.random.choice(list(string.ascii_letters), size...
true
true
f7456d3f794dfc3a6bf867371ddbbc9c21454b8d
275
py
Python
artstdweb/infinityroom/apps.py
shaeed/ArtStudio
3e3e3ed16400592a0271108e04b3cce2f7f5f192
[ "MIT" ]
null
null
null
artstdweb/infinityroom/apps.py
shaeed/ArtStudio
3e3e3ed16400592a0271108e04b3cce2f7f5f192
[ "MIT" ]
null
null
null
artstdweb/infinityroom/apps.py
shaeed/ArtStudio
3e3e3ed16400592a0271108e04b3cce2f7f5f192
[ "MIT" ]
null
null
null
from django.apps import AppConfig #from infinityroom.models import GlobalVars class InfinityroomConfig(AppConfig): name = 'infinityroom' def ready(self): print('shaeed khan') #g = GlobalVars.objects.all() #for a in g: # a.delete()
25
43
0.643636
from django.apps import AppConfig class InfinityroomConfig(AppConfig): name = 'infinityroom' def ready(self): print('shaeed khan')
true
true
f7456dada54f0b7565b5df6cb40cc75a90b2f799
928
py
Python
video/migrations/0001_initial.py
rcy17/YuketangVideo
9ce82d3a64c7bd845743e131378117e5dfd5a8e2
[ "MIT" ]
null
null
null
video/migrations/0001_initial.py
rcy17/YuketangVideo
9ce82d3a64c7bd845743e131378117e5dfd5a8e2
[ "MIT" ]
null
null
null
video/migrations/0001_initial.py
rcy17/YuketangVideo
9ce82d3a64c7bd845743e131378117e5dfd5a8e2
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-04-01 23:55 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Video', fields=[ ('id', models.AutoField(au...
34.37037
136
0.571121
from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Video', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=Fa...
true
true
f7456e3b7cce5be716c2af7523db2419cd557cbb
2,074
py
Python
tests/wikipedia_page_test.py
fjhheras/Wikipedia-API
e276127e11851e461503eb4c935dc7864b8c11c5
[ "MIT" ]
null
null
null
tests/wikipedia_page_test.py
fjhheras/Wikipedia-API
e276127e11851e461503eb4c935dc7864b8c11c5
[ "MIT" ]
null
null
null
tests/wikipedia_page_test.py
fjhheras/Wikipedia-API
e276127e11851e461503eb4c935dc7864b8c11c5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import wikipediaapi from tests.mock_data import wikipedia_api_request class TestWikipediaPage(unittest.TestCase): def setUp(self): self.wiki = wikipediaapi.Wikipedia("en") self.wiki._query = wikipedia_api_request def test_repr_before_fetching(self): ...
31.424242
62
0.612343
import unittest import wikipediaapi from tests.mock_data import wikipedia_api_request class TestWikipediaPage(unittest.TestCase): def setUp(self): self.wiki = wikipediaapi.Wikipedia("en") self.wiki._query = wikipedia_api_request def test_repr_before_fetching(self): page = self.wiki....
true
true
f7456e7d15441eb8ad47cb8a56dbff9ed195c6e6
3,342
py
Python
cpp/codegen/cpp/entry_types.py
tjzhou23/profilo
baeea045a00d2403cc3f45778bf9cb69d33801da
[ "Apache-2.0" ]
1,466
2018-03-13T17:13:49.000Z
2022-03-31T07:08:51.000Z
cpp/codegen/cpp/entry_types.py
tjzhou23/profilo
baeea045a00d2403cc3f45778bf9cb69d33801da
[ "Apache-2.0" ]
101
2018-03-13T18:43:34.000Z
2022-03-15T00:44:52.000Z
cpp/codegen/cpp/entry_types.py
tjzhou23/profilo
baeea045a00d2403cc3f45778bf9cb69d33801da
[ "Apache-2.0" ]
160
2018-03-13T18:08:21.000Z
2022-03-14T00:46:34.000Z
""" Copyright 2018-present, Facebook, Inc. 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,...
26.314961
86
0.676242
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from ..codegen import Codegen from ..codegen import SIGNED_SOURCE class CppEntryTypesCodegen(Codegen): def __init__(self, entries): super(CppEntryTypesCode...
true
true
f7456f641343e56767c1d0d7cb8511116636424d
2,885
py
Python
year_2017/day_11.py
gchazot/aoc
1926114b1060a927be3f87732ba0a399afd98ae4
[ "MIT" ]
1
2020-04-12T16:14:29.000Z
2020-04-12T16:14:29.000Z
year_2017/day_11.py
gchazot/aoc
1926114b1060a927be3f87732ba0a399afd98ae4
[ "MIT" ]
null
null
null
year_2017/day_11.py
gchazot/aoc
1926114b1060a927be3f87732ba0a399afd98ae4
[ "MIT" ]
null
null
null
from unittest import TestCase import operator from aoc_utils.data import data_text class Coordinates(object): def __init__(self, coordinates): self.coordinates = coordinates[:] def __str__(self): return "{}".format(self.coordinates) def __getitem__(self, item): return self.coordi...
30.368421
89
0.632236
from unittest import TestCase import operator from aoc_utils.data import data_text class Coordinates(object): def __init__(self, coordinates): self.coordinates = coordinates[:] def __str__(self): return "{}".format(self.coordinates) def __getitem__(self, item): return self.coordi...
true
true