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
b94ffc3a66763f270f55eb4345c4cc4ae2ae67a3
2,765
py
Python
tests/test_exceptions.py
umutambyi-gad/automateYT
1b8af083eb858e8871f55355265e34d650b69049
[ "MIT" ]
2
2021-04-18T00:00:19.000Z
2021-04-22T18:20:52.000Z
tests/test_exceptions.py
umutambyi-gad/automateYT
1b8af083eb858e8871f55355265e34d650b69049
[ "MIT" ]
null
null
null
tests/test_exceptions.py
umutambyi-gad/automateYT
1b8af083eb858e8871f55355265e34d650b69049
[ "MIT" ]
null
null
null
import pytest from automateYT.__main__ import Automate from automateYT.exceptions import * class TestExceptions: def test_EmptyLookUpListError(self): with pytest.raises(EmptyLookUpListError) as exc_info: Automate().info() assert str(exc_info.value) == "List or dict of (videos or audios) to access can not be ...
38.402778
142
0.76962
1dfe7ae5e2e655ddc1d885bf923f1835d2a47cae
1,725
py
Python
setup.py
mvismonte/LibCST
fc430343b5f7e0c30d6d0ca30b5251b74bd3890d
[ "MIT" ]
1
2021-08-12T11:52:00.000Z
2021-08-12T11:52:00.000Z
setup.py
mvismonte/LibCST
fc430343b5f7e0c30d6d0ca30b5251b74bd3890d
[ "MIT" ]
null
null
null
setup.py
mvismonte/LibCST
fc430343b5f7e0c30d6d0ca30b5251b74bd3890d
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from os import path # pyre-ignore Pyre doesn't know about setuptools. import setuptools this_directory = path.abspath(path.dirname(__file__...
30.263158
107
0.603478
2b564b70aaf6612ad3a2bb14ac22f12bb15348f8
5,659
py
Python
ContainmentModels/hulls.py
kasmith/cbmm-project-christmas
2543eaf9ab57f31d68fef8a9f5d629ce0116ca1a
[ "MIT" ]
null
null
null
ContainmentModels/hulls.py
kasmith/cbmm-project-christmas
2543eaf9ab57f31d68fef8a9f5d629ce0116ca1a
[ "MIT" ]
null
null
null
ContainmentModels/hulls.py
kasmith/cbmm-project-christmas
2543eaf9ab57f31d68fef8a9f5d629ce0116ca1a
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np import scipy as sp import pygame as pg from sklearn import neighbors from matplotlib import path import copy # Algorithm from Moreira & Santos (2007) Concave Hull: A K-nearest neighbors... # http://repositorium.sdum.uminho.pt/bitstream/1822/6429/1/ConcaveHull_ACM_MYS....
33.288235
103
0.579254
ff8a18b8de93e26e9ef436c577c0911a363f5e81
1,210
py
Python
ensembl/db_utils.py
danstaines/ensembl-prodinf
65c51ac7f2dd4fe12b051f417ca252979916798b
[ "Apache-2.0" ]
null
null
null
ensembl/db_utils.py
danstaines/ensembl-prodinf
65c51ac7f2dd4fe12b051f417ca252979916798b
[ "Apache-2.0" ]
null
null
null
ensembl/db_utils.py
danstaines/ensembl-prodinf
65c51ac7f2dd4fe12b051f417ca252979916798b
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import create_engine, text def get_databases_list(server_uri, query): """ List databases on a specified MySQL server Arguments: server_uri : URI of MySQL server e.g. mysql://user@host:3306/ query : optional regular expression to filter databases e.g. .*_core_.* """ if d...
35.588235
98
0.678512
363a8b8a35d18e578822a148f82781e0a32a354b
7,662
py
Python
segment_dataset.py
snaves/neural_rerendering_in_the_wild
ebb9eb0c8bd2a814a5c40dc24df29a682f90d47d
[ "Apache-2.0" ]
204
2019-06-28T13:07:35.000Z
2022-03-24T09:24:41.000Z
segment_dataset.py
JonFreer/neural_rendering_gau_gan
0946c9d002562a64b07c86fa0920e233bd51e67c
[ "Apache-2.0" ]
4
2019-10-17T01:50:01.000Z
2020-11-22T19:43:45.000Z
segment_dataset.py
JonFreer/neural_rendering_gau_gan
0946c9d002562a64b07c86fa0920e233bd51e67c
[ "Apache-2.0" ]
35
2019-06-28T03:10:01.000Z
2022-01-11T03:23:18.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #     https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.37561
80
0.664317
24fe43d3aa7e2474ca1710133b2238b07f7c6702
4,013
py
Python
codes/data/LOL_dataset.py
lin-zhao-resoLve/Symmetric-Enhancement
11c1a662020582d1333d11cf5f9c99556ec0f427
[ "Apache-2.0" ]
14
2021-09-30T07:05:04.000Z
2022-03-31T08:22:39.000Z
codes/data/LOL_dataset.py
lin-zhao-resoLve/Symmetric-Enhancement
11c1a662020582d1333d11cf5f9c99556ec0f427
[ "Apache-2.0" ]
3
2021-11-09T06:52:13.000Z
2021-11-20T08:00:46.000Z
codes/data/LOL_dataset.py
lin-zhao-resoLve/Symmetric-Enhancement
11c1a662020582d1333d11cf5f9c99556ec0f427
[ "Apache-2.0" ]
null
null
null
from torch.utils.data import Dataset from glob import glob import random import os import data.util as util import numpy as np import torchvision.transforms as TF def get_len(route, phase): if phase =='train': train_low_data_names = glob(route + 'low/*.png') train_low_data_names.sort() train...
45.602273
113
0.580862
73761a8b017f9b711ede91bb2ef7e6748186fc30
6,915
py
Python
backend/closet_32194/settings.py
crowdbotics-apps/closet-32194
db89ab231a328688b94796c15bebbe34c32e6aaa
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/closet_32194/settings.py
crowdbotics-apps/closet-32194
db89ab231a328688b94796c15bebbe34c32e6aaa
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/closet_32194/settings.py
crowdbotics-apps/closet-32194
db89ab231a328688b94796c15bebbe34c32e6aaa
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for closet_32194 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import ...
29.551282
112
0.730441
521fb2009668b0dae6c6afceecec6eca6d06a199
2,912
py
Python
lib/python2.7/site-packages/pandas_ml/util/testing.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/python2.7/site-packages/pandas_ml/util/testing.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/python2.7/site-packages/pandas_ml/util/testing.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import numpy as np import pandas.util.testing as tm from pandas.util.testing import (assertRaises, assertRaisesRegexp, # noqa assert_produces_warning, # noqa close, RNGContext, # noqa ...
34.666667
94
0.544299
29a63a256061028a577912bd745c2f66a7d74178
3,653
py
Python
pyasn1_alt_modules/rfc8696.py
CBonnell/pyasn1-alt-modules
cd3773ceaa6ab31b80b0b4013818ac47ee6215b8
[ "BSD-2-Clause" ]
2
2021-06-15T16:24:39.000Z
2022-03-28T04:41:59.000Z
pyasn1_alt_modules/rfc8696.py
CBonnell/pyasn1-alt-modules
cd3773ceaa6ab31b80b0b4013818ac47ee6215b8
[ "BSD-2-Clause" ]
null
null
null
pyasn1_alt_modules/rfc8696.py
CBonnell/pyasn1-alt-modules
cd3773ceaa6ab31b80b0b4013818ac47ee6215b8
[ "BSD-2-Clause" ]
1
2022-01-25T16:00:09.000Z
2022-01-25T16:00:09.000Z
# # This file is part of pyasn1-alt-modules software. # # Created by Russ Housley with some assistance from asn1ate v.0.6.0. # Modified by Russ Housley to include the opentypemap manager. # # Copyright (c) 2019-2022, Vigil Security, LLC # License: http://vigilsec.com/pyasn1-alt-modules-license.txt # # Using Pre-Shared ...
33.513761
76
0.702163
ab46dcef59fc5324c38ecf7af8bfa60d63a6e2f6
513
py
Python
Multiplication/TestCasesGeneratorMultiplication.py
huygovap1711/FLOATING_POINT-_ALU_32BIT
5c1158f8b13537496596731c2a7e8d1200d2ccfb
[ "MIT" ]
null
null
null
Multiplication/TestCasesGeneratorMultiplication.py
huygovap1711/FLOATING_POINT-_ALU_32BIT
5c1158f8b13537496596731c2a7e8d1200d2ccfb
[ "MIT" ]
null
null
null
Multiplication/TestCasesGeneratorMultiplication.py
huygovap1711/FLOATING_POINT-_ALU_32BIT
5c1158f8b13537496596731c2a7e8d1200d2ccfb
[ "MIT" ]
null
null
null
import bitstring, random span = 10000000 iteration = 100000 def ieee754(flt): b = bitstring.BitArray(float=flt, length=32) return b with open("TestVectorMultiply", "w") as f: for i in range(iteration): a = ieee754(random.uniform(-span, span)) b = ieee754(random.uniform(-span, span)) ...
20.52
87
0.516569
382c0fc0d9f28e6581c747da582db6b3d6fff4ab
6,830
py
Python
intermol/forces/forcefunctions.py
JoshuaSBrown/InterMol
de2ce24a84bd487392ab3fc6f40183524db7c1f3
[ "MIT" ]
null
null
null
intermol/forces/forcefunctions.py
JoshuaSBrown/InterMol
de2ce24a84bd487392ab3fc6f40183524db7c1f3
[ "MIT" ]
null
null
null
intermol/forces/forcefunctions.py
JoshuaSBrown/InterMol
de2ce24a84bd487392ab3fc6f40183524db7c1f3
[ "MIT" ]
null
null
null
import parmed.unit as units import intermol.forces.forcedata as forcedata """ functions for manipulating the data to extract keywords and unit-ed parameter lists from forces, name in code example description force_type - HarmonicBondType - class, contains atom t...
34.321608
111
0.673206
0d39eb9edcbf1ed9cb645088d7b196cc57f273c4
465
py
Python
setup.py
CrazyCat-Cyber/Lucy
96b38cd1e8aa66584d5e8209ef28ab0d55dd71f2
[ "MIT" ]
1
2022-01-04T08:09:39.000Z
2022-01-04T08:09:39.000Z
setup.py
Arghya-Banerjee/Lucy
96b38cd1e8aa66584d5e8209ef28ab0d55dd71f2
[ "MIT" ]
1
2022-01-03T09:30:09.000Z
2022-01-03T09:30:09.000Z
setup.py
CrazyCat-Cyber/Lucy
96b38cd1e8aa66584d5e8209ef28ab0d55dd71f2
[ "MIT" ]
1
2022-01-04T08:10:12.000Z
2022-01-04T08:10:12.000Z
from gettext import find from setuptools import find_packages from setuptools import setup if __name__ == '__main__': setup( name='lucy', version='0.1.1', description='this is my own personal voice command task performer', author='Arghya Banerjee', author_email='arghya.bane...
27.352941
75
0.660215
6785f738029eaa5c65bf8df7f840a2468881ca78
6,691
py
Python
topic.py
pragyanaischool/BERT-Topic-Modeling
768b72eb503b65ff09ab841740aef556476f74a7
[ "MIT" ]
2
2021-06-09T23:52:09.000Z
2021-07-07T03:51:41.000Z
topic.py
pragyanaischool/BERT-Topic-Modeling
768b72eb503b65ff09ab841740aef556476f74a7
[ "MIT" ]
null
null
null
topic.py
pragyanaischool/BERT-Topic-Modeling
768b72eb503b65ff09ab841740aef556476f74a7
[ "MIT" ]
1
2021-07-25T10:09:05.000Z
2021-07-25T10:09:05.000Z
from sentence_transformers import SentenceTransformer from shared.utils import load_from_pickle from preprocessing import Preprocessing from functools import lru_cache from shared.utils import isFile from utility import Utility import pandas as pd import numpy as np import hdbscan import logging import re import os a...
43.448052
138
0.540278
4761637182ad3bec52bc4741ebfea9d0eff42565
5,592
py
Python
lib/rucio/rse/protocols/rfio.py
fno2010/rucio
47e93cfbe5887071c70de4ba815c1bbdddfac2ce
[ "Apache-2.0" ]
null
null
null
lib/rucio/rse/protocols/rfio.py
fno2010/rucio
47e93cfbe5887071c70de4ba815c1bbdddfac2ce
[ "Apache-2.0" ]
null
null
null
lib/rucio/rse/protocols/rfio.py
fno2010/rucio
47e93cfbe5887071c70de4ba815c1bbdddfac2ce
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright CERN since 2013 # # 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 ...
39.104895
181
0.61284
f2f0304e7ddb36b6757efec163ac7184c3bdb14f
37,270
py
Python
Packs/XMCyber/Integrations/XMCyberIntegration/XMCyberIntegration_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/XMCyber/Integrations/XMCyberIntegration/XMCyberIntegration_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/XMCyber/Integrations/XMCyberIntegration/XMCyberIntegration_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import io from datetime import datetime from XMCyberIntegration import get_version_command, is_xm_version_supported_command, ip_command from XMCyberIntegration import hostname_command, affected_entities_list_command, affected_critical_assets_list_command from XMCyberIntegration import Client, XM, URLS, PAGE...
43.590643
130
0.530212
d0bf3c867e8fc0bc1b1eecb75b07a5e5e09adfd4
1,533
py
Python
pyleecan/Methods/Machine/LamSlotWind/comp_angle_d_axis.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
2
2020-08-28T14:54:55.000Z
2021-03-13T19:34:45.000Z
pyleecan/Methods/Machine/LamSlotWind/comp_angle_d_axis.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
pyleecan/Methods/Machine/LamSlotWind/comp_angle_d_axis.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
from numpy import argmax, cos, abs as np_abs, angle as np_angle def comp_angle_d_axis(self): """Compute the angle between the X axis and the first d+ axis By convention a "Tooth" is centered on the X axis Parameters ---------- self : LamSlotWind A LamSlotWind object Returns -----...
27.375
88
0.651011
af0655a6d6dbde8ceca6ba721bd43272bc44837c
6,969
py
Python
aries_cloudagent/revocation/models/revocation_registry.py
VersesGitHub/aries-cloudagent-python
eb7182aaad3ab35ea0783e4b97118333f303e8d8
[ "Apache-2.0" ]
1
2021-01-15T01:04:43.000Z
2021-01-15T01:04:43.000Z
aries_cloudagent/revocation/models/revocation_registry.py
VersesGitHub/aries-cloudagent-python
eb7182aaad3ab35ea0783e4b97118333f303e8d8
[ "Apache-2.0" ]
22
2021-02-13T18:48:53.000Z
2021-04-27T07:29:50.000Z
aries_cloudagent/revocation/models/revocation_registry.py
VersesGitHub/aries-cloudagent-python
eb7182aaad3ab35ea0783e4b97118333f303e8d8
[ "Apache-2.0" ]
2
2021-02-19T17:53:37.000Z
2021-02-19T17:56:48.000Z
"""Classes for managing a revocation registry.""" import logging import re from os.path import join from pathlib import Path from requests import Session from requests.exceptions import RequestException from ...indy.util import indy_client_dir from ..error import RevocationError import hashlib import base58 LOGGE...
34.161765
88
0.629359
79c0a1061433478797576b2a76a11bdf5ab890e9
15,540
py
Python
examples/cifar.py
ashlylau/adversarial-robustness-toolbox
0ab24714db39f0d7e428e57f4eb6f9c0d34ca898
[ "MIT" ]
null
null
null
examples/cifar.py
ashlylau/adversarial-robustness-toolbox
0ab24714db39f0d7e428e57f4eb6f9c0d34ca898
[ "MIT" ]
null
null
null
examples/cifar.py
ashlylau/adversarial-robustness-toolbox
0ab24714db39f0d7e428e57f4eb6f9c0d34ca898
[ "MIT" ]
null
null
null
import sys import os import numpy as np import argparse import time import json from pathlib import Path import argparse import os import shutil import sys import numpy as np import torch import random random.seed(42) import torch.nn as nn import torch.optim as optim import torch.utils.data from torch.utils.data imp...
36.737589
169
0.646396
63abfda5f3bfd1f2f9536bb29d562150f5571881
5,840
py
Python
argopy/tests/__init__.py
schwehr/argopy
1b35d5cfb87b2f9ccd2ca45b9987a614edd30700
[ "Apache-2.0" ]
null
null
null
argopy/tests/__init__.py
schwehr/argopy
1b35d5cfb87b2f9ccd2ca45b9987a614edd30700
[ "Apache-2.0" ]
null
null
null
argopy/tests/__init__.py
schwehr/argopy
1b35d5cfb87b2f9ccd2ca45b9987a614edd30700
[ "Apache-2.0" ]
null
null
null
# -*coding: UTF-8 -*- """ Test suite for argopy continuous integration """ import importlib import pytest import warnings from argopy.errors import ErddapServerError, ArgovisServerError, DataNotFound from aiohttp.client_exceptions import ServerDisconnectedError, ClientResponseError import argopy argopy.set_option...
32.087912
116
0.723116
3c2784f7025ece346930980f4a6d6204c22bf533
8,851
py
Python
moose/lib/elan2.py
H1d3r/malware-research
b2dad2a7d2e6fd3d469002a864ad5714906ea8e7
[ "BSD-2-Clause" ]
322
2015-02-28T10:22:31.000Z
2022-03-08T16:29:55.000Z
moose/lib/elan2.py
XXXHakuna-MatataXXX/malware-research
8d0005fc4d29d08063e6c5b0c433c6faa0536659
[ "BSD-2-Clause" ]
4
2015-05-26T21:06:53.000Z
2021-03-04T20:56:15.000Z
moose/lib/elan2.py
XXXHakuna-MatataXXX/malware-research
8d0005fc4d29d08063e6c5b0c433c6faa0536659
[ "BSD-2-Clause" ]
85
2015-01-09T12:10:25.000Z
2022-03-05T18:23:25.000Z
#!/usr/bin/env python3 # # Code related to ESET's Linux/Moose research # For feedback or questions contact us at: github@eset.com # https://github.com/eset/malware-research/ # Olivier Bilodeau <bilodeau@eset.com> # # This code is provided to the community under the two-clause BSD license as # follows: # # Copyright (C)...
34.846457
99
0.659812
e0462b444d8651bc57fc581435e0a692beec5cc3
5,457
py
Python
status.py
Urban-Hacker/SimpleDigitalHeartbeat
6a1f17edc96468382cead76933a4a5cbd451dafb
[ "MIT" ]
null
null
null
status.py
Urban-Hacker/SimpleDigitalHeartbeat
6a1f17edc96468382cead76933a4a5cbd451dafb
[ "MIT" ]
null
null
null
status.py
Urban-Hacker/SimpleDigitalHeartbeat
6a1f17edc96468382cead76933a4a5cbd451dafb
[ "MIT" ]
null
null
null
# Simple service to check the status: import os from shutil import copyfile from datetime import datetime from config import * class Log: def __init__(self, conf): now = datetime.now() date = now.strftime("%d%m%Y") self._file = open(conf["logpath"] + date + "-logs.txt", "a") ...
30.830508
106
0.504856
014754bfcfab02ac8ef708f8924b8a308749a95b
8,642
py
Python
textattack/constraints/semantics/sentence_encoders/sentence_encoder.py
chong-z/TextAttack
9842160b558db2118365770029be70782327a40a
[ "MIT" ]
null
null
null
textattack/constraints/semantics/sentence_encoders/sentence_encoder.py
chong-z/TextAttack
9842160b558db2118365770029be70782327a40a
[ "MIT" ]
null
null
null
textattack/constraints/semantics/sentence_encoders/sentence_encoder.py
chong-z/TextAttack
9842160b558db2118365770029be70782327a40a
[ "MIT" ]
null
null
null
import math import numpy as np import torch from textattack.constraints import Constraint from textattack.shared import utils # import os class SentenceEncoder(Constraint): """Constraint using cosine similarity between sentence encodings of x and x_adv. Args: threshold (:obj:`float`, optional)...
39.104072
99
0.627748
e85a884eb4840c73a6c8051169976d446d5af929
3,119
py
Python
mlprimitives/cli.py
Hector-hedb12/MLPrimitives
82e4826a83ca27e0c2e764625a0d862fc8b95af2
[ "MIT" ]
null
null
null
mlprimitives/cli.py
Hector-hedb12/MLPrimitives
82e4826a83ca27e0c2e764625a0d862fc8b95af2
[ "MIT" ]
null
null
null
mlprimitives/cli.py
Hector-hedb12/MLPrimitives
82e4826a83ca27e0c2e764625a0d862fc8b95af2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """MLPrimitives Command Line Interface module.""" import argparse import logging import os import sys import warnings from mlblocks import add_primitives_path, get_primitives_paths from mlprimitives.evaluation import score_pipeline LOGGER = logging.getLogger(__name__) def _logging_setup(v...
27.60177
80
0.676819
75334ef66943e2f83295219c7e26f2d4ccc83b6f
242
py
Python
python/coding_bat/end_other/end_other.py
lmregus/Portfolio
9a751443edbfe5ff2b47cdeacca86761ed03e81f
[ "MIT" ]
null
null
null
python/coding_bat/end_other/end_other.py
lmregus/Portfolio
9a751443edbfe5ff2b47cdeacca86761ed03e81f
[ "MIT" ]
1
2021-11-15T17:46:44.000Z
2021-11-15T17:46:44.000Z
python/coding_bat/end_other/end_other.py
lmregus/Portfolio
9a751443edbfe5ff2b47cdeacca86761ed03e81f
[ "MIT" ]
null
null
null
######################### # # # Developer: Luis Regus # # # ######################### def end_other(a, b): a = a.lower() b = b.lower() return a[-(len(b)):] == b or a == b[-(len(a)):]
20.166667
52
0.272727
4b39fbd6ba6b1e0d4217519f70adabcabad8868c
13,988
py
Python
test/functional/p2p_unrequested_blocks.py
bitcoinexodus/bitcoinexodus-source
742661b3dc9abce61c05fa1561b7fd9496629866
[ "MIT" ]
null
null
null
test/functional/p2p_unrequested_blocks.py
bitcoinexodus/bitcoinexodus-source
742661b3dc9abce61c05fa1561b7fd9496629866
[ "MIT" ]
null
null
null
test/functional/p2p_unrequested_blocks.py
bitcoinexodus/bitcoinexodus-source
742661b3dc9abce61c05fa1561b7fd9496629866
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 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 processing of unrequested blocks. Setup: two nodes, node0+node1, not connected to each other. Nod...
44.690096
113
0.682442
27c53294fc4defd6e50b62d4697a3aa9c7098cd5
13,644
py
Python
tests/boreholes_test.py
mitchute/pygfunction
a32ac5dc7ca91ebcc7b61f604c7464e8172475b3
[ "BSD-3-Clause" ]
null
null
null
tests/boreholes_test.py
mitchute/pygfunction
a32ac5dc7ca91ebcc7b61f604c7464e8172475b3
[ "BSD-3-Clause" ]
null
null
null
tests/boreholes_test.py
mitchute/pygfunction
a32ac5dc7ca91ebcc7b61f604c7464e8172475b3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Test suite for boreholes module. """ from __future__ import division, print_function, absolute_import import unittest import numpy as np from scipy.constants import pi class TestBorehole(unittest.TestCase): """ Test cases for Borehole() class. """ def setUp(self): fr...
38.325843
79
0.535547
bd836dab1a14256f7fce33ad055c7fdf3d32a458
7,191
py
Python
tests/api.py
ssato/fortios-xutils
d2d30267b365255f9e2b0a8eb5def2b292cb37cb
[ "MIT" ]
null
null
null
tests/api.py
ssato/fortios-xutils
d2d30267b365255f9e2b0a8eb5def2b292cb37cb
[ "MIT" ]
null
null
null
tests/api.py
ssato/fortios-xutils
d2d30267b365255f9e2b0a8eb5def2b292cb37cb
[ "MIT" ]
null
null
null
# # Copyright (C) 2020 Satoru SATOH <satoru.satoh@gmail.com> # SPDX-License-Identifier: MIT # # pylint: disable=missing-docstring,invalid-name from __future__ import absolute_import import glob import os.path import fortios_xutils.api as TT import fortios_xutils.firewall as F import fortios_xutils.network as N import...
32.835616
76
0.610207
00148b29a5aa33140463b6b7680b1c3a7415b3be
7,548
py
Python
my_classes/.history/Tuples/name_tuples_20210722175600.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/.history/Tuples/name_tuples_20210722175600.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/.history/Tuples/name_tuples_20210722175600.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
""" Tuple as Data Structure We have see how we interpreted tuples as data structures The position of the object contained in the tuple gives it meaning For example, we can represent a 2D coordinate as: (10, 20) x y If pt is a position tuple, we can re...
31.58159
154
0.627716
9752bcb6254963707c38771c97f0f2a15285394f
629
py
Python
src/VarDACAE/train/retrain.py
scheng1992/Data_Assimilation
b4d43895229205ee2cd16b15ee20beccb33b71d6
[ "MIT" ]
1
2021-11-25T12:46:48.000Z
2021-11-25T12:46:48.000Z
src/VarDACAE/train/retrain.py
bugsuse/Data_Assimilation
2965ccf78951df11f8686282cd6814bae18afde5
[ "MIT" ]
null
null
null
src/VarDACAE/train/retrain.py
bugsuse/Data_Assimilation
2965ccf78951df11f8686282cd6814bae18afde5
[ "MIT" ]
2
2021-03-02T13:29:34.000Z
2022-03-12T11:01:08.000Z
"""Helper function that retrains from expdir""" from VarDACAE import ML_utils, TrainAE def retrain(dir, gpu_device, new_expdir, batch_sz=None): """This function accepts an expdir and returns an initialized TrainAE class""" model, settings, prev_epoch = ML_utils.load_model_and_settings_from_dir(dir, ...
34.944444
82
0.712242
b870181ced52a82684c6d07c94ee69e5a90d31e4
446
py
Python
models/review.py
jblanco75/AirBnB_clone
383ddad51fcf34234c96dadcbeb716239002d610
[ "MIT" ]
null
null
null
models/review.py
jblanco75/AirBnB_clone
383ddad51fcf34234c96dadcbeb716239002d610
[ "MIT" ]
null
null
null
models/review.py
jblanco75/AirBnB_clone
383ddad51fcf34234c96dadcbeb716239002d610
[ "MIT" ]
1
2021-07-07T20:11:04.000Z
2021-07-07T20:11:04.000Z
#!/usr/bin/python3 """class that inherit from BaseModel""" from models.base_model import BaseModel class Review(BaseModel): """Public class attributes: place_id: string - empty string user_id: string - empty string text: string - empty string""" place_id = "" user_id = "" text = "" ...
22.3
46
0.634529
9f62e42948f0e3764ffaca71ffaad399efe579a3
761
py
Python
employeeInfo.py
fairchap/ISAT-348-Pythonian-Badge
5ef42d28ab4f0eff1fb5c625b0f7259a30dee2f2
[ "MIT" ]
null
null
null
employeeInfo.py
fairchap/ISAT-348-Pythonian-Badge
5ef42d28ab4f0eff1fb5c625b0f7259a30dee2f2
[ "MIT" ]
null
null
null
employeeInfo.py
fairchap/ISAT-348-Pythonian-Badge
5ef42d28ab4f0eff1fb5c625b0f7259a30dee2f2
[ "MIT" ]
null
null
null
import random chars='abcdefghijklmnopqrstuvwxyz1234567890' idChars='1234567890' password='' password=random.choice(chars) for c in range(10): password+=random.choice(chars) idNumber='' idNumber=random.choice(idChars) for c in range(8): idNumber+=random.choice(idChars) class Employee: def __init__(self, first,...
23.060606
52
0.688568
00ede1c2315b8beaf315d4e7b585265fae3c13bd
909
py
Python
conf/migrations/0004_auto_20180501_0436.py
lizehongss/oj_backend
f7bd9f16b44f944e0bb370dcc7e0e82a1f2b5eb4
[ "MIT" ]
5,237
2015-09-08T07:39:15.000Z
2022-03-31T09:17:33.000Z
conf/migrations/0004_auto_20180501_0436.py
lizehongss/oj_backend
f7bd9f16b44f944e0bb370dcc7e0e82a1f2b5eb4
[ "MIT" ]
365
2015-10-21T08:49:32.000Z
2022-03-29T19:25:08.000Z
conf/migrations/0004_auto_20180501_0436.py
lizehongss/oj_backend
f7bd9f16b44f944e0bb370dcc7e0e82a1f2b5eb4
[ "MIT" ]
1,654
2015-09-14T09:34:05.000Z
2022-03-29T07:03:40.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-05-01 04:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('conf', '0003_judgeserver_is_disabled'), ] operations = [ migrations.AlterFi...
25.25
49
0.564356
56e224df3504c0e744c1136ca876530f02e0744c
21,886
py
Python
google/cloud/bigquery/connection/v1beta1/bigquery-connection-v1beta1-py/google/cloud/bigquery/connection_v1beta1/services/connection_service/transports/grpc.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/bigquery/connection/v1beta1/bigquery-connection-v1beta1-py/google/cloud/bigquery/connection_v1beta1/services/connection_service/transports/grpc.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/bigquery/connection/v1beta1/bigquery-connection-v1beta1-py/google/cloud/bigquery/connection_v1beta1/services/connection_service/transports/grpc.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- 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...
45.406639
105
0.637942
49ce9992983d3e49a0a93b97ae55d9aac16812f1
11,509
py
Python
src/apps/surveys18/tests/test_tokenizerlabor.py
travishen/alss-dev
226e8c4f933de39615775a504191428591962c9f
[ "MIT" ]
null
null
null
src/apps/surveys18/tests/test_tokenizerlabor.py
travishen/alss-dev
226e8c4f933de39615775a504191428591962c9f
[ "MIT" ]
null
null
null
src/apps/surveys18/tests/test_tokenizerlabor.py
travishen/alss-dev
226e8c4f933de39615775a504191428591962c9f
[ "MIT" ]
null
null
null
from django.test import TestCase from .setup import setup_fixtures from apps.surveys18.builder.tokenizer_labor import Builder class ModelTestCase(TestCase): @classmethod def setUpTestData(cls): setup_fixtures() def setUp(self): self.string = "0000000000010201####林阿忠0912345678/###299111105...
54.804762
584
0.711878
21a6b1127acec9bc8e3f73a426ada3b74e2abfab
3,349
py
Python
main.py
JulianAZW/ex-co
60d57edb580a98c32d3adb7b1d0a30a170ab1353
[ "Apache-2.0" ]
null
null
null
main.py
JulianAZW/ex-co
60d57edb580a98c32d3adb7b1d0a30a170ab1353
[ "Apache-2.0" ]
null
null
null
main.py
JulianAZW/ex-co
60d57edb580a98c32d3adb7b1d0a30a170ab1353
[ "Apache-2.0" ]
1
2021-01-18T01:19:26.000Z
2021-01-18T01:19:26.000Z
import pickle import random class Tarjeta: def __init__(self , numero , saldo): self.numero=numero self.saldo=int(saldo) def imprime(self): print("Numero: ",self.numero,"\n Saldo: ",self.saldo) def agregarTarjeta(nombre,saldo): tarjetas1=[]; tarjeta=Tarjeta(nombre,saldo) f...
31.299065
76
0.638698
dbf101642a915c21c236d6de5d50cd81ab7188b9
25,634
py
Python
images_to_samples.py
krishanr/geo-deep-learning
990ca1799dfeef317fe7438ec2f3eba9dfad70d5
[ "MIT" ]
null
null
null
images_to_samples.py
krishanr/geo-deep-learning
990ca1799dfeef317fe7438ec2f3eba9dfad70d5
[ "MIT" ]
null
null
null
images_to_samples.py
krishanr/geo-deep-learning
990ca1799dfeef317fe7438ec2f3eba9dfad70d5
[ "MIT" ]
null
null
null
import argparse import datetime import os import numpy as np np.random.seed(1234) # Set random seed for reproducibility import warnings import rasterio import time from pathlib import Path from tqdm import tqdm from collections import OrderedDict from utils.CreateDataset import create_files_and_datasets from utils.u...
48.73384
168
0.58399
cc934be1c497d1faf39797fd9fbfb3bd661a8d95
32,782
py
Python
src/tests/ftest/util/test_utils_pool.py
zzh-wisdom/daos
1ec2257cbe68dc78cae46bdf606c37f7fa738834
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/util/test_utils_pool.py
zzh-wisdom/daos
1ec2257cbe68dc78cae46bdf606c37f7fa738834
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/util/test_utils_pool.py
zzh-wisdom/daos
1ec2257cbe68dc78cae46bdf606c37f7fa738834
[ "BSD-2-Clause-Patent" ]
null
null
null
#!/usr/bin/python """ (C) Copyright 2018-2021 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ import os from time import sleep, time import ctypes from test_utils_base import TestDaosApiBase from avocado import fail_on from command_utils import BasicParameter, CommandFailure from pydaos.raw i...
38.795266
80
0.565615
e99798309c51474208a74500d8fb3625da79d1b0
3,958
py
Python
api_tests/wikis/views/test_wiki_content.py
listinc/osf.io
b9a0357f3e9b6e905b732e750a16e9452c459d78
[ "Apache-2.0" ]
null
null
null
api_tests/wikis/views/test_wiki_content.py
listinc/osf.io
b9a0357f3e9b6e905b732e750a16e9452c459d78
[ "Apache-2.0" ]
5
2017-02-13T19:38:59.000Z
2018-10-17T20:38:08.000Z
api_tests/wikis/views/test_wiki_content.py
listinc/osf.io
b9a0357f3e9b6e905b732e750a16e9452c459d78
[ "Apache-2.0" ]
null
null
null
from nose.tools import * # flake8: noqa import pytest from api.base.settings.defaults import API_BASE from tests.base import ApiWikiTestCase from osf_tests.factories import ProjectFactory, RegistrationFactory class TestWikiContentView(ApiWikiTestCase): def _set_up_public_project_with_wiki_page(self): ...
44.977273
93
0.724356
4976b5b348a648edccc327663ed2b2a7837452b7
1,915
py
Python
examples/Al_5083/Al_5083_calibration.py
lanl/SEPIA
0a1e606e1d1072f49e4f3f358962bd8918a5d3a3
[ "BSD-3-Clause" ]
19
2020-06-22T16:37:07.000Z
2022-02-18T22:50:59.000Z
examples/Al_5083/Al_5083_calibration.py
lanl/SEPIA
0a1e606e1d1072f49e4f3f358962bd8918a5d3a3
[ "BSD-3-Clause" ]
41
2020-07-07T22:52:33.000Z
2021-11-04T14:05:03.000Z
examples/Al_5083/Al_5083_calibration.py
lanl/SEPIA
0a1e606e1d1072f49e4f3f358962bd8918a5d3a3
[ "BSD-3-Clause" ]
6
2020-08-14T18:58:45.000Z
2022-03-01T21:00:14.000Z
import numpy as np import pickle from sepia.SepiaData import SepiaData from sepia.SepiaModel import SepiaModel # Load raw data sim_s104 = np.genfromtxt('data/features_cdf104S.csv', delimiter=',', skip_header=1) sim_s105 = np.genfromtxt('data/features_cdf105S.csv', delimiter=',', skip_header=1) sim_s106 = np.genfromtx...
36.132075
121
0.743081
d6c21b3dcc357700906a38c6001d77dffda8e5bf
17,323
py
Python
script/model/training_util/global_data_constructing_util.py
preetansh/terrier
1d677fdbbd247ddca2ab45e09cb914c6af658ce5
[ "MIT" ]
null
null
null
script/model/training_util/global_data_constructing_util.py
preetansh/terrier
1d677fdbbd247ddca2ab45e09cb914c6af658ce5
[ "MIT" ]
2
2020-08-24T16:29:40.000Z
2020-09-08T16:34:51.000Z
script/model/training_util/global_data_constructing_util.py
preetansh/terrier
1d677fdbbd247ddca2ab45e09cb914c6af658ce5
[ "MIT" ]
null
null
null
import logging import copy import glob import math import os import numpy as np import tqdm import pickle from util import io_util from info import data_info, hardware_info from data_class import global_model_data, grouped_op_unit_data import global_model_config from type import Target, OpUnit, ConcurrentCountingMode ...
48.253482
153
0.66455
690598fe2ff5d9b5934a36d1788dedf7816299c0
1,611
py
Python
test/test_result_success.py
ProcessMaker/pmio-sdk-python
49ddf9e6444c77a35ce51aa052059b254e0f5299
[ "Apache-2.0" ]
2
2017-11-10T05:10:44.000Z
2020-05-14T14:20:01.000Z
test/test_result_success.py
ProcessMaker/pmio-sdk-python
49ddf9e6444c77a35ce51aa052059b254e0f5299
[ "Apache-2.0" ]
null
null
null
test/test_result_success.py
ProcessMaker/pmio-sdk-python
49ddf9e6444c77a35ce51aa052059b254e0f5299
[ "Apache-2.0" ]
4
2017-07-01T22:04:18.000Z
2020-05-14T14:33:41.000Z
# coding: utf-8 """ ProcessMaker API This ProcessMaker I/O API provides access to a BPMN 2.0 compliant workflow engine api that is designed to be used as a microservice to support enterprise cloud applications.  The current Alpha 1.0 version supports most of the descriptive class of the BPMN 2.0 specification...
29.833333
278
0.734327
74bedecf558e3e901af1fd093313761366d9c721
362
py
Python
solutions/project-euler/003/003.py
deniscostadsc/playground
11fa8e2b708571940451f005e1f55af0b6e5764a
[ "MIT" ]
18
2015-01-22T04:08:51.000Z
2022-01-08T22:36:47.000Z
solutions/project-euler/003/003.py
deniscostadsc/playground
11fa8e2b708571940451f005e1f55af0b6e5764a
[ "MIT" ]
4
2016-04-25T12:32:46.000Z
2021-06-15T18:01:30.000Z
solutions/project-euler/003/003.py
deniscostadsc/playground
11fa8e2b708571940451f005e1f55af0b6e5764a
[ "MIT" ]
25
2015-03-02T06:21:51.000Z
2021-09-12T20:49:21.000Z
#!/usr/bin/env python3 from math import sqrt LIMIT = 600851475143 def is_prime(num): if num % 2 == 0: return False for current in range(3, int(sqrt(num)) + 1): if num % current == 0: return False return True for i in range(1, int(sqrt(LIMIT))): if LIMIT % i == 0 and is_...
16.454545
48
0.571823
a87713fb29350a143c4deedf805be8fd2dbcda6a
12,753
py
Python
doc/conf.py
AlexBodner/xarray
39dc75d76b00bc60e567269a2dfd463fa482a3fd
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
doc/conf.py
AlexBodner/xarray
39dc75d76b00bc60e567269a2dfd463fa482a3fd
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
8
2021-04-14T21:47:20.000Z
2022-02-14T03:05:53.000Z
doc/conf.py
AlexBodner/xarray
39dc75d76b00bc60e567269a2dfd463fa482a3fd
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# # xarray documentation build configuration file, created by # sphinx-quickstart on Thu Feb 6 18:57:54 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values h...
33.210938
243
0.67937
18fd0d0a85808056cf107d214ba0618a7d9ed80f
1,470
py
Python
useis/sandbox/tomography/test_tomography.py
jeanphilippemercier/uquake-useis
fb03197852e4180ad32c6308787543b2af95f798
[ "MIT" ]
null
null
null
useis/sandbox/tomography/test_tomography.py
jeanphilippemercier/uquake-useis
fb03197852e4180ad32c6308787543b2af95f798
[ "MIT" ]
null
null
null
useis/sandbox/tomography/test_tomography.py
jeanphilippemercier/uquake-useis
fb03197852e4180ad32c6308787543b2af95f798
[ "MIT" ]
null
null
null
from useis.processors import tomography from importlib import reload reload(tomography) tomo = tomography.Tomography('/data_1/projects/tomo_test', 'tomo_test', 'TGT') # tomo.synthetic() tomo.__add_random_events__(1000) tomo.__add_random_travel_times__() rays = tomo.ray_tracing() ray = rays[0] # from uquake.grid.n...
24.5
78
0.717687
d93776fd0265b947f820ed2d6bcaf39701024ea2
1,611
py
Python
tests/server/integration/services/users/test_authentication_service.py
Guillon88/tasking-manager
8f05eef7cb008c680a82dc9884ab7a83a12ab1f8
[ "BSD-2-Clause" ]
1
2021-08-02T15:32:31.000Z
2021-08-02T15:32:31.000Z
tests/server/integration/services/users/test_authentication_service.py
Guillon88/tasking-manager
8f05eef7cb008c680a82dc9884ab7a83a12ab1f8
[ "BSD-2-Clause" ]
null
null
null
tests/server/integration/services/users/test_authentication_service.py
Guillon88/tasking-manager
8f05eef7cb008c680a82dc9884ab7a83a12ab1f8
[ "BSD-2-Clause" ]
null
null
null
import os import unittest from server import create_app from server.services.users.authentication_service import AuthenticationService from tests.server.helpers.test_helpers import ( get_canned_osm_user_details, get_canned_osm_user_details_changed_name, ) class TestAuthenticationService(unittest.TestCase): ...
25.983871
99
0.660459
317a09706221b8e9aa80e5457edb4bcdef84bfaf
21,338
py
Python
test/ref_generators/generate_dyn_slice_ref.py
magrawal128/ngraph
ca911487d1eadfe6ec66dbe3da6f05cee3645b24
[ "Apache-2.0" ]
1
2021-10-04T21:55:19.000Z
2021-10-04T21:55:19.000Z
test/ref_generators/generate_dyn_slice_ref.py
biswajitcsecu/ngraph
d6bff37d7968922ef81f3bed63379e849fcf3b45
[ "Apache-2.0" ]
1
2019-02-20T20:56:47.000Z
2019-02-22T20:10:28.000Z
test/ref_generators/generate_dyn_slice_ref.py
biswajitcsecu/ngraph
d6bff37d7968922ef81f3bed63379e849fcf3b45
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # ****************************************************************************** # Copyright 2017-2019 Intel 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 ...
34.031898
130
0.519261
696affa2d1f4aea1c929db8a07ebe43b236fb71a
57,346
py
Python
discord/client.py
Sengolda/enhanced-discord.py
e721b0f84e5639d6d2c107fb218a7a43a8bf6563
[ "MIT" ]
1
2021-09-01T09:28:00.000Z
2021-09-01T09:28:00.000Z
discord/client.py
Sengolda/enhanced-discord.py
e721b0f84e5639d6d2c107fb218a7a43a8bf6563
[ "MIT" ]
null
null
null
discord/client.py
Sengolda/enhanced-discord.py
e721b0f84e5639d6d2c107fb218a7a43a8bf6563
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz 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, merg...
33.398952
144
0.590468
64bcea23ecc0aab79e7482f1e2547e96ae98b153
4,411
py
Python
src/collectors/jolokia/test/testcassandra_jolokia.py
signalfx/Diamond
31c5fe48a8045c33e361cc148b54ce2855ffb66c
[ "MIT" ]
2
2015-03-13T05:46:54.000Z
2015-11-05T15:54:28.000Z
src/collectors/jolokia/test/testcassandra_jolokia.py
signalfx/Diamond
31c5fe48a8045c33e361cc148b54ce2855ffb66c
[ "MIT" ]
null
null
null
src/collectors/jolokia/test/testcassandra_jolokia.py
signalfx/Diamond
31c5fe48a8045c33e361cc148b54ce2855ffb66c
[ "MIT" ]
1
2021-03-16T10:36:20.000Z
2021-03-16T10:36:20.000Z
#!/usr/bin/python # coding=utf-8 ################################################################################ from test import CollectorTestCase from test import get_collector_config from test import unittest from mock import patch from diamond.collector import Collector from cassandra_jolokia import CassandraJo...
39.383929
80
0.639311
52d90a808bae88212229a3d1b0f5a7685701ff01
1,692
py
Python
FEEG1001/lab6.py
yonghuatang/soton1
80fb0f4f9beb9682043476b586ea33ded67c5fa3
[ "BSD-4-Clause-UC" ]
3
2020-09-12T05:44:44.000Z
2020-09-12T13:56:45.000Z
FEEG1001/lab6.py
yonghuatang/soton1
80fb0f4f9beb9682043476b586ea33ded67c5fa3
[ "BSD-4-Clause-UC" ]
null
null
null
FEEG1001/lab6.py
yonghuatang/soton1
80fb0f4f9beb9682043476b586ea33ded67c5fa3
[ "BSD-4-Clause-UC" ]
null
null
null
# Lab 6 (Online Lab) # 16 November 2020 # © Tang Yong Hua # Code available on Github https://github.com/yonghuatang/soton1/tree/master/FEEG1001 # Python version 3.8 import math def positive_places(f, xs): """Takes as arguments some function f and a list of numbers xs and returns a list of those-and...
29.684211
100
0.614066
e76480471e6bea18ea40a9e4037a74ba815e2226
1,756
py
Python
bot/sign_api.py
rombintu/project12
a127b8c697cb6e7cc07ff9528a79888f72c4c4ca
[ "MIT" ]
null
null
null
bot/sign_api.py
rombintu/project12
a127b8c697cb6e7cc07ff9528a79888f72c4c4ca
[ "MIT" ]
null
null
null
bot/sign_api.py
rombintu/project12
a127b8c697cb6e7cc07ff9528a79888f72c4c4ca
[ "MIT" ]
null
null
null
import os from Crypto.Hash import SHA256 from Crypto.PublicKey import RSA from Crypto.Signature import pkcs1_15 def create_sign_of_file(file_name): # Генерируем новый ключ key = RSA.generate(1024, os.urandom) # Получаем хэш файла hesh = SHA256.new() with open(file_name, "rb") as f: for ch...
28.786885
109
0.656606
934ad121860513b60a816cef9e60d0ed5ec2d172
13,124
py
Python
mesonbuild/compilers/cuda.py
noah1510/meson
6ca423e1fc8078aa1e138d94b10386dd9536af23
[ "Apache-2.0" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
mesonbuild/compilers/cuda.py
noah1510/meson
6ca423e1fc8078aa1e138d94b10386dd9536af23
[ "Apache-2.0" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
mesonbuild/compilers/cuda.py
noah1510/meson
6ca423e1fc8078aa1e138d94b10386dd9536af23
[ "Apache-2.0" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
# Copyright 2012-2017 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
41.796178
141
0.641877
46f4843666b201d9fca224c58581b543911fad57
1,567
py
Python
src/help/process.py
kormat/please
5f3fc58e370b496768efb2ea9f9c377982f7907d
[ "Apache-2.0" ]
null
null
null
src/help/process.py
kormat/please
5f3fc58e370b496768efb2ea9f9c377982f7907d
[ "Apache-2.0" ]
null
null
null
src/help/process.py
kormat/please
5f3fc58e370b496768efb2ea9f9c377982f7907d
[ "Apache-2.0" ]
1
2018-07-27T09:05:49.000Z
2018-07-27T09:05:49.000Z
"""Tool to preprocess some of the help files into an appropriate format.""" import json import re import sys DOCSTRING_RE = re.compile(r'^( *[^ ]+) (\([^\)]+\)):', flags=re.MULTILINE) def main(filename): with open(filename) as f: data = json.load(f) online_help = lambda f: '${RESET}Online help is a...
40.179487
142
0.617103
7d168d22a2296e860298b1bd313721ba04d953fb
5,287
py
Python
rl_agent/demonstrate.py
AntonPotapchuk/playground
e29cbc974c4d08f27a2078d47d1a79080e712efe
[ "Apache-2.0" ]
null
null
null
rl_agent/demonstrate.py
AntonPotapchuk/playground
e29cbc974c4d08f27a2078d47d1a79080e712efe
[ "Apache-2.0" ]
null
null
null
rl_agent/demonstrate.py
AntonPotapchuk/playground
e29cbc974c4d08f27a2078d47d1a79080e712efe
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import keras.backend as K from keras.layers import Convolution2D, Input, Dense, Flatten, BatchNormalization, Activation, Add from keras.models import Model from pommerman.agents import SimpleAgent, BaseAgent from pommerman.configs import ffa_competition_env from pommerman.constants import ...
33.891026
115
0.614904
9960bcf188598ca04abc56eddcaf848e8f13289f
2,133
py
Python
src/code/crawled_data/facebook/facebook_data_manager.py
dvaruas/minority_recommendations
8adcbf5af5c322e4b20d4336b12ecda62a5c4d5f
[ "MIT" ]
null
null
null
src/code/crawled_data/facebook/facebook_data_manager.py
dvaruas/minority_recommendations
8adcbf5af5c322e4b20d4336b12ecda62a5c4d5f
[ "MIT" ]
null
null
null
src/code/crawled_data/facebook/facebook_data_manager.py
dvaruas/minority_recommendations
8adcbf5af5c322e4b20d4336b12ecda62a5c4d5f
[ "MIT" ]
null
null
null
import os from code.common.data_manager import Manager from code.crawled_data.facebook.globals import FACEBOOK_DATA_PATH class FacebookNetwork(Manager): def __init__(self): super().__init__(name="fb_network") self.add_field(field_name="project", field_type="string") self.add_field(field_n...
49.604651
120
0.656821
de00a22c31ca6fb4eaedb44cab08612c4e6884af
2,403
py
Python
models/brits.py
kopalgarg/BRITS
17124f137409a2f23e2ed1ca7ea46a3d4931c627
[ "MIT" ]
null
null
null
models/brits.py
kopalgarg/BRITS
17124f137409a2f23e2ed1ca7ea46a3d4931c627
[ "MIT" ]
null
null
null
models/brits.py
kopalgarg/BRITS
17124f137409a2f23e2ed1ca7ea46a3d4931c627
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable from torch.nn.parameter import Parameter import math import utils import argparse import data_loader from models import rits from sklearn import metrics from pdb import set_trace SEQ_L...
26.119565
90
0.630878
3b866154a7eb219621e15432f18bcc30853361f9
263
py
Python
erpnext_biotrack/traceability/doctype/plant_room/test_plant_room.py
webonyx/erpnext_biotrack
eb2384a6c3fda84a91c81c959f095a5386a89665
[ "MIT" ]
11
2017-05-29T23:35:21.000Z
2022-03-12T04:29:21.000Z
erpnext_biotrack/traceability/doctype/plant_room/test_plant_room.py
webonyx/erpnext_biotrack
eb2384a6c3fda84a91c81c959f095a5386a89665
[ "MIT" ]
1
2016-12-11T16:58:36.000Z
2016-12-11T16:58:36.000Z
erpnext_biotrack/traceability/doctype/plant_room/test_plant_room.py
webonyx/erpnext_biotrack
eb2384a6c3fda84a91c81c959f095a5386a89665
[ "MIT" ]
14
2016-12-17T11:01:03.000Z
2021-11-01T10:21:45.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Webonyx and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest # test_records = frappe.get_test_records('Plant Room') class TestPlantRoom(unittest.TestCase): pass
20.230769
54
0.768061
a0aa2e3d852cca98955ce4bc75d9e033408c3bbc
1,297
py
Python
src/backend/common/queries/suggestion_query.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
null
null
null
src/backend/common/queries/suggestion_query.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
null
null
null
src/backend/common/queries/suggestion_query.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
null
null
null
from typing import List, Optional from backend.common.consts.suggestion_state import SuggestionState from backend.common.models.account import Account from backend.common.models.suggestion import Suggestion from backend.common.queries.database_query import DatabaseQuery from backend.common.tasklets import typed_taskle...
33.25641
83
0.668466
2661cdfb9a343db0906d2d64ac23e4a162c2bcb1
35,092
py
Python
restler/restler_settings.py
mkleshchenok/restler-fuzzer
1bd7bc68a6c4de997e9fda9a9db5ffb0504b864c
[ "MIT" ]
1
2022-03-22T12:15:37.000Z
2022-03-22T12:15:37.000Z
restler/restler_settings.py
mkleshchenok/restler-fuzzer
1bd7bc68a6c4de997e9fda9a9db5ffb0504b864c
[ "MIT" ]
null
null
null
restler/restler_settings.py
mkleshchenok/restler-fuzzer
1bd7bc68a6c4de997e9fda9a9db5ffb0504b864c
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ Holds user-defined settings data """ from __future__ import print_function import json import sys import re class NewSingletonError(Exception): pass class UninitializedError(Exception): pass class InvalidValueError(Exception): ...
41.091335
213
0.664596
5b1ff659d738b0ccf06a574a59bd96c0b9151ab8
2,156
py
Python
tests/contour_extractors/test_salamon.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
21
2016-08-22T22:00:49.000Z
2020-03-29T04:15:19.000Z
tests/contour_extractors/test_salamon.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
22
2016-08-28T01:07:08.000Z
2018-02-07T14:38:26.000Z
tests/contour_extractors/test_salamon.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
3
2017-01-12T10:04:27.000Z
2022-01-06T13:25:48.000Z
"""Tests for motif/extract/salamon.py """ import unittest import os import numpy as np from motif.contour_extractors import salamon from motif.core import Contours def array_equal(array1, array2): return np.all(np.isclose(array1, array2)) def relpath(f): return os.path.join(os.path.dirname(__file__), f) ...
28.746667
69
0.69898
cb976e8cd68af7ca254c434fba39c91728f244e6
155
py
Python
django_world/apps.py
iamabhishekchakraborty/djangoProject
a71be90da2899c5cf17e94404b2056438b52fe35
[ "MIT" ]
null
null
null
django_world/apps.py
iamabhishekchakraborty/djangoProject
a71be90da2899c5cf17e94404b2056438b52fe35
[ "MIT" ]
null
null
null
django_world/apps.py
iamabhishekchakraborty/djangoProject
a71be90da2899c5cf17e94404b2056438b52fe35
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DjangoWorldConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'django_world'
22.142857
56
0.774194
0afcca61f2ecf86797f124a87289d53245ed1819
339
py
Python
djgumroad/products/urls.py
Maharshi-Pathak/gumroad-clone
97ab1bd71585ee7a4279ad0189980e1b69c31948
[ "MIT" ]
11
2021-04-22T06:26:42.000Z
2022-03-27T21:19:57.000Z
djgumroad/products/urls.py
Maharshi-Pathak/gumroad-clone
97ab1bd71585ee7a4279ad0189980e1b69c31948
[ "MIT" ]
null
null
null
djgumroad/products/urls.py
Maharshi-Pathak/gumroad-clone
97ab1bd71585ee7a4279ad0189980e1b69c31948
[ "MIT" ]
6
2021-02-10T18:12:27.000Z
2022-03-14T02:17:38.000Z
from django.urls import path from . import views app_name = "products" urlpatterns = [ path('<slug>/', views.ProductDetailView.as_view(), name='product-detail'), path('<slug>/update/', views.ProductUpdateView.as_view(), name='product-update'), path('<slug>/delete/', views.ProductDeleteView.as_view(), name=...
37.666667
85
0.707965
1028b94e51994a957e519a0751033cf412025f64
920
py
Python
contrib/gen_env.py
imarkes/Django-Setup
65a7eb13de31c5cf45d56f64653335fc704364b3
[ "MIT" ]
null
null
null
contrib/gen_env.py
imarkes/Django-Setup
65a7eb13de31c5cf45d56f64653335fc704364b3
[ "MIT" ]
null
null
null
contrib/gen_env.py
imarkes/Django-Setup
65a7eb13de31c5cf45d56f64653335fc704364b3
[ "MIT" ]
null
null
null
""" Python SECRET_KEY generator. """ import random chars = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!?@#$%^&*()" size = 50 secret_key = "".join(random.sample(chars, size)) chars = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!?@#$%_" size = 20 password = "".join(random.sample...
23.589744
84
0.76413
33d68a039ce81224663b58672804e794b0292036
2,279
py
Python
leetcode/easy/Implement_Stack_using_Queue.py
shhuan/algorithms
2830c7e2ada8dfd3dcdda7c06846116d4f944a27
[ "MIT" ]
null
null
null
leetcode/easy/Implement_Stack_using_Queue.py
shhuan/algorithms
2830c7e2ada8dfd3dcdda7c06846116d4f944a27
[ "MIT" ]
null
null
null
leetcode/easy/Implement_Stack_using_Queue.py
shhuan/algorithms
2830c7e2ada8dfd3dcdda7c06846116d4f944a27
[ "MIT" ]
1
2022-03-09T04:52:55.000Z
2022-03-09T04:52:55.000Z
# -*- coding: utf-8 -*- """ created by huash06 at 2015-07-08 14:27 Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. pop() -- Removes the element on top of the stack. top() -- Get the top element. empty() -- Return whether the stack is empty. Notes: You must use only ...
25.322222
118
0.592365
d6f4227a92380a3dd05e30c25f00c4a3fda428b1
14,072
py
Python
python/paddle/distributed/fleet/launch.py
xiemoyuan/Paddle
1bae1e74277c61f60b65514c7af5147947c9e105
[ "Apache-2.0" ]
1
2021-02-08T02:09:19.000Z
2021-02-08T02:09:19.000Z
python/paddle/distributed/fleet/launch.py
xiemoyuan/Paddle
1bae1e74277c61f60b65514c7af5147947c9e105
[ "Apache-2.0" ]
1
2020-09-22T08:54:49.000Z
2020-09-22T11:44:09.000Z
python/paddle/distributed/fleet/launch.py
xiemoyuan/Paddle
1bae1e74277c61f60b65514c7af5147947c9e105
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
37.227513
139
0.648451
d602e35629994eda244f1055219d01c4f9019911
855
py
Python
misc/remove_optimizers_params_in_ckpt.py
giuliolovisotto/YOLOv3_TensorFlow
8776cf7b2531cae83f5fc730f3c70ae97919bfd6
[ "MIT" ]
1,703
2019-01-19T09:20:38.000Z
2022-03-27T10:08:27.000Z
misc/remove_optimizers_params_in_ckpt.py
LihengXu/WPSS
40eaa809ffb19447ab3c583440a1875c49523c10
[ "Apache-2.0" ]
256
2019-01-21T11:53:58.000Z
2022-03-27T02:44:49.000Z
built-in/TensorFlow/Official/cv/detection/YoloV3_for_TensorFlow/misc/remove_optimizers_params_in_ckpt.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
697
2019-01-19T13:07:14.000Z
2022-03-31T01:32:45.000Z
# coding: utf-8 # This script is used to remove the optimizer parameters in the saved checkpoint files. # These parameters are useless in the forward process. # Removing them will shrink the checkpoint size a lot. import sys sys.path.append('..') import os import tensorflow as tf from model import yolov3 # params ...
26.71875
87
0.748538
48a5f8c0e40a6e3a57b46bc66aa1f3d824ca28dc
986
py
Python
slack_backup/db.py
ayushoriginal/slackpile
514706137582dad2e9eba7fc9560d1f74e9d006f
[ "BSD-3-Clause" ]
15
2018-05-03T20:30:47.000Z
2021-01-28T07:00:53.000Z
slack_backup/db.py
ayushoriginal/slackpile
514706137582dad2e9eba7fc9560d1f74e9d006f
[ "BSD-3-Clause" ]
12
2017-08-05T11:45:01.000Z
2021-01-09T07:27:46.000Z
slack_backup/db.py
ayushoriginal/slackpile
514706137582dad2e9eba7fc9560d1f74e9d006f
[ "BSD-3-Clause" ]
11
2017-09-21T06:37:46.000Z
2022-03-26T12:18:27.000Z
""" Common db functions """ import logging from sqlalchemy import MetaData, create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base # Prepare SQLAlchemy objects Meta = MetaData() Base = declarative_base(metadata=Meta) Session = sessionmaker() DbFilename = None ...
25.282051
78
0.688641
de267f2e25c0b7f88583d9a654840b2f69b1149e
15,379
py
Python
ndg/xacml/core/match.py
cedadev/ndg_xacml
5f0d3d1c2b7a134d5d7e58059926436d4dfd1e6e
[ "BSD-3-Clause" ]
5
2015-01-26T12:37:34.000Z
2020-10-06T14:24:25.000Z
ndg/xacml/core/match.py
cedadev/ndg_xacml
5f0d3d1c2b7a134d5d7e58059926436d4dfd1e6e
[ "BSD-3-Clause" ]
null
null
null
ndg/xacml/core/match.py
cedadev/ndg_xacml
5f0d3d1c2b7a134d5d7e58059926436d4dfd1e6e
[ "BSD-3-Clause" ]
1
2016-05-12T16:55:10.000Z
2016-05-12T16:55:10.000Z
"""NDG Security Match type definition NERC DataGrid """ __author__ = "P J Kershaw" __date__ = "25/02/10" __copyright__ = "(C) 2010 Science and Technology Facilities Council" __contact__ = "Philip.Kershaw@stfc.ac.uk" __license__ = "BSD - see LICENSE file in top-level directory" __contact__ = "Philip.Kershaw@stfc.ac.uk"...
41.45283
87
0.623708
8bca98f78f34965948478d5fdc9ece4c161829ff
14,638
py
Python
tests/components/samsungtv/test_config_flow.py
GeorgeSG/homeassistant-core
d4615fd432f0c3c66eb0cf682c3da9a4accd7e6c
[ "Apache-2.0" ]
1
2020-03-29T00:56:35.000Z
2020-03-29T00:56:35.000Z
tests/components/samsungtv/test_config_flow.py
GeorgeSG/homeassistant-core
d4615fd432f0c3c66eb0cf682c3da9a4accd7e6c
[ "Apache-2.0" ]
null
null
null
tests/components/samsungtv/test_config_flow.py
GeorgeSG/homeassistant-core
d4615fd432f0c3c66eb0cf682c3da9a4accd7e6c
[ "Apache-2.0" ]
null
null
null
"""Tests for Samsung TV config flow.""" from unittest.mock import call, patch from asynctest import mock import pytest from samsungctl.exceptions import AccessDenied, UnhandledResponse from websocket import WebSocketProtocolException from homeassistant.components.samsungtv.const import ( CONF_MANUFACTURER, CO...
35.443099
82
0.662249
2f9179989c2ca826500a6d5746fe548a0d60da5f
574
py
Python
tensorwatch/array_stream.py
lesteve/tensorwatch
32832b162cab6e05671f4f50c51a8a693d0636b8
[ "MIT" ]
3,453
2019-05-22T15:01:23.000Z
2022-03-31T07:50:41.000Z
tensorwatch/array_stream.py
wgxcow/tensorwatch
142f83a7cb8c54e47e9bab06cb3a1ef8ae225422
[ "MIT" ]
69
2019-05-22T17:11:20.000Z
2022-03-03T09:32:38.000Z
tensorwatch/array_stream.py
wgxcow/tensorwatch
142f83a7cb8c54e47e9bab06cb3a1ef8ae225422
[ "MIT" ]
375
2019-05-22T17:10:33.000Z
2022-03-24T07:43:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from .stream import Stream from .lv_types import StreamItem import uuid class ArrayStream(Stream): def __init__(self, array, stream_name:str=None, console_debug:bool=False): super(ArrayStream, self).__init__(stream_name=stream_name, ...
30.210526
95
0.710801
2019966e42490643611c15332b426930ecbb4e90
9,183
py
Python
docs/conf.py
euweb/PiRotoHomie
03220571ebb739671fc5ec9fb57c6ca57b7f593c
[ "MIT" ]
null
null
null
docs/conf.py
euweb/PiRotoHomie
03220571ebb739671fc5ec9fb57c6ca57b7f593c
[ "MIT" ]
null
null
null
docs/conf.py
euweb/PiRotoHomie
03220571ebb739671fc5ec9fb57c6ca57b7f593c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import os impo...
33.637363
85
0.703801
a5cd61563f7789b0b7b336709779bae6491a7fb6
3,265
py
Python
examples/sumo/grid.py
syuntoku14/flow
3a1157cde31d0b7d6a3cc2f91eef0ec9ea53575e
[ "MIT" ]
null
null
null
examples/sumo/grid.py
syuntoku14/flow
3a1157cde31d0b7d6a3cc2f91eef0ec9ea53575e
[ "MIT" ]
null
null
null
examples/sumo/grid.py
syuntoku14/flow
3a1157cde31d0b7d6a3cc2f91eef0ec9ea53575e
[ "MIT" ]
null
null
null
"""Grid example.""" from flow.controllers.routing_controllers import GridRouter from flow.core.experiment import Experiment from flow.core.params import SumoParams, EnvParams, InitialConfig, NetParams from flow.core.params import VehicleParams from flow.core.params import TrafficLightParams from flow.envs.loop.loop_acc...
27.669492
76
0.636447
ce1a822d0c9c8811f42ac428fb7cafc7f27e498c
2,005
py
Python
tests/python/pants_test/testutils/file_test_util.py
mateor/pants
e01cee8959da269c0b526138760847901e4d4a48
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/testutils/file_test_util.py
mateor/pants
e01cee8959da269c0b526138760847901e4d4a48
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/testutils/file_test_util.py
mateor/pants
e01cee8959da269c0b526138760847901e4d4a48
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os def exac...
29.057971
100
0.718204
3088d433c12b8692fcf55360e7ea5d8dc305fe48
12,878
py
Python
py/legacyanalysis/planet9.py
manera/legacypipe
64dfe164fe1def50f5ad53784edd9a63321b0d45
[ "BSD-3-Clause" ]
32
2015-08-25T00:25:23.000Z
2022-03-04T06:35:54.000Z
py/legacyanalysis/planet9.py
manera/legacypipe
64dfe164fe1def50f5ad53784edd9a63321b0d45
[ "BSD-3-Clause" ]
644
2015-07-08T16:26:28.000Z
2022-03-30T19:09:10.000Z
py/legacyanalysis/planet9.py
manera/legacypipe
64dfe164fe1def50f5ad53784edd9a63321b0d45
[ "BSD-3-Clause" ]
22
2015-08-24T18:27:36.000Z
2021-12-04T03:10:42.000Z
from __future__ import print_function import os from astrometry.util.fits import fits_table from astrometry.util.plotutils import * from astrometry.util.starutil_numpy import * if __name__ == '__main__': ps = PlotSequence('p9') #ra = np.arange(0, 361, 30) ra = np.array([0, 30, 45, 60, 90, 105...
37.219653
85
0.495108
f4dde7998f921260276c4fb2e95c98bf9903f55d
3,806
py
Python
ginga/cvw/CanvasRenderCv.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
ginga/cvw/CanvasRenderCv.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
ginga/cvw/CanvasRenderCv.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
# # CanvasRenderCv.py -- for rendering into a ImageViewCv widget # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. import cv2 # noqa from . import CvHelp # force registration of all canvas types import ginga.canvas.types.all # noqa from ginga import trcalc...
31.196721
76
0.600893
e4b8790b28fe91efa1dd73d5f7b4dcf2fc8fd7a1
9,845
py
Python
stores/apps/blog_pages/migrations/0004_auto__add_field_post_views.py
diassor/CollectorCity-Market-Place
892ad220b8cf1c0fc7433f625213fe61729522b2
[ "Apache-2.0" ]
135
2015-03-19T13:28:18.000Z
2022-03-27T06:41:42.000Z
stores/apps/blog_pages/migrations/0004_auto__add_field_post_views.py
dfcoding/CollectorCity-Market-Place
e59acec3d600c049323397b17cae14fdcaaaec07
[ "Apache-2.0" ]
null
null
null
stores/apps/blog_pages/migrations/0004_auto__add_field_post_views.py
dfcoding/CollectorCity-Market-Place
e59acec3d600c049323397b17cae14fdcaaaec07
[ "Apache-2.0" ]
83
2015-01-30T01:00:15.000Z
2022-03-08T17:25:10.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Post.views' db.add_column('blog_pages_post', 'views', self.gf('django.db.models.fields.Int...
74.022556
630
0.572372
eb7fee10444fcf9d49e43d980758083ce98fd59d
196
py
Python
opentapioca/sparqlwikidata.py
heathersherry/opentapioca
47849d6ca93a6bb4d4ff21eee7448914d2f32fc0
[ "Apache-2.0" ]
1
2020-05-05T14:27:15.000Z
2020-05-05T14:27:15.000Z
opentapioca/sparqlwikidata.py
kmdn/opentapioca
10890f920e6beb229fb15f5ec1470413eb810600
[ "Apache-2.0" ]
null
null
null
opentapioca/sparqlwikidata.py
kmdn/opentapioca
10890f920e6beb229fb15f5ec1470413eb810600
[ "Apache-2.0" ]
null
null
null
import requests def sparql_wikidata(query_string): results = requests.get('https://query.wikidata.org/sparql', {'query': query_string, 'format': 'json'}).json() return results['results']
32.666667
113
0.714286
41c884e2673092d66b6d7687918974849b3c659d
7,756
py
Python
flopy/modflow/mfsip.py
andrewcalderwood/flopy
0432ce96a0a5eec4d20adb4d384505632a2db3dc
[ "CC0-1.0", "BSD-3-Clause" ]
351
2015-01-03T15:18:48.000Z
2022-03-31T09:46:43.000Z
flopy/modflow/mfsip.py
andrewcalderwood/flopy
0432ce96a0a5eec4d20adb4d384505632a2db3dc
[ "CC0-1.0", "BSD-3-Clause" ]
1,256
2015-01-15T21:10:42.000Z
2022-03-31T22:43:06.000Z
flopy/modflow/mfsip.py
andrewcalderwood/flopy
0432ce96a0a5eec4d20adb4d384505632a2db3dc
[ "CC0-1.0", "BSD-3-Clause" ]
553
2015-01-31T22:46:48.000Z
2022-03-31T17:43:35.000Z
""" mfsip module. Contains the ModflowSip class. Note that the user can access the ModflowSip class as `flopy.modflow.ModflowSip`. Additional information for this MODFLOW package can be found at the `Online MODFLOW Guide <http://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/index.html?sip.htm>`_. """ from ..pakbase ...
29.830769
87
0.550284
0755ab02be85ab45be954a58e672dcf4af701e62
1,681
py
Python
ogc_search/open_data/models.py
open-data/ogc_search
cd089ce6fa1113710989299fc0cc663c5ef40e3c
[ "MIT" ]
null
null
null
ogc_search/open_data/models.py
open-data/ogc_search
cd089ce6fa1113710989299fc0cc663c5ef40e3c
[ "MIT" ]
30
2019-11-19T22:29:48.000Z
2022-03-31T15:37:24.000Z
ogc_search/open_data/models.py
open-data/ogc_search
cd089ce6fa1113710989299fc0cc663c5ef40e3c
[ "MIT" ]
1
2020-07-15T16:13:06.000Z
2020-07-15T16:13:06.000Z
from django.db import models # Create your models here. class Organization(models.Model): acronym = models.CharField(max_length=32) orgname_en = models.CharField(max_length=150) orgname_fr = models.CharField(max_length=150) def __str__(self): return "{}".format(self.acronym) def __unic...
29.491228
57
0.714456
80abe517c70305ca408fcf5567898371129d3be3
12,661
py
Python
code/Results1D/visualization loss landscape/roughness index and landscape/small internal/TVDFCNetDRM/fcnetDRMtvdM100m30li00001.py
wukekever/landscapes
addc5dd1e085b7ed3e6a4a76648aa31f7f6dcc03
[ "MIT" ]
9
2020-11-13T10:53:05.000Z
2021-12-17T23:07:56.000Z
code/Results1D/visualization loss landscape/roughness index and landscape/small internal/TVDFCNetDRM/fcnetDRMtvdM100m30li00001.py
wukekever/landscapes
addc5dd1e085b7ed3e6a4a76648aa31f7f6dcc03
[ "MIT" ]
null
null
null
code/Results1D/visualization loss landscape/roughness index and landscape/small internal/TVDFCNetDRM/fcnetDRMtvdM100m30li00001.py
wukekever/landscapes
addc5dd1e085b7ed3e6a4a76648aa31f7f6dcc03
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.optim import lr_scheduler import numpy as np from math import * import time import copy # In[ ]: torch.set_default_tensor_...
27.765351
152
0.619461
735dcf1264e25ed09377d7a9e1059127ac138b2e
3,909
py
Python
Class/views.py
Mihai925/EduCoding-Legacy
7c6de105deb186c3442f8d7f9f1b9f99708f8fb6
[ "MIT" ]
null
null
null
Class/views.py
Mihai925/EduCoding-Legacy
7c6de105deb186c3442f8d7f9f1b9f99708f8fb6
[ "MIT" ]
null
null
null
Class/views.py
Mihai925/EduCoding-Legacy
7c6de105deb186c3442f8d7f9f1b9f99708f8fb6
[ "MIT" ]
null
null
null
from django.http import HttpResponse, HttpResponseServerError, HttpResponseBadRequest from .class_queries import get_class_by_teacher, get_students_by_class_id, remove_student_by_class_id_and_username, \ add_new_class, delete_class as remove_class from .forms import AddStudentForm from authentication.authenticate i...
35.536364
117
0.75032
ceb894aabd8ff552328e88b769965740720fefcc
5,670
py
Python
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeSnapshotsRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeSnapshotsRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeSnapshotsRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "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...
31.5
80
0.750088
57f6148080f7a3aaff44b22b3deb76277557c4a0
2,384
py
Python
pinball/common/s3_utils.py
robinmaben/pinball
c54a206cf6e3dbadb056c189f741d75828c02f98
[ "Apache-2.0" ]
1,143
2015-03-06T22:10:53.000Z
2022-02-23T21:16:47.000Z
pinball/common/s3_utils.py
robinmaben/pinball
c54a206cf6e3dbadb056c189f741d75828c02f98
[ "Apache-2.0" ]
70
2015-03-06T00:44:39.000Z
2019-05-01T13:15:10.000Z
pinball/common/s3_utils.py
robinmaben/pinball
c54a206cf6e3dbadb056c189f741d75828c02f98
[ "Apache-2.0" ]
169
2015-03-09T21:27:12.000Z
2022-03-19T08:09:13.000Z
# Copyright 2015, Pinterest, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
30.177215
78
0.705117
92e74777ed3231d7d45d352bf4caf3a546a4f1cb
292
py
Python
core/urls.py
kave/deepscrub
f96c509503abc9ec8a1b6a7d1a5f3c32baaf1fa1
[ "Artistic-2.0" ]
null
null
null
core/urls.py
kave/deepscrub
f96c509503abc9ec8a1b6a7d1a5f3c32baaf1fa1
[ "Artistic-2.0" ]
null
null
null
core/urls.py
kave/deepscrub
f96c509503abc9ec8a1b6a7d1a5f3c32baaf1fa1
[ "Artistic-2.0" ]
null
null
null
from django.conf.urls import patterns, include, url from views import * urlpatterns = patterns('', url(r'^$', HomeView.as_view(), name='home'), url(r'^details/(?P<pk>\d+)$', product_detail_view, name='product_details'), )
36.5
98
0.534247
c0d0eea5c71a550c3d3c88dd6f8e5f5b432cf418
1,877
py
Python
server/sqlmap/tamper/halfversionedmorekeywords.py
kurpav/volcano
31d5f8f6f5a282abbea3861368eb39cfe33bba77
[ "MIT" ]
null
null
null
server/sqlmap/tamper/halfversionedmorekeywords.py
kurpav/volcano
31d5f8f6f5a282abbea3861368eb39cfe33bba77
[ "MIT" ]
null
null
null
server/sqlmap/tamper/halfversionedmorekeywords.py
kurpav/volcano
31d5f8f6f5a282abbea3861368eb39cfe33bba77
[ "MIT" ]
1
2018-07-04T18:35:16.000Z
2018-07-04T18:35:16.000Z
#!/usr/bin/env python """ Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import os import re from lib.core.common import singleTimeWarnMessage from lib.core.data import kb from lib.core.enums import DBMS from lib.core.enums import PRIORITY from li...
33.517857
207
0.652637
dd0db1756f51545408a06a06a6fa2902571923df
1,355
py
Python
rastervision2/pytorch_learner/object_detection_learner_config.py
jpolchlo/raster-vision
8aa9601d168de2c6bbc00d7f5ba2b70f1d5f7f13
[ "Apache-2.0" ]
null
null
null
rastervision2/pytorch_learner/object_detection_learner_config.py
jpolchlo/raster-vision
8aa9601d168de2c6bbc00d7f5ba2b70f1d5f7f13
[ "Apache-2.0" ]
null
null
null
rastervision2/pytorch_learner/object_detection_learner_config.py
jpolchlo/raster-vision
8aa9601d168de2c6bbc00d7f5ba2b70f1d5f7f13
[ "Apache-2.0" ]
null
null
null
from enum import Enum from rastervision2.pipeline.config import register_config, Field, validator from rastervision2.pytorch_learner.learner_config import ( LearnerConfig, DataConfig, ModelConfig, Backbone) class ObjectDetectionDataFormat(Enum): default = 1 @register_config('object_detection_data') class O...
32.261905
78
0.744649
a84266a22e45e6cde163b215c4f920d2a3c807c7
111
py
Python
waitlist/utility/constants/effects.py
kimnnmadsen/eve-inc-waitlist
c3e4853c5563a95edbf105c11e73d481595fb3ab
[ "MIT" ]
null
null
null
waitlist/utility/constants/effects.py
kimnnmadsen/eve-inc-waitlist
c3e4853c5563a95edbf105c11e73d481595fb3ab
[ "MIT" ]
1
2020-02-18T05:11:20.000Z
2020-02-18T05:29:10.000Z
waitlist/utility/constants/effects.py
kimnnmadsen/eve-inc-waitlist
c3e4853c5563a95edbf105c11e73d481595fb3ab
[ "MIT" ]
null
null
null
POWER_SLOT_MED = 13 POWER_SLOT_HIGH = 12 POWER_SLOT_LOW = 11 POWER_SLOT_RIG = 2663 POWER_SLOT_SUBSYSTEM = 3772
18.5
27
0.81982
9d506bfe078db2cdeb15893c1fdbe499f6ab3226
22,654
py
Python
test/functional/test_framework/util.py
CryptoDJ/namecoin-core
9d496c093fc2d6af669e5971b41d68f8fe225f26
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
CryptoDJ/namecoin-core
9d496c093fc2d6af669e5971b41d68f8fe225f26
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
CryptoDJ/namecoin-core
9d496c093fc2d6af669e5971b41d68f8fe225f26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Helpful routines for regression testing.""" from base64 import b64encode from binascii import hexlify,...
38.331641
140
0.65313
08ae69e00bf56cd33ad6b6926fec71e175f3cf90
5,170
py
Python
pansim/pandemic_simulator/environment/interfaces/person.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
pansim/pandemic_simulator/environment/interfaces/person.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
pansim/pandemic_simulator/environment/interfaces/person.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
# Confidential, Copyright 2020, Sony Corporation of America, All rights reserved. from abc import ABC, abstractmethod from dataclasses import dataclass, field from typing import Optional, Sequence, List, Tuple, cast from .contact_tracer import ContactTracer from .ids import PersonID, LocationID from .infection_model ...
36.666667
117
0.709671
0bad19367d8cc774c3029b62ab4bbdc93226aeaf
4,139
py
Python
lib/lambdascrapers/sources_placenta/en_placenta-1.7.8/divxcrawler.py
proxium/script.module.lambdascrapers
f96ad4c7c44c011c9d0007a83edde8c4797e0e2f
[ "Beerware" ]
11
2018-12-21T22:52:37.000Z
2021-09-02T02:13:50.000Z
lib/lambdascrapers/sources_placenta/en_placenta-1.7.8/divxcrawler.py
proxium/script.module.lambdascrapers
f96ad4c7c44c011c9d0007a83edde8c4797e0e2f
[ "Beerware" ]
null
null
null
lib/lambdascrapers/sources_placenta/en_placenta-1.7.8/divxcrawler.py
proxium/script.module.lambdascrapers
f96ad4c7c44c011c9d0007a83edde8c4797e0e2f
[ "Beerware" ]
1
2020-02-01T19:52:36.000Z
2020-02-01T19:52:36.000Z
# -*- coding: UTF-8 -*- ####################################################################### # ---------------------------------------------------------------------------- # "THE BEER-WARE LICENSE" (Revision 42): # @Daddy_Blamo wrote this file. As long as you retain this notice you # can do whatever you want wi...
37.972477
118
0.439237
2207728951eb0ef7c8e0e3c0052f50e1d26844d1
426
py
Python
test_salutation.py
linz/template-python-click-cli
53be558fe162e1fd2f8d1232f4d47c79cf77ff68
[ "MIT" ]
1
2021-01-28T00:10:28.000Z
2021-01-28T00:10:28.000Z
test_salutation.py
linz/template-python-click-cli
53be558fe162e1fd2f8d1232f4d47c79cf77ff68
[ "MIT" ]
null
null
null
test_salutation.py
linz/template-python-click-cli
53be558fe162e1fd2f8d1232f4d47c79cf77ff68
[ "MIT" ]
null
null
null
""" Tests for the hello() function. """ from salutation import hello def test_hello_without_name(): """Test with no parameter.""" assert "Hello, World!", hello() def test_hello_with_sample_name(): """Test with a name supplied.""" assert "Hello, Alice!", hello("Alice") def test_hello_with_macronat...
20.285714
47
0.673709
15bc53dec8c3e472160301ae3dacf953116b2200
33,763
py
Python
toontown/safezone/DistributedFindFour.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
99
2019-11-02T22:25:00.000Z
2022-02-03T03:48:00.000Z
toontown/safezone/DistributedFindFour.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
42
2019-11-03T05:31:08.000Z
2022-03-16T22:50:32.000Z
toontown/safezone/DistributedFindFour.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
57
2019-11-03T07:47:37.000Z
2022-03-22T00:41:49.000Z
from pandac.PandaModules import * from direct.distributed.ClockDelta import * from direct.task.Task import Task from direct.interval.IntervalGlobal import * from .TrolleyConstants import * from direct.gui.DirectGui import * from toontown.toonbase import TTLocalizer from direct.distributed import DistributedNode from di...
37.808511
410
0.520214
e11b8caff20a3cbe18f3cc24a47e8ce71e06bfda
12,143
py
Python
Detector/APT/APT_Lateral.py
KJ-black/Detecting-Alternate-Authentication-Based-APT-Attack-via-MITRE-Techniques-Correlation
e8ee9dcb28261a69d0534580c08a4620595978df
[ "MIT" ]
null
null
null
Detector/APT/APT_Lateral.py
KJ-black/Detecting-Alternate-Authentication-Based-APT-Attack-via-MITRE-Techniques-Correlation
e8ee9dcb28261a69d0534580c08a4620595978df
[ "MIT" ]
null
null
null
Detector/APT/APT_Lateral.py
KJ-black/Detecting-Alternate-Authentication-Based-APT-Attack-via-MITRE-Techniques-Correlation
e8ee9dcb28261a69d0534580c08a4620595978df
[ "MIT" ]
null
null
null
import json import numpy as np import datetime as dt import elk as elk import re """ Make the lsass whitelist. Notes: - the es.time should choice a right time duration, so as not to miss some normal process logs. - MsMpEng is the process that will have the EID 10 GrantedAccess 0x1010, but its name will vary with its ...
35.926036
125
0.533641
fa578a5732039e040b865b71daab07f142e0401d
13,864
py
Python
env/lib/python3.8/site-packages/oauthlib/openid/connect/core/grant_types/base.py
avdhari/enigma
b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c
[ "MIT" ]
32
2019-11-14T07:49:33.000Z
2022-02-16T00:49:22.000Z
env/lib/python3.8/site-packages/oauthlib/openid/connect/core/grant_types/base.py
avdhari/enigma
b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c
[ "MIT" ]
44
2020-07-21T10:40:23.000Z
2020-08-03T17:34:21.000Z
env/lib/python3.8/site-packages/oauthlib/openid/connect/core/grant_types/base.py
avdhari/enigma
b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c
[ "MIT" ]
16
2019-06-25T13:26:43.000Z
2022-03-07T07:29:12.000Z
from .exceptions import OIDCNoPrompt import datetime import logging from json import loads from oauthlib.oauth2.rfc6749.errors import ConsentRequired, InvalidRequestError, LoginRequired log = logging.getLogger(__name__) class GrantTypeBase(object): # Just proxy the majority of method calls through to the ...
49.870504
117
0.634305
958381ad0f2927aff0253a8516c3bc76d00760d6
1,039
py
Python
venv/Lib/site-packages/pycparser/_build_tables.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
2,407
2015-01-03T03:05:38.000Z
2022-03-31T13:31:25.000Z
venv/Lib/site-packages/pycparser/_build_tables.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
2,695
2015-07-01T16:01:35.000Z
2022-03-31T19:17:44.000Z
venv/Lib/site-packages/pycparser/_build_tables.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
#----------------------------------------------------------------- # pycparser: _build_tables.py # # A dummy for generating the lexing/parsing tables and and # compiling them into .pyc for faster execution in optimized mode. # Also generates AST code from the configuration file. # Should be called from the pycparser di...
27.342105
70
0.654475
ef0e86862b4323a2a6ab4412b66ebabf31449ca8
9,522
py
Python
nodes/odom_camera_latency_detector.py
rislab/extrinsics_calibrator
04ce0a93cc52d64dde07cab787a3846c3a6ec0cd
[ "BSD-3-Clause" ]
3
2020-10-10T21:19:02.000Z
2022-03-06T06:42:53.000Z
nodes/odom_camera_latency_detector.py
rislab/extrinsics_calibrator
04ce0a93cc52d64dde07cab787a3846c3a6ec0cd
[ "BSD-3-Clause" ]
null
null
null
nodes/odom_camera_latency_detector.py
rislab/extrinsics_calibrator
04ce0a93cc52d64dde07cab787a3846c3a6ec0cd
[ "BSD-3-Clause" ]
1
2019-09-05T21:39:55.000Z
2019-09-05T21:39:55.000Z
#!/usr/bin/env python2.7 ''' Script to determine real-world latency between image feed and odom data using a cyclic motion (Yawing about camera Z looking at a chessboard) ''' import numpy as np import sys import cv2 import tf import pdb import yaml import rosbag import rospy from nav_msgs.msg import Odometry from sens...
37.341176
112
0.642407
93802dc4fb126c854ce71376f396e713d0b5338e
2,018
py
Python
challenges/webapp/xss/app.py
rkevin-arch/ECS189M
363b02b86d37b86226b58b826811945e145410ff
[ "MIT" ]
13
2020-03-22T11:05:51.000Z
2021-01-27T06:39:45.000Z
challenges/webapp/xss/app.py
rkevin-arch/ECS189M
363b02b86d37b86226b58b826811945e145410ff
[ "MIT" ]
3
2021-02-20T21:57:15.000Z
2021-06-02T01:14:30.000Z
challenges/webapp/xss/app.py
rkevin-arch/ECS189M
363b02b86d37b86226b58b826811945e145410ff
[ "MIT" ]
3
2020-03-23T20:55:48.000Z
2021-04-17T22:38:36.000Z
import re import os import sys import binascii import subprocess import secrets from collections import namedtuple from bottle import get, post, request, response from bottle import run, static_file, redirect, template # ____ __ _ # / ___| ___ _ __ / _|(_) __ _ ___ # | | / _ \ | '_ \ | |_ ...
28.828571
120
0.550545
b9adfc1e47c2ec6be5bf71142ad5ed0f499e3d15
2,393
py
Python
adb.py
CyberMonitor/adb
6f0b336aa7dae9578cac340cfc1dd67374a5a4af
[ "MIT" ]
1
2021-12-10T18:31:41.000Z
2021-12-10T18:31:41.000Z
adb.py
CyberMonitor/adb
6f0b336aa7dae9578cac340cfc1dd67374a5a4af
[ "MIT" ]
null
null
null
adb.py
CyberMonitor/adb
6f0b336aa7dae9578cac340cfc1dd67374a5a4af
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from argparse import RawDescriptionHelpFormatter import sys import build import os from pathlib import Path def get_args(arg_list): del arg_list[0] try: parser = ArgumentParser(description='program description', formatter_class=RawDescriptionHelpFormatter, prog='prog...
45.150943
169
0.65608
c3aab4e66c0fc7f5356ea5ba70eeb373b03c908a
9,433
py
Python
fastNLP/io/pipe/cws.py
pptt168/fastNLP
3270b8b48bcc7ce2b015ded9554bad548c3dd344
[ "Apache-2.0" ]
1
2021-12-10T06:41:44.000Z
2021-12-10T06:41:44.000Z
fastNLP/io/pipe/cws.py
stratoes/fastNLP
a8a458230489710ab945b37ec22e93315230f2de
[ "Apache-2.0" ]
null
null
null
fastNLP/io/pipe/cws.py
stratoes/fastNLP
a8a458230489710ab945b37ec22e93315230f2de
[ "Apache-2.0" ]
null
null
null
r"""undocumented""" __all__ = [ "CWSPipe" ] import re from itertools import chain from .pipe import Pipe from .utils import _indexize from .. import DataBundle from ..loader import CWSLoader from ...core.const import Const def _word_lens_to_bmes(word_lens): r""" :param list word_lens: List[int], 每个词语的...
33.214789
119
0.530266
6ac12f3666ebf2f98ea316c649416830dafb6d44
6,763
py
Python
benchmarks/f3_wrong_hints_permutations/scaling_software_termination/12-2Nested_false-termination_6.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints_permutations/scaling_software_termination/12-2Nested_false-termination_6.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints_permutations/scaling_software_termination/12-2Nested_false-termination_6.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import Tuple, FrozenSet from pysmt.environment import Environment as PysmtEnv from pysmt.fnode import FNode import pysmt.typing as types from utils import symb_to_next from hint import Hint, Location def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode, ...
31.310185
77
0.58406
e78723495183f0fe8aa489d98c4605dbae6178f0
914
py
Python
nlpatl/sampling/uncertainty/least_confidence.py
dumpmemory/nlpatl
59209242d1ac26714b11b86261070ac50cc90432
[ "MIT" ]
18
2021-11-29T06:43:46.000Z
2022-03-29T09:58:32.000Z
nlpatl/sampling/uncertainty/least_confidence.py
dumpmemory/nlpatl
59209242d1ac26714b11b86261070ac50cc90432
[ "MIT" ]
null
null
null
nlpatl/sampling/uncertainty/least_confidence.py
dumpmemory/nlpatl
59209242d1ac26714b11b86261070ac50cc90432
[ "MIT" ]
1
2021-11-29T06:43:47.000Z
2021-11-29T06:43:47.000Z
from typing import Tuple import numpy as np from nlpatl.sampling import Sampling class LeastConfidenceSampling(Sampling): """ Sampling data points according to the least confidence. Pick the lowest probabilies for the highest class. https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1...
30.466667
132
0.659737