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
030690afb35f1d77065fb9c692d3046bc25c65cc
14,678
py
Python
tf_train_hw_classification.py
Bradan/deepwriting
1c2a9d030d691c88dfc70483adcccb671a313512
[ "MIT" ]
87
2018-01-31T02:16:19.000Z
2022-03-28T18:58:25.000Z
tf_train_hw_classification.py
Bradan/deepwriting
1c2a9d030d691c88dfc70483adcccb671a313512
[ "MIT" ]
18
2017-12-26T11:16:47.000Z
2021-12-18T21:35:40.000Z
tf_train_hw_classification.py
Bradan/deepwriting
1c2a9d030d691c88dfc70483adcccb671a313512
[ "MIT" ]
25
2018-02-04T10:04:03.000Z
2021-05-21T06:41:05.000Z
import pickle import json import sys import time import os import argparse import tensorflow as tf from tensorflow.python.ops import math_ops from tensorflow.python.framework import dtypes from tf_dataset_hw import * from tf_data_feeder import * from tf_models_hw_classification import * from utils import get_model_di...
51.865724
169
0.637417
030690d21518b00b26e171f0cde72eb62e67932c
37,418
py
Python
oscar/apps/order/migrations/0019_auto__chg_field_order_billing_address__chg_field_order_user__chg_field.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
1
2015-08-02T05:36:11.000Z
2015-08-02T05:36:11.000Z
oscar/apps/order/migrations/0019_auto__chg_field_order_billing_address__chg_field_order_user__chg_field.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/order/migrations/0019_auto__chg_field_order_billing_address__chg_field_order_user__chg_field.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models from oscar.core.compat import AUTH_USER_MODEL, AUTH_USER_MODEL_NAME class Migration(SchemaMigration): def forwards(self, orm): # Changing ...
91.041363
224
0.576487
0306a4a61fed8ed4d8b9ec4a1ec33b97217a49c9
598
py
Python
conekt/forms/admin/add_expression_profiles.py
legumeinfo/CoNekT
709a4980cfa255cafd456b268e274db2b4b1f5fb
[ "MIT" ]
14
2018-08-20T03:07:21.000Z
2021-11-04T11:15:31.000Z
conekt/forms/admin/add_expression_profiles.py
mutwil/CoNekT
f4a4496a87d14b15bcf587975b31a2edc24c6bf7
[ "MIT" ]
9
2018-07-17T15:30:47.000Z
2021-07-05T13:11:54.000Z
conekt/forms/admin/add_expression_profiles.py
mutwil/CoNekT
f4a4496a87d14b15bcf587975b31a2edc24c6bf7
[ "MIT" ]
3
2019-08-05T09:16:34.000Z
2019-12-04T23:59:28.000Z
from flask_wtf import FlaskForm from wtforms import StringField, RadioField, SelectField from flask_wtf.file import FileRequired, FileField from conekt.models.species import Species class AddExpressionProfilesForm(FlaskForm): species_id = SelectField('Species', coerce=int) source = SelectField('Source', cho...
31.473684
96
0.752508
0306ace88ca80f93ac8050a71eb077128eab18b8
49,279
py
Python
tensorflow/python/debug/session_debug_testlib.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
null
null
null
tensorflow/python/debug/session_debug_testlib.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
null
null
null
tensorflow/python/debug/session_debug_testlib.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
1
2018-06-05T05:02:16.000Z
2018-06-05T05:02:16.000Z
# Copyright 2016 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...
40.492194
80
0.676901
0306d9d4619f3645600416a31b27eb9cb620729c
892
py
Python
cogs/moderation.py
alexmshow/pydiscordbot
2e127b2653e0ec199bdf48b3a01a229aafb4ce7f
[ "MIT" ]
1
2022-03-20T16:45:19.000Z
2022-03-20T16:45:19.000Z
cogs/moderation.py
alexmshow/pydiscordbot
2e127b2653e0ec199bdf48b3a01a229aafb4ce7f
[ "MIT" ]
null
null
null
cogs/moderation.py
alexmshow/pydiscordbot
2e127b2653e0ec199bdf48b3a01a229aafb4ce7f
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from discord import utils class Moderation(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(name='ping') async def ping(self, ctx): """Pings to someone.""" await ctx.send(f'{ctx.author.mention}...
30.758621
71
0.625561
0306dfbb9e859710334c35175701aad86a1f0584
3,818
py
Python
python/ngraph/__init__.py
GBuella/ngraph
ec935c0bafc5ba8c6940d9c9dcf45ddeac487513
[ "Apache-2.0" ]
null
null
null
python/ngraph/__init__.py
GBuella/ngraph
ec935c0bafc5ba8c6940d9c9dcf45ddeac487513
[ "Apache-2.0" ]
null
null
null
python/ngraph/__init__.py
GBuella/ngraph
ec935c0bafc5ba8c6940d9c9dcf45ddeac487513
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # Copyright 2017-2020 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
33.2
88
0.788895
0306f1601604978b8e25269731c2d7556109da60
3,812
py
Python
examples/decoar/models/quant.py
lingss0918/fairseq
45fbd419c9020eb782eab96e194a1d76a90ee524
[ "MIT" ]
null
null
null
examples/decoar/models/quant.py
lingss0918/fairseq
45fbd419c9020eb782eab96e194a1d76a90ee524
[ "MIT" ]
null
null
null
examples/decoar/models/quant.py
lingss0918/fairseq
45fbd419c9020eb782eab96e194a1d76a90ee524
[ "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 math from dataclasses import dataclass, field from typing import List, Tuple import numpy as np import torch import torch.nn as nn imp...
29.099237
88
0.612539
030739be4018cad5735c796d7ed887c273ce5d7d
9,441
py
Python
training_ptr_gen/model.py
michaellin/cs224n-finalproj
a82e420f9ed3055ee0155133670ad82b4ca171d4
[ "Apache-2.0" ]
null
null
null
training_ptr_gen/model.py
michaellin/cs224n-finalproj
a82e420f9ed3055ee0155133670ad82b4ca171d4
[ "Apache-2.0" ]
null
null
null
training_ptr_gen/model.py
michaellin/cs224n-finalproj
a82e420f9ed3055ee0155133670ad82b4ca171d4
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals, print_function, division import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from data_util import config from numpy import random use_cuda = config.use_gpu and torch.cuda.is_available() r...
39.668067
115
0.638174
0307613385a395a7c02df43126031f200d835b60
17,067
py
Python
helpers/segmentor_trainer.py
valeoai/SemanticPalette
a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d
[ "Apache-2.0" ]
17
2021-07-15T13:22:31.000Z
2022-02-15T05:37:51.000Z
helpers/segmentor_trainer.py
valeoai/SemanticPalette
a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d
[ "Apache-2.0" ]
null
null
null
helpers/segmentor_trainer.py
valeoai/SemanticPalette
a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d
[ "Apache-2.0" ]
3
2021-07-16T09:25:10.000Z
2022-01-11T12:36:28.000Z
import torch from apex import amp from math import ceil import random import PIL from tqdm import tqdm #torch.multiprocessing.set_start_method('spawn', force=True) import os,sys,inspect current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) urbangan_dir = os.path.dirname(curr...
55.23301
198
0.604383
0307a9a383489d54efecb63c8a4ae7c7c58c8d45
4,548
py
Python
src/sentry_plugins/hipchat_ac/plugin.py
pawelkoston/sentry-plugins
03cd2d4ccabdd5be1a1983730d0f3fff79e28444
[ "Apache-2.0" ]
null
null
null
src/sentry_plugins/hipchat_ac/plugin.py
pawelkoston/sentry-plugins
03cd2d4ccabdd5be1a1983730d0f3fff79e28444
[ "Apache-2.0" ]
null
null
null
src/sentry_plugins/hipchat_ac/plugin.py
pawelkoston/sentry-plugins
03cd2d4ccabdd5be1a1983730d0f3fff79e28444
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from django.conf import settings from django.core.urlresolvers import reverse from six.moves.urllib.parse import urlparse, quote from sentry import options from sentry.plugins import plugins from sentry.plugins.bases.notify import NotifyPlugin from sentry.utils.http import absol...
29.921053
86
0.651935
0307ad39084bc7859562bccf427e05f538a849e5
369
py
Python
entitylinker/test2.py
vsocrates/biomedical_el
12e3a3cf72acd18437bc9d94fc385a67bf0b2023
[ "MIT" ]
null
null
null
entitylinker/test2.py
vsocrates/biomedical_el
12e3a3cf72acd18437bc9d94fc385a67bf0b2023
[ "MIT" ]
null
null
null
entitylinker/test2.py
vsocrates/biomedical_el
12e3a3cf72acd18437bc9d94fc385a67bf0b2023
[ "MIT" ]
null
null
null
import torch import torch.nn as nn # m = nn.LogSoftmax(dim=1) # loss = nn.NLLLoss() # # input is of size N x C = 1 x 3 # input = torch.tensor([[1,0,0]], requires_grad=True, dtype=torch.float) # # each element in target has to have 0 <= value < C # target = torch.tensor([1]) # output = loss(m(input), target) # print(m...
26.357143
72
0.647696
0307bafe548ef25b61ead992229b819ea9cbc17f
1,662
py
Python
pybrake/git.py
mastak/pybrake
32968efbebea07580680f16228be818726c13933
[ "MIT" ]
36
2018-04-24T09:26:12.000Z
2022-02-17T13:44:41.000Z
pybrake/git.py
mastak/pybrake
32968efbebea07580680f16228be818726c13933
[ "MIT" ]
90
2018-03-06T15:13:53.000Z
2022-03-25T11:32:25.000Z
pybrake/git.py
mastak/pybrake
32968efbebea07580680f16228be818726c13933
[ "MIT" ]
21
2018-04-04T14:50:12.000Z
2022-03-23T05:48:51.000Z
import os from functools import lru_cache from .utils import logger @lru_cache(maxsize=1000) def get_git_revision(dirpath): try: return _get_git_revision(dirpath) except (OSError, IOError) as err: logger.error("get_git_revision failed: %s", err) return None def _get_git_revision(dir...
23.742857
88
0.583634
0307cd71197d7094ec5a9a79c83d1cf647a7bb50
2,120
py
Python
Tools.py
unmonk/Project-Infinity
63c22fcf4086adf868967cb172434e3ceba4bac5
[ "CC0-1.0" ]
null
null
null
Tools.py
unmonk/Project-Infinity
63c22fcf4086adf868967cb172434e3ceba4bac5
[ "CC0-1.0" ]
null
null
null
Tools.py
unmonk/Project-Infinity
63c22fcf4086adf868967cb172434e3ceba4bac5
[ "CC0-1.0" ]
null
null
null
__author__ = 'Scott' import pygame from pytmx import * from pytmx.util_pygame import load_pygame class TileLayer(object): def __init__(self, index, mapObj): self.index = index self.tiles = pygame.sprite.Group() self.mapObj = mapObj for x in range(self.mapObj.width): fo...
28.648649
66
0.583962
0307cf6b2bd6a3b91befd710e54cbaf94b69f1f0
781
py
Python
tests/test_usage_flows.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
31
2021-06-10T13:35:07.000Z
2022-03-30T12:34:26.000Z
tests/test_usage_flows.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
50
2021-06-10T10:56:34.000Z
2022-01-26T18:23:31.000Z
tests/test_usage_flows.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
2
2021-09-09T00:44:17.000Z
2021-09-24T17:08:32.000Z
from skorecard.bucketers import DecisionTreeBucketer, OptimalBucketer from sklearn.pipeline import make_pipeline def test_full_pipeline(df): """Tests some complete pipelines.""" X = df.drop(columns=["default"]) y = df["default"] num_cols = ["LIMIT_BAL", "BILL_AMT1"] cat_cols = ["EDUCATION", "MARR...
32.541667
115
0.732394
03080b3cb381a72adeeb7065d427ca48f317ebe6
17,223
py
Python
tests/h/views/api/auth_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/h/views/api/auth_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/h/views/api/auth_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from unittest import mock import datetime import json import pytest from oauthlib.oauth2 import InvalidRequestFatalError from oauthlib.common import Request as OAuthRequest from pyramid import httpexceptions from h._compat import urlparse from h.view...
35.584711
111
0.680427
03083b2396de2dabef84e9638cfa1cdd5f32835a
3,332
py
Python
install_exploit.py
zenedf/Install_Metasploit_Exploits
d8cf27618d6d5ebbc86daf8d26f6358b5d7d0aec
[ "MIT" ]
null
null
null
install_exploit.py
zenedf/Install_Metasploit_Exploits
d8cf27618d6d5ebbc86daf8d26f6358b5d7d0aec
[ "MIT" ]
2
2017-09-27T16:30:25.000Z
2017-09-27T16:31:26.000Z
install_exploit.py
zenedf/Install_Metasploit_Exploits
d8cf27618d6d5ebbc86daf8d26f6358b5d7d0aec
[ "MIT" ]
null
null
null
# Title: install_exploit v.1 - Install Metasploit Exploits # Date: Sept. 27, 2017 # Author: Ethan Frazier # Version: install_exploit v.1 #!/bin/usr/python3 from termcolor import colored from os import system, path from sys import argv from argparse import ArgumentParser EXPLOITS_DIR = "~/.msf4/modules...
37.438202
115
0.629952
03087411aa74bfb7ca6052da87257bd99f1dc96c
679
py
Python
tests/test_dice.py
Brettanda/friday-bot
d103b1c103052b8d6d12f44456fea3823bd22447
[ "CC0-1.0" ]
5
2021-09-04T09:08:55.000Z
2022-02-08T00:28:08.000Z
tests/test_dice.py
Brettanda/friday-bot
d103b1c103052b8d6d12f44456fea3823bd22447
[ "CC0-1.0" ]
2
2021-10-11T21:44:08.000Z
2021-11-05T07:41:23.000Z
tests/test_dice.py
Brettanda/friday-bot
d103b1c103052b8d6d12f44456fea3823bd22447
[ "CC0-1.0" ]
3
2021-09-04T09:12:34.000Z
2021-12-16T20:02:03.000Z
import pytest from functions.messagecolors import MessageColors from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from .conftest import bot, channel @pytest.mark.asyncio @pytest.mark.parametrize("roll", ["1d20", "2d8", "1d20k7", "1*3", ""]) async def test_dice(bot: "bot", channel: "channel", roll: str)...
33.95
127
0.721649
03087945956a080390f9c8b4a07a698e3a0dcf4f
3,594
py
Python
auto_instance/version_3.py
jiacaiyuan/uvm-generator
63f4c7bd0dad43b357d1cc859b61011718c597f8
[ "MIT" ]
13
2020-04-15T09:11:53.000Z
2022-03-13T02:05:53.000Z
auto_instance/version_3.py
jiacaiyuan/uvm-generator
63f4c7bd0dad43b357d1cc859b61011718c597f8
[ "MIT" ]
null
null
null
auto_instance/version_3.py
jiacaiyuan/uvm-generator
63f4c7bd0dad43b357d1cc859b61011718c597f8
[ "MIT" ]
4
2020-11-27T08:11:24.000Z
2022-02-19T09:11:36.000Z
''' 2018/11/29 1.添加 frame_gen 逻辑用于方便的生成流输入 2.测试中存在丢失端口检测的情况 3.复位极性,时钟,复位信号无法自动检测 4.信号没有再系统初始化的时候自动添加复位(reg型) 添加 function blog2 function integer blog2(input integer num); for ( blog2 = 0 ; num > 0...
33.588785
182
0.584585
03088f5b9697be022b1d10e0cacd9129b7409cf8
1,327
py
Python
spike/play_tutorial.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
spike/play_tutorial.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
spike/play_tutorial.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
import json import os import time from opsbro.log import cprint from opsbro.info import BANNER, TITLE_COLOR import sys pth = os.path.join(os.path.dirname(__file__), 'linux-dashboard.json') f = open('/root/counter.txt', 'a') f.write('%d\n' % time.time()) f.close() f = open(pth, 'r') buf = f.read() f.close() tutoria...
25.037736
105
0.681989
0308e761cad08f57ae7cd7f1f4412ccdb51145a7
1,311
py
Python
h2o-py/tests/testdir_algos/glm/pyunit_solvers_glm.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
1
2018-03-22T12:45:32.000Z
2018-03-22T12:45:32.000Z
h2o-py/tests/testdir_algos/glm/pyunit_solvers_glm.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_algos/glm/pyunit_solvers_glm.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
1
2018-10-23T02:52:55.000Z
2018-10-23T02:52:55.000Z
from __future__ import print_function import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator def glm_solvers(): predictors = ["displacement","power","weight","acceleration","year"] for solver in ["AUTO", "IRLSM", "L_BFGS", ...
42.290323
102
0.695652
030903dbb80fa646eebb81a1aaa6d39fb6511d87
1,747
py
Python
master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/vcs/dummy/__init__.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/vcs/dummy/__init__.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/vcs/dummy/__init__.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
# # This is an extension to the Nautilus file manager to allow better # integration with the Subversion source control system. # # Copyright (C) 2006-2008 by Jason Field <jason@jasonfield.com> # Copyright (C) 2007-2008 by Bruce van der Kooij <brucevdkooij@gmail.com> # Copyright (C) 2008-2010 by Adam Plumb <adamplumb@gm...
30.12069
73
0.706354
030920970936ada47b2620f297b5886cd0a1a00a
70,743
py
Python
src/sage/geometry/polyhedron/plot.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
1
2016-11-04T16:31:48.000Z
2016-11-04T16:31:48.000Z
src/sage/geometry/polyhedron/plot.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/geometry/polyhedron/plot.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
""" Functions for plotting polyhedra """ ######################################################################## # Copyright (C) 2008 Marshall Hampton <hamptonio@gmail.com> # Copyright (C) 2011 Volker Braun <vbraun.name@gmail.com> # # Distributed under the terms of the GNU General Public License (GPL) # ...
39.041391
191
0.550245
03094fbcaa9d09f1940ad4ff2b7390c7457812a1
2,088
py
Python
src/commands/turntoangle.py
Sloomey/DeepSpace2019
dda035c0ac100209b03a2ff04d86df09c6de9a85
[ "MIT" ]
null
null
null
src/commands/turntoangle.py
Sloomey/DeepSpace2019
dda035c0ac100209b03a2ff04d86df09c6de9a85
[ "MIT" ]
null
null
null
src/commands/turntoangle.py
Sloomey/DeepSpace2019
dda035c0ac100209b03a2ff04d86df09c6de9a85
[ "MIT" ]
null
null
null
import math from wpilib import SmartDashboard as Dash from wpilib.command import Command from constants import Constants from subsystems import drive from utils import pid, units import odemetry import wpilib class TurnToAngle(Command): def __init__(self, setpoint, relative=False): super().__init__() ...
34.8
77
0.657567
03096b2a7483f681b7c642ed90fe149fbe428a66
569
py
Python
src/dummynet/dummy_net_factory.py
steinwurf/dummynet-python
4c72ed4c3a217ec6c69dfa00032b275b9bd6a40e
[ "BSD-3-Clause" ]
null
null
null
src/dummynet/dummy_net_factory.py
steinwurf/dummynet-python
4c72ed4c3a217ec6c69dfa00032b275b9bd6a40e
[ "BSD-3-Clause" ]
null
null
null
src/dummynet/dummy_net_factory.py
steinwurf/dummynet-python
4c72ed4c3a217ec6c69dfa00032b275b9bd6a40e
[ "BSD-3-Clause" ]
null
null
null
import docker from . import docker_shell from . import host_shell from . import dummy_net class DummyNetFactory(object): def __init__(self, log): self.log = log def host(self, sudo=False): shell = host_shell.HostShell(log=self.log, sudo=sudo) return dummy_net.DummyNet(shell=shell) ...
23.708333
88
0.678383
0309737e3a34b266f6a8ff7acea5a7ea3c0b4503
3,181
py
Python
examples/dummy_stations_example.py
AirHorizons/cond_rnn
8b6625e6b6f608f12e84f6249877a84b87124c31
[ "MIT" ]
182
2019-06-12T06:35:57.000Z
2022-03-27T15:21:47.000Z
examples/dummy_stations_example.py
AirHorizons/cond_rnn
8b6625e6b6f608f12e84f6249877a84b87124c31
[ "MIT" ]
21
2019-06-20T15:25:31.000Z
2022-03-24T05:37:55.000Z
examples/dummy_stations_example.py
AirHorizons/cond_rnn
8b6625e6b6f608f12e84f6249877a84b87124c31
[ "MIT" ]
31
2019-06-13T05:43:58.000Z
2021-12-30T15:41:53.000Z
import numpy as np from tensorflow.keras import Input from tensorflow.keras import Model from tensorflow.keras.layers import Dense from tensorflow.keras.models import Sequential from cond_rnn import ConditionalRNN # This is an example with dummy to explain how to use CondRNN. # _______________________________________...
39.7625
114
0.7221
030995fd4ae7f4deaf210522b67ffb32364a129c
3,957
py
Python
main/kelvinator/utility.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
2
2015-10-31T23:12:52.000Z
2021-01-19T11:03:00.000Z
main/kelvinator/utility.py
sunu/class2go
653b1edd01d390ad387dd788e0fc2d89445fbcab
[ "Apache-2.0" ]
null
null
null
main/kelvinator/utility.py
sunu/class2go
653b1edd01d390ad387dd788e0fc2d89445fbcab
[ "Apache-2.0" ]
null
null
null
import sys, os, socket, shutil import tempfile import logging import urllib, urllib2, urlparse from django.core.files.storage import default_storage from django.conf import settings from django.core.mail import send_mail logger = logging.getLogger(__name__) def splitpath(raw): store_path = urlparse.urlsplit(ra...
29.977273
103
0.663634
0309981e1637898f9564d18f7299dc2be26fdcbc
2,599
py
Python
tests/fenics/test_assemble.py
shyams2/jax-fenics-adjoint
7c0f1e9ea3b74966d44f38e29135fc2aa05ec6dd
[ "MIT" ]
61
2020-03-03T22:01:29.000Z
2022-03-31T19:32:14.000Z
tests/fenics/test_assemble.py
pmistani/jax-fenics-adjoint
19e51719adc4a816192b3b0719e1c0208d4ff242
[ "MIT" ]
6
2020-03-04T15:42:45.000Z
2021-12-25T23:04:14.000Z
tests/fenics/test_assemble.py
pmistani/jax-fenics-adjoint
19e51719adc4a816192b3b0719e1c0208d4ff242
[ "MIT" ]
10
2020-03-04T15:14:57.000Z
2022-01-19T03:29:50.000Z
from pytest_check import check import jax from jax.config import config import jax.numpy as np import numpy as onp import fenics import fenics_adjoint as fa import ufl import fdm from jaxfenics_adjoint import build_jax_fem_eval config.update("jax_enable_x64", True) mesh = fa.UnitSquareMesh(3, 2) V = fenics.Functio...
29.202247
78
0.646018
0309a7a250990461cf84abebea587806a06b177f
41
py
Python
custom-gym/custom_gym/envs/__init__.py
HaoranZ99/RL-2
253c2fd8c705f88d9cc79abd9f331dc99b5895eb
[ "MIT" ]
null
null
null
custom-gym/custom_gym/envs/__init__.py
HaoranZ99/RL-2
253c2fd8c705f88d9cc79abd9f331dc99b5895eb
[ "MIT" ]
null
null
null
custom-gym/custom_gym/envs/__init__.py
HaoranZ99/RL-2
253c2fd8c705f88d9cc79abd9f331dc99b5895eb
[ "MIT" ]
null
null
null
from custom_gym.envs.env import IslandEnv
41
41
0.878049
0309a8011df54ea015c22773d57df117d7683094
2,102
py
Python
BlockServerToKafka/forwarder_config.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
1
2020-08-20T23:38:53.000Z
2020-08-20T23:38:53.000Z
BlockServerToKafka/forwarder_config.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
88
2015-09-03T11:50:41.000Z
2021-02-18T19:13:04.000Z
BlockServerToKafka/forwarder_config.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
1
2020-08-20T23:38:05.000Z
2020-08-20T23:38:05.000Z
# This file is part of the ISIS IBEX application. # Copyright (C) 2012-2020 Science & Technology Facilities Council. # All rights reserved. # # This program is distributed in the hope that it will be useful. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License...
40.423077
88
0.743578
0309ca2de7206405c79a52c8d1fa62aa60e1cd29
1,974
py
Python
jyserver/Flask.py
ftrias/jyserver
84e96672686020dc5e75d44b5b29f33a24773a37
[ "MIT" ]
10
2020-05-11T11:36:29.000Z
2021-09-14T06:00:06.000Z
jyserver/Flask.py
ftrias/jyserver
84e96672686020dc5e75d44b5b29f33a24773a37
[ "MIT" ]
1
2021-11-25T13:20:11.000Z
2021-11-25T13:20:11.000Z
jyserver/Flask.py
ftrias/jyserver
84e96672686020dc5e75d44b5b29f33a24773a37
[ "MIT" ]
3
2020-05-11T11:36:34.000Z
2022-03-09T06:17:31.000Z
''' Module for using jyserver in Flask. This module provides to new decorators. Decorators ----------- * @use Link an application object to the Flask app * @task Helper that wraps a function inside a separate thread so that it can execute concurrently. Example ------------- ```html <p id="time">TIME</...
22.953488
77
0.604863
0309dbd5d11f344fa0dbcb0899f4a1e83f1fc07b
1,367
py
Python
hs_tools_resource/migrations/0010_auto_20161203_1913.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_tools_resource/migrations/0010_auto_20161203_1913.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_tools_resource/migrations/0010_auto_20161203_1913.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hs_tools_resource', '0009_auto_20160929_1543'), ] operations = [ migrations.AlterField( model_name='toolicon', name='url', fiel...
30.377778
107
0.587418
0309dffd9b86c492998ff99f0aae8023034a31fb
48
py
Python
pacfish/api/__init__.py
IPASC/DataConversionTool
88f04c4df97f4a060c566da4bfc0c0e4fe246536
[ "MIT", "BSD-3-Clause" ]
2
2021-12-16T04:21:37.000Z
2022-03-10T03:19:21.000Z
pacfish/api/__init__.py
IPASC/DataConversionTool
88f04c4df97f4a060c566da4bfc0c0e4fe246536
[ "MIT", "BSD-3-Clause" ]
12
2021-12-20T13:22:45.000Z
2022-02-17T19:57:03.000Z
pacfish/api/__init__.py
amasmiller/PACFISH
f9bc912e701df3261a2b9a94df281c664701701d
[ "BSD-3-Clause" ]
1
2022-02-11T21:33:28.000Z
2022-02-11T21:33:28.000Z
from pacfish.api.BaseAdapter import BaseAdapter
24
47
0.875
0309f34318102ce27c11649e5530ce5399420d16
967
py
Python
mathics/__init__.py
rebcabin/mathics-core
0cbf808fb9fb91e0a32d0aa9d1af1477d0258f41
[ "Apache-2.0" ]
null
null
null
mathics/__init__.py
rebcabin/mathics-core
0cbf808fb9fb91e0a32d0aa9d1af1477d0258f41
[ "Apache-2.0" ]
null
null
null
mathics/__init__.py
rebcabin/mathics-core
0cbf808fb9fb91e0a32d0aa9d1af1477d0258f41
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import platform import sympy import mpmath import numpy from mathics.version import __version__ version_info = { "mathics": __version__, "sympy": sympy.__version__, "mpmath": mpmath.__version__, "numpy": numpy.__version__, "python": platfo...
21.488889
82
0.709411
0309f695bde0ecda139ff978f36ec286ee8333ff
3,656
py
Python
theano_models/SdA/test_multiproc_gpu.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
theano_models/SdA/test_multiproc_gpu.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
theano_models/SdA/test_multiproc_gpu.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
""" Test script that uses two GPUs, one per sub-process, via the Python multiprocessing module. Each GPU fits a logistic regression model. """ # These imports will not trigger any theano GPU binding from multiprocessing import Process, Manager import numpy as np import os def f(shared_args,private_args): """ B...
35.843137
101
0.621444
0309fbba48b74a5839920e46baff700ad7cdd924
194
py
Python
pygfunction/__init__.py
wouterpeere/pygfunction
6ac885b8b8a9532ed4aa2a748a0561a55ee515c2
[ "BSD-3-Clause" ]
32
2017-10-10T17:53:43.000Z
2022-02-26T16:54:57.000Z
pygfunction/__init__.py
wouterpeere/pygfunction
6ac885b8b8a9532ed4aa2a748a0561a55ee515c2
[ "BSD-3-Clause" ]
135
2017-10-12T16:55:38.000Z
2022-02-12T19:48:54.000Z
pygfunction/__init__.py
j-c-cook/pygfunction
73cb9292fc39a068bd3d4ebe66b07ec9c8903c8d
[ "BSD-3-Clause" ]
11
2018-10-06T08:59:32.000Z
2022-02-26T16:57:59.000Z
from . import boreholes from . import gfunction from . import heat_transfer from . import load_aggregation from . import media from . import networks from . import pipes from . import utilities
21.555556
30
0.793814
030a37e4ed63a106977fa3fa1744df0e6508489a
3,910
py
Python
timm/models/helpers.py
bermanmaxim/pytorch-image-models
1d7f2d93a68bdc3c5d8d634d869709f6cdd7cecd
[ "Apache-2.0" ]
null
null
null
timm/models/helpers.py
bermanmaxim/pytorch-image-models
1d7f2d93a68bdc3c5d8d634d869709f6cdd7cecd
[ "Apache-2.0" ]
null
null
null
timm/models/helpers.py
bermanmaxim/pytorch-image-models
1d7f2d93a68bdc3c5d8d634d869709f6cdd7cecd
[ "Apache-2.0" ]
null
null
null
import torch import torch.utils.model_zoo as model_zoo import os from collections import OrderedDict def load_checkpoint(model, checkpoint_path, use_ema=False): if checkpoint_path and os.path.isfile(checkpoint_path): checkpoint = torch.load(checkpoint_path) state_dict_key = '' if isinstanc...
42.043011
107
0.660614
030a3b51c4e69c9e048c622c08625ace628b4c53
387
py
Python
apps/iiif/canvases/migrations/0002_canvas_is_starting_page.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/iiif/canvases/migrations/0002_canvas_is_starting_page.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/iiif/canvases/migrations/0002_canvas_is_starting_page.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
# Generated by Django 2.1.2 on 2019-04-15 01:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('canvases', '0001_initial'), ] operations = [ migrations.AddField( model_name='canvas', name='is_starting_page', ...
20.368421
53
0.599483
030a3f24ed377fe72cd290bc8374970de49deb4a
530
py
Python
src/ftd/search.py
FabienTaxil/ftd
a36e0ca59eb60e216a5de1eb93d1089a7f080ec7
[ "MIT" ]
3
2022-01-26T23:43:16.000Z
2022-02-11T07:50:49.000Z
src/ftd/search.py
lixaft/ftd
a36e0ca59eb60e216a5de1eb93d1089a7f080ec7
[ "MIT" ]
null
null
null
src/ftd/search.py
lixaft/ftd
a36e0ca59eb60e216a5de1eb93d1089a7f080ec7
[ "MIT" ]
null
null
null
"""Common utilities to search nodes in the current scene.""" import logging import re from maya import cmds LOG = logging.getLogger(__name__) __all__ = ["regex"] def regex(expression): """Find nodes based on regular expression. Arguments: expression (str): The regex that should match the node name...
21.2
78
0.660377
030a5ba894ea3074b4e4f968344a5c3eaa53f2a6
3,231
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2021_04_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2021_04_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2021_04_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.826087
125
0.692974
030a66819605ea5b86298c6ef1782a83d6d5fe64
8,607
py
Python
test_abiquo_inventory.py
abiquo/abiquo-ansible-inventory
9e637457a77908db65c32f24f9ffe132c958f57c
[ "Apache-2.0" ]
null
null
null
test_abiquo_inventory.py
abiquo/abiquo-ansible-inventory
9e637457a77908db65c32f24f9ffe132c958f57c
[ "Apache-2.0" ]
null
null
null
test_abiquo_inventory.py
abiquo/abiquo-ansible-inventory
9e637457a77908db65c32f24f9ffe132c958f57c
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import configparser import os import unittest from unittest import TestCase from unittest.mock import patch from abiquo.client import Abiquo from requests import Response from abiquo_inventory import InventoryGenerator, InventoryGeneratorParameters, ConfigProvider class ApiRespon...
47.552486
116
0.66353
030a749931455f3f54cae31d509ffec2f8d38fbd
161
py
Python
test/test_all.py
heyudude/webapp-flask-sqlite3-template
5cba4e8acf0c9ee4ac5a5c1e7264317c4b3f92a5
[ "MIT" ]
1
2021-09-28T09:58:32.000Z
2021-09-28T09:58:32.000Z
test/test_all.py
heyudude/webapp-flask-sqlite3-template
5cba4e8acf0c9ee4ac5a5c1e7264317c4b3f92a5
[ "MIT" ]
64
2019-10-26T08:57:42.000Z
2021-06-02T10:24:49.000Z
test/test_all.py
heyudude/webapp-flask-sqlite3-template
5cba4e8acf0c9ee4ac5a5c1e7264317c4b3f92a5
[ "MIT" ]
1
2020-03-03T19:13:09.000Z
2020-03-03T19:13:09.000Z
"Run all tests." from test_root import Root from test_about import About from test_user import User if __name__ == '__main__': import base base.run()
14.636364
28
0.726708
030a74bdcce888c413577e6975e9f6f0b5e7c506
2,253
py
Python
ivc.py
SIIS-cloud/ivp
964aef735ffad2d647766936648cce8a1ac55116
[ "Apache-2.0" ]
null
null
null
ivc.py
SIIS-cloud/ivp
964aef735ffad2d647766936648cce8a1ac55116
[ "Apache-2.0" ]
null
null
null
ivc.py
SIIS-cloud/ivp
964aef735ffad2d647766936648cce8a1ac55116
[ "Apache-2.0" ]
null
null
null
# The Integrity Verification Proxy (IVP) additions are ... # # Copyright (c) 2012 The Pennsylvania State University # Systems and Internet Infrastructure Security Laboratory # # they were developed by: # # Joshua Schiffman <jschiffm@cse.psu.edu> # Hayawardh Vijayakumar <huv101@cse.psu.edu> # Trent Jaeger <tjaeger...
33.132353
80
0.694186
030aace7bc3c036f8eb6beac05398a0a425a7730
1,101
py
Python
test/unit/webdriver/device/keyboard_test.py
Jonahss/python-client
6e4ae308f98653966b96294f779a9df061d0d56b
[ "Apache-2.0" ]
1
2019-05-01T11:05:43.000Z
2019-05-01T11:05:43.000Z
test/unit/webdriver/device/keyboard_test.py
Jonahss/python-client
6e4ae308f98653966b96294f779a9df061d0d56b
[ "Apache-2.0" ]
null
null
null
test/unit/webdriver/device/keyboard_test.py
Jonahss/python-client
6e4ae308f98653966b96294f779a9df061d0d56b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # 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...
30.583333
77
0.739328
030aadba3e58bd2d626f5f5062a5b2b27e12631f
37,478
py
Python
qualys_cs_api/api/container_api.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
qualys_cs_api/api/container_api.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
qualys_cs_api/api/container_api.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
1
2020-05-15T04:20:48.000Z
2020-05-15T04:20:48.000Z
# coding: utf-8 """ Container Security APIs All features of the Container Security are available through REST APIs.<br/>Access support information at www.qualys.com/support/<br/><br/><b>Permissions:</b><br/>User must have the Container module enabled<br/>User must have API ACCESS permission # noqa: E501 ...
52.197772
265
0.631277
030abe4eee8a1c2196ca53a56fa5f4949112a69e
382
py
Python
Turtle/dinossauro.py
lalapapauhuh/Python
1454263b46d66a0b19b7a2fd1b465800fe95a2c8
[ "MIT" ]
null
null
null
Turtle/dinossauro.py
lalapapauhuh/Python
1454263b46d66a0b19b7a2fd1b465800fe95a2c8
[ "MIT" ]
null
null
null
Turtle/dinossauro.py
lalapapauhuh/Python
1454263b46d66a0b19b7a2fd1b465800fe95a2c8
[ "MIT" ]
null
null
null
import turtle wn = turtle.Screen() tarta = turtle.Turtle() tarta.pensize(3) arquivo = open(r"C:\Users\CASSIO\Documents\Python\Turtle\desenho.txt") for linha in arquivo: item = linha.split() if item[0] == 'UP': tarta.up() elif item[0] == 'DOWN': tarta.down() else: tarta.goto...
17.363636
70
0.612565
030af12b3f3da879d6248f600954d5ecd078560a
16,492
py
Python
oddt/docking/AutodockVina.py
mwojcikowski/oddt
3b58b15b530e97a90d958fe8b862f16605b6da1f
[ "BSD-3-Clause" ]
null
null
null
oddt/docking/AutodockVina.py
mwojcikowski/oddt
3b58b15b530e97a90d958fe8b862f16605b6da1f
[ "BSD-3-Clause" ]
null
null
null
oddt/docking/AutodockVina.py
mwojcikowski/oddt
3b58b15b530e97a90d958fe8b862f16605b6da1f
[ "BSD-3-Clause" ]
null
null
null
import sys import subprocess import re import os import warnings from tempfile import mkdtemp from shutil import rmtree from six import string_types import oddt from oddt.utils import (is_openbabel_molecule, is_molecule, check_molecule) from oddt.spatial import rmsd c...
38.353488
85
0.538443
030b1f9597b11d3213526967b438b065ed5cd53d
2,015
py
Python
admin/meetings/serializers.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
admin/meetings/serializers.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
4
2016-05-13T14:24:16.000Z
2017-03-30T15:28:31.000Z
admin/meetings/serializers.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
null
null
null
from website.conferences.model import DEFAULT_FIELD_NAMES def serialize_meeting(meeting): is_meeting = True if hasattr(meeting, 'is_meeting') and meeting.is_meeting is not None: is_meeting = meeting.is_meeting return { 'endpoint': meeting.endpoint, 'name': meeting.name, 'inf...
61.060606
127
0.704715
030b4da530d4debb4da1b8502ea29c1c28db2fa3
4,735
py
Python
alipay/aop/api/domain/AlipayDataAiserviceCloudbusMetrodetailQueryModel.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/AlipayDataAiserviceCloudbusMetrodetailQueryModel.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/AlipayDataAiserviceCloudbusMetrodetailQueryModel.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 AlipayDataAiserviceCloudbusMetrodetailQueryModel(object): def __init__(self): self._app_version = None self._city_code = None self._dest_geo = None self._end_date ...
29.409938
73
0.572122
030b643883ea1054d419494aa6d314c05d9017e3
4,546
py
Python
SCRAPE/Lib/site-packages/twisted/logger/_stdlib.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/logger/_stdlib.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/logger/_stdlib.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# -*- test-case-name: twisted.logger.test.test_stdlib -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Integration with Python standard library logging. """ import logging as stdlibLogging from typing import Mapping, Tuple from zope.interface import implementer from constantly import ...
34.439394
85
0.678619
030b8ecbe5d9031a57c8ef0c143ea4c22739432c
798
py
Python
widgets/button.py
alberand/lemonbar
baa479edb422b6595794794dcd434a3ab65ae747
[ "MIT" ]
null
null
null
widgets/button.py
alberand/lemonbar
baa479edb422b6595794794dcd434a3ab65ae747
[ "MIT" ]
null
null
null
widgets/button.py
alberand/lemonbar
baa479edb422b6595794794dcd434a3ab65ae747
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re import sys import datetime import subprocess from widgets.widget import Widget from widgets.config import colors, icons class button(Widget): ''' ''' def __init__(self, value=''): ''' Params: bg: background color fg: foreground col...
21.567568
69
0.558897
030bb8fbf16d8eb3fd410b924abf6dd3aefcf15b
201
py
Python
brian2/input/__init__.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
1
2019-03-31T09:02:08.000Z
2019-03-31T09:02:08.000Z
brian2/input/__init__.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
13
2015-10-05T15:33:42.000Z
2015-11-18T08:31:42.000Z
brian2/input/__init__.py
moritzaugustin/brian2
d98ea0cb4af0c9426e71c8ee7659ddb13aea8593
[ "BSD-2-Clause" ]
null
null
null
''' Classes for providing external input to a network. ''' from .binomial import * from .poissongroup import * from .poissoninput import * from .spikegeneratorgroup import * from .timedarray import *
20.1
50
0.761194
030bc9a7e2e7d01aa88c5eca3c67dbb284396fe6
7,655
py
Python
rock4/common/dev/idleshell/TextEditDelegator.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
5
2018-09-25T05:49:49.000Z
2021-12-30T11:06:09.000Z
rock4/common/dev/idleshell/TextEditDelegator.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
3
2018-04-01T04:27:21.000Z
2019-01-03T11:02:33.000Z
rock4/common/dev/idleshell/TextEditDelegator.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
7
2018-09-25T05:49:51.000Z
2021-12-30T11:06:11.000Z
# -*- encoding: utf-8 -*- ''' Current module: pyrunner.ext.idleshell.TextEditDelegator Rough version history: v1.0 Original version to use ******************************************************************** @AUTHOR: Administrator-Bruce Luo(罗科峰) MAIL: lkf20031988@163.com RCS: rock4.c...
43.005618
179
0.545918
030bf14c03fee7be8a8c44add25677fefba23a33
1,260
py
Python
experiments/debug/debug_changepoint.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
151
2015-01-09T19:25:05.000Z
2022-01-05T02:05:52.000Z
experiments/debug/debug_changepoint.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
1
2016-08-04T13:12:51.000Z
2016-08-04T13:12:51.000Z
experiments/debug/debug_changepoint.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
59
2015-02-04T19:13:58.000Z
2021-07-28T23:36:09.000Z
Experiment(description='For debugging changepoints', data_dir='../data/debug/', max_depth=3, random_order=False, k=1, debug=False, local_computation=True, n_rand=1, sd=2, jitter_sd=0.1, max_jobs=300, ...
37.058824
90
0.447619
030c00d1e874b8d7922c096a791981a05048e2ca
2,361
py
Python
experiments/run_virtual_screen.py
kamikaze0923/ChemBo
596b4108deef785c7afe25f9a68975e6d3a18225
[ "MIT" ]
29
2019-08-07T07:41:25.000Z
2022-03-20T13:10:49.000Z
experiments/run_virtual_screen.py
ks-korovina/dragonfly_chemist
aa30a1cbacaee1d5c46e333f54781c90183f5cd7
[ "MIT" ]
10
2019-11-02T07:10:37.000Z
2022-03-12T00:03:04.000Z
experiments/run_virtual_screen.py
cyclone923/ChemBo
596b4108deef785c7afe25f9a68975e6d3a18225
[ "MIT" ]
4
2020-06-29T02:39:59.000Z
2022-02-17T20:52:46.000Z
""" Run a virtual screen baseline: starting from an initial pool, we randomly sample the next point from the rest of the dataset, instead of synthesizing it from that pool. This simulates a situation of virtual screening and doesn't account for the cost of discovery of new compounds. """ import numpy as np from argpar...
41.421053
82
0.671749
030c027d0a0f9d94b7ab108d7e41fee455848dab
966
py
Python
wal_e/blobstore/gs/calling_format.py
deisthree/wal-e
c6cee1f706f629257f7e7fbd75102e5de51827c6
[ "BSD-3-Clause" ]
null
null
null
wal_e/blobstore/gs/calling_format.py
deisthree/wal-e
c6cee1f706f629257f7e7fbd75102e5de51827c6
[ "BSD-3-Clause" ]
null
null
null
wal_e/blobstore/gs/calling_format.py
deisthree/wal-e
c6cee1f706f629257f7e7fbd75102e5de51827c6
[ "BSD-3-Clause" ]
null
null
null
from gcloud.storage.connection import Connection from gcloud.credentials import get_credentials from gcloud import storage from gevent.local import local from httplib2 import Http def connect(creds): """Construct a connection value to Google Storage API The credentials are retrieved using get_credentials th...
27.6
75
0.717391
030c0b256b0afff436f4347dc322ddac2cb13e51
1,412
py
Python
alipay/aop/api/domain/AlipayEcoSignFlowCancelModel.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/AlipayEcoSignFlowCancelModel.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/AlipayEcoSignFlowCancelModel.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 AlipayEcoSignFlowCancelModel(object): def __init__(self): self._flow_id = None self._revoke_reason = None @property def flow_id(self): return self._flow_id @...
25.214286
77
0.596317
030c7545e5187a10e5f672984fc018dc3fe8363b
1,194
py
Python
plugins/holland.backup.mysqldump/setup.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.backup.mysqldump/setup.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.backup.mysqldump/setup.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages version = "1.2.0" setup( name="holland.backup.mysqldump", version=version, description="MySQLDump Backup/Restore Plugins", long_description="""\ Plugin support to provide backup and restore functionality through mysqldump backups """, c...
31.421053
94
0.662479
030c77dadd30223bb3a4431090bf72a5cac29779
2,297
py
Python
sdks/python/appcenter_sdk/models/BuildScripts.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/BuildScripts.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/BuildScripts.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class BuildScripts(o...
27.674699
80
0.554201
030c885c199fe4666127e667c7dbc6b95b02651f
5,596
py
Python
asposewordscloud/models/requests/get_table_cell_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/requests/get_table_cell_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/requests/get_table_cell_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="get_table_cell_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy ...
43.71875
127
0.640636
030c88df14012e21a03f70aa2126baa22e68ad49
789
py
Python
pandaserver/test/callbackDDM.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
7
2015-03-30T14:15:35.000Z
2021-12-22T06:48:22.000Z
pandaserver/test/callbackDDM.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
16
2015-06-01T13:48:01.000Z
2022-02-08T15:03:32.000Z
pandaserver/test/callbackDDM.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
15
2015-03-02T08:57:35.000Z
2022-03-01T09:48:45.000Z
import os import sys import six try: from urllib import urlencode, urlopen from urllib2 import Request except ImportError: from urllib.parse import urlencode from urllib.request import urlopen, Request from pandaserver.taskbuffer.TaskBuffer import taskBuffer from pandaserver.config import panda_config ...
23.909091
74
0.755387
030cb39c47d2b7d7f4f84dc1484f26e1f6f0930e
445
py
Python
pytrol/model/action/SendingMessageAction.py
mothguib/pytrol
1b9634fb97e77407b4c609399c27663396a8d7e3
[ "MIT" ]
null
null
null
pytrol/model/action/SendingMessageAction.py
mothguib/pytrol
1b9634fb97e77407b4c609399c27663396a8d7e3
[ "MIT" ]
null
null
null
pytrol/model/action/SendingMessageAction.py
mothguib/pytrol
1b9634fb97e77407b4c609399c27663396a8d7e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pytrol.model.action.Action import Action from pytrol.model.action.Actions import Actions class SendingMessageAction(Action): def __init__(self, _message: str, _agt_id: int): r""" Args: _message (str): _agt_id (int): """ Action....
20.227273
73
0.61573
030cc4c286b21cf7445a84beb36c523b52b95f65
8,651
py
Python
trackapp/views.py
jshaarda/weight_tracker_app
273f323ce77304a29b72dee77df33b9e65f09469
[ "CC0-1.0" ]
null
null
null
trackapp/views.py
jshaarda/weight_tracker_app
273f323ce77304a29b72dee77df33b9e65f09469
[ "CC0-1.0" ]
null
null
null
trackapp/views.py
jshaarda/weight_tracker_app
273f323ce77304a29b72dee77df33b9e65f09469
[ "CC0-1.0" ]
null
null
null
from django.shortcuts import render from django.http import JsonResponse from django.views import generic from django.views.generic import View from .models import Entry, Person def index(request): """View function for home page of site.""" # Render the HTML template index.html with the data in the context va...
36.970085
86
0.641198
030cd6eb52edabc886e4243a2ea40b0ae2ac822a
8,232
py
Python
experiments/ashvin/icra2021/widowx/sawyer_ccrig1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/widowx/sawyer_ccrig1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/widowx/sawyer_ccrig1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.demos.source.dict_to_mdp_path_loader import EncoderDictToMDPPathLoader from rlkit.launchers.experiments.ashvin.awac_rig import awac_rig_experiment from rlkit.launchers.launcher_util import run_experiment from rlkit.launchers.arglauncher import run_variants from rlkit.t...
35.636364
104
0.590743
030ceb1ff1405343bc0647c3800b4047c6500c82
680
py
Python
keepassxc_pwned/cache.py
sturmianseq/keepassxc-pwned
40f97e1277b0c798c7709ffcafae54715ab4cfa6
[ "MIT" ]
26
2019-07-18T13:32:52.000Z
2022-02-03T20:08:46.000Z
keepassxc_pwned/cache.py
sturmianseq/keepassxc-pwned
40f97e1277b0c798c7709ffcafae54715ab4cfa6
[ "MIT" ]
15
2019-10-02T09:31:56.000Z
2021-08-24T23:43:20.000Z
keepassxc_pwned/cache.py
sturmianseq/keepassxc-pwned
40f97e1277b0c798c7709ffcafae54715ab4cfa6
[ "MIT" ]
3
2019-07-18T13:32:53.000Z
2021-08-11T08:50:45.000Z
from time import sleep from .password import lookup_pwned class PasswordCache(dict): """ If the password hash has not been requested before, requests it. If you have the same password for many entries, this would only request that once. """ def __missing__(self, key: str) -> int: """ ...
27.2
86
0.620588
030cff6a73a2b1c7061599fd58753b5123995142
402
py
Python
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/models.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/models.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/models.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.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. # ---------------------------------------------------------------------...
44.666667
76
0.485075
030d3ca4f6ef9b7f332d26d6f1c3f0f99ac7aa54
1,367
py
Python
category_job_evaluation_tests/bnyMellon/coding_friends.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
2
2020-07-23T19:32:58.000Z
2020-10-24T20:54:09.000Z
category_job_evaluation_tests/bnyMellon/coding_friends.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
null
null
null
category_job_evaluation_tests/bnyMellon/coding_friends.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
1
2021-07-11T14:41:04.000Z
2021-07-11T14:41:04.000Z
#!/bin/python3 import math import os import random import re import sys # # Complete the 'minNum' function below. # # The function is expected to return an INTEGER. # The function accepts following parameters: # 1. INTEGER samDaily # 2. INTEGER kellyDaily # 3. INTEGER difference # def minNum(samDaily, kellyDail...
20.102941
75
0.637893
030d53f7e7fcd1da0f662499128be0e2921059a4
344
py
Python
flyingpigeon/__version__.py
tlvu/flyingpigeon
2fb3eb4f32c3d2c18ec266834d113dc710e24ffc
[ "Apache-2.0" ]
null
null
null
flyingpigeon/__version__.py
tlvu/flyingpigeon
2fb3eb4f32c3d2c18ec266834d113dc710e24ffc
[ "Apache-2.0" ]
null
null
null
flyingpigeon/__version__.py
tlvu/flyingpigeon
2fb3eb4f32c3d2c18ec266834d113dc710e24ffc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This information is located in its own file so that it can be loaded # without importing the main package when its dependencies are not installed. # See: https://packaging.python.org/guides/single-sourcing-package-version __author__ = """Nils Hempelmann""" __email__ = 'info@nilshempelmann.de...
34.4
77
0.744186
030d98b674d19e0232e5bc7e4f04f4899bd9dbea
6,359
py
Python
kPOD/utils/utils.py
hfung4/kPOD
a0cc3d764593191315a4ada60705ca624a323812
[ "MIT" ]
7
2020-07-02T04:06:44.000Z
2022-03-14T08:04:35.000Z
kPOD/utils/utils.py
hfung4/kPOD
a0cc3d764593191315a4ada60705ca624a323812
[ "MIT" ]
3
2020-08-28T07:24:19.000Z
2021-06-09T01:38:52.000Z
kPOD/utils/utils.py
hfung4/kPOD
a0cc3d764593191315a4ada60705ca624a323812
[ "MIT" ]
4
2021-01-31T06:17:05.000Z
2022-03-29T12:56:54.000Z
# imports for mathematical functions import numpy as np from numpy import nanmean, nan import sys from scipy.spatial import distance import pandas as pd def __cluster_assignment(data, cluster_centers, N, K): """ Assign each point in the dataset to a cluster based on its distance from cluster centers This ...
31.954774
96
0.659538
030e062614b5038a9da51f4f5f07bf99c01c8055
672
py
Python
desdeo_emo/selection/tournament_select.py
bonskotti/desdeo-emo
6a607fa96478fd3c76394ac7b2dafdfd3c08eb2a
[ "MIT" ]
3
2021-05-02T17:42:39.000Z
2022-02-16T05:22:56.000Z
desdeo_emo/selection/tournament_select.py
bonskotti/desdeo-emo
6a607fa96478fd3c76394ac7b2dafdfd3c08eb2a
[ "MIT" ]
32
2019-10-30T08:33:13.000Z
2022-03-12T00:54:02.000Z
desdeo_emo/selection/tournament_select.py
bonskotti/desdeo-emo
6a607fa96478fd3c76394ac7b2dafdfd3c08eb2a
[ "MIT" ]
12
2019-10-16T10:00:47.000Z
2022-03-17T13:31:41.000Z
import numpy as np def tour_select(fitness, tournament_size): """Tournament selection. Choose number of individuals to participate and select the one with the best fitness. Parameters ---------- fitness : array_like An array of each individual's fitness. tournament_size : int ...
24.888889
80
0.645833
030e28d6fd34a82bdaf0a57c21ddd3b68c13fcd4
5,551
py
Python
stage_1_disentangle/src_unis/get_feat.py
grtzsohalf/Audio-Phonetic-and-Semantic-Embedding
1207cb61ec4587f38817b030a1e92cb315ebd178
[ "MIT" ]
2
2019-08-09T00:49:25.000Z
2019-09-30T06:37:07.000Z
stage_1_disentangle/src_unis/get_feat.py
grtzsohalf/Audio-Phonetic-and-Semantic-Embedding
1207cb61ec4587f38817b030a1e92cb315ebd178
[ "MIT" ]
null
null
null
stage_1_disentangle/src_unis/get_feat.py
grtzsohalf/Audio-Phonetic-and-Semantic-Embedding
1207cb61ec4587f38817b030a1e92cb315ebd178
[ "MIT" ]
null
null
null
import sys import re import os import argparse from collections import deque FLAG = None def read_classify_list(filename): classify_dic = {} with open(filename,'r') as f: for line in f: l_sp = line.rstrip().split(' ') ID = l_sp[0] start_frame = l_sp[1] c...
37.506757
122
0.486759
030ea14de585339beaf0038c9ce4cf31748ec2b2
2,170
py
Python
pre-train/plotting_utils.py
LinHuiqing/nonparaSeq2seqVC_code
d40a0cb9dc11c77b8af56b8510e4ab041f2f2b25
[ "MIT" ]
199
2019-12-13T03:11:21.000Z
2022-03-29T15:44:49.000Z
pre-train/plotting_utils.py
LinHuiqing/nonparaSeq2seqVC_code
d40a0cb9dc11c77b8af56b8510e4ab041f2f2b25
[ "MIT" ]
39
2019-12-16T20:08:45.000Z
2022-02-10T00:36:40.000Z
pre-train/plotting_utils.py
LinHuiqing/nonparaSeq2seqVC_code
d40a0cb9dc11c77b8af56b8510e4ab041f2f2b25
[ "MIT" ]
57
2019-12-16T23:25:25.000Z
2022-03-28T18:04:16.000Z
import matplotlib matplotlib.use("Agg") import matplotlib.pylab as plt import numpy as np def save_figure_to_numpy(fig): # save it to a numpy array. data = np.fromstring(fig.canvas.tostring_rgb(), dtype=np.uint8, sep='') data = data.reshape(fig.canvas.get_width_height()[::-1] + (3,)) return data def ...
28.552632
75
0.62212
030eab3095b0fddc4f1f5e962369edede7257de3
8,786
py
Python
mortar_rdb/tests/test_testing.py
Mortar/mortar_rdb
576628a299f94ef60324244777766a620556592b
[ "MIT" ]
1
2017-03-24T15:20:40.000Z
2017-03-24T15:20:40.000Z
mortar_rdb/tests/test_testing.py
Mortar/mortar_rdb
576628a299f94ef60324244777766a620556592b
[ "MIT" ]
3
2015-12-01T20:06:30.000Z
2018-02-02T07:05:21.000Z
mortar_rdb/tests/test_testing.py
Mortar/mortar_rdb
576628a299f94ef60324244777766a620556592b
[ "MIT" ]
1
2019-03-01T08:37:48.000Z
2019-03-01T08:37:48.000Z
import os from mortar_rdb.testing import register_session, TestingBase from mortar_rdb import get_session, declarative_base from mortar_rdb.controlled import Config, Source from testfixtures.components import TestComponents from mock import Mock from sqlalchemy.pool import StaticPool from sqlalchemy.engine.reflection ...
32.906367
90
0.556681
030eb0fd2ccd898ec05c0bd062627c8db905f3f1
11,154
py
Python
gui.py
nithjino/aesthetic-image
71e82280e241c6c585830ca43db743aa53419aa9
[ "MIT" ]
1
2021-06-22T13:18:36.000Z
2021-06-22T13:18:36.000Z
gui.py
nithjino/aesthetic-image
71e82280e241c6c585830ca43db743aa53419aa9
[ "MIT" ]
null
null
null
gui.py
nithjino/aesthetic-image
71e82280e241c6c585830ca43db743aa53419aa9
[ "MIT" ]
1
2020-08-17T15:11:49.000Z
2020-08-17T15:11:49.000Z
#!/usr/bin/env python3 import wx, os, effects from PIL import Image class MainGUI(wx.Frame): def __init__(self,parent,title): wx.Frame.__init__(self,parent,title=title,size=(1000,600)) self.panel = wx.Panel(self) self.filePath = "" self.wildcard = "images (*.jpeg,*.jpg,*.png)|*.jpeg...
41.619403
161
0.636543
030ecc8f36f3a0b95e0477e19c8cb7135dcec1a0
2,436
py
Python
A05_generate_sample_card_type.py
mbc96325/IOHMM-for-individual-mobility-prediction
b2d346a12b902581641a0afa8e694ee8ef158195
[ "MIT" ]
1
2021-09-02T14:16:14.000Z
2021-09-02T14:16:14.000Z
A05_generate_sample_card_type.py
mbc96325/IOHMM-for-individual-mobility-prediction
b2d346a12b902581641a0afa8e694ee8ef158195
[ "MIT" ]
null
null
null
A05_generate_sample_card_type.py
mbc96325/IOHMM-for-individual-mobility-prediction
b2d346a12b902581641a0afa8e694ee8ef158195
[ "MIT" ]
1
2021-09-20T02:59:47.000Z
2021-09-20T02:59:47.000Z
import pandas as pd import numpy as np import copy import pickle from datetime import datetime,timedelta import os import multiprocessing import random data_path = '../data/' TEST = True if TEST: df = pd.read_csv(data_path + '201407_new.csv',sep = ';') else: data_path = '../data/' df1 = pd.read_csv(da...
39.934426
76
0.635878
030f290a31f0452c8ab9e2daed0561ae3fb52da9
3,444
py
Python
lemur/plugins/lemur_cfssl/plugin.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/plugins/lemur_cfssl/plugin.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/plugins/lemur_cfssl/plugin.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
""" .. module: lemur.plugins.lemur_cfssl.plugin :platform: Unix :synopsis: This module is responsible for communicating with the CFSSL private CA. :copyright: (c) 2018 by Thomson Reuters :license: Apache, see LICENSE for more details. .. moduleauthor:: Charles Hendrie <chad.hendrie@tr.com> """ import ...
38.266667
95
0.660279
030f2b83b6884a55eb0185834ab8d01eed55a79f
5,027
py
Python
qnarre/prep/convert/gpt_neo.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/convert/gpt_neo.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/convert/gpt_neo.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix 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 l...
39.273438
96
0.612691
030f5153e2abc88b54d237899eb64410c616b62d
7,649
py
Python
arviz/plots/backends/bokeh/loopitplot.py
ous8292/arviz
3d788cc7157b764130ee6f84bb2f42021e5ab258
[ "Apache-2.0" ]
null
null
null
arviz/plots/backends/bokeh/loopitplot.py
ous8292/arviz
3d788cc7157b764130ee6f84bb2f42021e5ab258
[ "Apache-2.0" ]
null
null
null
arviz/plots/backends/bokeh/loopitplot.py
ous8292/arviz
3d788cc7157b764130ee6f84bb2f42021e5ab258
[ "Apache-2.0" ]
null
null
null
"""Bokeh loopitplot.""" import numpy as np from bokeh.models import BoxAnnotation from matplotlib.colors import hsv_to_rgb, rgb_to_hsv, to_hex, to_rgb from xarray import DataArray from ....stats.density_utils import kde from ...plot_utils import _scale_fig_size from .. import show_layout from . import backend_kwarg_de...
36.080189
99
0.541509
030f72763df47fbbb22f2d2fd560e7514e727350
9,939
py
Python
tuna/conf.py
russellnakamura/thetuna
0e445baf780fb65e1d92fe1344ebdf21bf81573c
[ "MIT" ]
null
null
null
tuna/conf.py
russellnakamura/thetuna
0e445baf780fb65e1d92fe1344ebdf21bf81573c
[ "MIT" ]
null
null
null
tuna/conf.py
russellnakamura/thetuna
0e445baf780fb65e1d92fe1344ebdf21bf81573c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Time-To-Recover Test documentation build configuration file, created by # sphinx-quickstart on Fri May 4 13:58:22 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated ...
31.552381
80
0.710232
030f80bfb1f624e3c7191c65b4a1bbe927e9389a
8,232
py
Python
tests/loggers/test_file_logger.py
hanlint/composer
83d96b7efde533cbc2fff7dd7e0769da2b177807
[ "Apache-2.0" ]
null
null
null
tests/loggers/test_file_logger.py
hanlint/composer
83d96b7efde533cbc2fff7dd7e0769da2b177807
[ "Apache-2.0" ]
null
null
null
tests/loggers/test_file_logger.py
hanlint/composer
83d96b7efde533cbc2fff7dd7e0769da2b177807
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. import os import pathlib import sys import pytest from torch.utils.data import DataLoader from composer import Callback, Event, State, Trainer from composer.loggers import FileLogger, FileLoggerHparams, Logger, LoggerDestination, LogLevel from tests.common import Rando...
47.04
114
0.686103
030fa27c3b43be2c3409b06b8e05c420ae8c71f9
7,006
py
Python
aldryn_faq/tests/test_plugins.py
liip-forks/aldryn-faq
1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7
[ "BSD-3-Clause" ]
null
null
null
aldryn_faq/tests/test_plugins.py
liip-forks/aldryn-faq
1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7
[ "BSD-3-Clause" ]
null
null
null
aldryn_faq/tests/test_plugins.py
liip-forks/aldryn-faq
1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7
[ "BSD-3-Clause" ]
null
null
null
from distutils.version import LooseVersion import six from django.template import RequestContext from django.utils.translation import override import cms from cms.api import add_plugin from ..models import SelectedCategory from .test_base import AldrynFaqTest def _render_plugin(request, plugin): def _render_...
38.076087
86
0.648159
030fbe5ceb0ed7acd717f685b6cd8d8196a38cc6
3,739
py
Python
plugins/maya/publish/collect_animated_outputs.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/maya/publish/collect_animated_outputs.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/maya/publish/collect_animated_outputs.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import pyblish.api class CollectAnimatedOutputs(pyblish.api.InstancePlugin): """Collect transform animated nodes This only collect and extract animated transform nodes, shape node will not be included. """ order = pyblish.api.CollectorOrder + 0.2 label = "Collect Animated Outputs" host...
35.273585
77
0.53196
030fc029b450b27b897a043e3eb8846ea4e2029e
49,755
py
Python
openstack/config/loader.py
infonova/openstacksdk
3cf6730a71d8fb448f24af8a5b4e82f2af749cea
[ "Apache-2.0" ]
null
null
null
openstack/config/loader.py
infonova/openstacksdk
3cf6730a71d8fb448f24af8a5b4e82f2af749cea
[ "Apache-2.0" ]
null
null
null
openstack/config/loader.py
infonova/openstacksdk
3cf6730a71d8fb448f24af8a5b4e82f2af749cea
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
40.45122
79
0.589026
030febc0cead6207b8ba16ebe8caf465f9f7fb4c
5,252
py
Python
ai/Arena.py
urhprimozic/gomoku
3c5fa9b13cf0c3252a0e3fa5929d9639dd325b3a
[ "MIT" ]
1
2021-05-06T20:00:52.000Z
2021-05-06T20:00:52.000Z
ai/Arena.py
urhprimozic/gomoku
3c5fa9b13cf0c3252a0e3fa5929d9639dd325b3a
[ "MIT" ]
null
null
null
ai/Arena.py
urhprimozic/gomoku
3c5fa9b13cf0c3252a0e3fa5929d9639dd325b3a
[ "MIT" ]
null
null
null
import logging from multiprocessing import Pool from tqdm import tqdm log = logging.getLogger(__name__) class Arena(): """ An Arena class where any 2 agents can be pit against each other. """ def __init__(self, player1, player2, game, display=None): """ Input: player 1,2:...
33.452229
97
0.525324
030ff2bc8e070972dceb390e742e0e66dfec169f
1,055
py
Python
Chapter 1/01/recipe8_obscure.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 1/01/recipe8_obscure.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 1/01/recipe8_obscure.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
import unittest from recipe8 import * class RomanNumeralTest(unittest.TestCase): def setUp(self): self.cvt = RomanNumeralConverter() def test_convert_to_decimal(self): self.assertEquals(0, self.cvt.convert_to_decimal("")) self.assertEquals(1, self.cvt.convert_to_decimal("I")) s...
35.166667
62
0.604739
0310286aafc91c20e1ab8e72a169932367640a81
1,553
py
Python
src/hyperloop/Python/inverter.py
colinxs/MagnePlane
becd6cf67a358546dee3ec5f2574250461d4295f
[ "Apache-2.0" ]
null
null
null
src/hyperloop/Python/inverter.py
colinxs/MagnePlane
becd6cf67a358546dee3ec5f2574250461d4295f
[ "Apache-2.0" ]
null
null
null
src/hyperloop/Python/inverter.py
colinxs/MagnePlane
becd6cf67a358546dee3ec5f2574250461d4295f
[ "Apache-2.0" ]
5
2016-06-16T12:34:01.000Z
2016-06-27T21:41:15.000Z
import numpy as np from openmdao.api import Component class Inverter(Component): def __init__(self): super(Inverter, self).__init__() self.add_param('efficiency', 1.0, desc='power out / power in') self.add_param('output_voltage', 120.0, desc='...
36.116279
85
0.513844
03104c6bc195938896ca30a1689770b24dca9d83
1,208
py
Python
modules/dbnd-airflow-monitor/src/airflow_monitor/shared/runners/multi_process_runner.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd-airflow-monitor/src/airflow_monitor/shared/runners/multi_process_runner.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd-airflow-monitor/src/airflow_monitor/shared/runners/multi_process_runner.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
import logging from multiprocessing.context import Process from airflow_monitor.shared.error_handler import capture_monitor_exception from airflow_monitor.shared.runners.base_runner import BaseRunner logger = logging.getLogger(__name__) class MultiProcessRunner(BaseRunner): JOIN_TIMEOUT = 60 def __init__...
27.454545
74
0.68543
03105f87b0fa4ced056666b0b88dbcb777f9039b
1,087
py
Python
examples/reservations-bot-demo/cloud_function/utils.py
clumpytuna/ydb-python-sdk
f09d8db19f62032738ed77dabb3672c3e0f86cc3
[ "Apache-2.0" ]
null
null
null
examples/reservations-bot-demo/cloud_function/utils.py
clumpytuna/ydb-python-sdk
f09d8db19f62032738ed77dabb3672c3e0f86cc3
[ "Apache-2.0" ]
null
null
null
examples/reservations-bot-demo/cloud_function/utils.py
clumpytuna/ydb-python-sdk
f09d8db19f62032738ed77dabb3672c3e0f86cc3
[ "Apache-2.0" ]
null
null
null
import os import logging import contextlib from kikimr.public.sdk.python import client as ydb def make_driver_config(endpoint, database, path): return ydb.DriverConfig( endpoint, database, credentials=ydb.construct_credentials_from_environ(), root_certificates=ydb.load_ydb_root_certificate(), ...
32.939394
109
0.675253
03107ee4414e98cecbeaab4b58dd0ac07eac65c4
3,866
py
Python
source/waf/calibre_drc.py
ahartel/brick
9ad14f9d2912e70191f4711f359e3912c8cef837
[ "BSD-3-Clause" ]
1
2021-05-19T06:09:15.000Z
2021-05-19T06:09:15.000Z
source/waf/calibre_drc.py
electronicvisions/brick
9ad14f9d2912e70191f4711f359e3912c8cef837
[ "BSD-3-Clause" ]
null
null
null
source/waf/calibre_drc.py
electronicvisions/brick
9ad14f9d2912e70191f4711f359e3912c8cef837
[ "BSD-3-Clause" ]
1
2016-03-05T19:13:00.000Z
2016-03-05T19:13:00.000Z
import os,re from waflib import Task,Errors,Node,TaskGen,Configure,Node,Logs,Context from brick_general import ChattyBrickTask def configure(conf): """This function gets called by waf upon loading of this module in a configure method""" conf.load('brick_general') conf.find_program('calibre',var='CALIBRE_DRC') co...
29.067669
155
0.736161
03107fd6f87fd4cc4fea9e08d378669ec9298589
8,090
py
Python
experiments/ashvin/corl2019/debug/pusher/rig_debug2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/corl2019/debug/pusher/rig_debug2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/corl2019/debug/pusher/rig_debug2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in, sawyer_pusher_camera_upright_v2 from rlkit.launchers.launcher_util import run_experiment ...
37.803738
121
0.56848
0310805b6a56f7058e1d6dc309e7c329b9a1da0b
3,188
py
Python
ingestion/functions/define_rules.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
5
2020-04-16T13:54:24.000Z
2020-07-06T13:42:10.000Z
ingestion/functions/define_rules.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
487
2020-04-16T00:56:09.000Z
2020-07-27T09:09:29.000Z
ingestion/functions/define_rules.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Need to run this from the directory containing this script and make_rules.py # Run this script, then check output in the generated file, then run make_rules.py import argparse import json import requests import sys import os import boto3 from slugify import slugify import common.common_lib ...
26.347107
133
0.741217
03109aed90542edc080d467e65fe844c7bf555fe
550
py
Python
lab_input/iptaker03-CHALLENGE01.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
lab_input/iptaker03-CHALLENGE01.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
lab_input/iptaker03-CHALLENGE01.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Alta3 Research | RZFeeser CHALLENGE 01 - Solution""" def main(): user_input = input("Please enter an IPv4 IP address: ") ## the line below creates a single string that is passed to print() # print("You told me the IPv4 address is:" + user_input) ## print() ca...
27.5
71
0.647273
0310e2bb6cb13a874609ebf1671b6596e20b8696
5,358
py
Python
quilt/patch.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
4
2016-12-28T23:28:02.000Z
2022-03-15T02:46:10.000Z
quilt/patch.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
17
2017-02-24T09:16:14.000Z
2019-04-08T08:37:17.000Z
quilt/patch.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
2
2017-01-03T00:55:59.000Z
2019-03-28T15:42:12.000Z
# vim: fileencoding=utf-8 et sw=4 ts=4 tw=80: # python-quilt - A Python implementation of the quilt patch system # # Copyright (C) 2012 - 2017 Björn Ricks <bjoern.ricks@gmail.com> # # See LICENSE comming with the source of python-quilt for details. import os import os.path from quilt.utils import Process, DirectoryP...
26.924623
77
0.537514
0310e3bc93344eefd6ca17b73ddd24efc32d978e
3,136
py
Python
third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_failures_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-07-15T09:50:14.000Z
2020-07-15T09:50:14.000Z
third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_failures_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_failures_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (C) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
41.263158
104
0.727679
03110496c5755131fc4e9abbdffac6b12df43efe
2,317
py
Python
reagent/evaluation/reward_net_evaluator.py
j-jiafei/ReAgent
3f377276ca9cb843bfa12cdb325fbec747ade772
[ "BSD-3-Clause" ]
null
null
null
reagent/evaluation/reward_net_evaluator.py
j-jiafei/ReAgent
3f377276ca9cb843bfa12cdb325fbec747ade772
[ "BSD-3-Clause" ]
null
null
null
reagent/evaluation/reward_net_evaluator.py
j-jiafei/ReAgent
3f377276ca9cb843bfa12cdb325fbec747ade772
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import copy import logging import numpy as np import torch from reagent.core import types as rlt from reagent.core.types import PreprocessedRankingInput from reagent.training.reward_network_trainer import RewardNetTrainer ...
32.633803
81
0.656452
031104bc1b5319250f7a7272b929dc0a3e4be418
23,814
py
Python
scripts/build/build/targets.py
sungho1shin/connectedhomeip
050eb6d24487598a97743b6a23d41232e45bef88
[ "Apache-2.0" ]
null
null
null
scripts/build/build/targets.py
sungho1shin/connectedhomeip
050eb6d24487598a97743b6a23d41232e45bef88
[ "Apache-2.0" ]
null
null
null
scripts/build/build/targets.py
sungho1shin/connectedhomeip
050eb6d24487598a97743b6a23d41232e45bef88
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Project CHIP Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
42
140
0.693794
03112d08acf3cd5a27a32e7861f7935e527c6ce0
1,008
py
Python
assets/backup-2.py
Akaito/ZeroToBoto
5806fa004ae4ce54d594303133d043d1e606f0e8
[ "Zlib" ]
null
null
null
assets/backup-2.py
Akaito/ZeroToBoto
5806fa004ae4ce54d594303133d043d1e606f0e8
[ "Zlib" ]
null
null
null
assets/backup-2.py
Akaito/ZeroToBoto
5806fa004ae4ce54d594303133d043d1e606f0e8
[ "Zlib" ]
null
null
null
# backup-1.py import os #==================================================================== cwd = os.getcwd() prefix = cwd.split('/')[-1] # get current folder's name; not all stuff leading to it # visit the current directory and every one within it, recursively for dir_listing in os.walk(cwd): here = dir_li...
30.545455
85
0.569444
03113fdd0024b671a9964a275c9fbf39689b66f4
1,370
py
Python
nb_utils.py
dbl007/learning_internal_representations
679b05313670e83a5a9e97e5d58b15ba079b84f5
[ "MIT" ]
5
2020-10-19T14:27:24.000Z
2021-03-22T11:52:01.000Z
nb_utils.py
dbl007/learning_internal_representations
679b05313670e83a5a9e97e5d58b15ba079b84f5
[ "MIT" ]
null
null
null
nb_utils.py
dbl007/learning_internal_representations
679b05313670e83a5a9e97e5d58b15ba079b84f5
[ "MIT" ]
4
2020-10-21T18:04:50.000Z
2021-06-06T20:33:48.000Z
import matplotlib.pyplot as plt import numpy as np def load_planar_dataset(): np.random.seed(2) m = 400 # number of examples N = int(m/2) # number of points per class D = 2 # dimensionality X = np.zeros((m,D)) # data matrix where each row is a single example Y = np.zeros((m,1), dtype='uint8') ...
35.128205
80
0.586131
03115612c5ce2f122ef4f05a57ba0c91abda7cc8
30,522
py
Python
python/tvm/target/target.py
pfk-beta/tvm
5ecb8c384a66933fec8c7f033cba03337eb1a726
[ "Apache-2.0" ]
null
null
null
python/tvm/target/target.py
pfk-beta/tvm
5ecb8c384a66933fec8c7f033cba03337eb1a726
[ "Apache-2.0" ]
null
null
null
python/tvm/target/target.py
pfk-beta/tvm
5ecb8c384a66933fec8c7f033cba03337eb1a726
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.553293
100
0.602516
03118681db04c9f1344a9b5c3a22766c87e6fd03
14,275
py
Python
myvenv/lib/python3.7/site-packages/pywebpush/__init__.py
rizkybram27/magangUMN
8ace710670b8117dd39018a4cd1eee051091a3e7
[ "MIT" ]
4
2019-03-18T12:12:50.000Z
2020-07-10T19:40:44.000Z
myvenv/lib/python3.7/site-packages/pywebpush/__init__.py
rizkybram27/magangUMN
8ace710670b8117dd39018a4cd1eee051091a3e7
[ "MIT" ]
null
null
null
myvenv/lib/python3.7/site-packages/pywebpush/__init__.py
rizkybram27/magangUMN
8ace710670b8117dd39018a4cd1eee051091a3e7
[ "MIT" ]
7
2019-08-01T12:37:54.000Z
2021-05-12T14:40:06.000Z
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import base64 from copy import deepcopy import json import os try: from urllib.parse import urlparse except ImportE...
36.981865
79
0.594256
0311f3e7123b59c6607d890a4fcfa5fed03fd0d8
5,317
py
Python
fabric_cf/orchestrator/elements/reservation.py
fabric-testbed/OrchestratorClient
ea8904d8c9d3e63f471b2a51ae5b5b4e5e0ca763
[ "MIT" ]
null
null
null
fabric_cf/orchestrator/elements/reservation.py
fabric-testbed/OrchestratorClient
ea8904d8c9d3e63f471b2a51ae5b5b4e5e0ca763
[ "MIT" ]
9
2021-06-08T21:45:01.000Z
2021-12-03T15:39:48.000Z
fabric_cf/orchestrator/elements/reservation.py
fabric-testbed/OrchestratorClient
ea8904d8c9d3e63f471b2a51ae5b5b4e5e0ca763
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # 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 ...
34.525974
102
0.66372