hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
ed674c4c205440cb16d99ce07f8f85acd3899de0
186
py
Python
starfish/image/__init__.py
ttung/starfish
1bd8abf55a335620e4b20abb041f478334714081
[ "MIT" ]
null
null
null
starfish/image/__init__.py
ttung/starfish
1bd8abf55a335620e4b20abb041f478334714081
[ "MIT" ]
null
null
null
starfish/image/__init__.py
ttung/starfish
1bd8abf55a335620e4b20abb041f478334714081
[ "MIT" ]
null
null
null
from ._filter import Filter from ._registration._apply_transform import ApplyTransform from ._registration._learn_transform import LearnTransform from ._segmentation import Segmentation
37.2
58
0.88172
d2c67d44136721b4374eb1901eaa4ab0c2704ad7
22,206
py
Python
deepcell/image_generators/cropping.py
BioMeasure/deepcell-tf
e8912c9e4a7160900e8d9dc2616a03dfa47fd53f
[ "Apache-2.0" ]
1
2020-12-05T14:59:18.000Z
2020-12-05T14:59:18.000Z
deepcell/image_generators/cropping.py
BioMeasure/deepcell-tf
e8912c9e4a7160900e8d9dc2616a03dfa47fd53f
[ "Apache-2.0" ]
null
null
null
deepcell/image_generators/cropping.py
BioMeasure/deepcell-tf
e8912c9e4a7160900e8d9dc2616a03dfa47fd53f
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2020 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
43.972277
99
0.581329
1481cf55d238b458c54fbbddd274d7268d33eb1c
1,225
py
Python
hata/discord/guild/audit_logs/audit_log_role.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
1
2022-03-02T03:59:57.000Z
2022-03-02T03:59:57.000Z
hata/discord/guild/audit_logs/audit_log_role.py
m0nk3ybraindead/hata
f87ed3d7009eeae31d6ea158772efd33775c7b1c
[ "0BSD" ]
1
2022-02-08T16:54:39.000Z
2022-02-08T16:54:39.000Z
hata/discord/guild/audit_logs/audit_log_role.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
null
null
null
__all__ = ('AuditLogRole',) from ...bases import DiscordEntity from ...role import Role class AuditLogRole(DiscordEntity): """ Represents a role object received with audit logs. Parameters ---------- id : `int` The role's identifier. name : `str` The role's name. """ ...
22.272727
80
0.502857
f133e7806a34b1a1bb2dd83ba412ec53f281d110
18,743
py
Python
xarray/plot/facetgrid.py
visr/xarray
9e8707d2041cfa038c31fc2284c1fe40bc3368e9
[ "Apache-2.0" ]
null
null
null
xarray/plot/facetgrid.py
visr/xarray
9e8707d2041cfa038c31fc2284c1fe40bc3368e9
[ "Apache-2.0" ]
1
2018-12-05T09:21:17.000Z
2018-12-05T09:21:17.000Z
xarray/plot/facetgrid.py
visr/xarray
9e8707d2041cfa038c31fc2284c1fe40bc3368e9
[ "Apache-2.0" ]
1
2020-05-29T16:17:35.000Z
2020-05-29T16:17:35.000Z
from __future__ import absolute_import, division, print_function import functools import itertools import warnings import numpy as np from ..core.formatting import format_item from ..core.pycompat import getargspec from .utils import ( _determine_cmap_params, _infer_xy_labels, import_matplotlib_pyplot, label...
35.700952
152
0.582618
45d446a91c84c9157024511722464ecff3899ed5
4,808
py
Python
util/adb.py
Michel-14/ALAuto
18a6e3e82ec5d3818f87697959a9ebd812203197
[ "WTFPL" ]
1
2020-04-13T03:17:04.000Z
2020-04-13T03:17:04.000Z
util/adb.py
Michel-14/ALAuto
18a6e3e82ec5d3818f87697959a9ebd812203197
[ "WTFPL" ]
1
2020-04-13T16:19:17.000Z
2020-04-13T16:19:17.000Z
util/adb.py
Michel-14/ALAuto
18a6e3e82ec5d3818f87697959a9ebd812203197
[ "WTFPL" ]
1
2020-04-13T15:54:25.000Z
2020-04-13T15:54:25.000Z
import subprocess from util.logger import Logger class Adb(object): legacy = False service = '' transID = '' tcp = False def init(self): """Kills and starts a new ADB server """ self.kill_server() return self.start_server() def enable_legacy(self): "...
34.589928
145
0.598586
1a6cbd2890d5723dd74141463397f427ffbf3f8d
5,993
py
Python
model_training/unet_addnet/trainer.py
ostapViniavskyi/brain_tumor_segmentation
c367155bd8eb3e4f950da824385641d2dc8c063a
[ "MIT" ]
7
2019-12-18T20:07:03.000Z
2021-04-28T09:19:11.000Z
model_training/unet_addnet/trainer.py
ostapViniavskyi/brain_tumor_segmentation
c367155bd8eb3e4f950da824385641d2dc8c063a
[ "MIT" ]
null
null
null
model_training/unet_addnet/trainer.py
ostapViniavskyi/brain_tumor_segmentation
c367155bd8eb3e4f950da824385641d2dc8c063a
[ "MIT" ]
1
2022-01-17T11:21:50.000Z
2022-01-17T11:21:50.000Z
import numpy as np import torch import torch.optim as optim import tqdm import time import os from collections import defaultdict from tensorboardX import SummaryWriter from model_training.common.losses import get_loss from model_training.common.metrics import get_metric class Trainer: def __init__(self, model, ...
35.886228
99
0.581345
8aa2aa527c8b0a2dd0a1e38f623be6bbda666dff
721
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractVentifrappeWordpressCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractVentifrappeWordpressCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractVentifrappeWordpressCom.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractVentifrappeWordpressCom(item): ''' Parser for 'ventifrappe.wordpress.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None titlemap = [ ('Doctoring the world Chapter ', 'Doctoring the world', ...
34.333333
104
0.675451
c6c7a51e7c4881e764a8d572e670b3cfa744175f
8,687
py
Python
mkt/developers/tests/test_views_validation.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
mkt/developers/tests/test_views_validation.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
mkt/developers/tests/test_views_validation.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import codecs import collections import json import os import tempfile from django import forms from django.core.files.storage import default_storage as storage from django.core.urlresolvers import reverse from mock import Mock, patch from nose.tools import eq_ from pyquery import PyQuery as p...
39.666667
81
0.620237
b01f811f3466a5ad6e740310328ee16156794479
17,073
py
Python
libcst/_nodes/base.py
chrahunt/LibCST
c92bc02d8c167e0f0a27c822f111d5e14f8545ec
[ "Apache-2.0" ]
null
null
null
libcst/_nodes/base.py
chrahunt/LibCST
c92bc02d8c167e0f0a27c822f111d5e14f8545ec
[ "Apache-2.0" ]
null
null
null
libcst/_nodes/base.py
chrahunt/LibCST
c92bc02d8c167e0f0a27c822f111d5e14f8545ec
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from abc import ABC, abstractmethod from copy import deepcopy from dataclasses import dataclass, field, fields, replace from typing import ( ...
37.688742
89
0.649856
c25de9a41bdf3aa87bedd4ce9b6480b14619d153
1,235
py
Python
pypy/tool/test/test_conftest1.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
1
2019-05-27T00:58:46.000Z
2019-05-27T00:58:46.000Z
pypy/tool/test/test_conftest1.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
pypy/tool/test/test_conftest1.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
import py innertest = py.magic.autopath().dirpath('conftest1_innertest.py') pytest_plugins = "pytest_pytester" class TestPyPyTests: def test_select_interplevel(self, testdir): sorter = testdir.inline_run("-k", "interplevel", innertest) passed, skipped, failed = sorter.listoutcomes() asse...
37.424242
85
0.654251
80849c1c1bd484cad89d4f4e107c1ef2fdc0a636
1,119
py
Python
software/temcagt/smaract/tests/04_sync_vs_async.py
htem/GridTapeStage
0b4764bc4ea8d64970ea481a32d6c7383d301989
[ "RSA-MD" ]
2
2020-02-07T10:34:23.000Z
2021-09-24T02:28:10.000Z
software/temcagt/smaract/tests/04_sync_vs_async.py
htem/GridTapeStage
0b4764bc4ea8d64970ea481a32d6c7383d301989
[ "RSA-MD" ]
null
null
null
software/temcagt/smaract/tests/04_sync_vs_async.py
htem/GridTapeStage
0b4764bc4ea8d64970ea481a32d6c7383d301989
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python import time import smaract import smaract.async channel = 0 distance = 16000 l = 'usb:id:xxxxxxx' # first try sync #locs = smaract.find_systems() #print locs #l = locs[0] #if len(l) == 0: # raise Exception("No systems found") print("Connecting to: %s" % l) # sync m = smaract.MCS(l) t0 = ...
16.455882
40
0.634495
ee0d1260a62afb742e1cfef37929b1b869416ca7
662
py
Python
Python3/0129-Sum-Root-to-Leaf-Numbers/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/0129-Sum-Root-to-Leaf-Numbers/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/0129-Sum-Root-to-Leaf-Numbers/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def sumNumbers(self, root): """ :type root: TreeNode :rtype: int """ def traverse(node, val): ...
27.583333
79
0.480363
122cd2a05861517a6301546ef5f01a04c21114ef
1,071
py
Python
app/v1/modules/auth/__init__.py
speduardo/flask-boilerplate
d50d8d0f15a08c4905a2029b0ae9637489624c9a
[ "MIT" ]
1
2020-05-26T01:53:58.000Z
2020-05-26T01:53:58.000Z
app/v1/modules/auth/__init__.py
speduardo/flask-boilerplate
d50d8d0f15a08c4905a2029b0ae9637489624c9a
[ "MIT" ]
null
null
null
app/v1/modules/auth/__init__.py
speduardo/flask-boilerplate
d50d8d0f15a08c4905a2029b0ae9637489624c9a
[ "MIT" ]
null
null
null
""" Auth module =========== """ #from app.extensions import login_manager, oauth2 from app.v1.core.api import api_v1 def load_user_from_request(request): """ Load user from OAuth2 Authentication header. """ user = None #if hasattr(request, 'oauth'): # user = request.oauth.user #else: ...
26.121951
81
0.674136
c4bc61d832484a34ae928af094d25db9bd925929
6,262
py
Python
Findclone/aiofindclone.py
vypivshiy/Findclone_api
97ec5f33929b5cd3bdf670d829596749c3797dbc
[ "MIT" ]
5
2020-11-16T11:41:05.000Z
2021-09-09T22:54:37.000Z
Findclone/aiofindclone.py
vypivshiy/Findclone_api
97ec5f33929b5cd3bdf670d829596749c3797dbc
[ "MIT" ]
2
2021-05-02T21:34:47.000Z
2021-08-21T23:30:44.000Z
Findclone/aiofindclone.py
vypivshiy/Findclone_api
97ec5f33929b5cd3bdf670d829596749c3797dbc
[ "MIT" ]
2
2021-04-27T01:14:15.000Z
2021-09-30T06:44:40.000Z
from aiohttp import ClientSession, FormData from Findclone import __version__ from .models import Account, Profiles, Histories, get_builder from .utils import random_string, paint_boxes from .exceptions import a_error_handler, FindcloneError from io import BufferedReader, BytesIO class FindcloneAsync: """async f...
40.928105
115
0.569946
30d96561bfd1a9779a11f8ee639d19b0ff384b9b
523
py
Python
crazyswarm2/launch/teleop_launch.py
akmaralAW/crazyswarm2
f5bbe893eacd860b5d712a4beaf8bd5d8fb505f8
[ "MIT" ]
9
2021-11-07T02:26:13.000Z
2022-03-05T09:49:35.000Z
crazyswarm2/launch/teleop_launch.py
akmaralAW/crazyswarm2
f5bbe893eacd860b5d712a4beaf8bd5d8fb505f8
[ "MIT" ]
13
2021-11-05T18:20:24.000Z
2022-03-02T12:53:52.000Z
crazyswarm2/launch/teleop_launch.py
akmaralAW/crazyswarm2
f5bbe893eacd860b5d712a4beaf8bd5d8fb505f8
[ "MIT" ]
2
2021-11-08T19:25:28.000Z
2021-12-06T16:45:48.000Z
from launch import LaunchDescription from launch_ros.actions import Node def generate_launch_description(): return LaunchDescription([ Node( package='crazyswarm2', executable='teleop', name='teleop' ), Node( package='joy', executab...
23.772727
44
0.537285
1122df2a03147df4aa8af8ed67432e671cd4d20b
929
py
Python
CursoEmVideo/Mundo2_EstruturasDeControle/desafio065.py
jacksontenorio8/python
a484f019960faa5aa29177eff44a1bb1e3f3b9d0
[ "MIT" ]
null
null
null
CursoEmVideo/Mundo2_EstruturasDeControle/desafio065.py
jacksontenorio8/python
a484f019960faa5aa29177eff44a1bb1e3f3b9d0
[ "MIT" ]
null
null
null
CursoEmVideo/Mundo2_EstruturasDeControle/desafio065.py
jacksontenorio8/python
a484f019960faa5aa29177eff44a1bb1e3f3b9d0
[ "MIT" ]
null
null
null
''' @jacksontenorio8 Crie um programa que leia vários números inteiros pelo teclado. No final da execução, mostre a média entre todos os valores e qual foi o maior e o menor valores lidos. O programa deve perguntar ao usuário se ele quer ou não continuar a digitar valores. ''' resposta = 'S' soma = quantidade = media ...
37.16
148
0.666308
73ed6cbb71d0b484f24a640d2838c10c12dda6c9
7,406
py
Python
dev/pylint_check.py
rw1nkler/vtr-verilog-to-routing
74c8dbe1b3aca45c570f79feca0f4b3062e51b6a
[ "MIT" ]
null
null
null
dev/pylint_check.py
rw1nkler/vtr-verilog-to-routing
74c8dbe1b3aca45c570f79feca0f4b3062e51b6a
[ "MIT" ]
null
null
null
dev/pylint_check.py
rw1nkler/vtr-verilog-to-routing
74c8dbe1b3aca45c570f79feca0f4b3062e51b6a
[ "MIT" ]
1
2020-07-22T08:11:40.000Z
2020-07-22T08:11:40.000Z
#!/usr/bin/python3 """ This script runs pylint on all of the paths specified by 'paths_to_lint'. It prints the output of pylint for each path. The returncode is the number of files that fail pylint. """ import pathlib import sys import subprocess import argparse repo_path = pathlib.Path(__file__).parent.parent.abso...
37.03
89
0.625844
9ce92af3e911484e4dbd57cc3e1b14537daec916
9,906
py
Python
python/GafferUI/ColorChooser.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
561
2016-10-18T04:30:48.000Z
2022-03-30T06:52:04.000Z
python/GafferUI/ColorChooser.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
1,828
2016-10-14T19:01:46.000Z
2022-03-30T16:07:19.000Z
python/GafferUI/ColorChooser.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
120
2016-10-18T15:19:13.000Z
2021-12-20T16:28:23.000Z
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
35.505376
137
0.705734
81ceda09dda34bb61429a658769b1c0f4859dc73
1,475
py
Python
application/flicket/views/history.py
juangom/flicket
56be865bbd715655da4eb4107294effc8a76709c
[ "MIT" ]
null
null
null
application/flicket/views/history.py
juangom/flicket
56be865bbd715655da4eb4107294effc8a76709c
[ "MIT" ]
null
null
null
application/flicket/views/history.py
juangom/flicket
56be865bbd715655da4eb4107294effc8a76709c
[ "MIT" ]
null
null
null
#! usr/bin/python3 # -*- coding: utf-8 -*- # # Flicket - copyright Paul Bourne: evereux@gmail.com from flask import render_template, url_for from flask_babel import gettext from flask_login import login_required from application import app, flicket_bp from application.flicket.models.flicket_models import FlicketHisto...
30.729167
99
0.729492
f56b4d03abea2e4d94f6e59ce54b4a3de5fa58ca
14,090
py
Python
lib/tests/test_transaction.py
ray-learn/electrum-dash
3d2b605cc358592b6e7039481104a7a50c51d4e8
[ "MIT" ]
null
null
null
lib/tests/test_transaction.py
ray-learn/electrum-dash
3d2b605cc358592b6e7039481104a7a50c51d4e8
[ "MIT" ]
null
null
null
lib/tests/test_transaction.py
ray-learn/electrum-dash
3d2b605cc358592b6e7039481104a7a50c51d4e8
[ "MIT" ]
null
null
null
import unittest from lib import transaction from lib.bitcoin import TYPE_ADDRESS from lib.keystore import xpubkey_to_address from lib.util import bh2u, bfh unsigned_blob = '01000000012a5c9a94fcde98f5581cd00162c60a13936ceb75389ea65bf38633b424eb4031000000005701ff4c53ff0488b21e03ef2afea18000000089689bff23e1e7fb2f161daa3...
62.622222
535
0.787935
92543c102b29da163c80ab76e4cfb18836472e06
20,647
py
Python
meas/VECSELSetup.py
stefantkeller/VECSELsetup
c1740e170b54be40f7315808e451c0731a5d7f3b
[ "MIT" ]
null
null
null
meas/VECSELSetup.py
stefantkeller/VECSELsetup
c1740e170b54be40f7315808e451c0731a5d7f3b
[ "MIT" ]
null
null
null
meas/VECSELSetup.py
stefantkeller/VECSELsetup
c1740e170b54be40f7315808e451c0731a5d7f3b
[ "MIT" ]
null
null
null
#! /usr/bin/python2.7 # -*- coding: utf-8 -*- ''' Note: The objects defined in this file talk with actual hardware. If you are testing a measurement routine, whether it works in principle, you do NOT want to import this module. In that case, import 'VECSELSetupFake' instead. It provides you with some mocks, ...
46.087054
165
0.6368
319fee2009b78b5a9322d592f03bce777ef91de1
1,977
py
Python
components/presto/query/src/program.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/presto/query/src/program.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/presto/query/src/program.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
26.013158
76
0.674254
bafc0c554f707c9d1f0aba12411100875fdb17b9
19,762
py
Python
spyder/plugins/console/widgets/main_widget.py
mehrdad-shokri/spyder
3bf92535cc52b030a4a2a089fc904f4cc835be5c
[ "MIT" ]
null
null
null
spyder/plugins/console/widgets/main_widget.py
mehrdad-shokri/spyder
3bf92535cc52b030a4a2a089fc904f4cc835be5c
[ "MIT" ]
null
null
null
spyder/plugins/console/widgets/main_widget.py
mehrdad-shokri/spyder
3bf92535cc52b030a4a2a089fc904f4cc835be5c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Main Console widget. """ # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 # Standard library imports import loggi...
31.977346
79
0.586226
d9eb5a7787db50d7b723bf2048c4ae363ea8ac25
6,206
py
Python
utils/create_dataset_multiplechoice.py
nlpunibo/Qustion-Answering-Squad-extension
59f8c3a7965212dd01e21e1bc907a3b805e34aff
[ "MIT" ]
null
null
null
utils/create_dataset_multiplechoice.py
nlpunibo/Qustion-Answering-Squad-extension
59f8c3a7965212dd01e21e1bc907a3b805e34aff
[ "MIT" ]
null
null
null
utils/create_dataset_multiplechoice.py
nlpunibo/Qustion-Answering-Squad-extension
59f8c3a7965212dd01e21e1bc907a3b805e34aff
[ "MIT" ]
null
null
null
import argparse import pandas as pd from utils.utils import * from models.models import * from pathlib import Path from datasets import load_dataset from tqdm import tqdm from transformers import AutoTokenizer, TrainingArguments, Trainer def main(): parser = argparse.ArgumentParser(description='Argumen...
48.484375
168
0.711247
af4ba4e220dfe67301bb7f9bc65c8c2c3383ca27
1,610
py
Python
baccoapp/mysandwich/migrations/0001_initial.py
msienkiewicz7/baccoapp
d647ca205fdf06fe57fda7b6db164ae7d3387dad
[ "MIT" ]
null
null
null
baccoapp/mysandwich/migrations/0001_initial.py
msienkiewicz7/baccoapp
d647ca205fdf06fe57fda7b6db164ae7d3387dad
[ "MIT" ]
null
null
null
baccoapp/mysandwich/migrations/0001_initial.py
msienkiewicz7/baccoapp
d647ca205fdf06fe57fda7b6db164ae7d3387dad
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-06-14 16:27 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Ingredient', fields=[ ('id', models.AutoField...
41.282051
206
0.567081
3a2dde16596b04d583cb14b7058dc6d93c63a429
305
py
Python
tasks/read_csv_file.py
Adamage/python-training
dd58868420656dc575c4a32304028bdd0215f415
[ "Apache-2.0" ]
2
2018-09-06T15:29:25.000Z
2019-09-18T08:59:24.000Z
tasks/read_csv_file.py
Adamage/python-training
dd58868420656dc575c4a32304028bdd0215f415
[ "Apache-2.0" ]
1
2017-09-13T17:31:43.000Z
2021-03-15T14:59:50.000Z
tasks/read_csv_file.py
Adamage/python-training
dd58868420656dc575c4a32304028bdd0215f415
[ "Apache-2.0" ]
null
null
null
with open('example.csv') as file: headers = file.readline().replace("\n","").split(",") data = [] for line in file: data.append(line.replace("\n","").split(",")) for record in data: record_dictionary = {k:v for k,v in zip(headers,record)} print(record_dictionary)
30.5
64
0.586885
6a3701a4568bf0c34cdbda146f2705b8611c34e3
775
py
Python
vtp/admin.py
CzechInvest/ciis
c6102598f564a717472e5e31e7eb894bba2c8104
[ "MIT" ]
1
2019-05-26T22:24:01.000Z
2019-05-26T22:24:01.000Z
vtp/admin.py
CzechInvest/ciis
c6102598f564a717472e5e31e7eb894bba2c8104
[ "MIT" ]
6
2019-01-22T14:53:43.000Z
2020-09-22T16:20:28.000Z
vtp/admin.py
CzechInvest/ciis
c6102598f564a717472e5e31e7eb894bba2c8104
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import VtpType, Service, Vtp from leaflet.admin import LeafletGeoAdmin, LeafletGeoAdminMixin from cigeo.admin import ArealFieldAdmin class VtpAdmin(ArealFieldAdmin, LeafletGeoAdmin): list_display = ( "name", "my_type", "my_services", "url") change_lis...
28.703704
63
0.703226
76496ba1d10857a138c998d2c7770c8581d3cfc1
680
py
Python
bad_pickle.py
ProjectG77/pv080_test_py
93a5cb6da555fe5e3fcc82e251b3000a72ac5295
[ "MIT" ]
null
null
null
bad_pickle.py
ProjectG77/pv080_test_py
93a5cb6da555fe5e3fcc82e251b3000a72ac5295
[ "MIT" ]
null
null
null
bad_pickle.py
ProjectG77/pv080_test_py
93a5cb6da555fe5e3fcc82e251b3000a72ac5295
[ "MIT" ]
null
null
null
# contains bunch of buggy examples # taken from https://hackernoon.com/10-common-security-gotchas-in-python-and-how-to-avoid-them-e19fbe265e03 import cPickle import subprocess import base64 import subprocess # Input injection def transcode_file(request, filename): command = 'ffmpeg -i "{source}" output_file.mpg'....
23.448276
107
0.736765
4eab20a8be939ab1a4bc146e735f583eb03cde18
1,523
py
Python
src/robotide/lib/robot/utils/compress.py
veryl-technologies/t24-tests-ide
16cd803895916a785c0e1fec3f71f9388c21edc9
[ "ECL-2.0", "Apache-2.0" ]
8
2015-09-10T07:45:58.000Z
2020-04-13T06:25:06.000Z
src/robotide/lib/robot/utils/compress.py
veryl-technologies/t24-tests-ide
16cd803895916a785c0e1fec3f71f9388c21edc9
[ "ECL-2.0", "Apache-2.0" ]
1
2020-08-03T10:01:06.000Z
2020-08-03T10:01:06.000Z
src/robotide/lib/robot/utils/compress.py
veryl-technologies/t24-tests-ide
16cd803895916a785c0e1fec3f71f9388c21edc9
[ "ECL-2.0", "Apache-2.0" ]
10
2015-10-06T13:29:50.000Z
2021-05-31T01:04:01.000Z
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # 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...
29.862745
75
0.688772
2ddd03343c4cc5c7a0c7e14970fbf03cd3fd21b9
914
py
Python
catalog/reference_book/urls.py
Imbafar/catalog
f4d77f55ad2608ffda518a8b9c8edb82ea3f1c96
[ "BSD-3-Clause" ]
null
null
null
catalog/reference_book/urls.py
Imbafar/catalog
f4d77f55ad2608ffda518a8b9c8edb82ea3f1c96
[ "BSD-3-Clause" ]
null
null
null
catalog/reference_book/urls.py
Imbafar/catalog
f4d77f55ad2608ffda518a8b9c8edb82ea3f1c96
[ "BSD-3-Clause" ]
null
null
null
from django.urls import path from . import views app_name = "reference_book" urlpatterns = [ path( "", views.index, name="index", ), path( "reference_book/<int:reference_book_id>/", views.reference_book_detail, name="reference_book_detail", ), path(...
20.772727
55
0.570022
fa16e7878927ec2815695c5e46729a04a4c66676
1,597
py
Python
customs/strategies/base_strategy.py
gijswobben/customs
72c0d071fe35ed84eb6d6371eb651edcd13a1044
[ "MIT" ]
null
null
null
customs/strategies/base_strategy.py
gijswobben/customs
72c0d071fe35ed84eb6d6371eb651edcd13a1044
[ "MIT" ]
null
null
null
customs/strategies/base_strategy.py
gijswobben/customs
72c0d071fe35ed84eb6d6371eb651edcd13a1044
[ "MIT" ]
null
null
null
import warnings from abc import ABC, abstractmethod from typing import Any, Dict, Optional, Union from flask.app import Flask from flask import Request as FlaskRequest from werkzeug.wrappers import Request class BaseStrategy(ABC): def __init__( self, ) -> None: # Register this strategy as ...
26.180328
85
0.6268
7bb749fdc67863b5fae622015c53444b74fa3ef0
599
py
Python
azure_ad_auth/__init__.py
wintercircle/django-azure-ad-auth
14fb385fa73695e0d54b8bdc70b8afa37c614821
[ "BSD-3-Clause" ]
null
null
null
azure_ad_auth/__init__.py
wintercircle/django-azure-ad-auth
14fb385fa73695e0d54b8bdc70b8afa37c614821
[ "BSD-3-Clause" ]
null
null
null
azure_ad_auth/__init__.py
wintercircle/django-azure-ad-auth
14fb385fa73695e0d54b8bdc70b8afa37c614821
[ "BSD-3-Clause" ]
null
null
null
__version_info__ = { 'major': 1, 'minor': 5, 'micro': 4, 'releaselevel': 'final', 'serial': 11 } def get_version(short=False): assert __version_info__['releaselevel'] in ('alpha', 'beta', 'final') vers = ["%(major)i.%(minor)i" % __version_info__, ] if __version_info__['micro'...
31.526316
96
0.609349
b350f4c44732fb45f52192fd4ec2635b94ad1fcc
2,517
py
Python
tests/testing/theory/test_legaldrinking.py
AndrewQuijano/w4156-lecture-code
fcd2ae27c80cc40dc156b9ca42966fb11073fda8
[ "Apache-2.0" ]
5
2018-01-25T06:15:24.000Z
2018-05-19T17:14:18.000Z
tests/testing/theory/test_legaldrinking.py
AndrewQuijano/w4156-lecture-code
fcd2ae27c80cc40dc156b9ca42966fb11073fda8
[ "Apache-2.0" ]
1
2018-02-06T04:34:11.000Z
2018-02-06T04:34:11.000Z
tests/testing/theory/test_legaldrinking.py
AndrewQuijano/w4156-lecture-code
fcd2ae27c80cc40dc156b9ca42966fb11073fda8
[ "Apache-2.0" ]
51
2018-02-04T00:19:35.000Z
2018-03-06T20:52:23.000Z
import unittest from lectures.testing.theory.nationality import Nationality from lectures.testing.theory.legal_drinking_0bug import LegalToDrinkCalculatorBugFreeIHope from lectures.testing.theory.legal_drinking_1bug import LegalToDrinkCalculatorWithOneBug from lectures.testing.theory.legal_drinking_2bug import LegalToD...
38.723077
118
0.716329
8f905d66f331b920b938dc83d5109a4bcc9fa86d
620
py
Python
setup.py
choki0715/lecture
2904b20387925c7f33db9ecd85fc71adf2750f3d
[ "MIT" ]
4
2018-09-12T04:49:47.000Z
2020-07-14T00:12:09.000Z
setup.py
choki0715/lecture
2904b20387925c7f33db9ecd85fc71adf2750f3d
[ "MIT" ]
null
null
null
setup.py
choki0715/lecture
2904b20387925c7f33db9ecd85fc71adf2750f3d
[ "MIT" ]
7
2018-09-10T09:28:43.000Z
2019-12-20T01:46:25.000Z
import subprocess install_cmd_list = [ 'echo "passwd" | sudo -S apt -y install virtualenv git python3-tk', 'virtualenv -p python3 /home/user/multicamp', '/home/user/multicamp/bin/pip3 install --upgrade tensorflow==1.14 matplotlib ipykernel jupyter music21 gym', '/home/user/multicamp/bin/python3 -m ipyk...
44.285714
112
0.722581
a01836d12bd9fab41be16ee6d318addd37e3967f
33,352
py
Python
source/gui/rview/profileframe.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
source/gui/rview/profileframe.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
1
2022-03-12T12:19:59.000Z
2022-03-12T12:19:59.000Z
source/gui/rview/profileframe.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import wx import rmodel import util import locale import wxmpl import numpy import matplotlib import wx.lib.agw.floatspin as FS from profileframeutils import Data, GenericPlotItemPanel, MyNotebook from profileframeutils import PlotItemPanelAll from util import kindOfItem, axesDef import copy ...
40.722833
79
0.532712
c488103f0df8c94d2732af26d966a7a3a8c1a71f
5,628
py
Python
dev/find_missing_docs_links.py
HaoXiangQI/cortex
394f369260072609e42833b180c01a0545be6de7
[ "Apache-2.0" ]
null
null
null
dev/find_missing_docs_links.py
HaoXiangQI/cortex
394f369260072609e42833b180c01a0545be6de7
[ "Apache-2.0" ]
null
null
null
dev/find_missing_docs_links.py
HaoXiangQI/cortex
394f369260072609e42833b180c01a0545be6de7
[ "Apache-2.0" ]
1
2021-05-25T03:49:14.000Z
2021-05-25T03:49:14.000Z
# Copyright 2020 Cortex Labs, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
31.441341
98
0.598792
3235386d341fc79419015b1149ed8c54476ff215
3,657
py
Python
scripts/greaseweazle/tools/info.py
bocke/Greaseweazle
cd1a3ccf53836faaf3a28318a4af02ede9bd1b7b
[ "Unlicense" ]
null
null
null
scripts/greaseweazle/tools/info.py
bocke/Greaseweazle
cd1a3ccf53836faaf3a28318a4af02ede9bd1b7b
[ "Unlicense" ]
null
null
null
scripts/greaseweazle/tools/info.py
bocke/Greaseweazle
cd1a3ccf53836faaf3a28318a4af02ede9bd1b7b
[ "Unlicense" ]
null
null
null
# greaseweazle/tools/info.py # # Greaseweazle control script: Displat info about tools, firmware, and drive. # # Written & released by Keir Fraser <keir.xen@gmail.com> # # This is free and unencumbered software released into the public domain. # See the file COPYING for more details, or visit <http://unlicense.org>. d...
31.25641
78
0.596937
017718e3902e820e976a74ef906d07e4f46314c1
1,075
py
Python
seqtools/basics.py
jason-weirather/py-seq-tools
f642c2c73ffef2acc83656a78059a476fc734ca1
[ "Apache-2.0" ]
1
2018-01-08T15:18:22.000Z
2018-01-08T15:18:22.000Z
seqtools/basics.py
jason-weirather/py-seq-tools
f642c2c73ffef2acc83656a78059a476fc734ca1
[ "Apache-2.0" ]
1
2017-09-08T15:02:31.000Z
2017-09-08T15:02:31.000Z
seqtools/basics.py
jason-weirather/py-seq-tools
f642c2c73ffef2acc83656a78059a476fc734ca1
[ "Apache-2.0" ]
null
null
null
"""Put generally useful things here""" import re, sys from cStringIO import StringIO def is_uuid4(instr): """A validator to confirm a string is indeed a UUID4 :param instr: input string that may be uuid4 :type instr: String :return: true if it is in UUID4 format :rtype: bool """ v = instr.strip().replac...
27.564103
103
0.668837
dcbbedfab5b0f03d02251875e1f27bb766d42f51
983
py
Python
example/example.py
quil-lang/sbcl-librarian
51df62ea1cda032aeae15b44b1983cd70b4234ee
[ "MIT" ]
22
2021-11-11T23:23:50.000Z
2022-03-28T05:44:59.000Z
example/example.py
quil-lang/sbcl-librarian
51df62ea1cda032aeae15b44b1983cd70b4234ee
[ "MIT" ]
19
2021-11-12T03:51:06.000Z
2022-03-31T20:06:26.000Z
example/example.py
quil-lang/sbcl-librarian
51df62ea1cda032aeae15b44b1983cd70b4234ee
[ "MIT" ]
7
2021-11-12T02:22:06.000Z
2022-03-16T13:57:43.000Z
from ctypes import * import libcalc import sys def die(msg): print(msg) exit(1) if __name__ == '__main__': while True: print("> ", end='') try: s = input() except EOFError: sys.exit(0) expr = libcalc.expr_type() if (libcalc.calc_parse(s.enco...
25.205128
79
0.574771
bffdae3c81375b829efd636ec763df9e9d471da9
1,200
py
Python
Classification on Adults Dataset/preprocess.py
cxy1997/SJTU-CS245-Data-Science
882e3ae0b6b5595e34a59cca890ba8388ff2cfd0
[ "MIT" ]
1
2020-03-04T02:41:25.000Z
2020-03-04T02:41:25.000Z
Classification on Adults Dataset/preprocess.py
cxy1997/SJTU-CS245-Data-Science
882e3ae0b6b5595e34a59cca890ba8388ff2cfd0
[ "MIT" ]
null
null
null
Classification on Adults Dataset/preprocess.py
cxy1997/SJTU-CS245-Data-Science
882e3ae0b6b5595e34a59cca890ba8388ff2cfd0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import pandas as pd import matplotlib.pyplot as plt import sklearn.preprocessing as preprocessing NORM = True # 数据预处理 def encode(df): result = np.zeros((16281, 108)) idx = 0 for column in df.columns: if column != '收入': if df.dtyp...
31.578947
149
0.5675
ca982b9c6a32fd7bfa8520cddd7d854983e6dc8c
168,365
py
Python
tests/queries/tests.py
Mr-Destructive/django
d3a64bea51676fcf8a0ae593cf7b103939e12c87
[ "BSD-3-Clause", "0BSD" ]
5
2021-11-08T13:23:05.000Z
2022-01-08T09:14:23.000Z
tests/queries/tests.py
Mr-Destructive/django
d3a64bea51676fcf8a0ae593cf7b103939e12c87
[ "BSD-3-Clause", "0BSD" ]
3
2020-01-21T17:58:28.000Z
2022-03-30T14:16:15.000Z
tests/queries/tests.py
Mr-Destructive/django
d3a64bea51676fcf8a0ae593cf7b103939e12c87
[ "BSD-3-Clause", "0BSD" ]
1
2021-04-15T01:05:57.000Z
2021-04-15T01:05:57.000Z
import datetime import pickle import sys import unittest from operator import attrgetter from threading import Lock from django.core.exceptions import EmptyResultSet, FieldError from django.db import DEFAULT_DB_ALIAS, connection from django.db.models import Count, Exists, F, Max, OuterRef, Q from django.db.models.expr...
42.112306
119
0.631153
6b4cf1fe4a7ecfa0f2937c7b72372bf7fdab0558
2,415
py
Python
webserver/__init__.py
danshardware/pi-env-monitor
f16d5109e105b887e86beb37eca45cadd2021aa4
[ "MIT" ]
null
null
null
webserver/__init__.py
danshardware/pi-env-monitor
f16d5109e105b887e86beb37eca45cadd2021aa4
[ "MIT" ]
null
null
null
webserver/__init__.py
danshardware/pi-env-monitor
f16d5109e105b887e86beb37eca45cadd2021aa4
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from sqlalchemy.exc import OperationalError import os, secrets, sys from hashlib import sha256 # init SQLAlchemy so we can use it later in our models db = SQLAlchemy() def create_secret(logger): secret = secrets....
34.014085
144
0.677019
c6b6e82caa9ed5eb1f641c56e61322509773328a
14,216
py
Python
smacha_ros/test/smacha_generated_py/smacha_test_examples/callbacks_generate_output.py
ReconCell/smacha
253215a35d2d091bf50c28c1ba876209b82d2400
[ "BSD-3-Clause" ]
16
2019-04-16T07:44:30.000Z
2022-03-10T08:04:45.000Z
smacha_ros/test/smacha_generated_py/smacha_test_examples/callbacks_generate_output.py
ReconCell/smacha
253215a35d2d091bf50c28c1ba876209b82d2400
[ "BSD-3-Clause" ]
2
2019-07-18T09:11:00.000Z
2019-09-26T10:21:26.000Z
smacha_ros/test/smacha_generated_py/smacha_test_examples/callbacks_generate_output.py
ReconCell/smacha
253215a35d2d091bf50c28c1ba876209b82d2400
[ "BSD-3-Clause" ]
2
2019-08-21T20:14:54.000Z
2019-09-19T13:26:34.000Z
#!/usr/bin/env python import roslib import rospy import smach import smach_ros import random # Define normal callback for 'animals' output key @smach.cb_interface(input_keys=['animals'], output_keys=['animals'], outcomes=['succeeded']) def foo_animals_cb(userdata): use...
38.630435
523
0.666854
45301fac1df819682e52e185eb6f20f12faaa569
18,899
py
Python
custom_components/xiaomi_cloud_map_extractor/camera.py
dmr1987/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
a1a636db9e3bba2479c3760ec70a3b07dc996e02
[ "MIT" ]
null
null
null
custom_components/xiaomi_cloud_map_extractor/camera.py
dmr1987/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
a1a636db9e3bba2479c3760ec70a3b07dc996e02
[ "MIT" ]
null
null
null
custom_components/xiaomi_cloud_map_extractor/camera.py
dmr1987/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
a1a636db9e3bba2479c3760ec70a3b07dc996e02
[ "MIT" ]
null
null
null
import io import logging import time from datetime import timedelta from enum import Enum from typing import Optional try: from miio import RoborockVacuum, DeviceException except ImportError: from miio import Vacuum as RoborockVacuum, DeviceException import PIL.Image as Image import voluptuous as vol from home...
46.095122
119
0.66321
a44039d8ce3912d2f8fc07e24c678141a7fbe7df
1,317
py
Python
aiohttp_apispec/middlewares.py
mikuh/aiohttp-apispec
8fc7622deec0174e6773e4060ab46f4f95c805c9
[ "MIT" ]
null
null
null
aiohttp_apispec/middlewares.py
mikuh/aiohttp-apispec
8fc7622deec0174e6773e4060ab46f4f95c805c9
[ "MIT" ]
null
null
null
aiohttp_apispec/middlewares.py
mikuh/aiohttp-apispec
8fc7622deec0174e6773e4060ab46f4f95c805c9
[ "MIT" ]
null
null
null
from aiohttp import web from webargs.aiohttpparser import parser from .utils import issubclass_py37fix @web.middleware async def validation_middleware(request: web.Request, handler) -> web.Response: """ Validation middleware for aiohttp web app Usage: .. code-block:: python app.middlewares...
29.266667
79
0.655277
56e3d85b40d2935c185644262fb1510e63e163c4
1,565
py
Python
personal/models.py
Belie06Loryn/MyGallery
4a0c4f5c695ef69c8ee920237be654c36efc09de
[ "Unlicense" ]
null
null
null
personal/models.py
Belie06Loryn/MyGallery
4a0c4f5c695ef69c8ee920237be654c36efc09de
[ "Unlicense" ]
3
2020-02-12T03:16:00.000Z
2021-06-10T22:04:14.000Z
personal/models.py
Belie06Loryn/MyGallery
4a0c4f5c695ef69c8ee920237be654c36efc09de
[ "Unlicense" ]
null
null
null
from django.db import models import datetime as dt class Category(models.Model): cate = models.CharField(max_length =30) def save_cate(self): self.save() def dele_cate(self): self.delete() def __str__(self): return self.cate class Location(models.Model): location...
24.076923
70
0.625559
718455f4106f3178576e6216074bd1e1ffd6867a
1,817
py
Python
GPSController.py
alan412/GeekPi
4333ac19efdd230ae2ff8367a3b6f23639250462
[ "MIT" ]
null
null
null
GPSController.py
alan412/GeekPi
4333ac19efdd230ae2ff8367a3b6f23639250462
[ "MIT" ]
null
null
null
GPSController.py
alan412/GeekPi
4333ac19efdd230ae2ff8367a3b6f23639250462
[ "MIT" ]
null
null
null
from gps import * import time import threading import math class GpsController(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.gpsd = gps(mode=WATCH_ENABLE) #starting the stream of info self.running = False def run(self): self.running = True ...
25.591549
71
0.564117
81377bb559733d6523d41806be02209655d5288b
1,391
py
Python
tools/c7n_gcp/c7n_gcp/entry.py
yuriydee/cloud-custodian
172267dbf2d1cc18ce21994cc747cad12a62564b
[ "Apache-2.0" ]
null
null
null
tools/c7n_gcp/c7n_gcp/entry.py
yuriydee/cloud-custodian
172267dbf2d1cc18ce21994cc747cad12a62564b
[ "Apache-2.0" ]
null
null
null
tools/c7n_gcp/c7n_gcp/entry.py
yuriydee/cloud-custodian
172267dbf2d1cc18ce21994cc747cad12a62564b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
32.348837
83
0.813803
a369ba5bca09b2ade8917d332a0b9de4eee8de30
12,873
py
Python
userbot/modules/direct_links.py
Rama-Fps/rama
e41db39a3db98a47f7aca1d404a7b1c87edfd8b4
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/direct_links.py
Rama-Fps/rama
e41db39a3db98a47f7aca1d404a7b1c87edfd8b4
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/direct_links.py
Rama-Fps/rama
e41db39a3db98a47f7aca1d404a7b1c87edfd8b4
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module containing various sites direct links generators""" from subprocess import PIPE, Popen import re im...
34.236702
91
0.574225
732ad0dfe6e7089832beb01c637675ca162227f6
2,231
py
Python
graphql_compiler/tests/integration_tests/integration_backend_config.py
justinaustin/graphql-compiler
4e68d592fc97855ca043dc20bdf59be4298647ab
[ "Apache-2.0" ]
null
null
null
graphql_compiler/tests/integration_tests/integration_backend_config.py
justinaustin/graphql-compiler
4e68d592fc97855ca043dc20bdf59be4298647ab
[ "Apache-2.0" ]
null
null
null
graphql_compiler/tests/integration_tests/integration_backend_config.py
justinaustin/graphql-compiler
4e68d592fc97855ca043dc20bdf59be4298647ab
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-present Kensho Technologies, LLC. from collections import namedtuple from six.moves.urllib.parse import quote_plus from .. import test_backend DEFAULT_ROOT_PASSWORD = "root" # nosec SQL_BACKENDS = { test_backend.POSTGRES, test_backend.MYSQL, test_backend.MARIADB, test_backend.MSSQ...
29.355263
99
0.693411
11f8904b17b36bb939353a0df4d4c5030aa09952
13,685
py
Python
l2tdevtools/dependency_writers/setup.py
log2timeline/l2tdevtools
6f328a0fe72f243ff6e454397ea405c65bae9424
[ "Apache-2.0" ]
6
2015-08-07T12:53:10.000Z
2022-02-18T02:59:51.000Z
l2tdevtools/dependency_writers/setup.py
joachimmetz/l2tdevtools
45048601cebfc73d1f35c5dcdd8e913769ca660f
[ "Apache-2.0" ]
700
2015-02-23T06:55:06.000Z
2022-03-12T16:43:50.000Z
l2tdevtools/dependency_writers/setup.py
joachimmetz/l2tdevtools
45048601cebfc73d1f35c5dcdd8e913769ca660f
[ "Apache-2.0" ]
21
2015-03-28T10:29:23.000Z
2021-08-12T04:56:18.000Z
# -*- coding: utf-8 -*- """Writer for setup configuration and script files.""" import glob import io import os import textwrap from l2tdevtools.dependency_writers import interface class SetupCfgWriter(interface.DependencyFileWriter): """Setup configuration file writer.""" PATH = 'setup.cfg' _DOC_FILES = ('A...
34.910714
80
0.690829
0f47cad4e6dba73f381706d7a2d2c8aa833f96b5
4,917
py
Python
third_party/tests/BlackParrot/external/basejump_stl/hard/tsmc_40/bsg_misc/bsg_mul/bsg_comp42_gen.py
bsp13/Surelog
3a04f7f59791390c69f1e3b69609db4ede7668b9
[ "Apache-2.0" ]
3
2021-05-12T21:57:55.000Z
2021-07-29T19:56:04.000Z
third_party/tests/BlackParrot/external/basejump_stl/hard/tsmc_40/bsg_misc/bsg_mul/bsg_comp42_gen.py
bsp13/Surelog
3a04f7f59791390c69f1e3b69609db4ede7668b9
[ "Apache-2.0" ]
2
2020-05-13T06:06:49.000Z
2020-05-15T10:49:11.000Z
third_party/tests/BlackParrot/external/basejump_stl/hard/tsmc_40/bsg_misc/bsg_mul/bsg_comp42_gen.py
bsp13/Surelog
3a04f7f59791390c69f1e3b69609db4ede7668b9
[ "Apache-2.0" ]
2
2020-05-01T08:33:19.000Z
2021-07-29T19:56:12.000Z
#!/usr/bin/python # # bsg_comp42_gen < number of rows of 4:2 compressors > # # # # This script generates sections of 42: compressors for # multipliers. (See Computer Arthmetic Google Doc.) # # # # import sys; def emit_module_header (name, input_args, output_args) : print "module " + name + " (", my_list = [] ...
30.351852
145
0.517999
0cd3c76b3b0d8abe62060fc7e39556b16496afe6
304
py
Python
2017/04/bidi-bidi-refugee-camp-overview-20170313/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2017/04/bidi-bidi-refugee-camp-overview-20170313/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2017/04/bidi-bidi-refugee-camp-overview-20170313/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1njqSO2c0DSdSy6FRZN0iRGTUX424B-u2DkyRt-93RM8' USE_ASSETS = True # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
21.714286
77
0.8125
2a0b0ae144728342a6eb718da94bef2e3f94e519
872
py
Python
gym/envs/robotics/fetch/pick_and_place.py
LBJ-Wade/gym
c0286e25265582ae9b4ef89942780588ae0f0394
[ "Python-2.0", "OLDAP-2.7" ]
32
2018-08-26T15:39:07.000Z
2021-12-09T03:53:49.000Z
gym/envs/robotics/fetch/pick_and_place.py
LBJ-Wade/gym
c0286e25265582ae9b4ef89942780588ae0f0394
[ "Python-2.0", "OLDAP-2.7" ]
1
2020-09-08T02:19:05.000Z
2020-11-02T03:43:29.000Z
gym/envs/robotics/fetch/pick_and_place.py
LBJ-Wade/gym
c0286e25265582ae9b4ef89942780588ae0f0394
[ "Python-2.0", "OLDAP-2.7" ]
8
2018-11-19T19:51:43.000Z
2021-12-07T20:08:52.000Z
from gym import utils from gym.envs.robotics import fetch_env class FetchPickAndPlaceEnv(fetch_env.FetchEnv, utils.EzPickle): def __init__(self, reward_type='sparse'): initial_qpos = { 'robot0:slide0': 0.405, 'robot0:slide1': 0.48, 'robot0:slide2': 0.0, 'tab...
39.636364
98
0.613532
ef6549c6ea2d3717f09974c9175cfd35fc120fb0
347
py
Python
dnsmanager/views.py
erdnaxe/django-dnsmanager
5c00c8f6ca98678d5e8f02243622419f602d4daa
[ "BSD-3-Clause" ]
8
2019-12-21T10:07:49.000Z
2021-08-27T23:51:54.000Z
dnsmanager/views.py
constellation-project/django-dnsmanager
5c00c8f6ca98678d5e8f02243622419f602d4daa
[ "BSD-3-Clause" ]
6
2019-12-21T09:45:14.000Z
2021-03-27T10:14:28.000Z
dnsmanager/views.py
constellation-project/django-dnsmanager
5c00c8f6ca98678d5e8f02243622419f602d4daa
[ "BSD-3-Clause" ]
3
2020-07-19T23:15:53.000Z
2021-03-26T19:00:20.000Z
from django.contrib.auth.mixins import PermissionRequiredMixin from django.views.generic.detail import DetailView from .models import Zone class ZoneDetailView(PermissionRequiredMixin, DetailView): """ This view generates a zone file """ permission_required = ('dnsmanager.view_zone', 'dnsmanager.view...
26.692308
76
0.766571
6b6c82c1482afa96b54acfa35e5431bf0ff37b5c
2,696
py
Python
airflow/operators/latest_only_operator.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
8
2017-04-20T16:15:44.000Z
2020-10-11T13:44:10.000Z
airflow/operators/latest_only_operator.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
219
2017-03-15T18:40:16.000Z
2022-02-28T22:52:43.000Z
airflow/operators/latest_only_operator.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
3
2016-07-14T21:51:10.000Z
2020-10-12T13:26:36.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
39.647059
87
0.704006
2cfe8f5665efc1c5f023cbb1f5554354a7fee5a7
332
py
Python
pajson/example.py
DreeGall/pajson
ff35962feee98f37ada6f10348012945c665297b
[ "MIT" ]
null
null
null
pajson/example.py
DreeGall/pajson
ff35962feee98f37ada6f10348012945c665297b
[ "MIT" ]
null
null
null
pajson/example.py
DreeGall/pajson
ff35962feee98f37ada6f10348012945c665297b
[ "MIT" ]
null
null
null
"""Example of code.""" def hello(name: str) -> str: """Just an greetings example. Args: name (str): Name to greet. Returns: str: greeting message Examples: .. code:: python >>> hello("Roman") 'Hello Roman!' """ return f"Hell...
16.6
35
0.463855
54717be602c0abc4af7a989878b806cc212e6f1f
3,725
py
Python
bokehdash/BokehApps/selection_histogram.py
longtailfinancial/BokehDjango
6e4a014f7e54edcb129ca38b28692bd2e374bdfd
[ "MIT" ]
49
2017-11-08T18:54:19.000Z
2021-11-16T12:34:16.000Z
bokehdash/BokehApps/selection_histogram.py
longtailfinancial/BokehDjango
6e4a014f7e54edcb129ca38b28692bd2e374bdfd
[ "MIT" ]
null
null
null
bokehdash/BokehApps/selection_histogram.py
longtailfinancial/BokehDjango
6e4a014f7e54edcb129ca38b28692bd2e374bdfd
[ "MIT" ]
16
2017-11-14T12:53:51.000Z
2021-08-07T22:48:16.000Z
''' Present a scatter plot with linked histograms on both axes. Use the ``bokeh serve`` command to run the example by executing: bokeh serve selection_histogram.py at your command prompt. Then navigate to the URL http://localhost:5006/selection_histogram in your browser. ''' import numpy as np from bokeh.layo...
39.210526
101
0.70443
c122a15f2ece0b2d3c7db2d611d74b2011b29bce
583
py
Python
django/amazon_price_tracker/core/permissions.py
PiochU19/amazon-price-tracker
93a321d5799ee2b0b02487fea5577698a6da8aa3
[ "MIT" ]
null
null
null
django/amazon_price_tracker/core/permissions.py
PiochU19/amazon-price-tracker
93a321d5799ee2b0b02487fea5577698a6da8aa3
[ "MIT" ]
1
2021-06-10T22:05:12.000Z
2021-06-10T22:05:12.000Z
django/amazon_price_tracker/core/permissions.py
PiochU19/amazon_price_tracker
93a321d5799ee2b0b02487fea5577698a6da8aa3
[ "MIT" ]
1
2022-01-09T03:23:19.000Z
2022-01-09T03:23:19.000Z
from rest_framework.permissions import BasePermission class IsObjectOwner(BasePermission): """ Custom Permission Class Checks if authenticated user is owner of Object """ def has_permission(self, request, view): """ First we need to check if user is authenticated ...
22.423077
61
0.634648
2ca350477bbb3305a4058c400a94b87b7445388d
37,905
py
Python
yt/visualization/fits_image.py
saethlin/yt
992ae71974dca933346e91008c5a50f43a0a350e
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/visualization/fits_image.py
saethlin/yt
992ae71974dca933346e91008c5a50f43a0a350e
[ "BSD-3-Clause-Clear" ]
2
2020-02-10T22:55:35.000Z
2020-02-19T21:01:20.000Z
yt/visualization/fits_image.py
saethlin/yt
992ae71974dca933346e91008c5a50f43a0a350e
[ "BSD-3-Clause-Clear" ]
null
null
null
""" FITSImageData Class """ #----------------------------------------------------------------------------- # Copyright (c) 2013, yt Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #--------------------------...
42.257525
98
0.565361
f51c10b75c2043f6e61e0dbf4006ed5364f7fbcb
925
py
Python
src/auto_backup.py
polmonroig/auto_backup
c484ceb4df27990af0ba8fee6417780cb603150d
[ "MIT" ]
null
null
null
src/auto_backup.py
polmonroig/auto_backup
c484ceb4df27990af0ba8fee6417780cb603150d
[ "MIT" ]
null
null
null
src/auto_backup.py
polmonroig/auto_backup
c484ceb4df27990af0ba8fee6417780cb603150d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from version import __version__ from parser import Parser from database import ProjectDatabase import os import sys def interactive(database): parser = Parser() exe = os.path.dirname(os.path.realpath(__file__)) exe = exe.split('/') init_file = '/' for file in exe: init_fi...
23.125
53
0.662703
aa6dab182a7914b15841b8011da84dbb72bdae19
3,187
py
Python
tests/models/validators/v3_0_0/jsd_f52605b5f6481f6a99ec8a7e8e6.py
oianson/ciscoisesdk
c8fe9d80416048dd0ff2241209c4f78ab78c1a4a
[ "MIT" ]
null
null
null
tests/models/validators/v3_0_0/jsd_f52605b5f6481f6a99ec8a7e8e6.py
oianson/ciscoisesdk
c8fe9d80416048dd0ff2241209c4f78ab78c1a4a
[ "MIT" ]
null
null
null
tests/models/validators/v3_0_0/jsd_f52605b5f6481f6a99ec8a7e8e6.py
oianson/ciscoisesdk
c8fe9d80416048dd0ff2241209c4f78ab78c1a4a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Identity Services Engine getTelemetryInfoById data model. Copyright (c) 2021 Cisco and/or its affiliates. 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 restri...
32.191919
78
0.54534
cb9bcfbbb30db5822b8574bcf9489b251dba37fc
3,120
py
Python
src/idea/idea_start.py
AldrichYang/HelloPython3
de3d3f3cf293980a7e11aaa488a2621035efc599
[ "Apache-2.0" ]
null
null
null
src/idea/idea_start.py
AldrichYang/HelloPython3
de3d3f3cf293980a7e11aaa488a2621035efc599
[ "Apache-2.0" ]
null
null
null
src/idea/idea_start.py
AldrichYang/HelloPython3
de3d3f3cf293980a7e11aaa488a2621035efc599
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import socket import struct import sys import os import time # see com.intellij.idea.SocketLock for the server side of this interface RUN_PATH = u'/Applications/IntelliJ IDEA.app' CONFIG_PATH = u'/Users/user/Library/Preferences/IntelliJIdea2018.1' SYSTEM_PATH = u'/Users/...
28.363636
85
0.546795
7282cd43987729ea642d1583bf120e197cdcc79d
420
py
Python
src/bullet_point/migrations/0006_bulletpoint_sift_risk_score.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
18
2021-05-20T13:20:16.000Z
2022-02-11T02:40:18.000Z
src/bullet_point/migrations/0006_bulletpoint_sift_risk_score.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
109
2021-05-21T20:14:23.000Z
2022-03-31T20:56:10.000Z
src/bullet_point/migrations/0006_bulletpoint_sift_risk_score.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
4
2021-05-17T13:47:53.000Z
2022-02-12T10:48:21.000Z
# Generated by Django 2.2 on 2020-11-07 01:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bullet_point', '0005_bulletpoint_created_location'), ] operations = [ migrations.AddField( model_name='bulletpoint', n...
22.105263
62
0.62619
a3b9a63ea5826bb1960b8ed7c191ae8d57b843c8
7,060
py
Python
backend/apps/easyaudit/tests/test_app/tests.py
bopopescu/Journey
654eb66e0e2df59e916eff4c75b68b183f9b58b5
[ "MIT" ]
41
2019-01-02T09:36:54.000Z
2022-02-20T13:13:05.000Z
backend/apps/easyaudit/tests/test_app/tests.py
bopopescu/Journey
654eb66e0e2df59e916eff4c75b68b183f9b58b5
[ "MIT" ]
15
2019-09-30T05:40:20.000Z
2022-02-17T19:28:41.000Z
backend/apps/easyaudit/tests/test_app/tests.py
bopopescu/Journey
654eb66e0e2df59e916eff4c75b68b183f9b58b5
[ "MIT" ]
23
2019-02-18T10:50:10.000Z
2022-01-06T07:53:18.000Z
# -*- coding: utf-8 -*- import json import re from django.test import TestCase, override_settings from django.urls import reverse from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType import bs4 from test_app.models import TestModel, TestForeignKey, TestM2M from easya...
39.662921
127
0.69051
6ecd936c99217102142dce8b9883e9ea20b6ffad
3,338
py
Python
src/pypevue/examples/objReader1.py
ghjwp7/pypevue
4d2aa82f990242373207c56aa2607a2c20ecb185
[ "MIT" ]
null
null
null
src/pypevue/examples/objReader1.py
ghjwp7/pypevue
4d2aa82f990242373207c56aa2607a2c20ecb185
[ "MIT" ]
null
null
null
src/pypevue/examples/objReader1.py
ghjwp7/pypevue
4d2aa82f990242373207c56aa2607a2c20ecb185
[ "MIT" ]
null
null
null
# -*- mode: python -*- # objReader.py, a plugin to read point and face data from a Wavefront # OBJ file # (a 3D-structures file format) - jiw 9 Oct 2020 # Ref: <https://www.fileformat.info/format/wavefrontobj/egff.htm> # Usage: To incorporate this code into pypevue, in command line # parameters or in an `=P` line of...
43.350649
112
0.560216
2dc97bd65ca13d5602d89ca2614ac84eb9acf05b
1,612
py
Python
mono/save_snapshots.py
EmbeddedPaul166/Camera-Calibration
b68366971b7df715f6a38ac804310ca3754b663e
[ "MIT" ]
null
null
null
mono/save_snapshots.py
EmbeddedPaul166/Camera-Calibration
b68366971b7df715f6a38ac804310ca3754b663e
[ "MIT" ]
null
null
null
mono/save_snapshots.py
EmbeddedPaul166/Camera-Calibration
b68366971b7df715f6a38ac804310ca3754b663e
[ "MIT" ]
null
null
null
import cv2 import time import sys import os def prepare_window(): window_name = "Save snapshots" cv2.namedWindow(window_name, cv2.WINDOW_NORMAL) cv2.resizeWindow(window_name, 1280, 720) cv2.moveWindow(window_name, 0, 0) cv2.setWindowTitle(window_name, "Save snapshots") return window_name def s...
25.1875
306
0.597395
4983f8f4278b37e9a14f021c48e3db015f42da33
11,712
py
Python
django/dispatch/dispatcher.py
mitchelljkotler/django
bdd2d7ff92624f5cf4fc6d212ba82b5d309ee48a
[ "BSD-3-Clause" ]
3
2015-09-26T13:33:07.000Z
2020-03-08T07:34:38.000Z
django/dispatch/dispatcher.py
mitchelljkotler/django
bdd2d7ff92624f5cf4fc6d212ba82b5d309ee48a
[ "BSD-3-Clause" ]
null
null
null
django/dispatch/dispatcher.py
mitchelljkotler/django
bdd2d7ff92624f5cf4fc6d212ba82b5d309ee48a
[ "BSD-3-Clause" ]
15
2016-01-08T14:28:41.000Z
2019-04-19T08:33:31.000Z
import sys import threading import warnings import weakref from django.utils import six from django.utils.deprecation import RemovedInDjango20Warning from django.utils.inspect import func_accepts_kwargs from django.utils.six.moves import range if six.PY2: from .weakref_backports import WeakMethod else: from w...
36.714734
94
0.600239
a14feec9138e055cffa7aefb1365a269a7897a50
715
py
Python
_background/Johann Rocholl's Source/Final/prototype/rename.py
Farranco/HyperopicBarcode
e1389f496f1d21e4ffcf216982a09a15fa998db7
[ "Intel", "Unlicense" ]
1
2016-08-31T04:57:05.000Z
2016-08-31T04:57:05.000Z
_background/Johann Rocholl's Source/Initial/prototype/rename.py
Farranco/HyperopicBarcode
e1389f496f1d21e4ffcf216982a09a15fa998db7
[ "Intel", "Unlicense" ]
null
null
null
_background/Johann Rocholl's Source/Initial/prototype/rename.py
Farranco/HyperopicBarcode
e1389f496f1d21e4ffcf216982a09a15fa998db7
[ "Intel", "Unlicense" ]
null
null
null
#!/usr/bin/env python import sys import re import os UPC_REGEX = re.compile(r'(\d\d\d\d\d\d)-(\d\d\d\d\d\d)[-_\.](.*)') EAN_REGEX = re.compile(r'(\d)(\d\d\d\d\d\d)(\d\d\d\d\d\d)[-_\.](.*)') def rename(filename, parts): newname = '-'.join(parts) print filename, '=>', newname os.rename(filename, newname) ...
23.833333
69
0.566434
8fca046d320282c5d3c69c7ecb010c01849f552e
4,595
py
Python
tensorflow_probability/python/sts/local_linear_trend_test.py
nbro/probability
07a6378155f0ed720b5aaccf5387e3f9a432bd10
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/sts/local_linear_trend_test.py
nbro/probability
07a6378155f0ed720b5aaccf5387e3f9a432bd10
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/sts/local_linear_trend_test.py
nbro/probability
07a6378155f0ed720b5aaccf5387e3f9a432bd10
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 law o...
34.037037
80
0.730141
38475ef893a1c44e06196ce0a6f90d88bf15a314
2,687
py
Python
devilry/devilry_student/views/dashboard/allperiods.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
29
2015-01-18T22:56:23.000Z
2020-11-10T21:28:27.000Z
devilry/devilry_student/views/dashboard/allperiods.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
786
2015-01-06T16:10:18.000Z
2022-03-16T11:10:50.000Z
devilry/devilry_student/views/dashboard/allperiods.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
15
2015-04-06T06:18:43.000Z
2021-02-24T12:28:30.000Z
from django.utils.translation import pgettext_lazy, gettext_lazy from cradmin_legacy import crapp from cradmin_legacy.crinstance import reverse_cradmin_url from cradmin_legacy.viewhelpers import listbuilderview from cradmin_legacy.viewhelpers import listfilter from devilry.apps.core import models as coremodels from ...
35.826667
89
0.689245
eb8c662e82658c768f631a21d932d76c8b874fa7
7,764
py
Python
docs/conf.py
brodykenrick/MAX72xx_SPI_Arduino
49442c6308b0ecc74cd48b94af36426eeeb385ac
[ "MIT" ]
null
null
null
docs/conf.py
brodykenrick/MAX72xx_SPI_Arduino
49442c6308b0ecc74cd48b94af36426eeeb385ac
[ "MIT" ]
null
null
null
docs/conf.py
brodykenrick/MAX72xx_SPI_Arduino
49442c6308b0ecc74cd48b94af36426eeeb385ac
[ "MIT" ]
1
2021-02-18T14:37:15.000Z
2021-02-18T14:37:15.000Z
# -*- coding: utf-8 -*- # # LedControl documentation build configuration file, created by # sphinx-quickstart on Mon Feb 4 12:31:17 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 # autogenerated file. # # ...
31.950617
80
0.714967
d69d64a19d679d5ee6d520c60cc8c0e2c45e92ff
81
py
Python
scope/nest1.py
shirai708/qiita
545393820b5d6ab3b2bfccd7b38fa13f8782ed00
[ "CC-BY-4.0" ]
1
2020-03-24T06:06:18.000Z
2020-03-24T06:06:18.000Z
scope/nest1.py
shirai708/qiita
545393820b5d6ab3b2bfccd7b38fa13f8782ed00
[ "CC-BY-4.0" ]
1
2020-09-12T01:44:18.000Z
2020-09-12T07:15:55.000Z
scope/nest1.py
kaityo256/qiita
69c3cd50a01234a6f426189b07ec335a720a8b94
[ "CC-BY-4.0" ]
2
2019-11-18T05:46:46.000Z
2020-04-27T09:56:24.000Z
def func1(): a = 10 def func2(): print(a) func2() func1()
8.1
16
0.432099
57d0ba451810538dd0bf7eabb0b2531cc575d398
191
py
Python
tests/basics/dict_setdefault.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
13,648
2015-01-01T01:34:51.000Z
2022-03-31T16:19:53.000Z
tests/basics/dict_setdefault.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
7,092
2015-01-01T07:59:11.000Z
2022-03-31T23:52:18.000Z
tests/basics/dict_setdefault.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
4,942
2015-01-02T11:48:50.000Z
2022-03-31T19:57:10.000Z
d = {} print(d.setdefault(1)) print(d.setdefault(1)) print(d.setdefault(5, 42)) print(d.setdefault(5, 1)) print(d[1]) print(d[5]) d.pop(5) print(d.setdefault(5, 1)) print(d[1]) print(d[5])
13.642857
26
0.643979
287177a637adfa9e7de4fb9e40eb93718e19f114
33
py
Python
python/testData/refactoring/pullup/fieldMove/SuperClass.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/refactoring/pullup/fieldMove/SuperClass.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/refactoring/pullup/fieldMove/SuperClass.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class SuperClass(object): pass
16.5
25
0.757576
c2b36c0e034f97518c7fd39310faf4a9b39c3d0d
355
py
Python
fib.py
baduy9x/AlgorithmPractice
9fb956aedf67c0515b66f2af93d8383dba697fec
[ "Apache-2.0" ]
null
null
null
fib.py
baduy9x/AlgorithmPractice
9fb956aedf67c0515b66f2af93d8383dba697fec
[ "Apache-2.0" ]
null
null
null
fib.py
baduy9x/AlgorithmPractice
9fb956aedf67c0515b66f2af93d8383dba697fec
[ "Apache-2.0" ]
null
null
null
class Solution(object): def fib(self, n): if n == 0 or n == 1: return 1 if n == 2: return 2 first = 1 second = 1 count = 0 while count <=n: result = first + second first = second second = result c...
22.1875
35
0.422535
9c2a7e9fa91a1e0923dbc8d2094e1425efdbeef1
9,500
py
Python
object_database/messages.py
APrioriInvestments/object_database
d44b8432490b36b1ace67de0e23fb59f7ce9b529
[ "Apache-2.0" ]
2
2021-02-23T18:28:40.000Z
2021-04-18T03:00:53.000Z
object_database/messages.py
APrioriInvestments/object_database
d44b8432490b36b1ace67de0e23fb59f7ce9b529
[ "Apache-2.0" ]
115
2019-10-08T18:32:58.000Z
2021-02-12T20:16:14.000Z
object_database/messages.py
APrioriInvestments/object_database
d44b8432490b36b1ace67de0e23fb59f7ce9b529
[ "Apache-2.0" ]
null
null
null
from typed_python import OneOf, Alternative, ConstDict, TupleOf, Tuple from object_database.schema import ( SchemaDefinition, ObjectId, ObjectFieldId, IndexId, IndexValue, FieldDefinition, ) _heartbeatInterval = [5.0] def setHeartbeatInterval(newInterval): _heartbeatInterval[0] = newInter...
41.85022
94
0.672737
046e2fe10a459fe976635d6f4a73a8af50b33f9b
64,429
py
Python
tests/gclient_smoketest.py
cybertk/depot_tools
8ee6092bb79d18a82605d84dff2e64013a0c376c
[ "BSD-3-Clause" ]
20
2015-12-07T06:08:27.000Z
2021-11-08T11:06:18.000Z
tests/gclient_smoketest.py
cybertk/depot_tools
8ee6092bb79d18a82605d84dff2e64013a0c376c
[ "BSD-3-Clause" ]
null
null
null
tests/gclient_smoketest.py
cybertk/depot_tools
8ee6092bb79d18a82605d84dff2e64013a0c376c
[ "BSD-3-Clause" ]
23
2015-05-05T08:22:59.000Z
2021-11-10T06:24:46.000Z
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Smoke tests for gclient.py. Shell out 'gclient' and run basic conformance tests. This test assumes GClientSmokeBase.URL_BASE i...
40.142679
80
0.560477
91aa8f03fd9a324a332b3af3179b839e58af7bc2
3,028
py
Python
doc/display/e-Paper-master/RaspberryPi_JetsonNano/python/examples/epd_1in02_test.py
bartoszp1992/Tacho2
b8bf0928775c648b6191b7d90890d09bd87799f0
[ "MIT" ]
null
null
null
doc/display/e-Paper-master/RaspberryPi_JetsonNano/python/examples/epd_1in02_test.py
bartoszp1992/Tacho2
b8bf0928775c648b6191b7d90890d09bd87799f0
[ "MIT" ]
null
null
null
doc/display/e-Paper-master/RaspberryPi_JetsonNano/python/examples/epd_1in02_test.py
bartoszp1992/Tacho2
b8bf0928775c648b6191b7d90890d09bd87799f0
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import sys import os picdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'pic') libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'lib') if os.path.exists(libdir): sys.path.append(libdir) import logging from ...
29.398058
90
0.606671
2be4dbb28348e70aa8b0806f8ac5e722932114dc
7,129
py
Python
tensorflow/python/util/tf_export.py
AudioStreamTV/tensorflow
7277ed8ed2da84b227295216632dec52a81f63b3
[ "Apache-2.0" ]
null
null
null
tensorflow/python/util/tf_export.py
AudioStreamTV/tensorflow
7277ed8ed2da84b227295216632dec52a81f63b3
[ "Apache-2.0" ]
null
null
null
tensorflow/python/util/tf_export.py
AudioStreamTV/tensorflow
7277ed8ed2da84b227295216632dec52a81f63b3
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
32.852535
93
0.714827
39e559ad464e51382aa441e28dc64faf4ad42380
614
py
Python
stanza/models/depparse/scorer.py
danielhers/stanza
d747a7b781da203c286ec51e3842fecb8b0abb15
[ "Apache-2.0" ]
3,633
2016-01-21T17:29:13.000Z
2022-03-31T13:36:47.000Z
stanza/models/depparse/scorer.py
danielhers/stanza
d747a7b781da203c286ec51e3842fecb8b0abb15
[ "Apache-2.0" ]
593
2016-01-19T07:16:05.000Z
2022-03-31T20:23:58.000Z
stanza/models/depparse/scorer.py
danielhers/stanza
d747a7b781da203c286ec51e3842fecb8b0abb15
[ "Apache-2.0" ]
525
2016-01-20T03:22:19.000Z
2022-03-24T05:51:56.000Z
""" Utils and wrappers for scoring parsers. """ import logging from stanza.models.common.utils import ud_scores logger = logging.getLogger('stanza') def score(system_conllu_file, gold_conllu_file, verbose=True): """ Wrapper for UD parser scorer. """ evaluation = ud_scores(gold_conllu_file, system_conllu_file...
26.695652
74
0.64658
a61970a309fff7615d387364e1d8d6d0b3e6efef
5,725
py
Python
examples/time_series_tomography/reconstruct_few_slices_each_frame.py
gbzan/algotom
314f05b6a226e666a8ae4417b151d896606e7db4
[ "Apache-2.0" ]
null
null
null
examples/time_series_tomography/reconstruct_few_slices_each_frame.py
gbzan/algotom
314f05b6a226e666a8ae4417b151d896606e7db4
[ "Apache-2.0" ]
null
null
null
examples/time_series_tomography/reconstruct_few_slices_each_frame.py
gbzan/algotom
314f05b6a226e666a8ae4417b151d896606e7db4
[ "Apache-2.0" ]
null
null
null
# =========================================================================== # =========================================================================== # Copyright (c) 2021 Nghia T. Vo. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in com...
43.70229
108
0.669869
1e311cf4663842248c4cc4f8d7b1fd2c6ea4f902
2,226
py
Python
tests/query2sql_test.py
AskdataInc/askdata-api-python-client
82d63e5aad68e109cafe54aab29cf98cb5587588
[ "Apache-2.0" ]
null
null
null
tests/query2sql_test.py
AskdataInc/askdata-api-python-client
82d63e5aad68e109cafe54aab29cf98cb5587588
[ "Apache-2.0" ]
null
null
null
tests/query2sql_test.py
AskdataInc/askdata-api-python-client
82d63e5aad68e109cafe54aab29cf98cb5587588
[ "Apache-2.0" ]
null
null
null
from askdata import human2query from askdata.smartquery import SmartQuery, Query, Field, Condition, Sorting, SQLSorting, SQLOperator, TimeOperator, \ BooleanOperator, CompositeCondition if __name__ == "__main__": # Query2SQL smartquery = SmartQuery( queries=[ Query( fie...
45.428571
117
0.512129
f9beb2e0a529e7736a66a6c3f105bb989b50d5b6
32,479
py
Python
hubspot/crm/timeline/api/templates_api.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
117
2020-04-06T08:22:53.000Z
2022-03-18T03:41:29.000Z
hubspot/crm/timeline/api/templates_api.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
62
2020-04-06T16:21:06.000Z
2022-03-17T16:50:44.000Z
hubspot/crm/timeline/api/templates_api.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
45
2020-04-06T16:13:52.000Z
2022-03-30T21:33:17.000Z
# coding: utf-8 """ Timeline events This feature allows an app to create and configure custom events that can show up in the timelines of certain CRM objects like contacts, companies, tickets, or deals. You'll find multiple use cases for this API in the sections below. # noqa: E501 The version of the Op...
55.049153
747
0.650451
14b13c907ee02797804ddb65081e1a4bf02dba2d
1,774
py
Python
tests/shells/test_powershell.py
WorkInProgress-Development/theplease
9b9a2dcee3efa0e1b4f197fc55904c9327dc13ba
[ "MIT" ]
null
null
null
tests/shells/test_powershell.py
WorkInProgress-Development/theplease
9b9a2dcee3efa0e1b4f197fc55904c9327dc13ba
[ "MIT" ]
null
null
null
tests/shells/test_powershell.py
WorkInProgress-Development/theplease
9b9a2dcee3efa0e1b4f197fc55904c9327dc13ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from theplease.shells import Powershell @pytest.mark.usefixtures('isfile', 'no_memoize', 'no_cache') class TestPowershell(object): @pytest.fixture def shell(self): return Powershell() @pytest.fixture(autouse=True) def Popen(self, mocker): mock = ...
39.422222
106
0.654453
4a2de158668ee3ab72ff4d5e4bdba3f2f56c0583
251
py
Python
cryptodataaccess/Calculator/CalculatorStore.py
athanikos/cryptodataaccess
6189a44c65a9b03c02822a534e865740ab488809
[ "MIT" ]
null
null
null
cryptodataaccess/Calculator/CalculatorStore.py
athanikos/cryptodataaccess
6189a44c65a9b03c02822a534e865740ab488809
[ "MIT" ]
null
null
null
cryptodataaccess/Calculator/CalculatorStore.py
athanikos/cryptodataaccess
6189a44c65a9b03c02822a534e865740ab488809
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class CalculatorStore(metaclass=ABCMeta): @abstractmethod def insert_computed_notification(self): pass @abstractmethod def fetch_computed_notification_before_date(self): pass
19.307692
54
0.74502
88405645b3c4eb2a5176688fb1fee78b388ba5f9
214
py
Python
Clarinet/usermodel/IdealUser/__init__.py
rohans0509/Clarinet
0a7a6a5e6a91f93956b6b5739cab1f030655cac8
[ "MIT" ]
1
2022-01-28T20:30:07.000Z
2022-01-28T20:30:07.000Z
Clarinet/usermodel/IdealUser/__init__.py
rohans0509/Clarinet
0a7a6a5e6a91f93956b6b5739cab1f030655cac8
[ "MIT" ]
null
null
null
Clarinet/usermodel/IdealUser/__init__.py
rohans0509/Clarinet
0a7a6a5e6a91f93956b6b5739cab1f030655cac8
[ "MIT" ]
2
2021-11-23T13:55:10.000Z
2021-11-23T13:56:57.000Z
import miditoolkit ''' ============== USE FUNCTION ============== ''' def use(midi_file,*args,**kwargs): channel=kwargs["channel"] mido_obj = miditoolkit.midi.parser.MidiFile(midi_file) return mido_obj
19.454545
58
0.621495
1f3e92ae88c318db8d3e16174614a9de9c0873fd
1,514
py
Python
build/lib/geosea/__init__.py
py-geosea/geosea
c2bb56f72e2832098c910c57dbc6a935160c2cb4
[ "MIT" ]
1
2021-05-13T00:05:16.000Z
2021-05-13T00:05:16.000Z
build/lib/geosea/__init__.py
py-geosea/geosea
c2bb56f72e2832098c910c57dbc6a935160c2cb4
[ "MIT" ]
null
null
null
build/lib/geosea/__init__.py
py-geosea/geosea
c2bb56f72e2832098c910c57dbc6a935160c2cb4
[ "MIT" ]
1
2021-05-12T16:46:25.000Z
2021-05-12T16:46:25.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Purpose: Convenience imports for geosea # Author: Florian Petersen # Katrin Hannemann # # GEOMAR Helmholtz Centre for Ocean Research Kiel, Germany # # Version: 1.21 August 2020 # # ----...
23.65625
104
0.609643
9cd2adec526594135e46fdb123a072febd71c19f
38,723
py
Python
nltkma/internals.py
aydtmiri/nltk-ma
5d7dd01844ee063fc910a648948624b6a2dddaf9
[ "Apache-2.0" ]
null
null
null
nltkma/internals.py
aydtmiri/nltk-ma
5d7dd01844ee063fc910a648948624b6a2dddaf9
[ "Apache-2.0" ]
null
null
null
nltkma/internals.py
aydtmiri/nltk-ma
5d7dd01844ee063fc910a648948624b6a2dddaf9
[ "Apache-2.0" ]
null
null
null
# Natural Language Toolkit: Internal utility functions # # Copyright (C) 2001-2021 NLTK Project # Author: Steven Bird <stevenbird1@gmail.com> # Edward Loper <edloper@gmail.com> # Nitin Madnani <nmadnani@ets.org> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT import subprocess impo...
34.057168
99
0.554193
9f95e5e57836084fbaca4ddce1cff3d5f005ca9d
17,061
py
Python
dask/dataframe/methods.py
nickvazz/dask
f6e9e81903bd2416125a97cc3856c63bb792bddf
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/methods.py
nickvazz/dask
f6e9e81903bd2416125a97cc3856c63bb792bddf
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/methods.py
nickvazz/dask
f6e9e81903bd2416125a97cc3856c63bb792bddf
[ "BSD-3-Clause" ]
null
null
null
import warnings import numpy as np import pandas as pd from pandas.api.types import is_categorical_dtype, union_categoricals from tlz import partition from .utils import ( is_series_like, is_index_like, is_dataframe_like, hash_object_dispatch, group_split_dispatch, ) from ..utils import Dispatch ...
28.482471
88
0.588184
cccafdba54829927068eb981f9ad4d22b7639dfa
11,066
py
Python
test/functional/test_framework/test_node.py
AFP99/rpicore
cc739f0b74442bfde4e5a7975d7b87166c5dd227
[ "MIT" ]
24
2018-05-08T15:01:48.000Z
2022-03-27T19:33:35.000Z
test/functional/test_framework/test_node.py
AFP99/rpicore
cc739f0b74442bfde4e5a7975d7b87166c5dd227
[ "MIT" ]
1
2019-08-04T07:13:02.000Z
2019-11-10T18:53:23.000Z
test/functional/test_framework/test_node.py
AFP99/rpicore
cc739f0b74442bfde4e5a7975d7b87166c5dd227
[ "MIT" ]
12
2018-06-04T09:31:59.000Z
2022-02-17T00:42:18.000Z
#!/usr/bin/env python3 # Copyright (c) 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. """Class for rpicoind node under test""" import decimal import errno import http.client import json import log...
38.557491
248
0.627688
4f543ec6a11d443c275af232d3a2ebe38b8a5ed2
485
py
Python
backend/app/models/project.py
tsugden/fastapi-react-docker
db187e27ee90f450a49bfbb773769387b262eef9
[ "MIT" ]
1
2021-06-09T14:01:52.000Z
2021-06-09T14:01:52.000Z
backend/app/models/project.py
tsugden/fastapi-react-docker
db187e27ee90f450a49bfbb773769387b262eef9
[ "MIT" ]
null
null
null
backend/app/models/project.py
tsugden/fastapi-react-docker
db187e27ee90f450a49bfbb773769387b262eef9
[ "MIT" ]
null
null
null
import uuid from pydantic import BaseModel, Field class ProjectModel(BaseModel): id: str = Field(default_factory=uuid.uuid4, alias="_id") name: str = Field(...) nickname: str = Field(...) class Config: allow_population_by_field_name = True schema_extra = { "example": { ...
24.25
61
0.548454
ebcbc10af7bfa0bf9db50b8d2fd34052ef120ff3
28,739
py
Python
qibullet/ros_wrapper.py
lubiluk/qibullet
46b7f3a6f1672185233bbe5be545a8b176bc9127
[ "Apache-2.0" ]
null
null
null
qibullet/ros_wrapper.py
lubiluk/qibullet
46b7f3a6f1672185233bbe5be545a8b176bc9127
[ "Apache-2.0" ]
null
null
null
qibullet/ros_wrapper.py
lubiluk/qibullet
46b7f3a6f1672185233bbe5be545a8b176bc9127
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import os import sys import atexit import pybullet from qibullet.camera import Camera from qibullet.camera import CameraRgb from qibullet.camera import CameraDepth from qibullet.nao_virtual import NaoVirtual from qibullet.romeo_virtual import RomeoVirtual from qibullet.pepper_virt...
33.495338
79
0.604196
e00abe973d4ee5f4776ffc9372e5d6c5b7c9e293
16,419
py
Python
Benders.py
Warptenhazz/mscThesis
f0af131e5da0662d4a6094acbcbcc475186f46d4
[ "Unlicense" ]
2
2019-02-27T01:25:51.000Z
2020-12-21T07:57:32.000Z
Benders.py
Warptenhazz/mscThesis
f0af131e5da0662d4a6094acbcbcc475186f46d4
[ "Unlicense" ]
null
null
null
Benders.py
Warptenhazz/mscThesis
f0af131e5da0662d4a6094acbcbcc475186f46d4
[ "Unlicense" ]
1
2021-03-02T07:53:42.000Z
2021-03-02T07:53:42.000Z
from gurobipy import * import numpy as np # scenarioss = [sc1,sc2,sc3,sc4,sc5,sc6,sc7,sc8,sc9,sc10,sc11,sc12] # for i in scenarioss: from sc1 import inputBlock, upperPriceBlock, upperPriceForward, priceBlock, costBlock, PricePool, Aconstant ######################################################################...
42.757813
244
0.665997
2bf24d4d24a4a6440441ad109f12ea1939a2643c
1,419
py
Python
rabbitai/annotation_layers/commands/exceptions.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/annotation_layers/commands/exceptions.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/annotation_layers/commands/exceptions.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
1
2021-07-09T16:29:50.000Z
2021-07-09T16:29:50.000Z
from flask_babel import lazy_gettext as _ from rabbitai.commands.exceptions import ( CommandException, CommandInvalidError, CreateFailedError, DeleteFailedError, ValidationError, ) class AnnotationLayerInvalidError(CommandInvalidError): message = _("Annotation layer parameters are invalid.") ...
27.823529
73
0.776603
d60eca385da4b9e81cf7cb5c5a37ef9d8ccc91b5
832
py
Python
os_gov/gerrit.py
pyKun/os-gov
0100d853916bd47ee89b2bc9d9a914484b5fb062
[ "Apache-2.0" ]
null
null
null
os_gov/gerrit.py
pyKun/os-gov
0100d853916bd47ee89b2bc9d9a914484b5fb062
[ "Apache-2.0" ]
null
null
null
os_gov/gerrit.py
pyKun/os-gov
0100d853916bd47ee89b2bc9d9a914484b5fb062
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 -*- # Author: Kun Huang <academicgareth@gmail.com> from gerritlib import gerrit from os_gov import utils class Gerrit(gerrit.Gerrit): def __init__(self, username=None): self.host = "review.openstack.org" # TODO mv get_gerrit_usename to shell.py later ...
32
76
0.635817
f7d29c4a6104c291a57b5e0647183a6bf9f5b3c7
1,696
py
Python
oriskami/test/resources/test_event_queue.py
oriskami/oriskami-python
2b0d81f713a9149977907183c67eec136d49ee8c
[ "MIT" ]
4
2017-05-28T19:37:31.000Z
2017-06-13T11:34:26.000Z
oriskami/test/resources/test_event_queue.py
ubivar/ubivar-python
2b0d81f713a9149977907183c67eec136d49ee8c
[ "MIT" ]
null
null
null
oriskami/test/resources/test_event_queue.py
ubivar/ubivar-python
2b0d81f713a9149977907183c67eec136d49ee8c
[ "MIT" ]
null
null
null
import os import oriskami import warnings from oriskami.test.helper import (OriskamiTestCase) class OriskamiAPIResourcesTests(OriskamiTestCase): def test_event_queue_retrieve(self): response = oriskami.EventQueue.retrieve("1") event = response.data[0] self.assertEqual(event["id"], "1") ...
36.085106
77
0.679835
fdcf3311a01778c76a4352a35142d4bd206ca6d9
2,029
py
Python
dynamic_programming/longest_common_subsequence.py
JB1959/Python
b6ca263983933c3ecc06ed0083dd11b6faf870c8
[ "MIT" ]
145,614
2016-07-21T05:40:05.000Z
2022-03-31T22:17:22.000Z
dynamic_programming/longest_common_subsequence.py
Agha-Muqarib/Python
04f156a8973d6156a4357e0717d9eb0aa264d086
[ "MIT" ]
3,987
2016-07-28T17:31:25.000Z
2022-03-30T23:07:46.000Z
dynamic_programming/longest_common_subsequence.py
Agha-Muqarib/Python
04f156a8973d6156a4357e0717d9eb0aa264d086
[ "MIT" ]
40,014
2016-07-26T15:14:41.000Z
2022-03-31T22:23:03.000Z
""" LCS Problem Statement: Given two sequences, find the length of longest subsequence present in both of them. A subsequence is a sequence that appears in the same relative order, but not necessarily continuous. Example:"abc", "abg" are subsequences of "abcdefgh". """ def longest_common_subsequence(x: str, y: str):...
24.154762
87
0.520946
6bfbf0edfa99d96da5c57ef8cc9a6323bf23960e
1,333
py
Python
setup.py
asaskevich/binario
8d40337952ab77f02da0edeae7fa761eadf6ab45
[ "MIT" ]
3
2017-06-24T16:00:15.000Z
2020-12-02T15:53:35.000Z
setup.py
asaskevich/binario
8d40337952ab77f02da0edeae7fa761eadf6ab45
[ "MIT" ]
null
null
null
setup.py
asaskevich/binario
8d40337952ab77f02da0edeae7fa761eadf6ab45
[ "MIT" ]
3
2015-08-13T08:33:41.000Z
2018-03-04T21:42:41.000Z
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='binario', version='0.0.4', description='Package that lets an application read/write primitive data ' + 'types from an underlying input/output stream as binary data.', ...
36.027027
81
0.588147
c1ac58198c5c7e0ba4ee91e480ca930e48aa3d11
4,340
py
Python
data/T-RECS/MeerKAT.py
CosmoStat/ShapeDeconv
3869cb6b9870ff1060498eedcb99e8f95908f01a
[ "MIT" ]
4
2020-12-17T14:58:28.000Z
2022-01-22T06:03:55.000Z
data/T-RECS/MeerKAT.py
CosmoStat/ShapeDeconv
3869cb6b9870ff1060498eedcb99e8f95908f01a
[ "MIT" ]
9
2021-01-13T10:38:28.000Z
2021-07-06T23:37:08.000Z
data/T-RECS/MeerKAT.py
CosmoStat/ShapeDeconv
3869cb6b9870ff1060498eedcb99e8f95908f01a
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # -*- coding: utf-8 -*- class MeerKATarray(object): def __init__(self): import numpy as np from astropy.coordinates import EarthLocation import astropy.units as u self.Array=np.array([[ 5109271.49735416, 5109284.85407754, 5109272.1993435 , 5109294.9285...
55.641026
86
0.676728