hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
2fb9ec9da81834174846ea3dfb94ffcb9f80a646
38,161
py
Python
recumpiler/mutators.py
Toasterstein/recumpiler
390957cfaa8f60ffeb24adb43b91981dd445c6b9
[ "MIT" ]
null
null
null
recumpiler/mutators.py
Toasterstein/recumpiler
390957cfaa8f60ffeb24adb43b91981dd445c6b9
[ "MIT" ]
8
2021-03-23T21:54:29.000Z
2021-03-30T23:17:06.000Z
recumpiler/mutators.py
Toasterstein/recumpiler
390957cfaa8f60ffeb24adb43b91981dd445c6b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """garbage code to make garbage text""" import random import re import string import upsidedown from functools import wraps from math import ceil from typing import List, Optional from logging import getLogger from timeit import default_timer as timer import homoglyphs a...
28.757347
128
0.60153
51bb2b936faa55a1448859efc6ee5608ca7ee9cc
1,551
py
Python
jetsoncar_gazebo/scripts/test_commands.py
denisshustov/JetsonCar-Simulation
fb4c6ebcee48e9b9cffc7cd2e2794ec3186c5fe5
[ "MIT" ]
5
2018-08-03T10:08:28.000Z
2020-09-16T19:45:17.000Z
jetsoncar_gazebo/scripts/test_commands.py
denisshustov/JetsonCar-Simulation
fb4c6ebcee48e9b9cffc7cd2e2794ec3186c5fe5
[ "MIT" ]
1
2020-03-23T18:16:59.000Z
2020-10-18T10:44:50.000Z
jetsoncar_gazebo/scripts/test_commands.py
denisshustov/JetsonCar-Simulation
fb4c6ebcee48e9b9cffc7cd2e2794ec3186c5fe5
[ "MIT" ]
2
2018-06-01T02:18:43.000Z
2019-11-17T22:01:19.000Z
#!/usr/bin/env python import rospy from std_msgs.msg import Bool from std_msgs.msg import Float32 from std_msgs.msg import Float64 speed = 0.3 steering_angle = 0.5 def servo_commands(): rospy.init_node('servo_commands', anonymous=True) pub_vel_left_front_wheel = rospy.Publisher('/jetsoncar/front_left_wheel_...
39.769231
133
0.778852
0dd2eaf38f9f4b17e654fc652b3a1ca6f40ef658
1,744
py
Python
tests/test_reduce_window.py
alexander-g/vkJAX
8ef0105891ee41734293b2f1a8c247957018d7c2
[ "Unlicense" ]
5
2021-02-07T08:13:36.000Z
2021-02-28T09:48:48.000Z
tests/test_reduce_window.py
alexander-g/vkJAX
8ef0105891ee41734293b2f1a8c247957018d7c2
[ "Unlicense" ]
2
2021-05-30T16:48:21.000Z
2021-06-02T04:50:02.000Z
tests/test_reduce_window.py
alexander-g/vkJAX
8ef0105891ee41734293b2f1a8c247957018d7c2
[ "Unlicense" ]
null
null
null
import os os.environ['CUDA_VISIBLE_DEVICES']='' import vkjax import jax, jax.numpy as jnp, numpy as np import pytest seed = np.random.randint(0, 1000000) np.random.seed(seed) #2d maxpooling def reduce_window_max0(x): return jax.lax.reduce_window(x, -jnp.inf, jax.lax.max, (1,2,2,1), window_strides=(1,1,1,1), paddin...
31.709091
135
0.627294
88e30d69ef46537da5f7d555c2d3c7c39af1e408
2,495
py
Python
pipeline/run.py
aldengolab/ML-basics
5db39794b4a39904334284b5ae33697169148062
[ "MIT" ]
null
null
null
pipeline/run.py
aldengolab/ML-basics
5db39794b4a39904334284b5ae33697169148062
[ "MIT" ]
null
null
null
pipeline/run.py
aldengolab/ML-basics
5db39794b4a39904334284b5ae33697169148062
[ "MIT" ]
1
2020-09-09T08:14:41.000Z
2020-09-09T08:14:41.000Z
''' Runs the model loop for CivicScape. ''' import csv import argparse import numpy as np from model_loop import ModelLoop from sparse_matrix import SparseMatrix def pipeline(args): ''' Runs the model loop. If you wish to edit any of the parameters for the models, please edit the model_loop.py file d...
40.241935
97
0.625651
8882e8fab1dd9bfdc1f7924dd6696e0298a81a0c
2,303
py
Python
Tests/GUI/DataND/test_is_overlay.py
TinaTabo/SciDataTool
a1a51b104248d3e6d07006f2c3f2806b4589624e
[ "Apache-2.0" ]
null
null
null
Tests/GUI/DataND/test_is_overlay.py
TinaTabo/SciDataTool
a1a51b104248d3e6d07006f2c3f2806b4589624e
[ "Apache-2.0" ]
null
null
null
Tests/GUI/DataND/test_is_overlay.py
TinaTabo/SciDataTool
a1a51b104248d3e6d07006f2c3f2806b4589624e
[ "Apache-2.0" ]
null
null
null
import pytest from PySide2 import QtWidgets import sys from numpy import ones from SciDataTool import DataTime, DataLinspace from numpy import pi class TestGUI(object): @classmethod def setup_class(cls): """Run at the begining of every test to setup the gui""" if not QtWidgets.QApp...
29.525641
103
0.597482
927bc31121c237085a829c9efa758b46cd340aff
1,176
py
Python
src/genie/libs/parser/iosxe/tests/ShowStackwiseVirtualLink/cli/equal/golden_output_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowStackwiseVirtualLink/cli/equal/golden_output_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowStackwiseVirtualLink/cli/equal/golden_output_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
expected_output = { 'switch': { 1: { 'svl': { 1: { 'ports': { 'HundredGigE1/0/1': { 'link_status': 'U', 'protocol_status': 'P'}, ...
33.6
58
0.177721
75ca47beb336251a44208cf5ac23458e3d6e27ee
225
py
Python
utils/logger.py
Nithin-Holla/meme_challenge
f4dc2079acb78ae30caaa31e112c4c210f93bf27
[ "MIT" ]
20
2020-11-18T18:10:07.000Z
2022-02-17T17:53:02.000Z
utils/logger.py
Nithin-Holla/meme_challenge
f4dc2079acb78ae30caaa31e112c4c210f93bf27
[ "MIT" ]
1
2021-04-08T06:19:11.000Z
2022-03-12T15:18:45.000Z
utils/logger.py
Nithin-Holla/meme_challenge
f4dc2079acb78ae30caaa31e112c4c210f93bf27
[ "MIT" ]
8
2020-12-11T20:39:02.000Z
2022-03-12T15:19:05.000Z
import logging _LOG_FMT = '%(asctime)s : %(levelname)s - %(message)s' _DATE_FMT = '%d/%m/%Y %I:%M:%S %p' logging.basicConfig(format=_LOG_FMT, datefmt=_DATE_FMT, level=logging.INFO) LOGGER = logging.getLogger('TrainLogger')
37.5
75
0.711111
a5d15c4f6817637f9930bfecec9208ec30a92489
173
py
Python
learn1/60.py
raghavi101/HackerRank
48bf812f1b3c60b5201a95458be76ae9b7323a88
[ "MIT" ]
null
null
null
learn1/60.py
raghavi101/HackerRank
48bf812f1b3c60b5201a95458be76ae9b7323a88
[ "MIT" ]
null
null
null
learn1/60.py
raghavi101/HackerRank
48bf812f1b3c60b5201a95458be76ae9b7323a88
[ "MIT" ]
null
null
null
c = int(input()) for i in range(c): n = input() a = set(map(int, input().split())) m = input() b = set(map(int, input().split())) print(a.issubset(b))
17.3
38
0.508671
bfa30e409e6b4211a52346165f75981949ea3c1e
94
py
Python
boa3_test/test_sc/built_in_methods_test/CountTupleEmpty.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3_test/test_sc/built_in_methods_test/CountTupleEmpty.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3_test/test_sc/built_in_methods_test/CountTupleEmpty.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
from boa3.builtin import public @public def main() -> int: a = () return a.count(1)
11.75
31
0.606383
441c5411eab6bcb49efb6fa244c443e468285d30
2,245
py
Python
reposynch/api.py
jvalderrama/python-syncrepos
31ad7474be171e2476e0c5d9b4005af3974d58f6
[ "Apache-2.0" ]
null
null
null
reposynch/api.py
jvalderrama/python-syncrepos
31ad7474be171e2476e0c5d9b4005af3974d58f6
[ "Apache-2.0" ]
null
null
null
reposynch/api.py
jvalderrama/python-syncrepos
31ad7474be171e2476e0c5d9b4005af3974d58f6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016, Atos Spain SA. # # Author: Jorge Edgar Valderrama Romero # # 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 #...
27.048193
78
0.653452
355a8f39200df324356f57b32f2b0874d4004eac
8,236
py
Python
deepcell/layers/padding_test.py
esgomezm/deepcell-tf
6693c9ed7e76793561e6c2281437acaf3e4fa441
[ "Apache-2.0" ]
1
2020-06-24T23:04:14.000Z
2020-06-24T23:04:14.000Z
deepcell/layers/padding_test.py
esgomezm/deepcell-tf
6693c9ed7e76793561e6c2281437acaf3e4fa441
[ "Apache-2.0" ]
null
null
null
deepcell/layers/padding_test.py
esgomezm/deepcell-tf
6693c9ed7e76793561e6c2281437acaf3e4fa441
[ "Apache-2.0" ]
1
2020-06-24T23:04:26.000Z
2020-06-24T23:04:26.000Z
# Copyright 2016-2019 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
46.269663
91
0.572608
5bff793cbba4ceb98c0ceab98c889840734b533b
118
py
Python
mayan/apps/document_indexing/__init__.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2021-06-17T18:24:25.000Z
2021-06-17T18:24:25.000Z
mayan/apps/document_indexing/__init__.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
7
2020-06-06T00:01:04.000Z
2022-01-13T01:47:17.000Z
mayan/apps/document_indexing/__init__.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import unicode_literals default_app_config = 'mayan.apps.document_indexing.apps.DocumentIndexingApp'
29.5
76
0.872881
8f32f0b76cfb9a382449ffe625e45c9e9fc359d4
4,868
py
Python
tests/unit/alertapi30/test_alert.py
ahertz/pyowm
e7ccb5ec3f86bee0cbb9981070a62988a83a5b3c
[ "MIT" ]
799
2015-01-03T12:07:57.000Z
2022-03-31T03:59:53.000Z
tests/unit/alertapi30/test_alert.py
ahertz/pyowm
e7ccb5ec3f86bee0cbb9981070a62988a83a5b3c
[ "MIT" ]
279
2015-02-12T16:11:43.000Z
2022-02-14T21:49:03.000Z
tests/unit/alertapi30/test_alert.py
ahertz/pyowm
e7ccb5ec3f86bee0cbb9981070a62988a83a5b3c
[ "MIT" ]
215
2015-01-06T19:07:11.000Z
2022-02-14T21:39:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import copy import unittest import pyowm.commons.exceptions from pyowm.alertapi30.alert import Alert, AlertChannel from pyowm.alertapi30.condition import Condition class TestAlert(unittest.TestCase): def test_alert_fails_with_wrong_parameters(self): self.as...
43.079646
118
0.589359
4b4cbcf4b37d83ae8b594617c3ccebac9e383890
8,476
py
Python
tests/core/full_node/test_transactions.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
7
2021-09-07T02:14:15.000Z
2022-03-27T06:42:35.000Z
tests/core/full_node/test_transactions.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
1
2021-10-21T16:38:56.000Z
2021-11-15T13:03:15.000Z
tests/core/full_node/test_transactions.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
3
2021-10-21T07:17:40.000Z
2022-03-16T12:57:09.000Z
import asyncio from secrets import token_bytes from typing import Optional import pytest from skynet.consensus.block_record import BlockRecord from skynet.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward, calculate_base_timelord_fee from skynet.full_node.full_node_api import FullNode...
38.18018
159
0.675319
9784e74e824106d4bf86a7acbcc9e9336dc3f0dc
6,182
py
Python
train.py
zldzmfoq12/Tacotron
323c00c559327be14dc393f1eeefc6eb88e9f05b
[ "MIT" ]
2
2020-01-12T06:11:21.000Z
2020-01-22T07:44:29.000Z
train.py
zldzmfoq12/Tacotron
323c00c559327be14dc393f1eeefc6eb88e9f05b
[ "MIT" ]
null
null
null
train.py
zldzmfoq12/Tacotron
323c00c559327be14dc393f1eeefc6eb88e9f05b
[ "MIT" ]
null
null
null
import argparse from datetime import datetime import math import os import subprocess import time import tensorflow as tf import traceback import sys from datasets.datafeeder import DataFeeder from hparams import hparams, hparams_debug_string from models import create_model from text import sequence_to_text from util i...
38.397516
99
0.721773
cc1e88d4dd90c9fd53c4a04fe125e951168eedea
27,565
py
Python
eveIntel/dataprocessinginterface.py
Marclass/EveIntel
18d9bfef1b671ae189b413a807905e0895bc0224
[ "Apache-2.0" ]
null
null
null
eveIntel/dataprocessinginterface.py
Marclass/EveIntel
18d9bfef1b671ae189b413a807905e0895bc0224
[ "Apache-2.0" ]
null
null
null
eveIntel/dataprocessinginterface.py
Marclass/EveIntel
18d9bfef1b671ae189b413a807905e0895bc0224
[ "Apache-2.0" ]
null
null
null
from eveIntel.evelinkinterface import evelinkinterface from eveIntel.sqlinterface import sqlConnection from tabulate import tabulate from eveIntel.sdeinterface import sdeInterface from eveIntel.Exceptions import * from ascii_graph import Pyasciigraph import time from datetime import date import datetime from ast imp...
33.656899
242
0.573154
9aafb6d869f7e361586633a8a53c80a15d2ca3a0
496
py
Python
micropython_adf/examples/install_libs.py
zhangtemplar/esp-adf
dc4f652efe8a3b3638b08a798af6e13763fd95c8
[ "MIT-0" ]
960
2018-04-03T15:13:46.000Z
2022-03-29T02:48:46.000Z
micropython_adf/examples/install_libs.py
zhangtemplar/esp-adf
dc4f652efe8a3b3638b08a798af6e13763fd95c8
[ "MIT-0" ]
786
2018-04-08T10:25:08.000Z
2022-03-31T23:20:40.000Z
micropython_adf/examples/install_libs.py
zhangtemplar/esp-adf
dc4f652efe8a3b3638b08a798af6e13763fd95c8
[ "MIT-0" ]
512
2018-04-05T18:16:52.000Z
2022-03-31T21:27:53.000Z
# install_libs.py - install libs to SDCard # # This code is in the Public Domain (or CC0 licensed, at your option.) # Unless required by applicable law or agreed to in writing, this # software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR # CONDITIONS OF ANY KIND, either express or implied. # import upip ...
33.066667
70
0.727823
2ecf03e72203b4be82e5fac8fb7a596fcb9bb744
33
py
Python
examples/max/ex4.py
mcorne/python-by-example
15339c0909c84b51075587a6a66391100971c033
[ "MIT" ]
null
null
null
examples/max/ex4.py
mcorne/python-by-example
15339c0909c84b51075587a6a66391100971c033
[ "MIT" ]
null
null
null
examples/max/ex4.py
mcorne/python-by-example
15339c0909c84b51075587a6a66391100971c033
[ "MIT" ]
null
null
null
print(max([], default='Empty!'))
16.5
32
0.606061
10f499210b61d81dfaaee19722e1c855da963520
305
py
Python
server/src/py/config.py
NavneetSurana/TickerTape
d91700fde4324656799acce8576a92e93b721731
[ "MIT" ]
null
null
null
server/src/py/config.py
NavneetSurana/TickerTape
d91700fde4324656799acce8576a92e93b721731
[ "MIT" ]
2
2020-07-26T10:08:10.000Z
2020-08-01T16:57:41.000Z
server/src/py/config.py
NavneetSurana/TickerTape
d91700fde4324656799acce8576a92e93b721731
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv load_dotenv() dbName = os.getenv("DB_NAME_TT") user = os.getenv("DB_USER") password = os.getenv("DB_PASSWORD") host = os.getenv("DB_HOST") port = os.getenv("DB_PORT") url = os.getenv("DB_URL") backupPath = os.getenv("DB_BACKUP_PATH") authDb = os.getenv("AUTH_DB")
25.416667
40
0.734426
5dd90bc0ef6bc108f9bba8c8616cdabab243096b
649
py
Python
build/lib/biblelib/__init__.py
ndcorc/pyble
910c8f7f559781c8d707b87e7f958ad08c8679a9
[ "MIT" ]
5
2019-05-03T20:18:13.000Z
2021-03-08T04:34:55.000Z
build/lib/biblelib/__init__.py
ndcorc/pyble
910c8f7f559781c8d707b87e7f958ad08c8679a9
[ "MIT" ]
null
null
null
build/lib/biblelib/__init__.py
ndcorc/pyble
910c8f7f559781c8d707b87e7f958ad08c8679a9
[ "MIT" ]
1
2020-10-28T11:33:15.000Z
2020-10-28T11:33:15.000Z
"""Utilities for working with Bible data""" from .books import Book from .groups import BookGroup from .core import makeBiblerefFromDTR #from .pericopes #from .biblia __version__ = "0.5" __title__ = "biblelib" __description__ = "Manage Bible references and metadata" __uri__ = "http://github.com/Faithlife/Biblelib" _...
22.37931
79
0.733436
bb2d0eb74122ab305495d90cd5cef819c985e4c0
2,307
py
Python
src/echonn/sys/animator.py
larkwt96/honors-thesis
7e3a52c285c1fdaf4ae9659497154ba04e522f48
[ "MIT" ]
null
null
null
src/echonn/sys/animator.py
larkwt96/honors-thesis
7e3a52c285c1fdaf4ae9659497154ba04e522f48
[ "MIT" ]
null
null
null
src/echonn/sys/animator.py
larkwt96/honors-thesis
7e3a52c285c1fdaf4ae9659497154ba04e522f48
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib import animation, rc from scipy.constants import pi from abc import ABC, abstractmethod class Animator(ABC): def __init__(self, trail_length=1, max_t=10): """ trail_length in time, not dist max_t should be set by implemente...
32.041667
101
0.579107
24d1cf2d42d8b1519b0efa24cad7d1f5a701781d
2,163
py
Python
controllers/water.py
nursix/rlp
87384b7523ca92834f84636663a38f4524cde06e
[ "MIT" ]
2
2017-07-25T19:15:58.000Z
2018-10-09T22:57:41.000Z
controllers/water.py
nursix/rlpptm
e7b50b2fdf6277aed5f198ca10ad773c5ca0b947
[ "MIT" ]
null
null
null
controllers/water.py
nursix/rlpptm
e7b50b2fdf6277aed5f198ca10ad773c5ca0b947
[ "MIT" ]
1
2017-10-03T13:03:47.000Z
2017-10-03T13:03:47.000Z
# -*- coding: utf-8 -*- """ Water module """ module = request.controller resourcename = request.function if not settings.has_module(module): raise HTTP(404, body="Module disabled: %s" % module) # ----------------------------------------------------------------------------- def index(): """ Module's Home...
28.090909
129
0.409154
3e66ac3e1fb665c24d455f2b4901c1a96238d076
1,332
py
Python
examples/django-waffle-project/settings.py
SpazioDati/django-waffle
a78b47a7e813f7602e69b8bb83f4a2a3e274a97b
[ "BSD-3-Clause" ]
null
null
null
examples/django-waffle-project/settings.py
SpazioDati/django-waffle
a78b47a7e813f7602e69b8bb83f4a2a3e274a97b
[ "BSD-3-Clause" ]
null
null
null
examples/django-waffle-project/settings.py
SpazioDati/django-waffle
a78b47a7e813f7602e69b8bb83f4a2a3e274a97b
[ "BSD-3-Clause" ]
null
null
null
import os # Make filepaths relative to settings. ROOT = os.path.dirname(os.path.abspath(__file__)) path = lambda *a: os.path.join(ROOT, *a) DEBUG = True TEMPLATE_DEBUG = True JINJA_CONFIG = {} SITE_ID = 1 SECRET_KEY = 'foobar' TEST_RUNNER = 'django_nose.runner.NoseTestSuiteRunner' DATABASES = { 'default': { ...
21.836066
62
0.726727
10c5128263862dd8ab11f1566c488807314b2e11
5,766
py
Python
codes/test_cross_validation.py
boti996/onlab-public
3ee399b9f40979a54236cd646cc7566a3639a03f
[ "MIT" ]
null
null
null
codes/test_cross_validation.py
boti996/onlab-public
3ee399b9f40979a54236cd646cc7566a3639a03f
[ "MIT" ]
null
null
null
codes/test_cross_validation.py
boti996/onlab-public
3ee399b9f40979a54236cd646cc7566a3639a03f
[ "MIT" ]
null
null
null
import pickle import numpy as np import os from keras.models import load_model from sklearn.model_selection import train_test_split import codes.my_helper as helper def confusion_matrix(image_val, label_val, model): # Get prediction from model pred_val = (model.predict(image_val)) # print(pred_val.shape) ...
33.523256
113
0.614291
ec26261fbcf94c8b08c0ee0b653e98b51be16b53
3,549
py
Python
RequestParser.py
dsande30/COSC560-PA1
4125122b0ac705657f7edfce73058444617314c2
[ "MIT" ]
null
null
null
RequestParser.py
dsande30/COSC560-PA1
4125122b0ac705657f7edfce73058444617314c2
[ "MIT" ]
null
null
null
RequestParser.py
dsande30/COSC560-PA1
4125122b0ac705657f7edfce73058444617314c2
[ "MIT" ]
null
null
null
""" Basic HTTP server request parser. Parses HTTP headers and determines GET/POST actions Stores all header and content information in an object """ import logging import sys import io import re import os from urllib.parse import unquote class RequestParser: """Base object for parsing http headers.""" def __...
34.794118
96
0.568611
d5fb0807d06236ce83f68474b5ecb3c23c854cc3
8,223
py
Python
python/ovs/unixctl/server.py
salambashir/ovs
f09f2e73eed7ac5a37999e65eadc7d56036d9642
[ "Apache-2.0" ]
40
2020-06-16T03:44:12.000Z
2022-03-29T05:54:27.000Z
python/ovs/unixctl/server.py
salambashir/ovs
f09f2e73eed7ac5a37999e65eadc7d56036d9642
[ "Apache-2.0" ]
44
2019-01-16T14:37:52.000Z
2019-11-05T16:17:34.000Z
python/ovs/unixctl/server.py
salambashir/ovs
f09f2e73eed7ac5a37999e65eadc7d56036d9642
[ "Apache-2.0" ]
17
2020-06-22T02:37:30.000Z
2022-03-02T16:09:02.000Z
# Copyright (c) 2012 Nicira, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
31.505747
79
0.570473
502701e0b7074d09b90395700bf1761c9d053e2f
1,434
py
Python
src/templates/segmentation/tilling_bach.py
PeterJackNaylor/CellularHeatmaps
52829685683b6f3315b62246a77cc2206326e2b3
[ "Apache-2.0" ]
null
null
null
src/templates/segmentation/tilling_bach.py
PeterJackNaylor/CellularHeatmaps
52829685683b6f3315b62246a77cc2206326e2b3
[ "Apache-2.0" ]
2
2022-01-13T03:57:02.000Z
2022-03-12T01:01:45.000Z
src/templates/segmentation/tilling_bach.py
PeterJackNaylor/CellularHeatmaps
52829685683b6f3315b62246a77cc2206326e2b3
[ "Apache-2.0" ]
1
2020-10-12T07:56:51.000Z
2020-10-12T07:56:51.000Z
#!/usr/bin/env python """ Input variables: - sample: path of a tif WSI image. - model: path of the tissue segmentation file. Output files: - {sample}_mask.npy """ import os import numpy as np from glob import glob # from numpy.core.numeric import outer from skimage.transform import resize from skimage impo...
28.68
101
0.682008
c6f671f6d60d74c7ab0cd8201c8efd9563bf81f6
642
py
Python
org/cu/api/ApplicationService.py
liujiage/JobAppSystem
10e18bc897d481e022f182059a7199eae770bac5
[ "Apache-2.0" ]
1
2022-01-11T14:25:39.000Z
2022-01-11T14:25:39.000Z
org/cu/api/ApplicationService.py
liujiage/JobAppSystem
10e18bc897d481e022f182059a7199eae770bac5
[ "Apache-2.0" ]
null
null
null
org/cu/api/ApplicationService.py
liujiage/JobAppSystem
10e18bc897d481e022f182059a7199eae770bac5
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod ''' @Author Liu JiaGe @School Coventry University & PSB @Date 01/02/21 @Handle apply Job, parent class ''' class ApplicationService(metaclass=ABCMeta): # init page and resources @abstractmethod def load(self): pass # process apply @abstr...
18.342857
44
0.643302
d8d156b46f819dfccd0959fb715009681409a34b
5,420
py
Python
elliot/recommender/neural/ConvMF/convolutional_matrix_factorization.py
gategill/elliot
113763ba6d595976e14ead2e3d460d9705cd882e
[ "Apache-2.0" ]
175
2021-03-04T15:46:25.000Z
2022-03-31T05:56:58.000Z
elliot/recommender/neural/ConvMF/convolutional_matrix_factorization.py
gategill/elliot
113763ba6d595976e14ead2e3d460d9705cd882e
[ "Apache-2.0" ]
15
2021-03-06T17:53:56.000Z
2022-03-24T17:02:07.000Z
elliot/recommender/neural/ConvMF/convolutional_matrix_factorization.py
gategill/elliot
113763ba6d595976e14ead2e3d460d9705cd882e
[ "Apache-2.0" ]
39
2021-03-04T15:46:26.000Z
2022-03-09T15:37:12.000Z
""" Module description: """ __version__ = '0.3.1' __author__ = 'Felice Antonio Merra, Vito Walter Anelli, Claudio Pomo' __email__ = 'felice.merra@poliba.it, vitowalter.anelli@poliba.it, claudio.pomo@poliba.it' from ast import literal_eval as make_tuple import numpy as np from tqdm import tqdm from elliot.dataset.s...
39.275362
116
0.579889
029f54fbe79aaa766eef7d9a1131811b889081e3
352
py
Python
radical_translations/core/migrations/0032_delete_instance.py
kingsdigitallab/radical_translations
c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a
[ "MIT" ]
3
2022-02-08T18:03:44.000Z
2022-03-18T18:10:43.000Z
radical_translations/core/migrations/0032_delete_instance.py
kingsdigitallab/radical_translations
c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a
[ "MIT" ]
19
2020-05-11T15:36:35.000Z
2022-02-08T11:26:40.000Z
radical_translations/core/migrations/0032_delete_instance.py
kingsdigitallab/radical_translations
c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a
[ "MIT" ]
null
null
null
# Generated by Django 2.2.10 on 2020-05-18 10:48 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('events', '0008_alter_field_classification_on_event'), ('core', '0031_delete_item'), ] operations = [ migrations.DeleteModel( na...
19.555556
63
0.616477
9de6cc631123807852edc7419ccf8f6d6b03320b
4,098
py
Python
code/routines/recorder.py
oliverruoff/PiBot_v4
9e724633e1b2972477b5d545e2b13e063a925689
[ "Apache-2.0" ]
5
2022-01-04T09:52:12.000Z
2022-01-17T09:07:53.000Z
code/routines/recorder.py
oliverruoff/PiBot_v4
9e724633e1b2972477b5d545e2b13e063a925689
[ "Apache-2.0" ]
4
2021-12-21T08:02:48.000Z
2022-02-09T14:54:49.000Z
code/routines/recorder.py
oliverruoff/PiBot_v4
9e724633e1b2972477b5d545e2b13e063a925689
[ "Apache-2.0" ]
null
null
null
import json recorded_movement = [] def record(left_stepper, right_stepper): recorded_movement = [] input_ = "" while True: input_ = input("Move >> ") if input_ == "w": recorded_movement.append("w") play_movement(left_stepper, right_stepper, "w") elif input_...
41.393939
68
0.644949
f82d189d0117c7b99e93dbac5049dff16d464736
2,147
py
Python
wordMergeApp/GoogleOAuthService.py
jackson-zhipeng-chang/WordMerge
2eb56ac5e95b231a5d9fb0ffe4bd3f5a8ff3b98b
[ "MIT" ]
null
null
null
wordMergeApp/GoogleOAuthService.py
jackson-zhipeng-chang/WordMerge
2eb56ac5e95b231a5d9fb0ffe4bd3f5a8ff3b98b
[ "MIT" ]
6
2021-04-08T21:58:55.000Z
2022-02-10T14:54:08.000Z
wordMergeApp/GoogleOAuthService.py
jackson-zhipeng-chang/WordMerge
2eb56ac5e95b231a5d9fb0ffe4bd3f5a8ff3b98b
[ "MIT" ]
null
null
null
from __future__ import print_function import re from oauth2client.service_account import ServiceAccountCredentials from oauth2client import file, client, tools import pickle import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.reque...
40.509434
104
0.706567
1676ced1dfdc291bccecddd410498d72dbb63a0d
2,921
py
Python
aws_kinesis_consumer/error/handler.py
thinow/aws-kinesis-consumer
94aaa88bd91ff8e7dd8a6716083a95d303281a0f
[ "MIT" ]
29
2021-02-19T18:35:20.000Z
2022-03-16T13:15:25.000Z
aws_kinesis_consumer/error/handler.py
thinow/aws-kinesis-consumer
94aaa88bd91ff8e7dd8a6716083a95d303281a0f
[ "MIT" ]
1
2021-03-23T20:57:11.000Z
2021-03-23T20:57:11.000Z
aws_kinesis_consumer/error/handler.py
thinow/aws-kinesis-consumer
94aaa88bd91ff8e7dd8a6716083a95d303281a0f
[ "MIT" ]
null
null
null
from typing import Optional from botocore.exceptions import NoRegionError, NoCredentialsError, PartialCredentialsError, CredentialRetrievalError, \ ClientError from aws_kinesis_consumer.configuration.configuration import Configuration from aws_kinesis_consumer.ui.printer import Printer class ErrorHandler: ...
47.112903
119
0.675796
f21043ffe31bf9189f826f7767eb6aa748b6c8fa
1,927
py
Python
Models/_utils/time.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
2
2018-05-31T15:02:08.000Z
2018-07-11T11:02:44.000Z
Models/_utils/time.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
Models/_utils/time.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
import time import datetime from pytz import timezone import calendar import pytz # always use utc time form time.time between models def utc_time2datetime(utc_time, tz=None): utc_datetime = datetime.datetime.fromtimestamp(utc_time) if tz is None: tz_datetime = utc_datetime.astimezone(timezone('utc'))...
33.807018
111
0.677218
d5bf974e33ebcc6c2591c752524119293ed89709
100,604
py
Python
lib/python2.7/matplotlib/mlab.py
ashley8jain/IITD-complaint-system-web
21a94601cba710f558d1689b87cfc391a1541c9f
[ "BSD-3-Clause" ]
1
2017-01-25T00:38:48.000Z
2017-01-25T00:38:48.000Z
lib/python2.7/matplotlib/mlab.py
ashley8jain/IITD-complaint-system-web
21a94601cba710f558d1689b87cfc391a1541c9f
[ "BSD-3-Clause" ]
null
null
null
lib/python2.7/matplotlib/mlab.py
ashley8jain/IITD-complaint-system-web
21a94601cba710f558d1689b87cfc391a1541c9f
[ "BSD-3-Clause" ]
null
null
null
""" Numerical python functions written for compatability with MATLAB commands with the same names. MATLAB compatible functions ------------------------------- :func:`cohere` Coherence (normalized cross spectral density) :func:`csd` Cross spectral density uing Welch's average periodogram :func:`detrend` Remov...
31.626533
141
0.609359
4d7a14a01a1ef7a1a96184a023324e160776a21a
13,390
py
Python
metaheuristics/others/HHOQL_SCP.py
m-arnao-molina/SCA-QL-SARSA
65f859fce96bb8c11509238c2f7a5d8dd2ad042a
[ "MIT" ]
null
null
null
metaheuristics/others/HHOQL_SCP.py
m-arnao-molina/SCA-QL-SARSA
65f859fce96bb8c11509238c2f7a5d8dd2ad042a
[ "MIT" ]
null
null
null
metaheuristics/others/HHOQL_SCP.py
m-arnao-molina/SCA-QL-SARSA
65f859fce96bb8c11509238c2f7a5d8dd2ad042a
[ "MIT" ]
null
null
null
# Utils import sys import os import settings from envs import env import numpy as np import time from datetime import datetime from pathlib import Path import math # SQL import sqlalchemy as db import psycopg2 import json import pickle import zlib import database.Database as Database # MH from Problem.util import r...
44.337748
362
0.642121
1a5d5f9047adfa32783a8cc094cb9e4ace20fdf6
1,025
py
Python
dataMining/model-0-2-2.py
evandropp10/bitcoin_prediction
3619deb175e3a38bd08e929429c9b7590e9d202d
[ "MIT" ]
null
null
null
dataMining/model-0-2-2.py
evandropp10/bitcoin_prediction
3619deb175e3a38bd08e929429c9b7590e9d202d
[ "MIT" ]
null
null
null
dataMining/model-0-2-2.py
evandropp10/bitcoin_prediction
3619deb175e3a38bd08e929429c9b7590e9d202d
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.linear_model import LinearRegression from sklearn.model_selection import cross_val_predict from sklearn.preprocessing import PolynomialFeatures from sklearn.preprocessing import MinMaxScaler from sklearn import metrics df = pd.read_csv('data_mining.csv') #x = df[['bitcoin','bitcoin bu...
23.295455
82
0.741463
825c71ad9f705e9f094ebea374354b35abfbee76
10,111
py
Python
hubspot/crm/objects/feedback_submissions/models/batch_response_simple_public_object_with_errors.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
117
2020-04-06T08:22:53.000Z
2022-03-18T03:41:29.000Z
hubspot/crm/objects/feedback_submissions/models/batch_response_simple_public_object_with_errors.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
62
2020-04-06T16:21:06.000Z
2022-03-17T16:50:44.000Z
hubspot/crm/objects/feedback_submissions/models/batch_response_simple_public_object_with_errors.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
45
2020-04-06T16:13:52.000Z
2022-03-30T21:33:17.000Z
# coding: utf-8 """ Feedback Submissions No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
33.369637
192
0.650776
d2e58cd7cbf88cea1fe41ae6d29464433a5d6183
906
py
Python
test/augmenter/word/test_stopwords.py
joaoantonioverdade/nlpaug
137a3a60fe1ab2d8dfc51d21e160d32c10b2538c
[ "MIT" ]
null
null
null
test/augmenter/word/test_stopwords.py
joaoantonioverdade/nlpaug
137a3a60fe1ab2d8dfc51d21e160d32c10b2538c
[ "MIT" ]
null
null
null
test/augmenter/word/test_stopwords.py
joaoantonioverdade/nlpaug
137a3a60fe1ab2d8dfc51d21e160d32c10b2538c
[ "MIT" ]
null
null
null
import unittest import nlpaug.augmenter.word as naw class TestStopWords(unittest.TestCase): @classmethod def setUpClass(cls): cls.stopwords = ['a', 'an', 'the'] def test_delete(self): text = 'The quick brown fox jumps over lazy dog' self.assertLess(0, len(text)) aug = na...
28.3125
71
0.655629
3144a18b99a2075d8ec957fd3c5f52d460d24b3e
28,706
py
Python
tools/LogCollector/source/omslinux_agentlog.py
superminiek/OMS-Agent-for-Linux
faacc094723779074cea8172a3b23eccf85307f2
[ "Apache-2.0" ]
null
null
null
tools/LogCollector/source/omslinux_agentlog.py
superminiek/OMS-Agent-for-Linux
faacc094723779074cea8172a3b23eccf85307f2
[ "Apache-2.0" ]
null
null
null
tools/LogCollector/source/omslinux_agentlog.py
superminiek/OMS-Agent-for-Linux
faacc094723779074cea8172a3b23eccf85307f2
[ "Apache-2.0" ]
null
null
null
''' OMS Log Collector to collect logs and command line outputs for troubleshooting OMS Linux Agent (Github, Extension & Container) issues by support personnel Authors, Reviewers & Contributors : KR Kandavel Azure CAT PM Keiko Harada OMS PM Laura Galbraith ...
31.441402
127
0.641713
01437e197842b53dbff33bf10594d8e1b95771f1
1,100
py
Python
tests/test_wallet_schema.py
ihor-nahuliak/task-23-jul-2019
f32d3ef1df985f77998b5d296b524af99f82c3ef
[ "MIT" ]
null
null
null
tests/test_wallet_schema.py
ihor-nahuliak/task-23-jul-2019
f32d3ef1df985f77998b5d296b524af99f82c3ef
[ "MIT" ]
null
null
null
tests/test_wallet_schema.py
ihor-nahuliak/task-23-jul-2019
f32d3ef1df985f77998b5d296b524af99f82c3ef
[ "MIT" ]
null
null
null
import unittest import unittest.mock as mock from uuid import UUID from datetime import datetime class TestCase(unittest.TestCase): @mock.patch('app.utils.iso_datetime') @mock.patch('uuid.uuid4') def test_load_default(self, m_uuid4, m_iso_datetime): m_uuid4.return_value = UUID('876543218765432187...
30.555556
71
0.632727
c2f65672595d5bb2eb1beb99ac89f899e0828231
27,862
py
Python
src/shimmer_api/shimmer_class.py
tbazina/shimmer_ros
1cb56a67dc6f7cdae6ac8539ddb0eccf9ce65e87
[ "MIT" ]
null
null
null
src/shimmer_api/shimmer_class.py
tbazina/shimmer_ros
1cb56a67dc6f7cdae6ac8539ddb0eccf9ce65e87
[ "MIT" ]
null
null
null
src/shimmer_api/shimmer_class.py
tbazina/shimmer_ros
1cb56a67dc6f7cdae6ac8539ddb0eccf9ce65e87
[ "MIT" ]
null
null
null
#/usr/bin/python3 import rospy import sys, struct, serial from collections import defaultdict, deque from datetime import datetime, timedelta import time from shimmer_ros.msg import Emg class ShimmerCaptureEMG(): def __init__(self, port) -> None: # Serial port self.port = port # // Packet Types// Pack...
36.420915
91
0.637068
5e3e4d6b32e2e93db94e791685ab0d4c9eb9c4cb
3,238
py
Python
lib/surface/compute/copy_files.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/copy_files.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/copy_files.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
1
2020-07-24T20:13:29.000Z
2020-07-24T20:13:29.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
38.547619
102
0.698579
93eb30d1d6c8e7b5521e8e494b86e6e2fc420f59
709
py
Python
prove 2 - Numeriske metoder/Oppgave 5.py
theodorklauritzen/ProgMod-Innleveringer
c7f7d69906c483ed447f152a82c1f15c38e7ab9f
[ "MIT" ]
1
2020-10-12T01:13:00.000Z
2020-10-12T01:13:00.000Z
prove 2 - Numeriske metoder/Oppgave 5.py
theodorklauritzen/ProgMod-Innleveringer
c7f7d69906c483ed447f152a82c1f15c38e7ab9f
[ "MIT" ]
null
null
null
prove 2 - Numeriske metoder/Oppgave 5.py
theodorklauritzen/ProgMod-Innleveringer
c7f7d69906c483ed447f152a82c1f15c38e7ab9f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 3 09:21:34 2020 @author: xuper """ from pylab import * k = 0.1 # En konstant som forteller hvor raske temperaturen endrer seg T_O = 21 # Omgivelsestemperaturen (C) T_0 = 75 # Start temperaturen (C) t_S = 60 # Slutttid (min) N = 10000 ...
19.162162
78
0.589563
847c9a97d58499ff39e071439e872e223f6603a2
940
py
Python
setup.py
heiparta/pylightxl
2ac7bcbeecd378313543e41afea38183d490cc2b
[ "MIT" ]
null
null
null
setup.py
heiparta/pylightxl
2ac7bcbeecd378313543e41afea38183d490cc2b
[ "MIT" ]
null
null
null
setup.py
heiparta/pylightxl
2ac7bcbeecd378313543e41afea38183d490cc2b
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="pylightxl", # Replace with your own username version="1.51", author="Viktor Kis", author_email="realpydpiper@gmail.com", license="MIT", description="A light weight excel read/writer fo...
34.814815
97
0.652128
97974360a454b581eb63bdfd2af2e2afa05596c7
37,226
py
Python
examples/speech_recognition/models/vggtransformer.py
fairseq-FT/fairseq
18725499144c1bba7c151b796ba774e59d36eaa9
[ "MIT" ]
115
2021-08-25T14:58:12.000Z
2022-03-21T11:25:36.000Z
examples/speech_recognition/models/vggtransformer.py
fairseq-FT/fairseq
18725499144c1bba7c151b796ba774e59d36eaa9
[ "MIT" ]
10
2021-11-14T12:28:48.000Z
2022-02-28T14:13:40.000Z
examples/speech_recognition/models/vggtransformer.py
fairseq-FT/fairseq
18725499144c1bba7c151b796ba774e59d36eaa9
[ "MIT" ]
14
2021-05-17T06:55:01.000Z
2022-03-28T12:07:42.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import math from collections.abc import Iterable import torch import torch.nn as nn from examples.speech_recognition.data.dat...
36.496078
88
0.604524
44d71a9ff43fb09304caf7cd1362833bdf6222c0
5,855
py
Python
sphinx/source/conf.py
tonimaxx/unicorn-binance-websocket-api
a5ba60a5711a60ec9d1db7a2e0bd02306340476d
[ "MIT" ]
1
2021-09-29T22:54:59.000Z
2021-09-29T22:54:59.000Z
sphinx/source/conf.py
tonimaxx/unicorn-binance-websocket-api
a5ba60a5711a60ec9d1db7a2e0bd02306340476d
[ "MIT" ]
null
null
null
sphinx/source/conf.py
tonimaxx/unicorn-binance-websocket-api
a5ba60a5711a60ec9d1db7a2e0bd02306340476d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
30.494792
100
0.65585
b2dad8a58f08c025226850d3acb70b751ae74d55
1,797
py
Python
thelper/nn/sr/srcnn.py
crim-ca/thelper
1415144cf70e4492c2ef00f834e2b9a988064a76
[ "Apache-2.0" ]
null
null
null
thelper/nn/sr/srcnn.py
crim-ca/thelper
1415144cf70e4492c2ef00f834e2b9a988064a76
[ "Apache-2.0" ]
null
null
null
thelper/nn/sr/srcnn.py
crim-ca/thelper
1415144cf70e4492c2ef00f834e2b9a988064a76
[ "Apache-2.0" ]
1
2020-02-17T14:14:46.000Z
2020-02-17T14:14:46.000Z
import thelper.nn class SRCNN(thelper.nn.Module): """Implements the SRCNN architecture. See Dong et al., "Image Super-Resolution Using Deep Convolutional Networks" (2014) for more information (https://arxiv.org/abs/1501.00092). """ def __init__(self, task, num_channels=1, base_filter=64, groups...
46.076923
114
0.616027
1f8a8813d4dda5dfa6e244c5d56450e1e6254c2a
25,357
py
Python
main.py
ruanyyyyyyy/text2shape
276379df22ffdbe4cb54f30a88d65cf87bf53243
[ "Apache-2.0" ]
null
null
null
main.py
ruanyyyyyyy/text2shape
276379df22ffdbe4cb54f30a88d65cf87bf53243
[ "Apache-2.0" ]
null
null
null
main.py
ruanyyyyyyy/text2shape
276379df22ffdbe4cb54f30a88d65cf87bf53243
[ "Apache-2.0" ]
null
null
null
import argparse import numpy as np import os import pprint import yaml import pdb # HACK: Get logger to print to stdout import sys sys.ps1 = '>>> ' # Make it "interactive" import tensorflow as tf from multiprocessing import Queue from lib.config import cfg_from_file, cfg_from_list, cfg from lib.data_process import ...
46.612132
103
0.588279
8ffa6f95b0550ae76cc4266b390c02600cbb1cd0
2,935
py
Python
hocrox/layer/augmentation/flip/random_vertical_flip.py
imdeepmind/hocrox
271f7ee8f7b9c0fb5466f5b8d9acbc0a703b570f
[ "MIT" ]
2
2021-12-09T19:20:23.000Z
2021-12-26T13:22:50.000Z
hocrox/layer/augmentation/flip/random_vertical_flip.py
imdeepmind/hocrox
271f7ee8f7b9c0fb5466f5b8d9acbc0a703b570f
[ "MIT" ]
29
2021-04-28T14:37:36.000Z
2022-03-17T18:37:52.000Z
hocrox/layer/augmentation/flip/random_vertical_flip.py
imdeepmind/hocrox
271f7ee8f7b9c0fb5466f5b8d9acbc0a703b570f
[ "MIT" ]
1
2022-03-07T10:55:36.000Z
2022-03-07T10:55:36.000Z
"""RandomVerticalFlip layer for Hocrox.""" import cv2 from hocrox.utils import Layer class RandomVerticalFlip(Layer): """RandomVerticalFlip layer randomly flips an image vertically. Here is an example code to use the RandomVerticalFlip layer in a model. ```python from hocrox.model import Model ...
36.234568
119
0.650426
4308df5f37b667e16b78898157d372583cb6f71b
6,447
py
Python
selfdrive/car/car_helpers.py
dragonpilot/xx979xx-openpilot
d50ba12b1876c267b17d2d8a4682cd1c0582463a
[ "MIT" ]
1
2021-11-24T09:01:03.000Z
2021-11-24T09:01:03.000Z
selfdrive/car/car_helpers.py
dragonpilot/openpilot
d50ba12b1876c267b17d2d8a4682cd1c0582463a
[ "MIT" ]
null
null
null
selfdrive/car/car_helpers.py
dragonpilot/openpilot
d50ba12b1876c267b17d2d8a4682cd1c0582463a
[ "MIT" ]
1
2021-07-28T12:52:39.000Z
2021-07-28T12:52:39.000Z
import os from common.params import Params from common.basedir import BASEDIR from selfdrive.version import comma_remote, tested_branch from selfdrive.car.fingerprints import eliminate_incompatible_cars, all_known_cars from selfdrive.car.vin import get_vin, VIN_UNKNOWN from selfdrive.car.fw_versions import get_fw_versi...
36.01676
110
0.716457
6841773a9da34999681ae5f4bd9d07fa43d0653b
40,670
py
Python
packages/python/plotly/plotly/graph_objs/layout/_shape.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/_shape.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/_shape.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Shape(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout" _path_str = "layout.shape" _valid_props = { "editable", "fillcolor...
37.449355
84
0.565773
faa1d7c9814d4562705b13dce3c637acc7864072
1,650
py
Python
rpc/utils/knn.py
AAlben/img_retrieval_child_books
7618308e294c1e94552b8e0edbbe0ed65fc154ae
[ "MIT" ]
null
null
null
rpc/utils/knn.py
AAlben/img_retrieval_child_books
7618308e294c1e94552b8e0edbbe0ed65fc154ae
[ "MIT" ]
null
null
null
rpc/utils/knn.py
AAlben/img_retrieval_child_books
7618308e294c1e94552b8e0edbbe0ed65fc154ae
[ "MIT" ]
null
null
null
import torch from typing import Dict class KNN(object): """ Similarity measure based on the euclidean distance. Hyper-Params: top_k (int): top_k nearest neighbors will be output in sorted order. If it is 0, all neighbors will be output. """ default_hyper_params = { "top_k": 0, ...
34.375
118
0.618788
d7a641694da969cdb5ae360bd7935d4ab5e13e57
740
py
Python
perplex/manager.py
ofek/perplex
339284ac7c54500ebf15eadbeb721d079b61f017
[ "Apache-2.0", "MIT" ]
null
null
null
perplex/manager.py
ofek/perplex
339284ac7c54500ebf15eadbeb721d079b61f017
[ "Apache-2.0", "MIT" ]
1
2019-02-04T03:55:43.000Z
2019-02-04T03:55:43.000Z
perplex/manager.py
ofek/perplex
339284ac7c54500ebf15eadbeb721d079b61f017
[ "Apache-2.0", "MIT" ]
null
null
null
from copy import deepcopy from .compose import DockerCompose from .config import get_instance_dir from .gcloud import GCloud from .gsutil import GSUtil from .kubectl import Kubectl class InstanceManager: def __init__(self, config): self.default_config = deepcopy(config) self.instance_config = sel...
33.636364
91
0.743243
e1aac323d21dd1570de79b463e7b464d3ca6de14
14,075
py
Python
bridge/reports/models.py
lutovna/klever
29c0e4fa60def241032a2ea2b81103d817994eef
[ "Apache-2.0" ]
1
2021-01-09T08:44:37.000Z
2021-01-09T08:44:37.000Z
bridge/reports/models.py
lutovna/klever
29c0e4fa60def241032a2ea2b81103d817994eef
[ "Apache-2.0" ]
3
2021-03-19T09:15:16.000Z
2021-09-22T19:24:40.000Z
bridge/reports/models.py
lutovna/klever
29c0e4fa60def241032a2ea2b81103d817994eef
[ "Apache-2.0" ]
1
2020-05-22T15:53:39.000Z
2020-05-22T15:53:39.000Z
# # Copyright (c) 2019 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # 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 # # h...
36.463731
114
0.72952
0825856c7716801caa734ad731077dbadec3b833
1,546
py
Python
scripts/05_modules/motion_tracker/motiontracker_get_2dtrack_from_object_r18.py
mgoldshteyn/cinema4d_py_sdk_extended
b6c67f1dbae182c09ccbcc1df51f0e7ea4816074
[ "Apache-2.0" ]
null
null
null
scripts/05_modules/motion_tracker/motiontracker_get_2dtrack_from_object_r18.py
mgoldshteyn/cinema4d_py_sdk_extended
b6c67f1dbae182c09ccbcc1df51f0e7ea4816074
[ "Apache-2.0" ]
null
null
null
scripts/05_modules/motion_tracker/motiontracker_get_2dtrack_from_object_r18.py
mgoldshteyn/cinema4d_py_sdk_extended
b6c67f1dbae182c09ccbcc1df51f0e7ea4816074
[ "Apache-2.0" ]
null
null
null
""" Copyright: MAXON Computer GmbH Description: - Loops through all the tracks of the active Motion Tracker object. Class/method highlighted: - BaseObject.Get2dTrackData() - Mt2dTrackData.GetTrackCount() - Mt2dTrackData.GetTrackByIndex() Compatible: - Win / Mac - R18, R19, R20, R21, S22 """ ...
25.344262
84
0.628719
07a3e36dcd1ccd83866ceca4253c03e9f008c84f
1,408
py
Python
samples/CabinPressure/main.py
microsoft/bonsai-twin-builder
141c538dc8f439d2e4219cd60631bddae717a262
[ "MIT" ]
2
2021-12-25T23:14:46.000Z
2022-02-23T00:11:14.000Z
samples/CabinPressure/main.py
microsoft/bonsai-twin-builder
141c538dc8f439d2e4219cd60631bddae717a262
[ "MIT" ]
null
null
null
samples/CabinPressure/main.py
microsoft/bonsai-twin-builder
141c538dc8f439d2e4219cd60631bddae717a262
[ "MIT" ]
1
2022-02-10T01:56:57.000Z
2022-02-10T01:56:57.000Z
""" Runs the sample cabin pressure digital twin model as a Bonsai simulator. Copyright 2021, Microsoft Corp. """ #!/usr/bin/env python3 import os import sys # Add parent directory containing the TwinBuilderConnector folder to path. sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file...
40.228571
103
0.744318
4d91890d9e66fce0a88983512350a23b6c563081
4,040
py
Python
components/isceobj/InsarProc/runOrbit2sch.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
1,133
2022-01-07T21:24:57.000Z
2022-01-07T21:33:08.000Z
components/isceobj/InsarProc/runOrbit2sch.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
276
2019-02-10T07:18:28.000Z
2022-03-31T21:45:55.000Z
components/isceobj/InsarProc/runOrbit2sch.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
235
2019-02-10T05:00:53.000Z
2022-03-18T07:37:24.000Z
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Copyright 2012 California Institute of Technology. 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 th...
41.649485
113
0.62599
0ee45aef4db4eadc669f743b4430b601960b6acd
3,021
py
Python
homeassistant/components/switch/isy994.py
davidedmundson/home-assistant
cd02563552ffc28239fa17c79a5d9bc0013bd5ac
[ "MIT" ]
null
null
null
homeassistant/components/switch/isy994.py
davidedmundson/home-assistant
cd02563552ffc28239fa17c79a5d9bc0013bd5ac
[ "MIT" ]
null
null
null
homeassistant/components/switch/isy994.py
davidedmundson/home-assistant
cd02563552ffc28239fa17c79a5d9bc0013bd5ac
[ "MIT" ]
1
2018-11-20T17:44:08.000Z
2018-11-20T17:44:08.000Z
""" homeassistant.components.switch.isy994 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support for ISY994 switches. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/isy994/ """ import logging from homeassistant.components.isy994 import ( HIDDEN_STRING, ISY...
33.566667
79
0.600463
8cea50103c74f3eb4077190a9d7acbfd7c365907
2,854
py
Python
ooobuild/lo/io/x_active_data_control.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/io/x_active_data_control.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/io/x_active_data_control.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
38.567568
147
0.713385
7b5c8e6635c51c7f5a7d6e6ca06f035dbf37d185
1,899
py
Python
tests/extras_mako_test.py
justindalzell/webapp2
90e444b4d643f3dccaaf6653e717161871c7cc05
[ "Apache-2.0" ]
157
2016-04-08T21:10:41.000Z
2021-12-30T13:47:30.000Z
tests/extras_mako_test.py
justindalzell/webapp2
90e444b4d643f3dccaaf6653e717161871c7cc05
[ "Apache-2.0" ]
57
2016-04-08T20:26:50.000Z
2021-03-20T05:47:28.000Z
tests/extras_mako_test.py
justindalzell/webapp2
90e444b4d643f3dccaaf6653e717161871c7cc05
[ "Apache-2.0" ]
74
2016-04-11T02:08:53.000Z
2022-01-19T18:10:19.000Z
# -*- coding: utf-8 -*- # Copyright 2011 webapp2 AUTHORS. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
31.65
74
0.671406
abfd5f0a89b1902ea61b29cb1404826af9858e07
3,761
py
Python
gni_site/settings.py
pastorenue/gni-site
1b152e7b4f471d2f4cf3ba086153ccf2cd53d781
[ "BSD-2-Clause" ]
null
null
null
gni_site/settings.py
pastorenue/gni-site
1b152e7b4f471d2f4cf3ba086153ccf2cd53d781
[ "BSD-2-Clause" ]
null
null
null
gni_site/settings.py
pastorenue/gni-site
1b152e7b4f471d2f4cf3ba086153ccf2cd53d781
[ "BSD-2-Clause" ]
null
null
null
""" Django settings for gni_site project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
27.452555
100
0.702739
5baeb01d0b23f081e1c4fe369b5eac9956135536
1,980
py
Python
rebench/tests/features/issue_57_binary_on_path_test.py
cmccandless/ReBench
0ec399a8c23a84022aa0271eb1caf30bdea8b2f6
[ "MIT" ]
null
null
null
rebench/tests/features/issue_57_binary_on_path_test.py
cmccandless/ReBench
0ec399a8c23a84022aa0271eb1caf30bdea8b2f6
[ "MIT" ]
null
null
null
rebench/tests/features/issue_57_binary_on_path_test.py
cmccandless/ReBench
0ec399a8c23a84022aa0271eb1caf30bdea8b2f6
[ "MIT" ]
null
null
null
# Copyright (c) 2017 Stefan Marr <http://www.stefan-marr.de/> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, mo...
45
78
0.727778
ddd46a6cd481595a0542ad191c829e955a5fa11a
659
py
Python
cross_test.py
nmondal/exit_poll_classification
1db66c4c922332a3f79154aa4d8454c50f1dfebd
[ "MIT" ]
1
2020-12-12T11:08:33.000Z
2020-12-12T11:08:33.000Z
cross_test.py
nmondal/exit_poll_classification
1db66c4c922332a3f79154aa4d8454c50f1dfebd
[ "MIT" ]
null
null
null
cross_test.py
nmondal/exit_poll_classification
1db66c4c922332a3f79154aa4d8454c50f1dfebd
[ "MIT" ]
null
null
null
from exit_poll import verify_classification, weighted_score INDEX_DIR = "./index_2" LABEL_CONFIG = { "label_column": "senti", "label_densities": {"4": 0.5, "0": 0.5}, "limit": 15 } QUESTION_BANK_CSV = "./data_dir/Tweets.csv" QUESTION_CSV_CONFIG = {"id_column": "tweet_id", "label_column": "airline_sentiment", "...
31.380952
107
0.669196
bea24f393565c86f4f560ed7ef0341512aee6f64
1,113
py
Python
bw2regional/errors.py
brightway-lca/brightway2-regional-copy
6aab66e76992dae89c48d60f13bf9c8baef17420
[ "BSD-3-Clause" ]
1
2022-03-02T10:33:39.000Z
2022-03-02T10:33:39.000Z
bw2regional/errors.py
brightway-lca/brightway2-regional-copy
6aab66e76992dae89c48d60f13bf9c8baef17420
[ "BSD-3-Clause" ]
3
2020-03-03T15:44:56.000Z
2021-07-21T13:34:29.000Z
bw2regional/errors.py
brightway-lca/brightway2-regional-copy
6aab66e76992dae89c48d60f13bf9c8baef17420
[ "BSD-3-Clause" ]
1
2022-02-14T14:04:51.000Z
2022-02-14T14:04:51.000Z
class BW2RegionalizationError(Exception): """Base class for BW2 regionalization errors""" pass class UnprocessedDatabase(BW2RegionalizationError): """A ``Database`` object doesn't have a list of reference geocollections.""" pass class SiteGenericMethod(BW2RegionalizationError): """This ``Metho...
22.714286
91
0.753819
69a6dc2a6ab7c2faeced6b03674481f211fb4332
286
py
Python
eggs/numpy-1.9.1-py2.7-linux-x86_64.egg/numpy/core/multiarray.py
kruthikarshankar/bemoss_os
460a5a41b38240bb9f6dacc23d373ae1942259a8
[ "Unlicense" ]
3
2018-11-25T01:09:55.000Z
2021-08-24T01:56:36.000Z
eggs/numpy-1.9.1-py2.7-linux-x86_64.egg/numpy/core/multiarray.py
kwarodom/bemoss_os_1.2
460a5a41b38240bb9f6dacc23d373ae1942259a8
[ "Unlicense" ]
null
null
null
eggs/numpy-1.9.1-py2.7-linux-x86_64.egg/numpy/core/multiarray.py
kwarodom/bemoss_os_1.2
460a5a41b38240bb9f6dacc23d373ae1942259a8
[ "Unlicense" ]
3
2018-11-09T03:38:09.000Z
2020-02-24T06:26:10.000Z
def __bootstrap__(): global __bootstrap__, __loader__, __file__ import sys, pkg_resources, imp __file__ = pkg_resources.resource_filename(__name__, 'multiarray.so') __loader__ = None; del __bootstrap__, __loader__ imp.load_dynamic(__name__,__file__) __bootstrap__()
35.75
73
0.769231
d089290d047c146bd4d64f42afb41dbe32ba43cc
4,662
py
Python
tests/test_adaptors.py
loftwah/MONAI
37fb3e779121e6dc74127993df102fc91d9065f8
[ "Apache-2.0" ]
1
2020-04-23T13:05:29.000Z
2020-04-23T13:05:29.000Z
tests/test_adaptors.py
tranduyquockhanh/MONAI
37fb3e779121e6dc74127993df102fc91d9065f8
[ "Apache-2.0" ]
null
null
null
tests/test_adaptors.py
tranduyquockhanh/MONAI
37fb3e779121e6dc74127993df102fc91d9065f8
[ "Apache-2.0" ]
1
2021-09-20T12:10:01.000Z
2021-09-20T12:10:01.000Z
# Copyright 2020 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 writing, s...
28.254545
88
0.512656
3905a40d58d8751fb6ab5e003aab404f68e5ccca
2,036
py
Python
include/PyBool_builder.py
tomaszjonak/PBL
738b95da52cd59dcacb0b9dc244ca1713b0264ac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
include/PyBool_builder.py
tomaszjonak/PBL
738b95da52cd59dcacb0b9dc244ca1713b0264ac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
include/PyBool_builder.py
tomaszjonak/PBL
738b95da52cd59dcacb0b9dc244ca1713b0264ac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# Tyler Sorensen # February 15, 2012 # University of Utah # PyBool_builder.py # The interface to build recursive style boolean expressions # See README.txt for more information def mk_const_expr(val): """ returns a constant expression of value VAL VAL should be of type boolean """ return {"type"...
20.565657
60
0.575147
2fb735b74580e386bd66797240192ed2f2c9be64
673
py
Python
dueros/Constants.py
ayxue/BaiduSaxoOpenAPI
d042366bb33ebdc4471b29e167b01c4cb7cb298d
[ "Apache-2.0" ]
null
null
null
dueros/Constants.py
ayxue/BaiduSaxoOpenAPI
d042366bb33ebdc4471b29e167b01c4cb7cb298d
[ "Apache-2.0" ]
null
null
null
dueros/Constants.py
ayxue/BaiduSaxoOpenAPI
d042366bb33ebdc4471b29e167b01c4cb7cb298d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # -*- encoding=utf-8 -*- # description: # author:jack # create_time: 2018/4/15 """ desc:pass """ class _Constants(object): class ConstError(TypeError): pass class ConstCaseError(ConstError): pass def __setattr__(self, name, value): if name in self.__dict__: ...
19.794118
84
0.643388
52a9a4e32f184f25a634f2a0229e843432ab2c66
1,751
py
Python
sapsan/core/abstrctions/experiment.py
MilesCranmer/Sapsan
4d21954baf196ede2d4dafc765aed98a0cfca21b
[ "BSD-3-Clause" ]
11
2020-05-25T18:59:02.000Z
2021-11-30T15:27:43.000Z
sapsan/core/abstrctions/experiment.py
MilesCranmer/Sapsan
4d21954baf196ede2d4dafc765aed98a0cfca21b
[ "BSD-3-Clause" ]
19
2020-04-17T05:54:09.000Z
2021-09-14T05:24:17.000Z
sapsan/core/abstrctions/experiment.py
MilesCranmer/Sapsan
4d21954baf196ede2d4dafc765aed98a0cfca21b
[ "BSD-3-Clause" ]
3
2021-09-01T16:11:18.000Z
2021-09-06T07:39:06.000Z
from abc import ABC, abstractmethod from typing import List from sapsan.core.abstrctions.algorithm import Parameter, Metric, Artifact from sapsan.core.abstrctions.tracking import TrackingBackend from sapsan.core.tracking.logger import LoggingBackend class Experiment(ABC): """ Base experiment class """ ...
25.014286
73
0.609366
b170439baf1c6dfcc165345842bf619f35389695
9,080
py
Python
instapy/clarifai_util.py
Rob-Rychs/InstaPy
3e71a6522a6e8e694cea59f914fe64d4bb995d7c
[ "MIT" ]
1
2019-05-13T03:44:07.000Z
2019-05-13T03:44:07.000Z
instapy/clarifai_util.py
Rob-Rychs/InstaPy
3e71a6522a6e8e694cea59f914fe64d4bb995d7c
[ "MIT" ]
null
null
null
instapy/clarifai_util.py
Rob-Rychs/InstaPy
3e71a6522a6e8e694cea59f914fe64d4bb995d7c
[ "MIT" ]
null
null
null
"""Module which handles the clarifai api and checks the image for invalid content""" from clarifai.rest import ClarifaiApp from clarifai.rest import Workflow from selenium.common.exceptions import NoSuchElementException def check_image(browser, clarifai_api_key, img_tags, ...
35.748031
79
0.576982
2923b881bafe40434e063a6ada8fc2c220ba5884
8,015
py
Python
src/dev/riscv/HiFive.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
765
2015-01-14T16:17:04.000Z
2022-03-28T07:46:28.000Z
src/dev/riscv/HiFive.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
30
2015-01-01T21:49:38.000Z
2021-04-20T19:01:54.000Z
src/dev/riscv/HiFive.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
807
2015-01-06T09:55:38.000Z
2022-03-30T10:23:36.000Z
# Copyright (c) 2021 Huawei International # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the funct...
37.106481
76
0.684467
dab5e1de4ed6a02d804820d5e182de989ed0e24d
4,474
py
Python
library/nsxt_upgrade_eula_accept_facts.py
lcamarda/nsxtlivefire-v2t
a95cbf25306aee6c115c510a48260b40b38f6be5
[ "BSD-2-Clause" ]
6
2020-03-25T16:49:52.000Z
2020-04-11T16:01:35.000Z
library/nsxt_upgrade_eula_accept_facts.py
lcamarda/nsxtlivefire-v2t
a95cbf25306aee6c115c510a48260b40b38f6be5
[ "BSD-2-Clause" ]
3
2020-03-26T19:30:15.000Z
2020-04-16T22:17:24.000Z
library/nsxt_upgrade_eula_accept_facts.py
lcamarda/nsxtlivefire-v2t
a95cbf25306aee6c115c510a48260b40b38f6be5
[ "BSD-2-Clause" ]
2
2020-03-25T23:49:30.000Z
2020-03-26T21:52:23.000Z
#!/usr/bin/env python # # Copyright 2019 VMware, Inc. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL...
40.306306
136
0.678587
b633d18cc9893e01bdca644136451bcad16ff0aa
772
py
Python
setup.py
WiscADSL/cuttlefs
8ddc684d4fc9167778bfe1cddfbbae8a3eabe15e
[ "MIT" ]
11
2020-07-13T09:59:23.000Z
2022-01-20T21:17:36.000Z
setup.py
WiscADSL/cuttlefs
8ddc684d4fc9167778bfe1cddfbbae8a3eabe15e
[ "MIT" ]
null
null
null
setup.py
WiscADSL/cuttlefs
8ddc684d4fc9167778bfe1cddfbbae8a3eabe15e
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="cuttlefs", version="0.0.1", author="Anthony Rebello", author_email="arebello@wisc.edu", description="Emulate file-system failure handling characteristics.", long_description=long_descr...
28.592593
72
0.661917
bdea7ce4526a32e277eae1d26b11cdc14659e452
6,025
py
Python
idom/dialect.py
philippjfr/idom
c638ccacfa7ffcfeb3e1eb4f264ae58526d5cd16
[ "MIT" ]
1
2022-02-11T17:48:58.000Z
2022-02-11T17:48:58.000Z
idom/dialect.py
philippjfr/idom
c638ccacfa7ffcfeb3e1eb4f264ae58526d5cd16
[ "MIT" ]
null
null
null
idom/dialect.py
philippjfr/idom
c638ccacfa7ffcfeb3e1eb4f264ae58526d5cd16
[ "MIT" ]
1
2022-02-11T17:48:59.000Z
2022-02-11T17:48:59.000Z
import ast from typing import Any, List, Optional, Tuple, Union import htm from pyalect import Dialect, DialectError class HtmlDialectTranspiler(Dialect, name="html"): """An HTML dialect transpiler for Python.""" def __init__(self, filename: Optional[str] = None): self.filename: str = filename or "<...
35.441176
88
0.592033
24428ea7f89c71dd8dda7437f544402870d2be77
1,726
py
Python
crownstone_core/packets/microapp/MicroappInfoPacket.py
crownstone/crownstone-lib-python-core
e50eaae8680614c030df186aa06f13c9b20ac9ba
[ "MIT" ]
null
null
null
crownstone_core/packets/microapp/MicroappInfoPacket.py
crownstone/crownstone-lib-python-core
e50eaae8680614c030df186aa06f13c9b20ac9ba
[ "MIT" ]
3
2020-08-04T19:32:03.000Z
2021-10-06T09:07:08.000Z
crownstone_core/packets/microapp/MicroappInfoPacket.py
crownstone/crownstone-lib-python-core
e50eaae8680614c030df186aa06f13c9b20ac9ba
[ "MIT" ]
null
null
null
import logging from typing import List from crownstone_core.packets.BasePacket import BasePacket from crownstone_core.packets.microapp.MicroappSdkVersionPacket import MicroappSdkVersionPacket from crownstone_core.packets.microapp.MicroappStatusPacket import MicroappStatusPacket from crownstone_core.util.BufferReader i...
32.566038
94
0.739861
5bd9d3b4daedfca76477f6bd5486960b61d952c6
576
py
Python
allauth/socialaccount/providers/naver/provider.py
s-tatus/django-allauth
25fe632acf12571ae2ac9e692e8890019d5a6e7b
[ "MIT" ]
2
2016-05-24T21:13:32.000Z
2017-12-27T13:43:26.000Z
allauth/socialaccount/providers/naver/provider.py
s-tatus/django-allauth
25fe632acf12571ae2ac9e692e8890019d5a6e7b
[ "MIT" ]
15
2020-06-05T19:26:26.000Z
2022-03-11T23:33:53.000Z
allauth/socialaccount/providers/naver/provider.py
s-tatus/django-allauth
25fe632acf12571ae2ac9e692e8890019d5a6e7b
[ "MIT" ]
1
2021-07-24T12:47:00.000Z
2021-07-24T12:47:00.000Z
from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class NaverAccount(ProviderAccount): def get_avatar_url(self): return self.account.extra_data.get('profile_image') def to_str(self): return self.account...
24
74
0.737847
88693900caa7b213698ec7c125f9506c07ef4608
1,907
py
Python
dingding_bot/api/bot.py
lpig/dingding_bot
3fbdd4280df38789b0b61abc7cd7efaae2fc0a38
[ "MIT" ]
null
null
null
dingding_bot/api/bot.py
lpig/dingding_bot
3fbdd4280df38789b0b61abc7cd7efaae2fc0a38
[ "MIT" ]
null
null
null
dingding_bot/api/bot.py
lpig/dingding_bot
3fbdd4280df38789b0b61abc7cd7efaae2fc0a38
[ "MIT" ]
null
null
null
# encoding=utf-8 import requests import logging from .tools import json logger = logging.getLogger(__name__) API_URL = 'https://oapi.dingtalk.com/robot/' class APIError(object): def __init__(self, code, msg): self.code = code self.message = msg class DingDingBot(object): def __init__(sel...
25.426667
74
0.516518
1751e5188fd4392b422e6d2cbefe4deedd899a93
1,665
py
Python
lib/bbox/box_transform.py
leonieganswindt/RetinaNet
1cf27bbb51d369d23f2fb6ec151cef2fe18b03e2
[ "MIT" ]
null
null
null
lib/bbox/box_transform.py
leonieganswindt/RetinaNet
1cf27bbb51d369d23f2fb6ec151cef2fe18b03e2
[ "MIT" ]
null
null
null
lib/bbox/box_transform.py
leonieganswindt/RetinaNet
1cf27bbb51d369d23f2fb6ec151cef2fe18b03e2
[ "MIT" ]
1
2019-07-17T09:39:56.000Z
2019-07-17T09:39:56.000Z
""" BBox transform """ import torch def bbox_transform(boxes, gtboxes): """ Bounding Box Transform from groundtruth boxes and proposal boxes to deltas Args: boxes: [N, 4] torch.Tensor (xyxy) gtboxes: [N, 4] torch.Tensor (xywh) Return: delta: [N, 4] torch.Tensor """ g...
25.615385
76
0.570571
2fc99abbac74b3ce700d9e68c0a4ed8f323f5da6
7,328
py
Python
pyxstr2swift/xstr2swift.py
ocworld/pyxstr2swift
83220488ce11e9123c2b828e8c199d40582f46d9
[ "MIT" ]
6
2018-08-21T01:25:23.000Z
2019-03-01T13:28:42.000Z
pyxstr2swift/xstr2swift.py
ocworld/pyxstr2swift
83220488ce11e9123c2b828e8c199d40582f46d9
[ "MIT" ]
1
2018-08-20T11:35:57.000Z
2018-08-20T11:35:57.000Z
pyxstr2swift/xstr2swift.py
ocworld/pyxstr2swift
83220488ce11e9123c2b828e8c199d40582f46d9
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import logging import os import io def _get_keys_and_values_from_strings_file(strings_file_path): """ get keys_and_values from xcode strings file :param strings_file_path: str. xcode strings file full path :return: """ def _comment_remover(text): ...
38.772487
119
0.646698
a257f947f9d83091dd668f62bb9fa0c75a8eafcd
2,698
py
Python
src/get_test_results.py
williamdjones/deep_protein_binding
10b00835024702b6d0e73092c777fed267215ca7
[ "MIT" ]
null
null
null
src/get_test_results.py
williamdjones/deep_protein_binding
10b00835024702b6d0e73092c777fed267215ca7
[ "MIT" ]
null
null
null
src/get_test_results.py
williamdjones/deep_protein_binding
10b00835024702b6d0e73092c777fed267215ca7
[ "MIT" ]
null
null
null
import os import argparse import pandas as pd import numpy as np from sklearn.metrics import f1_score, r2_score from tqdm import tqdm parser = argparse.ArgumentParser() parser.add_argument("--exp_dir", type=str, help="path to directory containing test results", default="/scratch/wdjo224/deep_protei...
46.517241
118
0.636027
431ece344438970d683027785a62319198b67ebf
2,866
py
Python
spyne/test/model/test_include.py
infoxchange/spyne
60ed622b088c13f4f84c81f1f43302edbc7f6027
[ "BSD-3-Clause" ]
null
null
null
spyne/test/model/test_include.py
infoxchange/spyne
60ed622b088c13f4f84c81f1f43302edbc7f6027
[ "BSD-3-Clause" ]
null
null
null
spyne/test/model/test_include.py
infoxchange/spyne
60ed622b088c13f4f84c81f1f43302edbc7f6027
[ "BSD-3-Clause" ]
3
2016-10-08T15:01:49.000Z
2018-05-24T03:14:24.000Z
#!/usr/bin/env python # # spyne - Copyright (C) Spyne contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ve...
37.710526
112
0.652128
47850a75918581c18595ed2dbfaebb0bfd2c8a02
503
py
Python
sandpit_app/webapp/security.py
mr-tim/sandpit
25ee43927b87b27936db191232aefc57026309d4
[ "MIT" ]
2
2017-02-16T10:24:55.000Z
2018-08-14T09:58:17.000Z
sandpit_app/webapp/security.py
mr-tim/sandpit
25ee43927b87b27936db191232aefc57026309d4
[ "MIT" ]
null
null
null
sandpit_app/webapp/security.py
mr-tim/sandpit
25ee43927b87b27936db191232aefc57026309d4
[ "MIT" ]
null
null
null
from flask import abort, redirect from functools import wraps from core import current_user def logged_in(f): @wraps(f) def wrapper(*args, **kwds): if current_user == None: return redirect('/login') else: return f(*args, **kwds) return wrapper def admin(f): @wraps...
20.958333
37
0.632207
1dbdec283d1bf9303c7da9274e99bdd3b02bf9f7
22
py
Python
Lambdata_veritaem/__init__.py
veritaem/Lambdata
f104c0a93e59676a6555e8dc05564928bf34f10b
[ "MIT" ]
null
null
null
Lambdata_veritaem/__init__.py
veritaem/Lambdata
f104c0a93e59676a6555e8dc05564928bf34f10b
[ "MIT" ]
null
null
null
Lambdata_veritaem/__init__.py
veritaem/Lambdata
f104c0a93e59676a6555e8dc05564928bf34f10b
[ "MIT" ]
1
2019-02-14T16:09:24.000Z
2019-02-14T16:09:24.000Z
# VERSION: 0.0.1
7.333333
20
0.454545
e2c9ddbbc991b503308d2cbd4196f9ff1ec30848
278
py
Python
python/2.OOP/1Encapsulation/1.6.static_class.py
dunitian/BaseCode
4855ef4c6dd7c95d7239d2048832d8acfe26e084
[ "Apache-2.0" ]
25
2018-06-13T08:13:44.000Z
2020-11-19T14:02:11.000Z
python/2.OOP/1Encapsulation/1.6.static_class.py
dunitian/BaseCode
4855ef4c6dd7c95d7239d2048832d8acfe26e084
[ "Apache-2.0" ]
null
null
null
python/2.OOP/1Encapsulation/1.6.static_class.py
dunitian/BaseCode
4855ef4c6dd7c95d7239d2048832d8acfe26e084
[ "Apache-2.0" ]
13
2018-06-13T08:13:38.000Z
2022-01-06T06:45:07.000Z
class Person(object): # age为类属性 age = 1 def __init__(self, name): # name为实例属性 self.name = name def main(): # 类名.类属性 print(Person.age) xiaoming = Person("小明") # 对象.类属性 print(xiaoming.age) if __name__ == '__main__': main()
13.9
29
0.55036
65ec692dab3abb24a12cc34f797aafbc490b6b5f
5,123
py
Python
Dangerous/Golismero/tools/sqlmap/extra/mssqlsig/update.py
JeyZeta/Dangerous-
824ea6b571eda98bb855f176361e9b35dfda578e
[ "MIT" ]
null
null
null
Dangerous/Golismero/tools/sqlmap/extra/mssqlsig/update.py
JeyZeta/Dangerous-
824ea6b571eda98bb855f176361e9b35dfda578e
[ "MIT" ]
null
null
null
Dangerous/Golismero/tools/sqlmap/extra/mssqlsig/update.py
JeyZeta/Dangerous-
824ea6b571eda98bb855f176361e9b35dfda578e
[ "MIT" ]
1
2018-07-04T18:35:16.000Z
2018-07-04T18:35:16.000Z
#!/usr/bin/env python """ Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import codecs import os import re import urllib2 import urlparse from xml.dom.minidom import Document # Path to the XML file with signatures MSSQL_XML = os.path.abspath("../...
37.123188
160
0.619559
d1cc7194d5a3fec6dc28a0016994345645003c02
3,423
py
Python
main/gui/Frames/ClassificationResultsFrame.py
MattScho/MLUI
c6e609a9a9cae4e428545e4ccbeecaf8ba452b82
[ "Apache-2.0" ]
2
2018-10-09T00:39:32.000Z
2018-10-14T23:18:02.000Z
main/gui/Frames/ClassificationResultsFrame.py
MattScho/MLUI
c6e609a9a9cae4e428545e4ccbeecaf8ba452b82
[ "Apache-2.0" ]
null
null
null
main/gui/Frames/ClassificationResultsFrame.py
MattScho/MLUI
c6e609a9a9cae4e428545e4ccbeecaf8ba452b82
[ "Apache-2.0" ]
null
null
null
from tkinter import Frame, Entry, Label,Button from tkinter import filedialog import pickle from main.gui.Utilities.Settings import Settings ''' Displays results of a classification algorithm ''' class ClassificationAlgorithmResultsFrame(Frame): def __init__(self, parent, res): Frame.__init__(sel...
51.089552
234
0.683903
9d369e9e542e063bebc52725f555be469d5875c9
7,018
py
Python
ml_studio/model_evaluation/optimization.py
john-james-ai/ml-studio
2230fcd6579d2291c761e559ec93b18ddd7a96e6
[ "BSD-3-Clause" ]
1
2020-01-30T09:37:00.000Z
2020-01-30T09:37:00.000Z
ml_studio/model_evaluation/optimization.py
john-james-ai/ml-studio
2230fcd6579d2291c761e559ec93b18ddd7a96e6
[ "BSD-3-Clause" ]
3
2019-12-05T19:37:59.000Z
2020-03-31T05:49:53.000Z
ml_studio/model_evaluation/optimization.py
john-james-ai/ml-studio
2230fcd6579d2291c761e559ec93b18ddd7a96e6
[ "BSD-3-Clause" ]
null
null
null
# =========================================================================== # # Project: ML Studio # # Version: 0.1.14 # # File: \optimization.py # ...
38.349727
79
0.515247
cac08792de8041a071d2d89b76dc699938558162
503
py
Python
flask_philo_sqlalchemy/test.py
maigfrga/Flask-Philo-SQLAlchemy
71598bb603b8458a2cf9f7989f71d8f1c77fafb9
[ "MIT" ]
null
null
null
flask_philo_sqlalchemy/test.py
maigfrga/Flask-Philo-SQLAlchemy
71598bb603b8458a2cf9f7989f71d8f1c77fafb9
[ "MIT" ]
13
2018-11-02T15:12:20.000Z
2019-02-20T16:05:13.000Z
flask_philo_sqlalchemy/test.py
maigfrga/Flask-Philo-SQLAlchemy
71598bb603b8458a2cf9f7989f71d8f1c77fafb9
[ "MIT" ]
3
2018-10-11T09:04:04.000Z
2018-12-19T13:14:23.000Z
from flask_philo_core.test import FlaskPhiloTestCase from flask_philo_sqlalchemy.connection import create_pool from flask_philo_sqlalchemy import cleandb, syncdb class SQLAlchemyTestCase(FlaskPhiloTestCase): def setup(self): super(SQLAlchemyTestCase, self).setup() with self.app.app_context(): ...
29.588235
57
0.689861
be70a79d59f0d9b9d5be834c7f6208ed06ac4c38
28,020
py
Python
app/lib/pushkin/pushkin/sender/nordifier/apns.py
krzyhook/pushkin-on-docker
05d192d0b4c753bcd41aba0a66394ae39dd78fc6
[ "MIT" ]
null
null
null
app/lib/pushkin/pushkin/sender/nordifier/apns.py
krzyhook/pushkin-on-docker
05d192d0b4c753bcd41aba0a66394ae39dd78fc6
[ "MIT" ]
null
null
null
app/lib/pushkin/pushkin/sender/nordifier/apns.py
krzyhook/pushkin-on-docker
05d192d0b4c753bcd41aba0a66394ae39dd78fc6
[ "MIT" ]
null
null
null
# PyAPNs was developed by Simon Whitaker <simon@goosoftware.co.uk> # Source available at https://github.com/simonwhitaker/PyAPNs # # PyAPNs is distributed under the terms of the MIT license. # # Copyright (c) 2011 Goo Software Ltd # # Permission is hereby granted, free of charge, to any person obtaining a copy o...
38.595041
121
0.585011
346c861e588d4053249c93786c02cbac15821294
7,727
py
Python
tests/mockssh.py
bchess/mrjob
7415f57884f2ba4313ef9164e023174d5f36abae
[ "Apache-2.0" ]
null
null
null
tests/mockssh.py
bchess/mrjob
7415f57884f2ba4313ef9164e023174d5f36abae
[ "Apache-2.0" ]
null
null
null
tests/mockssh.py
bchess/mrjob
7415f57884f2ba4313ef9164e023174d5f36abae
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-2011 Yelp # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
31.032129
78
0.636728
5aa79bd3718e18c6be8fa997d3a65bc1423435fb
10,617
py
Python
pyswarms/base/base_single.py
claudin92/pyswarms_prac
2902ad96ca52f16f2de0304190207cb83995aaec
[ "MIT" ]
1
2020-09-28T08:02:34.000Z
2020-09-28T08:02:34.000Z
pyswarms/base/base_single.py
claudin92/pyswarms_prac
2902ad96ca52f16f2de0304190207cb83995aaec
[ "MIT" ]
null
null
null
pyswarms/base/base_single.py
claudin92/pyswarms_prac
2902ad96ca52f16f2de0304190207cb83995aaec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- r""" Base class for single-objective Particle Swarm Optimization implementations. All methods here are abstract and raises a :code:`NotImplementedError` when not used. When defining your own swarm implementation, create another class, >>> class MySwarm(SwarmBase): >>> def __init__...
37.648936
97
0.601206
f739df0d02c431262465c9f9cddbb2964b329c63
1,077
py
Python
twitoff/predict.py
EEdwardsA/Twitoff
e1c2613c233e81c5aa50fecb89e90c75b9bbdd01
[ "MIT" ]
null
null
null
twitoff/predict.py
EEdwardsA/Twitoff
e1c2613c233e81c5aa50fecb89e90c75b9bbdd01
[ "MIT" ]
null
null
null
twitoff/predict.py
EEdwardsA/Twitoff
e1c2613c233e81c5aa50fecb89e90c75b9bbdd01
[ "MIT" ]
null
null
null
"""Prediction of Users based on tweet embeddings""" import numpy as np from sklearn.linear_model import LogisticRegression from .models import User from .twitter import vectorize_tweet def predict_user(user0_name, user1_name, hypo_tweet_text): """ Determine and return which user is more likely to say a hypoth...
35.9
78
0.714949
65726b94957de72f06a015f8348b8218916d6994
401
py
Python
myapp/SetUtf8.py
abars/illustbook
3e790a688c19205b7384cc5815ca76c23b88f09a
[ "MIT" ]
3
2016-06-16T20:11:45.000Z
2022-01-27T04:23:09.000Z
myapp/SetUtf8.py
abars/illustbook
3e790a688c19205b7384cc5815ca76c23b88f09a
[ "MIT" ]
1
2017-10-23T00:23:13.000Z
2017-10-23T00:23:13.000Z
myapp/SetUtf8.py
abars/illustbook
3e790a688c19205b7384cc5815ca76c23b88f09a
[ "MIT" ]
null
null
null
#!-*- coding:utf-8 -*- #!/usr/bin/env python #--------------------------------------------------- #文字コードをUTF8に設定 #copyright 2010-2012 ABARS all rights reserved. #--------------------------------------------------- import sys class SetUtf8: @staticmethod def set(): stdin = sys.stdin stdout = sys.stdout reload...
21.105263
52
0.513716
b1b9f0d140b078502871ce7de32d378c3653ced6
8,456
py
Python
pwnlib/rop/call.py
tkmikan/pwntools
1238fc359eb72313d3f82849b2effdb7063ab429
[ "MIT" ]
8,966
2015-01-02T11:58:14.000Z
2022-03-31T21:19:56.000Z
pwnlib/rop/call.py
tkmikan/pwntools
1238fc359eb72313d3f82849b2effdb7063ab429
[ "MIT" ]
1,401
2015-01-01T00:56:22.000Z
2022-03-31T16:19:53.000Z
pwnlib/rop/call.py
tkmikan/pwntools
1238fc359eb72313d3f82849b2effdb7063ab429
[ "MIT" ]
1,844
2015-01-07T04:38:06.000Z
2022-03-30T03:54:46.000Z
# -*- coding: utf-8 -*- """Abstracting ROP calls """ from __future__ import division from pwnlib.abi import ABI from pwnlib.context import context from pwnlib.util import packing import six from pwnlib.util.misc import python_2_bytes_compatible, align class Unresolved(object): """ Encapsulates logic for de...
30.2
87
0.566107
ebef34cbda89ca0f4489b45bf2b5a8785851df1f
1,642
py
Python
gateway/utils/testfinder.py
aceofwings/Cantactular
a6eb8d7128fd1388d3e75c1a8415123d1d5930e1
[ "MIT" ]
3
2017-01-26T01:37:42.000Z
2018-07-22T02:42:52.000Z
gateway/utils/testfinder.py
aceofwings/Cantactular
a6eb8d7128fd1388d3e75c1a8415123d1d5930e1
[ "MIT" ]
1
2017-07-07T18:02:20.000Z
2017-07-07T18:02:20.000Z
gateway/utils/testfinder.py
aceofwings/Evt-Gateway
a6eb8d7128fd1388d3e75c1a8415123d1d5930e1
[ "MIT" ]
null
null
null
import os import unittest from gateway.utils.resourcelocator import ResourceLocator from unittest import TestLoader TEST_PATH = "tests" verbosity = 1 test_loader = unittest.defaultTestLoader def find_test_modules(file_pattern='test*.py'): """ Finds test modules within the test folder """ test_locator...
29.854545
83
0.698538
aa3605dfa092541f9003ebdde50c0565380e63a9
15,154
py
Python
ibmsecurity/isam/base/network/felb/config.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/base/network/felb/config.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/base/network/felb/config.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
import logging import ibmsecurity.utilities.tools logger = logging.getLogger(__name__) module_uri = "/isam/felb" requires_module = None requires_version = None def export(isamAppilance, check_mode=False, force=False): """ Exporting current FELB configuration with RESTful web service """ return isamA...
44.309942
120
0.472746
b4dc593bcd634307cee83e4120d8eb0bc538ce3c
26,401
py
Python
src/anomaly_toolbox/trainers/descargan.py
zurutech/anomaly-toolbox
ee772898b66b8be86cfa300334fb8cf7b826dc4d
[ "MIT" ]
73
2021-09-13T14:35:16.000Z
2022-03-11T14:39:04.000Z
src/anomaly_toolbox/trainers/descargan.py
321Visual/anomaly-toolbox
ee772898b66b8be86cfa300334fb8cf7b826dc4d
[ "MIT" ]
4
2021-09-14T13:41:55.000Z
2022-02-24T20:26:59.000Z
src/anomaly_toolbox/trainers/descargan.py
321Visual/anomaly-toolbox
ee772898b66b8be86cfa300334fb8cf7b826dc4d
[ "MIT" ]
4
2021-09-14T08:45:17.000Z
2021-12-29T22:02:57.000Z
# Copyright 2021 Zuru Tech HK Limited. 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 la...
40.554531
100
0.526722
0c36cc9a797aefdcff1a70236e50c7aaca031163
2,633
py
Python
FEP/preliminary-work/example_FEP/expanded-ensemble/create_ee_mdp.py
vvoelz/covid-FAH-CPU
1b22f0ac046d37fdcbf7c2b1b476abd35eb162c5
[ "MIT" ]
1
2020-04-16T05:10:33.000Z
2020-04-16T05:10:33.000Z
FEP/preliminary-work/example_FEP/expanded-ensemble/create_ee_mdp.py
vvoelz/covid-FAH-CPU
1b22f0ac046d37fdcbf7c2b1b476abd35eb162c5
[ "MIT" ]
7
2020-03-16T16:14:28.000Z
2020-05-16T16:05:18.000Z
FEP/preliminary-work/example_FEP/expanded-ensemble/create_ee_mdp.py
vvoelz/covid-FAH-CPU
1b22f0ac046d37fdcbf7c2b1b476abd35eb162c5
[ "MIT" ]
null
null
null
import os, sys, stat import subprocess from expanded import * ############### ## Let's see if grompp can build an expanded ensemble simulaton if (0): os.system('gmx --version') ################## usage = """ Usage: create_ee_mdp.py [grofile] [topfile] [ndxfile] [output mdpfile] EXAMPLE $ python crea...
28.619565
224
0.687429
7c99714cb0fd8bd933c503d2533005298fb07e09
279
py
Python
Chapter 07/Chap07_Example7.108.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 07/Chap07_Example7.108.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 07/Chap07_Example7.108.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
mys1 = {1,2,3,4} mys2 = {1,2,3,4,5,6} print(mys2.issuperset(mys1)) # ISUP1 mys3 = {'a','b','c','d'} mys4 = {'d','w','f','g'} mys5 = {'a','b', 'c', 'd','v','w','x','z'} print(mys3.issuperset(mys4)) # ISUP2 print(mys4.issuperset(mys5)) # ISUP3 print(mys5.issuperset(mys3)) # ISUP4
27.9
42
0.566308