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
c1dca0b89e8bb1dc105dcc9d3b29afa3ffcd2047
221
py
Python
mushroom_rl/features/tensors/constant_tensor.py
k4ntz/mushroom-rl
17c8e9b2a9648a59169f3599c4ef8d259afc39f4
[ "MIT" ]
1
2020-11-06T18:32:32.000Z
2020-11-06T18:32:32.000Z
mushroom_rl/features/tensors/constant_tensor.py
AmmarFahmy/mushroom-rl
2625ee7f64d5613b3b9fba00f0b7a39fece88ca5
[ "MIT" ]
null
null
null
mushroom_rl/features/tensors/constant_tensor.py
AmmarFahmy/mushroom-rl
2625ee7f64d5613b3b9fba00f0b7a39fece88ca5
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class ConstantTensor(nn.Module): """ Pytorch module to implement a constant function (always one). """ def forward(self, x): return torch.ones(x.shape[0], 1)
17
65
0.647059
cde951d77cec4f2a944b9addb748fe561a9c1a1d
14,285
py
Python
userbot/plugins/gDrive.py
shadowninja024/Shadowninja_userbot
0e73de64d8105bdc179fa467c5730f9a9f58452f
[ "MIT" ]
23
2020-06-20T09:02:59.000Z
2020-11-29T12:01:37.000Z
userbot/plugins/gDrive.py
madhav2726/JaaduBot
3716d329d5e669ee59a154e170a8f907d38aa6db
[ "MIT" ]
null
null
null
userbot/plugins/gDrive.py
madhav2726/JaaduBot
3716d329d5e669ee59a154e170a8f907d38aa6db
[ "MIT" ]
128
2020-06-20T09:03:21.000Z
2021-11-16T07:15:40.000Z
# The entire code given below is verbatim copied from # https://github.com/cyberboysumanjay/Gdrivedownloader/blob/master/gdrive_upload.py # there might be some changes made to suit the needs for this repository # Licensed under MIT License import asyncio import os import time import math from datetime import datetime ...
43.1571
166
0.655793
f7e1bb96fe6c6fb13965fafab93d63f56939607d
47,021
py
Python
recipe/gen_patch_json.py
beckernick/conda-forge-repodata-patches-feedstock
f27bce69797ca4ea45ffd96068b7d68d208f6f8e
[ "BSD-3-Clause" ]
null
null
null
recipe/gen_patch_json.py
beckernick/conda-forge-repodata-patches-feedstock
f27bce69797ca4ea45ffd96068b7d68d208f6f8e
[ "BSD-3-Clause" ]
null
null
null
recipe/gen_patch_json.py
beckernick/conda-forge-repodata-patches-feedstock
f27bce69797ca4ea45ffd96068b7d68d208f6f8e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from collections import defaultdict import copy import json import os from os.path import join, isdir import sys import tqdm import re import requests import pkg_resources from get_license_family import get_license_family CHANNE...
39.949873
135
0.564344
9bf430dd43c0a575447d5aad59fac81add20bcfd
50,375
py
Python
tencentcloud/ams/v20200608/models.py
xuzixx/tencentcloud-sdk-python
98866ab9fd104cd6475b62fe78ff3fffd96d5ce0
[ "Apache-2.0" ]
null
null
null
tencentcloud/ams/v20200608/models.py
xuzixx/tencentcloud-sdk-python
98866ab9fd104cd6475b62fe78ff3fffd96d5ce0
[ "Apache-2.0" ]
null
null
null
tencentcloud/ams/v20200608/models.py
xuzixx/tencentcloud-sdk-python
98866ab9fd104cd6475b62fe78ff3fffd96d5ce0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
29.321886
114
0.584834
6c1c57133d365929f33182aacc796a9de43188cb
222
py
Python
fib.py
GiorgiMatcharashvili/Solve-the-math-problem-
a7a97d0e784da16f110006d2e7997162c98af707
[ "MIT" ]
null
null
null
fib.py
GiorgiMatcharashvili/Solve-the-math-problem-
a7a97d0e784da16f110006d2e7997162c98af707
[ "MIT" ]
null
null
null
fib.py
GiorgiMatcharashvili/Solve-the-math-problem-
a7a97d0e784da16f110006d2e7997162c98af707
[ "MIT" ]
null
null
null
def fib(n): if n == 0: return 0 elif n == 1: return 1 else: return fib(n - 1) + fib(n - 2) n = -1 while True: n = int(n) + 1 print(fib(n), end="; ")
13.058824
39
0.36036
9226baf5341835fd2eae6b417d187f2a7a645e18
7,401
py
Python
train.py
liuyao12/pytorch-cifar
dde5080c16d5a4c3d5861e547862761c2e661b95
[ "MIT" ]
null
null
null
train.py
liuyao12/pytorch-cifar
dde5080c16d5a4c3d5861e547862761c2e661b95
[ "MIT" ]
null
null
null
train.py
liuyao12/pytorch-cifar
dde5080c16d5a4c3d5861e547862761c2e661b95
[ "MIT" ]
1
2019-12-12T19:33:55.000Z
2019-12-12T19:33:55.000Z
# the code mostly from https://github.com/sdoria/SimpleSelfAttention #based on @grankin FastAI forum script #updated by lessw2020 to use Mish XResNet # adapted from https://github.com/fastai/fastai/blob/master/examples/train_imagenette.py # changed per gpu bs for bs_rat from fastai.script import * from fastai.visio...
40.005405
117
0.639643
d6874f823d20e5a19275231dcd5d73e3345325b1
3,554
py
Python
bindings/python/ensmallen/datasets/string/streptacidiphilusalbus.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-09-10T18:31:58.000Z
2022-03-24T04:28:04.000Z
bindings/python/ensmallen/datasets/string/streptacidiphilusalbus.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/streptacidiphilusalbus.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Streptacidiphilus albus. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protei...
32.907407
223
0.678109
12fd60cfda59d765a711ea507a2b1701e684f05f
165
py
Python
tradercompany/activation_funcs.py
yyamaguchi/tradercompany
42036f2fd8360f448e3a45fcf7a01331f7732fb8
[ "Apache-2.0" ]
null
null
null
tradercompany/activation_funcs.py
yyamaguchi/tradercompany
42036f2fd8360f448e3a45fcf7a01331f7732fb8
[ "Apache-2.0" ]
1
2021-11-19T14:51:46.000Z
2021-11-19T14:51:46.000Z
tradercompany/activation_funcs.py
yoshida-chem/tradercompany
42036f2fd8360f448e3a45fcf7a01331f7732fb8
[ "Apache-2.0" ]
null
null
null
import numpy as np def identity(x): return x def tanh(x): return np.tanh(x) def sign(x): return (x > 0.0) * 1.0 def ReLU(x): return sign(x) * x
11
26
0.569697
5391a19f386bc3c29de0a22d32b020aa5b5530cb
2,119
py
Python
tests/ip/traceroute/test_ip_traceroute_01.py
mingchik/happy
5d998f4aa01d375770fa57a23f819dcf9f434625
[ "Apache-2.0" ]
null
null
null
tests/ip/traceroute/test_ip_traceroute_01.py
mingchik/happy
5d998f4aa01d375770fa57a23f819dcf9f434625
[ "Apache-2.0" ]
null
null
null
tests/ip/traceroute/test_ip_traceroute_01.py
mingchik/happy
5d998f4aa01d375770fa57a23f819dcf9f434625
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2015-2017 Nest Labs, 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/licen...
29.430556
77
0.664936
1e973644f5e34a70b36b341434cc512f702e4d80
2,627
py
Python
count_filing_arrivals.py
DataFinnovation/api-demos-python
1b5cf3334c537b9a09bcb8973c030ad7f19dd2ba
[ "Apache-2.0" ]
1
2019-10-04T18:20:43.000Z
2019-10-04T18:20:43.000Z
count_filing_arrivals.py
DataFinnovation/api-demos-python
1b5cf3334c537b9a09bcb8973c030ad7f19dd2ba
[ "Apache-2.0" ]
null
null
null
count_filing_arrivals.py
DataFinnovation/api-demos-python
1b5cf3334c537b9a09bcb8973c030ad7f19dd2ba
[ "Apache-2.0" ]
null
null
null
"""counts the number of filings for each month going back years""" import calendar import datetime from oauth2_wrappers import gen_token from df_wrappers import documents_dslquery def main(): """example code lives in one function""" # generate a token, we will be sending several queries off token = gen_...
33.253165
84
0.553864
6501da01747441c1fd96b18b4528eb61b79f7d98
731
py
Python
com/LimePencil/Q3602/iChess.py
LimePencil/baekjoonProblems
61eeeeb875585d165d9e39ecdb3d905b4ba6aa87
[ "MIT" ]
null
null
null
com/LimePencil/Q3602/iChess.py
LimePencil/baekjoonProblems
61eeeeb875585d165d9e39ecdb3d905b4ba6aa87
[ "MIT" ]
null
null
null
com/LimePencil/Q3602/iChess.py
LimePencil/baekjoonProblems
61eeeeb875585d165d9e39ecdb3d905b4ba6aa87
[ "MIT" ]
null
null
null
# O(1) import sys input = sys.stdin.readline n,m=sorted(map(int,input().split())) if m==0: print("Impossible") else: if n==m: print(int((n*2)**0.5)) else: print(int((n*2+1)**0.5)) # bruteforce # import sys # input = sys.stdin.readline # n,m=sorted(map(int,input().split())) # if m==0: # ...
19.756757
43
0.491108
490a91f4d26630bcec17daef03361bf6f22f198e
135
py
Python
challenges/2.2.Strings/main.py
pradeepsaiu/python-coding-challenges
b435ab650d85de267eeaa31a55ff77ef5dbff86b
[ "BSD-3-Clause" ]
141
2017-05-07T00:38:22.000Z
2022-03-25T10:14:25.000Z
challenges/2.2.Strings/main.py
pradeepsaiu/python-coding-challenges
b435ab650d85de267eeaa31a55ff77ef5dbff86b
[ "BSD-3-Clause" ]
23
2017-05-06T23:57:37.000Z
2018-03-23T19:07:32.000Z
challenges/2.2.Strings/main.py
pradeepsaiu/python-coding-challenges
b435ab650d85de267eeaa31a55ff77ef5dbff86b
[ "BSD-3-Clause" ]
143
2017-05-07T09:33:35.000Z
2022-03-12T21:04:13.000Z
### Modify the code below ### myName = null myAge = null favoriteActivity = null mySentence = null ### Modify the code above ###
11.25
29
0.659259
c7181af34b73767e68fee9171d8e94dd0c0c2b63
2,552
py
Python
detect.py
ReesaJohn/yolov3-tf2
b87d321e609b17c446bd94a777be33d0eb2e3806
[ "MIT" ]
null
null
null
detect.py
ReesaJohn/yolov3-tf2
b87d321e609b17c446bd94a777be33d0eb2e3806
[ "MIT" ]
null
null
null
detect.py
ReesaJohn/yolov3-tf2
b87d321e609b17c446bd94a777be33d0eb2e3806
[ "MIT" ]
null
null
null
import time from absl import app, flags, logging from absl.flags import FLAGS import cv2 import numpy as np import tensorflow as tf from yolov3_tf2.models import ( YoloV3, YoloV3Tiny ) from yolov3_tf2.dataset import transform_images, load_tfrecord_dataset from yolov3_tf2.utils import draw_outputs flags.DEFINE_stri...
33.578947
75
0.660658
b7004de9349015c5744923538414d1e804f8501d
952
py
Python
session01_Decorators/ex05.py
morales-gregorio/Python-Module-of-the-Week
2c68e20be3e174be9b91c92ac872806dd982e7d2
[ "MIT" ]
15
2017-06-22T11:57:38.000Z
2022-03-31T13:34:07.000Z
session01_Decorators/ex05.py
morales-gregorio/Python-Module-of-the-Week
2c68e20be3e174be9b91c92ac872806dd982e7d2
[ "MIT" ]
3
2019-10-16T10:32:55.000Z
2020-01-09T09:24:48.000Z
session01_Decorators/ex05.py
morales-gregorio/Python-Module-of-the-Week
2c68e20be3e174be9b91c92ac872806dd982e7d2
[ "MIT" ]
6
2016-10-07T12:50:24.000Z
2019-11-28T11:15:04.000Z
# -*- coding: utf-8 -*- """ Exercise: listize decorator When a function returns a list of results, we might need to gather those results in a list: def lucky_numbers(n): ans = [] for i in range(n): if i % 7 != 0: continue if sum(int(digit) for digit in str(i)) % 3 != 0: ...
22.666667
72
0.644958
1c6282d74585d1341e5bfa7be3e6ecc049191314
3,997
py
Python
cipher_program/encode.py
patrickleweryharris/Enigma
2e12066f39185889fae79f9c9d844bc67a035355
[ "MIT" ]
1
2015-12-24T04:20:38.000Z
2015-12-24T04:20:38.000Z
cipher_program/encode.py
patrickleweryharris/Enigma
2e12066f39185889fae79f9c9d844bc67a035355
[ "MIT" ]
null
null
null
cipher_program/encode.py
patrickleweryharris/Enigma
2e12066f39185889fae79f9c9d844bc67a035355
[ "MIT" ]
null
null
null
# Functions for encoding a message with an enigma machine comprised of n rotors # Could be combined with decode.py using instanced variables from enigma import Enigma def _process_messages(msg): """ Sanitize the message to something friendlier to the encryption program @type msg: str @rtype: None ...
25.787097
129
0.621966
eecf3c5aeb6c6785cae3fd5808954a73db6190d6
15,936
py
Python
tensorflow/contrib/boosted_trees/estimator_batch/model.py
Sonata-Wang/tensorflow
8bbef0cd77879d05ed69bf30e76087847a8ca4a2
[ "Apache-2.0" ]
36
2016-12-17T15:25:25.000Z
2022-01-29T21:50:53.000Z
tensorflow/contrib/boosted_trees/estimator_batch/model.py
shekharpalit/tensorflow
6aa83398ab03bfae822f36772757097bcb98b6ed
[ "Apache-2.0" ]
30
2016-10-04T15:38:08.000Z
2020-07-16T12:09:33.000Z
tensorflow/contrib/boosted_trees/estimator_batch/model.py
shekharpalit/tensorflow
6aa83398ab03bfae822f36772757097bcb98b6ed
[ "Apache-2.0" ]
36
2017-07-27T21:12:40.000Z
2022-02-03T16:45:56.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.492754
81
0.712663
ebed145a9420170dd97caa01e8dd194f2645c886
2,434
py
Python
SMSProject/venv/Lib/site-packages/scripts/checker_commons.py
LourencoFernando/SMS-Project
f8e13dafdb41aa01f79337819cc3033a532410e8
[ "MIT" ]
null
null
null
SMSProject/venv/Lib/site-packages/scripts/checker_commons.py
LourencoFernando/SMS-Project
f8e13dafdb41aa01f79337819cc3033a532410e8
[ "MIT" ]
null
null
null
SMSProject/venv/Lib/site-packages/scripts/checker_commons.py
LourencoFernando/SMS-Project
f8e13dafdb41aa01f79337819cc3033a532410e8
[ "MIT" ]
null
null
null
import json, sys from collections import defaultdict def aggregate(pdf_filepath, report, aggregated_report_filepath): agg_report = { "failures": defaultdict(list), "errors": defaultdict(list), } try: with open(aggregated_report_filepath) as agg_file: prev_agg_report = j...
40.566667
84
0.671323
208474ee6c69382d29064848b6bde0a9440dab93
5,107
py
Python
bib2xyz.py
Ps2Fino/mendeley2csv
0e3473340c06d5cadcfec3e80747417b78041f65
[ "BSD-3-Clause" ]
1
2022-02-10T15:21:20.000Z
2022-02-10T15:21:20.000Z
bib2xyz.py
Ps2Fino/mendeley2csv
0e3473340c06d5cadcfec3e80747417b78041f65
[ "BSD-3-Clause" ]
null
null
null
bib2xyz.py
Ps2Fino/mendeley2csv
0e3473340c06d5cadcfec3e80747417b78041f65
[ "BSD-3-Clause" ]
null
null
null
## ## Extracts information of interest from ## Mendeley exported bib files ## ## Note this program expects input csv files ## to be complete with a header. ## Execuution is subject to unknowns without... ## ## @author Daniel J. Finnegan ## @date February 2019 import argparse import os import sys from mendproc.bibmanag...
39.589147
197
0.69767
6d96500eb6bb82fa5a168f0a7a0c9631f51d60ce
16,607
py
Python
demo/predictor.py
ZhongYingMatrix/maskrcnn-benchmark
6238aff4414dedecf3d02a97c4f39c2e4cf8d35b
[ "MIT" ]
null
null
null
demo/predictor.py
ZhongYingMatrix/maskrcnn-benchmark
6238aff4414dedecf3d02a97c4f39c2e4cf8d35b
[ "MIT" ]
null
null
null
demo/predictor.py
ZhongYingMatrix/maskrcnn-benchmark
6238aff4414dedecf3d02a97c4f39c2e4cf8d35b
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import cv2 import torch from torchvision import transforms as T from torchvision.transforms import functional as F from maskrcnn_benchmark.modeling.detector import build_detection_model from maskrcnn_benchmark.utils.checkpoint import DetectronCheck...
35.109937
86
0.5865
6a50d2c4dd29aa9e8c40412489667a0777a00771
3,437
py
Python
spider/middlewares.py
adamlabrash/Canadian-Constituencies
5e555875bb0f436ec76c703bdcb64daa28d3d691
[ "MIT" ]
1
2020-08-18T15:52:16.000Z
2020-08-18T15:52:16.000Z
spider/middlewares.py
adamlabrash/Canadian-Constituencies
5e555875bb0f436ec76c703bdcb64daa28d3d691
[ "MIT" ]
1
2021-04-13T18:25:23.000Z
2021-08-19T01:26:42.000Z
spider/middlewares.py
adamlabrash/Canadian-Constituencies
5e555875bb0f436ec76c703bdcb64daa28d3d691
[ "MIT" ]
1
2021-04-13T17:58:08.000Z
2021-04-13T17:58:08.000Z
from scrapy import signals class DemocracyBotSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy acts as if the spider middleware does not modify the # passed objects. @classmethod def from_crawler(cls, crawler): # This method is used by Sc...
35.43299
78
0.664533
fa4f251b58d3c027d0a2a4532e692001b69a79eb
168
py
Python
molsysmt/item/freezer/molsysmt_TrajectoryDict/__init__.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/freezer/molsysmt_TrajectoryDict/__init__.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/freezer/molsysmt_TrajectoryDict/__init__.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
from .is_molsysmt_TrajectoryDict import is_molsysmt_TrajectoryDict from .to_molsysmt_Structures import to_molsysmt_Structures from .to_file_trjpk import to_file_trjpk
33.6
66
0.904762
e1f9b0a59ab1696ba7937c037f3d14130f441d0e
10,547
py
Python
desktop/libs/notebook/src/notebook/connectors/flink_sql.py
aroville/hue
63f5f9bcd18f9e76be1983a56137a30cbd96e49d
[ "Apache-2.0" ]
1
2021-04-16T19:53:43.000Z
2021-04-16T19:53:43.000Z
desktop/libs/notebook/src/notebook/connectors/flink_sql.py
aroville/hue
63f5f9bcd18f9e76be1983a56137a30cbd96e49d
[ "Apache-2.0" ]
null
null
null
desktop/libs/notebook/src/notebook/connectors/flink_sql.py
aroville/hue
63f5f9bcd18f9e76be1983a56137a30cbd96e49d
[ "Apache-2.0" ]
4
2020-06-01T06:00:49.000Z
2021-01-13T18:16:34.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
28.73842
115
0.629089
0cb51fee428e3d6127409e278e5d20ad8bda6420
7,833
py
Python
dl/face-parse/converter.py
showkeyjar/beauty
7c944cf896c899d9e23b2e50e293103bb03fe6cd
[ "MulanPSL-1.0" ]
1
2022-01-29T12:32:38.000Z
2022-01-29T12:32:38.000Z
dl/face-parse/converter.py
showkeyjar/beauty
7c944cf896c899d9e23b2e50e293103bb03fe6cd
[ "MulanPSL-1.0" ]
null
null
null
dl/face-parse/converter.py
showkeyjar/beauty
7c944cf896c899d9e23b2e50e293103bb03fe6cd
[ "MulanPSL-1.0" ]
null
null
null
from typing import Optional import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import sys import shutil import logging import cv2 import numpy as np import onnx from onnx_tf.backend import prepare import torch import tensorflow as tf from model import BiSeNet class Torch2TFLiteConverter: def __init__( ...
37.84058
98
0.608962
a1196160903cd2719f3510b947885ecc231f4037
52,683
py
Python
tests/python/unittest/test_numpy_ndarray.py
ChaokunChang/incubator-mxnet
3a5c78aa145411f01f9ce636b6a0f798b4730433
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_numpy_ndarray.py
ChaokunChang/incubator-mxnet
3a5c78aa145411f01f9ce636b6a0f798b4730433
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_numpy_ndarray.py
ChaokunChang/incubator-mxnet
3a5c78aa145411f01f9ce636b6a0f798b4730433
[ "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...
41.158594
150
0.544122
e48539d9142d7f5eaab6e059f60db700303a7cd7
19,913
py
Python
super_resolution_utilty.py
chien-he/DRCN_tf
bdf21a59e5ffe878ba1e326e364c63ee67eb507a
[ "Apache-2.0" ]
11
2018-04-25T12:36:37.000Z
2020-06-04T08:01:27.000Z
super_resolution_utilty.py
chien-he/DRCN_tf
bdf21a59e5ffe878ba1e326e364c63ee67eb507a
[ "Apache-2.0" ]
1
2019-04-28T06:01:19.000Z
2019-04-28T06:01:19.000Z
super_resolution_utilty.py
chenhe82166/DRCN_tf
bdf21a59e5ffe878ba1e326e364c63ee67eb507a
[ "Apache-2.0" ]
5
2017-12-30T06:27:54.000Z
2019-07-24T21:04:15.000Z
# coding=utf8 from __future__ import division import datetime import math import os import shutil from os import listdir from os.path import isfile, join import numpy as np import tensorflow as tf from PIL import Image from scipy import misc # utilities for save / load test_datasets = { "set5": ["Set5", 0, 5],...
35.879279
146
0.627228
75af01be32a9ef9dcc10fa2d2fff616384496674
2,947
py
Python
database/tests/open_alchemy/package_database/test_models/spec/test_count_customer_models.py
open-alchemy/OpenAlchemyPackage
8bf0ed62ed7f6c5015f1bf1c4658dc353395fe9b
[ "Apache-2.0" ]
null
null
null
database/tests/open_alchemy/package_database/test_models/spec/test_count_customer_models.py
open-alchemy/OpenAlchemyPackage
8bf0ed62ed7f6c5015f1bf1c4658dc353395fe9b
[ "Apache-2.0" ]
79
2020-11-28T04:02:25.000Z
2021-01-06T08:52:30.000Z
database/tests/open_alchemy/package_database/test_models/spec/test_count_customer_models.py
open-alchemy/Package
8bf0ed62ed7f6c5015f1bf1c4658dc353395fe9b
[ "Apache-2.0" ]
null
null
null
"""Tests for the models.""" import pytest from open_alchemy.package_database import factory, models COUNT_CUSTOMER_MODELS_TESTS = [ pytest.param([], "sub 2", 0, id="empty"), pytest.param( [factory.SpecFactory(sub="sub 1")], "sub 1", 0, id="single item sub miss", ), pyte...
26.079646
83
0.507974
d7cc0dc43c7c48d2e9f6eaa88bdb17c92339c13b
3,429
py
Python
ctm_api_client/models/deployment_file_error.py
tadinve/ctm_python_client
de44e5012214ec42bb99b7f9b4ebc5394cd14328
[ "BSD-3-Clause" ]
null
null
null
ctm_api_client/models/deployment_file_error.py
tadinve/ctm_python_client
de44e5012214ec42bb99b7f9b4ebc5394cd14328
[ "BSD-3-Clause" ]
null
null
null
ctm_api_client/models/deployment_file_error.py
tadinve/ctm_python_client
de44e5012214ec42bb99b7f9b4ebc5394cd14328
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ Control-M Services Provides access to BMC Control-M Services # noqa: E501 OpenAPI spec version: 9.20.215 Contact: customer_support@bmc.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from ctm_api_cl...
28.106557
85
0.562846
432b1d6c378169fde5ac0b89a5b6cc1f008ca10a
411
py
Python
Django_Intershala/Django_Intershala/wsgi.py
samir321-pixel/Django_Intershala
77aaa24a34873dab4c3302727d5f43986a99809e
[ "MIT" ]
7
2021-03-08T17:09:39.000Z
2021-12-30T09:44:44.000Z
Django_Intershala/Django_Intershala/wsgi.py
samir321-pixel/Django_Intershala
77aaa24a34873dab4c3302727d5f43986a99809e
[ "MIT" ]
null
null
null
Django_Intershala/Django_Intershala/wsgi.py
samir321-pixel/Django_Intershala
77aaa24a34873dab4c3302727d5f43986a99809e
[ "MIT" ]
2
2021-03-03T11:35:05.000Z
2021-03-22T17:00:16.000Z
""" WSGI config for Django_Intershala project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJ...
24.176471
78
0.79562
d9bcb1d199d162a48b629e6cbc185166350923ba
1,466
py
Python
leetcode-CP/Daily-Questions/1721. Swapping Nodes in a Linked List.py
vijay2020pc/100-days-of-code
b59e54471015b294bad408289e6d9101d7494b01
[ "MIT" ]
null
null
null
leetcode-CP/Daily-Questions/1721. Swapping Nodes in a Linked List.py
vijay2020pc/100-days-of-code
b59e54471015b294bad408289e6d9101d7494b01
[ "MIT" ]
null
null
null
leetcode-CP/Daily-Questions/1721. Swapping Nodes in a Linked List.py
vijay2020pc/100-days-of-code
b59e54471015b294bad408289e6d9101d7494b01
[ "MIT" ]
null
null
null
You are given the head of a linked list, and an integer k. Return the head of the linked list after swapping the values of the kth node from the beginning and the kth node from the end (the list is 1-indexed). Example 1: Input: head = [1,2,3,4,5], k = 2 Output: [1,4,3,2,5] Example 2: Input: head = [7,9,6,6,7,8,...
27.660377
150
0.582538
7edd3624677d9687456b49f5cf4c02782588d517
2,867
py
Python
detective/users/migrations/0001_initial.py
achoy/email-detective
4d10bb4bbefd10b8a90e15ae04d11fbf7187c3a7
[ "MIT" ]
null
null
null
detective/users/migrations/0001_initial.py
achoy/email-detective
4d10bb4bbefd10b8a90e15ae04d11fbf7187c3a7
[ "MIT" ]
5
2020-06-05T22:47:51.000Z
2022-02-10T08:10:49.000Z
detective/users/migrations/0001_initial.py
achoy/email-detective
4d10bb4bbefd10b8a90e15ae04d11fbf7187c3a7
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-09-03 02:53 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permission...
63.711111
329
0.663062
761822cde31b96502f5753e4e50e9cb9f9a8f5b1
1,643
py
Python
run.py
eriksonwilliam/rota-viagem
57316470e4daa58d21c391e3587b03810bf3ebef
[ "MIT" ]
null
null
null
run.py
eriksonwilliam/rota-viagem
57316470e4daa58d21c391e3587b03810bf3ebef
[ "MIT" ]
null
null
null
run.py
eriksonwilliam/rota-viagem
57316470e4daa58d21c391e3587b03810bf3ebef
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request from Controllers.Main import * from Models.SearchRoute import * app = Flask(__name__) api = None @app.route("/api/create", methods=["POST"]) def create(): data = request.get_json() if isBlank(data['origin']): return jsonify({"message":"Origin cannot be null"...
28.824561
122
0.639684
c5d55a37e36094f6f4f4cf81865507645d496efa
2,382
py
Python
src/fuzzingtool/core/plugins/encoders/url.py
NESCAU-UFLA/FuzzyingTool
ee0a3c149fb9839fb269cc0f254fb3234058e6af
[ "MIT" ]
null
null
null
src/fuzzingtool/core/plugins/encoders/url.py
NESCAU-UFLA/FuzzyingTool
ee0a3c149fb9839fb269cc0f254fb3234058e6af
[ "MIT" ]
null
null
null
src/fuzzingtool/core/plugins/encoders/url.py
NESCAU-UFLA/FuzzyingTool
ee0a3c149fb9839fb269cc0f254fb3234058e6af
[ "MIT" ]
null
null
null
# Copyright (c) 2020 - present Vitor Oriel <https://github.com/VitorOriel> # # 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 ...
39.04918
136
0.701511
1dda247f94af5eb819c00b80ace86d9fddc29b95
29,768
py
Python
app/src/iam_cleanup.py
strongdm/aws-auto-cleanup
1a47a2f31e72a9a01e3260b9164d318976b14bf1
[ "MIT" ]
null
null
null
app/src/iam_cleanup.py
strongdm/aws-auto-cleanup
1a47a2f31e72a9a01e3260b9164d318976b14bf1
[ "MIT" ]
null
null
null
app/src/iam_cleanup.py
strongdm/aws-auto-cleanup
1a47a2f31e72a9a01e3260b9164d318976b14bf1
[ "MIT" ]
1
2021-12-09T17:11:01.000Z
2021-12-09T17:11:01.000Z
import datetime import sys import time import boto3 from src.helper import Helper class IAMCleanup: def __init__(self, logging, whitelist, settings, execution_log): self.logging = logging self.whitelist = whitelist self.settings = settings self.execution_log = execution_log ...
54.222222
162
0.34574
04dd05049ff80a56a2888e2633d6bb0ff36cb156
258
py
Python
roundednumberexample.py
seanmacb/COMP-115-Exercises
fbe7e5b158f2db785b886b6c600f1a8beb19ab1f
[ "MIT" ]
null
null
null
roundednumberexample.py
seanmacb/COMP-115-Exercises
fbe7e5b158f2db785b886b6c600f1a8beb19ab1f
[ "MIT" ]
null
null
null
roundednumberexample.py
seanmacb/COMP-115-Exercises
fbe7e5b158f2db785b886b6c600f1a8beb19ab1f
[ "MIT" ]
null
null
null
#Gives the square root of a number rounded to 2 dec places import math def main(): num=eval(input("Enter your number here: ")) sqroot=math.sqrt(num) sqroot= int((sqroot + 0.005) * 100) / 100 print("The square root of",num,"is",sqroot) main()
28.666667
58
0.662791
cafdf17df1c0ff752c3a594c52f6ea0c9b346ff7
411
py
Python
startproject/crudgeodjangoproj/wsgi.py
krishnaglodha/CRUD-using-geodjango
2c9e4c3184499ddc3e04b961dae77560b2a87c52
[ "MIT" ]
null
null
null
startproject/crudgeodjangoproj/wsgi.py
krishnaglodha/CRUD-using-geodjango
2c9e4c3184499ddc3e04b961dae77560b2a87c52
[ "MIT" ]
null
null
null
startproject/crudgeodjangoproj/wsgi.py
krishnaglodha/CRUD-using-geodjango
2c9e4c3184499ddc3e04b961dae77560b2a87c52
[ "MIT" ]
1
2021-08-30T15:46:23.000Z
2021-08-30T15:46:23.000Z
""" WSGI config for crudgeodjangoproj project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJ...
24.176471
78
0.79562
a73cedab4981eef3699ea50f51a0e41174b107c6
32,318
py
Python
vmware_nsx/services/vpnaas/nsxv3/ipsec_driver.py
yebinama/vmware-nsx
5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4
[ "Apache-2.0" ]
null
null
null
vmware_nsx/services/vpnaas/nsxv3/ipsec_driver.py
yebinama/vmware-nsx
5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4
[ "Apache-2.0" ]
null
null
null
vmware_nsx/services/vpnaas/nsxv3/ipsec_driver.py
yebinama/vmware-nsx
5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 VMware, 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 by applica...
44.94854
79
0.625627
845e5a526882a627caf2eeabaaac0f78d9bf770d
5,169
py
Python
oarepo_model_builder_multilingual/property_preprocessors/i18nStr.py
oarepo/oarepo-model-builder-multilingual
884da6667dfd6f4bb2c255b4f42d6d4de999d2e8
[ "MIT" ]
null
null
null
oarepo_model_builder_multilingual/property_preprocessors/i18nStr.py
oarepo/oarepo-model-builder-multilingual
884da6667dfd6f4bb2c255b4f42d6d4de999d2e8
[ "MIT" ]
2
2022-02-06T20:03:11.000Z
2022-03-07T11:01:39.000Z
oarepo_model_builder_multilingual/property_preprocessors/i18nStr.py
oarepo/oarepo-model-builder-multilingual
884da6667dfd6f4bb2c255b4f42d6d4de999d2e8
[ "MIT" ]
null
null
null
from oarepo_model_builder.builders.jsonschema import JSONSchemaBuilder from oarepo_model_builder.builders.mapping import MappingBuilder from oarepo_model_builder.invenio.invenio_record_schema import InvenioRecordSchemaBuilder from oarepo_model_builder.property_preprocessors import PropertyPreprocessor, process from oar...
36.921429
119
0.54614
aa8b27be3925fabd901a50971cf9697e20593d51
1,124
py
Python
leetcode/55-jump-game.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
leetcode/55-jump-game.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
leetcode/55-jump-game.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
# Given an array of non-negative integers, you are initially positioned at the first index of the array. # # Each element in the array represents your maximum jump length at that position. # # Determine if you are able to reach the last index. # # Example 1: # # Input: [2,3,1,1,4] # Output: true # Explanation: Jump 1 s...
29.578947
104
0.622776
072c615ea899aa739d681c2b9847389c1e3fa32b
69
py
Python
bot/database/__init__.py
TheShubhendra/quora-discord
db5c9810ca63760b9703eeb704c4b0f69089ca74
[ "MIT" ]
4
2021-07-28T05:15:06.000Z
2021-10-06T05:28:54.000Z
bot/database/__init__.py
TheShubhendra/quora-discord
db5c9810ca63760b9703eeb704c4b0f69089ca74
[ "MIT" ]
1
2021-08-05T12:36:00.000Z
2021-08-05T12:36:00.000Z
bot/database/__init__.py
TheShubhendra/quora-discord
db5c9810ca63760b9703eeb704c4b0f69089ca74
[ "MIT" ]
2
2021-08-05T09:53:55.000Z
2022-03-02T13:36:36.000Z
from .dbmanager import DatabaseManager __all__ = [DatabaseManager]
13.8
38
0.811594
52415976f658dd37f09052a9452803484751068e
831
py
Python
pwndbg/commands/reload.py
ctfhacker/pwndbg
22867ed15378c7fc77c43194cc342e2b80489345
[ "MIT" ]
null
null
null
pwndbg/commands/reload.py
ctfhacker/pwndbg
22867ed15378c7fc77c43194cc342e2b80489345
[ "MIT" ]
null
null
null
pwndbg/commands/reload.py
ctfhacker/pwndbg
22867ed15378c7fc77c43194cc342e2b80489345
[ "MIT" ]
null
null
null
try: from __builtins__ import reload as _reload except: from imp import reload as _reload import imp import os import sys import types import gdb import pwndbg import pwndbg.commands import pwndbg.events def rreload(module, mdict=None): """Recursively reload modules.""" name = module.__name__ if...
20.775
78
0.676294
f0c93059650a41d140530476d30de6837e49cb19
3,688
py
Python
lib/taglib/objects.py
kateliev/taglib
e3fc049d9621cac91998f8d979e709fbfdeacfc8
[ "MIT" ]
null
null
null
lib/taglib/objects.py
kateliev/taglib
e3fc049d9621cac91998f8d979e709fbfdeacfc8
[ "MIT" ]
null
null
null
lib/taglib/objects.py
kateliev/taglib
e3fc049d9621cac91998f8d979e709fbfdeacfc8
[ "MIT" ]
null
null
null
# encoding: utf-8 # ---------------------------------------------------- # MODULE: taglib.objects # ---------------------------------------------------- # (C) Vassil Kateliev, 2021 # (C) http://www.kateliev.com # (C) https://github.com/kateliev # ---------------------------------------------------- # NOTE: Module ...
34.792453
166
0.632321
d0e690198a5db9f077aa0cc9d5d62093d04a67a3
30,614
py
Python
thirdparty/google_appengine/google/appengine/ext/db/djangoforms.py
jamslevy/gsoc
e995e1a8d34e0291ab988ba501ae4efc61f9516d
[ "Apache-2.0" ]
1
2016-05-09T14:43:53.000Z
2016-05-09T14:43:53.000Z
google/appengine/ext/db/djangoforms.py
Arachnid/google_appengine
2e950619f5027f414131fafc3cc253af4875a0fe
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/db/djangoforms.py
Arachnid/google_appengine
2e950619f5027f414131fafc3cc253af4875a0fe
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 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 o...
34.514092
80
0.653459
7914383ad27820dbe2280658d4c8903994d2f2c4
2,623
py
Python
scripts/readme.py
abdullahzamanbabar/syntribos
2d0a6344fe14c8edc6c5c1eba7adbedc154ff579
[ "Apache-2.0" ]
277
2015-09-23T22:55:16.000Z
2020-05-17T18:45:46.000Z
scripts/readme.py
abdullahzamanbabar/syntribos
2d0a6344fe14c8edc6c5c1eba7adbedc154ff579
[ "Apache-2.0" ]
null
null
null
scripts/readme.py
abdullahzamanbabar/syntribos
2d0a6344fe14c8edc6c5c1eba7adbedc154ff579
[ "Apache-2.0" ]
72
2016-01-04T18:57:06.000Z
2020-05-07T14:07:30.000Z
#!/usr/bin/env python # Copyright 2016 Intel # # 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 ...
31.987805
78
0.65345
d3236f61b5c909a7e161434a1a1ebe6ca04e13a8
12,575
py
Python
ryu/services/protocols/bgp/application.py
jil7/ryu
03c67d368dfa19bba6f070b060fb15aace4dd703
[ "Apache-2.0" ]
9
2018-04-11T12:53:08.000Z
2021-12-14T01:41:22.000Z
ryu/services/protocols/bgp/application.py
jil7/ryu
03c67d368dfa19bba6f070b060fb15aace4dd703
[ "Apache-2.0" ]
1
2019-05-20T13:23:28.000Z
2020-12-20T09:06:52.000Z
ryu/services/protocols/bgp/application.py
jil7/ryu
03c67d368dfa19bba6f070b060fb15aace4dd703
[ "Apache-2.0" ]
2
2020-10-20T13:52:45.000Z
2021-06-26T02:21:58.000Z
# Copyright (C) 2014 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
36.031519
78
0.668628
fe3532e34684f36e33d0ca8bdf0687e250f8c86b
4,070
py
Python
qcodes/tests/drivers/test_keysight_34934a.py
LGruenhaupt/Qcodes
ffb74dae53c13c4885e61b5a2df3f833d524de04
[ "MIT" ]
223
2016-10-29T15:00:24.000Z
2022-03-20T06:53:34.000Z
qcodes/tests/drivers/test_keysight_34934a.py
LGruenhaupt/Qcodes
ffb74dae53c13c4885e61b5a2df3f833d524de04
[ "MIT" ]
3,406
2016-10-25T10:44:50.000Z
2022-03-31T09:47:35.000Z
qcodes/tests/drivers/test_keysight_34934a.py
nikhartman/Qcodes
042c5e25ab9e40b20c316b4055c4842844834d1e
[ "MIT" ]
263
2016-10-25T11:35:36.000Z
2022-03-31T08:53:20.000Z
# pylint: disable=redefined-outer-name import pytest from hypothesis import given import hypothesis.strategies as st from qcodes.instrument_drivers.Keysight.keysight_34980a import Keysight34980A from qcodes.instrument_drivers.Keysight.keysight_34934a import Keysight34934A import qcodes.instrument.sims as sims VISALIB ...
24.08284
80
0.649386
48e73c10325cabf003bfe13ba74921f282126674
3,062
py
Python
tests/test_xmhw.py
Thomas-Moore-Creative/xmhw
5c0db575fe0218d5f2c5189b2de85dabecc5c8cf
[ "Apache-2.0" ]
6
2021-10-03T22:15:36.000Z
2022-03-06T04:01:50.000Z
tests/test_xmhw.py
Thomas-Moore-Creative/xmhw
5c0db575fe0218d5f2c5189b2de85dabecc5c8cf
[ "Apache-2.0" ]
17
2021-05-28T00:48:59.000Z
2022-03-29T21:36:09.000Z
tests/test_xmhw.py
Thomas-Moore-Creative/xmhw
5c0db575fe0218d5f2c5189b2de85dabecc5c8cf
[ "Apache-2.0" ]
3
2021-09-30T06:23:51.000Z
2022-02-16T12:13:40.000Z
#!/usr/bin/env python # Copyright 2020 ARC Centre of Excellence for Climate Extremes # author: Paola Petrelli <paola.petrelli@utas.edu.au> # # 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 # # ...
52.793103
124
0.743632
4854e55c3bf64085accb32d032400f351069e200
1,595
py
Python
setup.py
angryjoe/cookiecutter-django-foundation
7abcfe253779c69f9d620a78dff826b2ad839977
[ "BSD-3-Clause" ]
null
null
null
setup.py
angryjoe/cookiecutter-django-foundation
7abcfe253779c69f9d620a78dff826b2ad839977
[ "BSD-3-Clause" ]
null
null
null
setup.py
angryjoe/cookiecutter-django-foundation
7abcfe253779c69f9d620a78dff826b2ad839977
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup # Our version ALWAYS matches the version of Django we support # If Django has a new release, we branch, tag, then update this setting after the tag. version = "2.2.4" if sys.argv...
30.673077
97
0.648903
9b42ff6b2b77aef95935952e89b7203008699d60
6,761
py
Python
mask_the_face.py
shhommychon/WrongMaskTheFace
9950988e6fa2ec395af8c2ef0682d47139402181
[ "MIT" ]
null
null
null
mask_the_face.py
shhommychon/WrongMaskTheFace
9950988e6fa2ec395af8c2ef0682d47139402181
[ "MIT" ]
null
null
null
mask_the_face.py
shhommychon/WrongMaskTheFace
9950988e6fa2ec395af8c2ef0682d47139402181
[ "MIT" ]
null
null
null
# Author: aqeelanwar # Created: 27 April,2020, 10:22 PM # Email: aqeel.anwar@gatech.edu import argparse import dlib from utils.aux_functions import * # Command-line input setup parser = argparse.ArgumentParser( description="MaskTheFace - Python code to mask faces dataset" ) parser.add_argument( "--path", ...
30.318386
212
0.585121
67359e9688fb15bcfc59fb7ed473f5a38b6947ab
3,779
py
Python
cryspy/C_item_loop_classes/cl_1_setup.py
ikibalin/rhochi
1ca03f18dc72006322a101ed877cdbba33ed61e7
[ "MIT" ]
null
null
null
cryspy/C_item_loop_classes/cl_1_setup.py
ikibalin/rhochi
1ca03f18dc72006322a101ed877cdbba33ed61e7
[ "MIT" ]
null
null
null
cryspy/C_item_loop_classes/cl_1_setup.py
ikibalin/rhochi
1ca03f18dc72006322a101ed877cdbba33ed61e7
[ "MIT" ]
null
null
null
"""Setup and SetupL classes.""" from typing import NoReturn from cryspy.A_functions_base.function_1_objects import \ form_items_by_dictionary from cryspy.B_parent_classes.cl_1_item import ItemN from cryspy.B_parent_classes.cl_2_loop import LoopN class Setup(ItemN): """Experimental diffraction setup (constan...
38.171717
109
0.635089
e60034ea7b46e83b94613176e159bbee3cf0dcad
348
py
Python
Algorithms/Sorting/insertionsort1.py
ekant1999/HackerRank
084d4550b4eaf130837ab26a4efdbcaf8b667cdc
[ "MIT" ]
9
2017-03-19T16:27:31.000Z
2022-02-17T11:42:21.000Z
Algorithms/Sorting/insertionsort1.py
ekant1999/HackerRank
084d4550b4eaf130837ab26a4efdbcaf8b667cdc
[ "MIT" ]
null
null
null
Algorithms/Sorting/insertionsort1.py
ekant1999/HackerRank
084d4550b4eaf130837ab26a4efdbcaf8b667cdc
[ "MIT" ]
6
2019-02-18T11:26:24.000Z
2022-03-21T14:13:15.000Z
#!/bin/python def insertionSort(ar): e = ar[m-1] pos = m-2 while ar[pos] > e and pos>=0: ar[pos+1] = ar[pos] pos -= 1 print " ".join(str(ch) for ch in ar) ar[pos+1] = e print " ".join(str(ch) for ch in ar) m = input() ar = [int(i) for i in raw_input().strip().s...
23.2
51
0.502874
ac90be96392a057ed93b9f175dd35acbfad3b716
5,726
py
Python
example_tagging.py
Yizong98/Modified_Transfer_Model
7ad226d6515f1c6ea6f679d6cf3cbcc066b30236
[ "MIT" ]
null
null
null
example_tagging.py
Yizong98/Modified_Transfer_Model
7ad226d6515f1c6ea6f679d6cf3cbcc066b30236
[ "MIT" ]
null
null
null
example_tagging.py
Yizong98/Modified_Transfer_Model
7ad226d6515f1c6ea6f679d6cf3cbcc066b30236
[ "MIT" ]
null
null
null
from keras.layers import Input, Dense from keras.models import Model from keras.layers import Dense, Dropout, Flatten from keras.layers.convolutional import Convolution2D from keras.layers.convolutional import MaxPooling2D, ZeroPadding2D from keras.layers.normalization import BatchNormalization from keras.layers.advanc...
36.941935
131
0.599197
53ba1c8e15d6d8a0f64542290ac645dd5080e8ef
2,418
py
Python
static/brythonlib/cs1media/__init__.py
pythonpad/vue-pythonpad-runner
52decba9607b3b7b050ee0bf6dd4ef07ae644587
[ "MIT" ]
3
2021-01-26T16:18:45.000Z
2021-09-15T00:57:12.000Z
static/brythonlib/cs1media/__init__.py
pythonpad/vue-pythonpad-runner
52decba9607b3b7b050ee0bf6dd4ef07ae644587
[ "MIT" ]
null
null
null
static/brythonlib/cs1media/__init__.py
pythonpad/vue-pythonpad-runner
52decba9607b3b7b050ee0bf6dd4ef07ae644587
[ "MIT" ]
2
2021-01-26T16:18:47.000Z
2021-10-21T20:45:20.000Z
import browser from .picture import Picture def create_picture(width, height, color=(0,0,0)): global __media__ try: if ('locked_picture' in __media__) and ('lock_create' in __media__) and __media__['lock_create']: return __media__['locked_picture'] except NameError: __media__ =...
29.13253
271
0.654673
c4bfb44986929722bcebc3ca70ba5158f1ede8ba
10,531
py
Python
sdks/python/apache_beam/internal/pickler.py
rehmanmuradali/beam
de8ff705145cbbc41bea7750a0a5d3553924ab3a
[ "Apache-2.0" ]
2
2017-12-19T18:34:54.000Z
2019-05-14T21:50:06.000Z
sdks/python/apache_beam/internal/pickler.py
almamuncsit/beam
aa58e1e5db4af2a6f97520756831e87aa1d3e3fb
[ "Apache-2.0" ]
9
2020-06-03T12:34:25.000Z
2020-08-11T12:18:22.000Z
sdks/python/apache_beam/internal/pickler.py
almamuncsit/beam
aa58e1e5db4af2a6f97520756831e87aa1d3e3fb
[ "Apache-2.0" ]
1
2020-11-11T18:45:54.000Z
2020-11-11T18:45:54.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 us...
34.191558
86
0.712658
c73fb17b2cecf6385d73714f70a0ecfff73c9543
2,243
py
Python
launch/ign_moveit2_headless.launch.py
Tiamat-Tech/drl_grasping
e67efee1cdbeeb3cb1e4d028890bbfc601e7840c
[ "BSD-3-Clause" ]
126
2020-11-02T11:08:07.000Z
2022-03-31T16:25:06.000Z
launch/ign_moveit2_headless.launch.py
Tiamat-Tech/drl_grasping
e67efee1cdbeeb3cb1e4d028890bbfc601e7840c
[ "BSD-3-Clause" ]
68
2020-11-02T13:18:29.000Z
2022-02-27T17:38:50.000Z
launch/ign_moveit2_headless.launch.py
Tiamat-Tech/drl_grasping
e67efee1cdbeeb3cb1e4d028890bbfc601e7840c
[ "BSD-3-Clause" ]
27
2021-01-20T16:15:41.000Z
2022-03-15T10:44:43.000Z
"""Forwarded launch of ign_moveit2 (with RViz2 disabled by default)""" import os from ament_index_python.packages import get_package_share_directory from launch import LaunchDescription from launch.actions import DeclareLaunchArgument from launch_ros.actions import Node from launch.substitutions import LaunchConfigura...
43.134615
112
0.66741
3fa6b76150340746bcd10f60ca49a627b7397a36
3,801
py
Python
sphinxcontrib/needs/directives/needextract.py
gregegg/sphinxcontrib-needs
b0c10a44756bb8f16313dcf52e17fd87cf47e780
[ "MIT" ]
null
null
null
sphinxcontrib/needs/directives/needextract.py
gregegg/sphinxcontrib-needs
b0c10a44756bb8f16313dcf52e17fd87cf47e780
[ "MIT" ]
null
null
null
sphinxcontrib/needs/directives/needextract.py
gregegg/sphinxcontrib-needs
b0c10a44756bb8f16313dcf52e17fd87cf47e780
[ "MIT" ]
null
null
null
""" """ import sys import urllib from docutils import nodes from docutils.parsers.rst import directives from sphinxcontrib.needs.layout import create_need from sphinxcontrib.needs.filter_common import FilterBase, procces_filters from sphinxcontrib.needs.directives.utils import no_needs_found_paragraph, used_filter...
35.858491
111
0.629045
2eafe96c7592b46bd4499f2df33d983c0e63dc1c
2,470
py
Python
trove/tests/unittests/common/test_secure_serializer.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
244
2015-01-01T12:04:44.000Z
2022-03-25T23:38:39.000Z
trove/tests/unittests/common/test_secure_serializer.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
6
2015-08-18T08:19:10.000Z
2022-03-05T02:32:36.000Z
trove/tests/unittests/common/test_secure_serializer.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
178
2015-01-02T15:16:58.000Z
2022-03-23T03:30:20.000Z
# Copyright 2016 Tesora, 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 by ...
38
78
0.689879
9a2b63caaa2ed27d7c0e5097716cb0c6314f7a34
3,803
py
Python
ls/joyous/tests/test_holidays.py
Pandevmonium/ls.joyous
53da85c8d979850eae06019e65d0e9fc61620acc
[ "BSD-3-Clause" ]
null
null
null
ls/joyous/tests/test_holidays.py
Pandevmonium/ls.joyous
53da85c8d979850eae06019e65d0e9fc61620acc
[ "BSD-3-Clause" ]
null
null
null
ls/joyous/tests/test_holidays.py
Pandevmonium/ls.joyous
53da85c8d979850eae06019e65d0e9fc61620acc
[ "BSD-3-Clause" ]
null
null
null
# ------------------------------------------------------------------------------ # Test Holidays # ------------------------------------------------------------------------------ import sys import datetime as dt from unittest.mock import Mock from django.conf import settings from django.test import TestCase, override_se...
40.892473
80
0.545359
0686c37b41766b0dac19a06ece35911c162f8bea
468
py
Python
utils/summarizer_eager.py
yigitozgumus/IACV_Project
0e012139a33c76ca88505c28270f1250181ec701
[ "MIT" ]
3
2019-07-27T14:00:42.000Z
2020-01-17T17:07:51.000Z
utils/summarizer_eager.py
yigitozgumus/IACV_Project
0e012139a33c76ca88505c28270f1250181ec701
[ "MIT" ]
null
null
null
utils/summarizer_eager.py
yigitozgumus/IACV_Project
0e012139a33c76ca88505c28270f1250181ec701
[ "MIT" ]
4
2019-10-22T02:58:26.000Z
2020-10-06T09:59:26.000Z
import tensorflow as tf import os class Summarizer_eager: def __init__(self, config): self.config = config self.summary_placeholders = {} self.summary_ops = {} self.train_summary_writer = tf.summary.create_file_writer( os.path.join(self.config.log.summary_dir, "train") ...
29.25
66
0.647436
c850ff4ce67150f989d53c53bf8ae46052ab577d
1,676
py
Python
tests/test_weight_init.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
null
null
null
tests/test_weight_init.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
null
null
null
tests/test_weight_init.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) MONAI Consortium # 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, so...
34.916667
74
0.631862
c4d526ce389e11b3c3c1dd66b8fe29d88ceebc71
1,150
py
Python
python/src/nnabla/backward_function/quantize_linear.py
isabella232/nnabla
82a3c6fed382f889d1a4a429c696bb8cedf6ce79
[ "Apache-2.0" ]
null
null
null
python/src/nnabla/backward_function/quantize_linear.py
isabella232/nnabla
82a3c6fed382f889d1a4a429c696bb8cedf6ce79
[ "Apache-2.0" ]
null
null
null
python/src/nnabla/backward_function/quantize_linear.py
isabella232/nnabla
82a3c6fed382f889d1a4a429c696bb8cedf6ce79
[ "Apache-2.0" ]
null
null
null
# Copyright 2020,2021 Sony Corporation. # Copyright 2021 Sony Group Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
35.9375
100
0.724348
9b2eca8cf16c260a9ebaab5cef349d3c3a0ee168
1,534
py
Python
Projects/Weather Check/Weather.py
criox4/Contribute-to-HacktoberFest2021
be989c6d82b577fa0a6bc4692a74965df78ab80c
[ "MIT" ]
null
null
null
Projects/Weather Check/Weather.py
criox4/Contribute-to-HacktoberFest2021
be989c6d82b577fa0a6bc4692a74965df78ab80c
[ "MIT" ]
null
null
null
Projects/Weather Check/Weather.py
criox4/Contribute-to-HacktoberFest2021
be989c6d82b577fa0a6bc4692a74965df78ab80c
[ "MIT" ]
null
null
null
from configparser import ConfigParser import requests from tkinter import * from tkinter import messagebox config_file = "config.ini" config = ConfigParser() config.read(config_file) api_key = config['gfg']['api'] url = 'http://api.openweathermap.org/data/2.5/weather?q={}&appid={}' def getweather(cit...
24.349206
69
0.67601
9e0607bd11e52dcb38793afcb1321faae8300a6b
3,839
py
Python
models/configs.py
yanghongji2007/cross_view_localization_EtoTR
5b9e89027c69a5071955450ca3e5b10315393120
[ "MIT" ]
16
2021-11-19T03:06:52.000Z
2022-03-16T13:32:59.000Z
models/configs.py
yanghongji2007/cross_view_localization_EtoTR
5b9e89027c69a5071955450ca3e5b10315393120
[ "MIT" ]
3
2021-12-07T06:49:13.000Z
2022-01-01T07:56:45.000Z
models/configs.py
yanghongji2007/cross_view_localization_L2LTR
5b9e89027c69a5071955450ca3e5b10315393120
[ "MIT" ]
null
null
null
import ml_collections def get_testing(): """Returns a minimal configuration for testing.""" config = ml_collections.ConfigDict() config.patches = ml_collections.ConfigDict({'size': (16, 16)}) config.hidden_size = 1 config.transformer = ml_collections.ConfigDict() config.transformer.mlp_dim = ...
30.959677
66
0.700443
f0a36fdfabedb5317a920cc1cb8e7b6aeabadc11
630
py
Python
artemis/generators/simutable/providers/normal/__init__.py
artemis-analytics/artemis
3e1eebdd4628145ee7d8923567b5e6f53a2e5244
[ "Apache-2.0" ]
4
2020-02-29T15:02:05.000Z
2021-05-13T18:50:58.000Z
artemis/generators/simutable/providers/normal/__init__.py
artemis-analytics/artemis
3e1eebdd4628145ee7d8923567b5e6f53a2e5244
[ "Apache-2.0" ]
25
2020-02-25T19:29:21.000Z
2020-04-03T15:06:59.000Z
artemis/generators/simutable/providers/normal/__init__.py
ryanmwhitephd/artemis
3e1eebdd4628145ee7d8923567b5e6f53a2e5244
[ "Apache-2.0" ]
2
2021-08-12T09:40:51.000Z
2021-08-12T09:42:09.000Z
# -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2018 Ryan Mackenzie White <ryan.white4@canada.ca> # """ faker provider for creating a normal distribution """ import unittest from faker import Faker from faker.providers import BaseProvider class Provider(BaseProvider): def normal(self): mu = 0 ...
17.5
63
0.655556
19fa5c603bfafe16ed151e10fa8eb11a79106ede
20,322
py
Python
src/finn/transformation/fpgadataflow/create_stitched_ip.py
rbcarlos/finn
ffb1d66ae4a9dd0d4831b2f0a5c057aff9aeae5a
[ "BSD-3-Clause" ]
1
2021-03-12T17:20:09.000Z
2021-03-12T17:20:09.000Z
src/finn/transformation/fpgadataflow/create_stitched_ip.py
surangamh/finn
af783db8dc2a1d2e95bd569d39464b935520b6d2
[ "BSD-3-Clause" ]
null
null
null
src/finn/transformation/fpgadataflow/create_stitched_ip.py
surangamh/finn
af783db8dc2a1d2e95bd569d39464b935520b6d2
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Xilinx # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the follow...
46.39726
88
0.596398
b659fa2233ed9355ea26bb67ab128916a1f5f50a
721
py
Python
example.py
vikramgorla/python-opendata-transport
4f84c244a4c4d9deb7a606cdb34dc09f6ee9eba9
[ "MIT" ]
null
null
null
example.py
vikramgorla/python-opendata-transport
4f84c244a4c4d9deb7a606cdb34dc09f6ee9eba9
[ "MIT" ]
null
null
null
example.py
vikramgorla/python-opendata-transport
4f84c244a4c4d9deb7a606cdb34dc09f6ee9eba9
[ "MIT" ]
null
null
null
""" Copyright (c) 2015-2018 Fabian Affolter <fabian@affolter-engineering.ch> Licensed under MIT. All rights reserved. """ import asyncio import aiohttp from opendata_transport import OpendataTransport async def main(): with aiohttp.ClientSession() as session: data = OpendataTransport('Bex', 'Vevey', loo...
24.862069
72
0.699029
6e538c387b8f9ad1523f2c8957b1ca329fde917a
1,406
py
Python
instagram/urls.py
hkawinzi/The-_gram
56b560f29e38f284a40c4c7c61df92943c9c0bad
[ "Unlicense" ]
null
null
null
instagram/urls.py
hkawinzi/The-_gram
56b560f29e38f284a40c4c7c61df92943c9c0bad
[ "Unlicense" ]
7
2021-03-19T02:20:13.000Z
2022-02-10T09:28:24.000Z
instagram/urls.py
hkawinzi/The-_gram
56b560f29e38f284a40c4c7c61df92943c9c0bad
[ "Unlicense" ]
null
null
null
"""instagram URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
38
105
0.726174
521a4e369296844f4331bf62a0e6ce22d382733b
1,596
py
Python
learning/sources/source_unity_exporter.py
bermeom/quadruped-robot
5570c720a27b26f94236ebc2ff41f0a1549f10b8
[ "MIT" ]
8
2018-12-19T17:30:10.000Z
2021-05-09T17:53:03.000Z
learning/sources/source_unity_exporter.py
bermeom/quadruped-robot
5570c720a27b26f94236ebc2ff41f0a1549f10b8
[ "MIT" ]
null
null
null
learning/sources/source_unity_exporter.py
bermeom/quadruped-robot
5570c720a27b26f94236ebc2ff41f0a1549f10b8
[ "MIT" ]
2
2020-10-06T01:56:30.000Z
2021-04-28T18:31:39.000Z
import tensorflow as tf import tensorblock as tb from tensorflow.python.tools import freeze_graph def export_ugraph( brain, model_path, env_name, target_nodes): """ Unity ML Agents Exports latest saved model to .bytes format for Unity embedding. :brain: tensorblock brain :param model_path: path of...
53.2
147
0.639724
63ff8e6136b37c0ef5c4fc20c25e2df175fa9a24
12,594
py
Python
salt/modules/libcloud_storage.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-21T00:18:25.000Z
2021-07-11T07:35:26.000Z
salt/modules/libcloud_storage.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
salt/modules/libcloud_storage.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-05T09:50:42.000Z
2019-08-19T01:43:40.000Z
# -*- coding: utf-8 -*- ''' Apache Libcloud Storage Management ================================== Connection module for Apache Libcloud Storage (object/blob) management for a full list of supported clouds, see http://libcloud.readthedocs.io/en/latest/storage/supported_providers.html Clouds include Amazon S3, Google S...
29.914489
128
0.678577
f6cda114582c51c716509fc9ed139ab7257b11ed
3,133
py
Python
audb/core/utils.py
audeering/audb
6174d8c03676dd3a868572393c3cb8c295da6f04
[ "MIT" ]
1
2022-03-17T10:36:23.000Z
2022-03-17T10:36:23.000Z
audb/core/utils.py
audeering/audb
6174d8c03676dd3a868572393c3cb8c295da6f04
[ "MIT" ]
143
2021-04-07T13:00:00.000Z
2022-03-29T08:53:59.000Z
audb/core/utils.py
audeering/audb
6174d8c03676dd3a868572393c3cb8c295da6f04
[ "MIT" ]
null
null
null
import typing import warnings import audbackend from audb.core.config import config from audb.core.repository import Repository def lookup_backend( name: str, version: str, ) -> audbackend.Backend: r"""Return backend of requested database. If the database is stored in several repositories, ...
23.380597
68
0.591446
1cbe8d2cb09bfea4067aa2f0f02d6fd521f73f69
972
py
Python
main.py
nan-dre/FFTNR
a66569fa11b0ee81345f5bffe8167cc5ae41a7fa
[ "MIT" ]
null
null
null
main.py
nan-dre/FFTNR
a66569fa11b0ee81345f5bffe8167cc5ae41a7fa
[ "MIT" ]
null
null
null
main.py
nan-dre/FFTNR
a66569fa11b0ee81345f5bffe8167cc5ae41a7fa
[ "MIT" ]
null
null
null
import scipy import numpy as np import librosa from librosa import display from matplotlib import pyplot as plt import pprint file_path = "sounds/a_tired_ghost.wav" samples, sampling_rate = librosa.load(file_path, sr = None, mono = True, offset = 0.0, duration = None) def plot_...
24.923077
72
0.626543
0952344cd260252e19e99c938a02bb8c59f94368
3,284
gyp
Python
cloud_print/gcp20/prototype/gcp20_device.gyp
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2017-04-05T01:51:34.000Z
2018-02-15T03:11:54.000Z
cloud_print/gcp20/prototype/gcp20_device.gyp
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-12-13T19:44:12.000Z
2021-12-13T19:44:12.000Z
cloud_print/gcp20/prototype/gcp20_device.gyp
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2017-04-05T01:52:03.000Z
2022-02-13T17:58:45.000Z
# Copyright 2013 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. { 'target_defaults': { 'variables': { 'chromium_code': 1, 'enable_wexit_time_destructors': 1, }, 'include_dirs': [ '<(DEPTH)'...
28.556522
100
0.553593
495a4b494bc98bdbbea89c503e7f2b807014ea68
3,645
py
Python
examples/server/nss_http_server.py
mshang816/nss_http
23c7d53e9617fbd49fc32f6168ff7a9f94086735
[ "MIT" ]
34
2015-01-29T14:41:00.000Z
2021-07-13T15:02:11.000Z
examples/server/nss_http_server.py
mshang816/nss_http
23c7d53e9617fbd49fc32f6168ff7a9f94086735
[ "MIT" ]
2
2016-05-20T05:47:47.000Z
2018-07-13T21:43:46.000Z
examples/server/nss_http_server.py
mshang816/nss_http
23c7d53e9617fbd49fc32f6168ff7a9f94086735
[ "MIT" ]
19
2016-02-29T13:20:45.000Z
2021-11-18T11:23:13.000Z
#!/usr/bin/env python import json from flask import Flask, request, abort, Response app = Flask(__name__) @app.route('/passwd') def passwd(): data = [ { "pw_name": "testuser1", "pw_passwd": "x", "pw_uid": 6000, "pw_gid": 6000, "pw_gecos": "Testing", "pw_dir": "/home/testuser1", "...
34.065421
109
0.545953
f0b51b96094818e7fb467dded1159ec891c45b35
4,571
py
Python
nova/tests/api/openstack/compute/contrib/test_flavor_manage.py
bopopescu/extra-specs-1
6a14d8d7807727023b4d589af47e8a9605f12db1
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/contrib/test_flavor_manage.py
bopopescu/extra-specs-1
6a14d8d7807727023b4d589af47e8a9605f12db1
[ "Apache-2.0" ]
1
2020-07-24T14:14:13.000Z
2020-07-24T14:14:13.000Z
nova/tests/api/openstack/compute/contrib/test_flavor_manage.py
bopopescu/extra-specs-1
6a14d8d7807727023b4d589af47e8a9605f12db1
[ "Apache-2.0" ]
1
2020-07-24T10:40:59.000Z
2020-07-24T10:40:59.000Z
# Copyright 2011 Andrew Bogott for the Wikimedia Foundation # 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-...
32.190141
78
0.596368
e0be5382e22958080807db0b7f4d8a039acecb8b
19,990
py
Python
iotbx/regression/ncs/tst_ncs.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
2
2021-03-18T12:31:57.000Z
2022-03-14T06:27:06.000Z
iotbx/regression/ncs/tst_ncs.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
null
null
null
iotbx/regression/ncs/tst_ncs.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
1
2021-03-26T12:52:30.000Z
2021-03-26T12:52:30.000Z
from __future__ import absolute_import, division, print_function import iotbx.ncs from libtbx.test_utils import approx_equal, show_diff from scitbx import matrix import iotbx.ncs as ncs from iotbx import pdb import mmtbx.model pdb_str_1="""\ MTRIX1 1 1.000000 0.000000 0.000000 0.00000 1 MTRIX2 1 0.00...
53.449198
78
0.553077
ac239a329dd6b099be4ed3e1b0466e64189adccb
11,307
py
Python
core/providers/constants/test_contract.py
AsiganTheSunk/python3-gnosis-cli
c4c2638aa75b8a8268ad899d6cea1e602227ef19
[ "MIT" ]
null
null
null
core/providers/constants/test_contract.py
AsiganTheSunk/python3-gnosis-cli
c4c2638aa75b8a8268ad899d6cea1e602227ef19
[ "MIT" ]
null
null
null
core/providers/constants/test_contract.py
AsiganTheSunk/python3-gnosis-cli
c4c2638aa75b8a8268ad899d6cea1e602227ef19
[ "MIT" ]
null
null
null
test_address_contract = "0xf79cb3BEA83BD502737586A6E8B133c378FD1fF2" test_abi_contract = [{"name": "TokenPurchase", "inputs": [{"type": "address", "name": "buyer", "indexed": 'true'}, {"type": "uint256", "name": "eth_sold", "indexed": 'true'}, {"type": "uint256", "name": "tokens_bought", "indexed": 'true'}], "anonymou...
2,261.4
11,235
0.581144
a36d9f3851fe3e27724b7d2d0e8fb7aff6265ea8
3,471
py
Python
server/ships.py
DrunyaGames/SeaBattle-Plus-Plus
a60250b1af17651c9a2af5dcaa39a11a3a09dfa5
[ "MIT" ]
null
null
null
server/ships.py
DrunyaGames/SeaBattle-Plus-Plus
a60250b1af17651c9a2af5dcaa39a11a3a09dfa5
[ "MIT" ]
null
null
null
server/ships.py
DrunyaGames/SeaBattle-Plus-Plus
a60250b1af17651c9a2af5dcaa39a11a3a09dfa5
[ "MIT" ]
null
null
null
from errors import * class BaseShip: name = '%s deck' def __init__(self, ship_len, x, y, direction, field): self.len = ship_len self.field = field self.x = x self.y = y self.direction = direction self.name = self.name % self.len self.shoots = [] ...
26.496183
85
0.496399
01ae3b72dcf72283991f83b880e67e22b602807b
4,780
py
Python
test/functional/interface_http.py
Kopernikus-dev/step4.3
9051be4dfccdc64f534e950e81caae4bd740b275
[ "MIT" ]
null
null
null
test/functional/interface_http.py
Kopernikus-dev/step4.3
9051be4dfccdc64f534e950e81caae4bd740b275
[ "MIT" ]
null
null
null
test/functional/interface_http.py
Kopernikus-dev/step4.3
9051be4dfccdc64f534e950e81caae4bd740b275
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the RPC HTTP basics.""" from test_framework.test_framework import PivxTestFramework from test_fra...
43.853211
109
0.632845
a8b29e5014eb4568e416846dd8e52f7b2f7f54d9
6,869
py
Python
services/pipeline/bin/historical/migrations/populate_local_dt.py
e-mission/e-mission-ng-aggregator
0ce43b93192459ac1864b8e88e96b83ea0929aa2
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
services/pipeline/bin/historical/migrations/populate_local_dt.py
e-mission/e-mission-ng-aggregator
0ce43b93192459ac1864b8e88e96b83ea0929aa2
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
21
2018-12-19T07:09:45.000Z
2021-12-13T20:07:36.000Z
services/pipeline/bin/historical/migrations/populate_local_dt.py
e-mission/e-mission-ng-aggregator
0ce43b93192459ac1864b8e88e96b83ea0929aa2
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
2
2019-05-02T16:20:14.000Z
2019-05-02T17:33:42.000Z
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import # Note that this script is only retained for historical purposes, # to document how we expanded the local date entries. It will not run # any more, since we have removed t...
43.201258
120
0.649294
6c1e068efe1e236cb05442005c0048d66f5f1a96
6,408
py
Python
mkt/feed/fakedata.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
mkt/feed/fakedata.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
mkt/feed/fakedata.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
import hashlib import random from django.core.files.storage import default_storage as storage from mpconstants.collection_colors import COLLECTION_COLORS import pydenticon from mkt.constants.regions import REGIONS_DICT from mkt.constants.carriers import CARRIER_CHOICE_DICT from mkt.webapps.fakedata import foreground,...
40.815287
77
0.634363
f1c5a09904ad4010077dc0ac9f0794b0ad98f9cc
13,954
py
Python
pywren_ibm_cloud/tests.py
erezh16/pywren-ibm-cloud
54d0d5346f15ae86ff95b5502da2fc062014adb3
[ "Apache-2.0" ]
null
null
null
pywren_ibm_cloud/tests.py
erezh16/pywren-ibm-cloud
54d0d5346f15ae86ff95b5502da2fc062014adb3
[ "Apache-2.0" ]
null
null
null
pywren_ibm_cloud/tests.py
erezh16/pywren-ibm-cloud
54d0d5346f15ae86ff95b5502da2fc062014adb3
[ "Apache-2.0" ]
null
null
null
# # (C) Copyright IBM Corp. 2019 # # 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 writi...
35.237374
147
0.644833
a78dba91e3e4f12c84e06fe3bcc4a4d2cc889af3
1,758
py
Python
autoPyTorch/pipeline/components/preprocessing/tabular_preprocessing/base_tabular_preprocessing.py
LMZimmer/Auto-PyTorch_refactor
ac7a9ce35e87a428caca2ac108b362a54d3b8f3a
[ "Apache-2.0" ]
null
null
null
autoPyTorch/pipeline/components/preprocessing/tabular_preprocessing/base_tabular_preprocessing.py
LMZimmer/Auto-PyTorch_refactor
ac7a9ce35e87a428caca2ac108b362a54d3b8f3a
[ "Apache-2.0" ]
34
2020-10-06T08:06:46.000Z
2021-01-21T13:23:34.000Z
autoPyTorch/pipeline/components/preprocessing/tabular_preprocessing/base_tabular_preprocessing.py
LMZimmer/Auto-PyTorch_refactor
ac7a9ce35e87a428caca2ac108b362a54d3b8f3a
[ "Apache-2.0" ]
1
2020-10-14T12:25:47.000Z
2020-10-14T12:25:47.000Z
from typing import Dict, List, Optional from sklearn.base import BaseEstimator from autoPyTorch.pipeline.components.preprocessing.base_preprocessing import autoPyTorchPreprocessingComponent class autoPyTorchTabularPreprocessingComponent(autoPyTorchPreprocessingComponent): """ Provides abstract interface fo...
39.954545
110
0.677474
5245d2199315fb28b45539333f2927bbac2c8069
432
py
Python
env/Lib/site-packages/plotly/validators/mesh3d/colorbar/_tickprefix.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/mesh3d/colorbar/_tickprefix.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/mesh3d/colorbar/_tickprefix.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="tickprefix", parent_name="mesh3d.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, pare...
30.857143
79
0.666667
23481b8343288aad7dd3acc8cda728928e537604
1,578
py
Python
zhihu_spider/pipelines.py
Moonwly/zhihu_spider
609e78f3f68045697456a59c9d6867ee0b1a9c99
[ "WTFPL" ]
null
null
null
zhihu_spider/pipelines.py
Moonwly/zhihu_spider
609e78f3f68045697456a59c9d6867ee0b1a9c99
[ "WTFPL" ]
null
null
null
zhihu_spider/pipelines.py
Moonwly/zhihu_spider
609e78f3f68045697456a59c9d6867ee0b1a9c99
[ "WTFPL" ]
1
2020-03-01T11:30:51.000Z
2020-03-01T11:30:51.000Z
# -*- coding: utf-8 -*- # Define your item pipelines here # import pymysql from zhihu_spider.misc.all_secret_set import mysql_config import logging from zhihu_spider.misc.mysql_pool import ConnectionPool from zhihu_spider.items import * from scrapy.exceptions import DropItem from zhihu_spider.misc.tools import spelli...
27.684211
73
0.666033
07ed80658a549fe138acf35c8935bfe6ece0a233
3,638
py
Python
orp/rendering.py
Outbreak-Team/outbreak-rp-renderer
05036182c4b54b1011e643e0dcbcb82253b23667
[ "MIT" ]
null
null
null
orp/rendering.py
Outbreak-Team/outbreak-rp-renderer
05036182c4b54b1011e643e0dcbcb82253b23667
[ "MIT" ]
null
null
null
orp/rendering.py
Outbreak-Team/outbreak-rp-renderer
05036182c4b54b1011e643e0dcbcb82253b23667
[ "MIT" ]
null
null
null
import argparse import os import sys import bpy """ blender test.blend -b -P rendering.py -- --r 512 --m normalmap --o ./normalmap.png blender test.blend -b -P rendering.py -- --r 512 --m heightmap --o ./heightmap.png """ dirpath = os.path.dirname(os.path.abspath(__file__)) def render_heightmap(img_resolu...
37.122449
86
0.717977
ad6751ffdf2a32e8cebd339dd64d9bada4a28648
2,059
py
Python
src/tsadmsite/tests/test.py
tsadm/webapp
85056841fbaa06de18844630977b163a6a999e8a
[ "BSD-3-Clause" ]
null
null
null
src/tsadmsite/tests/test.py
tsadm/webapp
85056841fbaa06de18844630977b163a6a999e8a
[ "BSD-3-Clause" ]
null
null
null
src/tsadmsite/tests/test.py
tsadm/webapp
85056841fbaa06de18844630977b163a6a999e8a
[ "BSD-3-Clause" ]
null
null
null
from tsadm.tests import TSAdmTestBase from ..models import SiteDB, SiteEnvDB, SiteEnvACL from tsadmhost.models import HostDB class TSAdmSiteTest(TSAdmTestBase): site = None def setUp(self): super(TSAdmSiteTest, self).setUp() self.site = SiteDB.objects.get(name='s0') def test_Site(self):...
34.898305
92
0.641088
f7c5d2891ba6f76f5a96a24e946389d67fd215aa
6,437
py
Python
wolf/data/image.py
andrecianflone/wolf
826bbedc58d4d29871110349356868066a3108e6
[ "Apache-2.0" ]
75
2020-03-31T22:21:04.000Z
2022-03-20T10:58:17.000Z
wolf/data/image.py
andrecianflone/wolf
826bbedc58d4d29871110349356868066a3108e6
[ "Apache-2.0" ]
3
2021-02-03T07:07:14.000Z
2022-03-08T20:58:43.000Z
wolf/data/image.py
andrecianflone/wolf
826bbedc58d4d29871110349356868066a3108e6
[ "Apache-2.0" ]
10
2020-04-27T05:31:44.000Z
2021-11-21T14:11:16.000Z
import os import scipy.io import numpy as np import torch from torchvision import datasets, transforms def load_datasets(dataset, image_size, data_path): if dataset == 'omniglot': return load_omniglot() elif dataset == 'mnist': return load_mnist() elif dataset.startswith('lsun'): ...
36.162921
87
0.553985
1e56e35e32129ec909adf4afd614f3da0e7e5f39
325
py
Python
pytdx/errors.py
AtlantixJJ/vnpy
28992c7d5391f6dd42a14b481d01ceafde048b5f
[ "MIT" ]
13
2019-06-07T04:34:09.000Z
2022-03-21T07:46:01.000Z
pytdx/errors.py
AtlantixJJ/vnpy
28992c7d5391f6dd42a14b481d01ceafde048b5f
[ "MIT" ]
1
2020-04-21T02:42:32.000Z
2020-04-21T02:42:32.000Z
venv/lib/python3.7/site-packages/pytdx/errors.py
CatTiger/vnpy
7901a0fb80a5b44d6fc752bd4b2b64ec62c8f84b
[ "MIT" ]
2
2021-07-08T03:44:41.000Z
2021-09-15T00:41:19.000Z
# coding=utf-8 class TdxConnectionError(Exception): """ 当连接服务器出错的时候,会抛出的异常 """ pass class TdxFunctionCallError(Exception): """ 当行数调用出错的时候 """ def __init__(self, *args, **kwargs): super(TdxFunctionCallError, self).__init__(*args, **kwargs) self.original_exception = None...
15.47619
67
0.630769
80372404eab16a83e00938c5fac9bccd3eafe7d4
5,239
py
Python
sdk/python/pulumi_azure_native/compute/v20190301/get_gallery.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/compute/v20190301/get_gallery.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/compute/v20190301/get_gallery.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
33.158228
144
0.636763
65e42f35d4b704cd0a6ce67b66d5623716e0bdb5
10,930
py
Python
argparser.py
davidegariglio/MiB
a4e8cb487073090b360e98e43ee339aedeb24815
[ "MIT" ]
3
2021-07-15T19:02:49.000Z
2021-12-11T14:39:49.000Z
argparser.py
farzadips/MiB
a4e8cb487073090b360e98e43ee339aedeb24815
[ "MIT" ]
null
null
null
argparser.py
farzadips/MiB
a4e8cb487073090b360e98e43ee339aedeb24815
[ "MIT" ]
2
2021-06-01T15:22:06.000Z
2021-11-28T14:02:47.000Z
import argparse import tasks def modify_command_options(opts): if opts.dataset == 'voc': opts.num_classes = 21 if opts.dataset == 'ade': opts.num_classes = 150 if not opts.visualize: opts.sample_num = 0 if opts.method is not None: if opts.method == 'FT': p...
54.108911
117
0.597347
27631f6471b19c235d7c8a60512712d0cfb8173d
430
py
Python
app/core/migrations/0006_recipe_image.py
miguelmestre/recipe-app-api
00ae7e4475b827e1643a6af8e15ea4cb1e8da4fd
[ "MIT" ]
null
null
null
app/core/migrations/0006_recipe_image.py
miguelmestre/recipe-app-api
00ae7e4475b827e1643a6af8e15ea4cb1e8da4fd
[ "MIT" ]
null
null
null
app/core/migrations/0006_recipe_image.py
miguelmestre/recipe-app-api
00ae7e4475b827e1643a6af8e15ea4cb1e8da4fd
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-02 21:42 import core.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0005_recipe'), ] operations = [ migrations.AddField( model_name='recipe', name='image', ...
21.5
93
0.62093
2609328d7f8665a09e46f7b965420c5b941928f1
585
py
Python
iommi/style_font_awesome_4.py
ara4711/iommi
e92ea7ca6c0a084f5385009a393f6c6bf5952d55
[ "BSD-3-Clause" ]
null
null
null
iommi/style_font_awesome_4.py
ara4711/iommi
e92ea7ca6c0a084f5385009a393f6c6bf5952d55
[ "BSD-3-Clause" ]
null
null
null
iommi/style_font_awesome_4.py
ara4711/iommi
e92ea7ca6c0a084f5385009a393f6c6bf5952d55
[ "BSD-3-Clause" ]
null
null
null
from iommi._web_compat import mark_safe from iommi.style import Style from iommi.fragment import html font_awesome_4 = Style( assets__icons=html.link( attrs__rel="stylesheet", attrs__href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css", ), Column__shortcuts=dic...
29.25
98
0.652991
79bc572d57d832c45c46459e09b5e5896a0f2437
2,600
py
Python
awx/conf/models.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
null
null
null
awx/conf/models.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
2
2022-02-10T11:57:21.000Z
2022-02-27T22:43:44.000Z
awx/conf/models.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Ansible, Inc. # All Rights Reserved. # Python import json # Django from django.db import models # AWX from awx.main.fields import JSONBlob from awx.main.models.base import CreatedModifiedModel, prevent_search from awx.main.utils import encrypt_field from awx.conf import settings_registry __all_...
32.911392
149
0.646154
ec2b8472fe59a70575e167927788e2acb8dcd2b0
2,065
py
Python
indico/modules/legal/__init__.py
UNOG-Indico/UNOG-Indico-v2
4fa4393cc1f3b453a69f5e0ea3b52c18337831a5
[ "MIT" ]
null
null
null
indico/modules/legal/__init__.py
UNOG-Indico/UNOG-Indico-v2
4fa4393cc1f3b453a69f5e0ea3b52c18337831a5
[ "MIT" ]
null
null
null
indico/modules/legal/__init__.py
UNOG-Indico/UNOG-Indico-v2
4fa4393cc1f3b453a69f5e0ea3b52c18337831a5
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from flask import render_template, session from indico.core impo...
36.875
113
0.710896
9bce026e1d316799a2e748f0f57ad7814c32fcde
50,367
py
Python
prompt_toolkit/key_binding/bindings/vi.py
gigforks/python-prompt-toolkit
d12cdbb556bef84011792108b1027930b81c4813
[ "BSD-3-Clause" ]
1
2016-10-01T20:28:31.000Z
2016-10-01T20:28:31.000Z
prompt_toolkit/key_binding/bindings/vi.py
gigforks/python-prompt-toolkit
d12cdbb556bef84011792108b1027930b81c4813
[ "BSD-3-Clause" ]
null
null
null
prompt_toolkit/key_binding/bindings/vi.py
gigforks/python-prompt-toolkit
d12cdbb556bef84011792108b1027930b81c4813
[ "BSD-3-Clause" ]
null
null
null
# pylint: disable=function-redefined from __future__ import unicode_literals from prompt_toolkit.buffer import ClipboardData, indent, unindent from prompt_toolkit.document import Document from prompt_toolkit.enums import IncrementalSearchDirection, SEARCH_BUFFER, SYSTEM_BUFFER from prompt_toolkit.filters import Filter,...
36.764234
171
0.632914
52e690bb1074d0e1aad6284160580eb96fd33d67
10,790
py
Python
core/storage/opportunity/gae_models_test.py
Mystic-Slice/oppia
a0c63b07712a0cfb34a0cc5d4de8aaceeb709b9c
[ "Apache-2.0" ]
3
2020-12-26T12:43:16.000Z
2021-04-08T15:46:02.000Z
core/storage/opportunity/gae_models_test.py
Mystic-Slice/oppia
a0c63b07712a0cfb34a0cc5d4de8aaceeb709b9c
[ "Apache-2.0" ]
null
null
null
core/storage/opportunity/gae_models_test.py
Mystic-Slice/oppia
a0c63b07712a0cfb34a0cc5d4de8aaceeb709b9c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 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...
41.821705
77
0.67924
b63ac9e263c2908ff59d6538a87e31e2ceee0c6e
67,953
py
Python
labelImg.py
christophdrayss/labelImg-pointer-upgrade
9304d2c347abb935543579e14554aa74ec97807c
[ "MIT" ]
null
null
null
labelImg.py
christophdrayss/labelImg-pointer-upgrade
9304d2c347abb935543579e14554aa74ec97807c
[ "MIT" ]
null
null
null
labelImg.py
christophdrayss/labelImg-pointer-upgrade
9304d2c347abb935543579e14554aa74ec97807c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import codecs import distutils.spawn import os.path import platform import re import sys import subprocess from functools import partial from collections import defaultdict import random try: from PyQt5.QtGui import * from PyQt5.QtCore import * ...
40.208876
169
0.612232
be8eb9eb317319d82704523c1bfb6091ae1aa898
9,974
py
Python
hubspot/cms/blogs/blog_posts/configuration.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
117
2020-04-06T08:22:53.000Z
2022-03-18T03:41:29.000Z
hubspot/cms/blogs/blog_posts/configuration.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
62
2020-04-06T16:21:06.000Z
2022-03-17T16:50:44.000Z
hubspot/cms/blogs/blog_posts/configuration.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
45
2020-04-06T16:13:52.000Z
2022-03-30T21:33:17.000Z
# coding: utf-8 """ Blog Post endpoints \"Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags\" # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import logging import multiproc...
33.35786
193
0.59234
e1665e7cef7bc6d3af887c13359ab6fb9b58d183
15,218
py
Python
src/alchemlyb/parsing/namd.py
BranniganLab/alchemlyb
a8ac1a1472f124feec9b20b1afdbea352e2ac5a4
[ "BSD-3-Clause" ]
83
2017-01-09T19:29:09.000Z
2022-03-17T09:35:08.000Z
src/alchemlyb/parsing/namd.py
BranniganLab/alchemlyb
a8ac1a1472f124feec9b20b1afdbea352e2ac5a4
[ "BSD-3-Clause" ]
185
2016-11-17T18:09:40.000Z
2022-03-29T00:38:59.000Z
src/alchemlyb/parsing/namd.py
Becksteinlab/alchemlyb
9153bbd00425bd02dfb11c6193aa5309d4681e4b
[ "BSD-3-Clause" ]
37
2017-08-09T17:30:43.000Z
2022-01-17T19:49:58.000Z
"""Parsers for extracting alchemical data from `NAMD <http://www.ks.uiuc.edu/Research/namd/>`_ output files. """ import pandas as pd import numpy as np from os.path import basename from re import split import logging from .util import anyopen from . import _init_attrs from ..postprocessors.units import R_kJmol, kJ2kca...
49.249191
162
0.593508
27e98a0f6745f10872e69f21159a2658dfc2d557
3,889
py
Python
contrib/linearize/linearize-hashes.py
ILCOINDevelopmentTeam/ilcoin-master
f6ceb8adcbd5db8d5cb8beeaf937ceb2d76bb3af
[ "MIT" ]
21
2021-01-17T06:44:12.000Z
2022-03-10T02:11:24.000Z
contrib/linearize/linearize-hashes.py
Borishbc/ilcoin-master
b03cebfb0296379252b991d4622c65d3628f965d
[ "MIT" ]
2
2020-06-22T12:41:52.000Z
2020-07-15T03:44:41.000Z
contrib/linearize/linearize-hashes.py
ILCoinDevTeam/ilcoin-master
f6ceb8adcbd5db8d5cb8beeaf937ceb2d76bb3af
[ "MIT" ]
10
2019-02-28T09:33:24.000Z
2020-09-17T11:37:59.000Z
#!/usr/bin/env python3 # # linearize-hashes.py: List blocks in a linear, no-fork version of the chain. # # Copyright (c) 2013-2016 The Ilcoin Core developers # All Rights Reserved. ILCoin Blockchain Project 2019© # from __future__ import print_function try: # Python 3 import http.client as httplib except ImportEr...
28.595588
90
0.682438
26fde19d134ee0834dd59371c8de2140e8eb5bc6
415
py
Python
src/modules/polynomial/LinkActivation.py
ychnlgy/Chebyshev-Lagrange
74292e72b83f992d6c42a2f2db04dfdce5a52aea
[ "MIT" ]
1
2021-08-19T14:28:45.000Z
2021-08-19T14:28:45.000Z
src/modules/polynomial/LinkActivation.py
ychnlgy/Chebyshev-Lagrange
74292e72b83f992d6c42a2f2db04dfdce5a52aea
[ "MIT" ]
null
null
null
src/modules/polynomial/LinkActivation.py
ychnlgy/Chebyshev-Lagrange
74292e72b83f992d6c42a2f2db04dfdce5a52aea
[ "MIT" ]
1
2022-03-11T07:20:06.000Z
2022-03-11T07:20:06.000Z
from . import RegActivation class LinkActivation(RegActivation): # === PROTECTED === def calc_weight(self, slc, *args): if slc is self.leftslice: # left or <-1 w = self.basis.grad_neg1() else: # right or >1 assert slc is self.rightslice w = self.basis.grad_...
27.666667
47
0.563855