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
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f7344259f9ea929ba22c289ed7728299838a7401
1,394
py
Python
05-07-a2/sample_05_button.py
hiro345g/raspi_magazine_201610_toku1
f5dde65409eaeef15e15e6e2d5c86cbf0ac88ef5
[ "MIT" ]
null
null
null
05-07-a2/sample_05_button.py
hiro345g/raspi_magazine_201610_toku1
f5dde65409eaeef15e15e6e2d5c86cbf0ac88ef5
[ "MIT" ]
null
null
null
05-07-a2/sample_05_button.py
hiro345g/raspi_magazine_201610_toku1
f5dde65409eaeef15e15e6e2d5c86cbf0ac88ef5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import time import wiringpi # 定数宣言 LED_PIN = 4 # LEDのGPIO番号 BUTTON_PIN = 13 # スイッチのGPIO番号 BUTTON_DELAY = 0.5 # チャタリング防止用の遅延時間 INTERVAL = 0.1 # スイッチチェック間隔 def get_button_value(pin): """指定したpinのスイッチ入力状態を取得""" v = wiringpi.digitalRead(pin) if v == wiringpi.H...
27.88
65
0.610473
import time import wiringpi LED_PIN = 4 BUTTON_PIN = 13 BUTTON_DELAY = 0.5 INTERVAL = 0.1 def get_button_value(pin): v = wiringpi.digitalRead(pin) if v == wiringpi.HIGH: time.sleep(BUTTON_DELAY) return v def main(): wiringpi.wiringPiSetupGpio() wiringpi.pinMode(LED...
true
true
f73443186c3bcf41147c14278c5082c02e5001aa
565
py
Python
qu.py
oldshensheep/crawl-yande.re
ffb512d9ca98f666383f856f833b851bb0982a00
[ "MIT" ]
1
2021-04-12T06:29:43.000Z
2021-04-12T06:29:43.000Z
qu.py
oldshensheep/crawl-yande.re
ffb512d9ca98f666383f856f833b851bb0982a00
[ "MIT" ]
null
null
null
qu.py
oldshensheep/crawl-yande.re
ffb512d9ca98f666383f856f833b851bb0982a00
[ "MIT" ]
null
null
null
import queue import threading import time import concurrent.futures q = queue.Queue(maxsize=10) def Producer(name): count = 1 while True: q.put("包子 %s" % count) print("做了包子", count) count += 1 time.sleep(0.5) def Consumer(name): while True: print("[%s] 取到[%s] 并且吃...
18.225806
55
0.60531
import queue import threading import time import concurrent.futures q = queue.Queue(maxsize=10) def Producer(name): count = 1 while True: q.put("包子 %s" % count) print("做了包子", count) count += 1 time.sleep(0.5) def Consumer(name): while True: print("[%s] 取到[%s] 并且吃...
true
true
f73443a2f76a5004632b0b69d392edbe51fe587b
73
py
Python
wsgi.py
BruninLima/HotOrCold
d8d0ab92d949bfa2e3b62c14659e12a7ce821b1f
[ "MIT" ]
null
null
null
wsgi.py
BruninLima/HotOrCold
d8d0ab92d949bfa2e3b62c14659e12a7ce821b1f
[ "MIT" ]
null
null
null
wsgi.py
BruninLima/HotOrCold
d8d0ab92d949bfa2e3b62c14659e12a7ce821b1f
[ "MIT" ]
null
null
null
from hotorcold.main import app if __name__ == "__main__": app.run()
14.6
30
0.684932
from hotorcold.main import app if __name__ == "__main__": app.run()
true
true
f73443b348d868b2813099929e72cbd8722638ba
9,711
py
Python
nipype/utils/misc.py
kastman/nipype
15a8d6f57067494196fe639095253217a9235c3c
[ "Apache-2.0" ]
3
2015-11-03T08:24:57.000Z
2018-05-02T15:26:28.000Z
nipype/utils/misc.py
kastman/nipype
15a8d6f57067494196fe639095253217a9235c3c
[ "Apache-2.0" ]
null
null
null
nipype/utils/misc.py
kastman/nipype
15a8d6f57067494196fe639095253217a9235c3c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Miscellaneous utility functions """ from __future__ import (print_function, unicode_literals, division, absolute_import) from builtins import next, str im...
29.697248
81
0.604675
from __future__ import (print_function, unicode_literals, division, absolute_import) from builtins import next, str import os import sys import re from collections import Iterator from warnings import warn from distutils.version import LooseVersion import numpy as np from future.utils impo...
true
true
f7344479dd36c883ecee3ae2e8ca891b5e378565
4,706
py
Python
unlock/util/runtime.py
NeuralProsthesisLab/unlock
0c4d95abdab288d3e657ca2db867b06f755f26ff
[ "BSD-3-Clause" ]
6
2017-05-05T01:08:55.000Z
2021-08-03T21:50:07.000Z
unlock/util/runtime.py
NeuralProsthesisLab/unlock
0c4d95abdab288d3e657ca2db867b06f755f26ff
[ "BSD-3-Clause" ]
1
2015-05-21T01:02:50.000Z
2015-05-21T16:03:43.000Z
unlock/util/runtime.py
NeuralProsthesisLab/unlock
0c4d95abdab288d3e657ca2db867b06f755f26ff
[ "BSD-3-Clause" ]
4
2015-05-21T12:38:42.000Z
2022-03-28T15:47:58.000Z
# Copyright (c) James Percent, Byron Galbraith and Unlock contributors. # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notic...
39.216667
132
0.68742
from unlock.util.observable import * from unlock.util.saferef import * from unlock.util.injector import * from optparse import OptionParser import json import logging import logging.config import sys __author__ = 'jpercent' class RuntimeAssistant(object): def __init__(self): sup...
true
true
f734452a3d6c1f77a17ae0567fdcecc839f622e6
21,334
py
Python
node/tests/k8st/tests/test_bgp_advert_v6.py
mikestephen/calico
6c512191c05097dbfacbd18fb23d1ebff18961fd
[ "Apache-2.0" ]
3,973
2015-07-29T21:13:46.000Z
2022-03-31T09:27:38.000Z
node/tests/k8st/tests/test_bgp_advert_v6.py
mikestephen/calico
6c512191c05097dbfacbd18fb23d1ebff18961fd
[ "Apache-2.0" ]
4,584
2015-07-29T08:47:22.000Z
2022-03-31T22:54:26.000Z
node/tests/k8st/tests/test_bgp_advert_v6.py
mikestephen/calico
6c512191c05097dbfacbd18fb23d1ebff18961fd
[ "Apache-2.0" ]
1,066
2015-07-30T06:29:18.000Z
2022-03-31T20:01:47.000Z
# Copyright (c) 2020 Tigera, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
36.220713
142
0.640386
import logging import subprocess import json import sys from tests.k8st.test_base import TestBaseV6 from tests.k8st.utils.utils import start_external_node_with_bgp, \ retry_until_success, run, curl, DiagsCollector, calicoctl, kubectl, node_info _log = logging.getLogger(__name__) attempts = 10 b...
true
true
f734452d72d6bc4ef4dc0111c7b52b482e2b130c
251
py
Python
Tools/Utilities.py
yeswanth/Ants
981ac5ab9037889de4a4a445f04a1ad0300d7c54
[ "MIT" ]
null
null
null
Tools/Utilities.py
yeswanth/Ants
981ac5ab9037889de4a4a445f04a1ad0300d7c54
[ "MIT" ]
1
2015-09-24T07:02:21.000Z
2015-09-24T07:02:21.000Z
Tools/Utilities.py
yeswanth/Ants
981ac5ab9037889de4a4a445f04a1ad0300d7c54
[ "MIT" ]
null
null
null
def ant_map_tuple_conversion_hook(obj) : modified_obj = {} for key in obj : if key in ["hills", "walls"] : val = [tuple(l) for l in obj[key]] modified_obj[key] = val else : modified_obj[key] = obj[key] return modified_obj
25.1
40
0.625498
def ant_map_tuple_conversion_hook(obj) : modified_obj = {} for key in obj : if key in ["hills", "walls"] : val = [tuple(l) for l in obj[key]] modified_obj[key] = val else : modified_obj[key] = obj[key] return modified_obj
false
true
f73447ea2b4df40e7b991b928b343d4332b91d01
18,127
py
Python
core/misc.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
core/misc.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
core/misc.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012, Almar Klein # # Visvis is distributed under the terms of the (new) BSD License. # The full license can be found in 'license.txt'. """ Module misc Various things are defined here that did not fit nicely in any other module. This module is also meant to be imported by man...
29.619281
98
0.580515
""" Module misc Various things are defined here that did not fit nicely in any other module. This module is also meant to be imported by many other visvis modules, and therefore should not depend on other visvis modules. """ import sys, os import numpy as np from visvis import ssdf import OpenGL.GL as gl O...
false
true
f73449826d629af809e16cb66903c50f62680e0c
3,617
py
Python
configs/representation/archive/walker/walker_r18_video_8x8x1_temp1e-2_right_50e_kinetics400_rgb.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/archive/walker/walker_r18_video_8x8x1_temp1e-2_right_50e_kinetics400_rgb.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/archive/walker/walker_r18_video_8x8x1_temp1e-2_right_50e_kinetics400_rgb.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='SpaceTimeWalker', backbone=dict( type='ResNet', pretrained=None, depth=18, out_indices=(3, ), norm_eval=False, zero_init_residual=True), cls_head=dict( type='WalkerHead', num_classes=400, in_channels...
31.72807
78
0.66381
model = dict( type='SpaceTimeWalker', backbone=dict( type='ResNet', pretrained=None, depth=18, out_indices=(3, ), norm_eval=False, zero_init_residual=True), cls_head=dict( type='WalkerHead', num_classes=400, in_channels=512, ch...
true
true
f7344a7f8c86b007aba6e7b603e7c9312336814c
10,179
py
Python
src/lib/models/networks/msra_resnet.py
jscsmk/CenterNet
d7c643bba2b373c15abfa3d25ffd5304a313fa49
[ "MIT" ]
null
null
null
src/lib/models/networks/msra_resnet.py
jscsmk/CenterNet
d7c643bba2b373c15abfa3d25ffd5304a313fa49
[ "MIT" ]
null
null
null
src/lib/models/networks/msra_resnet.py
jscsmk/CenterNet
d7c643bba2b373c15abfa3d25ffd5304a313fa49
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # Modified by Xingyi Zhou # ------------------------------------------------------------------------------ from __future__ import a...
36.224199
94
0.558405
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import torch import torch.nn as nn import torch.utils.model_zoo as model_zoo BN_MOMENTUM = 0.1 model_urls = { 'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth', ...
true
true
f7344d91646bee887a33588a68e2c919c555a5d1
106
py
Python
stack_overseer/question_monitor/apps.py
Superskyyy/StackOverseer
195f73d372c581d947e9f6ed0883b40a4a74062d
[ "MIT" ]
1
2020-08-14T16:33:10.000Z
2020-08-14T16:33:10.000Z
stack_overseer/question_monitor/apps.py
Superskyyy/StackOverseer
195f73d372c581d947e9f6ed0883b40a4a74062d
[ "MIT" ]
null
null
null
stack_overseer/question_monitor/apps.py
Superskyyy/StackOverseer
195f73d372c581d947e9f6ed0883b40a4a74062d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class QuestionMonitorConfig(AppConfig): name = 'question_monitor'
17.666667
39
0.792453
from django.apps import AppConfig class QuestionMonitorConfig(AppConfig): name = 'question_monitor'
true
true
f7344e269516c6d5c79cfade85243463ddf17a6b
212
py
Python
pyamg/util/tests/test_warn.py
thomasjpfan/pyamg
b0904d31c8da0c29affcd7d0fcd2bb8cb910b42a
[ "MIT" ]
null
null
null
pyamg/util/tests/test_warn.py
thomasjpfan/pyamg
b0904d31c8da0c29affcd7d0fcd2bb8cb910b42a
[ "MIT" ]
null
null
null
pyamg/util/tests/test_warn.py
thomasjpfan/pyamg
b0904d31c8da0c29affcd7d0fcd2bb8cb910b42a
[ "MIT" ]
2
2022-01-03T00:20:22.000Z
2022-03-01T12:02:54.000Z
import warnings from numpy.testing import TestCase class TestWarn(TestCase): def test_f(self): warnings.filterwarnings("ignore", message="another warning") warnings.warn("another warning!")
23.555556
68
0.721698
import warnings from numpy.testing import TestCase class TestWarn(TestCase): def test_f(self): warnings.filterwarnings("ignore", message="another warning") warnings.warn("another warning!")
true
true
f7344e7b0bf68cc20035ce3b513932116c5a03cd
5,882
py
Python
pycommons/mqtt.py
jodabyte/bifrost
dfbfa85ceba30a8f540c1e110d44412771cc844f
[ "MIT" ]
null
null
null
pycommons/mqtt.py
jodabyte/bifrost
dfbfa85ceba30a8f540c1e110d44412771cc844f
[ "MIT" ]
null
null
null
pycommons/mqtt.py
jodabyte/bifrost
dfbfa85ceba30a8f540c1e110d44412771cc844f
[ "MIT" ]
null
null
null
import json import logging from typing import Any, Callable, List import paho.mqtt.client as mqtt from paho.mqtt.client import MQTTMessage, SubscribeOptions from paho.mqtt.properties import Properties from paho.mqtt.reasoncodes import PacketTypes, ReasonCodes class MqttClient: def __init__( self, ...
37.227848
269
0.617647
import json import logging from typing import Any, Callable, List import paho.mqtt.client as mqtt from paho.mqtt.client import MQTTMessage, SubscribeOptions from paho.mqtt.properties import Properties from paho.mqtt.reasoncodes import PacketTypes, ReasonCodes class MqttClient: def __init__( self, ...
true
true
f7344e9bd9127ea21b63d85bb7d004b5c061cfab
49,202
py
Python
python/src/chirpstack_api/as_pb/external/api/multicastGroup_pb2.py
wisang1999/chirpstack-api
905b310a883b2a27a5c6460d547c6eb7d92524e7
[ "MIT" ]
null
null
null
python/src/chirpstack_api/as_pb/external/api/multicastGroup_pb2.py
wisang1999/chirpstack-api
905b310a883b2a27a5c6460d547c6eb7d92524e7
[ "MIT" ]
null
null
null
python/src/chirpstack_api/as_pb/external/api/multicastGroup_pb2.py
wisang1999/chirpstack-api
905b310a883b2a27a5c6460d547c6eb7d92524e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: chirpstack-api/as_pb/external/api/multicastGroup.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pr...
45.015554
5,094
0.78068
from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() ...
true
true
f7344ebc17b2922dc48ea522bcfbff576ca33829
319
py
Python
todo/urls.py
gleecoders/django-crash-course
2f565b6c9e599b5e5f3411058727b5fccbdbfa6d
[ "MIT" ]
null
null
null
todo/urls.py
gleecoders/django-crash-course
2f565b6c9e599b5e5f3411058727b5fccbdbfa6d
[ "MIT" ]
null
null
null
todo/urls.py
gleecoders/django-crash-course
2f565b6c9e599b5e5f3411058727b5fccbdbfa6d
[ "MIT" ]
null
null
null
from django.urls import path from .views import todo_list, todo_detail, todo_create, todo_update, todo_delete app_name = 'todos' urlpatterns = [ path('', todo_list), path('create/', todo_create), path('<id>/', todo_detail), path('<id>/update/', todo_update), path('<id>/delete/', todo_delete), ]
22.785714
80
0.667712
from django.urls import path from .views import todo_list, todo_detail, todo_create, todo_update, todo_delete app_name = 'todos' urlpatterns = [ path('', todo_list), path('create/', todo_create), path('<id>/', todo_detail), path('<id>/update/', todo_update), path('<id>/delete/', todo_delete), ]
true
true
f7344f3df2f0db66f2666cc0b6ab52e4556eac60
265,536
py
Python
release/stubs/Autodesk/Revit/DB/Electrical.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs/Autodesk/Revit/DB/Electrical.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs/Autodesk/Revit/DB/Electrical.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
# encoding: utf-8 # module Autodesk.Revit.DB.Electrical calls itself Electrical # from RevitAPI, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null # by generator 1.145 # no doc # no imports # no functions # classes class CableTrayConduitBase(MEPCurve, IDisposable): """ The CableTrayConduitBase cla...
36.13718
291
0.620816
class CableTrayConduitBase(MEPCurve, IDisposable): """ The CableTrayConduitBase class is implemented as the base class for cable tray or conduit """ def Dispose(self): """ Dispose(self: Element, A_0: bool) """ pass def getBoundingBox(self, *args): """ getBoundingB...
false
true
f7344f57262cf26e28149aafdf8a6e25dc9a22d9
10,113
py
Python
src/blade/util.py
noanswer/blade-build
647921d283c101ee27edbc0fc27495e4fc5db35d
[ "BSD-3-Clause" ]
817
2015-01-06T02:43:58.000Z
2019-03-20T02:19:30.000Z
src/blade/util.py
salyty/blade-build
9d8c396ff2d27616369722410ec801e217bbcfd0
[ "BSD-3-Clause" ]
160
2015-01-08T06:16:54.000Z
2019-03-20T06:51:56.000Z
src/blade/util.py
salyty/blade-build
9d8c396ff2d27616369722410ec801e217bbcfd0
[ "BSD-3-Clause" ]
253
2015-01-04T17:02:30.000Z
2019-03-19T18:25:40.000Z
# Copyright (c) 2011 Tencent Inc. # All rights reserved. # # Author: Huan Yu <huanyu@tencent.com> # Feng chen <phongchen@tencent.com> # Yi Wang <yiwang@tencent.com> # Chong peng <michaelpeng@tencent.com> # Date: October 20, 2011 """ This is the util module which provides some helper function...
28.407303
126
0.641748
from __future__ import absolute_import from __future__ import print_function import ast import errno import fcntl import hashlib import inspect import json import os import signal import string import subprocess import sys import zipfile _IN_PY3 = sys.version_info[0] == 3 if _IN_PY3: import pickle...
true
true
f734515e90618acecca23b18403af764db215dc5
1,684
py
Python
objifier/data_loader.py
1chimaruGin/Oject_classifier
d27ca8f47d2d0af107582c25a0756dda15361c2e
[ "Apache-2.0" ]
4
2020-08-19T14:50:29.000Z
2021-06-03T05:22:12.000Z
objifier/data_loader.py
1chimaruGin/Oject_classifier
d27ca8f47d2d0af107582c25a0756dda15361c2e
[ "Apache-2.0" ]
null
null
null
objifier/data_loader.py
1chimaruGin/Oject_classifier
d27ca8f47d2d0af107582c25a0756dda15361c2e
[ "Apache-2.0" ]
null
null
null
import torch from torchvision import datasets, transforms import os transform = { "train": transforms.Compose( [ transforms.RandomResizedCrop(224), transforms.RandomHorizontalFlip(), transforms.ToTensor(), transforms.Normalize( [0.4914, 0.4821...
25.134328
78
0.538599
import torch from torchvision import datasets, transforms import os transform = { "train": transforms.Compose( [ transforms.RandomResizedCrop(224), transforms.RandomHorizontalFlip(), transforms.ToTensor(), transforms.Normalize( [0.4914, 0.4821...
true
true
f734528846dbb613a1f70d11b9f44b205a45b9f1
4,976
py
Python
tests/ssg_test_suite/combined.py
rhmdnd/content
478c60314b7a1692920a4031b51f4b6b3a6f25a0
[ "BSD-3-Clause" ]
null
null
null
tests/ssg_test_suite/combined.py
rhmdnd/content
478c60314b7a1692920a4031b51f4b6b3a6f25a0
[ "BSD-3-Clause" ]
null
null
null
tests/ssg_test_suite/combined.py
rhmdnd/content
478c60314b7a1692920a4031b51f4b6b3a6f25a0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 from __future__ import print_function import logging import re from ssg.constants import OSCAP_PROFILE from ssg_test_suite import common from ssg_test_suite import rule from ssg_test_suite import xml_operations from ssg_test_suite import test_env class CombinedChecker(rule.RuleChecker): """ ...
39.808
103
0.687902
from __future__ import print_function import logging import re from ssg.constants import OSCAP_PROFILE from ssg_test_suite import common from ssg_test_suite import rule from ssg_test_suite import xml_operations from ssg_test_suite import test_env class CombinedChecker(rule.RuleChecker): def __init__(self, test...
true
true
f73454591c4d3431543089df0c42b9280414f4e9
2,991
py
Python
shopify_csv/tests/test_end_to_end_tests.py
d-e-h-i-o/shopify_csv
0c49666bca38802a756502f72f835abb63115025
[ "MIT" ]
1
2021-02-28T11:36:50.000Z
2021-02-28T11:36:50.000Z
shopify_csv/tests/test_end_to_end_tests.py
d-e-h-i-o/shopify_csv
0c49666bca38802a756502f72f835abb63115025
[ "MIT" ]
null
null
null
shopify_csv/tests/test_end_to_end_tests.py
d-e-h-i-o/shopify_csv
0c49666bca38802a756502f72f835abb63115025
[ "MIT" ]
null
null
null
import os import csv from shopify_csv import ShopifyRow def get_template_rows(): with open( os.path.join( os.getcwd(), "shopify_csv", "tests", "fixtures", "product_template.csv" ), "r", ) as file: reader = csv.reader(file, delimiter=";") return [row for row...
30.520408
83
0.698094
import os import csv from shopify_csv import ShopifyRow def get_template_rows(): with open( os.path.join( os.getcwd(), "shopify_csv", "tests", "fixtures", "product_template.csv" ), "r", ) as file: reader = csv.reader(file, delimiter=";") return [row for row...
true
true
f734548f2fc07d83f4ec18ec59e58bd11bd031aa
128
py
Python
pub_site/src/ops/config/deploy/__init__.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
1
2019-10-14T11:51:49.000Z
2019-10-14T11:51:49.000Z
pub_site/src/ops/config/deploy/__init__.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
null
null
null
pub_site/src/ops/config/deploy/__init__.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
null
null
null
# coding=utf-8 HOST_STRING = "lvye_pay@192.168.0.165" CODE_DIR = "/home/lvye_pay/projects/pay2/pub_site" VENV_NAME = "pub_venv"
25.6
50
0.75
HOST_STRING = "lvye_pay@192.168.0.165" CODE_DIR = "/home/lvye_pay/projects/pay2/pub_site" VENV_NAME = "pub_venv"
true
true
f73454af719705d177bc737cb4a5f6855b349fd9
6,608
py
Python
flask/testing.py
sabikm9876/Dockers9876
5909e26fba86351063bd622cedf6a4c25eba2e79
[ "BSD-3-Clause" ]
1
2018-04-07T12:15:45.000Z
2018-04-07T12:15:45.000Z
flask/testing.py
sabikm9876/Dockers9876
5909e26fba86351063bd622cedf6a4c25eba2e79
[ "BSD-3-Clause" ]
null
null
null
flask/testing.py
sabikm9876/Dockers9876
5909e26fba86351063bd622cedf6a4c25eba2e79
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ flask.testing ~~~~~~~~~~~~~ Implements test support helpers. This module is lazily imported and usually not used in production environments. :copyright: (c) 2015 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import werkzeug from contextlib im...
37.545455
78
0.631205
import werkzeug from contextlib import contextmanager from werkzeug.test import Client, EnvironBuilder from flask import _request_ctx_stack from flask.json import dumps as json_dumps try: from werkzeug.urls import url_parse except ImportError: from urlparse import urlsplit as url_parse def make_test_enviro...
true
true
f73456535b7365629f81b36cbac61da3a24af926
583
py
Python
var/spack/repos/builtin/packages/perl-module-runtime/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/perl-module-runtime/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/perl-module-runtime/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PerlModuleRuntime(PerlPackage): """Runtime module handling""" homepage = "http://sear...
32.388889
95
0.730703
from spack import * class PerlModuleRuntime(PerlPackage): homepage = "http://search.cpan.org/~zefram/Module-Runtime/lib/Module/Runtime.pm" url = "http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Module-Runtime-0.016.tar.gz" version('0.016', 'd3d47222fa2e3dfcb4526f6cc8437b20') depends_on...
true
true
f734576213f7b4d421a0c2f2003e333c8a2ea478
13,946
py
Python
integration/sawtooth_integration/tests/test_transactor_permissioning.py
ltavag/sawtooth-core
50659f23437b27ecd666d4cf129f812e6adaedc4
[ "Apache-2.0" ]
1
2018-06-28T07:39:38.000Z
2018-06-28T07:39:38.000Z
integration/sawtooth_integration/tests/test_transactor_permissioning.py
ltavag/sawtooth-core
50659f23437b27ecd666d4cf129f812e6adaedc4
[ "Apache-2.0" ]
5
2018-05-17T21:56:07.000Z
2018-06-11T19:52:08.000Z
integration/sawtooth_integration/tests/test_transactor_permissioning.py
ltavag/sawtooth-core
50659f23437b27ecd666d4cf129f812e6adaedc4
[ "Apache-2.0" ]
4
2018-06-13T16:28:26.000Z
2018-06-13T16:47:22.000Z
# Copyright 2017 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/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
34.952381
78
0.636455
import enum import subprocess import unittest from uuid import uuid4 import cbor from sawtooth_signing import create_context from sawtooth_signing import CryptoFactory from sawtooth_signing.secp256k1 import Secp256k1PrivateKey from sawtooth_processor_test.message_factory import MessageFactory from saw...
true
true
f734590f7846f821cd91f1a763773a979f4c0a23
1,928
py
Python
LearnyMcLearnface/Layers/AffineLayer.py
alexweav/Deep-Learning
f245708e40f36c4734ea0d4a7e6587624e4b116f
[ "MIT" ]
null
null
null
LearnyMcLearnface/Layers/AffineLayer.py
alexweav/Deep-Learning
f245708e40f36c4734ea0d4a7e6587624e4b116f
[ "MIT" ]
null
null
null
LearnyMcLearnface/Layers/AffineLayer.py
alexweav/Deep-Learning
f245708e40f36c4734ea0d4a7e6587624e4b116f
[ "MIT" ]
1
2018-06-23T14:47:03.000Z
2018-06-23T14:47:03.000Z
# -*- coding: utf-8 -*- """ Created on Fri May 06 14:54:11 2016 @author: Alexander Weaver """ """ Performs an affine (fully connected) operation on its input An affine layer with out_dim neurons takes a data array of size Nx(in_dim), x and returns a linearly transformed Nx(out_dim) data array The transformation resul...
35.703704
102
0.650415
import numpy as np class AffineLayer(object): def __init__(self, in_dim, out_dim, weight_scale, data_type=np.float32): self.in_dim = in_dim self.out_dim = out_dim self.weight_scale = weight_scale self.data_type = data_type self.W = np.random.randn(in_dim, out_dim) * ...
true
true
f73459a7469cfb0da671d5fc04aa4938378e823f
883
py
Python
wakepy/_linux.py
Mohammad-Mohsen/wakepy
baa09412924fb296e7b4e4e82eb8e45f592c032c
[ "MIT" ]
null
null
null
wakepy/_linux.py
Mohammad-Mohsen/wakepy
baa09412924fb296e7b4e4e82eb8e45f592c032c
[ "MIT" ]
null
null
null
wakepy/_linux.py
Mohammad-Mohsen/wakepy
baa09412924fb296e7b4e4e82eb8e45f592c032c
[ "MIT" ]
null
null
null
import subprocess COMMAND = u'systemctl' ARGS = [u'sleep.target', u'suspend.target', u'hibernate.target', u'hybrid-sleep.target'] # https://www.man7.org/linux/man-pages/man1/systemctl.1.html if not subprocess.check_output('pidof systemd'): raise NotImplementedError( "wakepy has not yet support for init pr...
30.448276
129
0.705549
import subprocess COMMAND = u'systemctl' ARGS = [u'sleep.target', u'suspend.target', u'hibernate.target', u'hybrid-sleep.target'] if not subprocess.check_output('pidof systemd'): raise NotImplementedError( "wakepy has not yet support for init processes other than systemd. Pull requests welcome: https://g...
true
true
f73459f80917cdc270cb33a60e836b82656751da
30
py
Python
pushbots/__init__.py
damoon-cmpt376w/pushbots
de7c50da2cffd8527c51a78ab71afd1110e4376d
[ "MIT" ]
11
2015-08-21T20:23:03.000Z
2017-07-02T18:26:15.000Z
pushbots/__init__.py
damoon-cmpt376w/pushbots
de7c50da2cffd8527c51a78ab71afd1110e4376d
[ "MIT" ]
3
2015-08-17T22:01:52.000Z
2019-11-15T04:26:27.000Z
pushbots/__init__.py
damoon-cmpt376w/pushbots
de7c50da2cffd8527c51a78ab71afd1110e4376d
[ "MIT" ]
6
2015-07-27T12:48:43.000Z
2019-11-12T02:06:06.000Z
from .pushbots import Pushbots
30
30
0.866667
from .pushbots import Pushbots
true
true
f7345c5c40688503298c593d4b121e16e47e7984
124,110
py
Python
tools/sourcecode/Python-3.10.0/Lib/test/test_asyncio/test_tasks.py
gagominecraft12/Blueity-Client-Retrace
d42a927a85226d73da66123922d9ea11cc20ac3d
[ "MIT" ]
32
2021-05-03T09:03:57.000Z
2022-03-17T09:18:59.000Z
tools/sourcecode/Python-3.10.0/Lib/test/test_asyncio/test_tasks.py
gagominecraft12/Blueity-Client-Retrace
d42a927a85226d73da66123922d9ea11cc20ac3d
[ "MIT" ]
4
2021-05-29T20:42:52.000Z
2022-03-16T03:01:12.000Z
tools/sourcecode/Python-3.10.0/Lib/test/test_asyncio/test_tasks.py
gagominecraft12/Blueity-Client-Retrace
d42a927a85226d73da66123922d9ea11cc20ac3d
[ "MIT" ]
3
2021-10-05T20:56:09.000Z
2022-02-23T13:00:54.000Z
"""Tests for tasks.py.""" import collections import contextlib import contextvars import functools import gc import io import random import re import sys import textwrap import traceback import types import unittest import weakref from unittest import mock import asyncio from asyncio import coroutines from asyncio im...
32.42163
105
0.586899
import collections import contextlib import contextvars import functools import gc import io import random import re import sys import textwrap import traceback import types import unittest import weakref from unittest import mock import asyncio from asyncio import coroutines from asyncio import futures from asyncio ...
true
true
f7345ed683d8e259c5cd6ab20ecb5ca4fbafbe94
6,149
py
Python
lantz/drivers/thorlabs/cld101xlp.py
0xInfty/lantz-drivers
8ea49bbe247547356533bbbdb4af09581f9b44b5
[ "BSD-3-Clause" ]
6
2016-04-13T12:59:18.000Z
2020-06-24T17:43:04.000Z
lantz/drivers/thorlabs/cld101xlp.py
0xInfty/lantz-drivers
8ea49bbe247547356533bbbdb4af09581f9b44b5
[ "BSD-3-Clause" ]
null
null
null
lantz/drivers/thorlabs/cld101xlp.py
0xInfty/lantz-drivers
8ea49bbe247547356533bbbdb4af09581f9b44b5
[ "BSD-3-Clause" ]
6
2015-12-14T19:30:36.000Z
2020-06-29T21:16:01.000Z
from lantz import Feat, DictFeat, Action from lantz.errors import InstrumentError from lantz.messagebased import MessageBasedDriver from pint import UnitRegistry from time import sleep class CLD101XLP(MessageBasedDriver): DEFAULTS = { 'COMMON': { 'write_termination': '\n', 'read...
30.59204
106
0.595381
from lantz import Feat, DictFeat, Action from lantz.errors import InstrumentError from lantz.messagebased import MessageBasedDriver from pint import UnitRegistry from time import sleep class CLD101XLP(MessageBasedDriver): DEFAULTS = { 'COMMON': { 'write_termination': '\n', 'read...
true
true
f7345ef0369ef2031d2687b9f2fb079fc03cd7e7
2,132
py
Python
vmware_nsx/db/migration/alembic_migrations/versions/newton/expand/c644ec62c585_nsxv3_add_nsx_dhcp_service_tables.py
mail2nsrajesh/vmware-nsx
63154b510b9fd95c10fffae86bfc49073cafeb40
[ "Apache-2.0" ]
null
null
null
vmware_nsx/db/migration/alembic_migrations/versions/newton/expand/c644ec62c585_nsxv3_add_nsx_dhcp_service_tables.py
mail2nsrajesh/vmware-nsx
63154b510b9fd95c10fffae86bfc49073cafeb40
[ "Apache-2.0" ]
null
null
null
vmware_nsx/db/migration/alembic_migrations/versions/newton/expand/c644ec62c585_nsxv3_add_nsx_dhcp_service_tables.py
mail2nsrajesh/vmware-nsx
63154b510b9fd95c10fffae86bfc49073cafeb40
[ "Apache-2.0" ]
1
2019-06-21T18:07:53.000Z
2019-06-21T18:07:53.000Z
# Copyright 2016 VMware, 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 agree...
36.758621
79
0.70075
revision = 'c644ec62c585' down_revision = 'c288bb6a7252' from alembic import op import sqlalchemy as sa from vmware_nsxlib.v3 import nsx_constants nsx_service_type_enum = sa.Enum( nsx_constants.SERVICE_DHCP, name='neutron_nsx_service_bindings_service_type') def upgrade(): op.create_tab...
true
true
f7345f2923e39ea9f4a7d509e635b842f0a95693
314
py
Python
items.py
haowg/scrapy_api
06930e58a363de3007fb5550f8c1da7a8effd094
[ "Apache-2.0" ]
null
null
null
items.py
haowg/scrapy_api
06930e58a363de3007fb5550f8c1da7a8effd094
[ "Apache-2.0" ]
null
null
null
items.py
haowg/scrapy_api
06930e58a363de3007fb5550f8c1da7a8effd094
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy class ResumeItem(scrapy.Item): time = scrapy.Field() org_name = scrapy.Field() job_title = scrapy.Field() location = scrapy.Field() product_name = scrapy.Field() company_name = scrapy.Field() person_name = scrapy.Field() id = scrapy.Field()
20.933333
33
0.640127
import scrapy class ResumeItem(scrapy.Item): time = scrapy.Field() org_name = scrapy.Field() job_title = scrapy.Field() location = scrapy.Field() product_name = scrapy.Field() company_name = scrapy.Field() person_name = scrapy.Field() id = scrapy.Field()
true
true
f73460d20d6a0dad6b30903362fd64dcff72ef26
1,177
py
Python
django_webapp/views.py
Alexmhack/bootstrap_django
8a07c980834f3cd5e63fde19b5a989f1f2baa48f
[ "Apache-2.0" ]
null
null
null
django_webapp/views.py
Alexmhack/bootstrap_django
8a07c980834f3cd5e63fde19b5a989f1f2baa48f
[ "Apache-2.0" ]
null
null
null
django_webapp/views.py
Alexmhack/bootstrap_django
8a07c980834f3cd5e63fde19b5a989f1f2baa48f
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from django.template.loader import get_template from django.core.mail import EmailMessage def home_page(request): return render(request, 'bootstrap/home_page.html') def features_page(request): return render(request, 'bootstrap/features_page.html') def pricing_page(r...
24.520833
55
0.742566
from django.shortcuts import render, redirect from django.template.loader import get_template from django.core.mail import EmailMessage def home_page(request): return render(request, 'bootstrap/home_page.html') def features_page(request): return render(request, 'bootstrap/features_page.html') def pricing_page(r...
true
true
f73460e62cafe319971f36bb5ab832036fec4708
4,158
py
Python
src/twisted/trial/_dist/test/test_workertrial.py
yan12125/twisted
97e9d612cff41b5a83a6a6ddd2c37f616428cfde
[ "MIT", "Unlicense" ]
null
null
null
src/twisted/trial/_dist/test/test_workertrial.py
yan12125/twisted
97e9d612cff41b5a83a6a6ddd2c37f616428cfde
[ "MIT", "Unlicense" ]
null
null
null
src/twisted/trial/_dist/test/test_workertrial.py
yan12125/twisted
97e9d612cff41b5a83a6a6ddd2c37f616428cfde
[ "MIT", "Unlicense" ]
null
null
null
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.trial._dist.workertrial}. """ import errno import sys from io import BytesIO from twisted.protocols.amp import AMP from twisted.test.proto_helpers import StringTransport from twisted.trial._dist import ( _WORKER_AMP_S...
28.479452
84
0.595719
import errno import sys from io import BytesIO from twisted.protocols.amp import AMP from twisted.test.proto_helpers import StringTransport from twisted.trial._dist import ( _WORKER_AMP_STDIN, _WORKER_AMP_STDOUT, managercommands, workercommands, workertrial, ) from twisted.trial._dist.workertri...
true
true
f734614dbacbcea2945b58a22500b3b5d0fe1098
3,239
py
Python
installers/wix/genfiles.py
d-salodki/BitCoenWallet
e5a68e3c95b17413242a2e39bbb60661794299db
[ "Apache-2.0" ]
7
2017-12-10T23:25:26.000Z
2020-02-18T11:05:17.000Z
installers/wix/genfiles.py
d-salodki/BitCoenWallet
e5a68e3c95b17413242a2e39bbb60661794299db
[ "Apache-2.0" ]
4
2021-01-28T19:31:45.000Z
2022-03-25T18:19:52.000Z
installers/wix/genfiles.py
d-salodki/BitCoenWallet
e5a68e3c95b17413242a2e39bbb60661794299db
[ "Apache-2.0" ]
4
2018-01-28T00:05:30.000Z
2021-03-06T18:08:48.000Z
#!/usr/bin/env python import os import uuid from xml.sax.saxutils import escape scriptDir = os.path.dirname(os.path.normpath(os.path.abspath(__file__))) buildDir = os.path.join(os.path.dirname(os.path.dirname(scriptDir)), 'build') dirs = { 'ELECTRONDIR': 'BitcoenWallet-win32-x64', 'COREDIR': 'core', ...
34.457447
133
0.511269
import os import uuid from xml.sax.saxutils import escape scriptDir = os.path.dirname(os.path.normpath(os.path.abspath(__file__))) buildDir = os.path.join(os.path.dirname(os.path.dirname(scriptDir)), 'build') dirs = { 'ELECTRONDIR': 'BitcoenWallet-win32-x64', 'COREDIR': 'core', } def print2(str...
true
true
f7346162b45a7962aacf380692b2de379af58981
3,143
py
Python
copyexcel.py
RaviTejaKomma/Automate-Boring-Stuff-Python
e5d8df1b060f20e50691f824ecabc3a30dc845c7
[ "MIT" ]
null
null
null
copyexcel.py
RaviTejaKomma/Automate-Boring-Stuff-Python
e5d8df1b060f20e50691f824ecabc3a30dc845c7
[ "MIT" ]
null
null
null
copyexcel.py
RaviTejaKomma/Automate-Boring-Stuff-Python
e5d8df1b060f20e50691f824ecabc3a30dc845c7
[ "MIT" ]
null
null
null
''' This script is about reading and writing excel files through python. Refer to the guidelines in @33. This builds on assignment 1 (on using click). Here's the high level spec, you have to figure out all the details and get this done: Create a script called copyexcel.py which uses openpyxl and click. It copies all d...
45.550725
130
0.715558
import click from openpyxl import * from os.path import exists from copy import copy def copy_the_content(src_filepath,dest_filepath,capitalize,preservestyles): src_wb = load_workbook(src_filepath) dest_wb = Workbook() dest_wb.remove_sheet(dest_wb.active) for sheet in src_wb: dest_curr_ws = de...
true
true
f734620a92c87bf2d9b8868aa2af756591238d37
159
py
Python
models.py
mwang87/GNPS_Batch_Validator
97a8b0c1f2a0977eec8c7eaf842e15392d865676
[ "Apache-2.0" ]
null
null
null
models.py
mwang87/GNPS_Batch_Validator
97a8b0c1f2a0977eec8c7eaf842e15392d865676
[ "Apache-2.0" ]
null
null
null
models.py
mwang87/GNPS_Batch_Validator
97a8b0c1f2a0977eec8c7eaf842e15392d865676
[ "Apache-2.0" ]
null
null
null
# models.py from peewee import * from app import db class Filename(Model): filepath = TextField(primary_key=True) class Meta: database = db
14.454545
42
0.679245
from peewee import * from app import db class Filename(Model): filepath = TextField(primary_key=True) class Meta: database = db
true
true
f73462b423a2598169b46014fc637480ebb7aabe
19,095
py
Python
example/myshop/migrations/simple/0001_initial.py
Iv/django-shop
aa52dce6e9115d3b7a913ffa6027f978260b324c
[ "BSD-3-Clause" ]
null
null
null
example/myshop/migrations/simple/0001_initial.py
Iv/django-shop
aa52dce6e9115d3b7a913ffa6027f978260b324c
[ "BSD-3-Clause" ]
null
null
null
example/myshop/migrations/simple/0001_initial.py
Iv/django-shop
aa52dce6e9115d3b7a913ffa6027f978260b324c
[ "BSD-3-Clause" ]
1
2020-01-10T01:51:07.000Z
2020-01-10T01:51:07.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import shop.payment.defaults import filer.fields.image import django_fsm import django.db.models.deletion import jsonfield.fields import djangocms_text_ckeditor.fields import django.utils.timezone from django.conf ...
91.802885
5,814
0.595391
from __future__ import unicode_literals from django.db import migrations, models import shop.payment.defaults import filer.fields.image import django_fsm import django.db.models.deletion import jsonfield.fields import djangocms_text_ckeditor.fields import django.utils.timezone from django.conf import settings import ...
true
true
f73463d08d01639f183f1999e62472356c36cbde
1,551
py
Python
Element/FlutterElement.py
sunnyyukaige/Automation-core
96f22346069736a2ca7eab90083a64f226f43340
[ "MIT" ]
null
null
null
Element/FlutterElement.py
sunnyyukaige/Automation-core
96f22346069736a2ca7eab90083a64f226f43340
[ "MIT" ]
null
null
null
Element/FlutterElement.py
sunnyyukaige/Automation-core
96f22346069736a2ca7eab90083a64f226f43340
[ "MIT" ]
null
null
null
from Element.FlutterFind import FlutterFind from selenium.common.exceptions import WebDriverException, NoSuchElementException from Utilitys.WaitUtils import WaitUtils class FlutterElement(FlutterFind): def __init__(self, driver): FlutterFind.__init__(self) self.driver = driver self.interva...
36.928571
81
0.648614
from Element.FlutterFind import FlutterFind from selenium.common.exceptions import WebDriverException, NoSuchElementException from Utilitys.WaitUtils import WaitUtils class FlutterElement(FlutterFind): def __init__(self, driver): FlutterFind.__init__(self) self.driver = driver self.interva...
true
true
f73464a0f0e44f8f4b6c5b15a7609f6d463307fa
3,758
py
Python
examples/tests/SetMemberSDOPackageTest.py
n-kawauchi/pipeline-test
aa29d84f177c7d8cefc81adab29abc06fccd61cb
[ "RSA-MD" ]
15
2019-01-08T15:34:04.000Z
2022-03-01T08:36:17.000Z
examples/tests/SetMemberSDOPackageTest.py
n-kawauchi/pipeline-test
aa29d84f177c7d8cefc81adab29abc06fccd61cb
[ "RSA-MD" ]
448
2018-12-27T03:13:56.000Z
2022-03-24T09:57:03.000Z
examples/tests/SetMemberSDOPackageTest.py
n-kawauchi/pipeline-test
aa29d84f177c7d8cefc81adab29abc06fccd61cb
[ "RSA-MD" ]
31
2018-12-26T04:34:22.000Z
2021-11-25T04:39:51.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ## SetMemberSDOPackageTest.py ## ## メモリーリークチェック ## SDOPackage.idlで定義されているオペレーション ## OrganizationのMemberのセットと取得に関するオペレーション # # $Id$ # from rtc_handle import * from BasicDataType_idl import * from omniORB import any import time import commands import SDOPackage import soc...
28.469697
114
0.61389
mands import SDOPackage import socket import RTM env = RtmEnv(sys.argv, ["localhost:9898"]) ()+".host_cxt/manager.mgr" naming = CorbaNaming(env.orb, "localhost:9898") manager = naming.resolve(mgr_name)._narrow(RTM.Manager) ent("PeriodicECSharedComposite?instance_name=a&exported_ports=ConsoleIn0.out,ConsoleOut0.in"...
false
true
f73465b37d26d4f56850b11cee68f7c815e9a9f3
2,970
py
Python
hknweb/candidate/admin/requirements/requirements.py
Boomaa23/hknweb
2c2ce38b5f1c0c6e04ba46282141557357bd5326
[ "MIT" ]
null
null
null
hknweb/candidate/admin/requirements/requirements.py
Boomaa23/hknweb
2c2ce38b5f1c0c6e04ba46282141557357bd5326
[ "MIT" ]
null
null
null
hknweb/candidate/admin/requirements/requirements.py
Boomaa23/hknweb
2c2ce38b5f1c0c6e04ba46282141557357bd5326
[ "MIT" ]
null
null
null
from django.contrib import admin from hknweb.candidate.models import ( CandidateForm, CandidateFormDoneEntry, CommitteeProject, CommitteeProjectDoneEntry, DuePayment, DuePaymentPaidEntry, RequirementBitByteActivity, RequriementEvent, RequirementHangout, RequirementMandatory, ...
30.9375
99
0.718182
from django.contrib import admin from hknweb.candidate.models import ( CandidateForm, CandidateFormDoneEntry, CommitteeProject, CommitteeProjectDoneEntry, DuePayment, DuePaymentPaidEntry, RequirementBitByteActivity, RequriementEvent, RequirementHangout, RequirementMandatory, ...
true
true
f734679649791ee4b1095d9eedf1e71818a2b695
489
py
Python
lego/apps/followers/migrations/0002_auto_20170831_1103.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
45
2017-10-24T12:09:06.000Z
2021-11-03T21:21:03.000Z
lego/apps/followers/migrations/0002_auto_20170831_1103.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
980
2017-10-24T12:29:07.000Z
2022-03-31T04:04:31.000Z
lego/apps/followers/migrations/0002_auto_20170831_1103.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
23
2018-04-11T16:34:22.000Z
2021-11-23T12:28:30.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-31 11:03 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [("followers", "0001_initial")] operations = [ migrations.RemoveField(model_name="followcompany", n...
28.764706
75
0.705521
from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [("followers", "0001_initial")] operations = [ migrations.RemoveField(model_name="followcompany", name="deleted"), migrations.RemoveField(model_name="followevent"...
true
true
f7346818a39b5a17a62b2966aaea4541f1d02cd3
55,751
py
Python
operators/elastic-cloud-eck/python/pulumi_pulumi_kubernetes_crds_operators_elastic_cloud_eck/enterprisesearch/v1beta1/_inputs.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
operators/elastic-cloud-eck/python/pulumi_pulumi_kubernetes_crds_operators_elastic_cloud_eck/enterprisesearch/v1beta1/_inputs.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
2
2020-09-18T17:12:23.000Z
2020-12-30T19:40:56.000Z
operators/elastic-cloud-eck/python/pulumi_pulumi_kubernetes_crds_operators_elastic_cloud_eck/enterprisesearch/v1beta1/_inputs.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ '...
57.832988
905
0.711413
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'EnterpriseSearchSpecArgs', 'EnterpriseSearchSpecConfigRefArgs', 'EnterpriseSearchSpecElasticsearchRefArgs', 'EnterpriseSearchSpecHttpArgs',...
true
true
f7346a678b201b6551646b27b58b1a43bf3c84a7
2,627
py
Python
flask_security/__init__.py
Identeco/flask-security
0b2dc59767af72f435fceac69f72c04a7cd9cc13
[ "MIT" ]
317
2020-04-30T16:29:58.000Z
2022-03-31T07:19:09.000Z
flask_security/__init__.py
Identeco/flask-security
0b2dc59767af72f435fceac69f72c04a7cd9cc13
[ "MIT" ]
216
2020-04-30T16:49:01.000Z
2022-03-31T19:02:37.000Z
flask_security/__init__.py
Identeco/flask-security
0b2dc59767af72f435fceac69f72c04a7cd9cc13
[ "MIT" ]
82
2020-04-30T16:22:36.000Z
2022-03-27T16:52:40.000Z
""" flask_security ~~~~~~~~~~~~~~ Flask-Security is a Flask extension that aims to add quick and simple security via Flask-Login, Flask-Principal, Flask-WTF, and passlib. :copyright: (c) 2012-2019 by Matt Wright. :copyright: (c) 2019-2020 by J. Christopher Wagner. :license: MIT, see LICENS...
24.100917
77
0.745337
from .changeable import admin_change_password from .core import Security, RoleMixin, UserMixin, AnonymousUser, current_user from .datastore import ( UserDatastore, SQLAlchemyUserDatastore, MongoEngineUserDatastore, PeeweeUserDatastore, PonyUserDatastore, SQLAlchemySessionUserDatastore, ) from ...
true
true
f7346a70e18759da1614021a2b5e7ca0c222edb2
6,747
py
Python
torchbenchmark/models/BERT_pytorch/bert_pytorch/dataset/vocab.py
Chillee/benchmark
91e1b2871327e44b9b7d24d173ca93720fb6565b
[ "BSD-3-Clause" ]
5,013
2018-10-16T06:02:03.000Z
2022-03-31T11:36:18.000Z
torchbenchmark/models/BERT_pytorch/bert_pytorch/dataset/vocab.py
Chillee/benchmark
91e1b2871327e44b9b7d24d173ca93720fb6565b
[ "BSD-3-Clause" ]
81
2018-10-15T14:28:32.000Z
2022-02-07T14:21:53.000Z
torchbenchmark/models/BERT_pytorch/bert_pytorch/dataset/vocab.py
Chillee/benchmark
91e1b2871327e44b9b7d24d173ca93720fb6565b
[ "BSD-3-Clause" ]
1,129
2018-10-17T04:01:40.000Z
2022-03-31T15:41:14.000Z
import pickle import tqdm from collections import Counter class TorchVocab(object): """Defines a vocabulary object that will be used to numericalize a field. Attributes: freqs: A collections.Counter object holding the frequencies of tokens in the data used to build the Vocab. stoi:...
36.274194
93
0.601304
import pickle import tqdm from collections import Counter class TorchVocab(object): def __init__(self, counter, max_size=None, min_freq=1, specials=['<pad>', '<oov>'], vectors=None, unk_init=None, vectors_cache=None): self.freqs = counter counter = counter.copy() min_freq...
true
true
f7346b6921603b2a7215f45fff0ce7b1c912e958
486
py
Python
14_Lesson14/test_marking/test_example1.py
turovod/Otus
57433c6944bca155177b07ff361139ff30f7f692
[ "MIT" ]
null
null
null
14_Lesson14/test_marking/test_example1.py
turovod/Otus
57433c6944bca155177b07ff361139ff30f7f692
[ "MIT" ]
null
null
null
14_Lesson14/test_marking/test_example1.py
turovod/Otus
57433c6944bca155177b07ff361139ff30f7f692
[ "MIT" ]
null
null
null
import pytest @pytest.mark.webtest def test_send_http(): print('========== Hello *********************************') assert True def test_something_quick(): pass def test_another(): pass class TestClass(object): def test_method(self): pass # Run marked tests # pytest -v -m webtest ...
15.677419
63
0.598765
import pytest @pytest.mark.webtest def test_send_http(): print('========== Hello *********************************') assert True def test_something_quick(): pass def test_another(): pass class TestClass(object): def test_method(self): pass
true
true
f7346b86ad9084de9d0cfc75d3a59e51f223fb80
1,905
py
Python
dashboard/documents/models.py
yakky/channeled-dashboard
b78df31e2c46e04e3cae002329bc0d82516e9dfc
[ "BSD-3-Clause" ]
19
2018-02-16T11:36:12.000Z
2020-04-08T21:04:43.000Z
dashboard/documents/models.py
yakky/channeled-dashboard
b78df31e2c46e04e3cae002329bc0d82516e9dfc
[ "BSD-3-Clause" ]
2
2018-02-25T07:04:49.000Z
2018-05-19T13:30:16.000Z
dashboard/documents/models.py
yakky/channeled-dashboard
b78df31e2c46e04e3cae002329bc0d82516e9dfc
[ "BSD-3-Clause" ]
4
2018-04-20T12:45:13.000Z
2018-12-29T00:30:49.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals from ckeditor.fields import RichTextField from django.conf import settings from django.db import models from django.db.models import ImageField from django.urls import reverse from django.utils.encoding import python_2_uni...
31.229508
119
0.707612
from __future__ import absolute_import, print_function, unicode_literals from ckeditor.fields import RichTextField from django.conf import settings from django.db import models from django.db.models import ImageField from django.urls import reverse from django.utils.encoding import python_2_unicode_compatible from dj...
true
true
f7346c299948070a8b602bfe7035fed5598063f3
450
py
Python
django_file_form/migrations/0007_auto_20210119_0104.py
kosior/django-file-form
bc9ae606f55b297254e945c856d4878e45408af0
[ "Apache-2.0" ]
133
2015-01-22T09:01:58.000Z
2022-03-24T07:24:52.000Z
django_file_form/migrations/0007_auto_20210119_0104.py
kosior/django-file-form
bc9ae606f55b297254e945c856d4878e45408af0
[ "Apache-2.0" ]
371
2015-01-14T01:34:45.000Z
2022-03-23T12:16:01.000Z
django_file_form/migrations/0007_auto_20210119_0104.py
kosior/django-file-form
bc9ae606f55b297254e945c856d4878e45408af0
[ "Apache-2.0" ]
42
2015-01-21T11:24:42.000Z
2022-03-22T12:10:01.000Z
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("django_file_form", "0006_auto_20200501_0908"), ] operations = [ migrations.RenameModel( new_name="TemporaryUploadedFile", old_name="UploadedFile", ), migratio...
23.684211
56
0.613333
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("django_file_form", "0006_auto_20200501_0908"), ] operations = [ migrations.RenameModel( new_name="TemporaryUploadedFile", old_name="UploadedFile", ), migratio...
true
true
f7346c42994a39187ca1937fec6e475095c90ecc
3,029
py
Python
src/fewie/dataset_processors/roberta.py
DFKI-NLP/fewie
a47d2a02bc51cf951fc294de43bdb7557bc574b4
[ "MIT" ]
null
null
null
src/fewie/dataset_processors/roberta.py
DFKI-NLP/fewie
a47d2a02bc51cf951fc294de43bdb7557bc574b4
[ "MIT" ]
null
null
null
src/fewie/dataset_processors/roberta.py
DFKI-NLP/fewie
a47d2a02bc51cf951fc294de43bdb7557bc574b4
[ "MIT" ]
null
null
null
import random from typing import Dict, List, Union from transformers import AutoTokenizer import datasets from fewie.dataset_processors.processor import DatasetProcessor class RobertaProcessor(DatasetProcessor): def __init__( self, tokenizer_name_or_path: str, text_column_name: str, ...
37.8625
116
0.611753
import random from typing import Dict, List, Union from transformers import AutoTokenizer import datasets from fewie.dataset_processors.processor import DatasetProcessor class RobertaProcessor(DatasetProcessor): def __init__( self, tokenizer_name_or_path: str, text_column_name: str, ...
true
true
f7346c79ebfdaf0c84403cc7ee6c37aeaddbbae7
11,070
py
Python
drv_xmlproc.py
z6789p/Debugger_hw1_3
064b9335f149d69f58d0ffac18f9ff71a1ebd783
[ "FSFAP" ]
2
2015-03-30T20:23:22.000Z
2020-06-09T17:29:25.000Z
drv_xmlproc.py
z6789p/Debugger_hw1_3
064b9335f149d69f58d0ffac18f9ff71a1ebd783
[ "FSFAP" ]
null
null
null
drv_xmlproc.py
z6789p/Debugger_hw1_3
064b9335f149d69f58d0ffac18f9ff71a1ebd783
[ "FSFAP" ]
null
null
null
""" A SAX driver for xmlproc $Id: drv_xmlproc.py,v 1.9 1999/10/15 07:55:33 larsga Exp $ """ version="0.95" from xml.sax import saxlib,saxutils,saxmisc from xml.parsers.xmlproc import xmlproc import os pre_parse_properties={"http://xml.org/sax/properties/namespace-sep":1, "http://xml.org/sax/h...
35.941558
87
0.624932
""" A SAX driver for xmlproc $Id: drv_xmlproc.py,v 1.9 1999/10/15 07:55:33 larsga Exp $ """ version="0.95" from xml.sax import saxlib,saxutils,saxmisc from xml.parsers.xmlproc import xmlproc import os pre_parse_properties={"http://xml.org/sax/properties/namespace-sep":1, "http://xml.org/sax/h...
false
true
f7346cbff5dcac90a09a02cd98fb63b2ddd48424
1,459
py
Python
examples/src/python/bolt/half_ack_bolt.py
Munyola/incubator-heron
4aa106c6eaef9c60ed2d692e41998adda8115e6f
[ "Apache-2.0" ]
2
2016-07-04T07:10:31.000Z
2018-03-28T16:59:02.000Z
examples/src/python/bolt/half_ack_bolt.py
Munyola/incubator-heron
4aa106c6eaef9c60ed2d692e41998adda8115e6f
[ "Apache-2.0" ]
1
2019-05-08T22:30:16.000Z
2019-05-08T22:30:16.000Z
examples/src/python/bolt/half_ack_bolt.py
Munyola/incubator-heron
4aa106c6eaef9c60ed2d692e41998adda8115e6f
[ "Apache-2.0" ]
1
2017-06-05T17:55:45.000Z
2017-06-05T17:55:45.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- # 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...
34.738095
75
0.701165
from heronpy.api.bolt.bolt import Bolt class HalfAckBolt(Bolt): def initialize(self, config, context): self.total = 0 def process(self, tup): self.total += 1 if self.total % 2 == 0: self.logger.debug("Failing a tuple: %s" % str(tup)) self.fail(tup) else: se...
true
true
f7346e64245ed66025ffb65bc7e60868f6ab8e23
5,018
py
Python
graphene_django/debug/sql/tracking.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
4,038
2016-09-18T01:45:22.000Z
2022-03-31T01:06:57.000Z
graphene_django/debug/sql/tracking.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
1,104
2016-09-19T20:10:22.000Z
2022-03-30T17:37:46.000Z
graphene_django/debug/sql/tracking.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
791
2016-09-18T13:48:11.000Z
2022-03-29T08:32:06.000Z
# Code obtained from django-debug-toolbar sql panel tracking from __future__ import absolute_import, unicode_literals import json from threading import local from time import time from django.utils.encoding import force_str from .types import DjangoDebugSQL class SQLQueryTriggered(Exception): """Thrown when te...
29.517647
88
0.585293
from __future__ import absolute_import, unicode_literals import json from threading import local from time import time from django.utils.encoding import force_str from .types import DjangoDebugSQL class SQLQueryTriggered(Exception): class ThreadLocalState(local): def __init__(self): self.enabled = T...
true
true
f7346ed754373bd37ef39e959ebaa2ff7c5c5a13
16,988
py
Python
spire/mesh/controllers.py
siq/spire
6365590277e9a6bfb6e4e0df5b2b47dba0f71711
[ "Linux-OpenIB" ]
null
null
null
spire/mesh/controllers.py
siq/spire
6365590277e9a6bfb6e4e0df5b2b47dba0f71711
[ "Linux-OpenIB" ]
1
2016-09-15T16:19:27.000Z
2016-09-15T16:20:06.000Z
spire/mesh/controllers.py
siq/spire
6365590277e9a6bfb6e4e0df5b2b47dba0f71711
[ "Linux-OpenIB" ]
null
null
null
import re from mesh.constants import OK, RETURNING from mesh.exceptions import GoneError, NotFoundError from mesh.standard import Controller from sqlalchemy.sql import asc, column, desc, func, literal_column, not_, select from spire.core import Configurable, Unit from spire.schema import NoResultFound __all__ = ('M...
33.050584
87
0.597598
import re from mesh.constants import OK, RETURNING from mesh.exceptions import GoneError, NotFoundError from mesh.standard import Controller from sqlalchemy.sql import asc, column, desc, func, literal_column, not_, select from spire.core import Configurable, Unit from spire.schema import NoResultFound __all__ = ('M...
true
true
f7346f85460093720e9ba594db667860b2ae00a2
5,121
py
Python
databricks_cicd/conf/conf.py
man40/databricks-cicd
f2adade3a4b815cade74b961fa77bdfad42f3ec8
[ "Apache-2.0" ]
1
2021-12-11T17:11:34.000Z
2021-12-11T17:11:34.000Z
databricks_cicd/conf/conf.py
man40/databricks-cicd
f2adade3a4b815cade74b961fa77bdfad42f3ec8
[ "Apache-2.0" ]
null
null
null
databricks_cicd/conf/conf.py
man40/databricks-cicd
f2adade3a4b815cade74b961fa77bdfad42f3ec8
[ "Apache-2.0" ]
null
null
null
# Copyright (C) databricks-cicd 2021 man40 (man40dev@gmail.com) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
43.033613
110
0.702988
import logging from os import path as op from configparser import ConfigParser from textwrap import indent _log = logging.getLogger(__name__) class ConfBase: def __repr__(self): return '\n'.join(f'{k}: {self._indent(v)}' for k, v in self.__dict__.items() if not k.startswith('_')) @stat...
true
true
f7346ffb2493e91ef38c97544db2cda7417b56a5
538
py
Python
django_runner/management/commands/runner.py
eagletmt/sentry-runner
a764d439356e601bf224235d48d88316fd2bc8e4
[ "MIT" ]
null
null
null
django_runner/management/commands/runner.py
eagletmt/sentry-runner
a764d439356e601bf224235d48d88316fd2bc8e4
[ "MIT" ]
null
null
null
django_runner/management/commands/runner.py
eagletmt/sentry-runner
a764d439356e601bf224235d48d88316fd2bc8e4
[ "MIT" ]
null
null
null
from __future__ import print_function from optparse import make_option from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): help = 'Run arbitrary script within Django environment' option_list = BaseCommand.option_list + ( make_option('--file', dest='file', hel...
29.888889
73
0.685874
from __future__ import print_function from optparse import make_option from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): help = 'Run arbitrary script within Django environment' option_list = BaseCommand.option_list + ( make_option('--file', dest='file', hel...
true
true
f734705e0d86324fed26fbe8768d16bbbbb95ff9
14,900
py
Python
archive/lym_project/deep_conv_classification_alt48_luad10_luad10in20_brca10x1_heatmap.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
23
2018-08-23T03:58:37.000Z
2022-02-23T05:04:54.000Z
archive/lym_project/deep_conv_classification_alt48_luad10_luad10in20_brca10x1_heatmap.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
archive/lym_project/deep_conv_classification_alt48_luad10_luad10in20_brca10x1_heatmap.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import pickle import sys import os import urllib import gzip import cPickle import time import lasagne import theano import numpy as np import theano.tensor as T from lasagne import layers from lasagne.updates import nesterov_momentum from nolearn.lasagne import NeuralNet from nolearn.lasagne import BatchIterator from...
46.5625
132
0.683758
import pickle import sys import os import urllib import gzip import cPickle import time import lasagne import theano import numpy as np import theano.tensor as T from lasagne import layers from lasagne.updates import nesterov_momentum from nolearn.lasagne import NeuralNet from nolearn.lasagne import BatchIterator from...
false
true
f73470c7ecfe1e2c2e64e9938f9d472191f701fd
2,465
py
Python
modules/utils/constants.py
eugenet12/covidresearchviewer
1e86ba385efe35b1e4d406ef516158b34726bea5
[ "MIT" ]
null
null
null
modules/utils/constants.py
eugenet12/covidresearchviewer
1e86ba385efe35b1e4d406ef516158b34726bea5
[ "MIT" ]
1
2022-02-27T09:48:05.000Z
2022-02-27T09:48:05.000Z
modules/utils/constants.py
eugenet12/covidresearchviewer
1e86ba385efe35b1e4d406ef516158b34726bea5
[ "MIT" ]
null
null
null
import os DATA_DIR = os.environ.get( "COVID_WEBAPP_DATA_DIR", "/home/ubuntu/efs-mnt/latest_new/" ) # elasticsearch index ES_COL_TO_TYPE = { "cord_uid": { "type": "keyword" }, "title":{ "type": "text", }, "abstract": { "type": "text", }, "text": { "type...
18.674242
98
0.457606
import os DATA_DIR = os.environ.get( "COVID_WEBAPP_DATA_DIR", "/home/ubuntu/efs-mnt/latest_new/" ) ES_COL_TO_TYPE = { "cord_uid": { "type": "keyword" }, "title":{ "type": "text", }, "abstract": { "type": "text", }, "text": { "type": "text" }, ...
true
true
f73471baedfbfff986fac762f9e29473bd174fd7
1,381
py
Python
DeckOfCards.py
crippe-90/DeckOfCards
fb4ec62f6f49ce70fdfa9fda705b42c4884028d4
[ "MIT" ]
null
null
null
DeckOfCards.py
crippe-90/DeckOfCards
fb4ec62f6f49ce70fdfa9fda705b42c4884028d4
[ "MIT" ]
null
null
null
DeckOfCards.py
crippe-90/DeckOfCards
fb4ec62f6f49ce70fdfa9fda705b42c4884028d4
[ "MIT" ]
null
null
null
#author: Christoffer Norell #contact: christoffernorell@yahoo.se #This is a simple simulator of a deck of cards I made for fun. #The values in the dictionaries are there for better comparison during games. import random #Using dictionaries to represent values. #The color-values was taken from bridge-order: #http://p...
27.078431
160
0.572049
import random colors = [{'Hearts': 0 },{'Diamonds': 1},{'Clubs': 2},{'Spades':3}] values = [{'Two':2},{'Three': 3},{'Four':4},{'Five':5},{'Six': 6},{'Seven': 7}, {'Eight': 8}, {'Nine': 9} , {'Ten': 10},{'Jack': 11} , {'Queen':12}, {'King':13} , {'Ace':14}] class Card(): def __init__(self,value,color): ...
true
true
f73471efadcfb128c68e6e8891fc124ff271a658
41,230
py
Python
python/ccxt/idex.py
z-brain/ccxt
dde32cfb5e0e2e2889ead60687d6fd0fdf5e3f02
[ "MIT" ]
4
2021-01-10T09:14:17.000Z
2022-02-15T19:09:52.000Z
python/ccxt/idex.py
z-brain/ccxt
dde32cfb5e0e2e2889ead60687d6fd0fdf5e3f02
[ "MIT" ]
1
2020-05-08T09:19:46.000Z
2020-09-12T14:55:58.000Z
python/ccxt/idex.py
z-brain/ccxt
dde32cfb5e0e2e2889ead60687d6fd0fdf5e3f02
[ "MIT" ]
4
2021-06-02T16:40:35.000Z
2022-03-14T04:50:31.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationE...
40.263672
202
0.512976
ge import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationError from ccxt.base.errors import ArgumentsRequired from ccxt.base.errors import InsufficientFunds from ccxt.base.errors import InvalidOrder class idex(Exchange): def describe(self): r...
true
true
f734731852fc4bff361b7a445260efff13f13871
3,019
py
Python
MagTag_Project_Selector/code.py
dastels/Adafruit_Learning_System_Guides
9c59432a546c55ac9e40085c5f816cd09096fda2
[ "MIT" ]
1
2021-01-05T02:08:27.000Z
2021-01-05T02:08:27.000Z
MagTag_Project_Selector/code.py
dastels/Adafruit_Learning_System_Guides
9c59432a546c55ac9e40085c5f816cd09096fda2
[ "MIT" ]
1
2020-10-16T15:30:22.000Z
2020-10-16T15:30:22.000Z
MagTag_Project_Selector/code.py
dastels/Adafruit_Learning_System_Guides
9c59432a546c55ac9e40085c5f816cd09096fda2
[ "MIT" ]
1
2020-10-16T15:23:04.000Z
2020-10-16T15:23:04.000Z
# Based on code written by @DavidGlaude on Twitter # https://twitter.com/DavidGlaude/status/1340365817138044933 # https://gist.github.com/dglaude/4bf8d0a13c9c8ca8b05d6c0e9176bd20 import time import alarm import displayio import board import adafruit_imageload from adafruit_display_shapes.rect import Rect from adafruit...
24.745902
72
0.595561
import time import alarm import displayio import board import adafruit_imageload from adafruit_display_shapes.rect import Rect from adafruit_magtag.magtag import Graphics from digitalio import DigitalInOut, Direction, Pull projects = [ "weather", "spacex", "covid", "showerthoughts", "tides", ...
true
true
f734735280ad987f4230935eb5071713885ad7f4
207
py
Python
src/app/beer_garden/api/http/schemas/v1/role.py
scott-taubman/beer-garden
bac825849f7791e14064942566fbec63a83e6f87
[ "MIT" ]
null
null
null
src/app/beer_garden/api/http/schemas/v1/role.py
scott-taubman/beer-garden
bac825849f7791e14064942566fbec63a83e6f87
[ "MIT" ]
null
null
null
src/app/beer_garden/api/http/schemas/v1/role.py
scott-taubman/beer-garden
bac825849f7791e14064942566fbec63a83e6f87
[ "MIT" ]
null
null
null
from brewtils.schemas import RoleSchema from marshmallow import Schema, fields class RoleListSchema(Schema): """Schema for listing multiple roles""" roles = fields.List(fields.Nested(RoleSchema))
23
50
0.768116
from brewtils.schemas import RoleSchema from marshmallow import Schema, fields class RoleListSchema(Schema): roles = fields.List(fields.Nested(RoleSchema))
true
true
f734735728c02e2f8721f9bfa11ee29045230912
9,456
py
Python
accelbyte_py_sdk/api/platform/operations/item/update_app.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/platform/operations/item/update_app.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/platform/operations/item/update_app.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
# Auto-generated at 2021-09-27T17:01:29.359679+08:00 # from: Justice Platform Service (3.24.0) # Copyright (c) 2018 - 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # pylint: disable=duplicate-code # py...
31.415282
157
0.605436
from __future__ import annotations from typing import Any, Dict, List, Optional, Tuple, Union from .....core import Operation from .....core import HttpResponse from ...models import AppUpdate from ...models import ErrorEntity from ...models import FullAppInfo from ...models import ValidationErro...
true
true
f734740036bba3f47f055d090d680ae439c77013
5,376
py
Python
atores.py
rafarios20/pythonbirds
520642c6e9f50dfe94b95255fb6690c987c6397f
[ "MIT" ]
1
2022-03-22T14:39:23.000Z
2022-03-22T14:39:23.000Z
atores.py
rafarios20/pythonbirds
520642c6e9f50dfe94b95255fb6690c987c6397f
[ "MIT" ]
null
null
null
atores.py
rafarios20/pythonbirds
520642c6e9f50dfe94b95255fb6690c987c6397f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import math DESTRUIDO = 'Destruido' ATIVO = 'Ativo' GRAVIDADE = 10 # m/s^2 class Ator: """ Classe que representa um ator. Ele representa um ponto cartesiano na tela. """ _caracter_ativo = 'A' _caracter_destruido = ' ' def __i...
31.075145
118
0.652158
from __future__ import unicode_literals import math DESTRUIDO = 'Destruido' ATIVO = 'Ativo' GRAVIDADE = 10 class Ator: _caracter_ativo = 'A' _caracter_destruido = ' ' def __init__(self, x=0, y=0): self.y = y self.x = x self.status = ATIVO def caracter(self): ret...
true
true
f734740a655264107a15bef1d806f6c58a8663e9
8,313
py
Python
lib/assimp/test/regression/gen_db.py
Extrosoph/CITS3003-project
2f0470b64eafc98864bfc14f5e7a9ad7e6fa837b
[ "MIT" ]
null
null
null
lib/assimp/test/regression/gen_db.py
Extrosoph/CITS3003-project
2f0470b64eafc98864bfc14f5e7a9ad7e6fa837b
[ "MIT" ]
null
null
null
lib/assimp/test/regression/gen_db.py
Extrosoph/CITS3003-project
2f0470b64eafc98864bfc14f5e7a9ad7e6fa837b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- Coding: UTF-8 -*- # --------------------------------------------------------------------------- # Open Asset Import Library (ASSIMP) # --------------------------------------------------------------------------- # # Copyright (c) 2006-2020, ASSIMP Development Team # # All rights re...
36.783186
104
0.563094
import sys import os import subprocess import zipfile import settings import utils usage = """gen_db [assimp_binary] [-i=...] [-e=...] [-p] [-n] The assimp_cmd (or assimp) binary to use is specified by the first command line argument and defaults to ``assimp``...
true
true
f734747084533080ace588764d0f46e026291f6a
5,346
py
Python
sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/operations/endpoint_settings_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/operations/endpoint_settings_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/operations/endpoint_settings_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
39.308824
114
0.671156
from msrest.pipeline import ClientRawResponse from .. import models class EndpointSettingsOperations(object): models = models def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer...
true
true
f734747f196e735eb6f0bbb5e4bff9965f84a668
11,715
py
Python
mars/services/task/api/web.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
1
2022-02-24T08:39:26.000Z
2022-02-24T08:39:26.000Z
mars/services/task/api/web.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
null
null
null
mars/services/task/api/web.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
41.105263
101
0.654545
import asyncio import base64 import json from typing import Callable, List, Optional, Union from ....core import TileableGraph, Tileable from ....utils import serialize_serializable, deserialize_serializable from ...web import web_api, MarsServiceWebAPIHandler, MarsWebAPIClientMixin from ..core import Ta...
true
true
f73474c4af496a73b74a83ea08cf1b082fce5527
25,920
py
Python
tensorflow/python/distribute/collective_all_reduce_strategy.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
1
2020-06-21T07:20:55.000Z
2020-06-21T07:20:55.000Z
tensorflow/python/distribute/collective_all_reduce_strategy.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
1
2022-02-10T02:22:42.000Z
2022-02-10T02:22:42.000Z
tensorflow/python/distribute/collective_all_reduce_strategy.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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.73913
114
0.7125
from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import weakref from tensorflow.core.protobuf import config_pb2 from tensorflow.core.protobuf import rewriter_config_pb2 from tensorflow.core.protobuf import tensorflow_server_pb2 fro...
true
true
f7347571cc0f50b736185a28baf83d913aa696aa
4,065
py
Python
tests/unit/clients/python/test_on_err.py
hirakjyoti08/jina
437943dd2dab87e22b0662b2081f13250918ec01
[ "Apache-2.0" ]
1
2022-03-04T01:53:51.000Z
2022-03-04T01:53:51.000Z
tests/unit/clients/python/test_on_err.py
hirakjyoti08/jina
437943dd2dab87e22b0662b2081f13250918ec01
[ "Apache-2.0" ]
1
2022-03-08T18:46:28.000Z
2022-03-08T18:47:24.000Z
tests/unit/clients/python/test_on_err.py
hirakjyoti08/jina
437943dd2dab87e22b0662b2081f13250918ec01
[ "Apache-2.0" ]
1
2022-03-17T04:50:07.000Z
2022-03-17T04:50:07.000Z
from typing import Optional import aiohttp import grpc from jina.excepts import BadClientCallback from jina import Flow, Client import numpy as np import pytest from docarray import DocumentArray from docarray.document.generators import from_ndarray def validate(x): raise NotImplementedError @pytest.mark.ski...
29.671533
253
0.652399
from typing import Optional import aiohttp import grpc from jina.excepts import BadClientCallback from jina import Flow, Client import numpy as np import pytest from docarray import DocumentArray from docarray.document.generators import from_ndarray def validate(x): raise NotImplementedError @pytest.mark.ski...
true
true
f73475ffe265e1e6f8dd75b1a5da562fa80f07ef
42,589
py
Python
testing/python3/tests/test_dcgm_diag.py
deepio/DCGM
d10273f18fb3d425da752ab6bb7e07af3d18caec
[ "Apache-2.0" ]
85
2021-02-03T19:58:50.000Z
2022-03-21T08:00:11.000Z
testing/python3/tests/test_dcgm_diag.py
deepio/DCGM
d10273f18fb3d425da752ab6bb7e07af3d18caec
[ "Apache-2.0" ]
19
2021-03-19T08:13:58.000Z
2022-03-17T02:50:41.000Z
testing/python3/tests/test_dcgm_diag.py
deepio/DCGM
d10273f18fb3d425da752ab6bb7e07af3d18caec
[ "Apache-2.0" ]
17
2021-02-04T06:47:30.000Z
2022-03-21T22:14:03.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
49.811696
213
0.734838
import pydcgm import dcgm_structs import dcgm_agent_internal import dcgm_agent import logger import test_utils import dcgm_fields import dcgm_internal_helpers import option_parser import DcgmDiag import dcgm_errors import threading import time import sys import os import signal import utils import json f...
true
true
f73477b87ab81023e673fecd85d93a87674baf40
4,145
py
Python
mux_python/models/update_asset_request.py
ryan-alley/mux-python
82003fa5eb9acfa712418de52a88716e917cf000
[ "MIT" ]
null
null
null
mux_python/models/update_asset_request.py
ryan-alley/mux-python
82003fa5eb9acfa712418de52a88716e917cf000
[ "MIT" ]
null
null
null
mux_python/models/update_asset_request.py
ryan-alley/mux-python
82003fa5eb9acfa712418de52a88716e917cf000
[ "MIT" ]
null
null
null
# coding: utf-8 """ Mux API Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. # noqa: E501 The version of the OpenAPI document: v1 Contact: devex@mux.com Gener...
31.401515
204
0.602171
import inspect import pprint import re import six from mux_python.configuration import Configuration class UpdateAssetRequest(object): openapi_types = { 'passthrough': 'str' } attribute_map = { 'passthrough': 'passthrough' } def __init__(self, passthrough=None, local_vars...
true
true
f734786d0e336e6a2f1b675fb9f89c68a3e86aae
7,686
py
Python
tests/conftest.py
sdss/sdss_access
04531f969a6eccfb71b78fc604e2381da3249cb4
[ "BSD-3-Clause" ]
6
2019-01-21T03:02:55.000Z
2022-01-10T00:47:08.000Z
tests/conftest.py
sdss/sdss_access
04531f969a6eccfb71b78fc604e2381da3249cb4
[ "BSD-3-Clause" ]
23
2017-04-10T14:59:57.000Z
2021-09-24T21:08:36.000Z
tests/conftest.py
sdss/sdss_access
04531f969a6eccfb71b78fc604e2381da3249cb4
[ "BSD-3-Clause" ]
2
2017-07-01T07:02:03.000Z
2019-04-22T12:49:55.000Z
# !usr/bin/env python2 # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2017-03-24 12:22:30 # @Last modified by: Michael Talbot # @Last Modified time: 2019-08-07 12:30:00 from __future__ import print_function, division, absolute_import import glob import gzip ...
28.572491
97
0.664065
from __future__ import print_function, division, absolute_import import glob import gzip import importlib import os import pytest import yaml import contextlib import shutil import tree.tree as treemod from sdss_access import RsyncAccess, HttpAccess, CurlAccess from sdss_access.path import Path def pytes...
true
true
f7347a7336023c2124958b5d353570dbcc2ccf8a
3,370
py
Python
lotlan_scheduler/demo.py
iml130/lotlan-scheduler
b576f853706d614a918dccd9572cc2c2b666bbe4
[ "Apache-2.0" ]
null
null
null
lotlan_scheduler/demo.py
iml130/lotlan-scheduler
b576f853706d614a918dccd9572cc2c2b666bbe4
[ "Apache-2.0" ]
null
null
null
lotlan_scheduler/demo.py
iml130/lotlan-scheduler
b576f853706d614a918dccd9572cc2c2b666bbe4
[ "Apache-2.0" ]
null
null
null
""" Contains main program example for scheduler """ # standard libraries import sys import os sys.path.append(os.path.abspath("../lotlan_scheduler")) # local sources from lotlan_scheduler.scheduler import LotlanScheduler from lotlan_scheduler.api.event import Event def cb_triggered_by(mf_uuid, uuid_, event_informa...
34.387755
90
0.601187
import sys import os sys.path.append(os.path.abspath("../lotlan_scheduler")) from lotlan_scheduler.scheduler import LotlanScheduler from lotlan_scheduler.api.event import Event def cb_triggered_by(mf_uuid, uuid_, event_information): print("cb_triggered_by from mf: " + str(mf_uuid)) print("UUID: " + str(u...
true
true
f7347b6d8e309b0c78b0fcfb2a1f79f5c9335adf
3,189
py
Python
profiles_project/settings.py
voltagebots/Django
ed1764b74c5e0599613d2f5e544566f461d9e641
[ "MIT" ]
null
null
null
profiles_project/settings.py
voltagebots/Django
ed1764b74c5e0599613d2f5e544566f461d9e641
[ "MIT" ]
null
null
null
profiles_project/settings.py
voltagebots/Django
ed1764b74c5e0599613d2f5e544566f461d9e641
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.717742
91
0.70022
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'smztt3zom_kgvvw^68qyfvvvy7bupo09f8w2@j$zewn0j&02+w' DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.content...
true
true
f7347c2720fbf9bb96a4e4f3907a47f52167125a
5,616
py
Python
scripts/gen-shaping-tests.py
laurmaedje/rustybuzz
8a138b1843dcb967b785510e80dc38c4d6c319cf
[ "MIT" ]
255
2020-01-13T02:09:28.000Z
2022-03-21T11:33:00.000Z
scripts/gen-shaping-tests.py
laurmaedje/rustybuzz
8a138b1843dcb967b785510e80dc38c4d6c319cf
[ "MIT" ]
44
2020-01-13T09:54:23.000Z
2022-03-14T03:50:34.000Z
scripts/gen-shaping-tests.py
laurmaedje/rustybuzz
8a138b1843dcb967b785510e80dc38c4d6c319cf
[ "MIT" ]
18
2020-02-18T14:05:41.000Z
2022-03-14T03:34:38.000Z
#!/usr/bin/env python import os import sys import subprocess from pathlib import Path # There is no sane way to test them. IGNORE_TESTS = [ 'macos.tests', ] IGNORE_TEST_CASES = [ # aots tests # in-house tests # --shaper=fallback is not supported. 'simple_002', # Not possible to implement wi...
29.714286
91
0.605591
import os import sys import subprocess from pathlib import Path IGNORE_TESTS = [ 'macos.tests', ] IGNORE_TEST_CASES = [ 'simple_002', 'arabic_fallback_shaping_001', 'collections_001', 'collections_002', 'collections_003', 'collections_006', # no `hhea...
true
true
f7347c3cc85d140906b47ef43a9305a527d4d295
12,212
py
Python
train/train_multitask.py
ChunGaoY/DSPnet
8fad61059d85ad0cd1f7790c37b5e0478dccb158
[ "MIT" ]
33
2018-04-18T06:52:16.000Z
2021-09-26T20:57:56.000Z
train/train_multitask.py
ChunGaoY/DSPnet
8fad61059d85ad0cd1f7790c37b5e0478dccb158
[ "MIT" ]
4
2018-07-09T07:09:15.000Z
2020-04-12T12:43:36.000Z
train/train_multitask.py
liangfu/dspnet
8fad61059d85ad0cd1f7790c37b5e0478dccb158
[ "MIT" ]
10
2018-04-19T08:17:01.000Z
2021-09-26T20:57:57.000Z
import tools.find_mxnet import mxnet as mx import logging import sys import os import importlib import re from dataset.iterator import MultiTaskRecordIter from train.metric import MultiBoxMetric from evaluate.eval_metric import MApMetric, VOC07MApMetric from config.config import cfg from symbol.multitask_symbol_factory...
38.282132
115
0.638634
import tools.find_mxnet import mxnet as mx import logging import sys import os import importlib import re from dataset.iterator import MultiTaskRecordIter from train.metric import MultiBoxMetric from evaluate.eval_metric import MApMetric, VOC07MApMetric from config.config import cfg from symbol.multitask_symbol_factory...
false
true
f7347d0417b9471093682564a5f485ea4fc07294
2,826
py
Python
ipywidgets/widgets/widget_layout.py
minrk/ipython_widgets
a80597fd4c81dd75a2f610e376fe21a64e0df8d1
[ "BSD-3-Clause" ]
2
2019-05-15T03:10:38.000Z
2020-10-08T08:08:24.000Z
ipywidgets/widgets/widget_layout.py
minrk/ipython_widgets
a80597fd4c81dd75a2f610e376fe21a64e0df8d1
[ "BSD-3-Clause" ]
2
2015-12-29T18:03:24.000Z
2016-05-19T06:26:50.000Z
ipywidgets/widgets/widget_layout.py
minrk/ipython_widgets
a80597fd4c81dd75a2f610e376fe21a64e0df8d1
[ "BSD-3-Clause" ]
1
2020-05-14T14:32:56.000Z
2020-05-14T14:32:56.000Z
"""Contains the Layout class""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from traitlets import Unicode, Instance from .widget_core import CoreWidget class Layout(CoreWidget): """Layout specification Defines a layout that can be expressed using CSS...
42.179104
78
0.703114
from traitlets import Unicode, Instance from .widget_core import CoreWidget class Layout(CoreWidget): _model_module = Unicode('jupyter-js-widgets').tag(sync=True) _view_module = Unicode('jupyter-js-widgets').tag(sync=True) _view_name = Unicode('LayoutView').tag(sync=True) _model_name = Unicode('L...
true
true
f7347d6f0909c926f14b411d4b55f806cc32f60a
2,421
py
Python
config.py
daph/Game2Text
19c1fa370c55564ba8dd489e46cd567a2d688ff0
[ "Apache-2.0" ]
1
2021-08-29T06:38:13.000Z
2021-08-29T06:38:13.000Z
config.py
agloo/Game2Text
90a5529d537695dd4eff03a0e20a23b5587bef92
[ "Apache-2.0" ]
null
null
null
config.py
agloo/Game2Text
90a5529d537695dd4eff03a0e20a23b5587bef92
[ "Apache-2.0" ]
null
null
null
from configparser import ConfigParser import os import platform OCR_CONFIG = 'OCRCONFIG' TRANSLATION_CONFIG = 'TRANSLATIONCONFIG' APPERANCE_CONFIG = 'APPEARANCE' APP_CONFIG = 'APPCONFIG' ANKI_CONFIG = 'ANKICONFIG' LOG_CONFIG = 'LOGCONFIG' SCRIPT_MATCH_CONFIG = 'SCRIPTMATCHCONFIG' TEXTHOOKER_CONFIG = 'TEXTHOOKERCONFIG'...
30.2625
96
0.71995
from configparser import ConfigParser import os import platform OCR_CONFIG = 'OCRCONFIG' TRANSLATION_CONFIG = 'TRANSLATIONCONFIG' APPERANCE_CONFIG = 'APPEARANCE' APP_CONFIG = 'APPCONFIG' ANKI_CONFIG = 'ANKICONFIG' LOG_CONFIG = 'LOGCONFIG' SCRIPT_MATCH_CONFIG = 'SCRIPTMATCHCONFIG' TEXTHOOKER_CONFIG = 'TEXTHOOKERCONFIG'...
true
true
f7347dbc6fec75d527f85033b83f2d3ecc839f3b
442
py
Python
proyecto/Modificaciones.py
RandyDpoe45/proyectoMultimedial
ca20911ec6ac8cd765bb03dc36b728e97808e3b0
[ "MIT" ]
null
null
null
proyecto/Modificaciones.py
RandyDpoe45/proyectoMultimedial
ca20911ec6ac8cd765bb03dc36b728e97808e3b0
[ "MIT" ]
null
null
null
proyecto/Modificaciones.py
RandyDpoe45/proyectoMultimedial
ca20911ec6ac8cd765bb03dc36b728e97808e3b0
[ "MIT" ]
null
null
null
from cv2 import * class Modificaciones (object): def __init__(self,img,segIni,segFin,posx,posy): self.im=img self.height, self.width, self.channels = self.im.shape self.segIni=segIni self.segFin=segFin self.posy=posy self.posx=posx d...
27.625
63
0.576923
from cv2 import * class Modificaciones (object): def __init__(self,img,segIni,segFin,posx,posy): self.im=img self.height, self.width, self.channels = self.im.shape self.segIni=segIni self.segFin=segFin self.posy=posy self.posx=posx d...
true
true
f73482af1cc0d86071662c8660889511c4534099
8,586
py
Python
tencentcloud/lp/v20200224/models.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
465
2018-04-27T09:54:59.000Z
2022-03-29T02:18:01.000Z
tencentcloud/lp/v20200224/models.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
91
2018-04-27T09:48:11.000Z
2022-03-12T08:04:04.000Z
tencentcloud/lp/v20200224/models.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
232
2018-05-02T08:02:46.000Z
2022-03-30T08:02:48.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
33.150579
130
0.643722
import warnings from tencentcloud.common.abstract_model import AbstractModel class QueryLoginProtectionRequest(AbstractModel): def __init__(self): self.LoginIp = None self.Uid = None self.LoginTime = None self.AccountType = None self.AppIdU = None s...
true
true
f734831f13dffdba489d2f15e75f93d43e6b312c
2,108
py
Python
path2insight/utils.py
armell/path2insight
63577bab69794f06f5c0fbaa8e7b1c0f67d7b7cf
[ "MIT" ]
2
2018-02-14T14:22:53.000Z
2018-02-14T14:53:41.000Z
path2insight/utils.py
armell/path2insight
63577bab69794f06f5c0fbaa8e7b1c0f67d7b7cf
[ "MIT" ]
null
null
null
path2insight/utils.py
armell/path2insight
63577bab69794f06f5c0fbaa8e7b1c0f67d7b7cf
[ "MIT" ]
1
2020-04-13T09:56:18.000Z
2020-04-13T09:56:18.000Z
import sys from collections import Iterable from path2insight import WindowsFilePath, PosixFilePath PATH_OBJECT_TYPES = (WindowsFilePath, PosixFilePath) # ---------------------------------------------------- class VisibleDeprecationWarning(UserWarning): """Visible deprecation warning. Based on numpy's Vis...
22.189474
76
0.621442
import sys from collections import Iterable from path2insight import WindowsFilePath, PosixFilePath PATH_OBJECT_TYPES = (WindowsFilePath, PosixFilePath) class VisibleDeprecationWarning(UserWarning): pass def MissingDependencyError(Exception): pass def _import_jellyfish(): try: from jell...
true
true
f734838dd63e5c9ccb5e77e1cad16fd540101498
351,709
py
Python
catboost/pytest/test.py
thundergolfer/catboost
60942dee40f1407466d0b1e486f0a1d445e6aa91
[ "Apache-2.0" ]
null
null
null
catboost/pytest/test.py
thundergolfer/catboost
60942dee40f1407466d0b1e486f0a1d445e6aa91
[ "Apache-2.0" ]
null
null
null
catboost/pytest/test.py
thundergolfer/catboost
60942dee40f1407466d0b1e486f0a1d445e6aa91
[ "Apache-2.0" ]
null
null
null
from itertools import permutations import yatest.common from yatest.common import ExecutionTimeoutError, ExecutionError import pytest import os import filecmp import numpy as np import pandas as pd import timeit import json import catboost from catboost_pytest_lib import ( apply_catboost, compare_evals_with_p...
37.475653
189
0.63598
from itertools import permutations import yatest.common from yatest.common import ExecutionTimeoutError, ExecutionError import pytest import os import filecmp import numpy as np import pandas as pd import timeit import json import catboost from catboost_pytest_lib import ( apply_catboost, compare_evals_with_p...
true
true
f73484985ce0517435ef3853beb01472fde5ca7c
3,076
py
Python
syntropy_sdk/models/pointtotag_response.py
SyntropyNet/syntropy-python-sdk
27b7756b136f83886fd2a6e342fa4d4073779ff7
[ "MIT" ]
1
2020-12-17T17:30:12.000Z
2020-12-17T17:30:12.000Z
syntropy_sdk/models/pointtotag_response.py
SyntropyNet/syntropy-python-sdk
27b7756b136f83886fd2a6e342fa4d4073779ff7
[ "MIT" ]
null
null
null
syntropy_sdk/models/pointtotag_response.py
SyntropyNet/syntropy-python-sdk
27b7756b136f83886fd2a6e342fa4d4073779ff7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Syntropy Rule service Syntropy Rule service # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class PointtotagResponse(object): """NOTE: This class is auto gene...
27.711712
85
0.548765
import pprint import re import six class PointtotagResponse(object): swagger_types = {"data": "PointtotagPointToTag"} attribute_map = {"data": "data"} def __init__(self, data=None): self._data = None self.discriminator = None if data is not None: self.data = ...
true
true
f734850affb2692f86a822ffb78159d7900c28c8
1,758
py
Python
utils/callbacks.py
hz512/Smart-Parking-Enforcement-System
e990903de545693ad6e2536bf167c69ab672d16a
[ "MIT" ]
null
null
null
utils/callbacks.py
hz512/Smart-Parking-Enforcement-System
e990903de545693ad6e2536bf167c69ab672d16a
[ "MIT" ]
null
null
null
utils/callbacks.py
hz512/Smart-Parking-Enforcement-System
e990903de545693ad6e2536bf167c69ab672d16a
[ "MIT" ]
null
null
null
import tensorflow.keras as tfk import tensorflow as tf import tensorflow.keras.layers as layers import json import collections from datetime import datetime import os class LrStepDecay(tfk.callbacks.Callback): def __init__(self, decay_rate, decay_at): super(L...
33.169811
104
0.59727
import tensorflow.keras as tfk import tensorflow as tf import tensorflow.keras.layers as layers import json import collections from datetime import datetime import os class LrStepDecay(tfk.callbacks.Callback): def __init__(self, decay_rate, decay_at): super(L...
true
true
f7348651855a7867e68bf36cfae9cc9c668012bc
708
py
Python
modules/post-exploitation/pykek.py
BustedSec/ptf
48ecc6f17befd7fda7159f38e44bb88a7b1b3a45
[ "FTL" ]
5
2019-03-14T10:17:22.000Z
2019-10-23T14:04:12.000Z
modules/post-exploitation/pykek.py
yeyintminthuhtut/ptf
53d90661b9e1c372fb6965fb22c63033103d0c13
[ "FTL" ]
3
2017-12-06T00:45:04.000Z
2017-12-06T00:49:05.000Z
modules/post-exploitation/pykek.py
yeyintminthuhtut/ptf
53d90661b9e1c372fb6965fb22c63033103d0c13
[ "FTL" ]
14
2019-03-14T10:34:02.000Z
2021-10-31T17:34:13.000Z
#!/usr/bin/env python ##################################### # Installation module for PyKek ##################################### # AUTHOR OF MODULE NAME AUTHOR="David Kennedy (ReL1K)" # DESCRIPTION OF THE MODULE DESCRIPTION="This module will install/update PyKEK - Kerberos exploitation kit" # INSTALL TYPE GIT, SVN,...
23.6
79
0.683616
true
true
f734874472ed3a67638edda330549a063d170d6f
9,101
py
Python
mynt/processors.py
Mindiell/mynt3
340b526f143b5506e3b8457113728ff15e48523a
[ "BSD-3-Clause" ]
null
null
null
mynt/processors.py
Mindiell/mynt3
340b526f143b5506e3b8457113728ff15e48523a
[ "BSD-3-Clause" ]
null
null
null
mynt/processors.py
Mindiell/mynt3
340b526f143b5506e3b8457113728ff15e48523a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from calendar import timegm from datetime import datetime from importlib import import_module from os import path as op import re from pkg_resources import DistributionNotFound, iter_entry_points, load_entry_point from pygments import highlight from pygments.formatters import HtmlFormatter fro...
33.707407
121
0.545325
from calendar import timegm from datetime import datetime from importlib import import_module from os import path as op import re from pkg_resources import DistributionNotFound, iter_entry_points, load_entry_point from pygments import highlight from pygments.formatters import HtmlFormatter from pygments.lexers impor...
true
true
f73488401ecad308310e06fd79318c6a62a25cf2
2,967
py
Python
code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/casts/tests/test_cast_get.py
jhkuang11/UniTrade
5f68b853926e167936b58c8543b8f95ebd6f5211
[ "MIT" ]
null
null
null
code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/casts/tests/test_cast_get.py
jhkuang11/UniTrade
5f68b853926e167936b58c8543b8f95ebd6f5211
[ "MIT" ]
10
2020-06-05T19:42:26.000Z
2022-03-11T23:38:35.000Z
code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/casts/tests/test_cast_get.py
jhkuang11/UniTrade
5f68b853926e167936b58c8543b8f95ebd6f5211
[ "MIT" ]
null
null
null
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2017, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## from __future__ i...
43.632353
77
0.531513
true
true
f73489645d5715e5a6b3c7e65b656254dbaa3841
614
py
Python
py/next-greater-element-iii.py
ckclark/leetcode
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
[ "Apache-2.0" ]
null
null
null
py/next-greater-element-iii.py
ckclark/leetcode
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
[ "Apache-2.0" ]
null
null
null
py/next-greater-element-iii.py
ckclark/leetcode
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
[ "Apache-2.0" ]
null
null
null
class Solution(object): def nextGreaterElement(self, n): """ :type n: int :rtype: int """ s = str(n) for i, n in enumerate(reversed(s[:-1]), 1): if n < s[-i]: x, j = min((x, k) for k, x in enumerate(s[-i:]) if x > n) ans = s...
27.909091
73
0.333876
class Solution(object): def nextGreaterElement(self, n): s = str(n) for i, n in enumerate(reversed(s[:-1]), 1): if n < s[-i]: x, j = min((x, k) for k, x in enumerate(s[-i:]) if x > n) ans = s[:-i - 1] ans += x l = list(s[-i:...
true
true
f7348b51ae3998a5d2ba1a4df557df2269b43936
4,602
py
Python
tests/ImpactPacket/test_TCP.py
StanHardy/impacket
769c3196124af64d7bc08d51ae4b651e61a87037
[ "Apache-1.1" ]
8
2022-03-23T13:02:37.000Z
2022-03-27T04:30:16.000Z
tests/ImpactPacket/test_TCP.py
anno5750/impacket
ed7082cd0bc0d951f6eefb0a98c4c1360fe1a8a2
[ "Apache-1.1" ]
null
null
null
tests/ImpactPacket/test_TCP.py
anno5750/impacket
ed7082cd0bc0d951f6eefb0a98c4c1360fe1a8a2
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/env python # Impacket - Collection of Python classes for working with network protocols. # # SECUREAUTH LABS. Copyright (C) 2021 SecureAuth Corporation. All rights reserved. # # This software is provided under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # f...
32.871429
90
0.617992
import unittest from impacket.ImpactPacket import TCP class TestTCP(unittest.TestCase): def setUp(self): self.frame = b'\xec\xef\x00\x50\xa8\xbd\xea\x4c\x00\x00\x00\x00\xa0\x02\x16\xd0' \ b'\x64\xcb\x00\x00\x02\x04\x05\xb4\x04\x02\x08\x0a\x00\xdc\xd6\x12' \...
true
true
f7348b73c872e7766dc0330b5f59a67197219de5
287
py
Python
runtool/tests/perform_doctest.py
arangatang/gluon-ts-tools
26509b853ddf1039993779f6049eafd4ec434ff7
[ "Apache-2.0" ]
null
null
null
runtool/tests/perform_doctest.py
arangatang/gluon-ts-tools
26509b853ddf1039993779f6049eafd4ec434ff7
[ "Apache-2.0" ]
null
null
null
runtool/tests/perform_doctest.py
arangatang/gluon-ts-tools
26509b853ddf1039993779f6049eafd4ec434ff7
[ "Apache-2.0" ]
null
null
null
from doctest import testmod from runtool import ( datatypes, recurse_config, runtool, transformations, transformer, utils, ) for module in ( datatypes, recurse_config, runtool, transformations, transformer, utils, ): testmod(module)
13.666667
27
0.651568
from doctest import testmod from runtool import ( datatypes, recurse_config, runtool, transformations, transformer, utils, ) for module in ( datatypes, recurse_config, runtool, transformations, transformer, utils, ): testmod(module)
true
true
f7348b7b44390ac77bda8f14895ef3bb4225a196
2,553
py
Python
monai/networks/nets/__init__.py
IntroAI-termproject/MONAI
b9e0cca17241318e570021b258b181a15d567603
[ "Apache-2.0" ]
null
null
null
monai/networks/nets/__init__.py
IntroAI-termproject/MONAI
b9e0cca17241318e570021b258b181a15d567603
[ "Apache-2.0" ]
null
null
null
monai/networks/nets/__init__.py
IntroAI-termproject/MONAI
b9e0cca17241318e570021b258b181a15d567603
[ "Apache-2.0" ]
1
2021-11-14T06:54:44.000Z
2021-11-14T06:54:44.000Z
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
28.685393
116
0.757148
from .ahnet import AHnet, Ahnet, AHNet from .autoencoder import AutoEncoder from .basic_unet import BasicUNet, BasicUnet, Basicunet, basicunet from .classifier import Classifier, Critic, Discriminator from .densenet import ( DenseNet, Densenet, DenseNet121, Densenet121, DenseNet169, D...
true
true
f7348be2dc59bceb8e5112a0f8fb8a4054ef9388
3,914
py
Python
tests/system/action/motion_submitter/test_create.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
tests/system/action/motion_submitter/test_create.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
tests/system/action/motion_submitter/test_create.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
from tests.system.action.base import BaseActionTestCase class MotionSubmitterCreateActionTest(BaseActionTestCase): def test_create(self) -> None: self.create_model("meeting/111", {"name": "name_m123etrd"}) self.create_model("motion/357", {"title": "title_YIDYXmKj", "meeting_id": 111}) self...
36.924528
103
0.505621
from tests.system.action.base import BaseActionTestCase class MotionSubmitterCreateActionTest(BaseActionTestCase): def test_create(self) -> None: self.create_model("meeting/111", {"name": "name_m123etrd"}) self.create_model("motion/357", {"title": "title_YIDYXmKj", "meeting_id": 111}) self...
true
true
f7348e3c875c7342813afe5b8cb4f7712c3f88d3
4,700
py
Python
ci-wrappers/pythonpreview/wrapper/swagger_server/controllers/device_controller.py
gregga/iot-sdks-e2e-fx
02d0ce0823f0190ef26ccfbf3fd3ba7ccde8d6cb
[ "MIT" ]
null
null
null
ci-wrappers/pythonpreview/wrapper/swagger_server/controllers/device_controller.py
gregga/iot-sdks-e2e-fx
02d0ce0823f0190ef26ccfbf3fd3ba7ccde8d6cb
[ "MIT" ]
null
null
null
ci-wrappers/pythonpreview/wrapper/swagger_server/controllers/device_controller.py
gregga/iot-sdks-e2e-fx
02d0ce0823f0190ef26ccfbf3fd3ba7ccde8d6cb
[ "MIT" ]
null
null
null
import connexion import six from swagger_server.models.certificate import Certificate # noqa: E501 from swagger_server.models.connect_response import ConnectResponse # noqa: E501 from swagger_server.models.roundtrip_method_call_body import RoundtripMethodCallBody # noqa: E501 from swagger_server import util from d...
27.325581
471
0.720213
import connexion import six from swagger_server.models.certificate import Certificate from swagger_server.models.connect_response import ConnectResponse from swagger_server.models.roundtrip_method_call_body import RoundtripMethodCallBody from swagger_server import util from device_glue import DeviceGlue device...
true
true
f7348e64372058a41b16653a7078251c30d98d27
113
py
Python
mapapp/admin.py
jmartinm/nostro-web
22c8c613b7b5930e3a8e0e9f42d5a68917bc1c96
[ "Unlicense", "MIT" ]
null
null
null
mapapp/admin.py
jmartinm/nostro-web
22c8c613b7b5930e3a8e0e9f42d5a68917bc1c96
[ "Unlicense", "MIT" ]
null
null
null
mapapp/admin.py
jmartinm/nostro-web
22c8c613b7b5930e3a8e0e9f42d5a68917bc1c96
[ "Unlicense", "MIT" ]
null
null
null
from django.contrib import admin from mapapp.models import PointOfInterest admin.site.register(PointOfInterest)
22.6
41
0.858407
from django.contrib import admin from mapapp.models import PointOfInterest admin.site.register(PointOfInterest)
true
true
f7348e730198012787fccce820babc5dd0ebbb81
15,658
py
Python
novadocker/tests/virt/docker/test_docker_client.py
praveen1664/Nova-Docker-Integration
87e578102b0a8487571be1fc5c935b2648820651
[ "Apache-1.1" ]
4
2019-05-25T10:11:10.000Z
2019-08-30T17:32:26.000Z
novadocker/tests/virt/docker/test_docker_client.py
praveen1664/Nova-Docker-Integration
87e578102b0a8487571be1fc5c935b2648820651
[ "Apache-1.1" ]
null
null
null
novadocker/tests/virt/docker/test_docker_client.py
praveen1664/Nova-Docker-Integration
87e578102b0a8487571be1fc5c935b2648820651
[ "Apache-1.1" ]
null
null
null
# Copyright (c) 2013 dotCloud, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
34.413187
78
0.568719
import collections import mox import urllib import uuid from nova.openstack.common import jsonutils from nova import test import novadocker.virt.docker.client as docker_client class FakeResponse(object): def __init__(self, status, data='', headers=None): self.status = status self....
true
true
f7348eebd36027072943cbaa88c43983c1e90c2d
3,666
py
Python
data/coco_pose/ref.py
CenIII/pose-ae-train
8780ba9f3d80ca3a724bbee7b815073adc3d3e6e
[ "BSD-3-Clause" ]
null
null
null
data/coco_pose/ref.py
CenIII/pose-ae-train
8780ba9f3d80ca3a724bbee7b815073adc3d3e6e
[ "BSD-3-Clause" ]
null
null
null
data/coco_pose/ref.py
CenIII/pose-ae-train
8780ba9f3d80ca3a724bbee7b815073adc3d3e6e
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pickle import h5py from scipy.misc import imread import os from pycocotools.coco import COCO from pycocotools import mask data_dir = '/home/chuancen/CVResearch/HumanPoseTracking/PJDATA/COCO/images' ann_path = '/home/chuancen/CVResearch/HumanPoseTracking/PJDATA/COCO/annotations/person_keypoi...
32.157895
112
0.61784
import numpy as np import pickle import h5py from scipy.misc import imread import os from pycocotools.coco import COCO from pycocotools import mask data_dir = '/home/chuancen/CVResearch/HumanPoseTracking/PJDATA/COCO/images' ann_path = '/home/chuancen/CVResearch/HumanPoseTracking/PJDATA/COCO/annotations/person_keypoi...
true
true
f7348f533855fcbaa041326c34a9d63cb3f767f6
1,296
py
Python
setup.py
leenr/gzip-stream
5161a19b67015d819109666f53fd2152f1e7029f
[ "CC0-1.0" ]
17
2020-04-06T18:27:06.000Z
2022-01-03T21:25:36.000Z
setup.py
leenr/gzip-stream
5161a19b67015d819109666f53fd2152f1e7029f
[ "CC0-1.0" ]
4
2021-02-24T12:56:41.000Z
2021-12-08T17:00:17.000Z
setup.py
leenr/gzip-stream
5161a19b67015d819109666f53fd2152f1e7029f
[ "CC0-1.0" ]
5
2019-08-07T12:57:30.000Z
2021-12-02T11:37:53.000Z
from setuptools import setup setup( name='gzip-stream', version='1.2.0', py_modules=['gzip_stream'], provides=['gzip_stream'], description='Compress stream by GZIP on the fly.', long_description=open('README.rst').read(), keywords=['gzip', 'compression'], url='https://github.com/lee...
27.574468
74
0.56713
from setuptools import setup setup( name='gzip-stream', version='1.2.0', py_modules=['gzip_stream'], provides=['gzip_stream'], description='Compress stream by GZIP on the fly.', long_description=open('README.rst').read(), keywords=['gzip', 'compression'], url='https://github.com/lee...
true
true
f7348f8931e9d950c2b7c97398de87e48d6618ce
14,169
py
Python
nova/tests/unit/api/openstack/compute/test_flavors_extra_specs.py
bopopescu/Trusted-Platform-Module-nova
20d28ef29daf6fd7a67b37b87ec2561c34b4230b
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/api/openstack/compute/test_flavors_extra_specs.py
bopopescu/Trusted-Platform-Module-nova
20d28ef29daf6fd7a67b37b87ec2561c34b4230b
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_flavors_extra_specs.py
bopopescu/Trusted-Platform-Module-nova
20d28ef29daf6fd7a67b37b87ec2561c34b4230b
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2011 University of Southern California # 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 # # ...
40.598854
79
0.638154
import mock import webob from nova.api.openstack.compute import flavors_extraspecs \ as flavorextraspecs_v21 from nova.api.openstack.compute.legacy_v2.contrib import flavorextraspecs \ as flavorextraspecs_v2 from nova import exception from nova import objects from nova import test from n...
true
true
f7348fb9f03e1d0affa87e3c6d29a87b3da4654e
866
py
Python
packages/skills/__init__.py
mattmcd/aea-examples
1c72faadf8feb9f4b8dda9f17995010c2fb3510e
[ "Apache-2.0" ]
1
2021-07-25T18:50:18.000Z
2021-07-25T18:50:18.000Z
packages/skills/__init__.py
mattmcd/aea-examples
1c72faadf8feb9f4b8dda9f17995010c2fb3510e
[ "Apache-2.0" ]
1
2020-02-21T14:28:13.000Z
2020-03-05T14:53:53.000Z
packages/skills/__init__.py
mattmcd/aea-examples
1c72faadf8feb9f4b8dda9f17995010c2fb3510e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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...
39.363636
80
0.58776
true
true
f7349006ddb929b24d671bd4b9d7c2745ad72556
17,366
py
Python
python/ccxt/bit2c.py
RusEu/ccxt
d6d2b3e2f54a59d102102ee2858eca4d6702fecc
[ "MIT" ]
3
2021-06-29T16:27:19.000Z
2021-07-18T08:36:07.000Z
python/ccxt/bit2c.py
RusEu/ccxt
d6d2b3e2f54a59d102102ee2858eca4d6702fecc
[ "MIT" ]
null
null
null
python/ccxt/bit2c.py
RusEu/ccxt
d6d2b3e2f54a59d102102ee2858eca4d6702fecc
[ "MIT" ]
1
2022-01-11T07:39:19.000Z
2022-01-11T07:39:19.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange # ----------------------------------------------------------------------------- try: basestri...
40.292343
138
0.488483
ge import Exchange try: basestring except NameError: basestring = str import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationError from ccxt.base.errors import PermissionDenied from ccxt.base.errors import ArgumentsRequired from ccxt.base.errors import Inv...
true
true
f7349134fd6962aa9890bab9d791308f56e2fb36
1,135
py
Python
views/users.py
dimzignas/webapi
bec3dbdfd3a26c34a4b4ef01020079918b8d8bec
[ "Apache-2.0" ]
null
null
null
views/users.py
dimzignas/webapi
bec3dbdfd3a26c34a4b4ef01020079918b8d8bec
[ "Apache-2.0" ]
3
2021-03-31T19:29:45.000Z
2021-12-13T20:31:07.000Z
views/users.py
dimzignas/webapi
bec3dbdfd3a26c34a4b4ef01020079918b8d8bec
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint, request, session, render_template from models.user import requires_login user_blueprint = Blueprint('users', __name__) @user_blueprint.route('/login') def login_user(): is_logged_in = False if not session.get('email') else True return render_template("users/login.html", is_logged...
31.527778
109
0.737445
from flask import Blueprint, request, session, render_template from models.user import requires_login user_blueprint = Blueprint('users', __name__) @user_blueprint.route('/login') def login_user(): is_logged_in = False if not session.get('email') else True return render_template("users/login.html", is_logged...
true
true
f734914502141e33079acd5522ab88b4195c6a4e
2,723
py
Python
dynamicgem/test/test_dynRNN.py
Sujit-O/dyngem
a879bf362d1e9409faa4e1186c345337ad6d0189
[ "MIT" ]
null
null
null
dynamicgem/test/test_dynRNN.py
Sujit-O/dyngem
a879bf362d1e9409faa4e1186c345337ad6d0189
[ "MIT" ]
null
null
null
dynamicgem/test/test_dynRNN.py
Sujit-O/dyngem
a879bf362d1e9409faa4e1186c345337ad6d0189
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This module is for testing dynRNN """ import os import matplotlib.pyplot as plt from dynamicgem.embedding.dynRNN import DynRNN from dynamicgem.graph_generation import dynamic_SBM_graph as sbm from dynamicgem.visualization import plot_dynamic_sbm_embedding from time imp...
35.828947
98
0.539111
import os import matplotlib.pyplot as plt from dynamicgem.embedding.dynRNN import DynRNN from dynamicgem.graph_generation import dynamic_SBM_graph as sbm from dynamicgem.visualization import plot_dynamic_sbm_embedding from time import time def test_dynRNN(): node_num = 100 community_num = 2 ...
true
true