hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
acfc48e212278e6e7c38127a59bb5495990cc736
207
py
Python
World/Object/Item/Constants/Material.py
sundayz/idewave-core
5bdb88892173c9c3e8c85f431cf9b5dbd9f23941
[ "Apache-2.0" ]
10
2019-06-29T19:24:52.000Z
2021-02-21T22:45:57.000Z
World/Object/Item/Constants/Material.py
sundayz/idewave-core
5bdb88892173c9c3e8c85f431cf9b5dbd9f23941
[ "Apache-2.0" ]
4
2019-08-15T07:03:36.000Z
2021-06-02T13:01:25.000Z
World/Object/Item/Constants/Material.py
sundayz/idewave-core
5bdb88892173c9c3e8c85f431cf9b5dbd9f23941
[ "Apache-2.0" ]
8
2019-06-30T22:47:48.000Z
2021-02-20T19:21:30.000Z
from enum import Enum class Material(Enum): METAL = 1 WOOD = 2 LIQUID = 3 JEWELRY = 4 CHAIN = 5 PLATE = 6 CLOTH = 7 LEATHER = 8
14.785714
21
0.42029
acfc4912aabca63e11b1afa946a218530156dced
735
py
Python
jactorch/functional/probability.py
dapatil211/Jacinle
7638a46dc06223a1871d88f92aade644883f40a0
[ "MIT" ]
114
2018-01-25T04:44:07.000Z
2022-03-09T14:33:42.000Z
third_party/Jacinle/jactorch/functional/probability.py
dair-iitd/1oML_workdir
37117de4abf1774548786e9534c90977d67091d8
[ "Apache-2.0" ]
7
2018-05-08T17:02:24.000Z
2022-02-09T23:44:06.000Z
third_party/Jacinle/jactorch/functional/probability.py
dair-iitd/1oML_workdir
37117de4abf1774548786e9534c90977d67091d8
[ "Apache-2.0" ]
268
2018-04-08T10:54:35.000Z
2022-03-01T07:10:02.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : probability.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 02/04/2018 # # This file is part of Jacinle. # Distributed under terms of the MIT license. __all__ = ['normalize_prob', 'check_prob_normalization'] def normalize_prob(a, dim=-1)...
29.4
87
0.661224
acfc49eba45a61ef22dc2c1b84acab98ca249ec0
10,344
py
Python
kervi/hal/motor_controller.py
kervi/kervi-core
3c1e3c8a17a7b4d085d8a28b99180ff2a96b0e23
[ "MIT" ]
null
null
null
kervi/hal/motor_controller.py
kervi/kervi-core
3c1e3c8a17a7b4d085d8a28b99180ff2a96b0e23
[ "MIT" ]
null
null
null
kervi/hal/motor_controller.py
kervi/kervi-core
3c1e3c8a17a7b4d085d8a28b99180ff2a96b0e23
[ "MIT" ]
null
null
null
#Copyright 2017 Tim Wentlau. #Distributed under the MIT License. See LICENSE in root of project. import time from kervi.core.utility.thread import KerviThread from kervi.values import * from kervi.controllers import Controller class _MotorNumOutOfBoundsError(Exception): def __init__(self, device_name, motor): ...
28.03252
114
0.62993
acfc4b910dc909708a7dd94c29c840e00ce6db54
25,279
py
Python
train.py
HaydenFaulkner/Tennis
a120dc2c9d5e471ffeb43863da13f59de772932e
[ "MIT" ]
20
2019-08-05T10:09:56.000Z
2021-12-25T05:40:14.000Z
train.py
HaydenFaulkner/Tennis
a120dc2c9d5e471ffeb43863da13f59de772932e
[ "MIT" ]
3
2018-03-22T13:48:43.000Z
2021-06-10T06:17:56.000Z
train.py
HaydenFaulkner/Tennis
a120dc2c9d5e471ffeb43863da13f59de772932e
[ "MIT" ]
4
2020-11-04T03:38:20.000Z
2021-03-30T08:50:52.000Z
"""Train script""" from absl import app, flags from absl.flags import FLAGS import logging import multiprocessing import mxnet as mx import numpy as np import os import sys from tensorboardX import SummaryWriter import time from tqdm import tqdm import warnings from mxnet import gluon from mxnet import autograd as ag ...
45.712477
141
0.588314
acfc4d3233a46617557bd58e3da52af5f59fb4f7
683
py
Python
app/core/migrations/0002_tag.py
llduyll10/Django_Advance
77954031a094cf9494f55009e5cb0ba8f996a490
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
llduyll10/Django_Advance
77954031a094cf9494f55009e5cb0ba8f996a490
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
llduyll10/Django_Advance
77954031a094cf9494f55009e5cb0ba8f996a490
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-03-13 03:44 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( ...
28.458333
118
0.616398
acfc4d3f3dc46c3807e6144303874080fda312b4
304
py
Python
lib/models/backbones/test_mode.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
245
2019-11-29T02:55:25.000Z
2022-03-30T07:30:18.000Z
lib/models/backbones/test_mode.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
24
2019-11-29T10:05:00.000Z
2022-03-30T07:16:06.000Z
lib/models/backbones/test_mode.py
FishLiuabc/centerpose
555d753cd82693476f91f78c53aa4147f5a83015
[ "MIT" ]
45
2019-11-29T05:12:02.000Z
2022-03-21T02:20:36.000Z
import torch from darknet import darknet53 from hardnet import hardnet model = hardnet(19).cuda() inputs = torch.randn((1,3,512,512)).cuda() outs = model(inputs) print(outs.shape) model = darknet53(0,1,2).cuda() inputs = torch.randn((1,3,512,512)).cuda() outs = model(inputs) print(outs.shape)
13.818182
42
0.703947
acfc4e0048c114ba0fa9c5586c4ff328228fe86e
1,407
py
Python
nipype/interfaces/semtools/filtering/tests/test_auto_DilateMask.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
7
2017-02-17T08:54:26.000Z
2022-03-10T20:57:23.000Z
nipype/interfaces/semtools/filtering/tests/test_auto_DilateMask.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
1
2016-04-25T15:07:09.000Z
2016-04-25T15:07:09.000Z
nipype/interfaces/semtools/filtering/tests/test_auto_DilateMask.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
2
2017-09-23T16:22:00.000Z
2019-08-01T14:18:52.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..featuredetection import DilateMask def test_DilateMask_inputs(): input_map = dict( args=dict(argstr='%s', ), environ=dict( nohash=True, usedefault=True, ), i...
32.72093
74
0.602701
acfc4e0b1fb1928416d3c2bf6c0ddc831f1bed75
5,063
py
Python
promoterz/evolutionHooks.py
mczero80/japonicus
d183f24a7e1d0e52052f4c6e5e82604d9e7700d3
[ "MIT" ]
229
2018-01-05T13:32:52.000Z
2021-12-18T00:57:49.000Z
promoterz/evolutionHooks.py
mczero80/japonicus
d183f24a7e1d0e52052f4c6e5e82604d9e7700d3
[ "MIT" ]
142
2018-01-04T23:39:28.000Z
2019-12-14T16:38:24.000Z
promoterz/evolutionHooks.py
mczero80/japonicus
d183f24a7e1d0e52052f4c6e5e82604d9e7700d3
[ "MIT" ]
95
2018-01-06T05:35:23.000Z
2021-12-13T16:42:22.000Z
#!/bin/python from deap import base, tools from copy import deepcopy import random import promoterz.supplement.age import promoterz.supplement.PRoFIGA import promoterz.supplement.phenotypicDivergence import itertools # population as last positional argument, to blend with toolbox; def immigrateHoF(HallOfFame, popu...
31.842767
83
0.704918
acfc4ff770a188064e51eb5ed914123265a2bfe3
2,816
py
Python
backend/server/apps/endpoints/migrations/0001_initial.py
lovedeepkaursaini/ml_api_lt
4af98b6d229fdfcbd2eec56526b6faedd86bf1e3
[ "MIT" ]
null
null
null
backend/server/apps/endpoints/migrations/0001_initial.py
lovedeepkaursaini/ml_api_lt
4af98b6d229fdfcbd2eec56526b6faedd86bf1e3
[ "MIT" ]
null
null
null
backend/server/apps/endpoints/migrations/0001_initial.py
lovedeepkaursaini/ml_api_lt
4af98b6d229fdfcbd2eec56526b6faedd86bf1e3
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2020-05-19 04:51 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Endpoint', ...
46.163934
155
0.575284
acfc50065bd5a3988611269078485018a9338875
20
py
Python
tiote/utils/__init__.py
burhan/tiote
e8512fb15333d519282cf11f882e183e91af95c6
[ "MIT" ]
1
2019-06-27T13:05:32.000Z
2019-06-27T13:05:32.000Z
tiote/utils/__init__.py
burhan/tiote
e8512fb15333d519282cf11f882e183e91af95c6
[ "MIT" ]
null
null
null
tiote/utils/__init__.py
burhan/tiote
e8512fb15333d519282cf11f882e183e91af95c6
[ "MIT" ]
null
null
null
import fns, qry, htm
20
20
0.75
acfc5011b6d6b6eebf14515d9ab5a25bd14fad20
308
py
Python
app/controllers/config/index.py
ctxis/crackerjack
f354cda0e1c6688527018361f24abf2114a77939
[ "MIT" ]
237
2020-03-26T12:39:24.000Z
2022-03-28T04:46:22.000Z
app/controllers/config/index.py
FDlucifer/crackerjack
f828aeb7bef6788a179b2c617f9121e317a0eea1
[ "MIT" ]
18
2020-03-31T14:59:00.000Z
2022-03-19T08:37:07.000Z
app/controllers/config/index.py
FDlucifer/crackerjack
f828aeb7bef6788a179b2c617f9121e317a0eea1
[ "MIT" ]
61
2020-03-29T13:53:54.000Z
2022-03-22T12:36:14.000Z
from . import bp from flask_login import login_required, current_user from flask import redirect, url_for @bp.route('/', methods=['GET']) @login_required def index(): if current_user.admin: return redirect(url_for('config.general')) else: return redirect(url_for('config.profile'))
23.692308
52
0.711039
acfc502bd0caa01eab499dc5850d6a008f341bb8
772
py
Python
Python/Roads/CLUS_ReSymbolizeCLUSRoads.py
bcgov/clus
e0d4e49f031126ee40f36b338651b9fddc180f8a
[ "Apache-2.0" ]
27
2018-07-26T23:05:54.000Z
2022-03-15T22:55:46.000Z
Python/Roads/CLUS_ReSymbolizeCLUSRoads.py
ElizabethKleynhans/clus
a02aef861712ab62bb5b5877208a138e0074e365
[ "Apache-2.0" ]
41
2018-04-25T19:31:29.000Z
2022-03-28T17:08:36.000Z
Python/Roads/CLUS_ReSymbolizeCLUSRoads.py
ElizabethKleynhans/clus
a02aef861712ab62bb5b5877208a138e0074e365
[ "Apache-2.0" ]
10
2018-04-25T17:25:10.000Z
2022-02-16T21:53:23.000Z
#------------------------------------------------------------------------------- # Name: module1 # Purpose: # # Author: mwfowler # # Created: 11/05/2018 # Copyright: (c) mwfowler 2018 # Licence: <your licence> #------------------------------------------------------------------------------- import...
21.444444
80
0.514249
acfc51bae7ea6d8fedcaec471d9660d5bf94eff3
338
py
Python
tests/test_wostools.py
EmPiFree/python-wostools
39963dc2b23190737c59eef895f0498e61c0ae73
[ "MIT" ]
null
null
null
tests/test_wostools.py
EmPiFree/python-wostools
39963dc2b23190737c59eef895f0498e61c0ae73
[ "MIT" ]
null
null
null
tests/test_wostools.py
EmPiFree/python-wostools
39963dc2b23190737c59eef895f0498e61c0ae73
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `wostools` package.""" from wostools import CollectionLazy def test_collection(): """ Just kinda an end to end test. """ collection = CollectionLazy('docs/examples/bit-pattern-savedrecs.txt') for article in collection.articles: ...
19.882353
74
0.662722
acfc524c361d6f74bbe0620b311aeb348bf72c19
6,224
py
Python
roboservos.py
rogerioth/BreezyCreate2
23fa7f1634daa49318fc18c81e76d8d15c99d64b
[ "MIT" ]
null
null
null
roboservos.py
rogerioth/BreezyCreate2
23fa7f1634daa49318fc18c81e76d8d15c99d64b
[ "MIT" ]
null
null
null
roboservos.py
rogerioth/BreezyCreate2
23fa7f1634daa49318fc18c81e76d8d15c99d64b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import time import math import smbus import sys import queue import threading # ============================================================================ # Raspi PCA9685 16-Channel PWM Servo Driver # ============================================================================ class PCA9685:...
33.106383
124
0.611022
acfc5275bf64de1a1f976a87fc0d8e0f5176400f
2,584
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/live/apis/AddCustomLiveStreamSnapshotTemplateRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/live/apis/AddCustomLiveStreamSnapshotTemplateRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/live/apis/AddCustomLiveStreamSnapshotTemplateRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
25.333333
91
0.666022
acfc534b336ce2053dcca3e95e09109a7b161038
2,400
py
Python
proxy.py
rsnlnd/fmovies-api
2d84c0ceb81d80e0b1d73d1814659f6f5f345870
[ "MIT" ]
6
2021-06-13T05:13:20.000Z
2022-03-26T05:17:06.000Z
proxy.py
rsnlnd/fmovies-api
2d84c0ceb81d80e0b1d73d1814659f6f5f345870
[ "MIT" ]
null
null
null
proxy.py
rsnlnd/fmovies-api
2d84c0ceb81d80e0b1d73d1814659f6f5f345870
[ "MIT" ]
5
2021-07-06T19:51:07.000Z
2022-02-07T13:34:48.000Z
try: import requests from bs4 import BeautifulSoup import random except: print(" Library Not Found !") class Random_Proxy(object): def __init__(self): self.__url = 'https://www.sslproxies.org/' self.__headers = { 'Accept-Encoding': 'gzip, deflate, sdch', 'A...
32.876712
149
0.579583
acfc54303b4a6a96d5eae030829c1319f2030974
32
py
Python
bot/__init__.py
RPITechTalks/BoilerplateDiscordBot
d85606d2becef83b9ecd39e49c5efbbcdceff3c3
[ "MIT" ]
1
2020-09-21T14:09:41.000Z
2020-09-21T14:09:41.000Z
bot/__init__.py
Prasantacharya/Stonk-bot
54fcad38b69239c597c6f6727185de0bc627a827
[ "MIT" ]
null
null
null
bot/__init__.py
Prasantacharya/Stonk-bot
54fcad38b69239c597c6f6727185de0bc627a827
[ "MIT" ]
1
2021-01-30T20:57:20.000Z
2021-01-30T20:57:20.000Z
#from .bot import BakedBeansBot
16
31
0.8125
acfc545ecee8881c6f473d5fb797c10ee3a23bb4
4,243
py
Python
aiida_tcod/cli/cmd_deposit.py
fawzi/aiida-tcod
29e1f1469c3dfef00a15e427418f121b8caacd2d
[ "MIT" ]
null
null
null
aiida_tcod/cli/cmd_deposit.py
fawzi/aiida-tcod
29e1f1469c3dfef00a15e427418f121b8caacd2d
[ "MIT" ]
1
2020-03-19T20:13:46.000Z
2020-03-19T20:13:46.000Z
aiida_tcod/cli/cmd_deposit.py
fawzi/aiida-tcod
29e1f1469c3dfef00a15e427418f121b8caacd2d
[ "MIT" ]
2
2019-04-29T14:09:46.000Z
2019-05-23T16:53:35.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
46.119565
119
0.621494
acfc548b15fb2938eabc64a8d39beb37ca332a8f
60,911
py
Python
wip/TextAugment.py
mapama247/muliwai
1aac0f5e9283a7b335e8746b335c9b2cfa0a4946
[ "Apache-2.0" ]
6
2022-02-08T14:38:47.000Z
2022-03-27T06:51:07.000Z
wip/TextAugment.py
ianyu93/muliwai
22ff672ad0aaf5a1f0d813ffe1b8e84fdab6f40e
[ "Apache-2.0" ]
16
2022-01-13T01:49:37.000Z
2022-03-09T12:27:08.000Z
wip/TextAugment.py
ianyu93/muliwai
22ff672ad0aaf5a1f0d813ffe1b8e84fdab6f40e
[ "Apache-2.0" ]
6
2022-01-12T20:56:06.000Z
2022-02-26T19:50:35.000Z
""" Copyright, 2021-2022 Ontocord, 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 required by applicable law or agr...
47.108275
168
0.476778
acfc54e12a11b736e70889f76cd3c1b69ba59f9a
2,787
py
Python
containers/fibonacci.py
brandonsrho57/oop_containers
c0529ef1e8db51cb179120acc2fb329db8e70532
[ "MIT" ]
null
null
null
containers/fibonacci.py
brandonsrho57/oop_containers
c0529ef1e8db51cb179120acc2fb329db8e70532
[ "MIT" ]
null
null
null
containers/fibonacci.py
brandonsrho57/oop_containers
c0529ef1e8db51cb179120acc2fb329db8e70532
[ "MIT" ]
null
null
null
################################################ # example fibonacci number code; # you do not have to modify this code in any way ################################################ def fibs(n): ''' This function computes the first n fibonacci numbers. Notice that this function uses O(n) memory. ''' ...
21.438462
57
0.451381
acfc5569f342ac5918de1724e08a593dd6661283
2,408
py
Python
homeassistant/components/coronavirus/sensor.py
CantankerousBullMoose/core
2178e27fb4c62271d4872e16838331defed82226
[ "Apache-2.0" ]
1
2021-03-12T20:46:40.000Z
2021-03-12T20:46:40.000Z
homeassistant/components/coronavirus/sensor.py
CantankerousBullMoose/core
2178e27fb4c62271d4872e16838331defed82226
[ "Apache-2.0" ]
51
2020-08-03T07:30:44.000Z
2022-03-22T06:02:42.000Z
homeassistant/components/coronavirus/sensor.py
CantankerousBullMoose/core
2178e27fb4c62271d4872e16838331defed82226
[ "Apache-2.0" ]
2
2021-03-22T21:42:48.000Z
2021-04-12T12:26:39.000Z
"""Sensor platform for the Corona virus.""" from homeassistant.const import ATTR_ATTRIBUTION from homeassistant.helpers.update_coordinator import CoordinatorEntity from . import get_coordinator from .const import ATTRIBUTION, OPTION_WORLDWIDE SENSORS = { "confirmed": "mdi:emoticon-neutral-outline", "current":...
30.481013
86
0.649502
acfc557cd7599a1177b9c80fe197541f859ffee7
2,613
py
Python
preDeal/lstm_v2_bak.py
xjtushilei/pCVR
29bb49be537baf90f5ab4678630dae3b7fffb94a
[ "Apache-2.0" ]
32
2017-06-06T08:08:23.000Z
2021-04-11T06:04:31.000Z
preDeal/lstm_v2_bak.py
wangmengsd/pCVR
0070620d4387f545e0fecd9497ce183180f9f63f
[ "Apache-2.0" ]
1
2018-04-11T01:34:03.000Z
2018-04-11T01:58:13.000Z
preDeal/lstm_v2_bak.py
wangmengsd/pCVR
0070620d4387f545e0fecd9497ce183180f9f63f
[ "Apache-2.0" ]
12
2017-07-12T01:28:35.000Z
2019-06-23T14:29:01.000Z
import pickle import numpy import tensorflow from keras import layers, optimizers from keras.models import Sequential from utils import * from keras import backend as K K.clear_session() # 加载数据 print("开始反序列化加载数据...") with open('get_data_v2.data', 'rb') as train_data_file: data = pickle.loads(train_data_file.read...
29.033333
99
0.70532
acfc55ce056743c3806c6db7bf12e51c4b754f85
769
py
Python
experiment_sbb_with_two_categories.py
erelsgl/auctions
d1a55eaacb337ecebeaf5f57a67bcd6a9d4411eb
[ "MIT" ]
1
2021-11-20T19:27:45.000Z
2021-11-20T19:27:45.000Z
experiment_sbb_with_two_categories.py
dvirg/auctions
da706f3d11b9582c7f811de9f50b96b43ac8cbd0
[ "MIT" ]
null
null
null
experiment_sbb_with_two_categories.py
dvirg/auctions
da706f3d11b9582c7f811de9f50b96b43ac8cbd0
[ "MIT" ]
1
2020-09-09T07:20:04.000Z
2020-09-09T07:20:04.000Z
#!python3 """ Simulation experiment for our AAAI 2020 paper, with recipes of size 2. Comparing McAfee's double auction to our SBB auctions. Since: 2019-11 Author: Erel Segal-Halevi """ from experiment import experiment from ascending_auction_protocol import budget_balanced_ascending_auction results_file = "resul...
32.041667
122
0.721717
acfc576ead5a62b55c2fa9c484cbe50ac6f8f2fe
1,211
py
Python
app/core/models.py
nuggysantoso/recipe-app-api
20a68f4ec3ff2490d7bbe4548eef006a14ada927
[ "MIT" ]
null
null
null
app/core/models.py
nuggysantoso/recipe-app-api
20a68f4ec3ff2490d7bbe4548eef006a14ada927
[ "MIT" ]
null
null
null
app/core/models.py
nuggysantoso/recipe-app-api
20a68f4ec3ff2490d7bbe4548eef006a14ada927
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin # Create your models here. class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): """Create and Saves a New User""" if not email: ...
33.638889
90
0.683732
acfc58089876cd47e3d01e4e49a2da9be592e90b
3,860
py
Python
tests/analyses/milhdbk217f/milhdbk217fn2_integration_test.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
4
2018-08-26T09:11:36.000Z
2019-05-24T12:01:02.000Z
tests/analyses/milhdbk217f/milhdbk217fn2_integration_test.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
52
2018-08-24T12:51:22.000Z
2020-12-28T04:59:42.000Z
tests/analyses/milhdbk217f/milhdbk217fn2_integration_test.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
1
2018-10-11T07:57:55.000Z
2018-10-11T07:57:55.000Z
# pylint: skip-file # type: ignore # -*- coding: utf-8 -*- # # tests.analyses.milhdbk217f.milhdbk217f_integration_test.py is part of The # RAMSTK Project # # All rights reserved. # Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com """Test class for the milhdbk217f class....
37.475728
88
0.698187
acfc585db30d32a019bb96b8f71ad5a223b1e6bf
1,310
py
Python
losses/proto_loss.py
AKI-maggie/adapted_deep_embeddings
7f58900cf31398f7bb23295c1d4854f1ae941bcd
[ "MIT" ]
24
2018-10-19T07:48:16.000Z
2021-06-29T08:44:16.000Z
losses/proto_loss.py
AKI-maggie/adapted_deep_embeddings
7f58900cf31398f7bb23295c1d4854f1ae941bcd
[ "MIT" ]
8
2019-01-12T02:55:13.000Z
2022-03-11T23:32:01.000Z
losses/proto_loss.py
garyCC227/thesis
a93c5061c09fa1a42d54053cd82e71cef447e4b8
[ "MIT" ]
10
2018-12-04T11:39:01.000Z
2020-11-10T06:57:35.000Z
''' Adapted from Jake Snell's implementation (https://github.com/jakesnell/prototypical-networks) ''' from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf def prototypical_networks_loss(prototypes, query, num_query_per_class, target_indi...
34.473684
93
0.707634
acfc5a25b9fe57b3ac86407b72d71ef53efe3dce
3,569
py
Python
linearKF/linearKF.py
raghuramshankar/soc-estimation-of-li-ion-batteries
0450757e1bb968cb742b6cea73c4523ef81f75fa
[ "MIT" ]
null
null
null
linearKF/linearKF.py
raghuramshankar/soc-estimation-of-li-ion-batteries
0450757e1bb968cb742b6cea73c4523ef81f75fa
[ "MIT" ]
null
null
null
linearKF/linearKF.py
raghuramshankar/soc-estimation-of-li-ion-batteries
0450757e1bb968cb742b6cea73c4523ef81f75fa
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd class linearKF(): def __init__(self, N): '''number of iterations''' self.N = N '''process noise covariance''' self.sigmaW = 1 '''sensor noise covariance''' self.sigmaV = 1 '''plant def...
34.317308
78
0.537966
acfc5a318c42394567004fb195beb6f90f9fddfc
598
py
Python
test/test1.py
1621740748/stock-pandas
fe8b741e19311235efe901c63c1a8ee81d112680
[ "MIT" ]
1
2020-04-03T09:30:10.000Z
2020-04-03T09:30:10.000Z
test/test1.py
1621740748/stock-pandas
fe8b741e19311235efe901c63c1a8ee81d112680
[ "MIT" ]
null
null
null
test/test1.py
1621740748/stock-pandas
fe8b741e19311235efe901c63c1a8ee81d112680
[ "MIT" ]
null
null
null
from stock_pandas import StockDataFrame import pandas as pd tt=pd.read_csv('tencent.csv') stock = StockDataFrame(tt,date_column='time_key') #print(tt) #print(stock) d=stock['kdj.d'] k=stock['kdj.k'] buy=0 sell=0 sum=0 for i in range(1,len(d)): if k[i-1]<=d[i-1] and k[i]>=d[i]: #print("buy:"+str(tt.iloc[i])) ...
24.916667
49
0.576923
acfc5aa9c7daa7e9805269513e5a8636bf99645b
9,809
py
Python
functions.py
notpeople249/Telegram_VC_Bot
2f1cac97072ef54913609b49cd2ae80a8dbb9a4e
[ "MIT" ]
null
null
null
functions.py
notpeople249/Telegram_VC_Bot
2f1cac97072ef54913609b49cd2ae80a8dbb9a4e
[ "MIT" ]
null
null
null
functions.py
notpeople249/Telegram_VC_Bot
2f1cac97072ef54913609b49cd2ae80a8dbb9a4e
[ "MIT" ]
null
null
null
import asyncio import functools import os import aiofiles import ffmpeg import youtube_dl from aiohttp import ClientSession from PIL import Image, ImageDraw, ImageFont from pyrogram import Client from pyrogram.types import Message from pyrogram.raw.types import InputGroupCall from pyrogram.raw.functions.channels impor...
30.274691
96
0.635233
acfc5cbf7be63f11aef63b2e1fb2c1625bac45be
2,692
py
Python
qiskit_machine_learning/datasets/wine.py
gabrieleagl/qiskit-machine-learning
a38e1e8bd044d6993361fad6741131531ab6ef4b
[ "Apache-2.0" ]
null
null
null
qiskit_machine_learning/datasets/wine.py
gabrieleagl/qiskit-machine-learning
a38e1e8bd044d6993361fad6741131531ab6ef4b
[ "Apache-2.0" ]
null
null
null
qiskit_machine_learning/datasets/wine.py
gabrieleagl/qiskit-machine-learning
a38e1e8bd044d6993361fad6741131531ab6ef4b
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
38.457143
78
0.697994
acfc5e109ab5262485c963c8ca103907d96436f8
3,982
py
Python
GPL/traffic_profiles/trex/trex-astf-ethip4tcp-4096h.py
nidhyanandhan/csit
2156583b4e66f2c3c35903c854b1823b76a4e9a6
[ "Apache-2.0" ]
null
null
null
GPL/traffic_profiles/trex/trex-astf-ethip4tcp-4096h.py
nidhyanandhan/csit
2156583b4e66f2c3c35903c854b1823b76a4e9a6
[ "Apache-2.0" ]
null
null
null
GPL/traffic_profiles/trex/trex-astf-ethip4tcp-4096h.py
nidhyanandhan/csit
2156583b4e66f2c3c35903c854b1823b76a4e9a6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
32.909091
79
0.645907
acfc602fbba87afabbd22cd2c32465965d6675fe
1,299
py
Python
src/spaceone/monitoring/error/data_source.py
xellos00/monitoring
deb5363a2152e7b3f85a08d27bdede0e00023824
[ "Apache-2.0" ]
null
null
null
src/spaceone/monitoring/error/data_source.py
xellos00/monitoring
deb5363a2152e7b3f85a08d27bdede0e00023824
[ "Apache-2.0" ]
null
null
null
src/spaceone/monitoring/error/data_source.py
xellos00/monitoring
deb5363a2152e7b3f85a08d27bdede0e00023824
[ "Apache-2.0" ]
null
null
null
from spaceone.core.error import * class ERROR_INVALID_PLUGIN_VERSION(ERROR_INVALID_ARGUMENT): _message = 'Plugin version is invalid. (plugin_id = {plugin_id}, version = {version})' class ERROR_SUPPORTED_SECRETS_NOT_EXISTS(ERROR_INVALID_ARGUMENT): _message = 'There are no secrets that support plugins. (plugi...
38.205882
127
0.7806
acfc606928b8b7fef586bd1e2dbf5ab6282b328f
2,030
py
Python
example/module/python_loss.py
ranxian/mxnet-gpups
f03261cf2e2aa1a87c436913624b86bb3fbec6a4
[ "Apache-2.0" ]
null
null
null
example/module/python_loss.py
ranxian/mxnet-gpups
f03261cf2e2aa1a87c436913624b86bb3fbec6a4
[ "Apache-2.0" ]
null
null
null
example/module/python_loss.py
ranxian/mxnet-gpups
f03261cf2e2aa1a87c436913624b86bb3fbec6a4
[ "Apache-2.0" ]
null
null
null
# pylint: skip-file import numpy as np import mxnet as mx import numba import logging # We use numba.jit to implement the loss gradient. @numba.jit def mc_hinge_grad(scores, labels): scores = scores.asnumpy() labels = labels.asnumpy() n, _ = scores.shape grad = np.zeros_like(scores) for i in rang...
33.278689
95
0.635961
acfc6163675d56d71f3cf3f8a88f16319da423ba
1,540
py
Python
datasets/CLS/factory.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
datasets/CLS/factory.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
datasets/CLS/factory.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
from datasets.base.factory import DatasetFactory from datasets.base.image.dataset import ImageDataset from datasets.types.specialized_dataset import SpecializedImageDatasetType from datasets.base.image.filter.func import apply_filters_on_image_dataset_ from datasets.CLS.dataset import ImageClassificationDataset_MemoryM...
64.166667
162
0.705195
acfc6165e66e507b31662eb98f49b726525f351b
3,515
py
Python
bindings/python/ensmallen/datasets/string/afipiaspp5210.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/afipiaspp5210.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/afipiaspp5210.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Afipia sp. P5210. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein assoc...
32.546296
223
0.672831
acfc61a84e406db933ff9ede4bc91736a2e32009
3,591
py
Python
app/views.py
Alex0216/tempLogger
220bee884216840942249ed849c063000c520410
[ "MIT" ]
null
null
null
app/views.py
Alex0216/tempLogger
220bee884216840942249ed849c063000c520410
[ "MIT" ]
null
null
null
app/views.py
Alex0216/tempLogger
220bee884216840942249ed849c063000c520410
[ "MIT" ]
null
null
null
from app import app from flask import Flask, render_template, g, request, jsonify import sqlite3 from dateutil.parser import parse from datetime import datetime, timedelta def get_db(): db = getattr(g, '_database', None) if db is None: db = g._database = sqlite3.connect('templog.db') return db #a...
41.755814
224
0.645781
acfc6240d7593c81d67e64a990403dabbf775235
42,172
py
Python
position/views_admin.py
user512/WeVoteServer
df209ac61dc7d79a69388e0e3c61d13dd09afae6
[ "MIT" ]
null
null
null
position/views_admin.py
user512/WeVoteServer
df209ac61dc7d79a69388e0e3c61d13dd09afae6
[ "MIT" ]
null
null
null
position/views_admin.py
user512/WeVoteServer
df209ac61dc7d79a69388e0e3c61d13dd09afae6
[ "MIT" ]
null
null
null
# position/views_admin.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- from .controllers import positions_import_from_master_server, refresh_cached_position_info_for_election, \ refresh_positions_with_candidate_details_for_election, \ refresh_positions_with_contest_office_details_for_election,...
49.555817
118
0.718415
acfc62cad2951fc8a86195b7c88e4e9f0592960b
434
py
Python
introcs/ch1/exp_q/2/1_2_30.py
ujuc/introcs-py
81878e70978ff04bdff839de74b05c62d9fe026d
[ "MIT" ]
1
2020-07-01T02:11:00.000Z
2020-07-01T02:11:00.000Z
introcs/ch1/exp_q/2/1_2_30.py
ujuc/introcs-py
81878e70978ff04bdff839de74b05c62d9fe026d
[ "MIT" ]
null
null
null
introcs/ch1/exp_q/2/1_2_30.py
ujuc/introcs-py
81878e70978ff04bdff839de74b05c62d9fe026d
[ "MIT" ]
1
2020-07-01T02:11:01.000Z
2020-07-01T02:11:01.000Z
import math import sys from introcs.stdlib import stdio x1 = float(sys.argv[1]) y1 = float(sys.argv[2]) x2 = float(sys.argv[3]) y2 = float(sys.argv[4]) x1 = math.radians(x1) y1 = math.radians(y1) x2 = math.radians(x2) y2 = math.radians(y2) angle1 = math.acos( math.sin(x1) * math.sin(x2) + math.cos(x1) * math.co...
17.36
81
0.66129
acfc6304c0c054726fff6de484a180b631570f02
1,361
py
Python
commentparser.py
Almenon/reddit_episode_bot
6dfcde9f0ffd64d3c3174b50feca0d4007a14295
[ "MIT" ]
10
2015-07-17T05:37:56.000Z
2021-12-13T06:57:06.000Z
commentparser.py
Almenon/reddit_episode_bot
6dfcde9f0ffd64d3c3174b50feca0d4007a14295
[ "MIT" ]
16
2015-09-28T03:51:48.000Z
2020-07-15T05:18:44.000Z
commentparser.py
Almenon/reddit_episode_bot
6dfcde9f0ffd64d3c3174b50feca0d4007a14295
[ "MIT" ]
1
2018-02-23T16:08:00.000Z
2018-02-23T16:08:00.000Z
__author__ = 'Almenon' from re import compile, search import logging logging.basicConfig(level="DEBUG") # set level to INFO to get rid of debug messages regex = compile(r"(?:\/u\/the_episode_bot[ ,:]*(\S+(?:\ \S+\b)*)[ ,]+)?" # bot's username followed by title (optional) r"(s|e)[a-s]*\ *?(\d+)[\: ,_\...
32.404762
119
0.648053
acfc63a4136909f60d39b51213b2f91f1bb09024
9,433
py
Python
tester_script.py
dorazhao99/revise-tool
7912ce314b98e5bd272746222db2385ec2930789
[ "MIT" ]
76
2020-08-17T12:52:25.000Z
2022-03-24T17:07:07.000Z
tester_script.py
dorazhao99/revise-tool
7912ce314b98e5bd272746222db2385ec2930789
[ "MIT" ]
20
2020-09-10T18:30:03.000Z
2022-01-24T22:46:45.000Z
tester_script.py
dorazhao99/revise-tool
7912ce314b98e5bd272746222db2385ec2930789
[ "MIT" ]
20
2020-07-28T18:00:39.000Z
2022-01-22T11:00:16.000Z
# #!/usr/bin/env python3 import sys import importlib import torchvision.transforms as transforms import torch import os import random import numpy as np import cv2 from operator import itemgetter import pickle NUM_EXS=5 def validate_dataset(dataset): # set up dataset try: print('starting setup') ...
38.03629
150
0.587512
acfc64d31c318a7da92d7c776160f900b4897930
1,583
py
Python
piston/web/__init__.py
ausbitbank/piston
b571a44c71aec637df75bb012fd8d203ffbef18a
[ "MIT" ]
null
null
null
piston/web/__init__.py
ausbitbank/piston
b571a44c71aec637df75bb012fd8d203ffbef18a
[ "MIT" ]
null
null
null
piston/web/__init__.py
ausbitbank/piston
b571a44c71aec637df75bb012fd8d203ffbef18a
[ "MIT" ]
null
null
null
import re from ..utils import strfdelta, strfage from ..storage import configStorage as configStore from .app import app, socketio from ..steem import SteemConnector from . import views, assets import logging log = logging.getLogger(__name__) steem = SteemConnector().getSteem() __ALL__ = [ "app", "assets", ...
22.942029
58
0.624131
acfc690ab3fdb6cb112e3dbc2f083a4cfd29cfc6
4,963
py
Python
pandas/core/groupby/numba_.py
luftwurzel/pandas
8980af7ce9d98713b0f8792e38f0fe43088e8780
[ "BSD-3-Clause" ]
1
2022-03-29T01:38:03.000Z
2022-03-29T01:38:03.000Z
pandas/core/groupby/numba_.py
luftwurzel/pandas
8980af7ce9d98713b0f8792e38f0fe43088e8780
[ "BSD-3-Clause" ]
1
2022-03-18T01:26:58.000Z
2022-03-18T01:26:58.000Z
pandas/core/groupby/numba_.py
luftwurzel/pandas
8980af7ce9d98713b0f8792e38f0fe43088e8780
[ "BSD-3-Clause" ]
1
2022-03-22T11:50:25.000Z
2022-03-22T11:50:25.000Z
"""Common utilities for Numba operations with groupby ops""" from __future__ import annotations import functools import inspect from typing import ( TYPE_CHECKING, Any, Callable, ) import numpy as np from pandas._typing import Scalar from pandas.compat._optional import import_optional_dependency from pa...
27.269231
86
0.634294
acfc69127052efb37e690117059352a9995845f1
2,111
py
Python
Python/gui-tk.py
festusdrakon/Minesweeper
ea128d132f66c89328777e54f973b141f9a77f75
[ "MIT" ]
null
null
null
Python/gui-tk.py
festusdrakon/Minesweeper
ea128d132f66c89328777e54f973b141f9a77f75
[ "MIT" ]
3
2020-10-31T17:29:13.000Z
2020-10-31T18:22:58.000Z
Python/gui-tk.py
festusdrakon/Minesweeper
ea128d132f66c89328777e54f973b141f9a77f75
[ "MIT" ]
1
2020-10-31T17:33:52.000Z
2020-10-31T17:33:52.000Z
""" Minesweeper written in python 2.7 with Tkinter for UI """ # The included modules and their functions from Tkinter import * from random import randint from time import time, sleep # Constants flag = u"\u26F3" mine = 'X' shades = ['#322', '#422', '#522', '#622', '#722', '#822', '#922', '#a22', '#b22'] size = 10, 10...
27.415584
101
0.555661
acfc6a8584c7f26cf0ed9e46b175d08ae123eaec
266
py
Python
attractions/api/serializers.py
isnardsilva/django-attractions-api
feade087d840b72b603d2a4bf538b8c362aa91bd
[ "MIT" ]
1
2021-12-31T12:59:49.000Z
2021-12-31T12:59:49.000Z
attractions/api/serializers.py
isnardsilva/django-attractions-api
feade087d840b72b603d2a4bf538b8c362aa91bd
[ "MIT" ]
null
null
null
attractions/api/serializers.py
isnardsilva/django-attractions-api
feade087d840b72b603d2a4bf538b8c362aa91bd
[ "MIT" ]
null
null
null
from rest_framework.serializers import ModelSerializer from core.models import Attraction class AttractionSerializer(ModelSerializer): class Meta: model = Attraction fields = ['id', 'name', 'description', 'opening_hours', 'minimum_age', 'photo']
38
87
0.736842
acfc6bfa59fb4881fcf1161b5b9364200fb83c3b
2,803
py
Python
vanstein/interpreter/vs_exceptions.py
ArsenArsen/Vanstein
a1ad5ff3e52a724e97f1d0e6a45a7c4c1e190a3d
[ "MIT" ]
null
null
null
vanstein/interpreter/vs_exceptions.py
ArsenArsen/Vanstein
a1ad5ff3e52a724e97f1d0e6a45a7c4c1e190a3d
[ "MIT" ]
null
null
null
vanstein/interpreter/vs_exceptions.py
ArsenArsen/Vanstein
a1ad5ff3e52a724e97f1d0e6a45a7c4c1e190a3d
[ "MIT" ]
null
null
null
""" Vanstein exception system. This hijacks default exceptions to make them work with CPython code. """ from forbiddenfruit import curse from vanstein.context import _VSContext from vanstein.decorators import native_invoke class _VSTraceback(object): """ Represents a mock traceback. """ def __init...
24.80531
114
0.672851
acfc6c644f8ada477c8eb5b53d055f41a47ee202
501
py
Python
sem 5 Programs/Skill Development Language/prac4.py
abdulmuiz313/Third-Year_Lab_Assignment
b9e1a026051d4988fca726530e71d9889b42a0d8
[ "MIT" ]
3
2020-04-25T13:06:40.000Z
2021-12-16T10:37:16.000Z
sem 5 Programs/Skill Development Language/prac4.py
abdulmuiz313/Third-Year_Lab_Assignment
b9e1a026051d4988fca726530e71d9889b42a0d8
[ "MIT" ]
null
null
null
sem 5 Programs/Skill Development Language/prac4.py
abdulmuiz313/Third-Year_Lab_Assignment
b9e1a026051d4988fca726530e71d9889b42a0d8
[ "MIT" ]
4
2020-10-23T16:32:35.000Z
2021-09-21T03:41:30.000Z
word="GOOGLE" guessword=[] word_len=len(word) a="_" c=0 for i in range(word_len): guessword.append("_") print(guessword) j=0 while (j<6): x=input("Enter your guess") x.upper() print(x) for i in range(word_len): if word[i]==x: guessword[i]=x print(guessword) j+=1 for i in range(word_len): if(...
12.525
46
0.636727
acfc6ddb4d25b941a12674eb234d76d10af03ac0
3,336
py
Python
EDI/Task2/script/main.py
KKowalewski24/Reports
4702f29a2626f19ffb11801acf2ccd5764793482
[ "MIT" ]
null
null
null
EDI/Task2/script/main.py
KKowalewski24/Reports
4702f29a2626f19ffb11801acf2ccd5764793482
[ "MIT" ]
null
null
null
EDI/Task2/script/main.py
KKowalewski24/Reports
4702f29a2626f19ffb11801acf2ccd5764793482
[ "MIT" ]
null
null
null
import glob import os import pathlib import shutil import subprocess import sys import webbrowser from typing import List """ * Building project `python main.py -r` * Opening pdf file `python main.py -o` * Cleaning project `python main.py -c` * Building options Check types - `python main.py -t` """ # VAR -...
25.082707
85
0.52488
acfc6f9ac8c83300abebca89f1259260d16ec22a
77,280
py
Python
sympy/geometry/line.py
gum3ng/sympy
e9414fafa976b26aa0b701a0217ab0f3b561989f
[ "BSD-3-Clause" ]
1
2022-01-17T12:38:24.000Z
2022-01-17T12:38:24.000Z
sympy/geometry/line.py
gum3ng/sympy
e9414fafa976b26aa0b701a0217ab0f3b561989f
[ "BSD-3-Clause" ]
null
null
null
sympy/geometry/line.py
gum3ng/sympy
e9414fafa976b26aa0b701a0217ab0f3b561989f
[ "BSD-3-Clause" ]
null
null
null
"""Line-like geometrical entities. Contains ======== LinearEntity Line Ray Segment LinearEntity2D Line2D Ray2D Segment2D LinearEntity3D Line3D Ray3D Segment3D """ from sympy.core.containers import Tuple from sympy.core.evalf import N from sympy.core.expr import Expr from sympy.core.numbers import Rational, oo from s...
27.689
112
0.51131
acfc706c38f0803c0975c29507a35f5e88215bb1
13,638
py
Python
nova/virt/libvirt/firewall.py
bopopescu/nova_audit
1cd2901802f82d39411adfa04cf2f432ff3bf280
[ "Apache-2.0" ]
1
2020-02-21T19:19:11.000Z
2020-02-21T19:19:11.000Z
nova/virt/libvirt/firewall.py
bopopescu/nova_audit
1cd2901802f82d39411adfa04cf2f432ff3bf280
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/firewall.py
bopopescu/nova_audit
1cd2901802f82d39411adfa04cf2f432ff3bf280
[ "Apache-2.0" ]
1
2020-07-24T09:44:17.000Z
2020-07-24T09:44:17.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you m...
41.078313
79
0.595615
acfc710f4e804b443c9997a4d22aef945b7591cb
54,981
py
Python
hoggorm/plsr1.py
Mohamed0gad/hoggorm
4debdb49a8d1d8858abb783be2ad67ffc96fd3ab
[ "BSD-2-Clause" ]
null
null
null
hoggorm/plsr1.py
Mohamed0gad/hoggorm
4debdb49a8d1d8858abb783be2ad67ffc96fd3ab
[ "BSD-2-Clause" ]
null
null
null
hoggorm/plsr1.py
Mohamed0gad/hoggorm
4debdb49a8d1d8858abb783be2ad67ffc96fd3ab
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Import necessary modules import numpy as np import numpy.linalg as npla import hoggorm.statTools as st import hoggorm.cross_val as cv class nipalsPLS1: """ This class carries out partial least squares regression (PLSR) for two arrays using NIPALS algorithm. The y array is univ...
38.7463
262
0.552445
acfc7285a8c5868037a028f8cd11f270861f4a15
10,965
py
Python
cloudroast/compute/api/config_drive/test_config_drive_reboot_hard.py
bhushan5/cloudroast
60e05df96fe50b3bc511ee1cf1c818329d4360a1
[ "Apache-2.0" ]
null
null
null
cloudroast/compute/api/config_drive/test_config_drive_reboot_hard.py
bhushan5/cloudroast
60e05df96fe50b3bc511ee1cf1c818329d4360a1
[ "Apache-2.0" ]
null
null
null
cloudroast/compute/api/config_drive/test_config_drive_reboot_hard.py
bhushan5/cloudroast
60e05df96fe50b3bc511ee1cf1c818329d4360a1
[ "Apache-2.0" ]
null
null
null
""" Copyright 2015 Rackspace 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, hardware dist...
48.517699
79
0.659371
acfc736c266f5e40e23b19b8620ba8daefc67644
210
py
Python
label_generation.py
hex-plex/Gait-Occlusion-GAN
2ebc217cd1ff38af6c38257952888fab337c100c
[ "MIT" ]
1
2021-07-22T09:06:54.000Z
2021-07-22T09:06:54.000Z
label_generation.py
hex-plex/Gait-Occlusion-GAN
2ebc217cd1ff38af6c38257952888fab337c100c
[ "MIT" ]
null
null
null
label_generation.py
hex-plex/Gait-Occlusion-GAN
2ebc217cd1ff38af6c38257952888fab337c100c
[ "MIT" ]
null
null
null
import numpy as np from gait import * import cv2 import os import pickle kmeans = kmean_train(subject='001',choice='bg-01',override=True) ret = supervision(kmeans,override=True) if ret: a = fetch_labels()
19.090909
64
0.747619
acfc73c2d94d76068d7e1c7e353e58ae8843bd30
7,280
py
Python
colossalai/logging/logger.py
RichardoLuo/ColossalAI
797a9dc5a9e801d7499b8667c3ef039a38aa15ba
[ "Apache-2.0" ]
1,630
2021-10-30T01:00:27.000Z
2022-03-31T23:02:41.000Z
colossalai/logging/logger.py
RichardoLuo/ColossalAI
797a9dc5a9e801d7499b8667c3ef039a38aa15ba
[ "Apache-2.0" ]
166
2021-10-30T01:03:01.000Z
2022-03-31T14:19:07.000Z
colossalai/logging/logger.py
RichardoLuo/ColossalAI
797a9dc5a9e801d7499b8667c3ef039a38aa15ba
[ "Apache-2.0" ]
253
2021-10-30T06:10:29.000Z
2022-03-31T13:30:06.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- import colossalai import logging from pathlib import Path from typing import Union, List import inspect from colossalai.context.parallel_mode import ParallelMode try: from rich.logging import RichHandler _FORMAT = 'colossalai - %(name)s - %(levelname)s: %(messa...
38.518519
120
0.621291
acfc7464439a5acfcb9fdb6899481427420aca10
11,412
py
Python
python/paddle/fluid/input.py
slf12/Paddle
fa43d74a3a16ac696db5dc893c9a7b1c6913dc85
[ "Apache-2.0" ]
1
2020-05-02T00:00:20.000Z
2020-05-02T00:00:20.000Z
python/paddle/fluid/input.py
slf12/Paddle
fa43d74a3a16ac696db5dc893c9a7b1c6913dc85
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/input.py
slf12/Paddle
fa43d74a3a16ac696db5dc893c9a7b1c6913dc85
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 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 app...
43.892308
121
0.604364
acfc747853f9bc083d4a9ee980793be3f14d84e9
50,936
py
Python
python/mediumlevelil.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
null
null
null
python/mediumlevelil.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
null
null
null
python/mediumlevelil.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
null
null
null
# Copyright (c) 2018-2020 Vector 35 Inc # # 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, ...
39.981162
176
0.741185
acfc7621eaecb0b049fe0899827b957d8af9a9ac
23,919
py
Python
velo_payments/models/__init__.py
velopaymentsapi/velo-python
59b39555e9714139b4bf697151cc7d15f6dd510e
[ "Apache-2.0" ]
null
null
null
velo_payments/models/__init__.py
velopaymentsapi/velo-python
59b39555e9714139b4bf697151cc7d15f6dd510e
[ "Apache-2.0" ]
null
null
null
velo_payments/models/__init__.py
velopaymentsapi/velo-python
59b39555e9714139b4bf697151cc7d15f6dd510e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # flake8: noqa """ Velo Payments APIs ## Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid ...
88.261993
4,651
0.891843
acfc762c91b59ab8e0a7b2fff96bc1cd6d794ace
1,741
py
Python
tests/mlir/rllib_ppo_smoke_test.py
lipovsek/CompilerGym
444b82fdf304949e6b8cea23c61f6477b419e3a1
[ "MIT" ]
null
null
null
tests/mlir/rllib_ppo_smoke_test.py
lipovsek/CompilerGym
444b82fdf304949e6b8cea23c61f6477b419e3a1
[ "MIT" ]
null
null
null
tests/mlir/rllib_ppo_smoke_test.py
lipovsek/CompilerGym
444b82fdf304949e6b8cea23c61f6477b419e3a1
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import random import warnings import gym import numpy as np import pytest import torch from flaky import flaky from ray.rllib.agents.ppo impor...
27.634921
77
0.67892
acfc7648754ecff29fbfcdca9a18b9577e1792ac
8,406
py
Python
envelopes/views.py
audiolion/Envelopes-api
f9e93521dc8cb5fd8169551192e1d98f6a359c7c
[ "MIT" ]
null
null
null
envelopes/views.py
audiolion/Envelopes-api
f9e93521dc8cb5fd8169551192e1d98f6a359c7c
[ "MIT" ]
4
2019-10-18T15:54:05.000Z
2021-06-01T22:07:16.000Z
envelopes/views.py
audiolion/Envelopes-API
f9e93521dc8cb5fd8169551192e1d98f6a359c7c
[ "MIT" ]
null
null
null
# Third Party Library Imports from apistar import Response, http from apistar.backends.django_orm import Session from apistar.interfaces import Auth from django.core.exceptions import ObjectDoesNotExist # Local Imports from . import schemas from .forms import AccountForm, CategoryForm, EnvelopeForm, TransactionForm a...
37.526786
127
0.707709
acfc774734fa5c3ba5c0924a7e1e8a35abd62bf9
12,845
py
Python
stackdio/api/formulas/models.py
hdmillerdr/stackdio
84be621705031d147e104369399b872d5093ef64
[ "Apache-2.0" ]
9
2015-12-18T22:44:55.000Z
2022-02-07T19:34:44.000Z
stackdio/api/formulas/models.py
hdmillerdr/stackdio
84be621705031d147e104369399b872d5093ef64
[ "Apache-2.0" ]
77
2015-01-12T17:49:38.000Z
2017-02-24T17:57:46.000Z
stackdio/api/formulas/models.py
hdmillerdr/stackdio
84be621705031d147e104369399b872d5093ef64
[ "Apache-2.0" ]
11
2015-01-23T15:50:19.000Z
2022-02-07T19:34:45.000Z
# -*- coding: utf-8 -*- # Copyright 2017, Digital Reasoning # # 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...
33.981481
98
0.6587
acfc778903e18638e197dff48a42b5af3062cef7
2,020
py
Python
legacy/code/emp/novel_samples.py
GLOMICON/emp
c1f752d1ae4c009328bbdcecf9666dbd4dac39b6
[ "BSD-3-Clause" ]
1
2020-01-30T15:06:26.000Z
2020-01-30T15:06:26.000Z
legacy/code/emp/novel_samples.py
https-github-com-peadrakw-p1/emp
3bc8984ec56c3fcc93e8241ac4cdb88177772cf6
[ "BSD-3-Clause" ]
null
null
null
legacy/code/emp/novel_samples.py
https-github-com-peadrakw-p1/emp
3bc8984ec56c3fcc93e8241ac4cdb88177772cf6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import division __author__ = "Jai Ram Rideout" __copyright__ = "Copyright 2013, The QIIME Project" __credits__ = ["Jai Ram Rideout"] __license__ = "GPL" __version__ = "1.7.0-dev" __maintainer__ = "Jai Ram Rideout" __email__ = "jai.rideout@gmail.com" __status__ = "Development" """...
34.237288
78
0.650495
acfc77c3c3361e06685c723f891d360005992267
57,952
py
Python
simpletransformers/classification/classification_model.py
taranais/simpletransformers
36b2519cad5d8beed1f1726fa9b1163eb52286f0
[ "Apache-2.0" ]
1
2021-08-05T02:21:09.000Z
2021-08-05T02:21:09.000Z
simpletransformers/classification/classification_model.py
taranais/simpletransformers
36b2519cad5d8beed1f1726fa9b1163eb52286f0
[ "Apache-2.0" ]
null
null
null
simpletransformers/classification/classification_model.py
taranais/simpletransformers
36b2519cad5d8beed1f1726fa9b1163eb52286f0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from __future__ import absolute_import, division, print_function import json import logging import math import os import random import warnings from multiprocessing import cpu_count from dataclasses import asdict import numpy as np from scipy.stats import mode, pearsonr from sk...
45.811858
214
0.580601
acfc7a04593afb73fd0a34685525d5f6f4139961
11,703
py
Python
awx/main/tests/functional/api/test_unified_jobs_stdout.py
DamoR25/awxnew
03ed6e97558ae090ea52703caf6ed1b196557981
[ "Apache-2.0" ]
11,396
2017-09-07T04:56:02.000Z
2022-03-31T13:56:17.000Z
awx/main/tests/functional/api/test_unified_jobs_stdout.py
DamoR25/awxnew
03ed6e97558ae090ea52703caf6ed1b196557981
[ "Apache-2.0" ]
11,046
2017-09-07T09:30:46.000Z
2022-03-31T20:28:01.000Z
awx/main/tests/functional/api/test_unified_jobs_stdout.py
AmadeusITGroup/awx
74af187568b06fcf2ac6d7ed05c4f1c5934346eb
[ "Apache-2.0" ]
3,592
2017-09-07T04:14:31.000Z
2022-03-31T23:53:09.000Z
# -*- coding: utf-8 -*- import base64 import json import re from datetime import datetime from django.conf import settings from django.utils.encoding import smart_str from unittest import mock import pytest from awx.api.versioning import reverse from awx.main.models import ( Job, JobEvent, AdHocCommand, ...
41.796429
145
0.691532
acfc7a3188faf44f7ec672d430c3bf4e84b95638
2,979
py
Python
msdnet/stoppingcriterion.py
dani-lbnl/msdnet
20f503322524ceb340379448f1778a58bb1f9a18
[ "MIT" ]
24
2019-08-24T06:42:51.000Z
2021-10-09T14:27:51.000Z
msdnet/stoppingcriterion.py
dani-lbnl/msdnet
20f503322524ceb340379448f1778a58bb1f9a18
[ "MIT" ]
12
2019-07-31T06:56:19.000Z
2020-12-05T18:08:54.000Z
msdnet/stoppingcriterion.py
dani-lbnl/msdnet
20f503322524ceb340379448f1778a58bb1f9a18
[ "MIT" ]
11
2019-09-17T02:39:24.000Z
2022-03-30T21:28:35.000Z
#----------------------------------------------------------------------- #Copyright 2020 Centrum Wiskunde & Informatica, Amsterdam # #Author: Daniel M. Pelt #Contact: D.M.Pelt@cwi.nl #Website: http://dmpelt.github.io/msdnet/ #License: MIT # #This file is part of MSDNet, a Python implementation of the #Mixed-Scale Dense...
27.583333
88
0.583753
acfc7a55cc1f7a079c0bce7ebd92f0b7a8d0ab89
3,073
py
Python
benchmarks/utils/helper.py
kmaehashi/chainer-benchmark
7af2005d71253d236f7f239119d7130f22b26bb4
[ "MIT" ]
9
2018-04-09T10:26:45.000Z
2019-07-13T11:31:49.000Z
benchmarks/utils/helper.py
chainer/chainer-benchmark
8d0c8f5052b5e2a85ad522ff48899ffc9a2bfafb
[ "MIT" ]
19
2018-04-09T10:35:12.000Z
2018-08-30T08:49:40.000Z
benchmarks/utils/helper.py
chainer/chainer-benchmark
8d0c8f5052b5e2a85ad522ff48899ffc9a2bfafb
[ "MIT" ]
2
2018-04-09T10:26:53.000Z
2019-03-20T01:35:26.000Z
from functools import wraps import inspect import cupy def _is_func(target): return inspect.ismethod(target) or inspect.isfunction(target) def sync(target): """Decorator to perform CPU/GPU synchronization. This decorator can be applied to both classes and functions. """ if isinstance(target, ...
30.127451
77
0.61178
acfc7b6bf85f614d5247f0c576fe96caeb04e0a0
7,835
py
Python
worker/__main__.py
shield-h2020/dare-workers
2293bef65d42912468da53bfc7bb506793516a78
[ "Apache-2.0" ]
null
null
null
worker/__main__.py
shield-h2020/dare-workers
2293bef65d42912468da53bfc7bb506793516a78
[ "Apache-2.0" ]
null
null
null
worker/__main__.py
shield-h2020/dare-workers
2293bef65d42912468da53bfc7bb506793516a78
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Listen to a particular topic of the Kafka cluster and write incoming records to a Hive table, via Spark2 Streaming module. ''' import json import logging import os import pipelines import sys from argparse import ArgumentParser, HelpFormatter from pyspar...
39.97449
95
0.615571
acfc7c143e0fbcd179b632b66d3cde3713e2e164
17,700
py
Python
pyiron_atomistics/gpaw/pyiron_ase.py
dgehringer/pyiron_atomistics
f8f2d573a483e802c8e5840998a0769378b95e31
[ "BSD-3-Clause" ]
null
null
null
pyiron_atomistics/gpaw/pyiron_ase.py
dgehringer/pyiron_atomistics
f8f2d573a483e802c8e5840998a0769378b95e31
[ "BSD-3-Clause" ]
1
2022-02-24T09:51:10.000Z
2022-02-24T09:51:10.000Z
pyiron_atomistics/gpaw/pyiron_ase.py
srmnitc/pyiron_atomistics
2c8052b082f2c4fb6f6291ac2b1f801ea7ab1567
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department # Distributed under the terms of "New BSD License", see the LICENSE file. from ase import Atoms from ase.constraints import dict2constraint import copy import importlib import numpy as np from p...
36.494845
108
0.601695
acfc7cde8c5d81ebc3cce5db77af0f6df1b39f05
320
py
Python
Lab 1 - Forward chaining- backward chaining and goal trees/run.py
nuhman/MIT-OCW-6.034-Artificial-Intelligence
59ab288b5571d51d22ac98e748cdb223f9f08e74
[ "MIT" ]
1
2017-04-12T14:40:08.000Z
2017-04-12T14:40:08.000Z
Lab 1 - Forward chaining- backward chaining and goal trees/run.py
nuhman/MIT-OCW-6.034-Artificial-Intelligence
59ab288b5571d51d22ac98e748cdb223f9f08e74
[ "MIT" ]
null
null
null
Lab 1 - Forward chaining- backward chaining and goal trees/run.py
nuhman/MIT-OCW-6.034-Artificial-Intelligence
59ab288b5571d51d22ac98e748cdb223f9f08e74
[ "MIT" ]
null
null
null
from production import IF, AND, OR, NOT, THEN, DELETE, forward_chain theft_rule = IF('you have (?x)', THEN( 'i have (?x)' ), DELETE( 'you have (?x)' )) data = ( 'you have apple','you have orange','you have pear' ) print(forward_chain([theft_rule], data, verbose=True))
32
70
0.5625
acfc7d1e7f3212881d470f6ad0be0a0f92467e2d
271
py
Python
mayan/apps/converter/runtime.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
2,743
2017-12-18T07:12:30.000Z
2022-03-27T17:21:25.000Z
mayan/apps/converter/runtime.py
kyper999/mayan-edms
ca7b8301a1f68548e8e718d42a728a500d67286e
[ "Apache-2.0" ]
15
2017-12-18T14:58:07.000Z
2021-03-01T20:05:05.000Z
mayan/apps/converter/runtime.py
kyper999/mayan-edms
ca7b8301a1f68548e8e718d42a728a500d67286e
[ "Apache-2.0" ]
257
2017-12-18T03:12:58.000Z
2022-03-25T08:59:10.000Z
from __future__ import unicode_literals import logging from django.utils.module_loading import import_string from .settings import setting_graphics_backend logger = logging.getLogger(__name__) backend = converter_class = import_string(setting_graphics_backend.value)
24.636364
73
0.859779
acfc7deba3f994d5db5d6b5454a3489d62fc2373
628
py
Python
kwpbar/demo.py
Kwpolska/kwpbar.py
41152301a6c7d0a7eb1229d2ce0ec09596bb3e8d
[ "BSD-3-Clause" ]
4
2015-11-11T11:22:12.000Z
2021-02-15T00:29:04.000Z
kwpbar/demo.py
Kwpolska/kwpbar.py
41152301a6c7d0a7eb1229d2ce0ec09596bb3e8d
[ "BSD-3-Clause" ]
null
null
null
kwpbar/demo.py
Kwpolska/kwpbar.py
41152301a6c7d0a7eb1229d2ce0ec09596bb3e8d
[ "BSD-3-Clause" ]
2
2017-04-29T13:26:47.000Z
2021-02-15T01:51:46.000Z
# -*- encoding: utf-8 -*- # KwPBar for Python 0.1.0 # A progress bar for Python. # Copyright © 2015-2018, Chris Warrick. # See /LICENSE for licensing information. """ Demo module. :Copyright: © 2015-2018, Chris Warrick. :License: BSD (see /LICENSE). """ import sys import kwpbar import time __all__ = ('demo') def ...
16.972973
46
0.595541
acfc7e9447668218693c301517d2251d9a370192
6,794
py
Python
tnt/torchnet/logger/tensorboardmeterlogger.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
56
2020-01-12T05:45:59.000Z
2022-03-17T15:04:15.000Z
tnt/torchnet/logger/tensorboardmeterlogger.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
7
2020-01-28T23:14:45.000Z
2022-02-10T01:56:48.000Z
tnt/torchnet/logger/tensorboardmeterlogger.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
2
2020-02-29T14:51:23.000Z
2020-03-07T03:23:27.000Z
import os from . import MeterLogger from .. import meter as Meter import numpy as np import torch import functools IS_IMPORTED_TENSORBOARDX = False try: import tensorboardX IS_IMPORTED_TENSORBOARDX = True except: pass class TensorboardMeterLogger(MeterLogger): ''' A class to package and visualize mete...
46.534247
119
0.603326
acfc80477b1e9bb603aff2ad8baf07135b716dc2
236
py
Python
dsc/modules/simulate/changepoint.py
stephenslab/eb-linreg-dsc
f84cadb65b635c89ceeeaa9c780f73265e5dfc31
[ "MIT" ]
null
null
null
dsc/modules/simulate/changepoint.py
stephenslab/eb-linreg-dsc
f84cadb65b635c89ceeeaa9c780f73265e5dfc31
[ "MIT" ]
null
null
null
dsc/modules/simulate/changepoint.py
stephenslab/eb-linreg-dsc
f84cadb65b635c89ceeeaa9c780f73265e5dfc31
[ "MIT" ]
null
null
null
# import simulate n, p, s = simulate.parse_input_params (dims, sfix = sfix) X, y, Xtest, ytest, beta, sigma = simulate.changepoint_predictors (n, p, s, snr, k = basis_k, signal = signal, seed = None, bfix = bfix, center_sticky = True)
39.333333
158
0.699153
acfc80de3786d10471eb35b4ca946d9abda83559
3,896
py
Python
mapchete/cli/default/convert.py
ashutoshkumarjha/mapchete
2eb37a886c09563eb17b1102d78d9de5e8d1141c
[ "MIT" ]
161
2016-02-20T15:18:13.000Z
2022-03-28T11:55:32.000Z
mapchete/cli/default/convert.py
ashutoshkumarjha/mapchete
2eb37a886c09563eb17b1102d78d9de5e8d1141c
[ "MIT" ]
387
2015-08-12T07:16:56.000Z
2022-03-30T14:27:12.000Z
mapchete/cli/default/convert.py
ashutoshkumarjha/mapchete
2eb37a886c09563eb17b1102d78d9de5e8d1141c
[ "MIT" ]
20
2016-02-22T12:51:54.000Z
2022-01-30T22:54:08.000Z
import click from rasterio.dtypes import dtype_ranges from rasterio.enums import Resampling from rasterio.rio.options import creation_options import tilematrix import tqdm import mapchete from mapchete import commands from mapchete.cli import options from mapchete.formats import available_output_formats OUTPUT_FORMAT...
25.298701
86
0.627053
acfc81a71809dc3867a956872e6d65e23ad4d58d
4,222
py
Python
fetch/range/resources/long-wav.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
null
null
null
fetch/range/resources/long-wav.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
112
2021-09-27T14:39:02.000Z
2022-03-30T14:26:35.000Z
fetch/range/resources/long-wav.py
clopez/wpt
4ba8a4a1f41e166289c0a7feaa5665e1385e90f3
[ "BSD-3-Clause" ]
null
null
null
""" This generates a 30 minute silent wav, and is capable of responding to Range requests. """ import time import re import struct from wptserve.utils import isomorphic_decode def create_wav_header(sample_rate, bit_depth, channels, duration): bytes_per_sample = int(bit_depth / 8) block_align = bytes_per_sampl...
31.274074
108
0.651587
acfc81fafa36f62a4292afa44bd832ee1ca74591
2,167
py
Python
pypy/interpreter/test/test_module.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
1
2019-05-27T00:58:46.000Z
2019-05-27T00:58:46.000Z
pypy/interpreter/test/test_module.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
pypy/interpreter/test/test_module.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
from pypy.interpreter.module import Module class TestModule: def test_name(self, space): w = space.wrap m = Module(space, space.wrap('m')) w_m = w(m) assert space.eq_w(space.getattr(w_m, w('__name__')), w('m')) def test_attr(self, space): w = space.wrap w_m = ...
32.343284
68
0.550531
acfc82173602097ae303e5e3a1a7b841a20b2f97
4,194
py
Python
DQMOffline/Configuration/python/autoDQM.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
DQMOffline/Configuration/python/autoDQM.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
DQMOffline/Configuration/python/autoDQM.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
autoDQM = { 'common' : ['DQMOfflineCommon+@L1TMon', 'PostDQMOffline', 'DQMHarvestCommon+DQMCertCommon+@L1TMon'], 'commonSiStripZeroBias' : ['DQMOfflineCommonSiStripZeroBias', 'PostDQMOffline', ...
49.928571
89
0.437291
acfc8564ecf0fd539cbe399197dc7db78b67648b
4,042
py
Python
huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_certificate_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_certificate_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_certificate_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class DeleteCertificateRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): T...
28.666667
97
0.599208
acfc87773fa0021ee867e8d6ab23c47dccef403c
8,179
py
Python
keystone/tests/test_injection.py
sanket4373/keystone
7cf7e7497729803f0470167315af9349b88fe0ec
[ "Apache-2.0" ]
null
null
null
keystone/tests/test_injection.py
sanket4373/keystone
7cf7e7497729803f0470167315af9349b88fe0ec
[ "Apache-2.0" ]
null
null
null
keystone/tests/test_injection.py
sanket4373/keystone
7cf7e7497729803f0470167315af9349b88fe0ec
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # # 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...
30.518657
79
0.632229
acfc87e0f3b20b604ca11666b0414692e55920a7
4,254
py
Python
uer/calc_map_mrr.py
nju-websoft/TSQA
d0b3f0c3a5e55a46fc5d281cae09597aa7f76e2e
[ "Apache-2.0" ]
12
2020-12-19T05:26:49.000Z
2022-03-30T13:20:46.000Z
uer/calc_map_mrr.py
nju-websoft/TSQA
d0b3f0c3a5e55a46fc5d281cae09597aa7f76e2e
[ "Apache-2.0" ]
null
null
null
uer/calc_map_mrr.py
nju-websoft/TSQA
d0b3f0c3a5e55a46fc5d281cae09597aa7f76e2e
[ "Apache-2.0" ]
null
null
null
import json def ranking(outputs, all_t_count_map=None): predictions = [[o[1]] for o in outputs['prob']] targets = outputs['target'] assert len(predictions) == len(targets) t_count = 0 for i, pred in enumerate(predictions): if targets[i] == 1: t_count += 1 predictions[i]...
29.748252
97
0.546309
acfc882a5569b14f11468c6a24612bda47cc8a0a
4,938
py
Python
misc/global_conv.py
kwrobert/nanowire
2dd003e9e1898b2ae9f78a261b3ce1406ec717b8
[ "Apache-2.0", "MIT" ]
null
null
null
misc/global_conv.py
kwrobert/nanowire
2dd003e9e1898b2ae9f78a261b3ce1406ec717b8
[ "Apache-2.0", "MIT" ]
null
null
null
misc/global_conv.py
kwrobert/nanowire
2dd003e9e1898b2ae9f78a261b3ce1406ec717b8
[ "Apache-2.0", "MIT" ]
1
2019-06-23T01:26:44.000Z
2019-06-23T01:26:44.000Z
import glob import re import os import argparse as ap import matplotlib # Enables saving plots over ssh try: os.environ['DISPLAY'] except KeyError: matplotlib.use('Agg') import matplotlib.pyplot as plt from operator import itemgetter, attrgetter, methodcaller def analyze(path,thresh,local,show): # Get all ...
40.47541
100
0.624747
acfc887322e730e99a6fea6c66551386f953ec61
23,803
py
Python
mkt/developers/tests/test_views_versions.py
acidburn0zzz/zamboni
780fbeb99e240a569a72a1c15410f49b76b3807c
[ "BSD-3-Clause" ]
1
2017-07-14T19:22:39.000Z
2017-07-14T19:22:39.000Z
mkt/developers/tests/test_views_versions.py
Acidburn0zzz/zamboni
780fbeb99e240a569a72a1c15410f49b76b3807c
[ "BSD-3-Clause" ]
6
2021-02-02T23:08:48.000Z
2021-09-08T02:47:17.000Z
mkt/developers/tests/test_views_versions.py
Acidburn0zzz/zamboni
780fbeb99e240a569a72a1c15410f49b76b3807c
[ "BSD-3-Clause" ]
null
null
null
import datetime import mock from nose.tools import eq_ import os from pyquery import PyQuery as pq from django.conf import settings import amo import amo.tests from amo.tests import req_factory_factory from addons.models import Addon, AddonUser from devhub.models import ActivityLog, AppLog from editors.models import ...
42.734291
79
0.621938
acfc8987ea1ac4fe87c465109ceca3bd6ef81de0
437
py
Python
botw-modkit/resource.py
BravelyPeculiar/botw-modkit
3d3c2d3d491cbd63f330d210f391f353c38b96fc
[ "MIT" ]
1
2020-08-16T18:49:53.000Z
2020-08-16T18:49:53.000Z
botw-modkit/resource.py
BravelyPeculiar/botw-modkit
3d3c2d3d491cbd63f330d210f391f353c38b96fc
[ "MIT" ]
null
null
null
botw-modkit/resource.py
BravelyPeculiar/botw-modkit
3d3c2d3d491cbd63f330d210f391f353c38b96fc
[ "MIT" ]
null
null
null
class ResourceManager: def __init__(self): self.resources = [] def get_resource(self, name): for res in self.resources: if res.name == name: return res else: new_res = Resource(name) self.resources.append(new_res) retur...
25.705882
42
0.549199
acfc8a75fb15acd433afa5d30ac6445a658373bf
944
py
Python
tests/values_test.py
mfouesneau/vaex
d0f38b4beee381744df7e02a37c329581e8bd70e
[ "MIT" ]
2
2020-12-01T09:41:54.000Z
2020-12-13T14:10:19.000Z
tests/values_test.py
mfouesneau/vaex
d0f38b4beee381744df7e02a37c329581e8bd70e
[ "MIT" ]
null
null
null
tests/values_test.py
mfouesneau/vaex
d0f38b4beee381744df7e02a37c329581e8bd70e
[ "MIT" ]
null
null
null
import pytest from common import * def test_values(ds_local): ds = ds_local assert ds['x'].values.tolist() == ds.evaluate('x').tolist() assert ds['name'].values.tolist() == ds.evaluate('name').tolist() assert ds['obj'].values.tolist() == ds.evaluate('obj').tolist() assert ds[['x', 'y']].values.to...
41.043478
125
0.617585
acfc8aa1ff9bcb1ccaa78356feb344df5de7dcc9
2,209
py
Python
wprevents/admin/tests/test_views.py
arroway/wprevents
5ed14c0e85c1a6463a0e72c94836fae81fbe3fda
[ "BSD-3-Clause" ]
1
2015-02-07T10:04:48.000Z
2015-02-07T10:04:48.000Z
wprevents/admin/tests/test_views.py
yvan-sraka/wprevents
03f95150fe7c09338c3a17e00a4b85febef87789
[ "BSD-3-Clause" ]
6
2015-02-07T10:08:38.000Z
2021-06-06T13:17:24.000Z
wprevents/admin/tests/test_views.py
yvan-sraka/wprevents
03f95150fe7c09338c3a17e00a4b85febef87789
[ "BSD-3-Clause" ]
4
2015-01-20T19:48:31.000Z
2017-04-08T22:10:52.000Z
from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.test import TestCase from wprevents.events.models import Event test_username = 'admin_tester' test_password = 'abcd1234' class ViewsTest(TestCase): fixtures = ['events_test_data.json'] def setUp(self): User...
35.063492
120
0.757356
acfc8dee310c6ffb2c7002d2119ed1600a9755b4
856
py
Python
dob.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
1
2021-06-07T07:55:28.000Z
2021-06-07T07:55:28.000Z
dob.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
dob.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
# Python Program To Create Dob Class Within Person Class ''' Function Name : Create Date Of Birth Within Person Class Function Date : 17 Sep 2020 Function Author : Prasad Dangare Input : String,Integer Output : String,Integer ''' class Person: def __init__(self): ...
23.135135
70
0.518692
acfc8e0688d055c082de68c77fa95d53703abc32
3,148
py
Python
nltk/corpus/reader/indian.py
PhanatosZou/nltk
750e488569b6f80c72ae6ca74eff90eae55e6c4e
[ "Apache-2.0" ]
null
null
null
nltk/corpus/reader/indian.py
PhanatosZou/nltk
750e488569b6f80c72ae6ca74eff90eae55e6c4e
[ "Apache-2.0" ]
null
null
null
nltk/corpus/reader/indian.py
PhanatosZou/nltk
750e488569b6f80c72ae6ca74eff90eae55e6c4e
[ "Apache-2.0" ]
null
null
null
# Natural Language Toolkit: Indian Language POS-Tagged Corpus Reader # # Copyright (C) 2001-2019 NLTK Project # Author: Steven Bird <stevenbird1@gmail.com> # Edward Loper <edloper@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT """ Indian Language POS-Tagged Corpus Collected by ...
30.862745
85
0.60737
acfc8f5d10db251029d4c39c28c2874a8024d401
55,760
py
Python
sklearn/utils/validation.py
emarkou/scikit-learn
d73822f84f2832dcc25f0ff58769f60871a78025
[ "BSD-3-Clause" ]
1
2021-05-25T18:06:44.000Z
2021-05-25T18:06:44.000Z
sklearn/utils/validation.py
emarkou/scikit-learn
d73822f84f2832dcc25f0ff58769f60871a78025
[ "BSD-3-Clause" ]
null
null
null
sklearn/utils/validation.py
emarkou/scikit-learn
d73822f84f2832dcc25f0ff58769f60871a78025
[ "BSD-3-Clause" ]
null
null
null
"""Utilities for input validation""" # Authors: Olivier Grisel # Gael Varoquaux # Andreas Mueller # Lars Buitinck # Alexandre Gramfort # Nicolas Tresegnie # Sylvain Marie # License: BSD 3 clause from functools import wraps import warnings import numbers import nu...
38.323024
79
0.615495
acfc903c335ef9236af6d0e0de71678b908f6705
854
py
Python
var/spack/repos/builtin/packages/r-findpython/package.py
RemoteConnectionManager/spack
f2967b6c16effd26ce007cf86cadbb645c574f50
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/r-findpython/package.py
RemoteConnectionManager/spack
f2967b6c16effd26ce007cf86cadbb645c574f50
[ "ECL-2.0", "Apache-2.0", "MIT" ]
17
2018-09-20T18:32:50.000Z
2019-12-04T16:58:12.000Z
var/spack/repos/builtin/packages/r-findpython/package.py
RemoteConnectionManager/spack
f2967b6c16effd26ce007cf86cadbb645c574f50
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RFindpython(RPackage): """Package designed to find an acceptable python binary.""" ho...
40.666667
95
0.761124
acfc9065875199e688aab91f13d104d3eed8678f
1,002
py
Python
tests/ufirebase_test.py
esbullington/cct
1a89d346c76236a9710177a208730584ecb65c02
[ "MIT" ]
null
null
null
tests/ufirebase_test.py
esbullington/cct
1a89d346c76236a9710177a208730584ecb65c02
[ "MIT" ]
null
null
null
tests/ufirebase_test.py
esbullington/cct
1a89d346c76236a9710177a208730584ecb65c02
[ "MIT" ]
null
null
null
# Append base path # add project base directory to python path # so we can access both cct and test dir import usys usys.path.append('.') # show micropython path print("Path: ") print(usys.path) from cct.google.ufirebase import Firebase from tests.test_tools import assert_with_msg import gc import time import os gc.e...
21.319149
60
0.753493
acfc90676383363fafb40c0663b9ebe893331ebf
1,207
py
Python
List-Based Collections/new.py
Emmaka9/data-structure-and-algorithms
dd9933c277561f217b1cbad0e62e568cd2e8684d
[ "Apache-2.0" ]
null
null
null
List-Based Collections/new.py
Emmaka9/data-structure-and-algorithms
dd9933c277561f217b1cbad0e62e568cd2e8684d
[ "Apache-2.0" ]
null
null
null
List-Based Collections/new.py
Emmaka9/data-structure-and-algorithms
dd9933c277561f217b1cbad0e62e568cd2e8684d
[ "Apache-2.0" ]
null
null
null
# # Python 3 program to remove a given # # element from an array # # This function removes an element x # # from arr[] and returns new size after # # removal (size is reduced only when x # # is present in arr[] # def deleteElement(arr, n, x): # # Search x in array # for i in range(n): # if (arr[i] ==...
19.786885
41
0.517813
acfc923a3703d8d86a260298137727f5337efbad
3,236
py
Python
profiles_project/settings.py
panavenue/profiles-rest-api
44940a0d14944a304468f44244d91dcbba7b701c
[ "MIT" ]
null
null
null
profiles_project/settings.py
panavenue/profiles-rest-api
44940a0d14944a304468f44244d91dcbba7b701c
[ "MIT" ]
6
2020-06-06T01:39:58.000Z
2022-02-10T09:16:54.000Z
profiles_project/settings.py
panavenue/profiles-rest-api
44940a0d14944a304468f44244d91dcbba7b701c
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.68254
91
0.699938
acfc923c20a3b804f0cc67c17ab3868e811776b1
3,233
py
Python
topo_processor/metadata/metadata_validators/metadata_validator_stac.py
linz/processor-aerial-imagery
cf6425560cea381278fe7857865e3d9158b28d7e
[ "MIT" ]
null
null
null
topo_processor/metadata/metadata_validators/metadata_validator_stac.py
linz/processor-aerial-imagery
cf6425560cea381278fe7857865e3d9158b28d7e
[ "MIT" ]
15
2020-07-21T04:56:31.000Z
2020-09-21T06:28:57.000Z
topo_processor/metadata/metadata_validators/metadata_validator_stac.py
linz/processor-aerial-imagery
cf6425560cea381278fe7857865e3d9158b28d7e
[ "MIT" ]
null
null
null
from __future__ import annotations import warnings from typing import Any, Dict, Union import fsspec import jsonschema_rs import pystac.validation from linz_logger import get_log from pystac.errors import STACValidationError from topo_processor.stac.collection import Collection from topo_processor.stac.item import I...
38.951807
121
0.660377
acfc94becc9eab72afc7612e28dd90f5fe28cd28
2,160
py
Python
tests/check_consistent.py
olmokramer/typeshed
1c8c6ec7d90e86380d9a732c09213392e3af1fdf
[ "Apache-2.0" ]
1
2018-10-03T12:35:12.000Z
2018-10-03T12:35:12.000Z
tests/check_consistent.py
olmokramer/typeshed
1c8c6ec7d90e86380d9a732c09213392e3af1fdf
[ "Apache-2.0" ]
null
null
null
tests/check_consistent.py
olmokramer/typeshed
1c8c6ec7d90e86380d9a732c09213392e3af1fdf
[ "Apache-2.0" ]
1
2018-10-03T12:35:06.000Z
2018-10-03T12:35:06.000Z
#!/usr/bin/env python3 # Symlinks are bad on Windows, so we cannot use them in typeshed. # This checks that certain files are duplicated exactly. import os import filecmp consistent_files = [ {'stdlib/2/builtins.pyi', 'stdlib/2/__builtin__.pyi'}, {'stdlib/2/SocketServer.pyi', 'stdlib/3/socketserver.pyi'}, ...
50.232558
121
0.675926
acfc950eb29889ab84ee4697b947d1432e8f6370
7,537
py
Python
humble/eclipse-cyclonedds-report/perf_tool/perf_tool/resulter.py
kydos/TSC-RMW-Reports
b9fa8afe0aef554f00e6708f524e27cfdea88232
[ "MIT" ]
15
2020-12-30T02:31:42.000Z
2022-02-09T12:07:16.000Z
humble/eclipse-cyclonedds-report/perf_tool/perf_tool/resulter.py
kydos/TSC-RMW-Reports
b9fa8afe0aef554f00e6708f524e27cfdea88232
[ "MIT" ]
10
2021-08-16T14:46:26.000Z
2022-01-19T20:05:09.000Z
humble/eclipse-cyclonedds-report/perf_tool/perf_tool/resulter.py
kydos/TSC-RMW-Reports
b9fa8afe0aef554f00e6708f524e27cfdea88232
[ "MIT" ]
7
2021-03-15T15:17:24.000Z
2022-03-13T08:00:02.000Z
import numpy as np from enum import Enum def verify_numerical_sequence(data, subtype, operation): try: converted = [subtype(v) for v in data] except: return None for c in converted: if np.isnan(c) or np.isinf(c): return None return subtype(operation(...
37.685
133
0.537614
acfc9977fc869dde75dbba7784900bab31ee1dd7
38,263
py
Python
sphinx/ext/napoleon/docstring.py
shimizukawa/sphinx
359fc3c7998e057bdb7884f20f5745efd53da49a
[ "BSD-2-Clause" ]
null
null
null
sphinx/ext/napoleon/docstring.py
shimizukawa/sphinx
359fc3c7998e057bdb7884f20f5745efd53da49a
[ "BSD-2-Clause" ]
null
null
null
sphinx/ext/napoleon/docstring.py
shimizukawa/sphinx
359fc3c7998e057bdb7884f20f5745efd53da49a
[ "BSD-2-Clause" ]
null
null
null
""" sphinx.ext.napoleon.docstring ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Classes for docstring parsing and formatting. :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import inspect import re from functools import partial from typing import An...
36.933398
93
0.545592
acfc9999ff6ab8bab908d85ee5910be1baa6607a
2,801
py
Python
evaluate/eval_cylib/test_cython.py
mondrasovic/reid_baseline_syncbn
3d21a786fb1a0519caaa0572c649f750036689b5
[ "MIT" ]
1
2022-01-05T15:42:44.000Z
2022-01-05T15:42:44.000Z
evaluate/eval_cylib/test_cython.py
mondrasovic/reid_baseline_syncbn
3d21a786fb1a0519caaa0572c649f750036689b5
[ "MIT" ]
null
null
null
evaluate/eval_cylib/test_cython.py
mondrasovic/reid_baseline_syncbn
3d21a786fb1a0519caaa0572c649f750036689b5
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import os.path as osp import timeit import numpy as np sys.path.insert(0, osp.dirname(osp.abspath(__file__)) + '/../..') from torchreid.eval_metrics import evaluate """ Test the speed of cython-based evaluation code. The speed improvements can be much bigg...
32.952941
113
0.695466
acfc9a0d53fc3165149119995c179bc82c54f412
230
py
Python
custom/icds_reports/migrations/0041_added_num_anc_visits_to_agg_awc_montlhy_view.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
custom/icds_reports/migrations/0041_added_num_anc_visits_to_agg_awc_montlhy_view.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2021-06-02T04:45:16.000Z
2021-06-02T04:45:16.000Z
custom/icds_reports/migrations/0041_added_num_anc_visits_to_agg_awc_montlhy_view.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 1.11.12 on 2018-04-13 9:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('icds_reports', '0040_add_days_ration_column'), ] operations = []
17.692308
56
0.682609
acfc9a35460003dba3af4da4a8a3deb4e939f172
1,667
py
Python
cutde/backend.py
tbenthompson/cutde
7b263e2ac16de536d23d8e4d3165705e2ec9a31f
[ "MIT" ]
17
2018-05-11T01:48:47.000Z
2022-03-31T22:41:41.000Z
cutde/backend.py
tbenthompson/cutde
7b263e2ac16de536d23d8e4d3165705e2ec9a31f
[ "MIT" ]
17
2021-04-05T20:59:44.000Z
2022-03-17T13:21:10.000Z
cutde/backend.py
tbenthompson/cutde
7b263e2ac16de536d23d8e4d3165705e2ec9a31f
[ "MIT" ]
6
2021-04-05T19:44:49.000Z
2022-03-31T22:42:40.000Z
# noqa: F401 import logging import os import numpy as np try: if os.environ.get("CUTDE_USE_BACKEND", "cuda") != "cuda": # The CUTDE_USE_BACKEND environment variable overrides the normal # choice of backend. # This can be helpful for testing purposes when it might be nice to run # ...
22.527027
79
0.563287
acfc9a948911ac518bb88397752f239309e1cbe4
383
py
Python
demo/special_iter.py
1987539447/start-python
06ee5eb30e7395cd8432e8e33d7209fa855f4ad9
[ "Apache-2.0" ]
null
null
null
demo/special_iter.py
1987539447/start-python
06ee5eb30e7395cd8432e8e33d7209fa855f4ad9
[ "Apache-2.0" ]
null
null
null
demo/special_iter.py
1987539447/start-python
06ee5eb30e7395cd8432e8e33d7209fa855f4ad9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # FileName:special_iter.py # -*- coding: utf-8 -*- class Fib(object): def __init__(self): self.a, self.b = 0, 1 def __iter__(self): return self def __next__(self): self.a, self.b = self.b, self.a + self.b if self.a > 1000: raise StopIte...
16.652174
48
0.545692
acfc9b571934953de3d299141d69a8ec55968bf0
2,157
py
Python
pipelines/pipeline/var_processing.py
Wiredcraft/pipelines
2d8db414ada5d39f648ae995a714f572806ab345
[ "MIT" ]
121
2016-05-24T03:32:14.000Z
2021-12-16T12:12:12.000Z
pipelines/pipeline/var_processing.py
Wiredcraft/pipelines
2d8db414ada5d39f648ae995a714f572806ab345
[ "MIT" ]
83
2016-05-06T08:21:34.000Z
2022-02-10T12:45:52.000Z
pipelines/pipeline/var_processing.py
Wiredcraft/pipelines
2d8db414ada5d39f648ae995a714f572806ab345
[ "MIT" ]
11
2016-05-13T09:44:42.000Z
2022-03-02T07:41:54.000Z
import logging from dotmap import DotMap import jinja2 import yaml import json log = logging.getLogger('pipelines') def substitute_variables(pipeline_context, obj): if isinstance(pipeline_context, DotMap): pipeline_context = pipeline_context.toDict() pipeline_context.update(pipeline_context.get('var...
28.012987
97
0.568382
acfc9b57525169a120d26e9e90e6636bff2d349e
21,245
py
Python
Emotif/motif_clustering.py
YichaoOU/Emotif_Alpha
1b98f82fe359ab5f16056b288b6a39694962992c
[ "MIT" ]
null
null
null
Emotif/motif_clustering.py
YichaoOU/Emotif_Alpha
1b98f82fe359ab5f16056b288b6a39694962992c
[ "MIT" ]
null
null
null
Emotif/motif_clustering.py
YichaoOU/Emotif_Alpha
1b98f82fe359ab5f16056b288b6a39694962992c
[ "MIT" ]
null
null
null
from __future__ import division import os import sys import argparse import shutil import re from algo import greedy from algo import ILP from algo import branch_cut from algo import required_cover from utils import * from utils import Tomtom from utils import general_utils def run_rami_welch_clustering(...
35.765993
209
0.706802