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
cf45ac4c7331b5d13f80e9f6d9bdf7fe75c43bf8
258
py
Python
ex015aluguelcarro.py
wtomalves/exerciciopython
5c239521830cb8d092c7ff8646ff1f38c605509d
[ "MIT" ]
1
2020-09-04T22:36:21.000Z
2020-09-04T22:36:21.000Z
ex015aluguelcarro.py
wtomalves/exerciciopython
5c239521830cb8d092c7ff8646ff1f38c605509d
[ "MIT" ]
null
null
null
ex015aluguelcarro.py
wtomalves/exerciciopython
5c239521830cb8d092c7ff8646ff1f38c605509d
[ "MIT" ]
null
null
null
dias = float(input('Quantos dias de aluguel do carro?')) kilometro = float(input('Quantos kilometros percorridos?')) custos = (dias * 60) + (kilometro * 0.15) print('valor total do aluguel pelos dias e kilometragem rodada é de R${:.2f}!'.format(custos))
28.666667
94
0.705426
f3d121bf52eda7abb3f77b3449f1ccbb4760070e
548
py
Python
pidal/protocol/mysql/field_type.py
pi-plan/pidal
bfd1b9c4de87bc92565acbcff108270265757e39
[ "BSD-3-Clause" ]
6
2021-02-05T04:21:00.000Z
2021-11-29T06:46:21.000Z
pidal/protocol/mysql/field_type.py
pi-plan/pidal
bfd1b9c4de87bc92565acbcff108270265757e39
[ "BSD-3-Clause" ]
1
2021-11-30T06:08:53.000Z
2021-11-30T06:08:53.000Z
pidal/protocol/mysql/field_type.py
pi-plan/pidal
bfd1b9c4de87bc92565acbcff108270265757e39
[ "BSD-3-Clause" ]
null
null
null
import enum @enum.unique class FieldType(enum.IntEnum): DECIMAL = 0 TINY = 1 SHORT = 2 LONG = 3 FLOAT = 4 DOUBLE = 5 NULL = 6 TIMESTAMP = 7 LONGLONG = 8 INT24 = 9 DATE = 10 TIME = 11 DATETIME = 12 YEAR = 13 NEWDATE = 14 VARCHAR = 15 BIT = 16 JSON...
14.810811
30
0.536496
4af4f7ecab2169bd471fdcc2fd7fddae48d99f79
1,581
py
Python
common_pp/completion_video_common.py
qxcv/structuredinference
9eb6546db9ca2f9d02b8a8155c2d3fc4f0d27ecb
[ "MIT" ]
6
2017-09-13T10:49:13.000Z
2022-01-01T10:53:03.000Z
common_pp/completion_video_common.py
qxcv/structuredinference
9eb6546db9ca2f9d02b8a8155c2d3fc4f0d27ecb
[ "MIT" ]
null
null
null
common_pp/completion_video_common.py
qxcv/structuredinference
9eb6546db9ca2f9d02b8a8155c2d3fc4f0d27ecb
[ "MIT" ]
2
2017-07-31T04:12:30.000Z
2018-11-09T22:34:36.000Z
"""Common (dataset-shared) code for making completino videos""" import re import os import numpy as np from scipy.optimize import fmin _num_re = re.compile(r'(\d+)') def load_sorted_paths(frame_dir): """Sorts a bunch of paths that have numbers in the filename.""" fns = os.listdir(frame_dir) everything...
32.9375
78
0.657179
f6a897aae00b4369774b0acaa4f9ce65a6d54378
7,504
py
Python
evaluate.py
RAYTRAC3R/FastSpeech2
268ef2e81afc0280285f72a6c8fadd213128158f
[ "MIT" ]
1
2020-12-06T03:15:57.000Z
2020-12-06T03:15:57.000Z
evaluate.py
eric102004/FastSpeech2-1
95e0fa7f02b390fa21ee9801cfa297d25163f71d
[ "MIT" ]
null
null
null
evaluate.py
eric102004/FastSpeech2-1
95e0fa7f02b390fa21ee9801cfa297d25163f71d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.utils.data import DataLoader import numpy as np import os import argparse import re from g2p_en import G2p from fastspeech2 import FastSpeech2 from loss import FastSpeech2Loss from dataset import Dataset from text import text_to_sequence, sequence_to_text im...
43.627907
161
0.5617
74b19d9298d0139cb1dcb941922ffdd2adeb0792
9,211
py
Python
Request.py
aryaman4/EasyWeekScheduler
298aed983009e9dcf308ffef779372737fad036a
[ "Apache-2.0" ]
1
2019-02-07T17:55:15.000Z
2019-02-07T17:55:15.000Z
Request.py
aryaman4/EasyWeekScheduler
298aed983009e9dcf308ffef779372737fad036a
[ "Apache-2.0" ]
null
null
null
Request.py
aryaman4/EasyWeekScheduler
298aed983009e9dcf308ffef779372737fad036a
[ "Apache-2.0" ]
null
null
null
from uiucapi.query import * from requests_xml import XMLSession from URLBuilder import * session = XMLSession() class Request(object): def __init__(self, in_year, in_semester): self.subjects = list() self.course_list = list() self.year = in_year self.semester = in_semester ...
33.739927
97
0.546412
0271f36e11cf1a431a5d4b5796292f94a00de1ad
8,446
py
Python
pyro/contrib/gp/kernels/kernel.py
nipunbatra/pyro
d5b0545c4f992d435692080db6969314a2c32f05
[ "Apache-2.0" ]
4,959
2017-11-03T14:39:17.000Z
2019-02-04T16:14:30.000Z
pyro/contrib/gp/kernels/kernel.py
nipunbatra/pyro
d5b0545c4f992d435692080db6969314a2c32f05
[ "Apache-2.0" ]
985
2017-11-03T14:27:56.000Z
2019-02-02T18:52:54.000Z
pyro/contrib/gp/kernels/kernel.py
nipunbatra/pyro
d5b0545c4f992d435692080db6969314a2c32f05
[ "Apache-2.0" ]
564
2017-11-03T15:05:55.000Z
2019-01-31T14:02:29.000Z
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import numbers from pyro.contrib.gp.parameterized import Parameterized class Kernel(Parameterized): """ Base class for kernels used in this Gaussian Process module. Every inherited class should implement a :meth:`fo...
32.484615
88
0.604547
080ccc7565081863763748f4e9928f2fcd1a1ed7
9,390
py
Python
project/server/models.py
lstrgiang/thesis-server
08c4293d104c3581c4bf166086c52eadb62adb4f
[ "MIT" ]
null
null
null
project/server/models.py
lstrgiang/thesis-server
08c4293d104c3581c4bf166086c52eadb62adb4f
[ "MIT" ]
null
null
null
project/server/models.py
lstrgiang/thesis-server
08c4293d104c3581c4bf166086c52eadb62adb4f
[ "MIT" ]
null
null
null
import datetime import jwt from sqlalchemy import and_ from project.server import app, db, bcrypt from Crypto.PublicKey import RSA class User(db.Model): """ User Model for storing user related details """ __tablename__ = "user" id = db.Column(db.Integer, primary_key = True, autoincrement = True) ...
38.801653
113
0.640788
db69f2363f0b7af1ec32e62f2ec892c95f8dec78
3,002
py
Python
Code/odooerp/odoo-8.0/openerp/addons/stock/tests/test_owner_available.py
zhupangithub/WEBERP
714512082ec5c6db07cbf6af0238ceefe2d2c1a5
[ "MIT" ]
1
2019-12-29T11:53:56.000Z
2019-12-29T11:53:56.000Z
odoo/addons/stock/tests/test_owner_available.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
null
null
null
odoo/addons/stock/tests/test_owner_available.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
3
2020-10-08T14:42:10.000Z
2022-01-28T14:12:29.000Z
# Author: Leonardo Pistone # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any la...
39.5
77
0.645903
aeee066f779b64113e3c5e8e3c7a5613db68b86c
1,114
py
Python
preprocessor/python/Z_common/process.py
SpiritFlag/FM0-Decoder
0b2f33309b8353fc9a820e1b9f56aa3c9cb85ebf
[ "MIT" ]
2
2019-10-04T06:15:22.000Z
2021-02-02T06:52:48.000Z
preprocessor/python/Z_common/process.py
SpiritFlag/FM0-Decoder
0b2f33309b8353fc9a820e1b9f56aa3c9cb85ebf
[ "MIT" ]
null
null
null
preprocessor/python/Z_common/process.py
SpiritFlag/FM0-Decoder
0b2f33309b8353fc9a820e1b9f56aa3c9cb85ebf
[ "MIT" ]
1
2019-12-11T05:17:45.000Z
2019-12-11T05:17:45.000Z
import sys import os import timeit from global_vars import * def common_process(file, fnc, isFile): try: if file != None and os.path.exists(file): select = input("FILE is already exist. Press 'Y' if you want to rewrite. ") if select != 'Y': print("Execution aborted..") ...
29.315789
104
0.548474
2dfcca5a1cf8a4247f615336de40c49a56c963df
2,105
py
Python
tests/utils/test_inference.py
wconnell/pytorch-metric-learning
1affee7c77bb5d6d4ee559bad62b910a21b39d48
[ "MIT" ]
1
2021-05-30T14:59:42.000Z
2021-05-30T14:59:42.000Z
tests/utils/test_inference.py
umitkacar/pytorch-metric-learning
bf2b7675b7b80e5762b75428d51e4ab0a861e710
[ "MIT" ]
null
null
null
tests/utils/test_inference.py
umitkacar/pytorch-metric-learning
bf2b7675b7b80e5762b75428d51e4ab0a861e710
[ "MIT" ]
null
null
null
import unittest from .. import TEST_DTYPES import torch import torchvision from torchvision import datasets, transforms from pytorch_metric_learning.utils.inference import InferenceModel from pytorch_metric_learning.utils import common_functions class TestInference(unittest.TestCase): @classmethod def setUp...
38.981481
92
0.619002
c91ba5c33bd577c7f29bc1fb34ab7a5ab98e40db
600
py
Python
users/apps.py
Exaphis/Synchronous
17334442ee3d54d6704469bba8a53eb35c1f555e
[ "MIT" ]
null
null
null
users/apps.py
Exaphis/Synchronous
17334442ee3d54d6704469bba8a53eb35c1f555e
[ "MIT" ]
null
null
null
users/apps.py
Exaphis/Synchronous
17334442ee3d54d6704469bba8a53eb35c1f555e
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.db.utils import OperationalError, ProgrammingError class UsersConfig(AppConfig): name = "users" def ready(self): from .models import WorkspaceUser # delete all workspace users on server start (nobody's connected yet!) # must occur because...
31.578947
84
0.675
300556dcc8a2885d1c361372f77ef429346feeec
6,584
py
Python
jiant/tasks/lib/wsc.py
yzpang/jiant
192d6b525c06f33010b59044df40cb86bbfba4ea
[ "MIT" ]
null
null
null
jiant/tasks/lib/wsc.py
yzpang/jiant
192d6b525c06f33010b59044df40cb86bbfba4ea
[ "MIT" ]
null
null
null
jiant/tasks/lib/wsc.py
yzpang/jiant
192d6b525c06f33010b59044df40cb86bbfba4ea
[ "MIT" ]
null
null
null
import numpy as np import torch from dataclasses import dataclass from typing import List from jiant.tasks.core import ( BaseExample, BaseTokenizedExample, BaseDataRow, BatchMixin, SuperGlueMixin, Task, TaskTypes, ) from jiant.tasks.lib.templates.shared import ( labels_to_bimap, add...
31.961165
96
0.659933
f81593adfd60de54dd3e2a8d09e2346a94427e12
2,575
py
Python
src/dashboard/__main__.py
karlicoss/dashboard
708eb183130de31e344fa0f38fa8ae74d1953e31
[ "MIT" ]
13
2020-08-26T06:25:00.000Z
2021-07-23T13:54:19.000Z
src/dashboard/__main__.py
karlicoss/dashboard
708eb183130de31e344fa0f38fa8ae74d1953e31
[ "MIT" ]
null
null
null
src/dashboard/__main__.py
karlicoss/dashboard
708eb183130de31e344fa0f38fa8ae74d1953e31
[ "MIT" ]
null
null
null
import logging from pathlib import Path from typing import Iterable, Optional from .tabs import tabs, Tab from .settings import theme # I guess it kinda makes sense to dump each tab separately def render_tab(*, tab: Tab, filename: Path): res = tab.plotter() from bokeh.io import save, output_file, curdoc ...
31.790123
112
0.610485
d62ceaa2a29c74eba0257e3bf0b910fbede23915
525
py
Python
ex041.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
ex041.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
ex041.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
from datetime import date ano = int(input('Digite o ano do seu nascimento: ')) i = date.today().year idade = i - ano if idade <= 9: print(f'Você tem {idade} anos e pertence a categoria MIRIM') elif idade <= 14: print(f'Você tem {idade} anos e pertence a categoria INFANTIL') elif idade <= 19: print(f'Você t...
37.5
67
0.691429
2804282987bbf6b7dd84a39b48c2c3e6429abc9c
6,140
py
Python
doc/src/julia_auto_encoder.py
benryan58/SemanticModels.jl
68da86b2501e55b8ddfb50b3df59b2406d374db2
[ "MIT" ]
null
null
null
doc/src/julia_auto_encoder.py
benryan58/SemanticModels.jl
68da86b2501e55b8ddfb50b3df59b2406d374db2
[ "MIT" ]
null
null
null
doc/src/julia_auto_encoder.py
benryan58/SemanticModels.jl
68da86b2501e55b8ddfb50b3df59b2406d374db2
[ "MIT" ]
null
null
null
import argparse from keras import regularizers from keras.callbacks import EarlyStopping from keras.layers import Input, GRU, RepeatVector, Activation, CuDNNGRU from keras.layers import Dense, BatchNormalization, Embedding from keras.models import Model, load_model from keras.optimizers import Adam from keras.preproce...
36.766467
84
0.587459
605fc2345602383b85494ca6f6f97fac5819b085
949
py
Python
fib.py
TotallyNotTito/redesigned-octo-spoon
ff6e65536df8dc1a16cfc504571630423084ba05
[ "MIT" ]
1
2021-08-24T20:09:07.000Z
2021-08-24T20:09:07.000Z
fib.py
TotallyNotTito/redesigned-octo-spoon
ff6e65536df8dc1a16cfc504571630423084ba05
[ "MIT" ]
null
null
null
fib.py
TotallyNotTito/redesigned-octo-spoon
ff6e65536df8dc1a16cfc504571630423084ba05
[ "MIT" ]
null
null
null
#code for input print("This calculator givens the Nth fibonaci term in a sequence. Inputting the iteration outputs the number in that sequence") print('input a fibonacci number') n = float(input()) # code for first 2 outputs of fibonacci sequence if (n == 1 or n == 2) : print(1, 'is fibonacci output') # main code...
43.136364
128
0.684932
039ea1776edf147865d574ec66ce4007986a1548
1,849
py
Python
frappe/templates/pages/integrations/razorpay_checkout.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
5
2017-09-12T15:56:31.000Z
2022-03-09T13:50:21.000Z
frappe/templates/pages/integrations/razorpay_checkout.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
66
2020-02-28T07:47:09.000Z
2021-07-21T04:53:35.000Z
frappe/templates/pages/integrations/razorpay_checkout.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
8
2019-04-21T07:49:50.000Z
2021-12-24T20:20:38.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import flt, cint import json from six import string_types no_cache = 1 expected_keys = ('amount', ...
29.349206
92
0.756084
622ed5d851f0b721e3ecfa994adaed50a7f47e98
3,783
py
Python
AER/FeatureExtraction/MelFilterBank.py
LeBenchmark/Interspeech2021
2a3b424389631b317b39973291b7252bbf44a73b
[ "MIT" ]
48
2021-03-25T14:00:04.000Z
2022-03-27T17:00:00.000Z
AER/FeatureExtraction/MelFilterBank.py
LeBenchmark/Interspeech2021
2a3b424389631b317b39973291b7252bbf44a73b
[ "MIT" ]
2
2021-04-16T13:21:44.000Z
2021-06-16T15:23:09.000Z
AER/FeatureExtraction/MelFilterBank.py
LeBenchmark/Interspeech2021
2a3b424389631b317b39973291b7252bbf44a73b
[ "MIT" ]
2
2021-07-05T13:42:23.000Z
2021-09-01T10:24:00.000Z
import os, sys import argparse from funcs import get_files_in_path from funcs import printProgressBar from pydub import AudioSegment from python_speech_features import logfbank import numpy as np import pandas as pd from featFuncs import loadFromJson from DatasetHandling.DataClasses import Features, classToDic import j...
38.602041
151
0.679355
08cbd85cf1d64efbfed2800c1ed0236ffc01e708
1,563
py
Python
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/urls.py
taaviteska/django-template
63454ff55faa38dbe1fcf4e93bc0af475add2b7c
[ "MIT" ]
null
null
null
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/urls.py
taaviteska/django-template
63454ff55faa38dbe1fcf4e93bc0af475add2b7c
[ "MIT" ]
null
null
null
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/urls.py
taaviteska/django-template
63454ff55faa38dbe1fcf4e93bc0af475add2b7c
[ "MIT" ]
null
null
null
"""{{cookiecutter.project_title}} URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home...
38.121951
79
0.734485
eada264ac6309ca67f8a189a689f00bcf5f50a79
4,388
py
Python
src/infi/execute/result.py
Infinidat/infi.execute
4bee7eb9993ca1e7769244eb569df49e328a4c48
[ "BSD-3-Clause" ]
1
2020-08-18T16:26:01.000Z
2020-08-18T16:26:01.000Z
src/infi/execute/result.py
Infinidat/infi.execute
4bee7eb9993ca1e7769244eb569df49e328a4c48
[ "BSD-3-Clause" ]
null
null
null
src/infi/execute/result.py
Infinidat/infi.execute
4bee7eb9993ca1e7769244eb569df49e328a4c48
[ "BSD-3-Clause" ]
2
2015-09-27T13:18:08.000Z
2020-08-18T16:26:05.000Z
from .waiting import wait_for_many_results, flush from .exceptions import CommandTimeout from .exceptions import ExecutionError from .utils import make_fd_non_blocking, non_blocking_read, non_blocking_write try: from cStringIO import StringIO as BytesIO except ImportError: from io import BytesIO import os impor...
33.496183
87
0.649043
5ead4e5c3131b3ccb8de7e16f5f55964414cf575
153,945
py
Python
tests/test_bert_ner.py
bond005/bert_ner
cd5bfaf97511955934eb2faf3eb97e9e454e989a
[ "Apache-2.0" ]
2
2019-02-18T19:12:39.000Z
2019-04-22T05:11:03.000Z
tests/test_bert_ner.py
bond005/bert_ner
cd5bfaf97511955934eb2faf3eb97e9e454e989a
[ "Apache-2.0" ]
null
null
null
tests/test_bert_ner.py
bond005/bert_ner
cd5bfaf97511955934eb2faf3eb97e9e454e989a
[ "Apache-2.0" ]
null
null
null
import copy import gc import os import pickle import re import sys import tempfile import unittest import numpy as np from sklearn.exceptions import NotFittedError try: from bert_ner.bert_ner import BERT_NER from bert_ner.utils import load_dataset except: sys.path.append(os.path.join(os.path.dirname(__fil...
61.430567
120
0.616681
957bb06f334ac72b2722d2c1963ba9c688792a6e
113,053
gyp
Python
grpc.gyp
splittingred/grpc
b4a5727149201bac53a33c53c2cf93fed5414540
[ "Apache-2.0" ]
1
2019-06-17T18:45:53.000Z
2019-06-17T18:45:53.000Z
grpc.gyp
splittingred/grpc
b4a5727149201bac53a33c53c2cf93fed5414540
[ "Apache-2.0" ]
null
null
null
grpc.gyp
splittingred/grpc
b4a5727149201bac53a33c53c2cf93fed5414540
[ "Apache-2.0" ]
null
null
null
# GRPC GYP build file # This file has been automatically generated from a template file. # Please look at the templates directory instead. # This file can be regenerated from the template by running # tools/buildgen/generate_projects.sh # Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0...
41.456912
101
0.643008
33b88947b8494ea712441f0df85fc6744e51e7ee
2,067
py
Python
enginessl/ml/data_handling/system.py
XXXalice/EngineSSL
582753932830cb7b714fde57490a72774af27cf4
[ "MIT" ]
22
2018-10-20T19:39:58.000Z
2021-09-21T05:42:54.000Z
enginessl/ml/data_handling/system.py
AliClouds/EngineSSL
1b65b9c903d31c6ed2d96e906035adce22ce46ea
[ "MIT" ]
73
2018-10-05T13:41:36.000Z
2020-10-04T20:27:20.000Z
enginessl/ml/data_handling/system.py
AliClouds/EngineSSL
1b65b9c903d31c6ed2d96e906035adce22ce46ea
[ "MIT" ]
8
2018-10-23T12:31:30.000Z
2021-06-30T18:14:31.000Z
from . import kernel class DataHandling(kernel.OpponentImage ,kernel.Kernel): def __init__(self, target_label, image_tanks=[]): print('Data processing execution.') # self.oppo = kernel.OpponentImage(image_tanks) self.data_handling = kernel.Kernel(image_tanks) # print('labels :{}'....
36.910714
122
0.657958
9f74dd6eed51a1d82303b9206a3e468f5dc16eb9
22,718
py
Python
tests/runtests.py
epicpewpew/gef
9798a2816d21da5a54b979e19c54446e08414ea9
[ "MIT" ]
1
2019-10-18T02:43:54.000Z
2019-10-18T02:43:54.000Z
tests/runtests.py
wqsemc/gef
9798a2816d21da5a54b979e19c54446e08414ea9
[ "MIT" ]
null
null
null
tests/runtests.py
wqsemc/gef
9798a2816d21da5a54b979e19c54446e08414ea9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Run tests by spawning a gdb instance for every command. # from __future__ import print_function import os import subprocess import sys import tempfile import unittest from helpers import gdb_run_cmd, \ gdb_run_silent_cmd, \ gdb_start_silent_cmd, \ gdb_start_silent_cmd_last_line...
35.946203
119
0.632318
f3e544b55c776928cf98c8014c8742af45791679
2,173
py
Python
OCR/OCRkaggle.py
Demonliquid/cars-python-cleaning
91c516a33c4522114dc024cfaf04f1c1d594f973
[ "MIT" ]
null
null
null
OCR/OCRkaggle.py
Demonliquid/cars-python-cleaning
91c516a33c4522114dc024cfaf04f1c1d594f973
[ "MIT" ]
null
null
null
OCR/OCRkaggle.py
Demonliquid/cars-python-cleaning
91c516a33c4522114dc024cfaf04f1c1d594f973
[ "MIT" ]
null
null
null
#%% # Generic Libraries from PIL import Image import os import pandas as pd import numpy as np import re,string,unicodedata #Tesseract Library import pytesseract #Warnings import warnings warnings.filterwarnings("ignore") #Garbage Collection import gc #Gensim Library for Text Processing import gensim.parsing.prepro...
21.73
82
0.638748
bf539c9dc207774e4a2468e090e425327ed44312
5,073
py
Python
queryResponder.py
azharhappy/Nancy-VA--MacOS
e2825f1e61e5f5c995de9cdda8e836d4a34cbb7d
[ "MIT" ]
4
2017-01-03T07:26:10.000Z
2017-06-28T11:16:39.000Z
queryResponder.py
azhar22k/Nancy-VA--MacOS
e2825f1e61e5f5c995de9cdda8e836d4a34cbb7d
[ "MIT" ]
null
null
null
queryResponder.py
azhar22k/Nancy-VA--MacOS
e2825f1e61e5f5c995de9cdda8e836d4a34cbb7d
[ "MIT" ]
2
2018-03-27T13:00:58.000Z
2019-01-14T14:55:59.000Z
from notify import notify from re import match,sub from audioOutput import speak,speakWiki from _thread import start_new_thread from subprocess import getoutput def search(Input): # no data received if Input == "": notify(message="Sorry! Did you say something?") return # Command for quiting...
31.70625
110
0.607727
22212ea305e9eca5da86e11db2f5ceb9fe034ab9
1,157
py
Python
python/src/nnabla/backward_function/sub2.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
2,792
2017-06-26T13:05:44.000Z
2022-03-28T07:55:26.000Z
python/src/nnabla/backward_function/sub2.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
138
2017-06-27T07:04:44.000Z
2022-02-28T01:37:15.000Z
python/src/nnabla/backward_function/sub2.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
380
2017-06-26T13:23:52.000Z
2022-03-25T16:51:30.000Z
# Copyright 2019,2020,2021 Sony Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
32.138889
86
0.717373
cc6e336448cca85971924b5878d388e08a3f0a49
4,282
py
Python
aiohttp_mock/router.py
TestInABox/aiohttp-mock
4c4cc53c39ac65245fd1fbcc8bebf6fe3814b15d
[ "Apache-2.0" ]
1
2015-10-05T19:40:51.000Z
2015-10-05T19:40:51.000Z
aiohttp_mock/router.py
BenjamenMeyer/aiohttp-mock
7d14892a6db4f48d377e22f01ed16c9364fe5e42
[ "Apache-2.0" ]
9
2015-10-13T22:25:14.000Z
2015-10-16T04:46:00.000Z
aiohttp_mock/router.py
BenjamenMeyer/aiohttp-mock
7d14892a6db4f48d377e22f01ed16c9364fe5e42
[ "Apache-2.0" ]
1
2016-05-06T15:39:40.000Z
2016-05-06T15:39:40.000Z
# Copyright 2015 by Benjamen R. Meyer # # 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 w...
31.955224
78
0.625175
57e92917747ace6590e637d453309898de5422c9
270
py
Python
examples/verify_bitmex_timestamps.py
mstumberger/Quantdom
2649aba90c741618a75900691480ddb720c461f4
[ "Apache-2.0" ]
1
2018-10-04T17:10:40.000Z
2018-10-04T17:10:40.000Z
examples/verify_bitmex_timestamps.py
mstumberger/Quantdom
2649aba90c741618a75900691480ddb720c461f4
[ "Apache-2.0" ]
null
null
null
examples/verify_bitmex_timestamps.py
mstumberger/Quantdom
2649aba90c741618a75900691480ddb720c461f4
[ "Apache-2.0" ]
null
null
null
import json import pandas as pd from datetime import datetime df = pd.DataFrame(json.loads(open('prices.json').read()), columns=['o', 'c', 'v']) print(df.head(20)) # print(df.resample('10min').T) # for item in data.keys(): # print(datetime.fromtimestamp(int(item)))
30
82
0.688889
91d57f7bce200bda8f86ddb726093e7a4c71fcfa
3,195
py
Python
framework/operation_assertions/operation_assertions_common.py
Creatordev/creator-system-test-framework
e92ea7315ccf1ee2fefc205fb0f4f95eb48b105f
[ "BSD-3-Clause" ]
2
2016-08-02T22:11:47.000Z
2016-08-02T22:13:13.000Z
framework/operation_assertions/operation_assertions_common.py
Creatordev/creator-system-test-framework
e92ea7315ccf1ee2fefc205fb0f4f95eb48b105f
[ "BSD-3-Clause" ]
null
null
null
framework/operation_assertions/operation_assertions_common.py
Creatordev/creator-system-test-framework
e92ea7315ccf1ee2fefc205fb0f4f95eb48b105f
[ "BSD-3-Clause" ]
null
null
null
#/************************************************************************************************************************ # Copyright (c) 2016, Imagination Technologies Limited and/or its affiliated group companies. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modificat...
72.613636
167
0.715493
21f9e1c171fc8d95646881d92733ebebec2ab675
15,627
py
Python
leolo/tests/tests.py
Menda/Leolo
1fe4d26d4b3717fe5fb1b8c6e9eb6ca11ad44c55
[ "Apache-2.0" ]
1
2020-02-13T20:55:39.000Z
2020-02-13T20:55:39.000Z
leolo/tests/tests.py
Menda/Leolo
1fe4d26d4b3717fe5fb1b8c6e9eb6ca11ad44c55
[ "Apache-2.0" ]
null
null
null
leolo/tests/tests.py
Menda/Leolo
1fe4d26d4b3717fe5fb1b8c6e9eb6ca11ad44c55
[ "Apache-2.0" ]
null
null
null
import unittest import os from sets import Set import urllib from leolo.manager import Manager import settings valid_urls = ( # url, name, last-modified, last-entrylink ("http://leolo.s3.amazonaws.com/rss_django.xml", "The Django weblog", "Fri, 17 Sep 2010 16:29:04 GMT", "http://www.djangoproject.com...
46.927928
149
0.641774
9c44d66b2e738e52d6eb13c568ddd05a523d5a13
5,091
py
Python
poetry/console/commands/add.py
mgasner/poetry
44221689e05feb0cc93c231096334f8eefbf86fc
[ "MIT" ]
null
null
null
poetry/console/commands/add.py
mgasner/poetry
44221689e05feb0cc93c231096334f8eefbf86fc
[ "MIT" ]
null
null
null
poetry/console/commands/add.py
mgasner/poetry
44221689e05feb0cc93c231096334f8eefbf86fc
[ "MIT" ]
null
null
null
from cleo import argument from cleo import option from .init import InitCommand from .env_command import EnvCommand class AddCommand(EnvCommand, InitCommand): name = "add" description = "Add a new dependency to <comment>pyproject.toml</>." arguments = [argument("name", "Packages to add.", multiple=True...
31.233129
118
0.546455
5820256119000fd1b3c5d13e0e98080b245402ac
2,493
py
Python
snipper/utils.py
mesuutt/snipper
53c36f6b250238a517afd005e57d6eb4c964374d
[ "MIT" ]
28
2017-01-29T00:32:42.000Z
2021-10-03T07:49:21.000Z
snipper/utils.py
mesuutt/snipper
53c36f6b250238a517afd005e57d6eb4c964374d
[ "MIT" ]
4
2017-03-24T22:01:50.000Z
2021-04-11T08:54:21.000Z
snipper/utils.py
mesuutt/snipper
53c36f6b250238a517afd005e57d6eb4c964374d
[ "MIT" ]
2
2021-04-03T06:45:38.000Z
2022-01-04T17:28:36.000Z
import os import re import sys import json from subprocess import Popen, PIPE import click if sys.version_info >= (3, 3): from subprocess import DEVNULL else: DEVNULL = open(os.devnull, 'w') def open_files(filelist): """Open files for upload""" files = [] for file_path in filelist: if no...
26.521277
96
0.663859
b3964aa4aaafc428882b2697c245d428d2687298
6,541
py
Python
webcamviewer/src/PictureScreen.py
builder08/enigma2-plugins
45583c69b807ce26d756a51973c81d877afe3694
[ "OLDAP-2.3" ]
null
null
null
webcamviewer/src/PictureScreen.py
builder08/enigma2-plugins
45583c69b807ce26d756a51973c81d877afe3694
[ "OLDAP-2.3" ]
null
null
null
webcamviewer/src/PictureScreen.py
builder08/enigma2-plugins
45583c69b807ce26d756a51973c81d877afe3694
[ "OLDAP-2.3" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import from enigma import ePicLoad, eTimer, getDesktop from Screens.Screen import Screen from Components.AVSwitch import AVSwitch from Components.config import config from Components.Pixmap import Pixmap from Components.Actio...
26.589431
115
0.695612
4fe144c0047fcbc1bf28cf1dd72dd3482f412387
10,076
py
Python
pettingzoo/mpe/_mpe_utils/simple_env.py
carlosluis/PettingZoo
aec87907777e0e62652d499b3ac96f680acf35ad
[ "Apache-2.0" ]
846
2020-05-12T05:55:00.000Z
2021-10-08T19:38:40.000Z
pettingzoo/mpe/_mpe_utils/simple_env.py
carlosluis/PettingZoo
aec87907777e0e62652d499b3ac96f680acf35ad
[ "Apache-2.0" ]
237
2020-04-27T06:01:39.000Z
2021-10-13T02:55:54.000Z
pettingzoo/mpe/_mpe_utils/simple_env.py
carlosluis/PettingZoo
aec87907777e0e62652d499b3ac96f680acf35ad
[ "Apache-2.0" ]
126
2020-05-29T04:20:29.000Z
2021-10-13T05:31:12.000Z
import numpy as np from gym import spaces from gym.utils import seeding from pettingzoo import AECEnv from pettingzoo.utils import wrappers from pettingzoo.utils.agent_selector import agent_selector def make_env(raw_env): def env(**kwargs): env = raw_env(**kwargs) if env.continuous_actions: ...
36.507246
157
0.577809
7ed3542036d6783aed0ba3fd0b01c63c76818e7e
35
py
Python
malib/replay_buffers/rollout_buffer.py
wwxFromTju/malib
7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2
[ "MIT" ]
6
2021-05-19T10:25:36.000Z
2021-12-27T03:30:33.000Z
malib/replay_buffers/rollout_buffer.py
wwxFromTju/malib
7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2
[ "MIT" ]
1
2021-05-29T04:51:37.000Z
2021-05-30T06:18:10.000Z
malib/replay_buffers/rollout_buffer.py
ying-wen/malib_deprecated
875338b81c4d87064ad31201f461ef742db05f25
[ "MIT" ]
1
2021-05-31T16:16:12.000Z
2021-05-31T16:16:12.000Z
# Created by yingwen at 2019-06-30
17.5
34
0.742857
1e376cb5a9e1ca6c219093b9fed68a29ec094467
4,160
py
Python
font_pl.py
szajakubiak/showAirQData
cf89f10e4295b145be30b6772afe4ce97c51fd43
[ "MIT" ]
null
null
null
font_pl.py
szajakubiak/showAirQData
cf89f10e4295b145be30b6772afe4ce97c51fd43
[ "MIT" ]
null
null
null
font_pl.py
szajakubiak/showAirQData
cf89f10e4295b145be30b6772afe4ce97c51fd43
[ "MIT" ]
null
null
null
font = { 'A' : '001111110010010000010010000001111110', 'Ą' : '001111110010010000010010001001111110', 'a' : '000000100000101010000101010000011110', 'ą' : '000000100000101010000101010000011110000000001', 'B' : '011111110010010010010010010001101100', 'b' : '011111110000100010000100010000011100', 'C' : '0011111000100000100...
44.731183
63
0.801923
88795668e56792e848879df220b3a587fe7a2837
761
py
Python
pythonHTTP/cgi-bin/find13f.py
terasakisatoshi/myHTML
1622ba7a57b7ddfba3bbbcfef1f17dcb80ddb2b8
[ "MIT" ]
null
null
null
pythonHTTP/cgi-bin/find13f.py
terasakisatoshi/myHTML
1622ba7a57b7ddfba3bbbcfef1f17dcb80ddb2b8
[ "MIT" ]
null
null
null
pythonHTTP/cgi-bin/find13f.py
terasakisatoshi/myHTML
1622ba7a57b7ddfba3bbbcfef1f17dcb80ddb2b8
[ "MIT" ]
null
null
null
import cgi from datetime import datetime html_body=u""" <html><head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> </head> <body> %s </body> </html>""" content='' form=cgi.FieldStorage() year_str=form.getvalue('year','') if not year_str.isdigit(): content=u"input...
21.742857
61
0.595269
cbd0da8d3905ff3565853a596093bd197e9d6c33
479
py
Python
cfgov/data_research/tests/test_blocks.py
atuggle/cfgov-refresh
5a9cfd92b460b9be7befb39f5845abf56857aeac
[ "CC0-1.0" ]
null
null
null
cfgov/data_research/tests/test_blocks.py
atuggle/cfgov-refresh
5a9cfd92b460b9be7befb39f5845abf56857aeac
[ "CC0-1.0" ]
null
null
null
cfgov/data_research/tests/test_blocks.py
atuggle/cfgov-refresh
5a9cfd92b460b9be7befb39f5845abf56857aeac
[ "CC0-1.0" ]
null
null
null
from __future__ import unicode_literals from django.test import TestCase from v1.models import BrowsePage class ConferenceRegistrationFormTests(TestCase): fixtures = ['conference_registration_page.json'] def test_page_renders_using_template(self): page = BrowsePage.objects.get(pk=99999) req...
29.9375
78
0.749478
2ebd6393604527997f0bacb386d8b7735d096a6e
22,786
py
Python
plugins/modules/oci_waas_custom_protection_rule.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_waas_custom_protection_rule.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_waas_custom_protection_rule.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
45.75502
160
0.628281
5ca85babe82895467f1becc90e836dac75875b97
1,442
py
Python
preprocessing.py
kuparez/headline_generator
2a44af30beaa0da21952bce7318e2947883873c4
[ "MIT" ]
null
null
null
preprocessing.py
kuparez/headline_generator
2a44af30beaa0da21952bce7318e2947883873c4
[ "MIT" ]
null
null
null
preprocessing.py
kuparez/headline_generator
2a44af30beaa0da21952bce7318e2947883873c4
[ "MIT" ]
null
null
null
import re from typing import Union, List from bpemb import BPEmb class BasicHtmlPreprocessor: """replace all html tags end entities with space""" def __init__(self): self.regexp = re.compile(r'&[\w\d]+;|<([^>]+)>') def transform(self, text: Union[str, List[str]]): if type(text) == str: ...
32.044444
100
0.590846
aa18a169a10977db1191b960ccfda9231dfb6bd4
183
py
Python
everest/tests/__init__.py
helixyte/everest
70c9b93c3061db5cb62428349d18b8fb8566411b
[ "MIT" ]
3
2015-03-10T17:38:25.000Z
2017-04-29T03:47:06.000Z
everest/tests/__init__.py
helixyte/everest
70c9b93c3061db5cb62428349d18b8fb8566411b
[ "MIT" ]
1
2015-03-02T16:02:41.000Z
2015-03-02T16:02:41.000Z
everest/tests/__init__.py
cenix/everest
70c9b93c3061db5cb62428349d18b8fb8566411b
[ "MIT" ]
1
2020-07-12T22:46:59.000Z
2020-07-12T22:46:59.000Z
""" This file is part of the everest project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Package initialization file. Created on Nov 3, 2011. """
20.333333
76
0.765027
48d07ec368edb033b9c940b9fe0344bf3974e18e
453
py
Python
documents/forms.py
salazarpardo/redinnovacion
3f7c13af0af1887112a0492aea7782871fba0129
[ "CC-BY-3.0" ]
null
null
null
documents/forms.py
salazarpardo/redinnovacion
3f7c13af0af1887112a0492aea7782871fba0129
[ "CC-BY-3.0" ]
null
null
null
documents/forms.py
salazarpardo/redinnovacion
3f7c13af0af1887112a0492aea7782871fba0129
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- # # models from documents.models import Photo from documents.models import File # forms from base.forms import BaseModelForm class PhotoForm(BaseModelForm): class Meta: model = Photo fields = ('photo',) class FileForm(BaseModelForm): class Meta: model = File ...
16.777778
36
0.637969
c94d1d288eda6386bb54f3806a53fd7c34972ab5
35,782
py
Python
tests/services/test_WalletAPIService.py
gcchainlabs/gcchain-core
88434ccbd6c47e45e701549358de4ff7198c8178
[ "MIT" ]
1
2020-11-04T08:32:43.000Z
2020-11-04T08:32:43.000Z
tests/services/test_WalletAPIService.py
gcchainlabs/gcchain-core
88434ccbd6c47e45e701549358de4ff7198c8178
[ "MIT" ]
null
null
null
tests/services/test_WalletAPIService.py
gcchainlabs/gcchain-core
88434ccbd6c47e45e701549358de4ff7198c8178
[ "MIT" ]
null
null
null
# coding=utf-8 # Distributed under the MIT software license, see the accompanying # file LICENSE or http://www.opensource.org/licenses/mit-license.php. from unittest import TestCase from mock import Mock, patch from pygclib.pygclib import bin2hstr, hstr2bin from gc.core.misc import logger from gc.core.AddressState im...
47.709333
127
0.598709
397b426bfe38ca51e88d903025ca8888da5e7753
474
py
Python
pos_product_available/models/models.py
nahualventure/pos-addons
3c911c28c259967fb74e311ddcc8e6ca032c005d
[ "MIT" ]
null
null
null
pos_product_available/models/models.py
nahualventure/pos-addons
3c911c28c259967fb74e311ddcc8e6ca032c005d
[ "MIT" ]
1
2020-10-26T17:22:38.000Z
2020-10-26T18:58:28.000Z
pos_product_available/models/models.py
nahualventure/pos-addons
3c911c28c259967fb74e311ddcc8e6ca032c005d
[ "MIT" ]
1
2021-09-05T19:44:25.000Z
2021-09-05T19:44:25.000Z
# Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr> # License MIT (https://opensource.org/licenses/MIT). from odoo import fields, models class PosConfig(models.Model): _inherit = "pos.config" show_qtys = fields.Boolean( "Show Product Qtys", help="Show Product Qtys in ...
29.625
83
0.721519
a01bfae79bf24be9d48eb0c8c9d981073144e56b
1,131
py
Python
profiles_api/serializers.py
Sparrow-veer/profiles-rest-api
7194c412f80ec7cbc88a37e10225320f25c13caf
[ "MIT" ]
null
null
null
profiles_api/serializers.py
Sparrow-veer/profiles-rest-api
7194c412f80ec7cbc88a37e10225320f25c13caf
[ "MIT" ]
null
null
null
profiles_api/serializers.py
Sparrow-veer/profiles-rest-api
7194c412f80ec7cbc88a37e10225320f25c13caf
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class HelloSerializer(serializers.Serializer): """Serializes a name field for testing our APIView""" name=serializers.CharField(max_length=10) class UserProfileSerializer(serializers.ModelSerializer): """Serializes a user profile o...
27.585366
58
0.648099
0fa3aeb8ff8015c3b08bffd0b1c827ce31b2eaa3
580
py
Python
O4/_19_imputing_missing_values/doc.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
O4/_19_imputing_missing_values/doc.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
O4/_19_imputing_missing_values/doc.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
""" Often, the removal of training examples or dropping of entire feature columns is simply not feasible, because we might lose too much valuable data. In this case, we can use different interpolation techniques to estimate the missing values from the other training examples in our dataset. One of ...
38.666667
78
0.760345
34a7309fb52b7640b948a53aab5e6c7e69577b1f
8,196
py
Python
AutomatedTesting/Gem/PythonTests/Physics/tests/collider/Collider_SameCollisionGroupSameLayerCollide.py
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
11
2021-07-08T09:58:26.000Z
2022-03-17T17:59:26.000Z
AutomatedTesting/Gem/PythonTests/Physics/tests/collider/Collider_SameCollisionGroupSameLayerCollide.py
RoddieKieley/o3de
e804fd2a4241b039a42d9fa54eaae17dc94a7a92
[ "Apache-2.0", "MIT" ]
29
2021-07-06T19:33:52.000Z
2022-03-22T10:27:49.000Z
AutomatedTesting/Gem/PythonTests/Physics/tests/collider/Collider_SameCollisionGroupSameLayerCollide.py
RoddieKieley/o3de
e804fd2a4241b039a42d9fa54eaae17dc94a7a92
[ "Apache-2.0", "MIT" ]
4
2021-07-06T19:24:43.000Z
2022-03-31T12:42:27.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ # Test case ID : C4976242 # Test Case Title : Assign same collision layer and same collision group to two enti...
43.595745
127
0.702294
73bf82c5b2e361e5008140cb1d6cbfb1b426f38a
724
py
Python
main.py
marvkey/Simple-Clock
1268c33f8390ba075ad5fefc440b874138ab4885
[ "Apache-2.0" ]
null
null
null
main.py
marvkey/Simple-Clock
1268c33f8390ba075ad5fefc440b874138ab4885
[ "Apache-2.0" ]
null
null
null
main.py
marvkey/Simple-Clock
1268c33f8390ba075ad5fefc440b874138ab4885
[ "Apache-2.0" ]
null
null
null
import sys, pygame import core,timer,AlarmClock background_colour = (255,255,255) (width, height) = (300, 200) screen = pygame.display.set_mode((width, height)) pygame.display.set_caption('clock app') screen.fill(background_colour) pygame.display.flip() running = True Gui = AlarmClock.AlarmClock() def main(): whi...
23.354839
49
0.624309
aee62705fb50e34fda6ce0d84d9ed10c6c8fb243
1,867
py
Python
examples/models/file/transform_interpolator.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
1
2021-10-30T00:32:00.000Z
2021-10-30T00:32:00.000Z
examples/models/file/transform_interpolator.py
Deng-Fankang/bokeh
894731860c53b7c9ddd0057dee85cf064278dc0e
[ "BSD-3-Clause" ]
12
2020-08-26T20:19:29.000Z
2020-08-26T20:19:52.000Z
examples/models/file/transform_interpolator.py
Deng-Fankang/bokeh
894731860c53b7c9ddd0057dee85cf064278dc0e
[ "BSD-3-Clause" ]
2
2021-01-12T18:22:24.000Z
2021-10-30T00:32:02.000Z
from bokeh.models import (Column, ColumnDataSource, CustomJS, LinearInterpolator, Select, StepInterpolator,) from bokeh.plotting import figure, output_file, show output_file("transform_interpolator.html", title="Example Transforms") N = 600 controls = ColumnDataSource(data=dict(x=[1, 2, 3, ...
28.723077
85
0.521157
0a4ff3f5ee4324cf18ce212d62f3d2789c81f368
2,083
py
Python
OGFrogClock.py
salt-jp/Portfolio
87026d7b5c8c1393e114e8b701e2f07305cdddaf
[ "Apache-2.0" ]
null
null
null
OGFrogClock.py
salt-jp/Portfolio
87026d7b5c8c1393e114e8b701e2f07305cdddaf
[ "Apache-2.0" ]
null
null
null
OGFrogClock.py
salt-jp/Portfolio
87026d7b5c8c1393e114e8b701e2f07305cdddaf
[ "Apache-2.0" ]
null
null
null
let sec; let min; let hr; let mill; let x = 10; let speed = 2; //blink check //let check = 30; function setup() { createCanvas(windowWidth, windowHeight); background(0,50,100); } function draw() { fill(0,100,50); ellipse(510 + 400, 850, 700, 200); fill(1, 255, 100); noStroke(); //head ellipse(510 + 400, 4...
16.273438
50
0.551128
dd0d1e45a6b03586912ed2af58c3ca9521a86418
618
py
Python
migrations/versions/4b01613bfbed_.py
J4LP/J4OAuth
ca757958f1e7069f08e0dae3becd70b90507c871
[ "MIT" ]
1
2015-12-15T03:17:15.000Z
2015-12-15T03:17:15.000Z
migrations/versions/4b01613bfbed_.py
J4LP/J4OAuth
ca757958f1e7069f08e0dae3becd70b90507c871
[ "MIT" ]
null
null
null
migrations/versions/4b01613bfbed_.py
J4LP/J4OAuth
ca757958f1e7069f08e0dae3becd70b90507c871
[ "MIT" ]
1
2015-12-15T03:17:19.000Z
2015-12-15T03:17:19.000Z
"""empty message Revision ID: 4b01613bfbed Revises: 406cccb640c3 Create Date: 2014-02-07 00:29:22.150808 """ # revision identifiers, used by Alembic. revision = '4b01613bfbed' down_revision = '406cccb640c3' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
22.888889
88
0.697411
88bdfd71cc2fd839387d5e496eba73dfd06b0b0a
2,674
py
Python
venv/lib/python3.6/site-packages/flask_script/cli.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/flask_script/cli.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
1
2021-06-01T23:32:38.000Z
2021-06-01T23:32:38.000Z
venv/lib/python3.6/site-packages/flask_script/cli.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import getpass from ._compat import string_types, input def prompt(name, default=None): """ Grab user input from command line. :param name: prompt text :param default: default value if no input provided. """ prompt = name + (default and " [%s]" % default or "") p...
28.147368
75
0.57816
30a1bfc29f137fac17649807e035cb117fcbb4d6
14,381
py
Python
soxs/background/point_sources.py
granttremblay/soxs
30c96ae74153cc974637b6bfb478bd56743cb90b
[ "BSD-3-Clause" ]
4
2017-07-05T14:27:08.000Z
2021-04-24T16:45:08.000Z
soxs/background/point_sources.py
granttremblay/soxs
30c96ae74153cc974637b6bfb478bd56743cb90b
[ "BSD-3-Clause" ]
7
2016-12-13T20:57:23.000Z
2020-03-20T16:55:08.000Z
soxs/background/point_sources.py
granttremblay/soxs
30c96ae74153cc974637b6bfb478bd56743cb90b
[ "BSD-3-Clause" ]
2
2017-03-31T18:30:01.000Z
2017-08-11T20:23:56.000Z
import numpy as np from soxs import write_photon_list from soxs.constants import keV_per_erg, erg_per_keV from soxs.spectra import get_wabs_absorb, get_tbabs_absorb from soxs.utils import mylog, parse_prng, parse_value from scipy.interpolate import InterpolatedUnivariateSpline from scipy.special import erf from ...
40.739377
85
0.618733
edbeb25b091fa0c710b382156125c76ca1741a87
1,225
py
Python
pytest_drf/fixtures.py
theY4Kman/pytest-drf
1c86e023ebe7353e89aa71a7fc3b15457b5b20bd
[ "MIT" ]
58
2020-02-09T07:13:57.000Z
2021-12-06T10:00:15.000Z
pytest_drf/fixtures.py
theY4Kman/pytest-drf
1c86e023ebe7353e89aa71a7fc3b15457b5b20bd
[ "MIT" ]
10
2020-07-27T09:21:51.000Z
2021-09-11T20:14:45.000Z
pytest_drf/fixtures.py
theY4Kman/pytest-drf
1c86e023ebe7353e89aa71a7fc3b15457b5b20bd
[ "MIT" ]
5
2020-07-27T08:39:48.000Z
2021-12-26T07:08:55.000Z
from typing import Callable, TYPE_CHECKING import pytest if TYPE_CHECKING: # NOTE: APIClient forward refs used to avoid loading Django settings too early from pytest_drf.client import DRFTestClient from django.contrib.auth.models import User __all__ = ['create_drf_client', 'unauthed_client'] @pytest.f...
29.166667
82
0.738776
fed74c45428060ceb4d6fc06f4970281ca35f926
477,057
py
Python
sdk/python/pulumi_azure_native/datamigration/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datamigration/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datamigration/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "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, overload from .. import _utilities from...
37.041463
451
0.645302
b5fe941f7d6a7efd36926ec91d5fa15064b1d9d4
2,031
py
Python
pages/locators.py
MaxFix/stepik_autotest_course_final_project
28e92c05b35c1f03afb3309f24818c0d21952b95
[ "MIT" ]
null
null
null
pages/locators.py
MaxFix/stepik_autotest_course_final_project
28e92c05b35c1f03afb3309f24818c0d21952b95
[ "MIT" ]
null
null
null
pages/locators.py
MaxFix/stepik_autotest_course_final_project
28e92c05b35c1f03afb3309f24818c0d21952b95
[ "MIT" ]
null
null
null
from selenium.webdriver.common.by import By class BasePageLocators(): LOGIN_LINK = (By.CSS_SELECTOR, "#login_link") LOGIN_LINK_INVALID = (By.CSS_SELECTOR, "#login_link_inc") USER_ICON = (By.CSS_SELECTOR, ".icon-user") class MainPageLocators(): LOGIN_LINK = (By.CSS_SELECTOR, "#login_link") TOP_BA...
48.357143
110
0.676022
a82ed781ffeabe4c1567163e6f58a3b0ca6198ad
865
py
Python
website/website/views.py
bubai666sen/Visitor-Manager
9ecfa087f332d368e2a52dd812c272d30c3a55df
[ "MIT" ]
null
null
null
website/website/views.py
bubai666sen/Visitor-Manager
9ecfa087f332d368e2a52dd812c272d30c3a55df
[ "MIT" ]
null
null
null
website/website/views.py
bubai666sen/Visitor-Manager
9ecfa087f332d368e2a52dd812c272d30c3a55df
[ "MIT" ]
1
2020-09-14T14:37:02.000Z
2020-09-14T14:37:02.000Z
from django.shortcuts import render from CMS.models import * def index(request): background_image = None try: page = Page.objects.get(page=1,status=1) try: background_image = page.background_image.name.split("/")[-1] except: pass except: page = None ...
25.441176
72
0.572254
57599217230386b049b3e9e325ff6e8e4f414071
396
py
Python
fourth-year/EGC/EGC-1230-julgomrod/decide/base/management/commands/register_uvus.py
JulianGR/university
2f643825b238892d602baf0c8e71e4c1b0fdefc2
[ "MIT" ]
null
null
null
fourth-year/EGC/EGC-1230-julgomrod/decide/base/management/commands/register_uvus.py
JulianGR/university
2f643825b238892d602baf0c8e71e4c1b0fdefc2
[ "MIT" ]
null
null
null
fourth-year/EGC/EGC-1230-julgomrod/decide/base/management/commands/register_uvus.py
JulianGR/university
2f643825b238892d602baf0c8e71e4c1b0fdefc2
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from base.mods import register_status class RegisterCommand(BaseCommand): help = 'Returns the ID fot a user' #def add_arguments(self, parser): # parser.add_argument('uvus', nargs='+', type=str) def handle(self, *args, **options): ...
26.4
65
0.689394
0e9efe247f8986b465a4b2f305f1592bf4f46906
2,639
py
Python
python/sdk/client/models/alert_condition_metric_type.py
ashwinath/merlin
087a7fa6fb21e4c771d64418bd58873175226ca1
[ "Apache-2.0" ]
null
null
null
python/sdk/client/models/alert_condition_metric_type.py
ashwinath/merlin
087a7fa6fb21e4c771d64418bd58873175226ca1
[ "Apache-2.0" ]
null
null
null
python/sdk/client/models/alert_condition_metric_type.py
ashwinath/merlin
087a7fa6fb21e4c771d64418bd58873175226ca1
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Merlin API Guide for accessing Merlin's model management, deployment, and serving functionalities # noqa: E501 OpenAPI spec version: 0.7.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class AlertCo...
27.206186
108
0.558924
136338c2c010f26f4a1d4ad9d3f0eca662bb6e07
10,120
py
Python
multimedia/south_migrations/0002_auto__add_field_media_thumbnail_image__add_field_media_auto_thumbnail_.py
jbittel/django-multimedia
4ddd5e6d9f4f680e2f4f68cc3616ced8f0fc2a43
[ "BSD-3-Clause" ]
19
2015-01-28T08:40:20.000Z
2021-12-18T11:55:58.000Z
multimedia/migrations/0002_auto__add_field_media_thumbnail_image__add_field_media_auto_thumbnail_.py
kamilion/django-multimedia
702a61e03ec9639743684a3979525529a875b092
[ "BSD-3-Clause" ]
2
2015-02-09T17:03:24.000Z
2015-04-22T17:57:45.000Z
multimedia/migrations/0002_auto__add_field_media_thumbnail_image__add_field_media_auto_thumbnail_.py
kamilion/django-multimedia
702a61e03ec9639743684a3979525529a875b092
[ "BSD-3-Clause" ]
4
2015-02-02T14:05:08.000Z
2016-09-14T00:44:55.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Media.thumbnail_image' db.add_column('multimedia_media', 'thumbnail_image', self.gf('djang...
77.251908
182
0.577569
9569d90c2a91ff07ecbcd69037f3bed5e7f60341
8,396
py
Python
irodsapi/irodsApisForWp8/projects.py
lexis-project/ddi-service-apis
9e96c4159154d70613b1977a8ea28374c038b463
[ "Apache-2.0" ]
null
null
null
irodsapi/irodsApisForWp8/projects.py
lexis-project/ddi-service-apis
9e96c4159154d70613b1977a8ea28374c038b463
[ "Apache-2.0" ]
null
null
null
irodsapi/irodsApisForWp8/projects.py
lexis-project/ddi-service-apis
9e96c4159154d70613b1977a8ea28374c038b463
[ "Apache-2.0" ]
null
null
null
import irods.exception from irods.session import iRODSSession from irods.access import iRODSAccess from irods.exception import (CAT_INVALID_USER) import hashlib from . import group from . import utils import logging logger = logging.getLogger(__name__) def create_project(session, zone, project_name): """Create a ...
37.482143
139
0.691758
512991571e5ec059474a5a8bec40c4f55d9f9c31
1,427
py
Python
nipype/interfaces/slicer/quantification/tests/test_auto_IntensityDifferenceMetric.py
dPys/nipype
75030b29297808e7c9a9e91b411b685154dff60b
[ "Apache-2.0" ]
1
2019-03-25T14:11:18.000Z
2019-03-25T14:11:18.000Z
nipype/interfaces/slicer/quantification/tests/test_auto_IntensityDifferenceMetric.py
dPys/nipype
75030b29297808e7c9a9e91b411b685154dff60b
[ "Apache-2.0" ]
1
2017-01-05T01:24:33.000Z
2017-01-05T01:24:33.000Z
nipype/interfaces/slicer/quantification/tests/test_auto_IntensityDifferenceMetric.py
wtriplett/nipype
388f140fceaf55438a987e9cdfa2a8e995428afd
[ "Apache-2.0" ]
1
2020-12-16T16:36:48.000Z
2020-12-16T16:36:48.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..changequantification import IntensityDifferenceMetric def test_IntensityDifferenceMetric_inputs(): input_map = dict( args=dict(argstr="%s",), baselineSegmentationVolume=dict(argstr="%s", extensions=None, position=-3,), baselineVo...
41.970588
84
0.685354
8cfea7362d17884efcd9a43ae71147313bd0f4d2
8,335
py
Python
docs/conf.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
9
2018-01-06T05:44:43.000Z
2020-06-24T00:15:16.000Z
docs/conf.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
27
2018-01-06T09:29:48.000Z
2020-04-10T16:11:59.000Z
docs/conf.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
1
2018-01-09T01:33:42.000Z
2018-01-09T01:33:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # pfm documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # 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 # autogen...
30.199275
76
0.713257
8b99af3e24c32727a883b6fa87c338e95be33771
3,343
py
Python
ibm-xforce-malware/operations.py
fortinet-fortisoar/connector-ibm-xforce-malware
624346dc580c4c97430e76e35d2ed4f2700b188e
[ "MIT" ]
null
null
null
ibm-xforce-malware/operations.py
fortinet-fortisoar/connector-ibm-xforce-malware
624346dc580c4c97430e76e35d2ed4f2700b188e
[ "MIT" ]
null
null
null
ibm-xforce-malware/operations.py
fortinet-fortisoar/connector-ibm-xforce-malware
624346dc580c4c97430e76e35d2ed4f2700b188e
[ "MIT" ]
1
2021-12-14T13:08:26.000Z
2021-12-14T13:08:26.000Z
""" Copyright start Copyright (C) 2008 - 2021 Fortinet Inc. All rights reserved. FORTINET CONFIDENTIAL & FORTINET PROPRIETARY SOURCE CODE Copyright end """ import base64 import requests from connectors.core.connector import get_logger, ConnectorError logger = get_logger('ibm-xforce-malware') class IBMXMalwar...
37.561798
112
0.671552
acd56a1c3efbfccca4c967d6bf09785bcba86178
775
py
Python
test/setup/models.py
JangasCodingplace/flask-neo4j-lite
bcbb1a11c406d36e5d51f9ee3f329e7e6755b16c
[ "MIT" ]
null
null
null
test/setup/models.py
JangasCodingplace/flask-neo4j-lite
bcbb1a11c406d36e5d51f9ee3f329e7e6755b16c
[ "MIT" ]
null
null
null
test/setup/models.py
JangasCodingplace/flask-neo4j-lite
bcbb1a11c406d36e5d51f9ee3f329e7e6755b16c
[ "MIT" ]
null
null
null
from flask_neo4j_lite.config import NeoConfig from py2neo import Graph, NodeMatcher, RelationshipMatcher NeoConfig.graph = Graph(password="neo4JPassword", port="11005") NeoConfig.matcher = NodeMatcher(NeoConfig.graph) NeoConfig.relationship_matcher = RelationshipMatcher(NeoConfig.graph) from py2neo.ogm import (Prop...
23.484848
69
0.762581
af417509e6fb813207fba22d28f8118c64d4226c
1,471
py
Python
mayan/apps/dynamic_search/settings.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
2
2021-09-12T19:41:19.000Z
2021-09-12T19:41:20.000Z
mayan/apps/dynamic_search/settings.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
37
2021-09-13T01:00:12.000Z
2021-10-02T03:54:30.000Z
mayan/apps/dynamic_search/settings.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
1
2021-09-22T13:17:30.000Z
2021-09-22T13:17:30.000Z
from django.utils.translation import ugettext_lazy as _ from mayan.apps.smart_settings.classes import SettingNamespace from .literals import ( DEFAULT_SEARCH_BACKEND, DEFAULT_SEARCH_BACKEND_ARGUMENTS, DEFAULT_SEARCH_DISABLE_SIMPLE_SEARCH, DEFAULT_SEARCH_MATCH_ALL_DEFAULT_VALUE, DEFAULT_SEARCH_RESUL...
37.717949
78
0.774983
14c4843cceb2fc5fdfbade2e4a6aca56ba46349c
196
py
Python
tests/test_shapely.py
paultimothymooney/docker-python-2
15c3f923e2ccedb46e81bcb8177a67fc42d90bcc
[ "Apache-2.0" ]
2,030
2015-04-14T15:44:41.000Z
2022-03-29T18:06:53.000Z
tests/test_shapely.py
paultimothymooney/docker-python-2
15c3f923e2ccedb46e81bcb8177a67fc42d90bcc
[ "Apache-2.0" ]
666
2015-04-14T20:14:30.000Z
2022-03-29T12:59:21.000Z
tests/test_shapely.py
paultimothymooney/docker-python-2
15c3f923e2ccedb46e81bcb8177a67fc42d90bcc
[ "Apache-2.0" ]
951
2015-05-07T18:26:08.000Z
2022-03-27T08:46:05.000Z
import unittest from shapely.geometry import Point class TestShapely(unittest.TestCase): def test_geometry(self): p = Point(0.0, 0.0) self.assertEqual("Point", p.geom_type)
19.6
46
0.693878
0ab40f9c3104d460814f69b226450d3ef399b1d8
1,462
py
Python
addressapp/api/geography.py
AbhiyantrikTechnology/DentalHub-Backend
89802b3e7671ffe8b3d287a998c3c4f375b58f03
[ "MIT" ]
1
2021-04-03T19:57:32.000Z
2021-04-03T19:57:32.000Z
addressapp/api/geography.py
AbhiyantrikTechnology/DentalHub-Backend
89802b3e7671ffe8b3d287a998c3c4f375b58f03
[ "MIT" ]
null
null
null
addressapp/api/geography.py
AbhiyantrikTechnology/DentalHub-Backend
89802b3e7671ffe8b3d287a998c3c4f375b58f03
[ "MIT" ]
null
null
null
import re from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import permissions from userapp.models import User,CustomUser from addressapp.serializers.address import GeoSerializer from addressapp.models import Ward from django_fi...
36.55
84
0.73461
36dcd2c594fd14ca2c1ffdd145b7da97fa327b57
10,155
py
Python
tests/test_builtins.py
drmikecrowe/xonsh
8bbefebef30f2a75a695aa6fc5ed23b14db8f842
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_builtins.py
drmikecrowe/xonsh
8bbefebef30f2a75a695aa6fc5ed23b14db8f842
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_builtins.py
drmikecrowe/xonsh
8bbefebef30f2a75a695aa6fc5ed23b14db8f842
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- """Tests the xonsh builtins.""" from __future__ import unicode_literals, print_function import os import re import builtins import types from ast import AST, Module, Interactive, Expression from subprocess import Popen import pytest from xonsh import built_ins from xonsh.built_ins import ( ...
24.236277
83
0.617725
904d838c694a787bc45f761033cd9853f157bdb6
498
py
Python
Mas/Email/errors.py
XtremeGood/DjantoSoft
aa6e89f7319d473d06117c2a5f56abcb40d4060a
[ "Apache-2.0" ]
null
null
null
Mas/Email/errors.py
XtremeGood/DjantoSoft
aa6e89f7319d473d06117c2a5f56abcb40d4060a
[ "Apache-2.0" ]
null
null
null
Mas/Email/errors.py
XtremeGood/DjantoSoft
aa6e89f7319d473d06117c2a5f56abcb40d4060a
[ "Apache-2.0" ]
null
null
null
class SubjectError(Exception): def __init__(self, expression, message=""): self.expression = expression self.message = f'Invalid subject {expression}' if not message else message super().__init__(self.message) class FileReadingError(Exception): def __init__(self, expression, message="", ...
41.5
86
0.694779
588539d075191df118a705abd9e7f78419142ffb
5,005
py
Python
pr-data/pr-data.py
thebombzen/azur-lane-calculators
29163c0356776f629019760d7840e4804373fcbd
[ "MIT" ]
2
2019-12-10T12:52:43.000Z
2020-06-09T00:47:46.000Z
pr-data/pr-data.py
thebombzen/azur-lane
29163c0356776f629019760d7840e4804373fcbd
[ "MIT" ]
null
null
null
pr-data/pr-data.py
thebombzen/azur-lane
29163c0356776f629019760d7840e4804373fcbd
[ "MIT" ]
null
null
null
# python3 uwsgi import cgi import subprocess import os import re import sys import tempfile import traceback colors = { 'ok': '#0D800F', 'warn': '#C8B00F', 'error': '#B00D0F', } asset_cache = {} static_asset_dir = 'pr-data/static/' def eprint(*args, **kwargs): kwargs['file'] = sys.stderr print(*...
34.047619
178
0.635564
ff689ac7e4d06f135b1726c646f1d665880af8ce
2,859
py
Python
tests/numpy_unit_testing/test_function_binary_operator_right_shift.py
jiajiaxu123/Orca
e86189e70c1d0387816bb98b8047a6232fbda9df
[ "Apache-2.0" ]
20
2019-12-02T11:49:12.000Z
2021-12-24T19:34:32.000Z
tests/numpy_unit_testing/test_function_binary_operator_right_shift.py
jiajiaxu123/Orca
e86189e70c1d0387816bb98b8047a6232fbda9df
[ "Apache-2.0" ]
null
null
null
tests/numpy_unit_testing/test_function_binary_operator_right_shift.py
jiajiaxu123/Orca
e86189e70c1d0387816bb98b8047a6232fbda9df
[ "Apache-2.0" ]
5
2019-12-02T12:16:22.000Z
2021-10-22T02:27:47.000Z
import unittest from setup.settings import * from numpy.testing import * from pandas.util.testing import * import numpy as np import dolphindb_numpy as dnp import pandas as pd import orca class FunctionrightshiftTest(unittest.TestCase): @classmethod def setUpClass(cls): # connect to a DolphinDB server...
37.12987
101
0.639035
0c7a4531b8f9ff7d97e599fdd21df102f4bc4189
2,624
py
Python
geostore/check_stac_metadata/task.py
adisbladis/geostore
79439c06b33414e1e26b3aa4b93a72fd7cbbae83
[ "MIT" ]
25
2021-05-19T08:05:07.000Z
2022-03-14T02:48:58.000Z
geostore/check_stac_metadata/task.py
adisbladis/geostore
79439c06b33414e1e26b3aa4b93a72fd7cbbae83
[ "MIT" ]
311
2021-05-17T23:04:56.000Z
2022-03-31T10:41:44.000Z
geostore/check_stac_metadata/task.py
adisbladis/geostore
79439c06b33414e1e26b3aa4b93a72fd7cbbae83
[ "MIT" ]
1
2022-01-03T05:38:32.000Z
2022-01-03T05:38:32.000Z
from logging import Logger from botocore.exceptions import ClientError from botocore.response import StreamingBody from jsonschema import ValidationError, validate from linz_logger import get_log from ..api_keys import SUCCESS_KEY from ..error_response_keys import ERROR_MESSAGE_KEY from ..logging_keys import ( LO...
36.444444
98
0.703506
2d3b1c1f3cdb8ebe90410027bc4df4ff9aadba9f
41,376
py
Python
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/python/debug/cli/debugger_cli_common.py
JustinACoder/H22-GR3-UnrealAI
361eb9ef1147f8a2991e5f98c4118cd823184adf
[ "MIT" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/python/debug/cli/debugger_cli_common.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/tensorflow/python/debug/cli/debugger_cli_common.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
33.021548
81
0.650498
7188beb368060d7629cf3c8369df8c47070c62e1
553
py
Python
recommmender_system_project/tools.py
noufanpmc/Movie-Recommendation-System
2d446a51579eef9a422ca5b7a4a937d1584f42dc
[ "MIT" ]
null
null
null
recommmender_system_project/tools.py
noufanpmc/Movie-Recommendation-System
2d446a51579eef9a422ca5b7a4a937d1584f42dc
[ "MIT" ]
null
null
null
recommmender_system_project/tools.py
noufanpmc/Movie-Recommendation-System
2d446a51579eef9a422ca5b7a4a937d1584f42dc
[ "MIT" ]
null
null
null
import pandas from sklearn.manifold import TSNE import matplotlib.pyplot as plt def visualize_embeddings(embeddings: pandas.DataFrame) -> None: """Visualize the embeddings of the items in 2d. Parameters ---------- embeddings : pandas.DataFrame A dataframe with item embeddings. Returns ...
26.333333
87
0.683544
513ca17d6cbb30b4b7615c40c5609dc0ff7f3609
529
py
Python
solutions/3b/electronics/scripts/q3/publisher.py
adbidwai/QSTP-Kratos_electronics
4f7e4176a129847130d727e3c2fb7b528080a5ae
[ "MIT" ]
8
2020-05-11T05:48:14.000Z
2021-09-10T06:24:52.000Z
solutions/3b/electronics/scripts/q3/publisher.py
adbidwai/QSTP-Kratos_electronics
4f7e4176a129847130d727e3c2fb7b528080a5ae
[ "MIT" ]
null
null
null
solutions/3b/electronics/scripts/q3/publisher.py
adbidwai/QSTP-Kratos_electronics
4f7e4176a129847130d727e3c2fb7b528080a5ae
[ "MIT" ]
2
2020-05-29T06:08:32.000Z
2020-08-03T13:24:09.000Z
#! /usr/bin/env python import rospy from electronics.msg import Rover #import the custom message file you created rospy.init_node("ROVER") #intialize a node pub = rospy.Publisher('rover',Rover,queue_size=10) # create a publisher object msg = Rover() #create a message object of class Rover...
37.785714
94
0.68242
0bb1da02035da6e8625a1114e7c8f69705443a4b
6,684
py
Python
deepclaw/driver/arms/Inverse_Kinematics/ikpy/chain.py
Nokkxz/ME336-Yellow-Team-Project
5b6d65ecb134049ba3c5d27c37f521ada79a913f
[ "MIT" ]
5
2020-06-24T03:47:00.000Z
2021-10-13T03:35:38.000Z
deepclaw/driver/arms/Inverse_Kinematics/ikpy/chain.py
Nokkxz/ME336-Yellow-Team-Project
5b6d65ecb134049ba3c5d27c37f521ada79a913f
[ "MIT" ]
null
null
null
deepclaw/driver/arms/Inverse_Kinematics/ikpy/chain.py
Nokkxz/ME336-Yellow-Team-Project
5b6d65ecb134049ba3c5d27c37f521ada79a913f
[ "MIT" ]
3
2020-06-18T09:25:39.000Z
2021-04-18T03:51:08.000Z
# coding= utf8 """ .. module:: chain This module implements the Chain class. """ import numpy as np # IKPY imports from . import URDF_utils from . import inverse_kinematics as ik from . import link as link_lib class Chain(object): """The base Chain class Parameters ---------- links: list[ikpy.link.L...
36.928177
175
0.633303
7e7040947b5ab26081581e2058cc44a5928bfcb8
506
py
Python
00_Program/OddEven.py
zharmedia386/Python-Programming-Exercises
5d27be4e72cc153ef6c677062a4783abfaf4390c
[ "MIT" ]
null
null
null
00_Program/OddEven.py
zharmedia386/Python-Programming-Exercises
5d27be4e72cc153ef6c677062a4783abfaf4390c
[ "MIT" ]
null
null
null
00_Program/OddEven.py
zharmedia386/Python-Programming-Exercises
5d27be4e72cc153ef6c677062a4783abfaf4390c
[ "MIT" ]
null
null
null
# This program is to check the input number, whether including odd or even # If input number mod 2 == 0, so that's an even number # If input number mod 2 != 0, so that's an odd number def input_number() : number = int(input("Enter your number : ")) return number def checking_number() : number = input_numb...
33.733333
74
0.652174
6f330ba86e3da571ae32393d9dff42110bd0c1f4
3,593
py
Python
c2cwsgiutils/request_tracking/__init__.py
camptocamp/c2cwsgiutils
7f99937ccebc31c8e97c58de3819458eb9d6435e
[ "BSD-2-Clause-FreeBSD" ]
5
2017-06-25T07:50:57.000Z
2019-01-25T16:49:57.000Z
c2cwsgiutils/request_tracking/__init__.py
camptocamp/c2cwsgiutils
7f99937ccebc31c8e97c58de3819458eb9d6435e
[ "BSD-2-Clause-FreeBSD" ]
200
2017-02-01T15:13:38.000Z
2022-03-31T21:29:54.000Z
c2cwsgiutils/request_tracking/__init__.py
camptocamp/c2cwsgiutils
7f99937ccebc31c8e97c58de3819458eb9d6435e
[ "BSD-2-Clause-FreeBSD" ]
4
2019-07-08T12:28:19.000Z
2020-06-10T02:44:35.000Z
""" Allows to track the request_id in the logs, the DB and others. Adds a c2c_request_id attribute to the Pyramid Request class to access it. """ import logging import urllib.parse import uuid from typing import Any, Dict, List, Optional, Sequence # noqa # pylint: disable=unused-import import pyramid.request import...
35.93
107
0.636237
217783d02076d1dbb606307df41599f59887e185
2,239
py
Python
bpy_lattice/camera.py
ChristopherMayes/bpy-lattice
66f7d292795b137b24128153adba37035788ef93
[ "Apache-2.0" ]
null
null
null
bpy_lattice/camera.py
ChristopherMayes/bpy-lattice
66f7d292795b137b24128153adba37035788ef93
[ "Apache-2.0" ]
null
null
null
bpy_lattice/camera.py
ChristopherMayes/bpy-lattice
66f7d292795b137b24128153adba37035788ef93
[ "Apache-2.0" ]
1
2020-07-17T01:53:21.000Z
2020-07-17T01:53:21.000Z
import bpy from math import sin, cos, pi, sqrt def camera_at(d): cam = bpy.data.objects['Camera'] # bpy.types.Camera cam.location.x = 0.0 cam.location.y = -d/sqrt(2) cam.location.z = d/sqrt(2) cam.rotation_euler.x = pi/4 cam.rotation_euler.y = 0 cam.rotation_euler.z = 0 def ortho_camera_at(z, scale): ...
26.341176
97
0.687807
e0d9d0474d53e26bb0916c55c2f522666894f511
1,554
py
Python
NeuralNet.py
NoahRJohnson/AlphaReZero
e21084ef3896dec47b22de96656144220c046402
[ "MIT" ]
null
null
null
NeuralNet.py
NoahRJohnson/AlphaReZero
e21084ef3896dec47b22de96656144220c046402
[ "MIT" ]
null
null
null
NeuralNet.py
NoahRJohnson/AlphaReZero
e21084ef3896dec47b22de96656144220c046402
[ "MIT" ]
null
null
null
class NeuralNet(): """ This class specifies the base NeuralNet class. To define your own neural network, subclass this class and implement the functions below. The neural network does not consider the current player, and instead only deals with the canonical form of the board. See miniShogi/NNe...
30.470588
80
0.593308
c898177f976c370b0a0dea1ba4302a5225e1f050
4,129
py
Python
models/data/transforms/transform_util.py
giorking/CenterNet_Pro_Max
dc50e7dd4b10eff5ad8f428641cc2f9a7ba01ce6
[ "Apache-2.0" ]
2
2020-05-05T07:08:05.000Z
2020-06-19T03:20:21.000Z
models/data/transforms/transform_util.py
cavalleria/CenterNet_Pro_Max
bf2f6708c83ca2cb716315bb1aaf71039f458746
[ "Apache-2.0" ]
null
null
null
models/data/transforms/transform_util.py
cavalleria/CenterNet_Pro_Max
bf2f6708c83ca2cb716315bb1aaf71039f458746
[ "Apache-2.0" ]
2
2020-04-08T14:35:47.000Z
2020-04-13T06:24:05.000Z
#!/usr/bin/env python3 # # Copyright (c) 2020 jintian. # # This file is part of CenterNet_Pro_Max # (see jinfagang.github.io). # # 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...
37.880734
78
0.667716
a6f9ac5eb51421c1e1b86011f8d39435ad78cc67
15,670
py
Python
numpyro/distributions/constraints.py
tcbegley/numpyro
e55f0d41c9eba48a10e88fb403a5e016f18857e6
[ "Apache-2.0" ]
null
null
null
numpyro/distributions/constraints.py
tcbegley/numpyro
e55f0d41c9eba48a10e88fb403a5e016f18857e6
[ "Apache-2.0" ]
null
null
null
numpyro/distributions/constraints.py
tcbegley/numpyro
e55f0d41c9eba48a10e88fb403a5e016f18857e6
[ "Apache-2.0" ]
null
null
null
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 # The implementation follows the design in PyTorch: torch.distributions.constraints.py # # Copyright (c) 2016- Facebook, Inc (Adam Paszke) # Copyright (c) 2014- Facebook, Inc (Soumith Chintala) # Copyright...
32.309278
108
0.662157
495eea9107249c9ef6af0464268cc1e2e9fd6b2f
3,272
py
Python
coq/doc/tools/coqrst/repl/ansicolors.py
reichel3/TacTok
c344e76263de04311af8a0030c07aec95d87f71c
[ "MIT" ]
7
2020-11-23T02:45:36.000Z
2022-03-18T03:03:33.000Z
coq/doc/tools/coqrst/repl/ansicolors.py
reichel3/TacTok
c344e76263de04311af8a0030c07aec95d87f71c
[ "MIT" ]
4
2021-02-23T03:03:51.000Z
2021-11-13T00:07:38.000Z
coq/doc/tools/coqrst/repl/ansicolors.py
reichel3/TacTok
c344e76263de04311af8a0030c07aec95d87f71c
[ "MIT" ]
2
2021-01-19T17:56:28.000Z
2022-03-28T04:39:41.000Z
########################################################################## ## # The Coq Proof Assistant / The Coq Development Team ## ## v # INRIA, CNRS and contributors - Copyright 1999-2018 ## ## <O___,, # (see CREDITS file for the list of authors) ## ## \VV/ #########...
32.72
76
0.466076
6ffd004231b0151c9a0bb874cee8a81b07ecb9f9
694
py
Python
setup.py
monosloth/console
a47e1479320a18a4b5716e87ee275985ebd5825f
[ "MIT" ]
null
null
null
setup.py
monosloth/console
a47e1479320a18a4b5716e87ee275985ebd5825f
[ "MIT" ]
null
null
null
setup.py
monosloth/console
a47e1479320a18a4b5716e87ee275985ebd5825f
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="monosloth-console", version="0.0.1", license='MIT', author="monosloth", author_email="admin@monosloth.com", description="A command line utility for monosloth", long_description=lon...
26.692308
55
0.652738
9cf2b7b7c2cac54ab9a1ab2cfa036e14372d0093
4,950
py
Python
MachineLearningPyFiles_DataScience/demo17_classificationcancer.py
mahnooranjum/Programming_DataScience
f7a4215d4615b3f8460c3a1944a585628cf6930d
[ "MIT" ]
null
null
null
MachineLearningPyFiles_DataScience/demo17_classificationcancer.py
mahnooranjum/Programming_DataScience
f7a4215d4615b3f8460c3a1944a585628cf6930d
[ "MIT" ]
null
null
null
MachineLearningPyFiles_DataScience/demo17_classificationcancer.py
mahnooranjum/Programming_DataScience
f7a4215d4615b3f8460c3a1944a585628cf6930d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd # Visualising the results def plot_model(classifier, X_set, y_set, y_test, y_pred, text): from sklearn.metrics import accuracy_score print("===== Accuracy Score =====") print(accuracy_score(y_test, y_pred)) from sklearn.metrics import cl...
34.615385
107
0.764444
93f55ff0315d287f22c31a5011458da16ad10f21
34,826
py
Python
common/middleware/tempauth.py
escudocloud/encswift_server
90a5a999c06b40da89d5f785795f80bd9d990640
[ "Apache-2.0" ]
null
null
null
common/middleware/tempauth.py
escudocloud/encswift_server
90a5a999c06b40da89d5f785795f80bd9d990640
[ "Apache-2.0" ]
null
null
null
common/middleware/tempauth.py
escudocloud/encswift_server
90a5a999c06b40da89d5f785795f80bd9d990640
[ "Apache-2.0" ]
1
2016-09-27T09:08:24.000Z
2016-09-27T09:08:24.000Z
# Copyright (c) 2011-2014 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 applicable law or agree...
44.821107
79
0.585367
8d242c70b381c8c11b6335ea29fb4baa55404f4e
82
py
Python
exercicios/PythonExercicios/ex002.py
Roberto-Sartore/Python
98f91f13cf78d761893c4a1f3264ed999244d32b
[ "MIT" ]
null
null
null
exercicios/PythonExercicios/ex002.py
Roberto-Sartore/Python
98f91f13cf78d761893c4a1f3264ed999244d32b
[ "MIT" ]
null
null
null
exercicios/PythonExercicios/ex002.py
Roberto-Sartore/Python
98f91f13cf78d761893c4a1f3264ed999244d32b
[ "MIT" ]
null
null
null
nome = input('qual é o seu nome?') print('Olá', nome, '. Prazer em te conhecer!')
27.333333
46
0.634146
1566a8f3245e63b1af574332b7a46f6698728784
6,733
py
Python
templates/management-api/authenticator.py
pawankaushal/crossbar-examples
b6e0cc321bad020045c4fafec091f78abd938618
[ "Apache-2.0" ]
null
null
null
templates/management-api/authenticator.py
pawankaushal/crossbar-examples
b6e0cc321bad020045c4fafec091f78abd938618
[ "Apache-2.0" ]
null
null
null
templates/management-api/authenticator.py
pawankaushal/crossbar-examples
b6e0cc321bad020045c4fafec091f78abd938618
[ "Apache-2.0" ]
null
null
null
############################################################################### ## ## Copyright (C) Tavendo GmbH and/or collaborators. All rights reserved. ## ## Redistribution and use in source and binary forms, with or without ## modification, are permitted provided that the following conditions are met: ## ## 1....
37.198895
166
0.526511
97594206dcb522d582e93b011e631dbe9b6f8f90
2,970
py
Python
fancy/config/config_loaders.py
susautw/fancy-config
25a3bd51a40df071d00327640caa05b6288bd970
[ "MIT" ]
1
2022-03-17T04:47:52.000Z
2022-03-17T04:47:52.000Z
fancy/config/config_loaders.py
susautw/fancy-config
25a3bd51a40df071d00327640caa05b6288bd970
[ "MIT" ]
9
2021-12-01T08:01:52.000Z
2022-03-16T13:05:07.000Z
fancy/config/config_loaders.py
susautw/fancy-config
25a3bd51a40df071d00327640caa05b6288bd970
[ "MIT" ]
1
2022-03-07T09:29:06.000Z
2022-03-07T09:29:06.000Z
from argparse import Namespace from pathlib import Path from typing import Dict, TYPE_CHECKING, Union import yaml from abc import ABC, abstractmethod from . import attribute_setters if TYPE_CHECKING: from ..config import BaseConfig setter_name_map = {} for name, x in vars(attribute_setters).items(): if isi...
27
109
0.66734
f71e2582319771768abac221ac3650e185cfa10e
3,198
py
Python
patterns.py
teddy-dubal/WhatsApp-Analyzer
1cae2f3be03843741e2b8f5e321ed7a307f3b1f1
[ "MIT" ]
null
null
null
patterns.py
teddy-dubal/WhatsApp-Analyzer
1cae2f3be03843741e2b8f5e321ed7a307f3b1f1
[ "MIT" ]
null
null
null
patterns.py
teddy-dubal/WhatsApp-Analyzer
1cae2f3be03843741e2b8f5e321ed7a307f3b1f1
[ "MIT" ]
null
null
null
BAD_CHARS = [ u"\u202a", u"\u200e", u"\u202c", u"\xa0", ] IS_STARTING_LINE = r""" (\[?) #Zero or one open square bracket '[' (((\d{1,2}) #1 to 2 digit date (/|-) #'/' or '-' separator (\d{1,2}) #1 to 2 digit month (/|-) #'/' or '-' separator (\d{2,4})) #2...
36.758621
194
0.551907
0fc670920c55b19f8d6ed01310b38e6a1ed18075
2,547
py
Python
tools/keys_info.py
alecBeaton/dev-alec
e39f25c31df365b9f04378d74f84dea415586a5a
[ "BSD-3-Clause" ]
null
null
null
tools/keys_info.py
alecBeaton/dev-alec
e39f25c31df365b9f04378d74f84dea415586a5a
[ "BSD-3-Clause" ]
null
null
null
tools/keys_info.py
alecBeaton/dev-alec
e39f25c31df365b9f04378d74f84dea415586a5a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 from am_defines import * minAesKeyIdx = 8 maxAesKeyIdx = 15 minHmacKeyIdx = 8 maxHmacKeyIdx = 15 ###### Following are just dummy keys - Should be substituted with real keys ####### keyTblAes = [ # Info0 Keys - Starting at index 8 0xAC, 0xCC, 0x35, 0x08, 0x5B, 0x40, 0x3E, 0x8D, 0...
54.191489
199
0.599136
055554d445b621c0433cec965b020e10d09e9d96
1,416
py
Python
python3-virtualenv/Lib/python3.6/site-packages/gunicorn/http/parser.py
LindaNayeli104/mlh-orientation-hackathon-project
d86b58f76721a9d5f3374399bfc6d3b1445d16ca
[ "MIT" ]
null
null
null
python3-virtualenv/Lib/python3.6/site-packages/gunicorn/http/parser.py
LindaNayeli104/mlh-orientation-hackathon-project
d86b58f76721a9d5f3374399bfc6d3b1445d16ca
[ "MIT" ]
null
null
null
python3-virtualenv/Lib/python3.6/site-packages/gunicorn/http/parser.py
LindaNayeli104/mlh-orientation-hackathon-project
d86b58f76721a9d5f3374399bfc6d3b1445d16ca
[ "MIT" ]
1
2021-06-20T19:28:37.000Z
2021-06-20T19:28:37.000Z
# -*- coding: utf-8 - # # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. from gunicorn.http.message import Request from gunicorn.http.unreader import SocketUnreader, IterUnreader class Parser(object): mesg_class = None def __init__(self, cf...
26.716981
95
0.601695
8ca6ed005846e41c51791cbbefab195bd8e757fd
1,038
py
Python
backend/src/exercise/urls.py
Rdani2005/helping-you2
772367ca6046ca578a6a951558f55fae2c974024
[ "MIT" ]
null
null
null
backend/src/exercise/urls.py
Rdani2005/helping-you2
772367ca6046ca578a6a951558f55fae2c974024
[ "MIT" ]
null
null
null
backend/src/exercise/urls.py
Rdani2005/helping-you2
772367ca6046ca578a6a951558f55fae2c974024
[ "MIT" ]
null
null
null
# ------------------------ Libraries ------------------------- from django.urls import path # ---------------------- Own Files ----------------------------- from . import views # ------------------ Copyright ---------------------------------- __author__ = "Danny Sequeira" __copyright__ = "Copyright (C) Danny Sequeira 2...
49.428571
105
0.572254
c9f5b9e058095ceee72c5da175822fbfc40a6448
369
py
Python
hello/hello.py
Test01DezWebSite/KattisDemos
f3768c18ea8e18b6a966d5cbb0df4f158a2f44fa
[ "MIT" ]
1
2020-04-27T20:09:06.000Z
2020-04-27T20:09:06.000Z
hello/hello.py
Test01DezWebSite/KattisDemos
f3768c18ea8e18b6a966d5cbb0df4f158a2f44fa
[ "MIT" ]
null
null
null
hello/hello.py
Test01DezWebSite/KattisDemos
f3768c18ea8e18b6a966d5cbb0df4f158a2f44fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Kattis - hello problem import sys def answer(): return "Hello World!" def solve(): print(answer()) def test(): assert answer() == "Hello World!" print('all test cases passed...') if __name__ == "__main__": if len(sys.argv) > 1 and sys.argv[1] == 'test': #print(s...
17.571429
51
0.569106
d1ba30ae477f2bd186d483f12e1043f6e6570b2c
1,137
py
Python
neweditor/public/bin/render.py
alexsigaras/SWIM
1a35df8acb26bdcb307a1b8f60e9feba68ed1715
[ "MIT" ]
3
2015-06-05T00:32:44.000Z
2017-01-06T15:44:32.000Z
neweditor/public/bin/render.py
alexsigaras/SWIM
1a35df8acb26bdcb307a1b8f60e9feba68ed1715
[ "MIT" ]
null
null
null
neweditor/public/bin/render.py
alexsigaras/SWIM
1a35df8acb26bdcb307a1b8f60e9feba68ed1715
[ "MIT" ]
null
null
null
# # -*- coding: utf-8 -*- # ############################################# # ## (C)opyright by Dirk Holtwick ## # ## All rights reserved ## # ############################################# # __version__ = "$Revision: 176 $" # __author__ = "$Author: kgrodzicki $" # __date__ = "$Date: 2011-0...
32.485714
118
0.540897
1c210f910c33559272ebf90990989bf0c663ed33
7,256
py
Python
src/main/admin/db_util.py
bd2019us/uima-ducc
ffb4870d9db87b1580bd6053fc9eed622e4c8e9e
[ "Apache-2.0" ]
1
2019-03-17T04:23:54.000Z
2019-03-17T04:23:54.000Z
src/main/admin/db_util.py
bd2019us/uima-ducc
ffb4870d9db87b1580bd6053fc9eed622e4c8e9e
[ "Apache-2.0" ]
null
null
null
src/main/admin/db_util.py
bd2019us/uima-ducc
ffb4870d9db87b1580bd6053fc9eed622e4c8e9e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # ----------------------------------------------------------------------- # 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 licen...
34.884615
131
0.599779
3aba4c5a8fdaf02c3a8b96f422cf86d4cb9702b3
12,690
py
Python
sdk/core/azure-core/azure/core/rest/_helpers.py
lambertpan/azure-sdk-for-python
cc7e454fc04ec61cf021adeaac4fc0fc0a0805b2
[ "MIT" ]
null
null
null
sdk/core/azure-core/azure/core/rest/_helpers.py
lambertpan/azure-sdk-for-python
cc7e454fc04ec61cf021adeaac4fc0fc0a0805b2
[ "MIT" ]
null
null
null
sdk/core/azure-core/azure/core/rest/_helpers.py
lambertpan/azure-sdk-for-python
cc7e454fc04ec61cf021adeaac4fc0fc0a0805b2
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
33.84
94
0.626005
bc06f621e6014a4e589c55d92813fa023b3e35cd
10,489
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/remote_management/redfish/redfish_command.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/remote_management/redfish/redfish_command.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/remote_management/redfish/redfish_command.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2017-2018 Dell EMC Inc. # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'status': ['preview'], ...
30.85
130
0.625322