hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
09ae8831a6d867988d83ddc73254812deec0f07b
4,972
py
Python
EQUATIONS/FOR_RESOLUTION_STUDY/TurbulentKineticEnergyResolutionStudy.py
mmicromegas/ransX
2faaa786e00cfd14dce0e18f0793cd0252428d2a
[ "BSD-2-Clause" ]
4
2019-04-22T11:43:47.000Z
2020-09-16T00:28:15.000Z
EQUATIONS/FOR_RESOLUTION_STUDY/TurbulentKineticEnergyResolutionStudy.py
mmicromegas/ransX
2faaa786e00cfd14dce0e18f0793cd0252428d2a
[ "BSD-2-Clause" ]
34
2019-07-01T09:11:00.000Z
2022-03-30T13:35:43.000Z
EQUATIONS/FOR_RESOLUTION_STUDY/TurbulentKineticEnergyResolutionStudy.py
mmicromegas/ransX
2faaa786e00cfd14dce0e18f0793cd0252428d2a
[ "BSD-2-Clause" ]
1
2020-09-16T00:28:17.000Z
2020-09-16T00:28:17.000Z
import numpy as np from scipy import integrate import matplotlib.pyplot as plt from UTILS.Calculus import Calculus from UTILS.SetAxisLimit import SetAxisLimit from UTILS.Tools import Tools from UTILS.Errors import Errors import sys # Theoretical background https://arxiv.org/abs/1401.5176 # Mocak, Meakin, Viallet, Arn...
33.594595
112
0.566573
dfba752653a4101a0470cdd8409c123458a69e2e
50,194
py
Python
botocore/utils.py
countergram/botocore
67d27822fa0f80020e78802158f4c7adc4569853
[ "Apache-2.0" ]
null
null
null
botocore/utils.py
countergram/botocore
67d27822fa0f80020e78802158f4c7adc4569853
[ "Apache-2.0" ]
null
null
null
botocore/utils.py
countergram/botocore
67d27822fa0f80020e78802158f4c7adc4569853
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file ac...
36.451707
82
0.637327
08507dcdc11e3bed20ac7864cd0821afaf3c43e6
15,576
py
Python
src/prefect/agent/docker/agent.py
szelenka/prefect
839b02a2a458b89fb0c1ec7f78192c88e710fe30
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-10T14:32:32.000Z
2020-05-10T14:32:32.000Z
src/prefect/agent/docker/agent.py
szelenka/prefect
839b02a2a458b89fb0c1ec7f78192c88e710fe30
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/prefect/agent/docker/agent.py
szelenka/prefect
839b02a2a458b89fb0c1ec7f78192c88e710fe30
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import re import multiprocessing import ntpath import posixpath from sys import platform from typing import TYPE_CHECKING, Dict, Iterable, List, Tuple from prefect import config, context from prefect.agent import Agent from prefect.environments.storage import Docker from prefect.serialization.storage import StorageSch...
38.459259
121
0.576977
395dd362e484cffff38cfebf805c5a0d6370f7de
4,340
py
Python
tests/test_ress.py
gferraro2019/python-meegkit
aed858dc3603a3b71e620df3f29da6ae1a8f68da
[ "BSD-3-Clause" ]
null
null
null
tests/test_ress.py
gferraro2019/python-meegkit
aed858dc3603a3b71e620df3f29da6ae1a8f68da
[ "BSD-3-Clause" ]
null
null
null
tests/test_ress.py
gferraro2019/python-meegkit
aed858dc3603a3b71e620df3f29da6ae1a8f68da
[ "BSD-3-Clause" ]
null
null
null
"""Test RESS.""" import matplotlib.pyplot as plt import numpy as np import pytest import scipy.signal as ss from meegkit import ress from meegkit.utils import fold, rms, unfold, snr_spectrum, matmul3d def create_data(n_times, n_chans=10, n_trials=20, freq=12, sfreq=250, noise_dim=8, SNR=.8, t0=100, sh...
34.444444
79
0.571659
e7628c834c7dd31643f557ddaf1fb25c44e70a4b
7,266
py
Python
bdantic/models/directives.py
jmgilman/bdantic
3caa66d681da7a0cf0dbd6481c3f9005a8f2d8b9
[ "MIT" ]
3
2022-02-02T19:38:59.000Z
2022-02-16T03:39:50.000Z
bdantic/models/directives.py
jmgilman/bdantic
3caa66d681da7a0cf0dbd6481c3f9005a8f2d8b9
[ "MIT" ]
null
null
null
bdantic/models/directives.py
jmgilman/bdantic
3caa66d681da7a0cf0dbd6481c3f9005a8f2d8b9
[ "MIT" ]
null
null
null
"""Provides models for all beancount directives.""" from __future__ import annotations from decimal import Decimal from typing import Any, Dict, List, Literal, Optional, Set, Union from beancount.core import data from .base import Base, BaseDirective, Meta # noqa: F401 from .data import Account, Amount, Cost, Cost...
26.713235
79
0.674099
f94354f8424f7b1fb3f4379a87cef82422d7644b
940
py
Python
coldtype/animation/timeline.py
beesandbombs/coldtype
d02c7dd36bf1576fa37dc8c50d5c1a6e47b1c5ea
[ "Apache-2.0" ]
1
2021-04-04T15:25:06.000Z
2021-04-04T15:25:06.000Z
coldtype/animation/timeline.py
beesandbombs/coldtype
d02c7dd36bf1576fa37dc8c50d5c1a6e47b1c5ea
[ "Apache-2.0" ]
null
null
null
coldtype/animation/timeline.py
beesandbombs/coldtype
d02c7dd36bf1576fa37dc8c50d5c1a6e47b1c5ea
[ "Apache-2.0" ]
null
null
null
from coldtype.animation import Timeable class Timeline(Timeable): __name__ = "Generic" def __init__(self, duration, fps=30, storyboard=None, tracks=None): self.fps = fps self.start = 0 self.end = duration self.tracks = tracks or [] if not storyboard: self.s...
32.413793
170
0.56383
894444a88ab8f3dfc1c4be9a3046bc6cbafb1f73
2,088
py
Python
empirical/bay-area/edge_report.py
veg/edge-filtering
dc1c214efd5b3203c12b87ff1acfd79a9ed97b97
[ "MIT" ]
null
null
null
empirical/bay-area/edge_report.py
veg/edge-filtering
dc1c214efd5b3203c12b87ff1acfd79a9ed97b97
[ "MIT" ]
5
2019-05-21T13:22:38.000Z
2019-10-01T19:35:48.000Z
empirical/bay-area/edge_report.py
veg/edge-filtering
dc1c214efd5b3203c12b87ff1acfd79a9ed97b97
[ "MIT" ]
null
null
null
import json def get_json(fn): with open(fn) as f: return json.loads(f.read()) def consolidate_edge_reports(pairs, input, output): report = {} # for each edge report, create key based on filename for pair, fn in zip(pairs, input): report[pair] = get_json(fn) with open(output, 'w')...
28.216216
110
0.689655
307e101d15efd65ac9b175b63778982dad76a08c
2,101
py
Python
parlai/scripts/display_data.py
kifish/ParlAI
93a0f31f3d6b03a97c1a081927427dbe1eb1242e
[ "MIT" ]
55
2020-09-16T02:11:28.000Z
2022-01-27T01:03:19.000Z
parlai/scripts/display_data.py
kifish/ParlAI
93a0f31f3d6b03a97c1a081927427dbe1eb1242e
[ "MIT" ]
14
2020-03-13T19:08:56.000Z
2020-05-12T07:38:41.000Z
parlai/scripts/display_data.py
kifish/ParlAI
93a0f31f3d6b03a97c1a081927427dbe1eb1242e
[ "MIT" ]
7
2020-09-21T14:06:27.000Z
2021-07-20T10:01:32.000Z
#!/usr/bin/env python3 # 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. """ Basic example which iterates through the tasks specified and prints them out. Used for verification of data loading a...
28.391892
86
0.669681
62b85f2836287c77a1c2f3599adbf96518d0dbcc
11,873
py
Python
models/mongodb/basemodel.py
pythononwheels/redmonty
6255bb0c48575e29c0234a143ad05eba72a6b8c6
[ "MIT" ]
3
2019-09-29T07:05:00.000Z
2019-11-13T06:50:33.000Z
models/mongodb/basemodel.py
pythononwheels/redmonty
6255bb0c48575e29c0234a143ad05eba72a6b8c6
[ "MIT" ]
2
2019-09-28T21:10:13.000Z
2019-09-28T21:13:20.000Z
models/mongodb/basemodel.py
pythononwheels/redmonty
6255bb0c48575e29c0234a143ad05eba72a6b8c6
[ "MIT" ]
null
null
null
from redmonty.database.mongodblib import db, client from redmonty.powlib import pluralize import datetime import xmltodict import simplejson as json import datetime, decimal from redmonty.config import myapp from redmonty.powlib import merge_two_dicts from redmonty.encoders import pow_json_serializer from redmonty.mode...
35.547904
100
0.556388
4d092f34372b8d9ab7753e8e30f2e7f5a4c6bd01
3,139
py
Python
data/p2DJ/New/R2/benchmark/startQiskit_QC127.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/R2/benchmark/startQiskit_QC127.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/R2/benchmark/startQiskit_QC127.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=10 import cirq import qiskit from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy a...
28.279279
82
0.624721
0d88a3153bdafa22f3dce0d5ed68558fa642612d
3,440
py
Python
deprecated/acnet/acnet_fusion.py
sysu-shey/ACNet
6d967d3fff2d79a37f85799b78a21ffbd9001bd2
[ "MIT" ]
767
2019-10-08T01:32:47.000Z
2022-03-27T14:39:44.000Z
deprecated/acnet/acnet_fusion.py
ShawnDing1994/ACNet
9586a269d7065805aafb8f1d69d425e84cec55f1
[ "MIT" ]
48
2019-11-04T12:05:15.000Z
2021-11-28T06:50:30.000Z
deprecated/acnet/acnet_fusion.py
ShawnDing1994/ACNet
9586a269d7065805aafb8f1d69d425e84cec55f1
[ "MIT" ]
140
2019-10-29T07:49:24.000Z
2022-03-27T13:01:22.000Z
from utils.misc import read_hdf5, save_hdf5 import numpy as np SQUARE_KERNEL_KEYWORD = 'square_conv.weight' def _fuse_kernel(kernel, gamma, std): b_gamma = np.reshape(gamma, (kernel.shape[0], 1, 1, 1)) b_gamma = np.tile(b_gamma, (1, kernel.shape[1], kernel.shape[2], kernel.shape[3])) b_std = np.reshape(st...
54.603175
122
0.71686
35c67c703ecbea0c8f7d87d5dfb7d15c31babdce
3,290
py
Python
app.py
aws-samples/aws-autonomous-driving-data-lake-ros-bag-scene-detection-pipeline
2e4011f0964becd6b5507c70eb298b90399acc42
[ "MIT-0" ]
6
2021-07-30T17:46:54.000Z
2022-03-01T12:23:03.000Z
app.py
aws-samples/aws-autonomous-driving-data-lake-ros-bag-scene-detection-pipeline
2e4011f0964becd6b5507c70eb298b90399acc42
[ "MIT-0" ]
null
null
null
app.py
aws-samples/aws-autonomous-driving-data-lake-ros-bag-scene-detection-pipeline
2e4011f0964becd6b5507c70eb298b90399acc42
[ "MIT-0" ]
1
2022-03-01T08:46:24.000Z
2022-03-01T08:46:24.000Z
#!/usr/bin/env python3 from aws_cdk import core from infrastructure.ecs_stack import Fargate import os import json from infrastructure.emr_launch.cluster_definition import EMRClusterDefinition from infrastructure.emr_orchestration.stack import StepFunctionStack from infrastructure.emr_trigger.stack import EmrTriggerSt...
28.119658
85
0.718237
5311e34d65435b5eb4f8a76dc0b4c88c6326a2bf
8,776
py
Python
downloaded_kernels/house_sales/converted_notebooks/kernel_30.py
josepablocam/common-code-extraction
a6978fae73eee8ece6f1db09f2f38cf92f03b3ad
[ "MIT" ]
null
null
null
downloaded_kernels/house_sales/converted_notebooks/kernel_30.py
josepablocam/common-code-extraction
a6978fae73eee8ece6f1db09f2f38cf92f03b3ad
[ "MIT" ]
null
null
null
downloaded_kernels/house_sales/converted_notebooks/kernel_30.py
josepablocam/common-code-extraction
a6978fae73eee8ece6f1db09f2f38cf92f03b3ad
[ "MIT" ]
2
2021-07-12T00:48:08.000Z
2021-08-11T12:53:05.000Z
#!/usr/bin/env python # coding: utf-8 # # Feature engineering for a score .99 using CatBoost and geohash clus # ## This is achieved with the following assumptions # 1. Price is always predicted for future date. Thus train with 80% is data from available dates and we are trying to predict for the future dates # 2. We...
25.002849
279
0.697015
23e0631bc21a082a3bb705e8ce8d49113a913390
10,415
py
Python
source/ppi_traj/mdtraj_utils/trajectory_utils.py
PolyachenkoYA/masif_2021
93ff3395696d2f2515f569c2d0218af251168e34
[ "Apache-2.0" ]
null
null
null
source/ppi_traj/mdtraj_utils/trajectory_utils.py
PolyachenkoYA/masif_2021
93ff3395696d2f2515f569c2d0218af251168e34
[ "Apache-2.0" ]
null
null
null
source/ppi_traj/mdtraj_utils/trajectory_utils.py
PolyachenkoYA/masif_2021
93ff3395696d2f2515f569c2d0218af251168e34
[ "Apache-2.0" ]
null
null
null
import numpy as np import mdtraj as md def join_trajectories(traj_list, selection="all"): # align trajectories ids_sim = align(traj_list[0][0], *traj_list[1:], selection=selection) # topology checks df_topo_ref = traj_list[0].topology.to_dataframe()[0].iloc[ids_sim[:,0]][['name', 'resName']] for ...
38.290441
134
0.585502
fc6ddb312ef64a36dd7f600f2c4a2b8e29ade2f4
16,049
py
Python
typer/core.py
madkinsz/typer
a1520dcda685220a9a796288f5eaaebd00d68845
[ "MIT" ]
7,615
2019-12-24T13:08:20.000Z
2022-03-31T22:07:53.000Z
typer/core.py
madkinsz/typer
a1520dcda685220a9a796288f5eaaebd00d68845
[ "MIT" ]
351
2019-12-24T22:17:54.000Z
2022-03-31T15:35:08.000Z
typer/core.py
jina-ai/typer
8b5e14b25ddf0dd777403015883301b17bedcee0
[ "MIT" ]
360
2019-12-24T15:29:59.000Z
2022-03-30T20:33:10.000Z
import inspect import os import sys from gettext import gettext as _ from typing import ( TYPE_CHECKING, Any, Callable, Dict, List, Optional, Sequence, Tuple, Union, cast, ) import click import click.core import click.formatting import click.parser import click.types from .util...
34.07431
93
0.578042
df20bef13ed2ede685f3ae7fcbb95005e4e6edd0
50,454
py
Python
functions.py
KasaiKonoru/Auto-Voice-Channels
0f0023050774f8a8e136f1819341c7e71f0472b5
[ "MIT" ]
null
null
null
functions.py
KasaiKonoru/Auto-Voice-Channels
0f0023050774f8a8e136f1819341c7e71f0472b5
[ "MIT" ]
null
null
null
functions.py
KasaiKonoru/Auto-Voice-Channels
0f0023050774f8a8e136f1819341c7e71f0472b5
[ "MIT" ]
null
null
null
import asyncio import traceback from datetime import datetime from copy import deepcopy from math import ceil from random import choice, seed from statistics import mean from time import time import cfg import discord import translate import utils from utils import log try: import patreon_info except ImportError:...
37.849962
120
0.558945
1f2aa6da91f2bd6e8d325474c416eba4e1c4e3d0
13,999
py
Python
melodic/lib/python2.7/dist-packages/roslaunch/remoteprocess.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
null
null
null
melodic/lib/python2.7/dist-packages/roslaunch/remoteprocess.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
1
2021-07-08T10:26:06.000Z
2021-07-08T10:31:11.000Z
melodic/lib/python2.7/dist-packages/roslaunch/remoteprocess.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
null
null
null
# Software License Agreement (BSD License) # # Copyright (c) 2008, Willow Garage, 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...
42.421212
185
0.615044
85b229b06a1822db33306dabe12e22ee9b07d599
530
py
Python
determined_ai_sphinx_theme/__init__.py
determined-ai/pedl_sphinx_theme
9edfa7c6ce6926def9fc69b8ddd7666f3419a907
[ "MIT" ]
null
null
null
determined_ai_sphinx_theme/__init__.py
determined-ai/pedl_sphinx_theme
9edfa7c6ce6926def9fc69b8ddd7666f3419a907
[ "MIT" ]
2
2020-03-10T00:15:46.000Z
2020-04-04T19:39:15.000Z
determined_ai_sphinx_theme/__init__.py
determined-ai/pedl_sphinx_theme
9edfa7c6ce6926def9fc69b8ddd7666f3419a907
[ "MIT" ]
null
null
null
"""Determined AI Sphinx theme. From https://github.com/determined-ai/pedl_sphinx_theme. """ from os import path __version__ = '0.0.25' __version_full__ = __version__ def get_html_theme_path(): """Return list of HTML theme paths.""" cur_dir = path.abspath(path.dirname(path.dirname(__file__))) return cur...
26.5
96
0.749057
e3a0cc511c877a7b7d6a9128228d05331ea8e0f6
6,268
py
Python
src/encode_task_idr.py
CollinsLabBioComp/chip-seq-pipeline2
61f77dd94b3afe39bd718b30f1a9a6a7b9676c30
[ "MIT" ]
1
2019-12-08T08:04:15.000Z
2019-12-08T08:04:15.000Z
src/encode_task_idr.py
leezx/chip-seq-pipeline2
61f77dd94b3afe39bd718b30f1a9a6a7b9676c30
[ "MIT" ]
null
null
null
src/encode_task_idr.py
leezx/chip-seq-pipeline2
61f77dd94b3afe39bd718b30f1a9a6a7b9676c30
[ "MIT" ]
null
null
null
#!/usr/bin/env python # ENCODE DCC IDR wrapper # Author: Jin Lee (leepc12@gmail.com) import sys import os import argparse import math from encode_lib_common import ( assert_file_not_empty, log, ls_l, mkdir_p, rm_f, run_shell_cmd) from encode_lib_genomic import ( peak_to_bigbed, peak_to_hammock) from encode_li...
34.629834
79
0.582642
423a55f507416848cd152b3a2acbed2f9d8f5bb8
2,607
py
Python
clay/cli.py
lucuma/Clay
07923ddb5b710cdea21fd7c4667e4189ebc0640e
[ "Apache-2.0" ]
35
2015-02-12T15:34:47.000Z
2021-09-27T17:16:04.000Z
clay/cli.py
lucuma/Clay
07923ddb5b710cdea21fd7c4667e4189ebc0640e
[ "Apache-2.0" ]
11
2015-01-11T20:48:49.000Z
2020-12-23T18:52:22.000Z
clay/cli.py
lucuma/Clay
07923ddb5b710cdea21fd7c4667e4189ebc0640e
[ "Apache-2.0" ]
10
2015-02-27T19:48:46.000Z
2018-06-24T09:39:27.000Z
import hecto from pyceo import Manager from pyceo import option from pyceo import param from .main import Clay, BLUEPRINT from .server import make_app from .version import __version__ cli = Manager(f"<b>Clay v{__version__}", catch_errors=False) @cli.command(help="Creates a new Clay project at `dest`.") @param("des...
33.423077
86
0.682394
2e8df986933b149da24aa4ddf86b3f284c06117b
9,873
py
Python
embeddingWord.py
MrJohnsson77/Sentiment-Analysis-in-Event-Driven-Stock-Price-Movement-Prediction
f88b1a127613169442b021802876d5b8f806bee0
[ "MIT" ]
1
2018-01-06T11:51:51.000Z
2018-01-06T11:51:51.000Z
embeddingWord.py
shaz13/Sentiment-Analysis-in-Event-Driven-Stock-Price-Movement-Prediction
f88b1a127613169442b021802876d5b8f806bee0
[ "MIT" ]
null
null
null
embeddingWord.py
shaz13/Sentiment-Analysis-in-Event-Driven-Stock-Price-Movement-Prediction
f88b1a127613169442b021802876d5b8f806bee0
[ "MIT" ]
1
2020-10-19T06:05:53.000Z
2020-10-19T06:05:53.000Z
#!/usr/bin/python import os import json import numpy as np import theano import theano.tensor as T import matplotlib.pyplot as plt import en import operator from datetime import datetime from sklearn.utils import shuffle from nltk.corpus import reuters # reference https://github.com/lazyprogrammer/machine_learning_ex...
33.696246
135
0.482629
5bf4fa5cbca978f7162823457788dc8aed0954ed
6,287
py
Python
python/opscore/utility/astrotime.py
sdss/opscore
dd4f2b2ad525fe3dfe3565463de2c079a7e1232e
[ "BSD-3-Clause" ]
null
null
null
python/opscore/utility/astrotime.py
sdss/opscore
dd4f2b2ad525fe3dfe3565463de2c079a7e1232e
[ "BSD-3-Clause" ]
1
2021-08-17T21:08:14.000Z
2021-08-17T21:08:14.000Z
python/opscore/utility/astrotime.py
sdss/opscore
dd4f2b2ad525fe3dfe3565463de2c079a7e1232e
[ "BSD-3-Clause" ]
null
null
null
""" Enhancements to the standard datetime package for astronomical applications. """ # Created 29-Jul-2008 by David Kirkby (dkirkby@uci.edu) from math import floor from datetime import tzinfo, datetime, timedelta class AstroTimeException(Exception): pass class AstroTime(datetime): """ Enhanced version...
30.818627
87
0.594719
c9913930468d140d8afc1bdab0c5b2e7985ca515
3,183
py
Python
time_series_prediction/LSTM/example2.py
18279406017/code-of-csdn
0c22f3abda9605f9a46e4f639739904ed271e6d7
[ "MIT" ]
71
2019-01-24T09:47:09.000Z
2020-08-08T11:45:44.000Z
time_series_prediction/LSTM/example2.py
qinyao2016/code-of-csdn
0c22f3abda9605f9a46e4f639739904ed271e6d7
[ "MIT" ]
1
2021-05-30T07:11:07.000Z
2021-05-30T07:11:07.000Z
time_series_prediction/LSTM/example2.py
qinyao2016/code-of-csdn
0c22f3abda9605f9a46e4f639739904ed271e6d7
[ "MIT" ]
151
2019-01-31T01:20:45.000Z
2020-08-12T11:48:28.000Z
import numpy as np from keras.layers.core import Dense, Activation, Dropout from keras.layers.recurrent import LSTM from keras.models import Sequential import time def normalise_windows(window_data): # 数据全部除以最开始的数据再减一 normalised_data = [] for window in window_data: normalised_window = [((float(p) / floa...
44.208333
93
0.69934
2f0d79a79936c3ad4b75b83358f71706ce9d46b5
6,537
py
Python
samples/client/petstore/python-experimental/petstore_api/models/additional_properties_class.py
yasammez/openapi-generator
cbc12543a9c949ca0eacc73db5f8c383bf3d0a75
[ "Apache-2.0" ]
1
2021-03-29T03:25:42.000Z
2021-03-29T03:25:42.000Z
samples/client/petstore/python-experimental/petstore_api/models/additional_properties_class.py
yasammez/openapi-generator
cbc12543a9c949ca0eacc73db5f8c383bf3d0a75
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/python-experimental/petstore_api/models/additional_properties_class.py
yasammez/openapi-generator
cbc12543a9c949ca0eacc73db5f8c383bf3d0a75
[ "Apache-2.0" ]
1
2020-02-03T11:29:20.000Z
2020-02-03T11:29:20.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
41.373418
174
0.595227
61339f3363f349ec97662004430e330176955579
3,505
py
Python
tests/distro/test_protocol_util.py
luthes/azureNoDev
de88c490061f970ddf787764d3fba9071e1ce318
[ "Apache-2.0" ]
1
2018-12-14T10:04:34.000Z
2018-12-14T10:04:34.000Z
tests/distro/test_protocol_util.py
luthes/azureNoDev
de88c490061f970ddf787764d3fba9071e1ce318
[ "Apache-2.0" ]
null
null
null
tests/distro/test_protocol_util.py
luthes/azureNoDev
de88c490061f970ddf787764d3fba9071e1ce318
[ "Apache-2.0" ]
1
2018-05-09T13:05:48.000Z
2018-05-09T13:05:48.000Z
# Copyright 2014 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
38.944444
82
0.723538
cce7e81eb9b962756741a0a1602868191c834c3b
1,458
py
Python
namespaces/pods/containers.py
jcpowermac/aos-api-examples
5b056127a09ba041d8fe10611933822685e8ef99
[ "Apache-2.0" ]
null
null
null
namespaces/pods/containers.py
jcpowermac/aos-api-examples
5b056127a09ba041d8fe10611933822685e8ef99
[ "Apache-2.0" ]
null
null
null
namespaces/pods/containers.py
jcpowermac/aos-api-examples
5b056127a09ba041d8fe10611933822685e8ef99
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from subprocess import Popen, PIPE import requests import pprint import json import yaml def gettoken(): p = Popen(['oc', 'whoami', '-t'], stdin=PIPE, stdout=PIPE, stderr=PIPE) output, err = p.communicate() rc = p.returncode return output.rstrip('\n') def aosget_text(url, tok...
22.090909
83
0.631687
76c7b0d6e5c96a4dbc22f2cc4953011dc6b06ed4
3,310
py
Python
wuyudong/UTDALLAS/UTDALLAS.py
doge-search/webdoge
443e758b5c1f962d5c2fe792cdbed01e1208b1cb
[ "Unlicense" ]
null
null
null
wuyudong/UTDALLAS/UTDALLAS.py
doge-search/webdoge
443e758b5c1f962d5c2fe792cdbed01e1208b1cb
[ "Unlicense" ]
null
null
null
wuyudong/UTDALLAS/UTDALLAS.py
doge-search/webdoge
443e758b5c1f962d5c2fe792cdbed01e1208b1cb
[ "Unlicense" ]
null
null
null
__author__ = 'cutylewiwi' # -*- coding:utf-8 -*- import urllib import urllib2 import re class Prof: def __init__(self, name, photoUrl, pUrl, title, area, office, phone, email): self.name = name self.photoUrl = photoUrl self.pUrl = pUrl self.title = title self.a...
35.591398
190
0.503021
adce7a9d5be0c5e04ca4da71b16228e1e48e5a46
9,808
py
Python
heat/engine/resources/openstack/manila/share_network.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
265
2015-01-02T09:33:22.000Z
2022-03-26T23:19:54.000Z
heat/engine/resources/openstack/manila/share_network.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
8
2015-09-01T15:43:19.000Z
2021-12-14T05:18:23.000Z
heat/engine/resources/openstack/manila/share_network.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
295
2015-01-06T07:00:40.000Z
2021-09-06T08:05:06.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # di...
40.196721
78
0.622553
77417ad5451804639bdf83fd409d9f6652fae04f
6,028
py
Python
not-used/autoloadfut.py
EJOOSTEROP/twint
1564fcf11194af31208c8399711dcff0570f644b
[ "MIT" ]
null
null
null
not-used/autoloadfut.py
EJOOSTEROP/twint
1564fcf11194af31208c8399711dcff0570f644b
[ "MIT" ]
null
null
null
not-used/autoloadfut.py
EJOOSTEROP/twint
1564fcf11194af31208c8399711dcff0570f644b
[ "MIT" ]
null
null
null
import twint import schedule import time import json from datetime import datetime import os TWT_FILE_NAME = 'cibc.json' TWT_LIMIT_RESULT = 5000 TWT_SINCE_RESULT = "2019-01-01" TWT_SEARCH_FOR = '@cibc' TWT_HIDE_OUTPUT = True def jobsone(): '''First search. Since only a limited number of tweets are ...
34.843931
147
0.695255
d2f081e841689c6d5d3e947f4488741a5122039a
11,325
py
Python
code/python/StocksAPIforDigitalPortals/v2/fds/sdk/StocksAPIforDigitalPortals/model/stock_notation_screener_search_data_index_membership.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/StocksAPIforDigitalPortals/v2/fds/sdk/StocksAPIforDigitalPortals/model/stock_notation_screener_search_data_index_membership.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/StocksAPIforDigitalPortals/v2/fds/sdk/StocksAPIforDigitalPortals/model/stock_notation_screener_search_data_index_membership.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Prime Developer Trial No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.S...
43.725869
124
0.57404
9518c707fb6b17d50510696df529dd7e9dd7a9b1
17,167
py
Python
smarts/core/utils/math.py
zbzhu99/SMARTS
652aa23e71bd4e2732e2742140cfcd0ec082a7da
[ "MIT" ]
null
null
null
smarts/core/utils/math.py
zbzhu99/SMARTS
652aa23e71bd4e2732e2742140cfcd0ec082a7da
[ "MIT" ]
null
null
null
smarts/core/utils/math.py
zbzhu99/SMARTS
652aa23e71bd4e2732e2742140cfcd0ec082a7da
[ "MIT" ]
null
null
null
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # 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 us...
32.451796
110
0.624396
32d24f479e3d738a9c0f15796a5376a53792712f
58,440
py
Python
code/Experiments/neon-master/neon/backends/abstract_backend.py
matthijsvk/convNets
7e65db7857a4e6abfbcab264953eb7741319de6c
[ "Apache-2.0" ]
53
2017-04-18T10:06:20.000Z
2021-12-29T21:26:07.000Z
code/Experiments/neon-master/neon/backends/abstract_backend.py
matthijsvk/convNets
7e65db7857a4e6abfbcab264953eb7741319de6c
[ "Apache-2.0" ]
null
null
null
code/Experiments/neon-master/neon/backends/abstract_backend.py
matthijsvk/convNets
7e65db7857a4e6abfbcab264953eb7741319de6c
[ "Apache-2.0" ]
20
2017-05-03T03:27:09.000Z
2022-03-24T07:07:45.000Z
# ---------------------------------------------------------------------------- # Copyright 2016 Nervana Systems Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
40.92437
130
0.545791
518a2450f41e5c358bd84259ca1bbd7d614165ce
453
py
Python
env/Lib/site-packages/plotly/validators/scattergeo/legendgrouptitle/font/_color.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/scattergeo/legendgrouptitle/font/_color.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/scattergeo/legendgrouptitle/font/_color.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="color", parent_name="scattergeo.legendgrouptitle.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plot...
26.647059
66
0.626932
ff1c8e3e5d2865afddf7fe0f364d71deaaa8d9c0
1,645
py
Python
mlprodict/asv_benchmark/template/skl_model_multi_classifier.py
xadupre/mlprodict
f82c8a26a60104948c67849b1c4af95ca812c153
[ "MIT" ]
1
2020-12-18T03:49:53.000Z
2020-12-18T03:49:53.000Z
mlprodict/asv_benchmark/template/skl_model_multi_classifier.py
xadupre/mlprodict
f82c8a26a60104948c67849b1c4af95ca812c153
[ "MIT" ]
null
null
null
mlprodict/asv_benchmark/template/skl_model_multi_classifier.py
xadupre/mlprodict
f82c8a26a60104948c67849b1c4af95ca812c153
[ "MIT" ]
null
null
null
""" A template to benchmark a model with :epkg:`asv`. The benchmark can be run through file :epkg:`run_asv.sh` on Linux or :epkg:`run_asv.bat` on Windows. .. warning:: On Windows, you should avoid cloning the repository on a folder with a long full name. Visual Studio tends to abide by the rule of the maxi...
35.76087
98
0.711246
00925837c66ed0947174c225b0a8d54e5a364ca9
1,304
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/verification_ip_flow_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/verification_ip_flow_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/verification_ip_flow_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "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 ...
37.257143
78
0.611196
dc159b93a3781cb2cf90eb99a0a9d9e1aecf573b
2,188
py
Python
tensorflow/contrib/seq2seq/__init__.py
xincao79/tensorflow
7fa0cf39f854d5fdaaa19ad6425dfed02f5fea64
[ "Apache-2.0" ]
5
2019-01-17T08:47:31.000Z
2020-05-06T06:10:56.000Z
tensorflow/contrib/seq2seq/__init__.py
xincao79/tensorflow
7fa0cf39f854d5fdaaa19ad6425dfed02f5fea64
[ "Apache-2.0" ]
3
2020-03-24T18:15:52.000Z
2021-02-02T22:28:38.000Z
tensorflow/contrib/seq2seq/__init__.py
xincao79/tensorflow
7fa0cf39f854d5fdaaa19ad6425dfed02f5fea64
[ "Apache-2.0" ]
3
2017-06-09T10:39:33.000Z
2021-04-08T16:13:30.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.730159
80
0.741773
5e281da3495cbffd342faec139651e3e9a1bb429
12,926
py
Python
Parabola/prop1.py
pdcxs/ManimProjects
550a281e430a1a1568ae1978ccfe817bedcc9ef8
[ "WTFPL" ]
29
2019-12-09T13:57:37.000Z
2022-02-15T12:18:25.000Z
Parabola/prop1.py
pdcxs/ManimProjects
550a281e430a1a1568ae1978ccfe817bedcc9ef8
[ "WTFPL" ]
1
2019-12-22T09:15:18.000Z
2019-12-23T02:16:43.000Z
Parabola/prop1.py
pdcxs/ManimProjects
550a281e430a1a1568ae1978ccfe817bedcc9ef8
[ "WTFPL" ]
4
2020-04-16T12:50:09.000Z
2021-07-09T12:39:04.000Z
from manimlib.imports import * from ManimProjects.utils.Parabola import Parabola from ManimProjects.utils.geometry import CText # To Run this code, you should modify manim source files. # In manimlib/mobject/mobject.py, add "plot_depth": 0 in the CONFIG of Mobject class # In manimlib/camera/camera.py # change the retu...
31.603912
142
0.551601
5c33b39795094fc8f6ebb4eb9294a1a105fc0dbc
7,357
py
Python
pybamm/solvers/casadi_algebraic_solver.py
anandmy/PyBaMM
dd8e5ebf85dc4324e163adad274ccb56c88f3698
[ "BSD-3-Clause" ]
null
null
null
pybamm/solvers/casadi_algebraic_solver.py
anandmy/PyBaMM
dd8e5ebf85dc4324e163adad274ccb56c88f3698
[ "BSD-3-Clause" ]
null
null
null
pybamm/solvers/casadi_algebraic_solver.py
anandmy/PyBaMM
dd8e5ebf85dc4324e163adad274ccb56c88f3698
[ "BSD-3-Clause" ]
null
null
null
# # Casadi algebraic solver class # import casadi import pybamm import numpy as np class CasadiAlgebraicSolver(pybamm.BaseSolver): """Solve a discretised model which contains only (time independent) algebraic equations using CasADi's root finding algorithm. Note: this solver could be extended for quasi-st...
39.983696
88
0.560962
656a69da5302d87a2a3fa603af3cd57462fc1fef
1,406
py
Python
test/win/gyptest-command-quote.py
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
77
2018-07-01T15:55:34.000Z
2022-03-30T09:16:54.000Z
test/win/gyptest-command-quote.py
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
116
2021-05-29T16:32:51.000Z
2021-08-13T16:05:29.000Z
test/win/gyptest-command-quote.py
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
53
2018-04-13T12:06:06.000Z
2022-03-25T13:54:38.000Z
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Make sure the program in a command can be a called batch file, or an application in the path. Specifically, this means not quoting some...
32.697674
78
0.733286
bcdbfc8e527d0dc9a95eddaf040f8035207b6c20
4,358
py
Python
python/paddle/fluid/tests/unittests/test_elementwise_add_mkldnn_op.py
jerrywgz/Paddle
85c4912755b783dd7554a9d6b9dae4a7e40371bc
[ "Apache-2.0" ]
2
2018-07-05T14:37:36.000Z
2018-07-05T14:37:42.000Z
python/paddle/fluid/tests/unittests/test_elementwise_add_mkldnn_op.py
jerrywgz/Paddle
85c4912755b783dd7554a9d6b9dae4a7e40371bc
[ "Apache-2.0" ]
3
2017-07-15T14:20:08.000Z
2019-05-06T03:16:54.000Z
python/paddle/fluid/tests/unittests/test_elementwise_add_mkldnn_op.py
jerrywgz/Paddle
85c4912755b783dd7554a9d6b9dae4a7e40371bc
[ "Apache-2.0" ]
1
2018-07-20T07:13:31.000Z
2018-07-20T07:13:31.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.267176
79
0.707664
02b11a13ebecf7aad3eb8d2d62e02713a52b7859
6,350
py
Python
CalibTracker/SiStripDCS/test/CheckAllIOVs.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CalibTracker/SiStripDCS/test/CheckAllIOVs.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CalibTracker/SiStripDCS/test/CheckAllIOVs.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#!/usr/bin/env python #GBenelli Added the /env above to use the python version of CMSSW and run without having to do python <SCRIPT NAME> """ This script does the following: 1- reads the list of iovs (by timestamp) in a sqlite file or in the Offline DB 2- creates a cfg for each iov and runs them 3- creates 2 log files...
40.44586
144
0.651811
2a13a28cffd171db4884ae9ef755b01e42c66acc
1,899
py
Python
test/unit/sort_search/utils_test.py
dclark87/pytools
f395f3cdedc3e2f3debcaab510343f5a0b52d604
[ "MIT" ]
null
null
null
test/unit/sort_search/utils_test.py
dclark87/pytools
f395f3cdedc3e2f3debcaab510343f5a0b52d604
[ "MIT" ]
null
null
null
test/unit/sort_search/utils_test.py
dclark87/pytools
f395f3cdedc3e2f3debcaab510343f5a0b52d604
[ "MIT" ]
null
null
null
# test/unit/sort_search/utils_test.py # # Author: Daniel Clark, 2016 ''' Unit test module to perform testing on utils module ''' # Import packages import unittest class AMergeBTestCase(unittest.TestCase): ''' TestCase for the sorting module ''' # Set up test case def setUp(self): ''' ...
22.081395
61
0.573986
fad7c2b62e10da33b9543042345521b5b9155985
6,608
py
Python
arrapi/raws/base.py
meisnate12/ArrAPI
0e407ced6005d2e626d46e353699a09d8914beb8
[ "MIT" ]
11
2021-06-14T01:37:09.000Z
2022-03-30T08:51:10.000Z
arrapi/raws/base.py
meisnate12/ArrAPI
0e407ced6005d2e626d46e353699a09d8914beb8
[ "MIT" ]
12
2021-06-17T13:21:19.000Z
2022-03-02T05:45:15.000Z
arrapi/raws/base.py
meisnate12/ArrAPI
0e407ced6005d2e626d46e353699a09d8914beb8
[ "MIT" ]
4
2021-11-07T04:48:50.000Z
2022-01-23T12:58:48.000Z
import logging from abc import ABC, abstractmethod from json.decoder import JSONDecodeError from requests import Session from requests.exceptions import RequestException from arrapi import ArrException, ConnectionFailure, NotFound, Unauthorized, Invalid logger = logging.getLogger(__name__) class BaseRawAPI(ABC): ...
41.043478
148
0.614407
5805766db9c13e31a01dee5f11ec2703b1ca5a1f
1,571
bzl
Python
internal/common/typescript_mock_lib.bzl
DevVersion/rules_nodejs
96374fdfa94f69731cc184716d194033818c6587
[ "Apache-2.0" ]
null
null
null
internal/common/typescript_mock_lib.bzl
DevVersion/rules_nodejs
96374fdfa94f69731cc184716d194033818c6587
[ "Apache-2.0" ]
null
null
null
internal/common/typescript_mock_lib.bzl
DevVersion/rules_nodejs
96374fdfa94f69731cc184716d194033818c6587
[ "Apache-2.0" ]
1
2018-10-04T23:39:45.000Z
2018-10-04T23:39:45.000Z
# Copyright 2017 The Bazel 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 la...
36.534884
112
0.734564
433892edbf8f67419d6410a456c90495550d83cf
6,798
py
Python
awx/__init__.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
1
2021-09-07T14:53:57.000Z
2021-09-07T14:53:57.000Z
awx/__init__.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
2
2020-02-04T05:01:38.000Z
2020-02-18T06:44:52.000Z
awx/__init__.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
1
2020-01-28T05:34:09.000Z
2020-01-28T05:34:09.000Z
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. from __future__ import absolute_import, unicode_literals import os import sys import warnings from pkg_resources import get_distribution __version__ = get_distribution('awx').version __all__ = ['__version__'] # Check for the presence/absence of "devonly" mo...
40.951807
96
0.676964
2c81e547ecc22f3939caa196a04c8f3c5ec7ce7f
2,180
py
Python
virustotal.py
emr4h/virustotalApi
f53cf97a80d50779ef10aa1c107a34c9bf6f0eaf
[ "MIT" ]
null
null
null
virustotal.py
emr4h/virustotalApi
f53cf97a80d50779ef10aa1c107a34c9bf6f0eaf
[ "MIT" ]
null
null
null
virustotal.py
emr4h/virustotalApi
f53cf97a80d50779ef10aa1c107a34c9bf6f0eaf
[ "MIT" ]
null
null
null
import argparse from pyfiglet import Figlet import random import subprocess import requests print("\n\n\n") fontList = ["big","bulbhead","roman","epic","larry3d","speed","nancyj","stampatello","smslant","slscript","serifcap","rounded","puffy","o8","letters","colossal","basic"] fontType = random.choice(fontList) f = F...
40.37037
344
0.673853
bc0abfafa703f781c5961c155a68da5c9e02e027
1,869
py
Python
nova/tests/functional/v3/test_console_auth_tokens.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
7
2015-09-22T11:27:16.000Z
2015-11-02T12:33:46.000Z
nova/tests/functional/v3/test_console_auth_tokens.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
2
2015-09-07T22:14:46.000Z
2020-08-12T08:51:56.000Z
nova/tests/functional/v3/test_console_auth_tokens.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
4
2015-09-09T16:48:56.000Z
2022-03-15T20:52:57.000Z
# Copyright 2013 Cloudbase Solutions Srl # # 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...
35.942308
78
0.64687
c708351cade9cfd963da97629b9820c36d0dedcd
71
py
Python
Console/Python/MisionTic/Excercises/test1.py
DavidsDvm/Dev_Exercises
59e12913e987e710558044e27c07b192576167f3
[ "Unlicense", "MIT" ]
1
2021-08-30T21:06:52.000Z
2021-08-30T21:06:52.000Z
Console/Python/MisionTic/Excercises/test1.py
DavidsDvm/Dev_Exercises
59e12913e987e710558044e27c07b192576167f3
[ "Unlicense", "MIT" ]
1
2021-05-18T05:42:02.000Z
2021-05-18T05:42:02.000Z
Console/Python/MisionTic/Excercises/test1.py
DavidsDvm/Dev_Exercises
59e12913e987e710558044e27c07b192576167f3
[ "Unlicense", "MIT" ]
null
null
null
""" First proyect on Python Hellow world test """ print("Hello world")
11.833333
23
0.704225
f9b8cce5a5c3fb3e79fba914185381c5640effc8
5,498
py
Python
demo_man/tests/test_simple_game.py
avanwinkle/mpf-examples
5606013752436f80d29709bcf6abdd171d32b4b4
[ "MIT" ]
6
2016-02-16T19:54:38.000Z
2019-02-09T05:57:39.000Z
demo_man/tests/test_simple_game.py
avanwinkle/mpf-examples
5606013752436f80d29709bcf6abdd171d32b4b4
[ "MIT" ]
11
2016-04-14T23:56:13.000Z
2021-11-29T02:43:35.000Z
demo_man/tests/test_simple_game.py
avanwinkle/mpf-examples
5606013752436f80d29709bcf6abdd171d32b4b4
[ "MIT" ]
13
2016-03-21T13:40:56.000Z
2022-02-23T23:33:24.000Z
import os from mpfmc.tests.FullMpfMachineTestCase import FullMachineTestCase class TestSimpleGame(FullMachineTestCase): def get_machine_path(self): return os.path.abspath(os.path.join(os.path.realpath(__file__), os.pardir, os.pardir)) def test_single_player_game(self): self.hit_and_release_s...
42.292308
94
0.706439
c3ee3eaf4b643888b2149ba9a8ab3d978157d4f1
1,559
py
Python
Day_5/aoc2021_5.py
daryltanwk/AOC2021
52709bc57ded64b8ffc1f4ee05ad5b9d67ab11fc
[ "MIT" ]
null
null
null
Day_5/aoc2021_5.py
daryltanwk/AOC2021
52709bc57ded64b8ffc1f4ee05ad5b9d67ab11fc
[ "MIT" ]
null
null
null
Day_5/aoc2021_5.py
daryltanwk/AOC2021
52709bc57ded64b8ffc1f4ee05ad5b9d67ab11fc
[ "MIT" ]
null
null
null
# Open file for reading mapOfSea = [[0 for i in range(1000)] for j in range(1000)] inputFile = open('input_5', 'rt') for rawLine in inputFile: line = rawLine.strip().split(" -> ") start = [int(line[0].split(",")[0]), int(line[0].split(",")[1])] end = [int(line[1].split(",")[0]), int(line[1].split(",")[1]...
29.415094
73
0.561257
2687d49c16c0ae16b106f6d99ce74f4f8096468e
6,854
py
Python
src/main.py
Muhammad-Dah/SimpleHTR
571967c8985160ff869d950b0ed3154fe6d0d426
[ "MIT" ]
null
null
null
src/main.py
Muhammad-Dah/SimpleHTR
571967c8985160ff869d950b0ed3154fe6d0d426
[ "MIT" ]
null
null
null
src/main.py
Muhammad-Dah/SimpleHTR
571967c8985160ff869d950b0ed3154fe6d0d426
[ "MIT" ]
null
null
null
import argparse import json import warnings import cv2 import editdistance import matplotlib.pyplot as plt from path import Path from DataLoaderIAM import DataLoaderIAM, Batch from Model import Model, DecoderType from SamplePreprocessor import word_image_preprocess from spelling_correction import SpellingCorrector w...
36.457447
112
0.659031
1d08afceb3105e4bf0ea91f9551731bc484ae222
2,614
py
Python
sdk/python/pulumi_azure_nextgen/eventgrid/v20190601/list_topic_shared_access_keys.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/eventgrid/v20190601/list_topic_shared_access_keys.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/eventgrid/v20190601/list_topic_shared_access_keys.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
33.512821
162
0.667942
f9a35f812fae2c1968c50be0a53c3533d0d23888
863
py
Python
fpc-compression/uvint.py
clayne/toys
ec06411e2d3b920403607888d4a573e41390ee5b
[ "BSD-2-Clause" ]
null
null
null
fpc-compression/uvint.py
clayne/toys
ec06411e2d3b920403607888d4a573e41390ee5b
[ "BSD-2-Clause" ]
null
null
null
fpc-compression/uvint.py
clayne/toys
ec06411e2d3b920403607888d4a573e41390ee5b
[ "BSD-2-Clause" ]
null
null
null
def encode(x): assert x >= 0 buf = b'' while True: if x < 128: buf += (x | 0x80).to_bytes(1, "little") break else: buf += (x & 0x7f).to_bytes(1, "little") x >>= 7 return buf def decode(buf): x = 0 i = 0 while True: v = i...
19.177778
51
0.418308
99bdb0614214462fdcad569249bdbaa5771370b8
1,656
py
Python
pysim/information/entropy.py
jejjohnson/pysim
4cd5f0987d3cbdeba1c932ca845df1b0bd9d46bf
[ "MIT" ]
3
2021-04-09T06:20:00.000Z
2021-05-17T13:46:45.000Z
pysim/information/entropy.py
jejjohnson/pysim
4cd5f0987d3cbdeba1c932ca845df1b0bd9d46bf
[ "MIT" ]
null
null
null
pysim/information/entropy.py
jejjohnson/pysim
4cd5f0987d3cbdeba1c932ca845df1b0bd9d46bf
[ "MIT" ]
null
null
null
import numpy as np from scipy import stats from typing import Union, Optional, Dict from .histogram import hist_entropy from .knn import knn_entropy from .kde import kde_entropy_uni from .gaussian import gauss_entropy_uni, gauss_entropy_multi from sklearn.utils import check_array def univariate_entropy(X: np.ndarray,...
29.052632
87
0.676932
12da8659caca2dcbd8e981dd7124b52737bff970
7,452
py
Python
tensorflow/python/kernel_tests/linalg/linear_operator_algebra_test.py
fraudies/tensorflow
a42423e302b71893bbd24aa896869941013c07fb
[ "Apache-2.0" ]
36
2016-12-17T15:25:25.000Z
2022-01-29T21:50:53.000Z
tensorflow/python/kernel_tests/linalg/linear_operator_algebra_test.py
shekharpalit/tensorflow
6aa83398ab03bfae822f36772757097bcb98b6ed
[ "Apache-2.0" ]
59
2019-06-17T09:37:49.000Z
2022-01-19T01:21:34.000Z
tensorflow/python/kernel_tests/linalg/linear_operator_algebra_test.py
shekharpalit/tensorflow
6aa83398ab03bfae822f36772757097bcb98b6ed
[ "Apache-2.0" ]
36
2017-07-27T21:12:40.000Z
2022-02-03T16:45:56.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
32.973451
96
0.743022
9010d57bb916e33c0bbef2300298af9962c15bd6
1,683
py
Python
energyquantified/api/periods.py
energyquantified/eq-python-client
3ca8423ae29c4a3dbd8f6289ab76a64b21dabf1c
[ "Apache-2.0" ]
4
2021-03-02T10:08:37.000Z
2021-11-12T08:18:18.000Z
energyquantified/api/periods.py
mfsorensen/eq-python-client
6dc65f5c16881b27fc22c9f461440c327997861e
[ "Apache-2.0" ]
23
2020-07-22T13:41:20.000Z
2021-10-12T09:03:27.000Z
energyquantified/api/periods.py
mfsorensen/eq-python-client
6dc65f5c16881b27fc22c9f461440c327997861e
[ "Apache-2.0" ]
2
2020-10-01T20:18:08.000Z
2021-03-02T10:08:41.000Z
from .base import BaseAPI from ..metadata import CurveType from ..parser.periodseries import parse_periodseries # Tuple of supported values for Curve.curve_type in the periods API CURVE_TYPES = (CurveType.PERIOD,) class PeriodsAPI(BaseAPI): """ Period-based series API operations. Access these operations vi...
32.365385
79
0.634581
a16b5d59e8b281b74e57defb3ed00ef8e4dae89f
6,853
py
Python
wrappers/visualising_network_measures.py
FCYtheFreeman/BrainNetworksInPython
7a43a8021d43b23498afca481f03a0e319f48a56
[ "MIT" ]
null
null
null
wrappers/visualising_network_measures.py
FCYtheFreeman/BrainNetworksInPython
7a43a8021d43b23498afca481f03a0e319f48a56
[ "MIT" ]
null
null
null
wrappers/visualising_network_measures.py
FCYtheFreeman/BrainNetworksInPython
7a43a8021d43b23498afca481f03a0e319f48a56
[ "MIT" ]
1
2020-03-03T04:03:08.000Z
2020-03-03T04:03:08.000Z
#!/usr/bin/env python #============================================================================= # Created by Kirstie Whitaker # on a day when she really should have been replying to emails # but wanted to make some pretty network pictures instead, April 2017 # Contact: kw401@cam.ac.uk #===========================...
47.262069
127
0.43076
472ba9e0d2d7a06a37987b293bdf6f56b262544c
515
py
Python
tests/test_graphs.py
cjauvin/RavenPy
d9671b5a71004bb0501ab64e0e6efbd06d2fa465
[ "MIT" ]
12
2020-12-07T23:07:13.000Z
2022-03-08T20:50:58.000Z
tests/test_graphs.py
cjauvin/RavenPy
d9671b5a71004bb0501ab64e0e6efbd06d2fa465
[ "MIT" ]
119
2020-08-25T08:17:17.000Z
2022-03-30T16:12:19.000Z
tests/test_graphs.py
cjauvin/RavenPy
d9671b5a71004bb0501ab64e0e6efbd06d2fa465
[ "MIT" ]
3
2020-12-02T17:33:13.000Z
2021-08-31T15:39:26.000Z
import numpy as np import xarray as xr from xclim.indicators.land import fit, stats from ravenpy.utilities import graphs from ravenpy.utilities.testdata import get_local_testdata def test_ts_fit_graph(): fn = get_local_testdata( "hydro_simulations/raven-gr4j-cemaneige-sim_hmets-0_Hydrographs.nc" ) ...
24.52381
75
0.720388
8b5a94cbda81d3c5dcae05bbbf7877f8ce1c4658
1,672
py
Python
api/ask.py
qh73xe/HowAboutNatume
8d994a1e16e2153dc200097d8f8b43713d76a3d5
[ "MIT" ]
null
null
null
api/ask.py
qh73xe/HowAboutNatume
8d994a1e16e2153dc200097d8f8b43713d76a3d5
[ "MIT" ]
7
2020-03-24T15:37:48.000Z
2021-06-01T22:01:22.000Z
api/ask.py
qh73xe/HowAboutNatume
8d994a1e16e2153dc200097d8f8b43713d76a3d5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* """生成されたモデルから類義語を返します.""" from typing import List from tokenizer import get_noun, get_adjective from logger import getLogger LOGGER = getLogger('ASK_MODULE') def get_model(author: str): """モデルパスを返します.""" from os import path from config import MODEL_DIR from gensim.models.word...
26.967742
63
0.559211
f8f79ce95cd08407f87f58604528329e8a0f748d
663
py
Python
tasks.py
Memberships-Affiliate-Management-API/admin-portal
87ce14a265e7119e4889a37e116f565a00f2bf0d
[ "MIT" ]
null
null
null
tasks.py
Memberships-Affiliate-Management-API/admin-portal
87ce14a265e7119e4889a37e116f565a00f2bf0d
[ "MIT" ]
1
2021-09-06T10:37:34.000Z
2021-09-06T10:37:34.000Z
tasks.py
Memberships-Affiliate-Management-API/admin-portal
87ce14a265e7119e4889a37e116f565a00f2bf0d
[ "MIT" ]
1
2021-08-31T15:26:02.000Z
2021-08-31T15:26:02.000Z
""" **scheduler** used to dynamically add jobs on a separate thread to complete tasks that should not interfere with requests, or requests that takes a long time to complete """ __developer__ = "mobius-crypt" __email__ = "mobiusndou@gmail.com" __twitter__ = "@blueitserver" __github_repo__ = "https:/...
33.15
101
0.746606
2fa3b69ca38531af1117f6a7d2f3d75c4a16bd9c
2,844
py
Python
mmcv/ops/corner_pool.py
frankier/mmcv
0970ae94c21a162472b3d3d2ae75824e0d7c6698
[ "Apache-2.0" ]
null
null
null
mmcv/ops/corner_pool.py
frankier/mmcv
0970ae94c21a162472b3d3d2ae75824e0d7c6698
[ "Apache-2.0" ]
null
null
null
mmcv/ops/corner_pool.py
frankier/mmcv
0970ae94c21a162472b3d3d2ae75824e0d7c6698
[ "Apache-2.0" ]
null
null
null
from torch import nn from torch.autograd import Function from ..utils import ext_loader ext_module = ext_loader.load_ext('_ext', [ 'top_pool_forward', 'top_pool_backward', 'bottom_pool_forward', 'bottom_pool_backward', 'left_pool_forward', 'left_pool_backward', 'right_pool_forward', 'right_pool_backward' ...
26.333333
73
0.671941
a59463a0443aeeebb30b3013e76f0a1aa54d6842
2,602
py
Python
tests/pipfile.py
chachabooboo/king-phisher
8a91b9043de0f12b5cad9a5f1d64ebd0179a6c4d
[ "BSD-3-Clause" ]
1,143
2015-01-12T15:05:16.000Z
2020-04-12T16:10:19.000Z
tests/pipfile.py
chachabooboo/king-phisher
8a91b9043de0f12b5cad9a5f1d64ebd0179a6c4d
[ "BSD-3-Clause" ]
399
2015-01-22T15:20:03.000Z
2020-04-08T23:01:46.000Z
tests/pipfile.py
chachabooboo/king-phisher
8a91b9043de0f12b5cad9a5f1d64ebd0179a6c4d
[ "BSD-3-Clause" ]
351
2015-02-02T21:39:38.000Z
2020-03-21T11:45:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # tests/pipfile.py # # 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 co...
42.655738
117
0.7598
e3d11d5f9a3c1365b5508e126be8cc73f8724fa0
59
py
Python
tests/unit/strres/__init__.py
RaenonX/Jelly-Bot-API
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
5
2020-08-26T20:12:00.000Z
2020-12-11T16:39:22.000Z
tests/unit/strres/__init__.py
RaenonX/Jelly-Bot
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
234
2019-12-14T03:45:19.000Z
2020-08-26T18:55:19.000Z
tests/unit/strres/__init__.py
RaenonX/Jelly-Bot-API
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
2
2019-10-23T15:21:15.000Z
2020-05-22T09:35:55.000Z
from .extutils import * # noqa from .mdb import * # noqa
19.666667
31
0.661017
f0546748b4d806348eec388c4393a16659c4f93e
16,293
py
Python
build/lib/lsclib/run.py
duncanesmith/lsclib
4cffeb231610d2ed43270b7ec6bdadd3a3f9a2ba
[ "MIT" ]
6
2021-07-16T06:32:26.000Z
2022-01-23T03:12:23.000Z
build/lib/lsclib/run.py
duncanesmith/lsclib
4cffeb231610d2ed43270b7ec6bdadd3a3f9a2ba
[ "MIT" ]
null
null
null
build/lib/lsclib/run.py
duncanesmith/lsclib
4cffeb231610d2ed43270b7ec6bdadd3a3f9a2ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 11 16:14:00 2019 @author: smithd24 """ import math import time from lsclib import xls_read_interpolate as xlsread from lsclib import lsc_classes as lsccls import cProfile, pstats from lsclib import external_equations as eqn import pandas as pd def wedge(trials, Einc = 4...
45.511173
80
0.515682
bf09e83dc4252364b9c9f98e0d5481452e0454c3
3,089
py
Python
qtpyvcp/widgets/qtdesigner/designer_plugin.py
Lcvette/qtpyvcp
4143a4a4e1f557f7d0c8998c886b4a254f0be60b
[ "BSD-3-Clause-LBNL", "MIT" ]
1
2020-09-27T15:46:26.000Z
2020-09-27T15:46:26.000Z
qtpyvcp/widgets/qtdesigner/designer_plugin.py
adargel/qtpyvcp
2fcb9c26616ac4effa8d92befa9e1c00a80daafa
[ "BSD-3-Clause-LBNL", "MIT" ]
null
null
null
qtpyvcp/widgets/qtdesigner/designer_plugin.py
adargel/qtpyvcp
2fcb9c26616ac4effa8d92befa9e1c00a80daafa
[ "BSD-3-Clause-LBNL", "MIT" ]
null
null
null
from qtpy.QtGui import QIcon from qtpy.QtDesigner import QPyDesignerCustomWidgetPlugin from plugin_extension import ExtensionFactory, Q_TYPEID from designer_hooks import DesignerHooks from rules_editor import RulesEditorExtension class _DesignerPlugin(QPyDesignerCustomWidgetPlugin): group_name = None def _...
30.89
92
0.606669
5845cc1f638688395696d9c7c4ad1930ae76d24a
596
py
Python
uiflow/main.py
stanlaw7/aaatimer
adac362119b0c3be72bc0531564ca59b8ee04863
[ "CC0-1.0" ]
2
2020-02-17T17:27:21.000Z
2021-03-26T18:18:55.000Z
uiflow/main.py
hfcs/aaatimer
adac362119b0c3be72bc0531564ca59b8ee04863
[ "CC0-1.0" ]
null
null
null
uiflow/main.py
hfcs/aaatimer
adac362119b0c3be72bc0531564ca59b8ee04863
[ "CC0-1.0" ]
null
null
null
from m5stack import * from m5ui import * from uiflow import * setScreenColor(0xffffff) image0 = M5Img(120, 71, "res/logo.png", True) labelTimer = M5TextBox(36, 210, "Timer", lcd.FONT_DejaVu18, 0x000000, rotate=0) labelPar = M5TextBox(202, 210, "Par Time", lcd.FONT_DejaVu18, 0x000000, rotate=0) def buttonA_wasPre...
19.225806
81
0.741611
b7a4bbf0351a53fa70ea73228e3d99bf2e128548
5,649
py
Python
docs/conf.py
uutzinger/Adafruit_CircuitPython_HTU21D
afd8d06a7220cc200b57ee03f9c12854a6b1b3fc
[ "Unlicense", "MIT-0", "MIT" ]
2
2018-09-30T22:11:12.000Z
2020-04-24T20:25:01.000Z
docs/conf.py
uutzinger/Adafruit_CircuitPython_HTU21D
afd8d06a7220cc200b57ee03f9c12854a6b1b3fc
[ "Unlicense", "MIT-0", "MIT" ]
7
2018-09-25T01:52:29.000Z
2021-09-27T16:44:58.000Z
docs/conf.py
uutzinger/Adafruit_CircuitPython_HTU21D
afd8d06a7220cc200b57ee03f9c12854a6b1b3fc
[ "Unlicense", "MIT-0", "MIT" ]
9
2018-09-25T01:49:44.000Z
2022-03-28T19:47:47.000Z
# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # # SPDX-License-Identifier: MIT import os import sys sys.path.insert(0, os.path.abspath("..")) # -- General configuration ------------------------------------------------ # Add any Sphinx extension module names here, as strings...
29.575916
85
0.664542
475423ec49857c4090a622c89ed1b70e7614a560
3,666
py
Python
libs/sdc_etl_libs/api_helpers/APIFactory.py
darknegma/docker-airflow
44e3d02d7ac43c8876145ae47acfbbbde67230df
[ "Apache-2.0" ]
null
null
null
libs/sdc_etl_libs/api_helpers/APIFactory.py
darknegma/docker-airflow
44e3d02d7ac43c8876145ae47acfbbbde67230df
[ "Apache-2.0" ]
3
2021-03-31T19:26:57.000Z
2021-12-13T20:33:01.000Z
libs/sdc_etl_libs/api_helpers/APIFactory.py
darknegma/docker-airflow
44e3d02d7ac43c8876145ae47acfbbbde67230df
[ "Apache-2.0" ]
null
null
null
import logging class APIFactory: @staticmethod def get_api(api_name_): """ Generates an instance of a requested API class. :param api_name_: String. Name of API class to generate from available_apis dict. :return: API class instance. """ if api_name_ in avail...
32.732143
101
0.703219
5ffce228f8157797ded10fbee245600240f3b385
241
py
Python
pyfms/transformers.py
vishalbelsare/PyFactorizationMachines
f4eb14f095af8a99e195119a15b3f33276a6e91a
[ "MIT" ]
3
2020-05-19T20:48:16.000Z
2021-04-26T16:04:20.000Z
pyfms/transformers.py
vishalbelsare/PyFactorizationMachines
f4eb14f095af8a99e195119a15b3f33276a6e91a
[ "MIT" ]
null
null
null
pyfms/transformers.py
vishalbelsare/PyFactorizationMachines
f4eb14f095af8a99e195119a15b3f33276a6e91a
[ "MIT" ]
1
2020-11-10T00:23:24.000Z
2020-11-10T00:23:24.000Z
from theano import tensor as T from . import core class Linear(core.Transformer): def transform(self, y_hat): return y_hat class Sigmoid(core.Transformer): def transform(self, y_hat): return T.nnet.sigmoid(y_hat)
18.538462
36
0.697095
ea6f50ef1c78e2885b69b0841abf8bc9069d786f
13,616
py
Python
django/db/backends/mysql/base.py
shinshin86/django
5cc81cd9eb69f5f7a711412c02039b435c393135
[ "PSF-2.0", "BSD-3-Clause" ]
1
2019-11-17T04:10:38.000Z
2019-11-17T04:10:38.000Z
django/db/backends/mysql/base.py
Blaahborgh/django
c591bc3ccece1514d6b419826c7fa36ada9d9213
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/backends/mysql/base.py
Blaahborgh/django
c591bc3ccece1514d6b419826c7fa36ada9d9213
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-11-04T08:47:02.000Z
2020-11-04T08:47:02.000Z
""" MySQL database backend for Django. Requires mysqlclient: https://pypi.org/project/mysqlclient/ """ import re from django.core.exceptions import ImproperlyConfigured from django.db import utils from django.db.backends import utils as backend_utils from django.db.backends.base.base import BaseDatabaseWrapper from d...
40.165192
109
0.606713
02d27ab29b75458daafc0bd80682a11f3ee152f1
16,070
py
Python
src/pymor/core/defaults.py
kinnala/pymor
9d2a8ee5f7a71482e62952257332d269d50678e9
[ "Unlicense" ]
2
2022-03-22T11:47:12.000Z
2022-03-22T11:48:23.000Z
src/pymor/core/defaults.py
kinnala/pymor
9d2a8ee5f7a71482e62952257332d269d50678e9
[ "Unlicense" ]
14
2022-01-05T09:25:11.000Z
2022-03-31T17:07:10.000Z
src/pymor/core/defaults.py
kinnala/pymor
9d2a8ee5f7a71482e62952257332d269d50678e9
[ "Unlicense" ]
1
2022-03-28T10:58:18.000Z
2022-03-28T10:58:18.000Z
# This file is part of the pyMOR project (https://www.pymor.org). # Copyright pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (https://opensource.org/licenses/BSD-2-Clause) """This module contains pyMOR's facilities for handling default values. A default value in pyMOR is alway...
35.870536
113
0.64692
c0ada40c655c14cf1f24546d65b52c829c77275e
735
py
Python
climfill/numba_nanmean.py
climachine/climfill
2bc1ace5d880e18d8f351373921f385a2c0d9bd8
[ "Apache-2.0" ]
10
2021-07-08T16:09:37.000Z
2021-12-20T10:22:55.000Z
climfill/numba_nanmean.py
climachine/climfill
c4cd6797d932b7e21004e4172c9c5a05b2a24e47
[ "Apache-2.0" ]
1
2021-09-30T11:44:25.000Z
2021-09-30T11:44:25.000Z
climfill/numba_nanmean.py
climachine/climfill
2bc1ace5d880e18d8f351373921f385a2c0d9bd8
[ "Apache-2.0" ]
2
2021-04-30T16:29:31.000Z
2021-12-17T15:39:24.000Z
""" this file contains a fast, cython-based version for the spatiotemporal filtering of the data. Adapted after source: ilovesymposia.com/2017/03/12/scipys-new-lowlevelcallable-is-a-game-changer/ """ import numpy as np from numba import carray, cfunc from numba.types import CPointer, float64, intc, intp, voidptr # ...
26.25
75
0.659864
31726890f6c931fa9889457dde660823e80d3fb9
2,908
py
Python
pymatgen/analysis/tests/test_substrate_analyzer.py
mailhexu/pymatgen
70da55dd860771eb9d38c306dbcd3f6b074b7a54
[ "MIT" ]
18
2019-06-15T18:08:21.000Z
2022-01-30T05:01:29.000Z
ComRISB/pyextern/pymatgen/pymatgen/analysis/tests/test_substrate_analyzer.py
comscope/Comsuite
b80ca9f34c519757d337487c489fb655f7598cc2
[ "BSD-3-Clause" ]
null
null
null
ComRISB/pyextern/pymatgen/pymatgen/analysis/tests/test_substrate_analyzer.py
comscope/Comsuite
b80ca9f34c519757d337487c489fb655f7598cc2
[ "BSD-3-Clause" ]
11
2019-06-05T02:57:55.000Z
2021-12-29T02:54:25.000Z
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ TODO: Modify unittest doc. """ __author__ = "Shyam Dwaraknath" __copyright__ = "Copyright 2016, The Materials Project" __version__ = "0.1" __maintainer__ ...
34.619048
89
0.58425
471d10b21018df3914d9e28ce5336760cea97b0e
2,041
py
Python
examples/elliptic_inverse_field.py
jeremyyu8/deepxde
f3ded90f9cc11521f9e539aef567524c6ce7cea1
[ "Apache-2.0" ]
2
2021-05-07T03:49:12.000Z
2021-08-17T16:14:25.000Z
examples/elliptic_inverse_field.py
jeremyyu8/deepxde
f3ded90f9cc11521f9e539aef567524c6ce7cea1
[ "Apache-2.0" ]
null
null
null
examples/elliptic_inverse_field.py
jeremyyu8/deepxde
f3ded90f9cc11521f9e539aef567524c6ce7cea1
[ "Apache-2.0" ]
1
2022-02-25T05:21:36.000Z
2022-02-25T05:21:36.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import deepxde as dde import matplotlib.pyplot as plt import numpy as np from deepxde.backend import tf # generate num equally-spaced points from -1 to 1 def gen_traindata(num): xvals = np.linspace(-1, 1,...
26.506494
88
0.611955
f7313f100d4294fe5183c05e8c3ad109ceb0c790
16,944
py
Python
pandas/tests/indexes/ranges/test_range.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2021-06-17T12:54:33.000Z
2021-06-17T12:54:33.000Z
pandas/tests/indexes/ranges/test_range.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/indexes/ranges/test_range.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest from pandas.core.dtypes.common import ensure_platform_int import pandas as pd from pandas import ( Float64Index, Index, Int64Index, RangeIndex, ) import pandas._testing as tm from pandas.tests.indexes.test_numeric import Numeric # aliases to make some tests easier to ...
31.61194
86
0.578435
bf24b450b511b172b3f9ce347050cc207ccd7f8a
1,856
py
Python
pos_bahrain/api/item.py
hafeesk/pos_bahrain
aa00fb25bb2146fcfad9274aa154946d3174d8b0
[ "MIT" ]
null
null
null
pos_bahrain/api/item.py
hafeesk/pos_bahrain
aa00fb25bb2146fcfad9274aa154946d3174d8b0
[ "MIT" ]
null
null
null
pos_bahrain/api/item.py
hafeesk/pos_bahrain
aa00fb25bb2146fcfad9274aa154946d3174d8b0
[ "MIT" ]
1
2021-09-04T11:08:13.000Z
2021-09-04T11:08:13.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import frappe def _groupby(key, list_of_dicts): from itertools import groupby from operator import itemgetter keywise = {} for k, v in groupby( sorted(list_of_dicts, key=itemgetter(key)), itemgetter(key), ): k...
22.634146
75
0.554418
c15925f13593bc829c583440a06f445e29dfa2e5
3,017
py
Python
lib/all_scripts/file_tools.py
jkaessens/gwas-assoc
1053c94222701f108362e33c99155cfc148f4ca2
[ "MIT" ]
null
null
null
lib/all_scripts/file_tools.py
jkaessens/gwas-assoc
1053c94222701f108362e33c99155cfc148f4ca2
[ "MIT" ]
null
null
null
lib/all_scripts/file_tools.py
jkaessens/gwas-assoc
1053c94222701f108362e33c99155cfc148f4ca2
[ "MIT" ]
null
null
null
import os import os.path from misc_tools import * def ensure_dir_exists_for_file(path_to_file): """ checks if dir of a file (full path) exists and if not creates it """ ap = os.path.dirname(os.path.abspath(os.path.expanduser(path_to_file))) if os.path.exists(ap): if not ...
21.246479
115
0.680146
97ae2695cef8f8355f7529c7e34b3ff4de575fe4
1,613
py
Python
setup.py
rookielxy/nvidia-htop
dfbf78c28b440b247c5e8dd048ec950dd507c77d
[ "BSD-3-Clause" ]
null
null
null
setup.py
rookielxy/nvidia-htop
dfbf78c28b440b247c5e8dd048ec950dd507c77d
[ "BSD-3-Clause" ]
null
null
null
setup.py
rookielxy/nvidia-htop
dfbf78c28b440b247c5e8dd048ec950dd507c77d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup import pathlib here = pathlib.Path(__file__).parent.resolve() # Get the long description from the README file long_description = (here / 'README.md').read_text(encoding='utf-8') setup(name='nvidia-htop', version='1.0.3', description='A tool for enrichi...
29.87037
69
0.608184
4e5b164a8051703f87ac87f991edb7e4fa5b73c0
22,775
py
Python
Lib/objc/_CoreDuet.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
701
2018-10-22T11:54:09.000Z
2022-03-31T14:39:30.000Z
Lib/objc/_CoreDuet.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
229
2018-10-24T09:15:31.000Z
2021-12-24T16:51:37.000Z
Lib/objc/_CoreDuet.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
131
2018-11-25T18:33:03.000Z
2022-03-24T03:18:07.000Z
""" Classes from the 'CoreDuet' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None _DKSyncCoordinatorLogging = _Class("_DKSyncCoordinatorLoggi...
51.065022
87
0.855851
bd79794a6debaafa31d8de1cd0dc02ca46919297
246
py
Python
groupby_index.test.py
vi117/my-nsmc-study
f0658bae31fc560c3dbce5800dda8e9aff7bc79f
[ "MIT-0" ]
null
null
null
groupby_index.test.py
vi117/my-nsmc-study
f0658bae31fc560c3dbce5800dda8e9aff7bc79f
[ "MIT-0" ]
null
null
null
groupby_index.test.py
vi117/my-nsmc-study
f0658bae31fc560c3dbce5800dda8e9aff7bc79f
[ "MIT-0" ]
null
null
null
import unittest from groupby_index import * class Test(unittest.TestCase): def test_padding_array(self): self.assertEqual([*map(lambda x:[*x],groupby_index([1,2,3,4],2))],[[1,2],[3,4]]) if __name__ == '__main__': unittest.main()
27.333333
88
0.670732
449c142c90b87c84999cd49a9ec13a6556f20651
21,892
py
Python
Tests/test_SeqRecord.py
pragyabansal02/biopython
b2cf2be5dd7dd2869af0fe8a5e1f92e0f6b0b493
[ "BSD-3-Clause" ]
2
2019-10-25T18:20:34.000Z
2019-10-28T15:26:40.000Z
Tests/test_SeqRecord.py
pragyabansal02/biopython
b2cf2be5dd7dd2869af0fe8a5e1f92e0f6b0b493
[ "BSD-3-Clause" ]
null
null
null
Tests/test_SeqRecord.py
pragyabansal02/biopython
b2cf2be5dd7dd2869af0fe8a5e1f92e0f6b0b493
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2009-2017 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """SeqFeature related tests for SeqRecord objects from Bio.SeqIO. Initially this takes matc...
45.138144
106
0.60497
d40526058594481ae81398ae323b5c3603247bbc
2,943
py
Python
vespene/workers/ssh_agent.py
Conan-Kudo/vespene
9e9977523f45586e1326ccd77d8cc0cb10591a07
[ "Apache-2.0" ]
680
2018-10-29T12:12:10.000Z
2019-04-27T09:52:58.000Z
vespene/workers/ssh_agent.py
Conan-Kudo/vespene
9e9977523f45586e1326ccd77d8cc0cb10591a07
[ "Apache-2.0" ]
110
2018-10-29T12:33:34.000Z
2019-02-14T02:31:43.000Z
vespene/workers/ssh_agent.py
Conan-Kudo/vespene
9e9977523f45586e1326ccd77d8cc0cb10591a07
[ "Apache-2.0" ]
92
2018-10-29T12:21:12.000Z
2019-06-08T11:08:08.000Z
# Copyright 2018, Michael DeHaan LLC # License: Apache License Version 2.0 # ------------------------------------------------------------------------- # ssh_agent.py - Vespene workers are run wrapped by 'ssh-agent' processes # and the workers can use SSH keys configured per project to do SCM checkouts # or use SS...
34.623529
118
0.571526
60da9f19bc559026c8a2cb0e1ca0732442ddf6a5
8,991
py
Python
RUN_data_analysis.py
Beat98/rl-ion-trap-tutorial
ea119d710fb01d7420e20c1d8947086f6ab7c770
[ "MIT" ]
null
null
null
RUN_data_analysis.py
Beat98/rl-ion-trap-tutorial
ea119d710fb01d7420e20c1d8947086f6ab7c770
[ "MIT" ]
null
null
null
RUN_data_analysis.py
Beat98/rl-ion-trap-tutorial
ea119d710fb01d7420e20c1d8947086f6ab7c770
[ "MIT" ]
null
null
null
import time import csv import matplotlib as mpl import numpy as np import matplotlib.pyplot as plt import pandas as pd height = 1080 aspect = 4 / 3 dpi = 200 mpl.rcParams.update({ 'text.usetex': False, 'font.family': 'serif', 'font.serif': 'cmr10', 'mathtext.fontset': 'cm', 'font.family': 'STIXG...
33.177122
162
0.574018
ed07df8b479bc8cae4152a85b925812ad88ea0b4
1,957
py
Python
youtube_discussion_tree_api/_http.py
quimpm/youtube_discussion_tree
e7e457df673891f9c70495c28ca7d718f196bede
[ "MIT" ]
13
2021-05-20T13:13:43.000Z
2021-06-21T18:33:44.000Z
youtube_discussion_tree_api/_http.py
quimpm/youtube_discussion_tree
e7e457df673891f9c70495c28ca7d718f196bede
[ "MIT" ]
null
null
null
youtube_discussion_tree_api/_http.py
quimpm/youtube_discussion_tree
e7e457df673891f9c70495c28ca7d718f196bede
[ "MIT" ]
null
null
null
import requests from youtube_transcript_api import YouTubeTranscriptApi from youtube_transcript_api.formatters import TextFormatter from .utils import YoutubeDataApiOperations from youtube_discussion_tree_api._errors import NoEnglishTranscription def _get_video_transcription(video_id): try: transcript = Yo...
39.938776
101
0.713337
229a76baf2f4f29bff41b0d4de3075492ff15996
396
py
Python
dp-search/tests/base.py
flaxandteal/dp-search-app
eecdd61435d8665ea18c9f084bfa6a3c23b00221
[ "MIT" ]
null
null
null
dp-search/tests/base.py
flaxandteal/dp-search-app
eecdd61435d8665ea18c9f084bfa6a3c23b00221
[ "MIT" ]
null
null
null
dp-search/tests/base.py
flaxandteal/dp-search-app
eecdd61435d8665ea18c9f084bfa6a3c23b00221
[ "MIT" ]
3
2018-08-12T06:43:04.000Z
2021-12-20T12:54:16.000Z
import unittest import abc # Nosetests will take care of sys.path for this import from server.app import create_app app = create_app() class BaseTest(unittest.TestCase): __metaclass__ = abc.ABCMeta # Abstract class def setUp(self): self.app = app self.app_context = self.app.app_context() ...
22
54
0.694444
4bca2224bb10067e06812c68d7a38e46ef03d72e
2,956
py
Python
engine/omega_engine/backends/opengl/opengl_core/components/entity.py
jadsonlucio/Opengl-CG-Project
47b50bf93b8d3a1ccef1f41f22ed3327d9496b8c
[ "MIT" ]
null
null
null
engine/omega_engine/backends/opengl/opengl_core/components/entity.py
jadsonlucio/Opengl-CG-Project
47b50bf93b8d3a1ccef1f41f22ed3327d9496b8c
[ "MIT" ]
3
2021-06-08T20:54:18.000Z
2022-03-12T00:13:46.000Z
engine/omega_engine/backends/opengl/opengl_core/components/entity.py
jadsonlucio/Opengl-CG-Project
47b50bf93b8d3a1ccef1f41f22ed3327d9496b8c
[ "MIT" ]
null
null
null
import ctypes import numpy as np from OpenGL.GL import * from omega_engine.core import load_obj_data from omega_engine.core import MatrixModel class Entity(): def __init__(self, vertices, vertex_format, indices, texture=None, model=None, draw_mode=GL_TRIANGLES): self.draw_mode = draw_mode self.ve...
33.977011
107
0.657984
cf9594c02c942cadb4c3a7862d9adffc5a3335a1
318
py
Python
crawling_scraping/RSS_xml_scraping/scrape_rss_by_feedparser.py
litteletips/crawling_scraping-scrapy_tool
6d70b4d2a91f2d2bebcc5266ed43ad9be4723bc0
[ "MIT" ]
null
null
null
crawling_scraping/RSS_xml_scraping/scrape_rss_by_feedparser.py
litteletips/crawling_scraping-scrapy_tool
6d70b4d2a91f2d2bebcc5266ed43ad9be4723bc0
[ "MIT" ]
16
2021-03-19T09:44:52.000Z
2022-03-12T00:22:14.000Z
crawling_scraping/RSS_xml_scraping/scrape_rss_by_feedparser.py
litteletips/crawling_scraping
6d70b4d2a91f2d2bebcc5266ed43ad9be4723bc0
[ "MIT" ]
null
null
null
# feedparserを使ったRSSスクレイピング # はてなブックマークのRSSからスクレイピングする # 実行方法 # python scrape_rss_by_lxml.py import feedparser # はてなブックマークの人気エントリー(「テクノロジー」カテゴリ)のRSSを読み込む。 d = feedparser.parse('http://b.hatena.ne.jp/hotentry/it.rss') # すべての要素について処理を繰り返す。 for entry in d.entries: print(entry.link, entry.title) # URLとタイトルを出力する。
21.2
61
0.773585
29f18e4c5d42a39102bd534dcba21d9d79bc3aa7
1,523
py
Python
src/frontend/templatehelpers/templatetags/custom_formatting.py
katago/katago-server
04b1d565370fef8fec16f45a272b0894a2abc60d
[ "MIT" ]
27
2020-05-03T11:01:27.000Z
2022-03-17T05:33:10.000Z
src/frontend/templatehelpers/templatetags/custom_formatting.py
katago/katago-server
04b1d565370fef8fec16f45a272b0894a2abc60d
[ "MIT" ]
54
2020-05-09T01:18:41.000Z
2022-01-22T10:31:15.000Z
src/frontend/templatehelpers/templatetags/custom_formatting.py
katago/katago-server
04b1d565370fef8fec16f45a272b0894a2abc60d
[ "MIT" ]
9
2020-09-29T11:31:32.000Z
2022-03-09T01:37:50.000Z
from django import template register = template.Library() # Peformance hack for converting times to a fixed ISO-like format noticeably faster # than strftime, which has to handle a lot of other cases. @register.filter(expects_localtime=False) def isotimestr(value): return "{}-{:02d}-{:02d} {:02d}:{:02d}:{:02d} {...
33.108696
98
0.709783
2839bbf6a6953ca38575d54ccac8a20d775b8982
6,835
py
Python
bindings/python/ensmallen_graph/datasets/string/caldicellulosiruptorhydrothermalis.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/caldicellulosiruptorhydrothermalis.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/caldicellulosiruptorhydrothermalis.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Caldicellulosiruptor hydrothermalis. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: D...
35.78534
223
0.710022
4b447ffb9badde1ed2daf40e686b67350be6a8e5
883
py
Python
doc/figures/nodes-rect-cornerRadius.py
johnnovak/twyg
d125d651e2d737f0825a9be948b5c4d6a202d3da
[ "MIT" ]
9
2016-01-07T04:17:38.000Z
2021-07-30T09:48:38.000Z
doc/figures/nodes-rect-cornerRadius.py
johnnovak/twyg
d125d651e2d737f0825a9be948b5c4d6a202d3da
[ "MIT" ]
null
null
null
doc/figures/nodes-rect-cornerRadius.py
johnnovak/twyg
d125d651e2d737f0825a9be948b5c4d6a202d3da
[ "MIT" ]
2
2017-05-25T13:34:54.000Z
2017-09-21T21:34:39.000Z
import os, sys from fig import * config = r""" [layout] style layout [node] style rect fontName $FONTNAME fontSize $FONTSIZE textBaselineCorrection $BASELINE_CORR strokeWidth 3 roundingStyle arc ...
19.195652
45
0.483579
761e5e0f66954f4a2ad2a734b0e41ab678fb001d
2,831
py
Python
examples/fit_rhodopsins.py
carbonscott/helix
e2ee6e1293cae4f0bd1220ed5a41268d20a095db
[ "MIT" ]
null
null
null
examples/fit_rhodopsins.py
carbonscott/helix
e2ee6e1293cae4f0bd1220ed5a41268d20a095db
[ "MIT" ]
null
null
null
examples/fit_rhodopsins.py
carbonscott/helix
e2ee6e1293cae4f0bd1220ed5a41268d20a095db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys sys.path.insert(0, "..") ## sys.path.insert(0, "/home/scott/Dropbox/codes/helix") from loaddata import load_xlsx import pyrotein as pr import numpy as np import helix import os import multiprocessing as mp # Specify chains to process... fl_chain = "chains.com...
28.31
86
0.485341
cbdd7c8656d3c0a4d0baaa1dcf68204165cd90b3
1,489
py
Python
setup.py
esloch/toki
8f92d464137839f6883e13b30357978e17c5a46e
[ "Apache-2.0" ]
null
null
null
setup.py
esloch/toki
8f92d464137839f6883e13b30357978e17c5a46e
[ "Apache-2.0" ]
null
null
null
setup.py
esloch/toki
8f92d464137839f6883e13b30357978e17c5a46e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import find_packages, setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [] setup_requirements = [ 'pytest...
27.072727
61
0.63734
552e9adbab30cd8e6fe2110b17595420612c7503
4,362
py
Python
sources/lcd_i2c.py
fxmartin/fxmartin.github.io
cb5d7f579f8fa0c04ebc78657b3ad684ae3e65b8
[ "MIT" ]
null
null
null
sources/lcd_i2c.py
fxmartin/fxmartin.github.io
cb5d7f579f8fa0c04ebc78657b3ad684ae3e65b8
[ "MIT" ]
null
null
null
sources/lcd_i2c.py
fxmartin/fxmartin.github.io
cb5d7f579f8fa0c04ebc78657b3ad684ae3e65b8
[ "MIT" ]
null
null
null
#!/usr/bin/python #-------------------------------------- # ___ ___ _ ____ # / _ \/ _ \(_) __/__ __ __ # / , _/ ___/ /\ \/ _ \/ // / # /_/|_/_/ /_/___/ .__/\_, / # /_/ /___/ # # lcd_i2c.py # LCD test script using I2C backpack. # Supports 16x2 and 20x4 screens. # # Author : FX, mail@fxmarti...
28.697368
87
0.676525
fb8d5f7c1e3d7dde49d5b660bd517f3dece22b9a
3,173
py
Python
src/python/grpcio/grpc/framework/foundation/callable_util.py
benjaminp/grpc
dfb1a0f20624417bff408a14b12a23713085b999
[ "Apache-2.0" ]
1
2020-07-05T06:10:21.000Z
2020-07-05T06:10:21.000Z
src/python/grpcio/grpc/framework/foundation/callable_util.py
benjaminp/grpc
dfb1a0f20624417bff408a14b12a23713085b999
[ "Apache-2.0" ]
3
2020-03-23T18:01:51.000Z
2021-03-19T23:15:15.000Z
src/python/grpcio/grpc/framework/foundation/callable_util.py
benjaminp/grpc
dfb1a0f20624417bff408a14b12a23713085b999
[ "Apache-2.0" ]
1
2021-11-26T05:29:58.000Z
2021-11-26T05:29:58.000Z
# Copyright 2015 gRPC 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 writing...
32.377551
80
0.710369
8c34b50e93314c34214fc67a5e86534f34ce79c0
9,290
py
Python
tests/regressiontests/queries/models.py
graingert/django
784d0c261c76535dc760bc8d76793d92f35c1513
[ "BSD-3-Clause" ]
1
2020-08-08T01:55:00.000Z
2020-08-08T01:55:00.000Z
tests/regressiontests/queries/models.py
graingert/django
784d0c261c76535dc760bc8d76793d92f35c1513
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/queries/models.py
graingert/django
784d0c261c76535dc760bc8d76793d92f35c1513
[ "BSD-3-Clause" ]
null
null
null
""" Various complex queries that have been problematic in the past. """ from __future__ import unicode_literals import threading from django.db import models class DumbCategory(models.Model): pass class ProxyCategory(DumbCategory): class Meta: proxy = True class NamedCategory(DumbCategory): na...
25.805556
83
0.689774
90720cdd3a4091cd42ed2ffb57c714ad70c2f31b
1,880
py
Python
tests/ip_messaging/test_channels.py
quippp/twilio-python
22b84cdfd19a6b1bde84350053870a7c507af410
[ "MIT" ]
1
2020-01-29T23:39:15.000Z
2020-01-29T23:39:15.000Z
tests/ip_messaging/test_channels.py
quippp/twilio-python
22b84cdfd19a6b1bde84350053870a7c507af410
[ "MIT" ]
1
2016-05-26T21:39:12.000Z
2016-05-26T21:39:14.000Z
v/lib/python2.7/site-packages/tests/ip_messaging/test_channels.py
josh6beasttt/HangWithFriends
0c5113bf1203190364d4922754c21eb5d87a5c25
[ "Apache-2.0" ]
2
2019-05-19T06:02:26.000Z
2020-12-23T11:27:20.000Z
import unittest from mock import patch, Mock from twilio.rest.resources.ip_messaging import Channels, Channel from tests.tools import create_mock_json BASE_URI = "https://ip-messaging.twilio.com/v1/Services/ISxxx" ACCOUNT_SID = "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" AUTH = (ACCOUNT_SID, "token") CHANNEL_SID = "CHaaaaaaa...
34.181818
85
0.660106
f617e67960172809461f2eeda539f1ce0c903b53
5,654
py
Python
tests/test_psi.py
benranderson/uhb
a0169cfae587384e96c628b82e02667537ad00b6
[ "MIT" ]
null
null
null
tests/test_psi.py
benranderson/uhb
a0169cfae587384e96c628b82e02667537ad00b6
[ "MIT" ]
null
null
null
tests/test_psi.py
benranderson/uhb
a0169cfae587384e96c628b82e02667537ad00b6
[ "MIT" ]
null
null
null
"""Tests for pipe-soil interaction module.""" import pytest from uhb import psi @pytest.fixture(params=[ { "D_o": 0.508, "gamma": 8000, "c": 0, "h": 4.725, "psi_s": 35, "soil_type": "dense sand", "f": 0.67, "H": 4.979, "Nqv": 7.796, ...
25.7
96
0.586664
ca5f4f802e63b1f083687d008c8eab8e48750ad6
1,656
py
Python
test/helpers/raw_package_helpers.py
RobertWilbrandt/bm257s
379ced4830a122557d928accf66cc47f343768ea
[ "BSD-3-Clause" ]
2
2021-02-21T22:10:53.000Z
2022-01-04T15:41:37.000Z
test/helpers/raw_package_helpers.py
RobertWilbrandt/bm257s
379ced4830a122557d928accf66cc47f343768ea
[ "BSD-3-Clause" ]
null
null
null
test/helpers/raw_package_helpers.py
RobertWilbrandt/bm257s
379ced4830a122557d928accf66cc47f343768ea
[ "BSD-3-Clause" ]
null
null
null
"""Helper methods for creating and checking raw data packages""" from bm257s.package_reader import Symbol # Example from "spec" that should read "AC 513.6V" EXAMPLE_RAW_PKG = b"\x02\x1A\x20\x3C\x47\x50\x6A\x78\x8F\x9F\xA7\xB0\xC0\xD0\xE5" EXAMPLE_RAW_PKG_SYMBOLS = {Symbol.AUTO, Symbol.AC, Symbol.VOLT, Symbol.SCALE} E...
30.666667
86
0.683575
7f78ad152c275ecdbf83b15017a1cb14ccbb5c65
3,410
py
Python
phantomcli/tests/test_image.py
the16thpythonist/phantom-cli
921588dda66bf84bf79569493f4e4312b59cd56d
[ "MIT" ]
1
2021-11-24T01:50:36.000Z
2021-11-24T01:50:36.000Z
phantomcli/tests/test_image.py
the16thpythonist/phantom-cli
921588dda66bf84bf79569493f4e4312b59cd56d
[ "MIT" ]
1
2021-11-15T17:48:43.000Z
2021-11-15T17:48:43.000Z
phantomcli/tests/test_image.py
the16thpythonist/phantom-cli
921588dda66bf84bf79569493f4e4312b59cd56d
[ "MIT" ]
1
2020-01-13T17:26:14.000Z
2020-01-13T17:26:14.000Z
# Standard library import import os from unittest import TestCase # third party imports import imageio import numpy as np # Package import from phantomcli.image import PhantomImage class TestPhantomImage(TestCase): FOLDER_PATH = os.path.dirname(os.path.abspath(__file__)) IMAGE_PATH = os.path.join(FOLDER_P...
44.285714
114
0.726979
49a92c3d0d46571d345f81e1679852ab05bbb304
13,087
py
Python
src/data/decoy_efficacy.py
sidhikabalachandar/lig_clash_score
449bac16a7c2b9779e7cd51ff17eb5e41be6ff99
[ "FTL" ]
null
null
null
src/data/decoy_efficacy.py
sidhikabalachandar/lig_clash_score
449bac16a7c2b9779e7cd51ff17eb5e41be6ff99
[ "FTL" ]
null
null
null
src/data/decoy_efficacy.py
sidhikabalachandar/lig_clash_score
449bac16a7c2b9779e7cd51ff17eb5e41be6ff99
[ "FTL" ]
null
null
null
""" The purpose of this code is to first create the raw directory folder and include the following files starting protein receptor starting ligand target ligand glide pose viewer file Then the top glide poses are added Then the decoys are created It can be run on sherlock using $ $SCHRODINGER/run python3 decoy_effic...
50.334615
364
0.622373