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
9cf0d993fc8842896a16e0316c71bef2b20bb9b6
84,217
py
Python
hy/compiler.py
undefx/hy
d6af7c474b4d60784674b18c9c70aa26efe8667e
[ "MIT" ]
null
null
null
hy/compiler.py
undefx/hy
d6af7c474b4d60784674b18c9c70aa26efe8667e
[ "MIT" ]
null
null
null
hy/compiler.py
undefx/hy
d6af7c474b4d60784674b18c9c70aa26efe8667e
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- # Copyright 2020 the authors. # This file is part of Hy, which is free software licensed under the Expat # license. See the LICENSE. from hy.models import (HyObject, HyExpression, HyKeyword, HyInteger, HyComplex, HyString, HyBytes, HySymbol, HyFloat, HyList, HySet, ...
37.90144
198
0.546481
115d6bdbfee9cb5701c55b888aada40422393671
18,470
py
Python
python/pyarrow/tests/test_ipc.py
jbapple-cloudera/arrow
e4f27131cf0b70fc1d166fda0db25362e1b187d1
[ "Apache-2.0" ]
null
null
null
python/pyarrow/tests/test_ipc.py
jbapple-cloudera/arrow
e4f27131cf0b70fc1d166fda0db25362e1b187d1
[ "Apache-2.0" ]
null
null
null
python/pyarrow/tests/test_ipc.py
jbapple-cloudera/arrow
e4f27131cf0b70fc1d166fda0db25362e1b187d1
[ "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...
28.99529
78
0.665024
8f1f1a9c5a864fb15881ea8fe0cbd96aa3321be1
13,310
py
Python
train.py
k-l-lambda/attention-is-all-you-need-pytorch
d57ed455a1590d122cee40c1d9025278610e40c9
[ "MIT" ]
null
null
null
train.py
k-l-lambda/attention-is-all-you-need-pytorch
d57ed455a1590d122cee40c1d9025278610e40c9
[ "MIT" ]
null
null
null
train.py
k-l-lambda/attention-is-all-you-need-pytorch
d57ed455a1590d122cee40c1d9025278610e40c9
[ "MIT" ]
null
null
null
''' This script handles the training process. ''' import argparse import math import time import dill as pickle from tqdm import tqdm import numpy as np import random import os import torch import torch.nn.functional as F import torch.optim as optim from torchtext.legacy.data import Dataset, BucketIterator from torch...
35.77957
162
0.657626
e04e94b063b65803e1e8c01f5887e025188619ff
981
py
Python
rpi/server.py
SicariusNoctis/eagle-eye-tracker
31e160057f1d2fa2c5fbd94ba4f5e9d064481c77
[ "MIT" ]
5
2018-02-10T00:59:29.000Z
2018-08-18T06:38:45.000Z
rpi/server.py
SicariusNoctis/eagle-eye-tracker
31e160057f1d2fa2c5fbd94ba4f5e9d064481c77
[ "MIT" ]
7
2018-05-11T21:48:00.000Z
2018-08-07T11:31:51.000Z
rpi/server.py
SicariusNoctis/eagle-eye-tracker
31e160057f1d2fa2c5fbd94ba4f5e9d064481c77
[ "MIT" ]
1
2019-09-10T01:03:25.000Z
2019-09-10T01:03:25.000Z
import socket class CommServer: IP = '169.254.171.204' # ethernet #IP = '192.168.1.122' # wifi PORT = 12345 BUFFER_SIZE = 1024 def __init__(self): self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock.bind((CommServer.IP, CommServer.PORT)) print("Listen...
23.926829
69
0.592253
97835ae9e8f52ccb31d0b5e015b3dd3363863309
2,350
py
Python
LLE_MODEL/Evaluation/image_processing.py
abdullahahsann/VideoEnhancementForSurviellance
ed1a7625e2ac7cb51a409be1973ad7733e715222
[ "MIT" ]
5
2021-07-25T04:44:54.000Z
2022-03-26T02:02:04.000Z
LLE_MODEL/Evaluation/image_processing.py
abdullahahsann/VideoEnhancementForSurviellance
ed1a7625e2ac7cb51a409be1973ad7733e715222
[ "MIT" ]
null
null
null
LLE_MODEL/Evaluation/image_processing.py
abdullahahsann/VideoEnhancementForSurviellance
ed1a7625e2ac7cb51a409be1973ad7733e715222
[ "MIT" ]
2
2021-11-16T07:03:57.000Z
2022-03-23T02:09:22.000Z
import numpy as np from PIL import Image import cv2 import matplotlib.pyplot as plt import seaborn as sns import tensorflow as tf #--------------------------------Image Processing Functions----------------------------# #Preprocessing the input image def ip_i_pre(frame): original_img = Image.open(frame) ori...
33.571429
155
0.62
74666732cbbf2f64b33c8a6c0a482a29d3433529
1,933
py
Python
docs/source/conf.py
Xinovaz/qyri-lang
e6119f65f26830f2357961eafdbab022404d2a23
[ "MIT" ]
5
2021-04-01T15:55:04.000Z
2021-04-06T11:20:25.000Z
docs/source/conf.py
Xinovaz/qyri-lang
e6119f65f26830f2357961eafdbab022404d2a23
[ "MIT" ]
null
null
null
docs/source/conf.py
Xinovaz/qyri-lang
e6119f65f26830f2357961eafdbab022404d2a23
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
35.145455
79
0.666839
94fcbbf2d53a0b44958f733f60c32401cfb2ee9d
7,550
py
Python
sktime/transformations/tests/test_all_transformers.py
ltoniazzi/sktime
0ea07803115c1ec7463dde99f049b131d639f4a7
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/tests/test_all_transformers.py
ltoniazzi/sktime
0ea07803115c1ec7463dde99f049b131d639f4a7
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/tests/test_all_transformers.py
ltoniazzi/sktime
0ea07803115c1ec7463dde99f049b131d639f4a7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- __author__ = ["Markus Löning"] __all__ = [] import numpy as np import pandas as pd import pytest from sktime.tests._config import VALID_TRANSFORMER_TYPES from sktime.transformations.base import BaseTransformer from sktime.transformations.base import _PanelToPanelTran...
37.376238
87
0.756556
d8eef12ec6c233c89d0655d656443c971443fbdb
6,257
py
Python
tools/cr/cr/base/client.py
SlimKatLegacy/android_external_chromium_org
ee480ef5039d7c561fc66ccf52169ead186f1bea
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-04T02:36:53.000Z
2016-06-25T11:22:17.000Z
tools/cr/cr/base/client.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/cr/cr/base/client.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2015-02-09T08:49:30.000Z
2017-08-26T02:03:34.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. """Client configuration management. This module holds the code for detecting and configuring the current client and it's output directories. It is responsib...
28.967593
79
0.722071
5eac799701e8a0aa2c40e9df33ab641e01ad0f06
13,684
py
Python
sim.py
pattharock/CPU-simulator
5641430d5f225ddf1a46649f4f58ec8e002d2e57
[ "MIT" ]
2
2021-08-23T09:36:11.000Z
2021-09-23T03:21:04.000Z
sim.py
pattharock/CPU-simulator
5641430d5f225ddf1a46649f4f58ec8e002d2e57
[ "MIT" ]
null
null
null
sim.py
pattharock/CPU-simulator
5641430d5f225ddf1a46649f4f58ec8e002d2e57
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # CPU simulator for COMP2120 # ####################################### # Name : Ritvik Singh # # UID : 3035553044 # ####################################### opcode = ["ADD", "SUB", "NOT", "AND", "OR", "MOV", "LD", "ST", "B", "HLT"]; DO_NOT_SET_FLAG = 0 SET_FL...
24.523297
94
0.56387
6f0f23867604db7f51cebdf015fd04411289db58
1,324
py
Python
Python Advanced/Advanced/Stacks, Queues, Tuples and Sets/Exercise/Task01.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
1
2022-03-16T10:23:04.000Z
2022-03-16T10:23:04.000Z
Python Advanced/Advanced/Stacks, Queues, Tuples and Sets/Exercise/Task01.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
Python Advanced/Advanced/Stacks, Queues, Tuples and Sets/Exercise/Task01.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
first_nums = set([int(num) for num in input().split()]) second_nums = set([int(num) for num in input().split()]) n = int(input()) for _ in range(n): command = input() if "Add First" in command: command = command.split() for el in command: if el.isdigit(): first_nu...
30.790698
62
0.595166
5a36d46f086881fbcd479ab0c0ddf5c492a85de0
23,040
py
Python
sahara-10.0.0/sahara/utils/hacking/import_checks.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
sahara-10.0.0/sahara/utils/hacking/import_checks.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
sahara-10.0.0/sahara/utils/hacking/import_checks.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.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 u...
51.086475
108
0.67717
df2e513e818b20b2886b45626b1531689388ae50
1,083
py
Python
examples/timing_real.py
polyquantique/thewalrus
606079abd6f761ef06047c38c74ae12a068501b8
[ "Apache-2.0" ]
15
2018-06-21T14:13:56.000Z
2019-07-19T14:49:36.000Z
examples/timing_real.py
XanaduAI/hafnian
d8def788c1cb12bcbda1ca2f359f349172742cf2
[ "Apache-2.0" ]
29
2018-08-05T12:11:16.000Z
2019-08-01T07:38:39.000Z
examples/timing_real.py
XanaduAI/hafnian
d8def788c1cb12bcbda1ca2f359f349172742cf2
[ "Apache-2.0" ]
10
2018-06-06T22:21:13.000Z
2019-07-30T02:12:42.000Z
# Copyright 2019 Xanadu Quantum Technologies 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 agre...
32.818182
74
0.692521
d97d29f6ae6b38ae9d5a79e4f23e4d1791f4a6be
2,272
py
Python
utils/sanic_cookiesession/__init__.py
gaolycn/ssr-panel-sanic
73739710dbd6206d8febbf57e02eebc6b3082095
[ "MIT" ]
9
2017-07-11T08:36:48.000Z
2021-03-24T02:34:53.000Z
utils/sanic_cookiesession/__init__.py
gaolycn/ssr-panel-sanic
73739710dbd6206d8febbf57e02eebc6b3082095
[ "MIT" ]
null
null
null
utils/sanic_cookiesession/__init__.py
gaolycn/ssr-panel-sanic
73739710dbd6206d8febbf57e02eebc6b3082095
[ "MIT" ]
7
2017-07-11T08:36:51.000Z
2018-04-27T00:59:19.000Z
import logging from itsdangerous import URLSafeTimedSerializer, BadSignature from .utils import SessionDict __version__ = '0.3.0.dev0' __all__ = ['setup'] log = logging.getLogger(__name__) def setup(app, session_type=SessionDict, serializer_type=URLSafeTimedSerializer): """Setup cookie-based session for :code:...
37.866667
89
0.658891
14fc5b34d9658b6065566757bbd01ec1cdc6febf
4,030
py
Python
gemaCalculator/henderson.py
romuere/gemaCalculator
07d484a10ffd7fcea368f9f683678172b9aab1ef
[ "Unlicense" ]
2
2021-12-03T00:29:15.000Z
2022-03-18T16:42:49.000Z
gemaCalculator/henderson.py
romuere/gemaCalculator
07d484a10ffd7fcea368f9f683678172b9aab1ef
[ "Unlicense" ]
null
null
null
gemaCalculator/henderson.py
romuere/gemaCalculator
07d484a10ffd7fcea368f9f683678172b9aab1ef
[ "Unlicense" ]
null
null
null
# ## Atividade 3 (Letra c) - Modelos Mistos import numpy as np np.set_printoptions(formatter={'float': lambda x: "{0:0.3f}".format(x)}) #import sys class Henderson(): def __init__(self, bancodedados,salvar): self.matriz = np.loadtxt(bancodedados,delimiter=',',dtype=np.int32,skiprows=1) ...
32.764228
102
0.376179
24630084db23b9320a3ae70d2d16f9e8c0eae6de
5,450
py
Python
src/dataset/data_utils.py
henlein/PoseContrast
6efff4fae2229d6dfdc85e38d761534c04bb8a2c
[ "MIT" ]
29
2021-05-14T10:21:22.000Z
2022-01-21T19:13:41.000Z
src/dataset/data_utils.py
henlein/PoseContrast
6efff4fae2229d6dfdc85e38d761534c04bb8a2c
[ "MIT" ]
1
2021-05-16T21:44:16.000Z
2021-05-17T14:32:56.000Z
src/dataset/data_utils.py
henlein/PoseContrast
6efff4fae2229d6dfdc85e38d761534c04bb8a2c
[ "MIT" ]
2
2021-12-01T16:36:31.000Z
2022-02-07T10:59:52.000Z
import os import numpy as np import shutil from PIL import Image import torch import torchvision.transforms as transforms def process_viewpoint_label(label, offset=0): label[0] = (360. - label[0] + offset) % 360. label[1] = label[1] + 90. label[2] = (label[2] + 180.) % 360. label = label.astype('int')...
34.713376
119
0.614495
a893c14ad7d04f94fbb9d446fd7f85160c411037
3,013
py
Python
PicImageSearch/Async/google.py
kitUIN/PicImageSearch
57e2c31e6f01d668932935ec6b865c193d2e5f4f
[ "MIT" ]
84
2020-10-10T15:18:32.000Z
2022-03-31T02:52:26.000Z
PicImageSearch/Async/google.py
kitUIN/PicImageSearch
57e2c31e6f01d668932935ec6b865c193d2e5f4f
[ "MIT" ]
15
2020-11-29T04:46:09.000Z
2022-03-31T13:55:22.000Z
PicImageSearch/Async/google.py
kitUIN/PicImageSearch
57e2c31e6f01d668932935ec6b865c193d2e5f4f
[ "MIT" ]
16
2021-02-13T01:11:35.000Z
2022-03-19T02:43:02.000Z
from bs4 import BeautifulSoup from loguru import logger from .network import HandOver from PicImageSearch.Utils import GoogleResponse from urllib.parse import quote class AsyncGoogle(HandOver): """ Google ----------- Reverse image from https://www.google.com\n Params Keys ----------- :p...
33.10989
134
0.565549
1312a55d8ed4c8385fe5ce476eb311f705f8b5b0
2,023
py
Python
src/oci/apigateway/models/api_collection.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/apigateway/models/api_collection.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/apigateway/models/api_collection.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
28.492958
245
0.64261
a79c52d9bae9901f0b255dc373889f97c0286f4c
1,936
py
Python
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/QueryOssBucketsRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/QueryOssBucketsRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/QueryOssBucketsRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "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...
35.851852
74
0.775826
2994fc24dc078f6a67645b262cb660f740d78b49
12,259
py
Python
mayan/apps/sources/tests/test_views.py
prezi/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
4
2019-02-17T08:35:42.000Z
2019-03-28T06:02:11.000Z
mayan/apps/sources/tests/test_views.py
zhoubear/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
1
2018-10-11T13:01:34.000Z
2018-10-11T13:01:34.000Z
mayan/apps/sources/tests/test_views.py
prezi/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
3
2019-01-29T13:21:57.000Z
2019-10-27T03:20:15.000Z
from __future__ import unicode_literals import os import shutil from django.test import override_settings from checkouts.models import NewVersionBlock from common.tests import GenericViewTestCase from common.utils import fs_cleanup, mkdtemp from documents.models import Document, DocumentType from documents.permissio...
33.3125
79
0.66963
8b9758b920f2492de270b51c0c0381e836117e83
7,758
py
Python
Lectures/PythonClass/MachineLearning/tictaetoe.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
2
2020-12-05T07:42:55.000Z
2021-01-06T23:23:18.000Z
Lectures/PythonClass/MachineLearning/tictaetoe.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
Lectures/PythonClass/MachineLearning/tictaetoe.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
import csv import random import numpy as np MODE = 1 # 0 : 학습, 1: Com vs Com MATCH_CNT = 100 LEARNING_CNT = 100000 MATRIX = 5 FILE_LOC = "D:\\KYH\\02.PYTHON\\data\\TTT5_5_100000.csv" EMPTY = 0 PLAYER_X = 1 PLAYER_O = 2 DRAW = 3 BOARD_FORMAT = "| "+"{:^6s} | "*MATRIX BOARD_FORMAT = (BOARD_FORMAT+'\n')*MATRIX BOARD_FO...
28.522059
146
0.515726
fe40f61f8e65d786020aa8c8db7aee971696e6ae
3,007
py
Python
neuropredict/tests/test_CVResults_classes.py
raamana/neuropredict
da8eaa20285eb67ca4cd61f914c3eb11798bb8dc
[ "Apache-2.0" ]
94
2017-03-10T04:27:36.000Z
2021-12-15T13:12:34.000Z
neuropredict/tests/test_CVResults_classes.py
raamana/psy
da8eaa20285eb67ca4cd61f914c3eb11798bb8dc
[ "Apache-2.0" ]
48
2017-08-09T23:29:13.000Z
2021-07-07T23:01:50.000Z
neuropredict/tests/test_CVResults_classes.py
raamana/psy
da8eaa20285eb67ca4cd61f914c3eb11798bb8dc
[ "Apache-2.0" ]
31
2017-07-02T14:46:33.000Z
2022-03-03T12:25:18.000Z
import pickle import numpy as np from pathlib import Path from os import makedirs from neuropredict import config as cfg from neuropredict.results import ClassifyCVResults, RegressCVResults from neuropredict.visualize import compare_distributions from neuropredict.classify import ClassificationWorkflow as ClfWorkflow ...
33.786517
86
0.633189
13da6a317f75f8338f1f2b2ce071daead44cb20b
1,931
py
Python
sse-normal-distr/scripts/approx.py
clayne/toys
ec06411e2d3b920403607888d4a573e41390ee5b
[ "BSD-2-Clause" ]
2
2019-01-06T05:32:18.000Z
2019-12-12T04:54:56.000Z
sse-normal-distr/scripts/approx.py
clayne/toys
ec06411e2d3b920403607888d4a573e41390ee5b
[ "BSD-2-Clause" ]
null
null
null
sse-normal-distr/scripts/approx.py
clayne/toys
ec06411e2d3b920403607888d4a573e41390ee5b
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from math import log, sqrt import sys def f1(x): return sqrt(-2.0 * log(x)) def f2(x): return sqrt(-2.0 * log(x)/x) functions = { 'f1': f1, 'f2': f2, } def main(): SAMPLES = 1000000 ORDER = 4 function_name = sys.argv[1] path = sys.argv[2] function = functio...
23.839506
97
0.587778
2e207d8ec3a454973d2b369c686524c976b1c100
3,425
py
Python
qatest/results_plugin.py
Datera/datera-automation-toolkit
6fb2ca9d7e85826b300d3d7780c30cb09da433c7
[ "Apache-2.0" ]
null
null
null
qatest/results_plugin.py
Datera/datera-automation-toolkit
6fb2ca9d7e85826b300d3d7780c30cb09da433c7
[ "Apache-2.0" ]
1
2021-06-02T01:01:47.000Z
2021-06-02T01:01:47.000Z
qatest/results_plugin.py
Datera/datera-automation-toolkit
6fb2ca9d7e85826b300d3d7780c30cb09da433c7
[ "Apache-2.0" ]
2
2020-02-06T23:24:45.000Z
2021-03-25T19:53:53.000Z
# -*- coding: utf-8 -*- """ Provides the ResultsPlugin class """ from __future__ import (unicode_literals, print_function, division, absolute_import) __copyright__ = "Copyright 2020, Datera, Inc." import unittest import os from .nose_bridge import nose from . import result_utils class Result...
32.311321
80
0.608467
21ab83dba3c809ee6f9320e7ab7efd88b09e63b0
3,074
py
Python
scripts/create_csv.py
LibrariesHacked/ifla-map-data
c1f2fe7751504663a784e86a0d9c848ccd1ab994
[ "MIT" ]
null
null
null
scripts/create_csv.py
LibrariesHacked/ifla-map-data
c1f2fe7751504663a784e86a0d9c848ccd1ab994
[ "MIT" ]
null
null
null
scripts/create_csv.py
LibrariesHacked/ifla-map-data
c1f2fe7751504663a784e86a0d9c848ccd1ab994
[ "MIT" ]
1
2022-02-03T17:07:52.000Z
2022-02-03T17:07:52.000Z
## This script takes data from map.json and countries_pop.txt import csv import json # In future directly use https://librarymap.ifla.org/api/map COUNTRY_DATA = '..//data//countries_pop.txt' LOOKUP_DATA = '..//data//map.json' OUTPUT_DATA = '..//data//ifla_data.csv' OUTPUT_TEXT = '..//data//ifla_text.json' def read_l...
39.410256
147
0.595966
5c936bd1f5f866e3ec71b6d5400424955804323a
2,279
py
Python
scripts/enter_data.py
Angelina15638749981/HDI-Project
9dfe5d9c883efc37d285c852fcc92a02c6cdd945
[ "MIT" ]
1
2018-06-09T13:38:08.000Z
2018-06-09T13:38:08.000Z
scripts/enter_data.py
HangJie720/ATM
9dfe5d9c883efc37d285c852fcc92a02c6cdd945
[ "MIT" ]
null
null
null
scripts/enter_data.py
HangJie720/ATM
9dfe5d9c883efc37d285c852fcc92a02c6cdd945
[ "MIT" ]
1
2021-01-07T13:24:15.000Z
2021-01-07T13:24:15.000Z
from __future__ import print_function import argparse import os import warnings from atm import PROJECT_ROOT from atm.config import (add_arguments_aws_s3, add_arguments_sql, add_arguments_datarun, add_arguments_logging, load_config, initialize_logging) from atm.enter_da...
43.826923
86
0.666959
ba6b8c3f2d59f910f558bc1d34e47722e5b4dc88
8,188
py
Python
Override_ray/trainer_template.py
Skylark0924/Gamma_Reward
2eed6e2ea246974946b16bb7743fa55219436580
[ "Apache-2.0" ]
12
2020-10-15T08:11:50.000Z
2021-12-11T03:10:47.000Z
Override_ray/trainer_template.py
Skylark0924/Gamma_Reward
2eed6e2ea246974946b16bb7743fa55219436580
[ "Apache-2.0" ]
null
null
null
Override_ray/trainer_template.py
Skylark0924/Gamma_Reward
2eed6e2ea246974946b16bb7743fa55219436580
[ "Apache-2.0" ]
2
2021-01-28T09:53:11.000Z
2021-10-03T17:29:41.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import time from Override_ray.trainer import Trainer, COMMON_CONFIG from ray.rllib.optimizers import SyncSamplesOptimizer from ray.rllib.utils import add_mixins from ray.rllib.utils.annotations import override...
41.563452
111
0.602589
ddf726b4c8dee56740a91de0845c1f72185663cd
3,196
py
Python
ShapeDetection.py
Tobi4s1337/hackzurich
835aa041eeb5e99e3bb07aaa73952a7a6dd3f7f5
[ "MIT" ]
null
null
null
ShapeDetection.py
Tobi4s1337/hackzurich
835aa041eeb5e99e3bb07aaa73952a7a6dd3f7f5
[ "MIT" ]
null
null
null
ShapeDetection.py
Tobi4s1337/hackzurich
835aa041eeb5e99e3bb07aaa73952a7a6dd3f7f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Sep 19 11:35:58 2020 @author: dkloe """ import numpy as np import cv2 import sys from PIL import Image font = cv2.FONT_HERSHEY_COMPLEX # -- coding: utf-8 -- src = cv2.imread('sketch4.jpg') src = cv2.fastNlMeansDenoising(src,None,10,7,21) def image_resize(i...
27.316239
78
0.592303
d503e61bba13535432f332bab4140f3edad488a7
608
py
Python
Python/Fundamentals/Text Processing(lab-exercises)/Exercises/Valid Usernames.py
EduardV777/Softuni-Python-Exercises
79db667028aea7dfecb3dbbd834c752180c50f44
[ "Unlicense" ]
null
null
null
Python/Fundamentals/Text Processing(lab-exercises)/Exercises/Valid Usernames.py
EduardV777/Softuni-Python-Exercises
79db667028aea7dfecb3dbbd834c752180c50f44
[ "Unlicense" ]
null
null
null
Python/Fundamentals/Text Processing(lab-exercises)/Exercises/Valid Usernames.py
EduardV777/Softuni-Python-Exercises
79db667028aea7dfecb3dbbd834c752180c50f44
[ "Unlicense" ]
null
null
null
usernames=input() usernameList=usernames.split(", ") k=0 while k<len(usernameList): valid=False if 3<=len(usernameList[k])<=16: for j in range(0,len(usernameList[k])): if usernameList[k][j].isdigit() or usernameList[k][j].isalpha() or usernameList[k][j]=="-" or usernameList[k][j]=="_"...
28.952381
131
0.514803
30ab36e802025dfec8d082c9148911401418be29
10,394
py
Python
back_end/start_api.py
Gloria98/GRAFS
86e5d8c7a36b2c50ca694dc3729fb872302dc3ca
[ "MIT" ]
null
null
null
back_end/start_api.py
Gloria98/GRAFS
86e5d8c7a36b2c50ca694dc3729fb872302dc3ca
[ "MIT" ]
null
null
null
back_end/start_api.py
Gloria98/GRAFS
86e5d8c7a36b2c50ca694dc3729fb872302dc3ca
[ "MIT" ]
null
null
null
# This is the RESTful API module from flask import Flask, jsonify, request, session from flask_restful import reqparse, abort, Resource, Api from flask_cors import CORS, cross_origin from flask_session import Session import json import time from query_builder import solr_query_builder from document_searcher import so...
42.598361
157
0.632095
79d3086c4173f751795a00b58ff2d8ae10717573
13,116
py
Python
environment/lib/python3.7/site-packages/plotly/validators/_sunburst.py
sid-the-coder/Easy-Data-Analysis-With-Pandas
5ae2a867e5a548e34f28aec89e49c361071b872c
[ "MIT" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
environment/lib/python3.7/site-packages/plotly/validators/_sunburst.py
sid-the-coder/Easy-Data-Analysis-With-Pandas
5ae2a867e5a548e34f28aec89e49c361071b872c
[ "MIT" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
environment/lib/python3.7/site-packages/plotly/validators/_sunburst.py
sid-the-coder/Easy-Data-Analysis-With-Pandas
5ae2a867e5a548e34f28aec89e49c361071b872c
[ "MIT" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class SunburstValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="sunburst", parent_name="", **kwargs): super(SunburstValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
49.123596
73
0.547575
24c4ba9eb5a398ca08f9f156647aa963a5f925a7
7,643
py
Python
large_cohort/aggregation.py
garyxcheng/federated
ba7133ead6127af71ea9356e26bfd05c02f8324a
[ "Apache-2.0" ]
1
2021-07-08T13:56:52.000Z
2021-07-08T13:56:52.000Z
large_cohort/aggregation.py
garyxcheng/federated
ba7133ead6127af71ea9356e26bfd05c02f8324a
[ "Apache-2.0" ]
null
null
null
large_cohort/aggregation.py
garyxcheng/federated
ba7133ead6127af71ea9356e26bfd05c02f8324a
[ "Apache-2.0" ]
1
2022-03-16T17:31:02.000Z
2022-03-16T17:31:02.000Z
# Copyright 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
44.695906
82
0.724977
afac210ada824bfff12a6d48ae7650e09fa17187
753
py
Python
google/cloud/speech_v1p1beta1/services/adaptation/__init__.py
zmtkr/python-speech
6000370242a4c548a3306ae274a0302e2bbb2445
[ "Apache-2.0" ]
null
null
null
google/cloud/speech_v1p1beta1/services/adaptation/__init__.py
zmtkr/python-speech
6000370242a4c548a3306ae274a0302e2bbb2445
[ "Apache-2.0" ]
null
null
null
google/cloud/speech_v1p1beta1/services/adaptation/__init__.py
zmtkr/python-speech
6000370242a4c548a3306ae274a0302e2bbb2445
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
32.73913
74
0.752988
20ee6981c657ec824a5d24e6156a6e7f2ade3d0b
517
py
Python
python/queue_using_two_stacks.py
c1m50c/hacker-rank-solutions
6f80161f7aef7015fe31445a56382a01f7b55659
[ "MIT" ]
null
null
null
python/queue_using_two_stacks.py
c1m50c/hacker-rank-solutions
6f80161f7aef7015fe31445a56382a01f7b55659
[ "MIT" ]
null
null
null
python/queue_using_two_stacks.py
c1m50c/hacker-rank-solutions
6f80161f7aef7015fe31445a56382a01f7b55659
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/one-week-preparation-kit-queue-using-two-stacks/ # # Not sure if I cheated or not? I feel like I did reading the discussion's answers but idk. number_of_queries: int = int(input()) queue: list = [ ] for _ in range(0, number_of_queries): query: tuple = tuple(input().split()...
36.928571
91
0.636364
e25adb5333802b779a1e67dffab549142d402a54
3,183
py
Python
analyses/seasonality_paper_1/15_most_important/specific.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/seasonality_paper_1/15_most_important/specific.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/seasonality_paper_1/15_most_important/specific.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import warnings from pathlib import Path PROJECT_DIR = Path(__file__).resolve().parent if sys.path[0] != str(PROJECT_DIR.parent): sys.path.insert(0, str(PROJECT_DIR.parent)) warnings.filterwarnings( "ignore", category=FutureWarning, module="sklearn.utils.deprecation" ) from ...
27.205128
88
0.709079
5631160dd7d370e51125b804a9f4c616668a7465
500
py
Python
eval_mosmed_timm-regnetx_002_Rotate.py
BrunoKrinski/segtool
cb604b5f38104c43a76450136e37c3d1c4b6d275
[ "MIT" ]
null
null
null
eval_mosmed_timm-regnetx_002_Rotate.py
BrunoKrinski/segtool
cb604b5f38104c43a76450136e37c3d1c4b6d275
[ "MIT" ]
null
null
null
eval_mosmed_timm-regnetx_002_Rotate.py
BrunoKrinski/segtool
cb604b5f38104c43a76450136e37c3d1c4b6d275
[ "MIT" ]
null
null
null
import os ls=["python main.py --configs configs/eval_mosmed_unetplusplus_timm-regnetx_002_0_Rotate.yml", "python main.py --configs configs/eval_mosmed_unetplusplus_timm-regnetx_002_1_Rotate.yml", "python main.py --configs configs/eval_mosmed_unetplusplus_timm-regnetx_002_2_Rotate.yml", "python main.py --configs config...
45.454545
94
0.834
289ca853ce027dd52d2a0bf530ba50e0cfa7cd9e
12,140
py
Python
nova/tests/unit/objects/test_floating_ip.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/objects/test_floating_ip.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/objects/test_floating_ip.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-07-24T01:18:44.000Z
2020-07-24T01:18:44.000Z
# Copyright 2014 Red Hat, 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 a...
43.049645
79
0.615074
0517d67443a7b9dd9b62af93ce7f1909101b9fc6
4,811
py
Python
tests/integration/hello_world/conftest.py
usnistgov/dioptra
08a08e96c27787915bafc75a483431333e2c70ca
[ "CC-BY-4.0" ]
14
2021-06-17T15:16:12.000Z
2021-11-08T10:25:37.000Z
tests/integration/hello_world/conftest.py
usnistgov/dioptra
08a08e96c27787915bafc75a483431333e2c70ca
[ "CC-BY-4.0" ]
7
2021-09-20T20:20:26.000Z
2022-03-30T13:17:43.000Z
tests/integration/hello_world/conftest.py
usnistgov/dioptra
08a08e96c27787915bafc75a483431333e2c70ca
[ "CC-BY-4.0" ]
4
2021-06-29T16:52:42.000Z
2022-01-21T16:56:45.000Z
# This Software (Dioptra) is being made available as a public service by the # National Institute of Standards and Technology (NIST), an Agency of the United # States Department of Commerce. This software was developed in part by employees of # NIST and in part by NIST contractors. Copyright in portions of this softwar...
37.88189
88
0.689254
a89b1250639d60772bc6743f15cc44b1c0252203
13,181
py
Python
sdk/python/pulumi_gcp/compute/target_https_proxy.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/compute/target_https_proxy.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/compute/target_https_proxy.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from .. import ...
47.930909
135
0.645247
d65dfeed120a067c3b5b3dfb4bcc190b0b3cd95c
5,113
py
Python
signbank/pages/migrations/0001_initial.py
codev/bslsignbank
5c8f48c4aa14f48483b38f922f4bc4a4d4eda33e
[ "BSD-3-Clause" ]
5
2016-01-19T04:06:40.000Z
2020-05-01T17:10:46.000Z
signbank/pages/migrations/0001_initial.py
codev/bslsignbank
5c8f48c4aa14f48483b38f922f4bc4a4d4eda33e
[ "BSD-3-Clause" ]
2
2020-02-12T00:09:31.000Z
2020-06-05T17:51:51.000Z
signbank/pages/migrations/0001_initial.py
codev/bslsignbank
5c8f48c4aa14f48483b38f922f4bc4a4d4eda33e
[ "BSD-3-Clause" ]
null
null
null
# 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 model 'Page' db.create_table('pages_page', ( ('id', self.gf('django.db.models.fields....
57.449438
143
0.573049
d9e0b771a7d2627a474bcb74a5d1bf3fd0ed39e5
2,588
py
Python
samples/client/petstore/python/petstore_api/models/enum_class.py
faryu/swagger-codegen
b259f3bb8b0f3e23bee06aa7d383f89ee22940d2
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/python/petstore_api/models/enum_class.py
faryu/swagger-codegen
b259f3bb8b0f3e23bee06aa7d383f89ee22940d2
[ "Apache-2.0" ]
1
2020-11-16T17:20:13.000Z
2020-11-16T17:20:13.000Z
samples/client/petstore/python/petstore_api/models/enum_class.py
faryu/swagger-codegen
b259f3bb8b0f3e23bee06aa7d383f89ee22940d2
[ "Apache-2.0" ]
1
2019-12-13T12:38:41.000Z
2019-12-13T12:38:41.000Z
# coding: utf-8 """ Swagger Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ OpenAPI spec version: 1.0.0 Contact: apiteam@swagger.io Generated by: https://github.com/swagger-api/sw...
24.186916
160
0.527821
0d23e8c752cbff7c8f0c4b726f248917693e16c1
1,808
py
Python
robocup/Openlist_py2.py
lnexenl/XTDrone
f0402d44ac3b9a8435cfc67aea769ef659892010
[ "MIT" ]
457
2020-03-21T05:27:37.000Z
2022-03-30T12:05:52.000Z
robocup/Openlist_py2.py
lnexenl/XTDrone
f0402d44ac3b9a8435cfc67aea769ef659892010
[ "MIT" ]
29
2020-05-18T16:48:06.000Z
2022-03-31T05:43:24.000Z
robocup/Openlist_py2.py
lnexenl/XTDrone
f0402d44ac3b9a8435cfc67aea769ef659892010
[ "MIT" ]
121
2020-03-21T06:43:04.000Z
2022-03-31T12:27:29.000Z
list_o = [[[-35.375, -34.825], [-4, -3]], [[-3.275, -2.725], [-4, -3]], [[20.725, 21.275], [-4, -3]], \ [[57.725, 58.275], [-4, -3]], [[83.725, 84.275], [-4, -3]], [[-25.475, -24.925], [3, 4]], [[8.725, 9.275], [3, 4]], \ [[26.725, 27.275], [3, 4]], [[70.725, 71.275], [3, 4]], [[90.225, 90.775], [3, 4]]...
32.872727
151
0.422566
11a7c3ea3ba7e21f74dc2c9a81b93fccbd2eeb41
26,084
py
Python
nemo/utils/exp_manager.py
vinayphadnis/NeMo
9dc7773c48e164b8a82051bb558a728c6eeb85ec
[ "Apache-2.0" ]
2
2020-10-08T13:38:46.000Z
2020-10-14T15:09:34.000Z
nemo/utils/exp_manager.py
vinayphadnis/NeMo
9dc7773c48e164b8a82051bb558a728c6eeb85ec
[ "Apache-2.0" ]
null
null
null
nemo/utils/exp_manager.py
vinayphadnis/NeMo
9dc7773c48e164b8a82051bb558a728c6eeb85ec
[ "Apache-2.0" ]
1
2020-12-18T14:23:37.000Z
2020-12-18T14:23:37.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
46.74552
123
0.687663
9d89ef3296461d8a27bd888b243bc19f97abdce4
18,958
py
Python
payments/test_views.py
NakolenkeDevelopment/rustockholm.club
1b347180d58e63a11c9d3c05fea9f10d753b7732
[ "MIT" ]
496
2020-04-24T04:20:32.000Z
2022-03-31T21:55:57.000Z
payments/test_views.py
NakolenkeDevelopment/rustockholm.club
1b347180d58e63a11c9d3c05fea9f10d753b7732
[ "MIT" ]
642
2020-04-24T11:54:13.000Z
2022-03-26T15:41:06.000Z
payments/test_views.py
NakolenkeDevelopment/rustockholm.club
1b347180d58e63a11c9d3c05fea9f10d753b7732
[ "MIT" ]
243
2020-04-24T11:49:11.000Z
2022-03-24T18:38:48.000Z
from datetime import datetime, timedelta from collections import namedtuple import os import uuid import django from django.urls import reverse from django.test import TestCase import json import time import yaml from unittest import skip from unittest.mock import patch from stripe.webhook import WebhookSignature dj...
45.792271
118
0.626912
a1ad61a3e765678ba059456f543a4ef2a0c05460
117
py
Python
samples/loops.py
itsmemarioss/python-course-30-min
da5f70ac0cac8adf0fabfdae84bca387e2b3e4a7
[ "MIT" ]
null
null
null
samples/loops.py
itsmemarioss/python-course-30-min
da5f70ac0cac8adf0fabfdae84bca387e2b3e4a7
[ "MIT" ]
null
null
null
samples/loops.py
itsmemarioss/python-course-30-min
da5f70ac0cac8adf0fabfdae84bca387e2b3e4a7
[ "MIT" ]
null
null
null
a = 0 while a<10 : print(a) a += 1 words = ["mario", "santos", "sousa"] for word in words: print(word)
11.7
36
0.529915
ae10a3f67f1f38640e6abb8502831aa41237fd82
8,358
py
Python
ctools/pysc2/env/remote_sc2_env.py
ain-soph/DI-star
3e5d43294f85d58efc54e496760e60af206a2be4
[ "Apache-2.0" ]
267
2021-07-08T02:18:08.000Z
2022-03-02T11:37:33.000Z
ctools/pysc2/env/remote_sc2_env.py
ykfnxx/DI-star
f12d79403488e7df0498d7b116fc23a67506112b
[ "Apache-2.0" ]
5
2021-07-15T22:55:22.000Z
2022-01-11T15:28:10.000Z
ctools/pysc2/env/remote_sc2_env.py
ykfnxx/DI-star
f12d79403488e7df0498d7b116fc23a67506112b
[ "Apache-2.0" ]
35
2021-07-08T08:01:51.000Z
2022-02-10T07:00:24.000Z
# Copyright 2017 Google 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 applicable law or ...
38.874419
80
0.699809
d454acd714a25e1ea5443d315564884c2e3d9c4c
1,314
py
Python
tests/agents/test_d3pg.py
laszukdawid/ai-traineree
af32940eba8e11012de87b60d78f10f5a3b96c79
[ "Apache-2.0" ]
22
2020-08-21T03:03:05.000Z
2022-02-22T10:15:36.000Z
tests/agents/test_d3pg.py
laszukdawid/ai-traineree
af32940eba8e11012de87b60d78f10f5a3b96c79
[ "Apache-2.0" ]
23
2021-02-13T20:35:45.000Z
2022-02-06T20:15:37.000Z
tests/agents/test_d3pg.py
laszukdawid/ai-traineree
af32940eba8e11012de87b60d78f10f5a3b96c79
[ "Apache-2.0" ]
6
2020-10-11T08:36:09.000Z
2021-11-20T18:31:03.000Z
import copy import pytest from ai_traineree.agents.d3pg import D3PGAgent from conftest import deterministic_interactions def test_d3pg_seed(float_1d_space): # Assign agent_0 = D3PGAgent(float_1d_space, float_1d_space, device='cpu') agent_1 = D3PGAgent(float_1d_space, float_1d_space, device='cpu') age...
37.542857
126
0.711568
1796a548d8ac63168d17bd329f28b6efff2021ff
44,372
py
Python
tests/python/frontend/onnx/test_forward.py
mostafaelhoushi/tvm
ae21eddf5f13ffa82d514e8311c87f38bcac559a
[ "Apache-2.0" ]
null
null
null
tests/python/frontend/onnx/test_forward.py
mostafaelhoushi/tvm
ae21eddf5f13ffa82d514e8311c87f38bcac559a
[ "Apache-2.0" ]
null
null
null
tests/python/frontend/onnx/test_forward.py
mostafaelhoushi/tvm
ae21eddf5f13ffa82d514e8311c87f38bcac559a
[ "Apache-2.0" ]
null
null
null
import numpy as np import math import topi import topi.testing import tvm from tvm import relay from tvm.contrib import graph_runtime from nnvm.testing.config import ctx_list import onnx from onnx import helper, TensorProto import unittest def get_tvm_output(graph_def, input_data, target, ctx, output_shape=None, outpu...
42.871498
115
0.534594
29620fb0e4730ec4209aad86a1c8a077ca9898ab
16,748
py
Python
pct/utils/data_reader.py
EstelleHuang666/mini_transformer
dc6fc270c573e613bc2f5cad62534c6416e7dbd5
[ "MIT" ]
1
2019-10-24T00:35:04.000Z
2019-10-24T00:35:04.000Z
pct/utils/data_reader.py
EstelleHuang666/mini_transformer
dc6fc270c573e613bc2f5cad62534c6416e7dbd5
[ "MIT" ]
null
null
null
pct/utils/data_reader.py
EstelleHuang666/mini_transformer
dc6fc270c573e613bc2f5cad62534c6416e7dbd5
[ "MIT" ]
1
2020-04-22T08:25:47.000Z
2020-04-22T08:25:47.000Z
# coding=utf-8 """Data reader module.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools import tensorflow as tf import multiprocessing import random import os import six from pct.utils import hparams_lib from pct.utils import text_encoder...
34.04065
127
0.699487
a7c807145a85f0b01b5de3fa49bc626a602b7ba3
172
py
Python
cmake/checks/python.py
spacemonkeydelivers/riscv_security_contest_project
3b32c2c32fd9e87208e997d2613c7148acab3a94
[ "MIT" ]
8
2019-10-02T09:59:18.000Z
2019-12-09T21:21:20.000Z
cmake/checks/python.py
spacemonkeydelivers/riscv_security_contest_project
3b32c2c32fd9e87208e997d2613c7148acab3a94
[ "MIT" ]
null
null
null
cmake/checks/python.py
spacemonkeydelivers/riscv_security_contest_project
3b32c2c32fd9e87208e997d2613c7148acab3a94
[ "MIT" ]
2
2019-09-14T21:52:19.000Z
2019-10-02T20:04:58.000Z
from prompt_toolkit import prompt from prompt_toolkit.history import FileHistory from prompt_toolkit.auto_suggest import AutoSuggestFromHistory print("-- Great Success")
24.571429
62
0.854651
746b03ec05b57110230d72ee050b4e091f22f64b
379
py
Python
pipeline_dp/__init__.py
siddhartha18101/PipelineDP
69b2db4b248b05f1352edee2edac777cdd91b83f
[ "Apache-2.0" ]
null
null
null
pipeline_dp/__init__.py
siddhartha18101/PipelineDP
69b2db4b248b05f1352edee2edac777cdd91b83f
[ "Apache-2.0" ]
null
null
null
pipeline_dp/__init__.py
siddhartha18101/PipelineDP
69b2db4b248b05f1352edee2edac777cdd91b83f
[ "Apache-2.0" ]
null
null
null
from pipeline_dp.budget_accounting import BudgetAccountant from pipeline_dp.aggregate_params import AggregateParams from pipeline_dp.aggregate_params import Metrics from pipeline_dp.dp_engine import DataExtractors from pipeline_dp.dp_engine import DPEngine from pipeline_dp.pipeline_operations import BeamOperations from...
47.375
62
0.907652
05d7a5e35f9777d5f77a5af080de11a09405d443
431
py
Python
Python Basics/Week 2/assess_ps_02_07.py
sasathornt/Python-3-Programming-Specialization
34a204662112f8977bdd2831687a020d775d6f39
[ "MIT" ]
1
2020-04-17T14:22:15.000Z
2020-04-17T14:22:15.000Z
Python Basics/Week 2/assess_ps_02_07.py
sasathornt/Python-3-Programming-Specialization
34a204662112f8977bdd2831687a020d775d6f39
[ "MIT" ]
null
null
null
Python Basics/Week 2/assess_ps_02_07.py
sasathornt/Python-3-Programming-Specialization
34a204662112f8977bdd2831687a020d775d6f39
[ "MIT" ]
null
null
null
##addition_str is a string with a list of numbers separated by the + sign. Write code that uses the accumulation pattern to take the sum of all of the numbers and assigns it to sum_val (an integer). (You should use the .split("+") function to split by "+" and int() to cast to an integer). addition_str = "2+5+10+20" ...
39.181818
289
0.705336
4a6735cb1d73b6a41b706706dea3727ffc0db415
3,202
py
Python
data/p2DJ/New/program/qiskit/simulator/startQiskit231.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/simulator/startQiskit231.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/simulator/startQiskit231.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=16 import cirq import qiskit from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy a...
28.589286
82
0.624922
a2a434a42c72920642c56454e50615cc09ead375
1,873
py
Python
courier_service/api/handlers/orders.py
Nwke/rest-api-couriers-service
123b362fc51b5ff62403cf7567982513caa5bb5a
[ "Apache-1.1" ]
null
null
null
courier_service/api/handlers/orders.py
Nwke/rest-api-couriers-service
123b362fc51b5ff62403cf7567982513caa5bb5a
[ "Apache-1.1" ]
null
null
null
courier_service/api/handlers/orders.py
Nwke/rest-api-couriers-service
123b362fc51b5ff62403cf7567982513caa5bb5a
[ "Apache-1.1" ]
null
null
null
from typing import List from aiohttp import web from courier_service.db.schema import Order, async_session from courier_service.api.handlers.base import BaseView from courier_service.api.handlers.utils import validate_fields class OrdersView(BaseView): """Import orders""" URL_PATH = '/orders' required_f...
32.293103
83
0.549386
cd05337d0bdc7ef3788d7e90424a4ad43e0d3345
17
py
Python
Bronze/Bronze_V/15733.py
masterTyper/baekjoon_solved_ac
b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c
[ "MIT" ]
2
2021-07-17T13:05:42.000Z
2021-09-12T09:14:24.000Z
Bronze/Bronze_V/15733.py
masterTyper/baekjoon_solved_ac
b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c
[ "MIT" ]
null
null
null
Bronze/Bronze_V/15733.py
masterTyper/baekjoon_solved_ac
b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c
[ "MIT" ]
null
null
null
print("I'm Sexy")
17
17
0.647059
073a771c2345fd9cb22d2b4b13d5511c7bc4c8d6
7,980
py
Python
extinct/components/datamodules/base.py
olliethomas/extinct-dino
7d47d8f7763d9791fa8d5027898b27fcee0901c4
[ "Apache-2.0" ]
null
null
null
extinct/components/datamodules/base.py
olliethomas/extinct-dino
7d47d8f7763d9791fa8d5027898b27fcee0901c4
[ "Apache-2.0" ]
1
2021-10-13T14:21:10.000Z
2021-10-13T14:21:10.000Z
extinct/components/datamodules/base.py
olliethomas/extinct-dino
7d47d8f7763d9791fa8d5027898b27fcee0901c4
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from abc import abstractmethod from enum import Enum, auto import logging import os from typing import Optional, Sequence import albumentations as A from albumentations.pytorch import ToTensorV2 from kit import gcopy, implements from kit.torch import InfSequentialBatchSampler, Strati...
33.670886
262
0.623684
1b45de7d34d868b044b8a20984c58e80edb114fa
4,829
py
Python
py/symbolic/utils.py
unclead/symbolic
5a8376714d26d0340729fe14973c2bdb871a1e55
[ "MIT" ]
300
2017-08-31T14:52:03.000Z
2022-03-30T14:15:00.000Z
py/symbolic/utils.py
unclead/symbolic
5a8376714d26d0340729fe14973c2bdb871a1e55
[ "MIT" ]
243
2017-09-08T11:23:44.000Z
2022-03-31T16:16:11.000Z
py/symbolic/utils.py
unclead/symbolic
5a8376714d26d0340729fe14973c2bdb871a1e55
[ "MIT" ]
44
2017-09-22T15:07:27.000Z
2022-03-24T07:39:12.000Z
import io import uuid import ntpath import weakref import posixpath from symbolic._lowlevel import ffi, lib from symbolic._compat import text_type, NUL from symbolic.exceptions import exceptions_by_code, SymbolicError __all__ = ["common_path_join", "strip_common_path_prefix"] attached_refs = weakref.WeakKeyDictiona...
26.102703
82
0.637606
8a5550e02e890ff02ce13021ab34f430d1e1720c
4,825
py
Python
examples/charge_offpeak.py
azryn42/jlrpy
8943dcb6a7f18b2f2c6c8b81f606386655055a95
[ "MIT" ]
66
2018-12-29T00:18:10.000Z
2022-03-07T22:00:32.000Z
examples/charge_offpeak.py
azryn42/jlrpy
8943dcb6a7f18b2f2c6c8b81f606386655055a95
[ "MIT" ]
55
2018-12-31T07:43:14.000Z
2021-12-21T18:45:07.000Z
examples/charge_offpeak.py
azryn42/jlrpy
8943dcb6a7f18b2f2c6c8b81f606386655055a95
[ "MIT" ]
30
2018-12-31T10:09:55.000Z
2021-12-20T21:36:25.000Z
# -*- coding: utf-8 -*- """Charge Off-Peak script. This script will check the charging level once every minute if the vehicle is at home (100 meters or less from the location specified in the config file) and if the current battery level meets or exceeds the specified maximum value, the charging will stop if the vehic...
35.477941
90
0.640207
ee88c123d4f1d20cb82ec23a497270c88abe665a
3,393
py
Python
rllib/examples/multi_agent_cartpole.py
benblack769/ray
def97a4c53772701fa3fe4b4f8512509672ecb84
[ "Apache-2.0" ]
1
2020-11-09T04:14:58.000Z
2020-11-09T04:14:58.000Z
rllib/examples/multi_agent_cartpole.py
benblack769/ray
def97a4c53772701fa3fe4b4f8512509672ecb84
[ "Apache-2.0" ]
null
null
null
rllib/examples/multi_agent_cartpole.py
benblack769/ray
def97a4c53772701fa3fe4b4f8512509672ecb84
[ "Apache-2.0" ]
1
2021-10-11T22:53:49.000Z
2021-10-11T22:53:49.000Z
"""Simple example of setting up a multi-agent policy mapping. Control the number of agents and policies via --num-agents and --num-policies. This works with hundreds of agents and policies, but note that initializing many TF policies will take some time. Also, TF evals might slow down with large numbers of policies....
34.272727
78
0.692013
6e6eedb51f5668c997f88b55efb71a2bf5325bc1
1,031
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/3_features/numtrees_20/rule_0.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/3_features/numtrees_20/rule_0.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/3_features/numtrees_20/rule_0.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Coupon, obj[1]: Education, obj[2]: Occupation # {"feature": "Coupon", "instances": 51, "metric_value": 0.9931, "depth": 1} if obj[0]>1: # {"feature": "Occupation", "instances": 40, "metric_value": 0.9544, "depth": 2} if obj[2]<=14: # {"feature": "Education", "instances": 34, "me...
31.242424
82
0.584869
0e4492b03fae9586ca99746463f7ad7d125146a2
1,131
py
Python
setup.py
fraescaya10/WikiApp
a225fd094c2215785853dd2a2a6202c4901bdee7
[ "MIT" ]
null
null
null
setup.py
fraescaya10/WikiApp
a225fd094c2215785853dd2a2a6202c4901bdee7
[ "MIT" ]
null
null
null
setup.py
fraescaya10/WikiApp
a225fd094c2215785853dd2a2a6202c4901bdee7
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.txt')) as f: README = f.read() with open(os.path.join(here, 'CHANGES.txt')) as f: CHANGES = f.read() requires = [ 'pyramid', 'pyramid_chameleon', 'pyramid_d...
24.06383
63
0.591512
cf617dffc28ea54955fef1941a282effd4045485
630
py
Python
addons/source-python/plugins/warcraft/races/skills/team_add_health.py
ThomasVieth/WCS-Remastered
28aceac73abef8b8839a17680cc046bf4c078169
[ "MIT" ]
null
null
null
addons/source-python/plugins/warcraft/races/skills/team_add_health.py
ThomasVieth/WCS-Remastered
28aceac73abef8b8839a17680cc046bf4c078169
[ "MIT" ]
null
null
null
addons/source-python/plugins/warcraft/races/skills/team_add_health.py
ThomasVieth/WCS-Remastered
28aceac73abef8b8839a17680cc046bf4c078169
[ "MIT" ]
null
null
null
""" """ ## source.python imports from filters.players import PlayerIter ## warcraft.package imports from warcraft.registration import events from warcraft.skill import Skill ## __all__ declaration __all__ = ("TeamAddHealthSkill", ) ## teamhealthskill declaration class TeamAddHealthSkill(Skill): @property ...
20.322581
66
0.701587
6ce8850162cbb7b2bd08d07929a883f072781d1a
3,964
py
Python
estimagic/logging/update_database.py
RobinMusolff/estimagic
615da47e125e9314c542bda0b55bf92bc6bf1863
[ "BSD-3-Clause" ]
null
null
null
estimagic/logging/update_database.py
RobinMusolff/estimagic
615da47e125e9314c542bda0b55bf92bc6bf1863
[ "BSD-3-Clause" ]
null
null
null
estimagic/logging/update_database.py
RobinMusolff/estimagic
615da47e125e9314c542bda0b55bf92bc6bf1863
[ "BSD-3-Clause" ]
null
null
null
"""Functions to update a DataBase in a thread safe way. All write operation to a database in estimagic should be done via functions from this module. Public functions in this module should not require any knowledge of sqlalchemy or sql in general. This is also the reason why _execute_write_statements is not a public ...
31.712
87
0.672805
fa40879ae91869120c321d936961441250822c27
2,621
py
Python
Poggers/urls.py
LucaCeccagnoli/PoggersHEMA
4c35749750a9cb75024487b3f44bc2506df2a338
[ "MIT" ]
null
null
null
Poggers/urls.py
LucaCeccagnoli/PoggersHEMA
4c35749750a9cb75024487b3f44bc2506df2a338
[ "MIT" ]
null
null
null
Poggers/urls.py
LucaCeccagnoli/PoggersHEMA
4c35749750a9cb75024487b3f44bc2506df2a338
[ "MIT" ]
null
null
null
"""Poggers URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
45.189655
109
0.684853
4e0587b98690851617c6d362500a94c16bf0d22b
413
py
Python
test/factory/resource_factory.py
whdalsrnt/statistics
7401ad6753e3b6ee3942b5036d1e5214d8930cb3
[ "Apache-2.0" ]
7
2020-06-04T23:01:03.000Z
2021-06-22T07:06:28.000Z
test/factory/resource_factory.py
jean1042/statistics
747a93b130e341a8863383a7740800285dd0b897
[ "Apache-2.0" ]
3
2020-08-20T01:49:08.000Z
2022-03-23T09:02:18.000Z
test/factory/resource_factory.py
jean1042/statistics
747a93b130e341a8863383a7740800285dd0b897
[ "Apache-2.0" ]
6
2020-06-10T02:00:24.000Z
2021-12-03T06:02:36.000Z
import factory import time import random from spaceone.core import utils class ValueFactory(factory.DictFactory): project_id = factory.LazyAttribute(lambda o: utils.generate_id('project')) server_count = factory.LazyAttribute(lambda o: random.randrange(0, 1000)) class StatFactory(factory.DictFactory): ...
21.736842
78
0.748184
340691c1cb8d9073431b596d27b88ae0926c41fe
10,702
py
Python
footmark/oss/bucket.py
xzq-joy/footmark
6fb749e35e94b7832f4c2b2bc93ac19c83e18cd4
[ "Apache-2.0" ]
18
2017-04-29T10:11:41.000Z
2021-11-18T03:44:22.000Z
footmark/oss/bucket.py
xzq-joy/footmark
6fb749e35e94b7832f4c2b2bc93ac19c83e18cd4
[ "Apache-2.0" ]
25
2017-06-01T09:35:57.000Z
2021-06-24T08:09:26.000Z
footmark/oss/bucket.py
xzq-joy/footmark
6fb749e35e94b7832f4c2b2bc93ac19c83e18cd4
[ "Apache-2.0" ]
47
2017-05-05T08:02:59.000Z
2021-07-05T12:44:56.000Z
# encoding: utf-8 """ Represents a connection to the OSS service. """ from footmark.oss.connection import OSSConnection import oss2 import yaml GMT_FORMAT = '%a, %d %b %Y %H:%M:%S GMT' class Bucket(OSSConnection): """ Object Storage Services """ def __init__(self, acs_access_key_id, acs_secret_ac...
37.683099
136
0.622407
9f311c3467e88101809797726cbed90e39d790d1
5,556
py
Python
configs/baselines/faster_rcnn_r50_fpn_1x_lvis.py
CASIA-IVA-Lab/ACSL
dd84144a7200f2d755e506d45ee53901f471baa7
[ "Apache-2.0" ]
62
2021-04-02T01:40:59.000Z
2022-03-30T03:36:32.000Z
configs/baselines/faster_rcnn_r50_fpn_1x_lvis.py
CASIA-IVA-Lab/ACSL
dd84144a7200f2d755e506d45ee53901f471baa7
[ "Apache-2.0" ]
5
2021-04-06T07:34:48.000Z
2021-12-20T08:31:46.000Z
configs/baselines/faster_rcnn_r50_fpn_1x_lvis.py
CASIA-IVA-Lab/ACSL
dd84144a7200f2d755e506d45ee53901f471baa7
[ "Apache-2.0" ]
15
2021-04-09T02:12:05.000Z
2022-02-25T02:13:28.000Z
# model settings model = dict( type='FasterRCNN', pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='pytorch'), neck=dict( type='FPN', in_channels=[25...
30.360656
83
0.587113
3290a664978c39ed9705a6decd8dc9ca1c199065
3,293
py
Python
tests/test_github.py
oshoval/github2jira
a83ac865ea414d6c432c17690d4e3f8d1175be1e
[ "Apache-2.0" ]
null
null
null
tests/test_github.py
oshoval/github2jira
a83ac865ea414d6c432c17690d4e3f8d1175be1e
[ "Apache-2.0" ]
2
2021-11-10T08:03:12.000Z
2021-12-06T09:18:13.000Z
tests/test_github.py
oshoval/github2jira
a83ac865ea414d6c432c17690d4e3f8d1175be1e
[ "Apache-2.0" ]
null
null
null
# This file is part of the github2jira project # # 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 agre...
28.387931
85
0.699059
8f7ff6e1c702036945aacfa1fd77e9401e09010a
1,627
py
Python
article/migrations/0017_auto_20180806_1123.py
higab85/drugsandme
7db66d9687ac9a04132de94edda364f191d497d7
[ "MIT" ]
3
2016-10-10T10:07:39.000Z
2018-10-29T19:57:52.000Z
article/migrations/0017_auto_20180806_1123.py
higab85/drugsandme
7db66d9687ac9a04132de94edda364f191d497d7
[ "MIT" ]
12
2016-11-04T18:59:17.000Z
2022-03-11T23:32:52.000Z
article/migrations/0017_auto_20180806_1123.py
higab85/drugsandme
7db66d9687ac9a04132de94edda364f191d497d7
[ "MIT" ]
2
2016-09-29T22:48:26.000Z
2019-10-01T19:55:14.000Z
# Generated by Django 2.0.7 on 2018-08-06 11:23 from django.db import migrations import wagtail.core.blocks import wagtail.core.fields import wagtail.snippets.blocks class Migration(migrations.Migration): dependencies = [ ('article', '0016_auto_20180805_1356'), ] operations = [ migratio...
73.954545
1,198
0.741242
2c52f9722fe02f43760371a18dd704cb0407630b
8,661
py
Python
MS_Financial_Downloader.py
wyattschwanbeck/Fair-Price-Per-Share-Calculator
d47041c3d2381674c0002a35827ed5dd0b8b8ad7
[ "Unlicense" ]
3
2018-04-21T01:52:30.000Z
2021-09-03T06:03:26.000Z
MS_Financial_Downloader.py
wyattschwanbeck/Fair-Price-Per-Share-Calculator
d47041c3d2381674c0002a35827ed5dd0b8b8ad7
[ "Unlicense" ]
3
2021-03-31T19:56:29.000Z
2021-12-13T23:00:04.000Z
MS_Financial_Downloader.py
wyattschwanbeck/Fair-Price-Per-Share-Calculator
d47041c3d2381674c0002a35827ed5dd0b8b8ad7
[ "Unlicense" ]
null
null
null
# Copyright (c) 2015 Wyatt Schwanbeck # # 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, merge, publish, di...
46.069149
80
0.579841
a50527a5306609ea10d5b282bf134af8f86c90f5
4,007
py
Python
msi/lgbm_msi.py
jeonghyukpark/msi_highlow
839360f65498e1f15a90f7393fd34f9936deec49
[ "MIT" ]
null
null
null
msi/lgbm_msi.py
jeonghyukpark/msi_highlow
839360f65498e1f15a90f7393fd34f9936deec49
[ "MIT" ]
null
null
null
msi/lgbm_msi.py
jeonghyukpark/msi_highlow
839360f65498e1f15a90f7393fd34f9936deec49
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import lightgbm as lgb import pickle5 as pickle import scipy from sklearn import metrics from sklearn.preprocessing import StandardScaler def mean_confidence_interval(data, confidence=0.95): a = 1.0 * np.array(data) n = len(a) m, se = np.mean(a), scipy.stats.sem(a) ...
36.099099
137
0.65136
f9be5c5f35c8f51c2e300f8bdfe4f69d3af89fd4
102
py
Python
scripts/hello_world_Kaerit.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_Kaerit.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_Kaerit.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
''' LANGUAGE: Python 3.5 AUTHOR: Kaerit GITHUB: https://github.com/Kaerit ''' print("Hello World!!")
12.75
33
0.676471
518b805eabc4d0d4a34a133d57decf77995f5214
5,830
py
Python
baseline/test.py
PennyQ/LearningToPaintDemo
9afd57345ba671f9c777a11d3b08750fd94766ac
[ "MIT" ]
null
null
null
baseline/test.py
PennyQ/LearningToPaintDemo
9afd57345ba671f9c777a11d3b08750fd94766ac
[ "MIT" ]
null
null
null
baseline/test.py
PennyQ/LearningToPaintDemo
9afd57345ba671f9c777a11d3b08750fd94766ac
[ "MIT" ]
null
null
null
import os import cv2 import torch import numpy as np import argparse import torch.nn as nn import torch.nn.functional as F from DRL.actor import * from Renderer.stroke_gen import * from Renderer.model import * device = torch.device("cuda" if torch.cuda.is_available() else "cpu") width = 128 parser = argparse.Argumen...
39.127517
199
0.595026
a992f88b56cc0911f9d62bcd98026936ffe2c131
66,073
py
Python
python/ccxt/async_support/bitmex.py
atoll6/ccxt
3c5fd65a32073bfbe1a7e0f5a02d7d3f93850780
[ "MIT" ]
60
2018-07-10T03:40:31.000Z
2021-09-15T11:07:26.000Z
python/ccxt/async_support/bitmex.py
atoll6/ccxt
3c5fd65a32073bfbe1a7e0f5a02d7d3f93850780
[ "MIT" ]
37
2018-06-29T15:58:21.000Z
2019-06-23T07:29:39.000Z
python/ccxt/async_support/bitmex.py
atoll6/ccxt
3c5fd65a32073bfbe1a7e0f5a02d7d3f93850780
[ "MIT" ]
39
2018-03-21T19:54:33.000Z
2021-03-09T05:09:02.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange from ccxt.base.errors import ExchangeError from ccxt.base.errors import Authenticatio...
42.300256
233
0.459628
ca3fc8f2827654c8edcd4c4fd7812c15d064aa13
2,584
py
Python
refactor/query_testing_back_end/flgg_py4j/defaults.py
joschout/tilde
1403b50842b83f2edd6b16b1fbe24b9bec2d0048
[ "Apache-2.0" ]
16
2019-03-06T06:11:33.000Z
2022-02-07T21:30:25.000Z
refactor/query_testing_back_end/flgg_py4j/defaults.py
joschout/tilde
1403b50842b83f2edd6b16b1fbe24b9bec2d0048
[ "Apache-2.0" ]
4
2019-10-08T14:48:23.000Z
2020-03-26T00:31:57.000Z
refactor/query_testing_back_end/flgg_py4j/defaults.py
krishnangovindraj/tilde
5243a02d92f375d56ffc49ab8c3d1a87e31e99b9
[ "Apache-2.0" ]
4
2019-08-14T05:40:47.000Z
2020-08-05T13:21:16.000Z
from py4j.java_gateway import JavaGateway from refactor.default_interface import DefaultHandler from refactor.tilde_essentials.example import Example from refactor.tilde_essentials.leaf_strategy import LeafBuilder from refactor.tilde_essentials.splitter import Splitter from refactor.tilde_essentials.stop_criterion imp...
50.666667
111
0.772059
4c9b29459cc827d80d850a06fc10659f74b09c43
25,297
py
Python
csp.py
todd-thompson/aima-python
59d9ecbb3572b303d73ca8758e1ea842c3889985
[ "MIT" ]
31
2015-03-24T15:03:39.000Z
2020-11-11T01:01:47.000Z
aima/csp.py
claudiu04/aima
3572b2fb92039b4a1abe384be8545560fbd3d470
[ "MIT" ]
2
2021-06-08T22:13:00.000Z
2022-01-13T03:10:58.000Z
aima/csp.py
claudiu04/aima
3572b2fb92039b4a1abe384be8545560fbd3d470
[ "MIT" ]
19
2015-07-09T12:57:17.000Z
2021-09-11T13:11:49.000Z
"""CSP (Constraint Satisfaction Problems) problems and solvers. (Chapter 6).""" from utils import * import search class CSP(search.Problem): """This class describes finite-domain Constraint Satisfaction Problems. A CSP is specified by the following inputs: vars A list of variables; each is atom...
41.200326
116
0.601969
b6e7cb28596f7c4deaee406040f7a98fa7dae0c3
238
py
Python
scripts/script_template.py
tayutaedomo/python-trials
9b8a50404e6f5c601774d2e88c61b323c143d3d2
[ "MIT" ]
null
null
null
scripts/script_template.py
tayutaedomo/python-trials
9b8a50404e6f5c601774d2e88c61b323c143d3d2
[ "MIT" ]
3
2021-06-08T22:44:11.000Z
2022-01-13T03:29:06.000Z
scripts/script_template.py
tayutaedomo/python-trials
9b8a50404e6f5c601774d2e88c61b323c143d3d2
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # Refer # - http://d.hatena.ne.jp/s-n-k/20080512/1210611374 # - http://d.hatena.ne.jp/s-n-k/20080513/1210692988 if __name__ == '__main__': print 'スクリプトの時だけ __name__ = %s' % __name__
23.8
52
0.634454
8c134953faa4968ef19a2d80c53445dcf92d71e7
1,569
py
Python
doc2.py
beng1302/University-Dissertation
c050c3eb45794bdf76e9103ea4ce0198e67fa758
[ "MIT" ]
null
null
null
doc2.py
beng1302/University-Dissertation
c050c3eb45794bdf76e9103ea4ce0198e67fa758
[ "MIT" ]
null
null
null
doc2.py
beng1302/University-Dissertation
c050c3eb45794bdf76e9103ea4ce0198e67fa758
[ "MIT" ]
null
null
null
"""graph of density of states""" from __future__ import division import numpy as np import matplotlib.pyplot as plt f = np.exp(1) N = 80 xmax = 10 Emax = xmax**2 Emin = Emax/N E = np.linspace(Emin, Emax, N) gE = [1]*(N) print(E, '\n\n', 'f values:') xold = np.random.uniform(-xmax, xmax) while f >= np.exp(10**(-6)):...
26.15
69
0.543658
c1a69153e6caf9445c738819ae1bde042cf90cb7
962
py
Python
tests/test_gaf_missingsym.py
camiloaruiz/goatools
3da97251ccb6c5e90b616c3f625513f8aba5aa10
[ "BSD-2-Clause" ]
null
null
null
tests/test_gaf_missingsym.py
camiloaruiz/goatools
3da97251ccb6c5e90b616c3f625513f8aba5aa10
[ "BSD-2-Clause" ]
null
null
null
tests/test_gaf_missingsym.py
camiloaruiz/goatools
3da97251ccb6c5e90b616c3f625513f8aba5aa10
[ "BSD-2-Clause" ]
1
2022-03-17T03:14:32.000Z
2022-03-17T03:14:32.000Z
#!/usr/bin/env python """Tests read a GAF with missing (required) DB_Symbol text.""" import os from goatools.associations import read_gaf REPO = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") def test_missingsym(): """Tests read a GAF with missing (required) DB_Symbol text.""" # Original gaf...
34.357143
81
0.718295
2508f62b552ade5b24bc536e985fb3d64550c4b7
1,432
py
Python
samples/generated_samples/dialogflow_generated_dialogflowcx_v3_agents_delete_agent_async.py
nicain/python-dialogflow-cx
2292ff540aea24c3c831a5ffe1604c2c022ccb82
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/dialogflow_generated_dialogflowcx_v3_agents_delete_agent_async.py
nicain/python-dialogflow-cx
2292ff540aea24c3c831a5ffe1604c2c022ccb82
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/dialogflow_generated_dialogflowcx_v3_agents_delete_agent_async.py
nicain/python-dialogflow-cx
2292ff540aea24c3c831a5ffe1604c2c022ccb82
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
32.545455
85
0.766061
38f8c658f1408c36f2339e184886d84b76c4f89d
606
py
Python
api/webview/urls.py
wearpants/scrapi
b1619a1212d9fc7e1f2247336fc2e4a3d453a4bb
[ "Apache-2.0" ]
34
2015-10-06T20:08:43.000Z
2022-03-16T12:46:24.000Z
api/webview/urls.py
jgw4sq/twilio
796e97dc6a8fdb8983fd736b328ad907bb1ff73e
[ "Apache-2.0" ]
100
2015-09-10T19:57:32.000Z
2016-06-22T03:09:51.000Z
api/webview/urls.py
jgw4sq/twilio
796e97dc6a8fdb8983fd736b328ad907bb1ff73e
[ "Apache-2.0" ]
32
2015-09-09T21:28:54.000Z
2019-05-09T03:18:02.000Z
from django.conf.urls import url, include from api.webview import views urlpatterns = [ url(r'^documents/$', views.DocumentList.as_view()), url(r'^get-api-key/$', views.DocumentList.as_view(), name='get-api-key'), url(r'^documents/status', views.status, name='status'), url(r'^documents/(?P<source>\w+)/...
46.615385
107
0.668317
08019ca5feb96f1c06932abf402ac21034c2d673
832
py
Python
tests/test_paramwind.py
SorooshMani-NOAA/pyschism
df803edb53184625b12399f38a8bd26a022abbc1
[ "Apache-2.0" ]
null
null
null
tests/test_paramwind.py
SorooshMani-NOAA/pyschism
df803edb53184625b12399f38a8bd26a022abbc1
[ "Apache-2.0" ]
null
null
null
tests/test_paramwind.py
SorooshMani-NOAA/pyschism
df803edb53184625b12399f38a8bd26a022abbc1
[ "Apache-2.0" ]
null
null
null
from datetime import timedelta, datetime from pathlib import Path from pyschism.mesh import Hgrid from pyschism.driver import ModelConfig from pyschism.forcing.nws import BestTrackForcing def test_paramwind(): hgrid = Hgrid.open( 'https://raw.githubusercontent.com/geomesh/test-data/main/NWM/hgrid.ll' ...
22.486486
79
0.659856
073156cc4a3f05d1217b3efeb828e39d7555a4f6
432
py
Python
setup.py
spatocode/seeker
b7c3ccf5baa13ce12f6f9f33cc73fa9f09b8a1dc
[ "BSD-2-Clause" ]
null
null
null
setup.py
spatocode/seeker
b7c3ccf5baa13ce12f6f9f33cc73fa9f09b8a1dc
[ "BSD-2-Clause" ]
null
null
null
setup.py
spatocode/seeker
b7c3ccf5baa13ce12f6f9f33cc73fa9f09b8a1dc
[ "BSD-2-Clause" ]
null
null
null
NAME = "Seeker" VERSION = "0.0.0alpha1" COPYRIGHT = "Copyright (c) 2017 Ekene Izukanne <ekeneizukanne@gmail.com>" DESCRIPTION = """ Seeker is a networking program used for monitoring Internet and Local Area Network (LAN) activities. It's also capable of capturing and analyzing network packets. It gather...
36
82
0.747685
6ab243656edc08d1206a13c5be65586a716355a8
690
py
Python
climetlab/sources/readers/bufr.py
sylvielamythepaut/climetlab
59516b8a510ad506a12ad32bea9e8b98bdb9abf3
[ "Apache-2.0" ]
1
2021-10-02T12:30:12.000Z
2021-10-02T12:30:12.000Z
climetlab/sources/readers/bufr.py
sylvielamythepaut/climetlab
59516b8a510ad506a12ad32bea9e8b98bdb9abf3
[ "Apache-2.0" ]
null
null
null
climetlab/sources/readers/bufr.py
sylvielamythepaut/climetlab
59516b8a510ad506a12ad32bea9e8b98bdb9abf3
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 2020 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmenta...
31.363636
78
0.74058
0c29e23f6106fec550af152adcb10b9c6a7e11d0
10,516
py
Python
2017/21_FractalArt/fractal.py
deanearlwright/AdventOfCode
ca4cf6315c0efa38bd7748fb6f4bc99e7934871d
[ "MIT" ]
1
2021-01-03T23:09:28.000Z
2021-01-03T23:09:28.000Z
2017/21_FractalArt/fractal.py
deanearlwright/AdventOfCode
ca4cf6315c0efa38bd7748fb6f4bc99e7934871d
[ "MIT" ]
6
2020-12-26T21:02:42.000Z
2020-12-26T21:02:52.000Z
2017/21_FractalArt/fractal.py
deanearlwright/AdventOfCode
ca4cf6315c0efa38bd7748fb6f4bc99e7934871d
[ "MIT" ]
null
null
null
# ====================================================================== # Fractal Art # Advent of Code 2017 Day 21 -- Eric Wastl -- https://adventofcode.com # # Computer implementation by Dr. Dean Earl Wright III # ====================================================================== # ============================...
32.45679
110
0.46976
0a933566454d55526ca92dc984bec3e506a17cb1
1,907
py
Python
mmaction/models/trackers/__init__.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
mmaction/models/trackers/__init__.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
mmaction/models/trackers/__init__.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
from .base import BaseTracker from .moco_base_tracker import MoCoBaseTracker from .rnd_moco_tracker import RNDMoCoTracker from .sim_siam_base_att_inv_tracker import SimSiamBaseAttInvTracker from .sim_siam_base_cls_tracker import SimSiamBaseClsTracker from .sim_siam_base_frame_tracker import SimSiamBaseFrameTracker from...
50.184211
78
0.857368
530dd17d8c9f7c95ad8aff9e9b6a17a9fe43c660
1,182
py
Python
round_move.py
leeeju/R.O.S-
66910c0ec7265bbfe147aad9f1cc87cd2515eabf
[ "Python-2.0", "OLDAP-2.7" ]
2
2021-07-25T23:12:45.000Z
2021-07-25T23:12:46.000Z
round_move.py
leeeju/R.O.S-
66910c0ec7265bbfe147aad9f1cc87cd2515eabf
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
round_move.py
leeeju/R.O.S-
66910c0ec7265bbfe147aad9f1cc87cd2515eabf
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- import rospy from geometry_msgs.msg import Twist from bb2_pkg.MoveBB2 import MoveBB2 # 이동하느 값 from bebop_msgs.msg import Ardrone3PilotingStateAttitudeChanged class RotateByAtti: # 클라스 만들기 def __init__(self): rospy.Subscriber('/bebop/states/ardrone3/PilotingState/At...
20.033898
129
0.539763
760e617dd70ebf84f18878047df3c571162a6a65
14,062
py
Python
wiggin/polychrom_contrib.py
golobor/wiggin
27564e693f2e8607916be96e3ea51d38a87cf4e4
[ "MIT" ]
null
null
null
wiggin/polychrom_contrib.py
golobor/wiggin
27564e693f2e8607916be96e3ea51d38a87cf4e4
[ "MIT" ]
1
2021-12-16T10:52:24.000Z
2021-12-16T10:52:24.000Z
wiggin/polychrom_contrib.py
golobor/wiggin
27564e693f2e8607916be96e3ea51d38a87cf4e4
[ "MIT" ]
2
2021-03-05T17:06:06.000Z
2021-12-16T10:51:49.000Z
import pathlib import logging import collections import shelve import numpy as np import pandas as pd import numba import polychrom import polychrom.polymer_analyses import polychrom.hdf5_format def make_log_int_bins(end, start=1, bins_decade=10): lstart = np.log10(start) lend = np.log10(end) num = int...
29.053719
91
0.618973
1354f884a0d930a93f438e88d90a8d855d6597c7
2,344
py
Python
src/archive/nvt/nvt_dataset.py
mengdong/merlin-on-vertex
0d8ac410f6afb01ff1b2ec70b51cb5caa28a66ad
[ "Apache-2.0" ]
null
null
null
src/archive/nvt/nvt_dataset.py
mengdong/merlin-on-vertex
0d8ac410f6afb01ff1b2ec70b51cb5caa28a66ad
[ "Apache-2.0" ]
null
null
null
src/archive/nvt/nvt_dataset.py
mengdong/merlin-on-vertex
0d8ac410f6afb01ff1b2ec70b51cb5caa28a66ad
[ "Apache-2.0" ]
null
null
null
# Use GCS Fuse or gs:// from typing import List, Dict, Union from pathlib import Path from glob import glob import numpy as np from dask.distributed import Client import nvtabular as nvt class DatasetNotCreated(Exception): pass class NvtDataset: def __init__(self, data_path: str, ...
30.441558
58
0.508532
dc63352660255ee9506b4365ba5c8817679426f5
1,063
py
Python
lib/python2.7/site-packages/ipywidgets/widgets/__init__.py
fzheng/codejam
5fbec4ef7f4737351c48ada6d52294260fa70efa
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/ipywidgets/widgets/__init__.py
fzheng/codejam
5fbec4ef7f4737351c48ada6d52294260fa70efa
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/ipywidgets/widgets/__init__.py
fzheng/codejam
5fbec4ef7f4737351c48ada6d52294260fa70efa
[ "MIT" ]
1
2016-08-24T01:08:34.000Z
2016-08-24T01:08:34.000Z
from .widget import Widget, CallbackDispatcher, register, widget_serialization, handle_version_comm_opened from .domwidget import DOMWidget from .trait_types import Color, EventfulDict, EventfulList from .widget_bool import Checkbox, ToggleButton, Valid from .widget_button import Button from .widget_box import Box, F...
50.619048
108
0.847601
fbec314028de9895f3f6b204b2737838705e2d40
7,432
py
Python
kubic_class_test.py
cinxdy/TIBigdataOpenAPI
050ee6858232357cb385d1c7d5b2457589570423
[ "MIT" ]
null
null
null
kubic_class_test.py
cinxdy/TIBigdataOpenAPI
050ee6858232357cb385d1c7d5b2457589570423
[ "MIT" ]
1
2021-04-28T03:12:18.000Z
2021-04-28T03:15:34.000Z
kubic_class_test.py
KUBIC-HGU/TIBigdataOpenAPI
712feabd9ce3c67c04ddfc98aa7010db4901f0b1
[ "MIT" ]
1
2021-04-04T05:12:11.000Z
2021-04-04T05:12:11.000Z
from kubic_user import * from kubic_data import * from flask import request class kubic_api: def __init__(self, searchType): self.searchType = searchType self.resultCode = 200 self.response = self.setRequest() if self.response == 200: self.response = self.setResponse() ...
50.90411
162
0.524085
2c5ed74fcc9c46aac2960657ceaab6226aaa068c
1,358
py
Python
vsts/vsts/test/v4_0/models/test_results_context.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/test/v4_0/models/test_results_context.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/test/v4_0/models/test_results_context.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
39.941176
94
0.541237
3e7e70fb38dea0d2e1a89d14c34194e39c3e78ad
36,804
py
Python
angr/engines/light/engine.py
capuanob/angr
4e5bb119965cb282f5bcb3dea5b598e88097f715
[ "BSD-2-Clause" ]
null
null
null
angr/engines/light/engine.py
capuanob/angr
4e5bb119965cb282f5bcb3dea5b598e88097f715
[ "BSD-2-Clause" ]
null
null
null
angr/engines/light/engine.py
capuanob/angr
4e5bb119965cb282f5bcb3dea5b598e88097f715
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=no-self-use,isinstance-second-argument-not-valid-type,unused-argument from typing import Tuple, Optional, Union, Any import struct import re import logging import ailment import pyvex import claripy import archinfo from ...engines.vex.claripy.datalayer import value as claripy_value from ...engines.ve...
31.375959
134
0.587789
6e7bf6bba5d233804440ffa0e0a054700d3ebaf2
1,065
py
Python
catalog/bindings/csw/temporal_crstype.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/temporal_crstype.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/temporal_crstype.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional from bindings.csw.abstract_reference_system_type import AbstractReferenceSystemType from bindings.csw.uses_temporal_cs import UsesTemporalCs from bindings.csw.uses_temporal_datum import UsesTemporalDatum __NAMESPACE__ = "http://www.opengis.net/gml" ...
28.783784
83
0.646009
16fb4da42c001a4fd41c1e9d507c105010fa3f93
1,314
py
Python
src/cli.py
mdcg/python-asymmetric-encryption-example
a53e2ddeb12d78cd5db0a443a23a674450b35f94
[ "MIT" ]
null
null
null
src/cli.py
mdcg/python-asymmetric-encryption-example
a53e2ddeb12d78cd5db0a443a23a674450b35f94
[ "MIT" ]
null
null
null
src/cli.py
mdcg/python-asymmetric-encryption-example
a53e2ddeb12d78cd5db0a443a23a674450b35f94
[ "MIT" ]
null
null
null
import os import click from src.decrypt import decrypt_data from src.encrypt import encrypt_data from src.key_gen import generate_public_key from src import logger def default_keys_path(): return os.path.join(os.environ.get("HOME", "."), "keys") @click.group() def cli(): pass @cli.command() @click.optio...
20.53125
66
0.673516
b8d35e96f47b4b3dbaa4ea295f4d2b931158eef2
463
py
Python
bench_fastcall_dict_methods.py
haypo/pymicrobench
7c6b92deaf5cf0c3fc965fcfcbc6a78f7d0d10f4
[ "MIT" ]
3
2018-01-17T18:45:23.000Z
2020-10-02T06:26:03.000Z
bench_fastcall_dict_methods.py
vstinner/pymicrobench
7c6b92deaf5cf0c3fc965fcfcbc6a78f7d0d10f4
[ "MIT" ]
null
null
null
bench_fastcall_dict_methods.py
vstinner/pymicrobench
7c6b92deaf5cf0c3fc965fcfcbc6a78f7d0d10f4
[ "MIT" ]
4
2018-01-17T18:45:23.000Z
2020-10-08T15:24:51.000Z
#!/usr/bin/env python3 """ Benchmark on dict methods for FASTCALL. http://bugs.python.org/issue29311 Created at 2017-02-24 by Victor STINNER. """ import pyperf runner = pyperf.Runner() runner.timeit('{1: 2}.get(1)', 'mydict.get(1)', setup='mydict = {1: 2}', duplicate=100) ...
20.130435
40
0.544276
a625ac4f68e7078f80a15ed0e6f428b6bb6d05c0
19,604
py
Python
dulwich/tests/test_patch.py
mrkschan/dulwich
7b3ae1e8c019386cb22b52798b89fefb7a3d1a26
[ "Apache-2.0" ]
null
null
null
dulwich/tests/test_patch.py
mrkschan/dulwich
7b3ae1e8c019386cb22b52798b89fefb7a3d1a26
[ "Apache-2.0" ]
null
null
null
dulwich/tests/test_patch.py
mrkschan/dulwich
7b3ae1e8c019386cb22b52798b89fefb7a3d1a26
[ "Apache-2.0" ]
null
null
null
# test_patch.py -- tests for patch.py # Copyright (C) 2010 Jelmer Vernooij <jelmer@jelmer.uk> # # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it an...
36.303704
89
0.581871
62646b4bd87a462aa4965a089a88f6038f84ae82
1,733
py
Python
web_test/pages/searchencrypt.py
yashaka/selene-pytest-template
12ed37ac5970f415c61cae50d03c62a7d31975fa
[ "MIT" ]
null
null
null
web_test/pages/searchencrypt.py
yashaka/selene-pytest-template
12ed37ac5970f415c61cae50d03c62a7d31975fa
[ "MIT" ]
null
null
null
web_test/pages/searchencrypt.py
yashaka/selene-pytest-template
12ed37ac5970f415c61cae50d03c62a7d31975fa
[ "MIT" ]
null
null
null
from selene import by, have from selene.support.shared import browser from web_test.assist.allure.report import step """ This is a simplest possible implementation of pages model. It is based on simple features of "Modular Paradigm" (over OOP). It's dead simple, aka KISS, which has a lot of benefits, like ability to...
24.069444
82
0.708598
12db1772adf9b98d54c90f9a8177823aacce2941
108
py
Python
BusinessEntities/TimeRecordStatusEnum.py
willemserruys/HourRegistration
ed64762f36adf57d12b9ecef0f6679d7a0150168
[ "MIT" ]
null
null
null
BusinessEntities/TimeRecordStatusEnum.py
willemserruys/HourRegistration
ed64762f36adf57d12b9ecef0f6679d7a0150168
[ "MIT" ]
null
null
null
BusinessEntities/TimeRecordStatusEnum.py
willemserruys/HourRegistration
ed64762f36adf57d12b9ecef0f6679d7a0150168
[ "MIT" ]
null
null
null
from enum import Enum class TimeRecordStatusEnum(Enum): Gestart = 1 Gestopt = 2 Gekopieerd = 3
15.428571
33
0.685185
a89d5047b39a35890636ff75e3efcd8cc3fbf265
2,448
py
Python
openstack_dashboard/dashboards/admin/routers/views.py
dreamhost/horizon
55569d540e6c1a6957d5127f9bae6a699ed60823
[ "Apache-2.0" ]
1
2015-06-23T08:23:12.000Z
2015-06-23T08:23:12.000Z
openstack_dashboard/dashboards/admin/routers/views.py
dreamhost/horizon
55569d540e6c1a6957d5127f9bae6a699ed60823
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/routers/views.py
dreamhost/horizon
55569d540e6c1a6957d5127f9bae6a699ed60823
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012, Nachi Ueno, NTT MCL, 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...
34
78
0.671977
d2e3f4d4382f58898e607fdc1eea5364aacbe3f4
1,005
py
Python
tests/fields/test_methods.py
Werni2A/galois
97c35afdd1ad38705f2b1e643237fbd2f87bb6e3
[ "MIT" ]
null
null
null
tests/fields/test_methods.py
Werni2A/galois
97c35afdd1ad38705f2b1e643237fbd2f87bb6e3
[ "MIT" ]
null
null
null
tests/fields/test_methods.py
Werni2A/galois
97c35afdd1ad38705f2b1e643237fbd2f87bb6e3
[ "MIT" ]
null
null
null
""" A pytest module to test methods of Galois field array classes. """ import pytest import numpy as np import galois def test_display_method(): GF = galois.GF(2**3) a = GF([1, 0, 5, 2]) assert str(a) == "GF([1, 0, 5, 2], order=2^3)" GF.display("poly") assert str(a) == "GF([1, 0, α^2 + 1, α], ord...
26.447368
62
0.535323