hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
62ce5f862620d5f7b946c75f2e5d3723f1339453
1,658
py
Python
sites/kaleva.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
null
null
null
sites/kaleva.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
14
2016-10-14T15:09:42.000Z
2017-03-01T14:29:29.000Z
sites/kaleva.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
1
2020-11-18T13:06:48.000Z
2020-11-18T13:06:48.000Z
# -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup import processor from datetime import datetime def parse( url ): r = requests.get( url ) if r.status_code == 404: return processor.create_dictionary('', url, r.status_code, [u''], [u''], u'', u'', u'', u'', [u''], [u'']) r.encoding = 'UTF-8'...
42.512821
182
0.699638
62ce6cda25606c8b7ebdef1df98dbb4ea94efb13
886
py
Python
tests/helpers/test_run.py
feiphoon/ner-pipeline
1c343eea458e9c546bb8b53adcd22118d171aa63
[ "MIT" ]
null
null
null
tests/helpers/test_run.py
feiphoon/ner-pipeline
1c343eea458e9c546bb8b53adcd22118d171aa63
[ "MIT" ]
null
null
null
tests/helpers/test_run.py
feiphoon/ner-pipeline
1c343eea458e9c546bb8b53adcd22118d171aa63
[ "MIT" ]
null
null
null
from pathlib import Path from freezegun import freeze_time import pytest from src.helpers.run import Run class TestRun: @pytest.fixture(scope="class") @freeze_time("2021-01-01") def mock_run(self): run = Run() run.datetime_now = "2021-01-01-00-00-00" return run def test_run_ha...
30.551724
72
0.677201
62ce6ebe4f35c43b89c6030623e4632a138ae338
653
py
Python
tests/graphics/test_gbufferedimage.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
5
2018-12-03T19:18:50.000Z
2021-05-31T07:17:06.000Z
tests/graphics/test_gbufferedimage.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2020-02-13T20:56:05.000Z
2020-02-19T18:32:56.000Z
tests/graphics/test_gbufferedimage.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2017-06-06T07:29:07.000Z
2017-06-06T07:29:07.000Z
"""Tests for the :mod:`campy.graphics.gbufferedimage` module.""" from campy.graphics.gbufferedimage import GBufferedImage def test_create_empty_image(): image = GBufferedImage(width=50, height=80, bg_color=0xFFFFFF) assert True def test_resize_image(): image = GBufferedImage(width=50, height=80, bg_colo...
26.12
93
0.74732
62ce8233a5ca4ba78192ccce735054a7fb31a134
70,266
py
Python
src/olympia/devhub/views.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2020-07-27T11:22:17.000Z
2020-07-27T11:22:17.000Z
src/olympia/devhub/views.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/devhub/views.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
import datetime import os import time from uuid import UUID, uuid4 from django import forms as django_forms, http from django.conf import settings from django.core.exceptions import PermissionDenied from django.core.files.storage import default_storage as storage from django.db import transaction from django.db.model...
37.940605
79
0.638659
62ce89a72cb1ccc0aa305da3b0e012b993d68e11
7,676
py
Python
VGGNet.py
AkashCherukuri/Image-Colorization
ddc389074fad1f2ea908f0904b17972ea8edd37c
[ "MIT" ]
null
null
null
VGGNet.py
AkashCherukuri/Image-Colorization
ddc389074fad1f2ea908f0904b17972ea8edd37c
[ "MIT" ]
null
null
null
VGGNet.py
AkashCherukuri/Image-Colorization
ddc389074fad1f2ea908f0904b17972ea8edd37c
[ "MIT" ]
1
2021-11-30T10:51:44.000Z
2021-11-30T10:51:44.000Z
import numpy as np from datetime import datetime import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import DataLoader from torchvision import datasets, transforms import matplotlib.pyplot as plt # check device DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu' # paramet...
30.827309
110
0.611907
62ce94430affb79f6a75c3e17f52b4a781b99f6e
2,389
py
Python
cube/tests/test_filters.py
plivo/cube-client
5e27390052a02066a2d91bf32e6dc2b526253f7e
[ "MIT" ]
5
2015-03-26T17:43:32.000Z
2020-04-22T11:28:08.000Z
cube/tests/test_filters.py
sandeepraju/cube-client
5e27390052a02066a2d91bf32e6dc2b526253f7e
[ "MIT" ]
null
null
null
cube/tests/test_filters.py
sandeepraju/cube-client
5e27390052a02066a2d91bf32e6dc2b526253f7e
[ "MIT" ]
3
2016-11-24T06:25:06.000Z
2020-04-22T11:28:11.000Z
# -*- encoding: utf-8 -*- """ Copyright (c) 2012 Steven Buss Originally from: https://github.com/sbuss/pypercube/blob/master/tests/test_filters.py """ import unittest from cube.filters import Filter from cube.filters import EQ from cube.filters import LT from cube.filters import LE from cube.filters import GT from c...
31.025974
70
0.541649
62cebf1030833279babcae9f8f74694eded16ec6
33,672
py
Python
intersight/apis/iam_account_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/iam_account_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/iam_account_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os import re # python 2 and python 3 compatibility library from s...
47.225806
818
0.597113
62cf18c581db0d96df7a1ea4b9f9412eb104cae5
2,396
py
Python
artifact_py/name.py
Josh-Thompson/artifact_py
3e8bffefed3fcb28bbadca2f8cd0ad1414b9e243
[ "Apache-2.0", "MIT" ]
null
null
null
artifact_py/name.py
Josh-Thompson/artifact_py
3e8bffefed3fcb28bbadca2f8cd0ad1414b9e243
[ "Apache-2.0", "MIT" ]
null
null
null
artifact_py/name.py
Josh-Thompson/artifact_py
3e8bffefed3fcb28bbadca2f8cd0ad1414b9e243
[ "Apache-2.0", "MIT" ]
null
null
null
# artifact_py: the design documentation tool made for everyone. # # Copyright (C) 2019 Rett Berg <github.com/vitiral> # # The source code is Licensed under either of # # * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or # http://www.apache.org/licenses/LICENSE-2.0) # * MIT license ([LICENSE-MIT](LIC...
26.622222
81
0.637312
62cf24405346826a2fe11eda5c24ffc764c35848
11,837
py
Python
my_test.py
Roxbili/kws-demo
7e0674f1407572fc8f148293b23fa20a5164bc5e
[ "Apache-2.0" ]
null
null
null
my_test.py
Roxbili/kws-demo
7e0674f1407572fc8f148293b23fa20a5164bc5e
[ "Apache-2.0" ]
null
null
null
my_test.py
Roxbili/kws-demo
7e0674f1407572fc8f148293b23fa20a5164bc5e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
34.210983
80
0.736504
62cf6731effc1a11f6d114be996c4eed7632f78b
2,001
py
Python
alipay/aop/api/domain/PItemInfoVO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/PItemInfoVO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/PItemInfoVO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class PItemInfoVO(object): def __init__(self): self._code = None self._logo = None self._name = None self._url = None @property def code(self): return s...
23.267442
59
0.507246
62cf78eca80bc39cd7e0f06e909d1dd525f2c127
3,944
py
Python
core.py
Hrabal/GoneDriverVisuals
0353ca56b7fe3c5493a8a4c417d017c262e741d2
[ "Apache-2.0" ]
null
null
null
core.py
Hrabal/GoneDriverVisuals
0353ca56b7fe3c5493a8a4c417d017c262e741d2
[ "Apache-2.0" ]
null
null
null
core.py
Hrabal/GoneDriverVisuals
0353ca56b7fe3c5493a8a4c417d017c262e741d2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from threading import Thread from queue import Queue import numpy as np import random import pyaudio import pygame import time import aubio from shapes import black, Line, Polygon from tools import wavelength_to_rgb, pitch_to_note, roundup class Analyzer: def __init__(self, input_n, n_ch...
32.327869
127
0.570487
62cf8c6e325963542b4e4e72a52d6c6c01a45078
15,158
py
Python
models/resnet.py
pprp/reid_for_deepsort
f82e2280443829339de4d29c7bbede9d992c4f97
[ "Apache-2.0" ]
19
2020-04-05T14:35:34.000Z
2022-03-24T08:40:20.000Z
models/resnet.py
pprp/reid_for_deepsort
f82e2280443829339de4d29c7bbede9d992c4f97
[ "Apache-2.0" ]
1
2020-08-24T08:43:37.000Z
2020-08-24T08:43:37.000Z
models/resnet.py
pprp/reid_for_deepsort
f82e2280443829339de4d29c7bbede9d992c4f97
[ "Apache-2.0" ]
3
2020-04-19T14:08:01.000Z
2020-08-24T08:44:01.000Z
""" Code source: https://github.com/pytorch/vision """ from __future__ import division, absolute_import import torch.utils.model_zoo as model_zoo from torch import nn __all__ = [ 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152', 'resnext50_32x4d', 'resnext101_32x8d', 'resnet50_fc512' ] model_urls ...
28.546139
106
0.57125
62cf94bfd46bac081034f1c3b89609ed50dcb0e5
617
py
Python
tests/megawing/spartan3/ramb/_romb16.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
14
2017-10-08T09:16:10.000Z
2021-11-27T19:12:24.000Z
tests/megawing/spartan3/ramb/_romb16.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
7
2018-04-12T21:33:49.000Z
2018-08-21T22:14:20.000Z
tests/megawing/spartan3/ramb/_romb16.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
3
2018-07-24T04:55:02.000Z
2019-12-30T08:12:39.000Z
import magma as m from mantle.xilinx.spartan3.RAMB import ROMB16 from loam.boards.papilioone import PapilioOne from loam.shields.megawing import MegaWing megawing = MegaWing(PapilioOne) megawing.Clock.on() megawing.Switch.on(8) megawing.LED.on(8) main = megawing.main() rom = range(1024) for i in range(1024): by...
20.566667
75
0.667747
62cf9a96333e9bfaa43b3118180b69188f97c7f9
11,104
py
Python
server/tests/range_test.py
chejennifer/website
b7589f1fa288e0e4e12cd97a6bbbcb9f3fd3d833
[ "Apache-2.0" ]
11
2020-07-18T17:04:26.000Z
2022-03-23T08:44:09.000Z
server/tests/range_test.py
chejennifer/website
b7589f1fa288e0e4e12cd97a6bbbcb9f3fd3d833
[ "Apache-2.0" ]
747
2020-06-22T16:56:45.000Z
2022-03-31T19:04:55.000Z
server/tests/range_test.py
chejennifer/website
b7589f1fa288e0e4e12cd97a6bbbcb9f3fd3d833
[ "Apache-2.0" ]
33
2019-09-25T21:26:12.000Z
2022-03-23T08:27:33.000Z
# Copyright 2020 Google LLC # # 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, ...
43.545098
77
0.557637
62cfa028cca8d55f23ebbafbf009dc8ce392593d
581
py
Python
src/fidesops/schemas/saas/strategy_configuration.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
src/fidesops/schemas/saas/strategy_configuration.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
src/fidesops/schemas/saas/strategy_configuration.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
from typing import Union from pydantic import BaseModel class StrategyConfiguration(BaseModel): """Base class for strategy configuration""" class UnwrapPostProcessorConfiguration(StrategyConfiguration): """Dynamic JSON path access""" data_path: str class IdentityParamRef(BaseModel): """A referen...
21.518519
78
0.755594
62cfa20879724e4812295adb51a813b8a64bf7e1
64
py
Python
elit/components/__init__.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
9
2021-07-12T22:05:47.000Z
2022-02-22T03:10:14.000Z
elit/components/__init__.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
4
2021-08-31T08:28:37.000Z
2022-03-28T05:52:14.000Z
elit/components/__init__.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-08-26 16:10
21.333333
24
0.59375
62cfbdb04ea4b3758e958aac0e13a3249db64faf
774
py
Python
lib/vrd/cvpr/vr/_init_paths.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
20
2017-10-16T18:12:51.000Z
2021-12-23T02:34:20.000Z
lib/vrd/cvpr/vr/_init_paths.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
1
2018-11-10T04:59:48.000Z
2021-01-21T04:51:31.000Z
lib/vrd/cvpr/vr/_init_paths.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
5
2017-10-17T00:54:42.000Z
2018-04-08T15:09:40.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Set up paths for Fast R-CNN.""" import os.path as osp import sys d...
27.642857
58
0.589147
62cfc840078a5f7895a135941de33be49a98d6d2
7,701
py
Python
algorithms/behavior_cloning/bc_gym_vision.py
h2r/RobotLearningBaselines
7d6a104e2afba233fd1ec82dff4e46d9f44ef596
[ "MIT" ]
3
2020-12-17T06:58:12.000Z
2021-11-17T01:59:54.000Z
algorithms/behavior_cloning/bc_gym_vision.py
h2r/RobotLearningBaselines
7d6a104e2afba233fd1ec82dff4e46d9f44ef596
[ "MIT" ]
1
2021-03-01T00:23:25.000Z
2021-03-01T00:23:25.000Z
algorithms/behavior_cloning/bc_gym_vision.py
h2r/RobotLearningBaselines
7d6a104e2afba233fd1ec82dff4e46d9f44ef596
[ "MIT" ]
null
null
null
import argparse import gym import rlbench.gym import os import sys import pickle import time import math import numpy as np from glob import glob from torch import nn from pyquaternion import Quaternion # We need this below line for Python to actually find the utils directory # Otherwise, the module is not in the Pyth...
44.514451
217
0.693287
62cfcad710faffc042a0c6c8fe48f4b797b8f608
2,355
py
Python
rgn/training.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
null
null
null
rgn/training.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
3
2022-01-13T03:13:37.000Z
2022-03-12T00:48:18.000Z
rgn/training.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
null
null
null
from tqdm import tqdm from torch.utils.data import DataLoader from rgn.model import RgnModel from rgn.data import ProteinNet, sequence_collate from rgn.geometric_unit import * from datetime import datetime # load dataset data_path = '../data/bcolz/' file_name = 'training_30' trn_dataset = ProteinNet(data_path + file_n...
31.824324
93
0.647134
62cfe2ce11e989256dae043118e6ce46bda57694
358
py
Python
config.py
melodily/wordle-with-friends
2485c8b3127db3a921410463bab6a61f486aeb1d
[ "MIT" ]
null
null
null
config.py
melodily/wordle-with-friends
2485c8b3127db3a921410463bab6a61f486aeb1d
[ "MIT" ]
null
null
null
config.py
melodily/wordle-with-friends
2485c8b3127db3a921410463bab6a61f486aeb1d
[ "MIT" ]
null
null
null
import os class Config: DEBUG = False DEVELOPMENT = False # SECRET_KEY = os.getenv("SECRET_KEY") CSRF_ENABLED = True SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] class ProductionConfig(Config): pass class StagingConfig(Config): DEBUG = True class DevelopmentConfig(Config): ...
15.565217
56
0.695531
62cfe681b2cf54729f7995096124e95b97d4b70a
1,689
py
Python
src/program/signal_handlers.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
7
2017-04-14T15:28:29.000Z
2021-09-10T09:45:38.000Z
src/program/signal_handlers.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
799
2016-04-28T09:31:50.000Z
2022-03-29T09:05:02.000Z
src/program/signal_handlers.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
35
2016-04-28T09:23:53.000Z
2021-05-02T12:36:01.000Z
import logging from django.core.exceptions import ValidationError logger = logging.getLogger("bornhack.%s" % __name__) def check_speaker_event_camp_consistency(sender, instance, **kwargs): if kwargs["action"] == "pre_add": from program.models import Event, Speaker if isinstance(instance, Event)...
42.225
143
0.556542
62cffe5248eaf6b2243a085d8922b695f4641b11
151
py
Python
src/pyseed/commands/__init__.py
okosioc/pyseed
a4ee4bb6f005c9a9b80eafea45b91ddb7354fa91
[ "MIT" ]
null
null
null
src/pyseed/commands/__init__.py
okosioc/pyseed
a4ee4bb6f005c9a9b80eafea45b91ddb7354fa91
[ "MIT" ]
null
null
null
src/pyseed/commands/__init__.py
okosioc/pyseed
a4ee4bb6f005c9a9b80eafea45b91ddb7354fa91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ __init__.py ~~~~~~~~~~~~~~ Commands package. :copyright: (c) 2021 by weiminfeng. :date: 2021/9/1 """
13.727273
39
0.470199
62cffeb3fe1331edce322a10a509d085fad4329a
38,875
py
Python
lingua_franca/lang/parse_pt.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
null
null
null
lingua_franca/lang/parse_pt.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
null
null
null
lingua_franca/lang/parse_pt.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
36.399813
105
0.429248
62d005a85984d2b595eb4a829aa3915d94904e6e
2,720
py
Python
contrail-topology/contrail_topology/topology_uve.py
biswajit-mandal/contrail-analytics
393157153c223925d1dabdc2e173da90ab61aa50
[ "Apache-2.0" ]
null
null
null
contrail-topology/contrail_topology/topology_uve.py
biswajit-mandal/contrail-analytics
393157153c223925d1dabdc2e173da90ab61aa50
[ "Apache-2.0" ]
null
null
null
contrail-topology/contrail_topology/topology_uve.py
biswajit-mandal/contrail-analytics
393157153c223925d1dabdc2e173da90ab61aa50
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. # import socket from pysandesh.sandesh_base import * from pysandesh.connection_info import ConnectionState from sandesh.nodeinfo.ttypes import NodeStatusUVE, NodeStatus from sandesh.link.ttypes import LinkEntry, PRouterLinkEntry, PRouterLinkUVE from san...
39.42029
78
0.637868
62d021a4a8ec2c44efa5900ae77a7b7f72d4ab41
3,674
py
Python
lemur/tests/test_utils.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/tests/test_utils.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/tests/test_utils.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
import pytest def test_generate_private_key(): from lemur.common.utils import generate_private_key assert generate_private_key('RSA2048') assert generate_private_key('RSA4096') assert generate_private_key('ECCPRIME192V1') assert generate_private_key('ECCPRIME256V1') assert generate_private_ke...
49.648649
70
0.883778
62d0468f896ba5d819b9394379a4a3dbe1b616b9
2,166
py
Python
backend/config_app/config_apcis/config_app_socials.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
1
2019-12-17T22:31:00.000Z
2019-12-17T22:31:00.000Z
backend/config_app/config_apcis/config_app_socials.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
10
2019-05-28T19:57:28.000Z
2021-06-01T23:46:00.000Z
backend/config_app/config_apcis/config_app_socials.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from . import version, uuid_models default_socials_config = [ ### - - - - - - - - - - - - - - - ### ### CONFIG CIS ### SOCIAL NETWORKS { "field" : "app_twitter", "content" : u"twitter", "icon_class" : "fab fa-twitter", "url" : "https://tw...
43.32
236
0.525854
62d04d3b0257edadef88d297729306427f326451
6,982
py
Python
aops-manager/aops_manager/tests/test_deploy_manager/unit/test_view.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
aops-manager/aops_manager/tests/test_deploy_manager/unit/test_view.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
aops-manager/aops_manager/tests/test_deploy_manager/unit/test_view.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
37.336898
98
0.633916
62d0a3af3ca950684d88446fc3049e8257adffe3
829
py
Python
src/decisionengine_modules/GCE/publishers/GCEPricePerformance_publisher.py
goodenou/decisionengine_modules
cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71
[ "BSD-3-Clause" ]
2
2020-03-17T15:51:19.000Z
2022-02-23T15:45:37.000Z
src/decisionengine_modules/GCE/publishers/GCEPricePerformance_publisher.py
goodenou/decisionengine_modules
cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71
[ "BSD-3-Clause" ]
358
2020-03-02T20:06:38.000Z
2022-03-28T20:39:01.000Z
src/decisionengine_modules/GCE/publishers/GCEPricePerformance_publisher.py
goodenou/decisionengine_modules
cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71
[ "BSD-3-Clause" ]
34
2020-02-24T17:17:11.000Z
2022-01-13T21:50:11.000Z
""" Publishes price / performance data """ import decisionengine_modules.graphite_client as graphite from decisionengine.framework.modules import Publisher from decisionengine_modules.graphite.publishers.generic_publisher import GenericPublisher as publisher @publisher.consumes_dataframe("GCE_Price_Performance") cl...
31.884615
102
0.752714
62d0b910ae67d30b4f2be9f4cf4371864c61bbb9
9,671
py
Python
utils/iperflexer/sumparser.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
10
2016-12-16T00:05:58.000Z
2018-10-30T17:48:25.000Z
utils/iperflexer/sumparser.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
40
2017-01-04T23:07:05.000Z
2018-04-16T19:52:02.000Z
utils/iperflexer/sumparser.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
23
2016-12-30T05:03:53.000Z
2020-04-01T08:40:24.000Z
""" Copyright (c) 2014 Russell Nakamura 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, publish, distribut...
30.799363
112
0.6687
62d0c429c5a06ef7c69fc131eca5b6c13d2b90b4
726
py
Python
setup.py
Rygor83/sap-command-line
7ff93a48c297ae7c5181c0bea825cf3f1251e8fb
[ "MIT" ]
null
null
null
setup.py
Rygor83/sap-command-line
7ff93a48c297ae7c5181c0bea825cf3f1251e8fb
[ "MIT" ]
null
null
null
setup.py
Rygor83/sap-command-line
7ff93a48c297ae7c5181c0bea825cf3f1251e8fb
[ "MIT" ]
null
null
null
# ------------------------------------------ # Copyright (c) Rygor. 2021. # ------------------------------------------ """Minimal setup file for tasks project.""" from setuptools import setup, find_packages setup( name='sap', version='0.1.5', license='proprietary', description='Launch sap systems...
24.2
107
0.541322
62d0cd6e0672775e738b996c10c275d2f8c3254b
504
py
Python
playbook-minimizer/test/test_suite.py
JHeinzde/ansible-playbook-generator
54994c6fbcc14a3e063b046fc41fb9731d7d8215
[ "MIT" ]
1
2020-05-07T16:57:23.000Z
2020-05-07T16:57:23.000Z
playbook-minimizer/test/test_suite.py
JHeinzde/ansible-playbook-generator
54994c6fbcc14a3e063b046fc41fb9731d7d8215
[ "MIT" ]
null
null
null
playbook-minimizer/test/test_suite.py
JHeinzde/ansible-playbook-generator
54994c6fbcc14a3e063b046fc41fb9731d7d8215
[ "MIT" ]
null
null
null
import unittest import diff_calculator_test import playbook_minimizer_test import utils_test def main(): test_loader = unittest.TestLoader() suite = test_loader.loadTestsFromTestCase(playbook_minimizer_test.PlaybookMinimizerTest) suite.addTests(test_loader.loadTestsFromTestCase(utils_test.UtilsTest)) ...
28
94
0.815476
62d1039787d30b690dea6da2a17fba54c920edc4
385
py
Python
user/migrations/0002_auto_20200314_0331.py
vergilchoi/csc8113-ttp
283467a0eb3b76d6a07865bdc23724718e4d3a26
[ "Apache-2.0" ]
null
null
null
user/migrations/0002_auto_20200314_0331.py
vergilchoi/csc8113-ttp
283467a0eb3b76d6a07865bdc23724718e4d3a26
[ "Apache-2.0" ]
5
2021-03-19T00:55:15.000Z
2021-09-22T18:48:02.000Z
user/migrations/0002_auto_20200314_0331.py
vergilchoi/csc8113-ttp
283467a0eb3b76d6a07865bdc23724718e4d3a26
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-14 03:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='user_id', field...
20.263158
64
0.58961
62d12f09a3e8414a05938696991473d98ddb26ed
157
py
Python
pyobs/__init__.py
Adirio/obs-websocket-py
56fd49e5aefaf3f7a560a9d8f286e0fb480f4a99
[ "MIT" ]
null
null
null
pyobs/__init__.py
Adirio/obs-websocket-py
56fd49e5aefaf3f7a560a9d8f286e0fb480f4a99
[ "MIT" ]
10
2019-09-11T07:59:42.000Z
2019-09-12T06:30:43.000Z
pyobs/__init__.py
Adirio/obs-websocket-py
56fd49e5aefaf3f7a560a9d8f286e0fb480f4a99
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Python library to communicate with an obs-websocket server. """ from .core import Client name = "pyobs"
14.272727
59
0.66242
62d1342b36f8f29a645bd0db475817e5f6182822
6,560
py
Python
scripts/engine/internal/library.py
Snayff/notquiteparadise
758d8310413316abbee8e7e644ac7dd005b05cf8
[ "MIT" ]
12
2020-03-24T07:10:18.000Z
2021-07-20T19:34:13.000Z
scripts/engine/internal/library.py
DaFluffyPotato/notquiteparadise
758d8310413316abbee8e7e644ac7dd005b05cf8
[ "MIT" ]
306
2020-07-08T17:28:54.000Z
2021-04-17T11:59:22.000Z
scripts/engine/internal/library.py
Snayff/notquiteparadise
758d8310413316abbee8e7e644ac7dd005b05cf8
[ "MIT" ]
10
2020-06-30T12:36:59.000Z
2021-11-08T09:01:00.000Z
from __future__ import annotations import json import logging import os import time from typing import TYPE_CHECKING import pygame from scripts.engine.internal.constant import DATA_PATH, InputIntent from scripts.engine.internal.definition import ( ActorData, AfflictionData, GameConfigData, GodData, ...
26.666667
114
0.64253
62d1969317b916622909debccf5ec5b4ec00c4d9
4,315
py
Python
tests/bootstrap_test.py
maruthiprithivi/tweetf0rm
f59e57495afda05032d41b161b5aed74f2bc4dfe
[ "MIT" ]
1
2015-02-16T11:08:35.000Z
2015-02-16T11:08:35.000Z
tests/bootstrap_test.py
maruthiprithivi/tweetf0rm
f59e57495afda05032d41b161b5aed74f2bc4dfe
[ "MIT" ]
null
null
null
tests/bootstrap_test.py
maruthiprithivi/tweetf0rm
f59e57495afda05032d41b161b5aed74f2bc4dfe
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging logger = logging.getLogger(__name__) logging.basicConfig(level=logging.DEBUG, format='%(levelname)s: %(message)s') requests_log = logging.getLogger("requests") requests_log.setLevel(logging.WARNING) from nose.tools import nottest import sys, os, json, ex...
22.473958
124
0.665817
62d1cc851dfc0e3b09d6cf8cddce90df16bc8efc
11,771
py
Python
rest_framework_swagger/docgenerator.py
st4lk/django-rest-swagger
acc02268d5e82f7f543b26038b4d4db9b6b38a75
[ "BSD-2-Clause" ]
1
2021-02-17T13:11:41.000Z
2021-02-17T13:11:41.000Z
rest_framework_swagger/docgenerator.py
st4lk/django-rest-swagger
acc02268d5e82f7f543b26038b4d4db9b6b38a75
[ "BSD-2-Clause" ]
null
null
null
rest_framework_swagger/docgenerator.py
st4lk/django-rest-swagger
acc02268d5e82f7f543b26038b4d4db9b6b38a75
[ "BSD-2-Clause" ]
null
null
null
"""Generates API documentation by introspection.""" from django.http import HttpRequest from rest_framework import viewsets from rest_framework.serializers import BaseSerializer from .introspectors import APIViewIntrospector, \ WrappedAPIViewIntrospector, \ ViewSetIntrospector, BaseMethodIntrospector, Introsp...
35.242515
92
0.57098
62d1e1bc9ad166187c2ffcc8b417aeccf19ed772
433
py
Python
long_running_task_controller/wsgi.py
saranshabd/long-running-task-controller
7fc193a6bbd3a226167eef9511ef9047aa4fed2d
[ "Apache-2.0" ]
null
null
null
long_running_task_controller/wsgi.py
saranshabd/long-running-task-controller
7fc193a6bbd3a226167eef9511ef9047aa4fed2d
[ "Apache-2.0" ]
null
null
null
long_running_task_controller/wsgi.py
saranshabd/long-running-task-controller
7fc193a6bbd3a226167eef9511ef9047aa4fed2d
[ "Apache-2.0" ]
null
null
null
""" WSGI config for long_running_task_controller project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.set...
25.470588
88
0.806005
62d1e988e4634285bb5b6fc382f02405e60d0ad8
2,204
py
Python
bookworm/bookshelf/__init__.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
18
2019-07-19T22:12:15.000Z
2020-08-26T17:45:19.000Z
bookworm/bookshelf/__init__.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
44
2019-07-15T10:17:00.000Z
2020-07-26T11:22:53.000Z
bookworm/bookshelf/__init__.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
9
2019-09-03T13:13:31.000Z
2020-08-25T13:55:27.000Z
# coding: utf-8 from __future__ import annotations from bookworm import config from bookworm.concurrency import threaded_worker from bookworm.service import BookwormService from bookworm.signals import reader_book_loaded from bookworm.commandline_handler import ( BaseSubcommandHandler, register_subcommand, ) ...
28.623377
104
0.696461
62d20d6214b4f8ecc1e0b44f211195b4b3b7d146
1,518
py
Python
src/distributions/base.py
criteo-research/optimization-continuous-action-crm
105f10eaa1c08fb5441dc1dc8b036c7a9f42ed40
[ "Apache-2.0" ]
27
2020-03-24T15:00:19.000Z
2022-01-14T15:24:29.000Z
src/distributions/base.py
criteo-research/optimization-continuous-action-crm
105f10eaa1c08fb5441dc1dc8b036c7a9f42ed40
[ "Apache-2.0" ]
null
null
null
src/distributions/base.py
criteo-research/optimization-continuous-action-crm
105f10eaa1c08fb5441dc1dc8b036c7a9f42ed40
[ "Apache-2.0" ]
2
2022-03-22T10:02:21.000Z
2022-03-23T11:09:57.000Z
import os import sys from abc import ABCMeta, abstractmethod base_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../..") sys.path.append(base_dir) class Distribution: """ General Abstract Distribution class """ __metaclass__ = ABCMeta def __init__(self, hyperparams, contextual_mode...
27.6
83
0.633729
62d22984ef2e140e919aaae4705d5a97cf01fef9
908
py
Python
model/caffelenet.py
hyang1990/sparsity_quantization_joint
947acb4df251ba3e47954738c54f143558befdcc
[ "MIT" ]
13
2020-07-21T16:21:26.000Z
2022-01-17T06:29:39.000Z
model/caffelenet.py
hyang1990/sparsity_quantization_joint
947acb4df251ba3e47954738c54f143558befdcc
[ "MIT" ]
null
null
null
model/caffelenet.py
hyang1990/sparsity_quantization_joint
947acb4df251ba3e47954738c54f143558befdcc
[ "MIT" ]
3
2020-07-27T06:46:32.000Z
2021-04-15T09:15:29.000Z
import torch.nn as nn class CaffeLeNet(nn.Module): def __init__(self): super(CaffeLeNet, self).__init__() feature_layers = [] feature_layers.append( nn.Conv2d(in_channels=1, out_channels=20, kernel_size=5) ) feature_layers.append( nn.MaxPool2d(kernel_...
29.290323
69
0.557269
62d2726fafd25a627c71e36c081e339d6d001ce3
25,238
py
Python
tests/server/test_autoreloader.py
manuelcorrales/pysoa
60aba7ba7d8805d0b347e9218a5a6d1700f8fe64
[ "Apache-2.0" ]
null
null
null
tests/server/test_autoreloader.py
manuelcorrales/pysoa
60aba7ba7d8805d0b347e9218a5a6d1700f8fe64
[ "Apache-2.0" ]
null
null
null
tests/server/test_autoreloader.py
manuelcorrales/pysoa
60aba7ba7d8805d0b347e9218a5a6d1700f8fe64
[ "Apache-2.0" ]
null
null
null
from __future__ import ( absolute_import, unicode_literals, ) import codecs import importlib import os import signal import sys import tempfile import time import unittest import pysoa import pysoa.client import pysoa.server import pysoa.server.autoreload # noinspection PyProtectedMember from pysoa.server.aut...
39.007728
117
0.64284
62d28f44dc977f8d3123739ff7966080f0fcc5e8
21,901
py
Python
synapse/storage/data_stores/main/events_bg_updates.py
juhovan/synapse
57feeab364325374b14ff67ac97c288983cc5cde
[ "Apache-2.0" ]
1
2020-07-12T00:18:52.000Z
2020-07-12T00:18:52.000Z
synapse/storage/data_stores/main/events_bg_updates.py
juhovan/synapse
57feeab364325374b14ff67ac97c288983cc5cde
[ "Apache-2.0" ]
null
null
null
synapse/storage/data_stores/main/events_bg_updates.py
juhovan/synapse
57feeab364325374b14ff67ac97c288983cc5cde
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 The Matrix.org Foundation C.I.C. # # 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 require...
37.246599
87
0.563353
62d2d017a7ae40fe8a2b8dd14ae6c1eb00b6fb57
5,709
py
Python
tests/utils.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
null
null
null
tests/utils.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
null
null
null
tests/utils.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
null
null
null
"""Utility functions for testing Sparv with pytest.""" import difflib import filecmp import pathlib import shutil import subprocess import xml.etree.ElementTree as etree from typing import Optional from sparv.core import paths from sparv.core.console import console GOLD_PREFIX = "gold_" def run_sparv(gold_corpus_d...
35.68125
97
0.620599
62d326aa0db2319f8b43bcb96a85cd24ef6ad9af
4,810
py
Python
nova/tests/functional/db/test_build_request.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/db/test_build_request.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/db/test_build_request.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
# 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, software # d...
44.12844
79
0.628898
62d32aba2442d1a25dd84fa93924cdd69a9230a7
4,420
py
Python
venv/lib/python3.8/site-packages/dateparser/data/numeral_translation_data/hu.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/numeral_translation_data/hu.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/numeral_translation_data/hu.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "%%spellout-cardinal-initial": { "1": "egy;", "2": "két;", "(3, 'inf')": "=%spellout-cardinal=;" }, "%%spellout-ordinal-adik": { "0": "adik;", "(1, 'inf')": "=%%spellout-ordinal-larger=;" }, "%%spellout-ordinal-larger": { ...
36.229508
105
0.445023
62d3367109d0c6b09eeb86a678d260a573d3e490
3,637
py
Python
tests/e2e_tests/user_registration/negative/user_registration_all_fields_empty_test.py
ikostan/ParaBankSeleniumAutomation
e28a886adba89b82a60831ad96a3a8f00f863116
[ "Unlicense" ]
4
2019-08-12T19:36:58.000Z
2021-09-14T18:48:27.000Z
tests/e2e_tests/user_registration/negative/user_registration_all_fields_empty_test.py
ikostan/ParaBankSeleniumAutomation
e28a886adba89b82a60831ad96a3a8f00f863116
[ "Unlicense" ]
1
2021-06-02T00:01:00.000Z
2021-06-02T00:01:00.000Z
tests/e2e_tests/user_registration/negative/user_registration_all_fields_empty_test.py
ikostan/ParaBankSeleniumAutomation
e28a886adba89b82a60831ad96a3a8f00f863116
[ "Unlicense" ]
2
2019-08-12T10:06:00.000Z
2020-12-25T05:52:40.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ import allure from tests.config import Config from utils.screenshot import screenshot_on_fail from utils.open_web_browser import open_web_browser from expected_results.users.base_user import BaseUs...
31.353448
96
0.689579
62d354ba8487684aebdbddfa8369f610e0f46033
599
py
Python
plugins/holland.backup.mysqldump/tests/test_mysqldump.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.backup.mysqldump/tests/test_mysqldump.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.backup.mysqldump/tests/test_mysqldump.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
# pylint: skip-file from holland.backup.mysqldump.mysql.dump import * from nose.tools import assert_equals, assert_raises __test__ = False def test_collapse_extra_options(): redundant_options = [ '--master-data=2', '--master-data=2', '--master-data=2', '--single-transaction', ...
27.227273
81
0.692821
62d380d4eeee9048a953af1adbf0d4589ff75311
12,641
py
Python
qcrsc/dist_plot.py
KevinMMendez/qcrsc
15352db3d2414935c02712c72b6b10a6a9628dc5
[ "MIT" ]
1
2020-03-30T09:31:14.000Z
2020-03-30T09:31:14.000Z
qcrsc/dist_plot.py
KevinMMendez/qcrsc
15352db3d2414935c02712c72b6b10a6a9628dc5
[ "MIT" ]
null
null
null
qcrsc/dist_plot.py
KevinMMendez/qcrsc
15352db3d2414935c02712c72b6b10a6a9628dc5
[ "MIT" ]
null
null
null
from bokeh.models.markers import X from bokeh.plotting import ColumnDataSource, figure from bokeh.models import Label, HoverTool from bokeh.plotting import output_notebook, show, figure from bokeh.layouts import gridplot, column, row from bokeh.models.glyphs import Line from bokeh.models import Label, HoverTool, Patch ...
37.847305
1,487
0.620204
62d3bee7d117bf88696774eb986005c5fe201080
1,247
py
Python
venv/Lib/site-packages/pyrogram/raw/types/upload/__init__.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/types/upload/__init__.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/types/upload/__init__.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
41.566667
75
0.672013
62d3df4f7f51271e322016f6ef3b4a36bfa04b06
6,550
py
Python
asynced/asyncio_utils.py
jorenham/asynced
4b406ad9626078e903fd012d3bcc40f4e27af41d
[ "MIT" ]
1
2022-03-15T19:56:13.000Z
2022-03-15T19:56:13.000Z
asynced/asyncio_utils.py
jorenham/asynced
4b406ad9626078e903fd012d3bcc40f4e27af41d
[ "MIT" ]
null
null
null
asynced/asyncio_utils.py
jorenham/asynced
4b406ad9626078e903fd012d3bcc40f4e27af41d
[ "MIT" ]
null
null
null
from __future__ import annotations import functools import inspect __all__ = ( 'amap_iter', 'race', 'resume', 'get_event_loop', 'call_soon', 'call_soon_task', 'create_future', 'create_task', ) import asyncio from typing import ( Any, AsyncIterable, AsyncIterator, Awa...
25.787402
79
0.596947
62d3fb19473a8f139d22aeee3602a269f7906e2e
1,190
py
Python
deeplearning/pytorch/src/main/python/twister2deepnet/deepnet/test/test_Normalize.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
63
2017-08-31T10:02:52.000Z
2021-12-18T21:42:14.000Z
deeplearning/pytorch/src/main/python/twister2deepnet/deepnet/test/test_Normalize.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
284
2017-10-20T15:35:26.000Z
2020-09-11T15:25:40.000Z
deeplearning/pytorch/src/main/python/twister2deepnet/deepnet/test/test_Normalize.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
44
2017-08-21T19:47:57.000Z
2020-11-22T22:45:50.000Z
# // 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, softwar...
34
93
0.752941
62d4132fb926003c3bb1becbf5cdbe257bf5e555
937
py
Python
src/etl/configurations.py
gunnerVivek/Abusive-language-detection-in-Online-content
8f33a8b0194eb77e3018f16c153291bd451fb072
[ "MIT" ]
null
null
null
src/etl/configurations.py
gunnerVivek/Abusive-language-detection-in-Online-content
8f33a8b0194eb77e3018f16c153291bd451fb072
[ "MIT" ]
null
null
null
src/etl/configurations.py
gunnerVivek/Abusive-language-detection-in-Online-content
8f33a8b0194eb77e3018f16c153291bd451fb072
[ "MIT" ]
null
null
null
''' This module contains all the configurations needed by the modules in the etl package ''' import os from definitions import ROOT_DIR FB_DB_CONFIG = { 'user': 'root', 'password': 'abuse_detection', 'host': '34.93.153.220', 'port': 3306, 'database': 'facebook_hate_speech', # 'raise_on...
26.027778
126
0.70651
62d4168315c77ed84ea97967b03df9268c374d10
1,400
py
Python
rhucrl/environment/adversarial_environment.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-19T11:46:48.000Z
2021-11-19T11:46:48.000Z
rhucrl/environment/adversarial_environment.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-22T07:48:03.000Z
2021-11-22T07:48:03.000Z
rhucrl/environment/adversarial_environment.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2022-03-26T10:18:01.000Z
2022-03-26T10:18:01.000Z
"""Base Class of an Adversarial Environments.""" from rllib.environment import GymEnvironment class AdversarialEnv(GymEnvironment): """Class that wraps an adversarial environment.""" @property def protagonist_dim_action(self): """Get protagonist action dimensions.""" try: retu...
29.787234
85
0.612857
62d42575afc621a1f793c41533f71afc65164785
5,306
py
Python
prepro_feats.py
tgc1997/video-caption.pytorch
66430862696678f7233a1fc67af22f0525b22e52
[ "MIT" ]
39
2018-05-14T02:30:32.000Z
2021-07-17T11:39:28.000Z
prepro_feats.py
AmmieQi/video-caption.pytorch-1
66430862696678f7233a1fc67af22f0525b22e52
[ "MIT" ]
8
2018-09-20T09:08:46.000Z
2019-12-12T08:24:54.000Z
prepro_feats.py
AmmieQi/video-caption.pytorch-1
66430862696678f7233a1fc67af22f0525b22e52
[ "MIT" ]
19
2018-05-14T13:12:01.000Z
2021-06-25T07:48:07.000Z
import shutil import subprocess import glob from tqdm import tqdm import numpy as np import os import argparse import torch from torch import nn import torch.nn.functional as F from torch.autograd import Variable import pretrainedmodels from pretrainedmodels import utils C, H, W = 3, 224, 224 def extract_frames(vid...
41.779528
97
0.606672
62d44295eee13010aedc9651a6c624ab697c0085
1,331
py
Python
tasks/lint.py
Haloghen/bot-base
38272b6720ee1886a49fb8050d69c7811ed523fb
[ "MIT" ]
1
2020-04-30T14:14:25.000Z
2020-04-30T14:14:25.000Z
tasks/lint.py
Haloghen/bot-base
38272b6720ee1886a49fb8050d69c7811ed523fb
[ "MIT" ]
null
null
null
tasks/lint.py
Haloghen/bot-base
38272b6720ee1886a49fb8050d69c7811ed523fb
[ "MIT" ]
2
2020-05-01T17:12:46.000Z
2020-05-01T18:32:21.000Z
"""MIT License Copyright (c) 2020 Francesco Zimbolo A.K.A. Haloghen & Matteo Bocci A.K.A. matteob99 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 limitati...
41.59375
79
0.77686
62d46bc29cda8cb21ab36bbb8cd190ed6fa42ab6
27,220
py
Python
appengine/swarming/server/task_result_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/swarming/server/task_result_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/swarming/server/task_result_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
#!/usr/bin/env python # Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. import datetime import logging import os import random import sys import unittest import test_env test_env.setup_test_env()...
37.236662
80
0.696363
62d47bf3c5e25cb40d9ff8815fc6bea48e4a8e46
486
py
Python
MLPipeline/ptlighthydra/src/train.py
PythonBiellaGroup/MaterialeSerate
58b45ecda7b9a8a298b9ca966d2806618a277372
[ "MIT" ]
12
2021-12-12T22:19:52.000Z
2022-03-18T11:45:17.000Z
MLPipeline/ptlighthydra/src/train.py
PythonGroupBiella/MaterialeLezioni
58b45ecda7b9a8a298b9ca966d2806618a277372
[ "MIT" ]
1
2022-03-23T13:58:33.000Z
2022-03-23T14:05:08.000Z
MLPipeline/ptlighthydra/src/train.py
PythonGroupBiella/MaterialeLezioni
58b45ecda7b9a8a298b9ca966d2806618a277372
[ "MIT" ]
5
2021-11-30T19:38:41.000Z
2022-01-30T14:50:44.000Z
import hydra from omegaconf import DictConfig @hydra.main(config_path="../configs/", config_name="train.yaml") def main(config: DictConfig): # Imports can be nested inside @hydra.main to optimize tab completion # https://github.com/facebookresearch/hydra/issues/934 from src import utils from src.pipe...
23.142857
73
0.718107
62d4bb9ad3ca4df6f0fd6212dcd0e2b10f8dfdab
1,377
py
Python
More/E02_Flat/E00_HelloWorld.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
More/E02_Flat/E00_HelloWorld.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
More/E02_Flat/E00_HelloWorld.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
#!/usr/bin/env python3 # ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # Copyright (c) 2017 Thom Janssen <https://github.com/thomgb> # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # Sup...
30.6
79
0.616558
62d4d15d238c5de06d4e73aed78057ff7986a4de
16,760
py
Python
hallo/test/modules/permission_control/test_find_permission_mask.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2018-05-19T22:27:20.000Z
2018-05-19T22:27:20.000Z
hallo/test/modules/permission_control/test_find_permission_mask.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
75
2015-09-26T18:07:18.000Z
2022-01-04T07:15:11.000Z
hallo/test/modules/permission_control/test_find_permission_mask.py
SpangleLabs/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2021-04-10T12:02:47.000Z
2021-04-10T12:02:47.000Z
import hallo.modules.permission_control from hallo.hallo import Hallo from hallo.modules.permission_control import Permissions from hallo.permission_mask import PermissionMask from hallo.test.server_mock import ServerMock from hallo.user_group import UserGroup def test_3_fail(hallo_getter): test_hallo = hallo_get...
38.617512
103
0.707757
62d4e8926b27b23e3896a78c834f6848f17b776b
87,761
py
Python
enrico/extern/argparse.py
mireianievas/enrico
2bd8949e388df7f1065629c299de8fde2ded5274
[ "BSD-3-Clause" ]
14
2017-03-17T05:37:14.000Z
2021-04-05T22:26:29.000Z
enrico/extern/argparse.py
mireianievas/enrico
2bd8949e388df7f1065629c299de8fde2ded5274
[ "BSD-3-Clause" ]
87
2015-01-07T14:24:06.000Z
2022-02-10T11:41:32.000Z
enrico/extern/argparse.py
gammapy/enrico
995383cc0edf493f232998e2bd253be270a4a671
[ "BSD-3-Clause" ]
20
2015-02-18T19:01:34.000Z
2020-06-14T21:27:32.000Z
# Author: Steven J. Bethard <steven.bethard@gmail.com>. """Command-line parsing library This module is an optparse-inspired command-line parsing library that: - handles both optional and positional arguments - produces highly informative usage messages - supports parsers that dispatch to sub-parsers The...
37.139653
80
0.581534
62d502986a04cbb353bfdd88c9a34322c7fb64ed
1,390
py
Python
datasets/data_path/gen_labels_16.py
SelvamArul/MOTR
2a0b70288feaca665d460096159100d5077e9312
[ "MIT" ]
null
null
null
datasets/data_path/gen_labels_16.py
SelvamArul/MOTR
2a0b70288feaca665d460096159100d5077e9312
[ "MIT" ]
null
null
null
datasets/data_path/gen_labels_16.py
SelvamArul/MOTR
2a0b70288feaca665d460096159100d5077e9312
[ "MIT" ]
null
null
null
import os.path as osp import os import numpy as np def mkdirs(d): if not osp.exists(d): os.makedirs(d) seq_root = '/home/data/datasets/MOT17/images/train' label_root = '/home/data/datasets/MOT17/labels_with_ids/train' mkdirs(label_root) seqs = [s for s in os.listdir(seq_root)] tid_curr = 0 tid_last = -1 f...
32.325581
88
0.58777
62d5207abd075814159dd4f6fc12cef7ddeecacc
17,137
py
Python
pywick/models/segmentation/testnets/deeplabv3_xception.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
pywick/models/segmentation/testnets/deeplabv3_xception.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
pywick/models/segmentation/testnets/deeplabv3_xception.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
import math import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.model_zoo as model_zoo class SeparableConv2d(nn.Module): def __init__(self, inplanes, planes, kernel_size=3, stride=1, padding=0, dilation=1, bias=False): super(SeparableConv2d, self).__init__() se...
38.423767
124
0.577055
62d54fed0986e0a800e1b5d7ae1500bf1120d1a9
158
py
Python
vyperlogix/sorting/qsort.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/sorting/qsort.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/sorting/qsort.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
def qsort(L): if len(L) <= 1: return L return qsort( [ lt for lt in L[1:] if lt < L[0] ] ) + [ L[0] ] + qsort( [ ge for ge in L[1:] if ge >= L[0] ] )
39.5
114
0.474684
62d5521a84db51bf0e44c249d257005cf6c56304
1,195
py
Python
wolk_gateway_module/interface/actuation_handler.py
Wolkabout/WolkGatewayModule-SDK-Python
73cb537822d07cb68b0609022f53171ecf663fa4
[ "Apache-2.0" ]
null
null
null
wolk_gateway_module/interface/actuation_handler.py
Wolkabout/WolkGatewayModule-SDK-Python
73cb537822d07cb68b0609022f53171ecf663fa4
[ "Apache-2.0" ]
2
2020-11-16T15:10:36.000Z
2020-11-20T13:10:13.000Z
wolk_gateway_module/interface/actuation_handler.py
Wolkabout/WolkGatewayModule-SDK-Python
73cb537822d07cb68b0609022f53171ecf663fa4
[ "Apache-2.0" ]
null
null
null
"""Stub method for setting new actuator value.""" # Copyright 2019 WolkAbout Technology s.r.o. # # 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...
34.142857
76
0.718828
62d5764e6f0de53b3ca7e06b544bd78fb149acc9
1,507
py
Python
API/src/main/resources/Lib/robot/result/suiteteardownfailed.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/result/suiteteardownfailed.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/result/suiteteardownfailed.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # 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...
32.06383
76
0.699403
62d57cd61049994b808b53625633ba529dcffb80
540
py
Python
aldryn_faq/migrations/0003_preset_order.py
liip-forks/aldryn-faq
1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7
[ "BSD-3-Clause" ]
null
null
null
aldryn_faq/migrations/0003_preset_order.py
liip-forks/aldryn-faq
1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7
[ "BSD-3-Clause" ]
null
null
null
aldryn_faq/migrations/0003_preset_order.py
liip-forks/aldryn-faq
1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7
[ "BSD-3-Clause" ]
null
null
null
from django.db import models, migrations def preset_order(apps, schema_editor): """Set initial ordering of category list plugin categories.""" SelectedCategory = apps.get_model("aldryn_faq", "SelectedCategory") order = 0 for obj in SelectedCategory.objects.all(): order += 1 obj.posi...
20.769231
71
0.657407
62d581bd940c5f46bff7d9ed9bff4747199ad4a9
12,041
py
Python
ml-agents-dev/mlagentsdev/trainers/buffer.py
vkakerbeck/ml-agents-dev
e3a52b5787af06c07fbd945e2ac37bb3bf07ce0c
[ "Apache-2.0" ]
null
null
null
ml-agents-dev/mlagentsdev/trainers/buffer.py
vkakerbeck/ml-agents-dev
e3a52b5787af06c07fbd945e2ac37bb3bf07ce0c
[ "Apache-2.0" ]
null
null
null
ml-agents-dev/mlagentsdev/trainers/buffer.py
vkakerbeck/ml-agents-dev
e3a52b5787af06c07fbd945e2ac37bb3bf07ce0c
[ "Apache-2.0" ]
null
null
null
import numpy as np from mlagentsdev.envs.exception import UnityException class BufferException(UnityException): """ Related to errors with the Buffer. """ pass class Buffer(dict): """ Buffer contains a dictionary of AgentBuffer. The AgentBuffers are indexed by agent_id. Buffer also cont...
47.035156
120
0.540071
62d5822a827e77637cefd6b0a29bf46d6e55fb0c
86
py
Python
ismip6_ocean_forcing/__init__.py
nicojourdain/ismip6-ocean-forcing
2c28be2ce9c0e1e94db275a6a3e668ad4f871343
[ "MIT" ]
null
null
null
ismip6_ocean_forcing/__init__.py
nicojourdain/ismip6-ocean-forcing
2c28be2ce9c0e1e94db275a6a3e668ad4f871343
[ "MIT" ]
null
null
null
ismip6_ocean_forcing/__init__.py
nicojourdain/ismip6-ocean-forcing
2c28be2ce9c0e1e94db275a6a3e668ad4f871343
[ "MIT" ]
null
null
null
__version_info__ = (1, 0) __version__ = '.'.join(str(vi) for vi in __version_info__)
21.5
58
0.709302
62d596da91682c396c04efbc64cf063c8e29e7cc
26,917
py
Python
tensorflow/python/kernel_tests/variables_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/kernel_tests/variables_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/kernel_tests/variables_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.126897
94
0.658246
62d59e7432e621a1b2eb6eb7bf1a14be4b23fe39
69
py
Python
laserembeddings/__init__.py
chiragjn/laserembeddings
37f2aaf723966f24fe0a8d473241725fba46f691
[ "BSD-3-Clause" ]
null
null
null
laserembeddings/__init__.py
chiragjn/laserembeddings
37f2aaf723966f24fe0a8d473241725fba46f691
[ "BSD-3-Clause" ]
null
null
null
laserembeddings/__init__.py
chiragjn/laserembeddings
37f2aaf723966f24fe0a8d473241725fba46f691
[ "BSD-3-Clause" ]
null
null
null
from .laser import Laser __version__ = '0.1.3' __all__ = ['Laser']
11.5
24
0.666667
62d59ecb52d691c1c1ff70cd57b70a7beb43639b
1,423
py
Python
db.py
abhishek-nigam/raindrop-backup-bookmarks
2ba87c90d0585d9fffcfdf04c3996232aab9a593
[ "MIT" ]
2
2020-12-01T06:56:20.000Z
2020-12-24T21:12:36.000Z
db.py
abhishek-nigam/raindrop-backup-bookmarks
2ba87c90d0585d9fffcfdf04c3996232aab9a593
[ "MIT" ]
null
null
null
db.py
abhishek-nigam/raindrop-backup-bookmarks
2ba87c90d0585d9fffcfdf04c3996232aab9a593
[ "MIT" ]
null
null
null
import psycopg2 from logger import logger class DatabaseConnection: ''' A context manager class for managing database connection and cursor ''' def __init__(self, config): self.config = config def __enter__(self): try: self.connection = psycopg2.connect( ...
30.934783
84
0.574139
62d5c4532a4daf6913824090ee52e8de77273386
26,743
py
Python
models.py
jiaqima/SODEN
a03063065f30d6810f31fbb82c66b053f1af41a6
[ "MIT" ]
3
2022-02-04T12:53:34.000Z
2022-03-17T04:35:17.000Z
models.py
jiaqima/SODEN
a03063065f30d6810f31fbb82c66b053f1af41a6
[ "MIT" ]
null
null
null
models.py
jiaqima/SODEN
a03063065f30d6810f31fbb82c66b053f1af41a6
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import math from collections import OrderedDict from copy import deepcopy import torch import torch.nn as nn from torch.nn.utils.rnn import pack_padded_sequence from torchdiffeq import odeint_adjoint as odeint from metrics import NUM_INT_STEPS class ...
42.381933
127
0.555173
62d5e5c0cc400f5fffe39fdd385c54ece63905ac
9,456
py
Python
tests/unit/test.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/test.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/test.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2015-02-07T09:44:47.000Z
2015-02-07T09:44:47.000Z
# Copyright 2013: Mirantis 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...
35.683019
78
0.614953
62d5f940f4c9a2cb33d94a751e9c789c4e422382
14,344
py
Python
ibis/backends/clickhouse/tests/test_select.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2020-08-19T03:36:26.000Z
2020-08-19T03:36:26.000Z
ibis/backends/clickhouse/tests/test_select.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/backends/clickhouse/tests/test_select.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
2
2020-11-27T22:21:50.000Z
2021-04-03T09:36:25.000Z
import pandas as pd import pandas.testing as tm import pytest import ibis import ibis.common.exceptions as com driver = pytest.importorskip('clickhouse_driver') pytestmark = pytest.mark.clickhouse @pytest.fixture(scope='module') def diamonds(con): return con.table('diamonds') @pytest.fixture(scope='module') d...
28.180747
78
0.631902
62d60eebb5aeb91952c4e9c264698a53be62dcc7
1,524
py
Python
github/types/issue_comment.py
appheap/PyGithub
2442a2512a708c6463f81d8398fd91090e134df1
[ "MIT" ]
1
2022-03-16T21:33:37.000Z
2022-03-16T21:33:37.000Z
github/types/issue_comment.py
appheap/PyGithub
2442a2512a708c6463f81d8398fd91090e134df1
[ "MIT" ]
null
null
null
github/types/issue_comment.py
appheap/PyGithub
2442a2512a708c6463f81d8398fd91090e134df1
[ "MIT" ]
1
2022-03-16T21:28:06.000Z
2022-03-16T21:28:06.000Z
from dataclasses import dataclass from typing import Optional from .integration import Integration from .object import Object from .reaction_rollup import ReactionRollup from .user import SimpleUser @dataclass class IssueComment(Object): id: int node_id: str url: str body: str body_text: str ...
31.75
99
0.639764
62d612b0a76802b1486484676e3a439898d2e540
1,706
py
Python
consul/tests/common.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
consul/tests/common.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
consul/tests/common.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os from packaging import version from datadog_checks.dev import get_docker_hostname PORT = '8500' HOST = get_docker_hostname() URL = 'http://{}:{}'.format(HOST, PORT) CHECK_NAME = 'consul' HE...
27.967213
89
0.725674
62d62406f1905094e2a49ce9b31841e58922be20
2,004
py
Python
job/urls.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
7
2022-01-29T12:10:10.000Z
2022-03-28T13:45:20.000Z
job/urls.py
NREL/reopt_api
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
12
2022-02-01T18:23:18.000Z
2022-03-31T17:22:17.000Z
job/urls.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
3
2022-02-08T19:44:40.000Z
2022-03-12T11:05:36.000Z
# ********************************************************************************* # REopt, Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions a...
51.384615
84
0.70509
62d62f65cde53ff64171f2beab2e4009aaf81493
5,063
py
Python
elasticsearch/roll_indexes/packages/elasticsearch/connection/base.py
adrianmkng/watchmen
4be15ad64a5d54d4f546ca8c139fa41fd42dd6aa
[ "Apache-2.0" ]
190
2017-12-13T05:01:42.000Z
2021-11-15T23:35:54.000Z
elasticsearch/roll_indexes/packages/elasticsearch/connection/base.py
adrianmkng/watchmen
4be15ad64a5d54d4f546ca8c139fa41fd42dd6aa
[ "Apache-2.0" ]
3
2020-02-11T23:30:08.000Z
2021-06-01T21:52:42.000Z
elasticsearch/roll_indexes/packages/elasticsearch/connection/base.py
adrianmkng/watchmen
4be15ad64a5d54d4f546ca8c139fa41fd42dd6aa
[ "Apache-2.0" ]
22
2017-12-13T04:36:46.000Z
2021-07-29T07:37:41.000Z
import logging try: import simplejson as json except ImportError: import json from ..exceptions import TransportError, HTTP_EXCEPTIONS logger = logging.getLogger('elasticsearch') # create the elasticsearch.trace logger, but only set propagate to False if the # logger hasn't already been configured _tracer_al...
39.554688
139
0.624333
62d690ddfaab71ea29aae1a6212aeea1248b3696
628
py
Python
hfpy_code/chapter11/page419.py
leobarros/use_cabeca_python
4e0897a68fb7ef669ec05eab7cba9412baa0e85e
[ "Apache-2.0" ]
1
2016-04-01T04:31:52.000Z
2016-04-01T04:31:52.000Z
hfpython_code/hfpy_code/chapter11/tm2secs2tm.py
tdean1995/HFPythonSandbox
dc72257e4353c5bca7a2c401d18587c6d799f9a1
[ "Apache-2.0" ]
2
2018-11-27T10:45:45.000Z
2018-12-13T14:44:54.000Z
hfpython_code/hfpy_code/chapter11/tm2secs2tm.py
tdean1995/HFPythonSandbox
dc72257e4353c5bca7a2c401d18587c6d799f9a1
[ "Apache-2.0" ]
1
2020-06-02T17:47:22.000Z
2020-06-02T17:47:22.000Z
import time def format_time(time_string): tlen = len(time_string) if tlen < 3: original_format = '%S' elif tlen < 6: original_format = '%M:%S' else: original_format = '%H:%M:%S' time_string = time.strftime('%H:%M:%S', time.strptime(time_string, original_format)) ...
27.304348
88
0.628981
62d6a20fbc19f0d14ff7f806dbee194585e1dd32
10,689
py
Python
dashboard/management/commands/import_observations.py
riparias/early-warning-webapp
702691a6ecbabc7865e5f232e125c8dee28a7f2e
[ "MIT" ]
null
null
null
dashboard/management/commands/import_observations.py
riparias/early-warning-webapp
702691a6ecbabc7865e5f232e125c8dee28a7f2e
[ "MIT" ]
124
2021-09-02T06:53:33.000Z
2022-03-31T12:46:51.000Z
dashboard/management/commands/import_observations.py
riparias/early-warning-webapp
702691a6ecbabc7865e5f232e125c8dee28a7f2e
[ "MIT" ]
null
null
null
import argparse import tempfile import datetime from typing import Dict, Optional from django.conf import settings from django.contrib.gis.geos import Point from django.core.mail import mail_admins from django.core.management.base import BaseCommand, CommandParser from django.db import transaction from django.db.model...
36.233898
120
0.633174
62d6a89e25996fd27a23e0cf7bc595ea1722b855
5,648
py
Python
api_tests/users/views/test_user_draft_registration_list.py
sergiy-neurohub/osf.io
bd12fdd4efc2eb58c0a3c805c33aaeb8672f0293
[ "Apache-2.0" ]
null
null
null
api_tests/users/views/test_user_draft_registration_list.py
sergiy-neurohub/osf.io
bd12fdd4efc2eb58c0a3c805c33aaeb8672f0293
[ "Apache-2.0" ]
null
null
null
api_tests/users/views/test_user_draft_registration_list.py
sergiy-neurohub/osf.io
bd12fdd4efc2eb58c0a3c805c33aaeb8672f0293
[ "Apache-2.0" ]
null
null
null
import pytest from django.utils import timezone from api.base.settings.defaults import API_BASE from api.users.views import UserDraftRegistrations from api_tests.nodes.views.test_node_draft_registration_list import DraftRegistrationTestCase from api_tests.utils import only_supports_methods from osf.models import Regis...
40.342857
104
0.682188
62d6ac4a766093e79ad6437fdf123d9c76b86fce
7,901
py
Python
carla/recourse_methods/catalog/clue/library/clue_ml/AE_models/AE/fc_gauss_cat.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
carla/recourse_methods/catalog/clue/library/clue_ml/AE_models/AE/fc_gauss_cat.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
carla/recourse_methods/catalog/clue/library/clue_ml/AE_models/AE/fc_gauss_cat.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
from __future__ import division import numpy as np import torch.backends.cudnn as cudnn from torch.distributions import kl_divergence from torch.distributions.normal import Normal from carla import log from carla.recourse_methods.catalog.clue.library.clue_ml.src.gauss_cat import * from carla.recourse_methods.catalog....
32.381148
88
0.608151
62d717b452601098ac0f83c90769a4ea2b38f422
1,883
py
Python
api_admin.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
null
null
null
api_admin.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
3
2015-02-15T18:31:10.000Z
2015-02-22T19:56:05.000Z
api_admin.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2014 Martin Cochran # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
28.104478
74
0.746681
62d7741811e5980f9eb71a35d3257fa1f161b048
24,897
py
Python
src/empirical_fire_modelling/analysis/ale.py
akuhnregnier/empirical-fire-modelling
4187f5bfce0595d98361a9264793c25607043047
[ "MIT" ]
null
null
null
src/empirical_fire_modelling/analysis/ale.py
akuhnregnier/empirical-fire-modelling
4187f5bfce0595d98361a9264793c25607043047
[ "MIT" ]
null
null
null
src/empirical_fire_modelling/analysis/ale.py
akuhnregnier/empirical-fire-modelling
4187f5bfce0595d98361a9264793c25607043047
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ALE plots.""" import math from collections import defaultdict from copy import deepcopy from operator import attrgetter import matplotlib.pyplot as plt import matplotlib.ticker as ticker import numpy as np import sklearn.base from joblib import parallel_backend from matplotlib.colors import ...
29.463905
96
0.585211
62d77d4b9d881fc282e9dae1431568ce8c10f735
1,828
py
Python
ens/exceptions.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
ens/exceptions.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
ens/exceptions.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
import idna class AddressMismatch(ValueError): """ In order to set up reverse resolution correctly, the ENS name should first point to the address. This exception is raised if the name does not currently point to the address. """ pass class InvalidName(idna.IDNAError): """ This excep...
22.85
86
0.673961
62d77fabf1b820464f1e60ff194fb7bfb3d5eb48
2,351
py
Python
examples/PyTorch/pytorch_ddm.py
singular-value/MDF
227216ffb2c9beea8539829b0b891196787d33ee
[ "Apache-2.0" ]
null
null
null
examples/PyTorch/pytorch_ddm.py
singular-value/MDF
227216ffb2c9beea8539829b0b891196787d33ee
[ "Apache-2.0" ]
null
null
null
examples/PyTorch/pytorch_ddm.py
singular-value/MDF
227216ffb2c9beea8539829b0b891196787d33ee
[ "Apache-2.0" ]
null
null
null
from modeci_mdf.interfaces.pytorch import pytorch_to_mdf import time import re import torch from torch import nn from typing import Tuple if torch.cuda.is_available(): dev = "cuda:0" else: dev = "cpu" def ddm( starting_value: torch.Tensor, drift_rate: torch.Tensor, non_decision_time: torch.Tens...
26.715909
117
0.669502
62d7a6f9ff35b3541eb9aa502f412e4166ffe057
1,647
py
Python
chris_cunningham/day17.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
3
2020-11-16T15:20:11.000Z
2020-12-11T17:01:42.000Z
chris_cunningham/day17.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
null
null
null
chris_cunningham/day17.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
1
2020-12-13T04:42:44.000Z
2020-12-13T04:42:44.000Z
from collections import defaultdict from itertools import product from typing import NamedTuple, Iterable from utils import timer _TEST_DATA = """.#. ..# ###""" class Vector(NamedTuple): x: int y: int z: int = 0 w: int = 0 def __add__(self, other): return type(self)(*(a + b for a, b in ...
24.220588
98
0.588342
62d7aa1cefe60830cfc530924e76bae3106f414e
5,848
py
Python
mars/storage/base.py
deka108/mars
2cd39847c188bb690dd5e2d612a5cbe9f7b21eca
[ "Apache-2.0" ]
1
2021-11-30T12:07:21.000Z
2021-11-30T12:07:21.000Z
mars/storage/base.py
deka108/mars
2cd39847c188bb690dd5e2d612a5cbe9f7b21eca
[ "Apache-2.0" ]
null
null
null
mars/storage/base.py
deka108/mars
2cd39847c188bb690dd5e2d612a5cbe9f7b21eca
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
22.492308
96
0.565321
62d817397045207b340a3bbc342b2f90b7f78f2a
42,941
py
Python
src/spnego/_ntlm_raw/messages.py
ghettorce/pyspnego
5376adb1b3fb7cfccd00be2317e85b7150f177a0
[ "MIT" ]
25
2020-05-23T10:17:46.000Z
2022-02-21T16:52:02.000Z
src/spnego/_ntlm_raw/messages.py
ghettorce/pyspnego
5376adb1b3fb7cfccd00be2317e85b7150f177a0
[ "MIT" ]
33
2020-07-04T00:05:55.000Z
2022-03-15T23:20:29.000Z
src/spnego/_ntlm_raw/messages.py
ghettorce/pyspnego
5376adb1b3fb7cfccd00be2317e85b7150f177a0
[ "MIT" ]
7
2020-08-27T03:44:46.000Z
2022-01-21T04:50:05.000Z
# Copyright: (c) 2020, Jordan Borean (@jborean93) <jborean93@gmail.com> # MIT License (see LICENSE or https://opensource.org/licenses/MIT) import collections import datetime import enum import io import re import struct import typing from spnego._text import to_text from spnego._version import __version__ as pyspnego...
36.796058
119
0.635314
62d84b6d1fa0e24c007ae76f226a2d3ea2883f93
147
py
Python
weddingwebsite/wedding/urls.py
igbt6/WeddingWebsite
5d9f1cdac3ca269e49bd30334148e08cf9133987
[ "MIT" ]
1
2018-07-09T13:09:37.000Z
2018-07-09T13:09:37.000Z
weddingwebsite/wedding/urls.py
igbt6/WeddingWebsite
5d9f1cdac3ca269e49bd30334148e08cf9133987
[ "MIT" ]
1
2018-07-28T19:57:10.000Z
2018-07-28T19:57:10.000Z
weddingwebsite/wedding/urls.py
igbt6/WeddingWebsite
5d9f1cdac3ca269e49bd30334148e08cf9133987
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.home, name='home'), ]
16.333333
40
0.687075
62d84e7a92bb751c09f704d993e8fee490cd1440
7,801
py
Python
datastructures/graphs/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
datastructures/graphs/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
datastructures/graphs/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
from abc import ABC, abstractmethod from collections import defaultdict from pprint import PrettyPrinter from typing import List, Union, Set from datastructures.stacks import Stack class Vertex(object): """ Graph Node/Vertex representing a Node/Vertex in a Graph """ def __init__(self, data): ...
30.119691
117
0.582233
62d85516f76e1b123c6302293ae522397effbdfc
23,032
py
Python
owtf/plugin/plugin_handler.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/plugin/plugin_handler.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/plugin/plugin_handler.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
""" owtf.plugin.plugin_handler ~~~~~~~~~~~~~~~~~~~~~~~~~~ The PluginHandler is in charge of running all plugins taking into account the chosen settings. """ import imp import logging import os from collections import defaultdict from ptp import PTP from ptp.libptp.constants import UNKNOWN from ptp.libptp.exceptions ...
39.303754
119
0.603465
62d86319c0f9105d350b4d01badc36080d84ce65
7,391
py
Python
sandbox/02_v4l2_common_feed_threads.py
Zalewa/voyandz
e5da27ea073bd69055021454aa020fb8fa77775a
[ "MIT" ]
null
null
null
sandbox/02_v4l2_common_feed_threads.py
Zalewa/voyandz
e5da27ea073bd69055021454aa020fb8fa77775a
[ "MIT" ]
null
null
null
sandbox/02_v4l2_common_feed_threads.py
Zalewa/voyandz
e5da27ea073bd69055021454aa020fb8fa77775a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask, send_file, make_response, Response, g, request, stream_with_context from logging.config import dictConfig from io import BytesIO import atexit import errno import logging import os import subprocess import threading INPUT = '/dev/video0' FFMPEG = "/home/test/ffmpeg-nven...
27.996212
128
0.553376
62d88f20e12a6b11d1ca79fc94920389fe953032
814
py
Python
(3)Algorithms/operator_sequences.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(3)Algorithms/operator_sequences.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(3)Algorithms/operator_sequences.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
from operator import * a = [1,2,3] b = ['a','b','c'] print('a =', a) print('b =', b) print('\nConstructive:') print(' concat(a, b):', concat(a, b)) print('Searching') print('contains(a,1) :',contains(a,1)) print('contains(b,"d"):',contains(b,"d")) print('countof(a,1) :',countOf(a, 1)) print('countof(b,"d") :',cou...
23.941176
58
0.567568
62d8a97e49b5cf3f368b6088cf90cc9667bc986b
13,064
py
Python
core/controllers/topic_editor.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
null
null
null
core/controllers/topic_editor.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
4
2019-08-15T10:49:21.000Z
2022-03-02T05:10:20.000Z
core/controllers/topic_editor.py
grishamjindal/oppia
3a29329a446e30b3b70641cf0286e23fad85418f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
38.650888
80
0.691136
62d8d4fb29f3fc8fa5949e8e012c71680a748ccc
49
py
Python
abc/055/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/055/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/055/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N = int(input()) print(800 * N - (N // 15) * 200)
24.5
32
0.489796
62d8e7180d346fac4ce32a9fa6069b848e692b72
710
py
Python
wakeonlan.py
jonnyt886/jpy
7e950239785de09d1e11c1d81135fa51bf450616
[ "MIT" ]
null
null
null
wakeonlan.py
jonnyt886/jpy
7e950239785de09d1e11c1d81135fa51bf450616
[ "MIT" ]
null
null
null
wakeonlan.py
jonnyt886/jpy
7e950239785de09d1e11c1d81135fa51bf450616
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import struct, socket def wakeonlan(ethernet_address): # construct a six-byte hardware address addr_byte = ethernet_address.split(':') hw_addr = struct.pack('BBBBBB', int('0x' + addr_byte[0], 16), int('0x' + addr_byte[1], 16), int('0x' + addr_byte[2], 16), int('0x' + addr_byte[3], 16...
27.307692
56
0.656338
62d8eb2de1d2303b86d757bc168a9ccbf562bf2b
434
py
Python
scripts/tool.py
ucla-pls/jbx
49b811cb3972498f5a676433d23a21556b7149d1
[ "MIT" ]
4
2016-02-14T21:34:39.000Z
2020-11-12T03:04:06.000Z
scripts/tool.py
ucla-pls/jbx
49b811cb3972498f5a676433d23a21556b7149d1
[ "MIT" ]
11
2016-02-27T22:24:19.000Z
2020-02-12T18:09:01.000Z
scripts/tool.py
ucla-pls/jbx
49b811cb3972498f5a676433d23a21556b7149d1
[ "MIT" ]
2
2016-02-14T21:39:21.000Z
2019-08-30T00:12:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This module enables us to download/test tools. """ from functools import partial from funcparse import * import nixutils TOOL_CMD = """ let jbx = import {filename} {{}}; in jbx.pkgs.{tool} """ def tool( tool : Arg(None, help="the tool to install"), *...
18.869565
53
0.608295
62d8fad0eb6f27ccaec0963d28dbd3e04bd11cb3
6,154
py
Python
test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.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 ...
43.64539
133
0.667208
62d90b0aa49224034f6ac8c9618c705ef8beb04c
2,704
py
Python
chargebee/models/plan.py
cloudtruth/chargebee-python
d72c45f0ff32170fd7d03fcfbc7c4f2b3a379324
[ "MIT" ]
null
null
null
chargebee/models/plan.py
cloudtruth/chargebee-python
d72c45f0ff32170fd7d03fcfbc7c4f2b3a379324
[ "MIT" ]
null
null
null
chargebee/models/plan.py
cloudtruth/chargebee-python
d72c45f0ff32170fd7d03fcfbc7c4f2b3a379324
[ "MIT" ]
1
2021-06-18T17:21:37.000Z
2021-06-18T17:21:37.000Z
import json from chargebee.model import Model from chargebee import request from chargebee import APIError class Plan(Model): class Tier(Model): fields = ["starting_unit", "ending_unit", "price", "starting_unit_in_decimal", "ending_unit_in_decimal", "price_in_decimal"] pass class ApplicableAddon(Mo...
45.830508
130
0.695266