hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
0cc52afa5bda9e011a3f67aa407ce29b267af421
1,409
py
Python
Unit 7 Objects/LessonQ33.1.py
ItsMrTurtle/PythonChris
4513dea336e68f48fabf480ad87bc538a323c2cd
[ "MIT" ]
null
null
null
Unit 7 Objects/LessonQ33.1.py
ItsMrTurtle/PythonChris
4513dea336e68f48fabf480ad87bc538a323c2cd
[ "MIT" ]
null
null
null
Unit 7 Objects/LessonQ33.1.py
ItsMrTurtle/PythonChris
4513dea336e68f48fabf480ad87bc538a323c2cd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed May 27 18:48:24 2020 @author: Christopher Cheng """ circles = Stack() one_circle = Circle() one_circle.change_radius(1) circles.add_one(one_circle) two_circle = Circle() two_circle.change_radius(2) circles.add_one(two_circle) print(circles)
26.092593
71
0.581973
0cc6417c3e829823797e9f3e6ad674ead279d5e9
2,657
py
Python
src/data_analysis_util.py
vikramnayyar/Customer-Identification-for-Bank-Marketing
4727f6d8997d26836ad167616a8edb4898623c39
[ "Apache-2.0" ]
null
null
null
src/data_analysis_util.py
vikramnayyar/Customer-Identification-for-Bank-Marketing
4727f6d8997d26836ad167616a8edb4898623c39
[ "Apache-2.0" ]
null
null
null
src/data_analysis_util.py
vikramnayyar/Customer-Identification-for-Bank-Marketing
4727f6d8997d26836ad167616a8edb4898623c39
[ "Apache-2.0" ]
null
null
null
""" The script declares functions used in 'data_analysis.py' """ import os import yaml from logzero import logger import matplotlib.pyplot as plt import seaborn as sns from matplotlib.patches import Patch import plotly.graph_objects as go from utility import parse_config config_path = "config/config.yaml" con...
34.064103
125
0.657132
0cc6f68c50e68c364cd5514c50d107da2d606391
122
py
Python
api/crawller/admin.py
MahsaSeifikar/tweetphus
01b687f38365023cfaaa34739c50b0da79f0b510
[ "MIT" ]
null
null
null
api/crawller/admin.py
MahsaSeifikar/tweetphus
01b687f38365023cfaaa34739c50b0da79f0b510
[ "MIT" ]
1
2021-12-26T16:35:36.000Z
2021-12-29T15:07:01.000Z
api/crawller/admin.py
MahsaSeifikar/tweetphus
01b687f38365023cfaaa34739c50b0da79f0b510
[ "MIT" ]
null
null
null
from django.contrib import admin from crawller.models import User # Register your models here. admin.site.register(User)
20.333333
32
0.811475
0cc75fc2057f1d904d4d63b853c8dc9ff11fc8ab
987
py
Python
featureflags/config.py
enverbisevac/ff-python-server-sdk
e7c809229d13517e0bf4b28fc0a556e693c9034e
[ "Apache-2.0" ]
null
null
null
featureflags/config.py
enverbisevac/ff-python-server-sdk
e7c809229d13517e0bf4b28fc0a556e693c9034e
[ "Apache-2.0" ]
null
null
null
featureflags/config.py
enverbisevac/ff-python-server-sdk
e7c809229d13517e0bf4b28fc0a556e693c9034e
[ "Apache-2.0" ]
null
null
null
"""Configuration is a base class that has default values that you can change during the instance of the client class""" from typing import Callable BASE_URL = "https://config.feature-flags.uat.harness.io/api/1.0" MINUTE = 60 PULL_INTERVAL = 1 * MINUTE default_config = Config()
25.973684
76
0.64843
0cc7dbac1b53714dc8579ed543f77deb34610c57
1,705
py
Python
src/users/management/commands/populate_tables.py
pimpale/BQuest-Backend
b32833ee5053db1c47fa28f57273632eae43a5cc
[ "MIT" ]
null
null
null
src/users/management/commands/populate_tables.py
pimpale/BQuest-Backend
b32833ee5053db1c47fa28f57273632eae43a5cc
[ "MIT" ]
51
2018-01-24T05:53:15.000Z
2022-01-13T00:44:24.000Z
src/users/management/commands/populate_tables.py
pimpale/BQuest-Backend
b32833ee5053db1c47fa28f57273632eae43a5cc
[ "MIT" ]
3
2020-04-22T03:21:37.000Z
2020-12-15T22:45:52.000Z
from django.core.management.base import BaseCommand from users.models import Major, Minor, Course from django.db import IntegrityError from os import path import json
32.788462
85
0.567742
0cc8db72c131873f18e22e999afa4a7e2c43c233
2,041
py
Python
contrib/stack/stripmapStack/unpackFrame_risat_raw.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
1,133
2022-01-07T21:24:57.000Z
2022-01-07T21:33:08.000Z
contrib/stack/stripmapStack/unpackFrame_risat_raw.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
276
2019-02-10T07:18:28.000Z
2022-03-31T21:45:55.000Z
contrib/stack/stripmapStack/unpackFrame_risat_raw.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
235
2019-02-10T05:00:53.000Z
2022-03-18T07:37:24.000Z
#!/usr/bin/env python3 import isce from isceobj.Sensor import createSensor import shelve import argparse import os from isceobj.Util import Poly1D from isceobj.Planet.AstronomicalHandbook import Const from mroipac.dopiq.DopIQ import DopIQ import copy def cmdLineParse(): ''' Command line parser. ''' ...
26.506494
108
0.652621
0cc92881b3783140afbb04ec688ee09d279aa156
2,794
py
Python
distla/distla_core/distla_core/linalg/qr/test_qr_ooc.py
google/distla_core
7f0d8ab7b847a75e0fc713627488643a8984712a
[ "Apache-2.0" ]
2
2021-12-19T21:17:06.000Z
2021-12-25T09:19:47.000Z
distla/distla_core/distla_core/linalg/qr/test_qr_ooc.py
google/distla_core
7f0d8ab7b847a75e0fc713627488643a8984712a
[ "Apache-2.0" ]
null
null
null
distla/distla_core/distla_core/linalg/qr/test_qr_ooc.py
google/distla_core
7f0d8ab7b847a75e0fc713627488643a8984712a
[ "Apache-2.0" ]
1
2021-12-25T09:19:56.000Z
2021-12-25T09:19:56.000Z
"""Tests for qr.py.""" from jax import lax import jax.numpy as jnp import numpy as np import pytest import tempfile from distla_core.linalg.utils import testutils from distla_core.linalg.qr import qr_ooc from distla_core.utils import pops DTYPE = jnp.float32 seeds = [0, 1] flags = [True, False] def _dephase_qr(R,...
30.703297
78
0.700787
0cca1b15bf096080117912090cc7cfaa4cb29eca
7,940
py
Python
modules/preprocessing/text/NeMo/nemo_text_processing/text_normalization/ar/taggers/cardinal.py
serkhanekarim/AI
0a13880ae8e608cd00fa819dc590097abdb7ae6e
[ "Apache-2.0" ]
null
null
null
modules/preprocessing/text/NeMo/nemo_text_processing/text_normalization/ar/taggers/cardinal.py
serkhanekarim/AI
0a13880ae8e608cd00fa819dc590097abdb7ae6e
[ "Apache-2.0" ]
null
null
null
modules/preprocessing/text/NeMo/nemo_text_processing/text_normalization/ar/taggers/cardinal.py
serkhanekarim/AI
0a13880ae8e608cd00fa819dc590097abdb7ae6e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2015 and onwards Google, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
43.387978
118
0.639924
0cca7a33169b15c0dca26a3d1d4121500e7fe51e
7,735
py
Python
robot.py
dragonrobotics/2018-PowerUp
0fb6be22420b1488ca3d6abb04588e8564d768b9
[ "MIT" ]
2
2018-02-08T23:29:21.000Z
2018-12-27T22:45:12.000Z
robot.py
dragonrobotics/2018-PowerUp
0fb6be22420b1488ca3d6abb04588e8564d768b9
[ "MIT" ]
2
2018-02-10T20:25:16.000Z
2018-02-20T12:47:33.000Z
robot.py
dragonrobotics/2018-PowerUp
0fb6be22420b1488ca3d6abb04588e8564d768b9
[ "MIT" ]
8
2018-01-15T14:53:52.000Z
2018-02-14T22:34:30.000Z
import wpilib import constants import swerve import lift import winch import sys from teleop import Teleop from autonomous.baseline_simple import Autonomous from sensors.imu import IMU if __name__ == "__main__": wpilib.run(Robot)
31.315789
95
0.576083
0ccb7361200b302e98746fb913273e875a9c713b
593
py
Python
2019/06-hsctf/web-networked/solve.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
25
2019-03-06T11:55:56.000Z
2021-05-21T22:07:14.000Z
2019/06-hsctf/web-networked/solve.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
1
2020-06-25T07:27:15.000Z
2020-06-25T07:27:15.000Z
2019/06-hsctf/web-networked/solve.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
1
2019-02-14T00:42:28.000Z
2019-02-14T00:42:28.000Z
import requests text = "0123456789abcdefghijklmnopqrstuvwxyz_}" flag = "hsctf{" for _ in range(30): time = [0.1 for _ in range(38)] for _ in range(5): for i in range(38): payload = {"password": flag + text[i]} r = requests.post( "https://networked-password.we...
21.962963
77
0.563238
0ccc1f35f3830db92996f5a342365046d1d2adc7
47,367
py
Python
gda-public/multidim/covertree.py
drkostas/tda_examples
3fdef4f890ced14b8e3207bd9393eaf262dd0c24
[ "MIT" ]
1
2021-12-22T14:29:40.000Z
2021-12-22T14:29:40.000Z
gda-public/multidim/covertree.py
drkostas/tda_examples
3fdef4f890ced14b8e3207bd9393eaf262dd0c24
[ "MIT" ]
null
null
null
gda-public/multidim/covertree.py
drkostas/tda_examples
3fdef4f890ced14b8e3207bd9393eaf262dd0c24
[ "MIT" ]
null
null
null
r"""This module contains the essential classes for the "Cover-tree with friends" algorithm, namely: - :class:`CoverTree` - :class:`CoverLevel` This module also defines the constants - :code:`ratio_Ag` :math:`=\sqrt{2} - 1=0.414\ldots`, the inverse of the silver ratio - :code:`ratio_Au` :math:`=\frac{...
40.623499
164
0.583508
0ccc2e5ca0664e29a1337110f68367598882b29e
3,936
py
Python
azure-iot-device/azure/iot/device/iothub/models/message.py
elhorton/azure-iot-sdk-python
484b804a64c245bd92930c13b970ff86f868b5fe
[ "MIT" ]
1
2019-02-06T06:52:44.000Z
2019-02-06T06:52:44.000Z
azure-iot-device/azure/iot/device/iothub/models/message.py
elhorton/azure-iot-sdk-python
484b804a64c245bd92930c13b970ff86f868b5fe
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/iothub/models/message.py
elhorton/azure-iot-sdk-python
484b804a64c245bd92930c13b970ff86f868b5fe
[ "MIT" ]
1
2019-12-17T17:50:43.000Z
2019-12-17T17:50:43.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """This mo...
50.461538
298
0.649644
0ccd4f9fbf2b5d4dda1cc40e475be33aa9ef28bc
320
py
Python
scraping/test001.py
flaviogf/Exemplos
fc666429f6e90c388e201fb7b7d5801e3c25bd25
[ "MIT" ]
null
null
null
scraping/test001.py
flaviogf/Exemplos
fc666429f6e90c388e201fb7b7d5801e3c25bd25
[ "MIT" ]
5
2019-12-29T04:58:10.000Z
2021-03-11T04:35:15.000Z
scraping/test001.py
flaviogf/Exemplos
fc666429f6e90c388e201fb7b7d5801e3c25bd25
[ "MIT" ]
null
null
null
import pandas import requests with open('avengers.csv', 'w') as file: file_url = 'https://raw.githubusercontent.com/fivethirtyeight/data/master/avengers/avengers.csv' response = requests.get(file_url) file.write(response.text) with open('avengers.csv', 'r') as file: data_frame = pandas.read_csv(file)
29.090909
100
0.73125
0ccde3d4f64a774d9d8fa84b6c6fe3d0ad69c35d
3,997
py
Python
backup/guitemplates/custominvocationcutdurationdialog.py
calebtrahan/KujiIn_Python
0599d36993fa1d5988a4cf3206a12fdbe63781d8
[ "MIT" ]
null
null
null
backup/guitemplates/custominvocationcutdurationdialog.py
calebtrahan/KujiIn_Python
0599d36993fa1d5988a4cf3206a12fdbe63781d8
[ "MIT" ]
null
null
null
backup/guitemplates/custominvocationcutdurationdialog.py
calebtrahan/KujiIn_Python
0599d36993fa1d5988a4cf3206a12fdbe63781d8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'custominvocationcutdurationdialog.ui' # # Created by: PyQt4 UI code generator 4.11.2 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeErro...
60.560606
138
0.788341
0ccf64808d3042c572ef4543702896d84041599e
1,393
py
Python
benchmarks/pytorch_alexnet_inference.py
d3dave/python-macrobenchmarks
ee52cce1af120f543ce3e2f6bc99225784b59506
[ "MIT" ]
20
2020-10-20T20:55:51.000Z
2021-11-18T16:26:49.000Z
benchmarks/pytorch_alexnet_inference.py
d3dave/python-macrobenchmarks
ee52cce1af120f543ce3e2f6bc99225784b59506
[ "MIT" ]
2
2021-11-17T18:37:27.000Z
2022-03-22T20:26:24.000Z
benchmarks/pytorch_alexnet_inference.py
d3dave/python-macrobenchmarks
ee52cce1af120f543ce3e2f6bc99225784b59506
[ "MIT" ]
4
2020-10-30T15:09:37.000Z
2022-02-12T00:12:12.000Z
import json import time import torch import urllib import sys if __name__ == "__main__": start = time.time() model = torch.hub.load('pytorch/vision:v0.6.0', 'alexnet', pretrained=True) # assert time.time() - start < 3, "looks like we just did the first-time download, run this benchmark again to get a clean...
31.659091
131
0.613065
0cd1d7ce809f4555127103b9f2ebc53cd22fdca6
2,885
py
Python
Curso Python Completo - Udemy/Teste/core/poo1.py
Cauenumo/Python
6414ee2013c651e9d45cd328a381a476c6c9073b
[ "Apache-2.0" ]
null
null
null
Curso Python Completo - Udemy/Teste/core/poo1.py
Cauenumo/Python
6414ee2013c651e9d45cd328a381a476c6c9073b
[ "Apache-2.0" ]
null
null
null
Curso Python Completo - Udemy/Teste/core/poo1.py
Cauenumo/Python
6414ee2013c651e9d45cd328a381a476c6c9073b
[ "Apache-2.0" ]
null
null
null
# class Circle(object): # pi = 3.14 # # O crculo instanciado com um raio (o padro 1) # def __init__(self, radius=1): # self.radius = radius # # Mtodo de clculo da rea. Observe o uso de si mesmo. # def area(self): # return self.radius * self.radius * Circle.pi # # Mtodo que ...
20.316901
64
0.533449
0cd346f1de289a9e93d3b25b5635b78a4192c096
1,126
py
Python
gen-raw-logs.py
lightoyou/grapl
77488059891091e5656254ee15efef038a1b46a7
[ "Apache-2.0" ]
null
null
null
gen-raw-logs.py
lightoyou/grapl
77488059891091e5656254ee15efef038a1b46a7
[ "Apache-2.0" ]
null
null
null
gen-raw-logs.py
lightoyou/grapl
77488059891091e5656254ee15efef038a1b46a7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python try: from typing import Any, Dict, Union, Optional except: pass import time import string import boto3 import random import zstd import sys if __name__ == '__main__': if len(sys.argv) != 2: raise Exception("Provide bucket prefix as first argument") else: main(...
22.078431
72
0.571936
0cd35d400b8ba8d38cccab4e5289309cd18ed0ce
2,773
py
Python
src/bot/lib/economy/economy.py
rdunc/rybot
ec3bf6159e095b53e69f6f81af9f10739c180b42
[ "MIT" ]
1
2016-01-11T02:10:05.000Z
2016-01-11T02:10:05.000Z
src/bot/lib/economy/economy.py
rdunc/RyBot
ec3bf6159e095b53e69f6f81af9f10739c180b42
[ "MIT" ]
null
null
null
src/bot/lib/economy/economy.py
rdunc/RyBot
ec3bf6159e095b53e69f6f81af9f10739c180b42
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import requests, json, threading, sys import collections, os, time from bot.lib.economy import EconomyInit from bot.lib.core.benchmark import Benchmark from bot.lib.core.log import Log from bot.helpers.color_helper import ColorHelper from bot.helpers.rybot_helper import RyBotHelper fr...
39.056338
141
0.582402
0cd7b71bf7de36ad8722f58dc56d94db5fb81535
827
py
Python
python/mapper.py
qoofyk/zipper
c1d77448f8d479f9ef4bf785d49cf2b41da09130
[ "BSD-3-Clause" ]
null
null
null
python/mapper.py
qoofyk/zipper
c1d77448f8d479f9ef4bf785d49cf2b41da09130
[ "BSD-3-Clause" ]
null
null
null
python/mapper.py
qoofyk/zipper
c1d77448f8d479f9ef4bf785d49cf2b41da09130
[ "BSD-3-Clause" ]
null
null
null
import sys import math # run like python 3 mapper.py 3 ip1 ip2 ip3 ip4... if __name__ == "__main__": #print("Running: ", sys.argv) #print("Number of arguments: ", len(sys.argv)) mpi_size = int(sys.argv[1]) endpoint_list = sys.argv[2:] #print("The endpoints are: " , endpoint_list) generate_endp...
35.956522
79
0.71705
0cd87ef313939da59162ef6b202deb04d9ca957b
7,079
py
Python
src/deepcover.py
nce11/deepcover
129488e3593f8d69e352be1e613f44480e4033e6
[ "BSD-3-Clause" ]
25
2018-03-14T21:23:00.000Z
2021-11-22T14:06:20.000Z
src/deepcover.py
nce11/deepcover
129488e3593f8d69e352be1e613f44480e4033e6
[ "BSD-3-Clause" ]
1
2022-03-13T07:15:15.000Z
2022-03-14T10:29:50.000Z
src/deepcover.py
nce11/deepcover
129488e3593f8d69e352be1e613f44480e4033e6
[ "BSD-3-Clause" ]
18
2018-03-14T19:20:45.000Z
2022-02-16T18:33:10.000Z
from keras.preprocessing import image from keras.applications import vgg16 from keras.applications.vgg16 import VGG16 from keras.applications import inception_v3, mobilenet, xception from keras.models import load_model import matplotlib.pyplot as plt import csv import argparse import os import numpy as np from utils...
44.24375
114
0.676508
0cdb931bc3d4d0011e0c24642dc040bbe2b51af1
8,924
py
Python
phigaro/cli/batch.py
bobeobibo/phigaro
342a3454bb5324426b25feb4a4d1f640b58bf8f8
[ "MIT" ]
31
2019-03-06T14:33:37.000Z
2022-03-08T07:16:07.000Z
phigaro/cli/batch.py
bobeobibo/phigaro
342a3454bb5324426b25feb4a4d1f640b58bf8f8
[ "MIT" ]
27
2019-05-17T05:06:58.000Z
2022-03-27T00:38:56.000Z
phigaro/cli/batch.py
bobeobibo/phigaro
342a3454bb5324426b25feb4a4d1f640b58bf8f8
[ "MIT" ]
12
2017-08-23T12:48:38.000Z
2021-06-24T00:57:22.000Z
from __future__ import absolute_import import argparse import logging import multiprocessing import os import sys import uuid from os.path import join, exists import yaml from phigaro.context import Context from phigaro.batch.runner import run_tasks_chain from phigaro.batch.task.path import sample_name from phigaro....
33.174721
296
0.61766
0cdb9744480da6f8e1b4899b7fcf04b7238e340b
1,551
py
Python
MachineLearning.BayesianNetwork/python-imp/bayes_core.py
JillyMan/decision-tree
8e2efc914aaade9cc97a2c94052bc909e50fdb48
[ "MIT" ]
null
null
null
MachineLearning.BayesianNetwork/python-imp/bayes_core.py
JillyMan/decision-tree
8e2efc914aaade9cc97a2c94052bc909e50fdb48
[ "MIT" ]
1
2019-12-29T13:49:52.000Z
2019-12-29T13:49:52.000Z
MachineLearning.BayesianNetwork/python-imp/bayes_core.py
JillyMan/MachineLerningFramework
8e2efc914aaade9cc97a2c94052bc909e50fdb48
[ "MIT" ]
null
null
null
import math RangeType = 'Range' BinaryType = 'Binary' def phe_func(p, pp, pm): return (p * pp) / (p * pp + (1-p) * pm) def calc_probs(pp, pm, p): phe = phe_func(p, pp, pm) phne = phe_func(p, 1 - pp, 1 - pm) return (phe, phne) def lerp(start, end, t): return start + (end - start) * t def inte...
23.149254
54
0.588008
0cdc773a241a8d2d5331293406b95caeb6731f44
926
py
Python
tests/test_load_bin_log.py
bols-blue-org/pid_evaluation
af210f2ef7ca49681ff41f4531cfcbd83d70aca0
[ "MIT" ]
1
2020-08-27T06:30:53.000Z
2020-08-27T06:30:53.000Z
tests/test_load_bin_log.py
bols-blue-org/ape
af210f2ef7ca49681ff41f4531cfcbd83d70aca0
[ "MIT" ]
null
null
null
tests/test_load_bin_log.py
bols-blue-org/ape
af210f2ef7ca49681ff41f4531cfcbd83d70aca0
[ "MIT" ]
null
null
null
import unittest from ape.load_bin_log import LoadBinLog if __name__ == '__main__': unittest.main()
31.931034
92
0.637149
0cdcd31b1d541c0b2fc7fa87f9fe6a1fb877291b
4,997
py
Python
rdsslib/kinesis/client.py
JiscSD/rdss-shared-libraries
cf07cad3f176ef8be1410fc29b240fb4791e607a
[ "Apache-2.0" ]
null
null
null
rdsslib/kinesis/client.py
JiscSD/rdss-shared-libraries
cf07cad3f176ef8be1410fc29b240fb4791e607a
[ "Apache-2.0" ]
4
2018-02-15T12:32:26.000Z
2018-03-06T16:33:34.000Z
rdsslib/kinesis/client.py
JiscSD/rdss-shared-libraries
cf07cad3f176ef8be1410fc29b240fb4791e607a
[ "Apache-2.0" ]
1
2018-03-13T19:38:54.000Z
2018-03-13T19:38:54.000Z
import json import logging from .errors import MaxRetriesExceededException, DecoratorApplyException MAX_ATTEMPTS = 6
39.346457
79
0.626976
0cdd0af2f9cdd4f1682dfeb1a35ec8ea6569dc39
516
py
Python
offer/10-qing-wa-tiao-tai-jie-wen-ti-lcof.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
2
2021-03-14T11:38:26.000Z
2021-03-14T11:38:30.000Z
offer/10-qing-wa-tiao-tai-jie-wen-ti-lcof.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
null
null
null
offer/10-qing-wa-tiao-tai-jie-wen-ti-lcof.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
1
2022-01-17T19:33:23.000Z
2022-01-17T19:33:23.000Z
''' Offer 10- II. 12 n 1e9+710000000071000000008 1 0 <= n <= 100 ''' ''' : ''' s = Solution() print(s.numWays(2)) print(s.numWays(5)) print(s.numWays(0)) print(s.numWays(7))
15.636364
71
0.560078
0cddc6fcdac1a04a9f2296ecc74335e532a712c0
2,624
py
Python
recipes/libmount/all/conanfile.py
KristianJerpetjon/conan-center-index
f368200c30fb3be44862e2e709be990d0db4d30e
[ "MIT" ]
null
null
null
recipes/libmount/all/conanfile.py
KristianJerpetjon/conan-center-index
f368200c30fb3be44862e2e709be990d0db4d30e
[ "MIT" ]
1
2019-11-26T10:55:31.000Z
2019-11-26T10:55:31.000Z
recipes/libmount/all/conanfile.py
KristianJerpetjon/conan-center-index
f368200c30fb3be44862e2e709be990d0db4d30e
[ "MIT" ]
1
2019-10-31T19:29:14.000Z
2019-10-31T19:29:14.000Z
from conans import ConanFile, tools, AutoToolsBuildEnvironment from conans.errors import ConanInvalidConfiguration import os
43.733333
161
0.651296
0cde288694905dadb83458256a681e9a26cd9df7
36,246
py
Python
code/tmp_rtrip/nntplib.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/nntplib.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/nntplib.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
"""An NNTP client class based on: - RFC 977: Network News Transfer Protocol - RFC 2980: Common NNTP Extensions - RFC 3977: Network News Transfer Protocol (version 2) Example: >>> from nntplib import NNTP >>> s = NNTP('news') >>> resp, count, first, last, name = s.group('comp.lang.python') >>> print('Group', name, 'ha...
36.20979
89
0.580202
0cde5c372756830b141e6816281e99f572d9eff3
3,463
py
Python
tests/required_with_test.py
roypeters/spotlight
f23818cf7b49aa7a31200c1945ebc2d91656156e
[ "MIT" ]
9
2019-03-26T13:21:16.000Z
2021-03-21T08:55:49.000Z
tests/required_with_test.py
roypeters/spotlight
f23818cf7b49aa7a31200c1945ebc2d91656156e
[ "MIT" ]
7
2019-03-28T17:32:03.000Z
2021-09-24T13:17:32.000Z
tests/required_with_test.py
roypeters/spotlight
f23818cf7b49aa7a31200c1945ebc2d91656156e
[ "MIT" ]
4
2019-03-30T13:28:22.000Z
2020-06-15T13:15:44.000Z
from src.spotlight.errors import REQUIRED_WITH_ERROR from .validator_test import ValidatorTest
32.064815
86
0.626047
0cde6e9d59bff904867397a498cf0cce96687bf3
3,194
py
Python
default-approach/data-collection/harpers-data/scraper_scripts/get-harpers-links.py
the-browser/recommending-interesting-writing
9ff4771d3f437d33c26d2f306e393b5a90a04878
[ "MIT" ]
5
2020-09-17T17:56:21.000Z
2021-11-03T02:40:27.000Z
default-approach/data-collection/harpers-data/scraper_scripts/get-harpers-links.py
the-browser/recommending-interesting-writing
9ff4771d3f437d33c26d2f306e393b5a90a04878
[ "MIT" ]
null
null
null
default-approach/data-collection/harpers-data/scraper_scripts/get-harpers-links.py
the-browser/recommending-interesting-writing
9ff4771d3f437d33c26d2f306e393b5a90a04878
[ "MIT" ]
1
2020-11-01T11:37:38.000Z
2020-11-01T11:37:38.000Z
BASE_URL="https://harpers.org/sections/readings/page/" N_ARTICLE_LINK_PAGES = 50 OUTPUT_FILE = 'harpers-later-urls.json' WORKER_THREADS = 32 import json import datetime import dateutil.parser from dataclasses import dataclass from dataclasses_json import dataclass_json from datetime import datetime from newspaper imp...
31.313725
114
0.60551
0cdee741020f9cadb35d114ce192b7140ac463d7
8,711
py
Python
rulm/models/neural_net/encoder_only.py
IlyaGusev/rulm
4e78a495eba6cd6ea1fea839463c8145ed7051f2
[ "Apache-2.0" ]
null
null
null
rulm/models/neural_net/encoder_only.py
IlyaGusev/rulm
4e78a495eba6cd6ea1fea839463c8145ed7051f2
[ "Apache-2.0" ]
null
null
null
rulm/models/neural_net/encoder_only.py
IlyaGusev/rulm
4e78a495eba6cd6ea1fea839463c8145ed7051f2
[ "Apache-2.0" ]
null
null
null
from typing import Dict import numpy as np import torch from torch.nn.functional import linear, log_softmax, embedding from torch.nn import Dropout, LogSoftmax, NLLLoss from allennlp.common import Params from allennlp.models.model import Model from allennlp.data.vocabulary import Vocabulary, DEFAULT_PADDING_TOKEN from...
44.218274
105
0.630926
0cdf83ec2ee6735ac3ecbd989380ce0f87917a5d
102
py
Python
api/queries/models.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/queries/models.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/queries/models.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
from api.cases.models import Case
10.2
33
0.588235
0cdfbe0659d37b3cc8cc00e18f2f0edb48d21d4a
3,410
py
Python
src/scs_airnow/cmd/cmd_csv_join.py
south-coast-science/scs_airnow
7f0657bd434aa3abe667f58bc971edaa00d0c24c
[ "MIT" ]
null
null
null
src/scs_airnow/cmd/cmd_csv_join.py
south-coast-science/scs_airnow
7f0657bd434aa3abe667f58bc971edaa00d0c24c
[ "MIT" ]
null
null
null
src/scs_airnow/cmd/cmd_csv_join.py
south-coast-science/scs_airnow
7f0657bd434aa3abe667f58bc971edaa00d0c24c
[ "MIT" ]
null
null
null
""" Created on 22 Feb 2019 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) source repo: scs_analysis """ import optparse # --------------------------------------------------------------------------------------------------------------------
31.284404
118
0.509091
0ce058cd8a6d65a8bc31474a1e02dc8c29923fe6
338
py
Python
test/receive_message.py
unknown-admin/easymq
e29b8f63402e385059ff8c263b0e7bb8e9fbd24b
[ "Apache-2.0" ]
1
2020-04-20T14:01:34.000Z
2020-04-20T14:01:34.000Z
test/receive_message.py
unknown-admin/easymq
e29b8f63402e385059ff8c263b0e7bb8e9fbd24b
[ "Apache-2.0" ]
null
null
null
test/receive_message.py
unknown-admin/easymq
e29b8f63402e385059ff8c263b0e7bb8e9fbd24b
[ "Apache-2.0" ]
1
2022-02-18T08:18:08.000Z
2022-02-18T08:18:08.000Z
import os from easymq.mq import MQ mq = MQ( mq_user=os.environ.get("mq_user"), password=os.environ.get("password"), host_and_ports=[ (os.environ.get("host"), os.environ.get("port")), ], func=receive, queue_name="/queue/test_queue", ) mq.receive()
16.095238
57
0.612426
0ce0840b66e590ef2a41c729b631412a225153c7
12,383
py
Python
test/unit/agent/common/util/text.py
dp92987/nginx-amplify-agent
1b2eed6eab52a82f35974928d75044451b4bedaf
[ "BSD-2-Clause" ]
308
2015-11-17T13:15:33.000Z
2022-03-24T12:03:40.000Z
test/unit/agent/common/util/text.py
dp92987/nginx-amplify-agent
1b2eed6eab52a82f35974928d75044451b4bedaf
[ "BSD-2-Clause" ]
211
2015-11-16T15:27:41.000Z
2022-03-28T16:20:15.000Z
test/unit/agent/common/util/text.py
dp92987/nginx-amplify-agent
1b2eed6eab52a82f35974928d75044451b4bedaf
[ "BSD-2-Clause" ]
80
2015-11-16T18:20:30.000Z
2022-03-02T12:47:56.000Z
# -*- coding: utf-8 -*- from hamcrest import * from test.base import BaseTestCase from amplify.agent.common.util.text import ( decompose_format, parse_line, parse_line_split ) __author__ = "Grant Hulegaard" __copyright__ = "Copyright (C) Nginx, Inc. All rights reserved." __license__ = "" __maintainer__ = "Grant...
42.407534
115
0.605023
0ce1ead7fccfec4e0bc42fdbdc128b022ce3b62a
9,982
py
Python
test/adb_test.py
bugobliterator/python-adb
2f4f5bcdf5dab5ccf8bf58ff9e91cde4d134f1c0
[ "Apache-2.0" ]
1,549
2015-01-04T04:45:48.000Z
2022-03-31T08:01:59.000Z
test/adb_test.py
bugobliterator/python-adb
2f4f5bcdf5dab5ccf8bf58ff9e91cde4d134f1c0
[ "Apache-2.0" ]
174
2015-01-04T04:47:39.000Z
2022-03-24T10:42:12.000Z
test/adb_test.py
bugobliterator/python-adb
2f4f5bcdf5dab5ccf8bf58ff9e91cde4d134f1c0
[ "Apache-2.0" ]
356
2015-01-09T10:10:33.000Z
2022-03-27T19:25:01.000Z
#!/usr/bin/env python # Copyright 2014 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 ...
31.588608
102
0.696053
0ce32973b15677a9edaeef840f01f4ffb57eb837
6,149
py
Python
06_Statistik_und_Wahrscheinlichkeiten/Aufgabe.py
felixdittrich92/numerisches_python
0f895ee19b4fa3cf7ad38cd3dfe3cd7020ee34a7
[ "MIT" ]
null
null
null
06_Statistik_und_Wahrscheinlichkeiten/Aufgabe.py
felixdittrich92/numerisches_python
0f895ee19b4fa3cf7ad38cd3dfe3cd7020ee34a7
[ "MIT" ]
null
null
null
06_Statistik_und_Wahrscheinlichkeiten/Aufgabe.py
felixdittrich92/numerisches_python
0f895ee19b4fa3cf7ad38cd3dfe3cd7020ee34a7
[ "MIT" ]
null
null
null
from random import randint import numpy as np from collections import Counter from pprint import pprint import time # Aufgaben Siehe Buch print('-------------Aufgabe 1-------------') outcomes = [ randint(1,6) for _ in range(10000)] even_pips = [ x for x in outcomes if x % 2 == 0] greater_two = [ x for x in outcomes i...
29.5625
83
0.643031
0ce58d7de1508c5e2496368e37a432c416830c42
2,183
py
Python
lib_dsp/iir/iir/design/iir.py
PyGears/lib-dsp
a4c80882f5188799233dc9108f91faa4bab0ac57
[ "MIT" ]
3
2019-08-26T17:32:33.000Z
2022-03-19T02:05:02.000Z
pygears_dsp/lib/iir.py
bogdanvuk/pygears-dsp
ca107d3f9e8d02023e9ccd27f7bc95f10b5aa995
[ "MIT" ]
null
null
null
pygears_dsp/lib/iir.py
bogdanvuk/pygears-dsp
ca107d3f9e8d02023e9ccd27f7bc95f10b5aa995
[ "MIT" ]
5
2019-09-18T18:00:13.000Z
2022-03-28T11:07:26.000Z
from pygears import gear, Intf from pygears.lib import dreg, decouple, saturate, qround
24.255556
117
0.601466
0ce5cb9e4bc10393a6546a397038a2d745082f63
3,752
py
Python
read_iceye_h5.py
eciraci/iceye_gamma_proc
68b04bfd55082862f419031c28e7b52f1800f3db
[ "MIT" ]
null
null
null
read_iceye_h5.py
eciraci/iceye_gamma_proc
68b04bfd55082862f419031c28e7b52f1800f3db
[ "MIT" ]
null
null
null
read_iceye_h5.py
eciraci/iceye_gamma_proc
68b04bfd55082862f419031c28e7b52f1800f3db
[ "MIT" ]
null
null
null
#!/usr/bin/env python u""" read_iceye_h5.py Written by Enrico Ciraci' (03/2022) Read ICEYE Single Look Complex and Parameter file using GAMMA's Python integration with the py_gamma module. usage: read_iceye_h5.py [-h] [--directory DIRECTORY] TEST: Read ICEye Single Look Complex and Parameter. optional arguments: ...
36.076923
81
0.63033
0ce5d95f10a05417cb3b6fc154c24d7adc27cf45
1,877
py
Python
scripts/baxter_find_tf.py
mkrizmancic/qlearn_baxter
0498315212cacb40334cbb97a858c6ba317f52a3
[ "MIT" ]
4
2017-11-11T18:16:22.000Z
2018-11-08T13:31:09.000Z
scripts/baxter_find_tf.py
mkrizmancic/qlearn_baxter
0498315212cacb40334cbb97a858c6ba317f52a3
[ "MIT" ]
null
null
null
scripts/baxter_find_tf.py
mkrizmancic/qlearn_baxter
0498315212cacb40334cbb97a858c6ba317f52a3
[ "MIT" ]
2
2019-09-04T12:28:58.000Z
2021-09-27T13:02:48.000Z
#!/usr/bin/env python """Calculate transformation matrices and broadcast transform from robot's base to head markers.""" import rospy import tf import math from PyKDL import Vector, Frame, Rotation if __name__ == '__main__': rospy.init_node('baxter_find_transformation') listener = tf.TransformListener() b...
39.93617
104
0.64731
0ce7201689d9142cf85fb513dc2bf55a86b13523
475
py
Python
car/migrations/0004_sale_cc.py
jobkarani/carnect
8675d025e56fc07439b88e873e72a21cbbe747a9
[ "MIT" ]
null
null
null
car/migrations/0004_sale_cc.py
jobkarani/carnect
8675d025e56fc07439b88e873e72a21cbbe747a9
[ "MIT" ]
null
null
null
car/migrations/0004_sale_cc.py
jobkarani/carnect
8675d025e56fc07439b88e873e72a21cbbe747a9
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2022-01-10 12:39 from django.db import migrations, models import django.utils.timezone
22.619048
86
0.621053
0ce7e95642a1dd2c0010de92c604aaf0452e7669
509
py
Python
src/prepare_data/task_prepare_r_effective_by_rki.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
4
2021-04-24T14:43:47.000Z
2021-07-03T14:05:21.000Z
src/prepare_data/task_prepare_r_effective_by_rki.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
4
2021-04-27T10:34:45.000Z
2021-08-31T16:40:28.000Z
src/prepare_data/task_prepare_r_effective_by_rki.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
null
null
null
import pandas as pd import pytask from src.config import BLD
29.941176
85
0.732809
0ce87ae6e8e21068ebe0de253baf4eb583ece22f
701
py
Python
conv.py
aenco9/HCAP2021
d194ba5eab7e361d67f6de3c62f9f17f896ebcf3
[ "MIT" ]
null
null
null
conv.py
aenco9/HCAP2021
d194ba5eab7e361d67f6de3c62f9f17f896ebcf3
[ "MIT" ]
null
null
null
conv.py
aenco9/HCAP2021
d194ba5eab7e361d67f6de3c62f9f17f896ebcf3
[ "MIT" ]
null
null
null
import numpy as np def convolucion(Ioriginal, kernel): '''Mtodo encargado de realizar una convolucin a una imagen Entrada: Ioriginal - imagen original en forma de matrz kernel - kernel para barrer la imagen Salida: res - imagen resultante''' #fr - filas, cr - columnas fr = len(Ioriginal)-(len(kernel)-1) cr =...
26.961538
61
0.664765
0ce8bde6ed2f1bdf025074aeab207999685d2edc
1,124
py
Python
setup.py
viatoriche/vtr_utils
d877a97eabf57246cd73e975da5c56d6a343bba4
[ "MIT" ]
null
null
null
setup.py
viatoriche/vtr_utils
d877a97eabf57246cd73e975da5c56d6a343bba4
[ "MIT" ]
null
null
null
setup.py
viatoriche/vtr_utils
d877a97eabf57246cd73e975da5c56d6a343bba4
[ "MIT" ]
null
null
null
import os from distutils.core import setup from setuptools import find_packages package = 'vtr_utils' version = "0.1.0" packages = find_packages() def get_package_data(package): """ Return all files under the root package, that are not in a package themselves. """ walk = [(dirpath.replace(packag...
28.820513
86
0.662811
0ce945d91f14b7115bc5eeecc89a0cbddf6f0ae2
2,925
py
Python
radical_translations/agents/tests/test_models.py
kingsdigitallab/radical_translations
c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a
[ "MIT" ]
3
2022-02-08T18:03:44.000Z
2022-03-18T18:10:43.000Z
radical_translations/agents/tests/test_models.py
kingsdigitallab/radical_translations
c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a
[ "MIT" ]
19
2020-05-11T15:36:35.000Z
2022-02-08T11:26:40.000Z
radical_translations/agents/tests/test_models.py
kingsdigitallab/radical_translations
c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a
[ "MIT" ]
null
null
null
from collections import defaultdict import pytest from radical_translations.agents.models import Organisation, Person pytestmark = pytest.mark.django_db
31.793478
85
0.624274
0ce95b5923e81e3d937258cb29b18f328d097198
1,557
py
Python
addons/website_sale_coupon/controllers/main.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/website_sale_coupon/controllers/main.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/website_sale_coupon/controllers/main.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import http from odoo.addons.website_sale.controllers.main import WebsiteSale from odoo.http import request
42.081081
95
0.680154
0ce9ddf8982fdd13b64038e356850186f884758e
4,462
py
Python
go/apps/http_api/tests/test_views.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/apps/http_api/tests/test_views.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/apps/http_api/tests/test_views.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
from go.apps.tests.view_helpers import AppViewsHelper from go.base.tests.helpers import GoDjangoTestCase
40.93578
72
0.61385
0ceb15471ca6941f1a3c2803a1bcd3575ac7f39e
5,306
py
Python
PyPowerStore/utils/helpers.py
dell/python-powerstore
04d6d73e4c926cf0d347cf68b24f8f11ff80f565
[ "Apache-2.0" ]
15
2020-05-06T23:46:44.000Z
2021-12-14T08:04:48.000Z
PyPowerStore/utils/helpers.py
dell/python-powerstore
04d6d73e4c926cf0d347cf68b24f8f11ff80f565
[ "Apache-2.0" ]
2
2020-06-09T15:19:25.000Z
2020-08-18T18:58:59.000Z
PyPowerStore/utils/helpers.py
dell/python-powerstore
04d6d73e4c926cf0d347cf68b24f8f11ff80f565
[ "Apache-2.0" ]
5
2020-05-06T23:46:22.000Z
2021-05-08T03:03:07.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2019-2021, Dell EMC """Helper module for PowerStore""" import logging from pkg_resources import parse_version provisioning_obj = None def prepare_querystring(*query_arguments, **kw_query_arguments): """Prepare a querystring dict containing all query_arguments and kw...
35.373333
78
0.602714
0ceb7ee6367f4094900b7a7ad37575ea6ba9548d
5,680
py
Python
minidump/streams/MiscInfoStream.py
lucasg/minidump
18474e3221038abe866256e4e0eb255e33615110
[ "MIT" ]
1
2021-06-13T10:00:44.000Z
2021-06-13T10:00:44.000Z
minidump/streams/MiscInfoStream.py
lucasg/minidump
18474e3221038abe866256e4e0eb255e33615110
[ "MIT" ]
null
null
null
minidump/streams/MiscInfoStream.py
lucasg/minidump
18474e3221038abe866256e4e0eb255e33615110
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # import io import enum #https://msdn.microsoft.com/en-us/library/windows/desktop/ms680388(v=vs.85).aspx # https://msdn.microsoft.com/en-us/library/windows/desktop/ms680389(v=vs.85).aspx # https://msdn.microsoft.com/en-us/library/windows/desktop/ms680389(v=...
42.074074
170
0.757394
0cec7a7b14ee446e6efc190805ad0c86fcf9567d
2,565
py
Python
test/python/transpiler/test_transpile.py
filemaster/qiskit-terra
8672c407a5a0e34405315f82d5ad5847916e857e
[ "Apache-2.0" ]
null
null
null
test/python/transpiler/test_transpile.py
filemaster/qiskit-terra
8672c407a5a0e34405315f82d5ad5847916e857e
[ "Apache-2.0" ]
null
null
null
test/python/transpiler/test_transpile.py
filemaster/qiskit-terra
8672c407a5a0e34405315f82d5ad5847916e857e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # pylint: disable=redefined-builtin """Tests basic functionality of the transpile function""" from qiskit import QuantumReg...
34.2
100
0.665107
0cee3a5d83fc06ee8d80703cbf5bab61011eb8f9
7,039
py
Python
repiko/module/calculator.py
liggest/RepiKoBot
5a2aa511e747785ad341c60d809af2a2788963ab
[ "MIT" ]
1
2021-07-29T13:23:58.000Z
2021-07-29T13:23:58.000Z
repiko/module/calculator.py
liggest/RepiKoBot
5a2aa511e747785ad341c60d809af2a2788963ab
[ "MIT" ]
null
null
null
repiko/module/calculator.py
liggest/RepiKoBot
5a2aa511e747785ad341c60d809af2a2788963ab
[ "MIT" ]
null
null
null
import random #x=Calculator() #a=input() #r=x.cal([a,a+"\n"]) #print(r[1][:-1]) #if r[0]=="error": # print("error") #print(x.dicetext(a,""))
36.661458
76
0.356016
0cf0a226855cb91425b2c33151d95bfc025b95b0
624
py
Python
tests/retrieve/test_segment.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
5
2021-03-02T09:04:07.000Z
2022-01-25T09:58:16.000Z
tests/retrieve/test_segment.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
229
2020-09-30T15:08:39.000Z
2022-03-31T14:23:55.000Z
tests/retrieve/test_segment.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
null
null
null
# import os # import uuid # import numpy as np # import pandas as pd # import pytest # mocked_uuid = "00000000-0000-1111-00000-000000000000" # @pytest.fixture(scope="session") # def data(): # filename = "bsd.picarro.1minute.248m.dat" # dir_path = os.path.dirname(__file__) # test_data = "../data/proc_t...
21.517241
71
0.674679
0cf19d7af68dc81b523b12d529be9b1094af28ac
891
py
Python
setup.py
jjhelmus/break_my_python
4f8165fa3ae2bbe72b21f49156598387ee18b94a
[ "BSD-3-Clause" ]
null
null
null
setup.py
jjhelmus/break_my_python
4f8165fa3ae2bbe72b21f49156598387ee18b94a
[ "BSD-3-Clause" ]
null
null
null
setup.py
jjhelmus/break_my_python
4f8165fa3ae2bbe72b21f49156598387ee18b94a
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name='break_my_python', version='0.0.2', description='This package tries to breaks your python interpreter, do not install it', long_description=long_description, author='Jonathan J. Helmus', autho...
31.821429
90
0.655443
0cf1bfd01d728cb0a54ff17ffb5bf2c3afbfaf92
12,039
py
Python
n4ofunc/comp.py
noaione/n4ofunc
81a69de67284f9685d1f88cb34f7d3d2d0ce19c1
[ "MIT" ]
4
2018-05-28T05:05:01.000Z
2020-03-24T15:01:24.000Z
n4ofunc/comp.py
noaione/n4ofunc
81a69de67284f9685d1f88cb34f7d3d2d0ce19c1
[ "MIT" ]
null
null
null
n4ofunc/comp.py
noaione/n4ofunc
81a69de67284f9685d1f88cb34f7d3d2d0ce19c1
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020-present noaione 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, publis...
35.201754
110
0.631614
0cf20d68ff93bb50029ab4621417fc5c929819f7
11,612
py
Python
mpas_analysis/ocean/time_series_sst.py
alicebarthel/MPAS-Analysis
a8c568180abf96879e890a73e848db58642cfdb6
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
mpas_analysis/ocean/time_series_sst.py
alicebarthel/MPAS-Analysis
a8c568180abf96879e890a73e848db58642cfdb6
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
mpas_analysis/ocean/time_series_sst.py
alicebarthel/MPAS-Analysis
a8c568180abf96879e890a73e848db58642cfdb6
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# This software is open source software available under the BSD-3 license. # # Copyright (c) 2020 Triad National Security, LLC. All rights reserved. # Copyright (c) 2020 Lawrence Livermore National Security, LLC. All rights # reserved. # Copyright (c) 2020 UT-Battelle, LLC. All rights reserved. # # Additional copyright...
38.072131
79
0.577678
0cf233053cbaff62ed1842427e42c01b9e93c0c4
3,682
py
Python
codes/data_scripts/test_dataloader.py
DengpanFu/mmsr
addfabdaee86d2f9e41988dcfe92a817c5efe7ab
[ "Apache-2.0" ]
null
null
null
codes/data_scripts/test_dataloader.py
DengpanFu/mmsr
addfabdaee86d2f9e41988dcfe92a817c5efe7ab
[ "Apache-2.0" ]
null
null
null
codes/data_scripts/test_dataloader.py
DengpanFu/mmsr
addfabdaee86d2f9e41988dcfe92a817c5efe7ab
[ "Apache-2.0" ]
null
null
null
import sys import os.path as osp import math import torchvision.utils sys.path.append(osp.dirname(osp.dirname(osp.abspath(__file__)))) from data import create_dataloader, create_dataset # noqa: E402 from utils import util # noqa: E402 if __name__ == "__main__": main()
35.066667
99
0.528246
0cf243e0f912db385063a422e6bbf35dbe9d0972
3,663
py
Python
python/iceberg/api/transforms/transforms.py
moulimukherjee/incubator-iceberg
bf7edc4b325df6dd80d86fea0149d2be0ad09468
[ "Apache-2.0" ]
58
2019-09-10T20:51:26.000Z
2022-03-22T11:06:09.000Z
python/iceberg/api/transforms/transforms.py
moulimukherjee/incubator-iceberg
bf7edc4b325df6dd80d86fea0149d2be0ad09468
[ "Apache-2.0" ]
292
2019-07-23T04:33:18.000Z
2021-07-26T04:28:22.000Z
python/iceberg/api/transforms/transforms.py
moulimukherjee/incubator-iceberg
bf7edc4b325df6dd80d86fea0149d2be0ad09468
[ "Apache-2.0" ]
26
2019-08-28T23:59:03.000Z
2022-03-04T08:54:08.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.705357
78
0.65329
0cf5f33e0cfd554440d95e9093a443f85242c9cf
3,067
py
Python
biocodes/re_eval.py
yjc9696/biobert-my
ffc11c91f7032cffbcc7d9526159f0ff8e08c1f3
[ "Apache-2.0" ]
null
null
null
biocodes/re_eval.py
yjc9696/biobert-my
ffc11c91f7032cffbcc7d9526159f0ff8e08c1f3
[ "Apache-2.0" ]
3
2020-11-13T17:48:47.000Z
2022-02-09T23:43:16.000Z
biocodes/re_eval.py
yjc9696/biobert-my
ffc11c91f7032cffbcc7d9526159f0ff8e08c1f3
[ "Apache-2.0" ]
null
null
null
import argparse import numpy as np import pandas as pd import sklearn.metrics import sklearn.metrics parser = argparse.ArgumentParser(description='') parser.add_argument('--output_path', type=str, help='') parser.add_argument('--answer_path', type=str, help='') parser.add_argument('--task', type=str, default="binary"...
41.445946
164
0.661559
0cf776032667c66aa9047465a936c18e4c0e130b
99
py
Python
mysite/ChainLicense/apps.py
Hwieun/ChainLicense
35d552ff1cfd056584a54b946999ff287e87d8ad
[ "Apache-2.0" ]
2
2019-09-23T01:55:46.000Z
2019-11-08T16:33:47.000Z
mysite/ChainLicense/apps.py
Hwieun/ChainLicense
35d552ff1cfd056584a54b946999ff287e87d8ad
[ "Apache-2.0" ]
1
2019-10-07T01:11:55.000Z
2019-10-07T01:11:55.000Z
mysite/ChainLicense/apps.py
Hwieun/ChainLicense
35d552ff1cfd056584a54b946999ff287e87d8ad
[ "Apache-2.0" ]
1
2019-09-24T06:22:30.000Z
2019-09-24T06:22:30.000Z
from django.apps import AppConfig
16.5
36
0.777778
0cf9f78c1ecb148ea8cc9e86512596f09bae6846
1,403
py
Python
tests/test_find_deployment.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
6
2016-10-10T09:26:07.000Z
2018-09-20T08:59:42.000Z
tests/test_find_deployment.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
11
2016-10-10T12:11:07.000Z
2018-05-09T22:11:02.000Z
tests/test_find_deployment.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
16
2016-09-28T16:00:58.000Z
2019-02-25T16:52:12.000Z
# Copyright (c) Trainline Limited, 2016-2017. All rights reserved. See LICENSE.txt in the project root for license information. from os.path import join import unittest from mock import patch from agent.find_deployment import find_deployment_dir_win
48.37931
127
0.726301
0cfa89782c8d3290c0c6ceba7319a0449a110fed
2,585
py
Python
model/embeddings.py
johnnytorres/crisis_conv_crosslingual
a30e762007e08190275bdd83af3c0bbc717fb516
[ "MIT" ]
null
null
null
model/embeddings.py
johnnytorres/crisis_conv_crosslingual
a30e762007e08190275bdd83af3c0bbc717fb516
[ "MIT" ]
null
null
null
model/embeddings.py
johnnytorres/crisis_conv_crosslingual
a30e762007e08190275bdd83af3c0bbc717fb516
[ "MIT" ]
1
2019-12-03T00:29:14.000Z
2019-12-03T00:29:14.000Z
import os import logging import argparse import numpy as np import tensorflow as tf from keras_preprocessing.text import Tokenizer from tqdm import tqdm from data import DataLoader if __name__ == '__main__': logging.basicConfig(format='%(asctime)s %(message)s', level=logging.DEBUG) logging.info('initial...
31.91358
109
0.635977
0cfa9b70f4dd085778dfa0f986d2747b6f89ea72
430
py
Python
bin/ADFRsuite/CCSBpckgs/mglkey/__init__.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/mglkey/__init__.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/mglkey/__init__.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
############################################################################# # # Author: Michel F. SANNER # # Copyright: M. Sanner and TSRI 2015 # ######################################################################### # # $Header: /mnt/raid/services/cvs/mglkeyDIST/mglkey/__init__.py,v 1.1.1.1 2016/12/07 23:27:34 sa...
30.714286
106
0.448837
0cfc5802ff58618fd079fd5185d9edd8be7eda97
13,342
py
Python
source/rttov_test/profile-datasets-py/div83/027.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
source/rttov_test/profile-datasets-py/div83/027.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
1
2022-03-12T12:19:59.000Z
2022-03-12T12:19:59.000Z
source/rttov_test/profile-datasets-py/div83/027.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
""" Profile ../profile-datasets-py/div83/027.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/div83/027.py" self["Q"] = numpy.array([ 1.51831800e+00, 2.02599600e+00, 2.94787100e+00, 3.99669400e+00, 4.71653800e+00, 4.89106600e+00, 5.1439...
57.508621
92
0.570979
0cfdd69003365202954e59ba474c596cdd274c91
10,386
py
Python
stanCode_Projects/break_out_game/breakoutgraphics.py
kunyi1022/sc-projects
0ab0019b2cdc86c434a0acff39b862263dcbc970
[ "MIT" ]
null
null
null
stanCode_Projects/break_out_game/breakoutgraphics.py
kunyi1022/sc-projects
0ab0019b2cdc86c434a0acff39b862263dcbc970
[ "MIT" ]
null
null
null
stanCode_Projects/break_out_game/breakoutgraphics.py
kunyi1022/sc-projects
0ab0019b2cdc86c434a0acff39b862263dcbc970
[ "MIT" ]
null
null
null
""" stanCode Breakout Project Adapted from Eric Roberts's Breakout by Sonja Johnson-Yu, Kylie Jue, Nick Bowman, and Jerry Liao File: breakoutgraphics.py Name: Jordan ------------------------- This python file will create a class named BreakoutGraphics for the break out game. This class will contain the building bloc...
39.192453
134
0.604756
0cfe0c2510332685f3cc3783752192ba32a124ab
329
py
Python
PythonExercicios/ex020.py
github-felipe/ExerciciosEmPython-cursoemvideo
0045464a287f21b6245554a975588cf06c5b476d
[ "MIT" ]
null
null
null
PythonExercicios/ex020.py
github-felipe/ExerciciosEmPython-cursoemvideo
0045464a287f21b6245554a975588cf06c5b476d
[ "MIT" ]
null
null
null
PythonExercicios/ex020.py
github-felipe/ExerciciosEmPython-cursoemvideo
0045464a287f21b6245554a975588cf06c5b476d
[ "MIT" ]
null
null
null
from random import shuffle a1 = str(input('Digite o nome de um aluno: ')) a2 = str(input('Digite o nome de outro aluno: ')) a3 = str(input('Digite o nome de mais outro aluno: ')) a4 = str(input('Digite o nome do ltimo aluno: ')) lista = [a1, a2, a3, a4] shuffle(lista) print(f'A ordem de apresentao : \033[34m{lista}\033...
36.555556
58
0.680851
4901c51c1ea8530e44c195ecd1215f420a39da2d
3,940
py
Python
okta/models/profile_enrollment_policy_rule_action.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
okta/models/profile_enrollment_policy_rule_action.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
okta/models/profile_enrollment_policy_rule_action.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
# flake8: noqa """ Copyright 2021 - Present Okta, 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 ...
42.826087
154
0.679949
490301996f235103083f9f733d639e25da1a8a52
1,478
py
Python
test/test_compression.py
Peter42/iasi
fc799d542c2bb80c3f559bc2f9e833ac330a5506
[ "MIT" ]
null
null
null
test/test_compression.py
Peter42/iasi
fc799d542c2bb80c3f559bc2f9e833ac330a5506
[ "MIT" ]
3
2019-05-02T12:49:21.000Z
2019-06-12T09:11:00.000Z
test/test_compression.py
Peter42/iasi
fc799d542c2bb80c3f559bc2f9e833ac330a5506
[ "MIT" ]
1
2019-10-18T21:33:33.000Z
2019-10-18T21:33:33.000Z
import datetime import unittest import luigi import numpy as np from netCDF4 import Dataset from iasi.compression import (CompressDataset, CompressDateRange, DecompressDataset)
30.791667
95
0.614344
4905009d57cff19e66575a7bfdba66a5dbebafe6
6,310
py
Python
bird_classify.py
google-coral/project-birdfeeder
3bcb9bfd4123a0c6f16a09087a8ccdfe0c6dd80e
[ "Apache-2.0" ]
26
2019-07-23T22:32:08.000Z
2022-01-09T15:15:50.000Z
bird_classify.py
hjonnala/project-birdfeeder
4375a9370d7567b756b6cc68f4dfcb4c8183b118
[ "Apache-2.0" ]
13
2019-07-26T17:10:48.000Z
2022-03-01T04:11:48.000Z
bird_classify.py
hjonnala/project-birdfeeder
4375a9370d7567b756b6cc68f4dfcb4c8183b118
[ "Apache-2.0" ]
19
2019-11-05T03:01:31.000Z
2022-03-29T01:13:46.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, ...
38.711656
94
0.666878
4906781740f98be4911b2335a3c4e24bb2089146
2,959
py
Python
memory/test/test_memory.py
MaxGreil/hail
4e0605b6bfd24a885a8194e8c0984b20994d3407
[ "MIT" ]
789
2016-09-05T04:14:25.000Z
2022-03-30T09:51:54.000Z
memory/test/test_memory.py
MaxGreil/hail
4e0605b6bfd24a885a8194e8c0984b20994d3407
[ "MIT" ]
5,724
2016-08-29T18:58:40.000Z
2022-03-31T23:49:42.000Z
memory/test/test_memory.py
MaxGreil/hail
4e0605b6bfd24a885a8194e8c0984b20994d3407
[ "MIT" ]
233
2016-08-31T20:42:38.000Z
2022-02-17T16:42:39.000Z
import unittest import uuid from memory.client import MemoryClient from hailtop.aiocloud.aiogoogle import GoogleStorageAsyncFS from hailtop.config import get_user_config from hailtop.utils import async_to_blocking from gear.cloud_config import get_gcp_config PROJECT = get_gcp_config().project
36.085366
111
0.663738
49078fb3338a8d88957f2187faa7b3d0420743af
990
py
Python
feladatok.py
python-feladatok-tesztekkel/-05-02-01-fuggvenyek-halado
0528125ec429584b21a41635517a3c55dfba559a
[ "CC0-1.0" ]
null
null
null
feladatok.py
python-feladatok-tesztekkel/-05-02-01-fuggvenyek-halado
0528125ec429584b21a41635517a3c55dfba559a
[ "CC0-1.0" ]
null
null
null
feladatok.py
python-feladatok-tesztekkel/-05-02-01-fuggvenyek-halado
0528125ec429584b21a41635517a3c55dfba559a
[ "CC0-1.0" ]
null
null
null
# feladat.py # 1. feladat # rjon fggvnyt szokoev_e nven # A fggvny trjen vissza igaz rtkkel, ha a paramterben megadott vszm szkv # 2. feladat # A fggvny bemen paramterei az a, b, c egsz szmok # rjon kdot amely eredmnyeknt az a vltozba lesz a legnagyobb szm, a b vltozba a msodik legnagyobb szm s a c vltozba pedig a l...
28.285714
153
0.756566
0b2242c98f153e44bcbb14ec8721042c75e0511e
76
py
Python
bin/pymodules/objectedit/__init__.py
mattire/naali
28c9cdc84c6a85e0151a222e55ae35c9403f0212
[ "Apache-2.0" ]
1
2018-04-02T15:38:10.000Z
2018-04-02T15:38:10.000Z
bin/pymodules/objectedit/__init__.py
mattire/naali
28c9cdc84c6a85e0151a222e55ae35c9403f0212
[ "Apache-2.0" ]
null
null
null
bin/pymodules/objectedit/__init__.py
mattire/naali
28c9cdc84c6a85e0151a222e55ae35c9403f0212
[ "Apache-2.0" ]
null
null
null
#from editgui import EditGUI #from only_layout import OnlyLayout as EditGUI
25.333333
46
0.842105
0b24417f2ee0b6b95e1c21f1f50ee2435fb6de2e
1,210
py
Python
audiomate/processing/pipeline/onset.py
CostanzoPablo/audiomate
080402eadaa81f77f64c8680510a2de64bc18e74
[ "MIT" ]
133
2018-05-18T13:54:10.000Z
2022-02-15T02:14:20.000Z
audiomate/processing/pipeline/onset.py
CostanzoPablo/audiomate
080402eadaa81f77f64c8680510a2de64bc18e74
[ "MIT" ]
68
2018-06-03T16:42:09.000Z
2021-01-29T10:58:30.000Z
audiomate/processing/pipeline/onset.py
CostanzoPablo/audiomate
080402eadaa81f77f64c8680510a2de64bc18e74
[ "MIT" ]
37
2018-11-02T02:40:29.000Z
2021-11-30T07:44:50.000Z
import librosa import numpy as np from . import base from . import spectral
31.025641
104
0.686777
0b24c9c12856cb1232066c7941cc8a2db9d6f09f
2,496
py
Python
friction_ramp_analysis/classes/callForceRampGUI.py
JSotres/AFM-Friction-Ramp-Analysis
d663134f148575f09e2991186c991ed00598ab5e
[ "MIT" ]
null
null
null
friction_ramp_analysis/classes/callForceRampGUI.py
JSotres/AFM-Friction-Ramp-Analysis
d663134f148575f09e2991186c991ed00598ab5e
[ "MIT" ]
null
null
null
friction_ramp_analysis/classes/callForceRampGUI.py
JSotres/AFM-Friction-Ramp-Analysis
d663134f148575f09e2991186c991ed00598ab5e
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QMainWindow, QApplication, QFileDialog import sys from .readNanoscopeForceRamps import * import matplotlib.pyplot as plt from ..qt5_ui_files.ForceRampGUI import * from matplotlib.backends.backend_qt5agg import (NavigationToolbar2QT as NavigationToolbar) import os import math from ..qt5_ui_fi...
35.657143
105
0.733574
0b28b47566a0388433df755a312dddf760b4c430
1,250
py
Python
onebarangay_psql/users/tests/test_admin.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
null
null
null
onebarangay_psql/users/tests/test_admin.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
43
2022-02-07T00:18:35.000Z
2022-03-21T04:42:48.000Z
onebarangay_psql/users/tests/test_admin.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
null
null
null
"""Create your tests for the admin app here.""" import pytest from django.contrib.auth import get_user_model from django.urls import reverse pytestmark = pytest.mark.django_db User = get_user_model()
33.783784
79
0.668
0b296cbeff42f183e0f9446e0c1d52f582289ecd
1,129
py
Python
neuroscout/resources/dataset.py
jdkent/neuroscout
67aaafdf883988e2048197dc9ce4559a28e3b7b6
[ "BSD-3-Clause" ]
5
2018-07-16T16:23:21.000Z
2021-08-20T15:43:23.000Z
neuroscout/resources/dataset.py
jdkent/neuroscout
67aaafdf883988e2048197dc9ce4559a28e3b7b6
[ "BSD-3-Clause" ]
719
2018-07-09T17:19:57.000Z
2022-03-30T15:30:59.000Z
neuroscout/resources/dataset.py
jdkent/neuroscout
67aaafdf883988e2048197dc9ce4559a28e3b7b6
[ "BSD-3-Clause" ]
9
2019-07-10T17:45:31.000Z
2021-08-30T21:51:21.000Z
from flask_apispec import MethodResource, marshal_with, doc, use_kwargs from webargs import fields from ..models import Dataset from ..core import cache from .utils import first_or_404 from ..schemas.dataset import DatasetSchema
35.28125
75
0.680248
0b2a468542d7634a98be235c3eb2a43a90a6aa6a
2,194
py
Python
tests/test_measures.py
lanxuedang/TIGER
a134b49f9c64321cb521a25953f9771ced9b597e
[ "MIT" ]
88
2020-06-11T03:14:30.000Z
2022-03-21T07:36:36.000Z
tests/test_measures.py
lanxuedang/TIGER
a134b49f9c64321cb521a25953f9771ced9b597e
[ "MIT" ]
4
2021-04-29T19:22:08.000Z
2021-09-22T19:22:48.000Z
tests/test_measures.py
lanxuedang/TIGER
a134b49f9c64321cb521a25953f9771ced9b597e
[ "MIT" ]
13
2020-06-14T14:19:01.000Z
2022-02-17T22:50:41.000Z
import numpy as np from graph_tiger.graphs import o4_graph, p4_graph, c4_graph, k4_1_graph, k4_2_graph from graph_tiger.graphs import two_c4_0_bridge, two_c4_1_bridge, two_c4_2_bridge, two_c4_3_bridge from graph_tiger.measures import run_measure if __name__ == '__main__': main()
42.192308
97
0.591613
0b303fe60108c7d81edf13f0852f1b122917c330
13,679
py
Python
AuroraAppCode/login.py
zahraahhajhsn/automatic-student-counter
9b3e38f41aba3fbc59e1ccdaeae9ba229415f977
[ "Apache-2.0" ]
null
null
null
AuroraAppCode/login.py
zahraahhajhsn/automatic-student-counter
9b3e38f41aba3fbc59e1ccdaeae9ba229415f977
[ "Apache-2.0" ]
null
null
null
AuroraAppCode/login.py
zahraahhajhsn/automatic-student-counter
9b3e38f41aba3fbc59e1ccdaeae9ba229415f977
[ "Apache-2.0" ]
null
null
null
import verifyController import pyodbc from PyQt5.QtWidgets import QMessageBox from PyQt5 import QtCore, QtGui, QtWidgets from PySide2.QtCore import (QCoreApplication, QMetaObject,QSize,Qt) from PySide2.QtGui import (QCursor, QFont,QIcon) from PySide2.QtWidgets import * from PySide2 import QtCore, QtGui, QtWidg...
52.209924
238
0.59288
0b306e809cb7c5ad319eabca404494268373c70e
13,195
py
Python
ml/association/apriori.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
4
2016-12-17T20:06:10.000Z
2021-11-19T04:45:29.000Z
ml/association/apriori.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
11
2021-01-06T05:35:11.000Z
2022-03-11T23:28:31.000Z
ml/association/apriori.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
3
2015-06-12T10:44:16.000Z
2021-07-26T18:39:47.000Z
"""Association mining -- apriori algo""" __author__ = 'thor' from numpy import * # Modified from: # Everaldo Aguiar & Reid Johnson (https://github.com/cse40647/cse40647/blob/sp.14/10%20-%20Apriori.ipynb) # # Itself Modified from: # Marcel Caraciolo (https://gist.github.com/marcelcaraciolo/1423287) # # Functions to c...
35.093085
117
0.617582
0b3087eb0d5de6a063260501def92d99d71d6436
397
py
Python
setup.py
TechAtNYU/api-python
26cfa78208f30c41095484422cd1232aeddbfcb2
[ "MIT" ]
null
null
null
setup.py
TechAtNYU/api-python
26cfa78208f30c41095484422cd1232aeddbfcb2
[ "MIT" ]
null
null
null
setup.py
TechAtNYU/api-python
26cfa78208f30c41095484422cd1232aeddbfcb2
[ "MIT" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup setup( description='Tech@NYU API Python Client', author='TechatNYU', url='https://github.com/TechAtNYU/pytnyu', author_email='hello@techatnyu.org', version='0.0.4', install_requires=['requests'], ...
23.352941
46
0.677582
0b36a23da3938dd6a58c332d22bc21433cd520a7
2,949
py
Python
hardware/max7219.py
gcurtis79/letsrobot
0cb5fae07392ee3661036d138d8986c9705bcf0c
[ "Apache-2.0" ]
26
2018-09-27T17:27:30.000Z
2022-03-04T20:37:18.000Z
hardware/max7219.py
gcurtis79/letsrobot
0cb5fae07392ee3661036d138d8986c9705bcf0c
[ "Apache-2.0" ]
30
2018-10-15T03:54:58.000Z
2020-05-28T06:57:08.000Z
hardware/max7219.py
gcurtis79/letsrobot
0cb5fae07392ee3661036d138d8986c9705bcf0c
[ "Apache-2.0" ]
16
2018-10-04T03:16:43.000Z
2021-04-25T06:59:49.000Z
import spidev columns = [0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8] LEDOn = [0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF] LEDOff = [0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0] LEDEmoteSmile = [0x0,0x0,0x24,0x0,0x42,0x3C,0x0,0x0] LEDEmoteSad = [0x0,0x0,0x24,0x0,0x0,0x3C,0x42,0x0] LEDEmoteTongue = [0x0,0x0,0x24,0x0,0x42,0x3C,0xC,0x0] LEDEmoteS...
25.205128
57
0.617158
0b36b0a444f2d74d0736b72d8524d171de6f01c9
9,236
py
Python
kkl_wikicommons_upload.py
wmilbot/wikiscraper
c0e8c2ac45bcb275584fa6606c604ee7c9c9cea7
[ "MIT" ]
3
2018-11-14T14:06:09.000Z
2018-11-14T18:23:16.000Z
kkl_wikicommons_upload.py
wmilbot/wikiscraper
c0e8c2ac45bcb275584fa6606c604ee7c9c9cea7
[ "MIT" ]
null
null
null
kkl_wikicommons_upload.py
wmilbot/wikiscraper
c0e8c2ac45bcb275584fa6606c604ee7c9c9cea7
[ "MIT" ]
2
2018-11-14T14:06:23.000Z
2019-09-22T08:25:55.000Z
#!/usr/bin/env python from datapackage_pipelines.wrapper import ingest, spew import logging, collections from pipeline_params import get_pipeline_param_rows from google.cloud import storage from contextlib import contextmanager from tempfile import mkdtemp import os import pywikibot import time from pywikibot.pagegener...
37.092369
110
0.612711
0b373158f05135f2dafba65a6ba39cdf0ba87c6d
1,348
py
Python
Badger/scripts/besdirac-wms-decaycard-get.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
null
null
null
Badger/scripts/besdirac-wms-decaycard-get.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
1
2021-03-04T08:48:38.000Z
2021-03-04T08:48:38.000Z
Badger/scripts/besdirac-wms-decaycard-get.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
2
2020-08-26T06:36:51.000Z
2021-03-04T08:08:34.000Z
#!/usr/bin/env python import DIRAC from DIRAC import S_OK, S_ERROR from DIRAC.Core.Base import Script Script.setUsageMessage( """ Insert random trigger file into the File Catalog Usage: %s [option] lfn """ % Script.scriptName ) fcType = 'FileCatalog' Script.parseCommandLine( ignoreErrors = False ) options = S...
25.923077
96
0.557864
0b39211e58c62524837539f8c02eb738f733141e
1,037
py
Python
GraphSAGE/fix.py
attre2vec/attre2vec
f36a2581f3d17887d6201a76624d4ced93d6503f
[ "MIT" ]
null
null
null
GraphSAGE/fix.py
attre2vec/attre2vec
f36a2581f3d17887d6201a76624d4ced93d6503f
[ "MIT" ]
null
null
null
GraphSAGE/fix.py
attre2vec/attre2vec
f36a2581f3d17887d6201a76624d4ced93d6503f
[ "MIT" ]
null
null
null
import pickle import networkx as nx import numpy as np import torch for name in ('cora', 'citeseer', 'pubmed'): with open(f'data/datasets/{name}.pkl', 'rb') as fin: dataset = pickle.load(fin) test_graph = dataset['original_graph'] e2i = dataset['edge2idx'] H = dataset['H'] node_fts = to...
25.925
70
0.580521
0b3963c63ed1877c12683ef9458a7f962df91e0e
3,243
py
Python
finder.py
giuseppebrb/Pynder
a47defc08ff497096a1fe507ab5d7b01997b69ef
[ "MIT" ]
3
2017-11-11T01:19:57.000Z
2021-07-07T15:44:32.000Z
finder.py
giuseppebrb/Pynder
a47defc08ff497096a1fe507ab5d7b01997b69ef
[ "MIT" ]
null
null
null
finder.py
giuseppebrb/Pynder
a47defc08ff497096a1fe507ab5d7b01997b69ef
[ "MIT" ]
null
null
null
import os import fnmatch import smtplib import email.mime.application import sys import subprocess from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from pathlib import Path home = str(Path.home()) # Return a string representing the users home directory fileFound = 0 # Number of fi...
35.25
120
0.716929
0b3b1b7fa53f607bfa6820806f9bdec88c43a29d
2,092
py
Python
sushy/tests/unit/resources/fabric/test_endpoint.py
sapcc/sushy
7016cc0f31050ab656e1e26c80bd44ce3e9fd57a
[ "Apache-2.0" ]
37
2017-03-24T10:17:37.000Z
2022-02-10T19:42:26.000Z
sushy/tests/unit/resources/fabric/test_endpoint.py
sapcc/sushy
7016cc0f31050ab656e1e26c80bd44ce3e9fd57a
[ "Apache-2.0" ]
4
2020-07-08T10:53:30.000Z
2020-07-30T11:56:20.000Z
sushy/tests/unit/resources/fabric/test_endpoint.py
sapcc/sushy
7016cc0f31050ab656e1e26c80bd44ce3e9fd57a
[ "Apache-2.0" ]
29
2017-07-19T21:28:06.000Z
2021-06-09T05:20:32.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 # d...
40.230769
78
0.68021
0b3d35d3fa9e0c6688b8c47ccf07458bfaa3bde8
231
py
Python
engine/core/it_singleton.py
torrotitans/torro_community
a3f153e69a860f0d6c831145f529d9e92193a0ae
[ "MIT" ]
1
2022-01-12T08:31:59.000Z
2022-01-12T08:31:59.000Z
engine/core/it_singleton.py
torrotitans/torro_community
a3f153e69a860f0d6c831145f529d9e92193a0ae
[ "MIT" ]
null
null
null
engine/core/it_singleton.py
torrotitans/torro_community
a3f153e69a860f0d6c831145f529d9e92193a0ae
[ "MIT" ]
2
2022-01-19T06:26:32.000Z
2022-01-26T15:25:15.000Z
#!/usr/bin/python # -*- coding: UTF-8 -* from db.it.db_it_mgr import it_mgr __all__ = {"itSingleton"} it_singleton = itSingleton()
13.588235
38
0.670996
0b3f444aab07f3ace7008a9a2f44f279835a4a8e
25,437
py
Python
analyses/seasonality_paper_st/lai_only/shap_interaction/model_analysis_shap_interaction_1.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/seasonality_paper_st/lai_only/shap_interaction/model_analysis_shap_interaction_1.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/seasonality_paper_st/lai_only/shap_interaction/model_analysis_shap_interaction_1.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os from pathlib import Path from wildfires.utils import handle_array_job_args try: # This will only work after the path modification carried out in the job script. from specific import ( CACHE_DIR, SimpleCache, get_model, da...
14.16314
84
0.298306
0b3f95c97639b3abd555db4e30fef992d56dda30
1,954
py
Python
tests/test_res_grp_config.py
danos/vplane-config-npf
2103ac7e19ee77eacff30a3d11cf487dfbefee26
[ "BSD-3-Clause" ]
null
null
null
tests/test_res_grp_config.py
danos/vplane-config-npf
2103ac7e19ee77eacff30a3d11cf487dfbefee26
[ "BSD-3-Clause" ]
null
null
null
tests/test_res_grp_config.py
danos/vplane-config-npf
2103ac7e19ee77eacff30a3d11cf487dfbefee26
[ "BSD-3-Clause" ]
2
2020-05-27T10:34:20.000Z
2021-01-20T05:40:32.000Z
#!/usr/bin/env python3 # Copyright (c) 2019, AT&T Intellectual Property. # All rights reserved. # # SPDX-License-Identifier: LGPL-2.1-only # """ Unit-tests for the qos_config.py module. """ from vyatta.res_grp.res_grp_config import ResGrpConfig TEST_DATA = { 'vyatta-resources-v1:resources': { 'vyatta-re...
32.566667
71
0.413511
0b4263d7f857ffd13d9244963a213a2d55a3ea6f
36,145
py
Python
fandango/objects.py
rhomspuron/fandango
51cc7659dfa7ea8c5890a993bbcc4c2049e45136
[ "CC-BY-3.0" ]
null
null
null
fandango/objects.py
rhomspuron/fandango
51cc7659dfa7ea8c5890a993bbcc4c2049e45136
[ "CC-BY-3.0" ]
null
null
null
fandango/objects.py
rhomspuron/fandango
51cc7659dfa7ea8c5890a993bbcc4c2049e45136
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python2.5 ############################################################################# ## ## file : objects.py ## ## description : see below ## ## project : Tango Control System ## ## $Author: srubio@cells.es, tcoutinho@cells.es, homs@esrf.fr $ ## ## ## $Revision: 2008 $ ## ## copyleft : A...
33.938967
89
0.56135
0b42ef18819891116ae94c7d2436b4f0dab7c2b9
5,877
py
Python
vdvae_flax/blocks.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
vdvae_flax/blocks.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
vdvae_flax/blocks.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 DeepMind Technologies Limited and the Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
35.618182
82
0.650842
0b43e92ff65dfbae4bcf1fe66e16f6008f379b22
2,605
py
Python
test_hrm_code.py
liameirose/bme590hrm
d44573b73b46b121a31667c12bb6add4e8a8daa7
[ "MIT" ]
null
null
null
test_hrm_code.py
liameirose/bme590hrm
d44573b73b46b121a31667c12bb6add4e8a8daa7
[ "MIT" ]
2
2018-10-20T22:16:56.000Z
2018-10-25T23:56:43.000Z
test_hrm_code.py
liameirose/bme590hrm
d44573b73b46b121a31667c12bb6add4e8a8daa7
[ "MIT" ]
null
null
null
import pytest import json import numpy as np
26.05
69
0.621881
0b44a978913b26bbf0d8ab188b6560f82d0fe2d3
1,068
py
Python
core/migrations/0044_auto_20190510_0921.py
raheemazeezabiodun/art-backend
0bc47f3cf6f403101082f201c7fd1ca8108d5731
[ "MIT" ]
4
2018-03-12T23:49:01.000Z
2020-07-06T17:37:29.000Z
core/migrations/0044_auto_20190510_0921.py
raheemazeezabiodun/art-backend
0bc47f3cf6f403101082f201c7fd1ca8108d5731
[ "MIT" ]
259
2018-02-06T07:53:07.000Z
2020-06-05T19:18:32.000Z
core/migrations/0044_auto_20190510_0921.py
raheemazeezabiodun/art-backend
0bc47f3cf6f403101082f201c7fd1ca8108d5731
[ "MIT" ]
22
2018-01-25T14:02:05.000Z
2020-06-24T20:37:01.000Z
# Generated by Django 2.1.7 on 2019-05-10 09:21 from django.db import migrations, models
38.142857
258
0.634831
0b4772665a5a43688e79771eafbcfa9e4db57a1a
6,661
py
Python
postgres_connector/splitters.py
sandboxws/beam-postgres-connector
d08ed08e96991704fc234dd1e4d2ddf13f1885c1
[ "MIT" ]
null
null
null
postgres_connector/splitters.py
sandboxws/beam-postgres-connector
d08ed08e96991704fc234dd1e4d2ddf13f1885c1
[ "MIT" ]
null
null
null
postgres_connector/splitters.py
sandboxws/beam-postgres-connector
d08ed08e96991704fc234dd1e4d2ddf13f1885c1
[ "MIT" ]
null
null
null
import re from abc import ABCMeta, abstractmethod from datetime import datetime from typing import Callable, Iterator from apache_beam.io import iobase from apache_beam.io.range_trackers import (LexicographicKeyRangeTracker, OffsetRangeTracker, ...
37.632768
118
0.664465
0b479dbf807c903d09638149ff0de16acee169e3
5,827
py
Python
apis/python_interface_helpers/stk_env.py
davetrollope-fsml/sequence_toolkit
49495f679aad1d7c134cf8a189cca1e8acc9f4bd
[ "MIT" ]
null
null
null
apis/python_interface_helpers/stk_env.py
davetrollope-fsml/sequence_toolkit
49495f679aad1d7c134cf8a189cca1e8acc9f4bd
[ "MIT" ]
null
null
null
apis/python_interface_helpers/stk_env.py
davetrollope-fsml/sequence_toolkit
49495f679aad1d7c134cf8a189cca1e8acc9f4bd
[ "MIT" ]
null
null
null
from stk_sequence import * from stk_tcp_server import * from stk_tcp_client import * from stk_data_flow import * from stk_options import stk_clear_cb import time
34.276471
104
0.763686
0b47c0ccbeb35e2ac408d98bd973b27910abd4c8
1,163
py
Python
readfile.py
y-azvd/perceptron
3cd4cefc7ae54bd8a3df702300ee9797389fef4a
[ "MIT" ]
null
null
null
readfile.py
y-azvd/perceptron
3cd4cefc7ae54bd8a3df702300ee9797389fef4a
[ "MIT" ]
null
null
null
readfile.py
y-azvd/perceptron
3cd4cefc7ae54bd8a3df702300ee9797389fef4a
[ "MIT" ]
null
null
null
import numpy as np ## ## @brief function_description ## ## @param filename The filename ## ## @return description_of_the_return_value ## ## ## @brief Reads for perceptron. ## ## @param filename The filename ## @param dataType The data type ## ## @return description_of_the_return_...
23.26
71
0.674119
0b49a43a85fb689276b933c981268752b4780e5f
3,255
py
Python
utils.py
SappieKonig/eind-practicum
d6ef30d233706812334a52b618f4ae00380ba3b7
[ "MIT" ]
null
null
null
utils.py
SappieKonig/eind-practicum
d6ef30d233706812334a52b618f4ae00380ba3b7
[ "MIT" ]
null
null
null
utils.py
SappieKonig/eind-practicum
d6ef30d233706812334a52b618f4ae00380ba3b7
[ "MIT" ]
null
null
null
import numpy as np import cv2 as cv import os import shutil from skimage.util.shape import view_as_windows import torch.nn.functional as F import torch from functools import lru_cache
31.601942
112
0.663902
0b4a7fb8ebee09432022b77e8750863d12e69e9f
134
py
Python
python/pangram.py
emiliot/hackerrank
7a3081f6b0a33f8402c63b94a6a54728a9adf47e
[ "MIT" ]
null
null
null
python/pangram.py
emiliot/hackerrank
7a3081f6b0a33f8402c63b94a6a54728a9adf47e
[ "MIT" ]
null
null
null
python/pangram.py
emiliot/hackerrank
7a3081f6b0a33f8402c63b94a6a54728a9adf47e
[ "MIT" ]
null
null
null
s = input().strip() res = [c for c in set(s.lower()) if c.isalpha()] if len(res) == 26: print("pangram") else: print("not pangram")
19.142857
48
0.604478
0b4ac3436bf4854bb94f737d096d1fe630a754a3
8,423
py
Python
stream.py
ccgcyber/xpcap
a0e6fd1355fd0a9cbff4e074275b236ce8c6c3b8
[ "MIT" ]
5
2017-07-31T02:07:05.000Z
2021-02-14T16:39:49.000Z
stream.py
ccgcyber/xpcap
a0e6fd1355fd0a9cbff4e074275b236ce8c6c3b8
[ "MIT" ]
null
null
null
stream.py
ccgcyber/xpcap
a0e6fd1355fd0a9cbff4e074275b236ce8c6c3b8
[ "MIT" ]
4
2016-07-24T08:56:54.000Z
2020-07-12T11:50:02.000Z
from __future__ import print_function import pkgutil import stream_decoders # this module decodes stream based protocols. # and resolves retransmissions. decoders= [] # __path__ is used to find the location of all decoder submodules for impimp, name, ii in pkgutil.iter_modules(stream_decoders.__path__): impload= ...
32.396154
93
0.544343
0b4afb977af41e7750f169c98501350be4fa6ae6
247
py
Python
app/db/connection.py
melhin/streamchat
8a3e7ffdcf4bc84045df71259556f4267a755351
[ "MIT" ]
null
null
null
app/db/connection.py
melhin/streamchat
8a3e7ffdcf4bc84045df71259556f4267a755351
[ "MIT" ]
3
2020-09-16T13:30:17.000Z
2020-09-19T09:56:50.000Z
app/db/connection.py
melhin/streamchat
8a3e7ffdcf4bc84045df71259556f4267a755351
[ "MIT" ]
null
null
null
import logging import aioredis from app.core.config import REDIS_DSN, REDIS_PASSWORD logger = logging.getLogger(__name__)
22.454545
92
0.805668
0b4cc6aa957df616a9c14313fa9b9ee7ec6d0837
1,434
py
Python
calculators/static_dipolar_couplings/dcc.py
jlorieau/nmr
15224342a9277da8b02e10027644c86ac3769db1
[ "MIT" ]
null
null
null
calculators/static_dipolar_couplings/dcc.py
jlorieau/nmr
15224342a9277da8b02e10027644c86ac3769db1
[ "MIT" ]
null
null
null
calculators/static_dipolar_couplings/dcc.py
jlorieau/nmr
15224342a9277da8b02e10027644c86ac3769db1
[ "MIT" ]
null
null
null
from math import pi u0 = 4.*pi*1E-7 # T m /A hbar = 1.0545718E-34 # J s # 1 T = kg s^-2 A-1 = J A^-1 m^-2 g = { '1H' : 267.513E6, # rad T^-1 s^-1 '13C': 67.262E6, '15N': -27.116E6, 'e': 176086E6 } # nuc_i, nuc_j: nucleus string. ex: '1H' # r_ij: distance in Angstroms DCC = lambda nuc_i, nuc_j, ...
34.142857
89
0.502092
0b4dc3067343c33e32c44d539a787edba0c40515
2,197
py
Python
torchvision/prototype/datasets/_builtin/country211.py
SariaCxs/vision
1db8795733b91cd6dd62a0baa7ecbae6790542bc
[ "BSD-3-Clause" ]
1
2022-03-31T02:37:35.000Z
2022-03-31T02:37:35.000Z
torchvision/prototype/datasets/_builtin/country211.py
SariaCxs/vision
1db8795733b91cd6dd62a0baa7ecbae6790542bc
[ "BSD-3-Clause" ]
null
null
null
torchvision/prototype/datasets/_builtin/country211.py
SariaCxs/vision
1db8795733b91cd6dd62a0baa7ecbae6790542bc
[ "BSD-3-Clause" ]
null
null
null
import pathlib from typing import Any, Dict, List, Tuple from torchdata.datapipes.iter import IterDataPipe, Mapper, Filter from torchvision.prototype.datasets.utils import Dataset, DatasetConfig, DatasetInfo, HttpResource, OnlineResource from torchvision.prototype.datasets.utils._internal import path_comparator, hint_...
38.54386
114
0.65817