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
45c21344c772508400a751d59bd80845515cbbc6
2,628
py
Python
main.py
jajajanrey/append-to-spreadsheet
b163d5ca0391bb767f9cfdf7951f38c1d69eaac1
[ "MIT" ]
null
null
null
main.py
jajajanrey/append-to-spreadsheet
b163d5ca0391bb767f9cfdf7951f38c1d69eaac1
[ "MIT" ]
null
null
null
main.py
jajajanrey/append-to-spreadsheet
b163d5ca0391bb767f9cfdf7951f38c1d69eaac1
[ "MIT" ]
null
null
null
from googleapiclient import discovery from googleapiclient.errors import HttpError from oauth2client.service_account import ServiceAccountCredentials import httplib2, socket SHEETS_DISCOVERY_URL='https://sheets.googleapis.com/$discovery/rest?version=v4' SCOPES = 'https://www.googleapis.com/auth/spreadsheets' class ...
31.662651
113
0.616058
c8d4a0dcfb98d0f8ecf7725319fe70311c80500c
5,425
py
Python
example_project/settings.py
NeCTAR-RC/django-gravatar
fd0c9c2c247d2963db4b481c73ccc8ea8e8a9f5e
[ "MIT" ]
1
2015-02-26T03:23:14.000Z
2015-02-26T03:23:14.000Z
example_project/settings.py
NeCTAR-RC/django-gravatar
fd0c9c2c247d2963db4b481c73ccc8ea8e8a9f5e
[ "MIT" ]
null
null
null
example_project/settings.py
NeCTAR-RC/django-gravatar
fd0c9c2c247d2963db4b481c73ccc8ea8e8a9f5e
[ "MIT" ]
null
null
null
# Django settings for {{ project_name }} project. import os PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add ...
34.119497
122
0.682581
755765fd2a867d46bafd594415cb497d649c5910
1,952
py
Python
tasks/offense/ipspoof.py
medpaf/hawk
60d99ae67e34cb3787ab82b631f8b0732e94cfe5
[ "MIT" ]
59
2021-10-30T03:11:09.000Z
2022-03-31T08:39:50.000Z
tasks/offense/ipspoof.py
medpaf/hawk
60d99ae67e34cb3787ab82b631f8b0732e94cfe5
[ "MIT" ]
null
null
null
tasks/offense/ipspoof.py
medpaf/hawk
60d99ae67e34cb3787ab82b631f8b0732e94cfe5
[ "MIT" ]
13
2021-10-30T12:46:58.000Z
2022-03-31T08:39:51.000Z
from scapy.all import * import random from colorama import Fore, Back, Style import os import sys def ipspoof(source_ip, source_port, target_ip, target_port): # If not sudo, don't allow to continue if not 'SUDO_UID' in os.environ.keys(): print(f'[{Fore.RED}!{Style.RESET_ALL}] Permission error: {Fore.R...
38.27451
399
0.599385
28a6f9af7574aed42702973e2e97a9e39bf03f3d
31,250
py
Python
tests/space/test_space_objects.py
sackh/xyz-spaces-python
d7e28c4392d1b082186f1ea39e6e24516503e73c
[ "Apache-2.0" ]
null
null
null
tests/space/test_space_objects.py
sackh/xyz-spaces-python
d7e28c4392d1b082186f1ea39e6e24516503e73c
[ "Apache-2.0" ]
null
null
null
tests/space/test_space_objects.py
sackh/xyz-spaces-python
d7e28c4392d1b082186f1ea39e6e24516503e73c
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019-2021 HERE Europe B.V. # # 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 t...
35.511364
90
0.668192
580be5b77d7c8d877408d14f26ac6ac2de38286b
4,828
py
Python
orchestration/dap_orchestration/repositories/prod_repositories.py
DataBiosphere/dog-aging-ingest
aecff27728f911a802edec56169681d8764daf83
[ "BSD-3-Clause" ]
null
null
null
orchestration/dap_orchestration/repositories/prod_repositories.py
DataBiosphere/dog-aging-ingest
aecff27728f911a802edec56169681d8764daf83
[ "BSD-3-Clause" ]
180
2020-05-11T19:05:06.000Z
2022-01-19T21:45:42.000Z
orchestration/dap_orchestration/repositories/prod_repositories.py
DataBiosphere/dog-aging-ingest
aecff27728f911a802edec56169681d8764daf83
[ "BSD-3-Clause" ]
null
null
null
from dagster import PipelineDefinition, repository, schedule, ScheduleEvaluationContext, in_process_executor from dagster_gcp.gcs import gcs_pickle_io_manager from dagster_utils.resources.beam.k8s_beam_runner import k8s_dataflow_beam_runner from dagster_utils.resources.google_storage import google_storage_client from d...
41.62069
132
0.590307
6c002f9f6a3c7a8ec9a3dacd4d754eda8e9405e4
14,976
py
Python
software/contrib/consequencer.py
mjaskula/EuroPi
35b5ef6560080672adf52d38b3d021ed32537c04
[ "CC0-1.0" ]
104
2021-11-07T10:00:25.000Z
2022-03-31T06:40:46.000Z
software/contrib/consequencer.py
roryjamesallen/EuroPi-V2
e4b5fb90ccfd387b7eb9b5e0335e34c7ebfb6194
[ "CC0-1.0" ]
62
2021-11-22T12:56:19.000Z
2022-03-31T14:48:43.000Z
software/contrib/consequencer.py
roryjamesallen/EuroPi-V2
e4b5fb90ccfd387b7eb9b5e0335e34c7ebfb6194
[ "CC0-1.0" ]
27
2021-11-22T23:46:49.000Z
2022-03-20T04:23:21.000Z
from europi import * import machine from time import ticks_diff, ticks_ms from random import randint, uniform from europi_script import EuroPiScript ''' Consequencer author: Nik Ansell (github.com/gamecat69) date: 2022-02-05 labels: sequencer, triggers, drums, randomness A gate and CV sequencer inspired by Grids from...
31.93177
253
0.635884
f1cd79ab2eb1d7ddcd4e484ce9975bfde5e21373
16,855
py
Python
mindspore/_extends/graph_kernel/model/model.py
ATestGroup233/mindspore
5d81221b5896cf7d7c6adb44daef28d92cb43352
[ "Apache-2.0" ]
1
2021-06-01T12:34:37.000Z
2021-06-01T12:34:37.000Z
mindspore/_extends/graph_kernel/model/model.py
ATestGroup233/mindspore
5d81221b5896cf7d7c6adb44daef28d92cb43352
[ "Apache-2.0" ]
null
null
null
mindspore/_extends/graph_kernel/model/model.py
ATestGroup233/mindspore
5d81221b5896cf7d7c6adb44daef28d92cb43352
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
32.601547
112
0.554969
d2b3f741b071c5d27e2eaf7dc9ead13cfdac35c5
5,754
py
Python
scripts/dataset_generators/gen_emnist.py
sei-nmvanhoudnos/Juneberry
a4824bc74180134a9ef5326addbc83110177102c
[ "MIT" ]
null
null
null
scripts/dataset_generators/gen_emnist.py
sei-nmvanhoudnos/Juneberry
a4824bc74180134a9ef5326addbc83110177102c
[ "MIT" ]
null
null
null
scripts/dataset_generators/gen_emnist.py
sei-nmvanhoudnos/Juneberry
a4824bc74180134a9ef5326addbc83110177102c
[ "MIT" ]
null
null
null
# ========================================================================================================================================================== # Copyright 2021 Carnegie Mellon University. # # NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN "AS-...
52.788991
156
0.685784
64f709a4de056204695e2787d75f64e5e6bb9dca
11,685
py
Python
webStorm-APICloud/python_tools/Lib/test/test_funcattrs.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
null
null
null
webStorm-APICloud/python_tools/Lib/test/test_funcattrs.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
null
null
null
webStorm-APICloud/python_tools/Lib/test/test_funcattrs.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
null
null
null
from test import test_support import types import unittest class FuncAttrsTest(unittest.TestCase): def setUp(self): class F: def a(self): pass def b(): return 3 self.f = F self.fi = F() self.b = b def cannot_set_att...
41.289753
80
0.619341
a02b21ce1036d9bea676415217b1593a69085459
7,653
py
Python
tensorflow/contrib/distributions/python/ops/gamma.py
andres-fm/tensorflow-clone
bd9db7eb5dc589a620999800ba96a8182c6b624a
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distributions/python/ops/gamma.py
andres-fm/tensorflow-clone
bd9db7eb5dc589a620999800ba96a8182c6b624a
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distributions/python/ops/gamma.py
andres-fm/tensorflow-clone
bd9db7eb5dc589a620999800ba96a8182c6b624a
[ "Apache-2.0" ]
null
null
null
# 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 applica...
35.430556
92
0.652163
ed9382e6bbe868f571158272d2fce97cd49bd418
1,921
py
Python
service/payment_result.py
catenocrypt/mikron_bitcoingw
4e6f6691816f4da2c803731d77c386b9fc6ef61d
[ "Apache-2.0" ]
null
null
null
service/payment_result.py
catenocrypt/mikron_bitcoingw
4e6f6691816f4da2c803731d77c386b9fc6ef61d
[ "Apache-2.0" ]
null
null
null
service/payment_result.py
catenocrypt/mikron_bitcoingw
4e6f6691816f4da2c803731d77c386b9fc6ef61d
[ "Apache-2.0" ]
null
null
null
import datetime # Represents a payment received class PaymentInfo: def __init__(self, tx_hash, amount, time, to_addr, from_addr, no_confirm): #print("P", amount, time, to_addr, from_addr, no_confirm) self.tx_hash = tx_hash self.amount = amount self.timestamp = time self.to_...
40.020833
188
0.621551
a4251dcbefa8318dab34a9d1849f19b297b8ab6d
1,516
py
Python
examples/2-resistors.py
matthewearl/strippy
913555a8d7bd3fbc2c1383c01c8c297a4212c786
[ "MIT" ]
null
null
null
examples/2-resistors.py
matthewearl/strippy
913555a8d7bd3fbc2c1383c01c8c297a4212c786
[ "MIT" ]
null
null
null
examples/2-resistors.py
matthewearl/strippy
913555a8d7bd3fbc2c1383c01c8c297a4212c786
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015 Matthew Earl # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
36.095238
79
0.73153
3ac71a86a295e8ff5afacc87a5201c99252ec61e
645
py
Python
.history/discordbot_20210613214258.py
kazn777/kazn_bot-1
8d3c0b33ad222f8bb1cea93b5a6bdef80de4d608
[ "MIT" ]
null
null
null
.history/discordbot_20210613214258.py
kazn777/kazn_bot-1
8d3c0b33ad222f8bb1cea93b5a6bdef80de4d608
[ "MIT" ]
null
null
null
.history/discordbot_20210613214258.py
kazn777/kazn_bot-1
8d3c0b33ad222f8bb1cea93b5a6bdef80de4d608
[ "MIT" ]
null
null
null
import discord import os import traceback bot = commands.Bot(command_prefix='/') token = os.environ['DISCORD_BOT_TOKEN'] @bot.event async def on_command_error(ctx, error): orig_error = getattr(error, "original", error) error_msg = ''.join(traceback.TracebackException.from_exception(orig_error).format()) ...
29.318182
115
0.750388
ba8c1db2e5c57740df73169f5b0edbf7973351b2
19,350
py
Python
tensor2tensor/rl/player.py
jaseweir/tensor2tensor
2a33b152d7835af66a6d20afe7961751047e28dd
[ "Apache-2.0" ]
12,921
2017-06-15T17:11:46.000Z
2022-03-31T15:22:11.000Z
tensor2tensor/rl/player.py
jaseweir/tensor2tensor
2a33b152d7835af66a6d20afe7961751047e28dd
[ "Apache-2.0" ]
1,635
2017-06-18T15:29:27.000Z
2022-03-19T20:35:23.000Z
tensor2tensor/rl/player.py
jaseweir/tensor2tensor
2a33b152d7835af66a6d20afe7961751047e28dd
[ "Apache-2.0" ]
3,521
2017-06-15T18:25:42.000Z
2022-03-31T05:47:55.000Z
# coding=utf-8 # Copyright 2021 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
35.701107
90
0.689302
67d2e89c06a0422293b6987d3f75b09c7338d324
8,571
py
Python
IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/cred/strcred.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
4
2016-03-30T14:31:52.000Z
2019-02-02T05:01:32.000Z
IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/cred/strcred.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
1
2020-03-06T04:49:42.000Z
2020-03-06T04:49:42.000Z
IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/cred/strcred.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
# -*- test-case-name: twisted.test.test_strcred -*- # # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. # """ Support for resolving command-line strings that represent different checkers available to cred. Examples: - passwd:/etc/passwd - memory:admin:asdf:user:lkj - unix """ ...
31.627306
80
0.628865
d0ad429f81891b541ac3ec92c5b958c9b9270b49
10,072
py
Python
fast_jtnn/jtnn_vae.py
Spinozaaa/Graph-Embedding-on-Prediction-of-Organic-Reaction-Outcomes
4fb46d6d26588304484636a4f37f44e1b50a131b
[ "MIT" ]
null
null
null
fast_jtnn/jtnn_vae.py
Spinozaaa/Graph-Embedding-on-Prediction-of-Organic-Reaction-Outcomes
4fb46d6d26588304484636a4f37f44e1b50a131b
[ "MIT" ]
null
null
null
fast_jtnn/jtnn_vae.py
Spinozaaa/Graph-Embedding-on-Prediction-of-Organic-Reaction-Outcomes
4fb46d6d26588304484636a4f37f44e1b50a131b
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from .mol_tree import Vocab, MolTree from .nnutils import create_var, flatten_tensor, avg_pool from .jtnn_enc import JTNNEncoder from .jtnn_dec import JTNNDecoder from .mpn import MPN from .jtmpn import JTMPN from .datautils import tensorize from .chem...
44.370044
172
0.641779
727e611dca41465b53a63747b6efede78b00c4bf
2,681
py
Python
homeassistant/components/tradfri/base_class.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
3
2021-11-22T22:37:43.000Z
2022-03-17T00:55:28.000Z
homeassistant/components/tradfri/base_class.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
14
2022-01-13T04:27:21.000Z
2022-03-06T20:30:43.000Z
homeassistant/components/tradfri/base_class.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
3
2022-01-02T18:49:54.000Z
2022-01-25T02:03:54.000Z
"""Base class for IKEA TRADFRI.""" from __future__ import annotations from abc import abstractmethod from collections.abc import Callable from functools import wraps import logging from typing import Any, cast from pytradfri.command import Command from pytradfri.device import Device from pytradfri.error import Reques...
28.521277
79
0.669526
aff6131f136305050234df903af870583896933e
240
py
Python
k.py
Ashokkommi0001/Python-Patterns-Alphabets-Lower_case
f394fb9982cc379e8cb7046d6768e6b5387c52ca
[ "MIT" ]
null
null
null
k.py
Ashokkommi0001/Python-Patterns-Alphabets-Lower_case
f394fb9982cc379e8cb7046d6768e6b5387c52ca
[ "MIT" ]
null
null
null
k.py
Ashokkommi0001/Python-Patterns-Alphabets-Lower_case
f394fb9982cc379e8cb7046d6768e6b5387c52ca
[ "MIT" ]
null
null
null
def k(): for row in range(7): for col in range(5): if (col==0) or (row>1 and (row+col==5 or row-col==3)): print("*",end=" ") else: print(end=" ") print()
26.666667
68
0.366667
3faa8ed48da9cdcea2d4d3b11581cbe53c81e475
6,641
py
Python
zenqueue/server/http.py
zacharyvoase/zenqueue
ffd2d87fa2423339423abe606312b3046c4efefe
[ "MIT" ]
6
2015-11-05T13:36:19.000Z
2019-12-08T14:08:38.000Z
zenqueue/server/http.py
zacharyvoase/zenqueue
ffd2d87fa2423339423abe606312b3046c4efefe
[ "MIT" ]
null
null
null
zenqueue/server/http.py
zacharyvoase/zenqueue
ffd2d87fa2423339423abe606312b3046c4efefe
[ "MIT" ]
2
2015-09-18T14:59:22.000Z
2019-03-26T08:59:08.000Z
# -*- coding: utf-8 -*- import optparse import random import re from eventlet import api from eventlet import wsgi from werkzeug import Request, Response from werkzeug import exceptions from werkzeug.routing import Map, Rule from zenqueue import json from zenqueue import log from zenqueue.queue import Queue import ...
35.137566
80
0.591025
b31299e5797e9f595b6c94b048fbb902798ea90f
2,310
py
Python
src/third_party/beaengine/tests/0f3a4c.py
CrackerCat/rp
5fe693c26d76b514efaedb4084f6e37d820db023
[ "MIT" ]
1
2022-01-17T17:40:29.000Z
2022-01-17T17:40:29.000Z
src/third_party/beaengine/tests/0f3a4c.py
CrackerCat/rp
5fe693c26d76b514efaedb4084f6e37d820db023
[ "MIT" ]
null
null
null
src/third_party/beaengine/tests/0f3a4c.py
CrackerCat/rp
5fe693c26d76b514efaedb4084f6e37d820db023
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This progra...
30.394737
91
0.611688
638107fcc6b98502b741236108cfc879e8b5117e
16,658
py
Python
test/functional/test_framework/mininode.py
PETTOKEN/PETT
46dbd0f86b002e87e615d6237535d1a389a678e2
[ "MIT" ]
null
null
null
test/functional/test_framework/mininode.py
PETTOKEN/PETT
46dbd0f86b002e87e615d6237535d1a389a678e2
[ "MIT" ]
null
null
null
test/functional/test_framework/mininode.py
PETTOKEN/PETT
46dbd0f86b002e87e615d6237535d1a389a678e2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """pettoken P2P...
37.602709
182
0.63549
04116a890ebb5dac723d7748039205660ef659c3
2,593
py
Python
database/sqlite/insert_values.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
14
2020-02-07T21:36:39.000Z
2022-03-12T22:37:04.000Z
database/sqlite/insert_values.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
19
2019-05-18T23:58:30.000Z
2022-01-09T16:45:35.000Z
database/sqlite/insert_values.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
5
2020-10-06T06:10:27.000Z
2021-07-08T12:58:46.000Z
import sqlite3 from contextlib import contextmanager import csv def insert_row(connector, table_name, table_instruction, values): """Insert a row of items in a table. Args: connector (object): sqlite connector. table_name (str): Table name. table_instruction (str): Instruction to ...
33.675325
128
0.605862
e827fa56c04b8c9849527be477100b2970bd49b4
33,847
py
Python
test/dialect/oracle/test_dialect.py
josteinl/sqlalchemy
9e7c068d669b209713da62da5748579f92d98129
[ "MIT" ]
null
null
null
test/dialect/oracle/test_dialect.py
josteinl/sqlalchemy
9e7c068d669b209713da62da5748579f92d98129
[ "MIT" ]
null
null
null
test/dialect/oracle/test_dialect.py
josteinl/sqlalchemy
9e7c068d669b209713da62da5748579f92d98129
[ "MIT" ]
null
null
null
# coding: utf-8 import re from unittest import mock from unittest.mock import Mock from sqlalchemy import bindparam from sqlalchemy import Computed from sqlalchemy import create_engine from sqlalchemy import exc from sqlalchemy import Float from sqlalchemy import func from sqlalchemy import Integer from sqlalchemy im...
30.77
79
0.587763
e436337caa0da9be1764141a710ddbd5cb8bed7a
7,420
py
Python
quizmaster/quiz/migrations/0001_initial.py
johnashu/quizmaster
173f27b413b81623f7b80d1bc3768a78b635a972
[ "MIT" ]
null
null
null
quizmaster/quiz/migrations/0001_initial.py
johnashu/quizmaster
173f27b413b81623f7b80d1bc3768a78b635a972
[ "MIT" ]
5
2021-03-18T20:45:51.000Z
2022-02-10T07:04:31.000Z
quizmaster/quiz/migrations/0001_initial.py
johnashu/quizmaster
173f27b413b81623f7b80d1bc3768a78b635a972
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-02-27 08:40 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True ...
50.821918
329
0.60876
2bba8072b0d6b82908b1f23be6d53d2b07cfd839
7,203
py
Python
getpaid/backends/przelewy24/__init__.py
KrzysiekJ/django-getpaid
836af52ea1809510e68c649de71d96c0ee7b0772
[ "MIT" ]
1
2015-11-08T09:37:06.000Z
2015-11-08T09:37:06.000Z
getpaid/backends/przelewy24/__init__.py
lauris/django-getpaid
5e6e784a5b54f4ac6d1e7841a46772e5aaac9c2d
[ "MIT" ]
null
null
null
getpaid/backends/przelewy24/__init__.py
lauris/django-getpaid
5e6e784a5b54f4ac6d1e7841a46772e5aaac9c2d
[ "MIT" ]
1
2018-06-23T20:36:35.000Z
2018-06-23T20:36:35.000Z
# Author: Krzysztof Dorosz <cypreess@gmail.com> # # Disclaimer: # Writing and open sourcing this backend was kindly funded by Issue Stand # http://issuestand.com/ # from decimal import Decimal import hashlib import logging import time import urllib import urllib2 import datetime from django.contrib.sites.models impor...
43.131737
126
0.637651
ce56de3d9bb900b0770d01bc9d7c77752d2cfdb9
582
py
Python
src/django_pint/__init__.py
jwygoda/django-pint
6b9bfc06451e6e36289e18626619b68ba6b09318
[ "MIT" ]
13
2020-11-17T15:17:27.000Z
2022-02-24T06:37:52.000Z
src/django_pint/__init__.py
jwygoda/django-pint
6b9bfc06451e6e36289e18626619b68ba6b09318
[ "MIT" ]
30
2020-11-16T11:46:22.000Z
2022-01-26T08:11:27.000Z
src/django_pint/__init__.py
jwygoda/django-pint
6b9bfc06451e6e36289e18626619b68ba6b09318
[ "MIT" ]
10
2016-09-23T23:01:20.000Z
2020-11-02T06:23:35.000Z
import sys if sys.version_info[:2] >= (3, 8): # TODO: Import directly (no need for conditional) when `python_requires = >= 3.8` from importlib.metadata import PackageNotFoundError, version # pragma: no cover else: from importlib_metadata import PackageNotFoundError, version # pragma: no cover try: #...
34.235294
85
0.733677
8d2c2ac6e2b404c7a0b0aec37a71697231f4ff9d
7,605
py
Python
train_utils.py
Hramchenko/diffusion_distiller
666b26b7f46f03243bd099014975cd4fa27d540d
[ "MIT" ]
14
2022-01-18T18:59:54.000Z
2022-03-31T08:46:03.000Z
train_utils.py
Hramchenko/diffusion_distiller
666b26b7f46f03243bd099014975cd4fa27d540d
[ "MIT" ]
1
2022-02-17T04:23:24.000Z
2022-02-17T19:05:19.000Z
train_utils.py
Hramchenko/diffusion_distiller
666b26b7f46f03243bd099014975cd4fa27d540d
[ "MIT" ]
2
2022-02-09T08:39:09.000Z
2022-03-01T08:20:03.000Z
import os import random import cv2 import matplotlib.pyplot as plt import numpy as np from torch import nn from tqdm import tqdm from moving_average import moving_average from strategies import * @torch.no_grad() def p_sample_loop(diffusion, noise, extra_args, device, eta=0, samples_to_capture=-1, need_tqdm=True, clip...
36.214286
190
0.628797
341fa663196b1c5218a57ed8b7958f83034adbac
4,340
py
Python
Estrutura de Dados/AC1_domino.py
Gustavolsl/Falculdade_Impacta_3s
bf1a12c81fd088c4e1a0cd9182600730b43dcd63
[ "Apache-2.0" ]
null
null
null
Estrutura de Dados/AC1_domino.py
Gustavolsl/Falculdade_Impacta_3s
bf1a12c81fd088c4e1a0cd9182600730b43dcd63
[ "Apache-2.0" ]
6
2021-03-19T03:57:08.000Z
2022-03-12T00:00:33.000Z
Estrutura de Dados/AC1_domino.py
Gustavolsl/Falculdade_Impacta_3s
bf1a12c81fd088c4e1a0cd9182600730b43dcd63
[ "Apache-2.0" ]
null
null
null
''' Ao longo do código abaixo, há uma série de exercícios. Alguns aparecem fora de ordem porque existem exercícios dentro e fora doc código da classe ''' # classe Dominó ---------------------------------------------------------------- class Domino: def __init__(self, ponta1, ponta2): self.ponta1 = ponta1 ...
26.463415
91
0.617051
bc96c27e77ed13e2ae1c8c78363ea825a60d3739
5,381
py
Python
lemur/factory.py
caiges/lemur
376b2b80517fb7f24fa505461d11bffeafefc713
[ "Apache-2.0" ]
null
null
null
lemur/factory.py
caiges/lemur
376b2b80517fb7f24fa505461d11bffeafefc713
[ "Apache-2.0" ]
null
null
null
lemur/factory.py
caiges/lemur
376b2b80517fb7f24fa505461d11bffeafefc713
[ "Apache-2.0" ]
null
null
null
""" .. module: lemur.factory :platform: Unix :synopsis: This module contains all the needed functions to allow the factory app creation. :copyright: (c) 2015 by Netflix Inc., see AUTHORS for more :license: Apache, see LICENSE for more details. .. moduleauthor:: Kevin Glisson <kglisson@netflix.com> ...
27.454082
195
0.657127
640a3dc5eba03bce6bd938da01c148317c062b6c
1,560
py
Python
pythonclient/test/test_container.py
kongyew/qualys_cli
720a22088994d3ff2b635ba87209c971da24c56c
[ "MIT" ]
null
null
null
pythonclient/test/test_container.py
kongyew/qualys_cli
720a22088994d3ff2b635ba87209c971da24c56c
[ "MIT" ]
null
null
null
pythonclient/test/test_container.py
kongyew/qualys_cli
720a22088994d3ff2b635ba87209c971da24c56c
[ "MIT" ]
null
null
null
# coding: utf-8 """ Container Security API # Authentication You must authenticate to the Qualys Cloud Platform using Qualys account credentials (user name and password) and get the JSON Web Token (JWT) before you can start using the Container Security APIs. Use the Qualys Authentication API to get the JWT. *...
39
779
0.725641
e32438cf5bbe4791c8e30927fe141a73ba7d58d2
764
py
Python
la/oblas/data/dgesv01.py
wtsia/gosl
8302f76dfe76d24ea5026b225bdad234383dacf9
[ "BSD-3-Clause" ]
1,811
2015-05-21T12:47:27.000Z
2022-03-24T04:48:00.000Z
la/oblas/data/dgesv01.py
wtsia/gosl
8302f76dfe76d24ea5026b225bdad234383dacf9
[ "BSD-3-Clause" ]
42
2016-09-29T05:23:28.000Z
2021-10-30T03:12:00.000Z
la/oblas/data/dgesv01.py
wtsia/gosl
8302f76dfe76d24ea5026b225bdad234383dacf9
[ "BSD-3-Clause" ]
171
2015-07-14T07:50:35.000Z
2022-03-09T10:04:15.000Z
import numpy as np import scipy.linalg as la a = np.array([ [19.730 + 0.000j, 12.110 - 1.000j, 0.000 + 5.000j, 0.000 + 0.000j, 0.000 + 0.000j], [ 0.000 - 0.510j, 32.300 + 7.000j, 23.070 + 0.000j, 0.000 + 1.000j, 0.000 + 0.000j], [ 0.000 + 0.000j, 0.000 - 0.510j, 70.000 + 7.300j, 3.950 + 0.000j, 19...
29.384615
91
0.519634
66aedaf297751d5eaeaae42d89e4c67a794791b7
6,490
py
Python
frappe/website/doctype/website_settings/website_settings.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
frappe/website/doctype/website_settings/website_settings.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
frappe/website/doctype/website_settings/website_settings.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals from six.moves.urllib.parse import quote import frappe from frappe import _ from frappe.integrations.doctype.google_settings.google_settings import get_auth_url from frappe.mode...
27.5
99
0.714022
6bd2efb4fbb68dff3032203a5cf6a5962841afcc
703
py
Python
system/operations/indy_config.py
devinleighsmith/indy-test-automation
32d27c8cf8e233d5e365672358752ae3a8b5bf00
[ "Apache-2.0" ]
7
2019-03-14T10:52:50.000Z
2021-12-03T00:02:15.000Z
system/operations/indy_config.py
devinleighsmith/indy-test-automation
32d27c8cf8e233d5e365672358752ae3a8b5bf00
[ "Apache-2.0" ]
27
2018-10-24T15:28:32.000Z
2022-03-29T21:30:35.000Z
system/operations/indy_config.py
devinleighsmith/indy-test-automation
32d27c8cf8e233d5e365672358752ae3a8b5bf00
[ "Apache-2.0" ]
22
2018-10-03T17:05:23.000Z
2021-12-03T00:02:04.000Z
# Current network NETWORK_NAME = 'sandbox' # Disable stdout logging enableStdOutLogging = False # Directory to store ledger. LEDGER_DIR = '/var/lib/indy' # Directory to store logs. LOG_DIR = '/var/log/indy' # Directory to store keys. KEYS_DIR = '/var/lib/indy' # Directory to store genesis transactions files. GENES...
19
48
0.748222
9ca29e66681d0155905c7cefaa0944c99d882c8a
712
py
Python
multiplication_table.py
Wish1991/Python
11b407ea1c47f63cb07dbf8cb90df93d2190821f
[ "MIT" ]
1
2022-03-23T23:04:02.000Z
2022-03-23T23:04:02.000Z
multiplication_table.py
Wish1991/Python
11b407ea1c47f63cb07dbf8cb90df93d2190821f
[ "MIT" ]
null
null
null
multiplication_table.py
Wish1991/Python
11b407ea1c47f63cb07dbf8cb90df93d2190821f
[ "MIT" ]
1
2022-03-23T23:04:40.000Z
2022-03-23T23:04:40.000Z
from sys import argv # import argment variable ( script, rows, columns, ) = argv # define rows and columns for the table and assign them to the argument variable def table(rows, columns): for i in range( 1, int(rows) + 1 ): # it's safe to assume that the user would mean 12 rows when th...
22.25
129
0.516854
0859a2831a62aed0de9e852a5468ca8356f5fc83
202
py
Python
examples/pip_install/test.py
axivion/rules_python
7740b22d0bae942af0797967f2617daa19834cb3
[ "Apache-2.0" ]
null
null
null
examples/pip_install/test.py
axivion/rules_python
7740b22d0bae942af0797967f2617daa19834cb3
[ "Apache-2.0" ]
null
null
null
examples/pip_install/test.py
axivion/rules_python
7740b22d0bae942af0797967f2617daa19834cb3
[ "Apache-2.0" ]
null
null
null
import unittest import main class ExampleTest(unittest.TestCase): def test_main(self): self.assertIn("set_stream_logger", main.the_dir()) if __name__ == "__main__": unittest.main()
15.538462
58
0.70297
1ff8ff924a680fe3a3e4d47e46ddb026e24f4cba
2,175
py
Python
src/vinyl/build_datasets.py
cliffclive/vinyl
264424d84c35cf35ed486aa317285375b65b6545
[ "MIT" ]
null
null
null
src/vinyl/build_datasets.py
cliffclive/vinyl
264424d84c35cf35ed486aa317285375b65b6545
[ "MIT" ]
null
null
null
src/vinyl/build_datasets.py
cliffclive/vinyl
264424d84c35cf35ed486aa317285375b65b6545
[ "MIT" ]
null
null
null
import librosa import os import random import numpy as np import pandas as pd import src.vinyl.db_manager as crates features_dir = 'data/librosa_features' def extract_features(file, features_dict): global features_dir y, sr = librosa.load(file) features = {} for f in features_dict.keys():...
27.884615
77
0.632184
c7ec0676a7db532339b2415970d3976ac7dba694
6,753
py
Python
modified_mmseg/datasets/pipelines/loading.py
fangruizhu/unified-ept
b93462daff74642e489457798f6e87b79349d9c7
[ "Apache-2.0" ]
18
2021-10-12T02:15:02.000Z
2022-03-07T03:49:20.000Z
modified_mmseg/datasets/pipelines/loading.py
fangruizhu/unified-ept
b93462daff74642e489457798f6e87b79349d9c7
[ "Apache-2.0" ]
1
2021-12-17T09:30:19.000Z
2021-12-17T09:30:19.000Z
modified_mmseg/datasets/pipelines/loading.py
fangruizhu/unified-ept
b93462daff74642e489457798f6e87b79349d9c7
[ "Apache-2.0" ]
5
2021-08-28T15:53:28.000Z
2022-03-07T03:49:21.000Z
import os.path as osp import mmcv import numpy as np import scipy.io as io from ..builder import PIPELINES @PIPELINES.register_module() class LoadImageFromFile(object): """Load an image from file. Required keys are "img_prefix" and "img_info" (a dict that must contain the key "filename"). Added or upda...
37.104396
79
0.61084
81c0af0b3d81b705b75a6d40d57555062adccccf
276,835
py
Python
python/pyspark/sql/tests.py
lmirantes/spark
546683c21a23cd5e3827e69609ca91cf92bd9e02
[ "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
python/pyspark/sql/tests.py
lmirantes/spark
546683c21a23cd5e3827e69609ca91cf92bd9e02
[ "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
python/pyspark/sql/tests.py
lmirantes/spark
546683c21a23cd5e3827e69609ca91cf92bd9e02
[ "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-09-20T03:10:05.000Z
2018-09-20T03:10:05.000Z
# -*- encoding: utf-8 -*- # # 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 ...
42.609666
100
0.591677
5b2f4375f54bfc2ac2704b817df02022a92f33bb
8,108
py
Python
tools/eval_coco.py
DetectionTeamUCAS/FCOS_Tensorflow
ca1b59e3f0979a6de519f433bc9f4505964391e2
[ "MIT" ]
110
2019-04-18T02:16:22.000Z
2022-02-24T16:25:57.000Z
tools/eval_coco.py
DetectionTeamUCAS/FCOS_Tensorflow
ca1b59e3f0979a6de519f433bc9f4505964391e2
[ "MIT" ]
18
2019-04-27T14:08:39.000Z
2021-09-21T15:09:57.000Z
tools/eval_coco.py
DetectionTeamUCAS/FCOS_Tensorflow
ca1b59e3f0979a6de519f433bc9f4505964391e2
[ "MIT" ]
31
2019-04-28T04:01:20.000Z
2021-06-03T01:16:30.000Z
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import division import os import sys import tensorflow as tf import cv2 import numpy as np import json import math from tqdm import tqdm from multiprocessing import Queue, Process import argparse sys.pa...
36.522523
148
0.624322
9a2b13e02d64f55c1234c8b6b47b34d42469d2cb
12,237
py
Python
multiplayer-rl/mprl/utility_services/real_time_payoff_tracker/protobuf/real_time_payoff_tracker_pb2.py
oslumbers/pipeline-psro
479ca386bf43a99fe7db372ce0017b6d3c4b7949
[ "MIT" ]
26
2020-11-04T13:50:58.000Z
2022-03-11T08:09:00.000Z
multiplayer-rl/mprl/utility_services/real_time_payoff_tracker/protobuf/real_time_payoff_tracker_pb2.py
JBLanier/distributed-rl-for-imperfect-info-games
e150e99e433cadae27aa3ae5f6c7134f7e5c6fda
[ "MIT" ]
null
null
null
multiplayer-rl/mprl/utility_services/real_time_payoff_tracker/protobuf/real_time_payoff_tracker_pb2.py
JBLanier/distributed-rl-for-imperfect-info-games
e150e99e433cadae27aa3ae5f6c7134f7e5c6fda
[ "MIT" ]
13
2020-12-07T11:39:37.000Z
2021-11-04T15:59:17.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: real_time_payoff_tracker.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_data...
36.747748
1,172
0.75525
770f1caf6ccd6856154817e123a2aebe110cf788
1,757
py
Python
sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/managed_labs_client_enums.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/managed_labs_client_enums.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/managed_labs_client_enums.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
37.382979
145
0.6642
ab013eb624c017086514cc20e76ba00b6418bb81
602
py
Python
process_data/imgdesert.py
lyzMaster/deepgta5
c86475e8792fed1bd296e4f455b5472009740720
[ "MIT" ]
25
2018-10-12T12:11:13.000Z
2020-12-21T15:13:42.000Z
process_data/imgdesert.py
lyzMaster/deepgta5
c86475e8792fed1bd296e4f455b5472009740720
[ "MIT" ]
null
null
null
process_data/imgdesert.py
lyzMaster/deepgta5
c86475e8792fed1bd296e4f455b5472009740720
[ "MIT" ]
4
2018-10-12T13:40:02.000Z
2019-09-01T11:42:16.000Z
import cv2 import numpy as np def auto_canny(image_locate, sigma=0.33): image = cv2.imread(image_locate) gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) blur_image = cv2.GaussianBlur(gray_image, (3, 3), 0) v = np.median(blur_image) lower = int(max(0, (1.0 - sigma) * v)) upper = int(min(25...
25.083333
56
0.652824
5c4fc90f64f18884895ced6bf696e4bd291918e4
1,739
py
Python
keystone/trust/core.py
ioram7/keystone
81b5ad22cc8b85d622a332e62e5c4cb63155b654
[ "Apache-2.0" ]
null
null
null
keystone/trust/core.py
ioram7/keystone
81b5ad22cc8b85d622a332e62e5c4cb63155b654
[ "Apache-2.0" ]
null
null
null
keystone/trust/core.py
ioram7/keystone
81b5ad22cc8b85d622a332e62e5c4cb63155b654
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
27.603175
75
0.72743
93d0037c99d43288a63e1564560c2fcbe5e81254
15,520
py
Python
gui/qt/slp_add_token_dialog.py
pvyhnal-generalbytes/Electron-Cash-SLP
0da284467e390ca92cd43c52d97cd0de5ad1292c
[ "MIT" ]
1
2020-02-20T05:49:29.000Z
2020-02-20T05:49:29.000Z
gui/qt/slp_add_token_dialog.py
tomasiCF/Electron-Cash-SLP
0da284467e390ca92cd43c52d97cd0de5ad1292c
[ "MIT" ]
null
null
null
gui/qt/slp_add_token_dialog.py
tomasiCF/Electron-Cash-SLP
0da284467e390ca92cd43c52d97cd0de5ad1292c
[ "MIT" ]
null
null
null
import copy import datetime from functools import partial import json import threading import html import traceback from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from electroncash import networks from electroncash.address import Address, PublicKey from electroncash.bitcoin import...
37.669903
168
0.619974
232c253e4f1448a27255bbbc4760143d708bab8a
3,510
py
Python
saleor/graphql/discount/schema.py
angeles-ricardo-89/saleor
5fab7a883d025bff83320fbdd557ed7afa2923a9
[ "BSD-3-Clause" ]
4
2021-01-19T09:53:41.000Z
2021-01-19T20:39:27.000Z
saleor/graphql/discount/schema.py
DuongHieuMAI/saleor
e20b6283182f3a2886fe36fcdef8e47e4fcf7a14
[ "CC-BY-4.0" ]
14
2021-02-02T22:31:33.000Z
2022-03-12T00:16:06.000Z
saleor/graphql/discount/schema.py
DuongHieuMAI/saleor
e20b6283182f3a2886fe36fcdef8e47e4fcf7a14
[ "CC-BY-4.0" ]
12
2019-03-21T03:24:58.000Z
2022-01-13T10:55:34.000Z
import graphene from ...core.permissions import DiscountPermissions from ..core.fields import FilterInputConnectionField from ..core.types import FilterInputObjectType from ..decorators import permission_required from ..translations.mutations import SaleTranslate, VoucherTranslate from .bulk_mutations import SaleBulkD...
35.816327
88
0.738462
4ed5ebccd3ae5e52f96aaaf62a21fe50ef06d065
570
py
Python
regtests/class/mi.py
ahakingdom/Rusthon
5b6b78111b62281cd1381e53362c5d4b520ade30
[ "BSD-3-Clause" ]
622
2015-01-01T14:53:51.000Z
2022-03-27T14:52:25.000Z
regtests/class/mi.py
ahakingdom/Rusthon
5b6b78111b62281cd1381e53362c5d4b520ade30
[ "BSD-3-Clause" ]
74
2015-01-05T01:24:09.000Z
2021-04-26T00:06:38.000Z
regtests/class/mi.py
ahakingdom/Rusthon
5b6b78111b62281cd1381e53362c5d4b520ade30
[ "BSD-3-Clause" ]
67
2015-01-18T22:54:54.000Z
2022-03-01T12:54:23.000Z
from runtime import * ''' multiple inheritance ''' class A: def foo(self) -> int: return 1 class B: def bar(self) -> int: return 2 class C( A, B ): def call_foo_bar(self) -> int: a = self.foo() a += self.bar() return a ## extend foo ## def foo(self) -> int: #a = A.foo(self) ## TODO fix me, or suppo...
14.615385
54
0.559649
faee2ee69f0ad86f3ca995cb528c145081f07a0c
4,125
py
Python
nephos/fabric/ca.py
praveendhac/nephos
f4b43d53c1eebe5c0d4474e4bd5cbbf0a7abcba0
[ "Apache-2.0" ]
null
null
null
nephos/fabric/ca.py
praveendhac/nephos
f4b43d53c1eebe5c0d4474e4bd5cbbf0a7abcba0
[ "Apache-2.0" ]
null
null
null
nephos/fabric/ca.py
praveendhac/nephos
f4b43d53c1eebe5c0d4474e4bd5cbbf0a7abcba0
[ "Apache-2.0" ]
1
2020-12-06T19:55:45.000Z
2020-12-06T19:55:45.000Z
from os import path from time import sleep from kubernetes.client.rest import ApiException from nephos.fabric.settings import get_namespace from nephos.fabric.utils import get_pod from nephos.helpers.helm import HelmPreserve, helm_install, helm_upgrade from nephos.helpers.k8s import (ingress_read, secret_read) from ne...
42.96875
102
0.63903
cbfa0e56f8318ea7e4695ced225ab23c9794ce3c
119,879
py
Python
mne/viz/utils.py
libertyh/mne-python
bf03e17f323341a877dea62963c86cf140757896
[ "BSD-3-Clause" ]
null
null
null
mne/viz/utils.py
libertyh/mne-python
bf03e17f323341a877dea62963c86cf140757896
[ "BSD-3-Clause" ]
null
null
null
mne/viz/utils.py
libertyh/mne-python
bf03e17f323341a877dea62963c86cf140757896
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Utility functions for plotting M/EEG data.""" # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # Mainak...
39.035819
144
0.592906
37077fbccb4a64c90341453dcc0a8a36c7ffbac1
241
py
Python
tests/metrics/test_c2st.py
janfb/sbibm
89a242f533da2519e3a01299aa4f3e8e386309ec
[ "MIT" ]
46
2021-01-13T13:23:25.000Z
2022-03-19T22:17:27.000Z
tests/metrics/test_c2st.py
janfb/sbibm
89a242f533da2519e3a01299aa4f3e8e386309ec
[ "MIT" ]
34
2021-01-20T09:18:30.000Z
2022-03-15T17:34:19.000Z
tests/metrics/test_c2st.py
janfb/sbibm
89a242f533da2519e3a01299aa4f3e8e386309ec
[ "MIT" ]
15
2021-01-14T17:24:55.000Z
2022-03-09T23:24:09.000Z
import torch from sbibm.metrics import c2st from .utils import sample_blobs_same def test_c2st(): X, Y = sample_blobs_same(n=10_000) acc = c2st(X=X, Y=Y) assert torch.allclose(acc, torch.tensor([0.5]), rtol=0.01, atol=0.01)
18.538462
73
0.692946
62a984601f6303416e6d50dfc6119b135b0cb567
7,292
py
Python
tests/libp2p/bcc/test_utils.py
onyb/trinity
347e2beac23c5c1bb4aab136bb44c162467f6ff7
[ "MIT" ]
null
null
null
tests/libp2p/bcc/test_utils.py
onyb/trinity
347e2beac23c5c1bb4aab136bb44c162467f6ff7
[ "MIT" ]
null
null
null
tests/libp2p/bcc/test_utils.py
onyb/trinity
347e2beac23c5c1bb4aab136bb44c162467f6ff7
[ "MIT" ]
null
null
null
import asyncio from typing import NamedTuple from eth.exceptions import BlockNotFound from eth_keys import datatypes from libp2p.peer.id import ID import pytest from trinity.protocol.bcc_libp2p.configs import ResponseCode from trinity.protocol.bcc_libp2p.exceptions import ( InvalidRequestSaidPeer, ReadMessage...
31.5671
210
0.68486
c87b7c47d3db4498973f35cbf6d19e69be37a3ea
323
py
Python
json/python_demjson.py
MiracleWong/PythonBasic
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
[ "MIT" ]
null
null
null
json/python_demjson.py
MiracleWong/PythonBasic
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
[ "MIT" ]
null
null
null
json/python_demjson.py
MiracleWong/PythonBasic
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
[ "MIT" ]
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- import demjson # demjson.encode用于将Python对象编码成JSON字符串 data = [{'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5}] jdata = demjson.encode(data) print jdata # demjson.decode用于解码json数据 jsonData = '{"a": 1, "c": 3, "b": 2, "e": 5, "d": 4}'; text = demjson.decode(jsonData) print t...
17.944444
54
0.603715
baa86cd1d77900cc63d091a814e358822d2237b7
3,156
py
Python
tests/test_ec2/test_flow_logs_cloudformation.py
oakbramble/moto
6350d8ec4c59eaf12b83385b6acd386e5c2f5593
[ "Apache-2.0" ]
1
2021-12-12T04:23:06.000Z
2021-12-12T04:23:06.000Z
tests/test_ec2/test_flow_logs_cloudformation.py
oakbramble/moto
6350d8ec4c59eaf12b83385b6acd386e5c2f5593
[ "Apache-2.0" ]
4
2017-09-30T07:52:52.000Z
2021-12-13T06:56:55.000Z
tests/test_ec2/test_flow_logs_cloudformation.py
oakbramble/moto
6350d8ec4c59eaf12b83385b6acd386e5c2f5593
[ "Apache-2.0" ]
2
2021-11-24T08:05:43.000Z
2021-11-25T16:18:48.000Z
from __future__ import unicode_literals import boto3 import json import sure # noqa from moto import ( mock_cloudformation, mock_ec2, mock_s3, ) from tests import EXAMPLE_AMI_ID @mock_cloudformation @mock_ec2 @mock_s3 def test_flow_logs_by_cloudformation(): s3 = boto3.resource("s3", region_name="u...
32.875
78
0.59981
c15d117d34c23d738b4672307962a0eef1629008
2,247
py
Python
sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_entities_async.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2020-12-10T03:17:51.000Z
2020-12-10T03:17:51.000Z
sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_entities_async.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_entities_async.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2020-07-31T16:33:51.000Z
2020-07-31T16:33:51.000Z
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
34.569231
106
0.657321
e41ad7e0dae8b36c3fff958a24fc769b48d4cf46
60,597
py
Python
assets/src/ba_data/python/bastd/actor/spaz.py
Dmitry450/ballistica
27420d3f64c24bf3c9b4b047177a4769977659b1
[ "MIT" ]
null
null
null
assets/src/ba_data/python/bastd/actor/spaz.py
Dmitry450/ballistica
27420d3f64c24bf3c9b4b047177a4769977659b1
[ "MIT" ]
null
null
null
assets/src/ba_data/python/bastd/actor/spaz.py
Dmitry450/ballistica
27420d3f64c24bf3c9b4b047177a4769977659b1
[ "MIT" ]
null
null
null
# Copyright (c) 2011-2020 Eric Froemling # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish,...
41.647423
79
0.53161
a35f9c2735ccaa565985bc1606ba2d488a5d418e
473
py
Python
stix_shifter_utils/utils/logger.py
annish-offl/stix-shifter
5abbb0391bf23aafebc8411520008718b69aa5fc
[ "Apache-2.0" ]
null
null
null
stix_shifter_utils/utils/logger.py
annish-offl/stix-shifter
5abbb0391bf23aafebc8411520008718b69aa5fc
[ "Apache-2.0" ]
null
null
null
stix_shifter_utils/utils/logger.py
annish-offl/stix-shifter
5abbb0391bf23aafebc8411520008718b69aa5fc
[ "Apache-2.0" ]
null
null
null
import sys import logging from colorlog import ColoredFormatter DEBUG = False def set_logger(module): logger = logging.getLogger(module) handler = logging.StreamHandler() formatter = ColoredFormatter('%(log_color)s %(asctime)s %(name)-12s %(levelname)-8s %(message)s') handler.setFormatter(formatter) ...
26.277778
101
0.706131
64674ad13ec7d9e0795e1364d3f3be9c0ebd0e77
716
py
Python
metadrive/tests/test_functionality/test_destroy.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
125
2021-08-30T06:33:57.000Z
2022-03-31T09:02:44.000Z
metadrive/tests/test_functionality/test_destroy.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
72
2021-08-30T16:23:41.000Z
2022-03-31T19:17:16.000Z
metadrive/tests/test_functionality/test_destroy.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
20
2021-09-09T08:20:25.000Z
2022-03-24T13:24:07.000Z
from metadrive.envs.metadrive_env import MetaDriveEnv from metadrive.utils import setup_logger setup_logger(debug=True) def test_destroy(): # Close and reset env = MetaDriveEnv({"environment_num": 1, "start_seed": 3, "manual_control": False}) try: env.reset() for i in range(1, 20): ...
22.375
92
0.572626
6790ef7ad30e6291841d44a380997a4c4de35a4e
202
py
Python
LCP1.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
LCP1.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
LCP1.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
class Solution: def game(self, guess: List[int], answer: List[int]) -> int: ans = 0 for i, j in zip(guess, answer): if i == j: ans += 1 return ans
28.857143
63
0.465347
082850be03ef6bb417c47cc4eb6c619852400e72
3,681
py
Python
bin/check_sample_sheet.py
peterk87/nf-iav-illumina
b21b3df5ad45ea1f3f140baa93caa137ef7ffc93
[ "MIT" ]
3
2020-10-22T06:35:18.000Z
2021-11-02T17:07:11.000Z
bin/check_sample_sheet.py
usafsam/nf-iav-illumina
b21b3df5ad45ea1f3f140baa93caa137ef7ffc93
[ "MIT" ]
5
2020-03-24T20:38:40.000Z
2021-12-03T19:39:26.000Z
bin/check_sample_sheet.py
peterk87/nf-iav-illumina
b21b3df5ad45ea1f3f140baa93caa137ef7ffc93
[ "MIT" ]
4
2019-10-04T19:13:52.000Z
2021-11-12T19:25:54.000Z
#!/usr/bin/env python from pathlib import Path import pandas as pd import typer from rich.console import Console from rich.logging import RichHandler import logging def check_sample_names(df: pd.DataFrame) -> None: have_whitespace = df['sample'].str.contains(r'\s', regex=True) n_samples_with_whitespace = ha...
34.401869
99
0.628634
745b0ea077bd9d31ad565be040d4672d56b092e5
284
py
Python
.eggs/Cython-0.28.2-py2.7-linux-x86_64.egg/Cython/Tempita/_tempita.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
1
2021-11-29T21:59:06.000Z
2021-11-29T21:59:06.000Z
.eggs/Cython-0.28.2-py2.7-linux-x86_64.egg/Cython/Tempita/_tempita.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
null
null
null
.eggs/Cython-0.28.2-py2.7-linux-x86_64.egg/Cython/Tempita/_tempita.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
null
null
null
def __bootstrap__(): global __bootstrap__, __loader__, __file__ import sys, pkg_resources, imp __file__ = pkg_resources.resource_filename(__name__, '_tempita.so') __loader__ = None; del __bootstrap__, __loader__ imp.load_dynamic(__name__,__file__) __bootstrap__()
35.5
71
0.767606
fe7c84e4f6e3a6c0d782a9c55226b644959a2dd4
3,321
py
Python
support_files/scraping/entries/proj_2080/proj_2080/settings.py
miccaldas/new_rss
9580887ac44b5c3e4c4ed5045478f2c7fef36afe
[ "MIT" ]
null
null
null
support_files/scraping/entries/proj_2080/proj_2080/settings.py
miccaldas/new_rss
9580887ac44b5c3e4c4ed5045478f2c7fef36afe
[ "MIT" ]
null
null
null
support_files/scraping/entries/proj_2080/proj_2080/settings.py
miccaldas/new_rss
9580887ac44b5c3e4c4ed5045478f2c7fef36afe
[ "MIT" ]
null
null
null
# Scrapy settings for proj_2080 project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topics/downloader-middlewa...
35.329787
103
0.777176
0811197b4d6f5f79bfcdd145939d84d335000314
39
py
Python
sltxpkg/lithie/analyze/__init__.py
EagleoutIce/sltx-inst
cb45346177c22fd5bf47f29cebf34f09f16b9a4b
[ "MIT" ]
2
2020-09-28T20:27:29.000Z
2020-10-07T20:30:58.000Z
sltxpkg/lithie/analyze/__init__.py
EagleoutIce/sltx
be71e6245356b8c8a8e42b4a44ceee5d4da4e89c
[ "MIT" ]
null
null
null
sltxpkg/lithie/analyze/__init__.py
EagleoutIce/sltx
be71e6245356b8c8a8e42b4a44ceee5d4da4e89c
[ "MIT" ]
null
null
null
import sltxpkg.lithie.analyze.analyzer
19.5
38
0.871795
649ec5571e64dbbda0ac0ff388659973edf8cb81
13,966
py
Python
SimModel_Python_API/simmodel_swig/Release/SimTemplateZoneConditions_ZoneConditions_Default.py
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
3
2016-05-30T15:12:16.000Z
2022-03-22T08:11:13.000Z
SimModel_Python_API/simmodel_swig/Release/SimTemplateZoneConditions_ZoneConditions_Default.py
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
21
2016-06-13T11:33:45.000Z
2017-05-23T09:46:52.000Z
SimModel_Python_API/simmodel_swig/Release/SimTemplateZoneConditions_ZoneConditions_Default.py
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.7 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2, 6, 0): def swig_import_helper(): from os.path imp...
47.503401
193
0.78641
2fcc8ceffe9e78c722f105ce011d369fe270f020
682
py
Python
ojp/migrations/0002_auto_20161116_0430.py
harshkothari410/ocportal
d2fc46e290532e51351958bf850e774094f5535c
[ "MIT" ]
null
null
null
ojp/migrations/0002_auto_20161116_0430.py
harshkothari410/ocportal
d2fc46e290532e51351958bf850e774094f5535c
[ "MIT" ]
null
null
null
ojp/migrations/0002_auto_20161116_0430.py
harshkothari410/ocportal
d2fc46e290532e51351958bf850e774094f5535c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-16 04:30 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ojp', '0001_initial'), ] operations = [ migrations.AddField( mo...
26.230769
135
0.580645
99847d9189008596fa09ac042c43c8c4860f8853
152,175
py
Python
chinese_province_city_area_mapper/mappers.py
hanbinpro/chinese_province_city_area_mapper
3f4d53d2559c5d21938f406e5248320b384c38f9
[ "MIT" ]
null
null
null
chinese_province_city_area_mapper/mappers.py
hanbinpro/chinese_province_city_area_mapper
3f4d53d2559c5d21938f406e5248320b384c38f9
[ "MIT" ]
null
null
null
chinese_province_city_area_mapper/mappers.py
hanbinpro/chinese_province_city_area_mapper
3f4d53d2559c5d21938f406e5248320b384c38f9
[ "MIT" ]
null
null
null
#数字表示直属于省 area_city_mapper = { '东城区':'北京市', '西城区':'北京市', '崇文区':'北京市', '宣武区':'北京市', '朝阳区':'北京市', '丰台区':'北京市', '石景山区':'北京市', '海淀区':'北京市', '门头沟区':'北京市', '房山区':'北京市', '通州区':'北京市', '顺义区':'北京市', '昌平区':'北京市', '大兴区':'北京市', '怀柔区':'北京市', '平谷区':'北京市', '密云县':'北京市', '延庆县':'北京市', '和平区':'天津市', '河东区':'天津市', '河西区':'天津市', '南开区':'天津市', '...
21.511874
62
0.571152
d3cd31a61e5d4607a6f27d98686f4413936e5776
445
py
Python
lab8.py
upendar245/python
ed4d5488b44d385f2d0f75e8558a5b7fc4563d38
[ "Apache-2.0" ]
null
null
null
lab8.py
upendar245/python
ed4d5488b44d385f2d0f75e8558a5b7fc4563d38
[ "Apache-2.0" ]
null
null
null
lab8.py
upendar245/python
ed4d5488b44d385f2d0f75e8558a5b7fc4563d38
[ "Apache-2.0" ]
null
null
null
#!/python3/bin/python3 def grid(): print('+ - - - + - - - -+') print('| | |') print('| | |') print('| | |') print('| | |') print('+ - - - + - - - -+') print('| | |') print('| | |') print('| | |...
22.25
31
0.224719
2744e83bcca54091d06e0b0566ec2103ea7dc209
6,009
py
Python
empty_collections.py
tmas0/dba_mongodb
bd8628417b89489c153867fd6cbffbe0ad78a0d7
[ "MIT" ]
2
2016-05-19T18:13:40.000Z
2016-05-20T23:27:51.000Z
empty_collections.py
tmas0/dba_mongodb
bd8628417b89489c153867fd6cbffbe0ad78a0d7
[ "MIT" ]
null
null
null
empty_collections.py
tmas0/dba_mongodb
bd8628417b89489c153867fd6cbffbe0ad78a0d7
[ "MIT" ]
2
2018-07-30T10:23:44.000Z
2021-07-20T02:56:11.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python from __future__ import print_function import sys import argparse try: import pymongo except ImportError, e: print (e) sys.exit(2) # As of pymongo v 1.9 the SON API is part of the BSON package, therefore attempt # to import from there and fall back to pymongo ...
35.767857
134
0.616409
94b284d778db0d6d4ec9ad8a17d40b9b6ce3a570
508
py
Python
djangoChat/urls.py
saiyuki1919/Real-time-chat-with-Python-Django
c1b09749baa0a0b98b139515737f5cb3a286a487
[ "MIT" ]
1
2015-10-20T16:02:46.000Z
2015-10-20T16:02:46.000Z
djangoChat/urls.py
saiyuki1919/Real-time-chat-with-Python-Django
c1b09749baa0a0b98b139515737f5cb3a286a487
[ "MIT" ]
null
null
null
djangoChat/urls.py
saiyuki1919/Real-time-chat-with-Python-Django
c1b09749baa0a0b98b139515737f5cb3a286a487
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from djangoChat import views urlpatterns = patterns('', url(r'^$', views.index, name='index'), #url(r'^login/$',views.login,name='login'), url(r'^logout/$',views.logout,name='logout'), url(r'^api/$',views.chat_api,name='chat_api'), url(r'^api/users/$',vie...
39.076923
74
0.681102
16e092cc66f560672c8f27dbbd7c374868f92df3
742
py
Python
mzcn/models/__init__.py
yingdajun/mzcn
76802582d421ad2e094f6886e96bdc2414f8243b
[ "MIT" ]
null
null
null
mzcn/models/__init__.py
yingdajun/mzcn
76802582d421ad2e094f6886e96bdc2414f8243b
[ "MIT" ]
null
null
null
mzcn/models/__init__.py
yingdajun/mzcn
76802582d421ad2e094f6886e96bdc2414f8243b
[ "MIT" ]
null
null
null
from .dense_baseline import DenseBaseline from .dssm import DSSM from .cdssm import CDSSM from .drmm import DRMM from .drmmtks import DRMMTKS from .esim import ESIM from .knrm import KNRM from .conv_knrm import ConvKNRM from .bimpm import BiMPM from .matchlstm import MatchLSTM from .arci import ArcI from .arcii import ...
27.481481
61
0.814016
5aecfd0a51415ce7bf8faf5494e058319dff9786
3,686
py
Python
ExerciciosPYTHON/NovPython/016.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
ExerciciosPYTHON/NovPython/016.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
2
2022-03-18T16:06:07.000Z
2022-03-18T16:55:29.000Z
ExerciciosPYTHON/NovPython/016.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
print('='*8,'Lista de Cadastro de Clientes','='*8) from module.interface import * import sqlite3 from sqlite3 import Error from time import sleep conn = sqlite3.connect(r'C:\Users\saymu\Documents\MyRepository\Python-Desafios\ExerciciosPYTHON\NovPython\Banco\Cadastro.sqlite') cursor = conn.cursor() while True: men...
49.146667
131
0.493218
85a183aeea1d1993b09ce6a018a92f79f3961e46
4,704
py
Python
django/contrib/auth/admin.py
hugs/django
3690ab217e3a65d01bd2f9d25f05fb2e54815693
[ "BSD-3-Clause" ]
2
2015-12-04T12:05:26.000Z
2016-05-08T11:26:55.000Z
django/contrib/auth/admin.py
hugs/django
3690ab217e3a65d01bd2f9d25f05fb2e54815693
[ "BSD-3-Clause" ]
null
null
null
django/contrib/auth/admin.py
hugs/django
3690ab217e3a65d01bd2f9d25f05fb2e54815693
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import User, Group from django.core.exceptions import PermissionDenied from django import template from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.utils.html import escape from django.http import HttpResponseRedir...
42.763636
113
0.609481
b3324f0b273f5bf87d60aa216e97ec9c3db34766
12,619
py
Python
pyqaserver/python_packages/mpld3/mplexporter/exporter.py
brjdenis/qaserver
93a4c3272cf38199e7ef67d1285a9ffacef46883
[ "MIT" ]
11
2019-12-02T04:27:48.000Z
2020-06-10T09:18:11.000Z
pyqaserver/python_packages/mpld3/mplexporter/exporter.py
brjdenis/pyqaserver
93a4c3272cf38199e7ef67d1285a9ffacef46883
[ "MIT" ]
13
2020-10-19T16:38:56.000Z
2021-05-04T19:44:01.000Z
pyqaserver/python_packages/mpld3/mplexporter/exporter.py
brjdenis/qaserver
93a4c3272cf38199e7ef67d1285a9ffacef46883
[ "MIT" ]
2
2020-01-13T17:00:41.000Z
2020-01-28T21:32:58.000Z
""" Matplotlib Exporter =================== This submodule contains tools for crawling a matplotlib figure and exporting relevant pieces to a renderer. """ import warnings import io from . import utils import matplotlib from matplotlib import transforms, collections from matplotlib.backends.backend_agg import FigureCa...
43.968641
79
0.54307
1d1019ca6e91f4cda6d89a5d523b994bd3f045c4
175
py
Python
speicialCharacters.py
stahv21-meet/meet2019y1lab3
a3110fb4ae9112ed827062912b903b194623d8ed
[ "MIT" ]
null
null
null
speicialCharacters.py
stahv21-meet/meet2019y1lab3
a3110fb4ae9112ed827062912b903b194623d8ed
[ "MIT" ]
null
null
null
speicialCharacters.py
stahv21-meet/meet2019y1lab3
a3110fb4ae9112ed827062912b903b194623d8ed
[ "MIT" ]
null
null
null
print("Instructor Alex asks, \"What are you learning today?\"\n The students reply, 'We are learning how to print!' \n 'We can type print(\\\Day1\\\) to print out \Day1\.'")
58.333333
173
0.68
fcff90c38981c7c9024b42fb38dbc7bff27c5fc6
33,428
py
Python
sift_pyx12/test/test_map_if.py
sifthealthcare/sift-pyx12
97b38fd8b681f149570ac9d5cae0fe868a7722f2
[ "BSD-3-Clause" ]
null
null
null
sift_pyx12/test/test_map_if.py
sifthealthcare/sift-pyx12
97b38fd8b681f149570ac9d5cae0fe868a7722f2
[ "BSD-3-Clause" ]
2
2021-11-12T18:35:11.000Z
2021-11-12T18:35:31.000Z
sift_pyx12/test/test_map_if.py
sifthealthcare/sift-pyx12
97b38fd8b681f149570ac9d5cae0fe868a7722f2
[ "BSD-3-Clause" ]
null
null
null
import unittest import sift_pyx12.error_handler import sift_pyx12.map_if import sift_pyx12.params import sift_pyx12.path import sift_pyx12.segment class ElementIsValidDate(unittest.TestCase): def setUp(self): param = sift_pyx12.params.params() self.map = sift_pyx12.map_if.load_map_file('837Q3.I.5...
40.323281
114
0.645597
4f70e2016d9ac36f972e490020fe5e6815a62dab
32,828
py
Python
netbox/ipam/forms.py
paxio/netbox
55dbbdc4a59f8c1efb87d3d86cef828fd8492aeb
[ "Apache-2.0" ]
1
2018-11-07T21:52:41.000Z
2018-11-07T21:52:41.000Z
netbox/ipam/forms.py
paxio/netbox
55dbbdc4a59f8c1efb87d3d86cef828fd8492aeb
[ "Apache-2.0" ]
2
2018-02-13T11:58:07.000Z
2018-03-07T10:45:44.000Z
netbox/ipam/forms.py
paxio/netbox
55dbbdc4a59f8c1efb87d3d86cef828fd8492aeb
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django import forms from django.core.exceptions import MultipleObjectsReturned from django.core.validators import MaxValueValidator, MinValueValidator from django.db.models import Count from taggit.forms import TagField from dcim.models import Site, Rack, Device, Interface...
33.773663
119
0.630681
fa35080e1cd745235977a5bed0c88f9bc2237baa
13,748
py
Python
src/azul/indexer/__init__.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
17
2018-07-20T02:53:35.000Z
2022-01-11T12:27:31.000Z
src/azul/indexer/__init__.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
3,887
2018-06-29T15:23:02.000Z
2022-03-31T23:29:37.000Z
src/azul/indexer/__init__.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
21
2018-07-06T03:17:33.000Z
2022-02-18T04:10:02.000Z
from abc import ( ABC, abstractmethod, ) from itertools import ( product, ) import logging import math from threading import ( RLock, ) from typing import ( Any, ClassVar, Dict, Generic, Iterator, Optional, Protocol, TYPE_CHECKING, Tuple, Type, TypeVar, ge...
30.756152
108
0.596887
9c0a6a19085932fe69b08c96a8a0aa580767d245
914
py
Python
tem/var.py
tem-cli/tem
6974734a000604fe201fcba573b05e8fe50eda72
[ "MIT" ]
null
null
null
tem/var.py
tem-cli/tem
6974734a000604fe201fcba573b05e8fe50eda72
[ "MIT" ]
null
null
null
tem/var.py
tem-cli/tem
6974734a000604fe201fcba573b05e8fe50eda72
[ "MIT" ]
null
null
null
import os from tem import util def active_variants() -> list[str]: return _read_variants() def activate(variants: list[str]): _write_variants(util.unique(active_variants() + variants)) def deactivate(variants: list[str]): new = [var for var in active_variants() if var not in variants] _write_vari...
25.388889
69
0.664114
de9c03e06304261d7a5bf3aa671ca914fcd1d060
4,299
py
Python
neutron/tests/unit/extensions/test_vlantransparent.py
mihaibroc/neutron
dfb7c826d0846970bac00003cea98c9f6bd8f0b8
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/extensions/test_vlantransparent.py
mihaibroc/neutron
dfb7c826d0846970bac00003cea98c9f6bd8f0b8
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/extensions/test_vlantransparent.py
mihaibroc/neutron
dfb7c826d0846970bac00003cea98c9f6bd8f0b8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Cisco Systems Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
40.556604
78
0.666201
51bbaa2751db01ef054b186b143c2fc80113bba8
2,520
py
Python
raiden/blockchain/state.py
yahgwai/raiden
a76809872468890d7f2a66b293876aff93b6ea97
[ "MIT" ]
null
null
null
raiden/blockchain/state.py
yahgwai/raiden
a76809872468890d7f2a66b293876aff93b6ea97
[ "MIT" ]
null
null
null
raiden/blockchain/state.py
yahgwai/raiden
a76809872468890d7f2a66b293876aff93b6ea97
[ "MIT" ]
null
null
null
from raiden.transfer.state import ( NettingChannelEndState, NettingChannelState, TransactionExecutionStatus, ) from raiden.utils import CanonicalIdentifier from raiden.utils.typing import ( BlockHash, BlockNumber, BlockTimeout, PaymentNetworkID, TokenAddress, TokenNetworkAddress, ) ...
30.731707
73
0.725
cab61fb99bc326ef7de35c231c9f18271b7da456
8,297
py
Python
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_update_project_result.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_update_project_result.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_update_project_result.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class KeystoneUpdateProjectResult: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict)...
25.847352
147
0.582379
9a4ac116b728e57cf25d6a69f765a054629d4ee9
6,447
py
Python
contrib/devtools/clang-format-diff.py
codingbam/visioncoin
7be3fb2b7c0748b2c9b902a88356f21ffacac45c
[ "MIT" ]
null
null
null
contrib/devtools/clang-format-diff.py
codingbam/visioncoin
7be3fb2b7c0748b2c9b902a88356f21ffacac45c
[ "MIT" ]
null
null
null
contrib/devtools/clang-format-diff.py
codingbam/visioncoin
7be3fb2b7c0748b2c9b902a88356f21ffacac45c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # #===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===# # # The LLVM Compiler Infrastructure # # This file is distributed under the University of Illinois Open Source # License. # # =================================================...
38.60479
83
0.596867
e1ef844db6dbcd5519663d6550742029fb890672
3,004
py
Python
tests/test_core.py
ucu-fit-intart1/adversarial_search
929f50164a74b86e54c3755fee4aea16e64a8bf8
[ "MIT" ]
1
2019-04-30T14:57:30.000Z
2019-04-30T14:57:30.000Z
tests/test_core.py
ucu-fit-intart1/adversarial_search
929f50164a74b86e54c3755fee4aea16e64a8bf8
[ "MIT" ]
null
null
null
tests/test_core.py
ucu-fit-intart1/adversarial_search
929f50164a74b86e54c3755fee4aea16e64a8bf8
[ "MIT" ]
6
2018-04-10T21:57:25.000Z
2020-08-15T17:11:10.000Z
from unittest.mock import patch, Mock import pytest from .context import adversarial_search as a_s Game = a_s.Game class TestGame: @patch.object(Game, '__abstractmethods__', set()) def setup(self): self.game = Game(*('A', 'B')) def test_init(self): with pytest.raises(TypeError) as e: ...
32.301075
86
0.603196
c6b66b30a661f02471ffcbac04c4c33b5b975014
16,318
py
Python
exfor_chart.py
afedynitch/EXFOR_chart
acb266e56528f1e8eeca939273c6242d28e60f0c
[ "BSD-3-Clause" ]
1
2020-09-15T19:15:22.000Z
2020-09-15T19:15:22.000Z
exfor_chart.py
afedynitch/EXFOR_chart
acb266e56528f1e8eeca939273c6242d28e60f0c
[ "BSD-3-Clause" ]
null
null
null
exfor_chart.py
afedynitch/EXFOR_chart
acb266e56528f1e8eeca939273c6242d28e60f0c
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import sys import os import numpy as np import matplotlib.pyplot as plt from matplotlib import patches import matplotlib.gridspec as gridspec import six try: import cPickle as pickle except BaseException: import pickle from exfor_tools import * # Define drawing functions...
40.291358
99
0.576235
768404e9456652bbaccd1e5b4df6286bdac77187
5,039
py
Python
VOTERSguide.py
KalebNyquist/voters-clustering
241219477eedf623a8ea09f1ddce966535ca80e0
[ "MIT" ]
1
2020-02-16T21:48:54.000Z
2020-02-16T21:48:54.000Z
VOTERSguide.py
KalebNyquist/voters-clustering
241219477eedf623a8ea09f1ddce966535ca80e0
[ "MIT" ]
null
null
null
VOTERSguide.py
KalebNyquist/voters-clustering
241219477eedf623a8ea09f1ddce966535ca80e0
[ "MIT" ]
null
null
null
import PyPDF2 from tqdm import tqdm import re dashed_line = "--------------------------------------------------------------------------------" dashed_line_errors = ["-----------------------------------------------------------------------------If", "----------------------------------------------------------------------...
37.325926
187
0.610439
e59100146249ab41259cb9fc515f5c0e95a1929d
5,958
py
Python
pandas/tests/io/test_feather.py
gsyqax/pandas
cb35d8a938c9222d903482d2f66c62fece5a7aae
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
4
2015-06-09T07:27:52.000Z
2021-08-06T13:50:05.000Z
pandas/tests/io/test_feather.py
gsyqax/pandas
cb35d8a938c9222d903482d2f66c62fece5a7aae
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
7
2015-08-30T23:51:00.000Z
2018-12-29T19:52:35.000Z
pandas/tests/io/test_feather.py
gsyqax/pandas
cb35d8a938c9222d903482d2f66c62fece5a7aae
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
5
2017-10-04T22:24:49.000Z
2021-08-06T13:50:13.000Z
""" test feather-format compat """ from distutils.version import LooseVersion import numpy as np import pytest import pandas.util._test_decorators as td import pandas as pd import pandas._testing as tm from pandas.io.feather_format import read_feather, to_feather # noqa: E402 isort:skip pyarrow = pytest.importors...
32.557377
86
0.564283
1db7edda76d384cbe23e9ce181b2a9de6c756214
1,156
py
Python
setup.py
fishstiqz/pycdb
d4c3d3be8343b66da5a8691b12c27e358690abf2
[ "MIT" ]
11
2017-06-20T21:46:59.000Z
2021-06-22T01:05:58.000Z
setup.py
fishstiqz/pycdb
d4c3d3be8343b66da5a8691b12c27e358690abf2
[ "MIT" ]
4
2019-02-28T17:21:57.000Z
2021-06-22T13:02:03.000Z
setup.py
fishstiqz/pycdb
d4c3d3be8343b66da5a8691b12c27e358690abf2
[ "MIT" ]
2
2018-05-31T14:49:54.000Z
2021-06-22T05:20:56.000Z
#!/usr/bin/env python # encoding: utf-8 import os, sys from setuptools import setup setup( # metadata name='PyCDB', description='A python wrapper for the CDB Debugger', long_description=""" A python wrapper for Microsoft's CDB command-line debugger. """, license='MIT', version='0.2...
27.52381
108
0.622837
d05a78d59698394b33fe6969f1f75877dc9fbd4d
867
py
Python
system/migrations/0002_auto_20201104_1400.py
Joe-Sin7h/melodiam
756996464a79a1e2066004d2bcc05c10fbbf3e8e
[ "MIT" ]
null
null
null
system/migrations/0002_auto_20201104_1400.py
Joe-Sin7h/melodiam
756996464a79a1e2066004d2bcc05c10fbbf3e8e
[ "MIT" ]
null
null
null
system/migrations/0002_auto_20201104_1400.py
Joe-Sin7h/melodiam
756996464a79a1e2066004d2bcc05c10fbbf3e8e
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-11-04 08:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('system', '0001_initial'), ] operations = [ migrations.AddField( model_name='profile', name='follower', f...
25.5
74
0.545559
6d87253d54a0029341f3b9f4407c9987c2d6fa15
99
py
Python
L4/pyL4/__init__.py
Marcao02/complaw-deeptech
4c2af1bdd885bc2fb7e14dc14c11fed30f8f3428
[ "Apache-2.0" ]
null
null
null
L4/pyL4/__init__.py
Marcao02/complaw-deeptech
4c2af1bdd885bc2fb7e14dc14c11fed30f8f3428
[ "Apache-2.0" ]
null
null
null
L4/pyL4/__init__.py
Marcao02/complaw-deeptech
4c2af1bdd885bc2fb7e14dc14c11fed30f8f3428
[ "Apache-2.0" ]
null
null
null
# import sys # sys.path.append("..") # Adds higher directory to python modules path. import logging
33
71
0.737374
6667d389bd6c59021cf3c5df7b374a50357ce26f
627,494
py
Python
pandas/tests/test_frame.py
lukauskas/pandas
bd2248c89935b4e706af38e4dcf6fe33799c2a44
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/tests/test_frame.py
lukauskas/pandas
bd2248c89935b4e706af38e4dcf6fe33799c2a44
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/tests/test_frame.py
lukauskas/pandas
bd2248c89935b4e706af38e4dcf6fe33799c2a44
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function # pylint: disable-msg=W0612,E1101 from copy import deepcopy from datetime import datetime, timedelta, time, date import sys import operator import re import csv import nose import functools import itertools from itertools import product, permutations from d...
37.771263
155
0.539248
e700ac9476ebfe00bcf2f178cd42f7ffbbd35f27
2,860
py
Python
examples/alert_example.py
ZSD-tim/dayu_widgets
31c2530bdc4161d9311574d9850c2e9471e53072
[ "MIT" ]
3
2020-11-29T02:03:31.000Z
2021-02-18T03:26:12.000Z
examples/alert_example.py
kanbang/dayu_widgets
6ff101e6c6f8fcf10e5cb578023a12ccdcef9164
[ "MIT" ]
null
null
null
examples/alert_example.py
kanbang/dayu_widgets
6ff101e6c6f8fcf10e5cb578023a12ccdcef9164
[ "MIT" ]
1
2021-09-26T07:06:42.000Z
2021-09-26T07:06:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: Mu yanru # Date : 2019.2 # Email : muyanru345@163.com ################################################################### import functools from dayu_widgets.alert import MAlert from dayu_widget...
37.142857
90
0.614685
04f151ec1f7d32ff4be43054aab24701d65703a9
4,219
py
Python
back-end/threats_monitoring/downloader_web_based_attacks.py
tzamalisp/saint-open-source-tool-for-cyberthreats-monitoring
c30e6da5358555d06413541b6d3893c62a475368
[ "MIT" ]
null
null
null
back-end/threats_monitoring/downloader_web_based_attacks.py
tzamalisp/saint-open-source-tool-for-cyberthreats-monitoring
c30e6da5358555d06413541b6d3893c62a475368
[ "MIT" ]
null
null
null
back-end/threats_monitoring/downloader_web_based_attacks.py
tzamalisp/saint-open-source-tool-for-cyberthreats-monitoring
c30e6da5358555d06413541b6d3893c62a475368
[ "MIT" ]
null
null
null
import urllib.request from urllib.error import URLError, HTTPError, ContentTooShortError from throttle import Throttle class Downloader: def __init__(self, delay=1, user_agent='saint_data', cache={}): """ __init__ method initializes a Downloader object @parameters us...
45.365591
121
0.519317
a60654cc832f7f665fd888448fabd9eda68758ab
321
py
Python
Strings/434. Number of Segments in a String.py
thewires2/Leetcode
a37ff81d60dd9195ba637b970b40aabbea5f4680
[ "Unlicense" ]
1
2021-06-30T17:51:56.000Z
2021-06-30T17:51:56.000Z
Strings/434. Number of Segments in a String.py
thewires2/Leetcode
a37ff81d60dd9195ba637b970b40aabbea5f4680
[ "Unlicense" ]
null
null
null
Strings/434. Number of Segments in a String.py
thewires2/Leetcode
a37ff81d60dd9195ba637b970b40aabbea5f4680
[ "Unlicense" ]
null
null
null
class Solution: def countSegments(self, s: str) -> int: s=s.strip() if not s: return 0 k=0 t="" for i in s: if i!=" ": t+=i else: if t!="": k+=1 t="" return k+1...
20.0625
43
0.28972
7bb0a23b762bf969160153b2a70893a1704b1e2d
14,370
py
Python
tensorflow_examples/lite/model_maker/core/data_util/text_dataloader.py
wladimir-crypto/TensowFlow-Food
c5e115f96d3fca04fe256e9b2f3075f77e083a75
[ "Apache-2.0" ]
2
2021-02-06T03:35:26.000Z
2021-02-06T12:48:14.000Z
tensorflow_examples/lite/model_maker/core/data_util/text_dataloader.py
wladimir-crypto/TensowFlow-Food
c5e115f96d3fca04fe256e9b2f3075f77e083a75
[ "Apache-2.0" ]
null
null
null
tensorflow_examples/lite/model_maker/core/data_util/text_dataloader.py
wladimir-crypto/TensowFlow-Food
c5e115f96d3fca04fe256e9b2f3075f77e083a75
[ "Apache-2.0" ]
1
2021-02-04T07:49:43.000Z
2021-02-04T07:49:43.000Z
# Copyright 2019 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 applica...
37.617801
95
0.68977
31f38dd103b32f1c33890d314a8ca1162fae03d0
114
py
Python
python/1073.py
clebsonc/UriOnlineJudge
763cef77cf3d5088be34c54b0cf457c6ef90a88f
[ "MIT" ]
null
null
null
python/1073.py
clebsonc/UriOnlineJudge
763cef77cf3d5088be34c54b0cf457c6ef90a88f
[ "MIT" ]
null
null
null
python/1073.py
clebsonc/UriOnlineJudge
763cef77cf3d5088be34c54b0cf457c6ef90a88f
[ "MIT" ]
null
null
null
a = int(raw_input()) a = [x for x in range(1, a+1, 1) if x%2 == 0] for x in a: print str(x)+'^2 = '+str(x**2)
22.8
45
0.5
5bd6e860f82a332dc8d7e0e89562c7e91b6a4626
599
py
Python
aleph/model/__init__.py
aaronarnold2/aleph
1728f4db8863554d5b0722546838970e53ec72bd
[ "MIT" ]
null
null
null
aleph/model/__init__.py
aaronarnold2/aleph
1728f4db8863554d5b0722546838970e53ec72bd
[ "MIT" ]
null
null
null
aleph/model/__init__.py
aaronarnold2/aleph
1728f4db8863554d5b0722546838970e53ec72bd
[ "MIT" ]
null
null
null
from aleph.core import db # noqa from aleph.model.role import Role # noqa from aleph.model.alert import Alert # noqa from aleph.model.permission import Permission # noqa from aleph.model.entity import Entity # noqa from aleph.model.collection import Collection # noqa from aleph.model.document import Document # n...
46.076923
77
0.791319
e0772741c807e288f88bfd3af7948bd0ef760be5
243
py
Python
snakemake_workflow_template/release_modules/create_identifiers/create_identifiers/regulondb_multigenomic/domain/transcription_unit.py
regulondbunam/RegulonDB-MCO-Felipe
6e5546907399d5712a8e69f2f8320af8d30b9d7b
[ "MIT" ]
null
null
null
snakemake_workflow_template/release_modules/create_identifiers/create_identifiers/regulondb_multigenomic/domain/transcription_unit.py
regulondbunam/RegulonDB-MCO-Felipe
6e5546907399d5712a8e69f2f8320af8d30b9d7b
[ "MIT" ]
null
null
null
snakemake_workflow_template/release_modules/create_identifiers/create_identifiers/regulondb_multigenomic/domain/transcription_unit.py
regulondbunam/RegulonDB-MCO-Felipe
6e5546907399d5712a8e69f2f8320af8d30b9d7b
[ "MIT" ]
null
null
null
ACRONYM = "TUC" def transcription_unit(**identifier_properties): unique_data_string = [ identifier_properties.get("name", "NoName"), identifier_properties.get("operon_id", "NoOperon") ] return unique_data_string
22.090909
58
0.695473
2bfe42f89a88b584c149e707c127966a6b428247
2,110
py
Python
recipes/Python/578677_language_decorator/recipe-578677.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/578677_language_decorator/recipe-578677.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/578677_language_decorator/recipe-578677.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
import sys import lua as _lua # lua (lunatic-pathon) import os # bash import scipy.weave # Cpp # more languages can and should be added ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### # Definition of Decorators ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### #...
21.530612
79
0.461611
ef4c6187fb32d63e8e84d81eb626c740b4efdca2
4,825
py
Python
src/commercetools/testing/product_types.py
BramKaashoek/commercetools-python-sdk
4a4191d7816c921401b782d8ae37626cb32791a1
[ "MIT" ]
null
null
null
src/commercetools/testing/product_types.py
BramKaashoek/commercetools-python-sdk
4a4191d7816c921401b782d8ae37626cb32791a1
[ "MIT" ]
null
null
null
src/commercetools/testing/product_types.py
BramKaashoek/commercetools-python-sdk
4a4191d7816c921401b782d8ae37626cb32791a1
[ "MIT" ]
null
null
null
import copy import datetime import typing import uuid from commercetools import schemas, types from commercetools.testing.abstract import BaseModel, ServiceBackend from commercetools.testing.utils import InternalUpdateError, update_attribute class ProductTypesModel(BaseModel): _primary_type_name = "product-type"...
33.506944
88
0.627358
f8c88fe29bb30d3ae6f4229bfdb01f253904fce3
4,589
py
Python
global/status_page/backend/run.py
GodOfOwls/Lightshield
043b18a50615ce802be5525cf8fe7bc5690d7cf6
[ "Apache-2.0" ]
null
null
null
global/status_page/backend/run.py
GodOfOwls/Lightshield
043b18a50615ce802be5525cf8fe7bc5690d7cf6
[ "Apache-2.0" ]
null
null
null
global/status_page/backend/run.py
GodOfOwls/Lightshield
043b18a50615ce802be5525cf8fe7bc5690d7cf6
[ "Apache-2.0" ]
null
null
null
import asyncio import json import os from datetime import datetime import logging import asyncpg from aiohttp import web import traceback class Server: def __init__(self): self.db_host = os.environ["DB_HOST"] self.db_database = os.environ["DB_DATABASE"] self.server = os.environ["SERVER"].s...
31.217687
102
0.430813
b17fb1b5a05f7bb4fdae2b8ee86ab4a026e1256b
8,341
py
Python
hyp3lib/getSubSwath.py
lidar-nevermore/hyp3-lib
bfb2487b6cbc0029eb689bc059890e71b7f60d3c
[ "BSD-3-Clause" ]
4
2020-07-16T18:29:57.000Z
2021-11-23T00:35:50.000Z
hyp3lib/getSubSwath.py
lidar-nevermore/hyp3-lib
bfb2487b6cbc0029eb689bc059890e71b7f60d3c
[ "BSD-3-Clause" ]
16
2020-07-13T23:55:09.000Z
2022-03-23T08:05:10.000Z
hyp3lib/getSubSwath.py
lidar-nevermore/hyp3-lib
bfb2487b6cbc0029eb689bc059890e71b7f60d3c
[ "BSD-3-Clause" ]
7
2020-07-13T23:28:43.000Z
2022-03-19T13:39:14.000Z
import os from osgeo import ogr import glob from lxml import etree def get_bounding_box_file(safeFile): mydir = "%s/annotation" % safeFile myxml = "" name = "" # Get corners from first and last swath name = "001.xml" for myfile in os.listdir(mydir): if name in myfile: myxm...
32.329457
152
0.553771
ec46e2cfde13e597d41b78971818e4b886fb0196
720
py
Python
vegapy/tests/test_detector.py
felixbosco/vegapy
6249882880ab9d556aaee9808b90aa0bc976133c
[ "MIT" ]
2
2019-01-17T13:16:49.000Z
2019-03-29T15:39:17.000Z
vegapy/tests/test_detector.py
scivision/vegapy
db095f790c7e86b3dd273fdd260c83fcb2550772
[ "MIT" ]
null
null
null
vegapy/tests/test_detector.py
scivision/vegapy
db095f790c7e86b3dd273fdd260c83fcb2550772
[ "MIT" ]
2
2018-11-16T12:14:03.000Z
2019-03-03T03:58:49.000Z
# Import import vegapy import os import astropy.units as u import numpy as np # Settings verbose = 0 visual = 0 # Initialize PATH, FILE = os.path.split(__file__) SOURCE_PATH = os.path.join(PATH, '../source/') print('>>> TEST: {}'.format(FILE)) # Initilization tests det = vegapy.Detector((64, 64), pixel_size=0.01*u.a...
23.225806
96
0.720833