hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
7ca4f5192c61086f4f74975da17d1bf4fd80a81d
184
py
Python
prgm6.py
pooja-bs-3003/Project_21
dc46e66ccf10937be6f2f8369ef02eb52e139eff
[ "MIT" ]
null
null
null
prgm6.py
pooja-bs-3003/Project_21
dc46e66ccf10937be6f2f8369ef02eb52e139eff
[ "MIT" ]
null
null
null
prgm6.py
pooja-bs-3003/Project_21
dc46e66ccf10937be6f2f8369ef02eb52e139eff
[ "MIT" ]
1
2021-01-22T15:15:02.000Z
2021-01-22T15:15:02.000Z
str1= input("enter a string :") l1 ="" for i in str1 [::-1]: l1 = i+l1 print(l1) if str1 == l1: print("string is a palindrome") else : print("string is not a palindrome")
18.4
40
0.592391
0
0
0
0
0
0
0
0
72
0.391304
7ca53e88f3dd2e94b942b008b7daf5b989a2b7df
3,493
py
Python
product_spider/spiders/jk_spider.py
Pandaaaa906/product_spider
cc7f865f53fd3ed68f4869be3ba917c8373dfcf2
[ "MIT" ]
null
null
null
product_spider/spiders/jk_spider.py
Pandaaaa906/product_spider
cc7f865f53fd3ed68f4869be3ba917c8373dfcf2
[ "MIT" ]
null
null
null
product_spider/spiders/jk_spider.py
Pandaaaa906/product_spider
cc7f865f53fd3ed68f4869be3ba917c8373dfcf2
[ "MIT" ]
null
null
null
import json import re from string import ascii_uppercase from time import time from urllib.parse import urljoin import scrapy from more_itertools import first from scrapy import Request from product_spider.items import JkProduct, JKPackage from product_spider.utils.functions import strip class JkPrdSpider(scrapy.Sp...
45.960526
142
0.566562
3,209
0.916072
2,768
0.79018
0
0
0
0
940
0.268341
7ca69cf8d56aa0d6b0aa339f56249d7cdfe3ab0c
15,717
py
Python
env/LaneChangeEnv_v2.py
byq-luo/Lane_change_RL
3409238db939e6722441219b4c2dc66033611069
[ "MIT" ]
4
2021-03-11T03:05:31.000Z
2022-03-22T08:45:20.000Z
env/LaneChangeEnv_v2.py
byq-luo/Lane_change_RL
3409238db939e6722441219b4c2dc66033611069
[ "MIT" ]
null
null
null
env/LaneChangeEnv_v2.py
byq-luo/Lane_change_RL
3409238db939e6722441219b4c2dc66033611069
[ "MIT" ]
5
2021-06-18T11:32:34.000Z
2021-12-31T08:10:51.000Z
import os import sys import random import datetime import gym from gym import spaces import numpy as np from env.IDM import IDM from env.Road import Road from env.Vehicle import Vehicle import math # add sumo/tools into python environment if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], ...
40.507732
131
0.56283
15,155
0.964243
0
0
0
0
0
0
5,796
0.368773
7ca6e02f50310d3c489fa5cfd14dac9866b27eaa
5,466
py
Python
cidr/o365/o365.py
jblukach/distillery
4087debb496d7dfc4c425c2e68246e1b0726168b
[ "Apache-2.0" ]
1
2021-11-10T12:56:09.000Z
2021-11-10T12:56:09.000Z
cidr/o365/o365.py
jblukach/distillery
4087debb496d7dfc4c425c2e68246e1b0726168b
[ "Apache-2.0" ]
null
null
null
cidr/o365/o365.py
jblukach/distillery
4087debb496d7dfc4c425c2e68246e1b0726168b
[ "Apache-2.0" ]
1
2021-11-05T03:16:32.000Z
2021-11-05T03:16:32.000Z
import boto3 import ipaddress import json import logging import os import requests import uuid logger = logging.getLogger() logger.setLevel(logging.INFO) dynamodb = boto3.resource('dynamodb') table = dynamodb.Table(os.environ['DYNAMODB_TABLE']) client = boto3.client('ssm') def downloader(instance, latest, param...
47.12069
115
0.51921
0
0
0
0
0
0
0
0
1,334
0.244054
7ca783f400a2f552b7d64e3767e01fb3717ef036
582
py
Python
exampleinc.py
zulip/finbot
dcb6bfe54a674f4ff98370677a648b6cc1706e16
[ "Apache-2.0" ]
7
2017-02-19T16:35:24.000Z
2022-03-09T20:05:49.000Z
exampleinc.py
zulip/finbot
dcb6bfe54a674f4ff98370677a648b6cc1706e16
[ "Apache-2.0" ]
null
null
null
exampleinc.py
zulip/finbot
dcb6bfe54a674f4ff98370677a648b6cc1706e16
[ "Apache-2.0" ]
3
2020-02-13T18:06:46.000Z
2021-06-10T19:56:30.000Z
#!/usr/bin/python from money import * c = Company("Example Inc") c.add_flow(FixedCost("Initial Cash", -500000)) c.add_flow(FixedCost("Incorporation", 500)) c.add_flow(ConstantCost("Office", 50000)) c.add_flow(PeriodicCost("Subscription", 4000, "2012-01-05", 14)) c.add_flow(DelayedCost("2012-02-01", ConstantCost("Offic...
36.375
68
0.730241
0
0
0
0
0
0
0
0
202
0.347079
7ca7926bc8bb9c6d96d0fde91ed69d0cb52091a0
847
py
Python
guardian/validators.py
dawid1stanek/guardian
89359c93d5f36c8b458428e147000352fa7ad01d
[ "Apache-2.0" ]
null
null
null
guardian/validators.py
dawid1stanek/guardian
89359c93d5f36c8b458428e147000352fa7ad01d
[ "Apache-2.0" ]
null
null
null
guardian/validators.py
dawid1stanek/guardian
89359c93d5f36c8b458428e147000352fa7ad01d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import socket import subprocess import argparse import logging LOGGER = logging.getLogger(__name__) class ValidatorError(Exception): pass def ping(address): try: subprocess.check_call(('ping', '-c 1', '-W 1', address), stdout=subprocess.PIPE, stderr=subprocess.PIPE)...
24.2
112
0.663518
41
0.048406
0
0
0
0
0
0
153
0.180638
7ca89ca7169c0f1670fef9182b15d74e96bdbeae
131
py
Python
tests/data/udf_noop.py
Open-EO/openeo-geopyspark-driver
afd5902f426d2aa456d70ed6f2d51b6907de1cab
[ "Apache-2.0" ]
12
2018-03-22T15:02:24.000Z
2022-03-30T20:13:29.000Z
tests/data/udf_noop.py
Open-EO/openeo-geopyspark-driver
afd5902f426d2aa456d70ed6f2d51b6907de1cab
[ "Apache-2.0" ]
116
2018-09-27T17:17:14.000Z
2022-03-30T18:32:29.000Z
tests/data/udf_noop.py
Open-EO/openeo-geopyspark-driver
afd5902f426d2aa456d70ed6f2d51b6907de1cab
[ "Apache-2.0" ]
3
2019-06-28T15:44:32.000Z
2021-10-30T07:05:54.000Z
from openeo.udf import XarrayDataCube def apply_datacube(cube: XarrayDataCube, context: dict) -> XarrayDataCube: return cube
21.833333
74
0.78626
0
0
0
0
0
0
0
0
0
0
7caa2f54344b5d827f792813f87cde352f46a120
827
py
Python
StateGoHome.py
LHGames-2017/superintelligence
bd9ea3d444e571a0f9607bf0f6799807f7e644ca
[ "MIT" ]
null
null
null
StateGoHome.py
LHGames-2017/superintelligence
bd9ea3d444e571a0f9607bf0f6799807f7e644ca
[ "MIT" ]
null
null
null
StateGoHome.py
LHGames-2017/superintelligence
bd9ea3d444e571a0f9607bf0f6799807f7e644ca
[ "MIT" ]
null
null
null
from PlayerState import * from pathFinder import PathFinder from StateLook4Resources import * class StateGoHome(PlayerState): """ State Implementation: has a resource and go back home """ def __init__(self, player): self.player = player self.player.setTarget(self.player.playerData.HouseLocati...
31.807692
71
0.689238
730
0.882709
0
0
0
0
0
0
137
0.165659
7caad7d95f67042bb7aad81b10bf684a91160170
9,603
py
Python
hoomd/mpcd/test-py/stream_slit_test.py
schwendp/hoomd-blue
df7970121b19bc4f8674348ab3241055ac87153b
[ "BSD-3-Clause" ]
2
2020-03-30T14:38:50.000Z
2020-06-02T05:53:41.000Z
hoomd/mpcd/test-py/stream_slit_test.py
schwendp/hoomd-blue
df7970121b19bc4f8674348ab3241055ac87153b
[ "BSD-3-Clause" ]
null
null
null
hoomd/mpcd/test-py/stream_slit_test.py
schwendp/hoomd-blue
df7970121b19bc4f8674348ab3241055ac87153b
[ "BSD-3-Clause" ]
1
2020-05-20T07:00:08.000Z
2020-05-20T07:00:08.000Z
# Copyright (c) 2009-2019 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. # Maintainer: mphoward import unittest import numpy as np import hoomd from hoomd import md from hoomd import mpcd # unit tests for mpcd slit streaming geometry ...
43.06278
101
0.64157
9,210
0.959075
0
0
0
0
0
0
2,195
0.228574
7caae2b0b77242e98f5f62bea314586497fa86a7
7,261
py
Python
tests/functional/model_models.py
haoyuchen1992/CourseBuilder
ba8f0e05c53cc74bb4e46235a7855fdfbd63dff7
[ "Apache-2.0" ]
1
2015-04-15T08:38:08.000Z
2015-04-15T08:38:08.000Z
tests/functional/model_models.py
haoyuchen1992/CourseBuilder
ba8f0e05c53cc74bb4e46235a7855fdfbd63dff7
[ "Apache-2.0" ]
1
2021-06-08T09:49:12.000Z
2021-06-08T09:49:12.000Z
tests/functional/model_models.py
haoyuchen1992/CourseBuilder
ba8f0e05c53cc74bb4e46235a7855fdfbd63dff7
[ "Apache-2.0" ]
3
2015-10-25T12:39:07.000Z
2021-06-08T09:47:34.000Z
# 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 by applicable law or ...
39.677596
80
0.700454
6,358
0.875637
0
0
0
0
0
0
1,461
0.201212
7cab92b7f1c079530e07c1c01ef7a728efea9d02
43,187
py
Python
torchaudio/functional/functional.py
iseessel/audio
64551a69186d28db1f499ba373f1b19c6a7ed894
[ "BSD-2-Clause" ]
null
null
null
torchaudio/functional/functional.py
iseessel/audio
64551a69186d28db1f499ba373f1b19c6a7ed894
[ "BSD-2-Clause" ]
null
null
null
torchaudio/functional/functional.py
iseessel/audio
64551a69186d28db1f499ba373f1b19c6a7ed894
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import io import math import warnings from typing import Optional, Tuple import torch from torch import Tensor from torchaudio._internal import module_utils as _mod_utils import torchaudio __all__ = [ "spectrogram", "griffinlim", "amplitude_to_DB", "DB_to_amplitude", "comp...
35.39918
116
0.611666
0
0
0
0
7,035
0.162885
0
0
21,926
0.507664
7cabc4e8d6c4275c91322768679e9a68335e86e0
12,964
py
Python
src/status_node.py
Faust-Wang/vswarm
d18ce643218c18ef1e762f40562104b2a0926ad7
[ "MIT" ]
21
2021-03-03T10:51:46.000Z
2022-03-28T11:00:35.000Z
src/status_node.py
Faust-Wang/vswarm
d18ce643218c18ef1e762f40562104b2a0926ad7
[ "MIT" ]
2
2021-07-21T07:57:16.000Z
2022-03-17T12:41:51.000Z
src/status_node.py
hvourtsis/vswarm
d18ce643218c18ef1e762f40562104b2a0926ad7
[ "MIT" ]
8
2021-02-27T14:29:55.000Z
2022-01-05T19:40:38.000Z
#!/usr/bin/env python3 from __future__ import absolute_import, division, print_function import curses import sys from collections import deque from datetime import datetime import numpy as np import rospy from diagnostic_msgs.msg import DiagnosticArray, DiagnosticStatus from geometry_msgs.msg import PoseStamped from ...
35.132791
100
0.57166
11,574
0.89278
0
0
0
0
0
0
1,630
0.125733
7cabe7391066e68e59a6eee1bcca21b689be0897
5,010
py
Python
bin/boxplot_param.py
mo-schmid/MIALab
8a7e183df7007993e8a28513a73dca20bfd60737
[ "Apache-2.0" ]
null
null
null
bin/boxplot_param.py
mo-schmid/MIALab
8a7e183df7007993e8a28513a73dca20bfd60737
[ "Apache-2.0" ]
null
null
null
bin/boxplot_param.py
mo-schmid/MIALab
8a7e183df7007993e8a28513a73dca20bfd60737
[ "Apache-2.0" ]
null
null
null
import argparse import os import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import pandas as pd from pathlib import Path class ResultParam(): """Result Parameter""" def __init__(self, path: Path, param_str: str): """Initializes a new instance of the Result Parameter Arg...
35.531915
135
0.641916
395
0.078842
0
0
0
0
0
0
2,042
0.407585
7cae45b970c1385083dad6bbec98b3cd495bf626
3,948
py
Python
EMeRGE/dssmetrics/constants.py
NREL/EMeRGE
573e86ca8e62080c664998e8cc79e9231e7ad502
[ "BSD-3-Clause" ]
6
2020-04-11T18:09:00.000Z
2022-01-23T20:38:38.000Z
EMeRGE/dssmetrics/constants.py
NREL/EMeRGE
573e86ca8e62080c664998e8cc79e9231e7ad502
[ "BSD-3-Clause" ]
null
null
null
EMeRGE/dssmetrics/constants.py
NREL/EMeRGE
573e86ca8e62080c664998e8cc79e9231e7ad502
[ "BSD-3-Clause" ]
3
2020-06-11T02:48:49.000Z
2021-08-10T07:13:57.000Z
""" Default values : DO NOT CHANGE !!!""" LOG_FORMAT = "%(asctime)s: %(levelname)s: %(message)s" DATE_FORMAT = "%Y-%m-%d %H:%M:%S" MAXITERATIONS = 100 LIFE_PARAMETERS = {"theta_i":30,"theta_fl":36,"theta_gfl":28.6, "R":4.87,"n":1,"tau":3.5,"m":1,"A":-13.391, "B":6972.15,"num_...
35.567568
108
0.472898
0
0
0
0
0
0
0
0
1,823
0.461753
7cae7acd2ab857e48bf48cfdcc2ed083e6292337
12,669
py
Python
minesweeper/game.py
MathisFederico/Minesweeper
b66b41066e325813b24497d2caca0a11c048e18b
[ "MIT" ]
1
2020-12-23T11:52:40.000Z
2020-12-23T11:52:40.000Z
minesweeper/game.py
MathisFederico/Minesweeper
b66b41066e325813b24497d2caca0a11c048e18b
[ "MIT" ]
null
null
null
minesweeper/game.py
MathisFederico/Minesweeper
b66b41066e325813b24497d2caca0a11c048e18b
[ "MIT" ]
null
null
null
try: import importlib.resources as pkg_resources except ImportError: # Try backported to PY<37 `importlib_resources`. import importlib_resources as pkg_resources from . import images from gym import Env, spaces from time import time import numpy as np from copy import copy import colorsys import pygame f...
41.950331
136
0.582209
12,312
0.971821
0
0
246
0.019417
0
0
786
0.062041
7caf56de8045038d74971a889dbed39c31d7bb50
1,306
py
Python
tests/python/gaia-ui-tests/gaiatest/tests/functional/lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py
BReduardokramer/gaia
c00302cdcd435ab193e8365917cfc6abac9e4f2e
[ "Apache-2.0" ]
1
2021-11-09T00:27:34.000Z
2021-11-09T00:27:34.000Z
tests/python/gaia-ui-tests/gaiatest/tests/functional/lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py
AmyYLee/gaia
a5dbae8235163d7f985bdeb7d649268f02749a8b
[ "Apache-2.0" ]
null
null
null
tests/python/gaia-ui-tests/gaiatest/tests/functional/lockscreen/test_lockscreen_unlock_to_camera_with_passcode.py
AmyYLee/gaia
a5dbae8235163d7f985bdeb7d649268f02749a8b
[ "Apache-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from gaiatest import GaiaTestCase from gaiatest.apps.lockscreen.app import LockScreen class TestCameraUnlockWithPassco...
31.095238
90
0.717458
1,017
0.778714
0
0
0
0
0
0
418
0.320061
7caf8da8a5f682874ecef410bafcd6662e5de11b
3,440
py
Python
models/layers/mesh_conv.py
CallumMcMahon/MeshCNN
343950a8d69807ed4afa13f1843edb37c4cd042c
[ "MIT" ]
2
2022-01-05T09:21:17.000Z
2022-03-24T15:20:14.000Z
models/layers/mesh_conv.py
CallumMcMahon/MeshCNN
343950a8d69807ed4afa13f1843edb37c4cd042c
[ "MIT" ]
null
null
null
models/layers/mesh_conv.py
CallumMcMahon/MeshCNN
343950a8d69807ed4afa13f1843edb37c4cd042c
[ "MIT" ]
1
2022-03-24T15:20:20.000Z
2022-03-24T15:20:20.000Z
import torch import torch.nn as nn import torch.nn.functional as F class MeshConv(nn.Module): """ Computes convolution between edges and 4 incident (1-ring) edge neighbors in the forward pass takes: x: edge features (Batch x Features x Edges) mesh: list of mesh data-structure (len(mesh) == Batch) a...
41.445783
123
0.585756
3,372
0.980233
0
0
0
0
0
0
1,121
0.325872
7cafa8674f41ef3d6dc02a39822b470f9b548e16
334
py
Python
code/0-input/create_hdf5/check_hdf5.py
AvinWangZH/3D-convolutional-speaker-recognition
61969eb2dba6004bdecb4f7100047015ca665348
[ "Apache-2.0" ]
1
2021-04-04T17:08:05.000Z
2021-04-04T17:08:05.000Z
code/0-input/create_hdf5/check_hdf5.py
subvin/3D-convolutional-speaker-recognition
61969eb2dba6004bdecb4f7100047015ca665348
[ "Apache-2.0" ]
null
null
null
code/0-input/create_hdf5/check_hdf5.py
subvin/3D-convolutional-speaker-recognition
61969eb2dba6004bdecb4f7100047015ca665348
[ "Apache-2.0" ]
null
null
null
import tables import numpy as np import matplotlib.pyplot as plt # Reading the file. fileh = tables.open_file('development.hdf5', mode='r') # Dimentionality of the data structure. print(fileh.root.utterance_test.shape) print(fileh.root.utterance_train.shape) print(fileh.root.label_train.shape) print(fileh.root.label_...
22.266667
54
0.796407
0
0
0
0
0
0
0
0
79
0.236527
7cb23f9d984ca01ba8f682afe13184f98d4f5e92
389
py
Python
qtask/utils/testing.py
LinkTsang/qtask-legacy-python
9b264b8e33313e4d3615472d59a2a39948eeeaa1
[ "MIT" ]
null
null
null
qtask/utils/testing.py
LinkTsang/qtask-legacy-python
9b264b8e33313e4d3615472d59a2a39948eeeaa1
[ "MIT" ]
null
null
null
qtask/utils/testing.py
LinkTsang/qtask-legacy-python
9b264b8e33313e4d3615472d59a2a39948eeeaa1
[ "MIT" ]
null
null
null
import asyncio import traceback import unittest def async_test(f): def wrapper(test_case: unittest.TestCase, *args, **kwargs): loop = asyncio.get_event_loop() task = loop.create_task(f(test_case, *args, **kwargs)) try: loop.run_until_complete(task) except Exception: ...
22.882353
63
0.62982
0
0
0
0
0
0
0
0
0
0
7cb2d3d2cb22c43c3c911d744e22c33bc37cdf49
1,661
py
Python
landing/views.py
theflatladder/kyrsovaya
d6d661854cd955e544a199e201f325decc360cc1
[ "MIT" ]
null
null
null
landing/views.py
theflatladder/kyrsovaya
d6d661854cd955e544a199e201f325decc360cc1
[ "MIT" ]
null
null
null
landing/views.py
theflatladder/kyrsovaya
d6d661854cd955e544a199e201f325decc360cc1
[ "MIT" ]
null
null
null
from django.shortcuts import render, render_to_response, redirect from django.contrib import auth from django.contrib.auth.forms import UserCreationForm from django.template.context_processors import csrf from django.http import HttpResponseRedirect def login(request): args = {} args.update(csrf(request)) ...
31.339623
140
0.668874
0
0
0
0
0
0
0
0
323
0.1851
7cb376c84e1d9faf8d7802d4ab0284c278818e8c
441
py
Python
FPRun11.py
yecfly/DEPRESSIONEST
21b72906aac9f310e264f7a5eea348480a647197
[ "Unlicense" ]
null
null
null
FPRun11.py
yecfly/DEPRESSIONEST
21b72906aac9f310e264f7a5eea348480a647197
[ "Unlicense" ]
null
null
null
FPRun11.py
yecfly/DEPRESSIONEST
21b72906aac9f310e264f7a5eea348480a647197
[ "Unlicense" ]
null
null
null
from Facepatchindependenttrain import runPatch import sys if len(sys.argv)==6: runPatch(GPU_Device_ID=1, FacePatchID=int(sys.argv[1]), trainpklID=int(sys.argv[2]), testpklID=int(sys.argv[3]), NetworkType=int(sys.argv[4]), runs=int(sys.argv[5])) ...
40.090909
113
0.621315
0
0
0
0
0
0
0
0
101
0.229025
7cb439e7ed9a5e950d6cf894c40e5a62043d06e9
5,183
py
Python
vendor/packages/translate-toolkit/translate/convert/test_po2tmx.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
2
2019-08-19T17:08:47.000Z
2019-10-05T11:37:02.000Z
vendor/packages/translate-toolkit/translate/convert/test_po2tmx.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/translate-toolkit/translate/convert/test_po2tmx.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from translate.convert import po2tmx from translate.convert import test_convert from translate.misc import wStringIO from translate.storage import tmx from translate.storage import lisa class TestPO2TMX: def po2tmx(self, posource, sourcelanguage='en', targetlanguage=...
33.43871
128
0.641134
4,948
0.953923
0
0
0
0
0
0
2,274
0.438404
7cb54fa0b7a5c349c3088529c91a97ac9de21c8e
2,684
py
Python
plugin.video.yatp/libs/client/commands.py
mesabib/kodi.yatp
d874df43047b5b58f84cb3760fc891d9a133a69f
[ "CNRI-Python" ]
54
2015-08-01T20:31:36.000Z
2022-02-06T11:06:01.000Z
plugin.video.yatp/libs/client/commands.py
mesabib/kodi.yatp
d874df43047b5b58f84cb3760fc891d9a133a69f
[ "CNRI-Python" ]
57
2015-08-31T09:54:49.000Z
2018-08-30T20:39:12.000Z
plugin.video.yatp/libs/client/commands.py
mesabib/kodi.yatp
d874df43047b5b58f84cb3760fc891d9a133a69f
[ "CNRI-Python" ]
16
2016-01-17T11:44:41.000Z
2021-12-12T00:41:29.000Z
# coding: utf-8 # Module: commands # Created on: 28.07.2015 # Author: Roman Miroshnychenko aka Roman V.M. (romanvm@yandex.ua) # Licence: GPL v.3: http://www.gnu.org/copyleft/gpl.html """ Context menu commands """ import sys import xbmc import xbmcgui import json_requests as jsonrq from simpleplugin import Addon addon...
35.786667
89
0.554396
0
0
0
0
0
0
0
0
872
0.324888
7cb5817de3a17f08a3afdfbe15a3bbd0fbe2d1d8
346
py
Python
setup.py
GeorgeDittmar/MarkovTextGenerator
df6a56e23051e1f263ba22889dc3b5d0dc03e370
[ "Apache-2.0" ]
1
2021-11-26T15:49:31.000Z
2021-11-26T15:49:31.000Z
setup.py
GeorgeDittmar/Mimic
df6a56e23051e1f263ba22889dc3b5d0dc03e370
[ "Apache-2.0" ]
1
2019-06-24T17:30:41.000Z
2019-06-26T04:53:00.000Z
setup.py
GeorgeDittmar/MarkovTextGenerator
df6a56e23051e1f263ba22889dc3b5d0dc03e370
[ "Apache-2.0" ]
2
2020-05-04T07:57:17.000Z
2021-02-23T05:10:11.000Z
#!/usr/bin/env python from distutils.core import setup setup(name='Mimik', version='1.0', description='Python framework for markov models', author='George Dittmar', author_email='georgedittmar@gmail.com', url='https://www.python.org/sigs/distutils-sig/', packages=['distutils', 'dis...
26.615385
55
0.65896
0
0
0
0
0
0
0
0
184
0.531792
7cb5d1b6022bb826ecb887e64d632c52c31ffdb9
5,563
py
Python
pipeline/scripts/package.py
deplatformr/open-images
3726c9802bda1d7ecbbbd9920d5566daaecc9faa
[ "MIT" ]
2
2020-10-12T02:37:54.000Z
2020-10-14T15:16:49.000Z
pipeline/scripts/package.py
deplatformr/open-images
3726c9802bda1d7ecbbbd9920d5566daaecc9faa
[ "MIT" ]
null
null
null
pipeline/scripts/package.py
deplatformr/open-images
3726c9802bda1d7ecbbbd9920d5566daaecc9faa
[ "MIT" ]
null
null
null
import os import shutil import sqlite3 import tarfile from datetime import datetime import bagit def create_package(images, batch_dir): package_threshold = 838860800 # 800 Mib to the next power of 2 = 1GiB print("Package threshold: " + get_human_readable_file_size(package_threshold)) abs_path = os.getc...
47.144068
735
0.585655
0
0
0
0
0
0
0
0
1,929
0.346755
7cb6009fc34f03127073ead641d466f1b2a5c978
2,313
py
Python
app/search/hot_eval/hl_reportable.py
don4apaev/anfisa
2e4bdd83c584c0000f037413ccc1f9067c07fa70
[ "Apache-2.0" ]
null
null
null
app/search/hot_eval/hl_reportable.py
don4apaev/anfisa
2e4bdd83c584c0000f037413ccc1f9067c07fa70
[ "Apache-2.0" ]
null
null
null
app/search/hot_eval/hl_reportable.py
don4apaev/anfisa
2e4bdd83c584c0000f037413ccc1f9067c07fa70
[ "Apache-2.0" ]
null
null
null
def evalRec(env, rec): """hl_reportable""" return (len(set(rec.Genes) & { 'ABHD12', 'ACTG1', 'ADGRV1', 'AIFM1', 'ATP6V1B1', 'BCS1L', 'BSND', 'CABP2', 'CACNA1D', 'CDC14A', '...
21.027273
32
0.253783
0
0
0
0
0
0
0
0
766
0.331172
7cb6f4beed1a08b09244a31819b47421774b7914
6,486
py
Python
eval/util/metrics.py
fau-is/grm
78b1559ea0dda1b817283adecd58da50ca232223
[ "MIT" ]
5
2020-09-15T18:57:01.000Z
2021-12-13T14:14:08.000Z
eval/util/metrics.py
fau-is/grm
78b1559ea0dda1b817283adecd58da50ca232223
[ "MIT" ]
null
null
null
eval/util/metrics.py
fau-is/grm
78b1559ea0dda1b817283adecd58da50ca232223
[ "MIT" ]
1
2020-09-10T17:45:22.000Z
2020-09-10T17:45:22.000Z
import sklearn import pandas import seaborn as sns import matplotlib.pyplot as pyplot from functools import reduce # import numpy as np def metrics_from_prediction_and_label(labels, predictions, verbose=False): measures = { "accuracy": sklearn.metrics.accuracy_score(labels, predictions), "balance...
36.234637
118
0.646007
0
0
0
0
0
0
0
0
1,248
0.192414
7cb7c886108da63565062eb8d192b4df3da78f64
3,566
py
Python
dpgs_sandbox/tests/test_bug_migrations_in_base_models.py
gabrielpiassetta/django-pgschemas
1e76db4cef31c7534bf4ba109961e835a1dd3c96
[ "MIT" ]
null
null
null
dpgs_sandbox/tests/test_bug_migrations_in_base_models.py
gabrielpiassetta/django-pgschemas
1e76db4cef31c7534bf4ba109961e835a1dd3c96
[ "MIT" ]
null
null
null
dpgs_sandbox/tests/test_bug_migrations_in_base_models.py
gabrielpiassetta/django-pgschemas
1e76db4cef31c7534bf4ba109961e835a1dd3c96
[ "MIT" ]
null
null
null
import warnings from unittest.mock import patch from django.apps import apps from django.core import management from django.core.management.base import CommandError from django.db import models from django.db.utils import ProgrammingError from django.test import TransactionTestCase, tag from django_pgschemas.checks i...
37.536842
118
0.714526
2,964
0.831183
0
0
2,854
0.800337
0
0
1,035
0.290241
7cb900078da95ed33cbe2fdf9bd9a465b5e9a56e
6,330
py
Python
tfx/components/transform/component.py
pingsutw/tfx
bf0d1d74e3f6ea429989fc7b80b82bea08077857
[ "Apache-2.0" ]
null
null
null
tfx/components/transform/component.py
pingsutw/tfx
bf0d1d74e3f6ea429989fc7b80b82bea08077857
[ "Apache-2.0" ]
null
null
null
tfx/components/transform/component.py
pingsutw/tfx
bf0d1d74e3f6ea429989fc7b80b82bea08077857
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2019 Google LLC. 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 req...
43.356164
105
0.733017
5,124
0.809479
0
0
0
0
0
0
4,023
0.635545
7cb9aea67a579bf1b09555b59098bc7f2315e25f
959
py
Python
objects/GitIndexEntry.py
anderslatif/alg
d5902a05a4cb249e554f65a7e8016d7d050b6da9
[ "MIT" ]
null
null
null
objects/GitIndexEntry.py
anderslatif/alg
d5902a05a4cb249e554f65a7e8016d7d050b6da9
[ "MIT" ]
null
null
null
objects/GitIndexEntry.py
anderslatif/alg
d5902a05a4cb249e554f65a7e8016d7d050b6da9
[ "MIT" ]
null
null
null
# https://github.com/git/git/blob/master/Documentation/technical/index-format.txt class GitIndexEntry(object): # The last time a file's metadata changed. This is a tuple (seconds, nanoseconds) ctime = None # The last time a file's data changed. This is a tuple (seconds, nanoseconds) mtime = None #...
22.302326
85
0.657977
876
0.913452
0
0
0
0
0
0
563
0.58707
7cba9b9fb8b398f82ae1a8d924fec2ad7e1b9ddf
2,437
py
Python
matdgl/layers/partitionpaddinglayer.py
huzongxiang/CrystalNetwork
a434f76fa4347d42b3c905852ce265cd0bcefca3
[ "BSD-2-Clause" ]
6
2022-03-30T13:47:03.000Z
2022-03-31T09:27:46.000Z
matdgl/layers/partitionpaddinglayer.py
huzongxiang/CrystalNetwork
a434f76fa4347d42b3c905852ce265cd0bcefca3
[ "BSD-2-Clause" ]
null
null
null
matdgl/layers/partitionpaddinglayer.py
huzongxiang/CrystalNetwork
a434f76fa4347d42b3c905852ce265cd0bcefca3
[ "BSD-2-Clause" ]
2
2022-03-30T20:53:11.000Z
2022-03-31T22:20:05.000Z
# -*- coding: utf-8 -*- """ Created on Wed Oct 13 14:47:13 2021 @author: huzongxiang """ import tensorflow as tf from tensorflow.keras import layers class PartitionPadding(layers.Layer): def __init__(self, batch_size, **kwargs): super().__init__(**kwargs) self.batch_size = batch_size def ...
27.077778
81
0.585556
2,276
0.933935
0
0
0
0
0
0
291
0.119409
7cbab3e957076a86de0198f2fb2ae52e8d52e634
173
py
Python
lino_book/projects/min9/settings/memory.py
khchine5/book
b6272d33d49d12335d25cf0a2660f7996680b1d1
[ "BSD-2-Clause" ]
1
2018-01-12T14:09:58.000Z
2018-01-12T14:09:58.000Z
lino_book/projects/min9/settings/memory.py
khchine5/book
b6272d33d49d12335d25cf0a2660f7996680b1d1
[ "BSD-2-Clause" ]
4
2018-02-06T19:53:10.000Z
2019-08-01T21:47:44.000Z
lino_book/projects/min9/settings/memory.py
khchine5/book
b6272d33d49d12335d25cf0a2660f7996680b1d1
[ "BSD-2-Clause" ]
null
null
null
from .demo import * SITE.verbose_name = SITE.verbose_name + " (:memory:)" # SITE = Site(globals(), title=Site.title+" (:memory:)") DATABASES['default']['NAME'] = ':memory:'
34.6
56
0.653179
0
0
0
0
0
0
0
0
94
0.543353
7cbb1dd15de4d3e88890e2caf26d07b7deb3f4b0
152
py
Python
reservation/urls.py
aryamanak10/diner-restaurant-website
6d2d9de89a73c5535ebf782c4d8bbfc6ca9489fc
[ "MIT" ]
1
2020-05-07T17:18:36.000Z
2020-05-07T17:18:36.000Z
reservation/urls.py
aryamanak10/Restaurant-Site-using-Django
6d2d9de89a73c5535ebf782c4d8bbfc6ca9489fc
[ "MIT" ]
null
null
null
reservation/urls.py
aryamanak10/Restaurant-Site-using-Django
6d2d9de89a73c5535ebf782c4d8bbfc6ca9489fc
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'reservation' urlpatterns = [ path('', views.reserve_table, name = 'reserve_table'), ]
19
58
0.710526
0
0
0
0
0
0
0
0
30
0.197368
7cbb90e215684507ec88ead7205a67d14728eaf9
809
py
Python
chainer/_version.py
yumetov/chainer
522e017a18008ee00e39f4ae4b30f4f9db3824b2
[ "MIT" ]
3,705
2017-06-01T07:36:12.000Z
2022-03-30T10:46:15.000Z
chainer/_version.py
yumetov/chainer
522e017a18008ee00e39f4ae4b30f4f9db3824b2
[ "MIT" ]
5,998
2017-06-01T06:40:17.000Z
2022-03-08T01:42:44.000Z
chainer/_version.py
yumetov/chainer
522e017a18008ee00e39f4ae4b30f4f9db3824b2
[ "MIT" ]
1,150
2017-06-02T03:39:46.000Z
2022-03-29T02:29:32.000Z
__version__ = '7.8.0' _optional_dependencies = [ { 'name': 'CuPy', 'packages': [ 'cupy-cuda120', 'cupy-cuda114', 'cupy-cuda113', 'cupy-cuda112', 'cupy-cuda111', 'cupy-cuda110', 'cupy-cuda102', 'cupy-cud...
23.114286
63
0.410383
0
0
0
0
0
0
0
0
409
0.505562
7cbc5cd567a3861d37ece4294dbac699b11bc6a2
10,435
py
Python
image_aug.py
qwerasdf887/image_augmentation
7d465eba4d6af5d9a4cd79bf1981c8ef206ffe42
[ "MIT" ]
null
null
null
image_aug.py
qwerasdf887/image_augmentation
7d465eba4d6af5d9a4cd79bf1981c8ef206ffe42
[ "MIT" ]
null
null
null
image_aug.py
qwerasdf887/image_augmentation
7d465eba4d6af5d9a4cd79bf1981c8ef206ffe42
[ "MIT" ]
null
null
null
# coding=UTF-8 # This Python file uses the following encoding: utf-8 import cv2 import numpy as np import xml.etree.cElementTree as ET from random import sample #default args: default_args = {'noise_prob': 0.1, 'gasuss_mean': 0, 'gasuss_var': 0.001, 'rand_hug': 30, ...
31.430723
117
0.58965
0
0
0
0
0
0
0
0
2,996
0.279191
7cbd6ca4479663e9722341b796b7cdd0073b6b18
1,507
py
Python
03_picnic/picnic.py
intimanipuchi/tiny_python_projects
5e419620ae07b0bcf8df073ba3f6c6c3d7d1a93c
[ "MIT" ]
null
null
null
03_picnic/picnic.py
intimanipuchi/tiny_python_projects
5e419620ae07b0bcf8df073ba3f6c6c3d7d1a93c
[ "MIT" ]
null
null
null
03_picnic/picnic.py
intimanipuchi/tiny_python_projects
5e419620ae07b0bcf8df073ba3f6c6c3d7d1a93c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : Roman Koziy <koziyroman@gmail.com> Date : 2021-12-15 Purpose: Working with lists """ import argparse # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( description="Working with...
25.116667
63
0.472462
0
0
0
0
0
0
0
0
620
0.411413
7cbd753ba4fba3e640a8395f823b9af2ba40868f
400
py
Python
triangle.py
montyshyama/python-basics
d71156d70fdadc722a192b984e9bff66401ab894
[ "MIT" ]
null
null
null
triangle.py
montyshyama/python-basics
d71156d70fdadc722a192b984e9bff66401ab894
[ "MIT" ]
null
null
null
triangle.py
montyshyama/python-basics
d71156d70fdadc722a192b984e9bff66401ab894
[ "MIT" ]
1
2020-04-05T20:06:08.000Z
2020-04-05T20:06:08.000Z
side_a=int(input("Enter the first side(a):")) side_b=int(input("Enter the second side(b):")) side_c=int(input("Enter the third side(c):")) if side_a==side_b and side_a==side_c: print("The triangle is an equilateral triangle.") elif side_a==side_b or side_a==side_c or side_b==side_c: print("The triangle is...
44.444444
57
0.7075
0
0
0
0
0
0
0
0
196
0.49
7cbd766d520e1888b731cf3cea3bb5f44d830c1f
520
py
Python
david/modules/artist/view.py
ktmud/david
4b8d6f804b73cdfa1a8ddf784077fa9a39f1e36f
[ "MIT" ]
2
2016-04-07T08:21:32.000Z
2020-11-26T11:49:20.000Z
david/modules/artist/view.py
ktmud/david
4b8d6f804b73cdfa1a8ddf784077fa9a39f1e36f
[ "MIT" ]
null
null
null
david/modules/artist/view.py
ktmud/david
4b8d6f804b73cdfa1a8ddf784077fa9a39f1e36f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Blueprint, request from david.lib.template import st from .model import Artist bp = Blueprint('artist', __name__) @bp.app_template_global('artists') def artists(): return Artist.query.all() @bp.route('/artist/<uid>/') def intro(uid): artist = Artist.get_or_404(uid) ...
23.636364
57
0.688462
0
0
0
0
356
0.684615
0
0
134
0.257692
7cbdd46842ad893e844a14b8fc15ffc18db30ecc
2,832
py
Python
Volume Estimation/volume.py
JessieRamaux/Food-Volume-Estimation
260b0e78a3b6a7b8bbe9daf98956502beea92552
[ "MIT" ]
10
2021-02-19T09:31:43.000Z
2022-02-09T08:29:02.000Z
Volume Estimation/volume.py
JessieRamaux/Food-Volume-Estimation
260b0e78a3b6a7b8bbe9daf98956502beea92552
[ "MIT" ]
null
null
null
Volume Estimation/volume.py
JessieRamaux/Food-Volume-Estimation
260b0e78a3b6a7b8bbe9daf98956502beea92552
[ "MIT" ]
3
2021-02-16T00:05:32.000Z
2021-06-11T13:37:10.000Z
import numpy as np import cv2 import os import json import glob from PIL import Image, ImageDraw plate_diameter = 25 #cm plate_depth = 1.5 #cm plate_thickness = 0.2 #cm def Max(x, y): if (x >= y): return x else: return y def polygons_to_mask(img_shape, polygons): mask = np.zeros(img_shape...
28.039604
116
0.604167
0
0
0
0
0
0
0
0
140
0.049435
7cbe3198f6071ec0d541441f81f18f624a937b6f
5,044
py
Python
t2k/bin/cmttags.py
tianluyuan/pyutils
2cd3a90dbbd3d0eec3054fb9493ca0f6e0272e50
[ "MIT" ]
1
2019-02-22T10:57:13.000Z
2019-02-22T10:57:13.000Z
t2k/bin/cmttags.py
tianluyuan/pyutils
2cd3a90dbbd3d0eec3054fb9493ca0f6e0272e50
[ "MIT" ]
null
null
null
t2k/bin/cmttags.py
tianluyuan/pyutils
2cd3a90dbbd3d0eec3054fb9493ca0f6e0272e50
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ A script to create tags for CMT managed packages. Call from within cmt/ directory """ import subprocess import sys import os from optparse import OptionParser __author__ = 'Tianlu Yuan' __email__ = 'tianlu.yuan [at] colorado.edu' # Ignore large external packages for now IGNORES = ['CMT', ...
28.822857
80
0.585052
0
0
0
0
0
0
0
0
2,101
0.416534
7cbea5a7d278dcb466c16a1d3e035b7e14f3c77c
63,630
py
Python
salt/daemons/masterapi.py
rickh563/salt
02822d6466c47d0daafd6e98b4e767a396b0ed48
[ "Apache-2.0" ]
null
null
null
salt/daemons/masterapi.py
rickh563/salt
02822d6466c47d0daafd6e98b4e767a396b0ed48
[ "Apache-2.0" ]
null
null
null
salt/daemons/masterapi.py
rickh563/salt
02822d6466c47d0daafd6e98b4e767a396b0ed48
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' This module contains all of the routines needed to set up a master server, this involves preparing the three listeners and the workers needed by the master. ''' from __future__ import absolute_import # Import python libs import fnmatch import logging import os import re import time import s...
39.253547
173
0.49604
55,801
0.876961
0
0
0
0
0
0
18,860
0.296401
7cbf3fcf677b8e93a5ef2be1bcf1c650636a93f5
2,003
py
Python
core/domain/role_services_test.py
Mohitbalwani26/oppia
a3d1de8b428b8216bb61ba70315583fe077f5b8a
[ "Apache-2.0" ]
null
null
null
core/domain/role_services_test.py
Mohitbalwani26/oppia
a3d1de8b428b8216bb61ba70315583fe077f5b8a
[ "Apache-2.0" ]
null
null
null
core/domain/role_services_test.py
Mohitbalwani26/oppia
a3d1de8b428b8216bb61ba70315583fe077f5b8a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2017 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
39.27451
79
0.734898
1,060
0.529206
0
0
0
0
0
0
809
0.403894
7cbf5d867e83bab7776ed420c8f1d228f4f2244d
82,473
py
Python
deep_learning/keras/keras/backend/cntk_backend.py
xpennec/applications
50aefdf14de308fc3c132784ebba9d329e47b087
[ "MIT" ]
21
2019-01-12T17:59:41.000Z
2022-03-08T17:42:56.000Z
deep_learning/keras/keras/backend/cntk_backend.py
farrell236/applications
0e1ab139ade2a0b3ba6f04f6fd93822b1dd5ae2f
[ "MIT" ]
7
2019-01-24T11:44:58.000Z
2020-04-21T21:13:37.000Z
deep_learning/keras/keras/backend/cntk_backend.py
farrell236/applications
0e1ab139ade2a0b3ba6f04f6fd93822b1dd5ae2f
[ "MIT" ]
8
2019-01-24T11:36:05.000Z
2021-06-15T20:59:50.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cntk as C import numpy as np from .common import floatx, epsilon, image_dim_ordering, image_data_format from collections import defaultdict from contextlib import contextmanager import warnings C.set_g...
32.153216
109
0.584361
11,576
0.140361
120
0.001455
632
0.007663
0
0
11,596
0.140604
7cbfb5620b9999ebfec8396e7e566e9eef183412
6,946
py
Python
Project Files/Prebuilt tools/twitter/Twitter/pylib/oauthlib/oauth1/rfc5849/endpoints/resource.py
nVoid/Yale-TouchDesigner-April2016
40eb36f515fa3935f3e9ddaa923664e88308262c
[ "MIT" ]
39
2015-06-10T23:18:07.000Z
2021-10-21T04:29:06.000Z
Project Files/Prebuilt tools/twitter/Twitter/pylib/oauthlib/oauth1/rfc5849/endpoints/resource.py
nVoid/Yale-TouchDesigner-April2016
40eb36f515fa3935f3e9ddaa923664e88308262c
[ "MIT" ]
13
2020-10-28T16:02:09.000Z
2020-11-16T13:30:05.000Z
Project Files/Prebuilt tools/twitter/Twitter/pylib/oauthlib/oauth1/rfc5849/endpoints/resource.py
nVoid/Yale-TouchDesigner-April2016
40eb36f515fa3935f3e9ddaa923664e88308262c
[ "MIT" ]
26
2015-06-10T22:09:15.000Z
2021-06-27T15:45:15.000Z
# -*- coding: utf-8 -*- """ oauthlib.oauth1.rfc5849.endpoints.resource ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module is an implementation of the resource protection provider logic of OAuth 1.0 RFC 5849. """ from __future__ import absolute_import, unicode_literals from oauthlib.common import log from .base i...
44.525641
84
0.6444
6,582
0.947596
0
0
0
0
0
0
4,410
0.634898
7cbffc6e03738d28e2329b530ca6fb3c25fe1127
1,493
py
Python
python/ex_1.py
AymenSe/Geometric-operations-DIP
ef0b0bc86210a8da5e63136bf5a239179b869722
[ "MIT" ]
null
null
null
python/ex_1.py
AymenSe/Geometric-operations-DIP
ef0b0bc86210a8da5e63136bf5a239179b869722
[ "MIT" ]
null
null
null
python/ex_1.py
AymenSe/Geometric-operations-DIP
ef0b0bc86210a8da5e63136bf5a239179b869722
[ "MIT" ]
null
null
null
#################################################### # # @ Authors : SEKHRI Aymen # MOHAMMED HACENE Tarek # # @ Hint: you have to install all requirements # from requirements.txt # #################################################### import numpy as np import cv2 as cv import matplotl...
24.883333
59
0.649029
0
0
0
0
0
0
0
0
904
0.605492
7cc0266db2f787f19a55358bfe261dafe0201d9d
3,999
py
Python
utils/hit_rate_utils.py
h-zcc/ref-nms
8f83f350c497d0ef875c778a8ce76725552abb3c
[ "MIT" ]
19
2020-12-14T13:53:10.000Z
2022-02-27T09:46:15.000Z
utils/hit_rate_utils.py
h-zcc/ref-nms
8f83f350c497d0ef875c778a8ce76725552abb3c
[ "MIT" ]
3
2021-01-16T11:41:07.000Z
2021-08-06T08:21:42.000Z
utils/hit_rate_utils.py
h-zcc/ref-nms
8f83f350c497d0ef875c778a8ce76725552abb3c
[ "MIT" ]
3
2021-01-10T15:25:29.000Z
2021-09-26T01:38:16.000Z
from utils.misc import calculate_iou, xywh_to_xyxy __all__ = ['NewHitRateEvaluator', 'CtxHitRateEvaluator'] class NewHitRateEvaluator: def __init__(self, refer, top_N=None, threshold=0.5): """Evaluate refexp-based hit rate. Args: refdb: `refdb` dict. split: Dataset spli...
36.688073
105
0.565141
3,883
0.970993
0
0
0
0
0
0
1,266
0.316579
7cc16e64c487a1ae6266b04c47e0496bada66d00
905
py
Python
LeetCode_ReorderDataLogFiles.py
amukher3/Problem_solutions
8fa6014a91f295d08cafb989024caa91d99211d9
[ "Apache-2.0" ]
1
2021-12-28T08:58:51.000Z
2021-12-28T08:58:51.000Z
LeetCode_ReorderDataLogFiles.py
amukher3/Coding
a330cb04b5dd5cc1c3cf69249417a71586441bc7
[ "Apache-2.0" ]
null
null
null
LeetCode_ReorderDataLogFiles.py
amukher3/Coding
a330cb04b5dd5cc1c3cf69249417a71586441bc7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Aug 22 19:07:30 2020 @author: Abhishek Mukherjee """ class Solution: def reorderLogFiles(self, logs: List[str]) -> List[str]: letLog=[] digLog=[] for i in range(len(logs)): temp=[] temp=logs...
27.424242
76
0.438674
800
0.883978
0
0
0
0
0
0
121
0.133702
7cc17f1b77efcc568026cf1d93c6a6ded983ab6a
475
py
Python
saleor/core/transactions.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/core/transactions.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/core/transactions.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
from contextlib import contextmanager from django.db import DatabaseError from ..core.tracing import traced_atomic_transaction @contextmanager def transaction_with_commit_on_errors(): """Perform transaction and raise an error in any occurred.""" error = None with traced_atomic_transaction(): try...
22.619048
65
0.669474
0
0
327
0.688421
343
0.722105
0
0
61
0.128421
7cc1ccd2747eb46713eaccaf9ca6dc49d25b3128
3,314
py
Python
src/command_modules/azure-cli-policyinsights/azure/cli/command_modules/policyinsights/tests/latest/test_policyinsights_scenario.py
diberry/azure-cli
302999245cbb13b890b0a74f03443c577bd4bfae
[ "MIT" ]
1
2019-03-30T20:49:32.000Z
2019-03-30T20:49:32.000Z
src/command_modules/azure-cli-policyinsights/azure/cli/command_modules/policyinsights/tests/latest/test_policyinsights_scenario.py
diberry/azure-cli
302999245cbb13b890b0a74f03443c577bd4bfae
[ "MIT" ]
4
2018-08-08T20:01:17.000Z
2018-09-17T15:20:06.000Z
src/command_modules/azure-cli-policyinsights/azure/cli/command_modules/policyinsights/tests/latest/test_policyinsights_scenario.py
diberry/azure-cli
302999245cbb13b890b0a74f03443c577bd4bfae
[ "MIT" ]
1
2018-04-14T01:46:00.000Z
2018-04-14T01:46:00.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
48.028986
194
0.545866
2,894
0.873265
0
0
2,909
0.877791
0
0
1,617
0.48793
7cc20f1f6a53dbfc79dbca785199d6d05868daf1
25,440
py
Python
tests/prep_post/test.py
Aslic/rmats_turbo_4.1.0
c651509a5d32799315054fa37a2210fab2aae5e5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/prep_post/test.py
Aslic/rmats_turbo_4.1.0
c651509a5d32799315054fa37a2210fab2aae5e5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/prep_post/test.py
Aslic/rmats_turbo_4.1.0
c651509a5d32799315054fa37a2210fab2aae5e5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import glob import os.path import subprocess import sys import unittest import tests.bam import tests.base_test import tests.gtf import tests.output_parser as output_parser import tests.test_config import tests.util class Test(tests.base_test.BaseTest): def setUp(self): super().setUp() self._tes...
39.75
83
0.553263
25,160
0.988994
0
0
0
0
0
0
2,370
0.09316
7cc57c915f6cace046e0bbe739957206038f009f
1,527
py
Python
nltk/align/util.py
kruskod/nltk
dba7b5431b1d57a75d50e048961c1a203b98c3da
[ "Apache-2.0" ]
1
2015-11-25T00:47:58.000Z
2015-11-25T00:47:58.000Z
nltk/align/util.py
kruskod/nltk
dba7b5431b1d57a75d50e048961c1a203b98c3da
[ "Apache-2.0" ]
null
null
null
nltk/align/util.py
kruskod/nltk
dba7b5431b1d57a75d50e048961c1a203b98c3da
[ "Apache-2.0" ]
null
null
null
# Natural Language Toolkit: Aligner Utilities # # Copyright (C) 2001-2015 NLTK Project # Author: Anna Garbar # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT from nltk.align.api import Alignment def pharaohtext2tuples(pharaoh_text): """ Converts pharaoh text format into an Alignment ob...
33.933333
81
0.642436
0
0
0
0
0
0
0
0
1,177
0.770792
7cc70ea72109b3602fc21ef2eb53e2e3c1469770
1,461
py
Python
grr/server/grr_response_server/databases/db_yara_test_lib.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
4,238
2015-01-01T15:34:50.000Z
2022-03-31T08:18:05.000Z
grr/server/grr_response_server/databases/db_yara_test_lib.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
787
2015-01-02T21:34:24.000Z
2022-03-02T13:26:38.000Z
grr/server/grr_response_server/databases/db_yara_test_lib.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
856
2015-01-02T02:50:11.000Z
2022-03-31T11:11:53.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- """A module with test cases for the YARA database method.""" import os from grr_response_server.databases import db from grr_response_server.rdfvalues import objects as rdf_objects class DatabaseTestYaraMixin(object): """A mixin class for testing YARA methods of dat...
33.976744
75
0.776181
1,227
0.839836
0
0
0
0
0
0
281
0.192334
7cc7a37d4874c578241d8fb555c025d8c962058b
4,912
py
Python
gpytorch/kernels/inducing_point_kernel.py
4aHxKzD/gpytorch
7193545f88820ea04588b983f1d7ed603a59a27c
[ "MIT" ]
1
2021-03-05T07:20:58.000Z
2021-03-05T07:20:58.000Z
gpytorch/kernels/inducing_point_kernel.py
4aHxKzD/gpytorch
7193545f88820ea04588b983f1d7ed603a59a27c
[ "MIT" ]
1
2021-02-24T14:01:43.000Z
2021-02-24T14:01:43.000Z
gpytorch/kernels/inducing_point_kernel.py
syncrostone/gpytorch
4d33fbf64594aab2dd6e0cfcb3242510231b3e0e
[ "MIT" ]
1
2021-03-15T12:32:24.000Z
2021-03-15T12:32:24.000Z
#!/usr/bin/env python3 import copy import math import torch from ..distributions import MultivariateNormal from ..lazy import DiagLazyTensor, LowRankRootAddedDiagLazyTensor, LowRankRootLazyTensor, MatmulLazyTensor, delazify from ..mlls import InducingPointKernelAddedLossTerm from ..models import exact_prediction_str...
36.656716
116
0.659202
4,507
0.917549
0
0
883
0.179764
0
0
333
0.067793
7cc9967d7946d0cff670ce2e551feabb3ef304ce
891
py
Python
app/__init__.py
Jotasenpai/DigitalMediaStoreRESTfull
bb776d398e1756b1ff2fd4f392b80479ae29847d
[ "MIT" ]
null
null
null
app/__init__.py
Jotasenpai/DigitalMediaStoreRESTfull
bb776d398e1756b1ff2fd4f392b80479ae29847d
[ "MIT" ]
null
null
null
app/__init__.py
Jotasenpai/DigitalMediaStoreRESTfull
bb776d398e1756b1ff2fd4f392b80479ae29847d
[ "MIT" ]
null
null
null
import logging import os from flask import Flask from flask_cors import CORS from app.extensions import api from app.extensions.database import db from app.extensions.schema import ma from app.views import albums, artists, hello, tracks def create_app(config, **kwargs): logging.basicConfig(level=logging.INFO) ...
21.214286
54
0.679012
0
0
0
0
0
0
0
0
57
0.063973
7cc9e6223af3f0ca91fd050679827da65d115102
18,053
py
Python
app.py
SASHA-PAIS/A-Flask-web-app-for-inventory-management
e6ed1b0d1d06ba04f9930f7653ce0504ecf81dd3
[ "MIT" ]
null
null
null
app.py
SASHA-PAIS/A-Flask-web-app-for-inventory-management
e6ed1b0d1d06ba04f9930f7653ce0504ecf81dd3
[ "MIT" ]
null
null
null
app.py
SASHA-PAIS/A-Flask-web-app-for-inventory-management
e6ed1b0d1d06ba04f9930f7653ce0504ecf81dd3
[ "MIT" ]
null
null
null
from flask import Flask, url_for, request, redirect from flask import render_template as render from flask_mysqldb import MySQL import yaml import json import MySQLdb import decimal class Encoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, decimal.Decimal): return str(obj) ...
37.146091
218
0.585831
134
0.007423
0
0
16,138
0.893923
0
0
8,291
0.459259
7ccbe673fd6019f10368e191ac41278443f5c053
9,554
py
Python
python/paddle/fluid/tests/unittests/ir/inference/test_trt_reduce_mean_op.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
8
2016-08-15T07:02:27.000Z
2016-08-24T09:34:00.000Z
python/paddle/fluid/tests/unittests/ir/inference/test_trt_reduce_mean_op.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
1
2021-11-01T06:28:16.000Z
2021-11-01T06:28:16.000Z
python/paddle/fluid/tests/unittests/ir/inference/test_trt_reduce_mean_op.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
5
2021-12-10T11:20:06.000Z
2022-02-18T05:18:12.000Z
# Copyright (c) 2021 PaddlePaddle 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 appli...
40.483051
82
0.626125
8,590
0.8991
0
0
0
0
0
0
1,111
0.116286
7ccc10fc8c636712784281edcf93b9e16ef2ae97
2,202
py
Python
configs/vinbig/detectors_resnext.py
SeHwanJoo/mmdetection_vinbig
9a27d2b5cd8b3ec9ed1a94e4704a7c883f15dce3
[ "Apache-2.0" ]
2
2021-04-01T08:17:08.000Z
2021-07-12T11:53:53.000Z
configs/vinbig/detectors_resnext.py
SeHwanJoo/mmdetection_vinbig
9a27d2b5cd8b3ec9ed1a94e4704a7c883f15dce3
[ "Apache-2.0" ]
null
null
null
configs/vinbig/detectors_resnext.py
SeHwanJoo/mmdetection_vinbig
9a27d2b5cd8b3ec9ed1a94e4704a7c883f15dce3
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/cascade_rcnn_r50_fpn.py', './dataset_base.py', './scheduler_base.py', '../_base_/default_runtime.py' ] model = dict( pretrained='open-mmlab://resnext101_32x4d', backbone=dict( type='DetectoRS_ResNeXt', pretrained='open-mmlab://resnext101_32x4d', ...
27.525
57
0.475931
0
0
0
0
0
0
0
0
392
0.17802
7cccbb5b10c9e4406bbef811b8c0c86a34ddfd24
26,701
py
Python
skbio/draw/tests/test_distributions.py
johnchase/scikit-bio
340e6153b6c93053d923d344e63481860e03731e
[ "BSD-3-Clause" ]
null
null
null
skbio/draw/tests/test_distributions.py
johnchase/scikit-bio
340e6153b6c93053d923d344e63481860e03731e
[ "BSD-3-Clause" ]
null
null
null
skbio/draw/tests/test_distributions.py
johnchase/scikit-bio
340e6153b6c93053d923d344e63481860e03731e
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
46.275563
79
0.562638
25,743
0.964121
0
0
0
0
0
0
4,395
0.164601
7ccec8a64f1094a2aaa4d1c42f4858ca203734a3
122
py
Python
packages/gtmapi/lmsrvcore/api/interfaces/__init__.py
jjwatts/gigantum-client
88ce0475fb6880322bdd06d987c494e29064f278
[ "MIT" ]
60
2018-09-26T15:46:00.000Z
2021-10-10T02:37:14.000Z
packages/gtmapi/lmsrvcore/api/interfaces/__init__.py
jjwatts/gigantum-client
88ce0475fb6880322bdd06d987c494e29064f278
[ "MIT" ]
1,706
2018-09-26T16:11:22.000Z
2021-08-20T13:37:59.000Z
packages/gtmapi/lmsrvcore/api/interfaces/__init__.py
jjwatts/gigantum-client
88ce0475fb6880322bdd06d987c494e29064f278
[ "MIT" ]
11
2019-03-14T13:23:51.000Z
2022-01-25T01:29:16.000Z
from lmsrvcore.api.interfaces.user import User from lmsrvcore.api.interfaces.git import GitCommit, GitRef, GitRepository
30.5
73
0.844262
0
0
0
0
0
0
0
0
0
0
7cced65964aa995783474d3ea16a3fdb37a88182
3,570
py
Python
tensorflow_probability/python/bijectors/invert_test.py
matthieucoquet/probability
2426f4fc4743ceedc1a638a03d19ce6654ebff76
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/invert_test.py
matthieucoquet/probability
2426f4fc4743ceedc1a638a03d19ce6654ebff76
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/invert_test.py
matthieucoquet/probability
2426f4fc4743ceedc1a638a03d19ce6654ebff76
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 law o...
38.387097
95
0.693557
2,192
0.614006
0
0
2,236
0.626331
0
0
820
0.229692
7ccf2b0c1cc9f5a9318ca8b0e302ba7e965fbb1e
4,394
py
Python
dayu_widgets/alert.py
ZSD-tim/dayu_widgets
31c2530bdc4161d9311574d9850c2e9471e53072
[ "MIT" ]
null
null
null
dayu_widgets/alert.py
ZSD-tim/dayu_widgets
31c2530bdc4161d9311574d9850c2e9471e53072
[ "MIT" ]
null
null
null
dayu_widgets/alert.py
ZSD-tim/dayu_widgets
31c2530bdc4161d9311574d9850c2e9471e53072
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: Mu yanru # Date : 2019.2 # Email : muyanru345@163.com ################################################################### """ MAlert class. """ import six import functools from dayu_widgets.avat...
32.072993
98
0.62244
3,789
0.862312
0
0
3,805
0.865954
0
0
1,113
0.2533
7cd0a40cffa8dae1e2b1f6c63ccd1a5c2242724b
86
py
Python
week03/code05.py
byeongal/KMUCP
5bafe02c40aae67fc53d9e6cdcb727929368587e
[ "MIT" ]
null
null
null
week03/code05.py
byeongal/KMUCP
5bafe02c40aae67fc53d9e6cdcb727929368587e
[ "MIT" ]
null
null
null
week03/code05.py
byeongal/KMUCP
5bafe02c40aae67fc53d9e6cdcb727929368587e
[ "MIT" ]
1
2019-11-27T20:28:19.000Z
2019-11-27T20:28:19.000Z
input_str = input("문자열을 입력해 주세요. >> ") print("입력받은 문자열의 길이는", len(input_str), "입니다.")
28.666667
46
0.639535
0
0
0
0
0
0
0
0
88
0.656716
7cd14d3a6d6b9088b4271089222cd9080f058243
5,664
py
Python
jobs/SCH/JB_SALES_HIERARCHY_FLAG_N_SR.py
bibinvasudev/EBI_Project
df2560139e463d68a37e67e0bb683c06fa9ef91b
[ "CNRI-Python" ]
null
null
null
jobs/SCH/JB_SALES_HIERARCHY_FLAG_N_SR.py
bibinvasudev/EBI_Project
df2560139e463d68a37e67e0bb683c06fa9ef91b
[ "CNRI-Python" ]
null
null
null
jobs/SCH/JB_SALES_HIERARCHY_FLAG_N_SR.py
bibinvasudev/EBI_Project
df2560139e463d68a37e67e0bb683c06fa9ef91b
[ "CNRI-Python" ]
null
null
null
# SCH1101.sh --> JB_SALES_HIERARCHY_FLAG_N_SR.py #************************************************************************************************************** # # Created by : bibin # Version : 1.0 # # Description : # 1. This script will load the data into 'SALES_HIERARCHY' table based on stre...
38.794521
218
0.625883
0
0
0
0
0
0
0
0
3,828
0.675847
7cd1e3bcc66dd50fd9167cfd73166db8b21f6910
670
py
Python
myth/util.py
amanbhandari2002/mythproto
b03764485dad5178127307a3b3e4ddc508158143
[ "BSD-3-Clause" ]
1
2020-10-01T09:17:00.000Z
2020-10-01T09:17:00.000Z
myth/util.py
amanbhandari2002/mythproto
b03764485dad5178127307a3b3e4ddc508158143
[ "BSD-3-Clause" ]
null
null
null
myth/util.py
amanbhandari2002/mythproto
b03764485dad5178127307a3b3e4ddc508158143
[ "BSD-3-Clause" ]
2
2020-09-30T19:53:40.000Z
2020-10-01T09:13:08.000Z
def decodeLongLong(lst): high = int(lst[0]) << 32 low = int(lst[1]) if low < 0: low += 4294967296 if high < 0: high += 4294967296 return high + low def encodeLongLong(i): high = int(i / 4294967296) low = i - high return high, low def parseOk(str): if str == 'ok': return True else: return False def ...
18.108108
80
0.631343
0
0
0
0
0
0
0
0
193
0.28806
7cd283a215a5ab2f5c601f954e24742216c659e4
14,208
py
Python
scripts/tator_tracker.py
openem-team/openem
45222c9c77084eacab278da25a8734ae7d43f677
[ "MIT" ]
10
2019-01-23T23:58:01.000Z
2021-08-30T19:42:35.000Z
scripts/tator_tracker.py
openem-team/openem
45222c9c77084eacab278da25a8734ae7d43f677
[ "MIT" ]
3
2020-03-20T15:21:41.000Z
2020-09-18T18:49:38.000Z
scripts/tator_tracker.py
openem-team/openem
45222c9c77084eacab278da25a8734ae7d43f677
[ "MIT" ]
2
2020-05-08T17:39:12.000Z
2020-10-09T01:27:17.000Z
#!/usr/bin/env python3 import argparse import openem import os import cv2 import numpy as np from openem.tracking import * import json import sys import datetime import tator from pprint import pprint from collections import defaultdict import yaml import math import subprocess import sys def crop_localization(fram...
39.248619
126
0.551943
0
0
0
0
0
0
0
0
2,405
0.169271
7cd30f449f940b3e03ca41f6babd9a375fe19ebf
1,167
py
Python
hypergan/losses/multi_loss.py
Darkar25/HyperGAN
76ef7e0c20569ceece88dc76396d92c77050692b
[ "MIT" ]
1
2019-05-29T14:24:04.000Z
2019-05-29T14:24:04.000Z
hypergan/losses/multi_loss.py
KonradLinkowski/HyperGAN
3153daee838dbb8e8d8926b1e81419682a24f2fe
[ "MIT" ]
218
2021-05-25T01:46:15.000Z
2022-02-11T01:08:52.000Z
hypergan/losses/multi_loss.py
KonradLinkowski/HyperGAN
3153daee838dbb8e8d8926b1e81419682a24f2fe
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import hyperchamber as hc from hypergan.losses.base_loss import BaseLoss from hypergan.multi_component import MultiComponent TINY=1e-8 class MultiLoss(BaseLoss): """Takes multiple distributions and does an additional approximator""" def _create(self, d_real, d_fake):...
26.522727
99
0.61868
984
0.843188
0
0
0
0
0
0
108
0.092545
7cd33c8d7f17b4aa6fc5f6d3f2701686f2ce01a4
13,643
py
Python
src/fidesops/api/v1/endpoints/policy_endpoints.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
src/fidesops/api/v1/endpoints/policy_endpoints.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
src/fidesops/api/v1/endpoints/policy_endpoints.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
import logging from typing import Any, Dict, List from fastapi import APIRouter, Body, Depends, Security from fastapi_pagination import ( Page, Params, ) from fastapi_pagination.bases import AbstractPage from fastapi_pagination.ext.sqlalchemy import paginate from fidesops.schemas.shared_schemas import FidesOp...
31.95082
113
0.609543
0
0
0
0
11,896
0.871949
0
0
2,826
0.207139
7cd398bd2b3034834a61ea93e2ee16c8e1011acb
7,425
py
Python
engage-analytics/sentiment_analysis/src/report/interface_report.py
oliveriopt/mood-analytics
c98eb8c483a05af938a2f6f49d8ea803f5711572
[ "Apache-2.0" ]
null
null
null
engage-analytics/sentiment_analysis/src/report/interface_report.py
oliveriopt/mood-analytics
c98eb8c483a05af938a2f6f49d8ea803f5711572
[ "Apache-2.0" ]
2
2020-03-27T19:14:44.000Z
2020-03-27T19:14:44.000Z
engage-analytics/sentiment_analysis/src/report/interface_report.py
oliveriopt/mood-analytics
c98eb8c483a05af938a2f6f49d8ea803f5711572
[ "Apache-2.0" ]
null
null
null
import emoji import sentiment_analysis.src.report.cons_report as cons import sentiment_analysis.src.constants as global_cons from utils.data_connection.api_data_manager import APISourcesFetcher from utils.utilities import read_json_file, CUSTOM_YEAR_WEEK_AGG, extract_dimension, extract_question from sentiment_analysis...
40.135135
116
0.644175
6,931
0.933468
0
0
370
0.049832
0
0
1,087
0.146397
7cd4c163b81a2a9f7a9f4fb51454b97b7933bffd
1,565
py
Python
dwh_analytic/dags/data_warehouse_prod/schema/dim_process.py
dnguyenngoc/analytic
d609a93e96e7c546ad3ee3ebd4e13309ddf575f8
[ "MIT" ]
null
null
null
dwh_analytic/dags/data_warehouse_prod/schema/dim_process.py
dnguyenngoc/analytic
d609a93e96e7c546ad3ee3ebd4e13309ddf575f8
[ "MIT" ]
null
null
null
dwh_analytic/dags/data_warehouse_prod/schema/dim_process.py
dnguyenngoc/analytic
d609a93e96e7c546ad3ee3ebd4e13309ddf575f8
[ "MIT" ]
null
null
null
resource ='human ad machime' class DimProcess: def __init__( self, *kwargs, process_key: int, module: str, type: str, step: str, sub_step: str, resource: str = 'human', ): def step(self): return ['qc', 'auto_qc', 'apr_qc', 'ke...
27.946429
62
0.548882
1,525
0.974441
0
0
0
0
0
0
208
0.132907
7cd59f2bf170f30d86846848bf3c6c4bf7b96d9c
2,491
py
Python
lino/modlib/gfks/mixins.py
NewRGB/lino
43799e42107169ff173d3b8bc0324d5773471499
[ "BSD-2-Clause" ]
1
2019-11-13T19:38:50.000Z
2019-11-13T19:38:50.000Z
lino/modlib/gfks/mixins.py
NewRGB/lino
43799e42107169ff173d3b8bc0324d5773471499
[ "BSD-2-Clause" ]
null
null
null
lino/modlib/gfks/mixins.py
NewRGB/lino
43799e42107169ff173d3b8bc0324d5773471499
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- # Copyright 2010-2018 Rumma & Ko Ltd # License: BSD (see file COPYING for details) from builtins import object from django.contrib.contenttypes.models import * from django.conf import settings from django.utils.translation import ugettext_lazy as _ from django.utils.text import format_lazy ...
30.753086
71
0.635488
2,040
0.818948
0
0
581
0.23324
0
0
310
0.124448
7cd5ad9a803e1cac21f7d6ba2961e58bea3c98da
21,926
py
Python
optical_form_reader/main.py
1enes/optical_form_reader
fab99f2403c25f84fcb5bdac50148ab248432516
[ "MIT" ]
null
null
null
optical_form_reader/main.py
1enes/optical_form_reader
fab99f2403c25f84fcb5bdac50148ab248432516
[ "MIT" ]
null
null
null
optical_form_reader/main.py
1enes/optical_form_reader
fab99f2403c25f84fcb5bdac50148ab248432516
[ "MIT" ]
null
null
null
import cv2 import numpy as np from imutils import contours from imutils.perspective import four_point_transform import imutils import cv2 import matplotlib.pyplot as plt import numpy as np from imutils import contours from imutils.perspective import four_point_transform,order_points import imutils cevap_an...
31.100709
223
0.622457
0
0
0
0
0
0
0
0
3,478
0.158199
7cd6ff8a4443655a42df05eccf62b0e804763fb0
2,898
py
Python
service.py
Tigge/script.filmtipset-grade
a5b438dc478d6ef40f611585e9cd196c2ff49cf6
[ "BSD-2-Clause" ]
1
2015-02-19T08:45:57.000Z
2015-02-19T08:45:57.000Z
service.py
Tigge/script.filmtipset-grade
a5b438dc478d6ef40f611585e9cd196c2ff49cf6
[ "BSD-2-Clause" ]
1
2015-02-01T19:28:17.000Z
2015-03-18T22:27:14.000Z
service.py
Tigge/script.filmtipset-grade
a5b438dc478d6ef40f611585e9cd196c2ff49cf6
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2013, Gustav Tiger # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and th...
34.094118
82
0.670807
1,306
0.450656
0
0
0
0
0
0
1,486
0.512767
7cd8fbdd89ede56684cdd39b8bd8583e3ed86ea6
16,528
py
Python
test/testMatrix.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
1
2021-05-26T19:22:17.000Z
2021-05-26T19:22:17.000Z
test/testMatrix.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
null
null
null
test/testMatrix.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
null
null
null
import unittest from nzmath.matrix import * import nzmath.vector as vector import nzmath.rational as rational import nzmath.poly.uniutil as uniutil Ra = rational.Rational Poly = uniutil.polynomial Int = rational.theIntegerRing # sub test try: from test.testMatrixFiniteField import * except: try: from...
35.165957
94
0.575811
14,147
0.855941
0
0
0
0
0
0
279
0.01688
7cd9e1b23df0b17b32715fc652a510c5c85b28ff
372
py
Python
python/test-nose-3.py
li-ma/homework
d75b1752a02bd028af0806683abe079c7b0a9b29
[ "Apache-2.0" ]
null
null
null
python/test-nose-3.py
li-ma/homework
d75b1752a02bd028af0806683abe079c7b0a9b29
[ "Apache-2.0" ]
null
null
null
python/test-nose-3.py
li-ma/homework
d75b1752a02bd028af0806683abe079c7b0a9b29
[ "Apache-2.0" ]
null
null
null
# Module Level def setUp(): print 'test setup' def tearDown(): print 'test teardown' # Function Level def func_1_setup(): print 'test_func_1 setup' def func_1_teardown(): print 'test_func_1_teardown' # Target Func def test_func_1(): print 'test_func_1 run' assert True test_func_1.setUp = f...
15.5
38
0.72043
0
0
0
0
0
0
0
0
128
0.344086
7cda6328ac58b61f05923cca8623aa6b42f94561
3,591
py
Python
lib/reindex/reporting.py
scality/utapi
29475f1b9aa25cf3c883262bfb6f4573f846a5b7
[ "Apache-2.0" ]
13
2016-10-07T20:25:11.000Z
2022-02-23T06:33:59.000Z
lib/reindex/reporting.py
scality/utapi
29475f1b9aa25cf3c883262bfb6f4573f846a5b7
[ "Apache-2.0" ]
427
2016-08-17T18:03:32.000Z
2022-03-31T10:46:12.000Z
lib/reindex/reporting.py
scality/utapi
29475f1b9aa25cf3c883262bfb6f4573f846a5b7
[ "Apache-2.0" ]
5
2017-04-25T21:13:03.000Z
2018-01-23T00:21:06.000Z
import requests import redis import json import ast import sys import time import urllib import re import sys from threading import Thread from concurrent.futures import ThreadPoolExecutor import argparse def get_options(): parser = argparse.ArgumentParser() parser.add_argument("-i", "--sentinel-ip", default=...
35.554455
114
0.634085
1,425
0.396825
0
0
0
0
0
0
783
0.218045
7cdbf4b64b3ba075f66b013f73d0f70e791b05ee
52,272
py
Python
src/skim/modeling/skim_attention/modeling_skim.py
recitalAI/skim-attention
a37a277072d1f70ea615cfd19e5b84a6effd2464
[ "Apache-2.0" ]
4
2021-09-08T17:20:59.000Z
2021-12-08T07:49:24.000Z
src/skim/modeling/skim_attention/modeling_skim.py
recitalAI/skim-attention
a37a277072d1f70ea615cfd19e5b84a6effd2464
[ "Apache-2.0" ]
null
null
null
src/skim/modeling/skim_attention/modeling_skim.py
recitalAI/skim-attention
a37a277072d1f70ea615cfd19e5b84a6effd2464
[ "Apache-2.0" ]
1
2021-12-09T00:02:23.000Z
2021-12-09T00:02:23.000Z
from collections import namedtuple import logging from dataclasses import dataclass from typing import Optional, Tuple import math import torch from torch import nn from torch.nn import CrossEntropyLoss, LayerNorm from torch.autograd.function import Function from transformers.file_utils import ( ModelOutput, ) ...
39.540091
168
0.661674
51,050
0.976604
0
0
1,960
0.037495
0
0
6,760
0.129321
7cdcd3e9c2d7e86acfb845c8d72f0dc9c0f23f7d
2,290
py
Python
api/routers/dashboard.py
xming521/coco_API
51d7ac3141e58f1d6a5438af135fba3ea101bd53
[ "MIT" ]
null
null
null
api/routers/dashboard.py
xming521/coco_API
51d7ac3141e58f1d6a5438af135fba3ea101bd53
[ "MIT" ]
null
null
null
api/routers/dashboard.py
xming521/coco_API
51d7ac3141e58f1d6a5438af135fba3ea101bd53
[ "MIT" ]
null
null
null
import time import psutil import pymysql from fastapi import APIRouter from api.utils import response_code router = APIRouter() @router.get('/dashboard/getinfo') def getinfo(): from init_global import g res = {} db = g.db_pool.connection() cur = db.cursor() cur.execute(f'select count(app_name) ...
30.533333
79
0.620524
0
0
0
0
718
0.303723
0
0
491
0.207699
7cdd5ddf7b7d2568fd208a60927251ae8e3ac857
10,399
py
Python
retargeting/models/Kinematics.py
yujiatay/deep-motion-editing
0a6fc5fd20059c5074f68a452cd49cf6ede36ea8
[ "BSD-2-Clause" ]
1
2021-07-06T14:34:12.000Z
2021-07-06T14:34:12.000Z
retargeting/models/Kinematics.py
bmd080/deep-motion-editing
19604abdc0ead66f8c82d9211b8c5862c6a68089
[ "BSD-2-Clause" ]
null
null
null
retargeting/models/Kinematics.py
bmd080/deep-motion-editing
19604abdc0ead66f8c82d9211b8c5862c6a68089
[ "BSD-2-Clause" ]
null
null
null
import torch import torch.nn as nn import numpy as np import math class ForwardKinematics: def __init__(self, args, edges): self.topology = [-1] * (len(edges) + 1) self.rotation_map = [] for i, edge in enumerate(edges): self.topology[edge[1]] = edge[0] self.rotation...
36.233449
131
0.521877
10,327
0.993076
0
0
4,256
0.40927
0
0
960
0.092317
7cdd5ff32b1c2238dcf9d02a8e0c07b84239dfc5
13,145
py
Python
tests/operators/test_hive_operator.py
Ryan-Miao/airflow
a2aca8714fac014ed7da97229d7877f1bc6e5a59
[ "Apache-2.0" ]
null
null
null
tests/operators/test_hive_operator.py
Ryan-Miao/airflow
a2aca8714fac014ed7da97229d7877f1bc6e5a59
[ "Apache-2.0" ]
null
null
null
tests/operators/test_hive_operator.py
Ryan-Miao/airflow
a2aca8714fac014ed7da97229d7877f1bc6e5a59
[ "Apache-2.0" ]
1
2020-09-29T05:26:34.000Z
2020-09-29T05:26:34.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.005935
88
0.617117
11,795
0.897299
0
0
1,475
0.11221
0
0
3,858
0.293496
7cdde129ca347d44c4fc15ae483831b97628b1d6
4,553
py
Python
main.py
OrionDark7/Alakajam12
4f9f8f87a05feb718baddb12aa8cbbed3e36a071
[ "MIT" ]
null
null
null
main.py
OrionDark7/Alakajam12
4f9f8f87a05feb718baddb12aa8cbbed3e36a071
[ "MIT" ]
null
null
null
main.py
OrionDark7/Alakajam12
4f9f8f87a05feb718baddb12aa8cbbed3e36a071
[ "MIT" ]
null
null
null
import pygame, math from game import map, ui window = pygame.display.set_mode([800, 600]) ui.window = window screen = "game" s = {"fullscreen": False} running = True gamedata = {"level": 0, "coal": 0, "iron": 1, "copper":0} tiles = pygame.sprite.Group() rails = pygame.sprite.Group() carts = pygame.sprite.Group() inter...
40.292035
124
0.573468
461
0.101252
0
0
0
0
0
0
368
0.080826
7cde0e155e222f52e34bae521e25a21b28caf52a
550
py
Python
Code/extract_method3.py
AbdullahNoori/CS-2.1-Trees-Sorting
59ba182d60abe6171a3d7d64981f79ee192de3bb
[ "MIT" ]
null
null
null
Code/extract_method3.py
AbdullahNoori/CS-2.1-Trees-Sorting
59ba182d60abe6171a3d7d64981f79ee192de3bb
[ "MIT" ]
null
null
null
Code/extract_method3.py
AbdullahNoori/CS-2.1-Trees-Sorting
59ba182d60abe6171a3d7d64981f79ee192de3bb
[ "MIT" ]
null
null
null
# Written by Kamran Bigdely # Example for Compose Methods: Extract Method. import math def get_distance(xc1=5, xc2=7.25, yc1=22, yc2=-4.84): # Calculate the distance between the two circle return math.sqrt((xc1-xc2)**2 + (yc1 - yc2)**2) print('distance', get_distance()) # *** somewhere else in your progra...
26.190476
88
0.670909
0
0
0
0
0
0
0
0
262
0.476364
7cde5911adb7d9da7046ae21614759503f243fc8
51,158
py
Python
sympy/integrals/prde.py
Abhi58/sympy
5ca228b17a7d44ef08a268ba1fa959d5763634af
[ "BSD-3-Clause" ]
2
2019-06-12T16:15:39.000Z
2019-10-06T10:40:59.000Z
sympy/integrals/prde.py
Abhi58/sympy
5ca228b17a7d44ef08a268ba1fa959d5763634af
[ "BSD-3-Clause" ]
null
null
null
sympy/integrals/prde.py
Abhi58/sympy
5ca228b17a7d44ef08a268ba1fa959d5763634af
[ "BSD-3-Clause" ]
1
2019-10-02T10:47:13.000Z
2019-10-02T10:47:13.000Z
""" Algorithms for solving Parametric Risch Differential Equations. The methods used for solving Parametric Risch Differential Equations parallel those for solving Risch Differential Equations. See the outline in the docstring of rde.py for more information. The Parametric Risch Differential Equation problem is, giv...
40.123922
110
0.561222
0
0
0
0
0
0
0
0
28,281
0.552817
7ce07b8311ef90c93682c15fc681abf9e95c0bb7
1,076
py
Python
ssh_telnet/netmiko/ex07_netmiko_command_mult_prompts.py
levs72/pyneng-examples
d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9
[ "MIT" ]
11
2021-04-05T09:30:23.000Z
2022-03-09T13:27:56.000Z
ssh_telnet/netmiko/ex07_netmiko_command_mult_prompts.py
levs72/pyneng-examples
d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9
[ "MIT" ]
null
null
null
ssh_telnet/netmiko/ex07_netmiko_command_mult_prompts.py
levs72/pyneng-examples
d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9
[ "MIT" ]
11
2021-04-06T03:44:35.000Z
2022-03-04T21:20:40.000Z
from pprint import pprint import yaml import netmiko import paramiko def send_cmd_with_prompt(device, command, *, wait_for, confirmation): if type(wait_for) == str: wait_for = [wait_for] if type(confirmation) == str: confirmation = [confirmation] with netmiko.Netmiko(**device) as ssh: ...
25.619048
84
0.616171
0
0
0
0
0
0
0
0
165
0.153346
7ce0fee58832e03db2dedb448c80880f25c203aa
800
py
Python
mppi/Utilities/AttributeDict.py
marcodalessandro76/MPPI
ad60b73270b1f376ac501d47285146f1c3af457a
[ "MIT" ]
1
2019-05-04T09:26:36.000Z
2019-05-04T09:26:36.000Z
mppi/Utilities/AttributeDict.py
marcodalessandro76/MPPI
ad60b73270b1f376ac501d47285146f1c3af457a
[ "MIT" ]
null
null
null
mppi/Utilities/AttributeDict.py
marcodalessandro76/MPPI
ad60b73270b1f376ac501d47285146f1c3af457a
[ "MIT" ]
null
null
null
class AttributeDict(object): """ A class to convert a nested Dictionary into an object with key-values accessibly using attribute notation (AttributeDict.attribute) instead of key notation (Dict["key"]). This class recursively sets Dicts to objects, allowing you to recurse down nested dicts (like: A...
34.782609
77
0.62875
799
0.99875
0
0
0
0
0
0
381
0.47625
7ce146b894402021fe89e46e79f310a76ff9ef08
2,479
py
Python
LightTestLoop.py
Growing-Beyond-Earth/GettingStarted
04c2fd5fa36224ac25a6c6c62c4d6e558b27e700
[ "Apache-2.0" ]
null
null
null
LightTestLoop.py
Growing-Beyond-Earth/GettingStarted
04c2fd5fa36224ac25a6c6c62c4d6e558b27e700
[ "Apache-2.0" ]
null
null
null
LightTestLoop.py
Growing-Beyond-Earth/GettingStarted
04c2fd5fa36224ac25a6c6c62c4d6e558b27e700
[ "Apache-2.0" ]
null
null
null
# GROWNG BEYOND EARTH CONTROL BOX Traning # RASPBERRY PI PICO / MICROPYTHON # FAIRCHILD TROPICAL BOTANIC GARDEN, Oct 18, 2021 # The Growing Beyond Earth (GBE) control box is a device that controls # the LED lights and fan in a GBE growth chamber. It can also control # accessories including a 12v water pump and enviro...
38.138462
92
0.745058
0
0
0
0
0
0
0
0
1,800
0.726099
7ce15c82ddc26277baddffb09d13b58c226ab5d6
3,409
py
Python
core/known_bugs_utils.py
nicolasbock/hotsos
6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a
[ "Apache-2.0" ]
null
null
null
core/known_bugs_utils.py
nicolasbock/hotsos
6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a
[ "Apache-2.0" ]
null
null
null
core/known_bugs_utils.py
nicolasbock/hotsos
6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a
[ "Apache-2.0" ]
null
null
null
import os import yaml from core import plugintools from core import constants from core.searchtools import SearchDef from core.issues.issue_utils import IssueEntry LAUNCHPAD = "launchpad" MASTER_YAML_KNOWN_BUGS_KEY = "bugs-detected" KNOWN_BUGS = {MASTER_YAML_KNOWN_BUGS_KEY: []} class BugSearchDef(SearchDef): de...
33.097087
79
0.680845
1,146
0.336169
0
0
59
0.017307
0
0
1,060
0.310942
7ce16cb7ee2c1e090289468a70fd88401aba8ddc
339
py
Python
examples/xml-rpc/echoserver.py
keobox/yap101
26913da9f61ef3d0d9cb3ef54bbfc451a9ef9de9
[ "MIT" ]
null
null
null
examples/xml-rpc/echoserver.py
keobox/yap101
26913da9f61ef3d0d9cb3ef54bbfc451a9ef9de9
[ "MIT" ]
null
null
null
examples/xml-rpc/echoserver.py
keobox/yap101
26913da9f61ef3d0d9cb3ef54bbfc451a9ef9de9
[ "MIT" ]
null
null
null
import SimpleXMLRPCServer as xmls def echo(msg): print 'Got', msg return msg class echoserver(xmls.SimpleXMLRPCServer): allow_reuse_address = True server = echoserver(('127.0.0.1', 8001)) server.register_function(echo, 'echo') print 'Listening on port 8001' try: server.serve_forever() except: ser...
19.941176
42
0.728614
73
0.215339
0
0
0
0
0
0
46
0.135693
7ce1993cbdc65a6d053c9478a3f9b9475d29bb5c
7,083
py
Python
tf_pose/slim/nets/mobilenet/mobilenet_v2_test.py
gpspelle/pose-estimation
b817dcc120092002984d8a41431046f323bc02c8
[ "Apache-2.0" ]
862
2019-12-11T18:40:48.000Z
2022-03-29T15:23:58.000Z
tf_pose/slim/nets/mobilenet/mobilenet_v2_test.py
bvanelli/tf-pose-estimation
1dec506ac8abf00616dc0fe76bf476ccdfd6b93e
[ "Apache-2.0" ]
72
2019-05-07T18:33:32.000Z
2022-03-10T07:48:39.000Z
tf_pose/slim/nets/mobilenet/mobilenet_v2_test.py
bvanelli/tf-pose-estimation
1dec506ac8abf00616dc0fe76bf476ccdfd6b93e
[ "Apache-2.0" ]
165
2019-12-11T20:04:22.000Z
2022-03-29T06:18:12.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.278947
80
0.674432
5,753
0.812226
0
0
0
0
0
0
1,684
0.237752
7ce2ce6e7522a59e86a553aeb0f5ee90bd00e269
1,402
py
Python
firebase-gist.py
darwin/firebase-gist
5aa4eb89e82fbf2971d7afca07471e1f51ff6e51
[ "MIT" ]
1
2017-08-15T15:37:21.000Z
2017-08-15T15:37:21.000Z
firebase-gist.py
darwin/firebase-gist
5aa4eb89e82fbf2971d7afca07471e1f51ff6e51
[ "MIT" ]
null
null
null
firebase-gist.py
darwin/firebase-gist
5aa4eb89e82fbf2971d7afca07471e1f51ff6e51
[ "MIT" ]
null
null
null
from firebase import firebase import os import datetime import json import logging from boto.s3.connection import S3Connection from boto.s3.key import Key from github3 import login firebase_url = os.environ['FIREBASE_DB'] firebase_secret = os.environ['FIREBASE_SECRET'] firebase_path = os.environ['FIREBASE_PATH'] fireb...
25.962963
100
0.738231
0
0
0
0
0
0
0
0
264
0.188302
7ce32e38118a236e7f22400e28b670e7f2079e82
869
py
Python
practice/2008/qualification/C-Fly_swatter/c.py
victorWeiFreelancer/CodeJam
edb8f921860a35985823cb3dbd3ebec8a8f3c12f
[ "MIT" ]
null
null
null
practice/2008/qualification/C-Fly_swatter/c.py
victorWeiFreelancer/CodeJam
edb8f921860a35985823cb3dbd3ebec8a8f3c12f
[ "MIT" ]
null
null
null
practice/2008/qualification/C-Fly_swatter/c.py
victorWeiFreelancer/CodeJam
edb8f921860a35985823cb3dbd3ebec8a8f3c12f
[ "MIT" ]
null
null
null
import sys sys.dont_write_bytecode = True def hitP(f, R, t, r, g): if f>=g/2 : return 0.0 missArea = 0.0 gridL = g+2*r nGrids = (R - t) // gridL missGridSideLength = g - 2*f print("gridL %.12f; nGrids %d" %(gridL, nGrids) ) indentSquareLength = nGrids*gridL remain = (R - t) - in...
25.558824
69
0.537399
0
0
0
0
0
0
0
0
84
0.096663
7ce34380af3cdc654ec22dc00486fd1079b00edb
25,614
py
Python
synapse/notifier.py
rkfg/synapse
0b3112123da5fae4964db784e3bab0c4d83d9d62
[ "Apache-2.0" ]
1
2021-09-09T08:50:13.000Z
2021-09-09T08:50:13.000Z
synapse/notifier.py
rkfg/synapse
0b3112123da5fae4964db784e3bab0c4d83d9d62
[ "Apache-2.0" ]
null
null
null
synapse/notifier.py
rkfg/synapse
0b3112123da5fae4964db784e3bab0c4d83d9d62
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 - 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
36.025316
87
0.605216
23,381
0.912821
0
0
1,124
0.043882
8,080
0.315452
6,863
0.267939
7ce35b3e99fb727d7c2e93f64173851978f39e8c
30,955
py
Python
saleor/checkout/tests/test_base_calculations.py
nestfiy/saleor
6fce3bc5c0ca72ac28db99553e6d2b49249c6dac
[ "CC-BY-4.0" ]
null
null
null
saleor/checkout/tests/test_base_calculations.py
nestfiy/saleor
6fce3bc5c0ca72ac28db99553e6d2b49249c6dac
[ "CC-BY-4.0" ]
76
2021-11-01T04:53:42.000Z
2022-03-28T04:51:25.000Z
saleor/checkout/tests/test_base_calculations.py
nestfiy/saleor
6fce3bc5c0ca72ac28db99553e6d2b49249c6dac
[ "CC-BY-4.0" ]
null
null
null
from decimal import Decimal from prices import Money, TaxedMoney from ...discount import DiscountValueType, VoucherType from ...discount.utils import get_product_discount_on_sale from ..base_calculations import ( base_checkout_total, base_tax_rate, calculate_base_line_total_price, calculate_base_line_...
37.475787
88
0.772767
0
0
0
0
0
0
0
0
862
0.027847
7ce3c5ddd55aea55c48d0f942c54f7645b346e45
24,690
py
Python
tests/test_date.py
andy-z/ged4py
2270bd8366174dcc98424cc6671bdaecf770fda0
[ "MIT" ]
10
2017-07-25T22:39:34.000Z
2022-03-01T04:40:38.000Z
tests/test_date.py
andy-z/ged4py
2270bd8366174dcc98424cc6671bdaecf770fda0
[ "MIT" ]
20
2018-03-25T10:25:40.000Z
2021-05-02T20:38:48.000Z
tests/test_date.py
andy-z/ged4py
2270bd8366174dcc98424cc6671bdaecf770fda0
[ "MIT" ]
6
2018-04-29T12:45:34.000Z
2021-09-14T14:30:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `ged4py.date` module.""" import unittest from ged4py.calendar import ( CalendarType, CalendarDate, FrenchDate, GregorianDate, HebrewDate, JulianDate, CalendarDateVisitor ) from ged4py.date import ( DateValue, DateValueAbout, DateValueAfter, DateV...
41.356784
108
0.637708
24,147
0.978007
0
0
0
0
0
0
4,034
0.163386
7ce3f2fa9ab64a2e056aae0886c6829b2b5285e6
7,722
py
Python
src/quart/local.py
Dunkledore/quart
803c8678b083895f4ece35fccb6aca56e189ee0a
[ "MIT" ]
3
2020-03-31T10:36:31.000Z
2020-04-23T12:01:10.000Z
venv/lib/python3.9/site-packages/quart/local.py
ryanwwest/kademlia
e1e5b84db0a7710cf372663325041850802d55f1
[ "MIT" ]
6
2020-09-05T01:40:23.000Z
2022-03-12T00:40:58.000Z
src/quart/local.py
ccns1/ccns11
d6edfac34fbee06fe974cda007d24a088d31ad30
[ "MIT" ]
1
2020-09-05T00:19:03.000Z
2020-09-05T00:19:03.000Z
from __future__ import annotations import asyncio import copy from contextvars import ContextVar # noqa # contextvars not understood as stdlib from typing import Any # noqa # contextvars not understood as stdlib from typing import Callable, Dict, Optional class TaskLocal: """An object local to the current task...
41.740541
95
0.630536
7,454
0.965294
104
0.013468
623
0.080679
104
0.013468
1,211
0.156825
7ce4682d4472c3403cd709b201e4107d5de073fb
20,891
py
Python
pytorch3dunet/unet3d/predictor.py
searobbersduck/pytorch-3dunet
5bb8ed2b6966b2cd06b1dc676b62d1ad98329305
[ "MIT" ]
null
null
null
pytorch3dunet/unet3d/predictor.py
searobbersduck/pytorch-3dunet
5bb8ed2b6966b2cd06b1dc676b62d1ad98329305
[ "MIT" ]
null
null
null
pytorch3dunet/unet3d/predictor.py
searobbersduck/pytorch-3dunet
5bb8ed2b6966b2cd06b1dc676b62d1ad98329305
[ "MIT" ]
null
null
null
import time import h5py import hdbscan import numpy as np import torch from sklearn.cluster import MeanShift from pytorch3dunet.datasets.hdf5 import SliceBuilder from pytorch3dunet.unet3d.utils import get_logger from pytorch3dunet.unet3d.utils import unpad logger = get_logger('UNet3DPredictor') class _AbstractPred...
49.387707
134
0.631372
20,580
0.985113
0
0
467
0.022354
0
0
7,574
0.362548
7ce4ea0979a0d8bcdfade749e59f8ad94da264f2
3,487
py
Python
var/spack/repos/builtin/packages/visionary-dev-tools/package.py
electronicvisions/spack
d6121eb35b4948f7d8aef7ec7a305a5123a7439e
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-10T13:47:48.000Z
2019-04-17T13:05:17.000Z
var/spack/repos/builtin/packages/visionary-dev-tools/package.py
einc-eu/spack
15468b92ed21d970c0111ae19144e85e66746433
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-05-28T06:39:59.000Z
2022-03-30T15:12:35.000Z
var/spack/repos/builtin/packages/visionary-dev-tools/package.py
einc-eu/spack
15468b92ed21d970c0111ae19144e85e66746433
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-04-06T09:04:11.000Z
2020-01-24T12:52:12.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os.path as osp class VisionaryDevTools(Package): """Developer convenience packages common to all visionary ...
33.854369
124
0.677086
3,265
0.936335
0
0
0
0
0
0
1,884
0.540293
7ce65373a75b86fe5dcecdc0e2146bc5ea3033e1
3,593
py
Python
extra/convertBAMtoPILFER.py
MartaLoBalastegui/XICRA
74a7e74379c7e1b3fc1360d2c609994e884ee37a
[ "MIT" ]
3
2021-05-16T21:13:22.000Z
2022-01-23T08:47:48.000Z
extra/convertBAMtoPILFER.py
MartaLoBalastegui/XICRA
74a7e74379c7e1b3fc1360d2c609994e884ee37a
[ "MIT" ]
16
2021-03-11T10:51:25.000Z
2022-03-12T01:02:00.000Z
extra/convertBAMtoPILFER.py
MartaLoBalastegui/XICRA
74a7e74379c7e1b3fc1360d2c609994e884ee37a
[ "MIT" ]
3
2021-03-05T10:07:38.000Z
2022-01-23T08:48:06.000Z
#usr/bin/env python ## useful imports import time import io import os import re import sys from sys import argv import subprocess ## ARGV if len (sys.argv) < 5: print ("\nUsage:") print ("python3 %s bam_file folder bedtools_bin samtools_bin logfile\n" %os.path.realpath(__file__)) exit() bam_file = os.path.abspath...
27.219697
138
0.680768
0
0
0
0
0
0
0
0
1,167
0.324798
7ce786042f57d81a5644876d6657fee00934ca96
154
py
Python
day7/main5list.py
nikhilsamninan/python-files
15198459081097058a939b40b5e8ef754e578fe0
[ "Apache-2.0" ]
null
null
null
day7/main5list.py
nikhilsamninan/python-files
15198459081097058a939b40b5e8ef754e578fe0
[ "Apache-2.0" ]
null
null
null
day7/main5list.py
nikhilsamninan/python-files
15198459081097058a939b40b5e8ef754e578fe0
[ "Apache-2.0" ]
null
null
null
a="Betty Bought a butter the butter was bitter so betty bought a better butter which was not bitter" v=[a[-1] for a in a.split() if(len(a)%2==0)] print(v)
51.333333
100
0.707792
0
0
0
0
0
0
0
0
98
0.636364
7ce89a8d2a94f66d0921f4dfd7dff6f5d544c025
2,727
py
Python
app/reader.py
lcarnevale/proxy-mqtt2influx
89b3cd354b465d7451556a2d2ec49ac8688b4f17
[ "MIT" ]
null
null
null
app/reader.py
lcarnevale/proxy-mqtt2influx
89b3cd354b465d7451556a2d2ec49ac8688b4f17
[ "MIT" ]
null
null
null
app/reader.py
lcarnevale/proxy-mqtt2influx
89b3cd354b465d7451556a2d2ec49ac8688b4f17
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python """Writer class based on InfluxDB This implementation does its best to follow the Robert Martin's Clean code guidelines. The comments follows the Google Python Style Guide: https://github.com/google/styleguide/blob/gh-pages/pyguide.md """ __copyright__ = 'Copyright 2...
32.464286
105
0.604694
2,026
0.742941
0
0
0
0
0
0
665
0.243858
7ce89c46f636fde71ee0a887ac7403a640c90ce5
1,781
py
Python
example_problems/tutorial/tiling_mxn-boards_with_1x2-boards/services/tell_if_tilable/tell_if_tilable_server.py
DottaPaperella/TALight
580322c3121c9acde9827f996fd4e39e31d93a6f
[ "MIT" ]
null
null
null
example_problems/tutorial/tiling_mxn-boards_with_1x2-boards/services/tell_if_tilable/tell_if_tilable_server.py
DottaPaperella/TALight
580322c3121c9acde9827f996fd4e39e31d93a6f
[ "MIT" ]
null
null
null
example_problems/tutorial/tiling_mxn-boards_with_1x2-boards/services/tell_if_tilable/tell_if_tilable_server.py
DottaPaperella/TALight
580322c3121c9acde9827f996fd4e39e31d93a6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from sys import stderr, exit, argv from random import randrange #from TALinputs import TALinput from multilanguage import Env, Lang, TALcolors # METADATA OF THIS TAL_SERVICE: problem="tiling_mxn-boards_with_1x2-boards" service="is_tilable" args_list = [ ('m',int), ('n',int), ('my_co...
35.62
242
0.64009
0
0
0
0
0
0
0
0
988
0.554745