hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
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
209
max_issues_repo_name
stringlengths
5
121
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
209
max_forks_repo_name
stringlengths
5
121
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
4277a02207aa92145ad6b49dab6def4f85950ba0
1,882
py
Python
botfw/etc/util.py
lzpel/btc_bot_framework
abb585e1cd8b70297ef29d529e2da75046409f4b
[ "MIT" ]
115
2019-11-29T23:48:37.000Z
2022-03-25T11:07:21.000Z
botfw/etc/util.py
lzpel/btc_bot_framework
abb585e1cd8b70297ef29d529e2da75046409f4b
[ "MIT" ]
15
2019-12-05T07:31:05.000Z
2022-02-07T02:34:47.000Z
botfw/etc/util.py
lzpel/btc_bot_framework
abb585e1cd8b70297ef29d529e2da75046409f4b
[ "MIT" ]
38
2019-11-30T00:06:04.000Z
2022-03-22T08:40:03.000Z
import time import datetime import decimal import logging import threading import traceback import hmac import hashlib import ccxt no_traceback_exceptions = (ccxt.NetworkError) def unix_time_from_ISO8601Z(date): td = datetime.datetime.strptime(date[:19], '%Y-%m-%dT%H:%M:%S') td = td.replace(tzinfo=datetime....
23.822785
77
0.639214
5c0273ed43c40c359d2c0275aca7f3eaffcd0e7d
22,602
py
Python
src/m1_pizza.py
brackinPatsy/12-MoreSequences
388fbed2b2d5d47e40c56778ab13b99a5b25d88e
[ "MIT" ]
null
null
null
src/m1_pizza.py
brackinPatsy/12-MoreSequences
388fbed2b2d5d47e40c56778ab13b99a5b25d88e
[ "MIT" ]
null
null
null
src/m1_pizza.py
brackinPatsy/12-MoreSequences
388fbed2b2d5d47e40c56778ab13b99a5b25d88e
[ "MIT" ]
null
null
null
""" This module lets you practice: -- ITERATING (i.e. LOOPING) through a SEQUENCE -- Using OBJECTS -- DEFINING functions -- CALLING functions Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Aaron Wilkin, their colleagues, and Patsy. """ # done: 1...
41.624309
79
0.520883
df468edb88e4ab02aa7bece881979f86549562e1
3,583
py
Python
midterm2/s4108056005/s4108056005/settings.py
AndyChiangSH/1102_Web-based-systems
2ae1ff82190a060755e60ed442afda1cf28a21fb
[ "MIT" ]
null
null
null
midterm2/s4108056005/s4108056005/settings.py
AndyChiangSH/1102_Web-based-systems
2ae1ff82190a060755e60ed442afda1cf28a21fb
[ "MIT" ]
null
null
null
midterm2/s4108056005/s4108056005/settings.py
AndyChiangSH/1102_Web-based-systems
2ae1ff82190a060755e60ed442afda1cf28a21fb
[ "MIT" ]
null
null
null
""" Django settings for s4108056005 project. Generated by 'django-admin startproject' using Django 3.1.2. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pat...
25.776978
91
0.677086
bb51da1d5024b36d0b579a704f14c72f08466a6c
16,843
py
Python
qiskit/aqua/algorithms/factorizers/shor.py
v-r0/qiskit-aqua_duplicate20210324
03ac8575edd98f7bf7e3ed0a98b6348981bc4951
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/algorithms/factorizers/shor.py
v-r0/qiskit-aqua_duplicate20210324
03ac8575edd98f7bf7e3ed0a98b6348981bc4951
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/algorithms/factorizers/shor.py
v-r0/qiskit-aqua_duplicate20210324
03ac8575edd98f7bf7e3ed0a98b6348981bc4951
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2019, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
40.102381
99
0.596746
8b9f321ab5dcfcc1f9d4414f22c38b906f546ab5
7,455
py
Python
main.py
Parskatt/DeepLabv3.pytorch
5fcbd6bf347296a842f44aaef4c396a949ed5130
[ "BSD-3-Clause" ]
null
null
null
main.py
Parskatt/DeepLabv3.pytorch
5fcbd6bf347296a842f44aaef4c396a949ed5130
[ "BSD-3-Clause" ]
null
null
null
main.py
Parskatt/DeepLabv3.pytorch
5fcbd6bf347296a842f44aaef4c396a949ed5130
[ "BSD-3-Clause" ]
null
null
null
import argparse import os import numpy as np import torch import torch.nn as nn import torch.optim as optim import pdb from PIL import Image from scipy.io import loadmat from torch.autograd import Variable from torchvision import transforms import deeplab from pascal import VOCSegmentation from cityscapes import Citys...
39.236842
94
0.634608
9c2e4dc2803537993439bb75d287acae571dcc0e
4,587
py
Python
example_code/GPS_example.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
example_code/GPS_example.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
example_code/GPS_example.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
# Simple GPS module demonstration. # Will wait for a fix and print a message every second with the current location # and other details. import time import board import busio import adafruit_gps # Create a serial connection for the GPS connection using default speed and # a slightly higher timeout (GPS modules typica...
47.28866
80
0.676041
8beaf7c14e08311fc884bc653cc89f7b581c5a2a
8,577
py
Python
mbrl/util/logger.py
pecey/mbrl-lib
ebca518b35a1370dbaede2a1c96fcde714bc5489
[ "MIT" ]
592
2021-04-20T04:30:18.000Z
2022-03-30T13:34:54.000Z
mbrl/util/logger.py
pecey/mbrl-lib
ebca518b35a1370dbaede2a1c96fcde714bc5489
[ "MIT" ]
57
2021-04-21T17:20:05.000Z
2022-03-28T15:31:45.000Z
mbrl/util/logger.py
pecey/mbrl-lib
ebca518b35a1370dbaede2a1c96fcde714bc5489
[ "MIT" ]
76
2021-04-20T15:50:14.000Z
2022-03-25T19:05:25.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import collections import csv import pathlib from typing import Counter, Dict, List, Mapping, Tuple, Union import termcol...
38.809955
98
0.62003
24ad7f30f93aa24129b1cf88fa6cd9f7377fecc0
3,123
py
Python
bytecash/wallet/puzzles/load_clvm.py
konarshankar07/bytecash-blockchain
1c1fab19664e7777b75be1a60facb8a454341443
[ "Apache-2.0" ]
null
null
null
bytecash/wallet/puzzles/load_clvm.py
konarshankar07/bytecash-blockchain
1c1fab19664e7777b75be1a60facb8a454341443
[ "Apache-2.0" ]
null
null
null
bytecash/wallet/puzzles/load_clvm.py
konarshankar07/bytecash-blockchain
1c1fab19664e7777b75be1a60facb8a454341443
[ "Apache-2.0" ]
null
null
null
import importlib import inspect import os import pathlib import pkg_resources from clvm_tools.clvmc import compile_clvm as compile_clvm_py from bytecash.types.blockchain_format.program import Program, SerializedProgram compile_clvm = compile_clvm_py # Handle optional use of clvm_tools_rs if available and requested i...
37.626506
120
0.677874
afcc50bc4bf1c81e9c45cdc5db1a8e350b081493
573
py
Python
abnum.py
liguangyulgy/mytest1
08133d04881ec94df49093aba94baa31e30ffb9b
[ "BSD-2-Clause" ]
null
null
null
abnum.py
liguangyulgy/mytest1
08133d04881ec94df49093aba94baa31e30ffb9b
[ "BSD-2-Clause" ]
null
null
null
abnum.py
liguangyulgy/mytest1
08133d04881ec94df49093aba94baa31e30ffb9b
[ "BSD-2-Clause" ]
null
null
null
class AbNum: def __init__(self, state): self.a, self.right = state.split('==', 2) self.left = self.a.split('+') self.right = self.right.strip() self.left = [a.strip() for a in self.left] if len(self.left) < 1 or len(self.right) < 1: raise Exception def show(s...
27.285714
53
0.504363
48da5729e47f8fe9893fa9387e21ce7c03000304
1,225
py
Python
util/chplenv/chpl_re2.py
strikeraryu/chapel
fe002d61b56d9584d8205c06af6a3162434ae136
[ "ECL-2.0", "Apache-2.0" ]
1
2022-03-30T18:06:23.000Z
2022-03-30T18:06:23.000Z
util/chplenv/chpl_re2.py
strikeraryu/chapel
fe002d61b56d9584d8205c06af6a3162434ae136
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
util/chplenv/chpl_re2.py
strikeraryu/chapel
fe002d61b56d9584d8205c06af6a3162434ae136
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import sys import chpl_compiler, chpl_platform, overrides, third_party_utils from chpl_home_utils import get_chpl_third_party from utils import memoize @memoize def get(): re2 = overrides.get('CHPL_RE2') regexp = overrides.get('CHPL_REGEXP') if regexp: if not re2:...
27.222222
79
0.588571
33b1a8485775448fcac138360bdcc1e6ab7e2dd0
280
py
Python
plusGitRepo/__init__.py
edina/plusGitRepo
78d33dfb85f5c665445485659cc36915b70e8371
[ "BSD-3-Clause" ]
null
null
null
plusGitRepo/__init__.py
edina/plusGitRepo
78d33dfb85f5c665445485659cc36915b70e8371
[ "BSD-3-Clause" ]
2
2022-01-24T11:48:10.000Z
2022-01-24T14:24:06.000Z
plusGitRepo/__init__.py
edina/plusGitRepo
78d33dfb85f5c665445485659cc36915b70e8371
[ "BSD-3-Clause" ]
null
null
null
# This is called by the notebook def _jupyter_nbextension_paths(): return [{ 'section': 'tree', 'src': 'main', 'dest': 'plusGitRepo', 'require': 'plusGitRepo/index' }] def load_jupyter_server_extension(nbapp): web_app = nbapp.web_app
21.538462
41
0.614286
e16122ba46cdf6c0d38ffe4b84dc35ef3a69540c
7,573
py
Python
visualizing_data/orientation_and_rotation_plots.py
eliweissler/Colin_Eli_Kai_Math_178_Final
fbb10a6a424927dccc94ea219903d15dcca0ecf8
[ "Unlicense" ]
null
null
null
visualizing_data/orientation_and_rotation_plots.py
eliweissler/Colin_Eli_Kai_Math_178_Final
fbb10a6a424927dccc94ea219903d15dcca0ecf8
[ "Unlicense" ]
null
null
null
visualizing_data/orientation_and_rotation_plots.py
eliweissler/Colin_Eli_Kai_Math_178_Final
fbb10a6a424927dccc94ea219903d15dcca0ecf8
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun May 31 13:43:41 2020 @author: Eli """ import pandas as pd import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np from pyquaternion import Quaternion from scipy.ndimage import gaussian_filter from scipy.spatial.tra...
30.413655
109
0.622475
85789f78c2f86fc4a1a8edf99e954cf2b24f6ba0
5,080
py
Python
flex_bt_turtlebot_demo_bringup/launch/nav2.launch.py
FlexBE/flex_bt_turtlebot_demo
215b24e3c2c2b80ef990676dca88781ad3f12178
[ "BSD-3-Clause" ]
null
null
null
flex_bt_turtlebot_demo_bringup/launch/nav2.launch.py
FlexBE/flex_bt_turtlebot_demo
215b24e3c2c2b80ef990676dca88781ad3f12178
[ "BSD-3-Clause" ]
null
null
null
flex_bt_turtlebot_demo_bringup/launch/nav2.launch.py
FlexBE/flex_bt_turtlebot_demo
215b24e3c2c2b80ef990676dca88781ad3f12178
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018 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...
36.546763
101
0.646654
43a2f2142a91023b870ffc68bbe9eab62bb27431
3,070
py
Python
map_label_tool/py_proto/modules/perception/lidar/lib/scene_manager/roi_service/proto/roi_service_pb2.py
freeclouds/OpenHDMap
b61c159fbdf4f50ae1d1650421596b28863f39be
[ "Apache-2.0" ]
null
null
null
map_label_tool/py_proto/modules/perception/lidar/lib/scene_manager/roi_service/proto/roi_service_pb2.py
freeclouds/OpenHDMap
b61c159fbdf4f50ae1d1650421596b28863f39be
[ "Apache-2.0" ]
null
null
null
map_label_tool/py_proto/modules/perception/lidar/lib/scene_manager/roi_service/proto/roi_service_pb2.py
freeclouds/OpenHDMap
b61c159fbdf4f50ae1d1650421596b28863f39be
[ "Apache-2.0" ]
1
2021-05-26T08:42:11.000Z
2021-05-26T08:42:11.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: modules/perception/lidar/lib/scene_manager/roi_service/proto/roi_service.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import mes...
35.287356
267
0.77785
d7e9491b8b8d473b3f65235794e42ba33fbb076b
17,580
py
Python
tests/contrib/hooks/test_bigquery_hook.py
robinedwards/incubator-airflow
f2738b085e1aa38e1795ddc21516fbe4c9d3dddc
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2018-06-06T22:31:09.000Z
2018-08-13T23:12:22.000Z
tests/contrib/hooks/test_bigquery_hook.py
robinedwards/incubator-airflow
f2738b085e1aa38e1795ddc21516fbe4c9d3dddc
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
13
2018-07-11T10:45:30.000Z
2018-08-18T00:43:30.000Z
tests/contrib/hooks/test_bigquery_hook.py
robinedwards/incubator-airflow
f2738b085e1aa38e1795ddc21516fbe4c9d3dddc
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
5
2020-05-12T13:38:14.000Z
2022-03-17T17:17:50.000Z
# -*- coding: 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 License, Version 2.0 (the #...
39.41704
90
0.641354
cda2b75987295f94112d22222f1d69c1c6e0daae
1,153
py
Python
25/25a.py
jamOne-/adventofcode2018
d51c01578ae7e4f30824c4f6ace66958491c1ed4
[ "MIT" ]
null
null
null
25/25a.py
jamOne-/adventofcode2018
d51c01578ae7e4f30824c4f6ace66958491c1ed4
[ "MIT" ]
null
null
null
25/25a.py
jamOne-/adventofcode2018
d51c01578ae7e4f30824c4f6ace66958491c1ed4
[ "MIT" ]
null
null
null
import re import sys def get_all_numbers(line): return tuple(map(int, re.findall('-?\d+', line))) def distance(point1, point2): return abs(point1[0] - point2[0]) + abs(point1[1] - point2[1]) + abs(point1[2] - point2[2]) + abs(point1[3] - point2[3]) def get_connections(points): connections = [[] for _ in poi...
19.542373
122
0.6366
247d125a3c73acf59c9561c699fb7f2fefc099ce
14,548
py
Python
Libraries/Vulkan/VulkanSDK/1.1.126.0/shaderc/glslc/test/parameter_tests.py
IanWigle/SlitherEngine2
5364d8ad5a52cd7c651ff5bb3c1db59ba15441f5
[ "MIT" ]
1
2019-11-21T17:40:18.000Z
2019-11-21T17:40:18.000Z
Libraries/Vulkan/VulkanSDK/1.1.126.0/shaderc/glslc/test/parameter_tests.py
Paldamar/SlitherEngine2
5364d8ad5a52cd7c651ff5bb3c1db59ba15441f5
[ "MIT" ]
2
2021-05-10T21:48:41.000Z
2021-05-11T07:00:49.000Z
Libraries/Vulkan/VulkanSDK/1.1.126.0/shaderc/glslc/test/parameter_tests.py
Paldamar/SlitherEngine2
5364d8ad5a52cd7c651ff5bb3c1db59ba15441f5
[ "MIT" ]
null
null
null
# Copyright 2015 The Shaderc Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
40.636872
81
0.675213
6cd14fdc3e33e8835c499dce6a5682ad6a4238fa
3,556
py
Python
turtle/moth-light/turtle-moth-light.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
turtle/moth-light/turtle-moth-light.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
turtle/moth-light/turtle-moth-light.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
import turtle import random # --- classes --- class Moth: def __init__(self, pos, dest=None): '''create and initiate moth''' # define turtle self.t = turtle.Turtle() self.t.speed(0) # it is needed to execute `ontimer` self.screen = turtle.Screen() ...
24.694444
73
0.567492
7b56559d0de42e365dd4c852243894acda65b38e
9,909
py
Python
characterize.py
cccs-dawson/assemblyline-service-characterize
aa919d0f065ed78208482f86f678d0e423dcdae7
[ "MIT" ]
1
2021-06-18T14:56:28.000Z
2021-06-18T14:56:28.000Z
characterize.py
cccs-dawson/assemblyline-service-characterize
aa919d0f065ed78208482f86f678d0e423dcdae7
[ "MIT" ]
8
2020-12-02T20:10:22.000Z
2022-03-02T18:16:04.000Z
characterize.py
cccs-dawson/assemblyline-service-characterize
aa919d0f065ed78208482f86f678d0e423dcdae7
[ "MIT" ]
4
2021-01-19T18:56:41.000Z
2021-07-14T18:38:21.000Z
from __future__ import absolute_import import json import re import subprocess import traceback from typing import Dict, List, Optional, Tuple, Union import hachoir.core.config as hachoir_config from hachoir.core.log import log as hachoir_logger, Log, Logger from hachoir.metadata import extractMetadata from hachoir.p...
40.280488
118
0.521445
376bb6c792ba47d0c7c427267344dbc1c1cfec3a
19,958
py
Python
tests/room_test.py
phildenhoff/matrix-nio
5642d5a980d87c363e3b8c55d82224a4a353f3d3
[ "Apache-2.0" ]
1
2021-06-28T02:45:13.000Z
2021-06-28T02:45:13.000Z
tests/room_test.py
vSLG/matrix-nio
e408334c5db061e01fe89bcf57e34fa573cee573
[ "Apache-2.0" ]
null
null
null
tests/room_test.py
vSLG/matrix-nio
e408334c5db061e01fe89bcf57e34fa573cee573
[ "Apache-2.0" ]
null
null
null
import pytest from helpers import faker from nio.events import (InviteAliasEvent, InviteMemberEvent, InviteNameEvent, RoomAvatarEvent, RoomCreateEvent, RoomGuestAccessEvent, RoomHistoryVisibilityEvent, RoomJoinRulesEvent, R...
34.116239
108
0.587133
74e712632d164dfcff5edf7a2dd99ac636337f61
1,084
py
Python
ch15/rw_visual.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
ch15/rw_visual.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
ch15/rw_visual.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from random_walk import RandomWalk # As long as the program is active, it constantly simulates random walking while True: # Create a RandomWalk instance # rw = RandomWalk() rw = RandomWalk(50_000) rw.fill_walk() # Draw all points plt.style.use('classic') #...
31.882353
103
0.666052
7c1066a8be8448e719fb7ba84c328229762f3a68
1,790
py
Python
project/common.py
drdtr/udacity-data-analyst-project-2-introduction-to-data-analysis
cf598dc90ec6bfab4582471e3fa0aac05c6ef6c1
[ "MIT" ]
null
null
null
project/common.py
drdtr/udacity-data-analyst-project-2-introduction-to-data-analysis
cf598dc90ec6bfab4582471e3fa0aac05c6ef6c1
[ "MIT" ]
null
null
null
project/common.py
drdtr/udacity-data-analyst-project-2-introduction-to-data-analysis
cf598dc90ec6bfab4582471e3fa0aac05c6ef6c1
[ "MIT" ]
null
null
null
resources_folder = "../resources/project" output_folder = "../output/project" the_year = 2018 """We are going to analyze data sets for the year 2018.""" def get_declared_class_attributes(clazz): return dict(filter(lambda e: not e[0].startswith("__"), clazz.__dict__.items())) def print_declared_class_attribut...
27.121212
84
0.685475
bbadcdd93fc6f31d48f4629d4336c74353c44853
461
py
Python
remote/labml_remote/util/__init__.py
elgalu/labml
511f0bbfcbeb4bc34bc6966a3973ff4e7e48eeee
[ "MIT" ]
463
2021-05-28T03:21:14.000Z
2022-03-28T06:28:21.000Z
remote/labml_remote/util/__init__.py
elgalu/labml
511f0bbfcbeb4bc34bc6966a3973ff4e7e48eeee
[ "MIT" ]
15
2021-06-22T10:02:36.000Z
2021-12-20T06:14:12.000Z
remote/labml_remote/util/__init__.py
elgalu/labml
511f0bbfcbeb4bc34bc6966a3973ff4e7e48eeee
[ "MIT" ]
29
2020-06-03T07:13:31.000Z
2021-05-23T18:20:34.000Z
from pathlib import Path from typing import Dict def template(file: Path, replace: Dict[str, str]): with open(str(file), 'r') as f: content = f.read() for k, v in replace.items(): content = content.replace(f'%%{k.upper()}%%', v) return content def get_env_vars(env_vars: Dict[str...
24.263158
62
0.596529
557464e7fefa9ef6cb3b3dcd58a6d93031b5678b
4,491
py
Python
murano-7.0.0/murano/tests/unit/engine/system/test_net_explorer.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
murano-7.0.0/murano/tests/unit/engine/system/test_net_explorer.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
murano-7.0.0/murano/tests/unit/engine/system/test_net_explorer.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright (c) 2016 AT&T # # 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, soft...
45.363636
78
0.706524
d7cc0454a9b709ed98662b2484ce946a362fab8e
9,275
py
Python
netforce_mfg/netforce_mfg/models/production_plan.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
27
2015-09-30T23:53:30.000Z
2021-06-07T04:56:25.000Z
netforce_mfg/netforce_mfg/models/production_plan.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
191
2015-10-08T11:46:30.000Z
2019-11-14T02:24:36.000Z
netforce_mfg/netforce_mfg/models/production_plan.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
32
2015-10-01T03:59:43.000Z
2022-01-13T07:31:05.000Z
# Copyright (c) 2012-2015 Netforce Co. Ltd. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
48.307292
228
0.575633
a0a3fa75e1deb1c6ee5834ed180d040438ecae7d
2,163
py
Python
trackeddy_utils/access_om2/pandas_fields/pandas_model.py
Josue-Martinez-Moreno/phd_source
add2aa0ff3e8fc4596d4dc9504e2b80c3d42a3e5
[ "MIT" ]
2
2021-07-28T14:28:36.000Z
2022-01-26T06:37:51.000Z
trackeddy_utils/access_om2/pandas_fields/pandas_model.py
josuemtzmo/phd_source
add2aa0ff3e8fc4596d4dc9504e2b80c3d42a3e5
[ "MIT" ]
null
null
null
trackeddy_utils/access_om2/pandas_fields/pandas_model.py
josuemtzmo/phd_source
add2aa0ff3e8fc4596d4dc9504e2b80c3d42a3e5
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use('agg') import sys from netCDF4 import Dataset import os os.environ["PROJ_LIB"] = "/g/data/v45/jm5970/env/track_env/share/proj" import cmocean as cm from trackeddy.tracking import * from trackeddy.datastruct import * from trackeddy.geometryfunc import * from trackeddy.physics import * fr...
34.887097
117
0.763292
11095c4b29353869e471d4443b6819010c70a1fb
1,032
py
Python
tests/rke_etcd_backup_restore/test.py
trilioData/tvk-interop-plugins
dab12a297f2dc728e5bdc91051b22e68019dac1b
[ "RSA-MD" ]
null
null
null
tests/rke_etcd_backup_restore/test.py
trilioData/tvk-interop-plugins
dab12a297f2dc728e5bdc91051b22e68019dac1b
[ "RSA-MD" ]
null
null
null
tests/rke_etcd_backup_restore/test.py
trilioData/tvk-interop-plugins
dab12a297f2dc728e5bdc91051b22e68019dac1b
[ "RSA-MD" ]
null
null
null
import pytest import sys import os import io sys.path.append(f"{os.getcwd()}/internal/utils") import util as rke sys.path.append(f"{os.getcwd()}/tools/rke_etcd_backup_plugin") def test_backup(config_param): ret_val = rke.run( f"sudo python3 tools/rke_etcd_backup_plugin/rke-etcd-backup-restore.py -backup --...
54.315789
322
0.723837
33e703bc9e1f85b9812b70cffb61e8f0dd56b4f5
47
py
Python
truetool/command_line.py
truecharts/truetool
e487c84139b70f868499892cdf308e31d48a8be9
[ "BSD-3-Clause" ]
12
2022-01-20T03:37:56.000Z
2022-03-17T21:51:06.000Z
truetool/command_line.py
truecharts/truetool
e487c84139b70f868499892cdf308e31d48a8be9
[ "BSD-3-Clause" ]
2
2022-02-03T10:06:37.000Z
2022-02-18T08:58:11.000Z
truetool/command_line.py
truecharts/truetool
e487c84139b70f868499892cdf308e31d48a8be9
[ "BSD-3-Clause" ]
null
null
null
import truetool def main(): truetool.run()
11.75
18
0.680851
b06c1f045862d26ced051802da48bd6a740baa59
533
py
Python
test/functions/decl9.py
kylebarron/MagicPython
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
[ "MIT" ]
1,482
2015-10-16T21:59:32.000Z
2022-03-30T11:44:40.000Z
test/functions/decl9.py
kylebarron/MagicPython
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
[ "MIT" ]
226
2015-10-15T15:53:44.000Z
2022-03-25T03:08:27.000Z
test/functions/decl9.py
kylebarron/MagicPython
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
[ "MIT" ]
129
2015-10-20T02:41:49.000Z
2022-03-22T01:44:36.000Z
cdef foo(): pass cdef : source.python : source.python foo : meta.function-call.generic.python, meta.function-call.python, source.python ( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python ) : meta.function-call.python, p...
41
103
0.652908
d08a27a470dcd119d4c57af3f6fffa0144b9059c
22,191
py
Python
integration/combination/test_api_with_authorizers.py
huanjiayang-ibm/serverless-application-model
153ad4393435b64d84803d805b40366f3172e459
[ "Apache-2.0" ]
1,279
2020-08-25T03:33:15.000Z
2022-03-31T09:49:22.000Z
integration/combination/test_api_with_authorizers.py
huanjiayang-ibm/serverless-application-model
153ad4393435b64d84803d805b40366f3172e459
[ "Apache-2.0" ]
797
2020-08-24T23:30:05.000Z
2022-03-31T22:28:29.000Z
integration/combination/test_api_with_authorizers.py
huanjiayang-ibm/serverless-application-model
153ad4393435b64d84803d805b40366f3172e459
[ "Apache-2.0" ]
431
2020-08-27T20:47:26.000Z
2022-03-31T23:57:55.000Z
import requests from integration.helpers.base_test import BaseTest from integration.helpers.deployer.utils.retry import retry from integration.helpers.exception import StatusCodeError class TestApiWithAuthorizers(BaseTest): def test_authorizers_min(self): self.create_and_verify_stack("combination/api_wit...
46.23125
201
0.680186
a740c389f4de2cb982536b4444a6f5fdfc5248f2
10,017
py
Python
nibabies/utils/bids.py
mgxd/nibabies
4ae099af626b770142c9f2ced97c1436d17cae07
[ "Apache-2.0" ]
1
2022-02-09T18:42:56.000Z
2022-02-09T18:42:56.000Z
nibabies/utils/bids.py
mgxd/nibabies
4ae099af626b770142c9f2ced97c1436d17cae07
[ "Apache-2.0" ]
null
null
null
nibabies/utils/bids.py
mgxd/nibabies
4ae099af626b770142c9f2ced97c1436d17cae07
[ "Apache-2.0" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Utilities to handle BIDS inputs.""" import os import json from pathlib import Path import sys def write_bidsignore(deriv_dir): # TODO: Port to niworkflows bids_ignore = ( "*.html", "lo...
36.162455
98
0.585505
b562638674708fded17ed0525230c7cf90180abb
948
py
Python
2020/day13.py
tobeannouncd/AdventOfCode
b4fe6e9b10a0dc191429a90ab351806df03bca10
[ "MIT" ]
null
null
null
2020/day13.py
tobeannouncd/AdventOfCode
b4fe6e9b10a0dc191429a90ab351806df03bca10
[ "MIT" ]
null
null
null
2020/day13.py
tobeannouncd/AdventOfCode
b4fe6e9b10a0dc191429a90ab351806df03bca10
[ "MIT" ]
null
null
null
from math import ceil, lcm import advent def main(): data = advent.get_input(2020, 13).splitlines() print(part_one(data)) print(part_two(data)) def parse(data): first_departure = int(data[0]) buses = {} for i, x in enumerate(data[1].split(',')): if x.isnumeric(): buses...
19.75
54
0.583333
7a95de7b7515066ca2411ef8cb15369cc3e3303a
574
py
Python
StreamPlayer.py
sbamamoto/raspiradio
f0ff608554c30c18e67fe79031328f26cf6fd010
[ "MIT" ]
null
null
null
StreamPlayer.py
sbamamoto/raspiradio
f0ff608554c30c18e67fe79031328f26cf6fd010
[ "MIT" ]
null
null
null
StreamPlayer.py
sbamamoto/raspiradio
f0ff608554c30c18e67fe79031328f26cf6fd010
[ "MIT" ]
null
null
null
#Using a process in a subclass Chapter 3: Process Based #Parallelism import multiprocessing import subprocess import os class StreamPlayer(): def __init__(self, station): (type,url) = station print "************** Now Playing: %s"%url if type == "STREAM": self.processHandle = ...
26.090909
81
0.611498
4c8b02312ff9e0e70808b4412bd603964b233d6c
12,709
py
Python
code/python/FundsAPIforDigitalPortals/v2/fds/sdk/FundsAPIforDigitalPortals/model/inline_response2005_data_share_class_fee_management.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/FundsAPIforDigitalPortals/v2/fds/sdk/FundsAPIforDigitalPortals/model/inline_response2005_data_share_class_fee_management.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/FundsAPIforDigitalPortals/v2/fds/sdk/FundsAPIforDigitalPortals/model/inline_response2005_data_share_class_fee_management.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Funds API For Digital Portals Search for mutual funds and ETFs using one single consolidated API, including a criteria-based screener. The API provides also base data, key figures, and holdings. A separate endpoint returns the possible values and value range for the parameters that the endpoint /fund/nota...
48.507634
1,125
0.607522
169bf3fed14ff0f475b7b024c20fa4eecef8a45f
4,138
py
Python
designs/search.py
amindelavar/kimia-dict-pygtk
1b68bd48c6b55f7561f02e50ae6069f289566837
[ "MIT" ]
2
2019-06-27T05:00:07.000Z
2019-06-27T05:00:07.000Z
designs/search.py
amindelavar/kimia-dict-pygtk
1b68bd48c6b55f7561f02e50ae6069f289566837
[ "MIT" ]
null
null
null
designs/search.py
amindelavar/kimia-dict-pygtk
1b68bd48c6b55f7561f02e50ae6069f289566837
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from gi.repository import Gtk, Gdk from modules import _global as glob import gi gi.require_version('Gtk', '3.0') from modules import models # ----------------------------------------- # =>global vars SearchTxt = Gtk.Entry() SearchBtn = None content = None # =>a class for handling input and but...
37.618182
93
0.536491
80eb0dfb990d27ccbfeb352fd30b04bdb16230cf
7,877
py
Python
heat_dashboard/test/test_data/neutron_data.py
efenfauzi/heat-dashboard
e1e9fc853b72c2770ba041c0ac1151b4c9484f36
[ "Apache-2.0" ]
13
2017-10-31T10:35:14.000Z
2020-10-28T03:23:04.000Z
heat_dashboard/test/test_data/neutron_data.py
efenfauzi/heat-dashboard
e1e9fc853b72c2770ba041c0ac1151b4c9484f36
[ "Apache-2.0" ]
3
2019-11-01T13:03:10.000Z
2019-12-06T17:33:03.000Z
heat_dashboard/test/test_data/neutron_data.py
openstack/heat-dashboard
8704da6f4a6d8f6f64be2d72af49f0ea44d7b900
[ "Apache-2.0" ]
13
2017-12-21T08:33:23.000Z
2021-01-18T14:26:22.000Z
# Copyright 2012 Nebula, 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...
39.984772
78
0.548813
bba7b2c99c732d273ee5b58749307b07babb32c7
3,575
py
Python
sdk/python/pulumi_azure_native/sql/v20200801preview/get_server_dns_alias.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/sql/v20200801preview/get_server_dns_alias.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/sql/v20200801preview/get_server_dns_alias.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
33.101852
171
0.645315
877c170273c6363d9c725f85aafe848195fd8df6
928
py
Python
aries_cloudagent/indy/sdk/models/schema.py
SmartLoan/smartloan-cloud-agent
3d1e4b506f02e25bdece194240110c71b1786911
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/indy/sdk/models/schema.py
SmartLoan/smartloan-cloud-agent
3d1e4b506f02e25bdece194240110c71b1786911
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/indy/sdk/models/schema.py
SmartLoan/smartloan-cloud-agent
3d1e4b506f02e25bdece194240110c71b1786911
[ "Apache-2.0" ]
1
2022-02-02T17:05:27.000Z
2022-02-02T17:05:27.000Z
"""Schema artifacts.""" from marshmallow import fields from ....messaging.models.openapi import OpenAPISchema from ....messaging.valid import INDY_SCHEMA_ID, INDY_VERSION, NATURAL_NUM class SchemaSchema(OpenAPISchema): """Marshmallow schema for indy schema.""" ver = fields.Str(description="Node protocol ve...
33.142857
88
0.674569
c398ffe1c5c3c4965a040517e6ce03a5d021f495
943
py
Python
code/Site/routes.py
jbassen/oars
7b560bf2ce9f2c4026ebf77a1df35da6b1f28ea4
[ "MIT" ]
3
2018-06-28T15:56:29.000Z
2021-04-14T07:21:30.000Z
code/Site/routes.py
jbassen/oars
7b560bf2ce9f2c4026ebf77a1df35da6b1f28ea4
[ "MIT" ]
null
null
null
code/Site/routes.py
jbassen/oars
7b560bf2ce9f2c4026ebf77a1df35da6b1f28ea4
[ "MIT" ]
null
null
null
# Copyright (c) 2017 Jonathan Bassen, Stanford University from activity_text import ActivityTextHandler from course import CourseHandler from home import HomeHandler from login import LagunitaLoginHandler from login import SUClassLoginHandler from login import LogoutHandler from mapping import MappingHandler from modu...
32.517241
57
0.676564
8616f4947af3fd73b13efdd3b945b5001c7d22f4
96
py
Python
venv/lib/python3.8/site-packages/future/builtins/newsuper.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/future/builtins/newsuper.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/future/builtins/newsuper.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/2e/68/94/43f7fa3570c8cfabfab033e4a135a5fb665c732ecfa597d0298b6c71a7
96
96
0.895833
824153370074be0fb611d66019e19b92fe45d51f
5,392
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_usage_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_usage_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_usage_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 may ...
45.310924
134
0.652448
3104f4cdf24766a61e021fd8c9b4915848c690c0
2,648
py
Python
cogs/misc.py
LoganHaug/reminder-bot
1bb1853b79e0299240a214e947e8bc29ed34e46e
[ "MIT" ]
2
2021-01-02T04:30:54.000Z
2021-01-02T04:30:54.000Z
cogs/misc.py
LoganHaug/reminder-bot
1bb1853b79e0299240a214e947e8bc29ed34e46e
[ "MIT" ]
8
2021-01-02T02:06:04.000Z
2021-03-15T06:05:50.000Z
cogs/misc.py
LoganHaug/reminder-bot
1bb1853b79e0299240a214e947e8bc29ed34e46e
[ "MIT" ]
2
2021-01-02T01:50:06.000Z
2021-01-02T20:02:58.000Z
import discord from discord.ext import commands from PIL import Image import database import utils class Misc(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(aliases=["p"]) async def ping(self, ctx): await ctx.send( embed=utils.generate_embed("Pong", ...
32.292683
86
0.556269
af8228dcc4cd0d61b4b5a8f93314cc24cff58d28
1,298
py
Python
backend/api/routes/lent.py
Mozzo1000/loan-tracker
7d2c197c83caf93abc9481606a38c860f6ff633a
[ "Apache-2.0" ]
null
null
null
backend/api/routes/lent.py
Mozzo1000/loan-tracker
7d2c197c83caf93abc9481606a38c860f6ff633a
[ "Apache-2.0" ]
2
2021-07-24T12:31:49.000Z
2021-08-01T14:11:31.000Z
backend/api/routes/lent.py
Mozzo1000/loan-tracker
7d2c197c83caf93abc9481606a38c860f6ff633a
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint, request, jsonify, abort from flask_jwt_extended import (jwt_required, get_jwt_identity, get_jwt) from models import Lent, LentSchema, User lent = Blueprint('lent', __name__) @lent.route('/lent', methods=['GET']) @jwt_required() def get_all_lents(): lent_schema = LentSchema(many=Tr...
38.176471
100
0.662558
7955e6f7f5f0f71a29b8b421612179b90055e71d
4,847
py
Python
tests/pipelines/test_optuna.py
gr33n-made/catalyst
bd413abc908ef7cbdeab42b0e805277a791e3ddb
[ "Apache-2.0" ]
1
2021-09-29T20:30:50.000Z
2021-09-29T20:30:50.000Z
tests/pipelines/test_optuna.py
gr33n-made/catalyst
bd413abc908ef7cbdeab42b0e805277a791e3ddb
[ "Apache-2.0" ]
null
null
null
tests/pipelines/test_optuna.py
gr33n-made/catalyst
bd413abc908ef7cbdeab42b0e805277a791e3ddb
[ "Apache-2.0" ]
null
null
null
# flake8: noqa import os from tempfile import TemporaryDirectory from pytest import mark import torch from torch import nn from torch.utils.data import DataLoader from catalyst import dl from catalyst.contrib.datasets import MNIST from catalyst.data import ToTensor from catalyst.settings import IS_CUDA_AVAILABLE, NU...
28.85119
96
0.63008
d886b895cc9f258cf5151dbc124a51aaaa2ae04c
6,077
py
Python
WaffenPicker.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
WaffenPicker.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
WaffenPicker.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 5 16:45:34 2017 @author: Aeolitus """ import CharakterWaffen from PyQt5 import QtCore, QtWidgets, QtGui from Wolke import Wolke import Objekte import Definitionen import logging class WaffenPicker(object): def __init__(self,waffe=None): super().__init__() ...
40.245033
143
0.577423
91b74d9566be61fdf4b1da3de442cfc6cd0a203b
25,786
py
Python
challenges/movi/movi_b.py
ziyuw/kubric
5957d8113cfb00aa2097352a893f1d0d906d600a
[ "Apache-2.0" ]
null
null
null
challenges/movi/movi_b.py
ziyuw/kubric
5957d8113cfb00aa2097352a893f1d0d906d600a
[ "Apache-2.0" ]
null
null
null
challenges/movi/movi_b.py
ziyuw/kubric
5957d8113cfb00aa2097352a893f1d0d906d600a
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Kubric 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
39.18845
102
0.643334
280f1e56923aabf05fac023d1d9c4302137b5fee
557
bzl
Python
source/bazel/deps/bazel_gazelle/get.bzl
luxe/unilang
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
[ "MIT" ]
33
2019-05-30T07:43:32.000Z
2021-12-30T13:12:32.000Z
source/bazel/deps/bazel_gazelle/get.bzl
luxe/unilang
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
[ "MIT" ]
371
2019-05-16T15:23:50.000Z
2021-09-04T15:45:27.000Z
source/bazel/deps/bazel_gazelle/get.bzl
luxe/unilang
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
[ "MIT" ]
6
2019-08-22T17:37:36.000Z
2020-11-07T07:15:32.000Z
# Do not edit this file directly. # It was auto-generated by: code/programs/reflexivity/reflexive_refresh load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def bazelGazelle(): http_archive( name="bazel_gazelle" , sha256="079e615ddbbcd53a0a730341dfe5d52dcc06771bcf782254eb6fd581e...
34.8125
111
0.72711
29f0e0ba0c22a253b1ab09e9c814815b0f771b30
4,484
py
Python
PROJ/SABR/Helper_Functions/getNonUniformGrid.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
null
null
null
PROJ/SABR/Helper_Functions/getNonUniformGrid.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
null
null
null
PROJ/SABR/Helper_Functions/getNonUniformGrid.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
1
2022-01-07T15:31:45.000Z
2022-01-07T15:31:45.000Z
# Generated with SMOP 0.41-beta try: from smop.libsmop import * except ImportError: raise ImportError('File compiled with `smop3`, please install `smop3` to run it.') from None # getNonUniformGrid.m @function def getNonUniformGrid(m_0=None,lx=None,ux=None,gridMethod=None,center=None,manualPoint=...
37.366667
162
0.510259
eb12fb8102deaf438621d303589488b0e831d774
17,188
py
Python
youtube_dl/extractor/npo.py
builder07/ytdl
2c0a5d50af7ecc7302c813d649ee72dcd457a50a
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/npo.py
builder07/ytdl
2c0a5d50af7ecc7302c813d649ee72dcd457a50a
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/npo.py
builder07/ytdl
2c0a5d50af7ecc7302c813d649ee72dcd457a50a
[ "Unlicense" ]
null
null
null
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( fix_xml_ampersands, parse_duration, qualities, strip_jsonp, unified_strdate, ) class NPOBaseIE(InfoExtractor): def _get_token(self, video_id): token_page = self._download_webpage...
35.149284
111
0.490226
bd2c32ace9dfa9717ebd3eb59134b94b14132f19
20
py
Python
arboretum_project/arboretum/__init__.py
m-libbrecht/django-arboretum
11b97254ed9885b03d25d99188157c3f79a14a4f
[ "MIT" ]
3
2017-03-11T04:25:22.000Z
2021-05-29T01:44:38.000Z
arboretum_project/arboretum/__init__.py
m-libbrecht/django-arboretum
11b97254ed9885b03d25d99188157c3f79a14a4f
[ "MIT" ]
null
null
null
arboretum_project/arboretum/__init__.py
m-libbrecht/django-arboretum
11b97254ed9885b03d25d99188157c3f79a14a4f
[ "MIT" ]
1
2016-10-26T10:44:47.000Z
2016-10-26T10:44:47.000Z
__author__ = 'mark'
10
19
0.7
ce4a14abfa2caa8dd427db1e8cdcf8efcb5a5b4f
732
py
Python
gamefixes/39210.py
0xReki/protonfixes
9aecb37eb82bb238b50b5a8667e03906fb70da99
[ "BSD-2-Clause" ]
null
null
null
gamefixes/39210.py
0xReki/protonfixes
9aecb37eb82bb238b50b5a8667e03906fb70da99
[ "BSD-2-Clause" ]
null
null
null
gamefixes/39210.py
0xReki/protonfixes
9aecb37eb82bb238b50b5a8667e03906fb70da99
[ "BSD-2-Clause" ]
null
null
null
""" Game fix for FFXIV """ #pylint: disable=C0103 from protonfixes import util import os def main(): """ FFXIV add NOSTEAM option. """ # Fixes the startup process. if 'NOSTEAM' in os.environ: util.replace_command('-issteam', '') # Runs XIVLauncher instead of Stock Launch...
33.272727
173
0.668033
0a09d5482561bc297a625d45168ad8067db93e5a
1,203
py
Python
backend/backend/urls.py
Savage-Aim/app
ecb3b7635caba552ded17172c0aa3535b5f3b98b
[ "MIT" ]
null
null
null
backend/backend/urls.py
Savage-Aim/app
ecb3b7635caba552ded17172c0aa3535b5f3b98b
[ "MIT" ]
1
2022-02-07T02:58:14.000Z
2022-02-07T02:58:14.000Z
backend/backend/urls.py
Savage-Aim/app
ecb3b7635caba552ded17172c0aa3535b5f3b98b
[ "MIT" ]
null
null
null
"""backend URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
35.382353
84
0.715711
7fdf1c2aaaa10be467372facd148667e309e2613
567
py
Python
Testing/TestInfra/dashboard.py
ezeasorekene/DevOps
f72478c9ca6295f236f0be87db3052b28d0f567e
[ "MIT" ]
18
2015-03-19T12:50:32.000Z
2021-03-03T18:35:56.000Z
Testing/TestInfra/dashboard.py
ezeasorekene/DevOps
f72478c9ca6295f236f0be87db3052b28d0f567e
[ "MIT" ]
209
2015-01-05T14:28:48.000Z
2020-08-19T18:13:57.000Z
Testing/TestInfra/dashboard.py
AAROC/DevOps
ae5e2edd9248c108fe4f89fe5527010b84956f08
[ "MIT" ]
36
2015-03-05T09:38:17.000Z
2020-06-25T03:44:44.000Z
# Infrastructure tests on grafana dashboards provisioned with # the grafana.yml playbook and grafana role. def test_package(host): assert host.package('grafana').is_installed def test_init(host): file=host.file('/etc/grafana/grafana.ini') assert file.exists assert file.user == 'root' assert file.g...
28.35
63
0.72134
fcb14a203ff747cfaf26e1413369445f3788b61a
699
py
Python
src/betamax/__init__.py
santosh653/betamax
73e601d34d692255d826b2fceec6d9bc8b4c0420
[ "Apache-2.0" ]
226
2017-10-19T20:46:53.000Z
2022-03-11T08:11:10.000Z
src/betamax/__init__.py
santosh653/betamax
73e601d34d692255d826b2fceec6d9bc8b4c0420
[ "Apache-2.0" ]
93
2015-01-01T15:47:33.000Z
2017-10-03T14:15:50.000Z
src/betamax/__init__.py
santosh653/betamax
73e601d34d692255d826b2fceec6d9bc8b4c0420
[ "Apache-2.0" ]
44
2015-03-25T19:42:13.000Z
2017-09-08T17:56:16.000Z
""" betamax. ======= See https://betamax.readthedocs.io/ for documentation. :copyright: (c) 2013-2018 by Ian Stapleton Cordasco :license: Apache 2.0, see LICENSE for more details """ from .decorator import use_cassette from .exceptions import BetamaxError from .matchers import BaseMatcher from .recorder import Bet...
25.888889
70
0.745351
e8427068f7b5d23ea9b411087739b5bd2b557538
9,972
py
Python
src/windows.py
deepansh27/pylyrics
53e087701c86f910fd309f479596c489ccecc7d6
[ "Unlicense" ]
219
2017-03-11T16:12:08.000Z
2022-03-06T06:26:03.000Z
src/windows.py
adrianstaniec/Instant-Lyrics
29e2a817fee3853a6a0f0bdc825145fd4004d1e1
[ "Unlicense" ]
18
2017-03-12T18:32:55.000Z
2019-05-10T17:33:30.000Z
src/windows.py
adrianstaniec/Instant-Lyrics
29e2a817fee3853a6a0f0bdc825145fd4004d1e1
[ "Unlicense" ]
47
2017-03-12T06:37:57.000Z
2021-03-03T23:52:50.000Z
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Gdk import dbus import threading try: import configparser except ImportError: import ConfigParser as configparser from src.lyrics import get_lyrics from src.settings import CONFIG_PATH from . import utils class LyricsWindow(Gtk.Window)...
34.745645
86
0.609206
1ab08164cdfbe01d6947c877830b567cd42b34ce
2,651
py
Python
Task 1 - Insurance Selling/Code/Task1_SVM.py
AndesPooh258/Data-Mining-Project
5fc3fc7bf156a9bf7e3aaf7674dcdc2d97d9a882
[ "FTL" ]
null
null
null
Task 1 - Insurance Selling/Code/Task1_SVM.py
AndesPooh258/Data-Mining-Project
5fc3fc7bf156a9bf7e3aaf7674dcdc2d97d9a882
[ "FTL" ]
null
null
null
Task 1 - Insurance Selling/Code/Task1_SVM.py
AndesPooh258/Data-Mining-Project
5fc3fc7bf156a9bf7e3aaf7674dcdc2d97d9a882
[ "FTL" ]
null
null
null
import pandas as pd from sklearn import preprocessing from sklearn.svm import SVC import evaluateTask1 # import csv data data = pd.read_csv('insurance-train.csv') data_test = pd.read_csv('insurance-test.csv') df = pd.DataFrame(data) # translate data df.loc[df["Gender"]=="Male", "Gender"] = 0 df.loc[df["Ge...
38.985294
165
0.683138
eaeb9f0108ae40decbb65ba725a849e3308a52b3
1,463
py
Python
util.py
kex5n/Vehicles-Dispatch-Simulator
d0cca03fbf56e4b0ceeef8dafc59de105c1d4507
[ "MIT" ]
null
null
null
util.py
kex5n/Vehicles-Dispatch-Simulator
d0cca03fbf56e4b0ceeef8dafc59de105c1d4507
[ "MIT" ]
null
null
null
util.py
kex5n/Vehicles-Dispatch-Simulator
d0cca03fbf56e4b0ceeef8dafc59de105c1d4507
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from math import asin, cos, radians, sin, sqrt import numpy as np from domain.demand_prediction_mode import DemandPredictionMode def haversine(lon1, lat1, lon2, lat2) -> float: """ Calculate the great circle distance between two points on the earth (specified in ...
29.857143
78
0.62201
e1ad132cb0a16089030d6195dfa234895682e29e
13,372
py
Python
train.py
hanskrupakar/MRI-tumor-segmentation-Brats
5a1a51b159a556261cd485db45f4d705974c86f4
[ "MIT" ]
null
null
null
train.py
hanskrupakar/MRI-tumor-segmentation-Brats
5a1a51b159a556261cd485db45f4d705974c86f4
[ "MIT" ]
null
null
null
train.py
hanskrupakar/MRI-tumor-segmentation-Brats
5a1a51b159a556261cd485db45f4d705974c86f4
[ "MIT" ]
null
null
null
import numpy as np import tf_models from sklearn.preprocessing import scale import tensorflow as tf from tensorflow.keras.backend import learning_phase from tensorflow.keras.layers import concatenate, Conv3D from nibabel import load as load_nii import os import argparse import keras import glob import Queue from thread...
43.842623
153
0.593703
ef8b8fd9295666163502df96cd6cb6f1f43c6a39
1,256
py
Python
src/mods/netdata.py
8cylinder/boss
b57df6c1bb6064bfb5ad92313d88854281c0f18e
[ "MIT" ]
null
null
null
src/mods/netdata.py
8cylinder/boss
b57df6c1bb6064bfb5ad92313d88854281c0f18e
[ "MIT" ]
null
null
null
src/mods/netdata.py
8cylinder/boss
b57df6c1bb6064bfb5ad92313d88854281c0f18e
[ "MIT" ]
null
null
null
# run-shell-command :: ../../build.bash from bash import Bash from dist import Dist from errors import * class Netdata(Bash): """Netdata server monitoring""" # https://github.com/firehol/netdata # https://github.com/firehol/netdata/wiki/Running-behind-apache # https://www.digitalocean.com/community/t...
36.941176
130
0.640924
e5ec8ed4b86fc05342213514ee84cfff94490777
1,159
py
Python
text-output.py
ruozhou/UConnGCMSPy
bb56639d097bf6b819a8979f014fb4a4c0c9cc31
[ "MIT" ]
1
2021-07-17T22:04:47.000Z
2021-07-17T22:04:47.000Z
text-output.py
UCONN-CDL/UConnGCMSPy
bb56639d097bf6b819a8979f014fb4a4c0c9cc31
[ "MIT" ]
null
null
null
text-output.py
UCONN-CDL/UConnGCMSPy
bb56639d097bf6b819a8979f014fb4a4c0c9cc31
[ "MIT" ]
null
null
null
""" Simple script to convert HDF files to text output Authors ------- Bryan Webber, Nick Curtis 2017 """ # coding: utf-8 from netCDF4 import Dataset import os import numpy as np delt = 0.17 t0 = 2.4*60 # find directories to check starting from cwd dirs = next(os.walk('.'))[1] for d in dirs: files = os.listdir(...
27.595238
69
0.578947
f2cffaf612449d34dc4ed151bb9d7cae6c0a2976
26,727
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_06_01/aio/operations/_route_filter_rules_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_06_01/aio/operations/_route_filter_rules_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_06_01/aio/operations/_route_filter_rules_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# 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 may ...
49.402957
221
0.671755
3af235152c3918354ae71d060e10f503673cdef2
2,773
py
Python
76_Russian_Roulette/python/russianroulette.py
uMetalooper/basic-computer-games
b31c624703e5d4476a39a215183b667df348ac2e
[ "Unlicense" ]
1
2022-03-24T17:56:31.000Z
2022-03-24T17:56:31.000Z
76_Russian_Roulette/python/russianroulette.py
uMetalooper/basic-computer-games
b31c624703e5d4476a39a215183b667df348ac2e
[ "Unlicense" ]
1
2022-03-24T20:16:26.000Z
2022-03-24T20:16:26.000Z
76_Russian_Roulette/python/russianroulette.py
uMetalooper/basic-computer-games
b31c624703e5d4476a39a215183b667df348ac2e
[ "Unlicense" ]
1
2022-03-11T14:14:06.000Z
2022-03-11T14:14:06.000Z
######################################################## # # Russian Roulette # # From Basic Computer Games (1978) # # In this game, you are given by the computer a # revolver loaded with one bullet and five empty # chambers. You spin the chamber and pull the trigger # by inputting a "1", or, if you want to qu...
29.189474
72
0.51749
dc1e240e9950e678b53ebb4083252f7bfbdd5195
1,891
py
Python
setup.py
dstansby/reproject
4beeba733ca61930c1ecf339905589ec91176d4e
[ "BSD-3-Clause" ]
null
null
null
setup.py
dstansby/reproject
4beeba733ca61930c1ecf339905589ec91176d4e
[ "BSD-3-Clause" ]
null
null
null
setup.py
dstansby/reproject
4beeba733ca61930c1ecf339905589ec91176d4e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst import os import sys import builtins # Append current working directory for pip 19 sys.path.append(os.path.abspath(".")) import ah_bootstrap # noqa from setuptools import setup from setuptools.config import read_configuration fr...
38.591837
88
0.787943
ff46a61db1c874e1cf050167b0bebeed24bea5f9
945
py
Python
kubernetes/test/test_v1_storage_class.py
scele/kubernetes-client-python
9e982cbdb5f19dc1a3935a75bdd92288f3b807fb
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_storage_class.py
scele/kubernetes-client-python
9e982cbdb5f19dc1a3935a75bdd92288f3b807fb
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_storage_class.py
scele/kubernetes-client-python
9e982cbdb5f19dc1a3935a75bdd92288f3b807fb
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
21
105
0.703704
912d83ab7f67fd06d0a0f4d878eb67a0d6294459
3,021
py
Python
webscrape.py
Ashton-Sidhu/webscraper
44e25b0d51aa931863a4f2f4a298b8847cc20d8e
[ "BSD-3-Clause" ]
null
null
null
webscrape.py
Ashton-Sidhu/webscraper
44e25b0d51aa931863a4f2f4a298b8847cc20d8e
[ "BSD-3-Clause" ]
null
null
null
webscrape.py
Ashton-Sidhu/webscraper
44e25b0d51aa931863a4f2f4a298b8847cc20d8e
[ "BSD-3-Clause" ]
null
null
null
import asyncio import re from contextlib import closing import click from bs4 import BeautifulSoup, Comment, Tag from requests import get from requests.exceptions import RequestException MENU_CHECK = ['sidebar', 'menu', 'dropdown', 'mail', 'social'] @click.command() @click.option('-o', '--output-file', help='Name an...
30.21
106
0.558093
940e2518b313ddde39879fad0fdeb4ef54e3a096
1,446
py
Python
knowledge_neurons/__init__.py
jmerizia/knowledge-neurons
be1a84adafd6e973ab0ee012527ac1988632a5e8
[ "MIT" ]
68
2021-08-01T22:12:34.000Z
2022-02-16T19:57:58.000Z
knowledge_neurons/__init__.py
jmerizia/knowledge-neurons
be1a84adafd6e973ab0ee012527ac1988632a5e8
[ "MIT" ]
2
2021-11-14T16:35:56.000Z
2021-12-03T05:06:37.000Z
knowledge_neurons/__init__.py
jmerizia/knowledge-neurons
be1a84adafd6e973ab0ee012527ac1988632a5e8
[ "MIT" ]
5
2021-08-06T04:04:40.000Z
2022-02-09T20:16:49.000Z
from transformers import ( BertTokenizer, BertLMHeadModel, GPT2Tokenizer, GPT2LMHeadModel, GPTNeoForCausalLM, ) from .knowledge_neurons import KnowledgeNeurons from .data import pararel, pararel_expanded, PARAREL_RELATION_NAMES BERT_MODELS = ["bert-base-uncased", "bert-base-multilingual-uncased"] G...
30.125
69
0.726833
bdefbe677275b319c6563425a04f8d56409273af
15,140
py
Python
python/sdk/client/models/version_endpoint.py
karzuo/merlin
bdbdac35071d81beb1b8b5b807697bf2eac69a40
[ "Apache-2.0" ]
1
2021-12-26T09:04:12.000Z
2021-12-26T09:04:12.000Z
python/sdk/client/models/version_endpoint.py
ibnummuhammad/merlin
acf10a350bcacfdfe67f7020d535467b71ff1d89
[ "Apache-2.0" ]
null
null
null
python/sdk/client/models/version_endpoint.py
ibnummuhammad/merlin
acf10a350bcacfdfe67f7020d535467b71ff1d89
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Merlin API Guide for accessing Merlin's model management, deployment, and serving functionalities # noqa: E501 OpenAPI spec version: 0.14.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from client.c...
28.037037
352
0.607067
70d770e7d43a8dd88c876b64fffeab1fc90bd7ad
5,179
py
Python
reader.py
joostkremers/pymal
35831c985abea69f114b1ab3fa968d420b084618
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
reader.py
joostkremers/pymal
35831c985abea69f114b1ab3fa968d420b084618
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
reader.py
joostkremers/pymal
35831c985abea69f114b1ab3fa968d420b084618
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# coding=utf-8 import re import mal_types as mal class Reader: """A Reader object for storing a list of tokens and an index into that list. """ def __init__(self, tokens): self.tokens = tokens self.position = 0 def next(self): """Return the current token and increment the in...
26.156566
80
0.556478
cbaeb4dc72bf61b5cb27bfdad598a1db4181d2c1
2,639
py
Python
pymanopt/manifolds/complex_circle.py
NoemieJaquier/pymanopt
f3ae54b5ebc648a193e64acdb75c97885391c3d7
[ "BSD-3-Clause" ]
459
2016-02-18T18:53:30.000Z
2022-03-30T07:28:53.000Z
pymanopt/manifolds/complex_circle.py
NoemieJaquier/pymanopt
f3ae54b5ebc648a193e64acdb75c97885391c3d7
[ "BSD-3-Clause" ]
131
2016-02-19T16:17:44.000Z
2022-03-21T09:27:11.000Z
pymanopt/manifolds/complex_circle.py
NoemieJaquier/pymanopt
f3ae54b5ebc648a193e64acdb75c97885391c3d7
[ "BSD-3-Clause" ]
127
2016-03-11T18:47:15.000Z
2022-03-11T06:07:37.000Z
import numpy as np import numpy.linalg as la import numpy.random as rnd from pymanopt.manifolds.manifold import EuclideanEmbeddedSubmanifold class ComplexCircle(EuclideanEmbeddedSubmanifold): """ The manifold of complex numbers with unit-modulus. Description of vectors z in C^n (complex) such that each ...
28.684783
79
0.591891
715b0f19b84e255b22a6cd394870a0d73c8dbed0
10,790
py
Python
bess_of_agent.py
krsna1729/twink
6c2f1546bc2a8b1574e37e27676ef4d7a853b4bf
[ "Apache-2.0" ]
1
2016-06-01T21:25:01.000Z
2016-06-01T21:25:01.000Z
bess_of_agent.py
krsna1729/twink
6c2f1546bc2a8b1574e37e27676ef4d7a853b4bf
[ "Apache-2.0" ]
null
null
null
bess_of_agent.py
krsna1729/twink
6c2f1546bc2a8b1574e37e27676ef4d7a853b4bf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import twink from twink.ofp4 import * import twink.ofp4.build as b import twink.ofp4.parse as p import twink.ofp4.oxm as oxm import threading import binascii import logging import zerorpc import signal import socket import errno import time import sys import os from collections import namedtuple loggi...
34.919094
139
0.590732
2b35182f7e8e2357b7ad572f469ba5a904a6c5e8
34,875
py
Python
lithops/executors.py
gfinol/lithops
e165a78e0facbb70c852d7627a7407e8a8d1b946
[ "Apache-2.0" ]
null
null
null
lithops/executors.py
gfinol/lithops
e165a78e0facbb70c852d7627a7407e8a8d1b946
[ "Apache-2.0" ]
null
null
null
lithops/executors.py
gfinol/lithops
e165a78e0facbb70c852d7627a7407e8a8d1b946
[ "Apache-2.0" ]
null
null
null
# # (C) Copyright IBM Corp. 2020 # (C) Copyright Cloudlab URV 2020 # # 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 ap...
45.948617
114
0.601806
e168e85a11b5aca1b4a003e57e52d24a6a606827
39,515
py
Python
scripts/automation/trex_control_plane/interactive/trex/stl/trex_stl_wlc.py
DhruvamSharma/trex-core
4d1893d839f4c6da4adc3f69ff35fe1cadd81f52
[ "Apache-2.0" ]
null
null
null
scripts/automation/trex_control_plane/interactive/trex/stl/trex_stl_wlc.py
DhruvamSharma/trex-core
4d1893d839f4c6da4adc3f69ff35fe1cadd81f52
[ "Apache-2.0" ]
3
2018-04-25T20:28:49.000Z
2018-07-16T13:45:40.000Z
scripts/automation/trex_control_plane/interactive/trex/stl/trex_stl_wlc.py
mcallaghan-sandvine/trex-core
55fc1ed6d2e3d066e7895321eae233bb0339b722
[ "Apache-2.0" ]
null
null
null
#!/bin/python import base64 import copy from trex.stl.api import * from trex.common.services.trex_service_ap import * from trex.utils import text_tables, parsing_opts from trex.utils.parsing_opts import ArgumentPack, ArgumentGroup, is_valid_file, check_mac_addr, check_ipv4_addr, MUTEX from scapy.contrib.capwap impo...
39.201389
191
0.583854
e7bef06efcfbf42673ab5fed207211953dae56a1
5,385
py
Python
python/tvm/auto_tensorize/policy/transform_policy.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
22
2022-03-18T07:29:31.000Z
2022-03-23T14:54:32.000Z
python/tvm/auto_tensorize/policy/transform_policy.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
null
null
null
python/tvm/auto_tensorize/policy/transform_policy.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
2
2022-03-18T08:26:34.000Z
2022-03-20T06:02:48.000Z
from functools import reduce from ..utils import bi_product import numpy as np from ..tensorization_phases import MappingGenerator, MappingApplier def all_fit(match_results): minimum_padding = -1 chosen_match = None # choose match result according minimum padding for match_result in match_results: ...
37.395833
84
0.594243
bed695ae4944e53b7412e61070e010cfcf8cc0d4
325
py
Python
amy/workshops/signals/__init__.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
42
2019-06-20T16:32:16.000Z
2022-02-02T10:39:38.000Z
amy/workshops/signals/__init__.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
484
2019-06-19T10:45:37.000Z
2022-03-28T10:37:25.000Z
amy/workshops/signals/__init__.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
14
2019-11-04T11:08:24.000Z
2022-03-10T10:06:11.000Z
from django.dispatch import Signal # signal generated when a comment regarding specific object should be saved create_comment_signal = Signal( providing_args=["content_object", "comment", "timestamp"] ) # signal generated when a Person object has been archived person_archived_signal = Signal(providing_args=["perso...
36.111111
75
0.796923
39225cb02af508af668015e6cae20382f81f73a2
2,557
py
Python
owllook/spiders/qidian_ranking.py
zhouinfo/owllook
ed43fc1a63292b3e03806de4a3641ad82de99e99
[ "Apache-2.0" ]
4
2021-09-24T23:49:52.000Z
2021-11-18T10:58:01.000Z
owllook/spiders/qidian_ranking.py
zhouinfo/owllook
ed43fc1a63292b3e03806de4a3641ad82de99e99
[ "Apache-2.0" ]
null
null
null
owllook/spiders/qidian_ranking.py
zhouinfo/owllook
ed43fc1a63292b3e03806de4a3641ad82de99e99
[ "Apache-2.0" ]
1
2021-12-19T14:27:47.000Z
2021-12-19T14:27:47.000Z
#!/usr/bin/env python import time from talonspider import Spider, Item, TextField, AttrField from talonspider.utils import get_random_user_agent from pprint import pprint from owllook.database.mongodb import MotorBase from owllook.utils.tools import async_callback class RankingItem(Item): target_item = TextField...
32.782051
117
0.565115
9e5263f49fb9a68c97d0d59383186109d38f5807
2,898
py
Python
examples/adspygoogle/dfp/v201308/activity_service/get_all_activities.py
cherry-wb/googleads-python-lib
24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04
[ "Apache-2.0" ]
null
null
null
examples/adspygoogle/dfp/v201308/activity_service/get_all_activities.py
cherry-wb/googleads-python-lib
24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04
[ "Apache-2.0" ]
null
null
null
examples/adspygoogle/dfp/v201308/activity_service/get_all_activities.py
cherry-wb/googleads-python-lib
24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04
[ "Apache-2.0" ]
2
2020-04-02T19:00:31.000Z
2020-08-06T03:28:38.000Z
#!/usr/bin/python # # Copyright 2013 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 b...
30.1875
80
0.706004
1cb8d22fd0d95ad0007ba4014a8fe706ff961ba5
8,026
py
Python
webapp/library.py
JoshuaGud777/AppleQuest
640578bf7ffcab35e25a8352b5a72921bf4bc9ae
[ "Apache-2.0" ]
null
null
null
webapp/library.py
JoshuaGud777/AppleQuest
640578bf7ffcab35e25a8352b5a72921bf4bc9ae
[ "Apache-2.0" ]
14
2015-02-14T01:01:46.000Z
2015-03-02T19:46:52.000Z
webapp/library.py
JoshuaGud777/AppleQuest
640578bf7ffcab35e25a8352b5a72921bf4bc9ae
[ "Apache-2.0" ]
null
null
null
'''This is the library files for all used code that needs to be uused multi times''' import binascii import cgi import hashlib import http.cookies import os import sqlite3 import time # Global Variables HTML_DIR = 'html\\' REDIRECT_DIR = 'redirect\\' DB_DIR = 'db17b1a5c2b2f6d370af2c59c885d5db\\' # COOKIE_MAX_AGE = 300...
30.286792
79
0.598804
68ca340a5d7084933c19233d894d6db471755718
9,294
py
Python
pyjobs_web/pyjobsweb/lib/search_query.py
pyjobs/web
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
[ "MIT" ]
8
2016-01-29T13:06:26.000Z
2020-11-02T07:23:57.000Z
pyjobs_web/pyjobsweb/lib/search_query.py
pyjobs/web
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
[ "MIT" ]
18
2016-02-11T08:17:13.000Z
2022-03-02T14:53:38.000Z
pyjobs_web/pyjobsweb/lib/search_query.py
pyjobs/web
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
[ "MIT" ]
5
2016-02-05T08:57:12.000Z
2018-01-15T08:19:43.000Z
# -*- coding: utf-8 -*- import abc class Translatable(object): __metaclass__ = abc.ABCMeta @abc.abstractmethod def translate(self, translator): pass @abc.abstractmethod def __str__(self): return str() class QueryStatement(Translatable): __metaclass__ = abc.ABCMeta class S...
23.953608
79
0.62309
46555e13ae509514ce93fcc326684a750c3d665b
1,967
py
Python
MainInventory.py
marshallbrain/CSC-450-Final-Project
4ddcfbc98835cf03e0d26a672d68ccdb86419ffc
[ "MIT" ]
null
null
null
MainInventory.py
marshallbrain/CSC-450-Final-Project
4ddcfbc98835cf03e0d26a672d68ccdb86419ffc
[ "MIT" ]
null
null
null
MainInventory.py
marshallbrain/CSC-450-Final-Project
4ddcfbc98835cf03e0d26a672d68ccdb86419ffc
[ "MIT" ]
null
null
null
import tkinter as tk import tkinter.ttk as ttk import utility class MainInventory: def __init__(self, main_frame, db): self.tab = ttk.Frame(main_frame) self.col = "id" self.ascending = False self.db = db self.search = "" self.tab.bind("<Visibility>", self.update)...
32.783333
102
0.6182
02f47dadea79576a9f157ac8f16ff4cc069abf71
106
py
Python
verilogparser/__init__.py
sepandhaghighi/verilogparser
8983b8d74fa28605b6a6772c6a02eafa6e6ba213
[ "MIT" ]
13
2017-10-29T15:52:19.000Z
2022-02-06T18:32:20.000Z
verilogparser/__init__.py
sepandhaghighi/verilogparser
8983b8d74fa28605b6a6772c6a02eafa6e6ba213
[ "MIT" ]
null
null
null
verilogparser/__init__.py
sepandhaghighi/verilogparser
8983b8d74fa28605b6a6772c6a02eafa6e6ba213
[ "MIT" ]
4
2020-01-20T07:13:26.000Z
2022-02-06T18:32:59.000Z
# -*- coding: utf-8 -*- from .verilogparser import * from .logics import * from .deductivelogic import *
17.666667
29
0.688679
f8032138ade8afcc9f22d57524345f4e8200d779
4,693
py
Python
inference/klue-nli/dataset.py
OhDasom88/KoreanNLPTaskPractice
57261d194b926eafe9c2215d9290a3a96d7f8b2f
[ "Apache-2.0" ]
18
2021-12-22T09:41:24.000Z
2022-03-19T12:54:30.000Z
inference/klue-nli/dataset.py
OhDasom88/KoreanNLPTaskPractice
57261d194b926eafe9c2215d9290a3a96d7f8b2f
[ "Apache-2.0" ]
null
null
null
inference/klue-nli/dataset.py
OhDasom88/KoreanNLPTaskPractice
57261d194b926eafe9c2215d9290a3a96d7f8b2f
[ "Apache-2.0" ]
4
2021-12-26T11:31:46.000Z
2022-03-28T07:55:45.000Z
import dataclasses import json import logging from dataclasses import dataclass from typing import List, Optional, Union import torch from transformers import PreTrainedTokenizer logger = logging.getLogger(__name__) @dataclass class KlueNliInputExample: """A single training/test example for klue natural languag...
31.92517
119
0.648413
35589e3808d255ac5a1cec9fca740ffa97b3bbf2
331
py
Python
global_finprint/core/management/commands/dropviews.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
null
null
null
global_finprint/core/management/commands/dropviews.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
6
2020-06-05T18:42:32.000Z
2022-01-13T00:48:57.000Z
global_finprint/core/management/commands/dropviews.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand from django.db import connection class Command(BaseCommand): help = 'Drops DB views' def handle(self, *args, **options): with connection.cursor() as cursor: cursor.execute(open('database/drop_views.sql', 'r').read()) print('Views...
27.583333
71
0.676737
018869ef8aa5116e2885ee71abb885c8e431968d
1,141
py
Python
src/VersionControlProvider/Topicer.py
flexiooss/flexio-flow
47491c7e5b49a02dc859028de0d486edc0014b26
[ "Apache-2.0" ]
null
null
null
src/VersionControlProvider/Topicer.py
flexiooss/flexio-flow
47491c7e5b49a02dc859028de0d486edc0014b26
[ "Apache-2.0" ]
44
2019-04-05T06:08:15.000Z
2021-09-13T19:37:49.000Z
src/VersionControlProvider/Topicer.py
flexiooss/flexio-flow
47491c7e5b49a02dc859028de0d486edc0014b26
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import abc from typing import List from Core.ConfigHandler import ConfigHandler from FlexioFlow.StateHandler import StateHandler from VersionControlProvider.DefaultTopic import DefaultTopic from VersionControlProvider.Issue import Issue from VersionControlProvider.Topic import Topic ...
26.534884
83
0.733567
9b760990282cc7392fd40ac53a1f391de0a577ea
9,400
py
Python
readthedocs/organizations/models.py
astrojuanlu/readthedocs.org
939d50541c179476d523613943a286d9a2fdbbd0
[ "MIT" ]
1
2021-07-21T17:16:59.000Z
2021-07-21T17:16:59.000Z
readthedocs/organizations/models.py
astrojuanlu/readthedocs.org
939d50541c179476d523613943a286d9a2fdbbd0
[ "MIT" ]
null
null
null
readthedocs/organizations/models.py
astrojuanlu/readthedocs.org
939d50541c179476d523613943a286d9a2fdbbd0
[ "MIT" ]
null
null
null
"""Organizations models.""" from autoslug import AutoSlugField from django.contrib.auth.models import User from django.db import models from django.urls import reverse from django.utils.crypto import salted_hmac from django.utils.translation import ugettext_lazy as _ from readthedocs.core.permissions import AdminPerm...
26.256983
87
0.602553
effa27fce1366dd633aa61da6a8ab355321a6dc4
8,827
py
Python
src/server_manager/generate_dhcp_template.py
Juniper/contrail-server-manager
61a586495b4819904887b5dccb9288b9cf3d2ad5
[ "Apache-2.0" ]
12
2015-07-28T15:31:51.000Z
2019-03-03T23:39:10.000Z
src/server_manager/generate_dhcp_template.py
Juniper/contrail-server-manager
61a586495b4819904887b5dccb9288b9cf3d2ad5
[ "Apache-2.0" ]
4
2017-01-25T05:24:17.000Z
2019-04-03T00:25:13.000Z
src/server_manager/generate_dhcp_template.py
Juniper/contrail-server-manager
61a586495b4819904887b5dccb9288b9cf3d2ad5
[ "Apache-2.0" ]
33
2015-01-07T10:01:28.000Z
2020-07-26T08:22:53.000Z
#!/usr/bin/python # # Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. # import string import sys import platform import os import pdb import ast import uuid import subprocess from netaddr import * from server_mgr_err import * from server_mgr_utils import * from server_mgr_exception import ServerMgrExcept...
38.545852
134
0.614478
aa72476b54bf6e692bbce7f7694d53aeeaa5618a
9,164
py
Python
rcnn/core/module.py
Xilinx/progressface
f421ba8a83e1a57f78c4eaba5601469bc1dc8771
[ "Apache-2.0", "MIT" ]
null
null
null
rcnn/core/module.py
Xilinx/progressface
f421ba8a83e1a57f78c4eaba5601469bc1dc8771
[ "Apache-2.0", "MIT" ]
null
null
null
rcnn/core/module.py
Xilinx/progressface
f421ba8a83e1a57f78c4eaba5601469bc1dc8771
[ "Apache-2.0", "MIT" ]
1
2022-01-05T01:20:00.000Z
2022-01-05T01:20:00.000Z
# Copyright 2021 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.843478
106
0.670122
34b8d87fc31859a3202ff7466183eea6c60faeaf
10,419
py
Python
salt/modules/pdbedit.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
2
2015-09-21T14:13:30.000Z
2016-02-12T11:33:46.000Z
salt/modules/pdbedit.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
salt/modules/pdbedit.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
1
2020-09-30T16:09:48.000Z
2020-09-30T16:09:48.000Z
# -*- coding: utf-8 -*- ''' Manage accounts in Samba's passdb using pdbedit :maintainer: Jorge Schrauwen <sjorge@blackdot.be> :maturity: new :platform: posix .. versionadded:: nitrogen ''' from __future__ import absolute_import # Import Python libs import logging import hashlib import binascii try: ...
27.203655
104
0.559939
a12c5aa39d598f75cc3cf3df4635266ff86e7b60
1,312
py
Python
econml/tests/test_notebooks.py
ashlili0401/econmic
e2137e20af0f90382c2fcf2db53823b8737124d0
[ "MIT" ]
3
2019-07-12T09:24:53.000Z
2020-04-15T02:50:39.000Z
econml/tests/test_notebooks.py
bquistorff/EconML
73a21bfe3470e7f0d1702a6db71efd0892cfee9d
[ "MIT" ]
null
null
null
econml/tests/test_notebooks.py
bquistorff/EconML
73a21bfe3470e7f0d1702a6db71efd0892cfee9d
[ "MIT" ]
2
2020-02-27T17:03:48.000Z
2021-03-31T20:59:43.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import pytest import html import os import nbformat import nbconvert import traitlets _nbdir = os.path.join(os.path.dirname(__file__), '..', '..', 'notebooks') _notebooks = [path for path in os.listdir(_nbdir) ...
38.588235
95
0.692835
62fa35d7731e79a72b916e960de2ccb39adfb738
1,952
py
Python
hard-gists/4aed548e606f11971f5a/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/4aed548e606f11971f5a/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/4aed548e606f11971f5a/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
from rest_framework import status from rest_framework.authtoken.models import Token from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.generics import ListAPIView from rest_framework.response import Response from rest_framework.reverse import reverse from rest_framework.settings import api_...
35.490909
117
0.797643
61df3b019838b0ed03f95046251512707633772f
1,365
py
Python
arekit/contrib/networks/enum_name_types.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
18
2019-12-14T18:43:11.000Z
2022-03-21T05:55:36.000Z
arekit/contrib/networks/enum_name_types.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
284
2020-08-08T20:52:44.000Z
2022-03-31T05:26:20.000Z
arekit/contrib/networks/enum_name_types.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
1
2021-08-07T13:17:43.000Z
2021-08-07T13:17:43.000Z
from enum import Enum class ModelNames(Enum): CNN = 'cnn' AttEndsCNN = 'att-cnn' AttEndsAndFramesCNN = 'att-ef-cnn' AttSynonymEndsCNN = 'att-se-cnn' AttSynonymEndsPCNN = 'att-se-pcnn' AttSynonymEndsBiLSTM = 'att-se-bilstm' AttSynonymEndsAndFramesCNN = 'att-sef-cnn' AttSynonymEndsAndFr...
27.857143
63
0.679853
077e15058e046084c3683a881b8cc077ca738494
1,066
py
Python
1/version_number_compare.py
IronCore864/leetcode
a62a4cdde9814ae48997176debcaad537f7ad01f
[ "Apache-2.0" ]
4
2018-03-07T02:56:03.000Z
2021-06-15T05:43:31.000Z
1/version_number_compare.py
IronCore864/leetcode
a62a4cdde9814ae48997176debcaad537f7ad01f
[ "Apache-2.0" ]
null
null
null
1/version_number_compare.py
IronCore864/leetcode
a62a4cdde9814ae48997176debcaad537f7ad01f
[ "Apache-2.0" ]
1
2021-09-02T12:05:15.000Z
2021-09-02T12:05:15.000Z
class Solution(object): def compareVersion(self, version1, version2): """ :type version1: str :type version2: str :rtype: int """ version1 = version1.split('.') version2 = version2.split('.') version1 = [int(n) for n in version1] version2 = [in...
27.333333
54
0.400563
c27a71315d8542d6db869616c1dab70b5bd316bf
206
py
Python
abc/abc190/abc190b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc190/abc190b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc190/abc190b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
N, S, D = map(int, input().split()) for _ in range(N): X, Y = map(int, input().split()) if X >= S: continue if Y <= D: continue print('Yes') break else: print('No')
15.846154
36
0.470874
031354d3e3a71a8bc6f18c21a33b8b3e4702e8ac
7,835
py
Python
junk/torchscript_test.py
rtloftin/interactive_agents
f7d57d1421000b2e8a79a9dff179b8fe7c8d3fc0
[ "MIT" ]
null
null
null
junk/torchscript_test.py
rtloftin/interactive_agents
f7d57d1421000b2e8a79a9dff179b8fe7c8d3fc0
[ "MIT" ]
5
2022-03-11T07:58:53.000Z
2022-03-17T12:57:26.000Z
junk/torchscript_test.py
rtloftin/interactive_agents
f7d57d1421000b2e8a79a9dff179b8fe7c8d3fc0
[ "MIT" ]
1
2022-03-11T19:28:53.000Z
2022-03-11T19:28:53.000Z
'''Test the us of TorchScript to export and import of models with graph structure''' from collections import namedtuple import gym from gym.spaces import Discrete, Box import numpy as np import torch import torch.nn as nn from torch.optim import Adam from typing import Union, Tuple, Optional Sample = namedtuple("Step"...
31.34
161
0.608934
3324d5e85232c908b721db1e73dcbd20d2cb0a50
5,365
py
Python
ward/expect.py
jayeshathila/ward
966c3a61dc663b06aebc7d28a9acb9909d4f5810
[ "MIT" ]
null
null
null
ward/expect.py
jayeshathila/ward
966c3a61dc663b06aebc7d28a9acb9909d4f5810
[ "MIT" ]
null
null
null
ward/expect.py
jayeshathila/ward
966c3a61dc663b06aebc7d28a9acb9909d4f5810
[ "MIT" ]
null
null
null
import inspect import types from enum import Enum from typing import Type, Any, ContextManager, TypeVar, Generic, Optional, cast _E = TypeVar("_E", bound=Exception) class raises(Generic[_E], ContextManager["raises[_E]"]): raised: _E def __init__(self, expected_ex_type: Type[_E]): self.expected_ex_ty...
28.089005
97
0.59329
ec545919fdb4cca0e0963df0e81f24becc55be9c
823
py
Python
doc/config_doc.py
omergertel/slash
7dd5710a05822bbbaadc6c6517cefcbaa6397eab
[ "BSD-3-Clause" ]
null
null
null
doc/config_doc.py
omergertel/slash
7dd5710a05822bbbaadc6c6517cefcbaa6397eab
[ "BSD-3-Clause" ]
null
null
null
doc/config_doc.py
omergertel/slash
7dd5710a05822bbbaadc6c6517cefcbaa6397eab
[ "BSD-3-Clause" ]
null
null
null
from docutils.parsers.rst import directives, Directive from docutils import nodes from slash.conf import config class ConfigDoc(Directive): required_arguments = 0 optional_arguments = 0 def run(self): returned = [] for path, leaf in config.traverse_leaves(): section = nodes.sect...
35.782609
86
0.663426
acb8a4b7f50f6c90b1ba1a69187f3fdc0c558155
355
py
Python
dbt/adapters/firebolt/__init__.py
firebolt-db/dbt-firebolt
cb89b9917b42606232dfccc5c28515bd21f694a9
[ "Apache-2.0" ]
20
2021-11-02T23:42:18.000Z
2022-03-22T22:59:03.000Z
dbt/adapters/firebolt/__init__.py
firebolt-db/dbt-firebolt
cb89b9917b42606232dfccc5c28515bd21f694a9
[ "Apache-2.0" ]
33
2021-11-02T21:15:40.000Z
2022-03-29T20:30:19.000Z
dbt/adapters/firebolt/__init__.py
firebolt-db/dbt-firebolt
cb89b9917b42606232dfccc5c28515bd21f694a9
[ "Apache-2.0" ]
6
2021-11-02T18:32:40.000Z
2022-03-26T15:24:43.000Z
from dbt.adapters.base import AdapterPlugin from dbt.adapters.firebolt.connections import FireboltCredentials from dbt.adapters.firebolt.impl import FireboltAdapter from dbt.include import firebolt __version__ = '1.0.4' Plugin = AdapterPlugin( adapter=FireboltAdapter, credentials=FireboltCredentials, inc...
25.357143
65
0.816901
eb397966d2ca53e0fb6ea9217af6706d8c50bf44
805
py
Python
src/lib/utils/post_process.py
MLDSAI/FairMOT
728ce0f51bf168b18b8737e0b4ba4b080f7722d0
[ "MIT" ]
7,899
2019-12-14T20:39:16.000Z
2022-03-31T12:13:27.000Z
src/lib/utils/post_process.py
MLDSAI/FairMOT
728ce0f51bf168b18b8737e0b4ba4b080f7722d0
[ "MIT" ]
472
2020-04-07T15:33:15.000Z
2022-03-31T02:31:10.000Z
src/lib/utils/post_process.py
MLDSAI/FairMOT
728ce0f51bf168b18b8737e0b4ba4b080f7722d0
[ "MIT" ]
1,025
2019-12-18T06:30:48.000Z
2022-03-24T06:55:04.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from .image import transform_preds def ctdet_post_process(dets, c, s, h, w, num_classes): # dets: batch x max_dets x dim # return 1-based class det dict ret = [] for i in range(dets...
28.75
64
0.608696
4dec5ac09f75a6ad2df6e79f9a923bfc179e6545
5,262
py
Python
tensorflow_datasets/structured/e2e_cleaned.py
stwind/datasets
118d3d2472a3bf2703d1374e25c2223dc7942c13
[ "Apache-2.0" ]
1
2020-10-26T09:02:03.000Z
2020-10-26T09:02:03.000Z
tensorflow_datasets/structured/e2e_cleaned.py
cbaront/datasets
b097e0985eaaadc6b0c1f4dfa3b3cf88d116c607
[ "Apache-2.0" ]
1
2021-02-23T20:16:05.000Z
2021-02-23T20:16:05.000Z
tensorflow_datasets/structured/e2e_cleaned.py
cbaront/datasets
b097e0985eaaadc6b0c1f4dfa3b3cf88d116c607
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets 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 appl...
38.691176
511
0.663816
7c7b32921c253f9ee5f5d504421c49cfa54c59de
5,382
py
Python
docs/conf.py
y-pleim/MonteCarlo
a3e328630c3e0866878f4d25749a562a8be56a37
[ "MIT" ]
null
null
null
docs/conf.py
y-pleim/MonteCarlo
a3e328630c3e0866878f4d25749a562a8be56a37
[ "MIT" ]
null
null
null
docs/conf.py
y-pleim/MonteCarlo
a3e328630c3e0866878f4d25749a562a8be56a37
[ "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/stable/config # -- Path setup ------------------------------------------------------------...
30.579545
80
0.659978
4d11163e1628ec3823c123e9352e1674a33be0cd
4,736
py
Python
src/trainer.py
dengshuo/chainer-slimming
f98aacb7f1687bc495481f5fce8f5490305737e2
[ "MIT" ]
9
2017-08-29T01:37:32.000Z
2021-03-04T07:41:39.000Z
src/trainer.py
dsanno/chainer-fashion-mnist
86957147bdaeb3a1888244ce06c31525cd938629
[ "MIT" ]
null
null
null
src/trainer.py
dsanno/chainer-fashion-mnist
86957147bdaeb3a1888244ce06c31525cd938629
[ "MIT" ]
2
2017-11-21T11:56:22.000Z
2021-03-04T07:41:51.000Z
import math import numpy as np import six from scipy.misc import imresize, imrotate import time import chainer from chainer.dataset import convert from chainer import functions as F from chainer import cuda class CifarTrainer(object): def __init__(self, net, optimizer, epoch_num=100, batch_size=100, device_id=-1,...
40.135593
135
0.575169