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
70ed4d4893404d136e150e76527e68e303195838
5,871
py
Python
substrate_uptake_kinetics.py
Chaowu88/zymomonas_modeling
90d0c9c3b081c1e2421321c77d3ddffa2ea02bba
[ "MIT" ]
null
null
null
substrate_uptake_kinetics.py
Chaowu88/zymomonas_modeling
90d0c9c3b081c1e2421321c77d3ddffa2ea02bba
[ "MIT" ]
null
null
null
substrate_uptake_kinetics.py
Chaowu88/zymomonas_modeling
90d0c9c3b081c1e2421321c77d3ddffa2ea02bba
[ "MIT" ]
null
null
null
#!/usr/bin/env pyhton # -*- coding: UTF-8 -*- __author__ = 'Chao Wu' __date__ = '05/25/2020' __version__ = '1.0' r''' This script estimates the kinetic parameters of glucose facilitator protein (glf) which transports both glucose and xylose with competitive inhibition of each other Usage: python path\to\substrate...
31.395722
165
0.648612
39d06f11ff733db3b39a5406178f2f84020a092d
1,916
py
Python
source/plot_theta_time.py
raj-krishnan/SDES_project_pendulum_with_friction
6f24614914d58d8912346b43bd7e1faa925574f8
[ "Apache-2.0" ]
null
null
null
source/plot_theta_time.py
raj-krishnan/SDES_project_pendulum_with_friction
6f24614914d58d8912346b43bd7e1faa925574f8
[ "Apache-2.0" ]
null
null
null
source/plot_theta_time.py
raj-krishnan/SDES_project_pendulum_with_friction
6f24614914d58d8912346b43bd7e1faa925574f8
[ "Apache-2.0" ]
null
null
null
import numpy from matplotlib import pyplot as plt from matplotlib import lines as mlines from oscillator import Oscillator def plot_underdamped_pendulum(): pendulum = Oscillator(alpha=0.8, radius=1) time_steps = 400 time_max = 10.0 time = numpy.linspace(0, time_max, time_steps + 1) plt.axes(xlim...
33.034483
77
0.682672
233f929ef4916a2646b4a6885abdd38c1ed77ec1
533
py
Python
pythontutorials/Udacity/CS101/Lesson 05 - How to Repeat/Q19-More Friends.py
JoseALermaIII/python-tutorials
9d6cb78beec0bb55e27c49da1217317ba4d5f4fc
[ "MIT" ]
2
2017-04-20T02:57:19.000Z
2018-10-12T20:15:47.000Z
pythontutorials/Udacity/CS101/Lesson 05 - How to Repeat/Q19-More Friends.py
JoseALermaIII/python-tutorials
9d6cb78beec0bb55e27c49da1217317ba4d5f4fc
[ "MIT" ]
8
2021-03-18T21:50:16.000Z
2022-03-11T23:38:01.000Z
pythontutorials/Udacity/CS101/Lesson 05 - How to Repeat/Q19-More Friends.py
JoseALermaIII/python-tutorials
9d6cb78beec0bb55e27c49da1217317ba4d5f4fc
[ "MIT" ]
3
2018-08-30T20:30:50.000Z
2022-01-18T13:40:51.000Z
# Define a procedure, is_friend, that takes # a string as its input, and returns a # Boolean indicating if the input string # is the name of a friend. Assume # I am friends with everyone whose name # starts with either 'D' or 'N', but no one # else. You do not need to check for # lower case 'd' or 'n' def is_friend(na...
21.32
43
0.649156
bc9902e6a5d99a78c9befe2d892f997baaf50bc7
17,948
py
Python
neutron/services/qos/qos_plugin.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/services/qos/qos_plugin.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/services/qos/qos_plugin.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright (c) 2015 Red Hat Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
40.790909
79
0.657622
4d47bff40784994c85806fe1fe3bf479090628d9
13,352
py
Python
models/mobile_net_v3.py
chuliuT/MobileNet_V3_SSD.pytorch
f28e38fd197e8eff72346dc70f2b8430111edac1
[ "MIT" ]
4
2020-04-01T02:17:04.000Z
2022-01-16T07:17:28.000Z
models/mobile_net_v3.py
chuliuT/MobileNet_V3_SSD.pytorch
f28e38fd197e8eff72346dc70f2b8430111edac1
[ "MIT" ]
null
null
null
models/mobile_net_v3.py
chuliuT/MobileNet_V3_SSD.pytorch
f28e38fd197e8eff72346dc70f2b8430111edac1
[ "MIT" ]
5
2020-01-07T03:52:46.000Z
2020-05-17T12:36:11.000Z
import torch import torch.nn as nn import torch.nn.functional as F # from https://github.com/kuan-wang/pytorch-mobilenet-v3/blob/master/mobilenetv3.py # modified by chuliuT # date:2019.12.9 __all__ = ['MobileNetV3', 'mobilenetv3'] def conv_bn(inp, oup, stride, conv_layer=nn.Conv2d, norm_layer=nn.BatchNorm2d, nlin_la...
37.296089
159
0.566058
7754e78d2d6ce6119ccd11287e2263ceb3f883d2
488
py
Python
actioneer/errors.py
vbe0201/Actioneer
96df066ea40d2a51b1abb4bde2504af23c2c7c82
[ "MIT" ]
null
null
null
actioneer/errors.py
vbe0201/Actioneer
96df066ea40d2a51b1abb4bde2504af23c2c7c82
[ "MIT" ]
null
null
null
actioneer/errors.py
vbe0201/Actioneer
96df066ea40d2a51b1abb4bde2504af23c2c7c82
[ "MIT" ]
null
null
null
class ConvertingError(Exception): """Raised when converting a argument failed""" class NoClosingQuote(Exception): """No closing quote on your command arguments""" class NoCommandFound(Exception): """No command has been found with that name""" class AlreadyAActionWithThatName(Exception): """When A...
23.238095
68
0.717213
eb37818c34fafcdd99d543c455e6d37b72513743
2,967
py
Python
tests/utils/test_experiment.py
google/timecast
11f01d81e240d38ff194df54bbf219e6367f3cf5
[ "Apache-2.0" ]
11
2020-07-16T15:22:38.000Z
2021-09-23T01:08:19.000Z
tests/utils/test_experiment.py
google/timecast
11f01d81e240d38ff194df54bbf219e6367f3cf5
[ "Apache-2.0" ]
3
2020-08-26T00:26:37.000Z
2021-01-02T19:29:21.000Z
tests/utils/test_experiment.py
google/timecast
11f01d81e240d38ff194df54bbf219e6367f3cf5
[ "Apache-2.0" ]
1
2020-10-13T17:07:10.000Z
2020-10-13T17:07:10.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
24.725
81
0.601618
6f42e35d957f987764a9e74c3371506cb7cc89d9
1,761
py
Python
hca/upload/cli/select_command.py
mshadbolt/dcp-cli
4d844f3c3a299162c68e25e9ffc6ffe7e8bf7ce8
[ "MIT" ]
null
null
null
hca/upload/cli/select_command.py
mshadbolt/dcp-cli
4d844f3c3a299162c68e25e9ffc6ffe7e8bf7ce8
[ "MIT" ]
null
null
null
hca/upload/cli/select_command.py
mshadbolt/dcp-cli
4d844f3c3a299162c68e25e9ffc6ffe7e8bf7ce8
[ "MIT" ]
null
null
null
from hca.upload import UploadException, UploadAreaURI, UploadConfig from .common import UploadCLICommand class SelectCommand(UploadCLICommand): """ Select upload area to which you wish to upload files. """ @classmethod def add_parser(cls, upload_subparsers): select_parser = upload_subparse...
36.6875
84
0.626349
60c5320df00de17ef04dd01719df6c02f50b6f02
165
py
Python
wasm/webapi/status.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
8
2019-04-09T21:13:05.000Z
2021-11-23T17:25:18.000Z
wasm/webapi/status.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
21
2021-03-31T19:48:22.000Z
2022-03-12T00:24:53.000Z
wasm/webapi/status.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
11
2019-04-12T01:20:16.000Z
2021-11-23T17:25:02.000Z
def main(request, response): status = int(request.GET["status"]) module = b"\0asm\1\0\0\0" return status, [("Content-Type", "application/wasm")], module
33
65
0.642424
10a1dc879a279ae21acfed4d6161e14472ade388
2,860
py
Python
scripts/gen_tbtf_outputs.py
duncanmmacleod/feedstock-outputs
5f069f6dec1f62b9053f3e2b84a1ff3bd71f646d
[ "BSD-3-Clause" ]
null
null
null
scripts/gen_tbtf_outputs.py
duncanmmacleod/feedstock-outputs
5f069f6dec1f62b9053f3e2b84a1ff3bd71f646d
[ "BSD-3-Clause" ]
12
2020-03-06T23:06:16.000Z
2021-12-10T14:36:48.000Z
scripts/gen_tbtf_outputs.py
duncanmmacleod/feedstock-outputs
5f069f6dec1f62b9053f3e2b84a1ff3bd71f646d
[ "BSD-3-Clause" ]
9
2020-06-30T15:55:03.000Z
2021-12-09T19:28:17.000Z
import sys import pprint import requests import json from conda_forge_tick.utils import load_graph # 1. load the graph gx = load_graph() # 2. read the nodes with open("../feedstock-outputs/scripts/tbtf_nodes.txt", "r") as fp: tbtf_nodes = [n.strip() for n in fp.readlines()] # 3. add things that seem to be misse...
28.6
75
0.554545
98a99e3cd3a01f744c79f77faae87f39fe12070d
14,713
py
Python
tests/test_sql_to_python.py
nickolay/ctds
50cd3bb993c7bea7a8a13619fcee367c6e389460
[ "MIT" ]
null
null
null
tests/test_sql_to_python.py
nickolay/ctds
50cd3bb993c7bea7a8a13619fcee367c6e389460
[ "MIT" ]
null
null
null
tests/test_sql_to_python.py
nickolay/ctds
50cd3bb993c7bea7a8a13619fcee367c6e389460
[ "MIT" ]
null
null
null
from datetime import date, datetime, time from binascii import hexlify, unhexlify from decimal import Decimal import platform import uuid import ctds from .base import TestExternalDatabase from .compat import unichr_, unicode_ class TestSQLToPython(TestExternalDatabase): # pylint: disable=too-many-public-methods ...
28.624514
93
0.413444
dcc0eeb0556460922ec096f696351c2b0bc1dffe
1,142
py
Python
tests/utils.py
greggles/cutadapt
fb3e8f0828c2cb92bfaea69d91ffb539ab24cdd0
[ "MIT" ]
375
2015-01-16T14:04:50.000Z
2022-03-16T02:19:43.000Z
tests/utils.py
greggles/cutadapt
fb3e8f0828c2cb92bfaea69d91ffb539ab24cdd0
[ "MIT" ]
589
2015-03-05T20:06:03.000Z
2022-03-29T22:49:56.000Z
tests/utils.py
greggles/cutadapt
fb3e8f0828c2cb92bfaea69d91ffb539ab24cdd0
[ "MIT" ]
150
2015-02-10T12:19:40.000Z
2022-03-25T05:06:50.000Z
import sys import os.path import subprocess def datapath(path): return os.path.join(os.path.dirname(__file__), 'data', path) def cutpath(path): return os.path.join(os.path.dirname(__file__), 'cut', path) class FilesDifferent(Exception): pass def assert_files_equal(path1, path2, ignore_trailing_space...
24.297872
79
0.608581
16fb19fbea73a10863caa6e5d20b629e41840799
4,820
py
Python
test/programytest/parser/template/node_tests/test_input.py
whackur/chatbot
bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7
[ "MIT" ]
2
2018-06-16T09:32:22.000Z
2019-07-21T13:16:00.000Z
test/programytest/parser/template/node_tests/test_input.py
whackur/chatbot
bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7
[ "MIT" ]
3
2020-07-16T04:00:42.000Z
2021-03-31T18:52:22.000Z
test/programytest/parser/template/node_tests/test_input.py
whackur/chatbot
bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7
[ "MIT" ]
4
2018-06-29T23:50:44.000Z
2020-11-05T08:13:47.000Z
import xml.etree.ElementTree as ET from programy.parser.template.nodes.base import TemplateNode from programy.parser.template.nodes.input import TemplateInputNode from programy.dialog.dialog import Conversation, Question from programytest.parser.base import ParserTestsBaseClass class MockTemplateInputNode(TemplateI...
34.927536
111
0.689419
9712d7814086a89724d5c144fbc68bdff58466ae
23,797
py
Python
riscvmodel/insn.py
bluwireless/riscv-python-model
a5328f44e8ad82dc9bf3d7e4d6d1580ff2d18f2f
[ "MIT" ]
null
null
null
riscvmodel/insn.py
bluwireless/riscv-python-model
a5328f44e8ad82dc9bf3d7e4d6d1580ff2d18f2f
[ "MIT" ]
null
null
null
riscvmodel/insn.py
bluwireless/riscv-python-model
a5328f44e8ad82dc9bf3d7e4d6d1580ff2d18f2f
[ "MIT" ]
null
null
null
# Copyright Stefan Wallentowitz # Licensed under the MIT License, see LICENSE for details. # SPDX-License-Identifier: MIT """ Instructions """ from .isa import * from .variant import * from .model import State @isa("lui", RV32I, opcode=0b0110111) class InstructionLUI(InstructionUType): """ The Load Upper Imme...
35.359584
110
0.67206
3bf87a72438832d4b0d5b9b3dc71ad4e159b810a
2,678
py
Python
shred-1/karatsuba10.py
farallons/shark
ab155b0f9b2ddf71d7cd70bd76f683be51c14f1f
[ "MIT" ]
null
null
null
shred-1/karatsuba10.py
farallons/shark
ab155b0f9b2ddf71d7cd70bd76f683be51c14f1f
[ "MIT" ]
null
null
null
shred-1/karatsuba10.py
farallons/shark
ab155b0f9b2ddf71d7cd70bd76f683be51c14f1f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import os base_dir = os.getcwd() join = os.path.join exists = os.path.exists def main(x, y, algo): if algo: print("algo") product = calculate_product(x,y) else: print("no algo") product = x * y print(product) def digits(a): return ...
21.772358
153
0.544436
b46909d434a1dee5d7ffe00f662fab1babfa05a7
6,366
py
Python
d2go/utils/testing/data_loader_helper.py
apivovarov/d2go
44e410843fb10508c911022a80f15276c76d9e60
[ "Apache-2.0" ]
null
null
null
d2go/utils/testing/data_loader_helper.py
apivovarov/d2go
44e410843fb10508c911022a80f15276c76d9e60
[ "Apache-2.0" ]
null
null
null
d2go/utils/testing/data_loader_helper.py
apivovarov/d2go
44e410843fb10508c911022a80f15276c76d9e60
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import contextlib import itertools import json import os import uuid from d2go.data.datasets import register_dataset_split from d2go.runner import create_runner from detectron2.data import DatasetCatalog, MetadataCatalog fr...
31.205882
88
0.590638
ef360cc877789caa3cb7dbff692a1d1c4c571b86
15,498
py
Python
deploy/determined_deploy/aws/aws.py
ryantd/determined
b4f3be3c1878a9a7fdad4775647018753b39ef21
[ "Apache-2.0" ]
1
2021-03-29T13:39:45.000Z
2021-03-29T13:39:45.000Z
deploy/determined_deploy/aws/aws.py
ZithaChitra/determined
1466d46dfd6abc56ad65d9904d4173ea62cff771
[ "Apache-2.0" ]
null
null
null
deploy/determined_deploy/aws/aws.py
ZithaChitra/determined
1466d46dfd6abc56ad65d9904d4173ea62cff771
[ "Apache-2.0" ]
null
null
null
import sys import time from typing import Any, Dict, List, Optional, Tuple import boto3 import tqdm from botocore.exceptions import ClientError, WaiterError from determined_deploy.aws import constants # Try waiting for stack to delete this many times. We break up the waiting so the delete job # will not fail CI. NUM...
33.044776
97
0.656085
5b998ac6991d1b365b4651cd6198b9eaf9da1bfc
2,252
py
Python
crequest.py
kendricktan/flaskrestful-custom-request
1ffb95d1a9e066c5852879dacdd49d998f6a31e1
[ "MIT" ]
3
2017-06-11T11:53:19.000Z
2021-09-23T20:09:56.000Z
crequest.py
kendricktan/flaskrestful-custom-request
1ffb95d1a9e066c5852879dacdd49d998f6a31e1
[ "MIT" ]
null
null
null
crequest.py
kendricktan/flaskrestful-custom-request
1ffb95d1a9e066c5852879dacdd49d998f6a31e1
[ "MIT" ]
null
null
null
import msgpack from flask import Request, _request_ctx_stack from flask.wrappers import _get_data from werkzeug.exceptions import BadRequest class RequestWithMsgPack(Request): """ Extending on Flask's Request class to support msgpack mimetype """ @property def is_msgpack(self): """ ...
34.646154
92
0.619893
e4fe713c9a4fc6a9f7556d2e3133f1fbc7cbafa1
1,664
py
Python
examples/demo.py
willwx/XDream
ee7022a35e94f00d08fdb1e49ca784fc497740c0
[ "MIT" ]
38
2019-04-19T16:37:37.000Z
2022-02-15T21:42:24.000Z
examples/demo.py
willwx/XDream
ee7022a35e94f00d08fdb1e49ca784fc497740c0
[ "MIT" ]
null
null
null
examples/demo.py
willwx/XDream
ee7022a35e94f00d08fdb1e49ca784fc497740c0
[ "MIT" ]
12
2019-05-01T20:29:26.000Z
2021-04-30T07:49:25.000Z
""" Runs an experiment to maximize activity of a 'neuron,' simulated by a unit in a CNN. Demonstrates a high-level API: `CNNExperiment`, which is designed to simulate an electrophysiology experiment and behaves similarly to `EphysExperiment` """ from pathlib import Path import sys sys.path.append('../xdream') ...
38.697674
104
0.675481
114a9ba4999b275e79957ec7a8cdeb5f134ae4b6
1,422
py
Python
python/updatePermisos.py
maestromark55/bust-radio
d3552304e9e0f551359b3a6b72f0f2bc31e863f5
[ "Apache-2.0" ]
null
null
null
python/updatePermisos.py
maestromark55/bust-radio
d3552304e9e0f551359b3a6b72f0f2bc31e863f5
[ "Apache-2.0" ]
null
null
null
python/updatePermisos.py
maestromark55/bust-radio
d3552304e9e0f551359b3a6b72f0f2bc31e863f5
[ "Apache-2.0" ]
null
null
null
import urllib2 import json import sqlite3 import os from classes.classErrorLog import classErrorLog import sys current_dir = os.path.dirname(os.path.abspath(__file__)) DBpath = os.path.join(current_dir, 'RFID_Lock.sqlite') def updateSQLite(): try: jsonRequest = urllib2.urlopen("http://www.desa-net.com/TO...
32.318182
100
0.531646
cdc4ae4db30e79a4d6ecd1b622870a863e28462e
4,328
py
Python
tc_images/tc_img_torch_trainer/train.py
cabukela/iorek-byrnison
a683d0e07f6de6ca568a0941ced6570feb2a6aa4
[ "Apache-2.0" ]
1
2022-03-18T11:00:18.000Z
2022-03-18T11:00:18.000Z
tc_images/tc_img_torch_trainer/train.py
cabukela/iorek-byrnison
a683d0e07f6de6ca568a0941ced6570feb2a6aa4
[ "Apache-2.0" ]
null
null
null
tc_images/tc_img_torch_trainer/train.py
cabukela/iorek-byrnison
a683d0e07f6de6ca568a0941ced6570feb2a6aa4
[ "Apache-2.0" ]
2
2022-03-18T11:00:21.000Z
2022-03-30T04:08:05.000Z
import os import subprocess import datetime import fire import torch import torch.nn as nn from torch.utils.data import Dataset, DataLoader import pandas as pd import numpy as np from sklearn.preprocessing import StandardScaler class TrainData(Dataset): def __init__(self, X_data, y_data): self.X_data ...
31.136691
112
0.643253
325466ca8f3dfcfcc9dd0436f9a89ca16ede8d45
48,110
py
Python
tests/test_fx.py
va6996/moviepy
60b95c37816413da6bf304e85f8c0ba8e2d2c6e7
[ "MIT" ]
null
null
null
tests/test_fx.py
va6996/moviepy
60b95c37816413da6bf304e85f8c0ba8e2d2c6e7
[ "MIT" ]
null
null
null
tests/test_fx.py
va6996/moviepy
60b95c37816413da6bf304e85f8c0ba8e2d2c6e7
[ "MIT" ]
null
null
null
"""MoviePy video and audio effects tests.""" import decimal import importlib import math import numbers import os import random import sys import cupy as np import pytest from moviepy import ( AudioClip, AudioFileClip, BitmapClip, ColorClip, VideoClip, VideoFileClip, ) from moviepy.audio.fx ...
29.299635
87
0.550613
f43a961310e3ac52654866231f8cfac70589d42d
36,861
py
Python
ckan/ckanext-spatial/ckanext/spatial/model/harvested_metadata.py
lorenzoeusepi77/ckan
3a620e9c81ba1750d12941c02184092d507f71df
[ "Apache-2.0" ]
null
null
null
ckan/ckanext-spatial/ckanext/spatial/model/harvested_metadata.py
lorenzoeusepi77/ckan
3a620e9c81ba1750d12941c02184092d507f71df
[ "Apache-2.0" ]
null
null
null
ckan/ckanext-spatial/ckanext/spatial/model/harvested_metadata.py
lorenzoeusepi77/ckan
3a620e9c81ba1750d12941c02184092d507f71df
[ "Apache-2.0" ]
null
null
null
from lxml import etree import logging log = logging.getLogger(__name__) class MappedXmlObject(object): elements = [] class MappedXmlDocument(MappedXmlObject): def __init__(self, xml_str=None, xml_tree=None): assert (xml_str or xml_tree is not None), 'Must provide some XML in one format or another' ...
38.158385
225
0.581102
bb9a7f20ec0069533f783ef57ff0e95fef68986b
174
py
Python
tacotron/models/__init__.py
mib32/Tacotron-2
f440b1fa41636084c78d2cae7d4c9d23e4a9d871
[ "MIT" ]
2,154
2017-12-28T08:02:58.000Z
2022-03-30T09:14:04.000Z
tacotron/models/__init__.py
mib32/Tacotron-2
f440b1fa41636084c78d2cae7d4c9d23e4a9d871
[ "MIT" ]
481
2018-01-24T08:50:39.000Z
2022-02-14T01:39:00.000Z
tacotron/models/__init__.py
mib32/Tacotron-2
f440b1fa41636084c78d2cae7d4c9d23e4a9d871
[ "MIT" ]
813
2017-12-29T02:15:01.000Z
2022-03-31T15:49:08.000Z
from .tacotron import Tacotron def create_model(name, hparams): if name == 'Tacotron': return Tacotron(hparams) else: raise Exception('Unknown model: ' + name)
19.333333
45
0.695402
13bbbc0bacdbdb747aea6cb03478d9fab53cfa8f
6,485
py
Python
sdk/python/pulumi_aws/secretsmanager/secret_policy.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/secretsmanager/secret_policy.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/secretsmanager/secret_policy.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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 _utilitie...
41.83871
202
0.641326
7bfd06f39e87c395019446aa5d054957b0626892
5,260
py
Python
airflow/api_connexion/exceptions.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
airflow/api_connexion/exceptions.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
airflow/api_connexion/exceptions.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.000Z
# 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...
33.503185
110
0.648099
a8acf84ac542aeeeb76ac2ba2deb4db73a02cc26
7,595
py
Python
netket/optimizer/qgt/qgt_jacobian_dense.py
pesvut/netket
7f19574ddc567748344bb75a4ddd507578d94b0d
[ "Apache-2.0" ]
null
null
null
netket/optimizer/qgt/qgt_jacobian_dense.py
pesvut/netket
7f19574ddc567748344bb75a4ddd507578d94b0d
[ "Apache-2.0" ]
26
2021-08-06T15:27:57.000Z
2022-03-30T16:55:18.000Z
netket/optimizer/qgt/qgt_jacobian_dense.py
pesvut/netket
7f19574ddc567748344bb75a4ddd507578d94b0d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The NetKet 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 ...
32.046414
90
0.63239
f778b0b0bab85f0e3b1bcd83c7c18aad72a567ef
1,598
py
Python
test/test_list_xrp_ripple_transactions_by_block_height_r_data.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
test/test_list_xrp_ripple_transactions_by_block_height_r_data.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
test/test_list_xrp_ripple_transactions_by_block_height_r_data.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
40.974359
484
0.797247
3bf755be2d5efd518be7e3f1a0a9da042cb72a8d
36
py
Python
src/__init__.py
JacksonianDemocracy/url-rewrite-tracer
67398c5daa8f4627ca374a0db717102062f1e658
[ "MIT" ]
null
null
null
src/__init__.py
JacksonianDemocracy/url-rewrite-tracer
67398c5daa8f4627ca374a0db717102062f1e658
[ "MIT" ]
null
null
null
src/__init__.py
JacksonianDemocracy/url-rewrite-tracer
67398c5daa8f4627ca374a0db717102062f1e658
[ "MIT" ]
null
null
null
from .tracer import UrlRewriteTracer
36
36
0.888889
7ab1b0d75428beb014ccba71f433ac5755b55815
1,252
py
Python
Iris_recog/iris.py
Theocrat/Iris
5aaba5dc915f53d148106c0c6bca57e09c548d9c
[ "MIT" ]
null
null
null
Iris_recog/iris.py
Theocrat/Iris
5aaba5dc915f53d148106c0c6bca57e09c548d9c
[ "MIT" ]
null
null
null
Iris_recog/iris.py
Theocrat/Iris
5aaba5dc915f53d148106c0c6bca57e09c548d9c
[ "MIT" ]
null
null
null
import cv2 from PIL import Image from numpy import zeros, arange from matplotlib.pyplot import figure, show from skimage.color import rgb2grey import cv2 as cv from sys import argv from morph import * from imworks import * def iris_detect(fname): img = cv2.imread(fname) orig = zeros(img.shape) for i in range(img...
21.964912
71
0.635783
b06a084812cefc24ac5c06c6faf1e6adff215d59
5,050
py
Python
higl/models.py
junsu-kim97/HIGL
fd8926f850552d032a6692747d1dd030ffc7ac84
[ "MIT" ]
7
2021-11-06T11:13:48.000Z
2022-03-30T23:59:01.000Z
higl/models.py
junsu-kim97/HIGL
fd8926f850552d032a6692747d1dd030ffc7ac84
[ "MIT" ]
1
2021-11-04T13:15:23.000Z
2021-11-04T15:06:01.000Z
higl/models.py
junsu-kim97/HIGL
fd8926f850552d032a6692747d1dd030ffc7ac84
[ "MIT" ]
2
2021-12-19T02:01:30.000Z
2022-01-13T04:08:11.000Z
import torch import torch.nn as nn import torch.nn.functional as F class Actor(nn.Module): def __init__(self, state_dim, goal_dim, action_dim, max_action): super(Actor, self).__init__() self.l1 = nn.Linear(state_dim + goal_dim, 300) self.l2 = nn.Linear(300, 300) self.l3 = nn.Linea...
28.370787
113
0.577426
8be6960de668dc19c349d211c507796db5e6d68e
6,390
py
Python
utils/extract_batch.py
linshoa/siamese-cnn
2194c097c932a605582d2ee9d58ef31bfa83eaff
[ "Apache-2.0" ]
1
2018-10-27T10:03:06.000Z
2018-10-27T10:03:06.000Z
utils/extract_batch.py
linshoa/siamese-cnn
2194c097c932a605582d2ee9d58ef31bfa83eaff
[ "Apache-2.0" ]
null
null
null
utils/extract_batch.py
linshoa/siamese-cnn
2194c097c932a605582d2ee9d58ef31bfa83eaff
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import json from random import shuffle from utils.image_precess import * from utils import config """ for DukeMTMC example: 0001_c2_f0046302.jpg--> {{'id':0001},{location:c2},{time:0046302},} """ name_dir = ...
33.631579
119
0.673709
1eca0a0c9dc3deffe5b9b5c01c84b71468d91ec5
3,109
py
Python
tests/config/test_converter.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
2
2020-09-02T13:46:06.000Z
2020-10-11T16:11:02.000Z
tests/config/test_converter.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
null
null
null
tests/config/test_converter.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
4
2018-10-15T07:08:34.000Z
2019-11-26T01:52:47.000Z
# -*- coding: utf-8 -*- import textwrap from typing import List, Dict, Optional, Union from unittest import TestCase from xTool.config.converter import DictConfigConverter from xTool.codec.yaml_codec import YamlCodec class TestDictConfigConverter(TestCase): def test_unmarshal(self): yaml_config = textwr...
30.480392
99
0.389836
e96227646e6023c38aa7c2e6a8b3f1a46b69b211
2,496
py
Python
tests/actors/test_performance.py
reapler/geckordp
29dab2e6e691954a473e054fa95ba40a3ad10e53
[ "MIT" ]
1
2021-12-24T04:37:02.000Z
2021-12-24T04:37:02.000Z
tests/actors/test_performance.py
jpramosi/geckordp
29dab2e6e691954a473e054fa95ba40a3ad10e53
[ "MIT" ]
1
2021-07-23T13:38:36.000Z
2021-08-07T14:17:54.000Z
tests/actors/test_performance.py
reapler/geckordp
29dab2e6e691954a473e054fa95ba40a3ad10e53
[ "MIT" ]
1
2021-10-31T17:31:35.000Z
2021-10-31T17:31:35.000Z
# pylint: disable=unused-import import pytest import tests.helpers.constants as constants from tests.helpers.utils import * from geckordp.rdp_client import RDPClient from geckordp.actors.root import RootActor from geckordp.actors.descriptors.tab import TabActor from geckordp.actors.performance import PerformanceActor f...
24.23301
69
0.645433
a3d68a86f99cdb0f58b209eaa04840f7e07c2904
127
py
Python
2021/python/tests/test_day17.py
shalgrim/advent-of-code
d3bd1c9f7eeaebff4153f6fd73ef8fc32d2b1ea8
[ "MIT" ]
null
null
null
2021/python/tests/test_day17.py
shalgrim/advent-of-code
d3bd1c9f7eeaebff4153f6fd73ef8fc32d2b1ea8
[ "MIT" ]
null
null
null
2021/python/tests/test_day17.py
shalgrim/advent-of-code
d3bd1c9f7eeaebff4153f6fd73ef8fc32d2b1ea8
[ "MIT" ]
null
null
null
from day17_1 import main as main1 def test_main1(): txt = 'target area: x=20..30, y=-10..-5' assert main1(txt) == 45
18.142857
44
0.622047
094d6b3452d0f18e7ac597b22fa89f0ba391e4b8
865
py
Python
utilities/test_chromosome.py
Platygator/visually-supervised-learning-for-robotic-manipulation
d509bc7a747622dd4d585887ba92f04843e2a531
[ "MIT" ]
1
2021-06-01T18:53:52.000Z
2021-06-01T18:53:52.000Z
utilities/test_chromosome.py
Platygator/visually-supervised-learning-for-robotic-manipulation
d509bc7a747622dd4d585887ba92f04843e2a531
[ "MIT" ]
1
2021-02-04T10:21:49.000Z
2021-02-04T10:21:49.000Z
utilities/test_chromosome.py
Platygator/visually-supervised-learning-for-robotic-manipulation
d509bc7a747622dd4d585887ba92f04843e2a531
[ "MIT" ]
null
null
null
# Implementation to Test Chromosome import os import numpy as np from EvaluateChromosome import evaluateChromosome def testChromosome(x, y, z, inputFile="bestChromosome.npy"): """ Function to test Chromosome Parameters ---------- x : x-position of the Hubert Robot y :...
27.903226
91
0.648555
a4b707b8aaa0b416a5bec6d1bcf0a1cf9bb4b8c6
17,680
py
Python
goemotions/ppca.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
goemotions/ppca.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
goemotions/ppca.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
33.295669
108
0.670023
81c978bb7282a97e03eaf94c47e7d18a842eaf7b
5,823
py
Python
gcn/train.py
NicolasMeseguer/gcn
6323856b5c98e7eb59079479d2e11840e0e04fe0
[ "MIT" ]
null
null
null
gcn/train.py
NicolasMeseguer/gcn
6323856b5c98e7eb59079479d2e11840e0e04fe0
[ "MIT" ]
null
null
null
gcn/train.py
NicolasMeseguer/gcn
6323856b5c98e7eb59079479d2e11840e0e04fe0
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function import time import tensorflow as tf import sys import subprocess from gcn.utils import * from gcn.models import GCN, MLP # Set random seed seed = 123 np.random.seed(seed) tf.set_random_seed(seed) # Settings flags = tf.app.flags FLAGS = flags.FLA...
35.506098
147
0.64417
0037aca82fc46cf766ae1f4c006baf28ac626176
12,709
py
Python
cluster_pack/uploader.py
isabella232/cluster-pack
0052e0e2d37a209f9983bdb8117e423f840dafa0
[ "Apache-2.0" ]
null
null
null
cluster_pack/uploader.py
isabella232/cluster-pack
0052e0e2d37a209f9983bdb8117e423f840dafa0
[ "Apache-2.0" ]
1
2022-02-21T12:33:11.000Z
2022-02-21T12:33:11.000Z
cluster_pack/uploader.py
isabella232/cluster-pack
0052e0e2d37a209f9983bdb8117e423f840dafa0
[ "Apache-2.0" ]
null
null
null
import getpass import hashlib import json import logging import os import sys import pathlib import tempfile from typing import ( Tuple, Dict, Collection, List, Any ) from urllib import parse, request from pex.pex_info import PexInfo from wheel_filename import parse_wheel_filename...
37.937313
99
0.645527
ed72152785c8606b3a21daf78cf5eb64074db90b
433
py
Python
taskbuster/settings/tb_dev.py
bas-innovations/taskbuster_tutorial
c27c6c616e289aa960f1f87af9360340863957b2
[ "MIT" ]
null
null
null
taskbuster/settings/tb_dev.py
bas-innovations/taskbuster_tutorial
c27c6c616e289aa960f1f87af9360340863957b2
[ "MIT" ]
null
null
null
taskbuster/settings/tb_dev.py
bas-innovations/taskbuster_tutorial
c27c6c616e289aa960f1f87af9360340863957b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .base import * # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': get_env_variable('DATABASE_NAME'), 'USER': get_env_variable('DATABASE_USER'), ...
27.0625
65
0.612009
0e445b0f144db9c61d97b3cb63d34e840e8046c1
8,271
py
Python
tf_agents/utils/example_encoding_dataset.py
FlorisHoogenboom/agents
2cd5a61e1838b52012271f1fb8617c29a55279a9
[ "Apache-2.0" ]
1
2021-09-22T12:04:03.000Z
2021-09-22T12:04:03.000Z
tf_agents/utils/example_encoding_dataset.py
FlorisHoogenboom/agents
2cd5a61e1838b52012271f1fb8617c29a55279a9
[ "Apache-2.0" ]
null
null
null
tf_agents/utils/example_encoding_dataset.py
FlorisHoogenboom/agents
2cd5a61e1838b52012271f1fb8617c29a55279a9
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The TF-Agents 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...
36.276316
107
0.735703
f0a17a4e8fca591e7b7d85f6f158f09c0faf59f7
14,941
py
Python
.executor/weather.py
gh0zialfat1h/dotfiles
d9b3f93ea6301ec65ed8140b6c6180d7166f3623
[ "MIT" ]
3
2021-06-02T04:54:09.000Z
2021-06-06T04:29:01.000Z
.executor/weather.py
0xft1h/dotfiles
d9b3f93ea6301ec65ed8140b6c6180d7166f3623
[ "MIT" ]
null
null
null
.executor/weather.py
0xft1h/dotfiles
d9b3f93ea6301ec65ed8140b6c6180d7166f3623
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # _*_ coding: utf-8 _*_ """ This script retrieves weather data from http://openweathermap.org © 2012 — 2018 OpenWeatherMap, Inc. 1. Obtain API key at http://openweathermap.org; 2. find your city ID at https://openweathermap.org/find; 3. enter both values in the ~/t2ecol/weatherrc file; 4. edit o...
36.00241
124
0.487986
49cafd0edbdd16629d58ea5ea728861782c45f8d
1,586
py
Python
montyHall/getDoors.py
code-mage/pythonTest
34f2c7fe72c527b7ff8fa903ac18265d1f169c3c
[ "WTFPL" ]
null
null
null
montyHall/getDoors.py
code-mage/pythonTest
34f2c7fe72c527b7ff8fa903ac18265d1f169c3c
[ "WTFPL" ]
null
null
null
montyHall/getDoors.py
code-mage/pythonTest
34f2c7fe72c527b7ff8fa903ac18265d1f169c3c
[ "WTFPL" ]
1
2021-03-17T15:35:11.000Z
2021-03-17T15:35:11.000Z
import random def getGates( ): gates = [0,0,0] moneyIndex = random.randint(0,2) gates[moneyIndex] = 1; return gates; def reveal(gates, selected): if (gates[selected] == 0): for i in range(0,3): if (i != selected and gates[i]==0): return i else: index = r...
31.098039
108
0.616646
85f917c555b06ccb058a12615320e3deca4fcf09
24
py
Python
shapely/__init__.py
snorfalorpagus/Shapely
088f0911451070456b46df035e600bc71e3a63b4
[ "BSD-3-Clause" ]
2
2019-05-16T09:10:01.000Z
2021-09-03T14:56:09.000Z
shapely/__init__.py
paladin74/Shapely
1f5c11918a3d26d17aaade63da3e1bd6d5b348db
[ "BSD-3-Clause" ]
null
null
null
shapely/__init__.py
paladin74/Shapely
1f5c11918a3d26d17aaade63da3e1bd6d5b348db
[ "BSD-3-Clause" ]
null
null
null
__version__ = "1.6dev0"
12
23
0.708333
f5f7167c865a88aa4cc066dd1469dab6136b53d8
2,045
py
Python
tests/test_blockchain.py
voycey/python-stashpay
4f2961c7bf334bd0ff3740fa4e1c027c3ddf0795
[ "MIT" ]
null
null
null
tests/test_blockchain.py
voycey/python-stashpay
4f2961c7bf334bd0ff3740fa4e1c027c3ddf0795
[ "MIT" ]
null
null
null
tests/test_blockchain.py
voycey/python-stashpay
4f2961c7bf334bd0ff3740fa4e1c027c3ddf0795
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ##### # Part of `libstashpay` # # Copyright 2018 dustinface # # 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 righ...
38.584906
103
0.730562
2971c44b573e205c34c256daa23481db703e22bf
5,828
py
Python
pylearn2/scripts/ecog/make_model_plots.py
BouchardLab/pylearn2
4cab785b870d22cd9e85a5f536d4cac234b6bf60
[ "BSD-3-Clause" ]
null
null
null
pylearn2/scripts/ecog/make_model_plots.py
BouchardLab/pylearn2
4cab785b870d22cd9e85a5f536d4cac234b6bf60
[ "BSD-3-Clause" ]
null
null
null
pylearn2/scripts/ecog/make_model_plots.py
BouchardLab/pylearn2
4cab785b870d22cd9e85a5f536d4cac234b6bf60
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from pylearn2.datasets import ecog_neuro import os, h5py, argparse, cPickle import numpy as np import scipy as sp import matplotlib matplotlib.use('Agg') from pylab import rcParams import matplotlib.pyplot as plt import analysis import plotting rcParams.update({'figure.autolayout': True}) de...
40.193103
100
0.554221
a6b9179d57ae341436ece93a61e88319d95258aa
640
py
Python
plts/phs_funcs.py
molaruna/rcs_lfp_analysis
14b3950299f08c0d08d20175c05a471328bf074f
[ "MIT" ]
1
2021-12-04T00:03:22.000Z
2021-12-04T00:03:22.000Z
plts/phs_funcs.py
molaruna/rcs_lfp_analysis
14b3950299f08c0d08d20175c05a471328bf074f
[ "MIT" ]
null
null
null
plts/phs_funcs.py
molaruna/rcs_lfp_analysis
14b3950299f08c0d08d20175c05a471328bf074f
[ "MIT" ]
null
null
null
import scipy.signal as signal import matplotlib.pyplot as plt def fit_aps(freqs, signal_arr): local_max_freqs_i = signal.find_peaks(signal_arr)[0] local_base_signal = get_base(signal_arr, local_max_freqs_i) plt.semilogy(freqs, signal_arr) plt.plot(freqs[local_max_freqs_i],signal_arr[local_max_freqs...
640
640
0.735938
9b4655ae475f14c718aaa47e390801993a2a9568
958
py
Python
var/spack/repos/builtin/packages/dateutils/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/dateutils/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/dateutils/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class Dateutils(AutotoolsPackage): """Dateutils are a bunch of tools that revolve around ...
45.619048
103
0.769311
825152899adf9d25c69b79b1083dd689522bb197
1,085
py
Python
myconnectome/openfmri/washu_fieldmap.py
poldrack/myconnectome
201f414b3165894d6fe0be0677c8a58f6d161948
[ "MIT" ]
28
2015-04-02T16:43:14.000Z
2020-06-17T20:04:26.000Z
myconnectome/openfmri/washu_fieldmap.py
poldrack/myconnectome
201f414b3165894d6fe0be0677c8a58f6d161948
[ "MIT" ]
11
2015-05-19T02:57:22.000Z
2017-03-17T17:36:16.000Z
myconnectome/openfmri/washu_fieldmap.py
poldrack/myconnectome
201f414b3165894d6fe0be0677c8a58f6d161948
[ "MIT" ]
10
2015-05-21T17:01:26.000Z
2020-11-11T04:28:08.000Z
import json,glob,os import dicom outdir='/scratch/01329/poldrack/selftracking/ds031/sub00001/ses105/fieldmap' washubase='/scratch/01329/poldrack/selftracking/washu' basedirs=['vc39556','vc39556_2'] fmseries=[[5,10,21],[5,17]] ctr=1 for i in range(2): basedir=os.path.join(washubase,basedirs[i]) for j in range(...
30.138889
91
0.574194
e3d0d5529d91222878f4549782552eabd5cc60b3
1,638
py
Python
hazelcast/protocol/codec/transactional_map_key_set_with_predicate_codec.py
murdockn/hazelcast-python-client
597d90be5414cd56340fafcff916191704dcb86d
[ "Apache-2.0" ]
null
null
null
hazelcast/protocol/codec/transactional_map_key_set_with_predicate_codec.py
murdockn/hazelcast-python-client
597d90be5414cd56340fafcff916191704dcb86d
[ "Apache-2.0" ]
null
null
null
hazelcast/protocol/codec/transactional_map_key_set_with_predicate_codec.py
murdockn/hazelcast-python-client
597d90be5414cd56340fafcff916191704dcb86d
[ "Apache-2.0" ]
null
null
null
from hazelcast.serialization.bits import * from hazelcast.protocol.client_message import ClientMessage from hazelcast.protocol.custom_codec import * from hazelcast.util import ImmutableLazyDataList from hazelcast.protocol.codec.transactional_map_message_type import * REQUEST_TYPE = TRANSACTIONALMAP_KEYSETWITHPREDICATE...
34.125
99
0.778388
fdd51b929202fb1df0e9e3d27cfefccbb7c6aced
14,277
py
Python
barbot/core.py
frdfsnlght/Barbot-server
4e3cfb9218a1d1d1c35288aaa5e6c756be83f84c
[ "MIT" ]
1
2020-03-31T15:33:35.000Z
2020-03-31T15:33:35.000Z
barbot/core.py
frdfsnlght/Barbot-server
4e3cfb9218a1d1d1c35288aaa5e6c756be83f84c
[ "MIT" ]
null
null
null
barbot/core.py
frdfsnlght/Barbot-server
4e3cfb9218a1d1d1c35288aaa5e6c756be83f84c
[ "MIT" ]
null
null
null
import logging, datetime, time, subprocess, re, random from threading import Thread, Event from .bus import bus from .config import config from .db import db, ModelError from . import serial from . import utils from .models.Drink import Drink from .models.DrinkOrder import DrinkOrder from .models.DrinkIngredient impo...
33.912114
129
0.616936
09b99992d1dc01e285e6eabe5b4ef0e9a2ca26ae
4,374
py
Python
runtests.py
The-Compiler/mypy
f220ce50725ed7f117832b9f03aed4d1a9508e00
[ "PSF-2.0" ]
null
null
null
runtests.py
The-Compiler/mypy
f220ce50725ed7f117832b9f03aed4d1a9508e00
[ "PSF-2.0" ]
null
null
null
runtests.py
The-Compiler/mypy
f220ce50725ed7f117832b9f03aed4d1a9508e00
[ "PSF-2.0" ]
null
null
null
#!/usr/bin/env python3 import subprocess from subprocess import Popen from os import system from sys import argv, exit, platform, executable, version_info # Use the Python provided to execute the script, or fall back to a sane default if version_info >= (3, 5, 0): python_name = executable else: if platform ==...
27.509434
95
0.599909
704dd2e5c29dfebe33a0eba9d70b76c791ddad6d
22,623
py
Python
electrum/tests/test_lnrouter.py
y-chan/electrum
af4a3328f78ccc0d50efa3f6fa88facb328ef436
[ "MIT" ]
7
2020-03-20T10:20:29.000Z
2021-04-21T12:46:25.000Z
electrum/tests/test_lnrouter.py
y-chan/electrum
af4a3328f78ccc0d50efa3f6fa88facb328ef436
[ "MIT" ]
19
2019-11-19T14:34:30.000Z
2022-03-10T21:21:07.000Z
electrum/tests/test_lnrouter.py
y-chan/electrum
af4a3328f78ccc0d50efa3f6fa88facb328ef436
[ "MIT" ]
8
2018-04-11T01:05:12.000Z
2020-03-24T22:26:30.000Z
import unittest import tempfile import shutil import asyncio from electrum.util import bh2u, bfh, create_and_start_event_loop from electrum.lnonion import (OnionHopsDataSingle, new_onion_packet, OnionPerHop, process_onion_packet, _decode_onion_error, decode_onion_error, ...
107.728571
2,765
0.766919
4d62244adbd1375d592651dfaadfc249bf81f841
1,292
py
Python
working_with_pdf_csv/Working with CVS.py
alok8765/basic_python_practicse
9bd61f0b03fc1e703a75df39862a24692bb3fdb7
[ "MIT" ]
null
null
null
working_with_pdf_csv/Working with CVS.py
alok8765/basic_python_practicse
9bd61f0b03fc1e703a75df39862a24692bb3fdb7
[ "MIT" ]
null
null
null
working_with_pdf_csv/Working with CVS.py
alok8765/basic_python_practicse
9bd61f0b03fc1e703a75df39862a24692bb3fdb7
[ "MIT" ]
null
null
null
#Working with CVS import csv #open the file data=open('example.csv',encoding='utf-8') #csv.reader csv_data=csv.reader(data) #reformatted into python obj (list of list) data_line=list(csv_data) #print(data_line) #check first row item print(data_line[0]) #check number of rows print(len(data_line)) #print few rows in...
23.071429
53
0.713622
3daef2e6adc20c1c235f2d629685e994940e3502
9,676
py
Python
drqa/reader/utils.py
felixgaschi/experiment-on-DrQA
fe276df098bc797a20607930f12ad7079659575d
[ "BSD-3-Clause" ]
null
null
null
drqa/reader/utils.py
felixgaschi/experiment-on-DrQA
fe276df098bc797a20607930f12ad7079659575d
[ "BSD-3-Clause" ]
null
null
null
drqa/reader/utils.py
felixgaschi/experiment-on-DrQA
fe276df098bc797a20607930f12ad7079659575d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. """DrQA reader utilities.""" import json import time import logging import string import regex as re from col...
29.772308
80
0.56604
e1a5b4637489993898fa17e3756d3650c4f88620
14,870
py
Python
trpo.py
sagerpascal/deep-rl-bootcamp-lab4
1058a41ef0a7fa909b02bc8e760b1b48c0cae6f8
[ "MIT" ]
null
null
null
trpo.py
sagerpascal/deep-rl-bootcamp-lab4
1058a41ef0a7fa909b02bc8e760b1b48c0cae6f8
[ "MIT" ]
null
null
null
trpo.py
sagerpascal/deep-rl-bootcamp-lab4
1058a41ef0a7fa909b02bc8e760b1b48c0cae6f8
[ "MIT" ]
null
null
null
""" This project was developed by Rocky Duan, Peter Chen, Pieter Abbeel for the Berkeley Deep RL Bootcamp, August 2017. Bootcamp website with slides and lecture videos: https://sites.google.com/view/deep-rl-bootcamp/. Copyright 2017 Deep RL Bootcamp Organizers. Permission is hereby granted, free of charge, to any per...
47.813505
460
0.620444
84134d45ff1ab7f2f202dd2ffc16ab73fae2c0e6
977
py
Python
gallery/views.py
lilian-2021/my-gallery
aaa1ac356f96258c1272ee9418be8e212fbe863b
[ "Unlicense" ]
null
null
null
gallery/views.py
lilian-2021/my-gallery
aaa1ac356f96258c1272ee9418be8e212fbe863b
[ "Unlicense" ]
null
null
null
gallery/views.py
lilian-2021/my-gallery
aaa1ac356f96258c1272ee9418be8e212fbe863b
[ "Unlicense" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse,Http404 from .models import gallery # Create your views here. def all_photos(request): images = gallery.objects.all() return render(request, 'index.html', {'images':images}) def photo_description(request,Gallery_image_id): ...
29.606061
94
0.696008
3ec1432e389c944f7f9398746f6a3194398a81f4
443
py
Python
bookwyrm/migrations/0114_importjob_source.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
270
2020-01-27T06:06:07.000Z
2020-06-21T00:28:18.000Z
bookwyrm/migrations/0114_importjob_source.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
158
2020-02-10T20:36:54.000Z
2020-06-26T17:12:54.000Z
bookwyrm/migrations/0114_importjob_source.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
15
2020-02-13T21:53:33.000Z
2020-06-17T16:52:46.000Z
# Generated by Django 3.2.5 on 2021-11-13 00:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("bookwyrm", "0113_auto_20211110_2104"), ] operations = [ migrations.AddField( model_name="importjob", name="source", ...
22.15
69
0.604966
bcd50cd546991918e4d417c120ad285793289eee
338
py
Python
src/griffe/__main__.py
rohankumardubey/griffe
3c026d3b8c9714d4b15a6ad2e003718e2e46a3e4
[ "0BSD" ]
29
2022-01-31T21:39:28.000Z
2022-03-24T04:03:27.000Z
src/griffe/__main__.py
rohankumardubey/griffe
3c026d3b8c9714d4b15a6ad2e003718e2e46a3e4
[ "0BSD" ]
56
2022-01-31T20:41:23.000Z
2022-03-31T19:03:07.000Z
src/griffe/__main__.py
rohankumardubey/griffe
3c026d3b8c9714d4b15a6ad2e003718e2e46a3e4
[ "0BSD" ]
5
2022-02-19T16:58:55.000Z
2022-03-21T18:28:03.000Z
""" Entry-point module, in case you use `python -m griffe`. Why does this file exist, and why `__main__`? For more info, read: - https://www.python.org/dev/peps/pep-0338/ - https://docs.python.org/3/using/cmdline.html#cmdoption-m """ import sys from griffe.cli import main if __name__ == "__main__": sys.exit(ma...
21.125
66
0.695266
319939c33a3a60dc69da4e47414a6368bb852108
25
py
Python
python/zpmanga/manga_tools/__init__.py
zpace/zpmanga
320ac59e5cdf4c62b24165945d9a194b80ea07a2
[ "BSD-3-Clause" ]
null
null
null
python/zpmanga/manga_tools/__init__.py
zpace/zpmanga
320ac59e5cdf4c62b24165945d9a194b80ea07a2
[ "BSD-3-Clause" ]
null
null
null
python/zpmanga/manga_tools/__init__.py
zpace/zpmanga
320ac59e5cdf4c62b24165945d9a194b80ea07a2
[ "BSD-3-Clause" ]
null
null
null
__all__ = ['manga_tools']
25
25
0.72
4f018d05affa6f3da20273ee00d72e2bd1e36807
57,928
py
Python
tests/testflows/ldap/role_mapping/tests/mapping.py
roanhe-ts/ClickHouse
22de534fdcd3f05e27423d13f5875f97c3ba5f10
[ "Apache-2.0" ]
1
2022-02-08T03:09:51.000Z
2022-02-08T03:09:51.000Z
tests/testflows/ldap/role_mapping/tests/mapping.py
roanhe-ts/ClickHouse
22de534fdcd3f05e27423d13f5875f97c3ba5f10
[ "Apache-2.0" ]
1
2022-03-21T07:27:34.000Z
2022-03-21T07:27:34.000Z
tests/testflows/ldap/role_mapping/tests/mapping.py
roanhe-ts/ClickHouse
22de534fdcd3f05e27423d13f5875f97c3ba5f10
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from testflows.core import * from testflows.asserts import error from helpers.common import Pool from ldap.role_mapping.requirements import * from ldap.role_mapping.tests.common import * from ldap.external_user_directory.tests.common import randomword from ldap.external_user_directory.tests.a...
40.005525
118
0.632596
4a905b3e862140e9a368c15e4bab1d523ff03e77
943
py
Python
oops_fhir/r4/value_set/v3_act_relationship_subset.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/v3_act_relationship_subset.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/v3_act_relationship_subset.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.v3_act_relationship_subset import ( v3ActRelationshipSubset as v3ActRelationshipSubset_, ) __all__ = ["v3ActRelationshipSubset"] _resource = _ValueSet.parse_fi...
26.942857
74
0.765642
032cf19503dad5f63b6ae50ecf0b06b10339600b
4,089
py
Python
tests/providers/amazon/aws/sensors/test_sqs.py
troywinter/airflow
ba66ba0d97941c55d9f00f66329a9d3c7ad673e7
[ "Apache-2.0" ]
3
2015-08-25T13:56:44.000Z
2020-03-21T10:26:58.000Z
tests/providers/amazon/aws/sensors/test_sqs.py
troywinter/airflow
ba66ba0d97941c55d9f00f66329a9d3c7ad673e7
[ "Apache-2.0" ]
37
2020-07-21T07:50:02.000Z
2022-03-29T22:31:28.000Z
tests/providers/amazon/aws/sensors/test_sqs.py
vuppalli/airflow
dfe8337ca2d3ed173d9ecc112938271519792c40
[ "Apache-2.0" ]
4
2020-07-17T14:02:28.000Z
2022-02-23T04:29:58.000Z
# # 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...
39.317308
110
0.638542
e8bbb3424900c812876008860afa817808ceaf96
632
py
Python
Random-Number-Checker.py
Ethan-Francolla/Random-Number-Checker
40419954cf6f99b184f84c00a600ef1d384cba99
[ "MIT" ]
5
2021-11-26T18:39:57.000Z
2022-02-17T04:17:45.000Z
Random-Number-Checker.py
Ethan-Francolla/Random-Number-Checker
40419954cf6f99b184f84c00a600ef1d384cba99
[ "MIT" ]
null
null
null
Random-Number-Checker.py
Ethan-Francolla/Random-Number-Checker
40419954cf6f99b184f84c00a600ef1d384cba99
[ "MIT" ]
null
null
null
import random list = [] def print_list(): print("This is the list:") print(*list, sep = ', ') for i in range(100): rand_num = int(random.randint(1,500)) list.append(rand_num) list.sort() list.reverse() user_num = int(input("Please enter a number to check if it is in the array: ")) if user_num ...
21.793103
79
0.653481
173936dac745115efa8b08779ca59bea5ffd88d0
7,783
py
Python
benchmarking/TriVec/experiment_TriVec.py
hpi-sam/GNN-Effectants
e1204cb78bb91ffe3126df62d2d14b20da950694
[ "MIT" ]
1
2021-03-29T20:50:38.000Z
2021-03-29T20:50:38.000Z
benchmarking/TriVec/experiment_TriVec.py
hpi-sam/GNN-Effectants
e1204cb78bb91ffe3126df62d2d14b20da950694
[ "MIT" ]
null
null
null
benchmarking/TriVec/experiment_TriVec.py
hpi-sam/GNN-Effectants
e1204cb78bb91ffe3126df62d2d14b20da950694
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import itertools import gzip import numpy as np import time from sklearn.pipeline import Pipeline from tqdm import tqdm from libkge.embedding import TransE, DistMult, ComplEx, TriModel, DistMult_MCL, ComplEx_MCL, TriModel_MCL from libkge import KgDataset from libkge.metrics.classifica...
40.748691
118
0.647951
a34d08bb021b913763df8aafe21dfda822fe1dc4
11,055
py
Python
test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py
Azure/autorest.python
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py
Azure/autorest.python
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py
Azure/autorest.python
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.065217
188
0.708186
f647bab2f0d77d8b958f1c111387de8a243e6867
31,533
py
Python
flax/core/lift.py
davisyoshida/flax
d03a262249671db92f9924f990437907cac36b21
[ "Apache-2.0" ]
null
null
null
flax/core/lift.py
davisyoshida/flax
d03a262249671db92f9924f990437907cac36b21
[ "Apache-2.0" ]
null
null
null
flax/core/lift.py
davisyoshida/flax
d03a262249671db92f9924f990437907cac36b21
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Flax 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 wri...
39.465582
144
0.682016
76cd1b816416bfb5baa1d17db3552016b5c40749
5,650
py
Python
keystoneclient/fixture/v2.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
keystoneclient/fixture/v2.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
keystoneclient/fixture/v2.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
29.89418
79
0.630442
8cbe9d6ad2acb90980dd1ac9c32ba0ab046f2ba6
5,919
py
Python
exec.py
wellhowtosay/Smbop_mt
f4b0feb9308632cfe31d4dc47efdbae672439bf7
[ "MIT" ]
null
null
null
exec.py
wellhowtosay/Smbop_mt
f4b0feb9308632cfe31d4dc47efdbae672439bf7
[ "MIT" ]
null
null
null
exec.py
wellhowtosay/Smbop_mt
f4b0feb9308632cfe31d4dc47efdbae672439bf7
[ "MIT" ]
null
null
null
import json import argparse import contextlib import sh import subprocess import pathlib from allennlp.commands.train import train_model from allennlp.common import Params # from smbop.dataset_readers.spider import SmbopSpiderDatasetReader from smbop.dataset_readers.cosql import SmbopCoSqlDatasetReader from smbop.mode...
39.993243
127
0.687954
92f9c0a40502b50b922102d5b072e06101fef4c3
416
py
Python
aws-dev/awsdev8/Scripts/pip-script.py
PacktPublishing/-AWS-Certified-Developer---Associate-Certification
3f76e3d3df6797705b5b30ae574fe678250d5e92
[ "MIT" ]
13
2020-02-02T13:53:50.000Z
2022-03-20T19:50:02.000Z
aws-dev/awsdev63/Scripts/pip-script.py
PacktPublishing/-AWS-Certified-Developer---Associate-Certification
3f76e3d3df6797705b5b30ae574fe678250d5e92
[ "MIT" ]
2
2020-03-29T19:08:04.000Z
2021-06-02T00:57:44.000Z
aws-dev/awsdev63/Scripts/pip-script.py
PacktPublishing/-AWS-Certified-Developer---Associate-Certification
3f76e3d3df6797705b5b30ae574fe678250d5e92
[ "MIT" ]
10
2019-12-25T20:42:37.000Z
2021-11-17T15:19:00.000Z
#!"C:\Users\malcolm orr\Documents\GitHub\awsdev63\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a...
32
69
0.665865
a31007b71926238dfc8438696161d1b4703dd6bb
1,850
py
Python
python/petitBloc/chain.py
sol-ansano-kim/unitBlock
ba95a5e5625359d4bbab97cbf18df5ba259e1aee
[ "MIT" ]
24
2018-01-17T02:58:10.000Z
2021-08-20T20:34:08.000Z
python/petitBloc/chain.py
sol-ansano-kim/unitBlock
ba95a5e5625359d4bbab97cbf18df5ba259e1aee
[ "MIT" ]
2
2018-12-05T08:02:49.000Z
2021-05-21T06:57:02.000Z
python/petitBloc/chain.py
sol-ansano-kim/unitBlock
ba95a5e5625359d4bbab97cbf18df5ba259e1aee
[ "MIT" ]
5
2018-02-06T05:40:17.000Z
2022-03-19T06:30:20.000Z
from numbers import Number from . import core from . import packet from . import workerManager class Chain(core.ChainBase): def __init__(self, srcPort, dstPort): super(Chain, self).__init__(srcPort, dstPort) self.__packets = None def empty(self): if self.__packets is None: ...
23.125
70
0.574054
14d4501cfd83d3045828c6655cf15513aa823657
4,344
py
Python
src/tools/voc_eval_lib/utils/visualization.py
papkov/CenterNet
91fe229756881fe8f77697b73407e2337b6fc65e
[ "MIT" ]
null
null
null
src/tools/voc_eval_lib/utils/visualization.py
papkov/CenterNet
91fe229756881fe8f77697b73407e2337b6fc65e
[ "MIT" ]
null
null
null
src/tools/voc_eval_lib/utils/visualization.py
papkov/CenterNet
91fe229756881fe8f77697b73407e2337b6fc65e
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import, division, print_function import numpy as np import ...
21.294118
82
0.561924
2deda0f8d1c9335e7dd52042d5e5544dd37fcac3
3,193
py
Python
monk/pytorch/training/params.py
Sanskar329/monk_v1
51a497a925ec1fb2c8fef1d51245ea7040a5a65a
[ "Apache-2.0" ]
7
2020-07-26T08:37:29.000Z
2020-10-30T10:23:11.000Z
monk/pytorch/training/params.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
null
null
null
monk/pytorch/training/params.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
null
null
null
from pytorch.training.imports import * from system.imports import * @accepts(int, dict, post_trace=False) #@TraceFunction(trace_args=False, trace_rv=False) def set_num_epochs(num_epochs, system_dict): ''' Set number of training epochs Args: num_epochs (int): Number of epochs to train the network ...
30.409524
98
0.710304
9d28b7134f8c58cd85c41e693789022d7beb0cbb
352
py
Python
corsempy/__init__.py
iaousse/corsempy_project
e369016e1edd9372556e13d0038088628dc7bb40
[ "MIT" ]
null
null
null
corsempy/__init__.py
iaousse/corsempy_project
e369016e1edd9372556e13d0038088628dc7bb40
[ "MIT" ]
null
null
null
corsempy/__init__.py
iaousse/corsempy_project
e369016e1edd9372556e13d0038088628dc7bb40
[ "MIT" ]
null
null
null
"""corsempy is a Python package for implementing the iterative methods for the computations of the covariance matrix implied by an SEM model. The package still under development.""" """from .optimizer import Optimizer from .model import Model from .identifier import Identifier from .stats import Statistics""" name = "...
35.2
109
0.784091
2dbefc0019ffb5976d6187a2d79e30d5948a0d28
1,464
py
Python
aliyun-python-sdk-ros/aliyunsdkros/request/v20190910/DescribeRegionsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-ros/aliyunsdkros/request/v20190910/DescribeRegionsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-ros/aliyunsdkros/request/v20190910/DescribeRegionsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# 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...
38.526316
74
0.771858
1c3c1b6d1bf3418e30f84f8cf25639559ef31943
3,970
py
Python
utils/polus-imagej-util/{{cookiecutter.project_slug}}/src/ij_converter.py
LabShare/polus-plugin-utils
9332ca6c229401d57b063a81973d48ce718c654c
[ "MIT" ]
null
null
null
utils/polus-imagej-util/{{cookiecutter.project_slug}}/src/ij_converter.py
LabShare/polus-plugin-utils
9332ca6c229401d57b063a81973d48ce718c654c
[ "MIT" ]
null
null
null
utils/polus-imagej-util/{{cookiecutter.project_slug}}/src/ij_converter.py
LabShare/polus-plugin-utils
9332ca6c229401d57b063a81973d48ce718c654c
[ "MIT" ]
null
null
null
''' A conversion utility built to convert abstract to primitive ''' import imagej import logging import imglyb import jpype import numpy as np import scyjava # Initialize the logger logging.basicConfig(format='%(asctime)s - %(name)-8s - %(levelname)-8s - %(message)s', datefmt='%d-%b-%y %H:%M:%S')...
27.569444
92
0.581612
65e033b7b694bd8b38b15bb918eaba18f76b8443
8,650
py
Python
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/SGIX/fragment_lighting.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/SGIX/fragment_lighting.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/SGIX/fragment_lighting.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
'''OpenGL extension SGIX.fragment_lighting The official definition of this extension is available here: http://oss.sgi.com/projects/ogl-sample/registry/SGIX/fragment_lighting.txt Automatically generated by the get_gl_extensions script, do not edit! ''' from OpenGL import platform, constants, constant, arrays from Op...
43.467337
132
0.784509
ec6dc8fcc13c3741cae03b46f280bb409058cc09
3,107
py
Python
hub_module/modules/text/text_generation/ernie_gen_poetry/model/modeling_ernie_gen.py
18621579069/PaddleHub-yu
15e8bcef2addf239081e235bdcfd039de12330e0
[ "Apache-2.0" ]
4
2021-02-25T03:27:38.000Z
2021-05-15T03:20:23.000Z
hub_module/modules/text/text_generation/ernie_gen_poetry/model/modeling_ernie_gen.py
18621579069/PaddleHub-yu
15e8bcef2addf239081e235bdcfd039de12330e0
[ "Apache-2.0" ]
null
null
null
hub_module/modules/text/text_generation/ernie_gen_poetry/model/modeling_ernie_gen.py
18621579069/PaddleHub-yu
15e8bcef2addf239081e235bdcfd039de12330e0
[ "Apache-2.0" ]
2
2021-03-01T07:04:01.000Z
2021-05-14T05:54:18.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 app...
39.329114
87
0.621178
1dbc6e57080adc9016ef1de86c6328795eec509e
5,413
py
Python
meli/models.py
rmarcacini/cc-meli2019
57139212b0afce5ada550c903516e5b919347b7b
[ "MIT" ]
5
2019-10-13T21:32:55.000Z
2021-01-12T15:47:36.000Z
meli/models.py
pablozivic/cc-meli2019
57139212b0afce5ada550c903516e5b919347b7b
[ "MIT" ]
null
null
null
meli/models.py
pablozivic/cc-meli2019
57139212b0afce5ada550c903516e5b919347b7b
[ "MIT" ]
2
2019-10-07T15:43:05.000Z
2019-10-25T23:36:26.000Z
import keras from keras.models import Sequential from keras.layers import Embedding from keras.layers import Dropout from keras.layers import Bidirectional from keras.layers import GRU from keras.layers import LSTM from keras.layers import Dense from keras.callbacks import EarlyStopping from keras.layers import Input f...
42.289063
233
0.727323
c9d1e65e7def3edcef46e672dc626b21ff962c88
876
py
Python
Download/validate_unusual_video.py
jyun790430/CrawlerH
4329c42dfbf3eacba9711eaf1dc90106166ecdcc
[ "MIT" ]
null
null
null
Download/validate_unusual_video.py
jyun790430/CrawlerH
4329c42dfbf3eacba9711eaf1dc90106166ecdcc
[ "MIT" ]
3
2021-03-31T19:49:20.000Z
2021-12-13T20:38:02.000Z
Download/validate_unusual_video.py
jyun790430/CrawlerH
4329c42dfbf3eacba9711eaf1dc90106166ecdcc
[ "MIT" ]
null
null
null
# coding=utf-8 import os import subprocess from model import CrawlVideoModel from setting.config import VIDEO_FILE_PATH files = os.listdir(VIDEO_FILE_PATH) a = subprocess.Popen(['ffmpeg', '-i', '/Users/bryson/videoH/46ca6786ceaf078653acf3e9b0cd13bb.mp4']) print a.returncode # # 以迴圈處理 # for _f in files: # # 產生檔案的絕...
22.461538
99
0.650685
b6d827d520391be4c035fc2a2259d66b7b9f2834
1,325
py
Python
builders/bidirectional_rnn_builder.py
ChenCongGit/Chinese-aster
3e4ad7e1cc36ad071e4e5dd1017d7d415d686d8d
[ "MIT" ]
6
2019-08-05T08:54:46.000Z
2021-06-29T08:36:58.000Z
builders/bidirectional_rnn_builder.py
ChenCongGit/Chinese-aster
3e4ad7e1cc36ad071e4e5dd1017d7d415d686d8d
[ "MIT" ]
null
null
null
builders/bidirectional_rnn_builder.py
ChenCongGit/Chinese-aster
3e4ad7e1cc36ad071e4e5dd1017d7d415d686d8d
[ "MIT" ]
null
null
null
from Chinese_aster.core import bidirectional_rnn from Chinese_aster.protos import hyperparams_pb2 from Chinese_aster.protos import bidirectional_rnn_pb2 from Chinese_aster.builders import hyperparams_builder from Chinese_aster.builders import rnn_cell_builder def build(config, is_training): if not isinstance(config...
41.40625
89
0.830943
7fd22447fd2213aa234138016d281d59d5604bb5
179
py
Python
celeryconfig.py
urkonn/shogun
fbbd9dfd5773d223949d1030c954e81fd353f175
[ "MIT" ]
null
null
null
celeryconfig.py
urkonn/shogun
fbbd9dfd5773d223949d1030c954e81fd353f175
[ "MIT" ]
null
null
null
celeryconfig.py
urkonn/shogun
fbbd9dfd5773d223949d1030c954e81fd353f175
[ "MIT" ]
null
null
null
import sys import os sys.path.append('.') BROKER_URL = os.getenv('REDIS_URL') CELERY_ACCEPT_CONTENT = ['json'] CELERY_TASK_SERIALIZER = 'json' CELERY_RESULT_SERIALIZER = 'json'
17.9
35
0.759777
d80b61e6864643ddb4bd5f866b090d53a14bd2dc
69
py
Python
stonesoup/models/__init__.py
Red-Portal/Stone-Soup-1
267621c86161a839da9b144c2745d28d9166d903
[ "MIT" ]
157
2019-04-14T20:43:11.000Z
2022-03-30T08:30:33.000Z
stonesoup/models/__init__.py
Red-Portal/Stone-Soup-1
267621c86161a839da9b144c2745d28d9166d903
[ "MIT" ]
364
2019-04-18T15:54:49.000Z
2022-03-31T09:50:02.000Z
stonesoup/models/__init__.py
Red-Portal/Stone-Soup-1
267621c86161a839da9b144c2745d28d9166d903
[ "MIT" ]
86
2019-04-20T02:01:18.000Z
2022-03-28T01:03:11.000Z
# -*- coding: utf-8 -*- from .base import Model __all__ = ['Model']
13.8
23
0.594203
9d82929a79d530b762249270118da3a7cfcb74d2
679
py
Python
Algorithms/2_Implementation/50.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/2_Implementation/50.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/2_Implementation/50.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/minimum-distances/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'minimumDistances' function below. # # The function is expected to return an INTEGER. # The function accepts INTEGER_ARRAY a as parameter. # def minimumDistances...
20.575758
78
0.662739
fb6037a424f2e01ba085af32ef7ef6d2f3e35f8f
3,194
py
Python
meetup_api/app/master4b.py
albertolusoli/meetup_api
c631adf509d4ba1a7a4e26be4bca78060daee0a6
[ "MIT" ]
1
2019-08-23T00:06:50.000Z
2019-08-23T00:06:50.000Z
meetup_api/app/master4b.py
albertolusoli/meetup_api
c631adf509d4ba1a7a4e26be4bca78060daee0a6
[ "MIT" ]
null
null
null
meetup_api/app/master4b.py
albertolusoli/meetup_api
c631adf509d4ba1a7a4e26be4bca78060daee0a6
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import psycopg2 from config import Config import find_group_ids as find_group_ids import find_topic_ids as topics import find_event_ids as find_event_ids import api_groups as api_groups import api_past_events as api_past_events import api_upcoming_events as api_upcoming_events i...
22.335664
103
0.69474
182d7e5ce8fc3b4eff8600a2bb88c07f30970066
4,469
py
Python
scrapy_crawl_once/middlewares.py
SmirnovStepan/scrapy-crawl-once
8ee8004d7effbf05cb7d0590f91b1880c98731a9
[ "MIT" ]
null
null
null
scrapy_crawl_once/middlewares.py
SmirnovStepan/scrapy-crawl-once
8ee8004d7effbf05cb7d0590f91b1880c98731a9
[ "MIT" ]
null
null
null
scrapy_crawl_once/middlewares.py
SmirnovStepan/scrapy-crawl-once
8ee8004d7effbf05cb7d0590f91b1880c98731a9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import time import logging from sqlitedict import SqliteDict from scrapy import signals from scrapy.utils.project import data_path from scrapy.utils.request import request_fingerprint from scrapy.exceptions import IgnoreRequest, NotConfigured logger = logging.getLogger(__name__) cl...
35.188976
78
0.633028
af4d765b05c6e72a633f53f47e93181f40e92ed2
2,136
py
Python
examples/listdevs.py
DCC-Lab/libusb
40e49a03cf17fafaa03c6b02a4aa5e920631442c
[ "Zlib" ]
null
null
null
examples/listdevs.py
DCC-Lab/libusb
40e49a03cf17fafaa03c6b02a4aa5e920631442c
[ "Zlib" ]
null
null
null
examples/listdevs.py
DCC-Lab/libusb
40e49a03cf17fafaa03c6b02a4aa5e920631442c
[ "Zlib" ]
null
null
null
# Copyright (c) 2016-2020 Adam Karpierz # Licensed under the zlib/libpng License # https://opensource.org/licenses/Zlib # libusb example program to list devices on the bus # Copyright © 2007 Daniel Drake <dsd@gentoo.org> # # This library is free software; you can redistribute it and/or # modify it under the terms of t...
27.74026
78
0.632022
cb24039d6887d5914ed43ab1944a2a5a423c36f3
16,500
py
Python
tests/test_modeling_roberta.py
malteos/transformers
cafa6a9e29f3e99c67a1028f8ca779d439bc0689
[ "Apache-2.0" ]
23
2020-10-26T11:10:30.000Z
2022-03-21T10:18:08.000Z
tests/test_modeling_roberta.py
malteos/transformers
cafa6a9e29f3e99c67a1028f8ca779d439bc0689
[ "Apache-2.0" ]
2
2020-10-29T07:59:57.000Z
2021-09-08T14:49:44.000Z
tests/test_modeling_roberta.py
malteos/transformers
cafa6a9e29f3e99c67a1028f8ca779d439bc0689
[ "Apache-2.0" ]
8
2020-12-31T03:30:57.000Z
2022-03-21T08:12:54.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
44.117647
119
0.656909
650a49d05c92fb6fba0cc2bef6c78878e4178be0
192
py
Python
backend/workers/main.py
jmeisele/celery-farm
7e2638a24717b37f1886a816c45b9d88f89cc726
[ "MIT" ]
3
2022-01-07T20:30:31.000Z
2022-02-09T19:11:27.000Z
backend/workers/main.py
jmeisele/celery-farm
7e2638a24717b37f1886a816c45b9d88f89cc726
[ "MIT" ]
null
null
null
backend/workers/main.py
jmeisele/celery-farm
7e2638a24717b37f1886a816c45b9d88f89cc726
[ "MIT" ]
null
null
null
from celery import Celery from .config import settings celery_app = Celery( "workers", broker=settings.BROKER_URL, include=["workers.tasks"], backend=settings.BACKEND_URL, )
17.454545
33
0.71875
fb9982db309834bb844ab22be28730b654696caa
15,362
py
Python
main_verb_try_adamexp.py
thilinicooray/mac-network-pytorch
0e4bf3f7f301570b652490f697758361c866f3c1
[ "MIT" ]
null
null
null
main_verb_try_adamexp.py
thilinicooray/mac-network-pytorch
0e4bf3f7f301570b652490f697758361c866f3c1
[ "MIT" ]
null
null
null
main_verb_try_adamexp.py
thilinicooray/mac-network-pytorch
0e4bf3f7f301570b652490f697758361c866f3c1
[ "MIT" ]
null
null
null
import torch from imsitu_encoder_verb import imsitu_encoder from imsitu_loader import imsitu_loader_verb from imsitu_scorer_log import imsitu_scorer import json import model_verb_directcnn import os import utils import torchvision as tv #from torchviz import make_dot #from graphviz import Digraph def train(model, tr...
41.184987
180
0.588921
1b871222e2fc5998800eb387b6b062df925d655a
2,005
py
Python
CapGenerator/train_model.py
edwardcruzcruz/Describiendo_imagenes_keras
5c9a0ffed365098d0df880dd73c1908d2228cc28
[ "MIT" ]
64
2018-10-25T06:19:49.000Z
2022-02-17T11:23:56.000Z
CapGenerator/train_model.py
edwardcruzcruz/Describiendo_imagenes_keras
5c9a0ffed365098d0df880dd73c1908d2228cc28
[ "MIT" ]
12
2018-09-10T14:56:35.000Z
2022-03-28T14:48:45.000Z
CapGenerator/train_model.py
edwardcruzcruz/Describiendo_imagenes_keras
5c9a0ffed365098d0df880dd73c1908d2228cc28
[ "MIT" ]
55
2018-11-12T08:33:43.000Z
2022-01-22T15:35:53.000Z
import load_data as ld import generate_model as gen from keras.callbacks import ModelCheckpoint from pickle import dump def train_model(weight = None, epochs = 10): # load dataset data = ld.prepare_dataset('train') train_features, train_descriptions = data[0] test_features, test_descriptions = data[1] # pre...
33.983051
97
0.740648
3f6d10abf82896213b63769f2928895be5227b02
895
py
Python
altair_examples/poly_fit_regression.py
progressivis/altair_examples
9a453ecebdf0bd4776696d4233bee2a8f2eb3606
[ "BSD-3-Clause" ]
1
2021-10-30T03:55:24.000Z
2021-10-30T03:55:24.000Z
altair_examples/poly_fit_regression.py
progressivis/altair_examples
9a453ecebdf0bd4776696d4233bee2a8f2eb3606
[ "BSD-3-Clause" ]
null
null
null
altair_examples/poly_fit_regression.py
progressivis/altair_examples
9a453ecebdf0bd4776696d4233bee2a8f2eb3606
[ "BSD-3-Clause" ]
null
null
null
""" Polynomial Fit Plot with Regression Transform ============================================= This example shows how to overlay data with multiple fitted polynomials using the regression transform. """ # category: scatter plots import numpy as np import altair as alt # Generate some random data rng = np.random.Rand...
24.861111
79
0.627933
55a74bbd6dce1a0c413c69bb675b15e31c59f032
19,020
py
Python
desktop/core/ext-py/Beaker/beaker/container.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
desktop/core/ext-py/Beaker/beaker/container.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
desktop/core/ext-py/Beaker/beaker/container.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
"""Container and Namespace classes""" import anydbm import cPickle import logging import os.path import time import beaker.util as util from beaker.exceptions import CreationAbortedError, MissingCacheParameter from beaker.synchronization import _threading, file_synchronizer, \ mutex_synchronizer, NameLock, null_s...
31.647255
102
0.576919
37bd6b211c4ec1e5bf03db04fb1220ec57de137d
9,624
py
Python
_OutputOshaberi/train.py
Geson-anko/JARVIS3
bc599a352401a7e135ebaabead4d8e6d8835747e
[ "MIT" ]
null
null
null
_OutputOshaberi/train.py
Geson-anko/JARVIS3
bc599a352401a7e135ebaabead4d8e6d8835747e
[ "MIT" ]
null
null
null
_OutputOshaberi/train.py
Geson-anko/JARVIS3
bc599a352401a7e135ebaabead4d8e6d8835747e
[ "MIT" ]
null
null
null
from MemoryManager import MemoryManager from MasterConfig import Config as mconf from Sensation6 import Sensation from Sensation6.sensation_models import KikitoriEncoder,Encoder from Sensation6.torch_KMeans import torch_KMeans from Sensation6.config import config from .output import Output from .output_models import O...
41.662338
119
0.64682
992d0765381f15774b31cfcf41cc17079d35d1ff
1,449
py
Python
tests/python/pants_test/core_tasks/test_substitute_target_aliases_integration.py
rahuliyer95/pants
50ee5cc8bd9ab40ad13c3c28ccbc4e7f189292ec
[ "Apache-2.0" ]
1
2020-06-13T22:01:39.000Z
2020-06-13T22:01:39.000Z
tests/python/pants_test/core_tasks/test_substitute_target_aliases_integration.py
rahuliyer95/pants
50ee5cc8bd9ab40ad13c3c28ccbc4e7f189292ec
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/core_tasks/test_substitute_target_aliases_integration.py
rahuliyer95/pants
50ee5cc8bd9ab40ad13c3c28ccbc4e7f189292ec
[ "Apache-2.0" ]
2
2020-05-18T18:43:11.000Z
2020-05-19T02:47:47.000Z
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.testutil.pants_run_integration_test import PantsRunIntegrationTest class AliasTargetIntegrationTest(PantsRunIntegrationTest): test_module = "testprojects/src/java/org/pan...
45.28125
86
0.711525
c5431177b2a5e2790f2b1d922fee4d2c002becda
935
py
Python
data/external/repositories_2to3/145085/kaggle_Microsoft_Malware-master/kaggle_Microsoft_malware_small/gen_data.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/145085/kaggle_Microsoft_Malware-master/kaggle_Microsoft_malware_small/gen_data.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/145085/kaggle_Microsoft_Malware-master/kaggle_Microsoft_malware_small/gen_data.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
import os import subprocess train={} test={} path='..' f=open(path+'/trainLabels.csv') fo=open('trainLabels.csv','w') fo.write(f.readline()) f1=open(path+'/sampleSubmission.csv') fo1=open('sampleSubmission.csv','w') fo1.write(f1.readline()) for line in f: xx=line.split(',') label=int(xx[-1]) ...
25.972222
89
0.542246
1aadb2fa87d7c4822c5fd54c6b02836b376f35e2
3,057
py
Python
src/aws_cloudwatch_log_minder/delete_empty_log_groups.py
owitplat/aws-cloudwatch-log-minder
b33dbaee2b46b0e65371b6ca17bd0259cca31bc7
[ "Apache-2.0" ]
51
2019-09-17T20:43:09.000Z
2022-03-29T10:50:35.000Z
src/aws_cloudwatch_log_minder/delete_empty_log_groups.py
aagutu/aws-cloudwatch-log-minder
1ffc750eb50632405a6bd3441054241f1cb155dc
[ "Apache-2.0" ]
24
2019-10-11T20:55:17.000Z
2022-03-04T09:30:07.000Z
src/aws_cloudwatch_log_minder/delete_empty_log_groups.py
aagutu/aws-cloudwatch-log-minder
1ffc750eb50632405a6bd3441054241f1cb155dc
[ "Apache-2.0" ]
26
2019-10-12T09:02:25.000Z
2022-03-01T08:30:43.000Z
import json from datetime import datetime, timedelta from typing import List import boto3 from botocore.config import Config from .logger import log cw_logs = None def delete_empty_log_groups( log_group_name_prefix: str = None, dry_run: bool = False, region: str = None, profile: str = None, ): ...
31.84375
87
0.620216
016ed9d2efd9c6673988e75615e156e3013625dc
6,275
py
Python
deployment/train/train.py
christian-steinmeyer/deep-learning-v2-pytorch
04e7a994f461dd69b6c119056be86f411ef74ce4
[ "MIT" ]
null
null
null
deployment/train/train.py
christian-steinmeyer/deep-learning-v2-pytorch
04e7a994f461dd69b6c119056be86f411ef74ce4
[ "MIT" ]
null
null
null
deployment/train/train.py
christian-steinmeyer/deep-learning-v2-pytorch
04e7a994f461dd69b6c119056be86f411ef74ce4
[ "MIT" ]
null
null
null
import argparse import json import os import pickle import sys import sagemaker_containers import pandas as pd import torch import torch.optim as optim import torch.utils.data from model import LSTMClassifier def model_fn(model_dir): """Load the PyTorch model from the `model_dir` directory.""" print("Loading ...
37.801205
107
0.656255
05b031bbb883d8fe0908178a4eb432e961f4956e
478
py
Python
2018/12b.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
4
2018-12-04T23:33:46.000Z
2021-12-07T17:33:27.000Z
2018/12b.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
17
2018-12-12T23:32:09.000Z
2020-01-04T15:50:31.000Z
2018/12b.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pytest DAY=12 def get_sum(i): assert i >= 7447 return 485011 + (i-7447)*65 def test_get_sum(): assert get_sum(7447) == 485011 assert get_sum(7447+5) == get_sum(7447) + 65*5 if __name__ == '__main__': """ Found out the following while running the loop and printing the i and d...
19.12
91
0.675732
4679c38e2f720c37f303f8e837126e5157de23a1
378
py
Python
backend/app/tests/api.py
sweeneyngo/furspect
2753fd9c7a3436fe1e058707b4d9037e34561c26
[ "MIT" ]
null
null
null
backend/app/tests/api.py
sweeneyngo/furspect
2753fd9c7a3436fe1e058707b4d9037e34561c26
[ "MIT" ]
7
2021-08-10T06:31:07.000Z
2021-08-22T02:39:38.000Z
backend/app/tests/api.py
sweeneyngo/furspect
2753fd9c7a3436fe1e058707b4d9037e34561c26
[ "MIT" ]
null
null
null
from flask.ext.testing import TestCase from app.shared.models import db class MyTest(TestCase): SQLALCHEMY_DATABASE_URI = "sqlite://" TESTING = True def create_app(self): # pass in test configuration return create_app(self) def setUp(self): db.create_all() def tearDown...
18
41
0.642857