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
d890dc97219637fe1dd9192b3e2d2068492c1ade
3,127
py
Python
final_race/potential_field.py
clayshubert/AutonomousVehicles
72709885989b2b4266c86d6e5e0a0609b3f4a959
[ "MIT" ]
null
null
null
final_race/potential_field.py
clayshubert/AutonomousVehicles
72709885989b2b4266c86d6e5e0a0609b3f4a959
[ "MIT" ]
null
null
null
final_race/potential_field.py
clayshubert/AutonomousVehicles
72709885989b2b4266c86d6e5e0a0609b3f4a959
[ "MIT" ]
null
null
null
#!/usr/bin/env python # import rospy import numpy as np from sensor_msgs.msg import LaserScan from ackermann_msgs.msg import AckermannDriveStamped from std_msgs.msg import Int32 class PotentialField: def __init__(self): rospy.Subscriber("/scan", LaserScan, self.scanner_callback) rospy.Subscrib...
27.191304
112
0.512632
6182f03af967cce9bda0bc6bdd0485c12d1b6cea
6,761
py
Python
intelligence/settings.py
kohhi/exist
c688a228ac9fee56ff29990a6d75b2a09f8457ca
[ "MIT" ]
null
null
null
intelligence/settings.py
kohhi/exist
c688a228ac9fee56ff29990a6d75b2a09f8457ca
[ "MIT" ]
null
null
null
intelligence/settings.py
kohhi/exist
c688a228ac9fee56ff29990a6d75b2a09f8457ca
[ "MIT" ]
null
null
null
""" Django settings for intelligence project. Generated by 'django-admin startproject' using Django 1.11.5. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impo...
28.170833
91
0.626682
d102d66e86b25d9137ed578a981bec0ca4ae7aad
299
py
Python
hms_tz/hms_tz/doctype/healthcare_insurance_subscription/healthcare_insurance_subscription.py
av-dev2/hms_tz
a36dbe8bfacf6a770913b1bfa000d43edd2cd87a
[ "MIT" ]
5
2021-04-20T06:11:25.000Z
2021-11-18T15:37:25.000Z
hms_tz/hms_tz/doctype/healthcare_insurance_subscription/healthcare_insurance_subscription.py
av-dev2/hms_tz
a36dbe8bfacf6a770913b1bfa000d43edd2cd87a
[ "MIT" ]
90
2021-04-05T13:36:34.000Z
2022-03-31T07:26:25.000Z
hms_tz/hms_tz/doctype/healthcare_insurance_subscription/healthcare_insurance_subscription.py
av-dev2/hms_tz
a36dbe8bfacf6a770913b1bfa000d43edd2cd87a
[ "MIT" ]
10
2021-03-26T06:43:20.000Z
2022-02-18T06:36:58.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class HealthcareInsuranceSubscription(Document): pass
27.181818
68
0.789298
5f0a3db18fd733019616cf9ec46192e19171f0a3
4,379
py
Python
linear_regressor.py
Wright4TheJob/CobModelGPR
714c8d85d91817bd1abb560359afe4abda116996
[ "MIT" ]
null
null
null
linear_regressor.py
Wright4TheJob/CobModelGPR
714c8d85d91817bd1abb560359afe4abda116996
[ "MIT" ]
null
null
null
linear_regressor.py
Wright4TheJob/CobModelGPR
714c8d85d91817bd1abb560359afe4abda116996
[ "MIT" ]
null
null
null
"""Read a comma or tab-separated text file and perform linear regression.""" def read_file(filename): """Read two column contents of file as floats.""" import csv delimiter = "\t" xs = [] ys = [] with open(filename, 'r') as fin: next(fin) # skip headings if delimiter == ',': ...
27.89172
78
0.558575
5b166581b0c528fe56f943ab5064887471a0a4c9
4,691
py
Python
tests/_old/test_epeso.py
stevenkfirth/eprun
2a580f8ac0b5976cb1bc84328ffb821bd31731e6
[ "MIT" ]
5
2021-05-22T19:13:13.000Z
2022-03-07T04:54:08.000Z
tests/_old/test_epeso.py
stevenkfirth/eprun
2a580f8ac0b5976cb1bc84328ffb821bd31731e6
[ "MIT" ]
null
null
null
tests/_old/test_epeso.py
stevenkfirth/eprun
2a580f8ac0b5976cb1bc84328ffb821bd31731e6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import eprun from eprun import EPEso from pprint import pprint import pandas as pd class Test_EPEso(unittest.TestCase): def test___init__(self): "" self.assertIsInstance(e, EPEso) def test_get_envi...
45.543689
98
0.408229
72860a76d7b21d424f4bb528d6290cfee36c32aa
70,567
py
Python
cerberus/base.py
number09/cerberus
88c6cc0ca34507a263bdb2af46cf1459d17ed059
[ "ISC" ]
1
2020-02-20T18:15:25.000Z
2020-02-20T18:15:25.000Z
cerberus/base.py
number09/cerberus
88c6cc0ca34507a263bdb2af46cf1459d17ed059
[ "ISC" ]
null
null
null
cerberus/base.py
number09/cerberus
88c6cc0ca34507a263bdb2af46cf1459d17ed059
[ "ISC" ]
null
null
null
import re import typing from abc import abstractclassmethod from ast import literal_eval from collections import abc, ChainMap from copy import copy from datetime import date, datetime from typing import ( Any, Callable, ClassVar, Container, Dict, Generic, Iterable, List, Mapping, ...
38.144324
88
0.588051
54f9b0d71de0d522ab7a639e1d30bb456c31c463
1,098
py
Python
countries/income/HIC.py
vincihb/paper_database
f97ebdcc2bba3ecee3590cde12a5a5f71d26451d
[ "MIT" ]
null
null
null
countries/income/HIC.py
vincihb/paper_database
f97ebdcc2bba3ecee3590cde12a5a5f71d26451d
[ "MIT" ]
null
null
null
countries/income/HIC.py
vincihb/paper_database
f97ebdcc2bba3ecee3590cde12a5a5f71d26451d
[ "MIT" ]
null
null
null
from countries.Countries import Countries class HIC(Countries): def __init__(self): super().__init__() self.lst_of_countries = ['Australia', 'Austria', 'Bahrain', 'Belgium', 'Brunei', 'Canada', 'Chile', 'Croatia', 'Czech Republic', 'Denmark', 'Estonia', 'Finland', 'France', 'Germany', 'Greece', 'H...
43.92
577
0.623862
7868d8ee0cf143890d1b9f53eacf1d8f485a7fe9
31,197
py
Python
nlplingo/tasks/train_test.sandbox.py
BBN-E/nlplingo
32ff17b1320937faa3d3ebe727032f4b3e7a353d
[ "Apache-2.0" ]
3
2020-10-22T13:28:00.000Z
2022-03-24T19:57:22.000Z
nlplingo/tasks/train_test.sandbox.py
BBN-E/nlplingo
32ff17b1320937faa3d3ebe727032f4b3e7a353d
[ "Apache-2.0" ]
null
null
null
nlplingo/tasks/train_test.sandbox.py
BBN-E/nlplingo
32ff17b1320937faa3d3ebe727032f4b3e7a353d
[ "Apache-2.0" ]
1
2020-10-22T13:29:51.000Z
2020-10-22T13:29:51.000Z
import sys import argparse import json import logging import numpy as np import torch import torch.nn as nn from torch import nn, optim, cuda from torch.utils.data import TensorDataset, DataLoader import torch.nn.functional as F from nlplingo.tasks.event_domain import EventDomain from nlplingo.nn.extractor import Ext...
46.424107
202
0.664134
760009cc6b0861e0cb394a4e0bf4632448cf7105
863
py
Python
Lang/Python/py_base/data_structure/graph/dict2list.py
Orig5826/Basics
582e74c83a2b654640fe7c47a1a385a8913cc466
[ "MIT" ]
5
2018-03-09T13:51:11.000Z
2021-12-17T02:05:59.000Z
Lang/Python/py_base/data_structure/graph/dict2list.py
Orig5826/Basics
582e74c83a2b654640fe7c47a1a385a8913cc466
[ "MIT" ]
null
null
null
Lang/Python/py_base/data_structure/graph/dict2list.py
Orig5826/Basics
582e74c83a2b654640fe7c47a1a385a8913cc466
[ "MIT" ]
null
null
null
g0 = { 'A': ['B', 'C', 'F'], 'B': ['C', 'D'], 'C': ['D'], 'D': ['C'], #'E': ['F', 'D'], 'E': ['D', 'F'], 'F': ['C'] } def dict2list(dd): ll = [] keys = dd.keys() for key0 in keys: ll_temp = [] for key1 in keys: if key1 in dd[key0]: ll_temp.append(1) else: ll_temp.append(0) ll.appe...
14.87931
31
0.473928
2bd6e2ff6d9cb75d3a8006d99e5de9fff54a99c5
1,238
py
Python
saleor/plugins/invoicing/plugin.py
ibutiti/saleor
fffe9a54c01aa07131102474dcb1519e0b59da74
[ "BSD-3-Clause" ]
1
2021-05-18T17:20:08.000Z
2021-05-18T17:20:08.000Z
saleor/plugins/invoicing/plugin.py
Niranjoyyengkhom/saleor
4e6c4fe10476508e6b5c06fb1f38f9dc1dfc81a5
[ "CC-BY-4.0" ]
null
null
null
saleor/plugins/invoicing/plugin.py
Niranjoyyengkhom/saleor
4e6c4fe10476508e6b5c06fb1f38f9dc1dfc81a5
[ "CC-BY-4.0" ]
null
null
null
from typing import Any, Optional from uuid import uuid4 from django.core.files.base import ContentFile from ...core import JobStatus from ...invoice.models import Invoice from ...order.models import Order from ..base_plugin import BasePlugin from .utils import generate_invoice_number, generate_invoice_pdf class Inv...
31.74359
87
0.68336
ec34d7bec9a91823274ea62013efc4f64805b4a5
141
py
Python
vmraid/desk/form/__init__.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/desk/form/__init__.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/desk/form/__init__.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
# Copyright (c) 2015, VMRaid Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals
28.2
68
0.794326
2db96d0ed5008101a4f2757537d199eaeab421eb
2,805
py
Python
pyNastran/bdf/mesh_utils/dev/create_vectorized_numbered.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
293
2015-03-22T20:22:01.000Z
2022-03-14T20:28:24.000Z
pyNastran/bdf/mesh_utils/dev/create_vectorized_numbered.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
512
2015-03-14T18:39:27.000Z
2022-03-31T16:15:43.000Z
pyNastran/bdf/mesh_utils/dev/create_vectorized_numbered.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
136
2015-03-19T03:26:06.000Z
2022-03-25T22:14:54.000Z
""" defines: - FakeBDFVectorized """ from pyNastran.bdf.bdf import BDF as BDF class FakeBDFVectorized(BDF): """ Renumbers the element ids to be in the same order as the BDFVectorized Intended for GUI testing, not anything serious. """ #def __init__(self, debug=True, log=None, mode='msc'): ...
35.506329
89
0.534046
7167a981a7ab8259091e3ed40b2174968dc1aa95
8,872
py
Python
deepxml/libs/collate_fn.py
ethen8181/deepxml
81dedfbe8d67170569a9a1bff989a74b4e7da859
[ "MIT" ]
41
2021-03-11T22:15:53.000Z
2022-03-29T00:53:09.000Z
deepxml/libs/collate_fn.py
ethen8181/deepxml
81dedfbe8d67170569a9a1bff989a74b4e7da859
[ "MIT" ]
9
2021-06-16T02:05:56.000Z
2022-01-18T08:41:25.000Z
deepxml/libs/collate_fn.py
ethen8181/deepxml
81dedfbe8d67170569a9a1bff989a74b4e7da859
[ "MIT" ]
9
2021-06-11T09:34:21.000Z
2022-01-23T01:50:44.000Z
import torch import numpy as np from torch.nn.utils.rnn import pad_sequence def pad_and_collate(x, pad_val=0, dtype=torch.FloatTensor): """ A generalized function for padding batch using utils.rnn.pad_sequence * pad as per the maximum length in the batch * returns a collated tensor Arguments: ...
35.488
79
0.645401
169108c1272c740c0b15bbd8b8e7d3608734d100
957
py
Python
lexicon/tests/providers/test_safedns.py
tlusser-inv/lexicon
700d9912fb4628414dae1f7b9783837eb8d796e0
[ "MIT" ]
null
null
null
lexicon/tests/providers/test_safedns.py
tlusser-inv/lexicon
700d9912fb4628414dae1f7b9783837eb8d796e0
[ "MIT" ]
null
null
null
lexicon/tests/providers/test_safedns.py
tlusser-inv/lexicon
700d9912fb4628414dae1f7b9783837eb8d796e0
[ "MIT" ]
null
null
null
"""Test for one implementation of the interface""" from unittest import TestCase import pytest from lexicon.tests.providers.integration_tests import IntegrationTests # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, b...
39.875
93
0.783699
40cd6691bf827aa3b0ce4a567a2fdb01d328b40f
14,844
py
Python
codes/dgmpm_stability/2DEuler_cfl.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
1
2021-06-18T14:52:03.000Z
2021-06-18T14:52:03.000Z
codes/dgmpm_stability/2DEuler_cfl.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
1
2019-01-07T13:11:11.000Z
2019-01-07T13:11:11.000Z
codes/dgmpm_stability/2DEuler_cfl.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
null
null
null
#!/usr/bin/python import numpy as np from scipy import optimize from sympy import * import matplotlib.pyplot as plt import pdb # def evalResidual(point,S,Sp,CFL): # Res=0. # if S.shape[0]==1: # S1=[S[0,0]] # S2=[S[0,1]] # Sum1=np.sum(S1) ; Sum2=np.sum(S2) # Nmp=1 # else: # ...
35.597122
149
0.575788
7aebea7248e052897061da4c796e9ac751a4f369
709
py
Python
ground/core/robust.py
lycantropos/ground
ef6f54b8cb555af8d9202d621cac57a892ecb78d
[ "MIT" ]
4
2021-05-15T19:15:56.000Z
2021-11-30T06:19:47.000Z
ground/core/robust.py
lycantropos/ground
ef6f54b8cb555af8d9202d621cac57a892ecb78d
[ "MIT" ]
null
null
null
ground/core/robust.py
lycantropos/ground
ef6f54b8cb555af8d9202d621cac57a892ecb78d
[ "MIT" ]
null
null
null
from shewchuk import Expansion from .hints import Scalar from .primitive import square def to_cross_product(first_x: Scalar, first_y: Scalar, second_x: Scalar, second_y: Scalar) -> Expansion: """ Returns expansion of vectors' cross product. "...
30.826087
72
0.569817
4d032bf0645e5a2e57a859a4ccbd40555d55aee7
2,741
py
Python
post_quant/accuracy_test.py
qinjian623/pytorch_toys
7f4761bddc65282ea31a2d0f9eb146772276dd7c
[ "MIT" ]
56
2019-12-03T15:58:01.000Z
2022-03-31T07:05:48.000Z
post_quant/accuracy_test.py
qinjian623/pytorch_toys
7f4761bddc65282ea31a2d0f9eb146772276dd7c
[ "MIT" ]
1
2021-07-22T08:13:46.000Z
2022-03-24T13:23:35.000Z
post_quant/accuracy_test.py
qinjian623/pytorch_toys
7f4761bddc65282ea31a2d0f9eb146772276dd7c
[ "MIT" ]
18
2020-05-12T02:17:58.000Z
2022-03-31T07:05:47.000Z
# Borrowed from examples import torch import time class AverageMeter(object): """Computes and stores the average and current value""" def __init__(self): self.reset() def reset(self): self.val = 0 self.avg = 0 self.sum = 0 self.count = 0 def update(self, val, ...
30.455556
88
0.530463
8bb88405ae47d47725673fbdb524d3dc4a1dac35
759
py
Python
odeExercise/ode.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
odeExercise/ode.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
odeExercise/ode.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt # solve ODE y^{(maxdeg)}=F(x,y',\dots,y^{(maxdeg-1)}) maxdeg = 2 x_init = 0.0 # y(0)=0,y'(0)=-1.0 y0_init, y1_init = 0.0, -1.0 # F=-y F = lambda x, y: -y[0] # set initial value x = x_init y = np.array([y0_init, y1_init]) # create tmp array to define fv fs = [lam...
21.083333
65
0.594203
f5df20a3535c9829ebf6fd3e6f67d0fb49a18534
422
py
Python
leetcode/editor/practice/skip_list.py
KAIKAIZHANG/Algorithm
755547dea7f055919abfe9165279fc08e120b75d
[ "MIT" ]
1
2019-03-01T09:00:40.000Z
2019-03-01T09:00:40.000Z
leetcode/editor/practice/skip_list.py
KAIKAIZHANG/Algorithm
755547dea7f055919abfe9165279fc08e120b75d
[ "MIT" ]
null
null
null
leetcode/editor/practice/skip_list.py
KAIKAIZHANG/Algorithm
755547dea7f055919abfe9165279fc08e120b75d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 跳表的实现 """ import random from typing import Optional class ListNode: def __init__(self, data: Optional[int] = None): self._data = data self._forwards = [] # Forward pointers class SkipList: _MAX_LEVEL = 16 def __init__(self): self._level_count = 1 ...
15.62963
59
0.599526
f5840223c98f7a77cbebcbe0f617f0bbe1a0c153
216
py
Python
lectures/scripts-DATA/physics/mean.py
cmsc6950-spring-2018/CMSC6950.github.io
9dcbddc30c0df1550f796a836f956aaaa091573a
[ "CC-BY-4.0" ]
null
null
null
lectures/scripts-DATA/physics/mean.py
cmsc6950-spring-2018/CMSC6950.github.io
9dcbddc30c0df1550f796a836f956aaaa091573a
[ "CC-BY-4.0" ]
null
null
null
lectures/scripts-DATA/physics/mean.py
cmsc6950-spring-2018/CMSC6950.github.io
9dcbddc30c0df1550f796a836f956aaaa091573a
[ "CC-BY-4.0" ]
1
2020-05-23T00:59:08.000Z
2020-05-23T00:59:08.000Z
def mean(num_list): if len(num_list) == 0 : raise Exception("The algebraic mean of an empty list is undefined. \ Please provide a list of numbers") else : return sum(num_list)/len(num_list)
30.857143
74
0.657407
1abf09bbd521a2a521fffefa046029add9690aae
11,583
py
Python
features/steps/managers/kobiton_manager.py
lordkyzr/launchkey-python
4a6c13c2e60c5f38c4cb749d6a887eb1ac813c0c
[ "MIT" ]
9
2017-10-12T02:45:23.000Z
2021-01-11T05:44:13.000Z
features/steps/managers/kobiton_manager.py
lordkyzr/launchkey-python
4a6c13c2e60c5f38c4cb749d6a887eb1ac813c0c
[ "MIT" ]
31
2018-09-12T00:17:10.000Z
2022-01-31T21:35:04.000Z
features/steps/managers/kobiton_manager.py
lordkyzr/launchkey-python
4a6c13c2e60c5f38c4cb749d6a887eb1ac813c0c
[ "MIT" ]
11
2017-01-31T21:45:29.000Z
2022-01-28T00:56:48.000Z
import requests from time import sleep class Version: def __init__(self, id, state=None, version=None, native_properties=None, latest=None): """ Kobiton App Version. Note that no values are required based on the spec so any value can default to None. See: See: https://api...
34.679641
113
0.555469
5990789e1af2d1b83eac8c7f3470da95965b40ab
444
py
Python
cog/migrations/0006_auto_20160303_1043.py
downiec/COG
cea8ceac701958b6af8e272698bfb08d89f62bf4
[ "BSD-3-Clause" ]
6
2016-03-10T19:38:17.000Z
2021-02-23T09:34:59.000Z
cog/migrations/0006_auto_20160303_1043.py
downiec/COG
cea8ceac701958b6af8e272698bfb08d89f62bf4
[ "BSD-3-Clause" ]
602
2015-01-05T16:30:08.000Z
2021-02-02T21:44:38.000Z
cog/migrations/0006_auto_20160303_1043.py
cedadev/COG
6167f9114c7cf0422b34fb9f5f3f07f9657a7dbe
[ "BSD-3-Clause" ]
18
2015-02-12T15:50:17.000Z
2021-04-27T16:40:36.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-03-03 10:43 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cog', '0005_project_shared'), ] operations = [ migrations.AlterField( ...
21.142857
52
0.61036
f6c2497aff4a7407319dec0fb891e82376628440
38
py
Python
scvelo/pl.py
WeilerP/scvelo
1805ab4a72d3f34496f0ef246500a159f619d3a2
[ "BSD-3-Clause" ]
272
2018-08-21T08:59:11.000Z
2022-03-30T11:24:19.000Z
scvelo/pl.py
theislab/scvelo
1805ab4a72d3f34496f0ef246500a159f619d3a2
[ "BSD-3-Clause" ]
570
2018-08-21T14:04:03.000Z
2022-03-30T08:48:04.000Z
scvelo/pl.py
WeilerP/scvelo
1805ab4a72d3f34496f0ef246500a159f619d3a2
[ "BSD-3-Clause" ]
105
2018-09-04T14:08:58.000Z
2022-03-17T16:20:14.000Z
from scvelo.plotting import * # noqa
19
37
0.736842
e69333cf688de2dce9b6041fb6294a1da7cc265c
17,324
py
Python
prereise/gather/griddata/transmission/geometry.py
lanesmith/PreREISE
d9003b042cef18a064d6eb689b1218b5533712e2
[ "MIT" ]
null
null
null
prereise/gather/griddata/transmission/geometry.py
lanesmith/PreREISE
d9003b042cef18a064d6eb689b1218b5533712e2
[ "MIT" ]
null
null
null
prereise/gather/griddata/transmission/geometry.py
lanesmith/PreREISE
d9003b042cef18a064d6eb689b1218b5533712e2
[ "MIT" ]
1
2022-02-23T20:43:36.000Z
2022-02-23T20:43:36.000Z
import cmath from dataclasses import dataclass, field from itertools import combinations from math import exp, log, pi, sqrt from statistics import geometric_mean from prereise.gather.griddata.transmission.const import ( epsilon_0, mu_0, relative_permeability, resistivity, ) from prereise.gather.gridda...
42.565111
88
0.648984
d943e5465c459c0279dae55fb74ef070bb61050d
1,566
py
Python
server.py
mgrabina/galoonline
f7ce7c366d7662a0d984f123ecc565fb70dd36e1
[ "MIT" ]
null
null
null
server.py
mgrabina/galoonline
f7ce7c366d7662a0d984f123ecc565fb70dd36e1
[ "MIT" ]
null
null
null
server.py
mgrabina/galoonline
f7ce7c366d7662a0d984f123ecc565fb70dd36e1
[ "MIT" ]
null
null
null
#!/usr/bin/python import threading import socket from concurrent.futures.thread import ThreadPoolExecutor from src import tcp_server from src import logic def client_handler(client: socket.socket): logic.menu(client) while True: msg = tcp_server.recv_msg(client) if client is None: ...
28.472727
108
0.619413
dc8f4480eb574ed98538c2a16befd555262d0d8a
1,662
py
Python
bin/musicboards_scraper.py
kemskems/otdet
a5e52e2d5ab1aea2f1b63676c87a051f187567da
[ "MIT" ]
1
2015-10-03T18:20:25.000Z
2015-10-03T18:20:25.000Z
bin/musicboards_scraper.py
kemskems/otdet
a5e52e2d5ab1aea2f1b63676c87a051f187567da
[ "MIT" ]
null
null
null
bin/musicboards_scraper.py
kemskems/otdet
a5e52e2d5ab1aea2f1b63676c87a051f187567da
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import os import os.path from bs4 import BeautifulSoup import requests def post_filter(tag): """Filter tag containing post.""" if tag.name != 'blockquote': return False if not tag.has_attr('class'): return False if isinstance(tag['class'], str): ...
33.24
76
0.600481
53103b18e1c00d75bb5958931d4fa0928a4d89ce
1,314
py
Python
Test/Misc/generator_close.py
rch/pyke-1.1.1
e399b06f0c655eb6baafebaed09b4eb8f9c44b82
[ "MIT" ]
76
2015-04-20T12:10:25.000Z
2021-11-27T20:26:27.000Z
Test/Misc/generator_close.py
w-simon/pyke
cfe95d8aaa06de123264f9b7f5bea20eb5924ecd
[ "MIT" ]
2
2016-03-09T14:33:27.000Z
2018-10-22T11:25:49.000Z
Test/Misc/generator_close.py
w-simon/pyke
cfe95d8aaa06de123264f9b7f5bea20eb5924ecd
[ "MIT" ]
42
2015-03-16T13:11:30.000Z
2022-02-12T14:45:48.000Z
# generator_close.py import sys class Backup(Exception): pass def gen1(name, n): try: try: for i in range(n): yield i except Exception, e: print "gen1(%s) => %s: %s" % (name, e.__class__.__name__, str(e)) raise finally: print "gen1(%s) done" % name ...
26.816327
77
0.487062
6144ac8ed1ce668c7ef5a3213525d22c83442ed1
2,566
py
Python
Pseudocode/Tests/tests.py
ashtonhess/augurFork4320Group1
642f3df9480d50bf6e1908ad37a296e73ae6c3b5
[ "MIT" ]
null
null
null
Pseudocode/Tests/tests.py
ashtonhess/augurFork4320Group1
642f3df9480d50bf6e1908ad37a296e73ae6c3b5
[ "MIT" ]
null
null
null
Pseudocode/Tests/tests.py
ashtonhess/augurFork4320Group1
642f3df9480d50bf6e1908ad37a296e73ae6c3b5
[ "MIT" ]
null
null
null
#SPDX-License-Identifier: MIT """ Metrics that provides data about contributors & their associated activity """ import datetime import sqlalchemy as s import pandas as pd from augur.util import register_metric @register_metric() def issues_first_time_opened(self, repo_group_id, repo_id=None, period='day', begin_date=...
49.346154
137
0.698753
07048cf68353a018aaba0c3123f0bc948bc7bd9b
1,026
py
Python
scenarios/scenario_zone_estimation.py
rahowa/workzone
b6fd3241fdbc9463e0e7eb863f82f9524be50830
[ "MIT" ]
1
2020-04-25T07:49:11.000Z
2020-04-25T07:49:11.000Z
scenarios/scenario_zone_estimation.py
rahowa/workzone
b6fd3241fdbc9463e0e7eb863f82f9524be50830
[ "MIT" ]
null
null
null
scenarios/scenario_zone_estimation.py
rahowa/workzone
b6fd3241fdbc9463e0e7eb863f82f9524be50830
[ "MIT" ]
1
2020-04-23T10:24:56.000Z
2020-04-23T10:24:56.000Z
import cv2 import requests import numpy as np def main_zone_estimation(address: str) -> None: route = "workzone" test_url = f"{address}/{route}" content_type = 'image/jpeg' headers = {'content-type': content_type} cap = cv2.VideoCapture(0) cap.set(3, 640) cap.set(4, 480) while Tr...
29.314286
97
0.569201
406f1e6e1ab452ba24eade1291abbfe974f128f0
8,546
py
Python
jina/parsers/helper.py
Akshat-unt/jina
b0b058f99f3ee4dcbcbbf2acbf04c5d7e7e9c717
[ "Apache-2.0" ]
1
2021-12-18T06:54:49.000Z
2021-12-18T06:54:49.000Z
jina/parsers/helper.py
Akshat-unt/jina
b0b058f99f3ee4dcbcbbf2acbf04c5d7e7e9c717
[ "Apache-2.0" ]
2
2021-12-17T15:22:12.000Z
2021-12-18T07:19:06.000Z
jina/parsers/helper.py
Akshat-unt/jina
b0b058f99f3ee4dcbcbbf2acbf04c5d7e7e9c717
[ "Apache-2.0" ]
null
null
null
"""Module for helper functions in the parser""" import argparse import os import warnings from typing import Tuple, List _SHOW_ALL_ARGS = 'JINA_FULL_CLI' in os.environ if _SHOW_ALL_ARGS: from jina.logging.predefined import default_logger default_logger.warning( f'Setting {_SHOW_ALL_ARGS} will make rem...
32.869231
97
0.547508
a577f395b4963e94d1d3039364bd52b32f9f2c38
1,203
py
Python
biblioteca/urls.py
gabriel-roque/django-study
f14b918c964e4399a16b2ed80fdf8816a13000dd
[ "MIT" ]
null
null
null
biblioteca/urls.py
gabriel-roque/django-study
f14b918c964e4399a16b2ed80fdf8816a13000dd
[ "MIT" ]
null
null
null
biblioteca/urls.py
gabriel-roque/django-study
f14b918c964e4399a16b2ed80fdf8816a13000dd
[ "MIT" ]
null
null
null
"""biblioteca URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
35.382353
94
0.718204
0ff3a6b6a5cff5928db63691086b9c396d80e29a
2,090
py
Python
scripts/manage_tool_dependencies.py
innovate-invent/galaxy
10aa953a40e171246bdd1804c74e8019da8e8200
[ "CC-BY-3.0" ]
2
2017-10-23T14:44:12.000Z
2018-01-14T10:37:28.000Z
scripts/manage_tool_dependencies.py
innovate-invent/galaxy
10aa953a40e171246bdd1804c74e8019da8e8200
[ "CC-BY-3.0" ]
30
2016-10-20T15:35:12.000Z
2018-10-02T15:59:54.000Z
scripts/manage_tool_dependencies.py
innovate-invent/galaxy
10aa953a40e171246bdd1804c74e8019da8e8200
[ "CC-BY-3.0" ]
7
2016-11-03T19:11:01.000Z
2020-05-11T14:23:52.000Z
import os.path import sys sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'lib'))) from galaxy.config import ( configure_logging, find_path, find_root, parse_dependency_options, ) from galaxy.tools.deps import CachedDependencyManager, DependencyManager, NullDepend...
34.262295
126
0.754545
36835fa3410d9d8b52eccda868313783b6d55683
11,650
py
Python
MetamorphicTests/all_mutants/sales_forecasting_file/245.py
anuragbms/Sales-forecasting-with-RNNs
22b4639ecbb48381af53326ace94a3538201b586
[ "Apache-2.0" ]
null
null
null
MetamorphicTests/all_mutants/sales_forecasting_file/245.py
anuragbms/Sales-forecasting-with-RNNs
22b4639ecbb48381af53326ace94a3538201b586
[ "Apache-2.0" ]
null
null
null
MetamorphicTests/all_mutants/sales_forecasting_file/245.py
anuragbms/Sales-forecasting-with-RNNs
22b4639ecbb48381af53326ace94a3538201b586
[ "Apache-2.0" ]
1
2022-02-06T14:59:43.000Z
2022-02-06T14:59:43.000Z
def gen_mutants(): import tensorflow as tf import pandas import numpy as np DATAFILE_TRAIN = 'mock_kaggle_edit_train.csv' DATAFILE_VALIDATE = 'mock_kaggle_edit_...
31.233244
232
0.6297
216e02a95b95ac068e37a8d44cbb0f32bf14a933
9,242
py
Python
tests/components/stream/test_recorder.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
null
null
null
tests/components/stream/test_recorder.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
43
2021-04-21T08:08:13.000Z
2022-03-31T06:09:50.000Z
tests/components/stream/test_recorder.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
null
null
null
"""The tests for hls streams.""" from __future__ import annotations import asyncio from collections import deque from datetime import timedelta from io import BytesIO import logging import os import threading from unittest.mock import patch import async_timeout import av import pytest from homeassistant.components.s...
32.202091
86
0.691301
f2c252ed627d49e8daaf55e83108367d0057328a
547
py
Python
ACME/topology/poly2lin.py
mauriziokovacic/ACME
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
3
2019-10-23T23:10:55.000Z
2021-09-01T07:30:14.000Z
ACME/topology/poly2lin.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
null
null
null
ACME/topology/poly2lin.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
1
2020-07-11T11:35:43.000Z
2020-07-11T11:35:43.000Z
from ..utility.row import * from ..utility.col import * from ..utility.flatten import * from ..utility.indices import * from ..utility.repmat import * def poly2lin(T): """ Returns the indices of the topology nodes, along with their respective polygon indices. Parameters ---------- T ...
21.88
63
0.628885
514f8a2f0a4a33fbd1427cfa46702c0e44f75ee0
5,823
py
Python
docs/markdown_generator.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
33
2021-02-26T10:41:09.000Z
2021-11-07T12:35:32.000Z
docs/markdown_generator.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
17
2021-03-04T15:37:21.000Z
2021-04-06T12:00:13.000Z
docs/markdown_generator.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
9
2021-03-03T20:02:41.000Z
2021-10-05T13:03:56.000Z
import os import re # This script will go over the modules listed in libraries and generates an md file with all docstrings for each one of # modules using the third party library - pydocmd. # It then does some editing on the file so it shows nicely in github's wiki. # notice that pydoc will only list the outermost de...
38.058824
120
0.522926
de5b4b4330761625b6f156b70087388573ec593f
667
py
Python
client/pylookyloo/api.py
robertdigital/lookyloo
c9cbf27accac519e7060edc1feeba364c0b8729a
[ "BSD-3-Clause" ]
1
2020-02-05T16:50:17.000Z
2020-02-05T16:50:17.000Z
client/pylookyloo/api.py
robertdigital/lookyloo
c9cbf27accac519e7060edc1feeba364c0b8729a
[ "BSD-3-Clause" ]
null
null
null
client/pylookyloo/api.py
robertdigital/lookyloo
c9cbf27accac519e7060edc1feeba364c0b8729a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import requests import json from urllib.parse import urljoin class Lookyloo(): def __init__(self, root_url: str='https://lookyloo.circl.lu/'): self.root_url = root_url if not self.root_url.endswith('/'): self.root_url += '/' sel...
25.653846
101
0.626687
0d7557e2da4dedcf3431e93544e46bd147f0d844
34
py
Python
pylinenotify/__init__.py
reud/PyLineNotify
da0ab2591f9087919ca549412756ddbbcb607983
[ "MIT" ]
3
2019-03-09T08:28:41.000Z
2020-02-24T00:51:05.000Z
pylinenotify/__init__.py
reud/PyLineNotify
da0ab2591f9087919ca549412756ddbbcb607983
[ "MIT" ]
3
2019-02-05T03:54:19.000Z
2020-03-31T01:37:29.000Z
pylinenotify/__init__.py
reud/PyLineNotify
da0ab2591f9087919ca549412756ddbbcb607983
[ "MIT" ]
2
2020-04-25T16:12:33.000Z
2021-06-08T04:40:01.000Z
from pylinenotify.notifer import *
34
34
0.852941
cc83268cd4b2a730f9818a8eeb293fef290a058b
1,702
py
Python
setup.py
Hwesta/python-client-sword2
db1660d6a48fa1f6c69b97b3ece7916fdafc555c
[ "MIT" ]
null
null
null
setup.py
Hwesta/python-client-sword2
db1660d6a48fa1f6c69b97b3ece7916fdafc555c
[ "MIT" ]
2
2017-02-27T11:44:44.000Z
2021-01-28T13:13:13.000Z
setup.py
Hwesta/python-client-sword2
db1660d6a48fa1f6c69b97b3ece7916fdafc555c
[ "MIT" ]
2
2016-12-08T14:48:27.000Z
2021-01-19T08:56:10.000Z
from setuptools import setup, find_packages import sys, os version = '0.1' try: from mercurial import ui, hg, error repo = hg.repository(ui.ui(), ".") ver = repo[version] except ImportError: pass except error.RepoLookupError: tip = repo["tip"] version = version + ".%s.%s" % (tip.rev(), tip.hex...
29.344828
77
0.610458
ed754326aef8abc5b8f48c3870d574d513272228
2,072
py
Python
setup/05-negative_testing_rule.py
eficode-academy/rf-katas-sl
bcb24ffa151db0abd13720b403cdb3af9bc3e743
[ "MIT" ]
10
2020-09-28T10:27:39.000Z
2022-02-22T08:16:08.000Z
setup/05-negative_testing_rule.py
eficode-academy/rf-katas-sl
bcb24ffa151db0abd13720b403cdb3af9bc3e743
[ "MIT" ]
11
2020-10-07T08:46:16.000Z
2022-02-16T06:36:53.000Z
setup/05-negative_testing_rule.py
eficode-academy/rf-katas-sl
bcb24ffa151db0abd13720b403cdb3af9bc3e743
[ "MIT" ]
16
2020-10-04T11:27:06.000Z
2022-02-22T14:45:27.000Z
from rflint.common import KeywordRule, SuiteRule, TestRule, ERROR from static import normalize MUST_KEYWORDS = [ "Enter Username", "Enter Password", "Submit Login Form", "Verify That Error Page Is Visible" ] SETUP_KEYWORD = "Open Browser To Login Page" class KeywordImplementationRule05(KeywordRule):...
37
159
0.601351
aa5f3c963ff4ae8bd9c79be97636e00c31b64ef7
5,023
py
Python
mla/neuralnet/nnet.py
Gewissta/MLAlgorithms
62633dd30230a8bdc13826b37ea51ce39df69fb9
[ "MIT" ]
5
2019-09-23T19:52:40.000Z
2022-01-07T20:12:49.000Z
mla/neuralnet/nnet.py
Gewissta/MLAlgorithms
62633dd30230a8bdc13826b37ea51ce39df69fb9
[ "MIT" ]
null
null
null
mla/neuralnet/nnet.py
Gewissta/MLAlgorithms
62633dd30230a8bdc13826b37ea51ce39df69fb9
[ "MIT" ]
1
2020-07-20T22:52:57.000Z
2020-07-20T22:52:57.000Z
import logging import numpy as np from autograd import elementwise_grad from mla.base import BaseEstimator from mla.metrics.metrics import get_metric from mla.neuralnet.layers import PhaseMixin from mla.neuralnet.loss import get_loss from mla.utils import batch_iterator np.random.seed(9999) """ Architecture inspire...
29.034682
110
0.606211
6b419cbcc7d12505763aeb8e89943fb2866586c4
12,090
py
Python
geomodelgrids/scripts/generate_points.py
baagaard-usgs/geomodelgrids
9b3b6879038691cf686a79d95b1c33092f154258
[ "RSA-MD" ]
2
2020-09-01T23:09:02.000Z
2020-09-10T02:37:02.000Z
geomodelgrids/scripts/generate_points.py
baagaard-usgs/geomodelgrids
9b3b6879038691cf686a79d95b1c33092f154258
[ "RSA-MD" ]
88
2019-10-04T18:19:19.000Z
2021-10-20T01:54:08.000Z
geomodelgrids/scripts/generate_points.py
baagaard-usgs/geomodelgrids
9b3b6879038691cf686a79d95b1c33092f154258
[ "RSA-MD" ]
1
2019-10-18T17:17:31.000Z
2019-10-18T17:17:31.000Z
#!/usr/bin/env python # ====================================================================== # # Brad T. Aagaard # U.S. Geological Survey # # ====================================================================== # import math import logging import numpy import os ...
37.314815
180
0.551282
82ef49538df4672eed7503fdc29ab16b7b293381
8,349
py
Python
HW08_Wordle_Test_final.py
aishwaryashirbhate/Wordle-project
565895b6d687ce0b3d3d89adc358f07d1206c62f
[ "MIT" ]
null
null
null
HW08_Wordle_Test_final.py
aishwaryashirbhate/Wordle-project
565895b6d687ce0b3d3d89adc358f07d1206c62f
[ "MIT" ]
null
null
null
HW08_Wordle_Test_final.py
aishwaryashirbhate/Wordle-project
565895b6d687ce0b3d3d89adc358f07d1206c62f
[ "MIT" ]
null
null
null
import unittest from unittest.mock import patch import os import HW08_Aishwarya_Shirbhate_dictionary_final as dict import HW08_Aishwarya_Shirbhate_wordle_final as w import HW08_Aishwarya_Shirbhate_ui_final as ui import HW08_Aishwarya_Shirbhate_occurence_stats_final as oss import HW08_Aishwarya_Shirbhate_utility_final a...
41.331683
115
0.577195
51c495053a0a3ce5ea8e40c65df3ed70ec3809ff
2,847
py
Python
train.py
ikathuria/ASLRecognition
87f3ecc7d630c95f7c3bdc9d514f7ed71a6ac2bf
[ "MIT" ]
null
null
null
train.py
ikathuria/ASLRecognition
87f3ecc7d630c95f7c3bdc9d514f7ed71a6ac2bf
[ "MIT" ]
3
2021-03-14T09:17:33.000Z
2021-03-14T09:25:57.000Z
train.py
ikathuria/ASLRecognition
87f3ecc7d630c95f7c3bdc9d514f7ed71a6ac2bf
[ "MIT" ]
1
2021-02-25T06:42:36.000Z
2021-02-25T06:42:36.000Z
"""Training the Convolutional Neural Network.""" import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import cv2 import numpy as np from sklearn.model_selection import train_test_split from keras.models import Sequential from keras.layers import Conv2D, MaxPooling2D from keras.layers import Dense, Dropout, Flatten, Bat...
25.419643
68
0.692659
1fc1e5c793d75b4483f1c284678826e9b661bdb1
5,495
py
Python
gst-python-samples/Gstreamer-Applications/gst_audio/audio_record.py
raikonenfnu/sample-apps-for-Qualcomm-Robotics-RB5-platform
61b56352ce0c9a98afa67fff57bd40c4d319c721
[ "BSD-3-Clause-Clear" ]
30
2020-10-01T07:53:25.000Z
2022-03-25T07:36:32.000Z
gst-python-samples/Gstreamer-Applications/gst_audio/audio_record.py
raikonenfnu/sample-apps-for-Qualcomm-Robotics-RB5-platform
61b56352ce0c9a98afa67fff57bd40c4d319c721
[ "BSD-3-Clause-Clear" ]
43
2020-10-13T01:39:42.000Z
2022-03-29T02:13:43.000Z
gst-python-samples/Gstreamer-Applications/gst_audio/audio_record.py
raikonenfnu/sample-apps-for-Qualcomm-Robotics-RB5-platform
61b56352ce0c9a98afa67fff57bd40c4d319c721
[ "BSD-3-Clause-Clear" ]
19
2020-10-19T19:28:12.000Z
2022-03-30T07:08:22.000Z
import sys import gi import logging import os gi.require_version("GLib", "2.0") gi.require_version("GObject", "2.0") gi.require_version("Gst", "1.0") from gi.repository import Gst, GLib, GObject logging.basicConfig(level=logging.DEBUG, format="[%(name)s] [%(levelname)8s] - %(message)s") logger = ...
30.192308
99
0.666424
de38db859fa04c7fe69b403a6cafbd7b10dfd02b
633
py
Python
tree.py
jdowner/tree
f85ba0423a2877e1b2c63ee4c426acf2e1aab3e2
[ "MIT" ]
null
null
null
tree.py
jdowner/tree
f85ba0423a2877e1b2c63ee4c426acf2e1aab3e2
[ "MIT" ]
null
null
null
tree.py
jdowner/tree
f85ba0423a2877e1b2c63ee4c426acf2e1aab3e2
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import networkx as nx graph = nx.DiGraph(["ac", "cd", "ce", "ab", 'ef','dg', 'dh']) def tree(graph): def recurse(node, padding, last=False): if last: print(u"{}└── {}".format(padding[:-4], node)) else: print(u"{}├── {}".format(padd...
24.346154
63
0.507109
38c1c316f2c8173a20cd2492693e96e4f86b7119
7,446
py
Python
utils.py
Zhang-Shubo/ai_nlp_model_zoo
1fe384463cafbef89f4b0d27917ac94f2ff2c6f1
[ "MIT" ]
null
null
null
utils.py
Zhang-Shubo/ai_nlp_model_zoo
1fe384463cafbef89f4b0d27917ac94f2ff2c6f1
[ "MIT" ]
null
null
null
utils.py
Zhang-Shubo/ai_nlp_model_zoo
1fe384463cafbef89f4b0d27917ac94f2ff2c6f1
[ "MIT" ]
null
null
null
# time: 2021/4/28 22:50 # File: utils.py # Author: zhangshubo # Mail: supozhang@126.com import json import os import random import torch _bert_token_dict = json.loads(open("data/bert/bert-base-chinese/tokenizer.json", encoding="utf-8").read())["model"][ "vocab"] def read_nlpcc_text(path): with open(path, "r...
31.025
116
0.520682
ccc1ddcce371e88b15292df250f1f5cee4dd1481
6,590
py
Python
util.py
michaelbeyhs/craigCrawler
23246a067d15b8bf2cb1f367716b7d57ee3f3afa
[ "MIT" ]
null
null
null
util.py
michaelbeyhs/craigCrawler
23246a067d15b8bf2cb1f367716b7d57ee3f3afa
[ "MIT" ]
null
null
null
util.py
michaelbeyhs/craigCrawler
23246a067d15b8bf2cb1f367716b7d57ee3f3afa
[ "MIT" ]
null
null
null
import settings import math from walkscore.api import WalkScore colorGradient = [ "#FF0000", "#FF2300", "#FF4600", "#FF6900", "#FF8C00", "#FFAF00", "#FFD300", "#FFF600", "#E5FF00", "#C2FF00", "#9FFF00", "#7CFF00", "#58FF00", "#35FF00", "#12FF00", ] numOfColoG...
36.208791
232
0.568741
ca2964a07d716eae8806849527f9eb377aea7ea6
1,470
py
Python
test/test_profiler.py
gabrielelanaro/profiling
8b70a10219dd11868279c8417b8808539d918157
[ "BSD-3-Clause" ]
6
2015-05-18T12:58:33.000Z
2019-07-31T06:56:29.000Z
test/test_profiler.py
gabrielelanaro/profiling
8b70a10219dd11868279c8417b8808539d918157
[ "BSD-3-Clause" ]
null
null
null
test/test_profiler.py
gabrielelanaro/profiling
8b70a10219dd11868279c8417b8808539d918157
[ "BSD-3-Clause" ]
2
2018-01-04T20:10:04.000Z
2021-03-26T06:16:42.000Z
# -*- coding: utf-8 -*- import pytest from profiling.profiler import Profiler, ProfilerWrapper from utils import foo, spin class NullProfiler(Profiler): def run(self): yield class NullProfilerWrapper(ProfilerWrapper): def run(self): with self.profiler: yield @pytest.fixture ...
24.5
56
0.690476
b93b053e0d5ba7a393da5cea4b7e59281dcff166
3,684
py
Python
discord/oggparse.py
brotherelric/deezcord.py
f7419bf2c67c2006702cccc4850cd9332bce00c6
[ "MIT" ]
null
null
null
discord/oggparse.py
brotherelric/deezcord.py
f7419bf2c67c2006702cccc4850cd9332bce00c6
[ "MIT" ]
null
null
null
discord/oggparse.py
brotherelric/deezcord.py
f7419bf2c67c2006702cccc4850cd9332bce00c6
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz Copyright (c) 2021-present 404kuso 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 th...
32.034783
77
0.639251
802e43aa878cf9c654dc6becd6370fbddf336fc2
32,987
py
Python
environ/test.py
jbagot/django-environ
ecda4bd0189ddd6a5faa5de044df5def47e6ca38
[ "MIT" ]
null
null
null
environ/test.py
jbagot/django-environ
ecda4bd0189ddd6a5faa5de044df5def47e6ca38
[ "MIT" ]
null
null
null
environ/test.py
jbagot/django-environ
ecda4bd0189ddd6a5faa5de044df5def47e6ca38
[ "MIT" ]
null
null
null
from __future__ import print_function import os import sys import unittest import warnings from .compat import ( json, DJANGO_POSTGRES, ImproperlyConfigured, REDIS_DRIVER, quote ) from environ import Env, Path class BaseTests(unittest.TestCase): URL = 'http://www.google.com/' POSTGRES = 'postgres://uf0...
42.618863
124
0.643951
10bfd093ed1b24a818b32e00a3605d320b1cbe6c
2,311
py
Python
app/core/tests/test_models.py
Pkawa/DRF-portfolio-project
a9029957ca551eeabc442d09195c603fcf7681fb
[ "MIT" ]
1
2021-07-07T00:27:35.000Z
2021-07-07T00:27:35.000Z
app/core/tests/test_models.py
Pkawa/DRF-portfolio-project
a9029957ca551eeabc442d09195c603fcf7681fb
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
Pkawa/DRF-portfolio-project
a9029957ca551eeabc442d09195c603fcf7681fb
[ "MIT" ]
1
2020-05-21T17:42:27.000Z
2020-05-21T17:42:27.000Z
from django.test import TestCase from django.contrib.auth import get_user_model from core import models def sample_user(email='someexampleemail@test.com', password='examplepassword'): """Create a sample user.""" return get_user_model().objects.create_user(email, password) class ModelTests(TestCase): d...
30.407895
79
0.640848
42e1cc0d06051662de9ec171582c4ee74dc24764
19,705
py
Python
python/quadruped_reactive_walking/crocoddyl_class/MPC_crocoddyl_planner.py
nim65s/quadruped-reactive-walking
1e0f4069fd11af85abf10bfc8f9d66200c672646
[ "BSD-2-Clause" ]
6
2021-03-03T10:59:19.000Z
2022-03-13T15:05:25.000Z
python/quadruped_reactive_walking/crocoddyl_class/MPC_crocoddyl_planner.py
nim65s/quadruped-reactive-walking
1e0f4069fd11af85abf10bfc8f9d66200c672646
[ "BSD-2-Clause" ]
1
2021-04-19T14:02:57.000Z
2021-04-19T14:02:57.000Z
python/quadruped_reactive_walking/crocoddyl_class/MPC_crocoddyl_planner.py
nim65s/quadruped-reactive-walking
1e0f4069fd11af85abf10bfc8f9d66200c672646
[ "BSD-2-Clause" ]
3
2021-03-05T08:12:05.000Z
2021-09-23T15:35:28.000Z
# coding: utf8 import sys import os from sys import argv sys.path.insert(0, os.getcwd()) # adds current directory to python path import crocoddyl import numpy as np import quadruped_walkgen import utils import pinocchio as pin class MPC_crocoddyl_planner(): """Wrapper class for the MPC problem to call the ddp so...
37.109228
160
0.548541
455aff1f414f049a16ef79218582c429bcdfc601
378
py
Python
answers/vjha21/Day9/question1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
22
2021-03-16T14:07:47.000Z
2021-08-13T08:52:50.000Z
answers/vjha21/Day9/question1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
174
2021-03-16T21:16:40.000Z
2021-06-12T05:19:51.000Z
answers/vjha21/Day9/question1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
135
2021-03-16T16:47:12.000Z
2021-06-27T14:22:38.000Z
##From a given array, return indices of the numbers such that they add up to target. def check_sum(array, key): for i in range(0, len(array) - 1): for j in range(i + 1, len(array) - 1): if (array[i] + array[j]) == key: return [i, j] if __name__ == "__main__": nums = [2, 7, ...
29.076923
84
0.560847
962a3038ab8e6d016cb515e497bbf12ca6792abe
21,525
py
Python
asteroid/masknn/recurrent.py
53X/asteroid
69e82fed49bab84975592ae868aaf6dceb91d6cd
[ "MIT" ]
1
2020-12-01T07:02:45.000Z
2020-12-01T07:02:45.000Z
asteroid/masknn/recurrent.py
53X/asteroid
69e82fed49bab84975592ae868aaf6dceb91d6cd
[ "MIT" ]
null
null
null
asteroid/masknn/recurrent.py
53X/asteroid
69e82fed49bab84975592ae868aaf6dceb91d6cd
[ "MIT" ]
null
null
null
import functools import numpy as np import torch from torch import nn from torch.nn.functional import fold, unfold from .. import complex_nn from ..utils import has_arg from . import activations, norms from ._dccrn_architectures import DCCRN_ARCHITECTURES from .base import BaseDCUMaskNet from .norms import CumLN, Glo...
37.697023
101
0.598513
2e7482ec37ff880c51b4b5982f2b13eb9c7a3523
8,800
py
Python
sdk/python/pulumi_azure_nextgen/network/v20200501/hub_virtual_network_connection.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20200501/hub_virtual_network_connection.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20200501/hub_virtual_network_connection.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
48.888889
299
0.684091
77b67570992a708dc6e6376bc552b253f0ad87c4
11,914
py
Python
chb/mips/MIPSFunction.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
chb/mips/MIPSFunction.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
chb/mips/MIPSFunction.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # CodeHawk Binary Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2020 Kestrel Technology LLC # Copyright (c) 2020-2021 Henny Si...
35.041176
84
0.601309
5263e3b833251d9fee3dcce81470734ad051223a
5,829
py
Python
tests/test_easel/test_msa.py
RuneBlaze/pyhmmer
9d013d23b3e276c0b63ed32f1e646c6a26c2c578
[ "MIT" ]
null
null
null
tests/test_easel/test_msa.py
RuneBlaze/pyhmmer
9d013d23b3e276c0b63ed32f1e646c6a26c2c578
[ "MIT" ]
null
null
null
tests/test_easel/test_msa.py
RuneBlaze/pyhmmer
9d013d23b3e276c0b63ed32f1e646c6a26c2c578
[ "MIT" ]
null
null
null
import copy import functools import gc import io import os import unittest import tempfile from pyhmmer import easel class TestMSA(object): @classmethod def setUpClass(cls): cls.formats_folder = os.path.realpath( os.path.join( __file__, os.pardir, os.pardir, os.pardir, "ve...
35.981481
97
0.641276
ded6795e7aa7eb09183f76ceeed6b7f3f3f4c2d3
9,895
py
Python
tests/test_module_calls.py
kalaspuff/utcnow
a2b0341f4b8a97b0dbd92b83ebac60be83aff0c3
[ "MIT" ]
null
null
null
tests/test_module_calls.py
kalaspuff/utcnow
a2b0341f4b8a97b0dbd92b83ebac60be83aff0c3
[ "MIT" ]
34
2021-02-18T09:36:19.000Z
2022-03-28T21:10:25.000Z
tests/test_module_calls.py
kalaspuff/utcnow
a2b0341f4b8a97b0dbd92b83ebac60be83aff0c3
[ "MIT" ]
null
null
null
import datetime def test_module() -> None: import utcnow # Test types assert type(utcnow) is utcnow._module assert len(str(utcnow)) == 27 assert isinstance(repr(utcnow), str) assert len(repr(utcnow)) == 27 # Modules aren't callable, but this one is – it's frowned upon and bad practice. ...
54.071038
103
0.657201
6b0a6d900c93b192795d7055eeaaa4a65e72dfcd
2,242
py
Python
tools/Vitis-AI-Quantizer/vai_q_pytorch/nndct_shared/utils/registry.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tools/Vitis-AI-Quantizer/vai_q_pytorch/nndct_shared/utils/registry.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tools/Vitis-AI-Quantizer/vai_q_pytorch/nndct_shared/utils/registry.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# # Copyright 2019 Xilinx 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 writi...
29.116883
80
0.67752
c1cf126a34cbab1157f4cab2fa22fa69dd133583
4,515
py
Python
src/main/python/bayou/server/search_server.py
rohan2606/bayou
eca7a6628aa5942aeb4b57f684013c7e15ccb171
[ "Apache-2.0" ]
1
2018-02-19T21:48:06.000Z
2018-02-19T21:48:06.000Z
src/main/python/bayou/server/search_server.py
rohan2606/bayou
eca7a6628aa5942aeb4b57f684013c7e15ccb171
[ "Apache-2.0" ]
null
null
null
src/main/python/bayou/server/search_server.py
rohan2606/bayou
eca7a6628aa5942aeb4b57f684013c7e15ccb171
[ "Apache-2.0" ]
1
2019-02-07T20:26:36.000Z
2019-02-07T20:26:36.000Z
# Copyright 2017 Rice University # # 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 i...
38.262712
131
0.609524
7d13ec589414d2b765fd3193027ddf4dd1eb2cc3
3,168
py
Python
Hanicam/FACE_KNOWN/faces/recognizer.py
ArianeFire/HaniCam
8a940486a613d680a0b556209a596cdf3eb71f53
[ "MIT" ]
null
null
null
Hanicam/FACE_KNOWN/faces/recognizer.py
ArianeFire/HaniCam
8a940486a613d680a0b556209a596cdf3eb71f53
[ "MIT" ]
null
null
null
Hanicam/FACE_KNOWN/faces/recognizer.py
ArianeFire/HaniCam
8a940486a613d680a0b556209a596cdf3eb71f53
[ "MIT" ]
null
null
null
import cv2 import cv import face #Function deleting the path link def deleteLink(link): lien = str(link) lien = lien.replace('/home/seydou/Hanicam/FACE_KNOWN/faces/','') lien = lien.replace('.bmp','') #Suppression des indices des noms for i in range(0,11) : lien = lien.replace(str(i),...
29.333333
101
0.580808
27b4a2b8f8e0bb2a910a3236527b3c34a591cfd9
100
py
Python
oss_server/web_interface/apps.py
PssbleTrngle/oss-server
e1b426e8c6411cbaa61af9a6d0ad0d892d6922d9
[ "MIT" ]
36
2021-01-18T11:58:17.000Z
2021-12-09T21:40:29.000Z
oss_server/web_interface/apps.py
PssbleTrngle/oss-server
e1b426e8c6411cbaa61af9a6d0ad0d892d6922d9
[ "MIT" ]
35
2020-03-25T11:52:13.000Z
2022-03-12T00:28:46.000Z
oss_server/web_interface/apps.py
PssbleTrngle/oss-server
e1b426e8c6411cbaa61af9a6d0ad0d892d6922d9
[ "MIT" ]
7
2021-08-09T02:21:49.000Z
2022-02-06T11:04:04.000Z
from django.apps import AppConfig class WebInterfaceConfig(AppConfig): name = 'web_interface'
16.666667
36
0.78
45971d26125097e52d05efcec5ed6a262c927f9d
3,227
py
Python
lab-day/LabDayBackend/labday_api/views.py
JanStoltman/LabDayBackend
6c960385b18dad86424e8e619c19bdb6c4d686ea
[ "MIT" ]
1
2018-02-09T10:49:17.000Z
2018-02-09T10:49:17.000Z
lab-day/LabDayBackend/labday_api/views.py
JanStoltman/LabDayBackend
6c960385b18dad86424e8e619c19bdb6c4d686ea
[ "MIT" ]
null
null
null
lab-day/LabDayBackend/labday_api/views.py
JanStoltman/LabDayBackend
6c960385b18dad86424e8e619c19bdb6c4d686ea
[ "MIT" ]
null
null
null
from itertools import chain from operator import attrgetter from django.http import HttpResponse import json from django.utils.crypto import get_random_string from drf_multiple_model.views import ObjectMultipleModelAPIView from rest_framework import viewsets from rest_framework.permissions import IsAuthenticated from ...
36.670455
109
0.718314
b0a43c03598107f65326fd13643e73d386dddacb
1,338
py
Python
userbot/plugins/divertente.py
Fregiant16/fregiantuserbot
6cb23022a1dfa66551c5ded1928d9fded16e0684
[ "MIT" ]
1
2020-04-14T15:19:47.000Z
2020-04-14T15:19:47.000Z
userbot/plugins/divertente.py
Fregiant16/fregiantuserbot
6cb23022a1dfa66551c5ded1928d9fded16e0684
[ "MIT" ]
null
null
null
userbot/plugins/divertente.py
Fregiant16/fregiantuserbot
6cb23022a1dfa66551c5ded1928d9fded16e0684
[ "MIT" ]
2
2020-12-01T02:27:27.000Z
2022-02-16T08:32:11.000Z
"""Emoji Available Commands: .emoji shrug .emoji apple .emoji :/ .emoji -_-""" from telethon import events from userbot.utils import admin_cmd import asyncio @borg.on(admin_cmd(pattern="puta")) @borg.on(events.NewMessage(pattern=r"\.(.*)", outgoing=True)) async def _(event): if event.fwd_from: return ...
20.272727
61
0.579223
6d1ad5bde7c5e3ed4ddb6d9dd0346fbe1d77df59
357
py
Python
src/services/recommender_from_ratings/__init__.py
Asa-Nisi-Masa/movie-recommender
92752aa302e166885ab3e39b3e9d2ac9185a013e
[ "MIT" ]
null
null
null
src/services/recommender_from_ratings/__init__.py
Asa-Nisi-Masa/movie-recommender
92752aa302e166885ab3e39b3e9d2ac9185a013e
[ "MIT" ]
null
null
null
src/services/recommender_from_ratings/__init__.py
Asa-Nisi-Masa/movie-recommender
92752aa302e166885ab3e39b3e9d2ac9185a013e
[ "MIT" ]
null
null
null
from src.services.user_ratings_manager import user_ratings_manager from src.movie_model import movie_model from src.services.movie_info_provider import movie_info_provider from .recommender_from_ratings import RecommenderFromRatings recommender_from_ratings = RecommenderFromRatings( user_ratings_manager, mov...
27.461538
66
0.859944
40ed32d7ab06bd0c4464fc0f1111498dd7d02ab3
9,826
py
Python
test/unit/common/middleware/crypto/test_keymaster.py
larsbutler/swift
216d68eaa861b0607f1a05828f757f19cb8e6b64
[ "Apache-2.0" ]
null
null
null
test/unit/common/middleware/crypto/test_keymaster.py
larsbutler/swift
216d68eaa861b0607f1a05828f757f19cb8e6b64
[ "Apache-2.0" ]
null
null
null
test/unit/common/middleware/crypto/test_keymaster.py
larsbutler/swift
216d68eaa861b0607f1a05828f757f19cb8e6b64
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015 OpenStack Foundation # # 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 app...
45.915888
79
0.567067
138e04aea5679cb7ef0ca1e4dda81fece8a17249
455
py
Python
ExcelIO/Csv2Excel3.py
koichi210/Python
9bc0be009bec15499540c1bf9ae802ffe1acfe10
[ "MIT" ]
null
null
null
ExcelIO/Csv2Excel3.py
koichi210/Python
9bc0be009bec15499540c1bf9ae802ffe1acfe10
[ "MIT" ]
null
null
null
ExcelIO/Csv2Excel3.py
koichi210/Python
9bc0be009bec15499540c1bf9ae802ffe1acfe10
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #Csv2Excel_append import csv import openpyxl TemplateExcelName = './Sample/Template.xlsx' ReadCsvName = './Sample/SourceData.csv' WriteExcelName = './Sample/Template_new.xlsx' # Bookを開く WorkBook = openpyxl.load_workbook(TemplateExcelName) WorkSheet = WorkBook.active f = open(ReadCsvName) ...
20.681818
52
0.742857
cac561d4eaecbb78e4ef7548d4118e05b7cd52b7
10,646
py
Python
src/protect/mutation_calling/common.py
banilmohammed/protect-1
24fe7a3829889fdde814003c467fc54d0387245b
[ "Apache-2.0" ]
null
null
null
src/protect/mutation_calling/common.py
banilmohammed/protect-1
24fe7a3829889fdde814003c467fc54d0387245b
[ "Apache-2.0" ]
3
2020-08-23T21:54:20.000Z
2020-10-19T22:46:41.000Z
src/protect/mutation_calling/common.py
Dranion/protect
67686040a64ca98e81482d93d39f6df4323b0bd8
[ "Apache-2.0" ]
1
2022-03-16T21:08:07.000Z
2022-03-16T21:08:07.000Z
#!/usr/bin/env python3 # Copyright 2016 UCSC Computational Genomics Lab # Original contributor: Arjun Arkal Rao # # 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/li...
43.631148
105
0.642495
1969f2eccb1c2ecfe2b89e9296bf3e189187e1bd
829
py
Python
examples/undocumented/python/kernel_multiquadric.py
cloner1984/shogun
901c04b2c6550918acf0594ef8afeb5dcd840a7d
[ "BSD-3-Clause" ]
1
2019-03-21T02:03:54.000Z
2019-03-21T02:03:54.000Z
examples/undocumented/python/kernel_multiquadric.py
cloner1984/shogun
901c04b2c6550918acf0594ef8afeb5dcd840a7d
[ "BSD-3-Clause" ]
null
null
null
examples/undocumented/python/kernel_multiquadric.py
cloner1984/shogun
901c04b2c6550918acf0594ef8afeb5dcd840a7d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import shogun as sg traindat = '../data/fm_train_real.dat' testdat = '../data/fm_test_real.dat' parameter_list=[[traindat,testdat, 1.0],[traindat,testdat, 5.0]] def kernel_multiquadric (train_fname=traindat,test_fname=testdat, shift_coef=1.0): from shogun import RealFeatures, kernel, distance,...
27.633333
82
0.782871
9801b77fffc1825a1021844840d1ae3ca5062fb1
8,115
py
Python
utilities/utilities.py
yazdanv/backend
49da8d46e108bc2000fdabc1b991836f2cc50687
[ "MIT" ]
2
2021-06-11T21:41:05.000Z
2021-06-16T03:58:16.000Z
utilities/utilities.py
AienTech/backend
a1c73e781e571e4a3ec0bc9598df44ccd876cf3c
[ "MIT" ]
null
null
null
utilities/utilities.py
AienTech/backend
a1c73e781e571e4a3ec0bc9598df44ccd876cf3c
[ "MIT" ]
1
2021-05-10T04:40:22.000Z
2021-05-10T04:40:22.000Z
import coreapi import magic import string import random import requests import re import uuid from datetime import timedelta from django.core.validators import EmailValidator, ValidationError from django.core.cache import cache from django.conf import settings from django.contrib.auth.tokens import PasswordResetTokenG...
31.453488
117
0.67024
63ff07af800be41ec071be37f16fb64ab288b715
477
py
Python
freight_forwarder/const.py
TUNE-Archive/freight_forwarder
6ea4a49f474ec04abb8bb81b175c774a16b5312f
[ "MIT" ]
null
null
null
freight_forwarder/const.py
TUNE-Archive/freight_forwarder
6ea4a49f474ec04abb8bb81b175c774a16b5312f
[ "MIT" ]
null
null
null
freight_forwarder/const.py
TUNE-Archive/freight_forwarder
6ea4a49f474ec04abb8bb81b175c774a16b5312f
[ "MIT" ]
null
null
null
# -*- coding: utf-8; -*- from __future__ import unicode_literals VERSION = "1.0.3-dev" # docker api DOCKER_DEFAULT_TIMEOUT = 120 DOCKER_API_VERSION = '1.20' # docker labels PROJECT_LABEL = 'com.freight-forwarder.project' TEAM_LABEL = 'com.freight-forwarder.team' VERSION_LABEL = 'com.freight-forwarder.ve...
28.058824
52
0.731656
4682080f4e8b9bbd96439d0554dcad3e51a07b8f
4,995
py
Python
qa/rpc-tests/wallet-hd.py
sanatorium/sanity
9f6e64ff94cf9a26406d83266d3e2f47da1213bc
[ "MIT" ]
null
null
null
qa/rpc-tests/wallet-hd.py
sanatorium/sanity
9f6e64ff94cf9a26406d83266d3e2f47da1213bc
[ "MIT" ]
null
null
null
qa/rpc-tests/wallet-hd.py
sanatorium/sanity
9f6e64ff94cf9a26406d83266d3e2f47da1213bc
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # coding=utf-8 # ^^^^^^^^^^^^ TODO remove when supporting only Python3 # Copyright (c) 2016 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 Hierarchical Deterministic walle...
43.815789
108
0.638839
84c2d417623e50060e10115db07d0271c945c13f
10,813
py
Python
jsonhandler.py
LaDane/Gamehelper
55357046471ca8eb560a787b52fd5cbf450d6697
[ "MIT" ]
null
null
null
jsonhandler.py
LaDane/Gamehelper
55357046471ca8eb560a787b52fd5cbf450d6697
[ "MIT" ]
null
null
null
jsonhandler.py
LaDane/Gamehelper
55357046471ca8eb560a787b52fd5cbf450d6697
[ "MIT" ]
null
null
null
import json import os from filehandler import FileHandler fh = FileHandler() class JsonHandler: def load_data(self): self.worlditems = fh.load_file('worlditems') self.currency = fh.load_file('currency') self.shops = fh.load_file('shops') self.charactersheet = fh.load_file('charac...
46.407725
170
0.603163
d7d9ae65c7b7bd3df4b2e7e1208130ca6aa15d4d
4,890
py
Python
docs/conf.py
mthnglac/parasut-cli
de2a1e69a63d5036e1486aad732ae4bc471e75dc
[ "MIT" ]
2
2021-03-08T06:53:31.000Z
2021-06-06T17:12:31.000Z
docs/conf.py
mthnglac/parasut-cli
de2a1e69a63d5036e1486aad732ae4bc471e75dc
[ "MIT" ]
17
2021-03-06T21:56:56.000Z
2022-03-12T14:09:06.000Z
docs/conf.py
mthnglac/parasut-cli
de2a1e69a63d5036e1486aad732ae4bc471e75dc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # parasut_cli documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # 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. # #...
29.107143
77
0.686503
d30696354fa579679b3adcdf399fe7fbb0166d97
3,288
py
Python
newsCrawl/fakeNews/fakeNews/settings.py
ARIF-KHAN-420/Fake_News
acfbffcce454afc09c4a7b06205c1a632c11f822
[ "MIT" ]
1
2022-01-03T17:54:03.000Z
2022-01-03T17:54:03.000Z
newsCrawl/fakeNews/fakeNews/settings.py
arifkhan-silicornya/Fake_News
acfbffcce454afc09c4a7b06205c1a632c11f822
[ "MIT" ]
null
null
null
newsCrawl/fakeNews/fakeNews/settings.py
arifkhan-silicornya/Fake_News
acfbffcce454afc09c4a7b06205c1a632c11f822
[ "MIT" ]
null
null
null
""" Django settings for fakeNews project. """ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.2/howto/dep...
23.826087
91
0.690085
cbec1cdb1b3985aa84e9207fef46e44f823483f4
5,629
py
Python
AirplaneReservationSystem/settings.py
BFlameSwift/AirplaneReservationSystem
bbabb0e258c72eb50fcbbf7ade437e38a39e6f02
[ "MIT" ]
3
2021-06-19T09:40:13.000Z
2021-06-19T17:09:54.000Z
AirplaneReservationSystem/settings.py
BFlameSwift/AirplaneReservationSystem
bbabb0e258c72eb50fcbbf7ade437e38a39e6f02
[ "MIT" ]
null
null
null
AirplaneReservationSystem/settings.py
BFlameSwift/AirplaneReservationSystem
bbabb0e258c72eb50fcbbf7ade437e38a39e6f02
[ "MIT" ]
1
2021-12-05T14:51:51.000Z
2021-12-05T14:51:51.000Z
""" Django settings for AirplaneReservationSystem project. Generated by 'django-admin startproject' using Django 3.2.2. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/...
25.242152
91
0.686978
5fa65247f308c10d37eba502ff149a0021f0daf6
13,182
py
Python
grid/migrations/0001_initial.py
santagada/djangopackages
18515cce5e220475e2d440455fd5117ba35e0bd9
[ "MIT" ]
2
2015-06-09T19:28:34.000Z
2015-09-21T15:44:18.000Z
grid/migrations/0001_initial.py
IlianIliev/opencomparison
1bbf9ab7b383012764adc3054dbaafd664b5520b
[ "MIT" ]
null
null
null
grid/migrations/0001_initial.py
IlianIliev/opencomparison
1bbf9ab7b383012764adc3054dbaafd664b5520b
[ "MIT" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): depends_on = ( ("package", "0016_auto__del_field_package_pypi_home_page"), ) def forwards(self, orm): # Ad...
71.254054
183
0.578289
631cb7537a683041b336211a26306300c1766471
3,990
py
Python
bokeh/io/tests/test_webdriver.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
12
2020-07-20T14:58:31.000Z
2021-09-04T22:15:14.000Z
bokeh/io/tests/test_webdriver.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
4
2021-03-18T22:30:03.000Z
2022-02-12T06:12:28.000Z
bokeh/io/tests/test_webdriver.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
3
2019-03-27T23:27:05.000Z
2020-08-05T19:03:19.000Z
# -*- coding: utf-8 -*- #----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------...
36.272727
87
0.475689
79ecf1019d72aca6cc9e348c830ff7b12a783a0a
2,142
py
Python
resilient-sdk/tests/unit/test_util/test_jinja_filters.py
COLDTURNIP/resilient-python-api
14423f1dec32af67f7203c8d4d36d0a9e2651802
[ "MIT" ]
null
null
null
resilient-sdk/tests/unit/test_util/test_jinja_filters.py
COLDTURNIP/resilient-python-api
14423f1dec32af67f7203c8d4d36d0a9e2651802
[ "MIT" ]
null
null
null
resilient-sdk/tests/unit/test_util/test_jinja_filters.py
COLDTURNIP/resilient-python-api
14423f1dec32af67f7203c8d4d36d0a9e2651802
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) Copyright IBM Corp. 2010, 2020. All Rights Reserved. from jinja2 import Environment from resilient_sdk.util import jinja2_filters def mock_setup_jinja_env(): return Environment() def test_filter_base64(): mock_text = u"convert ᠭ ᠮ ᠯ me to base64" fil...
25.807229
97
0.72549
b6b95893acccc0e47035f4439619793ca11e8d07
29,612
py
Python
tests/dag_processing/test_processor.py
higrys/airflow
6b133681e2400cd610ef0b37fb2d30c1e3340c59
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-07-30T16:59:35.000Z
2021-08-03T13:51:45.000Z
tests/dag_processing/test_processor.py
higrys/airflow
6b133681e2400cd610ef0b37fb2d30c1e3340c59
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
tests/dag_processing/test_processor.py
higrys/airflow
6b133681e2400cd610ef0b37fb2d30c1e3340c59
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
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...
38.258398
110
0.644029
942c9abf967f5b0c04fc8059bf57049606587335
694
py
Python
base/migrations/0002_user_bio_user_name_alter_user_email.py
FDB09/discord-clone
f44eaef6332aefee60656ce956858c5f49e895b4
[ "MIT" ]
null
null
null
base/migrations/0002_user_bio_user_name_alter_user_email.py
FDB09/discord-clone
f44eaef6332aefee60656ce956858c5f49e895b4
[ "MIT" ]
null
null
null
base/migrations/0002_user_bio_user_name_alter_user_email.py
FDB09/discord-clone
f44eaef6332aefee60656ce956858c5f49e895b4
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2022-01-04 05:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='bio', field=models....
23.931034
76
0.548991
cb992b1ef07610741428b47473b263f89f592bde
6,012
py
Python
connect.py
Ohrwurm2333/BiliLiveGiftThx
de602d6ab6f3c428c09927154ed2377445e7bfc7
[ "MIT" ]
null
null
null
connect.py
Ohrwurm2333/BiliLiveGiftThx
de602d6ab6f3c428c09927154ed2377445e7bfc7
[ "MIT" ]
null
null
null
connect.py
Ohrwurm2333/BiliLiveGiftThx
de602d6ab6f3c428c09927154ed2377445e7bfc7
[ "MIT" ]
null
null
null
import asyncio import utils import bilibiliCilent import printer from bilibili import bilibili from configloader import ConfigLoader import random from raven import Client async def check_room_state(roomid): json_rsp = await bilibili.req_room_init(roomid) return json_rsp['data']['live_status'] async def get_o...
39.81457
132
0.61477
68b6deb8806720cb3b86c31f374558d46c06c657
11,329
py
Python
roles/openshift_master_facts/test/openshift_master_facts_default_predicates_tests.py
ramkrsna/openshift-ansible
fc96d8d22f6c277b599e6e2fa4e9cc06814a9460
[ "Apache-2.0" ]
null
null
null
roles/openshift_master_facts/test/openshift_master_facts_default_predicates_tests.py
ramkrsna/openshift-ansible
fc96d8d22f6c277b599e6e2fa4e9cc06814a9460
[ "Apache-2.0" ]
null
null
null
roles/openshift_master_facts/test/openshift_master_facts_default_predicates_tests.py
ramkrsna/openshift-ansible
fc96d8d22f6c277b599e6e2fa4e9cc06814a9460
[ "Apache-2.0" ]
1
2019-10-28T15:03:29.000Z
2019-10-28T15:03:29.000Z
import copy import os import sys from ansible.errors import AnsibleError from nose.tools import raises, assert_equal sys.path = [os.path.abspath(os.path.dirname(__file__) + "/../lookup_plugins/")] + sys.path from openshift_master_facts_default_predicates import LookupModule # noqa: E402 # Predicates ordered accord...
42.430712
126
0.648071
aadbaf15703afbb455473d8545ff892baac3698e
3,246
py
Python
app/app/settings.py
hizikNewton/cocoa-disease-prediction
b4073fcc653c074383e3e6523617bb69172950e2
[ "MIT" ]
null
null
null
app/app/settings.py
hizikNewton/cocoa-disease-prediction
b4073fcc653c074383e3e6523617bb69172950e2
[ "MIT" ]
6
2020-06-06T00:35:44.000Z
2022-02-10T11:08:41.000Z
app/app/settings.py
hizikNewton/cocoa-disease-prediction
b4073fcc653c074383e3e6523617bb69172950e2
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.2.7. 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 os # Bui...
25.359375
91
0.689464
742b3127e2d30985d7a328bc52c3ff274e83fb8d
223
py
Python
tests/FlaskTest/configs/notification_config_disabled.py
Laneglos/error-tracker
b07366e94199fc5157ddc5623fa12c8c0d07c483
[ "BSD-3-Clause" ]
16
2019-12-17T10:57:43.000Z
2022-01-30T13:03:53.000Z
tests/FlaskTest/configs/notification_config_disabled.py
Laneglos/error-tracker
b07366e94199fc5157ddc5623fa12c8c0d07c483
[ "BSD-3-Clause" ]
15
2020-01-08T12:08:32.000Z
2022-01-28T13:16:48.000Z
tests/FlaskTest/configs/notification_config_disabled.py
Laneglos/error-tracker
b07366e94199fc5157ddc5623fa12c8c0d07c483
[ "BSD-3-Clause" ]
8
2020-01-08T14:10:14.000Z
2021-01-31T22:26:07.000Z
APP_ERROR_SEND_NOTIFICATION = True APP_ERROR_RECIPIENT_EMAIL = None APP_ERROR_SUBJECT_PREFIX = "" APP_ERROR_MASK_WITH = "**************" APP_ERROR_MASKED_KEY_HAS = ("password", "secret") APP_ERROR_URL_PREFIX = "/dev/error"
31.857143
49
0.757848
6e3f842840c53a0accb08f18b9886313ddd5f60d
2,938
py
Python
tests/test_get_all_info.py
suecharo/agodashi
8d063c2e9fabf881535287086d0b0edc66376d78
[ "Apache-2.0" ]
null
null
null
tests/test_get_all_info.py
suecharo/agodashi
8d063c2e9fabf881535287086d0b0edc66376d78
[ "Apache-2.0" ]
null
null
null
tests/test_get_all_info.py
suecharo/agodashi
8d063c2e9fabf881535287086d0b0edc66376d78
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 from argparse import Namespace from typing import Dict, Union from flask import Flask from flask.testing import FlaskClient from flask.wrappers import Response from agodashi.app import create_app, handle_default_params, parse_args from agodashi.type import AllInformation, ErrorR...
33.386364
70
0.66644
65b065fbdac84025e7098150d7c35db776ddddd2
2,390
py
Python
tools/db-json.py
marcboeren/millionnl
688cd401a7d3a12ceee046f3df1d403e18d89ed3
[ "MIT" ]
null
null
null
tools/db-json.py
marcboeren/millionnl
688cd401a7d3a12ceee046f3df1d403e18d89ed3
[ "MIT" ]
null
null
null
tools/db-json.py
marcboeren/millionnl
688cd401a7d3a12ceee046f3df1d403e18d89ed3
[ "MIT" ]
null
null
null
import _mysql import os def esc(s): return s.replace('"', '\\"').replace('\r\n', '\n').replace('\r', '\n').replace('\n', '\\n') db = _mysql.connect("localhost", "REDACTED", "REDACTED", "milliondb") items = {} db.query("select create_date, title, image, slug, intro, extract, story from story_story where export =...
29.875
133
0.553975
575ad7c13d6b679b7f8a3d0f931a61130d656d51
1,669
py
Python
tests/test_utils.py
jrcastro2/invenio-oauth2server
f74bbe1ea19656831ac94946999100b65e6fe7dd
[ "MIT" ]
3
2015-08-19T12:51:12.000Z
2017-10-25T00:58:52.000Z
tests/test_utils.py
jrcastro2/invenio-oauth2server
f74bbe1ea19656831ac94946999100b65e6fe7dd
[ "MIT" ]
157
2015-08-04T12:14:23.000Z
2021-06-02T14:59:10.000Z
tests/test_utils.py
jrcastro2/invenio-oauth2server
f74bbe1ea19656831ac94946999100b65e6fe7dd
[ "MIT" ]
44
2015-08-03T17:05:27.000Z
2022-01-19T19:06:53.000Z
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2017-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Test case for rebuilding access tokens.""" import sys import pytest from invenio...
35.510638
77
0.676453
f23b176296c2700d1e3a7c58aa63200afa9c9fc2
344
py
Python
mixed/balanced_brackets.py
RaoulMa/NeuralNets
f49072ac88686f753f9b5815d6cc5e71d536c3d2
[ "MIT" ]
1
2018-06-30T08:41:49.000Z
2018-06-30T08:41:49.000Z
mixed/balanced_brackets.py
RaoulMa/BasicNeuralNets
f49072ac88686f753f9b5815d6cc5e71d536c3d2
[ "MIT" ]
null
null
null
mixed/balanced_brackets.py
RaoulMa/BasicNeuralNets
f49072ac88686f753f9b5815d6cc5e71d536c3d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Balanced brackets. """ def is_Balanced(s): table = {')':'(', ']':'[', '}':'{'} stack = [] for x in s: if stack and table.get(x) == stack[-1]: stack.pop() else: stack.append(x) print("NO" if stack else "YES"...
19.111111
47
0.450581
e9ca6211cc9cd039dade4acaee7599b461f8da60
4,319
py
Python
pychron/envisage/consoleable.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/envisage/consoleable.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/envisage/consoleable.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2014 Jake Ross # # 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...
33.742188
85
0.590646
79ecdf459685b43a61d528c30dcec15ae6fdc484
2,864
py
Python
kgr/conv_e.py
dertilo/knowledge-graph-reasoning
e36d57ee34aa2b532f4dfa98a1e1d222037337cc
[ "MIT" ]
null
null
null
kgr/conv_e.py
dertilo/knowledge-graph-reasoning
e36d57ee34aa2b532f4dfa98a1e1d222037337cc
[ "MIT" ]
null
null
null
kgr/conv_e.py
dertilo/knowledge-graph-reasoning
e36d57ee34aa2b532f4dfa98a1e1d222037337cc
[ "MIT" ]
null
null
null
from dataclasses import dataclass import torch import torch.nn as nn import torch.nn.functional as F @dataclass class Config: entity_dim:int=200 relation_dim:int=200 emb_dropout_rate:float=0.3 hidden_dropout_rate:float=0.3 feat_dropout_rate:float=0.2 emb_2D_d1:int=10 emb_2D_d2:int=20 n...
36.717949
98
0.665503
03d7d2607d5528bcab473b36b752f8c06fe8f1b8
2,162
py
Python
pins/get_pins2.py
lpe234/juejin_pins
498d6689a62f8f8dc21d307ab00b70507676eabc
[ "MulanPSL-1.0" ]
1
2020-09-02T04:48:13.000Z
2020-09-02T04:48:13.000Z
pins/get_pins2.py
lpe234/juejin_pins
498d6689a62f8f8dc21d307ab00b70507676eabc
[ "MulanPSL-1.0" ]
null
null
null
pins/get_pins2.py
lpe234/juejin_pins
498d6689a62f8f8dc21d307ab00b70507676eabc
[ "MulanPSL-1.0" ]
null
null
null
# -*- coding: UTF-8 -*- import os import time import logging import requests __author__ = 'lpe234' sess = requests.Session() sess.headers = { 'accept': '*/*', 'accept-encoding': 'gzip, deflate, br', 'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8', 'cache-control': 'no-cache', 'content-type': 'app...
25.738095
142
0.571693
2d41302beaf3fc0291f260c333b40820ff3e43dd
456
py
Python
find_max_occurence_sentence.py
swatmantis/my-pyscripts
e16af5879b101c30e34e82727292849d1d33f440
[ "Apache-2.0" ]
null
null
null
find_max_occurence_sentence.py
swatmantis/my-pyscripts
e16af5879b101c30e34e82727292849d1d33f440
[ "Apache-2.0" ]
null
null
null
find_max_occurence_sentence.py
swatmantis/my-pyscripts
e16af5879b101c30e34e82727292849d1d33f440
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 #Program to find the characters that repeats the most from pprint import pprint sentence = "This is a common inteview question" occurence = {} for char in sentence: if char not in occurence: occurence[char] = sentence.count(char) # pprint(occurence, width=1) occurence_sorted = sor...
25.333333
80
0.743421
cb2a1216e102e752f9497d4825db483d5ac78178
3,593
py
Python
haweb/apps/core/admin.py
edilio/tobeawebproperty
317205bf27ab76a430ea56a474e1739ee71f164e
[ "MIT" ]
null
null
null
haweb/apps/core/admin.py
edilio/tobeawebproperty
317205bf27ab76a430ea56a474e1739ee71f164e
[ "MIT" ]
4
2015-01-02T21:39:58.000Z
2015-06-23T02:18:57.000Z
haweb/apps/core/admin.py
edilio/tobeawebproperty
317205bf27ab76a430ea56a474e1739ee71f164e
[ "MIT" ]
null
null
null
from django.contrib import admin from django import forms from .models import UserProfile, City, ZipCode, Unit, Tenant, Contract from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.admin import UserAdmin from django.contrib.auth.forms import ReadOnlyPasswordHashField class UserCreationFo...
33.579439
102
0.660729
da45ea7439d6b4503c8a8d771541f61bca610e8d
886
py
Python
hopper/utils.py
MSAdministrator/hopper
d25666e0957641d8e099d6aaf4fe346350dac869
[ "MIT" ]
2
2020-10-27T04:08:21.000Z
2021-01-10T06:57:58.000Z
hopper/utils.py
MSAdministrator/hopper
d25666e0957641d8e099d6aaf4fe346350dac869
[ "MIT" ]
null
null
null
hopper/utils.py
MSAdministrator/hopper
d25666e0957641d8e099d6aaf4fe346350dac869
[ "MIT" ]
null
null
null
import sys from email.header import decode_header, make_header def python_version_greater_than_three(): return sys.version_info > (3, 0) def cleanup_text(text): """ normalizes newline/tab chars, strips whitespace, removes newline chars from the ends. """ text = normalize_newlinechar(text) te...
23.315789
89
0.670429
4c693538cb5b0a77a44ca199e48d6cfad7f361d1
18,057
py
Python
nova/tests/functional/test_aggregates.py
bopopescu/nova-rocky-system-reader-role
50a9d96f117b3c90aec214d1732f63fc6a1b98ea
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/test_aggregates.py
bopopescu/nova-rocky-system-reader-role
50a9d96f117b3c90aec214d1732f63fc6a1b98ea
[ "Apache-2.0" ]
2
2021-03-31T19:25:14.000Z
2021-12-13T20:15:06.000Z
nova/tests/functional/test_aggregates.py
bopopescu/nova-rocky-system-reader-role
50a9d96f117b3c90aec214d1732f63fc6a1b98ea
[ "Apache-2.0" ]
1
2020-07-22T22:15:29.000Z
2020-07-22T22:15:29.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...
38.915948
79
0.639641
d71e3f9430d789d21d9f39234d5de2b6b8857600
2,451
py
Python
examples/tensorflow/image-classifier-resnet50/predictor.py
gvvynplaine/cortex
aa3daf0d138a880df29a2c075af41176119da47f
[ "Apache-2.0" ]
1
2020-08-07T10:26:01.000Z
2020-08-07T10:26:01.000Z
examples/tensorflow/image-classifier-resnet50/predictor.py
gvvynplaine/cortex
aa3daf0d138a880df29a2c075af41176119da47f
[ "Apache-2.0" ]
null
null
null
examples/tensorflow/image-classifier-resnet50/predictor.py
gvvynplaine/cortex
aa3daf0d138a880df29a2c075af41176119da47f
[ "Apache-2.0" ]
null
null
null
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` import os import cv2 import numpy as np import requests import json import base64 def get_url_image(url_image): """ Get numpy image from URL image. """ resp = requests.get(url_image,...
28.5
118
0.627091
a14c2f94273c358944b5637bd7a0c09667d983f3
7,317
py
Python
grid_royale/vectoring.py
snakile/grid_royale
890486bc6e7dbf5d8835981d9bc5b97d651e1f32
[ "MIT" ]
null
null
null
grid_royale/vectoring.py
snakile/grid_royale
890486bc6e7dbf5d8835981d9bc5b97d651e1f32
[ "MIT" ]
null
null
null
grid_royale/vectoring.py
snakile/grid_royale
890486bc6e7dbf5d8835981d9bc5b97d651e1f32
[ "MIT" ]
null
null
null
# Copyright 2020 Ram Rachum and collaborators. # This program is distributed under the MIT license. from __future__ import annotations import dataclasses import itertools import operator import functools import math from typing import (Optional, Tuple, Union, Container, Hashable, Iterator, Iterabl...
30.235537
100
0.572776
3739c82b2d5241bd202fdda138903782e89dc175
412
py
Python
packages/python/plotly/plotly/validators/histogram2d/_showlegend.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/histogram2d/_showlegend.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/histogram2d/_showlegend.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__(self, plotly_name="showlegend", parent_name="histogram2d", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_na...
34.333333
86
0.684466