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
52f0f18f17af4d2c54c0498397db375726154423
3,485
py
Python
mexmi/subset_selection_strategy/adversarial_deepfool_sss.py
mexmi2021/mexmi-project
ef735cb290d33b326f592a70fa9b7f7dc6b6281b
[ "MIT" ]
null
null
null
mexmi/subset_selection_strategy/adversarial_deepfool_sss.py
mexmi2021/mexmi-project
ef735cb290d33b326f592a70fa9b7f7dc6b6281b
[ "MIT" ]
null
null
null
mexmi/subset_selection_strategy/adversarial_deepfool_sss.py
mexmi2021/mexmi-project
ef735cb290d33b326f592a70fa9b7f7dc6b6281b
[ "MIT" ]
null
null
null
""" """ from torch.autograd import Variable from tqdm import tqdm from base_sss import SubsetSelectionStrategy import base_sss import random import numpy as np import torch import torch.nn.functional as F class AdversarialDeepFoolStrategy(SubsetSelectionStrategy): def __init__(self, size, X, Y_vec, copy_model, m...
34.166667
113
0.53056
ac2fe4ced216d52fe0160e5b27409be90a2d553f
808
py
Python
py/py_0643_2-friendly.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0643_2-friendly.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0643_2-friendly.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 643: 2-Friendly # https://projecteuler.net/problem=643 # # Two positive integers $a$ and $b$ are 2-friendly when $\gcd(a,b) = 2^t, # t>0$. For example, 24 and 40 are 2-friendly because $\gcd(24,40) = 8 = 2^3$ # while 24 and 36 are not because $\gcd(24,36) = 12 = 2^2\cdot 3$ not...
31.076923
78
0.623762
ab6eb5cdf71a138c66334e60c9a87a321d0b738f
8,584
py
Python
examples/torch/hiera_rl/meta_kant_half_cheetach_vel.py
fangqyi/garage
ddafba385ef005f46f913ab352f9638760e5b412
[ "MIT" ]
1
2021-03-02T08:43:20.000Z
2021-03-02T08:43:20.000Z
examples/torch/hiera_rl/meta_kant_half_cheetach_vel.py
fangqyi/garage
ddafba385ef005f46f913ab352f9638760e5b412
[ "MIT" ]
null
null
null
examples/torch/hiera_rl/meta_kant_half_cheetach_vel.py
fangqyi/garage
ddafba385ef005f46f913ab352f9638760e5b412
[ "MIT" ]
null
null
null
import faulthandler import os faulthandler.enable() import click import joblib import numpy as np from torch.nn import functional import garage.torch.utils as tu from garage import wrap_experiment from garage.envs import GarageEnv, DiaynEnvWrapper from garage.envs import normalize from garage.envs.mujoco import Half...
40.682464
102
0.695946
1397cc247308490d4eab9239de0169c3a567681e
11,053
py
Python
src/pyams_scheduler/process.py
Py-AMS/pyams-scheduler
58333798a43ca2f8af33cae4ec8f80c6c9a7ce9f
[ "ZPL-2.1" ]
null
null
null
src/pyams_scheduler/process.py
Py-AMS/pyams-scheduler
58333798a43ca2f8af33cae4ec8f80c6c9a7ce9f
[ "ZPL-2.1" ]
null
null
null
src/pyams_scheduler/process.py
Py-AMS/pyams-scheduler
58333798a43ca2f8af33cae4ec8f80c6c9a7ce9f
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2015-2021 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
41.397004
96
0.589252
e432d15a93139a0c4ad10049c8e110ad32813780
4,220
py
Python
openpeerpower/components/isy994/fan.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
openpeerpower/components/isy994/fan.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
openpeerpower/components/isy994/fan.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""Support for ISY994 fans.""" from __future__ import annotations import math from pyisy.constants import ISY_VALUE_UNKNOWN, PROTO_INSTEON from openpeerpower.components.fan import DOMAIN as FAN, SUPPORT_SET_SPEED, FanEntity from openpeerpower.config_entries import ConfigEntry from openpeerpower.core import OpenPeerP...
31.729323
84
0.669431
d033befd38017816c3af474ab2709b10602c4b44
8,059
py
Python
skfuzzy/control/fuzzyvariable.py
adaj/scikit-fuzzy
ae70db3a381a2b75d0c8e765736f83cf5e5c3ec5
[ "BSD-3-Clause" ]
null
null
null
skfuzzy/control/fuzzyvariable.py
adaj/scikit-fuzzy
ae70db3a381a2b75d0c8e765736f83cf5e5c3ec5
[ "BSD-3-Clause" ]
null
null
null
skfuzzy/control/fuzzyvariable.py
adaj/scikit-fuzzy
ae70db3a381a2b75d0c8e765736f83cf5e5c3ec5
[ "BSD-3-Clause" ]
null
null
null
""" fuzzyvariable.py : Contains the base fuzzy variable class, FuzzyVariable. """ from collections import OrderedDict import numpy as np from .term import Term from .visualization import FuzzyVariableVisualizer from ..membership import trimf, smf, zmf class FuzzyVariable(object): """ Base class containing u...
34.004219
79
0.519295
4fbf0863167e1d4c13e961b6ac2b4931240f928b
20,098
py
Python
src/python/pants/jvm/resolve/coursier_fetch.py
xlevus/pants
2e4301f90b4cba7b3dd71850ae34ca1b59832591
[ "Apache-2.0" ]
null
null
null
src/python/pants/jvm/resolve/coursier_fetch.py
xlevus/pants
2e4301f90b4cba7b3dd71850ae34ca1b59832591
[ "Apache-2.0" ]
null
null
null
src/python/pants/jvm/resolve/coursier_fetch.py
xlevus/pants
2e4301f90b4cba7b3dd71850ae34ca1b59832591
[ "Apache-2.0" ]
4
2021-06-18T09:11:27.000Z
2021-09-30T08:38:43.000Z
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import json import logging import os from dataclasses import dataclass from pathlib import PurePath from typing import Any, Iterable, Optional, Tuple f...
36.809524
158
0.690218
07262952208c028ef1a8ba0c5cd9a7b9341c5811
9,789
py
Python
atomate/vasp/workflows/tests/test_bulk_modulus_workflow.py
Zhuoying/atomate
067023f0f740d3abac47b7ae7743c1c31eff8a06
[ "BSD-3-Clause-LBNL" ]
null
null
null
atomate/vasp/workflows/tests/test_bulk_modulus_workflow.py
Zhuoying/atomate
067023f0f740d3abac47b7ae7743c1c31eff8a06
[ "BSD-3-Clause-LBNL" ]
null
null
null
atomate/vasp/workflows/tests/test_bulk_modulus_workflow.py
Zhuoying/atomate
067023f0f740d3abac47b7ae7743c1c31eff8a06
[ "BSD-3-Clause-LBNL" ]
null
null
null
import json import os import unittest import numpy as np from fireworks import FWorker from fireworks.core.rocket_launcher import rapidfire from monty.json import MontyEncoder from pymatgen.core import Structure from pymatgen.symmetry.analyzer import SpacegroupAnalyzer from pymatgen.util.testing import PymatgenTest f...
41.478814
102
0.561242
b878622023c0904ad2c91b1cb3165f4a68fcf584
13,790
py
Python
tests/test_basics.py
k-dominik/pytest-qt
d15703fbcdfce4e74b79b2dff7f5a7e883ed2961
[ "MIT" ]
null
null
null
tests/test_basics.py
k-dominik/pytest-qt
d15703fbcdfce4e74b79b2dff7f5a7e883ed2961
[ "MIT" ]
null
null
null
tests/test_basics.py
k-dominik/pytest-qt
d15703fbcdfce4e74b79b2dff7f5a7e883ed2961
[ "MIT" ]
null
null
null
import weakref import pytest from pytestqt import qt_compat from pytestqt.qt_compat import qt_api def test_basics(qtbot): """ Basic test that works more like a sanity check to ensure we are setting up a QApplication properly and are able to display a simple event_recorder. """ assert qt_api.QApp...
28.609959
103
0.631762
23dc64a84527eec3e58d9f5bcb91bf9ec4952486
4,415
py
Python
b_down_file/b_more_part.py
learnman1994/blibli_videodown
cde6018d3e3ee69d0638a0acb8d6024580d3300d
[ "Apache-2.0" ]
1
2022-03-08T02:29:08.000Z
2022-03-08T02:29:08.000Z
b_down_file/b_more_part.py
cattypapa/blibli_videodown
2ab1f6df92b1b70df75ef1e8b63c4db2f5b2e1a6
[ "Apache-2.0" ]
null
null
null
b_down_file/b_more_part.py
cattypapa/blibli_videodown
2ab1f6df92b1b70df75ef1e8b63c4db2f5b2e1a6
[ "Apache-2.0" ]
1
2022-01-23T02:12:59.000Z
2022-01-23T02:12:59.000Z
import requests import re import time try: import ffmpy except Exception: print('请先在终端执行 pip3 install ffmpy') import os import random try: from lxml import etree except Exception: print('请先在终端执行 pip3 install lxml') from . import get_proxy from . import mk_folder def get_names(bv, proxy_list): url ...
36.791667
119
0.543828
701bcebde5ebb6c8973c615a20b88055b57ca284
6,160
py
Python
customtkinter/customtkinter_progressbar.py
o0morgan0o/CustomTkinter
f7d4f902a91d87c7f078963d6e8b757d84abd743
[ "CC0-1.0" ]
null
null
null
customtkinter/customtkinter_progressbar.py
o0morgan0o/CustomTkinter
f7d4f902a91d87c7f078963d6e8b757d84abd743
[ "CC0-1.0" ]
null
null
null
customtkinter/customtkinter_progressbar.py
o0morgan0o/CustomTkinter
f7d4f902a91d87c7f078963d6e8b757d84abd743
[ "CC0-1.0" ]
null
null
null
import tkinter from .customtkinter_frame import CTkFrame from .appearance_mode_tracker import AppearanceModeTracker from .customtkinter_color_manager import CTkColorManager class CTkProgressBar(tkinter.Frame): """ tkinter custom progressbar, always horizontal, values are from 0 to 1 """ def __init__(self, ...
42.191781
157
0.538961
61f000cf5fac9fd9bc4e516c916e3ca335056d9c
2,485
py
Python
backend/web_exceptions.py
research-software-company/t2wml
82faa2c42ede29fb4e1d50340d7c885741950b4f
[ "MIT" ]
null
null
null
backend/web_exceptions.py
research-software-company/t2wml
82faa2c42ede29fb4e1d50340d7c885741950b4f
[ "MIT" ]
null
null
null
backend/web_exceptions.py
research-software-company/t2wml
82faa2c42ede29fb4e1d50340d7c885741950b4f
[ "MIT" ]
null
null
null
def make_frontend_err_dict(error): ''' convenience function to convert all errors to frontend readable ones ''' return { "errorCode": 500, "errorTitle": "Undefined Backend Error", "errorDescription": str(error) } class WebException(Exception): errorTitle = "Undefined web...
29.235294
97
0.707042
1a2064b04cb8657e18b7220b890694f4a69578a0
7,373
py
Python
common/base.py
nuannuanhcc/3DMPPE_POSENET_RELEASE
e5bb4899137b5a0c8fb26a2ce7beea480bc37974
[ "MIT" ]
null
null
null
common/base.py
nuannuanhcc/3DMPPE_POSENET_RELEASE
e5bb4899137b5a0c8fb26a2ce7beea480bc37974
[ "MIT" ]
null
null
null
common/base.py
nuannuanhcc/3DMPPE_POSENET_RELEASE
e5bb4899137b5a0c8fb26a2ce7beea480bc37974
[ "MIT" ]
null
null
null
import os import os.path as osp import math import time import glob import abc from torch.utils.data import DataLoader import torch.optim import torchvision.transforms as transforms from config import cfg from dataset import DatasetLoader from timer import Timer from logger import colorlogger from torch.nn.parallel.da...
40.289617
193
0.590397
c827953dbb443e2ee3dfdec1340c8ccacdff3b73
4,052
py
Python
agagd/agagd_core/views/beta.py
vash3g/agagd
67d143909c2f2ab4aeb9e9700967610704f5c0c0
[ "MIT" ]
null
null
null
agagd/agagd_core/views/beta.py
vash3g/agagd
67d143909c2f2ab4aeb9e9700967610704f5c0c0
[ "MIT" ]
null
null
null
agagd/agagd_core/views/beta.py
vash3g/agagd
67d143909c2f2ab4aeb9e9700967610704f5c0c0
[ "MIT" ]
null
null
null
# Datetime Imports from datetime import date, datetime, timedelta # AGAGD Models Import import agagd_core.models as agagd_models # AGAGD Tables Import import agagd_core.tables.beta as agagd_tables # Django Imports from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from django.db.models import F...
34.05042
87
0.690276
96f90a6df33398a2fd9f6e2219b52c3ab236c000
17,148
py
Python
numba/core/extending.py
crusaderky/numba
ce02012f036e9e5717448176f8dd610f096620bd
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
numba/core/extending.py
crusaderky/numba
ce02012f036e9e5717448176f8dd610f096620bd
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
numba/core/extending.py
crusaderky/numba
ce02012f036e9e5717448176f8dd610f096620bd
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
import os import uuid import weakref import collections import numba from numba.core import types, errors, utils, config # Exported symbols from numba.core.typing.typeof import typeof_impl # noqa: F401 from numba.core.typing.templates import infer, infer_getattr # noqa: F401 from numba.core.imputils import ( # noq...
32.477273
87
0.639317
e077efe3e4fbd0b62fb14039d4cc056aa537a3ab
591
py
Python
mnist_model/mnist_ml.py
alexshpunt/ml_practise
41845288f8572bde3a9c55c1e2f65d349c515d84
[ "MIT" ]
null
null
null
mnist_model/mnist_ml.py
alexshpunt/ml_practise
41845288f8572bde3a9c55c1e2f65d349c515d84
[ "MIT" ]
null
null
null
mnist_model/mnist_ml.py
alexshpunt/ml_practise
41845288f8572bde3a9c55c1e2f65d349c515d84
[ "MIT" ]
null
null
null
from mnist_model.mnist_data import * from sklearn.neighbors import KNeighborsClassifier from shared.data_utility import * import pandas as pd import numpy as np data = pd.read_csv("data/mnist_small.csv") def prepare_data(data): return data dataTrain, dataTest = build_train_test_data(data) featuresTrain, feat...
29.55
90
0.783418
6a7a472f0fdf864d1d4a56c98f9e3163db9e3aea
962
py
Python
test/test_fuzzymatch.py
KBoehme/hops-pipeline
cc1f87f0861b933de29b0ee38a1089721565b9bd
[ "MIT" ]
5
2015-07-04T07:23:51.000Z
2021-12-20T16:37:30.000Z
test/test_fuzzymatch.py
KBoehme/hops-pipeline
cc1f87f0861b933de29b0ee38a1089721565b9bd
[ "MIT" ]
3
2018-01-10T16:09:47.000Z
2022-01-30T21:29:23.000Z
test/test_fuzzymatch.py
KBoehme/hops-pipeline
cc1f87f0861b933de29b0ee38a1089721565b9bd
[ "MIT" ]
1
2020-06-23T23:03:07.000Z
2020-06-23T23:03:07.000Z
minbaseoffset = 4 maxbaseoffset = 6 def fuzzy_match_beginning(pattern, genome, mismatches): for i in range(minbaseoffset, maxbaseoffset+1): chunk = genome[i: i + len(pattern)] # now compare chunk with pattern to see if they match with at least mismatches. if (chunk == pattern): ...
38.48
87
0.611227
7a3e3e15043fe138210398bd8c3d5de1d5171de5
1,635
py
Python
tasks/copy_memory/main.py
abhitoronto/keras-tcn
3b6880f54bc50fbf2c0dfd2b7cd4b9bc13ac58fa
[ "MIT" ]
null
null
null
tasks/copy_memory/main.py
abhitoronto/keras-tcn
3b6880f54bc50fbf2c0dfd2b7cd4b9bc13ac58fa
[ "MIT" ]
null
null
null
tasks/copy_memory/main.py
abhitoronto/keras-tcn
3b6880f54bc50fbf2c0dfd2b7cd4b9bc13ac58fa
[ "MIT" ]
null
null
null
from uuid import uuid4 import tensorflow.keras as keras import numpy as np from tcn import compiled_tcn from utils import data_generator x_train, y_train = data_generator(601, 10, 30000) x_test, y_test = data_generator(601, 10, 6000) class PrintSomeValues(keras.callbacks.Callback): def on_epoch_begin(self, ep...
30.277778
83
0.570642
17bad783e86471bcf83c80fb7d3e5b380138d39d
806
py
Python
app/core/admin.py
StephPoleo/recipe-app-api
63269eb720023f15b16c009b46a161ba7621496f
[ "MIT" ]
null
null
null
app/core/admin.py
StephPoleo/recipe-app-api
63269eb720023f15b16c009b46a161ba7621496f
[ "MIT" ]
null
null
null
app/core/admin.py
StephPoleo/recipe-app-api
63269eb720023f15b16c009b46a161ba7621496f
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from core import models class UserAdmin(BaseUserAdmin): ordering = ["id"] list_display = ["email", "name"] fieldsets = ( (None, {"fields": ("email", ...
31
86
0.643921
fa52cbfcbf0cd83be314cf169c300bc1bdc619ff
5,062
py
Python
tletools/pandas.py
kerel-fs/tletools
6ccf12aea705044fb4c780382739c1cf0ea45e6e
[ "MIT" ]
null
null
null
tletools/pandas.py
kerel-fs/tletools
6ccf12aea705044fb4c780382739c1cf0ea45e6e
[ "MIT" ]
null
null
null
tletools/pandas.py
kerel-fs/tletools
6ccf12aea705044fb4c780382739c1cf0ea45e6e
[ "MIT" ]
1
2020-05-12T15:37:26.000Z
2020-05-12T15:37:26.000Z
""" The module :mod:`tletools.pandas` provides convenience functions to load two-line element set files into :class:`pandas.DataFrame`'s.' Given a file ``oneweb.txt`` with the following contents:: ONEWEB-0012 1 44057U 19010A 19290.71624163 .00000233 00000-0 58803-3 0 9997 2 44057 87.90...
49.145631
205
0.615765
9fe50b141ef0acbdd88fee17a1a9691a197dac21
3,575
py
Python
cogs/crypto.py
bill1on/brush
f3f7d8968ffaa4c9b052a565a7a76f58e7c3273d
[ "MIT" ]
19
2021-05-29T19:02:32.000Z
2021-05-29T19:02:40.000Z
cogs/crypto.py
bill1on/brush
f3f7d8968ffaa4c9b052a565a7a76f58e7c3273d
[ "MIT" ]
null
null
null
cogs/crypto.py
bill1on/brush
f3f7d8968ffaa4c9b052a565a7a76f58e7c3273d
[ "MIT" ]
null
null
null
from re import X import discord from discord.ext import commands, tasks import aiohttp from datetime import datetime import time from utilsdb import sqlt ENABLE_CRYPTO = False MIN_VALUE = 5000000 if ENABLE_CRYPTO: with open('API_KEY.txt', 'r') as f: API_KEY = f.read() @tasks.loop(minutes = 1) async def w...
48.310811
220
0.596084
d289c6fa3858b8ce463b0f4dfe61f17b5ef98e44
9,188
py
Python
handlers/merge_commands.py
DurbeKK/tg_pdf_bot
75a180cc7c876df84a4cac825939898892a43aa9
[ "MIT" ]
3
2021-12-03T09:27:54.000Z
2021-12-09T03:19:42.000Z
handlers/merge_commands.py
DurbeKK/tg-pdf-bot
75a180cc7c876df84a4cac825939898892a43aa9
[ "MIT" ]
null
null
null
handlers/merge_commands.py
DurbeKK/tg-pdf-bot
75a180cc7c876df84a4cac825939898892a43aa9
[ "MIT" ]
null
null
null
""" The part that deals with merging PDF files into one. (message handlers) """ import logging from os import listdir from typing import List from aiogram import types from aiogram.dispatcher import FSMContext from loader import bot, dp, input_path, output_path from PyPDF2 import PdfFileMerger from states.all_states ...
36.899598
84
0.65357
0dcfe7f39f438467f28a23d806b6b4c139a672e4
7,034
py
Python
core/model/finetuning/skd_model.py
cjy97/LibFewShot
cffd0f6d9cb9a13cb4eaf0fb69c13f317508591f
[ "MIT" ]
471
2021-09-13T11:28:34.000Z
2022-03-30T07:26:54.000Z
core/model/finetuning/skd_model.py
cjy97/LibFewShot
cffd0f6d9cb9a13cb4eaf0fb69c13f317508591f
[ "MIT" ]
24
2021-09-22T02:34:05.000Z
2022-02-19T07:26:39.000Z
core/model/finetuning/skd_model.py
cjy97/LibFewShot
cffd0f6d9cb9a13cb4eaf0fb69c13f317508591f
[ "MIT" ]
82
2021-09-16T12:48:01.000Z
2022-03-28T06:57:47.000Z
# -*- coding: utf-8 -*- """ @article{DBLP:journals/corr/abs-2006-09785, author = {Jathushan Rajasegaran and Salman Khan and Munawar Hayat and Fahad Shahbaz Khan and Mubarak Shah}, title = {Self-supervised Knowledge Distillation for Few-shot Learning...
30.450216
100
0.619136
f92bcc4fab17fb1dcfd9d5df2b7660261f6400dc
1,200
py
Python
day20a.py
Jamibaraki/adventOfCode2017
dd1518d12595dd2c2554af549f80a0be84a6ba8a
[ "MIT" ]
2
2018-02-26T11:41:55.000Z
2020-04-12T09:55:03.000Z
day20a.py
Jamibaraki/adventOfCode2017
dd1518d12595dd2c2554af549f80a0be84a6ba8a
[ "MIT" ]
null
null
null
day20a.py
Jamibaraki/adventOfCode2017
dd1518d12595dd2c2554af549f80a0be84a6ba8a
[ "MIT" ]
null
null
null
#Advent of Code 20a # A Particle Swarm import re print('Particle Swarm') #file = open('inputTest.txt','r') file = open('input20.txt','r') input = file.read().split('\n') file.close() #hypothesis - we just need to figure out the lowest acceleration.. #in the long term that will always be closer #there may be a tie f...
22.641509
66
0.611667
d1e1152f46a927d7f7579d5c5ea2023965f2c0fc
3,182
py
Python
setup.py
esayyari/q2-feature-engineering
d3419dabd4722818aafd7b13da957222ee4d3cf8
[ "BSD-3-Clause" ]
null
null
null
setup.py
esayyari/q2-feature-engineering
d3419dabd4722818aafd7b13da957222ee4d3cf8
[ "BSD-3-Clause" ]
2
2020-10-12T18:48:47.000Z
2020-10-14T00:19:40.000Z
setup.py
esayyari/q2-feature-engineering
d3419dabd4722818aafd7b13da957222ee4d3cf8
[ "BSD-3-Clause" ]
1
2020-09-01T23:34:30.000Z
2020-09-01T23:34:30.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2019, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # -----------------------------------------------------...
40.794872
110
0.604023
64afa2549204ca8a4f48fbb9b9da5e50531ff765
696
py
Python
pyk/util.py
kubernauts/pyk
88531b1f09f23c049b3ad7aa9caebfc02a4a420d
[ "Apache-2.0" ]
6
2015-12-29T15:19:52.000Z
2017-12-15T03:30:15.000Z
pyk/util.py
mhausenblas/pyk
88531b1f09f23c049b3ad7aa9caebfc02a4a420d
[ "Apache-2.0" ]
null
null
null
pyk/util.py
mhausenblas/pyk
88531b1f09f23c049b3ad7aa9caebfc02a4a420d
[ "Apache-2.0" ]
3
2016-05-27T18:21:30.000Z
2019-03-23T20:34:07.000Z
""" Utility functions for the pyk toolkit. @author: Michael Hausenblas, http://mhausenblas.info/#i @since: 2015-11-27 @status: init """ import yaml import json def load_yaml(filename): """ Loads a YAML-formatted file. """ with open(filename) as f: ydoc = yaml.safe_load(f.read()) return (...
21.75
57
0.675287
2ad1e8a36cc22c21268660b7d2b950dc6c3ccf6a
9,281
py
Python
planet/control/simulate.py
JingbinLiu/planet_A
1b072c3bd417d2ecff95653e53079c0cd0bb38bb
[ "Apache-2.0" ]
5
2019-03-29T10:13:30.000Z
2021-05-02T10:26:15.000Z
planet/control/simulate.py
JingbinLiu/planet_A
1b072c3bd417d2ecff95653e53079c0cd0bb38bb
[ "Apache-2.0" ]
null
null
null
planet/control/simulate.py
JingbinLiu/planet_A
1b072c3bd417d2ecff95653e53079c0cd0bb38bb
[ "Apache-2.0" ]
4
2019-03-15T16:25:51.000Z
2019-05-09T05:31:39.000Z
# Copyright 2019 The PlaNet 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 applicable...
38.510373
109
0.707898
b1388fd18225e9188b2c6ec5ce1444a127244d4d
1,851
py
Python
DeepLearningServer/Scripts/Falconapp.py
Criscraft/DeepVisionVRServer
a649cbf236effd2a9bab61be0ed370e690d17ef0
[ "MIT" ]
null
null
null
DeepLearningServer/Scripts/Falconapp.py
Criscraft/DeepVisionVRServer
a649cbf236effd2a9bab61be0ed370e690d17ef0
[ "MIT" ]
null
null
null
DeepLearningServer/Scripts/Falconapp.py
Criscraft/DeepVisionVRServer
a649cbf236effd2a9bab61be0ed370e690d17ef0
[ "MIT" ]
null
null
null
import falcon def start_server(DLWebServer): app = application = falcon.App() app.add_route('/testshortresource', DLWebServer.TestShortResource()) app.add_route('/testlongresource', DLWebServer.TestLongResource()) app.add_route('/network', DLWebServer.NetworkResource()) app.add_r...
61.7
140
0.776877
adb1a3a590a3acaa310d639c501e22246499c5cf
251
py
Python
conftest.py
pitbulk/sentry-auth-okta
19d9e0304b55e64a1f475091907ebf1816a9f1b4
[ "Apache-2.0" ]
null
null
null
conftest.py
pitbulk/sentry-auth-okta
19d9e0304b55e64a1f475091907ebf1816a9f1b4
[ "Apache-2.0" ]
null
null
null
conftest.py
pitbulk/sentry-auth-okta
19d9e0304b55e64a1f475091907ebf1816a9f1b4
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__))) # Run tests against sqlite for simplicity os.environ.setdefault('DB', 'sqlite') pytest_plugins = [ 'sentry.utils.pytest' ]
17.928571
59
0.752988
27e221b4aa5123c90105554b4efb7b497496878a
2,663
py
Python
2017/day15.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
2017/day15.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
2017/day15.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
""" 2017 Day 15 https://adventofcode.com/2017/day/15 """ from collections import deque from typing import Dict, Sequence import aocd # type: ignore import regex as re # type: ignore class Judge: def __init__(self, comparisons: int): self.comparisons = comparisons self.count = 0 self.que...
26.107843
78
0.591814
16861f728525914da70ebd4a41fe0de6dbf4afae
1,221
py
Python
tests/terraform/checks/resource/aws/test_AthenaWorkgroupConfiguration.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
tests/terraform/checks/resource/aws/test_AthenaWorkgroupConfiguration.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
tests/terraform/checks/resource/aws/test_AthenaWorkgroupConfiguration.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import unittest from checkov.common.models.enums import CheckResult from checkov.terraform.checks.resource.aws.AthenaWorkgroupConfiguration import check class TestAthenaWorkgroupConfiguration(unittest.TestCase): def test_failure(self): resource_conf = { "name": "Example", "config...
27.133333
84
0.59869
070ddbf3091205484a63003a8812aa25de400bbf
12,649
py
Python
OGBL_Collab/unify/ogb/ogbl_collab/pruning.py
x-zho14/Unified-LTH-GNN
edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55
[ "MIT" ]
29
2021-02-17T02:46:54.000Z
2022-03-18T02:09:03.000Z
OGBL_Collab/unify/ogb/ogbl_collab/pruning.py
x-zho14/Unified-LTH-GNN
edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55
[ "MIT" ]
1
2021-09-03T13:30:50.000Z
2021-09-03T13:30:50.000Z
OGBL_Collab/unify/ogb/ogbl_collab/pruning.py
x-zho14/Unified-LTH-GNN
edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55
[ "MIT" ]
10
2021-04-01T16:27:03.000Z
2022-03-07T09:20:38.000Z
import torch import torch.nn as nn from abc import ABC import numpy as np import random import os import matplotlib.pyplot as plt import pdb import torch.nn.init as init import math from tqdm import tqdm def resume_change(resume_ckpt, model, args): model_state_dict = resume_ckpt['model_state_dict'] rewind_we...
37.423077
159
0.696814
dca2922801c2dedff67fa57e6569608100677c64
2,326
py
Python
api_v2/urls.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
22
2015-01-16T01:36:32.000Z
2020-06-08T00:46:18.000Z
api_v2/urls.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
8
2015-12-28T18:56:19.000Z
2019-04-01T17:33:48.000Z
api_v2/urls.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
13
2015-01-13T20:56:22.000Z
2022-02-23T06:01:17.000Z
from django.conf.urls.defaults import * from piston.resource import Resource from api_v2.system_handler import SystemHandler from api_v2.networkadapter_handler import NetworkAdapterHandler from api_v2.keyvalue_handler import KeyValueHandler from api_v2.truth_handler import TruthHandler from api_v2.oncall_handler import...
56.731707
121
0.781599
d78f9c7e752823704154d6a4f8c3ae860ef36164
214
py
Python
Python3/1079-Letter-Tile-Possibilities/soln-1.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/1079-Letter-Tile-Possibilities/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/1079-Letter-Tile-Possibilities/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
import functools class Solution: def numTilePossibilities(self, tiles: str) -> int: return len(functools.reduce(operator.or_, [set(itertools.permutations(tiles, i)) for i in range(1, len(tiles) + 1)]))
42.8
125
0.71028
85a9975181565a4fee7936afb1b1a00004c75ad9
58
py
Python
src/striga/service/sqlobjectsvc/__init__.py
ateska/striga
451b5d9421e2e5fdf49b94c8f3d76e576abc5923
[ "MIT" ]
null
null
null
src/striga/service/sqlobjectsvc/__init__.py
ateska/striga
451b5d9421e2e5fdf49b94c8f3d76e576abc5923
[ "MIT" ]
null
null
null
src/striga/service/sqlobjectsvc/__init__.py
ateska/striga
451b5d9421e2e5fdf49b94c8f3d76e576abc5923
[ "MIT" ]
null
null
null
#Interface from ._stsvcso_service import SQLObjectFactory
19.333333
46
0.87931
6a5b8a928802f558e2836edb3a64a09cbeeddfd9
2,474
py
Python
.history/my_classes/basic/for_loop_20210430210110.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/basic/for_loop_20210430210110.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/basic/for_loop_20210430210110.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
i = 0 # This is an example of the while loop while i < 5: print(i) i += 1 i = None # 0 # 1 # 2 # 3 # 4 for i in range(5): # This example uses the iterable object 'range' print(i) # 0 # 1 # 2 # 3 ...
17.798561
67
0.260307
2dae3d1bbaa4e236d1f1b9c758b03fd9c489f83f
47,466
py
Python
discussion/fun_mcmc/fun_mcmc_test.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
2
2020-02-21T06:30:00.000Z
2021-08-08T19:29:15.000Z
discussion/fun_mcmc/fun_mcmc_test.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
null
null
null
discussion/fun_mcmc/fun_mcmc_test.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
1
2020-05-31T13:08:33.000Z
2020-05-31T13:08:33.000Z
# Copyright 2020 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...
33.85592
112
0.645304
3609324ab2e387d9e64cd991fb6adda8c5f952b1
84,382
py
Python
src/config/api-server/vnc_cfg_api_server/tests/in_place_upgrade/test_r2002.py
atsgen/contrail-controller
6f552316d9bacab29deb7d2507a49fcc96f70b52
[ "Apache-2.0" ]
null
null
null
src/config/api-server/vnc_cfg_api_server/tests/in_place_upgrade/test_r2002.py
atsgen/contrail-controller
6f552316d9bacab29deb7d2507a49fcc96f70b52
[ "Apache-2.0" ]
null
null
null
src/config/api-server/vnc_cfg_api_server/tests/in_place_upgrade/test_r2002.py
atsgen/contrail-controller
6f552316d9bacab29deb7d2507a49fcc96f70b52
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020 Juniper Networks, Inc. All rights reserved. # import logging import unittest import six from vnc_api.exceptions import RefsExistError # Pawel Z.: I decided to import with an asterisk because in this file # I need all available vnc_api objects. Importing hundreds of objects # line by line isn't e...
42.148851
79
0.581309
8c937bad45e39b651b93f987589c1997aafa9b37
2,209
py
Python
pbsuite/utils/quickN50.py
shokrof/pbhoney
288dbb9cbbd16621f815c0e9eb99e1d1455c5c26
[ "MIT" ]
null
null
null
pbsuite/utils/quickN50.py
shokrof/pbhoney
288dbb9cbbd16621f815c0e9eb99e1d1455c5c26
[ "MIT" ]
null
null
null
pbsuite/utils/quickN50.py
shokrof/pbhoney
288dbb9cbbd16621f815c0e9eb99e1d1455c5c26
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys, math def getStats(seqLengths): data = {} seqLengths.sort(reverse=True) data["numItems"] = len(seqLengths) data["itemSum"] = sum(seqLengths) tl = data["itemSum"] n50_mark = data["itemSum"] * .5 n90_mark = data["itemSum"] * .90 n95_mark = data["itemSum"...
28.320513
72
0.492078
52c7c25e771b65ed6ee4780b532cd829d3757f44
6,953
py
Python
mlnext/io.py
PLCnext/MLnext-Framework
aff791ace391e46c7cee12e5901090551d7c2103
[ "MIT" ]
null
null
null
mlnext/io.py
PLCnext/MLnext-Framework
aff791ace391e46c7cee12e5901090551d7c2103
[ "MIT" ]
null
null
null
mlnext/io.py
PLCnext/MLnext-Framework
aff791ace391e46c7cee12e5901090551d7c2103
[ "MIT" ]
null
null
null
""" Module for loading and saving files. """ import glob import json import os from typing import Any from typing import Dict from typing import List import yaml from pydantic import BaseModel __all__ = [ 'save_json', 'load_json', 'save_yaml', 'load_yaml', 'save_config', 'load', 'get_files...
25.101083
78
0.565799
c6b10a3b5ddf37fa1fe98e29f0c6a3eb4f64a206
6,311
py
Python
Operators.py
clavigne/feedback-control-retinal
5b2349961ae5fe09a21ddfb35e64ee958bc0a7aa
[ "BSD-2-Clause" ]
1
2020-07-20T13:40:57.000Z
2020-07-20T13:40:57.000Z
Operators.py
clavigne/feedback-control-retinal
5b2349961ae5fe09a21ddfb35e64ee958bc0a7aa
[ "BSD-2-Clause" ]
null
null
null
Operators.py
clavigne/feedback-control-retinal
5b2349961ae5fe09a21ddfb35e64ee958bc0a7aa
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import numpy.linalg as npl import scipy.sparse as sps from functools import reduce # This is the max order of a polynomial potential we will be # declaring. Basically the x and p matrices internally will be nbasis # + MAX_ORDER so that q^MAX_ORDER is correct up to nbas. MAX_ORDER = 4 class System: ...
31.713568
88
0.536048
bcf823c3bf2bbeabdb81d5e5e5ad0885ded16aed
7,578
py
Python
backups/tojson.bak.py
ono7/f5config2json
9ad0372f33d58fca7403cda03e7c02325d04d11f
[ "MIT" ]
null
null
null
backups/tojson.bak.py
ono7/f5config2json
9ad0372f33d58fca7403cda03e7c02325d04d11f
[ "MIT" ]
null
null
null
backups/tojson.bak.py
ono7/f5config2json
9ad0372f33d58fca7403cda03e7c02325d04d11f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Utilities for implementing stacks to track stanza config objects and generate JSON output e.g. virtual-server /Common/best_vs { attributes { key1 value1 key2 value2 } empty-definition { } } Fri Jul 23 13:11:27 2021 __...
31.057377
92
0.601742
4668cf52f03734858cfcf0e889b2c822d7eba157
4,457
py
Python
carbon/lib/carbon/instrumentation.py
ehazlett/graphite
b20573e92cb90de254505baa160210483f203be9
[ "Apache-2.0" ]
1
2015-05-21T10:23:03.000Z
2015-05-21T10:23:03.000Z
carbon/lib/carbon/instrumentation.py
Cue/graphite
450eeeb0eacc433bc5914c1dff2e05dbf420cf8d
[ "Apache-2.0" ]
null
null
null
carbon/lib/carbon/instrumentation.py
Cue/graphite
450eeeb0eacc433bc5914c1dff2e05dbf420cf8d
[ "Apache-2.0" ]
null
null
null
import os import time import socket from resource import getrusage, RUSAGE_SELF from twisted.application.service import Service from twisted.internet.task import LoopingCall from carbon.conf import settings stats = {} HOSTNAME = socket.gethostname().replace('.','_') PAGESIZE = os.sysconf('SC_PAGESIZE') rusage = getr...
29.130719
96
0.709221
bd77d7b1add8435d92a021947c43de5150f97abd
1,783
py
Python
Features/Stylistic Sets/Synchronize ssXX glyphs.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
1
2021-09-04T18:41:30.000Z
2021-09-04T18:41:30.000Z
Stylistic Sets/Synchronize ssXX glyphs.py
davidtahim/Glyphs-Scripts
5ed28805b5fe03c63d904ad2f79117844c22aa44
[ "Apache-2.0" ]
null
null
null
Stylistic Sets/Synchronize ssXX glyphs.py
davidtahim/Glyphs-Scripts
5ed28805b5fe03c63d904ad2f79117844c22aa44
[ "Apache-2.0" ]
1
2021-06-09T19:16:47.000Z
2021-06-09T19:16:47.000Z
#MenuTitle: Synchronize ssXX glyphs # -*- coding: utf-8 -*- __doc__=""" Creates missing ssXX glyphs so that you have synchronous groups of ssXX glyphs. E.g. you have a.ss01 b.ss01 c.ss01 a.ss02 c.ss02 --> the script creates b.ss02 """ Font = Glyphs.font allGlyphs = [ x.name for x in list( Font.glyphs ) ] linele...
27.859375
108
0.659002
85f4224d2319b4ea1507b9c11ab31b77237a80f6
260
py
Python
Dataset/Leetcode/test/4/676.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/4/676.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/4/676.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, nums1: List[int], nums2: List[int]) -> float: num=nums1+nums2 num.sort() if len(num)%2==0: return (num[len(num)//2]+num[len(num)//2-1])/2 else: return num[len(num)//2]
26
63
0.5
f5eb75e24a49d469354c2b9d15b57fdbf852cd11
3,979
py
Python
ECS/ecs-taskstopped-handling/lambda/TaskStoppedHandler.py
terratenney/aws-tools
d8ca07d56d812deb819b039752b94a0f1b9e6eb2
[ "MIT" ]
8
2020-12-27T18:44:17.000Z
2022-03-10T22:20:28.000Z
ECS/ecs-taskstopped-handling/lambda/TaskStoppedHandler.py
terratenney/aws-tools
d8ca07d56d812deb819b039752b94a0f1b9e6eb2
[ "MIT" ]
28
2020-08-30T02:57:03.000Z
2021-05-12T09:13:15.000Z
ECS/ecs-taskstopped-handling/lambda/TaskStoppedHandler.py
kyhau/arki
b5d6b160ef0780032f231362158dd9dd892f4e8e
[ "MIT" ]
8
2020-09-03T19:00:13.000Z
2022-03-31T05:31:35.000Z
""" This is a Lambda function to be triggered from CloudWatch Events (ECS Task Stopped). """ import boto3 import json import logging # Update the root logger to get messages at DEBUG and above logging.getLogger().setLevel(logging.DEBUG) logging.getLogger("botocore").setLevel(logging.CRITICAL) logging.getLogger("boto3...
37.537736
110
0.546117
98221d020546f646e478df4af65e07dcdb54b855
2,535
py
Python
strands_monitored_nav_states/src/strands_monitored_nav_states/recover_stuck_on_carpet_no_help.py
cdondrup/strands_recovery_behaviours
8fd1fd5dee1a7a473403dadab7ce91adab9590df
[ "MIT" ]
null
null
null
strands_monitored_nav_states/src/strands_monitored_nav_states/recover_stuck_on_carpet_no_help.py
cdondrup/strands_recovery_behaviours
8fd1fd5dee1a7a473403dadab7ce91adab9590df
[ "MIT" ]
null
null
null
strands_monitored_nav_states/src/strands_monitored_nav_states/recover_stuck_on_carpet_no_help.py
cdondrup/strands_recovery_behaviours
8fd1fd5dee1a7a473403dadab7ce91adab9590df
[ "MIT" ]
null
null
null
import rospy import smach from monitored_navigation.recover_state_machine import RecoverStateMachine from monitored_navigation.recover_state import RecoverState from geometry_msgs.msg import Twist class RecoverStuckOnCarpetNoHelp(RecoverStateMachine): def __init__(self,max_recovery_attempts=float("inf")): ...
40.238095
152
0.575542
ffadcc9b870712e8c360f551470ccfc684e4d711
5,404
py
Python
venv/lib/python3.6/site-packages/twilio/rest/api/v2010/account/new_signing_key.py
fernandoleira/stocktext
f755f83ffdaee3b179e21de955854354aced9134
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/twilio/rest/api/v2010/account/new_signing_key.py
fernandoleira/stocktext
f755f83ffdaee3b179e21de955854354aced9134
[ "MIT" ]
11
2019-12-26T17:21:03.000Z
2022-03-21T22:17:07.000Z
venv/lib/python3.6/site-packages/twilio/rest/api/v2010/account/new_signing_key.py
fernandoleira/stocktext
f755f83ffdaee3b179e21de955854354aced9134
[ "MIT" ]
null
null
null
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource from twilio.base.page i...
30.531073
109
0.642117
98110bd45ba4c564eea535635683d77272792126
2,001
py
Python
pygazebo/msg/param_v_pb2.py
dmacmill/py3gazebo
b9b303aa8338d25993362ae469bc593bfb29ba2c
[ "Apache-2.0" ]
6
2019-04-28T09:48:02.000Z
2021-06-27T07:39:15.000Z
pygazebo/msg/param_v_pb2.py
dmacmill/py3gazebo
b9b303aa8338d25993362ae469bc593bfb29ba2c
[ "Apache-2.0" ]
null
null
null
pygazebo/msg/param_v_pb2.py
dmacmill/py3gazebo
b9b303aa8338d25993362ae469bc593bfb29ba2c
[ "Apache-2.0" ]
3
2021-06-18T20:05:09.000Z
2022-02-03T16:54:47.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: param_v.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _refle...
27.410959
153
0.754623
a3fb1cee8c21464feecf1f17413f284a9c01e8b7
3,049
py
Python
bigquery_erd/bigquery.py
janjagusch/bigquery-eralchemy
3d0c5b33a7bcb306d00bc3569213465905e7cc9f
[ "Apache-2.0" ]
2
2021-02-14T16:42:21.000Z
2022-03-08T18:59:25.000Z
bigquery_erd/bigquery.py
janjagusch/bigquery-eralchemy
3d0c5b33a7bcb306d00bc3569213465905e7cc9f
[ "Apache-2.0" ]
null
null
null
bigquery_erd/bigquery.py
janjagusch/bigquery-eralchemy
3d0c5b33a7bcb306d00bc3569213465905e7cc9f
[ "Apache-2.0" ]
null
null
null
""" Converts Google BigQuery tables into the eralchemy intermediate representation. """ import os import re from collections import namedtuple from typing import Iterable, Tuple, Union from google.cloud.bigquery import Table from eralchemy.models import ( Column as ERColumn, Table as ERTable, Relation as...
29.601942
87
0.686783
ee6fbb1890b092e1ac69b2e57a452e4f9ad960f8
1,927
py
Python
tpdatasrc/co8fixes/scr/py00167feldrin.py
dolio/TemplePlus
37446bb3d1fcbf460e611a4fcb2caff167e9ac08
[ "MIT" ]
69
2015-05-05T14:09:25.000Z
2022-02-15T06:13:04.000Z
tpdatasrc/co8fixes/scr/py00167feldrin.py
anatoliy-savchak/TemplePlus
50922bb14cc2d7dcf8fceeccf45c3b905c1b512f
[ "MIT" ]
457
2015-05-01T22:07:45.000Z
2022-03-31T02:19:10.000Z
tpdatasrc/co8fixes/scr/py00167feldrin.py
anatoliy-savchak/TemplePlus
50922bb14cc2d7dcf8fceeccf45c3b905c1b512f
[ "MIT" ]
25
2016-02-04T21:19:53.000Z
2021-11-15T23:14:51.000Z
from utilities import * from Co8 import * from toee import * from combat_standard_routines import * def san_dialog( attachee, triggerer ): return SKIP_DEFAULT def san_first_heartbeat( attachee, triggerer): if (game.global_flags[372] == 1): attachee.object_flag_set(OF_OFF) return RUN_DEFAULT def san_dying( at...
26.040541
85
0.72081
9ac13cfbb9de30a4dbda59bdcfc3c82888a076a0
12,910
py
Python
config/settings/base.py
Andrew-Chen-Wang/cookiecutter-django-ec2-gh-action
3a65464eb37fc8dad60641b8d7a125d1b04d333e
[ "BSD-3-Clause" ]
1
2021-01-14T05:38:40.000Z
2021-01-14T05:38:40.000Z
config/settings/base.py
Andrew-Chen-Wang/cookiecutter-django-ec2-gh-action
3a65464eb37fc8dad60641b8d7a125d1b04d333e
[ "BSD-3-Clause" ]
null
null
null
config/settings/base.py
Andrew-Chen-Wang/cookiecutter-django-ec2-gh-action
3a65464eb37fc8dad60641b8d7a125d1b04d333e
[ "BSD-3-Clause" ]
1
2021-12-10T11:17:08.000Z
2021-12-10T11:17:08.000Z
""" Base settings to build other settings files upon. """ from pathlib import Path import environ ROOT_DIR = Path(__file__).parents[2] # github_ec2_deploy/) APPS_DIR = ROOT_DIR / "github_ec2_deploy" env = environ.Env() READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=False) if READ_DOT_ENV_FILE: ...
42.607261
100
0.648722
c981cc5724ec45541c44997be45c347677e35002
2,207
py
Python
cfgov/v1/models/browse_page.py
m3brown/cfgov-refresh
9582dccc97498a27fcf78a70bb50ef06efa2ce74
[ "CC0-1.0" ]
null
null
null
cfgov/v1/models/browse_page.py
m3brown/cfgov-refresh
9582dccc97498a27fcf78a70bb50ef06efa2ce74
[ "CC0-1.0" ]
null
null
null
cfgov/v1/models/browse_page.py
m3brown/cfgov-refresh
9582dccc97498a27fcf78a70bb50ef06efa2ce74
[ "CC0-1.0" ]
null
null
null
import itertools from django.db import models from wagtail.wagtailcore.fields import StreamField from wagtail.wagtailadmin.edit_handlers import TabbedInterface, ObjectList, \ StreamFieldPanel, FieldPanel from wagtail.wagtailcore import blocks from wagtail.wagtailcore.models import PAGE_TEMPLATE_VAR from .base im...
33.953846
79
0.707748
2bf9f8bf8d975b421c3021e86187a7f943187ad8
12,212
py
Python
test_net.py
kris-singh/fasterrcnn
82ff26639b3e90b6f8e727a98051752bb780d6f6
[ "MIT" ]
null
null
null
test_net.py
kris-singh/fasterrcnn
82ff26639b3e90b6f8e727a98051752bb780d6f6
[ "MIT" ]
null
null
null
test_net.py
kris-singh/fasterrcnn
82ff26639b3e90b6f8e727a98051752bb780d6f6
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick # -------------------------------------------------------- from __future__ import absolute_import from __...
37.231707
111
0.623076
17c08694d17784b172b9f5845cadb19cc6fc370a
11,206
py
Python
owtf/api/reporter.py
Lonewolf-Information-systems/owtf
65355ce8bf4a4ea0177e24ee106f77e2f87c17fa
[ "BSD-3-Clause" ]
1
2018-02-05T12:10:28.000Z
2018-02-05T12:10:28.000Z
owtf/api/reporter.py
Lonewolf-Information-systems/owtf
65355ce8bf4a4ea0177e24ee106f77e2f87c17fa
[ "BSD-3-Clause" ]
2
2021-03-11T03:35:23.000Z
2022-02-10T23:40:23.000Z
owtf/api/reporter.py
Lonewolf-Information-systems/owtf
65355ce8bf4a4ea0177e24ee106f77e2f87c17fa
[ "BSD-3-Clause" ]
null
null
null
""" owtf.interface.reporter ~~~~~~~~~~~~~~~~~~~~~~~ The reporter module is in charge of producing the HTML Report as well as provide plugins with common HTML Rendering functions .note:: This is being deprecated. """ import cgi from tornado.template import Loader from owtf.dependency_management.dependency_resol...
46.305785
122
0.618151
974e83c61b680149ecc4c92c18acbc333beae7c7
776
py
Python
qudt/units/area.py
gnmerritt/pyqudt
2579e824b2e002d2e27a40eae84f1b1449006487
[ "BSD-3-Clause" ]
null
null
null
qudt/units/area.py
gnmerritt/pyqudt
2579e824b2e002d2e27a40eae84f1b1449006487
[ "BSD-3-Clause" ]
null
null
null
qudt/units/area.py
gnmerritt/pyqudt
2579e824b2e002d2e27a40eae84f1b1449006487
[ "BSD-3-Clause" ]
null
null
null
################################################################################ # # Copyright (C) 2019 Garrett Brown # This file is part of pyqudt - https://github.com/eigendude/pyqudt # # pyqudt is derived from jQUDT # Copyright (C) 2012-2013 Egon Willighagen <egonw@users.sf.net> # # SPDX-License-Identifier: BS...
32.333333
98
0.572165
fa07666229ed01214352287a238558d506d573f6
2,394
py
Python
apps/dc_algorithm/tasks.py
pinkerltm/datacube-ui
325d404a994d49c23922e7de10c7ab244b78500b
[ "Apache-2.0" ]
1
2019-07-22T05:24:40.000Z
2019-07-22T05:24:40.000Z
apps/dc_algorithm/tasks.py
SivaramakrishnanKN/NE-GeoCloud
affcae49e0ccd7d29360a2771a9517147ed56590
[ "Apache-2.0" ]
1
2019-06-06T18:31:29.000Z
2019-06-06T18:31:29.000Z
apps/dc_algorithm/tasks.py
SivaramakrishnanKN/NE-GeoCloud
affcae49e0ccd7d29360a2771a9517147ed56590
[ "Apache-2.0" ]
5
2019-06-05T07:26:13.000Z
2019-06-08T06:53:11.000Z
import celery from celery.decorators import periodic_task from celery.task.schedules import crontab from datetime import datetime, timedelta import os import shutil from django.apps import apps from .models import Application class DCAlgorithmBase(celery.Task): """Serves as a base class for all DC algorithm cele...
37.40625
139
0.649123
b8df3b07111fad02c6791d67a0d67e6a8a108c5a
958
py
Python
examples/get_color_all.py
ceboxsell/LocalLifxLan
c13975661e52abfbd5d5b22a27bf01c362c42781
[ "MIT" ]
null
null
null
examples/get_color_all.py
ceboxsell/LocalLifxLan
c13975661e52abfbd5d5b22a27bf01c362c42781
[ "MIT" ]
null
null
null
examples/get_color_all.py
ceboxsell/LocalLifxLan
c13975661e52abfbd5d5b22a27bf01c362c42781
[ "MIT" ]
1
2020-06-03T09:15:00.000Z
2020-06-03T09:15:00.000Z
#!/usr/bin/env python # coding=utf-8 import sys from lifxlan import LifxLAN def main(): num_lights = None if len(sys.argv) != 2: print("\nDiscovery will go much faster if you provide the number of lights on your LAN:") print(" python {} <number of lights on LAN>\n".format(sys.argv[0])) e...
29.030303
97
0.646138
e817b4a26a08cde5896f63b57f6ae8054318cba3
10,670
py
Python
src/.history/Test/HiwinRT605_Strategy_test_20190625201520.py
SamKaiYang/2019_Hiwin_Shaking
d599f8c87dc4da89eae266990d12eb3a8b0f3e16
[ "MIT" ]
null
null
null
src/.history/Test/HiwinRT605_Strategy_test_20190625201520.py
SamKaiYang/2019_Hiwin_Shaking
d599f8c87dc4da89eae266990d12eb3a8b0f3e16
[ "MIT" ]
null
null
null
src/.history/Test/HiwinRT605_Strategy_test_20190625201520.py
SamKaiYang/2019_Hiwin_Shaking
d599f8c87dc4da89eae266990d12eb3a8b0f3e16
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # license removed for brevity #策略 機械手臂 四點來回跑 import rospy import os import numpy as np from std_msgs.msg import String from ROS_Socket.srv import * from ROS_Socket.msg import * import math import enum import Hiwin_RT605_Arm_Command as ArmTask ##----Arm state----------- Arm_state_flag = 0 Strategy...
31.017442
145
0.579288
8264dc5be18dc59bad2c7bf54ca9dee0f183b3ea
228
py
Python
datahub/omis/market/apps.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
6
2019-12-02T16:11:24.000Z
2022-03-18T10:02:02.000Z
datahub/omis/market/apps.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
1,696
2019-10-31T14:08:37.000Z
2022-03-29T12:35:57.000Z
datahub/omis/market/apps.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
9
2019-11-22T12:42:03.000Z
2021-09-03T14:25:05.000Z
from django.apps import AppConfig class MarketConfig(AppConfig): """Django App Config for the OMIS Market app.""" name = 'datahub.omis.market' label = 'omis_market' # namespaced app. Use this e.g. when migrating
25.333333
73
0.70614
8d255ca944750ef19e3db56e8e749d8ec3f6c567
1,444
py
Python
web/watch.py
intoj/intoj-legacy
2384bcc78ca360c83324a6d5de10c2fd3fbbe2d6
[ "BSD-2-Clause" ]
7
2020-01-09T06:42:58.000Z
2021-06-27T04:18:46.000Z
web/watch.py
intoj/intoj-legacy
2384bcc78ca360c83324a6d5de10c2fd3fbbe2d6
[ "BSD-2-Clause" ]
null
null
null
web/watch.py
intoj/intoj-legacy
2384bcc78ca360c83324a6d5de10c2fd3fbbe2d6
[ "BSD-2-Clause" ]
null
null
null
#coding: utf-8 __author__ = 'Michael Liao' import os, sys, time, subprocess from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler def log(s): print('[Monitor] %s' % s) class MyFileSystemEventHander(FileSystemEventHandler): def __init__(self, fn): super(MyFileSystemEventHan...
23.290323
91
0.715374
2104f82a9661db47141cb41409d01501e9adf12b
3,155
py
Python
Project-5/predict.py
kshntn/DLND
c573748bb191157ba59683fb08ec6b429dd86d29
[ "MIT" ]
null
null
null
Project-5/predict.py
kshntn/DLND
c573748bb191157ba59683fb08ec6b429dd86d29
[ "MIT" ]
null
null
null
Project-5/predict.py
kshntn/DLND
c573748bb191157ba59683fb08ec6b429dd86d29
[ "MIT" ]
1
2019-12-09T08:03:39.000Z
2019-12-09T08:03:39.000Z
import argparse import json import os import pickle import sys import sagemaker_containers import pandas as pd import numpy as np import torch import torch.nn as nn import torch.optim as optim import torch.utils.data from model import LSTMClassifier from utils import review_to_words, convert_and_pad def model_fn(mod...
33.210526
107
0.698257
11612295d92d1ba3e390ba2b39271d2875a3c9de
25,692
py
Python
tensorflow/python/framework/common_shapes.py
MathMachado/tensorflow
56afda20b15f234c23e8393f7e337e7dd2659c2d
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/python/framework/common_shapes.py
MathMachado/tensorflow
56afda20b15f234c23e8393f7e337e7dd2659c2d
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/python/framework/common_shapes.py
MathMachado/tensorflow
56afda20b15f234c23e8393f7e337e7dd2659c2d
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2015 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.146375
80
0.691577
e3bf5bf8d35661a001652415aa8a0c09d97ff0b3
11,665
py
Python
kfac/python/kernel_tests/estimator_test.py
ntselepidis/kfac
ddad6375bbdebfae809bccfd3a5c3db073128764
[ "Apache-2.0" ]
179
2018-02-08T00:10:26.000Z
2022-02-25T06:58:28.000Z
kfac/python/kernel_tests/estimator_test.py
ntselepidis/kfac
ddad6375bbdebfae809bccfd3a5c3db073128764
[ "Apache-2.0" ]
40
2018-02-02T00:10:00.000Z
2022-02-09T01:46:32.000Z
kfac/python/kernel_tests/estimator_test.py
isabella232/kfac
3ee1bec8dcd851d50618cd542a8d1aff92512f7c
[ "Apache-2.0" ]
40
2018-03-11T10:10:23.000Z
2022-01-24T12:03:48.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...
38.49835
80
0.67724
4c3b7f7d4f798204831e9c4b8f2f5853cc0978e5
27,462
py
Python
applications/welcome/languages/es.py
misl6/web2py
4191d4c48c37c66cc7eb293b610a6b6e86870571
[ "BSD-3-Clause" ]
5
2020-03-11T17:03:49.000Z
2021-12-26T11:22:49.000Z
applications/welcome/languages/es.py
misl6/web2py
4191d4c48c37c66cc7eb293b610a6b6e86870571
[ "BSD-3-Clause" ]
16
2020-03-30T13:00:10.000Z
2020-05-16T16:42:52.000Z
applications/welcome/languages/es.py
misl6/web2py
4191d4c48c37c66cc7eb293b610a6b6e86870571
[ "BSD-3-Clause" ]
2
2020-09-18T15:12:26.000Z
2020-11-10T22:09:59.000Z
# -*- coding: utf-8 -*- { '!langcode!': 'es', '!langname!': 'Español', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"actualice" es una expresión opcional como "campo1=\'nuevo_valor\'". No se puede actualizar o eliminar resultados de un JOIN', '%(nr...
53.22093
281
0.69161
e089c7505483cb4e816086d0c7c6373af6509759
382
py
Python
Scripts/myspider.py
Car105JuanDev/Scrapy
a3cad8e429e462ab6ce6d7089f469accb2dadb97
[ "bzip2-1.0.6" ]
null
null
null
Scripts/myspider.py
Car105JuanDev/Scrapy
a3cad8e429e462ab6ce6d7089f469accb2dadb97
[ "bzip2-1.0.6" ]
null
null
null
Scripts/myspider.py
Car105JuanDev/Scrapy
a3cad8e429e462ab6ce6d7089f469accb2dadb97
[ "bzip2-1.0.6" ]
1
2021-08-31T13:31:19.000Z
2021-08-31T13:31:19.000Z
import scrapy class BlogSpider(scrapy.Spider): name = 'blogspider' start_urls = ['https://blog.scrapinghub.com'] def parse(self, response): for title in response.css('.post-header>h2'): yield {'title': title.css('a ::text').get()} for next_page in response.css('a.next-posts-li...
31.833333
59
0.63089
51b4c720ffd6ab407d3429e2d97ffaeb4f05d92e
230
py
Python
03_Listas/01_criando uma lista.py
Basilio40/exercicios_Python
327a6430e36e8a37596bed521617a2eba3024ddb
[ "Apache-2.0" ]
null
null
null
03_Listas/01_criando uma lista.py
Basilio40/exercicios_Python
327a6430e36e8a37596bed521617a2eba3024ddb
[ "Apache-2.0" ]
null
null
null
03_Listas/01_criando uma lista.py
Basilio40/exercicios_Python
327a6430e36e8a37596bed521617a2eba3024ddb
[ "Apache-2.0" ]
null
null
null
''' Faça um Programa que leia uma lista de 5 números inteiros e mostre-os. ''' # Resposta: num = list() for i in range(5): num.append(int(input(f'Digite o {i+1}º número: '))) print(f'\n{num} ') print(f'Tipo: {type(num)}')
16.428571
70
0.626087
d3801c414b2a4f31c9e765d154cc4a0b15222a24
2,483
py
Python
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/EipNotifyPaidRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/EipNotifyPaidRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/EipNotifyPaidRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.013699
74
0.76762
c4022a67c9f5c879907d015a3466c1436192a13a
44,982
py
Python
tle/cogs/graphs.py
kuroni/TLE
092eee3e23e421a699360759e0976d43810a086b
[ "MIT" ]
1
2020-08-12T11:54:45.000Z
2020-08-12T11:54:45.000Z
tle/cogs/graphs.py
shim1998/TLE
83391a3662f4c47465d60e1aee4f0fc32176bb7e
[ "MIT" ]
null
null
null
tle/cogs/graphs.py
shim1998/TLE
83391a3662f4c47465d60e1aee4f0fc32176bb7e
[ "MIT" ]
null
null
null
import bisect import collections import datetime as dt import time import itertools import math from typing import List import discord import numpy as np import pandas as pd import seaborn as sns from discord.ext import commands from matplotlib import pyplot as plt from matplotlib import patches as patches from matplo...
43.377049
224
0.595305
dfc637507ab2e5bec7cab6d8f871cdbe0f8df8d1
2,548
py
Python
util/epidemic_model/sir_model.py
yuhsiangfu/network-spreading
eac6bc0d4c2de62dfa6563f40d4b36c522fab9b8
[ "MIT" ]
9
2018-09-04T12:31:17.000Z
2021-01-12T12:33:02.000Z
util/epidemic_model/sir_model.py
yuhsiangfu/network-spreading
eac6bc0d4c2de62dfa6563f40d4b36c522fab9b8
[ "MIT" ]
null
null
null
util/epidemic_model/sir_model.py
yuhsiangfu/network-spreading
eac6bc0d4c2de62dfa6563f40d4b36c522fab9b8
[ "MIT" ]
4
2018-09-04T06:47:53.000Z
2021-01-12T12:32:19.000Z
""" SIR model, set version @auth: Yu-Hsiang Fu @date: 2014/10/02 @update: 2018/03/22 """ # -------------------------------------------------------------------------------- # 1.Import modular # -------------------------------------------------------------------------------- # import packages import copy as c import r...
31.85
90
0.496075
da42e2b906f1df83d3d8fffb3f74bdfd7a380028
3,993
py
Python
acrilib/acrilib/idioms/singleton.py
Acrisel/acrilib
1a313aaf30e8a4c7732232313ec4859bd6604dc7
[ "BSD-3-Clause" ]
null
null
null
acrilib/acrilib/idioms/singleton.py
Acrisel/acrilib
1a313aaf30e8a4c7732232313ec4859bd6604dc7
[ "BSD-3-Clause" ]
null
null
null
acrilib/acrilib/idioms/singleton.py
Acrisel/acrilib
1a313aaf30e8a4c7732232313ec4859bd6604dc7
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- ############################################################################## # # Acrisel LTD # Copyright (C) 2008- Acrisel (acrisel.com) . All Rights Reserved # # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public...
27.537931
89
0.545705
72b5e2d2304cdcc8b8317f96f5c719b0f0dd3164
1,082
py
Python
db_report.py
Build-Week-SpotifySong4/DataScience
6a7a19dea55d3a75d674cb66a0a32060ca453a5c
[ "MIT" ]
1
2020-03-02T18:05:16.000Z
2020-03-02T18:05:16.000Z
db_report.py
Build-Week-SpotifySong4/DataScience
6a7a19dea55d3a75d674cb66a0a32060ca453a5c
[ "MIT" ]
null
null
null
db_report.py
Build-Week-SpotifySong4/DataScience
6a7a19dea55d3a75d674cb66a0a32060ca453a5c
[ "MIT" ]
1
2020-03-03T22:44:45.000Z
2020-03-03T22:44:45.000Z
# db_report.py # from ml_component.server import db from ml_component.server.models import Song import sys import os import psycopg2 def local(): print("DB REPORT (local):") songs = Song.query.all() print(f"Song #: {len(songs)}") print(f"Example track_id: {songs[0].track_id}") def remote(): ...
25.761905
57
0.622921
6e4e362b5d520cf6ac0a21cb76030b256ae19c2a
1,846
py
Python
py_gcn/layers.py
Guo-lab/Graph
c4c5fbc8fb5d645c16da20351b9746019cf75aab
[ "MIT" ]
null
null
null
py_gcn/layers.py
Guo-lab/Graph
c4c5fbc8fb5d645c16da20351b9746019cf75aab
[ "MIT" ]
null
null
null
py_gcn/layers.py
Guo-lab/Graph
c4c5fbc8fb5d645c16da20351b9746019cf75aab
[ "MIT" ]
null
null
null
import math import torch from torch.nn.parameter import Parameter from torch.nn.modules.module import Module #@ https://blog.csdn.net/Xiao_CangTian/article/details/116474734 class GraphConvolution(Module): def __init__(self, in_features, out_features, bias=True): super(GraphConvolution, self).__init...
31.288136
109
0.609426
8c226ba8dda426754be163ca5ba87bff7b7747b6
244
py
Python
docs/conf.py
onap/vfc-nfvo-lcm
b7d4d015fa96a246d73d863092d3362afcedc284
[ "Apache-2.0" ]
4
2018-08-29T02:51:38.000Z
2021-11-16T11:36:11.000Z
docs/conf.py
onap/vfc-nfvo-lcm
b7d4d015fa96a246d73d863092d3362afcedc284
[ "Apache-2.0" ]
null
null
null
docs/conf.py
onap/vfc-nfvo-lcm
b7d4d015fa96a246d73d863092d3362afcedc284
[ "Apache-2.0" ]
1
2019-05-12T08:21:19.000Z
2019-05-12T08:21:19.000Z
from docs_conf.conf import * branch = 'latest' master_doc = 'index' linkcheck_ignore = [ 'http://localhost', ] intersphinx_mapping = {} html_last_updated_fmt = '%d-%b-%y %H:%M' def setup(app): app.add_stylesheet("css/ribbon.css")
14.352941
40
0.672131
27e939403d0fc1879a43e21b56ef61edadaac9f6
213
py
Python
beneficiaries/beneficiaries/doctype/beneficiary_logs/test_beneficiary_logs.py
baidalala/beneficiaries
b7299e0a7da91e90c607e70d76994ec0aebae402
[ "MIT" ]
null
null
null
beneficiaries/beneficiaries/doctype/beneficiary_logs/test_beneficiary_logs.py
baidalala/beneficiaries
b7299e0a7da91e90c607e70d76994ec0aebae402
[ "MIT" ]
null
null
null
beneficiaries/beneficiaries/doctype/beneficiary_logs/test_beneficiary_logs.py
baidalala/beneficiaries
b7299e0a7da91e90c607e70d76994ec0aebae402
[ "MIT" ]
1
2021-08-31T18:47:58.000Z
2021-08-31T18:47:58.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, Baida and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestBeneficiarylogs(unittest.TestCase): pass
19.363636
45
0.765258
d464c7c65d96afd9161c4a7651f75c4380570204
2,374
py
Python
heat/common/netutils.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
265
2015-01-02T09:33:22.000Z
2022-03-26T23:19:54.000Z
heat/common/netutils.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
8
2015-09-01T15:43:19.000Z
2021-12-14T05:18:23.000Z
heat/common/netutils.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
295
2015-01-06T07:00:40.000Z
2021-09-06T08:05:06.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 # ...
37.68254
78
0.631003
4db85412e1f67a217996e58a112c7faf7cc26a1c
2,531
py
Python
tita_do.py
KomeilParseh/TITA-DO
714685fa18bfd2ef07f5c0d656927039b05d7997
[ "MIT" ]
9
2020-08-27T10:10:11.000Z
2021-04-21T04:46:15.000Z
tita_do.py
mdk1384/TITA-DO-1
714685fa18bfd2ef07f5c0d656927039b05d7997
[ "MIT" ]
2
2020-08-27T12:09:57.000Z
2021-01-05T09:29:19.000Z
tita_do.py
mdk1384/TITA-DO-1
714685fa18bfd2ef07f5c0d656927039b05d7997
[ "MIT" ]
2
2020-08-27T10:10:18.000Z
2021-01-01T06:20:20.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ TITA-DO MIT licance. """ #import pickle from time import sleep from sys import exit from models.ask_name import ask_name from models.enigma import Enigma_starter print("\n\t :) You Todo with TITA-DO (:") print(" TITA-DO =.|.= Hyd_Prime version") print("\...
26.364583
76
0.604109
1510816be3b8e9ba49df738882724e1fdcaa84e1
1,841
py
Python
baby.py
kusuwada/baby-language
ded4cb1cc2cdb9db21a15cab01e72cd7dac80d59
[ "MIT" ]
3
2020-02-10T06:22:03.000Z
2020-02-10T10:38:14.000Z
baby.py
kusuwada/baby-language
ded4cb1cc2cdb9db21a15cab01e72cd7dac80d59
[ "MIT" ]
null
null
null
baby.py
kusuwada/baby-language
ded4cb1cc2cdb9db21a15cab01e72cd7dac80d59
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import yaml import morse class Baby(): lang_type = 'English' baby_map = {} morse = morse.Morse() def __init__(self): with open('baby.yml', 'r') as f: self.baby_map = yaml.safe_load(f) def dec(self, baby): morse = '' for m in baby.split(' '): while...
25.569444
64
0.575774
ba6f8521da72a82aed597fd49811bc1e3c54b365
10,790
py
Python
samples/searchconsole/sc3.py
a1043332/sc_api
5472924f7f16c8d97b31a8bbda02d9a09abf044b
[ "Apache-2.0" ]
null
null
null
samples/searchconsole/sc3.py
a1043332/sc_api
5472924f7f16c8d97b31a8bbda02d9a09abf044b
[ "Apache-2.0" ]
null
null
null
samples/searchconsole/sc3.py
a1043332/sc_api
5472924f7f16c8d97b31a8bbda02d9a09abf044b
[ "Apache-2.0" ]
null
null
null
#copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
30.480226
144
0.624467
a6a3417600b5aae00c45f91deb27a7c002e7748a
13,134
py
Python
cube/generic_networks/ner.py
victor-armegioiu/NLP-Cube
f19ee754e14b400adaabe2fa4ec084395a44e66d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cube/generic_networks/ner.py
victor-armegioiu/NLP-Cube
f19ee754e14b400adaabe2fa4ec084395a44e66d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cube/generic_networks/ner.py
victor-armegioiu/NLP-Cube
f19ee754e14b400adaabe2fa4ec084395a44e66d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# # Author: Tiberiu Boros # # Copyright (c) 2018 Adobe Systems Incorporated. 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....
37.959538
120
0.551241
89a529b9a3e25587a11feaa73e5ce9883fa6b6b9
6,327
py
Python
tests/test_api.py
irishgordo/newrelic-lambda-cli
94039961ee2ca28ada1c4e78eba50a5ba3e84597
[ "Apache-2.0" ]
29
2019-11-21T18:39:02.000Z
2022-02-11T19:28:25.000Z
tests/test_api.py
irishgordo/newrelic-lambda-cli
94039961ee2ca28ada1c4e78eba50a5ba3e84597
[ "Apache-2.0" ]
118
2019-11-21T18:32:00.000Z
2022-03-31T23:58:31.000Z
tests/test_api.py
irishgordo/newrelic-lambda-cli
94039961ee2ca28ada1c4e78eba50a5ba3e84597
[ "Apache-2.0" ]
28
2019-11-21T18:02:38.000Z
2022-02-26T10:08:38.000Z
from unittest.mock import Mock from newrelic_lambda_cli.api import ( create_integration_account, enable_lambda_integration, NewRelicGQL, ) from .conftest import integration_install def test_create_integration_account(): mock_gql = NewRelicGQL("123456789", "foobar") mock_gql.query = Mock( ...
33.47619
115
0.3896
0cbb70da99f850917f201776aa1fd98ae978b38e
49,519
py
Python
test/text_generation_test/build_rl_transformer.py
AnonymousAuthor2013/PostRec
a1461f716d177e28b96ca29d1398f96b5717c1e1
[ "MIT" ]
null
null
null
test/text_generation_test/build_rl_transformer.py
AnonymousAuthor2013/PostRec
a1461f716d177e28b96ca29d1398f96b5717c1e1
[ "MIT" ]
null
null
null
test/text_generation_test/build_rl_transformer.py
AnonymousAuthor2013/PostRec
a1461f716d177e28b96ca29d1398f96b5717c1e1
[ "MIT" ]
null
null
null
import random import os import importlib from torchtext import data import tensorflow as tf import texar as tx import numpy as np from post_rec.models.rl_utility import utils,data_utils from post_rec.models.rl_utility.config_data import eos_token_id, bos_token_id from post_rec.models.GenerationNets.BertRLAnswerNet im...
37.945594
160
0.635554
c981135969d2efddb302e26e7c8ccc5096b2c506
225
py
Python
pysqs_extended_client/config.py
danbernstein/boto3-sqs-extended-client-lib
37c90d58a880167ea6b998c3db267541ef5ea89c
[ "Apache-2.0" ]
19
2018-08-23T20:49:59.000Z
2022-02-09T09:51:02.000Z
pysqs_extended_client/config.py
danbernstein/boto3-sqs-extended-client-lib
37c90d58a880167ea6b998c3db267541ef5ea89c
[ "Apache-2.0" ]
8
2019-06-20T19:36:27.000Z
2021-08-18T06:39:03.000Z
pysqs_extended_client/config.py
danbernstein/boto3-sqs-extended-client-lib
37c90d58a880167ea6b998c3db267541ef5ea89c
[ "Apache-2.0" ]
19
2018-11-30T20:54:01.000Z
2022-01-31T23:16:11.000Z
import os AWS_SQS_QUEUE_URL = os.getenv('AWS_SQS_QUEUE_URL') AWS_ACCESS_KEY_ID = os.getenv('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = os.getenv('AWS_SECRET_ACCESS_KEY') AWS_DEFAULT_REGION = os.getenv('AWS_DEFAULT_REGION')
32.142857
58
0.826667
8c1d3cdb4380bb89c2fadc29aa8a74d6950e1109
111
py
Python
LuoguCodes/AT2653.py
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
LuoguCodes/AT2653.py
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
LuoguCodes/AT2653.py
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
n, m = map(int, raw_input().split()) a = map(int, raw_input().split()) a.sort(reverse = True) print sum(a[:m])
22.2
36
0.621622
2d28a9225d3d34c45a42c0d1bd2b0affd7d576da
2,182
py
Python
tests/test_utils.py
martinghunt/cluster_vcf_records
6411723081132b7b3790dfe85548e982525044a7
[ "MIT" ]
1
2018-01-08T18:28:34.000Z
2018-01-08T18:28:34.000Z
tests/test_utils.py
martinghunt/cluster_vcf_records
6411723081132b7b3790dfe85548e982525044a7
[ "MIT" ]
10
2018-07-24T09:39:57.000Z
2020-12-16T14:28:13.000Z
tests/test_utils.py
martinghunt/cluster_vcf_records
6411723081132b7b3790dfe85548e982525044a7
[ "MIT" ]
6
2018-01-08T14:09:19.000Z
2019-02-11T16:27:55.000Z
import filecmp import os import pytest import pyfastaq from cluster_vcf_records import vcf_file_read, utils this_dir = os.path.dirname(os.path.abspath(__file__)) data_dir = os.path.join(this_dir, "data", "utils") def test_simplify_vcf(): infile = os.path.join(data_dir, "simplify_vcf.in.vcf") ref_fa = os.pat...
41.961538
82
0.752979
81005e7deead3e79d85f7f3a72344768cb10cc14
5,117
py
Python
cogs/calendar/cog.py
mathis-chapuis/TCCalendarBot
244365227b55f3e9286b07fb258f8658fe1f56c2
[ "MIT" ]
2
2021-03-21T20:26:30.000Z
2021-03-26T07:18:43.000Z
cogs/calendar/cog.py
mathis-chapuis/TCCalendarBot
244365227b55f3e9286b07fb258f8658fe1f56c2
[ "MIT" ]
null
null
null
cogs/calendar/cog.py
mathis-chapuis/TCCalendarBot
244365227b55f3e9286b07fb258f8658fe1f56c2
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from discord.ext import commands, tasks from .utils import format_response, get_course_by_date, download_calendar, get_week_calendar, get_offset import discord import os import re ROOT_CALENDAR = "cogs/calendar/Assets" def setup(bot): """ Function to setup the bot by...
33.664474
104
0.525503
bffe3443b994fd339b5e28f95198806da22703b1
1,529
py
Python
mysite/wsgi.py
gizmo126/django-app-starter
76a454c447216dec92983de7f7fc236a409dccf8
[ "MIT" ]
null
null
null
mysite/wsgi.py
gizmo126/django-app-starter
76a454c447216dec92983de7f7fc236a409dccf8
[ "MIT" ]
3
2020-02-11T21:47:49.000Z
2021-03-22T17:10:49.000Z
mysite/wsgi.py
gizmo126/django-app-starter
76a454c447216dec92983de7f7fc236a409dccf8
[ "MIT" ]
null
null
null
""" WSGI config for mysite project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` s...
41.324324
79
0.803793
a8c1dc3aa422322ea4105a824845aa405690b4ec
428
py
Python
PeptideConstructor/__init__.py
CharlesHahn/DL-PeptideBuilder
098c873a2e428f9a48b1bee2e1a21dd92806d119
[ "MIT" ]
1
2021-12-24T14:35:24.000Z
2021-12-24T14:35:24.000Z
PeptideConstructor/__init__.py
CharlesHahn/DL-PeptideBuilder
098c873a2e428f9a48b1bee2e1a21dd92806d119
[ "MIT" ]
null
null
null
PeptideConstructor/__init__.py
CharlesHahn/DL-PeptideBuilder
098c873a2e428f9a48b1bee2e1a21dd92806d119
[ "MIT" ]
1
2021-12-20T13:48:02.000Z
2021-12-20T13:48:02.000Z
"""``PeptideConstructor`` package for creating (DL-)peptide models in PDB format based on geometrical parameters. Written by Charles Hahn. This package is based on Lun4m/PeptideBuilder.git and clauswilke/PeptideBuilder.git. Python modules ---------------- The package consists of the following Python modules: * Peptide...
30.571429
113
0.754673
634beef0f20688eedb85c2a7fb846b57f15f63d5
4,397
py
Python
tests/test_router_bandwidth.py
liuzhengzheng12/probe_generation_algorithm
1636b43c3053593bfae9ab2eeec6cd203c13633d
[ "MIT" ]
null
null
null
tests/test_router_bandwidth.py
liuzhengzheng12/probe_generation_algorithm
1636b43c3053593bfae9ab2eeec6cd203c13633d
[ "MIT" ]
null
null
null
tests/test_router_bandwidth.py
liuzhengzheng12/probe_generation_algorithm
1636b43c3053593bfae9ab2eeec6cd203c13633d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from topology.fat_tree import FatTreeTopology from optimize_algorithm.generate_probe import optimize_generate_probe_set from query_primitives.query import PathQuery, NodeQuery from utils.const import metadata_list from random import randint # 计算100,500,1000Hz下的500个query def get_query_list_dict...
45.329897
109
0.615647
6c81de12c48a91b5fa5d0fb63869d4a8aa9914b3
1,088
py
Python
scripts/convert/convert_bedgraph_to_gff.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
10
2015-04-28T14:15:04.000Z
2021-03-15T00:07:38.000Z
scripts/convert/convert_bedgraph_to_gff.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
null
null
null
scripts/convert/convert_bedgraph_to_gff.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
6
2017-03-16T22:38:41.000Z
2021-08-11T00:22:52.000Z
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import argparse from RouToolPa.Routines import AnnotationsRoutines parser = argparse.ArgumentParser() parser.add_argument("-i", "--input", action="store", dest="input", required=True, help="Input bedgraph file(0-based, python notation)") pars...
43.52
95
0.641544
5009020a9c808128b899d503ed4810822e2d83e8
4,429
py
Python
static/js/jsxgraph/server/fft.py
evheubel/content-mit-latex2edx-demo
4a9c37be58ae7defd095d2ab811fa9f8d13e4d96
[ "MIT" ]
4
2015-02-28T02:30:18.000Z
2021-05-30T17:09:41.000Z
static/js/jsxgraph/server/fft.py
evheubel/content-mit-latex2edx-demo
4a9c37be58ae7defd095d2ab811fa9f8d13e4d96
[ "MIT" ]
2
2015-07-15T13:49:56.000Z
2015-07-15T15:43:50.000Z
static/js/jsxgraph/server/fft.py
evheubel/content-mit-latex2edx-demo
4a9c37be58ae7defd095d2ab811fa9f8d13e4d96
[ "MIT" ]
10
2015-01-11T20:21:14.000Z
2021-06-10T04:41:43.000Z
from JXGServerModule import JXGServerModule import numpy import numpy.fft import wave, struct, uuid import os, subprocess import StringIO, gzip, base64 import datetime, math, random # Should be changed to something more persistent but must be writable by # the webserver (usually user www-data) #if not 'MPLCONFIGDIR' i...
33.80916
159
0.567171
0f19dc0e3993f475210b6f1b4d6a6d109697084d
9,826
py
Python
tests/relational_db_test.py
mdemeke/mickysbenchmarker
a61896f273577ea61a646f74bd3c4aa3d5996db2
[ "Apache-2.0" ]
null
null
null
tests/relational_db_test.py
mdemeke/mickysbenchmarker
a61896f273577ea61a646f74bd3c4aa3d5996db2
[ "Apache-2.0" ]
null
null
null
tests/relational_db_test.py
mdemeke/mickysbenchmarker
a61896f273577ea61a646f74bd3c4aa3d5996db2
[ "Apache-2.0" ]
null
null
null
# Copyright 20121 PerfKitBenchmarker 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 appl...
35.601449
356
0.638103
9227817dcff0732d942678701a58332f2195db22
6,493
py
Python
databricks_sync/sdk/generators/__init__.py
databrickslabs/databricks-sync
24bece3390df5f07ca3c5556da384c4b4087e57a
[ "Apache-2.0" ]
20
2020-11-13T22:19:02.000Z
2022-01-21T22:17:31.000Z
databricks_sync/sdk/generators/__init__.py
databrickslabs/databricks-sync
24bece3390df5f07ca3c5556da384c4b4087e57a
[ "Apache-2.0" ]
54
2020-11-17T19:50:59.000Z
2022-03-29T21:31:34.000Z
databricks_sync/sdk/generators/__init__.py
databrickslabs/databricks-sync
24bece3390df5f07ca3c5556da384c4b4087e57a
[ "Apache-2.0" ]
6
2020-12-03T18:03:22.000Z
2022-02-19T20:21:26.000Z
import copy import fnmatch import os import re from typing import List, Dict, Any from dotty_dict import Dotty from databricks_sync import log def drop_all_but(dictionary, *fields, dictionary_name=None): result = copy.deepcopy(dictionary) invalid_keys = [] for key in result: if key not in fields...
35.872928
119
0.615894
4604dbc7bdea5ede54c22d5077851a0ff418036d
107
py
Python
project/transactions/apps.py
njncalub/mapera
e9f636d74de2f0df568dcba95d159dfe2a4d4b5f
[ "MIT" ]
null
null
null
project/transactions/apps.py
njncalub/mapera
e9f636d74de2f0df568dcba95d159dfe2a4d4b5f
[ "MIT" ]
14
2019-07-13T10:35:04.000Z
2021-09-08T01:13:56.000Z
project/transactions/apps.py
njncalub/ippon
e9f636d74de2f0df568dcba95d159dfe2a4d4b5f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TransactionsConfig(AppConfig): name = 'project.transactions'
17.833333
36
0.785047
9e7374abd1bc77472e599eb87f86c25a3ab4e603
668
py
Python
qiskit/aqua/parser/__init__.py
chunfuchen/aqua
fde435203a2799433a4e50897554fa226c8ff1dc
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/parser/__init__.py
chunfuchen/aqua
fde435203a2799433a4e50897554fa226c8ff1dc
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/parser/__init__.py
chunfuchen/aqua
fde435203a2799433a4e50897554fa226c8ff1dc
[ "Apache-2.0" ]
2
2020-02-13T02:17:58.000Z
2020-08-09T07:56:25.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
30.363636
77
0.730539
caac9ecf55342b1354e40f8aac10c9a43934d0f6
424
py
Python
foodx_devops_tools/release_flow_entry.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
3
2021-06-23T20:53:43.000Z
2022-01-26T14:19:43.000Z
foodx_devops_tools/release_flow_entry.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
33
2021-08-09T15:44:51.000Z
2022-03-03T18:28:02.000Z
foodx_devops_tools/release_flow_entry.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
1
2021-06-23T20:53:52.000Z
2021-06-23T20:53:52.000Z
#!python3 # Copyright (c) 2021 Food-X Technologies # # This file is part of foodx_devops_tools. # # You should have received a copy of the MIT License along with # foodx_devops_tools. If not, see <https://opensource.org/licenses/MIT>. """Release flow utility.""" from .release_flow import release_flow def flit_entry...
24.941176
72
0.724057
149f2f951760a17643da9d57d8741f501d39e656
41,237
py
Python
MQTT Shims.indigoPlugin/Contents/Server Plugin/plugin.py
hishamk/Indigo-Shims
802002aa866d9ad96b04f8553c0a82f37e25deca
[ "Unlicense" ]
null
null
null
MQTT Shims.indigoPlugin/Contents/Server Plugin/plugin.py
hishamk/Indigo-Shims
802002aa866d9ad96b04f8553c0a82f37e25deca
[ "Unlicense" ]
null
null
null
MQTT Shims.indigoPlugin/Contents/Server Plugin/plugin.py
hishamk/Indigo-Shims
802002aa866d9ad96b04f8553c0a82f37e25deca
[ "Unlicense" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- #################### import logging import json import pystache from Queue import Queue kCurDevVersCount = 0 # current version of plugin devices ################################################################################ class Plugin(indigo.PluginBase): ...
52.935815
198
0.597012
4ea1c4e429d144861d24aaa285ff6dfe1771af60
3,152
py
Python
src/test/test_sign.py
cvxgrp/qcml
ff5e378cfeeebcf3f85a6e30c3449585f9af869f
[ "BSD-2-Clause-FreeBSD" ]
26
2015-02-06T02:59:17.000Z
2021-11-15T18:13:27.000Z
src/test/test_sign.py
cvxgrp/qcml
ff5e378cfeeebcf3f85a6e30c3449585f9af869f
[ "BSD-2-Clause-FreeBSD" ]
6
2015-06-14T04:43:43.000Z
2019-10-27T11:03:30.000Z
src/test/test_sign.py
cvxgrp/qcml
ff5e378cfeeebcf3f85a6e30c3449585f9af869f
[ "BSD-2-Clause-FreeBSD" ]
6
2015-03-14T07:40:56.000Z
2019-12-30T23:11:36.000Z
from .. properties.sign import Positive, Negative, Neither #from nose.tools import assert_raises #import operator signs = ['positive', 'negative', 'neither'] def create_sign(s): if s == 'positive': sign = Positive() elif s == 'negative': sign = Negative() else: sign = Neither() ...
25.015873
58
0.545368
de7dd461de702da0b58750ad0483780583a92915
5,116
py
Python
ppdet/modeling/architectures/ssd.py
wanghaoshuang/PaddleDetection
d2829c5e6da5943e509f454b99407c2a55a28807
[ "Apache-2.0" ]
null
null
null
ppdet/modeling/architectures/ssd.py
wanghaoshuang/PaddleDetection
d2829c5e6da5943e509f454b99407c2a55a28807
[ "Apache-2.0" ]
null
null
null
ppdet/modeling/architectures/ssd.py
wanghaoshuang/PaddleDetection
d2829c5e6da5943e509f454b99407c2a55a28807
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle 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 appli...
36.805755
85
0.620602
5a8c596b694f9bb7e3f5dca41399df39f7b24c4f
2,830
py
Python
endpoint/admin/taskMerge.py
fi-ksi/web-backend
57c4e52d4722bd083a74bf4cf742a7222a532fac
[ "MIT" ]
4
2017-12-11T00:14:22.000Z
2022-02-07T15:08:13.000Z
endpoint/admin/taskMerge.py
fi-ksi/web-backend
57c4e52d4722bd083a74bf4cf742a7222a532fac
[ "MIT" ]
94
2016-04-29T10:38:37.000Z
2022-02-10T13:41:29.000Z
endpoint/admin/taskMerge.py
fi-ksi/web-backend
57c4e52d4722bd083a74bf4cf742a7222a532fac
[ "MIT" ]
null
null
null
import falcon import json import git from lockfile import LockFile from sqlalchemy.exc import SQLAlchemyError from db import session import model import util class TaskMerge(object): def on_post(self, req, resp, id): """ Vraci JSON: { "result": "ok" | "error", "er...
31.797753
78
0.488339