hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
4d75dcdaac4e59a64d7e6b04c1c8699938e036b2
1,058
py
Python
split_data.py
PontusOlausson/TweetsByDonald
f3a0cbea03eeaa0b2aa77f889ce2475677b46eed
[ "MIT" ]
null
null
null
split_data.py
PontusOlausson/TweetsByDonald
f3a0cbea03eeaa0b2aa77f889ce2475677b46eed
[ "MIT" ]
null
null
null
split_data.py
PontusOlausson/TweetsByDonald
f3a0cbea03eeaa0b2aa77f889ce2475677b46eed
[ "MIT" ]
1
2019-12-05T13:06:53.000Z
2019-12-05T13:06:53.000Z
import argparse import codecs import csv import numpy as np def main(): parser = argparse.ArgumentParser(description='split_data') parser.add_argument('--file', '-f', type=str, help='file from which to split data') arguments = parser.parse_args() ratio = 0.8 training_data = [] validation_da...
26.45
87
0.565217
44aa9dd9cd5f46f785efe54b161de83cc6d11d32
1,928
py
Python
srcs/python/kungfu/tensorflow/ops/adapt.py
Pandinosaurus/KungFu
80dfa463450330e920b413f65cc49d8e013b84a9
[ "Apache-2.0" ]
291
2019-10-25T16:37:59.000Z
2022-03-17T21:47:09.000Z
srcs/python/kungfu/tensorflow/ops/adapt.py
Pandinosaurus/KungFu
80dfa463450330e920b413f65cc49d8e013b84a9
[ "Apache-2.0" ]
56
2019-10-26T08:25:33.000Z
2021-09-07T11:11:51.000Z
srcs/python/kungfu/tensorflow/ops/adapt.py
Pandinosaurus/KungFu
80dfa463450330e920b413f65cc49d8e013b84a9
[ "Apache-2.0" ]
53
2019-10-25T17:45:40.000Z
2022-02-08T13:09:39.000Z
from ._tf_oplib import _op_lib from .state import counter def resize_cluster_from_url(): """Resize cluster from config server. Returns: A pair of scalar tensors (changed, detached) of type bool, {changed} indicates if the cluster has been changed, {detached} indicates if the current p...
30.603175
82
0.625519
f1f3635f7822fdd096c298af844e7eb7f4e79a1a
9,920
py
Python
slides/markmaker.py
kaitbr0/container.training
2669eae49b2da47656209e5ee19e5871b460c6d6
[ "Apache-2.0", "CC-BY-4.0" ]
2,218
2017-11-04T15:25:54.000Z
2022-03-30T10:07:50.000Z
slides/markmaker.py
kaitbr0/container.training
2669eae49b2da47656209e5ee19e5871b460c6d6
[ "Apache-2.0", "CC-BY-4.0" ]
345
2017-11-04T09:39:22.000Z
2022-03-30T19:56:37.000Z
slides/markmaker.py
kaitbr0/container.training
2669eae49b2da47656209e5ee19e5871b460c6d6
[ "Apache-2.0", "CC-BY-4.0" ]
808
2017-11-06T05:05:26.000Z
2022-03-29T06:57:35.000Z
#!/usr/bin/env python3 # transforms a YAML manifest into a HTML workshop file import glob import logging import os import re import string import subprocess import sys import yaml logging.basicConfig(level=os.environ.get("LOG_LEVEL", "INFO")) def anchor(title): title = title.lower().replace(' ', '-') title...
35.942029
135
0.626815
029a779a041b3fafe49ca199b7679a9100079eac
1,062
py
Python
built-in/PyTorch/Official/cv/image_object_detection/YoloV3_ID1790_for_PyTorch/configs/regnet/retinanet_regnetx-800MF_fpn_1x_coco.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/PyTorch/Official/cv/image_object_detection/YoloV3_ID1790_for_PyTorch/configs/regnet/retinanet_regnetx-800MF_fpn_1x_coco.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/PyTorch/Official/cv/image_object_detection/YoloV3_ID1790_for_PyTorch/configs/regnet/retinanet_regnetx-800MF_fpn_1x_coco.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
34.258065
74
0.680791
0b1da8fa0043a25c0c8df0b83027ff5c16390949
513
py
Python
lib/pavilion/plugins/sys_vars/sys_arch.py
ubccr/pavilion2
4c6d043b436761d9162d8824657f51cedc9907cc
[ "BSD-3-Clause" ]
1
2021-11-17T00:16:25.000Z
2021-11-17T00:16:25.000Z
lib/pavilion/plugins/sys_vars/sys_arch.py
ubccr/pavilion2
4c6d043b436761d9162d8824657f51cedc9907cc
[ "BSD-3-Clause" ]
null
null
null
lib/pavilion/plugins/sys_vars/sys_arch.py
ubccr/pavilion2
4c6d043b436761d9162d8824657f51cedc9907cc
[ "BSD-3-Clause" ]
null
null
null
import subprocess import pavilion.system_variables as system_plugins class SystemArch( system_plugins.SystemPlugin ): def __init__( self ): super().__init__( name='sys_arch', description="The system architecture.", priority=self.PRIO_CORE, is_deferable=Fals...
27
66
0.635478
e643b283a24420551325bf20f81fce8235cb76ab
23,166
py
Python
src/ralph/cmdb/api.py
xliiv/ralph
1747400613029c9ee492e099476c976a6bbdbad8
[ "Apache-2.0" ]
null
null
null
src/ralph/cmdb/api.py
xliiv/ralph
1747400613029c9ee492e099476c976a6bbdbad8
[ "Apache-2.0" ]
null
null
null
src/ralph/cmdb/api.py
xliiv/ralph
1747400613029c9ee492e099476c976a6bbdbad8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ReST CMDB API """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import operator # Monkeypatch Tastypie # fix in https://github.com/toastdriven/django-tastypie/pull...
30.282353
79
0.561513
738b8986be22365418c7e78ca30893e6a03223cb
24,220
py
Python
sdk/python/pulumi_azure/storage/zip_blob.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/storage/zip_blob.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/storage/zip_blob.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# 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, overload from .. import...
40.099338
147
0.63877
5b62fc1c4783c883213b9e26cd7b4a1bb47e1117
237
py
Python
hw1/Q1/deduplicate.py
DwyaneWan/CSE6242
db690e3206d328649404ef918e732704177499a4
[ "MIT" ]
null
null
null
hw1/Q1/deduplicate.py
DwyaneWan/CSE6242
db690e3206d328649404ef918e732704177499a4
[ "MIT" ]
null
null
null
hw1/Q1/deduplicate.py
DwyaneWan/CSE6242
db690e3206d328649404ef918e732704177499a4
[ "MIT" ]
1
2020-07-31T05:33:30.000Z
2020-07-31T05:33:30.000Z
lines_seen = set() # holds lines already seen outfile = open("graph2.csv", "w") for line in open("graph.csv", "r"): if line not in lines_seen: # not a duplicate outfile.write(line) lines_seen.add(line) outfile.close()
33.857143
48
0.658228
98cdd05f0622fe5023b9b6f3aca5ada7a540735a
751
py
Python
animations/archimedes/archimedes-demo.py
MichalTheProgrammer/approximating-pi
10e0d1bed2c9515f4214f7d5d05da809f6bd7298
[ "MIT" ]
null
null
null
animations/archimedes/archimedes-demo.py
MichalTheProgrammer/approximating-pi
10e0d1bed2c9515f4214f7d5d05da809f6bd7298
[ "MIT" ]
null
null
null
animations/archimedes/archimedes-demo.py
MichalTheProgrammer/approximating-pi
10e0d1bed2c9515f4214f7d5d05da809f6bd7298
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation import math FRAMES=150 FREEZE_FRAMES=100 n=10000 r=1 fx=[] for i in range(3, n): l = r * 2 * math.sin(math.radians(360 / 2 / i)) fx += [(l * i)/(2 * r)] x1=range(len(fx)) x,y=[],[] fig, ax = plt.subplots() ax.set_title('$\pi$ = 0',...
25.033333
85
0.621838
cda7c936fe93fdccd35ff9d36743808f81f969d5
13,697
py
Python
fire/completion.py
shushkaden/python-fire
2d4d30e3e1c35aa3099b91c17da74dc99e07757c
[ "Apache-2.0" ]
1
2019-05-27T01:38:43.000Z
2019-05-27T01:38:43.000Z
fire/completion.py
shushkaden/python-fire
2d4d30e3e1c35aa3099b91c17da74dc99e07757c
[ "Apache-2.0" ]
null
null
null
fire/completion.py
shushkaden/python-fire
2d4d30e3e1c35aa3099b91c17da74dc99e07757c
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
28.654812
80
0.678032
b86fb053af5101960dd2f3eca43c6f8e350af97d
4,225
py
Python
runs/Re200_St0.6_AR1.27_psi90/scripts/plot_wx_slices.py
mesnardo/petibm-rollingpitching
39f7ed9b88973727bed6955e31d99754d7627c9f
[ "BSD-3-Clause" ]
2
2021-09-06T03:37:06.000Z
2021-12-01T02:39:13.000Z
runs/Re200_St0.6_AR1.27_psi90/scripts/plot_wx_slices.py
mesnardo/petibm-rollingpitching
39f7ed9b88973727bed6955e31d99754d7627c9f
[ "BSD-3-Clause" ]
3
2020-03-30T21:52:01.000Z
2021-07-11T13:11:35.000Z
runs/Re200_St0.6_AR1.27_psi90/scripts/plot_wx_slices.py
mesnardo/petibm-rollingpitching
39f7ed9b88973727bed6955e31d99754d7627c9f
[ "BSD-3-Clause" ]
4
2021-02-22T21:54:16.000Z
2022-01-18T18:39:34.000Z
"""Plot the 2D slices of the streamwise vorticity at locations in the wake.""" import collections from matplotlib import pyplot, patches import numpy import pathlib from string import ascii_lowercase import yaml import petibmpy import rodney # Parse command line and set directories. args = rodney.parse_command_lin...
35.805085
78
0.613491
fc94a4a7799378b84f3a232b57f8c1d709a60891
3,537
py
Python
ramba/fileio.py
Python-for-HPC/ramba
75ec5e44947a7679e88c0bea44f3104480afdfc7
[ "BSD-2-Clause" ]
3
2021-09-30T19:11:58.000Z
2021-11-10T17:29:31.000Z
ramba/fileio.py
Python-for-HPC/ramba
75ec5e44947a7679e88c0bea44f3104480afdfc7
[ "BSD-2-Clause" ]
5
2021-09-30T13:47:38.000Z
2021-12-08T20:29:02.000Z
ramba/fileio.py
Python-for-HPC/ramba
75ec5e44947a7679e88c0bea44f3104480afdfc7
[ "BSD-2-Clause" ]
1
2021-10-24T00:42:49.000Z
2021-10-24T00:42:49.000Z
""" Copyright 2021 Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redist...
34.676471
755
0.65564
ff4b79e74b35a0b1d1778941325939d02808b0aa
7,579
py
Python
pythia/modules/embeddings.py
zean-wen/mmgnn_textvqa
2cfe82ed54610975a1d4937f2032e5f4565ecbe7
[ "BSD-3-Clause" ]
35
2020-03-06T13:05:17.000Z
2021-07-30T15:12:00.000Z
pythia/modules/embeddings.py
zean-wen/mmgnn_textvqa
2cfe82ed54610975a1d4937f2032e5f4565ecbe7
[ "BSD-3-Clause" ]
1
2021-01-12T01:45:54.000Z
2021-03-17T00:44:47.000Z
pythia/modules/embeddings.py
zean-wen/mmgnn_textvqa
2cfe82ed54610975a1d4937f2032e5f4565ecbe7
[ "BSD-3-Clause" ]
11
2020-03-07T08:10:15.000Z
2021-06-24T05:39:36.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # TODO: Update kwargs with defaults import os import pickle from functools import lru_cache import numpy as np import torch from torch import nn from pythia.modules.attention import AttentionLayer from pythia.modules.layers import Identity from pythia.utils.vocab imp...
31.978903
108
0.634516
28149579cda598c0ce0e62680641e2ec7f510bc3
2,184
py
Python
ansible-devel/test/support/windows-integration/plugins/modules/win_file.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/support/windows-integration/plugins/modules/win_file.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/support/windows-integration/plugins/modules/win_file.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2015, Jon Hawkesworth (@jhawkesworth) <figs@unity.demon.co.uk> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['stableinterface'], ...
30.760563
92
0.677656
9241f3ae1f0f946795f1491f065e13a7b075e4cd
1,143
py
Python
Adafruit_ILI9341/__init__.py
ricksterhd123/Adafruit_Python_ILI9341
fc5c279891983bd02bb308221fb30aebfcac7c6a
[ "MIT" ]
71
2015-01-19T19:14:12.000Z
2021-12-13T12:58:50.000Z
Builds/Stethoscope/Adafruit ILI9341 (ILI9340) TFT Library/Adafruit_ILI9341/__init__.py
dash-orlando/magneto
da619b58b3e3c0ba9d6ac149e8902d8fc4614ccb
[ "MIT" ]
11
2015-01-02T23:42:40.000Z
2019-10-24T22:58:20.000Z
Builds/Stethoscope/Adafruit ILI9341 (ILI9340) TFT Library/Adafruit_ILI9341/__init__.py
dash-orlando/magneto
da619b58b3e3c0ba9d6ac149e8902d8fc4614ccb
[ "MIT" ]
52
2015-03-06T00:27:40.000Z
2022-01-20T00:10:30.000Z
# Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, m...
51.954545
79
0.779528
c60997efd938956b08b7cc535fcc1528599d53eb
21,608
py
Python
n3ml/layer.py
neurom-iot/n3ml
39c6b50661f293d58b4b37ef613643860724bb24
[ "MIT" ]
11
2019-03-15T17:20:54.000Z
2022-03-01T08:25:36.000Z
n3ml/layer.py
neurom-iot/n3ml
39c6b50661f293d58b4b37ef613643860724bb24
[ "MIT" ]
7
2019-03-15T16:02:51.000Z
2021-12-03T08:17:06.000Z
n3ml/layer.py
neurom-iot/n3ml
39c6b50661f293d58b4b37ef613643860724bb24
[ "MIT" ]
9
2019-10-14T12:38:19.000Z
2021-12-02T04:49:28.000Z
import torch import torch.nn as nn import torch.autograd as autograd class Layer(torch.nn.Module): def __init__(self): super(Layer, self).__init__() class LIF1d(Layer): """ 현재 구현된 threshold와 leakage는 layer-wise scheme으로 볼 수 있다. 그러나, neuron-wise scheme의 지원이 필요할 수 있다. """ def __init__(...
36.936752
140
0.589828
ac4773091f84e32617c71e62d0a0ee24e561dce1
628
py
Python
newsroom/migrations/0046_auto_20161213_1722.py
danielsinaga1/djangonewsfix
04b84240daabb840c1e715fbade8ae15b3b0f22c
[ "BSD-3-Clause" ]
19
2018-01-28T14:35:40.000Z
2020-12-04T03:04:02.000Z
newsroom/migrations/0046_auto_20161213_1722.py
danielsinaga1/djangonewsfix
04b84240daabb840c1e715fbade8ae15b3b0f22c
[ "BSD-3-Clause" ]
8
2018-06-02T14:28:28.000Z
2021-08-06T10:22:37.000Z
newsroom/migrations/0046_auto_20161213_1722.py
danielsinaga1/djangonewsfix
04b84240daabb840c1e715fbade8ae15b3b0f22c
[ "BSD-3-Clause" ]
21
2018-02-25T14:07:48.000Z
2020-05-28T23:10:52.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.12 on 2016-12-13 15:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('newsroom', '0045_article_notified_authors'), ] operations = [ migrations.Al...
24.153846
63
0.600318
470e134fa7bc3464c7650fcdbf7e4994820926b4
3,112
py
Python
train.py
ntn0de/NBR
d82417001d2287d6483a8e55f3bea299ae5487fb
[ "MIT" ]
null
null
null
train.py
ntn0de/NBR
d82417001d2287d6483a8e55f3bea299ae5487fb
[ "MIT" ]
null
null
null
train.py
ntn0de/NBR
d82417001d2287d6483a8e55f3bea299ae5487fb
[ "MIT" ]
null
null
null
from preprocess import * import keras from keras.models import Sequential from keras.models import load_model from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPooling2D from keras.utils import to_categorical # Second dimension of the feature is dim2 feature_dim_2 = 11 # Save data to array file first sav...
28.036036
124
0.732326
ba9a8bb7ea483238c0d96b22c353082abdd0b8da
3,840
py
Python
code/adversarialbox/attacks.py
kaushik-rohit/reliable_ai
fd8593b0008a175c09f42b7a33f9434d69077b5f
[ "MIT" ]
1
2019-02-06T07:53:15.000Z
2019-02-06T07:53:15.000Z
past_src/20defense/22olddefense/resource/pytorch-adversarial_box-master/adversarialbox/attacks.py
5loaves-2fish-12basckets/ADF_studies
ea2a8eaebf994350e32501ddfc76258aa89bd880
[ "MIT" ]
null
null
null
past_src/20defense/22olddefense/resource/pytorch-adversarial_box-master/adversarialbox/attacks.py
5loaves-2fish-12basckets/ADF_studies
ea2a8eaebf994350e32501ddfc76258aa89bd880
[ "MIT" ]
null
null
null
import copy import numpy as np from collections import Iterable from scipy.stats import truncnorm import torch import torch.nn as nn from adversarialbox.utils import to_var # --- White-box attacks --- class FGSMAttack(object): def __init__(self, model=None, epsilon=None): """ One step fast gradi...
29.312977
77
0.613021
1325be36acc526dfe3b3e260e56c6ed3aae21ecf
3,444
py
Python
Algorithm.Python/ETFConstituentUniverseCompositeDelistingRegressionAlgorithmNoAddEquityETF.py
BlackBoxAM/Lean
5ea9f04b104d27f0fcfe3a383a3a60ca12206d99
[ "Apache-2.0" ]
6,580
2015-01-12T16:48:44.000Z
2022-03-31T22:05:09.000Z
Algorithm.Python/ETFConstituentUniverseCompositeDelistingRegressionAlgorithmNoAddEquityETF.py
BlackBoxAM/Lean
5ea9f04b104d27f0fcfe3a383a3a60ca12206d99
[ "Apache-2.0" ]
3,392
2015-01-12T17:44:07.000Z
2022-03-30T20:34:03.000Z
Algorithm.Python/ETFConstituentUniverseCompositeDelistingRegressionAlgorithmNoAddEquityETF.py
BlackBoxAM/Lean
5ea9f04b104d27f0fcfe3a383a3a60ca12206d99
[ "Apache-2.0" ]
3,354
2015-01-12T16:58:31.000Z
2022-03-31T00:56:03.000Z
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 Licen...
49.913043
211
0.720674
c89d1e785d0fee679f22796149154542834d2ab5
695
py
Python
tests/test_validate.py
balihoo/blambda
305e55a6c02ba99d2d6fa2086202442cfb4c1108
[ "MIT" ]
null
null
null
tests/test_validate.py
balihoo/blambda
305e55a6c02ba99d2d6fa2086202442cfb4c1108
[ "MIT" ]
2
2020-03-23T17:33:12.000Z
2021-06-29T10:32:35.000Z
tests/test_validate.py
balihoo/blambda
305e55a6c02ba99d2d6fa2086202442cfb4c1108
[ "MIT" ]
2
2017-10-03T21:40:35.000Z
2017-10-25T17:02:31.000Z
from pathlib import Path from unittest import TestCase from blambda.utils.lambda_manifest import LambdaManifest from blambda.validate import compare_source_files_to_manifest class TestValidation(TestCase): def test_flat(self): manifest = LambdaManifest(Path(__file__).parent / 'data' / 'validate' / 'valid...
43.4375
108
0.761151
ffb6c8a96f9ead342130185cd65bd0c845a1d1a7
4,597
py
Python
ctapipe/tools/dump_instrument.py
orelgueta/ctapipe
ee28440e83cc283ccd57428d5fdad764a1e786f0
[ "BSD-3-Clause" ]
null
null
null
ctapipe/tools/dump_instrument.py
orelgueta/ctapipe
ee28440e83cc283ccd57428d5fdad764a1e786f0
[ "BSD-3-Clause" ]
null
null
null
ctapipe/tools/dump_instrument.py
orelgueta/ctapipe
ee28440e83cc283ccd57428d5fdad764a1e786f0
[ "BSD-3-Clause" ]
null
null
null
""" Dump instrumental descriptions in a monte-carlo (simtelarray) input file to FITS files that can be loaded independently (e.g. with CameraGeometry.from_table()). The name of the output files are automatically generated. """ from collections import defaultdict import numpy as np from astropy import units as u f...
33.311594
79
0.594953
bc8a7a25e992c25307048b71c588877cb36f704e
10,900
py
Python
tf_api_gateway/tf_api_gateway.py
yo61/tf_api_gateway
609abc4b74f377a1a33cd07a634fa75153739829
[ "Apache-2.0" ]
null
null
null
tf_api_gateway/tf_api_gateway.py
yo61/tf_api_gateway
609abc4b74f377a1a33cd07a634fa75153739829
[ "Apache-2.0" ]
null
null
null
tf_api_gateway/tf_api_gateway.py
yo61/tf_api_gateway
609abc4b74f377a1a33cd07a634fa75153739829
[ "Apache-2.0" ]
null
null
null
import sys import traceback import json import requests class apiGateway(object): def __init__(self, api_token, organization, **kwargs): """ Initializes the class object Args: api_token (str): Terraform Enterprise access token organization (str): Terraform username ...
31.054131
146
0.585963
daf5829e021d5e047a5ec470fce364f548b50be4
362
py
Python
tracardi/domain/segments.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
153
2021-11-02T00:35:41.000Z
2022-03-25T16:37:44.000Z
tracardi/domain/segments.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
243
2021-10-17T17:00:22.000Z
2022-03-28T10:13:34.000Z
tracardi/domain/segments.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
17
2021-06-29T13:13:18.000Z
2021-10-17T10:52:57.000Z
# from tracardi.event_server.service.persistence_service import PersistenceService # from tracardi.service.storage.collection_crud import CollectionCrud # from tracardi.service.storage.elastic_storage import ElasticStorage # # # class Segments(list): # # # Persistence # def bulk(self) -> CollectionCrud: # ...
32.909091
82
0.773481
73b1fa5e206270d17a3626c6722d87eba724cd98
4,624
py
Python
test/comparator/test_message_comparator.py
chingor13/proto-breaking-change-detector
688ea1f4f3a9d32ec9d2b52b1f2a69b768066ebd
[ "Apache-2.0" ]
null
null
null
test/comparator/test_message_comparator.py
chingor13/proto-breaking-change-detector
688ea1f4f3a9d32ec9d2b52b1f2a69b768066ebd
[ "Apache-2.0" ]
null
null
null
test/comparator/test_message_comparator.py
chingor13/proto-breaking-change-detector
688ea1f4f3a9d32ec9d2b52b1f2a69b768066ebd
[ "Apache-2.0" ]
null
null
null
# 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,...
45.782178
87
0.698097
b5b80a11ae7e15cf2647635a74741db132dae24f
321
py
Python
custom/icds_reports/migrations/0142_gm_column_agg_awc.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
custom/icds_reports/migrations/0142_gm_column_agg_awc.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2021-06-02T04:45:16.000Z
2021-06-02T04:45:16.000Z
custom/icds_reports/migrations/0142_gm_column_agg_awc.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 1.11.16 on 2019-10-28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('icds_reports', '0141_remove_pse_eligible_daily'), ] operations = [ migrations.RunSQL("ALTER table agg_awc ADD COLUMN awc_with_gm_devices INTEGER") ]...
21.4
87
0.700935
04766d95a5e441234390bff8bd996acff6d9799e
305
py
Python
code/kamera-io/python/webcamden-oku.py
BASARIRR/computer-vision-guide
0a11726fb2be0cad63738ab45fd4edc4515441d2
[ "MIT" ]
230
2019-01-17T01:00:53.000Z
2022-03-31T18:00:09.000Z
code/kamera-io/python/webcamden-oku.py
sturlu/goruntu-isleme-kilavuzu
e9377ace3823ca5f2d06ca78a11884256539134d
[ "MIT" ]
8
2019-05-03T07:44:50.000Z
2022-02-10T00:14:38.000Z
code/kamera-io/python/webcamden-oku.py
sturlu/goruntu-isleme-kilavuzu
e9377ace3823ca5f2d06ca78a11884256539134d
[ "MIT" ]
71
2019-01-17T12:11:06.000Z
2022-03-03T22:02:46.000Z
import cv2 #Varsayılan kamera aygıtına bağlan cap = cv2.VideoCapture(0) while(True): # görüntü oku ret, frame = cap.read() # alınan görüntüyü göster cv2.imshow('frame',frame) if cv2.waitKey(1) & 0xFF == ord('q'): break # kamerayı kapat cap.release() cv2.destroyAllWindows()
17.941176
41
0.659016
5ab86b2c44d0d3f11d698806fe7eb19931c374c8
12,357
py
Python
mslib/msui/_tests/test_topview.py
plant99/MSS
4d1cef8d3822000d8f5a1a88bdeec714fda70adb
[ "Apache-2.0" ]
null
null
null
mslib/msui/_tests/test_topview.py
plant99/MSS
4d1cef8d3822000d8f5a1a88bdeec714fda70adb
[ "Apache-2.0" ]
null
null
null
mslib/msui/_tests/test_topview.py
plant99/MSS
4d1cef8d3822000d8f5a1a88bdeec714fda70adb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ mslib.msui._tests.test_topview ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module provides pytest functions to tests msui.topview This file is part of mss. :copyright: Copyright 2017 Joern Ungermann :copyright: Copyright 2017-2020 by the mss team, see AUTHORS. :licens...
43.664311
106
0.70017
e8442605fc3c690991d9c8c0408f0b62b9cd9532
1,671
py
Python
parser/python/setup.py
kiritigowda/NNEF-Tools
c3391f9269417ef83f4ffa798c703067a8404000
[ "Apache-2.0" ]
1
2019-08-28T11:58:52.000Z
2019-08-28T11:58:52.000Z
parser/python/setup.py
Acidburn0zzz/NNEF-Tools
f9bcb3e043474d47f6a8a552abcc6d1069476072
[ "Apache-2.0" ]
null
null
null
parser/python/setup.py
Acidburn0zzz/NNEF-Tools
f9bcb3e043474d47f6a8a552abcc6d1069476072
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 The Khronos Group Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
32.764706
74
0.636146
e04b23b23e5db0d7320571ba8dfaab3a7a566bd3
201
py
Python
isserviceup/services/dyn.py
EvgeshaGars/is-service-up
9df5ebb1fbb09102300518855aaa35c0a84bb2bf
[ "Apache-2.0" ]
182
2016-10-23T19:08:04.000Z
2021-03-23T07:01:17.000Z
isserviceup/services/dyn.py
EvgeshaGars/is-service-up
9df5ebb1fbb09102300518855aaa35c0a84bb2bf
[ "Apache-2.0" ]
22
2016-10-25T07:20:23.000Z
2017-05-18T19:53:11.000Z
isserviceup/services/dyn.py
EvgeshaGars/is-service-up
9df5ebb1fbb09102300518855aaa35c0a84bb2bf
[ "Apache-2.0" ]
37
2016-10-24T05:50:51.000Z
2021-12-09T18:41:08.000Z
from isserviceup.services.models.statuspage import StatusPagePlugin class Dyn(StatusPagePlugin): name = 'Dyn' status_url = 'https://www.dynstatus.com/' icon_url = '/images/icons/dyn.png'
25.125
67
0.731343
09481410c2d54aae7f933aead6baa27da0e73970
410
py
Python
sqla_nose.py
ContextLogic/sqlalchemy
b7adfe5e4d9baa61169ba79aa5ba8f64f0ff7645
[ "MIT" ]
8
2017-07-18T18:35:10.000Z
2022-02-01T19:52:57.000Z
sqla_nose.py
RetailArchitects/sqlalchemy
399a5c96b2fd0e0f2f0cdda7766b31e37454eb2e
[ "MIT" ]
null
null
null
sqla_nose.py
RetailArchitects/sqlalchemy
399a5c96b2fd0e0f2f0cdda7766b31e37454eb2e
[ "MIT" ]
6
2017-07-26T08:51:10.000Z
2021-03-04T10:16:37.000Z
#!/usr/bin/env python """ nose runner script. This script is a front-end to "nosetests" which installs SQLAlchemy's testing plugin into the local environment. """ import sys from os import path for pth in ['.', './lib']: sys.path.insert(0, path.join(path.dirname(path.abspath(__file__)), pth)) from test.bootstra...
20.5
76
0.739024
7dc5df62d27d36501cf8a9f6836830f644846ce5
29,327
py
Python
scripts/release_scripts/update_configs_test.py
Tim810306/oppia
6f90044d12dbe0979c999265cbe46f267c4c592d
[ "Apache-2.0" ]
2
2021-05-24T10:23:32.000Z
2021-08-22T18:50:14.000Z
scripts/release_scripts/update_configs_test.py
Tim810306/oppia
6f90044d12dbe0979c999265cbe46f267c4c592d
[ "Apache-2.0" ]
11
2021-03-03T07:21:27.000Z
2022-03-12T01:03:44.000Z
scripts/release_scripts/update_configs_test.py
Tim810306/oppia
6f90044d12dbe0979c999265cbe46f267c4c592d
[ "Apache-2.0" ]
1
2020-12-09T21:33:49.000Z
2020-12-09T21:33:49.000Z
# coding: utf-8 # # Copyright 2019 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
47.686179
80
0.622225
4a68dd478929af852bb5d2b0a43ddc3c2569e409
17,391
py
Python
snsim/sample.py
bcarreres/snsim
86ffc49f254cd89c74be9c3350c00982e3d216e2
[ "BSD-3-Clause" ]
5
2021-07-14T18:23:59.000Z
2022-02-02T13:09:55.000Z
snsim/sample.py
bcarreres/snsim
0ff67bbd0c597c0c7c60b4791eb491eb18b22be6
[ "BSD-3-Clause" ]
7
2021-02-25T15:19:59.000Z
2021-11-24T08:24:55.000Z
snsim/sample.py
bcarreres/snsim
0ff67bbd0c597c0c7c60b4791eb491eb18b22be6
[ "BSD-3-Clause" ]
1
2021-05-19T11:25:18.000Z
2021-05-19T11:25:18.000Z
"""SimSample class used to store simulations.""" import os import copy import numpy as np import matplotlib.pyplot as plt import pandas as pd from . import utils as ut from . import scatter as sct from . import plot_utils as plot_ut from . import dust_utils as dst_ut from . import io_utils as io_ut np.warnings.filter...
29.476271
95
0.513886
1c501dd5836d1920e6591f92832fbd2d098baebd
782
py
Python
dskc/clean/dtype.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/clean/dtype.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/clean/dtype.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
import pandas as pd def column_to_int(df, column): values = [] for v in df[column]: values.append(int(v)) df[column] = values def column_to_date(df, column, format="%Y-%m-%d"): try: df[column] = pd.to_datetime(df[column]) except: df[column] = pd.to_datetime(df[column], f...
20.578947
69
0.589514
606e670f79579e4ffea7168a620fbb15c08a5ec8
2,686
py
Python
hotspotter/extern_feat.py
Erotemic/hotspotter
3cfa4015798e21385455b937f9083405c4b3cf53
[ "Apache-2.0" ]
2
2015-07-19T02:55:06.000Z
2021-07-07T02:38:26.000Z
hotspotter/extern_feat.py
Erotemic/hotspotter
3cfa4015798e21385455b937f9083405c4b3cf53
[ "Apache-2.0" ]
5
2017-03-11T16:30:26.000Z
2021-04-10T16:42:10.000Z
hotspotter/extern_feat.py
Erotemic/hotspotter
3cfa4015798e21385455b937f9083405c4b3cf53
[ "Apache-2.0" ]
10
2015-07-19T03:05:42.000Z
2021-08-24T14:48:59.000Z
from __future__ import division, print_function from hscom import __common__ (print, print_, print_on, print_off, rrr, profile) = __common__.init(__name__, '[extern_feat]') # Standard import os import sys from os.path import dirname, realpath, join # Scientific import numpy as np OLD_HESAFF = False or '--oldhesaff' i...
28.88172
76
0.700298
54372a1bfe95228628c100aadf51f104307b44b1
1,027
py
Python
ffiwrappers/src/old/ffi_pyroutines.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
22
2016-12-14T11:20:07.000Z
2021-08-13T15:23:41.000Z
ffiwrappers/src/old/ffi_pyroutines.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
30
2017-06-27T09:15:38.000Z
2020-09-11T18:16:37.000Z
ffiwrappers/src/old/ffi_pyroutines.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
20
2017-07-02T03:45:49.000Z
2019-12-11T17:19:01.000Z
""" Toy code that exposes some Python routines to C through CFFI Based on https://www.mrao.cam.ac.uk/~bn204/publications/2017/2017-01-breakin.pdf """ import collections import cffi ff = cffi.FFI() # Create a new object type containing C-readable function address ffi_func = collections.namedtuple("CFFI_func", "addre...
22.822222
80
0.69815
9b312bdeaa80ae1d77b4107c84fa29a43467a69b
13,998
py
Python
chromeperf/src/chromeperf/pinpoint/evaluators/test_runner.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
null
null
null
chromeperf/src/chromeperf/pinpoint/evaluators/test_runner.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
chromeperf/src/chromeperf/pinpoint/evaluators/test_runner.py
NDevTK/chromium-infra
d38e088e158d81f7f2065a38aa1ea1894f735ec4
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import dataclasses import itertools import json import logging import typing from google.cloud import datastore from google.protobuf import any_pb2 from ch...
38.883333
86
0.57794
132d4a3c590d5d42303519104674f8e5d4f4425d
1,005
py
Python
models/site.py
FelipeCostaAraujo/flask-hoteis
301834b97c75bd0b0a7348c87930bbb335699f01
[ "MIT" ]
1
2021-02-27T05:09:56.000Z
2021-02-27T05:09:56.000Z
models/site.py
FelipeCostaAraujo/flask-hoteis
301834b97c75bd0b0a7348c87930bbb335699f01
[ "MIT" ]
null
null
null
models/site.py
FelipeCostaAraujo/flask-hoteis
301834b97c75bd0b0a7348c87930bbb335699f01
[ "MIT" ]
null
null
null
from sql_alchemy import db class SiteModel(db.Model): __tablename__ = 'sites' site_id = db.Column(db.Integer, primary_key=True) url = db.Column(db.String(80)) hoteis = db.relationship('HotelModel') def __init__(self, url): self.url = url def json(self): return { '...
23.928571
61
0.5801
d38930438177ab81f68e9f8ab3d7f356c90b4ef7
6,095
py
Python
day1/kapua-python-client/swagger_client/models/endpoint_info_list_result.py
liang-faan/SmartIOT-Diec
8336a4b558295295f10a82cf350d8b7ff3fb9f5c
[ "MIT" ]
5
2019-05-30T02:55:16.000Z
2020-03-03T14:18:23.000Z
day1/kapua-python-client/swagger_client/models/endpoint_info_list_result.py
liang-faan/SmartIOT-Diec
8336a4b558295295f10a82cf350d8b7ff3fb9f5c
[ "MIT" ]
3
2019-12-27T00:53:23.000Z
2020-02-17T05:29:19.000Z
day1/kapua-python-client/swagger_client/models/endpoint_info_list_result.py
liang-faan/SmartIOT-Diec
8336a4b558295295f10a82cf350d8b7ff3fb9f5c
[ "MIT" ]
4
2019-06-04T06:26:14.000Z
2021-01-07T04:25:32.000Z
# coding: utf-8 """ Eclipse Kapua REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 i...
27.454955
119
0.587203
9b3193eb709d77cd73a491279c51c0b1f0727630
772
py
Python
app/__init__.py
Hillarydalie/Miradi
a27084b079737e7c167921b86707afecb3012b6d
[ "MIT" ]
null
null
null
app/__init__.py
Hillarydalie/Miradi
a27084b079737e7c167921b86707afecb3012b6d
[ "MIT" ]
2
2019-09-25T14:02:38.000Z
2021-06-02T00:27:19.000Z
app/__init__.py
Hillarydalie/Miradi
a27084b079737e7c167921b86707afecb3012b6d
[ "MIT" ]
null
null
null
from flask import Flask from config import configurations from flask_login import login_manager,LoginManager from flask_sqlalchemy import SQLAlchemy from flask_uploads import UploadSet,configure_uploads,IMAGES app = Flask(__name__) db = SQLAlchemy(app) login_manager = LoginManager(app) login_manager.login_view = "aut...
30.88
60
0.804404
6fe6cf6f75648c00d865ee30dc4868968c8cf99a
6,624
py
Python
UMLRT2Kiltera_MM/Properties/Multiplicity/Himesis/HNew1ProcPart1_CompleteLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UMLRT2Kiltera_MM/Properties/Multiplicity/Himesis/HNew1ProcPart1_CompleteLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
UMLRT2Kiltera_MM/Properties/Multiplicity/Himesis/HNew1ProcPart1_CompleteLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis, HimesisPreConditionPatternLHS import cPickle as pickle from uuid import UUID class HNew1ProcPart1_CompleteLHS(HimesisPreConditionPatternLHS): def __init__(self): """ Creates the himesis graph representing the AToM3 model HNew1ProcPart1_CompleteLHS. """ ...
45.682759
117
0.529287
a730227a6df1e01490f053156267705b6ad70740
33,031
py
Python
huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_response.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ShowInstanceResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict...
28.42599
753
0.622779
a6cd2f202beb52ed5e50c8d897613202fe6d004a
3,724
py
Python
setup.py
pjstanle/floris
ec89c144d1ec560c447d5da2e6207e6a20ce0709
[ "Apache-2.0" ]
null
null
null
setup.py
pjstanle/floris
ec89c144d1ec560c447d5da2e6207e6a20ce0709
[ "Apache-2.0" ]
null
null
null
setup.py
pjstanle/floris
ec89c144d1ec560c447d5da2e6207e6a20ce0709
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 NREL # 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 # distri...
32.103448
81
0.674275
3f1891dcabfd113e73b1859b69085ccbc6d6553f
2,005
py
Python
alipay/helpers.py
freeyoung/django-alipay3
34b8ea95229ab03eddc299be7da6219bb56ef25f
[ "MIT" ]
null
null
null
alipay/helpers.py
freeyoung/django-alipay3
34b8ea95229ab03eddc299be7da6219bb56ef25f
[ "MIT" ]
null
null
null
alipay/helpers.py
freeyoung/django-alipay3
34b8ea95229ab03eddc299be7da6219bb56ef25f
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import hashlib import socket import struct import urllib.request, urllib.parse, urllib.error from alipay import conf def address_in_network(ip, net): """ Is an address in a network ip: 192.168.2.2 net:("192.168.2.0/24",) """ ipaddr = struct.unpack('=L', socket.inet_ato...
26.038961
96
0.588529
48b800df12213b012264482ad208343c6c401624
12,203
py
Python
superset/sql_lab.py
ericandrewmeadows/incubator-superset
b1269c31f730a4ee6fe5c72ae5e7394d27db3873
[ "Apache-2.0" ]
null
null
null
superset/sql_lab.py
ericandrewmeadows/incubator-superset
b1269c31f730a4ee6fe5c72ae5e7394d27db3873
[ "Apache-2.0" ]
null
null
null
superset/sql_lab.py
ericandrewmeadows/incubator-superset
b1269c31f730a4ee6fe5c72ae5e7394d27db3873
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.766382
86
0.65025
5e27566d786aaaad4cac90e6cf590ba8143dfd92
1,189
py
Python
audioled/input.py
jdog4783/audio-reactive-led-strip-1
0ae4d1e0d30f637ac74023d7d1778d697d33822c
[ "MIT" ]
1
2021-06-27T00:27:55.000Z
2021-06-27T00:27:55.000Z
audioled/input.py
jdog4783/audio-reactive-led-strip-1
0ae4d1e0d30f637ac74023d7d1778d697d33822c
[ "MIT" ]
null
null
null
audioled/input.py
jdog4783/audio-reactive-led-strip-1
0ae4d1e0d30f637ac74023d7d1778d697d33822c
[ "MIT" ]
null
null
null
from audioled import effect from audioled import opc_server class CandyServer(effect.Effect): def __init__(self, num_pixels, host = '', port = 7891): self.num_pixels = num_pixels self.host = host self.port = port self.__initstate__() def __initstate__(self): super().__in...
29
67
0.58873
42820dedb86250d4fbe5897b7fdbfe4349ca95ca
17,531
py
Python
tools/multi_gpu_train.py
sergiev/R3Det_Tensorflow
df8e1bf6ca8aa9ad0123ce0b1106639374c6d636
[ "MIT" ]
null
null
null
tools/multi_gpu_train.py
sergiev/R3Det_Tensorflow
df8e1bf6ca8aa9ad0123ce0b1106639374c6d636
[ "MIT" ]
null
null
null
tools/multi_gpu_train.py
sergiev/R3Det_Tensorflow
df8e1bf6ca8aa9ad0123ce0b1106639374c6d636
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import division import tensorflow as tf import tensorflow.contrib.slim as slim import os import sys import numpy as np import time sys.path.append("../") from libs.configs import cfgs from libs.network...
46.625
129
0.526097
1fcb2636d07f7413d0ab4956427b9c52fd650693
791
py
Python
Python/yt-downloader.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
Python/yt-downloader.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
Python/yt-downloader.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
from pytube import YouTube url = input("Enter The Link Of The Video: ") print("The Link Is : " + url) yt = YouTube(url) print(f"The Title Of The Video Is : {yt.title}") print(f"The Views Of The Video Is : {yt.views}") print(f"The Length Of The Video Is : {yt.length}") print(f"The Channel Who Post The Video Is : {yt....
27.275862
102
0.630847
fe4e59410076a55ee791beb8a1674339113430b4
7,862
py
Python
ambari-server/src/test/python/stacks/utils/RMFTestCase.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-server/src/test/python/stacks/utils/RMFTestCase.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/utils/RMFTestCase.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
#!/usr/bin/env python ''' 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")...
38.539216
133
0.697151
6fc9965ec17c3cceb48bcd6e85ab9f56775cc831
886
py
Python
sros2/test/conftest.py
eboasson/sros2
219dd9fbd7d27b55e131648eb2408a50859983d4
[ "Apache-2.0" ]
58
2016-12-23T08:33:00.000Z
2022-03-22T21:32:03.000Z
sros2/test/conftest.py
eboasson/sros2
219dd9fbd7d27b55e131648eb2408a50859983d4
[ "Apache-2.0" ]
233
2017-03-23T16:35:39.000Z
2022-03-23T19:43:23.000Z
sros2/test/conftest.py
eboasson/sros2
219dd9fbd7d27b55e131648eb2408a50859983d4
[ "Apache-2.0" ]
37
2017-07-06T16:21:49.000Z
2021-09-07T00:28:36.000Z
# Copyright 2019 Apex.AI, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
31.642857
84
0.756208
c93a9da796e2ff2ec9a6a7d08b7952bd31adb3c9
4,391
py
Python
StanCode projects/SC101_Assignment4/SC101_Assignment4/babynames.py
Johsuanho/SC-projects
a168bd041726872021593591edf69e2e6aa0f1b2
[ "MIT" ]
null
null
null
StanCode projects/SC101_Assignment4/SC101_Assignment4/babynames.py
Johsuanho/SC-projects
a168bd041726872021593591edf69e2e6aa0f1b2
[ "MIT" ]
null
null
null
StanCode projects/SC101_Assignment4/SC101_Assignment4/babynames.py
Johsuanho/SC-projects
a168bd041726872021593591edf69e2e6aa0f1b2
[ "MIT" ]
null
null
null
""" SC101 Baby Names Project Adapted from Nick Parlante's Baby Names assignment by Jerry Liao. YOUR DESCRIPTION HERE """ import sys def add_data_for_name(name_data, year, rank, name): """ Adds the given year and rank to the associated name in the name_data dict. Input: name_data (dict): dict ho...
29.07947
84
0.629697
06b218848df786f594d234f3ada710e4048457b4
1,538
py
Python
examples/cloud/create-server-name-or-id.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
99
2018-03-28T15:41:45.000Z
2022-01-23T17:22:13.000Z
examples/cloud/create-server-name-or-id.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
208
2020-02-10T08:27:46.000Z
2022-03-29T15:24:21.000Z
examples/cloud/create-server-name-or-id.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
104
2018-04-06T14:33:54.000Z
2022-03-01T01:58:09.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 # distributed under t...
39.435897
75
0.691808
a3a1c845db2b59557702ac3aaaeeb3b8f645b575
22,147
py
Python
lenstronomy/Workflow/psf_fitting.py
DarthLazar/lenstronomy
64f72a89bb08ef19d3641b7e5e048238632e9094
[ "MIT" ]
107
2017-08-25T20:03:51.000Z
2022-03-30T19:52:21.000Z
lenstronomy/Workflow/psf_fitting.py
pierrefleury/lenstronomy
5973f9b45761bab434bb273a1882ca3b45f5264b
[ "MIT" ]
235
2017-06-07T13:30:53.000Z
2022-03-28T12:44:04.000Z
lenstronomy/Workflow/psf_fitting.py
pierrefleury/lenstronomy
5973f9b45761bab434bb273a1882ca3b45f5264b
[ "MIT" ]
68
2018-02-01T15:47:20.000Z
2022-03-27T12:44:32.000Z
from lenstronomy.Data.psf import PSF import lenstronomy.Util.util as util import lenstronomy.Util.image_util as image_util import lenstronomy.Util.kernel_util as kernel_util import lenstronomy.Util.mask_util as mask_util import numpy as np import copy import scipy.ndimage.interpolation as interp __all__ = ['PsfFittin...
56.497449
163
0.67955
d68681d70f49d80f6ef0f5fa3213c72f66849ad9
3,052
py
Python
lemur/tests/test_endpoints.py
bunjiboys/lemur
b5fd8020055d8af07bd6f82f4dd38246dca8d0c5
[ "Apache-2.0" ]
null
null
null
lemur/tests/test_endpoints.py
bunjiboys/lemur
b5fd8020055d8af07bd6f82f4dd38246dca8d0c5
[ "Apache-2.0" ]
2
2020-04-03T09:28:20.000Z
2020-04-04T04:56:35.000Z
lemur/tests/test_endpoints.py
scriptsrc/lemur
914de78576baf66d8f4c0365d8cedb27c6f70663
[ "Apache-2.0" ]
null
null
null
import pytest from lemur.endpoints.views import * # noqa from lemur.tests.factories import EndpointFactory, CertificateFactory from .vectors import VALID_ADMIN_HEADER_TOKEN, VALID_USER_HEADER_TOKEN def test_rotate_certificate(client, source_plugin): from lemur.deployment.service import rotate_certificate ...
31.142857
108
0.732962
b3447fdd320efe57f41d4afa45763c27b3561d2b
1,716
py
Python
src/recommendation/model/make_train_set.py
odobenuskr/2019_capstone_FlexAds
e37708484d983326806c0d6a0c5ae7157ea57e59
[ "MIT" ]
12
2019-03-08T15:49:24.000Z
2020-08-03T05:01:44.000Z
src/recommendation/model/make_train_set.py
kookmin-sw/2019-cap1-2019_4
e64aa4590ac58dca535024118ed4d4bd0b3eb699
[ "MIT" ]
63
2019-03-08T15:23:19.000Z
2019-06-01T07:10:23.000Z
src/recommendation/model/make_train_set.py
odobenuskr/2019_capstone_FlexAds
e37708484d983326806c0d6a0c5ae7157ea57e59
[ "MIT" ]
11
2019-03-10T02:12:24.000Z
2021-04-02T07:16:01.000Z
## 데이터 불러오는 부분 후에 수정 ## main에서 배열로 변경하는 작업 ## 생성한 feature를 추가하기 전 기본 train_set ''' make_train_set @ orders_df, train_df, product_df 에서 필요한 것들만 뽑아 merge @ 중간에 필요없는 것들은 삭제 ''' def make_train_set(): orders_df = pd.read_csv("orders.csv", usecols=["order_id","user_id","order_dow","order_hour_of_day"]) train_df =...
35.020408
105
0.65676
84b128f0226576e824a882627d1d78e005c14db2
11,981
py
Python
king_phisher/server/web_sockets.py
tanc7/king-phisher
457e42440603bd9ba241a688bbaad6eb32ed118e
[ "BSD-3-Clause" ]
null
null
null
king_phisher/server/web_sockets.py
tanc7/king-phisher
457e42440603bd9ba241a688bbaad6eb32ed118e
[ "BSD-3-Clause" ]
null
null
null
king_phisher/server/web_sockets.py
tanc7/king-phisher
457e42440603bd9ba241a688bbaad6eb32ed118e
[ "BSD-3-Clause" ]
1
2019-11-03T23:47:56.000Z
2019-11-03T23:47:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # king_phisher/server/web_sockets.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 # notic...
35.871257
129
0.755279
46023ee5089ac6839f28def96c974c5b17627909
23,768
py
Python
frappe/commands.py
gangadharkadam/vlinkfrappe
f7b7e4949b11db18619c7220664c88d17937eacf
[ "MIT" ]
null
null
null
frappe/commands.py
gangadharkadam/vlinkfrappe
f7b7e4949b11db18619c7220664c88d17937eacf
[ "MIT" ]
null
null
null
frappe/commands.py
gangadharkadam/vlinkfrappe
f7b7e4949b11db18619c7220664c88d17937eacf
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals, absolute_import import sys import os import subprocess import json import click import hashlib import cProfile import StringIO import pstats import frappe import frappe.utils ...
27.701632
245
0.751052
e791d8b68b84936188609b6d04bc3938b4dbadec
1,486
py
Python
apps/models/__init__.py
shiboyang/todolist
d59829cc55e062737196c6c4f5ef36758faaadb3
[ "MIT" ]
null
null
null
apps/models/__init__.py
shiboyang/todolist
d59829cc55e062737196c6c4f5ef36758faaadb3
[ "MIT" ]
null
null
null
apps/models/__init__.py
shiboyang/todolist
d59829cc55e062737196c6c4f5ef36758faaadb3
[ "MIT" ]
null
null
null
# @Time : 2021/9/14 13:42 # @Author : Boyang # @Site : # @File : __init__.py.py # @Software: PyCharm import time from sqlalchemy.orm import declarative_base, relationship from sqlalchemy import Column, Integer, String, ForeignKey, Boolean from apps.utils import gen_key, human_timestamp ModelBase = declara...
33.022222
111
0.713997
9a4426b54736ed8578711387fde02ffbdb5bfb39
3,924
py
Python
ansible/modules/hashivault/hashivault_init.py
svyotov/ansible-modules-hashivault
31fcc2406ff61a976061bf0f8fc57a606606e151
[ "MIT" ]
null
null
null
ansible/modules/hashivault/hashivault_init.py
svyotov/ansible-modules-hashivault
31fcc2406ff61a976061bf0f8fc57a606606e151
[ "MIT" ]
null
null
null
ansible/modules/hashivault/hashivault_init.py
svyotov/ansible-modules-hashivault
31fcc2406ff61a976061bf0f8fc57a606606e151
[ "MIT" ]
null
null
null
#!/usr/bin/env python from ansible.module_utils.hashivault import hashivault_argspec from ansible.module_utils.hashivault import hashivault_client from ansible.module_utils.hashivault import hashivault_init from ansible.module_utils.hashivault import hashiwrapper ANSIBLE_METADATA = {'status': ['stableinterface'], 'sup...
33.538462
167
0.673547
460c8266900aa4a7c9291cb51cb12715ca052719
571
py
Python
class4/ex5.py
patrebert/pynet_cert
b82cce3ddb20d9e4abc89d74579ddeb3513bdf55
[ "Apache-2.0" ]
null
null
null
class4/ex5.py
patrebert/pynet_cert
b82cce3ddb20d9e4abc89d74579ddeb3513bdf55
[ "Apache-2.0" ]
null
null
null
class4/ex5.py
patrebert/pynet_cert
b82cce3ddb20d9e4abc89d74579ddeb3513bdf55
[ "Apache-2.0" ]
null
null
null
#!/bin/env python from netmiko import ConnectHandler pynet1 = { 'device_type': 'cisco_ios', 'ip': '184.105.247.70', 'username': 'pyclass', 'password': '88newclass', } pynet2 = { 'device_type': 'cisco_ios', 'ip': '184.105.247.71', 'username': 'pyclass', 'password': '88newclass', } juni...
17.84375
49
0.607706
238c9e3a4850309e0e51981a7f483fe4dfc5cd00
4,106
py
Python
blueking/component/base.py
tom523/bk_user_tool
679d45853d95136ed446896f131e1ed473559dd7
[ "Apache-2.0" ]
null
null
null
blueking/component/base.py
tom523/bk_user_tool
679d45853d95136ed446896f131e1ed473559dd7
[ "Apache-2.0" ]
null
null
null
blueking/component/base.py
tom523/bk_user_tool
679d45853d95136ed446896f131e1ed473559dd7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available. Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obt...
38.373832
115
0.590112
b193aecc150060a650d92e4214abaa8a169d43cb
8,994
py
Python
nengo/builder/neurons.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
nengo/builder/neurons.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
nengo/builder/neurons.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from nengo.builder import Builder, Operator, Signal from nengo.neurons import (AdaptiveLIF, AdaptiveLIFRate, Izhikevich, LIF, NeuronType, SpikingRectifiedLinear) class SimNeurons(Operator): """Set a neuron model output for the given input current. Implements ``n...
32.586957
79
0.619413
a398528cce411db1f4773d78e1d4b35f2b42b687
41,538
py
Python
scripts/testnet-tools/pubkey_to_discord.py
novy4/coda-automation
01fef889fd14ae0800ba9ab1dece334aaabdf6dd
[ "Apache-2.0" ]
null
null
null
scripts/testnet-tools/pubkey_to_discord.py
novy4/coda-automation
01fef889fd14ae0800ba9ab1dece334aaabdf6dd
[ "Apache-2.0" ]
null
null
null
scripts/testnet-tools/pubkey_to_discord.py
novy4/coda-automation
01fef889fd14ae0800ba9ab1dece334aaabdf6dd
[ "Apache-2.0" ]
null
null
null
# Insert Your Key Below for the Testnet Staking Challenge # Example: # 'tNciczxpMfZ4eW1ZPP9NVK2vxcm9cCHvTBWMe8Nskn2A25P1YqcdvFCD5LvgngraiCmAsnC8zWAiv5pwMYjrUwpMNYDePMQYiXX7HVMjrnB1JkEckyayvsAm2Bo4EQBWbHXD5Cxp65PZy5': 'DISCORD_USERNAME#1234', STAKING_CHALLENGE = { 'tdNEDdTE3BdcmopBvBGwdABXHySBvd2GqQruriNqK4qxLdBsu...
82.253465
174
0.900886
38ab56eb613f37d3491690207c3a0a2b7fb4b229
63,394
py
Python
numpy/core/tests/test_regression.py
peterjc/numpy
724da615902b9feb140cb6f7307ff1b1c2596a40
[ "BSD-3-Clause" ]
null
null
null
numpy/core/tests/test_regression.py
peterjc/numpy
724da615902b9feb140cb6f7307ff1b1c2596a40
[ "BSD-3-Clause" ]
null
null
null
numpy/core/tests/test_regression.py
peterjc/numpy
724da615902b9feb140cb6f7307ff1b1c2596a40
[ "BSD-3-Clause" ]
null
null
null
import pickle import sys import platform import gc import copy import warnings import tempfile from StringIO import StringIO from os import path import numpy as np from numpy.testing import ( run_module_suite, TestCase, assert_, assert_equal, assert_almost_equal, assert_array_equal, assert_array_almost_...
35.00497
92
0.542764
287caec82f48c6c0b2c7b25abe2241329050d2da
13,858
py
Python
website/canvas/migrations/0091_auto__add_field_category_disabled.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
61
2015-11-10T17:13:46.000Z
2021-08-06T17:58:30.000Z
website/canvas/migrations/0091_auto__add_field_category_disabled.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
13
2015-11-11T07:49:41.000Z
2021-06-09T03:45:31.000Z
website/canvas/migrations/0091_auto__add_field_category_disabled.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
18
2015-11-11T04:50:04.000Z
2021-08-20T00:57:11.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Category.disabled' db.add_column('canvas_category', 'disabled', self.gf('django.db.models....
77.418994
195
0.557656
e336e0f6f90455105e55de0d6c45ff132d291b56
1,369
py
Python
typeidea/comment/views.py
JummyWu/typeidea
bcb0bd0a240e22649bffd9fc7cb5128ad7b35a08
[ "MIT" ]
2
2018-01-24T01:20:01.000Z
2018-01-24T01:21:17.000Z
typeidea/comment/views.py
929440925/typeidea
bcb0bd0a240e22649bffd9fc7cb5128ad7b35a08
[ "MIT" ]
null
null
null
typeidea/comment/views.py
929440925/typeidea
bcb0bd0a240e22649bffd9fc7cb5128ad7b35a08
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import redirect from django.views.generic import TemplateView from .forms import CommentForm from .models import Comment class CommentShowMixin(object): def get_comments(self): target = self.request.path commen...
27.938776
83
0.627465
7fd836b690801d20e32546bffec4ea560d2d7b29
73
py
Python
run.py
HRHLALALA/Event-Management-System
c4c5e7ced2de446b541fa871ec3a241740a0ebee
[ "MIT" ]
null
null
null
run.py
HRHLALALA/Event-Management-System
c4c5e7ced2de446b541fa871ec3a241740a0ebee
[ "MIT" ]
null
null
null
run.py
HRHLALALA/Event-Management-System
c4c5e7ced2de446b541fa871ec3a241740a0ebee
[ "MIT" ]
null
null
null
from route import app if __name__ == '__main__': app.run(debug=True)
18.25
26
0.69863
4ab436c9cb722898cbf65ad362cbfb9ba76d5d7d
4,285
py
Python
src/enc/ENC1.py
arminnh/ma2-csai-probabilistic-programming
49a12b829b79a6dc7105dbf3b2d6f5c15fea12c5
[ "MIT" ]
null
null
null
src/enc/ENC1.py
arminnh/ma2-csai-probabilistic-programming
49a12b829b79a6dc7105dbf3b2d6f5c15fea12c5
[ "MIT" ]
null
null
null
src/enc/ENC1.py
arminnh/ma2-csai-probabilistic-programming
49a12b829b79a6dc7105dbf3b2d6f5c15fea12c5
[ "MIT" ]
3
2019-03-19T11:00:59.000Z
2019-04-11T09:59:12.000Z
from enc.CNF import * import copy class ENC1(CNF): def __init__(self, bayes): super(ENC1, self).__init__(bayes) def _getVars(self): for node_name, node in self.bayes.getNodes().items(): self.vars[node_name] = [] for val in node.values: self.vars[node_na...
32.709924
97
0.514119
4f00c9b35f558c64522c1b927ace5e1b77ae9abe
18,510
py
Python
aslprep/pybids/_version.py
krmurtha/aslprep
5c00c2c9ad1daf93b056907596b7798ae8059efb
[ "BSD-3-Clause" ]
2
2022-03-18T18:31:12.000Z
2022-03-18T18:31:26.000Z
aslprep/pybids/_version.py
krmurtha/aslprep
5c00c2c9ad1daf93b056907596b7798ae8059efb
[ "BSD-3-Clause" ]
null
null
null
aslprep/pybids/_version.py
krmurtha/aslprep
5c00c2c9ad1daf93b056907596b7798ae8059efb
[ "BSD-3-Clause" ]
1
2020-04-13T20:04:21.000Z
2020-04-13T20:04:21.000Z
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.527831
79
0.585521
c4cf0a2091ef69106f0965a1cd9e3ad901771a52
6,661
py
Python
submit/vec_feat_xgb_test/test.py
ubuntu733/SentencePairs
367139cdd94be36c04899c3ea01df6f58e796241
[ "Apache-2.0" ]
null
null
null
submit/vec_feat_xgb_test/test.py
ubuntu733/SentencePairs
367139cdd94be36c04899c3ea01df6f58e796241
[ "Apache-2.0" ]
null
null
null
submit/vec_feat_xgb_test/test.py
ubuntu733/SentencePairs
367139cdd94be36c04899c3ea01df6f58e796241
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf8 -*- # ============================================================================== # Copyright 2018 Hisense, 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 ...
39.182353
108
0.615073
bac47ccf0bb0e0cc3291d22846f403ee10e11617
4,324
py
Python
dev/scripts/extHelperMOD.py
bforest-ariadne/touchdesigner-tox-prep-for-release
62ace1ed8cf7dffd3aa20777b7517a8c109ad3be
[ "MIT" ]
15
2019-01-17T17:56:06.000Z
2021-04-07T20:01:27.000Z
dev/scripts/extHelperMOD.py
bforest-ariadne/touchdesigner-tox-prep-for-release
62ace1ed8cf7dffd3aa20777b7517a8c109ad3be
[ "MIT" ]
1
2020-01-19T21:08:47.000Z
2020-01-19T21:08:47.000Z
dev/scripts/extHelperMOD.py
bforest-ariadne/touchdesigner-tox-prep-for-release
62ace1ed8cf7dffd3aa20777b7517a8c109ad3be
[ "MIT" ]
2
2020-01-18T22:40:57.000Z
2020-06-12T17:52:57.000Z
import os import subprocess import platform def Check_dep(): ''' This is a sample method. This sample method is intended to help illustrate what method docstrings should look like. Notes --------------- 'self' does not need to be included in the Args section. Args --------------...
24.568182
93
0.694265
6015f4509bffbb2ea1e545a3791b570612735470
2,049
py
Python
pymc/datatypes.py
rsumner31/pymc3-23
539c0fc04c196679a1cdcbf4bc2dbea4dee10080
[ "Apache-2.0" ]
1
2019-03-01T02:47:20.000Z
2019-03-01T02:47:20.000Z
pymc/datatypes.py
neurodebian/pymc
cc0e4256a297996ec8d79ac9c2285034f4eea329
[ "MIT" ]
1
2019-08-17T06:58:38.000Z
2019-08-17T06:58:38.000Z
pymc/datatypes.py
rsumner31/pymc3-23
539c0fc04c196679a1cdcbf4bc2dbea4dee10080
[ "Apache-2.0" ]
null
null
null
from numpy import obj2sctype, ndarray from numpy import bool_ from numpy import byte, short, intc, int_, longlong, intp from numpy import ubyte, ushort, uintc, uint, ulonglong, uintp from numpy import single, float_, longfloat from numpy import csingle, complex_, clongfloat # These are only used for membership tests, ...
33.590164
115
0.67838
d594555a22275cb02a5a682e83e872f587c2385b
12,440
py
Python
sdk/packages/multi_robot_fof/scenario_manager.py
ddr95070/RMIsaac
ee3918f685f0a88563248ddea11d089581077973
[ "FSFAP" ]
null
null
null
sdk/packages/multi_robot_fof/scenario_manager.py
ddr95070/RMIsaac
ee3918f685f0a88563248ddea11d089581077973
[ "FSFAP" ]
null
null
null
sdk/packages/multi_robot_fof/scenario_manager.py
ddr95070/RMIsaac
ee3918f685f0a88563248ddea11d089581077973
[ "FSFAP" ]
1
2022-01-28T16:37:51.000Z
2022-01-28T16:37:51.000Z
''' Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related docu...
40.129032
100
0.602251
19010ae23e68e6a4d32247261bb8838e47562f07
29,530
py
Python
src/pretix/base/signals.py
Janfred/pretix
bdd9751f0e5c440d1c8b56c933db2288e4014f4c
[ "Apache-2.0" ]
null
null
null
src/pretix/base/signals.py
Janfred/pretix
bdd9751f0e5c440d1c8b56c933db2288e4014f4c
[ "Apache-2.0" ]
null
null
null
src/pretix/base/signals.py
Janfred/pretix
bdd9751f0e5c440d1c8b56c933db2288e4014f4c
[ "Apache-2.0" ]
null
null
null
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 Raphael Michel and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General # Public License as published by ...
40.067843
122
0.733017
0f7eff579d0d343377dc5eeb2376bb32a6514e76
556
py
Python
ml_mps_service/app/api/ml.py
PSUCompBio/ML-APIs-v1
e8a64395962ffdc0c92b83523eaea1836b28558d
[ "BSD-3-Clause" ]
null
null
null
ml_mps_service/app/api/ml.py
PSUCompBio/ML-APIs-v1
e8a64395962ffdc0c92b83523eaea1836b28558d
[ "BSD-3-Clause" ]
null
null
null
ml_mps_service/app/api/ml.py
PSUCompBio/ML-APIs-v1
e8a64395962ffdc0c92b83523eaea1836b28558d
[ "BSD-3-Clause" ]
null
null
null
from tensorflow.keras.models import load_model import numpy as np from joblib import load from .config import * from .download_models import download_models download_models() class MPSModel: model = load_model(MODEL_PATH) scaler_mps = load(PATH_TO_SCALER_MPS) scaler_x = load(PATH_TO_SCALER_X) @class...
26.47619
49
0.723022
6bc2a29f53c8702faa658accfe864af7e12b5d3f
2,725
py
Python
accounts/views.py
Haseb-ali/humanity-care-services-app
c3c5ad5bd23ab27243daaac412ebb843067b5d87
[ "RSA-MD" ]
null
null
null
accounts/views.py
Haseb-ali/humanity-care-services-app
c3c5ad5bd23ab27243daaac412ebb843067b5d87
[ "RSA-MD" ]
3
2021-10-04T19:42:45.000Z
2021-10-04T19:43:05.000Z
accounts/views.py
Haseb-ali/humanity-care-services-app
c3c5ad5bd23ab27243daaac412ebb843067b5d87
[ "RSA-MD" ]
null
null
null
from django.shortcuts import render, HttpResponse, redirect from django.contrib.auth import authenticate, login as auth_login, logout as auth_logout from django.contrib.auth.decorators import login_required from django.views.decorators.cache import never_cache from django.contrib.auth.hashers import check_password from...
34.493671
88
0.686239
2852e44fb76077d82e58cf6ef5137bb74a64d6e4
94
py
Python
aiomessaging/__main__.py
aiomessaging/aiomessaging
0fe2296d5a772a9b28c3173259e7a6ace6e45624
[ "MIT" ]
4
2018-07-08T18:49:10.000Z
2018-08-16T20:17:29.000Z
aiomessaging/__main__.py
aiomessaging/aiomessaging
0fe2296d5a772a9b28c3173259e7a6ace6e45624
[ "MIT" ]
23
2018-07-08T18:52:42.000Z
2018-10-25T16:58:50.000Z
aiomessaging/__main__.py
aiomessaging/aiomessaging
0fe2296d5a772a9b28c3173259e7a6ace6e45624
[ "MIT" ]
null
null
null
""" aiomessaging can be started with `python -m aiomessaging` """ from .cli import cli cli()
13.428571
57
0.702128
51b3bbc3ad35f01ecd5834f50e736a1a94c0b120
9,279
py
Python
packages/exhibitor/extra/start_exhibitor.py
cgawron1/windows-gh
423aecaa9e37e14abce8f854b5f39e76bd359a52
[ "Apache-2.0" ]
null
null
null
packages/exhibitor/extra/start_exhibitor.py
cgawron1/windows-gh
423aecaa9e37e14abce8f854b5f39e76bd359a52
[ "Apache-2.0" ]
null
null
null
packages/exhibitor/extra/start_exhibitor.py
cgawron1/windows-gh
423aecaa9e37e14abce8f854b5f39e76bd359a52
[ "Apache-2.0" ]
null
null
null
#!/opt/mesosphere/bin/python import os import socket import sys from subprocess import CalledProcessError, check_call, check_output ZK_VAR_DIR = '/var/lib/dcos/exhibitor/zookeeper' ZK_SNAPSHOTS = os.path.join(ZK_VAR_DIR, 'snapshot') ZK_TRANSACTIONS = os.path.join(ZK_VAR_DIR, 'transactions') def get_var_assert_set(na...
40.697368
163
0.728419
f2679e6a0e0b68de8588389cf24f0b8caa1cfc19
9,212
py
Python
utilities/optimizer.py
SiddarthKrishnamoorthy/nn-bayesian-optimization
87654c31c15ed9cd964e1d83f3277280272b7df1
[ "MIT" ]
1
2018-04-14T09:43:13.000Z
2018-04-14T09:43:13.000Z
utilities/optimizer.py
SiddarthKrishnamoorthy/nn-bayesian-optimization
87654c31c15ed9cd964e1d83f3277280272b7df1
[ "MIT" ]
null
null
null
utilities/optimizer.py
SiddarthKrishnamoorthy/nn-bayesian-optimization
87654c31c15ed9cd964e1d83f3277280272b7df1
[ "MIT" ]
null
null
null
import time import numpy as np import neural_net as nn import linear_regressor as lm import scipy.stats as stats import matplotlib.pyplot as plt import random from learning_objective.hidden_function import evaluate, true_evaluate import statsmodels.api as sm class Optimizer(object): def __init__(self, dataset, do...
36.267717
100
0.597373
1e7bf8e6b0657a81186d04a274491b48466de221
2,433
py
Python
day_site/settings.py
lbartoszcze/diary-
d46ed497377e58eaf4f2bfd16ef32a7a1422a930
[ "MIT" ]
null
null
null
day_site/settings.py
lbartoszcze/diary-
d46ed497377e58eaf4f2bfd16ef32a7a1422a930
[ "MIT" ]
null
null
null
day_site/settings.py
lbartoszcze/diary-
d46ed497377e58eaf4f2bfd16ef32a7a1422a930
[ "MIT" ]
null
null
null
from pathlib import Path BASE_DIR = Path(__file__).resolve(strict=True).parent.parent SECRET_KEY = 'ff=ve_ll9sfgun453pq!tkdjxe+c8q-92=34t#!u%ub94b2&+5' DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.session...
25.610526
91
0.681463
3e85aa95a343da6d9a59d4cd1372e3f7eb1a50aa
860
py
Python
setup.py
millerthegorilla/django-email-verification
9602bedeeca61438b081e005452f100b46ae00d3
[ "MIT" ]
1
2021-05-02T13:26:19.000Z
2021-05-02T13:26:19.000Z
setup.py
millerthegorilla/django-email-verification
9602bedeeca61438b081e005452f100b46ae00d3
[ "MIT" ]
null
null
null
setup.py
millerthegorilla/django-email-verification
9602bedeeca61438b081e005452f100b46ae00d3
[ "MIT" ]
1
2021-05-06T16:53:19.000Z
2021-05-06T16:53:19.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="django-email-verification", version="0.1.0", author="Leone Bacciu", author_email="leonebacciu@gmail.com", description="Email confirmation app for django", license='MIT', long_descr...
30.714286
67
0.648837
ca66271655f4457cfc617055d3a4491d9f978caa
7,177
py
Python
accelbyte_py_sdk/api/qosm/operations/admin/set_server_alias.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/qosm/operations/admin/set_server_alias.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/qosm/operations/admin/set_server_alias.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # pylint: disable=duplicate-code # pylint: disable=li...
27.92607
130
0.626864
1ed580d4c33718e97316396e3a644d0b7a290ff6
7,173
py
Python
pages/createdialog.py
spacelord19/bird-bot
63b9b5e5eafb1adbe1cbbbef7b3d346d57f372c9
[ "MIT" ]
null
null
null
pages/createdialog.py
spacelord19/bird-bot
63b9b5e5eafb1adbe1cbbbef7b3d346d57f372c9
[ "MIT" ]
null
null
null
pages/createdialog.py
spacelord19/bird-bot
63b9b5e5eafb1adbe1cbbbef7b3d346d57f372c9
[ "MIT" ]
1
2020-06-13T21:24:22.000Z
2020-06-13T21:24:22.000Z
from PyQt5 import QtCore, QtGui, QtWidgets import sys,platform def no_abort(a, b, c): sys.__excepthook__(a, b, c) sys.excepthook = no_abort class CreateDialog(QtWidgets.QDialog): def __init__(self,parent=None): super(CreateDialog, self).__init__(parent) self.setupUi(self) self.show() ...
59.775
603
0.700404
350a511941faf18e3d36973fea11596b7aeb8fd3
162
py
Python
dataset_script.py
lexzww/Oscilloscope
6cfb732f75b090ac78749399a1aced849b89486f
[ "MIT" ]
null
null
null
dataset_script.py
lexzww/Oscilloscope
6cfb732f75b090ac78749399a1aced849b89486f
[ "MIT" ]
null
null
null
dataset_script.py
lexzww/Oscilloscope
6cfb732f75b090ac78749399a1aced849b89486f
[ "MIT" ]
null
null
null
#script: test.py k import sys import osclass2 scope = osclass2.Measure('USB0::2391::6040::MY50512036::INSTR') scope.connect() scope.get_dataset(int(sys.argv[1]))
23.142857
63
0.753086
9d5f4922bc29fe7de81ed48c3a5809fce7ed3a0a
8,416
py
Python
src/players/migrations/0007_auto.py
reddcoin-project/ReddConnect
5c212683de6b80b81fd15ed05239c3a1b46c3afd
[ "BSD-3-Clause" ]
2
2019-02-24T00:20:47.000Z
2020-04-24T15:50:31.000Z
src/players/migrations/0007_auto.py
reddcoin-project/ReddConnect
5c212683de6b80b81fd15ed05239c3a1b46c3afd
[ "BSD-3-Clause" ]
null
null
null
src/players/migrations/0007_auto.py
reddcoin-project/ReddConnect
5c212683de6b80b81fd15ed05239c3a1b46c3afd
[ "BSD-3-Clause" ]
1
2019-01-05T15:51:37.000Z
2019-01-05T15:51:37.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models try: from django.contrib.auth import get_user_model except ImportError: # django < 1.5 from django.contrib.auth.models import User else: User = get_user_model() user_orm_label = '%s....
69.553719
187
0.578184
c27f27f4c9fe006857c91204d62d08b8159e7096
12,667
py
Python
experiments/reticulated/retic/guarded.py
fabianmuehlboeck/monnom
609b307d9fa9e6641443f34dbcc0b035b34d3044
[ "BSD-3-Clause", "MIT" ]
2
2021-11-16T20:58:02.000Z
2021-12-05T18:15:41.000Z
experiments/reticulated/sort/retic/guarded.py
fabianmuehlboeck/monnom
609b307d9fa9e6641443f34dbcc0b035b34d3044
[ "BSD-3-Clause", "MIT" ]
null
null
null
experiments/reticulated/sort/retic/guarded.py
fabianmuehlboeck/monnom
609b307d9fa9e6641443f34dbcc0b035b34d3044
[ "BSD-3-Clause", "MIT" ]
null
null
null
from . import typing, rtypes import inspect from .runtime import tyinstance as retic_tyinstance, has_type as retic_has_type, \ has_shape as retic_has_shape, pinstance as retic_pinstance from .relations import merge as retic_merge, n_info_join as retic_meet, subcompat as retic_subcompat from .exc import Unimplemente...
45.401434
140
0.631247
6be6fe66d69ce08597cb406f8a91a34ed7d1760d
2,493
py
Python
ansible-unifier.py
savchenko/ansible-sanity
2077f6c54522d80aa9fb3003549483374c5de5f7
[ "Apache-2.0" ]
null
null
null
ansible-unifier.py
savchenko/ansible-sanity
2077f6c54522d80aa9fb3003549483374c5de5f7
[ "Apache-2.0" ]
9
2021-08-28T08:06:14.000Z
2021-09-01T12:37:08.000Z
ansible-unifier.py
savchenko/ansible-sanity
2077f6c54522d80aa9fb3003549483374c5de5f7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Andrew Savchenko (c) Apache 2.0 # andrew@savchenko.net import os import re import argparse parser = argparse.ArgumentParser(prog='ansible-unifier', description='Unifies quotation and booleans in a way that doesn\'t explode') parser.add_arg...
34.150685
109
0.493381
51f96f2f7a90bd325f80941b8c894cc5036b747d
1,170
py
Python
AOC2017/day08.py
hbldh/AdventOfCode2016
9e737e07edddffdfd7a39c1dd410f9bce1192e4e
[ "MIT" ]
null
null
null
AOC2017/day08.py
hbldh/AdventOfCode2016
9e737e07edddffdfd7a39c1dd410f9bce1192e4e
[ "MIT" ]
null
null
null
AOC2017/day08.py
hbldh/AdventOfCode2016
9e737e07edddffdfd7a39c1dd410f9bce1192e4e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import re from collections import defaultdict part_one_re = re.compile('^([\w]+)\s([\w]+)\s([-\d]+)') part_two_re = re.compile('\s([\w]+)\s([<>!=]+)\s([-\d]+)$') def _solve(indata): max_val = 0 registers = defaultdict(lambda: 0) for instruction in indata: ...
23.877551
94
0.592308
4e0c3b007b75c58fc979331f0b81847df7a89b08
2,769
py
Python
test/Decider/content-timestamp-symlink.py
blazej-czapp/scons
07dc10b25b6169c9fb7e16dd78de8bb9ea107be6
[ "MIT" ]
null
null
null
test/Decider/content-timestamp-symlink.py
blazej-czapp/scons
07dc10b25b6169c9fb7e16dd78de8bb9ea107be6
[ "MIT" ]
null
null
null
test/Decider/content-timestamp-symlink.py
blazej-czapp/scons
07dc10b25b6169c9fb7e16dd78de8bb9ea107be6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify,...
33.768293
94
0.736367
01f896d31496578f8ce2de35ba753dac2b7f7418
11,634
py
Python
zuul.d/octavia/compute/drivers/nova_driver.py
yi-cloud/octavia
b7f5cfa4c3c454925a90c24984049539228806d7
[ "Apache-2.0" ]
null
null
null
zuul.d/octavia/compute/drivers/nova_driver.py
yi-cloud/octavia
b7f5cfa4c3c454925a90c24984049539228806d7
[ "Apache-2.0" ]
null
null
null
zuul.d/octavia/compute/drivers/nova_driver.py
yi-cloud/octavia
b7f5cfa4c3c454925a90c24984049539228806d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Rackspace # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
40.821053
80
0.599192
4d2fe794b978599d091f06ce023bb1493e6e4ab5
1,072
py
Python
tensorflow_graphics/io/__init__.py
Liang813/graphics
71ab1775228a0a292427551350cbb62bfa8bd01a
[ "Apache-2.0" ]
2,759
2019-01-08T10:40:34.000Z
2022-03-28T13:49:37.000Z
tensorflow_graphics/io/__init__.py
Liang813/graphics
71ab1775228a0a292427551350cbb62bfa8bd01a
[ "Apache-2.0" ]
262
2019-04-28T12:25:49.000Z
2022-03-24T19:35:15.000Z
tensorflow_graphics/io/__init__.py
Liang813/graphics
71ab1775228a0a292427551350cbb62bfa8bd01a
[ "Apache-2.0" ]
380
2019-05-09T00:14:45.000Z
2022-03-31T12:48:25.000Z
# Copyright 2020 The TensorFlow 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
38.285714
74
0.783582
2e411fb07885fc4fcceb33484c2868a3b3e4096b
27,988
py
Python
pandas/io/packers.py
camilaagw/pandas
269d36814e471880627109a5e5ea63d4a5fdc5a6
[ "BSD-3-Clause" ]
null
null
null
pandas/io/packers.py
camilaagw/pandas
269d36814e471880627109a5e5ea63d4a5fdc5a6
[ "BSD-3-Clause" ]
null
null
null
pandas/io/packers.py
camilaagw/pandas
269d36814e471880627109a5e5ea63d4a5fdc5a6
[ "BSD-3-Clause" ]
null
null
null
""" Msgpack serializer support for reading and writing pandas data structures to disk portions of msgpack_numpy package, by Lev Givon were incorporated into this module (and tests_packers.py) License ======= Copyright (c) 2013, Lev Givon. All rights reserved. Redistribution and use in source and binary forms, with ...
31.732426
88
0.561919
0e7720937c2f8ef07f0c22436d9c4dc808e4793f
14,103
py
Python
tensorflow/python/profiler/profile_context.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/python/profiler/profile_context.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/tensorflow/python/profiler/profile_context.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
38.85124
117
0.652982
2193549b1ec23adb546f1edb977a51d8751d02e7
118
py
Python
config_files/__init__.py
cnrmrphy/crossReference
00948be4caca4329e6d7883d43b9c746c5e4ba13
[ "MIT" ]
1
2020-03-17T06:54:19.000Z
2020-03-17T06:54:19.000Z
config_files/__init__.py
cnrmrphy/crossReference
00948be4caca4329e6d7883d43b9c746c5e4ba13
[ "MIT" ]
4
2020-03-24T06:15:44.000Z
2021-01-03T18:02:35.000Z
config_files/__init__.py
cnrmrphy/crossReference
00948be4caca4329e6d7883d43b9c746c5e4ba13
[ "MIT" ]
null
null
null
import config_files.providers.load_providers def __init__(self): print('you shoulda just loaded load_providers')
23.6
51
0.805085
80c3272ec93ef2fe925ec01f4bb2010d7bf7a0dc
521
py
Python
hills-complex-generator/profilegenerator.py
ewintergames/dsj4-tools
23458ee73e71aa0dc6154a218fd80e19e2b5ba1d
[ "MIT" ]
2
2021-10-02T12:43:59.000Z
2021-11-04T22:49:54.000Z
hills-complex-generator/profilegenerator.py
ewintergames/dsj4-tools
23458ee73e71aa0dc6154a218fd80e19e2b5ba1d
[ "MIT" ]
null
null
null
hills-complex-generator/profilegenerator.py
ewintergames/dsj4-tools
23458ee73e71aa0dc6154a218fd80e19e2b5ba1d
[ "MIT" ]
null
null
null
from hill import Hill hill = Hill(e=91.91, es=25.62, gates=50, t=6.72, gamma=35, alpha=35, r1=100, s=3, l=0, f=0, alpha_dhill=6.03, h=59.17, n=103.81, l1=15.71...
19.296296
30
0.295585
b6dd66b702bdc0bfdffd8bcd8ede4fd561c0fbe6
6,573
py
Python
experiments/ashvin/rfeatures/sawyer/door/rl1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/rfeatures/sawyer/door/rl1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/rfeatures/sawyer/door/rl1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" This should results in an average return of ~3000 by the end of training. Usually hits 3000 around epoch 80-100. Within a see, the performance will be a bit noisy from one epoch to the next (occasionally dips dow to ~2000). Note that one epoch = 5k steps, so 200 epochs = 1 million steps. """ import gym import rl...
33.19697
103
0.694356
46f3346a000c8e3fd04d975fbf1417bfb98c1455
6,290
py
Python
turbogears/i18n/data/et.py
timmartin19/turbogears
b5420cb7e55757d418d8fadb512dbd7803c4279c
[ "MIT" ]
null
null
null
turbogears/i18n/data/et.py
timmartin19/turbogears
b5420cb7e55757d418d8fadb512dbd7803c4279c
[ "MIT" ]
9
2015-01-27T19:13:56.000Z
2019-03-29T14:44:31.000Z
turbogears/i18n/data/et.py
timmartin19/turbogears
b5420cb7e55757d418d8fadb512dbd7803c4279c
[ "MIT" ]
13
2015-04-14T14:15:53.000Z
2020-03-18T01:05:46.000Z
# Formatting configuration for locale et languages={'el': 'Kreeka', 'en': 'Inglise', 'zh': 'Hiina', 'it': 'Itaalia', 'ar': 'Araabia', 'cs': 'Tiehhi', 'et': 'Eesti', 'es': 'Hispaania', 'ru': 'Vene', 'nl': 'Hollandi', 'pt': 'Portugali', 'no': 'Norra', 'tr': u'T\xfcrgi', 'lv': u'L\xe4ti', 'lt': 'Leedu', 'ro': 'Rumeenia',...
349.444444
4,935
0.576153
94d8895b8075891d2662931ab2422c48e67d28b7
1,892
py
Python
Python/currency_conversion/currency_convert.py
vietnguyen1989/UDx-Examples
4b72aaa7402c93890500d37c1b888230cc6524e2
[ "BSD-3-Clause" ]
12
2017-08-16T09:58:50.000Z
2020-05-08T12:03:57.000Z
Python/currency_conversion/currency_convert.py
vietnguyen1989/UDx-Examples
4b72aaa7402c93890500d37c1b888230cc6524e2
[ "BSD-3-Clause" ]
1
2021-04-21T21:39:03.000Z
2021-04-21T21:39:03.000Z
Python/currency_conversion/currency_convert.py
vietnguyen1989/UDx-Examples
4b72aaa7402c93890500d37c1b888230cc6524e2
[ "BSD-3-Clause" ]
15
2016-12-21T09:57:22.000Z
2021-11-25T22:30:24.000Z
import vertica_sdk import decimal rates2USD = {'USD': 1.000, 'EUR': 0.89977, 'GBP': 0.68452, 'INR': 67.0345, 'AUD': 1.39187, 'CAD': 1.30335, 'ZAR': 15.7181} class currency_convert(vertica_sdk.ScalarFunction): """Converts a money column ...
30.031746
85
0.598837
33bfe87b4f7a8cab9535dd9bc42fa7373802075d
1,285
py
Python
lib/galaxy/model/migrate/versions/0034_page_user_share_association.py
bxlab/galaxy-hackathon
7a5726649d091eab5c4b709f2a1cfe4e28bd9599
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/migrate/versions/0034_page_user_share_association.py
bxlab/galaxy-hackathon
7a5726649d091eab5c4b709f2a1cfe4e28bd9599
[ "CC-BY-3.0" ]
1
2018-08-20T18:19:58.000Z
2018-08-20T18:19:58.000Z
lib/galaxy/model/migrate/versions/0034_page_user_share_association.py
bxlab/galaxy-hackathon
7a5726649d091eab5c4b709f2a1cfe4e28bd9599
[ "CC-BY-3.0" ]
null
null
null
""" Migration script to create a table for page-user share association. """ import logging from sqlalchemy import Column, ForeignKey, Integer, MetaData, Table log = logging.getLogger( __name__ ) metadata = MetaData() PageUserShareAssociation_table = Table( "page_user_share_association", metadata, ...
32.125
114
0.647471
55220cc98b563e085619754d21195ad891e795fb
24,013
py
Python
zipline/data/bcolz_daily_bars.py
liveget/zipline
ee25039a91f29098567740a35160cd42f94d080e
[ "Apache-2.0" ]
null
null
null
zipline/data/bcolz_daily_bars.py
liveget/zipline
ee25039a91f29098567740a35160cd42f94d080e
[ "Apache-2.0" ]
null
null
null
zipline/data/bcolz_daily_bars.py
liveget/zipline
ee25039a91f29098567740a35160cd42f94d080e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
34.25535
79
0.584475